@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.
- package/.dumi/global.less +1 -0
- package/.dumi/theme/builtins/LangSwitch/index.tsx +11 -0
- package/.dumi/theme/builtins/Previewer/index.tsx +23 -0
- package/.dumirc.ts +56 -0
- package/contributing.md +1 -1
- package/docs/develop.md +5 -0
- package/{intro.md → docs/intro.md} +21 -27
- package/es/acl/ACLProvider.d.ts +6 -7
- package/es/acl/ACLProvider.js +6 -22
- package/es/acl/ACLShortcut.d.ts +2 -3
- package/es/acl/ACLShortcut.js +2 -61
- package/es/acl/Configuration/ConfigureCenter.d.ts +3 -2
- package/es/acl/Configuration/ConfigureCenter.js +7 -22
- package/es/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
- package/es/acl/Configuration/MenuConfigure.d.ts +2 -1
- package/es/acl/Configuration/MenuItemsProvider.d.ts +2 -1
- package/es/acl/Configuration/MenuItemsProvider.js +3 -3
- package/es/acl/Configuration/PermisionProvider.d.ts +2 -2
- package/es/acl/Configuration/RoleConfigure.d.ts +2 -1
- package/es/acl/Configuration/RoleTable.d.ts +2 -1
- package/es/acl/Configuration/ScopeSelect.d.ts +2 -1
- package/es/acl/Configuration/schemas/scopes.d.ts +1 -0
- package/es/antd-config-provider/index.d.ts +1 -1
- package/es/api-client/APIClient.d.ts +1 -1
- package/es/api-client/APIClientProvider.d.ts +2 -1
- package/es/api-client/hooks/assign.d.ts +0 -1
- package/es/api-client/hooks/assign.js +1 -7
- package/es/api-client/hooks/useRequest.d.ts +1 -1
- package/es/api-client/hooks/useRequest.js +1 -1
- package/es/appInfo/CurrentAppInfoProvider.d.ts +1 -1
- package/es/application/Application.d.ts +2 -1
- package/es/application/Application.js +5 -4
- package/es/application/compose.d.ts +2 -1
- package/es/application-v2/Application.d.ts +31 -0
- package/es/application-v2/Application.js +139 -0
- package/es/application-v2/Plugin.d.ts +14 -0
- package/es/application-v2/Plugin.js +92 -0
- package/es/application-v2/PluginManager.d.ts +19 -0
- package/es/application-v2/PluginManager.js +242 -0
- package/es/application-v2/Router.d.ts +13 -0
- package/es/application-v2/Router.js +103 -0
- package/es/application-v2/components/AppComponent.d.ts +2 -0
- package/es/application-v2/components/AppComponent.js +20 -0
- package/es/application-v2/components/MainComponent.d.ts +6 -0
- package/es/application-v2/components/MainComponent.js +13 -0
- package/es/application-v2/components/RouterProvider.d.ts +14 -0
- package/es/application-v2/components/RouterProvider.js +105 -0
- package/es/application-v2/components/index.d.ts +13 -0
- package/es/application-v2/components/index.js +13 -0
- package/es/application-v2/compose.d.ts +2 -0
- package/es/application-v2/compose.js +41 -0
- package/es/application-v2/context.d.ts +3 -0
- package/es/application-v2/context.js +2 -0
- package/es/application-v2/hooks/index.d.ts +3 -0
- package/es/application-v2/hooks/index.js +3 -0
- package/es/application-v2/hooks/useApp.d.ts +1 -0
- package/es/application-v2/hooks/useApp.js +5 -0
- package/es/application-v2/hooks/useLoad.d.ts +1 -0
- package/es/application-v2/hooks/useLoad.js +38 -0
- package/es/application-v2/hooks/useRouter.d.ts +1 -0
- package/es/application-v2/hooks/useRouter.js +5 -0
- package/es/application-v2/index.d.ts +3 -0
- package/es/application-v2/index.js +3 -0
- package/es/application-v2/types.d.ts +26 -0
- package/es/application-v2/types.js +1 -0
- package/es/async-data-provider/index.d.ts +1 -1
- package/es/auth/OptionsComponent.d.ts +7 -0
- package/es/auth/OptionsComponent.js +20 -0
- package/es/auth/SigninPage.d.ts +23 -0
- package/es/{settings-form/SettingsForm.js → auth/SigninPage.js} +116 -275
- package/es/auth/SigninPageExtension.d.ts +22 -0
- package/es/auth/SigninPageExtension.js +30 -0
- package/es/auth/SignupPage.d.ts +24 -0
- package/es/auth/SignupPage.js +82 -0
- package/es/auth/index.d.ts +4 -0
- package/es/auth/index.js +4 -0
- package/es/block-provider/BlockProvider.d.ts +4 -3
- package/es/block-provider/BlockProvider.js +23 -6
- package/es/block-provider/CalendarBlockProvider.d.ts +1 -1
- package/es/block-provider/DetailsBlockProvider.d.ts +1 -1
- package/es/block-provider/DetailsBlockProvider.js +1 -13
- package/es/block-provider/FilterFormBlockProvider.d.ts +2 -1
- package/es/block-provider/FormBlockProvider.d.ts +1 -1
- package/es/block-provider/FormBlockProvider.js +10 -21
- package/es/block-provider/FormFieldProvider.d.ts +1 -1
- package/es/block-provider/GanttBlockProvider.d.ts +1 -1
- package/es/block-provider/KanbanBlockProvider.d.ts +1 -1
- package/es/block-provider/TableBlockProvider.d.ts +1 -2
- package/es/block-provider/TableBlockProvider.js +57 -82
- package/es/block-provider/TableFieldProvider.d.ts +1 -1
- package/es/block-provider/TableSelectorProvider.d.ts +2 -2
- package/es/block-provider/hooks/index.d.ts +10 -1
- package/es/block-provider/hooks/index.js +53 -137
- package/es/block-provider/index.d.ts +1 -0
- package/es/block-provider/index.js +2 -1
- package/es/board/Card.d.ts +2 -2
- package/es/board/CardAdder.d.ts +2 -2
- package/es/board/CardForm.d.ts +2 -2
- package/es/board/Column.d.ts +3 -3
- package/es/board/ColumnAdder.d.ts +2 -2
- package/es/board/ColumnForm.d.ts +2 -2
- package/es/board/DefaultCard.d.ts +2 -2
- package/es/board/DefaultColumnHeader.d.ts +2 -2
- package/es/board/Kanban.d.ts +2 -2
- package/es/board/withDroppable.d.ts +2 -1
- package/es/china-region/index.d.ts +2 -1
- package/es/collection-manager/CollectionField.d.ts +1 -1
- package/es/collection-manager/CollectionField.js +2 -1
- package/es/collection-manager/CollectionManagerProvider.d.ts +2 -2
- package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -3
- package/es/collection-manager/CollectionManagerShortcut.js +3 -60
- package/es/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
- package/es/collection-manager/Configuration/AddCategoryAction.js +2 -2
- package/es/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
- package/es/collection-manager/Configuration/AddCollectionAction.js +33 -27
- package/es/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
- package/es/collection-manager/Configuration/AddFieldAction.js +46 -33
- package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
- package/es/collection-manager/Configuration/AddSubFieldAction.js +25 -20
- package/es/collection-manager/Configuration/CollectionFields.d.ts +2 -1
- package/es/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
- package/es/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
- package/es/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
- package/es/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
- package/es/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
- package/es/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
- package/es/collection-manager/Configuration/ConfigurationTabs.js +61 -50
- package/es/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
- package/es/collection-manager/Configuration/EditCategoryAction.js +2 -2
- package/es/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
- package/es/collection-manager/Configuration/EditCollectionAction.js +2 -2
- package/es/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
- package/es/collection-manager/Configuration/EditFieldAction.js +2 -2
- package/es/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
- package/es/collection-manager/Configuration/EditSubFieldAction.js +2 -2
- package/es/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
- package/es/collection-manager/Configuration/OverridingCollectionField.js +2 -2
- package/es/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
- package/es/collection-manager/Configuration/SyncFieldsAction.js +2 -2
- package/es/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
- package/es/collection-manager/Configuration/ViewInheritedField.js +2 -2
- package/es/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionCategory.js +2 -0
- package/es/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
- package/es/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
- package/es/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
- package/es/collection-manager/Configuration/components/FieldSummary.js +4 -2
- package/es/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
- package/es/collection-manager/Configuration/components/TemplateSummay.js +4 -2
- package/es/collection-manager/Configuration/components/index.d.ts +6 -6
- package/es/collection-manager/Configuration/components/index.js +12 -0
- package/es/collection-manager/Configuration/interfaces.d.ts +1 -0
- package/es/collection-manager/Configuration/templates.d.ts +1 -0
- package/es/collection-manager/ResourceActionProvider.d.ts +1 -1
- package/es/collection-manager/action-hooks.d.ts +1 -0
- package/es/collection-manager/action-hooks.js +168 -90
- package/es/collection-manager/hooks/useOptions.js +39 -36
- package/es/collection-manager/index.d.ts +1 -1
- package/es/collection-manager/index.js +1 -1
- package/es/collection-manager/interfaces/components/index.d.ts +7 -6
- package/es/collection-manager/interfaces/index.d.ts +0 -1
- package/es/collection-manager/interfaces/index.js +0 -1
- package/es/collection-manager/interfaces/integer.js +1 -1
- package/es/collection-manager/interfaces/number.js +3 -3
- package/es/collection-manager/interfaces/percent.js +3 -3
- package/es/collection-manager/interfaces/properties/index.d.ts +0 -1
- package/es/collection-manager/interfaces/properties/index.js +0 -40
- package/es/collection-manager/interfaces/url.js +0 -5
- package/es/collection-manager/sub-table.d.ts +2 -2
- package/es/collection-manager/sub-table.js +4 -0
- package/es/collection-manager/templates/components/PreviewFields.d.ts +1 -1
- package/es/collection-manager/templates/components/PreviewFields.js +2 -1
- package/es/collection-manager/templates/components/PreviewTable.d.ts +2 -1
- package/es/collection-manager/types.d.ts +2 -0
- package/es/filter-provider/FilterProvider.d.ts +5 -1
- package/es/filter-provider/FilterProvider.js +8 -3
- package/es/formula/Expression.d.ts +2 -1
- package/es/formula/Expression.js +66 -46
- package/es/formula/Result.d.ts +2 -1
- package/es/formula/index.d.ts +2 -2
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/useAdminSchemaUid.d.ts +1 -0
- package/es/hooks/useAdminSchemaUid.js +6 -0
- package/es/hooks/useMenuItem.d.ts +37 -0
- package/es/hooks/useMenuItem.js +90 -0
- package/es/hooks/useViewport.d.ts +1 -0
- package/es/hooks/useViewport.js +41 -0
- package/es/i18n/i18n.js +0 -1
- package/es/icon/Icon.d.ts +2 -1
- package/es/index.d.ts +3 -2
- package/es/index.js +3 -2
- package/es/locale/en_US.d.ts +19 -22
- package/es/locale/en_US.js +22 -25
- package/es/locale/es_ES.d.ts +4 -2
- package/es/locale/es_ES.js +5 -3
- package/es/locale/ja_JP.d.ts +19 -20
- package/es/locale/ja_JP.js +20 -21
- package/es/locale/pt_BR.d.ts +3 -1
- package/es/locale/pt_BR.js +4 -2
- package/es/locale/ru_RU.d.ts +3 -19
- package/es/locale/ru_RU.js +4 -20
- package/es/locale/tr_TR.d.ts +0 -17
- package/es/locale/tr_TR.js +0 -17
- package/es/locale/zh_CN.d.ts +28 -25
- package/es/locale/zh_CN.js +29 -26
- package/es/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
- package/es/plugin-manager/index.d.ts +1 -3
- package/es/plugin-manager/index.js +1 -3
- package/es/pm/Card.d.ts +8 -0
- package/es/pm/Card.js +364 -0
- package/es/pm/PluginManagerLink.d.ts +3 -2
- package/es/pm/PluginManagerLink.js +22 -18
- package/es/pm/index.d.ts +33 -3
- package/es/pm/index.js +117 -282
- package/es/powered-by/index.d.ts +2 -1
- package/es/route-switch/RouteSwitch.d.ts +2 -2
- package/es/route-switch/RouteSwitch.js +76 -45
- package/es/route-switch/RouteSwitchProvider.d.ts +3 -3
- package/es/route-switch/antd/admin-layout/index.d.ts +4 -2
- package/es/route-switch/antd/admin-layout/index.js +60 -56
- package/es/route-switch/antd/auth-layout/index.d.ts +2 -2
- package/es/route-switch/antd/auth-layout/index.js +2 -1
- package/es/route-switch/antd/route-schema-component/index.d.ts +2 -2
- package/es/route-switch/antd/route-schema-component/index.js +3 -3
- package/es/route-switch/context.d.ts +4 -0
- package/es/route-switch/context.js +5 -2
- package/es/route-switch/types.d.ts +2 -5
- package/es/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
- package/es/schema-component/antd/action/Action.Container.js +4 -0
- package/es/schema-component/antd/action/Action.Designer.d.ts +2 -1
- package/es/schema-component/antd/action/Action.Designer.js +204 -20
- package/es/schema-component/antd/action/Action.Drawer.js +14 -12
- package/es/schema-component/antd/action/Action.Link.js +3 -1
- package/es/schema-component/antd/action/Action.Modal.js +13 -12
- package/es/schema-component/antd/action/Action.Page.js +8 -2
- package/es/schema-component/antd/action/Action.js +26 -18
- package/es/schema-component/antd/action/ActionBar.d.ts +18 -2
- package/es/schema-component/antd/action/ActionBar.js +47 -21
- package/es/schema-component/antd/action/context.d.ts +8 -2
- package/es/schema-component/antd/action/context.js +15 -2
- package/es/schema-component/antd/action/hooks.d.ts +2 -0
- package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
- package/es/schema-component/antd/association-field/AssociationFieldProvider.js +57 -6
- package/es/schema-component/antd/association-field/AssociationSelect.js +89 -11
- package/es/schema-component/antd/association-field/Editable.d.ts +1 -1
- package/es/schema-component/antd/association-field/Editable.js +12 -11
- package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
- package/es/schema-component/antd/association-field/FileManager.js +14 -4
- package/es/schema-component/antd/association-field/InternalNester.d.ts +2 -1
- package/es/schema-component/antd/association-field/InternalNester.js +12 -1
- package/es/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
- package/es/schema-component/antd/association-field/InternalPicker.js +10 -4
- package/es/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
- package/es/schema-component/antd/association-field/InternalSubTable.js +35 -6
- package/es/schema-component/antd/association-field/InternalViewer.js +10 -3
- package/es/schema-component/antd/association-field/Nester.d.ts +2 -1
- package/es/schema-component/antd/association-field/Nester.js +58 -14
- package/es/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/association-field/ReadPretty.js +4 -0
- package/es/schema-component/antd/association-field/SubTable.js +53 -12
- package/es/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
- package/es/schema-component/antd/association-field/components/CreateRecordAction.js +4 -2
- package/es/schema-component/antd/association-field/schema.d.ts +3 -15
- package/es/schema-component/antd/association-field/schema.js +4 -16
- package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
- package/es/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/association-select/ReadPretty.js +2 -0
- package/es/schema-component/antd/block-item/BlockItem.js +6 -3
- package/es/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
- package/es/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
- package/es/schema-component/antd/calendar/Calendar.js +7 -5
- package/es/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
- package/es/schema-component/antd/calendar/DeleteEvent.js +3 -1
- package/es/schema-component/antd/calendar/Event.d.ts +1 -1
- package/es/schema-component/antd/calendar/Event.js +2 -0
- package/es/schema-component/antd/calendar/Nav.d.ts +1 -1
- package/es/schema-component/antd/calendar/Nav.js +5 -3
- package/es/schema-component/antd/calendar/Title.d.ts +1 -1
- package/es/schema-component/antd/calendar/Title.js +2 -0
- package/es/schema-component/antd/calendar/Today.d.ts +1 -1
- package/es/schema-component/antd/calendar/Today.js +4 -2
- package/es/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
- package/es/schema-component/antd/calendar/ViewSelect.js +3 -0
- package/es/schema-component/antd/calendar/components/Header.d.ts +2 -1
- package/es/schema-component/antd/card-item/CardItem.js +1 -1
- package/es/schema-component/antd/cascader/Cascader.js +8 -1
- package/es/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
- package/es/schema-component/antd/checkbox/Checkbox.js +14 -12
- package/es/schema-component/antd/collection-select/CollectionSelect.js +2 -0
- package/es/schema-component/antd/cron/Cron.d.ts +2 -1
- package/es/schema-component/antd/cron/Cron.js +3 -2
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
- package/es/schema-component/antd/date-picker/DatePicker.js +2 -1
- package/es/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/es/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
- package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
- package/es/schema-component/antd/expand-action/Expand.Action.Design.js +2 -2
- package/es/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
- package/es/schema-component/antd/expand-action/Expand.Action.js +3 -6
- package/es/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
- package/es/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
- package/es/schema-component/antd/filter/Filter.js +3 -1
- package/es/schema-component/antd/filter/FilterAction.d.ts +1 -1
- package/es/schema-component/antd/filter/FilterAction.js +3 -1
- package/es/schema-component/antd/filter/FilterItem.d.ts +1 -1
- package/es/schema-component/antd/filter/FilterItem.js +46 -41
- package/es/schema-component/antd/filter/FilterItems.d.ts +1 -1
- package/es/schema-component/antd/filter/FilterItems.js +2 -0
- package/es/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
- package/es/schema-component/antd/filter/index.d.ts +1 -0
- package/es/schema-component/antd/filter/index.js +1 -0
- package/es/schema-component/antd/filter/useValues.js +3 -3
- package/es/schema-component/antd/form/Form.Designer.d.ts +2 -1
- package/es/schema-component/antd/form/Form.d.ts +1 -1
- package/es/schema-component/antd/form/Form.js +2 -0
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
- package/es/schema-component/antd/form-item/FormItem.js +93 -38
- package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
- package/es/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
- package/es/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
- package/es/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
- package/es/schema-component/antd/form-v2/Form.js +9 -2
- package/es/schema-component/antd/form-v2/FormField.js +2 -0
- package/es/schema-component/antd/form-v2/Templates.d.ts +7 -1
- package/es/schema-component/antd/form-v2/Templates.js +20 -4
- package/es/schema-component/antd/form-v2/index.js +2 -0
- package/es/schema-component/antd/g2plot/G2Plot.js +2 -0
- package/es/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
- package/es/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
- package/es/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
- package/es/schema-component/antd/gantt/components/gantt/Event.js +2 -0
- package/es/schema-component/antd/gantt/components/gantt/gantt.js +2 -2
- package/es/schema-component/antd/grid/Block.d.ts +1 -1
- package/es/schema-component/antd/grid/Block.js +2 -0
- package/es/schema-component/antd/grid/Grid.js +25 -9
- package/es/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
- package/es/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
- package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.js +4 -5
- package/es/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
- package/es/schema-component/antd/grid-card/GridCard.d.ts +2 -1
- package/es/schema-component/antd/grid-card/GridCard.js +12 -8
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/index.js +1 -0
- package/es/schema-component/antd/index.less +18 -4
- package/es/schema-component/antd/input/Input.d.ts +2 -1
- package/es/schema-component/antd/input/Input.js +3 -2
- package/es/schema-component/antd/input/Json.d.ts +2 -2
- package/es/schema-component/antd/input/Json.js +43 -4
- package/es/schema-component/antd/input/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/input/ReadPretty.js +4 -4
- package/es/schema-component/antd/input-number/InputNumber.d.ts +5 -1
- package/es/schema-component/antd/input-number/InputNumber.js +2 -2
- package/es/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
- package/es/schema-component/antd/input-number/ReadPretty.js +6 -2
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
- package/es/schema-component/antd/kanban/Kanban.Card.js +5 -3
- package/es/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
- package/es/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
- package/es/schema-component/antd/kanban/Kanban.js +3 -1
- package/es/schema-component/antd/list/List.Decorator.d.ts +1 -1
- package/es/schema-component/antd/list/List.Decorator.js +7 -12
- package/es/schema-component/antd/list/List.Designer.d.ts +2 -1
- package/es/schema-component/antd/list/List.Item.d.ts +2 -1
- package/es/schema-component/antd/list/List.Item.js +1 -1
- package/es/schema-component/antd/list/List.d.ts +2 -1
- package/es/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
- package/es/schema-component/antd/markdown/Markdown.Void.js +2 -0
- package/es/schema-component/antd/markdown/Markdown.d.ts +2 -0
- package/es/schema-component/antd/markdown/Markdown.js +6 -2
- package/es/schema-component/antd/markdown/util.js +1 -1
- package/es/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
- package/es/schema-component/antd/menu/Menu.js +336 -177
- package/es/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
- package/es/schema-component/antd/page/FixedBlock.d.ts +2 -1
- package/es/schema-component/antd/page/FixedBlock.js +6 -2
- package/es/schema-component/antd/page/Page.d.ts +2 -1
- package/es/schema-component/antd/page/Page.js +53 -39
- package/es/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
- package/es/schema-component/antd/pagination/index.d.ts +1 -1
- package/es/schema-component/antd/pagination/index.js +2 -0
- package/es/schema-component/antd/password/Password.d.ts +1 -1
- package/es/schema-component/antd/password/PasswordStrength.js +1 -144
- package/es/schema-component/antd/password/utils.d.ts +1 -0
- package/es/schema-component/antd/password/utils.js +144 -0
- package/es/schema-component/antd/percent/Percent.js +1 -1
- package/es/schema-component/antd/preview/Preview.d.ts +1 -1
- package/es/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
- package/es/schema-component/antd/quick-edit/QuickEdit.js +88 -0
- package/es/schema-component/antd/quick-edit/index.d.ts +1 -0
- package/es/schema-component/antd/quick-edit/index.js +1 -0
- package/es/schema-component/antd/radio/Radio.d.ts +1 -1
- package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +5 -7
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +10 -4
- package/es/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/remote-select/ReadPretty.js +2 -0
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
- package/es/schema-component/antd/remote-select/RemoteSelect.js +111 -33
- package/es/schema-component/antd/remote-select/utils.d.ts +4 -0
- package/es/schema-component/antd/remote-select/utils.js +31 -0
- package/es/schema-component/antd/select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/select/ReadPretty.js +6 -6
- package/es/schema-component/antd/select/Select.d.ts +3 -0
- package/es/schema-component/antd/select/Select.js +22 -11
- package/es/schema-component/antd/select/index.d.ts +1 -1
- package/es/schema-component/antd/select/index.js +1 -1
- package/es/schema-component/antd/select/utils.d.ts +14 -0
- package/es/schema-component/antd/select/{shared.js → utils.js} +20 -18
- package/es/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
- package/es/schema-component/antd/table/Table.Array.d.ts +5 -5
- package/es/schema-component/antd/table/Table.Array.js +7 -5
- package/es/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
- package/es/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
- package/es/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
- package/es/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
- package/es/schema-component/antd/table/Table.Column.d.ts +2 -1
- package/es/schema-component/antd/table/Table.Designer.d.ts +2 -1
- package/es/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
- package/es/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
- package/es/schema-component/antd/table/Table.RowSelection.js +2 -0
- package/es/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
- package/es/schema-component/antd/table/Table.Void.d.ts +1 -1
- package/es/schema-component/antd/table/Table.Void.js +2 -0
- package/es/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
- package/es/schema-component/antd/table-v2/FilterDynamicComponent.js +17 -2
- package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
- package/es/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +148 -11
- package/es/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
- package/es/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
- package/es/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
- package/es/schema-component/antd/table-v2/Table.js +63 -30
- package/es/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
- package/es/schema-component/antd/table-v2/TableBlockDesigner.js +53 -47
- package/es/schema-component/antd/table-v2/TableField.js +4 -0
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
- package/es/schema-component/antd/table-v2/index.d.ts +1 -0
- package/es/schema-component/antd/table-v2/index.js +1 -0
- package/es/schema-component/antd/table-v2/utils.js +1 -1
- package/es/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
- package/es/schema-component/antd/tabs/Tabs.js +49 -18
- package/es/schema-component/antd/tabs/context.d.ts +8 -0
- package/es/schema-component/antd/tabs/context.js +15 -0
- package/es/schema-component/antd/tabs/index.d.ts +1 -0
- package/es/schema-component/antd/tabs/index.js +2 -1
- package/es/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/time-picker/ReadPretty.js +1 -1
- package/es/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
- package/es/schema-component/antd/time-picker/TimePicker.js +1 -1
- package/es/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/tree-select/ReadPretty.js +3 -1
- package/es/schema-component/antd/upload/ReadPretty.js +7 -3
- package/es/schema-component/antd/upload/Upload.js +1 -1
- package/es/schema-component/antd/upload/shared.d.ts +3 -3
- package/es/schema-component/antd/upload/style.less +1 -2
- package/es/schema-component/antd/upload/type.d.ts +2 -2
- package/es/schema-component/antd/variable/Input.d.ts +2 -2
- package/es/schema-component/antd/variable/Input.js +182 -31
- package/es/schema-component/antd/variable/JSONInput.d.ts +2 -2
- package/es/schema-component/antd/variable/JSONInput.js +2 -23
- package/es/schema-component/antd/variable/TextArea.d.ts +2 -2
- package/es/schema-component/antd/variable/VariableSelect.d.ts +2 -2
- package/es/schema-component/antd/variable/VariableSelect.js +1 -1
- package/es/schema-component/common/dnd-context/index.d.ts +1 -1
- package/es/schema-component/common/dnd-context/index.js +11 -4
- package/es/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
- package/es/schema-component/common/sortable-item/SortableItem.js +16 -5
- package/es/schema-component/common/utils/logic.js +64 -2
- package/es/schema-component/common/utils/uitls.d.ts +1 -0
- package/es/schema-component/common/utils/uitls.js +49 -15
- package/es/schema-component/core/DesignableSwitch.d.ts +2 -1
- package/es/schema-component/core/SchemaComponent.d.ts +2 -1
- package/es/schema-component/core/SchemaComponentOptions.js +13 -8
- package/es/schema-component/core/SchemaComponentProvider.js +17 -6
- package/es/schema-component/hooks/useCompile.js +33 -5
- package/es/schema-component/hooks/useDesignable.d.ts +5 -4
- package/es/schema-component/hooks/useDesignable.js +30 -28
- package/es/schema-component/hooks/useFieldModeOptions.js +45 -21
- package/es/schema-component/hooks/useProps.d.ts +1 -10
- package/es/schema-component/hooks/useProps.js +20 -6
- package/es/schema-initializer/SchemaInitializer.d.ts +18 -4
- package/es/schema-initializer/SchemaInitializer.js +278 -99
- package/es/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
- package/es/schema-initializer/SelectCollection.d.ts +3 -3
- package/es/schema-initializer/SelectCollection.js +19 -16
- package/es/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
- package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
- package/es/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
- package/es/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
- package/es/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
- package/es/schema-initializer/buttons/TabPaneInitializers.js +3 -3
- package/es/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
- package/es/schema-initializer/buttons/TableActionColumnInitializers.js +13 -4
- package/es/schema-initializer/buttons/TableActionInitializers.js +5 -5
- package/es/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/TableColumnInitializers.js +17 -9
- package/es/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
- package/es/schema-initializer/components/BulkEditField.d.ts +2 -1
- package/es/schema-initializer/components/CreateRecordAction.d.ts +2 -2
- package/es/schema-initializer/components/CreateRecordAction.js +43 -29
- package/es/schema-initializer/components/DeletedField.d.ts +2 -1
- package/es/schema-initializer/components/DuplicateAction.d.ts +3 -0
- package/es/schema-initializer/components/DuplicateAction.js +165 -0
- package/es/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
- package/es/schema-initializer/components/assigned-field/AssignedField.js +3 -2
- package/es/schema-initializer/components/index.d.ts +1 -0
- package/es/schema-initializer/components/index.js +2 -1
- package/es/schema-initializer/index.d.ts +1 -1
- package/es/schema-initializer/index.js +1 -1
- package/es/schema-initializer/items/ActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/BlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CalendarBlockInitializer.js +2 -2
- package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
- package/es/schema-initializer/items/DuplicateActionInitializer.js +61 -0
- package/es/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/ExpandActionInitializer.js +3 -3
- package/es/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
- package/es/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
- package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
- package/es/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
- package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
- package/es/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
- package/es/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
- package/es/schema-initializer/items/index.d.ts +1 -0
- package/es/schema-initializer/items/index.js +1 -0
- package/es/schema-initializer/utils.d.ts +13 -1
- package/es/schema-initializer/utils.js +110 -68
- package/es/schema-items/GeneralSchemaItems.js +5 -3
- package/es/schema-items/OpenModeSchemaItems.js +14 -10
- package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
- package/es/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
- package/es/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +2 -0
- package/es/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
- package/es/schema-settings/DataTemplates/components/Designer.js +2 -0
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -57
- package/es/schema-settings/EnableChildCollections/index.d.ts +1 -1
- package/es/schema-settings/EnableChildCollections/index.js +2 -0
- package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
- package/es/schema-settings/GeneralSchemaDesigner.js +3 -2
- package/es/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
- package/es/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
- package/es/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
- package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
- package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
- package/es/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
- package/es/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
- package/es/schema-settings/LinkageRules/index.d.ts +1 -1
- package/es/schema-settings/LinkageRules/index.js +3 -1
- package/es/schema-settings/SchemaSettings.d.ts +2 -1
- package/es/schema-settings/SchemaSettings.js +150 -62
- package/es/schema-settings/VariableInput/VariableInput.d.ts +1 -1
- package/es/schema-settings/VariableInput/VariableInput.js +1 -1
- package/es/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
- package/es/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
- package/es/schema-settings/VariableInput/hooks/useFormVariable.d.ts +19 -0
- package/es/schema-settings/VariableInput/hooks/useFormVariable.js +89 -0
- package/es/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +8 -0
- package/es/schema-settings/VariableInput/hooks/useIterationVariable.js +77 -0
- package/es/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
- package/es/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +5 -1
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.js +23 -3
- package/es/schema-settings/VariableInput/type.d.ts +28 -0
- package/es/schema-settings/VariableInput/type.js +1 -0
- package/es/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
- package/es/schema-templates/BlockTemplate.d.ts +1 -1
- package/es/schema-templates/BlockTemplate.js +4 -1
- package/es/schema-templates/BlockTemplateDetails.d.ts +2 -1
- package/es/schema-templates/BlockTemplateDetails.js +11 -7
- package/es/schema-templates/BlockTemplatePage.d.ts +3 -2
- package/es/schema-templates/BlockTemplatePage.js +4 -1
- package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
- package/es/schema-templates/SchemaTemplateManagerProvider.js +7 -0
- package/es/schema-templates/index.d.ts +0 -1
- package/es/schema-templates/index.js +1 -2
- package/es/system-settings/SystemSettingsProvider.d.ts +5 -3
- package/es/system-settings/SystemSettingsShortcut.d.ts +2 -3
- package/es/system-settings/SystemSettingsShortcut.js +33 -81
- package/es/test/collections.d.ts +1487 -0
- package/es/test/collections.js +1437 -0
- package/es/test/index.d.ts +3 -0
- package/es/test/index.js +3 -0
- package/es/test/mainCollections.d.ts +11359 -0
- package/es/test/mainCollections.js +3 -0
- package/es/test/mockAPIClient.d.ts +6 -0
- package/es/test/mockAPIClient.js +10 -0
- package/es/user/ChangePassword.d.ts +1 -1
- package/es/user/ChangePassword.js +30 -26
- package/es/user/CurrentUser.d.ts +7 -1
- package/es/user/CurrentUser.js +126 -88
- package/es/user/CurrentUserProvider.d.ts +1 -1
- package/es/user/CurrentUserProvider.js +4 -3
- package/es/user/EditProfile.d.ts +1 -1
- package/es/user/EditProfile.js +31 -25
- package/es/user/LanguageSettings.d.ts +1 -1
- package/es/user/LanguageSettings.js +67 -64
- package/es/user/SigninPage.d.ts +2 -1
- package/es/user/SigninPage.js +40 -29
- package/es/user/SigninPageExtension.d.ts +1 -1
- package/es/user/SignupPage.d.ts +2 -1
- package/es/user/SignupPage.js +5 -4
- package/es/user/SwitchRole.d.ts +1 -1
- package/es/user/SwitchRole.js +54 -51
- package/es/user/ThemeSettings.d.ts +1 -1
- package/es/user/ThemeSettings.js +56 -52
- package/es/user/VerificationCode.d.ts +2 -2
- package/es/user/index.d.ts +0 -3
- package/es/user/index.js +3 -3
- package/lib/acl/ACLProvider.d.ts +6 -7
- package/lib/acl/ACLProvider.js +6 -23
- package/lib/acl/ACLShortcut.d.ts +2 -3
- package/lib/acl/ACLShortcut.js +4 -64
- package/lib/acl/Configuration/ConfigureCenter.d.ts +3 -2
- package/lib/acl/Configuration/ConfigureCenter.js +8 -25
- package/lib/acl/Configuration/FilterDynamicComponent.d.ts +2 -2
- package/lib/acl/Configuration/MenuConfigure.d.ts +2 -1
- package/lib/acl/Configuration/MenuItemsProvider.d.ts +2 -1
- package/lib/acl/Configuration/MenuItemsProvider.js +3 -3
- package/lib/acl/Configuration/PermisionProvider.d.ts +2 -2
- package/lib/acl/Configuration/RoleConfigure.d.ts +2 -1
- package/lib/acl/Configuration/RoleTable.d.ts +2 -1
- package/lib/acl/Configuration/ScopeSelect.d.ts +2 -1
- package/lib/acl/Configuration/schemas/scopes.d.ts +1 -0
- package/lib/antd-config-provider/index.d.ts +1 -1
- package/lib/api-client/APIClient.d.ts +1 -1
- package/lib/api-client/APIClientProvider.d.ts +2 -1
- package/lib/api-client/hooks/assign.d.ts +0 -1
- package/lib/api-client/hooks/assign.js +3 -10
- package/lib/api-client/hooks/useRequest.d.ts +1 -1
- package/lib/api-client/hooks/useRequest.js +1 -1
- package/lib/appInfo/CurrentAppInfoProvider.d.ts +1 -1
- package/lib/application/Application.d.ts +2 -1
- package/lib/application/Application.js +7 -6
- package/lib/application/compose.d.ts +2 -1
- package/lib/application-v2/Application.d.ts +31 -0
- package/lib/application-v2/Application.js +147 -0
- package/lib/application-v2/Plugin.d.ts +14 -0
- package/lib/application-v2/Plugin.js +99 -0
- package/lib/application-v2/PluginManager.d.ts +19 -0
- package/lib/application-v2/PluginManager.js +249 -0
- package/lib/application-v2/Router.d.ts +13 -0
- package/lib/application-v2/Router.js +111 -0
- package/lib/application-v2/components/AppComponent.d.ts +2 -0
- package/lib/application-v2/components/AppComponent.js +28 -0
- package/lib/application-v2/components/MainComponent.d.ts +6 -0
- package/lib/application-v2/components/MainComponent.js +23 -0
- package/lib/application-v2/components/RouterProvider.d.ts +14 -0
- package/lib/application-v2/components/RouterProvider.js +115 -0
- package/lib/application-v2/components/index.d.ts +13 -0
- package/lib/application-v2/components/index.js +56 -0
- package/lib/application-v2/compose.d.ts +2 -0
- package/lib/application-v2/compose.js +49 -0
- package/lib/application-v2/context.d.ts +3 -0
- package/lib/application-v2/context.js +9 -0
- package/lib/application-v2/hooks/index.d.ts +3 -0
- package/lib/application-v2/hooks/index.js +38 -0
- package/lib/application-v2/hooks/useApp.d.ts +1 -0
- package/lib/application-v2/hooks/useApp.js +12 -0
- package/lib/application-v2/hooks/useLoad.d.ts +1 -0
- package/lib/application-v2/hooks/useLoad.js +45 -0
- package/lib/application-v2/hooks/useRouter.d.ts +1 -0
- package/lib/application-v2/hooks/useRouter.js +12 -0
- package/lib/application-v2/index.d.ts +3 -0
- package/lib/application-v2/index.js +38 -0
- package/lib/application-v2/types.d.ts +26 -0
- package/lib/application-v2/types.js +5 -0
- package/lib/async-data-provider/index.d.ts +1 -1
- package/lib/auth/OptionsComponent.d.ts +7 -0
- package/lib/auth/OptionsComponent.js +32 -0
- package/lib/auth/SigninPage.d.ts +23 -0
- package/lib/{settings-form/SettingsForm.js → auth/SigninPage.js} +121 -277
- package/lib/auth/SigninPageExtension.d.ts +22 -0
- package/lib/auth/SigninPageExtension.js +42 -0
- package/lib/auth/SignupPage.d.ts +24 -0
- package/lib/auth/SignupPage.js +94 -0
- package/lib/auth/index.d.ts +4 -0
- package/lib/auth/index.js +49 -0
- package/lib/block-provider/BlockProvider.d.ts +4 -3
- package/lib/block-provider/BlockProvider.js +23 -5
- package/lib/block-provider/CalendarBlockProvider.d.ts +1 -1
- package/lib/block-provider/DetailsBlockProvider.d.ts +1 -1
- package/lib/block-provider/DetailsBlockProvider.js +1 -13
- package/lib/block-provider/FilterFormBlockProvider.d.ts +2 -1
- package/lib/block-provider/FormBlockProvider.d.ts +1 -1
- package/lib/block-provider/FormBlockProvider.js +10 -21
- package/lib/block-provider/FormFieldProvider.d.ts +1 -1
- package/lib/block-provider/GanttBlockProvider.d.ts +1 -1
- package/lib/block-provider/KanbanBlockProvider.d.ts +1 -1
- package/lib/block-provider/TableBlockProvider.d.ts +1 -2
- package/lib/block-provider/TableBlockProvider.js +57 -84
- package/lib/block-provider/TableFieldProvider.d.ts +1 -1
- package/lib/block-provider/TableSelectorProvider.d.ts +2 -2
- package/lib/block-provider/hooks/index.d.ts +10 -1
- package/lib/block-provider/hooks/index.js +50 -134
- package/lib/block-provider/index.d.ts +1 -0
- package/lib/block-provider/index.js +11 -0
- package/lib/board/Card.d.ts +2 -2
- package/lib/board/CardAdder.d.ts +2 -2
- package/lib/board/CardForm.d.ts +2 -2
- package/lib/board/Column.d.ts +3 -3
- package/lib/board/ColumnAdder.d.ts +2 -2
- package/lib/board/ColumnForm.d.ts +2 -2
- package/lib/board/DefaultCard.d.ts +2 -2
- package/lib/board/DefaultColumnHeader.d.ts +2 -2
- package/lib/board/Kanban.d.ts +2 -2
- package/lib/board/withDroppable.d.ts +2 -1
- package/lib/china-region/index.d.ts +2 -1
- package/lib/collection-manager/CollectionField.d.ts +1 -1
- package/lib/collection-manager/CollectionField.js +2 -1
- package/lib/collection-manager/CollectionManagerProvider.d.ts +2 -2
- package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -3
- package/lib/collection-manager/CollectionManagerShortcut.js +4 -63
- package/lib/collection-manager/Configuration/AddCategoryAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/AddCategoryAction.js +1 -1
- package/lib/collection-manager/Configuration/AddCollectionAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/AddCollectionAction.js +30 -24
- package/lib/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/AddFieldAction.js +43 -30
- package/lib/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +22 -17
- package/lib/collection-manager/Configuration/CollectionFields.d.ts +2 -1
- package/lib/collection-manager/Configuration/CollectionFieldsTable.d.ts +2 -2
- package/lib/collection-manager/Configuration/CollectionFieldsTable.js +3 -1
- package/lib/collection-manager/Configuration/CollectionFieldsTableArray.d.ts +2 -2
- package/lib/collection-manager/Configuration/CollectionFieldsTableArray.js +3 -1
- package/lib/collection-manager/Configuration/ConfigurationTable.d.ts +2 -1
- package/lib/collection-manager/Configuration/ConfigurationTabs.d.ts +2 -1
- package/lib/collection-manager/Configuration/ConfigurationTabs.js +61 -49
- package/lib/collection-manager/Configuration/EditCategoryAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/EditCategoryAction.js +1 -1
- package/lib/collection-manager/Configuration/EditCollectionAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/EditCollectionAction.js +1 -1
- package/lib/collection-manager/Configuration/EditFieldAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
- package/lib/collection-manager/Configuration/EditSubFieldAction.d.ts +2 -1
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +1 -1
- package/lib/collection-manager/Configuration/OverridingCollectionField.d.ts +3 -2
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +1 -1
- package/lib/collection-manager/Configuration/SyncFieldsAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +1 -1
- package/lib/collection-manager/Configuration/ViewInheritedField.d.ts +3 -2
- package/lib/collection-manager/Configuration/ViewInheritedField.js +1 -1
- package/lib/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
- package/lib/collection-manager/Configuration/components/CollectionCategory.js +2 -0
- package/lib/collection-manager/Configuration/components/CollectionFieldInterface.d.ts +1 -1
- package/lib/collection-manager/Configuration/components/CollectionFieldInterface.js +2 -0
- package/lib/collection-manager/Configuration/components/CollectionTemplate.d.ts +1 -1
- package/lib/collection-manager/Configuration/components/CollectionTemplate.js +2 -0
- package/lib/collection-manager/Configuration/components/FieldSummary.d.ts +1 -1
- package/lib/collection-manager/Configuration/components/FieldSummary.js +4 -2
- package/lib/collection-manager/Configuration/components/TemplateSummay.d.ts +1 -1
- package/lib/collection-manager/Configuration/components/TemplateSummay.js +4 -2
- package/lib/collection-manager/Configuration/components/index.d.ts +6 -6
- package/lib/collection-manager/Configuration/components/index.js +12 -0
- package/lib/collection-manager/Configuration/interfaces.d.ts +1 -0
- package/lib/collection-manager/Configuration/templates.d.ts +1 -0
- package/lib/collection-manager/ResourceActionProvider.d.ts +1 -1
- package/lib/collection-manager/action-hooks.d.ts +1 -0
- package/lib/collection-manager/action-hooks.js +171 -92
- package/lib/collection-manager/hooks/useOptions.js +39 -36
- package/lib/collection-manager/index.d.ts +1 -1
- package/lib/collection-manager/index.js +7 -0
- package/lib/collection-manager/interfaces/components/index.d.ts +7 -6
- package/lib/collection-manager/interfaces/index.d.ts +0 -1
- package/lib/collection-manager/interfaces/index.js +0 -11
- package/lib/collection-manager/interfaces/integer.js +1 -1
- package/lib/collection-manager/interfaces/number.js +3 -3
- package/lib/collection-manager/interfaces/percent.js +3 -3
- package/lib/collection-manager/interfaces/properties/index.d.ts +0 -1
- package/lib/collection-manager/interfaces/properties/index.js +1 -42
- package/lib/collection-manager/interfaces/url.js +0 -5
- package/lib/collection-manager/sub-table.d.ts +2 -2
- package/lib/collection-manager/sub-table.js +4 -0
- package/lib/collection-manager/templates/components/PreviewFields.d.ts +1 -1
- package/lib/collection-manager/templates/components/PreviewFields.js +2 -1
- package/lib/collection-manager/templates/components/PreviewTable.d.ts +2 -1
- package/lib/collection-manager/types.d.ts +2 -0
- package/lib/filter-provider/FilterProvider.d.ts +5 -1
- package/lib/filter-provider/FilterProvider.js +9 -4
- package/lib/formula/Expression.d.ts +2 -1
- package/lib/formula/Expression.js +64 -44
- package/lib/formula/Result.d.ts +2 -1
- package/lib/formula/index.d.ts +2 -2
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +27 -0
- package/lib/hooks/useAdminSchemaUid.d.ts +1 -0
- package/lib/hooks/useAdminSchemaUid.js +13 -0
- package/lib/hooks/useMenuItem.d.ts +37 -0
- package/lib/hooks/useMenuItem.js +104 -0
- package/lib/hooks/useViewport.d.ts +1 -0
- package/lib/hooks/useViewport.js +47 -0
- package/lib/i18n/i18n.js +0 -1
- package/lib/icon/Icon.d.ts +2 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +33 -22
- package/lib/locale/en_US.d.ts +19 -22
- package/lib/locale/en_US.js +22 -25
- package/lib/locale/es_ES.d.ts +4 -2
- package/lib/locale/es_ES.js +5 -3
- package/lib/locale/ja_JP.d.ts +19 -20
- package/lib/locale/ja_JP.js +20 -21
- package/lib/locale/pt_BR.d.ts +3 -1
- package/lib/locale/pt_BR.js +4 -2
- package/lib/locale/ru_RU.d.ts +3 -19
- package/lib/locale/ru_RU.js +4 -20
- package/lib/locale/tr_TR.d.ts +0 -17
- package/lib/locale/tr_TR.js +0 -17
- package/lib/locale/zh_CN.d.ts +28 -25
- package/lib/locale/zh_CN.js +29 -26
- package/lib/plugin-manager/PinnedPluginListProvider.d.ts +1 -1
- package/lib/plugin-manager/index.d.ts +1 -3
- package/lib/plugin-manager/index.js +4 -26
- package/lib/pm/Card.d.ts +8 -0
- package/lib/pm/Card.js +375 -0
- package/lib/pm/PluginManagerLink.d.ts +3 -2
- package/lib/pm/PluginManagerLink.js +19 -14
- package/lib/pm/index.d.ts +33 -3
- package/lib/pm/index.js +113 -278
- package/lib/powered-by/index.d.ts +2 -1
- package/lib/route-switch/RouteSwitch.d.ts +2 -2
- package/lib/route-switch/RouteSwitch.js +78 -45
- package/lib/route-switch/RouteSwitchProvider.d.ts +3 -3
- package/lib/route-switch/antd/admin-layout/index.d.ts +4 -2
- package/lib/route-switch/antd/admin-layout/index.js +59 -54
- package/lib/route-switch/antd/auth-layout/index.d.ts +2 -2
- package/lib/route-switch/antd/auth-layout/index.js +2 -1
- package/lib/route-switch/antd/route-schema-component/index.d.ts +2 -2
- package/lib/route-switch/antd/route-schema-component/index.js +2 -2
- package/lib/route-switch/context.d.ts +4 -0
- package/lib/route-switch/context.js +6 -2
- package/lib/route-switch/types.d.ts +2 -5
- package/lib/schema-component/antd/AntdSchemaComponentProvider.d.ts +2 -1
- package/lib/schema-component/antd/action/Action.Container.js +4 -0
- package/lib/schema-component/antd/action/Action.Designer.d.ts +2 -1
- package/lib/schema-component/antd/action/Action.Designer.js +201 -17
- package/lib/schema-component/antd/action/Action.Drawer.js +14 -12
- package/lib/schema-component/antd/action/Action.Link.js +3 -1
- package/lib/schema-component/antd/action/Action.Modal.js +13 -12
- package/lib/schema-component/antd/action/Action.Page.js +8 -2
- package/lib/schema-component/antd/action/Action.js +25 -17
- package/lib/schema-component/antd/action/ActionBar.d.ts +18 -2
- package/lib/schema-component/antd/action/ActionBar.js +50 -21
- package/lib/schema-component/antd/action/context.d.ts +8 -2
- package/lib/schema-component/antd/action/context.js +19 -3
- package/lib/schema-component/antd/action/hooks.d.ts +2 -0
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +1 -1
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +56 -6
- package/lib/schema-component/antd/association-field/AssociationSelect.js +88 -9
- package/lib/schema-component/antd/association-field/Editable.d.ts +1 -1
- package/lib/schema-component/antd/association-field/Editable.js +12 -11
- package/lib/schema-component/antd/association-field/FileManager.d.ts +1 -1
- package/lib/schema-component/antd/association-field/FileManager.js +13 -3
- package/lib/schema-component/antd/association-field/InternalNester.d.ts +2 -1
- package/lib/schema-component/antd/association-field/InternalNester.js +11 -1
- package/lib/schema-component/antd/association-field/InternalPicker.d.ts +1 -1
- package/lib/schema-component/antd/association-field/InternalPicker.js +9 -3
- package/lib/schema-component/antd/association-field/InternalSubTable.d.ts +2 -1
- package/lib/schema-component/antd/association-field/InternalSubTable.js +32 -4
- package/lib/schema-component/antd/association-field/InternalViewer.js +9 -2
- package/lib/schema-component/antd/association-field/Nester.d.ts +2 -1
- package/lib/schema-component/antd/association-field/Nester.js +56 -12
- package/lib/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/association-field/ReadPretty.js +4 -0
- package/lib/schema-component/antd/association-field/SubTable.js +53 -12
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.d.ts +1 -1
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +3 -1
- package/lib/schema-component/antd/association-field/schema.d.ts +3 -15
- package/lib/schema-component/antd/association-field/schema.js +4 -16
- package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilter.FilterBlockInitializer.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilter.d.ts +7 -6
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.d.ts +2 -1
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.d.ts +2 -1
- package/lib/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/association-select/ReadPretty.js +2 -0
- package/lib/schema-component/antd/block-item/BlockItem.js +5 -2
- package/lib/schema-component/antd/block-item/TestDesigner.d.ts +2 -1
- package/lib/schema-component/antd/calendar/Calendar.Designer.d.ts +2 -1
- package/lib/schema-component/antd/calendar/Calendar.js +5 -3
- package/lib/schema-component/antd/calendar/DeleteEvent.d.ts +1 -1
- package/lib/schema-component/antd/calendar/DeleteEvent.js +3 -1
- package/lib/schema-component/antd/calendar/Event.d.ts +1 -1
- package/lib/schema-component/antd/calendar/Event.js +2 -0
- package/lib/schema-component/antd/calendar/Nav.d.ts +1 -1
- package/lib/schema-component/antd/calendar/Nav.js +5 -3
- package/lib/schema-component/antd/calendar/Title.d.ts +1 -1
- package/lib/schema-component/antd/calendar/Title.js +2 -0
- package/lib/schema-component/antd/calendar/Today.d.ts +1 -1
- package/lib/schema-component/antd/calendar/Today.js +4 -2
- package/lib/schema-component/antd/calendar/ViewSelect.d.ts +1 -1
- package/lib/schema-component/antd/calendar/ViewSelect.js +3 -0
- package/lib/schema-component/antd/calendar/components/Header.d.ts +2 -1
- package/lib/schema-component/antd/card-item/CardItem.js +1 -1
- package/lib/schema-component/antd/cascader/Cascader.js +8 -1
- package/lib/schema-component/antd/checkbox/Checkbox.d.ts +2 -1
- package/lib/schema-component/antd/checkbox/Checkbox.js +14 -12
- package/lib/schema-component/antd/collection-select/CollectionSelect.js +2 -0
- package/lib/schema-component/antd/cron/Cron.d.ts +2 -1
- package/lib/schema-component/antd/cron/Cron.js +3 -2
- package/lib/schema-component/antd/date-picker/DatePicker.d.ts +4 -2
- package/lib/schema-component/antd/date-picker/DatePicker.js +2 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/lib/schema-component/antd/error-fallback/ErrorFallback.d.ts +2 -1
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.d.ts +2 -1
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +8 -8
- package/lib/schema-component/antd/expand-action/Expand.Action.d.ts +2 -1
- package/lib/schema-component/antd/expand-action/Expand.Action.js +9 -12
- package/lib/schema-component/antd/filter/DynamicComponent.d.ts +2 -1
- package/lib/schema-component/antd/filter/Filter.Action.Designer.d.ts +2 -1
- package/lib/schema-component/antd/filter/Filter.js +3 -1
- package/lib/schema-component/antd/filter/FilterAction.d.ts +1 -1
- package/lib/schema-component/antd/filter/FilterAction.js +3 -1
- package/lib/schema-component/antd/filter/FilterItem.d.ts +1 -1
- package/lib/schema-component/antd/filter/FilterItem.js +46 -41
- package/lib/schema-component/antd/filter/FilterItems.d.ts +1 -1
- package/lib/schema-component/antd/filter/FilterItems.js +2 -0
- package/lib/schema-component/antd/filter/SaveDefaultValue.d.ts +2 -1
- package/lib/schema-component/antd/filter/index.d.ts +1 -0
- package/lib/schema-component/antd/filter/index.js +11 -0
- package/lib/schema-component/antd/filter/useValues.js +5 -3
- package/lib/schema-component/antd/form/Form.Designer.d.ts +2 -1
- package/lib/schema-component/antd/form/Form.d.ts +1 -1
- package/lib/schema-component/antd/form/Form.js +2 -0
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.d.ts +2 -1
- package/lib/schema-component/antd/form-item/FormItem.js +95 -40
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.d.ts +11 -10
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +1 -1
- package/lib/schema-component/antd/form-v2/Form.Designer.d.ts +4 -3
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.d.ts +2 -1
- package/lib/schema-component/antd/form-v2/Form.js +8 -1
- package/lib/schema-component/antd/form-v2/FormField.js +2 -0
- package/lib/schema-component/antd/form-v2/Templates.d.ts +7 -1
- package/lib/schema-component/antd/form-v2/Templates.js +20 -3
- package/lib/schema-component/antd/form-v2/index.js +3 -1
- package/lib/schema-component/antd/g2plot/G2Plot.js +2 -0
- package/lib/schema-component/antd/g2plot/G2PlotDesigner.d.ts +2 -1
- package/lib/schema-component/antd/gantt/Gantt.Designer.d.ts +2 -1
- package/lib/schema-component/antd/gantt/components/gantt/Event.d.ts +1 -1
- package/lib/schema-component/antd/gantt/components/gantt/Event.js +2 -0
- package/lib/schema-component/antd/gantt/components/gantt/gantt.js +1 -1
- package/lib/schema-component/antd/grid/Block.d.ts +1 -1
- package/lib/schema-component/antd/grid/Block.js +2 -0
- package/lib/schema-component/antd/grid/Grid.js +25 -9
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.d.ts +1 -1
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -12
- package/lib/schema-component/antd/grid-card/GridCard.Designer.d.ts +2 -1
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +5 -6
- package/lib/schema-component/antd/grid-card/GridCard.Item.d.ts +2 -1
- package/lib/schema-component/antd/grid-card/GridCard.d.ts +2 -1
- package/lib/schema-component/antd/grid-card/GridCard.js +11 -7
- package/lib/schema-component/antd/index.d.ts +1 -0
- package/lib/schema-component/antd/index.js +11 -0
- package/lib/schema-component/antd/index.less +18 -4
- package/lib/schema-component/antd/input/Input.d.ts +2 -1
- package/lib/schema-component/antd/input/Input.js +3 -2
- package/lib/schema-component/antd/input/Json.d.ts +2 -2
- package/lib/schema-component/antd/input/Json.js +49 -9
- package/lib/schema-component/antd/input/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/input/ReadPretty.js +4 -4
- package/lib/schema-component/antd/input-number/InputNumber.d.ts +5 -1
- package/lib/schema-component/antd/input-number/InputNumber.js +1 -1
- package/lib/schema-component/antd/input-number/ReadPretty.d.ts +2 -2
- package/lib/schema-component/antd/input-number/ReadPretty.js +6 -2
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.TitleSwitch.d.ts +2 -1
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.d.ts +2 -1
- package/lib/schema-component/antd/kanban/Kanban.Card.js +4 -2
- package/lib/schema-component/antd/kanban/Kanban.CardViewer.js +2 -0
- package/lib/schema-component/antd/kanban/Kanban.Designer.d.ts +2 -1
- package/lib/schema-component/antd/kanban/Kanban.js +3 -1
- package/lib/schema-component/antd/list/List.Decorator.d.ts +1 -1
- package/lib/schema-component/antd/list/List.Decorator.js +8 -13
- package/lib/schema-component/antd/list/List.Designer.d.ts +2 -1
- package/lib/schema-component/antd/list/List.Item.d.ts +2 -1
- package/lib/schema-component/antd/list/List.Item.js +1 -1
- package/lib/schema-component/antd/list/List.d.ts +2 -1
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.d.ts +2 -1
- package/lib/schema-component/antd/markdown/Markdown.Void.js +2 -0
- package/lib/schema-component/antd/markdown/Markdown.d.ts +2 -0
- package/lib/schema-component/antd/markdown/Markdown.js +9 -4
- package/lib/schema-component/antd/markdown/util.js +1 -1
- package/lib/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
- package/lib/schema-component/antd/menu/Menu.js +334 -175
- package/lib/schema-component/antd/menu/MenuItemInitializers/index.d.ts +2 -1
- package/lib/schema-component/antd/page/FixedBlock.d.ts +2 -1
- package/lib/schema-component/antd/page/FixedBlock.js +6 -2
- package/lib/schema-component/antd/page/Page.d.ts +2 -1
- package/lib/schema-component/antd/page/Page.js +51 -37
- package/lib/schema-component/antd/page/PageTabDesigner.d.ts +3 -2
- package/lib/schema-component/antd/pagination/index.d.ts +1 -1
- package/lib/schema-component/antd/pagination/index.js +2 -0
- package/lib/schema-component/antd/password/Password.d.ts +1 -1
- package/lib/schema-component/antd/password/PasswordStrength.js +2 -145
- package/lib/schema-component/antd/password/utils.d.ts +1 -0
- package/lib/schema-component/antd/password/utils.js +151 -0
- package/lib/schema-component/antd/percent/Percent.js +2 -2
- package/lib/schema-component/antd/preview/Preview.d.ts +1 -1
- package/lib/schema-component/antd/quick-edit/QuickEdit.d.ts +3 -0
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +98 -0
- package/lib/schema-component/antd/quick-edit/index.d.ts +1 -0
- package/lib/{settings-form → schema-component/antd/quick-edit}/index.js +4 -4
- package/lib/schema-component/antd/radio/Radio.d.ts +1 -1
- package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -1
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +4 -6
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +9 -4
- package/lib/schema-component/antd/remote-select/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/remote-select/ReadPretty.js +2 -0
- package/lib/schema-component/antd/remote-select/RemoteSelect.d.ts +2 -0
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +108 -30
- package/lib/schema-component/antd/remote-select/utils.d.ts +4 -0
- package/lib/schema-component/antd/remote-select/utils.js +41 -0
- package/lib/schema-component/antd/select/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/select/ReadPretty.js +7 -7
- package/lib/schema-component/antd/select/Select.d.ts +3 -0
- package/lib/schema-component/antd/select/Select.js +23 -12
- package/lib/schema-component/antd/select/index.d.ts +1 -1
- package/lib/schema-component/antd/select/index.js +4 -4
- package/lib/schema-component/antd/select/utils.d.ts +14 -0
- package/lib/schema-component/antd/select/{shared.js → utils.js} +22 -20
- package/lib/schema-component/antd/table/Table.Array.Designer.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.Array.d.ts +5 -5
- package/lib/schema-component/antd/table/Table.Array.js +7 -5
- package/lib/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
- package/lib/schema-component/antd/table/Table.Column.ActionBar.js +2 -0
- package/lib/schema-component/antd/table/Table.Column.Decorator.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.Column.Designer.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.Column.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.Designer.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.RowActionDesigner.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.RowSelection.d.ts +1 -1
- package/lib/schema-component/antd/table/Table.RowSelection.js +2 -0
- package/lib/schema-component/antd/table/Table.Void.Designer.d.ts +2 -1
- package/lib/schema-component/antd/table/Table.Void.d.ts +1 -1
- package/lib/schema-component/antd/table/Table.Void.js +2 -0
- package/lib/schema-component/antd/table-v2/FilterDynamicComponent.d.ts +2 -2
- package/lib/schema-component/antd/table-v2/FilterDynamicComponent.js +17 -2
- package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +2 -0
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +146 -9
- package/lib/schema-component/antd/table-v2/Table.Column.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/Table.Designer.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/Table.Index.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/Table.js +61 -28
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +54 -47
- package/lib/schema-component/antd/table-v2/TableField.js +4 -0
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.d.ts +2 -1
- package/lib/schema-component/antd/table-v2/index.d.ts +1 -0
- package/lib/schema-component/antd/table-v2/index.js +12 -0
- package/lib/schema-component/antd/table-v2/utils.js +1 -1
- package/lib/schema-component/antd/tabs/Tabs.Designer.d.ts +2 -1
- package/lib/schema-component/antd/tabs/Tabs.js +51 -18
- package/lib/schema-component/antd/tabs/context.d.ts +8 -0
- package/lib/schema-component/antd/tabs/context.js +24 -0
- package/lib/schema-component/antd/tabs/index.d.ts +1 -0
- package/lib/schema-component/antd/tabs/index.js +11 -0
- package/lib/schema-component/antd/time-picker/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/time-picker/ReadPretty.js +1 -1
- package/lib/schema-component/antd/time-picker/TimePicker.d.ts +1 -1
- package/lib/schema-component/antd/time-picker/TimePicker.js +1 -1
- package/lib/schema-component/antd/tree-select/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/tree-select/ReadPretty.js +3 -1
- package/lib/schema-component/antd/upload/ReadPretty.js +7 -3
- package/lib/schema-component/antd/upload/Upload.js +1 -1
- package/lib/schema-component/antd/upload/shared.d.ts +3 -3
- package/lib/schema-component/antd/upload/style.less +1 -2
- package/lib/schema-component/antd/upload/type.d.ts +2 -2
- package/lib/schema-component/antd/variable/Input.d.ts +2 -2
- package/lib/schema-component/antd/variable/Input.js +183 -31
- package/lib/schema-component/antd/variable/JSONInput.d.ts +2 -2
- package/lib/schema-component/antd/variable/JSONInput.js +2 -23
- package/lib/schema-component/antd/variable/TextArea.d.ts +2 -2
- package/lib/schema-component/antd/variable/VariableSelect.d.ts +2 -2
- package/lib/schema-component/antd/variable/VariableSelect.js +1 -1
- package/lib/schema-component/common/dnd-context/index.d.ts +1 -1
- package/lib/schema-component/common/dnd-context/index.js +11 -4
- package/lib/schema-component/common/sortable-item/SortableItem.d.ts +11 -4
- package/lib/schema-component/common/sortable-item/SortableItem.js +16 -5
- package/lib/schema-component/common/utils/logic.js +64 -2
- package/lib/schema-component/common/utils/uitls.d.ts +1 -0
- package/lib/schema-component/common/utils/uitls.js +50 -14
- package/lib/schema-component/core/DesignableSwitch.d.ts +2 -1
- package/lib/schema-component/core/SchemaComponent.d.ts +2 -1
- package/lib/schema-component/core/SchemaComponentOptions.js +12 -7
- package/lib/schema-component/core/SchemaComponentProvider.js +17 -6
- package/lib/schema-component/hooks/useCompile.js +32 -4
- package/lib/schema-component/hooks/useDesignable.d.ts +5 -4
- package/lib/schema-component/hooks/useDesignable.js +30 -28
- package/lib/schema-component/hooks/useFieldModeOptions.js +44 -20
- package/lib/schema-component/hooks/useProps.d.ts +1 -10
- package/lib/schema-component/hooks/useProps.js +20 -6
- package/lib/schema-initializer/SchemaInitializer.d.ts +18 -4
- package/lib/schema-initializer/SchemaInitializer.js +275 -96
- package/lib/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
- package/lib/schema-initializer/SelectCollection.d.ts +3 -3
- package/lib/schema-initializer/SelectCollection.js +22 -17
- package/lib/schema-initializer/buttons/BlockInitializers.d.ts +2 -0
- package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/CreateFormBlockInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/DetailsActionInitializers.d.ts +14 -0
- package/lib/schema-initializer/buttons/DetailsActionInitializers.js +12 -0
- package/lib/schema-initializer/buttons/FormItemInitializers.d.ts +3 -2
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +16 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +21 -16
- package/lib/schema-initializer/buttons/ReadPrettyFormItemInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/RecordBlockInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/RecordFormBlockInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +4 -3
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +3 -3
- package/lib/schema-initializer/buttons/TableActionColumnInitializers.d.ts +3 -2
- package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +13 -4
- package/lib/schema-initializer/buttons/TableActionInitializers.js +5 -5
- package/lib/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/TableColumnInitializers.js +17 -9
- package/lib/schema-initializer/buttons/TableSelectorInitializers.d.ts +2 -1
- package/lib/schema-initializer/components/BulkEditField.d.ts +2 -1
- package/lib/schema-initializer/components/CreateRecordAction.d.ts +2 -2
- package/lib/schema-initializer/components/CreateRecordAction.js +40 -26
- package/lib/schema-initializer/components/DeletedField.d.ts +2 -1
- package/lib/schema-initializer/components/DuplicateAction.d.ts +3 -0
- package/lib/schema-initializer/components/DuplicateAction.js +174 -0
- package/lib/schema-initializer/components/assigned-field/AssignedField.d.ts +2 -1
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +3 -2
- package/lib/schema-initializer/components/index.d.ts +1 -0
- package/lib/schema-initializer/components/index.js +11 -0
- package/lib/schema-initializer/index.d.ts +1 -1
- package/lib/schema-initializer/index.js +7 -0
- package/lib/schema-initializer/items/ActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/BlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CalendarBlockInitializer.js +9 -9
- package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateChildInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateFilterActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateResetActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/DataBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/DeleteEventActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/DuplicateActionInitializer.d.ts +2 -0
- package/lib/schema-initializer/items/DuplicateActionInitializer.js +69 -0
- package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/ExpandActionInitializer.js +3 -3
- package/lib/schema-initializer/items/FilterActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/FilterBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/FilterCollapseBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/FilterFormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/FormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/G2PlotInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/GanttBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/GridCardBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +2 -1
- package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/ListBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/PrintActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/SelectActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/TableBlockInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/ViewActionInitializer.d.ts +2 -1
- package/lib/schema-initializer/items/index.d.ts +1 -0
- package/lib/schema-initializer/items/index.js +11 -0
- package/lib/schema-initializer/utils.d.ts +13 -1
- package/lib/schema-initializer/utils.js +111 -68
- package/lib/schema-items/GeneralSchemaItems.js +5 -3
- package/lib/schema-items/OpenModeSchemaItems.js +14 -10
- package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -1
- package/lib/schema-settings/DataTemplates/FormDataTemplates.js +8 -6
- package/lib/schema-settings/DataTemplates/TreeLabel.d.ts +2 -1
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +2 -0
- package/lib/schema-settings/DataTemplates/components/Designer.d.ts +1 -1
- package/lib/schema-settings/DataTemplates/components/Designer.js +2 -0
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +3 -3
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +38 -58
- package/lib/schema-settings/EnableChildCollections/index.d.ts +1 -1
- package/lib/schema-settings/EnableChildCollections/index.js +2 -0
- package/lib/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
- package/lib/schema-settings/GeneralSchemaDesigner.js +3 -2
- package/lib/schema-settings/LinkageRules/DynamicComponent.d.ts +2 -1
- package/lib/schema-settings/LinkageRules/FilterDynamicComponent.d.ts +1 -1
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +14 -10
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.d.ts +2 -2
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +2 -0
- package/lib/schema-settings/LinkageRules/ValueDynamicComponent.d.ts +2 -1
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +2 -0
- package/lib/schema-settings/LinkageRules/index.d.ts +1 -1
- package/lib/schema-settings/LinkageRules/index.js +3 -1
- package/lib/schema-settings/SchemaSettings.d.ts +2 -1
- package/lib/schema-settings/SchemaSettings.js +148 -60
- package/lib/schema-settings/VariableInput/VariableInput.d.ts +1 -1
- package/lib/schema-settings/VariableInput/VariableInput.js +1 -1
- package/lib/schema-settings/VariableInput/hooks/useDateVariable.d.ts +12 -1
- package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +41 -36
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.d.ts +19 -0
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +96 -0
- package/lib/schema-settings/VariableInput/hooks/useIterationVariable.d.ts +8 -0
- package/lib/schema-settings/VariableInput/hooks/useIterationVariable.js +84 -0
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.d.ts +4 -4
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +5 -1
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +23 -3
- package/lib/schema-settings/VariableInput/type.d.ts +28 -0
- package/lib/schema-settings/VariableInput/type.js +5 -0
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +3 -2
- package/lib/schema-templates/BlockTemplate.d.ts +1 -1
- package/lib/schema-templates/BlockTemplate.js +4 -1
- package/lib/schema-templates/BlockTemplateDetails.d.ts +2 -1
- package/lib/schema-templates/BlockTemplateDetails.js +10 -6
- package/lib/schema-templates/BlockTemplatePage.d.ts +3 -2
- package/lib/schema-templates/BlockTemplatePage.js +5 -2
- package/lib/schema-templates/SchemaTemplateManagerProvider.d.ts +5 -2
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +7 -0
- package/lib/schema-templates/index.d.ts +0 -1
- package/lib/schema-templates/index.js +0 -11
- package/lib/system-settings/SystemSettingsProvider.d.ts +5 -3
- package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -3
- package/lib/system-settings/SystemSettingsShortcut.js +33 -85
- package/lib/test/collections.d.ts +1487 -0
- package/lib/test/collections.js +1444 -0
- package/lib/test/index.d.ts +3 -0
- package/lib/test/index.js +36 -0
- package/lib/test/mainCollections.d.ts +11359 -0
- package/lib/test/mainCollections.js +3 -0
- package/lib/test/mockAPIClient.d.ts +6 -0
- package/lib/test/mockAPIClient.js +18 -0
- package/lib/user/ChangePassword.d.ts +1 -1
- package/lib/user/ChangePassword.js +30 -26
- package/lib/user/CurrentUser.d.ts +7 -1
- package/lib/user/CurrentUser.js +122 -83
- package/lib/user/CurrentUserProvider.d.ts +1 -1
- package/lib/user/CurrentUserProvider.js +3 -2
- package/lib/user/EditProfile.d.ts +1 -1
- package/lib/user/EditProfile.js +31 -25
- package/lib/user/LanguageSettings.d.ts +1 -1
- package/lib/user/LanguageSettings.js +66 -63
- package/lib/user/SigninPage.d.ts +2 -1
- package/lib/user/SigninPage.js +39 -28
- package/lib/user/SigninPageExtension.d.ts +1 -1
- package/lib/user/SignupPage.d.ts +2 -1
- package/lib/user/SignupPage.js +4 -3
- package/lib/user/SwitchRole.d.ts +1 -1
- package/lib/user/SwitchRole.js +57 -53
- package/lib/user/ThemeSettings.d.ts +1 -1
- package/lib/user/ThemeSettings.js +59 -54
- package/lib/user/VerificationCode.d.ts +2 -2
- package/lib/user/index.d.ts +0 -3
- package/lib/user/index.js +0 -33
- package/package.json +16 -15
- package/tsconfig.json +2 -0
- package/.umirc.ts +0 -24
- package/develop.md +0 -5
- package/es/collection-manager/interfaces/attachment.d.ts +0 -2
- package/es/collection-manager/interfaces/attachment.js +0 -98
- package/es/plugin-manager/PluginManager.d.ts +0 -23
- package/es/plugin-manager/PluginManager.js +0 -166
- package/es/plugin-manager/PluginManagerProvider.d.ts +0 -2
- package/es/plugin-manager/PluginManagerProvider.js +0 -11
- package/es/schema-component/antd/select/shared.d.ts +0 -7
- package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
- package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -65
- package/es/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
- package/es/schema-templates/SchemaTemplateShortcut.js +0 -17
- package/es/settings-form/SettingsForm.d.ts +0 -13
- package/es/settings-form/index.d.ts +0 -1
- package/es/settings-form/index.js +0 -1
- package/lib/collection-manager/interfaces/attachment.d.ts +0 -2
- package/lib/collection-manager/interfaces/attachment.js +0 -105
- package/lib/plugin-manager/PluginManager.d.ts +0 -23
- package/lib/plugin-manager/PluginManager.js +0 -178
- package/lib/plugin-manager/PluginManagerProvider.d.ts +0 -2
- package/lib/plugin-manager/PluginManagerProvider.js +0 -19
- package/lib/schema-component/antd/select/shared.d.ts +0 -7
- package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +0 -22
- package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +0 -73
- package/lib/schema-templates/SchemaTemplateShortcut.d.ts +0 -1
- package/lib/schema-templates/SchemaTemplateShortcut.js +0 -25
- package/lib/settings-form/SettingsForm.d.ts +0 -13
- package/lib/settings-form/index.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["formItemInitializers", "actionInitializers", "collection", "association", "resource", "template"],
|
|
2
2
|
_excluded2 = ["formItemInitializers", "actionInitializers", "itemActionInitializers", "collection", "association", "resource", "template"],
|
|
3
3
|
_excluded3 = ["formItemInitializers", "actionInitializers", "itemActionInitializers", "collection", "association", "resource", "template"],
|
|
4
|
-
_excluded4 = ["formItemInitializers", "actionInitializers", "collection", "resource", "association", "action", "template"],
|
|
4
|
+
_excluded4 = ["formItemInitializers", "actionInitializers", "collection", "resource", "association", "action", "actions", "x-designer", "template", "title"],
|
|
5
5
|
_excluded5 = ["formItemInitializers", "actionInitializers", "collection", "resource", "association", "action", "template"],
|
|
6
6
|
_excluded6 = ["formItemInitializers", "actionInitializers", "collection", "association", "resource", "template"],
|
|
7
7
|
_excluded7 = ["collection", "resource", "rowKey", "tableActionInitializers", "tableColumnInitializers", "tableActionColumnInitializers", "tableBlockProvider", "disableTemplate", "TableBlockDesigner", "blockType", "pageSize"],
|
|
@@ -14,10 +14,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
-
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."); }
|
|
19
|
-
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; } }
|
|
20
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
17
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
22
18
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23
19
|
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); }
|
|
@@ -29,9 +25,11 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
29
25
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
30
26
|
import { Schema, useFieldSchema, useForm } from '@formily/react';
|
|
31
27
|
import { uid } from '@formily/shared';
|
|
32
|
-
import
|
|
28
|
+
import { error } from '@nocobase/utils/client';
|
|
29
|
+
import _ from 'lodash';
|
|
30
|
+
import React, { useCallback, useContext, useMemo } from 'react';
|
|
33
31
|
import { useTranslation } from 'react-i18next';
|
|
34
|
-
import { BlockRequestContext } from '../';
|
|
32
|
+
import { BlockRequestContext, SchemaInitializerButtonContext } from '../';
|
|
35
33
|
import { useCollection, useCollectionManager } from '../collection-manager';
|
|
36
34
|
import { isAssocField } from '../filter-provider/utils';
|
|
37
35
|
import { useActionContext, useDesignable } from '../schema-component';
|
|
@@ -93,6 +91,7 @@ export var findTableColumn = function findTableColumn(schema, key, action) {
|
|
|
93
91
|
return buf;
|
|
94
92
|
});
|
|
95
93
|
};
|
|
94
|
+
var quickEditField = ['attachment', 'textarea', 'markdown', 'json', 'richText', 'polygon', 'circle', 'point', 'lineString'];
|
|
96
95
|
export var useTableColumnInitializerFields = function useTableColumnInitializerFields() {
|
|
97
96
|
var _useCollection = useCollection(),
|
|
98
97
|
name = _useCollection.name,
|
|
@@ -101,22 +100,38 @@ export var useTableColumnInitializerFields = function useTableColumnInitializerF
|
|
|
101
100
|
var _useCollectionManager = useCollectionManager(),
|
|
102
101
|
getInterface = _useCollectionManager.getInterface,
|
|
103
102
|
getCollection = _useCollectionManager.getCollection;
|
|
103
|
+
var fieldSchema = useFieldSchema();
|
|
104
|
+
var isSubTable = fieldSchema['x-component'] === 'AssociationField.SubTable';
|
|
105
|
+
var form = useForm();
|
|
106
|
+
var isReadPretty = isSubTable ? form.readPretty : true;
|
|
104
107
|
return currentFields.filter(function (field) {
|
|
105
108
|
return (field === null || field === void 0 ? void 0 : field.interface) && (field === null || field === void 0 ? void 0 : field.interface) !== 'subTable' && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && !(field === null || field === void 0 ? void 0 : field.treeChildren);
|
|
106
109
|
}).map(function (field) {
|
|
107
|
-
var _field$uiSchema;
|
|
110
|
+
var _getCollection, _field$uiSchema, _field$uiSchema2;
|
|
108
111
|
var interfaceConfig = getInterface(field.interface);
|
|
112
|
+
var isFileCollection = (field === null || field === void 0 ? void 0 : field.target) && ((_getCollection = getCollection(field === null || field === void 0 ? void 0 : field.target)) === null || _getCollection === void 0 ? void 0 : _getCollection.template) === 'file';
|
|
109
113
|
var schema = {
|
|
110
114
|
name: field.name,
|
|
111
115
|
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
112
116
|
'x-component': 'CollectionField',
|
|
113
|
-
'x-
|
|
114
|
-
|
|
117
|
+
'x-component-props': isFileCollection ? {
|
|
118
|
+
fieldNames: {
|
|
119
|
+
label: 'preview',
|
|
120
|
+
value: 'id'
|
|
121
|
+
}
|
|
122
|
+
} : {},
|
|
123
|
+
'x-read-pretty': isReadPretty || ((_field$uiSchema = field.uiSchema) === null || _field$uiSchema === void 0 ? void 0 : _field$uiSchema['x-read-pretty']),
|
|
124
|
+
'x-decorator': isSubTable ? quickEditField.includes(field.interface) || isFileCollection ? 'QuickEdit' : 'FormItem' : null,
|
|
125
|
+
'x-decorator-props': {
|
|
126
|
+
labelStyle: {
|
|
127
|
+
display: 'none'
|
|
128
|
+
}
|
|
129
|
+
}
|
|
115
130
|
};
|
|
116
131
|
// interfaceConfig?.schemaInitialize?.(schema, { field, readPretty: true, block: 'Table' });
|
|
117
132
|
return {
|
|
118
133
|
type: 'item',
|
|
119
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
134
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema2 = field.uiSchema) === null || _field$uiSchema2 === void 0 ? void 0 : _field$uiSchema2.title) || field.name,
|
|
120
135
|
component: 'TableCollectionFieldInitializer',
|
|
121
136
|
find: findTableColumn,
|
|
122
137
|
remove: removeTableColumn,
|
|
@@ -124,7 +139,7 @@ export var useTableColumnInitializerFields = function useTableColumnInitializerF
|
|
|
124
139
|
var _interfaceConfig$sche;
|
|
125
140
|
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig$sche = interfaceConfig.schemaInitialize) === null || _interfaceConfig$sche === void 0 ? void 0 : _interfaceConfig$sche.call(interfaceConfig, s, {
|
|
126
141
|
field: field,
|
|
127
|
-
readPretty:
|
|
142
|
+
readPretty: isReadPretty,
|
|
128
143
|
block: 'Table',
|
|
129
144
|
targetCollection: getCollection(field.target)
|
|
130
145
|
});
|
|
@@ -146,7 +161,7 @@ export var useAssociatedTableColumnInitializerFields = function useAssociatedTab
|
|
|
146
161
|
var groups = fields === null || fields === void 0 ? void 0 : (_fields$filter = fields.filter(function (field) {
|
|
147
162
|
return ['o2o', 'oho', 'obo', 'm2o'].includes(field.interface);
|
|
148
163
|
})) === null || _fields$filter === void 0 ? void 0 : _fields$filter.map(function (field) {
|
|
149
|
-
var _subFields$filter, _field$
|
|
164
|
+
var _subFields$filter, _field$uiSchema3;
|
|
150
165
|
var subFields = getCollectionFields(field.target);
|
|
151
166
|
var items = subFields
|
|
152
167
|
// ?.filter((subField) => subField?.interface && !['o2o', 'oho', 'obo', 'o2m', 'm2o', 'subTable', 'linkTo'].includes(subField?.interface))
|
|
@@ -189,7 +204,7 @@ export var useAssociatedTableColumnInitializerFields = function useAssociatedTab
|
|
|
189
204
|
});
|
|
190
205
|
return {
|
|
191
206
|
type: 'subMenu',
|
|
192
|
-
title: (_field$
|
|
207
|
+
title: (_field$uiSchema3 = field.uiSchema) === null || _field$uiSchema3 === void 0 ? void 0 : _field$uiSchema3.title,
|
|
193
208
|
children: items
|
|
194
209
|
};
|
|
195
210
|
});
|
|
@@ -203,6 +218,10 @@ export var useInheritsTableColumnInitializerFields = function useInheritsTableCo
|
|
|
203
218
|
getInheritCollections = _useCollectionManager3.getInheritCollections,
|
|
204
219
|
getCollection = _useCollectionManager3.getCollection,
|
|
205
220
|
getParentCollectionFields = _useCollectionManager3.getParentCollectionFields;
|
|
221
|
+
var fieldSchema = useFieldSchema();
|
|
222
|
+
var isSubTable = fieldSchema['x-component'] === 'AssociationField.SubTable';
|
|
223
|
+
var form = useForm();
|
|
224
|
+
var isReadPretty = isSubTable ? form.readPretty : true;
|
|
206
225
|
var inherits = getInheritCollections(name);
|
|
207
226
|
return inherits === null || inherits === void 0 ? void 0 : inherits.map(function (v) {
|
|
208
227
|
var fields = getParentCollectionFields(v, name);
|
|
@@ -210,18 +229,30 @@ export var useInheritsTableColumnInitializerFields = function useInheritsTableCo
|
|
|
210
229
|
return _defineProperty({}, targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.title, fields === null || fields === void 0 ? void 0 : fields.filter(function (field) {
|
|
211
230
|
return field === null || field === void 0 ? void 0 : field.interface;
|
|
212
231
|
}).map(function (k) {
|
|
213
|
-
var _k$uiSchema;
|
|
232
|
+
var _getCollection2, _k$uiSchema, _k$uiSchema2;
|
|
214
233
|
var interfaceConfig = getInterface(k.interface);
|
|
234
|
+
var isFileCollection = (k === null || k === void 0 ? void 0 : k.target) && ((_getCollection2 = getCollection(k === null || k === void 0 ? void 0 : k.target)) === null || _getCollection2 === void 0 ? void 0 : _getCollection2.template) === 'file';
|
|
215
235
|
var schema = {
|
|
216
236
|
name: "".concat(k.name),
|
|
217
237
|
'x-component': 'CollectionField',
|
|
218
|
-
'x-read-pretty':
|
|
238
|
+
'x-read-pretty': isReadPretty || ((_k$uiSchema = k.uiSchema) === null || _k$uiSchema === void 0 ? void 0 : _k$uiSchema['x-read-pretty']),
|
|
219
239
|
'x-collection-field': "".concat(name, ".").concat(k.name),
|
|
220
|
-
'x-component-props': {
|
|
240
|
+
'x-component-props': isFileCollection ? {
|
|
241
|
+
fieldNames: {
|
|
242
|
+
label: 'preview',
|
|
243
|
+
value: 'id'
|
|
244
|
+
}
|
|
245
|
+
} : {},
|
|
246
|
+
'x-decorator': isSubTable ? quickEditField.includes(k.interface) || isFileCollection ? 'QuickEdit' : 'FormItem' : null,
|
|
247
|
+
'x-decorator-props': {
|
|
248
|
+
labelStyle: {
|
|
249
|
+
display: 'none'
|
|
250
|
+
}
|
|
251
|
+
}
|
|
221
252
|
};
|
|
222
253
|
return {
|
|
223
254
|
type: 'item',
|
|
224
|
-
title: (k === null || k === void 0 ? void 0 : (_k$
|
|
255
|
+
title: (k === null || k === void 0 ? void 0 : (_k$uiSchema2 = k.uiSchema) === null || _k$uiSchema2 === void 0 ? void 0 : _k$uiSchema2.title) || k.name,
|
|
225
256
|
component: 'TableCollectionFieldInitializer',
|
|
226
257
|
find: findTableColumn,
|
|
227
258
|
remove: removeTableColumn,
|
|
@@ -262,7 +293,7 @@ export var useFormItemInitializerFields = function useFormItemInitializerFields(
|
|
|
262
293
|
return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields$filter = currentFields.filter(function (field) {
|
|
263
294
|
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && !(field === null || field === void 0 ? void 0 : field.treeChildren);
|
|
264
295
|
})) === null || _currentFields$filter === void 0 ? void 0 : _currentFields$filter.map(function (field) {
|
|
265
|
-
var _field$
|
|
296
|
+
var _field$uiSchema4, _field$uiSchema5;
|
|
266
297
|
var interfaceConfig = getInterface(field.interface);
|
|
267
298
|
var targetCollection = getCollection(field.target);
|
|
268
299
|
// const component =
|
|
@@ -277,12 +308,12 @@ export var useFormItemInitializerFields = function useFormItemInitializerFields(
|
|
|
277
308
|
'x-decorator': 'FormItem',
|
|
278
309
|
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
279
310
|
'x-component-props': {},
|
|
280
|
-
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$
|
|
311
|
+
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema4 = field.uiSchema) === null || _field$uiSchema4 === void 0 ? void 0 : _field$uiSchema4['x-read-pretty']
|
|
281
312
|
};
|
|
282
313
|
// interfaceConfig?.schemaInitialize?.(schema, { field, block: 'Form', readPretty: form.readPretty });
|
|
283
314
|
var resultItem = {
|
|
284
315
|
type: 'item',
|
|
285
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
316
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema5 = field.uiSchema) === null || _field$uiSchema5 === void 0 ? void 0 : _field$uiSchema5.title) || field.name,
|
|
286
317
|
component: 'CollectionFieldInitializer',
|
|
287
318
|
remove: removeGridFormItem,
|
|
288
319
|
schemaInitialize: function schemaInitialize(s) {
|
|
@@ -329,7 +360,7 @@ export var useFilterFormItemInitializerFields = function useFilterFormItemInitia
|
|
|
329
360
|
var _getInterface;
|
|
330
361
|
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && ((_getInterface = getInterface(field.interface)) === null || _getInterface === void 0 ? void 0 : _getInterface.filterable);
|
|
331
362
|
})) === null || _currentFields$filter2 === void 0 ? void 0 : _currentFields$filter2.map(function (field) {
|
|
332
|
-
var _field$
|
|
363
|
+
var _field$uiSchema7;
|
|
333
364
|
var interfaceConfig = getInterface(field.interface);
|
|
334
365
|
var targetCollection = getCollection(field.target);
|
|
335
366
|
// const component =
|
|
@@ -347,7 +378,7 @@ export var useFilterFormItemInitializerFields = function useFilterFormItemInitia
|
|
|
347
378
|
'x-component-props': {}
|
|
348
379
|
};
|
|
349
380
|
if (isAssocField(field)) {
|
|
350
|
-
var _field$
|
|
381
|
+
var _field$uiSchema6;
|
|
351
382
|
schema = {
|
|
352
383
|
type: 'string',
|
|
353
384
|
name: "".concat(field.name),
|
|
@@ -356,12 +387,12 @@ export var useFilterFormItemInitializerFields = function useFilterFormItemInitia
|
|
|
356
387
|
'x-component': 'CollectionField',
|
|
357
388
|
'x-decorator': 'FormItem',
|
|
358
389
|
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
359
|
-
'x-component-props': (_field$
|
|
390
|
+
'x-component-props': (_field$uiSchema6 = field.uiSchema) === null || _field$uiSchema6 === void 0 ? void 0 : _field$uiSchema6['x-component-props']
|
|
360
391
|
};
|
|
361
392
|
}
|
|
362
393
|
var resultItem = {
|
|
363
394
|
type: 'item',
|
|
364
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
395
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema7 = field.uiSchema) === null || _field$uiSchema7 === void 0 ? void 0 : _field$uiSchema7.title) || field.name,
|
|
365
396
|
component: 'CollectionFieldInitializer',
|
|
366
397
|
remove: removeGridFormItem,
|
|
367
398
|
schemaInitialize: function schemaInitialize(s) {
|
|
@@ -398,7 +429,7 @@ export var useAssociatedFormItemInitializerFields = function useAssociatedFormIt
|
|
|
398
429
|
var groups = fields === null || fields === void 0 ? void 0 : (_fields$filter2 = fields.filter(function (field) {
|
|
399
430
|
return interfaces.includes(field.interface);
|
|
400
431
|
})) === null || _fields$filter2 === void 0 ? void 0 : _fields$filter2.map(function (field) {
|
|
401
|
-
var _subFields$filter2, _field$
|
|
432
|
+
var _subFields$filter2, _field$uiSchema8;
|
|
402
433
|
var subFields = getCollectionFields(field.target);
|
|
403
434
|
var items = subFields === null || subFields === void 0 ? void 0 : (_subFields$filter2 = subFields.filter(function (subField) {
|
|
404
435
|
return (subField === null || subField === void 0 ? void 0 : subField.interface) && !['subTable'].includes(subField === null || subField === void 0 ? void 0 : subField.interface) && !subField.treeChildren;
|
|
@@ -436,21 +467,21 @@ export var useAssociatedFormItemInitializerFields = function useAssociatedFormIt
|
|
|
436
467
|
});
|
|
437
468
|
return {
|
|
438
469
|
type: 'subMenu',
|
|
439
|
-
title: (_field$
|
|
470
|
+
title: (_field$uiSchema8 = field.uiSchema) === null || _field$uiSchema8 === void 0 ? void 0 : _field$uiSchema8.title,
|
|
440
471
|
children: items
|
|
441
472
|
};
|
|
442
473
|
});
|
|
443
474
|
return groups;
|
|
444
475
|
};
|
|
445
476
|
var getItem = function getItem(field, schemaName, collectionName, getCollectionFields, processedCollections) {
|
|
446
|
-
var _field$
|
|
477
|
+
var _field$uiSchema10;
|
|
447
478
|
if (field.interface === 'm2o') {
|
|
448
|
-
var _field$
|
|
479
|
+
var _field$uiSchema9;
|
|
449
480
|
if (processedCollections.includes(field.target)) return null;
|
|
450
481
|
var subFields = getCollectionFields(field.target);
|
|
451
482
|
return {
|
|
452
483
|
type: 'subMenu',
|
|
453
|
-
title: (_field$
|
|
484
|
+
title: (_field$uiSchema9 = field.uiSchema) === null || _field$uiSchema9 === void 0 ? void 0 : _field$uiSchema9.title,
|
|
454
485
|
children: subFields.map(function (subField) {
|
|
455
486
|
return (
|
|
456
487
|
// 使用 | 分隔,是为了防止 form.values 中出现 { a: { b: 1 } } 的情况
|
|
@@ -477,7 +508,7 @@ var getItem = function getItem(field, schemaName, collectionName, getCollectionF
|
|
|
477
508
|
};
|
|
478
509
|
return {
|
|
479
510
|
type: 'item',
|
|
480
|
-
title: ((_field$
|
|
511
|
+
title: ((_field$uiSchema10 = field.uiSchema) === null || _field$uiSchema10 === void 0 ? void 0 : _field$uiSchema10.title) || field.name,
|
|
481
512
|
component: 'CollectionFieldInitializer',
|
|
482
513
|
remove: removeGridFormItem,
|
|
483
514
|
schema: schema
|
|
@@ -525,7 +556,7 @@ export var useInheritsFormItemInitializerFields = function useInheritsFormItemIn
|
|
|
525
556
|
return _defineProperty({}, targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.title, fields === null || fields === void 0 ? void 0 : (_fields$filter4 = fields.filter(function (field) {
|
|
526
557
|
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey);
|
|
527
558
|
})) === null || _fields$filter4 === void 0 ? void 0 : _fields$filter4.map(function (field) {
|
|
528
|
-
var _field$
|
|
559
|
+
var _field$uiSchema11, _field$uiSchema12, _field$uiSchema13;
|
|
529
560
|
var interfaceConfig = getInterface(field.interface);
|
|
530
561
|
var targetCollection = getCollection(field.target);
|
|
531
562
|
// const component =
|
|
@@ -535,17 +566,17 @@ export var useInheritsFormItemInitializerFields = function useInheritsFormItemIn
|
|
|
535
566
|
var schema = {
|
|
536
567
|
type: 'string',
|
|
537
568
|
name: field.name,
|
|
538
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
569
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema11 = field.uiSchema) === null || _field$uiSchema11 === void 0 ? void 0 : _field$uiSchema11.title) || field.name,
|
|
539
570
|
'x-designer': 'FormItem.Designer',
|
|
540
571
|
'x-component': component,
|
|
541
572
|
'x-decorator': 'FormItem',
|
|
542
573
|
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
543
574
|
'x-component-props': {},
|
|
544
|
-
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$
|
|
575
|
+
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema12 = field.uiSchema) === null || _field$uiSchema12 === void 0 ? void 0 : _field$uiSchema12['x-read-pretty']
|
|
545
576
|
};
|
|
546
577
|
return {
|
|
547
578
|
type: 'item',
|
|
548
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
579
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema13 = field.uiSchema) === null || _field$uiSchema13 === void 0 ? void 0 : _field$uiSchema13.title) || field.name,
|
|
549
580
|
component: 'CollectionFieldInitializer',
|
|
550
581
|
remove: removeGridFormItem,
|
|
551
582
|
schemaInitialize: function schemaInitialize(s) {
|
|
@@ -588,7 +619,7 @@ export var useFilterInheritsFormItemInitializerFields = function useFilterInheri
|
|
|
588
619
|
var _getInterface2;
|
|
589
620
|
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && ((_getInterface2 = getInterface(field.interface)) === null || _getInterface2 === void 0 ? void 0 : _getInterface2.filterable);
|
|
590
621
|
})) === null || _fields$filter5 === void 0 ? void 0 : _fields$filter5.map(function (field) {
|
|
591
|
-
var _field$
|
|
622
|
+
var _field$uiSchema14, _field$uiSchema15, _field$uiSchema16;
|
|
592
623
|
var interfaceConfig = getInterface(field.interface);
|
|
593
624
|
var targetCollection = getCollection(field.target);
|
|
594
625
|
// const component =
|
|
@@ -598,18 +629,18 @@ export var useFilterInheritsFormItemInitializerFields = function useFilterInheri
|
|
|
598
629
|
var schema = {
|
|
599
630
|
type: 'string',
|
|
600
631
|
name: field.name,
|
|
601
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
632
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema14 = field.uiSchema) === null || _field$uiSchema14 === void 0 ? void 0 : _field$uiSchema14.title) || field.name,
|
|
602
633
|
required: false,
|
|
603
634
|
'x-designer': 'FormItem.FilterFormDesigner',
|
|
604
635
|
'x-component': 'CollectionField',
|
|
605
636
|
'x-decorator': 'FormItem',
|
|
606
637
|
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
607
638
|
'x-component-props': {},
|
|
608
|
-
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$
|
|
639
|
+
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field$uiSchema15 = field.uiSchema) === null || _field$uiSchema15 === void 0 ? void 0 : _field$uiSchema15['x-read-pretty']
|
|
609
640
|
};
|
|
610
641
|
return {
|
|
611
642
|
type: 'item',
|
|
612
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
643
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema16 = field.uiSchema) === null || _field$uiSchema16 === void 0 ? void 0 : _field$uiSchema16.title) || field.name,
|
|
613
644
|
component: 'CollectionFieldInitializer',
|
|
614
645
|
remove: removeGridFormItem,
|
|
615
646
|
schemaInitialize: function schemaInitialize(s) {
|
|
@@ -642,15 +673,15 @@ export var useCustomFormItemInitializerFields = function useCustomFormItemInitia
|
|
|
642
673
|
block = _ref9$block === void 0 ? 'Form' : _ref9$block;
|
|
643
674
|
var remove = useRemoveGridFormItem();
|
|
644
675
|
return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields$filter3 = currentFields.filter(function (field) {
|
|
645
|
-
var _field$
|
|
646
|
-
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$
|
|
676
|
+
var _field$uiSchema17;
|
|
677
|
+
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$uiSchema17 = field.uiSchema) === null || _field$uiSchema17 === void 0 ? void 0 : _field$uiSchema17['x-read-pretty']) && field.interface !== 'snapshot' && field.type !== 'sequence';
|
|
647
678
|
})) === null || _currentFields$filter3 === void 0 ? void 0 : _currentFields$filter3.map(function (field) {
|
|
648
|
-
var _field$
|
|
679
|
+
var _field$uiSchema18, _field$uiSchema19;
|
|
649
680
|
var interfaceConfig = getInterface(field.interface);
|
|
650
681
|
var schema = {
|
|
651
682
|
type: 'string',
|
|
652
683
|
name: field.name,
|
|
653
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
684
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema18 = field.uiSchema) === null || _field$uiSchema18 === void 0 ? void 0 : _field$uiSchema18.title) || field.name,
|
|
654
685
|
'x-designer': 'FormItem.Designer',
|
|
655
686
|
'x-component': 'AssignedField',
|
|
656
687
|
'x-decorator': 'FormItem',
|
|
@@ -658,7 +689,7 @@ export var useCustomFormItemInitializerFields = function useCustomFormItemInitia
|
|
|
658
689
|
};
|
|
659
690
|
return {
|
|
660
691
|
type: 'item',
|
|
661
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
692
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema19 = field.uiSchema) === null || _field$uiSchema19 === void 0 ? void 0 : _field$uiSchema19.title) || field.name,
|
|
662
693
|
component: 'CollectionFieldInitializer',
|
|
663
694
|
remove: remove,
|
|
664
695
|
schemaInitialize: function schemaInitialize(s) {
|
|
@@ -690,15 +721,15 @@ export var useCustomBulkEditFormItemInitializerFields = function useCustomBulkEd
|
|
|
690
721
|
var remove = useRemoveGridFormItem();
|
|
691
722
|
var filterFields = useMemo(function () {
|
|
692
723
|
return fields === null || fields === void 0 ? void 0 : fields.filter(function (field) {
|
|
693
|
-
var _field$
|
|
694
|
-
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$
|
|
724
|
+
var _field$uiSchema20;
|
|
725
|
+
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field$uiSchema20 = field.uiSchema) === null || _field$uiSchema20 === void 0 ? void 0 : _field$uiSchema20['x-read-pretty']) && field.interface !== 'snapshot' && field.type !== 'sequence';
|
|
695
726
|
}).map(function (field) {
|
|
696
|
-
var _field$
|
|
727
|
+
var _field$uiSchema21, _field$uiSchema22;
|
|
697
728
|
var interfaceConfig = getInterface(field.interface);
|
|
698
729
|
var schema = {
|
|
699
730
|
type: 'string',
|
|
700
731
|
name: field.name,
|
|
701
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
732
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema21 = field.uiSchema) === null || _field$uiSchema21 === void 0 ? void 0 : _field$uiSchema21.title) || field.name,
|
|
702
733
|
'x-designer': 'FormItem.Designer',
|
|
703
734
|
'x-component': 'BulkEditField',
|
|
704
735
|
'x-decorator': 'FormItem',
|
|
@@ -706,7 +737,7 @@ export var useCustomBulkEditFormItemInitializerFields = function useCustomBulkEd
|
|
|
706
737
|
};
|
|
707
738
|
return {
|
|
708
739
|
type: 'item',
|
|
709
|
-
title: (field === null || field === void 0 ? void 0 : (_field$
|
|
740
|
+
title: (field === null || field === void 0 ? void 0 : (_field$uiSchema22 = field.uiSchema) === null || _field$uiSchema22 === void 0 ? void 0 : _field$uiSchema22.title) || field.name,
|
|
710
741
|
component: 'CollectionFieldInitializer',
|
|
711
742
|
remove: remove,
|
|
712
743
|
schemaInitialize: function schemaInitialize(s) {
|
|
@@ -842,28 +873,26 @@ export var useCollectionDataSourceItems = function useCollectionDataSourceItems(
|
|
|
842
873
|
getCollectionFields = _useCollectionManager12.getCollectionFields;
|
|
843
874
|
var _useSchemaTemplateMan2 = useSchemaTemplateManager(),
|
|
844
875
|
getTemplatesByCollection = _useSchemaTemplateMan2.getTemplatesByCollection;
|
|
845
|
-
var
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
var
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
876
|
+
var _useContext = useContext(SchemaInitializerButtonContext),
|
|
877
|
+
searchValue = _useContext.searchValue,
|
|
878
|
+
setSearchValue = _useContext.setSearchValue;
|
|
879
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
880
|
+
var onChange = useCallback(_.debounce(setSearchValue, 300), [setSearchValue]);
|
|
881
|
+
if (!setSearchValue) {
|
|
882
|
+
error('useCollectionDataSourceItems: please use in SchemaInitializerButtonContext and provide setSearchValue');
|
|
883
|
+
return [];
|
|
884
|
+
}
|
|
853
885
|
var clearKeywords = function clearKeywords() {
|
|
854
|
-
|
|
855
|
-
onChange(null);
|
|
886
|
+
setSearchValue('');
|
|
856
887
|
};
|
|
857
888
|
return [{
|
|
858
889
|
key: 'tableBlock',
|
|
859
890
|
type: 'itemGroup',
|
|
860
891
|
title: /*#__PURE__*/React.createElement(SelectCollection, {
|
|
861
|
-
value:
|
|
862
|
-
onChange: onChange
|
|
863
|
-
setSelected: setSelected
|
|
892
|
+
value: searchValue,
|
|
893
|
+
onChange: onChange
|
|
864
894
|
}),
|
|
865
895
|
children: collections === null || collections === void 0 ? void 0 : (_collections$filter = collections.filter(function (item) {
|
|
866
|
-
var b = !value || selected.includes(item.name);
|
|
867
896
|
if (item.inherit) {
|
|
868
897
|
return false;
|
|
869
898
|
}
|
|
@@ -877,7 +906,10 @@ export var useCollectionDataSourceItems = function useCollectionDataSourceItems(
|
|
|
877
906
|
} else if (item.template === 'file' && ['Kanban', 'FormItem', 'Calendar'].includes(componentName)) {
|
|
878
907
|
return false;
|
|
879
908
|
} else {
|
|
880
|
-
|
|
909
|
+
if (!item.title) {
|
|
910
|
+
return false;
|
|
911
|
+
}
|
|
912
|
+
return item.title.toUpperCase().includes(searchValue.toUpperCase()) && !((item === null || item === void 0 ? void 0 : item.isThrough) && (item === null || item === void 0 ? void 0 : item.autoCreate));
|
|
881
913
|
}
|
|
882
914
|
})) === null || _collections$filter === void 0 ? void 0 : _collections$filter.map(function (item, index) {
|
|
883
915
|
var templates = getTemplatesByCollection(item.name).filter(function (template) {
|
|
@@ -999,7 +1031,6 @@ export var createDetailsBlockSchema = function createDetailsBlockSchema(options)
|
|
|
999
1031
|
}), _properties3)
|
|
1000
1032
|
})
|
|
1001
1033
|
};
|
|
1002
|
-
console.log(JSON.stringify(schema, null, 2));
|
|
1003
1034
|
return schema;
|
|
1004
1035
|
};
|
|
1005
1036
|
export var createListBlockSchema = function createListBlockSchema(options) {
|
|
@@ -1116,6 +1147,9 @@ export var createGridCardBlockSchema = function createGridCardBlockSchema(option
|
|
|
1116
1147
|
runWhenParamsChanged: true
|
|
1117
1148
|
}, others),
|
|
1118
1149
|
'x-component': 'BlockItem',
|
|
1150
|
+
'x-component-props': {
|
|
1151
|
+
useProps: '{{ useGridCardBlockItemProps }}'
|
|
1152
|
+
},
|
|
1119
1153
|
'x-designer': 'GridCard.Designer',
|
|
1120
1154
|
properties: {
|
|
1121
1155
|
actionBar: {
|
|
@@ -1133,7 +1167,7 @@ export var createGridCardBlockSchema = function createGridCardBlockSchema(option
|
|
|
1133
1167
|
type: 'array',
|
|
1134
1168
|
'x-component': 'GridCard',
|
|
1135
1169
|
'x-component-props': {
|
|
1136
|
-
|
|
1170
|
+
useProps: '{{ useGridCardBlockProps }}'
|
|
1137
1171
|
},
|
|
1138
1172
|
properties: {
|
|
1139
1173
|
item: {
|
|
@@ -1181,7 +1215,12 @@ export var createFormBlockSchema = function createFormBlockSchema(options) {
|
|
|
1181
1215
|
resource = options.resource,
|
|
1182
1216
|
association = options.association,
|
|
1183
1217
|
action = options.action,
|
|
1218
|
+
_options$actions = options.actions,
|
|
1219
|
+
actions = _options$actions === void 0 ? {} : _options$actions,
|
|
1220
|
+
_options$xDesigner = options['x-designer'],
|
|
1221
|
+
designer = _options$xDesigner === void 0 ? 'FormV2.Designer' : _options$xDesigner,
|
|
1184
1222
|
template = options.template,
|
|
1223
|
+
title = options.title,
|
|
1185
1224
|
others = _objectWithoutProperties(options, _excluded4);
|
|
1186
1225
|
var resourceName = resource || association || collection;
|
|
1187
1226
|
var schema = {
|
|
@@ -1200,8 +1239,11 @@ export var createFormBlockSchema = function createFormBlockSchema(options) {
|
|
|
1200
1239
|
// useParams: '{{ useParamsFromRecord }}',
|
|
1201
1240
|
}),
|
|
1202
1241
|
|
|
1203
|
-
'x-designer':
|
|
1242
|
+
'x-designer': designer,
|
|
1204
1243
|
'x-component': 'CardItem',
|
|
1244
|
+
'x-component-props': {
|
|
1245
|
+
title: title
|
|
1246
|
+
},
|
|
1205
1247
|
properties: _defineProperty({}, uid(), {
|
|
1206
1248
|
type: 'void',
|
|
1207
1249
|
'x-component': 'FormV2',
|
|
@@ -1225,7 +1267,7 @@ export var createFormBlockSchema = function createFormBlockSchema(options) {
|
|
|
1225
1267
|
marginTop: 24
|
|
1226
1268
|
}
|
|
1227
1269
|
},
|
|
1228
|
-
properties:
|
|
1270
|
+
properties: actions
|
|
1229
1271
|
}
|
|
1230
1272
|
}
|
|
1231
1273
|
})
|
|
@@ -11,7 +11,7 @@ import { useCollection, useCollectionManager } from '../collection-manager';
|
|
|
11
11
|
import { useDesignable } from '../schema-component';
|
|
12
12
|
import { SchemaSettings } from '../schema-settings';
|
|
13
13
|
export var GeneralSchemaItems = observer(function (props) {
|
|
14
|
-
var _collectionField$uiSc,
|
|
14
|
+
var _collectionField$uiSc, _fieldSchema$xDecora, _fieldSchema$xDecora2, _fieldSchema$xDecora3;
|
|
15
15
|
var _props$required = props.required,
|
|
16
16
|
required = _props$required === void 0 ? true : _props$required;
|
|
17
17
|
var _useCollectionManager = useCollectionManager(),
|
|
@@ -58,7 +58,7 @@ export var GeneralSchemaItems = observer(function (props) {
|
|
|
58
58
|
dn.refresh();
|
|
59
59
|
}
|
|
60
60
|
}), /*#__PURE__*/React.createElement(SchemaSettings.SwitchItem, {
|
|
61
|
-
checked: (
|
|
61
|
+
checked: (_fieldSchema$xDecora = (_fieldSchema$xDecora2 = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora2 === void 0 ? void 0 : _fieldSchema$xDecora2['showTitle']) !== null && _fieldSchema$xDecora !== void 0 ? _fieldSchema$xDecora : true,
|
|
62
62
|
title: t('Display title'),
|
|
63
63
|
onChange: function onChange(checked) {
|
|
64
64
|
fieldSchema['x-decorator-props'] = fieldSchema['x-decorator-props'] || {};
|
|
@@ -110,7 +110,7 @@ export var GeneralSchemaItems = observer(function (props) {
|
|
|
110
110
|
title: t('Edit description'),
|
|
111
111
|
properties: {
|
|
112
112
|
tooltip: {
|
|
113
|
-
default: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$
|
|
113
|
+
default: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora3 = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora3 === void 0 ? void 0 : _fieldSchema$xDecora3.tooltip,
|
|
114
114
|
'x-decorator': 'FormItem',
|
|
115
115
|
'x-component': 'Input.TextArea',
|
|
116
116
|
'x-component-props': {}
|
|
@@ -145,4 +145,6 @@ export var GeneralSchemaItems = observer(function (props) {
|
|
|
145
145
|
refresh();
|
|
146
146
|
}
|
|
147
147
|
}));
|
|
148
|
+
}, {
|
|
149
|
+
displayName: 'GeneralSchemaItems'
|
|
148
150
|
});
|
|
@@ -29,14 +29,16 @@ export var OpenModeSchemaItems = function OpenModeSchemaItems(options) {
|
|
|
29
29
|
value: openModeValue,
|
|
30
30
|
onChange: function onChange(value) {
|
|
31
31
|
field.componentProps.openMode = value;
|
|
32
|
-
|
|
32
|
+
var schema = {
|
|
33
|
+
'x-uid': fieldSchema['x-uid']
|
|
34
|
+
};
|
|
35
|
+
schema['x-component-props'] = fieldSchema['x-component-props'] || {};
|
|
36
|
+
schema['x-component-props'].openMode = value;
|
|
37
|
+
fieldSchema['x-component-props'].openMode = value;
|
|
33
38
|
// when openMode change, set openSize value to default
|
|
34
39
|
Reflect.deleteProperty(fieldSchema['x-component-props'], 'openSize');
|
|
35
40
|
dn.emit('patch', {
|
|
36
|
-
schema:
|
|
37
|
-
'x-uid': fieldSchema['x-uid'],
|
|
38
|
-
'x-component-props': fieldSchema['x-component-props']
|
|
39
|
-
}
|
|
41
|
+
schema: schema
|
|
40
42
|
});
|
|
41
43
|
dn.refresh();
|
|
42
44
|
}
|
|
@@ -61,12 +63,14 @@ export var OpenModeSchemaItems = function OpenModeSchemaItems(options) {
|
|
|
61
63
|
value: (_fieldSchema$xCompon2 = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon3 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon3 === void 0 ? void 0 : _fieldSchema$xCompon3['openSize']) !== null && _fieldSchema$xCompon2 !== void 0 ? _fieldSchema$xCompon2 : (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon4 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon4 === void 0 ? void 0 : _fieldSchema$xCompon4['openMode']) == 'modal' ? 'large' : 'middle',
|
|
62
64
|
onChange: function onChange(value) {
|
|
63
65
|
field.componentProps.openSize = value;
|
|
64
|
-
|
|
66
|
+
var schema = {
|
|
67
|
+
'x-uid': fieldSchema['x-uid']
|
|
68
|
+
};
|
|
69
|
+
schema['x-component-props'] = fieldSchema['x-component-props'] || {};
|
|
70
|
+
schema['x-component-props'].openSize = value;
|
|
71
|
+
fieldSchema['x-component-props'].openSize = value;
|
|
65
72
|
dn.emit('patch', {
|
|
66
|
-
schema:
|
|
67
|
-
'x-uid': fieldSchema['x-uid'],
|
|
68
|
-
'x-component-props': fieldSchema['x-component-props']
|
|
69
|
-
}
|
|
73
|
+
schema: schema
|
|
70
74
|
});
|
|
71
75
|
dn.refresh();
|
|
72
76
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const FormDataTemplates: React.MemoExoticComponent<
|
|
2
|
+
export declare const FormDataTemplates: React.MemoExoticComponent<import("@formily/react").ReactFC<Pick<any, string | number | symbol>>>;
|
|
3
3
|
export declare function getLabel(titleField: any): any;
|
|
@@ -20,9 +20,7 @@ import { useCollectionState } from './hooks/useCollectionState';
|
|
|
20
20
|
var Tree = connect(AntdTree, mapProps({
|
|
21
21
|
value: 'checkedKeys',
|
|
22
22
|
dataSource: 'treeData'
|
|
23
|
-
// onInput: 'onCheck',
|
|
24
23
|
}));
|
|
25
|
-
|
|
26
24
|
export var FormDataTemplates = observer(function (props) {
|
|
27
25
|
var useProps = props.useProps,
|
|
28
26
|
formSchema = props.formSchema,
|
|
@@ -33,8 +31,8 @@ export var FormDataTemplates = observer(function (props) {
|
|
|
33
31
|
var _useCollectionState = useCollectionState(collectionName),
|
|
34
32
|
collectionList = _useCollectionState.collectionList,
|
|
35
33
|
getEnableFieldTree = _useCollectionState.getEnableFieldTree,
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
getOnLoadData = _useCollectionState.getOnLoadData,
|
|
35
|
+
getOnCheck = _useCollectionState.getOnCheck;
|
|
38
36
|
var _useCollectionManager = useCollectionManager(),
|
|
39
37
|
getCollection = _useCollectionManager.getCollection,
|
|
40
38
|
getCollectionField = _useCollectionManager.getCollectionField;
|
|
@@ -81,6 +79,8 @@ export var FormDataTemplates = observer(function (props) {
|
|
|
81
79
|
getFieldNames: getFieldNames,
|
|
82
80
|
getFilter: getFilter,
|
|
83
81
|
getResource: getResource,
|
|
82
|
+
getOnLoadData: getOnLoadData,
|
|
83
|
+
getOnCheck: getOnCheck,
|
|
84
84
|
collectionName: collectionName
|
|
85
85
|
};
|
|
86
86
|
}, []);
|
|
@@ -178,8 +178,8 @@ export var FormDataTemplates = observer(function (props) {
|
|
|
178
178
|
checkable: true,
|
|
179
179
|
checkStrictly: true,
|
|
180
180
|
selectable: false,
|
|
181
|
-
loadData:
|
|
182
|
-
onCheck:
|
|
181
|
+
loadData: '{{ getOnLoadData($self) }}',
|
|
182
|
+
onCheck: '{{ getOnCheck($self) }}',
|
|
183
183
|
rootStyle: {
|
|
184
184
|
padding: '8px 0',
|
|
185
185
|
border: '1px solid #d9d9d9',
|
|
@@ -244,6 +244,8 @@ export var FormDataTemplates = observer(function (props) {
|
|
|
244
244
|
scope: scope,
|
|
245
245
|
schema: schema
|
|
246
246
|
}));
|
|
247
|
+
}, {
|
|
248
|
+
displayName: 'FormDataTemplates'
|
|
247
249
|
});
|
|
248
250
|
export function getLabel(titleField) {
|
|
249
251
|
return titleField || 'label';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const TreeNode: (props: any) => React.JSX.Element;
|