@nocobase/client 0.9.1-alpha.2 → 0.9.2-alpha.1

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 (1456) hide show
  1. package/.umirc.ts +2 -2
  2. package/es/acl/ACLProvider.js +35 -125
  3. package/es/acl/ACLShortcut.js +11 -18
  4. package/es/acl/Configuration/ConfigureCenter.js +57 -101
  5. package/es/acl/Configuration/MenuConfigure.js +92 -147
  6. package/es/acl/Configuration/MenuItemsProvider.js +0 -7
  7. package/es/acl/Configuration/PermisionProvider.js +54 -84
  8. package/es/acl/Configuration/RoleConfigure.js +22 -43
  9. package/es/acl/Configuration/RoleTable.js +5 -9
  10. package/es/acl/Configuration/RolesResourcesActions.js +10 -54
  11. package/es/acl/Configuration/ScopeSelect.js +5 -15
  12. package/es/acl/Configuration/StrategyActions.js +10 -31
  13. package/es/acl/Configuration/schemas/roles.js +4 -4
  14. package/es/acl/Configuration/schemas/scopes.js +4 -8
  15. package/es/acl/Configuration/schemas/useRoleResourceValues.js +5 -8
  16. package/es/acl/Configuration/schemas/useSaveRoleResourceAction.js +23 -30
  17. package/es/acl/style.less +1 -1
  18. package/es/antd-config-provider/index.js +30 -41
  19. package/es/antd-config-provider/loadConstrueLocale.js +4 -9
  20. package/es/api-client/APIClient.js +10 -42
  21. package/es/api-client/APIClientProvider.js +1 -1
  22. package/es/api-client/hooks/assign.js +0 -18
  23. package/es/api-client/hooks/useRequest.js +35 -59
  24. package/es/appInfo/CurrentAppInfoProvider.js +16 -3
  25. package/es/application/Application.js +87 -121
  26. package/es/application/compose.js +12 -23
  27. package/es/async-data-provider/index.js +7 -12
  28. package/es/block-provider/BlockProvider.d.ts +1 -0
  29. package/es/block-provider/BlockProvider.js +56 -96
  30. package/es/block-provider/BlockSchemaComponentProvider.js +10 -5
  31. package/es/block-provider/CalendarBlockProvider.d.ts +1 -0
  32. package/es/block-provider/CalendarBlockProvider.js +16 -19
  33. package/es/block-provider/DetailsBlockProvider.js +11 -16
  34. package/es/block-provider/FilterFormBlockProvider.d.ts +1 -0
  35. package/es/block-provider/FilterFormBlockProvider.js +16 -0
  36. package/es/block-provider/FormBlockProvider.d.ts +3 -0
  37. package/es/block-provider/FormBlockProvider.js +71 -29
  38. package/es/block-provider/FormFieldProvider.js +17 -21
  39. package/es/block-provider/GanttBlockProvider.d.ts +11 -0
  40. package/es/block-provider/GanttBlockProvider.js +150 -0
  41. package/es/block-provider/KanbanBlockProvider.js +54 -110
  42. package/es/block-provider/SharedFilterProvider.js +10 -25
  43. package/es/block-provider/TableBlockProvider.d.ts +3 -0
  44. package/es/block-provider/TableBlockProvider.js +164 -96
  45. package/es/block-provider/TableFieldProvider.js +107 -160
  46. package/es/block-provider/TableSelectorProvider.d.ts +18 -1
  47. package/es/block-provider/TableSelectorProvider.js +106 -105
  48. package/es/block-provider/hooks/index.d.ts +37 -0
  49. package/es/block-provider/hooks/index.js +1093 -972
  50. package/es/block-provider/index.d.ts +4 -0
  51. package/es/block-provider/index.js +5 -1
  52. package/es/board/Board.js +110 -153
  53. package/es/board/Card.js +7 -9
  54. package/es/board/CardAdder.js +6 -17
  55. package/es/board/CardForm.js +1 -5
  56. package/es/board/Column.js +27 -39
  57. package/es/board/ColumnAdder.js +5 -16
  58. package/es/board/ColumnForm.js +1 -5
  59. package/es/board/DefaultCard.js +3 -5
  60. package/es/board/DefaultColumnHeader.js +17 -34
  61. package/es/board/Kanban.js +5 -16
  62. package/es/board/helpers.js +7 -24
  63. package/es/board/services.js +4 -12
  64. package/es/board/utils.js +5 -24
  65. package/es/board/withDroppable.js +5 -11
  66. package/es/china-region/index.js +5 -21
  67. package/es/collection-manager/CollectionField.js +16 -42
  68. package/es/collection-manager/CollectionFieldProvider.js +5 -10
  69. package/es/collection-manager/CollectionHistoryProvider.js +24 -33
  70. package/es/collection-manager/CollectionManagerProvider.js +86 -121
  71. package/es/collection-manager/CollectionManagerSchemaComponentProvider.js +4 -4
  72. package/es/collection-manager/CollectionManagerShortcut.js +19 -23
  73. package/es/collection-manager/CollectionProvider.js +4 -8
  74. package/es/collection-manager/Configuration/AddCategoryAction.js +36 -56
  75. package/es/collection-manager/Configuration/AddCollectionAction.js +106 -129
  76. package/es/collection-manager/Configuration/AddFieldAction.js +87 -108
  77. package/es/collection-manager/Configuration/AddSubFieldAction.js +36 -56
  78. package/es/collection-manager/Configuration/CollectionFieldsTable.js +10 -16
  79. package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +37 -86
  80. package/es/collection-manager/Configuration/ConfigurationTable.js +158 -113
  81. package/es/collection-manager/Configuration/ConfigurationTabs.js +94 -146
  82. package/es/collection-manager/Configuration/EditCategoryAction.js +44 -68
  83. package/es/collection-manager/Configuration/EditCollectionAction.js +59 -94
  84. package/es/collection-manager/Configuration/EditFieldAction.js +102 -133
  85. package/es/collection-manager/Configuration/EditSubFieldAction.js +54 -85
  86. package/es/collection-manager/Configuration/OverridingCollectionField.js +88 -134
  87. package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +2 -0
  88. package/es/collection-manager/Configuration/SyncFieldsAction.js +236 -0
  89. package/es/collection-manager/Configuration/ViewInheritedField.js +51 -81
  90. package/es/collection-manager/Configuration/components/CollectionFieldInterface.js +1 -3
  91. package/es/collection-manager/Configuration/components/CollectionTemplate.js +1 -3
  92. package/es/collection-manager/Configuration/components/FieldSummary.js +2 -8
  93. package/es/collection-manager/Configuration/components/TemplateSummay.d.ts +2 -0
  94. package/es/collection-manager/Configuration/components/TemplateSummay.js +26 -0
  95. package/es/collection-manager/Configuration/components/index.js +5 -18
  96. package/es/collection-manager/Configuration/index.d.ts +1 -0
  97. package/es/collection-manager/Configuration/index.js +1 -0
  98. package/es/collection-manager/Configuration/interfaces.js +4 -7
  99. package/es/collection-manager/Configuration/schemas/collectionFields.js +17 -3
  100. package/es/collection-manager/Configuration/schemas/collections.js +22 -30
  101. package/es/collection-manager/Configuration/templates.js +6 -6
  102. package/es/collection-manager/ResourceActionProvider.js +18 -38
  103. package/es/collection-manager/action-hooks.d.ts +2 -0
  104. package/es/collection-manager/action-hooks.js +422 -432
  105. package/es/collection-manager/hooks/useCollection.d.ts +4 -0
  106. package/es/collection-manager/hooks/useCollection.js +12 -9
  107. package/es/collection-manager/hooks/useCollectionDataSource.d.ts +1 -1
  108. package/es/collection-manager/hooks/useCollectionDataSource.js +5 -6
  109. package/es/collection-manager/hooks/useCollectionField.js +4 -6
  110. package/es/collection-manager/hooks/useCollectionManager.d.ts +23 -3
  111. package/es/collection-manager/hooks/useCollectionManager.js +125 -90
  112. package/es/collection-manager/hooks/useOptions.js +5 -8
  113. package/es/collection-manager/index.d.ts +1 -1
  114. package/es/collection-manager/index.js +1 -1
  115. package/es/collection-manager/interfaces/attachment.js +5 -9
  116. package/es/collection-manager/interfaces/checkbox.js +5 -4
  117. package/es/collection-manager/interfaces/checkboxGroup.js +5 -4
  118. package/es/collection-manager/interfaces/chinaRegion.js +5 -8
  119. package/es/collection-manager/interfaces/createdAt.js +5 -4
  120. package/es/collection-manager/interfaces/createdBy.js +5 -4
  121. package/es/collection-manager/interfaces/datetime.js +5 -4
  122. package/es/collection-manager/interfaces/email.js +5 -4
  123. package/es/collection-manager/interfaces/icon.js +6 -5
  124. package/es/collection-manager/interfaces/id.js +1 -0
  125. package/es/collection-manager/interfaces/index.d.ts +1 -0
  126. package/es/collection-manager/interfaces/index.js +2 -1
  127. package/es/collection-manager/interfaces/input.js +5 -5
  128. package/es/collection-manager/interfaces/integer.js +6 -5
  129. package/es/collection-manager/interfaces/json.js +8 -6
  130. package/es/collection-manager/interfaces/linkTo.js +25 -12
  131. package/es/collection-manager/interfaces/m2m.js +21 -14
  132. package/es/collection-manager/interfaces/m2o.js +21 -10
  133. package/es/collection-manager/interfaces/markdown.js +5 -5
  134. package/es/collection-manager/interfaces/multipleSelect.js +5 -4
  135. package/es/collection-manager/interfaces/number.js +6 -5
  136. package/es/collection-manager/interfaces/o2m.js +12 -12
  137. package/es/collection-manager/interfaces/o2o.js +42 -30
  138. package/es/collection-manager/interfaces/password.js +6 -5
  139. package/es/collection-manager/interfaces/percent.js +11 -15
  140. package/es/collection-manager/interfaces/phone.js +8 -6
  141. package/es/collection-manager/interfaces/properties/index.js +7 -6
  142. package/es/collection-manager/interfaces/properties/operators.d.ts +11 -19
  143. package/es/collection-manager/interfaces/properties/operators.js +6 -21
  144. package/es/collection-manager/interfaces/radioGroup.js +5 -4
  145. package/es/collection-manager/interfaces/richText.js +5 -5
  146. package/es/collection-manager/interfaces/select.js +5 -4
  147. package/es/collection-manager/interfaces/subTable.js +15 -12
  148. package/es/collection-manager/interfaces/textarea.js +5 -5
  149. package/es/collection-manager/interfaces/time.js +5 -4
  150. package/es/collection-manager/interfaces/updatedAt.js +5 -4
  151. package/es/collection-manager/interfaces/updatedBy.js +5 -4
  152. package/es/collection-manager/interfaces/url.d.ts +2 -0
  153. package/es/collection-manager/interfaces/url.js +30 -0
  154. package/es/collection-manager/sub-table.js +79 -126
  155. package/es/collection-manager/templates/calendar.js +11 -10
  156. package/es/collection-manager/templates/components/PreviewFields.d.ts +2 -0
  157. package/es/collection-manager/templates/components/PreviewFields.js +256 -0
  158. package/es/collection-manager/templates/components/PreviewTable.d.ts +1 -0
  159. package/es/collection-manager/templates/components/PreviewTable.js +133 -0
  160. package/es/collection-manager/templates/expression.d.ts +2 -0
  161. package/es/collection-manager/templates/expression.js +52 -0
  162. package/es/collection-manager/templates/index.d.ts +3 -0
  163. package/es/collection-manager/templates/index.js +4 -1
  164. package/es/collection-manager/templates/properties/index.d.ts +1 -1
  165. package/es/collection-manager/templates/properties/index.js +5 -11
  166. package/es/collection-manager/templates/tree.d.ts +2 -0
  167. package/es/collection-manager/templates/tree.js +70 -0
  168. package/es/collection-manager/templates/types.d.ts +6 -0
  169. package/es/collection-manager/templates/view.d.ts +2 -0
  170. package/es/collection-manager/templates/view.js +135 -0
  171. package/es/collection-manager/types.d.ts +2 -0
  172. package/es/document-title/index.js +7 -17
  173. package/es/filter-provider/FilterProvider.d.ts +45 -0
  174. package/es/filter-provider/FilterProvider.js +143 -0
  175. package/es/filter-provider/index.d.ts +2 -0
  176. package/es/filter-provider/index.js +2 -0
  177. package/es/filter-provider/utils.d.ts +27 -0
  178. package/es/filter-provider/utils.js +170 -0
  179. package/es/formula/Expression.js +48 -112
  180. package/es/formula/Result.js +14 -33
  181. package/es/i18n/i18n.js +2 -3
  182. package/es/icon/Icon.js +7 -18
  183. package/es/index.d.ts +1 -1
  184. package/es/index.js +1 -1
  185. package/es/locale/en_US.d.ts +67 -4
  186. package/es/locale/en_US.js +68 -5
  187. package/es/locale/ja_JP.d.ts +54 -2
  188. package/es/locale/ja_JP.js +55 -4
  189. package/es/locale/pt_BR.d.ts +650 -0
  190. package/es/locale/pt_BR.js +649 -0
  191. package/es/locale/ru_RU.d.ts +29 -2
  192. package/es/locale/ru_RU.js +30 -3
  193. package/es/locale/tr_TR.d.ts +30 -2
  194. package/es/locale/tr_TR.js +31 -3
  195. package/es/locale/zh_CN.d.ts +84 -6
  196. package/es/locale/zh_CN.js +85 -7
  197. package/es/plugin-manager/PinnedPluginListProvider.d.ts +5 -0
  198. package/es/plugin-manager/PinnedPluginListProvider.js +50 -0
  199. package/es/plugin-manager/PluginManager.js +23 -52
  200. package/es/plugin-manager/PluginManagerProvider.js +1 -1
  201. package/es/plugin-manager/context.d.ts +3 -0
  202. package/es/plugin-manager/context.js +4 -1
  203. package/es/plugin-manager/index.d.ts +1 -0
  204. package/es/plugin-manager/index.js +1 -0
  205. package/es/pm/PluginManagerLink.js +24 -49
  206. package/es/pm/index.js +250 -209
  207. package/es/powered-by/index.js +1 -4
  208. package/es/record-provider/index.js +8 -14
  209. package/es/route-switch/RouteSwitch.js +5 -11
  210. package/es/route-switch/RouteSwitchProvider.js +10 -12
  211. package/es/route-switch/antd/admin-layout/index.js +45 -82
  212. package/es/route-switch/antd/auth-layout/index.js +1 -5
  213. package/es/route-switch/hooks.js +2 -6
  214. package/es/schema-component/antd/AntdSchemaComponentProvider.js +4 -4
  215. package/es/schema-component/antd/action/Action.Container.js +5 -8
  216. package/es/schema-component/antd/action/Action.Designer.js +54 -132
  217. package/es/schema-component/antd/action/Action.Drawer.js +11 -20
  218. package/es/schema-component/antd/action/Action.Link.js +4 -4
  219. package/es/schema-component/antd/action/Action.Modal.d.ts +2 -1
  220. package/es/schema-component/antd/action/Action.Modal.js +11 -19
  221. package/es/schema-component/antd/action/Action.Page.js +5 -15
  222. package/es/schema-component/antd/action/Action.js +44 -65
  223. package/es/schema-component/antd/action/ActionBar.js +11 -24
  224. package/es/schema-component/antd/action/hooks.d.ts +1 -0
  225. package/es/schema-component/antd/action/hooks.js +41 -50
  226. package/es/schema-component/antd/action/types.d.ts +1 -1
  227. package/es/schema-component/antd/action/utils.d.ts +1 -1
  228. package/es/schema-component/antd/action/utils.js +26 -19
  229. package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +19 -13
  230. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +1 -0
  231. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +34 -0
  232. package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +1 -0
  233. package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.js +87 -0
  234. package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.js +13 -17
  235. package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +91 -29
  236. package/es/schema-component/antd/association-filter/AssociationFilter.Item.js +51 -110
  237. package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +3 -0
  238. package/es/schema-component/antd/association-filter/AssociationFilter.js +9 -11
  239. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +2 -7
  240. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +4 -8
  241. package/es/schema-component/antd/association-filter/AssociationFilterProvider.d.ts +1 -0
  242. package/es/schema-component/antd/association-filter/AssociationFilterProvider.js +2 -0
  243. package/es/schema-component/antd/association-filter/utilts.d.ts +2 -0
  244. package/es/schema-component/antd/association-filter/utilts.js +3 -0
  245. package/es/schema-component/antd/association-select/AssociationSelect.d.ts +1 -0
  246. package/es/schema-component/antd/association-select/AssociationSelect.js +495 -88
  247. package/es/schema-component/antd/association-select/ReadPretty.js +4 -4
  248. package/es/schema-component/antd/association-select/useServiceOptions.js +8 -15
  249. package/es/schema-component/antd/block-item/BlockItem.js +0 -2
  250. package/es/schema-component/antd/block-item/TestDesigner.js +1 -2
  251. package/es/schema-component/antd/calendar/Calendar.Designer.js +23 -29
  252. package/es/schema-component/antd/calendar/Calendar.js +30 -63
  253. package/es/schema-component/antd/calendar/DeleteEvent.js +53 -81
  254. package/es/schema-component/antd/calendar/Nav.js +2 -4
  255. package/es/schema-component/antd/calendar/Title.js +5 -8
  256. package/es/schema-component/antd/calendar/Today.js +3 -6
  257. package/es/schema-component/antd/calendar/ViewSelect.js +5 -7
  258. package/es/schema-component/antd/calendar/components/Header.js +7 -10
  259. package/es/schema-component/antd/calendar/style.less +1 -1
  260. package/es/schema-component/antd/card-item/CardItem.js +5 -9
  261. package/es/schema-component/antd/cascader/Cascader.js +19 -36
  262. package/es/schema-component/antd/cascader/ReadPretty.js +3 -13
  263. package/es/schema-component/antd/checkbox/Checkbox.js +5 -8
  264. package/es/schema-component/antd/collection-select/CollectionSelect.d.ts +8 -0
  265. package/es/schema-component/antd/collection-select/CollectionSelect.js +61 -0
  266. package/es/schema-component/antd/collection-select/index.d.ts +1 -0
  267. package/es/schema-component/antd/collection-select/index.js +1 -0
  268. package/es/schema-component/antd/color-select/ColorSelect.js +4 -6
  269. package/es/schema-component/antd/cron/Cron.d.ts +6 -3
  270. package/es/schema-component/antd/cron/Cron.js +20 -19
  271. package/es/schema-component/antd/cron/CronSet.d.ts +7 -0
  272. package/es/schema-component/antd/cron/CronSet.js +106 -0
  273. package/es/schema-component/antd/cron/index.d.ts +1 -0
  274. package/es/schema-component/antd/cron/index.js +2 -1
  275. package/es/schema-component/antd/cron/locale/index.d.ts +0 -1
  276. package/es/schema-component/antd/cron/locale/index.js +1 -3
  277. package/es/schema-component/antd/cron/locale/zh-CN.js +8 -4
  278. package/es/schema-component/antd/date-picker/DatePicker.d.ts +8 -4
  279. package/es/schema-component/antd/date-picker/DatePicker.js +42 -3
  280. package/es/schema-component/antd/date-picker/ReadPretty.js +0 -9
  281. package/es/schema-component/antd/date-picker/util.d.ts +25 -2
  282. package/es/schema-component/antd/date-picker/util.js +129 -32
  283. package/es/schema-component/antd/details/Details.d.ts +7 -0
  284. package/es/schema-component/antd/details/Details.js +2 -0
  285. package/es/schema-component/antd/details/index.d.ts +1 -0
  286. package/es/schema-component/antd/details/index.js +1 -0
  287. package/es/schema-component/antd/filter/DynamicComponent.js +13 -61
  288. package/es/schema-component/antd/filter/Filter.Action.Designer.js +10 -27
  289. package/es/schema-component/antd/filter/Filter.js +14 -13
  290. package/es/schema-component/antd/filter/FilterAction.js +35 -65
  291. package/es/schema-component/antd/filter/FilterGroup.js +8 -16
  292. package/es/schema-component/antd/filter/FilterItem.js +10 -15
  293. package/es/schema-component/antd/filter/FilterItems.js +0 -1
  294. package/es/schema-component/antd/filter/SaveDefaultValue.js +4 -13
  295. package/es/schema-component/antd/filter/useFilterActionProps.js +69 -60
  296. package/es/schema-component/antd/filter/useOperators.d.ts +5 -0
  297. package/es/schema-component/antd/filter/useOperators.js +25 -0
  298. package/es/schema-component/antd/filter/useValues.js +17 -39
  299. package/es/schema-component/antd/form/Form.Designer.js +2 -3
  300. package/es/schema-component/antd/form/Form.js +35 -56
  301. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +1 -0
  302. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +26 -0
  303. package/es/schema-component/antd/form-item/FormItem.js +89 -77
  304. package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +23 -0
  305. package/es/schema-component/antd/form-item/SchemaSettingOptions.js +615 -0
  306. package/es/schema-component/antd/form-v2/Form.Designer.js +30 -45
  307. package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +5 -0
  308. package/es/schema-component/antd/form-v2/Form.FilterDesigner.js +40 -0
  309. package/es/schema-component/antd/form-v2/Form.d.ts +2 -0
  310. package/es/schema-component/antd/form-v2/Form.js +31 -50
  311. package/es/schema-component/antd/form-v2/FormField.js +1 -5
  312. package/es/schema-component/antd/form-v2/Templates.d.ts +4 -0
  313. package/es/schema-component/antd/form-v2/Templates.js +168 -0
  314. package/es/schema-component/antd/form-v2/index.d.ts +1 -1
  315. package/es/schema-component/antd/form-v2/index.js +4 -2
  316. package/es/schema-component/antd/form-v2/utils.d.ts +0 -1
  317. package/es/schema-component/antd/form-v2/utils.js +22 -95
  318. package/es/schema-component/antd/g2plot/G2Plot.js +8 -23
  319. package/es/schema-component/antd/g2plot/G2PlotDesigner.js +40 -51
  320. package/es/schema-component/antd/g2plot/requestChartData.js +19 -25
  321. package/es/schema-component/antd/gantt/Gantt.Designer.d.ts +1 -0
  322. package/es/schema-component/antd/gantt/Gantt.Designer.js +214 -0
  323. package/es/schema-component/antd/gantt/components/calendar/calendar.d.ts +14 -0
  324. package/es/schema-component/antd/gantt/components/calendar/calendar.js +324 -0
  325. package/es/schema-component/antd/gantt/components/calendar/style.d.ts +4 -0
  326. package/es/schema-component/antd/gantt/components/calendar/style.js +7 -0
  327. package/es/schema-component/antd/gantt/components/calendar/top-part-of-calendar.d.ts +11 -0
  328. package/es/schema-component/antd/gantt/components/calendar/top-part-of-calendar.js +26 -0
  329. package/es/schema-component/antd/gantt/components/gantt/Event.d.ts +2 -0
  330. package/es/schema-component/antd/gantt/components/gantt/Event.js +5 -0
  331. package/es/schema-component/antd/gantt/components/gantt/gantt.d.ts +5 -0
  332. package/es/schema-component/antd/gantt/components/gantt/gantt.js +638 -0
  333. package/es/schema-component/antd/gantt/components/gantt/style.d.ts +3 -0
  334. package/es/schema-component/antd/gantt/components/gantt/style.js +6 -0
  335. package/es/schema-component/antd/gantt/components/gantt/task-gantt-content.d.ts +25 -0
  336. package/es/schema-component/antd/gantt/components/gantt/task-gantt-content.js +366 -0
  337. package/es/schema-component/antd/gantt/components/gantt/task-gantt.d.ts +14 -0
  338. package/es/schema-component/antd/gantt/components/gantt/task-gantt.js +67 -0
  339. package/es/schema-component/antd/gantt/components/grid/grid-body.d.ts +13 -0
  340. package/es/schema-component/antd/gantt/components/grid/grid-body.js +112 -0
  341. package/es/schema-component/antd/gantt/components/grid/grid.d.ts +4 -0
  342. package/es/schema-component/antd/gantt/components/grid/grid.js +13 -0
  343. package/es/schema-component/antd/gantt/components/grid/style.d.ts +4 -0
  344. package/es/schema-component/antd/gantt/components/grid/style.js +7 -0
  345. package/es/schema-component/antd/gantt/components/other/arrow.d.ts +12 -0
  346. package/es/schema-component/antd/gantt/components/other/arrow.js +57 -0
  347. package/es/schema-component/antd/gantt/components/other/horizontal-scroll.d.ts +8 -0
  348. package/es/schema-component/antd/gantt/components/other/horizontal-scroll.js +30 -0
  349. package/es/schema-component/antd/gantt/components/other/style.d.ts +7 -0
  350. package/es/schema-component/antd/gantt/components/other/style.js +10 -0
  351. package/es/schema-component/antd/gantt/components/other/tooltip.d.ts +29 -0
  352. package/es/schema-component/antd/gantt/components/other/tooltip.js +103 -0
  353. package/es/schema-component/antd/gantt/components/other/vertical-scroll.d.ts +9 -0
  354. package/es/schema-component/antd/gantt/components/other/vertical-scroll.js +32 -0
  355. package/es/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.d.ts +11 -0
  356. package/es/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.js +19 -0
  357. package/es/schema-component/antd/gantt/components/task-item/bar/bar-display.d.ts +21 -0
  358. package/es/schema-component/antd/gantt/components/task-item/bar/bar-display.js +48 -0
  359. package/es/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.d.ts +7 -0
  360. package/es/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.js +10 -0
  361. package/es/schema-component/antd/gantt/components/task-item/bar/bar-small.d.ts +3 -0
  362. package/es/schema-component/antd/gantt/components/task-item/bar/bar-small.js +38 -0
  363. package/es/schema-component/antd/gantt/components/task-item/bar/bar.d.ts +3 -0
  364. package/es/schema-component/antd/gantt/components/task-item/bar/bar.js +60 -0
  365. package/es/schema-component/antd/gantt/components/task-item/bar/style.d.ts +2 -0
  366. package/es/schema-component/antd/gantt/components/task-item/bar/style.js +5 -0
  367. package/es/schema-component/antd/gantt/components/task-item/milestone/milestone.d.ts +3 -0
  368. package/es/schema-component/antd/gantt/components/task-item/milestone/milestone.js +30 -0
  369. package/es/schema-component/antd/gantt/components/task-item/milestone/style.d.ts +2 -0
  370. package/es/schema-component/antd/gantt/components/task-item/milestone/style.js +5 -0
  371. package/es/schema-component/antd/gantt/components/task-item/project/project.d.ts +3 -0
  372. package/es/schema-component/antd/gantt/components/task-item/project/project.js +31 -0
  373. package/es/schema-component/antd/gantt/components/task-item/project/style.d.ts +3 -0
  374. package/es/schema-component/antd/gantt/components/task-item/project/style.js +6 -0
  375. package/es/schema-component/antd/gantt/components/task-item/style.d.ts +3 -0
  376. package/es/schema-component/antd/gantt/components/task-item/style.js +6 -0
  377. package/es/schema-component/antd/gantt/components/task-item/task-item.d.ts +15 -0
  378. package/es/schema-component/antd/gantt/components/task-item/task-item.js +105 -0
  379. package/es/schema-component/antd/gantt/context.d.ts +3 -0
  380. package/es/schema-component/antd/gantt/context.js +4 -0
  381. package/es/schema-component/antd/gantt/helpers/bar-helper.d.ts +14 -0
  382. package/es/schema-component/antd/gantt/helpers/bar-helper.js +329 -0
  383. package/es/schema-component/antd/gantt/helpers/date-helper.d.ts +18 -0
  384. package/es/schema-component/antd/gantt/helpers/date-helper.js +182 -0
  385. package/es/schema-component/antd/gantt/helpers/other-helper.d.ts +9 -0
  386. package/es/schema-component/antd/gantt/helpers/other-helper.js +65 -0
  387. package/es/schema-component/antd/gantt/index.d.ts +2 -0
  388. package/es/schema-component/antd/gantt/index.js +11 -0
  389. package/es/schema-component/antd/gantt/types/bar-task.d.ts +22 -0
  390. package/es/schema-component/antd/gantt/types/bar-task.js +1 -0
  391. package/es/schema-component/antd/gantt/types/date-setup.d.ts +5 -0
  392. package/es/schema-component/antd/gantt/types/date-setup.js +1 -0
  393. package/es/schema-component/antd/gantt/types/gantt-task-actions.d.ts +8 -0
  394. package/es/schema-component/antd/gantt/types/gantt-task-actions.js +1 -0
  395. package/es/schema-component/antd/gantt/types/public-types.d.ts +136 -0
  396. package/es/schema-component/antd/gantt/types/public-types.js +12 -0
  397. package/es/schema-component/antd/grid/Grid.js +62 -116
  398. package/es/schema-component/antd/icon-picker/IconPicker.js +12 -29
  399. package/es/schema-component/antd/index.d.ts +6 -2
  400. package/es/schema-component/antd/index.js +6 -2
  401. package/es/schema-component/antd/index.less +28 -0
  402. package/es/schema-component/antd/input/EllipsisWithTooltip.js +12 -22
  403. package/es/schema-component/antd/input/Input.d.ts +3 -3
  404. package/es/schema-component/antd/input/Input.js +17 -16
  405. package/es/schema-component/antd/input/Json.d.ts +7 -5
  406. package/es/schema-component/antd/input/Json.js +9 -14
  407. package/es/schema-component/antd/input/ReadPretty.d.ts +2 -2
  408. package/es/schema-component/antd/input/ReadPretty.js +21 -21
  409. package/es/schema-component/antd/input-number/InputNumber.js +5 -11
  410. package/es/schema-component/antd/input-number/ReadPretty.js +3 -5
  411. package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +1 -0
  412. package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.js +26 -0
  413. package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +22 -22
  414. package/es/schema-component/antd/kanban/Kanban.Card.js +25 -38
  415. package/es/schema-component/antd/kanban/Kanban.Designer.js +19 -20
  416. package/es/schema-component/antd/kanban/Kanban.js +32 -59
  417. package/es/schema-component/antd/kanban/index.js +2 -0
  418. package/es/schema-component/antd/kanban/index.less +8 -5
  419. package/es/schema-component/antd/markdown/Markdown.Void.Designer.js +1 -3
  420. package/es/schema-component/antd/markdown/Markdown.Void.js +43 -58
  421. package/es/schema-component/antd/markdown/Markdown.js +14 -8
  422. package/es/schema-component/antd/markdown/highlight-theme/default.less +98 -0
  423. package/es/schema-component/antd/markdown/highlight-theme/table.less +36 -0
  424. package/es/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.d.ts +5 -0
  425. package/es/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.js +63 -0
  426. package/es/schema-component/antd/markdown/md.d.ts +5 -0
  427. package/es/schema-component/antd/markdown/md.js +14 -0
  428. package/es/schema-component/antd/markdown/util.d.ts +5 -1
  429. package/es/schema-component/antd/markdown/util.js +60 -8
  430. package/es/schema-component/antd/menu/Menu.Designer.js +27 -62
  431. package/es/schema-component/antd/menu/Menu.js +62 -114
  432. package/es/schema-component/antd/menu/MenuItemInitializers/index.js +170 -196
  433. package/es/schema-component/antd/menu/util.js +2 -21
  434. package/es/schema-component/antd/page/FixedBlock.d.ts +8 -7
  435. package/es/schema-component/antd/page/FixedBlock.js +100 -131
  436. package/es/schema-component/antd/page/Page.js +86 -113
  437. package/es/schema-component/antd/page/PageTabDesigner.js +11 -26
  438. package/es/schema-component/antd/pagination/index.js +6 -11
  439. package/es/schema-component/antd/password/Password.js +7 -12
  440. package/es/schema-component/antd/password/PasswordStrength.js +0 -32
  441. package/es/schema-component/antd/percent/Percent.js +5 -5
  442. package/es/schema-component/antd/preview/Preview.d.ts +15 -0
  443. package/es/schema-component/antd/preview/Preview.js +234 -0
  444. package/es/schema-component/antd/preview/index.d.ts +1 -0
  445. package/es/schema-component/antd/preview/index.js +1 -0
  446. package/es/schema-component/antd/radio/Radio.js +1 -4
  447. package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +2 -0
  448. package/es/schema-component/antd/record-picker/InputRecordPicker.js +166 -91
  449. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +30 -46
  450. package/es/schema-component/antd/record-picker/useFieldNames.js +4 -5
  451. package/es/schema-component/antd/record-picker/util.d.ts +1 -1
  452. package/es/schema-component/antd/record-picker/util.js +14 -9
  453. package/es/schema-component/antd/remote-select/ReadPretty.js +22 -30
  454. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  455. package/es/schema-component/antd/remote-select/RemoteSelect.js +48 -70
  456. package/es/schema-component/antd/remote-select/shared.js +0 -1
  457. package/es/schema-component/antd/rich-text/RichText.js +6 -6
  458. package/es/schema-component/antd/select/ReadPretty.js +4 -9
  459. package/es/schema-component/antd/select/Select.js +15 -37
  460. package/es/schema-component/antd/select/shared.js +5 -25
  461. package/es/schema-component/antd/space/index.js +4 -7
  462. package/es/schema-component/antd/table/Table.Array.js +48 -97
  463. package/es/schema-component/antd/table/Table.Column.ActionBar.js +0 -2
  464. package/es/schema-component/antd/table/Table.Column.Decorator.js +5 -14
  465. package/es/schema-component/antd/table/Table.Column.Designer.js +37 -57
  466. package/es/schema-component/antd/table/Table.Designer.js +2 -3
  467. package/es/schema-component/antd/table/Table.RowActionDesigner.js +1 -3
  468. package/es/schema-component/antd/table/Table.RowSelection.js +6 -18
  469. package/es/schema-component/antd/table/Table.Void.Designer.js +8 -17
  470. package/es/schema-component/antd/table/Table.Void.js +17 -43
  471. package/es/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -0
  472. package/es/schema-component/antd/table-v2/FilterDynamicComponent.js +150 -0
  473. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +1 -3
  474. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +0 -2
  475. package/es/schema-component/antd/table-v2/Table.Column.Decorator.js +6 -17
  476. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +28 -34
  477. package/es/schema-component/antd/table-v2/Table.Designer.js +2 -3
  478. package/es/schema-component/antd/table-v2/Table.js +145 -156
  479. package/es/schema-component/antd/table-v2/TableBlockDesigner.js +62 -46
  480. package/es/schema-component/antd/table-v2/TableField.js +5 -11
  481. package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +42 -27
  482. package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +10 -0
  483. package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +56 -0
  484. package/es/schema-component/antd/table-v2/utils.d.ts +2 -0
  485. package/es/schema-component/antd/table-v2/utils.js +38 -2
  486. package/es/schema-component/antd/tabs/Tabs.Designer.js +7 -9
  487. package/es/schema-component/antd/tabs/Tabs.js +1 -5
  488. package/es/schema-component/antd/time-picker/ReadPretty.js +2 -4
  489. package/es/schema-component/antd/time-picker/TimePicker.js +4 -6
  490. package/es/schema-component/antd/tree-select/ReadPretty.js +1 -8
  491. package/es/schema-component/antd/tree-select/TreeSelect.js +4 -4
  492. package/es/schema-component/antd/upload/ReadPretty.d.ts +1 -1
  493. package/es/schema-component/antd/upload/ReadPretty.js +18 -26
  494. package/es/schema-component/antd/upload/Upload.js +73 -58
  495. package/es/schema-component/antd/upload/shared.js +14 -53
  496. package/es/schema-component/antd/upload/type.d.ts +11 -0
  497. package/es/schema-component/antd/variable/Input.js +57 -67
  498. package/es/schema-component/antd/variable/JSONInput.js +19 -31
  499. package/es/schema-component/antd/variable/TextArea.d.ts +3 -0
  500. package/es/schema-component/antd/variable/TextArea.js +256 -161
  501. package/es/schema-component/antd/variable/Variable.js +2 -2
  502. package/es/schema-component/antd/variable/VariableSelect.d.ts +2 -0
  503. package/es/schema-component/antd/variable/VariableSelect.js +65 -0
  504. package/es/schema-component/antd/variable/XButton.d.ts +9 -0
  505. package/es/schema-component/antd/variable/XButton.js +17 -0
  506. package/es/schema-component/common/dnd-context/index.js +13 -39
  507. package/es/schema-component/common/sortable-item/SortableItem.js +21 -37
  508. package/es/schema-component/common/utils/logic.js +74 -93
  509. package/es/schema-component/common/utils/uitls.js +47 -43
  510. package/es/schema-component/core/DesignableSwitch.js +12 -14
  511. package/es/schema-component/core/FormProvider.js +5 -12
  512. package/es/schema-component/core/RemoteSchemaComponent.js +21 -30
  513. package/es/schema-component/core/SchemaComponent.js +12 -26
  514. package/es/schema-component/core/SchemaComponentOptions.js +4 -7
  515. package/es/schema-component/core/SchemaComponentProvider.js +19 -35
  516. package/es/schema-component/hooks/index.d.ts +2 -0
  517. package/es/schema-component/hooks/index.js +3 -1
  518. package/es/schema-component/hooks/useAttach.js +0 -1
  519. package/es/schema-component/hooks/useCompile.js +4 -5
  520. package/es/schema-component/hooks/useComponent.js +1 -4
  521. package/es/schema-component/hooks/useDesignable.js +205 -385
  522. package/es/schema-component/hooks/useDesigner.js +1 -4
  523. package/es/schema-component/hooks/useFieldComponentOptions.js +18 -13
  524. package/es/schema-component/hooks/useFieldProps.js +4 -5
  525. package/es/schema-component/hooks/useFieldTitle.js +2 -7
  526. package/es/schema-component/hooks/useProps.js +1 -5
  527. package/es/schema-component/hooks/useTableSize.d.ts +5 -0
  528. package/es/schema-component/hooks/useTableSize.js +42 -0
  529. package/es/schema-initializer/SchemaInitializer.js +47 -82
  530. package/es/schema-initializer/SchemaInitializerProvider.js +10 -16
  531. package/es/schema-initializer/SelectCollection.js +4 -9
  532. package/es/schema-initializer/buttons/BlockInitializers.js +22 -2
  533. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.js +2 -3
  534. package/es/schema-initializer/buttons/CalendarActionInitializers.d.ts +4 -0
  535. package/es/schema-initializer/buttons/CalendarActionInitializers.js +5 -0
  536. package/es/schema-initializer/buttons/CalendarFormActionInitializers.d.ts +6 -0
  537. package/es/schema-initializer/buttons/CalendarFormActionInitializers.js +21 -0
  538. package/es/schema-initializer/buttons/CreateFormBlockInitializers.js +2 -3
  539. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +2 -3
  540. package/es/schema-initializer/buttons/CustomFormItemInitializers.js +4 -7
  541. package/es/schema-initializer/buttons/FilterFormActionInitializers.d.ts +16 -0
  542. package/es/schema-initializer/buttons/FilterFormActionInitializers.js +24 -0
  543. package/es/schema-initializer/buttons/FormItemInitializers.d.ts +1 -0
  544. package/es/schema-initializer/buttons/FormItemInitializers.js +62 -8
  545. package/es/schema-initializer/buttons/GanttActionInitializers.d.ts +133 -0
  546. package/es/schema-initializer/buttons/GanttActionInitializers.js +9 -0
  547. package/es/schema-initializer/buttons/KanbanActionInitializers.d.ts +2 -0
  548. package/es/schema-initializer/buttons/KanbanActionInitializers.js +5 -0
  549. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +6 -0
  550. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +17 -0
  551. package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +2 -6
  552. package/es/schema-initializer/buttons/RecordBlockInitializers.js +31 -47
  553. package/es/schema-initializer/buttons/RecordFormBlockInitializers.js +1 -2
  554. package/es/schema-initializer/buttons/SubTableActionInitializers.js +4 -4
  555. package/es/schema-initializer/buttons/TabPaneInitializers.js +53 -66
  556. package/es/schema-initializer/buttons/TableActionColumnInitializers.js +38 -18
  557. package/es/schema-initializer/buttons/TableActionInitializers.d.ts +17 -0
  558. package/es/schema-initializer/buttons/TableActionInitializers.js +51 -16
  559. package/es/schema-initializer/buttons/TableColumnInitializers.js +9 -15
  560. package/es/schema-initializer/buttons/TableSelectorInitializers.js +2 -3
  561. package/es/schema-initializer/buttons/index.d.ts +2 -0
  562. package/es/schema-initializer/buttons/index.js +4 -2
  563. package/es/schema-initializer/components/BulkEditField.js +31 -56
  564. package/es/schema-initializer/components/CreateRecordAction.js +74 -69
  565. package/es/schema-initializer/components/assigned-field/AssignedField.js +33 -77
  566. package/es/schema-initializer/index.d.ts +1 -1
  567. package/es/schema-initializer/index.js +1 -1
  568. package/es/schema-initializer/items/ActionInitializer.js +4 -4
  569. package/es/schema-initializer/items/BlockInitializer.js +4 -5
  570. package/es/schema-initializer/items/BulkDestroyActionInitializer.js +4 -6
  571. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.js +4 -4
  572. package/es/schema-initializer/items/CalendarBlockInitializer.js +61 -71
  573. package/es/schema-initializer/items/CollectionFieldInitializer.js +6 -6
  574. package/es/schema-initializer/items/CreateActionInitializer.js +5 -4
  575. package/es/schema-initializer/items/CreateChildInitializer.d.ts +1 -0
  576. package/es/schema-initializer/items/CreateChildInitializer.js +62 -0
  577. package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +1 -0
  578. package/es/schema-initializer/items/CreateFilterActionInitializer.js +23 -0
  579. package/es/schema-initializer/items/CreateFormBlockInitializer.js +51 -70
  580. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +47 -66
  581. package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +1 -0
  582. package/es/schema-initializer/items/CreateResetActionInitializer.js +21 -0
  583. package/es/schema-initializer/items/CreateSubmitActionInitializer.js +6 -6
  584. package/es/schema-initializer/items/CustomizeActionInitializer.js +4 -6
  585. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.js +4 -4
  586. package/es/schema-initializer/items/DataBlockInitializer.js +44 -61
  587. package/es/schema-initializer/items/DeleteEventActionInitializer.js +4 -4
  588. package/es/schema-initializer/items/DestroyActionInitializer.js +4 -4
  589. package/es/schema-initializer/items/DetailsBlockInitializer.js +25 -32
  590. package/es/schema-initializer/items/ExpandActionInitializer.d.ts +2 -0
  591. package/es/schema-initializer/items/ExpandActionInitializer.js +58 -0
  592. package/es/schema-initializer/items/FilterActionInitializer.js +4 -4
  593. package/es/schema-initializer/items/FilterBlockInitializer.d.ts +1 -0
  594. package/es/schema-initializer/items/FilterBlockInitializer.js +77 -0
  595. package/es/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +1 -0
  596. package/es/schema-initializer/items/FilterCollapseBlockInitializer.js +44 -0
  597. package/es/schema-initializer/items/FilterFormBlockInitializer.d.ts +1 -0
  598. package/es/schema-initializer/items/FilterFormBlockInitializer.js +28 -0
  599. package/es/schema-initializer/items/FormBlockInitializer.js +4 -6
  600. package/es/schema-initializer/items/G2PlotInitializer.js +6 -10
  601. package/es/schema-initializer/items/GanttBlockInitializer.d.ts +1 -0
  602. package/es/schema-initializer/items/GanttBlockInitializer.js +166 -0
  603. package/es/schema-initializer/items/InitializerWithSwitch.js +8 -12
  604. package/es/schema-initializer/items/KanbanBlockInitializer.js +85 -100
  605. package/es/schema-initializer/items/MarkdownBlockInitializer.js +5 -7
  606. package/es/schema-initializer/items/PrintActionInitializer.js +4 -4
  607. package/es/schema-initializer/items/RecordAssociationBlockInitializer.js +37 -53
  608. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +93 -115
  609. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +37 -53
  610. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.js +52 -71
  611. package/es/schema-initializer/items/RecordFormBlockInitializer.js +49 -68
  612. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +51 -72
  613. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +52 -73
  614. package/es/schema-initializer/items/RefreshActionInitializer.js +4 -4
  615. package/es/schema-initializer/items/SubmitActionInitializer.js +7 -6
  616. package/es/schema-initializer/items/TableActionColumnInitializer.js +4 -4
  617. package/es/schema-initializer/items/TableBlockInitializer.js +24 -32
  618. package/es/schema-initializer/items/TableCollectionFieldInitializer.js +4 -4
  619. package/es/schema-initializer/items/TableSelectorInitializer.js +24 -35
  620. package/es/schema-initializer/items/UpdateActionInitializer.js +4 -4
  621. package/es/schema-initializer/items/UpdateSubmitActionInitializer.js +4 -4
  622. package/es/schema-initializer/items/ViewActionInitializer.js +4 -4
  623. package/es/schema-initializer/items/index.d.ts +7 -0
  624. package/es/schema-initializer/items/index.js +9 -2
  625. package/es/schema-initializer/utils.d.ts +174 -1
  626. package/es/schema-initializer/utils.js +665 -336
  627. package/es/schema-items/OpenModeSchemaItems.d.ts +7 -0
  628. package/es/schema-items/OpenModeSchemaItems.js +78 -0
  629. package/es/schema-items/index.d.ts +1 -0
  630. package/es/schema-items/index.js +1 -0
  631. package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +2 -0
  632. package/es/schema-settings/DataTemplates/FormDataTemplates.js +174 -0
  633. package/es/schema-settings/DataTemplates/TreeLabel.d.ts +1 -0
  634. package/es/schema-settings/DataTemplates/TreeLabel.js +19 -0
  635. package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.d.ts +2 -0
  636. package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.js +47 -0
  637. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.d.ts +11 -0
  638. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +261 -0
  639. package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +13 -0
  640. package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +146 -0
  641. package/es/schema-settings/DataTemplates/index.d.ts +1 -0
  642. package/es/schema-settings/DataTemplates/index.js +1 -0
  643. package/es/schema-settings/EnableChildCollections/index.js +28 -38
  644. package/es/schema-settings/GeneralSchemaDesigner.js +11 -20
  645. package/es/schema-settings/LinkageRules/DynamicComponent.js +9 -61
  646. package/es/schema-settings/LinkageRules/FilterDynamicComponent.js +3 -3
  647. package/es/schema-settings/LinkageRules/LinkageRuleAction.js +34 -49
  648. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.js +9 -13
  649. package/es/schema-settings/LinkageRules/ValueDynamicComponent.js +37 -29
  650. package/es/schema-settings/LinkageRules/Variables.js +11 -34
  651. package/es/schema-settings/LinkageRules/action-hooks.js +5 -20
  652. package/es/schema-settings/LinkageRules/components/EnableLinkage.d.ts +2 -0
  653. package/es/schema-settings/LinkageRules/components/EnableLinkage.js +40 -0
  654. package/es/schema-settings/LinkageRules/components/LinkageHeader.d.ts +11 -0
  655. package/es/schema-settings/LinkageRules/components/LinkageHeader.js +252 -0
  656. package/es/schema-settings/LinkageRules/context.d.ts +1 -1
  657. package/es/schema-settings/LinkageRules/context.js +1 -1
  658. package/es/schema-settings/LinkageRules/index.js +20 -18
  659. package/es/schema-settings/LinkageRules/type.js +0 -1
  660. package/es/schema-settings/LinkageRules/useValues.js +10 -21
  661. package/es/schema-settings/SchemaSettings.d.ts +3 -0
  662. package/es/schema-settings/SchemaSettings.js +733 -586
  663. package/es/schema-templates/BlockTemplate.js +3 -11
  664. package/es/schema-templates/BlockTemplateDetails.js +35 -52
  665. package/es/schema-templates/BlockTemplatePage.js +2 -3
  666. package/es/schema-templates/SchemaTemplateManagerProvider.js +100 -145
  667. package/es/schema-templates/SchemaTemplateShortcut.js +1 -2
  668. package/es/schema-templates/schemas/uiSchemaTemplates.js +41 -63
  669. package/es/settings-form/SettingsForm.js +87 -125
  670. package/es/system-settings/SystemSettingsProvider.js +14 -2
  671. package/es/system-settings/SystemSettingsShortcut.js +80 -98
  672. package/es/user/ChangePassword.js +43 -65
  673. package/es/user/CurrentUser.js +29 -44
  674. package/es/user/CurrentUserProvider.js +1 -6
  675. package/es/user/EditProfile.js +44 -69
  676. package/es/user/LanguageSettings.js +38 -53
  677. package/es/user/SigninPage.js +38 -56
  678. package/es/user/SigninPageExtension.js +3 -11
  679. package/es/user/SignupPage.js +29 -42
  680. package/es/user/SwitchRole.js +30 -38
  681. package/es/user/ThemeSettings.d.ts +1 -0
  682. package/es/user/ThemeSettings.js +70 -0
  683. package/es/user/VerificationCode.js +51 -76
  684. package/lib/acl/ACLProvider.js +34 -162
  685. package/lib/acl/ACLShortcut.js +11 -38
  686. package/lib/acl/Configuration/ConfigureCenter.js +56 -112
  687. package/lib/acl/Configuration/MenuConfigure.js +91 -159
  688. package/lib/acl/Configuration/MenuItemsProvider.js +0 -21
  689. package/lib/acl/Configuration/PermisionProvider.js +53 -96
  690. package/lib/acl/Configuration/RoleConfigure.js +21 -59
  691. package/lib/acl/Configuration/RoleTable.js +5 -23
  692. package/lib/acl/Configuration/RolesResourcesActions.js +10 -67
  693. package/lib/acl/Configuration/ScopeSelect.js +5 -26
  694. package/lib/acl/Configuration/StrategyActions.js +10 -38
  695. package/lib/acl/Configuration/index.js +0 -6
  696. package/lib/acl/Configuration/schemas/roleCollections.js +0 -3
  697. package/lib/acl/Configuration/schemas/roles.js +4 -13
  698. package/lib/acl/Configuration/schemas/scopes.js +4 -13
  699. package/lib/acl/Configuration/schemas/useRoleResourceValues.js +5 -12
  700. package/lib/acl/Configuration/schemas/useSaveRoleResourceAction.js +23 -34
  701. package/lib/acl/index.js +0 -5
  702. package/lib/acl/style.less +1 -1
  703. package/lib/antd-config-provider/index.js +29 -57
  704. package/lib/antd-config-provider/loadConstrueLocale.js +4 -12
  705. package/lib/api-client/APIClient.js +10 -47
  706. package/lib/api-client/APIClientProvider.js +1 -6
  707. package/lib/api-client/context.js +0 -3
  708. package/lib/api-client/hooks/assign.js +0 -23
  709. package/lib/api-client/hooks/index.js +0 -6
  710. package/lib/api-client/hooks/useAPIClient.js +0 -3
  711. package/lib/api-client/hooks/useRequest.js +35 -68
  712. package/lib/api-client/hooks/useResource.js +0 -3
  713. package/lib/api-client/index.js +0 -8
  714. package/lib/appInfo/CurrentAppInfoProvider.js +16 -14
  715. package/lib/appInfo/index.js +0 -2
  716. package/lib/application/Application.js +82 -147
  717. package/lib/application/compose.js +12 -26
  718. package/lib/application/index.js +0 -4
  719. package/lib/async-data-provider/index.js +6 -22
  720. package/lib/block-provider/BlockProvider.d.ts +1 -0
  721. package/lib/block-provider/BlockProvider.js +56 -136
  722. package/lib/block-provider/BlockSchemaComponentProvider.js +10 -24
  723. package/lib/block-provider/CalendarBlockProvider.d.ts +1 -0
  724. package/lib/block-provider/CalendarBlockProvider.js +16 -32
  725. package/lib/block-provider/DetailsBlockProvider.js +11 -32
  726. package/lib/block-provider/FilterFormBlockProvider.d.ts +1 -0
  727. package/lib/block-provider/FilterFormBlockProvider.js +24 -0
  728. package/lib/block-provider/FormBlockProvider.d.ts +3 -0
  729. package/lib/block-provider/FormBlockProvider.js +73 -49
  730. package/lib/block-provider/FormFieldProvider.js +17 -39
  731. package/lib/block-provider/GanttBlockProvider.d.ts +11 -0
  732. package/lib/block-provider/GanttBlockProvider.js +162 -0
  733. package/lib/block-provider/KanbanBlockProvider.js +52 -127
  734. package/lib/block-provider/SharedFilterProvider.js +10 -36
  735. package/lib/block-provider/TableBlockProvider.d.ts +3 -0
  736. package/lib/block-provider/TableBlockProvider.js +162 -114
  737. package/lib/block-provider/TableFieldProvider.js +107 -177
  738. package/lib/block-provider/TableSelectorProvider.d.ts +18 -1
  739. package/lib/block-provider/TableSelectorProvider.js +107 -123
  740. package/lib/block-provider/hooks/index.d.ts +37 -0
  741. package/lib/block-provider/hooks/index.js +1097 -1015
  742. package/lib/block-provider/index.d.ts +4 -0
  743. package/lib/block-provider/index.js +33 -18
  744. package/lib/board/Board.js +110 -169
  745. package/lib/board/Card.js +7 -12
  746. package/lib/board/CardAdder.js +6 -23
  747. package/lib/board/CardForm.js +1 -10
  748. package/lib/board/Column.js +27 -52
  749. package/lib/board/ColumnAdder.js +5 -22
  750. package/lib/board/ColumnForm.js +1 -10
  751. package/lib/board/DefaultCard.js +3 -7
  752. package/lib/board/DefaultColumnHeader.js +17 -38
  753. package/lib/board/Kanban.js +5 -26
  754. package/lib/board/helpers.js +7 -24
  755. package/lib/board/index.js +0 -2
  756. package/lib/board/services.js +4 -12
  757. package/lib/board/utils.js +5 -24
  758. package/lib/board/withDroppable.js +5 -14
  759. package/lib/china-region/index.js +5 -27
  760. package/lib/collection-manager/CollectionField.js +14 -51
  761. package/lib/collection-manager/CollectionFieldProvider.js +5 -17
  762. package/lib/collection-manager/CollectionHistoryProvider.js +23 -47
  763. package/lib/collection-manager/CollectionManagerProvider.js +86 -140
  764. package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js +4 -16
  765. package/lib/collection-manager/CollectionManagerShortcut.js +17 -42
  766. package/lib/collection-manager/CollectionProvider.js +4 -14
  767. package/lib/collection-manager/Configuration/AddCategoryAction.js +35 -73
  768. package/lib/collection-manager/Configuration/AddCollectionAction.js +105 -151
  769. package/lib/collection-manager/Configuration/AddFieldAction.js +86 -132
  770. package/lib/collection-manager/Configuration/AddSubFieldAction.js +36 -74
  771. package/lib/collection-manager/Configuration/CollectionFieldsTable.js +10 -26
  772. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +35 -98
  773. package/lib/collection-manager/Configuration/ConfigurationTable.js +159 -135
  774. package/lib/collection-manager/Configuration/ConfigurationTabs.js +94 -163
  775. package/lib/collection-manager/Configuration/EditCategoryAction.js +43 -85
  776. package/lib/collection-manager/Configuration/EditCollectionAction.js +59 -120
  777. package/lib/collection-manager/Configuration/EditFieldAction.js +101 -154
  778. package/lib/collection-manager/Configuration/EditSubFieldAction.js +54 -103
  779. package/lib/collection-manager/Configuration/OverridingCollectionField.js +88 -155
  780. package/lib/collection-manager/Configuration/SyncFieldsAction.d.ts +2 -0
  781. package/lib/collection-manager/Configuration/SyncFieldsAction.js +245 -0
  782. package/lib/collection-manager/Configuration/ViewInheritedField.js +50 -99
  783. package/lib/collection-manager/Configuration/components/CollectionCategory.js +0 -6
  784. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.js +1 -10
  785. package/lib/collection-manager/Configuration/components/CollectionTemplate.js +1 -10
  786. package/lib/collection-manager/Configuration/components/FieldSummary.js +2 -17
  787. package/lib/collection-manager/Configuration/components/TemplateSummay.d.ts +2 -0
  788. package/lib/collection-manager/Configuration/components/TemplateSummay.js +34 -0
  789. package/lib/collection-manager/Configuration/components/index.js +5 -26
  790. package/lib/collection-manager/Configuration/index.d.ts +1 -0
  791. package/lib/collection-manager/Configuration/index.js +11 -29
  792. package/lib/collection-manager/Configuration/interfaces.js +4 -20
  793. package/lib/collection-manager/Configuration/schemas/collectionFields.js +17 -5
  794. package/lib/collection-manager/Configuration/schemas/collections.js +22 -39
  795. package/lib/collection-manager/Configuration/templates.js +6 -16
  796. package/lib/collection-manager/ResourceActionProvider.js +18 -55
  797. package/lib/collection-manager/action-hooks.d.ts +2 -0
  798. package/lib/collection-manager/action-hooks.js +425 -485
  799. package/lib/collection-manager/context.js +0 -2
  800. package/lib/collection-manager/hooks/index.js +0 -8
  801. package/lib/collection-manager/hooks/useCollection.d.ts +4 -0
  802. package/lib/collection-manager/hooks/useCollection.js +12 -16
  803. package/lib/collection-manager/hooks/useCollectionDataSource.d.ts +1 -1
  804. package/lib/collection-manager/hooks/useCollectionDataSource.js +5 -10
  805. package/lib/collection-manager/hooks/useCollectionField.js +4 -14
  806. package/lib/collection-manager/hooks/useCollectionManager.d.ts +23 -3
  807. package/lib/collection-manager/hooks/useCollectionManager.js +127 -97
  808. package/lib/collection-manager/hooks/useOptions.js +5 -13
  809. package/lib/collection-manager/index.d.ts +1 -1
  810. package/lib/collection-manager/index.js +7 -36
  811. package/lib/collection-manager/interfaces/attachment.js +5 -12
  812. package/lib/collection-manager/interfaces/checkbox.js +5 -6
  813. package/lib/collection-manager/interfaces/checkboxGroup.js +5 -6
  814. package/lib/collection-manager/interfaces/chinaRegion.js +5 -11
  815. package/lib/collection-manager/interfaces/components/index.js +0 -15
  816. package/lib/collection-manager/interfaces/createdAt.js +5 -6
  817. package/lib/collection-manager/interfaces/createdBy.js +5 -7
  818. package/lib/collection-manager/interfaces/datetime.js +5 -6
  819. package/lib/collection-manager/interfaces/email.js +5 -6
  820. package/lib/collection-manager/interfaces/icon.js +6 -7
  821. package/lib/collection-manager/interfaces/id.js +1 -2
  822. package/lib/collection-manager/interfaces/index.d.ts +1 -0
  823. package/lib/collection-manager/interfaces/index.js +11 -64
  824. package/lib/collection-manager/interfaces/input.js +5 -8
  825. package/lib/collection-manager/interfaces/integer.js +6 -9
  826. package/lib/collection-manager/interfaces/json.js +8 -9
  827. package/lib/collection-manager/interfaces/linkTo.js +25 -16
  828. package/lib/collection-manager/interfaces/m2m.js +21 -18
  829. package/lib/collection-manager/interfaces/m2o.js +21 -13
  830. package/lib/collection-manager/interfaces/markdown.js +5 -8
  831. package/lib/collection-manager/interfaces/multipleSelect.js +5 -6
  832. package/lib/collection-manager/interfaces/number.js +6 -8
  833. package/lib/collection-manager/interfaces/o2m.js +12 -15
  834. package/lib/collection-manager/interfaces/o2o.js +42 -32
  835. package/lib/collection-manager/interfaces/password.js +6 -8
  836. package/lib/collection-manager/interfaces/percent.js +11 -19
  837. package/lib/collection-manager/interfaces/phone.js +8 -8
  838. package/lib/collection-manager/interfaces/properties/index.js +7 -14
  839. package/lib/collection-manager/interfaces/properties/operators.d.ts +11 -19
  840. package/lib/collection-manager/interfaces/properties/operators.js +6 -21
  841. package/lib/collection-manager/interfaces/radioGroup.js +5 -6
  842. package/lib/collection-manager/interfaces/richText.js +5 -8
  843. package/lib/collection-manager/interfaces/select.js +5 -6
  844. package/lib/collection-manager/interfaces/subTable.js +15 -15
  845. package/lib/collection-manager/interfaces/textarea.js +5 -8
  846. package/lib/collection-manager/interfaces/time.js +5 -6
  847. package/lib/collection-manager/interfaces/updatedAt.js +5 -6
  848. package/lib/collection-manager/interfaces/updatedBy.js +5 -7
  849. package/lib/collection-manager/interfaces/url.d.ts +2 -0
  850. package/lib/collection-manager/interfaces/url.js +37 -0
  851. package/lib/collection-manager/sub-table.js +79 -136
  852. package/lib/collection-manager/templates/calendar.js +11 -12
  853. package/lib/collection-manager/templates/components/PreviewFields.d.ts +2 -0
  854. package/lib/collection-manager/templates/components/PreviewFields.js +265 -0
  855. package/lib/collection-manager/templates/components/PreviewTable.d.ts +1 -0
  856. package/lib/collection-manager/templates/components/PreviewTable.js +142 -0
  857. package/lib/collection-manager/templates/expression.d.ts +2 -0
  858. package/lib/collection-manager/templates/expression.js +59 -0
  859. package/lib/collection-manager/templates/general.js +0 -2
  860. package/lib/collection-manager/templates/index.d.ts +3 -0
  861. package/lib/collection-manager/templates/index.js +33 -4
  862. package/lib/collection-manager/templates/properties/index.d.ts +1 -1
  863. package/lib/collection-manager/templates/properties/index.js +5 -17
  864. package/lib/collection-manager/templates/tree.d.ts +2 -0
  865. package/lib/collection-manager/templates/tree.js +77 -0
  866. package/lib/collection-manager/templates/types.d.ts +6 -0
  867. package/lib/collection-manager/templates/view.d.ts +2 -0
  868. package/lib/collection-manager/templates/view.js +142 -0
  869. package/lib/collection-manager/types.d.ts +2 -0
  870. package/lib/document-title/index.js +7 -32
  871. package/lib/filter-provider/FilterProvider.d.ts +45 -0
  872. package/lib/filter-provider/FilterProvider.js +154 -0
  873. package/lib/filter-provider/index.d.ts +2 -0
  874. package/lib/filter-provider/index.js +27 -0
  875. package/lib/filter-provider/utils.d.ts +27 -0
  876. package/lib/filter-provider/utils.js +184 -0
  877. package/lib/formula/Expression.js +47 -124
  878. package/lib/formula/Result.js +13 -45
  879. package/lib/formula/index.js +0 -5
  880. package/lib/i18n/i18n.js +2 -8
  881. package/lib/i18n/index.js +0 -2
  882. package/lib/icon/Icon.js +6 -31
  883. package/lib/icon/index.js +0 -2
  884. package/lib/index.d.ts +1 -1
  885. package/lib/index.js +11 -55
  886. package/lib/locale/en_US.d.ts +67 -4
  887. package/lib/locale/en_US.js +68 -5
  888. package/lib/locale/index.js +0 -3
  889. package/lib/locale/ja_JP.d.ts +54 -2
  890. package/lib/locale/ja_JP.js +55 -4
  891. package/lib/locale/pt_BR.d.ts +650 -0
  892. package/lib/locale/pt_BR.js +656 -0
  893. package/lib/locale/ru_RU.d.ts +29 -2
  894. package/lib/locale/ru_RU.js +30 -3
  895. package/lib/locale/tr_TR.d.ts +30 -2
  896. package/lib/locale/tr_TR.js +31 -3
  897. package/lib/locale/zh_CN.d.ts +84 -6
  898. package/lib/locale/zh_CN.js +85 -7
  899. package/lib/plugin-manager/PinnedPluginListProvider.d.ts +5 -0
  900. package/lib/plugin-manager/PinnedPluginListProvider.js +60 -0
  901. package/lib/plugin-manager/PluginManager.js +22 -73
  902. package/lib/plugin-manager/PluginManagerProvider.js +1 -6
  903. package/lib/plugin-manager/context.d.ts +3 -0
  904. package/lib/plugin-manager/context.js +6 -4
  905. package/lib/plugin-manager/index.d.ts +1 -0
  906. package/lib/plugin-manager/index.js +11 -6
  907. package/lib/pm/PluginManagerLink.js +22 -63
  908. package/lib/pm/index.js +246 -235
  909. package/lib/powered-by/index.js +1 -10
  910. package/lib/record-provider/index.js +8 -29
  911. package/lib/route-switch/RouteSwitch.js +5 -17
  912. package/lib/route-switch/RouteSwitchProvider.js +10 -19
  913. package/lib/route-switch/antd/admin-layout/index.js +43 -94
  914. package/lib/route-switch/antd/auth-layout/index.js +1 -11
  915. package/lib/route-switch/antd/index.js +0 -6
  916. package/lib/route-switch/antd/route-schema-component/index.js +0 -5
  917. package/lib/route-switch/context.js +0 -2
  918. package/lib/route-switch/hooks.js +2 -13
  919. package/lib/route-switch/index.js +0 -12
  920. package/lib/schema-component/antd/AntdSchemaComponentProvider.js +4 -17
  921. package/lib/schema-component/antd/action/Action.Container.js +5 -16
  922. package/lib/schema-component/antd/action/Action.Designer.js +52 -146
  923. package/lib/schema-component/antd/action/Action.Drawer.js +11 -30
  924. package/lib/schema-component/antd/action/Action.Link.js +4 -9
  925. package/lib/schema-component/antd/action/Action.Modal.d.ts +2 -1
  926. package/lib/schema-component/antd/action/Action.Modal.js +11 -28
  927. package/lib/schema-component/antd/action/Action.Page.js +5 -23
  928. package/lib/schema-component/antd/action/Action.js +42 -90
  929. package/lib/schema-component/antd/action/ActionBar.js +11 -33
  930. package/lib/schema-component/antd/action/context.js +0 -2
  931. package/lib/schema-component/antd/action/hooks.d.ts +1 -0
  932. package/lib/schema-component/antd/action/hooks.js +43 -62
  933. package/lib/schema-component/antd/action/index.js +0 -8
  934. package/lib/schema-component/antd/action/types.d.ts +1 -1
  935. package/lib/schema-component/antd/action/utils.d.ts +1 -1
  936. package/lib/schema-component/antd/action/utils.js +26 -25
  937. package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +19 -25
  938. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +1 -0
  939. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +42 -0
  940. package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +1 -0
  941. package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.js +95 -0
  942. package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.js +13 -25
  943. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +89 -37
  944. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +48 -127
  945. package/lib/schema-component/antd/association-filter/AssociationFilter.d.ts +3 -0
  946. package/lib/schema-component/antd/association-filter/AssociationFilter.js +13 -29
  947. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +2 -18
  948. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +4 -15
  949. package/lib/schema-component/antd/association-filter/AssociationFilterProvider.d.ts +1 -0
  950. package/lib/schema-component/antd/association-filter/AssociationFilterProvider.js +12 -0
  951. package/lib/schema-component/antd/association-filter/utilts.d.ts +2 -0
  952. package/lib/schema-component/antd/association-filter/utilts.js +10 -0
  953. package/lib/schema-component/antd/association-select/AssociationSelect.d.ts +1 -0
  954. package/lib/schema-component/antd/association-select/AssociationSelect.js +492 -103
  955. package/lib/schema-component/antd/association-select/ReadPretty.js +4 -11
  956. package/lib/schema-component/antd/association-select/index.js +0 -2
  957. package/lib/schema-component/antd/association-select/useServiceOptions.js +8 -21
  958. package/lib/schema-component/antd/block-item/BlockItem.js +0 -10
  959. package/lib/schema-component/antd/block-item/TestDesigner.js +1 -8
  960. package/lib/schema-component/antd/block-item/index.js +0 -4
  961. package/lib/schema-component/antd/calendar/Calendar.Designer.js +22 -40
  962. package/lib/schema-component/antd/calendar/Calendar.js +29 -88
  963. package/lib/schema-component/antd/calendar/DeleteEvent.js +52 -97
  964. package/lib/schema-component/antd/calendar/Event.js +0 -4
  965. package/lib/schema-component/antd/calendar/Nav.js +2 -15
  966. package/lib/schema-component/antd/calendar/Title.js +5 -17
  967. package/lib/schema-component/antd/calendar/Today.js +3 -17
  968. package/lib/schema-component/antd/calendar/ViewSelect.js +5 -16
  969. package/lib/schema-component/antd/calendar/components/Header.js +7 -15
  970. package/lib/schema-component/antd/calendar/context.js +0 -4
  971. package/lib/schema-component/antd/calendar/index.js +0 -12
  972. package/lib/schema-component/antd/calendar/style.less +1 -1
  973. package/lib/schema-component/antd/calendar/utils.js +0 -13
  974. package/lib/schema-component/antd/card-item/CardItem.js +5 -17
  975. package/lib/schema-component/antd/card-item/index.js +0 -2
  976. package/lib/schema-component/antd/cascader/Cascader.js +19 -46
  977. package/lib/schema-component/antd/cascader/ReadPretty.js +3 -20
  978. package/lib/schema-component/antd/cascader/index.js +0 -2
  979. package/lib/schema-component/antd/checkbox/Checkbox.js +5 -16
  980. package/lib/schema-component/antd/checkbox/index.js +0 -2
  981. package/lib/schema-component/antd/collection-select/CollectionSelect.d.ts +8 -0
  982. package/lib/schema-component/antd/collection-select/CollectionSelect.js +69 -0
  983. package/lib/schema-component/antd/collection-select/index.d.ts +1 -0
  984. package/lib/schema-component/antd/collection-select/index.js +16 -0
  985. package/lib/schema-component/antd/color-select/ColorSelect.js +4 -13
  986. package/lib/schema-component/antd/color-select/index.js +0 -2
  987. package/lib/schema-component/antd/cron/Cron.d.ts +6 -3
  988. package/lib/schema-component/antd/cron/Cron.js +22 -26
  989. package/lib/schema-component/antd/cron/CronSet.d.ts +7 -0
  990. package/lib/schema-component/antd/cron/CronSet.js +116 -0
  991. package/lib/schema-component/antd/cron/index.d.ts +1 -0
  992. package/lib/schema-component/antd/cron/index.js +11 -2
  993. package/lib/schema-component/antd/cron/locale/index.d.ts +0 -1
  994. package/lib/schema-component/antd/cron/locale/index.js +1 -7
  995. package/lib/schema-component/antd/cron/locale/zh-CN.js +8 -4
  996. package/lib/schema-component/antd/date-picker/DatePicker.d.ts +8 -4
  997. package/lib/schema-component/antd/date-picker/DatePicker.js +45 -8
  998. package/lib/schema-component/antd/date-picker/ReadPretty.js +0 -18
  999. package/lib/schema-component/antd/date-picker/index.js +0 -2
  1000. package/lib/schema-component/antd/date-picker/util.d.ts +25 -2
  1001. package/lib/schema-component/antd/date-picker/util.js +133 -40
  1002. package/lib/schema-component/antd/details/Details.d.ts +7 -0
  1003. package/lib/schema-component/antd/details/Details.js +9 -0
  1004. package/lib/schema-component/antd/details/index.d.ts +1 -0
  1005. package/lib/schema-component/antd/details/index.js +16 -0
  1006. package/lib/schema-component/antd/filter/DynamicComponent.js +11 -76
  1007. package/lib/schema-component/antd/filter/Filter.Action.Designer.js +10 -39
  1008. package/lib/schema-component/antd/filter/Filter.js +14 -23
  1009. package/lib/schema-component/antd/filter/FilterAction.js +34 -79
  1010. package/lib/schema-component/antd/filter/FilterGroup.js +7 -27
  1011. package/lib/schema-component/antd/filter/FilterItem.js +10 -29
  1012. package/lib/schema-component/antd/filter/FilterItems.js +0 -8
  1013. package/lib/schema-component/antd/filter/SaveDefaultValue.js +4 -22
  1014. package/lib/schema-component/antd/filter/context.js +0 -2
  1015. package/lib/schema-component/antd/filter/index.js +0 -4
  1016. package/lib/schema-component/antd/filter/useFilterActionProps.js +69 -76
  1017. package/lib/schema-component/antd/filter/useOperators.d.ts +5 -0
  1018. package/lib/schema-component/antd/filter/useOperators.js +32 -0
  1019. package/lib/schema-component/antd/filter/useValues.js +15 -47
  1020. package/lib/schema-component/antd/form/Form.Designer.js +2 -9
  1021. package/lib/schema-component/antd/form/Form.js +34 -69
  1022. package/lib/schema-component/antd/form/index.js +0 -2
  1023. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +1 -0
  1024. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +34 -0
  1025. package/lib/schema-component/antd/form-item/FormItem.js +88 -95
  1026. package/lib/schema-component/antd/form-item/SchemaSettingOptions.d.ts +23 -0
  1027. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +634 -0
  1028. package/lib/schema-component/antd/form-item/index.js +0 -2
  1029. package/lib/schema-component/antd/form-v2/Form.Designer.js +30 -64
  1030. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +5 -0
  1031. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.js +48 -0
  1032. package/lib/schema-component/antd/form-v2/Form.d.ts +2 -0
  1033. package/lib/schema-component/antd/form-v2/Form.js +28 -61
  1034. package/lib/schema-component/antd/form-v2/FormField.js +1 -14
  1035. package/lib/schema-component/antd/form-v2/Templates.d.ts +4 -0
  1036. package/lib/schema-component/antd/form-v2/Templates.js +178 -0
  1037. package/lib/schema-component/antd/form-v2/index.d.ts +1 -1
  1038. package/lib/schema-component/antd/form-v2/index.js +2 -4
  1039. package/lib/schema-component/antd/form-v2/utils.d.ts +0 -1
  1040. package/lib/schema-component/antd/form-v2/utils.js +22 -107
  1041. package/lib/schema-component/antd/g2plot/G2Plot.js +8 -37
  1042. package/lib/schema-component/antd/g2plot/G2PlotDesigner.js +40 -61
  1043. package/lib/schema-component/antd/g2plot/index.js +0 -2
  1044. package/lib/schema-component/antd/g2plot/requestChartData.js +19 -27
  1045. package/lib/schema-component/antd/gantt/Gantt.Designer.d.ts +1 -0
  1046. package/lib/schema-component/antd/gantt/Gantt.Designer.js +222 -0
  1047. package/lib/schema-component/antd/gantt/components/calendar/calendar.d.ts +14 -0
  1048. package/lib/schema-component/antd/gantt/components/calendar/calendar.js +332 -0
  1049. package/lib/schema-component/antd/gantt/components/calendar/style.d.ts +4 -0
  1050. package/lib/schema-component/antd/gantt/components/calendar/style.js +17 -0
  1051. package/lib/schema-component/antd/gantt/components/calendar/top-part-of-calendar.d.ts +11 -0
  1052. package/lib/schema-component/antd/gantt/components/calendar/top-part-of-calendar.js +34 -0
  1053. package/lib/schema-component/antd/gantt/components/gantt/Event.d.ts +2 -0
  1054. package/lib/schema-component/antd/gantt/components/gantt/Event.js +13 -0
  1055. package/lib/schema-component/antd/gantt/components/gantt/gantt.d.ts +5 -0
  1056. package/lib/schema-component/antd/gantt/components/gantt/gantt.js +648 -0
  1057. package/lib/schema-component/antd/gantt/components/gantt/style.d.ts +3 -0
  1058. package/lib/schema-component/antd/gantt/components/gantt/style.js +15 -0
  1059. package/lib/schema-component/antd/gantt/components/gantt/task-gantt-content.d.ts +25 -0
  1060. package/lib/schema-component/antd/gantt/components/gantt/task-gantt-content.js +375 -0
  1061. package/lib/schema-component/antd/gantt/components/gantt/task-gantt.d.ts +14 -0
  1062. package/lib/schema-component/antd/gantt/components/gantt/task-gantt.js +76 -0
  1063. package/lib/schema-component/antd/gantt/components/grid/grid-body.d.ts +13 -0
  1064. package/lib/schema-component/antd/gantt/components/grid/grid-body.js +120 -0
  1065. package/lib/schema-component/antd/gantt/components/grid/grid.d.ts +4 -0
  1066. package/lib/schema-component/antd/gantt/components/grid/grid.js +21 -0
  1067. package/lib/schema-component/antd/gantt/components/grid/style.d.ts +4 -0
  1068. package/lib/schema-component/antd/gantt/components/grid/style.js +17 -0
  1069. package/lib/schema-component/antd/gantt/components/other/arrow.d.ts +12 -0
  1070. package/lib/schema-component/antd/gantt/components/other/arrow.js +65 -0
  1071. package/lib/schema-component/antd/gantt/components/other/horizontal-scroll.d.ts +8 -0
  1072. package/lib/schema-component/antd/gantt/components/other/horizontal-scroll.js +40 -0
  1073. package/lib/schema-component/antd/gantt/components/other/style.d.ts +7 -0
  1074. package/lib/schema-component/antd/gantt/components/other/style.js +23 -0
  1075. package/lib/schema-component/antd/gantt/components/other/tooltip.d.ts +29 -0
  1076. package/lib/schema-component/antd/gantt/components/other/tooltip.js +114 -0
  1077. package/lib/schema-component/antd/gantt/components/other/vertical-scroll.d.ts +9 -0
  1078. package/lib/schema-component/antd/gantt/components/other/vertical-scroll.js +42 -0
  1079. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.d.ts +11 -0
  1080. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-date-handle.js +27 -0
  1081. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-display.d.ts +21 -0
  1082. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-display.js +56 -0
  1083. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.d.ts +7 -0
  1084. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-progress-handle.js +18 -0
  1085. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-small.d.ts +3 -0
  1086. package/lib/schema-component/antd/gantt/components/task-item/bar/bar-small.js +46 -0
  1087. package/lib/schema-component/antd/gantt/components/task-item/bar/bar.d.ts +3 -0
  1088. package/lib/schema-component/antd/gantt/components/task-item/bar/bar.js +68 -0
  1089. package/lib/schema-component/antd/gantt/components/task-item/bar/style.d.ts +2 -0
  1090. package/lib/schema-component/antd/gantt/components/task-item/bar/style.js +13 -0
  1091. package/lib/schema-component/antd/gantt/components/task-item/milestone/milestone.d.ts +3 -0
  1092. package/lib/schema-component/antd/gantt/components/task-item/milestone/milestone.js +38 -0
  1093. package/lib/schema-component/antd/gantt/components/task-item/milestone/style.d.ts +2 -0
  1094. package/lib/schema-component/antd/gantt/components/task-item/milestone/style.js +13 -0
  1095. package/lib/schema-component/antd/gantt/components/task-item/project/project.d.ts +3 -0
  1096. package/lib/schema-component/antd/gantt/components/task-item/project/project.js +39 -0
  1097. package/lib/schema-component/antd/gantt/components/task-item/project/style.d.ts +3 -0
  1098. package/lib/schema-component/antd/gantt/components/task-item/project/style.js +15 -0
  1099. package/lib/schema-component/antd/gantt/components/task-item/style.d.ts +3 -0
  1100. package/lib/schema-component/antd/gantt/components/task-item/style.js +15 -0
  1101. package/lib/schema-component/antd/gantt/components/task-item/task-item.d.ts +15 -0
  1102. package/lib/schema-component/antd/gantt/components/task-item/task-item.js +114 -0
  1103. package/lib/schema-component/antd/gantt/context.d.ts +3 -0
  1104. package/lib/schema-component/antd/gantt/context.js +12 -0
  1105. package/lib/schema-component/antd/gantt/helpers/bar-helper.d.ts +14 -0
  1106. package/lib/schema-component/antd/gantt/helpers/bar-helper.js +340 -0
  1107. package/lib/schema-component/antd/gantt/helpers/date-helper.d.ts +18 -0
  1108. package/lib/schema-component/antd/gantt/helpers/date-helper.js +197 -0
  1109. package/lib/schema-component/antd/gantt/helpers/other-helper.d.ts +9 -0
  1110. package/lib/schema-component/antd/gantt/helpers/other-helper.js +78 -0
  1111. package/lib/schema-component/antd/gantt/index.d.ts +2 -0
  1112. package/lib/schema-component/antd/gantt/index.js +21 -0
  1113. package/lib/schema-component/antd/gantt/types/bar-task.d.ts +22 -0
  1114. package/lib/schema-component/antd/gantt/types/bar-task.js +5 -0
  1115. package/lib/schema-component/antd/gantt/types/date-setup.d.ts +5 -0
  1116. package/lib/schema-component/antd/gantt/types/date-setup.js +5 -0
  1117. package/lib/schema-component/antd/gantt/types/gantt-task-actions.d.ts +8 -0
  1118. package/lib/schema-component/antd/gantt/types/gantt-task-actions.js +5 -0
  1119. package/lib/schema-component/antd/gantt/types/public-types.d.ts +136 -0
  1120. package/lib/schema-component/antd/gantt/types/public-types.js +19 -0
  1121. package/lib/schema-component/antd/grid/Block.js +0 -5
  1122. package/lib/schema-component/antd/grid/Grid.js +61 -132
  1123. package/lib/schema-component/antd/grid/index.js +0 -4
  1124. package/lib/schema-component/antd/icon-picker/IconPicker.js +11 -40
  1125. package/lib/schema-component/antd/icon-picker/index.js +0 -2
  1126. package/lib/schema-component/antd/index.d.ts +6 -2
  1127. package/lib/schema-component/antd/index.js +66 -101
  1128. package/lib/schema-component/antd/index.less +28 -0
  1129. package/lib/schema-component/antd/input/EllipsisWithTooltip.js +11 -28
  1130. package/lib/schema-component/antd/input/Input.d.ts +3 -3
  1131. package/lib/schema-component/antd/input/Input.js +17 -24
  1132. package/lib/schema-component/antd/input/Json.d.ts +7 -5
  1133. package/lib/schema-component/antd/input/Json.js +9 -20
  1134. package/lib/schema-component/antd/input/ReadPretty.d.ts +2 -2
  1135. package/lib/schema-component/antd/input/ReadPretty.js +21 -39
  1136. package/lib/schema-component/antd/input/index.js +0 -8
  1137. package/lib/schema-component/antd/input/shared.js +0 -1
  1138. package/lib/schema-component/antd/input-number/InputNumber.js +5 -17
  1139. package/lib/schema-component/antd/input-number/ReadPretty.js +3 -11
  1140. package/lib/schema-component/antd/input-number/index.js +0 -2
  1141. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +1 -0
  1142. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.js +34 -0
  1143. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +22 -36
  1144. package/lib/schema-component/antd/kanban/Kanban.Card.js +25 -51
  1145. package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +0 -2
  1146. package/lib/schema-component/antd/kanban/Kanban.Designer.js +18 -32
  1147. package/lib/schema-component/antd/kanban/Kanban.js +31 -77
  1148. package/lib/schema-component/antd/kanban/context.js +0 -2
  1149. package/lib/schema-component/antd/kanban/index.js +2 -7
  1150. package/lib/schema-component/antd/kanban/index.less +8 -5
  1151. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +1 -10
  1152. package/lib/schema-component/antd/markdown/Markdown.Void.js +40 -68
  1153. package/lib/schema-component/antd/markdown/Markdown.js +12 -18
  1154. package/lib/schema-component/antd/markdown/highlight-theme/default.less +98 -0
  1155. package/lib/schema-component/antd/markdown/highlight-theme/table.less +36 -0
  1156. package/lib/schema-component/antd/markdown/index.js +0 -2
  1157. package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.d.ts +5 -0
  1158. package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.js +69 -0
  1159. package/lib/schema-component/antd/markdown/md.d.ts +5 -0
  1160. package/lib/schema-component/antd/markdown/md.js +22 -0
  1161. package/lib/schema-component/antd/markdown/util.d.ts +5 -1
  1162. package/lib/schema-component/antd/markdown/util.js +66 -12
  1163. package/lib/schema-component/antd/menu/Menu.Designer.js +27 -72
  1164. package/lib/schema-component/antd/menu/Menu.js +61 -129
  1165. package/lib/schema-component/antd/menu/MenuItemInitializers/index.js +170 -209
  1166. package/lib/schema-component/antd/menu/index.js +0 -6
  1167. package/lib/schema-component/antd/menu/util.js +2 -24
  1168. package/lib/schema-component/antd/page/FixedBlock.d.ts +8 -7
  1169. package/lib/schema-component/antd/page/FixedBlock.js +100 -149
  1170. package/lib/schema-component/antd/page/Page.js +83 -135
  1171. package/lib/schema-component/antd/page/PageTabDesigner.js +11 -38
  1172. package/lib/schema-component/antd/page/index.js +0 -4
  1173. package/lib/schema-component/antd/pagination/index.js +6 -17
  1174. package/lib/schema-component/antd/password/Password.js +7 -18
  1175. package/lib/schema-component/antd/password/PasswordStrength.js +0 -38
  1176. package/lib/schema-component/antd/password/index.js +0 -2
  1177. package/lib/schema-component/antd/percent/Percent.js +5 -16
  1178. package/lib/schema-component/antd/percent/index.js +0 -2
  1179. package/lib/schema-component/antd/preview/Preview.d.ts +15 -0
  1180. package/lib/schema-component/antd/preview/Preview.js +246 -0
  1181. package/lib/schema-component/antd/preview/index.d.ts +1 -0
  1182. package/lib/schema-component/antd/preview/index.js +16 -0
  1183. package/lib/schema-component/antd/radio/Radio.js +1 -10
  1184. package/lib/schema-component/antd/radio/index.js +0 -2
  1185. package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +2 -0
  1186. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +166 -106
  1187. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +29 -61
  1188. package/lib/schema-component/antd/record-picker/RecordPicker.js +0 -4
  1189. package/lib/schema-component/antd/record-picker/index.js +0 -10
  1190. package/lib/schema-component/antd/record-picker/useFieldNames.js +4 -8
  1191. package/lib/schema-component/antd/record-picker/util.d.ts +1 -1
  1192. package/lib/schema-component/antd/record-picker/util.js +15 -18
  1193. package/lib/schema-component/antd/remote-select/ReadPretty.js +22 -39
  1194. package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  1195. package/lib/schema-component/antd/remote-select/RemoteSelect.js +47 -80
  1196. package/lib/schema-component/antd/remote-select/index.js +0 -2
  1197. package/lib/schema-component/antd/remote-select/shared.js +0 -4
  1198. package/lib/schema-component/antd/rich-text/RichText.js +6 -13
  1199. package/lib/schema-component/antd/rich-text/index.js +0 -2
  1200. package/lib/schema-component/antd/select/ReadPretty.js +4 -18
  1201. package/lib/schema-component/antd/select/Select.js +15 -45
  1202. package/lib/schema-component/antd/select/index.js +0 -4
  1203. package/lib/schema-component/antd/select/shared.js +5 -29
  1204. package/lib/schema-component/antd/space/index.js +4 -13
  1205. package/lib/schema-component/antd/table/Table.Array.Designer.js +0 -5
  1206. package/lib/schema-component/antd/table/Table.Array.js +48 -111
  1207. package/lib/schema-component/antd/table/Table.Column.ActionBar.js +0 -8
  1208. package/lib/schema-component/antd/table/Table.Column.Decorator.js +5 -25
  1209. package/lib/schema-component/antd/table/Table.Column.Designer.js +37 -65
  1210. package/lib/schema-component/antd/table/Table.Column.js +0 -5
  1211. package/lib/schema-component/antd/table/Table.Designer.js +2 -9
  1212. package/lib/schema-component/antd/table/Table.RowActionDesigner.js +1 -12
  1213. package/lib/schema-component/antd/table/Table.RowSelection.js +6 -23
  1214. package/lib/schema-component/antd/table/Table.Void.Designer.js +8 -29
  1215. package/lib/schema-component/antd/table/Table.Void.js +17 -54
  1216. package/lib/schema-component/antd/table/index.js +0 -13
  1217. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -0
  1218. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.js +157 -0
  1219. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +1 -12
  1220. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +0 -8
  1221. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +6 -29
  1222. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +28 -42
  1223. package/lib/schema-component/antd/table-v2/Table.Column.js +0 -5
  1224. package/lib/schema-component/antd/table-v2/Table.Designer.js +2 -9
  1225. package/lib/schema-component/antd/table-v2/Table.js +139 -169
  1226. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +60 -59
  1227. package/lib/schema-component/antd/table-v2/TableField.js +5 -22
  1228. package/lib/schema-component/antd/table-v2/TableSelector.js +0 -2
  1229. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +42 -41
  1230. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +10 -0
  1231. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +63 -0
  1232. package/lib/schema-component/antd/table-v2/index.js +0 -13
  1233. package/lib/schema-component/antd/table-v2/utils.d.ts +2 -0
  1234. package/lib/schema-component/antd/table-v2/utils.js +40 -6
  1235. package/lib/schema-component/antd/tabs/Tabs.Designer.js +7 -17
  1236. package/lib/schema-component/antd/tabs/Tabs.js +1 -17
  1237. package/lib/schema-component/antd/tabs/index.js +0 -2
  1238. package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -12
  1239. package/lib/schema-component/antd/time-picker/TimePicker.js +4 -10
  1240. package/lib/schema-component/antd/time-picker/index.js +0 -2
  1241. package/lib/schema-component/antd/tree-select/ReadPretty.js +1 -16
  1242. package/lib/schema-component/antd/tree-select/TreeSelect.js +4 -11
  1243. package/lib/schema-component/antd/tree-select/index.js +0 -2
  1244. package/lib/schema-component/antd/upload/ReadPretty.d.ts +1 -1
  1245. package/lib/schema-component/antd/upload/ReadPretty.js +18 -40
  1246. package/lib/schema-component/antd/upload/Upload.js +75 -80
  1247. package/lib/schema-component/antd/upload/index.js +0 -2
  1248. package/lib/schema-component/antd/upload/shared.js +14 -92
  1249. package/lib/schema-component/antd/upload/type.d.ts +11 -0
  1250. package/lib/schema-component/antd/variable/Input.js +68 -89
  1251. package/lib/schema-component/antd/variable/JSONInput.js +15 -37
  1252. package/lib/schema-component/antd/variable/TextArea.d.ts +3 -0
  1253. package/lib/schema-component/antd/variable/TextArea.js +254 -169
  1254. package/lib/schema-component/antd/variable/Variable.js +1 -7
  1255. package/lib/schema-component/antd/variable/VariableSelect.d.ts +2 -0
  1256. package/lib/schema-component/antd/variable/VariableSelect.js +74 -0
  1257. package/lib/schema-component/antd/variable/XButton.d.ts +9 -0
  1258. package/lib/schema-component/antd/variable/XButton.js +26 -0
  1259. package/lib/schema-component/antd/variable/index.js +0 -2
  1260. package/lib/schema-component/common/dnd-context/index.js +12 -48
  1261. package/lib/schema-component/common/index.js +0 -4
  1262. package/lib/schema-component/common/sortable-item/SortableItem.js +20 -50
  1263. package/lib/schema-component/common/sortable-item/index.js +0 -2
  1264. package/lib/schema-component/common/utils/logic.js +74 -93
  1265. package/lib/schema-component/common/utils/uitls.js +46 -48
  1266. package/lib/schema-component/context.js +0 -2
  1267. package/lib/schema-component/core/DesignableSwitch.js +12 -23
  1268. package/lib/schema-component/core/FormProvider.js +4 -21
  1269. package/lib/schema-component/core/RemoteSchemaComponent.js +21 -42
  1270. package/lib/schema-component/core/SchemaComponent.js +12 -34
  1271. package/lib/schema-component/core/SchemaComponentOptions.js +4 -15
  1272. package/lib/schema-component/core/SchemaComponentProvider.js +18 -50
  1273. package/lib/schema-component/core/index.js +0 -12
  1274. package/lib/schema-component/hooks/index.d.ts +2 -0
  1275. package/lib/schema-component/hooks/index.js +22 -18
  1276. package/lib/schema-component/hooks/useAttach.js +0 -4
  1277. package/lib/schema-component/hooks/useCompile.js +4 -9
  1278. package/lib/schema-component/hooks/useComponent.js +1 -9
  1279. package/lib/schema-component/hooks/useDesignable.js +203 -404
  1280. package/lib/schema-component/hooks/useDesigner.js +1 -7
  1281. package/lib/schema-component/hooks/useFieldComponentOptions.js +18 -19
  1282. package/lib/schema-component/hooks/useFieldProps.js +4 -9
  1283. package/lib/schema-component/hooks/useFieldTitle.js +2 -13
  1284. package/lib/schema-component/hooks/useProps.js +1 -8
  1285. package/lib/schema-component/hooks/useSchemaComponentContext.js +0 -3
  1286. package/lib/schema-component/hooks/useTableSize.d.ts +5 -0
  1287. package/lib/schema-component/hooks/useTableSize.js +49 -0
  1288. package/lib/schema-component/index.js +0 -14
  1289. package/lib/schema-initializer/SchemaInitializer.js +46 -96
  1290. package/lib/schema-initializer/SchemaInitializerProvider.js +11 -36
  1291. package/lib/schema-initializer/SelectCollection.js +4 -16
  1292. package/lib/schema-initializer/buttons/BlockInitializers.js +20 -2
  1293. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.js +2 -11
  1294. package/lib/schema-initializer/buttons/CalendarActionInitializers.d.ts +4 -0
  1295. package/lib/schema-initializer/buttons/CalendarActionInitializers.js +5 -0
  1296. package/lib/schema-initializer/buttons/CalendarFormActionInitializers.d.ts +6 -0
  1297. package/lib/schema-initializer/buttons/CalendarFormActionInitializers.js +21 -0
  1298. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.js +2 -10
  1299. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +2 -10
  1300. package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +2 -13
  1301. package/lib/schema-initializer/buttons/FilterFormActionInitializers.d.ts +16 -0
  1302. package/lib/schema-initializer/buttons/FilterFormActionInitializers.js +31 -0
  1303. package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +1 -0
  1304. package/lib/schema-initializer/buttons/FormItemInitializers.js +63 -16
  1305. package/lib/schema-initializer/buttons/GanttActionInitializers.d.ts +133 -0
  1306. package/lib/schema-initializer/buttons/GanttActionInitializers.js +16 -0
  1307. package/lib/schema-initializer/buttons/KanbanActionInitializers.d.ts +2 -0
  1308. package/lib/schema-initializer/buttons/KanbanActionInitializers.js +5 -0
  1309. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +6 -0
  1310. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +17 -0
  1311. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.js +2 -14
  1312. package/lib/schema-initializer/buttons/RecordBlockInitializers.js +31 -54
  1313. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.js +1 -9
  1314. package/lib/schema-initializer/buttons/SubTableActionInitializers.js +4 -4
  1315. package/lib/schema-initializer/buttons/TabPaneInitializers.js +55 -77
  1316. package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +41 -33
  1317. package/lib/schema-initializer/buttons/TableActionInitializers.d.ts +17 -0
  1318. package/lib/schema-initializer/buttons/TableActionInitializers.js +51 -17
  1319. package/lib/schema-initializer/buttons/TableColumnInitializers.js +7 -21
  1320. package/lib/schema-initializer/buttons/TableSelectorInitializers.js +2 -10
  1321. package/lib/schema-initializer/buttons/chart-config/index.js +0 -10
  1322. package/lib/schema-initializer/buttons/index.d.ts +2 -0
  1323. package/lib/schema-initializer/buttons/index.js +22 -44
  1324. package/lib/schema-initializer/components/BulkEditField.js +31 -69
  1325. package/lib/schema-initializer/components/CreateRecordAction.js +85 -95
  1326. package/lib/schema-initializer/components/assigned-field/AssignedField.js +33 -91
  1327. package/lib/schema-initializer/components/assigned-field/index.js +0 -2
  1328. package/lib/schema-initializer/components/index.js +0 -6
  1329. package/lib/schema-initializer/index.d.ts +1 -1
  1330. package/lib/schema-initializer/index.js +7 -11
  1331. package/lib/schema-initializer/items/ActionInitializer.js +4 -9
  1332. package/lib/schema-initializer/items/BlockInitializer.js +2 -9
  1333. package/lib/schema-initializer/items/BulkDestroyActionInitializer.js +4 -12
  1334. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.js +4 -9
  1335. package/lib/schema-initializer/items/CalendarBlockInitializer.js +61 -86
  1336. package/lib/schema-initializer/items/CollectionFieldInitializer.js +4 -9
  1337. package/lib/schema-initializer/items/CreateActionInitializer.js +5 -9
  1338. package/lib/schema-initializer/items/CreateChildInitializer.d.ts +1 -0
  1339. package/lib/schema-initializer/items/CreateChildInitializer.js +70 -0
  1340. package/lib/schema-initializer/items/CreateFilterActionInitializer.d.ts +1 -0
  1341. package/lib/schema-initializer/items/CreateFilterActionInitializer.js +31 -0
  1342. package/lib/schema-initializer/items/CreateFormBlockInitializer.js +45 -74
  1343. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +47 -76
  1344. package/lib/schema-initializer/items/CreateResetActionInitializer.d.ts +1 -0
  1345. package/lib/schema-initializer/items/CreateResetActionInitializer.js +29 -0
  1346. package/lib/schema-initializer/items/CreateSubmitActionInitializer.js +4 -9
  1347. package/lib/schema-initializer/items/CustomizeActionInitializer.js +4 -12
  1348. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.js +4 -9
  1349. package/lib/schema-initializer/items/DataBlockInitializer.js +43 -71
  1350. package/lib/schema-initializer/items/DeleteEventActionInitializer.js +4 -9
  1351. package/lib/schema-initializer/items/DestroyActionInitializer.js +4 -9
  1352. package/lib/schema-initializer/items/DetailsBlockInitializer.js +21 -36
  1353. package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +2 -0
  1354. package/lib/schema-initializer/items/ExpandActionInitializer.js +67 -0
  1355. package/lib/schema-initializer/items/FilterActionInitializer.js +4 -9
  1356. package/lib/schema-initializer/items/FilterBlockInitializer.d.ts +1 -0
  1357. package/lib/schema-initializer/items/FilterBlockInitializer.js +86 -0
  1358. package/lib/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +1 -0
  1359. package/lib/schema-initializer/items/FilterCollapseBlockInitializer.js +52 -0
  1360. package/lib/schema-initializer/items/FilterFormBlockInitializer.d.ts +1 -0
  1361. package/lib/schema-initializer/items/FilterFormBlockInitializer.js +36 -0
  1362. package/lib/schema-initializer/items/FormBlockInitializer.js +4 -13
  1363. package/lib/schema-initializer/items/G2PlotInitializer.js +6 -15
  1364. package/lib/schema-initializer/items/GanttBlockInitializer.d.ts +1 -0
  1365. package/lib/schema-initializer/items/GanttBlockInitializer.js +175 -0
  1366. package/lib/schema-initializer/items/InitializerWithSwitch.js +8 -19
  1367. package/lib/schema-initializer/items/KanbanBlockInitializer.js +85 -116
  1368. package/lib/schema-initializer/items/MarkdownBlockInitializer.js +5 -14
  1369. package/lib/schema-initializer/items/PrintActionInitializer.js +4 -9
  1370. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +37 -62
  1371. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +92 -130
  1372. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +37 -62
  1373. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +52 -79
  1374. package/lib/schema-initializer/items/RecordFormBlockInitializer.js +49 -78
  1375. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +51 -81
  1376. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +52 -83
  1377. package/lib/schema-initializer/items/RefreshActionInitializer.js +4 -9
  1378. package/lib/schema-initializer/items/SubmitActionInitializer.js +7 -11
  1379. package/lib/schema-initializer/items/TableActionColumnInitializer.js +4 -9
  1380. package/lib/schema-initializer/items/TableBlockInitializer.js +20 -36
  1381. package/lib/schema-initializer/items/TableCollectionFieldInitializer.js +4 -9
  1382. package/lib/schema-initializer/items/TableSelectorInitializer.js +24 -44
  1383. package/lib/schema-initializer/items/UpdateActionInitializer.js +4 -9
  1384. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.js +4 -9
  1385. package/lib/schema-initializer/items/ViewActionInitializer.js +4 -9
  1386. package/lib/schema-initializer/items/index.d.ts +7 -0
  1387. package/lib/schema-initializer/items/index.js +77 -86
  1388. package/lib/schema-initializer/utils.d.ts +174 -1
  1389. package/lib/schema-initializer/utils.js +672 -397
  1390. package/lib/schema-items/OpenModeSchemaItems.d.ts +7 -0
  1391. package/lib/schema-items/OpenModeSchemaItems.js +86 -0
  1392. package/lib/schema-items/index.d.ts +1 -0
  1393. package/lib/schema-items/index.js +16 -0
  1394. package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +2 -0
  1395. package/lib/schema-settings/DataTemplates/FormDataTemplates.js +182 -0
  1396. package/lib/schema-settings/DataTemplates/TreeLabel.d.ts +1 -0
  1397. package/lib/schema-settings/DataTemplates/TreeLabel.js +27 -0
  1398. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.d.ts +2 -0
  1399. package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +55 -0
  1400. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.d.ts +11 -0
  1401. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +271 -0
  1402. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +13 -0
  1403. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +155 -0
  1404. package/lib/schema-settings/DataTemplates/index.d.ts +1 -0
  1405. package/lib/schema-settings/DataTemplates/index.js +16 -0
  1406. package/lib/schema-settings/EnableChildCollections/index.js +28 -45
  1407. package/lib/schema-settings/GeneralSchemaDesigner.js +11 -34
  1408. package/lib/schema-settings/LinkageRules/DynamicComponent.js +7 -76
  1409. package/lib/schema-settings/LinkageRules/FilterDynamicComponent.js +3 -8
  1410. package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +33 -65
  1411. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +9 -23
  1412. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.js +36 -40
  1413. package/lib/schema-settings/LinkageRules/Variables.js +11 -37
  1414. package/lib/schema-settings/LinkageRules/action-hooks.js +5 -25
  1415. package/lib/schema-settings/LinkageRules/components/EnableLinkage.d.ts +2 -0
  1416. package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +48 -0
  1417. package/lib/schema-settings/LinkageRules/components/LinkageHeader.d.ts +11 -0
  1418. package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +262 -0
  1419. package/lib/schema-settings/LinkageRules/context.d.ts +1 -1
  1420. package/lib/schema-settings/LinkageRules/context.js +3 -5
  1421. package/lib/schema-settings/LinkageRules/index.js +20 -27
  1422. package/lib/schema-settings/LinkageRules/type.js +0 -1
  1423. package/lib/schema-settings/LinkageRules/useValues.js +8 -23
  1424. package/lib/schema-settings/SchemaSettings.d.ts +3 -0
  1425. package/lib/schema-settings/SchemaSettings.js +731 -611
  1426. package/lib/schema-settings/index.js +0 -4
  1427. package/lib/schema-templates/BlockTemplate.js +3 -22
  1428. package/lib/schema-templates/BlockTemplateDetails.js +34 -61
  1429. package/lib/schema-templates/BlockTemplatePage.js +2 -15
  1430. package/lib/schema-templates/SchemaTemplateManagerProvider.js +99 -164
  1431. package/lib/schema-templates/SchemaTemplateShortcut.js +1 -10
  1432. package/lib/schema-templates/index.js +0 -8
  1433. package/lib/schema-templates/schemas/uiSchemaTemplates.js +41 -66
  1434. package/lib/settings-form/SettingsForm.js +86 -138
  1435. package/lib/settings-form/index.js +0 -2
  1436. package/lib/system-settings/SystemSettingsProvider.js +14 -13
  1437. package/lib/system-settings/SystemSettingsShortcut.js +78 -121
  1438. package/lib/system-settings/index.js +0 -4
  1439. package/lib/user/ChangePassword.js +42 -78
  1440. package/lib/user/CurrentUser.js +28 -59
  1441. package/lib/user/CurrentUserProvider.js +1 -18
  1442. package/lib/user/EditProfile.js +43 -81
  1443. package/lib/user/LanguageSettings.js +37 -64
  1444. package/lib/user/SigninPage.js +37 -76
  1445. package/lib/user/SigninPageExtension.js +3 -20
  1446. package/lib/user/SignupPage.js +29 -57
  1447. package/lib/user/SwitchRole.js +30 -47
  1448. package/lib/user/ThemeSettings.d.ts +1 -0
  1449. package/lib/user/ThemeSettings.js +78 -0
  1450. package/lib/user/VerificationCode.js +50 -87
  1451. package/lib/user/index.js +0 -10
  1452. package/package.json +13 -9
  1453. package/es/collection-manager/templates/treeCollection.d.ts +0 -1
  1454. package/es/collection-manager/templates/treeCollection.js +0 -0
  1455. package/lib/collection-manager/templates/treeCollection.d.ts +0 -1
  1456. package/lib/collection-manager/templates/treeCollection.js +0 -1
