@zat-design/sisyphus-react 4.2.0-beta.1 → 4.2.0-beta.3

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 (790) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/FormsProvider/index.js +7 -7
  4. package/es/ProAction/components/CheckModalContent/index.js +5 -5
  5. package/es/ProAction/index.js +98 -164
  6. package/es/ProConfigProvider/index.js +71 -60
  7. package/es/ProDownload/index.js +97 -184
  8. package/es/ProDownload/utils.js +98 -149
  9. package/es/ProDrawerForm/components/ProDrawer/index.js +100 -177
  10. package/es/ProDrawerForm/components/ProModal/index.js +73 -140
  11. package/es/ProDrawerForm/index.js +36 -54
  12. package/es/ProDrawerForm/utils/index.js +1 -1
  13. package/es/ProEditLabel/components/RenderProForm.js +29 -35
  14. package/es/ProEditLabel/index.js +97 -167
  15. package/es/ProEditLabel/utils/index.js +1 -1
  16. package/es/ProEditTable/components/ActionButton/index.js +61 -56
  17. package/es/ProEditTable/components/RcTable/BaseTable.js +51 -65
  18. package/es/ProEditTable/components/RcTable/DraggableTable.js +112 -106
  19. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +107 -98
  20. package/es/ProEditTable/components/RenderField/index.js +465 -598
  21. package/es/ProEditTable/components/RenderToolbar/index.js +71 -90
  22. package/es/ProEditTable/components/Summary/index.js +40 -35
  23. package/es/ProEditTable/components/Validator/index.js +7 -6
  24. package/es/ProEditTable/index.js +256 -307
  25. package/es/ProEditTable/utils/config.js +158 -184
  26. package/es/ProEditTable/utils/diffOriginal.js +45 -37
  27. package/es/ProEditTable/utils/getDefaultProps.js +23 -19
  28. package/es/ProEditTable/utils/index.js +189 -215
  29. package/es/ProEditTable/utils/tools.js +213 -344
  30. package/es/ProEditTable/utils/transform.js +10 -14
  31. package/es/ProEditTable/utils/useEditTableError.js +18 -29
  32. package/es/ProEditTable/utils/useShouldUpdateForTable.js +55 -63
  33. package/es/ProEnum/components/Group.js +17 -25
  34. package/es/ProEnum/components/Tag.js +12 -19
  35. package/es/ProEnum/hooks/useEnum.js +54 -72
  36. package/es/ProEnum/hooks/useEnumRequest.js +226 -341
  37. package/es/ProEnum/hooks/useFrequentEnumRequest.js +49 -69
  38. package/es/ProEnum/index.js +127 -137
  39. package/es/ProEnum/utils/eventCenter.js +2 -2
  40. package/es/ProEnum/utils/frequentEnum.js +55 -74
  41. package/es/ProEnum/utils/getEnumLabel.js +29 -29
  42. package/es/ProEnum/utils/index.js +107 -239
  43. package/es/ProForm/components/Container.js +10 -8
  44. package/es/ProForm/components/FormFooter/index.js +42 -44
  45. package/es/ProForm/components/base/Checkbox/index.js +29 -34
  46. package/es/ProForm/components/base/DatePicker/index.js +41 -39
  47. package/es/ProForm/components/base/DatePicker/useDateLimit.js +2 -11
  48. package/es/ProForm/components/base/Input/index.js +54 -55
  49. package/es/ProForm/components/base/InputNumber/index.js +115 -136
  50. package/es/ProForm/components/base/Radio/index.js +26 -32
  51. package/es/ProForm/components/base/RangePicker/index.js +63 -57
  52. package/es/ProForm/components/base/RangePicker/useDateRange.js +11 -19
  53. package/es/ProForm/components/base/Select/index.js +44 -50
  54. package/es/ProForm/components/base/Switch/index.js +21 -24
  55. package/es/ProForm/components/base/SwitchCheckbox/index.js +26 -29
  56. package/es/ProForm/components/base/TextArea/index.js +25 -29
  57. package/es/ProForm/components/base/TimePicker/index.js +24 -28
  58. package/es/ProForm/components/combination/Container/index.js +34 -33
  59. package/es/ProForm/components/combination/FormList/components/ActionButton.js +181 -207
  60. package/es/ProForm/components/combination/FormList/components/BlockFields.js +30 -29
  61. package/es/ProForm/components/combination/FormList/components/BlockTitle.js +12 -10
  62. package/es/ProForm/components/combination/FormList/components/Empty.js +32 -60
  63. package/es/ProForm/components/combination/FormList/components/LineFields.js +42 -42
  64. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +98 -120
  65. package/es/ProForm/components/combination/FormList/index.js +78 -70
  66. package/es/ProForm/components/combination/FormList/utils.js +13 -13
  67. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +6 -4
  68. package/es/ProForm/components/combination/Group/component/ComRender.js +77 -69
  69. package/es/ProForm/components/combination/Group/component/FlexibleGroup.js +101 -105
  70. package/es/ProForm/components/combination/Group/hooks/index.js +101 -99
  71. package/es/ProForm/components/combination/Group/index.js +83 -80
  72. package/es/ProForm/components/combination/Group/utils/index.d.ts +11 -11
  73. package/es/ProForm/components/combination/Group/utils/index.js +155 -163
  74. package/es/ProForm/components/combination/ProCascader/index.js +145 -169
  75. package/es/ProForm/components/combination/ProCascader/utils/index.js +15 -18
  76. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +65 -90
  77. package/es/ProForm/components/combination/ProModalSelect/index.js +384 -502
  78. package/es/ProForm/components/combination/ProModalSelect/utils/index.js +11 -11
  79. package/es/ProForm/components/combination/ProNumberRange/index.js +64 -72
  80. package/es/ProForm/components/combination/ProRangeLimit/index.js +82 -109
  81. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +10 -18
  82. package/es/ProForm/components/combination/ProTimeLimit/index.js +78 -88
  83. package/es/ProForm/components/render/ChangedWrapper.js +71 -64
  84. package/es/ProForm/components/render/ConfirmWrapper.js +52 -109
  85. package/es/ProForm/components/render/CustomComponentViewWrapper.js +42 -45
  86. package/es/ProForm/components/render/Render.js +202 -220
  87. package/es/ProForm/components/render/RenderFields.js +99 -93
  88. package/es/ProForm/components/render/propsType.js +1 -1
  89. package/es/ProForm/index.js +128 -143
  90. package/es/ProForm/propsType.js +1 -1
  91. package/es/ProForm/utils/diffOriginal.js +39 -33
  92. package/es/ProForm/utils/getDefaultProps.js +24 -19
  93. package/es/ProForm/utils/index.js +115 -132
  94. package/es/ProForm/utils/processDependencies.js +7 -3
  95. package/es/ProForm/utils/rulesCreator.js +28 -36
  96. package/es/ProForm/utils/transformNames.js +18 -19
  97. package/es/ProForm/utils/transformValue.js +16 -25
  98. package/es/ProForm/utils/useDeepCompareMemo.js +7 -7
  99. package/es/ProForm/utils/useFieldProps.js +3 -3
  100. package/es/ProForm/utils/useForm.js +106 -190
  101. package/es/ProForm/utils/useRules.js +23 -20
  102. package/es/ProForm/utils/useShouldUpdate.js +107 -110
  103. package/es/ProForm/utils/useWatch.js +30 -37
  104. package/es/ProForm/utils/valueType.js +122 -143
  105. package/es/ProIcon/config/index.js +3 -3
  106. package/es/ProIcon/index.js +152 -167
  107. package/es/ProIcon/utils/index.js +28 -27
  108. package/es/ProLayout/components/Layout/Header/index.js +28 -36
  109. package/es/ProLayout/components/Layout/Icon/Icon.js +10 -9
  110. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +61 -55
  111. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +57 -66
  112. package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +18 -14
  113. package/es/ProLayout/components/Layout/Menu/index.js +30 -40
  114. package/es/ProLayout/components/Layout/Notice/index.js +6 -4
  115. package/es/ProLayout/components/ProCollapse/index.js +63 -68
  116. package/es/ProLayout/components/ProFooter/index.js +16 -22
  117. package/es/ProLayout/components/ProHeader/components/Copy/index.js +6 -3
  118. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.js +5 -5
  119. package/es/ProLayout/components/ProHeader/index.js +132 -149
  120. package/es/ProLayout/components/ProHeader/utils/index.js +5 -5
  121. package/es/ProLayout/components/TabsManager/components/TabContextMenu.js +20 -31
  122. package/es/ProLayout/components/TabsManager/components/TabItem.js +18 -18
  123. package/es/ProLayout/components/TabsManager/components/TabsContext.js +1 -1
  124. package/es/ProLayout/components/TabsManager/components/TabsHeader.js +9 -17
  125. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.js +2 -2
  126. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +1 -1
  127. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.js +15 -15
  128. package/es/ProLayout/components/TabsManager/hooks/useTabsState.js +103 -119
  129. package/es/ProLayout/components/TabsManager/index.js +51 -60
  130. package/es/ProLayout/components/TabsManager/propTypes.js +1 -1
  131. package/es/ProLayout/components/TabsManager/utils/index.js +20 -21
  132. package/es/ProLayout/index.js +84 -98
  133. package/es/ProLayout/propTypes.js +2 -4
  134. package/es/ProLayout/utils/index.js +66 -85
  135. package/es/ProSelect/components/AdaptiveTooltip.js +8 -16
  136. package/es/ProSelect/index.js +168 -186
  137. package/es/ProSelect/utils/index.js +49 -77
  138. package/es/ProStep/components/Anchor/index.js +21 -19
  139. package/es/ProStep/components/Item/index.js +32 -39
  140. package/es/ProStep/components/Listener/index.js +36 -60
  141. package/es/ProStep/components/Step/index.js +26 -40
  142. package/es/ProStep/index.js +104 -192
  143. package/es/ProStep/utils/index.js +20 -23
  144. package/es/ProStepTab/index.js +117 -235
  145. package/es/ProTable/components/FormatColumn/index.js +246 -219
  146. package/es/ProTable/components/RcTable/components/BaseTable/index.js +21 -25
  147. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +111 -143
  148. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +52 -60
  149. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +28 -30
  150. package/es/ProTable/components/RenderColumn/index.js +58 -66
  151. package/es/ProTable/components/RenderEmptyText/index.js +7 -7
  152. package/es/ProTable/components/RenderFooter/index.js +10 -8
  153. package/es/ProTable/components/RenderSummary/index.js +31 -30
  154. package/es/ProTable/components/RenderTableHeader/index.js +19 -17
  155. package/es/ProTable/components/RenderTabs/index.js +31 -45
  156. package/es/ProTable/components/TableResizable/index.js +33 -50
  157. package/es/ProTable/components/TooltipTitle/index.js +10 -7
  158. package/es/ProTable/hooks/useAntdTable.js +214 -267
  159. package/es/ProTable/index.js +192 -234
  160. package/es/ProTable/utils/index.js +23 -31
  161. package/es/ProTabs/components/Card/index.js +10 -8
  162. package/es/ProTabs/index.js +51 -61
  163. package/es/ProThemeTools/component/ProTools/index.js +65 -71
  164. package/es/ProThemeTools/context/ThemeContext.js +97 -93
  165. package/es/ProThemeTools/index.js +79 -91
  166. package/es/ProThemeTools/utils/index.js +49 -71
  167. package/es/ProTooltip/index.js +110 -120
  168. package/es/ProTree/components/AdaptiveTooltip.js +3 -2
  169. package/es/ProTree/components/CloseIcon.js +3 -7
  170. package/es/ProTree/components/List.js +21 -27
  171. package/es/ProTree/components/ProTree.js +162 -204
  172. package/es/ProTree/components/ProTreeSelect/index.js +250 -265
  173. package/es/ProTree/components/SearchTitle.js +18 -17
  174. package/es/ProTree/components/Tree.js +109 -148
  175. package/es/ProTree/index.js +15 -15
  176. package/es/ProTree/utils.js +48 -83
  177. package/es/ProTreeModal/components/Cascader.js +28 -41
  178. package/es/ProTreeModal/components/CloseIcon.js +3 -7
  179. package/es/ProTreeModal/components/List.js +90 -96
  180. package/es/ProTreeModal/components/SearchTitle.js +9 -8
  181. package/es/ProTreeModal/components/SortableItem.js +40 -37
  182. package/es/ProTreeModal/components/Tree.js +53 -69
  183. package/es/ProTreeModal/components/Trigger.js +55 -67
  184. package/es/ProTreeModal/index.js +203 -217
  185. package/es/ProTreeModal/utils.js +61 -101
  186. package/es/ProUpload/components/ButtonRender.js +31 -58
  187. package/es/ProUpload/components/DragRender.js +41 -42
  188. package/es/ProUpload/components/DraggableUploadListItem.js +19 -21
  189. package/es/ProUpload/components/Example.js +14 -25
  190. package/es/ProUpload/components/FileItem.js +39 -38
  191. package/es/ProUpload/components/ImageRender.js +59 -100
  192. package/es/ProUpload/index.js +129 -131
  193. package/es/ProUpload/uitls.js +3 -3
  194. package/es/ProUtils/utils/index.js +6 -10
  195. package/es/ProViewer/index.js +66 -102
  196. package/es/ProWaterMark/index.js +8 -10
  197. package/es/locale/index.js +5 -5
  198. package/es/tokens.js +1 -1
  199. package/es/utils/index.js +11 -20
  200. package/package.json +10 -10
  201. package/.claudeignore +0 -40
  202. package/lib/FormsProvider/index.d.ts +0 -18
  203. package/lib/FormsProvider/index.js +0 -44
  204. package/lib/ProAction/components/CheckModalContent/index.css +0 -22
  205. package/lib/ProAction/components/CheckModalContent/index.d.ts +0 -8
  206. package/lib/ProAction/components/CheckModalContent/index.js +0 -34
  207. package/lib/ProAction/components/CheckModalContent/index.less +0 -28
  208. package/lib/ProAction/index.d.ts +0 -7
  209. package/lib/ProAction/index.js +0 -232
  210. package/lib/ProAction/index.less +0 -8
  211. package/lib/ProAction/propsType.d.ts +0 -45
  212. package/lib/ProAction/propsType.js +0 -5
  213. package/lib/ProConfigProvider/index.d.ts +0 -9
  214. package/lib/ProConfigProvider/index.js +0 -158
  215. package/lib/ProConfigProvider/propsType.d.ts +0 -55
  216. package/lib/ProConfigProvider/propsType.js +0 -5
  217. package/lib/ProDownload/index.d.ts +0 -6
  218. package/lib/ProDownload/index.js +0 -208
  219. package/lib/ProDownload/propsType.d.ts +0 -71
  220. package/lib/ProDownload/propsType.js +0 -5
  221. package/lib/ProDownload/style/index.less +0 -9
  222. package/lib/ProDownload/utils.d.ts +0 -60
  223. package/lib/ProDownload/utils.js +0 -213
  224. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  225. package/lib/ProDrawerForm/components/ProDrawer/index.js +0 -287
  226. package/lib/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  227. package/lib/ProDrawerForm/components/ProModal/index.js +0 -222
  228. package/lib/ProDrawerForm/components/index.d.ts +0 -2
  229. package/lib/ProDrawerForm/components/index.js +0 -20
  230. package/lib/ProDrawerForm/index.d.ts +0 -6
  231. package/lib/ProDrawerForm/index.js +0 -106
  232. package/lib/ProDrawerForm/propsType.d.ts +0 -100
  233. package/lib/ProDrawerForm/propsType.js +0 -5
  234. package/lib/ProDrawerForm/style/index.less +0 -172
  235. package/lib/ProDrawerForm/utils/index.d.ts +0 -6
  236. package/lib/ProDrawerForm/utils/index.js +0 -23
  237. package/lib/ProEditLabel/components/RenderProForm.d.ts +0 -4
  238. package/lib/ProEditLabel/components/RenderProForm.js +0 -87
  239. package/lib/ProEditLabel/index.d.ts +0 -4
  240. package/lib/ProEditLabel/index.js +0 -361
  241. package/lib/ProEditLabel/propsType.d.ts +0 -163
  242. package/lib/ProEditLabel/propsType.js +0 -5
  243. package/lib/ProEditLabel/style/index.less +0 -135
  244. package/lib/ProEditLabel/utils/index.d.ts +0 -7
  245. package/lib/ProEditLabel/utils/index.js +0 -24
  246. package/lib/ProEditTable/components/ActionButton/index.d.ts +0 -2
  247. package/lib/ProEditTable/components/ActionButton/index.js +0 -189
  248. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  249. package/lib/ProEditTable/components/RcTable/BaseTable.js +0 -125
  250. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  251. package/lib/ProEditTable/components/RcTable/DraggableTable.js +0 -219
  252. package/lib/ProEditTable/components/RcTable/index.d.ts +0 -4
  253. package/lib/ProEditTable/components/RcTable/index.js +0 -20
  254. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -17
  255. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +0 -244
  256. package/lib/ProEditTable/components/RenderField/index.d.ts +0 -3
  257. package/lib/ProEditTable/components/RenderField/index.js +0 -1169
  258. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  259. package/lib/ProEditTable/components/RenderToolbar/index.js +0 -148
  260. package/lib/ProEditTable/components/Summary/index.d.ts +0 -12
  261. package/lib/ProEditTable/components/Summary/index.js +0 -89
  262. package/lib/ProEditTable/components/Validator/index.d.ts +0 -10
  263. package/lib/ProEditTable/components/Validator/index.js +0 -34
  264. package/lib/ProEditTable/components/index.d.ts +0 -5
  265. package/lib/ProEditTable/components/index.js +0 -41
  266. package/lib/ProEditTable/index.d.ts +0 -4
  267. package/lib/ProEditTable/index.js +0 -535
  268. package/lib/ProEditTable/propsType.d.ts +0 -439
  269. package/lib/ProEditTable/propsType.js +0 -5
  270. package/lib/ProEditTable/style/index.less +0 -448
  271. package/lib/ProEditTable/utils/config.d.ts +0 -25
  272. package/lib/ProEditTable/utils/config.js +0 -293
  273. package/lib/ProEditTable/utils/diffOriginal.d.ts +0 -22
  274. package/lib/ProEditTable/utils/diffOriginal.js +0 -142
  275. package/lib/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  276. package/lib/ProEditTable/utils/getDefaultProps.js +0 -39
  277. package/lib/ProEditTable/utils/index.d.ts +0 -9
  278. package/lib/ProEditTable/utils/index.js +0 -473
  279. package/lib/ProEditTable/utils/tools.d.ts +0 -93
  280. package/lib/ProEditTable/utils/tools.js +0 -572
  281. package/lib/ProEditTable/utils/transform.d.ts +0 -13
  282. package/lib/ProEditTable/utils/transform.js +0 -50
  283. package/lib/ProEditTable/utils/useEditTableError.d.ts +0 -7
  284. package/lib/ProEditTable/utils/useEditTableError.js +0 -108
  285. package/lib/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  286. package/lib/ProEditTable/utils/useShouldUpdateForTable.js +0 -174
  287. package/lib/ProEnum/components/Group.d.ts +0 -10
  288. package/lib/ProEnum/components/Group.js +0 -76
  289. package/lib/ProEnum/components/Tag.d.ts +0 -7
  290. package/lib/ProEnum/components/Tag.js +0 -52
  291. package/lib/ProEnum/hooks/useEnum.d.ts +0 -29
  292. package/lib/ProEnum/hooks/useEnum.js +0 -282
  293. package/lib/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  294. package/lib/ProEnum/hooks/useEnumRequest.js +0 -422
  295. package/lib/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  296. package/lib/ProEnum/hooks/useFrequentEnumRequest.js +0 -91
  297. package/lib/ProEnum/index.d.ts +0 -8
  298. package/lib/ProEnum/index.js +0 -304
  299. package/lib/ProEnum/propsType.d.ts +0 -310
  300. package/lib/ProEnum/propsType.js +0 -5
  301. package/lib/ProEnum/style/index.less +0 -109
  302. package/lib/ProEnum/utils/eventCenter.d.ts +0 -1
  303. package/lib/ProEnum/utils/eventCenter.js +0 -33
  304. package/lib/ProEnum/utils/frequentEnum.d.ts +0 -40
  305. package/lib/ProEnum/utils/frequentEnum.js +0 -165
  306. package/lib/ProEnum/utils/getEnumLabel.d.ts +0 -2
  307. package/lib/ProEnum/utils/getEnumLabel.js +0 -83
  308. package/lib/ProEnum/utils/index.d.ts +0 -69
  309. package/lib/ProEnum/utils/index.js +0 -406
  310. package/lib/ProForm/components/Container.d.ts +0 -9
  311. package/lib/ProForm/components/Container.js +0 -40
  312. package/lib/ProForm/components/FormFooter/index.d.ts +0 -5
  313. package/lib/ProForm/components/FormFooter/index.js +0 -98
  314. package/lib/ProForm/components/FormFooter/propsType.d.ts +0 -22
  315. package/lib/ProForm/components/FormFooter/propsType.js +0 -5
  316. package/lib/ProForm/components/base/Checkbox/index.d.ts +0 -14
  317. package/lib/ProForm/components/base/Checkbox/index.js +0 -88
  318. package/lib/ProForm/components/base/DatePicker/index.d.ts +0 -11
  319. package/lib/ProForm/components/base/DatePicker/index.js +0 -110
  320. package/lib/ProForm/components/base/DatePicker/useDateLimit.d.ts +0 -3
  321. package/lib/ProForm/components/base/DatePicker/useDateLimit.js +0 -23
  322. package/lib/ProForm/components/base/Input/index.d.ts +0 -3
  323. package/lib/ProForm/components/base/Input/index.js +0 -137
  324. package/lib/ProForm/components/base/Input/propsType.d.ts +0 -21
  325. package/lib/ProForm/components/base/Input/propsType.js +0 -5
  326. package/lib/ProForm/components/base/InputNumber/index.d.ts +0 -11
  327. package/lib/ProForm/components/base/InputNumber/index.js +0 -317
  328. package/lib/ProForm/components/base/Radio/index.d.ts +0 -15
  329. package/lib/ProForm/components/base/Radio/index.js +0 -78
  330. package/lib/ProForm/components/base/RangePicker/index.d.ts +0 -19
  331. package/lib/ProForm/components/base/RangePicker/index.js +0 -201
  332. package/lib/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  333. package/lib/ProForm/components/base/RangePicker/useDateRange.js +0 -45
  334. package/lib/ProForm/components/base/Select/index.d.ts +0 -11
  335. package/lib/ProForm/components/base/Select/index.js +0 -122
  336. package/lib/ProForm/components/base/Switch/index.d.ts +0 -10
  337. package/lib/ProForm/components/base/Switch/index.js +0 -53
  338. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  339. package/lib/ProForm/components/base/SwitchCheckbox/index.js +0 -78
  340. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +0 -13
  341. package/lib/ProForm/components/base/TextArea/index.d.ts +0 -11
  342. package/lib/ProForm/components/base/TextArea/index.js +0 -63
  343. package/lib/ProForm/components/base/TextArea/index.less +0 -28
  344. package/lib/ProForm/components/base/TimePicker/index.d.ts +0 -13
  345. package/lib/ProForm/components/base/TimePicker/index.js +0 -56
  346. package/lib/ProForm/components/base/TimePicker/style/index.less +0 -6
  347. package/lib/ProForm/components/combination/Container/index.d.ts +0 -4
  348. package/lib/ProForm/components/combination/Container/index.js +0 -79
  349. package/lib/ProForm/components/combination/Container/propsType.d.ts +0 -13
  350. package/lib/ProForm/components/combination/Container/propsType.js +0 -5
  351. package/lib/ProForm/components/combination/Container/style/index.less +0 -47
  352. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  353. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +0 -378
  354. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  355. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +0 -148
  356. package/lib/ProForm/components/combination/FormList/components/BlockTitle.d.ts +0 -13
  357. package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +0 -36
  358. package/lib/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  359. package/lib/ProForm/components/combination/FormList/components/Empty.js +0 -105
  360. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  361. package/lib/ProForm/components/combination/FormList/components/LineFields.js +0 -108
  362. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  363. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +0 -186
  364. package/lib/ProForm/components/combination/FormList/index.d.ts +0 -4
  365. package/lib/ProForm/components/combination/FormList/index.js +0 -204
  366. package/lib/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  367. package/lib/ProForm/components/combination/FormList/propsType.js +0 -5
  368. package/lib/ProForm/components/combination/FormList/style/index.less +0 -175
  369. package/lib/ProForm/components/combination/FormList/utils.d.ts +0 -18
  370. package/lib/ProForm/components/combination/FormList/utils.js +0 -60
  371. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  372. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.js +0 -26
  373. package/lib/ProForm/components/combination/Group/component/AddonWrapper/index.less +0 -10
  374. package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  375. package/lib/ProForm/components/combination/Group/component/ComRender.js +0 -165
  376. package/lib/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  377. package/lib/ProForm/components/combination/Group/component/FlexibleGroup.js +0 -414
  378. package/lib/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  379. package/lib/ProForm/components/combination/Group/hooks/index.js +0 -284
  380. package/lib/ProForm/components/combination/Group/index.d.ts +0 -9
  381. package/lib/ProForm/components/combination/Group/index.js +0 -202
  382. package/lib/ProForm/components/combination/Group/propsType.d.ts +0 -99
  383. package/lib/ProForm/components/combination/Group/propsType.js +0 -5
  384. package/lib/ProForm/components/combination/Group/style/index.less +0 -525
  385. package/lib/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  386. package/lib/ProForm/components/combination/Group/utils/index.js +0 -444
  387. package/lib/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  388. package/lib/ProForm/components/combination/ProCascader/index.js +0 -373
  389. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  390. package/lib/ProForm/components/combination/ProCascader/propsType.js +0 -5
  391. package/lib/ProForm/components/combination/ProCascader/style/index.less +0 -28
  392. package/lib/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  393. package/lib/ProForm/components/combination/ProCascader/utils/index.js +0 -43
  394. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  395. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +0 -167
  396. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  397. package/lib/ProForm/components/combination/ProModalSelect/index.js +0 -885
  398. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  399. package/lib/ProForm/components/combination/ProModalSelect/propsType.js +0 -5
  400. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +0 -182
  401. package/lib/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  402. package/lib/ProForm/components/combination/ProModalSelect/utils/index.js +0 -32
  403. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  404. package/lib/ProForm/components/combination/ProNumberRange/index.js +0 -270
  405. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  406. package/lib/ProForm/components/combination/ProNumberRange/propsType.js +0 -5
  407. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +0 -50
  408. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  409. package/lib/ProForm/components/combination/ProRangeLimit/index.js +0 -228
  410. package/lib/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  411. package/lib/ProForm/components/combination/ProRangeLimit/propsType.js +0 -5
  412. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  413. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +0 -49
  414. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  415. package/lib/ProForm/components/combination/ProTimeLimit/index.js +0 -189
  416. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +0 -99
  417. package/lib/ProForm/components/index.d.ts +0 -29
  418. package/lib/ProForm/components/index.js +0 -194
  419. package/lib/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  420. package/lib/ProForm/components/render/ChangedWrapper.js +0 -152
  421. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  422. package/lib/ProForm/components/render/ConfirmWrapper.js +0 -131
  423. package/lib/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  424. package/lib/ProForm/components/render/CustomComponentViewWrapper.js +0 -127
  425. package/lib/ProForm/components/render/Render.d.ts +0 -4
  426. package/lib/ProForm/components/render/Render.js +0 -590
  427. package/lib/ProForm/components/render/RenderFields.d.ts +0 -26
  428. package/lib/ProForm/components/render/RenderFields.js +0 -265
  429. package/lib/ProForm/components/render/propsType.d.ts +0 -296
  430. package/lib/ProForm/components/render/propsType.js +0 -31
  431. package/lib/ProForm/index.d.ts +0 -6
  432. package/lib/ProForm/index.js +0 -334
  433. package/lib/ProForm/propsType.d.ts +0 -131
  434. package/lib/ProForm/propsType.js +0 -13
  435. package/lib/ProForm/style/index.less +0 -567
  436. package/lib/ProForm/utils/diffOriginal.d.ts +0 -10
  437. package/lib/ProForm/utils/diffOriginal.js +0 -129
  438. package/lib/ProForm/utils/getDefaultProps.d.ts +0 -1
  439. package/lib/ProForm/utils/getDefaultProps.js +0 -39
  440. package/lib/ProForm/utils/index.d.ts +0 -119
  441. package/lib/ProForm/utils/index.js +0 -544
  442. package/lib/ProForm/utils/processDependencies.d.ts +0 -29
  443. package/lib/ProForm/utils/processDependencies.js +0 -72
  444. package/lib/ProForm/utils/rulesCreator.d.ts +0 -7
  445. package/lib/ProForm/utils/rulesCreator.js +0 -96
  446. package/lib/ProForm/utils/transformNames.d.ts +0 -10
  447. package/lib/ProForm/utils/transformNames.js +0 -39
  448. package/lib/ProForm/utils/transformValue.d.ts +0 -6
  449. package/lib/ProForm/utils/transformValue.js +0 -73
  450. package/lib/ProForm/utils/useDeepCompareMemo.d.ts +0 -2
  451. package/lib/ProForm/utils/useDeepCompareMemo.js +0 -23
  452. package/lib/ProForm/utils/useFieldProps.d.ts +0 -4
  453. package/lib/ProForm/utils/useFieldProps.js +0 -13
  454. package/lib/ProForm/utils/useForm.d.ts +0 -22
  455. package/lib/ProForm/utils/useForm.js +0 -276
  456. package/lib/ProForm/utils/useRules.d.ts +0 -16
  457. package/lib/ProForm/utils/useRules.js +0 -86
  458. package/lib/ProForm/utils/useShouldUpdate.d.ts +0 -27
  459. package/lib/ProForm/utils/useShouldUpdate.js +0 -399
  460. package/lib/ProForm/utils/useWatch.d.ts +0 -12
  461. package/lib/ProForm/utils/useWatch.js +0 -196
  462. package/lib/ProForm/utils/valueType.d.ts +0 -70
  463. package/lib/ProForm/utils/valueType.js +0 -323
  464. package/lib/ProIcon/config/index.d.ts +0 -19
  465. package/lib/ProIcon/config/index.js +0 -281
  466. package/lib/ProIcon/index.d.ts +0 -4
  467. package/lib/ProIcon/index.js +0 -405
  468. package/lib/ProIcon/propsTypes.d.ts +0 -181
  469. package/lib/ProIcon/propsTypes.js +0 -5
  470. package/lib/ProIcon/style/index.less +0 -27
  471. package/lib/ProIcon/utils/index.d.ts +0 -6
  472. package/lib/ProIcon/utils/index.js +0 -95
  473. package/lib/ProLayout/components/Layout/Header/index.d.ts +0 -4
  474. package/lib/ProLayout/components/Layout/Header/index.js +0 -188
  475. package/lib/ProLayout/components/Layout/Header/style/index.less +0 -277
  476. package/lib/ProLayout/components/Layout/Icon/Icon.d.ts +0 -10
  477. package/lib/ProLayout/components/Layout/Icon/Icon.js +0 -41
  478. package/lib/ProLayout/components/Layout/Icon/index.d.ts +0 -2
  479. package/lib/ProLayout/components/Layout/Icon/index.js +0 -9
  480. package/lib/ProLayout/components/Layout/Icon/style/index.less +0 -7
  481. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  482. package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +0 -212
  483. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +0 -111
  484. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  485. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +0 -214
  486. package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  487. package/lib/ProLayout/components/Layout/Menu/OpenMenu/propsType.js +0 -5
  488. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -177
  489. package/lib/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  490. package/lib/ProLayout/components/Layout/Menu/SideMenu/index.js +0 -47
  491. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +0 -124
  492. package/lib/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  493. package/lib/ProLayout/components/Layout/Menu/index.js +0 -178
  494. package/lib/ProLayout/components/Layout/Menu/style/index.less +0 -136
  495. package/lib/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  496. package/lib/ProLayout/components/Layout/Notice/index.js +0 -37
  497. package/lib/ProLayout/components/Layout/Notice/style/index.less +0 -37
  498. package/lib/ProLayout/components/Layout/index.d.ts +0 -4
  499. package/lib/ProLayout/components/Layout/index.js +0 -34
  500. package/lib/ProLayout/components/Layout/index.less +0 -4
  501. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  502. package/lib/ProLayout/components/ProCollapse/PropTypes.js +0 -5
  503. package/lib/ProLayout/components/ProCollapse/index.d.ts +0 -3
  504. package/lib/ProLayout/components/ProCollapse/index.js +0 -200
  505. package/lib/ProLayout/components/ProCollapse/style/index.less +0 -357
  506. package/lib/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  507. package/lib/ProLayout/components/ProFooter/PropTypes.js +0 -5
  508. package/lib/ProLayout/components/ProFooter/index.d.ts +0 -4
  509. package/lib/ProLayout/components/ProFooter/index.js +0 -59
  510. package/lib/ProLayout/components/ProFooter/style/index.less +0 -12
  511. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  512. package/lib/ProLayout/components/ProHeader/PropTypes.js +0 -5
  513. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  514. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +0 -29
  515. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  516. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/index.js +0 -35
  517. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  518. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/propsType.js +0 -5
  519. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +0 -23
  520. package/lib/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  521. package/lib/ProLayout/components/ProHeader/components/index.js +0 -20
  522. package/lib/ProLayout/components/ProHeader/index.d.ts +0 -4
  523. package/lib/ProLayout/components/ProHeader/index.js +0 -559
  524. package/lib/ProLayout/components/ProHeader/style/index.less +0 -416
  525. package/lib/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  526. package/lib/ProLayout/components/ProHeader/utils/index.js +0 -21
  527. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  528. package/lib/ProLayout/components/TabsManager/components/TabContextMenu.js +0 -106
  529. package/lib/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  530. package/lib/ProLayout/components/TabsManager/components/TabItem.js +0 -75
  531. package/lib/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  532. package/lib/ProLayout/components/TabsManager/components/TabsContext.js +0 -11
  533. package/lib/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -12
  534. package/lib/ProLayout/components/TabsManager/components/TabsHeader.js +0 -58
  535. package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  536. package/lib/ProLayout/components/TabsManager/hooks/useActiveTab.js +0 -20
  537. package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  538. package/lib/ProLayout/components/TabsManager/hooks/useProLayoutTabs.js +0 -31
  539. package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  540. package/lib/ProLayout/components/TabsManager/hooks/useTabsCache.js +0 -103
  541. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  542. package/lib/ProLayout/components/TabsManager/hooks/useTabsState.js +0 -417
  543. package/lib/ProLayout/components/TabsManager/index.d.ts +0 -7
  544. package/lib/ProLayout/components/TabsManager/index.js +0 -196
  545. package/lib/ProLayout/components/TabsManager/propTypes.d.ts +0 -75
  546. package/lib/ProLayout/components/TabsManager/propTypes.js +0 -21
  547. package/lib/ProLayout/components/TabsManager/style/index.less +0 -310
  548. package/lib/ProLayout/components/TabsManager/utils/index.d.ts +0 -41
  549. package/lib/ProLayout/components/TabsManager/utils/index.js +0 -126
  550. package/lib/ProLayout/components/index.d.ts +0 -3
  551. package/lib/ProLayout/components/index.js +0 -27
  552. package/lib/ProLayout/images/close.png +0 -0
  553. package/lib/ProLayout/images/logoImg.png +0 -0
  554. package/lib/ProLayout/images/tipMsg.png +0 -0
  555. package/lib/ProLayout/index.d.ts +0 -20
  556. package/lib/ProLayout/index.js +0 -285
  557. package/lib/ProLayout/propTypes.d.ts +0 -435
  558. package/lib/ProLayout/propTypes.js +0 -46
  559. package/lib/ProLayout/style/index.less +0 -344
  560. package/lib/ProLayout/utils/index.d.ts +0 -43
  561. package/lib/ProLayout/utils/index.js +0 -278
  562. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  563. package/lib/ProSelect/components/AdaptiveTooltip.js +0 -54
  564. package/lib/ProSelect/index.d.ts +0 -5
  565. package/lib/ProSelect/index.js +0 -524
  566. package/lib/ProSelect/propsType.d.ts +0 -160
  567. package/lib/ProSelect/propsType.js +0 -5
  568. package/lib/ProSelect/style/index.less +0 -21
  569. package/lib/ProSelect/utils/index.d.ts +0 -4
  570. package/lib/ProSelect/utils/index.js +0 -146
  571. package/lib/ProStep/components/Anchor/index.d.ts +0 -4
  572. package/lib/ProStep/components/Anchor/index.js +0 -117
  573. package/lib/ProStep/components/Item/index.d.ts +0 -3
  574. package/lib/ProStep/components/Item/index.js +0 -104
  575. package/lib/ProStep/components/Listener/index.d.ts +0 -4
  576. package/lib/ProStep/components/Listener/index.js +0 -80
  577. package/lib/ProStep/components/Step/index.d.ts +0 -5
  578. package/lib/ProStep/components/Step/index.js +0 -99
  579. package/lib/ProStep/index.d.ts +0 -11
  580. package/lib/ProStep/index.js +0 -266
  581. package/lib/ProStep/propsType.d.ts +0 -222
  582. package/lib/ProStep/propsType.js +0 -5
  583. package/lib/ProStep/style/index.less +0 -220
  584. package/lib/ProStep/utils/index.d.ts +0 -22
  585. package/lib/ProStep/utils/index.js +0 -78
  586. package/lib/ProStepTab/index.d.ts +0 -22
  587. package/lib/ProStepTab/index.js +0 -384
  588. package/lib/ProStepTab/propsType.d.ts +0 -114
  589. package/lib/ProStepTab/propsType.js +0 -5
  590. package/lib/ProTable/components/FormatColumn/index.d.ts +0 -20
  591. package/lib/ProTable/components/FormatColumn/index.js +0 -699
  592. package/lib/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  593. package/lib/ProTable/components/FormatColumn/propsType.js +0 -5
  594. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -10
  595. package/lib/ProTable/components/RcTable/components/BaseTable/index.js +0 -49
  596. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  597. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +0 -205
  598. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  599. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +0 -182
  600. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  601. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.js +0 -5
  602. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -10
  603. package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +0 -65
  604. package/lib/ProTable/components/RcTable/index.d.ts +0 -4
  605. package/lib/ProTable/components/RcTable/index.js +0 -20
  606. package/lib/ProTable/components/RenderColumn/index.d.ts +0 -22
  607. package/lib/ProTable/components/RenderColumn/index.js +0 -278
  608. package/lib/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  609. package/lib/ProTable/components/RenderEmptyText/index.js +0 -28
  610. package/lib/ProTable/components/RenderFooter/index.d.ts +0 -2
  611. package/lib/ProTable/components/RenderFooter/index.js +0 -20
  612. package/lib/ProTable/components/RenderSummary/index.d.ts +0 -3
  613. package/lib/ProTable/components/RenderSummary/index.js +0 -60
  614. package/lib/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  615. package/lib/ProTable/components/RenderTableHeader/index.js +0 -67
  616. package/lib/ProTable/components/RenderTabs/index.d.ts +0 -4
  617. package/lib/ProTable/components/RenderTabs/index.js +0 -97
  618. package/lib/ProTable/components/TableResizable/index.d.ts +0 -13
  619. package/lib/ProTable/components/TableResizable/index.js +0 -109
  620. package/lib/ProTable/components/TooltipTitle/index.d.ts +0 -11
  621. package/lib/ProTable/components/TooltipTitle/index.js +0 -26
  622. package/lib/ProTable/components/index.d.ts +0 -30
  623. package/lib/ProTable/components/index.js +0 -48
  624. package/lib/ProTable/hooks/useAntdTable.d.ts +0 -7
  625. package/lib/ProTable/hooks/useAntdTable.js +0 -581
  626. package/lib/ProTable/index.d.ts +0 -16
  627. package/lib/ProTable/index.js +0 -476
  628. package/lib/ProTable/propsType.d.ts +0 -757
  629. package/lib/ProTable/propsType.js +0 -5
  630. package/lib/ProTable/style/index.less +0 -644
  631. package/lib/ProTable/utils/index.d.ts +0 -38
  632. package/lib/ProTable/utils/index.js +0 -142
  633. package/lib/ProTabs/components/Card/index.d.ts +0 -3
  634. package/lib/ProTabs/components/Card/index.js +0 -54
  635. package/lib/ProTabs/components/index.d.ts +0 -1
  636. package/lib/ProTabs/components/index.js +0 -13
  637. package/lib/ProTabs/index.d.ts +0 -4
  638. package/lib/ProTabs/index.js +0 -138
  639. package/lib/ProTabs/propType.d.ts +0 -94
  640. package/lib/ProTabs/propType.js +0 -5
  641. package/lib/ProTabs/style/index.less +0 -157
  642. package/lib/ProThemeTools/component/ProTools/index.d.ts +0 -3
  643. package/lib/ProThemeTools/component/ProTools/index.js +0 -301
  644. package/lib/ProThemeTools/component/ProTools/style/index.less +0 -178
  645. package/lib/ProThemeTools/component/index.d.ts +0 -1
  646. package/lib/ProThemeTools/component/index.js +0 -13
  647. package/lib/ProThemeTools/context/ThemeContext.d.ts +0 -43
  648. package/lib/ProThemeTools/context/ThemeContext.js +0 -291
  649. package/lib/ProThemeTools/index.d.ts +0 -9
  650. package/lib/ProThemeTools/index.js +0 -302
  651. package/lib/ProThemeTools/propsType.d.ts +0 -170
  652. package/lib/ProThemeTools/propsType.js +0 -5
  653. package/lib/ProThemeTools/style/index.less +0 -74
  654. package/lib/ProThemeTools/utils/index.d.ts +0 -51
  655. package/lib/ProThemeTools/utils/index.js +0 -261
  656. package/lib/ProTooltip/index.d.ts +0 -3
  657. package/lib/ProTooltip/index.js +0 -309
  658. package/lib/ProTooltip/propsType.d.ts +0 -57
  659. package/lib/ProTooltip/propsType.js +0 -5
  660. package/lib/ProTooltip/style/index.less +0 -34
  661. package/lib/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  662. package/lib/ProTree/components/AdaptiveTooltip.js +0 -23
  663. package/lib/ProTree/components/CloseIcon.d.ts +0 -2
  664. package/lib/ProTree/components/CloseIcon.js +0 -38
  665. package/lib/ProTree/components/List.d.ts +0 -17
  666. package/lib/ProTree/components/List.js +0 -79
  667. package/lib/ProTree/components/ProTree.d.ts +0 -3
  668. package/lib/ProTree/components/ProTree.js +0 -505
  669. package/lib/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  670. package/lib/ProTree/components/ProTreeSelect/index.js +0 -770
  671. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
  672. package/lib/ProTree/components/ProTreeSelect/propsType.js +0 -5
  673. package/lib/ProTree/components/ProTreeSelect/style/index.less +0 -119
  674. package/lib/ProTree/components/SearchTitle.d.ts +0 -11
  675. package/lib/ProTree/components/SearchTitle.js +0 -60
  676. package/lib/ProTree/components/Tree.d.ts +0 -27
  677. package/lib/ProTree/components/Tree.js +0 -393
  678. package/lib/ProTree/components/index.d.ts +0 -4
  679. package/lib/ProTree/components/index.js +0 -34
  680. package/lib/ProTree/index.d.ts +0 -3
  681. package/lib/ProTree/index.js +0 -30
  682. package/lib/ProTree/propsType.d.ts +0 -812
  683. package/lib/ProTree/propsType.js +0 -5
  684. package/lib/ProTree/style/index.less +0 -393
  685. package/lib/ProTree/utils.d.ts +0 -43
  686. package/lib/ProTree/utils.js +0 -221
  687. package/lib/ProTreeModal/components/Cascader.d.ts +0 -14
  688. package/lib/ProTreeModal/components/Cascader.js +0 -110
  689. package/lib/ProTreeModal/components/CloseIcon.d.ts +0 -2
  690. package/lib/ProTreeModal/components/CloseIcon.js +0 -38
  691. package/lib/ProTreeModal/components/List.d.ts +0 -21
  692. package/lib/ProTreeModal/components/List.js +0 -294
  693. package/lib/ProTreeModal/components/SearchTitle.d.ts +0 -7
  694. package/lib/ProTreeModal/components/SearchTitle.js +0 -27
  695. package/lib/ProTreeModal/components/SortableItem.d.ts +0 -12
  696. package/lib/ProTreeModal/components/SortableItem.js +0 -80
  697. package/lib/ProTreeModal/components/Tree.d.ts +0 -25
  698. package/lib/ProTreeModal/components/Tree.js +0 -241
  699. package/lib/ProTreeModal/components/Trigger.d.ts +0 -21
  700. package/lib/ProTreeModal/components/Trigger.js +0 -195
  701. package/lib/ProTreeModal/components/index.d.ts +0 -6
  702. package/lib/ProTreeModal/components/index.js +0 -48
  703. package/lib/ProTreeModal/index.d.ts +0 -4
  704. package/lib/ProTreeModal/index.js +0 -837
  705. package/lib/ProTreeModal/propsType.d.ts +0 -298
  706. package/lib/ProTreeModal/propsType.js +0 -5
  707. package/lib/ProTreeModal/style/index.less +0 -414
  708. package/lib/ProTreeModal/utils.d.ts +0 -39
  709. package/lib/ProTreeModal/utils.js +0 -243
  710. package/lib/ProUpload/components/ButtonRender.d.ts +0 -20
  711. package/lib/ProUpload/components/ButtonRender.js +0 -114
  712. package/lib/ProUpload/components/DragRender.d.ts +0 -21
  713. package/lib/ProUpload/components/DragRender.js +0 -196
  714. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  715. package/lib/ProUpload/components/DraggableUploadListItem.js +0 -42
  716. package/lib/ProUpload/components/Example.d.ts +0 -10
  717. package/lib/ProUpload/components/Example.js +0 -61
  718. package/lib/ProUpload/components/FileItem.d.ts +0 -33
  719. package/lib/ProUpload/components/FileItem.js +0 -238
  720. package/lib/ProUpload/components/ImageRender.d.ts +0 -19
  721. package/lib/ProUpload/components/ImageRender.js +0 -279
  722. package/lib/ProUpload/index.d.ts +0 -4
  723. package/lib/ProUpload/index.js +0 -311
  724. package/lib/ProUpload/propsType.d.ts +0 -264
  725. package/lib/ProUpload/propsType.js +0 -5
  726. package/lib/ProUpload/style/icon-PDF.png +0 -0
  727. package/lib/ProUpload/style/icon-TXT.png +0 -0
  728. package/lib/ProUpload/style/icon-excel.png +0 -0
  729. package/lib/ProUpload/style/icon-pic.png +0 -0
  730. package/lib/ProUpload/style/icon-word.png +0 -0
  731. package/lib/ProUpload/style/index.less +0 -480
  732. package/lib/ProUpload/uitls.d.ts +0 -3
  733. package/lib/ProUpload/uitls.js +0 -22
  734. package/lib/ProUtils/utils/index.d.ts +0 -6
  735. package/lib/ProUtils/utils/index.js +0 -26
  736. package/lib/ProViewer/index.d.ts +0 -4
  737. package/lib/ProViewer/index.js +0 -229
  738. package/lib/ProViewer/propsType.d.ts +0 -35
  739. package/lib/ProViewer/propsType.js +0 -3
  740. package/lib/ProViewer/style/index.less +0 -10
  741. package/lib/ProWaterMark/index.d.ts +0 -4
  742. package/lib/ProWaterMark/index.js +0 -26
  743. package/lib/ProWaterMark/propsType.d.ts +0 -6
  744. package/lib/ProWaterMark/propsType.js +0 -5
  745. package/lib/assets/apps.svg +0 -23
  746. package/lib/assets/arrow.svg +0 -1
  747. package/lib/assets/catalog.svg +0 -30
  748. package/lib/assets/close.svg +0 -1
  749. package/lib/assets/close2.svg +0 -1
  750. package/lib/assets/copy.svg +0 -1
  751. package/lib/assets/customColumn.svg +0 -2
  752. package/lib/assets/delete.svg +0 -1
  753. package/lib/assets/disabled.svg +0 -18
  754. package/lib/assets/download.svg +0 -1
  755. package/lib/assets/drag.svg +0 -1
  756. package/lib/assets/empty.png +0 -0
  757. package/lib/assets/fold.svg +0 -27
  758. package/lib/assets/header_bg.png +0 -0
  759. package/lib/assets/input-search.svg +0 -11
  760. package/lib/assets/look.svg +0 -1
  761. package/lib/assets/reset.svg +0 -11
  762. package/lib/assets/search.svg +0 -1
  763. package/lib/assets/setting.svg +0 -14
  764. package/lib/assets/view.svg +0 -20
  765. package/lib/global.less +0 -57
  766. package/lib/index.d.ts +0 -47
  767. package/lib/index.js +0 -276
  768. package/lib/locale/en_US.d.ts +0 -176
  769. package/lib/locale/en_US.js +0 -181
  770. package/lib/locale/index.d.ts +0 -15
  771. package/lib/locale/index.js +0 -65
  772. package/lib/locale/zh_CN.d.ts +0 -176
  773. package/lib/locale/zh_CN.js +0 -181
  774. package/lib/style/components.less +0 -27
  775. package/lib/style/core/compatible.less +0 -5
  776. package/lib/style/core/index.less +0 -3
  777. package/lib/style/core/mixins.less +0 -77
  778. package/lib/style/core/normalize.less +0 -251
  779. package/lib/style/index.less +0 -2
  780. package/lib/style/less.less +0 -2
  781. package/lib/style/theme/antd.less +0 -743
  782. package/lib/style/theme/base.less +0 -90
  783. package/lib/style/theme/index.less +0 -2
  784. package/lib/style/theme/tokens.less +0 -90
  785. package/lib/style/variables.less +0 -2
  786. package/lib/tokens.d.ts +0 -83
  787. package/lib/tokens.js +0 -91
  788. package/lib/utils/index.d.ts +0 -21
  789. package/lib/utils/index.js +0 -116
  790. package/typings.d.ts +0 -17
