@nocobase/client 0.9.4-alpha.2 → 0.10.0-alpha.3

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 (1378) hide show
  1. package/.dumi/global.less +1 -0
  2. package/.dumi/theme/builtins/LangSwitch/index.tsx +11 -0
  3. package/.dumi/theme/builtins/Previewer/index.tsx +23 -0
  4. package/.dumirc.ts +56 -0
  5. package/contributing.md +1 -1
  6. package/docs/develop.md +5 -0
  7. package/{intro.md → docs/intro.md} +21 -27
  8. package/es/acl/ACLProvider.d.ts +6 -7
  9. package/es/acl/ACLProvider.js +6 -22
  10. package/es/acl/ACLShortcut.d.ts +2 -3
  11. package/es/acl/ACLShortcut.js +2 -61
  12. package/es/acl/Configuration/ConfigureCenter.d.ts +3 -2
  13. package/es/acl/Configuration/ConfigureCenter.js +7 -22
  14. package/es/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
  15. package/es/acl/Configuration/MenuConfigure.d.ts +2 -1
  16. package/es/acl/Configuration/MenuItemsProvider.d.ts +2 -1
  17. package/es/acl/Configuration/MenuItemsProvider.js +3 -3
  18. package/es/acl/Configuration/PermisionProvider.d.ts +2 -2
  19. package/es/acl/Configuration/RoleConfigure.d.ts +2 -1
  20. package/es/acl/Configuration/RoleTable.d.ts +2 -1
  21. package/es/acl/Configuration/ScopeSelect.d.ts +2 -1
  22. package/es/acl/Configuration/schemas/scopes.d.ts +1 -0
  23. package/es/antd-config-provider/index.d.ts +1 -1
  24. package/es/api-client/APIClient.d.ts +1 -1
  25. package/es/api-client/APIClientProvider.d.ts +2 -1
  26. package/es/api-client/hooks/assign.d.ts +0 -1
  27. package/es/api-client/hooks/assign.js +1 -7
  28. package/es/api-client/hooks/useRequest.d.ts +1 -1
  29. package/es/api-client/hooks/useRequest.js +1 -1
  30. package/es/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  31. package/es/application/Application.d.ts +2 -1
  32. package/es/application/Application.js +5 -4
  33. package/es/application/compose.d.ts +2 -1
  34. package/es/application-v2/Application.d.ts +31 -0
  35. package/es/application-v2/Application.js +139 -0
  36. package/es/application-v2/Plugin.d.ts +14 -0
  37. package/es/application-v2/Plugin.js +92 -0
  38. package/es/application-v2/PluginManager.d.ts +19 -0
  39. package/es/application-v2/PluginManager.js +242 -0
  40. package/es/application-v2/Router.d.ts +13 -0
  41. package/es/application-v2/Router.js +103 -0
  42. package/es/application-v2/components/AppComponent.d.ts +2 -0
  43. package/es/application-v2/components/AppComponent.js +20 -0
  44. package/es/application-v2/components/MainComponent.d.ts +6 -0
  45. package/es/application-v2/components/MainComponent.js +13 -0
  46. package/es/application-v2/components/RouterProvider.d.ts +14 -0
  47. package/es/application-v2/components/RouterProvider.js +105 -0
  48. package/es/application-v2/components/index.d.ts +13 -0
  49. package/es/application-v2/components/index.js +13 -0
  50. package/es/application-v2/compose.d.ts +2 -0
  51. package/es/application-v2/compose.js +41 -0
  52. package/es/application-v2/context.d.ts +3 -0
  53. package/es/application-v2/context.js +2 -0
  54. package/es/application-v2/hooks/index.d.ts +3 -0
  55. package/es/application-v2/hooks/index.js +3 -0
  56. package/es/application-v2/hooks/useApp.d.ts +1 -0
  57. package/es/application-v2/hooks/useApp.js +5 -0
  58. package/es/application-v2/hooks/useLoad.d.ts +1 -0
  59. package/es/application-v2/hooks/useLoad.js +38 -0
  60. package/es/application-v2/hooks/useRouter.d.ts +1 -0
  61. package/es/application-v2/hooks/useRouter.js +5 -0
  62. package/es/application-v2/index.d.ts +3 -0
  63. package/es/application-v2/index.js +3 -0
  64. package/es/application-v2/types.d.ts +26 -0
  65. package/es/application-v2/types.js +1 -0
  66. package/es/async-data-provider/index.d.ts +1 -1
  67. package/es/auth/OptionsComponent.d.ts +7 -0
  68. package/es/auth/OptionsComponent.js +20 -0
  69. package/es/auth/SigninPage.d.ts +23 -0
  70. package/es/{settings-form/SettingsForm.js → auth/SigninPage.js} +116 -275
  71. package/es/auth/SigninPageExtension.d.ts +22 -0
  72. package/es/auth/SigninPageExtension.js +30 -0
  73. package/es/auth/SignupPage.d.ts +24 -0
  74. package/es/auth/SignupPage.js +82 -0
  75. package/es/auth/index.d.ts +4 -0
  76. package/es/auth/index.js +4 -0
  77. package/es/block-provider/BlockProvider.d.ts +4 -3
  78. package/es/block-provider/BlockProvider.js +23 -6
  79. package/es/block-provider/CalendarBlockProvider.d.ts +1 -1
  80. package/es/block-provider/DetailsBlockProvider.d.ts +1 -1
  81. package/es/block-provider/DetailsBlockProvider.js +1 -13
  82. package/es/block-provider/FilterFormBlockProvider.d.ts +2 -1
  83. package/es/block-provider/FormBlockProvider.d.ts +1 -1
  84. package/es/block-provider/FormBlockProvider.js +10 -21
  85. package/es/block-provider/FormFieldProvider.d.ts +1 -1
  86. package/es/block-provider/GanttBlockProvider.d.ts +1 -1
  87. package/es/block-provider/KanbanBlockProvider.d.ts +1 -1
  88. package/es/block-provider/TableBlockProvider.d.ts +1 -2
  89. package/es/block-provider/TableBlockProvider.js +57 -82
  90. package/es/block-provider/TableFieldProvider.d.ts +1 -1
  91. package/es/block-provider/TableSelectorProvider.d.ts +2 -2
  92. package/es/block-provider/hooks/index.d.ts +10 -1
  93. package/es/block-provider/hooks/index.js +53 -137
  94. package/es/block-provider/index.d.ts +1 -0
  95. package/es/block-provider/index.js +2 -1
  96. package/es/board/Card.d.ts +2 -2
  97. package/es/board/CardAdder.d.ts +2 -2
  98. package/es/board/CardForm.d.ts +2 -2
  99. package/es/board/Column.d.ts +3 -3
  100. package/es/board/ColumnAdder.d.ts +2 -2
  101. package/es/board/ColumnForm.d.ts +2 -2
  102. package/es/board/DefaultCard.d.ts +2 -2
  103. package/es/board/DefaultColumnHeader.d.ts +2 -2
  104. package/es/board/Kanban.d.ts +2 -2
  105. package/es/board/withDroppable.d.ts +2 -1
  106. package/es/china-region/index.d.ts +2 -1
  107. package/es/collection-manager/CollectionField.d.ts +1 -1
  108. package/es/collection-manager/CollectionField.js +2 -1
  109. package/es/collection-manager/CollectionManagerProvider.d.ts +2 -2
  110. package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -3
  111. package/es/collection-manager/CollectionManagerShortcut.js +3 -60
  112. package/es/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
  113. package/es/collection-manager/Configuration/AddCategoryAction.js +2 -2
  114. package/es/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
  115. package/es/collection-manager/Configuration/AddCollectionAction.js +33 -27
  116. package/es/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
  117. package/es/collection-manager/Configuration/AddFieldAction.js +46 -33
  118. package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
  119. package/es/collection-manager/Configuration/AddSubFieldAction.js +25 -20
  120. package/es/collection-manager/Configuration/CollectionFields.d.ts +2 -1
  121. package/es/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
  122. package/es/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
  123. package/es/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
  124. package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
  125. package/es/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
  126. package/es/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
  127. package/es/collection-manager/Configuration/ConfigurationTabs.js +61 -50
  128. package/es/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
  129. package/es/collection-manager/Configuration/EditCategoryAction.js +2 -2
  130. package/es/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
  131. package/es/collection-manager/Configuration/EditCollectionAction.js +2 -2
  132. package/es/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
  133. package/es/collection-manager/Configuration/EditFieldAction.js +2 -2
  134. package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
  135. package/es/collection-manager/Configuration/EditSubFieldAction.js +2 -2
  136. package/es/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
  137. package/es/collection-manager/Configuration/OverridingCollectionField.js +2 -2
  138. package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
  139. package/es/collection-manager/Configuration/SyncFieldsAction.js +2 -2
  140. package/es/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
  141. package/es/collection-manager/Configuration/ViewInheritedField.js +2 -2
  142. package/es/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
  143. package/es/collection-manager/Configuration/components/CollectionCategory.js +2 -0
  144. package/es/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
  145. package/es/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
  146. package/es/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
  147. package/es/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
  148. package/es/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
  149. package/es/collection-manager/Configuration/components/FieldSummary.js +4 -2
  150. package/es/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
  151. package/es/collection-manager/Configuration/components/TemplateSummay.js +4 -2
  152. package/es/collection-manager/Configuration/components/index.d.ts +6 -6
  153. package/es/collection-manager/Configuration/components/index.js +12 -0
  154. package/es/collection-manager/Configuration/interfaces.d.ts +1 -0
  155. package/es/collection-manager/Configuration/templates.d.ts +1 -0
  156. package/es/collection-manager/ResourceActionProvider.d.ts +1 -1
  157. package/es/collection-manager/action-hooks.d.ts +1 -0
  158. package/es/collection-manager/action-hooks.js +168 -90
  159. package/es/collection-manager/hooks/useOptions.js +39 -36
  160. package/es/collection-manager/index.d.ts +1 -1
  161. package/es/collection-manager/index.js +1 -1
  162. package/es/collection-manager/interfaces/components/index.d.ts +7 -6
  163. package/es/collection-manager/interfaces/index.d.ts +0 -1
  164. package/es/collection-manager/interfaces/index.js +0 -1
  165. package/es/collection-manager/interfaces/integer.js +1 -1
  166. package/es/collection-manager/interfaces/number.js +3 -3
  167. package/es/collection-manager/interfaces/percent.js +3 -3
  168. package/es/collection-manager/interfaces/properties/index.d.ts +0 -1
  169. package/es/collection-manager/interfaces/properties/index.js +0 -40
  170. package/es/collection-manager/interfaces/url.js +0 -5
  171. package/es/collection-manager/sub-table.d.ts +2 -2
  172. package/es/collection-manager/sub-table.js +4 -0
  173. package/es/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  174. package/es/collection-manager/templates/components/PreviewFields.js +2 -1
  175. package/es/collection-manager/templates/components/PreviewTable.d.ts +2 -1
  176. package/es/collection-manager/types.d.ts +2 -0
  177. package/es/filter-provider/FilterProvider.d.ts +5 -1
  178. package/es/filter-provider/FilterProvider.js +8 -3
  179. package/es/formula/Expression.d.ts +2 -1
  180. package/es/formula/Expression.js +66 -46
  181. package/es/formula/Result.d.ts +2 -1
  182. package/es/formula/index.d.ts +2 -2
  183. package/es/hooks/index.d.ts +2 -0
  184. package/es/hooks/index.js +2 -0
  185. package/es/hooks/useAdminSchemaUid.d.ts +1 -0
  186. package/es/hooks/useAdminSchemaUid.js +6 -0
  187. package/es/hooks/useMenuItem.d.ts +37 -0
  188. package/es/hooks/useMenuItem.js +90 -0
  189. package/es/hooks/useViewport.d.ts +1 -0
  190. package/es/hooks/useViewport.js +41 -0
  191. package/es/i18n/i18n.js +0 -1
  192. package/es/icon/Icon.d.ts +2 -1
  193. package/es/index.d.ts +3 -2
  194. package/es/index.js +3 -2
  195. package/es/locale/en_US.d.ts +19 -22
  196. package/es/locale/en_US.js +22 -25
  197. package/es/locale/es_ES.d.ts +4 -2
  198. package/es/locale/es_ES.js +5 -3
  199. package/es/locale/ja_JP.d.ts +19 -20
  200. package/es/locale/ja_JP.js +20 -21
  201. package/es/locale/pt_BR.d.ts +3 -1
  202. package/es/locale/pt_BR.js +4 -2
  203. package/es/locale/ru_RU.d.ts +3 -19
  204. package/es/locale/ru_RU.js +4 -20
  205. package/es/locale/tr_TR.d.ts +0 -17
  206. package/es/locale/tr_TR.js +0 -17
  207. package/es/locale/zh_CN.d.ts +28 -25
  208. package/es/locale/zh_CN.js +29 -26
  209. package/es/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
  210. package/es/plugin-manager/index.d.ts +1 -3
  211. package/es/plugin-manager/index.js +1 -3
  212. package/es/pm/Card.d.ts +8 -0
  213. package/es/pm/Card.js +364 -0
  214. package/es/pm/PluginManagerLink.d.ts +3 -2
  215. package/es/pm/PluginManagerLink.js +22 -18
  216. package/es/pm/index.d.ts +33 -3
  217. package/es/pm/index.js +117 -282
  218. package/es/powered-by/index.d.ts +2 -1
  219. package/es/route-switch/RouteSwitch.d.ts +2 -2
  220. package/es/route-switch/RouteSwitch.js +76 -45
  221. package/es/route-switch/RouteSwitchProvider.d.ts +3 -3
  222. package/es/route-switch/antd/admin-layout/index.d.ts +4 -2
  223. package/es/route-switch/antd/admin-layout/index.js +60 -56
  224. package/es/route-switch/antd/auth-layout/index.d.ts +2 -2
  225. package/es/route-switch/antd/auth-layout/index.js +2 -1
  226. package/es/route-switch/antd/route-schema-component/index.d.ts +2 -2
  227. package/es/route-switch/antd/route-schema-component/index.js +3 -3
  228. package/es/route-switch/context.d.ts +4 -0
  229. package/es/route-switch/context.js +5 -2
  230. package/es/route-switch/types.d.ts +2 -5
  231. package/es/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
  232. package/es/schema-component/antd/action/Action.Container.js +4 -0
  233. package/es/schema-component/antd/action/Action.Designer.d.ts +2 -1
  234. package/es/schema-component/antd/action/Action.Designer.js +204 -20
  235. package/es/schema-component/antd/action/Action.Drawer.js +14 -12
  236. package/es/schema-component/antd/action/Action.Link.js +3 -1
  237. package/es/schema-component/antd/action/Action.Modal.js +13 -12
  238. package/es/schema-component/antd/action/Action.Page.js +8 -2
  239. package/es/schema-component/antd/action/Action.js +26 -18
  240. package/es/schema-component/antd/action/ActionBar.d.ts +18 -2
  241. package/es/schema-component/antd/action/ActionBar.js +47 -21
  242. package/es/schema-component/antd/action/context.d.ts +8 -2
  243. package/es/schema-component/antd/action/context.js +15 -2
  244. package/es/schema-component/antd/action/hooks.d.ts +2 -0
  245. package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
  246. package/es/schema-component/antd/association-field/AssociationFieldProvider.js +57 -6
  247. package/es/schema-component/antd/association-field/AssociationSelect.js +89 -11
  248. package/es/schema-component/antd/association-field/Editable.d.ts +1 -1
  249. package/es/schema-component/antd/association-field/Editable.js +12 -11
  250. package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
  251. package/es/schema-component/antd/association-field/FileManager.js +14 -4
  252. package/es/schema-component/antd/association-field/InternalNester.d.ts +2 -1
  253. package/es/schema-component/antd/association-field/InternalNester.js +12 -1
  254. package/es/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
  255. package/es/schema-component/antd/association-field/InternalPicker.js +10 -4
  256. package/es/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
  257. package/es/schema-component/antd/association-field/InternalSubTable.js +35 -6
  258. package/es/schema-component/antd/association-field/InternalViewer.js +10 -3
  259. package/es/schema-component/antd/association-field/Nester.d.ts +2 -1
  260. package/es/schema-component/antd/association-field/Nester.js +58 -14
  261. package/es/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
  262. package/es/schema-component/antd/association-field/ReadPretty.js +4 -0
  263. package/es/schema-component/antd/association-field/SubTable.js +53 -12
  264. package/es/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
  265. package/es/schema-component/antd/association-field/components/CreateRecordAction.js +4 -2
  266. package/es/schema-component/antd/association-field/schema.d.ts +3 -15
  267. package/es/schema-component/antd/association-field/schema.js +4 -16
  268. package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
  269. package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
  270. package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
  271. package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
  272. package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
  273. package/es/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
  274. package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
  275. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
  276. package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
  277. package/es/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
  278. package/es/schema-component/antd/association-select/ReadPretty.js +2 -0
  279. package/es/schema-component/antd/block-item/BlockItem.js +6 -3
  280. package/es/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
  281. package/es/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
  282. package/es/schema-component/antd/calendar/Calendar.js +7 -5
  283. package/es/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
  284. package/es/schema-component/antd/calendar/DeleteEvent.js +3 -1
  285. package/es/schema-component/antd/calendar/Event.d.ts +1 -1
  286. package/es/schema-component/antd/calendar/Event.js +2 -0
  287. package/es/schema-component/antd/calendar/Nav.d.ts +1 -1
  288. package/es/schema-component/antd/calendar/Nav.js +5 -3
  289. package/es/schema-component/antd/calendar/Title.d.ts +1 -1
  290. package/es/schema-component/antd/calendar/Title.js +2 -0
  291. package/es/schema-component/antd/calendar/Today.d.ts +1 -1
  292. package/es/schema-component/antd/calendar/Today.js +4 -2
  293. package/es/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
  294. package/es/schema-component/antd/calendar/ViewSelect.js +3 -0
  295. package/es/schema-component/antd/calendar/components/Header.d.ts +2 -1
  296. package/es/schema-component/antd/card-item/CardItem.js +1 -1
  297. package/es/schema-component/antd/cascader/Cascader.js +8 -1
  298. package/es/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
  299. package/es/schema-component/antd/checkbox/Checkbox.js +14 -12
  300. package/es/schema-component/antd/collection-select/CollectionSelect.js +2 -0
  301. package/es/schema-component/antd/cron/Cron.d.ts +2 -1
  302. package/es/schema-component/antd/cron/Cron.js +3 -2
  303. package/es/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
  304. package/es/schema-component/antd/date-picker/DatePicker.js +2 -1
  305. package/es/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
  306. package/es/schema-component/antd/date-picker/ReadPretty.js +1 -1
  307. package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
  308. package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
  309. package/es/schema-component/antd/expand-action/Expand.Action.Design.js +2 -2
  310. package/es/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
  311. package/es/schema-component/antd/expand-action/Expand.Action.js +3 -6
  312. package/es/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
  313. package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
  314. package/es/schema-component/antd/filter/Filter.js +3 -1
  315. package/es/schema-component/antd/filter/FilterAction.d.ts +1 -1
  316. package/es/schema-component/antd/filter/FilterAction.js +3 -1
  317. package/es/schema-component/antd/filter/FilterItem.d.ts +1 -1
  318. package/es/schema-component/antd/filter/FilterItem.js +46 -41
  319. package/es/schema-component/antd/filter/FilterItems.d.ts +1 -1
  320. package/es/schema-component/antd/filter/FilterItems.js +2 -0
  321. package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
  322. package/es/schema-component/antd/filter/index.d.ts +1 -0
  323. package/es/schema-component/antd/filter/index.js +1 -0
  324. package/es/schema-component/antd/filter/useValues.js +3 -3
  325. package/es/schema-component/antd/form/Form.Designer.d.ts +2 -1
  326. package/es/schema-component/antd/form/Form.d.ts +1 -1
  327. package/es/schema-component/antd/form/Form.js +2 -0
  328. package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
  329. package/es/schema-component/antd/form-item/FormItem.js +93 -38
  330. package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
  331. package/es/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
  332. package/es/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
  333. package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
  334. package/es/schema-component/antd/form-v2/Form.js +9 -2
  335. package/es/schema-component/antd/form-v2/FormField.js +2 -0
  336. package/es/schema-component/antd/form-v2/Templates.d.ts +7 -1
  337. package/es/schema-component/antd/form-v2/Templates.js +20 -4
  338. package/es/schema-component/antd/form-v2/index.js +2 -0
  339. package/es/schema-component/antd/g2plot/G2Plot.js +2 -0
  340. package/es/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
  341. package/es/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
  342. package/es/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
  343. package/es/schema-component/antd/gantt/components/gantt/Event.js +2 -0
  344. package/es/schema-component/antd/gantt/components/gantt/gantt.js +2 -2
  345. package/es/schema-component/antd/grid/Block.d.ts +1 -1
  346. package/es/schema-component/antd/grid/Block.js +2 -0
  347. package/es/schema-component/antd/grid/Grid.js +25 -9
  348. package/es/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
  349. package/es/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
  350. package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
  351. package/es/schema-component/antd/grid-card/GridCard.Designer.js +4 -5
  352. package/es/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
  353. package/es/schema-component/antd/grid-card/GridCard.d.ts +2 -1
  354. package/es/schema-component/antd/grid-card/GridCard.js +12 -8
  355. package/es/schema-component/antd/index.d.ts +1 -0
  356. package/es/schema-component/antd/index.js +1 -0
  357. package/es/schema-component/antd/index.less +18 -4
  358. package/es/schema-component/antd/input/Input.d.ts +2 -1
  359. package/es/schema-component/antd/input/Input.js +3 -2
  360. package/es/schema-component/antd/input/Json.d.ts +2 -2
  361. package/es/schema-component/antd/input/Json.js +43 -4
  362. package/es/schema-component/antd/input/ReadPretty.d.ts +1 -1
  363. package/es/schema-component/antd/input/ReadPretty.js +4 -4
  364. package/es/schema-component/antd/input-number/InputNumber.d.ts +5 -1
  365. package/es/schema-component/antd/input-number/InputNumber.js +2 -2
  366. package/es/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
  367. package/es/schema-component/antd/input-number/ReadPretty.js +6 -2
  368. package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
  369. package/es/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
  370. package/es/schema-component/antd/kanban/Kanban.Card.js +5 -3
  371. package/es/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
  372. package/es/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
  373. package/es/schema-component/antd/kanban/Kanban.js +3 -1
  374. package/es/schema-component/antd/list/List.Decorator.d.ts +1 -1
  375. package/es/schema-component/antd/list/List.Decorator.js +7 -12
  376. package/es/schema-component/antd/list/List.Designer.d.ts +2 -1
  377. package/es/schema-component/antd/list/List.Item.d.ts +2 -1
  378. package/es/schema-component/antd/list/List.Item.js +1 -1
  379. package/es/schema-component/antd/list/List.d.ts +2 -1
  380. package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
  381. package/es/schema-component/antd/markdown/Markdown.Void.js +2 -0
  382. package/es/schema-component/antd/markdown/Markdown.d.ts +2 -0
  383. package/es/schema-component/antd/markdown/Markdown.js +6 -2
  384. package/es/schema-component/antd/markdown/util.js +1 -1
  385. package/es/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  386. package/es/schema-component/antd/menu/Menu.js +336 -177
  387. package/es/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
  388. package/es/schema-component/antd/page/FixedBlock.d.ts +2 -1
  389. package/es/schema-component/antd/page/FixedBlock.js +6 -2
  390. package/es/schema-component/antd/page/Page.d.ts +2 -1
  391. package/es/schema-component/antd/page/Page.js +53 -39
  392. package/es/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
  393. package/es/schema-component/antd/pagination/index.d.ts +1 -1
  394. package/es/schema-component/antd/pagination/index.js +2 -0
  395. package/es/schema-component/antd/password/Password.d.ts +1 -1
  396. package/es/schema-component/antd/password/PasswordStrength.js +1 -144
  397. package/es/schema-component/antd/password/utils.d.ts +1 -0
  398. package/es/schema-component/antd/password/utils.js +144 -0
  399. package/es/schema-component/antd/percent/Percent.js +1 -1
  400. package/es/schema-component/antd/preview/Preview.d.ts +1 -1
  401. package/es/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
  402. package/es/schema-component/antd/quick-edit/QuickEdit.js +88 -0
  403. package/es/schema-component/antd/quick-edit/index.d.ts +1 -0
  404. package/es/schema-component/antd/quick-edit/index.js +1 -0
  405. package/es/schema-component/antd/radio/Radio.d.ts +1 -1
  406. package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  407. package/es/schema-component/antd/record-picker/InputRecordPicker.js +5 -7
  408. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +10 -4
  409. package/es/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
  410. package/es/schema-component/antd/remote-select/ReadPretty.js +2 -0
  411. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  412. package/es/schema-component/antd/remote-select/RemoteSelect.js +111 -33
  413. package/es/schema-component/antd/remote-select/utils.d.ts +4 -0
  414. package/es/schema-component/antd/remote-select/utils.js +31 -0
  415. package/es/schema-component/antd/select/ReadPretty.d.ts +1 -1
  416. package/es/schema-component/antd/select/ReadPretty.js +6 -6
  417. package/es/schema-component/antd/select/Select.d.ts +3 -0
  418. package/es/schema-component/antd/select/Select.js +22 -11
  419. package/es/schema-component/antd/select/index.d.ts +1 -1
  420. package/es/schema-component/antd/select/index.js +1 -1
  421. package/es/schema-component/antd/select/utils.d.ts +14 -0
  422. package/es/schema-component/antd/select/{shared.js → utils.js} +20 -18
  423. package/es/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
  424. package/es/schema-component/antd/table/Table.Array.d.ts +5 -5
  425. package/es/schema-component/antd/table/Table.Array.js +7 -5
  426. package/es/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
  427. package/es/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
  428. package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
  429. package/es/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
  430. package/es/schema-component/antd/table/Table.Column.d.ts +2 -1
  431. package/es/schema-component/antd/table/Table.Designer.d.ts +2 -1
  432. package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
  433. package/es/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
  434. package/es/schema-component/antd/table/Table.RowSelection.js +2 -0
  435. package/es/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
  436. package/es/schema-component/antd/table/Table.Void.d.ts +1 -1
  437. package/es/schema-component/antd/table/Table.Void.js +2 -0
  438. package/es/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
  439. package/es/schema-component/antd/table-v2/FilterDynamicComponent.js +17 -2
  440. package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
  441. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  442. package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
  443. package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
  444. package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
  445. package/es/schema-component/antd/table-v2/Table.Column.Designer.js +148 -11
  446. package/es/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
  447. package/es/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
  448. package/es/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
  449. package/es/schema-component/antd/table-v2/Table.js +63 -30
  450. package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
  451. package/es/schema-component/antd/table-v2/TableBlockDesigner.js +53 -47
  452. package/es/schema-component/antd/table-v2/TableField.js +4 -0
  453. package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
  454. package/es/schema-component/antd/table-v2/index.d.ts +1 -0
  455. package/es/schema-component/antd/table-v2/index.js +1 -0
  456. package/es/schema-component/antd/table-v2/utils.js +1 -1
  457. package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
  458. package/es/schema-component/antd/tabs/Tabs.js +49 -18
  459. package/es/schema-component/antd/tabs/context.d.ts +8 -0
  460. package/es/schema-component/antd/tabs/context.js +15 -0
  461. package/es/schema-component/antd/tabs/index.d.ts +1 -0
  462. package/es/schema-component/antd/tabs/index.js +2 -1
  463. package/es/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
  464. package/es/schema-component/antd/time-picker/ReadPretty.js +1 -1
  465. package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  466. package/es/schema-component/antd/time-picker/TimePicker.js +1 -1
  467. package/es/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
  468. package/es/schema-component/antd/tree-select/ReadPretty.js +3 -1
  469. package/es/schema-component/antd/upload/ReadPretty.js +7 -3
  470. package/es/schema-component/antd/upload/Upload.js +1 -1
  471. package/es/schema-component/antd/upload/shared.d.ts +3 -3
  472. package/es/schema-component/antd/upload/style.less +1 -2
  473. package/es/schema-component/antd/upload/type.d.ts +2 -2
  474. package/es/schema-component/antd/variable/Input.d.ts +2 -2
  475. package/es/schema-component/antd/variable/Input.js +182 -31
  476. package/es/schema-component/antd/variable/JSONInput.d.ts +2 -2
  477. package/es/schema-component/antd/variable/JSONInput.js +2 -23
  478. package/es/schema-component/antd/variable/TextArea.d.ts +2 -2
  479. package/es/schema-component/antd/variable/VariableSelect.d.ts +2 -2
  480. package/es/schema-component/antd/variable/VariableSelect.js +1 -1
  481. package/es/schema-component/common/dnd-context/index.d.ts +1 -1
  482. package/es/schema-component/common/dnd-context/index.js +11 -4
  483. package/es/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
  484. package/es/schema-component/common/sortable-item/SortableItem.js +16 -5
  485. package/es/schema-component/common/utils/logic.js +64 -2
  486. package/es/schema-component/common/utils/uitls.d.ts +1 -0
  487. package/es/schema-component/common/utils/uitls.js +49 -15
  488. package/es/schema-component/core/DesignableSwitch.d.ts +2 -1
  489. package/es/schema-component/core/SchemaComponent.d.ts +2 -1
  490. package/es/schema-component/core/SchemaComponentOptions.js +13 -8
  491. package/es/schema-component/core/SchemaComponentProvider.js +17 -6
  492. package/es/schema-component/hooks/useCompile.js +33 -5
  493. package/es/schema-component/hooks/useDesignable.d.ts +5 -4
  494. package/es/schema-component/hooks/useDesignable.js +30 -28
  495. package/es/schema-component/hooks/useFieldModeOptions.js +45 -21
  496. package/es/schema-component/hooks/useProps.d.ts +1 -10
  497. package/es/schema-component/hooks/useProps.js +20 -6
  498. package/es/schema-initializer/SchemaInitializer.d.ts +18 -4
  499. package/es/schema-initializer/SchemaInitializer.js +278 -99
  500. package/es/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
  501. package/es/schema-initializer/SelectCollection.d.ts +3 -3
  502. package/es/schema-initializer/SelectCollection.js +19 -16
  503. package/es/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
  504. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
  505. package/es/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
  506. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
  507. package/es/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
  508. package/es/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
  509. package/es/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
  510. package/es/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
  511. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
  512. package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
  513. package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
  514. package/es/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
  515. package/es/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
  516. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
  517. package/es/schema-initializer/buttons/TabPaneInitializers.js +3 -3
  518. package/es/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
  519. package/es/schema-initializer/buttons/TableActionColumnInitializers.js +13 -4
  520. package/es/schema-initializer/buttons/TableActionInitializers.js +5 -5
  521. package/es/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
  522. package/es/schema-initializer/buttons/TableColumnInitializers.js +17 -9
  523. package/es/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
  524. package/es/schema-initializer/components/BulkEditField.d.ts +2 -1
  525. package/es/schema-initializer/components/CreateRecordAction.d.ts +2 -2
  526. package/es/schema-initializer/components/CreateRecordAction.js +43 -29
  527. package/es/schema-initializer/components/DeletedField.d.ts +2 -1
  528. package/es/schema-initializer/components/DuplicateAction.d.ts +3 -0
  529. package/es/schema-initializer/components/DuplicateAction.js +165 -0
  530. package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  531. package/es/schema-initializer/components/assigned-field/AssignedField.js +3 -2
  532. package/es/schema-initializer/components/index.d.ts +1 -0
  533. package/es/schema-initializer/components/index.js +2 -1
  534. package/es/schema-initializer/index.d.ts +1 -1
  535. package/es/schema-initializer/index.js +1 -1
  536. package/es/schema-initializer/items/ActionInitializer.d.ts +2 -1
  537. package/es/schema-initializer/items/BlockInitializer.d.ts +2 -1
  538. package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
  539. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
  540. package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
  541. package/es/schema-initializer/items/CalendarBlockInitializer.js +2 -2
  542. package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
  543. package/es/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
  544. package/es/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
  545. package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
  546. package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
  547. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
  548. package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
  549. package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
  550. package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
  551. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
  552. package/es/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
  553. package/es/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
  554. package/es/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
  555. package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
  556. package/es/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
  557. package/es/schema-initializer/items/DuplicateActionInitializer.js +61 -0
  558. package/es/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
  559. package/es/schema-initializer/items/ExpandActionInitializer.js +3 -3
  560. package/es/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
  561. package/es/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
  562. package/es/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
  563. package/es/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
  564. package/es/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
  565. package/es/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
  566. package/es/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
  567. package/es/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
  568. package/es/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
  569. package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
  570. package/es/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
  571. package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
  572. package/es/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
  573. package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
  574. package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
  575. package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
  576. package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
  577. package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
  578. package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
  579. package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
  580. package/es/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
  581. package/es/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
  582. package/es/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
  583. package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
  584. package/es/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
  585. package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
  586. package/es/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
  587. package/es/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
  588. package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
  589. package/es/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
  590. package/es/schema-initializer/items/index.d.ts +1 -0
  591. package/es/schema-initializer/items/index.js +1 -0
  592. package/es/schema-initializer/utils.d.ts +13 -1
  593. package/es/schema-initializer/utils.js +110 -68
  594. package/es/schema-items/GeneralSchemaItems.js +5 -3
  595. package/es/schema-items/OpenModeSchemaItems.js +14 -10
  596. package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
  597. package/es/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
  598. package/es/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
  599. package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +2 -0
  600. package/es/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
  601. package/es/schema-settings/DataTemplates/components/Designer.js +2 -0
  602. package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
  603. package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -57
  604. package/es/schema-settings/EnableChildCollections/index.d.ts +1 -1
  605. package/es/schema-settings/EnableChildCollections/index.js +2 -0
  606. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  607. package/es/schema-settings/GeneralSchemaDesigner.js +3 -2
  608. package/es/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
  609. package/es/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
  610. package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
  611. package/es/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
  612. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
  613. package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
  614. package/es/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
  615. package/es/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
  616. package/es/schema-settings/LinkageRules/index.d.ts +1 -1
  617. package/es/schema-settings/LinkageRules/index.js +3 -1
  618. package/es/schema-settings/SchemaSettings.d.ts +2 -1
  619. package/es/schema-settings/SchemaSettings.js +150 -62
  620. package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  621. package/es/schema-settings/VariableInput/VariableInput.js +1 -1
  622. package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
  623. package/es/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
  624. package/es/schema-settings/VariableInput/hooks/useFormVariable.d.ts +19 -0
  625. package/es/schema-settings/VariableInput/hooks/useFormVariable.js +89 -0
  626. package/es/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +8 -0
  627. package/es/schema-settings/VariableInput/hooks/useIterationVariable.js +77 -0
  628. package/es/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
  629. package/es/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
  630. package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +5 -1
  631. package/es/schema-settings/VariableInput/hooks/useVariableOptions.js +23 -3
  632. package/es/schema-settings/VariableInput/type.d.ts +28 -0
  633. package/es/schema-settings/VariableInput/type.js +1 -0
  634. package/es/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
  635. package/es/schema-templates/BlockTemplate.d.ts +1 -1
  636. package/es/schema-templates/BlockTemplate.js +4 -1
  637. package/es/schema-templates/BlockTemplateDetails.d.ts +2 -1
  638. package/es/schema-templates/BlockTemplateDetails.js +11 -7
  639. package/es/schema-templates/BlockTemplatePage.d.ts +3 -2
  640. package/es/schema-templates/BlockTemplatePage.js +4 -1
  641. package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
  642. package/es/schema-templates/SchemaTemplateManagerProvider.js +7 -0
  643. package/es/schema-templates/index.d.ts +0 -1
  644. package/es/schema-templates/index.js +1 -2
  645. package/es/system-settings/SystemSettingsProvider.d.ts +5 -3
  646. package/es/system-settings/SystemSettingsShortcut.d.ts +2 -3
  647. package/es/system-settings/SystemSettingsShortcut.js +33 -81
  648. package/es/test/collections.d.ts +1487 -0
  649. package/es/test/collections.js +1437 -0
  650. package/es/test/index.d.ts +3 -0
  651. package/es/test/index.js +3 -0
  652. package/es/test/mainCollections.d.ts +11359 -0
  653. package/es/test/mainCollections.js +3 -0
  654. package/es/test/mockAPIClient.d.ts +6 -0
  655. package/es/test/mockAPIClient.js +10 -0
  656. package/es/user/ChangePassword.d.ts +1 -1
  657. package/es/user/ChangePassword.js +30 -26
  658. package/es/user/CurrentUser.d.ts +7 -1
  659. package/es/user/CurrentUser.js +126 -88
  660. package/es/user/CurrentUserProvider.d.ts +1 -1
  661. package/es/user/CurrentUserProvider.js +4 -3
  662. package/es/user/EditProfile.d.ts +1 -1
  663. package/es/user/EditProfile.js +31 -25
  664. package/es/user/LanguageSettings.d.ts +1 -1
  665. package/es/user/LanguageSettings.js +67 -64
  666. package/es/user/SigninPage.d.ts +2 -1
  667. package/es/user/SigninPage.js +40 -29
  668. package/es/user/SigninPageExtension.d.ts +1 -1
  669. package/es/user/SignupPage.d.ts +2 -1
  670. package/es/user/SignupPage.js +5 -4
  671. package/es/user/SwitchRole.d.ts +1 -1
  672. package/es/user/SwitchRole.js +54 -51
  673. package/es/user/ThemeSettings.d.ts +1 -1
  674. package/es/user/ThemeSettings.js +56 -52
  675. package/es/user/VerificationCode.d.ts +2 -2
  676. package/es/user/index.d.ts +0 -3
  677. package/es/user/index.js +3 -3
  678. package/lib/acl/ACLProvider.d.ts +6 -7
  679. package/lib/acl/ACLProvider.js +6 -23
  680. package/lib/acl/ACLShortcut.d.ts +2 -3
  681. package/lib/acl/ACLShortcut.js +4 -64
  682. package/lib/acl/Configuration/ConfigureCenter.d.ts +3 -2
  683. package/lib/acl/Configuration/ConfigureCenter.js +8 -25
  684. package/lib/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
  685. package/lib/acl/Configuration/MenuConfigure.d.ts +2 -1
  686. package/lib/acl/Configuration/MenuItemsProvider.d.ts +2 -1
  687. package/lib/acl/Configuration/MenuItemsProvider.js +3 -3
  688. package/lib/acl/Configuration/PermisionProvider.d.ts +2 -2
  689. package/lib/acl/Configuration/RoleConfigure.d.ts +2 -1
  690. package/lib/acl/Configuration/RoleTable.d.ts +2 -1
  691. package/lib/acl/Configuration/ScopeSelect.d.ts +2 -1
  692. package/lib/acl/Configuration/schemas/scopes.d.ts +1 -0
  693. package/lib/antd-config-provider/index.d.ts +1 -1
  694. package/lib/api-client/APIClient.d.ts +1 -1
  695. package/lib/api-client/APIClientProvider.d.ts +2 -1
  696. package/lib/api-client/hooks/assign.d.ts +0 -1
  697. package/lib/api-client/hooks/assign.js +3 -10
  698. package/lib/api-client/hooks/useRequest.d.ts +1 -1
  699. package/lib/api-client/hooks/useRequest.js +1 -1
  700. package/lib/appInfo/CurrentAppInfoProvider.d.ts +1 -1
  701. package/lib/application/Application.d.ts +2 -1
  702. package/lib/application/Application.js +7 -6
  703. package/lib/application/compose.d.ts +2 -1
  704. package/lib/application-v2/Application.d.ts +31 -0
  705. package/lib/application-v2/Application.js +147 -0
  706. package/lib/application-v2/Plugin.d.ts +14 -0
  707. package/lib/application-v2/Plugin.js +99 -0
  708. package/lib/application-v2/PluginManager.d.ts +19 -0
  709. package/lib/application-v2/PluginManager.js +249 -0
  710. package/lib/application-v2/Router.d.ts +13 -0
  711. package/lib/application-v2/Router.js +111 -0
  712. package/lib/application-v2/components/AppComponent.d.ts +2 -0
  713. package/lib/application-v2/components/AppComponent.js +28 -0
  714. package/lib/application-v2/components/MainComponent.d.ts +6 -0
  715. package/lib/application-v2/components/MainComponent.js +23 -0
  716. package/lib/application-v2/components/RouterProvider.d.ts +14 -0
  717. package/lib/application-v2/components/RouterProvider.js +115 -0
  718. package/lib/application-v2/components/index.d.ts +13 -0
  719. package/lib/application-v2/components/index.js +56 -0
  720. package/lib/application-v2/compose.d.ts +2 -0
  721. package/lib/application-v2/compose.js +49 -0
  722. package/lib/application-v2/context.d.ts +3 -0
  723. package/lib/application-v2/context.js +9 -0
  724. package/lib/application-v2/hooks/index.d.ts +3 -0
  725. package/lib/application-v2/hooks/index.js +38 -0
  726. package/lib/application-v2/hooks/useApp.d.ts +1 -0
  727. package/lib/application-v2/hooks/useApp.js +12 -0
  728. package/lib/application-v2/hooks/useLoad.d.ts +1 -0
  729. package/lib/application-v2/hooks/useLoad.js +45 -0
  730. package/lib/application-v2/hooks/useRouter.d.ts +1 -0
  731. package/lib/application-v2/hooks/useRouter.js +12 -0
  732. package/lib/application-v2/index.d.ts +3 -0
  733. package/lib/application-v2/index.js +38 -0
  734. package/lib/application-v2/types.d.ts +26 -0
  735. package/lib/application-v2/types.js +5 -0
  736. package/lib/async-data-provider/index.d.ts +1 -1
  737. package/lib/auth/OptionsComponent.d.ts +7 -0
  738. package/lib/auth/OptionsComponent.js +32 -0
  739. package/lib/auth/SigninPage.d.ts +23 -0
  740. package/lib/{settings-form/SettingsForm.js → auth/SigninPage.js} +121 -277
  741. package/lib/auth/SigninPageExtension.d.ts +22 -0
  742. package/lib/auth/SigninPageExtension.js +42 -0
  743. package/lib/auth/SignupPage.d.ts +24 -0
  744. package/lib/auth/SignupPage.js +94 -0
  745. package/lib/auth/index.d.ts +4 -0
  746. package/lib/auth/index.js +49 -0
  747. package/lib/block-provider/BlockProvider.d.ts +4 -3
  748. package/lib/block-provider/BlockProvider.js +23 -5
  749. package/lib/block-provider/CalendarBlockProvider.d.ts +1 -1
  750. package/lib/block-provider/DetailsBlockProvider.d.ts +1 -1
  751. package/lib/block-provider/DetailsBlockProvider.js +1 -13
  752. package/lib/block-provider/FilterFormBlockProvider.d.ts +2 -1
  753. package/lib/block-provider/FormBlockProvider.d.ts +1 -1
  754. package/lib/block-provider/FormBlockProvider.js +10 -21
  755. package/lib/block-provider/FormFieldProvider.d.ts +1 -1
  756. package/lib/block-provider/GanttBlockProvider.d.ts +1 -1
  757. package/lib/block-provider/KanbanBlockProvider.d.ts +1 -1
  758. package/lib/block-provider/TableBlockProvider.d.ts +1 -2
  759. package/lib/block-provider/TableBlockProvider.js +57 -84
  760. package/lib/block-provider/TableFieldProvider.d.ts +1 -1
  761. package/lib/block-provider/TableSelectorProvider.d.ts +2 -2
  762. package/lib/block-provider/hooks/index.d.ts +10 -1
  763. package/lib/block-provider/hooks/index.js +50 -134
  764. package/lib/block-provider/index.d.ts +1 -0
  765. package/lib/block-provider/index.js +11 -0
  766. package/lib/board/Card.d.ts +2 -2
  767. package/lib/board/CardAdder.d.ts +2 -2
  768. package/lib/board/CardForm.d.ts +2 -2
  769. package/lib/board/Column.d.ts +3 -3
  770. package/lib/board/ColumnAdder.d.ts +2 -2
  771. package/lib/board/ColumnForm.d.ts +2 -2
  772. package/lib/board/DefaultCard.d.ts +2 -2
  773. package/lib/board/DefaultColumnHeader.d.ts +2 -2
  774. package/lib/board/Kanban.d.ts +2 -2
  775. package/lib/board/withDroppable.d.ts +2 -1
  776. package/lib/china-region/index.d.ts +2 -1
  777. package/lib/collection-manager/CollectionField.d.ts +1 -1
  778. package/lib/collection-manager/CollectionField.js +2 -1
  779. package/lib/collection-manager/CollectionManagerProvider.d.ts +2 -2
  780. package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -3
  781. package/lib/collection-manager/CollectionManagerShortcut.js +4 -63
  782. package/lib/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
  783. package/lib/collection-manager/Configuration/AddCategoryAction.js +1 -1
  784. package/lib/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
  785. package/lib/collection-manager/Configuration/AddCollectionAction.js +30 -24
  786. package/lib/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
  787. package/lib/collection-manager/Configuration/AddFieldAction.js +43 -30
  788. package/lib/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
  789. package/lib/collection-manager/Configuration/AddSubFieldAction.js +22 -17
  790. package/lib/collection-manager/Configuration/CollectionFields.d.ts +2 -1
  791. package/lib/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
  792. package/lib/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
  793. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
  794. package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
  795. package/lib/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
  796. package/lib/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
  797. package/lib/collection-manager/Configuration/ConfigurationTabs.js +61 -49
  798. package/lib/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
  799. package/lib/collection-manager/Configuration/EditCategoryAction.js +1 -1
  800. package/lib/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
  801. package/lib/collection-manager/Configuration/EditCollectionAction.js +1 -1
  802. package/lib/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
  803. package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
  804. package/lib/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
  805. package/lib/collection-manager/Configuration/EditSubFieldAction.js +1 -1
  806. package/lib/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
  807. package/lib/collection-manager/Configuration/OverridingCollectionField.js +1 -1
  808. package/lib/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
  809. package/lib/collection-manager/Configuration/SyncFieldsAction.js +1 -1
  810. package/lib/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
  811. package/lib/collection-manager/Configuration/ViewInheritedField.js +1 -1
  812. package/lib/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
  813. package/lib/collection-manager/Configuration/components/CollectionCategory.js +2 -0
  814. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
  815. package/lib/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
  816. package/lib/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
  817. package/lib/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
  818. package/lib/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
  819. package/lib/collection-manager/Configuration/components/FieldSummary.js +4 -2
  820. package/lib/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
  821. package/lib/collection-manager/Configuration/components/TemplateSummay.js +4 -2
  822. package/lib/collection-manager/Configuration/components/index.d.ts +6 -6
  823. package/lib/collection-manager/Configuration/components/index.js +12 -0
  824. package/lib/collection-manager/Configuration/interfaces.d.ts +1 -0
  825. package/lib/collection-manager/Configuration/templates.d.ts +1 -0
  826. package/lib/collection-manager/ResourceActionProvider.d.ts +1 -1
  827. package/lib/collection-manager/action-hooks.d.ts +1 -0
  828. package/lib/collection-manager/action-hooks.js +171 -92
  829. package/lib/collection-manager/hooks/useOptions.js +39 -36
  830. package/lib/collection-manager/index.d.ts +1 -1
  831. package/lib/collection-manager/index.js +7 -0
  832. package/lib/collection-manager/interfaces/components/index.d.ts +7 -6
  833. package/lib/collection-manager/interfaces/index.d.ts +0 -1
  834. package/lib/collection-manager/interfaces/index.js +0 -11
  835. package/lib/collection-manager/interfaces/integer.js +1 -1
  836. package/lib/collection-manager/interfaces/number.js +3 -3
  837. package/lib/collection-manager/interfaces/percent.js +3 -3
  838. package/lib/collection-manager/interfaces/properties/index.d.ts +0 -1
  839. package/lib/collection-manager/interfaces/properties/index.js +1 -42
  840. package/lib/collection-manager/interfaces/url.js +0 -5
  841. package/lib/collection-manager/sub-table.d.ts +2 -2
  842. package/lib/collection-manager/sub-table.js +4 -0
  843. package/lib/collection-manager/templates/components/PreviewFields.d.ts +1 -1
  844. package/lib/collection-manager/templates/components/PreviewFields.js +2 -1
  845. package/lib/collection-manager/templates/components/PreviewTable.d.ts +2 -1
  846. package/lib/collection-manager/types.d.ts +2 -0
  847. package/lib/filter-provider/FilterProvider.d.ts +5 -1
  848. package/lib/filter-provider/FilterProvider.js +9 -4
  849. package/lib/formula/Expression.d.ts +2 -1
  850. package/lib/formula/Expression.js +64 -44
  851. package/lib/formula/Result.d.ts +2 -1
  852. package/lib/formula/index.d.ts +2 -2
  853. package/lib/hooks/index.d.ts +2 -0
  854. package/lib/hooks/index.js +27 -0
  855. package/lib/hooks/useAdminSchemaUid.d.ts +1 -0
  856. package/lib/hooks/useAdminSchemaUid.js +13 -0
  857. package/lib/hooks/useMenuItem.d.ts +37 -0
  858. package/lib/hooks/useMenuItem.js +104 -0
  859. package/lib/hooks/useViewport.d.ts +1 -0
  860. package/lib/hooks/useViewport.js +47 -0
  861. package/lib/i18n/i18n.js +0 -1
  862. package/lib/icon/Icon.d.ts +2 -1
  863. package/lib/index.d.ts +3 -2
  864. package/lib/index.js +33 -22
  865. package/lib/locale/en_US.d.ts +19 -22
  866. package/lib/locale/en_US.js +22 -25
  867. package/lib/locale/es_ES.d.ts +4 -2
  868. package/lib/locale/es_ES.js +5 -3
  869. package/lib/locale/ja_JP.d.ts +19 -20
  870. package/lib/locale/ja_JP.js +20 -21
  871. package/lib/locale/pt_BR.d.ts +3 -1
  872. package/lib/locale/pt_BR.js +4 -2
  873. package/lib/locale/ru_RU.d.ts +3 -19
  874. package/lib/locale/ru_RU.js +4 -20
  875. package/lib/locale/tr_TR.d.ts +0 -17
  876. package/lib/locale/tr_TR.js +0 -17
  877. package/lib/locale/zh_CN.d.ts +28 -25
  878. package/lib/locale/zh_CN.js +29 -26
  879. package/lib/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
  880. package/lib/plugin-manager/index.d.ts +1 -3
  881. package/lib/plugin-manager/index.js +4 -26
  882. package/lib/pm/Card.d.ts +8 -0
  883. package/lib/pm/Card.js +375 -0
  884. package/lib/pm/PluginManagerLink.d.ts +3 -2
  885. package/lib/pm/PluginManagerLink.js +19 -14
  886. package/lib/pm/index.d.ts +33 -3
  887. package/lib/pm/index.js +113 -278
  888. package/lib/powered-by/index.d.ts +2 -1
  889. package/lib/route-switch/RouteSwitch.d.ts +2 -2
  890. package/lib/route-switch/RouteSwitch.js +78 -45
  891. package/lib/route-switch/RouteSwitchProvider.d.ts +3 -3
  892. package/lib/route-switch/antd/admin-layout/index.d.ts +4 -2
  893. package/lib/route-switch/antd/admin-layout/index.js +59 -54
  894. package/lib/route-switch/antd/auth-layout/index.d.ts +2 -2
  895. package/lib/route-switch/antd/auth-layout/index.js +2 -1
  896. package/lib/route-switch/antd/route-schema-component/index.d.ts +2 -2
  897. package/lib/route-switch/antd/route-schema-component/index.js +2 -2
  898. package/lib/route-switch/context.d.ts +4 -0
  899. package/lib/route-switch/context.js +6 -2
  900. package/lib/route-switch/types.d.ts +2 -5
  901. package/lib/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
  902. package/lib/schema-component/antd/action/Action.Container.js +4 -0
  903. package/lib/schema-component/antd/action/Action.Designer.d.ts +2 -1
  904. package/lib/schema-component/antd/action/Action.Designer.js +201 -17
  905. package/lib/schema-component/antd/action/Action.Drawer.js +14 -12
  906. package/lib/schema-component/antd/action/Action.Link.js +3 -1
  907. package/lib/schema-component/antd/action/Action.Modal.js +13 -12
  908. package/lib/schema-component/antd/action/Action.Page.js +8 -2
  909. package/lib/schema-component/antd/action/Action.js +25 -17
  910. package/lib/schema-component/antd/action/ActionBar.d.ts +18 -2
  911. package/lib/schema-component/antd/action/ActionBar.js +50 -21
  912. package/lib/schema-component/antd/action/context.d.ts +8 -2
  913. package/lib/schema-component/antd/action/context.js +19 -3
  914. package/lib/schema-component/antd/action/hooks.d.ts +2 -0
  915. package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
  916. package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +56 -6
  917. package/lib/schema-component/antd/association-field/AssociationSelect.js +88 -9
  918. package/lib/schema-component/antd/association-field/Editable.d.ts +1 -1
  919. package/lib/schema-component/antd/association-field/Editable.js +12 -11
  920. package/lib/schema-component/antd/association-field/FileManager.d.ts +1 -1
  921. package/lib/schema-component/antd/association-field/FileManager.js +13 -3
  922. package/lib/schema-component/antd/association-field/InternalNester.d.ts +2 -1
  923. package/lib/schema-component/antd/association-field/InternalNester.js +11 -1
  924. package/lib/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
  925. package/lib/schema-component/antd/association-field/InternalPicker.js +9 -3
  926. package/lib/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
  927. package/lib/schema-component/antd/association-field/InternalSubTable.js +32 -4
  928. package/lib/schema-component/antd/association-field/InternalViewer.js +9 -2
  929. package/lib/schema-component/antd/association-field/Nester.d.ts +2 -1
  930. package/lib/schema-component/antd/association-field/Nester.js +56 -12
  931. package/lib/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
  932. package/lib/schema-component/antd/association-field/ReadPretty.js +4 -0
  933. package/lib/schema-component/antd/association-field/SubTable.js +53 -12
  934. package/lib/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
  935. package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +3 -1
  936. package/lib/schema-component/antd/association-field/schema.d.ts +3 -15
  937. package/lib/schema-component/antd/association-field/schema.js +4 -16
  938. package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
  939. package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
  940. package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
  941. package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
  942. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
  943. package/lib/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
  944. package/lib/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
  945. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
  946. package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
  947. package/lib/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
  948. package/lib/schema-component/antd/association-select/ReadPretty.js +2 -0
  949. package/lib/schema-component/antd/block-item/BlockItem.js +5 -2
  950. package/lib/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
  951. package/lib/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
  952. package/lib/schema-component/antd/calendar/Calendar.js +5 -3
  953. package/lib/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
  954. package/lib/schema-component/antd/calendar/DeleteEvent.js +3 -1
  955. package/lib/schema-component/antd/calendar/Event.d.ts +1 -1
  956. package/lib/schema-component/antd/calendar/Event.js +2 -0
  957. package/lib/schema-component/antd/calendar/Nav.d.ts +1 -1
  958. package/lib/schema-component/antd/calendar/Nav.js +5 -3
  959. package/lib/schema-component/antd/calendar/Title.d.ts +1 -1
  960. package/lib/schema-component/antd/calendar/Title.js +2 -0
  961. package/lib/schema-component/antd/calendar/Today.d.ts +1 -1
  962. package/lib/schema-component/antd/calendar/Today.js +4 -2
  963. package/lib/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
  964. package/lib/schema-component/antd/calendar/ViewSelect.js +3 -0
  965. package/lib/schema-component/antd/calendar/components/Header.d.ts +2 -1
  966. package/lib/schema-component/antd/card-item/CardItem.js +1 -1
  967. package/lib/schema-component/antd/cascader/Cascader.js +8 -1
  968. package/lib/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
  969. package/lib/schema-component/antd/checkbox/Checkbox.js +14 -12
  970. package/lib/schema-component/antd/collection-select/CollectionSelect.js +2 -0
  971. package/lib/schema-component/antd/cron/Cron.d.ts +2 -1
  972. package/lib/schema-component/antd/cron/Cron.js +3 -2
  973. package/lib/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
  974. package/lib/schema-component/antd/date-picker/DatePicker.js +2 -1
  975. package/lib/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
  976. package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
  977. package/lib/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
  978. package/lib/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
  979. package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +8 -8
  980. package/lib/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
  981. package/lib/schema-component/antd/expand-action/Expand.Action.js +9 -12
  982. package/lib/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
  983. package/lib/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
  984. package/lib/schema-component/antd/filter/Filter.js +3 -1
  985. package/lib/schema-component/antd/filter/FilterAction.d.ts +1 -1
  986. package/lib/schema-component/antd/filter/FilterAction.js +3 -1
  987. package/lib/schema-component/antd/filter/FilterItem.d.ts +1 -1
  988. package/lib/schema-component/antd/filter/FilterItem.js +46 -41
  989. package/lib/schema-component/antd/filter/FilterItems.d.ts +1 -1
  990. package/lib/schema-component/antd/filter/FilterItems.js +2 -0
  991. package/lib/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
  992. package/lib/schema-component/antd/filter/index.d.ts +1 -0
  993. package/lib/schema-component/antd/filter/index.js +11 -0
  994. package/lib/schema-component/antd/filter/useValues.js +5 -3
  995. package/lib/schema-component/antd/form/Form.Designer.d.ts +2 -1
  996. package/lib/schema-component/antd/form/Form.d.ts +1 -1
  997. package/lib/schema-component/antd/form/Form.js +2 -0
  998. package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
  999. package/lib/schema-component/antd/form-item/FormItem.js +95 -40
  1000. package/lib/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
  1001. package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
  1002. package/lib/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
  1003. package/lib/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
  1004. package/lib/schema-component/antd/form-v2/Form.js +8 -1
  1005. package/lib/schema-component/antd/form-v2/FormField.js +2 -0
  1006. package/lib/schema-component/antd/form-v2/Templates.d.ts +7 -1
  1007. package/lib/schema-component/antd/form-v2/Templates.js +20 -3
  1008. package/lib/schema-component/antd/form-v2/index.js +3 -1
  1009. package/lib/schema-component/antd/g2plot/G2Plot.js +2 -0
  1010. package/lib/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
  1011. package/lib/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
  1012. package/lib/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
  1013. package/lib/schema-component/antd/gantt/components/gantt/Event.js +2 -0
  1014. package/lib/schema-component/antd/gantt/components/gantt/gantt.js +1 -1
  1015. package/lib/schema-component/antd/grid/Block.d.ts +1 -1
  1016. package/lib/schema-component/antd/grid/Block.js +2 -0
  1017. package/lib/schema-component/antd/grid/Grid.js +25 -9
  1018. package/lib/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
  1019. package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
  1020. package/lib/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
  1021. package/lib/schema-component/antd/grid-card/GridCard.Designer.js +5 -6
  1022. package/lib/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
  1023. package/lib/schema-component/antd/grid-card/GridCard.d.ts +2 -1
  1024. package/lib/schema-component/antd/grid-card/GridCard.js +11 -7
  1025. package/lib/schema-component/antd/index.d.ts +1 -0
  1026. package/lib/schema-component/antd/index.js +11 -0
  1027. package/lib/schema-component/antd/index.less +18 -4
  1028. package/lib/schema-component/antd/input/Input.d.ts +2 -1
  1029. package/lib/schema-component/antd/input/Input.js +3 -2
  1030. package/lib/schema-component/antd/input/Json.d.ts +2 -2
  1031. package/lib/schema-component/antd/input/Json.js +49 -9
  1032. package/lib/schema-component/antd/input/ReadPretty.d.ts +1 -1
  1033. package/lib/schema-component/antd/input/ReadPretty.js +4 -4
  1034. package/lib/schema-component/antd/input-number/InputNumber.d.ts +5 -1
  1035. package/lib/schema-component/antd/input-number/InputNumber.js +1 -1
  1036. package/lib/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
  1037. package/lib/schema-component/antd/input-number/ReadPretty.js +6 -2
  1038. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
  1039. package/lib/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
  1040. package/lib/schema-component/antd/kanban/Kanban.Card.js +4 -2
  1041. package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
  1042. package/lib/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
  1043. package/lib/schema-component/antd/kanban/Kanban.js +3 -1
  1044. package/lib/schema-component/antd/list/List.Decorator.d.ts +1 -1
  1045. package/lib/schema-component/antd/list/List.Decorator.js +8 -13
  1046. package/lib/schema-component/antd/list/List.Designer.d.ts +2 -1
  1047. package/lib/schema-component/antd/list/List.Item.d.ts +2 -1
  1048. package/lib/schema-component/antd/list/List.Item.js +1 -1
  1049. package/lib/schema-component/antd/list/List.d.ts +2 -1
  1050. package/lib/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
  1051. package/lib/schema-component/antd/markdown/Markdown.Void.js +2 -0
  1052. package/lib/schema-component/antd/markdown/Markdown.d.ts +2 -0
  1053. package/lib/schema-component/antd/markdown/Markdown.js +9 -4
  1054. package/lib/schema-component/antd/markdown/util.js +1 -1
  1055. package/lib/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  1056. package/lib/schema-component/antd/menu/Menu.js +334 -175
  1057. package/lib/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
  1058. package/lib/schema-component/antd/page/FixedBlock.d.ts +2 -1
  1059. package/lib/schema-component/antd/page/FixedBlock.js +6 -2
  1060. package/lib/schema-component/antd/page/Page.d.ts +2 -1
  1061. package/lib/schema-component/antd/page/Page.js +51 -37
  1062. package/lib/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
  1063. package/lib/schema-component/antd/pagination/index.d.ts +1 -1
  1064. package/lib/schema-component/antd/pagination/index.js +2 -0
  1065. package/lib/schema-component/antd/password/Password.d.ts +1 -1
  1066. package/lib/schema-component/antd/password/PasswordStrength.js +2 -145
  1067. package/lib/schema-component/antd/password/utils.d.ts +1 -0
  1068. package/lib/schema-component/antd/password/utils.js +151 -0
  1069. package/lib/schema-component/antd/percent/Percent.js +2 -2
  1070. package/lib/schema-component/antd/preview/Preview.d.ts +1 -1
  1071. package/lib/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
  1072. package/lib/schema-component/antd/quick-edit/QuickEdit.js +98 -0
  1073. package/lib/schema-component/antd/quick-edit/index.d.ts +1 -0
  1074. package/lib/{settings-form → schema-component/antd/quick-edit}/index.js +4 -4
  1075. package/lib/schema-component/antd/radio/Radio.d.ts +1 -1
  1076. package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
  1077. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +4 -6
  1078. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +9 -4
  1079. package/lib/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
  1080. package/lib/schema-component/antd/remote-select/ReadPretty.js +2 -0
  1081. package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
  1082. package/lib/schema-component/antd/remote-select/RemoteSelect.js +108 -30
  1083. package/lib/schema-component/antd/remote-select/utils.d.ts +4 -0
  1084. package/lib/schema-component/antd/remote-select/utils.js +41 -0
  1085. package/lib/schema-component/antd/select/ReadPretty.d.ts +1 -1
  1086. package/lib/schema-component/antd/select/ReadPretty.js +7 -7
  1087. package/lib/schema-component/antd/select/Select.d.ts +3 -0
  1088. package/lib/schema-component/antd/select/Select.js +23 -12
  1089. package/lib/schema-component/antd/select/index.d.ts +1 -1
  1090. package/lib/schema-component/antd/select/index.js +4 -4
  1091. package/lib/schema-component/antd/select/utils.d.ts +14 -0
  1092. package/lib/schema-component/antd/select/{shared.js → utils.js} +22 -20
  1093. package/lib/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
  1094. package/lib/schema-component/antd/table/Table.Array.d.ts +5 -5
  1095. package/lib/schema-component/antd/table/Table.Array.js +7 -5
  1096. package/lib/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
  1097. package/lib/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
  1098. package/lib/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
  1099. package/lib/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
  1100. package/lib/schema-component/antd/table/Table.Column.d.ts +2 -1
  1101. package/lib/schema-component/antd/table/Table.Designer.d.ts +2 -1
  1102. package/lib/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
  1103. package/lib/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
  1104. package/lib/schema-component/antd/table/Table.RowSelection.js +2 -0
  1105. package/lib/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
  1106. package/lib/schema-component/antd/table/Table.Void.d.ts +1 -1
  1107. package/lib/schema-component/antd/table/Table.Void.js +2 -0
  1108. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
  1109. package/lib/schema-component/antd/table-v2/FilterDynamicComponent.js +17 -2
  1110. package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
  1111. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
  1112. package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
  1113. package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
  1114. package/lib/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
  1115. package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +146 -9
  1116. package/lib/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
  1117. package/lib/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
  1118. package/lib/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
  1119. package/lib/schema-component/antd/table-v2/Table.js +61 -28
  1120. package/lib/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
  1121. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +54 -47
  1122. package/lib/schema-component/antd/table-v2/TableField.js +4 -0
  1123. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
  1124. package/lib/schema-component/antd/table-v2/index.d.ts +1 -0
  1125. package/lib/schema-component/antd/table-v2/index.js +12 -0
  1126. package/lib/schema-component/antd/table-v2/utils.js +1 -1
  1127. package/lib/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
  1128. package/lib/schema-component/antd/tabs/Tabs.js +51 -18
  1129. package/lib/schema-component/antd/tabs/context.d.ts +8 -0
  1130. package/lib/schema-component/antd/tabs/context.js +24 -0
  1131. package/lib/schema-component/antd/tabs/index.d.ts +1 -0
  1132. package/lib/schema-component/antd/tabs/index.js +11 -0
  1133. package/lib/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
  1134. package/lib/schema-component/antd/time-picker/ReadPretty.js +1 -1
  1135. package/lib/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
  1136. package/lib/schema-component/antd/time-picker/TimePicker.js +1 -1
  1137. package/lib/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
  1138. package/lib/schema-component/antd/tree-select/ReadPretty.js +3 -1
  1139. package/lib/schema-component/antd/upload/ReadPretty.js +7 -3
  1140. package/lib/schema-component/antd/upload/Upload.js +1 -1
  1141. package/lib/schema-component/antd/upload/shared.d.ts +3 -3
  1142. package/lib/schema-component/antd/upload/style.less +1 -2
  1143. package/lib/schema-component/antd/upload/type.d.ts +2 -2
  1144. package/lib/schema-component/antd/variable/Input.d.ts +2 -2
  1145. package/lib/schema-component/antd/variable/Input.js +183 -31
  1146. package/lib/schema-component/antd/variable/JSONInput.d.ts +2 -2
  1147. package/lib/schema-component/antd/variable/JSONInput.js +2 -23
  1148. package/lib/schema-component/antd/variable/TextArea.d.ts +2 -2
  1149. package/lib/schema-component/antd/variable/VariableSelect.d.ts +2 -2
  1150. package/lib/schema-component/antd/variable/VariableSelect.js +1 -1
  1151. package/lib/schema-component/common/dnd-context/index.d.ts +1 -1
  1152. package/lib/schema-component/common/dnd-context/index.js +11 -4
  1153. package/lib/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
  1154. package/lib/schema-component/common/sortable-item/SortableItem.js +16 -5
  1155. package/lib/schema-component/common/utils/logic.js +64 -2
  1156. package/lib/schema-component/common/utils/uitls.d.ts +1 -0
  1157. package/lib/schema-component/common/utils/uitls.js +50 -14
  1158. package/lib/schema-component/core/DesignableSwitch.d.ts +2 -1
  1159. package/lib/schema-component/core/SchemaComponent.d.ts +2 -1
  1160. package/lib/schema-component/core/SchemaComponentOptions.js +12 -7
  1161. package/lib/schema-component/core/SchemaComponentProvider.js +17 -6
  1162. package/lib/schema-component/hooks/useCompile.js +32 -4
  1163. package/lib/schema-component/hooks/useDesignable.d.ts +5 -4
  1164. package/lib/schema-component/hooks/useDesignable.js +30 -28
  1165. package/lib/schema-component/hooks/useFieldModeOptions.js +44 -20
  1166. package/lib/schema-component/hooks/useProps.d.ts +1 -10
  1167. package/lib/schema-component/hooks/useProps.js +20 -6
  1168. package/lib/schema-initializer/SchemaInitializer.d.ts +18 -4
  1169. package/lib/schema-initializer/SchemaInitializer.js +275 -96
  1170. package/lib/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
  1171. package/lib/schema-initializer/SelectCollection.d.ts +3 -3
  1172. package/lib/schema-initializer/SelectCollection.js +22 -17
  1173. package/lib/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
  1174. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
  1175. package/lib/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
  1176. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
  1177. package/lib/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
  1178. package/lib/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
  1179. package/lib/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
  1180. package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
  1181. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
  1182. package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
  1183. package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
  1184. package/lib/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
  1185. package/lib/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
  1186. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
  1187. package/lib/schema-initializer/buttons/TabPaneInitializers.js +3 -3
  1188. package/lib/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
  1189. package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +13 -4
  1190. package/lib/schema-initializer/buttons/TableActionInitializers.js +5 -5
  1191. package/lib/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
  1192. package/lib/schema-initializer/buttons/TableColumnInitializers.js +17 -9
  1193. package/lib/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
  1194. package/lib/schema-initializer/components/BulkEditField.d.ts +2 -1
  1195. package/lib/schema-initializer/components/CreateRecordAction.d.ts +2 -2
  1196. package/lib/schema-initializer/components/CreateRecordAction.js +40 -26
  1197. package/lib/schema-initializer/components/DeletedField.d.ts +2 -1
  1198. package/lib/schema-initializer/components/DuplicateAction.d.ts +3 -0
  1199. package/lib/schema-initializer/components/DuplicateAction.js +174 -0
  1200. package/lib/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
  1201. package/lib/schema-initializer/components/assigned-field/AssignedField.js +3 -2
  1202. package/lib/schema-initializer/components/index.d.ts +1 -0
  1203. package/lib/schema-initializer/components/index.js +11 -0
  1204. package/lib/schema-initializer/index.d.ts +1 -1
  1205. package/lib/schema-initializer/index.js +7 -0
  1206. package/lib/schema-initializer/items/ActionInitializer.d.ts +2 -1
  1207. package/lib/schema-initializer/items/BlockInitializer.d.ts +2 -1
  1208. package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
  1209. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
  1210. package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
  1211. package/lib/schema-initializer/items/CalendarBlockInitializer.js +9 -9
  1212. package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
  1213. package/lib/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
  1214. package/lib/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
  1215. package/lib/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
  1216. package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
  1217. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
  1218. package/lib/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
  1219. package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
  1220. package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
  1221. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
  1222. package/lib/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
  1223. package/lib/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
  1224. package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
  1225. package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
  1226. package/lib/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
  1227. package/lib/schema-initializer/items/DuplicateActionInitializer.js +69 -0
  1228. package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
  1229. package/lib/schema-initializer/items/ExpandActionInitializer.js +3 -3
  1230. package/lib/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
  1231. package/lib/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
  1232. package/lib/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
  1233. package/lib/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
  1234. package/lib/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
  1235. package/lib/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
  1236. package/lib/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
  1237. package/lib/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
  1238. package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
  1239. package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
  1240. package/lib/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
  1241. package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
  1242. package/lib/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
  1243. package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
  1244. package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
  1245. package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
  1246. package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
  1247. package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
  1248. package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
  1249. package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
  1250. package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
  1251. package/lib/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
  1252. package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
  1253. package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
  1254. package/lib/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
  1255. package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
  1256. package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
  1257. package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
  1258. package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
  1259. package/lib/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
  1260. package/lib/schema-initializer/items/index.d.ts +1 -0
  1261. package/lib/schema-initializer/items/index.js +11 -0
  1262. package/lib/schema-initializer/utils.d.ts +13 -1
  1263. package/lib/schema-initializer/utils.js +111 -68
  1264. package/lib/schema-items/GeneralSchemaItems.js +5 -3
  1265. package/lib/schema-items/OpenModeSchemaItems.js +14 -10
  1266. package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
  1267. package/lib/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
  1268. package/lib/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
  1269. package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +2 -0
  1270. package/lib/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
  1271. package/lib/schema-settings/DataTemplates/components/Designer.js +2 -0
  1272. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
  1273. package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -58
  1274. package/lib/schema-settings/EnableChildCollections/index.d.ts +1 -1
  1275. package/lib/schema-settings/EnableChildCollections/index.js +2 -0
  1276. package/lib/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  1277. package/lib/schema-settings/GeneralSchemaDesigner.js +3 -2
  1278. package/lib/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
  1279. package/lib/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
  1280. package/lib/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
  1281. package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
  1282. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
  1283. package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
  1284. package/lib/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
  1285. package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
  1286. package/lib/schema-settings/LinkageRules/index.d.ts +1 -1
  1287. package/lib/schema-settings/LinkageRules/index.js +3 -1
  1288. package/lib/schema-settings/SchemaSettings.d.ts +2 -1
  1289. package/lib/schema-settings/SchemaSettings.js +148 -60
  1290. package/lib/schema-settings/VariableInput/VariableInput.d.ts +1 -1
  1291. package/lib/schema-settings/VariableInput/VariableInput.js +1 -1
  1292. package/lib/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
  1293. package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
  1294. package/lib/schema-settings/VariableInput/hooks/useFormVariable.d.ts +19 -0
  1295. package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +96 -0
  1296. package/lib/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +8 -0
  1297. package/lib/schema-settings/VariableInput/hooks/useIterationVariable.js +84 -0
  1298. package/lib/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
  1299. package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
  1300. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +5 -1
  1301. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +23 -3
  1302. package/lib/schema-settings/VariableInput/type.d.ts +28 -0
  1303. package/lib/schema-settings/VariableInput/type.js +5 -0
  1304. package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
  1305. package/lib/schema-templates/BlockTemplate.d.ts +1 -1
  1306. package/lib/schema-templates/BlockTemplate.js +4 -1
  1307. package/lib/schema-templates/BlockTemplateDetails.d.ts +2 -1
  1308. package/lib/schema-templates/BlockTemplateDetails.js +10 -6
  1309. package/lib/schema-templates/BlockTemplatePage.d.ts +3 -2
  1310. package/lib/schema-templates/BlockTemplatePage.js +5 -2
  1311. package/lib/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
  1312. package/lib/schema-templates/SchemaTemplateManagerProvider.js +7 -0
  1313. package/lib/schema-templates/index.d.ts +0 -1
  1314. package/lib/schema-templates/index.js +0 -11
  1315. package/lib/system-settings/SystemSettingsProvider.d.ts +5 -3
  1316. package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -3
  1317. package/lib/system-settings/SystemSettingsShortcut.js +33 -85
  1318. package/lib/test/collections.d.ts +1487 -0
  1319. package/lib/test/collections.js +1444 -0
  1320. package/lib/test/index.d.ts +3 -0
  1321. package/lib/test/index.js +36 -0
  1322. package/lib/test/mainCollections.d.ts +11359 -0
  1323. package/lib/test/mainCollections.js +3 -0
  1324. package/lib/test/mockAPIClient.d.ts +6 -0
  1325. package/lib/test/mockAPIClient.js +18 -0
  1326. package/lib/user/ChangePassword.d.ts +1 -1
  1327. package/lib/user/ChangePassword.js +30 -26
  1328. package/lib/user/CurrentUser.d.ts +7 -1
  1329. package/lib/user/CurrentUser.js +122 -83
  1330. package/lib/user/CurrentUserProvider.d.ts +1 -1
  1331. package/lib/user/CurrentUserProvider.js +3 -2
  1332. package/lib/user/EditProfile.d.ts +1 -1
  1333. package/lib/user/EditProfile.js +31 -25
  1334. package/lib/user/LanguageSettings.d.ts +1 -1
  1335. package/lib/user/LanguageSettings.js +66 -63
  1336. package/lib/user/SigninPage.d.ts +2 -1
  1337. package/lib/user/SigninPage.js +39 -28
  1338. package/lib/user/SigninPageExtension.d.ts +1 -1
  1339. package/lib/user/SignupPage.d.ts +2 -1
  1340. package/lib/user/SignupPage.js +4 -3
  1341. package/lib/user/SwitchRole.d.ts +1 -1
  1342. package/lib/user/SwitchRole.js +57 -53
  1343. package/lib/user/ThemeSettings.d.ts +1 -1
  1344. package/lib/user/ThemeSettings.js +59 -54
  1345. package/lib/user/VerificationCode.d.ts +2 -2
  1346. package/lib/user/index.d.ts +0 -3
  1347. package/lib/user/index.js +0 -33
  1348. package/package.json +16 -15
  1349. package/tsconfig.json +2 -0
  1350. package/.umirc.ts +0 -24
  1351. package/develop.md +0 -5
  1352. package/es/collection-manager/interfaces/attachment.d.ts +0 -2
  1353. package/es/collection-manager/interfaces/attachment.js +0 -98
  1354. package/es/plugin-manager/PluginManager.d.ts +0 -23
  1355. package/es/plugin-manager/PluginManager.js +0 -166
  1356. package/es/plugin-manager/PluginManagerProvider.d.ts +0 -2
  1357. package/es/plugin-manager/PluginManagerProvider.js +0 -11
  1358. package/es/schema-component/antd/select/shared.d.ts +0 -7
  1359. package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
  1360. package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -65
  1361. package/es/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1362. package/es/schema-templates/SchemaTemplateShortcut.js +0 -17
  1363. package/es/settings-form/SettingsForm.d.ts +0 -13
  1364. package/es/settings-form/index.d.ts +0 -1
  1365. package/es/settings-form/index.js +0 -1
  1366. package/lib/collection-manager/interfaces/attachment.d.ts +0 -2
  1367. package/lib/collection-manager/interfaces/attachment.js +0 -105
  1368. package/lib/plugin-manager/PluginManager.d.ts +0 -23
  1369. package/lib/plugin-manager/PluginManager.js +0 -178
  1370. package/lib/plugin-manager/PluginManagerProvider.d.ts +0 -2
  1371. package/lib/plugin-manager/PluginManagerProvider.js +0 -19
  1372. package/lib/schema-component/antd/select/shared.d.ts +0 -7
  1373. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
  1374. package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -73
  1375. package/lib/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
  1376. package/lib/schema-templates/SchemaTemplateShortcut.js +0 -25
  1377. package/lib/settings-form/SettingsForm.d.ts +0 -13
  1378. package/lib/settings-form/index.d.ts +0 -1
