@nocobase/client 0.9.4-alpha.1 → 0.10.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/auth/SigninPage.js +141 -0
- 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 +2 -2
- package/es/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
- package/es/collection-manager/Configuration/AddFieldAction.js +2 -2
- package/es/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
- package/es/collection-manager/Configuration/AddSubFieldAction.js +2 -2
- 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 +4 -0
- 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/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/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/Result.d.ts +2 -1
- package/es/formula/index.d.ts +2 -2
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.js +1 -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 +2 -0
- package/es/index.js +3 -1
- package/es/locale/en_US.d.ts +16 -21
- package/es/locale/en_US.js +19 -24
- package/es/locale/es_ES.d.ts +3 -1
- package/es/locale/es_ES.js +4 -2
- package/es/locale/ja_JP.d.ts +16 -19
- package/es/locale/ja_JP.js +17 -20
- package/es/locale/pt_BR.d.ts +2 -0
- package/es/locale/pt_BR.js +3 -1
- package/es/locale/ru_RU.d.ts +2 -18
- package/es/locale/ru_RU.js +3 -19
- package/es/locale/tr_TR.d.ts +0 -17
- package/es/locale/tr_TR.js +0 -17
- package/es/locale/zh_CN.d.ts +26 -24
- package/es/locale/zh_CN.js +28 -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 +28 -20
- package/es/pm/index.d.ts +31 -2
- package/es/pm/index.js +82 -261
- 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 +57 -53
- 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 +208 -22
- package/es/schema-component/antd/action/Action.Drawer.js +15 -13
- 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 +28 -20
- package/es/schema-component/antd/action/ActionBar.d.ts +18 -2
- package/es/schema-component/antd/action/ActionBar.js +46 -20
- 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 +100 -7
- 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 +13 -44
- 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 +66 -15
- 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/context.d.ts +2 -0
- package/es/schema-component/antd/association-field/hooks.d.ts +2 -0
- 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 +2 -0
- 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 +5 -3
- 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 +99 -34
- 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 +22 -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 +1 -1
- 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/icon-picker/IconPicker.js +2 -2
- 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 +20 -4
- package/es/schema-component/antd/input/EllipsisWithTooltip.js +2 -2
- 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 +46 -37
- 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 +25 -17
- 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 +56 -26
- 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 +33 -13
- 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/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 +101 -3
- 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 +58 -27
- 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 +23 -5
- 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/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/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 +18 -8
- package/es/schema-component/common/utils/logic.js +64 -2
- package/es/schema-component/common/utils/uitls.js +48 -14
- 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 +12 -3
- package/es/schema-initializer/SchemaInitializer.js +140 -14
- package/es/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
- package/es/schema-initializer/SelectCollection.d.ts +2 -1
- 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 +12 -3
- package/es/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/TableColumnInitializers.js +16 -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 +6 -2
- 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 +1 -1
- 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/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 -0
- package/es/schema-initializer/utils.js +70 -43
- 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/AsDefaultTemplate.js +1 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +11 -13
- 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 +29 -18
- 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/useUserVariable.d.ts +4 -4
- package/es/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +12 -1
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.js +6 -2
- 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 +6 -6
- package/es/schema-templates/BlockTemplatePage.d.ts +3 -2
- 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/settings-form/SettingsForm.js +8 -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 +2 -1
- package/es/user/ChangePassword.js +2 -2
- package/es/user/CurrentUser.d.ts +7 -1
- package/es/user/CurrentUser.js +121 -114
- package/es/user/CurrentUserProvider.d.ts +1 -1
- package/es/user/CurrentUserProvider.js +4 -3
- package/es/user/EditProfile.d.ts +2 -1
- package/es/user/EditProfile.js +3 -3
- package/es/user/LanguageSettings.d.ts +2 -1
- package/es/user/SigninPage.d.ts +2 -1
- package/es/user/SigninPage.js +15 -7
- 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 +2 -1
- package/es/user/SwitchRole.js +1 -3
- package/es/user/ThemeSettings.d.ts +2 -1
- 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/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/auth/SigninPage.js +155 -0
- 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 +1 -1
- package/lib/collection-manager/Configuration/AddFieldAction.d.ts +3 -2
- package/lib/collection-manager/Configuration/AddFieldAction.js +1 -1
- package/lib/collection-manager/Configuration/AddSubFieldAction.d.ts +2 -1
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +1 -1
- 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 +4 -0
- 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/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/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/Result.d.ts +2 -1
- package/lib/formula/index.d.ts +2 -2
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +16 -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 +2 -0
- package/lib/index.js +22 -0
- package/lib/locale/en_US.d.ts +16 -21
- package/lib/locale/en_US.js +19 -24
- package/lib/locale/es_ES.d.ts +3 -1
- package/lib/locale/es_ES.js +4 -2
- package/lib/locale/ja_JP.d.ts +16 -19
- package/lib/locale/ja_JP.js +17 -20
- package/lib/locale/pt_BR.d.ts +2 -0
- package/lib/locale/pt_BR.js +3 -1
- package/lib/locale/ru_RU.d.ts +2 -18
- package/lib/locale/ru_RU.js +3 -19
- package/lib/locale/tr_TR.d.ts +0 -17
- package/lib/locale/tr_TR.js +0 -17
- package/lib/locale/zh_CN.d.ts +26 -24
- package/lib/locale/zh_CN.js +28 -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 +25 -17
- package/lib/pm/index.d.ts +31 -2
- package/lib/pm/index.js +77 -256
- 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 +56 -51
- 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 +205 -19
- package/lib/schema-component/antd/action/Action.Drawer.js +15 -13
- 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 +27 -19
- 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 +98 -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 +14 -46
- 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 +64 -13
- 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/context.d.ts +2 -0
- package/lib/schema-component/antd/association-field/hooks.d.ts +2 -0
- 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 +2 -0
- 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 +5 -3
- 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 +101 -36
- 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 +22 -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 +1 -1
- 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/icon-picker/IconPicker.js +2 -2
- 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 +20 -4
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +2 -2
- 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 +46 -37
- 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 +22 -14
- 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/schema-component/antd/quick-edit/index.js +16 -0
- 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 +55 -25
- 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 +34 -14
- 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/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 +100 -2
- 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 +56 -25
- 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 +25 -5
- 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/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/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 +18 -8
- package/lib/schema-component/common/utils/logic.js +64 -2
- package/lib/schema-component/common/utils/uitls.js +47 -13
- 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 +12 -3
- package/lib/schema-initializer/SchemaInitializer.js +138 -12
- package/lib/schema-initializer/SchemaInitializerProvider.d.ts +3 -3
- package/lib/schema-initializer/SelectCollection.d.ts +2 -1
- 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 +12 -3
- package/lib/schema-initializer/buttons/TableColumnInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/TableColumnInitializers.js +16 -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 +5 -1
- 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 +1 -1
- 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/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 -0
- package/lib/schema-initializer/utils.js +70 -43
- 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/AsDefaultTemplate.js +1 -1
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +12 -14
- 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 +28 -17
- 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/useUserVariable.d.ts +4 -4
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +66 -42
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.d.ts +12 -1
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +6 -2
- 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 +5 -5
- package/lib/schema-templates/BlockTemplatePage.d.ts +3 -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/settings-form/SettingsForm.js +8 -2
- 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 +2 -1
- package/lib/user/ChangePassword.js +1 -1
- package/lib/user/CurrentUser.d.ts +7 -1
- package/lib/user/CurrentUser.js +123 -115
- package/lib/user/CurrentUserProvider.d.ts +1 -1
- package/lib/user/CurrentUserProvider.js +3 -2
- package/lib/user/EditProfile.d.ts +2 -1
- package/lib/user/EditProfile.js +2 -2
- package/lib/user/LanguageSettings.d.ts +2 -1
- package/lib/user/SigninPage.d.ts +2 -1
- package/lib/user/SigninPage.js +14 -6
- 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 +2 -1
- package/lib/user/SwitchRole.js +1 -3
- package/lib/user/ThemeSettings.d.ts +2 -1
- 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 +15 -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/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
|
@@ -13,15 +13,15 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
13
13
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
14
|
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); }
|
|
15
15
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
16
|
-
import {
|
|
16
|
+
import { SchemaExpressionScopeContext, useField, useFieldSchema, useForm } from '@formily/react';
|
|
17
17
|
import { parse } from '@nocobase/utils/client';
|
|
18
18
|
import { Modal, message } from 'antd';
|
|
19
|
-
import { cloneDeep
|
|
19
|
+
import { cloneDeep } from 'lodash';
|
|
20
20
|
import get from 'lodash/get';
|
|
21
21
|
import omit from 'lodash/omit';
|
|
22
22
|
import { useContext, useEffect } from 'react';
|
|
23
23
|
import { useTranslation } from 'react-i18next';
|
|
24
|
-
import {
|
|
24
|
+
import { useNavigate } from 'react-router-dom';
|
|
25
25
|
import { useReactToPrint } from 'react-to-print';
|
|
26
26
|
import { AssociationFilter, useFormBlockContext, useTableBlockContext } from '../..';
|
|
27
27
|
import { useAPIClient, useRequest } from '../../api-client';
|
|
@@ -31,7 +31,6 @@ import { transformToFilter } from '../../filter-provider/utils';
|
|
|
31
31
|
import { useRecord } from '../../record-provider';
|
|
32
32
|
import { removeNullCondition, useActionContext, useCompile } from '../../schema-component';
|
|
33
33
|
import { BulkEditFormItemValueType } from '../../schema-initializer/components';
|
|
34
|
-
import { useSchemaTemplateManager } from '../../schema-templates';
|
|
35
34
|
import { useCurrentUserContext } from '../../user';
|
|
36
35
|
import { useBlockRequestContext, useFilterByTk } from '../BlockProvider';
|
|
37
36
|
import { useDetailsBlockContext } from '../DetailsBlockProvider';
|
|
@@ -156,7 +155,7 @@ export var useCreateActionProps = function useCreateActionProps() {
|
|
|
156
155
|
var _useActionContext = useActionContext(),
|
|
157
156
|
setVisible = _useActionContext.setVisible,
|
|
158
157
|
fieldSchema = _useActionContext.fieldSchema;
|
|
159
|
-
var
|
|
158
|
+
var navigate = useNavigate();
|
|
160
159
|
var _useTranslation = useTranslation(),
|
|
161
160
|
t = _useTranslation.t;
|
|
162
161
|
var actionSchema = useFieldSchema();
|
|
@@ -170,6 +169,8 @@ export var useCreateActionProps = function useCreateActionProps() {
|
|
|
170
169
|
var currentRecord = useRecord();
|
|
171
170
|
var currentUserContext = useCurrentUserContext();
|
|
172
171
|
var currentUser = currentUserContext === null || currentUserContext === void 0 ? void 0 : (_currentUserContext$d = currentUserContext.data) === null || _currentUserContext$d === void 0 ? void 0 : _currentUserContext$d.data;
|
|
172
|
+
var action = actionField.componentProps.saveMode || 'create';
|
|
173
|
+
var filterKeys = actionField.componentProps.filterKeys || [];
|
|
173
174
|
return {
|
|
174
175
|
onClick: function onClick() {
|
|
175
176
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -205,8 +206,9 @@ export var useCreateActionProps = function useCreateActionProps() {
|
|
|
205
206
|
actionField.data.loading = true;
|
|
206
207
|
_context2.prev = 11;
|
|
207
208
|
_context2.next = 14;
|
|
208
|
-
return resource
|
|
209
|
-
values: _objectSpread(_objectSpread(_objectSpread({}, values), overwriteValues), assignedValues)
|
|
209
|
+
return resource[action]({
|
|
210
|
+
values: _objectSpread(_objectSpread(_objectSpread({}, values), overwriteValues), assignedValues),
|
|
211
|
+
filterKeys: filterKeys
|
|
210
212
|
});
|
|
211
213
|
case 14:
|
|
212
214
|
data = _context2.sent;
|
|
@@ -235,7 +237,7 @@ export var useCreateActionProps = function useCreateActionProps() {
|
|
|
235
237
|
if (isURL(onSuccess.redirectTo)) {
|
|
236
238
|
window.location.href = onSuccess.redirectTo;
|
|
237
239
|
} else {
|
|
238
|
-
|
|
240
|
+
navigate(onSuccess.redirectTo);
|
|
239
241
|
}
|
|
240
242
|
}
|
|
241
243
|
case 3:
|
|
@@ -536,7 +538,7 @@ export var useCustomizeUpdateActionProps = function useCustomizeUpdateActionProp
|
|
|
536
538
|
var currentRecord = useRecord();
|
|
537
539
|
var currentUserContext = useCurrentUserContext();
|
|
538
540
|
var currentUser = currentUserContext === null || currentUserContext === void 0 ? void 0 : (_currentUserContext$d3 = currentUserContext.data) === null || _currentUserContext$d3 === void 0 ? void 0 : _currentUserContext$d3.data;
|
|
539
|
-
var
|
|
541
|
+
var navigate = useNavigate();
|
|
540
542
|
var compile = useCompile();
|
|
541
543
|
var form = useForm();
|
|
542
544
|
return {
|
|
@@ -588,7 +590,7 @@ export var useCustomizeUpdateActionProps = function useCustomizeUpdateActionProp
|
|
|
588
590
|
if (isURL(onSuccess.redirectTo)) {
|
|
589
591
|
window.location.href = onSuccess.redirectTo;
|
|
590
592
|
} else {
|
|
591
|
-
|
|
593
|
+
navigate(onSuccess.redirectTo);
|
|
592
594
|
}
|
|
593
595
|
}
|
|
594
596
|
case 1:
|
|
@@ -629,7 +631,7 @@ export var useCustomizeBulkUpdateActionProps = function useCustomizeBulkUpdateAc
|
|
|
629
631
|
var selectedRecordKeys = (_ref6 = (_tableBlockContext$fi = (_tableBlockContext$fi2 = tableBlockContext.field) === null || _tableBlockContext$fi2 === void 0 ? void 0 : (_tableBlockContext$fi3 = _tableBlockContext$fi2.data) === null || _tableBlockContext$fi3 === void 0 ? void 0 : _tableBlockContext$fi3.selectedRowKeys) !== null && _tableBlockContext$fi !== void 0 ? _tableBlockContext$fi : expressionScope === null || expressionScope === void 0 ? void 0 : expressionScope.selectedRecordKeys) !== null && _ref6 !== void 0 ? _ref6 : {};
|
|
630
632
|
var currentUserContext = useCurrentUserContext();
|
|
631
633
|
var currentUser = currentUserContext === null || currentUserContext === void 0 ? void 0 : (_currentUserContext$d4 = currentUserContext.data) === null || _currentUserContext$d4 === void 0 ? void 0 : _currentUserContext$d4.data;
|
|
632
|
-
var
|
|
634
|
+
var navigate = useNavigate();
|
|
633
635
|
var compile = useCompile();
|
|
634
636
|
var _useTranslation2 = useTranslation(),
|
|
635
637
|
t = _useTranslation2.t;
|
|
@@ -722,7 +724,7 @@ export var useCustomizeBulkUpdateActionProps = function useCustomizeBulkUpdateAc
|
|
|
722
724
|
if (isURL(onSuccess.redirectTo)) {
|
|
723
725
|
window.location.href = onSuccess.redirectTo;
|
|
724
726
|
} else {
|
|
725
|
-
|
|
727
|
+
navigate(onSuccess.redirectTo);
|
|
726
728
|
}
|
|
727
729
|
}
|
|
728
730
|
case 1:
|
|
@@ -781,7 +783,7 @@ export var useCustomizeBulkEditActionProps = function useCustomizeBulkEditAction
|
|
|
781
783
|
__parent = _useBlockRequestConte5.__parent;
|
|
782
784
|
var expressionScope = useContext(SchemaExpressionScopeContext);
|
|
783
785
|
var actionContext = useActionContext();
|
|
784
|
-
var
|
|
786
|
+
var navigate = useNavigate();
|
|
785
787
|
var compile = useCompile();
|
|
786
788
|
var actionField = useField();
|
|
787
789
|
var tableBlockContext = useTableBlockContext();
|
|
@@ -877,7 +879,7 @@ export var useCustomizeBulkEditActionProps = function useCustomizeBulkEditAction
|
|
|
877
879
|
if (isURL(onSuccess.redirectTo)) {
|
|
878
880
|
window.location.href = onSuccess.redirectTo;
|
|
879
881
|
} else {
|
|
880
|
-
|
|
882
|
+
navigate(onSuccess.redirectTo);
|
|
881
883
|
}
|
|
882
884
|
}
|
|
883
885
|
case 3:
|
|
@@ -911,7 +913,7 @@ export var useCustomizeBulkEditActionProps = function useCustomizeBulkEditAction
|
|
|
911
913
|
export var useCustomizeRequestActionProps = function useCustomizeRequestActionProps() {
|
|
912
914
|
var _currentUserContext$d5;
|
|
913
915
|
var apiClient = useAPIClient();
|
|
914
|
-
var
|
|
916
|
+
var navigate = useNavigate();
|
|
915
917
|
var filterByTk = useFilterByTk();
|
|
916
918
|
var actionSchema = useFieldSchema();
|
|
917
919
|
var compile = useCompile();
|
|
@@ -1015,7 +1017,7 @@ export var useCustomizeRequestActionProps = function useCustomizeRequestActionPr
|
|
|
1015
1017
|
if (isURL(onSuccess.redirectTo)) {
|
|
1016
1018
|
window.location.href = onSuccess.redirectTo;
|
|
1017
1019
|
} else {
|
|
1018
|
-
|
|
1020
|
+
navigate(onSuccess.redirectTo);
|
|
1019
1021
|
}
|
|
1020
1022
|
}
|
|
1021
1023
|
case 1:
|
|
@@ -1057,7 +1059,7 @@ export var useUpdateActionProps = function useUpdateActionProps() {
|
|
|
1057
1059
|
var _useActionContext4 = useActionContext(),
|
|
1058
1060
|
setVisible = _useActionContext4.setVisible;
|
|
1059
1061
|
var actionSchema = useFieldSchema();
|
|
1060
|
-
var
|
|
1062
|
+
var navigate = useNavigate();
|
|
1061
1063
|
var _useCollection5 = useCollection(),
|
|
1062
1064
|
fields = _useCollection5.fields,
|
|
1063
1065
|
getField = _useCollection5.getField;
|
|
@@ -1127,7 +1129,7 @@ export var useUpdateActionProps = function useUpdateActionProps() {
|
|
|
1127
1129
|
if (isURL(onSuccess.redirectTo)) {
|
|
1128
1130
|
window.location.href = onSuccess.redirectTo;
|
|
1129
1131
|
} else {
|
|
1130
|
-
|
|
1132
|
+
navigate(onSuccess.redirectTo);
|
|
1131
1133
|
}
|
|
1132
1134
|
}
|
|
1133
1135
|
case 3:
|
|
@@ -1183,7 +1185,7 @@ export var useDestroyActionProps = function useDestroyActionProps() {
|
|
|
1183
1185
|
});
|
|
1184
1186
|
case 2:
|
|
1185
1187
|
_ref16 = (service === null || service === void 0 ? void 0 : (_service$data = service.data) === null || _service$data === void 0 ? void 0 : _service$data.meta) || {}, _ref16$count = _ref16.count, count = _ref16$count === void 0 ? 0 : _ref16$count, _ref16$page = _ref16.page, page = _ref16$page === void 0 ? 0 : _ref16$page, _ref16$pageSize = _ref16.pageSize, pageSize = _ref16$pageSize === void 0 ? 0 : _ref16$pageSize;
|
|
1186
|
-
if (count % pageSize === 1) {
|
|
1188
|
+
if (count % pageSize === 1 && page !== 1) {
|
|
1187
1189
|
service.run(_objectSpread(_objectSpread({}, service === null || service === void 0 ? void 0 : (_service$params2 = service.params) === null || _service$params2 === void 0 ? void 0 : _service$params2[0]), {}, {
|
|
1188
1190
|
page: page - 1
|
|
1189
1191
|
}));
|
|
@@ -1412,6 +1414,9 @@ var isOptionalField = function isOptionalField(field) {
|
|
|
1412
1414
|
export var useAssociationFilterBlockProps = function useAssociationFilterBlockProps() {
|
|
1413
1415
|
var _fieldSchema$xCompon5, _fieldSchema$xCompon6, _field$componentProps3, _field$componentProps4;
|
|
1414
1416
|
var collectionField = AssociationFilter.useAssociationField();
|
|
1417
|
+
if (!collectionField) {
|
|
1418
|
+
return {};
|
|
1419
|
+
}
|
|
1415
1420
|
var fieldSchema = useFieldSchema();
|
|
1416
1421
|
var optionalFieldList = useOptionalFieldList();
|
|
1417
1422
|
var _useFilterBlock3 = useFilterBlock(),
|
|
@@ -1522,132 +1527,43 @@ export var useAssociationFilterBlockProps = function useAssociationFilterBlockPr
|
|
|
1522
1527
|
labelKey: labelKey
|
|
1523
1528
|
};
|
|
1524
1529
|
};
|
|
1525
|
-
|
|
1526
|
-
var
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
loading = _useRequest3.loading,
|
|
1534
|
-
run = _useRequest3.run;
|
|
1535
|
-
if (loading) {}
|
|
1536
|
-
useEffect(function () {
|
|
1537
|
-
if (schema === null || schema === void 0 ? void 0 : schema.uid) {
|
|
1538
|
-
run();
|
|
1539
|
-
}
|
|
1540
|
-
}, [schema === null || schema === void 0 ? void 0 : schema.uid]);
|
|
1541
|
-
return (schema === null || schema === void 0 ? void 0 : schema.uid) ? new Schema(data === null || data === void 0 ? void 0 : data.data) : null;
|
|
1542
|
-
};
|
|
1543
|
-
export var useAssociationNames = function useAssociationNames(collection) {
|
|
1544
|
-
var _templateSchema$xCom;
|
|
1530
|
+
function getAssociationPath(str) {
|
|
1531
|
+
var lastIndex = str.lastIndexOf('.');
|
|
1532
|
+
if (lastIndex !== -1) {
|
|
1533
|
+
return str.substring(0, lastIndex);
|
|
1534
|
+
}
|
|
1535
|
+
return str;
|
|
1536
|
+
}
|
|
1537
|
+
export var useAssociationNames = function useAssociationNames() {
|
|
1545
1538
|
var _useCollectionManager2 = useCollectionManager(),
|
|
1546
1539
|
getCollectionJoinField = _useCollectionManager2.getCollectionJoinField;
|
|
1547
|
-
var _useSchemaTemplateMan = useSchemaTemplateManager(),
|
|
1548
|
-
getTemplateById = _useSchemaTemplateMan.getTemplateById;
|
|
1549
1540
|
var fieldSchema = useFieldSchema();
|
|
1550
|
-
var
|
|
1551
|
-
var
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
return buf;
|
|
1556
|
-
}, new Schema({}));
|
|
1557
|
-
var templateSchema = formSchema.reduceProperties(function (buf, schema) {
|
|
1558
|
-
if (schema['x-component'] === 'BlockTemplate') {
|
|
1559
|
-
return schema;
|
|
1560
|
-
}
|
|
1561
|
-
return buf;
|
|
1562
|
-
}, null);
|
|
1563
|
-
var getAssociationAppends = function getAssociationAppends(schema) {
|
|
1564
|
-
var arr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
1565
|
-
var data = schema.reduceProperties(function (buf, s) {
|
|
1541
|
+
var updateAssociationValues = new Set([]);
|
|
1542
|
+
var appends = new Set([]);
|
|
1543
|
+
var getAssociationAppends = function getAssociationAppends(schema, str) {
|
|
1544
|
+
schema.reduceProperties(function (pre, s) {
|
|
1545
|
+
var prefix = pre || str;
|
|
1566
1546
|
var collectionfield = s['x-collection-field'] && getCollectionJoinField(s['x-collection-field']);
|
|
1567
|
-
|
|
1547
|
+
var isAssociationSubfield = s.name.includes('.');
|
|
1548
|
+
var isAssociationField = collectionfield && ['hasOne', 'hasMany', 'belongsTo', 'belongsToMany'].includes(collectionfield.type);
|
|
1549
|
+
if (collectionfield && (isAssociationField || isAssociationSubfield) && s['x-component'] !== 'TableField') {
|
|
1568
1550
|
var _s$xComponentProps;
|
|
1569
|
-
|
|
1551
|
+
var fieldPath = !isAssociationField && isAssociationSubfield ? getAssociationPath(s.name) : s.name;
|
|
1552
|
+
var path = prefix === '' || !prefix ? fieldPath : prefix + '.' + fieldPath;
|
|
1553
|
+
appends.add(path);
|
|
1570
1554
|
if (['Nester', 'SubTable'].includes((_s$xComponentProps = s['x-component-props']) === null || _s$xComponentProps === void 0 ? void 0 : _s$xComponentProps.mode)) {
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
return getAssociationAppends(s, buf);
|
|
1575
|
-
}
|
|
1576
|
-
return buf;
|
|
1577
|
-
} else {
|
|
1578
|
-
if (s['x-component'] === 'Grid.Row') {
|
|
1579
|
-
var _buf$concat;
|
|
1580
|
-
var kk = buf === null || buf === void 0 ? void 0 : (_buf$concat = buf.concat) === null || _buf$concat === void 0 ? void 0 : _buf$concat.call(buf);
|
|
1581
|
-
return getNesterAppends(s, kk || []);
|
|
1582
|
-
} else {
|
|
1583
|
-
var _s$xComponent;
|
|
1584
|
-
return !((_s$xComponent = s['x-component']) === null || _s$xComponent === void 0 ? void 0 : _s$xComponent.includes('Action.')) && s['x-component'] !== 'TableField' ? getAssociationAppends(s, buf) : buf;
|
|
1555
|
+
updateAssociationValues.add(path);
|
|
1556
|
+
var bufPrefix = prefix && prefix !== '' ? prefix + '.' + s.name : s.name;
|
|
1557
|
+
getAssociationAppends(s, bufPrefix);
|
|
1585
1558
|
}
|
|
1559
|
+
} else if (!['ActionBar', 'Action', 'Action.Link', 'Action.Modal', 'Selector', 'Viewer', 'AddNewer', 'AssociationField.Selector', 'AssociationField.AddNewer', 'TableField'].includes(s['x-component'])) {
|
|
1560
|
+
getAssociationAppends(s, str);
|
|
1586
1561
|
}
|
|
1587
|
-
},
|
|
1588
|
-
return data || [];
|
|
1562
|
+
}, str);
|
|
1589
1563
|
};
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
if (Array.isArray(list[i])) {
|
|
1595
|
-
"".concat(prefix) !== "".concat(list[i][0]) && flattenHelper(list[i], "".concat(prefix, ".").concat(list[i][0]));
|
|
1596
|
-
} else {
|
|
1597
|
-
var searchTerm = ".".concat(list[i]);
|
|
1598
|
-
var lastIndex = prefix.lastIndexOf(searchTerm);
|
|
1599
|
-
var str = '';
|
|
1600
|
-
if (lastIndex !== -1) {
|
|
1601
|
-
str = prefix.slice(0, lastIndex) + prefix.slice(lastIndex + searchTerm.length);
|
|
1602
|
-
}
|
|
1603
|
-
if (!str) {
|
|
1604
|
-
!list.includes(str) && flattenedList.push("".concat(list[i]));
|
|
1605
|
-
} else {
|
|
1606
|
-
!list.includes(str) ? flattenedList.push("".concat(str, ".").concat(list[i])) : flattenedList.push(str);
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
}
|
|
1611
|
-
for (var i = 0; i < nestedList.length; i++) {
|
|
1612
|
-
flattenHelper(nestedList[i], nestedList[i][0]);
|
|
1613
|
-
}
|
|
1614
|
-
return uniq(flattenedList.filter(function (obj) {
|
|
1615
|
-
return !(obj === null || obj === void 0 ? void 0 : obj.startsWith('.'));
|
|
1616
|
-
}));
|
|
1617
|
-
}
|
|
1618
|
-
var getNesterAppends = function getNesterAppends(gridSchema, data) {
|
|
1619
|
-
gridSchema.reduceProperties(function (buf, s) {
|
|
1620
|
-
buf.push(getAssociationAppends(s));
|
|
1621
|
-
return buf;
|
|
1622
|
-
}, data);
|
|
1623
|
-
return data.filter(function (g) {
|
|
1624
|
-
return g.length;
|
|
1625
|
-
});
|
|
1564
|
+
getAssociationAppends(fieldSchema, '');
|
|
1565
|
+
return {
|
|
1566
|
+
appends: _toConsumableArray(appends),
|
|
1567
|
+
updateAssociationValues: _toConsumableArray(updateAssociationValues)
|
|
1626
1568
|
};
|
|
1627
|
-
var template = getTemplateById(templateSchema === null || templateSchema === void 0 ? void 0 : (_templateSchema$xCom = templateSchema['x-component-props']) === null || _templateSchema$xCom === void 0 ? void 0 : _templateSchema$xCom.templateId);
|
|
1628
|
-
var schema = getTemplateSchema(template);
|
|
1629
|
-
if (schema) {
|
|
1630
|
-
var associations = getAssociationAppends(schema);
|
|
1631
|
-
var appends = flattenNestedList(associations);
|
|
1632
|
-
return {
|
|
1633
|
-
appends: appends,
|
|
1634
|
-
updateAssociationValues: appends.filter(function (item) {
|
|
1635
|
-
return associationValues.some(function (suffix) {
|
|
1636
|
-
return item.endsWith(suffix);
|
|
1637
|
-
});
|
|
1638
|
-
})
|
|
1639
|
-
};
|
|
1640
|
-
}
|
|
1641
|
-
if (!schema) {
|
|
1642
|
-
var _associations = getAssociationAppends(formSchema);
|
|
1643
|
-
var _appends = flattenNestedList(_associations);
|
|
1644
|
-
return {
|
|
1645
|
-
appends: _appends,
|
|
1646
|
-
updateAssociationValues: _appends.filter(function (item) {
|
|
1647
|
-
return associationValues.some(function (suffix) {
|
|
1648
|
-
return item.endsWith(suffix);
|
|
1649
|
-
});
|
|
1650
|
-
})
|
|
1651
|
-
};
|
|
1652
|
-
}
|
|
1653
1569
|
};
|
|
@@ -10,4 +10,5 @@ export * from './TableFieldProvider';
|
|
|
10
10
|
export * from './TableSelectorProvider';
|
|
11
11
|
export * from './FormFieldProvider';
|
|
12
12
|
export * from './GanttBlockProvider';
|
|
13
|
-
export * from './SharedFilterProvider';
|
|
13
|
+
export * from './SharedFilterProvider';
|
|
14
|
+
export * from './hooks';
|
package/es/board/Card.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function Card({ children, index, renderCard, disableCardDrag }: {
|
|
3
3
|
children: any;
|
|
4
4
|
index: any;
|
|
5
5
|
renderCard: any;
|
|
6
6
|
disableCardDrag: any;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
8
|
export default Card;
|
package/es/board/CardAdder.d.ts
CHANGED
package/es/board/CardForm.d.ts
CHANGED
package/es/board/Column.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function Column({ children, index: columnIndex, renderCard, renderCardAdder, renderColumnHeader, disableColumnDrag, disableCardDrag, onCardNew, allowAddCard, cardAdderPosition, }: {
|
|
3
3
|
children: any;
|
|
4
4
|
index: any;
|
|
@@ -6,12 +6,12 @@ declare function Column({ children, index: columnIndex, renderCard, renderCardAd
|
|
|
6
6
|
renderCardAdder?: ({ column, onConfirm }: {
|
|
7
7
|
column: any;
|
|
8
8
|
onConfirm: any;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
renderColumnHeader: any;
|
|
11
11
|
disableColumnDrag: any;
|
|
12
12
|
disableCardDrag: any;
|
|
13
13
|
onCardNew: any;
|
|
14
14
|
allowAddCard: any;
|
|
15
15
|
cardAdderPosition?: string;
|
|
16
|
-
}): JSX.Element;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
17
|
export default Column;
|
package/es/board/ColumnForm.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function DefaultCard({ children: card, dragging, allowRemoveCard, onCardRemove }: {
|
|
3
3
|
children: any;
|
|
4
4
|
dragging: any;
|
|
5
5
|
allowRemoveCard: any;
|
|
6
6
|
onCardRemove: any;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
8
|
export default DefaultCard;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare function DefaultColumnHeader({ children: column, allowRemoveColumn, onColumnRemove, allowRenameColumn, onColumnRename, }: {
|
|
3
3
|
children: any;
|
|
4
4
|
allowRemoveColumn: any;
|
|
5
5
|
onColumnRemove: any;
|
|
6
6
|
allowRenameColumn: any;
|
|
7
7
|
onColumnRename: any;
|
|
8
|
-
}): JSX.Element;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
export default DefaultColumnHeader;
|
package/es/board/Kanban.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ChinaRegionProvider: (props: any) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const InternalFallbackField: () => JSX.Element;
|
|
2
|
+
export declare const InternalFallbackField: () => React.JSX.Element;
|
|
3
3
|
export declare const CollectionField: React.ForwardRefExoticComponent<Pick<Partial<any>, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
4
4
|
export default CollectionField;
|
|
@@ -46,7 +46,8 @@ var InternalField = function InternalField(props) {
|
|
|
46
46
|
setFieldProps('title', uiSchema.title);
|
|
47
47
|
setFieldProps('description', uiSchema.description);
|
|
48
48
|
if (ctx === null || ctx === void 0 ? void 0 : ctx.form) {
|
|
49
|
-
|
|
49
|
+
var defaultVal = fieldSchema.default || defaultValue;
|
|
50
|
+
defaultVal !== null && defaultVal !== undefined && setFieldProps('initialValue', defaultVal);
|
|
50
51
|
}
|
|
51
52
|
if (!field.validator && (uiSchema['x-validator'] || fieldSchema['x-validator'])) {
|
|
52
53
|
var concatSchema = concat([], uiSchema['x-validator'] || [], fieldSchema['x-validator'] || []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollectionManagerOptions } from './types';
|
|
3
3
|
export declare const CollectionManagerProvider: React.FC<CollectionManagerOptions>;
|
|
4
|
-
export declare const RemoteCollectionManagerProvider: (props: any) => JSX.Element;
|
|
5
|
-
export declare const CollectionCategroriesProvider: (props: any) => JSX.Element;
|
|
4
|
+
export declare const RemoteCollectionManagerProvider: (props: any) => React.JSX.Element;
|
|
5
|
+
export declare const CollectionCategroriesProvider: (props: any) => React.JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const CollectionManagerShortcut2: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CollectionManagerPane: () => React.JSX.Element;
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
-
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."); }
|
|
4
|
-
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); }
|
|
5
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
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; } }
|
|
7
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
2
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
3
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
4
|
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); }
|
|
11
|
-
import { DatabaseOutlined } from '@ant-design/icons';
|
|
12
5
|
import { uid } from '@formily/shared';
|
|
13
|
-
import React
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { PluginManager } from '../plugin-manager';
|
|
17
|
-
import { ActionContext, SchemaComponent } from '../schema-component';
|
|
18
|
-
import { AddCollectionField, AddFieldAction, ConfigurationTable, EditFieldAction, EditCollectionField, OverridingFieldAction, OverridingCollectionField, ViewCollectionField, ViewFieldAction, AddCollection, AddCollectionAction, AddCategoryAction, AddCategory, EditCollection, EditCollectionAction, ConfigurationTabs, EditCategory, EditCategoryAction, SyncFieldsAction, SyncFieldsActionCom } from './Configuration';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { SchemaComponent } from '../schema-component';
|
|
8
|
+
import { AddCategory, AddCategoryAction, AddCollection, AddCollectionAction, AddCollectionField, AddFieldAction, ConfigurationTable, ConfigurationTabs, EditCategory, EditCategoryAction, EditCollection, EditCollectionAction, EditCollectionField, EditFieldAction, OverridingCollectionField, OverridingFieldAction, SyncFieldsAction, SyncFieldsActionCom, ViewCollectionField, ViewFieldAction } from './Configuration';
|
|
19
9
|
import { CollectionCategroriesProvider } from './CollectionManagerProvider';
|
|
20
10
|
var schema = {
|
|
21
11
|
type: 'object',
|
|
@@ -69,51 +59,4 @@ export var CollectionManagerPane = function CollectionManagerPane() {
|
|
|
69
59
|
})
|
|
70
60
|
// </Card>
|
|
71
61
|
);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export var CollectionManagerShortcut = function CollectionManagerShortcut() {
|
|
75
|
-
var _useTranslation = useTranslation(),
|
|
76
|
-
t = _useTranslation.t;
|
|
77
|
-
var history = useHistory();
|
|
78
|
-
return /*#__PURE__*/React.createElement(PluginManager.Toolbar.Item, {
|
|
79
|
-
icon: /*#__PURE__*/React.createElement(DatabaseOutlined, null),
|
|
80
|
-
title: t('Collections & Fields'),
|
|
81
|
-
onClick: function onClick() {
|
|
82
|
-
history.push('/admin/settings/collection-manager/collections');
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
export var CollectionManagerShortcut2 = function CollectionManagerShortcut2() {
|
|
87
|
-
var _useState = useState(false),
|
|
88
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
89
|
-
visible = _useState2[0],
|
|
90
|
-
setVisible = _useState2[1];
|
|
91
|
-
var _useTranslation2 = useTranslation(),
|
|
92
|
-
t = _useTranslation2.t;
|
|
93
|
-
return /*#__PURE__*/React.createElement(ActionContext.Provider, {
|
|
94
|
-
value: {
|
|
95
|
-
visible: visible,
|
|
96
|
-
setVisible: setVisible
|
|
97
|
-
}
|
|
98
|
-
}, /*#__PURE__*/React.createElement(PluginManager.Toolbar.Item, {
|
|
99
|
-
icon: /*#__PURE__*/React.createElement(DatabaseOutlined, null),
|
|
100
|
-
title: t('Collections & Fields'),
|
|
101
|
-
onClick: function onClick() {
|
|
102
|
-
setVisible(true);
|
|
103
|
-
}
|
|
104
|
-
}), /*#__PURE__*/React.createElement(SchemaComponent, {
|
|
105
|
-
schema: schema,
|
|
106
|
-
components: {
|
|
107
|
-
ConfigurationTable: ConfigurationTable,
|
|
108
|
-
ConfigurationTabs: ConfigurationTabs,
|
|
109
|
-
AddFieldAction: AddFieldAction,
|
|
110
|
-
EditFieldAction: EditFieldAction,
|
|
111
|
-
OverridingFieldAction: OverridingFieldAction,
|
|
112
|
-
ViewFieldAction: ViewFieldAction,
|
|
113
|
-
AddCollectionAction: AddCollectionAction,
|
|
114
|
-
EditCollectionAction: EditCollectionAction,
|
|
115
|
-
AddCategoryAction: AddCategoryAction,
|
|
116
|
-
EditCategoryAction: EditCategoryAction
|
|
117
|
-
}
|
|
118
|
-
}));
|
|
119
62
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const AddCategory: (props: any) => React.JSX.Element;
|
|
3
|
+
export declare const AddCategoryAction: (props: any) => React.JSX.Element;
|
|
@@ -19,7 +19,7 @@ import { cloneDeep } from 'lodash';
|
|
|
19
19
|
import React, { useContext, useState } from 'react';
|
|
20
20
|
import { useTranslation } from 'react-i18next';
|
|
21
21
|
import { useAPIClient } from '../../api-client';
|
|
22
|
-
import {
|
|
22
|
+
import { ActionContextProvider, SchemaComponent, useActionContext } from '../../schema-component';
|
|
23
23
|
import { useCancelAction } from '../action-hooks';
|
|
24
24
|
import { CollectionCategroriesContext } from '../context';
|
|
25
25
|
import * as components from './components';
|
|
@@ -74,7 +74,7 @@ export var AddCategoryAction = function AddCategoryAction(props) {
|
|
|
74
74
|
setVisible = _useState2[1];
|
|
75
75
|
var _useTranslation = useTranslation(),
|
|
76
76
|
t = _useTranslation.t;
|
|
77
|
-
return /*#__PURE__*/React.createElement(
|
|
77
|
+
return /*#__PURE__*/React.createElement(ActionContextProvider, {
|
|
78
78
|
value: {
|
|
79
79
|
visible: visible,
|
|
80
80
|
setVisible: setVisible
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const AddCollection: (props: any) => React.JSX.Element;
|
|
3
|
+
export declare const AddCollectionAction: (props: any) => React.JSX.Element;
|
|
@@ -27,7 +27,7 @@ import React, { useState } from 'react';
|
|
|
27
27
|
import { useTranslation } from 'react-i18next';
|
|
28
28
|
import { useRequest } from '../../api-client';
|
|
29
29
|
import { RecordProvider, useRecord } from '../../record-provider';
|
|
30
|
-
import {
|
|
30
|
+
import { ActionContextProvider, SchemaComponent, useActionContext, useCompile } from '../../schema-component';
|
|
31
31
|
import { useResourceActionContext, useResourceContext } from '../ResourceActionProvider';
|
|
32
32
|
import { useCancelAction } from '../action-hooks';
|
|
33
33
|
import { useCollectionManager } from '../hooks';
|
|
@@ -325,7 +325,7 @@ export var AddCollectionAction = function AddCollectionAction(props) {
|
|
|
325
325
|
category = _useResourceActionCon2.state.category;
|
|
326
326
|
return /*#__PURE__*/React.createElement(RecordProvider, {
|
|
327
327
|
record: record
|
|
328
|
-
}, /*#__PURE__*/React.createElement(
|
|
328
|
+
}, /*#__PURE__*/React.createElement(ActionContextProvider, {
|
|
329
329
|
value: {
|
|
330
330
|
visible: visible,
|
|
331
331
|
setVisible: setVisible
|