@teamix/pro 1.6.1-beta → 2.0.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (734) 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 +25 -33
  6. package/es/index.js +50 -49
  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.js +1 -1
  13. package/es/nocode/pages/index.js +7 -4
  14. package/es/nocode/pages/playground.js +9 -11
  15. package/es/nocode/pages/renderer.d.ts +1 -1
  16. package/es/nocode/pages/renderer.js +12 -12
  17. package/es/nocode/playground.js +5 -7
  18. package/es/templates/Detail/index.js +1 -1
  19. package/es/templates/Form/index.js +1 -1
  20. package/es/templates/List/index.d.ts +6 -3
  21. package/es/templates/List/index.js +7 -9
  22. package/es/templates/index.js +3 -3
  23. package/es/xconsole.scss +0 -1
  24. package/lib/index-without-icon.d.ts +13 -13
  25. package/lib/index-without-icon.js +57 -57
  26. package/lib/index.d.ts +25 -33
  27. package/lib/index.js +87 -159
  28. package/lib/nocode/pages/index.js +1 -1
  29. package/lib/nocode/pages/playground.js +5 -7
  30. package/lib/nocode/pages/renderer.d.ts +1 -1
  31. package/lib/nocode/pages/renderer.js +12 -12
  32. package/lib/nocode/playground.js +4 -6
  33. package/lib/templates/List/index.d.ts +6 -3
  34. package/lib/templates/List/index.js +6 -8
  35. package/lib/xconsole.scss +0 -1
  36. package/package.json +18 -6
  37. package/dist/pro.all.min.css +0 -1
  38. package/dist/pro.css +0 -1
  39. package/dist/pro.js +0 -121588
  40. package/dist/pro.min.js.LICENSE.txt +0 -56
  41. package/dist/pro.xconsole.min.css +0 -1
  42. package/es/actions/base.d.ts +0 -24
  43. package/es/actions/base.js +0 -64
  44. package/es/actions/confirm.d.ts +0 -7
  45. package/es/actions/confirm.js +0 -11
  46. package/es/actions/danger-confirm.d.ts +0 -7
  47. package/es/actions/danger-confirm.js +0 -14
  48. package/es/actions/danger-pop-confirm.d.ts +0 -5
  49. package/es/actions/danger-pop-confirm.js +0 -10
  50. package/es/actions/dialog-component.d.ts +0 -10
  51. package/es/actions/dialog-component.js +0 -19
  52. package/es/actions/dialog-form.d.ts +0 -29
  53. package/es/actions/dialog-form.js +0 -211
  54. package/es/actions/dialog-info.d.ts +0 -9
  55. package/es/actions/dialog-info.js +0 -19
  56. package/es/actions/dialog-table.d.ts +0 -9
  57. package/es/actions/dialog-table.js +0 -10
  58. package/es/actions/dialog.d.ts +0 -40
  59. package/es/actions/dialog.js +0 -223
  60. package/es/actions/drawer-form.d.ts +0 -6
  61. package/es/actions/drawer-form.js +0 -7
  62. package/es/actions/drawer-info.d.ts +0 -6
  63. package/es/actions/drawer-info.js +0 -7
  64. package/es/actions/drawer-table.d.ts +0 -6
  65. package/es/actions/drawer-table.js +0 -7
  66. package/es/actions/drawer.d.ts +0 -6
  67. package/es/actions/drawer.js +0 -7
  68. package/es/actions/error.d.ts +0 -7
  69. package/es/actions/error.js +0 -11
  70. package/es/actions/index.d.ts +0 -114
  71. package/es/actions/index.js +0 -438
  72. package/es/actions/index.scss +0 -145
  73. package/es/actions/link.d.ts +0 -8
  74. package/es/actions/link.js +0 -15
  75. package/es/actions/notice.d.ts +0 -7
  76. package/es/actions/notice.js +0 -11
  77. package/es/actions/pop-confirm.d.ts +0 -9
  78. package/es/actions/pop-confirm.js +0 -9
  79. package/es/actions/quick.d.ts +0 -2
  80. package/es/actions/quick.js +0 -26
  81. package/es/actions/request.d.ts +0 -9
  82. package/es/actions/request.js +0 -48
  83. package/es/actions/utils.d.ts +0 -1
  84. package/es/actions/utils.js +0 -19
  85. package/es/card/card-container.d.ts +0 -18
  86. package/es/card/card-container.js +0 -19
  87. package/es/card/divider.d.ts +0 -6
  88. package/es/card/divider.js +0 -11
  89. package/es/card/index.d.ts +0 -109
  90. package/es/card/index.js +0 -284
  91. package/es/card/index.scss +0 -313
  92. package/es/card/selectable.d.ts +0 -13
  93. package/es/card/selectable.js +0 -36
  94. package/es/card/tab.d.ts +0 -6
  95. package/es/card/tab.js +0 -18
  96. package/es/card/utils.d.ts +0 -9
  97. package/es/card/utils.js +0 -28
  98. package/es/card/xconsole.scss +0 -3
  99. package/es/field/index.d.ts +0 -3
  100. package/es/field/index.js +0 -3
  101. package/es/form/Components/Editable/index.d.ts +0 -20
  102. package/es/form/Components/Editable/index.js +0 -193
  103. package/es/form/Components/FormGroup/index.d.ts +0 -14
  104. package/es/form/Components/FormGroup/index.js +0 -78
  105. package/es/form/Components/FormGroup/index.scss +0 -23
  106. package/es/form/Components/FormItem2/animation.scss +0 -72
  107. package/es/form/Components/FormItem2/grid.scss +0 -173
  108. package/es/form/Components/FormItem2/index.d.ts +0 -41
  109. package/es/form/Components/FormItem2/index.js +0 -285
  110. package/es/form/Components/FormItem2/main.scss +0 -413
  111. package/es/form/Components/FormItem2/scss/variable.scss +0 -118
  112. package/es/form/Components/FormItem2/style.d.ts +0 -1
  113. package/es/form/Components/FormItem2/style.js +0 -1
  114. package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
  115. package/es/form/Components/LightFilter/componentMap.js +0 -7
  116. package/es/form/Components/LightFilter/index.d.ts +0 -17
  117. package/es/form/Components/LightFilter/index.js +0 -122
  118. package/es/form/Components/LightFilter/index.scss +0 -93
  119. package/es/form/Components/ProField/index.d.ts +0 -2
  120. package/es/form/Components/ProField/index.js +0 -31
  121. package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
  122. package/es/form/Components/ProField/mapDateFormat.js +0 -86
  123. package/es/form/Components/Text/index.d.ts +0 -8
  124. package/es/form/Components/Text/index.js +0 -20
  125. package/es/form/Components/Text/index.scss +0 -8
  126. package/es/form/Components/__builtins__/empty.d.ts +0 -1
  127. package/es/form/Components/__builtins__/empty.js +0 -51
  128. package/es/form/Components/__builtins__/hooks/index.d.ts +0 -2
  129. package/es/form/Components/__builtins__/hooks/index.js +0 -2
  130. package/es/form/Components/__builtins__/hooks/useClickAway.d.ts +0 -5
  131. package/es/form/Components/__builtins__/hooks/useClickAway.js +0 -37
  132. package/es/form/Components/__builtins__/hooks/usePrefixCls.d.ts +0 -3
  133. package/es/form/Components/__builtins__/hooks/usePrefixCls.js +0 -8
  134. package/es/form/Components/__builtins__/icons.d.ts +0 -20
  135. package/es/form/Components/__builtins__/icons.js +0 -153
  136. package/es/form/Components/__builtins__/index.d.ts +0 -8
  137. package/es/form/Components/__builtins__/index.js +0 -8
  138. package/es/form/Components/__builtins__/loading.d.ts +0 -1
  139. package/es/form/Components/__builtins__/loading.js +0 -41
  140. package/es/form/Components/__builtins__/mapSize.d.ts +0 -1
  141. package/es/form/Components/__builtins__/mapSize.js +0 -13
  142. package/es/form/Components/__builtins__/mapStatus.d.ts +0 -2
  143. package/es/form/Components/__builtins__/mapStatus.js +0 -20
  144. package/es/form/Components/__builtins__/moment.d.ts +0 -2
  145. package/es/form/Components/__builtins__/moment.js +0 -47
  146. package/es/form/Components/__builtins__/pickDataProps.d.ts +0 -1
  147. package/es/form/Components/__builtins__/pickDataProps.js +0 -9
  148. package/es/form/Components/form-layout/index.d.ts +0 -74
  149. package/es/form/Components/form-layout/index.js +0 -71
  150. package/es/form/Components/form-layout/main.scss +0 -0
  151. package/es/form/Components/form-layout/style.d.ts +0 -1
  152. package/es/form/Components/form-layout/style.js +0 -3
  153. package/es/form/Components/form-layout/useResponsiveFormLayout.d.ts +0 -18
  154. package/es/form/Components/form-layout/useResponsiveFormLayout.js +0 -87
  155. package/es/form/Filter/AdvancedFilter.d.ts +0 -7
  156. package/es/form/Filter/AdvancedFilter.js +0 -112
  157. package/es/form/Filter/Layout.d.ts +0 -5
  158. package/es/form/Filter/Layout.js +0 -68
  159. package/es/form/Filter/LightFilter.d.ts +0 -7
  160. package/es/form/Filter/LightFilter.js +0 -94
  161. package/es/form/Filter/SimpleFilter.d.ts +0 -7
  162. package/es/form/Filter/SimpleFilter.js +0 -88
  163. package/es/form/Filter/index.d.ts +0 -9
  164. package/es/form/Filter/index.js +0 -511
  165. package/es/form/Filter/index.scss +0 -48
  166. package/es/form/Filter/index2.d.ts +0 -13
  167. package/es/form/Filter/index2.js +0 -162
  168. package/es/form/Filter/index2.scss +0 -26
  169. package/es/form/Filter/layout.scss +0 -40
  170. package/es/form/Filter/useBindUrl.d.ts +0 -2
  171. package/es/form/Filter/useBindUrl.js +0 -90
  172. package/es/form/Filter/useSpecialProps.d.ts +0 -6
  173. package/es/form/Filter/useSpecialProps.js +0 -32
  174. package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
  175. package/es/form/ProForm/addCascadeEffect.js +0 -203
  176. package/es/form/ProForm/customComponent.d.ts +0 -3
  177. package/es/form/ProForm/customComponent.js +0 -16
  178. package/es/form/ProForm/index.d.ts +0 -5
  179. package/es/form/ProForm/index.js +0 -152
  180. package/es/form/ProForm/index.scss +0 -411
  181. package/es/form/ProForm/useAutoLayout.d.ts +0 -9
  182. package/es/form/ProForm/useAutoLayout.js +0 -93
  183. package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
  184. package/es/form/ProForm/useAutoSubmit.js +0 -23
  185. package/es/form/ProForm/useFieldRequest.d.ts +0 -5
  186. package/es/form/ProForm/useFieldRequest.js +0 -14
  187. package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
  188. package/es/form/ProForm/useFormDisplayValues.js +0 -78
  189. package/es/form/ProForm/useInitialRequest.d.ts +0 -6
  190. package/es/form/ProForm/useInitialRequest.js +0 -10
  191. package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
  192. package/es/form/SchemaForm/adapterComponent.js +0 -14
  193. package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
  194. package/es/form/SchemaForm/adapterDecorator.js +0 -20
  195. package/es/form/SchemaForm/adapterType.d.ts +0 -5
  196. package/es/form/SchemaForm/adapterType.js +0 -52
  197. package/es/form/SchemaForm/index.d.ts +0 -4
  198. package/es/form/SchemaForm/index.js +0 -209
  199. package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
  200. package/es/form/SchemaForm/initializeArrayCards.js +0 -18
  201. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
  202. package/es/form/SchemaForm/initializeArrayCollapse.js +0 -18
  203. package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
  204. package/es/form/SchemaForm/initializeArrayItems.js +0 -31
  205. package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
  206. package/es/form/SchemaForm/initializeArrayTable.js +0 -78
  207. package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
  208. package/es/form/SchemaForm/initializeDataSource.js +0 -19
  209. package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
  210. package/es/form/SchemaForm/initializeFormButton.js +0 -74
  211. package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
  212. package/es/form/SchemaForm/initializeFormCollapse.js +0 -33
  213. package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
  214. package/es/form/SchemaForm/initializeFormGroup.js +0 -36
  215. package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
  216. package/es/form/SchemaForm/initializeFormStep.js +0 -50
  217. package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
  218. package/es/form/SchemaForm/initializeFormTab.js +0 -43
  219. package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
  220. package/es/form/SchemaForm/initializeReactions.js +0 -65
  221. package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
  222. package/es/form/SchemaForm/initializeRequest.js +0 -38
  223. package/es/form/SchemaForm/initializeRules.d.ts +0 -11
  224. package/es/form/SchemaForm/initializeRules.js +0 -46
  225. package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
  226. package/es/form/SchemaForm/initializeSelectTable.js +0 -83
  227. package/es/form/SchemaForm/reactions.d.ts +0 -6
  228. package/es/form/SchemaForm/reactions.js +0 -88
  229. package/es/form/docs/ActionResponse.d.ts +0 -8
  230. package/es/form/docs/ActionResponse.js +0 -11
  231. package/es/form/docs/ActionResponse.less +0 -25
  232. package/es/form/fieldTypeMap.d.ts +0 -7
  233. package/es/form/fieldTypeMap.js +0 -46
  234. package/es/form/global.scss +0 -14
  235. package/es/form/index.d.ts +0 -125
  236. package/es/form/index.js +0 -44
  237. package/es/form/locales/validate.d.ts +0 -159
  238. package/es/form/locales/validate.js +0 -158
  239. package/es/form/schemaNameMap.d.ts +0 -5
  240. package/es/form/schemaNameMap.js +0 -50
  241. package/es/form/typing.d.ts +0 -194
  242. package/es/form/typing.js +0 -1
  243. package/es/form/utils.d.ts +0 -55
  244. package/es/form/utils.js +0 -155
  245. package/es/form/warning.d.ts +0 -3
  246. package/es/form/warning.js +0 -11
  247. package/es/image/index.d.ts +0 -22
  248. package/es/image/index.js +0 -73
  249. package/es/image/index.scss +0 -3
  250. package/es/info/components/InfoGroup/index.d.ts +0 -5
  251. package/es/info/components/InfoGroup/index.js +0 -86
  252. package/es/info/components/InfoGroup/index.scss +0 -64
  253. package/es/info/components/InfoValueItem/index.d.ts +0 -5
  254. package/es/info/components/InfoValueItem/index.js +0 -302
  255. package/es/info/components/InfoValueItem/index.scss +0 -26
  256. package/es/info/components/ProInfoItem/index.d.ts +0 -5
  257. package/es/info/components/ProInfoItem/index.js +0 -92
  258. package/es/info/components/ProInfoItem/index.scss +0 -76
  259. package/es/info/components/baseInfo/index.d.ts +0 -8
  260. package/es/info/components/baseInfo/index.js +0 -95
  261. package/es/info/components/baseInfo/index.scss +0 -6
  262. package/es/info/components/headerInfo/index.d.ts +0 -8
  263. package/es/info/components/headerInfo/index.js +0 -68
  264. package/es/info/components/headerInfo/index.scss +0 -3
  265. package/es/info/components/tableInfo/index.d.ts +0 -7
  266. package/es/info/components/tableInfo/index.js +0 -154
  267. package/es/info/components/tableInfo/index.scss +0 -18
  268. package/es/info/index.d.ts +0 -10
  269. package/es/info/index.js +0 -181
  270. package/es/info/index.scss +0 -9
  271. package/es/info/typing.d.ts +0 -220
  272. package/es/info/typing.js +0 -1
  273. package/es/info/utils/index.d.ts +0 -20
  274. package/es/info/utils/index.js +0 -49
  275. package/es/info/utils/layout.d.ts +0 -2
  276. package/es/info/utils/layout.js +0 -58
  277. package/es/info/utils/utils.d.ts +0 -1
  278. package/es/info/utils/utils.js +0 -13
  279. package/es/layout/index.d.ts +0 -2
  280. package/es/layout/index.js +0 -3
  281. package/es/page-container/index.d.ts +0 -3
  282. package/es/page-container/index.js +0 -3
  283. package/es/page-header/index.d.ts +0 -74
  284. package/es/page-header/index.js +0 -218
  285. package/es/page-header/index.scss +0 -193
  286. package/es/page-header/xconsole.scss +0 -5
  287. package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
  288. package/es/sidebar/components/sidebar-container/index.js +0 -167
  289. package/es/sidebar/components/sidebar-container/index.scss +0 -73
  290. package/es/sidebar/components/tree/index.d.ts +0 -6
  291. package/es/sidebar/components/tree/index.js +0 -288
  292. package/es/sidebar/components/tree/index.scss +0 -10
  293. package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
  294. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -47
  295. package/es/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
  296. package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
  297. package/es/sidebar/components/tree-node/components/IconAction/index.js +0 -79
  298. package/es/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
  299. package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
  300. package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -60
  301. package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
  302. package/es/sidebar/components/tree-node/index.d.ts +0 -7
  303. package/es/sidebar/components/tree-node/index.js +0 -192
  304. package/es/sidebar/components/tree-node/index.scss +0 -68
  305. package/es/sidebar/index.d.ts +0 -9
  306. package/es/sidebar/index.js +0 -187
  307. package/es/sidebar/index.scss +0 -38
  308. package/es/sidebar/typing.d.ts +0 -145
  309. package/es/sidebar/typing.js +0 -1
  310. package/es/sidebar/utils/action-ref.d.ts +0 -3
  311. package/es/sidebar/utils/action-ref.js +0 -10
  312. package/es/sidebar/utils/index.d.ts +0 -364
  313. package/es/sidebar/utils/index.js +0 -277
  314. package/es/skeleton/index.d.ts +0 -3
  315. package/es/skeleton/index.js +0 -3
  316. package/es/table/components/CardView/index.d.ts +0 -5
  317. package/es/table/components/CardView/index.js +0 -387
  318. package/es/table/components/CardView/index.scss +0 -46
  319. package/es/table/components/EmptyContent/index.d.ts +0 -2
  320. package/es/table/components/EmptyContent/index.js +0 -11
  321. package/es/table/components/Filter/index.d.ts +0 -12
  322. package/es/table/components/Filter/index.js +0 -248
  323. package/es/table/components/Filter/index.scss +0 -27
  324. package/es/table/components/Layout/index.d.ts +0 -5
  325. package/es/table/components/Layout/index.js +0 -175
  326. package/es/table/components/Layout/index.scss +0 -48
  327. package/es/table/components/LoadMore/index.d.ts +0 -20
  328. package/es/table/components/LoadMore/index.js +0 -88
  329. package/es/table/components/LoadMore/index.scss +0 -19
  330. package/es/table/components/Pagination/index.d.ts +0 -8
  331. package/es/table/components/Pagination/index.js +0 -244
  332. package/es/table/components/Pagination/index.scss +0 -55
  333. package/es/table/components/QuickAction/index.d.ts +0 -11
  334. package/es/table/components/QuickAction/index.js +0 -45
  335. package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
  336. package/es/table/components/ToolBar/CardSwitch.js +0 -52
  337. package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
  338. package/es/table/components/ToolBar/DensityIcon.js +0 -107
  339. package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
  340. package/es/table/components/ToolBar/FilterColumnIcon.js +0 -362
  341. package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
  342. package/es/table/components/ToolBar/FullScreenIcon.js +0 -29
  343. package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
  344. package/es/table/components/ToolBar/Fullscreen.js +0 -100
  345. package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
  346. package/es/table/components/ToolBar/RefreshIcon.js +0 -180
  347. package/es/table/components/ToolBar/index.d.ts +0 -5
  348. package/es/table/components/ToolBar/index.js +0 -174
  349. package/es/table/components/ToolBar/index.scss +0 -177
  350. package/es/table/index.d.ts +0 -5
  351. package/es/table/index.js +0 -1215
  352. package/es/table/index.scss +0 -185
  353. package/es/table/typing.d.ts +0 -432
  354. package/es/table/typing.js +0 -1
  355. package/es/table/utils/columnRender.d.ts +0 -14
  356. package/es/table/utils/columnRender.js +0 -287
  357. package/es/table/utils/genAutoWidthColumns.d.ts +0 -30
  358. package/es/table/utils/genAutoWidthColumns.js +0 -327
  359. package/es/table/utils/genProColumnToColumn.d.ts +0 -13
  360. package/es/table/utils/genProColumnToColumn.js +0 -51
  361. package/es/table/utils/getTableProps.d.ts +0 -2
  362. package/es/table/utils/getTableProps.js +0 -4
  363. package/es/table/utils/getTableSortIcons.d.ts +0 -3
  364. package/es/table/utils/getTableSortIcons.js +0 -21
  365. package/es/table/utils/index.d.ts +0 -19
  366. package/es/table/utils/index.js +0 -128
  367. package/es/table/utils/pureColumnRender.d.ts +0 -9
  368. package/es/table/utils/pureColumnRender.js +0 -169
  369. package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
  370. package/es/table/utils/pureGenProColumnToColumn.js +0 -28
  371. package/es/table/utils/useTableSelection.d.ts +0 -3
  372. package/es/table/utils/useTableSelection.js +0 -80
  373. package/es/table/utils/util.d.ts +0 -5
  374. package/es/table/utils/util.js +0 -19
  375. package/es/table/xconsole.scss +0 -6
  376. package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
  377. package/es/timeline/ProTimeLineItem/index.js +0 -245
  378. package/es/timeline/ProTimeLineItem/index.scss +0 -235
  379. package/es/timeline/index.d.ts +0 -10
  380. package/es/timeline/index.js +0 -63
  381. package/es/timeline/index.scss +0 -7
  382. package/es/timeline/typing.d.ts +0 -107
  383. package/es/timeline/typing.js +0 -1
  384. package/es/utils/index.d.ts +0 -3
  385. package/es/utils/index.js +0 -3
  386. package/es/utils/message.d.ts +0 -3
  387. package/es/utils/message.js +0 -14
  388. package/lib/actions/base.d.ts +0 -24
  389. package/lib/actions/base.js +0 -72
  390. package/lib/actions/confirm.d.ts +0 -7
  391. package/lib/actions/confirm.js +0 -20
  392. package/lib/actions/danger-confirm.d.ts +0 -7
  393. package/lib/actions/danger-confirm.js +0 -23
  394. package/lib/actions/danger-pop-confirm.d.ts +0 -5
  395. package/lib/actions/danger-pop-confirm.js +0 -18
  396. package/lib/actions/dialog-component.d.ts +0 -10
  397. package/lib/actions/dialog-component.js +0 -28
  398. package/lib/actions/dialog-form.d.ts +0 -29
  399. package/lib/actions/dialog-form.js +0 -220
  400. package/lib/actions/dialog-info.d.ts +0 -9
  401. package/lib/actions/dialog-info.js +0 -28
  402. package/lib/actions/dialog-table.d.ts +0 -9
  403. package/lib/actions/dialog-table.js +0 -19
  404. package/lib/actions/dialog.d.ts +0 -40
  405. package/lib/actions/dialog.js +0 -232
  406. package/lib/actions/drawer-form.d.ts +0 -6
  407. package/lib/actions/drawer-form.js +0 -15
  408. package/lib/actions/drawer-info.d.ts +0 -6
  409. package/lib/actions/drawer-info.js +0 -15
  410. package/lib/actions/drawer-table.d.ts +0 -6
  411. package/lib/actions/drawer-table.js +0 -15
  412. package/lib/actions/drawer.d.ts +0 -6
  413. package/lib/actions/drawer.js +0 -16
  414. package/lib/actions/error.d.ts +0 -7
  415. package/lib/actions/error.js +0 -20
  416. package/lib/actions/index.d.ts +0 -114
  417. package/lib/actions/index.js +0 -476
  418. package/lib/actions/index.scss +0 -145
  419. package/lib/actions/link.d.ts +0 -8
  420. package/lib/actions/link.js +0 -21
  421. package/lib/actions/notice.d.ts +0 -7
  422. package/lib/actions/notice.js +0 -20
  423. package/lib/actions/pop-confirm.d.ts +0 -9
  424. package/lib/actions/pop-confirm.js +0 -18
  425. package/lib/actions/quick.d.ts +0 -2
  426. package/lib/actions/quick.js +0 -33
  427. package/lib/actions/request.d.ts +0 -9
  428. package/lib/actions/request.js +0 -55
  429. package/lib/actions/utils.d.ts +0 -1
  430. package/lib/actions/utils.js +0 -25
  431. package/lib/card/card-container.d.ts +0 -18
  432. package/lib/card/card-container.js +0 -28
  433. package/lib/card/divider.d.ts +0 -6
  434. package/lib/card/divider.js +0 -19
  435. package/lib/card/index.d.ts +0 -109
  436. package/lib/card/index.js +0 -310
  437. package/lib/card/index.scss +0 -313
  438. package/lib/card/selectable.d.ts +0 -13
  439. package/lib/card/selectable.js +0 -44
  440. package/lib/card/tab.d.ts +0 -6
  441. package/lib/card/tab.js +0 -26
  442. package/lib/card/utils.d.ts +0 -9
  443. package/lib/card/utils.js +0 -35
  444. package/lib/card/xconsole.scss +0 -3
  445. package/lib/field/index.d.ts +0 -3
  446. package/lib/field/index.js +0 -24
  447. package/lib/form/Components/Editable/index.d.ts +0 -20
  448. package/lib/form/Components/Editable/index.js +0 -205
  449. package/lib/form/Components/FormGroup/index.d.ts +0 -14
  450. package/lib/form/Components/FormGroup/index.js +0 -86
  451. package/lib/form/Components/FormGroup/index.scss +0 -23
  452. package/lib/form/Components/FormItem2/animation.scss +0 -72
  453. package/lib/form/Components/FormItem2/grid.scss +0 -173
  454. package/lib/form/Components/FormItem2/index.d.ts +0 -41
  455. package/lib/form/Components/FormItem2/index.js +0 -298
  456. package/lib/form/Components/FormItem2/main.scss +0 -413
  457. package/lib/form/Components/FormItem2/scss/variable.scss +0 -118
  458. package/lib/form/Components/FormItem2/style.d.ts +0 -1
  459. package/lib/form/Components/FormItem2/style.js +0 -3
  460. package/lib/form/Components/LightFilter/componentMap.d.ts +0 -3
  461. package/lib/form/Components/LightFilter/componentMap.js +0 -14
  462. package/lib/form/Components/LightFilter/index.d.ts +0 -17
  463. package/lib/form/Components/LightFilter/index.js +0 -133
  464. package/lib/form/Components/LightFilter/index.scss +0 -93
  465. package/lib/form/Components/ProField/index.d.ts +0 -2
  466. package/lib/form/Components/ProField/index.js +0 -39
  467. package/lib/form/Components/ProField/mapDateFormat.d.ts +0 -3
  468. package/lib/form/Components/ProField/mapDateFormat.js +0 -94
  469. package/lib/form/Components/Text/index.d.ts +0 -8
  470. package/lib/form/Components/Text/index.js +0 -28
  471. package/lib/form/Components/Text/index.scss +0 -8
  472. package/lib/form/Components/__builtins__/empty.d.ts +0 -1
  473. package/lib/form/Components/__builtins__/empty.js +0 -59
  474. package/lib/form/Components/__builtins__/hooks/index.d.ts +0 -2
  475. package/lib/form/Components/__builtins__/hooks/index.js +0 -27
  476. package/lib/form/Components/__builtins__/hooks/useClickAway.d.ts +0 -5
  477. package/lib/form/Components/__builtins__/hooks/useClickAway.js +0 -44
  478. package/lib/form/Components/__builtins__/hooks/usePrefixCls.d.ts +0 -3
  479. package/lib/form/Components/__builtins__/hooks/usePrefixCls.js +0 -15
  480. package/lib/form/Components/__builtins__/icons.d.ts +0 -20
  481. package/lib/form/Components/__builtins__/icons.js +0 -174
  482. package/lib/form/Components/__builtins__/index.d.ts +0 -8
  483. package/lib/form/Components/__builtins__/index.js +0 -93
  484. package/lib/form/Components/__builtins__/loading.d.ts +0 -1
  485. package/lib/form/Components/__builtins__/loading.js +0 -48
  486. package/lib/form/Components/__builtins__/mapSize.d.ts +0 -1
  487. package/lib/form/Components/__builtins__/mapSize.js +0 -20
  488. package/lib/form/Components/__builtins__/mapStatus.d.ts +0 -2
  489. package/lib/form/Components/__builtins__/mapStatus.js +0 -27
  490. package/lib/form/Components/__builtins__/moment.d.ts +0 -2
  491. package/lib/form/Components/__builtins__/moment.js +0 -56
  492. package/lib/form/Components/__builtins__/pickDataProps.d.ts +0 -1
  493. package/lib/form/Components/__builtins__/pickDataProps.js +0 -16
  494. package/lib/form/Components/form-layout/index.d.ts +0 -74
  495. package/lib/form/Components/form-layout/index.js +0 -88
  496. package/lib/form/Components/form-layout/main.scss +0 -0
  497. package/lib/form/Components/form-layout/style.d.ts +0 -1
  498. package/lib/form/Components/form-layout/style.js +0 -3
  499. package/lib/form/Components/form-layout/useResponsiveFormLayout.d.ts +0 -18
  500. package/lib/form/Components/form-layout/useResponsiveFormLayout.js +0 -94
  501. package/lib/form/Filter/AdvancedFilter.d.ts +0 -7
  502. package/lib/form/Filter/AdvancedFilter.js +0 -123
  503. package/lib/form/Filter/Layout.d.ts +0 -5
  504. package/lib/form/Filter/Layout.js +0 -78
  505. package/lib/form/Filter/LightFilter.d.ts +0 -7
  506. package/lib/form/Filter/LightFilter.js +0 -105
  507. package/lib/form/Filter/SimpleFilter.d.ts +0 -7
  508. package/lib/form/Filter/SimpleFilter.js +0 -99
  509. package/lib/form/Filter/index.d.ts +0 -9
  510. package/lib/form/Filter/index.js +0 -526
  511. package/lib/form/Filter/index.scss +0 -48
  512. package/lib/form/Filter/index2.d.ts +0 -13
  513. package/lib/form/Filter/index2.js +0 -174
  514. package/lib/form/Filter/index2.scss +0 -26
  515. package/lib/form/Filter/layout.scss +0 -40
  516. package/lib/form/Filter/useBindUrl.d.ts +0 -2
  517. package/lib/form/Filter/useBindUrl.js +0 -97
  518. package/lib/form/Filter/useSpecialProps.d.ts +0 -6
  519. package/lib/form/Filter/useSpecialProps.js +0 -39
  520. package/lib/form/ProForm/addCascadeEffect.d.ts +0 -2
  521. package/lib/form/ProForm/addCascadeEffect.js +0 -210
  522. package/lib/form/ProForm/customComponent.d.ts +0 -3
  523. package/lib/form/ProForm/customComponent.js +0 -22
  524. package/lib/form/ProForm/index.d.ts +0 -5
  525. package/lib/form/ProForm/index.js +0 -163
  526. package/lib/form/ProForm/index.scss +0 -411
  527. package/lib/form/ProForm/useAutoLayout.d.ts +0 -9
  528. package/lib/form/ProForm/useAutoLayout.js +0 -100
  529. package/lib/form/ProForm/useAutoSubmit.d.ts +0 -6
  530. package/lib/form/ProForm/useAutoSubmit.js +0 -28
  531. package/lib/form/ProForm/useFieldRequest.d.ts +0 -5
  532. package/lib/form/ProForm/useFieldRequest.js +0 -21
  533. package/lib/form/ProForm/useFormDisplayValues.d.ts +0 -4
  534. package/lib/form/ProForm/useFormDisplayValues.js +0 -86
  535. package/lib/form/ProForm/useInitialRequest.d.ts +0 -6
  536. package/lib/form/ProForm/useInitialRequest.js +0 -17
  537. package/lib/form/SchemaForm/adapterComponent.d.ts +0 -5
  538. package/lib/form/SchemaForm/adapterComponent.js +0 -21
  539. package/lib/form/SchemaForm/adapterDecorator.d.ts +0 -6
  540. package/lib/form/SchemaForm/adapterDecorator.js +0 -24
  541. package/lib/form/SchemaForm/adapterType.d.ts +0 -5
  542. package/lib/form/SchemaForm/adapterType.js +0 -59
  543. package/lib/form/SchemaForm/index.d.ts +0 -4
  544. package/lib/form/SchemaForm/index.js +0 -220
  545. package/lib/form/SchemaForm/initializeArrayCards.d.ts +0 -3
  546. package/lib/form/SchemaForm/initializeArrayCards.js +0 -25
  547. package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
  548. package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -25
  549. package/lib/form/SchemaForm/initializeArrayItems.d.ts +0 -3
  550. package/lib/form/SchemaForm/initializeArrayItems.js +0 -38
  551. package/lib/form/SchemaForm/initializeArrayTable.d.ts +0 -3
  552. package/lib/form/SchemaForm/initializeArrayTable.js +0 -85
  553. package/lib/form/SchemaForm/initializeDataSource.d.ts +0 -15
  554. package/lib/form/SchemaForm/initializeDataSource.js +0 -26
  555. package/lib/form/SchemaForm/initializeFormButton.d.ts +0 -3
  556. package/lib/form/SchemaForm/initializeFormButton.js +0 -81
  557. package/lib/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
  558. package/lib/form/SchemaForm/initializeFormCollapse.js +0 -40
  559. package/lib/form/SchemaForm/initializeFormGroup.d.ts +0 -3
  560. package/lib/form/SchemaForm/initializeFormGroup.js +0 -43
  561. package/lib/form/SchemaForm/initializeFormStep.d.ts +0 -5
  562. package/lib/form/SchemaForm/initializeFormStep.js +0 -57
  563. package/lib/form/SchemaForm/initializeFormTab.d.ts +0 -3
  564. package/lib/form/SchemaForm/initializeFormTab.js +0 -50
  565. package/lib/form/SchemaForm/initializeReactions.d.ts +0 -2
  566. package/lib/form/SchemaForm/initializeReactions.js +0 -73
  567. package/lib/form/SchemaForm/initializeRequest.d.ts +0 -11
  568. package/lib/form/SchemaForm/initializeRequest.js +0 -45
  569. package/lib/form/SchemaForm/initializeRules.d.ts +0 -11
  570. package/lib/form/SchemaForm/initializeRules.js +0 -53
  571. package/lib/form/SchemaForm/initializeSelectTable.d.ts +0 -3
  572. package/lib/form/SchemaForm/initializeSelectTable.js +0 -91
  573. package/lib/form/SchemaForm/reactions.d.ts +0 -6
  574. package/lib/form/SchemaForm/reactions.js +0 -97
  575. package/lib/form/docs/ActionResponse.d.ts +0 -8
  576. package/lib/form/docs/ActionResponse.js +0 -19
  577. package/lib/form/docs/ActionResponse.less +0 -25
  578. package/lib/form/fieldTypeMap.d.ts +0 -7
  579. package/lib/form/fieldTypeMap.js +0 -54
  580. package/lib/form/global.scss +0 -14
  581. package/lib/form/index.d.ts +0 -125
  582. package/lib/form/index.js +0 -171
  583. package/lib/form/locales/validate.d.ts +0 -159
  584. package/lib/form/locales/validate.js +0 -165
  585. package/lib/form/schemaNameMap.d.ts +0 -5
  586. package/lib/form/schemaNameMap.js +0 -57
  587. package/lib/form/typing.d.ts +0 -194
  588. package/lib/form/typing.js +0 -5
  589. package/lib/form/utils.d.ts +0 -55
  590. package/lib/form/utils.js +0 -169
  591. package/lib/form/warning.d.ts +0 -3
  592. package/lib/form/warning.js +0 -18
  593. package/lib/image/index.d.ts +0 -22
  594. package/lib/image/index.js +0 -83
  595. package/lib/image/index.scss +0 -3
  596. package/lib/info/components/InfoGroup/index.d.ts +0 -5
  597. package/lib/info/components/InfoGroup/index.js +0 -97
  598. package/lib/info/components/InfoGroup/index.scss +0 -64
  599. package/lib/info/components/InfoValueItem/index.d.ts +0 -5
  600. package/lib/info/components/InfoValueItem/index.js +0 -313
  601. package/lib/info/components/InfoValueItem/index.scss +0 -26
  602. package/lib/info/components/ProInfoItem/index.d.ts +0 -5
  603. package/lib/info/components/ProInfoItem/index.js +0 -100
  604. package/lib/info/components/ProInfoItem/index.scss +0 -76
  605. package/lib/info/components/baseInfo/index.d.ts +0 -8
  606. package/lib/info/components/baseInfo/index.js +0 -103
  607. package/lib/info/components/baseInfo/index.scss +0 -6
  608. package/lib/info/components/headerInfo/index.d.ts +0 -8
  609. package/lib/info/components/headerInfo/index.js +0 -76
  610. package/lib/info/components/headerInfo/index.scss +0 -3
  611. package/lib/info/components/tableInfo/index.d.ts +0 -7
  612. package/lib/info/components/tableInfo/index.js +0 -164
  613. package/lib/info/components/tableInfo/index.scss +0 -18
  614. package/lib/info/index.d.ts +0 -10
  615. package/lib/info/index.js +0 -204
  616. package/lib/info/index.scss +0 -9
  617. package/lib/info/typing.d.ts +0 -220
  618. package/lib/info/typing.js +0 -5
  619. package/lib/info/utils/index.d.ts +0 -20
  620. package/lib/info/utils/index.js +0 -60
  621. package/lib/info/utils/layout.d.ts +0 -2
  622. package/lib/info/utils/layout.js +0 -65
  623. package/lib/info/utils/utils.d.ts +0 -1
  624. package/lib/info/utils/utils.js +0 -19
  625. package/lib/layout/index.d.ts +0 -2
  626. package/lib/layout/index.js +0 -10
  627. package/lib/page-container/index.d.ts +0 -3
  628. package/lib/page-container/index.js +0 -24
  629. package/lib/page-header/index.d.ts +0 -74
  630. package/lib/page-header/index.js +0 -224
  631. package/lib/page-header/index.scss +0 -193
  632. package/lib/page-header/xconsole.scss +0 -5
  633. package/lib/sidebar/components/sidebar-container/index.d.ts +0 -5
  634. package/lib/sidebar/components/sidebar-container/index.js +0 -178
  635. package/lib/sidebar/components/sidebar-container/index.scss +0 -73
  636. package/lib/sidebar/components/tree/index.d.ts +0 -6
  637. package/lib/sidebar/components/tree/index.js +0 -298
  638. package/lib/sidebar/components/tree/index.scss +0 -10
  639. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
  640. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -57
  641. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
  642. package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
  643. package/lib/sidebar/components/tree-node/components/IconAction/index.js +0 -90
  644. package/lib/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
  645. package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
  646. package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -71
  647. package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
  648. package/lib/sidebar/components/tree-node/index.d.ts +0 -7
  649. package/lib/sidebar/components/tree-node/index.js +0 -204
  650. package/lib/sidebar/components/tree-node/index.scss +0 -68
  651. package/lib/sidebar/index.d.ts +0 -9
  652. package/lib/sidebar/index.js +0 -228
  653. package/lib/sidebar/index.scss +0 -38
  654. package/lib/sidebar/typing.d.ts +0 -145
  655. package/lib/sidebar/typing.js +0 -5
  656. package/lib/sidebar/utils/action-ref.d.ts +0 -3
  657. package/lib/sidebar/utils/action-ref.js +0 -16
  658. package/lib/sidebar/utils/index.d.ts +0 -364
  659. package/lib/sidebar/utils/index.js +0 -291
  660. package/lib/skeleton/index.d.ts +0 -3
  661. package/lib/skeleton/index.js +0 -24
  662. package/lib/table/components/CardView/index.d.ts +0 -5
  663. package/lib/table/components/CardView/index.js +0 -397
  664. package/lib/table/components/CardView/index.scss +0 -46
  665. package/lib/table/components/EmptyContent/index.d.ts +0 -2
  666. package/lib/table/components/EmptyContent/index.js +0 -19
  667. package/lib/table/components/Filter/index.d.ts +0 -12
  668. package/lib/table/components/Filter/index.js +0 -258
  669. package/lib/table/components/Filter/index.scss +0 -27
  670. package/lib/table/components/Layout/index.d.ts +0 -5
  671. package/lib/table/components/Layout/index.js +0 -185
  672. package/lib/table/components/Layout/index.scss +0 -48
  673. package/lib/table/components/LoadMore/index.d.ts +0 -20
  674. package/lib/table/components/LoadMore/index.js +0 -99
  675. package/lib/table/components/LoadMore/index.scss +0 -19
  676. package/lib/table/components/Pagination/index.d.ts +0 -8
  677. package/lib/table/components/Pagination/index.js +0 -253
  678. package/lib/table/components/Pagination/index.scss +0 -55
  679. package/lib/table/components/QuickAction/index.d.ts +0 -11
  680. package/lib/table/components/QuickAction/index.js +0 -53
  681. package/lib/table/components/ToolBar/CardSwitch.d.ts +0 -8
  682. package/lib/table/components/ToolBar/CardSwitch.js +0 -60
  683. package/lib/table/components/ToolBar/DensityIcon.d.ts +0 -4
  684. package/lib/table/components/ToolBar/DensityIcon.js +0 -114
  685. package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
  686. package/lib/table/components/ToolBar/FilterColumnIcon.js +0 -370
  687. package/lib/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
  688. package/lib/table/components/ToolBar/FullScreenIcon.js +0 -38
  689. package/lib/table/components/ToolBar/Fullscreen.d.ts +0 -10
  690. package/lib/table/components/ToolBar/Fullscreen.js +0 -110
  691. package/lib/table/components/ToolBar/RefreshIcon.d.ts +0 -4
  692. package/lib/table/components/ToolBar/RefreshIcon.js +0 -188
  693. package/lib/table/components/ToolBar/index.d.ts +0 -5
  694. package/lib/table/components/ToolBar/index.js +0 -185
  695. package/lib/table/components/ToolBar/index.scss +0 -177
  696. package/lib/table/index.d.ts +0 -5
  697. package/lib/table/index.js +0 -1237
  698. package/lib/table/index.scss +0 -185
  699. package/lib/table/typing.d.ts +0 -432
  700. package/lib/table/typing.js +0 -5
  701. package/lib/table/utils/columnRender.d.ts +0 -14
  702. package/lib/table/utils/columnRender.js +0 -297
  703. package/lib/table/utils/genAutoWidthColumns.d.ts +0 -30
  704. package/lib/table/utils/genAutoWidthColumns.js +0 -342
  705. package/lib/table/utils/genProColumnToColumn.d.ts +0 -13
  706. package/lib/table/utils/genProColumnToColumn.js +0 -58
  707. package/lib/table/utils/getTableProps.d.ts +0 -2
  708. package/lib/table/utils/getTableProps.js +0 -11
  709. package/lib/table/utils/getTableSortIcons.d.ts +0 -3
  710. package/lib/table/utils/getTableSortIcons.js +0 -29
  711. package/lib/table/utils/index.d.ts +0 -19
  712. package/lib/table/utils/index.js +0 -142
  713. package/lib/table/utils/pureColumnRender.d.ts +0 -9
  714. package/lib/table/utils/pureColumnRender.js +0 -178
  715. package/lib/table/utils/pureGenProColumnToColumn.d.ts +0 -7
  716. package/lib/table/utils/pureGenProColumnToColumn.js +0 -34
  717. package/lib/table/utils/useTableSelection.d.ts +0 -3
  718. package/lib/table/utils/useTableSelection.js +0 -83
  719. package/lib/table/utils/util.d.ts +0 -5
  720. package/lib/table/utils/util.js +0 -25
  721. package/lib/table/xconsole.scss +0 -6
  722. package/lib/timeline/ProTimeLineItem/index.d.ts +0 -5
  723. package/lib/timeline/ProTimeLineItem/index.js +0 -255
  724. package/lib/timeline/ProTimeLineItem/index.scss +0 -235
  725. package/lib/timeline/index.d.ts +0 -10
  726. package/lib/timeline/index.js +0 -79
  727. package/lib/timeline/index.scss +0 -7
  728. package/lib/timeline/typing.d.ts +0 -107
  729. package/lib/timeline/typing.js +0 -5
  730. package/lib/utils/index.d.ts +0 -3
  731. package/lib/utils/index.js +0 -24
  732. package/lib/utils/message.d.ts +0 -3
  733. package/lib/utils/message.js +0 -22
  734. /package/dist/{fonts/txddinmedium.woff → static/txddinmedium.df41cfe2.woff} +0 -0