@@ -16,13 +16,13 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
16
16
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
17
17
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
18
18
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
19
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
20
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
20
  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."); }
22
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); }
23
22
  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
23
  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; } }
25
24
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
25
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
26
26
  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; }
27
27
  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; }
28
28
  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; }
@@ -35,15 +35,17 @@ import { ArrayCollapse, ArrayItems, FormDialog, FormItem, FormLayout, Input } fr
35
35
  import { createForm } from '@formily/core';
36
36
  import { SchemaOptionsContext, useField, useFieldSchema, useForm } from '@formily/react';
37
37
  import { uid } from '@formily/shared';
38
- import { Alert, Button, Cascader, Dropdown, Empty, Menu, Modal, Select, Space, Switch } from 'antd';
38
+ import { error } from '@nocobase/utils/client';
39
+ import { Alert, Button, Cascader, Dropdown, Empty, Modal, Select, Space, Switch } from 'antd';
39
40
  import classNames from 'classnames';
40
41
  import _, { cloneDeep } from 'lodash';
41
42
  import React, { createContext, useCallback, useContext, useMemo, useState } from 'react';
42
43
  import { createPortal } from 'react-dom';
43
44
  import { useTranslation } from 'react-i18next';
44
- import { APIClientProvider, ActionContext, CollectionManagerContext, FormProvider, RemoteSchemaComponent, SchemaComponent, SchemaComponentContext, SchemaComponentOptions, createDesignable, findFormBlock, useAPIClient, useCollection, useCollectionManager, useCompile, useDesignable, useLinkageCollectionFilterOptions } from '..';
45
+ import { APIClientProvider, ActionContextProvider, CollectionManagerContext, FormProvider, RemoteSchemaComponent, SchemaComponent, SchemaComponentContext, SchemaComponentOptions, createDesignable, findFormBlock, useAPIClient, useCollection, useCollectionManager, useCompile, useDesignable, useFilterBlock, useLinkageCollectionFilterOptions } from '..';
45
46
  import { findFilterTargets, updateFilterTargets } from '../block-provider/hooks';
