@zat-design/sisyphus-react 4.2.0-beta.2 → 4.2.0-beta.4

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 (854) hide show
  1. package/README.md +16 -5
  2. package/dist/index.esm.css +1 -1
  3. package/dist/less.esm.css +1 -1
  4. package/es/FormsProvider/index.js +7 -7
  5. package/es/ProAction/components/CheckModalContent/index.js +5 -5
  6. package/es/ProAction/index.js +98 -164
  7. package/es/ProAction/index.less +0 -1
  8. package/es/ProConfigProvider/index.js +71 -60
  9. package/es/ProDownload/index.js +97 -184
  10. package/es/ProDownload/style/index.less +0 -1
  11. package/es/ProDownload/utils.js +98 -149
  12. package/es/ProDrawerForm/components/ProDrawer/index.js +100 -177
  13. package/es/ProDrawerForm/components/ProModal/index.js +73 -140
  14. package/es/ProDrawerForm/index.js +36 -54
  15. package/es/ProDrawerForm/style/index.less +2 -1
  16. package/es/ProDrawerForm/utils/index.js +1 -1
  17. package/es/ProEditLabel/components/RenderProForm.js +29 -35
  18. package/es/ProEditLabel/index.js +97 -167
  19. package/es/ProEditLabel/style/index.less +0 -1
  20. package/es/ProEditLabel/utils/index.js +1 -1
  21. package/es/ProEditTable/components/ActionButton/index.js +61 -56
  22. package/es/ProEditTable/components/RcTable/BaseTable.js +51 -65
  23. package/es/ProEditTable/components/RcTable/DraggableTable.js +112 -106
  24. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +107 -98
  25. package/es/ProEditTable/components/RenderField/index.js +465 -598
  26. package/es/ProEditTable/components/RenderToolbar/index.js +71 -90
  27. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  28. package/es/ProEditTable/components/Summary/index.js +40 -35
  29. package/es/ProEditTable/components/Validator/index.js +7 -6
  30. package/es/ProEditTable/index.js +256 -307
  31. package/es/ProEditTable/style/index.less +150 -114
  32. package/es/ProEditTable/utils/config.d.ts +2 -2
  33. package/es/ProEditTable/utils/config.js +158 -184
  34. package/es/ProEditTable/utils/diffOriginal.js +45 -37
  35. package/es/ProEditTable/utils/getDefaultProps.js +23 -19
  36. package/es/ProEditTable/utils/index.js +189 -215
  37. package/es/ProEditTable/utils/tools.d.ts +1 -1
  38. package/es/ProEditTable/utils/tools.js +213 -344
  39. package/es/ProEditTable/utils/transform.js +10 -14
  40. package/es/ProEditTable/utils/useEditTableError.d.ts +1 -1
  41. package/es/ProEditTable/utils/useEditTableError.js +18 -29
  42. package/es/ProEditTable/utils/useShouldUpdateForTable.js +55 -63
  43. package/es/ProEnum/components/Group.js +17 -25
  44. package/es/ProEnum/components/Tag.js +12 -19
  45. package/es/ProEnum/hooks/useEnum.js +69 -136
  46. package/es/ProEnum/hooks/useEnumRequest.js +226 -342
  47. package/es/ProEnum/hooks/useFrequentEnumRequest.js +50 -69
  48. package/es/ProEnum/index.d.ts +2 -0
  49. package/es/ProEnum/index.js +130 -138
  50. package/es/ProEnum/style/index.less +0 -1
  51. package/es/ProEnum/utils/eventCenter.js +2 -2
  52. package/es/ProEnum/utils/frequentEnum.d.ts +1 -2
  53. package/es/ProEnum/utils/frequentEnum.js +56 -75
  54. package/es/ProEnum/utils/getEnum.d.ts +47 -0
  55. package/es/ProEnum/utils/getEnum.js +151 -0
  56. package/es/ProEnum/utils/getEnumLabel.js +29 -29
  57. package/es/ProEnum/utils/index.d.ts +13 -3
  58. package/es/ProEnum/utils/index.js +151 -249
  59. package/es/ProForm/components/Container.js +10 -8
  60. package/es/ProForm/components/FormFooter/index.js +42 -44
  61. package/es/ProForm/components/base/Checkbox/index.js +29 -34
  62. package/es/ProForm/components/base/DatePicker/index.js +41 -39
  63. package/es/ProForm/components/base/DatePicker/useDateLimit.js +2 -11
  64. package/es/ProForm/components/base/Input/index.js +54 -55
  65. package/es/ProForm/components/base/InputNumber/index.js +115 -136
  66. package/es/ProForm/components/base/Radio/index.js +26 -32
  67. package/es/ProForm/components/base/RangePicker/index.js +63 -57
  68. package/es/ProForm/components/base/RangePicker/useDateRange.js +11 -19
  69. package/es/ProForm/components/base/Select/index.js +44 -50
  70. package/es/ProForm/components/base/Switch/index.js +21 -24
  71. package/es/ProForm/components/base/SwitchCheckbox/index.js +26 -29
  72. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +4 -5
  73. package/es/ProForm/components/base/TextArea/index.js +25 -29
  74. package/es/ProForm/components/base/TimePicker/index.js +24 -28
  75. package/es/ProForm/components/base/TimePicker/style/index.less +0 -1
  76. package/es/ProForm/components/combination/Container/index.js +34 -33
  77. package/es/ProForm/components/combination/Container/style/index.less +18 -19
  78. package/es/ProForm/components/combination/FormList/components/ActionButton.js +181 -207
  79. package/es/ProForm/components/combination/FormList/components/BlockFields.js +30 -29
  80. package/es/ProForm/components/combination/FormList/components/BlockTitle.js +12 -10
  81. package/es/ProForm/components/combination/FormList/components/Empty.js +32 -60
  82. package/es/ProForm/components/combination/FormList/components/LineFields.js +42 -42
  83. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +98 -120
  84. package/es/ProForm/components/combination/FormList/index.js +78 -70
  85. package/es/ProForm/components/combination/FormList/style/index.less +4 -4
  86. package/es/ProForm/components/combination/FormList/utils.js +13 -13
  87. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +6 -4
  88. package/es/ProForm/components/combination/Group/component/ComRender.js +77 -69
  89. package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +101 -105
  90. package/es/ProForm/components/combination/Group/hooks/index.js +101 -99
  91. package/es/ProForm/components/combination/Group/index.js +83 -80
  92. package/es/ProForm/components/combination/Group/style/index.less +43 -50
  93. package/es/ProForm/components/combination/Group/utils/index.d.ts +27 -27
  94. package/es/ProForm/components/combination/Group/utils/index.js +155 -163
  95. package/es/ProForm/components/combination/ProCascader/index.js +145 -169
  96. package/es/ProForm/components/combination/ProCascader/utils/index.js +15 -18
  97. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +65 -90
  98. package/es/ProForm/components/combination/ProModalSelect/index.js +384 -502
  99. package/es/ProForm/components/combination/ProModalSelect/style/index.less +20 -16
  100. package/es/ProForm/components/combination/ProModalSelect/utils/index.js +11 -11
  101. package/es/ProForm/components/combination/ProNumberRange/index.js +64 -72
  102. package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -3
  103. package/es/ProForm/components/combination/ProRangeLimit/index.js +82 -109
  104. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +10 -18
  105. package/es/ProForm/components/combination/ProTimeLimit/index.js +78 -88
  106. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  107. package/es/ProForm/components/render/ChangedWrapper.js +71 -64
  108. package/es/ProForm/components/render/ConfirmWrapper.js +52 -113
  109. package/es/ProForm/components/render/CustomComponentViewWrapper.js +42 -45
  110. package/es/ProForm/components/render/Render.js +202 -220
  111. package/es/ProForm/components/render/RenderFields.js +99 -93
  112. package/es/ProForm/components/render/propsType.js +1 -1
  113. package/es/ProForm/index.js +128 -143
  114. package/es/ProForm/propsType.js +1 -1
  115. package/es/ProForm/style/index.less +39 -44
  116. package/es/ProForm/utils/diffOriginal.js +39 -33
  117. package/es/ProForm/utils/getDefaultProps.js +24 -19
  118. package/es/ProForm/utils/index.js +115 -132
  119. package/es/ProForm/utils/processDependencies.js +7 -3
  120. package/es/ProForm/utils/rulesCreator.js +28 -36
  121. package/es/ProForm/utils/transformNames.js +18 -19
  122. package/es/ProForm/utils/transformValue.js +16 -25
  123. package/es/ProForm/utils/useDeepCompareMemo.js +7 -7
  124. package/es/ProForm/utils/useFieldProps.js +3 -3
  125. package/es/ProForm/utils/useForm.js +106 -190
  126. package/es/ProForm/utils/useRules.js +23 -20
  127. package/es/ProForm/utils/useShouldUpdate.js +107 -110
  128. package/es/ProForm/utils/useWatch.js +30 -37
  129. package/es/ProForm/utils/valueType.js +122 -143
  130. package/es/ProIcon/config/index.js +3 -3
  131. package/es/ProIcon/index.js +152 -167
  132. package/es/ProIcon/utils/index.js +28 -27
  133. package/es/ProLayout/components/Layout/Header/index.js +28 -36
  134. package/es/ProLayout/components/Layout/Header/style/index.less +224 -222
  135. package/es/ProLayout/components/Layout/Icon/Icon.js +10 -9
  136. package/es/ProLayout/components/Layout/Icon/style/index.less +1 -1
  137. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +61 -55
  138. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +4 -1
  139. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +57 -66
  140. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +9 -7
  141. package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +18 -14
  142. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +3 -5
  143. package/es/ProLayout/components/Layout/Menu/index.js +30 -40
  144. package/es/ProLayout/components/Layout/Menu/style/index.less +9 -5
  145. package/es/ProLayout/components/Layout/Notice/index.js +6 -4
  146. package/es/ProLayout/components/Layout/index.less +4 -4
  147. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +45 -45
  148. package/es/ProLayout/components/ProCollapse/index.js +63 -68
  149. package/es/ProLayout/components/ProCollapse/style/index.less +30 -32
  150. package/es/ProLayout/components/ProFooter/index.js +16 -22
  151. package/es/ProLayout/components/ProFooter/style/index.less +0 -1
  152. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +31 -31
  153. package/es/ProLayout/components/ProHeader/components/Copy/index.js +6 -3
  154. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +5 -5
  155. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -7
  156. package/es/ProLayout/components/ProHeader/index.js +132 -149
  157. package/es/ProLayout/components/ProHeader/style/index.less +8 -9
  158. package/es/ProLayout/components/ProHeader/utils/index.js +5 -5
  159. package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +20 -31
  160. package/es/ProLayout/components/TabsManager/components/TabItem.js +18 -18
  161. package/es/ProLayout/components/TabsManager/components/TabsContext.js +1 -1
  162. package/es/ProLayout/components/TabsManager/components/TabsHeader.js +9 -17
  163. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.js +2 -2
  164. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +1 -1
  165. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.js +15 -15
  166. package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +103 -119
  167. package/es/ProLayout/components/TabsManager/index.js +51 -60
  168. package/es/ProLayout/components/TabsManager/propTypes.js +1 -1
  169. package/es/ProLayout/components/TabsManager/style/index.less +9 -11
  170. package/es/ProLayout/components/TabsManager/utils/index.js +20 -21
  171. package/es/ProLayout/index.js +84 -98
  172. package/es/ProLayout/propTypes.js +2 -4
  173. package/es/ProLayout/style/index.less +197 -201
  174. package/es/ProLayout/utils/index.d.ts +1 -1
  175. package/es/ProLayout/utils/index.js +66 -85
  176. package/es/ProSelect/components/AdaptiveTooltip.js +8 -16
  177. package/es/ProSelect/index.js +168 -186
  178. package/es/ProSelect/style/index.less +0 -1
  179. package/es/ProSelect/utils/index.d.ts +1 -1
  180. package/es/ProSelect/utils/index.js +49 -77
  181. package/es/ProStep/components/Anchor/index.js +21 -19
  182. package/es/ProStep/components/Item/index.js +33 -40
  183. package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
  184. package/es/ProStep/components/LazyLoad/index.js +55 -0
  185. package/es/ProStep/components/Listener/index.js +37 -61
  186. package/es/ProStep/components/Step/index.js +26 -40
  187. package/es/ProStep/index.js +104 -192
  188. package/es/ProStep/propsType.d.ts +1 -1
  189. package/es/ProStep/style/index.less +7 -9
  190. package/es/ProStep/utils/index.js +20 -23
  191. package/es/ProStepTab/index.js +117 -235
  192. package/es/ProTable/components/FormatColumn/index.js +246 -219
  193. package/es/ProTable/components/RcTable/components/BaseTable/index.js +21 -25
  194. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
  195. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +111 -143
  196. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +52 -60
  197. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +28 -30
  198. package/es/ProTable/components/RenderColumn/index.js +58 -66
  199. package/es/ProTable/components/RenderEmptyText/index.js +7 -7
  200. package/es/ProTable/components/RenderFooter/index.js +10 -8
  201. package/es/ProTable/components/RenderSummary/index.js +31 -30
  202. package/es/ProTable/components/RenderTableHeader/index.js +19 -17
  203. package/es/ProTable/components/RenderTabs/index.js +31 -45
  204. package/es/ProTable/components/TableResizable/index.js +33 -50
  205. package/es/ProTable/components/TooltipTitle/index.js +10 -7
  206. package/es/ProTable/hooks/useAntdTable.js +214 -267
  207. package/es/ProTable/index.js +192 -234
  208. package/es/ProTable/propsType.d.ts +1 -1
  209. package/es/ProTable/style/index.less +24 -22
  210. package/es/ProTable/utils/index.js +23 -31
  211. package/es/ProTabs/components/Card/index.js +10 -8
  212. package/es/ProTabs/index.js +51 -61
  213. package/es/ProThemeTools/component/ProTools/index.js +65 -71
  214. package/es/ProThemeTools/context/ThemeContext.js +97 -93
  215. package/es/ProThemeTools/index.js +79 -91
  216. package/es/ProThemeTools/utils/index.js +49 -71
  217. package/es/ProTooltip/index.js +110 -120
  218. package/es/ProTooltip/style/index.less +0 -1
  219. package/es/ProTree/components/AdaptiveTooltip.js +3 -2
  220. package/es/ProTree/components/CloseIcon.js +3 -7
  221. package/es/ProTree/components/List.js +21 -27
  222. package/es/ProTree/components/ProTree.js +162 -204
  223. package/es/ProTree/components/ProTreeSelect/index.js +250 -265
  224. package/es/ProTree/components/ProTreeSelect/style/index.less +102 -99
  225. package/es/ProTree/components/SearchTitle.js +18 -17
  226. package/es/ProTree/components/Tree.js +109 -148
  227. package/es/ProTree/index.js +15 -15
  228. package/es/ProTree/style/index.less +108 -109
  229. package/es/ProTree/utils.js +48 -83
  230. package/es/ProTreeModal/components/Cascader.js +28 -41
  231. package/es/ProTreeModal/components/CloseIcon.js +3 -7
  232. package/es/ProTreeModal/components/List.js +90 -96
  233. package/es/ProTreeModal/components/SearchTitle.js +9 -8
  234. package/es/ProTreeModal/components/SortableItem.js +40 -37
  235. package/es/ProTreeModal/components/Tree.js +53 -69
  236. package/es/ProTreeModal/components/Trigger.js +55 -67
  237. package/es/ProTreeModal/index.js +203 -217
  238. package/es/ProTreeModal/style/index.less +10 -9
  239. package/es/ProTreeModal/utils.js +61 -101
  240. package/es/ProUpload/components/ButtonRender.js +31 -58
  241. package/es/ProUpload/components/DragRender.js +41 -42
  242. package/es/ProUpload/components/DraggableUploadListItem.js +19 -21
  243. package/es/ProUpload/components/Example.js +14 -25
  244. package/es/ProUpload/components/FileItem.js +39 -38
  245. package/es/ProUpload/components/ImageRender.js +59 -100
  246. package/es/ProUpload/index.js +129 -131
  247. package/es/ProUpload/style/index.less +20 -22
  248. package/es/ProUpload/uitls.js +3 -3
  249. package/es/ProUtils/utils/index.js +6 -10
  250. package/es/ProViewer/index.js +66 -102
  251. package/es/ProWaterMark/index.js +8 -10
  252. package/es/global.less +1 -1
  253. package/es/index.d.ts +2 -2
  254. package/es/locale/index.js +5 -5
  255. package/es/style/core/normalize.less +11 -2
  256. package/es/style/index.less +2 -2
  257. package/es/style/less.less +2 -2
  258. package/es/style/theme/antd.less +19 -23
  259. package/es/style/theme/base.less +81 -81
  260. package/es/style/theme/tokens.less +13 -14
  261. package/es/style/variables.less +1 -1
  262. package/es/tokens.js +1 -1
  263. package/es/utils/index.js +11 -20
  264. package/package.json +32 -29
  265. package/.claudeignore +0 -40
  266. package/lib/FormsProvider/index.d.ts +0 -18
  267. package/lib/FormsProvider/index.js +0 -44
  268. package/lib/ProAction/components/CheckModalContent/index.css +0 -22
  269. package/lib/ProAction/components/CheckModalContent/index.d.ts +0 -8
  270. package/lib/ProAction/components/CheckModalContent/index.js +0 -34
  271. package/lib/ProAction/components/CheckModalContent/index.less +0 -28
  272. package/lib/ProAction/index.d.ts +0 -7
  273. package/lib/ProAction/index.js +0 -232
  274. package/lib/ProAction/index.less +0 -8
  275. package/lib/ProAction/propsType.d.ts +0 -45
  276. package/lib/ProAction/propsType.js +0 -5
  277. package/lib/ProConfigProvider/index.d.ts +0 -9
  278. package/lib/ProConfigProvider/index.js +0 -158
  279. package/lib/ProConfigProvider/propsType.d.ts +0 -55
  280. package/lib/ProConfigProvider/propsType.js +0 -5
  281. package/lib/ProDownload/index.d.ts +0 -6
  282. package/lib/ProDownload/index.js +0 -208
  283. package/lib/ProDownload/propsType.d.ts +0 -71
  284. package/lib/ProDownload/propsType.js +0 -5
  285. package/lib/ProDownload/style/index.less +0 -9
  286. package/lib/ProDownload/utils.d.ts +0 -60
  287. package/lib/ProDownload/utils.js +0 -213
  288. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  289. package/lib/ProDrawerForm/components/ProDrawer/index.js +0 -287
  290. package/lib/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  291. package/lib/ProDrawerForm/components/ProModal/index.js +0 -222
  292. package/lib/ProDrawerForm/components/index.d.ts +0 -2
  293. package/lib/ProDrawerForm/components/index.js +0 -20
  294. package/lib/ProDrawerForm/index.d.ts +0 -6
  295. package/lib/ProDrawerForm/index.js +0 -106
  296. package/lib/ProDrawerForm/propsType.d.ts +0 -100
  297. package/lib/ProDrawerForm/propsType.js +0 -5
  298. package/lib/ProDrawerForm/style/index.less +0 -172
  299. package/lib/ProDrawerForm/utils/index.d.ts +0 -6
  300. package/lib/ProDrawerForm/utils/index.js +0 -23
  301. package/lib/ProEditLabel/components/RenderProForm.d.ts +0 -4
  302. package/lib/ProEditLabel/components/RenderProForm.js +0 -87
  303. package/lib/ProEditLabel/index.d.ts +0 -4
  304. package/lib/ProEditLabel/index.js +0 -361
  305. package/lib/ProEditLabel/propsType.d.ts +0 -163
  306. package/lib/ProEditLabel/propsType.js +0 -5
  307. package/lib/ProEditLabel/style/index.less +0 -135
  308. package/lib/ProEditLabel/utils/index.d.ts +0 -7
  309. package/lib/ProEditLabel/utils/index.js +0 -24
  310. package/lib/ProEditTable/components/ActionButton/index.d.ts +0 -2
  311. package/lib/ProEditTable/components/ActionButton/index.js +0 -189
  312. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  313. package/lib/ProEditTable/components/RcTable/BaseTable.js +0 -125
  314. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  315. package/lib/ProEditTable/components/RcTable/DraggableTable.js +0 -219
  316. package/lib/ProEditTable/components/RcTable/index.d.ts +0 -4
  317. package/lib/ProEditTable/components/RcTable/index.js +0 -20
  318. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -17
  319. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +0 -244
  320. package/lib/ProEditTable/components/RenderField/index.d.ts +0 -3
  321. package/lib/ProEditTable/components/RenderField/index.js +0 -1169
  322. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  323. package/lib/ProEditTable/components/RenderToolbar/index.js +0 -148
  324. package/lib/ProEditTable/components/Summary/index.d.ts +0 -12
  325. package/lib/ProEditTable/components/Summary/index.js +0 -89
  326. package/lib/ProEditTable/components/Validator/index.d.ts +0 -10
  327. package/lib/ProEditTable/components/Validator/index.js +0 -34
  328. package/lib/ProEditTable/components/index.d.ts +0 -5
  329. package/lib/ProEditTable/components/index.js +0 -41
  330. package/lib/ProEditTable/index.d.ts +0 -4
  331. package/lib/ProEditTable/index.js +0 -535
  332. package/lib/ProEditTable/propsType.d.ts +0 -439
  333. package/lib/ProEditTable/propsType.js +0 -5
  334. package/lib/ProEditTable/style/index.less +0 -448
  335. package/lib/ProEditTable/utils/config.d.ts +0 -25
  336. package/lib/ProEditTable/utils/config.js +0 -293
  337. package/lib/ProEditTable/utils/diffOriginal.d.ts +0 -22
  338. package/lib/ProEditTable/utils/diffOriginal.js +0 -142
  339. package/lib/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  340. package/lib/ProEditTable/utils/getDefaultProps.js +0 -39
  341. package/lib/ProEditTable/utils/index.d.ts +0 -9
  342. package/lib/ProEditTable/utils/index.js +0 -473
  343. package/lib/ProEditTable/utils/tools.d.ts +0 -93
  344. package/lib/ProEditTable/utils/tools.js +0 -572
  345. package/lib/ProEditTable/utils/transform.d.ts +0 -13
  346. package/lib/ProEditTable/utils/transform.js +0 -50
  347. package/lib/ProEditTable/utils/useEditTableError.d.ts +0 -7
  348. package/lib/ProEditTable/utils/useEditTableError.js +0 -108
  349. package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  350. package/lib/ProEditTable/utils/useShouldUpdateForTable.js +0 -174
  351. package/lib/ProEnum/components/Group.d.ts +0 -10
  352. package/lib/ProEnum/components/Group.js +0 -76
  353. package/lib/ProEnum/components/Tag.d.ts +0 -7
  354. package/lib/ProEnum/components/Tag.js +0 -52
  355. package/lib/ProEnum/hooks/useEnum.d.ts +0 -29
  356. package/lib/ProEnum/hooks/useEnum.js +0 -282
  357. package/lib/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  358. package/lib/ProEnum/hooks/useEnumRequest.js +0 -422
  359. package/lib/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  360. package/lib/ProEnum/hooks/useFrequentEnumRequest.js +0 -91
  361. package/lib/ProEnum/index.d.ts +0 -8
  362. package/lib/ProEnum/index.js +0 -304
  363. package/lib/ProEnum/propsType.d.ts +0 -310
  364. package/lib/ProEnum/propsType.js +0 -5
  365. package/lib/ProEnum/style/index.less +0 -109
  366. package/lib/ProEnum/utils/eventCenter.d.ts +0 -1
  367. package/lib/ProEnum/utils/eventCenter.js +0 -33
  368. package/lib/ProEnum/utils/frequentEnum.d.ts +0 -40
  369. package/lib/ProEnum/utils/frequentEnum.js +0 -165
  370. package/lib/ProEnum/utils/getEnumLabel.d.ts +0 -2
  371. package/lib/ProEnum/utils/getEnumLabel.js +0 -83
  372. package/lib/ProEnum/utils/index.d.ts +0 -69
  373. package/lib/ProEnum/utils/index.js +0 -406
  374. package/lib/ProForm/components/Container.d.ts +0 -9
  375. package/lib/ProForm/components/Container.js +0 -40
  376. package/lib/ProForm/components/FormFooter/index.d.ts +0 -5
  377. package/lib/ProForm/components/FormFooter/index.js +0 -98
  378. package/lib/ProForm/components/FormFooter/propsType.d.ts +0 -22
  379. package/lib/ProForm/components/FormFooter/propsType.js +0 -5
  380. package/lib/ProForm/components/base/Checkbox/index.d.ts +0 -14
  381. package/lib/ProForm/components/base/Checkbox/index.js +0 -88
  382. package/lib/ProForm/components/base/DatePicker/index.d.ts +0 -11
  383. package/lib/ProForm/components/base/DatePicker/index.js +0 -110
  384. package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +0 -3
  385. package/lib/ProForm/components/base/DatePicker/useDateLimit.js +0 -23
  386. package/lib/ProForm/components/base/Input/index.d.ts +0 -3
  387. package/lib/ProForm/components/base/Input/index.js +0 -137
  388. package/lib/ProForm/components/base/Input/propsType.d.ts +0 -21
  389. package/lib/ProForm/components/base/Input/propsType.js +0 -5
  390. package/lib/ProForm/components/base/InputNumber/index.d.ts +0 -11
  391. package/lib/ProForm/components/base/InputNumber/index.js +0 -317
  392. package/lib/ProForm/components/base/Radio/index.d.ts +0 -15
  393. package/lib/ProForm/components/base/Radio/index.js +0 -78
  394. package/lib/ProForm/components/base/RangePicker/index.d.ts +0 -19
  395. package/lib/ProForm/components/base/RangePicker/index.js +0 -201
  396. package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  397. package/lib/ProForm/components/base/RangePicker/useDateRange.js +0 -45
  398. package/lib/ProForm/components/base/Select/index.d.ts +0 -11
  399. package/lib/ProForm/components/base/Select/index.js +0 -122
  400. package/lib/ProForm/components/base/Switch/index.d.ts +0 -10
  401. package/lib/ProForm/components/base/Switch/index.js +0 -53
  402. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  403. package/lib/ProForm/components/base/SwitchCheckbox/index.js +0 -78
  404. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -13
  405. package/lib/ProForm/components/base/TextArea/index.d.ts +0 -11
  406. package/lib/ProForm/components/base/TextArea/index.js +0 -63
  407. package/lib/ProForm/components/base/TextArea/index.less +0 -28
  408. package/lib/ProForm/components/base/TimePicker/index.d.ts +0 -13
  409. package/lib/ProForm/components/base/TimePicker/index.js +0 -56
  410. package/lib/ProForm/components/base/TimePicker/style/index.less +0 -6
  411. package/lib/ProForm/components/combination/Container/index.d.ts +0 -4
  412. package/lib/ProForm/components/combination/Container/index.js +0 -79
  413. package/lib/ProForm/components/combination/Container/propsType.d.ts +0 -13
  414. package/lib/ProForm/components/combination/Container/propsType.js +0 -5
  415. package/lib/ProForm/components/combination/Container/style/index.less +0 -47
  416. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  417. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +0 -378
  418. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  419. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +0 -148
  420. package/lib/ProForm/components/combination/FormList/components/BlockTitle.d.ts +0 -13
  421. package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +0 -36
  422. package/lib/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  423. package/lib/ProForm/components/combination/FormList/components/Empty.js +0 -105
  424. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  425. package/lib/ProForm/components/combination/FormList/components/LineFields.js +0 -108
  426. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  427. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +0 -186
  428. package/lib/ProForm/components/combination/FormList/index.d.ts +0 -4
  429. package/lib/ProForm/components/combination/FormList/index.js +0 -204
  430. package/lib/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  431. package/lib/ProForm/components/combination/FormList/propsType.js +0 -5
  432. package/lib/ProForm/components/combination/FormList/style/index.less +0 -175
  433. package/lib/ProForm/components/combination/FormList/utils.d.ts +0 -18
  434. package/lib/ProForm/components/combination/FormList/utils.js +0 -60
  435. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  436. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.js +0 -26
  437. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.less +0 -10
  438. package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  439. package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -165
  440. package/lib/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  441. package/lib/ProForm/components/combination/Group/component/FlexibleGroup.js +0 -414
  442. package/lib/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  443. package/lib/ProForm/components/combination/Group/hooks/index.js +0 -284
  444. package/lib/ProForm/components/combination/Group/index.d.ts +0 -9
  445. package/lib/ProForm/components/combination/Group/index.js +0 -202
  446. package/lib/ProForm/components/combination/Group/propsType.d.ts +0 -99
  447. package/lib/ProForm/components/combination/Group/propsType.js +0 -5
  448. package/lib/ProForm/components/combination/Group/style/index.less +0 -525
  449. package/lib/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  450. package/lib/ProForm/components/combination/Group/utils/index.js +0 -444
  451. package/lib/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  452. package/lib/ProForm/components/combination/ProCascader/index.js +0 -373
  453. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  454. package/lib/ProForm/components/combination/ProCascader/propsType.js +0 -5
  455. package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -28
  456. package/lib/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  457. package/lib/ProForm/components/combination/ProCascader/utils/index.js +0 -43
  458. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  459. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +0 -167
  460. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  461. package/lib/ProForm/components/combination/ProModalSelect/index.js +0 -885
  462. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  463. package/lib/ProForm/components/combination/ProModalSelect/propsType.js +0 -5
  464. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +0 -182
  465. package/lib/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  466. package/lib/ProForm/components/combination/ProModalSelect/utils/index.js +0 -32
  467. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  468. package/lib/ProForm/components/combination/ProNumberRange/index.js +0 -270
  469. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  470. package/lib/ProForm/components/combination/ProNumberRange/propsType.js +0 -5
  471. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +0 -50
  472. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  473. package/lib/ProForm/components/combination/ProRangeLimit/index.js +0 -228
  474. package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  475. package/lib/ProForm/components/combination/ProRangeLimit/propsType.js +0 -5
  476. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  477. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +0 -49
  478. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  479. package/lib/ProForm/components/combination/ProTimeLimit/index.js +0 -189
  480. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +0 -99
  481. package/lib/ProForm/components/index.d.ts +0 -29
  482. package/lib/ProForm/components/index.js +0 -194
  483. package/lib/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  484. package/lib/ProForm/components/render/ChangedWrapper.js +0 -152
  485. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  486. package/lib/ProForm/components/render/ConfirmWrapper.js +0 -135
  487. package/lib/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  488. package/lib/ProForm/components/render/CustomComponentViewWrapper.js +0 -127
  489. package/lib/ProForm/components/render/Render.d.ts +0 -4
  490. package/lib/ProForm/components/render/Render.js +0 -590
  491. package/lib/ProForm/components/render/RenderFields.d.ts +0 -26
  492. package/lib/ProForm/components/render/RenderFields.js +0 -265
  493. package/lib/ProForm/components/render/propsType.d.ts +0 -296
  494. package/lib/ProForm/components/render/propsType.js +0 -31
  495. package/lib/ProForm/index.d.ts +0 -6
  496. package/lib/ProForm/index.js +0 -334
  497. package/lib/ProForm/propsType.d.ts +0 -131
  498. package/lib/ProForm/propsType.js +0 -13
  499. package/lib/ProForm/style/index.less +0 -567
  500. package/lib/ProForm/utils/diffOriginal.d.ts +0 -10
  501. package/lib/ProForm/utils/diffOriginal.js +0 -129
  502. package/lib/ProForm/utils/getDefaultProps.d.ts +0 -1
  503. package/lib/ProForm/utils/getDefaultProps.js +0 -39
  504. package/lib/ProForm/utils/index.d.ts +0 -119
  505. package/lib/ProForm/utils/index.js +0 -544
  506. package/lib/ProForm/utils/processDependencies.d.ts +0 -29
  507. package/lib/ProForm/utils/processDependencies.js +0 -72
  508. package/lib/ProForm/utils/rulesCreator.d.ts +0 -7
  509. package/lib/ProForm/utils/rulesCreator.js +0 -96
  510. package/lib/ProForm/utils/transformNames.d.ts +0 -10
  511. package/lib/ProForm/utils/transformNames.js +0 -39
  512. package/lib/ProForm/utils/transformValue.d.ts +0 -6
  513. package/lib/ProForm/utils/transformValue.js +0 -73
  514. package/lib/ProForm/utils/useDeepCompareMemo.d.ts +0 -2
  515. package/lib/ProForm/utils/useDeepCompareMemo.js +0 -23
  516. package/lib/ProForm/utils/useFieldProps.d.ts +0 -4
  517. package/lib/ProForm/utils/useFieldProps.js +0 -13
  518. package/lib/ProForm/utils/useForm.d.ts +0 -22
  519. package/lib/ProForm/utils/useForm.js +0 -276
  520. package/lib/ProForm/utils/useRules.d.ts +0 -16
  521. package/lib/ProForm/utils/useRules.js +0 -86
  522. package/lib/ProForm/utils/useShouldUpdate.d.ts +0 -27
  523. package/lib/ProForm/utils/useShouldUpdate.js +0 -399
  524. package/lib/ProForm/utils/useWatch.d.ts +0 -12
  525. package/lib/ProForm/utils/useWatch.js +0 -196
  526. package/lib/ProForm/utils/valueType.d.ts +0 -70
  527. package/lib/ProForm/utils/valueType.js +0 -323
  528. package/lib/ProIcon/config/index.d.ts +0 -19
  529. package/lib/ProIcon/config/index.js +0 -281
  530. package/lib/ProIcon/index.d.ts +0 -4
  531. package/lib/ProIcon/index.js +0 -405
  532. package/lib/ProIcon/propsTypes.d.ts +0 -181
  533. package/lib/ProIcon/propsTypes.js +0 -5
  534. package/lib/ProIcon/style/index.less +0 -27
  535. package/lib/ProIcon/utils/index.d.ts +0 -6
  536. package/lib/ProIcon/utils/index.js +0 -95
  537. package/lib/ProLayout/components/Layout/Header/index.d.ts +0 -4
  538. package/lib/ProLayout/components/Layout/Header/index.js +0 -188
  539. package/lib/ProLayout/components/Layout/Header/style/index.less +0 -277
  540. package/lib/ProLayout/components/Layout/Icon/Icon.d.ts +0 -10
  541. package/lib/ProLayout/components/Layout/Icon/Icon.js +0 -41
  542. package/lib/ProLayout/components/Layout/Icon/index.d.ts +0 -2
  543. package/lib/ProLayout/components/Layout/Icon/index.js +0 -9
  544. package/lib/ProLayout/components/Layout/Icon/style/index.less +0 -7
  545. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  546. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +0 -212
  547. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +0 -111
  548. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  549. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +0 -214
  550. package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  551. package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +0 -5
  552. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -177
  553. package/lib/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  554. package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +0 -47
  555. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +0 -124
  556. package/lib/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  557. package/lib/ProLayout/components/Layout/Menu/index.js +0 -178
  558. package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -136
  559. package/lib/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  560. package/lib/ProLayout/components/Layout/Notice/index.js +0 -37
  561. package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -37
  562. package/lib/ProLayout/components/Layout/index.d.ts +0 -4
  563. package/lib/ProLayout/components/Layout/index.js +0 -34
  564. package/lib/ProLayout/components/Layout/index.less +0 -4
  565. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  566. package/lib/ProLayout/components/ProCollapse/PropTypes.js +0 -5
  567. package/lib/ProLayout/components/ProCollapse/index.d.ts +0 -3
  568. package/lib/ProLayout/components/ProCollapse/index.js +0 -200
  569. package/lib/ProLayout/components/ProCollapse/style/index.less +0 -357
  570. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  571. package/lib/ProLayout/components/ProFooter/PropTypes.js +0 -5
  572. package/lib/ProLayout/components/ProFooter/index.d.ts +0 -4
  573. package/lib/ProLayout/components/ProFooter/index.js +0 -59
  574. package/lib/ProLayout/components/ProFooter/style/index.less +0 -12
  575. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  576. package/lib/ProLayout/components/ProHeader/PropTypes.js +0 -5
  577. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  578. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +0 -29
  579. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  580. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +0 -35
  581. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  582. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.js +0 -5
  583. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +0 -23
  584. package/lib/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  585. package/lib/ProLayout/components/ProHeader/components/index.js +0 -20
  586. package/lib/ProLayout/components/ProHeader/index.d.ts +0 -4
  587. package/lib/ProLayout/components/ProHeader/index.js +0 -559
  588. package/lib/ProLayout/components/ProHeader/style/index.less +0 -416
  589. package/lib/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  590. package/lib/ProLayout/components/ProHeader/utils/index.js +0 -21
  591. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  592. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +0 -106
  593. package/lib/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  594. package/lib/ProLayout/components/TabsManager/components/TabItem.js +0 -75
  595. package/lib/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  596. package/lib/ProLayout/components/TabsManager/components/TabsContext.js +0 -11
  597. package/lib/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -12
  598. package/lib/ProLayout/components/TabsManager/components/TabsHeader.js +0 -58
  599. package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  600. package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.js +0 -20
  601. package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  602. package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +0 -31
  603. package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  604. package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.js +0 -103
  605. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  606. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -417
  607. package/lib/ProLayout/components/TabsManager/index.d.ts +0 -7
  608. package/lib/ProLayout/components/TabsManager/index.js +0 -196
  609. package/lib/ProLayout/components/TabsManager/propTypes.d.ts +0 -75
  610. package/lib/ProLayout/components/TabsManager/propTypes.js +0 -21
  611. package/lib/ProLayout/components/TabsManager/style/index.less +0 -310
  612. package/lib/ProLayout/components/TabsManager/utils/index.d.ts +0 -41
  613. package/lib/ProLayout/components/TabsManager/utils/index.js +0 -126
  614. package/lib/ProLayout/components/index.d.ts +0 -3
  615. package/lib/ProLayout/components/index.js +0 -27
  616. package/lib/ProLayout/images/close.png +0 -0
  617. package/lib/ProLayout/images/logoImg.png +0 -0
  618. package/lib/ProLayout/images/tipMsg.png +0 -0
  619. package/lib/ProLayout/index.d.ts +0 -20
  620. package/lib/ProLayout/index.js +0 -285
  621. package/lib/ProLayout/propTypes.d.ts +0 -435
  622. package/lib/ProLayout/propTypes.js +0 -46
  623. package/lib/ProLayout/style/index.less +0 -344
  624. package/lib/ProLayout/utils/index.d.ts +0 -43
  625. package/lib/ProLayout/utils/index.js +0 -278
  626. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  627. package/lib/ProSelect/components/AdaptiveTooltip.js +0 -54
  628. package/lib/ProSelect/index.d.ts +0 -5
  629. package/lib/ProSelect/index.js +0 -524
  630. package/lib/ProSelect/propsType.d.ts +0 -160
  631. package/lib/ProSelect/propsType.js +0 -5
  632. package/lib/ProSelect/style/index.less +0 -21
  633. package/lib/ProSelect/utils/index.d.ts +0 -4
  634. package/lib/ProSelect/utils/index.js +0 -146
  635. package/lib/ProStep/components/Anchor/index.d.ts +0 -4
  636. package/lib/ProStep/components/Anchor/index.js +0 -117
  637. package/lib/ProStep/components/Item/index.d.ts +0 -3
  638. package/lib/ProStep/components/Item/index.js +0 -104
  639. package/lib/ProStep/components/Listener/index.d.ts +0 -4
  640. package/lib/ProStep/components/Listener/index.js +0 -80
  641. package/lib/ProStep/components/Step/index.d.ts +0 -5
  642. package/lib/ProStep/components/Step/index.js +0 -99
  643. package/lib/ProStep/index.d.ts +0 -11
  644. package/lib/ProStep/index.js +0 -266
  645. package/lib/ProStep/propsType.d.ts +0 -222
  646. package/lib/ProStep/propsType.js +0 -5
  647. package/lib/ProStep/style/index.less +0 -220
  648. package/lib/ProStep/utils/index.d.ts +0 -22
  649. package/lib/ProStep/utils/index.js +0 -78
  650. package/lib/ProStepTab/index.d.ts +0 -22
  651. package/lib/ProStepTab/index.js +0 -384
  652. package/lib/ProStepTab/propsType.d.ts +0 -114
  653. package/lib/ProStepTab/propsType.js +0 -5
  654. package/lib/ProTable/components/FormatColumn/index.d.ts +0 -20
  655. package/lib/ProTable/components/FormatColumn/index.js +0 -699
  656. package/lib/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  657. package/lib/ProTable/components/FormatColumn/propsType.js +0 -5
  658. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -10
  659. package/lib/ProTable/components/RcTable/components/BaseTable/index.js +0 -49
  660. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  661. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +0 -205
  662. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  663. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +0 -182
  664. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  665. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.js +0 -5
  666. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -10
  667. package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +0 -65
  668. package/lib/ProTable/components/RcTable/index.d.ts +0 -4
  669. package/lib/ProTable/components/RcTable/index.js +0 -20
  670. package/lib/ProTable/components/RenderColumn/index.d.ts +0 -22
  671. package/lib/ProTable/components/RenderColumn/index.js +0 -278
  672. package/lib/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  673. package/lib/ProTable/components/RenderEmptyText/index.js +0 -28
  674. package/lib/ProTable/components/RenderFooter/index.d.ts +0 -2
  675. package/lib/ProTable/components/RenderFooter/index.js +0 -20
  676. package/lib/ProTable/components/RenderSummary/index.d.ts +0 -3
  677. package/lib/ProTable/components/RenderSummary/index.js +0 -60
  678. package/lib/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  679. package/lib/ProTable/components/RenderTableHeader/index.js +0 -67
  680. package/lib/ProTable/components/RenderTabs/index.d.ts +0 -4
  681. package/lib/ProTable/components/RenderTabs/index.js +0 -97
  682. package/lib/ProTable/components/TableResizable/index.d.ts +0 -13
  683. package/lib/ProTable/components/TableResizable/index.js +0 -109
  684. package/lib/ProTable/components/TooltipTitle/index.d.ts +0 -11
  685. package/lib/ProTable/components/TooltipTitle/index.js +0 -26
  686. package/lib/ProTable/components/index.d.ts +0 -30
  687. package/lib/ProTable/components/index.js +0 -48
  688. package/lib/ProTable/hooks/useAntdTable.d.ts +0 -7
  689. package/lib/ProTable/hooks/useAntdTable.js +0 -581
  690. package/lib/ProTable/index.d.ts +0 -16
  691. package/lib/ProTable/index.js +0 -476
  692. package/lib/ProTable/propsType.d.ts +0 -757
  693. package/lib/ProTable/propsType.js +0 -5
  694. package/lib/ProTable/style/index.less +0 -644
  695. package/lib/ProTable/utils/index.d.ts +0 -38
  696. package/lib/ProTable/utils/index.js +0 -142
  697. package/lib/ProTabs/components/Card/index.d.ts +0 -3
  698. package/lib/ProTabs/components/Card/index.js +0 -54
  699. package/lib/ProTabs/components/index.d.ts +0 -1
  700. package/lib/ProTabs/components/index.js +0 -13
  701. package/lib/ProTabs/index.d.ts +0 -4
  702. package/lib/ProTabs/index.js +0 -138
  703. package/lib/ProTabs/propType.d.ts +0 -94
  704. package/lib/ProTabs/propType.js +0 -5
  705. package/lib/ProTabs/style/index.less +0 -157
  706. package/lib/ProThemeTools/component/ProTools/index.d.ts +0 -3
  707. package/lib/ProThemeTools/component/ProTools/index.js +0 -301
  708. package/lib/ProThemeTools/component/ProTools/style/index.less +0 -178
  709. package/lib/ProThemeTools/component/index.d.ts +0 -1
  710. package/lib/ProThemeTools/component/index.js +0 -13
  711. package/lib/ProThemeTools/context/ThemeContext.d.ts +0 -43
  712. package/lib/ProThemeTools/context/ThemeContext.js +0 -291
  713. package/lib/ProThemeTools/index.d.ts +0 -9
  714. package/lib/ProThemeTools/index.js +0 -302
  715. package/lib/ProThemeTools/propsType.d.ts +0 -170
  716. package/lib/ProThemeTools/propsType.js +0 -5
  717. package/lib/ProThemeTools/style/index.less +0 -74
  718. package/lib/ProThemeTools/utils/index.d.ts +0 -51
  719. package/lib/ProThemeTools/utils/index.js +0 -261
  720. package/lib/ProTooltip/index.d.ts +0 -3
  721. package/lib/ProTooltip/index.js +0 -309
  722. package/lib/ProTooltip/propsType.d.ts +0 -57
  723. package/lib/ProTooltip/propsType.js +0 -5
  724. package/lib/ProTooltip/style/index.less +0 -34
  725. package/lib/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  726. package/lib/ProTree/components/AdaptiveTooltip.js +0 -23
  727. package/lib/ProTree/components/CloseIcon.d.ts +0 -2
  728. package/lib/ProTree/components/CloseIcon.js +0 -38
  729. package/lib/ProTree/components/List.d.ts +0 -17
  730. package/lib/ProTree/components/List.js +0 -79
  731. package/lib/ProTree/components/ProTree.d.ts +0 -3
  732. package/lib/ProTree/components/ProTree.js +0 -505
  733. package/lib/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  734. package/lib/ProTree/components/ProTreeSelect/index.js +0 -770
  735. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
  736. package/lib/ProTree/components/ProTreeSelect/propsType.js +0 -5
  737. package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -119
  738. package/lib/ProTree/components/SearchTitle.d.ts +0 -11
  739. package/lib/ProTree/components/SearchTitle.js +0 -60
  740. package/lib/ProTree/components/Tree.d.ts +0 -27
  741. package/lib/ProTree/components/Tree.js +0 -393
  742. package/lib/ProTree/components/index.d.ts +0 -4
  743. package/lib/ProTree/components/index.js +0 -34
  744. package/lib/ProTree/index.d.ts +0 -3
  745. package/lib/ProTree/index.js +0 -30
  746. package/lib/ProTree/propsType.d.ts +0 -812
  747. package/lib/ProTree/propsType.js +0 -5
  748. package/lib/ProTree/style/index.less +0 -393
  749. package/lib/ProTree/utils.d.ts +0 -43
  750. package/lib/ProTree/utils.js +0 -221
  751. package/lib/ProTreeModal/components/Cascader.d.ts +0 -14
  752. package/lib/ProTreeModal/components/Cascader.js +0 -110
  753. package/lib/ProTreeModal/components/CloseIcon.d.ts +0 -2
  754. package/lib/ProTreeModal/components/CloseIcon.js +0 -38
  755. package/lib/ProTreeModal/components/List.d.ts +0 -21
  756. package/lib/ProTreeModal/components/List.js +0 -294
  757. package/lib/ProTreeModal/components/SearchTitle.d.ts +0 -7
  758. package/lib/ProTreeModal/components/SearchTitle.js +0 -27
  759. package/lib/ProTreeModal/components/SortableItem.d.ts +0 -12
  760. package/lib/ProTreeModal/components/SortableItem.js +0 -80
  761. package/lib/ProTreeModal/components/Tree.d.ts +0 -25
  762. package/lib/ProTreeModal/components/Tree.js +0 -241
  763. package/lib/ProTreeModal/components/Trigger.d.ts +0 -21
  764. package/lib/ProTreeModal/components/Trigger.js +0 -195
  765. package/lib/ProTreeModal/components/index.d.ts +0 -6
  766. package/lib/ProTreeModal/components/index.js +0 -48
  767. package/lib/ProTreeModal/index.d.ts +0 -4
  768. package/lib/ProTreeModal/index.js +0 -837
  769. package/lib/ProTreeModal/propsType.d.ts +0 -298
  770. package/lib/ProTreeModal/propsType.js +0 -5
  771. package/lib/ProTreeModal/style/index.less +0 -414
  772. package/lib/ProTreeModal/utils.d.ts +0 -39
  773. package/lib/ProTreeModal/utils.js +0 -243
  774. package/lib/ProUpload/components/ButtonRender.d.ts +0 -20
  775. package/lib/ProUpload/components/ButtonRender.js +0 -114
  776. package/lib/ProUpload/components/DragRender.d.ts +0 -21
  777. package/lib/ProUpload/components/DragRender.js +0 -196
  778. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  779. package/lib/ProUpload/components/DraggableUploadListItem.js +0 -42
  780. package/lib/ProUpload/components/Example.d.ts +0 -10
  781. package/lib/ProUpload/components/Example.js +0 -61
  782. package/lib/ProUpload/components/FileItem.d.ts +0 -33
  783. package/lib/ProUpload/components/FileItem.js +0 -238
  784. package/lib/ProUpload/components/ImageRender.d.ts +0 -19
  785. package/lib/ProUpload/components/ImageRender.js +0 -279
  786. package/lib/ProUpload/index.d.ts +0 -4
  787. package/lib/ProUpload/index.js +0 -311
  788. package/lib/ProUpload/propsType.d.ts +0 -264
  789. package/lib/ProUpload/propsType.js +0 -5
  790. package/lib/ProUpload/style/icon-PDF.png +0 -0
  791. package/lib/ProUpload/style/icon-TXT.png +0 -0
  792. package/lib/ProUpload/style/icon-excel.png +0 -0
  793. package/lib/ProUpload/style/icon-pic.png +0 -0
  794. package/lib/ProUpload/style/icon-word.png +0 -0
  795. package/lib/ProUpload/style/index.less +0 -480
  796. package/lib/ProUpload/uitls.d.ts +0 -3
  797. package/lib/ProUpload/uitls.js +0 -22
  798. package/lib/ProUtils/utils/index.d.ts +0 -6
  799. package/lib/ProUtils/utils/index.js +0 -26
  800. package/lib/ProViewer/index.d.ts +0 -4
  801. package/lib/ProViewer/index.js +0 -229
  802. package/lib/ProViewer/propsType.d.ts +0 -35
  803. package/lib/ProViewer/propsType.js +0 -3
  804. package/lib/ProViewer/style/index.less +0 -10
  805. package/lib/ProWaterMark/index.d.ts +0 -4
  806. package/lib/ProWaterMark/index.js +0 -26
  807. package/lib/ProWaterMark/propsType.d.ts +0 -6
  808. package/lib/ProWaterMark/propsType.js +0 -5
  809. package/lib/assets/apps.svg +0 -23
  810. package/lib/assets/arrow.svg +0 -1
  811. package/lib/assets/catalog.svg +0 -30
  812. package/lib/assets/close.svg +0 -1
  813. package/lib/assets/close2.svg +0 -1
  814. package/lib/assets/copy.svg +0 -1
  815. package/lib/assets/customColumn.svg +0 -2
  816. package/lib/assets/delete.svg +0 -1
  817. package/lib/assets/disabled.svg +0 -18
  818. package/lib/assets/download.svg +0 -1
  819. package/lib/assets/drag.svg +0 -1
  820. package/lib/assets/empty.png +0 -0
  821. package/lib/assets/fold.svg +0 -27
  822. package/lib/assets/header_bg.png +0 -0
  823. package/lib/assets/input-search.svg +0 -11
  824. package/lib/assets/look.svg +0 -1
  825. package/lib/assets/reset.svg +0 -11
  826. package/lib/assets/search.svg +0 -1
  827. package/lib/assets/setting.svg +0 -14
  828. package/lib/assets/view.svg +0 -20
  829. package/lib/global.less +0 -57
  830. package/lib/index.d.ts +0 -47
  831. package/lib/index.js +0 -276
  832. package/lib/locale/en_US.d.ts +0 -176
  833. package/lib/locale/en_US.js +0 -181
  834. package/lib/locale/index.d.ts +0 -15
  835. package/lib/locale/index.js +0 -65
  836. package/lib/locale/zh_CN.d.ts +0 -176
  837. package/lib/locale/zh_CN.js +0 -181
  838. package/lib/style/components.less +0 -27
  839. package/lib/style/core/compatible.less +0 -5
  840. package/lib/style/core/index.less +0 -3
  841. package/lib/style/core/mixins.less +0 -77
  842. package/lib/style/core/normalize.less +0 -251
  843. package/lib/style/index.less +0 -2
  844. package/lib/style/less.less +0 -2
  845. package/lib/style/theme/antd.less +0 -743
  846. package/lib/style/theme/base.less +0 -90
  847. package/lib/style/theme/index.less +0 -2
  848. package/lib/style/theme/tokens.less +0 -90
  849. package/lib/style/variables.less +0 -2
  850. package/lib/tokens.d.ts +0 -83
  851. package/lib/tokens.js +0 -91
  852. package/lib/utils/index.d.ts +0 -21
  853. package/lib/utils/index.js +0 -116
  854. package/typings.d.ts +0 -17
