@tachybase/client 0.23.8-alpha.26 → 0.23.8-alpha.28
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/built-in/system-settings/index.d.ts +1 -1
- package/es/index.css +1 -0
- package/es/index.mjs +61143 -0
- package/lib/index.css +1 -0
- package/lib/index.js +1818 -0
- package/package.json +6 -5
- package/es/schema-component/antd/association-filter/AssociationFilterProvider.d.ts +0 -1
- package/lib/api-client/APIClient.mjs +0 -176
- package/lib/api-client/APIClientProvider.mjs +0 -23
- package/lib/api-client/__tests__/APIClient.test.mjs +0 -64
- package/lib/api-client/context.mjs +0 -14
- package/lib/api-client/demos/demo1.mjs +0 -47
- package/lib/api-client/demos/demo2.mjs +0 -46
- package/lib/api-client/demos/demo3.mjs +0 -97
- package/lib/api-client/hooks/assign.mjs +0 -106
- package/lib/api-client/hooks/index.mjs +0 -9
- package/lib/api-client/hooks/useAPIClient.mjs +0 -15
- package/lib/api-client/hooks/useRequest.mjs +0 -70
- package/lib/api-client/hooks/useResource.mjs +0 -12
- package/lib/api-client/index.mjs +0 -11
- package/lib/application/AppSchemaComponentProvider.mjs +0 -48
- package/lib/application/Application.mjs +0 -431
- package/lib/application/AttachmentPreviewManager.mjs +0 -37
- package/lib/application/NoticesManager.mjs +0 -132
- package/lib/application/Plugin.mjs +0 -66
- package/lib/application/PluginContextMenu.mjs +0 -35
- package/lib/application/PluginManager.mjs +0 -113
- package/lib/application/RouterManager.mjs +0 -148
- package/lib/application/SystemSettingsManager.mjs +0 -133
- package/lib/application/UserSettingsManager.mjs +0 -135
- package/lib/application/WebSocketClient.mjs +0 -202
- package/lib/application/__tests__/Application.test.mjs +0 -518
- package/lib/application/__tests__/Plugin.test.mjs +0 -213
- package/lib/application/__tests__/PluginSettingsManager.test.mjs +0 -168
- package/lib/application/__tests__/RouterManager.test.mjs +0 -345
- package/lib/application/__tests__/SchemaInitializer.test.mjs +0 -169
- package/lib/application/__tests__/SchemaToolbar.test.mjs +0 -171
- package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +0 -207
- package/lib/application/__tests__/hooks.test.mjs +0 -112
- package/lib/application/__tests__/utils/remotePlugins.test.mjs +0 -331
- package/lib/application/__tests__/utils.test.mjs +0 -117
- package/lib/application/components/AppComponent.mjs +0 -78
- package/lib/application/components/BlankComponent.mjs +0 -18
- package/lib/application/components/MainComponent.mjs +0 -29
- package/lib/application/components/RouterContextCleaner.mjs +0 -30
- package/lib/application/components/defaultComponents.mjs +0 -37
- package/lib/application/components/index.mjs +0 -11
- package/lib/application/context.mjs +0 -10
- package/lib/application/demos/demo1.mjs +0 -136
- package/lib/application/demos/demo2.mjs +0 -149
- package/lib/application/demos/demo3.mjs +0 -17
- package/lib/application/hoc/index.mjs +0 -5
- package/lib/application/hoc/withDynamicSchemaProps.mjs +0 -165
- package/lib/application/hooks/index.mjs +0 -9
- package/lib/application/hooks/useApp.mjs +0 -15
- package/lib/application/hooks/usePlugin.mjs +0 -12
- package/lib/application/hooks/useRouter.mjs +0 -12
- package/lib/application/index.mjs +0 -37
- package/lib/application/schema-initializer/SchemaInitializer.mjs +0 -103
- package/lib/application/schema-initializer/SchemaInitializerManager.mjs +0 -86
- package/lib/application/schema-initializer/components/SchemaInitializerActionModal.mjs +0 -134
- package/lib/application/schema-initializer/components/SchemaInitializerButton.mjs +0 -60
- package/lib/application/schema-initializer/components/SchemaInitializerChildren.mjs +0 -91
- package/lib/application/schema-initializer/components/SchemaInitializerDivider.mjs +0 -25
- package/lib/application/schema-initializer/components/SchemaInitializerItem.mjs +0 -124
- package/lib/application/schema-initializer/components/SchemaInitializerItemGroup.mjs +0 -63
- package/lib/application/schema-initializer/components/SchemaInitializerItems.mjs +0 -23
- package/lib/application/schema-initializer/components/SchemaInitializerSelect.mjs +0 -86
- package/lib/application/schema-initializer/components/SchemaInitializerSubMenu.mjs +0 -147
- package/lib/application/schema-initializer/components/SchemaInitializerSwitch.mjs +0 -59
- package/lib/application/schema-initializer/components/index.mjs +0 -23
- package/lib/application/schema-initializer/components/style.mjs +0 -47
- package/lib/application/schema-initializer/context/index.mjs +0 -18
- package/lib/application/schema-initializer/hoc/index.mjs +0 -159
- package/lib/application/schema-initializer/hooks/index.mjs +0 -193
- package/lib/application/schema-initializer/hooks/useAriaAttributeOfMenuItem.mjs +0 -32
- package/lib/application/schema-initializer/index.mjs +0 -17
- package/lib/application/schema-initializer/types.mjs +0 -4
- package/lib/application/schema-settings/SchemaSettings.mjs +0 -94
- package/lib/application/schema-settings/SchemaSettingsDefaults.mjs +0 -241
- package/lib/application/schema-settings/SchemaSettingsManager.mjs +0 -86
- package/lib/application/schema-settings/components/SchemaSettingsChildren.mjs +0 -123
- package/lib/application/schema-settings/components/SchemaSettingsIcon.mjs +0 -34
- package/lib/application/schema-settings/components/SchemaSettingsWrapper.mjs +0 -59
- package/lib/application/schema-settings/components/index.mjs +0 -7
- package/lib/application/schema-settings/context/index.mjs +0 -13
- package/lib/application/schema-settings/hooks/index.mjs +0 -63
- package/lib/application/schema-settings/index.mjs +0 -15
- package/lib/application/schema-settings/types.mjs +0 -4
- package/lib/application/schema-toolbar/context/index.mjs +0 -24
- package/lib/application/schema-toolbar/hooks/index.mjs +0 -46
- package/lib/application/schema-toolbar/index.mjs +0 -7
- package/lib/application/utils/globalDeps.mjs +0 -162
- package/lib/application/utils/index.mjs +0 -59
- package/lib/application/utils/remotePlugins.mjs +0 -129
- package/lib/async-data-provider/index.mjs +0 -37
- package/lib/block-provider/BlockProvider.mjs +0 -401
- package/lib/block-provider/DetailsBlockProvider.mjs +0 -145
- package/lib/block-provider/FilterFormBlockProvider.mjs +0 -42
- package/lib/block-provider/FormBlockProvider.mjs +0 -222
- package/lib/block-provider/FormFieldProvider.mjs +0 -124
- package/lib/block-provider/MobileProvider.mjs +0 -24
- package/lib/block-provider/PageLayout.mjs +0 -25
- package/lib/block-provider/TableBlockProvider.mjs +0 -155
- package/lib/block-provider/TableFieldProvider.mjs +0 -197
- package/lib/block-provider/TableSelectorProvider.mjs +0 -372
- package/lib/block-provider/TreeBlockProvider.mjs +0 -158
- package/lib/block-provider/hooks/index.mjs +0 -1465
- package/lib/block-provider/hooks/useDataBlockSourceId.mjs +0 -33
- package/lib/block-provider/hooks/useFormActiveFields.mjs +0 -56
- package/lib/block-provider/hooks/useIsMobile.mjs +0 -16
- package/lib/block-provider/hooks/useParsedFilter.mjs +0 -85
- package/lib/block-provider/index.mjs +0 -25
- package/lib/built-in/acl/ACLProvider.mjs +0 -396
- package/lib/built-in/acl/ACLShortcut.mjs +0 -46
- package/lib/built-in/acl/Configuration/ConfigureCenter.mjs +0 -182
- package/lib/built-in/acl/Configuration/MenuConfigure.mjs +0 -188
- package/lib/built-in/acl/Configuration/MenuItemsProvider.mjs +0 -66
- package/lib/built-in/acl/Configuration/PermisionProvider.mjs +0 -95
- package/lib/built-in/acl/Configuration/RoleConfigure.mjs +0 -173
- package/lib/built-in/acl/Configuration/RoleTable.mjs +0 -73
- package/lib/built-in/acl/Configuration/RolesResourcesActions.mjs +0 -265
- package/lib/built-in/acl/Configuration/ScopeSelect.mjs +0 -61
- package/lib/built-in/acl/Configuration/StrategyActions.mjs +0 -143
- package/lib/built-in/acl/Configuration/index.mjs +0 -41
- package/lib/built-in/acl/Configuration/schemas/roles.mjs +0 -427
- package/lib/built-in/acl/Configuration/schemas/scopes.mjs +0 -384
- package/lib/built-in/acl/Configuration/schemas/useRoleResourceValues.mjs +0 -46
- package/lib/built-in/acl/Configuration/schemas/useSaveRoleResourceAction.mjs +0 -32
- package/lib/built-in/acl/index.mjs +0 -25
- package/lib/built-in/acl/style.mjs +0 -31
- package/lib/built-in/admin-layout/AdminContent.mjs +0 -34
- package/lib/built-in/admin-layout/AdminTabs.mjs +0 -21
- package/lib/built-in/admin-layout/NoticeArea.mjs +0 -37
- package/lib/built-in/admin-layout/components/AddNewButton.mjs +0 -89
- package/lib/built-in/admin-layout/components/WelcomeCard.mjs +0 -114
- package/lib/built-in/admin-layout/index.mjs +0 -299
- package/lib/built-in/admin-layout/style.mjs +0 -150
- package/lib/built-in/assistant/Assistant.provider.mjs +0 -114
- package/lib/built-in/assistant/ai-chat/index.mjs +0 -359
- package/lib/built-in/assistant/ai-chat/index.module.mjs +0 -9
- package/lib/built-in/assistant/ai-chat/index_module.css +0 -257
- package/lib/built-in/assistant/calculator/AutoScalingText.mjs +0 -45
- package/lib/built-in/assistant/calculator/Calculator.mjs +0 -259
- package/lib/built-in/assistant/calculator/CalculatorDisplay.mjs +0 -34
- package/lib/built-in/assistant/calculator/CalculatorKey.mjs +0 -20
- package/lib/built-in/assistant/calculator/CalculatorProvider.mjs +0 -52
- package/lib/built-in/assistant/calculator/Draggable.mjs +0 -66
- package/lib/built-in/assistant/calculator/style.mjs +0 -33
- package/lib/built-in/assistant/index.mjs +0 -27
- package/lib/built-in/assistant/search-and-jump/index.mjs +0 -75
- package/lib/built-in/attachment-preview/index.mjs +0 -24
- package/lib/built-in/attachment-preview/interface.mjs +0 -4
- package/lib/built-in/attachment-preview/previewers/file-default.mjs +0 -97
- package/lib/built-in/attachment-preview/previewers/file-pdf.mjs +0 -142
- package/lib/built-in/attachment-preview/previewers/file-pdf.style.mjs +0 -53
- package/lib/built-in/attachment-preview/previewers/file-sheet.mjs +0 -132
- package/lib/built-in/attachment-preview/previewers/file-sheet.style.mjs +0 -53
- package/lib/built-in/attachment-preview/previewers/image-jpeg.mjs +0 -43
- package/lib/built-in/attachment-preview/previewers/image-png.mjs +0 -43
- package/lib/built-in/attachment-preview/previewers/image-svg.mjs +0 -29
- package/lib/built-in/attachment-preview/previewers/index.mjs +0 -15
- package/lib/built-in/block-schema-component/index.mjs +0 -186
- package/lib/built-in/built-in-collections/index.mjs +0 -74
- package/lib/built-in/context-menu/ContextMenu.provider.mjs +0 -89
- package/lib/built-in/context-menu/ContextMenuItemsProps.mjs +0 -176
- package/lib/built-in/context-menu/index.mjs +0 -33
- package/lib/built-in/context-menu/useContextMenu.mjs +0 -12
- package/lib/built-in/document-title/index.mjs +0 -75
- package/lib/built-in/dynamic-page/DynamicPage.mjs +0 -67
- package/lib/built-in/dynamic-page/index.mjs +0 -79
- package/lib/built-in/dynamic-page/style.mjs +0 -60
- package/lib/built-in/dynamic-page/utils.mjs +0 -84
- package/lib/built-in/index.mjs +0 -591
- package/lib/built-in/locale/LocalePlugin.mjs +0 -96
- package/lib/built-in/locale/loadConstrueLocale.mjs +0 -194
- package/lib/built-in/page-style/CustomAdminHeader.mjs +0 -24
- package/lib/built-in/page-style/PageStyle.provider.mjs +0 -47
- package/lib/built-in/page-style/TabContent.mjs +0 -97
- package/lib/built-in/page-style/TabHeader.mjs +0 -114
- package/lib/built-in/page-style/index.mjs +0 -29
- package/lib/built-in/page-style/usePageStyle.mjs +0 -15
- package/lib/built-in/page-style/useTabSettings.mjs +0 -97
- package/lib/built-in/pinned-list/PinnedPluginListProvider.mjs +0 -87
- package/lib/built-in/pinned-list/context.mjs +0 -12
- package/lib/built-in/pinned-list/index.mjs +0 -18
- package/lib/built-in/pm/PluginCard.mjs +0 -306
- package/lib/built-in/pm/PluginDetail.mjs +0 -350
- package/lib/built-in/pm/PluginDocument.mjs +0 -99
- package/lib/built-in/pm/PluginForm/form/PluginNpmForm.mjs +0 -189
- package/lib/built-in/pm/PluginForm/form/PluginUploadForm.mjs +0 -142
- package/lib/built-in/pm/PluginForm/form/PluginUrlForm.mjs +0 -133
- package/lib/built-in/pm/PluginForm/modal/PluginAddModal.mjs +0 -88
- package/lib/built-in/pm/PluginForm/modal/PluginUpgradeModal.mjs +0 -92
- package/lib/built-in/pm/PluginManager.mjs +0 -341
- package/lib/built-in/pm/index.mjs +0 -78
- package/lib/built-in/pm/style.mjs +0 -86
- package/lib/built-in/pm/types.mjs +0 -4
- package/lib/built-in/quick-access/Action.mjs +0 -125
- package/lib/built-in/quick-access/Block.mjs +0 -170
- package/lib/built-in/quick-access/CustomRequestActionSchemaInitializerItem.mjs +0 -115
- package/lib/built-in/quick-access/LinkActionSchemaInitializerItem.mjs +0 -108
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +0 -118
- package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +0 -143
- package/lib/built-in/quick-access/SchemaSettingsBlockTitleItem.mjs +0 -66
- package/lib/built-in/quick-access/blockInitializerItem.mjs +0 -31
- package/lib/built-in/quick-access/blockSchema.mjs +0 -20
- package/lib/built-in/quick-access/blockSettings.mjs +0 -92
- package/lib/built-in/quick-access/configureActions.mjs +0 -25
- package/lib/built-in/quick-access/index.mjs +0 -66
- package/lib/built-in/scroll-assistant/ScrollAssistant.provider.mjs +0 -62
- package/lib/built-in/scroll-assistant/ScrollAssistantStatus.provider.mjs +0 -31
- package/lib/built-in/scroll-assistant/index.mjs +0 -41
- package/lib/built-in/scroll-assistant/useJoystick.mjs +0 -216
- package/lib/built-in/setting-layout/AdminSettings.mjs +0 -174
- package/lib/built-in/setting-layout/SettingLayout.mjs +0 -171
- package/lib/built-in/setting-layout/SettingsCenterDropdown.mjs +0 -104
- package/lib/built-in/system-settings/SystemSettingsProvider.mjs +0 -33
- package/lib/built-in/system-settings/SystemSettingsShortcut.mjs +0 -189
- package/lib/built-in/system-settings/index.mjs +0 -18
- package/lib/built-in/system-version/SystemVersion.provider.mjs +0 -52
- package/lib/built-in/system-version/index.mjs +0 -17
- package/lib/built-in/user-settings/UserSettingsLayout.mjs +0 -221
- package/lib/built-in/user-settings/index.mjs +0 -38
- package/lib/built-in/user-settings/style.mjs +0 -86
- package/lib/collection-manager/CollectionHistoryProvider.mjs +0 -81
- package/lib/collection-manager/CollectionManagerProvider.mjs +0 -92
- package/lib/collection-manager/CollectionManagerSchemaComponentProvider.mjs +0 -46
- package/lib/collection-manager/CollectionProvider_deprecated.mjs +0 -40
- package/lib/collection-manager/Configuration/AddCollectionAction.mjs +0 -292
- package/lib/collection-manager/Configuration/AddFieldAction.mjs +0 -457
- package/lib/collection-manager/Configuration/AddSubFieldAction.mjs +0 -211
- package/lib/collection-manager/Configuration/DeleteCollectionAction.mjs +0 -268
- package/lib/collection-manager/Configuration/EditCollectionAction.mjs +0 -221
- package/lib/collection-manager/Configuration/EditFieldAction.mjs +0 -315
- package/lib/collection-manager/Configuration/EditSubFieldAction.mjs +0 -163
- package/lib/collection-manager/Configuration/ImportCollectionMetaAction.mjs +0 -210
- package/lib/collection-manager/Configuration/OverridingCollectionField.mjs +0 -274
- package/lib/collection-manager/Configuration/SyncFieldsAction.mjs +0 -257
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.mjs +0 -214
- package/lib/collection-manager/Configuration/ViewInheritedField.mjs +0 -187
- package/lib/collection-manager/Configuration/components/CollectionCategory.mjs +0 -38
- package/lib/collection-manager/Configuration/components/CollectionFieldInterfaceTag.mjs +0 -40
- package/lib/collection-manager/Configuration/components/CollectionTemplateTag.mjs +0 -39
- package/lib/collection-manager/Configuration/components/FieldSummary.mjs +0 -39
- package/lib/collection-manager/Configuration/components/Summary.mjs +0 -84
- package/lib/collection-manager/Configuration/components/TemplateSummary.mjs +0 -39
- package/lib/collection-manager/Configuration/components/index.mjs +0 -359
- package/lib/collection-manager/Configuration/index.mjs +0 -46
- package/lib/collection-manager/Configuration/interfaces.mjs +0 -48
- package/lib/collection-manager/ResourceActionProvider.mjs +0 -168
- package/lib/collection-manager/action-hooks.mjs +0 -658
- package/lib/collection-manager/collectionPlugin.mjs +0 -151
- package/lib/collection-manager/context.mjs +0 -13
- package/lib/collection-manager/demos/demo2.mjs +0 -143
- package/lib/collection-manager/demos/demo3.mjs +0 -96
- package/lib/collection-manager/demos/demo4.mjs +0 -183
- package/lib/collection-manager/demos/demo5.mjs +0 -187
- package/lib/collection-manager/hooks/index.mjs +0 -11
- package/lib/collection-manager/hooks/useCollectionDataSource.mjs +0 -29
- package/lib/collection-manager/hooks/useCollectionField_deprecated.mjs +0 -43
- package/lib/collection-manager/hooks/useCollectionManager_deprecated.mjs +0 -272
- package/lib/collection-manager/hooks/useCollection_deprecated.mjs +0 -70
- package/lib/collection-manager/hooks/useDialect.mjs +0 -17
- package/lib/collection-manager/index.mjs +0 -63
- package/lib/collection-manager/interfaces/__tests__/json.mjs +0 -73
- package/lib/collection-manager/interfaces/checkbox.mjs +0 -61
- package/lib/collection-manager/interfaces/checkboxGroup.mjs +0 -55
- package/lib/collection-manager/interfaces/chinaRegion.mjs +0 -127
- package/lib/collection-manager/interfaces/collection.mjs +0 -57
- package/lib/collection-manager/interfaces/color.mjs +0 -43
- package/lib/collection-manager/interfaces/components/index.mjs +0 -73
- package/lib/collection-manager/interfaces/createdAt.mjs +0 -47
- package/lib/collection-manager/interfaces/createdBy.mjs +0 -70
- package/lib/collection-manager/interfaces/datetime.mjs +0 -56
- package/lib/collection-manager/interfaces/email.mjs +0 -54
- package/lib/collection-manager/interfaces/icon.mjs +0 -40
- package/lib/collection-manager/interfaces/id.mjs +0 -66
- package/lib/collection-manager/interfaces/index.mjs +0 -81
- package/lib/collection-manager/interfaces/input.mjs +0 -200
- package/lib/collection-manager/interfaces/integer.mjs +0 -138
- package/lib/collection-manager/interfaces/json.mjs +0 -102
- package/lib/collection-manager/interfaces/linkTo.mjs +0 -119
- package/lib/collection-manager/interfaces/m2m.mjs +0 -253
- package/lib/collection-manager/interfaces/m2o.mjs +0 -182
- package/lib/collection-manager/interfaces/markdown.mjs +0 -94
- package/lib/collection-manager/interfaces/multipleSelect.mjs +0 -62
- package/lib/collection-manager/interfaces/nanoid.mjs +0 -72
- package/lib/collection-manager/interfaces/number.mjs +0 -146
- package/lib/collection-manager/interfaces/o2m.mjs +0 -211
- package/lib/collection-manager/interfaces/o2o.mjs +0 -493
- package/lib/collection-manager/interfaces/password.mjs +0 -80
- package/lib/collection-manager/interfaces/percent.mjs +0 -193
- package/lib/collection-manager/interfaces/phone.mjs +0 -46
- package/lib/collection-manager/interfaces/properties/index.mjs +0 -506
- package/lib/collection-manager/interfaces/properties/operators.mjs +0 -370
- package/lib/collection-manager/interfaces/radioGroup.mjs +0 -46
- package/lib/collection-manager/interfaces/richText.mjs +0 -92
- package/lib/collection-manager/interfaces/select.mjs +0 -60
- package/lib/collection-manager/interfaces/sort.mjs +0 -123
- package/lib/collection-manager/interfaces/subTable.mjs +0 -218
- package/lib/collection-manager/interfaces/tableoid.mjs +0 -60
- package/lib/collection-manager/interfaces/textarea.mjs +0 -92
- package/lib/collection-manager/interfaces/time.mjs +0 -59
- package/lib/collection-manager/interfaces/types.mjs +0 -4
- package/lib/collection-manager/interfaces/unixTimestamp.mjs +0 -64
- package/lib/collection-manager/interfaces/updatedAt.mjs +0 -47
- package/lib/collection-manager/interfaces/updatedBy.mjs +0 -70
- package/lib/collection-manager/interfaces/url.mjs +0 -46
- package/lib/collection-manager/interfaces/uuid.mjs +0 -60
- package/lib/collection-manager/mixins/InheritanceCollectionMixin.mjs +0 -249
- package/lib/collection-manager/sub-table.mjs +0 -270
- package/lib/collection-manager/templates/components/PresetFields.mjs +0 -271
- package/lib/collection-manager/templates/components/PreviewFields.mjs +0 -345
- package/lib/collection-manager/templates/components/PreviewTable.mjs +0 -171
- package/lib/collection-manager/templates/components/sql-collection/FieldsConfigure.mjs +0 -348
- package/lib/collection-manager/templates/components/sql-collection/PreviewTable.mjs +0 -81
- package/lib/collection-manager/templates/components/sql-collection/SQLInput.mjs +0 -130
- package/lib/collection-manager/templates/components/sql-collection/SQLRequestProvider.mjs +0 -74
- package/lib/collection-manager/templates/components/sql-collection/index.mjs +0 -11
- package/lib/collection-manager/templates/expression.mjs +0 -78
- package/lib/collection-manager/templates/general.mjs +0 -32
- package/lib/collection-manager/templates/import.mjs +0 -28
- package/lib/collection-manager/templates/index.mjs +0 -15
- package/lib/collection-manager/templates/properties/index.mjs +0 -81
- package/lib/collection-manager/templates/sql.mjs +0 -105
- package/lib/collection-manager/templates/tree.mjs +0 -94
- package/lib/collection-manager/templates/types.mjs +0 -4
- package/lib/collection-manager/templates/view.mjs +0 -177
- package/lib/collection-manager/types.mjs +0 -4
- package/lib/collection-manager/utils.mjs +0 -23
- package/lib/common/SelectWithTitle.mjs +0 -56
- package/lib/common/appInfo/CurrentAppInfoProvider.mjs +0 -33
- package/lib/common/appInfo/index.mjs +0 -5
- package/lib/common/index.mjs +0 -9
- package/lib/common/useFieldComponentName.mjs +0 -39
- package/lib/common/useNiceDropdownHeight.mjs +0 -28
- package/lib/data-source/__tests__/collection/AssociationProvider.test.mjs +0 -132
- package/lib/data-source/__tests__/collection/Collection.test.mjs +0 -308
- package/lib/data-source/__tests__/collection/CollectionManager.test.mjs +0 -308
- package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +0 -135
- package/lib/data-source/__tests__/collection/CollectionProvider.test.mjs +0 -123
- package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +0 -105
- package/lib/data-source/__tests__/collection-field/CollectionField.test.mjs +0 -84
- package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +0 -70
- package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +0 -171
- package/lib/data-source/__tests__/collection-record/CollectionRecord.test.mjs +0 -27
- package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +0 -268
- package/lib/data-source/__tests__/collection-record/isNewRecord.test.mjs +0 -55
- package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +0 -132
- package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +0 -58
- package/lib/data-source/__tests__/data-block/DataBlockProvider.test.mjs +0 -151
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +0 -108
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +0 -160
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +0 -131
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +0 -197
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +0 -160
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +0 -114
- package/lib/data-source/__tests__/data-block/data-block-demos/createApp.mjs +0 -66
- package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +0 -56
- package/lib/data-source/__tests__/data-source/DataSource.test.mjs +0 -81
- package/lib/data-source/__tests__/data-source/DataSourceManager.test.mjs +0 -174
- package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +0 -45
- package/lib/data-source/__tests__/data-source/DataSourceProvider.test.mjs +0 -100
- package/lib/data-source/__tests__/utils.test.mjs +0 -66
- package/lib/data-source/collection/AssociationProvider.mjs +0 -68
- package/lib/data-source/collection/Collection.mjs +0 -200
- package/lib/data-source/collection/CollectionManager.mjs +0 -165
- package/lib/data-source/collection/CollectionManagerProvider.mjs +0 -64
- package/lib/data-source/collection/CollectionProvider.mjs +0 -53
- package/lib/data-source/collection/ExtendCollectionsProvider.mjs +0 -47
- package/lib/data-source/collection/index.mjs +0 -15
- package/lib/data-source/collection/utils.mjs +0 -62
- package/lib/data-source/collection-field/CollectionField.mjs +0 -116
- package/lib/data-source/collection-field/CollectionFieldProvider.mjs +0 -65
- package/lib/data-source/collection-field/index.mjs +0 -7
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.mjs +0 -42
- package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +0 -65
- package/lib/data-source/collection-field-interface/index.mjs +0 -7
- package/lib/data-source/collection-record/CollectionRecord.mjs +0 -34
- package/lib/data-source/collection-record/CollectionRecordProvider.mjs +0 -78
- package/lib/data-source/collection-record/index.mjs +0 -7
- package/lib/data-source/collection-record/isNewRecord.mjs +0 -26
- package/lib/data-source/collection-template/CollectionTemplate.mjs +0 -39
- package/lib/data-source/collection-template/CollectionTemplateManager.mjs +0 -61
- package/lib/data-source/collection-template/index.mjs +0 -7
- package/lib/data-source/commonsSettingsItem/fieldComponent.mjs +0 -80
- package/lib/data-source/commonsSettingsItem/index.mjs +0 -5
- package/lib/data-source/components/CollectionDeletedPlaceholder.mjs +0 -125
- package/lib/data-source/components/DataSourceApplicationProvider.mjs +0 -32
- package/lib/data-source/components/index.mjs +0 -7
- package/lib/data-source/data-block/DataBlockProvider.mjs +0 -115
- package/lib/data-source/data-block/DataBlockRequestProvider.mjs +0 -168
- package/lib/data-source/data-block/DataBlockResourceProvider.mjs +0 -84
- package/lib/data-source/data-block/context/ConfigSetting.provider.mjs +0 -18
- package/lib/data-source/data-block/index.mjs +0 -11
- package/lib/data-source/data-source/DataSource.mjs +0 -83
- package/lib/data-source/data-source/DataSourceManager.mjs +0 -127
- package/lib/data-source/data-source/DataSourceManagerProvider.mjs +0 -25
- package/lib/data-source/data-source/DataSourceProvider.mjs +0 -87
- package/lib/data-source/data-source/index.mjs +0 -11
- package/lib/data-source/index.mjs +0 -23
- package/lib/data-source/utils.mjs +0 -28
- package/lib/env.d.mjs +0 -1
- package/lib/filter-provider/FilterProvider.mjs +0 -182
- package/lib/filter-provider/__tests__/transformToFilter.mjs +0 -74
- package/lib/filter-provider/__tests__/useFilter.mjs +0 -61
- package/lib/filter-provider/__tests__/utiles.test.mjs +0 -271
- package/lib/filter-provider/index.mjs +0 -7
- package/lib/filter-provider/utils.mjs +0 -262
- package/lib/flag-provider/FlagProvider.mjs +0 -19
- package/lib/flag-provider/__tests__/flag-provider.test.mjs +0 -37
- package/lib/flag-provider/hooks/useFlag.mjs +0 -15
- package/lib/flag-provider/index.mjs +0 -7
- package/lib/global.css +0 -34
- package/lib/hooks/index.mjs +0 -7
- package/lib/hooks/useAdminSchemaUid.mjs +0 -7
- package/lib/hooks/useMenuItem.mjs +0 -101
- package/lib/hooks/useViewport.mjs +0 -47
- package/lib/i18n/i18n.mjs +0 -37
- package/lib/i18n/index.mjs +0 -5
- package/lib/icon/Icon.mjs +0 -80
- package/lib/icon/__tests__/icon.test.mjs +0 -49
- package/lib/icon/demos/antd-icon.mjs +0 -19
- package/lib/icon/demos/custom-icon.mjs +0 -28
- package/lib/icon/demos/iconfont.mjs +0 -22
- package/lib/icon/demos/register-icon.mjs +0 -35
- package/lib/icon/index.mjs +0 -5
- package/lib/icon/preloaded.mjs +0 -139
- package/lib/index.mjs +0 -111
- package/lib/locale/index.mjs +0 -274
- package/lib/modules/actions/ActionSchemaToolbar.mjs +0 -24
- package/lib/modules/actions/add-child/CreateChildInitializer.mjs +0 -76
- package/lib/modules/actions/add-child/addChildActionSettings.mjs +0 -88
- package/lib/modules/actions/add-new/CreateActionInitializer.mjs +0 -82
- package/lib/modules/actions/add-new/addNewActionSettings.mjs +0 -81
- package/lib/modules/actions/add-new/createFormBlockInitializers.mjs +0 -75
- package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +0 -78
- package/lib/modules/actions/add-record/customizeAddRecordActionSettings.mjs +0 -50
- package/lib/modules/actions/add-record/customizeCreateFormBlockInitializers.mjs +0 -45
- package/lib/modules/actions/bulk-destroy/BulkDestroyActionInitializer.mjs +0 -52
- package/lib/modules/actions/bulk-destroy/bulkDeleteActionSettings.mjs +0 -42
- package/lib/modules/actions/delete/DestroyActionInitializer.mjs +0 -40
- package/lib/modules/actions/delete/deleteActionSettings.mjs +0 -57
- package/lib/modules/actions/disassociate/DisassociateActionInitializer.mjs +0 -40
- package/lib/modules/actions/disassociate/__e2e__/disassociate.test.mjs +0 -53
- package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +0 -386
- package/lib/modules/actions/disassociate/disassociateActionSettings.mjs +0 -57
- package/lib/modules/actions/expand-collapse/ExpandableActionInitializer.mjs +0 -40
- package/lib/modules/actions/expand-collapse/expendableActionSettings.mjs +0 -148
- package/lib/modules/actions/filter/FilterActionInitializer.mjs +0 -34
- package/lib/modules/actions/filter/filterActionSettings.mjs +0 -103
- package/lib/modules/actions/link/customizeLinkActionSettings.mjs +0 -149
- package/lib/modules/actions/link/hooks.mjs +0 -243
- package/lib/modules/actions/refresh/RefreshActionInitializer.mjs +0 -33
- package/lib/modules/actions/refresh/refreshActionSettings.mjs +0 -42
- package/lib/modules/actions/save-record/SaveRecordActionInitializer.mjs +0 -49
- package/lib/modules/actions/save-record/customizeSaveRecordActionSettings.mjs +0 -67
- package/lib/modules/actions/submit/CreateSubmitActionInitializer.mjs +0 -39
- package/lib/modules/actions/submit/UpdateSubmitActionInitializer.mjs +0 -44
- package/lib/modules/actions/submit/createSubmitActionSettings.mjs +0 -250
- package/lib/modules/actions/submit/updateSubmitActionSettings.mjs +0 -107
- package/lib/modules/actions/update-record/UpdateRecordActionInitializer.mjs +0 -48
- package/lib/modules/actions/update-record/customizeUpdateRecordActionSettings.mjs +0 -83
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.mjs +0 -74
- package/lib/modules/actions/view-edit-popup/RecordFormBlockInitializers.mjs +0 -46
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +0 -69
- package/lib/modules/actions/view-edit-popup/ViewActionInitializer.mjs +0 -68
- package/lib/modules/actions/view-edit-popup/customizePopupActionSettings.mjs +0 -70
- package/lib/modules/actions/view-edit-popup/editActionSettings.mjs +0 -65
- package/lib/modules/actions/view-edit-popup/viewActionSettings.mjs +0 -70
- package/lib/modules/blocks/BlockSchemaToolbar.mjs +0 -85
- package/lib/modules/blocks/data-blocks/details-multi/DetailsActionInitializers.mjs +0 -49
- package/lib/modules/blocks/data-blocks/details-multi/DetailsBlockInitializer.mjs +0 -76
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +0 -123
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +0 -81
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +0 -20
- package/lib/modules/blocks/data-blocks/details-multi/createDetailsWithPaginationUISchema.mjs +0 -66
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +0 -256
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationDecoratorProps.mjs +0 -19
- package/lib/modules/blocks/data-blocks/details-multi/hooks/useDetailsWithPaginationProps.mjs +0 -11
- package/lib/modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem.mjs +0 -106
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormActionInitializers.mjs +0 -94
- package/lib/modules/blocks/data-blocks/details-single/ReadPrettyFormItemInitializers.mjs +0 -110
- package/lib/modules/blocks/data-blocks/details-single/RecordReadPrettyFormBlockInitializer.mjs +0 -108
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +0 -110
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +0 -31
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +0 -21
- package/lib/modules/blocks/data-blocks/details-single/createDetailsUISchema.mjs +0 -62
- package/lib/modules/blocks/data-blocks/details-single/detailsBlockSettings.mjs +0 -67
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsDecoratorProps.mjs +0 -43
- package/lib/modules/blocks/data-blocks/details-single/hooks/useDetailsProps.mjs +0 -11
- package/lib/modules/blocks/data-blocks/form/CreateFormBlockInitializer.mjs +0 -85
- package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +0 -321
- package/lib/modules/blocks/data-blocks/form/FormBlockInitializer.mjs +0 -113
- package/lib/modules/blocks/data-blocks/form/FormItemSchemaToolbar.mjs +0 -23
- package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +0 -123
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +0 -27
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +0 -33
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +0 -207
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +0 -36
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +0 -167
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +0 -1367
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +0 -6009
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +0 -22
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +0 -235
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +0 -27
- package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +0 -27
- package/lib/modules/blocks/data-blocks/form/createCreateFormBlockUISchema.mjs +0 -63
- package/lib/modules/blocks/data-blocks/form/createEditFormBlockUISchema.mjs +0 -62
- package/lib/modules/blocks/data-blocks/form/createFormActionInitializers.mjs +0 -51
- package/lib/modules/blocks/data-blocks/form/createFormBlockSettings.mjs +0 -157
- package/lib/modules/blocks/data-blocks/form/editFormBlockSettings.mjs +0 -90
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +0 -598
- package/lib/modules/blocks/data-blocks/form/formActionInitializers.mjs +0 -54
- package/lib/modules/blocks/data-blocks/form/formItemInitializers.mjs +0 -51
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockDecoratorProps.mjs +0 -19
- package/lib/modules/blocks/data-blocks/form/hooks/useCreateFormBlockProps.mjs +0 -11
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockDecoratorProps.mjs +0 -29
- package/lib/modules/blocks/data-blocks/form/hooks/useEditFormBlockProps.mjs +0 -11
- package/lib/modules/blocks/data-blocks/form/index.mjs +0 -31
- package/lib/modules/blocks/data-blocks/form/updateFormActionInitializers.mjs +0 -62
- package/lib/modules/blocks/data-blocks/grid-card/GridCardActionInitializers.mjs +0 -94
- package/lib/modules/blocks/data-blocks/grid-card/GridCardBlockInitializer.mjs +0 -69
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +0 -231
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +0 -58
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +0 -32
- package/lib/modules/blocks/data-blocks/grid-card/createGridCardBlockUISchema.mjs +0 -78
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +0 -484
- package/lib/modules/blocks/data-blocks/grid-card/gridCardItemActionInitializers.mjs +0 -109
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockDecoratorProps.mjs +0 -25
- package/lib/modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs +0 -28
- package/lib/modules/blocks/data-blocks/grid-card/utils.mjs +0 -17
- package/lib/modules/blocks/data-blocks/list/ListActionInitializers.mjs +0 -90
- package/lib/modules/blocks/data-blocks/list/ListBlockInitializer.mjs +0 -69
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +0 -224
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +0 -29
- package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +0 -30
- package/lib/modules/blocks/data-blocks/list/createListBlockUISchema.mjs +0 -71
- package/lib/modules/blocks/data-blocks/list/hooks/useListBlockDecoratorProps.mjs +0 -19
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.mjs +0 -286
- package/lib/modules/blocks/data-blocks/list/listItemActionInitializers.mjs +0 -109
- package/lib/modules/blocks/data-blocks/table/TableActionColumnInitializers.mjs +0 -287
- package/lib/modules/blocks/data-blocks/table/TableActionInitializers.mjs +0 -143
- package/lib/modules/blocks/data-blocks/table/TableBlockInitializer.mjs +0 -69
- package/lib/modules/blocks/data-blocks/table/TableColumnInitializers.mjs +0 -135
- package/lib/modules/blocks/data-blocks/table/TableColumnSchemaToolbar.mjs +0 -35
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +0 -19
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +0 -46
- package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +0 -28
- package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +0 -40
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +0 -450
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +0 -922
- package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +0 -937
- package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +0 -53
- package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +0 -24
- package/lib/modules/blocks/data-blocks/table/createTableBlockUISchema.mjs +0 -90
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockDecoratorProps.mjs +0 -54
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +0 -176
- package/lib/modules/blocks/data-blocks/table/index.mjs +0 -21
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.mjs +0 -461
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.mjs +0 -388
- package/lib/modules/blocks/data-blocks/table/utils.mjs +0 -30
- package/lib/modules/blocks/data-blocks/table-selector/TableSelectorInitializer.mjs +0 -45
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +0 -174
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +0 -169
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +0 -695
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +0 -20
- package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +0 -22
- package/lib/modules/blocks/data-blocks/table-selector/createTableSelectorUISchema.mjs +0 -55
- package/lib/modules/blocks/data-blocks/table-selector/hooks/useTableSelectorDecoratorProps.mjs +0 -5
- package/lib/modules/blocks/data-blocks/table-selector/index.mjs +0 -7
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +0 -353
- package/lib/modules/blocks/filter-blocks/collapse/CollapseItemSchemaToolbar.mjs +0 -22
- package/lib/modules/blocks/filter-blocks/collapse/FilterCollapseBlockInitializer.mjs +0 -51
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +0 -67
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +0 -72
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +0 -46
- package/lib/modules/blocks/filter-blocks/collapse/createFilterCollapseBlockSchema.mjs +0 -37
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseBlockSettings.mjs +0 -79
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +0 -244
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemInitializer.mjs +0 -170
- package/lib/modules/blocks/filter-blocks/collapse/hooks/useCollapseBlockDecoratorProps.mjs +0 -5
- package/lib/modules/blocks/filter-blocks/form/FilterFormActionInitializers.mjs +0 -38
- package/lib/modules/blocks/filter-blocks/form/FilterFormBlockInitializer.mjs +0 -60
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +0 -127
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +0 -111
- package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +0 -31
- package/lib/modules/blocks/filter-blocks/form/createFilterFormBlockSchema.mjs +0 -56
- package/lib/modules/blocks/filter-blocks/form/filterFormBlockSettings.mjs +0 -87
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +0 -394
- package/lib/modules/blocks/filter-blocks/form/filterFormItemInitializers.mjs +0 -53
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockDecoratorProps.mjs +0 -5
- package/lib/modules/blocks/filter-blocks/form/hooks/useFilterFormBlockProps.mjs +0 -11
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeActionInitializers.mjs +0 -38
- package/lib/modules/blocks/filter-blocks/tree/FilterTreeBlockInitializer.mjs +0 -101
- package/lib/modules/blocks/filter-blocks/tree/filterTreeBlockSettings.mjs +0 -87
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +0 -394
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemInitializers.mjs +0 -53
- package/lib/modules/blocks/other-blocks/markdown/MarkdownBlockInitializer.mjs +0 -48
- package/lib/modules/blocks/other-blocks/markdown/MarkdownFormItemInitializer.mjs +0 -42
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +0 -16
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +0 -40
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/blocks/other-blocks/markdown/markdownBlockSettings.mjs +0 -51
- package/lib/modules/blocks/useParentRecordCommon.mjs +0 -18
- package/lib/modules/blocks/useSourceId.mjs +0 -23
- package/lib/modules/blocks/useSourceKey.mjs +0 -16
- package/lib/modules/dialog/__e2e__/schemaInitializer.test.mjs +0 -435
- package/lib/modules/dialog/__e2e__/schemaSettings.test.mjs +0 -65
- package/lib/modules/dialog/__e2e__/templatesOfBug.mjs +0 -2128
- package/lib/modules/dialog/__e2e__/zIndex.test.mjs +0 -46
- package/lib/modules/fields/component/CascadeSelect/cascadeSelectComponentFieldSettings.mjs +0 -120
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +0 -457
- package/lib/modules/fields/component/Checkbox/checkboxComponentFieldSettings.mjs +0 -71
- package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +0 -86
- package/lib/modules/fields/component/DatePicker/__e2e__/utils.mjs +0 -335
- package/lib/modules/fields/component/DatePicker/datePickerComponentFieldSettings.mjs +0 -37
- package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +0 -184
- package/lib/modules/fields/component/FileManager/fileManagerComponentFieldSettings.mjs +0 -225
- package/lib/modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs +0 -123
- package/lib/modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs +0 -45
- package/lib/modules/fields/component/Nester/subformComponentFieldSettings.mjs +0 -157
- package/lib/modules/fields/component/Picker/TableSelectorInitializers.mjs +0 -98
- package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +0 -222
- package/lib/modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs +0 -134
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.mjs +0 -71
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.mjs +0 -453
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +0 -447
- package/lib/modules/fields/component/Tag/tagComponentFieldSettings.mjs +0 -207
- package/lib/modules/fields/component/UnixTimestamp/unixTimestampComponentFieldSettings.mjs +0 -37
- package/lib/modules/fields/initializer/CollectionFieldInitializer.mjs +0 -30
- package/lib/modules/fields/initializer/TableCollectionFieldInitializer.mjs +0 -30
- package/lib/modules/menu/GroupItem.mjs +0 -110
- package/lib/modules/menu/LinkMenuItem.mjs +0 -116
- package/lib/modules/menu/PageMenuItem.mjs +0 -125
- package/lib/modules/menu/__e2e__/dragAndDrop.test.mjs +0 -34
- package/lib/modules/menu/__e2e__/schemaInitializer.test.mjs +0 -114
- package/lib/modules/menu/__e2e__/schemaSettings.test.mjs +0 -366
- package/lib/modules/menu/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/menu/menuItemInitializer.mjs +0 -65
- package/lib/modules/page/BlockInitializers.mjs +0 -86
- package/lib/modules/page/__e2e__/blockInitializers.test.mjs +0 -23
- package/lib/modules/page/__e2e__/dragAndDrop.test.mjs +0 -24
- package/lib/modules/page/__e2e__/schemaInitailizer.test.mjs +0 -22
- package/lib/modules/page/__e2e__/schemaSettings.test.mjs +0 -154
- package/lib/modules/page/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/plugin-manager/__e2e__/pluginManager.test.mjs +0 -132
- package/lib/modules/plugin-manager/__e2e__/templatesOfBug.mjs +0 -1
- package/lib/modules/user-center/__e2e__/settings.test.mjs +0 -18
- package/lib/modules/variable/DeclareVariable.mjs +0 -27
- package/lib/modules/variable/useVariable.mjs +0 -27
- package/lib/powered-by/index.mjs +0 -57
- package/lib/record-provider/index.mjs +0 -77
- package/lib/route-switch/RouteSchemaComponent.mjs +0 -27
- package/lib/route-switch/index.mjs +0 -5
- package/lib/schema-component/antd/AntdSchemaComponentProvider.mjs +0 -74
- package/lib/schema-component/antd/__builtins__/hooks/index.mjs +0 -9
- package/lib/schema-component/antd/__builtins__/hooks/useConfig.mjs +0 -14
- package/lib/schema-component/antd/__builtins__/hooks/usePrefixCls.mjs +0 -22
- package/lib/schema-component/antd/__builtins__/hooks/useToken.mjs +0 -13
- package/lib/schema-component/antd/__builtins__/index.mjs +0 -11
- package/lib/schema-component/antd/__builtins__/loading.mjs +0 -21
- package/lib/schema-component/antd/__builtins__/portal.mjs +0 -76
- package/lib/schema-component/antd/__builtins__/render.mjs +0 -65
- package/lib/schema-component/antd/__builtins__/style.mjs +0 -79
- package/lib/schema-component/antd/action/Action.Area.mjs +0 -130
- package/lib/schema-component/antd/action/Action.Area.style.mjs +0 -48
- package/lib/schema-component/antd/action/Action.Container.mjs +0 -75
- package/lib/schema-component/antd/action/Action.Designer.mjs +0 -1053
- package/lib/schema-component/antd/action/Action.Drawer.mjs +0 -179
- package/lib/schema-component/antd/action/Action.Drawer.style.mjs +0 -52
- package/lib/schema-component/antd/action/Action.Link.mjs +0 -37
- package/lib/schema-component/antd/action/Action.Modal.mjs +0 -214
- package/lib/schema-component/antd/action/Action.Page.mjs +0 -112
- package/lib/schema-component/antd/action/Action.Popover.mjs +0 -1
- package/lib/schema-component/antd/action/Action.Sheet.mjs +0 -115
- package/lib/schema-component/antd/action/Action.mjs +0 -349
- package/lib/schema-component/antd/action/Action.style.mjs +0 -53
- package/lib/schema-component/antd/action/ActionBar.mjs +0 -172
- package/lib/schema-component/antd/action/__tests__/action.test.mjs +0 -161
- package/lib/schema-component/antd/action/context.mjs +0 -29
- package/lib/schema-component/antd/action/demos/demo1.mjs +0 -87
- package/lib/schema-component/antd/action/demos/demo2.mjs +0 -90
- package/lib/schema-component/antd/action/demos/demo3.mjs +0 -148
- package/lib/schema-component/antd/action/demos/demo4.mjs +0 -75
- package/lib/schema-component/antd/action/demos/demo5.mjs +0 -237
- package/lib/schema-component/antd/action/demos/demo6.mjs +0 -114
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfAction.mjs +0 -62
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfDrawer.mjs +0 -43
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfModal.mjs +0 -43
- package/lib/schema-component/antd/action/hooks/useGetAriaLabelOfPopover.mjs +0 -43
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForDrawer.mjs +0 -42
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForModal.mjs +0 -44
- package/lib/schema-component/antd/action/hooks/useSetAriaLabelForPopover.mjs +0 -33
- package/lib/schema-component/antd/action/hooks.mjs +0 -86
- package/lib/schema-component/antd/action/index.mjs +0 -23
- package/lib/schema-component/antd/action/types.mjs +0 -4
- package/lib/schema-component/antd/action/utils.mjs +0 -229
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelect.mjs +0 -268
- package/lib/schema-component/antd/appends-tree-select/AppendsTreeSelectV2.mjs +0 -267
- package/lib/schema-component/antd/appends-tree-select/index.mjs +0 -7
- package/lib/schema-component/antd/association-cascader/AssociationCascader.mjs +0 -173
- package/lib/schema-component/antd/association-cascader/index.mjs +0 -5
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.mjs +0 -166
- package/lib/schema-component/antd/association-field/AssociationSelect.mjs +0 -229
- package/lib/schema-component/antd/association-field/Editable.mjs +0 -165
- package/lib/schema-component/antd/association-field/FileManager.mjs +0 -261
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.mjs +0 -467
- package/lib/schema-component/antd/association-field/InternalCascader.mjs +0 -443
- package/lib/schema-component/antd/association-field/InternalDrawerSubTable.mjs +0 -138
- package/lib/schema-component/antd/association-field/InternalNester.mjs +0 -117
- package/lib/schema-component/antd/association-field/InternalPicker.mjs +0 -276
- package/lib/schema-component/antd/association-field/InternalPopoverNester.mjs +0 -176
- package/lib/schema-component/antd/association-field/InternalSubTable.mjs +0 -133
- package/lib/schema-component/antd/association-field/InternalTag.mjs +0 -180
- package/lib/schema-component/antd/association-field/InternalViewer.mjs +0 -197
- package/lib/schema-component/antd/association-field/Nester.mjs +0 -330
- package/lib/schema-component/antd/association-field/ReadPretty.mjs +0 -82
- package/lib/schema-component/antd/association-field/SubTable.mjs +0 -351
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +0 -384
- package/lib/schema-component/antd/association-field/SubTabs/hook.mjs +0 -87
- package/lib/schema-component/antd/association-field/SubTabs/index.mjs +0 -5
- package/lib/schema-component/antd/association-field/SubTabs/styles.mjs +0 -33
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.mjs +0 -84
- package/lib/schema-component/antd/association-field/context.mjs +0 -10
- package/lib/schema-component/antd/association-field/hooks.mjs +0 -221
- package/lib/schema-component/antd/association-field/index.mjs +0 -42
- package/lib/schema-component/antd/association-field/schema.mjs +0 -135
- package/lib/schema-component/antd/association-field/util.mjs +0 -133
- package/lib/schema-component/antd/association-filter/ActionBarAssociationFilterAction.mjs +0 -88
- package/lib/schema-component/antd/association-filter/AssociationFilter.BlockDesigner.mjs +0 -67
- package/lib/schema-component/antd/association-filter/AssociationFilter.Initializer.mjs +0 -67
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.Designer.mjs +0 -168
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.mjs +0 -183
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.style.mjs +0 -107
- package/lib/schema-component/antd/association-filter/AssociationFilter.mjs +0 -128
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDelete.mjs +0 -55
- package/lib/schema-component/antd/association-filter/AssociationFilterDesignerDisplayField.mjs +0 -43
- package/lib/schema-component/antd/association-filter/utilts.mjs +0 -7
- package/lib/schema-component/antd/association-select/AssociationSelect.mjs +0 -1010
- package/lib/schema-component/antd/association-select/ReadPretty.mjs +0 -38
- package/lib/schema-component/antd/association-select/__tests__/association-select.test.mjs +0 -33
- package/lib/schema-component/antd/association-select/demos/demo1.mjs +0 -75
- package/lib/schema-component/antd/association-select/index.mjs +0 -5
- package/lib/schema-component/antd/association-select/useServiceOptions.mjs +0 -114
- package/lib/schema-component/antd/auto-complete/AutoComplete.mjs +0 -92
- package/lib/schema-component/antd/auto-complete/index.mjs +0 -5
- package/lib/schema-component/antd/block-item/BlockItem.mjs +0 -93
- package/lib/schema-component/antd/block-item/BlockToolbar.mjs +0 -114
- package/lib/schema-component/antd/block-item/__tests__/block-item.test.mjs +0 -29
- package/lib/schema-component/antd/block-item/demos/demo1.mjs +0 -75
- package/lib/schema-component/antd/block-item/hooks/useGetAriaLabelOfBlockItem.mjs +0 -63
- package/lib/schema-component/antd/block-item/index.mjs +0 -5
- package/lib/schema-component/antd/block-item/useBlockToolbar.mjs +0 -107
- package/lib/schema-component/antd/card-item/CardItem.mjs +0 -49
- package/lib/schema-component/antd/card-item/__tests__/card-item.test.mjs +0 -28
- package/lib/schema-component/antd/card-item/demos/demo1.mjs +0 -45
- package/lib/schema-component/antd/card-item/index.mjs +0 -5
- package/lib/schema-component/antd/card-item/style.mjs +0 -33
- package/lib/schema-component/antd/cascader/Cascader.mjs +0 -123
- package/lib/schema-component/antd/cascader/ReadPretty.mjs +0 -50
- package/lib/schema-component/antd/cascader/__tests__/cascader.test.mjs +0 -56
- package/lib/schema-component/antd/cascader/defaultFieldNames.mjs +0 -9
- package/lib/schema-component/antd/cascader/demos/demo1.mjs +0 -100
- package/lib/schema-component/antd/cascader/demos/demo2.mjs +0 -140
- package/lib/schema-component/antd/cascader/index.mjs +0 -5
- package/lib/schema-component/antd/checkbox/Checkbox.mjs +0 -120
- package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +0 -60
- package/lib/schema-component/antd/checkbox/demos/checkbox.group.mjs +0 -73
- package/lib/schema-component/antd/checkbox/demos/checkbox.mjs +0 -59
- package/lib/schema-component/antd/checkbox/index.mjs +0 -5
- package/lib/schema-component/antd/collection-select/CollectionSelect.mjs +0 -194
- package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +0 -33
- package/lib/schema-component/antd/collection-select/demos/demo1.mjs +0 -54
- package/lib/schema-component/antd/collection-select/index.mjs +0 -5
- package/lib/schema-component/antd/color-picker/ColorPicker.mjs +0 -114
- package/lib/schema-component/antd/color-picker/ReadPretty.mjs +0 -36
- package/lib/schema-component/antd/color-picker/demos/demo1.mjs +0 -68
- package/lib/schema-component/antd/color-picker/index.mjs +0 -5
- package/lib/schema-component/antd/color-picker/util.mjs +0 -196
- package/lib/schema-component/antd/color-select/ColorSelect.mjs +0 -73
- package/lib/schema-component/antd/color-select/__tests__/color-select.test.mjs +0 -32
- package/lib/schema-component/antd/color-select/demos/demo1.mjs +0 -59
- package/lib/schema-component/antd/color-select/index.mjs +0 -5
- package/lib/schema-component/antd/cron/Cron.mjs +0 -100
- package/lib/schema-component/antd/cron/CronSet.mjs +0 -147
- package/lib/schema-component/antd/cron/__tests__/cron-set.test.mjs +0 -50
- package/lib/schema-component/antd/cron/demos/demo1.mjs +0 -50
- package/lib/schema-component/antd/cron/demos/demo2.mjs +0 -69
- package/lib/schema-component/antd/cron/index.mjs +0 -7
- package/lib/schema-component/antd/custom-cascader/CustomCascader.mjs +0 -63
- package/lib/schema-component/antd/custom-cascader/ReadPretty.mjs +0 -50
- package/lib/schema-component/antd/custom-cascader/defaultFieldNames.mjs +0 -9
- package/lib/schema-component/antd/custom-cascader/index.mjs +0 -5
- package/lib/schema-component/antd/date-picker/DatePicker.mjs +0 -176
- package/lib/schema-component/antd/date-picker/ReadPretty.mjs +0 -66
- package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +0 -250
- package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +0 -119
- package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +0 -212
- package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +0 -71
- package/lib/schema-component/antd/date-picker/__tests__/util.test.mjs +0 -182
- package/lib/schema-component/antd/date-picker/demos/demo1.mjs +0 -76
- package/lib/schema-component/antd/date-picker/demos/demo10.mjs +0 -80
- package/lib/schema-component/antd/date-picker/demos/demo11.mjs +0 -84
- package/lib/schema-component/antd/date-picker/demos/demo2.mjs +0 -79
- package/lib/schema-component/antd/date-picker/demos/demo3.mjs +0 -77
- package/lib/schema-component/antd/date-picker/demos/demo4.mjs +0 -94
- package/lib/schema-component/antd/date-picker/demos/demo5.mjs +0 -93
- package/lib/schema-component/antd/date-picker/demos/demo6.mjs +0 -93
- package/lib/schema-component/antd/date-picker/demos/demo7.mjs +0 -80
- package/lib/schema-component/antd/date-picker/demos/demo8.mjs +0 -80
- package/lib/schema-component/antd/date-picker/demos/demo9.mjs +0 -80
- package/lib/schema-component/antd/date-picker/index.mjs +0 -5
- package/lib/schema-component/antd/date-picker/util.mjs +0 -217
- package/lib/schema-component/antd/details/Details.mjs +0 -44
- package/lib/schema-component/antd/details/__tests__/details.test.mjs +0 -25
- package/lib/schema-component/antd/details/demos/demo1.mjs +0 -59
- package/lib/schema-component/antd/details/index.mjs +0 -5
- package/lib/schema-component/antd/error-fallback/ErrorFallback.mjs +0 -77
- package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +0 -33
- package/lib/schema-component/antd/error-fallback/demos/demo1.mjs +0 -30
- package/lib/schema-component/antd/error-fallback/index.mjs +0 -5
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.mjs +0 -134
- package/lib/schema-component/antd/expand-action/Expand.Action.mjs +0 -103
- package/lib/schema-component/antd/expand-action/index.mjs +0 -15
- package/lib/schema-component/antd/filter/DynamicComponent.mjs +0 -81
- package/lib/schema-component/antd/filter/Filter.Action.Designer.mjs +0 -156
- package/lib/schema-component/antd/filter/Filter.mjs +0 -95
- package/lib/schema-component/antd/filter/FilterAction.mjs +0 -218
- package/lib/schema-component/antd/filter/FilterGroup.mjs +0 -166
- package/lib/schema-component/antd/filter/FilterItem.mjs +0 -120
- package/lib/schema-component/antd/filter/FilterItems.mjs +0 -47
- package/lib/schema-component/antd/filter/SaveDefaultValue.mjs +0 -61
- package/lib/schema-component/antd/filter/__tests__/filter.test.mjs +0 -152
- package/lib/schema-component/antd/filter/context.mjs +0 -14
- package/lib/schema-component/antd/filter/demos/demo2.mjs +0 -143
- package/lib/schema-component/antd/filter/demos/demo3.mjs +0 -213
- package/lib/schema-component/antd/filter/demos/demo4.mjs +0 -203
- package/lib/schema-component/antd/filter/demos/demo5.mjs +0 -145
- package/lib/schema-component/antd/filter/demos/demo6.mjs +0 -140
- package/lib/schema-component/antd/filter/index.mjs +0 -9
- package/lib/schema-component/antd/filter/useFilterActionProps.mjs +0 -298
- package/lib/schema-component/antd/filter/useOperators.mjs +0 -38
- package/lib/schema-component/antd/filter/useValues.mjs +0 -155
- package/lib/schema-component/antd/filter/utils.mjs +0 -20
- package/lib/schema-component/antd/form/Form.Designer.mjs +0 -27
- package/lib/schema-component/antd/form/Form.Settings.mjs +0 -48
- package/lib/schema-component/antd/form/Form.mjs +0 -187
- package/lib/schema-component/antd/form/__tests__/form.test.mjs +0 -155
- package/lib/schema-component/antd/form/demos/apiClient.mjs +0 -26
- package/lib/schema-component/antd/form/demos/demo1.mjs +0 -93
- package/lib/schema-component/antd/form/demos/demo2.mjs +0 -95
- package/lib/schema-component/antd/form/demos/demo3.mjs +0 -94
- package/lib/schema-component/antd/form/demos/demo4.mjs +0 -98
- package/lib/schema-component/antd/form/demos/demo5.mjs +0 -142
- package/lib/schema-component/antd/form/demos/demo6.mjs +0 -95
- package/lib/schema-component/antd/form/demos/demo7.mjs +0 -103
- package/lib/schema-component/antd/form/demos/demo8.mjs +0 -110
- package/lib/schema-component/antd/form/index.mjs +0 -7
- package/lib/schema-component/antd/form-dialog/index.mjs +0 -199
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +0 -21
- package/lib/schema-component/antd/form-item/FormItem.FilterFormSettings.mjs +0 -183
- package/lib/schema-component/antd/form-item/FormItem.Settings.mjs +0 -1326
- package/lib/schema-component/antd/form-item/FormItem.mjs +0 -200
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.mjs +0 -638
- package/lib/schema-component/antd/form-item/__tests__/form-item.test.mjs +0 -27
- package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +0 -33
- package/lib/schema-component/antd/form-item/__tests__/utils.test.mjs +0 -71
- package/lib/schema-component/antd/form-item/demos/demo1.mjs +0 -56
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +0 -135
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +0 -164
- package/lib/schema-component/antd/form-item/hooks/useSpecialCase.mjs +0 -182
- package/lib/schema-component/antd/form-item/index.mjs +0 -11
- package/lib/schema-component/antd/form-item/utils.mjs +0 -22
- package/lib/schema-component/antd/form-tab/index.mjs +0 -168
- package/lib/schema-component/antd/form-v2/Form.Designer.mjs +0 -51
- package/lib/schema-component/antd/form-v2/Form.FilterDesigner.mjs +0 -36
- package/lib/schema-component/antd/form-v2/Form.Settings.mjs +0 -364
- package/lib/schema-component/antd/form-v2/Form.mjs +0 -432
- package/lib/schema-component/antd/form-v2/FormField.mjs +0 -51
- package/lib/schema-component/antd/form-v2/Templates.mjs +0 -257
- package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +0 -69
- package/lib/schema-component/antd/form-v2/demos/collections.mjs +0 -1568
- package/lib/schema-component/antd/form-v2/demos/demo1.mjs +0 -139
- package/lib/schema-component/antd/form-v2/demos/demo2.mjs +0 -162
- package/lib/schema-component/antd/form-v2/demos/demo3.mjs +0 -139
- package/lib/schema-component/antd/form-v2/index.mjs +0 -32
- package/lib/schema-component/antd/form-v2/utils.mjs +0 -182
- package/lib/schema-component/antd/grid/Block.mjs +0 -39
- package/lib/schema-component/antd/grid/Grid.mjs +0 -562
- package/lib/schema-component/antd/grid/Grid.style.mjs +0 -51
- package/lib/schema-component/antd/grid/__tests__/grid.test.mjs +0 -47
- package/lib/schema-component/antd/grid/demos/demo1.mjs +0 -211
- package/lib/schema-component/antd/grid/demos/demo2.mjs +0 -119
- package/lib/schema-component/antd/grid/demos/demo3.mjs +0 -101
- package/lib/schema-component/antd/grid/index.mjs +0 -7
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.mjs +0 -108
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.style.mjs +0 -30
- package/lib/schema-component/antd/grid-card/GridCard.Designer.mjs +0 -317
- package/lib/schema-component/antd/grid-card/GridCard.Item.mjs +0 -120
- package/lib/schema-component/antd/grid-card/GridCard.mjs +0 -215
- package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +0 -24
- package/lib/schema-component/antd/grid-card/demos/demo1.mjs +0 -17
- package/lib/schema-component/antd/grid-card/hooks.mjs +0 -37
- package/lib/schema-component/antd/grid-card/index.mjs +0 -5
- package/lib/schema-component/antd/grid-card/options.mjs +0 -38
- package/lib/schema-component/antd/icon-picker/IconFilterInput.mjs +0 -32
- package/lib/schema-component/antd/icon-picker/IconList.mjs +0 -71
- package/lib/schema-component/antd/icon-picker/IconPicker.mjs +0 -116
- package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +0 -43
- package/lib/schema-component/antd/icon-picker/demos/icon-picker.mjs +0 -57
- package/lib/schema-component/antd/icon-picker/index.mjs +0 -5
- package/lib/schema-component/antd/index.css +0 -30
- package/lib/schema-component/antd/index.mjs +0 -137
- package/lib/schema-component/antd/input/EllipsisWithTooltip.mjs +0 -82
- package/lib/schema-component/antd/input/Input.mjs +0 -56
- package/lib/schema-component/antd/input/Json.mjs +0 -83
- package/lib/schema-component/antd/input/ReadPretty.mjs +0 -186
- package/lib/schema-component/antd/input/__tests__/Input.test.mjs +0 -141
- package/lib/schema-component/antd/input/demos/input.mjs +0 -57
- package/lib/schema-component/antd/input/demos/json.mjs +0 -63
- package/lib/schema-component/antd/input/demos/textarea.mjs +0 -85
- package/lib/schema-component/antd/input/demos/url.mjs +0 -59
- package/lib/schema-component/antd/input/index.mjs +0 -13
- package/lib/schema-component/antd/input/shared.mjs +0 -11
- package/lib/schema-component/antd/input-number/InputNumber.mjs +0 -37
- package/lib/schema-component/antd/input-number/ReadPretty.mjs +0 -161
- package/lib/schema-component/antd/input-number/__tests__/input-number.test.mjs +0 -152
- package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +0 -65
- package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +0 -67
- package/lib/schema-component/antd/input-number/demos/inputNumber.mjs +0 -57
- package/lib/schema-component/antd/input-number/index.mjs +0 -5
- package/lib/schema-component/antd/list/List.Decorator.mjs +0 -135
- package/lib/schema-component/antd/list/List.Designer.mjs +0 -260
- package/lib/schema-component/antd/list/List.Item.mjs +0 -85
- package/lib/schema-component/antd/list/List.mjs +0 -129
- package/lib/schema-component/antd/list/List.style.mjs +0 -62
- package/lib/schema-component/antd/list/__tests__/list.test.mjs +0 -24
- package/lib/schema-component/antd/list/demos/demo1.mjs +0 -17
- package/lib/schema-component/antd/list/hooks.mjs +0 -16
- package/lib/schema-component/antd/list/index.mjs +0 -5
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.mjs +0 -45
- package/lib/schema-component/antd/markdown/Markdown.Void.mjs +0 -148
- package/lib/schema-component/antd/markdown/Markdown.mjs +0 -83
- package/lib/schema-component/antd/markdown/__tests__/markdown.test.mjs +0 -48
- package/lib/schema-component/antd/markdown/demos/demo1.mjs +0 -59
- package/lib/schema-component/antd/markdown/demos/demo2.mjs +0 -78
- package/lib/schema-component/antd/markdown/index.mjs +0 -5
- package/lib/schema-component/antd/markdown/markdown-it-plugins/mermaidPlugin.mjs +0 -73
- package/lib/schema-component/antd/markdown/md.mjs +0 -25
- package/lib/schema-component/antd/markdown/style.mjs +0 -233
- package/lib/schema-component/antd/markdown/util.mjs +0 -49
- package/lib/schema-component/antd/menu/Menu.Designer.mjs +0 -478
- package/lib/schema-component/antd/menu/Menu.mjs +0 -686
- package/lib/schema-component/antd/menu/Menu.styles.mjs +0 -85
- package/lib/schema-component/antd/menu/MenuItemInitializers/index.mjs +0 -17
- package/lib/schema-component/antd/menu/__tests__/menu.test.mjs +0 -65
- package/lib/schema-component/antd/menu/demos/demo1.mjs +0 -109
- package/lib/schema-component/antd/menu/demos/demo2.mjs +0 -112
- package/lib/schema-component/antd/menu/demos/demo3.mjs +0 -152
- package/lib/schema-component/antd/menu/index.mjs +0 -9
- package/lib/schema-component/antd/menu/locale.mjs +0 -11
- package/lib/schema-component/antd/menu/util.mjs +0 -56
- package/lib/schema-component/antd/nanoIDInput/NanoIDInput.mjs +0 -71
- package/lib/schema-component/antd/nanoIDInput/index.mjs +0 -5
- package/lib/schema-component/antd/page/FixedBlock.mjs +0 -118
- package/lib/schema-component/antd/page/FixedBlockDesignerItem.mjs +0 -72
- package/lib/schema-component/antd/page/Page.Settings.mjs +0 -167
- package/lib/schema-component/antd/page/Page.mjs +0 -317
- package/lib/schema-component/antd/page/PageTab.Settings.mjs +0 -108
- package/lib/schema-component/antd/page/PageTabDesigner.mjs +0 -98
- package/lib/schema-component/antd/page/__tests__/page.test.mjs +0 -33
- package/lib/schema-component/antd/page/demos/demo1.mjs +0 -52
- package/lib/schema-component/antd/page/hooks/useIsBlockInPage.mjs +0 -25
- package/lib/schema-component/antd/page/index.mjs +0 -13
- package/lib/schema-component/antd/page/style.mjs +0 -149
- package/lib/schema-component/antd/pagination/index.mjs +0 -48
- package/lib/schema-component/antd/password/Password.mjs +0 -102
- package/lib/schema-component/antd/password/PasswordStrength.mjs +0 -29
- package/lib/schema-component/antd/password/__tests__/password.test.mjs +0 -46
- package/lib/schema-component/antd/password/__tests__/utils.test.mjs +0 -27
- package/lib/schema-component/antd/password/demos/demo1.mjs +0 -59
- package/lib/schema-component/antd/password/demos/demo2.mjs +0 -62
- package/lib/schema-component/antd/password/index.mjs +0 -5
- package/lib/schema-component/antd/password/utils.mjs +0 -146
- package/lib/schema-component/antd/percent/Percent.mjs +0 -59
- package/lib/schema-component/antd/percent/__tests__/percent.test.mjs +0 -31
- package/lib/schema-component/antd/percent/demos/percent.mjs +0 -57
- package/lib/schema-component/antd/percent/index.mjs +0 -5
- package/lib/schema-component/antd/popover/Popover.mjs +0 -67
- package/lib/schema-component/antd/popover/index.mjs +0 -5
- package/lib/schema-component/antd/preview/Preview.mjs +0 -324
- package/lib/schema-component/antd/preview/__tests__/preview.test.mjs +0 -26
- package/lib/schema-component/antd/preview/demos/demo1.mjs +0 -103
- package/lib/schema-component/antd/preview/index.mjs +0 -5
- package/lib/schema-component/antd/quick-edit/QuickEdit.mjs +0 -148
- package/lib/schema-component/antd/quick-edit/index.mjs +0 -5
- package/lib/schema-component/antd/radio/Radio.mjs +0 -62
- package/lib/schema-component/antd/radio/__tests__/radio.test.mjs +0 -64
- package/lib/schema-component/antd/radio/demos/demo1.mjs +0 -60
- package/lib/schema-component/antd/radio/demos/demo2.mjs +0 -72
- package/lib/schema-component/antd/radio/demos/demo3.mjs +0 -73
- package/lib/schema-component/antd/radio/index.mjs +0 -5
- package/lib/schema-component/antd/record-picker/InputRecordPicker.mjs +0 -308
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +0 -177
- package/lib/schema-component/antd/record-picker/RecordPicker.mjs +0 -17
- package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +0 -44
- package/lib/schema-component/antd/record-picker/demos/demo1.mjs +0 -198
- package/lib/schema-component/antd/record-picker/demos/mockData.mjs +0 -214
- package/lib/schema-component/antd/record-picker/index.mjs +0 -24
- package/lib/schema-component/antd/record-picker/useFieldNames.mjs +0 -18
- package/lib/schema-component/antd/record-picker/util.mjs +0 -59
- package/lib/schema-component/antd/remote-select/ReadPretty.mjs +0 -71
- package/lib/schema-component/antd/remote-select/RemoteSelect.mjs +0 -291
- package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +0 -33
- package/lib/schema-component/antd/remote-select/demos/demo1.mjs +0 -75
- package/lib/schema-component/antd/remote-select/index.mjs +0 -5
- package/lib/schema-component/antd/remote-select/shared.mjs +0 -11
- package/lib/schema-component/antd/rich-text/RichText.mjs +0 -85
- package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +0 -28
- package/lib/schema-component/antd/rich-text/demos/demo1.mjs +0 -61
- package/lib/schema-component/antd/rich-text/index.mjs +0 -5
- package/lib/schema-component/antd/rich-text/style.mjs +0 -818
- package/lib/schema-component/antd/scroll-area/ScrollArea.mjs +0 -63
- package/lib/schema-component/antd/scroll-area/index.mjs +0 -5
- package/lib/schema-component/antd/select/FormulaSelect.mjs +0 -263
- package/lib/schema-component/antd/select/ReadPretty.mjs +0 -61
- package/lib/schema-component/antd/select/Select.mjs +0 -214
- package/lib/schema-component/antd/select/__tests__/select.test.mjs +0 -63
- package/lib/schema-component/antd/select/__tests__/utils.test.mjs +0 -135
- package/lib/schema-component/antd/select/demos/demo1.mjs +0 -91
- package/lib/schema-component/antd/select/demos/demo2.mjs +0 -95
- package/lib/schema-component/antd/select/demos/demo3.mjs +0 -105
- package/lib/schema-component/antd/select/index.mjs +0 -7
- package/lib/schema-component/antd/select/utils.mjs +0 -49
- package/lib/schema-component/antd/space/index.mjs +0 -36
- package/lib/schema-component/antd/table/Table.Array.Designer.mjs +0 -26
- package/lib/schema-component/antd/table/Table.Array.mjs +0 -358
- package/lib/schema-component/antd/table/Table.Column.ActionBar.mjs +0 -62
- package/lib/schema-component/antd/table/Table.Column.Decorator.mjs +0 -77
- package/lib/schema-component/antd/table/Table.Column.Designer.mjs +0 -173
- package/lib/schema-component/antd/table/Table.Column.mjs +0 -22
- package/lib/schema-component/antd/table/Table.Designer.mjs +0 -32
- package/lib/schema-component/antd/table/Table.RowActionDesigner.mjs +0 -60
- package/lib/schema-component/antd/table/Table.RowSelection.mjs +0 -47
- package/lib/schema-component/antd/table/Table.Void.Designer.mjs +0 -278
- package/lib/schema-component/antd/table/Table.Void.mjs +0 -155
- package/lib/schema-component/antd/table/__tests__/table.test.mjs +0 -45
- package/lib/schema-component/antd/table/demos/demo1.mjs +0 -77
- package/lib/schema-component/antd/table/demos/demo2.mjs +0 -77
- package/lib/schema-component/antd/table/demos/demo3.mjs +0 -77
- package/lib/schema-component/antd/table/demos/demo4.mjs +0 -242
- package/lib/schema-component/antd/table/index.mjs +0 -60
- package/lib/schema-component/antd/table-v2/Table.ActionColumnDesigner.mjs +0 -60
- package/lib/schema-component/antd/table-v2/Table.Column.ActionBar.mjs +0 -72
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.mjs +0 -91
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.mjs +0 -514
- package/lib/schema-component/antd/table-v2/Table.Column.mjs +0 -23
- package/lib/schema-component/antd/table-v2/Table.Designer.mjs +0 -32
- package/lib/schema-component/antd/table-v2/Table.Index.mjs +0 -22
- package/lib/schema-component/antd/table-v2/Table.mjs +0 -574
- package/lib/schema-component/antd/table-v2/Table.styles.mjs +0 -146
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.mjs +0 -392
- package/lib/schema-component/antd/table-v2/TableField.mjs +0 -77
- package/lib/schema-component/antd/table-v2/TableSelector.mjs +0 -9
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.mjs +0 -347
- package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +0 -31
- package/lib/schema-component/antd/table-v2/components/ColumnFieldProvider.mjs +0 -59
- package/lib/schema-component/antd/table-v2/demos/collections.mjs +0 -1563
- package/lib/schema-component/antd/table-v2/demos/demo1.mjs +0 -251
- package/lib/schema-component/antd/table-v2/demos/demo2.mjs +0 -145
- package/lib/schema-component/antd/table-v2/index.mjs +0 -52
- package/lib/schema-component/antd/table-v2/utils.mjs +0 -20
- package/lib/schema-component/antd/tabs/Tabs.Designer.mjs +0 -159
- package/lib/schema-component/antd/tabs/Tabs.mjs +0 -141
- package/lib/schema-component/antd/tabs/__tests__/tabs.test.mjs +0 -29
- package/lib/schema-component/antd/tabs/context.mjs +0 -23
- package/lib/schema-component/antd/tabs/demos/demo1.mjs +0 -86
- package/lib/schema-component/antd/tabs/index.mjs +0 -7
- package/lib/schema-component/antd/time-picker/ReadPretty.mjs +0 -42
- package/lib/schema-component/antd/time-picker/TimePicker.mjs +0 -40
- package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +0 -68
- package/lib/schema-component/antd/time-picker/demos/demo1.mjs +0 -59
- package/lib/schema-component/antd/time-picker/demos/demo2.mjs +0 -59
- package/lib/schema-component/antd/time-picker/index.mjs +0 -5
- package/lib/schema-component/antd/tree/Tree.mjs +0 -115
- package/lib/schema-component/antd/tree/index.mjs +0 -10
- package/lib/schema-component/antd/tree-select/ReadPretty.mjs +0 -91
- package/lib/schema-component/antd/tree-select/TreeSelect.mjs +0 -37
- package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +0 -29
- package/lib/schema-component/antd/tree-select/demos/demo1.mjs +0 -103
- package/lib/schema-component/antd/tree-select/index.mjs +0 -5
- package/lib/schema-component/antd/unixTimestamp/UnixTimestamp.mjs +0 -69
- package/lib/schema-component/antd/unixTimestamp/index.mjs +0 -5
- package/lib/schema-component/antd/upload/ReadPretty.mjs +0 -249
- package/lib/schema-component/antd/upload/Upload.mjs +0 -394
- package/lib/schema-component/antd/upload/__tests__/upload.test.mjs +0 -31
- package/lib/schema-component/antd/upload/demos/apiClient.mjs +0 -51
- package/lib/schema-component/antd/upload/demos/demo1.mjs +0 -71
- package/lib/schema-component/antd/upload/demos/demo2.mjs +0 -137
- package/lib/schema-component/antd/upload/index.mjs +0 -5
- package/lib/schema-component/antd/upload/placeholder.mjs +0 -66
- package/lib/schema-component/antd/upload/shared.mjs +0 -254
- package/lib/schema-component/antd/upload/style.mjs +0 -81
- package/lib/schema-component/antd/upload/type.d.mjs +0 -7
- package/lib/schema-component/antd/variable/CodeMirror.mjs +0 -124
- package/lib/schema-component/antd/variable/Input.mjs +0 -384
- package/lib/schema-component/antd/variable/JSONInput.mjs +0 -57
- package/lib/schema-component/antd/variable/RawTextArea.mjs +0 -125
- package/lib/schema-component/antd/variable/TextArea.mjs +0 -504
- package/lib/schema-component/antd/variable/Variable.mjs +0 -57
- package/lib/schema-component/antd/variable/VariableSelect.mjs +0 -101
- package/lib/schema-component/antd/variable/VariableSelect.style.mjs +0 -36
- package/lib/schema-component/antd/variable/XButton.mjs +0 -35
- package/lib/schema-component/antd/variable/__tests__/variable.test.mjs +0 -66
- package/lib/schema-component/antd/variable/demos/demo1.mjs +0 -63
- package/lib/schema-component/antd/variable/demos/demo2.mjs +0 -63
- package/lib/schema-component/antd/variable/demos/demo3.mjs +0 -63
- package/lib/schema-component/antd/variable/index.mjs +0 -5
- package/lib/schema-component/antd/variable/style.mjs +0 -186
- package/lib/schema-component/common/dnd-context/index.mjs +0 -124
- package/lib/schema-component/common/index.mjs +0 -7
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.mjs +0 -153
- package/lib/schema-component/common/infinite-scroll/style.mjs +0 -36
- package/lib/schema-component/common/sortable-item/SortableItem.mjs +0 -166
- package/lib/schema-component/common/sortable-item/index.mjs +0 -5
- package/lib/schema-component/common/utils/logic.mjs +0 -578
- package/lib/schema-component/common/utils/uitls.mjs +0 -155
- package/lib/schema-component/context.mjs +0 -10
- package/lib/schema-component/core/DesignableSwitch.mjs +0 -67
- package/lib/schema-component/core/FormProvider.mjs +0 -70
- package/lib/schema-component/core/RemoteSchemaComponent.mjs +0 -72
- package/lib/schema-component/core/SchemaComponent.mjs +0 -86
- package/lib/schema-component/core/SchemaComponentOptions.mjs +0 -62
- package/lib/schema-component/core/SchemaComponentProvider.mjs +0 -116
- package/lib/schema-component/core/index.mjs +0 -32
- package/lib/schema-component/demos/demo1.mjs +0 -111
- package/lib/schema-component/demos/demo2.mjs +0 -40
- package/lib/schema-component/demos/demo3.mjs +0 -41
- package/lib/schema-component/demos/demo4.mjs +0 -41
- package/lib/schema-component/hooks/__tests__/designable.test.mjs +0 -564
- package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +0 -98
- package/lib/schema-component/hooks/index.mjs +0 -27
- package/lib/schema-component/hooks/useAttach.mjs +0 -24
- package/lib/schema-component/hooks/useCompile.mjs +0 -59
- package/lib/schema-component/hooks/useComponent.mjs +0 -26
- package/lib/schema-component/hooks/useDesignable.mjs +0 -858
- package/lib/schema-component/hooks/useDesigner.mjs +0 -36
- package/lib/schema-component/hooks/useFieldComponentOptions.mjs +0 -106
- package/lib/schema-component/hooks/useFieldModeOptions.mjs +0 -304
- package/lib/schema-component/hooks/useFieldProps.mjs +0 -27
- package/lib/schema-component/hooks/useFieldTitle.mjs +0 -37
- package/lib/schema-component/hooks/useProps.mjs +0 -22
- package/lib/schema-component/hooks/useSchemaComponentContext.mjs +0 -15
- package/lib/schema-component/hooks/useTableSize.mjs +0 -40
- package/lib/schema-component/index.mjs +0 -15
- package/lib/schema-component/types.mjs +0 -7
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.mjs +0 -71
- package/lib/schema-initializer/buttons/FormItemInitializers.mjs +0 -187
- package/lib/schema-initializer/buttons/RecordBlockInitializers.mjs +0 -460
- package/lib/schema-initializer/buttons/SubTableActionInitializers.mjs +0 -41
- package/lib/schema-initializer/buttons/TabPaneInitializers.mjs +0 -232
- package/lib/schema-initializer/buttons/index.mjs +0 -16
- package/lib/schema-initializer/components/CreateRecordAction.mjs +0 -414
- package/lib/schema-initializer/components/DeletedField.mjs +0 -25
- package/lib/schema-initializer/components/assigned-field/AssignedField.mjs +0 -177
- package/lib/schema-initializer/components/assigned-field/index.mjs +0 -5
- package/lib/schema-initializer/components/index.mjs +0 -7
- package/lib/schema-initializer/demos/basic.mjs +0 -81
- package/lib/schema-initializer/demos/build-type.mjs +0 -96
- package/lib/schema-initializer/demos/custom-button.mjs +0 -114
- package/lib/schema-initializer/demos/custom-items-component.mjs +0 -116
- package/lib/schema-initializer/demos/dynamic-visible-children.mjs +0 -94
- package/lib/schema-initializer/demos/insert-schema-action.mjs +0 -111
- package/lib/schema-initializer/demos/insert-schema-basic.mjs +0 -133
- package/lib/schema-initializer/demos/insert-schema-form-item.mjs +0 -153
- package/lib/schema-initializer/demos/nested-items.mjs +0 -170
- package/lib/schema-initializer/hooks/useGetAriaLabelOfSchemaInitializer.mjs +0 -36
- package/lib/schema-initializer/index.mjs +0 -329
- package/lib/schema-initializer/items/ActionInitializer.mjs +0 -29
- package/lib/schema-initializer/items/BlockInitializer.mjs +0 -43
- package/lib/schema-initializer/items/CreateFilterActionInitializer.mjs +0 -33
- package/lib/schema-initializer/items/CreateResetActionInitializer.mjs +0 -28
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.mjs +0 -540
- package/lib/schema-initializer/items/CustomizeActionInitializer.mjs +0 -27
- package/lib/schema-initializer/items/DataBlockInitializer.mjs +0 -393
- package/lib/schema-initializer/items/DeleteEventActionInitializer.mjs +0 -36
- package/lib/schema-initializer/items/FilterBlockInitializer.mjs +0 -9
- package/lib/schema-initializer/items/G2PlotInitializer.mjs +0 -28
- package/lib/schema-initializer/items/InitializerWithSwitch.mjs +0 -47
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.mjs +0 -86
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.mjs +0 -84
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.mjs +0 -119
- package/lib/schema-initializer/items/RecordAssociationGridCardBlockInitializer.mjs +0 -86
- package/lib/schema-initializer/items/RecordAssociationListBlockInitializer.mjs +0 -84
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.mjs +0 -118
- package/lib/schema-initializer/items/SelectActionInitializer.mjs +0 -76
- package/lib/schema-initializer/items/SubmitActionInitializer.mjs +0 -34
- package/lib/schema-initializer/items/TableActionColumnInitializer.mjs +0 -57
- package/lib/schema-initializer/items/index.mjs +0 -50
- package/lib/schema-initializer/style.mjs +0 -23
- package/lib/schema-initializer/utils.mjs +0 -1535
- package/lib/schema-items/GeneralSchemaItems.mjs +0 -181
- package/lib/schema-items/GeneralSettings.mjs +0 -226
- package/lib/schema-items/OpenModeSchemaItems.mjs +0 -215
- package/lib/schema-items/index.mjs +0 -7
- package/lib/schema-settings/DataTemplates/FormDataTemplates.mjs +0 -332
- package/lib/schema-settings/DataTemplates/TreeLabel.mjs +0 -42
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +0 -64
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +0 -305
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.style.mjs +0 -15
- package/lib/schema-settings/DataTemplates/components/Designer.mjs +0 -208
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.mjs +0 -348
- package/lib/schema-settings/DataTemplates/index.mjs +0 -5
- package/lib/schema-settings/DataTemplates/utils.mjs +0 -300
- package/lib/schema-settings/DateFormat/ExpiresRadio.mjs +0 -160
- package/lib/schema-settings/EditCustomDefaultValue.mjs +0 -137
- package/lib/schema-settings/EditFormulaTitleField.mjs +0 -127
- package/lib/schema-settings/EnableChildCollections/DynamicComponent.mjs +0 -91
- package/lib/schema-settings/EnableChildCollections/index.mjs +0 -129
- package/lib/schema-settings/GeneralSchemaDesigner.mjs +0 -328
- package/lib/schema-settings/LinkageRules/DynamicComponent.mjs +0 -79
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.mjs +0 -272
- package/lib/schema-settings/LinkageRules/LinkageRuleActionGroup.mjs +0 -116
- package/lib/schema-settings/LinkageRules/ValueDynamicComponent.mjs +0 -200
- package/lib/schema-settings/LinkageRules/Variables.mjs +0 -119
- package/lib/schema-settings/LinkageRules/action-hooks.mjs +0 -128
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.mjs +0 -56
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.mjs +0 -304
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.style.mjs +0 -15
- package/lib/schema-settings/LinkageRules/context.mjs +0 -14
- package/lib/schema-settings/LinkageRules/index.mjs +0 -247
- package/lib/schema-settings/LinkageRules/type.mjs +0 -18
- package/lib/schema-settings/LinkageRules/useValues.mjs +0 -84
- package/lib/schema-settings/SchemaSettingCollection.mjs +0 -73
- package/lib/schema-settings/SchemaSettingComponent.mjs +0 -62
- package/lib/schema-settings/SchemaSettings.mjs +0 -1517
- package/lib/schema-settings/SchemaSettingsDataScope.mjs +0 -152
- package/lib/schema-settings/SchemaSettingsDateFormat.mjs +0 -231
- package/lib/schema-settings/SchemaSettingsDefaultValue.mjs +0 -274
- package/lib/schema-settings/SchemaSettingsNumberFormat.mjs +0 -205
- package/lib/schema-settings/SchemaSettingsPlugin.mjs +0 -265
- package/lib/schema-settings/SchemaSettingsSortingRule.mjs +0 -155
- package/lib/schema-settings/VariableInput/VariableInput.mjs +0 -260
- package/lib/schema-settings/VariableInput/hooks/index.mjs +0 -9
- package/lib/schema-settings/VariableInput/hooks/useBaseVariable.mjs +0 -228
- package/lib/schema-settings/VariableInput/hooks/useBlockCollection.mjs +0 -16
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +0 -126
- package/lib/schema-settings/VariableInput/hooks/useDateVariable.mjs +0 -179
- package/lib/schema-settings/VariableInput/hooks/useFilterVariable.mjs +0 -77
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.mjs +0 -85
- package/lib/schema-settings/VariableInput/hooks/useIterationVariable.mjs +0 -94
- package/lib/schema-settings/VariableInput/hooks/useParentRecordVariable.mjs +0 -71
- package/lib/schema-settings/VariableInput/hooks/usePopupVariable.mjs +0 -37
- package/lib/schema-settings/VariableInput/hooks/useRecordVariable.mjs +0 -64
- package/lib/schema-settings/VariableInput/hooks/useRoleVariable.mjs +0 -64
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.mjs +0 -67
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.mjs +0 -140
- package/lib/schema-settings/VariableInput/index.mjs +0 -7
- package/lib/schema-settings/VariableInput/type.mjs +0 -4
- package/lib/schema-settings/VariableInput/utils/formatVariableScop.mjs +0 -16
- package/lib/schema-settings/demos/basic.mjs +0 -75
- package/lib/schema-settings/demos/built-type.mjs +0 -157
- package/lib/schema-settings/demos/custom-component.mjs +0 -58
- package/lib/schema-settings/demos/demo3.mjs +0 -120
- package/lib/schema-settings/demos/schema-basic.mjs +0 -84
- package/lib/schema-settings/filter-form/FormFilterScope.mjs +0 -147
- package/lib/schema-settings/filter-form/context.mjs +0 -14
- package/lib/schema-settings/hooks/useFilterFormCustomProps.mjs +0 -22
- package/lib/schema-settings/hooks/useGetAriaLabelOfDesigner.mjs +0 -39
- package/lib/schema-settings/hooks/useIsAllowToSetDefaultValue.mjs +0 -109
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.mjs +0 -27
- package/lib/schema-settings/hooks/useParseDataScopeFilter.mjs +0 -83
- package/lib/schema-settings/index.mjs +0 -39
- package/lib/schema-settings/isPatternDisabled.mjs +0 -8
- package/lib/schema-settings/styles.mjs +0 -92
- package/lib/schema-settings/types.mjs +0 -4
- package/lib/schema-templates/BlockTemplate.mjs +0 -63
- package/lib/schema-templates/BlockTemplateDetails.mjs +0 -126
- package/lib/schema-templates/BlockTemplatePage.mjs +0 -55
- package/lib/schema-templates/SchemaTemplateManagerProvider.mjs +0 -103
- package/lib/schema-templates/collections/uiSchemaTemplates.mjs +0 -22
- package/lib/schema-templates/index.mjs +0 -11
- package/lib/schema-templates/schemas/CollectionTitle.mjs +0 -52
- package/lib/schema-templates/schemas/uiSchemaTemplates.mjs +0 -249
- package/lib/schema-templates/useSchemaTemplateManager.mjs +0 -119
- package/lib/style/css-variable/CSSVariableProvider.mjs +0 -90
- package/lib/style/css-variable/index.mjs +0 -9
- package/lib/style/index.mjs +0 -23
- package/lib/style/theme/AntdAppProvider.mjs +0 -54
- package/lib/style/theme/defaultTheme.mjs +0 -24
- package/lib/style/theme/index.mjs +0 -96
- package/lib/style/theme/type.mjs +0 -4
- package/lib/style/useToken.mjs +0 -13
- package/lib/testUtils/index.mjs +0 -5
- package/lib/testUtils/mockAPIClient.mjs +0 -57
- package/lib/user/ChangePassword.mjs +0 -180
- package/lib/user/CurrentUser.mjs +0 -282
- package/lib/user/CurrentUserProvider.mjs +0 -89
- package/lib/user/CurrentUserSettingsMenuProvider.mjs +0 -88
- package/lib/user/EditProfile.mjs +0 -172
- package/lib/user/LanguageSettings.mjs +0 -70
- package/lib/user/SwitchRole.mjs +0 -66
- package/lib/user/VerificationCode.mjs +0 -115
- package/lib/user/__tests__/current-user-settings-menu-provider.test.mjs +0 -64
- package/lib/user/index.mjs +0 -9
- package/lib/variables/VariablesProvider.mjs +0 -319
- package/lib/variables/__tests__/useVariables.test.mjs +0 -473
- package/lib/variables/__tests__/utils/filterEmptyValues.test.mjs +0 -52
- package/lib/variables/__tests__/utils/getPath.test.mjs +0 -10
- package/lib/variables/__tests__/utils/getVariableName.test.mjs +0 -10
- package/lib/variables/__tests__/utils/isVariable.test.mjs +0 -28
- package/lib/variables/__tests__/utils/transformVariableValue.test.mjs +0 -142
- package/lib/variables/__tests__/utils/uniq.test.mjs +0 -83
- package/lib/variables/constants.mjs +0 -5
- package/lib/variables/hooks/useBuiltinVariables.mjs +0 -80
- package/lib/variables/hooks/useContextVariable.mjs +0 -38
- package/lib/variables/hooks/useLocalVariables.mjs +0 -102
- package/lib/variables/hooks/useVariables.mjs +0 -16
- package/lib/variables/index.mjs +0 -36
- package/lib/variables/types.mjs +0 -4
- package/lib/variables/utils/filterEmptyValues.mjs +0 -12
- package/lib/variables/utils/getAction.mjs +0 -14
- package/lib/variables/utils/getPath.mjs +0 -19
- package/lib/variables/utils/getVariableName.mjs +0 -25
- package/lib/variables/utils/hasRequested.mjs +0 -24
- package/lib/variables/utils/isVariable.mjs +0 -15
- package/lib/variables/utils/transformVariableValue.mjs +0 -55
- package/lib/variables/utils/uniq.mjs +0 -26
|
@@ -1,858 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__ from "../../api-client/index.mjs";
|
|
7
|
-
import * as __WEBPACK_EXTERNAL_MODULE__context_mjs__ from "../context.mjs";
|
|
8
|
-
|
|
9
|
-
;// CONCATENATED MODULE: external "react/jsx-runtime"
|
|
10
|
-
|
|
11
|
-
;// CONCATENATED MODULE: external "react"
|
|
12
|
-
|
|
13
|
-
;// CONCATENATED MODULE: external "@tachybase/schema"
|
|
14
|
-
|
|
15
|
-
;// CONCATENATED MODULE: external "lodash"
|
|
16
|
-
|
|
17
|
-
;// CONCATENATED MODULE: external "react-i18next"
|
|
18
|
-
|
|
19
|
-
;// CONCATENATED MODULE: external "../../api-client/index.mjs"
|
|
20
|
-
|
|
21
|
-
;// CONCATENATED MODULE: external "../context.mjs"
|
|
22
|
-
|
|
23
|
-
;// CONCATENATED MODULE: ./packages/client/src/schema-component/hooks/useDesignable.tsx?__rslib_entry__
|
|
24
|
-
function _define_property(obj, key, value) {
|
|
25
|
-
if (key in obj) {
|
|
26
|
-
Object.defineProperty(obj, key, {
|
|
27
|
-
value: value,
|
|
28
|
-
enumerable: true,
|
|
29
|
-
configurable: true,
|
|
30
|
-
writable: true
|
|
31
|
-
});
|
|
32
|
-
} else {
|
|
33
|
-
obj[key] = value;
|
|
34
|
-
}
|
|
35
|
-
return obj;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
function createDesignable(options) {
|
|
45
|
-
return new Designable(options);
|
|
46
|
-
}
|
|
47
|
-
const generateUid = (s)=>{
|
|
48
|
-
if (!s['x-uid']) {
|
|
49
|
-
s['x-uid'] = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)();
|
|
50
|
-
}
|
|
51
|
-
Object.keys(s.properties || {}).forEach((key)=>{
|
|
52
|
-
generateUid(s.properties[key]);
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
const defaultWrap = (s)=>s;
|
|
56
|
-
const matchSchema = (source, target)=>{
|
|
57
|
-
if (!source || !target) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
for(const key in target){
|
|
61
|
-
if (Object.prototype.hasOwnProperty.call(target, key)) {
|
|
62
|
-
const value = target[key];
|
|
63
|
-
if (value !== (source === null || source === void 0 ? void 0 : source[key])) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return true;
|
|
69
|
-
};
|
|
70
|
-
const splitWrapSchema = (wrapped, schema)=>{
|
|
71
|
-
if (wrapped['x-uid'] && wrapped['x-uid'] === schema['x-uid']) {
|
|
72
|
-
return [
|
|
73
|
-
null,
|
|
74
|
-
wrapped.toJSON()
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
const wrappedJson = wrapped.toJSON();
|
|
78
|
-
const schema1 = {
|
|
79
|
-
...wrappedJson,
|
|
80
|
-
properties: {}
|
|
81
|
-
};
|
|
82
|
-
let schema2 = null;
|
|
83
|
-
const findSchema = (properties, parent)=>{
|
|
84
|
-
Object.keys(properties || {}).forEach((key)=>{
|
|
85
|
-
const current = properties[key];
|
|
86
|
-
if (current['x-uid'] === schema['x-uid']) {
|
|
87
|
-
schema2 = properties[key];
|
|
88
|
-
return;
|
|
89
|
-
} else {
|
|
90
|
-
parent.properties[key] = {
|
|
91
|
-
...current,
|
|
92
|
-
properties: {}
|
|
93
|
-
};
|
|
94
|
-
findSchema(current === null || current === void 0 ? void 0 : current.properties, parent.properties[key]);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
findSchema(wrappedJson.properties, schema1);
|
|
99
|
-
return [
|
|
100
|
-
schema1,
|
|
101
|
-
schema2
|
|
102
|
-
];
|
|
103
|
-
};
|
|
104
|
-
const translate = (v)=>v;
|
|
105
|
-
class Designable {
|
|
106
|
-
get model() {
|
|
107
|
-
return this.options.model;
|
|
108
|
-
}
|
|
109
|
-
get query() {
|
|
110
|
-
return this.options.query;
|
|
111
|
-
}
|
|
112
|
-
loadAPIClientEvents() {
|
|
113
|
-
const { api, t = translate } = this.options;
|
|
114
|
-
if (!api) {
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
const updateColumnSize = (parent)=>{
|
|
118
|
-
if (!parent) {
|
|
119
|
-
return [];
|
|
120
|
-
}
|
|
121
|
-
const len = Object.values(parent.properties).length;
|
|
122
|
-
const schemas = [];
|
|
123
|
-
parent.mapProperties((s)=>{
|
|
124
|
-
s['x-component-props'] = s['x-component-props'] || {};
|
|
125
|
-
s['x-component-props']['width'] = 100 / len;
|
|
126
|
-
if (s['x-uid']) {
|
|
127
|
-
schemas.push({
|
|
128
|
-
'x-uid': s['x-uid'],
|
|
129
|
-
'x-component-props': s['x-component-props']
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
if (parent['x-uid'] && schemas.length) {
|
|
134
|
-
return schemas;
|
|
135
|
-
}
|
|
136
|
-
return [];
|
|
137
|
-
};
|
|
138
|
-
this.on('insertAdjacent', async (param)=>{
|
|
139
|
-
let { onSuccess, current, position, schema, wrap, wrapped, removed } = param;
|
|
140
|
-
var _res_data;
|
|
141
|
-
let schemas = [];
|
|
142
|
-
if ((wrapped === null || wrapped === void 0 ? void 0 : wrapped['x-component']) === 'Grid.Col') {
|
|
143
|
-
schemas = schemas.concat(updateColumnSize(wrapped.parent));
|
|
144
|
-
}
|
|
145
|
-
if ((removed === null || removed === void 0 ? void 0 : removed['x-component']) === 'Grid.Col') {
|
|
146
|
-
schemas = schemas.concat(updateColumnSize(removed.parent));
|
|
147
|
-
}
|
|
148
|
-
this.refresh();
|
|
149
|
-
if (!current['x-uid']) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
const res = await api.request({
|
|
153
|
-
url: "/uiSchemas:insertAdjacent/".concat(current['x-uid'], "?position=").concat(position),
|
|
154
|
-
method: 'post',
|
|
155
|
-
data: {
|
|
156
|
-
schema,
|
|
157
|
-
wrap
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
if (schemas.length) {
|
|
161
|
-
await api.request({
|
|
162
|
-
url: "/uiSchemas:batchPatch",
|
|
163
|
-
method: 'post',
|
|
164
|
-
data: schemas
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
if (removed === null || removed === void 0 ? void 0 : removed['x-uid']) {
|
|
168
|
-
await api.request({
|
|
169
|
-
url: "/uiSchemas:remove/".concat(removed['x-uid']),
|
|
170
|
-
method: 'post'
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res === null || res === void 0 ? void 0 : (_res_data = res.data) === null || _res_data === void 0 ? void 0 : _res_data.data);
|
|
174
|
-
});
|
|
175
|
-
this.on('patch', async (param)=>{
|
|
176
|
-
let { schema } = param;
|
|
177
|
-
this.refresh();
|
|
178
|
-
if (!(schema === null || schema === void 0 ? void 0 : schema['x-uid'])) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
await api.request({
|
|
182
|
-
url: "/uiSchemas:patch",
|
|
183
|
-
method: 'post',
|
|
184
|
-
data: {
|
|
185
|
-
...schema
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
this.on('batchPatch', async (param)=>{
|
|
190
|
-
let { schemas } = param;
|
|
191
|
-
this.refresh();
|
|
192
|
-
await api.request({
|
|
193
|
-
url: "/uiSchemas:batchPatch",
|
|
194
|
-
method: 'post',
|
|
195
|
-
data: schemas
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
this.on('remove', async (param)=>{
|
|
199
|
-
let { removed } = param;
|
|
200
|
-
let schemas = [];
|
|
201
|
-
if ((removed === null || removed === void 0 ? void 0 : removed['x-component']) === 'Grid.Col') {
|
|
202
|
-
schemas = updateColumnSize(removed.parent);
|
|
203
|
-
}
|
|
204
|
-
this.refresh();
|
|
205
|
-
if (!(removed === null || removed === void 0 ? void 0 : removed['x-uid'])) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
await api.request({
|
|
209
|
-
url: "/uiSchemas:remove/".concat(removed['x-uid']),
|
|
210
|
-
method: 'post'
|
|
211
|
-
});
|
|
212
|
-
if (schemas.length) {
|
|
213
|
-
await api.request({
|
|
214
|
-
url: "/uiSchemas:batchPatch",
|
|
215
|
-
method: 'post',
|
|
216
|
-
data: schemas
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
prepareProperty(schema) {
|
|
222
|
-
if (!schema.type) {
|
|
223
|
-
schema.type = 'void';
|
|
224
|
-
}
|
|
225
|
-
if (!schema.name) {
|
|
226
|
-
schema.name = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)();
|
|
227
|
-
}
|
|
228
|
-
// x-uid 仅用于后端查询 schema,如果 current 没有 x-uid 不处理
|
|
229
|
-
if (!this.current['x-uid']) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
// if (Schema.isSchemaInstance(schema)) {
|
|
233
|
-
// return;
|
|
234
|
-
// }
|
|
235
|
-
generateUid(schema);
|
|
236
|
-
}
|
|
237
|
-
on(name, listener) {
|
|
238
|
-
if (!this.events[name]) {
|
|
239
|
-
this.events[name] = [];
|
|
240
|
-
}
|
|
241
|
-
this.events[name].push(listener);
|
|
242
|
-
}
|
|
243
|
-
async emit(name) {
|
|
244
|
-
for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
245
|
-
args[_key - 1] = arguments[_key];
|
|
246
|
-
}
|
|
247
|
-
if (!this.events[name]) {
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
const [opts, ...others] = args;
|
|
251
|
-
return Promise.all(this.events[name].map((fn)=>fn.bind(this)({
|
|
252
|
-
current: this.current,
|
|
253
|
-
...opts
|
|
254
|
-
}, ...others)));
|
|
255
|
-
}
|
|
256
|
-
parentsIn(schema) {
|
|
257
|
-
if (!schema) {
|
|
258
|
-
return false;
|
|
259
|
-
}
|
|
260
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) {
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
let s = this.current;
|
|
264
|
-
while(s === null || s === void 0 ? void 0 : s.parent){
|
|
265
|
-
if (s.parent === schema) {
|
|
266
|
-
return true;
|
|
267
|
-
}
|
|
268
|
-
s = s.parent;
|
|
269
|
-
}
|
|
270
|
-
return false;
|
|
271
|
-
}
|
|
272
|
-
refresh() {
|
|
273
|
-
const { refresh } = this.options;
|
|
274
|
-
return refresh === null || refresh === void 0 ? void 0 : refresh();
|
|
275
|
-
}
|
|
276
|
-
deepMerge(schema) {
|
|
277
|
-
const replaceKeys = {
|
|
278
|
-
title: 'title',
|
|
279
|
-
description: 'description',
|
|
280
|
-
default: 'initialValue',
|
|
281
|
-
readOnly: 'readOnly',
|
|
282
|
-
writeOnly: 'editable',
|
|
283
|
-
enum: 'dataSource',
|
|
284
|
-
'x-pattern': 'pattern',
|
|
285
|
-
'x-display': 'display',
|
|
286
|
-
'x-validator': 'validator',
|
|
287
|
-
'x-decorator': 'decorator',
|
|
288
|
-
'x-component': 'component',
|
|
289
|
-
'x-reactions': 'reactions',
|
|
290
|
-
'x-content': 'content',
|
|
291
|
-
'x-visible': 'visible',
|
|
292
|
-
'x-hidden': 'hidden',
|
|
293
|
-
'x-disabled': 'disabled',
|
|
294
|
-
'x-editable': 'editable',
|
|
295
|
-
'x-read-only': 'readOnly'
|
|
296
|
-
};
|
|
297
|
-
const mergeKeys = {
|
|
298
|
-
'x-decorator-props': 'decoratorProps',
|
|
299
|
-
'x-component-props': 'componentProps',
|
|
300
|
-
'x-data': 'data'
|
|
301
|
-
};
|
|
302
|
-
Object.keys(schema).forEach((key)=>{
|
|
303
|
-
if (replaceKeys[key]) {
|
|
304
|
-
this.current[key] = schema[key];
|
|
305
|
-
this.updateModel(replaceKeys[key], schema[key]);
|
|
306
|
-
} else if (mergeKeys[key]) {
|
|
307
|
-
Object.keys(schema[key]).forEach((key2)=>{
|
|
308
|
-
(0,__WEBPACK_EXTERNAL_MODULE_lodash__.set)(this.current, [
|
|
309
|
-
key,
|
|
310
|
-
key2
|
|
311
|
-
], schema[key][key2]);
|
|
312
|
-
this.updateModel([
|
|
313
|
-
mergeKeys[key],
|
|
314
|
-
key2
|
|
315
|
-
], schema[key][key2]);
|
|
316
|
-
});
|
|
317
|
-
} else {
|
|
318
|
-
this.current[key] = schema[key];
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
this.emit('patch', {
|
|
322
|
-
schema
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
getSchemaAttribute(key, defaultValue) {
|
|
326
|
-
return (0,__WEBPACK_EXTERNAL_MODULE_lodash__.get)(this.current, key, defaultValue);
|
|
327
|
-
}
|
|
328
|
-
shallowMerge(schema) {
|
|
329
|
-
const replaceKeys = {
|
|
330
|
-
title: 'title',
|
|
331
|
-
description: 'description',
|
|
332
|
-
default: 'initialValue',
|
|
333
|
-
readOnly: 'readOnly',
|
|
334
|
-
writeOnly: 'editable',
|
|
335
|
-
enum: 'dataSource',
|
|
336
|
-
'x-pattern': 'pattern',
|
|
337
|
-
'x-display': 'display',
|
|
338
|
-
'x-validator': 'validator',
|
|
339
|
-
'x-decorator': 'decorator',
|
|
340
|
-
'x-component': 'component',
|
|
341
|
-
'x-reactions': 'reactions',
|
|
342
|
-
'x-content': 'content',
|
|
343
|
-
'x-visible': 'visible',
|
|
344
|
-
'x-hidden': 'hidden',
|
|
345
|
-
'x-disabled': 'disabled',
|
|
346
|
-
'x-editable': 'editable',
|
|
347
|
-
'x-read-only': 'readOnly',
|
|
348
|
-
'x-decorator-props': 'decoratorProps',
|
|
349
|
-
'x-component-props': 'componentProps',
|
|
350
|
-
'x-data': 'data'
|
|
351
|
-
};
|
|
352
|
-
Object.keys(schema).forEach((key)=>{
|
|
353
|
-
this.current[key] = schema[key];
|
|
354
|
-
if (replaceKeys[key]) {
|
|
355
|
-
this.updateModel(replaceKeys[key], schema[key]);
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
this.emit('patch', {
|
|
359
|
-
schema
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
updateModel(key, value) {
|
|
363
|
-
const update = (field)=>{
|
|
364
|
-
(0,__WEBPACK_EXTERNAL_MODULE_lodash__.set)(field, key, value);
|
|
365
|
-
};
|
|
366
|
-
if (this.model) {
|
|
367
|
-
update(this.model);
|
|
368
|
-
}
|
|
369
|
-
if (this.query) {
|
|
370
|
-
this.query.take(update);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
insertAdjacent(position, schema) {
|
|
374
|
-
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
375
|
-
switch(position){
|
|
376
|
-
case 'beforeBegin':
|
|
377
|
-
return this.insertBeforeBegin(schema, options);
|
|
378
|
-
case 'afterBegin':
|
|
379
|
-
return this.insertAfterBegin(schema, options);
|
|
380
|
-
case 'beforeEnd':
|
|
381
|
-
return this.insertBeforeEnd(schema, options);
|
|
382
|
-
case 'afterEnd':
|
|
383
|
-
return this.insertAfterEnd(schema, options);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
recursiveRemoveIfNoChildren(schema, options) {
|
|
387
|
-
if (!schema) {
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
let s = schema;
|
|
391
|
-
let removed;
|
|
392
|
-
const breakRemoveOn = options === null || options === void 0 ? void 0 : options.breakRemoveOn;
|
|
393
|
-
while(s){
|
|
394
|
-
if (typeof breakRemoveOn === 'function') {
|
|
395
|
-
if (breakRemoveOn(s)) {
|
|
396
|
-
break;
|
|
397
|
-
}
|
|
398
|
-
} else {
|
|
399
|
-
if (matchSchema(s, breakRemoveOn)) {
|
|
400
|
-
break;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
const count = Object.keys(s.properties || {}).length;
|
|
404
|
-
if (count > 0) {
|
|
405
|
-
break;
|
|
406
|
-
}
|
|
407
|
-
if (s.parent) {
|
|
408
|
-
removed = s.parent.removeProperty(s.name);
|
|
409
|
-
}
|
|
410
|
-
s = s.parent;
|
|
411
|
-
}
|
|
412
|
-
return removed;
|
|
413
|
-
}
|
|
414
|
-
remove(schema) {
|
|
415
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
416
|
-
const { breakRemoveOn, removeParentsIfNoChildren } = options;
|
|
417
|
-
const s = schema || this.current;
|
|
418
|
-
let removed = s.parent.removeProperty(s.name);
|
|
419
|
-
if (removeParentsIfNoChildren) {
|
|
420
|
-
const parent = this.recursiveRemoveIfNoChildren(s.parent, {
|
|
421
|
-
breakRemoveOn
|
|
422
|
-
});
|
|
423
|
-
if (parent) {
|
|
424
|
-
removed = parent;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
return this.emit('remove', {
|
|
428
|
-
removed
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
removeWithoutEmit(schema) {
|
|
432
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
433
|
-
const { breakRemoveOn, removeParentsIfNoChildren } = options;
|
|
434
|
-
const s = schema || this.current;
|
|
435
|
-
let removed = s.parent.removeProperty(s.name);
|
|
436
|
-
if (removeParentsIfNoChildren) {
|
|
437
|
-
const parent = this.recursiveRemoveIfNoChildren(s.parent, {
|
|
438
|
-
breakRemoveOn
|
|
439
|
-
});
|
|
440
|
-
if (parent) {
|
|
441
|
-
removed = parent;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return removed;
|
|
445
|
-
}
|
|
446
|
-
insertBeforeBeginOrAfterEnd(schema) {
|
|
447
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
448
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(this.current)) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) {
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
if (this.current.parent !== schema.parent) {
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
let fromIndex = 0;
|
|
458
|
-
let toIndex = 0;
|
|
459
|
-
this.current.parent.mapProperties((property, key, index)=>{
|
|
460
|
-
if (this.current.name === key) {
|
|
461
|
-
toIndex = index;
|
|
462
|
-
}
|
|
463
|
-
if (schema.name === key) {
|
|
464
|
-
fromIndex = index;
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
return fromIndex > toIndex ? this.insertBeforeBegin(schema, options) : this.insertAfterEnd(schema, options);
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* Before the current schema itself.
|
|
471
|
-
*/ insertBeforeBegin(schema) {
|
|
472
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
473
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(this.current)) {
|
|
474
|
-
return;
|
|
475
|
-
}
|
|
476
|
-
const opts = {
|
|
477
|
-
onSuccess: options.onSuccess
|
|
478
|
-
};
|
|
479
|
-
const { wrap = defaultWrap, breakRemoveOn, removeParentsIfNoChildren } = options;
|
|
480
|
-
if (__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) {
|
|
481
|
-
if (this.parentsIn(schema)) {
|
|
482
|
-
this.emit('error', {
|
|
483
|
-
code: 'parent_is_not_allowed',
|
|
484
|
-
schema
|
|
485
|
-
});
|
|
486
|
-
return;
|
|
487
|
-
}
|
|
488
|
-
schema.parent.removeProperty(schema.name);
|
|
489
|
-
if (removeParentsIfNoChildren) {
|
|
490
|
-
opts['removed'] = this.recursiveRemoveIfNoChildren(schema.parent, {
|
|
491
|
-
breakRemoveOn
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
} else if (schema) {
|
|
495
|
-
schema = (0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(schema);
|
|
496
|
-
}
|
|
497
|
-
const properties = {};
|
|
498
|
-
let start = false;
|
|
499
|
-
let order = 0;
|
|
500
|
-
let newOrder = 0;
|
|
501
|
-
this.current.parent.mapProperties((property, key)=>{
|
|
502
|
-
if (key === this.current.name) {
|
|
503
|
-
newOrder = order;
|
|
504
|
-
start = true;
|
|
505
|
-
++order;
|
|
506
|
-
}
|
|
507
|
-
property['x-index'] = order;
|
|
508
|
-
++order;
|
|
509
|
-
if (start) {
|
|
510
|
-
properties[key] = property;
|
|
511
|
-
this.current.parent.removeProperty(key);
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
this.prepareProperty(schema);
|
|
515
|
-
const wrapped = wrap(schema);
|
|
516
|
-
const s = this.current.parent.addProperty(wrapped.name || (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), wrapped);
|
|
517
|
-
s['x-index'] = newOrder;
|
|
518
|
-
s.parent = this.current.parent;
|
|
519
|
-
this.current.parent.setProperties(properties);
|
|
520
|
-
const [schema1, schema2] = splitWrapSchema(s, schema);
|
|
521
|
-
this.emit('insertAdjacent', {
|
|
522
|
-
position: 'beforeBegin',
|
|
523
|
-
schema: schema2,
|
|
524
|
-
wrapped,
|
|
525
|
-
wrap: schema1,
|
|
526
|
-
...opts
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* Just inside the current schema, before its first child.
|
|
531
|
-
*
|
|
532
|
-
* @param schema
|
|
533
|
-
* @returns
|
|
534
|
-
*/ insertAfterBegin(schema) {
|
|
535
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
536
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(this.current)) {
|
|
537
|
-
return;
|
|
538
|
-
}
|
|
539
|
-
const opts = {
|
|
540
|
-
onSuccess: options.onSuccess
|
|
541
|
-
};
|
|
542
|
-
const { wrap = defaultWrap, breakRemoveOn, removeParentsIfNoChildren } = options;
|
|
543
|
-
if (__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) {
|
|
544
|
-
if (this.parentsIn(schema)) {
|
|
545
|
-
this.emit('error', {
|
|
546
|
-
code: 'parent_is_not_allowed',
|
|
547
|
-
schema
|
|
548
|
-
});
|
|
549
|
-
return;
|
|
550
|
-
}
|
|
551
|
-
schema.parent.removeProperty(schema.name);
|
|
552
|
-
if (removeParentsIfNoChildren) {
|
|
553
|
-
opts['removed'] = this.recursiveRemoveIfNoChildren(schema.parent, {
|
|
554
|
-
breakRemoveOn
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
} else if (schema) {
|
|
558
|
-
schema = (0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(schema);
|
|
559
|
-
}
|
|
560
|
-
const properties = {};
|
|
561
|
-
let order = 1;
|
|
562
|
-
this.current.mapProperties((s, key)=>{
|
|
563
|
-
s['x-index'] = order;
|
|
564
|
-
++order;
|
|
565
|
-
properties[key] = s;
|
|
566
|
-
});
|
|
567
|
-
this.current.properties = {};
|
|
568
|
-
this.prepareProperty(schema);
|
|
569
|
-
const wrapped = wrap(schema);
|
|
570
|
-
const s = this.current.addProperty(wrapped.name || (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), wrapped);
|
|
571
|
-
s['x-index'] = 0;
|
|
572
|
-
s.parent = this.current;
|
|
573
|
-
this.current.setProperties(properties);
|
|
574
|
-
const [schema1, schema2] = splitWrapSchema(s, schema);
|
|
575
|
-
this.emit('insertAdjacent', {
|
|
576
|
-
position: 'afterBegin',
|
|
577
|
-
schema: schema2,
|
|
578
|
-
wrap: schema1,
|
|
579
|
-
wrapped,
|
|
580
|
-
...opts
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* Just inside the targetElement, after its last child.
|
|
585
|
-
*
|
|
586
|
-
* @param schema
|
|
587
|
-
* @returns
|
|
588
|
-
*/ insertBeforeEnd(schema) {
|
|
589
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
590
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(this.current)) {
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
delete schema['x-index'];
|
|
594
|
-
const opts = {
|
|
595
|
-
onSuccess: options.onSuccess
|
|
596
|
-
};
|
|
597
|
-
const { wrap = defaultWrap, breakRemoveOn, removeParentsIfNoChildren } = options;
|
|
598
|
-
if (__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) {
|
|
599
|
-
if (this.parentsIn(schema)) {
|
|
600
|
-
this.emit('error', {
|
|
601
|
-
code: 'parent_is_not_allowed',
|
|
602
|
-
schema
|
|
603
|
-
});
|
|
604
|
-
return;
|
|
605
|
-
}
|
|
606
|
-
schema.parent.removeProperty(schema.name);
|
|
607
|
-
if (removeParentsIfNoChildren) {
|
|
608
|
-
opts['removed'] = this.recursiveRemoveIfNoChildren(schema.parent, {
|
|
609
|
-
breakRemoveOn
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
} else if (schema) {
|
|
613
|
-
schema = (0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(schema);
|
|
614
|
-
}
|
|
615
|
-
this.prepareProperty(schema);
|
|
616
|
-
const wrapped = wrap(schema);
|
|
617
|
-
const s = this.current.addProperty(wrapped.name || (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), wrapped);
|
|
618
|
-
s.parent = this.current;
|
|
619
|
-
const [schema1, schema2] = splitWrapSchema(s, schema);
|
|
620
|
-
return this.emit('insertAdjacent', {
|
|
621
|
-
position: 'beforeEnd',
|
|
622
|
-
schema: schema2,
|
|
623
|
-
wrap: schema1,
|
|
624
|
-
wrapped,
|
|
625
|
-
...opts
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* After the current schema itself.
|
|
630
|
-
*/ insertAfterEnd(schema) {
|
|
631
|
-
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
632
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(this.current)) {
|
|
633
|
-
return;
|
|
634
|
-
}
|
|
635
|
-
const opts = {
|
|
636
|
-
onSuccess: options === null || options === void 0 ? void 0 : options.onSuccess
|
|
637
|
-
};
|
|
638
|
-
const { wrap = defaultWrap, breakRemoveOn, removeParentsIfNoChildren } = options;
|
|
639
|
-
let order = 0;
|
|
640
|
-
let newOrder = 0;
|
|
641
|
-
let start = false;
|
|
642
|
-
const properties = {};
|
|
643
|
-
this.current.parent.mapProperties((property, key)=>{
|
|
644
|
-
property['x-index'] = order;
|
|
645
|
-
if (key === this.current.name) {
|
|
646
|
-
++order;
|
|
647
|
-
newOrder = order;
|
|
648
|
-
start = true;
|
|
649
|
-
}
|
|
650
|
-
++order;
|
|
651
|
-
if (start && key !== this.current.name) {
|
|
652
|
-
properties[key] = property;
|
|
653
|
-
this.current.parent.removeProperty(key);
|
|
654
|
-
}
|
|
655
|
-
});
|
|
656
|
-
if (__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) {
|
|
657
|
-
if (this.parentsIn(schema)) {
|
|
658
|
-
this.emit('error', {
|
|
659
|
-
code: 'parent_is_not_allowed',
|
|
660
|
-
schema
|
|
661
|
-
});
|
|
662
|
-
return;
|
|
663
|
-
}
|
|
664
|
-
schema.parent.removeProperty(schema.name);
|
|
665
|
-
if (removeParentsIfNoChildren) {
|
|
666
|
-
opts['removed'] = this.recursiveRemoveIfNoChildren(schema.parent, {
|
|
667
|
-
breakRemoveOn
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
schema.parent = null;
|
|
671
|
-
} else if (schema) {
|
|
672
|
-
schema = (0,__WEBPACK_EXTERNAL_MODULE_lodash__.cloneDeep)(schema);
|
|
673
|
-
}
|
|
674
|
-
this.prepareProperty(schema);
|
|
675
|
-
const wrapped = wrap(schema);
|
|
676
|
-
const s = this.current.parent.addProperty(wrapped.name || (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)(), wrapped);
|
|
677
|
-
s.parent = this.current.parent;
|
|
678
|
-
s['x-index'] = newOrder;
|
|
679
|
-
this.current.parent.setProperties(properties);
|
|
680
|
-
const [schema1, schema2] = splitWrapSchema(s, schema);
|
|
681
|
-
this.emit('insertAdjacent', {
|
|
682
|
-
position: 'afterEnd',
|
|
683
|
-
schema: schema2,
|
|
684
|
-
wrap: schema1,
|
|
685
|
-
wrapped,
|
|
686
|
-
...opts
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
constructor(options){
|
|
690
|
-
_define_property(this, "current", void 0);
|
|
691
|
-
_define_property(this, "options", void 0);
|
|
692
|
-
_define_property(this, "events", {});
|
|
693
|
-
this.options = options;
|
|
694
|
-
this.current = options.current;
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
function useFindComponent() {
|
|
698
|
-
const schemaOptions = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaOptionsContext);
|
|
699
|
-
const components = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>(schemaOptions === null || schemaOptions === void 0 ? void 0 : schemaOptions.components) || {}, [
|
|
700
|
-
schemaOptions
|
|
701
|
-
]);
|
|
702
|
-
const find = (component)=>{
|
|
703
|
-
if (!component) {
|
|
704
|
-
return null;
|
|
705
|
-
}
|
|
706
|
-
if (typeof component !== 'string') {
|
|
707
|
-
return component;
|
|
708
|
-
}
|
|
709
|
-
const res = (0,__WEBPACK_EXTERNAL_MODULE_lodash__.get)(components, component);
|
|
710
|
-
if (!res) {
|
|
711
|
-
console.error('[tachybase]: Component "'.concat(component, '" not found'));
|
|
712
|
-
}
|
|
713
|
-
return res;
|
|
714
|
-
};
|
|
715
|
-
return find;
|
|
716
|
-
}
|
|
717
|
-
// TODO
|
|
718
|
-
function useDesignable() {
|
|
719
|
-
const { designable, setDesignable, refresh, reset } = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__context_mjs__.SchemaComponentContext);
|
|
720
|
-
const schemaOptions = (0,__WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.SchemaOptionsContext);
|
|
721
|
-
const components = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>(schemaOptions === null || schemaOptions === void 0 ? void 0 : schemaOptions.components) || {}, [
|
|
722
|
-
schemaOptions
|
|
723
|
-
]);
|
|
724
|
-
const DesignableBar = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>()=>{
|
|
725
|
-
return /*#__PURE__*/ (0,__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {});
|
|
726
|
-
}, []);
|
|
727
|
-
const field = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useField)();
|
|
728
|
-
const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
|
|
729
|
-
const api = (0,__WEBPACK_EXTERNAL_MODULE__api_client_index_mjs__.useAPIClient)();
|
|
730
|
-
const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
731
|
-
const dn = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
732
|
-
return createDesignable({
|
|
733
|
-
t,
|
|
734
|
-
api,
|
|
735
|
-
refresh,
|
|
736
|
-
current: fieldSchema,
|
|
737
|
-
model: field
|
|
738
|
-
});
|
|
739
|
-
}, [
|
|
740
|
-
t,
|
|
741
|
-
api,
|
|
742
|
-
refresh,
|
|
743
|
-
fieldSchema,
|
|
744
|
-
field
|
|
745
|
-
]);
|
|
746
|
-
(0,__WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
747
|
-
dn.loadAPIClientEvents();
|
|
748
|
-
}, [
|
|
749
|
-
dn
|
|
750
|
-
]);
|
|
751
|
-
return {
|
|
752
|
-
dn,
|
|
753
|
-
designable,
|
|
754
|
-
reset,
|
|
755
|
-
refresh,
|
|
756
|
-
setDesignable,
|
|
757
|
-
DesignableBar,
|
|
758
|
-
findComponent: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((component)=>{
|
|
759
|
-
if (!component) {
|
|
760
|
-
return null;
|
|
761
|
-
}
|
|
762
|
-
if (typeof component !== 'string') {
|
|
763
|
-
return component;
|
|
764
|
-
}
|
|
765
|
-
return (0,__WEBPACK_EXTERNAL_MODULE_lodash__.get)(components, component);
|
|
766
|
-
}, [
|
|
767
|
-
__WEBPACK_EXTERNAL_MODULE_lodash__.get
|
|
768
|
-
]),
|
|
769
|
-
on: dn.on.bind(dn),
|
|
770
|
-
// TODO
|
|
771
|
-
patch: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((key, value)=>{
|
|
772
|
-
const update = (obj)=>{
|
|
773
|
-
Object.keys(obj).forEach((k)=>{
|
|
774
|
-
const val = obj[k];
|
|
775
|
-
if (k === 'title') {
|
|
776
|
-
field.title = val;
|
|
777
|
-
fieldSchema['title'] = val;
|
|
778
|
-
}
|
|
779
|
-
if (k === 'x-decorator-props') {
|
|
780
|
-
if (!field.decoratorProps) {
|
|
781
|
-
field.decoratorProps = {};
|
|
782
|
-
}
|
|
783
|
-
if (!fieldSchema['x-decorator-props']) {
|
|
784
|
-
fieldSchema['x-decorator-props'] = {};
|
|
785
|
-
}
|
|
786
|
-
Object.keys(val).forEach((i)=>{
|
|
787
|
-
field.decoratorProps[i] = val[i];
|
|
788
|
-
fieldSchema['x-decorator-props'][i] = val[i];
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
if (k === 'x-component-props') {
|
|
792
|
-
if (!field.componentProps) {
|
|
793
|
-
field.componentProps = {};
|
|
794
|
-
}
|
|
795
|
-
if (!fieldSchema['x-component-props']) {
|
|
796
|
-
fieldSchema['x-component-props'] = {};
|
|
797
|
-
}
|
|
798
|
-
Object.keys(val).forEach((i)=>{
|
|
799
|
-
field.componentProps[i] = val[i];
|
|
800
|
-
fieldSchema['x-component-props'][i] = val[i];
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
if (typeof key === 'string') {
|
|
806
|
-
const obj = {};
|
|
807
|
-
(0,__WEBPACK_EXTERNAL_MODULE_lodash__.set)(obj, key, value);
|
|
808
|
-
return update(obj);
|
|
809
|
-
}
|
|
810
|
-
update(key);
|
|
811
|
-
refresh();
|
|
812
|
-
}, [
|
|
813
|
-
dn
|
|
814
|
-
]),
|
|
815
|
-
shallowMerge: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema)=>{
|
|
816
|
-
dn.shallowMerge(schema);
|
|
817
|
-
}, [
|
|
818
|
-
dn
|
|
819
|
-
]),
|
|
820
|
-
deepMerge: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema)=>{
|
|
821
|
-
dn.deepMerge(schema);
|
|
822
|
-
}, [
|
|
823
|
-
dn
|
|
824
|
-
]),
|
|
825
|
-
remove: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema, options)=>{
|
|
826
|
-
dn.remove(schema, options);
|
|
827
|
-
}, [
|
|
828
|
-
dn
|
|
829
|
-
]),
|
|
830
|
-
insertAdjacent: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((position, schema, options)=>{
|
|
831
|
-
dn.insertAdjacent(position, schema, options);
|
|
832
|
-
}, [
|
|
833
|
-
dn
|
|
834
|
-
]),
|
|
835
|
-
insertBeforeBegin: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema)=>{
|
|
836
|
-
dn.insertBeforeBegin(schema);
|
|
837
|
-
}, [
|
|
838
|
-
dn
|
|
839
|
-
]),
|
|
840
|
-
insertAfterBegin: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema)=>{
|
|
841
|
-
dn.insertAfterBegin(schema);
|
|
842
|
-
}, [
|
|
843
|
-
dn
|
|
844
|
-
]),
|
|
845
|
-
insertBeforeEnd: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema)=>{
|
|
846
|
-
dn.insertBeforeEnd(schema);
|
|
847
|
-
}, [
|
|
848
|
-
dn
|
|
849
|
-
]),
|
|
850
|
-
insertAfterEnd: (0,__WEBPACK_EXTERNAL_MODULE_react__.useCallback)((schema)=>{
|
|
851
|
-
dn.insertAfterEnd(schema);
|
|
852
|
-
}, [
|
|
853
|
-
dn
|
|
854
|
-
])
|
|
855
|
-
};
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
export { Designable, createDesignable, splitWrapSchema, useDesignable, useFindComponent };
|