@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,699 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getParentElement = exports.formatColumn = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
8
- var _dayjs15 = _interopRequireDefault(require("dayjs"));
9
- var _classnames = _interopRequireDefault(require("classnames"));
10
- var _client = require("react-dom/client");
11
- var _antd = require("antd");
12
- var _lodash = require("lodash");
13
- var _utils = require("@zat-design/utils");
14
- var _TooltipTitle = _interopRequireDefault(require("../TooltipTitle"));
15
- var _RenderColumn = _interopRequireDefault(require("../RenderColumn"));
16
- var _utils2 = require("../../utils");
17
- var _utils3 = require("../../../utils");
18
- var _getEnumLabel = _interopRequireDefault(require("../../../ProEnum/utils/getEnumLabel"));
19
- var _components = require("../../../ProForm/components");
20
- var _jsxRuntime = require("react/jsx-runtime");
21
- var _excluded = ["title", "valueType", "format", "precision", "ellipsis", "code", "copyable", "width", "tooltip", "transform", "prefix", "suffix", "dataIndex", "toolTipProps", "minWidth", "onDiff"];
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
25
- 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; }
26
- 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; }
27
- 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; }
28
- 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; }
29
- 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; }
30
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
31
- 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); } /**
32
- * FormatColumn - 表格列格式化组件
33
- * 重构优化:提取公共逻辑,修复 key prop 警告
34
- */
35
- var isReactElement = element => /*#__PURE__*/(0, _react.isValidElement)(element);
36
-
37
- // 需要从 otherProps 中排除的属性(不应传递给 RenderColumn)
38
- var EXCLUDED_PROPS = ['key', 'render', 'children', 'onCell', 'onHeaderCell'];
39
-
40
- /**
41
- * 获取安全的 props(排除 key 等不应通过 spread 传递的属性)
42
- */
43
- var getSafeProps = props => (0, _lodash.omit)(props, EXCLUDED_PROPS);
44
- var getDiffContext = (value, record, originalObj, rowKey, dataIndex, isInNewRow) => {
45
- var result = (0, _utils2.getOriginalValue)(value, record, originalObj, rowKey, dataIndex);
46
- return _objectSpread(_objectSpread({}, result), {}, {
47
- isInNewRowFlag: isInNewRow(record)
48
- });
49
- };
50
- var createRenderColumn = _ref => {
51
- var baseProps = _ref.baseProps,
52
- valueType = _ref.valueType,
53
- ellipsis = _ref.ellipsis,
54
- width = _ref.width,
55
- toolTipProps = _ref.toolTipProps,
56
- minWidth = _ref.minWidth,
57
- node = _ref.node,
58
- value = _ref.value,
59
- currentValue = _ref.currentValue,
60
- originalValue = _ref.originalValue,
61
- isChanged = _ref.isChanged,
62
- isInNewRowFlag = _ref.isInNewRowFlag,
63
- isAddCell = _ref.isAddCell,
64
- copyable = _ref.copyable;
65
- var safeProps = getSafeProps(baseProps);
66
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RenderColumn.default, _objectSpread(_objectSpread({}, safeProps), {}, {
67
- isChanged: isChanged,
68
- valueType: valueType,
69
- originalValue: originalValue,
70
- ellipsis: ellipsis,
71
- width: width,
72
- node: node,
73
- value: value,
74
- currentValue: currentValue,
75
- toolTipProps: toolTipProps,
76
- minWidth: minWidth,
77
- isInNewRowFlag: isInNewRowFlag,
78
- isAddCell: isAddCell,
79
- copyable: copyable
80
- }));
81
- };
82
- var calcMinWidth = _ref2 => {
83
- var minWidth = _ref2.minWidth,
84
- width = _ref2.width,
85
- title = _ref2.title,
86
- isMaxContentOverFlow = _ref2.isMaxContentOverFlow,
87
- callback = _ref2.callback;
88
- if (!minWidth && !width && isMaxContentOverFlow) {
89
- var tempEl = document.createElement('div');
90
- tempEl.style.display = 'inline-block';
91
- document.body.appendChild(tempEl);
92
- var root = null;
93
- if ((0, _lodash.isFunction)(title)) {
94
- var component = title();
95
- root = (0, _client.createRoot)(tempEl);
96
- root.render(component);
97
- } else if (isReactElement(title)) {
98
- root = (0, _client.createRoot)(tempEl);
99
- root.render(title);
100
- } else {
101
- tempEl.innerHTML = title;
102
- }
103
- requestAnimationFrame(() => {
104
- var _root;
105
- var _width = tempEl.offsetWidth;
106
- (_root = root) === null || _root === void 0 || _root.unmount();
107
- tempEl.remove();
108
- callback(_width);
109
- });
110
- }
111
- };
112
- var formatColumn = _ref3 => {
113
- var column = _ref3.column,
114
- originalObj = _ref3.originalObj,
115
- rowKey = _ref3.rowKey,
116
- wrapToolTipProps = _ref3.wrapToolTipProps,
117
- scroll = _ref3.scroll,
118
- onUpdateMinWidth = _ref3.onUpdateMinWidth,
119
- isInNewRow = _ref3.isInNewRow,
120
- diffConfig = _ref3.diffConfig;
121
- var title = column.title,
122
- valueType = column.valueType,
123
- _column$format = column.format,
124
- format = _column$format === void 0 ? 'YYYY-MM-DD HH:mm:ss' : _column$format,
125
- precision = column.precision,
126
- ellipsis = column.ellipsis,
127
- code = column.code,
128
- copyable = column.copyable,
129
- width = column.width,
130
- tooltip = column.tooltip,
131
- transform = column.transform,
132
- prefix = column.prefix,
133
- suffix = column.suffix,
134
- dataIndex = column.dataIndex,
135
- _column$toolTipProps = column.toolTipProps,
136
- toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps,
137
- minWidth = column.minWidth,
138
- onDiff = column.onDiff,
139
- otherProps = _objectWithoutProperties(column, _excluded);
140
- otherProps.scroll = scroll;
141
- var isMaxContentOverFlow = (0, _lodash.isObject)(scroll) ? (scroll === null || scroll === void 0 ? void 0 : scroll.x) === 'max-content' && Reflect.ownKeys(scroll).includes('y') : false;
142
- calcMinWidth({
143
- minWidth,
144
- width,
145
- title,
146
- isMaxContentOverFlow,
147
- callback: onUpdateMinWidth
148
- });
149
- var _toolTipProps = _objectSpread(_objectSpread({}, toolTipProps), wrapToolTipProps);
150
-
151
- // 前缀处理
152
- var prefixNode = (value, record, index) => {
153
- if (!prefix) {
154
- if (valueType === 'thousandthCNY') {
155
- return 'CNY';
156
- }
157
- return '';
158
- }
159
- if ((0, _lodash.isString)(prefix) || /*#__PURE__*/(0, _react.isValidElement)(prefix)) {
160
- return prefix;
161
- }
162
- if ((0, _lodash.isFunction)(prefix)) {
163
- return prefix(value, record, index);
164
- }
165
- };
166
-
167
- // 后缀处理
168
- var suffixNode = (value, record, index) => {
169
- if ((0, _lodash.isString)(suffix) || /*#__PURE__*/(0, _react.isValidElement)(suffix)) {
170
- return suffix;
171
- }
172
- if ((0, _lodash.isFunction)(suffix)) {
173
- return suffix(value, record, index);
174
- }
175
- };
176
-
177
- // 创建带前后缀的节点
178
- var createNodeWithAffixes = (value, renderValue, record, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
179
- size: 8,
180
- children: [prefixNode(value, record, index), renderValue, suffixNode(value, record, index)]
181
- });
182
-
183
- // 处理自定义 diff 逻辑
184
- var processDiffResult = (diffResult, currentIsAddCell, props) => {
185
- var _isAddCell = currentIsAddCell;
186
- var _isChanged = props.isChanged;
187
- if ((0, _lodash.isBoolean)(diffResult)) {
188
- _isChanged = diffResult;
189
- _isAddCell = false;
190
- } else if (typeof diffResult === 'string') {
191
- switch (diffResult) {
192
- case 'changed':
193
- _isAddCell = false;
194
- _isChanged = true;
195
- break;
196
- case 'same':
197
- _isAddCell = false;
198
- _isChanged = false;
199
- break;
200
- case 'add':
201
- _isAddCell = true;
202
- _isChanged = false;
203
- break;
204
- }
205
- }
206
- return {
207
- isAddCell: _isAddCell,
208
- isChanged: _isChanged
209
- };
210
- };
211
-
212
- // 自定义 render 处理
213
- if (column !== null && column !== void 0 && column.render) {
214
- var originalRender = column.render;
215
- column.render = (value, record, index) => {
216
- var isFn = (0, _lodash.isFunction)(originalRender);
217
- var _value = isFn ? originalRender === null || originalRender === void 0 ? void 0 : originalRender(value, record !== null && record !== void 0 ? record : {}, index) : null;
218
- var ctx = getDiffContext(value, record !== null && record !== void 0 ? record : {}, originalObj, rowKey, dataIndex, isInNewRow);
219
- var originalValue = ctx.originalValue,
220
- isAddCell = ctx.isAddCell;
221
- var isChanged = ctx.isChanged,
222
- isInNewRowFlag = ctx.isInNewRowFlag;
223
- var currentIsChanged = isChanged;
224
- if (Array.isArray(diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalDataSource)) {
225
- if ((0, _lodash.isFunction)(otherProps === null || otherProps === void 0 ? void 0 : otherProps.viewRender)) {
226
- var _originalObj$record$r;
227
- var diffResult = otherProps.viewRender({
228
- originValue: originalValue,
229
- originRecord: (_originalObj$record$r = originalObj === null || originalObj === void 0 ? void 0 : originalObj[record === null || record === void 0 ? void 0 : record[rowKey]]) !== null && _originalObj$record$r !== void 0 ? _originalObj$record$r : {},
230
- value,
231
- record,
232
- index
233
- });
234
- var processed = processDiffResult(diffResult, isAddCell, {
235
- isChanged: currentIsChanged
236
- });
237
- isAddCell = processed.isAddCell;
238
- currentIsChanged = processed.isChanged;
239
- originalValue = diffResult;
240
- }
241
- if ((0, _lodash.isFunction)(onDiff)) {
242
- var _originalObj$record$r2;
243
- var _diffResult = onDiff({
244
- originValue: originalValue,
245
- originRecord: (_originalObj$record$r2 = originalObj === null || originalObj === void 0 ? void 0 : originalObj[record === null || record === void 0 ? void 0 : record[rowKey]]) !== null && _originalObj$record$r2 !== void 0 ? _originalObj$record$r2 : {},
246
- value,
247
- record,
248
- index
249
- });
250
- var _processed = processDiffResult(_diffResult, isAddCell, {
251
- isChanged: currentIsChanged
252
- });
253
- isAddCell = _processed.isAddCell;
254
- currentIsChanged = _processed.isChanged;
255
- }
256
- }
257
- return createRenderColumn({
258
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
259
- isChanged: currentIsChanged
260
- }),
261
- valueType,
262
- ellipsis,
263
- width,
264
- toolTipProps: _toolTipProps,
265
- minWidth,
266
- node: _value,
267
- value: _value,
268
- currentValue: _value,
269
- originalValue: (0, _utils3.isEmpty)(originalValue) ? null : originalValue,
270
- isChanged: currentIsChanged,
271
- isInNewRowFlag,
272
- isAddCell
273
- });
274
- };
275
- return;
276
- }
277
- if (tooltip) {
278
- column.title = /*#__PURE__*/(0, _jsxRuntime.jsx)(_TooltipTitle.default, {
279
- title: title,
280
- tooltip: tooltip
281
- });
282
- }
283
- if (ellipsis) {
284
- column.ellipsis = false;
285
- }
286
- var valueTypePrecision = precision !== null && precision !== void 0 ? precision : 0;
287
- if (['percentage', 'permillage', 'thousandth', 'thousandthCNY'].includes(valueType)) {
288
- valueTypePrecision = precision !== null && precision !== void 0 ? precision : 2;
289
- }
290
-
291
- // 百分比、千分比
292
- if (['percentage', 'permillage'].includes(valueType)) {
293
- column.render = (value, record, index) => {
294
- var multiple = valueType === 'percentage' ? 100 : 1000;
295
- var realValue = _utils.tools.calc(Number(value !== null && value !== void 0 ? value : 0), '*', multiple);
296
- var renderValue = (0, _utils2.getDecimalDigits)(value) > valueTypePrecision ? realValue : realValue.toFixed(valueTypePrecision);
297
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
298
- var originalValue = ctx.originalValue,
299
- isAddCell = ctx.isAddCell,
300
- isInNewRowFlag = ctx.isInNewRowFlag,
301
- isChanged = ctx.isChanged;
302
- var originalRealValue = _utils.tools.calc(Number(originalValue || null), '*', multiple);
303
- var originalRenderValue = (0, _utils2.getDecimalDigits)(originalValue) > valueTypePrecision ? originalRealValue : originalRealValue.toFixed(valueTypePrecision);
304
- if ((0, _utils3.isEmpty)(originalValue)) {
305
- originalRenderValue = '-';
306
- }
307
- if (!value && value !== 0 && renderValue === originalRenderValue) {
308
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
309
- style: {
310
- minWidth
311
- },
312
- children: "-"
313
- });
314
- }
315
- return createRenderColumn({
316
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
317
- isChanged
318
- }),
319
- valueType,
320
- ellipsis,
321
- width,
322
- toolTipProps: _toolTipProps,
323
- minWidth,
324
- node: createNodeWithAffixes(value, renderValue, record, index),
325
- value,
326
- currentValue: renderValue,
327
- originalValue: originalValue === null ? null : originalRenderValue,
328
- isChanged,
329
- isInNewRowFlag,
330
- isAddCell
331
- });
332
- };
333
- } else if (['thousandth', 'thousandthCNY'].includes(valueType)) {
334
- // 千分位, 千分位带CNY前缀
335
- column.render = (value, record, index) => {
336
- var valueStr = valueTypePrecision || valueTypePrecision === 0 ? `${Number(value).toFixed(valueTypePrecision)}` : `${value}`;
337
- var renderValue = valueStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
338
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
339
- var originalValue = ctx.originalValue,
340
- isAddCell = ctx.isAddCell,
341
- isInNewRowFlag = ctx.isInNewRowFlag,
342
- isChanged = ctx.isChanged;
343
- var originalRealValue = valueTypePrecision ? `${Number(originalValue).toFixed(valueTypePrecision)}` : `${originalValue}`;
344
- var originalRenderValue = originalRealValue.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
345
- if ((0, _utils3.isEmpty)(originalValue)) {
346
- originalRenderValue = '-';
347
- }
348
- if (!value && value !== 0 && renderValue === originalRenderValue) {
349
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
350
- style: {
351
- minWidth
352
- },
353
- children: "-"
354
- });
355
- }
356
- return createRenderColumn({
357
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
358
- isChanged
359
- }),
360
- valueType,
361
- ellipsis,
362
- width,
363
- toolTipProps: _toolTipProps,
364
- minWidth,
365
- node: createNodeWithAffixes(value, renderValue, record, index),
366
- value,
367
- currentValue: renderValue,
368
- originalValue: originalValue === null ? null : originalRenderValue,
369
- isChanged,
370
- isInNewRowFlag,
371
- isAddCell
372
- });
373
- };
374
- } else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
375
- // 日期类型
376
- column.render = (value, record, index) => {
377
- var _dayjs, _dayjs2, _dayjs3, _dayjs4, _dayjs5, _dayjs6, _dayjs7, _dayjs8, _dayjs9, _dayjs10, _dayjs11, _dayjs12, _dayjs13, _dayjs14;
378
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
379
- var originalValue = ctx.originalValue,
380
- isAddCell = ctx.isAddCell,
381
- isInNewRowFlag = ctx.isInNewRowFlag,
382
- isChanged = ctx.isChanged;
383
- var renderValue = (_dayjs = (0, _dayjs15.default)(value)) === null || _dayjs === void 0 ? void 0 : _dayjs.format(format);
384
- var originalRenderValue = (_dayjs2 = (0, _dayjs15.default)(originalValue)) === null || _dayjs2 === void 0 ? void 0 : _dayjs2.format(format);
385
- switch (valueType) {
386
- case 'date':
387
- renderValue = (_dayjs3 = (0, _dayjs15.default)(value)) === null || _dayjs3 === void 0 ? void 0 : _dayjs3.format('YYYY-MM-DD');
388
- originalRenderValue = (_dayjs4 = (0, _dayjs15.default)(originalValue)) === null || _dayjs4 === void 0 ? void 0 : _dayjs4.format('YYYY-MM-DD');
389
- break;
390
- case 'dateTime':
391
- renderValue = (_dayjs5 = (0, _dayjs15.default)(value)) === null || _dayjs5 === void 0 ? void 0 : _dayjs5.format('YYYY-MM-DD HH:mm:ss');
392
- originalRenderValue = (_dayjs6 = (0, _dayjs15.default)(originalValue)) === null || _dayjs6 === void 0 ? void 0 : _dayjs6.format('YYYY-MM-DD HH:mm:ss');
393
- break;
394
- case 'dateStartTime':
395
- renderValue = `${(_dayjs7 = (0, _dayjs15.default)(value)) === null || _dayjs7 === void 0 ? void 0 : _dayjs7.format('YYYY-MM-DD')} 00:00:00`;
396
- originalRenderValue = `${(_dayjs8 = (0, _dayjs15.default)(originalValue)) === null || _dayjs8 === void 0 ? void 0 : _dayjs8.format('YYYY-MM-DD')} 00:00:00`;
397
- break;
398
- case 'dateEndTime':
399
- renderValue = `${(_dayjs9 = (0, _dayjs15.default)(value)) === null || _dayjs9 === void 0 ? void 0 : _dayjs9.format('YYYY-MM-DD')} 23:59:59`;
400
- originalRenderValue = `${(_dayjs10 = (0, _dayjs15.default)(originalValue)) === null || _dayjs10 === void 0 ? void 0 : _dayjs10.format('YYYY-MM-DD')} 23:59:59`;
401
- break;
402
- case 'dateStartEndTime':
403
- renderValue = `${(_dayjs11 = (0, _dayjs15.default)(value === null || value === void 0 ? void 0 : value[0])) === null || _dayjs11 === void 0 ? void 0 : _dayjs11.format('YYYY-MM-DD')} 00:00:00~${(_dayjs12 = (0, _dayjs15.default)(value === null || value === void 0 ? void 0 : value[1])) === null || _dayjs12 === void 0 ? void 0 : _dayjs12.format('YYYY-MM-DD')} 23:59:59`;
404
- originalRenderValue = `${(_dayjs13 = (0, _dayjs15.default)(originalValue === null || originalValue === void 0 ? void 0 : originalValue[0])) === null || _dayjs13 === void 0 ? void 0 : _dayjs13.format('YYYY-MM-DD')} 00:00:00~${(_dayjs14 = (0, _dayjs15.default)(originalValue === null || originalValue === void 0 ? void 0 : originalValue[1])) === null || _dayjs14 === void 0 ? void 0 : _dayjs14.format('YYYY-MM-DD')} 23:59:59`;
405
- break;
406
- }
407
- if (!value) renderValue = '-';
408
- if (!originalValue) originalRenderValue = '-';
409
- if (!value && renderValue === originalRenderValue) {
410
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
411
- style: {
412
- minWidth
413
- },
414
- children: "-"
415
- });
416
- }
417
- return createRenderColumn({
418
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
419
- isChanged
420
- }),
421
- valueType,
422
- ellipsis,
423
- width,
424
- toolTipProps: _toolTipProps,
425
- minWidth,
426
- node: createNodeWithAffixes(value, renderValue, record, index),
427
- value,
428
- currentValue: renderValue,
429
- originalValue: originalValue === null ? null : originalRenderValue,
430
- isChanged,
431
- isInNewRowFlag,
432
- isAddCell
433
- });
434
- };
435
- } else if (['enumName', 'enumCodeName'].includes(valueType)) {
436
- // 枚举类型
437
- column.render = (value, record, index) => {
438
- var realCode = typeof code === 'function' ? code(value, record) : code;
439
- var renderValue = (0, _getEnumLabel.default)(realCode, value, valueType === 'enumCodeName');
440
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
441
- var originalValue = ctx.originalValue,
442
- isAddCell = ctx.isAddCell,
443
- isInNewRowFlag = ctx.isInNewRowFlag,
444
- isChanged = ctx.isChanged;
445
- var originalRenderValue = (0, _getEnumLabel.default)(realCode, originalValue, valueType === 'enumCodeName');
446
- if (Array.isArray(column === null || column === void 0 ? void 0 : column.codeValues) && !realCode) {
447
- var _column$codeValues$fi;
448
- var labelName = column === null || column === void 0 || (_column$codeValues$fi = column.codeValues.find(item => item.value === value)) === null || _column$codeValues$fi === void 0 ? void 0 : _column$codeValues$fi.label;
449
- if (valueType === 'enumName') {
450
- renderValue = /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
451
- children: labelName || '-'
452
- });
453
- }
454
- if (valueType === 'enumCodeName') {
455
- renderValue = /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
456
- children: labelName ? `${value}-${labelName}` : labelName
457
- });
458
- }
459
- }
460
- return createRenderColumn({
461
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
462
- isChanged
463
- }),
464
- valueType,
465
- ellipsis,
466
- width,
467
- toolTipProps: _toolTipProps,
468
- minWidth,
469
- node: createNodeWithAffixes(value, renderValue, record, index),
470
- value,
471
- currentValue: renderValue,
472
- originalValue: originalValue === null ? null : originalRenderValue,
473
- isChanged,
474
- isInNewRowFlag,
475
- isAddCell
476
- });
477
- };
478
- } else if (precision || prefix || suffix) {
479
- // 精度或前后缀
480
- column.render = (value, record, index) => {
481
- var renderValue = typeof value === 'number' ? value.toFixed(precision) : value;
482
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
483
- var originalValue = ctx.originalValue,
484
- isAddCell = ctx.isAddCell,
485
- isInNewRowFlag = ctx.isInNewRowFlag,
486
- isChanged = ctx.isChanged;
487
- var originalRenderValue = typeof originalValue === 'number' ? originalValue.toFixed(precision) : originalValue;
488
- if ((0, _utils3.isEmpty)(originalValue)) {
489
- originalRenderValue = '-';
490
- }
491
- if (!value && value !== 0 && renderValue === originalRenderValue) {
492
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
493
- style: {
494
- minWidth
495
- },
496
- children: "-"
497
- });
498
- }
499
- return createRenderColumn({
500
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
501
- isChanged
502
- }),
503
- valueType,
504
- ellipsis,
505
- width,
506
- toolTipProps: _toolTipProps,
507
- minWidth,
508
- node: createNodeWithAffixes(value, renderValue, record, index),
509
- value,
510
- currentValue: renderValue,
511
- originalValue: originalValue === null ? null : originalRenderValue,
512
- isChanged,
513
- isInNewRowFlag,
514
- isAddCell
515
- });
516
- };
517
- } else if (valueType === 'address') {
518
- // 地址类型
519
- column.render = (value, record, index) => {
520
- var _realValue$filter;
521
- var realValue = transform ? transform(value, record) : value;
522
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
523
- var originalValue = ctx.originalValue,
524
- isAddCell = ctx.isAddCell,
525
- isInNewRowFlag = ctx.isInNewRowFlag,
526
- isChanged = ctx.isChanged;
527
- var originalRealValue = transform ? transform(originalValue, record) : originalValue;
528
- var isEmptyValue = !realValue || Array.isArray(realValue) && (realValue === null || realValue === void 0 || (_realValue$filter = realValue.filter(item => !!item)) === null || _realValue$filter === void 0 ? void 0 : _realValue$filter.length) === 0;
529
- if ((0, _lodash.isEqual)(value, originalValue) && isEmptyValue) {
530
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
531
- style: {
532
- minWidth
533
- },
534
- children: "-"
535
- });
536
- }
537
- var className = (0, _classnames.default)({
538
- 'empty-cell': isEmptyValue
539
- });
540
- var realCode = typeof code === 'function' ? code(value, record) : code;
541
- var renderValue = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ProCascader, {
542
- isView: true,
543
- mode: "address",
544
- code: realCode,
545
- value: realValue
546
- });
547
- var originalRenderValue = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ProCascader, {
548
- isView: true,
549
- mode: "address",
550
- code: realCode,
551
- value: originalRealValue
552
- });
553
- var renderNode = /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.ProCascader, {
554
- className: className,
555
- isView: true,
556
- mode: "address",
557
- code: realCode,
558
- value: realValue,
559
- tooltip: false
560
- });
561
- return createRenderColumn({
562
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
563
- isChanged
564
- }),
565
- valueType,
566
- ellipsis,
567
- width,
568
- toolTipProps: _toolTipProps,
569
- minWidth,
570
- node: renderNode,
571
- value: renderValue,
572
- currentValue: renderValue,
573
- originalValue: originalValue === null ? null : originalRenderValue,
574
- isChanged,
575
- isInNewRowFlag,
576
- isAddCell
577
- });
578
- };
579
- } else if (copyable) {
580
- // 可复制
581
- column.render = (value, record, index) => {
582
- var isInNewRowFlag = isInNewRow(record);
583
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
584
- size: 8,
585
- children: [prefixNode(value, record, index), createRenderColumn({
586
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
587
- isChanged: false
588
- }),
589
- valueType,
590
- ellipsis,
591
- width,
592
- toolTipProps: _toolTipProps,
593
- minWidth,
594
- node: value,
595
- value,
596
- currentValue: value,
597
- originalValue: null,
598
- isChanged: false,
599
- isInNewRowFlag,
600
- isAddCell: false,
601
- copyable
602
- }), suffixNode(value, record, index)]
603
- });
604
- };
605
- } else if (ellipsis) {
606
- // 省略号
607
- column.render = (value, record, index) => {
608
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
609
- var originalValue = ctx.originalValue,
610
- isAddCell = ctx.isAddCell,
611
- isInNewRowFlag = ctx.isInNewRowFlag,
612
- isChanged = ctx.isChanged;
613
- if (!value && value !== 0 && value === originalValue) {
614
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
615
- style: {
616
- minWidth
617
- },
618
- children: "-"
619
- });
620
- }
621
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_antd.Space, {
622
- size: 8,
623
- children: [prefixNode(value, record, index), createRenderColumn({
624
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
625
- isChanged
626
- }),
627
- valueType,
628
- ellipsis,
629
- width,
630
- toolTipProps: _toolTipProps,
631
- minWidth,
632
- node: value,
633
- value,
634
- currentValue: value || '-',
635
- originalValue: originalValue === null ? null : originalValue || '-',
636
- isChanged,
637
- isInNewRowFlag,
638
- isAddCell
639
- }), suffixNode(value, record, index)]
640
- });
641
- };
642
- } else {
643
- // 默认渲染
644
- column.render = (value, record, index) => {
645
- var ctx = getDiffContext(value, record, originalObj, rowKey, dataIndex, isInNewRow);
646
- var originalValue = ctx.originalValue,
647
- isAddCell = ctx.isAddCell,
648
- isInNewRowFlag = ctx.isInNewRowFlag,
649
- isChanged = ctx.isChanged;
650
- if (!value && value !== 0 && value === originalValue) {
651
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
652
- style: {
653
- minWidth
654
- },
655
- children: "-"
656
- });
657
- }
658
- return createRenderColumn({
659
- baseProps: _objectSpread(_objectSpread({}, otherProps), {}, {
660
- isChanged
661
- }),
662
- valueType,
663
- ellipsis,
664
- width,
665
- toolTipProps: _toolTipProps,
666
- minWidth,
667
- node: createNodeWithAffixes(value, value, record, index),
668
- value,
669
- currentValue: value || '-',
670
- originalValue: originalValue === null ? null : originalValue || '-',
671
- isChanged,
672
- isInNewRowFlag,
673
- isAddCell
674
- });
675
- };
676
- }
677
- };
678
-
679
- /**
680
- * 查找最近的父级className
681
- */
682
- exports.formatColumn = formatColumn;
683
- var getParentElement = exports.getParentElement = function getParentElement(element, name) {
684
- var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'className';
685
- var result = /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {});
686
- if (!element || !name) {
687
- return result;
688
- }
689
- var searchDom = function searchDom(el, searchName) {
690
- var searchType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'className';
691
- if (el.parentElement[searchType] === searchName) {
692
- result = el.parentElement;
693
- return false;
694
- }
695
- searchDom(el.parentElement, searchName, searchType);
696
- };
697
- searchDom(element, name, type);
698
- return result;
699
- };