46
47
  import { isSameCollection, useSupportedBlocks } from '../filter-provider/utils';
48
+ import { useCollectMenuItem, useCollectMenuItems, useMenuItem } from '../hooks/useMenuItem';
47
49
  import { getTargetKey } from '../schema-component/antd/association-filter/utilts';
48
50
  import { useSchemaTemplateManager } from '../schema-templates';
49
51
  import { useBlockTemplateContext } from '../schema-templates/BlockTemplate';
@@ -72,6 +74,7 @@ export var SchemaSettingsProvider = function SchemaSettingsProvider(props) {
72
74
  }, others)
73
75
  }, children);
74
76
  };
77
+ var overlayClassName = classNames('nb-schema-initializer-button-overlay', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-dropdown-menu-item-group-list {\n max-height: 40vh;\n overflow: auto;\n }\n "]))));
75
78
  export var SchemaSettings = function SchemaSettings(props) {
76
79
  var title = props.title,
77
80
  dn = props.dn,
@@ -80,27 +83,50 @@ export var SchemaSettings = function SchemaSettings(props) {
80
83
  _useState2 = _slicedToArray(_useState, 2),
81
84
  visible = _useState2[0],
82
85
  setVisible = _useState2[1];
83
- var DropdownMenu = /*#__PURE__*/React.createElement(Dropdown, {
84
- open: visible,
85
- onOpenChange: function onOpenChange(visible) {
86
- setVisible(visible);
87
- },
88
- overlay: /*#__PURE__*/React.createElement(Menu, null, props.children),
89
- overlayClassName: classNames('nb-schema-initializer-button-overlay', css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-dropdown-menu-item-group-list {\n max-height: 40vh;\n overflow: auto;\n }\n "]))))
90
- }, typeof title === 'string' ? /*#__PURE__*/React.createElement("span", null, title) : title);
86
+ var _useMenuItem = useMenuItem(),
87
+ Component = _useMenuItem.Component,
88
+ getMenuItems = _useMenuItem.getMenuItems;
89
+ var _useState3 = useState(false),
90
+ _useState4 = _slicedToArray(_useState3, 2),
91
+ shouldRender = _useState4[0],
92
+ setShouldRender = _useState4[1];
93
+ if (!shouldRender) {
94
+ return /*#__PURE__*/React.createElement("div", {
95
+ onMouseEnter: function onMouseEnter() {
96
+ setShouldRender(true);
97
+ setVisible(true);
98
+ }
99
+ }, typeof title === 'string' ? /*#__PURE__*/React.createElement("span", null, title) : title);
100
+ }
101
+ var dropdownMenu = function dropdownMenu() {
102
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Component, null), /*#__PURE__*/React.createElement(Dropdown, {
103
+ open: visible,
104
+ onOpenChange: function onOpenChange() {
105
+ setShouldRender(false);
106
+ setVisible(false);
107
+ },
108
+ menu: {
109
+ items: getMenuItems(function () {
110
+ return props.children;
111
+ })
112
+ },
113
+ overlayClassName: overlayClassName
114
+ }, typeof title === 'string' ? /*#__PURE__*/React.createElement("span", null, title) : title));
115
+ };
91
116
  if (dn) {
92
117
  return /*#__PURE__*/React.createElement(SchemaSettingsProvider, _objectSpread({
93
118
  visible: visible,
94
119
  setVisible: setVisible,
95
120
  dn: dn
96
- }, others), DropdownMenu);
121
+ }, others), dropdownMenu());
97
122
  }