@@ -1,26 +1,10 @@
1
- var _excluded = ["disabled", "code", "dataSource", "defaultDisableValue", "onChange", "useRequest", "transformResponse", "fieldNames", "placeholder", "tooltip", "showSearch", "filterTreeNode", "treeNodeFilterProp", "defaultExpandAll", "expandedKeys", "treeCheckable", "onSearch", "otherProps", "width", "dropdownStyle", "popupClassName", "style", "allowClear", "listHeight", "showCodeName", "className", "checkStrictly", "checkable"];
2
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
- 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."); }
7
- 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); }
8
- 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; }
9
- 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; } }
10
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return 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
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
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 _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1
+ import _debounce from "lodash/debounce";
2
+ import _cloneDeep from "lodash/cloneDeep";
18
3
  /* eslint-disable @typescript-eslint/no-use-before-define */
19
4
  import React, { useImperativeHandle, forwardRef, useCallback } from 'react';
20
5
  import { useDeepCompareEffect, useRequest as useRequestFunc, useSetState } from 'ahooks';
21
6
  import { Input, TreeSelect, message, Tooltip } from 'antd';
22
7
  import classnames from 'classnames';
23
- import { cloneDeep, debounce } from 'lodash';
24
8
  import { tools } from '@zat-design/utils';
