tntd 3.0.27 → 3.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (659) hide show
  1. package/es/alert/index.js +1 -1
  2. package/es/alert/index.js.map +1 -1
  3. package/es/alert/style/index.less +0 -1
  4. package/es/array-input/index.js +12 -14
  5. package/es/array-input/index.js.map +1 -1
  6. package/es/button/button.js +3 -30
  7. package/es/button/button.js.map +1 -1
  8. package/es/button/button.less +2 -72
  9. package/es/cascader/index.js +6 -3
  10. package/es/cascader/index.js.map +1 -1
  11. package/es/checkbox/index.js +7 -3
  12. package/es/checkbox/index.js.map +1 -1
  13. package/es/date-picker/index.js +12 -6
  14. package/es/date-picker/index.js.map +1 -1
  15. package/es/date-picker/style/Calendar.less +1 -1
  16. package/es/descriptions/descriptions.less +0 -1
  17. package/es/descriptions/index.js +2 -2
  18. package/es/descriptions/index.js.map +1 -1
  19. package/es/drawer/drawer.js +5 -5
  20. package/es/drawer/drawer.js.map +1 -1
  21. package/es/drawer/index.less +1 -15
  22. package/es/drawer/style/drawer.less +3 -18
  23. package/es/drawer/style/index.js +1 -2
  24. package/es/drawer/style/index.js.map +1 -1
  25. package/es/form/style/index.less +0 -6
  26. package/es/handle/index.js +6 -9
  27. package/es/handle/index.js.map +1 -1
  28. package/es/handle/index.less +0 -16
  29. package/es/input/index.js +1 -1
  30. package/es/input/index.js.map +1 -1
  31. package/es/input/input.js +30 -21
  32. package/es/input/input.js.map +1 -1
  33. package/es/input/input.less +20 -123
  34. package/es/input-number/index.js +29 -4
  35. package/es/input-number/index.js.map +1 -1
  36. package/es/locale/en_US.js +5 -9
  37. package/es/locale/en_US.js.map +1 -1
  38. package/es/locale/zh_CN.js +3 -7
  39. package/es/locale/zh_CN.js.map +1 -1
  40. package/es/message/message.less +1 -2
  41. package/es/modal/index.js +3 -2
  42. package/es/modal/index.js.map +1 -1
  43. package/es/modal/modal.js +16 -103
  44. package/es/modal/modal.js.map +1 -1
  45. package/es/modal/style/index.js +1 -2
  46. package/es/modal/style/index.js.map +1 -1
  47. package/es/modal/style/modal.less +3 -15
  48. package/es/notification/notification.less +2 -27
  49. package/es/notification/style/index.less +0 -1
  50. package/es/page-container/index.js +1 -1
  51. package/es/page-container/index.js.map +1 -1
  52. package/es/page-container/index.less +2 -3
  53. package/es/page-loading/index.js +1 -1
  54. package/es/page-loading/index.js.map +1 -1
  55. package/es/popconfirm/index.js +2 -2
  56. package/es/popconfirm/index.js.map +1 -1
  57. package/es/popconfirm/style/index.js +1 -2
  58. package/es/popconfirm/style/index.js.map +1 -1
  59. package/es/popover/index.js +2 -2
  60. package/es/popover/index.js.map +1 -1
  61. package/es/popover/style/index.js +0 -1
  62. package/es/popover/style/index.js.map +1 -1
  63. package/es/preview-text/index.js.map +1 -1
  64. package/es/progress/index.js +2 -2
  65. package/es/progress/index.js.map +1 -1
  66. package/es/query-list-scene/List.js +1 -3
  67. package/es/query-list-scene/List.js.map +1 -1
  68. package/es/query-list-scene/QueryForm.js +3 -1
  69. package/es/query-list-scene/QueryForm.js.map +1 -1
  70. package/es/query-list-scene/index.less +7 -7
  71. package/es/radio/index.js +5 -3
  72. package/es/radio/index.js.map +1 -1
  73. package/es/segmented/index.less +112 -126
  74. package/es/select/index.js +1 -1
  75. package/es/select/index.js.map +1 -1
  76. package/es/select/select.js +6 -5
  77. package/es/select/select.js.map +1 -1
  78. package/es/select/select.less +9 -83
  79. package/es/select/style/index.less +4 -4
  80. package/es/spin/index.js +2 -3
  81. package/es/spin/index.js.map +1 -1
  82. package/es/steps/index.js +2 -9
  83. package/es/steps/index.js.map +1 -1
  84. package/es/steps/stepStyle/index.less +8 -173
  85. package/es/steps/stepStyle/nav.less +259 -51
  86. package/es/steps/steps.js +27 -53
  87. package/es/steps/steps.js.map +1 -1
  88. package/es/steps/style/index.js +0 -8
  89. package/es/steps/style/index.js.map +1 -1
  90. package/es/style/themes/default.less +5 -6
  91. package/es/switch/style/index.js +1 -2
  92. package/es/switch/style/index.js.map +1 -1
  93. package/es/switch/switch.js +2 -40
  94. package/es/switch/switch.js.map +1 -1
  95. package/es/table/hooks/use-expand-fixed.js.map +1 -1
  96. package/es/table/resizableTable/index.less +18 -0
  97. package/es/table/style/index.less +21 -19
  98. package/es/table/style/size.less +12 -11
  99. package/es/table/table.js +39 -65
  100. package/es/table/table.js.map +1 -1
  101. package/es/table/table.less +6 -31
  102. package/es/table/table.stories.js +3 -3
  103. package/es/table/table.stories.js.map +1 -1
  104. package/es/table-container/index.js +2 -5
  105. package/es/table-container/index.js.map +1 -1
  106. package/es/table-container/index.less +1 -4
  107. package/es/tabs/index.js +0 -1
  108. package/es/tabs/index.js.map +1 -1
  109. package/es/tabs/style/index.js.map +1 -1
  110. package/es/tabs/style/index.less +0 -1
  111. package/es/tabs/tabs.js +3 -27
  112. package/es/tabs/tabs.js.map +1 -1
  113. package/es/tabs-container/index.js +1 -1
  114. package/es/tabs-container/index.js.map +1 -1
  115. package/es/tag/tag.less +3 -4
  116. package/es/time-picker/index.js +2 -2
  117. package/es/time-picker/index.js.map +1 -1
  118. package/es/title/index.less +45 -47
  119. package/es/tntd-action/index.js +6 -69
  120. package/es/tntd-action/index.js.map +1 -1
  121. package/es/tntd-cascader/AntdCascader/index.less +29 -35
  122. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +1 -1
  123. package/es/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  124. package/es/tntd-select/index.js +4 -3
  125. package/es/tntd-select/index.js.map +1 -1
  126. package/es/tntd-virtual-tree/index.less +1 -2
  127. package/es/tntd-virtual-tree-select/index.less +14 -1
  128. package/es/tooltip/index.less +5 -4
  129. package/es/tooltip/style/index.js +1 -2
  130. package/es/tooltip/style/index.js.map +1 -1
  131. package/es/upload/index.js +191 -3
  132. package/es/upload/index.js.map +1 -1
  133. package/es/upload/style/index.less +1 -1
  134. package/es/utils/lang.js +2 -8
  135. package/es/utils/lang.js.map +1 -1
  136. package/lib/_util/context.js +1 -1
  137. package/lib/_util/defaultRenderEmpty.js +1 -1
  138. package/lib/_util/hooks/useFlexGapSupport.js +4 -4
  139. package/lib/_util/hooks/useForceUpdate.js +4 -4
  140. package/lib/_util/responsiveObserve.js +1 -1
  141. package/lib/_util/styleChecker.js +1 -1
  142. package/lib/actions/index.js +1 -1
  143. package/lib/alert/index.d.ts +1 -1
  144. package/lib/alert/index.d.ts.map +1 -1
  145. package/lib/alert/index.js +8 -7
  146. package/lib/alert/index.js.map +1 -1
  147. package/lib/alert/style/index.less +0 -1
  148. package/lib/array-input/index.d.ts.map +1 -1
  149. package/lib/array-input/index.js +23 -26
  150. package/lib/array-input/index.js.map +1 -1
  151. package/lib/button/button.d.ts +4 -9
  152. package/lib/button/button.d.ts.map +1 -1
  153. package/lib/button/button.js +4 -28
  154. package/lib/button/button.js.map +1 -1
  155. package/lib/button/button.less +2 -72
  156. package/lib/cascader/index.d.ts +7 -3
  157. package/lib/cascader/index.d.ts.map +1 -1
  158. package/lib/cascader/index.js +10 -5
  159. package/lib/cascader/index.js.map +1 -1
  160. package/lib/check-card/group.js +8 -8
  161. package/lib/check-card/index.js +6 -6
  162. package/lib/checkbox/checkbox-group.js +1 -1
  163. package/lib/checkbox/index.d.ts +3 -3
  164. package/lib/checkbox/index.d.ts.map +1 -1
  165. package/lib/checkbox/index.js +17 -2
  166. package/lib/checkbox/index.js.map +1 -1
  167. package/lib/color-picker/ColorPicker.js +6 -6
  168. package/lib/color-picker/index.js +1 -1
  169. package/lib/columns/index.js +1 -1
  170. package/lib/config-provider/config-provider.js +1 -1
  171. package/lib/date-picker/index.d.ts +6 -2
  172. package/lib/date-picker/index.d.ts.map +1 -1
  173. package/lib/date-picker/index.js +37 -6
  174. package/lib/date-picker/index.js.map +1 -1
  175. package/lib/date-picker/style/Calendar.less +1 -1
  176. package/lib/descriptions/descriptions.js +5 -5
  177. package/lib/descriptions/descriptions.less +0 -1
  178. package/lib/descriptions/index.d.ts +1 -1
  179. package/lib/descriptions/index.d.ts.map +1 -1
  180. package/lib/descriptions/index.js +7 -7
  181. package/lib/descriptions/index.js.map +1 -1
  182. package/lib/development-login/LoginModal.js +6 -6
  183. package/lib/development-login/index.js +4 -4
  184. package/lib/drawer/drawer.d.ts +3 -3
  185. package/lib/drawer/drawer.d.ts.map +1 -1
  186. package/lib/drawer/drawer.js +7 -7
  187. package/lib/drawer/drawer.js.map +1 -1
  188. package/lib/drawer/index.less +1 -15
  189. package/lib/drawer/style/drawer.less +3 -18
  190. package/lib/drawer/style/index.d.ts +0 -1
  191. package/lib/drawer/style/index.d.ts.map +1 -1
  192. package/lib/drawer/style/index.js +1 -2
  193. package/lib/drawer/style/index.js.map +1 -1
  194. package/lib/ellipsis/Svg/CopySVG.js +1 -1
  195. package/lib/ellipsis/Svg/TickSVG.js +1 -1
  196. package/lib/ellipsis/index.js +5 -5
  197. package/lib/empty/empty.js +2 -2
  198. package/lib/empty/empty.stories.js +2 -2
  199. package/lib/exception/exception.js +1 -1
  200. package/lib/form/form.js +2 -2
  201. package/lib/form/style/index.less +0 -6
  202. package/lib/grid-v4/col.js +2 -2
  203. package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
  204. package/lib/grid-v4/index.js +1 -1
  205. package/lib/grid-v4/row.js +6 -6
  206. package/lib/handle/index.d.ts.map +1 -1
  207. package/lib/handle/index.js +11 -16
  208. package/lib/handle/index.js.map +1 -1
  209. package/lib/handle/index.less +0 -16
  210. package/lib/handle-icon/index.js +11 -11
  211. package/lib/icon/IconFont.js +1 -1
  212. package/lib/icon/components/Icon.js +9 -9
  213. package/lib/icon/components/index.js +1 -1
  214. package/lib/icon/components/utils.js +3 -3
  215. package/lib/icon/index.js +7 -7
  216. package/lib/icon/twoTonePrimaryColor.js +1 -1
  217. package/lib/icon/utils.js +1 -1
  218. package/lib/img/Contain.js +1 -1
  219. package/lib/img/Cover.js +5 -5
  220. package/lib/img/index.js +5 -5
  221. package/lib/index.js +1 -1
  222. package/lib/input/index.d.ts +1 -1
  223. package/lib/input/index.d.ts.map +1 -1
  224. package/lib/input/index.js +7 -7
  225. package/lib/input/index.js.map +1 -1
  226. package/lib/input/input.d.ts +5 -5
  227. package/lib/input/input.d.ts.map +1 -1
  228. package/lib/input/input.js +22 -13
  229. package/lib/input/input.js.map +1 -1
  230. package/lib/input/input.less +20 -123
  231. package/lib/input-number/index.d.ts +10 -4
  232. package/lib/input-number/index.d.ts.map +1 -1
  233. package/lib/input-number/index.js +32 -5
  234. package/lib/input-number/index.js.map +1 -1
  235. package/lib/label/index.js +2 -2
  236. package/lib/loading-button/index.js +5 -5
  237. package/lib/locale/default.d.ts +3 -7
  238. package/lib/locale/default.d.ts.map +1 -1
  239. package/lib/locale/default.js +1 -1
  240. package/lib/locale/en_US.d.ts +3 -7
  241. package/lib/locale/en_US.d.ts.map +1 -1
  242. package/lib/locale/en_US.js +6 -10
  243. package/lib/locale/en_US.js.map +1 -1
  244. package/lib/locale/zh_CN.d.ts +3 -7
  245. package/lib/locale/zh_CN.d.ts.map +1 -1
  246. package/lib/locale/zh_CN.js +4 -8
  247. package/lib/locale/zh_CN.js.map +1 -1
  248. package/lib/message/message.less +1 -2
  249. package/lib/modal/index.d.ts +1 -0
  250. package/lib/modal/index.d.ts.map +1 -1
  251. package/lib/modal/index.js +3 -2
  252. package/lib/modal/index.js.map +1 -1
  253. package/lib/modal/modal.d.ts.map +1 -1
  254. package/lib/modal/modal.js +16 -91
  255. package/lib/modal/modal.js.map +1 -1
  256. package/lib/modal/style/index.d.ts +0 -1
  257. package/lib/modal/style/index.d.ts.map +1 -1
  258. package/lib/modal/style/index.js +1 -2
  259. package/lib/modal/style/index.js.map +1 -1
  260. package/lib/modal/style/modal.less +3 -15
  261. package/lib/notification/assets/index.js +1 -1
  262. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  263. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  264. package/lib/notification/index.js +1 -1
  265. package/lib/notification/notification.js +1 -1
  266. package/lib/notification/notification.less +2 -27
  267. package/lib/notification/style/index.less +0 -1
  268. package/lib/page/Box.js +1 -1
  269. package/lib/page/index.js +7 -7
  270. package/lib/page-container/index.js +2 -2
  271. package/lib/page-container/index.js.map +1 -1
  272. package/lib/page-container/index.less +2 -3
  273. package/lib/page-loading/index.js +2 -2
  274. package/lib/page-loading/index.js.map +1 -1
  275. package/lib/popconfirm/index.d.ts +2 -2
  276. package/lib/popconfirm/index.d.ts.map +1 -1
  277. package/lib/popconfirm/index.js +1 -1
  278. package/lib/popconfirm/index.js.map +1 -1
  279. package/lib/popconfirm/style/index.d.ts +0 -1
  280. package/lib/popconfirm/style/index.d.ts.map +1 -1
  281. package/lib/popconfirm/style/index.js +1 -2
  282. package/lib/popconfirm/style/index.js.map +1 -1
  283. package/lib/popover/index.d.ts +2 -2
  284. package/lib/popover/index.d.ts.map +1 -1
  285. package/lib/popover/index.js +2 -2
  286. package/lib/popover/index.js.map +1 -1
  287. package/lib/popover/style/index.d.ts +0 -1
  288. package/lib/popover/style/index.d.ts.map +1 -1
  289. package/lib/popover/style/index.js +1 -2
  290. package/lib/popover/style/index.js.map +1 -1
  291. package/lib/preview-text/index.d.ts +1 -1
  292. package/lib/preview-text/index.d.ts.map +1 -1
  293. package/lib/preview-text/index.js +7 -7
  294. package/lib/preview-text/index.js.map +1 -1
  295. package/lib/progress/index.d.ts +2 -2
  296. package/lib/progress/index.d.ts.map +1 -1
  297. package/lib/progress/index.js +1 -1
  298. package/lib/progress/index.js.map +1 -1
  299. package/lib/query-form/Field/Checkbox.js +1 -1
  300. package/lib/query-form/Field/Select.js +6 -6
  301. package/lib/query-form/Field/SelectInput.js +6 -6
  302. package/lib/query-form/Field/fieldsMap.js +1 -1
  303. package/lib/query-form/Field/index.js +10 -10
  304. package/lib/query-form/createActions.js +1 -1
  305. package/lib/query-form/index.js +10 -10
  306. package/lib/query-form/useForm.js +1 -1
  307. package/lib/query-list-scene/List.d.ts.map +1 -1
  308. package/lib/query-list-scene/List.js +14 -16
  309. package/lib/query-list-scene/List.js.map +1 -1
  310. package/lib/query-list-scene/QueryForm.js +12 -11
  311. package/lib/query-list-scene/QueryForm.js.map +1 -1
  312. package/lib/query-list-scene/QueryListScene.js +10 -10
  313. package/lib/query-list-scene/Title.js +1 -1
  314. package/lib/query-list-scene/Toolbar.js +2 -2
  315. package/lib/query-list-scene/createActions.js +1 -1
  316. package/lib/query-list-scene/index.js +1 -1
  317. package/lib/query-list-scene/index.less +7 -7
  318. package/lib/query-list-scene/useActions.js +1 -1
  319. package/lib/radio/index.d.ts +2 -3
  320. package/lib/radio/index.d.ts.map +1 -1
  321. package/lib/radio/index.js +5 -2
  322. package/lib/radio/index.js.map +1 -1
  323. package/lib/radio/radio-group.js +1 -1
  324. package/lib/render-empty/render-empty.js +1 -1
  325. package/lib/segmented/index.d.ts +1 -1
  326. package/lib/segmented/index.js +2 -2
  327. package/lib/segmented/index.less +112 -126
  328. package/lib/select/index.d.ts +1 -1
  329. package/lib/select/index.d.ts.map +1 -1
  330. package/lib/select/index.js +6 -6
  331. package/lib/select/index.js.map +1 -1
  332. package/lib/select/select.d.ts +1 -1
  333. package/lib/select/select.d.ts.map +1 -1
  334. package/lib/select/select.js +6 -5
  335. package/lib/select/select.js.map +1 -1
  336. package/lib/select/select.less +9 -83
  337. package/lib/select/style/index.less +4 -4
  338. package/lib/spin/index.d.ts +2 -3
  339. package/lib/spin/index.d.ts.map +1 -1
  340. package/lib/spin/index.js +6 -4
  341. package/lib/spin/index.js.map +1 -1
  342. package/lib/steps/index.d.ts +2 -1
  343. package/lib/steps/index.d.ts.map +1 -1
  344. package/lib/steps/index.js +2 -9
  345. package/lib/steps/index.js.map +1 -1
  346. package/lib/steps/stepStyle/index.less +8 -173
  347. package/lib/steps/stepStyle/nav.less +259 -51
  348. package/lib/steps/steps.d.ts +2 -10
  349. package/lib/steps/steps.d.ts.map +1 -1
  350. package/lib/steps/steps.js +24 -52
  351. package/lib/steps/steps.js.map +1 -1
  352. package/lib/steps/style/index.d.ts.map +1 -1
  353. package/lib/steps/style/index.js.map +1 -1
  354. package/lib/style/themes/default.less +5 -6
  355. package/lib/svg-components/illustration-403.d.ts +1 -1
  356. package/lib/svg-components/illustration-404.d.ts +1 -1
  357. package/lib/svg-components/illustration-500.d.ts +1 -1
  358. package/lib/svg-components/illustration-empty.d.ts +1 -1
  359. package/lib/svg-components/illustration-failure.d.ts +1 -1
  360. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  361. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  362. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  363. package/lib/svg-components/illustration-offline.d.ts +1 -1
  364. package/lib/svg-components/illustration-success.d.ts +1 -1
  365. package/lib/svg-components/index.js +1 -1
  366. package/lib/switch/style/index.d.ts +0 -1
  367. package/lib/switch/style/index.d.ts.map +1 -1
  368. package/lib/switch/style/index.js +1 -2
  369. package/lib/switch/style/index.js.map +1 -1
  370. package/lib/switch/switch.d.ts +0 -8
  371. package/lib/switch/switch.d.ts.map +1 -1
  372. package/lib/switch/switch.js +5 -40
  373. package/lib/switch/switch.js.map +1 -1
  374. package/lib/table/assets/image-loading-background.d.ts +1 -1
  375. package/lib/table/assets/image-loading.d.ts +1 -1
  376. package/lib/table/hooks/use-column-setting.js +4 -4
  377. package/lib/table/hooks/use-expand-fixed.js +6 -6
  378. package/lib/table/hooks/use-expand-fixed.js.map +1 -1
  379. package/lib/table/resizableTable/index.js +6 -6
  380. package/lib/table/resizableTable/index.less +18 -0
  381. package/lib/table/style/index.less +21 -19
  382. package/lib/table/style/size.less +12 -11
  383. package/lib/table/table-hoc.js +1 -1
  384. package/lib/table/table.d.ts +1 -2
  385. package/lib/table/table.d.ts.map +1 -1
  386. package/lib/table/table.js +41 -61
  387. package/lib/table/table.js.map +1 -1
  388. package/lib/table/table.less +6 -31
  389. package/lib/table/table.stories.js +5 -5
  390. package/lib/table/table.stories.js.map +1 -1
  391. package/lib/table/total-shower.js +1 -1
  392. package/lib/table/utils.js +1 -1
  393. package/lib/table-container/index.d.ts.map +1 -1
  394. package/lib/table-container/index.js +3 -7
  395. package/lib/table-container/index.js.map +1 -1
  396. package/lib/table-container/index.less +1 -4
  397. package/lib/tabs/index.d.ts +0 -1
  398. package/lib/tabs/index.d.ts.map +1 -1
  399. package/lib/tabs/index.js +5 -6
  400. package/lib/tabs/index.js.map +1 -1
  401. package/lib/tabs/style/index.js.map +1 -1
  402. package/lib/tabs/style/index.less +0 -1
  403. package/lib/tabs/tabs.d.ts +2 -3
  404. package/lib/tabs/tabs.d.ts.map +1 -1
  405. package/lib/tabs/tabs.js +3 -30
  406. package/lib/tabs/tabs.js.map +1 -1
  407. package/lib/tabs-container/index.js +2 -2
  408. package/lib/tabs-container/index.js.map +1 -1
  409. package/lib/tag/tag.js +2 -2
  410. package/lib/tag/tag.less +3 -4
  411. package/lib/time-picker/index.d.ts +6 -7
  412. package/lib/time-picker/index.d.ts.map +1 -1
  413. package/lib/time-picker/index.js +17 -4
  414. package/lib/time-picker/index.js.map +1 -1
  415. package/lib/title/index.js +1 -1
  416. package/lib/title/index.less +45 -47
  417. package/lib/tntd-action/index.d.ts +2 -4
  418. package/lib/tntd-action/index.d.ts.map +1 -1
  419. package/lib/tntd-action/index.js +5 -79
  420. package/lib/tntd-action/index.js.map +1 -1
  421. package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
  422. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  423. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  424. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  425. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  426. package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
  427. package/lib/tntd-cascader/AntdCascader/index.js +7 -7
  428. package/lib/tntd-cascader/AntdCascader/index.less +29 -35
  429. package/lib/tntd-cascader/index.js +1 -1
  430. package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
  431. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  432. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -8
  433. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  434. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  435. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  436. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  437. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  438. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  439. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  440. package/lib/tntd-cascader/rc-cascader/index.js +1 -1
  441. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  442. package/lib/tntd-form/ErrorList.js +7 -7
  443. package/lib/tntd-form/Form.js +6 -6
  444. package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
  445. package/lib/tntd-form/FormItem/index.js +8 -8
  446. package/lib/tntd-form/FormItemInput.js +1 -1
  447. package/lib/tntd-form/FormItemLabel.js +2 -2
  448. package/lib/tntd-form/FormList.js +1 -1
  449. package/lib/tntd-form/context.js +1 -1
  450. package/lib/tntd-form/hooks/useDebounce.js +4 -4
  451. package/lib/tntd-form/hooks/useForm.js +5 -5
  452. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
  453. package/lib/tntd-form/hooks/useFrameState.js +5 -5
  454. package/lib/tntd-form/index.js +1 -1
  455. package/lib/tntd-icon/index.js +1 -1
  456. package/lib/tntd-layout/AppList.js +6 -6
  457. package/lib/tntd-layout/Application.js +6 -6
  458. package/lib/tntd-layout/Avatar.js +2 -2
  459. package/lib/tntd-layout/CompatibleLanguage.js +6 -6
  460. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  461. package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
  462. package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  463. package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
  464. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  465. package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
  466. package/lib/tntd-layout/Header.js +2 -2
  467. package/lib/tntd-layout/HeaderActions.js +2 -2
  468. package/lib/tntd-layout/HeaderNavs.js +6 -6
  469. package/lib/tntd-layout/HeaderTabs.js +7 -7
  470. package/lib/tntd-layout/Iconfont.js +1 -1
  471. package/lib/tntd-layout/Language.js +6 -6
  472. package/lib/tntd-layout/Layout.js +6 -6
  473. package/lib/tntd-layout/Logo.js +2 -2
  474. package/lib/tntd-layout/OrgAppList.js +6 -6
  475. package/lib/tntd-layout/SideMenu.js +6 -6
  476. package/lib/tntd-layout/Theme.js +6 -6
  477. package/lib/tntd-layout/createActions.js +1 -1
  478. package/lib/tntd-layout/images/index.js +1 -1
  479. package/lib/tntd-layout/index.js +1 -1
  480. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  481. package/lib/tntd-layout/paaslayout/Header.js +2 -2
  482. package/lib/tntd-layout/paaslayout/Logo.js +2 -2
  483. package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
  484. package/lib/tntd-layout/paaslayout/index.js +6 -6
  485. package/lib/tntd-layout/storage.js +1 -1
  486. package/lib/tntd-modal/index.js +6 -6
  487. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  488. package/lib/tntd-rc-select/_util/context.js +1 -1
  489. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  490. package/lib/tntd-rc-select/_util/getIcons.js +1 -1
  491. package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  492. package/lib/tntd-rc-select/index.js +2 -2
  493. package/lib/tntd-reference/AHref/index.js +1 -1
  494. package/lib/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  495. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  496. package/lib/tntd-reference/ReferenceCheck/index.js +1 -1
  497. package/lib/tntd-reference/ReferenceDrawer/index.js +5 -5
  498. package/lib/tntd-reference/ReferenceInfo/index.js +1 -1
  499. package/lib/tntd-reference/index.js +1 -1
  500. package/lib/tntd-second-page/index.js +1 -1
  501. package/lib/tntd-select/DropDownWrap.js +8 -8
  502. package/lib/tntd-select/index.d.ts.map +1 -1
  503. package/lib/tntd-select/index.js +13 -13
  504. package/lib/tntd-select/index.js.map +1 -1
  505. package/lib/tntd-virtual-tree/index.js +8 -8
  506. package/lib/tntd-virtual-tree/index.less +1 -2
  507. package/lib/tntd-virtual-tree/utils.js +28 -28
  508. package/lib/tntd-virtual-tree-select/index.js +10 -10
  509. package/lib/tntd-virtual-tree-select/index.less +14 -1
  510. package/lib/tntd-virtual-tree-select/utils.js +9 -9
  511. package/lib/tooltip/index.less +5 -4
  512. package/lib/tooltip/style/index.d.ts +0 -1
  513. package/lib/tooltip/style/index.d.ts.map +1 -1
  514. package/lib/tooltip/style/index.js +1 -2
  515. package/lib/tooltip/style/index.js.map +1 -1
  516. package/lib/tooltip/tooltip.js +1 -1
  517. package/lib/upload/index.d.ts +1 -0
  518. package/lib/upload/index.d.ts.map +1 -1
  519. package/lib/upload/index.js +208 -4
  520. package/lib/upload/index.js.map +1 -1
  521. package/lib/upload/style/index.less +1 -1
  522. package/lib/upload/svg/UploadSVG.js +1 -1
  523. package/lib/utils/checkAuth.js +4 -4
  524. package/lib/utils/index.d.ts +1 -0
  525. package/lib/utils/index.d.ts.map +1 -1
  526. package/lib/utils/index.js +9 -9
  527. package/lib/utils/lang.d.ts.map +1 -1
  528. package/lib/utils/lang.js +4 -10
  529. package/lib/utils/lang.js.map +1 -1
  530. package/lib/water-mark/index.js +5 -5
  531. package/package.json +1 -1
  532. package/es/alert/alert.js +0 -71
  533. package/es/alert/alert.js.map +0 -1
  534. package/es/alert/alert.less +0 -128
  535. package/es/cascader/cascader.js +0 -30
  536. package/es/cascader/cascader.js.map +0 -1
  537. package/es/cascader/cascader.less +0 -16
  538. package/es/checkbox/check.png +0 -0
  539. package/es/checkbox/checkbox.js +0 -48
  540. package/es/checkbox/checkbox.js.map +0 -1
  541. package/es/checkbox/checkbox.less +0 -69
  542. package/es/date-picker/DatePicker.js +0 -101
  543. package/es/date-picker/DatePicker.js.map +0 -1
  544. package/es/date-picker/index.less +0 -294
  545. package/es/input-number/inputNumber.js +0 -34
  546. package/es/input-number/inputNumber.js.map +0 -1
  547. package/es/input-number/inputNumber.less +0 -12
  548. package/es/modal/index.less +0 -36
  549. package/es/popconfirm/index.less +0 -32
  550. package/es/popconfirm/popconfirm.js +0 -43
  551. package/es/popconfirm/popconfirm.js.map +0 -1
  552. package/es/popover/index.less +0 -57
  553. package/es/popover/popover.js +0 -34
  554. package/es/popover/popover.js.map +0 -1
  555. package/es/progress/progress.js +0 -132
  556. package/es/progress/progress.js.map +0 -1
  557. package/es/progress/progress.less +0 -82
  558. package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  559. package/es/query-form-backup/Field/Composition/index.less +0 -114
  560. package/es/query-form-backup/index.less +0 -90
  561. package/es/radio/radio.js +0 -57
  562. package/es/radio/radio.js.map +0 -1
  563. package/es/radio/radio.less +0 -43
  564. package/es/spin/spin.js +0 -36
  565. package/es/spin/spin.js.map +0 -1
  566. package/es/spin/spin.less +0 -9
  567. package/es/steps/assets/background_left.svg +0 -12
  568. package/es/steps/assets/background_right.svg +0 -12
  569. package/es/steps/assets/horizontal_line.svg +0 -3
  570. package/es/steps/assets/vertical_line.svg +0 -3
  571. package/es/steps/stepStyle/icon.less +0 -51
  572. package/es/steps/stepStyle/progress-dot.less +0 -10
  573. package/es/steps/stepStyle/variables.less +0 -8
  574. package/es/steps/stepStyle/vertical.less +0 -41
  575. package/es/switch/index.less +0 -45
  576. package/es/tabs/tabs.less +0 -125
  577. package/es/time-picker/TimePicker.js +0 -36
  578. package/es/time-picker/TimePicker.js.map +0 -1
  579. package/es/time-picker/index.less +0 -38
  580. package/es/tntd-action/Action.js +0 -117
  581. package/es/tntd-action/Action.js.map +0 -1
  582. package/es/tntd-action/index.less +0 -59
  583. package/es/tntd-select/index.less +0 -7
  584. package/lib/alert/alert.d.ts +0 -12
  585. package/lib/alert/alert.d.ts.map +0 -1
  586. package/lib/alert/alert.js +0 -93
  587. package/lib/alert/alert.js.map +0 -1
  588. package/lib/alert/alert.less +0 -128
  589. package/lib/cascader/cascader.d.ts +0 -10
  590. package/lib/cascader/cascader.d.ts.map +0 -1
  591. package/lib/cascader/cascader.js +0 -49
  592. package/lib/cascader/cascader.js.map +0 -1
  593. package/lib/cascader/cascader.less +0 -16
  594. package/lib/checkbox/check.png +0 -0
  595. package/lib/checkbox/checkbox.d.ts +0 -16
  596. package/lib/checkbox/checkbox.d.ts.map +0 -1
  597. package/lib/checkbox/checkbox.js +0 -65
  598. package/lib/checkbox/checkbox.js.map +0 -1
  599. package/lib/checkbox/checkbox.less +0 -69
  600. package/lib/date-picker/DatePicker.d.ts +0 -21
  601. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  602. package/lib/date-picker/DatePicker.js +0 -128
  603. package/lib/date-picker/DatePicker.js.map +0 -1
  604. package/lib/date-picker/index.less +0 -294
  605. package/lib/input-number/inputNumber.d.ts +0 -10
  606. package/lib/input-number/inputNumber.d.ts.map +0 -1
  607. package/lib/input-number/inputNumber.js +0 -54
  608. package/lib/input-number/inputNumber.js.map +0 -1
  609. package/lib/input-number/inputNumber.less +0 -12
  610. package/lib/modal/index.less +0 -36
  611. package/lib/popconfirm/index.less +0 -32
  612. package/lib/popconfirm/popconfirm.d.ts +0 -8
  613. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  614. package/lib/popconfirm/popconfirm.js +0 -61
  615. package/lib/popconfirm/popconfirm.js.map +0 -1
  616. package/lib/popover/index.less +0 -57
  617. package/lib/popover/popover.d.ts +0 -14
  618. package/lib/popover/popover.d.ts.map +0 -1
  619. package/lib/popover/popover.js +0 -55
  620. package/lib/popover/popover.js.map +0 -1
  621. package/lib/progress/progress.d.ts +0 -12
  622. package/lib/progress/progress.d.ts.map +0 -1
  623. package/lib/progress/progress.js +0 -148
  624. package/lib/progress/progress.js.map +0 -1
  625. package/lib/progress/progress.less +0 -82
  626. package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  627. package/lib/query-form-backup/Field/Composition/index.less +0 -114
  628. package/lib/query-form-backup/index.less +0 -90
  629. package/lib/radio/radio.d.ts +0 -17
  630. package/lib/radio/radio.d.ts.map +0 -1
  631. package/lib/radio/radio.js +0 -75
  632. package/lib/radio/radio.js.map +0 -1
  633. package/lib/radio/radio.less +0 -43
  634. package/lib/spin/spin.d.ts +0 -9
  635. package/lib/spin/spin.d.ts.map +0 -1
  636. package/lib/spin/spin.js +0 -44
  637. package/lib/spin/spin.js.map +0 -1
  638. package/lib/spin/spin.less +0 -9
  639. package/lib/steps/assets/background_left.svg +0 -12
  640. package/lib/steps/assets/background_right.svg +0 -12
  641. package/lib/steps/assets/horizontal_line.svg +0 -3
  642. package/lib/steps/assets/vertical_line.svg +0 -3
  643. package/lib/steps/stepStyle/icon.less +0 -51
  644. package/lib/steps/stepStyle/progress-dot.less +0 -10
  645. package/lib/steps/stepStyle/variables.less +0 -8
  646. package/lib/steps/stepStyle/vertical.less +0 -41
  647. package/lib/switch/index.less +0 -45
  648. package/lib/tabs/tabs.less +0 -125
  649. package/lib/time-picker/TimePicker.d.ts +0 -9
  650. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  651. package/lib/time-picker/TimePicker.js +0 -55
  652. package/lib/time-picker/TimePicker.js.map +0 -1
  653. package/lib/time-picker/index.less +0 -38
  654. package/lib/tntd-action/Action.d.ts +0 -6
  655. package/lib/tntd-action/Action.d.ts.map +0 -1
  656. package/lib/tntd-action/Action.js +0 -141
  657. package/lib/tntd-action/Action.js.map +0 -1
  658. package/lib/tntd-action/index.less +0 -59
  659. package/lib/tntd-select/index.less +0 -7
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  var _exportNames = {};
8
8
  exports["default"] = void 0;
