@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,30 +1,30 @@
|
|
|
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
|
|
1
|
+
import { useCallback, useEffect } from "react";
|
|
2
|
+
import { untracked, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
3
|
+
import { isURL, parse } from "@tachybase/utils/client";
|
|
4
|
+
import { App } from "antd";
|
|
5
|
+
import flat from "flat";
|
|
6
|
+
import lodash from "lodash";
|
|
7
|
+
import get from "lodash/get";
|
|
8
|
+
import omit from "lodash/omit";
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
import { useNavigate } from "react-router-dom";
|
|
11
|
+
import { useReactToPrint } from "react-to-print";
|
|
12
|
+
import { AssociationFilter, useCollection, useCollectionRecord, useDataSourceHeaders, useFormActiveFields, useFormBlockContext } from "../../index.mjs";
|
|
13
|
+
import { useAPIClient, useRequest } from "../../api-client/index.mjs";
|
|
14
|
+
import { PathHandler } from "../../built-in/dynamic-page/utils.mjs";
|
|
15
|
+
import { useCollectionManager_deprecated, useCollection_deprecated } from "../../collection-manager/index.mjs";
|
|
16
|
+
import { useFilterBlock } from "../../filter-provider/FilterProvider.mjs";
|
|
17
|
+
import { mergeFilter as utils_mjs_mergeFilter, transformToFilter } from "../../filter-provider/utils.mjs";
|
|
18
|
+
import { useRecord } from "../../record-provider/index.mjs";
|
|
19
|
+
import { getCustomCondition, removeNullCondition, useActionContext, useCompile, useDesignable } from "../../schema-component/index.mjs";
|
|
20
|
+
import { isSubMode } from "../../schema-component/antd/association-field/util.mjs";
|
|
21
|
+
import { useCurrentUserContext } from "../../user/index.mjs";
|
|
22
|
+
import { useLocalVariables, useVariables } from "../../variables/index.mjs";
|
|
23
|
+
import { isVariable } from "../../variables/utils/isVariable.mjs";
|
|
24
|
+
import { transformVariableValue } from "../../variables/utils/transformVariableValue.mjs";
|
|
25
|
+
import { useBlockRequestContext, useFilterByTk, useParamsFromRecord } from "../BlockProvider.mjs";
|
|
26
|
+
import { useDetailsBlockContext } from "../DetailsBlockProvider.mjs";
|
|
27
|
+
import { TableFieldResource } from "../TableFieldProvider.mjs";
|
|
28
28
|
export * from "./useFormActiveFields.mjs";
|
|
29
29
|
export * from "./useParsedFilter.mjs";
|
|
30
30
|
export * from "./useDataBlockSourceId.mjs";
|
|
@@ -32,11 +32,11 @@ export * from "./useIsMobile.mjs";
|
|
|
32
32
|
function renderTemplate(str, data) {
|
|
33
33
|
const re = /\{\{\s*((\w+\.?)+)\s*\}\}/g;
|
|
34
34
|
return str.replace(re, function(_, key) {
|
|
35
|
-
return (
|
|
35
|
+
return get(data, key) || '';
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
function filterByCleanedFields(mergeFilter) {
|
|
39
|
-
const items = (
|
|
39
|
+
const items = flat(mergeFilter);
|
|
40
40
|
const result = {};
|
|
41
41
|
const seen = new Set();
|
|
42
42
|
for(const key in items){
|
|
@@ -54,7 +54,7 @@ function filterByCleanedFields(mergeFilter) {
|
|
|
54
54
|
result[key] = value;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return flat.unflatten(result);
|
|
58
58
|
}
|
|
59
59
|
function getFormValues(param) {
|
|
60
60
|
let { filterByTk, field, form, fieldNames, getField, resource, actionFields } = param;
|
|
@@ -69,7 +69,7 @@ function getFormValues(param) {
|
|
|
69
69
|
'belongsToMany'
|
|
70
70
|
].includes(null == f ? void 0 : f.type);
|
|
71
71
|
});
|
|
72
|
-
return (
|
|
72
|
+
return omit({
|
|
73
73
|
...form.values
|
|
74
74
|
}, keys);
|
|
75
75
|
}
|
|
@@ -77,23 +77,23 @@ function getFormValues(param) {
|
|
|
77
77
|
return form.values;
|
|
78
78
|
}
|
|
79
79
|
function useCollectValuesToSubmit() {
|
|
80
|
-
const form =
|
|
81
|
-
const filterByTk =
|
|
82
|
-
const { field, resource } =
|
|
83
|
-
const { fields, getField, getTreeParentField, name } =
|
|
80
|
+
const form = useForm();
|
|
81
|
+
const filterByTk = useFilterByTk();
|
|
82
|
+
const { field, resource } = useBlockRequestContext();
|
|
83
|
+
const { fields, getField, getTreeParentField, name } = useCollection_deprecated();
|
|
84
84
|
const fieldNames = fields.map((field)=>field.name);
|
|
85
|
-
const { fieldSchema } =
|
|
86
|
-
const { getActiveFieldsName } =
|
|
87
|
-
const variables =
|
|
88
|
-
const localVariables =
|
|
85
|
+
const { fieldSchema } = useActionContext();
|
|
86
|
+
const { getActiveFieldsName } = useFormActiveFields() || {};
|
|
87
|
+
const variables = useVariables();
|
|
88
|
+
const localVariables = useLocalVariables({
|
|
89
89
|
currentForm: form
|
|
90
90
|
});
|
|
91
|
-
const actionSchema =
|
|
92
|
-
const currentRecord =
|
|
93
|
-
return
|
|
91
|
+
const actionSchema = useFieldSchema();
|
|
92
|
+
const currentRecord = useRecord();
|
|
93
|
+
return useCallback(async ()=>{
|
|
94
94
|
var _fieldSchema_xcomponentprops;
|
|
95
95
|
var _actionSchema_xactionsettings;
|
|
96
|
-
const { assignedValues: originalAssignedValues = {}, overwriteValues } = null
|
|
96
|
+
const { assignedValues: originalAssignedValues = {}, overwriteValues } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
97
97
|
const values = getFormValues({
|
|
98
98
|
filterByTk,
|
|
99
99
|
field,
|
|
@@ -107,24 +107,24 @@ function useCollectValuesToSubmit() {
|
|
|
107
107
|
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
108
108
|
const value = originalAssignedValues[key];
|
|
109
109
|
const collectionField = getField(key);
|
|
110
|
-
if (
|
|
110
|
+
if (isVariable(value)) {
|
|
111
111
|
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
112
|
-
if (result) assignedValues[key] =
|
|
112
|
+
if (result) assignedValues[key] = transformVariableValue(result, {
|
|
113
113
|
targetCollectionField: collectionField
|
|
114
114
|
});
|
|
115
115
|
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
116
116
|
});
|
|
117
117
|
await Promise.all(waitList);
|
|
118
|
-
const addChild = null == fieldSchema ? void 0 : null
|
|
118
|
+
const addChild = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
119
119
|
if (addChild) {
|
|
120
|
-
var _currentRecord___parent;
|
|
120
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey, _currentRecord___parent;
|
|
121
121
|
const treeParentField = getTreeParentField();
|
|
122
122
|
var _treeParentField_name;
|
|
123
|
-
values[null
|
|
123
|
+
values[null != (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) ? _treeParentField_name : 'parent'] = omit(null == currentRecord ? void 0 : currentRecord.__parent, [
|
|
124
124
|
'children'
|
|
125
125
|
]);
|
|
126
|
-
var
|
|
127
|
-
values[null
|
|
126
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field;
|
|
127
|
+
values[null != (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field = null == treeParentField ? void 0 : null == (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey = treeParentField.collection.model.rawAttributes[null == treeParentField ? void 0 : treeParentField.foreignKey]) ? void 0 : _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey.field) ? _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field : 'parentId'] = null == currentRecord ? void 0 : null == (_currentRecord___parent = currentRecord.__parent) ? void 0 : _currentRecord___parent.id;
|
|
128
128
|
}
|
|
129
129
|
return {
|
|
130
130
|
...values,
|
|
@@ -177,22 +177,22 @@ const viewerSchema = {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
const useInsertSchema = ()=>{
|
|
180
|
-
const fieldSchema =
|
|
181
|
-
const { insertAfterBegin } =
|
|
182
|
-
const insert =
|
|
180
|
+
const fieldSchema = useFieldSchema();
|
|
181
|
+
const { insertAfterBegin } = useDesignable();
|
|
182
|
+
const insert = useCallback((ss)=>{
|
|
183
183
|
const schema = fieldSchema.reduceProperties((buf, s)=>{
|
|
184
184
|
if (s['x-component'] === pageDetailsViewer) return s;
|
|
185
185
|
return buf;
|
|
186
186
|
}, null);
|
|
187
|
-
if (!schema) insertAfterBegin(
|
|
187
|
+
if (!schema) insertAfterBegin(lodash.cloneDeep(ss));
|
|
188
188
|
}, [
|
|
189
189
|
pageDetailsViewer
|
|
190
190
|
]);
|
|
191
191
|
return insert;
|
|
192
192
|
};
|
|
193
193
|
const useCancelActionProps = ()=>{
|
|
194
|
-
const form =
|
|
195
|
-
const ctx =
|
|
194
|
+
const form = useForm();
|
|
195
|
+
const ctx = useActionContext();
|
|
196
196
|
return {
|
|
197
197
|
async onClick () {
|
|
198
198
|
ctx.setVisible(false);
|
|
@@ -201,18 +201,18 @@ const useCancelActionProps = ()=>{
|
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
203
|
const useJumpDetails = ()=>{
|
|
204
|
-
const collection =
|
|
205
|
-
const fieldSchema =
|
|
206
|
-
const dn =
|
|
204
|
+
const collection = useCollection();
|
|
205
|
+
const fieldSchema = useFieldSchema();
|
|
206
|
+
const dn = useDesignable();
|
|
207
207
|
const insert = useInsertSchema();
|
|
208
|
-
const navigate =
|
|
208
|
+
const navigate = useNavigate();
|
|
209
209
|
return (filterByTk)=>{
|
|
210
210
|
if (dn.designable) insert(viewerSchema);
|
|
211
211
|
const targetSchema = fieldSchema.reduceProperties((buf, s)=>{
|
|
212
212
|
if (s['x-component'] === pageDetailsViewer) return s;
|
|
213
213
|
return buf;
|
|
214
214
|
});
|
|
215
|
-
if (targetSchema) navigate("../".concat(targetSchema['x-uid'], "/").concat(
|
|
215
|
+
if (targetSchema) navigate("../".concat(targetSchema['x-uid'], "/").concat(PathHandler.getInstance().toWildcardPath({
|
|
216
216
|
collection: collection.name,
|
|
217
217
|
filterByTk
|
|
218
218
|
})));
|
|
@@ -234,25 +234,25 @@ function getBeforeWorkflows(triggerWorkflows) {
|
|
|
234
234
|
}
|
|
235
235
|
const useCreateActionProps = ()=>{
|
|
236
236
|
var _actionField_componentProps_filterKeys;
|
|
237
|
-
const record =
|
|
238
|
-
const form =
|
|
239
|
-
const { field, resource, __parent } =
|
|
237
|
+
const record = useCollectionRecord();
|
|
238
|
+
const form = useForm();
|
|
239
|
+
const { field, resource, __parent } = useBlockRequestContext();
|
|
240
240
|
const jumpDetails = useJumpDetails();
|
|
241
|
-
const { setVisible } =
|
|
242
|
-
const navigate =
|
|
243
|
-
const actionSchema =
|
|
244
|
-
const actionField =
|
|
245
|
-
const compile =
|
|
246
|
-
const { modal, message } =
|
|
247
|
-
const { t } =
|
|
248
|
-
const { updateAssociationValues } =
|
|
241
|
+
const { setVisible } = useActionContext();
|
|
242
|
+
const navigate = useNavigate();
|
|
243
|
+
const actionSchema = useFieldSchema();
|
|
244
|
+
const actionField = useField();
|
|
245
|
+
const compile = useCompile();
|
|
246
|
+
const { modal, message } = App.useApp();
|
|
247
|
+
const { t } = useTranslation();
|
|
248
|
+
const { updateAssociationValues } = useFormBlockContext();
|
|
249
249
|
const collectValues = useCollectValuesToSubmit();
|
|
250
250
|
const action = record.isNew ? actionField.componentProps.saveMode || 'create' : 'update';
|
|
251
|
-
const filterKeys = (null
|
|
251
|
+
const filterKeys = (null == (_actionField_componentProps_filterKeys = actionField.componentProps.filterKeys) ? void 0 : _actionField_componentProps_filterKeys.checked) || [];
|
|
252
252
|
return {
|
|
253
253
|
async onClick () {
|
|
254
254
|
var _actionSchema_xactionsettings;
|
|
255
|
-
const { onSuccess, skipValidator, triggerWorkflows, pageMode } = null
|
|
255
|
+
const { onSuccess, skipValidator, triggerWorkflows, pageMode } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
256
256
|
if (!skipValidator) await form.submit();
|
|
257
257
|
actionField.data = field.data || {};
|
|
258
258
|
actionField.data.loading = true;
|
|
@@ -267,11 +267,11 @@ const useCreateActionProps = ()=>{
|
|
|
267
267
|
});
|
|
268
268
|
actionField.data.loading = false;
|
|
269
269
|
actionField.data.data = data;
|
|
270
|
-
null == __parent || null
|
|
270
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
271
271
|
if (pageMode) {
|
|
272
272
|
var _data_data_data, _data_data;
|
|
273
273
|
await resetFormCorrectly(form);
|
|
274
|
-
jumpDetails(null == data ? void 0 : null
|
|
274
|
+
jumpDetails(null == data ? void 0 : null == (_data_data = data.data) ? void 0 : null == (_data_data_data = _data_data.data) ? void 0 : _data_data_data.id);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
277
|
const successMessage = (null == onSuccess ? void 0 : onSuccess.successMessage) ? compile(null == onSuccess ? void 0 : onSuccess.successMessage) : t('Saved successfully');
|
|
@@ -279,19 +279,15 @@ const useCreateActionProps = ()=>{
|
|
|
279
279
|
title: successMessage,
|
|
280
280
|
onOk: async ()=>{
|
|
281
281
|
await resetFormCorrectly(form);
|
|
282
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
283
|
-
|
|
284
|
-
else navigate(onSuccess.redirectTo);
|
|
285
|
-
}
|
|
282
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
283
|
+
else navigate(onSuccess.redirectTo);
|
|
286
284
|
}
|
|
287
285
|
});
|
|
288
286
|
else {
|
|
289
287
|
message.success(successMessage);
|
|
290
288
|
await resetFormCorrectly(form);
|
|
291
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
292
|
-
|
|
293
|
-
else navigate(onSuccess.redirectTo);
|
|
294
|
-
}
|
|
289
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
290
|
+
else navigate(onSuccess.redirectTo);
|
|
295
291
|
}
|
|
296
292
|
if (!(null == onSuccess ? void 0 : onSuccess.popupClose)) {
|
|
297
293
|
await resetFormCorrectly(form);
|
|
@@ -306,37 +302,37 @@ const useCreateActionProps = ()=>{
|
|
|
306
302
|
};
|
|
307
303
|
const useAssociationCreateActionProps = ()=>{
|
|
308
304
|
var _actionField_componentProps_filterKeys;
|
|
309
|
-
const form =
|
|
310
|
-
const { field, resource, __parent } =
|
|
311
|
-
const { setVisible, fieldSchema } =
|
|
312
|
-
const actionSchema =
|
|
313
|
-
const actionField =
|
|
314
|
-
const { message } =
|
|
315
|
-
const { fields, getField, getTreeParentField, name } =
|
|
316
|
-
const compile =
|
|
317
|
-
const filterByTk =
|
|
318
|
-
const currentRecord =
|
|
319
|
-
const variables =
|
|
320
|
-
const localVariables =
|
|
305
|
+
const form = useForm();
|
|
306
|
+
const { field, resource, __parent } = useBlockRequestContext();
|
|
307
|
+
const { setVisible, fieldSchema } = useActionContext();
|
|
308
|
+
const actionSchema = useFieldSchema();
|
|
309
|
+
const actionField = useField();
|
|
310
|
+
const { message } = App.useApp();
|
|
311
|
+
const { fields, getField, getTreeParentField, name } = useCollection_deprecated();
|
|
312
|
+
const compile = useCompile();
|
|
313
|
+
const filterByTk = useFilterByTk();
|
|
314
|
+
const currentRecord = useRecord();
|
|
315
|
+
const variables = useVariables();
|
|
316
|
+
const localVariables = useLocalVariables({
|
|
321
317
|
currentForm: form
|
|
322
318
|
});
|
|
323
|
-
const { getActiveFieldsName } =
|
|
319
|
+
const { getActiveFieldsName } = useFormActiveFields() || {};
|
|
324
320
|
const action = actionField.componentProps.saveMode || 'create';
|
|
325
|
-
const filterKeys = (null
|
|
321
|
+
const filterKeys = (null == (_actionField_componentProps_filterKeys = actionField.componentProps.filterKeys) ? void 0 : _actionField_componentProps_filterKeys.checked) || [];
|
|
326
322
|
return {
|
|
327
323
|
async onClick () {
|
|
328
324
|
var _fieldSchema_xcomponentprops;
|
|
329
325
|
const fieldNames = fields.map((field)=>field.name);
|
|
330
326
|
var _actionSchema_xactionsettings;
|
|
331
|
-
const { assignedValues: originalAssignedValues = {}, onSuccess, overwriteValues, skipValidator, triggerWorkflows } = null
|
|
332
|
-
const addChild = null == fieldSchema ? void 0 : null
|
|
327
|
+
const { assignedValues: originalAssignedValues = {}, onSuccess, overwriteValues, skipValidator, triggerWorkflows } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
328
|
+
const addChild = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
333
329
|
const assignedValues = {};
|
|
334
330
|
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
335
331
|
const value = originalAssignedValues[key];
|
|
336
332
|
const collectionField = getField(key);
|
|
337
|
-
if (
|
|
333
|
+
if (isVariable(value)) {
|
|
338
334
|
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
339
|
-
if (result) assignedValues[key] =
|
|
335
|
+
if (result) assignedValues[key] = transformVariableValue(result, {
|
|
340
336
|
targetCollectionField: collectionField
|
|
341
337
|
});
|
|
342
338
|
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
@@ -353,11 +349,12 @@ const useAssociationCreateActionProps = ()=>{
|
|
|
353
349
|
actionFields: (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || []
|
|
354
350
|
});
|
|
355
351
|
if (addChild) {
|
|
352
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey;
|
|
356
353
|
const treeParentField = getTreeParentField();
|
|
357
354
|
var _treeParentField_name;
|
|
358
|
-
values[null
|
|
359
|
-
var
|
|
360
|
-
values[null
|
|
355
|
+
values[null != (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) ? _treeParentField_name : 'parent'] = currentRecord;
|
|
356
|
+
var _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field;
|
|
357
|
+
values[null != (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field = null == treeParentField ? void 0 : null == (_treeParentField_collection_model_rawAttributes_treeParentField_foreignKey = treeParentField.collection.model.rawAttributes[null == treeParentField ? void 0 : treeParentField.foreignKey]) ? void 0 : _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey.field) ? _treeParentField_collection_model_rawAttributes_treeParentField_foreignKey_field : 'parentId'] = currentRecord.id;
|
|
361
358
|
}
|
|
362
359
|
actionField.data = field.data || {};
|
|
363
360
|
actionField.data.loading = true;
|
|
@@ -375,7 +372,7 @@ const useAssociationCreateActionProps = ()=>{
|
|
|
375
372
|
});
|
|
376
373
|
actionField.data.loading = false;
|
|
377
374
|
actionField.data.data = data;
|
|
378
|
-
null == __parent || null
|
|
375
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
379
376
|
null == setVisible || setVisible(false);
|
|
380
377
|
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
381
378
|
message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
@@ -406,12 +403,12 @@ const updateFilterTargets = (fieldSchema, targets)=>{
|
|
|
406
403
|
}
|
|
407
404
|
};
|
|
408
405
|
const useFilterBlockActionProps = ()=>{
|
|
409
|
-
const form =
|
|
410
|
-
const actionField =
|
|
411
|
-
const fieldSchema =
|
|
412
|
-
const { getDataBlocks } =
|
|
413
|
-
const { name } =
|
|
414
|
-
const { getCollectionJoinField } =
|
|
406
|
+
const form = useForm();
|
|
407
|
+
const actionField = useField();
|
|
408
|
+
const fieldSchema = useFieldSchema();
|
|
409
|
+
const { getDataBlocks } = useFilterBlock();
|
|
410
|
+
const { name } = useCollection_deprecated();
|
|
411
|
+
const { getCollectionJoinField } = useCollectionManager_deprecated();
|
|
415
412
|
actionField.data = actionField.data || {};
|
|
416
413
|
return {
|
|
417
414
|
async onClick () {
|
|
@@ -423,9 +420,9 @@ const useFilterBlockActionProps = ()=>{
|
|
|
423
420
|
var _block_service_params, _block_service_params_, _block_service_params1, _Object_keys;
|
|
424
421
|
const target = targets.find((target)=>target.uid === block.uid);
|
|
425
422
|
if (!target) return;
|
|
426
|
-
const param = (null
|
|
423
|
+
const param = (null == (_block_service_params = block.service.params) ? void 0 : _block_service_params[0]) || {};
|
|
427
424
|
for(const key in form.values)if ('object' == typeof form.values[key] && ('{}' === JSON.stringify(form.values[key]) || '[]' === JSON.stringify(form.values[key])) || !form.values[key]) delete form.values[key];
|
|
428
|
-
const storedFilter = (null
|
|
425
|
+
const storedFilter = (null == (_block_service_params1 = block.service.params) ? void 0 : null == (_block_service_params_ = _block_service_params1[1]) ? void 0 : _block_service_params_.filters) || {};
|
|
429
426
|
const filter = {
|
|
430
427
|
formValues: {
|
|
431
428
|
...form.values
|
|
@@ -433,7 +430,7 @@ const useFilterBlockActionProps = ()=>{
|
|
|
433
430
|
customValues: {},
|
|
434
431
|
customFilter: {}
|
|
435
432
|
};
|
|
436
|
-
if (null
|
|
433
|
+
if (null == (_Object_keys = Object.keys(filter.formValues)) ? void 0 : _Object_keys.includes('__custom')) {
|
|
437
434
|
const values = {
|
|
438
435
|
...form.values
|
|
439
436
|
};
|
|
@@ -442,18 +439,18 @@ const useFilterBlockActionProps = ()=>{
|
|
|
442
439
|
...values
|
|
443
440
|
};
|
|
444
441
|
for(const key in form.values['__custom'])if (form.values['__custom'][key]) filter.customValues[key] = form.values['__custom'][key];
|
|
445
|
-
filter.customFilter =
|
|
442
|
+
filter.customFilter = getCustomCondition(filter.customValues, fieldSchema);
|
|
446
443
|
}
|
|
447
|
-
storedFilter[uid] =
|
|
448
|
-
const mergedFilter = (
|
|
449
|
-
...Object.values(storedFilter).map((filter)=>
|
|
444
|
+
storedFilter[uid] = removeNullCondition(transformToFilter(filter.formValues, fieldSchema, getCollectionJoinField, name));
|
|
445
|
+
const mergedFilter = utils_mjs_mergeFilter([
|
|
446
|
+
...Object.values(storedFilter).map((filter)=>removeNullCondition(filter)),
|
|
450
447
|
block.defaultFilter,
|
|
451
448
|
filter.customFilter,
|
|
452
449
|
prevMergedFilter
|
|
453
450
|
]);
|
|
454
451
|
const currFilter = filterByCleanedFields(mergedFilter);
|
|
455
452
|
prevMergedFilter = currFilter;
|
|
456
|
-
if ('manual' === block.dataLoadingMode &&
|
|
453
|
+
if ('manual' === block.dataLoadingMode && lodash.isEmpty(currFilter)) return block.clearData();
|
|
457
454
|
return block.doFilter({
|
|
458
455
|
...param,
|
|
459
456
|
page: 1,
|
|
@@ -470,10 +467,10 @@ const useFilterBlockActionProps = ()=>{
|
|
|
470
467
|
};
|
|
471
468
|
};
|
|
472
469
|
const useResetBlockActionProps = ()=>{
|
|
473
|
-
const form =
|
|
474
|
-
const actionField =
|
|
475
|
-
const fieldSchema =
|
|
476
|
-
const { getDataBlocks } =
|
|
470
|
+
const form = useForm();
|
|
471
|
+
const actionField = useField();
|
|
472
|
+
const fieldSchema = useFieldSchema();
|
|
473
|
+
const { getDataBlocks } = useFilterBlock();
|
|
477
474
|
actionField.data = actionField.data || {};
|
|
478
475
|
return {
|
|
479
476
|
async onClick () {
|
|
@@ -487,10 +484,10 @@ const useResetBlockActionProps = ()=>{
|
|
|
487
484
|
const target = targets.find((target)=>target.uid === block.uid);
|
|
488
485
|
if (!target) return;
|
|
489
486
|
if ('manual' === block.dataLoadingMode) return block.clearData();
|
|
490
|
-
const param = (null
|
|
491
|
-
const storedFilter = (null
|
|
487
|
+
const param = (null == (_block_service_params = block.service.params) ? void 0 : _block_service_params[0]) || {};
|
|
488
|
+
const storedFilter = (null == (_block_service_params1 = block.service.params) ? void 0 : null == (_block_service_params_ = _block_service_params1[1]) ? void 0 : _block_service_params_.filters) || {};
|
|
492
489
|
delete storedFilter[uid];
|
|
493
|
-
const currFilter = (
|
|
490
|
+
const currFilter = utils_mjs_mergeFilter([
|
|
494
491
|
...Object.values(storedFilter),
|
|
495
492
|
block.defaultFilter,
|
|
496
493
|
prevMergedFilter
|
|
@@ -513,30 +510,30 @@ const useResetBlockActionProps = ()=>{
|
|
|
513
510
|
};
|
|
514
511
|
};
|
|
515
512
|
const useCustomizeUpdateActionProps = ()=>{
|
|
516
|
-
const { resource, __parent, service } =
|
|
517
|
-
const filterByTk =
|
|
518
|
-
const actionSchema =
|
|
519
|
-
const navigate =
|
|
520
|
-
const compile =
|
|
521
|
-
const form =
|
|
522
|
-
const { modal, message } =
|
|
523
|
-
const variables =
|
|
524
|
-
const localVariables =
|
|
513
|
+
const { resource, __parent, service } = useBlockRequestContext();
|
|
514
|
+
const filterByTk = useFilterByTk();
|
|
515
|
+
const actionSchema = useFieldSchema();
|
|
516
|
+
const navigate = useNavigate();
|
|
517
|
+
const compile = useCompile();
|
|
518
|
+
const form = useForm();
|
|
519
|
+
const { modal, message } = App.useApp();
|
|
520
|
+
const variables = useVariables();
|
|
521
|
+
const localVariables = useLocalVariables({
|
|
525
522
|
currentForm: form
|
|
526
523
|
});
|
|
527
|
-
const { name, getField } =
|
|
524
|
+
const { name, getField } = useCollection_deprecated();
|
|
528
525
|
return {
|
|
529
526
|
async onClick () {
|
|
530
527
|
var _service_refresh;
|
|
531
528
|
var _actionSchema_xactionsettings;
|
|
532
|
-
const { assignedValues: originalAssignedValues = {}, onSuccess, skipValidator, triggerWorkflows } = null
|
|
529
|
+
const { assignedValues: originalAssignedValues = {}, onSuccess, skipValidator, triggerWorkflows } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
533
530
|
const assignedValues = {};
|
|
534
531
|
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
535
532
|
const value = originalAssignedValues[key];
|
|
536
533
|
const collectionField = getField(key);
|
|
537
|
-
if (
|
|
534
|
+
if (isVariable(value)) {
|
|
538
535
|
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
539
|
-
if (result) assignedValues[key] =
|
|
536
|
+
if (result) assignedValues[key] = transformVariableValue(result, {
|
|
540
537
|
targetCollectionField: collectionField
|
|
541
538
|
});
|
|
542
539
|
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
@@ -551,52 +548,48 @@ const useCustomizeUpdateActionProps = ()=>{
|
|
|
551
548
|
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
552
549
|
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
553
550
|
});
|
|
554
|
-
null == service || null
|
|
555
|
-
if (!(resource instanceof
|
|
551
|
+
null == service || null == (_service_refresh = service.refresh) || _service_refresh.call(service);
|
|
552
|
+
if (!(resource instanceof TableFieldResource)) {
|
|
556
553
|
var __parent_service_refresh, __parent_service;
|
|
557
|
-
null == __parent || null
|
|
554
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
558
555
|
}
|
|
559
556
|
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
560
557
|
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
561
558
|
title: compile(null == onSuccess ? void 0 : onSuccess.successMessage),
|
|
562
559
|
onOk: async ()=>{
|
|
563
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
564
|
-
|
|
565
|
-
else navigate(onSuccess.redirectTo);
|
|
566
|
-
}
|
|
560
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
561
|
+
else navigate(onSuccess.redirectTo);
|
|
567
562
|
}
|
|
568
563
|
});
|
|
569
564
|
else {
|
|
570
565
|
message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
571
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
572
|
-
|
|
573
|
-
else navigate(onSuccess.redirectTo);
|
|
574
|
-
}
|
|
566
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
567
|
+
else navigate(onSuccess.redirectTo);
|
|
575
568
|
}
|
|
576
569
|
}
|
|
577
570
|
};
|
|
578
571
|
};
|
|
579
572
|
const useCustomizeRequestActionProps = ()=>{
|
|
580
573
|
var _currentUserContext_data;
|
|
581
|
-
const apiClient =
|
|
582
|
-
const navigate =
|
|
583
|
-
const filterByTk =
|
|
584
|
-
const actionSchema =
|
|
585
|
-
const compile =
|
|
586
|
-
const form =
|
|
587
|
-
const { fields, getField } =
|
|
588
|
-
const { field, resource, __parent, service } =
|
|
589
|
-
const currentRecord =
|
|
590
|
-
const currentUserContext =
|
|
591
|
-
const currentUser = null == currentUserContext ? void 0 : null
|
|
592
|
-
const actionField =
|
|
593
|
-
const { setVisible } =
|
|
594
|
-
const { modal, message } =
|
|
595
|
-
const { getActiveFieldsName } =
|
|
574
|
+
const apiClient = useAPIClient();
|
|
575
|
+
const navigate = useNavigate();
|
|
576
|
+
const filterByTk = useFilterByTk();
|
|
577
|
+
const actionSchema = useFieldSchema();
|
|
578
|
+
const compile = useCompile();
|
|
579
|
+
const form = useForm();
|
|
580
|
+
const { fields, getField } = useCollection_deprecated();
|
|
581
|
+
const { field, resource, __parent, service } = useBlockRequestContext();
|
|
582
|
+
const currentRecord = useRecord();
|
|
583
|
+
const currentUserContext = useCurrentUserContext();
|
|
584
|
+
const currentUser = null == currentUserContext ? void 0 : null == (_currentUserContext_data = currentUserContext.data) ? void 0 : _currentUserContext_data.data;
|
|
585
|
+
const actionField = useField();
|
|
586
|
+
const { setVisible } = useActionContext();
|
|
587
|
+
const { modal, message } = App.useApp();
|
|
588
|
+
const { getActiveFieldsName } = useFormActiveFields() || {};
|
|
596
589
|
return {
|
|
597
590
|
async onClick () {
|
|
598
591
|
var _actionSchema_xactionsettings;
|
|
599
|
-
const { skipValidator, onSuccess, requestSettings } = null
|
|
592
|
+
const { skipValidator, onSuccess, requestSettings } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
600
593
|
const xAction = null == actionSchema ? void 0 : actionSchema['x-action'];
|
|
601
594
|
if (!requestSettings['url']) return;
|
|
602
595
|
if (true !== skipValidator && 'customize:form:request' === xAction) await form.submit();
|
|
@@ -627,15 +620,15 @@ const useCustomizeRequestActionProps = ()=>{
|
|
|
627
620
|
currentUser
|
|
628
621
|
}),
|
|
629
622
|
method: requestSettings['method'],
|
|
630
|
-
headers:
|
|
623
|
+
headers: parse(headers)({
|
|
631
624
|
currentRecord,
|
|
632
625
|
currentUser
|
|
633
626
|
}),
|
|
634
|
-
params:
|
|
627
|
+
params: parse(params)({
|
|
635
628
|
currentRecord,
|
|
636
629
|
currentUser
|
|
637
630
|
}),
|
|
638
|
-
data:
|
|
631
|
+
data: parse(data)({
|
|
639
632
|
currentRecord,
|
|
640
633
|
currentUser
|
|
641
634
|
})
|
|
@@ -648,20 +641,18 @@ const useCustomizeRequestActionProps = ()=>{
|
|
|
648
641
|
...requestBody
|
|
649
642
|
});
|
|
650
643
|
actionField.data.loading = false;
|
|
651
|
-
if (!(resource instanceof
|
|
644
|
+
if (!(resource instanceof TableFieldResource)) {
|
|
652
645
|
var __parent_service_refresh, __parent_service;
|
|
653
|
-
null == __parent || null
|
|
646
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
654
647
|
}
|
|
655
|
-
null == service || null
|
|
648
|
+
null == service || null == (_service_refresh = service.refresh) || _service_refresh.call(service);
|
|
656
649
|
if ('customize:form:request' === xAction) null == setVisible || setVisible(false);
|
|
657
650
|
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
658
651
|
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
659
652
|
title: compile(null == onSuccess ? void 0 : onSuccess.successMessage),
|
|
660
653
|
onOk: async ()=>{
|
|
661
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
662
|
-
|
|
663
|
-
else navigate(onSuccess.redirectTo);
|
|
664
|
-
}
|
|
654
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
655
|
+
else navigate(onSuccess.redirectTo);
|
|
665
656
|
}
|
|
666
657
|
});
|
|
667
658
|
else message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
@@ -672,34 +663,34 @@ const useCustomizeRequestActionProps = ()=>{
|
|
|
672
663
|
};
|
|
673
664
|
};
|
|
674
665
|
const useUpdateActionProps = ()=>{
|
|
675
|
-
const form =
|
|
676
|
-
const filterByTk =
|
|
677
|
-
const { field, resource, __parent } =
|
|
678
|
-
const { setVisible } =
|
|
679
|
-
const actionSchema =
|
|
680
|
-
const navigate =
|
|
681
|
-
const { fields, getField, name } =
|
|
682
|
-
const compile =
|
|
683
|
-
const actionField =
|
|
684
|
-
const { updateAssociationValues } =
|
|
685
|
-
const { modal, message } =
|
|
686
|
-
const data =
|
|
687
|
-
const variables =
|
|
688
|
-
const localVariables =
|
|
666
|
+
const form = useForm();
|
|
667
|
+
const filterByTk = useFilterByTk();
|
|
668
|
+
const { field, resource, __parent } = useBlockRequestContext();
|
|
669
|
+
const { setVisible } = useActionContext();
|
|
670
|
+
const actionSchema = useFieldSchema();
|
|
671
|
+
const navigate = useNavigate();
|
|
672
|
+
const { fields, getField, name } = useCollection_deprecated();
|
|
673
|
+
const compile = useCompile();
|
|
674
|
+
const actionField = useField();
|
|
675
|
+
const { updateAssociationValues } = useFormBlockContext();
|
|
676
|
+
const { modal, message } = App.useApp();
|
|
677
|
+
const data = useParamsFromRecord();
|
|
678
|
+
const variables = useVariables();
|
|
679
|
+
const localVariables = useLocalVariables({
|
|
689
680
|
currentForm: form
|
|
690
681
|
});
|
|
691
|
-
const { getActiveFieldsName } =
|
|
682
|
+
const { getActiveFieldsName } = useFormActiveFields() || {};
|
|
692
683
|
return {
|
|
693
684
|
async onClick () {
|
|
694
685
|
var _actionSchema_xactionsettings;
|
|
695
|
-
const { assignedValues: originalAssignedValues = {}, onSuccess, overwriteValues, skipValidator, triggerWorkflows, isDeltaChanged } = null
|
|
686
|
+
const { assignedValues: originalAssignedValues = {}, onSuccess, overwriteValues, skipValidator, triggerWorkflows, isDeltaChanged } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
696
687
|
const assignedValues = {};
|
|
697
688
|
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
698
689
|
const value = originalAssignedValues[key];
|
|
699
690
|
const collectionField = getField(key);
|
|
700
|
-
if (
|
|
691
|
+
if (isVariable(value)) {
|
|
701
692
|
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
702
|
-
if (result) assignedValues[key] =
|
|
693
|
+
if (result) assignedValues[key] = transformVariableValue(result, {
|
|
703
694
|
targetCollectionField: collectionField
|
|
704
695
|
});
|
|
705
696
|
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
@@ -743,25 +734,21 @@ const useUpdateActionProps = ()=>{
|
|
|
743
734
|
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
744
735
|
});
|
|
745
736
|
actionField.data.loading = false;
|
|
746
|
-
null == __parent || null
|
|
737
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
747
738
|
null == setVisible || setVisible(false);
|
|
748
739
|
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
749
740
|
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
750
741
|
title: compile(null == onSuccess ? void 0 : onSuccess.successMessage),
|
|
751
742
|
onOk: async ()=>{
|
|
752
743
|
await form.reset();
|
|
753
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
754
|
-
|
|
755
|
-
else navigate(onSuccess.redirectTo);
|
|
756
|
-
}
|
|
744
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
745
|
+
else navigate(onSuccess.redirectTo);
|
|
757
746
|
}
|
|
758
747
|
});
|
|
759
748
|
else {
|
|
760
749
|
message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
761
|
-
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo))
|
|
762
|
-
|
|
763
|
-
else navigate(onSuccess.redirectTo);
|
|
764
|
-
}
|
|
750
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) if (isURL(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
751
|
+
else navigate(onSuccess.redirectTo);
|
|
765
752
|
}
|
|
766
753
|
} catch (error) {
|
|
767
754
|
actionField.data.loading = false;
|
|
@@ -770,44 +757,44 @@ const useUpdateActionProps = ()=>{
|
|
|
770
757
|
};
|
|
771
758
|
};
|
|
772
759
|
const useDestroyActionProps = ()=>{
|
|
773
|
-
const filterByTk =
|
|
774
|
-
const { resource, service, block, __parent } =
|
|
775
|
-
const { setVisible } =
|
|
776
|
-
const data =
|
|
777
|
-
const actionSchema =
|
|
760
|
+
const filterByTk = useFilterByTk();
|
|
761
|
+
const { resource, service, block, __parent } = useBlockRequestContext();
|
|
762
|
+
const { setVisible } = useActionContext();
|
|
763
|
+
const data = useParamsFromRecord();
|
|
764
|
+
const actionSchema = useFieldSchema();
|
|
778
765
|
return {
|
|
779
766
|
async onClick () {
|
|
780
767
|
var _service_data;
|
|
781
768
|
var _actionSchema_xactionsettings;
|
|
782
|
-
const { triggerWorkflows } = null
|
|
769
|
+
const { triggerWorkflows } = null != (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) ? _actionSchema_xactionsettings : {};
|
|
783
770
|
await resource.destroy({
|
|
784
771
|
filterByTk,
|
|
785
772
|
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
786
773
|
beforeWorkflows: getBeforeWorkflows(triggerWorkflows),
|
|
787
774
|
...data
|
|
788
775
|
});
|
|
789
|
-
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null
|
|
776
|
+
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null == (_service_data = service.data) ? void 0 : _service_data.meta) || {};
|
|
790
777
|
if (count % pageSize === 1 && 1 !== page) {
|
|
791
778
|
var _service_params;
|
|
792
779
|
service.run({
|
|
793
|
-
...null == service ? void 0 : null
|
|
780
|
+
...null == service ? void 0 : null == (_service_params = service.params) ? void 0 : _service_params[0],
|
|
794
781
|
page: page - 1
|
|
795
782
|
});
|
|
796
783
|
} else {
|
|
797
784
|
var _service_refresh;
|
|
798
|
-
null == service || null
|
|
785
|
+
null == service || null == (_service_refresh = service.refresh) || _service_refresh.call(service);
|
|
799
786
|
}
|
|
800
787
|
if (block && 'TableField' !== block) {
|
|
801
788
|
var __parent_service_refresh, __parent_service;
|
|
802
|
-
null == __parent || null
|
|
789
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
803
790
|
null == setVisible || setVisible(false);
|
|
804
791
|
}
|
|
805
792
|
}
|
|
806
793
|
};
|
|
807
794
|
};
|
|
808
795
|
const useRemoveActionProps = (associationName)=>{
|
|
809
|
-
const filterByTk =
|
|
810
|
-
const api =
|
|
796
|
+
const filterByTk = useFilterByTk();
|
|
797
|
+
const api = useAPIClient();
|
|
811
798
|
const resource = api.resource(associationName, filterByTk);
|
|
812
799
|
return {
|
|
813
800
|
async onClick (value) {
|
|
@@ -820,9 +807,9 @@ const useRemoveActionProps = (associationName)=>{
|
|
|
820
807
|
};
|
|
821
808
|
};
|
|
822
809
|
const useDisassociateActionProps = ()=>{
|
|
823
|
-
const filterByTk =
|
|
824
|
-
const { resource, service, block, __parent } =
|
|
825
|
-
const { setVisible } =
|
|
810
|
+
const filterByTk = useFilterByTk();
|
|
811
|
+
const { resource, service, block, __parent } = useBlockRequestContext();
|
|
812
|
+
const { setVisible } = useActionContext();
|
|
826
813
|
return {
|
|
827
814
|
async onClick () {
|
|
828
815
|
var _service_data;
|
|
@@ -831,28 +818,28 @@ const useDisassociateActionProps = ()=>{
|
|
|
831
818
|
filterByTk
|
|
832
819
|
]
|
|
833
820
|
});
|
|
834
|
-
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null
|
|
821
|
+
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null == (_service_data = service.data) ? void 0 : _service_data.meta) || {};
|
|
835
822
|
if (count % pageSize === 1 && 1 !== page) {
|
|
836
823
|
var _service_params;
|
|
837
824
|
service.run({
|
|
838
|
-
...null == service ? void 0 : null
|
|
825
|
+
...null == service ? void 0 : null == (_service_params = service.params) ? void 0 : _service_params[0],
|
|
839
826
|
page: page - 1
|
|
840
827
|
});
|
|
841
828
|
} else {
|
|
842
829
|
var _service_refresh;
|
|
843
|
-
null == service || null
|
|
830
|
+
null == service || null == (_service_refresh = service.refresh) || _service_refresh.call(service);
|
|
844
831
|
}
|
|
845
832
|
if (block && 'TableField' !== block) {
|
|
846
833
|
var __parent_service_refresh, __parent_service;
|
|
847
|
-
null == __parent || null
|
|
834
|
+
null == __parent || null == (__parent_service = __parent.service) || null == (__parent_service_refresh = __parent_service.refresh) || __parent_service_refresh.call(__parent_service);
|
|
848
835
|
null == setVisible || setVisible(false);
|
|
849
836
|
}
|
|
850
837
|
}
|
|
851
838
|
};
|
|
852
839
|
};
|
|
853
840
|
const useDetailPrintActionProps = ()=>{
|
|
854
|
-
const { formBlockRef } =
|
|
855
|
-
const printHandler =
|
|
841
|
+
const { formBlockRef } = useFormBlockContext();
|
|
842
|
+
const printHandler = useReactToPrint({
|
|
856
843
|
content: ()=>formBlockRef.current,
|
|
857
844
|
pageStyle: "@media print {\n * {\n margin: 0;\n }\n :not(.ant-formily-item-control-content-component) > div.ant-formily-layout>div:first-child {\n overflow: hidden; height: 0;\n }\n }"
|
|
858
845
|
});
|
|
@@ -863,46 +850,46 @@ const useDetailPrintActionProps = ()=>{
|
|
|
863
850
|
};
|
|
864
851
|
};
|
|
865
852
|
const useBulkDestroyActionProps = ()=>{
|
|
866
|
-
const { field } =
|
|
867
|
-
const { resource, service } =
|
|
853
|
+
const { field } = useBlockRequestContext();
|
|
854
|
+
const { resource, service } = useBlockRequestContext();
|
|
868
855
|
return {
|
|
869
856
|
async onClick () {
|
|
870
857
|
var _field_data_selectedRowKeys, _field_data, _field_data1, _service_params_, _service_data_meta, _service_data, _service_refresh;
|
|
871
|
-
if (!(null == field ? void 0 : null
|
|
858
|
+
if (!(null == field ? void 0 : null == (_field_data = field.data) ? void 0 : null == (_field_data_selectedRowKeys = _field_data.selectedRowKeys) ? void 0 : _field_data_selectedRowKeys.length)) return;
|
|
872
859
|
await resource.destroy({
|
|
873
|
-
filterByTk: null
|
|
860
|
+
filterByTk: null == (_field_data1 = field.data) ? void 0 : _field_data1.selectedRowKeys
|
|
874
861
|
});
|
|
875
862
|
field.data.selectedRowKeys = [];
|
|
876
|
-
const currentPage = null
|
|
877
|
-
const totalPage = null
|
|
863
|
+
const currentPage = null == (_service_params_ = service.params[0]) ? void 0 : _service_params_.page;
|
|
864
|
+
const totalPage = null == (_service_data = service.data) ? void 0 : null == (_service_data_meta = _service_data.meta) ? void 0 : _service_data_meta.totalPage;
|
|
878
865
|
if (currentPage === totalPage) service.params[0].page = currentPage - 1;
|
|
879
|
-
null == service || null
|
|
866
|
+
null == service || null == (_service_refresh = service.refresh) || _service_refresh.call(service);
|
|
880
867
|
}
|
|
881
868
|
};
|
|
882
869
|
};
|
|
883
870
|
const useRefreshActionProps = ()=>{
|
|
884
|
-
const { service } =
|
|
871
|
+
const { service } = useBlockRequestContext();
|
|
885
872
|
return {
|
|
886
873
|
async onClick () {
|
|
887
874
|
var _service_refresh;
|
|
888
|
-
null == service || null
|
|
875
|
+
null == service || null == (_service_refresh = service.refresh) || _service_refresh.call(service);
|
|
889
876
|
}
|
|
890
877
|
};
|
|
891
878
|
};
|
|
892
879
|
const useDetailsPaginationProps = ()=>{
|
|
893
880
|
var _ctx_service_data_meta, _ctx_service_data, _ctx_service, _ctx_service_data_meta1, _ctx_service_data1, _ctx_service1;
|
|
894
|
-
const ctx =
|
|
895
|
-
const count = (null
|
|
881
|
+
const ctx = useDetailsBlockContext();
|
|
882
|
+
const count = (null == (_ctx_service = ctx.service) ? void 0 : null == (_ctx_service_data = _ctx_service.data) ? void 0 : null == (_ctx_service_data_meta = _ctx_service_data.meta) ? void 0 : _ctx_service_data_meta.count) || 0;
|
|
896
883
|
return {
|
|
897
884
|
simple: true,
|
|
898
885
|
hidden: count <= 1,
|
|
899
|
-
current: (null
|
|
886
|
+
current: (null == (_ctx_service1 = ctx.service) ? void 0 : null == (_ctx_service_data1 = _ctx_service1.data) ? void 0 : null == (_ctx_service_data_meta1 = _ctx_service_data1.meta) ? void 0 : _ctx_service_data_meta1.page) || 1,
|
|
900
887
|
total: count,
|
|
901
888
|
pageSize: 1,
|
|
902
889
|
showSizeChanger: false,
|
|
903
890
|
async onChange (page) {
|
|
904
891
|
var _ctx_service_params, _ctx_service;
|
|
905
|
-
const params = null
|
|
892
|
+
const params = null == (_ctx_service = ctx.service) ? void 0 : null == (_ctx_service_params = _ctx_service.params) ? void 0 : _ctx_service_params[0];
|
|
906
893
|
ctx.service.run({
|
|
907
894
|
...params,
|
|
908
895
|
page
|
|
@@ -916,16 +903,16 @@ const useDetailsPaginationProps = ()=>{
|
|
|
916
903
|
};
|
|
917
904
|
const useAssociationFilterProps = ()=>{
|
|
918
905
|
var _cm_getCollection, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops, _field_componentProps, _field_componentProps1;
|
|
919
|
-
const collectionField =
|
|
920
|
-
const { service, props: blockProps } =
|
|
921
|
-
const fieldSchema =
|
|
922
|
-
const cm =
|
|
923
|
-
const valueKey = (null == collectionField ? void 0 : collectionField.target) ? null
|
|
924
|
-
const labelKey = (null
|
|
925
|
-
const field =
|
|
906
|
+
const collectionField = AssociationFilter.useAssociationField();
|
|
907
|
+
const { service, props: blockProps } = useBlockRequestContext();
|
|
908
|
+
const fieldSchema = useFieldSchema();
|
|
909
|
+
const cm = useCollectionManager_deprecated();
|
|
910
|
+
const valueKey = (null == collectionField ? void 0 : collectionField.target) ? null == (_cm_getCollection = cm.getCollection(collectionField.target)) ? void 0 : _cm_getCollection.getPrimaryKey() : 'id';
|
|
911
|
+
const labelKey = (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : null == (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) ? void 0 : _fieldSchema_xcomponentprops_fieldNames.label) || valueKey;
|
|
912
|
+
const field = useField();
|
|
926
913
|
const collectionFieldName = collectionField.name;
|
|
927
|
-
const headers =
|
|
928
|
-
const { data, params, run } =
|
|
914
|
+
const headers = useDataSourceHeaders(null == blockProps ? void 0 : blockProps.dataSource);
|
|
915
|
+
const { data, params, run } = useRequest({
|
|
929
916
|
headers,
|
|
930
917
|
resource: collectionField.target,
|
|
931
918
|
action: 'list',
|
|
@@ -936,31 +923,31 @@ const useAssociationFilterProps = ()=>{
|
|
|
936
923
|
],
|
|
937
924
|
pageSize: 200,
|
|
938
925
|
page: 1,
|
|
939
|
-
...null
|
|
926
|
+
...null == (_field_componentProps = field.componentProps) ? void 0 : _field_componentProps.params
|
|
940
927
|
}
|
|
941
928
|
}, {
|
|
942
929
|
refreshDeps: [
|
|
943
930
|
labelKey,
|
|
944
931
|
valueKey,
|
|
945
|
-
JSON.stringify((null
|
|
932
|
+
JSON.stringify((null == (_field_componentProps1 = field.componentProps) ? void 0 : _field_componentProps1.params) || {})
|
|
946
933
|
],
|
|
947
934
|
debounceWait: 300
|
|
948
935
|
});
|
|
949
936
|
const list = (null == data ? void 0 : data.data) || [];
|
|
950
937
|
const onSelected = (value)=>{
|
|
951
938
|
var _service_params_, _service_params, _service_params1, _blockProps_params;
|
|
952
|
-
const filters = (null
|
|
939
|
+
const filters = (null == (_service_params = service.params) ? void 0 : null == (_service_params_ = _service_params[1]) ? void 0 : _service_params_.filters) || {};
|
|
953
940
|
if (value.length) filters["af.".concat(collectionFieldName)] = {
|
|
954
941
|
["".concat(collectionFieldName, ".").concat(valueKey, ".$in")]: value
|
|
955
942
|
};
|
|
956
943
|
else delete filters["af.".concat(collectionFieldName)];
|
|
957
944
|
service.run({
|
|
958
|
-
...null
|
|
945
|
+
...null == (_service_params1 = service.params) ? void 0 : _service_params1[0],
|
|
959
946
|
pageSize: 200,
|
|
960
947
|
page: 1,
|
|
961
|
-
filter: (
|
|
948
|
+
filter: utils_mjs_mergeFilter([
|
|
962
949
|
...Object.values(filters),
|
|
963
|
-
null == blockProps ? void 0 : null
|
|
950
|
+
null == blockProps ? void 0 : null == (_blockProps_params = blockProps.params) ? void 0 : _blockProps_params.filter
|
|
964
951
|
])
|
|
965
952
|
}, {
|
|
966
953
|
filters
|
|
@@ -983,7 +970,7 @@ const useAssociationFilterProps = ()=>{
|
|
|
983
970
|
};
|
|
984
971
|
};
|
|
985
972
|
const useOptionalFieldList = ()=>{
|
|
986
|
-
const { currentFields = [] } =
|
|
973
|
+
const { currentFields = [] } = useCollection_deprecated();
|
|
987
974
|
return currentFields.filter((field)=>isOptionalField(field) && field.uiSchema.enum);
|
|
988
975
|
};
|
|
989
976
|
const isOptionalField = (field)=>{
|
|
@@ -998,19 +985,19 @@ const isOptionalField = (field)=>{
|
|
|
998
985
|
};
|
|
999
986
|
const useAssociationFilterBlockProps = ()=>{
|
|
1000
987
|
var _cm_getCollection, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops, _field_componentProps, _field_componentProps1;
|
|
1001
|
-
const collectionField =
|
|
1002
|
-
const fieldSchema =
|
|
988
|
+
const collectionField = AssociationFilter.useAssociationField();
|
|
989
|
+
const fieldSchema = useFieldSchema();
|
|
1003
990
|
const optionalFieldList = useOptionalFieldList();
|
|
1004
|
-
const { getDataBlocks } =
|
|
991
|
+
const { getDataBlocks } = useFilterBlock();
|
|
1005
992
|
const collectionFieldName = null == collectionField ? void 0 : collectionField.name;
|
|
1006
|
-
const field =
|
|
1007
|
-
const { props: blockProps } =
|
|
1008
|
-
const headers =
|
|
1009
|
-
const cm =
|
|
993
|
+
const field = useField();
|
|
994
|
+
const { props: blockProps } = useBlockRequestContext();
|
|
995
|
+
const headers = useDataSourceHeaders(null == blockProps ? void 0 : blockProps.dataSource);
|
|
996
|
+
const cm = useCollectionManager_deprecated();
|
|
1010
997
|
let list, handleSearchInput, params, run, data, valueKey, labelKey, filterKey;
|
|
1011
|
-
valueKey = (null == collectionField ? void 0 : collectionField.target) ? null
|
|
1012
|
-
labelKey = (null
|
|
1013
|
-
({ data, params, run } =
|
|
998
|
+
valueKey = (null == collectionField ? void 0 : collectionField.target) ? null == (_cm_getCollection = cm.getCollection(collectionField.target)) ? void 0 : _cm_getCollection.getPrimaryKey() : 'id';
|
|
999
|
+
labelKey = (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : null == (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) ? void 0 : _fieldSchema_xcomponentprops_fieldNames.label) || valueKey;
|
|
1000
|
+
({ data, params, run } = useRequest({
|
|
1014
1001
|
headers,
|
|
1015
1002
|
resource: null == collectionField ? void 0 : collectionField.target,
|
|
1016
1003
|
action: 'list',
|
|
@@ -1021,18 +1008,18 @@ const useAssociationFilterBlockProps = ()=>{
|
|
|
1021
1008
|
],
|
|
1022
1009
|
pageSize: 200,
|
|
1023
1010
|
page: 1,
|
|
1024
|
-
...null
|
|
1011
|
+
...null == (_field_componentProps = field.componentProps) ? void 0 : _field_componentProps.params
|
|
1025
1012
|
}
|
|
1026
1013
|
}, {
|
|
1027
1014
|
manual: true,
|
|
1028
1015
|
debounceWait: 300
|
|
1029
1016
|
}));
|
|
1030
|
-
|
|
1017
|
+
useEffect(()=>{
|
|
1031
1018
|
if (!isOptionalField(fieldSchema)) run();
|
|
1032
1019
|
}, [
|
|
1033
1020
|
labelKey,
|
|
1034
1021
|
valueKey,
|
|
1035
|
-
JSON.stringify((null
|
|
1022
|
+
JSON.stringify((null == (_field_componentProps1 = field.componentProps) ? void 0 : _field_componentProps1.params) || {}),
|
|
1036
1023
|
isOptionalField(fieldSchema)
|
|
1037
1024
|
]);
|
|
1038
1025
|
if (!collectionField) return {};
|
|
@@ -1045,7 +1032,7 @@ const useAssociationFilterBlockProps = ()=>{
|
|
|
1045
1032
|
checkbox: '$in',
|
|
1046
1033
|
checkboxGroup: '$anyOf'
|
|
1047
1034
|
};
|
|
1048
|
-
const _list = (null == field ? void 0 : null
|
|
1035
|
+
const _list = (null == field ? void 0 : null == (_field_uiSchema = field.uiSchema) ? void 0 : _field_uiSchema.enum) || [];
|
|
1049
1036
|
valueKey = 'value';
|
|
1050
1037
|
labelKey = 'label';
|
|
1051
1038
|
list = _list;
|
|
@@ -1079,8 +1066,8 @@ const useAssociationFilterBlockProps = ()=>{
|
|
|
1079
1066
|
const target = targets.find((target)=>target.uid === block.uid);
|
|
1080
1067
|
if (!target) return;
|
|
1081
1068
|
const key = "".concat(uid).concat(fieldSchema.name);
|
|
1082
|
-
const param = (null
|
|
1083
|
-
const storedFilter = (null
|
|
1069
|
+
const param = (null == (_block_service_params = block.service.params) ? void 0 : _block_service_params[0]) || {};
|
|
1070
|
+
const storedFilter = (null == (_block_service_params1 = block.service.params) ? void 0 : null == (_block_service_params_ = _block_service_params1[1]) ? void 0 : _block_service_params_.filters) || {};
|
|
1084
1071
|
if (value.length) storedFilter[key] = {
|
|
1085
1072
|
[filterKey]: value
|
|
1086
1073
|
};
|
|
@@ -1088,7 +1075,7 @@ const useAssociationFilterBlockProps = ()=>{
|
|
|
1088
1075
|
if ('manual' === block.dataLoadingMode) return block.clearData();
|
|
1089
1076
|
delete storedFilter[key];
|
|
1090
1077
|
}
|
|
1091
|
-
const mergedFilter = (
|
|
1078
|
+
const mergedFilter = utils_mjs_mergeFilter([
|
|
1092
1079
|
...Object.values(storedFilter),
|
|
1093
1080
|
block.defaultFilter
|
|
1094
1081
|
]);
|
|
@@ -1119,8 +1106,8 @@ function getAssociationPath(str) {
|
|
|
1119
1106
|
const useAssociationNames = (dataSource)=>{
|
|
1120
1107
|
let updateAssociationValues = new Set([]);
|
|
1121
1108
|
let appends = new Set([]);
|
|
1122
|
-
const { getCollectionJoinField, getCollection } =
|
|
1123
|
-
const fieldSchema =
|
|
1109
|
+
const { getCollectionJoinField, getCollection } = useCollectionManager_deprecated(dataSource);
|
|
1110
|
+
const fieldSchema = useFieldSchema();
|
|
1124
1111
|
const _getAssociationAppends = (schema, str)=>{
|
|
1125
1112
|
schema.reduceProperties((pre, s)=>{
|
|
1126
1113
|
var _s_xcomponentprops, _s_xcomponentprops_fieldNames, _s_xcomponentprops1, _s_xcomponentprops2, _getCollection;
|
|
@@ -1133,17 +1120,17 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1133
1120
|
'belongsTo',
|
|
1134
1121
|
'belongsToMany'
|
|
1135
1122
|
].includes(collectionField.type);
|
|
1136
|
-
if (null
|
|
1123
|
+
if (null == (_s_xcomponentprops = s['x-component-props']) ? void 0 : _s_xcomponentprops['appends']) {
|
|
1137
1124
|
var _s_xcomponentprops3;
|
|
1138
|
-
|
|
1125
|
+
lodash.forEach(null == (_s_xcomponentprops3 = s['x-component-props']) ? void 0 : _s_xcomponentprops3['appends'], (append)=>{
|
|
1139
1126
|
appends.add(append);
|
|
1140
1127
|
});
|
|
1141
1128
|
}
|
|
1142
|
-
if (null
|
|
1129
|
+
if (null == (_s_xcomponentprops1 = s['x-component-props']) ? void 0 : null == (_s_xcomponentprops_fieldNames = _s_xcomponentprops1.fieldNames) ? void 0 : _s_xcomponentprops_fieldNames.formula) {
|
|
1143
1130
|
var _s_xcomponentprops_fieldNames1, _s_xcomponentprops4;
|
|
1144
1131
|
appends.add(s['name']);
|
|
1145
1132
|
const regex = /{{(.*?)}}/g;
|
|
1146
|
-
const formula = null
|
|
1133
|
+
const formula = null == (_s_xcomponentprops4 = s['x-component-props']) ? void 0 : null == (_s_xcomponentprops_fieldNames1 = _s_xcomponentprops4.fieldNames) ? void 0 : _s_xcomponentprops_fieldNames1.formula;
|
|
1147
1134
|
let match;
|
|
1148
1135
|
while(match = regex.exec(formula))if (match[1].includes('.')) {
|
|
1149
1136
|
const matchList = match[1].split('.');
|
|
@@ -1171,13 +1158,13 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1171
1158
|
collectAppends(condition);
|
|
1172
1159
|
});
|
|
1173
1160
|
}
|
|
1174
|
-
if (null
|
|
1161
|
+
if (null == (_s_xcomponentprops2 = s['x-component-props']) ? void 0 : _s_xcomponentprops2['x-next-title']) {
|
|
1175
1162
|
const pre = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
|
|
1176
1163
|
const title = s['x-component-props']['x-next-title'];
|
|
1177
1164
|
const path = pre + '.' + title.label;
|
|
1178
1165
|
appends.add(path);
|
|
1179
1166
|
}
|
|
1180
|
-
const isTreeCollection = isAssociationField && (null
|
|
1167
|
+
const isTreeCollection = isAssociationField && (null == (_getCollection = getCollection(collectionField.target, dataSource)) ? void 0 : _getCollection.template) === 'tree';
|
|
1181
1168
|
if (collectionField && (isAssociationField || isAssociationSubfield) && 'TableField' !== s['x-component']) {
|
|
1182
1169
|
var _s_xcomponentprops5;
|
|
1183
1170
|
const fieldPath = !isAssociationField && isAssociationSubfield ? getAssociationPath(s.name) : s.name;
|
|
@@ -1190,7 +1177,7 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1190
1177
|
'Nester',
|
|
1191
1178
|
'SubTable',
|
|
1192
1179
|
'PopoverNester'
|
|
1193
|
-
].includes(null
|
|
1180
|
+
].includes(null == (_s_xcomponentprops5 = s['x-component-props']) ? void 0 : _s_xcomponentprops5.mode)) {
|
|
1194
1181
|
updateAssociationValues.add(path);
|
|
1195
1182
|
const bufPrefix = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
|
|
1196
1183
|
_getAssociationAppends(s, bufPrefix);
|
|
@@ -1239,16 +1226,16 @@ function getTargetField(obj) {
|
|
|
1239
1226
|
return keys;
|
|
1240
1227
|
}
|
|
1241
1228
|
const keys = getAllKeys(obj);
|
|
1242
|
-
const index =
|
|
1229
|
+
const index = lodash.findIndex(keys, (key, index)=>{
|
|
1243
1230
|
if (key.includes('$') && index > 0) return true;
|
|
1244
1231
|
});
|
|
1245
1232
|
const result = keys.slice(0, index);
|
|
1246
1233
|
return result;
|
|
1247
1234
|
}
|
|
1248
1235
|
async function resetFormCorrectly(form) {
|
|
1249
|
-
|
|
1236
|
+
untracked(()=>{
|
|
1250
1237
|
Object.keys(form.fields).forEach((key)=>{
|
|
1251
|
-
if (
|
|
1238
|
+
if (isSubMode(form.fields[key])) form.fields[key].initialValue = null;
|
|
1252
1239
|
});
|
|
1253
1240
|
});
|
|
1254
1241
|
await form.reset();
|