@teamix/pro 1.6.0-beta.6 → 2.0.0-beta.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 (742) hide show
  1. package/dist/pro.min.css +1 -1
  2. package/dist/pro.min.js +1 -2
  3. package/es/index-without-icon.d.ts +13 -13
  4. package/es/index-without-icon.js +31 -31
  5. package/es/index.d.ts +19 -32
  6. package/es/index.js +38 -36
  7. package/es/nocode/configurators/PageHeader.js +1 -1
  8. package/es/nocode/configurators/ProTable.js +1 -1
  9. package/es/nocode/configurators/index.js +1 -1
  10. package/es/nocode/configurators/map.js +3 -3
  11. package/es/nocode/index.js +8 -6
  12. package/es/nocode/pages/editor.d.ts +1 -0
  13. package/es/nocode/pages/editor.js +1 -1
  14. package/es/nocode/pages/index.js +7 -4
  15. package/es/nocode/pages/playground.js +9 -11
  16. package/es/nocode/pages/renderer.d.ts +2 -1
  17. package/es/nocode/pages/renderer.js +12 -12
  18. package/es/nocode/playground.js +5 -7
  19. package/es/templates/Detail/index.d.ts +1 -0
  20. package/es/templates/Detail/index.js +1 -1
  21. package/es/templates/Form/index.d.ts +1 -0
  22. package/es/templates/Form/index.js +1 -1
  23. package/es/templates/List/index.d.ts +7 -3
  24. package/es/templates/List/index.js +7 -9
  25. package/es/templates/index.js +3 -3
  26. package/es/xconsole.scss +0 -1
  27. package/lib/index-without-icon.d.ts +13 -13
  28. package/lib/index-without-icon.js +57 -57
  29. package/lib/index.d.ts +19 -32
  30. package/lib/index.js +58 -171
  31. package/lib/nocode/pages/editor.d.ts +1 -0
  32. package/lib/nocode/pages/index.js +1 -1
  33. package/lib/nocode/pages/playground.js +5 -7
  34. package/lib/nocode/pages/renderer.d.ts +2 -1
  35. package/lib/nocode/pages/renderer.js +12 -12
  36. package/lib/nocode/playground.js +4 -6
  37. package/lib/templates/Detail/index.d.ts +1 -0
  38. package/lib/templates/Form/index.d.ts +1 -0
  39. package/lib/templates/List/index.d.ts +7 -3
  40. package/lib/templates/List/index.js +6 -8
  41. package/lib/xconsole.scss +0 -1
  42. package/package.json +17 -6
  43. package/dist/pro.all.min.css +0 -1
  44. package/dist/pro.css +0 -1
  45. package/dist/pro.js +0 -120433
  46. package/dist/pro.min.js.LICENSE.txt +0 -56
  47. package/dist/pro.xconsole.min.css +0 -1
  48. package/es/actions/base.d.ts +0 -24
  49. package/es/actions/base.js +0 -64
  50. package/es/actions/confirm.d.ts +0 -7
  51. package/es/actions/confirm.js +0 -11
  52. package/es/actions/danger-confirm.d.ts +0 -7
  53. package/es/actions/danger-confirm.js +0 -14
  54. package/es/actions/danger-pop-confirm.d.ts +0 -5
  55. package/es/actions/danger-pop-confirm.js +0 -10
  56. package/es/actions/dialog-component.d.ts +0 -10
  57. package/es/actions/dialog-component.js +0 -19
  58. package/es/actions/dialog-form.d.ts +0 -29
  59. package/es/actions/dialog-form.js +0 -211
  60. package/es/actions/dialog-info.d.ts +0 -9
  61. package/es/actions/dialog-info.js +0 -19
  62. package/es/actions/dialog-table.d.ts +0 -9
  63. package/es/actions/dialog-table.js +0 -10
  64. package/es/actions/dialog.d.ts +0 -40
  65. package/es/actions/dialog.js +0 -223
  66. package/es/actions/drawer-form.d.ts +0 -6
  67. package/es/actions/drawer-form.js +0 -7
  68. package/es/actions/drawer-info.d.ts +0 -6
  69. package/es/actions/drawer-info.js +0 -7
  70. package/es/actions/drawer-table.d.ts +0 -6
  71. package/es/actions/drawer-table.js +0 -7
  72. package/es/actions/drawer.d.ts +0 -6
  73. package/es/actions/drawer.js +0 -7
  74. package/es/actions/error.d.ts +0 -7
  75. package/es/actions/error.js +0 -11
  76. package/es/actions/index.d.ts +0 -114
  77. package/es/actions/index.js +0 -438
  78. package/es/actions/index.scss +0 -145
  79. package/es/actions/link.d.ts +0 -8
  80. package/es/actions/link.js +0 -15
  81. package/es/actions/notice.d.ts +0 -7
  82. package/es/actions/notice.js +0 -11
  83. package/es/actions/pop-confirm.d.ts +0 -9
  84. package/es/actions/pop-confirm.js +0 -9
  85. package/es/actions/quick.d.ts +0 -2
  86. package/es/actions/quick.js +0 -26
  87. package/es/actions/request.d.ts +0 -9
  88. package/es/actions/request.js +0 -48
  89. package/es/actions/utils.d.ts +0 -1
  90. package/es/actions/utils.js +0 -19
  91. package/es/card/card-container.d.ts +0 -18
  92. package/es/card/card-container.js +0 -19
  93. package/es/card/divider.d.ts +0 -6
  94. package/es/card/divider.js +0 -11
  95. package/es/card/index.d.ts +0 -109
  96. package/es/card/index.js +0 -284
  97. package/es/card/index.scss +0 -313
  98. package/es/card/selectable.d.ts +0 -13
  99. package/es/card/selectable.js +0 -36
  100. package/es/card/tab.d.ts +0 -6
  101. package/es/card/tab.js +0 -18
  102. package/es/card/utils.d.ts +0 -9
  103. package/es/card/utils.js +0 -28
  104. package/es/card/xconsole.scss +0 -3
  105. package/es/field/index.d.ts +0 -3
  106. package/es/field/index.js +0 -3
  107. package/es/form/Components/Editable/index.d.ts +0 -20
  108. package/es/form/Components/Editable/index.js +0 -193
  109. package/es/form/Components/FormGroup/index.d.ts +0 -14
  110. package/es/form/Components/FormGroup/index.js +0 -78
  111. package/es/form/Components/FormGroup/index.scss +0 -23
  112. package/es/form/Components/FormItem2/animation.scss +0 -72
  113. package/es/form/Components/FormItem2/grid.scss +0 -173
  114. package/es/form/Components/FormItem2/index.d.ts +0 -41
  115. package/es/form/Components/FormItem2/index.js +0 -286
  116. package/es/form/Components/FormItem2/main.scss +0 -413
  117. package/es/form/Components/FormItem2/scss/variable.scss +0 -118
  118. package/es/form/Components/FormItem2/style.d.ts +0 -1
  119. package/es/form/Components/FormItem2/style.js +0 -1
  120. package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
  121. package/es/form/Components/LightFilter/componentMap.js +0 -7
  122. package/es/form/Components/LightFilter/index.d.ts +0 -17
  123. package/es/form/Components/LightFilter/index.js +0 -122
  124. package/es/form/Components/LightFilter/index.scss +0 -93
  125. package/es/form/Components/ProField/index.d.ts +0 -2
  126. package/es/form/Components/ProField/index.js +0 -31
  127. package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
  128. package/es/form/Components/ProField/mapDateFormat.js +0 -86
  129. package/es/form/Components/Text/index.d.ts +0 -8
  130. package/es/form/Components/Text/index.js +0 -20
  131. package/es/form/Components/Text/index.scss +0 -8
  132. package/es/form/Components/__builtins__/empty.d.ts +0 -1
  133. package/es/form/Components/__builtins__/empty.js +0 -51
  134. package/es/form/Components/__builtins__/hooks/index.d.ts +0 -2
  135. package/es/form/Components/__builtins__/hooks/index.js +0 -2
  136. package/es/form/Components/__builtins__/hooks/useClickAway.d.ts +0 -5
  137. package/es/form/Components/__builtins__/hooks/useClickAway.js +0 -37
  138. package/es/form/Components/__builtins__/hooks/usePrefixCls.d.ts +0 -3
  139. package/es/form/Components/__builtins__/hooks/usePrefixCls.js +0 -8
  140. package/es/form/Components/__builtins__/icons.d.ts +0 -20
  141. package/es/form/Components/__builtins__/icons.js +0 -153
  142. package/es/form/Components/__builtins__/index.d.ts +0 -8
  143. package/es/form/Components/__builtins__/index.js +0 -8
  144. package/es/form/Components/__builtins__/loading.d.ts +0 -1
  145. package/es/form/Components/__builtins__/loading.js +0 -41
  146. package/es/form/Components/__builtins__/mapSize.d.ts +0 -1
  147. package/es/form/Components/__builtins__/mapSize.js +0 -13
  148. package/es/form/Components/__builtins__/mapStatus.d.ts +0 -2
  149. package/es/form/Components/__builtins__/mapStatus.js +0 -20
  150. package/es/form/Components/__builtins__/moment.d.ts +0 -2
  151. package/es/form/Components/__builtins__/moment.js +0 -47
  152. package/es/form/Components/__builtins__/pickDataProps.d.ts +0 -1
  153. package/es/form/Components/__builtins__/pickDataProps.js +0 -9
  154. package/es/form/Components/form-layout/index.d.ts +0 -74
  155. package/es/form/Components/form-layout/index.js +0 -71
  156. package/es/form/Components/form-layout/main.scss +0 -0
  157. package/es/form/Components/form-layout/style.d.ts +0 -1
  158. package/es/form/Components/form-layout/style.js +0 -3
  159. package/es/form/Components/form-layout/useResponsiveFormLayout.d.ts +0 -18
  160. package/es/form/Components/form-layout/useResponsiveFormLayout.js +0 -87
  161. package/es/form/Filter/AdvancedFilter.d.ts +0 -7
  162. package/es/form/Filter/AdvancedFilter.js +0 -112
  163. package/es/form/Filter/Layout.d.ts +0 -5
  164. package/es/form/Filter/Layout.js +0 -68
  165. package/es/form/Filter/LightFilter.d.ts +0 -7
  166. package/es/form/Filter/LightFilter.js +0 -94
  167. package/es/form/Filter/SimpleFilter.d.ts +0 -7
  168. package/es/form/Filter/SimpleFilter.js +0 -88
  169. package/es/form/Filter/index.d.ts +0 -9
  170. package/es/form/Filter/index.js +0 -511
  171. package/es/form/Filter/index.scss +0 -48
  172. package/es/form/Filter/index2.d.ts +0 -13
  173. package/es/form/Filter/index2.js +0 -162
  174. package/es/form/Filter/index2.scss +0 -26
  175. package/es/form/Filter/layout.scss +0 -40
  176. package/es/form/Filter/useBindUrl.d.ts +0 -2
  177. package/es/form/Filter/useBindUrl.js +0 -90
  178. package/es/form/Filter/useSpecialProps.d.ts +0 -6
  179. package/es/form/Filter/useSpecialProps.js +0 -32
  180. package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
  181. package/es/form/ProForm/addCascadeEffect.js +0 -203
  182. package/es/form/ProForm/customComponent.d.ts +0 -3
  183. package/es/form/ProForm/customComponent.js +0 -16
  184. package/es/form/ProForm/index.d.ts +0 -5
  185. package/es/form/ProForm/index.js +0 -157
  186. package/es/form/ProForm/index.scss +0 -411
  187. package/es/form/ProForm/useAutoLayout.d.ts +0 -9
  188. package/es/form/ProForm/useAutoLayout.js +0 -93
  189. package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
  190. package/es/form/ProForm/useAutoSubmit.js +0 -23
  191. package/es/form/ProForm/useFieldRequest.d.ts +0 -5
  192. package/es/form/ProForm/useFieldRequest.js +0 -14
  193. package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
  194. package/es/form/ProForm/useFormDisplayValues.js +0 -78
  195. package/es/form/ProForm/useInitialRequest.d.ts +0 -6
  196. package/es/form/ProForm/useInitialRequest.js +0 -10
  197. package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
  198. package/es/form/SchemaForm/adapterComponent.js +0 -14
  199. package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
  200. package/es/form/SchemaForm/adapterDecorator.js +0 -20
  201. package/es/form/SchemaForm/adapterType.d.ts +0 -5
  202. package/es/form/SchemaForm/adapterType.js +0 -52
  203. package/es/form/SchemaForm/index.d.ts +0 -4
  204. package/es/form/SchemaForm/index.js +0 -209
  205. package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
  206. package/es/form/SchemaForm/initializeArrayCards.js +0 -18
  207. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
  208. package/es/form/SchemaForm/initializeArrayCollapse.js +0 -18
  209. package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
  210. package/es/form/SchemaForm/initializeArrayItems.js +0 -31
  211. package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
  212. package/es/form/SchemaForm/initializeArrayTable.js +0 -78
  213. package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
  214. package/es/form/SchemaForm/initializeDataSource.js +0 -19
  215. package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
  216. package/es/form/SchemaForm/initializeFormButton.js +0 -74
  217. package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
  218. package/es/form/SchemaForm/initializeFormCollapse.js +0 -33
  219. package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
  220. package/es/form/SchemaForm/initializeFormGroup.js +0 -36
  221. package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
  222. package/es/form/SchemaForm/initializeFormStep.js +0 -50
  223. package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
  224. package/es/form/SchemaForm/initializeFormTab.js +0 -43
  225. package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
  226. package/es/form/SchemaForm/initializeReactions.js +0 -65
  227. package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
  228. package/es/form/SchemaForm/initializeRequest.js +0 -38
  229. package/es/form/SchemaForm/initializeRules.d.ts +0 -11
  230. package/es/form/SchemaForm/initializeRules.js +0 -46
  231. package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
  232. package/es/form/SchemaForm/initializeSelectTable.js +0 -83
  233. package/es/form/SchemaForm/reactions.d.ts +0 -6
  234. package/es/form/SchemaForm/reactions.js +0 -88
  235. package/es/form/docs/ActionResponse.d.ts +0 -8
  236. package/es/form/docs/ActionResponse.js +0 -11
  237. package/es/form/docs/ActionResponse.less +0 -25
  238. package/es/form/fieldTypeMap.d.ts +0 -7
  239. package/es/form/fieldTypeMap.js +0 -46
  240. package/es/form/global.scss +0 -14
  241. package/es/form/index.d.ts +0 -125
  242. package/es/form/index.js +0 -44
  243. package/es/form/locales/validate.d.ts +0 -159
  244. package/es/form/locales/validate.js +0 -158
  245. package/es/form/schemaNameMap.d.ts +0 -5
  246. package/es/form/schemaNameMap.js +0 -50
  247. package/es/form/typing.d.ts +0 -194
  248. package/es/form/typing.js +0 -1
  249. package/es/form/utils/parseSchema.d.ts +0 -3
  250. package/es/form/utils/parseSchema.js +0 -38
  251. package/es/form/utils.d.ts +0 -55
  252. package/es/form/utils.js +0 -155
  253. package/es/form/warning.d.ts +0 -3
  254. package/es/form/warning.js +0 -11
  255. package/es/image/index.d.ts +0 -22
  256. package/es/image/index.js +0 -73
  257. package/es/image/index.scss +0 -3
  258. package/es/info/components/InfoGroup/index.d.ts +0 -5
  259. package/es/info/components/InfoGroup/index.js +0 -86
  260. package/es/info/components/InfoGroup/index.scss +0 -64
  261. package/es/info/components/InfoValueItem/index.d.ts +0 -5
  262. package/es/info/components/InfoValueItem/index.js +0 -302
  263. package/es/info/components/InfoValueItem/index.scss +0 -26
  264. package/es/info/components/ProInfoItem/index.d.ts +0 -5
  265. package/es/info/components/ProInfoItem/index.js +0 -92
  266. package/es/info/components/ProInfoItem/index.scss +0 -76
  267. package/es/info/components/baseInfo/index.d.ts +0 -8
  268. package/es/info/components/baseInfo/index.js +0 -95
  269. package/es/info/components/baseInfo/index.scss +0 -6
  270. package/es/info/components/headerInfo/index.d.ts +0 -8
  271. package/es/info/components/headerInfo/index.js +0 -68
  272. package/es/info/components/headerInfo/index.scss +0 -3
  273. package/es/info/components/tableInfo/index.d.ts +0 -7
  274. package/es/info/components/tableInfo/index.js +0 -154
  275. package/es/info/components/tableInfo/index.scss +0 -18
  276. package/es/info/index.d.ts +0 -6
  277. package/es/info/index.js +0 -182
  278. package/es/info/index.scss +0 -9
  279. package/es/info/typing.d.ts +0 -220
  280. package/es/info/typing.js +0 -1
  281. package/es/info/utils/index.d.ts +0 -20
  282. package/es/info/utils/index.js +0 -49
  283. package/es/info/utils/layout.d.ts +0 -2
  284. package/es/info/utils/layout.js +0 -58
  285. package/es/info/utils/utils.d.ts +0 -1
  286. package/es/info/utils/utils.js +0 -13
  287. package/es/layout/index.d.ts +0 -2
  288. package/es/layout/index.js +0 -3
  289. package/es/page-container/index.d.ts +0 -3
  290. package/es/page-container/index.js +0 -3
  291. package/es/page-header/index.d.ts +0 -74
  292. package/es/page-header/index.js +0 -218
  293. package/es/page-header/index.scss +0 -193
  294. package/es/page-header/xconsole.scss +0 -5
  295. package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
  296. package/es/sidebar/components/sidebar-container/index.js +0 -167
  297. package/es/sidebar/components/sidebar-container/index.scss +0 -73
  298. package/es/sidebar/components/tree/index.d.ts +0 -6
  299. package/es/sidebar/components/tree/index.js +0 -288
  300. package/es/sidebar/components/tree/index.scss +0 -10
  301. package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
  302. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -47
  303. package/es/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
  304. package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
  305. package/es/sidebar/components/tree-node/components/IconAction/index.js +0 -79
  306. package/es/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
  307. package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
  308. package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -60
  309. package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
  310. package/es/sidebar/components/tree-node/index.d.ts +0 -7
  311. package/es/sidebar/components/tree-node/index.js +0 -192
  312. package/es/sidebar/components/tree-node/index.scss +0 -68
  313. package/es/sidebar/index.d.ts +0 -9
  314. package/es/sidebar/index.js +0 -187
  315. package/es/sidebar/index.scss +0 -38
  316. package/es/sidebar/typing.d.ts +0 -145
  317. package/es/sidebar/typing.js +0 -1
  318. package/es/sidebar/utils/action-ref.d.ts +0 -3
  319. package/es/sidebar/utils/action-ref.js +0 -10
  320. package/es/sidebar/utils/index.d.ts +0 -364
  321. package/es/sidebar/utils/index.js +0 -277
  322. package/es/skeleton/index.d.ts +0 -3
  323. package/es/skeleton/index.js +0 -3
  324. package/es/table/components/CardView/index.d.ts +0 -5
  325. package/es/table/components/CardView/index.js +0 -387
  326. package/es/table/components/CardView/index.scss +0 -46
  327. package/es/table/components/EmptyContent/index.d.ts +0 -2
  328. package/es/table/components/EmptyContent/index.js +0 -11
  329. package/es/table/components/Filter/index.d.ts +0 -12
  330. package/es/table/components/Filter/index.js +0 -248
  331. package/es/table/components/Filter/index.scss +0 -27
  332. package/es/table/components/Layout/index.d.ts +0 -5
  333. package/es/table/components/Layout/index.js +0 -175
  334. package/es/table/components/Layout/index.scss +0 -48
  335. package/es/table/components/LoadMore/index.d.ts +0 -20
  336. package/es/table/components/LoadMore/index.js +0 -88
  337. package/es/table/components/LoadMore/index.scss +0 -19
  338. package/es/table/components/Pagination/index.d.ts +0 -8
  339. package/es/table/components/Pagination/index.js +0 -244
  340. package/es/table/components/Pagination/index.scss +0 -55
  341. package/es/table/components/QuickAction/index.d.ts +0 -11
  342. package/es/table/components/QuickAction/index.js +0 -45
  343. package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
  344. package/es/table/components/ToolBar/CardSwitch.js +0 -52
  345. package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
  346. package/es/table/components/ToolBar/DensityIcon.js +0 -107
  347. package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
  348. package/es/table/components/ToolBar/FilterColumnIcon.js +0 -362
  349. package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
  350. package/es/table/components/ToolBar/FullScreenIcon.js +0 -29
  351. package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
  352. package/es/table/components/ToolBar/Fullscreen.js +0 -100
  353. package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
  354. package/es/table/components/ToolBar/RefreshIcon.js +0 -180
  355. package/es/table/components/ToolBar/index.d.ts +0 -5
  356. package/es/table/components/ToolBar/index.js +0 -174
  357. package/es/table/components/ToolBar/index.scss +0 -177
  358. package/es/table/index.d.ts +0 -6
  359. package/es/table/index.js +0 -1154
  360. package/es/table/index.scss +0 -158
  361. package/es/table/typing.d.ts +0 -426
  362. package/es/table/typing.js +0 -1
  363. package/es/table/utils/columnRender.d.ts +0 -13
  364. package/es/table/utils/columnRender.js +0 -247
  365. package/es/table/utils/genProColumnToColumn.d.ts +0 -13
  366. package/es/table/utils/genProColumnToColumn.js +0 -51
  367. package/es/table/utils/getTableProps.d.ts +0 -2
  368. package/es/table/utils/getTableProps.js +0 -4
  369. package/es/table/utils/getTableSortIcons.d.ts +0 -3
  370. package/es/table/utils/getTableSortIcons.js +0 -21
  371. package/es/table/utils/index.d.ts +0 -19
  372. package/es/table/utils/index.js +0 -128
  373. package/es/table/utils/pureColumnRender.d.ts +0 -9
  374. package/es/table/utils/pureColumnRender.js +0 -169
  375. package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
  376. package/es/table/utils/pureGenProColumnToColumn.js +0 -28
  377. package/es/table/utils/useTableSelection.d.ts +0 -3
  378. package/es/table/utils/useTableSelection.js +0 -80
  379. package/es/table/utils/util.d.ts +0 -5
  380. package/es/table/utils/util.js +0 -19
  381. package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
  382. package/es/timeline/ProTimeLineItem/index.js +0 -245
  383. package/es/timeline/ProTimeLineItem/index.scss +0 -235
  384. package/es/timeline/index.d.ts +0 -10
  385. package/es/timeline/index.js +0 -63
  386. package/es/timeline/index.scss +0 -7
  387. package/es/timeline/typing.d.ts +0 -107
  388. package/es/timeline/typing.js +0 -1
  389. package/es/utils/aspect.d.ts +0 -2
  390. package/es/utils/aspect.js +0 -60
  391. package/es/utils/index.d.ts +0 -3
  392. package/es/utils/index.js +0 -3
  393. package/es/utils/message.d.ts +0 -3
  394. package/es/utils/message.js +0 -14
  395. package/lib/actions/base.d.ts +0 -24
  396. package/lib/actions/base.js +0 -72
  397. package/lib/actions/confirm.d.ts +0 -7
  398. package/lib/actions/confirm.js +0 -20
  399. package/lib/actions/danger-confirm.d.ts +0 -7
  400. package/lib/actions/danger-confirm.js +0 -23
  401. package/lib/actions/danger-pop-confirm.d.ts +0 -5
  402. package/lib/actions/danger-pop-confirm.js +0 -18
  403. package/lib/actions/dialog-component.d.ts +0 -10
  404. package/lib/actions/dialog-component.js +0 -28
  405. package/lib/actions/dialog-form.d.ts +0 -29
  406. package/lib/actions/dialog-form.js +0 -220
  407. package/lib/actions/dialog-info.d.ts +0 -9
  408. package/lib/actions/dialog-info.js +0 -28
  409. package/lib/actions/dialog-table.d.ts +0 -9
  410. package/lib/actions/dialog-table.js +0 -19
  411. package/lib/actions/dialog.d.ts +0 -40
  412. package/lib/actions/dialog.js +0 -232
  413. package/lib/actions/drawer-form.d.ts +0 -6
  414. package/lib/actions/drawer-form.js +0 -15
  415. package/lib/actions/drawer-info.d.ts +0 -6
  416. package/lib/actions/drawer-info.js +0 -15
  417. package/lib/actions/drawer-table.d.ts +0 -6
  418. package/lib/actions/drawer-table.js +0 -15
  419. package/lib/actions/drawer.d.ts +0 -6
  420. package/lib/actions/drawer.js +0 -16
  421. package/lib/actions/error.d.ts +0 -7
  422. package/lib/actions/error.js +0 -20
  423. package/lib/actions/index.d.ts +0 -114
  424. package/lib/actions/index.js +0 -476
  425. package/lib/actions/index.scss +0 -145
  426. package/lib/actions/link.d.ts +0 -8
  427. package/lib/actions/link.js +0 -21
  428. package/lib/actions/notice.d.ts +0 -7
  429. package/lib/actions/notice.js +0 -20
  430. package/lib/actions/pop-confirm.d.ts +0 -9
  431. package/lib/actions/pop-confirm.js +0 -18
  432. package/lib/actions/quick.d.ts +0 -2
  433. package/lib/actions/quick.js +0 -33
  434. package/lib/actions/request.d.ts +0 -9
  435. package/lib/actions/request.js +0 -55
  436. package/lib/actions/utils.d.ts +0 -1
  437. package/lib/actions/utils.js +0 -25
  438. package/lib/card/card-container.d.ts +0 -18
  439. package/lib/card/card-container.js +0 -28
  440. package/lib/card/divider.d.ts +0 -6
  441. package/lib/card/divider.js +0 -19
  442. package/lib/card/index.d.ts +0 -109
  443. package/lib/card/index.js +0 -310
  444. package/lib/card/index.scss +0 -313
  445. package/lib/card/selectable.d.ts +0 -13
  446. package/lib/card/selectable.js +0 -44
  447. package/lib/card/tab.d.ts +0 -6
  448. package/lib/card/tab.js +0 -26
  449. package/lib/card/utils.d.ts +0 -9
  450. package/lib/card/utils.js +0 -35
  451. package/lib/card/xconsole.scss +0 -3
  452. package/lib/field/index.d.ts +0 -3
  453. package/lib/field/index.js +0 -24
  454. package/lib/form/Components/Editable/index.d.ts +0 -20
  455. package/lib/form/Components/Editable/index.js +0 -205
  456. package/lib/form/Components/FormGroup/index.d.ts +0 -14
  457. package/lib/form/Components/FormGroup/index.js +0 -86
  458. package/lib/form/Components/FormGroup/index.scss +0 -23
  459. package/lib/form/Components/FormItem2/animation.scss +0 -72
  460. package/lib/form/Components/FormItem2/grid.scss +0 -173
  461. package/lib/form/Components/FormItem2/index.d.ts +0 -41
  462. package/lib/form/Components/FormItem2/index.js +0 -299
  463. package/lib/form/Components/FormItem2/main.scss +0 -413
  464. package/lib/form/Components/FormItem2/scss/variable.scss +0 -118
  465. package/lib/form/Components/FormItem2/style.d.ts +0 -1
  466. package/lib/form/Components/FormItem2/style.js +0 -3
  467. package/lib/form/Components/LightFilter/componentMap.d.ts +0 -3
  468. package/lib/form/Components/LightFilter/componentMap.js +0 -14
  469. package/lib/form/Components/LightFilter/index.d.ts +0 -17
  470. package/lib/form/Components/LightFilter/index.js +0 -133
  471. package/lib/form/Components/LightFilter/index.scss +0 -93
  472. package/lib/form/Components/ProField/index.d.ts +0 -2
  473. package/lib/form/Components/ProField/index.js +0 -39
  474. package/lib/form/Components/ProField/mapDateFormat.d.ts +0 -3
  475. package/lib/form/Components/ProField/mapDateFormat.js +0 -94
  476. package/lib/form/Components/Text/index.d.ts +0 -8
  477. package/lib/form/Components/Text/index.js +0 -28
  478. package/lib/form/Components/Text/index.scss +0 -8
  479. package/lib/form/Components/__builtins__/empty.d.ts +0 -1
  480. package/lib/form/Components/__builtins__/empty.js +0 -59
  481. package/lib/form/Components/__builtins__/hooks/index.d.ts +0 -2
  482. package/lib/form/Components/__builtins__/hooks/index.js +0 -27
  483. package/lib/form/Components/__builtins__/hooks/useClickAway.d.ts +0 -5
  484. package/lib/form/Components/__builtins__/hooks/useClickAway.js +0 -44
  485. package/lib/form/Components/__builtins__/hooks/usePrefixCls.d.ts +0 -3
  486. package/lib/form/Components/__builtins__/hooks/usePrefixCls.js +0 -15
  487. package/lib/form/Components/__builtins__/icons.d.ts +0 -20
  488. package/lib/form/Components/__builtins__/icons.js +0 -174
  489. package/lib/form/Components/__builtins__/index.d.ts +0 -8
  490. package/lib/form/Components/__builtins__/index.js +0 -93
  491. package/lib/form/Components/__builtins__/loading.d.ts +0 -1
  492. package/lib/form/Components/__builtins__/loading.js +0 -48
  493. package/lib/form/Components/__builtins__/mapSize.d.ts +0 -1
  494. package/lib/form/Components/__builtins__/mapSize.js +0 -20
  495. package/lib/form/Components/__builtins__/mapStatus.d.ts +0 -2
  496. package/lib/form/Components/__builtins__/mapStatus.js +0 -27
  497. package/lib/form/Components/__builtins__/moment.d.ts +0 -2
  498. package/lib/form/Components/__builtins__/moment.js +0 -56
  499. package/lib/form/Components/__builtins__/pickDataProps.d.ts +0 -1
  500. package/lib/form/Components/__builtins__/pickDataProps.js +0 -16
  501. package/lib/form/Components/form-layout/index.d.ts +0 -74
  502. package/lib/form/Components/form-layout/index.js +0 -88
  503. package/lib/form/Components/form-layout/main.scss +0 -0
  504. package/lib/form/Components/form-layout/style.d.ts +0 -1
  505. package/lib/form/Components/form-layout/style.js +0 -3
  506. package/lib/form/Components/form-layout/useResponsiveFormLayout.d.ts +0 -18
  507. package/lib/form/Components/form-layout/useResponsiveFormLayout.js +0 -94
  508. package/lib/form/Filter/AdvancedFilter.d.ts +0 -7
  509. package/lib/form/Filter/AdvancedFilter.js +0 -123
  510. package/lib/form/Filter/Layout.d.ts +0 -5
  511. package/lib/form/Filter/Layout.js +0 -78
  512. package/lib/form/Filter/LightFilter.d.ts +0 -7
  513. package/lib/form/Filter/LightFilter.js +0 -105
  514. package/lib/form/Filter/SimpleFilter.d.ts +0 -7
  515. package/lib/form/Filter/SimpleFilter.js +0 -99
  516. package/lib/form/Filter/index.d.ts +0 -9
  517. package/lib/form/Filter/index.js +0 -526
  518. package/lib/form/Filter/index.scss +0 -48
  519. package/lib/form/Filter/index2.d.ts +0 -13
  520. package/lib/form/Filter/index2.js +0 -174
  521. package/lib/form/Filter/index2.scss +0 -26
  522. package/lib/form/Filter/layout.scss +0 -40
  523. package/lib/form/Filter/useBindUrl.d.ts +0 -2
  524. package/lib/form/Filter/useBindUrl.js +0 -97
  525. package/lib/form/Filter/useSpecialProps.d.ts +0 -6
  526. package/lib/form/Filter/useSpecialProps.js +0 -39
  527. package/lib/form/ProForm/addCascadeEffect.d.ts +0 -2
  528. package/lib/form/ProForm/addCascadeEffect.js +0 -210
  529. package/lib/form/ProForm/customComponent.d.ts +0 -3
  530. package/lib/form/ProForm/customComponent.js +0 -22
  531. package/lib/form/ProForm/index.d.ts +0 -5
  532. package/lib/form/ProForm/index.js +0 -168
  533. package/lib/form/ProForm/index.scss +0 -411
  534. package/lib/form/ProForm/useAutoLayout.d.ts +0 -9
  535. package/lib/form/ProForm/useAutoLayout.js +0 -100
  536. package/lib/form/ProForm/useAutoSubmit.d.ts +0 -6
  537. package/lib/form/ProForm/useAutoSubmit.js +0 -28
  538. package/lib/form/ProForm/useFieldRequest.d.ts +0 -5
  539. package/lib/form/ProForm/useFieldRequest.js +0 -21
  540. package/lib/form/ProForm/useFormDisplayValues.d.ts +0 -4
  541. package/lib/form/ProForm/useFormDisplayValues.js +0 -86
  542. package/lib/form/ProForm/useInitialRequest.d.ts +0 -6
  543. package/lib/form/ProForm/useInitialRequest.js +0 -17
  544. package/lib/form/SchemaForm/adapterComponent.d.ts +0 -5
  545. package/lib/form/SchemaForm/adapterComponent.js +0 -21
  546. package/lib/form/SchemaForm/adapterDecorator.d.ts +0 -6
  547. package/lib/form/SchemaForm/adapterDecorator.js +0 -24
  548. package/lib/form/SchemaForm/adapterType.d.ts +0 -5
  549. package/lib/form/SchemaForm/adapterType.js +0 -59
  550. package/lib/form/SchemaForm/index.d.ts +0 -4
  551. package/lib/form/SchemaForm/index.js +0 -220
  552. package/lib/form/SchemaForm/initializeArrayCards.d.ts +0 -3
  553. package/lib/form/SchemaForm/initializeArrayCards.js +0 -25
  554. package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
  555. package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -25
  556. package/lib/form/SchemaForm/initializeArrayItems.d.ts +0 -3
  557. package/lib/form/SchemaForm/initializeArrayItems.js +0 -38
  558. package/lib/form/SchemaForm/initializeArrayTable.d.ts +0 -3
  559. package/lib/form/SchemaForm/initializeArrayTable.js +0 -85
  560. package/lib/form/SchemaForm/initializeDataSource.d.ts +0 -15
  561. package/lib/form/SchemaForm/initializeDataSource.js +0 -26
  562. package/lib/form/SchemaForm/initializeFormButton.d.ts +0 -3
  563. package/lib/form/SchemaForm/initializeFormButton.js +0 -81
  564. package/lib/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
  565. package/lib/form/SchemaForm/initializeFormCollapse.js +0 -40
  566. package/lib/form/SchemaForm/initializeFormGroup.d.ts +0 -3
  567. package/lib/form/SchemaForm/initializeFormGroup.js +0 -43
  568. package/lib/form/SchemaForm/initializeFormStep.d.ts +0 -5
  569. package/lib/form/SchemaForm/initializeFormStep.js +0 -57
  570. package/lib/form/SchemaForm/initializeFormTab.d.ts +0 -3
  571. package/lib/form/SchemaForm/initializeFormTab.js +0 -50
  572. package/lib/form/SchemaForm/initializeReactions.d.ts +0 -2
  573. package/lib/form/SchemaForm/initializeReactions.js +0 -73
  574. package/lib/form/SchemaForm/initializeRequest.d.ts +0 -11
  575. package/lib/form/SchemaForm/initializeRequest.js +0 -45
  576. package/lib/form/SchemaForm/initializeRules.d.ts +0 -11
  577. package/lib/form/SchemaForm/initializeRules.js +0 -53
  578. package/lib/form/SchemaForm/initializeSelectTable.d.ts +0 -3
  579. package/lib/form/SchemaForm/initializeSelectTable.js +0 -91
  580. package/lib/form/SchemaForm/reactions.d.ts +0 -6
  581. package/lib/form/SchemaForm/reactions.js +0 -97
  582. package/lib/form/docs/ActionResponse.d.ts +0 -8
  583. package/lib/form/docs/ActionResponse.js +0 -19
  584. package/lib/form/docs/ActionResponse.less +0 -25
  585. package/lib/form/fieldTypeMap.d.ts +0 -7
  586. package/lib/form/fieldTypeMap.js +0 -54
  587. package/lib/form/global.scss +0 -14
  588. package/lib/form/index.d.ts +0 -125
  589. package/lib/form/index.js +0 -171
  590. package/lib/form/locales/validate.d.ts +0 -159
  591. package/lib/form/locales/validate.js +0 -165
  592. package/lib/form/schemaNameMap.d.ts +0 -5
  593. package/lib/form/schemaNameMap.js +0 -57
  594. package/lib/form/typing.d.ts +0 -194
  595. package/lib/form/typing.js +0 -5
  596. package/lib/form/utils/parseSchema.d.ts +0 -3
  597. package/lib/form/utils/parseSchema.js +0 -45
  598. package/lib/form/utils.d.ts +0 -55
  599. package/lib/form/utils.js +0 -169
  600. package/lib/form/warning.d.ts +0 -3
  601. package/lib/form/warning.js +0 -18
  602. package/lib/image/index.d.ts +0 -22
  603. package/lib/image/index.js +0 -83
  604. package/lib/image/index.scss +0 -3
  605. package/lib/info/components/InfoGroup/index.d.ts +0 -5
  606. package/lib/info/components/InfoGroup/index.js +0 -97
  607. package/lib/info/components/InfoGroup/index.scss +0 -64
  608. package/lib/info/components/InfoValueItem/index.d.ts +0 -5
  609. package/lib/info/components/InfoValueItem/index.js +0 -313
  610. package/lib/info/components/InfoValueItem/index.scss +0 -26
  611. package/lib/info/components/ProInfoItem/index.d.ts +0 -5
  612. package/lib/info/components/ProInfoItem/index.js +0 -100
  613. package/lib/info/components/ProInfoItem/index.scss +0 -76
  614. package/lib/info/components/baseInfo/index.d.ts +0 -8
  615. package/lib/info/components/baseInfo/index.js +0 -103
  616. package/lib/info/components/baseInfo/index.scss +0 -6
  617. package/lib/info/components/headerInfo/index.d.ts +0 -8
  618. package/lib/info/components/headerInfo/index.js +0 -76
  619. package/lib/info/components/headerInfo/index.scss +0 -3
  620. package/lib/info/components/tableInfo/index.d.ts +0 -7
  621. package/lib/info/components/tableInfo/index.js +0 -164
  622. package/lib/info/components/tableInfo/index.scss +0 -18
  623. package/lib/info/index.d.ts +0 -6
  624. package/lib/info/index.js +0 -205
  625. package/lib/info/index.scss +0 -9
  626. package/lib/info/typing.d.ts +0 -220
  627. package/lib/info/typing.js +0 -5
  628. package/lib/info/utils/index.d.ts +0 -20
  629. package/lib/info/utils/index.js +0 -60
  630. package/lib/info/utils/layout.d.ts +0 -2
  631. package/lib/info/utils/layout.js +0 -65
  632. package/lib/info/utils/utils.d.ts +0 -1
  633. package/lib/info/utils/utils.js +0 -19
  634. package/lib/layout/index.d.ts +0 -2
  635. package/lib/layout/index.js +0 -10
  636. package/lib/page-container/index.d.ts +0 -3
  637. package/lib/page-container/index.js +0 -24
  638. package/lib/page-header/index.d.ts +0 -74
  639. package/lib/page-header/index.js +0 -224
  640. package/lib/page-header/index.scss +0 -193
  641. package/lib/page-header/xconsole.scss +0 -5
  642. package/lib/sidebar/components/sidebar-container/index.d.ts +0 -5
  643. package/lib/sidebar/components/sidebar-container/index.js +0 -178
  644. package/lib/sidebar/components/sidebar-container/index.scss +0 -73
  645. package/lib/sidebar/components/tree/index.d.ts +0 -6
  646. package/lib/sidebar/components/tree/index.js +0 -298
  647. package/lib/sidebar/components/tree/index.scss +0 -10
  648. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
  649. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -57
  650. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
  651. package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
  652. package/lib/sidebar/components/tree-node/components/IconAction/index.js +0 -90
  653. package/lib/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
  654. package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
  655. package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -71
  656. package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
  657. package/lib/sidebar/components/tree-node/index.d.ts +0 -7
  658. package/lib/sidebar/components/tree-node/index.js +0 -204
  659. package/lib/sidebar/components/tree-node/index.scss +0 -68
  660. package/lib/sidebar/index.d.ts +0 -9
  661. package/lib/sidebar/index.js +0 -228
  662. package/lib/sidebar/index.scss +0 -38
  663. package/lib/sidebar/typing.d.ts +0 -145
  664. package/lib/sidebar/typing.js +0 -5
  665. package/lib/sidebar/utils/action-ref.d.ts +0 -3
  666. package/lib/sidebar/utils/action-ref.js +0 -16
  667. package/lib/sidebar/utils/index.d.ts +0 -364
  668. package/lib/sidebar/utils/index.js +0 -291
  669. package/lib/skeleton/index.d.ts +0 -3
  670. package/lib/skeleton/index.js +0 -24
  671. package/lib/table/components/CardView/index.d.ts +0 -5
  672. package/lib/table/components/CardView/index.js +0 -397
  673. package/lib/table/components/CardView/index.scss +0 -46
  674. package/lib/table/components/EmptyContent/index.d.ts +0 -2
  675. package/lib/table/components/EmptyContent/index.js +0 -19
  676. package/lib/table/components/Filter/index.d.ts +0 -12
  677. package/lib/table/components/Filter/index.js +0 -258
  678. package/lib/table/components/Filter/index.scss +0 -27
  679. package/lib/table/components/Layout/index.d.ts +0 -5
  680. package/lib/table/components/Layout/index.js +0 -185
  681. package/lib/table/components/Layout/index.scss +0 -48
  682. package/lib/table/components/LoadMore/index.d.ts +0 -20
  683. package/lib/table/components/LoadMore/index.js +0 -99
  684. package/lib/table/components/LoadMore/index.scss +0 -19
  685. package/lib/table/components/Pagination/index.d.ts +0 -8
  686. package/lib/table/components/Pagination/index.js +0 -253
  687. package/lib/table/components/Pagination/index.scss +0 -55
  688. package/lib/table/components/QuickAction/index.d.ts +0 -11
  689. package/lib/table/components/QuickAction/index.js +0 -53
  690. package/lib/table/components/ToolBar/CardSwitch.d.ts +0 -8
  691. package/lib/table/components/ToolBar/CardSwitch.js +0 -60
  692. package/lib/table/components/ToolBar/DensityIcon.d.ts +0 -4
  693. package/lib/table/components/ToolBar/DensityIcon.js +0 -114
  694. package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
  695. package/lib/table/components/ToolBar/FilterColumnIcon.js +0 -370
  696. package/lib/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
  697. package/lib/table/components/ToolBar/FullScreenIcon.js +0 -38
  698. package/lib/table/components/ToolBar/Fullscreen.d.ts +0 -10
  699. package/lib/table/components/ToolBar/Fullscreen.js +0 -110
  700. package/lib/table/components/ToolBar/RefreshIcon.d.ts +0 -4
  701. package/lib/table/components/ToolBar/RefreshIcon.js +0 -188
  702. package/lib/table/components/ToolBar/index.d.ts +0 -5
  703. package/lib/table/components/ToolBar/index.js +0 -185
  704. package/lib/table/components/ToolBar/index.scss +0 -177
  705. package/lib/table/index.d.ts +0 -6
  706. package/lib/table/index.js +0 -1176
  707. package/lib/table/index.scss +0 -158
  708. package/lib/table/typing.d.ts +0 -426
  709. package/lib/table/typing.js +0 -5
  710. package/lib/table/utils/columnRender.d.ts +0 -13
  711. package/lib/table/utils/columnRender.js +0 -256
  712. package/lib/table/utils/genProColumnToColumn.d.ts +0 -13
  713. package/lib/table/utils/genProColumnToColumn.js +0 -58
  714. package/lib/table/utils/getTableProps.d.ts +0 -2
  715. package/lib/table/utils/getTableProps.js +0 -11
  716. package/lib/table/utils/getTableSortIcons.d.ts +0 -3
  717. package/lib/table/utils/getTableSortIcons.js +0 -29
  718. package/lib/table/utils/index.d.ts +0 -19
  719. package/lib/table/utils/index.js +0 -142
  720. package/lib/table/utils/pureColumnRender.d.ts +0 -9
  721. package/lib/table/utils/pureColumnRender.js +0 -178
  722. package/lib/table/utils/pureGenProColumnToColumn.d.ts +0 -7
  723. package/lib/table/utils/pureGenProColumnToColumn.js +0 -34
  724. package/lib/table/utils/useTableSelection.d.ts +0 -3
  725. package/lib/table/utils/useTableSelection.js +0 -83
  726. package/lib/table/utils/util.d.ts +0 -5
  727. package/lib/table/utils/util.js +0 -25
  728. package/lib/timeline/ProTimeLineItem/index.d.ts +0 -5
  729. package/lib/timeline/ProTimeLineItem/index.js +0 -255
  730. package/lib/timeline/ProTimeLineItem/index.scss +0 -235
  731. package/lib/timeline/index.d.ts +0 -10
  732. package/lib/timeline/index.js +0 -79
  733. package/lib/timeline/index.scss +0 -7
  734. package/lib/timeline/typing.d.ts +0 -107
  735. package/lib/timeline/typing.js +0 -5
  736. package/lib/utils/aspect.d.ts +0 -2
  737. package/lib/utils/aspect.js +0 -67
  738. package/lib/utils/index.d.ts +0 -3
  739. package/lib/utils/index.js +0 -24
  740. package/lib/utils/message.d.ts +0 -3
  741. package/lib/utils/message.js +0 -22
  742. /package/dist/{fonts/txddinmedium.woff → static/txddinmedium.df41cfe2.woff} +0 -0
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useConfirmAction = useConfirmAction;
8
- var _utils = require("@teamix/utils");
9
- var _dialog = _interopRequireDefault(require("./dialog"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function useConfirmAction(action, context) {
12
- return (0, _dialog.default)((0, _utils.deepMerge)({
13
- dialogQuickShowType: 'confirm',
14
- messageProps: {
15
- type: 'warning'
16
- }
17
- }, action), context);
18
- }
19
- var _default = useConfirmAction;
20
- exports.default = _default;
@@ -1,7 +0,0 @@
1
- import { DialogAction } from './dialog';
2
- export interface DangerConfirmAction extends DialogAction {
3
- }
4
- export declare function useDangerConfirmAction(action: DialogAction, context?: any): {
5
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
- };
7
- export default useDangerConfirmAction;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useDangerConfirmAction = useDangerConfirmAction;
8
- var _utils = require("@teamix/utils");
9
- var _dialog = _interopRequireDefault(require("./dialog"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function useDangerConfirmAction(action, context) {
12
- return (0, _dialog.default)((0, _utils.deepMerge)({
13
- dialogQuickShowType: 'confirm',
14
- messageProps: {
15
- type: 'warning'
16
- },
17
- okProps: {
18
- warning: true
19
- }
20
- }, action), context);
21
- }
22
- var _default = useDangerConfirmAction;
23
- exports.default = _default;
@@ -1,5 +0,0 @@
1
- import { PopConfirmAction } from './pop-confirm';
2
- export declare function useDangerPopConfirmAction(action: PopConfirmAction, context?: any): {
3
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
4
- };
5
- export default useDangerPopConfirmAction;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useDangerPopConfirmAction = useDangerPopConfirmAction;
8
- var _utils = require("@teamix/utils");
9
- var _dialog = require("./dialog");
10
- function useDangerPopConfirmAction(action, context) {
11
- return (0, _dialog.useDialogAction)((0, _utils.deepMerge)({
12
- dialogType: 'pop',
13
- popType: 'danger',
14
- align: 'br'
15
- }, action), context);
16
- }
17
- var _default = useDangerPopConfirmAction;
18
- exports.default = _default;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { DialogAction } from './dialog';
3
- export interface DialogComponentAction extends DialogAction {
4
- schema: any;
5
- component: React.FC<any>;
6
- }
7
- export declare function useDialogComponentAction(action: DialogComponentAction, context?: any): {
8
- [x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
9
- };
10
- export default useDialogComponentAction;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useDialogComponentAction = useDialogComponentAction;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _dialog = _interopRequireDefault(require("./dialog"));
10
- var _utils = require("./utils");
11
- var _excluded = ["schema", "component"];
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
17
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18
- function useDialogComponentAction(action, context) {
19
- var schema = action.schema,
20
- Component = action.component,
21
- others = _objectWithoutProperties(action, _excluded);
22
- return (0, _dialog.default)(Object.assign({
23
- content: /*#__PURE__*/_react.default.createElement(Component, _objectSpread({}, (0, _utils.addContext)(schema, context))),
24
- closeable: true
25
- }, others), context);
26
- }
27
- var _default = useDialogComponentAction;
28
- exports.default = _default;
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { ProFormProps, ProFormSchema, ProFormType } from '../form';
3
- import { RequestAction } from './request';
4
- import { DialogAction } from './dialog';
5
- export interface DialogFormAction extends DialogAction {
6
- /** 表单初始值 */
7
- initialValues?: any;
8
- /** 表单初始化数据请求 */
9
- initialRequest?: RequestAction;
10
- /** 表单提交发送数据请求时,是否携带全部表单数据。默认携带 */
11
- useFieldValuesForRequest?: boolean;
12
- /**
13
- * @deprecated 建议使用 schema 配置 ProFormProps 代替
14
- */
15
- formProps?: Omit<ProFormProps, 'schema' | 'form'>;
16
- /** 同时支持两种配置方式:
17
- * 如果想完整定制表单,可使用完整的表单配置项 ProFormProps,但不可以传 form 字段,可以通过 formRef 获取内部 form 实例。
18
- * 否则可以只配置 ProFormSchema
19
- */
20
- schema: ProFormSchema | Omit<ProFormProps, 'form'>;
21
- /** 外部传来的 formRef,用于获取内置 form 实例 */
22
- formRef?: React.MutableRefObject<ProFormType | undefined>;
23
- /** 是否开启懒惰校验,只校验第一个非法规则,默认开启 */
24
- validateFirst?: boolean;
25
- }
26
- export declare function useDialogFormAction(action: DialogFormAction, context?: any): {
27
- [x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
28
- };
29
- export default useDialogFormAction;
@@ -1,220 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useDialogFormAction = useDialogFormAction;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _utils = require("@teamix/utils");
10
- var _components = require("@alicloudfe/components");
11
- var _form = _interopRequireWildcard(require("../form"));
12
- var _request = require("./request");
13
- var _dialog = _interopRequireDefault(require("./dialog"));
14
- var _utils2 = require("./utils");
15
- var _excluded = ["schema"],
16
- _excluded2 = ["schema", "useFieldValuesForRequest", "initialValues", "initialRequest", "formProps", "size", "onFinish", "beforeRequest", "formRef", "extendParams"];
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
21
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
22
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
23
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
24
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
26
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
27
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
28
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
29
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
- 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; }
31
- 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; }
32
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
33
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
- var toJS = _form.formilyReactive.toJS;
36
- function getDefaultFormPropsByDialogSize(size) {
37
- if (size === 'small') {
38
- return {
39
- layout: 'horizontal',
40
- labelCol: 6,
41
- wrapperCol: 18
42
- };
43
- }
44
- if (size === 'medium') {
45
- return {
46
- layout: 'horizontal',
47
- labelCol: 6,
48
- wrapperCol: 18
49
- };
50
- }
51
- if (size === 'large') {
52
- return {
53
- layout: 'horizontal',
54
- labelCol: 4,
55
- wrapperCol: 12
56
- };
57
- }
58
- return {
59
- layout: 'vertical',
60
- labelCol: 24,
61
- wrapperCol: 24
62
- };
63
- }
64
- function getSchemaAndFormProps(schema, formProps) {
65
- if (schema instanceof Array) {
66
- return _objectSpread({
67
- schema: schema
68
- }, formProps);
69
- }
70
- var formSchema = schema;
71
- return formSchema;
72
- }
73
- var DialogForm = function DialogForm(props) {
74
- var initialValues = props.initialValues,
75
- initialRequest = props.initialRequest,
76
- _props$size = props.size,
77
- size = _props$size === void 0 ? 'small' : _props$size,
78
- schema = props.schema,
79
- formProps = props.formProps,
80
- context = props.context,
81
- formRef = props.formRef,
82
- innerFormRef = props.innerFormRef,
83
- _props$validateFirst = props.validateFirst,
84
- validateFirst = _props$validateFirst === void 0 ? true : _props$validateFirst;
85
- var form = (0, _react.useMemo)(function () {
86
- return (0, _form.createForm)({
87
- initialValues: (0, _utils.getTargetValue)(initialValues, context),
88
- validateFirst: validateFirst
89
- });
90
- }, [validateFirst, initialValues, context]);
91
- var _useMemo = (0, _react.useMemo)(function () {
92
- return getSchemaAndFormProps(schema, formProps);
93
- }, [schema, formProps]),
94
- formSchema = _useMemo.schema,
95
- others = _objectWithoutProperties(_useMemo, _excluded);
96
- var otherFormProps = (0, _react.useMemo)(function () {
97
- return (0, _utils2.addContext)((0, _utils.getTargetValue)(others, context), context);
98
- }, [context, JSON.stringify(others)]);
99
- var _useState = (0, _react.useState)(false),
100
- _useState2 = _slicedToArray(_useState, 2),
101
- loading = _useState2[0],
102
- setLoading = _useState2[1];
103
- var history = (0, _utils.useRealHistory)();
104
- (0, _react.useEffect)(function () {
105
- if (formRef) {
106
- formRef.current = form;
107
- }
108
- innerFormRef.current = form;
109
- if (initialRequest) {
110
- setLoading(true);
111
- (0, _request.doRequest)(initialRequest, context, history).then(function (res) {
112
- form.setValues(res);
113
- setLoading(false);
114
- }).catch(function () {
115
- setLoading(false);
116
- });
117
- }
118
- }, []);
119
- return /*#__PURE__*/_react.default.createElement(_components.Loading, {
120
- visible: loading,
121
- style: {
122
- display: 'block'
123
- }
124
- }, /*#__PURE__*/_react.default.createElement(_form.default, _objectSpread(_objectSpread({
125
- form: form,
126
- schema: formSchema
127
- }, getDefaultFormPropsByDialogSize(size)), otherFormProps)));
128
- };
129
- function useDialogFormAction(action, context) {
130
- var schema = action.schema,
131
- _action$useFieldValue = action.useFieldValuesForRequest,
132
- useFieldValuesForRequest = _action$useFieldValue === void 0 ? true : _action$useFieldValue,
133
- initialValues = action.initialValues,
134
- initialRequest = action.initialRequest,
135
- _action$formProps = action.formProps,
136
- formProps = _action$formProps === void 0 ? {} : _action$formProps,
137
- _action$size = action.size,
138
- size = _action$size === void 0 ? 'small' : _action$size,
139
- _onFinish = action.onFinish,
140
- propsBeforeRequest = action.beforeRequest,
141
- propsFormRef = action.formRef,
142
- propsExtendParams = action.extendParams,
143
- others = _objectWithoutProperties(action, _excluded2);
144
- var innerFormRef = /*#__PURE__*/(0, _react.createRef)();
145
- return (0, _dialog.default)(Object.assign({
146
- size: size,
147
- closeable: true,
148
- content: function content(contentContext) {
149
- var dialogFormProps = {
150
- initialValues: initialValues,
151
- initialRequest: initialRequest,
152
- schema: schema,
153
- size: size,
154
- formProps: formProps,
155
- context: contentContext
156
- };
157
- return /*#__PURE__*/_react.default.createElement(DialogForm, _objectSpread({
158
- innerFormRef: innerFormRef,
159
- formRef: propsFormRef
160
- }, dialogFormProps));
161
- },
162
- extendParams: useFieldValuesForRequest ? ['{{fields}}', propsExtendParams] : propsExtendParams,
163
- beforeRequest: function beforeRequest(context) {
164
- return new Promise(function (resolve, reject) {
165
- innerFormRef.current.validate().then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
166
- var _innerFormRef$current;
167
- var beforeRequestContext, fields, requestContext;
168
- return _regeneratorRuntime().wrap(function _callee$(_context) {
169
- while (1) {
170
- switch (_context.prev = _context.next) {
171
- case 0:
172
- fields = toJS((_innerFormRef$current = innerFormRef.current) === null || _innerFormRef$current === void 0 ? void 0 : _innerFormRef$current.values);
173
- if (!propsBeforeRequest) {
174
- _context.next = 14;
175
- break;
176
- }
177
- _context.prev = 2;
178
- _context.next = 5;
179
- return (0, _utils.resolveMaybePromiseMethod)(propsBeforeRequest, _objectSpread(_objectSpread({}, context), {}, {
180
- fields: fields
181
- }));
182
- case 5:
183
- beforeRequestContext = _context.sent;
184
- _context.next = 11;
185
- break;
186
- case 8:
187
- _context.prev = 8;
188
- _context.t0 = _context["catch"](2);
189
- beforeRequestContext = false;
190
- case 11:
191
- if (!(beforeRequestContext === false)) {
192
- _context.next = 14;
193
- break;
194
- }
195
- reject(false);
196
- return _context.abrupt("return");
197
- case 14:
198
- requestContext = Object.assign({
199
- fields: fields
200
- }, _typeof(beforeRequestContext) === 'object' ? beforeRequestContext : {});
201
- resolve(requestContext);
202
- case 16:
203
- case "end":
204
- return _context.stop();
205
- }
206
- }
207
- }, _callee, null, [[2, 8]]);
208
- }))).catch(function () {
209
- resolve(false);
210
- });
211
- });
212
- },
213
- onFinish: function onFinish() {
214
- var _innerFormRef$current2;
215
- _onFinish && _onFinish((_innerFormRef$current2 = innerFormRef.current) === null || _innerFormRef$current2 === void 0 ? void 0 : _innerFormRef$current2.values);
216
- }
217
- }, others), context, true);
218
- }
219
- var _default = useDialogFormAction;
220
- exports.default = _default;
@@ -1,9 +0,0 @@
1
- import { DialogAction } from './dialog';
2
- import { ProInfoProps } from '..';
3
- export interface DialogInfoAction extends DialogAction {
4
- schema: ProInfoProps;
5
- }
6
- export declare function useDialogInfoAction(action: DialogInfoAction, context?: any): {
7
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
8
- };
9
- export default useDialogInfoAction;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useDialogInfoAction = useDialogInfoAction;
8
- var _dialog = _interopRequireDefault(require("./dialog"));
9
- var _ = require("..");
10
- var _excluded = ["schema"];
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- 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; }
13
- 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; }
14
- function useDialogInfoAction(action, context) {
15
- var schema = action.schema,
16
- others = _objectWithoutProperties(action, _excluded);
17
- return (0, _dialog.default)(Object.assign({
18
- component: _.ProInfo,
19
- closeable: true,
20
- size: 'mini',
21
- schema: Object.assign({
22
- backgroundColor: 'grey',
23
- compacted: false
24
- }, schema)
25
- }, others), context);
26
- }
27
- var _default = useDialogInfoAction;
28
- exports.default = _default;
@@ -1,9 +0,0 @@
1
- import { DialogAction } from './dialog';
2
- import { ProTableProps } from '..';
3
- export interface DialogTableAction extends DialogAction {
4
- schema: ProTableProps;
5
- }
6
- export declare function useDialogTableAction(action: DialogTableAction, context?: any): {
7
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
8
- };
9
- export default useDialogTableAction;
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- exports.useDialogTableAction = useDialogTableAction;
8
- var _dialog = _interopRequireDefault(require("./dialog"));
9
- var _ = require("..");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
- function useDialogTableAction(action, context) {
12
- return (0, _dialog.default)(Object.assign({
13
- component: _.ProTable,
14
- closeable: true,
15
- size: 'medium'
16
- }, action), context);
17
- }
18
- var _default = useDialogTableAction;
19
- exports.default = _default;
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import { QuickShowConfig } from '@alicloudfe/components/types/dialog';
3
- import { quickShowDrawerProps } from '@alicloudfe/components/types/drawer';
4
- import { ProFormSchema, ProFormSchemaItem } from '../form';
5
- import { ProMessageProps } from '../utils/message';
6
- import { RequestAction } from './request';
7
- export interface DialogAction extends Omit<RequestAction, 'url'>, Omit<QuickShowConfig, 'onError' | 'type'>, Omit<quickShowDrawerProps, 'trigger' | 'animation' | 'height' | 'locale' | 'onError'> {
8
- /** 点击「确认按钮」后的数据请求地址,非必填,不填就不发请求 */
9
- url?: string;
10
- /** 弹窗类型,支持普通弹窗和抽屉两种模式,默认为普通弹窗 */
11
- dialogType?: 'dialog' | 'drawer' | 'pop';
12
- /** 弹窗快捷调用类型 */
13
- dialogQuickShowType?: 'alert' | 'confirm';
14
- /** 弹窗消息类型 */
15
- messageType?: 'success' | 'warning' | 'error' | 'notice' | 'help' | 'loading';
16
- /** 位于弹窗内容最上方的自定义内容区 */
17
- beforeContent?: React.ReactNode;
18
- /** 位于弹窗内容上方的消息提示区 */
19
- message?: ProMessageProps;
20
- /** 位于弹窗内容下方的自定义内容区 */
21
- afterContent?: React.ReactNode;
22
- /** 弹窗页脚描述区,位于按钮组的对面 */
23
- footerDescription?: React.ReactNode | ProFormSchema | ProFormSchemaItem;
24
- /** 弹窗内容组件的 schema */
25
- schema?: any;
26
- /** 弹窗内容区的组件 */
27
- component?: any;
28
- /** 点击确定自定义回调函数 */
29
- onOk?: any;
30
- /** 点击取消自定义回调函数 */
31
- onCancel?: any;
32
- /** 隐藏footer区域 */
33
- hideFooter?: boolean;
34
- /** 支持通过传函数自定义底部按钮 */
35
- footer?: any;
36
- }
37
- export declare function useDialogAction(action: DialogAction, actionContext?: any, hasForm?: boolean): {
38
- [x: string]: (e: React.MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
39
- };
40
- export default useDialogAction;