9
- var _popconfirm = _interopRequireWildcard(require("./popconfirm"));
9
+ var _popconfirm = _interopRequireWildcard(require("antd/lib/popconfirm"));
10
10
  Object.keys(_popconfirm).forEach(function (key) {
11
11
  if (key === "default" || key === "__esModule") return;
12
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popconfirm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,8DAAqC;AAErC,mBAAgB;AAEhB,+CAA4B;AAE5B,kBAAe,oBAAU,CAAA","sourcesContent":["import Popconfirm from './popconfirm'\n\nimport './style'\n\nexport * from './popconfirm'\n\nexport default Popconfirm\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popconfirm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,oEAA2C;AAE3C,mBAAgB;AAEhB,qDAAkC;AAElC,kBAAe,oBAAU,CAAA","sourcesContent":["import Popconfirm from 'antd/lib/popconfirm'\n\nimport './style'\n\nexport * from 'antd/lib/popconfirm'\n\nexport default Popconfirm\n"]}
@@ -1,5 +1,4 @@
1
1
  import '../../style/index.less';
2
2
  import '../../popover/style';
3
3
  import '../../button/style';
4
- import '../index.less';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/popconfirm/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAI/B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/popconfirm/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAI/B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,oBAAoB,CAAA"}
@@ -2,5 +2,4 @@
2
2
 
3
3
  require("../../style/index.less");
4
4
  require("../../popover/style");
5
- require("../../button/style");
6
- require("../index.less");
5
+ require("../../button/style");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/popconfirm/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAE/B,qBAAqB;AACrB,mCAAmC;AACnC,+BAA4B;AAC5B,8BAA2B;AAC3B,yBAAsB","sourcesContent":["import '../../style/index.less'\n\n// style dependencies\n// deps-lint-skip: tooltip, popover\nimport '../../popover/style'\nimport '../../button/style'\nimport '../index.less'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/popconfirm/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAE/B,qBAAqB;AACrB,mCAAmC;AACnC,+BAA4B;AAC5B,8BAA2B","sourcesContent":["import '../../style/index.less'\n\n// style dependencies\n// deps-lint-skip: tooltip, popover\nimport '../../popover/style'\nimport '../../button/style'\n"]}
@@ -1,5 +1,5 @@
1
+ import Popover from 'antd/lib/popover';
1
2
  import './style';
2
- import Popover from './popover';
3
- export * from './popover';
3
+ export * from 'antd/lib/popover';
4
4
  export default Popover;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,cAAc,WAAW,CAAA;AAEzB,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iBAAiB,CAAA;AAErC,OAAO,SAAS,CAAA;AAEhB,cAAc,iBAAiB,CAAA;AAE/B,eAAe,OAAO,CAAA"}
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  var _exportNames = {};
8
8
  exports["default"] = void 0;
9
- require("./style");
10
- var _popover = _interopRequireWildcard(require("./popover"));
9
+ var _popover = _interopRequireWildcard(require("antd/lib/popover"));
11
10
  Object.keys(_popover).forEach(function (key) {
12
11
  if (key === "default" || key === "__esModule") return;
13
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -19,6 +18,7 @@ Object.keys(_popover).forEach(function (key) {
19
18
  }
20
19
  });
21
20
  });
21
+ require("./style");
22
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
24
  var _default = exports["default"] = _popover["default"];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,mBAAgB;AAChB,wDAA+B;AAE/B,4CAAyB;AAEzB,kBAAe,iBAAO,CAAA","sourcesContent":["import './style'\nimport Popover from './popover'\n\nexport * from './popover'\n\nexport default Popover\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,8DAAqC;AAErC,mBAAgB;AAEhB,kDAA+B;AAE/B,kBAAe,iBAAO,CAAA","sourcesContent":["import Popover from 'antd/lib/popover'\n\nimport './style'\n\nexport * from 'antd/lib/popover'\n\nexport default Popover\n"]}
@@ -1,4 +1,3 @@
1
1
  import '../../style/index.less';
2
2
  import './index.less';
3
- import '../index.less';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/popover/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA;AACrB,OAAO,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/popover/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA"}
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
 
3
3
  require("../../style/index.less");
4
- require("./index.less");
5
- require("../index.less");
4
+ require("./index.less");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/popover/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB;AACrB,yBAAsB;AACtB,qBAAqB;AACrB,0BAA0B","sourcesContent":["import '../../style/index.less'\nimport './index.less'\nimport '../index.less'\n// style dependencies\n// deps-lint-skip: tooltip\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/popover/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB;AAErB,qBAAqB;AACrB,0BAA0B","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n\n// style dependencies\n// deps-lint-skip: tooltip\n"]}
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import type { InputProps } from 'antd/lib/input';
3
3
  import type { TreeSelectProps } from 'antd/lib/tree-select';
4
4
  import type { CascaderProps } from 'antd/lib/cascader';
5
- import type { DatePickerProps, MonthPickerProps, WeekPickerProps } from 'antd/lib/date-picker/interface';
5
+ import type { DatePickerProps, MonthPickerProps, WeekPickerProps } from '../date-picker';
6
6
  import type { SelectProps } from '../select';
7
7
  import type { TimePickerProps } from 'antd/lib/time-picker';
8
8
  export declare const PreviewText: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preview-text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,SAAS,EAAc,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAY,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIzE,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,eAAe,EAChB,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AA4P1D,eAAO,MAAM,WAAW;;;;;;;;;6BAtPQ,OAAO,KAAG,MAAM,GAAG,SAAS;CAgQ3D,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preview-text/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,SAAS,EAAc,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAY,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIzE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACxF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AA4P1D,eAAO,MAAM,WAAW;;;;;;;;;6BAtPQ,OAAO,KAAG,MAAM,GAAG,SAAS;CAgQ3D,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -15,7 +15,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
  var _context = require("../tntd-form/context");
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
18
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
19
  var prefixCls = 'tnt-preview-text';
20
20
  var isValid = function isValid(value) {
21
21
  return !(0, _isUndefined2["default"])(value) && !(0, _isNull2["default"])(value) && value !== '';
@@ -116,13 +116,13 @@ var TreeSelect = function TreeSelect(_ref3) {
116
116
  }
117
117
  }
118
118
  };
