@tachybase/client 0.23.8-alpha.27 → 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/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 -23
- 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,1535 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next__ from "react-i18next";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../index.mjs";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__ from "../collection-manager/index.mjs";
|
|
7
|
-
import * as __WEBPACK_EXTERNAL_MODULE__data_source_data_source_DataSourceManagerProvider_mjs__ from "../data-source/data-source/DataSourceManagerProvider.mjs";
|
|
8
|
-
import * as __WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__ from "../filter-provider/utils.mjs";
|
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__ from "../schema-component/index.mjs";
|
|
10
|
-
import * as __WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__ from "../schema-templates/index.mjs";
|
|
11
|
-
|
|
12
|
-
;// CONCATENATED MODULE: external "react"
|
|
13
|
-
|
|
14
|
-
;// CONCATENATED MODULE: external "@tachybase/schema"
|
|
15
|
-
|
|
16
|
-
;// CONCATENATED MODULE: external "lodash"
|
|
17
|
-
|
|
18
|
-
;// CONCATENATED MODULE: external "react-i18next"
|
|
19
|
-
|
|
20
|
-
;// CONCATENATED MODULE: external "../index.mjs"
|
|
21
|
-
|
|
22
|
-
;// CONCATENATED MODULE: external "../collection-manager/index.mjs"
|
|
23
|
-
|
|
24
|
-
;// CONCATENATED MODULE: external "../data-source/data-source/DataSourceManagerProvider.mjs"
|
|
25
|
-
|
|
26
|
-
;// CONCATENATED MODULE: external "../filter-provider/utils.mjs"
|
|
27
|
-
|
|
28
|
-
;// CONCATENATED MODULE: external "../schema-component/index.mjs"
|
|
29
|
-
|
|
30
|
-
;// CONCATENATED MODULE: external "../schema-templates/index.mjs"
|
|
31
|
-
|
|
32
|
-
;// CONCATENATED MODULE: ./packages/client/src/schema-initializer/utils.ts?__rslib_entry__
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const itemsMerge = (items1)=>{
|
|
44
|
-
return items1;
|
|
45
|
-
};
|
|
46
|
-
const gridRowColWrap = (schema)=>{
|
|
47
|
-
return {
|
|
48
|
-
type: 'void',
|
|
49
|
-
'x-component': 'Grid.Row',
|
|
50
|
-
properties: {
|
|
51
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
52
|
-
type: 'void',
|
|
53
|
-
'x-component': 'Grid.Col',
|
|
54
|
-
properties: {
|
|
55
|
-
[schema.name || (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: schema
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
const removeTableColumn = (schema, cb)=>{
|
|
62
|
-
cb(schema.parent);
|
|
63
|
-
};
|
|
64
|
-
const removeGridFormItem = (schema, cb)=>{
|
|
65
|
-
cb(schema, {
|
|
66
|
-
removeParentsIfNoChildren: true,
|
|
67
|
-
breakRemoveOn: {
|
|
68
|
-
'x-component': 'Grid'
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
const useRemoveGridFormItem = ()=>{
|
|
73
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
74
|
-
return (schema, cb)=>{
|
|
75
|
-
var _form_values;
|
|
76
|
-
cb(schema, {
|
|
77
|
-
removeParentsIfNoChildren: true,
|
|
78
|
-
breakRemoveOn: {
|
|
79
|
-
'x-component': 'Grid'
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
(_form_values = form.values) === null || _form_values === void 0 ? true : delete _form_values[schema.name];
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
const findTableColumn = function(schema, key, action) {
|
|
86
|
-
let deepth = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
|
87
|
-
return schema.reduceProperties((buf, s)=>{
|
|
88
|
-
if (s[key] === action) {
|
|
89
|
-
return s;
|
|
90
|
-
}
|
|
91
|
-
const c = s.reduceProperties((buf, s)=>{
|
|
92
|
-
if (s[key] === action) {
|
|
93
|
-
return s;
|
|
94
|
-
}
|
|
95
|
-
return buf;
|
|
96
|
-
});
|
|
97
|
-
if (c) {
|
|
98
|
-
return c;
|
|
99
|
-
}
|
|
100
|
-
return buf;
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
const quickEditField = [
|
|
104
|
-
'attachment',
|
|
105
|
-
'textarea',
|
|
106
|
-
'markdown',
|
|
107
|
-
'json',
|
|
108
|
-
'richText',
|
|
109
|
-
'polygon',
|
|
110
|
-
'circle',
|
|
111
|
-
'point',
|
|
112
|
-
'lineString'
|
|
113
|
-
];
|
|
114
|
-
const useTableColumnInitializerFields = ()=>{
|
|
115
|
-
const { name, currentFields = [] } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
116
|
-
const { getInterface, getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
117
|
-
const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
|
|
118
|
-
const isSubTable = fieldSchema['x-component'] === 'AssociationField.SubTable';
|
|
119
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
120
|
-
const isReadPretty = isSubTable ? form.readPretty : true;
|
|
121
|
-
return currentFields.filter((field)=>(field === null || field === void 0 ? void 0 : field.interface) && (field === null || field === void 0 ? void 0 : field.interface) !== 'subTable' && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && !(field === null || field === void 0 ? void 0 : field.treeChildren)).map((field)=>{
|
|
122
|
-
var _getCollection, _field_uiSchema, _field_uiSchema1;
|
|
123
|
-
const interfaceConfig = getInterface(field.interface);
|
|
124
|
-
const isFileCollection = (field === null || field === void 0 ? void 0 : field.target) && ((_getCollection = getCollection(field === null || field === void 0 ? void 0 : field.target)) === null || _getCollection === void 0 ? void 0 : _getCollection.template) === 'file';
|
|
125
|
-
const schema = {
|
|
126
|
-
name: field.name,
|
|
127
|
-
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
128
|
-
'x-component': 'CollectionField',
|
|
129
|
-
'x-component-props': isFileCollection ? {
|
|
130
|
-
fieldNames: {
|
|
131
|
-
label: 'preview',
|
|
132
|
-
value: 'id'
|
|
133
|
-
}
|
|
134
|
-
} : {},
|
|
135
|
-
'x-read-pretty': isReadPretty || ((_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema['x-read-pretty']),
|
|
136
|
-
'x-decorator': isSubTable ? quickEditField.includes(field.interface) || isFileCollection ? 'QuickEdit' : 'FormItem' : null,
|
|
137
|
-
'x-decorator-props': {
|
|
138
|
-
labelStyle: {
|
|
139
|
-
display: 'none'
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
// interfaceConfig?.schemaInitialize?.(schema, { field, readPretty: true, block: 'Table' });
|
|
144
|
-
return {
|
|
145
|
-
type: 'item',
|
|
146
|
-
name: field.name,
|
|
147
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title) || field.name,
|
|
148
|
-
Component: 'TableCollectionFieldInitializer',
|
|
149
|
-
find: findTableColumn,
|
|
150
|
-
remove: removeTableColumn,
|
|
151
|
-
schemaInitialize: (s)=>{
|
|
152
|
-
var _interfaceConfig_schemaInitialize;
|
|
153
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
154
|
-
field,
|
|
155
|
-
readPretty: isReadPretty,
|
|
156
|
-
block: 'Table',
|
|
157
|
-
targetCollection: getCollection(field.target)
|
|
158
|
-
});
|
|
159
|
-
},
|
|
160
|
-
field,
|
|
161
|
-
schema
|
|
162
|
-
};
|
|
163
|
-
});
|
|
164
|
-
};
|
|
165
|
-
const useAssociatedTableColumnInitializerFields = ()=>{
|
|
166
|
-
var _fields_filter;
|
|
167
|
-
const { name, fields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
168
|
-
const { getInterface, getCollectionFields, getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
169
|
-
const groups = fields === null || fields === void 0 ? void 0 : (_fields_filter = fields.filter((field)=>{
|
|
170
|
-
return [
|
|
171
|
-
'o2o',
|
|
172
|
-
'oho',
|
|
173
|
-
'obo',
|
|
174
|
-
'm2o'
|
|
175
|
-
].includes(field.interface);
|
|
176
|
-
})) === null || _fields_filter === void 0 ? void 0 : _fields_filter.map((field)=>{
|
|
177
|
-
var _subFields_filter, _field_uiSchema, _field_uiSchema1;
|
|
178
|
-
const subFields = getCollectionFields(field.target);
|
|
179
|
-
const items = subFields === null || subFields === void 0 ? void 0 : (_subFields_filter = subFields.filter((subField)=>(subField === null || subField === void 0 ? void 0 : subField.interface) && ![
|
|
180
|
-
'subTable'
|
|
181
|
-
].includes(subField === null || subField === void 0 ? void 0 : subField.interface) && !(subField === null || subField === void 0 ? void 0 : subField.treeChildren))) === null || _subFields_filter === void 0 ? void 0 : _subFields_filter.map((subField)=>{
|
|
182
|
-
var _subField_uiSchema;
|
|
183
|
-
const interfaceConfig = getInterface(subField.interface);
|
|
184
|
-
const schema = {
|
|
185
|
-
// type: 'string',
|
|
186
|
-
name: "".concat(field.name, ".").concat(subField.name),
|
|
187
|
-
// title: subField?.uiSchema?.title || subField.name,
|
|
188
|
-
'x-component': 'CollectionField',
|
|
189
|
-
'x-read-pretty': true,
|
|
190
|
-
'x-collection-field': "".concat(name, ".").concat(field.name, ".").concat(subField.name),
|
|
191
|
-
'x-component-props': {}
|
|
192
|
-
};
|
|
193
|
-
return {
|
|
194
|
-
type: 'item',
|
|
195
|
-
name: subField.name,
|
|
196
|
-
title: (subField === null || subField === void 0 ? void 0 : (_subField_uiSchema = subField.uiSchema) === null || _subField_uiSchema === void 0 ? void 0 : _subField_uiSchema.title) || subField.name,
|
|
197
|
-
Component: 'TableCollectionFieldInitializer',
|
|
198
|
-
find: findTableColumn,
|
|
199
|
-
remove: removeTableColumn,
|
|
200
|
-
schemaInitialize: (s)=>{
|
|
201
|
-
var _interfaceConfig_schemaInitialize;
|
|
202
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
203
|
-
field: subField,
|
|
204
|
-
readPretty: true,
|
|
205
|
-
block: 'Table',
|
|
206
|
-
targetCollection: getCollection(field.target)
|
|
207
|
-
});
|
|
208
|
-
},
|
|
209
|
-
field: subField,
|
|
210
|
-
schema
|
|
211
|
-
};
|
|
212
|
-
});
|
|
213
|
-
return {
|
|
214
|
-
type: 'subMenu',
|
|
215
|
-
name: (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title,
|
|
216
|
-
title: (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title,
|
|
217
|
-
children: items
|
|
218
|
-
};
|
|
219
|
-
});
|
|
220
|
-
return groups;
|
|
221
|
-
};
|
|
222
|
-
const useInheritsTableColumnInitializerFields = ()=>{
|
|
223
|
-
const { name } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
224
|
-
const { getInterface, getInheritCollections, getCollection, getParentCollectionFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
225
|
-
const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
|
|
226
|
-
const isSubTable = fieldSchema['x-component'] === 'AssociationField.SubTable';
|
|
227
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
228
|
-
const isReadPretty = isSubTable ? form.readPretty : true;
|
|
229
|
-
const inherits = getInheritCollections(name);
|
|
230
|
-
return inherits === null || inherits === void 0 ? void 0 : inherits.map((v)=>{
|
|
231
|
-
const fields = getParentCollectionFields(v, name);
|
|
232
|
-
const targetCollection = getCollection(v);
|
|
233
|
-
return {
|
|
234
|
-
[targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.title]: fields === null || fields === void 0 ? void 0 : fields.filter((field)=>{
|
|
235
|
-
return field === null || field === void 0 ? void 0 : field.interface;
|
|
236
|
-
}).map((k)=>{
|
|
237
|
-
var _getCollection, _k_uiSchema, _k_uiSchema1, _k_uiSchema2;
|
|
238
|
-
const interfaceConfig = getInterface(k.interface);
|
|
239
|
-
const isFileCollection = (k === null || k === void 0 ? void 0 : k.target) && ((_getCollection = getCollection(k === null || k === void 0 ? void 0 : k.target)) === null || _getCollection === void 0 ? void 0 : _getCollection.template) === 'file';
|
|
240
|
-
const schema = {
|
|
241
|
-
name: "".concat(k.name),
|
|
242
|
-
'x-component': 'CollectionField',
|
|
243
|
-
'x-read-pretty': isReadPretty || ((_k_uiSchema = k.uiSchema) === null || _k_uiSchema === void 0 ? void 0 : _k_uiSchema['x-read-pretty']),
|
|
244
|
-
'x-collection-field': "".concat(name, ".").concat(k.name),
|
|
245
|
-
'x-component-props': isFileCollection ? {
|
|
246
|
-
fieldNames: {
|
|
247
|
-
label: 'preview',
|
|
248
|
-
value: 'id'
|
|
249
|
-
}
|
|
250
|
-
} : {},
|
|
251
|
-
'x-decorator': isSubTable ? quickEditField.includes(k.interface) || isFileCollection ? 'QuickEdit' : 'FormItem' : null,
|
|
252
|
-
'x-decorator-props': {
|
|
253
|
-
labelStyle: {
|
|
254
|
-
display: 'none'
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
return {
|
|
259
|
-
name: (k === null || k === void 0 ? void 0 : (_k_uiSchema1 = k.uiSchema) === null || _k_uiSchema1 === void 0 ? void 0 : _k_uiSchema1.title) || k.name,
|
|
260
|
-
type: 'item',
|
|
261
|
-
title: (k === null || k === void 0 ? void 0 : (_k_uiSchema2 = k.uiSchema) === null || _k_uiSchema2 === void 0 ? void 0 : _k_uiSchema2.title) || k.name,
|
|
262
|
-
Component: 'TableCollectionFieldInitializer',
|
|
263
|
-
find: findTableColumn,
|
|
264
|
-
remove: removeTableColumn,
|
|
265
|
-
schemaInitialize: (s)=>{
|
|
266
|
-
var _interfaceConfig_schemaInitialize;
|
|
267
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
268
|
-
field: k,
|
|
269
|
-
readPretty: true,
|
|
270
|
-
block: 'Table',
|
|
271
|
-
targetCollection: getCollection(k === null || k === void 0 ? void 0 : k.target)
|
|
272
|
-
});
|
|
273
|
-
},
|
|
274
|
-
field: k,
|
|
275
|
-
schema
|
|
276
|
-
};
|
|
277
|
-
})
|
|
278
|
-
};
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
const useFormItemInitializerFields = (options)=>{
|
|
282
|
-
var _currentFields_filter;
|
|
283
|
-
const { name, currentFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
284
|
-
const { getInterface, getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
285
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
286
|
-
const { readPretty = form.readPretty, block = 'Form' } = options || {};
|
|
287
|
-
const { fieldSchema } = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useActionContext)();
|
|
288
|
-
const action = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-action'];
|
|
289
|
-
return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields_filter = currentFields.filter((field)=>(field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && !(field === null || field === void 0 ? void 0 : field.treeChildren))) === null || _currentFields_filter === void 0 ? void 0 : _currentFields_filter.map((field)=>{
|
|
290
|
-
var _getCollection, _field_uiSchema_xcomponentprops, _field_uiSchema, _field_uiSchema1;
|
|
291
|
-
const interfaceConfig = getInterface(field.interface);
|
|
292
|
-
const targetCollection = getCollection(field.target);
|
|
293
|
-
const isFileCollection = (field === null || field === void 0 ? void 0 : field.target) && ((_getCollection = getCollection(field === null || field === void 0 ? void 0 : field.target)) === null || _getCollection === void 0 ? void 0 : _getCollection.template) === 'file';
|
|
294
|
-
const isAssociationField = targetCollection;
|
|
295
|
-
const fieldNames = field === null || field === void 0 ? void 0 : (_field_uiSchema_xcomponentprops = field.uiSchema['x-component-props']) === null || _field_uiSchema_xcomponentprops === void 0 ? void 0 : _field_uiSchema_xcomponentprops['fieldNames'];
|
|
296
|
-
const schema = {
|
|
297
|
-
type: 'string',
|
|
298
|
-
name: field.name,
|
|
299
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
300
|
-
'x-settings': 'fieldSettings:FormItem',
|
|
301
|
-
'x-component': 'CollectionField',
|
|
302
|
-
'x-decorator': 'FormItem',
|
|
303
|
-
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
304
|
-
'x-component-props': isFileCollection ? {
|
|
305
|
-
fieldNames: {
|
|
306
|
-
label: 'preview',
|
|
307
|
-
value: 'id'
|
|
308
|
-
}
|
|
309
|
-
} : isAssociationField && fieldNames ? {
|
|
310
|
-
fieldNames: {
|
|
311
|
-
...fieldNames,
|
|
312
|
-
label: (targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.titleField) || fieldNames.label
|
|
313
|
-
}
|
|
314
|
-
} : {},
|
|
315
|
-
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema['x-read-pretty']
|
|
316
|
-
};
|
|
317
|
-
const resultItem = {
|
|
318
|
-
type: 'item',
|
|
319
|
-
name: field.name,
|
|
320
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title) || field.name,
|
|
321
|
-
Component: 'CollectionFieldInitializer',
|
|
322
|
-
remove: removeGridFormItem,
|
|
323
|
-
schemaInitialize: (s)=>{
|
|
324
|
-
var _interfaceConfig_schemaInitialize;
|
|
325
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
326
|
-
field,
|
|
327
|
-
block,
|
|
328
|
-
readPretty,
|
|
329
|
-
action,
|
|
330
|
-
targetCollection
|
|
331
|
-
});
|
|
332
|
-
},
|
|
333
|
-
schema
|
|
334
|
-
};
|
|
335
|
-
if (block == 'Kanban') {
|
|
336
|
-
resultItem['find'] = (schema, key, action)=>{
|
|
337
|
-
const s = findSchema(schema, 'x-component', block);
|
|
338
|
-
return findSchema(s, key, action);
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
return resultItem;
|
|
342
|
-
});
|
|
343
|
-
};
|
|
344
|
-
// 筛选表单相关
|
|
345
|
-
const useFilterFormItemInitializerFields = (options)=>{
|
|
346
|
-
var _currentFields_filter;
|
|
347
|
-
const { name, currentFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
348
|
-
const { getInterface, getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
349
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
350
|
-
const { readPretty = form.readPretty, block = 'FilterForm' } = options || {};
|
|
351
|
-
const { snapshot, fieldSchema } = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useActionContext)();
|
|
352
|
-
const action = fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-action'];
|
|
353
|
-
return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields_filter = currentFields.filter((field)=>{
|
|
354
|
-
var _getInterface;
|
|
355
|
-
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && ((_getInterface = getInterface(field.interface)) === null || _getInterface === void 0 ? void 0 : _getInterface.filterable);
|
|
356
|
-
})) === null || _currentFields_filter === void 0 ? void 0 : _currentFields_filter.map((field)=>{
|
|
357
|
-
var _field_uiSchema, _field_uiSchema1;
|
|
358
|
-
const interfaceConfig = getInterface(field.interface);
|
|
359
|
-
const targetCollection = getCollection(field.target);
|
|
360
|
-
let schema = {
|
|
361
|
-
type: 'string',
|
|
362
|
-
name: field.name,
|
|
363
|
-
required: false,
|
|
364
|
-
// 'x-designer': 'FormItem.FilterFormDesigner',
|
|
365
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
366
|
-
'x-settings': 'fieldSettings:FilterFormItem',
|
|
367
|
-
'x-component': 'CollectionField',
|
|
368
|
-
'x-decorator': 'FormItem',
|
|
369
|
-
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
370
|
-
'x-component-props': {}
|
|
371
|
-
};
|
|
372
|
-
if ((0,__WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.isAssocField)(field)) {
|
|
373
|
-
var _field_uiSchema2;
|
|
374
|
-
schema = {
|
|
375
|
-
type: 'string',
|
|
376
|
-
name: "".concat(field.name),
|
|
377
|
-
required: false,
|
|
378
|
-
// 'x-designer': 'FormItem.FilterFormDesigner',
|
|
379
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
380
|
-
'x-settings': 'fieldSettings:FilterFormItem',
|
|
381
|
-
'x-component': 'CollectionField',
|
|
382
|
-
'x-decorator': 'FormItem',
|
|
383
|
-
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
384
|
-
'x-component-props': (_field_uiSchema2 = field.uiSchema) === null || _field_uiSchema2 === void 0 ? void 0 : _field_uiSchema2['x-component-props']
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
const resultItem = {
|
|
388
|
-
name: (field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title) || field.name,
|
|
389
|
-
type: 'item',
|
|
390
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title) || field.name,
|
|
391
|
-
Component: 'CollectionFieldInitializer',
|
|
392
|
-
remove: removeGridFormItem,
|
|
393
|
-
schemaInitialize: (s)=>{
|
|
394
|
-
var _interfaceConfig_schemaInitialize;
|
|
395
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
396
|
-
field,
|
|
397
|
-
block,
|
|
398
|
-
readPretty,
|
|
399
|
-
action,
|
|
400
|
-
targetCollection
|
|
401
|
-
});
|
|
402
|
-
},
|
|
403
|
-
schema
|
|
404
|
-
};
|
|
405
|
-
return resultItem;
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
const useAssociatedFormItemInitializerFields = (options)=>{
|
|
409
|
-
var _fields_filter;
|
|
410
|
-
const { name, fields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
411
|
-
const { getInterface, getCollectionFields, getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
412
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
413
|
-
const { readPretty = form.readPretty, block = 'Form' } = options || {};
|
|
414
|
-
const interfaces = block === 'Form' ? [
|
|
415
|
-
'm2o'
|
|
416
|
-
] : [
|
|
417
|
-
'o2o',
|
|
418
|
-
'oho',
|
|
419
|
-
'obo',
|
|
420
|
-
'm2o'
|
|
421
|
-
];
|
|
422
|
-
const groups = fields === null || fields === void 0 ? void 0 : (_fields_filter = fields.filter((field)=>{
|
|
423
|
-
return interfaces.includes(field.interface);
|
|
424
|
-
})) === null || _fields_filter === void 0 ? void 0 : _fields_filter.map((field)=>{
|
|
425
|
-
var _subFields_filter, _field_uiSchema, _field_uiSchema1;
|
|
426
|
-
const subFields = getCollectionFields(field.target);
|
|
427
|
-
const items = subFields === null || subFields === void 0 ? void 0 : (_subFields_filter = subFields.filter((subField)=>(subField === null || subField === void 0 ? void 0 : subField.interface) && ![
|
|
428
|
-
'subTable'
|
|
429
|
-
].includes(subField === null || subField === void 0 ? void 0 : subField.interface) && !subField.treeChildren)) === null || _subFields_filter === void 0 ? void 0 : _subFields_filter.map((subField)=>{
|
|
430
|
-
var _getCollection, _subField_uiSchema, _subField_uiSchema1;
|
|
431
|
-
const interfaceConfig = getInterface(subField.interface);
|
|
432
|
-
const isFileCollection = (field === null || field === void 0 ? void 0 : field.target) && ((_getCollection = getCollection(field === null || field === void 0 ? void 0 : field.target)) === null || _getCollection === void 0 ? void 0 : _getCollection.template) === 'file';
|
|
433
|
-
const schema = {
|
|
434
|
-
type: 'string',
|
|
435
|
-
name: "".concat(field.name, ".").concat(subField.name),
|
|
436
|
-
// 'x-designer': 'FormItem.Designer',
|
|
437
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
438
|
-
'x-settings': 'fieldSettings:FormItem',
|
|
439
|
-
'x-component': 'CollectionField',
|
|
440
|
-
'x-read-pretty': readPretty,
|
|
441
|
-
'x-component-props': {
|
|
442
|
-
'pattern-disable': block === 'Form' && readPretty,
|
|
443
|
-
fieldNames: isFileCollection ? {
|
|
444
|
-
label: 'preview',
|
|
445
|
-
value: 'id'
|
|
446
|
-
} : undefined
|
|
447
|
-
},
|
|
448
|
-
'x-decorator': 'FormItem',
|
|
449
|
-
'x-collection-field': "".concat(name, ".").concat(field.name, ".").concat(subField.name)
|
|
450
|
-
};
|
|
451
|
-
return {
|
|
452
|
-
name: (subField === null || subField === void 0 ? void 0 : (_subField_uiSchema = subField.uiSchema) === null || _subField_uiSchema === void 0 ? void 0 : _subField_uiSchema.title) || subField.name,
|
|
453
|
-
type: 'item',
|
|
454
|
-
title: (subField === null || subField === void 0 ? void 0 : (_subField_uiSchema1 = subField.uiSchema) === null || _subField_uiSchema1 === void 0 ? void 0 : _subField_uiSchema1.title) || subField.name,
|
|
455
|
-
Component: 'CollectionFieldInitializer',
|
|
456
|
-
remove: removeGridFormItem,
|
|
457
|
-
schemaInitialize: (s)=>{
|
|
458
|
-
var _interfaceConfig_schemaInitialize;
|
|
459
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
460
|
-
field: subField,
|
|
461
|
-
block,
|
|
462
|
-
readPretty,
|
|
463
|
-
targetCollection: getCollection(field.target)
|
|
464
|
-
});
|
|
465
|
-
},
|
|
466
|
-
schema
|
|
467
|
-
};
|
|
468
|
-
});
|
|
469
|
-
return {
|
|
470
|
-
type: 'subMenu',
|
|
471
|
-
name: (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title,
|
|
472
|
-
title: (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title,
|
|
473
|
-
children: items
|
|
474
|
-
};
|
|
475
|
-
});
|
|
476
|
-
return groups;
|
|
477
|
-
};
|
|
478
|
-
const getItem = (field, schemaName, collectionName, getCollectionFields, processedCollections)=>{
|
|
479
|
-
if ([
|
|
480
|
-
'm2o',
|
|
481
|
-
'obo'
|
|
482
|
-
].includes(field.interface)) {
|
|
483
|
-
var _field_uiSchema, _field_uiSchema1;
|
|
484
|
-
if (processedCollections.includes(field.target)) return null;
|
|
485
|
-
const subFields = getCollectionFields(field.target);
|
|
486
|
-
const options = [];
|
|
487
|
-
subFields.forEach((subField)=>{
|
|
488
|
-
if ([
|
|
489
|
-
'm2o',
|
|
490
|
-
'obo'
|
|
491
|
-
].includes(subField.interface)) {
|
|
492
|
-
options.push(getResultSchema("".concat(schemaName, ".").concat(subField.name), subField, collectionName));
|
|
493
|
-
}
|
|
494
|
-
options.push(getItem(subField, "".concat(schemaName, ".").concat(subField.name), collectionName, getCollectionFields, [
|
|
495
|
-
...processedCollections,
|
|
496
|
-
field.target
|
|
497
|
-
]));
|
|
498
|
-
});
|
|
499
|
-
return {
|
|
500
|
-
type: 'subMenu',
|
|
501
|
-
name: (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title,
|
|
502
|
-
title: (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title,
|
|
503
|
-
children: options.filter(Boolean)
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
if ((0,__WEBPACK_EXTERNAL_MODULE__filter_provider_utils_mjs__.isAssocField)(field)) return null;
|
|
507
|
-
return getResultSchema(schemaName, field, collectionName);
|
|
508
|
-
};
|
|
509
|
-
const getResultSchema = (schemaName, field, collectionName)=>{
|
|
510
|
-
var _field_uiSchema, _field_uiSchema1;
|
|
511
|
-
const schema = {
|
|
512
|
-
type: 'string',
|
|
513
|
-
name: schemaName,
|
|
514
|
-
// 'x-designer': 'FormItem.FilterFormDesigner',
|
|
515
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
516
|
-
'x-settings': 'fieldSettings:FilterFormItem',
|
|
517
|
-
'x-designer-props': {
|
|
518
|
-
// 在 useOperatorList 中使用,用于获取对应的操作符列表
|
|
519
|
-
interface: field.interface
|
|
520
|
-
},
|
|
521
|
-
'x-component': 'CollectionField',
|
|
522
|
-
'x-read-pretty': false,
|
|
523
|
-
'x-decorator': 'FormItem',
|
|
524
|
-
'x-collection-field': "".concat(collectionName, ".").concat(schemaName)
|
|
525
|
-
};
|
|
526
|
-
const result = {
|
|
527
|
-
name: ((_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title) || field.name,
|
|
528
|
-
type: 'item',
|
|
529
|
-
title: ((_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title) || field.name,
|
|
530
|
-
Component: 'CollectionFieldInitializer',
|
|
531
|
-
remove: removeGridFormItem,
|
|
532
|
-
schema
|
|
533
|
-
};
|
|
534
|
-
return result;
|
|
535
|
-
};
|
|
536
|
-
// 筛选表单相关
|
|
537
|
-
const useFilterAssociatedFormItemInitializerFields = ()=>{
|
|
538
|
-
var _fields_filter;
|
|
539
|
-
const { name, fields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
540
|
-
const { getCollectionFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
541
|
-
const interfaces = [
|
|
542
|
-
'm2o',
|
|
543
|
-
'obo'
|
|
544
|
-
];
|
|
545
|
-
const groups = fields === null || fields === void 0 ? void 0 : (_fields_filter = fields.filter((field)=>{
|
|
546
|
-
return interfaces.includes(field.interface);
|
|
547
|
-
})) === null || _fields_filter === void 0 ? void 0 : _fields_filter.map((field)=>getItem(field, field.name, name, getCollectionFields, []));
|
|
548
|
-
return groups;
|
|
549
|
-
};
|
|
550
|
-
const useInheritsFormItemInitializerFields = (options)=>{
|
|
551
|
-
const { name } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
552
|
-
const { getInterface, getInheritCollections, getCollection, getParentCollectionFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
553
|
-
const inherits = getInheritCollections(name);
|
|
554
|
-
const { snapshot } = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useActionContext)();
|
|
555
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
556
|
-
return inherits === null || inherits === void 0 ? void 0 : inherits.map((v)=>{
|
|
557
|
-
var _fields_filter;
|
|
558
|
-
const fields = getParentCollectionFields(v, name);
|
|
559
|
-
const { readPretty = form.readPretty, block = 'Form', component = 'CollectionField' } = options || {};
|
|
560
|
-
const targetCollection = getCollection(v);
|
|
561
|
-
return {
|
|
562
|
-
[targetCollection === null || targetCollection === void 0 ? void 0 : targetCollection.title]: fields === null || fields === void 0 ? void 0 : (_fields_filter = fields.filter((field)=>(field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey))) === null || _fields_filter === void 0 ? void 0 : _fields_filter.map((field)=>{
|
|
563
|
-
var _field_uiSchema, _field_uiSchema1, _field_uiSchema2, _field_uiSchema3;
|
|
564
|
-
const interfaceConfig = getInterface(field.interface);
|
|
565
|
-
const targetCollection = getCollection(field.target);
|
|
566
|
-
// const component =
|
|
567
|
-
// field.interface === 'o2m' && targetCollection?.template !== 'file' && !snapshot
|
|
568
|
-
// ? 'TableField'
|
|
569
|
-
// : 'CollectionField';
|
|
570
|
-
const schema = {
|
|
571
|
-
type: 'string',
|
|
572
|
-
name: field.name,
|
|
573
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title) || field.name,
|
|
574
|
-
// 'x-designer': 'FormItem.Designer',
|
|
575
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
576
|
-
'x-settings': 'fieldSettings:FormItem',
|
|
577
|
-
'x-component': component,
|
|
578
|
-
'x-decorator': 'FormItem',
|
|
579
|
-
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
580
|
-
'x-component-props': {},
|
|
581
|
-
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1['x-read-pretty']
|
|
582
|
-
};
|
|
583
|
-
return {
|
|
584
|
-
name: (field === null || field === void 0 ? void 0 : (_field_uiSchema2 = field.uiSchema) === null || _field_uiSchema2 === void 0 ? void 0 : _field_uiSchema2.title) || field.name,
|
|
585
|
-
type: 'item',
|
|
586
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema3 = field.uiSchema) === null || _field_uiSchema3 === void 0 ? void 0 : _field_uiSchema3.title) || field.name,
|
|
587
|
-
Component: 'CollectionFieldInitializer',
|
|
588
|
-
remove: removeGridFormItem,
|
|
589
|
-
schemaInitialize: (s)=>{
|
|
590
|
-
var _interfaceConfig_schemaInitialize;
|
|
591
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
592
|
-
field,
|
|
593
|
-
block,
|
|
594
|
-
readPretty,
|
|
595
|
-
targetCollection
|
|
596
|
-
});
|
|
597
|
-
},
|
|
598
|
-
schema
|
|
599
|
-
};
|
|
600
|
-
})
|
|
601
|
-
};
|
|
602
|
-
});
|
|
603
|
-
};
|
|
604
|
-
// 筛选表单相关
|
|
605
|
-
const useFilterInheritsFormItemInitializerFields = (options)=>{
|
|
606
|
-
const { name } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
607
|
-
const { getInterface, getInheritCollections, getCollection, getParentCollectionFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
608
|
-
const inherits = getInheritCollections(name);
|
|
609
|
-
const { snapshot } = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useActionContext)();
|
|
610
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
611
|
-
return inherits === null || inherits === void 0 ? void 0 : inherits.map((v)=>{
|
|
612
|
-
var _fields_filter;
|
|
613
|
-
const fields = getParentCollectionFields(v, name);
|
|
614
|
-
const { readPretty = form.readPretty, block = 'Form' } = options || {};
|
|
615
|
-
const targetCollection = getCollection(v);
|
|
616
|
-
return {
|
|
617
|
-
[targetCollection.title]: fields === null || fields === void 0 ? void 0 : (_fields_filter = fields.filter((field)=>{
|
|
618
|
-
var _getInterface;
|
|
619
|
-
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : field.isForeignKey) && ((_getInterface = getInterface(field.interface)) === null || _getInterface === void 0 ? void 0 : _getInterface.filterable);
|
|
620
|
-
})) === null || _fields_filter === void 0 ? void 0 : _fields_filter.map((field)=>{
|
|
621
|
-
var _field_uiSchema, _field_uiSchema1, _field_uiSchema2, _field_uiSchema3;
|
|
622
|
-
const interfaceConfig = getInterface(field.interface);
|
|
623
|
-
const targetCollection = getCollection(field.target);
|
|
624
|
-
// const component =
|
|
625
|
-
// field.interface === 'o2m' && targetCollection?.template !== 'file' && !snapshot
|
|
626
|
-
// ? 'TableField'
|
|
627
|
-
// : 'CollectionField';
|
|
628
|
-
const schema = {
|
|
629
|
-
type: 'string',
|
|
630
|
-
name: field.name,
|
|
631
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title) || field.name,
|
|
632
|
-
required: false,
|
|
633
|
-
// 'x-designer': 'FormItem.FilterFormDesigner',
|
|
634
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
635
|
-
'x-settings': 'fieldSettings:FilterFormItem',
|
|
636
|
-
'x-component': 'CollectionField',
|
|
637
|
-
'x-decorator': 'FormItem',
|
|
638
|
-
'x-collection-field': "".concat(name, ".").concat(field.name),
|
|
639
|
-
'x-component-props': {},
|
|
640
|
-
'x-read-pretty': field === null || field === void 0 ? void 0 : (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1['x-read-pretty']
|
|
641
|
-
};
|
|
642
|
-
return {
|
|
643
|
-
name: (field === null || field === void 0 ? void 0 : (_field_uiSchema2 = field.uiSchema) === null || _field_uiSchema2 === void 0 ? void 0 : _field_uiSchema2.title) || field.name,
|
|
644
|
-
type: 'item',
|
|
645
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema3 = field.uiSchema) === null || _field_uiSchema3 === void 0 ? void 0 : _field_uiSchema3.title) || field.name,
|
|
646
|
-
Component: 'CollectionFieldInitializer',
|
|
647
|
-
remove: removeGridFormItem,
|
|
648
|
-
schemaInitialize: (s)=>{
|
|
649
|
-
var _interfaceConfig_schemaInitialize;
|
|
650
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
651
|
-
field,
|
|
652
|
-
block,
|
|
653
|
-
readPretty,
|
|
654
|
-
targetCollection
|
|
655
|
-
});
|
|
656
|
-
},
|
|
657
|
-
schema
|
|
658
|
-
};
|
|
659
|
-
})
|
|
660
|
-
};
|
|
661
|
-
});
|
|
662
|
-
};
|
|
663
|
-
const useCustomFormItemInitializerFields = (options)=>{
|
|
664
|
-
var _currentFields_filter;
|
|
665
|
-
const { name, currentFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
666
|
-
const { getInterface, getCollection } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
667
|
-
const form = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useForm)();
|
|
668
|
-
const { readPretty = form.readPretty, block = 'Form' } = options || {};
|
|
669
|
-
const remove = useRemoveGridFormItem();
|
|
670
|
-
return currentFields === null || currentFields === void 0 ? void 0 : (_currentFields_filter = currentFields.filter((field)=>{
|
|
671
|
-
var _field_uiSchema;
|
|
672
|
-
return (field === null || field === void 0 ? void 0 : field.interface) && !(field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema['x-read-pretty']) && field.interface !== 'snapshot' && field.type !== 'sequence';
|
|
673
|
-
})) === null || _currentFields_filter === void 0 ? void 0 : _currentFields_filter.map((field)=>{
|
|
674
|
-
var _field_uiSchema, _field_uiSchema1, _field_uiSchema2;
|
|
675
|
-
const interfaceConfig = getInterface(field.interface);
|
|
676
|
-
const schema = {
|
|
677
|
-
type: 'string',
|
|
678
|
-
name: field.name,
|
|
679
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema = field.uiSchema) === null || _field_uiSchema === void 0 ? void 0 : _field_uiSchema.title) || field.name,
|
|
680
|
-
// 'x-designer': 'FormItem.Designer',
|
|
681
|
-
'x-toolbar': 'FormItemSchemaToolbar',
|
|
682
|
-
'x-settings': 'fieldSettings:FormItem',
|
|
683
|
-
'x-component': 'AssignedField',
|
|
684
|
-
'x-decorator': 'FormItem',
|
|
685
|
-
'x-collection-field': "".concat(name, ".").concat(field.name)
|
|
686
|
-
};
|
|
687
|
-
return {
|
|
688
|
-
name: (field === null || field === void 0 ? void 0 : (_field_uiSchema1 = field.uiSchema) === null || _field_uiSchema1 === void 0 ? void 0 : _field_uiSchema1.title) || field.name,
|
|
689
|
-
type: 'item',
|
|
690
|
-
title: (field === null || field === void 0 ? void 0 : (_field_uiSchema2 = field.uiSchema) === null || _field_uiSchema2 === void 0 ? void 0 : _field_uiSchema2.title) || field.name,
|
|
691
|
-
Component: 'CollectionFieldInitializer',
|
|
692
|
-
remove: remove,
|
|
693
|
-
schemaInitialize: (s)=>{
|
|
694
|
-
var _interfaceConfig_schemaInitialize;
|
|
695
|
-
interfaceConfig === null || interfaceConfig === void 0 ? void 0 : (_interfaceConfig_schemaInitialize = interfaceConfig.schemaInitialize) === null || _interfaceConfig_schemaInitialize === void 0 ? void 0 : _interfaceConfig_schemaInitialize.call(interfaceConfig, s, {
|
|
696
|
-
field,
|
|
697
|
-
block,
|
|
698
|
-
readPretty,
|
|
699
|
-
targetCollection: getCollection(field.target)
|
|
700
|
-
});
|
|
701
|
-
},
|
|
702
|
-
schema
|
|
703
|
-
};
|
|
704
|
-
});
|
|
705
|
-
};
|
|
706
|
-
const findSchema = (schema, key, action)=>{
|
|
707
|
-
if (!__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.Schema.isSchemaInstance(schema)) return null;
|
|
708
|
-
return schema.reduceProperties((buf, s)=>{
|
|
709
|
-
if (s[key] === action) {
|
|
710
|
-
return s;
|
|
711
|
-
}
|
|
712
|
-
if (s['x-component'] !== 'Action.Container' && s['x-component'] !== 'AssociationField.Viewer') {
|
|
713
|
-
const c = findSchema(s, key, action);
|
|
714
|
-
if (c) {
|
|
715
|
-
return c;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
return buf;
|
|
719
|
-
});
|
|
720
|
-
};
|
|
721
|
-
const removeSchema = (schema, cb)=>{
|
|
722
|
-
return cb(schema);
|
|
723
|
-
};
|
|
724
|
-
const recursiveParent = (schema)=>{
|
|
725
|
-
if (!schema.parent) return null;
|
|
726
|
-
if (schema.parent['x-initializer']) return schema.parent;
|
|
727
|
-
return recursiveParent(schema.parent);
|
|
728
|
-
};
|
|
729
|
-
const useCurrentSchema = function(action, key) {
|
|
730
|
-
let find = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : findSchema, rm = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : removeSchema;
|
|
731
|
-
const { removeActiveFieldName } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useFormActiveFields)() || {};
|
|
732
|
-
const { form } = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useFormBlockContext)();
|
|
733
|
-
let fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
|
|
734
|
-
if (!(fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-initializer']) && (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema['x-decorator']) === 'FormItem') {
|
|
735
|
-
const recursiveInitializerSchema = recursiveParent(fieldSchema);
|
|
736
|
-
if (recursiveInitializerSchema) {
|
|
737
|
-
fieldSchema = recursiveInitializerSchema;
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
const { remove } = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useDesignable)();
|
|
741
|
-
const schema = find(fieldSchema, key, action);
|
|
742
|
-
return {
|
|
743
|
-
schema,
|
|
744
|
-
exists: !!schema,
|
|
745
|
-
remove () {
|
|
746
|
-
removeActiveFieldName === null || removeActiveFieldName === void 0 ? void 0 : removeActiveFieldName(schema.name);
|
|
747
|
-
form === null || form === void 0 ? void 0 : form.query(schema.name).forEach((field)=>{
|
|
748
|
-
var _field_setInitialValue, _field_reset;
|
|
749
|
-
(_field_setInitialValue = field.setInitialValue) === null || _field_setInitialValue === void 0 ? void 0 : _field_setInitialValue.call(field, null);
|
|
750
|
-
(_field_reset = field.reset) === null || _field_reset === void 0 ? void 0 : _field_reset.call(field);
|
|
751
|
-
});
|
|
752
|
-
if (schema) {
|
|
753
|
-
rm(schema, remove);
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
/**
|
|
759
|
-
* @deprecated
|
|
760
|
-
* 待统一卡片的创建之后,将废弃该方法
|
|
761
|
-
*/ const useRecordCollectionDataSourceItems = function(componentName) {
|
|
762
|
-
let item = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, collectionName = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, resourceName = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
|
|
763
|
-
const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
764
|
-
const collection = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
765
|
-
const { getTemplatesByCollection } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
|
|
766
|
-
const templates = getTemplatesByCollection(collection.dataSource, collectionName || collection.name).filter((template)=>{
|
|
767
|
-
return componentName && template.componentName === componentName;
|
|
768
|
-
}).filter((template)=>{
|
|
769
|
-
return [
|
|
770
|
-
'FormItem',
|
|
771
|
-
'ReadPrettyFormItem'
|
|
772
|
-
].includes(componentName) || template.resourceName === resourceName;
|
|
773
|
-
});
|
|
774
|
-
if (!templates.length) {
|
|
775
|
-
return [];
|
|
776
|
-
}
|
|
777
|
-
const index = 0;
|
|
778
|
-
return [
|
|
779
|
-
{
|
|
780
|
-
key: "".concat(collectionName || componentName, "_table_blank"),
|
|
781
|
-
type: 'item',
|
|
782
|
-
name: collection.name,
|
|
783
|
-
title: t('Blank block'),
|
|
784
|
-
item
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
type: 'divider'
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
key: "".concat(collectionName || componentName, "_table_subMenu_").concat(index, "_copy"),
|
|
791
|
-
type: 'subMenu',
|
|
792
|
-
name: 'copy',
|
|
793
|
-
title: t('Duplicate template'),
|
|
794
|
-
children: templates.map((template)=>{
|
|
795
|
-
const templateName = [
|
|
796
|
-
'FormItem',
|
|
797
|
-
'ReadPrettyFormItem'
|
|
798
|
-
].includes(template === null || template === void 0 ? void 0 : template.componentName) ? "".concat(template === null || template === void 0 ? void 0 : template.name, " ").concat(t('(Fields only)')) : template === null || template === void 0 ? void 0 : template.name;
|
|
799
|
-
return {
|
|
800
|
-
type: 'item',
|
|
801
|
-
mode: 'copy',
|
|
802
|
-
name: collection.name,
|
|
803
|
-
template,
|
|
804
|
-
item,
|
|
805
|
-
title: templateName || t('Untitled')
|
|
806
|
-
};
|
|
807
|
-
})
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
key: "".concat(collectionName || componentName, "_table_subMenu_").concat(index, "_ref"),
|
|
811
|
-
type: 'subMenu',
|
|
812
|
-
name: 'ref',
|
|
813
|
-
title: t('Reference template'),
|
|
814
|
-
children: templates.map((template)=>{
|
|
815
|
-
const templateName = [
|
|
816
|
-
'FormItem',
|
|
817
|
-
'ReadPrettyFormItem'
|
|
818
|
-
].includes(template === null || template === void 0 ? void 0 : template.componentName) ? "".concat(template === null || template === void 0 ? void 0 : template.name, " ").concat(t('(Fields only)')) : template === null || template === void 0 ? void 0 : template.name;
|
|
819
|
-
return {
|
|
820
|
-
type: 'item',
|
|
821
|
-
mode: 'reference',
|
|
822
|
-
name: collection.name,
|
|
823
|
-
template,
|
|
824
|
-
item,
|
|
825
|
-
title: templateName || t('Untitled')
|
|
826
|
-
};
|
|
827
|
-
})
|
|
828
|
-
}
|
|
829
|
-
];
|
|
830
|
-
};
|
|
831
|
-
const useCollectionDataSourceItems = (param)=>{
|
|
832
|
-
let { componentName, filter = ()=>true, onlyCurrentDataSource = false, showAssociationFields, filterDataSource, dataBlockInitializerProps, hideOtherRecordsInPopup } = param;
|
|
833
|
-
const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
834
|
-
const dm = (0,__WEBPACK_EXTERNAL_MODULE__data_source_data_source_DataSourceManagerProvider_mjs__.useDataSourceManager)();
|
|
835
|
-
const dataSourceKey = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDataSourceKey)();
|
|
836
|
-
const collection = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollection)();
|
|
837
|
-
const associationFields = useAssociationFields({
|
|
838
|
-
componentName,
|
|
839
|
-
filterCollections: filter,
|
|
840
|
-
showAssociationFields
|
|
841
|
-
});
|
|
842
|
-
let allCollections = dm.getAllCollections({
|
|
843
|
-
filterCollection: (collection)=>{
|
|
844
|
-
if (onlyCurrentDataSource && collection.dataSource !== dataSourceKey) {
|
|
845
|
-
return false;
|
|
846
|
-
}
|
|
847
|
-
return filter({
|
|
848
|
-
collection
|
|
849
|
-
});
|
|
850
|
-
},
|
|
851
|
-
filterDataSource
|
|
852
|
-
});
|
|
853
|
-
if (onlyCurrentDataSource) {
|
|
854
|
-
allCollections = allCollections.filter((collection)=>collection.key === dataSourceKey);
|
|
855
|
-
}
|
|
856
|
-
const { getTemplatesByCollection } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
|
|
857
|
-
const noAssociationMenu = (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
858
|
-
return allCollections.map((param)=>{
|
|
859
|
-
let { key, displayName, collections } = param;
|
|
860
|
-
return {
|
|
861
|
-
name: key,
|
|
862
|
-
label: displayName,
|
|
863
|
-
type: 'subMenu',
|
|
864
|
-
children: [
|
|
865
|
-
...getChildren({
|
|
866
|
-
collections,
|
|
867
|
-
componentName,
|
|
868
|
-
searchValue: '',
|
|
869
|
-
dataSource: key,
|
|
870
|
-
getTemplatesByCollection,
|
|
871
|
-
t
|
|
872
|
-
}).sort((item)=>{
|
|
873
|
-
// fix
|
|
874
|
-
const inherits = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].toArray((collection === null || collection === void 0 ? void 0 : collection.inherits) || []);
|
|
875
|
-
if (item.name === (collection === null || collection === void 0 ? void 0 : collection.name) || inherits.some((inheritName)=>inheritName === item.name)) return -1;
|
|
876
|
-
})
|
|
877
|
-
]
|
|
878
|
-
};
|
|
879
|
-
});
|
|
880
|
-
}, [
|
|
881
|
-
allCollections,
|
|
882
|
-
collection === null || collection === void 0 ? void 0 : collection.inherits,
|
|
883
|
-
collection === null || collection === void 0 ? void 0 : collection.name,
|
|
884
|
-
componentName,
|
|
885
|
-
getTemplatesByCollection,
|
|
886
|
-
t
|
|
887
|
-
]);
|
|
888
|
-
//
|
|
889
|
-
// showAssociationFields 的值是固定不变的,所以在 if 语句里使用 hooks 是安全的
|
|
890
|
-
if (showAssociationFields) {
|
|
891
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
892
|
-
return (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
893
|
-
const currentRecord = {
|
|
894
|
-
name: 'currentRecord',
|
|
895
|
-
collectionName: collection.name,
|
|
896
|
-
dataSource: collection.dataSource,
|
|
897
|
-
Component: __WEBPACK_EXTERNAL_MODULE__index_mjs__.DataBlockInitializer,
|
|
898
|
-
// 目的是使点击无效
|
|
899
|
-
onClick () {},
|
|
900
|
-
componentProps: {
|
|
901
|
-
...dataBlockInitializerProps,
|
|
902
|
-
icon: null,
|
|
903
|
-
title: t('Current record'),
|
|
904
|
-
name: 'currentRecord',
|
|
905
|
-
hideSearch: false,
|
|
906
|
-
hideChildrenIfSingleCollection: true,
|
|
907
|
-
items: noAssociationMenu
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
const associationRecords = {
|
|
911
|
-
name: 'associationRecords',
|
|
912
|
-
Component: __WEBPACK_EXTERNAL_MODULE__index_mjs__.DataBlockInitializer,
|
|
913
|
-
// 目的是使点击无效
|
|
914
|
-
onClick () {},
|
|
915
|
-
componentProps: {
|
|
916
|
-
...dataBlockInitializerProps,
|
|
917
|
-
icon: null,
|
|
918
|
-
title: t('Associated records'),
|
|
919
|
-
name: 'associationRecords',
|
|
920
|
-
hideSearch: false,
|
|
921
|
-
items: [
|
|
922
|
-
{
|
|
923
|
-
name: 'associationFields',
|
|
924
|
-
label: t('Association fields'),
|
|
925
|
-
type: 'subMenu',
|
|
926
|
-
children: associationFields
|
|
927
|
-
}
|
|
928
|
-
]
|
|
929
|
-
}
|
|
930
|
-
};
|
|
931
|
-
const componentTypeMap = {
|
|
932
|
-
ReadPrettyFormItem: 'Details'
|
|
933
|
-
};
|
|
934
|
-
const otherRecords = {
|
|
935
|
-
name: 'otherRecords',
|
|
936
|
-
Component: __WEBPACK_EXTERNAL_MODULE__index_mjs__.DataBlockInitializer,
|
|
937
|
-
// 目的是使点击无效
|
|
938
|
-
onClick () {},
|
|
939
|
-
componentProps: {
|
|
940
|
-
icon: null,
|
|
941
|
-
title: t('Other records'),
|
|
942
|
-
name: 'otherRecords',
|
|
943
|
-
showAssociationFields: false,
|
|
944
|
-
onlyCurrentDataSource: false,
|
|
945
|
-
hideChildrenIfSingleCollection: false,
|
|
946
|
-
onCreateBlockSchema: dataBlockInitializerProps.onCreateBlockSchema,
|
|
947
|
-
fromOthersInPopup: true,
|
|
948
|
-
componentType: componentTypeMap[componentName] || componentName,
|
|
949
|
-
filter (param) {
|
|
950
|
-
let { collection: c, associationField } = param;
|
|
951
|
-
return true;
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
};
|
|
955
|
-
let children;
|
|
956
|
-
const _associationRecords = associationFields.length ? associationRecords : null;
|
|
957
|
-
if (noAssociationMenu[0].children.length && associationFields.length) {
|
|
958
|
-
if (hideOtherRecordsInPopup) {
|
|
959
|
-
children = [
|
|
960
|
-
currentRecord,
|
|
961
|
-
_associationRecords
|
|
962
|
-
];
|
|
963
|
-
} else {
|
|
964
|
-
children = [
|
|
965
|
-
currentRecord,
|
|
966
|
-
_associationRecords,
|
|
967
|
-
otherRecords
|
|
968
|
-
];
|
|
969
|
-
}
|
|
970
|
-
} else if (noAssociationMenu[0].children.length) {
|
|
971
|
-
if (hideOtherRecordsInPopup) {
|
|
972
|
-
// 当可选数据表只有一个时,实现只点击一次卡片 menu 就能添加卡片
|
|
973
|
-
if (noAssociationMenu[0].children.length <= 1) {
|
|
974
|
-
var _noAssociationMenu__children_;
|
|
975
|
-
noAssociationMenu[0].children = ((_noAssociationMenu__children_ = noAssociationMenu[0].children[0]) === null || _noAssociationMenu__children_ === void 0 ? void 0 : _noAssociationMenu__children_.children) || [];
|
|
976
|
-
return noAssociationMenu;
|
|
977
|
-
}
|
|
978
|
-
children = [
|
|
979
|
-
currentRecord
|
|
980
|
-
];
|
|
981
|
-
} else {
|
|
982
|
-
children = [
|
|
983
|
-
currentRecord,
|
|
984
|
-
otherRecords
|
|
985
|
-
];
|
|
986
|
-
}
|
|
987
|
-
} else {
|
|
988
|
-
if (hideOtherRecordsInPopup) {
|
|
989
|
-
children = [
|
|
990
|
-
_associationRecords
|
|
991
|
-
];
|
|
992
|
-
} else {
|
|
993
|
-
children = [
|
|
994
|
-
_associationRecords,
|
|
995
|
-
otherRecords
|
|
996
|
-
];
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
return [
|
|
1000
|
-
{
|
|
1001
|
-
name: 'records',
|
|
1002
|
-
label: t('Records'),
|
|
1003
|
-
type: 'subMenu',
|
|
1004
|
-
children: children.filter(Boolean)
|
|
1005
|
-
}
|
|
1006
|
-
];
|
|
1007
|
-
}, [
|
|
1008
|
-
associationFields,
|
|
1009
|
-
collection.dataSource,
|
|
1010
|
-
collection.name,
|
|
1011
|
-
componentName,
|
|
1012
|
-
dataBlockInitializerProps,
|
|
1013
|
-
hideOtherRecordsInPopup,
|
|
1014
|
-
noAssociationMenu,
|
|
1015
|
-
t
|
|
1016
|
-
]);
|
|
1017
|
-
}
|
|
1018
|
-
return noAssociationMenu;
|
|
1019
|
-
};
|
|
1020
|
-
/**
|
|
1021
|
-
* @deprecated
|
|
1022
|
-
* 已弃用,请使用 createDetailsUISchema 和 createDetailsWithPaginationUISchema 替代
|
|
1023
|
-
* @param options
|
|
1024
|
-
* @returns
|
|
1025
|
-
*/ const createDetailsBlockSchema = (options)=>{
|
|
1026
|
-
const { formItemInitializers = 'details:configureFields', actionInitializers = 'detailsWithPaging:configureActions', collection, dataSource, association, template, settings, action = 'list', ...others } = options;
|
|
1027
|
-
const resourceName = association || collection;
|
|
1028
|
-
const schema = {
|
|
1029
|
-
type: 'void',
|
|
1030
|
-
'x-acl-action': action === 'get' ? "".concat(resourceName, ":get") : "".concat(resourceName, ":view"),
|
|
1031
|
-
'x-decorator': 'DetailsBlockProvider',
|
|
1032
|
-
'x-decorator-props': {
|
|
1033
|
-
dataSource,
|
|
1034
|
-
collection,
|
|
1035
|
-
association,
|
|
1036
|
-
readPretty: true,
|
|
1037
|
-
action,
|
|
1038
|
-
...action === 'list' ? {
|
|
1039
|
-
params: {
|
|
1040
|
-
pageSize: 1
|
|
1041
|
-
}
|
|
1042
|
-
} : {},
|
|
1043
|
-
...others
|
|
1044
|
-
},
|
|
1045
|
-
'x-toolbar': 'BlockSchemaToolbar',
|
|
1046
|
-
'x-settings': settings,
|
|
1047
|
-
'x-component': 'CardItem',
|
|
1048
|
-
properties: {
|
|
1049
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1050
|
-
type: 'void',
|
|
1051
|
-
'x-component': 'Details',
|
|
1052
|
-
'x-use-component-props': 'useDetailsBlockProps',
|
|
1053
|
-
'x-read-pretty': true,
|
|
1054
|
-
properties: {
|
|
1055
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1056
|
-
type: 'void',
|
|
1057
|
-
'x-initializer': actionInitializers,
|
|
1058
|
-
'x-component': 'ActionBar',
|
|
1059
|
-
'x-component-props': {
|
|
1060
|
-
style: {
|
|
1061
|
-
marginBottom: 24
|
|
1062
|
-
}
|
|
1063
|
-
},
|
|
1064
|
-
properties: {}
|
|
1065
|
-
},
|
|
1066
|
-
grid: template || {
|
|
1067
|
-
type: 'void',
|
|
1068
|
-
'x-component': 'Grid',
|
|
1069
|
-
'x-initializer': formItemInitializers,
|
|
1070
|
-
properties: {}
|
|
1071
|
-
},
|
|
1072
|
-
...action === 'list' ? {
|
|
1073
|
-
pagination: {
|
|
1074
|
-
type: 'void',
|
|
1075
|
-
'x-component': 'Pagination',
|
|
1076
|
-
'x-use-component-props': 'useDetailsPaginationProps'
|
|
1077
|
-
}
|
|
1078
|
-
} : {}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
return schema;
|
|
1084
|
-
};
|
|
1085
|
-
/**
|
|
1086
|
-
* @deprecated
|
|
1087
|
-
* 已弃用,请使用 createCreateFormBlockUISchema 或者 createEditFormBlockUISchema 替代
|
|
1088
|
-
* @param options
|
|
1089
|
-
* @returns
|
|
1090
|
-
*/ const createFormBlockSchema = (options)=>{
|
|
1091
|
-
const { formItemInitializers = 'form:configureFields', actionInitializers = 'createForm:configureActions', collection, resource, dataSource, association, action, actions = {}, 'x-designer': designer = 'FormV2.Designer', template, title, settings, ...others } = options;
|
|
1092
|
-
const resourceName = resource || association || collection;
|
|
1093
|
-
const schema = {
|
|
1094
|
-
type: 'void',
|
|
1095
|
-
'x-acl-action-props': {
|
|
1096
|
-
skipScopeCheck: !action
|
|
1097
|
-
},
|
|
1098
|
-
'x-acl-action': action ? "".concat(resourceName, ":update") : "".concat(resourceName, ":create"),
|
|
1099
|
-
'x-decorator': 'FormBlockProvider',
|
|
1100
|
-
'x-decorator-props': {
|
|
1101
|
-
...others,
|
|
1102
|
-
action,
|
|
1103
|
-
dataSource,
|
|
1104
|
-
resource: resourceName,
|
|
1105
|
-
collection,
|
|
1106
|
-
association
|
|
1107
|
-
},
|
|
1108
|
-
'x-toolbar': 'BlockSchemaToolbar',
|
|
1109
|
-
...settings ? {
|
|
1110
|
-
'x-settings': settings
|
|
1111
|
-
} : {
|
|
1112
|
-
'x-designer': designer
|
|
1113
|
-
},
|
|
1114
|
-
'x-component': 'CardItem',
|
|
1115
|
-
'x-component-props': {
|
|
1116
|
-
title
|
|
1117
|
-
},
|
|
1118
|
-
properties: {
|
|
1119
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1120
|
-
type: 'void',
|
|
1121
|
-
'x-component': 'FormV2',
|
|
1122
|
-
'x-use-component-props': 'useFormBlockProps',
|
|
1123
|
-
properties: {
|
|
1124
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1125
|
-
type: 'void',
|
|
1126
|
-
'x-initializer': actionInitializers,
|
|
1127
|
-
'x-component': 'ActionBar',
|
|
1128
|
-
'x-component-props': {
|
|
1129
|
-
style: {
|
|
1130
|
-
marginBottom: 'var(--tb-spacing)'
|
|
1131
|
-
}
|
|
1132
|
-
},
|
|
1133
|
-
properties: actions
|
|
1134
|
-
},
|
|
1135
|
-
grid: template || {
|
|
1136
|
-
type: 'void',
|
|
1137
|
-
'x-component': 'Grid',
|
|
1138
|
-
'x-initializer': formItemInitializers,
|
|
1139
|
-
properties: {}
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
return schema;
|
|
1146
|
-
};
|
|
1147
|
-
/**
|
|
1148
|
-
* @deprecated
|
|
1149
|
-
* 已弃用,可以使用 createDetailsBlockSchema 替换
|
|
1150
|
-
* @param options
|
|
1151
|
-
* @returns
|
|
1152
|
-
*/ const createReadPrettyFormBlockSchema = (options)=>{
|
|
1153
|
-
const { formItemInitializers = 'details:configureFields', actionInitializers = 'details:configureActions', collection, association, dataSource, resource, template, settings, ...others } = options;
|
|
1154
|
-
const resourceName = resource || association || collection;
|
|
1155
|
-
const schema = {
|
|
1156
|
-
type: 'void',
|
|
1157
|
-
'x-acl-action': "".concat(resourceName, ":get"),
|
|
1158
|
-
'x-decorator': 'FormBlockProvider',
|
|
1159
|
-
'x-decorator-props': {
|
|
1160
|
-
resource: resourceName,
|
|
1161
|
-
collection,
|
|
1162
|
-
association,
|
|
1163
|
-
dataSource,
|
|
1164
|
-
readPretty: true,
|
|
1165
|
-
action: 'get',
|
|
1166
|
-
useParams: '{{ useParamsFromRecord }}',
|
|
1167
|
-
...others
|
|
1168
|
-
},
|
|
1169
|
-
'x-toolbar': 'BlockSchemaToolbar',
|
|
1170
|
-
'x-settings': settings,
|
|
1171
|
-
'x-component': 'CardItem',
|
|
1172
|
-
properties: {
|
|
1173
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1174
|
-
type: 'void',
|
|
1175
|
-
'x-component': 'FormV2',
|
|
1176
|
-
'x-use-component-props': 'useFormBlockProps',
|
|
1177
|
-
'x-read-pretty': true,
|
|
1178
|
-
properties: {
|
|
1179
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1180
|
-
type: 'void',
|
|
1181
|
-
'x-initializer': actionInitializers,
|
|
1182
|
-
'x-component': 'ActionBar',
|
|
1183
|
-
'x-component-props': {
|
|
1184
|
-
style: {
|
|
1185
|
-
marginBottom: 24
|
|
1186
|
-
}
|
|
1187
|
-
},
|
|
1188
|
-
properties: {}
|
|
1189
|
-
},
|
|
1190
|
-
grid: template || {
|
|
1191
|
-
type: 'void',
|
|
1192
|
-
'x-component': 'Grid',
|
|
1193
|
-
'x-initializer': formItemInitializers,
|
|
1194
|
-
properties: {}
|
|
1195
|
-
}
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1200
|
-
return schema;
|
|
1201
|
-
};
|
|
1202
|
-
/**
|
|
1203
|
-
* @deprecated
|
|
1204
|
-
* 已弃用,可以使用 createTableBlockUISchema 替换
|
|
1205
|
-
* @param options
|
|
1206
|
-
* @returns
|
|
1207
|
-
*/ const createTableBlockSchema = (options)=>{
|
|
1208
|
-
const { collection, rowKey, tableActionInitializers, tableColumnInitializers, tableActionColumnInitializers, tableBlockProvider, disableTemplate, dataSource, blockType, pageSize = 20, ...others } = options;
|
|
1209
|
-
const schema = {
|
|
1210
|
-
type: 'void',
|
|
1211
|
-
'x-decorator': tableBlockProvider !== null && tableBlockProvider !== void 0 ? tableBlockProvider : 'TableBlockProvider',
|
|
1212
|
-
'x-acl-action': "".concat(collection, ":list"),
|
|
1213
|
-
'x-decorator-props': {
|
|
1214
|
-
collection,
|
|
1215
|
-
dataSource,
|
|
1216
|
-
action: 'list',
|
|
1217
|
-
params: {
|
|
1218
|
-
pageSize
|
|
1219
|
-
},
|
|
1220
|
-
rowKey,
|
|
1221
|
-
showIndex: true,
|
|
1222
|
-
dragSort: false,
|
|
1223
|
-
disableTemplate: disableTemplate !== null && disableTemplate !== void 0 ? disableTemplate : false,
|
|
1224
|
-
blockType,
|
|
1225
|
-
...others
|
|
1226
|
-
},
|
|
1227
|
-
'x-toolbar': 'BlockSchemaToolbar',
|
|
1228
|
-
'x-settings': 'blockSettings:table',
|
|
1229
|
-
'x-component': 'CardItem',
|
|
1230
|
-
'x-filter-targets': [],
|
|
1231
|
-
properties: {
|
|
1232
|
-
actions: {
|
|
1233
|
-
type: 'void',
|
|
1234
|
-
'x-initializer': tableActionInitializers !== null && tableActionInitializers !== void 0 ? tableActionInitializers : 'table:configureActions',
|
|
1235
|
-
'x-component': 'ActionBar',
|
|
1236
|
-
'x-component-props': {
|
|
1237
|
-
style: {
|
|
1238
|
-
marginBottom: 'var(--tb-spacing)'
|
|
1239
|
-
}
|
|
1240
|
-
},
|
|
1241
|
-
properties: {}
|
|
1242
|
-
},
|
|
1243
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1244
|
-
type: 'array',
|
|
1245
|
-
'x-initializer': tableColumnInitializers !== null && tableColumnInitializers !== void 0 ? tableColumnInitializers : 'table:configureColumns',
|
|
1246
|
-
'x-component': 'TableV2',
|
|
1247
|
-
'x-use-component-props': 'useTableBlockProps',
|
|
1248
|
-
'x-component-props': {
|
|
1249
|
-
rowKey: 'id',
|
|
1250
|
-
rowSelection: {
|
|
1251
|
-
type: 'checkbox'
|
|
1252
|
-
}
|
|
1253
|
-
},
|
|
1254
|
-
properties: {
|
|
1255
|
-
actions: {
|
|
1256
|
-
type: 'void',
|
|
1257
|
-
title: '{{ t("Actions") }}',
|
|
1258
|
-
'x-action-column': 'actions',
|
|
1259
|
-
'x-decorator': 'TableV2.Column.ActionBar',
|
|
1260
|
-
'x-component': 'TableV2.Column',
|
|
1261
|
-
'x-component-props': {
|
|
1262
|
-
width: 150,
|
|
1263
|
-
fixed: 'right'
|
|
1264
|
-
},
|
|
1265
|
-
'x-designer': 'TableV2.ActionColumnDesigner',
|
|
1266
|
-
'x-initializer': tableActionColumnInitializers !== null && tableActionColumnInitializers !== void 0 ? tableActionColumnInitializers : 'table:configureItemActions',
|
|
1267
|
-
properties: {
|
|
1268
|
-
[(0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
|
|
1269
|
-
type: 'void',
|
|
1270
|
-
'x-decorator': 'DndContext',
|
|
1271
|
-
'x-component': 'Space',
|
|
1272
|
-
'x-component-props': {
|
|
1273
|
-
split: '|'
|
|
1274
|
-
},
|
|
1275
|
-
properties: {}
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
return schema;
|
|
1284
|
-
};
|
|
1285
|
-
const getChildren = (param)=>{
|
|
1286
|
-
let { collections, dataSource, componentName, searchValue, getTemplatesByCollection, t } = param;
|
|
1287
|
-
var _collections_filter;
|
|
1288
|
-
return collections === null || collections === void 0 ? void 0 : (_collections_filter = collections.filter((item)=>{
|
|
1289
|
-
if (item.inherit) {
|
|
1290
|
-
return false;
|
|
1291
|
-
}
|
|
1292
|
-
if (!item.filterTargetKey) {
|
|
1293
|
-
return false;
|
|
1294
|
-
} else if ([
|
|
1295
|
-
'Kanban',
|
|
1296
|
-
'FormItem'
|
|
1297
|
-
].includes(componentName) && (item.template === 'view' && !item.writableView || item.template === 'sql')) {
|
|
1298
|
-
return false;
|
|
1299
|
-
} else if (item.template === 'file' && [
|
|
1300
|
-
'Kanban',
|
|
1301
|
-
'FormItem',
|
|
1302
|
-
'Calendar'
|
|
1303
|
-
].includes(componentName)) {
|
|
1304
|
-
return false;
|
|
1305
|
-
} else {
|
|
1306
|
-
const title = item.title || item.tableName;
|
|
1307
|
-
if (!title) {
|
|
1308
|
-
return false;
|
|
1309
|
-
}
|
|
1310
|
-
return title.toUpperCase().includes(searchValue.toUpperCase()) && !((item === null || item === void 0 ? void 0 : item.isThrough) && (item === null || item === void 0 ? void 0 : item.autoCreate));
|
|
1311
|
-
}
|
|
1312
|
-
})) === null || _collections_filter === void 0 ? void 0 : _collections_filter.map((item, index)=>{
|
|
1313
|
-
const title = item.title || item.tableName || item.label;
|
|
1314
|
-
const templates = getTemplatesByCollection(dataSource, item.name).filter((template)=>{
|
|
1315
|
-
return componentName && template.componentName === componentName && ([
|
|
1316
|
-
'FormItem',
|
|
1317
|
-
'ReadPrettyFormItem'
|
|
1318
|
-
].includes(componentName) || !template.resourceName || template.resourceName === item.name);
|
|
1319
|
-
});
|
|
1320
|
-
if (!templates.length) {
|
|
1321
|
-
return {
|
|
1322
|
-
type: 'item',
|
|
1323
|
-
name: item.name,
|
|
1324
|
-
title,
|
|
1325
|
-
dataSource
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
return {
|
|
1329
|
-
key: "".concat(componentName, "_table_subMenu_").concat(index),
|
|
1330
|
-
type: 'subMenu',
|
|
1331
|
-
name: "".concat(item.name, "_").concat(index),
|
|
1332
|
-
title,
|
|
1333
|
-
dataSource,
|
|
1334
|
-
children: [
|
|
1335
|
-
{
|
|
1336
|
-
type: 'item',
|
|
1337
|
-
name: item.name,
|
|
1338
|
-
dataSource,
|
|
1339
|
-
title: t('Blank block')
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
type: 'divider'
|
|
1343
|
-
},
|
|
1344
|
-
{
|
|
1345
|
-
key: "".concat(componentName, "_table_subMenu_").concat(index, "_copy"),
|
|
1346
|
-
type: 'subMenu',
|
|
1347
|
-
name: 'copy',
|
|
1348
|
-
dataSource,
|
|
1349
|
-
title: t('Duplicate template'),
|
|
1350
|
-
children: templates.map((template)=>{
|
|
1351
|
-
const templateName = [
|
|
1352
|
-
'FormItem',
|
|
1353
|
-
'ReadPrettyFormItem'
|
|
1354
|
-
].includes(template === null || template === void 0 ? void 0 : template.componentName) ? "".concat(template === null || template === void 0 ? void 0 : template.name, " ").concat(t('(Fields only)')) : template === null || template === void 0 ? void 0 : template.name;
|
|
1355
|
-
return {
|
|
1356
|
-
type: 'item',
|
|
1357
|
-
mode: 'copy',
|
|
1358
|
-
name: item.name,
|
|
1359
|
-
template,
|
|
1360
|
-
dataSource,
|
|
1361
|
-
title: templateName || t('Untitled')
|
|
1362
|
-
};
|
|
1363
|
-
})
|
|
1364
|
-
},
|
|
1365
|
-
{
|
|
1366
|
-
key: "".concat(componentName, "_table_subMenu_").concat(index, "_ref"),
|
|
1367
|
-
type: 'subMenu',
|
|
1368
|
-
name: 'ref',
|
|
1369
|
-
dataSource,
|
|
1370
|
-
title: t('Reference template'),
|
|
1371
|
-
children: templates.map((template)=>{
|
|
1372
|
-
const templateName = [
|
|
1373
|
-
'FormItem',
|
|
1374
|
-
'ReadPrettyFormItem'
|
|
1375
|
-
].includes(template === null || template === void 0 ? void 0 : template.componentName) ? "".concat(template === null || template === void 0 ? void 0 : template.name, " ").concat(t('(Fields only)')) : template === null || template === void 0 ? void 0 : template.name;
|
|
1376
|
-
return {
|
|
1377
|
-
type: 'item',
|
|
1378
|
-
mode: 'reference',
|
|
1379
|
-
name: item.name,
|
|
1380
|
-
template,
|
|
1381
|
-
dataSource,
|
|
1382
|
-
title: templateName || t('Untitled')
|
|
1383
|
-
};
|
|
1384
|
-
})
|
|
1385
|
-
}
|
|
1386
|
-
]
|
|
1387
|
-
};
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
function useAssociationFields(param) {
|
|
1391
|
-
let { componentName, filterCollections, showAssociationFields } = param;
|
|
1392
|
-
const fieldSchema = (0,__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.useFieldSchema)();
|
|
1393
|
-
const { getCollectionFields } = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollectionManager_deprecated)();
|
|
1394
|
-
const collection = (0,__WEBPACK_EXTERNAL_MODULE__collection_manager_index_mjs__.useCollection_deprecated)();
|
|
1395
|
-
const cm = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useCollectionManager)();
|
|
1396
|
-
const dataSource = (0,__WEBPACK_EXTERNAL_MODULE__index_mjs__.useDataSourceKey)();
|
|
1397
|
-
const { getTemplatesByCollection } = (0,__WEBPACK_EXTERNAL_MODULE__schema_templates_index_mjs__.useSchemaTemplateManager)();
|
|
1398
|
-
const { t } = (0,__WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
1399
|
-
const compile = (0,__WEBPACK_EXTERNAL_MODULE__schema_component_index_mjs__.useCompile)();
|
|
1400
|
-
return (0,__WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
1401
|
-
if (!showAssociationFields) {
|
|
1402
|
-
return [];
|
|
1403
|
-
}
|
|
1404
|
-
let fields = [];
|
|
1405
|
-
if (fieldSchema['x-initializer']) {
|
|
1406
|
-
fields = collection.fields;
|
|
1407
|
-
} else {
|
|
1408
|
-
const collection = recursiveParent(fieldSchema.parent);
|
|
1409
|
-
if (collection) {
|
|
1410
|
-
fields = getCollectionFields(collection);
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
return fields.filter((field)=>[
|
|
1414
|
-
'linkTo',
|
|
1415
|
-
'subTable',
|
|
1416
|
-
'o2m',
|
|
1417
|
-
'm2m',
|
|
1418
|
-
'obo',
|
|
1419
|
-
'oho',
|
|
1420
|
-
'o2o',
|
|
1421
|
-
'm2o'
|
|
1422
|
-
].includes(field.interface)).filter((field)=>filterCollections({
|
|
1423
|
-
associationField: field
|
|
1424
|
-
})).map((field, index)=>{
|
|
1425
|
-
const title = compile(field.uiSchema.title || field.name);
|
|
1426
|
-
const templates = getTemplatesByCollection(dataSource, field.target).filter((template)=>{
|
|
1427
|
-
// 针对弹窗中的详情卡片
|
|
1428
|
-
if (componentName === 'ReadPrettyFormItem') {
|
|
1429
|
-
if ([
|
|
1430
|
-
'hasOne',
|
|
1431
|
-
'belongsTo'
|
|
1432
|
-
].includes(field.type)) {
|
|
1433
|
-
return template.componentName === 'ReadPrettyFormItem';
|
|
1434
|
-
} else {
|
|
1435
|
-
return template.componentName === 'Details';
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
return componentName && template.componentName === componentName && ([
|
|
1439
|
-
'FormItem',
|
|
1440
|
-
'ReadPrettyFormItem'
|
|
1441
|
-
].includes(componentName) || !template.resourceName || template.resourceName === "".concat(field.collectionName, ".").concat(field.name));
|
|
1442
|
-
});
|
|
1443
|
-
if (!templates.length) {
|
|
1444
|
-
return {
|
|
1445
|
-
type: 'item',
|
|
1446
|
-
name: "".concat(field.collectionName, ".").concat(field.name),
|
|
1447
|
-
collectionName: field.target,
|
|
1448
|
-
title,
|
|
1449
|
-
dataSource,
|
|
1450
|
-
associationField: field
|
|
1451
|
-
};
|
|
1452
|
-
}
|
|
1453
|
-
return {
|
|
1454
|
-
key: "associationFiled_".concat(componentName, "_table_subMenu_").concat(index),
|
|
1455
|
-
type: 'subMenu',
|
|
1456
|
-
name: "".concat(field.target, "_").concat(index),
|
|
1457
|
-
title,
|
|
1458
|
-
dataSource,
|
|
1459
|
-
children: [
|
|
1460
|
-
{
|
|
1461
|
-
type: 'item',
|
|
1462
|
-
name: "".concat(field.collectionName, ".").concat(field.name),
|
|
1463
|
-
collectionName: field.target,
|
|
1464
|
-
dataSource,
|
|
1465
|
-
title: t('Blank block'),
|
|
1466
|
-
associationField: field
|
|
1467
|
-
},
|
|
1468
|
-
{
|
|
1469
|
-
type: 'divider'
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
key: "associationFiled_".concat(componentName, "_table_subMenu_").concat(index, "_copy"),
|
|
1473
|
-
type: 'subMenu',
|
|
1474
|
-
name: 'copy',
|
|
1475
|
-
dataSource,
|
|
1476
|
-
title: t('Duplicate template'),
|
|
1477
|
-
children: templates.map((template)=>{
|
|
1478
|
-
const templateName = [
|
|
1479
|
-
'FormItem',
|
|
1480
|
-
'ReadPrettyFormItem'
|
|
1481
|
-
].includes(template === null || template === void 0 ? void 0 : template.componentName) ? "".concat(template === null || template === void 0 ? void 0 : template.name, " ").concat(t('(Fields only)')) : template === null || template === void 0 ? void 0 : template.name;
|
|
1482
|
-
return {
|
|
1483
|
-
type: 'item',
|
|
1484
|
-
mode: 'copy',
|
|
1485
|
-
name: "".concat(field.collectionName, ".").concat(field.name),
|
|
1486
|
-
collectionName: field.target,
|
|
1487
|
-
template,
|
|
1488
|
-
dataSource,
|
|
1489
|
-
title: templateName || t('Untitled'),
|
|
1490
|
-
associationField: field
|
|
1491
|
-
};
|
|
1492
|
-
})
|
|
1493
|
-
},
|
|
1494
|
-
{
|
|
1495
|
-
key: "associationFiled_".concat(componentName, "_table_subMenu_").concat(index, "_ref"),
|
|
1496
|
-
type: 'subMenu',
|
|
1497
|
-
name: 'ref',
|
|
1498
|
-
dataSource,
|
|
1499
|
-
title: t('Reference template'),
|
|
1500
|
-
children: templates.map((template)=>{
|
|
1501
|
-
const templateName = [
|
|
1502
|
-
'FormItem',
|
|
1503
|
-
'ReadPrettyFormItem'
|
|
1504
|
-
].includes(template === null || template === void 0 ? void 0 : template.componentName) ? "".concat(template === null || template === void 0 ? void 0 : template.name, " ").concat(t('(Fields only)')) : template === null || template === void 0 ? void 0 : template.name;
|
|
1505
|
-
return {
|
|
1506
|
-
type: 'item',
|
|
1507
|
-
mode: 'reference',
|
|
1508
|
-
name: "".concat(field.collectionName, ".").concat(field.name),
|
|
1509
|
-
collectionName: field.target,
|
|
1510
|
-
template,
|
|
1511
|
-
dataSource,
|
|
1512
|
-
title: templateName || t('Untitled'),
|
|
1513
|
-
associationField: field
|
|
1514
|
-
};
|
|
1515
|
-
})
|
|
1516
|
-
}
|
|
1517
|
-
]
|
|
1518
|
-
};
|
|
1519
|
-
});
|
|
1520
|
-
}, [
|
|
1521
|
-
cm,
|
|
1522
|
-
collection.fields,
|
|
1523
|
-
compile,
|
|
1524
|
-
componentName,
|
|
1525
|
-
dataSource,
|
|
1526
|
-
fieldSchema,
|
|
1527
|
-
filterCollections,
|
|
1528
|
-
getCollectionFields,
|
|
1529
|
-
getTemplatesByCollection,
|
|
1530
|
-
showAssociationFields,
|
|
1531
|
-
t
|
|
1532
|
-
]);
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
export { createDetailsBlockSchema, createFormBlockSchema, createReadPrettyFormBlockSchema, createTableBlockSchema, findTableColumn, gridRowColWrap, itemsMerge, removeGridFormItem, removeTableColumn, useAssociatedFormItemInitializerFields, useAssociatedTableColumnInitializerFields, useCollectionDataSourceItems, useCurrentSchema, useCustomFormItemInitializerFields, useFilterAssociatedFormItemInitializerFields, useFilterFormItemInitializerFields, useFilterInheritsFormItemInitializerFields, useFormItemInitializerFields, useInheritsFormItemInitializerFields, useInheritsTableColumnInitializerFields, useRecordCollectionDataSourceItems, useRemoveGridFormItem, useTableColumnInitializerFields };
|