@@ -1,43 +1,41 @@
1
1
  var _excluded = ["formItemInitializers", "actionInitializers", "collection", "association", "resource", "template"],
2
- _excluded2 = ["formItemInitializers", "actionInitializers", "collection", "resource", "association", "action", "template"],
3
- _excluded3 = ["formItemInitializers", "actionInitializers", "collection", "association", "resource", "template"],
4
- _excluded4 = ["collection", "resource", "rowKey", "tableActionInitializers", "tableColumnInitializers", "tableActionColumnInitializers", "tableBlockProvider", "disableTemplate"],
5
- _excluded5 = ["collection", "resource", "rowKey"],
6
- _excluded6 = ["collection", "resource", "fieldNames"],
7
- _excluded7 = ["collection", "resource", "groupField"];
8
-
2
+ _excluded2 = ["formItemInitializers", "actionInitializers", "collection", "resource", "association", "action", "template"],
3
+ _excluded3 = ["formItemInitializers", "actionInitializers", "collection", "resource", "association", "action", "template"],
4
+ _excluded4 = ["formItemInitializers", "actionInitializers", "collection", "association", "resource", "template"],
5
+ _excluded5 = ["collection", "resource", "rowKey", "tableActionInitializers", "tableColumnInitializers", "tableActionColumnInitializers", "tableBlockProvider", "disableTemplate", "TableBlockDesigner", "blockType", "pageSize"],
6
+ _excluded6 = ["collection", "resource", "rowKey"],
7
+ _excluded7 = ["collection", "resource", "fieldNames"],
8
+ _excluded8 = ["collection", "resource", "fieldNames"],
9
+ _excluded9 = ["collection", "resource", "groupField"];
10
+ 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); }
9
11
  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; }
