@tachybase/client 1.3.9 → 1.3.11
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/es/api-client/APIClient.mjs +20 -20
- package/es/api-client/APIClientProvider.mjs +3 -3
- package/es/api-client/context.mjs +3 -3
- package/es/api-client/hooks/assign.mjs +8 -8
- package/es/api-client/hooks/useAPIClient.mjs +3 -3
- package/es/api-client/hooks/useRequest.mjs +14 -14
- package/es/api-client/hooks/useResource.mjs +2 -2
- package/es/application/AppSchemaComponentProvider.mjs +8 -8
- package/es/application/Application.mjs +95 -110
- package/es/application/CustomRouterContextProvider.mjs +72 -72
- package/es/application/NoticesManager.mjs +21 -21
- package/es/application/Plugin.mjs +1 -1
- package/es/application/PluginManager.mjs +5 -5
- package/es/application/RouterManager.mjs +26 -26
- package/es/application/SystemSettingsManager.mjs +9 -9
- package/es/application/UserSettingsManager.mjs +9 -9
- package/es/application/WebSocketClient.mjs +11 -11
- package/es/application/components/AppComponent.mjs +14 -14
- package/es/application/components/BlankComponent.mjs +2 -2
- package/es/application/components/MainComponent.mjs +8 -8
- package/es/application/components/RouterContextCleaner.mjs +5 -5
- package/es/application/components/SharePage.mjs +40 -40
- package/es/application/components/ShareSchemaComponent.mjs +5 -5
- package/es/application/components/defaultComponents.mjs +7 -7
- package/es/application/context.mjs +2 -2
- package/es/application/hoc/withDynamicSchemaProps.mjs +21 -21
- package/es/application/hooks/useApp.mjs +3 -3
- package/es/application/hooks/useGlobalVariable.mjs +6 -6
- package/es/application/hooks/usePlugin.mjs +2 -2
- package/es/application/hooks/useRouter.mjs +2 -2
- package/es/application/index.mjs +2 -3
- package/es/application/schema-initializer/components/SchemaInitializerActionModal.mjs +15 -15
- package/es/application/schema-initializer/components/SchemaInitializerButton.mjs +12 -12
- package/es/application/schema-initializer/components/SchemaInitializerChildren.mjs +12 -12
- package/es/application/schema-initializer/components/SchemaInitializerDivider.mjs +4 -4
- package/es/application/schema-initializer/components/SchemaInitializerItem.mjs +28 -28
- package/es/application/schema-initializer/components/SchemaInitializerItemGroup.mjs +16 -16
- package/es/application/schema-initializer/components/SchemaInitializerItems.mjs +3 -3
- package/es/application/schema-initializer/components/SchemaInitializerSelect.mjs +14 -14
- package/es/application/schema-initializer/components/SchemaInitializerSubMenu.mjs +29 -29
- package/es/application/schema-initializer/components/SchemaInitializerSwitch.mjs +11 -11
- package/es/application/schema-initializer/components/style.mjs +2 -2
- package/es/application/schema-initializer/context/index.mjs +5 -5
- package/es/application/schema-initializer/hoc/index.mjs +25 -25
- package/es/application/schema-initializer/hooks/index.mjs +20 -20
- package/es/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.mjs +4 -4
- package/es/application/schema-settings/SchemaSettingsDefaults.mjs +25 -25
- package/es/application/schema-settings/SchemaSettingsManager.mjs +3 -6
- package/es/application/schema-settings/components/SchemaSettingsChildren.mjs +31 -31
- package/es/application/schema-settings/components/SchemaSettingsIcon.mjs +8 -8
- package/es/application/schema-settings/components/SchemaSettingsWrapper.mjs +15 -15
- package/es/application/schema-settings/context/index.mjs +3 -3
- package/es/application/schema-settings/hooks/index.mjs +8 -8
- package/es/application/schema-toolbar/context/index.mjs +5 -5
- package/es/application/schema-toolbar/hooks/index.mjs +9 -9
- package/es/application/utils/globalDeps.mjs +52 -52
- package/es/application/utils/index.mjs +7 -7
- package/es/async-data-provider/index.mjs +8 -8
- package/es/block-provider/BlockProvider.mjs +79 -79
- package/es/block-provider/DetailsBlockProvider.mjs +33 -33
- package/es/block-provider/FilterFormBlockProvider.mjs +8 -8
- package/es/block-provider/FormBlockProvider.mjs +50 -50
- package/es/block-provider/FormFieldProvider.mjs +34 -34
- package/es/block-provider/MobileProvider.mjs +4 -4
- package/es/block-provider/PageLayout.mjs +2 -2
- package/es/block-provider/TableBlockProvider.mjs +37 -39
- package/es/block-provider/TableFieldProvider.mjs +32 -32
- package/es/block-provider/TableSelectorProvider.mjs +75 -77
- package/es/block-provider/TreeBlockProvider.mjs +30 -30
- package/es/block-provider/hooks/index.mjs +270 -283
- package/es/block-provider/hooks/useDataBlockSourceId.mjs +6 -6
- package/es/block-provider/hooks/useFormActiveFields.mjs +8 -8
- package/es/block-provider/hooks/useIsMobile.mjs +3 -3
- package/es/block-provider/hooks/useParsedFilter.mjs +20 -20
- package/es/built-in/acl/ACLPlugin.mjs +7 -7
- package/es/built-in/acl/ACLProvider.mjs +71 -71
- package/es/built-in/acl/ACLShortcut.mjs +9 -9
- package/es/built-in/acl/Configuration/ConfigureCenter.mjs +29 -29
- package/es/built-in/acl/Configuration/MenuConfigure.mjs +23 -23
- package/es/built-in/acl/Configuration/MenuItemsProvider.mjs +12 -12
- package/es/built-in/acl/Configuration/PermisionProvider.mjs +16 -16
- package/es/built-in/acl/Configuration/RoleConfigure.mjs +29 -29
- package/es/built-in/acl/Configuration/RoleTable.mjs +21 -21
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +43 -43
- package/es/built-in/acl/Configuration/ScopeSelect.mjs +14 -14
- package/es/built-in/acl/Configuration/StrategyActions.mjs +18 -18
- package/es/built-in/acl/Configuration/index.mjs +7 -14
- package/es/built-in/acl/Configuration/schemas/roles.mjs +14 -14
- package/es/built-in/acl/Configuration/schemas/scopes.mjs +15 -15
- package/es/built-in/acl/Configuration/schemas/useRoleResourceValues.mjs +9 -12
- package/es/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.mjs +7 -7
- package/es/built-in/acl/style.mjs +2 -2
- package/es/built-in/admin-layout/AdminContent.mjs +5 -9
- package/es/built-in/admin-layout/AdminLayout.mjs +13 -13
- package/es/built-in/admin-layout/AdminLayoutPlugin.mjs +6 -6
- package/es/built-in/admin-layout/AdminProvider.mjs +13 -13
- package/es/built-in/admin-layout/AdminTabs.mjs +4 -4
- package/es/built-in/admin-layout/InternalAdminLayout.mjs +34 -34
- package/es/built-in/admin-layout/MenuEditor.mjs +39 -38
- package/es/built-in/admin-layout/NoticeArea.mjs +7 -7
- package/es/built-in/admin-layout/components/AddNewButton.mjs +22 -22
- package/es/built-in/admin-layout/components/WelcomeCard.mjs +24 -24
- package/es/built-in/admin-layout/style.mjs +2 -2
- package/es/built-in/attachment-preview/index.mjs +11 -11
- package/es/built-in/attachment-preview/previewers/file-default.mjs +11 -11
- package/es/built-in/attachment-preview/previewers/file-pdf.mjs +31 -31
- package/es/built-in/attachment-preview/previewers/file-pdf.style.mjs +2 -2
- package/es/built-in/attachment-preview/previewers/file-sheet.mjs +25 -25
- package/es/built-in/attachment-preview/previewers/file-sheet.style.mjs +2 -2
- package/es/built-in/attachment-preview/previewers/image-jpeg.mjs +3 -3
- package/es/built-in/attachment-preview/previewers/image-png.mjs +3 -3
- package/es/built-in/attachment-preview/previewers/image-svg.mjs +3 -3
- package/es/built-in/block-schema-component/index.mjs +73 -73
- package/es/built-in/built-in-collections/index.mjs +5 -5
- package/es/built-in/context-menu/ContextMenu.provider.mjs +21 -21
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +13 -13
- package/es/built-in/context-menu/index.mjs +14 -16
- package/es/built-in/context-menu/useContextMenu.mjs +3 -3
- package/es/built-in/document-title/index.mjs +20 -20
- package/es/built-in/dynamic-page/DynamicPage.mjs +14 -14
- package/es/built-in/dynamic-page/index.mjs +13 -13
- package/es/built-in/dynamic-page/style.mjs +3 -3
- package/es/built-in/dynamic-page/utils.mjs +1 -1
- package/es/built-in/index.mjs +112 -111
- package/es/built-in/locale/LocalePlugin.mjs +22 -22
- package/es/built-in/locale/loadConstrueLocale.mjs +2 -2
- package/es/built-in/page-style/CustomAdminHeader.mjs +5 -5
- package/es/built-in/page-style/PageStyle.provider.mjs +12 -12
- package/es/built-in/page-style/TabContent.mjs +18 -18
- package/es/built-in/page-style/TabHeader.mjs +23 -23
- package/es/built-in/page-style/TabHeader.style.mjs +2 -2
- package/es/built-in/page-style/index.mjs +8 -8
- package/es/built-in/page-style/usePageStyle.mjs +3 -3
- package/es/built-in/page-style/useTabSettings.mjs +17 -17
- package/es/built-in/pinned-list/PinnedPluginListProvider.mjs +17 -17
- package/es/built-in/pinned-list/PluginPinnedList.mjs +4 -4
- package/es/built-in/pinned-list/context.mjs +2 -2
- package/es/built-in/pm/PluginCard.mjs +54 -60
- package/es/built-in/pm/PluginDetail.mjs +83 -83
- package/es/built-in/pm/PluginDocument.mjs +20 -20
- package/es/built-in/pm/PluginForm/form/PluginNpmForm.mjs +17 -17
- package/es/built-in/pm/PluginForm/form/PluginUploadForm.mjs +15 -15
- package/es/built-in/pm/PluginForm/form/PluginUrlForm.mjs +15 -15
- package/es/built-in/pm/PluginForm/modal/PluginAddModal.mjs +20 -20
- package/es/built-in/pm/PluginForm/modal/PluginUpgradeModal.mjs +20 -20
- package/es/built-in/pm/PluginManager.mjs +66 -66
- package/es/built-in/pm/index.mjs +17 -21
- package/es/built-in/pm/style.mjs +2 -2
- package/es/built-in/quick-access/Action.mjs +25 -25
- package/es/built-in/quick-access/Block.mjs +40 -40
- package/es/built-in/quick-access/CustomRequestActionSchemaInitializerItem.mjs +12 -12
- package/es/built-in/quick-access/LinkActionSchemaInitializerItem.mjs +13 -13
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +19 -19
- package/es/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +12 -12
- package/es/built-in/quick-access/SchemaSettingsBlockTitleItem.mjs +11 -11
- package/es/built-in/quick-access/blockInitializerItem.mjs +6 -6
- package/es/built-in/quick-access/blockSettings.mjs +15 -15
- package/es/built-in/quick-access/configureActions.mjs +4 -4
- package/es/built-in/quick-access/index.mjs +21 -21
- package/es/built-in/scroll-assistant/ScrollAssistant.provider.mjs +11 -11
- package/es/built-in/scroll-assistant/ScrollAssistantStatus.provider.mjs +6 -6
- package/es/built-in/scroll-assistant/index.mjs +8 -8
- package/es/built-in/scroll-assistant/useJoystick.mjs +5 -7
- package/es/built-in/setting-layout/AdminSettings.mjs +27 -27
- package/es/built-in/setting-layout/SettingLayout.mjs +38 -38
- package/es/built-in/setting-layout/SettingsCenterDropdown.mjs +18 -18
- package/es/built-in/setting-layout/style.mjs +2 -2
- package/es/built-in/system-settings/SystemSettingsProvider.mjs +7 -7
- package/es/built-in/system-settings/SystemSettingsShortcut.mjs +27 -27
- package/es/built-in/system-settings/index.mjs +5 -8
- package/es/built-in/system-version/SystemVersion.provider.mjs +12 -12
- package/es/built-in/system-version/index.mjs +4 -4
- package/es/built-in/user-settings/UserSettingsLayout.mjs +37 -37
- package/es/built-in/user-settings/index.mjs +9 -9
- package/es/built-in/user-settings/style.mjs +2 -2
- package/es/collection-manager/CollectionHistoryProvider.mjs +13 -13
- package/es/collection-manager/CollectionManagerProvider.mjs +18 -18
- package/es/collection-manager/CollectionManagerSchemaComponentProvider.mjs +13 -13
- package/es/collection-manager/CollectionProvider_deprecated.mjs +6 -6
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +60 -60
- package/es/collection-manager/Configuration/AddFieldAction.mjs +64 -64
- package/es/collection-manager/Configuration/AddSubFieldAction.mjs +38 -38
- package/es/collection-manager/Configuration/DeleteCollectionAction.mjs +43 -43
- package/es/collection-manager/Configuration/EditCollectionAction.mjs +44 -44
- package/es/collection-manager/Configuration/EditFieldAction.mjs +55 -55
- package/es/collection-manager/Configuration/EditSubFieldAction.mjs +32 -32
- package/es/collection-manager/Configuration/ImportCollectionMetaAction.mjs +30 -30
- package/es/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.mjs +53 -53
- package/es/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.mjs +4 -4
- package/es/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.mjs +17 -17
- package/es/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.mjs +15 -21
- package/es/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.mjs +53 -53
- package/es/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.mjs +3 -3
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +39 -39
- package/es/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.mjs +7 -7
- package/es/collection-manager/Configuration/OverridingCollectionField.mjs +51 -51
- package/es/collection-manager/Configuration/SyncFieldsAction.mjs +48 -48
- package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +40 -40
- package/es/collection-manager/Configuration/ViewInheritedField.mjs +40 -40
- package/es/collection-manager/Configuration/components/CollectionCategory.mjs +8 -8
- package/es/collection-manager/Configuration/components/CollectionFieldInterfaceTag.mjs +9 -9
- package/es/collection-manager/Configuration/components/CollectionTemplateTag.mjs +9 -9
- package/es/collection-manager/Configuration/components/FieldSummary.mjs +9 -9
- package/es/collection-manager/Configuration/components/Summary.mjs +16 -16
- package/es/collection-manager/Configuration/components/TemplateSummary.mjs +9 -9
- package/es/collection-manager/Configuration/components/index.mjs +96 -96
- package/es/collection-manager/Configuration/index.mjs +2 -2
- package/es/collection-manager/Configuration/interfaces.mjs +4 -4
- package/es/collection-manager/ResourceActionProvider.mjs +33 -33
- package/es/collection-manager/action-hooks.mjs +103 -104
- package/es/collection-manager/collectionPlugin.mjs +61 -61
- package/es/collection-manager/context.mjs +2 -2
- package/es/collection-manager/hooks/useCollectionDataSource.mjs +6 -6
- package/es/collection-manager/hooks/useCollectionField_deprecated.mjs +10 -10
- package/es/collection-manager/hooks/useCollectionManager_deprecated.mjs +57 -57
- package/es/collection-manager/hooks/useCollection_deprecated.mjs +17 -17
- package/es/collection-manager/hooks/useDialect.mjs +5 -5
- package/es/collection-manager/index.mjs +5 -13
- package/es/collection-manager/interfaces/checkbox.mjs +5 -5
- package/es/collection-manager/interfaces/checkboxGroup.mjs +6 -6
- package/es/collection-manager/interfaces/chinaRegion.mjs +9 -9
- package/es/collection-manager/interfaces/collection.mjs +6 -6
- package/es/collection-manager/interfaces/color.mjs +5 -5
- package/es/collection-manager/interfaces/components/index.mjs +14 -14
- package/es/collection-manager/interfaces/createdAt.mjs +6 -6
- package/es/collection-manager/interfaces/createdBy.mjs +6 -6
- package/es/collection-manager/interfaces/datetime.mjs +6 -6
- package/es/collection-manager/interfaces/email.mjs +6 -6
- package/es/collection-manager/interfaces/icon.mjs +4 -4
- package/es/collection-manager/interfaces/id.mjs +4 -4
- package/es/collection-manager/interfaces/input.mjs +13 -13
- package/es/collection-manager/interfaces/integer.mjs +13 -13
- package/es/collection-manager/interfaces/json.mjs +11 -11
- package/es/collection-manager/interfaces/linkTo.mjs +8 -8
- package/es/collection-manager/interfaces/m2m.mjs +14 -14
- package/es/collection-manager/interfaces/m2o.mjs +10 -10
- package/es/collection-manager/interfaces/markdown.mjs +8 -8
- package/es/collection-manager/interfaces/multipleSelect.mjs +6 -6
- package/es/collection-manager/interfaces/nanoid.mjs +4 -4
- package/es/collection-manager/interfaces/number.mjs +9 -9
- package/es/collection-manager/interfaces/o2m.mjs +8 -8
- package/es/collection-manager/interfaces/o2o.mjs +22 -22
- package/es/collection-manager/interfaces/password.mjs +8 -8
- package/es/collection-manager/interfaces/percent.mjs +14 -14
- package/es/collection-manager/interfaces/phone.mjs +6 -6
- package/es/collection-manager/interfaces/properties/index.mjs +4 -4
- package/es/collection-manager/interfaces/properties/operators.mjs +5 -5
- package/es/collection-manager/interfaces/radioGroup.mjs +6 -6
- package/es/collection-manager/interfaces/richText.mjs +8 -8
- package/es/collection-manager/interfaces/select.mjs +6 -6
- package/es/collection-manager/interfaces/sort.mjs +8 -8
- package/es/collection-manager/interfaces/subTable.mjs +7 -7
- package/es/collection-manager/interfaces/tableoid.mjs +4 -4
- package/es/collection-manager/interfaces/textarea.mjs +8 -8
- package/es/collection-manager/interfaces/time.mjs +5 -5
- package/es/collection-manager/interfaces/unixTimestamp.mjs +5 -5
- package/es/collection-manager/interfaces/updatedAt.mjs +6 -6
- package/es/collection-manager/interfaces/updatedBy.mjs +6 -6
- package/es/collection-manager/interfaces/url.mjs +5 -5
- package/es/collection-manager/interfaces/uuid.mjs +4 -4
- package/es/collection-manager/mixins/InheritanceCollectionMixin.mjs +13 -13
- package/es/collection-manager/sub-table.mjs +42 -42
- package/es/collection-manager/templates/components/PresetFields.mjs +22 -22
- package/es/collection-manager/templates/components/PreviewFields.mjs +57 -57
- package/es/collection-manager/templates/components/PreviewTable.mjs +34 -34
- package/es/collection-manager/templates/components/sql-collection/FieldsConfigure.mjs +75 -77
- package/es/collection-manager/templates/components/sql-collection/PreviewTable.mjs +13 -13
- package/es/collection-manager/templates/components/sql-collection/SQLInput.mjs +21 -21
- package/es/collection-manager/templates/components/sql-collection/SQLRequestProvider.mjs +15 -15
- package/es/collection-manager/templates/expression.mjs +6 -6
- package/es/collection-manager/templates/general.mjs +4 -4
- package/es/collection-manager/templates/import.mjs +2 -2
- package/es/collection-manager/templates/properties/index.mjs +3 -3
- package/es/collection-manager/templates/sql.mjs +11 -11
- package/es/collection-manager/templates/tree.mjs +4 -4
- package/es/collection-manager/templates/view.mjs +8 -8
- package/es/collection-manager/templates/xlsx.mjs +2 -2
- package/es/collection-manager/utils.mjs +1 -1
- package/es/common/SelectWithTitle.mjs +7 -7
- package/es/common/appInfo/CurrentAppInfoProvider.mjs +7 -7
- package/es/common/useFieldComponentName.mjs +12 -12
- package/es/common/useNiceDropdownHeight.mjs +4 -4
- package/es/data-source/collection/AssociationProvider.mjs +17 -17
- package/es/data-source/collection/Collection.mjs +2 -2
- package/es/data-source/collection/CollectionManager.mjs +7 -10
- package/es/data-source/collection/CollectionManagerProvider.mjs +13 -13
- package/es/data-source/collection/CollectionProvider.mjs +12 -12
- package/es/data-source/collection/ExtendCollectionsProvider.mjs +10 -10
- package/es/data-source/collection-field/CollectionField.mjs +26 -26
- package/es/data-source/collection-field/CollectionFieldProvider.mjs +15 -15
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +2 -2
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +2 -2
- package/es/data-source/collection-fields-to-initializer-items/CollectionFieldsToFormInitializerItems.mjs +8 -8
- package/es/data-source/collection-fields-to-initializer-items/CollectionFieldsToInitializerItems.mjs +8 -8
- package/es/data-source/collection-fields-to-initializer-items/items/AssociationCollectionFields.mjs +7 -7
- package/es/data-source/collection-fields-to-initializer-items/items/ParentCollectionFields.mjs +6 -6
- package/es/data-source/collection-fields-to-initializer-items/items/SelfFields.mjs +6 -6
- package/es/data-source/collection-fields-to-initializer-items/items/index.mjs +4 -7
- package/es/data-source/collection-fields-to-initializer-items/utils/getInitializerItemsByFields.mjs +5 -5
- package/es/data-source/collection-fields-to-initializer-items/utils/useCollectionFieldContext.mjs +17 -17
- package/es/data-source/collection-record/CollectionRecordProvider.mjs +20 -21
- package/es/data-source/collection-record/isNewRecord.mjs +2 -2
- package/es/data-source/collection-template/CollectionTemplateManager.mjs +2 -2
- package/es/data-source/commonsSettingsItem/fieldComponent.mjs +20 -20
- package/es/data-source/components/CollectionDeletedPlaceholder.mjs +26 -26
- package/es/data-source/components/DataSourceApplicationProvider.mjs +5 -5
- package/es/data-source/data-block/DataBlockProvider.mjs +24 -24
- package/es/data-source/data-block/DataBlockRequestProvider.mjs +31 -31
- package/es/data-source/data-block/DataBlockResourceProvider.mjs +19 -19
- package/es/data-source/data-block/context/ConfigSetting.provider.mjs +3 -3
- package/es/data-source/data-source/DataSource.mjs +2 -2
- package/es/data-source/data-source/DataSourceManager.mjs +9 -9
- package/es/data-source/data-source/DataSourceManagerProvider.mjs +5 -5
- package/es/data-source/data-source/DataSourceProvider.mjs +22 -22
- package/es/data-source/utils.mjs +5 -5
- package/es/filter-provider/FilterProvider.mjs +29 -29
- package/es/filter-provider/utils.mjs +38 -38
- package/es/flag-provider/FlagProvider.mjs +4 -4
- package/es/flag-provider/hooks/useFlag.mjs +3 -3
- package/es/hooks/useMenuItem.mjs +21 -21
- package/es/hooks/useViewport.mjs +5 -5
- package/es/i18n/i18n.mjs +7 -7
- package/es/icon/Icon.mjs +19 -19
- package/es/icon/preloaded.mjs +24 -24
- package/es/index.mjs +5 -9
- package/es/locale/index.mjs +49 -49
- package/es/modules/actions/ActionSchemaToolbar.mjs +3 -3
- package/es/modules/actions/add-child/CreateChildInitializer.mjs +3 -3
- package/es/modules/actions/add-child/addChildActionSettings.mjs +19 -19
- package/es/modules/actions/add-new/CreateActionInitializer.mjs +5 -5
- package/es/modules/actions/add-new/addNewActionSettings.mjs +18 -18
- package/es/modules/actions/add-new/createFormBlockInitializers.mjs +8 -8
- package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +5 -5
- package/es/modules/actions/add-record/customizeAddRecordActionSettings.mjs +10 -10
- package/es/modules/actions/add-record/customizeCreateFormBlockInitializers.mjs +4 -4
- package/es/modules/actions/associate/AssociateActionInitializer.mjs +5 -5
- package/es/modules/actions/associate/AssociateActionProvider.mjs +20 -20
- package/es/modules/actions/associate/AssociateActionSettings.mjs +18 -18
- package/es/modules/actions/bulk-destroy/BulkDestroyActionInitializer.mjs +5 -5
- package/es/modules/actions/bulk-destroy/bulkDeleteActionSettings.mjs +9 -9
- package/es/modules/actions/delete/DestroyActionInitializer.mjs +3 -3
- package/es/modules/actions/delete/deleteActionSettings.mjs +16 -16
- package/es/modules/actions/disassociate/DisassociateActionInitializer.mjs +3 -3
- package/es/modules/actions/disassociate/disassociateActionSettings.mjs +12 -12
- package/es/modules/actions/expand-collapse/ExpandableActionInitializer.mjs +3 -3
- package/es/modules/actions/expand-collapse/expendableActionSettings.mjs +18 -18
- package/es/modules/actions/filter/FilterActionInitializer.mjs +3 -3
- package/es/modules/actions/filter/filterActionSettings.mjs +12 -12
- package/es/modules/actions/link/customizeLinkActionSettings.mjs +29 -29
- package/es/modules/actions/link/hooks.mjs +23 -23
- package/es/modules/actions/refresh/RefreshActionInitializer.mjs +3 -3
- package/es/modules/actions/refresh/refreshActionSettings.mjs +9 -9
- package/es/modules/actions/save-record/SaveRecordActionInitializer.mjs +5 -5
- package/es/modules/actions/save-record/customizeSaveRecordActionSettings.mjs +16 -16
- package/es/modules/actions/submit/CreateSubmitActionInitializer.mjs +3 -3
- package/es/modules/actions/submit/UpdateSubmitActionInitializer.mjs +3 -3
- package/es/modules/actions/submit/createSubmitActionSettings.mjs +40 -40
- package/es/modules/actions/submit/updateSubmitActionSettings.mjs +27 -27
- package/es/modules/actions/update-record/UpdateRecordActionInitializer.mjs +5 -5
- package/es/modules/actions/update-record/customizeUpdateRecordActionSettings.mjs +20 -20
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +5 -5
- package/es/modules/actions/view-edit-popup/RecordFormBlockInitializers.mjs +4 -4
- package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +3 -3
- package/es/modules/actions/view-edit-popup/ViewActionInitializer.mjs +3 -3
- package/es/modules/actions/view-edit-popup/customizePopupActionSettings.mjs +15 -15
- package/es/modules/actions/view-edit-popup/editActionSettings.mjs +13 -13
- package/es/modules/actions/view-edit-popup/viewActionSettings.mjs +15 -15
- package/es/modules/blocks/BlockSchemaToolbar.mjs +17 -17
- package/es/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.mjs +2 -2
- package/es/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.mjs +14 -14
- package/es/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.mjs +3 -3
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +40 -40
- package/es/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.mjs +19 -19
- package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.mjs +4 -4
- package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.mjs +16 -16
- package/es/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.mjs +21 -21
- package/es/modules/blocks/data-blocks/details-single/createDetailsUISchema.mjs +3 -3
- package/es/modules/blocks/data-blocks/details-single/detailsBlockSettings.mjs +11 -11
- package/es/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.mjs +7 -7
- package/es/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/form/CreateFormBlockInitializer.mjs +18 -18
- package/es/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +59 -59
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.mjs +18 -18
- package/es/modules/blocks/data-blocks/form/FormItemSchemaToolbar.mjs +3 -3
- package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +26 -26
- package/es/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.mjs +3 -3
- package/es/modules/blocks/data-blocks/form/createEditFormBlockUISchema.mjs +3 -3
- package/es/modules/blocks/data-blocks/form/createFormActionInitializers.mjs +2 -2
- package/es/modules/blocks/data-blocks/form/createFormBlockSettings.mjs +27 -27
- package/es/modules/blocks/data-blocks/form/editFormBlockSettings.mjs +16 -16
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +87 -87
- package/es/modules/blocks/data-blocks/form/formActionInitializers.mjs +2 -2
- package/es/modules/blocks/data-blocks/form/formItemInitializers.mjs +9 -9
- package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.mjs +4 -4
- package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/form/updateFormActionInitializers.mjs +2 -2
- package/es/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.mjs +5 -5
- package/es/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.mjs +12 -12
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +87 -87
- package/es/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.mjs +7 -7
- package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.mjs +4 -4
- package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs +4 -4
- package/es/modules/blocks/data-blocks/list/ListActionInitializers.mjs +5 -5
- package/es/modules/blocks/data-blocks/list/ListBlockInitializer.mjs +12 -12
- package/es/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +42 -42
- package/es/modules/blocks/data-blocks/list/listItemActionInitializers.mjs +7 -7
- package/es/modules/blocks/data-blocks/table/TableActionColumnInitializers.mjs +40 -40
- package/es/modules/blocks/data-blocks/table/TableActionInitializers.mjs +13 -13
- package/es/modules/blocks/data-blocks/table/TableBlockInitializer.mjs +12 -12
- package/es/modules/blocks/data-blocks/table/TableColumnInitializers.mjs +22 -22
- package/es/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.mjs +7 -7
- package/es/modules/blocks/data-blocks/table/createTableBlockUISchema.mjs +3 -3
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.mjs +9 -9
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +39 -42
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +85 -85
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +61 -61
- package/es/modules/blocks/data-blocks/table/utils.mjs +8 -8
- package/es/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.mjs +11 -11
- package/es/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.mjs +2 -2
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +55 -55
- package/es/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.mjs +3 -3
- package/es/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.mjs +10 -10
- package/es/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.mjs +2 -2
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.mjs +15 -15
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +50 -50
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.mjs +16 -16
- package/es/modules/blocks/filter-blocks/form/FilterFormActionInitializers.mjs +2 -2
- package/es/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.mjs +11 -11
- package/es/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.mjs +3 -3
- package/es/modules/blocks/filter-blocks/form/filterFormBlockSettings.mjs +17 -17
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +56 -56
- package/es/modules/blocks/filter-blocks/form/filterFormItemInitializers.mjs +8 -8
- package/es/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.mjs +2 -2
- package/es/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.mjs +2 -2
- package/es/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.mjs +10 -10
- package/es/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.mjs +17 -17
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +52 -52
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.mjs +8 -8
- package/es/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.mjs +9 -9
- package/es/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.mjs +7 -7
- package/es/modules/blocks/other-blocks/markdown/markdownBlockSettings.mjs +6 -6
- package/es/modules/blocks/useParentRecordCommon.mjs +2 -2
- package/es/modules/blocks/useSourceId.mjs +5 -5
- package/es/modules/blocks/useSourceKey.mjs +2 -2
- package/es/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.mjs +25 -25
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +92 -92
- package/es/modules/fields/component/Checkbox/checkboxComponentFieldSettings.mjs +12 -12
- package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +27 -27
- package/es/modules/fields/component/DatePicker/datePickerComponentFieldSettings.mjs +8 -8
- package/es/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +35 -35
- package/es/modules/fields/component/FileManager/fileManagerComponentFieldSettings.mjs +48 -48
- package/es/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs +18 -18
- package/es/modules/fields/component/Input/inputComponentFieldsSettings.mjs +2 -2
- package/es/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs +31 -31
- package/es/modules/fields/component/Nester/subformComponentFieldSettings.mjs +32 -32
- package/es/modules/fields/component/Picker/TableSelectorInitializers.mjs +6 -6
- package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +44 -44
- package/es/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs +28 -28
- package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +12 -12
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +106 -106
- package/es/modules/fields/component/SubTable/secondLevelSelect.mjs +28 -28
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +61 -61
- package/es/modules/fields/component/Tag/tagComponentFieldSettings.mjs +43 -43
- package/es/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.mjs +8 -8
- package/es/modules/fields/initializer/CollectionFieldInitializer.mjs +5 -5
- package/es/modules/fields/initializer/TableCollectionFieldInitializer.mjs +5 -5
- package/es/modules/menu/GroupItem.mjs +21 -21
- package/es/modules/menu/LinkMenuItem.mjs +21 -21
- package/es/modules/menu/PageMenuItem.mjs +22 -22
- package/es/modules/menu/UploadMenuItem.mjs +23 -23
- package/es/modules/menu/menuItemInitializer.mjs +8 -8
- package/es/modules/page/BlockInitializers.mjs +4 -4
- package/es/modules/variable/DeclareVariable.mjs +4 -4
- package/es/modules/variable/useVariable.mjs +3 -3
- package/es/powered-by/index.mjs +6 -6
- package/es/record-provider/index.mjs +16 -16
- package/es/route-switch/RouteSchemaComponent.mjs +5 -5
- package/es/schema-component/antd/AntdSchemaComponentProvider.mjs +22 -22
- package/es/schema-component/antd/__builtins__/hooks/useConfig.mjs +4 -4
- package/es/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +5 -5
- package/es/schema-component/antd/__builtins__/hooks/useToken.mjs +2 -2
- package/es/schema-component/antd/__builtins__/loading.mjs +4 -4
- package/es/schema-component/antd/__builtins__/portal.mjs +14 -14
- package/es/schema-component/antd/__builtins__/render.mjs +4 -7
- package/es/schema-component/antd/__builtins__/style.mjs +8 -8
- package/es/schema-component/antd/action/Action.Area.mjs +37 -37
- package/es/schema-component/antd/action/Action.Area.style.mjs +2 -2
- package/es/schema-component/antd/action/Action.Container.mjs +19 -19
- package/es/schema-component/antd/action/Action.Designer.mjs +175 -175
- package/es/schema-component/antd/action/Action.Drawer.mjs +35 -35
- package/es/schema-component/antd/action/Action.Drawer.style.mjs +2 -2
- package/es/schema-component/antd/action/Action.Link.mjs +7 -7
- package/es/schema-component/antd/action/Action.Modal.mjs +38 -38
- package/es/schema-component/antd/action/Action.Modal.style.mjs +2 -2
- package/es/schema-component/antd/action/Action.Page.mjs +23 -23
- package/es/schema-component/antd/action/Action.Sheet.mjs +26 -26
- package/es/schema-component/antd/action/Action.mjs +91 -91
- package/es/schema-component/antd/action/Action.style.mjs +4 -4
- package/es/schema-component/antd/action/ActionBar.mjs +37 -37
- package/es/schema-component/antd/action/context.mjs +6 -6
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfAction.mjs +13 -13
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.mjs +8 -8
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfModal.mjs +8 -8
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.mjs +8 -8
- package/es/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.mjs +4 -4
- package/es/schema-component/antd/action/hooks/useSetAriaLabelForModal.mjs +4 -4
- package/es/schema-component/antd/action/hooks/useSetAriaLabelForPopover.mjs +4 -4
- package/es/schema-component/antd/action/hooks.mjs +27 -29
- package/es/schema-component/antd/action/utils.mjs +18 -18
- package/es/schema-component/antd/appends-tree-select/AppendsTreeSelect.mjs +26 -29
- package/es/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +26 -29
- package/es/schema-component/antd/association-cascader/AssociationCascader.mjs +18 -19
- package/es/schema-component/antd/association-field/AssociationFieldProvider.mjs +29 -32
- package/es/schema-component/antd/association-field/AssociationSelect.mjs +51 -51
- package/es/schema-component/antd/association-field/Editable.mjs +54 -56
- package/es/schema-component/antd/association-field/FileManager.mjs +57 -57
- package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +94 -97
- package/es/schema-component/antd/association-field/InternalCascader.mjs +92 -95
- package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +33 -33
- package/es/schema-component/antd/association-field/InternalNester.mjs +26 -26
- package/es/schema-component/antd/association-field/InternalPicker.mjs +56 -56
- package/es/schema-component/antd/association-field/InternalPopoverNester.mjs +31 -31
- package/es/schema-component/antd/association-field/InternalSubTable.mjs +33 -33
- package/es/schema-component/antd/association-field/InternalTag.mjs +52 -52
- package/es/schema-component/antd/association-field/InternalViewer.mjs +61 -61
- package/es/schema-component/antd/association-field/Nester.mjs +68 -68
- package/es/schema-component/antd/association-field/ReadPretty.mjs +19 -19
- package/es/schema-component/antd/association-field/SubTable.mjs +62 -62
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +72 -72
- package/es/schema-component/antd/association-field/SubTabs/hook.mjs +20 -20
- package/es/schema-component/antd/association-field/SubTabs/styles.mjs +3 -3
- package/es/schema-component/antd/association-field/components/CreateRecordAction.mjs +24 -24
- package/es/schema-component/antd/association-field/context.mjs +2 -2
- package/es/schema-component/antd/association-field/hooks.mjs +52 -52
- package/es/schema-component/antd/association-field/index.mjs +15 -15
- package/es/schema-component/antd/association-field/schema.mjs +2 -2
- package/es/schema-component/antd/association-field/util.mjs +16 -16
- package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.mjs +19 -19
- package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.mjs +19 -19
- package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.mjs +6 -6
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.mjs +34 -34
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.mjs +46 -46
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.style.mjs +4 -4
- package/es/schema-component/antd/association-filter/AssociationFilter.mjs +35 -35
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.mjs +15 -15
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.mjs +10 -10
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +119 -119
- package/es/schema-component/antd/association-select/ReadPretty.mjs +9 -9
- package/es/schema-component/antd/association-select/useServiceOptions.mjs +19 -19
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +19 -19
- package/es/schema-component/antd/block-item/BlockItem.mjs +17 -17
- package/es/schema-component/antd/block-item/BlockToolbar.mjs +34 -34
- package/es/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.mjs +13 -13
- package/es/schema-component/antd/block-item/useBlockToolbar.mjs +22 -22
- package/es/schema-component/antd/card-item/CardItem.mjs +11 -11
- package/es/schema-component/antd/card-item/style.mjs +4 -4
- package/es/schema-component/antd/cascader/Cascader.mjs +27 -27
- package/es/schema-component/antd/cascader/ReadPretty.mjs +8 -8
- package/es/schema-component/antd/checkbox/Checkbox.mjs +35 -35
- package/es/schema-component/antd/collection-select/CollectionSelect.mjs +45 -45
- package/es/schema-component/antd/color-picker/ColorPicker.mjs +18 -18
- package/es/schema-component/antd/color-picker/ReadPretty.mjs +8 -8
- package/es/schema-component/antd/color-picker/util.mjs +12 -12
- package/es/schema-component/antd/color-select/ColorSelect.mjs +18 -18
- package/es/schema-component/antd/cron/Cron.mjs +20 -20
- package/es/schema-component/antd/cron/CronSet.mjs +30 -30
- package/es/schema-component/antd/custom-cascader/CustomCascader.mjs +16 -16
- package/es/schema-component/antd/custom-cascader/ReadPretty.mjs +8 -8
- package/es/schema-component/antd/date-picker/DatePicker.mjs +25 -28
- package/es/schema-component/antd/date-picker/ReadPretty.mjs +20 -20
- package/es/schema-component/antd/date-picker/util.mjs +13 -13
- package/es/schema-component/antd/details/Details.mjs +11 -11
- package/es/schema-component/antd/error-fallback/ErrorFallback.mjs +15 -15
- package/es/schema-component/antd/expand-action/Expand.Action.Design.mjs +14 -14
- package/es/schema-component/antd/expand-action/Expand.Action.mjs +23 -23
- package/es/schema-component/antd/expand-action/index.mjs +5 -5
- package/es/schema-component/antd/filter/DynamicComponent.mjs +17 -17
- package/es/schema-component/antd/filter/Filter.Action.Designer.mjs +30 -30
- package/es/schema-component/antd/filter/Filter.mjs +24 -24
- package/es/schema-component/antd/filter/FilterAction.mjs +41 -41
- package/es/schema-component/antd/filter/FilterGroup.mjs +29 -29
- package/es/schema-component/antd/filter/FilterItem.mjs +27 -27
- package/es/schema-component/antd/filter/FilterItems.mjs +11 -11
- package/es/schema-component/antd/filter/SaveDefaultValue.mjs +11 -11
- package/es/schema-component/antd/filter/context.mjs +4 -4
- package/es/schema-component/antd/filter/useFilterActionProps.mjs +40 -40
- package/es/schema-component/antd/filter/useOperators.mjs +10 -10
- package/es/schema-component/antd/filter/useValues.mjs +32 -32
- package/es/schema-component/antd/form/Form.Designer.mjs +5 -5
- package/es/schema-component/antd/form/Form.Settings.mjs +6 -6
- package/es/schema-component/antd/form/Form.mjs +46 -46
- package/es/schema-component/antd/form-dialog/index.mjs +42 -42
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +3 -3
- package/es/schema-component/antd/form-item/FormItem.FilterFormSettings.mjs +45 -45
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +208 -208
- package/es/schema-component/antd/form-item/FormItem.mjs +49 -49
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +114 -114
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +39 -39
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +38 -38
- package/es/schema-component/antd/form-item/hooks/useSpecialCase.mjs +19 -19
- package/es/schema-component/antd/form-item/utils.mjs +2 -2
- package/es/schema-component/antd/form-tab/index.mjs +37 -37
- package/es/schema-component/antd/form-v2/Form.Designer.mjs +13 -13
- package/es/schema-component/antd/form-v2/Form.FilterDesigner.mjs +7 -7
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +57 -57
- package/es/schema-component/antd/form-v2/Form.mjs +90 -90
- package/es/schema-component/antd/form-v2/FormField.mjs +15 -15
- package/es/schema-component/antd/form-v2/Templates.mjs +43 -43
- package/es/schema-component/antd/form-v2/index.mjs +9 -12
- package/es/schema-component/antd/form-v2/utils.mjs +33 -33
- package/es/schema-component/antd/grid/Block.mjs +7 -7
- package/es/schema-component/antd/grid/Grid.mjs +117 -121
- package/es/schema-component/antd/grid/Grid.style.mjs +4 -4
- package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +26 -26
- package/es/schema-component/antd/grid-card/GridCard.Decorator.style.mjs +4 -4
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +54 -54
- package/es/schema-component/antd/grid-card/GridCard.Item.mjs +23 -23
- package/es/schema-component/antd/grid-card/GridCard.mjs +47 -47
- package/es/schema-component/antd/grid-card/hooks.mjs +1 -1
- package/es/schema-component/antd/grid-card/options.mjs +3 -3
- package/es/schema-component/antd/icon-picker/IconFilterInput.mjs +6 -6
- package/es/schema-component/antd/icon-picker/IconList.mjs +11 -11
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +33 -33
- package/es/schema-component/antd/index.mjs +4 -7
- package/es/schema-component/antd/input/EllipsisWithTooltip.mjs +13 -13
- package/es/schema-component/antd/input/Input.mjs +17 -18
- package/es/schema-component/antd/input/Json.mjs +9 -9
- package/es/schema-component/antd/input/ReadPretty.mjs +37 -37
- package/es/schema-component/antd/input-number/InputNumber.mjs +10 -10
- package/es/schema-component/antd/input-number/ReadPretty.mjs +21 -22
- package/es/schema-component/antd/list/List.Decorator.mjs +27 -27
- package/es/schema-component/antd/list/List.Designer.mjs +41 -41
- package/es/schema-component/antd/list/List.Item.mjs +16 -16
- package/es/schema-component/antd/list/List.mjs +38 -38
- package/es/schema-component/antd/list/List.style.mjs +4 -4
- package/es/schema-component/antd/markdown/Markdown.Void.Designer.mjs +10 -10
- package/es/schema-component/antd/markdown/Markdown.Void.mjs +33 -34
- package/es/schema-component/antd/markdown/Markdown.mjs +23 -23
- package/es/schema-component/antd/markdown/style.mjs +5 -5
- package/es/schema-component/antd/markdown/util.mjs +6 -6
- package/es/schema-component/antd/media-card/MediaCard.mjs +10 -10
- package/es/schema-component/antd/media-card/style.mjs +2 -2
- package/es/schema-component/antd/menu/AdminMenu.mjs +24 -24
- package/es/schema-component/antd/menu/AdminMenu.style.mjs +2 -2
- package/es/schema-component/antd/menu/Menu.Designer.mjs +45 -45
- package/es/schema-component/antd/menu/Menu.mjs +160 -164
- package/es/schema-component/antd/menu/Menu.styles.mjs +3 -3
- package/es/schema-component/antd/menu/MenuAdd.mjs +8 -8
- package/es/schema-component/antd/menu/MenuItemInitializers/index.mjs +2 -2
- package/es/schema-component/antd/menu/MenuSearchAdd.mjs +15 -15
- package/es/schema-component/antd/menu/MenuSearchAdd.style.mjs +3 -3
- package/es/schema-component/antd/menu/locale.mjs +2 -2
- package/es/schema-component/antd/menu/tools.mjs +1 -1
- package/es/schema-component/antd/menu/util.mjs +4 -4
- package/es/schema-component/antd/nanoIDInput/NanoIDInput.mjs +19 -19
- package/es/schema-component/antd/page/FixedBlock.mjs +21 -21
- package/es/schema-component/antd/page/FixedBlockDesignerItem.mjs +18 -18
- package/es/schema-component/antd/page/Page.Settings.mjs +34 -34
- package/es/schema-component/antd/page/Page.mjs +125 -125
- package/es/schema-component/antd/page/Page.style.mjs +2 -2
- package/es/schema-component/antd/page/PageDesigner.mjs +13 -13
- package/es/schema-component/antd/page/PageTab.Settings.mjs +13 -13
- package/es/schema-component/antd/page/PageTabDesigner.mjs +9 -9
- package/es/schema-component/antd/page/hooks/useIsBlockInPage.mjs +4 -4
- package/es/schema-component/antd/page/hooks/useShareActions.mjs +43 -46
- package/es/schema-component/antd/page/style.mjs +4 -4
- package/es/schema-component/antd/pagination/index.mjs +10 -10
- package/es/schema-component/antd/password/Password.mjs +19 -19
- package/es/schema-component/antd/password/PasswordStrength.mjs +6 -6
- package/es/schema-component/antd/password/utils.mjs +2 -2
- package/es/schema-component/antd/percent/Percent.mjs +14 -14
- package/es/schema-component/antd/popover/Popover.mjs +10 -10
- package/es/schema-component/antd/preview/Preview.mjs +75 -75
- package/es/schema-component/antd/quick-edit/QuickEdit.mjs +28 -28
- package/es/schema-component/antd/radio/Radio.mjs +18 -18
- package/es/schema-component/antd/record-picker/InputRecordPicker.mjs +47 -47
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +49 -49
- package/es/schema-component/antd/record-picker/RecordPicker.mjs +4 -4
- package/es/schema-component/antd/record-picker/index.mjs +5 -6
- package/es/schema-component/antd/record-picker/useFieldNames.mjs +3 -3
- package/es/schema-component/antd/record-picker/util.mjs +11 -11
- package/es/schema-component/antd/remote-select/ReadPretty.mjs +16 -16
- package/es/schema-component/antd/remote-select/RemoteSelect.mjs +79 -81
- package/es/schema-component/antd/remote-select/shared.mjs +2 -2
- package/es/schema-component/antd/rich-text/RichText.mjs +12 -12
- package/es/schema-component/antd/rich-text/style.mjs +2 -2
- package/es/schema-component/antd/scroll-area/ScrollArea.mjs +10 -10
- package/es/schema-component/antd/select/FormulaSelect.mjs +38 -38
- package/es/schema-component/antd/select/ReadPretty.mjs +16 -16
- package/es/schema-component/antd/select/Select.mjs +47 -47
- package/es/schema-component/antd/select/utils.mjs +3 -3
- package/es/schema-component/antd/slider/slider.mjs +9 -9
- package/es/schema-component/antd/space/index.mjs +11 -11
- package/es/schema-component/antd/table/Table.Array.Designer.mjs +4 -4
- package/es/schema-component/antd/table/Table.Array.mjs +60 -60
- package/es/schema-component/antd/table/Table.Column.ActionBar.mjs +9 -9
- package/es/schema-component/antd/table/Table.Column.Decorator.mjs +16 -16
- package/es/schema-component/antd/table/Table.Column.Designer.mjs +30 -30
- package/es/schema-component/antd/table/Table.Column.mjs +4 -4
- package/es/schema-component/antd/table/Table.Designer.mjs +6 -6
- package/es/schema-component/antd/table/Table.RowActionDesigner.mjs +15 -15
- package/es/schema-component/antd/table/Table.RowSelection.mjs +7 -7
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +39 -39
- package/es/schema-component/antd/table/Table.Void.mjs +30 -30
- package/es/schema-component/antd/table/index.mjs +22 -22
- package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.mjs +15 -15
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.mjs +11 -11
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.mjs +21 -21
- package/es/schema-component/antd/table-v2/Table.Column.Designer.mjs +68 -68
- package/es/schema-component/antd/table-v2/Table.Column.mjs +4 -4
- package/es/schema-component/antd/table-v2/Table.Designer.mjs +6 -6
- package/es/schema-component/antd/table-v2/Table.Index.mjs +4 -4
- package/es/schema-component/antd/table-v2/Table.mjs +126 -129
- package/es/schema-component/antd/table-v2/Table.styles.mjs +5 -5
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +73 -73
- package/es/schema-component/antd/table-v2/TableField.mjs +21 -21
- package/es/schema-component/antd/table-v2/TableSelector.mjs +2 -2
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +57 -57
- package/es/schema-component/antd/table-v2/components/ColumnFieldProvider.mjs +8 -8
- package/es/schema-component/antd/table-v2/index.mjs +17 -18
- package/es/schema-component/antd/table-v2/utils.mjs +1 -1
- package/es/schema-component/antd/tabs/Tabs.Designer.mjs +22 -23
- package/es/schema-component/antd/tabs/Tabs.mjs +34 -34
- package/es/schema-component/antd/tabs/context.mjs +5 -5
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +10 -10
- package/es/schema-component/antd/time-picker/TimePicker.mjs +10 -10
- package/es/schema-component/antd/tracking-link/index.mjs +7 -7
- package/es/schema-component/antd/tree/Tree.mjs +21 -21
- package/es/schema-component/antd/tree/index.mjs +2 -3
- package/es/schema-component/antd/tree-select/ReadPretty.mjs +18 -20
- package/es/schema-component/antd/tree-select/TreeSelect.mjs +10 -10
- package/es/schema-component/antd/unixTimestamp/UnixTimestamp.mjs +14 -14
- package/es/schema-component/antd/upload/ReadPretty.mjs +55 -55
- package/es/schema-component/antd/upload/Upload.mjs +98 -98
- package/es/schema-component/antd/upload/shared.mjs +23 -23
- package/es/schema-component/antd/upload/style.mjs +2 -2
- package/es/schema-component/antd/variable/CodeMirror.mjs +23 -23
- package/es/schema-component/antd/variable/Input.mjs +58 -61
- package/es/schema-component/antd/variable/JSONInput.mjs +7 -7
- package/es/schema-component/antd/variable/RawTextArea.mjs +16 -16
- package/es/schema-component/antd/variable/TextArea.mjs +61 -65
- package/es/schema-component/antd/variable/TextAreaWithGlobalScope.mjs +18 -18
- package/es/schema-component/antd/variable/Variable.mjs +18 -18
- package/es/schema-component/antd/variable/VariableSelect.mjs +20 -20
- package/es/schema-component/antd/variable/VariableSelect.style.mjs +4 -4
- package/es/schema-component/antd/variable/XButton.mjs +6 -6
- package/es/schema-component/antd/variable/index.mjs +2 -3
- package/es/schema-component/antd/variable/style.mjs +4 -4
- package/es/schema-component/common/dnd-context/index.mjs +32 -32
- package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +29 -29
- package/es/schema-component/common/infinite-scroll/style.mjs +4 -4
- package/es/schema-component/common/sortable-item/DragHandleMenu.mjs +18 -18
- package/es/schema-component/common/sortable-item/DragHandleMenu.style.mjs +3 -3
- package/es/schema-component/common/sortable-item/DragHandlePageTab.mjs +15 -15
- package/es/schema-component/common/sortable-item/DragHandlePageTab.style.mjs +2 -2
- package/es/schema-component/common/sortable-item/SortableItem.mjs +32 -32
- package/es/schema-component/common/utils/logic.mjs +11 -9
- package/es/schema-component/common/utils/uitls.mjs +23 -25
- package/es/schema-component/context.mjs +2 -2
- package/es/schema-component/core/DesignableSwitch.mjs +14 -14
- package/es/schema-component/core/FormProvider.mjs +16 -16
- package/es/schema-component/core/RemoteSchemaComponent.mjs +14 -14
- package/es/schema-component/core/SchemaComponent.mjs +19 -19
- package/es/schema-component/core/SchemaComponentOptions.mjs +11 -11
- package/es/schema-component/core/SchemaComponentPlugin.mjs +4 -4
- package/es/schema-component/core/SchemaComponentProvider.mjs +21 -21
- package/es/schema-component/hooks/useAttach.mjs +3 -3
- package/es/schema-component/hooks/useCompile.mjs +9 -9
- package/es/schema-component/hooks/useComponent.mjs +5 -5
- package/es/schema-component/hooks/useDesignable.mjs +76 -88
- package/es/schema-component/hooks/useDesigner.mjs +9 -9
- package/es/schema-component/hooks/useFieldComponentOptions.mjs +10 -10
- package/es/schema-component/hooks/useFieldModeOptions.mjs +12 -12
- package/es/schema-component/hooks/useFieldProps.mjs +5 -5
- package/es/schema-component/hooks/useFieldTitle.mjs +12 -12
- package/es/schema-component/hooks/useSchemaComponentContext.mjs +3 -3
- package/es/schema-component/hooks/useTableSize.mjs +10 -10
- package/es/schema-component/types.mjs +0 -1
- package/es/schema-initializer/SchemaInitializerPlugin.mjs +124 -124
- package/es/schema-initializer/buttons/CustomFormItemInitializers.mjs +13 -13
- package/es/schema-initializer/buttons/FormItemInitializers.mjs +35 -35
- package/es/schema-initializer/buttons/RecordBlockInitializers.mjs +37 -37
- package/es/schema-initializer/buttons/SubTableActionInitializers.mjs +2 -2
- package/es/schema-initializer/buttons/TabPaneInitializers.mjs +23 -23
- package/es/schema-initializer/components/CreateRecordAction.mjs +75 -75
- package/es/schema-initializer/components/DeletedField.mjs +4 -4
- package/es/schema-initializer/components/assigned-field/AssignedField.mjs +43 -43
- package/es/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.mjs +6 -6
- package/es/schema-initializer/index.mjs +2 -17
- package/es/schema-initializer/items/ActionInitializer.mjs +5 -5
- package/es/schema-initializer/items/BlockInitializer.mjs +10 -10
- package/es/schema-initializer/items/CreateFilterActionInitializer.mjs +3 -3
- package/es/schema-initializer/items/CreateResetActionInitializer.mjs +3 -3
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +94 -94
- package/es/schema-initializer/items/CustomizeActionInitializer.mjs +5 -5
- package/es/schema-initializer/items/DataBlockInitializer.mjs +53 -53
- package/es/schema-initializer/items/DeleteEventActionInitializer.mjs +3 -3
- package/es/schema-initializer/items/FilterBlockInitializer.mjs +2 -2
- package/es/schema-initializer/items/G2PlotInitializer.mjs +5 -5
- package/es/schema-initializer/items/InitializerWithSwitch.mjs +9 -9
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.mjs +20 -20
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.mjs +20 -20
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.mjs +24 -24
- package/es/schema-initializer/items/RecordAssociationGridCardBlockInitializer.mjs +20 -20
- package/es/schema-initializer/items/RecordAssociationListBlockInitializer.mjs +20 -20
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.mjs +23 -23
- package/es/schema-initializer/items/SelectActionInitializer.mjs +3 -3
- package/es/schema-initializer/items/SubmitActionInitializer.mjs +3 -3
- package/es/schema-initializer/items/TableActionColumnInitializer.mjs +7 -7
- package/es/schema-initializer/style.mjs +2 -2
- package/es/schema-initializer/utils.mjs +187 -190
- package/es/schema-items/GeneralSchemaItems.mjs +28 -28
- package/es/schema-items/GeneralSettings.mjs +43 -43
- package/es/schema-items/OpenModeSchemaItems.mjs +27 -27
- package/es/schema-settings/DataTemplates/FormDataTemplates.mjs +40 -40
- package/es/schema-settings/DataTemplates/TreeLabel.mjs +5 -5
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +13 -13
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +61 -61
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.style.mjs +2 -2
- package/es/schema-settings/DataTemplates/components/Designer.mjs +36 -36
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.mjs +31 -31
- package/es/schema-settings/DataTemplates/utils.mjs +37 -37
- package/es/schema-settings/DateFormat/ExpiresRadio.mjs +28 -28
- package/es/schema-settings/EditCustomDefaultValue.mjs +23 -23
- package/es/schema-settings/EditFormulaTitleField.mjs +26 -26
- package/es/schema-settings/EnableChildCollections/DynamicComponent.mjs +16 -16
- package/es/schema-settings/EnableChildCollections/index.mjs +14 -14
- package/es/schema-settings/GeneralSchemaDesigner.mjs +82 -82
- package/es/schema-settings/LinkageRules/DynamicComponent.mjs +16 -16
- package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +51 -51
- package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.mjs +26 -26
- package/es/schema-settings/LinkageRules/ValueDynamicComponent.mjs +35 -35
- package/es/schema-settings/LinkageRules/Variables.mjs +5 -5
- package/es/schema-settings/LinkageRules/action-hooks.mjs +17 -17
- package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +12 -12
- package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +59 -59
- package/es/schema-settings/LinkageRules/components/LinkageHeader.style.mjs +2 -2
- package/es/schema-settings/LinkageRules/context.mjs +4 -4
- package/es/schema-settings/LinkageRules/index.mjs +33 -33
- package/es/schema-settings/LinkageRules/type.mjs +2 -2
- package/es/schema-settings/LinkageRules/useValues.mjs +8 -8
- package/es/schema-settings/SchemaSettingCollection.mjs +11 -11
- package/es/schema-settings/SchemaSettingComponent.mjs +10 -10
- package/es/schema-settings/SchemaSettings.mjs +295 -295
- package/es/schema-settings/SchemaSettingsDataScope.mjs +27 -27
- package/es/schema-settings/SchemaSettingsDateFormat.mjs +26 -26
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +57 -57
- package/es/schema-settings/SchemaSettingsNumberFormat.mjs +17 -17
- package/es/schema-settings/SchemaSettingsPlugin.mjs +110 -110
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +21 -21
- package/es/schema-settings/VariableInput/VariableInput.mjs +31 -31
- package/es/schema-settings/VariableInput/hooks/useBaseVariable.mjs +18 -18
- package/es/schema-settings/VariableInput/hooks/useBlockCollection.mjs +3 -3
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +12 -12
- package/es/schema-settings/VariableInput/hooks/useDateVariable.mjs +8 -8
- package/es/schema-settings/VariableInput/hooks/useFilterVariable.mjs +15 -15
- package/es/schema-settings/VariableInput/hooks/useFormVariable.mjs +8 -8
- package/es/schema-settings/VariableInput/hooks/useIterationVariable.mjs +12 -12
- package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.mjs +14 -14
- package/es/schema-settings/VariableInput/hooks/usePopupVariable.mjs +4 -4
- package/es/schema-settings/VariableInput/hooks/useRecordVariable.mjs +10 -10
- package/es/schema-settings/VariableInput/hooks/useRoleVariable.mjs +9 -9
- package/es/schema-settings/VariableInput/hooks/useUserVariable.mjs +11 -11
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.mjs +23 -23
- package/es/schema-settings/filter-form/FormFilterScope.mjs +25 -25
- package/es/schema-settings/filter-form/context.mjs +5 -5
- package/es/schema-settings/hooks/useFilterFormCustomProps.mjs +2 -2
- package/es/schema-settings/hooks/useGetAriaLabelOfDesigner.mjs +6 -6
- package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.mjs +20 -20
- package/es/schema-settings/hooks/useIsShowMultipleSwitch.mjs +7 -7
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +13 -13
- package/es/schema-settings/isPatternDisabled.mjs +1 -1
- package/es/schema-settings/styles.mjs +2 -2
- package/es/schema-settings/utils/createModalSettingsItem.mjs +12 -12
- package/es/schema-settings/utils/createSelectSettingsItem.mjs +12 -12
- package/es/schema-settings/utils/createSwitchSettingsItem.mjs +12 -12
- package/es/schema-settings/utils/createTextSettingsItem.mjs +6 -6
- package/es/schema-settings/utils/util.mjs +7 -7
- package/es/schema-templates/BlockTemplate.mjs +18 -18
- package/es/schema-templates/BlockTemplateDetails.mjs +29 -29
- package/es/schema-templates/BlockTemplatePage.mjs +13 -13
- package/es/schema-templates/SchemaTemplateManagerProvider.mjs +20 -20
- package/es/schema-templates/schemas/CollectionTitle.mjs +9 -9
- package/es/schema-templates/schemas/uiSchemaTemplates.mjs +17 -17
- package/es/schema-templates/useSchemaTemplateManager.mjs +18 -18
- package/es/style/css-variable/CSSVariableProvider.mjs +14 -14
- package/es/style/css-variable/index.mjs +2 -3
- package/es/style/index.mjs +4 -11
- package/es/style/theme/AntdAppProvider.mjs +15 -15
- package/es/style/theme/defaultTheme.mjs +2 -2
- package/es/style/theme/index.mjs +26 -28
- package/es/style/useToken.mjs +2 -2
- package/es/testUtils/mockAPIClient.mjs +4 -4
- package/es/user/ChangePassword.mjs +20 -20
- package/es/user/CurrentUser.mjs +47 -47
- package/es/user/CurrentUserProvider.mjs +19 -19
- package/es/user/CurrentUserSettingsMenuProvider.mjs +13 -13
- package/es/user/EditProfile.mjs +24 -24
- package/es/user/LanguageSettings.mjs +15 -15
- package/es/user/SwitchRole.mjs +11 -11
- package/es/user/VerificationCode.mjs +18 -18
- package/es/variables/VariablesProvider.mjs +66 -66
- package/es/variables/hooks/useBuiltinVariables.mjs +12 -12
- package/es/variables/hooks/useContextVariable.mjs +11 -11
- package/es/variables/hooks/useLocalVariables.mjs +21 -21
- package/es/variables/hooks/useVariables.mjs +5 -5
- package/es/variables/index.mjs +6 -12
- package/es/variables/utils/getPath.mjs +3 -3
- package/es/variables/utils/getVariableName.mjs +4 -4
- package/es/variables/utils/transformVariableValue.mjs +3 -3
- package/es/variables/utils/uniq.mjs +3 -3
- package/lib/api-client/APIClient.js +23 -27
- package/lib/api-client/APIClientProvider.js +8 -8
- package/lib/api-client/context.js +8 -8
- package/lib/api-client/hooks/assign.js +15 -17
- package/lib/api-client/hooks/index.js +28 -33
- package/lib/api-client/hooks/useAPIClient.js +8 -8
- package/lib/api-client/hooks/useRequest.js +9 -9
- package/lib/api-client/hooks/useResource.js +8 -8
- package/lib/api-client/index.js +36 -41
- package/lib/application/AppSchemaComponentProvider.js +9 -9
- package/lib/application/Application.js +20 -39
- package/lib/application/AttachmentPreviewManager.js +9 -11
- package/lib/application/CustomRouterContextProvider.js +60 -28
- package/lib/application/NoticesManager.js +33 -23
- package/lib/application/Plugin.js +10 -12
- package/lib/application/PluginContextMenu.js +9 -11
- package/lib/application/PluginManager.js +9 -9
- package/lib/application/RouterManager.js +12 -14
- package/lib/application/SystemSettingsManager.js +19 -13
- package/lib/application/TrackingManager.js +9 -11
- package/lib/application/UserSettingsManager.js +17 -11
- package/lib/application/WebSocketClient.js +12 -12
- package/lib/application/components/AppComponent.js +9 -9
- package/lib/application/components/BlankComponent.js +8 -8
- package/lib/application/components/MainComponent.js +10 -14
- package/lib/application/components/RouterContextCleaner.js +10 -14
- package/lib/application/components/SharePage.js +18 -12
- package/lib/application/components/ShareSchemaComponent.js +8 -8
- package/lib/application/components/defaultComponents.js +8 -8
- package/lib/application/components/index.js +46 -51
- package/lib/application/context.js +8 -8
- package/lib/application/hoc/index.js +16 -21
- package/lib/application/hoc/withDynamicSchemaProps.js +14 -16
- package/lib/application/hooks/index.js +34 -39
- package/lib/application/hooks/useApp.js +8 -8
- package/lib/application/hooks/useGlobalVariable.js +8 -8
- package/lib/application/hooks/usePlugin.js +8 -8
- package/lib/application/hooks/useRouter.js +8 -8
- package/lib/application/index.js +146 -150
- package/lib/application/schema-initializer/SchemaInitializer.js +9 -11
- package/lib/application/schema-initializer/SchemaInitializerManager.js +9 -11
- package/lib/application/schema-initializer/components/SchemaInitializerActionModal.js +12 -10
- package/lib/application/schema-initializer/components/SchemaInitializerButton.js +10 -14
- package/lib/application/schema-initializer/components/SchemaInitializerChildren.js +12 -10
- package/lib/application/schema-initializer/components/SchemaInitializerDivider.js +8 -8
- package/lib/application/schema-initializer/components/SchemaInitializerItem.js +14 -16
- package/lib/application/schema-initializer/components/SchemaInitializerItemGroup.js +12 -10
- package/lib/application/schema-initializer/components/SchemaInitializerItems.js +8 -8
- package/lib/application/schema-initializer/components/SchemaInitializerSelect.js +12 -10
- package/lib/application/schema-initializer/components/SchemaInitializerSubMenu.js +18 -16
- package/lib/application/schema-initializer/components/SchemaInitializerSwitch.js +12 -10
- package/lib/application/schema-initializer/components/index.js +71 -76
- package/lib/application/schema-initializer/components/style.js +8 -8
- package/lib/application/schema-initializer/context/index.js +18 -16
- package/lib/application/schema-initializer/hoc/index.js +10 -14
- package/lib/application/schema-initializer/hooks/index.js +173 -177
- package/lib/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.js +8 -8
- package/lib/application/schema-initializer/index.js +54 -59
- package/lib/application/schema-initializer/types.js +3 -4
- package/lib/application/schema-settings/SchemaSettings.js +9 -11
- package/lib/application/schema-settings/SchemaSettingsDefaults.js +8 -8
- package/lib/application/schema-settings/SchemaSettingsManager.js +12 -17
- package/lib/application/schema-settings/components/SchemaSettingsChildren.js +12 -10
- package/lib/application/schema-settings/components/SchemaSettingsIcon.js +10 -14
- package/lib/application/schema-settings/components/SchemaSettingsWrapper.js +10 -14
- package/lib/application/schema-settings/components/index.js +22 -27
- package/lib/application/schema-settings/context/index.js +10 -8
- package/lib/application/schema-settings/hooks/index.js +10 -14
- package/lib/application/schema-settings/index.js +48 -53
- package/lib/application/schema-settings/types.js +3 -4
- package/lib/application/schema-toolbar/context/index.js +14 -10
- package/lib/application/schema-toolbar/hooks/index.js +8 -8
- package/lib/application/schema-toolbar/index.js +24 -29
- package/lib/application/utils/globalDeps.js +10 -14
- package/lib/application/utils/index.js +10 -8
- package/lib/application/utils/remotePlugins.js +24 -26
- package/lib/async-data-provider/index.js +14 -10
- package/lib/block-provider/BlockProvider.js +55 -29
- package/lib/block-provider/DetailsBlockProvider.js +23 -21
- package/lib/block-provider/FilterFormBlockProvider.js +8 -8
- package/lib/block-provider/FormBlockProvider.js +36 -28
- package/lib/block-provider/FormFieldProvider.js +25 -17
- package/lib/block-provider/MobileProvider.js +10 -8
- package/lib/block-provider/PageLayout.js +8 -8
- package/lib/block-provider/TableBlockProvider.js +27 -23
- package/lib/block-provider/TableFieldProvider.js +35 -25
- package/lib/block-provider/TableSelectorProvider.js +50 -46
- package/lib/block-provider/TreeBlockProvider.js +23 -17
- package/lib/block-provider/hooks/index.js +1371 -1388
- package/lib/block-provider/hooks/useDataBlockSourceId.js +9 -9
- package/lib/block-provider/hooks/useFormActiveFields.js +12 -10
- package/lib/block-provider/hooks/useIsMobile.js +8 -8
- package/lib/block-provider/hooks/useParsedFilter.js +10 -14
- package/lib/block-provider/index.js +77 -82
- package/lib/built-in/acl/ACLPlugin.js +8 -8
- package/lib/built-in/acl/ACLProvider.js +63 -35
- package/lib/built-in/acl/ACLShortcut.js +8 -8
- package/lib/built-in/acl/Configuration/ConfigureCenter.js +12 -10
- package/lib/built-in/acl/Configuration/MenuConfigure.js +9 -9
- package/lib/built-in/acl/Configuration/MenuItemsProvider.js +13 -9
- package/lib/built-in/acl/Configuration/PermisionProvider.js +15 -11
- package/lib/built-in/acl/Configuration/RoleConfigure.js +12 -16
- package/lib/built-in/acl/Configuration/RoleTable.js +10 -8
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +18 -16
- package/lib/built-in/acl/Configuration/ScopeSelect.js +11 -9
- package/lib/built-in/acl/Configuration/StrategyActions.js +9 -9
- package/lib/built-in/acl/Configuration/index.js +79 -83
- package/lib/built-in/acl/Configuration/schemas/roles.js +10 -14
- package/lib/built-in/acl/Configuration/schemas/scopes.js +10 -8
- package/lib/built-in/acl/Configuration/schemas/useRoleResourceValues.js +11 -14
- package/lib/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.js +8 -8
- package/lib/built-in/acl/index.js +34 -39
- package/lib/built-in/acl/style.js +8 -8
- package/lib/built-in/admin-layout/AdminContent.js +8 -12
- package/lib/built-in/admin-layout/AdminLayout.js +8 -8
- package/lib/built-in/admin-layout/AdminLayoutPlugin.js +8 -8
- package/lib/built-in/admin-layout/AdminProvider.js +10 -14
- package/lib/built-in/admin-layout/AdminTabs.js +8 -8
- package/lib/built-in/admin-layout/InternalAdminLayout.js +10 -10
- package/lib/built-in/admin-layout/MenuEditor.js +18 -13
- package/lib/built-in/admin-layout/NoticeArea.js +8 -8
- package/lib/built-in/admin-layout/components/AddNewButton.js +9 -9
- package/lib/built-in/admin-layout/components/WelcomeCard.js +8 -8
- package/lib/built-in/admin-layout/filterByACL.js +9 -11
- package/lib/built-in/admin-layout/index.js +71 -76
- package/lib/built-in/admin-layout/style.js +8 -8
- package/lib/built-in/attachment-preview/index.js +8 -8
- package/lib/built-in/attachment-preview/interface.js +3 -4
- package/lib/built-in/attachment-preview/previewers/file-default.js +8 -8
- package/lib/built-in/attachment-preview/previewers/file-pdf.js +10 -10
- package/lib/built-in/attachment-preview/previewers/file-pdf.style.js +8 -8
- package/lib/built-in/attachment-preview/previewers/file-sheet.js +18 -18
- package/lib/built-in/attachment-preview/previewers/file-sheet.style.js +8 -8
- package/lib/built-in/attachment-preview/previewers/image-jpeg.js +8 -8
- package/lib/built-in/attachment-preview/previewers/image-png.js +8 -8
- package/lib/built-in/attachment-preview/previewers/image-svg.js +8 -8
- package/lib/built-in/attachment-preview/previewers/index.js +46 -51
- package/lib/built-in/block-schema-component/index.js +8 -8
- package/lib/built-in/built-in-collections/index.js +10 -8
- package/lib/built-in/context-menu/ContextMenu.provider.js +10 -8
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +18 -12
- package/lib/built-in/context-menu/index.js +14 -10
- package/lib/built-in/context-menu/useContextMenu.js +12 -10
- package/lib/built-in/document-title/index.js +21 -11
- package/lib/built-in/dynamic-page/DynamicPage.js +8 -8
- package/lib/built-in/dynamic-page/index.js +19 -17
- package/lib/built-in/dynamic-page/style.js +10 -8
- package/lib/built-in/dynamic-page/utils.js +10 -12
- package/lib/built-in/index.js +519 -519
- package/lib/built-in/locale/LocalePlugin.js +88 -88
- package/lib/built-in/locale/loadConstrueLocale.js +10 -14
- package/lib/built-in/page-style/CustomAdminHeader.js +8 -8
- package/lib/built-in/page-style/PageStyle.provider.js +13 -11
- package/lib/built-in/page-style/TabContent.js +12 -8
- package/lib/built-in/page-style/TabHeader.js +12 -14
- package/lib/built-in/page-style/TabHeader.style.js +8 -8
- package/lib/built-in/page-style/index.js +8 -8
- package/lib/built-in/page-style/usePageStyle.js +8 -8
- package/lib/built-in/page-style/useTabSettings.js +16 -12
- package/lib/built-in/pinned-list/PinnedPluginListProvider.js +11 -9
- package/lib/built-in/pinned-list/PluginPinnedList.js +8 -8
- package/lib/built-in/pinned-list/context.js +8 -8
- package/lib/built-in/pinned-list/index.js +23 -28
- package/lib/built-in/pm/PluginCard.js +16 -24
- package/lib/built-in/pm/PluginDetail.js +25 -29
- package/lib/built-in/pm/PluginDocument.js +8 -8
- package/lib/built-in/pm/PluginForm/form/PluginNpmForm.js +10 -8
- package/lib/built-in/pm/PluginForm/form/PluginUploadForm.js +9 -9
- package/lib/built-in/pm/PluginForm/form/PluginUrlForm.js +8 -8
- package/lib/built-in/pm/PluginForm/modal/PluginAddModal.js +8 -8
- package/lib/built-in/pm/PluginForm/modal/PluginUpgradeModal.js +8 -8
- package/lib/built-in/pm/PluginManager.js +18 -22
- package/lib/built-in/pm/index.js +24 -14
- package/lib/built-in/pm/style.js +8 -8
- package/lib/built-in/pm/types.js +3 -4
- package/lib/built-in/quick-access/Action.js +10 -10
- package/lib/built-in/quick-access/Block.js +14 -12
- package/lib/built-in/quick-access/CustomRequestActionSchemaInitializerItem.js +12 -10
- package/lib/built-in/quick-access/LinkActionSchemaInitializerItem.js +10 -8
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +11 -11
- package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.js +12 -10
- package/lib/built-in/quick-access/SchemaSettingsBlockTitleItem.js +9 -9
- package/lib/built-in/quick-access/blockInitializerItem.js +8 -8
- package/lib/built-in/quick-access/blockSchema.js +9 -11
- package/lib/built-in/quick-access/blockSettings.js +11 -9
- package/lib/built-in/quick-access/configureActions.js +8 -8
- package/lib/built-in/quick-access/index.js +8 -8
- package/lib/built-in/scroll-assistant/ScrollAssistant.provider.js +8 -8
- package/lib/built-in/scroll-assistant/ScrollAssistantStatus.provider.js +12 -10
- package/lib/built-in/scroll-assistant/index.js +10 -8
- package/lib/built-in/scroll-assistant/useJoystick.js +11 -17
- package/lib/built-in/setting-layout/AdminSettings.js +16 -14
- package/lib/built-in/setting-layout/SettingLayout.js +11 -11
- package/lib/built-in/setting-layout/SettingsCenterDropdown.js +9 -9
- package/lib/built-in/setting-layout/style.js +8 -8
- package/lib/built-in/system-settings/SystemSettingsProvider.js +12 -8
- package/lib/built-in/system-settings/SystemSettingsShortcut.js +12 -16
- package/lib/built-in/system-settings/index.js +40 -44
- package/lib/built-in/system-version/SystemVersion.provider.js +8 -8
- package/lib/built-in/system-version/index.js +8 -8
- package/lib/built-in/user-settings/UserSettingsLayout.js +16 -16
- package/lib/built-in/user-settings/index.js +8 -8
- package/lib/built-in/user-settings/style.js +8 -8
- package/lib/collection-manager/CollectionHistoryProvider.js +15 -11
- package/lib/collection-manager/CollectionManagerProvider.js +15 -11
- package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js +8 -8
- package/lib/collection-manager/CollectionProvider_deprecated.js +8 -8
- package/lib/collection-manager/Configuration/AddCollectionAction.js +13 -11
- package/lib/collection-manager/Configuration/AddFieldAction.js +24 -24
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +8 -8
- package/lib/collection-manager/Configuration/DeleteCollectionAction.js +23 -13
- package/lib/collection-manager/Configuration/EditCollectionAction.js +19 -17
- package/lib/collection-manager/Configuration/EditFieldAction.js +18 -20
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +11 -15
- package/lib/collection-manager/Configuration/ImportCollectionMetaAction.js +11 -15
- package/lib/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.js +12 -16
- package/lib/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.js +10 -10
- package/lib/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.js +8 -8
- package/lib/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.js +12 -18
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.js +15 -15
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.js +12 -14
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +11 -15
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.js +8 -8
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +17 -19
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +13 -11
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +8 -8
- package/lib/collection-manager/Configuration/ViewInheritedField.js +14 -16
- package/lib/collection-manager/Configuration/components/CollectionCategory.js +8 -8
- package/lib/collection-manager/Configuration/components/CollectionFieldInterfaceTag.js +8 -8
- package/lib/collection-manager/Configuration/components/CollectionTemplateTag.js +8 -8
- package/lib/collection-manager/Configuration/components/FieldSummary.js +10 -14
- package/lib/collection-manager/Configuration/components/Summary.js +10 -10
- package/lib/collection-manager/Configuration/components/TemplateSummary.js +10 -14
- package/lib/collection-manager/Configuration/components/index.js +47 -33
- package/lib/collection-manager/Configuration/index.js +122 -127
- package/lib/collection-manager/Configuration/interfaces.js +12 -10
- package/lib/collection-manager/ResourceActionProvider.js +25 -17
- package/lib/collection-manager/action-hooks.js +108 -59
- package/lib/collection-manager/collectionPlugin.js +9 -9
- package/lib/collection-manager/context.js +8 -8
- package/lib/collection-manager/hooks/index.js +34 -39
- package/lib/collection-manager/hooks/useCollectionDataSource.js +8 -8
- package/lib/collection-manager/hooks/useCollectionField_deprecated.js +8 -8
- package/lib/collection-manager/hooks/useCollectionManager_deprecated.js +30 -34
- package/lib/collection-manager/hooks/useCollection_deprecated.js +13 -13
- package/lib/collection-manager/hooks/useDialect.js +11 -11
- package/lib/collection-manager/index.js +327 -331
- package/lib/collection-manager/interfaces/checkbox.js +8 -8
- package/lib/collection-manager/interfaces/checkboxGroup.js +8 -8
- package/lib/collection-manager/interfaces/chinaRegion.js +8 -8
- package/lib/collection-manager/interfaces/collection.js +8 -8
- package/lib/collection-manager/interfaces/color.js +8 -8
- package/lib/collection-manager/interfaces/components/index.js +24 -14
- package/lib/collection-manager/interfaces/createdAt.js +8 -8
- package/lib/collection-manager/interfaces/createdBy.js +8 -8
- package/lib/collection-manager/interfaces/datetime.js +8 -8
- package/lib/collection-manager/interfaces/email.js +8 -8
- package/lib/collection-manager/interfaces/icon.js +8 -8
- package/lib/collection-manager/interfaces/id.js +8 -8
- package/lib/collection-manager/interfaces/index.js +253 -258
- package/lib/collection-manager/interfaces/input.js +8 -8
- package/lib/collection-manager/interfaces/integer.js +8 -8
- package/lib/collection-manager/interfaces/json.js +8 -8
- package/lib/collection-manager/interfaces/linkTo.js +8 -8
- package/lib/collection-manager/interfaces/m2m.js +9 -9
- package/lib/collection-manager/interfaces/m2o.js +9 -9
- package/lib/collection-manager/interfaces/markdown.js +8 -8
- package/lib/collection-manager/interfaces/multipleSelect.js +8 -8
- package/lib/collection-manager/interfaces/nanoid.js +8 -8
- package/lib/collection-manager/interfaces/number.js +8 -8
- package/lib/collection-manager/interfaces/o2m.js +13 -11
- package/lib/collection-manager/interfaces/o2o.js +14 -10
- package/lib/collection-manager/interfaces/password.js +8 -8
- package/lib/collection-manager/interfaces/percent.js +8 -8
- package/lib/collection-manager/interfaces/phone.js +8 -8
- package/lib/collection-manager/interfaces/properties/index.js +41 -17
- package/lib/collection-manager/interfaces/properties/operators.js +45 -47
- package/lib/collection-manager/interfaces/radioGroup.js +8 -8
- package/lib/collection-manager/interfaces/richText.js +8 -8
- package/lib/collection-manager/interfaces/select.js +8 -8
- package/lib/collection-manager/interfaces/sort.js +8 -8
- package/lib/collection-manager/interfaces/subTable.js +8 -8
- package/lib/collection-manager/interfaces/tableoid.js +8 -8
- package/lib/collection-manager/interfaces/textarea.js +8 -8
- package/lib/collection-manager/interfaces/time.js +8 -8
- package/lib/collection-manager/interfaces/types.js +3 -4
- package/lib/collection-manager/interfaces/unixTimestamp.js +8 -8
- package/lib/collection-manager/interfaces/updatedAt.js +8 -8
- package/lib/collection-manager/interfaces/updatedBy.js +8 -8
- package/lib/collection-manager/interfaces/url.js +8 -8
- package/lib/collection-manager/interfaces/uuid.js +8 -8
- package/lib/collection-manager/mixins/InheritanceCollectionMixin.js +13 -13
- package/lib/collection-manager/sub-table.js +21 -15
- package/lib/collection-manager/templates/components/PresetFields.js +13 -13
- package/lib/collection-manager/templates/components/PreviewFields.js +24 -28
- package/lib/collection-manager/templates/components/PreviewTable.js +13 -13
- package/lib/collection-manager/templates/components/sql-collection/FieldsConfigure.js +50 -56
- package/lib/collection-manager/templates/components/sql-collection/PreviewTable.js +9 -9
- package/lib/collection-manager/templates/components/sql-collection/SQLInput.js +8 -8
- package/lib/collection-manager/templates/components/sql-collection/SQLRequestProvider.js +10 -10
- package/lib/collection-manager/templates/components/sql-collection/index.js +34 -39
- package/lib/collection-manager/templates/expression.js +9 -9
- package/lib/collection-manager/templates/general.js +9 -9
- package/lib/collection-manager/templates/import.js +8 -8
- package/lib/collection-manager/templates/index.js +47 -52
- package/lib/collection-manager/templates/properties/index.js +11 -9
- package/lib/collection-manager/templates/sql.js +8 -8
- package/lib/collection-manager/templates/tree.js +9 -9
- package/lib/collection-manager/templates/types.js +3 -4
- package/lib/collection-manager/templates/view.js +9 -9
- package/lib/collection-manager/templates/xlsx.js +8 -8
- package/lib/collection-manager/types.js +3 -4
- package/lib/collection-manager/utils.js +13 -15
- package/lib/common/SelectWithTitle.js +8 -8
- package/lib/common/appInfo/CurrentAppInfoProvider.js +13 -9
- package/lib/common/appInfo/index.js +16 -21
- package/lib/common/index.js +28 -33
- package/lib/common/useFieldComponentName.js +10 -10
- package/lib/common/useNiceDropdownHeight.js +8 -8
- package/lib/data-source/collection/AssociationProvider.js +14 -10
- package/lib/data-source/collection/Collection.js +8 -8
- package/lib/data-source/collection/CollectionManager.js +10 -13
- package/lib/data-source/collection/CollectionManagerProvider.js +16 -10
- package/lib/data-source/collection/CollectionProvider.js +16 -10
- package/lib/data-source/collection/ExtendCollectionsProvider.js +14 -10
- package/lib/data-source/collection/index.js +46 -51
- package/lib/data-source/collection/utils.js +12 -14
- package/lib/data-source/collection-field/CollectionField.js +11 -9
- package/lib/data-source/collection-field/CollectionFieldProvider.js +15 -11
- package/lib/data-source/collection-field/index.js +22 -27
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +11 -13
- package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.js +11 -13
- package/lib/data-source/collection-field-interface/index.js +22 -27
- package/lib/data-source/collection-fields-to-initializer-items/CollectionFieldsToFormInitializerItems.js +11 -9
- package/lib/data-source/collection-fields-to-initializer-items/CollectionFieldsToInitializerItems.js +8 -8
- package/lib/data-source/collection-fields-to-initializer-items/index.js +16 -21
- package/lib/data-source/collection-fields-to-initializer-items/items/AssociationCollectionFields.js +10 -10
- package/lib/data-source/collection-fields-to-initializer-items/items/ParentCollectionFields.js +8 -8
- package/lib/data-source/collection-fields-to-initializer-items/items/SelfFields.js +8 -8
- package/lib/data-source/collection-fields-to-initializer-items/items/index.js +12 -8
- package/lib/data-source/collection-fields-to-initializer-items/utils/getInitializerItemsByFields.js +14 -16
- package/lib/data-source/collection-fields-to-initializer-items/utils/index.js +28 -33
- package/lib/data-source/collection-fields-to-initializer-items/utils/type.js +3 -4
- package/lib/data-source/collection-fields-to-initializer-items/utils/useCollectionFieldContext.js +8 -8
- package/lib/data-source/collection-record/CollectionRecord.js +9 -11
- package/lib/data-source/collection-record/CollectionRecordProvider.js +31 -22
- package/lib/data-source/collection-record/index.js +22 -27
- package/lib/data-source/collection-record/isNewRecord.js +12 -10
- package/lib/data-source/collection-template/CollectionTemplate.js +9 -11
- package/lib/data-source/collection-template/CollectionTemplateManager.js +11 -13
- package/lib/data-source/collection-template/index.js +22 -27
- package/lib/data-source/commonsSettingsItem/fieldComponent.js +13 -17
- package/lib/data-source/commonsSettingsItem/index.js +16 -21
- package/lib/data-source/components/CollectionDeletedPlaceholder.js +8 -8
- package/lib/data-source/components/DataSourceApplicationProvider.js +8 -8
- package/lib/data-source/components/index.js +22 -27
- package/lib/data-source/data-block/DataBlockProvider.js +19 -11
- package/lib/data-source/data-block/DataBlockRequestProvider.js +16 -12
- package/lib/data-source/data-block/DataBlockResourceProvider.js +15 -11
- package/lib/data-source/data-block/context/ConfigSetting.provider.js +12 -8
- package/lib/data-source/data-block/index.js +34 -39
- package/lib/data-source/data-source/DataSource.js +10 -8
- package/lib/data-source/data-source/DataSourceManager.js +14 -14
- package/lib/data-source/data-source/DataSourceManagerProvider.js +14 -10
- package/lib/data-source/data-source/DataSourceProvider.js +19 -17
- package/lib/data-source/data-source/index.js +34 -39
- package/lib/data-source/index.js +78 -83
- package/lib/data-source/utils.js +13 -11
- package/lib/filter-provider/FilterProvider.js +18 -18
- package/lib/filter-provider/index.js +23 -28
- package/lib/filter-provider/utils.js +45 -29
- package/lib/flag-provider/FlagProvider.js +14 -16
- package/lib/flag-provider/hooks/useFlag.js +8 -8
- package/lib/flag-provider/index.js +22 -27
- package/lib/hooks/index.js +22 -27
- package/lib/hooks/useAdminSchemaUid.js +9 -11
- package/lib/hooks/useMenuItem.js +20 -16
- package/lib/hooks/useViewport.js +8 -8
- package/lib/i18n/i18n.js +12 -14
- package/lib/i18n/index.js +17 -22
- package/lib/icon/Icon.js +30 -24
- package/lib/icon/index.js +16 -21
- package/lib/icon/preloaded.js +27 -13
- package/lib/index.js +500 -504
- package/lib/modules/actions/ActionSchemaToolbar.js +8 -8
- package/lib/modules/actions/add-child/CreateChildInitializer.js +8 -8
- package/lib/modules/actions/add-child/addChildActionSettings.js +8 -8
- package/lib/modules/actions/add-new/CreateActionInitializer.js +8 -8
- package/lib/modules/actions/add-new/addNewActionSettings.js +8 -8
- package/lib/modules/actions/add-new/createFormBlockInitializers.js +8 -8
- package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.js +8 -8
- package/lib/modules/actions/add-record/customizeAddRecordActionSettings.js +8 -8
- package/lib/modules/actions/add-record/customizeCreateFormBlockInitializers.js +8 -8
- package/lib/modules/actions/associate/AssociateActionInitializer.js +8 -8
- package/lib/modules/actions/associate/AssociateActionProvider.js +11 -11
- package/lib/modules/actions/associate/AssociateActionSettings.js +8 -8
- package/lib/modules/actions/bulk-destroy/BulkDestroyActionInitializer.js +8 -8
- package/lib/modules/actions/bulk-destroy/bulkDeleteActionSettings.js +8 -8
- package/lib/modules/actions/delete/DestroyActionInitializer.js +8 -8
- package/lib/modules/actions/delete/deleteActionSettings.js +9 -9
- package/lib/modules/actions/disassociate/DisassociateActionInitializer.js +8 -8
- package/lib/modules/actions/disassociate/disassociateActionSettings.js +8 -8
- package/lib/modules/actions/expand-collapse/ExpandableActionInitializer.js +8 -8
- package/lib/modules/actions/expand-collapse/expendableActionSettings.js +9 -9
- package/lib/modules/actions/filter/FilterActionInitializer.js +8 -8
- package/lib/modules/actions/filter/filterActionSettings.js +9 -9
- package/lib/modules/actions/link/customizeLinkActionSettings.js +14 -16
- package/lib/modules/actions/link/hooks.js +8 -8
- package/lib/modules/actions/refresh/RefreshActionInitializer.js +8 -8
- package/lib/modules/actions/refresh/refreshActionSettings.js +8 -8
- package/lib/modules/actions/save-record/SaveRecordActionInitializer.js +8 -8
- package/lib/modules/actions/save-record/customizeSaveRecordActionSettings.js +9 -9
- package/lib/modules/actions/submit/CreateSubmitActionInitializer.js +8 -8
- package/lib/modules/actions/submit/UpdateSubmitActionInitializer.js +8 -8
- package/lib/modules/actions/submit/createSubmitActionSettings.js +14 -12
- package/lib/modules/actions/submit/updateSubmitActionSettings.js +15 -13
- package/lib/modules/actions/update-record/UpdateRecordActionInitializer.js +8 -8
- package/lib/modules/actions/update-record/customizeUpdateRecordActionSettings.js +9 -9
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +8 -8
- package/lib/modules/actions/view-edit-popup/RecordFormBlockInitializers.js +8 -8
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +8 -8
- package/lib/modules/actions/view-edit-popup/ViewActionInitializer.js +8 -8
- package/lib/modules/actions/view-edit-popup/customizePopupActionSettings.js +8 -8
- package/lib/modules/actions/view-edit-popup/editActionSettings.js +8 -8
- package/lib/modules/actions/view-edit-popup/viewActionSettings.js +8 -8
- package/lib/modules/blocks/BlockSchemaToolbar.js +9 -9
- package/lib/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.js +12 -10
- package/lib/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.js +8 -8
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +17 -15
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.js +8 -8
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.js +8 -8
- package/lib/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.js +15 -15
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.js +12 -10
- package/lib/modules/blocks/data-blocks/details-single/createDetailsUISchema.js +8 -8
- package/lib/modules/blocks/data-blocks/details-single/detailsBlockSettings.js +11 -9
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.js +10 -8
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.js +8 -8
- package/lib/modules/blocks/data-blocks/form/CreateFormBlockInitializer.js +8 -8
- package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.js +21 -25
- package/lib/modules/blocks/data-blocks/form/FormBlockInitializer.js +10 -8
- package/lib/modules/blocks/data-blocks/form/FormItemSchemaToolbar.js +8 -8
- package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.js +10 -8
- package/lib/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.js +8 -8
- package/lib/modules/blocks/data-blocks/form/createEditFormBlockUISchema.js +8 -8
- package/lib/modules/blocks/data-blocks/form/createFormActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/form/createFormBlockSettings.js +14 -12
- package/lib/modules/blocks/data-blocks/form/editFormBlockSettings.js +9 -9
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +19 -23
- package/lib/modules/blocks/data-blocks/form/formActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/form/formItemInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.js +8 -8
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.js +8 -8
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.js +8 -8
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.js +8 -8
- package/lib/modules/blocks/data-blocks/form/index.js +94 -99
- package/lib/modules/blocks/data-blocks/form/updateFormActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.js +10 -8
- package/lib/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.js +9 -11
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +22 -26
- package/lib/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.js +8 -8
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.js +8 -8
- package/lib/modules/blocks/data-blocks/grid-card/utils.js +9 -11
- package/lib/modules/blocks/data-blocks/list/ListActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/list/ListBlockInitializer.js +12 -10
- package/lib/modules/blocks/data-blocks/list/createListBlockUISchema.js +9 -11
- package/lib/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.js +8 -8
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +14 -18
- package/lib/modules/blocks/data-blocks/list/listItemActionInitializers.js +8 -8
- package/lib/modules/blocks/data-blocks/table/TableActionColumnInitializers.js +16 -18
- package/lib/modules/blocks/data-blocks/table/TableActionInitializers.js +9 -9
- package/lib/modules/blocks/data-blocks/table/TableBlockInitializer.js +12 -10
- package/lib/modules/blocks/data-blocks/table/TableColumnInitializers.js +9 -9
- package/lib/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.js +10 -14
- package/lib/modules/blocks/data-blocks/table/createTableBlockUISchema.js +8 -8
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.js +11 -9
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +28 -35
- package/lib/modules/blocks/data-blocks/table/index.js +64 -69
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +24 -24
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +13 -13
- package/lib/modules/blocks/data-blocks/table/utils.js +9 -9
- package/lib/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.js +8 -8
- package/lib/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.js +8 -8
- package/lib/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.js +9 -11
- package/lib/modules/blocks/data-blocks/table-selector/index.js +22 -27
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +16 -16
- package/lib/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.js +8 -8
- package/lib/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.js +8 -8
- package/lib/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.js +8 -8
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.js +9 -9
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +17 -21
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.js +17 -15
- package/lib/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.js +9 -11
- package/lib/modules/blocks/filter-blocks/form/FilterFormActionInitializers.js +8 -8
- package/lib/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.js +8 -8
- package/lib/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.js +8 -8
- package/lib/modules/blocks/filter-blocks/form/filterFormBlockSettings.js +9 -9
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +17 -21
- package/lib/modules/blocks/filter-blocks/form/filterFormItemInitializers.js +8 -8
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.js +9 -11
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.js +8 -8
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.js +8 -8
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.js +10 -8
- package/lib/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.js +9 -9
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +17 -21
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.js +8 -8
- package/lib/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.js +8 -8
- package/lib/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.js +8 -8
- package/lib/modules/blocks/other-blocks/markdown/markdownBlockSettings.js +8 -8
- package/lib/modules/blocks/useParentRecordCommon.js +8 -8
- package/lib/modules/blocks/useSourceId.js +8 -8
- package/lib/modules/blocks/useSourceKey.js +8 -8
- package/lib/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.js +10 -10
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +35 -35
- package/lib/modules/fields/component/Checkbox/checkboxComponentFieldSettings.js +9 -9
- package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +8 -8
- package/lib/modules/fields/component/DatePicker/datePickerComponentFieldSettings.js +8 -8
- package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.js +10 -10
- package/lib/modules/fields/component/FileManager/fileManagerComponentFieldSettings.js +11 -11
- package/lib/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.js +10 -10
- package/lib/modules/fields/component/Input/inputComponentFieldsSettings.js +8 -8
- package/lib/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.js +14 -14
- package/lib/modules/fields/component/Nester/subformComponentFieldSettings.js +10 -10
- package/lib/modules/fields/component/Picker/TableSelectorInitializers.js +8 -8
- package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.js +16 -14
- package/lib/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.js +9 -9
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +9 -9
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +47 -35
- package/lib/modules/fields/component/SubTable/secondLevelSelect.js +11 -11
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +22 -16
- package/lib/modules/fields/component/Tag/tagComponentFieldSettings.js +13 -13
- package/lib/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.js +8 -8
- package/lib/modules/fields/initializer/CollectionFieldInitializer.js +8 -8
- package/lib/modules/fields/initializer/TableCollectionFieldInitializer.js +8 -8
- package/lib/modules/menu/GroupItem.js +8 -8
- package/lib/modules/menu/LinkMenuItem.js +8 -8
- package/lib/modules/menu/PageMenuItem.js +8 -8
- package/lib/modules/menu/UploadMenuItem.js +8 -8
- package/lib/modules/menu/menuItemInitializer.js +8 -8
- package/lib/modules/page/BlockInitializers.js +8 -8
- package/lib/modules/variable/DeclareVariable.js +12 -10
- package/lib/modules/variable/useVariable.js +8 -8
- package/lib/powered-by/index.js +8 -8
- package/lib/record-provider/index.js +28 -14
- package/lib/route-switch/RouteSchemaComponent.js +8 -8
- package/lib/route-switch/index.js +16 -21
- package/lib/schema-component/antd/AntdSchemaComponentProvider.js +8 -8
- package/lib/schema-component/antd/__builtins__/hooks/index.js +28 -33
- package/lib/schema-component/antd/__builtins__/hooks/useConfig.js +8 -8
- package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.js +9 -9
- package/lib/schema-component/antd/__builtins__/hooks/useToken.js +8 -8
- package/lib/schema-component/antd/__builtins__/index.js +36 -41
- package/lib/schema-component/antd/__builtins__/loading.js +10 -10
- package/lib/schema-component/antd/__builtins__/portal.js +11 -9
- package/lib/schema-component/antd/__builtins__/render.js +14 -15
- package/lib/schema-component/antd/__builtins__/style.js +12 -10
- package/lib/schema-component/antd/action/Action.Area.js +24 -18
- package/lib/schema-component/antd/action/Action.Area.style.js +8 -8
- package/lib/schema-component/antd/action/Action.Container.js +13 -11
- package/lib/schema-component/antd/action/Action.Designer.js +78 -44
- package/lib/schema-component/antd/action/Action.Drawer.js +17 -17
- package/lib/schema-component/antd/action/Action.Drawer.style.js +8 -8
- package/lib/schema-component/antd/action/Action.Link.js +10 -14
- package/lib/schema-component/antd/action/Action.Modal.js +19 -19
- package/lib/schema-component/antd/action/Action.Modal.style.js +8 -8
- package/lib/schema-component/antd/action/Action.Page.js +13 -11
- package/lib/schema-component/antd/action/Action.Popover.js +2 -3
- package/lib/schema-component/antd/action/Action.Sheet.js +15 -17
- package/lib/schema-component/antd/action/Action.js +23 -25
- package/lib/schema-component/antd/action/Action.style.js +10 -10
- package/lib/schema-component/antd/action/ActionBar.js +16 -16
- package/lib/schema-component/antd/action/context.js +12 -10
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfAction.js +8 -8
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.js +8 -8
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfModal.js +8 -8
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.js +8 -8
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.js +8 -8
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForModal.js +8 -8
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForPopover.js +8 -8
- package/lib/schema-component/antd/action/hooks.js +31 -27
- package/lib/schema-component/antd/action/index.js +72 -77
- package/lib/schema-component/antd/action/types.js +3 -4
- package/lib/schema-component/antd/action/utils.js +15 -11
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelect.js +12 -15
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.js +12 -15
- package/lib/schema-component/antd/appends-tree-select/index.js +22 -27
- package/lib/schema-component/antd/association-cascader/AssociationCascader.js +18 -15
- package/lib/schema-component/antd/association-cascader/index.js +16 -21
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +17 -20
- package/lib/schema-component/antd/association-field/AssociationSelect.js +22 -22
- package/lib/schema-component/antd/association-field/Editable.js +23 -29
- package/lib/schema-component/antd/association-field/FileManager.js +14 -16
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +56 -61
- package/lib/schema-component/antd/association-field/InternalCascader.js +56 -59
- package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +10 -10
- package/lib/schema-component/antd/association-field/InternalNester.js +11 -15
- package/lib/schema-component/antd/association-field/InternalPicker.js +14 -16
- package/lib/schema-component/antd/association-field/InternalPopoverNester.js +9 -9
- package/lib/schema-component/antd/association-field/InternalSubTable.js +12 -16
- package/lib/schema-component/antd/association-field/InternalTag.js +13 -17
- package/lib/schema-component/antd/association-field/InternalViewer.js +24 -26
- package/lib/schema-component/antd/association-field/Nester.js +12 -16
- package/lib/schema-component/antd/association-field/ReadPretty.js +8 -8
- package/lib/schema-component/antd/association-field/SubTable.js +10 -10
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +32 -32
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +10 -14
- package/lib/schema-component/antd/association-field/SubTabs/index.js +16 -21
- package/lib/schema-component/antd/association-field/SubTabs/styles.js +9 -9
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +10 -14
- package/lib/schema-component/antd/association-field/context.js +8 -8
- package/lib/schema-component/antd/association-field/hooks.js +28 -22
- package/lib/schema-component/antd/association-field/index.js +40 -44
- package/lib/schema-component/antd/association-field/schema.js +9 -11
- package/lib/schema-component/antd/association-field/util.js +29 -19
- package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +10 -10
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +9 -9
- package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.js +10 -10
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +17 -21
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +13 -17
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.style.js +10 -10
- package/lib/schema-component/antd/association-filter/AssociationFilter.js +12 -14
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +8 -8
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +9 -9
- package/lib/schema-component/antd/association-filter/utilts.js +9 -11
- package/lib/schema-component/antd/association-select/AssociationSelect.js +36 -38
- package/lib/schema-component/antd/association-select/ReadPretty.js +10 -14
- package/lib/schema-component/antd/association-select/index.js +16 -21
- package/lib/schema-component/antd/association-select/useServiceOptions.js +8 -8
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +9 -9
- package/lib/schema-component/antd/auto-complete/index.js +16 -21
- package/lib/schema-component/antd/block-item/BlockItem.js +10 -14
- package/lib/schema-component/antd/block-item/BlockToolbar.js +34 -28
- package/lib/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.js +12 -16
- package/lib/schema-component/antd/block-item/index.js +16 -21
- package/lib/schema-component/antd/block-item/useBlockToolbar.js +19 -17
- package/lib/schema-component/antd/card-item/CardItem.js +10 -14
- package/lib/schema-component/antd/card-item/index.js +16 -21
- package/lib/schema-component/antd/card-item/style.js +10 -10
- package/lib/schema-component/antd/cascader/Cascader.js +13 -11
- package/lib/schema-component/antd/cascader/ReadPretty.js +8 -8
- package/lib/schema-component/antd/cascader/defaultFieldNames.js +9 -11
- package/lib/schema-component/antd/cascader/index.js +16 -21
- package/lib/schema-component/antd/checkbox/Checkbox.js +23 -21
- package/lib/schema-component/antd/checkbox/index.js +16 -21
- package/lib/schema-component/antd/collection-select/CollectionSelect.js +19 -15
- package/lib/schema-component/antd/collection-select/index.js +16 -21
- package/lib/schema-component/antd/color-picker/ColorPicker.js +15 -17
- package/lib/schema-component/antd/color-picker/ReadPretty.js +11 -15
- package/lib/schema-component/antd/color-picker/index.js +16 -21
- package/lib/schema-component/antd/color-picker/util.js +17 -11
- package/lib/schema-component/antd/color-select/ColorSelect.js +12 -10
- package/lib/schema-component/antd/color-select/index.js +16 -21
- package/lib/schema-component/antd/cron/Cron.js +15 -17
- package/lib/schema-component/antd/cron/CronSet.js +14 -18
- package/lib/schema-component/antd/cron/index.js +22 -27
- package/lib/schema-component/antd/custom-cascader/CustomCascader.js +14 -12
- package/lib/schema-component/antd/custom-cascader/ReadPretty.js +8 -8
- package/lib/schema-component/antd/custom-cascader/defaultFieldNames.js +9 -11
- package/lib/schema-component/antd/custom-cascader/index.js +16 -21
- package/lib/schema-component/antd/date-picker/DatePicker.js +21 -22
- package/lib/schema-component/antd/date-picker/ReadPretty.js +12 -16
- package/lib/schema-component/antd/date-picker/index.js +16 -21
- package/lib/schema-component/antd/date-picker/util.js +17 -11
- package/lib/schema-component/antd/details/Details.js +11 -15
- package/lib/schema-component/antd/details/index.js +16 -21
- package/lib/schema-component/antd/error-fallback/ErrorFallback.js +8 -8
- package/lib/schema-component/antd/error-fallback/index.js +16 -21
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +9 -9
- package/lib/schema-component/antd/expand-action/Expand.Action.js +10 -10
- package/lib/schema-component/antd/expand-action/index.js +8 -8
- package/lib/schema-component/antd/filter/DynamicComponent.js +12 -16
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +19 -15
- package/lib/schema-component/antd/filter/Filter.js +8 -8
- package/lib/schema-component/antd/filter/FilterAction.js +10 -8
- package/lib/schema-component/antd/filter/FilterGroup.js +8 -8
- package/lib/schema-component/antd/filter/FilterItem.js +8 -8
- package/lib/schema-component/antd/filter/FilterItems.js +9 -9
- package/lib/schema-component/antd/filter/SaveDefaultValue.js +9 -9
- package/lib/schema-component/antd/filter/context.js +13 -9
- package/lib/schema-component/antd/filter/index.js +28 -33
- package/lib/schema-component/antd/filter/useFilterActionProps.js +43 -33
- package/lib/schema-component/antd/filter/useOperators.js +11 -11
- package/lib/schema-component/antd/filter/useValues.js +15 -19
- package/lib/schema-component/antd/filter/utils.js +9 -11
- package/lib/schema-component/antd/form/Form.Designer.js +8 -8
- package/lib/schema-component/antd/form/Form.Settings.js +8 -8
- package/lib/schema-component/antd/form/Form.js +8 -8
- package/lib/schema-component/antd/form/index.js +22 -27
- package/lib/schema-component/antd/form-dialog/index.js +22 -24
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +8 -8
- package/lib/schema-component/antd/form-item/FormItem.FilterFormSettings.js +12 -16
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +67 -49
- package/lib/schema-component/antd/form-item/FormItem.js +14 -16
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +61 -43
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +14 -18
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +12 -16
- package/lib/schema-component/antd/form-item/hooks/useSpecialCase.js +24 -18
- package/lib/schema-component/antd/form-item/index.js +34 -39
- package/lib/schema-component/antd/form-item/utils.js +12 -14
- package/lib/schema-component/antd/form-tab/index.js +21 -23
- package/lib/schema-component/antd/form-v2/Form.Designer.js +14 -10
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.js +8 -8
- package/lib/schema-component/antd/form-v2/Form.Settings.js +20 -16
- package/lib/schema-component/antd/form-v2/Form.js +18 -18
- package/lib/schema-component/antd/form-v2/FormField.js +9 -9
- package/lib/schema-component/antd/form-v2/Templates.js +17 -19
- package/lib/schema-component/antd/form-v2/index.js +50 -54
- package/lib/schema-component/antd/form-v2/utils.js +23 -25
- package/lib/schema-component/antd/grid/Block.js +8 -8
- package/lib/schema-component/antd/grid/Grid.js +34 -36
- package/lib/schema-component/antd/grid/Grid.style.js +10 -10
- package/lib/schema-component/antd/grid/index.js +22 -27
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +21 -19
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.style.js +10 -10
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +14 -18
- package/lib/schema-component/antd/grid-card/GridCard.Item.js +10 -10
- package/lib/schema-component/antd/grid-card/GridCard.js +12 -16
- package/lib/schema-component/antd/grid-card/hooks.js +16 -18
- package/lib/schema-component/antd/grid-card/index.js +16 -21
- package/lib/schema-component/antd/grid-card/options.js +24 -26
- package/lib/schema-component/antd/icon-picker/IconFilterInput.js +11 -15
- package/lib/schema-component/antd/icon-picker/IconList.js +8 -8
- package/lib/schema-component/antd/icon-picker/IconPicker.js +14 -12
- package/lib/schema-component/antd/icon-picker/index.js +16 -21
- package/lib/schema-component/antd/index.js +693 -697
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +9 -9
- package/lib/schema-component/antd/input/Input.js +14 -10
- package/lib/schema-component/antd/input/Json.js +10 -14
- package/lib/schema-component/antd/input/ReadPretty.js +18 -22
- package/lib/schema-component/antd/input/index.js +40 -45
- package/lib/schema-component/antd/input/shared.js +9 -11
- package/lib/schema-component/antd/input-number/InputNumber.js +15 -13
- package/lib/schema-component/antd/input-number/ReadPretty.js +26 -19
- package/lib/schema-component/antd/input-number/index.js +16 -21
- package/lib/schema-component/antd/list/List.Decorator.js +19 -17
- package/lib/schema-component/antd/list/List.Designer.js +14 -18
- package/lib/schema-component/antd/list/List.Item.js +10 -14
- package/lib/schema-component/antd/list/List.js +13 -17
- package/lib/schema-component/antd/list/List.style.js +10 -10
- package/lib/schema-component/antd/list/hooks.js +9 -11
- package/lib/schema-component/antd/list/index.js +16 -21
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +8 -8
- package/lib/schema-component/antd/markdown/Markdown.Void.js +13 -18
- package/lib/schema-component/antd/markdown/Markdown.js +14 -10
- package/lib/schema-component/antd/markdown/index.js +16 -21
- package/lib/schema-component/antd/markdown/style.js +9 -9
- package/lib/schema-component/antd/markdown/util.js +15 -15
- package/lib/schema-component/antd/media-card/MediaCard.js +8 -8
- package/lib/schema-component/antd/media-card/index.js +16 -21
- package/lib/schema-component/antd/media-card/style.js +8 -8
- package/lib/schema-component/antd/menu/AdminMenu.js +8 -8
- package/lib/schema-component/antd/menu/AdminMenu.style.js +8 -8
- package/lib/schema-component/antd/menu/Menu.Designer.js +12 -10
- package/lib/schema-component/antd/menu/Menu.js +36 -40
- package/lib/schema-component/antd/menu/Menu.styles.js +9 -9
- package/lib/schema-component/antd/menu/MenuAdd.js +8 -8
- package/lib/schema-component/antd/menu/MenuItemInitializers/index.js +8 -8
- package/lib/schema-component/antd/menu/MenuSearchAdd.js +10 -14
- package/lib/schema-component/antd/menu/MenuSearchAdd.style.js +9 -9
- package/lib/schema-component/antd/menu/index.js +28 -33
- package/lib/schema-component/antd/menu/locale.js +8 -8
- package/lib/schema-component/antd/menu/tools.js +10 -12
- package/lib/schema-component/antd/menu/util.js +13 -9
- package/lib/schema-component/antd/nanoIDInput/NanoIDInput.js +8 -8
- package/lib/schema-component/antd/nanoIDInput/index.js +16 -21
- package/lib/schema-component/antd/page/FixedBlock.js +20 -18
- package/lib/schema-component/antd/page/FixedBlockDesignerItem.js +10 -10
- package/lib/schema-component/antd/page/Page.Settings.js +14 -14
- package/lib/schema-component/antd/page/Page.js +15 -19
- package/lib/schema-component/antd/page/Page.style.js +8 -8
- package/lib/schema-component/antd/page/PageDesigner.js +8 -8
- package/lib/schema-component/antd/page/PageTab.Settings.js +8 -8
- package/lib/schema-component/antd/page/PageTabDesigner.js +8 -8
- package/lib/schema-component/antd/page/hooks/index.js +16 -21
- package/lib/schema-component/antd/page/hooks/useIsBlockInPage.js +8 -8
- package/lib/schema-component/antd/page/hooks/useShareActions.js +13 -20
- package/lib/schema-component/antd/page/index.js +47 -52
- package/lib/schema-component/antd/page/style.js +10 -8
- package/lib/schema-component/antd/pagination/index.js +8 -8
- package/lib/schema-component/antd/password/Password.js +14 -12
- package/lib/schema-component/antd/password/PasswordStrength.js +8 -8
- package/lib/schema-component/antd/password/index.js +16 -21
- package/lib/schema-component/antd/password/utils.js +11 -13
- package/lib/schema-component/antd/percent/Percent.js +8 -8
- package/lib/schema-component/antd/percent/index.js +16 -21
- package/lib/schema-component/antd/popover/Popover.js +10 -10
- package/lib/schema-component/antd/popover/index.js +16 -21
- package/lib/schema-component/antd/preview/Preview.js +24 -24
- package/lib/schema-component/antd/preview/index.js +16 -21
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +14 -16
- package/lib/schema-component/antd/quick-edit/index.js +16 -21
- package/lib/schema-component/antd/radio/Radio.js +13 -11
- package/lib/schema-component/antd/radio/index.js +16 -21
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +16 -10
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +12 -12
- package/lib/schema-component/antd/record-picker/RecordPicker.js +8 -8
- package/lib/schema-component/antd/record-picker/index.js +56 -60
- package/lib/schema-component/antd/record-picker/useFieldNames.js +9 -9
- package/lib/schema-component/antd/record-picker/util.js +17 -17
- package/lib/schema-component/antd/remote-select/ReadPretty.js +8 -8
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +46 -50
- package/lib/schema-component/antd/remote-select/index.js +16 -21
- package/lib/schema-component/antd/remote-select/shared.js +8 -8
- package/lib/schema-component/antd/rich-text/RichText.js +10 -14
- package/lib/schema-component/antd/rich-text/index.js +16 -21
- package/lib/schema-component/antd/rich-text/style.js +8 -8
- package/lib/schema-component/antd/scroll-area/ScrollArea.js +13 -11
- package/lib/schema-component/antd/scroll-area/index.js +16 -21
- package/lib/schema-component/antd/select/FormulaSelect.js +15 -15
- package/lib/schema-component/antd/select/ReadPretty.js +9 -9
- package/lib/schema-component/antd/select/Select.js +22 -24
- package/lib/schema-component/antd/select/index.js +23 -28
- package/lib/schema-component/antd/select/utils.js +12 -10
- package/lib/schema-component/antd/slider/index.js +17 -22
- package/lib/schema-component/antd/slider/slider.js +13 -11
- package/lib/schema-component/antd/space/index.js +16 -18
- package/lib/schema-component/antd/table/Table.Array.Designer.js +8 -8
- package/lib/schema-component/antd/table/Table.Array.js +16 -20
- package/lib/schema-component/antd/table/Table.Column.ActionBar.js +12 -10
- package/lib/schema-component/antd/table/Table.Column.Decorator.js +12 -10
- package/lib/schema-component/antd/table/Table.Column.Designer.js +19 -23
- package/lib/schema-component/antd/table/Table.Column.js +8 -8
- package/lib/schema-component/antd/table/Table.Designer.js +8 -8
- package/lib/schema-component/antd/table/Table.RowActionDesigner.js +8 -8
- package/lib/schema-component/antd/table/Table.RowSelection.js +8 -8
- package/lib/schema-component/antd/table/Table.Void.Designer.js +19 -19
- package/lib/schema-component/antd/table/Table.Void.js +19 -19
- package/lib/schema-component/antd/table/index.js +8 -8
- package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +8 -8
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +12 -10
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +12 -10
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +36 -36
- package/lib/schema-component/antd/table-v2/Table.Column.js +8 -8
- package/lib/schema-component/antd/table-v2/Table.Designer.js +8 -8
- package/lib/schema-component/antd/table-v2/Table.Index.js +8 -8
- package/lib/schema-component/antd/table-v2/Table.js +31 -38
- package/lib/schema-component/antd/table-v2/Table.styles.js +9 -9
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +27 -25
- package/lib/schema-component/antd/table-v2/TableField.js +9 -9
- package/lib/schema-component/antd/table-v2/TableSelector.js +8 -8
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +18 -22
- package/lib/schema-component/antd/table-v2/components/ColumnFieldProvider.js +8 -8
- package/lib/schema-component/antd/table-v2/index.js +64 -68
- package/lib/schema-component/antd/table-v2/utils.js +16 -18
- package/lib/schema-component/antd/tabs/Tabs.Designer.js +9 -10
- package/lib/schema-component/antd/tabs/Tabs.js +10 -14
- package/lib/schema-component/antd/tabs/context.js +12 -14
- package/lib/schema-component/antd/tabs/index.js +23 -28
- package/lib/schema-component/antd/time-picker/ReadPretty.js +11 -15
- package/lib/schema-component/antd/time-picker/TimePicker.js +12 -10
- package/lib/schema-component/antd/time-picker/index.js +16 -21
- package/lib/schema-component/antd/tracking-link/index.js +9 -9
- package/lib/schema-component/antd/tree/Tree.js +13 -13
- package/lib/schema-component/antd/tree/index.js +8 -8
- package/lib/schema-component/antd/tree-select/ReadPretty.js +17 -23
- package/lib/schema-component/antd/tree-select/TreeSelect.js +14 -12
- package/lib/schema-component/antd/tree-select/index.js +16 -21
- package/lib/schema-component/antd/unixTimestamp/UnixTimestamp.js +10 -14
- package/lib/schema-component/antd/unixTimestamp/index.js +16 -21
- package/lib/schema-component/antd/upload/ReadPretty.js +18 -20
- package/lib/schema-component/antd/upload/Upload.js +26 -26
- package/lib/schema-component/antd/upload/index.js +16 -21
- package/lib/schema-component/antd/upload/placeholder.js +9 -11
- package/lib/schema-component/antd/upload/shared.js +60 -26
- package/lib/schema-component/antd/upload/style.js +8 -8
- package/lib/schema-component/antd/variable/CodeMirror.js +9 -9
- package/lib/schema-component/antd/variable/Input.js +16 -23
- package/lib/schema-component/antd/variable/JSONInput.js +8 -8
- package/lib/schema-component/antd/variable/RawTextArea.js +10 -10
- package/lib/schema-component/antd/variable/TextArea.js +25 -33
- package/lib/schema-component/antd/variable/TextAreaWithGlobalScope.js +12 -10
- package/lib/schema-component/antd/variable/Variable.js +17 -11
- package/lib/schema-component/antd/variable/VariableSelect.js +13 -17
- package/lib/schema-component/antd/variable/VariableSelect.style.js +10 -10
- package/lib/schema-component/antd/variable/XButton.js +8 -8
- package/lib/schema-component/antd/variable/index.js +25 -29
- package/lib/schema-component/antd/variable/style.js +8 -8
- package/lib/schema-component/common/dnd-context/index.js +22 -22
- package/lib/schema-component/common/index.js +22 -27
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +10 -14
- package/lib/schema-component/common/infinite-scroll/style.js +10 -10
- package/lib/schema-component/common/sortable-item/DragHandleMenu.js +8 -8
- package/lib/schema-component/common/sortable-item/DragHandleMenu.style.js +9 -9
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.js +8 -8
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.style.js +8 -8
- package/lib/schema-component/common/sortable-item/SortableItem.js +27 -21
- package/lib/schema-component/common/sortable-item/index.js +16 -21
- package/lib/schema-component/common/utils/logic.js +14 -16
- package/lib/schema-component/common/utils/uitls.js +27 -25
- package/lib/schema-component/context.js +8 -8
- package/lib/schema-component/core/DesignableSwitch.js +8 -8
- package/lib/schema-component/core/FormProvider.js +8 -8
- package/lib/schema-component/core/RemoteSchemaComponent.js +8 -8
- package/lib/schema-component/core/SchemaComponent.js +10 -10
- package/lib/schema-component/core/SchemaComponentOptions.js +10 -8
- package/lib/schema-component/core/SchemaComponentPlugin.js +8 -8
- package/lib/schema-component/core/SchemaComponentProvider.js +8 -8
- package/lib/schema-component/core/index.js +52 -57
- package/lib/schema-component/hooks/index.js +82 -87
- package/lib/schema-component/hooks/useAttach.js +8 -8
- package/lib/schema-component/hooks/useCompile.js +8 -8
- package/lib/schema-component/hooks/useComponent.js +8 -8
- package/lib/schema-component/hooks/useDesignable.js +37 -41
- package/lib/schema-component/hooks/useDesigner.js +8 -8
- package/lib/schema-component/hooks/useFieldComponentOptions.js +9 -9
- package/lib/schema-component/hooks/useFieldModeOptions.js +9 -9
- package/lib/schema-component/hooks/useFieldProps.js +8 -8
- package/lib/schema-component/hooks/useFieldTitle.js +10 -10
- package/lib/schema-component/hooks/useProps.js +9 -11
- package/lib/schema-component/hooks/useSchemaComponentContext.js +8 -8
- package/lib/schema-component/hooks/useTableSize.js +11 -11
- package/lib/schema-component/index.js +48 -53
- package/lib/schema-component/types.js +14 -4
- package/lib/schema-initializer/SchemaInitializerPlugin.js +8 -8
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +8 -8
- package/lib/schema-initializer/buttons/FormItemInitializers.js +25 -17
- package/lib/schema-initializer/buttons/RecordBlockInitializers.js +12 -10
- package/lib/schema-initializer/buttons/SubTableActionInitializers.js +8 -8
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +24 -12
- package/lib/schema-initializer/buttons/index.js +46 -51
- package/lib/schema-initializer/components/CreateRecordAction.js +23 -23
- package/lib/schema-initializer/components/DeletedField.js +8 -8
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +15 -17
- package/lib/schema-initializer/components/assigned-field/index.js +16 -21
- package/lib/schema-initializer/components/index.js +22 -27
- package/lib/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.js +8 -8
- package/lib/schema-initializer/index.js +119 -123
- package/lib/schema-initializer/items/ActionInitializer.js +8 -8
- package/lib/schema-initializer/items/BlockInitializer.js +14 -12
- package/lib/schema-initializer/items/CreateFilterActionInitializer.js +8 -8
- package/lib/schema-initializer/items/CreateResetActionInitializer.js +8 -8
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +32 -26
- package/lib/schema-initializer/items/CustomizeActionInitializer.js +8 -8
- package/lib/schema-initializer/items/DataBlockInitializer.js +19 -19
- package/lib/schema-initializer/items/DeleteEventActionInitializer.js +8 -8
- package/lib/schema-initializer/items/FilterBlockInitializer.js +8 -8
- package/lib/schema-initializer/items/G2PlotInitializer.js +8 -8
- package/lib/schema-initializer/items/InitializerWithSwitch.js +10 -10
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +10 -8
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +12 -10
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +12 -10
- package/lib/schema-initializer/items/RecordAssociationGridCardBlockInitializer.js +10 -8
- package/lib/schema-initializer/items/RecordAssociationListBlockInitializer.js +10 -8
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +12 -10
- package/lib/schema-initializer/items/SelectActionInitializer.js +8 -8
- package/lib/schema-initializer/items/SubmitActionInitializer.js +8 -8
- package/lib/schema-initializer/items/TableActionColumnInitializer.js +8 -8
- package/lib/schema-initializer/items/index.js +148 -153
- package/lib/schema-initializer/style.js +8 -8
- package/lib/schema-initializer/utils.js +174 -135
- package/lib/schema-items/GeneralSchemaItems.js +16 -20
- package/lib/schema-items/GeneralSettings.js +14 -14
- package/lib/schema-items/OpenModeSchemaItems.js +16 -14
- package/lib/schema-items/index.js +22 -27
- package/lib/schema-settings/DataTemplates/FormDataTemplates.js +20 -20
- package/lib/schema-settings/DataTemplates/TreeLabel.js +8 -8
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +13 -17
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +26 -28
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.style.js +8 -8
- package/lib/schema-settings/DataTemplates/components/Designer.js +15 -17
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +28 -30
- package/lib/schema-settings/DataTemplates/index.js +16 -21
- package/lib/schema-settings/DataTemplates/utils.js +18 -22
- package/lib/schema-settings/DateFormat/ExpiresRadio.js +15 -17
- package/lib/schema-settings/EditCustomDefaultValue.js +11 -9
- package/lib/schema-settings/EditFormulaTitleField.js +19 -15
- package/lib/schema-settings/EnableChildCollections/DynamicComponent.js +8 -8
- package/lib/schema-settings/EnableChildCollections/index.js +10 -10
- package/lib/schema-settings/GeneralSchemaDesigner.js +18 -20
- package/lib/schema-settings/LinkageRules/DynamicComponent.js +12 -16
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +14 -16
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +11 -9
- package/lib/schema-settings/LinkageRules/ValueDynamicComponent.js +10 -14
- package/lib/schema-settings/LinkageRules/Variables.js +9 -9
- package/lib/schema-settings/LinkageRules/action-hooks.js +10 -10
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +12 -16
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +25 -27
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.style.js +8 -8
- package/lib/schema-settings/LinkageRules/context.js +14 -10
- package/lib/schema-settings/LinkageRules/index.js +8 -8
- package/lib/schema-settings/LinkageRules/type.js +9 -11
- package/lib/schema-settings/LinkageRules/useValues.js +10 -10
- package/lib/schema-settings/SchemaSettingCollection.js +9 -9
- package/lib/schema-settings/SchemaSettingComponent.js +8 -8
- package/lib/schema-settings/SchemaSettings.js +94 -46
- package/lib/schema-settings/SchemaSettingsDataScope.js +10 -10
- package/lib/schema-settings/SchemaSettingsDateFormat.js +12 -12
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +13 -17
- package/lib/schema-settings/SchemaSettingsNumberFormat.js +8 -8
- package/lib/schema-settings/SchemaSettingsPlugin.js +8 -8
- package/lib/schema-settings/SchemaSettingsSortingRule.js +13 -17
- package/lib/schema-settings/VariableInput/VariableInput.js +16 -16
- package/lib/schema-settings/VariableInput/hooks/index.js +28 -33
- package/lib/schema-settings/VariableInput/hooks/useBaseVariable.js +17 -19
- package/lib/schema-settings/VariableInput/hooks/useBlockCollection.js +9 -9
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +13 -11
- package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +10 -10
- package/lib/schema-settings/VariableInput/hooks/useFilterVariable.js +13 -13
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +10 -8
- package/lib/schema-settings/VariableInput/hooks/useIterationVariable.js +10 -8
- package/lib/schema-settings/VariableInput/hooks/useParentRecordVariable.js +12 -10
- package/lib/schema-settings/VariableInput/hooks/usePopupVariable.js +8 -8
- package/lib/schema-settings/VariableInput/hooks/useRecordVariable.js +14 -16
- package/lib/schema-settings/VariableInput/hooks/useRoleVariable.js +11 -9
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +13 -11
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +9 -9
- package/lib/schema-settings/VariableInput/index.js +24 -29
- package/lib/schema-settings/VariableInput/type.js +3 -4
- package/lib/schema-settings/VariableInput/utils/formatVariableScop.js +9 -11
- package/lib/schema-settings/filter-form/FormFilterScope.js +8 -8
- package/lib/schema-settings/filter-form/context.js +17 -11
- package/lib/schema-settings/hooks/useFilterFormCustomProps.js +8 -8
- package/lib/schema-settings/hooks/useGetAriaLabelOfDesigner.js +8 -8
- package/lib/schema-settings/hooks/useIsAllowToSetDefaultValue.js +16 -16
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +10 -10
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +8 -8
- package/lib/schema-settings/index.js +125 -130
- package/lib/schema-settings/isPatternDisabled.js +10 -12
- package/lib/schema-settings/styles.js +8 -8
- package/lib/schema-settings/types.js +3 -4
- package/lib/schema-settings/utils/createModalSettingsItem.js +10 -14
- package/lib/schema-settings/utils/createSelectSettingsItem.js +10 -14
- package/lib/schema-settings/utils/createSwitchSettingsItem.js +10 -14
- package/lib/schema-settings/utils/createTextSettingsItem.js +8 -8
- package/lib/schema-settings/utils/index.js +34 -39
- package/lib/schema-settings/utils/util.js +16 -16
- package/lib/schema-templates/BlockTemplate.js +12 -10
- package/lib/schema-templates/BlockTemplateDetails.js +11 -11
- package/lib/schema-templates/BlockTemplatePage.js +10 -8
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +23 -13
- package/lib/schema-templates/collections/uiSchemaTemplates.js +9 -11
- package/lib/schema-templates/index.js +34 -39
- package/lib/schema-templates/schemas/CollectionTitle.js +8 -8
- package/lib/schema-templates/schemas/uiSchemaTemplates.js +8 -8
- package/lib/schema-templates/useSchemaTemplateManager.js +10 -10
- package/lib/style/css-variable/CSSVariableProvider.js +13 -11
- package/lib/style/css-variable/index.js +10 -14
- package/lib/style/index.js +24 -12
- package/lib/style/theme/AntdAppProvider.js +10 -10
- package/lib/style/theme/defaultTheme.js +9 -11
- package/lib/style/theme/index.js +95 -99
- package/lib/style/theme/type.js +3 -4
- package/lib/style/useToken.js +8 -8
- package/lib/testUtils/index.js +16 -21
- package/lib/testUtils/mockAPIClient.js +27 -25
- package/lib/user/ChangePassword.js +8 -8
- package/lib/user/CurrentUser.js +16 -12
- package/lib/user/CurrentUserProvider.js +22 -14
- package/lib/user/CurrentUserSettingsMenuProvider.js +15 -13
- package/lib/user/EditProfile.js +9 -9
- package/lib/user/LanguageSettings.js +12 -16
- package/lib/user/SwitchRole.js +8 -8
- package/lib/user/VerificationCode.js +8 -8
- package/lib/user/index.js +28 -33
- package/lib/variables/VariablesProvider.js +24 -26
- package/lib/variables/constants.js +9 -11
- package/lib/variables/hooks/useBuiltinVariables.js +10 -10
- package/lib/variables/hooks/useContextVariable.js +14 -14
- package/lib/variables/hooks/useLocalVariables.js +11 -11
- package/lib/variables/hooks/useVariables.js +10 -10
- package/lib/variables/index.js +79 -83
- package/lib/variables/types.js +3 -4
- package/lib/variables/utils/filterEmptyValues.js +9 -11
- package/lib/variables/utils/getAction.js +9 -11
- package/lib/variables/utils/getPath.js +8 -8
- package/lib/variables/utils/getVariableName.js +10 -14
- package/lib/variables/utils/hasRequested.js +18 -20
- package/lib/variables/utils/isVariable.js +12 -14
- package/lib/variables/utils/transformVariableValue.js +10 -14
- package/lib/variables/utils/uniq.js +10 -14
- package/package.json +7 -7
- package/es/env.d.mjs +0 -0
- package/es/schema-component/antd/upload/type.d.mjs +0 -1
- package/lib/env.d.js +0 -6
- package/lib/schema-component/antd/upload/type.d.js +0 -8
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import react, { createContext, useCallback, useContext, useEffect, useMemo, useState, useTransition } from "react";
|
|
3
|
+
import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input } from "@tachybase/components";
|
|
4
|
+
import { SchemaOptionsContext, createForm, uid as schema_uid, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
5
|
+
import { error } from "@tachybase/utils/client";
|
|
6
|
+
import { Alert, App, Button, Cascader, ConfigProvider, Dropdown, Empty, Modal, Space, Switch } from "antd";
|
|
7
|
+
import { createStyles } from "antd-style";
|
|
8
|
+
import lodash, { cloneDeep, get, set } from "lodash";
|
|
9
|
+
import { createPortal } from "react-dom";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import { Router } from "react-router-dom";
|
|
12
|
+
import { APIClientProvider, ActionContextProvider, ApplicationContext, AssociationOrCollectionProvider, Cascader as external_index_mjs_Cascader, Checkbox, CollectionRecordProvider, DataSourceApplicationProvider, DatePicker, FormDialog, FormProvider, Icon, Input as external_index_mjs_Input, Radio, RemoteSchemaComponent, SchemaComponent, SchemaComponentContext, SchemaComponentOptions, Select, createDesignable, findFormBlock, useAPIClient, useApp, useBlockRequestContext, useCollectionManager_deprecated, useCollectionRecord, useCollection_deprecated, useCompile, useDataBlockProps, useDesignable, useFilterBlock, useGlobalTheme, useLinkageCollectionFilterOptions, useRecord, useSchemaSettingsItem, useSortFields } from "../index.mjs";
|
|
13
|
+
import { BlockRequestContext_deprecated, FormBlockContext, useFormBlockContext, useFormBlockType, useTableBlockContext } from "../block-provider/index.mjs";
|
|
14
|
+
import { FormActiveFieldsProvider, findFilterTargets, updateFilterTargets, useFormActiveFields } from "../block-provider/hooks/index.mjs";
|
|
15
|
+
import { SelectWithTitle } from "../common/SelectWithTitle.mjs";
|
|
16
|
+
import { useNiceDropdownMaxHeight } from "../common/useNiceDropdownHeight.mjs";
|
|
17
|
+
import { useDataSourceManager } from "../data-source/data-source/DataSourceManagerProvider.mjs";
|
|
18
|
+
import { useDataSourceKey } from "../data-source/data-source/DataSourceProvider.mjs";
|
|
19
|
+
import { getSupportFieldsByAssociation, getSupportFieldsByForeignKey, isSameCollection, useSupportedBlocks } from "../filter-provider/utils.mjs";
|
|
20
|
+
import { FlagProvider } from "../flag-provider/index.mjs";
|
|
21
|
+
import { useCollectMenuItem, useCollectMenuItems, useMenuItem } from "../hooks/useMenuItem.mjs";
|
|
22
|
+
import { DeclareVariable } from "../modules/variable/DeclareVariable.mjs";
|
|
23
|
+
import { useVariable } from "../modules/variable/useVariable.mjs";
|
|
24
|
+
import { SubFormProvider, useSubFormValue } from "../schema-component/antd/association-field/hooks.mjs";
|
|
25
|
+
import { getTargetKey } from "../schema-component/antd/association-filter/utilts.mjs";
|
|
26
|
+
import { useSchemaTemplateManager } from "../schema-templates/index.mjs";
|
|
27
|
+
import { useBlockTemplateContext } from "../schema-templates/BlockTemplate.mjs";
|
|
28
|
+
import { useLocalVariables, useVariables } from "../variables/index.mjs";
|
|
29
|
+
import { FormDataTemplates } from "./DataTemplates/index.mjs";
|
|
30
|
+
import { EnableChildCollections } from "./EnableChildCollections/index.mjs";
|
|
31
|
+
import { ChildDynamicComponent } from "./EnableChildCollections/DynamicComponent.mjs";
|
|
32
|
+
import { FormLinkageRules } from "./LinkageRules/index.mjs";
|
|
33
|
+
import { useLinkageCollectionFieldOptions } from "./LinkageRules/action-hooks.mjs";
|
|
34
34
|
function _tagged_template_literal(strings, raw) {
|
|
35
35
|
if (!raw) raw = strings.slice(0);
|
|
36
36
|
return Object.freeze(Object.defineProperties(strings, {
|
|
@@ -57,12 +57,12 @@ function _templateObject1() {
|
|
|
57
57
|
};
|
|
58
58
|
return data;
|
|
59
59
|
}
|
|
60
|
-
const SchemaSettingsContext = /*#__PURE__*/
|
|
60
|
+
const SchemaSettingsContext = /*#__PURE__*/ createContext(null);
|
|
61
61
|
SchemaSettingsContext.displayName = 'SchemaSettingsContext';
|
|
62
62
|
function useSchemaSettings() {
|
|
63
|
-
return
|
|
63
|
+
return useContext(SchemaSettingsContext);
|
|
64
64
|
}
|
|
65
|
-
const useStyles =
|
|
65
|
+
const useStyles = createStyles((param)=>{
|
|
66
66
|
let { css } = param;
|
|
67
67
|
return {
|
|
68
68
|
menu: css(_templateObject()),
|
|
@@ -71,10 +71,10 @@ const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((para
|
|
|
71
71
|
});
|
|
72
72
|
const SchemaSettingsProvider = (props)=>{
|
|
73
73
|
const { children, fieldSchema, ...others } = props;
|
|
74
|
-
const { getTemplateBySchema } =
|
|
75
|
-
const { name } =
|
|
74
|
+
const { getTemplateBySchema } = useSchemaTemplateManager();
|
|
75
|
+
const { name } = useCollection_deprecated();
|
|
76
76
|
const template = getTemplateBySchema(fieldSchema);
|
|
77
|
-
return /*#__PURE__*/
|
|
77
|
+
return /*#__PURE__*/ jsx(SchemaSettingsContext.Provider, {
|
|
78
78
|
value: {
|
|
79
79
|
collectionName: name,
|
|
80
80
|
template,
|
|
@@ -87,26 +87,26 @@ const SchemaSettingsProvider = (props)=>{
|
|
|
87
87
|
const SchemaSettingsDropdown = (props)=>{
|
|
88
88
|
const { title, dn, ...others } = props;
|
|
89
89
|
const { styles } = useStyles();
|
|
90
|
-
const [visible, setVisible] =
|
|
91
|
-
const { Component, getMenuItems } =
|
|
92
|
-
const [, startTransition] =
|
|
93
|
-
const dropdownMaxHeight =
|
|
90
|
+
const [visible, setVisible] = useState(false);
|
|
91
|
+
const { Component, getMenuItems } = useMenuItem();
|
|
92
|
+
const [, startTransition] = useTransition();
|
|
93
|
+
const dropdownMaxHeight = useNiceDropdownMaxHeight([
|
|
94
94
|
visible
|
|
95
95
|
]);
|
|
96
|
-
const changeMenu =
|
|
96
|
+
const changeMenu = useCallback((nextOpen, info)=>{
|
|
97
97
|
if ('trigger' === info.source || nextOpen) startTransition(()=>{
|
|
98
98
|
setVisible(nextOpen);
|
|
99
99
|
});
|
|
100
100
|
}, []);
|
|
101
101
|
const items = getMenuItems(()=>props.children);
|
|
102
|
-
return /*#__PURE__*/
|
|
102
|
+
return /*#__PURE__*/ jsxs(SchemaSettingsProvider, {
|
|
103
103
|
visible: visible,
|
|
104
104
|
setVisible: setVisible,
|
|
105
105
|
dn: dn,
|
|
106
106
|
...others,
|
|
107
107
|
children: [
|
|
108
|
-
/*#__PURE__*/
|
|
109
|
-
/*#__PURE__*/
|
|
108
|
+
/*#__PURE__*/ jsx(Component, {}),
|
|
109
|
+
/*#__PURE__*/ jsx(Dropdown, {
|
|
110
110
|
open: visible,
|
|
111
111
|
onOpenChange: changeMenu,
|
|
112
112
|
overlayClassName: styles.menu,
|
|
@@ -117,9 +117,9 @@ const SchemaSettingsDropdown = (props)=>{
|
|
|
117
117
|
overflowY: 'auto'
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
children: /*#__PURE__*/
|
|
120
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
121
121
|
"data-testid": props['data-testid'],
|
|
122
|
-
children: 'string' == typeof title ? /*#__PURE__*/
|
|
122
|
+
children: 'string' == typeof title ? /*#__PURE__*/ jsx("span", {
|
|
123
123
|
children: title
|
|
124
124
|
}) : title
|
|
125
125
|
})
|
|
@@ -129,16 +129,16 @@ const SchemaSettingsDropdown = (props)=>{
|
|
|
129
129
|
};
|
|
130
130
|
const SchemaSettingsTemplate = function(props) {
|
|
131
131
|
const { componentName, collectionName, resourceName, needRender } = props;
|
|
132
|
-
const { t } =
|
|
133
|
-
const { getCollection } =
|
|
132
|
+
const { t } = useTranslation();
|
|
133
|
+
const { getCollection } = useCollectionManager_deprecated();
|
|
134
134
|
const { dn, setVisible, template, fieldSchema } = useSchemaSettings();
|
|
135
|
-
const compile =
|
|
136
|
-
const api =
|
|
137
|
-
const { dn: tdn } =
|
|
138
|
-
const { saveAsTemplate, copyTemplateSchema } =
|
|
139
|
-
const { theme } =
|
|
135
|
+
const compile = useCompile();
|
|
136
|
+
const api = useAPIClient();
|
|
137
|
+
const { dn: tdn } = useBlockTemplateContext();
|
|
138
|
+
const { saveAsTemplate, copyTemplateSchema } = useSchemaTemplateManager();
|
|
139
|
+
const { theme } = useGlobalTheme();
|
|
140
140
|
if (!collectionName && !needRender) return null;
|
|
141
|
-
if (template) return /*#__PURE__*/
|
|
141
|
+
if (template) return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
142
142
|
title: "Convert reference to duplicate",
|
|
143
143
|
onClick: async ()=>{
|
|
144
144
|
const schema = await copyTemplateSchema(template);
|
|
@@ -153,17 +153,17 @@ const SchemaSettingsTemplate = function(props) {
|
|
|
153
153
|
},
|
|
154
154
|
children: t('Convert reference to duplicate')
|
|
155
155
|
});
|
|
156
|
-
return /*#__PURE__*/
|
|
156
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
157
157
|
title: "Save as template",
|
|
158
158
|
onClick: async ()=>{
|
|
159
159
|
setVisible(false);
|
|
160
160
|
const collection = collectionName && getCollection(collectionName);
|
|
161
|
-
const values = await
|
|
161
|
+
const values = await FormDialog(t('Save as template'), ()=>/*#__PURE__*/ jsx(FormLayout, {
|
|
162
162
|
layout: 'vertical',
|
|
163
|
-
children: /*#__PURE__*/
|
|
163
|
+
children: /*#__PURE__*/ jsx(SchemaComponent, {
|
|
164
164
|
components: {
|
|
165
|
-
Input:
|
|
166
|
-
FormItem:
|
|
165
|
+
Input: Input,
|
|
166
|
+
FormItem: FormItem
|
|
167
167
|
},
|
|
168
168
|
schema: {
|
|
169
169
|
type: 'object',
|
|
@@ -179,7 +179,7 @@ const SchemaSettingsTemplate = function(props) {
|
|
|
179
179
|
}
|
|
180
180
|
})
|
|
181
181
|
}), theme).open({});
|
|
182
|
-
const sdn =
|
|
182
|
+
const sdn = createDesignable({
|
|
183
183
|
t,
|
|
184
184
|
api,
|
|
185
185
|
refresh: dn.refresh.bind(dn),
|
|
@@ -228,20 +228,20 @@ const findBlockTemplateSchema = (fieldSchema)=>fieldSchema.reduceProperties((buf
|
|
|
228
228
|
}, null);
|
|
229
229
|
const SchemaSettingsFormItemTemplate = function(props) {
|
|
230
230
|
const { insertAdjacentPosition = 'beforeEnd', componentName, collectionName, resourceName } = props;
|
|
231
|
-
const { t } =
|
|
232
|
-
const compile =
|
|
233
|
-
const { getCollection } =
|
|
231
|
+
const { t } = useTranslation();
|
|
232
|
+
const compile = useCompile();
|
|
233
|
+
const { getCollection } = useCollectionManager_deprecated();
|
|
234
234
|
const { dn, setVisible, template, fieldSchema } = useSchemaSettings();
|
|
235
|
-
const api =
|
|
236
|
-
const { saveAsTemplate, copyTemplateSchema } =
|
|
237
|
-
const { theme } =
|
|
235
|
+
const api = useAPIClient();
|
|
236
|
+
const { saveAsTemplate, copyTemplateSchema } = useSchemaTemplateManager();
|
|
237
|
+
const { theme } = useGlobalTheme();
|
|
238
238
|
if (!collectionName) return null;
|
|
239
|
-
if (template) return /*#__PURE__*/
|
|
239
|
+
if (template) return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
240
240
|
title: "Convert reference to duplicate",
|
|
241
241
|
onClick: async ()=>{
|
|
242
242
|
const schema = await copyTemplateSchema(template);
|
|
243
243
|
const templateSchema = findBlockTemplateSchema(fieldSchema);
|
|
244
|
-
const sdn =
|
|
244
|
+
const sdn = createDesignable({
|
|
245
245
|
t,
|
|
246
246
|
api,
|
|
247
247
|
refresh: dn.refresh.bind(dn),
|
|
@@ -269,23 +269,23 @@ const SchemaSettingsFormItemTemplate = function(props) {
|
|
|
269
269
|
},
|
|
270
270
|
children: t('Convert reference to duplicate')
|
|
271
271
|
});
|
|
272
|
-
return /*#__PURE__*/
|
|
272
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
273
273
|
title: "Save as block template",
|
|
274
274
|
onClick: async ()=>{
|
|
275
275
|
setVisible(false);
|
|
276
276
|
const collection = collectionName && getCollection(collectionName);
|
|
277
277
|
const gridSchema = findGridSchema(fieldSchema);
|
|
278
|
-
const values = await
|
|
278
|
+
const values = await FormDialog(t('Save as template'), ()=>{
|
|
279
279
|
const componentTitle = {
|
|
280
280
|
FormItem: t('Form'),
|
|
281
281
|
ReadPrettyFormItem: t('Details')
|
|
282
282
|
};
|
|
283
|
-
return /*#__PURE__*/
|
|
283
|
+
return /*#__PURE__*/ jsx(FormLayout, {
|
|
284
284
|
layout: 'vertical',
|
|
285
|
-
children: /*#__PURE__*/
|
|
285
|
+
children: /*#__PURE__*/ jsx(SchemaComponent, {
|
|
286
286
|
components: {
|
|
287
|
-
Input:
|
|
288
|
-
FormItem:
|
|
287
|
+
Input: Input,
|
|
288
|
+
FormItem: FormItem
|
|
289
289
|
},
|
|
290
290
|
schema: {
|
|
291
291
|
type: 'object',
|
|
@@ -302,7 +302,7 @@ const SchemaSettingsFormItemTemplate = function(props) {
|
|
|
302
302
|
})
|
|
303
303
|
});
|
|
304
304
|
}, theme).open({});
|
|
305
|
-
const sdn =
|
|
305
|
+
const sdn = createDesignable({
|
|
306
306
|
t,
|
|
307
307
|
api,
|
|
308
308
|
refresh: dn.refresh.bind(dn),
|
|
@@ -340,12 +340,12 @@ const SchemaSettingsFormItemTemplate = function(props) {
|
|
|
340
340
|
};
|
|
341
341
|
const SchemaSettingsItem = (props)=>{
|
|
342
342
|
const { eventKey, title } = props;
|
|
343
|
-
const { pushMenuItem } =
|
|
344
|
-
const { collectMenuItem } =
|
|
345
|
-
const { name } =
|
|
343
|
+
const { pushMenuItem } = useCollectMenuItems();
|
|
344
|
+
const { collectMenuItem } = useCollectMenuItem();
|
|
345
|
+
const { name } = useSchemaSettingsItem();
|
|
346
346
|
const item = {
|
|
347
347
|
key: title,
|
|
348
|
-
...
|
|
348
|
+
...lodash.omit(props, [
|
|
349
349
|
'children',
|
|
350
350
|
'name'
|
|
351
351
|
]),
|
|
@@ -354,7 +354,7 @@ const SchemaSettingsItem = (props)=>{
|
|
|
354
354
|
var _props_onClick;
|
|
355
355
|
info.domEvent.preventDefault();
|
|
356
356
|
info.domEvent.stopPropagation();
|
|
357
|
-
null == props || null
|
|
357
|
+
null == props || null == (_props_onClick = props.onClick) || _props_onClick.call(props, info);
|
|
358
358
|
},
|
|
359
359
|
style: {
|
|
360
360
|
minWidth: 120
|
|
@@ -367,9 +367,9 @@ const SchemaSettingsItem = (props)=>{
|
|
|
367
367
|
return null;
|
|
368
368
|
};
|
|
369
369
|
const SchemaSettingsItemGroup = (props)=>{
|
|
370
|
-
const { Component, getMenuItems } =
|
|
371
|
-
const { pushMenuItem } =
|
|
372
|
-
const key =
|
|
370
|
+
const { Component, getMenuItems } = useMenuItem();
|
|
371
|
+
const { pushMenuItem } = useCollectMenuItems();
|
|
372
|
+
const key = useMemo(()=>schema_uid(), []);
|
|
373
373
|
const item = {
|
|
374
374
|
key,
|
|
375
375
|
type: 'group',
|
|
@@ -378,12 +378,12 @@ const SchemaSettingsItemGroup = (props)=>{
|
|
|
378
378
|
children: getMenuItems(()=>props.children)
|
|
379
379
|
};
|
|
380
380
|
pushMenuItem(item);
|
|
381
|
-
return /*#__PURE__*/
|
|
381
|
+
return /*#__PURE__*/ jsx(Component, {});
|
|
382
382
|
};
|
|
383
383
|
const SchemaSettingsSubMenu = function(props) {
|
|
384
|
-
const { Component, getMenuItems } =
|
|
385
|
-
const { pushMenuItem } =
|
|
386
|
-
const key =
|
|
384
|
+
const { Component, getMenuItems } = useMenuItem();
|
|
385
|
+
const { pushMenuItem } = useCollectMenuItems();
|
|
386
|
+
const key = useMemo(()=>schema_uid(), []);
|
|
387
387
|
const item = {
|
|
388
388
|
key,
|
|
389
389
|
label: props.title,
|
|
@@ -391,11 +391,11 @@ const SchemaSettingsSubMenu = function(props) {
|
|
|
391
391
|
children: getMenuItems(()=>props.children)
|
|
392
392
|
};
|
|
393
393
|
pushMenuItem(item);
|
|
394
|
-
return /*#__PURE__*/
|
|
394
|
+
return /*#__PURE__*/ jsx(Component, {});
|
|
395
395
|
};
|
|
396
396
|
const SchemaSettingsDivider = function() {
|
|
397
|
-
const { pushMenuItem } =
|
|
398
|
-
const key =
|
|
397
|
+
const { pushMenuItem } = useCollectMenuItems();
|
|
398
|
+
const key = useMemo(()=>schema_uid(), []);
|
|
399
399
|
const item = {
|
|
400
400
|
key,
|
|
401
401
|
type: 'divider'
|
|
@@ -406,17 +406,17 @@ const SchemaSettingsDivider = function() {
|
|
|
406
406
|
const SchemaSettingsRemove = (props)=>{
|
|
407
407
|
const { icon, confirm, removeParentsIfNoChildren, breakRemoveOn } = props;
|
|
408
408
|
const { dn, template } = useSchemaSettings();
|
|
409
|
-
const { t } =
|
|
410
|
-
const field =
|
|
411
|
-
const fieldSchema =
|
|
412
|
-
const ctx =
|
|
413
|
-
const form =
|
|
414
|
-
const { modal } =
|
|
415
|
-
const { removeActiveFieldName } =
|
|
416
|
-
return /*#__PURE__*/
|
|
409
|
+
const { t } = useTranslation();
|
|
410
|
+
const field = useField();
|
|
411
|
+
const fieldSchema = useFieldSchema();
|
|
412
|
+
const ctx = useBlockTemplateContext();
|
|
413
|
+
const form = useForm();
|
|
414
|
+
const { modal } = App.useApp();
|
|
415
|
+
const { removeActiveFieldName } = useFormActiveFields() || {};
|
|
416
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
417
417
|
title: "Delete",
|
|
418
418
|
eventKey: "remove",
|
|
419
|
-
icon: icon ? /*#__PURE__*/
|
|
419
|
+
icon: icon ? /*#__PURE__*/ jsx(Icon, {
|
|
420
420
|
style: {
|
|
421
421
|
color: '#eb5050'
|
|
422
422
|
},
|
|
@@ -439,7 +439,7 @@ const SchemaSettingsRemove = (props)=>{
|
|
|
439
439
|
}
|
|
440
440
|
if (template && template.uid === fieldSchema['x-uid'] && (null == ctx ? void 0 : ctx.dn)) await (null == ctx ? void 0 : ctx.dn.remove(null, options));
|
|
441
441
|
else await dn.remove(null, options);
|
|
442
|
-
await (null == confirm ? void 0 : null
|
|
442
|
+
await (null == confirm ? void 0 : null == (_confirm_onOk = confirm.onOk) ? void 0 : _confirm_onOk.call(confirm));
|
|
443
443
|
delete form.values[fieldSchema.name];
|
|
444
444
|
null == removeActiveFieldName || removeActiveFieldName(fieldSchema.name);
|
|
445
445
|
if ((null == field ? void 0 : field.setInitialValue) && (null == field ? void 0 : field.reset)) {
|
|
@@ -449,7 +449,7 @@ const SchemaSettingsRemove = (props)=>{
|
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
},
|
|
452
|
-
children: /*#__PURE__*/
|
|
452
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
453
453
|
style: {
|
|
454
454
|
color: '#eb5050'
|
|
455
455
|
},
|
|
@@ -459,15 +459,15 @@ const SchemaSettingsRemove = (props)=>{
|
|
|
459
459
|
};
|
|
460
460
|
const SchemaSettingsConnectDataBlocks = (props)=>{
|
|
461
461
|
const { type, emptyDescription } = props;
|
|
462
|
-
const fieldSchema =
|
|
463
|
-
const { dn } =
|
|
464
|
-
const { t } =
|
|
465
|
-
const collection =
|
|
466
|
-
const { inProvider } =
|
|
467
|
-
const dataBlocks =
|
|
468
|
-
let { targets = [], uid } =
|
|
469
|
-
const compile =
|
|
470
|
-
const { getAllCollectionsInheritChain } =
|
|
462
|
+
const fieldSchema = useFieldSchema();
|
|
463
|
+
const { dn } = useDesignable();
|
|
464
|
+
const { t } = useTranslation();
|
|
465
|
+
const collection = useCollection_deprecated();
|
|
466
|
+
const { inProvider } = useFilterBlock();
|
|
467
|
+
const dataBlocks = useSupportedBlocks(type);
|
|
468
|
+
let { targets = [], uid } = findFilterTargets(fieldSchema);
|
|
469
|
+
const compile = useCompile();
|
|
470
|
+
const { getAllCollectionsInheritChain } = useCollectionManager_deprecated();
|
|
471
471
|
if (!inProvider) return null;
|
|
472
472
|
const Content = dataBlocks.map((block)=>{
|
|
473
473
|
const title = "".concat(compile(block.collection.title), " #").concat(block.uid.slice(0, 4));
|
|
@@ -496,7 +496,7 @@ const SchemaSettingsConnectDataBlocks = (props)=>{
|
|
|
496
496
|
if (designer) designer.style.display = null;
|
|
497
497
|
dom.style.boxShadow = 'none';
|
|
498
498
|
};
|
|
499
|
-
if (
|
|
499
|
+
if (isSameCollection(block.collection, collection)) return /*#__PURE__*/ jsx(SchemaSettingsSwitchItem, {
|
|
500
500
|
title: title,
|
|
501
501
|
checked: targets.some((target)=>target.uid === block.uid),
|
|
502
502
|
onChange: (checked)=>{
|
|
@@ -507,28 +507,28 @@ const SchemaSettingsConnectDataBlocks = (props)=>{
|
|
|
507
507
|
targets = targets.filter((target)=>target.uid !== block.uid);
|
|
508
508
|
block.clearFilter(uid);
|
|
509
509
|
}
|
|
510
|
-
|
|
510
|
+
updateFilterTargets(fieldSchema, targets);
|
|
511
511
|
dn.emit('patch', {
|
|
512
512
|
schema: {
|
|
513
513
|
['x-uid']: uid,
|
|
514
514
|
'x-filter-targets': targets
|
|
515
515
|
}
|
|
516
|
-
}).catch(
|
|
516
|
+
}).catch(error);
|
|
517
517
|
dn.refresh();
|
|
518
518
|
},
|
|
519
519
|
onMouseLeave: onLeave,
|
|
520
520
|
onMouseUp: onHover
|
|
521
521
|
}, block.uid);
|
|
522
522
|
const target = targets.find((target)=>target.uid === block.uid);
|
|
523
|
-
return /*#__PURE__*/
|
|
523
|
+
return /*#__PURE__*/ jsx(SchemaSettingsSelectItem, {
|
|
524
524
|
title: title,
|
|
525
525
|
value: (null == target ? void 0 : target.field) || '',
|
|
526
526
|
options: [
|
|
527
|
-
...
|
|
527
|
+
...getSupportFieldsByAssociation(getAllCollectionsInheritChain(collection.name), block).map((field)=>({
|
|
528
528
|
label: compile(field.uiSchema.title) || field.name,
|
|
529
|
-
value: "".concat(field.name, ".").concat(
|
|
529
|
+
value: "".concat(field.name, ".").concat(getTargetKey(field))
|
|
530
530
|
})),
|
|
531
|
-
...
|
|
531
|
+
...getSupportFieldsByForeignKey(collection, block).map((field)=>({
|
|
532
532
|
label: "".concat(compile(field.uiSchema.title) || field.name, " [").concat(t('Foreign key'), "]"),
|
|
533
533
|
value: field.name
|
|
534
534
|
})),
|
|
@@ -548,7 +548,7 @@ const SchemaSettingsConnectDataBlocks = (props)=>{
|
|
|
548
548
|
field: value
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
updateFilterTargets(fieldSchema, targets);
|
|
552
552
|
dn.emit('patch', {
|
|
553
553
|
schema: {
|
|
554
554
|
['x-uid']: uid,
|
|
@@ -561,27 +561,27 @@ const SchemaSettingsConnectDataBlocks = (props)=>{
|
|
|
561
561
|
onMouseLeave: onLeave
|
|
562
562
|
}, block.uid);
|
|
563
563
|
});
|
|
564
|
-
return /*#__PURE__*/
|
|
564
|
+
return /*#__PURE__*/ jsx(SchemaSettingsSubMenu, {
|
|
565
565
|
title: t('Connect data blocks'),
|
|
566
|
-
children: Content.length ? Content : /*#__PURE__*/
|
|
566
|
+
children: Content.length ? Content : /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
567
567
|
title: "empty",
|
|
568
|
-
children: /*#__PURE__*/
|
|
568
|
+
children: /*#__PURE__*/ jsx(Empty, {
|
|
569
569
|
style: {
|
|
570
570
|
width: 160,
|
|
571
571
|
padding: '0 1em'
|
|
572
572
|
},
|
|
573
573
|
description: emptyDescription,
|
|
574
|
-
image:
|
|
574
|
+
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
575
575
|
})
|
|
576
576
|
})
|
|
577
577
|
});
|
|
578
578
|
};
|
|
579
579
|
const SchemaSettingsSelectItem = (props)=>{
|
|
580
580
|
const { title, options, value, onChange, fieldNames, ...others } = props;
|
|
581
|
-
return /*#__PURE__*/
|
|
581
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
582
582
|
title: title,
|
|
583
583
|
...others,
|
|
584
|
-
children: /*#__PURE__*/
|
|
584
|
+
children: /*#__PURE__*/ jsx(SelectWithTitle, {
|
|
585
585
|
title,
|
|
586
586
|
defaultValue: value,
|
|
587
587
|
onChange,
|
|
@@ -592,10 +592,10 @@ const SchemaSettingsSelectItem = (props)=>{
|
|
|
592
592
|
};
|
|
593
593
|
const SchemaSettingsCascaderItem = (props)=>{
|
|
594
594
|
const { title, options, value, onChange, ...others } = props;
|
|
595
|
-
return /*#__PURE__*/
|
|
595
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
596
596
|
title: title,
|
|
597
597
|
...others,
|
|
598
|
-
children: /*#__PURE__*/
|
|
598
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
599
599
|
style: {
|
|
600
600
|
alignItems: 'center',
|
|
601
601
|
display: 'flex',
|
|
@@ -603,7 +603,7 @@ const SchemaSettingsCascaderItem = (props)=>{
|
|
|
603
603
|
},
|
|
604
604
|
children: [
|
|
605
605
|
title,
|
|
606
|
-
/*#__PURE__*/
|
|
606
|
+
/*#__PURE__*/ jsx(Cascader, {
|
|
607
607
|
variant: "borderless",
|
|
608
608
|
defaultValue: value,
|
|
609
609
|
onChange: onChange,
|
|
@@ -621,15 +621,15 @@ const SchemaSettingsCascaderItem = (props)=>{
|
|
|
621
621
|
};
|
|
622
622
|
const SchemaSettingsSwitchItem = (props)=>{
|
|
623
623
|
const { title, onChange, ...others } = props;
|
|
624
|
-
const [checked, setChecked] =
|
|
625
|
-
return /*#__PURE__*/
|
|
624
|
+
const [checked, setChecked] = useState(!!props.checked);
|
|
625
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
626
626
|
title: title,
|
|
627
627
|
...others,
|
|
628
628
|
onClick: ()=>{
|
|
629
629
|
null == onChange || onChange(!checked);
|
|
630
630
|
setChecked(!checked);
|
|
631
631
|
},
|
|
632
|
-
children: /*#__PURE__*/
|
|
632
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
633
633
|
style: {
|
|
634
634
|
alignItems: 'center',
|
|
635
635
|
display: 'flex',
|
|
@@ -637,7 +637,7 @@ const SchemaSettingsSwitchItem = (props)=>{
|
|
|
637
637
|
},
|
|
638
638
|
children: [
|
|
639
639
|
title,
|
|
640
|
-
/*#__PURE__*/
|
|
640
|
+
/*#__PURE__*/ jsx(Switch, {
|
|
641
641
|
size: 'small',
|
|
642
642
|
checked: checked,
|
|
643
643
|
style: {
|
|
@@ -650,15 +650,15 @@ const SchemaSettingsSwitchItem = (props)=>{
|
|
|
650
650
|
};
|
|
651
651
|
const SchemaSettingsPopupItem = (props)=>{
|
|
652
652
|
const { schema, ...others } = props;
|
|
653
|
-
const [visible, setVisible] =
|
|
654
|
-
const ctx =
|
|
655
|
-
return /*#__PURE__*/
|
|
653
|
+
const [visible, setVisible] = useState(false);
|
|
654
|
+
const ctx = useContext(SchemaSettingsContext);
|
|
655
|
+
return /*#__PURE__*/ jsxs(ActionContextProvider, {
|
|
656
656
|
value: {
|
|
657
657
|
visible,
|
|
658
658
|
setVisible
|
|
659
659
|
},
|
|
660
660
|
children: [
|
|
661
|
-
/*#__PURE__*/
|
|
661
|
+
/*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
662
662
|
title: props.title,
|
|
663
663
|
...others,
|
|
664
664
|
onClick: ()=>{
|
|
@@ -667,52 +667,52 @@ const SchemaSettingsPopupItem = (props)=>{
|
|
|
667
667
|
},
|
|
668
668
|
children: props.children || props.title
|
|
669
669
|
}),
|
|
670
|
-
/*#__PURE__*/
|
|
670
|
+
/*#__PURE__*/ jsx(SchemaComponent, {
|
|
671
671
|
schema: {
|
|
672
|
-
name: (
|
|
672
|
+
name: schema_uid(),
|
|
673
673
|
...schema
|
|
674
674
|
}
|
|
675
675
|
})
|
|
676
676
|
]
|
|
677
677
|
});
|
|
678
678
|
};
|
|
679
|
-
const SchemaSettingsActionModalItem = /*#__PURE__*/
|
|
679
|
+
const SchemaSettingsActionModalItem = /*#__PURE__*/ react.memo((props)=>{
|
|
680
680
|
const { title, onSubmit, initialValues, beforeOpen, initialSchema, schema, modalTip, components, scope, ...others } = props;
|
|
681
|
-
const [visible, setVisible] =
|
|
682
|
-
const [schemaUid, setSchemaUid] =
|
|
683
|
-
const { t } =
|
|
684
|
-
const fieldSchema =
|
|
685
|
-
const ctx =
|
|
681
|
+
const [visible, setVisible] = useState(false);
|
|
682
|
+
const [schemaUid, setSchemaUid] = useState(props.uid);
|
|
683
|
+
const { t } = useTranslation();
|
|
684
|
+
const fieldSchema = useFieldSchema();
|
|
685
|
+
const ctx = useContext(SchemaSettingsContext);
|
|
686
686
|
const { dn } = useSchemaSettings();
|
|
687
|
-
const compile =
|
|
688
|
-
const api =
|
|
689
|
-
const upLevelActiveFields =
|
|
690
|
-
const form =
|
|
691
|
-
initialValues:
|
|
692
|
-
values:
|
|
687
|
+
const compile = useCompile();
|
|
688
|
+
const api = useAPIClient();
|
|
689
|
+
const upLevelActiveFields = useFormActiveFields();
|
|
690
|
+
const form = useMemo(()=>createForm({
|
|
691
|
+
initialValues: cloneDeep(initialValues),
|
|
692
|
+
values: cloneDeep(initialValues)
|
|
693
693
|
}), [
|
|
694
694
|
initialValues
|
|
695
695
|
]);
|
|
696
|
-
|
|
697
|
-
form.setInitialValues(
|
|
696
|
+
useEffect(()=>{
|
|
697
|
+
form.setInitialValues(cloneDeep(initialValues));
|
|
698
698
|
}, [
|
|
699
699
|
JSON.stringify(initialValues || {})
|
|
700
700
|
]);
|
|
701
|
-
const cancelHandler =
|
|
701
|
+
const cancelHandler = useCallback(()=>{
|
|
702
702
|
setVisible(false);
|
|
703
703
|
form.reset();
|
|
704
704
|
}, [
|
|
705
705
|
form
|
|
706
706
|
]);
|
|
707
|
-
const submitHandler =
|
|
707
|
+
const submitHandler = useCallback(async ()=>{
|
|
708
708
|
await form.submit();
|
|
709
|
-
null == onSubmit || onSubmit(
|
|
709
|
+
null == onSubmit || onSubmit(cloneDeep(form.values));
|
|
710
710
|
setVisible(false);
|
|
711
711
|
}, [
|
|
712
712
|
form,
|
|
713
713
|
onSubmit
|
|
714
714
|
]);
|
|
715
|
-
const openAssignedFieldValueHandler =
|
|
715
|
+
const openAssignedFieldValueHandler = useCallback(async ()=>{
|
|
716
716
|
if (!schemaUid && (null == initialSchema ? void 0 : initialSchema['x-uid'])) {
|
|
717
717
|
fieldSchema['x-action-settings'].schemaUid = initialSchema['x-uid'];
|
|
718
718
|
dn.emit('patch', {
|
|
@@ -734,55 +734,55 @@ const SchemaSettingsActionModalItem = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_re
|
|
|
734
734
|
initialSchema,
|
|
735
735
|
schemaUid
|
|
736
736
|
]);
|
|
737
|
-
const onKeyDown =
|
|
738
|
-
return /*#__PURE__*/
|
|
737
|
+
const onKeyDown = useCallback((e)=>e.stopPropagation(), []);
|
|
738
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
739
739
|
children: [
|
|
740
|
-
/*#__PURE__*/
|
|
740
|
+
/*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
741
741
|
title: compile(title),
|
|
742
742
|
...others,
|
|
743
743
|
onClick: openAssignedFieldValueHandler,
|
|
744
744
|
onKeyDown: onKeyDown,
|
|
745
745
|
children: props.children || props.title
|
|
746
746
|
}),
|
|
747
|
-
/*#__PURE__*/
|
|
747
|
+
/*#__PURE__*/ createPortal(/*#__PURE__*/ jsx(Modal, {
|
|
748
748
|
width: '50%',
|
|
749
749
|
title: compile(title),
|
|
750
750
|
...others,
|
|
751
751
|
destroyOnClose: true,
|
|
752
752
|
open: visible,
|
|
753
753
|
onCancel: cancelHandler,
|
|
754
|
-
footer: /*#__PURE__*/
|
|
754
|
+
footer: /*#__PURE__*/ jsxs(Space, {
|
|
755
755
|
children: [
|
|
756
|
-
/*#__PURE__*/
|
|
756
|
+
/*#__PURE__*/ jsx(Button, {
|
|
757
757
|
onClick: cancelHandler,
|
|
758
758
|
children: t('Cancel')
|
|
759
759
|
}),
|
|
760
|
-
/*#__PURE__*/
|
|
760
|
+
/*#__PURE__*/ jsx(Button, {
|
|
761
761
|
type: "primary",
|
|
762
762
|
onClick: submitHandler,
|
|
763
763
|
children: t('Submit')
|
|
764
764
|
})
|
|
765
765
|
]
|
|
766
766
|
}),
|
|
767
|
-
children: /*#__PURE__*/
|
|
767
|
+
children: /*#__PURE__*/ jsx(FormActiveFieldsProvider, {
|
|
768
768
|
name: "form",
|
|
769
769
|
getActiveFieldsName: null == upLevelActiveFields ? void 0 : upLevelActiveFields.getActiveFieldsName,
|
|
770
|
-
children: /*#__PURE__*/
|
|
770
|
+
children: /*#__PURE__*/ jsx(FormProvider, {
|
|
771
771
|
form: form,
|
|
772
|
-
children: /*#__PURE__*/
|
|
772
|
+
children: /*#__PURE__*/ jsxs(FormLayout, {
|
|
773
773
|
layout: 'vertical',
|
|
774
774
|
children: [
|
|
775
|
-
modalTip && /*#__PURE__*/
|
|
775
|
+
modalTip && /*#__PURE__*/ jsx(Alert, {
|
|
776
776
|
message: modalTip
|
|
777
777
|
}),
|
|
778
|
-
modalTip && /*#__PURE__*/
|
|
779
|
-
visible && schemaUid && /*#__PURE__*/
|
|
778
|
+
modalTip && /*#__PURE__*/ jsx("br", {}),
|
|
779
|
+
visible && schemaUid && /*#__PURE__*/ jsx(RemoteSchemaComponent, {
|
|
780
780
|
noForm: true,
|
|
781
781
|
components: components,
|
|
782
782
|
scope: scope,
|
|
783
783
|
uid: schemaUid
|
|
784
784
|
}),
|
|
785
|
-
visible && schema && /*#__PURE__*/
|
|
785
|
+
visible && schema && /*#__PURE__*/ jsx(SchemaComponent, {
|
|
786
786
|
components: components,
|
|
787
787
|
scope: scope,
|
|
788
788
|
schema: schema
|
|
@@ -798,85 +798,85 @@ const SchemaSettingsActionModalItem = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_re
|
|
|
798
798
|
SchemaSettingsActionModalItem.displayName = 'SchemaSettingsActionModalItem';
|
|
799
799
|
const SchemaSettingsModalItem = (props)=>{
|
|
800
800
|
const { hidden, title, components, scope, effects, onSubmit, asyncGetInitialValues, initialValues, width = 'fit-content', ...others } = props;
|
|
801
|
-
const options =
|
|
801
|
+
const options = useContext(SchemaOptionsContext);
|
|
802
802
|
options.components = {
|
|
803
803
|
...options.components,
|
|
804
|
-
Input:
|
|
805
|
-
'Input.TextArea':
|
|
806
|
-
'Radio.Group':
|
|
807
|
-
'Checkbox.Group':
|
|
808
|
-
DatePicker:
|
|
809
|
-
Select:
|
|
804
|
+
Input: external_index_mjs_Input,
|
|
805
|
+
'Input.TextArea': external_index_mjs_Input.TextArea,
|
|
806
|
+
'Radio.Group': Radio.Group,
|
|
807
|
+
'Checkbox.Group': Checkbox.Group,
|
|
808
|
+
DatePicker: DatePicker,
|
|
809
|
+
Select: Select,
|
|
810
810
|
AlternativeAssociationSelect: void 0,
|
|
811
|
-
Cascader:
|
|
811
|
+
Cascader: external_index_mjs_Cascader
|
|
812
812
|
};
|
|
813
813
|
const { styles } = useStyles();
|
|
814
|
-
const collection =
|
|
815
|
-
const apiClient =
|
|
816
|
-
const { theme } =
|
|
817
|
-
const ctx =
|
|
818
|
-
const upLevelActiveFields =
|
|
819
|
-
const { locale } =
|
|
820
|
-
const dm =
|
|
821
|
-
const dataSourceKey =
|
|
822
|
-
const record =
|
|
823
|
-
const { association } =
|
|
824
|
-
const formCtx =
|
|
825
|
-
const app =
|
|
826
|
-
const { formValue: subFormValue, collection: subFormCollection } =
|
|
827
|
-
const popupRecordVariable =
|
|
814
|
+
const collection = useCollection_deprecated();
|
|
815
|
+
const apiClient = useAPIClient();
|
|
816
|
+
const { theme } = useGlobalTheme();
|
|
817
|
+
const ctx = useBlockRequestContext();
|
|
818
|
+
const upLevelActiveFields = useFormActiveFields();
|
|
819
|
+
const { locale } = useContext(ConfigProvider.ConfigContext);
|
|
820
|
+
const dm = useDataSourceManager();
|
|
821
|
+
const dataSourceKey = useDataSourceKey();
|
|
822
|
+
const record = useCollectionRecord();
|
|
823
|
+
const { association } = useDataBlockProps() || {};
|
|
824
|
+
const formCtx = useFormBlockContext();
|
|
825
|
+
const app = useApp();
|
|
826
|
+
const { formValue: subFormValue, collection: subFormCollection } = useSubFormValue();
|
|
827
|
+
const popupRecordVariable = useVariable('$nPopupRecord');
|
|
828
828
|
if (hidden) return null;
|
|
829
|
-
return /*#__PURE__*/
|
|
829
|
+
return /*#__PURE__*/ jsx(SchemaSettingsItem, {
|
|
830
830
|
title: title,
|
|
831
831
|
...others,
|
|
832
832
|
onClick: async ()=>{
|
|
833
833
|
const values = asyncGetInitialValues ? await asyncGetInitialValues() : initialValues;
|
|
834
|
-
const schema =
|
|
835
|
-
|
|
834
|
+
const schema = lodash.isFunction(props.schema) ? props.schema() : props.schema;
|
|
835
|
+
FormDialog({
|
|
836
836
|
title: schema.title || title,
|
|
837
837
|
width
|
|
838
|
-
}, ()=>/*#__PURE__*/
|
|
838
|
+
}, ()=>/*#__PURE__*/ jsx(DeclareVariable, {
|
|
839
839
|
name: "$nPopupRecord",
|
|
840
840
|
title: popupRecordVariable.title,
|
|
841
841
|
value: popupRecordVariable.value,
|
|
842
842
|
collection: popupRecordVariable.collection,
|
|
843
|
-
children: /*#__PURE__*/
|
|
843
|
+
children: /*#__PURE__*/ jsx(ApplicationContext.Provider, {
|
|
844
844
|
value: app,
|
|
845
|
-
children: /*#__PURE__*/
|
|
845
|
+
children: /*#__PURE__*/ jsx(CollectionRecordProvider, {
|
|
846
846
|
record: record,
|
|
847
|
-
children: /*#__PURE__*/
|
|
847
|
+
children: /*#__PURE__*/ jsx(FormBlockContext.Provider, {
|
|
848
848
|
value: formCtx,
|
|
849
|
-
children: /*#__PURE__*/
|
|
849
|
+
children: /*#__PURE__*/ jsx(SubFormProvider, {
|
|
850
850
|
value: {
|
|
851
851
|
value: subFormValue,
|
|
852
852
|
collection: subFormCollection
|
|
853
853
|
},
|
|
854
|
-
children: /*#__PURE__*/
|
|
854
|
+
children: /*#__PURE__*/ jsx(FormActiveFieldsProvider, {
|
|
855
855
|
name: "form",
|
|
856
856
|
getActiveFieldsName: null == upLevelActiveFields ? void 0 : upLevelActiveFields.getActiveFieldsName,
|
|
857
|
-
children: /*#__PURE__*/
|
|
857
|
+
children: /*#__PURE__*/ jsx(Router, {
|
|
858
858
|
location: location,
|
|
859
859
|
navigator: null,
|
|
860
|
-
children: /*#__PURE__*/
|
|
860
|
+
children: /*#__PURE__*/ jsx(BlockRequestContext_deprecated.Provider, {
|
|
861
861
|
value: ctx,
|
|
862
|
-
children: /*#__PURE__*/
|
|
862
|
+
children: /*#__PURE__*/ jsx(DataSourceApplicationProvider, {
|
|
863
863
|
dataSourceManager: dm,
|
|
864
864
|
dataSource: dataSourceKey,
|
|
865
|
-
children: /*#__PURE__*/
|
|
865
|
+
children: /*#__PURE__*/ jsx(AssociationOrCollectionProvider, {
|
|
866
866
|
allowNull: true,
|
|
867
867
|
collection: collection.name,
|
|
868
868
|
association: association,
|
|
869
|
-
children: /*#__PURE__*/
|
|
869
|
+
children: /*#__PURE__*/ jsx(SchemaComponentOptions, {
|
|
870
870
|
scope: options.scope,
|
|
871
871
|
components: options.components,
|
|
872
|
-
children: /*#__PURE__*/
|
|
872
|
+
children: /*#__PURE__*/ jsx(FormLayout, {
|
|
873
873
|
layout: 'vertical',
|
|
874
874
|
className: styles.modal,
|
|
875
|
-
children: /*#__PURE__*/
|
|
875
|
+
children: /*#__PURE__*/ jsx(APIClientProvider, {
|
|
876
876
|
apiClient: apiClient,
|
|
877
|
-
children: /*#__PURE__*/
|
|
877
|
+
children: /*#__PURE__*/ jsx(ConfigProvider, {
|
|
878
878
|
locale: locale,
|
|
879
|
-
children: /*#__PURE__*/
|
|
879
|
+
children: /*#__PURE__*/ jsx(SchemaComponent, {
|
|
880
880
|
components: components,
|
|
881
881
|
scope: scope,
|
|
882
882
|
schema: schema
|
|
@@ -909,11 +909,11 @@ const SchemaSettingsModalItem = (props)=>{
|
|
|
909
909
|
};
|
|
910
910
|
const SchemaSettingsBlockTitleItem = function() {
|
|
911
911
|
var _fieldSchema_xcomponentprops;
|
|
912
|
-
const field =
|
|
913
|
-
const fieldSchema =
|
|
914
|
-
const { dn } =
|
|
915
|
-
const { t } =
|
|
916
|
-
return /*#__PURE__*/
|
|
912
|
+
const field = useField();
|
|
913
|
+
const fieldSchema = useFieldSchema();
|
|
914
|
+
const { dn } = useDesignable();
|
|
915
|
+
const { t } = useTranslation();
|
|
916
|
+
return /*#__PURE__*/ jsx(SchemaSettingsModalItem, {
|
|
917
917
|
title: t('Edit block title'),
|
|
918
918
|
schema: {
|
|
919
919
|
type: 'object',
|
|
@@ -922,7 +922,7 @@ const SchemaSettingsBlockTitleItem = function() {
|
|
|
922
922
|
title: {
|
|
923
923
|
title: t('Block title'),
|
|
924
924
|
type: 'string',
|
|
925
|
-
default: null == fieldSchema ? void 0 : null
|
|
925
|
+
default: null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['title'],
|
|
926
926
|
'x-decorator': 'FormItem',
|
|
927
927
|
'x-component': 'Input'
|
|
928
928
|
}
|
|
@@ -946,13 +946,13 @@ const SchemaSettingsBlockTitleItem = function() {
|
|
|
946
946
|
};
|
|
947
947
|
const SchemaSettingsDefaultSortingRules = function(props) {
|
|
948
948
|
const { path = 'x-component-props.params.sort' } = props;
|
|
949
|
-
const { t } =
|
|
950
|
-
const { dn } =
|
|
951
|
-
const fieldSchema =
|
|
952
|
-
const field =
|
|
949
|
+
const { t } = useTranslation();
|
|
950
|
+
const { dn } = useDesignable();
|
|
951
|
+
const fieldSchema = useFieldSchema();
|
|
952
|
+
const field = useField();
|
|
953
953
|
const title = props.title || t('Set default sorting rules');
|
|
954
|
-
const { name } =
|
|
955
|
-
const defaultSort =
|
|
954
|
+
const { name } = useCollection_deprecated();
|
|
955
|
+
const defaultSort = get(fieldSchema, path) || [];
|
|
956
956
|
const sort = null == defaultSort ? void 0 : defaultSort.map((item)=>item.startsWith('-') ? {
|
|
957
957
|
field: item.substring(1),
|
|
958
958
|
direction: 'desc'
|
|
@@ -960,7 +960,7 @@ const SchemaSettingsDefaultSortingRules = function(props) {
|
|
|
960
960
|
field: item,
|
|
961
961
|
direction: 'asc'
|
|
962
962
|
});
|
|
963
|
-
const sortFields =
|
|
963
|
+
const sortFields = useSortFields(props.name || name);
|
|
964
964
|
const onSubmit = async (param)=>{
|
|
965
965
|
let { sort } = param;
|
|
966
966
|
var _props_onSubmitAfter;
|
|
@@ -968,17 +968,17 @@ const SchemaSettingsDefaultSortingRules = function(props) {
|
|
|
968
968
|
sort
|
|
969
969
|
});
|
|
970
970
|
const value = sort.map((item)=>'desc' === item.direction ? "-".concat(item.field) : item.field);
|
|
971
|
-
|
|
972
|
-
|
|
971
|
+
set(field, path.replace('x-component-props', 'componentProps').replace('x-decorator-props', 'decoratorProps'), value);
|
|
972
|
+
set(fieldSchema, path, value);
|
|
973
973
|
await dn.emit('patch', {
|
|
974
974
|
schema: fieldSchema
|
|
975
975
|
});
|
|
976
|
-
return null
|
|
976
|
+
return null == (_props_onSubmitAfter = props.onSubmitAfter) ? void 0 : _props_onSubmitAfter.call(props);
|
|
977
977
|
};
|
|
978
|
-
return /*#__PURE__*/
|
|
978
|
+
return /*#__PURE__*/ jsx(SchemaSettingsModalItem, {
|
|
979
979
|
title: title,
|
|
980
980
|
components: {
|
|
981
|
-
ArrayItems:
|
|
981
|
+
ArrayItems: ArrayItems
|
|
982
982
|
},
|
|
983
983
|
schema: {
|
|
984
984
|
type: 'object',
|
|
@@ -1056,33 +1056,33 @@ const SchemaSettingsDefaultSortingRules = function(props) {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
const SchemaSettingsLinkageRules = function(props) {
|
|
1058
1058
|
const { collectionName } = props;
|
|
1059
|
-
const fieldSchema =
|
|
1060
|
-
const { form } =
|
|
1061
|
-
const { dn } =
|
|
1062
|
-
const { t } =
|
|
1063
|
-
const { getTemplateById } =
|
|
1064
|
-
const variables =
|
|
1065
|
-
const localVariables =
|
|
1066
|
-
const record =
|
|
1067
|
-
const { type: formBlockType } =
|
|
1059
|
+
const fieldSchema = useFieldSchema();
|
|
1060
|
+
const { form } = useFormBlockContext();
|
|
1061
|
+
const { dn } = useDesignable();
|
|
1062
|
+
const { t } = useTranslation();
|
|
1063
|
+
const { getTemplateById } = useSchemaTemplateManager();
|
|
1064
|
+
const variables = useVariables();
|
|
1065
|
+
const localVariables = useLocalVariables();
|
|
1066
|
+
const record = useRecord();
|
|
1067
|
+
const { type: formBlockType } = useFormBlockType();
|
|
1068
1068
|
const type = (null == props ? void 0 : props.type) || [
|
|
1069
1069
|
'Action',
|
|
1070
1070
|
'Action.Link'
|
|
1071
1071
|
].includes(fieldSchema['x-component']) ? 'button' : 'field';
|
|
1072
1072
|
const gridSchema = findGridSchema(fieldSchema) || fieldSchema;
|
|
1073
|
-
const schema =
|
|
1073
|
+
const schema = useMemo(()=>({
|
|
1074
1074
|
type: 'object',
|
|
1075
1075
|
title: t('Linkage rules'),
|
|
1076
1076
|
properties: {
|
|
1077
1077
|
fieldReaction: {
|
|
1078
|
-
'x-component':
|
|
1078
|
+
'x-component': FormLinkageRules,
|
|
1079
1079
|
'x-use-component-props': ()=>{
|
|
1080
|
-
const options =
|
|
1080
|
+
const options = useLinkageCollectionFilterOptions(collectionName);
|
|
1081
1081
|
const result = {
|
|
1082
1082
|
options,
|
|
1083
1083
|
defaultValues: (null == gridSchema ? void 0 : gridSchema['x-linkage-rules']) || (null == fieldSchema ? void 0 : fieldSchema['x-linkage-rules']),
|
|
1084
1084
|
type,
|
|
1085
|
-
linkageOptions:
|
|
1085
|
+
linkageOptions: useLinkageCollectionFieldOptions(collectionName),
|
|
1086
1086
|
collectionName,
|
|
1087
1087
|
form,
|
|
1088
1088
|
variables,
|
|
@@ -1105,15 +1105,15 @@ const SchemaSettingsLinkageRules = function(props) {
|
|
|
1105
1105
|
type,
|
|
1106
1106
|
variables
|
|
1107
1107
|
]);
|
|
1108
|
-
const components =
|
|
1109
|
-
ArrayCollapse:
|
|
1110
|
-
FormLayout:
|
|
1108
|
+
const components = useMemo(()=>({
|
|
1109
|
+
ArrayCollapse: ArrayCollapse,
|
|
1110
|
+
FormLayout: FormLayout
|
|
1111
1111
|
}), []);
|
|
1112
|
-
const onSubmit =
|
|
1112
|
+
const onSubmit = useCallback((v)=>{
|
|
1113
1113
|
var _gridSchema_xcomponentprops;
|
|
1114
1114
|
const rules = [];
|
|
1115
|
-
for (const rule of v.fieldReaction.rules)rules.push(
|
|
1116
|
-
const templateId = 'BlockTemplate' === gridSchema['x-component'] && (null
|
|
1115
|
+
for (const rule of v.fieldReaction.rules)rules.push(lodash.pickBy(rule, lodash.identity));
|
|
1116
|
+
const templateId = 'BlockTemplate' === gridSchema['x-component'] && (null == (_gridSchema_xcomponentprops = gridSchema['x-component-props']) ? void 0 : _gridSchema_xcomponentprops.templateId);
|
|
1117
1117
|
const uid = templateId && getTemplateById(templateId).uid || gridSchema['x-uid'];
|
|
1118
1118
|
const schema = {
|
|
1119
1119
|
['x-uid']: uid
|
|
@@ -1129,7 +1129,7 @@ const SchemaSettingsLinkageRules = function(props) {
|
|
|
1129
1129
|
getTemplateById,
|
|
1130
1130
|
gridSchema
|
|
1131
1131
|
]);
|
|
1132
|
-
return /*#__PURE__*/
|
|
1132
|
+
return /*#__PURE__*/ jsx(SchemaSettingsModalItem, {
|
|
1133
1133
|
title: t('Linkage rules'),
|
|
1134
1134
|
components: components,
|
|
1135
1135
|
width: 770,
|
|
@@ -1138,33 +1138,33 @@ const SchemaSettingsLinkageRules = function(props) {
|
|
|
1138
1138
|
});
|
|
1139
1139
|
};
|
|
1140
1140
|
const useDataTemplates = (schema)=>{
|
|
1141
|
-
const fieldSchema =
|
|
1141
|
+
const fieldSchema = useFieldSchema();
|
|
1142
1142
|
if (schema) return {
|
|
1143
|
-
templateData:
|
|
1143
|
+
templateData: lodash.cloneDeep(schema['x-data-templates'])
|
|
1144
1144
|
};
|
|
1145
|
-
const formSchema =
|
|
1145
|
+
const formSchema = findFormBlock(fieldSchema) || fieldSchema;
|
|
1146
1146
|
return {
|
|
1147
|
-
templateData:
|
|
1147
|
+
templateData: lodash.cloneDeep(null == formSchema ? void 0 : formSchema['x-data-templates'])
|
|
1148
1148
|
};
|
|
1149
1149
|
};
|
|
1150
1150
|
const SchemaSettingsDataTemplates = function(props) {
|
|
1151
|
-
const designerCtx =
|
|
1151
|
+
const designerCtx = useContext(SchemaComponentContext);
|
|
1152
1152
|
const { collectionName } = props;
|
|
1153
|
-
const fieldSchema =
|
|
1154
|
-
const { dn } =
|
|
1155
|
-
const { t } =
|
|
1156
|
-
const formSchema =
|
|
1153
|
+
const fieldSchema = useFieldSchema();
|
|
1154
|
+
const { dn } = useDesignable();
|
|
1155
|
+
const { t } = useTranslation();
|
|
1156
|
+
const formSchema = findFormBlock(fieldSchema) || fieldSchema;
|
|
1157
1157
|
const { templateData } = useDataTemplates();
|
|
1158
|
-
const schema =
|
|
1158
|
+
const schema = useMemo(()=>({
|
|
1159
1159
|
type: 'object',
|
|
1160
1160
|
title: t('Form data templates'),
|
|
1161
1161
|
properties: {
|
|
1162
1162
|
fieldReaction: {
|
|
1163
|
-
'x-decorator': (props)=>/*#__PURE__*/
|
|
1163
|
+
'x-decorator': (props)=>/*#__PURE__*/ jsx(FlagProvider, {
|
|
1164
1164
|
...props,
|
|
1165
1165
|
isInFormDataTemplate: true
|
|
1166
1166
|
}),
|
|
1167
|
-
'x-component':
|
|
1167
|
+
'x-component': FormDataTemplates,
|
|
1168
1168
|
'x-use-component-props': ()=>({
|
|
1169
1169
|
defaultValues: templateData,
|
|
1170
1170
|
collectionName
|
|
@@ -1178,7 +1178,7 @@ const SchemaSettingsDataTemplates = function(props) {
|
|
|
1178
1178
|
}), [
|
|
1179
1179
|
templateData
|
|
1180
1180
|
]);
|
|
1181
|
-
const onSubmit =
|
|
1181
|
+
const onSubmit = useCallback((v)=>{
|
|
1182
1182
|
const data = {
|
|
1183
1183
|
...formSchema['x-data-templates'] || {},
|
|
1184
1184
|
...v.fieldReaction
|
|
@@ -1196,12 +1196,12 @@ const SchemaSettingsDataTemplates = function(props) {
|
|
|
1196
1196
|
});
|
|
1197
1197
|
dn.refresh();
|
|
1198
1198
|
}, []);
|
|
1199
|
-
const title =
|
|
1200
|
-
const components =
|
|
1201
|
-
ArrayCollapse:
|
|
1202
|
-
FormLayout:
|
|
1199
|
+
const title = useMemo(()=>t('Form data templates'), []);
|
|
1200
|
+
const components = useMemo(()=>({
|
|
1201
|
+
ArrayCollapse: ArrayCollapse,
|
|
1202
|
+
FormLayout: FormLayout
|
|
1203
1203
|
}), []);
|
|
1204
|
-
return /*#__PURE__*/
|
|
1204
|
+
return /*#__PURE__*/ jsx(SchemaSettingsModalItem, {
|
|
1205
1205
|
title: title,
|
|
1206
1206
|
components: components,
|
|
1207
1207
|
width: 770,
|
|
@@ -1212,20 +1212,20 @@ const SchemaSettingsDataTemplates = function(props) {
|
|
|
1212
1212
|
function SchemaSettingsEnableChildCollections(props) {
|
|
1213
1213
|
var _fieldSchema_parent, _fieldSchema_parent1, _fieldSchema_xcomponentprops;
|
|
1214
1214
|
const { collectionName } = props;
|
|
1215
|
-
const fieldSchema =
|
|
1216
|
-
const field =
|
|
1217
|
-
const { dn } =
|
|
1218
|
-
const { t } =
|
|
1215
|
+
const fieldSchema = useFieldSchema();
|
|
1216
|
+
const field = useField();
|
|
1217
|
+
const { dn } = useDesignable();
|
|
1218
|
+
const { t } = useTranslation();
|
|
1219
1219
|
const allowAddToCurrent = null == fieldSchema ? void 0 : fieldSchema['x-allow-add-to-current'];
|
|
1220
|
-
const { getCollectionJoinField } =
|
|
1221
|
-
const ctx =
|
|
1222
|
-
const collectionField = getCollectionJoinField(null == fieldSchema ? void 0 : null
|
|
1223
|
-
const isAssocationAdd = (null == fieldSchema ? void 0 : null
|
|
1224
|
-
return /*#__PURE__*/
|
|
1220
|
+
const { getCollectionJoinField } = useCollectionManager_deprecated();
|
|
1221
|
+
const ctx = useBlockRequestContext();
|
|
1222
|
+
const collectionField = getCollectionJoinField(null == fieldSchema ? void 0 : null == (_fieldSchema_parent = fieldSchema.parent) ? void 0 : _fieldSchema_parent['x-collection-field']) || {};
|
|
1223
|
+
const isAssocationAdd = (null == fieldSchema ? void 0 : null == (_fieldSchema_parent1 = fieldSchema.parent) ? void 0 : _fieldSchema_parent1['x-component']) === 'CollectionField';
|
|
1224
|
+
return /*#__PURE__*/ jsx(SchemaSettingsModalItem, {
|
|
1225
1225
|
title: t('Enable child collections'),
|
|
1226
1226
|
components: {
|
|
1227
|
-
ArrayItems:
|
|
1228
|
-
FormLayout:
|
|
1227
|
+
ArrayItems: ArrayItems,
|
|
1228
|
+
FormLayout: FormLayout
|
|
1229
1229
|
},
|
|
1230
1230
|
scope: {
|
|
1231
1231
|
isAssocationAdd
|
|
@@ -1235,7 +1235,7 @@ function SchemaSettingsEnableChildCollections(props) {
|
|
|
1235
1235
|
title: t('Enable child collections'),
|
|
1236
1236
|
properties: {
|
|
1237
1237
|
enableChildren: {
|
|
1238
|
-
'x-component':
|
|
1238
|
+
'x-component': EnableChildCollections,
|
|
1239
1239
|
'x-use-component-props': ()=>({
|
|
1240
1240
|
defaultValues: null == fieldSchema ? void 0 : fieldSchema['x-enable-children'],
|
|
1241
1241
|
collectionName
|
|
@@ -1246,25 +1246,25 @@ function SchemaSettingsEnableChildCollections(props) {
|
|
|
1246
1246
|
'x-content': "{{t('Allow adding records to the current collection')}}",
|
|
1247
1247
|
'x-decorator': 'FormItem',
|
|
1248
1248
|
'x-component': 'Checkbox',
|
|
1249
|
-
default: void 0 === allowAddToCurrent
|
|
1249
|
+
default: void 0 === allowAddToCurrent ? true : allowAddToCurrent
|
|
1250
1250
|
},
|
|
1251
1251
|
linkageFromForm: {
|
|
1252
1252
|
type: 'string',
|
|
1253
1253
|
title: "{{t('Linkage with form fields')}}",
|
|
1254
1254
|
'x-visible': '{{isAssocationAdd}}',
|
|
1255
1255
|
'x-decorator': 'FormItem',
|
|
1256
|
-
'x-component':
|
|
1256
|
+
'x-component': ChildDynamicComponent,
|
|
1257
1257
|
'x-component-props': {
|
|
1258
1258
|
rootCollection: ctx.props.collection || ctx.props.resource,
|
|
1259
1259
|
collectionField
|
|
1260
1260
|
},
|
|
1261
|
-
default: null == fieldSchema ? void 0 : null
|
|
1261
|
+
default: null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['linkageFromForm']
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
},
|
|
1265
1265
|
onSubmit: (v)=>{
|
|
1266
1266
|
const enableChildren = [];
|
|
1267
|
-
for (const item of v.enableChildren.childrenCollections)enableChildren.push(
|
|
1267
|
+
for (const item of v.enableChildren.childrenCollections)enableChildren.push(lodash.pickBy(item, lodash.identity));
|
|
1268
1268
|
const uid = fieldSchema['x-uid'];
|
|
1269
1269
|
const schema = {
|
|
1270
1270
|
['x-uid']: uid
|
|
@@ -1299,21 +1299,21 @@ const findParentFieldSchema = (fieldSchema)=>{
|
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
1301
|
const SchemaSettingsSortField = ()=>{
|
|
1302
|
-
const { fields } =
|
|
1303
|
-
const field =
|
|
1304
|
-
const fieldSchema =
|
|
1305
|
-
const { t } =
|
|
1306
|
-
const { dn } =
|
|
1307
|
-
const compile =
|
|
1308
|
-
const { service } =
|
|
1302
|
+
const { fields } = useCollection_deprecated();
|
|
1303
|
+
const field = useField();
|
|
1304
|
+
const fieldSchema = useFieldSchema();
|
|
1305
|
+
const { t } = useTranslation();
|
|
1306
|
+
const { dn } = useDesignable();
|
|
1307
|
+
const compile = useCompile();
|
|
1308
|
+
const { service } = useTableBlockContext();
|
|
1309
1309
|
const options = fields.filter((field)=>!(null == field ? void 0 : field.target) && 'sort' === field.interface).map((field)=>{
|
|
1310
1310
|
var _field_uiSchema;
|
|
1311
1311
|
return {
|
|
1312
1312
|
value: null == field ? void 0 : field.name,
|
|
1313
|
-
label: compile(null == field ? void 0 : null
|
|
1313
|
+
label: compile(null == field ? void 0 : null == (_field_uiSchema = field.uiSchema) ? void 0 : _field_uiSchema.title) || (null == field ? void 0 : field.name)
|
|
1314
1314
|
};
|
|
1315
1315
|
});
|
|
1316
|
-
return /*#__PURE__*/
|
|
1316
|
+
return /*#__PURE__*/ jsx(SchemaSettingsSelectItem, {
|
|
1317
1317
|
title: t('Drag and drop sorting field'),
|
|
1318
1318
|
options: options,
|
|
1319
1319
|
value: field.decoratorProps.dragSortBy,
|
|
@@ -1321,7 +1321,7 @@ const SchemaSettingsSortField = ()=>{
|
|
|
1321
1321
|
var _service_params;
|
|
1322
1322
|
fieldSchema['x-decorator-props'].dragSortBy = dragSortBy;
|
|
1323
1323
|
service.run({
|
|
1324
|
-
...null
|
|
1324
|
+
...null == (_service_params = service.params) ? void 0 : _service_params[0],
|
|
1325
1325
|
sort: dragSortBy
|
|
1326
1326
|
});
|
|
1327
1327
|
field.decoratorProps.dragSortBy = dragSortBy;
|
|
@@ -1341,7 +1341,7 @@ const isSystemField = (collectionField, getInterface)=>{
|
|
|
1341
1341
|
};
|
|
1342
1342
|
function getFieldDefaultValue(fieldSchema, collectionField) {
|
|
1343
1343
|
var _fieldSchema_default;
|
|
1344
|
-
const result = null
|
|
1344
|
+
const result = null != (_fieldSchema_default = null == fieldSchema ? void 0 : fieldSchema.default) ? _fieldSchema_default : null == collectionField ? void 0 : collectionField.defaultValue;
|
|
1345
1345
|
return result;
|
|
1346
1346
|
}
|
|
1347
1347
|
export { SchemaSettingsActionModalItem, SchemaSettingsBlockTitleItem, SchemaSettingsCascaderItem, SchemaSettingsConnectDataBlocks, SchemaSettingsDataTemplates, SchemaSettingsDefaultSortingRules, SchemaSettingsDivider, SchemaSettingsDropdown, SchemaSettingsEnableChildCollections, SchemaSettingsFormItemTemplate, SchemaSettingsItem, SchemaSettingsItemGroup, SchemaSettingsLinkageRules, SchemaSettingsModalItem, SchemaSettingsPopupItem, SchemaSettingsProvider, SchemaSettingsRemove, SchemaSettingsSelectItem, SchemaSettingsSortField, SchemaSettingsSubMenu, SchemaSettingsSwitchItem, SchemaSettingsTemplate, findParentFieldSchema, getFieldDefaultValue, isSystemField, useDataTemplates, useSchemaSettings };
|