25
9
  import locale from "../../../locale";
26
10
  import { useProConfig } from "../../../ProConfigProvider";
@@ -28,76 +12,89 @@ import Container from "../../../ProForm/components/Container";
28
12
  import AdaptiveTooltip from "../AdaptiveTooltip";
29
13
  import { getFlatTreeData } from "../../utils";
30
14
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
31
- var SHOW_PARENT = TreeSelect.SHOW_PARENT;
32
- export var ProTreeSelect = (props, ref) => {
33
- var _useRequest$options, _useRequest$options3, _selectProps$classNam, _selectProps$classNam2, _selectProps$styles, _selectProps$styles2;
15
+ const {
16
+ SHOW_PARENT
17
+ } = TreeSelect;
18
+ export const ProTreeSelect = (props, ref) => {
34
19
  // 全局属性配置在ConfigProvider
35
- var _ref = useProConfig('ProTreeSelect') || {},
36
- _ref$fieldNames = _ref.fieldNames,
37
- proSelectFieldNames = _ref$fieldNames === void 0 ? {} : _ref$fieldNames;
38
- var _useProConfig = useProConfig('ProEnum'),
39
- _useProConfig$dics = _useProConfig.dics,
40
- dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
20
+ const {
21
+ fieldNames: proSelectFieldNames = {}
22
+ } = useProConfig('ProTreeSelect') || {};
23
+ const {
24
+ dics = {}
25
+ } = useProConfig('ProEnum');
41
26
 
42
27
  // 配置属性
43
- var disabled = props.disabled,
44
- enumCode = props.code,
45
- dataSource = props.dataSource,
46
- defaultDisableValue = props.defaultDisableValue,
47
- onChange = props.onChange,
48
- useRequest = props.useRequest,
49
- transformResponse = props.transformResponse,
50
- fieldNames = props.fieldNames,
51
- placeholder = props.placeholder,
52
- _props$tooltip = props.tooltip,
53
- tooltip = _props$tooltip === void 0 ? false : _props$tooltip,
54
- _props$showSearch = props.showSearch,
55
- showSearch = _props$showSearch === void 0 ? true : _props$showSearch,
56
- filterTreeNode = props.filterTreeNode,
57
- _props$treeNodeFilter = props.treeNodeFilterProp,
58
- treeNodeFilterProp = _props$treeNodeFilter === void 0 ? 'label' : _props$treeNodeFilter,
59
- _props$defaultExpandA = props.defaultExpandAll,
60
- defaultExpandAll = _props$defaultExpandA === void 0 ? true : _props$defaultExpandA,
61
- expandedKeys = props.expandedKeys,
62
- _props$treeCheckable = props.treeCheckable,
63
- treeCheckable = _props$treeCheckable === void 0 ? true : _props$treeCheckable,
64
- _onSearch = props.onSearch,
65
- otherProps = props.otherProps,
66
- width = props.width,
67
- dropdownStyle = props.dropdownStyle,
68
- popupClassName = props.popupClassName,
69
- style = props.style,
70
- allowClear = props.allowClear,
71
- listHeight = props.listHeight,
72
- showCodeName = props.showCodeName,
73
- className = props.className,
74
- checkStrictly = props.checkStrictly,
75
- checkable = props.checkable,
76
- selectProps = _objectWithoutProperties(props, _excluded);
77
- var _props$value = props.value,
78
- value = _props$value === void 0 ? undefined : _props$value;
79
- var _props$showEllipse = props.showEllipse,
80
- showEllipse = _props$showEllipse === void 0 ? true : _props$showEllipse;
81
- var _ref2 = otherProps !== null && otherProps !== void 0 ? otherProps : {},
82
- isDiffChange = _ref2.isDiffChange;
83
- var _showEllipse = showEllipse && !isDiffChange;
84
- var _ref3 = otherProps || {},
85
- isView = _ref3.isView,
86
- viewEmpty = _ref3.viewEmpty;
28
+ const {
29
+ disabled,
30
+ code: enumCode,
31
+ // 配置了此code其他异步逻辑都不走,优先级最高
32
+ dataSource,
33
+ // 优先级第二
34
+ defaultDisableValue,
35
+ onChange,
36
+ useRequest,
37
+ // 优先级第三
38
+ transformResponse,
39
+ fieldNames,
40
+ placeholder,
41
+ tooltip = false,
42
+ showSearch = true,
43
+ // 默认支持搜索
44
+ filterTreeNode,
45
+ // 是否根据输入项进行筛选,默认true
46
+ treeNodeFilterProp = 'label',
47
+ defaultExpandAll = true,
48
+ // 默认展开所有树
49
+ expandedKeys,
50
+ treeCheckable = true,
51
+ // 默认支持复选、多选
52
+ onSearch: _onSearch,
53
+ // 使用内部onSearch,传入不使用
54
+ otherProps,
55
+ width,
56
+ dropdownStyle,
57
+ popupClassName,
58
+ style,
59
+ allowClear,
60
+ listHeight,
61
+ // 下拉最大高度
62
+ showCodeName,
63
+ className,
64
+ checkStrictly,
65
+ checkable,
66
+ ...selectProps
67
+ } = props;
68
+ const {
69
+ value = undefined
70
+ } = props;
71
+ const {
72
+ showEllipse = true
73
+ } = props;
74
+ const {
75
+ isDiffChange
76
+ } = otherProps ?? {};
77
+ const _showEllipse = showEllipse && !isDiffChange;
78
+ const {
79
+ isView,
80
+ viewEmpty
81
+ } = otherProps || {};
87
82
 
88
83
  // 合并全局和组件级别的 fieldNames,优先级:组件级 > 全局
89
- var finalFieldNames = _objectSpread(_objectSpread({
84
+ const finalFieldNames = {
90
85
  label: 'label',
91
86
  value: 'value',
92
- children: 'children'
93
- }, proSelectFieldNames), fieldNames);
87
+ children: 'children',
88
+ ...proSelectFieldNames,
89
+ ...fieldNames
90
+ };
94
91
 
95
92
  /**
96
93
  * 使用 tools.transformDataName 统一转换字段名
97
94
  * 将原始数据转换为标准格式(label, value, children)
98
95
  * tools.transformDataName 会自动检查数据是否已经是标准格式,如果是则直接返回
99
96
  */
100
- var transformFieldNames = useCallback(data => {
97
+ const transformFieldNames = useCallback(data => {
101
98
  if (!data || !Array.isArray(data) || !data.length) {
102
99
  return data || [];
103
100
  }
@@ -111,14 +108,11 @@ export var ProTreeSelect = (props, ref) => {
111
108
  });
112
109
  }, [finalFieldNames]);
113
110
  // 经过处理后的枚举数据,可能来自用户配置的处理函数后返回的结果
114
- var _useSetState = useSetState({}),
115
- _useSetState2 = _slicedToArray(_useSetState, 2),
116
- state = _useSetState2[0],
117
- setState = _useSetState2[1];
118
- var _state$selectList = state.selectList,
119
- selectList = _state$selectList === void 0 ? [] : _state$selectList,
120
- _state$origDataSource = state.origDataSource,
121
- origDataSource = _state$origDataSource === void 0 ? [] : _state$origDataSource;
111
+ const [state, setState] = useSetState({});
112
+ const {
113
+ selectList = [],
114
+ origDataSource = []
115
+ } = state;
122
116
 
123
117
  /**
124
118
  * 如果数据少于10条那么将数据平铺返回
@@ -126,7 +120,7 @@ export var ProTreeSelect = (props, ref) => {
126
120
  * @param dictsEnum 原始数据
127
121
  * @returns 平铺或者原始数据
128
122
  */
129
- var countChild = dictsEnum => {
123
+ const countChild = dictsEnum => {
130
124
  if (treeCheckable) {
131
125
  return dictsEnum;
132
126
  }
@@ -142,12 +136,12 @@ export var ProTreeSelect = (props, ref) => {
142
136
  * @param showCodeAndName 是否展示code-name
143
137
  * @returns 转换结果
144
138
  */
145
- var transferDataSource = (dataArr, showCodeAndName) => {
139
+ const transferDataSource = (dataArr, showCodeAndName) => {
146
140
  if (!showCodeAndName) {
147
141
  return dataArr;
148
142
  }
149
- var copyData = cloneDeep(dataArr);
150
- var loop = arr => {
143
+ const copyData = _cloneDeep(dataArr);
144
+ const loop = arr => {
151
145
  arr.map(item => {
152
146
  item.label = `${item.value}-${item.label}`;
153
147
  if (item.children) {
@@ -159,32 +153,33 @@ export var ProTreeSelect = (props, ref) => {
159
153
  loop(copyData);
160
154
  return copyData;
161
155
  };
162
- var defaultOnSuccessFun = res => {
163
- var _res$status = res.status,
164
- status = _res$status === void 0 ? 200 : _res$status,
165
- msg = res.message,
166
- data = res.data;
156
+ const defaultOnSuccessFun = res => {
157
+ const {
158
+ status = 200,
159
+ message: msg,
160
+ data
161
+ } = res;
167
162
  if (status !== 200) {
168
163
  message.error(msg);
169
164
  return;
170
165
  }
171
166
  // 先转换字段名,再处理 code-name 展示
172
- var transformedData = transformFieldNames(data || []);
173
- var resultData = transferDataSource(transformedData, showCodeName);
167
+ const transformedData = transformFieldNames(data || []);
168
+ const resultData = transferDataSource(transformedData, showCodeName);
174
169
  setState({
175
170
  selectList: resultData || [],
176
171
  origDataSource: resultData || []
177
172
  });
178
173
  };
179
- var successTransformDataHandle = useCallback(res => {
174
+ const successTransformDataHandle = useCallback(res => {
180
175
  if (transformResponse && typeof transformResponse === 'function') {
181
176
  return transformResponse(res);
182
177
  }
183
- var _ref4 = res || {},
184
- _ref4$status = _ref4.status,
185
- status = _ref4$status === void 0 ? 200 : _ref4$status,
186
- msg = _ref4.message,
187
- data = _ref4.data;
178
+ const {
179
+ status = 200,
180
+ message: msg,
181
+ data
182
+ } = res || {};
188
183
  if (status !== 200) {
189
184
  message.error(msg);
190
185
  return;
@@ -193,15 +188,15 @@ export var ProTreeSelect = (props, ref) => {
193
188
  }, []);
194
189
 
195
190
  // 配置了异步数据源,拉取枚举数据逻辑 如果有code不掉接口从local里根据code取值
196
- var fetchFunction = useRequestFunc(useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, _objectSpread({
191
+ const fetchFunction = useRequestFunc(useRequest?.service, {
197
192
  manual: true,
198
193
  debounceWait: 300,
199
194
  onSuccess: data => {
200
195
  if (transformResponse && typeof transformResponse === 'function') {
201
- var responseData = transformResponse(data);
196
+ const responseData = transformResponse(data);
202
197
  // 先转换字段名,再处理 code-name 展示
203
- var transformedData = transformFieldNames(responseData);
204
- var resultData = transferDataSource(transformedData, showCodeName);
198
+ const transformedData = transformFieldNames(responseData);
199
+ const resultData = transferDataSource(transformedData, showCodeName);
205
200
  setState({
206
201
  selectList: countChild(resultData),
207
202
  origDataSource: resultData
@@ -209,22 +204,22 @@ export var ProTreeSelect = (props, ref) => {
209
204
  } else {
210
205
  defaultOnSuccessFun(fetchFunction.data);
211
206
  }
212
- }
213
- }, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options));
214
- var cacheList = useRequest !== null && useRequest !== void 0 && (_useRequest$options = useRequest.options) !== null && _useRequest$options !== void 0 && _useRequest$options.cacheKey ? successTransformDataHandle(fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.data) : [];
207
+ },
208
+ ...useRequest?.options
209
+ });
210
+ const cacheList = useRequest?.options?.cacheKey ? successTransformDataHandle(fetchFunction?.data) : [];
215
211
  useImperativeHandle(ref, () => ({
216
212
  useRequestRef: fetchFunction
217
213
  }));
218
214
 
219
215
  // 设置cacheKey后使用缓存的数据
220
216
  useDeepCompareEffect(() => {
221
- var _useRequest$options2;
222
- if (fetchFunction !== null && fetchFunction !== void 0 && fetchFunction.data, useRequest !== null && useRequest !== void 0 && (_useRequest$options2 = useRequest.options) !== null && _useRequest$options2 !== void 0 && _useRequest$options2.cacheKey) {
217
+ if (fetchFunction?.data, useRequest?.options?.cacheKey) {
223
218
  if (transformResponse && typeof transformResponse === 'function') {
224
- var responseData = transformResponse(fetchFunction.data);
219
+ const responseData = transformResponse(fetchFunction.data);
225
220
  // 先转换字段名,再处理 code-name 展示
226
- var transformedData = transformFieldNames(responseData);
227
- var resultData = transferDataSource(transformedData, showCodeName);
221
+ const transformedData = transformFieldNames(responseData);
222
+ const resultData = transferDataSource(transformedData, showCodeName);
228
223
  setState({
229
224
  selectList: countChild(resultData),
230
225
  origDataSource: resultData
@@ -233,26 +228,26 @@ export var ProTreeSelect = (props, ref) => {
233
228
  defaultOnSuccessFun(fetchFunction.data);
234
229
  }
235
230
  }
236
- }, [fetchFunction === null || fetchFunction === void 0 ? void 0 : fetchFunction.data, useRequest === null || useRequest === void 0 || (_useRequest$options3 = useRequest.options) === null || _useRequest$options3 === void 0 ? void 0 : _useRequest$options3.cacheKey]);
231
+ }, [fetchFunction?.data, useRequest?.options?.cacheKey]);
237
232
  useDeepCompareEffect(() => {
238
233
  if (enumCode) {
239
- var dictEnum = dics[enumCode] || [];
234
+ const dictEnum = dics[enumCode] || [];
240
235
  // 先转换字段名,再处理 code-name 展示
241
- var transformedData = transformFieldNames(dictEnum);
242
- var resultData = transferDataSource(transformedData, showCodeName);
243
- var processedList = countChild(resultData);
236
+ const transformedData = transformFieldNames(dictEnum);
237
+ const resultData = transferDataSource(transformedData, showCodeName);
238
+ const processedList = countChild(resultData);
244
239
  setState({
245
240
  selectList: processedList,
246
241
  origDataSource: resultData
247
242
  });
248
243
  } else if (dataSource) {
249
244
  // 先转换字段名,再处理 code-name 展示
250
- var _transformedData = transformFieldNames(dataSource);
251
- var _resultData = transferDataSource(_transformedData, showCodeName);
252
- var _processedList = countChild(_resultData);
245
+ const transformedData = transformFieldNames(dataSource);
246
+ const resultData = transferDataSource(transformedData, showCodeName);
247
+ const processedList = countChild(resultData);
253
248
  setState({
254
- selectList: _processedList,
255
- origDataSource: _resultData
249
+ selectList: processedList,
250
+ origDataSource: resultData
256
251
  });
257
252
  }
258
253
  }, [enumCode, dataSource, showCodeName]);
@@ -262,20 +257,21 @@ export var ProTreeSelect = (props, ref) => {
262
257
  return undefined;
263
258
  }
264
259
  // 如果配置手动加载,不执行请求
265
- var _ref5 = (useRequest === null || useRequest === void 0 ? void 0 : useRequest.options) || {},
266
- defaultParams = _ref5.defaultParams,
267
- manual = _ref5.manual;
260
+ const {
261
+ defaultParams,
262
+ manual
263
+ } = useRequest?.options || {};
268
264
  // disabled 状态时,不查询接口
269
265
  if (defaultDisableValue || !useRequest) {
270
266
  return undefined;
271
267
  }
272
- if (manual || cacheList !== null && cacheList !== void 0 && cacheList.length) {
268
+ if (manual || cacheList?.length) {
273
269
  return;
274
270
  }
275
- var params = Array.isArray(defaultParams) ? defaultParams === null || defaultParams === void 0 ? void 0 : defaultParams[0] : defaultParams || {};
271
+ const params = Array.isArray(defaultParams) ? defaultParams?.[0] : defaultParams || {};
276
272
  // 执行用户配置的枚举服务,拉取枚举数据进行更新
277
273
  fetchFunction.run(params);
278
- }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options, defaultDisableValue]);
274
+ }, [useRequest?.options, defaultDisableValue]);
279
275
 
280
276
  // disable默认值
281
277
  if (defaultDisableValue) {
@@ -284,7 +280,7 @@ export var ProTreeSelect = (props, ref) => {
284
280
  children: /*#__PURE__*/_jsx(Input, {
285
281
  disabled: true,
286
282
  defaultValue: defaultDisableValue,
287
- style: props === null || props === void 0 ? void 0 : props.style
283
+ style: props?.style
288
284
  })
289
285
  });
290
286
  }
@@ -295,14 +291,14 @@ export var ProTreeSelect = (props, ref) => {
295
291
  * @param value 输入值
296
292
  * @returns 对应枚举label
297
293
  */
298
- var transToLabel = value => {
294
+ const transToLabel = value => {
299
295
  if (!Array.isArray(origDataSource) || !origDataSource.length) {
300
296
  return viewEmpty;
301
297
  }
302
- var labelResult = [];
303
- var queryLabel = dicts => dicts.map(item => {
298
+ const labelResult = [];
299
+ const queryLabel = dicts => dicts.map(item => {
304
300
  if (value.includes(item.value)) {
305
- var labelText = item.label;
301
+ const labelText = item.label;
306
302
  labelResult.push(labelText);
307
303
  }
308
304
  if (item.children) {
@@ -311,22 +307,22 @@ export var ProTreeSelect = (props, ref) => {
311
307
  return item;
312
308
  });
313
309
  queryLabel(origDataSource);
314
- return labelResult === null || labelResult === void 0 ? void 0 : labelResult.join(',');
310
+ return labelResult?.join(',');
315
311
  };
316
312
 
317
313
  // 优化的maxTagPlaceholder实现,支持hover显示完整标签内容
318
314
  // 必须在条件返回之前定义所有hooks,避免hooks数量不一致错误
319
- var maxTagPlaceholder = useCallback(omittedValues => {
315
+ const maxTagPlaceholder = useCallback(omittedValues => {
320
316
  // 获取扁平化的树数据用于查找标签
321
- var flatData = getFlatTreeData(selectList, finalFieldNames);
317
+ const flatData = getFlatTreeData(selectList, finalFieldNames);
322
318
 
323
319
  // 提取被省略的标签文本
324
- var omittedLabels = omittedValues.map(valueObj => {
320
+ const omittedLabels = omittedValues.map(valueObj => {
325
321
  // TreeSelect的maxTagPlaceholder参数是选中项的完整对象
326
- var targetValue = valueObj.value || valueObj[finalFieldNames.value];
322
+ const targetValue = valueObj.value || valueObj[finalFieldNames.value];
327
323
 
328
324
  // 从扁平化的选项列表中查找匹配项
329
- var matchedItem = flatData.find(item => item[finalFieldNames.value] === targetValue);
325
+ const matchedItem = flatData.find(item => item[finalFieldNames.value] === targetValue);
330
326
  if (matchedItem) {
331
327
  // 支持showCodeName格式
332
328
  return showCodeName ? `${matchedItem[finalFieldNames.value]}-${matchedItem[finalFieldNames.label]}` : matchedItem[finalFieldNames.label];
@@ -334,15 +330,13 @@ export var ProTreeSelect = (props, ref) => {
334
330
 
335
331
  // 备选方案1:直接提取valueObj的label
336
332
  if (valueObj.label) {
337
- var _valueObj$label;
338
333
  // 处理可能的React元素或带HTML的标签
339
- if (typeof valueObj.label === 'object' && (_valueObj$label = valueObj.label) !== null && _valueObj$label !== void 0 && _valueObj$label.props) {
340
- var _valueObj$label2, _children$props, _valueObj$label3;
341
- var children = (_valueObj$label2 = valueObj.label) === null || _valueObj$label2 === void 0 || (_valueObj$label2 = _valueObj$label2.props) === null || _valueObj$label2 === void 0 ? void 0 : _valueObj$label2.children;
342
- if (children !== null && children !== void 0 && (_children$props = children.props) !== null && _children$props !== void 0 && (_children$props = _children$props.dangerouslySetInnerHTML) !== null && _children$props !== void 0 && _children$props.__html) {
334
+ if (typeof valueObj.label === 'object' && valueObj.label?.props) {
335
+ const children = valueObj.label?.props?.children;
336
+ if (children?.props?.dangerouslySetInnerHTML?.__html) {
343
337
  return children.props.dangerouslySetInnerHTML.__html;
344
338
  }
345
- if ((_valueObj$label3 = valueObj.label) !== null && _valueObj$label3 !== void 0 && (_valueObj$label3 = _valueObj$label3.props) !== null && _valueObj$label3 !== void 0 && (_valueObj$label3 = _valueObj$label3.dangerouslySetInnerHTML) !== null && _valueObj$label3 !== void 0 && _valueObj$label3.__html) {
339
+ if (valueObj.label?.props?.dangerouslySetInnerHTML?.__html) {
346
340
  return valueObj.label.props.dangerouslySetInnerHTML.__html;
347
341
  }
348
342
  // 如果是React元素,尝试提取文本内容
@@ -354,7 +348,7 @@ export var ProTreeSelect = (props, ref) => {
354
348
  // 备选方案2:使用value作为fallback
355
349
  return targetValue;
356
350
  });
357
- var tooltipContent = omittedLabels.join('、');
351
+ const tooltipContent = omittedLabels.join('、');
358
352
  return /*#__PURE__*/_jsx(Tooltip, {
359
353
  title: tooltipContent,
360
354
  placement: "topLeft",
@@ -371,19 +365,18 @@ export var ProTreeSelect = (props, ref) => {
371
365
  if (isView || props.isView) {
372
366
  if (Array.isArray(value)) {
373
367
  // 从selectProps或props中获取maxTagCount,因为此时treeProps还未定义
374
- var maxTagCount = selectProps.maxTagCount || props.maxTagCount;
368
+ const maxTagCount = selectProps.maxTagCount || props.maxTagCount;
375
369
  // 如果设置了maxTagCount且超出数量,需要截断显示
376
- var shouldTruncate = typeof maxTagCount === 'number' && value.length > maxTagCount;
370
+ const shouldTruncate = typeof maxTagCount === 'number' && value.length > maxTagCount;
377
371
  if (shouldTruncate) {
378
- var _locale$ProForm;
379
372
  // 截断显示:显示前N项 + "更多N项..."的hover提示
380
- var maxCount = typeof maxTagCount === 'number' ? maxTagCount : 0;
381
- var visibleItems = value.slice(0, maxCount);
382
- var hiddenItems = value.slice(maxCount);
383
- var hiddenCount = value.length - maxCount;
384
- var visibleText = transToLabel(visibleItems);
385
- var hiddenText = transToLabel(hiddenItems); // 只显示被隐藏的标签
386
- var moreText = locale !== null && locale !== void 0 && (_locale$ProForm = locale.ProForm) !== null && _locale$ProForm !== void 0 && _locale$ProForm.moreItems ? /*#__PURE__*/_jsxs(_Fragment, {
373
+ const maxCount = typeof maxTagCount === 'number' ? maxTagCount : 0;
374
+ const visibleItems = value.slice(0, maxCount);
375
+ const hiddenItems = value.slice(maxCount);
376
+ const hiddenCount = value.length - maxCount;
377
+ const visibleText = transToLabel(visibleItems);
378
+ const hiddenText = transToLabel(hiddenItems); // 只显示被隐藏的标签
379
+ const moreText = locale?.ProForm?.moreItems ? /*#__PURE__*/_jsxs(_Fragment, {
387
380
  children: [locale.ProForm.moreItems.split('{count}')[0], /*#__PURE__*/_jsx("b", {
388
381
  className: "pro-tree-more-count",
389
382
  children: hiddenCount
@@ -418,7 +411,7 @@ export var ProTreeSelect = (props, ref) => {
418
411
  children: value ? transToLabel([value]) : null
419
412
  });
420
413
  }
421
- var Icon = () => {
414
+ const Icon = () => {
422
415
  return /*#__PURE__*/_jsx("svg", {
423
416
  className: "icon",
424
417
  viewBox: "0 0 1433 1024",
@@ -441,40 +434,42 @@ export var ProTreeSelect = (props, ref) => {
441
434
  * @param node 每个节点数据对象(标准格式)
442
435
  * @returns 整个react节点树
443
436
  */
444
- var renderTreeNode = (node, grade) => {
445
- var children = node.children,
446
- icon = node.icon,
447
- label = node.label,
448
- nodeValue = node.value,
449
- nodeKey = node.key;
450
- var labelText = label;
451
- var value = nodeValue;
452
- var key = nodeValue; // 使用 value 作为 key,如果有 key 字段则使用 key
437
+ const renderTreeNode = (node, grade) => {
438
+ const {
439
+ children,
440
+ icon,
441
+ label,
442
+ value: nodeValue,
443
+ key: nodeKey
444
+ } = node;
445
+ let labelText = label;
446
+ let value = nodeValue;
447
+ let key = nodeValue; // 使用 value 作为 key,如果有 key 字段则使用 key
453
448
  if (nodeKey !== undefined) {
454
449
  key = nodeKey;
455
450
  }
456
451
  // 三无走默认
457
452
  if (['undefined-undefined', 'undefined'].includes(labelText) && !value && !key) {
458
453
  if (showCodeName) {
459
- labelText = `${node === null || node === void 0 ? void 0 : node.value}-${node === null || node === void 0 ? void 0 : node.label}`;
454
+ labelText = `${node?.value}-${node?.label}`;
460
455
  } else {
461
- labelText = node === null || node === void 0 ? void 0 : node.label;
456
+ labelText = node?.label;
462
457
  }
463
- value = node === null || node === void 0 ? void 0 : node.value;
464
- key = node === null || node === void 0 ? void 0 : node.value;
458
+ value = node?.value;
459
+ key = node?.value;
465
460
  }
466
- var titleHtml = /*#__PURE__*/_jsx("span", {
461
+ const titleHtml = /*#__PURE__*/_jsx("span", {
467
462
  dangerouslySetInnerHTML: {
468
463
  __html: labelText
469
464
  }
470
465
  });
471
- var searchKey = '';
466
+ let searchKey = '';
472
467
  if (showCodeName) {
473
468
  searchKey = `${value}-${labelText}`;
474
469
  } else {
475
470
  searchKey = labelText;
476
471
  }
477
- var title = treeCheckable ? titleHtml : /*#__PURE__*/_jsxs("span", {
472
+ let title = treeCheckable ? titleHtml : /*#__PURE__*/_jsxs("span", {
478
473
  className: "check-option-text",
479
474
  children: [/*#__PURE__*/_jsx("span", {
480
475
  className: "check-option-text-content",
@@ -506,7 +501,7 @@ export var ProTreeSelect = (props, ref) => {
506
501
  className: `node-val-${value}`
507
502
  }, key);
508
503
  }
509
- var sonGrade = grade + 1;
504
+ const sonGrade = grade + 1;
510
505
  return /*#__PURE__*/_jsx(TreeSelect.TreeNode, {
511
506
  value: value,
512
507
  title: title,
@@ -526,13 +521,13 @@ export var ProTreeSelect = (props, ref) => {
526
521
  * @returns 处理后得树
527
522
  */
528
523
  function filterTree(sourceList, keyWord) {
529
- var filterData = function filterData(data) {
530
- var currentAllNodeChild = []; // 记录当前节点得所有子节点
524
+ const filterData = function (data) {
525
+ const currentAllNodeChild = []; // 记录当前节点得所有子节点
531
526
  // 遍历数组
532
- for (var i = 0; i < data.length; i++) {
533
- var item = data[i];
527
+ for (let i = 0; i < data.length; i++) {
528
+ const item = data[i];
534
529
  // 一直递归到最后一层子节点
535
- var currentNodeChild = []; // 记录当前节点下得子节点匹配到的节点个数
530
+ let currentNodeChild = []; // 记录当前节点下得子节点匹配到的节点个数
536
531
  if (item.children && item.children.length > 0) {
537
532
  currentNodeChild = filterData(item.children);
538
533
  }
@@ -540,8 +535,8 @@ export var ProTreeSelect = (props, ref) => {
540
535
  item.children = currentNodeChild;
541
536
  // 判断节点label是否包含关键字 如果有,那么直接进行下一循环
542
537
  // @ts-ignore
543
- if (item.label && item.label.indexOf(keyWord) > -1 && (selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode) !== 'treeSelect') {
544
- var regExp = new RegExp(keyWord);
538
+ if (item.label && item.label.indexOf(keyWord) > -1 && selectProps?.mode !== 'treeSelect') {
539
+ const regExp = new RegExp(keyWord);
545
540
  item.label = item.label.replace(regExp, `<span class="highlight-search-text">${keyWord}</span>`);
546
541
  }
547
542
  currentAllNodeChild.push(item);
@@ -551,35 +546,18 @@ export var ProTreeSelect = (props, ref) => {
551
546
  sourceList = filterData(sourceList);
552
547
  return sourceList;
553
548
  }
554
- var searchTreeEvent = debounce( /*#__PURE__*/function () {
555
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchVal) {
556
- var result;
557
- return _regeneratorRuntime().wrap(function _callee$(_context) {
558
- while (1) switch (_context.prev = _context.next) {
559
- case 0:
560
- if (searchVal) {
561
- _context.next = 3;
562
- break;
563
- }
564
- setState({
565
- selectList: cloneDeep(origDataSource || [])
566
- });
567
- return _context.abrupt("return", null);
568
- case 3:
569
- result = filterTree(cloneDeep(origDataSource || []), searchVal);
570
- setState({
571
- selectList: result || []
572
- });
573
- case 5:
574
- case "end":
575
- return _context.stop();
576
- }
577
- }, _callee);
578
- }));
579
- return function (_x) {
580
- return _ref6.apply(this, arguments);
581
- };
582
- }(), 500);
549
+ const searchTreeEvent = _debounce(async searchVal => {
550
+ if (!searchVal) {
551
+ setState({
552
+ selectList: _cloneDeep(origDataSource || [])
553
+ });
554
+ return null;
555
+ }
556
+ const result = filterTree(_cloneDeep(origDataSource || []), searchVal);
557
+ setState({
558
+ selectList: result || []
559
+ });
560
+ }, 500);
583
561
 
584
562
  /**
585
563
  * 从树形数据中查找节点
@@ -589,12 +567,14 @@ export var ProTreeSelect = (props, ref) => {
589
567
  * @returns 找到的节点
590
568
  */
591
569
  function findTreeNode(treeList, nodeValue) {
592
- var result = {};
593
- var filterData = function filterData(data) {
594
- for (var i = 0; i < data.length; i++) {
595
- var item = data[i];
570
+ let result = {};
571
+ const filterData = function (data) {
572
+ for (let i = 0; i < data.length; i++) {
573
+ const item = data[i];
596
574
  if (item.value === nodeValue || Array.isArray(nodeValue) && nodeValue.includes(item.value)) {
597
- result = _objectSpread({}, item);
575
+ result = {
576
+ ...item
577
+ };
598
578
  // 删除 children 字段,避免循环引用
599
579
  delete result.children;
600
580
  return null;
@@ -616,12 +596,12 @@ export var ProTreeSelect = (props, ref) => {
616
596
  * @returns 标签对象或数组
617
597
  */
618
598
  function getLabelByValue(treeList, nodeValue) {
619
- var result = nodeValue;
599
+ let result = nodeValue;
620
600
  if (nodeValue) {
621
601
  if (Array.isArray(nodeValue)) {
622
602
  result = [];
623
603
  nodeValue.map(item => {
624
- var res = findTreeNode(treeList, item === null || item === void 0 ? void 0 : item.value);
604
+ const res = findTreeNode(treeList, item?.value);
625
605
  res && result.push(res);
626
606
  return item;
627
607
  });
@@ -631,24 +611,25 @@ export var ProTreeSelect = (props, ref) => {
631
611
  }
632
612
  return result;
633
613
  }
634
- var handleChange = (newVal, label, extra) => {
614
+ const handleChange = (newVal, label, extra) => {
635
615
  // newVal回来得一定是label、value
636
616
  // 注意:此时数据已经是标准格式(label, value, children)
637
- var _selectList = selectList.map(item => {
638
- var _label = item.label;
617
+ const _selectList = selectList.map(item => {
618
+ let _label = item.label;
639
619
  if (_label) {
640
- var regex = /<span class="highlight-search-text">(.*?)<\/span>/g;
620
+ const regex = /<span class="highlight-search-text">(.*?)<\/span>/g;
641
621
  _label = item.label = _label.replace(regex, '$1');
642
622
  }
643
- return _objectSpread(_objectSpread({}, item), {}, {
623
+ return {
624
+ ...item,
644
625
  label: _label
645
- });
626
+ };
646
627
  });
647
- var result = newVal;
648
- if (props !== null && props !== void 0 && props.labelInValue) {
628
+ let result = newVal;
629
+ if (props?.labelInValue) {
649
630
  result = getLabelByValue(_selectList, newVal);
650
631
  }
651
- var options = findTreeNode(_selectList, extra === null || extra === void 0 ? void 0 : extra.triggerValue);
632
+ const options = findTreeNode(_selectList, extra?.triggerValue);
652
633
  onChange && onChange(result, options, extra);
653
634
  // 重置搜索
654
635
  showSearch && searchTreeEvent('');
@@ -658,15 +639,13 @@ export var ProTreeSelect = (props, ref) => {
658
639
  * 全局点击事件, 如果是单选的情况那么点击选中节点后取消勾选
659
640
  * @param e 事件源
660
641
  */
661
- var nodeChangeEvent = e => {
662
- var el = e.target;
663
- var classStr = el.className;
642
+ const nodeChangeEvent = e => {
643
+ const el = e.target;
644
+ const classStr = el.className;
664
645
  if (classStr && !treeCheckable && typeof classStr === 'string') {
665
- var _classStr$split = classStr.split(' '),
666
- _classStr$split2 = _slicedToArray(_classStr$split, 1),
667
- valStr = _classStr$split2[0];
646
+ const [valStr] = classStr.split(' ');
668
647
  if (valStr && classStr.startsWith('node-val-')) {
669
- var choiceVal = valStr.replace('node-val-', '');
648
+ const choiceVal = valStr.replace('node-val-', '');
670
649
  if (value === choiceVal) {
671
650
  onChange && onChange(undefined, [], null);
672
651
  }
@@ -675,16 +654,15 @@ export var ProTreeSelect = (props, ref) => {
675
654
  };
676
655
 
677
656
  // 如果单选情况下只有10条那么设置class控制样式
678
- var tenCountClass = '';
679
- var countTen = enums => {
657
+ let tenCountClass = '';
658
+ const countTen = enums => {
680
659
  if (!enums) {
681
660
  return '';
682
661
  }
683
- var noneChild = true;
684
- var loopCount = data => {
662
+ let noneChild = true;
663
+ const loopCount = data => {
685
664
  data.map(item => {
686
- var _item$children;
687
- if (item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {
665
+ if (item?.children?.length) {
688
666
  noneChild = false;
689
667
  }
690
668
  return item;
@@ -694,17 +672,17 @@ export var ProTreeSelect = (props, ref) => {
694
672
  return noneChild ? 'ten-count-tree-node' : '';
695
673
  };
696
674
  tenCountClass = countTen(selectList);
697
- var cls = classnames({
675
+ const cls = classnames({
698
676
  'pro-tree-select': true,
699
677
  [`${className}`]: className
700
678
  });
701
- var innerClass = treeCheckable ? 'checkable-tree pro' : `${tenCountClass} signal-tree`;
702
- var dropDownClassName = classnames({
679
+ const innerClass = treeCheckable ? 'checkable-tree pro' : `${tenCountClass} signal-tree`;
680
+ const dropDownClassName = classnames({
703
681
  'pro-tree-select-drop-down-container': true,
704
682
  [`${innerClass}`]: true,
705
683
  [`${popupClassName}`]: popupClassName
706
684
  });
707
- var treeProps = _objectSpread(_objectSpread({
685
+ const treeProps = {
708
686
  disabled,
709
687
  showSearch,
710
688
  // 默认支持搜索
@@ -718,43 +696,50 @@ export var ProTreeSelect = (props, ref) => {
718
696
  value,
719
697
  onChange: handleChange,
720
698
  listHeight: listHeight || 320,
721
- style: _objectSpread({
722
- width: width || '100%'
723
- }, style),
699
+ style: {
700
+ width: width || '100%',
701
+ ...style
702
+ },
724
703
  onSearch: searchTreeEvent,
725
704
  allowClear: allowClear || true,
726
705
  treeNodeFilterProp,
727
706
  virtual: true,
728
- treeCheckStrictly: checkStrictly
729
- }, selectProps), {}, {
707
+ treeCheckStrictly: checkStrictly,
708
+ ...selectProps,
730
709
  // 使用新的 API 替代弃用的 popupClassName 和 dropdownStyle
731
- classNames: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 ? void 0 : selectProps.classNames), {}, {
732
- popup: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 || (_selectProps$classNam = selectProps.classNames) === null || _selectProps$classNam === void 0 ? void 0 : _selectProps$classNam.popup), {}, {
733
- root: [selectProps === null || selectProps === void 0 || (_selectProps$classNam2 = selectProps.classNames) === null || _selectProps$classNam2 === void 0 || (_selectProps$classNam2 = _selectProps$classNam2.popup) === null || _selectProps$classNam2 === void 0 ? void 0 : _selectProps$classNam2.root, dropDownClassName].filter(Boolean).join(' ')
734
- })
735
- }),
736
- styles: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 ? void 0 : selectProps.styles), {}, {
737
- popup: _objectSpread(_objectSpread({}, selectProps === null || selectProps === void 0 || (_selectProps$styles = selectProps.styles) === null || _selectProps$styles === void 0 ? void 0 : _selectProps$styles.popup), {}, {
738
- root: _objectSpread(_objectSpread({
710
+ classNames: {
711
+ ...selectProps?.classNames,
712
+ popup: {
713
+ ...selectProps?.classNames?.popup,
714
+ root: [selectProps?.classNames?.popup?.root, dropDownClassName].filter(Boolean).join(' ')
715
+ }
716
+ },
717
+ styles: {
718
+ ...selectProps?.styles,
719
+ popup: {
720
+ ...selectProps?.styles?.popup,
721
+ root: {
739
722
  maxHeight: 320,
740
723
  paddingTop: '0px',
741
- maxWidth: '580px'
742
- }, dropdownStyle), selectProps === null || selectProps === void 0 || (_selectProps$styles2 = selectProps.styles) === null || _selectProps$styles2 === void 0 || (_selectProps$styles2 = _selectProps$styles2.popup) === null || _selectProps$styles2 === void 0 ? void 0 : _selectProps$styles2.root)
743
- })
744
- })
745
- });
724
+ maxWidth: '580px',
725
+ ...dropdownStyle,
726
+ ...selectProps?.styles?.popup?.root
727
+ }
728
+ }
729
+ }
730
+ };
746
731
  if (value === null) {
747
732
  delete treeProps.value;
748
733
  }
749
734
  return /*#__PURE__*/_jsx("div", {
750
735
  onClick: nodeChangeEvent,
751
736
  className: cls,
752
- children: /*#__PURE__*/_jsx(TreeSelect, _objectSpread(_objectSpread({
737
+ children: /*#__PURE__*/_jsx(TreeSelect, {
753
738
  placeholder: placeholder || locale.ProForm.treeSelectPlaceholder,
754
- maxTagPlaceholder: maxTagPlaceholder
755
- }, treeProps), {}, {
739
+ maxTagPlaceholder: maxTagPlaceholder,
740
+ ...treeProps,
756
741
  children: selectList.map(node => renderTreeNode(node, 1))
757
- }))
742
+ })
758
743
  });
759
744
  };
760
745
  export default /*#__PURE__*/forwardRef(ProTreeSelect);