@zat-design/sisyphus-react 4.5.0 → 4.5.2

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 (290) hide show
  1. package/dist/index.esm.css +1 -1
  2. package/dist/less.esm.css +1 -1
  3. package/es/ProDrawerForm/components/ProDrawer/index.js +58 -86
  4. package/es/ProDrawerForm/components/ProModal/index.js +44 -20
  5. package/es/ProDrawerForm/hooks/useConfirmClose.js +70 -0
  6. package/es/ProDrawerForm/index.js +7 -11
  7. package/es/ProDrawerForm/utils/index.js +36 -0
  8. package/es/ProEditTable/components/RcTable/BaseTable.js +10 -0
  9. package/es/ProEditTable/components/Summary/index.js +3 -2
  10. package/es/ProEditTable/utils/tools.js +1 -1
  11. package/es/ProEnum/index.js +6 -3
  12. package/es/ProForm/components/combination/FormList/components/ActionButton.js +7 -6
  13. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +4 -3
  14. package/es/ProForm/components/combination/ProModalSelect/index.js +7 -2
  15. package/es/ProForm/components/combination/ProModalSelect/utils/mergeSelectedRows.js +26 -0
  16. package/es/ProForm/components/render/RenderFields.js +3 -1
  17. package/es/ProForm/hooks/useWatch.js +8 -10
  18. package/es/ProLayout/components/ProHeader/index.js +28 -15
  19. package/es/ProSelect/index.js +77 -178
  20. package/es/ProSelect/utils/index.js +174 -0
  21. package/es/ProTree/components/ProTreeSelect/index.js +41 -14
  22. package/es/ProTree/components/ProTreeSelect/style/index.less +13 -4
  23. package/es/ProTree/style/index.less +20 -9
  24. package/es/ProTree/utils.js +26 -0
  25. package/es/ProTreeModal/style/index.less +1 -1
  26. package/es/ProUpload/components/DragRender.js +2 -1
  27. package/es/ProUpload/index.js +1 -1
  28. package/es/ProViewer/propsType.js +3 -1
  29. package/es/index.js +10 -0
  30. package/package.json +7 -13
  31. package/es/FormsProvider/index.d.ts +0 -18
  32. package/es/ProAction/components/CheckModalContent/index.d.ts +0 -8
  33. package/es/ProAction/index.d.ts +0 -7
  34. package/es/ProAction/propsType.d.ts +0 -45
  35. package/es/ProConfigProvider/index.d.ts +0 -9
  36. package/es/ProConfigProvider/propsType.d.ts +0 -78
  37. package/es/ProDownload/index.d.ts +0 -6
  38. package/es/ProDownload/propsType.d.ts +0 -71
  39. package/es/ProDownload/utils.d.ts +0 -60
  40. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +0 -7
  41. package/es/ProDrawerForm/components/ProModal/index.d.ts +0 -7
  42. package/es/ProDrawerForm/components/index.d.ts +0 -2
  43. package/es/ProDrawerForm/index.d.ts +0 -6
  44. package/es/ProDrawerForm/propsType.d.ts +0 -100
  45. package/es/ProDrawerForm/utils/index.d.ts +0 -6
  46. package/es/ProEditLabel/components/RenderProForm.d.ts +0 -4
  47. package/es/ProEditLabel/index.d.ts +0 -4
  48. package/es/ProEditLabel/propsType.d.ts +0 -163
  49. package/es/ProEditLabel/utils/index.d.ts +0 -7
  50. package/es/ProEditTable/components/ActionButton/index.d.ts +0 -2
  51. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +0 -6
  52. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +0 -7
  53. package/es/ProEditTable/components/RcTable/index.d.ts +0 -4
  54. package/es/ProEditTable/components/RenderField/ListChangedWrapper.d.ts +0 -4
  55. package/es/ProEditTable/components/RenderField/index.d.ts +0 -3
  56. package/es/ProEditTable/components/RenderField/propsType.d.ts +0 -30
  57. package/es/ProEditTable/components/RenderField/tools.d.ts +0 -22
  58. package/es/ProEditTable/components/RenderToolbar/index.d.ts +0 -2
  59. package/es/ProEditTable/components/Summary/index.d.ts +0 -12
  60. package/es/ProEditTable/components/Validator/index.d.ts +0 -19
  61. package/es/ProEditTable/components/index.d.ts +0 -5
  62. package/es/ProEditTable/index.d.ts +0 -4
  63. package/es/ProEditTable/propsType.d.ts +0 -437
  64. package/es/ProEditTable/utils/config.d.ts +0 -25
  65. package/es/ProEditTable/utils/diffOriginal.d.ts +0 -22
  66. package/es/ProEditTable/utils/getDefaultProps.d.ts +0 -1
  67. package/es/ProEditTable/utils/index.d.ts +0 -23
  68. package/es/ProEditTable/utils/tools.d.ts +0 -128
  69. package/es/ProEditTable/utils/transform.d.ts +0 -13
  70. package/es/ProEditTable/utils/useEditTableError.d.ts +0 -7
  71. package/es/ProEditTable/utils/useShouldUpdateForTable.d.ts +0 -16
  72. package/es/ProEditTable/utils/validateAll.d.ts +0 -89
  73. package/es/ProEnum/components/Group.d.ts +0 -10
  74. package/es/ProEnum/components/Tag.d.ts +0 -7
  75. package/es/ProEnum/hooks/useEnum.d.ts +0 -29
  76. package/es/ProEnum/hooks/useEnumRequest.d.ts +0 -4
  77. package/es/ProEnum/hooks/useFrequentEnumRequest.d.ts +0 -14
  78. package/es/ProEnum/index.d.ts +0 -10
  79. package/es/ProEnum/propsType.d.ts +0 -310
  80. package/es/ProEnum/utils/eventCenter.d.ts +0 -1
  81. package/es/ProEnum/utils/frequentEnum.d.ts +0 -39
  82. package/es/ProEnum/utils/getEnum.d.ts +0 -47
  83. package/es/ProEnum/utils/getEnumLabel.d.ts +0 -2
  84. package/es/ProEnum/utils/index.d.ts +0 -84
  85. package/es/ProForm/components/Container.d.ts +0 -9
  86. package/es/ProForm/components/FormFooter/index.d.ts +0 -5
  87. package/es/ProForm/components/FormFooter/propsType.d.ts +0 -22
  88. package/es/ProForm/components/base/Checkbox/index.d.ts +0 -14
  89. package/es/ProForm/components/base/DatePicker/index.d.ts +0 -11
  90. package/es/ProForm/components/base/Input/index.d.ts +0 -3
  91. package/es/ProForm/components/base/Input/propsType.d.ts +0 -21
  92. package/es/ProForm/components/base/InputNumber/index.d.ts +0 -11
  93. package/es/ProForm/components/base/Radio/index.d.ts +0 -15
  94. package/es/ProForm/components/base/RangePicker/index.d.ts +0 -19
  95. package/es/ProForm/components/base/RangePicker/useDateRange.d.ts +0 -15
  96. package/es/ProForm/components/base/Select/index.d.ts +0 -11
  97. package/es/ProForm/components/base/Switch/index.d.ts +0 -10
  98. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +0 -10
  99. package/es/ProForm/components/base/TextArea/index.d.ts +0 -11
  100. package/es/ProForm/components/base/TimePicker/index.d.ts +0 -13
  101. package/es/ProForm/components/combination/Container/index.d.ts +0 -4
  102. package/es/ProForm/components/combination/Container/propsType.d.ts +0 -13
  103. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +0 -24
  104. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +0 -23
  105. package/es/ProForm/components/combination/FormList/components/Empty.d.ts +0 -13
  106. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +0 -20
  107. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +0 -12
  108. package/es/ProForm/components/combination/FormList/index.d.ts +0 -4
  109. package/es/ProForm/components/combination/FormList/propsType.d.ts +0 -69
  110. package/es/ProForm/components/combination/FormList/utils.d.ts +0 -18
  111. package/es/ProForm/components/combination/Group/component/AddonWrapper/index.d.ts +0 -9
  112. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +0 -28
  113. package/es/ProForm/components/combination/Group/component/FlexibleGroup.d.ts +0 -10
  114. package/es/ProForm/components/combination/Group/hooks/index.d.ts +0 -34
  115. package/es/ProForm/components/combination/Group/index.d.ts +0 -9
  116. package/es/ProForm/components/combination/Group/propsType.d.ts +0 -99
  117. package/es/ProForm/components/combination/Group/utils/index.d.ts +0 -154
  118. package/es/ProForm/components/combination/ProCascader/index.d.ts +0 -4
  119. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +0 -48
  120. package/es/ProForm/components/combination/ProCascader/utils/index.d.ts +0 -14
  121. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.d.ts +0 -33
  122. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +0 -4
  123. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +0 -106
  124. package/es/ProForm/components/combination/ProModalSelect/utils/index.d.ts +0 -1
  125. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +0 -4
  126. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +0 -85
  127. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +0 -4
  128. package/es/ProForm/components/combination/ProRangeLimit/propsType.d.ts +0 -23
  129. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +0 -9
  130. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +0 -33
  131. package/es/ProForm/components/index.d.ts +0 -29
  132. package/es/ProForm/components/render/ChangedWrapper.d.ts +0 -17
  133. package/es/ProForm/components/render/ConfirmWrapper.d.ts +0 -10
  134. package/es/ProForm/components/render/CustomComponentViewWrapper.d.ts +0 -30
  135. package/es/ProForm/components/render/Render.d.ts +0 -4
  136. package/es/ProForm/components/render/RenderFields.d.ts +0 -26
  137. package/es/ProForm/components/render/propsType.d.ts +0 -279
  138. package/es/ProForm/hooks/useControlled.d.ts +0 -1
  139. package/es/ProForm/hooks/useDeepCompareMemo.d.ts +0 -2
  140. package/es/ProForm/hooks/useFieldProps.d.ts +0 -4
  141. package/es/ProForm/hooks/useForm.d.ts +0 -8
  142. package/es/ProForm/hooks/useRules.d.ts +0 -16
  143. package/es/ProForm/hooks/useShouldUpdate.d.ts +0 -31
  144. package/es/ProForm/hooks/useWatch.d.ts +0 -22
  145. package/es/ProForm/index.d.ts +0 -6
  146. package/es/ProForm/propsType.d.ts +0 -143
  147. package/es/ProForm/utils/buildFormItemProps.d.ts +0 -25
  148. package/es/ProForm/utils/diffOriginal.d.ts +0 -10
  149. package/es/ProForm/utils/getDefaultProps.d.ts +0 -1
  150. package/es/ProForm/utils/index.d.ts +0 -109
  151. package/es/ProForm/utils/processDependencies.d.ts +0 -29
  152. package/es/ProForm/utils/reactiveValues.d.ts +0 -34
  153. package/es/ProForm/utils/rulesCreator.d.ts +0 -7
  154. package/es/ProForm/utils/transformNames.d.ts +0 -10
  155. package/es/ProForm/utils/transformValue.d.ts +0 -6
  156. package/es/ProForm/utils/valueType.d.ts +0 -70
  157. package/es/ProIcon/config/index.d.ts +0 -19
  158. package/es/ProIcon/index.d.ts +0 -4
  159. package/es/ProIcon/propsTypes.d.ts +0 -175
  160. package/es/ProIcon/utils/index.d.ts +0 -6
  161. package/es/ProLayout/components/Layout/Header/index.d.ts +0 -4
  162. package/es/ProLayout/components/Layout/Menu/FoldMenu/index.d.ts +0 -3
  163. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +0 -3
  164. package/es/ProLayout/components/Layout/Menu/OpenMenu/propsType.d.ts +0 -15
  165. package/es/ProLayout/components/Layout/Menu/SideMenu/index.d.ts +0 -3
  166. package/es/ProLayout/components/Layout/Menu/index.d.ts +0 -4
  167. package/es/ProLayout/components/Layout/Notice/index.d.ts +0 -4
  168. package/es/ProLayout/components/Layout/index.d.ts +0 -3
  169. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -98
  170. package/es/ProLayout/components/ProCollapse/index.d.ts +0 -3
  171. package/es/ProLayout/components/ProFooter/PropTypes.d.ts +0 -27
  172. package/es/ProLayout/components/ProFooter/index.d.ts +0 -4
  173. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +0 -206
  174. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +0 -4
  175. package/es/ProLayout/components/ProHeader/components/ProBackBtn/index.d.ts +0 -9
  176. package/es/ProLayout/components/ProHeader/components/ProBackBtn/propsType.d.ts +0 -4
  177. package/es/ProLayout/components/ProHeader/components/index.d.ts +0 -2
  178. package/es/ProLayout/components/ProHeader/index.d.ts +0 -4
  179. package/es/ProLayout/components/ProHeader/utils/index.d.ts +0 -5
  180. package/es/ProLayout/components/TabsManager/components/TabContextMenu.d.ts +0 -7
  181. package/es/ProLayout/components/TabsManager/components/TabItem.d.ts +0 -26
  182. package/es/ProLayout/components/TabsManager/components/TabsContext.d.ts +0 -6
  183. package/es/ProLayout/components/TabsManager/components/TabsHeader.d.ts +0 -10
  184. package/es/ProLayout/components/TabsManager/hooks/useActiveTab.d.ts +0 -6
  185. package/es/ProLayout/components/TabsManager/hooks/useIframeRoute.d.ts +0 -25
  186. package/es/ProLayout/components/TabsManager/hooks/useProLayoutTabs.d.ts +0 -18
  187. package/es/ProLayout/components/TabsManager/hooks/useTabsCache.d.ts +0 -31
  188. package/es/ProLayout/components/TabsManager/hooks/useTabsState.d.ts +0 -5
  189. package/es/ProLayout/components/TabsManager/index.d.ts +0 -7
  190. package/es/ProLayout/components/TabsManager/propTypes.d.ts +0 -89
  191. package/es/ProLayout/components/TabsManager/utils/index.d.ts +0 -47
  192. package/es/ProLayout/components/index.d.ts +0 -3
  193. package/es/ProLayout/index.d.ts +0 -20
  194. package/es/ProLayout/propTypes.d.ts +0 -533
  195. package/es/ProLayout/utils/index.d.ts +0 -43
  196. package/es/ProSelect/components/AdaptiveTooltip.d.ts +0 -4
  197. package/es/ProSelect/index.d.ts +0 -5
  198. package/es/ProSelect/propsType.d.ts +0 -160
  199. package/es/ProSelect/utils/index.d.ts +0 -4
  200. package/es/ProStep/components/Anchor/index.d.ts +0 -4
  201. package/es/ProStep/components/Item/index.d.ts +0 -3
  202. package/es/ProStep/components/LazyLoad/index.d.ts +0 -19
  203. package/es/ProStep/components/Listener/index.d.ts +0 -4
  204. package/es/ProStep/components/Step/index.d.ts +0 -5
  205. package/es/ProStep/index.d.ts +0 -11
  206. package/es/ProStep/propsType.d.ts +0 -224
  207. package/es/ProStep/utils/index.d.ts +0 -22
  208. package/es/ProStepTab/index.d.ts +0 -22
  209. package/es/ProStepTab/propsType.d.ts +0 -114
  210. package/es/ProTable/components/EditableCell/EditIcon.d.ts +0 -6
  211. package/es/ProTable/components/EditableCell/index.d.ts +0 -4
  212. package/es/ProTable/components/EditableCell/propsType.d.ts +0 -24
  213. package/es/ProTable/components/FormatColumn/index.d.ts +0 -22
  214. package/es/ProTable/components/FormatColumn/propsType.d.ts +0 -29
  215. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +0 -3
  216. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +0 -18
  217. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.d.ts +0 -8
  218. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/propsType.d.ts +0 -61
  219. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +0 -3
  220. package/es/ProTable/components/RcTable/index.d.ts +0 -4
  221. package/es/ProTable/components/RenderColumn/index.d.ts +0 -22
  222. package/es/ProTable/components/RenderEmptyText/index.d.ts +0 -3
  223. package/es/ProTable/components/RenderFooter/index.d.ts +0 -2
  224. package/es/ProTable/components/RenderSummary/index.d.ts +0 -3
  225. package/es/ProTable/components/RenderTableHeader/index.d.ts +0 -2
  226. package/es/ProTable/components/RenderTabs/index.d.ts +0 -4
  227. package/es/ProTable/components/TableResizable/index.d.ts +0 -13
  228. package/es/ProTable/components/TooltipTitle/index.d.ts +0 -11
  229. package/es/ProTable/components/index.d.ts +0 -31
  230. package/es/ProTable/hooks/useAntdTable.d.ts +0 -7
  231. package/es/ProTable/index.d.ts +0 -17
  232. package/es/ProTable/propsType.d.ts +0 -792
  233. package/es/ProTable/utils/columnStorage.d.ts +0 -35
  234. package/es/ProTable/utils/index.d.ts +0 -52
  235. package/es/ProTabs/components/Card/index.d.ts +0 -3
  236. package/es/ProTabs/components/index.d.ts +0 -1
  237. package/es/ProTabs/index.d.ts +0 -4
  238. package/es/ProTabs/propType.d.ts +0 -94
  239. package/es/ProThemeTools/component/ProTools/index.d.ts +0 -3
  240. package/es/ProThemeTools/component/index.d.ts +0 -1
  241. package/es/ProThemeTools/context/ThemeContext.d.ts +0 -43
  242. package/es/ProThemeTools/index.d.ts +0 -9
  243. package/es/ProThemeTools/propsType.d.ts +0 -170
  244. package/es/ProThemeTools/utils/index.d.ts +0 -51
  245. package/es/ProTooltip/index.d.ts +0 -3
  246. package/es/ProTooltip/propsType.d.ts +0 -57
  247. package/es/ProTree/components/AdaptiveTooltip.d.ts +0 -4
  248. package/es/ProTree/components/CloseIcon.d.ts +0 -2
  249. package/es/ProTree/components/List.d.ts +0 -17
  250. package/es/ProTree/components/ProTree.d.ts +0 -3
  251. package/es/ProTree/components/ProTreeSelect/index.d.ts +0 -5
  252. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -439
  253. package/es/ProTree/components/SearchTitle.d.ts +0 -11
  254. package/es/ProTree/components/Tree.d.ts +0 -27
  255. package/es/ProTree/components/index.d.ts +0 -4
  256. package/es/ProTree/index.d.ts +0 -3
  257. package/es/ProTree/propsType.d.ts +0 -812
  258. package/es/ProTree/utils.d.ts +0 -52
  259. package/es/ProTreeModal/components/Cascader.d.ts +0 -14
  260. package/es/ProTreeModal/components/CloseIcon.d.ts +0 -2
  261. package/es/ProTreeModal/components/List.d.ts +0 -21
  262. package/es/ProTreeModal/components/SearchTitle.d.ts +0 -7
  263. package/es/ProTreeModal/components/SortableItem.d.ts +0 -12
  264. package/es/ProTreeModal/components/Tree.d.ts +0 -25
  265. package/es/ProTreeModal/components/Trigger.d.ts +0 -21
  266. package/es/ProTreeModal/components/index.d.ts +0 -6
  267. package/es/ProTreeModal/index.d.ts +0 -4
  268. package/es/ProTreeModal/propsType.d.ts +0 -298
  269. package/es/ProTreeModal/utils.d.ts +0 -39
  270. package/es/ProUpload/components/ButtonRender.d.ts +0 -20
  271. package/es/ProUpload/components/DragRender.d.ts +0 -21
  272. package/es/ProUpload/components/DraggableUploadListItem.d.ts +0 -2
  273. package/es/ProUpload/components/Example.d.ts +0 -10
  274. package/es/ProUpload/components/FileItem.d.ts +0 -33
  275. package/es/ProUpload/components/ImageRender.d.ts +0 -19
  276. package/es/ProUpload/index.d.ts +0 -4
  277. package/es/ProUpload/propsType.d.ts +0 -264
  278. package/es/ProUpload/uitls.d.ts +0 -3
  279. package/es/ProUtils/utils/index.d.ts +0 -6
  280. package/es/ProViewer/index.d.ts +0 -4
  281. package/es/ProViewer/propsType.d.ts +0 -35
  282. package/es/ProWaterMark/index.d.ts +0 -4
  283. package/es/ProWaterMark/propsType.d.ts +0 -6
  284. package/es/hooks/useDraggableRow.d.ts +0 -34
  285. package/es/index.d.ts +0 -47
  286. package/es/locale/en_US.d.ts +0 -176
  287. package/es/locale/index.d.ts +0 -15
  288. package/es/locale/zh_CN.d.ts +0 -176
  289. package/es/tokens.d.ts +0 -83
  290. package/es/utils/index.d.ts +0 -20
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps, ColProps, FormInstance } from 'antd';
3
- import type { ModifiedFormInstanceType } from '../../propsType';
4
- export interface ButtonItem extends ButtonProps {
5
- children?: any;
6
- }
7
- export interface FooterButtonType {
8
- okButtonProps?: ButtonItem;
9
- cancelButtonProps?: ButtonItem;
10
- }
11
- export interface FooterRenderType {
12
- okText?: string;
13
- cancelText?: string;
14
- onOk?: () => void;
15
- onCancel?: () => void;
16
- footerColProps?: ColProps;
17
- footer?: FooterButtonType;
18
- confirmLoading?: boolean;
19
- formId?: string;
20
- form: FormInstance | ModifiedFormInstanceType<any>;
21
- children?: React.ReactNode;
22
- }
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { CheckboxGroupProps } from 'antd/es/checkbox';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props extends Omit<CheckboxGroupProps, 'options'> {
5
- dataSource: any[];
6
- fieldNames?: {
7
- label: string;
8
- value: string;
9
- };
10
- otherProps?: ProFormOtherType;
11
- isView?: boolean;
12
- }
13
- declare const Checkbox: React.FC<Props>;
14
- export default Checkbox;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps, TimePickerProps } from 'antd';
3
- export type Props = DatePickerProps & TimePickerProps & {
4
- isView?: boolean;
5
- viewEmpty?: React.ReactNode;
6
- format?: string;
7
- showTime?: boolean | Record<string, any>;
8
- showNow?: boolean;
9
- };
10
- declare const DatePicker: React.FC<Props>;
11
- export default DatePicker;
@@ -1,3 +0,0 @@
1
- import { Props } from './propsType';
2
- declare const Input: (props: Props) => import("react/jsx-runtime").JSX.Element;
3
- export default Input;
@@ -1,21 +0,0 @@
1
- import type { InputProps } from 'antd';
2
- import type { FormInstance } from 'antd/es/form/Form';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface ProFieldType<T = any> {
5
- from?: FormInstance<T>;
6
- label?: string;
7
- name?: string;
8
- disabled?: boolean;
9
- fieldName?: string;
10
- placeholder?: string;
11
- }
12
- export interface Props extends InputProps, ProFieldType {
13
- otherProps?: ProFormOtherType;
14
- isView?: boolean;
15
- /** 脱敏数据位置下标 */
16
- desensitization?: [number, number];
17
- }
18
- /**
19
- * 兼容旧命名导出
20
- */
21
- export type ProFieldProps<T = any> = ProFieldType<T>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { InputNumberProps } from 'antd';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props extends Omit<InputNumberProps, 'onBlur'> {
5
- otherProps?: ProFormOtherType;
6
- range?: string;
7
- onBlur?: (value?: number, record?: any, object?: any) => void;
8
- isView?: boolean;
9
- }
10
- declare const InputNumber: React.FC<Props>;
11
- export default InputNumber;
@@ -1,15 +0,0 @@
1
- import { RadioChangeEvent, RadioProps } from 'antd';
2
- import React from 'react';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props extends Omit<RadioProps, 'options' | 'onChange'> {
5
- dataSource: any[];
6
- onChange: (value: any, e: RadioChangeEvent) => void;
7
- fieldNames?: {
8
- label: string;
9
- value: string;
10
- };
11
- otherProps?: ProFormOtherType;
12
- isView?: boolean;
13
- }
14
- declare const Radio: React.FC<Props>;
15
- export default Radio;
@@ -1,19 +0,0 @@
1
- import type { RangePickerProps } from 'antd/es/date-picker';
2
- import dayjs from 'dayjs';
3
- import React from 'react';
4
- import type { ProFormOtherType } from '../../../propsType';
5
- import { Props as RangeProps } from './useDateRange';
6
- export type Props = {
7
- otherProps?: ProFormOtherType;
8
- separator?: any;
9
- showTime?: any;
10
- isView?: boolean;
11
- range?: RangeProps['range'];
12
- /** 预设日期范围快捷选项 */
13
- presets?: Array<{
14
- label: React.ReactNode;
15
- value: [dayjs.Dayjs, dayjs.Dayjs] | (() => [dayjs.Dayjs, dayjs.Dayjs]);
16
- }>;
17
- } & Omit<RangePickerProps, 'separator'> & Omit<RangePickerProps, 'presets'>;
18
- declare const RangePicker: React.FC<Props>;
19
- export default RangePicker;
@@ -1,15 +0,0 @@
1
- import type { Dayjs } from 'dayjs';
2
- type unitOfTime = 'year' | 'years' | 'y' | 'month' | 'months' | 'M' | 'week' | 'weeks' | 'w' | 'day' | 'days' | 'd';
3
- export interface Props {
4
- value?: [Dayjs?, Dayjs?];
5
- range: [number, unitOfTime];
6
- disabledDate?: (date: Dayjs) => boolean;
7
- }
8
- /**
9
- * 支持传入时间范围作为起止期的间隔时间
10
- */
11
- export declare const useDateRange: (props: Props) => {
12
- onCalendarChange: (val?: [Dayjs?, Dayjs?]) => void;
13
- disabledDate: (current: Dayjs) => boolean;
14
- };
15
- export {};
@@ -1,11 +0,0 @@
1
- import { SelectProps } from 'antd';
2
- import React from 'react';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props extends SelectProps {
5
- dataSource?: any[];
6
- scrollFollowParent?: boolean;
7
- otherProps?: ProFormOtherType;
8
- isView?: boolean;
9
- }
10
- declare const Select: React.FC<Props>;
11
- export default Select;
@@ -1,10 +0,0 @@
1
- import { SwitchProps } from 'antd';
2
- import React from 'react';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props extends Omit<SwitchProps, 'value'> {
5
- value: any;
6
- otherProps?: ProFormOtherType;
7
- isView?: boolean;
8
- }
9
- declare const Switch: React.FC<Props>;
10
- export default Switch;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { CheckboxProps } from 'antd';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props extends CheckboxProps {
5
- label?: string;
6
- otherProps?: ProFormOtherType;
7
- isView?: boolean;
8
- }
9
- declare const SwitchCheckbox: React.FC<Props>;
10
- export default SwitchCheckbox;
@@ -1,11 +0,0 @@
1
- import { TextAreaProps } from 'antd/es/input';
2
- import React from 'react';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- import './index.less';
5
- export interface Props extends TextAreaProps {
6
- otherProps?: ProFormOtherType;
7
- isView?: boolean;
8
- tooltip?: boolean;
9
- }
10
- declare const TextAreaDef: React.FC<Props>;
11
- export default TextAreaDef;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { TimePickerProps } from 'antd';
3
- import type { ProFormOtherType } from '../../../propsType';
4
- export interface Props {
5
- valueType?: string;
6
- format?: string;
7
- onChange?: (value: string) => void;
8
- value?: string;
9
- otherProps?: ProFormOtherType;
10
- isView?: boolean;
11
- }
12
- declare const TimePicker: React.FC<Props & TimePickerProps>;
13
- export default TimePicker;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ContainerType } from './propsType';
3
- declare const Container: React.FC<ContainerType>;
4
- export default Container;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { RowProps } from 'antd';
3
- import type { ProFormColumnType, ProFormOtherType, DiffConfigType } from '../../../propsType';
4
- export interface ContainerType {
5
- children?: ProFormColumnType[];
6
- otherProps?: ProFormOtherType;
7
- rowProps?: RowProps;
8
- className?: string;
9
- container?: string | React.ReactNode;
10
- show?: boolean | (() => boolean);
11
- diffConfig?: DiffConfigType;
12
- clearNotShow?: boolean;
13
- }
@@ -1,24 +0,0 @@
1
- import { FormInstance, FormListFieldData, FormListOperation } from 'antd';
2
- import { InternalNamePath } from 'antd/es/form/interface';
3
- import React from 'react';
4
- import type { FormListType, ActionType, FormListMode } from '../propsType';
5
- export interface Props {
6
- min?: FormListType['min'];
7
- max?: FormListType['max'];
8
- actionProps: ActionType[];
9
- namePath: InternalNamePath;
10
- form: FormInstance;
11
- field: Omit<FormListFieldData, 'key'> & {
12
- key: string;
13
- };
14
- operation: FormListOperation;
15
- index: number;
16
- length: number;
17
- fields: FormListFieldData[];
18
- mode: FormListMode;
19
- disabled?: boolean;
20
- isView?: boolean;
21
- hideStartEndActionProps?: [boolean, boolean];
22
- }
23
- declare const ActionButton: React.FC<Props>;
24
- export default ActionButton;
@@ -1,23 +0,0 @@
1
- import { ColProps, FormListFieldData } from 'antd';
2
- import React from 'react';
3
- import { InternalNamePath } from 'antd/es/form/interface';
4
- import type { levelType } from '../../../../../ProLayout/components/ProCollapse/PropTypes';
5
- import type { FormListType } from '../propsType';
6
- import type { DiffConfigType } from '../../../../propsType';
7
- interface Props extends Omit<FormListType, 'toolbarProps'> {
8
- index: number;
9
- namePath: InternalNamePath;
10
- disabled?: boolean;
11
- isView?: boolean;
12
- colProps: ColProps;
13
- field: Omit<FormListFieldData, 'key'> & {
14
- key: string;
15
- };
16
- level?: levelType;
17
- towCollapse?: boolean;
18
- diffConfig?: DiffConfigType;
19
- hideStartEndActionProps?: [boolean, boolean];
20
- titlePosition?: 'top' | 'left';
21
- }
22
- declare const BlockFields: React.FC<Props>;
23
- export default BlockFields;
@@ -1,13 +0,0 @@
1
- import type { FormInstance, FormListOperation } from 'antd';
2
- import type { InternalNamePath } from 'antd/es/form/interface';
3
- import type { ToolbarActionType } from '../propsType';
4
- interface EmptyProps {
5
- disabled?: boolean;
6
- toolbarProps?: ToolbarActionType[] | false;
7
- operation?: FormListOperation;
8
- form?: FormInstance;
9
- namePath?: InternalNamePath;
10
- emptyBtnText?: string;
11
- }
12
- declare const Empty: ({ disabled, toolbarProps, operation, form, namePath, emptyBtnText }: EmptyProps) => import("react/jsx-runtime").JSX.Element;
13
- export default Empty;
@@ -1,20 +0,0 @@
1
- import { ColProps, FormListFieldData } from 'antd';
2
- import React from 'react';
3
- import { InternalNamePath } from 'antd/es/form/interface';
4
- import type { FormListType } from '../propsType';
5
- import type { DiffConfigType } from '../../../../propsType';
6
- interface Props extends Omit<FormListType, 'toolbarProps'> {
7
- className?: string;
8
- index: number;
9
- namePath: InternalNamePath;
10
- disabled?: boolean;
11
- isView?: boolean;
12
- colProps: ColProps;
13
- field: Omit<FormListFieldData, 'key'> & {
14
- key: string;
15
- };
16
- diffConfig?: DiffConfigType;
17
- hideStartEndActionProps?: [boolean, boolean];
18
- }
19
- declare const LineFields: React.FC<Props>;
20
- export default LineFields;
@@ -1,12 +0,0 @@
1
- import { InternalNamePath } from 'antd/es/form/interface';
2
- import React from 'react';
3
- import type { ToolbarActionType } from '../propsType';
4
- import { Props as ActionButtonProps } from './ActionButton';
5
- interface Props extends Omit<ActionButtonProps, 'actionProps' | 'field' | 'index' | 'mode' | 'namePath'> {
6
- toolbarProps: ToolbarActionType[];
7
- namePath: InternalNamePath;
8
- disabled?: boolean;
9
- isView?: boolean;
10
- }
11
- declare const ToolbarButton: React.FC<Props>;
12
- export default ToolbarButton;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { FormListRefType, FormListType } from './propsType';
3
- declare const _default: React.ForwardRefExoticComponent<FormListType & React.RefAttributes<FormListRefType>>;
4
- export default _default;
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
- import type { FormInstance } from 'antd/es/form/Form';
3
- import type { ButtonProps, FormListFieldData, FormListOperation, PopconfirmProps } from 'antd';
4
- import type { InternalNamePath } from 'antd/es/form/interface';
5
- import type { levelType } from '../../../../ProLayout/components/ProCollapse/PropTypes';
6
- import type { ProFormColumnType, ProFormOtherType } from '../../../propsType';
7
- export type TitleRender = (record: Record<string, any>, index: number, form: FormInstance) => any;
8
- export type TitleType = string | React.ReactNode | TitleRender;
9
- type Callback = (record: any, option: Pick<Option, 'namePath' | 'index' | 'operation' | 'form'>) => any | void;
10
- export type ToolbarCallback = (record: any, option: Pick<Option, 'index' | 'namePath' | 'form' | 'operation'>) => any | void;
11
- export interface Option {
12
- index: number | undefined;
13
- namePath: InternalNamePath;
14
- form: FormInstance;
15
- operation: FormListOperation;
16
- }
17
- export interface ActionType extends Omit<ButtonProps, 'onClick' | 'type'> {
18
- type?: 'add' | 'delete' | 'copy' | 'moveUp' | 'moveDown';
19
- onHandle?: Callback;
20
- onClick?: Callback;
21
- label?: string;
22
- needConfirm?: boolean;
23
- confirmProps?: boolean | PopconfirmProps;
24
- title?: string;
25
- show?: boolean | ((record: any, option: Pick<Option, 'index' | 'form' | 'namePath'>) => boolean);
26
- addIndex?: number | ((record: any, option: Pick<Option, 'index' | 'form' | 'namePath' | 'operation'>) => number);
27
- }
28
- export interface ToolbarActionType extends Omit<ActionType, 'actionType' | 'onHandle' | 'onClick' | 'show' | 'type'> {
29
- type?: 'add';
30
- onHandle?: ToolbarCallback;
31
- onClick?: ToolbarCallback;
32
- show?: boolean | ((record: any, option: Pick<Option, 'form' | 'namePath'>) => boolean);
33
- addIndex?: number | ((record: any, option: Pick<Option, 'index' | 'form' | 'namePath' | 'operation'>) => number);
34
- }
35
- export type FormListMode = 'block' | 'line' | 'less';
36
- export interface FormListType {
37
- columns: ProFormColumnType[];
38
- otherProps?: ProFormOtherType;
39
- form?: FormInstance;
40
- min?: number;
41
- max?: number;
42
- actionProps?: ActionType[] | false;
43
- toolbarProps?: ToolbarActionType[] | false;
44
- value?: any[];
45
- onChange?: (record: any[], option: Pick<Option, 'namePath' | 'form'>) => void;
46
- fields: FormListFieldData[];
47
- operation: FormListOperation;
48
- title?: string | TitleType;
49
- mode?: FormListMode;
50
- level?: levelType;
51
- disabled?: boolean;
52
- span?: number;
53
- towCollapse?: boolean;
54
- meta: {
55
- errors: React.ReactNode[];
56
- warnings: React.ReactNode[];
57
- };
58
- draggable?: boolean;
59
- id?: string;
60
- emptyBtnText?: string;
61
- hideStartEndActionProps?: [boolean, boolean];
62
- titlePosition?: 'top' | 'left';
63
- className?: string;
64
- }
65
- export type TypeWithRef = FormListType & React.RefAttributes<FormListRefType>;
66
- export interface FormListRefType {
67
- operation: FormListOperation;
68
- }
69
- export {};
@@ -1,18 +0,0 @@
1
- /**
2
- * 判断 Group 组件是否为传统模式(LegacyMode)
3
- * @param item column 配置项
4
- * @returns true 表示传统模式,false 表示灵活模式
5
- */
6
- export declare const isLegacyMode: (item: any) => boolean;
7
- /**
8
- * namesPath生产 [['list', 0, 'min'], ['list', 0, 'max']] => list_0_min-list_0_max
9
- * @param names name的集合
10
- * @param prefixNamePath formList的name前缀
11
- * @returns list_0_min-list_0_max
12
- */
13
- export declare const namesPathTransform: ({ names, prefixNamePath, type, }: {
14
- names: any[];
15
- prefixNamePath: any[];
16
- type: string;
17
- }) => string;
18
- export declare const memoWith: (pre: any, next: any) => boolean;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface Props {
4
- before?: React.ReactNode;
5
- after?: React.ReactNode;
6
- children?: React.ReactNode;
7
- }
8
- declare const AddonWrapper: React.FC<Props>;
9
- export default AddonWrapper;
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { NamePath } from 'antd/lib/form/interface';
3
- interface Props {
4
- type: string;
5
- component: React.ReactElement;
6
- value: any;
7
- onChange: any;
8
- disabled: any;
9
- confirm: any;
10
- fieldProps: any;
11
- contextProps: any;
12
- before?: React.ReactNode;
13
- after?: React.ReactNode;
14
- name?: NamePath;
15
- valueType: string;
16
- valuePropName?: string;
17
- isView?: boolean;
18
- getValueProps?: (value: any) => Record<string, unknown>;
19
- viewRender?: (props: any) => any;
20
- formItemClassName?: string;
21
- formItemStyle?: React.CSSProperties;
22
- dependencies?: NamePath[];
23
- required?: boolean;
24
- rules?: any[];
25
- }
26
- /** 渲染组件 */
27
- declare const ComRender: React.FC<Props>;
28
- export default ComRender;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { GroupType, FlexibleGroupColumnType } from '../propsType';
3
- interface FlexibleGroupProps extends Omit<GroupType, 'children'> {
4
- children: FlexibleGroupColumnType[];
5
- }
6
- /**
7
- * FlexibleGroup主组件
8
- */
9
- declare const FlexibleGroup: React.FC<FlexibleGroupProps>;
10
- export default FlexibleGroup;
@@ -1,34 +0,0 @@
1
- import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
2
- import { FormInstance } from 'antd';
3
- import type { GroupColumnType, GroupType, FlexibleGroupColumnType } from '../propsType';
4
- export type EventArgs = any[];
5
- interface ColumnsTransformerParams {
6
- columns: GroupColumnType[];
7
- name?: NamePath;
8
- names?: NamePath[];
9
- value?: any[];
10
- onChange: any;
11
- namePath?: InternalNamePath;
12
- form: FormInstance;
13
- index?: number;
14
- formDisabled?: boolean;
15
- groupProps: GroupType;
16
- }
17
- /** 转换columns */
18
- export declare const useTransformColumns: (params: ColumnsTransformerParams) => any[];
19
- /**
20
- * 检查子项是否应该显示(纯函数,不执行副作用)
21
- */
22
- export declare const checkShouldShow: (child: FlexibleGroupColumnType, form: FormInstance, namePath?: NamePath, index?: number) => boolean;
23
- interface UseResetProEditTableParams {
24
- children: FlexibleGroupColumnType[];
25
- form: FormInstance;
26
- namePath?: NamePath;
27
- source?: 'FormList' | 'ProEditTable';
28
- }
29
- /**
30
- * ProEditTable 场景下,当字段的 show 从 true 变为 false 时,自动重置字段值
31
- * 使用 useEffect 在副作用中执行重置,避免在渲染过程中调用 setState
32
- */
33
- export declare const useResetProEditTable: (params: UseResetProEditTableParams) => void;
34
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import type { GroupType } from './propsType';
3
- /**
4
- * Group组件 - 支持传统模式和灵活模式
5
- * - 有names属性 → 传统数组模式(保持向后兼容)
6
- * - 无names属性 → 新的灵活模式(子组件必须配置name)
7
- */
8
- declare const Group: React.FC<GroupType>;
9
- export default Group;
@@ -1,99 +0,0 @@
1
- import React from 'react';
2
- import { FormItemProps, ModalFuncProps, SpaceProps } from 'antd';
3
- import type { RuleObject } from 'antd/es/form';
4
- import { FormInstance } from 'antd/es/form/Form';
5
- import { NamePath } from 'antd/lib/form/interface';
6
- import type { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '../../render/propsType';
7
- export interface SpaceType extends SpaceProps {
8
- /**
9
- * 是否紧凑合并
10
- */
11
- compact?: Boolean;
12
- /**
13
- * 分隔符
14
- */
15
- separator?: string | React.ReactNode;
16
- /** 分隔符插入位置 */
17
- separatorIndex?: number | number[];
18
- /** 间隔距离 */
19
- size?: number;
20
- }
21
- export interface GroupType {
22
- children?: GroupColumnType[] | FlexibleGroupColumnType[];
23
- /** 传统模式:字段名称数组(与children索引对应) */
24
- names?: NamePath[];
25
- space?: SpaceType;
26
- className?: string;
27
- id?: string;
28
- disabled?: boolean;
29
- isView?: boolean;
30
- value?: any[];
31
- onChange?: (value: any[] | null, options?: any[]) => void;
32
- otherProps?: any;
33
- /** 分隔符 */
34
- separator?: string | React.ReactNode;
35
- /**
36
- * @deprecated 已弃用,请使用 separator 替代
37
- */
38
- split?: string | React.ReactNode;
39
- }
40
- export type GroupColumnType<Values = any> = {
41
- component?: React.ReactNode | ReactiveFunction<Values, React.ReactNode>;
42
- names?: NamePath[];
43
- show?: boolean | ReactiveFunction<Values, boolean>;
44
- valueType?: ProFormValueType;
45
- switchValue?: [any, any];
46
- isView?: boolean;
47
- viewRender?: (value: any, record: Values, { form, index, namePath, }: {
48
- form: FormInstance<Values>;
49
- index?: number | undefined;
50
- [key: string]: any;
51
- }) => React.ReactElement<any, any> | string | undefined | null;
52
- viewType?: ViewType;
53
- disabled?: boolean | ReactiveFunction<Values, boolean>;
54
- trim?: boolean;
55
- upperCase?: boolean;
56
- toISOString?: boolean;
57
- toCSTString?: boolean;
58
- clearNotShow?: boolean;
59
- confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps>;
60
- valuePropName?: string;
61
- getValueProps?: (value: any) => Record<string, unknown>;
62
- desensitization?: [number, number] | ReactiveFunction<Values, [number, number]>;
63
- } & ColumnTypeMap & FormItemProps;
64
- /**
65
- * 灵活模式子组件类型定义(新模式)
66
- */
67
- export interface FlexibleGroupColumnType<Values = any> extends Omit<GroupColumnType<Values>, 'names' | 'tooltip' | 'rules'> {
68
- /** 字段名称,新模式下必须 */
69
- name: NamePath;
70
- /** 字段标签 */
71
- label?: React.ReactNode;
72
- /** 校验规则,支持函数化 */
73
- rules?: RuleObject[] | ReactiveFunction<Values, RuleObject[]>;
74
- /** 是否必填 */
75
- required?: boolean;
76
- /** 字段依赖 */
77
- dependencies?: NamePath[];
78
- /** 提示信息 */
79
- tooltip?: string | {
80
- title: string;
81
- icon?: React.ReactNode;
82
- };
83
- /** 额外信息 */
84
- extra?: React.ReactNode;
85
- /** 前置内容 */
86
- before?: React.ReactNode;
87
- /** 后置内容 */
88
- after?: React.ReactNode;
89
- /** 确认操作 */
90
- confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps>;
91
- /** 显示控制,支持函数化 */
92
- show?: boolean | ReactiveFunction<Values, boolean>;
93
- /** 禁用状态,支持函数化 */
94
- disabled?: boolean | ReactiveFunction<Values, boolean>;
95
- /** 自定义组件,支持函数化 */
96
- component?: React.ReactNode | ReactiveFunction<Values, React.ReactNode>;
97
- /** 字段属性,支持函数化 */
98
- fieldProps?: any | ReactiveFunction<Values, any>;
99
- }