@nocobase/client 2.1.0-alpha.21 → 2.1.0-alpha.23
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/ai/index.d.ts +2 -4
- package/es/api-client/APIClient.d.ts +1 -2
- package/es/application/Application.d.ts +69 -139
- package/es/application/Plugin.d.ts +2 -24
- package/es/application/PluginManager.d.ts +7 -36
- package/es/application/PluginSettingsManager.d.ts +103 -7
- package/es/application/RouteRepository.d.ts +1 -15
- package/es/application/RouterManager.d.ts +4 -44
- package/es/application/WebSocketClient.d.ts +2 -36
- package/es/application/components/index.d.ts +0 -2
- package/es/application/hooks/usePlugin.d.ts +2 -2
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/application/schema-settings/hooks/useSchemaSettingsRender.d.ts +2 -2
- package/es/application/utils/remotePlugins.d.ts +6 -6
- package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
- package/es/block-provider/TableBlockProvider.d.ts +0 -11
- package/es/block-provider/index.d.ts +1 -0
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
- package/es/collection-manager/templates/sql.d.ts +4 -4
- package/es/collection-manager/templates/view.d.ts +4 -4
- package/es/data-source/collection/utils.d.ts +3 -3
- package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
- package/es/global-theme/AntdAppProvider.d.ts +1 -10
- package/es/global-theme/compatOldTheme.d.ts +1 -3
- package/es/global-theme/customAlgorithm.d.ts +1 -7
- package/es/global-theme/defaultTheme.d.ts +1 -3
- package/es/global-theme/index.d.ts +2 -29
- package/es/global-theme/type.d.ts +1 -56
- package/es/index.d.ts +1 -1
- package/es/index.mjs +507 -1118
- package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
- package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
- package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
- package/es/plugin-manager/context.d.ts +1 -4
- package/es/pm/AdminSettingsLayoutModel.d.ts +2 -4
- package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
- package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +64 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +22 -16
- package/es/{application/components/AppComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -6
- package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
- package/es/route-switch/antd/admin-layout/index.d.ts +12 -27
- package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
- package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
- package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
- package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
- package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
- package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
- package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
- package/es/schema-component/antd/menu/Menu.d.ts +2 -2
- package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
- package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
- package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
- package/es/schema-settings/SchemaSettings.d.ts +1 -1
- package/es/style/index.d.ts +1 -1
- package/es/style/useToken.d.ts +1 -1
- package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
- package/es/{flow/components/code-editor/extension/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -1
- package/es/system-settings/index.d.ts +2 -1
- package/lib/index.js +530 -1141
- package/lib/locale/en-US.json +11 -0
- package/lib/locale/zh-CN.json +12 -1
- package/package.json +7 -6
- package/es/ai/ai-manager.d.ts +0 -15
- package/es/ai/skills-manager/index.d.ts +0 -9
- package/es/ai/skills-manager/types.d.ts +0 -23
- package/es/ai/tools-manager/hooks/context.d.ts +0 -17
- package/es/ai/tools-manager/hooks/index.d.ts +0 -11
- package/es/ai/tools-manager/hooks/provider.d.ts +0 -16
- package/es/ai/tools-manager/index.d.ts +0 -20
- package/es/ai/tools-manager/types.d.ts +0 -90
- package/es/ai/utils.d.ts +0 -10
- package/es/application/components/MainComponent.d.ts +0 -10
- package/es/application/components/defaultComponents.d.ts +0 -19
- package/es/flow/FlowModelRepository.d.ts +0 -36
- package/es/flow/FlowPage.d.ts +0 -20
- package/es/flow/actions/aclCheck.d.ts +0 -9
- package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
- package/es/flow/actions/afterSuccess.d.ts +0 -9
- package/es/flow/actions/blockHeight.d.ts +0 -9
- package/es/flow/actions/columnFixed.d.ts +0 -9
- package/es/flow/actions/confirm.d.ts +0 -9
- package/es/flow/actions/customVariable.d.ts +0 -9
- package/es/flow/actions/dataLoadingMode.d.ts +0 -9
- package/es/flow/actions/dataScope.d.ts +0 -9
- package/es/flow/actions/dateTimeFormat.d.ts +0 -9
- package/es/flow/actions/displayFieldComponent.d.ts +0 -19
- package/es/flow/actions/fieldComponent.d.ts +0 -9
- package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
- package/es/flow/actions/formAssignRules.d.ts +0 -9
- package/es/flow/actions/index.d.ts +0 -40
- package/es/flow/actions/layout.d.ts +0 -10
- package/es/flow/actions/linkageRules.d.ts +0 -23
- package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
- package/es/flow/actions/navigateToURL.d.ts +0 -9
- package/es/flow/actions/numberFormat.d.ts +0 -9
- package/es/flow/actions/openView.d.ts +0 -15
- package/es/flow/actions/overflowMode.d.ts +0 -9
- package/es/flow/actions/pattern.d.ts +0 -9
- package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
- package/es/flow/actions/renderMode.d.ts +0 -9
- package/es/flow/actions/required.d.ts +0 -9
- package/es/flow/actions/runjs.d.ts +0 -9
- package/es/flow/actions/setTargetDataScope.d.ts +0 -10
- package/es/flow/actions/showMessage.d.ts +0 -9
- package/es/flow/actions/showNotification.d.ts +0 -9
- package/es/flow/actions/sortingRules.d.ts +0 -9
- package/es/flow/actions/titleField.d.ts +0 -9
- package/es/flow/actions/validation.d.ts +0 -9
- package/es/flow/common/Liquid.d.ts +0 -33
- package/es/flow/common/Markdown/Display.d.ts +0 -9
- package/es/flow/common/Markdown/Edit.d.ts +0 -23
- package/es/flow/common/Markdown/Markdown.d.ts +0 -24
- package/es/flow/common/Markdown/style.d.ts +0 -10
- package/es/flow/common/Markdown/useCDN.d.ts +0 -9
- package/es/flow/components/BlockItemCard.d.ts +0 -16
- package/es/flow/components/ConditionBuilder.d.ts +0 -17
- package/es/flow/components/DefaultValue.d.ts +0 -20
- package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
- package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
- package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
- package/es/flow/components/FieldAssignEditor.d.ts +0 -32
- package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
- package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
- package/es/flow/components/FieldAssignValueInput.d.ts +0 -88
- package/es/flow/components/Grid/index.d.ts +0 -26
- package/es/flow/components/JsonEditor.d.ts +0 -19
- package/es/flow/components/RunJSValueEditor.d.ts +0 -19
- package/es/flow/components/SkeletonFallback.d.ts +0 -10
- package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
- package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
- package/es/flow/components/code-editor/core/tooltipParent.d.ts +0 -9
- package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
- package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
- package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
- package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
- package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
- package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
- package/es/flow/components/code-editor/index.d.ts +0 -31
- package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
- package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
- package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
- package/es/flow/components/code-editor/linter.d.ts +0 -19
- package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
- package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
- package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
- package/es/flow/components/code-editor/resolveScenes.d.ts +0 -10
- package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
- package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
- package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -46
- package/es/flow/components/code-editor/types.d.ts +0 -32
- package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
- package/es/flow/components/drag-drop/index.d.ts +0 -10
- package/es/flow/components/fieldAssignOptions.d.ts +0 -23
- package/es/flow/components/filter/FilterContainer.d.ts +0 -67
- package/es/flow/components/filter/FilterGroup.d.ts +0 -66
- package/es/flow/components/filter/FilterItem.d.ts +0 -40
- package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -51
- package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
- package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
- package/es/flow/components/filter/index.d.ts +0 -16
- package/es/flow/components/index.d.ts +0 -14
- package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
- package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
- package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
- package/es/flow/flows/openViewFlow.d.ts +0 -17
- package/es/flow/formily/ReactiveField.d.ts +0 -19
- package/es/flow/formily/index.d.ts +0 -8
- package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
- package/es/flow/index.d.ts +0 -24
- package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
- package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
- package/es/flow/internal/components/Markdown/md.d.ts +0 -11
- package/es/flow/internal/components/Markdown/style.d.ts +0 -9
- package/es/flow/internal/components/Markdown/util.d.ts +0 -15
- package/es/flow/internal/constants/HeightMode.d.ts +0 -13
- package/es/flow/internal/index.d.ts +0 -11
- package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
- package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
- package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
- package/es/flow/internal/utils/modelUtils.d.ts +0 -27
- package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
- package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
- package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
- package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
- package/es/flow/models/actions/AddChildActionModel.d.ts +0 -16
- package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
- package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -16
- package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
- package/es/flow/models/actions/EditActionModel.d.ts +0 -16
- package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
- package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
- package/es/flow/models/actions/JSActionModel.d.ts +0 -13
- package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
- package/es/flow/models/actions/JSItemActionModel.d.ts +0 -19
- package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
- package/es/flow/models/actions/LinkActionModel.d.ts +0 -15
- package/es/flow/models/actions/LinkActionUtils.d.ts +0 -34
- package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
- package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
- package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
- package/es/flow/models/actions/UpdateRecordActionUtils.d.ts +0 -12
- package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
- package/es/flow/models/actions/index.d.ts +0 -24
- package/es/flow/models/actions/joinUrlSearch.d.ts +0 -12
- package/es/flow/models/base/ActionGroupModel.d.ts +0 -36
- package/es/flow/models/base/ActionModel.d.ts +0 -45
- package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
- package/es/flow/models/base/BlockGridModel.d.ts +0 -21
- package/es/flow/models/base/BlockModel.d.ts +0 -57
- package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
- package/es/flow/models/base/CollectionBlockModel.d.ts +0 -71
- package/es/flow/models/base/CommonItemModel.d.ts +0 -11
- package/es/flow/models/base/DataBlockModel.d.ts +0 -12
- package/es/flow/models/base/FieldModel.d.ts +0 -17
- package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
- package/es/flow/models/base/GridModel.d.ts +0 -99
- package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -21
- package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
- package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
- package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
- package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
- package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -24
- package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
- package/es/flow/models/base/PageModel/index.d.ts +0 -14
- package/es/flow/models/base/PopupActionModel.d.ts +0 -13
- package/es/flow/models/base/RecordActionModel.d.ts +0 -12
- package/es/flow/models/base/RouteModel.d.ts +0 -11
- package/es/flow/models/base/index.d.ts +0 -24
- package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
- package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
- package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
- package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
- package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
- package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -41
- package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
- package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
- package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -60
- package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
- package/es/flow/models/blocks/details/index.d.ts +0 -14
- package/es/flow/models/blocks/details/utils.d.ts +0 -16
- package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
- package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
- package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
- package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -43
- package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
- package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
- package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
- package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
- package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
- package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
- package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
- package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
- package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
- package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
- package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
- package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
- package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
- package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
- package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
- package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
- package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
- package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
- package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
- package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
- package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -22
- package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -26
- package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
- package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
- package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
- package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
- package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -96
- package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
- package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
- package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
- package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
- package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
- package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
- package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
- package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
- package/es/flow/models/blocks/form/index.d.ts +0 -21
- package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
- package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
- package/es/flow/models/blocks/form/submitValues.d.ts +0 -40
- package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
- package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
- package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
- package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
- package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
- package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -132
- package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -76
- package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
- package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
- package/es/flow/models/blocks/index.d.ts +0 -15
- package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
- package/es/flow/models/blocks/js-block/index.d.ts +0 -9
- package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
- package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
- package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
- package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
- package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -68
- package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -27
- package/es/flow/models/blocks/table/TableCustomColumnModel.d.ts +0 -12
- package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +0 -19
- package/es/flow/models/blocks/table/TableSelectModel.d.ts +0 -14
- package/es/flow/models/blocks/table/dragSort/dragSortComponents.d.ts +0 -14
- package/es/flow/models/blocks/table/dragSort/dragSortHooks.d.ts +0 -13
- package/es/flow/models/blocks/table/dragSort/dragSortSettings.d.ts +0 -39
- package/es/flow/models/blocks/table/dragSort/dragSortUtils.d.ts +0 -37
- package/es/flow/models/blocks/table/dragSort/index.d.ts +0 -12
- package/es/flow/models/blocks/table/index.d.ts +0 -16
- package/es/flow/models/blocks/table/utils.d.ts +0 -18
- package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
- package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -5
- package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/popupSubTableBeforeClose.d.ts +0 -25
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
- package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -45
- package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
- package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -19
- package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
- package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -99
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -48
- package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
- package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
- package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
- package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
- package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
- package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
- package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
- package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
- package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
- package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
- package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +0 -14
- package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
- package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
- package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
- package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -14
- package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
- package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
- package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
- package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
- package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
- package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
- package/es/flow/models/fields/JSItemModel.d.ts +0 -27
- package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
- package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
- package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
- package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
- package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
- package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
- package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
- package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
- package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
- package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
- package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
- package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
- package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
- package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
- package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
- package/es/flow/models/fields/index.d.ts +0 -47
- package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
- package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
- package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
- package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
- package/es/flow/models/index.d.ts +0 -12
- package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
- package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
- package/es/flow/utils/actionCapability.d.ts +0 -60
- package/es/flow/utils/blockUtils.d.ts +0 -16
- package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
- package/es/flow/utils/index.d.ts +0 -11
- package/es/flow/utils/pagination.d.ts +0 -29
- package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
- package/es/route-switch/antd/admin-layout/AdminLayoutRouteCoordinator.d.ts +0 -50
- package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
package/es/ai/index.d.ts
CHANGED
|
@@ -6,7 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export * from './skills-manager';
|
|
12
|
-
export * from './utils';
|
|
9
|
+
export { AIManager, DefaultToolsManager, toToolsMap } from '@nocobase/client-v2';
|
|
10
|
+
export type { ToolsManager, ToolsRegistration, ToolsOptions, ToolCall, FrontendTools, BackendTools, ToolsEntry, ToolsUIProperties, DecisionActions, ToolsFilter, Scope, Permission, From, SkillsScope, SkillsEntry, SkillsFilter, } from '@nocobase/client-v2';
|
|
@@ -13,8 +13,7 @@ export declare class APIClient extends APIClientSDK {
|
|
|
13
13
|
services: Record<string, Result<any, any>>;
|
|
14
14
|
silence: boolean;
|
|
15
15
|
app: Application;
|
|
16
|
-
|
|
17
|
-
notification: any;
|
|
16
|
+
get notification(): import("antd/es/notification/interface").NotificationInstance;
|
|
18
17
|
cloneInstance(): APIClient;
|
|
19
18
|
getHostname(): string;
|
|
20
19
|
getHeaders(): {};
|
|
@@ -6,205 +6,135 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
import { BaseApplication, type BaseApplicationOptions, type ComponentAndProps, type WebSocketClientOptions } from '@nocobase/client-v2';
|
|
9
10
|
import { APIClientOptions } from '@nocobase/sdk';
|
|
10
11
|
import { i18n as i18next } from 'i18next';
|
|
11
|
-
import
|
|
12
|
+
import type { ComponentType } from 'react';
|
|
12
13
|
import { APIClient } from '../api-client';
|
|
13
|
-
import {
|
|
14
|
+
import type { CollectionFieldInterfaceFactory } from '../data-source';
|
|
15
|
+
import { CollectionFieldInterfaceComponentOption } from '../data-source/collection-field-interface/CollectionFieldInterface';
|
|
16
|
+
import { DataSourceManager, type DataSourceManagerOptions } from '../data-source/data-source/DataSourceManager';
|
|
17
|
+
import { PluginManager, type PluginType } from './PluginManager';
|
|
18
|
+
import type { PluginClass } from './PluginManager';
|
|
14
19
|
import { PluginSettingOptions, PluginSettingsManager } from './PluginSettingsManager';
|
|
15
|
-
import {
|
|
16
|
-
import { WebSocketClient, WebSocketClientOptions } from './WebSocketClient';
|
|
20
|
+
import { RouterManager, type RouterOptions } from './RouterManager';
|
|
17
21
|
import { SchemaInitializer, SchemaInitializerManager } from './schema-initializer';
|
|
18
22
|
import { SchemaSettings, SchemaSettingsItemType, SchemaSettingsManager } from './schema-settings';
|
|
19
|
-
import { CollectionFieldInterfaceComponentOption } from '../data-source/collection-field-interface/CollectionFieldInterface';
|
|
20
|
-
import { DataSourceManager, type DataSourceManagerOptions } from '../data-source/data-source/DataSourceManager';
|
|
21
|
-
import { FlowEngine, FlowEngineContext, FlowModel } from '@nocobase/flow-engine';
|
|
22
|
-
import type { CollectionFieldInterfaceFactory } from '../data-source';
|
|
23
|
-
import type { Plugin } from './Plugin';
|
|
24
|
-
import type { RequireJS } from './utils/requirejs';
|
|
25
|
-
import { AIManager } from '../ai';
|
|
26
23
|
type JsonLogic = {
|
|
27
24
|
addOperation: (name: string, fn?: any) => void;
|
|
28
25
|
rmOperation: (name: string) => void;
|
|
29
26
|
};
|
|
30
|
-
declare global {
|
|
31
|
-
interface Window {
|
|
32
|
-
define: RequireJS['define'];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
export type DevDynamicImport = (packageName: string) => Promise<{
|
|
36
|
-
default: typeof Plugin;
|
|
37
|
-
}>;
|
|
38
|
-
export type ComponentAndProps<T = any> = [ComponentType, T];
|
|
39
|
-
export interface ApplicationOptions {
|
|
40
|
-
name?: string;
|
|
41
|
-
publicPath?: string;
|
|
42
|
-
apiClient?: APIClientOptions | APIClient;
|
|
43
|
-
ws?: WebSocketClientOptions | boolean;
|
|
44
|
-
i18n?: i18next;
|
|
45
|
-
providers?: (ComponentType | ComponentAndProps)[];
|
|
46
|
-
plugins?: PluginType[];
|
|
47
|
-
components?: Record<string, ComponentType>;
|
|
48
|
-
scopes?: Record<string, any>;
|
|
49
|
-
router?: RouterOptions;
|
|
50
|
-
pluginSettings?: Record<string, PluginSettingOptions>;
|
|
51
|
-
schemaSettings?: SchemaSettings[];
|
|
52
|
-
schemaInitializers?: SchemaInitializer[];
|
|
53
|
-
designable?: boolean;
|
|
54
|
-
loadRemotePlugins?: boolean;
|
|
55
|
-
devDynamicImport?: DevDynamicImport;
|
|
56
|
-
dataSourceManager?: DataSourceManagerOptions;
|
|
57
|
-
disableAcl?: boolean;
|
|
58
|
-
}
|
|
59
27
|
/**
|
|
60
28
|
* Reference: https://ant.design/components/cascader-cn#option
|
|
61
29
|
*/
|
|
62
30
|
interface VariableOption {
|
|
63
|
-
/** Unique identifier of the variable */
|
|
64
31
|
value: string | number;
|
|
65
|
-
/** Variable name displayed in UI */
|
|
66
32
|
label?: React.ReactNode;
|
|
67
33
|
disabled?: boolean;
|
|
68
34
|
children?: VariableOption[];
|
|
69
35
|
}
|
|
70
36
|
interface Variable {
|
|
71
|
-
/** Unique identifier of the variable */
|
|
72
37
|
name: string;
|
|
73
|
-
/** Variable configuration options */
|
|
74
38
|
useOption: () => {
|
|
75
39
|
option: VariableOption;
|
|
76
40
|
visible?: boolean;
|
|
77
41
|
};
|
|
78
|
-
/** Variable context */
|
|
79
42
|
useCtx: () => any | ((param: {
|
|
80
43
|
variableName: string;
|
|
81
44
|
}) => Promise<any>);
|
|
82
45
|
}
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
i18n
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
components
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
46
|
+
export type { ComponentAndProps };
|
|
47
|
+
export type DevDynamicImport = (packageName: string) => Promise<{
|
|
48
|
+
default: PluginClass;
|
|
49
|
+
}>;
|
|
50
|
+
export interface ApplicationOptions extends BaseApplicationOptions<PluginType> {
|
|
51
|
+
apiClient?: APIClientOptions | APIClient;
|
|
52
|
+
ws?: WebSocketClientOptions | boolean;
|
|
53
|
+
i18n?: i18next;
|
|
54
|
+
providers?: (ComponentType | ComponentAndProps)[];
|
|
55
|
+
plugins?: PluginType[];
|
|
56
|
+
components?: Record<string, ComponentType>;
|
|
57
|
+
scopes?: Record<string, any>;
|
|
58
|
+
router?: RouterOptions;
|
|
59
|
+
pluginSettings?: Record<string, PluginSettingOptions>;
|
|
60
|
+
schemaSettings?: SchemaSettings[];
|
|
61
|
+
schemaInitializers?: SchemaInitializer[];
|
|
62
|
+
dataSourceManager?: DataSourceManagerOptions;
|
|
63
|
+
}
|
|
64
|
+
export declare class Application extends BaseApplication<ApplicationOptions, PluginManager, RouterManager, APIClient, PluginSettingsManager> {
|
|
65
|
+
devDynamicImport?: DevDynamicImport;
|
|
99
66
|
schemaInitializerManager: SchemaInitializerManager;
|
|
100
67
|
schemaSettingsManager: SchemaSettingsManager;
|
|
101
68
|
dataSourceManager: DataSourceManager;
|
|
102
|
-
name: string;
|
|
103
|
-
favicon: string;
|
|
104
69
|
globalVars: Record<string, any>;
|
|
105
70
|
globalVarCtxs: Record<string, any>;
|
|
106
71
|
jsonLogic: JsonLogic;
|
|
107
|
-
flowEngine: FlowEngine;
|
|
108
|
-
model: ApplicationModel;
|
|
109
|
-
context: FlowEngineContext & {
|
|
110
|
-
pluginSettingsRouter: PluginSettingsManager;
|
|
111
|
-
pluginManager: PluginManager;
|
|
112
|
-
};
|
|
113
72
|
loading: boolean;
|
|
114
|
-
maintained: boolean;
|
|
115
|
-
maintaining: boolean;
|
|
116
|
-
error: any;
|
|
117
73
|
hasLoadError: boolean;
|
|
118
74
|
locales: any;
|
|
119
|
-
private wsAuthorized;
|
|
120
75
|
private readonly variables;
|
|
121
|
-
|
|
122
|
-
|
|
76
|
+
protected initRequireJs(): void;
|
|
77
|
+
protected defineObservableState(): void;
|
|
78
|
+
protected createApiClient(options: ApplicationOptions): APIClient;
|
|
79
|
+
protected createI18n(options: ApplicationOptions): i18next;
|
|
80
|
+
protected createRouterManager(options: ApplicationOptions): RouterManager;
|
|
81
|
+
protected createPluginManager(options: ApplicationOptions): PluginManager;
|
|
82
|
+
protected createPluginSettingsManager(options: ApplicationOptions): PluginSettingsManager;
|
|
83
|
+
protected getDefaultComponents(): {
|
|
84
|
+
DataBlockProvider: import("react").FC<Partial<import("../data-source").AllDataBlockProps>>;
|
|
85
|
+
SchemaInitializerActionModal: import("react").FC<import("./schema-initializer").SchemaInitializerActionModalProps>;
|
|
86
|
+
SchemaInitializerActionModalInternal: () => import("react").JSX.Element;
|
|
87
|
+
SchemaInitializerChildren: import("react").FC<{
|
|
88
|
+
children: import("./schema-initializer").SchemaInitializerItemType[];
|
|
89
|
+
}>;
|
|
90
|
+
SchemaInitializerChild: import("react").FC<import("./schema-initializer").SchemaInitializerItemType>;
|
|
91
|
+
SchemaInitializerDivider: () => import("react").JSX.Element;
|
|
92
|
+
SchemaInitializerItem: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./schema-initializer").SchemaInitializerItemProps & import("react").RefAttributes<any>>>;
|
|
93
|
+
SchemaInitializerItemGroup: import("react").FC<import("./schema-initializer").SchemaInitializerItemGroupProps>;
|
|
94
|
+
SchemaInitializerItemGroupInternal: () => import("react").JSX.Element;
|
|
95
|
+
SchemaInitializerItemInternal: () => import("react").JSX.Element;
|
|
96
|
+
SchemaInitializerItems: import("react").FC<{
|
|
97
|
+
options?: import("./schema-initializer").SchemaInitializerOptions<import("antd").ButtonProps, {}>;
|
|
98
|
+
items?: import("./schema-initializer").SchemaInitializerItemType<any>[];
|
|
99
|
+
}>;
|
|
100
|
+
SchemaInitializerSelect: import("react").FC<import("./schema-initializer").SchemaInitializerSelectItemProps>;
|
|
101
|
+
SchemaInitializerSelectInternal: () => import("react").JSX.Element;
|
|
102
|
+
SchemaInitializerSubMenu: import("react").FC<import("./schema-initializer").SchemaInitializerSubMenuProps>;
|
|
103
|
+
SchemaInitializerSubMenuInternal: () => import("react").JSX.Element;
|
|
104
|
+
SchemaInitializerSwitch: import("react").FC<import("./schema-initializer").SchemaInitializerSwitchItemProps>;
|
|
105
|
+
SchemaInitializerSwitchInternal: () => import("react").JSX.Element;
|
|
106
|
+
CollectionField: import("react").ForwardRefExoticComponent<Omit<Partial<any>, "ref"> & import("react").RefAttributes<unknown>>;
|
|
123
107
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
setWsAuthorized(authorized: boolean): void;
|
|
129
|
-
constructor(options?: ApplicationOptions);
|
|
130
|
-
private initListeners;
|
|
131
|
-
protected setTokenInWebSocket(options: {
|
|
132
|
-
token: string;
|
|
133
|
-
authenticator: string;
|
|
134
|
-
}): void;
|
|
135
|
-
setMaintaining(maintaining: boolean): void;
|
|
136
|
-
private initRequireJs;
|
|
137
|
-
private addDefaultProviders;
|
|
138
|
-
private addReactRouterComponents;
|
|
139
|
-
private addRoutes;
|
|
140
|
-
getOptions(): ApplicationOptions;
|
|
141
|
-
getName(): string;
|
|
142
|
-
getPublicPath(): string;
|
|
143
|
-
getApiUrl(pathname?: string): string;
|
|
144
|
-
getRouteUrl(pathname: string): string;
|
|
145
|
-
getHref(pathname: string): string;
|
|
108
|
+
protected initializeExtendedState(): void;
|
|
109
|
+
protected afterManagersInitialized(): void;
|
|
110
|
+
protected addCustomProviders(): void;
|
|
111
|
+
protected getRootFallback(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
146
112
|
getCollectionManager(dataSource?: string): import("../data-source").CollectionManager;
|
|
147
|
-
/**
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
150
|
-
getComposeProviders(): React.FC;
|
|
151
|
-
use<T = any>(component: ComponentType, props?: T): number;
|
|
152
|
-
addProvider<T = any>(component: ComponentType, props?: T): number;
|
|
153
|
-
addProviders(providers: (ComponentType | [ComponentType, any])[]): void;
|
|
154
113
|
load(): Promise<void>;
|
|
155
114
|
loadWebSocket(): Promise<void>;
|
|
156
|
-
getComponent<T = any>(Component: ComponentTypeAndString<T>, isShowError?: boolean): ComponentType<T> | undefined;
|
|
157
|
-
renderComponent<T extends {}>(Component: ComponentTypeAndString, props?: T, children?: ReactNode): ReactElement;
|
|
158
|
-
/**
|
|
159
|
-
* @internal use addComponents({ SomeComponent }) instead
|
|
160
|
-
*/
|
|
161
|
-
protected addComponent(component: ComponentType, name?: string): void;
|
|
162
|
-
addComponents(components: Record<string, ComponentType>): void;
|
|
163
115
|
addScopes(scopes: Record<string, any>): void;
|
|
164
|
-
getRootComponent(): React.FC<{
|
|
165
|
-
children?: React.ReactNode;
|
|
166
|
-
}>;
|
|
167
|
-
mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
|
|
168
116
|
addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
|
|
117
|
+
addFieldInterfaceGroups(groups: Record<string, {
|
|
118
|
+
label: string;
|
|
119
|
+
order?: number;
|
|
120
|
+
}>): void;
|
|
169
121
|
addFieldInterfaceComponentOption(fieldName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
|
|
170
122
|
/**
|
|
171
123
|
* 为指定的字段接口添加操作符选项
|
|
172
124
|
*
|
|
173
125
|
* @param name 字段接口的名称
|
|
174
126
|
* @param operatorOption 要添加的操作符选项
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* // 为"单行文本"类型字段添加"等于任意一个"操作符
|
|
178
|
-
* app.addFieldInterfaceOperator('input', {
|
|
179
|
-
* label: '{{t("equals any of")}}',
|
|
180
|
-
* value: '$in',
|
|
181
|
-
* });
|
|
182
127
|
*/
|
|
183
128
|
addFieldInterfaceOperator(name: string, operatorOption: any): void;
|
|
184
129
|
addGlobalVar(key: string, value: any, varCtx?: any): void;
|
|
185
|
-
getGlobalVar(key:
|
|
186
|
-
getGlobalVarCtx(key:
|
|
130
|
+
getGlobalVar(key: string): any;
|
|
131
|
+
getGlobalVarCtx(key: string): any;
|
|
187
132
|
addUserCenterSettingsItem(item: SchemaSettingsItemType & {
|
|
188
133
|
aclSnippet?: string;
|
|
189
134
|
}): void;
|
|
190
|
-
/**
|
|
191
|
-
* Register a variable for use in the frontend
|
|
192
|
-
*
|
|
193
|
-
* Note: It is not recommended to register variables in components as it may cause rendering errors
|
|
194
|
-
* @param variable
|
|
195
|
-
* @returns
|
|
196
|
-
*/
|
|
197
135
|
registerVariable(variable: Variable): void;
|
|
198
|
-
/**
|
|
199
|
-
* Get all registered variables
|
|
200
|
-
* @returns
|
|
201
|
-
*/
|
|
202
136
|
getVariables(): Variable[];
|
|
203
137
|
setAppsComponent({ Component }: {
|
|
204
138
|
Component: ComponentType;
|
|
205
139
|
}): void;
|
|
206
140
|
}
|
|
207
|
-
declare class ApplicationModel extends FlowModel {
|
|
208
|
-
render(): React.JSX.Element;
|
|
209
|
-
}
|
|
210
|
-
export {};
|
|
@@ -6,29 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import { TFuncKey, TOptions } from 'i18next';
|
|
10
9
|
import type { Application } from './Application';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
protected app: Application;
|
|
14
|
-
constructor(options: T, app: Application);
|
|
15
|
-
get pluginManager(): import("./PluginManager").PluginManager;
|
|
16
|
-
get context(): import("@nocobase/flow-engine").FlowEngineContext & {
|
|
17
|
-
pluginSettingsRouter: import("./PluginSettingsManager").PluginSettingsManager;
|
|
18
|
-
pluginManager: import("./PluginManager").PluginManager;
|
|
19
|
-
};
|
|
20
|
-
get flowEngine(): import("@nocobase/flow-engine").FlowEngine;
|
|
21
|
-
get engine(): import("@nocobase/flow-engine").FlowEngine;
|
|
22
|
-
get ai(): import("..").AIManager;
|
|
23
|
-
get pm(): import("./PluginManager").PluginManager;
|
|
24
|
-
get router(): import("./RouterManager").RouterManager;
|
|
25
|
-
get pluginSettingsManager(): import("./PluginSettingsManager").PluginSettingsManager;
|
|
26
|
-
get pluginSettingsRouter(): import("./PluginSettingsManager").PluginSettingsManager;
|
|
27
|
-
get schemaInitializerManager(): import("./schema-initializer").SchemaInitializerManager;
|
|
28
|
-
get schemaSettingsManager(): import("./schema-settings").SchemaSettingsManager;
|
|
29
|
-
get dataSourceManager(): import("..").DataSourceManager;
|
|
30
|
-
afterAdd(): Promise<void>;
|
|
31
|
-
beforeLoad(): Promise<void>;
|
|
32
|
-
load(): Promise<void>;
|
|
33
|
-
t(text: TFuncKey | TFuncKey[], options?: TOptions): import("i18next").TFunctionDetailedResult<object>;
|
|
10
|
+
import { Plugin as BasePlugin, PluginOptions } from '@nocobase/client-v2';
|
|
11
|
+
export declare class Plugin<T extends PluginOptions = PluginOptions> extends BasePlugin<T, Application> {
|
|
34
12
|
}
|
|
@@ -6,41 +6,12 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
import { PluginManager as BasePluginManager, type PluginClass as BasePluginClass, type PluginType as BasePluginType } from '@nocobase/client-v2';
|
|
9
10
|
import type { Application } from './Application';
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type PluginType<Opts = any> = typeof Plugin | [typeof Plugin<Opts>, PluginOptions<Opts>];
|
|
17
|
-
export type PluginData = {
|
|
18
|
-
name: string;
|
|
19
|
-
packageName: string;
|
|
20
|
-
version: string;
|
|
21
|
-
url: string;
|
|
22
|
-
type: 'local' | 'upload' | 'npm';
|
|
23
|
-
};
|
|
24
|
-
export declare class PluginManager {
|
|
25
|
-
protected _plugins: PluginType[];
|
|
26
|
-
protected loadRemotePlugins: boolean;
|
|
27
|
-
protected app: Application;
|
|
28
|
-
protected pluginInstances: Map<typeof Plugin, Plugin>;
|
|
29
|
-
protected pluginsAliases: Record<string, Plugin>;
|
|
30
|
-
private initPlugins;
|
|
31
|
-
constructor(_plugins: PluginType[], loadRemotePlugins: boolean, app: Application);
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
init(_plugins: PluginType[]): Promise<void>;
|
|
36
|
-
private initStaticPlugins;
|
|
37
|
-
private initRemotePlugins;
|
|
38
|
-
add<T = any>(plugin: typeof Plugin, opts?: PluginOptions<T>): Promise<void>;
|
|
39
|
-
get<T extends typeof Plugin>(PluginClass: T): InstanceType<T>;
|
|
40
|
-
get<T extends {}>(name: string): T;
|
|
41
|
-
private getInstance;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
load(): Promise<void>;
|
|
11
|
+
export type { PluginData, PluginOptions } from '@nocobase/client-v2';
|
|
12
|
+
export type PluginClass<Opts = any> = BasePluginClass<Opts, Application>;
|
|
13
|
+
export type PluginType<Opts = any> = BasePluginType<Opts, Application>;
|
|
14
|
+
export declare class PluginManager extends BasePluginManager<Application> {
|
|
15
|
+
protected getRemotePluginsRequestUrl(): string;
|
|
16
|
+
protected initRemotePlugins(): Promise<void>;
|
|
46
17
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import { type ReactNode } from 'react';
|
|
10
10
|
import type { Application } from './Application';
|
|
11
11
|
import type { RouteType } from './RouterManager';
|
|
12
12
|
export declare const ADMIN_SETTINGS_KEY = "admin.settings.";
|
|
@@ -18,7 +18,8 @@ export interface PluginSettingOptions {
|
|
|
18
18
|
* @default Outlet
|
|
19
19
|
*/
|
|
20
20
|
Component?: RouteType['Component'];
|
|
21
|
-
|
|
21
|
+
componentLoader?: RouteType['componentLoader'];
|
|
22
|
+
icon?: string | ReactNode;
|
|
22
23
|
/**
|
|
23
24
|
* sort, the smaller the number, the higher the priority
|
|
24
25
|
* @default 0
|
|
@@ -31,11 +32,11 @@ export interface PluginSettingOptions {
|
|
|
31
32
|
[index: string]: any;
|
|
32
33
|
}
|
|
33
34
|
export interface PluginSettingsPageType {
|
|
34
|
-
label?: string |
|
|
35
|
-
title: string |
|
|
35
|
+
label?: string | ReactNode;
|
|
36
|
+
title: string | ReactNode;
|
|
36
37
|
link?: string;
|
|
37
38
|
key: string;
|
|
38
|
-
icon:
|
|
39
|
+
icon: ReactNode;
|
|
39
40
|
path: string;
|
|
40
41
|
sort?: number;
|
|
41
42
|
name?: string;
|
|
@@ -45,23 +46,118 @@ export interface PluginSettingsPageType {
|
|
|
45
46
|
children?: PluginSettingsPageType[];
|
|
46
47
|
[index: string]: any;
|
|
47
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* client-v1 兼容版插件设置管理器。
|
|
51
|
+
*
|
|
52
|
+
* 继续保留旧的 dotted-key 注册协议,与 client-v2 的新两层实现完全脱钩。
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* app.pluginSettingsManager.add('system.test', { title: 'Test', Component: DemoPage });
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
48
59
|
export declare class PluginSettingsManager {
|
|
49
60
|
protected settings: Record<string, PluginSettingOptions>;
|
|
50
61
|
protected aclSnippets: string[];
|
|
51
62
|
app: Application;
|
|
52
63
|
private cachedList;
|
|
53
|
-
constructor(_pluginSettings: Record<string, PluginSettingOptions
|
|
64
|
+
constructor(_pluginSettings: Record<string, PluginSettingOptions> | undefined, app: Application);
|
|
65
|
+
/**
|
|
66
|
+
* 渲染图标字符串为 Icon 组件。
|
|
67
|
+
*
|
|
68
|
+
* @param {PluginSettingOptions['icon']} icon 图标定义
|
|
69
|
+
* @returns {ReactNode} 图标节点
|
|
70
|
+
*/
|
|
71
|
+
protected renderIcon(icon: PluginSettingOptions['icon']): ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* 清理缓存。
|
|
74
|
+
*
|
|
75
|
+
* @returns {void}
|
|
76
|
+
*/
|
|
54
77
|
clearCache(): void;
|
|
78
|
+
/**
|
|
79
|
+
* 设置 ACL snippets。
|
|
80
|
+
*
|
|
81
|
+
* @param {string[]} aclSnippets snippets 列表
|
|
82
|
+
* @returns {void}
|
|
83
|
+
*/
|
|
55
84
|
setAclSnippets(aclSnippets: string[]): void;
|
|
85
|
+
/**
|
|
86
|
+
* 获取 ACL snippet。
|
|
87
|
+
*
|
|
88
|
+
* @param {string} name settings 名称
|
|
89
|
+
* @returns {string | null} snippet
|
|
90
|
+
*/
|
|
56
91
|
getAclSnippet(name: string): string;
|
|
92
|
+
/**
|
|
93
|
+
* 获取 route name。
|
|
94
|
+
*
|
|
95
|
+
* @param {string} name settings 名称
|
|
96
|
+
* @returns {string} route name
|
|
97
|
+
*/
|
|
57
98
|
getRouteName(name: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* 获取 route path。
|
|
101
|
+
*
|
|
102
|
+
* @param {string} name settings 名称
|
|
103
|
+
* @returns {string} route path
|
|
104
|
+
*/
|
|
58
105
|
getRoutePath(name: string): string;
|
|
106
|
+
/**
|
|
107
|
+
* 追加 settings 配置。
|
|
108
|
+
*
|
|
109
|
+
* @param {string} name dotted settings key
|
|
110
|
+
* @param {PluginSettingOptions} options 配置项
|
|
111
|
+
* @returns {void}
|
|
112
|
+
*/
|
|
59
113
|
add(name: string, options: PluginSettingOptions): void;
|
|
114
|
+
/**
|
|
115
|
+
* 删除 settings 配置。
|
|
116
|
+
*
|
|
117
|
+
* @param {string} name settings 名称
|
|
118
|
+
* @returns {void}
|
|
119
|
+
*/
|
|
60
120
|
remove(name: string): void;
|
|
121
|
+
/**
|
|
122
|
+
* 判断 ACL 是否允许。
|
|
123
|
+
*
|
|
124
|
+
* @param {string} name settings 名称
|
|
125
|
+
* @returns {boolean} 是否允许
|
|
126
|
+
*/
|
|
61
127
|
hasAuth(name: string): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* 获取内部原始设置。
|
|
130
|
+
*
|
|
131
|
+
* @param {string} name settings 名称
|
|
132
|
+
* @returns {PluginSettingOptions | undefined} 原始设置
|
|
133
|
+
*/
|
|
62
134
|
getSetting(name: string): PluginSettingOptions;
|
|
135
|
+
/**
|
|
136
|
+
* 判断配置是否存在且可访问。
|
|
137
|
+
*
|
|
138
|
+
* @param {string} name settings 名称
|
|
139
|
+
* @returns {boolean} 是否存在
|
|
140
|
+
*/
|
|
63
141
|
has(name: string): boolean;
|
|
64
|
-
|
|
142
|
+
/**
|
|
143
|
+
* 获取 settings 快照。
|
|
144
|
+
*
|
|
145
|
+
* @param {string} name settings 名称
|
|
146
|
+
* @param {boolean} [filterAuth=true] 是否过滤 ACL
|
|
147
|
+
* @returns {PluginSettingsPageType | null} settings 快照
|
|
148
|
+
*/
|
|
149
|
+
get(name: string, filterAuth?: boolean): PluginSettingsPageType | null;
|
|
150
|
+
/**
|
|
151
|
+
* 获取顶级 settings 列表。
|
|
152
|
+
*
|
|
153
|
+
* @param {boolean} [filterAuth=true] 是否过滤 ACL
|
|
154
|
+
* @returns {PluginSettingsPageType[]} 顶级列表
|
|
155
|
+
*/
|
|
65
156
|
getList(filterAuth?: boolean): PluginSettingsPageType[];
|
|
157
|
+
/**
|
|
158
|
+
* 获取所有 ACL snippets。
|
|
159
|
+
*
|
|
160
|
+
* @returns {(string | null)[]} snippet 列表
|
|
161
|
+
*/
|
|
66
162
|
getAclSnippets(): string[];
|
|
67
163
|
}
|
|
@@ -6,18 +6,4 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
id: string;
|
|
11
|
-
schemaUid: string;
|
|
12
|
-
children?: RouteOptions[];
|
|
13
|
-
};
|
|
14
|
-
export declare class RouteRepository {
|
|
15
|
-
protected ctx: any;
|
|
16
|
-
routes: Array<RouteOptions>;
|
|
17
|
-
constructor(ctx: any);
|
|
18
|
-
setRoutes(routes: Array<any>): void;
|
|
19
|
-
listAccessible(): RouteOptions[];
|
|
20
|
-
getRouteBySchemaUid(schemaUid: string): RouteOptions | undefined;
|
|
21
|
-
private findRoute;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
9
|
+
export { RouteRepository } from '@nocobase/client-v2';
|
|
@@ -6,56 +6,16 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import { RouterManager as BaseRouterManager, type RouterOptions } from '@nocobase/client-v2';
|
|
10
|
+
import React, { type ComponentType } from 'react';
|
|
11
11
|
import { Application } from './Application';
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export interface HashRouterOptions extends Omit<HashRouterProps, 'children'> {
|
|
16
|
-
type?: 'hash';
|
|
17
|
-
}
|
|
18
|
-
export interface MemoryRouterOptions extends Omit<MemoryRouterProps, 'children'> {
|
|
19
|
-
type?: 'memory';
|
|
20
|
-
}
|
|
21
|
-
export type RouterOptions = (HashRouterOptions | BrowserRouterOptions | MemoryRouterOptions) & {
|
|
22
|
-
renderComponent?: RenderComponentType;
|
|
23
|
-
routes?: Record<string, RouteType>;
|
|
24
|
-
};
|
|
25
|
-
export type ComponentTypeAndString<T = any> = ComponentType<T> | string;
|
|
26
|
-
export interface RouteType extends Omit<RouteObject, 'children' | 'Component'> {
|
|
27
|
-
Component?: ComponentTypeAndString;
|
|
28
|
-
skipAuthCheck?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export type RenderComponentType = (Component: ComponentTypeAndString, props?: any) => React.ReactNode;
|
|
31
|
-
export declare class RouterManager {
|
|
32
|
-
protected routes: Record<string, RouteType>;
|
|
33
|
-
protected options: RouterOptions;
|
|
34
|
-
app: Application;
|
|
35
|
-
router: any;
|
|
36
|
-
get basename(): any;
|
|
37
|
-
get state(): any;
|
|
38
|
-
get navigate(): any;
|
|
39
|
-
constructor(options: RouterOptions, app: Application);
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
|
-
getRoutesTree(): RouteObject[];
|
|
44
|
-
getRoutes(): Record<string, RouteType>;
|
|
45
|
-
setType(type: RouterOptions['type']): void;
|
|
46
|
-
getBasename(): string;
|
|
47
|
-
setBasename(basename: string): void;
|
|
48
|
-
matchRoutes(pathname: string): import("@remix-run/router").AgnosticRouteMatch<string, RouteType>[];
|
|
49
|
-
isSkippedAuthCheckRoute(pathname: string): boolean;
|
|
12
|
+
export type { BrowserRouterOptions, HashRouterOptions, MemoryRouterOptions, RouterOptions, ComponentTypeAndString, ComponentLoaderResult, ComponentLoader, RouteType, RenderComponentType, } from '@nocobase/client-v2';
|
|
13
|
+
export declare class RouterManager extends BaseRouterManager<Application> {
|
|
50
14
|
/**
|
|
51
15
|
* @internal
|
|
52
16
|
*/
|
|
53
17
|
getRouterComponent(children?: React.ReactNode): React.FC<{
|
|
54
18
|
BaseLayout?: ComponentType;
|
|
55
19
|
}>;
|
|
56
|
-
add(name: string, route: RouteType): void;
|
|
57
|
-
get(name: string): RouteType;
|
|
58
|
-
has(name: string): boolean;
|
|
59
|
-
remove(name: string): void;
|
|
60
20
|
}
|
|
61
21
|
export declare function createRouterManager(options?: RouterOptions, app?: Application): RouterManager;
|
|
@@ -6,39 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
export type WebSocketClientOptions
|
|
11
|
-
reconnectInterval?: number;
|
|
12
|
-
reconnectAttempts?: number;
|
|
13
|
-
pingInterval?: number;
|
|
14
|
-
url?: string;
|
|
15
|
-
basename?: string;
|
|
16
|
-
protocols?: string | string[];
|
|
17
|
-
onServerDown?: any;
|
|
18
|
-
};
|
|
19
|
-
export declare class WebSocketClient {
|
|
20
|
-
protected _ws: WebSocket;
|
|
21
|
-
protected _reconnectTimes: number;
|
|
22
|
-
protected events: any[];
|
|
23
|
-
protected options: WebSocketClientOptions;
|
|
24
|
-
app: Application;
|
|
25
|
-
enabled: boolean;
|
|
26
|
-
connected: boolean;
|
|
27
|
-
serverDown: boolean;
|
|
28
|
-
lastMessage: {};
|
|
29
|
-
constructor(options: WebSocketClientOptions | boolean);
|
|
30
|
-
getSubAppName: (app: Application) => string;
|
|
31
|
-
getURL(): string;
|
|
32
|
-
get reconnectAttempts(): number;
|
|
33
|
-
get reconnectInterval(): number;
|
|
34
|
-
get pingInterval(): number;
|
|
35
|
-
get readyState(): number;
|
|
36
|
-
connect(): void;
|
|
37
|
-
reconnect(): void;
|
|
38
|
-
close(): void;
|
|
39
|
-
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
40
|
-
on(type: string, listener: any, options?: boolean | AddEventListenerOptions): void;
|
|
41
|
-
emit(type: string, args: any): void;
|
|
42
|
-
off(type: string, listener: any, options?: boolean | EventListenerOptions): void;
|
|
43
|
-
removeAllListeners(): void;
|
|
44
|
-
}
|
|
9
|
+
export { WebSocketClient } from '@nocobase/client-v2';
|
|
10
|
+
export type { WebSocketClientOptions } from '@nocobase/client-v2';
|
|
@@ -6,7 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
export * from './AppComponent';
|
|
10
9
|
export * from './BlankComponent';
|
|
11
|
-
export * from './defaultComponents';
|
|
12
10
|
export * from './RouterContextCleaner';
|