119
- var _findLabel = function findLabel(value, dataSource) {
119
+ var findLabel = function findLabel(value, dataSource) {
120
120
  for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
121
121
  var item = dataSource[i];
122
122
  if ((item === null || item === void 0 ? void 0 : item.value) === value || (item === null || item === void 0 ? void 0 : item.key) === value) {
123
123
  return item === null || item === void 0 ? void 0 : item.title;
124
124
  } else {
125
- var childLabel = _findLabel(value, item === null || item === void 0 ? void 0 : item.children);
125
+ var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
126
126
  if (childLabel) return childLabel;
127
127
  }
128
128
  }
@@ -135,7 +135,7 @@ var TreeSelect = function TreeSelect(_ref3) {
135
135
  label = _ref4.label;
136
136
  return _react["default"].createElement(_react["default"].Fragment, null, multiple ? _react["default"].createElement(_tag["default"], {
137
137
  key: key
138
- }, _findLabel(value, dataSource) || label || placeholder) : _findLabel(value, dataSource) || label || placeholder);
138
+ }, findLabel(value, dataSource) || label || placeholder) : findLabel(value, dataSource) || label || placeholder);
139
139
  });
140
140
  };
141
141
  return _react["default"].createElement("div", {
@@ -153,13 +153,13 @@ var Cascader = function Cascader(_ref5) {
153
153
  var getSelected = function getSelected() {
154
154
  return (0, _isArray2["default"])(value) ? value : [];
155
155
  };
156
- var _findLabel2 = function findLabel(value, dataSource) {
156
+ var findLabel = function findLabel(value, dataSource) {
157
157
  for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
158
158
  var item = dataSource[i];
159
159
  if ((item === null || item === void 0 ? void 0 : item.value) === value) {
160
160
  return item === null || item === void 0 ? void 0 : item.label;
161
161
  } else {
162
- var childLabel = _findLabel2(value, item === null || item === void 0 ? void 0 : item.children);
162
+ var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
163
163
  if (childLabel) return childLabel;
164
164
  }
165
165
  }
@@ -170,7 +170,7 @@ var Cascader = function Cascader(_ref5) {
170
170
  return placeholder;
171
171
  }
172
172
  return selected.map(function (value) {
173
- return _findLabel2(value, dataSource) || placeholder;
173
+ return findLabel(value, dataSource) || placeholder;
174
174
  }).join('/');
175
175
  };
176
176
  return _react["default"].createElement("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/preview-text/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwD;AAIxD,iDAAwB;AACxB,4DAA2B;AAC3B,mCAAiE;AAOjE,kDAAkD;AAGlD,MAAM,SAAS,GAAG,kBAAkB,CAAA;AAEpC,MAAM,OAAO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,UAAU;IACV,QAAQ;IACR,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAA;AAED,kBAAe,mBAAW,CAAA","sourcesContent":["import React, { FC, ReactNode, useContext } from 'react'\nimport type { InputProps } from 'antd/lib/input'\nimport type { TreeNode, TreeSelectProps } from 'antd/lib/tree-select'\nimport type { CascaderOptionType, CascaderProps } from 'antd/lib/cascader'\nimport Tag from '../tag'\nimport cc from 'classnames'\nimport { isUndefined, isArray, isNull, isFunction } from 'lodash'\nimport type {\n DatePickerProps,\n MonthPickerProps,\n WeekPickerProps,\n} from 'antd/lib/date-picker/interface'\nimport type { SelectProps } from '../select'\nimport { FormContext } from '../tntd-form/context'\nimport type { TimePickerProps } from 'antd/lib/time-picker'\n\nconst prefixCls = 'tnt-preview-text'\n\nconst isValid = (value?: unknown) => !isUndefined(value) && !isNull(value) && value !== ''\n\nconst usePlaceholder = (value?: unknown): string | ReactNode => {\n const { placeholder } = useContext(FormContext)\n\n return isValid(value) ? (value as string) : placeholder\n}\n\nconst Input: React.FC<InputProps> = (props) => (\n <div className={cc([props.className])} style={props.style}>\n {props.addonBefore}\n {props.prefix}\n {usePlaceholder(props.value)}\n {props.suffix}\n {props.addonAfter}\n </div>\n)\n\nconst Select: FC<SelectProps> = ({ options, mode, value, labelInValue, className, style }) => {\n const dataSource = (options || []) as Array<{\n label: string\n value: string\n }>\n const placeholder = usePlaceholder()\n const isMultiple = ['multiple', 'tags'].includes(mode ?? '') || isArray(value)\n const getSelected = () => {\n if (isMultiple) {\n if (labelInValue) {\n return isArray(value) ? value : []\n } else {\n return isArray(value) ? value.map((val) => ({ label: val, value: val })) : []\n }\n } else {\n if (labelInValue) {\n return isValid(value) ? [value] : []\n } else {\n return isValid(value) ? [{ label: value, value }] : []\n }\n }\n }\n\n const getLabels = (): string | ReactNode => {\n const selected = getSelected() as Array<{ label: string; value: string }>\n if (!selected.length) return placeholder\n return selected.map(({ label, value }, key) => {\n const text = dataSource?.find((item) => item.value === value)?.label || label\n return isMultiple ? <Tag key={key}>{text || placeholder}</Tag> : text || placeholder\n })\n }\n return (\n <div className={cc([prefixCls, className])} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst TreeSelect: React.FC<TreeSelectProps<any>> = ({\n value,\n multiple,\n labelInValue,\n treeData,\n className,\n style,\n}) => {\n const placeholder = usePlaceholder()\n const dataSource: TreeNode[] = treeData || []\n const getSelected = () => {\n if (multiple) {\n if (labelInValue) {\n return isArray(value) ? value : []\n } else {\n return isArray(value) ? value.map((val) => ({ label: val, value: val })) : []\n }\n } else {\n if (labelInValue) {\n return value ? [value] : []\n } else {\n return value ? [{ label: value, value }] : []\n }\n }\n }\n\n const findLabel = (value: string, dataSource: TreeNode[]): unknown => {\n for (let i = 0; i < dataSource?.length; i++) {\n const item = dataSource[i]\n if (item?.value === value || item?.key === value) {\n return item?.title\n } else {\n const childLabel = findLabel(value, item?.children as TreeNode[])\n if (childLabel) return childLabel\n }\n }\n }\n\n const getLabels = () => {\n const selected = getSelected()\n if (!selected?.length) return <Tag>{placeholder as string}</Tag>\n return selected.map(({ value, label }, key) => {\n return (\n <>\n {multiple ? (\n <Tag key={key}>{findLabel(value, dataSource) || label || placeholder}</Tag>\n ) : (\n findLabel(value, dataSource) || label || placeholder\n )}\n </>\n )\n })\n }\n return (\n <div className={cc([prefixCls, className])} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst Cascader: React.FC<CascaderProps> = ({ options, value, className, style }) => {\n const placeholder = usePlaceholder()\n const dataSource: CascaderOptionType[] = options || []\n const getSelected = () => {\n return isArray(value) ? value : []\n }\n const findLabel = (value: any, dataSource: any[]): any => {\n for (let i = 0; i < dataSource?.length; i++) {\n const item = dataSource[i]\n if (item?.value === value) {\n return item?.label\n } else {\n const childLabel = findLabel(value, item?.children)\n if (childLabel) return childLabel\n }\n }\n }\n const getLabels = () => {\n const selected = getSelected()\n if (!selected?.length) {\n return placeholder\n }\n return selected\n .map((value) => {\n return findLabel(value, dataSource) || placeholder\n })\n .join('/')\n }\n return (\n <div className={cc([prefixCls, className])} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst formatMomentValue = (value: any, format: any, placeholder?: string): string | string[] => {\n const formatDate = (date: any, format: any, i = 0) => {\n if (!date) return placeholder\n if (isArray(format)) {\n const _format = format[i]\n if (isFunction(_format)) {\n return _format(date)\n }\n return date?.format ? date.format(_format) : date\n } else {\n if (isFunction(format)) {\n return format(date)\n }\n return date?.format ? date.format(format) : date\n }\n }\n if (isArray(value)) {\n return value.map((val, index) => {\n return formatDate(val, format, index)\n })\n } else {\n return value ? formatDate(value, format) : value || placeholder\n }\n}\n\nconst DatePicker: React.FC<DatePickerProps> = ({\n value,\n format,\n showTime,\n placeholder,\n className,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(\n value,\n format || `YYYY-MM-DD${showTime ? ' HH:mm:ss' : ''}`,\n placeholder\n )\n return isArray(labels) ? labels.join('~') : labels\n }\n return <div className={cc([prefixCls, className])}>{getLabels()}</div>\n}\n\nconst TimePicker: React.FC<TimePickerProps> = ({\n value,\n format,\n placeholder,\n className,\n style,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(value, format || 'HH:mm:ss', placeholder)\n return isArray(labels) ? labels.join('~') : labels\n }\n return (\n <div className={cc(prefixCls, className)} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst MonthPicker: React.FC<MonthPickerProps> = ({\n value,\n format,\n placeholder,\n className,\n style,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(value, format || 'YYYY-MM', placeholder)\n return isArray(labels) ? labels.join('~') : labels\n }\n return (\n <div className={cc(prefixCls, className)} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst WeekPicker: React.FC<WeekPickerProps> = ({\n value,\n format,\n placeholder,\n className,\n style,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(value, format || 'gggg-wo', placeholder)\n return isArray(labels) ? labels.join('~') : labels\n }\n return (\n <div className={cc(prefixCls, className)} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nexport const PreviewText = {\n Input,\n Select,\n TreeSelect,\n Cascader,\n DatePicker,\n TimePicker,\n MonthPicker,\n WeekPicker,\n usePlaceholder,\n}\n\nexport default PreviewText\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/preview-text/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwD;AAIxD,iDAAwB;AACxB,4DAA2B;AAC3B,mCAAiE;AAGjE,kDAAkD;AAGlD,MAAM,SAAS,GAAG,kBAAkB,CAAA;AAEpC,MAAM,OAAO,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,CAAC,IAAA,oBAAW,EAAC,KAAK,CAAC,IAAI,CAAC,IAAA,eAAM,EAAC,KAAK,CAAC,IAAI,KAAK,KAAK,EAAE,CAAA;AAE1F,MAAM,cAAc,GAAG,CAAC,KAAe,EAAsB,EAAE;IAC7D,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAU,EAAC,qBAAW,CAAC,CAAA;IAE/C,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAgB,CAAC,CAAC,CAAC,WAAW,CAAA;AACzD,CAAC,CAAA;AAED,MAAM,KAAK,GAAyB,CAAC,KAAK,EAAE,EAAE,CAAC,CAC7C,uCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK;IACtD,KAAK,CAAC,WAAW;IACjB,KAAK,CAAC,MAAM;IACZ,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC;IAC3B,KAAK,CAAC,MAAM;IACZ,KAAK,CAAC,UAAU,CACb,CACP,CAAA;AAED,MAAM,MAAM,GAAoB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE;IAC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EAAE,MAAM,IAAI,SAAS,EAAE,WAAW,CAAC,CAAA;QACzE,OAAO,IAAA,gBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;IACpD,CAAC,CAAA;IACD,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAE,EAAC,SAAS,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,IACnD,SAAS,EAAE,CACR,CACP,CAAA;AACH,CAAC,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,KAAK;IACL,MAAM;IACN,UAAU;IACV,QAAQ;IACR,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAA;AAED,kBAAe,mBAAW,CAAA","sourcesContent":["import React, { FC, ReactNode, useContext } from 'react'\nimport type { InputProps } from 'antd/lib/input'\nimport type { TreeNode, TreeSelectProps } from 'antd/lib/tree-select'\nimport type { CascaderOptionType, CascaderProps } from 'antd/lib/cascader'\nimport Tag from '../tag'\nimport cc from 'classnames'\nimport { isUndefined, isArray, isNull, isFunction } from 'lodash'\nimport type { DatePickerProps, MonthPickerProps, WeekPickerProps } from '../date-picker'\nimport type { SelectProps } from '../select'\nimport { FormContext } from '../tntd-form/context'\nimport type { TimePickerProps } from 'antd/lib/time-picker'\n\nconst prefixCls = 'tnt-preview-text'\n\nconst isValid = (value?: unknown) => !isUndefined(value) && !isNull(value) && value !== ''\n\nconst usePlaceholder = (value?: unknown): string | ReactNode => {\n const { placeholder } = useContext(FormContext)\n\n return isValid(value) ? (value as string) : placeholder\n}\n\nconst Input: React.FC<InputProps> = (props) => (\n <div className={cc([props.className])} style={props.style}>\n {props.addonBefore}\n {props.prefix}\n {usePlaceholder(props.value)}\n {props.suffix}\n {props.addonAfter}\n </div>\n)\n\nconst Select: FC<SelectProps> = ({ options, mode, value, labelInValue, className, style }) => {\n const dataSource = (options || []) as Array<{\n label: string\n value: string\n }>\n const placeholder = usePlaceholder()\n const isMultiple = ['multiple', 'tags'].includes(mode ?? '') || isArray(value)\n const getSelected = () => {\n if (isMultiple) {\n if (labelInValue) {\n return isArray(value) ? value : []\n } else {\n return isArray(value) ? value.map((val) => ({ label: val, value: val })) : []\n }\n } else {\n if (labelInValue) {\n return isValid(value) ? [value] : []\n } else {\n return isValid(value) ? [{ label: value, value }] : []\n }\n }\n }\n\n const getLabels = (): string | ReactNode => {\n const selected = getSelected() as Array<{ label: string; value: string }>\n if (!selected.length) return placeholder\n return selected.map(({ label, value }, key) => {\n const text = dataSource?.find((item) => item.value === value)?.label || label\n return isMultiple ? <Tag key={key}>{text || placeholder}</Tag> : text || placeholder\n })\n }\n return (\n <div className={cc([prefixCls, className])} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst TreeSelect: React.FC<TreeSelectProps<any>> = ({\n value,\n multiple,\n labelInValue,\n treeData,\n className,\n style,\n}) => {\n const placeholder = usePlaceholder()\n const dataSource: TreeNode[] = treeData || []\n const getSelected = () => {\n if (multiple) {\n if (labelInValue) {\n return isArray(value) ? value : []\n } else {\n return isArray(value) ? value.map((val) => ({ label: val, value: val })) : []\n }\n } else {\n if (labelInValue) {\n return value ? [value] : []\n } else {\n return value ? [{ label: value, value }] : []\n }\n }\n }\n\n const findLabel = (value: string, dataSource: TreeNode[]): unknown => {\n for (let i = 0; i < dataSource?.length; i++) {\n const item = dataSource[i]\n if (item?.value === value || item?.key === value) {\n return item?.title\n } else {\n const childLabel = findLabel(value, item?.children as TreeNode[])\n if (childLabel) return childLabel\n }\n }\n }\n\n const getLabels = () => {\n const selected = getSelected()\n if (!selected?.length) return <Tag>{placeholder as string}</Tag>\n return selected.map(({ value, label }, key) => {\n return (\n <>\n {multiple ? (\n <Tag key={key}>{findLabel(value, dataSource) || label || placeholder}</Tag>\n ) : (\n findLabel(value, dataSource) || label || placeholder\n )}\n </>\n )\n })\n }\n return (\n <div className={cc([prefixCls, className])} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst Cascader: React.FC<CascaderProps> = ({ options, value, className, style }) => {\n const placeholder = usePlaceholder()\n const dataSource: CascaderOptionType[] = options || []\n const getSelected = () => {\n return isArray(value) ? value : []\n }\n const findLabel = (value: any, dataSource: any[]): any => {\n for (let i = 0; i < dataSource?.length; i++) {\n const item = dataSource[i]\n if (item?.value === value) {\n return item?.label\n } else {\n const childLabel = findLabel(value, item?.children)\n if (childLabel) return childLabel\n }\n }\n }\n const getLabels = () => {\n const selected = getSelected()\n if (!selected?.length) {\n return placeholder\n }\n return selected\n .map((value) => {\n return findLabel(value, dataSource) || placeholder\n })\n .join('/')\n }\n return (\n <div className={cc([prefixCls, className])} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst formatMomentValue = (value: any, format: any, placeholder?: string): string | string[] => {\n const formatDate = (date: any, format: any, i = 0) => {\n if (!date) return placeholder\n if (isArray(format)) {\n const _format = format[i]\n if (isFunction(_format)) {\n return _format(date)\n }\n return date?.format ? date.format(_format) : date\n } else {\n if (isFunction(format)) {\n return format(date)\n }\n return date?.format ? date.format(format) : date\n }\n }\n if (isArray(value)) {\n return value.map((val, index) => {\n return formatDate(val, format, index)\n })\n } else {\n return value ? formatDate(value, format) : value || placeholder\n }\n}\n\nconst DatePicker: React.FC<DatePickerProps> = ({\n value,\n format,\n showTime,\n placeholder,\n className,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(\n value,\n format || `YYYY-MM-DD${showTime ? ' HH:mm:ss' : ''}`,\n placeholder\n )\n return isArray(labels) ? labels.join('~') : labels\n }\n return <div className={cc([prefixCls, className])}>{getLabels()}</div>\n}\n\nconst TimePicker: React.FC<TimePickerProps> = ({\n value,\n format,\n placeholder,\n className,\n style,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(value, format || 'HH:mm:ss', placeholder)\n return isArray(labels) ? labels.join('~') : labels\n }\n return (\n <div className={cc(prefixCls, className)} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst MonthPicker: React.FC<MonthPickerProps> = ({\n value,\n format,\n placeholder,\n className,\n style,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(value, format || 'YYYY-MM', placeholder)\n return isArray(labels) ? labels.join('~') : labels\n }\n return (\n <div className={cc(prefixCls, className)} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nconst WeekPicker: React.FC<WeekPickerProps> = ({\n value,\n format,\n placeholder,\n className,\n style,\n}) => {\n const getLabels = () => {\n const labels = formatMomentValue(value, format || 'gggg-wo', placeholder)\n return isArray(labels) ? labels.join('~') : labels\n }\n return (\n <div className={cc(prefixCls, className)} style={style}>\n {getLabels()}\n </div>\n )\n}\n\nexport const PreviewText = {\n Input,\n Select,\n TreeSelect,\n Cascader,\n DatePicker,\n TimePicker,\n MonthPicker,\n WeekPicker,\n usePlaceholder,\n}\n\nexport default PreviewText\n"]}
@@ -1,5 +1,5 @@
1
- import Progress from './progress';
1
+ import Progress from 'antd/lib/progress';
2
2
  import './style';
3
- export * from './progress';
3
+ export * from 'antd/lib/progress';
4
4
  export default Progress;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAA;AAEjC,OAAO,SAAS,CAAA;AAEhB,cAAc,YAAY,CAAA;AAE1B,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,kBAAkB,CAAA;AAEvC,OAAO,SAAS,CAAA;AAEhB,cAAc,kBAAkB,CAAA;AAEhC,eAAe,QAAQ,CAAA"}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  var _exportNames = {};
8
8
  exports["default"] = void 0;
9
- var _progress = _interopRequireWildcard(require("./progress"));
9
+ var _progress = _interopRequireWildcard(require("antd/lib/progress"));
10
10
  Object.keys(_progress).forEach(function (key) {
11
11
  if (key === "default" || key === "__esModule") return;
12
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/progress/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,0DAAiC;AAEjC,mBAAgB;AAEhB,6CAA0B;AAE1B,kBAAe,kBAAQ,CAAA","sourcesContent":["import Progress from './progress'\n\nimport './style'\n\nexport * from './progress'\n\nexport default Progress\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/progress/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,gEAAuC;AAEvC,mBAAgB;AAEhB,mDAAgC;AAEhC,kBAAe,kBAAQ,CAAA","sourcesContent":["import Progress from 'antd/lib/progress'\n\nimport './style'\n\nexport * from 'antd/lib/progress'\n\nexport default Progress\n"]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _checkbox = _interopRequireDefault(require("../../checkbox"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  var __rest = void 0 && (void 0).__rest || function (s, e) {
11
11
  var t = {};
12
12
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -7,18 +7,18 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports["default"] = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _select = _interopRequireDefault(require("../../select"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
16
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
16
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
17
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
19
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20
20
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
  var __rest = void 0 && (void 0).__rest || function (s, e) {
23
23
  var t = {};
24
24
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -11,16 +11,16 @@ var _select = _interopRequireDefault(require("../../select"));
11
11
  var _input = _interopRequireDefault(require("../../input"));
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
18
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
19
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
21
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
22
22
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
23
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
23
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
24
  var __rest = void 0 && (void 0).__rest || function (s, e) {
25
25
  var t = {};
26
26
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -10,7 +10,7 @@ var _SelectInput = _interopRequireDefault(require("./SelectInput"));
10
10
  var _datePicker = _interopRequireDefault(require("../../date-picker"));
11
11
  var _input = _interopRequireDefault(require("../../input"));
12
12
  var _inputNumber = _interopRequireDefault(require("../../input-number"));
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
14
  var defaultFieldWidth = exports.defaultFieldWidth = '200px';
15
15
  var getFieldWidth = exports.getFieldWidth = function getFieldWidth(type) {
16
16
  if (type === 'dateRange') {
@@ -11,20 +11,20 @@ var _fieldsMap = _interopRequireWildcard(require("./fieldsMap"));
11
11
  var _form = _interopRequireDefault(require("../../form"));
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
18
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
21
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
22
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
24
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
28
  var FormItem = _form["default"].Item;
29
29
  var isInput = function isInput(type) {
30
30
  return ['input', 'string', 'search', 'aloneSearch'].includes(type);
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var _set2 = _interopRequireDefault(require("lodash/set"));
8
8
  var _get2 = _interopRequireDefault(require("lodash/get"));
9
9
  var _eventemitter = _interopRequireDefault(require("eventemitter3"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  var _default = exports["default"] = function _default() {
12
12
  var eventEmitter = new _eventemitter["default"]();
13
13
  var data = {
@@ -20,20 +20,20 @@ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
20
20
  require("./index.less");
21
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
23
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
24
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
25
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
26
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
27
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
24
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
28
28
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
29
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30
30
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
31
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
32
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
31
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
32
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
33
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
34
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
35
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
36
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
34
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
37
  var clsPrefix = 'tnt-queryform';
38
38
  var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
39
39
  function QueryForm(props) {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = useForm;
7
7
  var _react = require("react");
8
8
  var _createActions = _interopRequireDefault(require("./createActions"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
10
  function useForm() {
11
11
  var form = (0, _react.useRef)((0, _createActions["default"])());
12
12
  return [form.current];
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/query-list-scene/List.js"],"names":[],"mappings":"AAaA;IACE,wBAqBC;IAnBC;;;;;;;;;MAUC;IAED,+BAA2B;IAS7B,4BA4DC;IAED,2DASM;IAEN,0BA+CC;IA5CC,cAIC;IAUS,mCAYM;IAaZ,+BAA0D;IAOhE,6BAWC;IARC,iCAAuB;IAUzB;;;;cAiEC;IAxCG,gCAAsB;IA0C1B,4CAKC;IAED,4CAKC;IAED,oCASC;IAED;;;cAOC;IAED,oEAwCC;IAED,sEAEM;IAEN,iDAUC;CACF"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/query-list-scene/List.js"],"names":[],"mappings":"AAaA;IACE,wBAqBC;IAnBC;;;;;;;;;MAUC;IAED,+BAA2B;IAS7B,4BA2DC;IAED,2DASM;IAEN,0BA+CC;IA5CC,cAIC;IAUS,mCAYM;IAaZ,+BAA0D;IAOhE,6BAWC;IARC,iCAAuB;IAUzB;;;;cAiEC;IAxCG,gCAAsB;IA0C1B,4CAKC;IAED,4CAKC;IAED,oCASC;IAED;;;cAOC;IAED,oEAwCC;IAED,sEAEM;IAEN,iDAUC;CACF"}
@@ -18,19 +18,19 @@ var _spin = _interopRequireDefault(require("../spin"));
18
18
  var _table = _interopRequireDefault(require("../table"));
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
22
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
23
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
24
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
22
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
25
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
26
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
27
27
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
28
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
29
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
28
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
29
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
30
30
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
31
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
32
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
33
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
31
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
34
  var __rest = void 0 && (void 0).__rest || function (s, e) {
35
35
  var t = {};
36
36
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -280,9 +280,7 @@ var QueryList = exports["default"] = /*#__PURE__*/function (_React$PureComponent
280
280
  scroll = _this$state.scroll,
281
281
  hasScrollToBottom = _this$state.hasScrollToBottom;
282
282
  var hasPagination = typeof pagination !== 'undefined' ? pagination : true;
283
- var paginationInfo = Object.assign(Object.assign(Object.assign({
284
- hideOnSinglePage: false
285
- }, this.state.pagination), {
283
+ var paginationInfo = Object.assign(Object.assign(Object.assign({}, this.state.pagination), {
286
284
  // size: 'small',
287
285
  showQuickJumper: true,
288
286
  showSizeChanger: true,
@@ -328,7 +326,7 @@ var QueryList = exports["default"] = /*#__PURE__*/function (_React$PureComponent
328
326
  this.fetchData(this.formData)["finally"](function () {
329
327
  // 轮询
330
328
  if (qlsProps.interval && !_this2.isUnmounted) {
331
- var _doIntervalQuery = function doIntervalQuery(ms) {
329
+ var doIntervalQuery = function doIntervalQuery(ms) {
332
330
  // 组件unmounted后,不执行轮训逻辑
333
331
  if (!_this2.isUnmounted) {
334
332
  _this2.timmer = setTimeout(function () {
@@ -338,15 +336,15 @@ var QueryList = exports["default"] = /*#__PURE__*/function (_React$PureComponent
338
336
  isInterval: true,
339
337
  showLoading: false
340
338
  }).then(function () {
341
- _doIntervalQuery(ms);
339
+ doIntervalQuery(ms);
342
340
  });
343
341
  } else {
344
- _doIntervalQuery(ms);
342
+ doIntervalQuery(ms);
345
343
  }
346
344
  }, ms);
347
345
  }
348
346
  };
349
- _doIntervalQuery(qlsProps.interval);
347
+ doIntervalQuery(qlsProps.interval);
350
348
  }
351
349
  });
352
350
  }