@@ -1,99 +0,0 @@
1
- "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _utils = require("@teamix/utils");
10
- var _ProForm = _interopRequireDefault(require("../ProForm"));
11
- var _excluded = ["schema", "onChange", "onSubmit"];
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- 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); }
14
- 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; }
15
- 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; }
16
- 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; }
17
- 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; }
18
- 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; }
19
- 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; }
20
- // 初始化Search组件,内置部分属性
21
- var initializeSearch = function initializeSearch(schema) {
22
- var searchName = '';
23
- var initializedSchema = schema.map(function (item) {
24
- if (item.component === 'Search') {
25
- searchName = item.name;
26
- return _objectSpread(_objectSpread({}, item), {}, {
27
- decoratorProps: _objectSpread(_objectSpread({}, item.decoratorProps), {}, {
28
- inset: false
29
- }),
30
- props: _objectSpread({
31
- shape: 'simple'
32
- }, item.props)
33
- });
34
- }
35
- return item;
36
- });
37
- return {
38
- searchName: searchName,
39
- initializedSchema: initializedSchema
40
- };
41
- };
42
- /**
43
- * 简单筛选
44
- */
45
- var SimpleFilter = /*#__PURE__*/(0, _react.memo)(function (props) {
46
- var searchValue = (0, _react.useRef)(undefined);
47
- var schema = props.schema,
48
- onChange = props.onChange,
49
- onSubmit = props.onSubmit,
50
- otherProps = _objectWithoutProperties(props, _excluded);
51
- var prefixCls = (0, _utils.usePrefixCls)('teamix-pro-form-query-filter-simple');
52
- var _initializeSearch = initializeSearch(schema),
53
- searchName = _initializeSearch.searchName,
54
- initializedSchema = _initializeSearch.initializedSchema;
55
- var simpleSchema = (0, _react.useMemo)(function () {
56
- return [{
57
- component: 'FormFlex',
58
- props: {
59
- size: 8
60
- },
61
- children: initializedSchema
62
- }, {
63
- component: 'Submit',
64
- props: {
65
- style: {
66
- display: 'none'
67
- }
68
- }
69
- }];
70
- }, [initializedSchema]);
71
- var onInnerChange = (0, _react.useCallback)(function (values, value, name) {
72
- // 处理Search组件,Select切换时不触发onChange
73
- if (searchName === name) {
74
- if (searchValue.current !== value[1]) {
75
- onChange === null || onChange === void 0 ? void 0 : onChange(values, name, value);
76
- searchValue.current = value[1];
77
- }
78
- } else {
79
- onChange === null || onChange === void 0 ? void 0 : onChange(values, name, value);
80
- }
81
- }, [onChange, searchName, searchValue.current]);
82
- (0, _react.useEffect)(function () {
83
- var _props$form$initialVa, _props$form$initialVa2;
84
- // 处理Search组件,缓存input的默认值
85
- var searchDefaultValue = (_props$form$initialVa = props.form.initialValues) === null || _props$form$initialVa === void 0 ? void 0 : (_props$form$initialVa2 = _props$form$initialVa[searchName]) === null || _props$form$initialVa2 === void 0 ? void 0 : _props$form$initialVa2[1];
86
- searchValue.current = (0, _utils.isValid)(searchDefaultValue) ? searchDefaultValue : '';
87
- }, []);
88
- return /*#__PURE__*/_react.default.createElement(_ProForm.default, _objectSpread(_objectSpread({}, otherProps), {}, {
89
- className: (0, _utils.cls)(prefixCls(), props.className),
90
- schema: simpleSchema,
91
- feedbackLayout: "popover",
92
- breakpoints: [],
93
- inset: true,
94
- onSubmit: onSubmit,
95
- onChange: onInnerChange
96
- }));
97
- });
98
- var _default = SimpleFilter;
99
- exports.default = _default;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { QueryFilterLayout } from './Layout';
3
- import type { QueryFilterProps } from '../typing';
4
- import './index.scss';
5
- /**
6
- * 查询筛选
7
- */
8
- declare const QueryFilter: React.FC<QueryFilterProps>;
9
- export { QueryFilter, QueryFilterLayout };
@@ -1,526 +0,0 @@
1
- "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.QueryFilter = void 0;
8
- Object.defineProperty(exports, "QueryFilterLayout", {
9
- enumerable: true,
10
- get: function get() {
11
- return _Layout.QueryFilterLayout;
12
- }
13
- });
14
- var _react = _interopRequireWildcard(require("react"));
15
- var _lodash = _interopRequireDefault(require("lodash.debounce"));
16
- var _components = require("@alicloudfe/components");
17
- var _core = require("@formily/core");
18
- var _reactive = require("@formily/reactive");
19
- var _utils = require("@teamix/utils");
20
- var _index = _interopRequireDefault(require("../../field/index"));
21
- var _fieldTypeMap = _interopRequireDefault(require("../fieldTypeMap"));
22
- var _useFormDisplayValues = require("../ProForm/useFormDisplayValues");
23
- var _SimpleFilter = _interopRequireDefault(require("./SimpleFilter"));
24
- var _LightFilter = _interopRequireDefault(require("./LightFilter"));
25
- var _AdvancedFilter = _interopRequireDefault(require("./AdvancedFilter"));
26
- var _Layout = require("./Layout");
27
- var _useSpecialProps2 = _interopRequireDefault(require("./useSpecialProps"));
28
- var _useBindUrl2 = _interopRequireDefault(require("./useBindUrl"));
29
- require("./index.scss");
30
- var _excluded = ["addonAfter", "addonBefore", "mode", "purePanel", "expand", "formRef", "defaultFilterValue", "filterValues", "filterDebounce", "bindUrl", "onFilter", "onInit", "onReset", "onExpand", "onChange", "form"];
31
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32
- 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); }
33
- 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; }
34
- 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; }
35
- 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; }
36
- 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; }
37
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
38
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
40
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
41
- 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; }
42
- 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); } }
43
- 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); }); }; }
44
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
- 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."); }
46
- 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); }
47
- 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; }
48
- 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; }
49
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
50
- 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; }
51
- 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; }
52
- /**
53
- * 查询筛选
54
- */
55
- var QueryFilter = /*#__PURE__*/(0, _react.memo)(function (props) {
56
- var addonAfter = props.addonAfter,
57
- addonBefore = props.addonBefore,
58
- mode = props.mode,
59
- purePanel = props.purePanel,
60
- expand = props.expand,
61
- formRef = props.formRef,
62
- defaultFilterValue = props.defaultFilterValue,
63
- filterValues = props.filterValues,
64
- filterDebounce = props.filterDebounce,
65
- bindUrl = props.bindUrl,
66
- outerFilter = props.onFilter,
67
- outerInit = props.onInit,
68
- outerReset = props.onReset,
69
- onExpand = props.onExpand,
70
- onChange = props.onChange,
71
- form = props.form,
72
- otherProps = _objectWithoutProperties(props, _excluded);
73
- var _useSpecialProps = (0, _useSpecialProps2.default)(props),
74
- hasRequired = _useSpecialProps.hasRequired;
75
- var _useState = (0, _react.useState)(!!expand),
76
- _useState2 = _slicedToArray(_useState, 2),
77
- panelVisible = _useState2[0],
78
- setPanelVisible = _useState2[1];
79
- var _useState3 = (0, _react.useState)([]),
80
- _useState4 = _slicedToArray(_useState3, 2),
81
- tagDataSource = _useState4[0],
82
- setTagDataSource = _useState4[1];
83
- var filterItem = (0, _react.useRef)([]);
84
- var defaultFormName = mode === 'panel' ? 'advanced' : 'simple';
85
- var currentFormName = (0, _react.useRef)(defaultFormName);
86
- var currentForm = (0, _react.useRef)();
87
- var activeFilterValueRef = (0, _react.useRef)();
88
- var prefixCls = (0, _utils.usePrefixCls)('teamix-pro-form-query-filter');
89
- var debounceFun = (0, _lodash.default)(function (fun, props) {
90
- return fun(props);
91
- }, filterDebounce);
92
- // 绑定URL
93
- var _useBindUrl = (0, _useBindUrl2.default)(bindUrl, {
94
- onInit: outerInit,
95
- onFilter: outerFilter,
96
- onReset: outerReset
97
- }, currentForm),
98
- setValuesByUrlState = _useBindUrl.setValuesByUrlState,
99
- onInit = _useBindUrl.onInit,
100
- onFilter = _useBindUrl.onFilter,
101
- onReset = _useBindUrl.onReset;
102
- // onInit
103
- var initialRequestRef = (0, _react.useRef)(!!(props === null || props === void 0 ? void 0 : props.initialRequest));
104
- var filterEnable = (0, _react.useRef)('waiting');
105
- var onFormInit = /*#__PURE__*/function () {
106
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(form) {
107
- var loadingField;
108
- return _regeneratorRuntime().wrap(function _callee$(_context) {
109
- while (1) {
110
- switch (_context.prev = _context.next) {
111
- case 0:
112
- form.setState({
113
- loading: initialRequestRef.current
114
- }); // 借用 form.loading 触发 onFormReact
115
- loadingField = Object.values(form.fields).filter(function (field) {
116
- return !!field.loading;
117
- }); // 等待mounted + 字段loading结束 + initialRequest结束 => 表单默认值初始化完成
118
- if (!(form.mounted && !loadingField.length && !form.loading)) {
119
- _context.next = 10;
120
- break;
121
- }
122
- onFormInit = undefined; // init后销毁 isFormInit 方法
123
- setValuesByUrlState(form); // 配置URL参数到表单
124
- if (!outerInit) {
125
- _context.next = 10;
126
- break;
127
- }
128
- _context.next = 8;
129
- return form.validate();
130
- case 8:
131
- onInit((0, _reactive.toJS)(form.values));
132
- // 设置Tag
133
- if (mode === 'panel') {
134
- configFilterItem(advancedForm);
135
- !panelVisible && configTag();
136
- }
137
- case 10:
138
- case "end":
139
- return _context.stop();
140
- }
141
- }
142
- }, _callee);
143
- }));
144
- return function onFormInit(_x) {
145
- return _ref.apply(this, arguments);
146
- };
147
- }();
148
- // 配置当前激活的form实例
149
- var setCurrentForm = function setCurrentForm(formName) {
150
- currentFormName.current = formName;
151
- currentForm.current = formMap[formName];
152
- var form = currentForm.current;
153
- if (formRef) {
154
- formRef.current = form;
155
- // 自定义updateTags方法
156
- if (!formRef.current.updateTags) {
157
- formRef.current.updateTags = function () {
158
- updateTags(form);
159
- };
160
- }
161
- // 自定义setAsyncValues方法
162
- if (!formRef.current.setAsyncValues) {
163
- formRef.current.setAsyncValues = /*#__PURE__*/function () {
164
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(values) {
165
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
166
- while (1) {
167
- switch (_context2.prev = _context2.next) {
168
- case 0:
169
- form.setValues(values);
170
- if (!(filterEnable.current === 'filter' && formName === 'advanced')) {
171
- _context2.next = 6;
172
- break;
173
- }
174
- _context2.next = 4;
175
- return form.validate();
176
- case 4:
177
- onFilter((0, _reactive.toJS)(form.values));
178
- updateTags(form);
179
- case 6:
180
- case "end":
181
- return _context2.stop();
182
- }
183
- }
184
- }, _callee2);
185
- }));
186
- return function (_x2) {
187
- return _ref2.apply(this, arguments);
188
- };
189
- }();
190
- }
191
- // 自定义triggerFilter方法
192
- if (!formRef.current.triggerFilter) {
193
- formRef.current.triggerFilter = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
194
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
195
- while (1) {
196
- switch (_context3.prev = _context3.next) {
197
- case 0:
198
- _context3.next = 2;
199
- return form.validate();
200
- case 2:
201
- onFilter((0, _reactive.toJS)(form.values));
202
- if (formName === 'advanced') {
203
- updateTags(form);
204
- }
205
- case 4:
206
- case "end":
207
- return _context3.stop();
208
- }
209
- }
210
- }, _callee3);
211
- }));
212
- }
213
- // 自定义triggerReset方法
214
- if (!formRef.current.triggerReset) {
215
- formRef.current.triggerReset = /*#__PURE__*/function () {
216
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config) {
217
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
218
- while (1) {
219
- switch (_context4.prev = _context4.next) {
220
- case 0:
221
- simpleForm.reset('*', config);
222
- lightForm.reset('*', config);
223
- advancedForm.reset('*', config);
224
- if (formName === 'advanced') {
225
- onReset((0, _reactive.toJS)(advancedForm.values));
226
- updateTags(form);
227
- }
228
- case 4:
229
- case "end":
230
- return _context4.stop();
231
- }
232
- }
233
- }, _callee4);
234
- }));
235
- return function (_x3) {
236
- return _ref4.apply(this, arguments);
237
- };
238
- }();
239
- }
240
- // 自定义updateDataSource
241
- if (!formRef.current.updateDataSource) {
242
- formRef.current.updateDataSource = function (query, params) {
243
- [simpleForm, lightForm, advancedForm].forEach(function (f) {
244
- var $query = f.query(query).take();
245
- if ($query) {
246
- $query.data.refresh = params;
247
- }
248
- });
249
- };
250
- }
251
- }
252
- };
253
- // 创建简单筛选表单实例
254
- var simpleForm = (0, _react.useMemo)(function () {
255
- return (0, _core.createForm)({
256
- validateFirst: true,
257
- effects: function effects() {
258
- (0, _core.onFormReact)(function (form) {
259
- if (mode === 'inline') {
260
- var _onFormInit;
261
- (_onFormInit = onFormInit) === null || _onFormInit === void 0 ? void 0 : _onFormInit(form).finally(function () {
262
- return filterEnable.current = 'filter';
263
- });
264
- }
265
- });
266
- }
267
- });
268
- }, [form]);
269
- // 创建轻量筛选表单实例
270
- var lightForm = (0, _react.useMemo)(function () {
271
- return (0, _core.createForm)({
272
- validateFirst: true,
273
- effects: function effects() {
274
- (0, _core.onFormInputChange)(function () {
275
- setCurrentForm('light'); // 主动修改轻量筛选值
276
- });
277
- }
278
- });
279
- }, [form]);
280
- // 创建高级筛选表单实例
281
- var advancedForm = (0, _react.useMemo)(function () {
282
- return (0, _core.createForm)({
283
- validateFirst: true,
284
- effects: function effects() {
285
- (0, _core.onFormReact)(function (form) {
286
- if (mode === 'panel') {
287
- var _onFormInit2;
288
- (_onFormInit2 = onFormInit) === null || _onFormInit2 === void 0 ? void 0 : _onFormInit2(form).finally(function () {
289
- return filterEnable.current = 'filter';
290
- });
291
- }
292
- });
293
- (0, _core.onFormInputChange)(function (form) {
294
- setCurrentForm('advanced'); // 主动修改高级筛选值
295
- });
296
- }
297
- });
298
- }, [form]);
299
- var formMap = {
300
- simple: simpleForm,
301
- light: lightForm,
302
- advanced: advancedForm
303
- };
304
- // 获取筛选数据Label
305
- var getFilterDisplayValues = (0, _react.useCallback)(function (form) {
306
- var displayValues = (0, _useFormDisplayValues.getFormDisplayValues)(form);
307
- var originalData = Object.entries(displayValues);
308
- var filterData = [];
309
- originalData.forEach(function (_ref5) {
310
- var _data$displayValue;
311
- var _ref6 = _slicedToArray(_ref5, 2),
312
- key = _ref6[0],
313
- data = _ref6[1];
314
- var value = (_data$displayValue = data.displayValue) !== null && _data$displayValue !== void 0 ? _data$displayValue : data.value;
315
- var component = data.component;
316
- if (component === 'SelectGroup') {
317
- var _data$value;
318
- (_data$value = data.value) === null || _data$value === void 0 ? void 0 : _data$value.forEach(function (item, index) {
319
- filterData.push({
320
- key: key,
321
- type: _fieldTypeMap.default['MultipleSelect'],
322
- label: item.key,
323
- value: item.value,
324
- index: index
325
- });
326
- });
327
- } else if ((0, _utils.isUsable)(value)) {
328
- filterData.push({
329
- key: key,
330
- type: _fieldTypeMap.default[component] || 'text',
331
- label: data.title,
332
- value: value
333
- });
334
- }
335
- });
336
- return filterData;
337
- }, []);
338
- // 设置筛选数据
339
- var configFilterItem = (0, _react.useCallback)(function (form) {
340
- filterItem.current = getFilterDisplayValues(form);
341
- }, []);
342
- // 设置标签数据
343
- var configTag = (0, _react.useCallback)(function () {
344
- setTagDataSource(filterItem.current);
345
- }, []);
346
- // 更新标签数据
347
- var updateTags = (0, _react.useCallback)(function (form) {
348
- configFilterItem(form);
349
- configTag();
350
- }, []);
351
- // 展开收起高级筛选
352
- var toggleAdvancedFilter = (0, _react.useCallback)(function () {
353
- var result = !panelVisible;
354
- if (result) {
355
- // 展开高级筛选,Light回填Advanced
356
- if (currentFormName.current === 'light') {
357
- var key = activeFilterValueRef.current;
358
- var value = lightForm.values[key];
359
- advancedForm.setValuesIn(key, value);
360
- }
361
- } else {
362
- // 收起高级筛选,配置标签数据
363
- configTag();
364
- }
365
- setPanelVisible(result);
366
- onExpand === null || onExpand === void 0 ? void 0 : onExpand(result);
367
- }, [panelVisible, configTag]);
368
- // 简单搜索Filter
369
- var onSimpleFilter = (0, _react.useCallback)( /*#__PURE__*/function () {
370
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(values) {
371
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
372
- while (1) {
373
- switch (_context5.prev = _context5.next) {
374
- case 0:
375
- _context5.next = 2;
376
- return simpleForm.validate();
377
- case 2:
378
- onFilter(values);
379
- case 3:
380
- case "end":
381
- return _context5.stop();
382
- }
383
- }
384
- }, _callee5);
385
- }));
386
- return function (_x4) {
387
- return _ref7.apply(this, arguments);
388
- };
389
- }(), [onFilter]);
390
- // 简单搜索Change
391
- var onSimpleChange = (0, _react.useCallback)(function (values, fieldValue, fieldName) {
392
- if (currentFormName.current === 'simple') {
393
- onChange === null || onChange === void 0 ? void 0 : onChange(values, fieldValue, fieldName);
394
- if (filterEnable.current === 'filter') {
395
- debounceFun(onSimpleFilter, values);
396
- }
397
- }
398
- }, [onChange, onSimpleFilter]);
399
- // 轻量搜索Filter
400
- var onLightFilter = (0, _react.useCallback)(function (values) {
401
- var _Object$keys;
402
- onFilter(values);
403
- // 清空advancedForm的值
404
- var clearKeys = {};
405
- (_Object$keys = Object.keys(advancedForm.values)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.forEach(function (key) {
406
- clearKeys[key] = undefined;
407
- });
408
- advancedForm.setValues(clearKeys);
409
- updateTags(advancedForm);
410
- }, [onFilter]);
411
- // 轻量搜索Change
412
- var onLightChange = (0, _react.useCallback)(function (values, fieldValue, fieldName) {
413
- if (currentFormName.current === 'light') {
414
- onChange === null || onChange === void 0 ? void 0 : onChange(values, fieldValue, fieldName);
415
- if (filterEnable.current === 'filter') {
416
- debounceFun(onLightFilter, values);
417
- }
418
- }
419
- }, [onChange, onLightFilter]);
420
- // 高级搜索Filter
421
- var onAdvancedFilter = (0, _react.useCallback)(function (values) {
422
- setCurrentForm('advanced');
423
- onFilter(values);
424
- configFilterItem(advancedForm);
425
- // 清空lightForm的值
426
- lightForm.reset('*', {
427
- forceClear: true
428
- });
429
- }, [onFilter]);
430
- // 高级搜索Reset
431
- var onAdvancedReset = (0, _react.useCallback)(function () {
432
- setCurrentForm('advanced');
433
- onReset((0, _reactive.toJS)(advancedForm.values));
434
- configFilterItem(advancedForm);
435
- // 清空lightForm的值
436
- lightForm.reset('*', {
437
- forceClear: true
438
- });
439
- }, [onReset]);
440
- // 高级搜索Change
441
- var onAdvancedChange = (0, _react.useCallback)(function (values, fieldValue, fieldName) {
442
- if (currentFormName.current === 'advanced') {
443
- onChange === null || onChange === void 0 ? void 0 : onChange(values, fieldValue, fieldName);
444
- }
445
- }, [onChange]);
446
- // 关闭标签清空表单字段值
447
- var onTagClose = (0, _react.useCallback)(function (key, index) {
448
- var newValue = undefined;
449
- if ((0, _utils.isNum)(index)) {
450
- newValue = _toConsumableArray(advancedForm.getValuesIn(key));
451
- newValue.splice(index, 1);
452
- }
453
- advancedForm.setValuesIn(key, newValue);
454
- updateTags(advancedForm);
455
- onFilter((0, _reactive.toJS)(advancedForm.values));
456
- }, [onFilter]);
457
- // initialRequest 的回调
458
- var onInitialComplete = (0, _react.useCallback)(function (form) {
459
- initialRequestRef.current = false;
460
- form.setState({
461
- loading: initialRequestRef.current
462
- });
463
- }, []);
464
- // 组件挂载
465
- (0, _react.useEffect)(function () {
466
- setCurrentForm(currentFormName.current);
467
- }, []);
468
- return /*#__PURE__*/_react.default.createElement(_Layout.QueryFilterLayout, {
469
- className: (0, _utils.cls)(prefixCls(), props.className),
470
- addonBefore: addonBefore,
471
- addonAfter: addonAfter,
472
- expand: panelVisible,
473
- onExpand: toggleAdvancedFilter,
474
- count: tagDataSource.length,
475
- inlineContent: mode === 'panel' ? /*#__PURE__*/_react.default.createElement("div", {
476
- className: (0, _utils.cls)(prefixCls('inline', {
477
- 'inline-hidden': purePanel || hasRequired
478
- }))
479
- }, /*#__PURE__*/_react.default.createElement(_LightFilter.default, _objectSpread(_objectSpread({}, otherProps), {}, {
480
- defaultFilterValue: defaultFilterValue,
481
- filterValues: filterValues,
482
- activeFilterValueRef: activeFilterValueRef,
483
- form: lightForm,
484
- onChange: onLightChange
485
- }))) : /*#__PURE__*/_react.default.createElement("div", {
486
- className: prefixCls('inline')
487
- }, /*#__PURE__*/_react.default.createElement(_SimpleFilter.default, _objectSpread(_objectSpread({}, otherProps), {}, {
488
- form: simpleForm,
489
- onChange: onSimpleChange,
490
- onSubmit: onSimpleFilter,
491
- onInitialComplete: onInitialComplete
492
- }))),
493
- panelContent: mode === 'panel' ? /*#__PURE__*/_react.default.createElement(_AdvancedFilter.default, _objectSpread(_objectSpread({}, otherProps), {}, {
494
- form: advancedForm,
495
- onChange: onAdvancedChange,
496
- onSubmit: onAdvancedFilter,
497
- onReset: onAdvancedReset,
498
- onInitialComplete: onInitialComplete
499
- })) : null
500
- }, mode === 'panel' && !panelVisible ? /*#__PURE__*/_react.default.createElement(_components.Tag.Group, null, tagDataSource.map(function (_ref8) {
501
- var key = _ref8.key,
502
- label = _ref8.label,
503
- value = _ref8.value,
504
- type = _ref8.type,
505
- index = _ref8.index;
506
- return /*#__PURE__*/_react.default.createElement(_components.Tag.Closeable, {
507
- key: (0, _utils.isNum)(index) ? key + label : key,
508
- afterClose: function afterClose() {
509
- return onTagClose(key, index);
510
- }
511
- }, /*#__PURE__*/_react.default.createElement("span", {
512
- className: prefixCls('tag-title')
513
- }, label), /*#__PURE__*/_react.default.createElement("span", {
514
- className: prefixCls('tag-content')
515
- }, /*#__PURE__*/_react.default.createElement(_index.default, {
516
- type: type,
517
- value: value
518
- })));
519
- })) : null);
520
- });
521
- exports.QueryFilter = QueryFilter;
522
- QueryFilter.defaultProps = {
523
- mode: 'inline',
524
- expand: false,
525
- filterDebounce: 300
526
- };