@tachybase/client 0.23.8 → 0.23.14
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 +131 -0
- package/es/api-client/APIClientProvider.mjs +11 -0
- package/es/api-client/__tests__/APIClient.test.mjs +55 -0
- package/es/api-client/context.mjs +5 -0
- package/es/api-client/demos/demo1.mjs +32 -0
- package/es/api-client/demos/demo2.mjs +31 -0
- package/es/api-client/demos/demo3.mjs +74 -0
- package/es/api-client/hooks/assign.mjs +61 -0
- package/es/api-client/hooks/index.mjs +3 -0
- package/es/api-client/hooks/useAPIClient.mjs +6 -0
- package/es/api-client/hooks/useRequest.mjs +38 -0
- package/es/api-client/hooks/useResource.mjs +6 -0
- package/es/api-client/index.mjs +4 -0
- package/es/application/AppSchemaComponentProvider.mjs +29 -0
- package/es/application/Application.mjs +312 -0
- package/es/application/AttachmentPreviewManager.mjs +31 -0
- package/es/application/NoticesManager.mjs +99 -0
- package/es/application/Plugin.mjs +60 -0
- package/es/application/PluginContextMenu.mjs +29 -0
- package/es/application/PluginManager.mjs +83 -0
- package/es/application/RouterManager.mjs +101 -0
- package/es/application/SystemSettingsManager.mjs +108 -0
- package/es/application/UserSettingsManager.mjs +110 -0
- package/es/application/WebSocketClient.mjs +156 -0
- package/es/application/__tests__/Application.test.mjs +481 -0
- package/es/application/__tests__/Plugin.test.mjs +197 -0
- package/es/application/__tests__/PluginSettingsManager.test.mjs +156 -0
- package/es/application/__tests__/RouterManager.test.mjs +311 -0
- package/es/application/__tests__/SchemaInitializer.test.mjs +163 -0
- package/es/application/__tests__/SchemaToolbar.test.mjs +143 -0
- package/es/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +187 -0
- package/es/application/__tests__/hooks.test.mjs +85 -0
- package/es/application/__tests__/utils/remotePlugins.test.mjs +318 -0
- package/es/application/__tests__/utils.test.mjs +99 -0
- package/es/application/components/AppComponent.mjs +55 -0
- package/es/application/components/BlankComponent.mjs +9 -0
- package/es/application/components/MainComponent.mjs +17 -0
- package/es/application/components/RouterContextCleaner.mjs +16 -0
- package/es/application/components/defaultComponents.mjs +25 -0
- package/es/application/components/index.mjs +4 -0
- package/es/application/context.mjs +4 -0
- package/es/application/demos/demo1.mjs +110 -0
- package/es/application/demos/demo2.mjs +126 -0
- package/es/application/demos/demo3.mjs +11 -0
- package/es/application/hoc/index.mjs +1 -0
- package/es/application/hoc/withDynamicSchemaProps.mjs +115 -0
- package/es/application/hooks/index.mjs +3 -0
- package/es/application/hooks/useApp.mjs +4 -0
- package/es/application/hooks/usePlugin.mjs +6 -0
- package/es/application/hooks/useRouter.mjs +6 -0
- package/es/application/index.mjs +17 -0
- package/es/application/schema-initializer/SchemaInitializer.mjs +76 -0
- package/es/application/schema-initializer/SchemaInitializerManager.mjs +72 -0
- package/es/application/schema-initializer/components/SchemaInitializerActionModal.mjs +110 -0
- package/es/application/schema-initializer/components/SchemaInitializerButton.mjs +39 -0
- package/es/application/schema-initializer/components/SchemaInitializerChildren.mjs +69 -0
- package/es/application/schema-initializer/components/SchemaInitializerDivider.mjs +13 -0
- package/es/application/schema-initializer/components/SchemaInitializerItem.mjs +89 -0
- package/es/application/schema-initializer/components/SchemaInitializerItemGroup.mjs +36 -0
- package/es/application/schema-initializer/components/SchemaInitializerItems.mjs +11 -0
- package/es/application/schema-initializer/components/SchemaInitializerSelect.mjs +63 -0
- package/es/application/schema-initializer/components/SchemaInitializerSubMenu.mjs +105 -0
- package/es/application/schema-initializer/components/SchemaInitializerSwitch.mjs +38 -0
- package/es/application/schema-initializer/components/index.mjs +10 -0
- package/es/application/schema-initializer/components/style.mjs +41 -0
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/application/schema-initializer/context/index.mjs +8 -0
- package/es/application/schema-initializer/hoc/index.mjs +117 -0
- package/es/application/schema-initializer/hooks/index.mjs +153 -0
- package/es/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.mjs +17 -0
- package/es/application/schema-initializer/index.mjs +7 -0
- package/es/application/schema-initializer/types.mjs +0 -0
- package/es/application/schema-settings/SchemaSettings.mjs +71 -0
- package/es/application/schema-settings/SchemaSettingsDefaults.mjs +215 -0
- package/es/application/schema-settings/SchemaSettingsManager.mjs +72 -0
- package/es/application/schema-settings/components/SchemaSettingsChildren.mjs +90 -0
- package/es/application/schema-settings/components/SchemaSettingsIcon.mjs +19 -0
- package/es/application/schema-settings/components/SchemaSettingsWrapper.mjs +33 -0
- package/es/application/schema-settings/components/index.mjs +2 -0
- package/es/application/schema-settings/context/index.mjs +7 -0
- package/es/application/schema-settings/hooks/index.mjs +44 -0
- package/es/application/schema-settings/index.mjs +6 -0
- package/es/application/schema-settings/types.mjs +0 -0
- package/es/application/schema-toolbar/context/index.mjs +15 -0
- package/es/application/schema-toolbar/hooks/index.mjs +25 -0
- package/es/application/schema-toolbar/index.mjs +2 -0
- package/es/application/utils/globalDeps.mjs +60 -0
- package/es/application/utils/index.mjs +39 -0
- package/es/application/utils/remotePlugins.mjs +102 -0
- package/es/async-data-provider/index.mjs +21 -0
- package/es/block-provider/BlockProvider.mjs +308 -0
- package/es/block-provider/DetailsBlockProvider.mjs +98 -0
- package/es/block-provider/FilterFormBlockProvider.mjs +19 -0
- package/es/block-provider/FormBlockProvider.mjs +166 -0
- package/es/block-provider/FormFieldProvider.mjs +84 -0
- package/es/block-provider/MobileProvider.mjs +15 -0
- package/es/block-provider/PageLayout.mjs +9 -0
- package/es/block-provider/TableBlockProvider.mjs +110 -0
- package/es/block-provider/TableFieldProvider.mjs +163 -0
- package/es/block-provider/TableSelectorProvider.mjs +285 -0
- package/es/block-provider/TreeBlockProvider.mjs +117 -0
- package/es/block-provider/hooks/index.mjs +1206 -0
- package/es/block-provider/hooks/useDataBlockSourceId.mjs +14 -0
- package/es/block-provider/hooks/useFormActiveFields.mjs +34 -0
- package/es/block-provider/hooks/useIsMobile.mjs +7 -0
- package/es/block-provider/hooks/useParsedFilter.mjs +48 -0
- package/es/block-provider/index.mjs +11 -0
- package/es/built-in/acl/ACLPlugin.d.ts +4 -0
- package/es/built-in/acl/ACLPlugin.mjs +13 -0
- package/es/built-in/acl/ACLProvider.mjs +280 -0
- package/es/built-in/acl/ACLShortcut.mjs +23 -0
- package/es/built-in/acl/Configuration/ConfigureCenter.mjs +123 -0
- package/es/built-in/acl/Configuration/MenuConfigure.mjs +147 -0
- package/es/built-in/acl/Configuration/MenuItemsProvider.mjs +40 -0
- package/es/built-in/acl/Configuration/PermisionProvider.mjs +69 -0
- package/es/built-in/acl/Configuration/RoleConfigure.mjs +127 -0
- package/es/built-in/acl/Configuration/RoleTable.mjs +40 -0
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +216 -0
- package/es/built-in/acl/Configuration/ScopeSelect.mjs +41 -0
- package/es/built-in/acl/Configuration/StrategyActions.mjs +109 -0
- package/es/built-in/acl/Configuration/index.mjs +17 -0
- package/es/built-in/acl/Configuration/schemas/roles.mjs +395 -0
- package/es/built-in/acl/Configuration/schemas/scopes.mjs +362 -0
- package/es/built-in/acl/Configuration/schemas/useRoleResourceValues.mjs +35 -0
- package/es/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.mjs +23 -0
- package/es/built-in/acl/index.d.ts +1 -4
- package/es/built-in/acl/index.mjs +4 -0
- package/es/built-in/acl/style.mjs +23 -0
- package/es/built-in/admin-layout/AdminContent.mjs +13 -0
- package/es/built-in/admin-layout/AdminLayout.d.ts +2 -0
- package/es/built-in/admin-layout/AdminLayout.mjs +14 -0
- package/es/built-in/admin-layout/AdminLayoutPlugin.d.ts +5 -0
- package/es/built-in/admin-layout/AdminLayoutPlugin.mjs +14 -0
- package/es/built-in/admin-layout/AdminProvider.d.ts +2 -0
- package/es/built-in/admin-layout/AdminProvider.mjs +22 -0
- package/es/built-in/admin-layout/AdminTabs.mjs +9 -0
- package/es/built-in/admin-layout/InternalAdminLayout.d.ts +2 -0
- package/es/built-in/admin-layout/InternalAdminLayout.mjs +82 -0
- package/es/built-in/admin-layout/MenuEditor.d.ts +7 -0
- package/es/built-in/admin-layout/MenuEditor.mjs +114 -0
- package/es/built-in/admin-layout/NoticeArea.mjs +16 -0
- package/es/built-in/admin-layout/components/AddNewButton.mjs +55 -0
- package/es/built-in/admin-layout/components/WelcomeCard.mjs +81 -0
- package/es/built-in/admin-layout/filterByACL.d.ts +1 -0
- package/es/built-in/admin-layout/filterByACL.mjs +15 -0
- package/es/built-in/admin-layout/index.d.ts +8 -10
- package/es/built-in/admin-layout/index.mjs +9 -0
- package/es/built-in/admin-layout/style.mjs +142 -0
- package/es/built-in/assistant/Assistant.provider.mjs +77 -0
- package/es/built-in/assistant/ai-chat/index.mjs +330 -0
- package/es/built-in/assistant/ai-chat/index.module.mjs +30 -0
- package/es/built-in/assistant/ai-chat/index_module.css +257 -0
- package/es/built-in/assistant/calculator/AutoScalingText.mjs +33 -0
- package/es/built-in/assistant/calculator/Calculator.mjs +235 -0
- package/es/built-in/assistant/calculator/CalculatorDisplay.mjs +21 -0
- package/es/built-in/assistant/calculator/CalculatorKey.mjs +11 -0
- package/es/built-in/assistant/calculator/CalculatorProvider.mjs +29 -0
- package/es/built-in/assistant/calculator/Draggable.mjs +54 -0
- package/es/built-in/assistant/calculator/style.mjs +25 -0
- package/es/built-in/assistant/index.mjs +12 -0
- package/es/built-in/assistant/search-and-jump/index.mjs +59 -0
- package/es/built-in/attachment-preview/index.mjs +15 -0
- package/es/built-in/attachment-preview/interface.mjs +0 -0
- package/es/built-in/attachment-preview/previewers/file-default.mjs +83 -0
- package/es/built-in/attachment-preview/previewers/file-pdf.mjs +109 -0
- package/es/built-in/attachment-preview/previewers/file-pdf.style.mjs +45 -0
- package/es/built-in/attachment-preview/previewers/file-sheet.mjs +103 -0
- package/es/built-in/attachment-preview/previewers/file-sheet.style.mjs +45 -0
- package/es/built-in/attachment-preview/previewers/image-jpeg.mjs +34 -0
- package/es/built-in/attachment-preview/previewers/image-png.mjs +34 -0
- package/es/built-in/attachment-preview/previewers/image-svg.mjs +20 -0
- package/es/built-in/attachment-preview/previewers/index.mjs +6 -0
- package/es/built-in/block-schema-component/index.mjs +87 -0
- package/es/built-in/built-in-collections/index.mjs +59 -0
- package/es/built-in/context-menu/ContextMenu.provider.mjs +68 -0
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +146 -0
- package/es/built-in/context-menu/index.d.ts +2 -1
- package/es/built-in/context-menu/index.mjs +18 -0
- package/es/built-in/context-menu/useContextMenu.d.ts +3 -4
- package/es/built-in/context-menu/useContextMenu.mjs +4 -0
- package/es/built-in/document-title/index.mjs +52 -0
- package/es/built-in/dynamic-page/DynamicPage.mjs +36 -0
- package/es/built-in/dynamic-page/index.mjs +58 -0
- package/es/built-in/dynamic-page/style.mjs +52 -0
- package/es/built-in/dynamic-page/utils.mjs +61 -0
- package/es/built-in/index.mjs +455 -0
- package/es/built-in/locale/LocalePlugin.mjs +70 -0
- package/es/built-in/locale/loadConstrueLocale.mjs +185 -0
- package/es/built-in/page-style/CustomAdminHeader.mjs +9 -0
- package/es/built-in/page-style/PageStyle.provider.mjs +32 -0
- package/es/built-in/page-style/TabContent.mjs +65 -0
- package/es/built-in/page-style/TabHeader.mjs +80 -0
- package/es/built-in/page-style/index.mjs +14 -0
- package/es/built-in/page-style/usePageStyle.mjs +4 -0
- package/es/built-in/page-style/useTabSettings.mjs +69 -0
- package/es/built-in/pinned-list/PinnedPluginListProvider.mjs +61 -0
- package/es/built-in/pinned-list/PluginPinnedList.d.ts +4 -0
- package/es/built-in/pinned-list/PluginPinnedList.mjs +8 -0
- package/es/built-in/pinned-list/context.mjs +6 -0
- package/es/built-in/pinned-list/index.d.ts +0 -4
- package/es/built-in/pinned-list/index.mjs +2 -0
- package/es/built-in/pm/PluginCard.mjs +256 -0
- package/es/built-in/pm/PluginDetail.mjs +320 -0
- package/es/built-in/pm/PluginDocument.mjs +71 -0
- package/es/built-in/pm/PluginForm/form/PluginNpmForm.mjs +140 -0
- package/es/built-in/pm/PluginForm/form/PluginUploadForm.mjs +107 -0
- package/es/built-in/pm/PluginForm/form/PluginUrlForm.mjs +101 -0
- package/es/built-in/pm/PluginForm/modal/PluginAddModal.mjs +61 -0
- package/es/built-in/pm/PluginForm/modal/PluginUpgradeModal.mjs +65 -0
- package/es/built-in/pm/PluginManager.mjs +271 -0
- package/es/built-in/pm/index.d.ts +4 -3
- package/es/built-in/pm/index.mjs +55 -0
- package/es/built-in/pm/style.mjs +72 -0
- package/es/built-in/pm/types.mjs +0 -0
- package/es/built-in/quick-access/Action.mjs +90 -0
- package/es/built-in/quick-access/Block.mjs +128 -0
- package/es/built-in/quick-access/CustomRequestActionSchemaInitializerItem.mjs +90 -0
- package/es/built-in/quick-access/LinkActionSchemaInitializerItem.mjs +83 -0
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +92 -0
- package/es/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +118 -0
- package/es/built-in/quick-access/SchemaSettingsBlockTitleItem.mjs +45 -0
- package/es/built-in/quick-access/blockInitializerItem.mjs +19 -0
- package/es/built-in/quick-access/blockSchema.mjs +17 -0
- package/es/built-in/quick-access/blockSettings.mjs +65 -0
- package/es/built-in/quick-access/configureActions.mjs +15 -0
- package/es/built-in/quick-access/index.mjs +31 -0
- package/es/built-in/scroll-assistant/ScrollAssistant.provider.mjs +42 -0
- package/es/built-in/scroll-assistant/ScrollAssistantStatus.provider.mjs +22 -0
- package/es/built-in/scroll-assistant/index.mjs +26 -0
- package/es/built-in/scroll-assistant/useJoystick.mjs +167 -0
- package/es/built-in/setting-layout/AdminSettings.mjs +126 -0
- package/es/built-in/setting-layout/SettingLayout.mjs +137 -0
- package/es/built-in/setting-layout/SettingsCenterDropdown.mjs +75 -0
- package/es/built-in/system-settings/SystemSettingsProvider.mjs +17 -0
- package/es/built-in/system-settings/SystemSettingsShortcut.mjs +148 -0
- package/es/built-in/system-settings/index.d.ts +1 -1
- package/es/built-in/system-settings/index.mjs +12 -0
- package/es/built-in/system-version/SystemVersion.provider.mjs +34 -0
- package/es/built-in/system-version/index.mjs +8 -0
- package/es/built-in/user-settings/UserSettingsLayout.mjs +169 -0
- package/es/built-in/user-settings/index.mjs +17 -0
- package/es/built-in/user-settings/style.mjs +72 -0
- package/es/collection-manager/CollectionHistoryProvider.mjs +58 -0
- package/es/collection-manager/CollectionManagerProvider.mjs +57 -0
- package/es/collection-manager/CollectionManagerSchemaComponentProvider.mjs +23 -0
- package/es/collection-manager/CollectionProvider_deprecated.mjs +21 -0
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +224 -0
- package/es/collection-manager/Configuration/AddFieldAction.mjs +359 -0
- package/es/collection-manager/Configuration/AddSubFieldAction.mjs +140 -0
- package/es/collection-manager/Configuration/DeleteCollectionAction.mjs +218 -0
- package/es/collection-manager/Configuration/EditCollectionAction.mjs +171 -0
- package/es/collection-manager/Configuration/EditFieldAction.mjs +245 -0
- package/es/collection-manager/Configuration/EditSubFieldAction.mjs +115 -0
- package/es/collection-manager/Configuration/ImportCollectionMetaAction.mjs +128 -0
- package/es/collection-manager/Configuration/OverridingCollectionField.mjs +216 -0
- package/es/collection-manager/Configuration/SyncFieldsAction.mjs +198 -0
- package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +166 -0
- package/es/collection-manager/Configuration/ViewInheritedField.mjs +138 -0
- package/es/collection-manager/Configuration/components/CollectionCategory.mjs +18 -0
- package/es/collection-manager/Configuration/components/CollectionFieldInterfaceTag.mjs +19 -0
- package/es/collection-manager/Configuration/components/CollectionTemplateTag.mjs +18 -0
- package/es/collection-manager/Configuration/components/FieldSummary.mjs +19 -0
- package/es/collection-manager/Configuration/components/Summary.mjs +61 -0
- package/es/collection-manager/Configuration/components/TemplateSummary.mjs +19 -0
- package/es/collection-manager/Configuration/components/index.mjs +319 -0
- package/es/collection-manager/Configuration/index.mjs +22 -0
- package/es/collection-manager/Configuration/interfaces.mjs +35 -0
- package/es/collection-manager/ResourceActionProvider.mjs +136 -0
- package/es/collection-manager/action-hooks.mjs +538 -0
- package/es/collection-manager/collectionPlugin.mjs +129 -0
- package/es/collection-manager/context.mjs +7 -0
- package/es/collection-manager/demos/demo2.mjs +106 -0
- package/es/collection-manager/demos/demo3.mjs +76 -0
- package/es/collection-manager/demos/demo4.mjs +168 -0
- package/es/collection-manager/demos/demo5.mjs +152 -0
- package/es/collection-manager/hooks/index.mjs +4 -0
- package/es/collection-manager/hooks/useCollectionDataSource.mjs +17 -0
- package/es/collection-manager/hooks/useCollectionField_deprecated.mjs +21 -0
- package/es/collection-manager/hooks/useCollectionManager_deprecated.mjs +224 -0
- package/es/collection-manager/hooks/useCollection_deprecated.mjs +54 -0
- package/es/collection-manager/hooks/useDialect.mjs +11 -0
- package/es/collection-manager/index.mjs +30 -0
- package/es/collection-manager/interfaces/__tests__/json.mjs +40 -0
- package/es/collection-manager/interfaces/checkbox.mjs +49 -0
- package/es/collection-manager/interfaces/checkboxGroup.mjs +43 -0
- package/es/collection-manager/interfaces/chinaRegion.mjs +102 -0
- package/es/collection-manager/interfaces/collection.mjs +43 -0
- package/es/collection-manager/interfaces/color.mjs +31 -0
- package/es/collection-manager/interfaces/components/index.mjs +49 -0
- package/es/collection-manager/interfaces/createdAt.mjs +35 -0
- package/es/collection-manager/interfaces/createdBy.mjs +55 -0
- package/es/collection-manager/interfaces/datetime.mjs +44 -0
- package/es/collection-manager/interfaces/email.mjs +42 -0
- package/es/collection-manager/interfaces/icon.mjs +28 -0
- package/es/collection-manager/interfaces/id.mjs +54 -0
- package/es/collection-manager/interfaces/index.mjs +39 -0
- package/es/collection-manager/interfaces/input.mjs +182 -0
- package/es/collection-manager/interfaces/integer.mjs +118 -0
- package/es/collection-manager/interfaces/json.mjs +75 -0
- package/es/collection-manager/interfaces/linkTo.mjs +92 -0
- package/es/collection-manager/interfaces/m2m.mjs +217 -0
- package/es/collection-manager/interfaces/m2o.mjs +159 -0
- package/es/collection-manager/interfaces/markdown.mjs +77 -0
- package/es/collection-manager/interfaces/multipleSelect.mjs +48 -0
- package/es/collection-manager/interfaces/nanoid.mjs +60 -0
- package/es/collection-manager/interfaces/number.mjs +131 -0
- package/es/collection-manager/interfaces/o2m.mjs +191 -0
- package/es/collection-manager/interfaces/o2o.mjs +452 -0
- package/es/collection-manager/interfaces/password.mjs +63 -0
- package/es/collection-manager/interfaces/percent.mjs +162 -0
- package/es/collection-manager/interfaces/phone.mjs +34 -0
- package/es/collection-manager/interfaces/properties/index.mjs +493 -0
- package/es/collection-manager/interfaces/properties/operators.mjs +367 -0
- package/es/collection-manager/interfaces/radioGroup.mjs +34 -0
- package/es/collection-manager/interfaces/richText.mjs +75 -0
- package/es/collection-manager/interfaces/select.mjs +46 -0
- package/es/collection-manager/interfaces/sort.mjs +106 -0
- package/es/collection-manager/interfaces/subTable.mjs +197 -0
- package/es/collection-manager/interfaces/tableoid.mjs +48 -0
- package/es/collection-manager/interfaces/textarea.mjs +75 -0
- package/es/collection-manager/interfaces/time.mjs +47 -0
- package/es/collection-manager/interfaces/types.mjs +0 -0
- package/es/collection-manager/interfaces/unixTimestamp.mjs +52 -0
- package/es/collection-manager/interfaces/updatedAt.mjs +35 -0
- package/es/collection-manager/interfaces/updatedBy.mjs +55 -0
- package/es/collection-manager/interfaces/url.mjs +34 -0
- package/es/collection-manager/interfaces/uuid.mjs +48 -0
- package/es/collection-manager/mixins/InheritanceCollectionMixin.mjs +187 -0
- package/es/collection-manager/sub-table.mjs +238 -0
- package/es/collection-manager/templates/components/PresetFields.mjs +228 -0
- package/es/collection-manager/templates/components/PreviewFields.mjs +309 -0
- package/es/collection-manager/templates/components/PreviewTable.mjs +140 -0
- package/es/collection-manager/templates/components/sql-collection/FieldsConfigure.mjs +280 -0
- package/es/collection-manager/templates/components/sql-collection/PreviewTable.mjs +60 -0
- package/es/collection-manager/templates/components/sql-collection/SQLInput.mjs +90 -0
- package/es/collection-manager/templates/components/sql-collection/SQLRequestProvider.mjs +51 -0
- package/es/collection-manager/templates/components/sql-collection/index.mjs +4 -0
- package/es/collection-manager/templates/expression.mjs +62 -0
- package/es/collection-manager/templates/general.mjs +20 -0
- package/es/collection-manager/templates/import.mjs +19 -0
- package/es/collection-manager/templates/index.mjs +6 -0
- package/es/collection-manager/templates/properties/index.mjs +69 -0
- package/es/collection-manager/templates/sql.mjs +85 -0
- package/es/collection-manager/templates/tree.mjs +78 -0
- package/es/collection-manager/templates/types.mjs +0 -0
- package/es/collection-manager/templates/view.mjs +159 -0
- package/es/collection-manager/types.mjs +0 -0
- package/es/collection-manager/utils.mjs +16 -0
- package/es/common/SelectWithTitle.mjs +44 -0
- package/es/common/appInfo/CurrentAppInfoProvider.mjs +17 -0
- package/es/common/appInfo/index.mjs +1 -0
- package/es/common/index.mjs +3 -0
- package/es/common/useFieldComponentName.mjs +23 -0
- package/es/common/useNiceDropdownHeight.mjs +18 -0
- package/es/data-source/__tests__/collection/AssociationProvider.test.mjs +113 -0
- package/es/data-source/__tests__/collection/Collection.test.mjs +297 -0
- package/es/data-source/__tests__/collection/CollectionManager.test.mjs +297 -0
- package/es/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +114 -0
- package/es/data-source/__tests__/collection/CollectionProvider.test.mjs +106 -0
- package/es/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +87 -0
- package/es/data-source/__tests__/collection-field/CollectionField.test.mjs +67 -0
- package/es/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +51 -0
- package/es/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +162 -0
- package/es/data-source/__tests__/collection-record/CollectionRecord.test.mjs +21 -0
- package/es/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +253 -0
- package/es/data-source/__tests__/collection-record/isNewRecord.test.mjs +45 -0
- package/es/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +123 -0
- package/es/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +43 -0
- package/es/data-source/__tests__/data-block/DataBlockProvider.test.mjs +114 -0
- package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +88 -0
- package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +139 -0
- package/es/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +109 -0
- package/es/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +174 -0
- package/es/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +138 -0
- package/es/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +94 -0
- package/es/data-source/__tests__/data-block/data-block-demos/createApp.mjs +55 -0
- package/es/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +35 -0
- package/es/data-source/__tests__/data-source/DataSource.test.mjs +75 -0
- package/es/data-source/__tests__/data-source/DataSourceManager.test.mjs +166 -0
- package/es/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +30 -0
- package/es/data-source/__tests__/data-source/DataSourceProvider.test.mjs +79 -0
- package/es/data-source/__tests__/utils.test.mjs +55 -0
- package/es/data-source/collection/AssociationProvider.mjs +42 -0
- package/es/data-source/collection/Collection.mjs +177 -0
- package/es/data-source/collection/CollectionManager.mjs +119 -0
- package/es/data-source/collection/CollectionManagerProvider.mjs +47 -0
- package/es/data-source/collection/CollectionProvider.mjs +38 -0
- package/es/data-source/collection/ExtendCollectionsProvider.mjs +30 -0
- package/es/data-source/collection/index.mjs +6 -0
- package/es/data-source/collection/utils.mjs +46 -0
- package/es/data-source/collection-field/CollectionField.mjs +73 -0
- package/es/data-source/collection-field/CollectionFieldProvider.mjs +40 -0
- package/es/data-source/collection-field/index.mjs +2 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +33 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +59 -0
- package/es/data-source/collection-field-interface/index.mjs +2 -0
- package/es/data-source/collection-record/CollectionRecord.mjs +28 -0
- package/es/data-source/collection-record/CollectionRecordProvider.mjs +62 -0
- package/es/data-source/collection-record/index.mjs +2 -0
- package/es/data-source/collection-record/isNewRecord.mjs +9 -0
- package/es/data-source/collection-template/CollectionTemplate.mjs +32 -0
- package/es/data-source/collection-template/CollectionTemplateManager.mjs +52 -0
- package/es/data-source/collection-template/index.mjs +2 -0
- package/es/data-source/commonsSettingsItem/fieldComponent.mjs +57 -0
- package/es/data-source/commonsSettingsItem/index.mjs +1 -0
- package/es/data-source/components/CollectionDeletedPlaceholder.mjs +81 -0
- package/es/data-source/components/DataSourceApplicationProvider.mjs +15 -0
- package/es/data-source/components/index.mjs +2 -0
- package/es/data-source/data-block/DataBlockProvider.mjs +79 -0
- package/es/data-source/data-block/DataBlockRequestProvider.mjs +124 -0
- package/es/data-source/data-block/DataBlockResourceProvider.mjs +54 -0
- package/es/data-source/data-block/context/ConfigSetting.provider.mjs +10 -0
- package/es/data-source/data-block/index.mjs +4 -0
- package/es/data-source/data-source/DataSource.mjs +72 -0
- package/es/data-source/data-source/DataSourceManager.mjs +108 -0
- package/es/data-source/data-source/DataSourceManagerProvider.mjs +16 -0
- package/es/data-source/data-source/DataSourceProvider.mjs +54 -0
- package/es/data-source/data-source/index.mjs +4 -0
- package/es/data-source/index.mjs +10 -0
- package/es/data-source/utils.mjs +17 -0
- package/es/env.d.mjs +0 -0
- package/es/filter-provider/FilterProvider.mjs +127 -0
- package/es/filter-provider/__tests__/transformToFilter.mjs +65 -0
- package/es/filter-provider/__tests__/useFilter.mjs +41 -0
- package/es/filter-provider/__tests__/utiles.test.mjs +265 -0
- package/es/filter-provider/index.mjs +2 -0
- package/es/filter-provider/utils.mjs +180 -0
- package/es/flag-provider/FlagProvider.mjs +8 -0
- package/es/flag-provider/__tests__/flag-provider.test.mjs +19 -0
- package/es/flag-provider/hooks/useFlag.mjs +4 -0
- package/es/flag-provider/index.mjs +2 -0
- package/es/global.css +34 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/useAdminSchemaUid.mjs +2 -0
- package/es/hooks/useMenuItem.mjs +70 -0
- package/es/hooks/useViewport.mjs +35 -0
- package/es/i18n/i18n.mjs +23 -0
- package/es/i18n/index.mjs +1 -0
- package/es/icon/Icon.mjs +57 -0
- package/es/icon/__tests__/icon.test.mjs +25 -0
- package/es/icon/demos/antd-icon.mjs +7 -0
- package/es/icon/demos/custom-icon.mjs +16 -0
- package/es/icon/demos/iconfont.mjs +10 -0
- package/es/icon/demos/register-icon.mjs +23 -0
- package/es/icon/index.mjs +1 -0
- package/es/icon/preloaded.mjs +122 -0
- package/es/index.d.ts +0 -1
- package/es/index.mjs +48 -61135
- package/es/locale/index.mjs +269 -0
- package/es/modules/actions/ActionSchemaToolbar.mjs +10 -0
- package/es/modules/actions/add-child/CreateChildInitializer.mjs +64 -0
- package/es/modules/actions/add-child/addChildActionSettings.mjs +64 -0
- package/es/modules/actions/add-new/CreateActionInitializer.mjs +67 -0
- package/es/modules/actions/add-new/addNewActionSettings.mjs +57 -0
- package/es/modules/actions/add-new/createFormBlockInitializers.mjs +56 -0
- package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +63 -0
- package/es/modules/actions/add-record/customizeAddRecordActionSettings.mjs +35 -0
- package/es/modules/actions/add-record/customizeCreateFormBlockInitializers.mjs +36 -0
- package/es/modules/actions/bulk-destroy/BulkDestroyActionInitializer.mjs +35 -0
- package/es/modules/actions/bulk-destroy/bulkDeleteActionSettings.mjs +30 -0
- package/es/modules/actions/delete/DestroyActionInitializer.mjs +28 -0
- package/es/modules/actions/delete/deleteActionSettings.mjs +39 -0
- package/es/modules/actions/disassociate/DisassociateActionInitializer.mjs +28 -0
- package/es/modules/actions/disassociate/__e2e__/disassociate.test.mjs +39 -0
- package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +383 -0
- package/es/modules/actions/disassociate/disassociateActionSettings.mjs +39 -0
- package/es/modules/actions/expand-collapse/ExpandableActionInitializer.mjs +26 -0
- package/es/modules/actions/expand-collapse/expendableActionSettings.mjs +118 -0
- package/es/modules/actions/filter/FilterActionInitializer.mjs +22 -0
- package/es/modules/actions/filter/filterActionSettings.mjs +83 -0
- package/es/modules/actions/link/customizeLinkActionSettings.mjs +107 -0
- package/es/modules/actions/link/hooks.mjs +199 -0
- package/es/modules/actions/refresh/RefreshActionInitializer.mjs +21 -0
- package/es/modules/actions/refresh/refreshActionSettings.mjs +30 -0
- package/es/modules/actions/save-record/SaveRecordActionInitializer.mjs +34 -0
- package/es/modules/actions/save-record/customizeSaveRecordActionSettings.mjs +52 -0
- package/es/modules/actions/submit/CreateSubmitActionInitializer.mjs +27 -0
- package/es/modules/actions/submit/UpdateSubmitActionInitializer.mjs +31 -0
- package/es/modules/actions/submit/createSubmitActionSettings.mjs +210 -0
- package/es/modules/actions/submit/updateSubmitActionSettings.mjs +89 -0
- package/es/modules/actions/update-record/UpdateRecordActionInitializer.mjs +32 -0
- package/es/modules/actions/update-record/customizeUpdateRecordActionSettings.mjs +62 -0
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +59 -0
- package/es/modules/actions/view-edit-popup/RecordFormBlockInitializers.mjs +35 -0
- package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +57 -0
- package/es/modules/actions/view-edit-popup/ViewActionInitializer.mjs +56 -0
- package/es/modules/actions/view-edit-popup/customizePopupActionSettings.mjs +49 -0
- package/es/modules/actions/view-edit-popup/editActionSettings.mjs +44 -0
- package/es/modules/actions/view-edit-popup/viewActionSettings.mjs +49 -0
- package/es/modules/blocks/BlockSchemaToolbar.mjs +56 -0
- package/es/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.mjs +40 -0
- package/es/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.mjs +49 -0
- package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +112 -0
- package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +72 -0
- package/es/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +14 -0
- package/es/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.mjs +58 -0
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +216 -0
- package/es/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.mjs +9 -0
- package/es/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.mjs +5 -0
- package/es/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.mjs +73 -0
- package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.mjs +85 -0
- package/es/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.mjs +86 -0
- package/es/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.mjs +73 -0
- package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +98 -0
- package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +24 -0
- package/es/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +14 -0
- package/es/modules/blocks/data-blocks/details-single/createDetailsUISchema.mjs +54 -0
- package/es/modules/blocks/data-blocks/details-single/detailsBlockSettings.mjs +49 -0
- package/es/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.mjs +21 -0
- package/es/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.mjs +5 -0
- package/es/modules/blocks/data-blocks/form/CreateFormBlockInitializer.mjs +48 -0
- package/es/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +279 -0
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.mjs +79 -0
- package/es/modules/blocks/data-blocks/form/FormItemSchemaToolbar.mjs +9 -0
- package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +84 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +14 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +26 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +168 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +28 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +141 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1254 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +6002 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +16 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +212 -0
- package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +19 -0
- package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +18 -0
- package/es/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.mjs +51 -0
- package/es/modules/blocks/data-blocks/form/createEditFormBlockUISchema.mjs +54 -0
- package/es/modules/blocks/data-blocks/form/createFormActionInitializers.mjs +45 -0
- package/es/modules/blocks/data-blocks/form/createFormBlockSettings.mjs +138 -0
- package/es/modules/blocks/data-blocks/form/editFormBlockSettings.mjs +72 -0
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +525 -0
- package/es/modules/blocks/data-blocks/form/formActionInitializers.mjs +45 -0
- package/es/modules/blocks/data-blocks/form/formItemInitializers.mjs +39 -0
- package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.mjs +9 -0
- package/es/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.mjs +5 -0
- package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.mjs +15 -0
- package/es/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.mjs +5 -0
- package/es/modules/blocks/data-blocks/form/index.d.ts +2 -2
- package/es/modules/blocks/data-blocks/form/index.mjs +14 -0
- package/es/modules/blocks/data-blocks/form/updateFormActionInitializers.mjs +56 -0
- package/es/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.mjs +85 -0
- package/es/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.mjs +43 -0
- package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +220 -0
- package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +48 -0
- package/es/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +26 -0
- package/es/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.mjs +73 -0
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +431 -0
- package/es/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.mjs +100 -0
- package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.mjs +12 -0
- package/es/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs +17 -0
- package/es/modules/blocks/data-blocks/grid-card/utils.mjs +14 -0
- package/es/modules/blocks/data-blocks/list/ListActionInitializers.mjs +81 -0
- package/es/modules/blocks/data-blocks/list/ListBlockInitializer.mjs +43 -0
- package/es/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +211 -0
- package/es/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +23 -0
- package/es/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +24 -0
- package/es/modules/blocks/data-blocks/list/createListBlockUISchema.mjs +68 -0
- package/es/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.mjs +9 -0
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +249 -0
- package/es/modules/blocks/data-blocks/list/listItemActionInitializers.mjs +100 -0
- package/es/modules/blocks/data-blocks/table/TableActionColumnInitializers.mjs +238 -0
- package/es/modules/blocks/data-blocks/table/TableActionInitializers.mjs +131 -0
- package/es/modules/blocks/data-blocks/table/TableBlockInitializer.mjs +43 -0
- package/es/modules/blocks/data-blocks/table/TableColumnInitializers.mjs +105 -0
- package/es/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.mjs +15 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +9 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +33 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +19 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +31 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +419 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +869 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +934 -0
- package/es/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +42 -0
- package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +16 -0
- package/es/modules/blocks/data-blocks/table/createTableBlockUISchema.mjs +82 -0
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.mjs +35 -0
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +137 -0
- package/es/modules/blocks/data-blocks/table/index.mjs +9 -0
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +416 -0
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +333 -0
- package/es/modules/blocks/data-blocks/table/utils.mjs +17 -0
- package/es/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.mjs +24 -0
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +159 -0
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +146 -0
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +692 -0
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +12 -0
- package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +14 -0
- package/es/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.mjs +47 -0
- package/es/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.mjs +2 -0
- package/es/modules/blocks/data-blocks/table-selector/index.mjs +2 -0
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +310 -0
- package/es/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.mjs +8 -0
- package/es/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.mjs +29 -0
- package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +59 -0
- package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +62 -0
- package/es/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +40 -0
- package/es/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.mjs +31 -0
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.mjs +58 -0
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +213 -0
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.mjs +153 -0
- package/es/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.mjs +2 -0
- package/es/modules/blocks/filter-blocks/form/FilterFormActionInitializers.mjs +32 -0
- package/es/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.mjs +37 -0
- package/es/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +115 -0
- package/es/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +98 -0
- package/es/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +23 -0
- package/es/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.mjs +46 -0
- package/es/modules/blocks/filter-blocks/form/filterFormBlockSettings.mjs +66 -0
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +355 -0
- package/es/modules/blocks/filter-blocks/form/filterFormItemInitializers.mjs +41 -0
- package/es/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.mjs +2 -0
- package/es/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.mjs +5 -0
- package/es/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.mjs +32 -0
- package/es/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.mjs +73 -0
- package/es/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.mjs +66 -0
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +355 -0
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.mjs +41 -0
- package/es/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.mjs +30 -0
- package/es/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.mjs +26 -0
- package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +10 -0
- package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +33 -0
- package/es/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/other-blocks/markdown/markdownBlockSettings.mjs +39 -0
- package/es/modules/blocks/useParentRecordCommon.mjs +7 -0
- package/es/modules/blocks/useSourceId.mjs +12 -0
- package/es/modules/blocks/useSourceKey.mjs +6 -0
- package/es/modules/dialog/__e2e__/schemaInitializer.test.mjs +388 -0
- package/es/modules/dialog/__e2e__/schemaSettings.test.mjs +59 -0
- package/es/modules/dialog/__e2e__/templatesOfBug.mjs +2122 -0
- package/es/modules/dialog/__e2e__/zIndex.test.mjs +35 -0
- package/es/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.mjs +91 -0
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +380 -0
- package/es/modules/fields/component/Checkbox/checkboxComponentFieldSettings.mjs +53 -0
- package/es/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +74 -0
- package/es/modules/fields/component/DatePicker/__e2e__/utils.mjs +323 -0
- package/es/modules/fields/component/DatePicker/datePickerComponentFieldSettings.mjs +22 -0
- package/es/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +149 -0
- package/es/modules/fields/component/FileManager/fileManagerComponentFieldSettings.mjs +190 -0
- package/es/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs +102 -0
- package/es/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs +27 -0
- package/es/modules/fields/component/Nester/subformComponentFieldSettings.mjs +125 -0
- package/es/modules/fields/component/Picker/TableSelectorInitializers.mjs +86 -0
- package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +190 -0
- package/es/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs +99 -0
- package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +53 -0
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +378 -0
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +404 -0
- package/es/modules/fields/component/Tag/tagComponentFieldSettings.mjs +172 -0
- package/es/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.mjs +22 -0
- package/es/modules/fields/initializer/CollectionFieldInitializer.mjs +15 -0
- package/es/modules/fields/initializer/TableCollectionFieldInitializer.mjs +15 -0
- package/es/modules/menu/GroupItem.mjs +78 -0
- package/es/modules/menu/LinkMenuItem.mjs +84 -0
- package/es/modules/menu/PageMenuItem.mjs +93 -0
- package/es/modules/menu/__e2e__/dragAndDrop.test.mjs +27 -0
- package/es/modules/menu/__e2e__/schemaInitializer.test.mjs +101 -0
- package/es/modules/menu/__e2e__/schemaSettings.test.mjs +347 -0
- package/es/modules/menu/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/menu/menuItemInitializer.mjs +48 -0
- package/es/modules/page/BlockInitializers.mjs +77 -0
- package/es/modules/page/__e2e__/blockInitializers.test.mjs +17 -0
- package/es/modules/page/__e2e__/dragAndDrop.test.mjs +16 -0
- package/es/modules/page/__e2e__/schemaInitailizer.test.mjs +15 -0
- package/es/modules/page/__e2e__/schemaSettings.test.mjs +134 -0
- package/es/modules/page/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/plugin-manager/__e2e__/pluginManager.test.mjs +113 -0
- package/es/modules/plugin-manager/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/user-center/__e2e__/settings.test.mjs +12 -0
- package/es/modules/variable/DeclareVariable.mjs +16 -0
- package/es/modules/variable/useVariable.mjs +12 -0
- package/es/powered-by/index.mjs +43 -0
- package/es/record-provider/index.mjs +51 -0
- package/es/route-switch/RouteSchemaComponent.mjs +12 -0
- package/es/route-switch/index.mjs +1 -0
- package/es/schema-component/antd/AntdSchemaComponentProvider.mjs +39 -0
- package/es/schema-component/antd/__builtins__/hooks/index.mjs +3 -0
- package/es/schema-component/antd/__builtins__/hooks/useConfig.mjs +5 -0
- package/es/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +12 -0
- package/es/schema-component/antd/__builtins__/hooks/useToken.mjs +6 -0
- package/es/schema-component/antd/__builtins__/index.mjs +4 -0
- package/es/schema-component/antd/__builtins__/loading.mjs +15 -0
- package/es/schema-component/antd/__builtins__/portal.mjs +51 -0
- package/es/schema-component/antd/__builtins__/render.mjs +47 -0
- package/es/schema-component/antd/__builtins__/style.mjs +65 -0
- package/es/schema-component/antd/action/Action.Area.mjs +102 -0
- package/es/schema-component/antd/action/Action.Area.style.mjs +40 -0
- package/es/schema-component/antd/action/Action.Container.mjs +42 -0
- package/es/schema-component/antd/action/Action.Designer.mjs +906 -0
- package/es/schema-component/antd/action/Action.Drawer.mjs +136 -0
- package/es/schema-component/antd/action/Action.Drawer.style.mjs +46 -0
- package/es/schema-component/antd/action/Action.Link.mjs +14 -0
- package/es/schema-component/antd/action/Action.Modal.mjs +172 -0
- package/es/schema-component/antd/action/Action.Page.mjs +83 -0
- package/es/schema-component/antd/action/Action.Popover.mjs +0 -0
- package/es/schema-component/antd/action/Action.Sheet.mjs +81 -0
- package/es/schema-component/antd/action/Action.mjs +228 -0
- package/es/schema-component/antd/action/Action.style.mjs +47 -0
- package/es/schema-component/antd/action/ActionBar.mjs +128 -0
- package/es/schema-component/antd/action/__tests__/action.test.mjs +116 -0
- package/es/schema-component/antd/action/context.mjs +17 -0
- package/es/schema-component/antd/action/demos/demo1.mjs +70 -0
- package/es/schema-component/antd/action/demos/demo2.mjs +75 -0
- package/es/schema-component/antd/action/demos/demo3.mjs +127 -0
- package/es/schema-component/antd/action/demos/demo4.mjs +58 -0
- package/es/schema-component/antd/action/demos/demo5.mjs +211 -0
- package/es/schema-component/antd/action/demos/demo6.mjs +95 -0
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfAction.mjs +37 -0
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.mjs +25 -0
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfModal.mjs +25 -0
- package/es/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.mjs +25 -0
- package/es/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.mjs +30 -0
- package/es/schema-component/antd/action/hooks/useSetAriaLabelForModal.mjs +30 -0
- package/es/schema-component/antd/action/hooks/useSetAriaLabelForPopover.mjs +22 -0
- package/es/schema-component/antd/action/hooks.mjs +60 -0
- package/es/schema-component/antd/action/index.mjs +10 -0
- package/es/schema-component/antd/action/types.mjs +0 -0
- package/es/schema-component/antd/action/utils.mjs +213 -0
- package/es/schema-component/antd/appends-tree-select/AppendsTreeSelect.mjs +216 -0
- package/es/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +215 -0
- package/es/schema-component/antd/appends-tree-select/index.mjs +2 -0
- package/es/schema-component/antd/association-cascader/AssociationCascader.mjs +135 -0
- package/es/schema-component/antd/association-cascader/index.mjs +1 -0
- package/es/schema-component/antd/association-field/AssociationFieldProvider.mjs +125 -0
- package/es/schema-component/antd/association-field/AssociationSelect.mjs +172 -0
- package/es/schema-component/antd/association-field/Editable.mjs +103 -0
- package/es/schema-component/antd/association-field/FileManager.mjs +201 -0
- package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +394 -0
- package/es/schema-component/antd/association-field/InternalCascader.mjs +365 -0
- package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +99 -0
- package/es/schema-component/antd/association-field/InternalNester.mjs +80 -0
- package/es/schema-component/antd/association-field/InternalPicker.mjs +228 -0
- package/es/schema-component/antd/association-field/InternalPopoverNester.mjs +131 -0
- package/es/schema-component/antd/association-field/InternalSubTable.mjs +91 -0
- package/es/schema-component/antd/association-field/InternalTag.mjs +122 -0
- package/es/schema-component/antd/association-field/InternalViewer.mjs +136 -0
- package/es/schema-component/antd/association-field/Nester.mjs +247 -0
- package/es/schema-component/antd/association-field/ReadPretty.mjs +47 -0
- package/es/schema-component/antd/association-field/SubTable.mjs +278 -0
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +321 -0
- package/es/schema-component/antd/association-field/SubTabs/hook.mjs +53 -0
- package/es/schema-component/antd/association-field/SubTabs/index.mjs +1 -0
- package/es/schema-component/antd/association-field/SubTabs/styles.mjs +25 -0
- package/es/schema-component/antd/association-field/components/CreateRecordAction.mjs +55 -0
- package/es/schema-component/antd/association-field/context.mjs +4 -0
- package/es/schema-component/antd/association-field/hooks.mjs +150 -0
- package/es/schema-component/antd/association-field/index.mjs +17 -0
- package/es/schema-component/antd/association-field/schema.mjs +131 -0
- package/es/schema-component/antd/association-field/util.mjs +103 -0
- package/es/schema-component/antd/association-filter/ActionBarAssociationFilterAction.mjs +54 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.mjs +40 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.Initializer.mjs +55 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.Designer.mjs +134 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.mjs +131 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.style.mjs +101 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.mjs +75 -0
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDelete.mjs +31 -0
- package/es/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.mjs +23 -0
- package/es/schema-component/antd/association-filter/utilts.mjs +2 -0
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +865 -0
- package/es/schema-component/antd/association-select/ReadPretty.mjs +17 -0
- package/es/schema-component/antd/association-select/__tests__/association-select.test.mjs +16 -0
- package/es/schema-component/antd/association-select/demos/demo1.mjs +55 -0
- package/es/schema-component/antd/association-select/index.mjs +1 -0
- package/es/schema-component/antd/association-select/useServiceOptions.mjs +82 -0
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +58 -0
- package/es/schema-component/antd/auto-complete/index.mjs +1 -0
- package/es/schema-component/antd/block-item/BlockItem.mjs +49 -0
- package/es/schema-component/antd/block-item/BlockToolbar.d.ts +48 -3
- package/es/schema-component/antd/block-item/BlockToolbar.mjs +88 -0
- package/es/schema-component/antd/block-item/__tests__/block-item.test.mjs +14 -0
- package/es/schema-component/antd/block-item/demos/demo1.mjs +60 -0
- package/es/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.mjs +39 -0
- package/es/schema-component/antd/block-item/index.mjs +1 -0
- package/es/schema-component/antd/block-item/useBlockToolbar.mjs +81 -0
- package/es/schema-component/antd/card-item/CardItem.mjs +25 -0
- package/es/schema-component/antd/card-item/__tests__/card-item.test.mjs +11 -0
- package/es/schema-component/antd/card-item/demos/demo1.mjs +31 -0
- package/es/schema-component/antd/card-item/index.mjs +1 -0
- package/es/schema-component/antd/card-item/style.mjs +25 -0
- package/es/schema-component/antd/cascader/Cascader.mjs +73 -0
- package/es/schema-component/antd/cascader/ReadPretty.mjs +30 -0
- package/es/schema-component/antd/cascader/__tests__/cascader.test.mjs +29 -0
- package/es/schema-component/antd/cascader/defaultFieldNames.mjs +6 -0
- package/es/schema-component/antd/cascader/demos/demo1.mjs +82 -0
- package/es/schema-component/antd/cascader/demos/demo2.mjs +115 -0
- package/es/schema-component/antd/cascader/index.mjs +1 -0
- package/es/schema-component/antd/checkbox/Checkbox.mjs +83 -0
- package/es/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +40 -0
- package/es/schema-component/antd/checkbox/demos/checkbox.group.mjs +54 -0
- package/es/schema-component/antd/checkbox/demos/checkbox.mjs +40 -0
- package/es/schema-component/antd/checkbox/index.mjs +1 -0
- package/es/schema-component/antd/collection-select/CollectionSelect.mjs +146 -0
- package/es/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +16 -0
- package/es/schema-component/antd/collection-select/demos/demo1.mjs +36 -0
- package/es/schema-component/antd/collection-select/index.mjs +1 -0
- package/es/schema-component/antd/color-picker/ColorPicker.mjs +86 -0
- package/es/schema-component/antd/color-picker/ReadPretty.mjs +19 -0
- package/es/schema-component/antd/color-picker/demos/demo1.mjs +49 -0
- package/es/schema-component/antd/color-picker/index.mjs +1 -0
- package/es/schema-component/antd/color-picker/util.mjs +158 -0
- package/es/schema-component/antd/color-select/ColorSelect.mjs +48 -0
- package/es/schema-component/antd/color-select/__tests__/color-select.test.mjs +16 -0
- package/es/schema-component/antd/color-select/demos/demo1.mjs +40 -0
- package/es/schema-component/antd/color-select/index.mjs +1 -0
- package/es/schema-component/antd/cron/Cron.mjs +68 -0
- package/es/schema-component/antd/cron/CronSet.mjs +106 -0
- package/es/schema-component/antd/cron/__tests__/cron-set.test.mjs +30 -0
- package/es/schema-component/antd/cron/demos/demo1.mjs +32 -0
- package/es/schema-component/antd/cron/demos/demo2.mjs +51 -0
- package/es/schema-component/antd/cron/index.mjs +2 -0
- package/es/schema-component/antd/custom-cascader/CustomCascader.mjs +34 -0
- package/es/schema-component/antd/custom-cascader/ReadPretty.mjs +30 -0
- package/es/schema-component/antd/custom-cascader/defaultFieldNames.mjs +6 -0
- package/es/schema-component/antd/custom-cascader/index.mjs +1 -0
- package/es/schema-component/antd/date-picker/DatePicker.mjs +144 -0
- package/es/schema-component/antd/date-picker/ReadPretty.mjs +38 -0
- package/es/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +178 -0
- package/es/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +110 -0
- package/es/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +200 -0
- package/es/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +59 -0
- package/es/schema-component/antd/date-picker/__tests__/util.test.mjs +166 -0
- package/es/schema-component/antd/date-picker/demos/demo1.mjs +57 -0
- package/es/schema-component/antd/date-picker/demos/demo10.mjs +61 -0
- package/es/schema-component/antd/date-picker/demos/demo11.mjs +65 -0
- package/es/schema-component/antd/date-picker/demos/demo2.mjs +60 -0
- package/es/schema-component/antd/date-picker/demos/demo3.mjs +58 -0
- package/es/schema-component/antd/date-picker/demos/demo4.mjs +72 -0
- package/es/schema-component/antd/date-picker/demos/demo5.mjs +71 -0
- package/es/schema-component/antd/date-picker/demos/demo6.mjs +71 -0
- package/es/schema-component/antd/date-picker/demos/demo7.mjs +61 -0
- package/es/schema-component/antd/date-picker/demos/demo8.mjs +61 -0
- package/es/schema-component/antd/date-picker/demos/demo9.mjs +61 -0
- package/es/schema-component/antd/date-picker/index.mjs +1 -0
- package/es/schema-component/antd/date-picker/util.mjs +179 -0
- package/es/schema-component/antd/details/Details.mjs +18 -0
- package/es/schema-component/antd/details/__tests__/details.test.mjs +10 -0
- package/es/schema-component/antd/details/demos/demo1.mjs +42 -0
- package/es/schema-component/antd/details/index.mjs +1 -0
- package/es/schema-component/antd/error-fallback/ErrorFallback.mjs +59 -0
- package/es/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +17 -0
- package/es/schema-component/antd/error-fallback/demos/demo1.mjs +13 -0
- package/es/schema-component/antd/error-fallback/index.mjs +1 -0
- package/es/schema-component/antd/expand-action/Expand.Action.Design.mjs +107 -0
- package/es/schema-component/antd/expand-action/Expand.Action.mjs +70 -0
- package/es/schema-component/antd/expand-action/index.mjs +6 -0
- package/es/schema-component/antd/filter/DynamicComponent.mjs +58 -0
- package/es/schema-component/antd/filter/Filter.Action.Designer.mjs +121 -0
- package/es/schema-component/antd/filter/Filter.mjs +56 -0
- package/es/schema-component/antd/filter/FilterAction.mjs +164 -0
- package/es/schema-component/antd/filter/FilterGroup.mjs +134 -0
- package/es/schema-component/antd/filter/FilterItem.mjs +85 -0
- package/es/schema-component/antd/filter/FilterItems.mjs +24 -0
- package/es/schema-component/antd/filter/SaveDefaultValue.mjs +36 -0
- package/es/schema-component/antd/filter/__tests__/filter.test.mjs +113 -0
- package/es/schema-component/antd/filter/context.mjs +8 -0
- package/es/schema-component/antd/filter/demos/demo2.mjs +129 -0
- package/es/schema-component/antd/filter/demos/demo3.mjs +196 -0
- package/es/schema-component/antd/filter/demos/demo4.mjs +184 -0
- package/es/schema-component/antd/filter/demos/demo5.mjs +131 -0
- package/es/schema-component/antd/filter/demos/demo6.mjs +118 -0
- package/es/schema-component/antd/filter/index.mjs +3 -0
- package/es/schema-component/antd/filter/useFilterActionProps.mjs +213 -0
- package/es/schema-component/antd/filter/useOperators.mjs +23 -0
- package/es/schema-component/antd/filter/useValues.mjs +122 -0
- package/es/schema-component/antd/filter/utils.mjs +13 -0
- package/es/schema-component/antd/form/Form.Designer.mjs +12 -0
- package/es/schema-component/antd/form/Form.Settings.mjs +34 -0
- package/es/schema-component/antd/form/Form.mjs +148 -0
- package/es/schema-component/antd/form/__tests__/form.test.mjs +113 -0
- package/es/schema-component/antd/form/demos/apiClient.mjs +17 -0
- package/es/schema-component/antd/form/demos/demo1.mjs +73 -0
- package/es/schema-component/antd/form/demos/demo2.mjs +73 -0
- package/es/schema-component/antd/form/demos/demo3.mjs +72 -0
- package/es/schema-component/antd/form/demos/demo4.mjs +80 -0
- package/es/schema-component/antd/form/demos/demo5.mjs +114 -0
- package/es/schema-component/antd/form/demos/demo6.mjs +71 -0
- package/es/schema-component/antd/form/demos/demo7.mjs +75 -0
- package/es/schema-component/antd/form/demos/demo8.mjs +86 -0
- package/es/schema-component/antd/form/index.mjs +2 -0
- package/es/schema-component/antd/form-dialog/index.mjs +154 -0
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +7 -0
- package/es/schema-component/antd/form-item/FormItem.FilterFormSettings.mjs +128 -0
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1204 -0
- package/es/schema-component/antd/form-item/FormItem.mjs +133 -0
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +562 -0
- package/es/schema-component/antd/form-item/__tests__/form-item.test.mjs +12 -0
- package/es/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +27 -0
- package/es/schema-component/antd/form-item/__tests__/utils.test.mjs +65 -0
- package/es/schema-component/antd/form-item/demos/demo1.mjs +37 -0
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +69 -0
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +84 -0
- package/es/schema-component/antd/form-item/hooks/useSpecialCase.mjs +106 -0
- package/es/schema-component/antd/form-item/index.mjs +4 -0
- package/es/schema-component/antd/form-item/utils.mjs +7 -0
- package/es/schema-component/antd/form-tab/index.mjs +140 -0
- package/es/schema-component/antd/form-v2/Form.Designer.mjs +33 -0
- package/es/schema-component/antd/form-v2/Form.FilterDesigner.mjs +15 -0
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +315 -0
- package/es/schema-component/antd/form-v2/Form.mjs +330 -0
- package/es/schema-component/antd/form-v2/FormField.mjs +30 -0
- package/es/schema-component/antd/form-v2/Templates.mjs +191 -0
- package/es/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +47 -0
- package/es/schema-component/antd/form-v2/demos/collections.mjs +1565 -0
- package/es/schema-component/antd/form-v2/demos/demo1.mjs +108 -0
- package/es/schema-component/antd/form-v2/demos/demo2.mjs +131 -0
- package/es/schema-component/antd/form-v2/demos/demo3.mjs +117 -0
- package/es/schema-component/antd/form-v2/index.d.ts +3 -2
- package/es/schema-component/antd/form-v2/index.mjs +14 -0
- package/es/schema-component/antd/form-v2/utils.mjs +143 -0
- package/es/schema-component/antd/grid/Block.mjs +24 -0
- package/es/schema-component/antd/grid/Grid.mjs +479 -0
- package/es/schema-component/antd/grid/Grid.style.mjs +45 -0
- package/es/schema-component/antd/grid/__tests__/grid.test.mjs +26 -0
- package/es/schema-component/antd/grid/demos/demo1.mjs +194 -0
- package/es/schema-component/antd/grid/demos/demo2.mjs +97 -0
- package/es/schema-component/antd/grid/demos/demo3.mjs +83 -0
- package/es/schema-component/antd/grid/index.mjs +2 -0
- package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +67 -0
- package/es/schema-component/antd/grid-card/GridCard.Decorator.style.mjs +24 -0
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +252 -0
- package/es/schema-component/antd/grid-card/GridCard.Item.mjs +77 -0
- package/es/schema-component/antd/grid-card/GridCard.mjs +156 -0
- package/es/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +9 -0
- package/es/schema-component/antd/grid-card/demos/demo1.mjs +6 -0
- package/es/schema-component/antd/grid-card/hooks.mjs +32 -0
- package/es/schema-component/antd/grid-card/index.mjs +1 -0
- package/es/schema-component/antd/grid-card/options.mjs +35 -0
- package/es/schema-component/antd/icon-picker/IconFilterInput.mjs +17 -0
- package/es/schema-component/antd/icon-picker/IconList.mjs +50 -0
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +74 -0
- package/es/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +25 -0
- package/es/schema-component/antd/icon-picker/demos/icon-picker.mjs +40 -0
- package/es/schema-component/antd/icon-picker/index.mjs +1 -0
- package/es/schema-component/antd/index.css +30 -0
- package/es/schema-component/antd/index.mjs +65 -0
- package/es/schema-component/antd/input/EllipsisWithTooltip.mjs +64 -0
- package/es/schema-component/antd/input/Input.mjs +27 -0
- package/es/schema-component/antd/input/Json.mjs +60 -0
- package/es/schema-component/antd/input/ReadPretty.mjs +153 -0
- package/es/schema-component/antd/input/__tests__/Input.test.mjs +115 -0
- package/es/schema-component/antd/input/demos/input.mjs +40 -0
- package/es/schema-component/antd/input/demos/json.mjs +46 -0
- package/es/schema-component/antd/input/demos/textarea.mjs +68 -0
- package/es/schema-component/antd/input/demos/url.mjs +42 -0
- package/es/schema-component/antd/input/index.mjs +5 -0
- package/es/schema-component/antd/input/shared.mjs +8 -0
- package/es/schema-component/antd/input-number/InputNumber.mjs +19 -0
- package/es/schema-component/antd/input-number/ReadPretty.mjs +115 -0
- package/es/schema-component/antd/input-number/__tests__/input-number.test.mjs +116 -0
- package/es/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +48 -0
- package/es/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +50 -0
- package/es/schema-component/antd/input-number/demos/inputNumber.mjs +40 -0
- package/es/schema-component/antd/input-number/index.mjs +1 -0
- package/es/schema-component/antd/list/List.Decorator.mjs +94 -0
- package/es/schema-component/antd/list/List.Designer.mjs +206 -0
- package/es/schema-component/antd/list/List.Item.mjs +53 -0
- package/es/schema-component/antd/list/List.mjs +80 -0
- package/es/schema-component/antd/list/List.style.mjs +55 -0
- package/es/schema-component/antd/list/__tests__/list.test.mjs +9 -0
- package/es/schema-component/antd/list/demos/demo1.mjs +6 -0
- package/es/schema-component/antd/list/hooks.mjs +11 -0
- package/es/schema-component/antd/list/index.mjs +1 -0
- package/es/schema-component/antd/markdown/Markdown.Void.Designer.mjs +27 -0
- package/es/schema-component/antd/markdown/Markdown.Void.mjs +110 -0
- package/es/schema-component/antd/markdown/Markdown.mjs +46 -0
- package/es/schema-component/antd/markdown/__tests__/markdown.test.mjs +27 -0
- package/es/schema-component/antd/markdown/demos/demo1.mjs +40 -0
- package/es/schema-component/antd/markdown/demos/demo2.mjs +51 -0
- package/es/schema-component/antd/markdown/index.mjs +1 -0
- package/es/schema-component/antd/markdown/style.mjs +220 -0
- package/es/schema-component/antd/markdown/util.mjs +38 -0
- package/es/schema-component/antd/menu/Menu.Designer.mjs +435 -0
- package/es/schema-component/antd/menu/Menu.mjs +591 -0
- package/es/schema-component/antd/menu/Menu.styles.mjs +77 -0
- package/es/schema-component/antd/menu/MenuItemInitializers/index.mjs +11 -0
- package/es/schema-component/antd/menu/__tests__/menu.test.mjs +38 -0
- package/es/schema-component/antd/menu/demos/demo1.mjs +93 -0
- package/es/schema-component/antd/menu/demos/demo2.mjs +96 -0
- package/es/schema-component/antd/menu/demos/demo3.mjs +135 -0
- package/es/schema-component/antd/menu/index.mjs +3 -0
- package/es/schema-component/antd/menu/locale.mjs +3 -0
- package/es/schema-component/antd/menu/util.mjs +34 -0
- package/es/schema-component/antd/nanoIDInput/NanoIDInput.mjs +33 -0
- package/es/schema-component/antd/nanoIDInput/index.mjs +1 -0
- package/es/schema-component/antd/page/FixedBlock.mjs +96 -0
- package/es/schema-component/antd/page/FixedBlockDesignerItem.mjs +40 -0
- package/es/schema-component/antd/page/Page.Settings.mjs +147 -0
- package/es/schema-component/antd/page/Page.mjs +220 -0
- package/es/schema-component/antd/page/PageTab.Settings.mjs +88 -0
- package/es/schema-component/antd/page/PageTabDesigner.mjs +64 -0
- package/es/schema-component/antd/page/__tests__/page.test.mjs +18 -0
- package/es/schema-component/antd/page/demos/demo1.mjs +38 -0
- package/es/schema-component/antd/page/hooks/useIsBlockInPage.mjs +12 -0
- package/es/schema-component/antd/page/index.mjs +5 -0
- package/es/schema-component/antd/page/style.mjs +143 -0
- package/es/schema-component/antd/pagination/index.mjs +22 -0
- package/es/schema-component/antd/password/Password.mjs +80 -0
- package/es/schema-component/antd/password/PasswordStrength.mjs +11 -0
- package/es/schema-component/antd/password/__tests__/password.test.mjs +28 -0
- package/es/schema-component/antd/password/__tests__/utils.test.mjs +21 -0
- package/es/schema-component/antd/password/demos/demo1.mjs +40 -0
- package/es/schema-component/antd/password/demos/demo2.mjs +43 -0
- package/es/schema-component/antd/password/index.mjs +1 -0
- package/es/schema-component/antd/password/utils.d.ts +1 -1
- package/es/schema-component/antd/password/utils.mjs +104 -0
- package/es/schema-component/antd/percent/Percent.mjs +34 -0
- package/es/schema-component/antd/percent/__tests__/percent.test.mjs +16 -0
- package/es/schema-component/antd/percent/demos/percent.mjs +40 -0
- package/es/schema-component/antd/percent/index.mjs +1 -0
- package/es/schema-component/antd/popover/Popover.mjs +39 -0
- package/es/schema-component/antd/popover/index.mjs +1 -0
- package/es/schema-component/antd/preview/Preview.mjs +273 -0
- package/es/schema-component/antd/preview/__tests__/preview.test.mjs +11 -0
- package/es/schema-component/antd/preview/demos/demo1.mjs +81 -0
- package/es/schema-component/antd/preview/index.mjs +1 -0
- package/es/schema-component/antd/quick-edit/QuickEdit.mjs +115 -0
- package/es/schema-component/antd/quick-edit/index.mjs +1 -0
- package/es/schema-component/antd/radio/Radio.mjs +40 -0
- package/es/schema-component/antd/radio/__tests__/radio.test.mjs +43 -0
- package/es/schema-component/antd/radio/demos/demo1.mjs +40 -0
- package/es/schema-component/antd/radio/demos/demo2.mjs +52 -0
- package/es/schema-component/antd/radio/demos/demo3.mjs +54 -0
- package/es/schema-component/antd/radio/index.mjs +1 -0
- package/es/schema-component/antd/record-picker/InputRecordPicker.mjs +252 -0
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +120 -0
- package/es/schema-component/antd/record-picker/RecordPicker.mjs +5 -0
- package/es/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +27 -0
- package/es/schema-component/antd/record-picker/demos/demo1.mjs +175 -0
- package/es/schema-component/antd/record-picker/demos/mockData.mjs +211 -0
- package/es/schema-component/antd/record-picker/index.mjs +10 -0
- package/es/schema-component/antd/record-picker/useFieldNames.mjs +12 -0
- package/es/schema-component/antd/record-picker/util.mjs +37 -0
- package/es/schema-component/antd/remote-select/ReadPretty.mjs +44 -0
- package/es/schema-component/antd/remote-select/RemoteSelect.mjs +224 -0
- package/es/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +16 -0
- package/es/schema-component/antd/remote-select/demos/demo1.mjs +55 -0
- package/es/schema-component/antd/remote-select/index.mjs +1 -0
- package/es/schema-component/antd/remote-select/shared.mjs +3 -0
- package/es/schema-component/antd/rich-text/RichText.mjs +59 -0
- package/es/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +13 -0
- package/es/schema-component/antd/rich-text/demos/demo1.mjs +41 -0
- package/es/schema-component/antd/rich-text/index.mjs +1 -0
- package/es/schema-component/antd/rich-text/style.mjs +813 -0
- package/es/schema-component/antd/rich-text/style.mjs.LICENSE.txt +6 -0
- package/es/schema-component/antd/scroll-area/ScrollArea.mjs +43 -0
- package/es/schema-component/antd/scroll-area/index.mjs +1 -0
- package/es/schema-component/antd/select/FormulaSelect.mjs +196 -0
- package/es/schema-component/antd/select/ReadPretty.mjs +33 -0
- package/es/schema-component/antd/select/Select.mjs +155 -0
- package/es/schema-component/antd/select/__tests__/select.test.mjs +41 -0
- package/es/schema-component/antd/select/__tests__/utils.test.mjs +129 -0
- package/es/schema-component/antd/select/demos/demo1.mjs +72 -0
- package/es/schema-component/antd/select/demos/demo2.mjs +76 -0
- package/es/schema-component/antd/select/demos/demo3.mjs +84 -0
- package/es/schema-component/antd/select/index.mjs +2 -0
- package/es/schema-component/antd/select/utils.mjs +38 -0
- package/es/schema-component/antd/space/index.mjs +19 -0
- package/es/schema-component/antd/table/Table.Array.Designer.mjs +12 -0
- package/es/schema-component/antd/table/Table.Array.mjs +293 -0
- package/es/schema-component/antd/table/Table.Column.ActionBar.mjs +42 -0
- package/es/schema-component/antd/table/Table.Column.Decorator.mjs +49 -0
- package/es/schema-component/antd/table/Table.Column.Designer.mjs +144 -0
- package/es/schema-component/antd/table/Table.Column.mjs +10 -0
- package/es/schema-component/antd/table/Table.Designer.mjs +17 -0
- package/es/schema-component/antd/table/Table.RowActionDesigner.mjs +33 -0
- package/es/schema-component/antd/table/Table.RowSelection.mjs +29 -0
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +241 -0
- package/es/schema-component/antd/table/Table.Void.mjs +119 -0
- package/es/schema-component/antd/table/__tests__/table.test.mjs +21 -0
- package/es/schema-component/antd/table/demos/demo1.mjs +63 -0
- package/es/schema-component/antd/table/demos/demo2.mjs +63 -0
- package/es/schema-component/antd/table/demos/demo3.mjs +63 -0
- package/es/schema-component/antd/table/demos/demo4.mjs +217 -0
- package/es/schema-component/antd/table/index.mjs +24 -0
- package/es/schema-component/antd/table-v2/Table.ActionColumnDesigner.mjs +33 -0
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.mjs +49 -0
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.mjs +60 -0
- package/es/schema-component/antd/table-v2/Table.Column.Designer.mjs +445 -0
- package/es/schema-component/antd/table-v2/Table.Column.mjs +11 -0
- package/es/schema-component/antd/table-v2/Table.Designer.mjs +17 -0
- package/es/schema-component/antd/table-v2/Table.Index.mjs +10 -0
- package/es/schema-component/antd/table-v2/Table.mjs +445 -0
- package/es/schema-component/antd/table-v2/Table.styles.mjs +135 -0
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +328 -0
- package/es/schema-component/antd/table-v2/TableField.mjs +51 -0
- package/es/schema-component/antd/table-v2/TableSelector.mjs +3 -0
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +272 -0
- package/es/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +13 -0
- package/es/schema-component/antd/table-v2/components/ColumnFieldProvider.mjs +39 -0
- package/es/schema-component/antd/table-v2/demos/collections.mjs +1560 -0
- package/es/schema-component/antd/table-v2/demos/demo1.mjs +220 -0
- package/es/schema-component/antd/table-v2/demos/demo2.mjs +117 -0
- package/es/schema-component/antd/table-v2/index.mjs +21 -0
- package/es/schema-component/antd/table-v2/utils.mjs +13 -0
- package/es/schema-component/antd/tabs/Tabs.Designer.mjs +132 -0
- package/es/schema-component/antd/tabs/Tabs.mjs +98 -0
- package/es/schema-component/antd/tabs/__tests__/tabs.test.mjs +14 -0
- package/es/schema-component/antd/tabs/context.mjs +12 -0
- package/es/schema-component/antd/tabs/demos/demo1.mjs +67 -0
- package/es/schema-component/antd/tabs/index.mjs +2 -0
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +21 -0
- package/es/schema-component/antd/time-picker/TimePicker.mjs +22 -0
- package/es/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +45 -0
- package/es/schema-component/antd/time-picker/demos/demo1.mjs +40 -0
- package/es/schema-component/antd/time-picker/demos/demo2.mjs +40 -0
- package/es/schema-component/antd/time-picker/index.mjs +1 -0
- package/es/schema-component/antd/tree/Tree.mjs +82 -0
- package/es/schema-component/antd/tree/index.mjs +3 -0
- package/es/schema-component/antd/tree-select/ReadPretty.mjs +62 -0
- package/es/schema-component/antd/tree-select/TreeSelect.mjs +14 -0
- package/es/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +14 -0
- package/es/schema-component/antd/tree-select/demos/demo1.mjs +84 -0
- package/es/schema-component/antd/tree-select/index.mjs +1 -0
- package/es/schema-component/antd/unixTimestamp/UnixTimestamp.mjs +42 -0
- package/es/schema-component/antd/unixTimestamp/index.mjs +1 -0
- package/es/schema-component/antd/upload/ReadPretty.mjs +199 -0
- package/es/schema-component/antd/upload/Upload.mjs +330 -0
- package/es/schema-component/antd/upload/__tests__/upload.test.mjs +13 -0
- package/es/schema-component/antd/upload/demos/apiClient.mjs +43 -0
- package/es/schema-component/antd/upload/demos/demo1.mjs +48 -0
- package/es/schema-component/antd/upload/demos/demo2.mjs +115 -0
- package/es/schema-component/antd/upload/index.mjs +1 -0
- package/es/schema-component/antd/upload/placeholder.mjs +63 -0
- package/es/schema-component/antd/upload/shared.mjs +185 -0
- package/es/schema-component/antd/upload/style.mjs +75 -0
- package/es/schema-component/antd/upload/type.d.mjs +1 -0
- package/es/schema-component/antd/variable/CodeMirror.mjs +98 -0
- package/es/schema-component/antd/variable/Input.mjs +310 -0
- package/es/schema-component/antd/variable/JSONInput.mjs +37 -0
- package/es/schema-component/antd/variable/RawTextArea.mjs +99 -0
- package/es/schema-component/antd/variable/TextArea.mjs +387 -0
- package/es/schema-component/antd/variable/Variable.mjs +30 -0
- package/es/schema-component/antd/variable/VariableSelect.mjs +66 -0
- package/es/schema-component/antd/variable/VariableSelect.style.mjs +30 -0
- package/es/schema-component/antd/variable/XButton.mjs +21 -0
- package/es/schema-component/antd/variable/__tests__/variable.test.mjs +45 -0
- package/es/schema-component/antd/variable/demos/demo1.mjs +44 -0
- package/es/schema-component/antd/variable/demos/demo2.mjs +44 -0
- package/es/schema-component/antd/variable/demos/demo3.mjs +44 -0
- package/es/schema-component/antd/variable/index.mjs +1 -0
- package/es/schema-component/antd/variable/style.mjs +175 -0
- package/es/schema-component/common/dnd-context/index.mjs +100 -0
- package/es/schema-component/common/index.mjs +2 -0
- package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +123 -0
- package/es/schema-component/common/infinite-scroll/style.mjs +28 -0
- package/es/schema-component/common/sortable-item/SortableItem.mjs +131 -0
- package/es/schema-component/common/sortable-item/index.mjs +1 -0
- package/es/schema-component/common/utils/logic.mjs +386 -0
- package/es/schema-component/common/utils/uitls.mjs +111 -0
- package/es/schema-component/context.mjs +4 -0
- package/es/schema-component/core/DesignableSwitch.mjs +37 -0
- package/es/schema-component/core/FormProvider.mjs +53 -0
- package/es/schema-component/core/RemoteSchemaComponent.mjs +44 -0
- package/es/schema-component/core/SchemaComponent.mjs +60 -0
- package/es/schema-component/core/SchemaComponentOptions.mjs +44 -0
- package/es/schema-component/core/SchemaComponentPlugin.d.ts +5 -0
- package/es/schema-component/core/SchemaComponentPlugin.mjs +13 -0
- package/es/schema-component/core/SchemaComponentProvider.mjs +84 -0
- package/es/schema-component/core/index.d.ts +1 -6
- package/es/schema-component/core/index.mjs +7 -0
- package/es/schema-component/demos/demo1.mjs +89 -0
- package/es/schema-component/demos/demo2.mjs +23 -0
- package/es/schema-component/demos/demo3.mjs +24 -0
- package/es/schema-component/demos/demo4.mjs +24 -0
- package/es/schema-component/hooks/__tests__/designable.test.mjs +548 -0
- package/es/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +89 -0
- package/es/schema-component/hooks/index.mjs +12 -0
- package/es/schema-component/hooks/useAttach.mjs +16 -0
- package/es/schema-component/hooks/useCompile.mjs +40 -0
- package/es/schema-component/hooks/useComponent.mjs +10 -0
- package/es/schema-component/hooks/useDesignable.mjs +675 -0
- package/es/schema-component/hooks/useDesigner.mjs +19 -0
- package/es/schema-component/hooks/useFieldComponentOptions.mjs +87 -0
- package/es/schema-component/hooks/useFieldModeOptions.mjs +283 -0
- package/es/schema-component/hooks/useFieldProps.mjs +18 -0
- package/es/schema-component/hooks/useFieldTitle.mjs +22 -0
- package/es/schema-component/hooks/useProps.mjs +13 -0
- package/es/schema-component/hooks/useSchemaComponentContext.mjs +6 -0
- package/es/schema-component/hooks/useTableSize.mjs +31 -0
- package/es/schema-component/index.mjs +6 -0
- package/es/schema-component/types.mjs +1 -0
- package/es/schema-initializer/SchemaInitializerPlugin.d.ts +4 -0
- package/es/schema-initializer/SchemaInitializerPlugin.mjs +126 -0
- package/es/schema-initializer/buttons/CustomFormItemInitializers.mjs +46 -0
- package/es/schema-initializer/buttons/FormItemInitializers.mjs +152 -0
- package/es/schema-initializer/buttons/RecordBlockInitializers.mjs +375 -0
- package/es/schema-initializer/buttons/SubTableActionInitializers.mjs +35 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.mjs +162 -0
- package/es/schema-initializer/buttons/index.mjs +6 -0
- package/es/schema-initializer/components/CreateRecordAction.mjs +340 -0
- package/es/schema-initializer/components/DeletedField.mjs +13 -0
- package/es/schema-initializer/components/assigned-field/AssignedField.mjs +119 -0
- package/es/schema-initializer/components/assigned-field/index.mjs +1 -0
- package/es/schema-initializer/components/index.mjs +2 -0
- package/es/schema-initializer/demos/basic.mjs +62 -0
- package/es/schema-initializer/demos/build-type.mjs +83 -0
- package/es/schema-initializer/demos/custom-button.mjs +94 -0
- package/es/schema-initializer/demos/custom-items-component.mjs +100 -0
- package/es/schema-initializer/demos/dynamic-visible-children.mjs +81 -0
- package/es/schema-initializer/demos/insert-schema-action.mjs +92 -0
- package/es/schema-initializer/demos/insert-schema-basic.mjs +112 -0
- package/es/schema-initializer/demos/insert-schema-form-item.mjs +136 -0
- package/es/schema-initializer/demos/nested-items.mjs +148 -0
- package/es/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.mjs +21 -0
- package/es/schema-initializer/index.d.ts +1 -4
- package/es/schema-initializer/index.mjs +20 -0
- package/es/schema-initializer/items/ActionInitializer.mjs +14 -0
- package/es/schema-initializer/items/BlockInitializer.mjs +27 -0
- package/es/schema-initializer/items/CreateFilterActionInitializer.mjs +21 -0
- package/es/schema-initializer/items/CreateResetActionInitializer.mjs +16 -0
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +461 -0
- package/es/schema-initializer/items/CustomizeActionInitializer.mjs +12 -0
- package/es/schema-initializer/items/DataBlockInitializer.mjs +310 -0
- package/es/schema-initializer/items/DeleteEventActionInitializer.mjs +24 -0
- package/es/schema-initializer/items/FilterBlockInitializer.mjs +3 -0
- package/es/schema-initializer/items/G2PlotInitializer.mjs +16 -0
- package/es/schema-initializer/items/InitializerWithSwitch.mjs +25 -0
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.mjs +55 -0
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.mjs +55 -0
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.mjs +81 -0
- package/es/schema-initializer/items/RecordAssociationGridCardBlockInitializer.mjs +55 -0
- package/es/schema-initializer/items/RecordAssociationListBlockInitializer.mjs +55 -0
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.mjs +80 -0
- package/es/schema-initializer/items/SelectActionInitializer.mjs +63 -0
- package/es/schema-initializer/items/SubmitActionInitializer.mjs +21 -0
- package/es/schema-initializer/items/TableActionColumnInitializer.mjs +39 -0
- package/es/schema-initializer/items/index.mjs +23 -0
- package/es/schema-initializer/style.mjs +17 -0
- package/es/schema-initializer/utils.mjs +1368 -0
- package/es/schema-items/GeneralSchemaItems.mjs +150 -0
- package/es/schema-items/GeneralSettings.mjs +207 -0
- package/es/schema-items/OpenModeSchemaItems.mjs +186 -0
- package/es/schema-items/index.mjs +2 -0
- package/es/schema-settings/DataTemplates/FormDataTemplates.mjs +274 -0
- package/es/schema-settings/DataTemplates/TreeLabel.mjs +30 -0
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +46 -0
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +256 -0
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.style.mjs +7 -0
- package/es/schema-settings/DataTemplates/components/Designer.mjs +159 -0
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.mjs +270 -0
- package/es/schema-settings/DataTemplates/index.mjs +1 -0
- package/es/schema-settings/DataTemplates/utils.mjs +233 -0
- package/es/schema-settings/DateFormat/ExpiresRadio.mjs +122 -0
- package/es/schema-settings/EditCustomDefaultValue.mjs +108 -0
- package/es/schema-settings/EditFormulaTitleField.d.ts +2 -2
- package/es/schema-settings/EditFormulaTitleField.mjs +97 -0
- package/es/schema-settings/EnableChildCollections/DynamicComponent.mjs +64 -0
- package/es/schema-settings/EnableChildCollections/index.mjs +101 -0
- package/es/schema-settings/GeneralSchemaDesigner.mjs +264 -0
- package/es/schema-settings/LinkageRules/DynamicComponent.mjs +56 -0
- package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +223 -0
- package/es/schema-settings/LinkageRules/LinkageRuleActionGroup.mjs +83 -0
- package/es/schema-settings/LinkageRules/ValueDynamicComponent.mjs +156 -0
- package/es/schema-settings/LinkageRules/Variables.mjs +98 -0
- package/es/schema-settings/LinkageRules/action-hooks.mjs +103 -0
- package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +38 -0
- package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +254 -0
- package/es/schema-settings/LinkageRules/components/LinkageHeader.style.mjs +7 -0
- package/es/schema-settings/LinkageRules/context.mjs +8 -0
- package/es/schema-settings/LinkageRules/index.mjs +194 -0
- package/es/schema-settings/LinkageRules/type.mjs +15 -0
- package/es/schema-settings/LinkageRules/useValues.mjs +68 -0
- package/es/schema-settings/SchemaSettingCollection.mjs +50 -0
- package/es/schema-settings/SchemaSettingComponent.d.ts +1 -1
- package/es/schema-settings/SchemaSettingComponent.mjs +38 -0
- package/es/schema-settings/SchemaSettings.mjs +1334 -0
- package/es/schema-settings/SchemaSettingsDataScope.mjs +100 -0
- package/es/schema-settings/SchemaSettingsDateFormat.mjs +199 -0
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +204 -0
- package/es/schema-settings/SchemaSettingsNumberFormat.mjs +178 -0
- package/es/schema-settings/SchemaSettingsPlugin.mjs +108 -0
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +123 -0
- package/es/schema-settings/VariableInput/VariableInput.mjs +164 -0
- package/es/schema-settings/VariableInput/hooks/index.mjs +3 -0
- package/es/schema-settings/VariableInput/hooks/useBaseVariable.mjs +160 -0
- package/es/schema-settings/VariableInput/hooks/useBlockCollection.mjs +10 -0
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +97 -0
- package/es/schema-settings/VariableInput/hooks/useDateVariable.mjs +163 -0
- package/es/schema-settings/VariableInput/hooks/useFilterVariable.mjs +52 -0
- package/es/schema-settings/VariableInput/hooks/useFormVariable.mjs +42 -0
- package/es/schema-settings/VariableInput/hooks/useIterationVariable.mjs +45 -0
- package/es/schema-settings/VariableInput/hooks/useParentRecordVariable.mjs +43 -0
- package/es/schema-settings/VariableInput/hooks/usePopupVariable.mjs +24 -0
- package/es/schema-settings/VariableInput/hooks/useRecordVariable.mjs +38 -0
- package/es/schema-settings/VariableInput/hooks/useRoleVariable.mjs +41 -0
- package/es/schema-settings/VariableInput/hooks/useUserVariable.mjs +41 -0
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.mjs +102 -0
- package/es/schema-settings/VariableInput/index.mjs +2 -0
- package/es/schema-settings/VariableInput/type.mjs +0 -0
- package/es/schema-settings/VariableInput/utils/formatVariableScop.mjs +11 -0
- package/es/schema-settings/demos/basic.mjs +60 -0
- package/es/schema-settings/demos/built-type.mjs +142 -0
- package/es/schema-settings/demos/custom-component.mjs +42 -0
- package/es/schema-settings/demos/demo3.mjs +100 -0
- package/es/schema-settings/demos/schema-basic.mjs +64 -0
- package/es/schema-settings/filter-form/FormFilterScope.mjs +109 -0
- package/es/schema-settings/filter-form/context.mjs +6 -0
- package/es/schema-settings/hooks/useFilterFormCustomProps.mjs +16 -0
- package/es/schema-settings/hooks/useGetAriaLabelOfDesigner.mjs +24 -0
- package/es/schema-settings/hooks/useIsAllowToSetDefaultValue.mjs +67 -0
- package/es/schema-settings/hooks/useIsShowMultipleSwitch.mjs +16 -0
- package/es/schema-settings/hooks/useParseDataScopeFilter.d.ts +2 -2
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +54 -0
- package/es/schema-settings/index.d.ts +2 -2
- package/es/schema-settings/index.mjs +18 -0
- package/es/schema-settings/isPatternDisabled.mjs +5 -0
- package/es/schema-settings/styles.mjs +84 -0
- package/es/schema-settings/types.mjs +0 -0
- package/es/schema-templates/BlockTemplate.mjs +41 -0
- package/es/schema-templates/BlockTemplateDetails.mjs +100 -0
- package/es/schema-templates/BlockTemplatePage.mjs +32 -0
- package/es/schema-templates/SchemaTemplateManagerProvider.mjs +74 -0
- package/es/schema-templates/collections/uiSchemaTemplates.mjs +19 -0
- package/es/schema-templates/index.mjs +4 -0
- package/es/schema-templates/schemas/CollectionTitle.mjs +37 -0
- package/es/schema-templates/schemas/uiSchemaTemplates.mjs +231 -0
- package/es/schema-templates/useSchemaTemplateManager.mjs +88 -0
- package/es/style/css-variable/CSSVariableProvider.mjs +74 -0
- package/es/style/css-variable/index.mjs +3 -0
- package/es/style/index.d.ts +2 -2
- package/es/style/index.mjs +11 -0
- package/es/style/theme/AntdAppProvider.mjs +35 -0
- package/es/style/theme/defaultTheme.mjs +19 -0
- package/es/style/theme/index.mjs +63 -0
- package/es/style/theme/type.mjs +0 -0
- package/es/style/useToken.mjs +6 -0
- package/es/testUtils/index.mjs +1 -0
- package/es/testUtils/mockAPIClient.mjs +32 -0
- package/es/user/ChangePassword.mjs +157 -0
- package/es/user/CurrentUser.mjs +222 -0
- package/es/user/CurrentUserProvider.mjs +59 -0
- package/es/user/CurrentUserSettingsMenuProvider.mjs +69 -0
- package/es/user/EditProfile.mjs +149 -0
- package/es/user/LanguageSettings.mjs +46 -0
- package/es/user/SwitchRole.mjs +41 -0
- package/es/user/VerificationCode.mjs +83 -0
- package/es/user/__tests__/current-user-settings-menu-provider.test.mjs +36 -0
- package/es/user/index.mjs +3 -0
- package/es/variables/VariablesProvider.mjs +214 -0
- package/es/variables/__tests__/useVariables.test.mjs +406 -0
- package/es/variables/__tests__/utils/filterEmptyValues.test.mjs +46 -0
- package/es/variables/__tests__/utils/getPath.test.mjs +4 -0
- package/es/variables/__tests__/utils/getVariableName.test.mjs +4 -0
- package/es/variables/__tests__/utils/isVariable.test.mjs +22 -0
- package/es/variables/__tests__/utils/transformVariableValue.test.mjs +136 -0
- package/es/variables/__tests__/utils/uniq.test.mjs +77 -0
- package/es/variables/constants.mjs +2 -0
- package/es/variables/hooks/useBuiltinVariables.mjs +51 -0
- package/es/variables/hooks/useContextVariable.mjs +27 -0
- package/es/variables/hooks/useLocalVariables.mjs +68 -0
- package/es/variables/hooks/useVariables.mjs +5 -0
- package/es/variables/index.mjs +15 -0
- package/es/variables/types.mjs +0 -0
- package/es/variables/utils/filterEmptyValues.mjs +5 -0
- package/es/variables/utils/getAction.mjs +8 -0
- package/es/variables/utils/getPath.mjs +7 -0
- package/es/variables/utils/getVariableName.mjs +10 -0
- package/es/variables/utils/hasRequested.mjs +13 -0
- package/es/variables/utils/isVariable.mjs +8 -0
- package/es/variables/utils/transformVariableValue.mjs +30 -0
- package/es/variables/utils/uniq.mjs +10 -0
- package/lib/api-client/APIClient.js +179 -0
- package/lib/api-client/APIClientProvider.js +45 -0
- package/lib/api-client/__tests__/APIClient.test.js +90 -0
- package/lib/api-client/context.js +39 -0
- package/lib/api-client/demos/demo1.js +80 -0
- package/lib/api-client/demos/demo2.js +79 -0
- package/lib/api-client/demos/demo3.js +122 -0
- package/lib/api-client/hooks/assign.js +110 -0
- package/lib/api-client/hooks/index.js +83 -0
- package/lib/api-client/hooks/useAPIClient.js +40 -0
- package/lib/api-client/hooks/useRequest.js +72 -0
- package/lib/api-client/hooks/useResource.js +40 -0
- package/lib/api-client/index.js +92 -0
- package/lib/application/AppSchemaComponentProvider.js +63 -0
- package/lib/application/Application.js +360 -0
- package/lib/application/AttachmentPreviewManager.js +67 -0
- package/lib/application/NoticesManager.js +154 -0
- package/lib/application/Plugin.js +96 -0
- package/lib/application/PluginContextMenu.js +65 -0
- package/lib/application/PluginManager.js +117 -0
- package/lib/application/RouterManager.js +150 -0
- package/lib/application/SystemSettingsManager.js +145 -0
- package/lib/application/UserSettingsManager.js +147 -0
- package/lib/application/WebSocketClient.js +190 -0
- package/lib/application/__tests__/Application.test.js +517 -0
- package/lib/application/__tests__/Plugin.test.js +233 -0
- package/lib/application/__tests__/PluginSettingsManager.test.js +192 -0
- package/lib/application/__tests__/RouterManager.test.js +347 -0
- package/lib/application/__tests__/SchemaInitializer.test.js +170 -0
- package/lib/application/__tests__/SchemaToolbar.test.js +150 -0
- package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.js +194 -0
- package/lib/application/__tests__/hooks.test.js +92 -0
- package/lib/application/__tests__/utils/remotePlugins.test.js +325 -0
- package/lib/application/__tests__/utils.test.js +106 -0
- package/lib/application/components/AppComponent.js +89 -0
- package/lib/application/components/BlankComponent.js +43 -0
- package/lib/application/components/MainComponent.js +65 -0
- package/lib/application/components/RouterContextCleaner.js +64 -0
- package/lib/application/components/defaultComponents.js +59 -0
- package/lib/application/components/index.js +92 -0
- package/lib/application/context.js +38 -0
- package/lib/application/demos/demo1.js +144 -0
- package/lib/application/demos/demo2.js +160 -0
- package/lib/application/demos/demo3.js +46 -0
- package/lib/application/hoc/index.js +65 -0
- package/lib/application/hoc/withDynamicSchemaProps.js +164 -0
- package/lib/application/hooks/index.js +83 -0
- package/lib/application/hooks/useApp.js +38 -0
- package/lib/application/hooks/usePlugin.js +40 -0
- package/lib/application/hooks/useRouter.js +40 -0
- package/lib/application/index.js +233 -0
- package/lib/application/schema-initializer/SchemaInitializer.js +112 -0
- package/lib/application/schema-initializer/SchemaInitializerManager.js +108 -0
- package/lib/application/schema-initializer/components/SchemaInitializerActionModal.js +145 -0
- package/lib/application/schema-initializer/components/SchemaInitializerButton.js +87 -0
- package/lib/application/schema-initializer/components/SchemaInitializerChildren.js +104 -0
- package/lib/application/schema-initializer/components/SchemaInitializerDivider.js +47 -0
- package/lib/application/schema-initializer/components/SchemaInitializerItem.js +139 -0
- package/lib/application/schema-initializer/components/SchemaInitializerItemGroup.js +71 -0
- package/lib/application/schema-initializer/components/SchemaInitializerItems.js +45 -0
- package/lib/application/schema-initializer/components/SchemaInitializerSelect.js +98 -0
- package/lib/application/schema-initializer/components/SchemaInitializerSubMenu.js +157 -0
- package/lib/application/schema-initializer/components/SchemaInitializerSwitch.js +73 -0
- package/lib/application/schema-initializer/components/index.js +146 -0
- package/lib/application/schema-initializer/components/style.js +75 -0
- package/lib/application/schema-initializer/context/index.js +59 -0
- package/lib/application/schema-initializer/hoc/index.js +165 -0
- package/lib/application/schema-initializer/hooks/index.js +251 -0
- package/lib/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.js +51 -0
- package/lib/application/schema-initializer/index.js +119 -0
- package/lib/application/schema-initializer/types.js +19 -0
- package/lib/application/schema-settings/SchemaSettings.js +107 -0
- package/lib/application/schema-settings/SchemaSettingsDefaults.js +249 -0
- package/lib/application/schema-settings/SchemaSettingsManager.js +108 -0
- package/lib/application/schema-settings/components/SchemaSettingsChildren.js +125 -0
- package/lib/application/schema-settings/components/SchemaSettingsIcon.js +67 -0
- package/lib/application/schema-settings/components/SchemaSettingsWrapper.js +81 -0
- package/lib/application/schema-settings/components/index.js +74 -0
- package/lib/application/schema-settings/context/index.js +42 -0
- package/lib/application/schema-settings/hooks/index.js +92 -0
- package/lib/application/schema-settings/index.js +110 -0
- package/lib/application/schema-settings/types.js +19 -0
- package/lib/application/schema-toolbar/context/index.js +51 -0
- package/lib/application/schema-toolbar/hooks/index.js +59 -0
- package/lib/application/schema-toolbar/index.js +74 -0
- package/lib/application/utils/globalDeps.js +112 -0
- package/lib/application/utils/index.js +74 -0
- package/lib/application/utils/remotePlugins.js +153 -0
- package/lib/async-data-provider/index.js +57 -0
- package/lib/block-provider/BlockProvider.js +373 -0
- package/lib/block-provider/DetailsBlockProvider.js +149 -0
- package/lib/block-provider/FilterFormBlockProvider.js +53 -0
- package/lib/block-provider/FormBlockProvider.js +220 -0
- package/lib/block-provider/FormFieldProvider.js +122 -0
- package/lib/block-provider/MobileProvider.js +50 -0
- package/lib/block-provider/PageLayout.js +43 -0
- package/lib/block-provider/TableBlockProvider.js +147 -0
- package/lib/block-provider/TableFieldProvider.js +202 -0
- package/lib/block-provider/TableSelectorProvider.js +338 -0
- package/lib/block-provider/TreeBlockProvider.js +154 -0
- package/lib/block-provider/hooks/index.js +1559 -0
- package/lib/block-provider/hooks/useDataBlockSourceId.js +48 -0
- package/lib/block-provider/hooks/useFormActiveFields.js +69 -0
- package/lib/block-provider/hooks/useIsMobile.js +41 -0
- package/lib/block-provider/hooks/useParsedFilter.js +96 -0
- package/lib/block-provider/index.js +155 -0
- package/lib/built-in/acl/ACLPlugin.js +47 -0
- package/lib/built-in/acl/ACLProvider.js +328 -0
- package/lib/built-in/acl/ACLShortcut.js +57 -0
- package/lib/built-in/acl/Configuration/ConfigureCenter.js +158 -0
- package/lib/built-in/acl/Configuration/MenuConfigure.js +181 -0
- package/lib/built-in/acl/Configuration/MenuItemsProvider.js +76 -0
- package/lib/built-in/acl/Configuration/PermisionProvider.js +105 -0
- package/lib/built-in/acl/Configuration/RoleConfigure.js +175 -0
- package/lib/built-in/acl/Configuration/RoleTable.js +75 -0
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +251 -0
- package/lib/built-in/acl/Configuration/ScopeSelect.js +76 -0
- package/lib/built-in/acl/Configuration/StrategyActions.js +143 -0
- package/lib/built-in/acl/Configuration/index.js +153 -0
- package/lib/built-in/acl/Configuration/schemas/roles.js +443 -0
- package/lib/built-in/acl/Configuration/schemas/scopes.js +397 -0
- package/lib/built-in/acl/Configuration/schemas/useRoleResourceValues.js +69 -0
- package/lib/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.js +57 -0
- package/lib/built-in/acl/index.js +92 -0
- package/lib/built-in/acl/style.js +57 -0
- package/lib/built-in/admin-layout/AdminContent.js +47 -0
- package/lib/built-in/admin-layout/AdminLayout.js +48 -0
- package/lib/built-in/admin-layout/AdminLayoutPlugin.js +48 -0
- package/lib/built-in/admin-layout/AdminProvider.js +70 -0
- package/lib/built-in/admin-layout/AdminTabs.js +43 -0
- package/lib/built-in/admin-layout/InternalAdminLayout.js +116 -0
- package/lib/built-in/admin-layout/MenuEditor.js +150 -0
- package/lib/built-in/admin-layout/NoticeArea.js +50 -0
- package/lib/built-in/admin-layout/components/AddNewButton.js +89 -0
- package/lib/built-in/admin-layout/components/WelcomeCard.js +115 -0
- package/lib/built-in/admin-layout/filterByACL.js +51 -0
- package/lib/built-in/admin-layout/index.js +137 -0
- package/lib/built-in/admin-layout/style.js +176 -0
- package/lib/built-in/assistant/Assistant.provider.js +125 -0
- package/lib/built-in/assistant/ai-chat/index.js +378 -0
- package/lib/built-in/assistant/ai-chat/index.module.js +64 -0
- package/lib/built-in/assistant/ai-chat/index_module.css +257 -0
- package/lib/built-in/assistant/calculator/AutoScalingText.js +67 -0
- package/lib/built-in/assistant/calculator/Calculator.js +283 -0
- package/lib/built-in/assistant/calculator/CalculatorDisplay.js +55 -0
- package/lib/built-in/assistant/calculator/CalculatorKey.js +45 -0
- package/lib/built-in/assistant/calculator/CalculatorProvider.js +65 -0
- package/lib/built-in/assistant/calculator/Draggable.js +102 -0
- package/lib/built-in/assistant/calculator/style.js +59 -0
- package/lib/built-in/assistant/index.js +46 -0
- package/lib/built-in/assistant/search-and-jump/index.js +96 -0
- package/lib/built-in/attachment-preview/index.js +49 -0
- package/lib/built-in/attachment-preview/interface.js +19 -0
- package/lib/built-in/attachment-preview/previewers/file-default.js +117 -0
- package/lib/built-in/attachment-preview/previewers/file-pdf.js +143 -0
- package/lib/built-in/attachment-preview/previewers/file-pdf.style.js +79 -0
- package/lib/built-in/attachment-preview/previewers/file-sheet.js +153 -0
- package/lib/built-in/attachment-preview/previewers/file-sheet.style.js +79 -0
- package/lib/built-in/attachment-preview/previewers/image-jpeg.js +68 -0
- package/lib/built-in/attachment-preview/previewers/image-png.js +68 -0
- package/lib/built-in/attachment-preview/previewers/image-svg.js +54 -0
- package/lib/built-in/attachment-preview/previewers/index.js +110 -0
- package/lib/built-in/block-schema-component/index.js +121 -0
- package/lib/built-in/built-in-collections/index.js +94 -0
- package/lib/built-in/context-menu/ContextMenu.provider.js +102 -0
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +183 -0
- package/lib/built-in/context-menu/index.js +52 -0
- package/lib/built-in/context-menu/useContextMenu.js +39 -0
- package/lib/built-in/document-title/index.js +91 -0
- package/lib/built-in/dynamic-page/DynamicPage.js +70 -0
- package/lib/built-in/dynamic-page/index.js +109 -0
- package/lib/built-in/dynamic-page/style.js +87 -0
- package/lib/built-in/dynamic-page/utils.js +97 -0
- package/lib/built-in/index.js +668 -0
- package/lib/built-in/locale/LocalePlugin.js +132 -0
- package/lib/built-in/locale/loadConstrueLocale.js +233 -0
- package/lib/built-in/page-style/CustomAdminHeader.js +43 -0
- package/lib/built-in/page-style/PageStyle.provider.js +67 -0
- package/lib/built-in/page-style/TabContent.js +101 -0
- package/lib/built-in/page-style/TabHeader.js +129 -0
- package/lib/built-in/page-style/index.js +48 -0
- package/lib/built-in/page-style/usePageStyle.js +38 -0
- package/lib/built-in/page-style/useTabSettings.js +105 -0
- package/lib/built-in/pinned-list/PinnedPluginListProvider.js +96 -0
- package/lib/built-in/pinned-list/PluginPinnedList.js +42 -0
- package/lib/built-in/pinned-list/context.js +40 -0
- package/lib/built-in/pinned-list/index.js +74 -0
- package/lib/built-in/pm/PluginCard.js +305 -0
- package/lib/built-in/pm/PluginDetail.js +369 -0
- package/lib/built-in/pm/PluginDocument.js +105 -0
- package/lib/built-in/pm/PluginForm/form/PluginNpmForm.js +175 -0
- package/lib/built-in/pm/PluginForm/form/PluginUploadForm.js +141 -0
- package/lib/built-in/pm/PluginForm/form/PluginUrlForm.js +135 -0
- package/lib/built-in/pm/PluginForm/modal/PluginAddModal.js +95 -0
- package/lib/built-in/pm/PluginForm/modal/PluginUpgradeModal.js +99 -0
- package/lib/built-in/pm/PluginManager.js +319 -0
- package/lib/built-in/pm/index.js +90 -0
- package/lib/built-in/pm/style.js +106 -0
- package/lib/built-in/pm/types.js +19 -0
- package/lib/built-in/quick-access/Action.js +124 -0
- package/lib/built-in/quick-access/Block.js +163 -0
- package/lib/built-in/quick-access/CustomRequestActionSchemaInitializerItem.js +125 -0
- package/lib/built-in/quick-access/LinkActionSchemaInitializerItem.js +118 -0
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +126 -0
- package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.js +153 -0
- package/lib/built-in/quick-access/SchemaSettingsBlockTitleItem.js +79 -0
- package/lib/built-in/quick-access/blockInitializerItem.js +53 -0
- package/lib/built-in/quick-access/blockSchema.js +53 -0
- package/lib/built-in/quick-access/blockSettings.js +100 -0
- package/lib/built-in/quick-access/configureActions.js +49 -0
- package/lib/built-in/quick-access/index.js +65 -0
- package/lib/built-in/scroll-assistant/ScrollAssistant.provider.js +76 -0
- package/lib/built-in/scroll-assistant/ScrollAssistantStatus.provider.js +57 -0
- package/lib/built-in/scroll-assistant/index.js +61 -0
- package/lib/built-in/scroll-assistant/useJoystick.js +201 -0
- package/lib/built-in/setting-layout/AdminSettings.js +161 -0
- package/lib/built-in/setting-layout/SettingLayout.js +171 -0
- package/lib/built-in/setting-layout/SettingsCenterDropdown.js +109 -0
- package/lib/built-in/system-settings/SystemSettingsProvider.js +53 -0
- package/lib/built-in/system-settings/SystemSettingsShortcut.js +196 -0
- package/lib/built-in/system-settings/index.js +98 -0
- package/lib/built-in/system-version/SystemVersion.provider.js +68 -0
- package/lib/built-in/system-version/index.js +42 -0
- package/lib/built-in/user-settings/UserSettingsLayout.js +203 -0
- package/lib/built-in/user-settings/index.js +51 -0
- package/lib/built-in/user-settings/style.js +106 -0
- package/lib/collection-manager/CollectionHistoryProvider.js +94 -0
- package/lib/collection-manager/CollectionManagerProvider.js +93 -0
- package/lib/collection-manager/CollectionManagerSchemaComponentProvider.js +57 -0
- package/lib/collection-manager/CollectionProvider_deprecated.js +55 -0
- package/lib/collection-manager/Configuration/AddCollectionAction.js +259 -0
- package/lib/collection-manager/Configuration/AddFieldAction.js +409 -0
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +174 -0
- package/lib/collection-manager/Configuration/DeleteCollectionAction.js +257 -0
- package/lib/collection-manager/Configuration/EditCollectionAction.js +223 -0
- package/lib/collection-manager/Configuration/EditFieldAction.js +297 -0
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +163 -0
- package/lib/collection-manager/Configuration/ImportCollectionMetaAction.js +176 -0
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +265 -0
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +233 -0
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +200 -0
- package/lib/collection-manager/Configuration/ViewInheritedField.js +188 -0
- package/lib/collection-manager/Configuration/components/CollectionCategory.js +52 -0
- package/lib/collection-manager/Configuration/components/CollectionFieldInterfaceTag.js +53 -0
- package/lib/collection-manager/Configuration/components/CollectionTemplateTag.js +52 -0
- package/lib/collection-manager/Configuration/components/FieldSummary.js +67 -0
- package/lib/collection-manager/Configuration/components/Summary.js +95 -0
- package/lib/collection-manager/Configuration/components/TemplateSummary.js +67 -0
- package/lib/collection-manager/Configuration/components/index.js +360 -0
- package/lib/collection-manager/Configuration/index.js +225 -0
- package/lib/collection-manager/Configuration/interfaces.js +70 -0
- package/lib/collection-manager/ResourceActionProvider.js +174 -0
- package/lib/collection-manager/action-hooks.js +615 -0
- package/lib/collection-manager/collectionPlugin.js +163 -0
- package/lib/collection-manager/context.js +41 -0
- package/lib/collection-manager/demos/demo2.js +140 -0
- package/lib/collection-manager/demos/demo3.js +124 -0
- package/lib/collection-manager/demos/demo4.js +202 -0
- package/lib/collection-manager/demos/demo5.js +186 -0
- package/lib/collection-manager/hooks/index.js +92 -0
- package/lib/collection-manager/hooks/useCollectionDataSource.js +51 -0
- package/lib/collection-manager/hooks/useCollectionField_deprecated.js +55 -0
- package/lib/collection-manager/hooks/useCollectionManager_deprecated.js +272 -0
- package/lib/collection-manager/hooks/useCollection_deprecated.js +88 -0
- package/lib/collection-manager/hooks/useDialect.js +45 -0
- package/lib/collection-manager/index.js +437 -0
- package/lib/collection-manager/interfaces/__tests__/json.js +47 -0
- package/lib/collection-manager/interfaces/checkbox.js +83 -0
- package/lib/collection-manager/interfaces/checkboxGroup.js +77 -0
- package/lib/collection-manager/interfaces/chinaRegion.js +136 -0
- package/lib/collection-manager/interfaces/collection.js +77 -0
- package/lib/collection-manager/interfaces/color.js +65 -0
- package/lib/collection-manager/interfaces/components/index.js +88 -0
- package/lib/collection-manager/interfaces/createdAt.js +69 -0
- package/lib/collection-manager/interfaces/createdBy.js +89 -0
- package/lib/collection-manager/interfaces/datetime.js +78 -0
- package/lib/collection-manager/interfaces/email.js +76 -0
- package/lib/collection-manager/interfaces/icon.js +62 -0
- package/lib/collection-manager/interfaces/id.js +88 -0
- package/lib/collection-manager/interfaces/index.js +407 -0
- package/lib/collection-manager/interfaces/input.js +216 -0
- package/lib/collection-manager/interfaces/integer.js +152 -0
- package/lib/collection-manager/interfaces/json.js +109 -0
- package/lib/collection-manager/interfaces/linkTo.js +126 -0
- package/lib/collection-manager/interfaces/m2m.js +251 -0
- package/lib/collection-manager/interfaces/m2o.js +193 -0
- package/lib/collection-manager/interfaces/markdown.js +111 -0
- package/lib/collection-manager/interfaces/multipleSelect.js +82 -0
- package/lib/collection-manager/interfaces/nanoid.js +94 -0
- package/lib/collection-manager/interfaces/number.js +165 -0
- package/lib/collection-manager/interfaces/o2m.js +226 -0
- package/lib/collection-manager/interfaces/o2o.js +488 -0
- package/lib/collection-manager/interfaces/password.js +97 -0
- package/lib/collection-manager/interfaces/percent.js +196 -0
- package/lib/collection-manager/interfaces/phone.js +68 -0
- package/lib/collection-manager/interfaces/properties/index.js +539 -0
- package/lib/collection-manager/interfaces/properties/operators.js +436 -0
- package/lib/collection-manager/interfaces/radioGroup.js +68 -0
- package/lib/collection-manager/interfaces/richText.js +109 -0
- package/lib/collection-manager/interfaces/select.js +80 -0
- package/lib/collection-manager/interfaces/sort.js +140 -0
- package/lib/collection-manager/interfaces/subTable.js +231 -0
- package/lib/collection-manager/interfaces/tableoid.js +82 -0
- package/lib/collection-manager/interfaces/textarea.js +109 -0
- package/lib/collection-manager/interfaces/time.js +81 -0
- package/lib/collection-manager/interfaces/types.js +19 -0
- package/lib/collection-manager/interfaces/unixTimestamp.js +86 -0
- package/lib/collection-manager/interfaces/updatedAt.js +69 -0
- package/lib/collection-manager/interfaces/updatedBy.js +89 -0
- package/lib/collection-manager/interfaces/url.js +68 -0
- package/lib/collection-manager/interfaces/uuid.js +82 -0
- package/lib/collection-manager/mixins/InheritanceCollectionMixin.js +221 -0
- package/lib/collection-manager/sub-table.js +275 -0
- package/lib/collection-manager/templates/components/PresetFields.js +262 -0
- package/lib/collection-manager/templates/components/PreviewFields.js +357 -0
- package/lib/collection-manager/templates/components/PreviewTable.js +174 -0
- package/lib/collection-manager/templates/components/sql-collection/FieldsConfigure.js +328 -0
- package/lib/collection-manager/templates/components/sql-collection/PreviewTable.js +94 -0
- package/lib/collection-manager/templates/components/sql-collection/SQLInput.js +124 -0
- package/lib/collection-manager/templates/components/sql-collection/SQLRequestProvider.js +85 -0
- package/lib/collection-manager/templates/components/sql-collection/index.js +92 -0
- package/lib/collection-manager/templates/expression.js +96 -0
- package/lib/collection-manager/templates/general.js +54 -0
- package/lib/collection-manager/templates/import.js +53 -0
- package/lib/collection-manager/templates/index.js +110 -0
- package/lib/collection-manager/templates/properties/index.js +104 -0
- package/lib/collection-manager/templates/sql.js +119 -0
- package/lib/collection-manager/templates/tree.js +112 -0
- package/lib/collection-manager/templates/types.js +19 -0
- package/lib/collection-manager/templates/view.js +193 -0
- package/lib/collection-manager/types.js +19 -0
- package/lib/collection-manager/utils.js +55 -0
- package/lib/common/SelectWithTitle.js +78 -0
- package/lib/common/appInfo/CurrentAppInfoProvider.js +53 -0
- package/lib/common/appInfo/index.js +65 -0
- package/lib/common/index.js +83 -0
- package/lib/common/useFieldComponentName.js +57 -0
- package/lib/common/useNiceDropdownHeight.js +52 -0
- package/lib/data-source/__tests__/collection/AssociationProvider.test.js +120 -0
- package/lib/data-source/__tests__/collection/Collection.test.js +304 -0
- package/lib/data-source/__tests__/collection/CollectionManager.test.js +304 -0
- package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.js +121 -0
- package/lib/data-source/__tests__/collection/CollectionProvider.test.js +113 -0
- package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.js +94 -0
- package/lib/data-source/__tests__/collection-field/CollectionField.test.js +74 -0
- package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.js +58 -0
- package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.js +169 -0
- package/lib/data-source/__tests__/collection-record/CollectionRecord.test.js +28 -0
- package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.js +260 -0
- package/lib/data-source/__tests__/collection-record/isNewRecord.test.js +52 -0
- package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.js +130 -0
- package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.js +50 -0
- package/lib/data-source/__tests__/data-block/DataBlockProvider.test.js +154 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.js +122 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.js +187 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.js +143 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.js +222 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.js +172 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.js +128 -0
- package/lib/data-source/__tests__/data-block/data-block-demos/createApp.js +103 -0
- package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.js +42 -0
- package/lib/data-source/__tests__/data-source/DataSource.test.js +82 -0
- package/lib/data-source/__tests__/data-source/DataSourceManager.test.js +173 -0
- package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.js +37 -0
- package/lib/data-source/__tests__/data-source/DataSourceProvider.test.js +86 -0
- package/lib/data-source/__tests__/utils.test.js +62 -0
- package/lib/data-source/collection/AssociationProvider.js +78 -0
- package/lib/data-source/collection/Collection.js +211 -0
- package/lib/data-source/collection/CollectionManager.js +153 -0
- package/lib/data-source/collection/CollectionManagerProvider.js +84 -0
- package/lib/data-source/collection/CollectionProvider.js +75 -0
- package/lib/data-source/collection/ExtendCollectionsProvider.js +66 -0
- package/lib/data-source/collection/index.js +110 -0
- package/lib/data-source/collection/utils.js +85 -0
- package/lib/data-source/collection-field/CollectionField.js +108 -0
- package/lib/data-source/collection-field/CollectionFieldProvider.js +76 -0
- package/lib/data-source/collection-field/index.js +74 -0
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +69 -0
- package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.js +95 -0
- package/lib/data-source/collection-field-interface/index.js +74 -0
- package/lib/data-source/collection-record/CollectionRecord.js +64 -0
- package/lib/data-source/collection-record/CollectionRecordProvider.js +101 -0
- package/lib/data-source/collection-record/index.js +74 -0
- package/lib/data-source/collection-record/isNewRecord.js +44 -0
- package/lib/data-source/collection-template/CollectionTemplate.js +68 -0
- package/lib/data-source/collection-template/CollectionTemplateManager.js +88 -0
- package/lib/data-source/collection-template/index.js +74 -0
- package/lib/data-source/commonsSettingsItem/fieldComponent.js +105 -0
- package/lib/data-source/commonsSettingsItem/index.js +65 -0
- package/lib/data-source/components/CollectionDeletedPlaceholder.js +115 -0
- package/lib/data-source/components/DataSourceApplicationProvider.js +49 -0
- package/lib/data-source/components/index.js +74 -0
- package/lib/data-source/data-block/DataBlockProvider.js +117 -0
- package/lib/data-source/data-block/DataBlockRequestProvider.js +160 -0
- package/lib/data-source/data-block/DataBlockResourceProvider.js +90 -0
- package/lib/data-source/data-block/context/ConfigSetting.provider.js +46 -0
- package/lib/data-source/data-block/index.js +92 -0
- package/lib/data-source/data-source/DataSource.js +107 -0
- package/lib/data-source/data-source/DataSourceManager.js +158 -0
- package/lib/data-source/data-source/DataSourceManagerProvider.js +52 -0
- package/lib/data-source/data-source/DataSourceProvider.js +105 -0
- package/lib/data-source/data-source/index.js +92 -0
- package/lib/data-source/index.js +146 -0
- package/lib/data-source/utils.js +52 -0
- package/lib/env.d.js +6 -0
- package/lib/filter-provider/FilterProvider.js +177 -0
- package/lib/filter-provider/__tests__/transformToFilter.js +72 -0
- package/lib/filter-provider/__tests__/useFilter.js +48 -0
- package/lib/filter-provider/__tests__/utiles.test.js +272 -0
- package/lib/filter-provider/index.js +74 -0
- package/lib/filter-provider/utils.js +238 -0
- package/lib/flag-provider/FlagProvider.js +57 -0
- package/lib/flag-provider/__tests__/flag-provider.test.js +26 -0
- package/lib/flag-provider/hooks/useFlag.js +38 -0
- package/lib/flag-provider/index.js +74 -0
- package/lib/global.css +34 -0
- package/lib/hooks/index.js +74 -0
- package/lib/hooks/useAdminSchemaUid.js +38 -0
- package/lib/hooks/useMenuItem.js +122 -0
- package/lib/hooks/useViewport.js +69 -0
- package/lib/i18n/i18n.js +73 -0
- package/lib/i18n/index.js +65 -0
- package/lib/icon/Icon.js +110 -0
- package/lib/icon/__tests__/icon.test.js +63 -0
- package/lib/icon/demos/antd-icon.js +41 -0
- package/lib/icon/demos/custom-icon.js +50 -0
- package/lib/icon/demos/iconfont.js +44 -0
- package/lib/icon/demos/register-icon.js +57 -0
- package/lib/icon/index.js +65 -0
- package/lib/icon/preloaded.js +163 -0
- package/lib/index.js +673 -1815
- package/lib/modules/actions/ActionSchemaToolbar.js +44 -0
- package/lib/modules/actions/add-child/CreateChildInitializer.js +98 -0
- package/lib/modules/actions/add-child/addChildActionSettings.js +98 -0
- package/lib/modules/actions/add-new/CreateActionInitializer.js +101 -0
- package/lib/modules/actions/add-new/addNewActionSettings.js +91 -0
- package/lib/modules/actions/add-new/createFormBlockInitializers.js +90 -0
- package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.js +97 -0
- package/lib/modules/actions/add-record/customizeAddRecordActionSettings.js +69 -0
- package/lib/modules/actions/add-record/customizeCreateFormBlockInitializers.js +70 -0
- package/lib/modules/actions/bulk-destroy/BulkDestroyActionInitializer.js +69 -0
- package/lib/modules/actions/bulk-destroy/bulkDeleteActionSettings.js +64 -0
- package/lib/modules/actions/delete/DestroyActionInitializer.js +62 -0
- package/lib/modules/actions/delete/deleteActionSettings.js +73 -0
- package/lib/modules/actions/disassociate/DisassociateActionInitializer.js +62 -0
- package/lib/modules/actions/disassociate/__e2e__/disassociate.test.js +46 -0
- package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +419 -0
- package/lib/modules/actions/disassociate/disassociateActionSettings.js +73 -0
- package/lib/modules/actions/expand-collapse/ExpandableActionInitializer.js +60 -0
- package/lib/modules/actions/expand-collapse/expendableActionSettings.js +152 -0
- package/lib/modules/actions/filter/FilterActionInitializer.js +56 -0
- package/lib/modules/actions/filter/filterActionSettings.js +117 -0
- package/lib/modules/actions/link/customizeLinkActionSettings.js +156 -0
- package/lib/modules/actions/link/hooks.js +233 -0
- package/lib/modules/actions/refresh/RefreshActionInitializer.js +55 -0
- package/lib/modules/actions/refresh/refreshActionSettings.js +64 -0
- package/lib/modules/actions/save-record/SaveRecordActionInitializer.js +68 -0
- package/lib/modules/actions/save-record/customizeSaveRecordActionSettings.js +86 -0
- package/lib/modules/actions/submit/CreateSubmitActionInitializer.js +61 -0
- package/lib/modules/actions/submit/UpdateSubmitActionInitializer.js +65 -0
- package/lib/modules/actions/submit/createSubmitActionSettings.js +245 -0
- package/lib/modules/actions/submit/updateSubmitActionSettings.js +124 -0
- package/lib/modules/actions/update-record/UpdateRecordActionInitializer.js +66 -0
- package/lib/modules/actions/update-record/customizeUpdateRecordActionSettings.js +96 -0
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +93 -0
- package/lib/modules/actions/view-edit-popup/RecordFormBlockInitializers.js +69 -0
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +91 -0
- package/lib/modules/actions/view-edit-popup/ViewActionInitializer.js +90 -0
- package/lib/modules/actions/view-edit-popup/customizePopupActionSettings.js +83 -0
- package/lib/modules/actions/view-edit-popup/editActionSettings.js +78 -0
- package/lib/modules/actions/view-edit-popup/viewActionSettings.js +83 -0
- package/lib/modules/blocks/BlockSchemaToolbar.js +90 -0
- package/lib/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.js +74 -0
- package/lib/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.js +84 -0
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.js +119 -0
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.js +79 -0
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +21 -0
- package/lib/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.js +92 -0
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +251 -0
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.js +43 -0
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.js +39 -0
- package/lib/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.js +123 -0
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.js +119 -0
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.js +120 -0
- package/lib/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.js +108 -0
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.js +105 -0
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.js +31 -0
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +21 -0
- package/lib/modules/blocks/data-blocks/details-single/createDetailsUISchema.js +88 -0
- package/lib/modules/blocks/data-blocks/details-single/detailsBlockSettings.js +84 -0
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.js +56 -0
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.js +39 -0
- package/lib/modules/blocks/data-blocks/form/CreateFormBlockInitializer.js +82 -0
- package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.js +327 -0
- package/lib/modules/blocks/data-blocks/form/FormBlockInitializer.js +114 -0
- package/lib/modules/blocks/data-blocks/form/FormItemSchemaToolbar.js +43 -0
- package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.js +119 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.js +21 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.js +33 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.js +175 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.js +35 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.js +148 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1261 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +6047 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.js +23 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.js +219 -0
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +26 -0
- package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +25 -0
- package/lib/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.js +85 -0
- package/lib/modules/blocks/data-blocks/form/createEditFormBlockUISchema.js +88 -0
- package/lib/modules/blocks/data-blocks/form/createFormActionInitializers.js +79 -0
- package/lib/modules/blocks/data-blocks/form/createFormBlockSettings.js +173 -0
- package/lib/modules/blocks/data-blocks/form/editFormBlockSettings.js +106 -0
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +573 -0
- package/lib/modules/blocks/data-blocks/form/formActionInitializers.js +79 -0
- package/lib/modules/blocks/data-blocks/form/formItemInitializers.js +73 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.js +43 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.js +39 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.js +49 -0
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.js +39 -0
- package/lib/modules/blocks/data-blocks/form/index.js +182 -0
- package/lib/modules/blocks/data-blocks/form/updateFormActionInitializers.js +90 -0
- package/lib/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.js +119 -0
- package/lib/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.js +78 -0
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.js +227 -0
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.js +55 -0
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.js +33 -0
- package/lib/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.js +109 -0
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +479 -0
- package/lib/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.js +134 -0
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.js +46 -0
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.js +51 -0
- package/lib/modules/blocks/data-blocks/grid-card/utils.js +50 -0
- package/lib/modules/blocks/data-blocks/list/ListActionInitializers.js +115 -0
- package/lib/modules/blocks/data-blocks/list/ListBlockInitializer.js +78 -0
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.js +218 -0
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.js +30 -0
- package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.js +31 -0
- package/lib/modules/blocks/data-blocks/list/createListBlockUISchema.js +104 -0
- package/lib/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.js +43 -0
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +297 -0
- package/lib/modules/blocks/data-blocks/list/listItemActionInitializers.js +134 -0
- package/lib/modules/blocks/data-blocks/table/TableActionColumnInitializers.js +288 -0
- package/lib/modules/blocks/data-blocks/table/TableActionInitializers.js +165 -0
- package/lib/modules/blocks/data-blocks/table/TableBlockInitializer.js +78 -0
- package/lib/modules/blocks/data-blocks/table/TableColumnInitializers.js +139 -0
- package/lib/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.js +63 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.js +16 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.js +40 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.js +26 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.js +38 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.js +426 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.js +876 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +979 -0
- package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.js +49 -0
- package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +23 -0
- package/lib/modules/blocks/data-blocks/table/createTableBlockUISchema.js +116 -0
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.js +70 -0
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +185 -0
- package/lib/modules/blocks/data-blocks/table/index.js +137 -0
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +450 -0
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +367 -0
- package/lib/modules/blocks/data-blocks/table/utils.js +51 -0
- package/lib/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.js +58 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.js +166 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.js +153 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +728 -0
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.js +46 -0
- package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +21 -0
- package/lib/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.js +81 -0
- package/lib/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.js +38 -0
- package/lib/modules/blocks/data-blocks/table-selector/index.js +74 -0
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +344 -0
- package/lib/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.js +42 -0
- package/lib/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.js +63 -0
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.js +66 -0
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.js +69 -0
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +47 -0
- package/lib/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.js +65 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.js +92 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +261 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.js +188 -0
- package/lib/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.js +38 -0
- package/lib/modules/blocks/filter-blocks/form/FilterFormActionInitializers.js +66 -0
- package/lib/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.js +71 -0
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.js +122 -0
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.js +105 -0
- package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +30 -0
- package/lib/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.js +80 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormBlockSettings.js +100 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +403 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormItemInitializers.js +75 -0
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.js +38 -0
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.js +39 -0
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.js +66 -0
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.js +108 -0
- package/lib/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.js +100 -0
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +403 -0
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.js +75 -0
- package/lib/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.js +64 -0
- package/lib/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.js +60 -0
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.js +17 -0
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.js +40 -0
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/blocks/other-blocks/markdown/markdownBlockSettings.js +73 -0
- package/lib/modules/blocks/useParentRecordCommon.js +41 -0
- package/lib/modules/blocks/useSourceId.js +46 -0
- package/lib/modules/blocks/useSourceKey.js +40 -0
- package/lib/modules/dialog/__e2e__/schemaInitializer.test.js +395 -0
- package/lib/modules/dialog/__e2e__/schemaSettings.test.js +66 -0
- package/lib/modules/dialog/__e2e__/templatesOfBug.js +2161 -0
- package/lib/modules/dialog/__e2e__/zIndex.test.js +42 -0
- package/lib/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.js +125 -0
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +430 -0
- package/lib/modules/fields/component/Checkbox/checkboxComponentFieldSettings.js +87 -0
- package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.js +109 -0
- package/lib/modules/fields/component/DatePicker/__e2e__/utils.js +358 -0
- package/lib/modules/fields/component/DatePicker/datePickerComponentFieldSettings.js +56 -0
- package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.js +183 -0
- package/lib/modules/fields/component/FileManager/fileManagerComponentFieldSettings.js +224 -0
- package/lib/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.js +136 -0
- package/lib/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.js +61 -0
- package/lib/modules/fields/component/Nester/subformComponentFieldSettings.js +159 -0
- package/lib/modules/fields/component/Picker/TableSelectorInitializers.js +120 -0
- package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.js +225 -0
- package/lib/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.js +133 -0
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +87 -0
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +427 -0
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +443 -0
- package/lib/modules/fields/component/Tag/tagComponentFieldSettings.js +206 -0
- package/lib/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.js +56 -0
- package/lib/modules/fields/initializer/CollectionFieldInitializer.js +49 -0
- package/lib/modules/fields/initializer/TableCollectionFieldInitializer.js +49 -0
- package/lib/modules/menu/GroupItem.js +112 -0
- package/lib/modules/menu/LinkMenuItem.js +118 -0
- package/lib/modules/menu/PageMenuItem.js +127 -0
- package/lib/modules/menu/__e2e__/dragAndDrop.test.js +34 -0
- package/lib/modules/menu/__e2e__/schemaInitializer.test.js +108 -0
- package/lib/modules/menu/__e2e__/schemaSettings.test.js +354 -0
- package/lib/modules/menu/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/menu/menuItemInitializer.js +83 -0
- package/lib/modules/page/BlockInitializers.js +111 -0
- package/lib/modules/page/__e2e__/blockInitializers.test.js +24 -0
- package/lib/modules/page/__e2e__/dragAndDrop.test.js +23 -0
- package/lib/modules/page/__e2e__/schemaInitailizer.test.js +22 -0
- package/lib/modules/page/__e2e__/schemaSettings.test.js +141 -0
- package/lib/modules/page/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/plugin-manager/__e2e__/pluginManager.test.js +120 -0
- package/lib/modules/plugin-manager/__e2e__/templatesOfBug.js +6 -0
- package/lib/modules/user-center/__e2e__/settings.test.js +19 -0
- package/lib/modules/variable/DeclareVariable.js +51 -0
- package/lib/modules/variable/useVariable.js +46 -0
- package/lib/powered-by/index.js +77 -0
- package/lib/record-provider/index.js +92 -0
- package/lib/route-switch/RouteSchemaComponent.js +46 -0
- package/lib/route-switch/index.js +65 -0
- package/lib/schema-component/antd/AntdSchemaComponentProvider.js +73 -0
- package/lib/schema-component/antd/__builtins__/hooks/index.js +83 -0
- package/lib/schema-component/antd/__builtins__/hooks/useConfig.js +39 -0
- package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.js +46 -0
- package/lib/schema-component/antd/__builtins__/hooks/useToken.js +40 -0
- package/lib/schema-component/antd/__builtins__/index.js +92 -0
- package/lib/schema-component/antd/__builtins__/loading.js +49 -0
- package/lib/schema-component/antd/__builtins__/portal.js +86 -0
- package/lib/schema-component/antd/__builtins__/render.js +82 -0
- package/lib/schema-component/antd/__builtins__/style.js +100 -0
- package/lib/schema-component/antd/action/Action.Area.js +155 -0
- package/lib/schema-component/antd/action/Action.Area.style.js +74 -0
- package/lib/schema-component/antd/action/Action.Container.js +77 -0
- package/lib/schema-component/antd/action/Action.Designer.js +957 -0
- package/lib/schema-component/antd/action/Action.Drawer.js +186 -0
- package/lib/schema-component/antd/action/Action.Drawer.style.js +80 -0
- package/lib/schema-component/antd/action/Action.Link.js +63 -0
- package/lib/schema-component/antd/action/Action.Modal.js +222 -0
- package/lib/schema-component/antd/action/Action.Page.js +118 -0
- package/lib/schema-component/antd/action/Action.Popover.js +6 -0
- package/lib/schema-component/antd/action/Action.Sheet.js +130 -0
- package/lib/schema-component/antd/action/Action.js +280 -0
- package/lib/schema-component/antd/action/Action.style.js +81 -0
- package/lib/schema-component/antd/action/ActionBar.js +179 -0
- package/lib/schema-component/antd/action/__tests__/action.test.js +154 -0
- package/lib/schema-component/antd/action/context.js +52 -0
- package/lib/schema-component/antd/action/demos/demo1.js +104 -0
- package/lib/schema-component/antd/action/demos/demo2.js +109 -0
- package/lib/schema-component/antd/action/demos/demo3.js +175 -0
- package/lib/schema-component/antd/action/demos/demo4.js +92 -0
- package/lib/schema-component/antd/action/demos/demo5.js +245 -0
- package/lib/schema-component/antd/action/demos/demo6.js +129 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfAction.js +71 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.js +59 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfModal.js +59 -0
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.js +59 -0
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.js +64 -0
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForModal.js +64 -0
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForPopover.js +56 -0
- package/lib/schema-component/antd/action/hooks.js +97 -0
- package/lib/schema-component/antd/action/index.js +146 -0
- package/lib/schema-component/antd/action/types.js +19 -0
- package/lib/schema-component/antd/action/utils.js +249 -0
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelect.js +250 -0
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.js +249 -0
- package/lib/schema-component/antd/appends-tree-select/index.js +74 -0
- package/lib/schema-component/antd/association-cascader/AssociationCascader.js +171 -0
- package/lib/schema-component/antd/association-cascader/index.js +65 -0
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +159 -0
- package/lib/schema-component/antd/association-field/AssociationSelect.js +222 -0
- package/lib/schema-component/antd/association-field/Editable.js +151 -0
- package/lib/schema-component/antd/association-field/FileManager.js +250 -0
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +444 -0
- package/lib/schema-component/antd/association-field/InternalCascader.js +415 -0
- package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +133 -0
- package/lib/schema-component/antd/association-field/InternalNester.js +129 -0
- package/lib/schema-component/antd/association-field/InternalPicker.js +277 -0
- package/lib/schema-component/antd/association-field/InternalPopoverNester.js +165 -0
- package/lib/schema-component/antd/association-field/InternalSubTable.js +140 -0
- package/lib/schema-component/antd/association-field/InternalTag.js +170 -0
- package/lib/schema-component/antd/association-field/InternalViewer.js +185 -0
- package/lib/schema-component/antd/association-field/Nester.js +295 -0
- package/lib/schema-component/antd/association-field/ReadPretty.js +81 -0
- package/lib/schema-component/antd/association-field/SubTable.js +312 -0
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +371 -0
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +101 -0
- package/lib/schema-component/antd/association-field/SubTabs/index.js +65 -0
- package/lib/schema-component/antd/association-field/SubTabs/styles.js +59 -0
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +103 -0
- package/lib/schema-component/antd/association-field/context.js +38 -0
- package/lib/schema-component/antd/association-field/hooks.js +204 -0
- package/lib/schema-component/antd/association-field/index.js +109 -0
- package/lib/schema-component/antd/association-field/schema.js +167 -0
- package/lib/schema-component/antd/association-field/util.js +158 -0
- package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.js +88 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.js +74 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.js +89 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.js +182 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +180 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.style.js +135 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.js +125 -0
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.js +65 -0
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.js +57 -0
- package/lib/schema-component/antd/association-filter/utilts.js +38 -0
- package/lib/schema-component/antd/association-select/AssociationSelect.js +915 -0
- package/lib/schema-component/antd/association-select/ReadPretty.js +65 -0
- package/lib/schema-component/antd/association-select/__tests__/association-select.test.js +51 -0
- package/lib/schema-component/antd/association-select/demos/demo1.js +89 -0
- package/lib/schema-component/antd/association-select/index.js +65 -0
- package/lib/schema-component/antd/association-select/useServiceOptions.js +116 -0
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +92 -0
- package/lib/schema-component/antd/auto-complete/index.js +65 -0
- package/lib/schema-component/antd/block-item/BlockItem.js +97 -0
- package/lib/schema-component/antd/block-item/BlockToolbar.js +125 -0
- package/lib/schema-component/antd/block-item/__tests__/block-item.test.js +49 -0
- package/lib/schema-component/antd/block-item/demos/demo1.js +94 -0
- package/lib/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.js +87 -0
- package/lib/schema-component/antd/block-item/index.js +65 -0
- package/lib/schema-component/antd/block-item/useBlockToolbar.js +132 -0
- package/lib/schema-component/antd/card-item/CardItem.js +73 -0
- package/lib/schema-component/antd/card-item/__tests__/card-item.test.js +46 -0
- package/lib/schema-component/antd/card-item/demos/demo1.js +65 -0
- package/lib/schema-component/antd/card-item/index.js +65 -0
- package/lib/schema-component/antd/card-item/style.js +59 -0
- package/lib/schema-component/antd/cascader/Cascader.js +108 -0
- package/lib/schema-component/antd/cascader/ReadPretty.js +64 -0
- package/lib/schema-component/antd/cascader/__tests__/cascader.test.js +65 -0
- package/lib/schema-component/antd/cascader/defaultFieldNames.js +42 -0
- package/lib/schema-component/antd/cascader/demos/demo1.js +116 -0
- package/lib/schema-component/antd/cascader/demos/demo2.js +163 -0
- package/lib/schema-component/antd/cascader/index.js +65 -0
- package/lib/schema-component/antd/checkbox/Checkbox.js +134 -0
- package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.js +76 -0
- package/lib/schema-component/antd/checkbox/demos/checkbox.group.js +88 -0
- package/lib/schema-component/antd/checkbox/demos/checkbox.js +74 -0
- package/lib/schema-component/antd/checkbox/index.js +65 -0
- package/lib/schema-component/antd/collection-select/CollectionSelect.js +182 -0
- package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.js +51 -0
- package/lib/schema-component/antd/collection-select/demos/demo1.js +70 -0
- package/lib/schema-component/antd/collection-select/index.js +65 -0
- package/lib/schema-component/antd/color-picker/ColorPicker.js +135 -0
- package/lib/schema-component/antd/color-picker/ReadPretty.js +67 -0
- package/lib/schema-component/antd/color-picker/demos/demo1.js +83 -0
- package/lib/schema-component/antd/color-picker/index.js +65 -0
- package/lib/schema-component/antd/color-picker/util.js +195 -0
- package/lib/schema-component/antd/color-select/ColorSelect.js +83 -0
- package/lib/schema-component/antd/color-select/__tests__/color-select.test.js +51 -0
- package/lib/schema-component/antd/color-select/demos/demo1.js +74 -0
- package/lib/schema-component/antd/color-select/index.js +65 -0
- package/lib/schema-component/antd/cron/Cron.js +117 -0
- package/lib/schema-component/antd/cron/CronSet.js +154 -0
- package/lib/schema-component/antd/cron/__tests__/cron-set.test.js +66 -0
- package/lib/schema-component/antd/cron/demos/demo1.js +66 -0
- package/lib/schema-component/antd/cron/demos/demo2.js +85 -0
- package/lib/schema-component/antd/cron/index.js +74 -0
- package/lib/schema-component/antd/custom-cascader/CustomCascader.js +69 -0
- package/lib/schema-component/antd/custom-cascader/ReadPretty.js +64 -0
- package/lib/schema-component/antd/custom-cascader/defaultFieldNames.js +42 -0
- package/lib/schema-component/antd/custom-cascader/index.js +65 -0
- package/lib/schema-component/antd/date-picker/DatePicker.js +196 -0
- package/lib/schema-component/antd/date-picker/ReadPretty.js +87 -0
- package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.js +222 -0
- package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.js +145 -0
- package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.js +235 -0
- package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.js +94 -0
- package/lib/schema-component/antd/date-picker/__tests__/util.test.js +201 -0
- package/lib/schema-component/antd/date-picker/demos/demo1.js +91 -0
- package/lib/schema-component/antd/date-picker/demos/demo10.js +95 -0
- package/lib/schema-component/antd/date-picker/demos/demo11.js +99 -0
- package/lib/schema-component/antd/date-picker/demos/demo2.js +94 -0
- package/lib/schema-component/antd/date-picker/demos/demo3.js +92 -0
- package/lib/schema-component/antd/date-picker/demos/demo4.js +120 -0
- package/lib/schema-component/antd/date-picker/demos/demo5.js +119 -0
- package/lib/schema-component/antd/date-picker/demos/demo6.js +119 -0
- package/lib/schema-component/antd/date-picker/demos/demo7.js +95 -0
- package/lib/schema-component/antd/date-picker/demos/demo8.js +95 -0
- package/lib/schema-component/antd/date-picker/demos/demo9.js +95 -0
- package/lib/schema-component/antd/date-picker/index.js +65 -0
- package/lib/schema-component/antd/date-picker/util.js +216 -0
- package/lib/schema-component/antd/details/Details.js +66 -0
- package/lib/schema-component/antd/details/__tests__/details.test.js +45 -0
- package/lib/schema-component/antd/details/demos/demo1.js +76 -0
- package/lib/schema-component/antd/details/index.js +65 -0
- package/lib/schema-component/antd/error-fallback/ErrorFallback.js +93 -0
- package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.js +52 -0
- package/lib/schema-component/antd/error-fallback/demos/demo1.js +47 -0
- package/lib/schema-component/antd/error-fallback/index.js +65 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +141 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.js +104 -0
- package/lib/schema-component/antd/expand-action/index.js +40 -0
- package/lib/schema-component/antd/filter/DynamicComponent.js +106 -0
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +157 -0
- package/lib/schema-component/antd/filter/Filter.js +90 -0
- package/lib/schema-component/antd/filter/FilterAction.js +199 -0
- package/lib/schema-component/antd/filter/FilterGroup.js +168 -0
- package/lib/schema-component/antd/filter/FilterItem.js +119 -0
- package/lib/schema-component/antd/filter/FilterItems.js +58 -0
- package/lib/schema-component/antd/filter/SaveDefaultValue.js +70 -0
- package/lib/schema-component/antd/filter/__tests__/filter.test.js +152 -0
- package/lib/schema-component/antd/filter/context.js +44 -0
- package/lib/schema-component/antd/filter/demos/demo2.js +163 -0
- package/lib/schema-component/antd/filter/demos/demo3.js +230 -0
- package/lib/schema-component/antd/filter/demos/demo4.js +218 -0
- package/lib/schema-component/antd/filter/demos/demo5.js +165 -0
- package/lib/schema-component/antd/filter/demos/demo6.js +152 -0
- package/lib/schema-component/antd/filter/index.js +83 -0
- package/lib/schema-component/antd/filter/useFilterActionProps.js +269 -0
- package/lib/schema-component/antd/filter/useOperators.js +57 -0
- package/lib/schema-component/antd/filter/useValues.js +172 -0
- package/lib/schema-component/antd/filter/utils.js +49 -0
- package/lib/schema-component/antd/form/Form.Designer.js +46 -0
- package/lib/schema-component/antd/form/Form.Settings.js +68 -0
- package/lib/schema-component/antd/form/Form.js +182 -0
- package/lib/schema-component/antd/form/__tests__/form.test.js +155 -0
- package/lib/schema-component/antd/form/demos/apiClient.js +65 -0
- package/lib/schema-component/antd/form/demos/demo1.js +107 -0
- package/lib/schema-component/antd/form/demos/demo2.js +107 -0
- package/lib/schema-component/antd/form/demos/demo3.js +106 -0
- package/lib/schema-component/antd/form/demos/demo4.js +114 -0
- package/lib/schema-component/antd/form/demos/demo5.js +148 -0
- package/lib/schema-component/antd/form/demos/demo6.js +105 -0
- package/lib/schema-component/antd/form/demos/demo7.js +109 -0
- package/lib/schema-component/antd/form/demos/demo8.js +120 -0
- package/lib/schema-component/antd/form/index.js +74 -0
- package/lib/schema-component/antd/form-dialog/index.js +203 -0
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +41 -0
- package/lib/schema-component/antd/form-item/FormItem.FilterFormSettings.js +176 -0
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +1261 -0
- package/lib/schema-component/antd/form-item/FormItem.js +185 -0
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +621 -0
- package/lib/schema-component/antd/form-item/__tests__/form-item.test.js +47 -0
- package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.js +34 -0
- package/lib/schema-component/antd/form-item/__tests__/utils.test.js +72 -0
- package/lib/schema-component/antd/form-item/demos/demo1.js +71 -0
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +117 -0
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +132 -0
- package/lib/schema-component/antd/form-item/hooks/useSpecialCase.js +159 -0
- package/lib/schema-component/antd/form-item/index.js +92 -0
- package/lib/schema-component/antd/form-item/utils.js +56 -0
- package/lib/schema-component/antd/form-tab/index.js +189 -0
- package/lib/schema-component/antd/form-v2/Form.Designer.js +69 -0
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.js +49 -0
- package/lib/schema-component/antd/form-v2/Form.Settings.js +351 -0
- package/lib/schema-component/antd/form-v2/Form.js +364 -0
- package/lib/schema-component/antd/form-v2/FormField.js +64 -0
- package/lib/schema-component/antd/form-v2/Templates.js +240 -0
- package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.js +84 -0
- package/lib/schema-component/antd/form-v2/demos/collections.js +1601 -0
- package/lib/schema-component/antd/form-v2/demos/demo1.js +156 -0
- package/lib/schema-component/antd/form-v2/demos/demo2.js +179 -0
- package/lib/schema-component/antd/form-v2/demos/demo3.js +165 -0
- package/lib/schema-component/antd/form-v2/index.js +115 -0
- package/lib/schema-component/antd/form-v2/utils.js +192 -0
- package/lib/schema-component/antd/grid/Block.js +58 -0
- package/lib/schema-component/antd/grid/Grid.js +533 -0
- package/lib/schema-component/antd/grid/Grid.style.js +79 -0
- package/lib/schema-component/antd/grid/__tests__/grid.test.js +63 -0
- package/lib/schema-component/antd/grid/demos/demo1.js +228 -0
- package/lib/schema-component/antd/grid/demos/demo2.js +131 -0
- package/lib/schema-component/antd/grid/demos/demo3.js +118 -0
- package/lib/schema-component/antd/grid/index.js +74 -0
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +118 -0
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.style.js +58 -0
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +300 -0
- package/lib/schema-component/antd/grid-card/GridCard.Item.js +111 -0
- package/lib/schema-component/antd/grid-card/GridCard.js +204 -0
- package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.js +44 -0
- package/lib/schema-component/antd/grid-card/demos/demo1.js +40 -0
- package/lib/schema-component/antd/grid-card/hooks.js +74 -0
- package/lib/schema-component/antd/grid-card/index.js +65 -0
- package/lib/schema-component/antd/grid-card/options.js +83 -0
- package/lib/schema-component/antd/icon-picker/IconFilterInput.js +65 -0
- package/lib/schema-component/antd/icon-picker/IconList.js +84 -0
- package/lib/schema-component/antd/icon-picker/IconPicker.js +109 -0
- package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.js +60 -0
- package/lib/schema-component/antd/icon-picker/demos/icon-picker.js +74 -0
- package/lib/schema-component/antd/icon-picker/index.js +65 -0
- package/lib/schema-component/antd/index.css +30 -0
- package/lib/schema-component/antd/index.js +881 -0
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +98 -0
- package/lib/schema-component/antd/input/Input.js +62 -0
- package/lib/schema-component/antd/input/Json.js +108 -0
- package/lib/schema-component/antd/input/ReadPretty.js +201 -0
- package/lib/schema-component/antd/input/__tests__/Input.test.js +153 -0
- package/lib/schema-component/antd/input/demos/input.js +74 -0
- package/lib/schema-component/antd/input/demos/json.js +80 -0
- package/lib/schema-component/antd/input/demos/textarea.js +102 -0
- package/lib/schema-component/antd/input/demos/url.js +76 -0
- package/lib/schema-component/antd/input/index.js +101 -0
- package/lib/schema-component/antd/input/shared.js +44 -0
- package/lib/schema-component/antd/input-number/InputNumber.js +54 -0
- package/lib/schema-component/antd/input-number/ReadPretty.js +153 -0
- package/lib/schema-component/antd/input-number/__tests__/input-number.test.js +153 -0
- package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.js +82 -0
- package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.js +84 -0
- package/lib/schema-component/antd/input-number/demos/inputNumber.js +74 -0
- package/lib/schema-component/antd/input-number/index.js +65 -0
- package/lib/schema-component/antd/list/List.Decorator.js +145 -0
- package/lib/schema-component/antd/list/List.Designer.js +254 -0
- package/lib/schema-component/antd/list/List.Item.js +101 -0
- package/lib/schema-component/antd/list/List.js +129 -0
- package/lib/schema-component/antd/list/List.style.js +89 -0
- package/lib/schema-component/antd/list/__tests__/list.test.js +44 -0
- package/lib/schema-component/antd/list/demos/demo1.js +40 -0
- package/lib/schema-component/antd/list/hooks.js +47 -0
- package/lib/schema-component/antd/list/index.js +65 -0
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +61 -0
- package/lib/schema-component/antd/markdown/Markdown.Void.js +158 -0
- package/lib/schema-component/antd/markdown/Markdown.js +82 -0
- package/lib/schema-component/antd/markdown/__tests__/markdown.test.js +63 -0
- package/lib/schema-component/antd/markdown/demos/demo1.js +74 -0
- package/lib/schema-component/antd/markdown/demos/demo2.js +85 -0
- package/lib/schema-component/antd/markdown/index.js +65 -0
- package/lib/schema-component/antd/markdown/style.js +254 -0
- package/lib/schema-component/antd/markdown/util.js +88 -0
- package/lib/schema-component/antd/menu/Menu.Designer.js +469 -0
- package/lib/schema-component/antd/menu/Menu.js +625 -0
- package/lib/schema-component/antd/menu/Menu.styles.js +111 -0
- package/lib/schema-component/antd/menu/MenuItemInitializers/index.js +45 -0
- package/lib/schema-component/antd/menu/__tests__/menu.test.js +75 -0
- package/lib/schema-component/antd/menu/demos/demo1.js +127 -0
- package/lib/schema-component/antd/menu/demos/demo2.js +130 -0
- package/lib/schema-component/antd/menu/demos/demo3.js +169 -0
- package/lib/schema-component/antd/menu/index.js +83 -0
- package/lib/schema-component/antd/menu/locale.js +37 -0
- package/lib/schema-component/antd/menu/util.js +70 -0
- package/lib/schema-component/antd/nanoIDInput/NanoIDInput.js +67 -0
- package/lib/schema-component/antd/nanoIDInput/index.js +65 -0
- package/lib/schema-component/antd/page/FixedBlock.js +147 -0
- package/lib/schema-component/antd/page/FixedBlockDesignerItem.js +74 -0
- package/lib/schema-component/antd/page/Page.Settings.js +181 -0
- package/lib/schema-component/antd/page/Page.js +269 -0
- package/lib/schema-component/antd/page/PageTab.Settings.js +122 -0
- package/lib/schema-component/antd/page/PageTabDesigner.js +99 -0
- package/lib/schema-component/antd/page/__tests__/page.test.js +53 -0
- package/lib/schema-component/antd/page/demos/demo1.js +72 -0
- package/lib/schema-component/antd/page/hooks/useIsBlockInPage.js +46 -0
- package/lib/schema-component/antd/page/index.js +101 -0
- package/lib/schema-component/antd/page/style.js +177 -0
- package/lib/schema-component/antd/pagination/index.js +56 -0
- package/lib/schema-component/antd/password/Password.js +115 -0
- package/lib/schema-component/antd/password/PasswordStrength.js +45 -0
- package/lib/schema-component/antd/password/__tests__/password.test.js +64 -0
- package/lib/schema-component/antd/password/__tests__/utils.test.js +28 -0
- package/lib/schema-component/antd/password/demos/demo1.js +74 -0
- package/lib/schema-component/antd/password/demos/demo2.js +77 -0
- package/lib/schema-component/antd/password/index.js +65 -0
- package/lib/schema-component/antd/password/utils.js +140 -0
- package/lib/schema-component/antd/percent/Percent.js +68 -0
- package/lib/schema-component/antd/percent/__tests__/percent.test.js +51 -0
- package/lib/schema-component/antd/percent/demos/percent.js +74 -0
- package/lib/schema-component/antd/percent/index.js +65 -0
- package/lib/schema-component/antd/popover/Popover.js +73 -0
- package/lib/schema-component/antd/popover/index.js +65 -0
- package/lib/schema-component/antd/preview/Preview.js +323 -0
- package/lib/schema-component/antd/preview/__tests__/preview.test.js +46 -0
- package/lib/schema-component/antd/preview/demos/demo1.js +129 -0
- package/lib/schema-component/antd/preview/index.js +65 -0
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +164 -0
- package/lib/schema-component/antd/quick-edit/index.js +65 -0
- package/lib/schema-component/antd/radio/Radio.js +75 -0
- package/lib/schema-component/antd/radio/__tests__/radio.test.js +80 -0
- package/lib/schema-component/antd/radio/demos/demo1.js +74 -0
- package/lib/schema-component/antd/radio/demos/demo2.js +86 -0
- package/lib/schema-component/antd/radio/demos/demo3.js +88 -0
- package/lib/schema-component/antd/radio/index.js +65 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +289 -0
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +154 -0
- package/lib/schema-component/antd/record-picker/RecordPicker.js +39 -0
- package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.js +62 -0
- package/lib/schema-component/antd/record-picker/demos/demo1.js +223 -0
- package/lib/schema-component/antd/record-picker/demos/mockData.js +247 -0
- package/lib/schema-component/antd/record-picker/index.js +120 -0
- package/lib/schema-component/antd/record-picker/useFieldNames.js +46 -0
- package/lib/schema-component/antd/record-picker/util.js +87 -0
- package/lib/schema-component/antd/remote-select/ReadPretty.js +78 -0
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +273 -0
- package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.js +51 -0
- package/lib/schema-component/antd/remote-select/demos/demo1.js +89 -0
- package/lib/schema-component/antd/remote-select/index.js +65 -0
- package/lib/schema-component/antd/remote-select/shared.js +37 -0
- package/lib/schema-component/antd/rich-text/RichText.js +107 -0
- package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.js +48 -0
- package/lib/schema-component/antd/rich-text/demos/demo1.js +75 -0
- package/lib/schema-component/antd/rich-text/index.js +65 -0
- package/lib/schema-component/antd/rich-text/style.js +847 -0
- package/lib/schema-component/antd/rich-text/style.js.LICENSE.txt +6 -0
- package/lib/schema-component/antd/scroll-area/ScrollArea.js +78 -0
- package/lib/schema-component/antd/scroll-area/index.js +65 -0
- package/lib/schema-component/antd/select/FormulaSelect.js +230 -0
- package/lib/schema-component/antd/select/ReadPretty.js +67 -0
- package/lib/schema-component/antd/select/Select.js +204 -0
- package/lib/schema-component/antd/select/__tests__/select.test.js +78 -0
- package/lib/schema-component/antd/select/__tests__/utils.test.js +136 -0
- package/lib/schema-component/antd/select/demos/demo1.js +106 -0
- package/lib/schema-component/antd/select/demos/demo2.js +110 -0
- package/lib/schema-component/antd/select/demos/demo3.js +118 -0
- package/lib/schema-component/antd/select/index.js +74 -0
- package/lib/schema-component/antd/select/utils.js +73 -0
- package/lib/schema-component/antd/space/index.js +68 -0
- package/lib/schema-component/antd/table/Table.Array.Designer.js +46 -0
- package/lib/schema-component/antd/table/Table.Array.js +342 -0
- package/lib/schema-component/antd/table/Table.Column.ActionBar.js +77 -0
- package/lib/schema-component/antd/table/Table.Column.Decorator.js +84 -0
- package/lib/schema-component/antd/table/Table.Column.Designer.js +192 -0
- package/lib/schema-component/antd/table/Table.Column.js +44 -0
- package/lib/schema-component/antd/table/Table.Designer.js +51 -0
- package/lib/schema-component/antd/table/Table.RowActionDesigner.js +67 -0
- package/lib/schema-component/antd/table/Table.RowSelection.js +63 -0
- package/lib/schema-component/antd/table/Table.Void.Designer.js +275 -0
- package/lib/schema-component/antd/table/Table.Void.js +153 -0
- package/lib/schema-component/antd/table/__tests__/table.test.js +59 -0
- package/lib/schema-component/antd/table/demos/demo1.js +97 -0
- package/lib/schema-component/antd/table/demos/demo2.js +97 -0
- package/lib/schema-component/antd/table/demos/demo3.js +97 -0
- package/lib/schema-component/antd/table/demos/demo4.js +251 -0
- package/lib/schema-component/antd/table/index.js +58 -0
- package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.js +67 -0
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.js +84 -0
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +95 -0
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +495 -0
- package/lib/schema-component/antd/table-v2/Table.Column.js +45 -0
- package/lib/schema-component/antd/table-v2/Table.Designer.js +51 -0
- package/lib/schema-component/antd/table-v2/Table.Index.js +44 -0
- package/lib/schema-component/antd/table-v2/Table.js +495 -0
- package/lib/schema-component/antd/table-v2/Table.styles.js +169 -0
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +363 -0
- package/lib/schema-component/antd/table-v2/TableField.js +85 -0
- package/lib/schema-component/antd/table-v2/TableSelector.js +37 -0
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +320 -0
- package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.js +49 -0
- package/lib/schema-component/antd/table-v2/components/ColumnFieldProvider.js +73 -0
- package/lib/schema-component/antd/table-v2/demos/collections.js +1596 -0
- package/lib/schema-component/antd/table-v2/demos/demo1.js +268 -0
- package/lib/schema-component/antd/table-v2/demos/demo2.js +151 -0
- package/lib/schema-component/antd/table-v2/index.js +143 -0
- package/lib/schema-component/antd/table-v2/utils.js +55 -0
- package/lib/schema-component/antd/tabs/Tabs.Designer.js +166 -0
- package/lib/schema-component/antd/tabs/Tabs.js +147 -0
- package/lib/schema-component/antd/tabs/__tests__/tabs.test.js +49 -0
- package/lib/schema-component/antd/tabs/context.js +61 -0
- package/lib/schema-component/antd/tabs/demos/demo1.js +101 -0
- package/lib/schema-component/antd/tabs/index.js +74 -0
- package/lib/schema-component/antd/time-picker/ReadPretty.js +70 -0
- package/lib/schema-component/antd/time-picker/TimePicker.js +57 -0
- package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.js +81 -0
- package/lib/schema-component/antd/time-picker/demos/demo1.js +74 -0
- package/lib/schema-component/antd/time-picker/demos/demo2.js +74 -0
- package/lib/schema-component/antd/time-picker/index.js +65 -0
- package/lib/schema-component/antd/tree/Tree.js +116 -0
- package/lib/schema-component/antd/tree/index.js +36 -0
- package/lib/schema-component/antd/tree-select/ReadPretty.js +110 -0
- package/lib/schema-component/antd/tree-select/TreeSelect.js +49 -0
- package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.js +49 -0
- package/lib/schema-component/antd/tree-select/demos/demo1.js +118 -0
- package/lib/schema-component/antd/tree-select/index.js +65 -0
- package/lib/schema-component/antd/unixTimestamp/UnixTimestamp.js +90 -0
- package/lib/schema-component/antd/unixTimestamp/index.js +65 -0
- package/lib/schema-component/antd/upload/ReadPretty.js +249 -0
- package/lib/schema-component/antd/upload/Upload.js +380 -0
- package/lib/schema-component/antd/upload/__tests__/upload.test.js +49 -0
- package/lib/schema-component/antd/upload/demos/apiClient.js +77 -0
- package/lib/schema-component/antd/upload/demos/demo1.js +96 -0
- package/lib/schema-component/antd/upload/demos/demo2.js +163 -0
- package/lib/schema-component/antd/upload/index.js +65 -0
- package/lib/schema-component/antd/upload/placeholder.js +99 -0
- package/lib/schema-component/antd/upload/shared.js +236 -0
- package/lib/schema-component/antd/upload/style.js +109 -0
- package/lib/schema-component/antd/upload/type.d.js +8 -0
- package/lib/schema-component/antd/variable/CodeMirror.js +132 -0
- package/lib/schema-component/antd/variable/Input.js +360 -0
- package/lib/schema-component/antd/variable/JSONInput.js +71 -0
- package/lib/schema-component/antd/variable/RawTextArea.js +133 -0
- package/lib/schema-component/antd/variable/TextArea.js +436 -0
- package/lib/schema-component/antd/variable/Variable.js +67 -0
- package/lib/schema-component/antd/variable/VariableSelect.js +115 -0
- package/lib/schema-component/antd/variable/VariableSelect.style.js +64 -0
- package/lib/schema-component/antd/variable/XButton.js +55 -0
- package/lib/schema-component/antd/variable/__tests__/variable.test.js +82 -0
- package/lib/schema-component/antd/variable/demos/demo1.js +78 -0
- package/lib/schema-component/antd/variable/demos/demo2.js +78 -0
- package/lib/schema-component/antd/variable/demos/demo3.js +78 -0
- package/lib/schema-component/antd/variable/index.js +65 -0
- package/lib/schema-component/antd/variable/style.js +209 -0
- package/lib/schema-component/common/dnd-context/index.js +134 -0
- package/lib/schema-component/common/index.js +74 -0
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +171 -0
- package/lib/schema-component/common/infinite-scroll/style.js +62 -0
- package/lib/schema-component/common/sortable-item/SortableItem.js +185 -0
- package/lib/schema-component/common/sortable-item/index.js +65 -0
- package/lib/schema-component/common/utils/logic.js +434 -0
- package/lib/schema-component/common/utils/uitls.js +163 -0
- package/lib/schema-component/context.js +38 -0
- package/lib/schema-component/core/DesignableSwitch.js +71 -0
- package/lib/schema-component/core/FormProvider.js +87 -0
- package/lib/schema-component/core/RemoteSchemaComponent.js +78 -0
- package/lib/schema-component/core/SchemaComponent.js +94 -0
- package/lib/schema-component/core/SchemaComponentOptions.js +79 -0
- package/lib/schema-component/core/SchemaComponentPlugin.js +47 -0
- package/lib/schema-component/core/SchemaComponentProvider.js +118 -0
- package/lib/schema-component/core/index.js +119 -0
- package/lib/schema-component/demos/demo1.js +123 -0
- package/lib/schema-component/demos/demo2.js +57 -0
- package/lib/schema-component/demos/demo3.js +58 -0
- package/lib/schema-component/demos/demo4.js +58 -0
- package/lib/schema-component/hooks/__tests__/designable.test.js +555 -0
- package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.js +96 -0
- package/lib/schema-component/hooks/index.js +164 -0
- package/lib/schema-component/hooks/useAttach.js +50 -0
- package/lib/schema-component/hooks/useCompile.js +74 -0
- package/lib/schema-component/hooks/useComponent.js +44 -0
- package/lib/schema-component/hooks/useDesignable.js +713 -0
- package/lib/schema-component/hooks/useDesigner.js +53 -0
- package/lib/schema-component/hooks/useFieldComponentOptions.js +121 -0
- package/lib/schema-component/hooks/useFieldModeOptions.js +317 -0
- package/lib/schema-component/hooks/useFieldProps.js +52 -0
- package/lib/schema-component/hooks/useFieldTitle.js +56 -0
- package/lib/schema-component/hooks/useProps.js +49 -0
- package/lib/schema-component/hooks/useSchemaComponentContext.js +40 -0
- package/lib/schema-component/hooks/useTableSize.js +65 -0
- package/lib/schema-component/index.js +110 -0
- package/lib/schema-component/types.js +8 -0
- package/lib/schema-initializer/SchemaInitializerPlugin.js +160 -0
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +80 -0
- package/lib/schema-initializer/buttons/FormItemInitializers.js +190 -0
- package/lib/schema-initializer/buttons/RecordBlockInitializers.js +410 -0
- package/lib/schema-initializer/buttons/SubTableActionInitializers.js +69 -0
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +201 -0
- package/lib/schema-initializer/buttons/index.js +110 -0
- package/lib/schema-initializer/components/CreateRecordAction.js +390 -0
- package/lib/schema-initializer/components/DeletedField.js +47 -0
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +169 -0
- package/lib/schema-initializer/components/assigned-field/index.js +65 -0
- package/lib/schema-initializer/components/index.js +74 -0
- package/lib/schema-initializer/demos/basic.js +96 -0
- package/lib/schema-initializer/demos/build-type.js +117 -0
- package/lib/schema-initializer/demos/custom-button.js +128 -0
- package/lib/schema-initializer/demos/custom-items-component.js +134 -0
- package/lib/schema-initializer/demos/dynamic-visible-children.js +115 -0
- package/lib/schema-initializer/demos/insert-schema-action.js +126 -0
- package/lib/schema-initializer/demos/insert-schema-basic.js +146 -0
- package/lib/schema-initializer/demos/insert-schema-form-item.js +170 -0
- package/lib/schema-initializer/demos/nested-items.js +182 -0
- package/lib/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.js +55 -0
- package/lib/schema-initializer/index.js +185 -0
- package/lib/schema-initializer/items/ActionInitializer.js +48 -0
- package/lib/schema-initializer/items/BlockInitializer.js +62 -0
- package/lib/schema-initializer/items/CreateFilterActionInitializer.js +55 -0
- package/lib/schema-initializer/items/CreateResetActionInitializer.js +50 -0
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +514 -0
- package/lib/schema-initializer/items/CustomizeActionInitializer.js +46 -0
- package/lib/schema-initializer/items/DataBlockInitializer.js +360 -0
- package/lib/schema-initializer/items/DeleteEventActionInitializer.js +58 -0
- package/lib/schema-initializer/items/FilterBlockInitializer.js +37 -0
- package/lib/schema-initializer/items/G2PlotInitializer.js +50 -0
- package/lib/schema-initializer/items/InitializerWithSwitch.js +59 -0
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +116 -0
- package/lib/schema-initializer/items/RecordAssociationGridCardBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordAssociationListBlockInitializer.js +90 -0
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +115 -0
- package/lib/schema-initializer/items/SelectActionInitializer.js +97 -0
- package/lib/schema-initializer/items/SubmitActionInitializer.js +55 -0
- package/lib/schema-initializer/items/TableActionColumnInitializer.js +73 -0
- package/lib/schema-initializer/items/index.js +263 -0
- package/lib/schema-initializer/style.js +51 -0
- package/lib/schema-initializer/utils.js +1438 -0
- package/lib/schema-items/GeneralSchemaItems.js +198 -0
- package/lib/schema-items/GeneralSettings.js +241 -0
- package/lib/schema-items/OpenModeSchemaItems.js +221 -0
- package/lib/schema-items/index.js +74 -0
- package/lib/schema-settings/DataTemplates/FormDataTemplates.js +324 -0
- package/lib/schema-settings/DataTemplates/TreeLabel.js +64 -0
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +94 -0
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +306 -0
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.style.js +41 -0
- package/lib/schema-settings/DataTemplates/components/Designer.js +208 -0
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +319 -0
- package/lib/schema-settings/DataTemplates/index.js +65 -0
- package/lib/schema-settings/DataTemplates/utils.js +282 -0
- package/lib/schema-settings/DateFormat/ExpiresRadio.js +171 -0
- package/lib/schema-settings/EditCustomDefaultValue.js +143 -0
- package/lib/schema-settings/EditFormulaTitleField.js +133 -0
- package/lib/schema-settings/EnableChildCollections/DynamicComponent.js +98 -0
- package/lib/schema-settings/EnableChildCollections/index.js +135 -0
- package/lib/schema-settings/GeneralSchemaDesigner.js +313 -0
- package/lib/schema-settings/LinkageRules/DynamicComponent.js +104 -0
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +272 -0
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.js +118 -0
- package/lib/schema-settings/LinkageRules/ValueDynamicComponent.js +204 -0
- package/lib/schema-settings/LinkageRules/Variables.js +132 -0
- package/lib/schema-settings/LinkageRules/action-hooks.js +137 -0
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +86 -0
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +304 -0
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.style.js +41 -0
- package/lib/schema-settings/LinkageRules/context.js +44 -0
- package/lib/schema-settings/LinkageRules/index.js +228 -0
- package/lib/schema-settings/LinkageRules/type.js +51 -0
- package/lib/schema-settings/LinkageRules/useValues.js +102 -0
- package/lib/schema-settings/SchemaSettingCollection.js +84 -0
- package/lib/schema-settings/SchemaSettingComponent.js +72 -0
- package/lib/schema-settings/SchemaSettings.js +1409 -0
- package/lib/schema-settings/SchemaSettingsDataScope.js +134 -0
- package/lib/schema-settings/SchemaSettingsDateFormat.js +233 -0
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +252 -0
- package/lib/schema-settings/SchemaSettingsNumberFormat.js +212 -0
- package/lib/schema-settings/SchemaSettingsPlugin.js +142 -0
- package/lib/schema-settings/SchemaSettingsSortingRule.js +171 -0
- package/lib/schema-settings/VariableInput/VariableInput.js +214 -0
- package/lib/schema-settings/VariableInput/hooks/index.js +83 -0
- package/lib/schema-settings/VariableInput/hooks/useBaseVariable.js +209 -0
- package/lib/schema-settings/VariableInput/hooks/useBlockCollection.js +44 -0
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +132 -0
- package/lib/schema-settings/VariableInput/hooks/useDateVariable.js +197 -0
- package/lib/schema-settings/VariableInput/hooks/useFilterVariable.js +86 -0
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +77 -0
- package/lib/schema-settings/VariableInput/hooks/useIterationVariable.js +80 -0
- package/lib/schema-settings/VariableInput/hooks/useParentRecordVariable.js +78 -0
- package/lib/schema-settings/VariableInput/hooks/usePopupVariable.js +58 -0
- package/lib/schema-settings/VariableInput/hooks/useRecordVariable.js +87 -0
- package/lib/schema-settings/VariableInput/hooks/useRoleVariable.js +76 -0
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +76 -0
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +136 -0
- package/lib/schema-settings/VariableInput/index.js +74 -0
- package/lib/schema-settings/VariableInput/type.js +19 -0
- package/lib/schema-settings/VariableInput/utils/formatVariableScop.js +47 -0
- package/lib/schema-settings/demos/basic.js +94 -0
- package/lib/schema-settings/demos/built-type.js +176 -0
- package/lib/schema-settings/demos/custom-component.js +76 -0
- package/lib/schema-settings/demos/demo3.js +134 -0
- package/lib/schema-settings/demos/schema-basic.js +98 -0
- package/lib/schema-settings/filter-form/FormFilterScope.js +143 -0
- package/lib/schema-settings/filter-form/context.js +43 -0
- package/lib/schema-settings/hooks/useFilterFormCustomProps.js +50 -0
- package/lib/schema-settings/hooks/useGetAriaLabelOfDesigner.js +58 -0
- package/lib/schema-settings/hooks/useIsAllowToSetDefaultValue.js +117 -0
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +50 -0
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +88 -0
- package/lib/schema-settings/index.js +218 -0
- package/lib/schema-settings/isPatternDisabled.js +41 -0
- package/lib/schema-settings/styles.js +118 -0
- package/lib/schema-settings/types.js +19 -0
- package/lib/schema-templates/BlockTemplate.js +76 -0
- package/lib/schema-templates/BlockTemplateDetails.js +134 -0
- package/lib/schema-templates/BlockTemplatePage.js +67 -0
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +113 -0
- package/lib/schema-templates/collections/uiSchemaTemplates.js +55 -0
- package/lib/schema-templates/index.js +92 -0
- package/lib/schema-templates/schemas/CollectionTitle.js +71 -0
- package/lib/schema-templates/schemas/uiSchemaTemplates.js +265 -0
- package/lib/schema-templates/useSchemaTemplateManager.js +122 -0
- package/lib/style/css-variable/CSSVariableProvider.js +109 -0
- package/lib/style/css-variable/index.js +50 -0
- package/lib/style/index.js +44 -0
- package/lib/style/theme/AntdAppProvider.js +69 -0
- package/lib/style/theme/defaultTheme.js +55 -0
- package/lib/style/theme/index.js +165 -0
- package/lib/style/theme/type.js +19 -0
- package/lib/style/useToken.js +40 -0
- package/lib/testUtils/index.js +65 -0
- package/lib/testUtils/mockAPIClient.js +64 -0
- package/lib/user/ChangePassword.js +191 -0
- package/lib/user/CurrentUser.js +258 -0
- package/lib/user/CurrentUserProvider.js +97 -0
- package/lib/user/CurrentUserSettingsMenuProvider.js +104 -0
- package/lib/user/EditProfile.js +183 -0
- package/lib/user/LanguageSettings.js +94 -0
- package/lib/user/SwitchRole.js +75 -0
- package/lib/user/VerificationCode.js +117 -0
- package/lib/user/__tests__/current-user-settings-menu-provider.test.js +43 -0
- package/lib/user/index.js +83 -0
- package/lib/variables/VariablesProvider.js +264 -0
- package/lib/variables/__tests__/useVariables.test.js +442 -0
- package/lib/variables/__tests__/utils/filterEmptyValues.test.js +53 -0
- package/lib/variables/__tests__/utils/getPath.test.js +11 -0
- package/lib/variables/__tests__/utils/getVariableName.test.js +11 -0
- package/lib/variables/__tests__/utils/isVariable.test.js +29 -0
- package/lib/variables/__tests__/utils/transformVariableValue.test.js +143 -0
- package/lib/variables/__tests__/utils/uniq.test.js +84 -0
- package/lib/variables/constants.js +38 -0
- package/lib/variables/hooks/useBuiltinVariables.js +85 -0
- package/lib/variables/hooks/useContextVariable.js +61 -0
- package/lib/variables/hooks/useLocalVariables.js +102 -0
- package/lib/variables/hooks/useVariables.js +39 -0
- package/lib/variables/index.js +152 -0
- package/lib/variables/types.js +19 -0
- package/lib/variables/utils/filterEmptyValues.js +41 -0
- package/lib/variables/utils/getAction.js +44 -0
- package/lib/variables/utils/getPath.js +41 -0
- package/lib/variables/utils/getVariableName.js +58 -0
- package/lib/variables/utils/hasRequested.js +58 -0
- package/lib/variables/utils/isVariable.js +47 -0
- package/lib/variables/utils/transformVariableValue.js +78 -0
- package/lib/variables/utils/uniq.js +58 -0
- package/package.json +10 -15
- package/.turbo/turbo-build.log +0 -24
- package/LICENSE +0 -201
- package/es/index.css +0 -1
- package/es/md-CvgT1iV9.mjs +0 -60
- package/es/schema-component/antd/association-filter/AssociationFilterProvider.d.ts +0 -1
- package/es/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -5
- package/es/schema-component/antd/markdown/md.d.ts +0 -3
- package/lib/index.css +0 -1
- package/lib/md-CvgT1iV9-DbJ3_uTf.js +0 -1
|
@@ -0,0 +1,1559 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"../../api-client": function(module) {
|
|
4
|
+
module.exports = require("../../api-client/index.js");
|
|
5
|
+
},
|
|
6
|
+
"../../built-in/dynamic-page/utils": function(module) {
|
|
7
|
+
module.exports = require("../../built-in/dynamic-page/utils.js");
|
|
8
|
+
},
|
|
9
|
+
"../../collection-manager": function(module) {
|
|
10
|
+
module.exports = require("../../collection-manager/index.js");
|
|
11
|
+
},
|
|
12
|
+
"../../filter-provider/FilterProvider": function(module) {
|
|
13
|
+
module.exports = require("../../filter-provider/FilterProvider.js");
|
|
14
|
+
},
|
|
15
|
+
"../../filter-provider/utils": function(module) {
|
|
16
|
+
module.exports = require("../../filter-provider/utils.js");
|
|
17
|
+
},
|
|
18
|
+
"../../": function(module) {
|
|
19
|
+
module.exports = require("../../index.js");
|
|
20
|
+
},
|
|
21
|
+
"../../record-provider": function(module) {
|
|
22
|
+
module.exports = require("../../record-provider/index.js");
|
|
23
|
+
},
|
|
24
|
+
"../../schema-component/antd/association-field/util": function(module) {
|
|
25
|
+
module.exports = require("../../schema-component/antd/association-field/util.js");
|
|
26
|
+
},
|
|
27
|
+
"../../schema-component": function(module) {
|
|
28
|
+
module.exports = require("../../schema-component/index.js");
|
|
29
|
+
},
|
|
30
|
+
"../../user": function(module) {
|
|
31
|
+
module.exports = require("../../user/index.js");
|
|
32
|
+
},
|
|
33
|
+
"../../variables": function(module) {
|
|
34
|
+
module.exports = require("../../variables/index.js");
|
|
35
|
+
},
|
|
36
|
+
"../../variables/utils/isVariable": function(module) {
|
|
37
|
+
module.exports = require("../../variables/utils/isVariable.js");
|
|
38
|
+
},
|
|
39
|
+
"../../variables/utils/transformVariableValue": function(module) {
|
|
40
|
+
module.exports = require("../../variables/utils/transformVariableValue.js");
|
|
41
|
+
},
|
|
42
|
+
"../BlockProvider": function(module) {
|
|
43
|
+
module.exports = require("../BlockProvider.js");
|
|
44
|
+
},
|
|
45
|
+
"../DetailsBlockProvider": function(module) {
|
|
46
|
+
module.exports = require("../DetailsBlockProvider.js");
|
|
47
|
+
},
|
|
48
|
+
"../TableFieldProvider": function(module) {
|
|
49
|
+
module.exports = require("../TableFieldProvider.js");
|
|
50
|
+
},
|
|
51
|
+
"./useDataBlockSourceId": function(module) {
|
|
52
|
+
module.exports = require("./useDataBlockSourceId.js");
|
|
53
|
+
},
|
|
54
|
+
"./useFormActiveFields": function(module) {
|
|
55
|
+
module.exports = require("./useFormActiveFields.js");
|
|
56
|
+
},
|
|
57
|
+
"./useIsMobile": function(module) {
|
|
58
|
+
module.exports = require("./useIsMobile.js");
|
|
59
|
+
},
|
|
60
|
+
"./useParsedFilter": function(module) {
|
|
61
|
+
module.exports = require("./useParsedFilter.js");
|
|
62
|
+
},
|
|
63
|
+
"@tachybase/schema": function(module) {
|
|
64
|
+
module.exports = require("@tachybase/schema");
|
|
65
|
+
},
|
|
66
|
+
"@tachybase/utils/client": function(module) {
|
|
67
|
+
module.exports = require("@tachybase/utils/client");
|
|
68
|
+
},
|
|
69
|
+
antd: function(module) {
|
|
70
|
+
module.exports = require("antd");
|
|
71
|
+
},
|
|
72
|
+
lodash: function(module) {
|
|
73
|
+
module.exports = require("lodash");
|
|
74
|
+
},
|
|
75
|
+
"lodash/get": function(module) {
|
|
76
|
+
module.exports = require("lodash/get");
|
|
77
|
+
},
|
|
78
|
+
"lodash/omit": function(module) {
|
|
79
|
+
module.exports = require("lodash/omit");
|
|
80
|
+
},
|
|
81
|
+
react: function(module) {
|
|
82
|
+
module.exports = require("react");
|
|
83
|
+
},
|
|
84
|
+
"react-i18next": function(module) {
|
|
85
|
+
module.exports = require("react-i18next");
|
|
86
|
+
},
|
|
87
|
+
"react-router-dom": function(module) {
|
|
88
|
+
module.exports = require("react-router-dom");
|
|
89
|
+
},
|
|
90
|
+
"react-to-print": function(module) {
|
|
91
|
+
module.exports = require("react-to-print");
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
var __webpack_module_cache__ = {};
|
|
95
|
+
function __webpack_require__(moduleId) {
|
|
96
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
97
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
98
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
99
|
+
exports: {}
|
|
100
|
+
};
|
|
101
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
102
|
+
return module.exports;
|
|
103
|
+
}
|
|
104
|
+
(()=>{
|
|
105
|
+
__webpack_require__.n = function(module) {
|
|
106
|
+
var getter = module && module.__esModule ? function() {
|
|
107
|
+
return module['default'];
|
|
108
|
+
} : function() {
|
|
109
|
+
return module;
|
|
110
|
+
};
|
|
111
|
+
__webpack_require__.d(getter, {
|
|
112
|
+
a: getter
|
|
113
|
+
});
|
|
114
|
+
return getter;
|
|
115
|
+
};
|
|
116
|
+
})();
|
|
117
|
+
(()=>{
|
|
118
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
119
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: definition[key]
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
})();
|
|
125
|
+
(()=>{
|
|
126
|
+
__webpack_require__.o = function(obj, prop) {
|
|
127
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
128
|
+
};
|
|
129
|
+
})();
|
|
130
|
+
(()=>{
|
|
131
|
+
__webpack_require__.r = function(exports1) {
|
|
132
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
133
|
+
value: 'Module'
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
136
|
+
value: true
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
})();
|
|
140
|
+
var __webpack_exports__ = {};
|
|
141
|
+
__webpack_require__.r(__webpack_exports__);
|
|
142
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
143
|
+
findFilterTargets: function() {
|
|
144
|
+
return findFilterTargets;
|
|
145
|
+
},
|
|
146
|
+
getAssociationPath: function() {
|
|
147
|
+
return getAssociationPath;
|
|
148
|
+
},
|
|
149
|
+
getFormValues: function() {
|
|
150
|
+
return getFormValues;
|
|
151
|
+
},
|
|
152
|
+
updateFilterTargets: function() {
|
|
153
|
+
return updateFilterTargets;
|
|
154
|
+
},
|
|
155
|
+
useAssociationCreateActionProps: function() {
|
|
156
|
+
return useAssociationCreateActionProps;
|
|
157
|
+
},
|
|
158
|
+
useAssociationFilterBlockProps: function() {
|
|
159
|
+
return useAssociationFilterBlockProps;
|
|
160
|
+
},
|
|
161
|
+
useAssociationFilterProps: function() {
|
|
162
|
+
return useAssociationFilterProps;
|
|
163
|
+
},
|
|
164
|
+
useAssociationNames: function() {
|
|
165
|
+
return useAssociationNames;
|
|
166
|
+
},
|
|
167
|
+
useBulkDestroyActionProps: function() {
|
|
168
|
+
return useBulkDestroyActionProps;
|
|
169
|
+
},
|
|
170
|
+
useCancelActionProps: function() {
|
|
171
|
+
return useCancelActionProps;
|
|
172
|
+
},
|
|
173
|
+
useCollectValuesToSubmit: function() {
|
|
174
|
+
return useCollectValuesToSubmit;
|
|
175
|
+
},
|
|
176
|
+
useCreateActionProps: function() {
|
|
177
|
+
return useCreateActionProps;
|
|
178
|
+
},
|
|
179
|
+
useCustomizeRequestActionProps: function() {
|
|
180
|
+
return useCustomizeRequestActionProps;
|
|
181
|
+
},
|
|
182
|
+
useCustomizeUpdateActionProps: function() {
|
|
183
|
+
return useCustomizeUpdateActionProps;
|
|
184
|
+
},
|
|
185
|
+
useDestroyActionProps: function() {
|
|
186
|
+
return useDestroyActionProps;
|
|
187
|
+
},
|
|
188
|
+
useDetailPrintActionProps: function() {
|
|
189
|
+
return useDetailPrintActionProps;
|
|
190
|
+
},
|
|
191
|
+
useDetailsPaginationProps: function() {
|
|
192
|
+
return useDetailsPaginationProps;
|
|
193
|
+
},
|
|
194
|
+
useDisassociateActionProps: function() {
|
|
195
|
+
return useDisassociateActionProps;
|
|
196
|
+
},
|
|
197
|
+
useFilterBlockActionProps: function() {
|
|
198
|
+
return useFilterBlockActionProps;
|
|
199
|
+
},
|
|
200
|
+
useInsertSchema: function() {
|
|
201
|
+
return useInsertSchema;
|
|
202
|
+
},
|
|
203
|
+
useOptionalFieldList: function() {
|
|
204
|
+
return useOptionalFieldList;
|
|
205
|
+
},
|
|
206
|
+
useRefreshActionProps: function() {
|
|
207
|
+
return useRefreshActionProps;
|
|
208
|
+
},
|
|
209
|
+
useRemoveActionProps: function() {
|
|
210
|
+
return useRemoveActionProps;
|
|
211
|
+
},
|
|
212
|
+
useResetBlockActionProps: function() {
|
|
213
|
+
return useResetBlockActionProps;
|
|
214
|
+
},
|
|
215
|
+
useUpdateActionProps: function() {
|
|
216
|
+
return useUpdateActionProps;
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("react");
|
|
220
|
+
var _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@tachybase/schema");
|
|
221
|
+
var _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("@tachybase/utils/client");
|
|
222
|
+
var antd__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("antd");
|
|
223
|
+
var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("lodash");
|
|
224
|
+
var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/ __webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
|
|
225
|
+
var lodash_get__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("lodash/get");
|
|
226
|
+
var lodash_get__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/ __webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_5__);
|
|
227
|
+
var lodash_omit__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("lodash/omit");
|
|
228
|
+
var lodash_omit__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_6__);
|
|
229
|
+
var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("react-i18next");
|
|
230
|
+
var react_router_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("react-router-dom");
|
|
231
|
+
var react_to_print__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("react-to-print");
|
|
232
|
+
var ___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../../");
|
|
233
|
+
var _api_client__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../../api-client");
|
|
234
|
+
var _built_in_dynamic_page_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../built-in/dynamic-page/utils");
|
|
235
|
+
var _collection_manager__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../collection-manager");
|
|
236
|
+
var _filter_provider_FilterProvider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../filter-provider/FilterProvider");
|
|
237
|
+
var _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../../filter-provider/utils");
|
|
238
|
+
var _record_provider__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../../record-provider");
|
|
239
|
+
var _schema_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../../schema-component");
|
|
240
|
+
var _schema_component_antd_association_field_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("../../schema-component/antd/association-field/util");
|
|
241
|
+
var _user__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("../../user");
|
|
242
|
+
var _variables__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("../../variables");
|
|
243
|
+
var _variables_utils_isVariable__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("../../variables/utils/isVariable");
|
|
244
|
+
var _variables_utils_transformVariableValue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("../../variables/utils/transformVariableValue");
|
|
245
|
+
var _BlockProvider__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("../BlockProvider");
|
|
246
|
+
var _DetailsBlockProvider__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("../DetailsBlockProvider");
|
|
247
|
+
var _TableFieldProvider__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("../TableFieldProvider");
|
|
248
|
+
var _useFormActiveFields__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("./useFormActiveFields");
|
|
249
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
250
|
+
for(var __WEBPACK_IMPORT_KEY__ in _useFormActiveFields__WEBPACK_IMPORTED_MODULE_26__)if ([
|
|
251
|
+
"useAssociationCreateActionProps",
|
|
252
|
+
"useFilterBlockActionProps",
|
|
253
|
+
"findFilterTargets",
|
|
254
|
+
"useResetBlockActionProps",
|
|
255
|
+
"getAssociationPath",
|
|
256
|
+
"useInsertSchema",
|
|
257
|
+
"useAssociationNames",
|
|
258
|
+
"default",
|
|
259
|
+
"updateFilterTargets",
|
|
260
|
+
"useUpdateActionProps",
|
|
261
|
+
"getFormValues",
|
|
262
|
+
"useDisassociateActionProps",
|
|
263
|
+
"useDetailPrintActionProps",
|
|
264
|
+
"useCustomizeRequestActionProps",
|
|
265
|
+
"useCancelActionProps",
|
|
266
|
+
"useOptionalFieldList",
|
|
267
|
+
"useCollectValuesToSubmit",
|
|
268
|
+
"useCreateActionProps",
|
|
269
|
+
"useRemoveActionProps",
|
|
270
|
+
"useCustomizeUpdateActionProps",
|
|
271
|
+
"useRefreshActionProps",
|
|
272
|
+
"useDestroyActionProps",
|
|
273
|
+
"useDetailsPaginationProps",
|
|
274
|
+
"useBulkDestroyActionProps",
|
|
275
|
+
"useAssociationFilterProps",
|
|
276
|
+
"useAssociationFilterBlockProps"
|
|
277
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
278
|
+
return _useFormActiveFields__WEBPACK_IMPORTED_MODULE_26__[key];
|
|
279
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
280
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
281
|
+
var _useParsedFilter__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("./useParsedFilter");
|
|
282
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
283
|
+
for(var __WEBPACK_IMPORT_KEY__ in _useParsedFilter__WEBPACK_IMPORTED_MODULE_27__)if ([
|
|
284
|
+
"useAssociationCreateActionProps",
|
|
285
|
+
"useFilterBlockActionProps",
|
|
286
|
+
"findFilterTargets",
|
|
287
|
+
"useResetBlockActionProps",
|
|
288
|
+
"useBulkDestroyActionProps",
|
|
289
|
+
"useInsertSchema",
|
|
290
|
+
"useAssociationFilterProps",
|
|
291
|
+
"useAssociationFilterBlockProps",
|
|
292
|
+
"updateFilterTargets",
|
|
293
|
+
"useUpdateActionProps",
|
|
294
|
+
"getFormValues",
|
|
295
|
+
"useDisassociateActionProps",
|
|
296
|
+
"useDetailPrintActionProps",
|
|
297
|
+
"useCustomizeRequestActionProps",
|
|
298
|
+
"useCancelActionProps",
|
|
299
|
+
"useOptionalFieldList",
|
|
300
|
+
"useCollectValuesToSubmit",
|
|
301
|
+
"useAssociationNames",
|
|
302
|
+
"default",
|
|
303
|
+
"useCreateActionProps",
|
|
304
|
+
"useRemoveActionProps",
|
|
305
|
+
"useCustomizeUpdateActionProps",
|
|
306
|
+
"useRefreshActionProps",
|
|
307
|
+
"useDestroyActionProps",
|
|
308
|
+
"getAssociationPath",
|
|
309
|
+
"useDetailsPaginationProps"
|
|
310
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
311
|
+
return _useParsedFilter__WEBPACK_IMPORTED_MODULE_27__[key];
|
|
312
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
313
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
314
|
+
var _useDataBlockSourceId__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("./useDataBlockSourceId");
|
|
315
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
316
|
+
for(var __WEBPACK_IMPORT_KEY__ in _useDataBlockSourceId__WEBPACK_IMPORTED_MODULE_28__)if ([
|
|
317
|
+
"useAssociationCreateActionProps",
|
|
318
|
+
"useFilterBlockActionProps",
|
|
319
|
+
"findFilterTargets",
|
|
320
|
+
"useResetBlockActionProps",
|
|
321
|
+
"useBulkDestroyActionProps",
|
|
322
|
+
"useInsertSchema",
|
|
323
|
+
"useAssociationFilterProps",
|
|
324
|
+
"useAssociationFilterBlockProps",
|
|
325
|
+
"updateFilterTargets",
|
|
326
|
+
"useUpdateActionProps",
|
|
327
|
+
"getFormValues",
|
|
328
|
+
"useDisassociateActionProps",
|
|
329
|
+
"useDetailPrintActionProps",
|
|
330
|
+
"useCustomizeRequestActionProps",
|
|
331
|
+
"useCancelActionProps",
|
|
332
|
+
"useOptionalFieldList",
|
|
333
|
+
"useCollectValuesToSubmit",
|
|
334
|
+
"useAssociationNames",
|
|
335
|
+
"default",
|
|
336
|
+
"useCreateActionProps",
|
|
337
|
+
"useRemoveActionProps",
|
|
338
|
+
"useCustomizeUpdateActionProps",
|
|
339
|
+
"useRefreshActionProps",
|
|
340
|
+
"useDestroyActionProps",
|
|
341
|
+
"getAssociationPath",
|
|
342
|
+
"useDetailsPaginationProps"
|
|
343
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
344
|
+
return _useDataBlockSourceId__WEBPACK_IMPORTED_MODULE_28__[key];
|
|
345
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
346
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
347
|
+
var _useIsMobile__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("./useIsMobile");
|
|
348
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
349
|
+
for(var __WEBPACK_IMPORT_KEY__ in _useIsMobile__WEBPACK_IMPORTED_MODULE_29__)if ([
|
|
350
|
+
"useAssociationCreateActionProps",
|
|
351
|
+
"useFilterBlockActionProps",
|
|
352
|
+
"findFilterTargets",
|
|
353
|
+
"useResetBlockActionProps",
|
|
354
|
+
"useBulkDestroyActionProps",
|
|
355
|
+
"useInsertSchema",
|
|
356
|
+
"useAssociationFilterProps",
|
|
357
|
+
"useAssociationFilterBlockProps",
|
|
358
|
+
"updateFilterTargets",
|
|
359
|
+
"useUpdateActionProps",
|
|
360
|
+
"getFormValues",
|
|
361
|
+
"useDisassociateActionProps",
|
|
362
|
+
"useDetailPrintActionProps",
|
|
363
|
+
"useCustomizeRequestActionProps",
|
|
364
|
+
"useCancelActionProps",
|
|
365
|
+
"useOptionalFieldList",
|
|
366
|
+
"useCollectValuesToSubmit",
|
|
367
|
+
"useAssociationNames",
|
|
368
|
+
"default",
|
|
369
|
+
"useCreateActionProps",
|
|
370
|
+
"useRemoveActionProps",
|
|
371
|
+
"useCustomizeUpdateActionProps",
|
|
372
|
+
"useRefreshActionProps",
|
|
373
|
+
"useDestroyActionProps",
|
|
374
|
+
"getAssociationPath",
|
|
375
|
+
"useDetailsPaginationProps"
|
|
376
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
377
|
+
return _useIsMobile__WEBPACK_IMPORTED_MODULE_29__[key];
|
|
378
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
379
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
380
|
+
function renderTemplate(str, data) {
|
|
381
|
+
const re = /\{\{\s*((\w+\.?)+)\s*\}\}/g;
|
|
382
|
+
return str.replace(re, function(_, key) {
|
|
383
|
+
return lodash_get__WEBPACK_IMPORTED_MODULE_5___default()(data, key) || '';
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
function getFormValues(param) {
|
|
387
|
+
let { filterByTk, field, form, fieldNames, getField, resource, actionFields } = param;
|
|
388
|
+
if (filterByTk) {
|
|
389
|
+
if (actionFields) {
|
|
390
|
+
const keys = Object.keys(form.values).filter((key)=>{
|
|
391
|
+
const f = getField(key);
|
|
392
|
+
return !actionFields.includes(key) && [
|
|
393
|
+
'hasOne',
|
|
394
|
+
'hasMany',
|
|
395
|
+
'belongsTo',
|
|
396
|
+
'belongsToMany'
|
|
397
|
+
].includes(null == f ? void 0 : f.type);
|
|
398
|
+
});
|
|
399
|
+
return lodash_omit__WEBPACK_IMPORTED_MODULE_6___default()({
|
|
400
|
+
...form.values
|
|
401
|
+
}, keys);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
return form.values;
|
|
405
|
+
}
|
|
406
|
+
function useCollectValuesToSubmit() {
|
|
407
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
408
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
409
|
+
const { field, resource } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
410
|
+
const { fields, getField, getTreeParentField, name } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
411
|
+
const fieldNames = fields.map((field)=>field.name);
|
|
412
|
+
const { fieldSchema } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
413
|
+
const { getActiveFieldsName } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormActiveFields)() || {};
|
|
414
|
+
const variables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useVariables)();
|
|
415
|
+
const localVariables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useLocalVariables)({
|
|
416
|
+
currentForm: form
|
|
417
|
+
});
|
|
418
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
419
|
+
const currentRecord = (0, _record_provider__WEBPACK_IMPORTED_MODULE_16__.useRecord)();
|
|
420
|
+
return (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(async ()=>{
|
|
421
|
+
var _fieldSchema_xcomponentprops;
|
|
422
|
+
var _actionSchema_xactionsettings;
|
|
423
|
+
const { assignedValues: originalAssignedValues = {}, overwriteValues } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
424
|
+
const values = getFormValues({
|
|
425
|
+
filterByTk,
|
|
426
|
+
field,
|
|
427
|
+
form,
|
|
428
|
+
fieldNames,
|
|
429
|
+
getField,
|
|
430
|
+
resource,
|
|
431
|
+
actionFields: (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || []
|
|
432
|
+
});
|
|
433
|
+
const assignedValues = {};
|
|
434
|
+
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
435
|
+
const value = originalAssignedValues[key];
|
|
436
|
+
const collectionField = getField(key);
|
|
437
|
+
if ((0, _variables_utils_isVariable__WEBPACK_IMPORTED_MODULE_21__.isVariable)(value)) {
|
|
438
|
+
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
439
|
+
if (result) assignedValues[key] = (0, _variables_utils_transformVariableValue__WEBPACK_IMPORTED_MODULE_22__.transformVariableValue)(result, {
|
|
440
|
+
targetCollectionField: collectionField
|
|
441
|
+
});
|
|
442
|
+
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
443
|
+
});
|
|
444
|
+
await Promise.all(waitList);
|
|
445
|
+
const addChild = null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
446
|
+
if (addChild) {
|
|
447
|
+
var _currentRecord___parent;
|
|
448
|
+
const treeParentField = getTreeParentField();
|
|
449
|
+
var _treeParentField_name;
|
|
450
|
+
values[null !== (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) && void 0 !== _treeParentField_name ? _treeParentField_name : 'parent'] = lodash_omit__WEBPACK_IMPORTED_MODULE_6___default()(null == currentRecord ? void 0 : currentRecord.__parent, [
|
|
451
|
+
'children'
|
|
452
|
+
]);
|
|
453
|
+
var _treeParentField_foreignKey;
|
|
454
|
+
values[null !== (_treeParentField_foreignKey = null == treeParentField ? void 0 : treeParentField.foreignKey) && void 0 !== _treeParentField_foreignKey ? _treeParentField_foreignKey : 'parentId'] = null == currentRecord ? void 0 : null === (_currentRecord___parent = currentRecord.__parent) || void 0 === _currentRecord___parent ? void 0 : _currentRecord___parent.id;
|
|
455
|
+
}
|
|
456
|
+
return {
|
|
457
|
+
...values,
|
|
458
|
+
...overwriteValues,
|
|
459
|
+
...assignedValues
|
|
460
|
+
};
|
|
461
|
+
}, [
|
|
462
|
+
actionSchema,
|
|
463
|
+
null == currentRecord ? void 0 : currentRecord.__parent,
|
|
464
|
+
field,
|
|
465
|
+
fieldNames,
|
|
466
|
+
fieldSchema,
|
|
467
|
+
filterByTk,
|
|
468
|
+
form,
|
|
469
|
+
getActiveFieldsName,
|
|
470
|
+
getField,
|
|
471
|
+
getTreeParentField,
|
|
472
|
+
localVariables,
|
|
473
|
+
name,
|
|
474
|
+
resource,
|
|
475
|
+
variables
|
|
476
|
+
]);
|
|
477
|
+
}
|
|
478
|
+
const pageDetailsViewer = 'Action.Container';
|
|
479
|
+
const viewerSchema = {
|
|
480
|
+
type: 'void',
|
|
481
|
+
title: '{{t("View record")}}',
|
|
482
|
+
'x-component': 'Action.Container',
|
|
483
|
+
'x-component-props': {
|
|
484
|
+
className: 'tb-action-popup'
|
|
485
|
+
},
|
|
486
|
+
properties: {
|
|
487
|
+
page: {
|
|
488
|
+
type: 'void',
|
|
489
|
+
title: '{{t("Detail page")}}',
|
|
490
|
+
'x-designer': 'Page.Designer',
|
|
491
|
+
'x-component': 'Page',
|
|
492
|
+
'x-component-props': {
|
|
493
|
+
disablePageHeader: true
|
|
494
|
+
},
|
|
495
|
+
properties: {
|
|
496
|
+
grid: {
|
|
497
|
+
type: 'void',
|
|
498
|
+
'x-component': 'Grid',
|
|
499
|
+
'x-initializer': 'popup:common:addBlock',
|
|
500
|
+
properties: {}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
const useInsertSchema = ()=>{
|
|
507
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
508
|
+
const { insertAfterBegin } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useDesignable)();
|
|
509
|
+
const insert = (0, react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((ss)=>{
|
|
510
|
+
const schema = fieldSchema.reduceProperties((buf, s)=>{
|
|
511
|
+
if (s['x-component'] === pageDetailsViewer) return s;
|
|
512
|
+
return buf;
|
|
513
|
+
}, null);
|
|
514
|
+
if (!schema) insertAfterBegin(lodash__WEBPACK_IMPORTED_MODULE_4___default().cloneDeep(ss));
|
|
515
|
+
}, [
|
|
516
|
+
pageDetailsViewer
|
|
517
|
+
]);
|
|
518
|
+
return insert;
|
|
519
|
+
};
|
|
520
|
+
const useCancelActionProps = ()=>{
|
|
521
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
522
|
+
const ctx = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
523
|
+
return {
|
|
524
|
+
async onClick () {
|
|
525
|
+
ctx.setVisible(false);
|
|
526
|
+
form.reset();
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
const useJumpDetails = ()=>{
|
|
531
|
+
const collection = (0, ___WEBPACK_IMPORTED_MODULE_10__.useCollection)();
|
|
532
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
533
|
+
const dn = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useDesignable)();
|
|
534
|
+
const insert = useInsertSchema();
|
|
535
|
+
const navigate = (0, react_router_dom__WEBPACK_IMPORTED_MODULE_8__.useNavigate)();
|
|
536
|
+
return (filterByTk)=>{
|
|
537
|
+
if (dn.designable) insert(viewerSchema);
|
|
538
|
+
const targetSchema = fieldSchema.reduceProperties((buf, s)=>{
|
|
539
|
+
if (s['x-component'] === pageDetailsViewer) return s;
|
|
540
|
+
return buf;
|
|
541
|
+
});
|
|
542
|
+
if (targetSchema) navigate("../".concat(targetSchema['x-uid'], "/").concat(_built_in_dynamic_page_utils__WEBPACK_IMPORTED_MODULE_12__.PathHandler.getInstance().toWildcardPath({
|
|
543
|
+
collection: collection.name,
|
|
544
|
+
filterByTk
|
|
545
|
+
})));
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
const useCreateActionProps = ()=>{
|
|
549
|
+
var _actionField_componentProps_filterKeys;
|
|
550
|
+
const record = (0, ___WEBPACK_IMPORTED_MODULE_10__.useCollectionRecord)();
|
|
551
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
552
|
+
const { field, resource, __parent } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
553
|
+
const jumpDetails = useJumpDetails();
|
|
554
|
+
const { setVisible } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
555
|
+
const navigate = (0, react_router_dom__WEBPACK_IMPORTED_MODULE_8__.useNavigate)();
|
|
556
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
557
|
+
const actionField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
558
|
+
const compile = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useCompile)();
|
|
559
|
+
const { modal, message } = antd__WEBPACK_IMPORTED_MODULE_3__.App.useApp();
|
|
560
|
+
const { t } = (0, react_i18next__WEBPACK_IMPORTED_MODULE_7__.useTranslation)();
|
|
561
|
+
const { updateAssociationValues } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormBlockContext)();
|
|
562
|
+
const collectValues = useCollectValuesToSubmit();
|
|
563
|
+
const action = record.isNew ? actionField.componentProps.saveMode || 'create' : 'update';
|
|
564
|
+
const filterKeys = (null === (_actionField_componentProps_filterKeys = actionField.componentProps.filterKeys) || void 0 === _actionField_componentProps_filterKeys ? void 0 : _actionField_componentProps_filterKeys.checked) || [];
|
|
565
|
+
return {
|
|
566
|
+
async onClick () {
|
|
567
|
+
var _actionSchema_xactionsettings;
|
|
568
|
+
const { onSuccess, skipValidator, triggerWorkflows, pageMode } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
569
|
+
if (!skipValidator) await form.submit();
|
|
570
|
+
actionField.data = field.data || {};
|
|
571
|
+
actionField.data.loading = true;
|
|
572
|
+
try {
|
|
573
|
+
var __parent_service_refresh, __parent_service;
|
|
574
|
+
const data = await resource[action]({
|
|
575
|
+
values: await collectValues(),
|
|
576
|
+
filterKeys: filterKeys,
|
|
577
|
+
triggerWorkflows: (null == triggerWorkflows ? void 0 : triggerWorkflows.length) ? triggerWorkflows.map((row)=>[
|
|
578
|
+
row.workflowKey,
|
|
579
|
+
row.context
|
|
580
|
+
].filter(Boolean).join('!')).join(',') : void 0,
|
|
581
|
+
updateAssociationValues
|
|
582
|
+
});
|
|
583
|
+
actionField.data.loading = false;
|
|
584
|
+
actionField.data.data = data;
|
|
585
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
586
|
+
if (pageMode) {
|
|
587
|
+
var _data_data_data, _data_data;
|
|
588
|
+
await resetFormCorrectly(form);
|
|
589
|
+
jumpDetails(null == data ? void 0 : null === (_data_data = data.data) || void 0 === _data_data ? void 0 : null === (_data_data_data = _data_data.data) || void 0 === _data_data_data ? void 0 : _data_data_data.id);
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
const successMessage = (null == onSuccess ? void 0 : onSuccess.successMessage) ? compile(null == onSuccess ? void 0 : onSuccess.successMessage) : t('Saved successfully');
|
|
593
|
+
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
594
|
+
title: successMessage,
|
|
595
|
+
onOk: async ()=>{
|
|
596
|
+
await resetFormCorrectly(form);
|
|
597
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
598
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
599
|
+
else navigate(onSuccess.redirectTo);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
else {
|
|
604
|
+
message.success(successMessage);
|
|
605
|
+
await resetFormCorrectly(form);
|
|
606
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
607
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
608
|
+
else navigate(onSuccess.redirectTo);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if (!(null == onSuccess ? void 0 : onSuccess.popupClose)) {
|
|
612
|
+
await resetFormCorrectly(form);
|
|
613
|
+
null == setVisible || setVisible(false);
|
|
614
|
+
}
|
|
615
|
+
if (!onSuccess) null == setVisible || setVisible(false);
|
|
616
|
+
} catch (error) {
|
|
617
|
+
actionField.data.loading = false;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
const useAssociationCreateActionProps = ()=>{
|
|
623
|
+
var _actionField_componentProps_filterKeys;
|
|
624
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
625
|
+
const { field, resource, __parent } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
626
|
+
const { setVisible, fieldSchema } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
627
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
628
|
+
const actionField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
629
|
+
const { message } = antd__WEBPACK_IMPORTED_MODULE_3__.App.useApp();
|
|
630
|
+
const { fields, getField, getTreeParentField, name } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
631
|
+
const compile = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useCompile)();
|
|
632
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
633
|
+
const currentRecord = (0, _record_provider__WEBPACK_IMPORTED_MODULE_16__.useRecord)();
|
|
634
|
+
const variables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useVariables)();
|
|
635
|
+
const localVariables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useLocalVariables)({
|
|
636
|
+
currentForm: form
|
|
637
|
+
});
|
|
638
|
+
const { getActiveFieldsName } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormActiveFields)() || {};
|
|
639
|
+
const action = actionField.componentProps.saveMode || 'create';
|
|
640
|
+
const filterKeys = (null === (_actionField_componentProps_filterKeys = actionField.componentProps.filterKeys) || void 0 === _actionField_componentProps_filterKeys ? void 0 : _actionField_componentProps_filterKeys.checked) || [];
|
|
641
|
+
return {
|
|
642
|
+
async onClick () {
|
|
643
|
+
var _fieldSchema_xcomponentprops;
|
|
644
|
+
const fieldNames = fields.map((field)=>field.name);
|
|
645
|
+
var _actionSchema_xactionsettings;
|
|
646
|
+
const { assignedValues: originalAssignedValues = {}, onSuccess, overwriteValues, skipValidator, triggerWorkflows } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
647
|
+
const addChild = null == fieldSchema ? void 0 : null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
648
|
+
const assignedValues = {};
|
|
649
|
+
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
650
|
+
const value = originalAssignedValues[key];
|
|
651
|
+
const collectionField = getField(key);
|
|
652
|
+
if ((0, _variables_utils_isVariable__WEBPACK_IMPORTED_MODULE_21__.isVariable)(value)) {
|
|
653
|
+
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
654
|
+
if (result) assignedValues[key] = (0, _variables_utils_transformVariableValue__WEBPACK_IMPORTED_MODULE_22__.transformVariableValue)(result, {
|
|
655
|
+
targetCollectionField: collectionField
|
|
656
|
+
});
|
|
657
|
+
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
658
|
+
});
|
|
659
|
+
await Promise.all(waitList);
|
|
660
|
+
if (!skipValidator) await form.submit();
|
|
661
|
+
const values = getFormValues({
|
|
662
|
+
filterByTk,
|
|
663
|
+
field,
|
|
664
|
+
form,
|
|
665
|
+
fieldNames,
|
|
666
|
+
getField,
|
|
667
|
+
resource,
|
|
668
|
+
actionFields: (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || []
|
|
669
|
+
});
|
|
670
|
+
if (addChild) {
|
|
671
|
+
const treeParentField = getTreeParentField();
|
|
672
|
+
var _treeParentField_name;
|
|
673
|
+
values[null !== (_treeParentField_name = null == treeParentField ? void 0 : treeParentField.name) && void 0 !== _treeParentField_name ? _treeParentField_name : 'parent'] = currentRecord;
|
|
674
|
+
var _treeParentField_foreignKey;
|
|
675
|
+
values[null !== (_treeParentField_foreignKey = null == treeParentField ? void 0 : treeParentField.foreignKey) && void 0 !== _treeParentField_foreignKey ? _treeParentField_foreignKey : 'parentId'] = currentRecord.id;
|
|
676
|
+
}
|
|
677
|
+
actionField.data = field.data || {};
|
|
678
|
+
actionField.data.loading = true;
|
|
679
|
+
try {
|
|
680
|
+
var __parent_service_refresh, __parent_service;
|
|
681
|
+
const data = await resource[action]({
|
|
682
|
+
values: {
|
|
683
|
+
...values,
|
|
684
|
+
...overwriteValues,
|
|
685
|
+
...assignedValues
|
|
686
|
+
},
|
|
687
|
+
filterKeys: filterKeys,
|
|
688
|
+
triggerWorkflows: (null == triggerWorkflows ? void 0 : triggerWorkflows.length) ? triggerWorkflows.map((row)=>[
|
|
689
|
+
row.workflowKey,
|
|
690
|
+
row.context
|
|
691
|
+
].filter(Boolean).join('!')).join(',') : void 0
|
|
692
|
+
});
|
|
693
|
+
actionField.data.loading = false;
|
|
694
|
+
actionField.data.data = data;
|
|
695
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
696
|
+
null == setVisible || setVisible(false);
|
|
697
|
+
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
698
|
+
message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
699
|
+
} catch (error) {
|
|
700
|
+
actionField.data.data = null;
|
|
701
|
+
actionField.data.loading = false;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
const findFilterTargets = (fieldSchema)=>{
|
|
707
|
+
while(fieldSchema){
|
|
708
|
+
if (fieldSchema['x-filter-targets']) return {
|
|
709
|
+
targets: fieldSchema['x-filter-targets'],
|
|
710
|
+
uid: fieldSchema['x-uid']
|
|
711
|
+
};
|
|
712
|
+
fieldSchema = fieldSchema.parent;
|
|
713
|
+
}
|
|
714
|
+
return {};
|
|
715
|
+
};
|
|
716
|
+
const updateFilterTargets = (fieldSchema, targets)=>{
|
|
717
|
+
while(fieldSchema){
|
|
718
|
+
if (fieldSchema['x-filter-targets']) {
|
|
719
|
+
fieldSchema['x-filter-targets'] = targets;
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
fieldSchema = fieldSchema.parent;
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
const useFilterBlockActionProps = ()=>{
|
|
726
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
727
|
+
const actionField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
728
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
729
|
+
const { getDataBlocks } = (0, _filter_provider_FilterProvider__WEBPACK_IMPORTED_MODULE_14__.useFilterBlock)();
|
|
730
|
+
const { name } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
731
|
+
const { getCollectionJoinField } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollectionManager_deprecated)();
|
|
732
|
+
actionField.data = actionField.data || {};
|
|
733
|
+
return {
|
|
734
|
+
async onClick () {
|
|
735
|
+
const { targets = [], uid } = findFilterTargets(fieldSchema);
|
|
736
|
+
actionField.data.loading = true;
|
|
737
|
+
try {
|
|
738
|
+
await Promise.all(getDataBlocks().map(async (block)=>{
|
|
739
|
+
var _block_service_params, _block_service_params_, _block_service_params1, _Object_keys;
|
|
740
|
+
const target = targets.find((target)=>target.uid === block.uid);
|
|
741
|
+
if (!target) return;
|
|
742
|
+
const param = (null === (_block_service_params = block.service.params) || void 0 === _block_service_params ? void 0 : _block_service_params[0]) || {};
|
|
743
|
+
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];
|
|
744
|
+
const storedFilter = (null === (_block_service_params1 = block.service.params) || void 0 === _block_service_params1 ? void 0 : null === (_block_service_params_ = _block_service_params1[1]) || void 0 === _block_service_params_ ? void 0 : _block_service_params_.filters) || {};
|
|
745
|
+
const filter = {
|
|
746
|
+
formValues: {
|
|
747
|
+
...form.values
|
|
748
|
+
},
|
|
749
|
+
customValues: {},
|
|
750
|
+
customFilter: {}
|
|
751
|
+
};
|
|
752
|
+
if (null === (_Object_keys = Object.keys(filter.formValues)) || void 0 === _Object_keys ? void 0 : _Object_keys.includes('__custom')) {
|
|
753
|
+
const values = {
|
|
754
|
+
...form.values
|
|
755
|
+
};
|
|
756
|
+
delete values['__custom'];
|
|
757
|
+
filter.formValues = {
|
|
758
|
+
...values
|
|
759
|
+
};
|
|
760
|
+
for(const key in form.values['__custom'])if (form.values['__custom'][key]) filter.customValues[key] = form.values['__custom'][key];
|
|
761
|
+
filter.customFilter = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.getCustomCondition)(filter.customValues, fieldSchema);
|
|
762
|
+
}
|
|
763
|
+
storedFilter[uid] = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.removeNullCondition)((0, _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__.transformToFilter)(filter.formValues, fieldSchema, getCollectionJoinField, name));
|
|
764
|
+
const mergedFilter = (0, _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__.mergeFilter)([
|
|
765
|
+
...Object.values(storedFilter).map((filter)=>(0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.removeNullCondition)(filter)),
|
|
766
|
+
block.defaultFilter,
|
|
767
|
+
filter.customFilter
|
|
768
|
+
]);
|
|
769
|
+
if ('manual' === block.dataLoadingMode && lodash__WEBPACK_IMPORTED_MODULE_4___default().isEmpty(mergedFilter)) return block.clearData();
|
|
770
|
+
return block.doFilter({
|
|
771
|
+
...param,
|
|
772
|
+
page: 1,
|
|
773
|
+
filter: mergedFilter
|
|
774
|
+
}, {
|
|
775
|
+
filters: storedFilter
|
|
776
|
+
});
|
|
777
|
+
}));
|
|
778
|
+
} catch (error) {
|
|
779
|
+
console.error(error);
|
|
780
|
+
}
|
|
781
|
+
actionField.data.loading = false;
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
const useResetBlockActionProps = ()=>{
|
|
786
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
787
|
+
const actionField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
788
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
789
|
+
const { getDataBlocks } = (0, _filter_provider_FilterProvider__WEBPACK_IMPORTED_MODULE_14__.useFilterBlock)();
|
|
790
|
+
actionField.data = actionField.data || {};
|
|
791
|
+
return {
|
|
792
|
+
async onClick () {
|
|
793
|
+
const { targets, uid } = findFilterTargets(fieldSchema);
|
|
794
|
+
form.reset();
|
|
795
|
+
actionField.data.loading = true;
|
|
796
|
+
try {
|
|
797
|
+
await Promise.all(getDataBlocks().map(async (block)=>{
|
|
798
|
+
var _block_service_params, _block_service_params_, _block_service_params1;
|
|
799
|
+
const target = targets.find((target)=>target.uid === block.uid);
|
|
800
|
+
if (!target) return;
|
|
801
|
+
if ('manual' === block.dataLoadingMode) return block.clearData();
|
|
802
|
+
const param = (null === (_block_service_params = block.service.params) || void 0 === _block_service_params ? void 0 : _block_service_params[0]) || {};
|
|
803
|
+
const storedFilter = (null === (_block_service_params1 = block.service.params) || void 0 === _block_service_params1 ? void 0 : null === (_block_service_params_ = _block_service_params1[1]) || void 0 === _block_service_params_ ? void 0 : _block_service_params_.filters) || {};
|
|
804
|
+
delete storedFilter[uid];
|
|
805
|
+
const mergedFilter = (0, _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__.mergeFilter)([
|
|
806
|
+
...Object.values(storedFilter),
|
|
807
|
+
block.defaultFilter
|
|
808
|
+
]);
|
|
809
|
+
return block.doFilter({
|
|
810
|
+
...param,
|
|
811
|
+
page: 1,
|
|
812
|
+
filter: mergedFilter
|
|
813
|
+
}, {
|
|
814
|
+
filters: storedFilter
|
|
815
|
+
});
|
|
816
|
+
}));
|
|
817
|
+
actionField.data.loading = false;
|
|
818
|
+
} catch (error) {
|
|
819
|
+
actionField.data.loading = false;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
const useCustomizeUpdateActionProps = ()=>{
|
|
825
|
+
const { resource, __parent, service } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
826
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
827
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
828
|
+
const navigate = (0, react_router_dom__WEBPACK_IMPORTED_MODULE_8__.useNavigate)();
|
|
829
|
+
const compile = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useCompile)();
|
|
830
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
831
|
+
const { modal, message } = antd__WEBPACK_IMPORTED_MODULE_3__.App.useApp();
|
|
832
|
+
const variables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useVariables)();
|
|
833
|
+
const localVariables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useLocalVariables)({
|
|
834
|
+
currentForm: form
|
|
835
|
+
});
|
|
836
|
+
const { name, getField } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
837
|
+
return {
|
|
838
|
+
async onClick () {
|
|
839
|
+
var _service_refresh;
|
|
840
|
+
var _actionSchema_xactionsettings;
|
|
841
|
+
const { assignedValues: originalAssignedValues = {}, onSuccess, skipValidator, triggerWorkflows } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
842
|
+
const assignedValues = {};
|
|
843
|
+
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
844
|
+
const value = originalAssignedValues[key];
|
|
845
|
+
const collectionField = getField(key);
|
|
846
|
+
if ((0, _variables_utils_isVariable__WEBPACK_IMPORTED_MODULE_21__.isVariable)(value)) {
|
|
847
|
+
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
848
|
+
if (result) assignedValues[key] = (0, _variables_utils_transformVariableValue__WEBPACK_IMPORTED_MODULE_22__.transformVariableValue)(result, {
|
|
849
|
+
targetCollectionField: collectionField
|
|
850
|
+
});
|
|
851
|
+
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
852
|
+
});
|
|
853
|
+
await Promise.all(waitList);
|
|
854
|
+
if (false === skipValidator) await form.submit();
|
|
855
|
+
await resource.update({
|
|
856
|
+
filterByTk,
|
|
857
|
+
values: {
|
|
858
|
+
...assignedValues
|
|
859
|
+
},
|
|
860
|
+
triggerWorkflows: (null == triggerWorkflows ? void 0 : triggerWorkflows.length) ? triggerWorkflows.map((row)=>[
|
|
861
|
+
row.workflowKey,
|
|
862
|
+
row.context
|
|
863
|
+
].filter(Boolean).join('!')).join(',') : void 0
|
|
864
|
+
});
|
|
865
|
+
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
866
|
+
if (!(resource instanceof _TableFieldProvider__WEBPACK_IMPORTED_MODULE_25__.TableFieldResource)) {
|
|
867
|
+
var __parent_service_refresh, __parent_service;
|
|
868
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
869
|
+
}
|
|
870
|
+
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
871
|
+
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
872
|
+
title: compile(null == onSuccess ? void 0 : onSuccess.successMessage),
|
|
873
|
+
onOk: async ()=>{
|
|
874
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
875
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
876
|
+
else navigate(onSuccess.redirectTo);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
else {
|
|
881
|
+
message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
882
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
883
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
884
|
+
else navigate(onSuccess.redirectTo);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
const useCustomizeRequestActionProps = ()=>{
|
|
891
|
+
var _currentUserContext_data;
|
|
892
|
+
const apiClient = (0, _api_client__WEBPACK_IMPORTED_MODULE_11__.useAPIClient)();
|
|
893
|
+
const navigate = (0, react_router_dom__WEBPACK_IMPORTED_MODULE_8__.useNavigate)();
|
|
894
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
895
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
896
|
+
const compile = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useCompile)();
|
|
897
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
898
|
+
const { fields, getField } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
899
|
+
const { field, resource, __parent, service } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
900
|
+
const currentRecord = (0, _record_provider__WEBPACK_IMPORTED_MODULE_16__.useRecord)();
|
|
901
|
+
const currentUserContext = (0, _user__WEBPACK_IMPORTED_MODULE_19__.useCurrentUserContext)();
|
|
902
|
+
const currentUser = null == currentUserContext ? void 0 : null === (_currentUserContext_data = currentUserContext.data) || void 0 === _currentUserContext_data ? void 0 : _currentUserContext_data.data;
|
|
903
|
+
const actionField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
904
|
+
const { setVisible } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
905
|
+
const { modal, message } = antd__WEBPACK_IMPORTED_MODULE_3__.App.useApp();
|
|
906
|
+
const { getActiveFieldsName } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormActiveFields)() || {};
|
|
907
|
+
return {
|
|
908
|
+
async onClick () {
|
|
909
|
+
var _actionSchema_xactionsettings;
|
|
910
|
+
const { skipValidator, onSuccess, requestSettings } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
911
|
+
const xAction = null == actionSchema ? void 0 : actionSchema['x-action'];
|
|
912
|
+
if (!requestSettings['url']) return;
|
|
913
|
+
if (true !== skipValidator && 'customize:form:request' === xAction) await form.submit();
|
|
914
|
+
const headers = requestSettings['headers'] ? JSON.parse(requestSettings['headers']) : {};
|
|
915
|
+
const params = requestSettings['params'] ? JSON.parse(requestSettings['params']) : {};
|
|
916
|
+
const data = requestSettings['data'] ? JSON.parse(requestSettings['data']) : {};
|
|
917
|
+
const methods = [
|
|
918
|
+
'POST',
|
|
919
|
+
'PUT',
|
|
920
|
+
'PATCH'
|
|
921
|
+
];
|
|
922
|
+
if ('customize:form:request' === xAction && methods.includes(requestSettings['method'])) {
|
|
923
|
+
const fieldNames = fields.map((field)=>field.name);
|
|
924
|
+
const values = getFormValues({
|
|
925
|
+
filterByTk,
|
|
926
|
+
field,
|
|
927
|
+
form,
|
|
928
|
+
fieldNames,
|
|
929
|
+
getField,
|
|
930
|
+
resource,
|
|
931
|
+
actionFields: (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || []
|
|
932
|
+
});
|
|
933
|
+
Object.assign(data, values);
|
|
934
|
+
}
|
|
935
|
+
const requestBody = {
|
|
936
|
+
url: renderTemplate(requestSettings['url'], {
|
|
937
|
+
currentRecord,
|
|
938
|
+
currentUser
|
|
939
|
+
}),
|
|
940
|
+
method: requestSettings['method'],
|
|
941
|
+
headers: (0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.parse)(headers)({
|
|
942
|
+
currentRecord,
|
|
943
|
+
currentUser
|
|
944
|
+
}),
|
|
945
|
+
params: (0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.parse)(params)({
|
|
946
|
+
currentRecord,
|
|
947
|
+
currentUser
|
|
948
|
+
}),
|
|
949
|
+
data: (0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.parse)(data)({
|
|
950
|
+
currentRecord,
|
|
951
|
+
currentUser
|
|
952
|
+
})
|
|
953
|
+
};
|
|
954
|
+
actionField.data = field.data || {};
|
|
955
|
+
actionField.data.loading = true;
|
|
956
|
+
try {
|
|
957
|
+
var _service_refresh;
|
|
958
|
+
await apiClient.request({
|
|
959
|
+
...requestBody
|
|
960
|
+
});
|
|
961
|
+
actionField.data.loading = false;
|
|
962
|
+
if (!(resource instanceof _TableFieldProvider__WEBPACK_IMPORTED_MODULE_25__.TableFieldResource)) {
|
|
963
|
+
var __parent_service_refresh, __parent_service;
|
|
964
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
965
|
+
}
|
|
966
|
+
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
967
|
+
if ('customize:form:request' === xAction) null == setVisible || setVisible(false);
|
|
968
|
+
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
969
|
+
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
970
|
+
title: compile(null == onSuccess ? void 0 : onSuccess.successMessage),
|
|
971
|
+
onOk: async ()=>{
|
|
972
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
973
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
974
|
+
else navigate(onSuccess.redirectTo);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
else message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
979
|
+
} finally{
|
|
980
|
+
actionField.data.loading = false;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
const useUpdateActionProps = ()=>{
|
|
986
|
+
const form = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useForm)();
|
|
987
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
988
|
+
const { field, resource, __parent } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
989
|
+
const { setVisible } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
990
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
991
|
+
const navigate = (0, react_router_dom__WEBPACK_IMPORTED_MODULE_8__.useNavigate)();
|
|
992
|
+
const { fields, getField, name } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
993
|
+
const compile = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useCompile)();
|
|
994
|
+
const actionField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
995
|
+
const { updateAssociationValues } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormBlockContext)();
|
|
996
|
+
const { modal, message } = antd__WEBPACK_IMPORTED_MODULE_3__.App.useApp();
|
|
997
|
+
const data = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useParamsFromRecord)();
|
|
998
|
+
const variables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useVariables)();
|
|
999
|
+
const localVariables = (0, _variables__WEBPACK_IMPORTED_MODULE_20__.useLocalVariables)({
|
|
1000
|
+
currentForm: form
|
|
1001
|
+
});
|
|
1002
|
+
const { getActiveFieldsName } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormActiveFields)() || {};
|
|
1003
|
+
return {
|
|
1004
|
+
async onClick () {
|
|
1005
|
+
var _actionSchema_xactionsettings;
|
|
1006
|
+
const { assignedValues: originalAssignedValues = {}, onSuccess, overwriteValues, skipValidator, triggerWorkflows, isDeltaChanged } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
1007
|
+
const assignedValues = {};
|
|
1008
|
+
const waitList = Object.keys(originalAssignedValues).map(async (key)=>{
|
|
1009
|
+
const value = originalAssignedValues[key];
|
|
1010
|
+
const collectionField = getField(key);
|
|
1011
|
+
if ((0, _variables_utils_isVariable__WEBPACK_IMPORTED_MODULE_21__.isVariable)(value)) {
|
|
1012
|
+
const result = await (null == variables ? void 0 : variables.parseVariable(value, localVariables));
|
|
1013
|
+
if (result) assignedValues[key] = (0, _variables_utils_transformVariableValue__WEBPACK_IMPORTED_MODULE_22__.transformVariableValue)(result, {
|
|
1014
|
+
targetCollectionField: collectionField
|
|
1015
|
+
});
|
|
1016
|
+
} else if (null != value && '' !== value) assignedValues[key] = value;
|
|
1017
|
+
});
|
|
1018
|
+
await Promise.all(waitList);
|
|
1019
|
+
if (!skipValidator) await form.submit();
|
|
1020
|
+
const fieldNames = fields.map((field)=>field.name);
|
|
1021
|
+
const actionFields = (null == getActiveFieldsName ? void 0 : getActiveFieldsName('form')) || [];
|
|
1022
|
+
const values = getFormValues({
|
|
1023
|
+
filterByTk,
|
|
1024
|
+
field,
|
|
1025
|
+
form,
|
|
1026
|
+
fieldNames,
|
|
1027
|
+
getField,
|
|
1028
|
+
resource,
|
|
1029
|
+
actionFields
|
|
1030
|
+
});
|
|
1031
|
+
actionField.data = field.data || {};
|
|
1032
|
+
actionField.data.loading = true;
|
|
1033
|
+
const rawValues = {
|
|
1034
|
+
...values,
|
|
1035
|
+
...overwriteValues,
|
|
1036
|
+
...assignedValues
|
|
1037
|
+
};
|
|
1038
|
+
const filterValues = (srcValues)=>Object.entries(srcValues).reduce((obj, keyValuePair)=>{
|
|
1039
|
+
const [key, value] = keyValuePair;
|
|
1040
|
+
if (actionFields.includes(key)) obj = {
|
|
1041
|
+
...obj,
|
|
1042
|
+
[key]: value
|
|
1043
|
+
};
|
|
1044
|
+
return obj;
|
|
1045
|
+
}, {});
|
|
1046
|
+
try {
|
|
1047
|
+
var __parent_service_refresh, __parent_service;
|
|
1048
|
+
await resource.update({
|
|
1049
|
+
filterByTk,
|
|
1050
|
+
values: isDeltaChanged ? filterValues(rawValues) : rawValues,
|
|
1051
|
+
...data,
|
|
1052
|
+
updateAssociationValues,
|
|
1053
|
+
triggerWorkflows: (null == triggerWorkflows ? void 0 : triggerWorkflows.length) ? triggerWorkflows.map((row)=>[
|
|
1054
|
+
row.workflowKey,
|
|
1055
|
+
row.context
|
|
1056
|
+
].filter(Boolean).join('!')).join(',') : void 0
|
|
1057
|
+
});
|
|
1058
|
+
actionField.data.loading = false;
|
|
1059
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
1060
|
+
null == setVisible || setVisible(false);
|
|
1061
|
+
if (!(null == onSuccess ? void 0 : onSuccess.successMessage)) return;
|
|
1062
|
+
if (null == onSuccess ? void 0 : onSuccess.manualClose) modal.success({
|
|
1063
|
+
title: compile(null == onSuccess ? void 0 : onSuccess.successMessage),
|
|
1064
|
+
onOk: async ()=>{
|
|
1065
|
+
await form.reset();
|
|
1066
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
1067
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
1068
|
+
else navigate(onSuccess.redirectTo);
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
else {
|
|
1073
|
+
message.success(compile(null == onSuccess ? void 0 : onSuccess.successMessage));
|
|
1074
|
+
if ((null == onSuccess ? void 0 : onSuccess.redirecting) && (null == onSuccess ? void 0 : onSuccess.redirectTo)) {
|
|
1075
|
+
if ((0, _tachybase_utils_client__WEBPACK_IMPORTED_MODULE_2__.isURL)(onSuccess.redirectTo)) window.location.href = onSuccess.redirectTo;
|
|
1076
|
+
else navigate(onSuccess.redirectTo);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
} catch (error) {
|
|
1080
|
+
actionField.data.loading = false;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
const useDestroyActionProps = ()=>{
|
|
1086
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
1087
|
+
const { resource, service, block, __parent } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1088
|
+
const { setVisible } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
1089
|
+
const data = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useParamsFromRecord)();
|
|
1090
|
+
const actionSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
1091
|
+
return {
|
|
1092
|
+
async onClick () {
|
|
1093
|
+
var _service_data;
|
|
1094
|
+
var _actionSchema_xactionsettings;
|
|
1095
|
+
const { triggerWorkflows } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
1096
|
+
await resource.destroy({
|
|
1097
|
+
filterByTk,
|
|
1098
|
+
triggerWorkflows: (null == triggerWorkflows ? void 0 : triggerWorkflows.length) ? triggerWorkflows.map((row)=>[
|
|
1099
|
+
row.workflowKey,
|
|
1100
|
+
row.context
|
|
1101
|
+
].filter(Boolean).join('!')).join(',') : void 0,
|
|
1102
|
+
...data
|
|
1103
|
+
});
|
|
1104
|
+
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null === (_service_data = service.data) || void 0 === _service_data ? void 0 : _service_data.meta) || {};
|
|
1105
|
+
if (count % pageSize === 1 && 1 !== page) {
|
|
1106
|
+
var _service_params;
|
|
1107
|
+
service.run({
|
|
1108
|
+
...null == service ? void 0 : null === (_service_params = service.params) || void 0 === _service_params ? void 0 : _service_params[0],
|
|
1109
|
+
page: page - 1
|
|
1110
|
+
});
|
|
1111
|
+
} else {
|
|
1112
|
+
var _service_refresh;
|
|
1113
|
+
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
1114
|
+
}
|
|
1115
|
+
if (block && 'TableField' !== block) {
|
|
1116
|
+
var __parent_service_refresh, __parent_service;
|
|
1117
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
1118
|
+
null == setVisible || setVisible(false);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
const useRemoveActionProps = (associationName)=>{
|
|
1124
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
1125
|
+
const api = (0, _api_client__WEBPACK_IMPORTED_MODULE_11__.useAPIClient)();
|
|
1126
|
+
const resource = api.resource(associationName, filterByTk);
|
|
1127
|
+
return {
|
|
1128
|
+
async onClick (value) {
|
|
1129
|
+
await resource.remove({
|
|
1130
|
+
values: [
|
|
1131
|
+
value.id
|
|
1132
|
+
]
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
const useDisassociateActionProps = ()=>{
|
|
1138
|
+
const filterByTk = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useFilterByTk)();
|
|
1139
|
+
const { resource, service, block, __parent } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1140
|
+
const { setVisible } = (0, _schema_component__WEBPACK_IMPORTED_MODULE_17__.useActionContext)();
|
|
1141
|
+
return {
|
|
1142
|
+
async onClick () {
|
|
1143
|
+
var _service_data;
|
|
1144
|
+
await resource.remove({
|
|
1145
|
+
values: [
|
|
1146
|
+
filterByTk
|
|
1147
|
+
]
|
|
1148
|
+
});
|
|
1149
|
+
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null === (_service_data = service.data) || void 0 === _service_data ? void 0 : _service_data.meta) || {};
|
|
1150
|
+
if (count % pageSize === 1 && 1 !== page) {
|
|
1151
|
+
var _service_params;
|
|
1152
|
+
service.run({
|
|
1153
|
+
...null == service ? void 0 : null === (_service_params = service.params) || void 0 === _service_params ? void 0 : _service_params[0],
|
|
1154
|
+
page: page - 1
|
|
1155
|
+
});
|
|
1156
|
+
} else {
|
|
1157
|
+
var _service_refresh;
|
|
1158
|
+
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
1159
|
+
}
|
|
1160
|
+
if (block && 'TableField' !== block) {
|
|
1161
|
+
var __parent_service_refresh, __parent_service;
|
|
1162
|
+
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
1163
|
+
null == setVisible || setVisible(false);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
const useDetailPrintActionProps = ()=>{
|
|
1169
|
+
const { formBlockRef } = (0, ___WEBPACK_IMPORTED_MODULE_10__.useFormBlockContext)();
|
|
1170
|
+
const printHandler = (0, react_to_print__WEBPACK_IMPORTED_MODULE_9__.useReactToPrint)({
|
|
1171
|
+
content: ()=>formBlockRef.current,
|
|
1172
|
+
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 }"
|
|
1173
|
+
});
|
|
1174
|
+
return {
|
|
1175
|
+
async onClick () {
|
|
1176
|
+
printHandler();
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
const useBulkDestroyActionProps = ()=>{
|
|
1181
|
+
const { field } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1182
|
+
const { resource, service } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1183
|
+
return {
|
|
1184
|
+
async onClick () {
|
|
1185
|
+
var _field_data_selectedRowKeys, _field_data, _field_data1, _service_params_, _service_data_meta, _service_data, _service_refresh;
|
|
1186
|
+
if (!(null == field ? void 0 : null === (_field_data = field.data) || void 0 === _field_data ? void 0 : null === (_field_data_selectedRowKeys = _field_data.selectedRowKeys) || void 0 === _field_data_selectedRowKeys ? void 0 : _field_data_selectedRowKeys.length)) return;
|
|
1187
|
+
await resource.destroy({
|
|
1188
|
+
filterByTk: null === (_field_data1 = field.data) || void 0 === _field_data1 ? void 0 : _field_data1.selectedRowKeys
|
|
1189
|
+
});
|
|
1190
|
+
field.data.selectedRowKeys = [];
|
|
1191
|
+
const currentPage = null === (_service_params_ = service.params[0]) || void 0 === _service_params_ ? void 0 : _service_params_.page;
|
|
1192
|
+
const totalPage = null === (_service_data = service.data) || void 0 === _service_data ? void 0 : null === (_service_data_meta = _service_data.meta) || void 0 === _service_data_meta ? void 0 : _service_data_meta.totalPage;
|
|
1193
|
+
if (currentPage === totalPage) service.params[0].page = currentPage - 1;
|
|
1194
|
+
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
};
|
|
1198
|
+
const useRefreshActionProps = ()=>{
|
|
1199
|
+
const { service } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1200
|
+
return {
|
|
1201
|
+
async onClick () {
|
|
1202
|
+
var _service_refresh;
|
|
1203
|
+
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
const useDetailsPaginationProps = ()=>{
|
|
1208
|
+
var _ctx_service_data_meta, _ctx_service_data, _ctx_service, _ctx_service_data_meta1, _ctx_service_data1, _ctx_service1;
|
|
1209
|
+
const ctx = (0, _DetailsBlockProvider__WEBPACK_IMPORTED_MODULE_24__.useDetailsBlockContext)();
|
|
1210
|
+
const count = (null === (_ctx_service = ctx.service) || void 0 === _ctx_service ? void 0 : null === (_ctx_service_data = _ctx_service.data) || void 0 === _ctx_service_data ? void 0 : null === (_ctx_service_data_meta = _ctx_service_data.meta) || void 0 === _ctx_service_data_meta ? void 0 : _ctx_service_data_meta.count) || 0;
|
|
1211
|
+
return {
|
|
1212
|
+
simple: true,
|
|
1213
|
+
hidden: count <= 1,
|
|
1214
|
+
current: (null === (_ctx_service1 = ctx.service) || void 0 === _ctx_service1 ? void 0 : null === (_ctx_service_data1 = _ctx_service1.data) || void 0 === _ctx_service_data1 ? void 0 : null === (_ctx_service_data_meta1 = _ctx_service_data1.meta) || void 0 === _ctx_service_data_meta1 ? void 0 : _ctx_service_data_meta1.page) || 1,
|
|
1215
|
+
total: count,
|
|
1216
|
+
pageSize: 1,
|
|
1217
|
+
showSizeChanger: false,
|
|
1218
|
+
async onChange (page) {
|
|
1219
|
+
var _ctx_service_params, _ctx_service;
|
|
1220
|
+
const params = null === (_ctx_service = ctx.service) || void 0 === _ctx_service ? void 0 : null === (_ctx_service_params = _ctx_service.params) || void 0 === _ctx_service_params ? void 0 : _ctx_service_params[0];
|
|
1221
|
+
ctx.service.run({
|
|
1222
|
+
...params,
|
|
1223
|
+
page
|
|
1224
|
+
});
|
|
1225
|
+
},
|
|
1226
|
+
style: {
|
|
1227
|
+
marginTop: 24,
|
|
1228
|
+
textAlign: 'center'
|
|
1229
|
+
}
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
const useAssociationFilterProps = ()=>{
|
|
1233
|
+
var _cm_getCollection, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops, _field_componentProps, _field_componentProps1;
|
|
1234
|
+
const collectionField = ___WEBPACK_IMPORTED_MODULE_10__.AssociationFilter.useAssociationField();
|
|
1235
|
+
const { service, props: blockProps } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1236
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
1237
|
+
const cm = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollectionManager_deprecated)();
|
|
1238
|
+
const valueKey = (null == collectionField ? void 0 : collectionField.target) ? null === (_cm_getCollection = cm.getCollection(collectionField.target)) || void 0 === _cm_getCollection ? void 0 : _cm_getCollection.getPrimaryKey() : 'id';
|
|
1239
|
+
const labelKey = (null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : null === (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) || void 0 === _fieldSchema_xcomponentprops_fieldNames ? void 0 : _fieldSchema_xcomponentprops_fieldNames.label) || valueKey;
|
|
1240
|
+
const field = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
1241
|
+
const collectionFieldName = collectionField.name;
|
|
1242
|
+
const headers = (0, ___WEBPACK_IMPORTED_MODULE_10__.useDataSourceHeaders)(null == blockProps ? void 0 : blockProps.dataSource);
|
|
1243
|
+
const { data, params, run } = (0, _api_client__WEBPACK_IMPORTED_MODULE_11__.useRequest)({
|
|
1244
|
+
headers,
|
|
1245
|
+
resource: collectionField.target,
|
|
1246
|
+
action: 'list',
|
|
1247
|
+
params: {
|
|
1248
|
+
fields: [
|
|
1249
|
+
labelKey,
|
|
1250
|
+
valueKey
|
|
1251
|
+
],
|
|
1252
|
+
pageSize: 200,
|
|
1253
|
+
page: 1,
|
|
1254
|
+
...null === (_field_componentProps = field.componentProps) || void 0 === _field_componentProps ? void 0 : _field_componentProps.params
|
|
1255
|
+
}
|
|
1256
|
+
}, {
|
|
1257
|
+
refreshDeps: [
|
|
1258
|
+
labelKey,
|
|
1259
|
+
valueKey,
|
|
1260
|
+
JSON.stringify((null === (_field_componentProps1 = field.componentProps) || void 0 === _field_componentProps1 ? void 0 : _field_componentProps1.params) || {})
|
|
1261
|
+
],
|
|
1262
|
+
debounceWait: 300
|
|
1263
|
+
});
|
|
1264
|
+
const list = (null == data ? void 0 : data.data) || [];
|
|
1265
|
+
const onSelected = (value)=>{
|
|
1266
|
+
var _service_params_, _service_params, _service_params1, _blockProps_params;
|
|
1267
|
+
const filters = (null === (_service_params = service.params) || void 0 === _service_params ? void 0 : null === (_service_params_ = _service_params[1]) || void 0 === _service_params_ ? void 0 : _service_params_.filters) || {};
|
|
1268
|
+
if (value.length) filters["af.".concat(collectionFieldName)] = {
|
|
1269
|
+
["".concat(collectionFieldName, ".").concat(valueKey, ".$in")]: value
|
|
1270
|
+
};
|
|
1271
|
+
else delete filters["af.".concat(collectionFieldName)];
|
|
1272
|
+
service.run({
|
|
1273
|
+
...null === (_service_params1 = service.params) || void 0 === _service_params1 ? void 0 : _service_params1[0],
|
|
1274
|
+
pageSize: 200,
|
|
1275
|
+
page: 1,
|
|
1276
|
+
filter: (0, _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__.mergeFilter)([
|
|
1277
|
+
...Object.values(filters),
|
|
1278
|
+
null == blockProps ? void 0 : null === (_blockProps_params = blockProps.params) || void 0 === _blockProps_params ? void 0 : _blockProps_params.filter
|
|
1279
|
+
])
|
|
1280
|
+
}, {
|
|
1281
|
+
filters
|
|
1282
|
+
});
|
|
1283
|
+
};
|
|
1284
|
+
const handleSearchInput = (e)=>{
|
|
1285
|
+
run({
|
|
1286
|
+
...null == params ? void 0 : params[0],
|
|
1287
|
+
filter: {
|
|
1288
|
+
["".concat(labelKey, ".$includes")]: e.target.value
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
1292
|
+
return {
|
|
1293
|
+
list,
|
|
1294
|
+
onSelected,
|
|
1295
|
+
handleSearchInput,
|
|
1296
|
+
params,
|
|
1297
|
+
run
|
|
1298
|
+
};
|
|
1299
|
+
};
|
|
1300
|
+
const useOptionalFieldList = ()=>{
|
|
1301
|
+
const { currentFields = [] } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollection_deprecated)();
|
|
1302
|
+
return currentFields.filter((field)=>isOptionalField(field) && field.uiSchema.enum);
|
|
1303
|
+
};
|
|
1304
|
+
const isOptionalField = (field)=>{
|
|
1305
|
+
const optionalInterfaces = [
|
|
1306
|
+
'select',
|
|
1307
|
+
'multipleSelect',
|
|
1308
|
+
'checkbox',
|
|
1309
|
+
'checkboxGroup',
|
|
1310
|
+
'chinaRegion'
|
|
1311
|
+
];
|
|
1312
|
+
return optionalInterfaces.includes(field.interface);
|
|
1313
|
+
};
|
|
1314
|
+
const useAssociationFilterBlockProps = ()=>{
|
|
1315
|
+
var _cm_getCollection, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops, _field_componentProps, _field_componentProps1;
|
|
1316
|
+
const collectionField = ___WEBPACK_IMPORTED_MODULE_10__.AssociationFilter.useAssociationField();
|
|
1317
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
1318
|
+
const optionalFieldList = useOptionalFieldList();
|
|
1319
|
+
const { getDataBlocks } = (0, _filter_provider_FilterProvider__WEBPACK_IMPORTED_MODULE_14__.useFilterBlock)();
|
|
1320
|
+
const collectionFieldName = null == collectionField ? void 0 : collectionField.name;
|
|
1321
|
+
const field = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useField)();
|
|
1322
|
+
const { props: blockProps } = (0, _BlockProvider__WEBPACK_IMPORTED_MODULE_23__.useBlockRequestContext)();
|
|
1323
|
+
const headers = (0, ___WEBPACK_IMPORTED_MODULE_10__.useDataSourceHeaders)(null == blockProps ? void 0 : blockProps.dataSource);
|
|
1324
|
+
const cm = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollectionManager_deprecated)();
|
|
1325
|
+
let list, handleSearchInput, params, run, data, valueKey, labelKey, filterKey;
|
|
1326
|
+
valueKey = (null == collectionField ? void 0 : collectionField.target) ? null === (_cm_getCollection = cm.getCollection(collectionField.target)) || void 0 === _cm_getCollection ? void 0 : _cm_getCollection.getPrimaryKey() : 'id';
|
|
1327
|
+
labelKey = (null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : null === (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) || void 0 === _fieldSchema_xcomponentprops_fieldNames ? void 0 : _fieldSchema_xcomponentprops_fieldNames.label) || valueKey;
|
|
1328
|
+
({ data, params, run } = (0, _api_client__WEBPACK_IMPORTED_MODULE_11__.useRequest)({
|
|
1329
|
+
headers,
|
|
1330
|
+
resource: null == collectionField ? void 0 : collectionField.target,
|
|
1331
|
+
action: 'list',
|
|
1332
|
+
params: {
|
|
1333
|
+
fields: [
|
|
1334
|
+
labelKey,
|
|
1335
|
+
valueKey
|
|
1336
|
+
],
|
|
1337
|
+
pageSize: 200,
|
|
1338
|
+
page: 1,
|
|
1339
|
+
...null === (_field_componentProps = field.componentProps) || void 0 === _field_componentProps ? void 0 : _field_componentProps.params
|
|
1340
|
+
}
|
|
1341
|
+
}, {
|
|
1342
|
+
manual: true,
|
|
1343
|
+
debounceWait: 300
|
|
1344
|
+
}));
|
|
1345
|
+
(0, react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{
|
|
1346
|
+
if (!isOptionalField(fieldSchema)) run();
|
|
1347
|
+
}, [
|
|
1348
|
+
labelKey,
|
|
1349
|
+
valueKey,
|
|
1350
|
+
JSON.stringify((null === (_field_componentProps1 = field.componentProps) || void 0 === _field_componentProps1 ? void 0 : _field_componentProps1.params) || {}),
|
|
1351
|
+
isOptionalField(fieldSchema)
|
|
1352
|
+
]);
|
|
1353
|
+
if (!collectionField) return {};
|
|
1354
|
+
if (isOptionalField(fieldSchema)) {
|
|
1355
|
+
var _field_uiSchema;
|
|
1356
|
+
const field = optionalFieldList.find((field)=>field.name === fieldSchema.name);
|
|
1357
|
+
const operatorMap = {
|
|
1358
|
+
select: '$in',
|
|
1359
|
+
multipleSelect: '$anyOf',
|
|
1360
|
+
checkbox: '$in',
|
|
1361
|
+
checkboxGroup: '$anyOf'
|
|
1362
|
+
};
|
|
1363
|
+
const _list = (null == field ? void 0 : null === (_field_uiSchema = field.uiSchema) || void 0 === _field_uiSchema ? void 0 : _field_uiSchema.enum) || [];
|
|
1364
|
+
valueKey = 'value';
|
|
1365
|
+
labelKey = 'label';
|
|
1366
|
+
list = _list;
|
|
1367
|
+
params = {};
|
|
1368
|
+
run = ()=>{};
|
|
1369
|
+
filterKey = "".concat(field.name, ".").concat(operatorMap[field.interface]);
|
|
1370
|
+
handleSearchInput = (e)=>{
|
|
1371
|
+
const value = e.target.value;
|
|
1372
|
+
if (!value) {
|
|
1373
|
+
list = _list;
|
|
1374
|
+
return;
|
|
1375
|
+
}
|
|
1376
|
+
list = _list.filter((item)=>item.label.includes(value));
|
|
1377
|
+
};
|
|
1378
|
+
} else {
|
|
1379
|
+
filterKey = "".concat(collectionFieldName, ".").concat(valueKey, ".$in");
|
|
1380
|
+
list = (null == data ? void 0 : data.data) || [];
|
|
1381
|
+
handleSearchInput = (e)=>{
|
|
1382
|
+
run({
|
|
1383
|
+
...null == params ? void 0 : params[0],
|
|
1384
|
+
filter: {
|
|
1385
|
+
["".concat(labelKey, ".$includes")]: e.target.value
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
const onSelected = (value)=>{
|
|
1391
|
+
const { targets, uid } = findFilterTargets(fieldSchema);
|
|
1392
|
+
getDataBlocks().forEach((block)=>{
|
|
1393
|
+
var _block_service_params, _block_service_params_, _block_service_params1;
|
|
1394
|
+
const target = targets.find((target)=>target.uid === block.uid);
|
|
1395
|
+
if (!target) return;
|
|
1396
|
+
const key = "".concat(uid).concat(fieldSchema.name);
|
|
1397
|
+
const param = (null === (_block_service_params = block.service.params) || void 0 === _block_service_params ? void 0 : _block_service_params[0]) || {};
|
|
1398
|
+
const storedFilter = (null === (_block_service_params1 = block.service.params) || void 0 === _block_service_params1 ? void 0 : null === (_block_service_params_ = _block_service_params1[1]) || void 0 === _block_service_params_ ? void 0 : _block_service_params_.filters) || {};
|
|
1399
|
+
if (value.length) storedFilter[key] = {
|
|
1400
|
+
[filterKey]: value
|
|
1401
|
+
};
|
|
1402
|
+
else {
|
|
1403
|
+
if ('manual' === block.dataLoadingMode) return block.clearData();
|
|
1404
|
+
delete storedFilter[key];
|
|
1405
|
+
}
|
|
1406
|
+
const mergedFilter = (0, _filter_provider_utils__WEBPACK_IMPORTED_MODULE_15__.mergeFilter)([
|
|
1407
|
+
...Object.values(storedFilter),
|
|
1408
|
+
block.defaultFilter
|
|
1409
|
+
]);
|
|
1410
|
+
return block.doFilter({
|
|
1411
|
+
...param,
|
|
1412
|
+
page: 1,
|
|
1413
|
+
filter: mergedFilter
|
|
1414
|
+
}, {
|
|
1415
|
+
filters: storedFilter
|
|
1416
|
+
});
|
|
1417
|
+
});
|
|
1418
|
+
};
|
|
1419
|
+
return {
|
|
1420
|
+
list,
|
|
1421
|
+
onSelected,
|
|
1422
|
+
handleSearchInput,
|
|
1423
|
+
params,
|
|
1424
|
+
run,
|
|
1425
|
+
valueKey,
|
|
1426
|
+
labelKey
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
function getAssociationPath(str) {
|
|
1430
|
+
const lastIndex = str.lastIndexOf('.');
|
|
1431
|
+
if (-1 !== lastIndex) return str.substring(0, lastIndex);
|
|
1432
|
+
return str;
|
|
1433
|
+
}
|
|
1434
|
+
const useAssociationNames = (dataSource)=>{
|
|
1435
|
+
let updateAssociationValues = new Set([]);
|
|
1436
|
+
let appends = new Set([]);
|
|
1437
|
+
const { getCollectionJoinField, getCollection } = (0, _collection_manager__WEBPACK_IMPORTED_MODULE_13__.useCollectionManager_deprecated)(dataSource);
|
|
1438
|
+
const fieldSchema = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.useFieldSchema)();
|
|
1439
|
+
const _getAssociationAppends = (schema, str)=>{
|
|
1440
|
+
schema.reduceProperties((pre, s)=>{
|
|
1441
|
+
var _s_xcomponentprops, _s_xcomponentprops1, _getCollection;
|
|
1442
|
+
const prefix = pre || str;
|
|
1443
|
+
const collectionField = s['x-collection-field'] && getCollectionJoinField(s['x-collection-field'], dataSource);
|
|
1444
|
+
const isAssociationSubfield = s.name.includes('.');
|
|
1445
|
+
const isAssociationField = collectionField && [
|
|
1446
|
+
'hasOne',
|
|
1447
|
+
'hasMany',
|
|
1448
|
+
'belongsTo',
|
|
1449
|
+
'belongsToMany'
|
|
1450
|
+
].includes(collectionField.type);
|
|
1451
|
+
if (null === (_s_xcomponentprops = s['x-component-props']) || void 0 === _s_xcomponentprops ? void 0 : _s_xcomponentprops['appends']) {
|
|
1452
|
+
var _s_xcomponentprops2;
|
|
1453
|
+
lodash__WEBPACK_IMPORTED_MODULE_4___default().forEach(null === (_s_xcomponentprops2 = s['x-component-props']) || void 0 === _s_xcomponentprops2 ? void 0 : _s_xcomponentprops2['appends'], (append)=>{
|
|
1454
|
+
appends.add(append);
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
if (s['x-linkage-rules']) {
|
|
1458
|
+
const collectAppends = (obj)=>{
|
|
1459
|
+
const type = Object.keys(obj)[0] || '$and';
|
|
1460
|
+
const list = obj[type];
|
|
1461
|
+
list.forEach((item)=>{
|
|
1462
|
+
if ('$and' in item || '$or' in item) return collectAppends(item);
|
|
1463
|
+
const fieldNames = getTargetField(item);
|
|
1464
|
+
if (fieldNames.length > 1) appends.add(fieldNames.join('.'));
|
|
1465
|
+
});
|
|
1466
|
+
};
|
|
1467
|
+
const rules = s['x-linkage-rules'];
|
|
1468
|
+
rules.forEach((param)=>{
|
|
1469
|
+
let { condition } = param;
|
|
1470
|
+
collectAppends(condition);
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
if (null === (_s_xcomponentprops1 = s['x-component-props']) || void 0 === _s_xcomponentprops1 ? void 0 : _s_xcomponentprops1['x-next-title']) {
|
|
1474
|
+
const pre = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
|
|
1475
|
+
const title = s['x-component-props']['x-next-title'];
|
|
1476
|
+
const path = pre + '.' + title.label;
|
|
1477
|
+
appends.add(path);
|
|
1478
|
+
}
|
|
1479
|
+
const isTreeCollection = isAssociationField && (null === (_getCollection = getCollection(collectionField.target, dataSource)) || void 0 === _getCollection ? void 0 : _getCollection.template) === 'tree';
|
|
1480
|
+
if (collectionField && (isAssociationField || isAssociationSubfield) && 'TableField' !== s['x-component']) {
|
|
1481
|
+
var _s_xcomponentprops3;
|
|
1482
|
+
const fieldPath = !isAssociationField && isAssociationSubfield ? getAssociationPath(s.name) : s.name;
|
|
1483
|
+
const path = '' !== prefix && prefix ? prefix + '.' + fieldPath : fieldPath;
|
|
1484
|
+
if (isTreeCollection) {
|
|
1485
|
+
appends.add(path);
|
|
1486
|
+
appends.add("".concat(path, ".parent") + '(recursively=true)');
|
|
1487
|
+
} else appends.add(path);
|
|
1488
|
+
if ([
|
|
1489
|
+
'Nester',
|
|
1490
|
+
'SubTable',
|
|
1491
|
+
'PopoverNester'
|
|
1492
|
+
].includes(null === (_s_xcomponentprops3 = s['x-component-props']) || void 0 === _s_xcomponentprops3 ? void 0 : _s_xcomponentprops3.mode)) {
|
|
1493
|
+
updateAssociationValues.add(path);
|
|
1494
|
+
const bufPrefix = prefix && '' !== prefix ? prefix + '.' + s.name : s.name;
|
|
1495
|
+
_getAssociationAppends(s, bufPrefix);
|
|
1496
|
+
}
|
|
1497
|
+
} else if (![
|
|
1498
|
+
'ActionBar',
|
|
1499
|
+
'Action',
|
|
1500
|
+
'Action.Link',
|
|
1501
|
+
'Action.Modal',
|
|
1502
|
+
'Selector',
|
|
1503
|
+
'Viewer',
|
|
1504
|
+
'AddNewer',
|
|
1505
|
+
'AssociationField.Selector',
|
|
1506
|
+
'AssociationField.AddNewer',
|
|
1507
|
+
'TableField'
|
|
1508
|
+
].includes(s['x-component'])) _getAssociationAppends(s, str);
|
|
1509
|
+
}, str);
|
|
1510
|
+
};
|
|
1511
|
+
const getAssociationAppends = ()=>{
|
|
1512
|
+
updateAssociationValues = new Set([]);
|
|
1513
|
+
appends = new Set([]);
|
|
1514
|
+
_getAssociationAppends(fieldSchema, '');
|
|
1515
|
+
return {
|
|
1516
|
+
appends: [
|
|
1517
|
+
...appends
|
|
1518
|
+
],
|
|
1519
|
+
updateAssociationValues: [
|
|
1520
|
+
...updateAssociationValues
|
|
1521
|
+
]
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
return {
|
|
1525
|
+
getAssociationAppends
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
function getTargetField(obj) {
|
|
1529
|
+
function getAllKeys(obj) {
|
|
1530
|
+
const keys = [];
|
|
1531
|
+
function traverse(o) {
|
|
1532
|
+
Object.keys(o).sort().forEach(function(key) {
|
|
1533
|
+
keys.push(key);
|
|
1534
|
+
if (o[key] && 'object' == typeof o[key]) traverse(o[key]);
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
traverse(obj);
|
|
1538
|
+
return keys;
|
|
1539
|
+
}
|
|
1540
|
+
const keys = getAllKeys(obj);
|
|
1541
|
+
const index = lodash__WEBPACK_IMPORTED_MODULE_4___default().findIndex(keys, (key, index)=>{
|
|
1542
|
+
if (key.includes('$') && index > 0) return true;
|
|
1543
|
+
});
|
|
1544
|
+
const result = keys.slice(0, index);
|
|
1545
|
+
return result;
|
|
1546
|
+
}
|
|
1547
|
+
async function resetFormCorrectly(form) {
|
|
1548
|
+
(0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.untracked)(()=>{
|
|
1549
|
+
Object.keys(form.fields).forEach((key)=>{
|
|
1550
|
+
if ((0, _schema_component_antd_association_field_util__WEBPACK_IMPORTED_MODULE_18__.isSubMode)(form.fields[key])) form.fields[key].initialValue = null;
|
|
1551
|
+
});
|
|
1552
|
+
});
|
|
1553
|
+
await form.reset();
|
|
1554
|
+
}
|
|
1555
|
+
var __webpack_export_target__ = exports;
|
|
1556
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
1557
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
1558
|
+
value: true
|
|
1559
|
+
});
|