98
- return DropdownMenu;
123
+ return dropdownMenu();
99
124
  };
100
125
  SchemaSettings.Template = function Template(props) {
101
126
  var componentName = props.componentName,
102
127
  collectionName = props.collectionName,
103
- resourceName = props.resourceName;
128
+ resourceName = props.resourceName,
129
+ needRender = props.needRender;
104
130
  var _useTranslation = useTranslation(),
105
131
  t = _useTranslation.t;
106
132
  var _useCollectionManager = useCollectionManager(),
@@ -117,7 +143,7 @@ SchemaSettings.Template = function Template(props) {
117
143
  var _useSchemaTemplateMan2 = useSchemaTemplateManager(),
118
144
  saveAsTemplate = _useSchemaTemplateMan2.saveAsTemplate,
119
145
  copyTemplateSchema = _useSchemaTemplateMan2.copyTemplateSchema;
120
- if (!collectionName) {
146
+ if (!collectionName && !needRender) {
121
147
  return null;
122
148
  }
123
149
  if (template) {
@@ -167,12 +193,14 @@ SchemaSettings.Template = function Template(props) {
167
193
  return /*#__PURE__*/React.createElement(SchemaSettings.Item, {
168
194
  onClick: function () {
169
195
  var _onClick3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
170
- var _getCollection, title, values, sdn, _yield$saveAsTemplate, key;
196
+ var _ref, title, values, sdn, _yield$saveAsTemplate, key;
171
197
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
172
198
  while (1) switch (_context3.prev = _context3.next) {
173
199
  case 0:
174
200
  setVisible(false);
175
- _getCollection = getCollection(collectionName), title = _getCollection.title;
201
+ _ref = collectionName ? getCollection(collectionName) : {
202
+ title: ''
203
+ }, title = _ref.title;
176
204
  _context3.next = 4;
177
205
  return FormDialog(t('Save as template'), function () {
178
206
  return /*#__PURE__*/React.createElement(FormLayout, {
@@ -188,7 +216,7 @@ SchemaSettings.Template = function Template(props) {
188
216
  name: {
189
217
  title: t('Template name'),
190
218
  required: true,
191
- default: "".concat(compile(title), "_").concat(t(componentName)),
219
+ default: title ? "".concat(compile(title), "_").concat(t(componentName)) : t(componentName),
192
220
  'x-decorator': 'FormItem',
193
221
  'x-component': 'Input'
194
222
  }
@@ -359,12 +387,12 @@ SchemaSettings.FormItemTemplate = function FormItemTemplate(props) {
359
387
  return /*#__PURE__*/React.createElement(SchemaSettings.Item, {
360
388
  onClick: function () {
361
389
  var _onClick5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
362
- var _getCollection2, title, gridSchema, values, sdn, _yield$saveAsTemplate2, key;
390
+ var _getCollection, title, gridSchema, values, sdn, _yield$saveAsTemplate2, key;
363
391
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
364
392
  while (1) switch (_context6.prev = _context6.next) {
365
393
  case 0:
366
394
  setVisible(false);
367
- _getCollection2 = getCollection(collectionName), title = _getCollection2.title;
395
+ _getCollection = getCollection(collectionName), title = _getCollection.title;
368
396
  gridSchema = findGridSchema(fieldSchema);
369
397
  _context6.next = 5;
370
398
  return FormDialog(t('Save as template'), function () {
@@ -445,14 +473,17 @@ SchemaSettings.FormItemTemplate = function FormItemTemplate(props) {
445
473
  }, t('Save as block template'));
446
474
  };
447
475
  SchemaSettings.Item = function Item(props) {
476
+ var _useCollectMenuItems = useCollectMenuItems(),
477
+ pushMenuItem = _useCollectMenuItems.pushMenuItem;
478
+ var _useCollectMenuItem = useCollectMenuItem(),
479
+ collectMenuItem = _useCollectMenuItem.collectMenuItem;
448
480
  var eventKey = props.eventKey;
449
481
  var key = useMemo(function () {
450
482
  return uid();
451
483
  }, []);
452
- return /*#__PURE__*/React.createElement(Menu.Item, _objectSpread(_objectSpread({
484
+ var item = _objectSpread(_objectSpread({}, _.omit(props, ['children'])), {}, {
453
485
  key: key,
454
- eventKey: eventKey || key
455
- }, props), {}, {
486
+ eventKey: eventKey || key,
456
487
  onClick: function onClick(info) {
457
488
  var _props$onClick;
458
489
  info.domEvent.preventDefault();
@@ -461,17 +492,67 @@ SchemaSettings.Item = function Item(props) {
461
492
  },
462
493
  style: {
463
494
  minWidth: 120
464
- }
465
- }), props.children || props.title);
495
+ },
496
+ label: props.children || props.title,
497
+ title: props.title
498
+ });
499
+ pushMenuItem === null || pushMenuItem === void 0 ? void 0 : pushMenuItem(item);
500
+ collectMenuItem === null || collectMenuItem === void 0 ? void 0 : collectMenuItem(item);
501
+ return null;
466
502
  };
467
- SchemaSettings.ItemGroup = function (props) {
468
- return /*#__PURE__*/React.createElement(Menu.ItemGroup, _objectSpread({}, props));
503
+ SchemaSettings.ItemGroup = function ItemGroup(props) {
504
+ var _useMenuItem2 = useMenuItem(),
505
+ Component = _useMenuItem2.Component,
506
+ getMenuItems = _useMenuItem2.getMenuItems;
507
+ var _useCollectMenuItems2 = useCollectMenuItems(),
508
+ pushMenuItem = _useCollectMenuItems2.pushMenuItem;
509
+ var key = useMemo(function () {
510
+ return uid();
511
+ }, []);
512
+ var item = {
513
+ key: key,
514
+ type: 'group',
515
+ title: props.title,
516
+ label: props.title,
517
+ children: getMenuItems(function () {
518
+ return props.children;
519
+ })
520
+ };
521
+ pushMenuItem(item);
522
+ return /*#__PURE__*/React.createElement(Component, null);
469
523
  };
470
- SchemaSettings.SubMenu = function (props) {
471
- return /*#__PURE__*/React.createElement(Menu.SubMenu, _objectSpread({}, props));
524
+ SchemaSettings.SubMenu = function SubMenu(props) {
525
+ var _useMenuItem3 = useMenuItem(),
526
+ Component = _useMenuItem3.Component,
527
+ getMenuItems = _useMenuItem3.getMenuItems;
528
+ var _useCollectMenuItems3 = useCollectMenuItems(),
529
+ pushMenuItem = _useCollectMenuItems3.pushMenuItem;
530
+ var key = useMemo(function () {
531
+ return uid();
532
+ }, []);
533
+ var item = {
534
+ key: key,
535
+ label: props.title,
536
+ title: props.title,
537
+ children: getMenuItems(function () {
538
+ return props.children;
539
+ })
540
+ };
541
+ pushMenuItem(item);
542
+ return /*#__PURE__*/React.createElement(Component, null);
472
543
  };
473
- SchemaSettings.Divider = function (props) {
474
- return /*#__PURE__*/React.createElement(Menu.Divider, _objectSpread({}, props));
544
+ SchemaSettings.Divider = function Divider() {
545
+ var _useCollectMenuItems4 = useCollectMenuItems(),
546
+ pushMenuItem = _useCollectMenuItems4.pushMenuItem;
547
+ var key = useMemo(function () {
548
+ return uid();
549
+ }, []);
550
+ var item = {
551
+ key: key,
552
+ type: 'divider'
553
+ };
554
+ pushMenuItem(item);
555
+ return null;
475
556
  };
476
557
  SchemaSettings.Remove = function Remove(props) {
477
558
  var confirm = props.confirm,
@@ -522,12 +603,18 @@ SchemaSettings.ConnectDataBlocks = function ConnectDataBlocks(props) {
522
603
  var _useTranslation4 = useTranslation(),
523
604
  t = _useTranslation4.t;
524
605
  var collection = useCollection();
606
+ var _useFilterBlock = useFilterBlock(),
607
+ inProvider = _useFilterBlock.inProvider;
525
608
  var dataBlocks = useSupportedBlocks(type);
609
+ // eslint-disable-next-line prefer-const
526
610
  var _findFilterTargets = findFilterTargets(fieldSchema),
527
611
  _findFilterTargets$ta = _findFilterTargets.targets,
528
612
  targets = _findFilterTargets$ta === void 0 ? [] : _findFilterTargets$ta,
529
613
  uid = _findFilterTargets.uid;
530
614
  var compile = useCompile();
615
+ if (!inProvider) {
616
+ return null;
617
+ }
531
618
  var Content = dataBlocks.map(function (block) {
532
619
  var title = "".concat(compile(block.collection.title), " #").concat(block.uid.slice(0, 4));
533
620
  var onHover = function onHover() {
@@ -572,7 +659,7 @@ SchemaSettings.ConnectDataBlocks = function ConnectDataBlocks(props) {
572
659
  updateFilterTargets(fieldSchema, targets);
573
660
  dn.emit('patch', {
574
661
  schema: (_schema = {}, _defineProperty(_schema, 'x-uid', uid), _defineProperty(_schema, 'x-filter-targets', targets), _schema)
575
- });
662
+ }).catch(error);
576
663
  dn.refresh();
577
664
  },
578
665
  onMouseEnter: onHover,
@@ -629,14 +716,14 @@ SchemaSettings.ConnectDataBlocks = function ConnectDataBlocks(props) {
629
716
  });
630
717
  return /*#__PURE__*/React.createElement(SchemaSettings.SubMenu, {
631
718
  title: t('Connect data blocks')
632
- }, Content.length ? Content : /*#__PURE__*/React.createElement(Empty, {
719
+ }, Content.length ? Content : /*#__PURE__*/React.createElement(SchemaSettings.Item, null, /*#__PURE__*/React.createElement(Empty, {
633
720
  style: {
634
721
  width: 160,
635
722
  padding: '0 1em'
636
723
  },
637
724
  description: emptyDescription,
638
725
  image: Empty.PRESENTED_IMAGE_SIMPLE
639
- }));
726
+ })));
640
727
  };
641
728
  SchemaSettings.SelectItem = function SelectItem(props) {
642
729
  var title = props.title,
@@ -646,10 +733,10 @@ SchemaSettings.SelectItem = function SelectItem(props) {
646
733
  openOnHover = props.openOnHover,
647
734
  _onClick = props.onClick,
648
735
  others = _objectWithoutProperties(props, _excluded3);
649
- var _useState3 = useState(false),
650
- _useState4 = _slicedToArray(_useState3, 2),
651
- open = _useState4[0],
652
- setOpen = _useState4[1];
736
+ var _useState5 = useState(false),
737
+ _useState6 = _slicedToArray(_useState5, 2),
738
+ open = _useState6[0],
739
+ setOpen = _useState6[1];
653
740
  var onClick = function onClick() {
654
741
  setOpen(false);
655
742
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -672,6 +759,7 @@ SchemaSettings.SelectItem = function SelectItem(props) {
672
759
  justifyContent: 'space-between'
673
760
  }
674
761
  }, title, /*#__PURE__*/React.createElement(Select, _objectSpread({
762
+ dropdownMatchSelectWidth: false,
675
763
  bordered: false,
676
764
  defaultValue: value,
677
765
  onChange: function onChange() {
@@ -712,10 +800,10 @@ SchemaSettings.SwitchItem = function SwitchItem(props) {
712
800
  var title = props.title,
713
801
  onChange = props.onChange,
714
802
  others = _objectWithoutProperties(props, _excluded5);
715
- var _useState5 = useState(!!props.checked),
716
- _useState6 = _slicedToArray(_useState5, 2),
717
- checked = _useState6[0],
718
- setChecked = _useState6[1];
803
+ var _useState7 = useState(!!props.checked),
804
+ _useState8 = _slicedToArray(_useState7, 2),
805
+ checked = _useState8[0],
806
+ setChecked = _useState8[1];
719
807
  return /*#__PURE__*/React.createElement(SchemaSettings.Item, _objectSpread(_objectSpread({}, others), {}, {
720
808
  onClick: function onClick() {
721
809
  onChange === null || onChange === void 0 ? void 0 : onChange(!checked);
@@ -738,12 +826,12 @@ SchemaSettings.SwitchItem = function SwitchItem(props) {
738
826
  SchemaSettings.PopupItem = function PopupItem(props) {
739
827
  var schema = props.schema,
740
828
  others = _objectWithoutProperties(props, _excluded6);
741
- var _useState7 = useState(false),
742
- _useState8 = _slicedToArray(_useState7, 2),
743
- visible = _useState8[0],
744
- setVisible = _useState8[1];
829
+ var _useState9 = useState(false),
830
+ _useState10 = _slicedToArray(_useState9, 2),
831
+ visible = _useState10[0],
832
+ setVisible = _useState10[1];
745
833
  var ctx = useContext(SchemaSettingsContext);
746
- return /*#__PURE__*/React.createElement(ActionContext.Provider, {
834
+ return /*#__PURE__*/React.createElement(ActionContextProvider, {
747
835
  value: {
748
836
  visible: visible,
749
837
  setVisible: setVisible
@@ -769,14 +857,14 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/React.memo(function (props) {
769
857
  modalTip = props.modalTip,
770
858
  components = props.components,
771
859
  others = _objectWithoutProperties(props, _excluded7);
772
- var _useState9 = useState(false),
773
- _useState10 = _slicedToArray(_useState9, 2),
774
- visible = _useState10[0],
775
- setVisible = _useState10[1];
776
- var _useState11 = useState(props.uid),
860
+ var _useState11 = useState(false),
777
861
  _useState12 = _slicedToArray(_useState11, 2),
778
- schemaUid = _useState12[0],
779
- setSchemaUid = _useState12[1];
862
+ visible = _useState12[0],
863
+ setVisible = _useState12[1];
864
+ var _useState13 = useState(props.uid),
865
+ _useState14 = _slicedToArray(_useState13, 2),
866
+ schemaUid = _useState14[0],
867
+ setSchemaUid = _useState14[1];
780
868
  var _useTranslation5 = useTranslation(),
781
869
  t = _useTranslation5.t;
782
870
  var fieldSchema = useFieldSchema();
@@ -795,7 +883,7 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/React.memo(function (props) {
795
883
  setVisible(false);
796
884
  };
797
885
  var submitHandler = /*#__PURE__*/function () {
798
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
886
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
799
887
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
800
888
  while (1) switch (_context7.prev = _context7.next) {
801
889
  case 0:
@@ -811,11 +899,11 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/React.memo(function (props) {
811
899
  }, _callee7);
812
900
  }));
813
901
  return function submitHandler() {
814
- return _ref.apply(this, arguments);
902
+ return _ref2.apply(this, arguments);
815
903
  };
816
904
  }();
817
905
  var openAssignedFieldValueHandler = /*#__PURE__*/function () {
818
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
906
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
819
907
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
820
908
  while (1) switch (_context8.prev = _context8.next) {
821
909
  case 0:
@@ -843,7 +931,7 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/React.memo(function (props) {
843
931
  }, _callee8);
844
932
  }));
845
933
  return function openAssignedFieldValueHandler() {
846
- return _ref2.apply(this, arguments);
934
+ return _ref3.apply(this, arguments);
847
935
  };
848
936
  }();
849
937
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SchemaSettings.Item, _objectSpread(_objectSpread({}, others), {}, {
@@ -863,7 +951,7 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/React.memo(function (props) {
863
951
  title: compile(title)
864
952
  }, others), {}, {
865
953
  destroyOnClose: true,
866
- visible: visible,
954
+ open: visible,
867
955
  onCancel: cancelHandler,
868
956
  footer: /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
869
957
  onClick: cancelHandler
@@ -886,6 +974,7 @@ SchemaSettings.ActionModalItem = /*#__PURE__*/React.memo(function (props) {
886
974
  schema: schema
887
975
  }))))), document.body));
888
976
  });
977
+ SchemaSettings.ActionModalItem.displayName = 'SchemaSettings.ActionModalItem';
889
978
  SchemaSettings.ModalItem = function ModalItem(props) {
890
979
  var hidden = props.hidden,
891
980
  title = props.title,
@@ -992,9 +1081,9 @@ SchemaSettings.BlockTitleItem = function BlockTitleItem() {
992
1081
  }
993
1082
  }
994
1083
  },
995
- onSubmit: function onSubmit(_ref3) {
1084
+ onSubmit: function onSubmit(_ref4) {
996
1085
  var _schema3;
997
- var title = _ref3.title;
1086
+ var title = _ref4.title;
998
1087
  var componentProps = fieldSchema['x-component-props'] || {};
999
1088
  componentProps.title = title;
1000
1089
  fieldSchema['x-component-props'] = componentProps;
@@ -1241,7 +1330,6 @@ SchemaSettings.EnableChildCollections = function EnableChildCollectionsItem(prop
1241
1330
  ArrayItems: ArrayItems,
1242
1331
  FormLayout: FormLayout
1243
1332
  },
1244
- width: 600,
1245
1333
  schema: {
1246
1334
  type: 'object',
1247
1335
  title: t('Enable child collections'),
@@ -10,5 +10,5 @@ declare type Props = {
10
10
  className?: string;
11
11
  style?: React.CSSProperties;
12
12
  };
13
- export declare const VariableInput: (props: Props) => JSX.Element;
13
+ export declare const VariableInput: (props: Props) => React.JSX.Element;
14
14
  export {};
@@ -11,7 +11,7 @@ export var VariableInput = function VariableInput(props) {
11
11
  var compile = useCompile();
12
12
  var userVariable = useUserVariable({
13
13
  schema: schema,
14
- level: 1
14
+ maxDepth: 1
15
15
  });
16
16
  var scope = useMemo(function () {
17
17
  return [userVariable, compile({
@@ -1,4 +1,15 @@
1
1
  export declare const useDateVariable: ({ operator, schema }: {
2
2
  operator: any;
3
3
  schema: any;
4
- }) => any;
4
+ }) => {
5
+ label: string;
6
+ value: string;
7
+ key: string;
8
+ disabled: boolean;
9
+ children: {
10
+ key: string;
11
+ value: string;
12
+ label: string;
13
+ disabled: boolean;
14
+ }[];
15
+ };