10
-
11
12
  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; }
12
-
13
13
  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; }
14
-
15
14
  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; }
16
-
17
15
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
-
19
16
  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."); }
20
-
21
- 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); }
22
-
23
- 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; }
24
-
25
- 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; }
26
-
17
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
27
18
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
-
29
- 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; }
30
-
19
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
20
+ 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."); }
21
+ 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); }
22
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
23
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
24
+ 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; }
25
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
31
28
  import { Schema, useFieldSchema, useForm } from '@formily/react';
32
29
  import { uid } from '@formily/shared';
33
30
  import React, { useContext, useState } from 'react';
34
31
  import { useTranslation } from 'react-i18next';
35
32
  import { BlockRequestContext } from '../';
36
33
  import { useCollection, useCollectionManager } from '../collection-manager';
34
+ import { isAssocField } from '../filter-provider/utils';
37
35
  import { useActionContext, useDesignable } from '../schema-component';
38
36
  import { useSchemaTemplateManager } from '../schema-templates';
39
37
  import { SelectCollection } from './SelectCollection';
40
- export var itemsMerge = function itemsMerge(items1, items2) {
38
+ export var itemsMerge = function itemsMerge(items1) {
41
39
  return items1;
42
40
  };
43
41
  export var gridRowColWrap = function gridRowColWrap(schema) {
@@ -66,7 +64,6 @@ export var useRemoveGridFormItem = function useRemoveGridFormItem() {
66
64
  var form = useForm();
67
65
  return function (schema, cb) {
68
66
  var _form$values;
69
-
70
67
  cb(schema, {
71
68
  removeParentsIfNoChildren: true,
72
69
  breakRemoveOn: {
@@ -82,36 +79,30 @@ export var findTableColumn = function findTableColumn(schema, key, action) {
82
79
  if (s[key] === action) {
83
80
  return s;
84
81
  }
85
-
86
82
  var c = s.reduceProperties(function (buf, s) {
87
83
  if (s[key] === action) {
88
84
  return s;
89
85
  }
90
-
91
86
  return buf;
92
87
  });
93
-
94
88
  if (c) {
95
89
  return c;
96
90
  }
97
-
98
91
  return buf;
99
92
  });
100
93
  };
101
94
  export var useTableColumnInitializerFields = function useTableColumnInitializerFields() {
102
95
  var _useCollection = useCollection(),
103
- name = _useCollection.name,
104
- _useCollection$curren = _useCollection.currentFields,
105
- currentFields = _useCollection$curren === void 0 ? [] : _useCollection$curren;
106
-
96
+ name = _useCollection.name,
97
+ _useCollection$curren = _useCollection.currentFields,
98
+ currentFields = _useCollection$curren === void 0 ? [] : _useCollection$curren;
107
99
  var _useCollectionManager = useCollectionManager(),
108
- getInterface = _useCollectionManager.getInterface;
109
-
100
+ getInterface = _useCollectionManager.getInterface,
101
+ getCollection = _useCollectionManager.getCollection;
110
102
  return currentFields.filter(function (field) {
111
- return (field === null || field === void 0 ? void 0 : field.interface) && (field === null || field === void 0 ? void 0 : field.interface) !== 'subTable' && !(field === null || field === void 0 ? void 0 : field.isForeignKey);
103
+ return (field === null || field === void 0 ? void 0 : field.interface) && (field === null || field === void 0 ? void 0 : field.interface) !== 'subTable' && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && !(field === null || field === void 0 ? void 0 : field.treeChildren);
112
104
  }).map(function (field) {
113
105
  var _field$uiSchema;
114
-
115
106
  var interfaceConfig = getInterface(field.interface);
116
107
  var schema = {
117
108
  name: field.name,
@@ -119,8 +110,8 @@ export var useTableColumnInitializerFields = function useTableColumnInitializerF
119
110
  'x-component': 'CollectionField',
120
111
  'x-read-pretty': true,
121
112
  'x-component-props': {}
122
- }; // interfaceConfig?.schemaInitialize?.(schema, { field, readPretty: true, block: 'Table' });
123
-
113
+ };
114
+ // interfaceConfig?.schemaInitialize?.(schema, { field, readPretty: true, block: 'Table' });
124
115
  return {
125
116
  type: 'item',
126
117
  title: (field === null || field === void 0 ? void 0 : (_field$uiSchema = field.uiSchema) === null || _field$uiSchema === void 0 ? void 0 : _field$uiSchema.title) || field.name,
@@ -129,11 +120,11 @@ export var useTableColumnInitializerFields = function useTableColumnInitializerF
129
120
  remove: removeTableColumn,
130
121
  schemaInitialize: function schemaInitialize(s) {
131
122
  var _interfaceConfig$sche;
132
-
133
123
  interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche === void 0 ? void 0 : _interfaceConfig$sche.call(interfaceConfig, s, {
134
124
  field: field,
135
125
  readPretty: true,
136
- block: 'Table'
126
+ block: 'Table',
127
+ targetCollection: getCollection(field.target)
137
128
  });
138
129
  },
139
130
  field: field,
@@ -143,29 +134,28 @@ export var useTableColumnInitializerFields = function useTableColumnInitializerF
143
134
  };
144
135
  export var useAssociatedTableColumnInitializerFields = function useAssociatedTableColumnInitializerFields() {
145
136
  var _fields$filter;
146
-
147
137
  var _useCollection2 = useCollection(),
148
- name = _useCollection2.name,
149
- fields = _useCollection2.fields;
150
-
138
+ name = _useCollection2.name,
139
+ fields = _useCollection2.fields;
151
140
  var _useCollectionManager2 = useCollectionManager(),
152
- getInterface = _useCollectionManager2.getInterface,
153
- getCollectionFields = _useCollectionManager2.getCollectionFields;
154
-
141
+ getInterface = _useCollectionManager2.getInterface,
142
+ getCollectionFields = _useCollectionManager2.getCollectionFields,
143
+ getCollection = _useCollectionManager2.getCollection;
155
144
  var groups = fields === null || fields === void 0 ? void 0 : (_fields$filter = fields.filter(function (field) {
156
145
  return ['o2o', 'oho', 'obo', 'm2o'].includes(field.interface);
157
146
  })) === null || _fields$filter === void 0 ? void 0 : _fields$filter.map(function (field) {
158
147
  var _subFields$filter, _field$uiSchema2;
159
-
160
148
  var subFields = getCollectionFields(field.target);
161
- var items = subFields // ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
162
- === null || subFields // ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
163
- === void 0 ? void 0 : (_subFields$filter = subFields // ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
149
+ var items = subFields
150
+ // ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
151
+ === null || subFields
152
+ // ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
153
+ === void 0 ? void 0 : (_subFields$filter = subFields
154
+ // ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
164
155
  .filter(function (subField) {
165
- return (subField === null || subField === void 0 ? void 0 : subField.interface) && !['subTable'].includes(subField === null || subField === void 0 ? void 0 : subField.interface);
156
+ return (subField === null || subField === void 0 ? void 0 : subField.interface) && !['subTable'].includes(subField === null || subField === void 0 ? void 0 : subField.interface) && !(subField === null || subField === void 0 ? void 0 : subField.treeChildren);
166
157
  })) === null || _subFields$filter === void 0 ? void 0 : _subFields$filter.map(function (subField) {
167
158
  var _subField$uiSchema;
168
-
169
159
  var interfaceConfig = getInterface(subField.interface);
170
160
  var schema = {
171
161
  // type: 'string',
@@ -184,11 +174,11 @@ export var useAssociatedTableColumnInitializerFields = function useAssociatedTab
184
174
  remove: removeTableColumn,
185
175
  schemaInitialize: function schemaInitialize(s) {
186
176
  var _interfaceConfig$sche2;
187
-
188
177
  interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche2 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche2 === void 0 ? void 0 : _interfaceConfig$sche2.call(interfaceConfig, s, {
189
178
  field: subField,
190
179
  readPretty: true,
191
- block: 'Table'
180
+ block: 'Table',
181
+ targetCollection: getCollection(field.target)
192
182
  });
193
183
  },
194
184
  field: subField,
@@ -205,14 +195,12 @@ export var useAssociatedTableColumnInitializerFields = function useAssociatedTab
205
195
  };
206
196
  export var useInheritsTableColumnInitializerFields = function useInheritsTableColumnInitializerFields() {
207
197
  var _useCollection3 = useCollection(),
208
- name = _useCollection3.name;
209
-
198
+ name = _useCollection3.name;
210
199
  var _useCollectionManager3 = useCollectionManager(),
211
- getInterface = _useCollectionManager3.getInterface,
212
- getInheritCollections = _useCollectionManager3.getInheritCollections,
213
- getCollection = _useCollectionManager3.getCollection,
214
- getParentCollectionFields = _useCollectionManager3.getParentCollectionFields;
215
-
200
+ getInterface = _useCollectionManager3.getInterface,
201
+ getInheritCollections = _useCollectionManager3.getInheritCollections,
202
+ getCollection = _useCollectionManager3.getCollection,
203
+ getParentCollectionFields = _useCollectionManager3.getParentCollectionFields;
216
204
  var inherits = getInheritCollections(name);
217
205
  return inherits === null || inherits === void 0 ? void 0 : inherits.map(function (v) {
218
206
  var fields = getParentCollectionFields(v, name);
@@ -221,7 +209,6 @@ export var useInheritsTableColumnInitializerFields = function useInheritsTableCo
221
209
  return field === null || field === void 0 ? void 0 : field.interface;
222
210
  }).map(function (k) {
223
211
  var _k$uiSchema;
224
-
225
212
  var interfaceConfig = getInterface(k.interface);
226
213
  var schema = {
227
214
  name: "".concat(k.name),
@@ -238,11 +225,11 @@ export var useInheritsTableColumnInitializerFields = function useInheritsTableCo
238
225
  remove: removeTableColumn,
239
226
  schemaInitialize: function schemaInitialize(s) {
240
227
  var _interfaceConfig$sche3;
241
-
242
228
  interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche3 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche3 === void 0 ? void 0 : _interfaceConfig$sche3.call(interfaceConfig, s, {
243
229
  field: k,
244
230
  readPretty: true,
245
- block: 'Table'
231
+ block: 'Table',
232
+ targetCollection: getCollection(k === null || k === void 0 ? void 0 : k.target)
246
233
  });
247
234
  },
248
235
  field: k,
@@ -252,46 +239,42 @@ export var useInheritsTableColumnInitializerFields = function useInheritsTableCo
252
239
  });
253
240
  };
254
241
  export var useFormItemInitializerFields = function useFormItemInitializerFields(options) {
255
- var _actionCtx$fieldSchem, _currentFields$filter;
256
-
242
+ var _currentFields$filter;
257
243
  var _useCollection4 = useCollection(),
258
- name = _useCollection4.name,
259
- currentFields = _useCollection4.currentFields;
260
-
244
+ name = _useCollection4.name,
245
+ currentFields = _useCollection4.currentFields,
246
+ template = _useCollection4.template;
261
247
  var _useCollectionManager4 = useCollectionManager(),
262
- getInterface = _useCollectionManager4.getInterface;
263
-
248
+ getInterface = _useCollectionManager4.getInterface,
249
+ getCollection = _useCollectionManager4.getCollection;
264
250
  var form = useForm();
265
-
266
251
  var _ref2 = options || {},
267
- _ref2$readPretty = _ref2.readPretty,
268
- readPretty = _ref2$readPretty === void 0 ? form.readPretty : _ref2$readPretty,
269
- _ref2$block = _ref2.block,
270
- block = _ref2$block === void 0 ? 'Form' : _ref2$block;
271
-
272
- var actionCtx = useActionContext();
273
- var action = actionCtx === null || actionCtx === void 0 ? void 0 : (_actionCtx$fieldSchem = actionCtx.fieldSchema) === null || _actionCtx$fieldSchem === void 0 ? void 0 : _actionCtx$fieldSchem['x-action'];
274
-
252
+ _ref2$readPretty = _ref2.readPretty,
253
+ readPretty = _ref2$readPretty === void 0 ? form.readPretty : _ref2$readPretty,
254
+ _ref2$block = _ref2.block,
255
+ block = _ref2$block === void 0 ? 'Form' : _ref2$block;
275
256
  var _useActionContext = useActionContext(),
276
- snapshot = _useActionContext.snapshot;
277
-
257
+ snapshot = _useActionContext.snapshot,
258
+ fieldSchema = _useActionContext.fieldSchema;
259
+ var action = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-action'];
278
260
  return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields$filter = currentFields.filter(function (field) {
279
- return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey);
261
+ return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && !(field === null || field === void 0 ? void 0 : field.treeChildren);
280
262
  })) === null || _currentFields$filter === void 0 ? void 0 : _currentFields$filter.map(function (field) {
281
263
  var _field$uiSchema3, _field$uiSchema4;
282
-
283
264
  var interfaceConfig = getInterface(field.interface);
265
+ var targetCollection = getCollection(field.target);
266
+ var component = field.interface === 'o2m' && (targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) !== 'file' && !snapshot ? 'TableField' : 'CollectionField';
284
267
  var schema = {
285
268
  type: 'string',
286
269
  name: field.name,
287
270
  'x-designer': 'FormItem.Designer',
288
- 'x-component': field.interface === 'o2m' && !snapshot ? 'TableField' : 'CollectionField',
271
+ 'x-component': component,
289
272
  'x-decorator': 'FormItem',
290
273
  'x-collection-field': "".concat(name, ".").concat(field.name),
291
274
  'x-component-props': {},
292
275
  'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema3 = field.uiSchema) === null || _field$uiSchema3 === void 0 ? void 0 : _field$uiSchema3['x-read-pretty']
293
- }; // interfaceConfig?.schemaInitialize?.(schema, { field, block: 'Form', readPretty: form.readPretty });
294
-
276
+ };
277
+ // interfaceConfig?.schemaInitialize?.(schema, { field, block: 'Form', readPretty: form.readPretty });
295
278
  var resultItem = {
296
279
  type: 'item',
297
280
  title: (field === null || field === void 0 ? void 0 : (_field$uiSchema4 = field.uiSchema) === null || _field$uiSchema4 === void 0 ? void 0 : _field$uiSchema4.title) || field.name,
@@ -299,58 +282,120 @@ export var useFormItemInitializerFields = function useFormItemInitializerFields(
299
282
  remove: removeGridFormItem,
300
283
  schemaInitialize: function schemaInitialize(s) {
301
284
  var _interfaceConfig$sche4;
302
-
303
285
  interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche4 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche4 === void 0 ? void 0 : _interfaceConfig$sche4.call(interfaceConfig, s, {
304
286
  field: field,
305
287
  block: block,
306
288
  readPretty: readPretty,
307
- action: action
289
+ action: action,
290
+ targetCollection: targetCollection
308
291
  });
309
292
  },
310
293
  schema: schema
311
294
  };
312
-
313
295
  if (block == 'Kanban') {
314
296
  resultItem['find'] = function (schema, key, action) {
315
297
  var s = findSchema(schema, 'x-component', block);
316
298
  return findSchema(s, key, action);
317
299
  };
318
300
  }
319
-
320
301
  return resultItem;
321
302
  });
322
303
  };
323
- export var useAssociatedFormItemInitializerFields = function useAssociatedFormItemInitializerFields(options) {
324
- var _fields$filter2;
325
-
304
+ // 筛选表单相关
305
+ export var useFilterFormItemInitializerFields = function useFilterFormItemInitializerFields(options) {
306
+ var _currentFields$filter2;
326
307
  var _useCollection5 = useCollection(),
327
- name = _useCollection5.name,
328
- fields = _useCollection5.fields;
329
-
308
+ name = _useCollection5.name,
309
+ currentFields = _useCollection5.currentFields;
330
310
  var _useCollectionManager5 = useCollectionManager(),
331
- getInterface = _useCollectionManager5.getInterface,
332
- getCollectionFields = _useCollectionManager5.getCollectionFields;
333
-
311
+ getInterface = _useCollectionManager5.getInterface,
312
+ getCollection = _useCollectionManager5.getCollection;
334
313
  var form = useForm();
335
-
336
314
  var _ref3 = options || {},
337
- _ref3$readPretty = _ref3.readPretty,
338
- readPretty = _ref3$readPretty === void 0 ? form.readPretty : _ref3$readPretty,
339
- _ref3$block = _ref3.block,
340
- block = _ref3$block === void 0 ? 'Form' : _ref3$block;
341
-
315
+ _ref3$readPretty = _ref3.readPretty,
316
+ readPretty = _ref3$readPretty === void 0 ? form.readPretty : _ref3$readPretty,
317
+ _ref3$block = _ref3.block,
318
+ block = _ref3$block === void 0 ? 'FilterForm' : _ref3$block;
319
+ var _useActionContext2 = useActionContext(),
320
+ snapshot = _useActionContext2.snapshot,
321
+ fieldSchema = _useActionContext2.fieldSchema;
322
+ var action = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-action'];
323
+ return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields$filter2 = currentFields.filter(function (field) {
324
+ var _getInterface;
325
+ return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && ((_getInterface = getInterface(field.interface)) === null || _getInterface === void 0 ? void 0 : _getInterface.filterable);
326
+ })) === null || _currentFields$filter2 === void 0 ? void 0 : _currentFields$filter2.map(function (field) {
327
+ var _field$uiSchema6;
328
+ var interfaceConfig = getInterface(field.interface);
329
+ var targetCollection = getCollection(field.target);
330
+ var component = field.interface === 'o2m' && (targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) !== 'file' && !snapshot ? 'TableField' : 'CollectionField';
331
+ var schema = {
332
+ type: 'string',
333
+ name: field.name,
334
+ required: false,
335
+ 'x-designer': 'FormItem.FilterFormDesigner',
336
+ 'x-component': component,
337
+ 'x-decorator': 'FormItem',
338
+ 'x-collection-field': "".concat(name, ".").concat(field.name),
339
+ 'x-component-props': {}
340
+ };
341
+ if (isAssocField(field)) {
342
+ var _field$uiSchema5;
343
+ schema = {
344
+ type: 'string',
345
+ name: field.name,
346
+ required: false,
347
+ 'x-designer': 'AssociationSelect.FilterDesigner',
348
+ 'x-component': 'AssociationSelect',
349
+ 'x-decorator': 'FormItem',
350
+ 'x-collection-field': "".concat(name, ".").concat(field.name),
351
+ 'x-component-props': (_field$uiSchema5 = field.uiSchema) === null || _field$uiSchema5 === void 0 ? void 0 : _field$uiSchema5['x-component-props']
352
+ };
353
+ }
354
+ var resultItem = {
355
+ type: 'item',
356
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema6 = field.uiSchema) === null || _field$uiSchema6 === void 0 ? void 0 : _field$uiSchema6.title) || field.name,
357
+ component: 'CollectionFieldInitializer',
358
+ remove: removeGridFormItem,
359
+ schemaInitialize: function schemaInitialize(s) {
360
+ var _interfaceConfig$sche5;
361
+ interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche5 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche5 === void 0 ? void 0 : _interfaceConfig$sche5.call(interfaceConfig, s, {
362
+ field: field,
363
+ block: block,
364
+ readPretty: readPretty,
365
+ action: action,
366
+ targetCollection: targetCollection
367
+ });
368
+ },
369
+ schema: schema
370
+ };
371
+ return resultItem;
372
+ });
373
+ };
374
+ export var useAssociatedFormItemInitializerFields = function useAssociatedFormItemInitializerFields(options) {
375
+ var _fields$filter2;
376
+ var _useCollection6 = useCollection(),
377
+ name = _useCollection6.name,
378
+ fields = _useCollection6.fields;
379
+ var _useCollectionManager6 = useCollectionManager(),
380
+ getInterface = _useCollectionManager6.getInterface,
381
+ getCollectionFields = _useCollectionManager6.getCollectionFields,
382
+ getCollection = _useCollectionManager6.getCollection;
383
+ var form = useForm();
384
+ var _ref4 = options || {},
385
+ _ref4$readPretty = _ref4.readPretty,
386
+ readPretty = _ref4$readPretty === void 0 ? form.readPretty : _ref4$readPretty,
387
+ _ref4$block = _ref4.block,
388
+ block = _ref4$block === void 0 ? 'Form' : _ref4$block;
342
389
  var interfaces = block === 'Form' ? ['m2o'] : ['o2o', 'oho', 'obo', 'm2o'];
343
390
  var groups = fields === null || fields === void 0 ? void 0 : (_fields$filter2 = fields.filter(function (field) {
344
391
  return interfaces.includes(field.interface);
345
392
  })) === null || _fields$filter2 === void 0 ? void 0 : _fields$filter2.map(function (field) {
346
- var _subFields$filter2, _field$uiSchema5;
347
-
393
+ var _subFields$filter2, _field$uiSchema7;
348
394
  var subFields = getCollectionFields(field.target);
349
395
  var items = subFields === null || subFields === void 0 ? void 0 : (_subFields$filter2 = subFields.filter(function (subField) {
350
- return (subField === null || subField === void 0 ? void 0 : subField.interface) && !['subTable'].includes(subField === null || subField === void 0 ? void 0 : subField.interface);
396
+ return (subField === null || subField === void 0 ? void 0 : subField.interface) && !['subTable'].includes(subField === null || subField === void 0 ? void 0 : subField.interface) && !subField.treeChildren;
351
397
  })) === null || _subFields$filter2 === void 0 ? void 0 : _subFields$filter2.map(function (subField) {
352
398
  var _subField$uiSchema2;
353
-
354
399
  var interfaceConfig = getInterface(subField.interface);
355
400
  var schema = {
356
401
  type: 'string',
@@ -370,12 +415,12 @@ export var useAssociatedFormItemInitializerFields = function useAssociatedFormIt
370
415
  component: 'CollectionFieldInitializer',
371
416
  remove: removeGridFormItem,
372
417
  schemaInitialize: function schemaInitialize(s) {
373
- var _interfaceConfig$sche5;
374
-
375
- interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche5 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche5 === void 0 ? void 0 : _interfaceConfig$sche5.call(interfaceConfig, s, {
418
+ var _interfaceConfig$sche6;
419
+ interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche6 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche6 === void 0 ? void 0 : _interfaceConfig$sche6.call(interfaceConfig, s, {
376
420
  field: subField,
377
421
  block: block,
378
- readPretty: readPretty
422
+ readPretty: readPretty,
423
+ targetCollection: getCollection(field.target)
379
424
  });
380
425
  },
381
426
  schema: schema
@@ -383,69 +428,177 @@ export var useAssociatedFormItemInitializerFields = function useAssociatedFormIt
383
428
  });
384
429
  return {
385
430
  type: 'subMenu',
386
- title: (_field$uiSchema5 = field.uiSchema) === null || _field$uiSchema5 === void 0 ? void 0 : _field$uiSchema5.title,
431
+ title: (_field$uiSchema7 = field.uiSchema) === null || _field$uiSchema7 === void 0 ? void 0 : _field$uiSchema7.title,
387
432
  children: items
388
433
  };
389
434
  });
390
435
  return groups;
391
436
  };
437
+ var getItem = function getItem(field, schemaName, collectionName, getCollectionFields, processedCollections) {
438
+ var _field$uiSchema9;
439
+ if (field.interface === 'm2o') {
440
+ var _field$uiSchema8;
441
+ if (processedCollections.includes(field.target)) return null;
442
+ var subFields = getCollectionFields(field.target);
443
+ return {
444
+ type: 'subMenu',
445
+ title: (_field$uiSchema8 = field.uiSchema) === null || _field$uiSchema8 === void 0 ? void 0 : _field$uiSchema8.title,
446
+ children: subFields.map(function (subField) {
447
+ return getItem(subField, "".concat(schemaName, ".").concat(subField.name), collectionName, getCollectionFields, [].concat(_toConsumableArray(processedCollections), [field.target]));
448
+ }).filter(Boolean)
449
+ };
450
+ }
451
+ if (isAssocField(field)) return null;
452
+ var schema = {
453
+ type: 'string',
454
+ name: schemaName,
455
+ 'x-designer': 'FormItem.FilterFormDesigner',
456
+ 'x-designer-props': {
457
+ // 在 useOperatorList 中使用,用于获取对应的操作符列表
458
+ interface: field.interface
459
+ },
460
+ 'x-component': 'CollectionField',
461
+ 'x-read-pretty': false,
462
+ 'x-decorator': 'FormItem',
463
+ 'x-collection-field': "".concat(collectionName, ".").concat(schemaName)
464
+ };
465
+ return {
466
+ type: 'item',
467
+ title: ((_field$uiSchema9 = field.uiSchema) === null || _field$uiSchema9 === void 0 ? void 0 : _field$uiSchema9.title) || field.name,
468
+ component: 'CollectionFieldInitializer',
469
+ remove: removeGridFormItem,
470
+ schema: schema
471
+ };
472
+ };
473
+ // 筛选表单相关
474
+ export var useFilterAssociatedFormItemInitializerFields = function useFilterAssociatedFormItemInitializerFields() {
475
+ var _fields$filter3;
476
+ var _useCollection7 = useCollection(),
477
+ name = _useCollection7.name,
478
+ fields = _useCollection7.fields;
479
+ var _useCollectionManager7 = useCollectionManager(),
480
+ getCollectionFields = _useCollectionManager7.getCollectionFields;
481
+ var interfaces = ['m2o'];
482
+ var groups = fields === null || fields === void 0 ? void 0 : (_fields$filter3 = fields.filter(function (field) {
483
+ return interfaces.includes(field.interface);
484
+ })) === null || _fields$filter3 === void 0 ? void 0 : _fields$filter3.map(function (field) {
485
+ return getItem(field, field.name, name, getCollectionFields, []);
486
+ });
487
+ return groups;
488
+ };
392
489
  export var useInheritsFormItemInitializerFields = function useInheritsFormItemInitializerFields(options) {
393
- var _useCollection6 = useCollection(),
394
- name = _useCollection6.name;
395
-
396
- var _useCollectionManager6 = useCollectionManager(),
397
- getInterface = _useCollectionManager6.getInterface,
398
- getInheritCollections = _useCollectionManager6.getInheritCollections,
399
- getCollection = _useCollectionManager6.getCollection,
400
- getParentCollectionFields = _useCollectionManager6.getParentCollectionFields;
401
-
490
+ var _useCollection8 = useCollection(),
491
+ name = _useCollection8.name,
492
+ template = _useCollection8.template;
493
+ var _useCollectionManager8 = useCollectionManager(),
494
+ getInterface = _useCollectionManager8.getInterface,
495
+ getInheritCollections = _useCollectionManager8.getInheritCollections,
496
+ getCollection = _useCollectionManager8.getCollection,
497
+ getParentCollectionFields = _useCollectionManager8.getParentCollectionFields;
402
498
  var inherits = getInheritCollections(name);
403
-
404
- var _useActionContext2 = useActionContext(),
405
- snapshot = _useActionContext2.snapshot;
406
-
499
+ var _useActionContext3 = useActionContext(),
500
+ snapshot = _useActionContext3.snapshot;
407
501
  return inherits === null || inherits === void 0 ? void 0 : inherits.map(function (v) {
408
- var _fields$filter3;
409
-
502
+ var _fields$filter4;
410
503
  var fields = getParentCollectionFields(v, name);
411
504
  var form = useForm();
412
-
413
- var _ref4 = options || {},
414
- _ref4$readPretty = _ref4.readPretty,
415
- readPretty = _ref4$readPretty === void 0 ? form.readPretty : _ref4$readPretty,
416
- _ref4$block = _ref4.block,
417
- block = _ref4$block === void 0 ? 'Form' : _ref4$block;
418
-
505
+ var _ref5 = options || {},
506
+ _ref5$readPretty = _ref5.readPretty,
507
+ readPretty = _ref5$readPretty === void 0 ? form.readPretty : _ref5$readPretty,
508
+ _ref5$block = _ref5.block,
509
+ block = _ref5$block === void 0 ? 'Form' : _ref5$block;
419
510
  var targetCollection = getCollection(v);
420
- return _defineProperty({}, targetCollection.title, fields === null || fields === void 0 ? void 0 : (_fields$filter3 = fields.filter(function (field) {
511
+ return _defineProperty({}, targetCollection.title, fields === null || fields === void 0 ? void 0 : (_fields$filter4 = fields.filter(function (field) {
421
512
  return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey);
422
- })) === null || _fields$filter3 === void 0 ? void 0 : _fields$filter3.map(function (field) {
423
- var _field$uiSchema6, _field$uiSchema7, _field$uiSchema8;
424
-
513
+ })) === null || _fields$filter4 === void 0 ? void 0 : _fields$filter4.map(function (field) {
514
+ var _field$uiSchema10, _field$uiSchema11, _field$uiSchema12;
425
515
  var interfaceConfig = getInterface(field.interface);
516
+ var targetCollection = getCollection(field.target);
517
+ var component = field.interface === 'o2m' && (targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) !== 'file' && !snapshot ? 'TableField' : 'CollectionField';
426
518
  var schema = {
427
519
  type: 'string',
428
520
  name: field.name,
429
- title: (field === null || field === void 0 ? void 0 : (_field$uiSchema6 = field.uiSchema) === null || _field$uiSchema6 === void 0 ? void 0 : _field$uiSchema6.title) || field.name,
521
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema10 = field.uiSchema) === null || _field$uiSchema10 === void 0 ? void 0 : _field$uiSchema10.title) || field.name,
430
522
  'x-designer': 'FormItem.Designer',
431
- 'x-component': field.interface === 'o2m' && !snapshot ? 'TableField' : 'CollectionField',
523
+ 'x-component': component,
432
524
  'x-decorator': 'FormItem',
433
525
  'x-collection-field': "".concat(name, ".").concat(field.name),
434
526
  'x-component-props': {},
435
- 'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema7 = field.uiSchema) === null || _field$uiSchema7 === void 0 ? void 0 : _field$uiSchema7['x-read-pretty']
527
+ 'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema11 = field.uiSchema) === null || _field$uiSchema11 === void 0 ? void 0 : _field$uiSchema11['x-read-pretty']
436
528
  };
437
529
  return {
438
530
  type: 'item',
439
- title: (field === null || field === void 0 ? void 0 : (_field$uiSchema8 = field.uiSchema) === null || _field$uiSchema8 === void 0 ? void 0 : _field$uiSchema8.title) || field.name,
531
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema12 = field.uiSchema) === null || _field$uiSchema12 === void 0 ? void 0 : _field$uiSchema12.title) || field.name,
440
532
  component: 'CollectionFieldInitializer',
441
533
  remove: removeGridFormItem,
442
534
  schemaInitialize: function schemaInitialize(s) {
443
- var _interfaceConfig$sche6;
444
-
445
- interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche6 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche6 === void 0 ? void 0 : _interfaceConfig$sche6.call(interfaceConfig, s, {
535
+ var _interfaceConfig$sche7;
536
+ interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche7 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche7 === void 0 ? void 0 : _interfaceConfig$sche7.call(interfaceConfig, s, {
537
+ field: field,
538
+ block: block,
539
+ readPretty: readPretty,
540
+ targetCollection: targetCollection
541
+ });
542
+ },
543
+ schema: schema
544
+ };
545
+ }));
546
+ });
547
+ };
548
+ // 筛选表单相关
549
+ export var useFilterInheritsFormItemInitializerFields = function useFilterInheritsFormItemInitializerFields(options) {
550
+ var _useCollection9 = useCollection(),
551
+ name = _useCollection9.name;
552
+ var _useCollectionManager9 = useCollectionManager(),
553
+ getInterface = _useCollectionManager9.getInterface,
554
+ getInheritCollections = _useCollectionManager9.getInheritCollections,
555
+ getCollection = _useCollectionManager9.getCollection,
556
+ getParentCollectionFields = _useCollectionManager9.getParentCollectionFields;
557
+ var inherits = getInheritCollections(name);
558
+ var _useActionContext4 = useActionContext(),
559
+ snapshot = _useActionContext4.snapshot;
560
+ return inherits === null || inherits === void 0 ? void 0 : inherits.map(function (v) {
561
+ var _fields$filter5;
562
+ var fields = getParentCollectionFields(v, name);
563
+ var form = useForm();
564
+ var _ref7 = options || {},
565
+ _ref7$readPretty = _ref7.readPretty,
566
+ readPretty = _ref7$readPretty === void 0 ? form.readPretty : _ref7$readPretty,
567
+ _ref7$block = _ref7.block,
568
+ block = _ref7$block === void 0 ? 'Form' : _ref7$block;
569
+ var targetCollection = getCollection(v);
570
+ return _defineProperty({}, targetCollection.title, fields === null || fields === void 0 ? void 0 : (_fields$filter5 = fields.filter(function (field) {
571
+ var _getInterface2;
572
+ return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && ((_getInterface2 = getInterface(field.interface)) === null || _getInterface2 === void 0 ? void 0 : _getInterface2.filterable);
573
+ })) === null || _fields$filter5 === void 0 ? void 0 : _fields$filter5.map(function (field) {
574
+ var _field$uiSchema13, _field$uiSchema14, _field$uiSchema15;
575
+ var interfaceConfig = getInterface(field.interface);
576
+ var targetCollection = getCollection(field.target);
577
+ var component = field.interface === 'o2m' && (targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.template) !== 'file' && !snapshot ? 'TableField' : 'CollectionField';
578
+ var schema = {
579
+ type: 'string',
580
+ name: field.name,
581
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema13 = field.uiSchema) === null || _field$uiSchema13 === void 0 ? void 0 : _field$uiSchema13.title) || field.name,
582
+ required: false,
583
+ 'x-designer': 'FormItem.FilterFormDesigner',
584
+ 'x-component': component,
585
+ 'x-decorator': 'FormItem',
586
+ 'x-collection-field': "".concat(name, ".").concat(field.name),
587
+ 'x-component-props': {},
588
+ 'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema14 = field.uiSchema) === null || _field$uiSchema14 === void 0 ? void 0 : _field$uiSchema14['x-read-pretty']
589
+ };
590
+ return {
591
+ type: 'item',
592
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema15 = field.uiSchema) === null || _field$uiSchema15 === void 0 ? void 0 : _field$uiSchema15.title) || field.name,
593
+ component: 'CollectionFieldInitializer',
594
+ remove: removeGridFormItem,
595
+ schemaInitialize: function schemaInitialize(s) {
596
+ var _interfaceConfig$sche8;
597
+ interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche8 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche8 === void 0 ? void 0 : _interfaceConfig$sche8.call(interfaceConfig, s, {
446
598
  field: field,
447
599
  block: block,
448
- readPretty: readPretty
600
+ readPretty: readPretty,
601
+ targetCollection: targetCollection
449
602
  });
450
603
  },
451
604
  schema: schema
@@ -454,36 +607,30 @@ export var useInheritsFormItemInitializerFields = function useInheritsFormItemIn
454
607
  });
455
608
  };
456
609
  export var useCustomFormItemInitializerFields = function useCustomFormItemInitializerFields(options) {
457
- var _currentFields$filter2;
458
-
459
- var _useCollection7 = useCollection(),
460
- name = _useCollection7.name,
461
- currentFields = _useCollection7.currentFields;
462
-
463
- var _useCollectionManager7 = useCollectionManager(),
464
- getInterface = _useCollectionManager7.getInterface;
465
-
610
+ var _currentFields$filter3;
611
+ var _useCollection10 = useCollection(),
612
+ name = _useCollection10.name,
613
+ currentFields = _useCollection10.currentFields;
614
+ var _useCollectionManager10 = useCollectionManager(),
615
+ getInterface = _useCollectionManager10.getInterface,
616
+ getCollection = _useCollectionManager10.getCollection;
466
617
  var form = useForm();
467
-
468
- var _ref6 = options || {},
469
- _ref6$readPretty = _ref6.readPretty,
470
- readPretty = _ref6$readPretty === void 0 ? form.readPretty : _ref6$readPretty,
471
- _ref6$block = _ref6.block,
472
- block = _ref6$block === void 0 ? 'Form' : _ref6$block;
473
-
618
+ var _ref9 = options || {},
619
+ _ref9$readPretty = _ref9.readPretty,
620
+ readPretty = _ref9$readPretty === void 0 ? form.readPretty : _ref9$readPretty,
621
+ _ref9$block = _ref9.block,
622
+ block = _ref9$block === void 0 ? 'Form' : _ref9$block;
474
623
  var remove = useRemoveGridFormItem();
475
- return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields$filter2 = currentFields.filter(function (field) {
476
- var _field$uiSchema9;
477
-
478
- return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$uiSchema9 = field.uiSchema) === null || _field$uiSchema9 === void 0 ? void 0 : _field$uiSchema9['x-read-pretty']) && field.interface !== 'snapshot';
479
- })) === null || _currentFields$filter2 === void 0 ? void 0 : _currentFields$filter2.map(function (field) {
480
- var _field$uiSchema10, _field$uiSchema11;
481
-
624
+ return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields$filter3 = currentFields.filter(function (field) {
625
+ var _field$uiSchema16;
626
+ return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$uiSchema16 = field.uiSchema) === null || _field$uiSchema16 === void 0 ? void 0 : _field$uiSchema16['x-read-pretty']) && field.interface !== 'snapshot';
627
+ })) === null || _currentFields$filter3 === void 0 ? void 0 : _currentFields$filter3.map(function (field) {
628
+ var _field$uiSchema17, _field$uiSchema18;
482
629
  var interfaceConfig = getInterface(field.interface);
483
630
  var schema = {
484
631
  type: 'string',
485
632
  name: field.name,
486
- title: (field === null || field === void 0 ? void 0 : (_field$uiSchema10 = field.uiSchema) === null || _field$uiSchema10 === void 0 ? void 0 : _field$uiSchema10.title) || field.name,
633
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema17 = field.uiSchema) === null || _field$uiSchema17 === void 0 ? void 0 : _field$uiSchema17.title) || field.name,
487
634
  'x-designer': 'FormItem.Designer',
488
635
  'x-component': 'AssignedField',
489
636
  'x-decorator': 'FormItem',
@@ -491,16 +638,16 @@ export var useCustomFormItemInitializerFields = function useCustomFormItemInitia
491
638
  };
492
639
  return {
493
640
  type: 'item',
494
- title: (field === null || field === void 0 ? void 0 : (_field$uiSchema11 = field.uiSchema) === null || _field$uiSchema11 === void 0 ? void 0 : _field$uiSchema11.title) || field.name,
641
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema18 = field.uiSchema) === null || _field$uiSchema18 === void 0 ? void 0 : _field$uiSchema18.title) || field.name,
495
642
  component: 'CollectionFieldInitializer',
496
643
  remove: remove,
497
644
  schemaInitialize: function schemaInitialize(s) {
498
- var _interfaceConfig$sche7;
499
-
500
- interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche7 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche7 === void 0 ? void 0 : _interfaceConfig$sche7.call(interfaceConfig, s, {
645
+ var _interfaceConfig$sche9;
646
+ interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche9 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche9 === void 0 ? void 0 : _interfaceConfig$sche9.call(interfaceConfig, s, {
501
647
  field: field,
502
648
  block: block,
503
- readPretty: readPretty
649
+ readPretty: readPretty,
650
+ targetCollection: getCollection(field.target)
504
651
  });
505
652
  },
506
653
  schema: schema
@@ -508,36 +655,30 @@ export var useCustomFormItemInitializerFields = function useCustomFormItemInitia
508
655
  });
509
656
  };
510
657
  export var useCustomBulkEditFormItemInitializerFields = function useCustomBulkEditFormItemInitializerFields(options) {
511
- var _fields$filter4;
512
-
513
- var _useCollection8 = useCollection(),
514
- name = _useCollection8.name,
515
- fields = _useCollection8.fields;
516
-
517
- var _useCollectionManager8 = useCollectionManager(),
518
- getInterface = _useCollectionManager8.getInterface;
519
-
658
+ var _fields$filter6;
659
+ var _useCollection11 = useCollection(),
660
+ name = _useCollection11.name,
661
+ fields = _useCollection11.fields;
662
+ var _useCollectionManager11 = useCollectionManager(),
663
+ getInterface = _useCollectionManager11.getInterface,
664
+ getCollection = _useCollectionManager11.getCollection;
520
665
  var form = useForm();
521
-
522
- var _ref7 = options || {},
523
- _ref7$readPretty = _ref7.readPretty,
524
- readPretty = _ref7$readPretty === void 0 ? form.readPretty : _ref7$readPretty,
525
- _ref7$block = _ref7.block,
526
- block = _ref7$block === void 0 ? 'Form' : _ref7$block;
527
-
666
+ var _ref10 = options || {},
667
+ _ref10$readPretty = _ref10.readPretty,
668
+ readPretty = _ref10$readPretty === void 0 ? form.readPretty : _ref10$readPretty,
669
+ _ref10$block = _ref10.block,
670
+ block = _ref10$block === void 0 ? 'Form' : _ref10$block;
528
671
  var remove = useRemoveGridFormItem();
529
- return fields === null || fields === void 0 ? void 0 : (_fields$filter4 = fields.filter(function (field) {
530
- var _field$uiSchema12;
531
-
532
- return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$uiSchema12 = field.uiSchema) === null || _field$uiSchema12 === void 0 ? void 0 : _field$uiSchema12['x-read-pretty']) && field.interface !== 'snapshot';
533
- })) === null || _fields$filter4 === void 0 ? void 0 : _fields$filter4.map(function (field) {
534
- var _field$uiSchema13, _field$uiSchema14;
535
-
672
+ return fields === null || fields === void 0 ? void 0 : (_fields$filter6 = fields.filter(function (field) {
673
+ var _field$uiSchema19;
674
+ return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$uiSchema19 = field.uiSchema) === null || _field$uiSchema19 === void 0 ? void 0 : _field$uiSchema19['x-read-pretty']) && field.interface !== 'snapshot';
675
+ })) === null || _fields$filter6 === void 0 ? void 0 : _fields$filter6.map(function (field) {
676
+ var _field$uiSchema20, _field$uiSchema21;
536
677
  var interfaceConfig = getInterface(field.interface);
537
678
  var schema = {
538
679
  type: 'string',
539
680
  name: field.name,
540
- title: (field === null || field === void 0 ? void 0 : (_field$uiSchema13 = field.uiSchema) === null || _field$uiSchema13 === void 0 ? void 0 : _field$uiSchema13.title) || field.name,
681
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema20 = field.uiSchema) === null || _field$uiSchema20 === void 0 ? void 0 : _field$uiSchema20.title) || field.name,
541
682
  'x-designer': 'FormItem.Designer',
542
683
  'x-component': 'BulkEditField',
543
684
  'x-decorator': 'FormItem',
@@ -545,71 +686,58 @@ export var useCustomBulkEditFormItemInitializerFields = function useCustomBulkEd
545
686
  };
546
687
  return {
547
688
  type: 'item',
548
- title: (field === null || field === void 0 ? void 0 : (_field$uiSchema14 = field.uiSchema) === null || _field$uiSchema14 === void 0 ? void 0 : _field$uiSchema14.title) || field.name,
689
+ title: (field === null || field === void 0 ? void 0 : (_field$uiSchema21 = field.uiSchema) === null || _field$uiSchema21 === void 0 ? void 0 : _field$uiSchema21.title) || field.name,
549
690
  component: 'CollectionFieldInitializer',
550
691
  remove: remove,
551
692
  schemaInitialize: function schemaInitialize(s) {
552
- var _interfaceConfig$sche8;
553
-
554
- interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche8 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche8 === void 0 ? void 0 : _interfaceConfig$sche8.call(interfaceConfig, s, {
693
+ var _interfaceConfig$sche10;
694
+ interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche10 = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche10 === void 0 ? void 0 : _interfaceConfig$sche10.call(interfaceConfig, s, {
555
695
  field: field,
556
696
  block: block,
557
- readPretty: readPretty
697
+ readPretty: readPretty,
698
+ targetCollection: getCollection(field.target)
558
699
  });
559
700
  },
560
701
  schema: schema
561
702
  };
562
703
  });
563
704
  };
564
-
565
705
  var findSchema = function findSchema(schema, key, action) {
566
706
  if (!Schema.isSchemaInstance(schema)) return null;
567
707
  return schema.reduceProperties(function (buf, s) {
568
708
  if (s[key] === action) {
569
709
  return s;
570
710
  }
571
-
572
711
  var c = findSchema(s, key, action);
573
-
574
712
  if (c) {
575
713
  return c;
576
714
  }
577
-
578
715
  return buf;
579
716
  });
580
717
  };
581
-
582
718
  var removeSchema = function removeSchema(schema, cb) {
583
719
  return cb(schema);
584
720
  };
585
-
586
721
  var recursiveParent = function recursiveParent(schema) {
587
722
  if (!schema.parent) return null;
588
723
  if (schema.parent['x-initializer']) return schema.parent;
589
724
  return recursiveParent(schema.parent);
590
725
  };
591
-
592
726
  export var useCurrentSchema = function useCurrentSchema(action, key) {
593
727
  var _fieldSchema;
594
-
595
728
  var find = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : findSchema;
596
729
  var rm = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : removeSchema;
597
730
  var fieldSchema = useFieldSchema();
598
-
599
731
  if (!((_fieldSchema = fieldSchema) === null || _fieldSchema === void 0 ? void 0 : _fieldSchema['x-initializer'])) {
600
732
  var recursiveInitializerSchema = recursiveParent(fieldSchema);
601
-
602
733
  if (recursiveInitializerSchema) {
603
734
  fieldSchema = recursiveInitializerSchema;
604
735
  }
605
736
  }
606
-
607
737
  var _useDesignable = useDesignable(),
608
- _remove = _useDesignable.remove;
609
-
738
+ _remove = _useDesignable.remove;
610
739
  var schema = find(fieldSchema, key, action);
611
740
  var ctx = useContext(BlockRequestContext);
612
- var exists = !!schema;
613
741
  return {
614
742
  schema: schema,
615
743
  exists: !!schema,
@@ -619,7 +747,6 @@ export var useCurrentSchema = function useCurrentSchema(action, key) {
619
747
  ctx.field.data.activeFields = ctx.field.data.activeFields || new Set();
620
748
  ctx.field.data.activeFields.delete(schema.name);
621
749
  }
622
-
623
750
  schema && rm(schema, _remove);
624
751
  }
625
752
  };
@@ -628,25 +755,19 @@ export var useRecordCollectionDataSourceItems = function useRecordCollectionData
628
755
  var item = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
629
756
  var collectionName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
630
757
  var resourceName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
631
-
632
758
  var _useTranslation = useTranslation(),
633
- t = _useTranslation.t;
634
-
759
+ t = _useTranslation.t;
635
760
  var collection = useCollection();
636
-
637
761
  var _useSchemaTemplateMan = useSchemaTemplateManager(),
638
- getTemplatesByCollection = _useSchemaTemplateMan.getTemplatesByCollection;
639
-
762
+ getTemplatesByCollection = _useSchemaTemplateMan.getTemplatesByCollection;
640
763
  var templates = getTemplatesByCollection(collectionName || collection.name).filter(function (template) {
641
764
  return componentName && template.componentName === componentName;
642
765
  }).filter(function (template) {
643
766
  return ['FormItem', 'ReadPrettyFormItem'].includes(componentName) || template.resourceName === resourceName;
644
767
  });
645
-
646
768
  if (!templates.length) {
647
769
  return [];
648
770
  }
649
-
650
771
  var index = 0;
651
772
  return [{
652
773
  key: "".concat(collectionName || componentName, "_table_blank"),
@@ -692,31 +813,24 @@ export var useRecordCollectionDataSourceItems = function useRecordCollectionData
692
813
  };
693
814
  export var useCollectionDataSourceItems = function useCollectionDataSourceItems(componentName) {
694
815
  var _collections$filter;
695
-
696
816
  var _useTranslation2 = useTranslation(),
697
- t = _useTranslation2.t;
698
-
699
- var _useCollectionManager9 = useCollectionManager(),
700
- collections = _useCollectionManager9.collections;
701
-
817
+ t = _useTranslation2.t;
818
+ var _useCollectionManager12 = useCollectionManager(),
819
+ collections = _useCollectionManager12.collections;
702
820
  var _useSchemaTemplateMan2 = useSchemaTemplateManager(),
703
- getTemplatesByCollection = _useSchemaTemplateMan2.getTemplatesByCollection;
704
-
821
+ getTemplatesByCollection = _useSchemaTemplateMan2.getTemplatesByCollection;
705
822
  var _useState = useState([]),
706
- _useState2 = _slicedToArray(_useState, 2),
707
- selected = _useState2[0],
708
- setSelected = _useState2[1];
709
-
823
+ _useState2 = _slicedToArray(_useState, 2),
824
+ selected = _useState2[0],
825
+ setSelected = _useState2[1];
710
826
  var _useState3 = useState(null),
711
- _useState4 = _slicedToArray(_useState3, 2),
712
- value = _useState4[0],
713
- onChange = _useState4[1];
714
-
827
+ _useState4 = _slicedToArray(_useState3, 2),
828
+ value = _useState4[0],
829
+ onChange = _useState4[1];
715
830
  var clearKeywords = function clearKeywords() {
716
831
  setSelected([]);
717
832
  onChange(null);
718
833
  };
719
-
720
834
  return [{
721
835
  key: 'tableBlock',
722
836
  type: 'itemGroup',
@@ -727,13 +841,16 @@ export var useCollectionDataSourceItems = function useCollectionDataSourceItems(
727
841
  }),
728
842
  children: collections === null || collections === void 0 ? void 0 : (_collections$filter = collections.filter(function (item) {
729
843
  var b = !value || selected.includes(item.name);
730
-
731
844
  if (item.inherit) {
732
845
  return false;
733
846
  } else if (item.autoGenId === false && !item.fields.find(function (v) {
734
847
  return v.primaryKey;
735
848
  })) {
736
849
  return false;
850
+ } else if (['Kanban', 'FormItem'].includes(componentName) && item.template === 'view') {
851
+ return false;
852
+ } else if (item.template === 'file' && ['Kanban', 'FormItem', 'Calendar'].includes(componentName)) {
853
+ return false;
737
854
  } else {
738
855
  return b && !((item === null || item === void 0 ? void 0 : item.isThrough) && (item === null || item === void 0 ? void 0 : item.autoCreate));
739
856
  }
@@ -741,7 +858,6 @@ export var useCollectionDataSourceItems = function useCollectionDataSourceItems(
741
858
  var templates = getTemplatesByCollection(item.name).filter(function (template) {
742
859
  return componentName && template.componentName === componentName && (!template.resourceName || template.resourceName === item.name);
743
860
  });
744
-
745
861
  if (!templates.length) {
746
862
  return {
747
863
  type: 'item',
@@ -750,7 +866,6 @@ export var useCollectionDataSourceItems = function useCollectionDataSourceItems(
750
866
  clearKeywords: clearKeywords
751
867
  };
752
868
  }
753
-
754
869
  return {
755
870
  key: "".concat(componentName, "_table_subMenu_").concat(index),
756
871
  type: 'subMenu',
@@ -801,16 +916,16 @@ export var useCollectionDataSourceItems = function useCollectionDataSourceItems(
801
916
  }];
802
917
  };
803
918
  export var createDetailsBlockSchema = function createDetailsBlockSchema(options) {
919
+ var _properties3;
804
920
  var _options$formItemInit = options.formItemInitializers,
805
- formItemInitializers = _options$formItemInit === void 0 ? 'ReadPrettyFormItemInitializers' : _options$formItemInit,
806
- _options$actionInitia = options.actionInitializers,
807
- actionInitializers = _options$actionInitia === void 0 ? 'DetailsActionInitializers' : _options$actionInitia,
808
- collection = options.collection,
809
- association = options.association,
810
- resource = options.resource,
811
- template = options.template,
812
- others = _objectWithoutProperties(options, _excluded);
813
-
921
+ formItemInitializers = _options$formItemInit === void 0 ? 'ReadPrettyFormItemInitializers' : _options$formItemInit,
922
+ _options$actionInitia = options.actionInitializers,
923
+ actionInitializers = _options$actionInitia === void 0 ? 'DetailsActionInitializers' : _options$actionInitia,
924
+ collection = options.collection,
925
+ association = options.association,
926
+ resource = options.resource,
927
+ template = options.template,
928
+ others = _objectWithoutProperties(options, _excluded);
814
929
  var resourceName = resource || association || collection;
815
930
  var schema = {
816
931
  type: 'void',
@@ -830,37 +945,33 @@ export var createDetailsBlockSchema = function createDetailsBlockSchema(options)
830
945
  'x-component': 'CardItem',
831
946
  properties: _defineProperty({}, uid(), {
832
947
  type: 'void',
833
- 'x-component': 'FormV2',
948
+ 'x-component': 'Details',
834
949
  'x-read-pretty': true,
835
950
  'x-component-props': {
836
951
  useProps: '{{ useDetailsBlockProps }}'
837
952
  },
838
- properties: {
839
- actions: {
840
- type: 'void',
841
- 'x-initializer': actionInitializers,
842
- 'x-component': 'ActionBar',
843
- 'x-component-props': {
844
- style: {
845
- marginBottom: 24
846
- }
847
- },
848
- properties: {}
849
- },
850
- grid: template || {
851
- type: 'void',
852
- 'x-component': 'Grid',
853
- 'x-initializer': formItemInitializers,
854
- properties: {}
855
- },
856
- pagination: {
857
- type: 'void',
858
- 'x-component': 'Pagination',
859
- 'x-component-props': {
860
- useProps: '{{ useDetailsPaginationProps }}'
953
+ properties: (_properties3 = {}, _defineProperty(_properties3, uid(), {
954
+ type: 'void',
955
+ 'x-initializer': actionInitializers,
956
+ 'x-component': 'ActionBar',
957
+ 'x-component-props': {
958
+ style: {
959
+ marginBottom: 24
861
960
  }
961
+ },
962
+ properties: {}
963
+ }), _defineProperty(_properties3, "grid", template || {
964
+ type: 'void',
965
+ 'x-component': 'Grid',
966
+ 'x-initializer': formItemInitializers,
967
+ properties: {}
968
+ }), _defineProperty(_properties3, "pagination", {
969
+ type: 'void',
970
+ 'x-component': 'Pagination',
971
+ 'x-component-props': {
972
+ useProps: '{{ useDetailsPaginationProps }}'
862
973
  }
863
- }
974
+ }), _properties3)
864
975
  })
865
976
  };
866
977
  console.log(JSON.stringify(schema, null, 2));
@@ -868,16 +979,15 @@ export var createDetailsBlockSchema = function createDetailsBlockSchema(options)
868
979
  };
869
980
  export var createFormBlockSchema = function createFormBlockSchema(options) {
870
981
  var _options$formItemInit2 = options.formItemInitializers,
871
- formItemInitializers = _options$formItemInit2 === void 0 ? 'FormItemInitializers' : _options$formItemInit2,
872
- _options$actionInitia2 = options.actionInitializers,
873
- actionInitializers = _options$actionInitia2 === void 0 ? 'FormActionInitializers' : _options$actionInitia2,
874
- collection = options.collection,
875
- resource = options.resource,
876
- association = options.association,
877
- action = options.action,
878
- template = options.template,
879
- others = _objectWithoutProperties(options, _excluded2);
880
-
982
+ formItemInitializers = _options$formItemInit2 === void 0 ? 'FormItemInitializers' : _options$formItemInit2,
983
+ _options$actionInitia2 = options.actionInitializers,
984
+ actionInitializers = _options$actionInitia2 === void 0 ? 'FormActionInitializers' : _options$actionInitia2,
985
+ collection = options.collection,
986
+ resource = options.resource,
987
+ association = options.association,
988
+ action = options.action,
989
+ template = options.template,
990
+ others = _objectWithoutProperties(options, _excluded2);
881
991
  var resourceName = resource || association || collection;
882
992
  var schema = {
883
993
  type: 'void',
@@ -890,10 +1000,11 @@ export var createFormBlockSchema = function createFormBlockSchema(options) {
890
1000
  action: action,
891
1001
  resource: resourceName,
892
1002
  collection: collection,
893
- association: association // action: 'get',
1003
+ association: association
1004
+ // action: 'get',
894
1005
  // useParams: '{{ useParamsFromRecord }}',
895
-
896
1006
  }),
1007
+
897
1008
  'x-designer': 'FormV2.Designer',
898
1009
  'x-component': 'CardItem',
899
1010
  properties: _defineProperty({}, uid(), {
@@ -924,20 +1035,75 @@ export var createFormBlockSchema = function createFormBlockSchema(options) {
924
1035
  }
925
1036
  })
926
1037
  };
927
- console.log(JSON.stringify(schema, null, 2));
928
1038
  return schema;
929
1039
  };
930
- export var createReadPrettyFormBlockSchema = function createReadPrettyFormBlockSchema(options) {
1040
+ export var createFilterFormBlockSchema = function createFilterFormBlockSchema(options) {
931
1041
  var _options$formItemInit3 = options.formItemInitializers,
932
- formItemInitializers = _options$formItemInit3 === void 0 ? 'ReadPrettyFormItemInitializers' : _options$formItemInit3,
933
- _options$actionInitia3 = options.actionInitializers,
934
- actionInitializers = _options$actionInitia3 === void 0 ? 'ReadPrettyFormActionInitializers' : _options$actionInitia3,
935
- collection = options.collection,
936
- association = options.association,
937
- resource = options.resource,
938
- template = options.template,
939
- others = _objectWithoutProperties(options, _excluded3);
940
-
1042
+ formItemInitializers = _options$formItemInit3 === void 0 ? 'FilterFormItemInitializers' : _options$formItemInit3,
1043
+ _options$actionInitia3 = options.actionInitializers,
1044
+ actionInitializers = _options$actionInitia3 === void 0 ? 'FilterFormActionInitializers' : _options$actionInitia3,
1045
+ collection = options.collection,
1046
+ resource = options.resource,
1047
+ association = options.association,
1048
+ action = options.action,
1049
+ template = options.template,
1050
+ others = _objectWithoutProperties(options, _excluded3);
1051
+ var resourceName = resource || association || collection;
1052
+ var schema = {
1053
+ type: 'void',
1054
+ 'x-decorator': 'FilterFormBlockProvider',
1055
+ 'x-decorator-props': _objectSpread(_objectSpread({}, others), {}, {
1056
+ action: action,
1057
+ resource: resourceName,
1058
+ collection: collection,
1059
+ association: association
1060
+ }),
1061
+ 'x-designer': 'FormV2.FilterDesigner',
1062
+ 'x-component': 'CardItem',
1063
+ // 保存当前筛选区块所能过滤的数据区块
1064
+ 'x-filter-targets': [],
1065
+ // 用于存储用户设置的每个字段的运算符,目前仅筛选表单区块支持自定义
1066
+ 'x-filter-operators': {},
1067
+ properties: _defineProperty({}, uid(), {
1068
+ type: 'void',
1069
+ 'x-component': 'FormV2',
1070
+ 'x-component-props': {
1071
+ useProps: '{{ useFormBlockProps }}'
1072
+ },
1073
+ properties: {
1074
+ grid: template || {
1075
+ type: 'void',
1076
+ 'x-component': 'Grid',
1077
+ 'x-initializer': formItemInitializers,
1078
+ properties: {}
1079
+ },
1080
+ actions: {
1081
+ type: 'void',
1082
+ 'x-initializer': actionInitializers,
1083
+ 'x-component': 'ActionBar',
1084
+ 'x-component-props': {
1085
+ layout: 'one-column',
1086
+ style: {
1087
+ float: 'right'
1088
+ }
1089
+ },
1090
+ properties: {}
1091
+ }
1092
+ }
1093
+ })
1094
+ };
1095
+ return schema;
1096
+ };
1097
+ export var createReadPrettyFormBlockSchema = function createReadPrettyFormBlockSchema(options) {
1098
+ var _options$formItemInit4 = options.formItemInitializers,
1099
+ formItemInitializers = _options$formItemInit4 === void 0 ? 'ReadPrettyFormItemInitializers' : _options$formItemInit4,
1100
+ _options$actionInitia4 = options.actionInitializers,
1101
+ actionInitializers = _options$actionInitia4 === void 0 ? 'ReadPrettyFormActionInitializers' : _options$actionInitia4,
1102
+ collection = options.collection,
1103
+ association = options.association,
1104
+ resource = options.resource,
1105
+ template = options.template,
1106
+ others = _objectWithoutProperties(options, _excluded4);
941
1107
  var resourceName = resource || association || collection;
942
1108
  var schema = {
943
1109
  type: 'void',
@@ -980,21 +1146,24 @@ export var createReadPrettyFormBlockSchema = function createReadPrettyFormBlockS
980
1146
  }
981
1147
  }
982
1148
  })
983
- }; // console.log(JSON.stringify(schema, null, 2));
984
-
1149
+ };
1150
+ // console.log(JSON.stringify(schema, null, 2));
985
1151
  return schema;
986
1152
  };
987
1153
  export var createTableBlockSchema = function createTableBlockSchema(options) {
988
1154
  var collection = options.collection,
989
- resource = options.resource,
990
- rowKey = options.rowKey,
991
- tableActionInitializers = options.tableActionInitializers,
992
- tableColumnInitializers = options.tableColumnInitializers,
993
- tableActionColumnInitializers = options.tableActionColumnInitializers,
994
- tableBlockProvider = options.tableBlockProvider,
995
- disableTemplate = options.disableTemplate,
996
- others = _objectWithoutProperties(options, _excluded4);
997
-
1155
+ resource = options.resource,
1156
+ rowKey = options.rowKey,
1157
+ tableActionInitializers = options.tableActionInitializers,
1158
+ tableColumnInitializers = options.tableColumnInitializers,
1159
+ tableActionColumnInitializers = options.tableActionColumnInitializers,
1160
+ tableBlockProvider = options.tableBlockProvider,
1161
+ disableTemplate = options.disableTemplate,
1162
+ TableBlockDesigner = options.TableBlockDesigner,
1163
+ blockType = options.blockType,
1164
+ _options$pageSize = options.pageSize,
1165
+ pageSize = _options$pageSize === void 0 ? 20 : _options$pageSize,
1166
+ others = _objectWithoutProperties(options, _excluded5);
998
1167
  var schema = {
999
1168
  type: 'void',
1000
1169
  'x-decorator': tableBlockProvider !== null && tableBlockProvider !== void 0 ? tableBlockProvider : 'TableBlockProvider',
@@ -1004,15 +1173,17 @@ export var createTableBlockSchema = function createTableBlockSchema(options) {
1004
1173
  resource: resource || collection,
1005
1174
  action: 'list',
1006
1175
  params: {
1007
- pageSize: 20
1176
+ pageSize: pageSize
1008
1177
  },
1009
1178
  rowKey: rowKey,
1010
1179
  showIndex: true,
1011
1180
  dragSort: false,
1012
- disableTemplate: disableTemplate !== null && disableTemplate !== void 0 ? disableTemplate : false
1181
+ disableTemplate: disableTemplate !== null && disableTemplate !== void 0 ? disableTemplate : false,
1182
+ blockType: blockType
1013
1183
  }, others),
1014
- 'x-designer': 'TableBlockDesigner',
1184
+ 'x-designer': TableBlockDesigner !== null && TableBlockDesigner !== void 0 ? TableBlockDesigner : 'TableBlockDesigner',
1015
1185
  'x-component': 'CardItem',
1186
+ 'x-filter-targets': [],
1016
1187
  properties: _defineProperty({
1017
1188
  actions: {
1018
1189
  type: 'void',
@@ -1059,16 +1230,41 @@ export var createTableBlockSchema = function createTableBlockSchema(options) {
1059
1230
  }
1060
1231
  }
1061
1232
  })
1062
- }; // console.log(JSON.stringify(schema, null, 2));
1063
-
1233
+ };
1234
+ // console.log(JSON.stringify(schema, null, 2));
1235
+ return schema;
1236
+ };
1237
+ export var createCollapseBlockSchema = function createCollapseBlockSchema(options) {
1238
+ var collection = options.collection,
1239
+ blockType = options.blockType;
1240
+ var schema = {
1241
+ type: 'void',
1242
+ 'x-decorator': 'AssociationFilter.Provider',
1243
+ 'x-decorator-props': {
1244
+ collection: collection,
1245
+ blockType: blockType,
1246
+ associationFilterStyle: {
1247
+ width: '100%'
1248
+ }
1249
+ },
1250
+ 'x-designer': 'AssociationFilter.BlockDesigner',
1251
+ 'x-component': 'CardItem',
1252
+ 'x-filter-targets': [],
1253
+ properties: _defineProperty({}, uid(), {
1254
+ type: 'void',
1255
+ 'x-action': 'associateFilter',
1256
+ 'x-initializer': 'AssociationFilter.FilterBlockInitializer',
1257
+ 'x-component': 'AssociationFilter',
1258
+ properties: {}
1259
+ })
1260
+ };
1064
1261
  return schema;
1065
1262
  };
1066
1263
  export var createTableSelectorSchema = function createTableSelectorSchema(options) {
1067
1264
  var collection = options.collection,
1068
- resource = options.resource,
1069
- rowKey = options.rowKey,
1070
- others = _objectWithoutProperties(options, _excluded5);
1071
-
1265
+ resource = options.resource,
1266
+ rowKey = options.rowKey,
1267
+ others = _objectWithoutProperties(options, _excluded6);
1072
1268
  var schema = {
1073
1269
  type: 'void',
1074
1270
  'x-acl-action': "".concat(resource || collection, ":list"),
@@ -1115,10 +1311,9 @@ export var createTableSelectorSchema = function createTableSelectorSchema(option
1115
1311
  };
1116
1312
  export var createCalendarBlockSchema = function createCalendarBlockSchema(options) {
1117
1313
  var collection = options.collection,
1118
- resource = options.resource,
1119
- fieldNames = options.fieldNames,
1120
- others = _objectWithoutProperties(options, _excluded6);
1121
-
1314
+ resource = options.resource,
1315
+ fieldNames = options.fieldNames,
1316
+ others = _objectWithoutProperties(options, _excluded7);
1122
1317
  var schema = {
1123
1318
  type: 'void',
1124
1319
  'x-acl-action': "".concat(resource || collection, ":list"),
@@ -1171,6 +1366,9 @@ export var createCalendarBlockSchema = function createCalendarBlockSchema(option
1171
1366
  'x-component': 'Tabs',
1172
1367
  'x-component-props': {},
1173
1368
  'x-initializer': 'TabPaneInitializers',
1369
+ 'x-initializer-props': {
1370
+ gridInitializer: 'RecordBlockInitializers'
1371
+ },
1174
1372
  properties: {
1175
1373
  tab1: {
1176
1374
  type: 'void',
@@ -1202,12 +1400,138 @@ export var createCalendarBlockSchema = function createCalendarBlockSchema(option
1202
1400
  console.log(JSON.stringify(schema, null, 2));
1203
1401
  return schema;
1204
1402
  };
1403
+ export var createGanttBlockSchema = function createGanttBlockSchema(options) {
1404
+ var collection = options.collection,
1405
+ resource = options.resource,
1406
+ fieldNames = options.fieldNames,
1407
+ others = _objectWithoutProperties(options, _excluded8);
1408
+ var schema = {
1409
+ type: 'void',
1410
+ 'x-acl-action': "".concat(resource || collection, ":list"),
1411
+ 'x-decorator': 'GanttBlockProvider',
1412
+ 'x-decorator-props': _objectSpread({
1413
+ collection: collection,
1414
+ resource: resource || collection,
1415
+ action: 'list',
1416
+ fieldNames: _objectSpread({
1417
+ id: 'id'
1418
+ }, fieldNames),
1419
+ params: {
1420
+ paginate: false
1421
+ }
1422
+ }, others),
1423
+ 'x-designer': 'Gantt.Designer',
1424
+ 'x-component': 'CardItem',
1425
+ properties: _defineProperty({}, uid(), {
1426
+ type: 'void',
1427
+ 'x-component': 'Gantt',
1428
+ 'x-component-props': {
1429
+ useProps: '{{ useGanttBlockProps }}'
1430
+ },
1431
+ properties: {
1432
+ toolBar: {
1433
+ type: 'void',
1434
+ 'x-component': 'ActionBar',
1435
+ 'x-component-props': {
1436
+ style: {
1437
+ marginBottom: 24
1438
+ }
1439
+ },
1440
+ 'x-initializer': 'GanttActionInitializers',
1441
+ properties: {}
1442
+ },
1443
+ table: {
1444
+ type: 'array',
1445
+ 'x-decorator': 'div',
1446
+ 'x-decorator-props': {
1447
+ style: {
1448
+ float: 'left',
1449
+ maxWidth: '35%'
1450
+ }
1451
+ },
1452
+ 'x-initializer': 'TableColumnInitializers',
1453
+ 'x-component': 'TableV2',
1454
+ 'x-component-props': {
1455
+ rowKey: 'id',
1456
+ rowSelection: {
1457
+ type: 'checkbox'
1458
+ },
1459
+ useProps: '{{ useTableBlockProps }}',
1460
+ pagination: false
1461
+ },
1462
+ properties: {
1463
+ actions: {
1464
+ type: 'void',
1465
+ title: '{{ t("Actions") }}',
1466
+ 'x-action-column': 'actions',
1467
+ 'x-decorator': 'TableV2.Column.ActionBar',
1468
+ 'x-component': 'TableV2.Column',
1469
+ 'x-designer': 'TableV2.ActionColumnDesigner',
1470
+ 'x-initializer': 'TableActionColumnInitializers',
1471
+ properties: {
1472
+ actions: {
1473
+ type: 'void',
1474
+ 'x-decorator': 'DndContext',
1475
+ 'x-component': 'Space',
1476
+ 'x-component-props': {
1477
+ split: '|'
1478
+ },
1479
+ properties: {}
1480
+ }
1481
+ }
1482
+ }
1483
+ }
1484
+ },
1485
+ detail: {
1486
+ type: 'void',
1487
+ 'x-component': 'Gantt.Event',
1488
+ properties: {
1489
+ drawer: {
1490
+ type: 'void',
1491
+ 'x-component': 'Action.Drawer',
1492
+ 'x-component-props': {
1493
+ className: 'nb-action-popup'
1494
+ },
1495
+ title: '{{ t("View record") }}',
1496
+ properties: {
1497
+ tabs: {
1498
+ type: 'void',
1499
+ 'x-component': 'Tabs',
1500
+ 'x-component-props': {},
1501
+ 'x-initializer': 'TabPaneInitializers',
1502
+ properties: {
1503
+ tab1: {
1504
+ type: 'void',
1505
+ title: '{{t("Details")}}',
1506
+ 'x-component': 'Tabs.TabPane',
1507
+ 'x-designer': 'Tabs.Designer',
1508
+ 'x-component-props': {},
1509
+ properties: {
1510
+ grid: {
1511
+ type: 'void',
1512
+ 'x-component': 'Grid',
1513
+ 'x-initializer': 'RecordBlockInitializers',
1514
+ properties: {}
1515
+ }
1516
+ }
1517
+ }
1518
+ }
1519
+ }
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ }
1525
+ })
1526
+ };
1527
+ console.log(JSON.stringify(schema, null, 2));
1528
+ return schema;
1529
+ };
1205
1530
  export var createKanbanBlockSchema = function createKanbanBlockSchema(options) {
1206
1531
  var collection = options.collection,
1207
- resource = options.resource,
1208
- groupField = options.groupField,
1209
- others = _objectWithoutProperties(options, _excluded7);
1210
-
1532
+ resource = options.resource,
1533
+ groupField = options.groupField,
1534
+ others = _objectWithoutProperties(options, _excluded9);
1211
1535
  var schema = {
1212
1536
  type: 'void',
1213
1537
  'x-acl-action': "".concat(resource || collection, ":list"),
@@ -1245,8 +1569,12 @@ export var createKanbanBlockSchema = function createKanbanBlockSchema(options) {
1245
1569
  card: {
1246
1570
  type: 'void',
1247
1571
  'x-read-pretty': true,
1572
+ 'x-label-disabled': true,
1248
1573
  'x-decorator': 'BlockItem',
1249
1574
  'x-component': 'Kanban.Card',
1575
+ 'x-component-props': {
1576
+ openMode: 'drawer'
1577
+ },
1250
1578
  'x-designer': 'Kanban.Card.Designer',
1251
1579
  properties: {
1252
1580
  grid: {
@@ -1263,6 +1591,7 @@ export var createKanbanBlockSchema = function createKanbanBlockSchema(options) {
1263
1591
  title: '{{ t("View") }}',
1264
1592
  'x-designer': 'Action.Designer',
1265
1593
  'x-component': 'Kanban.CardViewer',
1594
+ 'x-action': 'view',
1266
1595
  'x-component-props': {
1267
1596
  openMode: 'drawer'
1268
1597
  },