@tachybase/client 0.23.8 → 0.23.16
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,406 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__ from "@tachybase/test/client";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__ from "../../api-client/index.mjs";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__testUtils_index_mjs__ from "../../testUtils/index.mjs";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__user_index_mjs__ from "../../user/index.mjs";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__ from "../hooks/useVariables.mjs";
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__VariablesProvider_mjs__ from "../VariablesProvider.mjs";
|
|
10
|
+
vi.mock('../../collection-manager', async ()=>({
|
|
11
|
+
useCollectionManager_deprecated: ()=>({
|
|
12
|
+
getCollectionJoinField: (path)=>{
|
|
13
|
+
if ('users.belongsToField' === path) return {
|
|
14
|
+
type: 'belongsTo',
|
|
15
|
+
target: 'test'
|
|
16
|
+
};
|
|
17
|
+
if ('some.belongsToField' === path) return {
|
|
18
|
+
type: 'belongsTo',
|
|
19
|
+
target: 'someBelongsToField'
|
|
20
|
+
};
|
|
21
|
+
if ('some.belongsToField.belongsToField' === path) return {
|
|
22
|
+
type: 'belongsTo',
|
|
23
|
+
target: 'someBelongsToField'
|
|
24
|
+
};
|
|
25
|
+
if ('users.hasManyField' === path) return {
|
|
26
|
+
type: 'hasMany',
|
|
27
|
+
target: 'test'
|
|
28
|
+
};
|
|
29
|
+
if ('users.hasManyField.hasManyField' === path) return {
|
|
30
|
+
type: 'hasMany',
|
|
31
|
+
target: 'test'
|
|
32
|
+
};
|
|
33
|
+
if ('local.belongsToField' === path) return {
|
|
34
|
+
type: 'belongsTo',
|
|
35
|
+
target: 'test'
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}),
|
|
39
|
+
CollectionManagerPane: null
|
|
40
|
+
}));
|
|
41
|
+
const { apiClient, mockRequest } = (0, __WEBPACK_EXTERNAL_MODULE__testUtils_index_mjs__.mockAPIClient)();
|
|
42
|
+
apiClient.auth.role = 'root';
|
|
43
|
+
mockRequest.onGet('/auth:check').reply(()=>[
|
|
44
|
+
200,
|
|
45
|
+
{
|
|
46
|
+
data: {
|
|
47
|
+
id: 0,
|
|
48
|
+
nickname: 'from request'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]);
|
|
52
|
+
mockRequest.onGet('/roles:check').reply(()=>[
|
|
53
|
+
200,
|
|
54
|
+
{
|
|
55
|
+
data: {
|
|
56
|
+
role: 'root'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]);
|
|
60
|
+
mockRequest.onGet('/users/0/belongsToField:get').reply(()=>[
|
|
61
|
+
200,
|
|
62
|
+
{
|
|
63
|
+
data: {
|
|
64
|
+
id: 0,
|
|
65
|
+
name: '$user.belongsToField'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]);
|
|
69
|
+
mockRequest.onGet('/users/0/hasManyField:list?pageSize=9999').reply(()=>[
|
|
70
|
+
200,
|
|
71
|
+
{
|
|
72
|
+
data: [
|
|
73
|
+
{
|
|
74
|
+
id: 0,
|
|
75
|
+
name: '$user.hasManyField'
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]);
|
|
80
|
+
mockRequest.onGet('/test/0/hasManyField:list?pageSize=9999').reply(()=>[
|
|
81
|
+
200,
|
|
82
|
+
{
|
|
83
|
+
data: [
|
|
84
|
+
{
|
|
85
|
+
id: 0,
|
|
86
|
+
name: '$user.hasManyField.hasManyField'
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
]);
|
|
91
|
+
mockRequest.onGet('/someBelongsToField/0/belongsToField:get').reply(()=>[
|
|
92
|
+
200,
|
|
93
|
+
{
|
|
94
|
+
data: {
|
|
95
|
+
id: 0,
|
|
96
|
+
name: '$some.belongsToField.belongsToField'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
]);
|
|
100
|
+
const Providers = (param)=>{
|
|
101
|
+
let { children } = param;
|
|
102
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.APIClientProvider, {
|
|
103
|
+
apiClient: apiClient,
|
|
104
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__user_index_mjs__.CurrentUserProvider, {
|
|
105
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaOptionsContext.Provider, {
|
|
106
|
+
value: {},
|
|
107
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaExpressionScopeContext.Provider, {
|
|
108
|
+
value: {},
|
|
109
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__VariablesProvider_mjs__["default"], {
|
|
110
|
+
children: children
|
|
111
|
+
})
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
describe('useVariables', ()=>{
|
|
118
|
+
it('parsing variables with custom ctx', async ()=>{
|
|
119
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
120
|
+
wrapper: Providers
|
|
121
|
+
});
|
|
122
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
123
|
+
expect(result.current.ctxRef.current).toMatchInlineSnapshot('\n {\n "$date": {\n "last30Days": [Function],\n "last7Days": [Function],\n "last90Days": [Function],\n "lastIsoWeek": [Function],\n "lastMonth": [Function],\n "lastQuarter": [Function],\n "lastWeek": [Function],\n "lastYear": [Function],\n "next30Days": [Function],\n "next7Days": [Function],\n "next90Days": [Function],\n "nextIsoWeek": [Function],\n "nextMonth": [Function],\n "nextQuarter": [Function],\n "nextWeek": [Function],\n "nextYear": [Function],\n "now": [Function],\n "thisIsoWeek": [Function],\n "thisMonth": [Function],\n "thisQuarter": [Function],\n "thisWeek": [Function],\n "thisYear": [Function],\n "today": [Function],\n "tomorrow": [Function],\n "yesterday": [Function],\n },\n "$nDate": {\n "last30Days": [Function],\n "last7Days": [Function],\n "last90Days": [Function],\n "lastIsoWeek": [Function],\n "lastMonth": [Function],\n "lastQuarter": [Function],\n "lastWeek": [Function],\n "lastYear": [Function],\n "next30Days": [Function],\n "next7Days": [Function],\n "next90Days": [Function],\n "nextIsoWeek": [Function],\n "nextMonth": [Function],\n "nextQuarter": [Function],\n "nextWeek": [Function],\n "nextYear": [Function],\n "now": [Function],\n "thisIsoWeek": [Function],\n "thisMonth": [Function],\n "thisQuarter": [Function],\n "thisWeek": [Function],\n "thisYear": [Function],\n "today": [Function],\n "tomorrow": [Function],\n "yesterday": [Function],\n },\n "$nRole": "root",\n "$system": {\n "now": [Function],\n },\n "$user": {\n "id": 0,\n "nickname": "from request",\n },\n "currentTime": [Function],\n "currentUser": {\n "id": 0,\n "nickname": "from request",\n },\n }\n ');
|
|
124
|
+
});
|
|
125
|
+
(0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.act)(()=>{
|
|
126
|
+
result.current.setCtx({
|
|
127
|
+
$user: {
|
|
128
|
+
nickname: 'test'
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
133
|
+
expect(await result.current.parseVariable('{{ $user.nickname }}')).toBe('test');
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
it('parsing variables with current user data', async ()=>{
|
|
137
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
138
|
+
wrapper: Providers
|
|
139
|
+
});
|
|
140
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
141
|
+
expect(await result.current.parseVariable('{{ $user.nickname }}')).toBe('from request');
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
it('parsing variables with lazy loading of data', async ()=>{
|
|
145
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
146
|
+
wrapper: Providers
|
|
147
|
+
});
|
|
148
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
149
|
+
expect(await result.current.parseVariable('{{ $user.belongsToField }}')).toEqual({
|
|
150
|
+
id: 0,
|
|
151
|
+
name: '$user.belongsToField'
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
it('long variable path', async ()=>{
|
|
156
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
157
|
+
wrapper: Providers
|
|
158
|
+
});
|
|
159
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
160
|
+
expect(await result.current.parseVariable('{{ $user.belongsToField.name }}')).toBe('$user.belongsToField');
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
it('should return array when variable path is a hasMany field', async ()=>{
|
|
164
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
165
|
+
wrapper: Providers
|
|
166
|
+
});
|
|
167
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
168
|
+
expect(await result.current.parseVariable('{{ $user.hasManyField }}')).toEqual([
|
|
169
|
+
{
|
|
170
|
+
id: 0,
|
|
171
|
+
name: '$user.hasManyField'
|
|
172
|
+
}
|
|
173
|
+
]);
|
|
174
|
+
});
|
|
175
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
176
|
+
expect(await result.current.parseVariable('{{ $user.hasManyField.name }}')).toEqual([
|
|
177
|
+
'$user.hasManyField'
|
|
178
|
+
]);
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
it('$user.hasManyField.hasManyField', async ()=>{
|
|
182
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
183
|
+
wrapper: Providers
|
|
184
|
+
});
|
|
185
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
186
|
+
expect(await result.current.parseVariable('{{ $user.hasManyField.hasManyField }}')).toEqual([
|
|
187
|
+
{
|
|
188
|
+
id: 0,
|
|
189
|
+
name: '$user.hasManyField.hasManyField'
|
|
190
|
+
}
|
|
191
|
+
]);
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
it('$user.hasManyField.hasManyField.name', async ()=>{
|
|
195
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
196
|
+
wrapper: Providers
|
|
197
|
+
});
|
|
198
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
199
|
+
expect(await result.current.parseVariable('{{ $user.hasManyField.hasManyField.name }}')).toEqual([
|
|
200
|
+
'$user.hasManyField.hasManyField'
|
|
201
|
+
]);
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
it('should throw error when variable is not found', async ()=>{
|
|
205
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
206
|
+
wrapper: Providers
|
|
207
|
+
});
|
|
208
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
209
|
+
try {
|
|
210
|
+
await result.current.parseVariable('{{ $some.name }}');
|
|
211
|
+
expect(true).toBe(false);
|
|
212
|
+
} catch (error) {
|
|
213
|
+
expect(error.message).toBe('VariablesProvider: $some is not found');
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
it('should not error when changing the variable path', async ()=>{
|
|
218
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
219
|
+
wrapper: Providers
|
|
220
|
+
});
|
|
221
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
222
|
+
expect(await result.current.parseVariable('{{ $user.hasManyField }}')).toEqual([
|
|
223
|
+
{
|
|
224
|
+
id: 0,
|
|
225
|
+
name: '$user.hasManyField'
|
|
226
|
+
}
|
|
227
|
+
]);
|
|
228
|
+
});
|
|
229
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
230
|
+
expect(await result.current.parseVariable('{{ $user.hasManyField.hasManyField }}')).toEqual([
|
|
231
|
+
{
|
|
232
|
+
id: 0,
|
|
233
|
+
name: '$user.hasManyField.hasManyField'
|
|
234
|
+
}
|
|
235
|
+
]);
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
it('register variable', async ()=>{
|
|
239
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
240
|
+
wrapper: Providers
|
|
241
|
+
});
|
|
242
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
243
|
+
expect(result.current.ctxRef.current).toMatchInlineSnapshot('\n {\n "$date": {\n "last30Days": [Function],\n "last7Days": [Function],\n "last90Days": [Function],\n "lastIsoWeek": [Function],\n "lastMonth": [Function],\n "lastQuarter": [Function],\n "lastWeek": [Function],\n "lastYear": [Function],\n "next30Days": [Function],\n "next7Days": [Function],\n "next90Days": [Function],\n "nextIsoWeek": [Function],\n "nextMonth": [Function],\n "nextQuarter": [Function],\n "nextWeek": [Function],\n "nextYear": [Function],\n "now": [Function],\n "thisIsoWeek": [Function],\n "thisMonth": [Function],\n "thisQuarter": [Function],\n "thisWeek": [Function],\n "thisYear": [Function],\n "today": [Function],\n "tomorrow": [Function],\n "yesterday": [Function],\n },\n "$nDate": {\n "last30Days": [Function],\n "last7Days": [Function],\n "last90Days": [Function],\n "lastIsoWeek": [Function],\n "lastMonth": [Function],\n "lastQuarter": [Function],\n "lastWeek": [Function],\n "lastYear": [Function],\n "next30Days": [Function],\n "next7Days": [Function],\n "next90Days": [Function],\n "nextIsoWeek": [Function],\n "nextMonth": [Function],\n "nextQuarter": [Function],\n "nextWeek": [Function],\n "nextYear": [Function],\n "now": [Function],\n "thisIsoWeek": [Function],\n "thisMonth": [Function],\n "thisQuarter": [Function],\n "thisWeek": [Function],\n "thisYear": [Function],\n "today": [Function],\n "tomorrow": [Function],\n "yesterday": [Function],\n },\n "$nRole": "root",\n "$system": {\n "now": [Function],\n },\n "$user": {\n "id": 0,\n "nickname": "from request",\n },\n "currentTime": [Function],\n "currentUser": {\n "id": 0,\n "nickname": "from request",\n },\n }\n ');
|
|
244
|
+
});
|
|
245
|
+
(0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.act)(()=>{
|
|
246
|
+
result.current.registerVariable({
|
|
247
|
+
name: '$new',
|
|
248
|
+
collectionName: 'new',
|
|
249
|
+
ctx: {
|
|
250
|
+
name: 'new variable'
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
255
|
+
expect(result.current.ctxRef.current).toMatchInlineSnapshot('\n {\n "$date": {\n "last30Days": [Function],\n "last7Days": [Function],\n "last90Days": [Function],\n "lastIsoWeek": [Function],\n "lastMonth": [Function],\n "lastQuarter": [Function],\n "lastWeek": [Function],\n "lastYear": [Function],\n "next30Days": [Function],\n "next7Days": [Function],\n "next90Days": [Function],\n "nextIsoWeek": [Function],\n "nextMonth": [Function],\n "nextQuarter": [Function],\n "nextWeek": [Function],\n "nextYear": [Function],\n "now": [Function],\n "thisIsoWeek": [Function],\n "thisMonth": [Function],\n "thisQuarter": [Function],\n "thisWeek": [Function],\n "thisYear": [Function],\n "today": [Function],\n "tomorrow": [Function],\n "yesterday": [Function],\n },\n "$nDate": {\n "last30Days": [Function],\n "last7Days": [Function],\n "last90Days": [Function],\n "lastIsoWeek": [Function],\n "lastMonth": [Function],\n "lastQuarter": [Function],\n "lastWeek": [Function],\n "lastYear": [Function],\n "next30Days": [Function],\n "next7Days": [Function],\n "next90Days": [Function],\n "nextIsoWeek": [Function],\n "nextMonth": [Function],\n "nextQuarter": [Function],\n "nextWeek": [Function],\n "nextYear": [Function],\n "now": [Function],\n "thisIsoWeek": [Function],\n "thisMonth": [Function],\n "thisQuarter": [Function],\n "thisWeek": [Function],\n "thisYear": [Function],\n "today": [Function],\n "tomorrow": [Function],\n "yesterday": [Function],\n },\n "$nRole": "root",\n "$new": {\n "name": "new variable",\n },\n "$system": {\n "now": [Function],\n },\n "$user": {\n "id": 0,\n "nickname": "from request",\n },\n "currentTime": [Function],\n "currentUser": {\n "id": 0,\n "nickname": "from request",\n },\n }\n ');
|
|
256
|
+
});
|
|
257
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
258
|
+
expect(result.current.getVariable('$new')).toEqual({
|
|
259
|
+
name: '$new',
|
|
260
|
+
collectionName: 'new',
|
|
261
|
+
ctx: {
|
|
262
|
+
name: 'new variable'
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
267
|
+
expect(await result.current.parseVariable('{{ $new.name }}')).toBe('new variable');
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
it('$new.noExist', async ()=>{
|
|
271
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
272
|
+
wrapper: Providers
|
|
273
|
+
});
|
|
274
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
275
|
+
result.current.registerVariable({
|
|
276
|
+
name: '$new',
|
|
277
|
+
ctx: {
|
|
278
|
+
name: 'new variable'
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
283
|
+
expect(await result.current.parseVariable('{{ $new.noExist }}')).toBe(void 0);
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
it('use object as local variable', async ()=>{
|
|
287
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
288
|
+
wrapper: Providers
|
|
289
|
+
});
|
|
290
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
291
|
+
expect(result.current.getVariable('$local')).toBe(null);
|
|
292
|
+
});
|
|
293
|
+
expect(await result.current.parseVariable('{{ $local.name }}', {
|
|
294
|
+
name: '$local',
|
|
295
|
+
ctx: {
|
|
296
|
+
name: 'local variable'
|
|
297
|
+
}
|
|
298
|
+
})).toBe('local variable');
|
|
299
|
+
expect(result.current.getVariable('$local')).toBe(null);
|
|
300
|
+
});
|
|
301
|
+
it('use array as local variables', async ()=>{
|
|
302
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
303
|
+
wrapper: Providers
|
|
304
|
+
});
|
|
305
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
306
|
+
expect(result.current.getVariable('$local')).toBe(null);
|
|
307
|
+
});
|
|
308
|
+
expect(await result.current.parseVariable('{{ $local.name }}', [
|
|
309
|
+
{
|
|
310
|
+
name: '$local',
|
|
311
|
+
ctx: {
|
|
312
|
+
name: 'local variable'
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
])).toBe('local variable');
|
|
316
|
+
expect(result.current.getVariable('$local')).toBe(null);
|
|
317
|
+
});
|
|
318
|
+
it('parse multiple variables concurrently using local variables', async ()=>{
|
|
319
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
320
|
+
wrapper: Providers
|
|
321
|
+
});
|
|
322
|
+
const promises = [];
|
|
323
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(()=>{
|
|
324
|
+
for(let i = 0; i < 3; i++)promises.push(result.current.parseVariable('{{ $user.nickname }}', [
|
|
325
|
+
{
|
|
326
|
+
name: "$local",
|
|
327
|
+
ctx: {
|
|
328
|
+
name: "local variable ".concat(i)
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
]));
|
|
332
|
+
});
|
|
333
|
+
await Promise.all(promises);
|
|
334
|
+
expect(result.current.getVariable('$local')).toBe(null);
|
|
335
|
+
});
|
|
336
|
+
it('no id', async ()=>{
|
|
337
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
338
|
+
wrapper: Providers
|
|
339
|
+
});
|
|
340
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
341
|
+
result.current.registerVariable({
|
|
342
|
+
name: '$some',
|
|
343
|
+
ctx: {
|
|
344
|
+
name: 'new variable',
|
|
345
|
+
belongsToField: {
|
|
346
|
+
id: 0
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
collectionName: 'some'
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
353
|
+
expect(await result.current.parseVariable('{{ $some.belongsToField.belongsToField }}')).toEqual({
|
|
354
|
+
id: 0,
|
|
355
|
+
name: '$some.belongsToField.belongsToField'
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
result.current.registerVariable({
|
|
359
|
+
name: '$some',
|
|
360
|
+
ctx: {
|
|
361
|
+
name: 'new variable',
|
|
362
|
+
belongsToField: null
|
|
363
|
+
},
|
|
364
|
+
collectionName: 'some'
|
|
365
|
+
});
|
|
366
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
367
|
+
expect(await result.current.parseVariable('{{ $some.belongsToField.belongsToField }}')).toBe(void 0);
|
|
368
|
+
});
|
|
369
|
+
});
|
|
370
|
+
it('getCollectionField', async ()=>{
|
|
371
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
372
|
+
wrapper: Providers
|
|
373
|
+
});
|
|
374
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
375
|
+
expect(await result.current.getCollectionField('{{ $user.belongsToField }}')).toEqual({
|
|
376
|
+
type: 'belongsTo',
|
|
377
|
+
target: 'test'
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
});
|
|
381
|
+
it('getCollectionField with no exist variable', async ()=>{
|
|
382
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
383
|
+
wrapper: Providers
|
|
384
|
+
});
|
|
385
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
386
|
+
expect(await result.current.getCollectionField('{{ $noExist.belongsToField }}')).toEqual(void 0);
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
it('getCollectionField with local variables', async ()=>{
|
|
390
|
+
const { result } = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.renderHook)(()=>(0, __WEBPACK_EXTERNAL_MODULE__hooks_useVariables_mjs__["default"])(), {
|
|
391
|
+
wrapper: Providers
|
|
392
|
+
});
|
|
393
|
+
const localVariables = [
|
|
394
|
+
{
|
|
395
|
+
name: '$local',
|
|
396
|
+
ctx: {
|
|
397
|
+
name: 'local variable'
|
|
398
|
+
},
|
|
399
|
+
collectionName: 'local'
|
|
400
|
+
}
|
|
401
|
+
];
|
|
402
|
+
await (0, __WEBPACK_EXTERNAL_MODULE__tachybase_test_client__.waitFor)(async ()=>{
|
|
403
|
+
expect(await result.current.getCollectionField('{{ $local.belongsToField }}', localVariables)).toMatchInlineSnapshot('\n {\n "target": "test",\n "type": "belongsTo",\n }\n ');
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__utils_filterEmptyValues_mjs__ from "../../utils/filterEmptyValues.mjs";
|
|
2
|
+
describe('filterEmptyValues', ()=>{
|
|
3
|
+
test('should remove empty values from an array', ()=>{
|
|
4
|
+
const value = [
|
|
5
|
+
null,
|
|
6
|
+
0,
|
|
7
|
+
'',
|
|
8
|
+
false,
|
|
9
|
+
void 0,
|
|
10
|
+
42
|
|
11
|
+
];
|
|
12
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_filterEmptyValues_mjs__.filterEmptyValues)(value);
|
|
13
|
+
expect(result).toEqual([
|
|
14
|
+
0,
|
|
15
|
+
false,
|
|
16
|
+
42
|
|
17
|
+
]);
|
|
18
|
+
});
|
|
19
|
+
test('should return the value unchanged if it is not an array', ()=>{
|
|
20
|
+
const value = 'hello world';
|
|
21
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_filterEmptyValues_mjs__.filterEmptyValues)(value);
|
|
22
|
+
expect(result).toEqual('hello world');
|
|
23
|
+
});
|
|
24
|
+
test('should remove empty values from an array containing various types', ()=>{
|
|
25
|
+
const value = [
|
|
26
|
+
1,
|
|
27
|
+
'apple',
|
|
28
|
+
false,
|
|
29
|
+
0,
|
|
30
|
+
3.14,
|
|
31
|
+
'',
|
|
32
|
+
null,
|
|
33
|
+
'orange',
|
|
34
|
+
void 0
|
|
35
|
+
];
|
|
36
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_filterEmptyValues_mjs__.filterEmptyValues)(value);
|
|
37
|
+
expect(result).toEqual([
|
|
38
|
+
1,
|
|
39
|
+
'apple',
|
|
40
|
+
false,
|
|
41
|
+
0,
|
|
42
|
+
3.14,
|
|
43
|
+
'orange'
|
|
44
|
+
]);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__utils_getVariableName_mjs__ from "../../utils/getVariableName.mjs";
|
|
2
|
+
test('{{ $user.name }} => $user', ()=>{
|
|
3
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_getVariableName_mjs__.getVariableName)('{{ $user.name }}')).toBe('$user');
|
|
4
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__ from "../../utils/isVariable.mjs";
|
|
2
|
+
it('should return false for a string with only one opening brace', ()=>{
|
|
3
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)('{variable}}')).toBe(false);
|
|
4
|
+
});
|
|
5
|
+
it('should return false for a string with only one closing brace', ()=>{
|
|
6
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)('{{variable}')).toBe(false);
|
|
7
|
+
});
|
|
8
|
+
it('should return false for a string with no braces', ()=>{
|
|
9
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)('variable')).toBe(false);
|
|
10
|
+
});
|
|
11
|
+
it('should return true for a string with a valid variable', ()=>{
|
|
12
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)('{{variable}}')).toBe(true);
|
|
13
|
+
});
|
|
14
|
+
it('should return true for a string with a valid variable "{{ $nRecord.cc-cc }}"', ()=>{
|
|
15
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)('{{ $nRecord.cc-cc }}')).toBe(true);
|
|
16
|
+
});
|
|
17
|
+
it('should return true for a string with a valid variable "{{ $nRecord._name }}"', ()=>{
|
|
18
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)('{{ $nRecord._name }}')).toBe(true);
|
|
19
|
+
});
|
|
20
|
+
it('should return true for a string with a valid variable " {{ $nRecord.name }} "', ()=>{
|
|
21
|
+
expect((0, __WEBPACK_EXTERNAL_MODULE__utils_isVariable_mjs__.isVariable)(' {{ $nRecord.name }} ')).toBe(true);
|
|
22
|
+
});
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__ from "../../utils/transformVariableValue.mjs";
|
|
2
|
+
describe('transformVariableValue', ()=>{
|
|
3
|
+
test('should return value as it is when targetCollectionFiled.type is "belongsTo" and value is not an array', ()=>{
|
|
4
|
+
const value = {
|
|
5
|
+
name: 'test'
|
|
6
|
+
};
|
|
7
|
+
const deps = {
|
|
8
|
+
targetCollectionField: {
|
|
9
|
+
type: 'belongsTo',
|
|
10
|
+
uiSchema: {
|
|
11
|
+
'x-component': 'Text'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
16
|
+
expect(result).toBe(value);
|
|
17
|
+
});
|
|
18
|
+
test('should return value as it is when targetCollectionFiled.type is "hasOne" and value is not an array', ()=>{
|
|
19
|
+
const value = {
|
|
20
|
+
name: 'test'
|
|
21
|
+
};
|
|
22
|
+
const deps = {
|
|
23
|
+
targetCollectionField: {
|
|
24
|
+
type: 'hasOne',
|
|
25
|
+
uiSchema: {
|
|
26
|
+
'x-component': 'Text'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
31
|
+
expect(result).toBe(value);
|
|
32
|
+
});
|
|
33
|
+
test('should return an array containing the value when targetCollectionFiled.type is "hasMany" and value is not an array', ()=>{
|
|
34
|
+
const value = {
|
|
35
|
+
name: 'test'
|
|
36
|
+
};
|
|
37
|
+
const deps = {
|
|
38
|
+
targetCollectionField: {
|
|
39
|
+
type: 'hasMany',
|
|
40
|
+
uiSchema: {
|
|
41
|
+
'x-component': 'Text'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
46
|
+
expect(result).toEqual([
|
|
47
|
+
value
|
|
48
|
+
]);
|
|
49
|
+
});
|
|
50
|
+
test('should return value as it is when targetCollectionFiled.type is "hasMany" and value is an array', ()=>{
|
|
51
|
+
const value = [
|
|
52
|
+
{
|
|
53
|
+
name: 'test1'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'test2'
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
const deps = {
|
|
60
|
+
targetCollectionField: {
|
|
61
|
+
type: 'hasMany',
|
|
62
|
+
uiSchema: {
|
|
63
|
+
'x-component': 'Text'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
68
|
+
expect(result).toBe(value);
|
|
69
|
+
});
|
|
70
|
+
test('should return value as it is when targetCollectionFiled.type is "belongsToMany" and value is not an array', ()=>{
|
|
71
|
+
const value = {
|
|
72
|
+
name: 'test'
|
|
73
|
+
};
|
|
74
|
+
const deps = {
|
|
75
|
+
targetCollectionField: {
|
|
76
|
+
type: 'belongsToMany',
|
|
77
|
+
uiSchema: {
|
|
78
|
+
'x-component': 'Text'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
83
|
+
expect(result).toEqual([
|
|
84
|
+
value
|
|
85
|
+
]);
|
|
86
|
+
});
|
|
87
|
+
test('should return an array containing the value when targetCollectionFiled.type is "belongsToMany" and value is an array', ()=>{
|
|
88
|
+
const value = [
|
|
89
|
+
{
|
|
90
|
+
name: 'test1'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'test2'
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
const deps = {
|
|
97
|
+
targetCollectionField: {
|
|
98
|
+
type: 'belongsToMany',
|
|
99
|
+
uiSchema: {
|
|
100
|
+
'x-component': 'Text'
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
105
|
+
expect(result).toEqual(value);
|
|
106
|
+
});
|
|
107
|
+
test('json', ()=>{
|
|
108
|
+
const value = {
|
|
109
|
+
a: 1
|
|
110
|
+
};
|
|
111
|
+
const deps = {
|
|
112
|
+
targetCollectionField: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
interface: 'json',
|
|
115
|
+
uiSchema: {
|
|
116
|
+
'x-component': 'Text'
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
121
|
+
expect(result).toMatchInlineSnapshot('\n {\n "a": 1,\n }\n ');
|
|
122
|
+
});
|
|
123
|
+
test('value is undefined', ()=>{
|
|
124
|
+
const value = void 0;
|
|
125
|
+
const deps = {
|
|
126
|
+
targetCollectionField: {
|
|
127
|
+
type: 'belongsToMany',
|
|
128
|
+
uiSchema: {
|
|
129
|
+
'x-component': 'AssociationField'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
const result = (0, __WEBPACK_EXTERNAL_MODULE__utils_transformVariableValue_mjs__.transformVariableValue)(value, deps);
|
|
134
|
+
expect(result).toMatchInlineSnapshot("undefined");
|
|
135
|
+
});
|
|
136
|
+
});
|