@@ -1,473 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.transformColumns = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _lodash = require("lodash");
9
- var _antd = require("antd");
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
- var _utils = require("@zat-design/utils");
12
- var _icons = require("@ant-design/icons");
13
- var _config = require("./config");
14
- var _tools = require("./tools");
15
- var _utils2 = require("../../ProForm/utils");
16
- var _ProTooltip = _interopRequireDefault(require("../../ProTooltip"));
17
- var _components = require("../components");
18
- var _locale = _interopRequireDefault(require("../../locale"));
19
- var _jsxRuntime = require("react/jsx-runtime");
20
- var _excluded = ["type", "label", "show", "needConfirm", "onHandle", "onClick", "isSelectModal"],
21
- _excluded2 = ["title", "icon"];
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
- 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; }
24
- 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; }
25
- 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; }
26
- 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; }
27
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
28
- 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); }
29
- 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); } }
30
- 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); }); }; }
31
- 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; }
32
- 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; }
33
- var columnDataSourceRefCache = new Map();
34
- /** 追踪 component 函数引用,用于检测外部状态(如异步 list)变化导致的闭包更新 */
35
- var columnComponentRefCache = new Map();
36
- /** 追踪 filterInList 列表长度,用于检测行增删导致的索引偏移 */
37
- var columnListLengthCache = new Map();
38
-
39
- // 渲染操作栏
40
- var getActionColumn = config => {
41
- var _cloneDeepWith = (0, _lodash.cloneDeepWith)(config, value => {
42
- if ( /*#__PURE__*/_react.default.isValidElement(value)) {
43
- return value;
44
- }
45
- }),
46
- disabled = _cloneDeepWith.disabled,
47
- name = _cloneDeepWith.name,
48
- form = _cloneDeepWith.form,
49
- virtualKey = _cloneDeepWith.virtualKey,
50
- validateKeys = _cloneDeepWith.validateKeys,
51
- actionWidth = _cloneDeepWith.actionWidth,
52
- actionProps = _cloneDeepWith.actionProps,
53
- page = _cloneDeepWith.page,
54
- rowDisabled = _cloneDeepWith.rowDisabled,
55
- actionDirection = _cloneDeepWith.actionDirection,
56
- editingKeys = _cloneDeepWith.editingKeys;
57
- var pageNum = _utils.tools.calc(page.pageNum, '-', 1);
58
- var firstIndex = _utils.tools.calc(pageNum, '*', page.pageSize);
59
- // actionProps配置为false 默认不插入
60
- if (actionProps === false || disabled) {
61
- return false;
62
- }
63
- var virtualRowName = (0, _tools.getNamePath)(name, virtualKey);
64
-
65
- // 设置默认操作栏按钮(区分单行与多行编辑场景)
66
- var defaultActionKeys = virtualKey ? _config.defaultSingleActionKeys : _config.defaultMultipleActionKeys;
67
- var nextActionsProps = [...actionProps];
68
-
69
- // 不设置actionProps
70
- if ((0, _lodash.isArray)(actionProps) && !(actionProps !== null && actionProps !== void 0 && actionProps.length)) {
71
- nextActionsProps = defaultActionKeys.map(key => {
72
- return {
73
- type: key
74
- };
75
- });
76
- } else {
77
- // 设置部分actionProps 内置的必选按钮会集成进去,可以手动开启show: false来隐藏对应类型的按钮
78
- defaultActionKeys.forEach(key => {
79
- if ((0, _lodash.isArray)(actionProps) && !actionProps.find(action => action.type === key)) {
80
- nextActionsProps.push({
81
- type: key
82
- });
83
- }
84
- });
85
- }
86
-
87
- // 渲染操作按钮前处理下默认数据
88
- var actionBtns = nextActionsProps.map(action => {
89
- var type = action.type,
90
- label = action.label,
91
- show = action.show,
92
- needConfirm = action.needConfirm,
93
- onHandle = action.onHandle,
94
- onClick = action.onClick,
95
- isSelectModal = action.isSelectModal,
96
- buttonProps = _objectWithoutProperties(action, _excluded);
97
- action.isEditable = _config.defaultEditingActionKeys.includes(type);
98
- action.label = label !== null && label !== void 0 ? label : _config.defaultBtnNameMap[type];
99
- action.show = show !== null && show !== void 0 ? show : true;
100
- action.needConfirm = needConfirm !== null && needConfirm !== void 0 ? needConfirm : true;
101
- action.onEvent = /*#__PURE__*/function () {
102
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, _ref) {
103
- var _form$getFieldValue;
104
- var index, form, name, namePath, tableLength, selectedRows, rowName, _isEditing, lastRecord, onEvent, result, actionHandler;
105
- return _regeneratorRuntime().wrap(function _callee$(_context) {
106
- while (1) switch (_context.prev = _context.next) {
107
- case 0:
108
- index = _ref.index, form = _ref.form, name = _ref.name, namePath = _ref.namePath, tableLength = _ref.tableLength, selectedRows = _ref.selectedRows;
109
- index = _utils.tools.calc(firstIndex, '+', index);
110
- rowName = [...virtualRowName, index];
111
- if (!(type === 'save')) {
112
- _context.next = 15;
113
- break;
114
- }
115
- // 判断该行是否处于编辑状态
116
- _isEditing = !virtualKey || editingKeys.includes(record.rowKey) || record._addFlag; // 只有编辑中的行才需要校验
117
- if (!_isEditing) {
118
- _context.next = 15;
119
- break;
120
- }
121
- _context.prev = 6;
122
- _context.next = 9;
123
- return (0, _tools.customValidate)(validateKeys, form, rowName);
124
- case 9:
125
- _context.next = 15;
126
- break;
127
- case 11:
128
- _context.prev = 11;
129
- _context.t0 = _context["catch"](6);
130
- (0, _tools.handleScrollToError)();
131
- return _context.abrupt("return", Promise.reject(_context.t0));
132
- case 15:
133
- // 编辑状态使用自定义form值,非编辑状态直接使用行数据
134
- lastRecord = (0, _utils2.filterInternalFields)((_form$getFieldValue = form.getFieldValue(rowName)) !== null && _form$getFieldValue !== void 0 ? _form$getFieldValue : record); // 新增事件可以设置初始默认值,当做函数的出参导出
135
- onEvent = onClick || onHandle;
136
- if (onEvent) {
137
- _context.next = 21;
138
- break;
139
- }
140
- result = true;
141
- _context.next = 24;
142
- break;
143
- case 21:
144
- _context.next = 23;
145
- return onEvent === null || onEvent === void 0 ? void 0 : onEvent(lastRecord, {
146
- form,
147
- index,
148
- tableLength,
149
- name,
150
- namePath,
151
- selectedRows
152
- });
153
- case 23:
154
- result = _context.sent;
155
- case 24:
156
- if (result !== false && type !== 'custom') {
157
- actionHandler = _config.actions[type];
158
- actionHandler(_objectSpread(_objectSpread({}, config), {}, {
159
- rowName: [...name, index],
160
- virtualRowName: rowName,
161
- record: lastRecord,
162
- result,
163
- validateKeys
164
- }));
165
- }
166
- case 25:
167
- case "end":
168
- return _context.stop();
169
- }
170
- }, _callee, null, [[6, 11]]);
171
- }));
172
- return function (_x, _x2) {
173
- return _ref2.apply(this, arguments);
174
- };
175
- }();
176
- action.buttonProps = buttonProps;
177
- return action;
178
- });
179
- return {
180
- title: _locale.default.ProEditTable.operation,
181
- key: 'action',
182
- fixed: 'right',
183
- width: actionWidth || (actionDirection === 'vertical' ? 60 : virtualKey ? 120 : 60),
184
- render: (text, record, index) => {
185
- var _rowDisabled;
186
- var _disabled = (_rowDisabled = rowDisabled === null || rowDisabled === void 0 ? void 0 : rowDisabled(record)) !== null && _rowDisabled !== void 0 ? _rowDisabled : false;
187
- if (_disabled) {
188
- return '';
189
- }
190
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Space, {
191
- size: "small",
192
- orientation: actionDirection,
193
- children: actionBtns.map(btnConfig => {
194
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.default.Fragment, {
195
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ActionButton, {
196
- record,
197
- index,
198
- config,
199
- btnConfig
200
- })
201
- }, `${record.rowKey}-${btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.type}`);
202
- })
203
- });
204
- }
205
- };
206
- };
207
-
208
- /**
209
- * 编辑模式分为 多行和单行两种
210
- * 单行模式下,render 分为component和viewRender两种,对应编辑和非编辑状态下,edit状态不对外
211
- * 多行模式下component设置即可
212
- * render不对外暴露formItem,能自定渲染的尽是输入组件或者显示组件本身
213
- * @param columns 表格配置数据
214
- * @param config
215
- */
216
-
217
- var transformColumns = exports.transformColumns = function transformColumns() {
218
- var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
219
- var config = arguments.length > 1 ? arguments[1] : undefined;
220
- var mode = config.mode,
221
- form = config.form,
222
- name = config.name,
223
- disabled = config.disabled,
224
- cellNamePath = config.cellNamePath,
225
- editingKeys = config.editingKeys,
226
- virtualKey = config.virtualKey,
227
- requiredAlign = config.requiredAlign,
228
- isView = config.isView,
229
- setState = config.setState,
230
- page = config.page;
231
- var isCell = mode === 'cell';
232
- var nextColumns = columns.map(item => (0, _tools.cloneDeepFilterNode)(item));
233
- var pageNum = _utils.tools.calc(page.pageNum, '-', 1);
234
- var firstIndex = _utils.tools.calc(pageNum, '*', page.pageSize);
235
- nextColumns.forEach((item, index) => {
236
- var label = item.label,
237
- names = item.names,
238
- labelRequired = item.labelRequired,
239
- hidden = item.hidden,
240
- title = item.title,
241
- className = item.className,
242
- dataIndex = item.dataIndex,
243
- ellipsis = item.ellipsis,
244
- key = item.key,
245
- tooltip = item.tooltip,
246
- suffix = item.suffix,
247
- before = item.before,
248
- after = item.after;
249
-
250
- // column设置label时,权重最高
251
- var columnTitle = label || title;
252
- item.title = columnTitle;
253
- if (typeof columnTitle === 'string') {
254
- item.originTitle = columnTitle;
255
- if (tooltip) {
256
- var _ref3 = tooltip || {},
257
- tooltipTitle = _ref3.title,
258
- icon = _ref3.icon,
259
- resetProps = _objectWithoutProperties(_ref3, _excluded2);
260
- item.title = /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
261
- className: "pro-edit-table-title pro-edit-table-tooltip",
262
- children: [before, columnTitle, /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, _objectSpread(_objectSpread({
263
- title: tooltipTitle !== null && tooltipTitle !== void 0 ? tooltipTitle : tooltip
264
- }, resetProps), {}, {
265
- children: icon ? ( /*#__PURE__*/_react.default.cloneElement(icon, {
266
- className: 'icon-tip'
267
- })) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.QuestionCircleOutlined, {
268
- className: "icon-tip"
269
- })
270
- })), suffix || after]
271
- });
272
- } else {
273
- item.title = /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
274
- className: "pro-edit-table-title",
275
- children: [before, columnTitle, suffix || after]
276
- });
277
- }
278
- }
279
-
280
- // width转为数字,兼容虚拟滚动场景
281
- if (typeof item.width === 'string' && item.width.includes('px')) {
282
- item.width = parseInt(item.width, 10);
283
- }
284
-
285
- // column设置name时,权重最高
286
- var columnName = (item === null || item === void 0 ? void 0 : item.name) || dataIndex || key;
287
- item.dataIndex = columnName;
288
- item.key = columnName;
289
- // item.shouldCellUpdate = item.shouldCellUpdate || ((record, perRecord) => !isEqual(record, perRecord));
290
-
291
- var required = (0, _lodash.isBoolean)(item.required) ? item.required : false;
292
- if ((0, _lodash.isFunction)(item.required)) {
293
- // 列配置预处理阶段没有稳定行上下文,required 函数交给 RenderField 内按行计算
294
- required = false;
295
- }
296
-
297
- // 样式处理
298
- item.className = (0, _classnames.default)({
299
- 'is-hidden': hidden,
300
- 'is-required': required || labelRequired,
301
- 'is-required-left': requiredAlign === 'left',
302
- 'is-required-right': requiredAlign === 'right',
303
- [className]: className
304
- });
305
-
306
- // 防止重复渲染导致className重复添加
307
- if (item.className) {
308
- item.className = [...new Set(item.className.split(' '))].join(' ');
309
- }
310
- var _render = (text, record, index) => {
311
- var _isEditing = !virtualKey || editingKeys.includes(record.rowKey) || record._addFlag;
312
- var namePath = (0, _lodash.isArray)(name) ? name : [name];
313
- if (virtualKey && editingKeys.includes(record.rowKey)) {
314
- namePath = (0, _tools.getNamePath)(name, virtualKey);
315
- }
316
- var namePathArray = Array.isArray(namePath) ? namePath : [namePath];
317
- var columnNamePath = (0, _lodash.isArray)(columnName) ? columnName : [columnName];
318
- index = _utils.tools.calc(firstIndex, '+', index);
319
- // 设置单元格formItem的namePath
320
- var cellName = columnName ? [...namePathArray, index, ...columnNamePath] : [...namePathArray, index];
321
- var _text = text;
322
-
323
- // 当传入组合组件时,name需要重新组合一下,以防names中key与dataIndex重叠
324
- if (names !== null && names !== void 0 && names.length) {
325
- var nextDataIndex = (0, _tools.splitNames)(names);
326
- item.dataIndex = nextDataIndex;
327
- item.key = nextDataIndex;
328
- cellName = [...namePathArray, index, nextDataIndex];
329
- // 给names返回数组值
330
- _text = names.map(item => record === null || record === void 0 ? void 0 : record[item]);
331
- }
332
- if (!_isEditing && ellipsis) {
333
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProTooltip.default, {
334
- text: _text,
335
- line: 1,
336
- isResponsiveWidth: true
337
- });
338
- }
339
- var cellClassName;
340
- var isCanEdit = isCell && !record[`${columnName}-Disabled`] && item.isEditable !== false;
341
- // 单元格编辑场景下,需要将所有单元格设置为不可编辑状态,当鼠标hover时,展示输出框。点击可修改
342
- if (isCanEdit) {
343
- record['is-view'] = true;
344
- // 样式处理
345
- cellClassName = (0, _classnames.default)({
346
- 'is-cell': !(0, _lodash.isEqual)(cellNamePath, cellName)
347
- });
348
- }
349
-
350
- // 单行多行交互有较大差异
351
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
352
- className: cellClassName,
353
- onClick: () => {
354
- isCanEdit && setState({
355
- cellNamePath: cellName
356
- });
357
- },
358
- children: [index === 0 && !item.width ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
359
- style: {
360
- visibility: 'hidden',
361
- height: 0,
362
- paddingLeft: item !== null && item !== void 0 && item.required ? 16 : 0
363
- },
364
- children: columnTitle
365
- }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.RenderField, {
366
- text: _text,
367
- record: record,
368
- index: index,
369
- column: item,
370
- config: _objectSpread(_objectSpread({}, config), {}, {
371
- cellName,
372
- // 单元格formItem的namePath
373
- _isEditing // 是否正在编辑
374
- })
375
- })]
376
- });
377
- };
378
- item.render = _render;
379
-
380
- // 精准控制单元格更新,减少不必要的渲染
381
- if (!item.shouldCellUpdate) {
382
- var _index, _item$fieldProps;
383
- var hasComponent = (0, _lodash.isFunction)(item.component);
384
- var columnCacheKey = `${Array.isArray(name) ? name.join('.') : String(name)}::${String(columnName)}`;
385
-
386
- // Fix 问题1:用原始列引用(克隆前)比对 dataSource
387
- // cloneDeepFilterNode 每次产生新引用,在 shouldCellUpdate 内更新 cache 只会让第一行触发更新,其余行跳过
388
- var originalFieldProps = (_index = columns[index]) === null || _index === void 0 ? void 0 : _index.fieldProps;
389
- var originalDataSourceRef = !(0, _lodash.isFunction)(originalFieldProps) ? originalFieldProps === null || originalFieldProps === void 0 ? void 0 : originalFieldProps.dataSource : undefined;
390
- var prevDataSourceRef = columnDataSourceRefCache.get(columnCacheKey);
391
- var dataSourceChanged = originalDataSourceRef !== undefined && prevDataSourceRef !== originalDataSourceRef;
392
- if (dataSourceChanged) {
393
- columnDataSourceRefCache.set(columnCacheKey, originalDataSourceRef);
394
- }
395
-
396
- // Fix 问题2:检测 filterInList 列的行增删,避免行索引移位时 shouldUpdate 闭包中 index 失效
397
- var filterInListEnabled = !(0, _lodash.isFunction)(item === null || item === void 0 ? void 0 : item.fieldProps) && (item === null || item === void 0 || (_item$fieldProps = item.fieldProps) === null || _item$fieldProps === void 0 ? void 0 : _item$fieldProps.filterInList);
398
- var filterListChanged = false;
399
- if (filterInListEnabled) {
400
- var _config$tableLength, _columnListLengthCach;
401
- var currentListLen = (_config$tableLength = config.tableLength) !== null && _config$tableLength !== void 0 ? _config$tableLength : 0;
402
- var prevListLen = (_columnListLengthCach = columnListLengthCache.get(columnCacheKey)) !== null && _columnListLengthCach !== void 0 ? _columnListLengthCach : -1;
403
- if (prevListLen !== currentListLen) {
404
- filterListChanged = true;
405
- columnListLengthCache.set(columnCacheKey, currentListLen);
406
- }
407
- }
408
- item.shouldCellUpdate = (record, prevRecord) => {
409
- // dataSource 变化:所有行均需更新(修复异步加载 dataSource 只更新第一行的问题)
410
- if (dataSourceChanged) return true;
411
- // filterInList 列的行数变化:强制全量重渲染,避免行索引移位时闭包失效导致显示错误
412
- if (filterListChanged) return true;
413
- if ((record === null || record === void 0 ? void 0 : record.rowKey) !== (prevRecord === null || prevRecord === void 0 ? void 0 : prevRecord.rowKey)) {
414
- return true;
415
- }
416
- // 行位置变化时(增删其他行导致 index 移位),需强制重渲染以更新 Form.Item name 路径
417
- if ((record === null || record === void 0 ? void 0 : record._rowIndex) !== (prevRecord === null || prevRecord === void 0 ? void 0 : prevRecord._rowIndex)) {
418
- return true;
419
- }
420
- // 拖拽排序时,行数据不变但位置(_dragIndex)变化,需强制重渲染以更新 cellName(Form.Item name)
421
- if ((record === null || record === void 0 ? void 0 : record._dragIndex) !== (prevRecord === null || prevRecord === void 0 ? void 0 : prevRecord._dragIndex)) {
422
- return true;
423
- }
424
- // 单行编辑模式下,需要检测编辑状态变化
425
- if (virtualKey && (record === null || record === void 0 ? void 0 : record._isEditing) !== (prevRecord === null || prevRecord === void 0 ? void 0 : prevRecord._isEditing)) {
426
- return true;
427
- }
428
- // 动态 component 可能依赖行内其他字段,需比较整行
429
- if (hasComponent) {
430
- // component 函数引用变化说明外部依赖(如异步 list)已更新,必须重渲染
431
- // 即使行数据未变,旧闭包仍持有过时的外部状态
432
- var prevComponentRef = columnComponentRefCache.get(columnCacheKey);
433
- var currentComponentRef = item.component;
434
- if (prevComponentRef !== currentComponentRef) {
435
- columnComponentRefCache.set(columnCacheKey, currentComponentRef);
436
- return true;
437
- }
438
- // 同引用时 isEqual 恒为 true,无法感知原地修改,必须重渲染
439
- if (record === prevRecord) {
440
- return true;
441
- }
442
- var rowChanged = !(0, _lodash.isEqual)(record, prevRecord);
443
- return rowChanged;
444
- }
445
- var key = item.dataIndex || item.key;
446
- if (!key) return true;
447
- var keyChanged = (record === null || record === void 0 ? void 0 : record[key]) !== (prevRecord === null || prevRecord === void 0 ? void 0 : prevRecord[key]);
448
- return keyChanged;
449
- };
450
- }
451
- });
452
- if (disabled || isView) {
453
- // 查看模式下过滤操作栏
454
- nextColumns = nextColumns.filter(item => item.title !== _locale.default.ProEditTable.operation);
455
- } else {
456
- var validateKeys = nextColumns.filter(i => i.rules || i.required).map(item => {
457
- var _item$names;
458
- if ((_item$names = item.names) !== null && _item$names !== void 0 && _item$names.length) {
459
- var nextDataIndex = (0, _tools.splitNames)(item.names);
460
- item.dataIndex = nextDataIndex;
461
- item.key = nextDataIndex;
462
- }
463
- return item.dataIndex || item.key;
464
- });
465
- var actionColumn = getActionColumn(_objectSpread(_objectSpread({}, config), {}, {
466
- validateKeys // 需要校验的单元格的formItem的name
467
- }));
468
- actionColumn && nextColumns.push(actionColumn);
469
- }
470
-
471
- // 渲染操作列
472
- return nextColumns;
473
- };
@@ -1,93 +0,0 @@
1
- import { Key } from 'react';
2
- import { FormInstance } from 'antd/es/form';
3
- import { NamePath } from 'antd/es/form/interface';
4
- /**
5
- * 生成随机字符串
6
- * @returns 随机字符串
7
- */
8
- export declare const getRandom: () => string;
9
- /**
10
- * 构建 AntD Table 的 rowKey 函数,支持字符串/函数两种形式,
11
- * 当用户指定字段值无效时(新增行尚未填写业务 key),自动降级到内部 record.rowKey。
12
- * @param rowKey 用户传入的 rowKey prop
13
- * @returns AntD Table 可用的 rowKey 字符串或函数
14
- */
15
- export declare const buildTableRowKey: (rowKey?: string | number | symbol | ((record: any) => any)) => (record: any) => string;
16
- /**
17
- * 深层次对比两个对象且取出来差异值
18
- * @param object 比较对象
19
- * @param base 基准对象
20
- * @returns 差异对象
21
- */
22
- export declare const difference: <T extends Record<string, any>, U extends Record<string, any>>(object: T, base: U) => Record<string, any>;
23
- /**
24
- * 数组字段循环校验,解决validateFields无法批量校验的问题
25
- * @param validateKeys 校验键数组
26
- * @param form 表单实例
27
- * @param rowName 行名称路径
28
- * @returns 校验结果Promise
29
- */
30
- export declare const customValidate: (validateKeys: string[], form: FormInstance, rowName: NamePath) => Promise<any>;
31
- /**
32
- * 拆解数组names
33
- * @param names 名称数组
34
- * @returns 拆解后的字符串
35
- */
36
- export declare const splitNames: (names: any[]) => string;
37
- /**
38
- * 获取中间formItem的name
39
- * @param name 名称路径
40
- * @param virtualKey 虚拟键
41
- * @returns 完整名称路径数组
42
- */
43
- export declare const getNamePath: (name: NamePath, virtualKey?: string) => (string | number)[];
44
- /**
45
- * 删除操作
46
- * @param params 删除参数
47
- */
48
- export declare const onDelete: ({ name, form, virtualKey, selectedRowKeys, }: {
49
- name: NamePath;
50
- form: FormInstance;
51
- virtualKey?: string;
52
- selectedRowKeys: Key[];
53
- }) => void;
54
- /**
55
- * 获取最终的disabled, 两种模式【子级优先,全局优先】
56
- * 全局优先:globalControl为true时,全局控制
57
- * 子级优先:globalControl为false时,子级控制
58
- * @param params 禁用参数
59
- * @returns 是否禁用
60
- */
61
- export declare const getDisabled: ({ globalControl, formDisabled, column, tabledDisabled, columnFieldProps, params, rowDisabled, }: {
62
- globalControl: boolean;
63
- formDisabled?: boolean | ((record: any) => boolean);
64
- column: any;
65
- tabledDisabled?: boolean;
66
- columnFieldProps?: any;
67
- params: any[];
68
- rowDisabled?: any;
69
- }) => boolean;
70
- /**
71
- * 表格自动滚动到报错位置
72
- */
73
- export declare const handleScrollToError: () => void;
74
- /**
75
- * 深copy一个对象,并过滤掉其中的React节点
76
- * @param value 需要深拷贝的对象
77
- * @returns 深拷贝后的对象,其中的React节点会被保留
78
- */
79
- export declare function cloneDeepFilterNode<T>(value: T): T;
80
- /**
81
- * 分页校验
82
- */
83
- export declare const onPageCheck: ({ form, name, value, columns, setState, page, pagination, isView, disabled }: {
84
- form: any;
85
- name: any;
86
- value: any;
87
- columns: any;
88
- setState: any;
89
- page: any;
90
- pagination: any;
91
- isView: any;
92
- disabled: any;
93
- }) => Promise<void>;