@nocobase/client 2.1.0-alpha.3 → 2.1.0-alpha.30
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/LICENSE +201 -661
- package/README.md +79 -10
- package/es/ai/index.d.ts +2 -3
- package/es/api-client/APIClient.d.ts +1 -2
- package/es/application/Application.d.ts +69 -135
- 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/BlockProvider.d.ts +1 -0
- 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 +15 -15
- 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.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1497 -107772
- package/es/index.mjs.LICENSE.txt +8 -0
- package/es/lazy-helper/index.d.ts +8 -6
- 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/{flow/models/actions/JSActionModel.d.ts → pm/AdminSettingsLayoutModel.d.ts} +2 -4
- package/es/pm/PluginSetting.d.ts +2 -1
- package/es/pm/index.d.ts +1 -0
- 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 +33 -0
- package/es/{application/components/MainComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -2
- 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 -23
- package/es/{ai/ai-manager.d.ts → route-switch/antd/admin-layout/mobileMenuNavigation.d.ts} +7 -7
- 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/Table.d.ts +0 -57
- package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
- package/es/schema-component/antd/date-picker/DatePicker.d.ts +26 -0
- 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 +3 -1
- package/es/schema-settings/SchemaSettingsDefaultValue.d.ts +18 -0
- package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +3 -3
- 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/drag-drop/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -2
- package/es/system-settings/index.d.ts +2 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1533 -2130
- package/lib/index.js.LICENSE.txt +1 -0
- package/lib/locale/de-DE.json +5 -1
- package/lib/locale/en-US.json +16 -0
- package/lib/locale/es-ES.json +5 -1
- package/lib/locale/fr-FR.json +5 -1
- package/lib/locale/hu-HU.json +5 -1
- package/lib/locale/id-ID.json +5 -1
- package/lib/locale/it-IT.json +5 -1
- package/lib/locale/ja-JP.json +5 -1
- package/lib/locale/ko-KR.json +5 -1
- package/lib/locale/nl-NL.json +5 -1
- package/lib/locale/pt-BR.json +5 -1
- package/lib/locale/ru-RU.json +5 -1
- package/lib/locale/tr-TR.json +5 -1
- package/lib/locale/uk-UA.json +5 -1
- package/lib/locale/vi-VN.json +5 -1
- package/lib/locale/zh-CN.json +18 -2
- package/lib/locale/zh-TW.json +5 -1
- package/package.json +10 -9
- 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 -21
- package/es/ai/tools-manager/types.d.ts +0 -80
- package/es/ai/utils.d.ts +0 -10
- package/es/application/components/AppComponent.d.ts +0 -14
- 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/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 -39
- 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 -63
- 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/errorHelpers.d.ts +0 -17
- package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
- package/es/flow/components/code-editor/extension/index.d.ts +0 -9
- 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/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 -43
- 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/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 -28
- 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 -23
- 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 -15
- package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
- package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -15
- 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/JSCollectionActionModel.d.ts +0 -14
- package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
- package/es/flow/models/actions/LinkActionModel.d.ts +0 -18
- 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/ViewActionModel.d.ts +0 -15
- package/es/flow/models/actions/index.d.ts +0 -23
- package/es/flow/models/base/ActionGroupModel.d.ts +0 -28
- 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 -31
- package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
- package/es/flow/models/base/CollectionBlockModel.d.ts +0 -89
- 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 -98
- package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -20
- 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 -16
- 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 -37
- 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 -53
- 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 -32
- 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 -21
- package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -24
- 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 -95
- 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 -19
- 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 -129
- package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -75
- 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 -90
- 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 -4
- 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/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 -35
- 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 -18
- package/es/flow/models/fields/AssociationFieldModel/index.d.ts +0 -15
- package/es/flow/models/fields/AssociationFieldModel/itemChain.d.ts +0 -94
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -59
- 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/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 -13
- 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/blockUtils.d.ts +0 -16
- package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
- package/es/flow/utils/index.d.ts +0 -10
- package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
- package/es/md-BbvRKckr.mjs +0 -61
- package/es/md-oH2RssNY.mjs +0 -61
- package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
- package/lib/md-BbvRKckr-IQIU5F3r.js +0 -1
- package/lib/md-oH2RssNY-IQIU5F3r.js +0 -1
package/README.md
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
# NocoBase
|
|
2
2
|
|
|
3
3
|
<video width="100%" controls>
|
|
4
|
-
|
|
4
|
+
<source src="https://github.com/user-attachments/assets/4d11a87b-00e2-48f3-9bf7-389d21072d13" type="video/mp4">
|
|
5
5
|
</video>
|
|
6
6
|
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a href="https://trendshift.io/repositories/4112" target="_blank"><img src="https://trendshift.io/api/badge/repositories/4112" alt="nocobase%2Fnocobase | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
|
|
9
|
+
<a href="https://www.producthunt.com/posts/nocobase?embed=true&utm_source=badge-top-post-topic-badge&utm_medium=badge&utm_souce=badge-nocobase" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-topic-badge.svg?post_id=456520&theme=light&period=weekly&topic_id=267" alt="NocoBase - Scalability-first, open-source no-code platform | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
|
10
|
+
</p>
|
|
7
11
|
|
|
8
12
|
## What is NocoBase
|
|
9
13
|
|
|
10
|
-
NocoBase is
|
|
11
|
-
|
|
14
|
+
NocoBase is the most extensible AI-powered no-code platform.
|
|
15
|
+
Total control. Infinite extensibility. AI collaboration.
|
|
16
|
+
Enable your team to adapt quickly and cut costs dramatically.
|
|
17
|
+
No years of development. No millions wasted.
|
|
18
|
+
Deploy NocoBase in minutes — and take control of everything.
|
|
12
19
|
|
|
13
20
|
Homepage:
|
|
14
|
-
https://www.nocobase.com/
|
|
21
|
+
https://www.nocobase.com/
|
|
15
22
|
|
|
16
23
|
Online Demo:
|
|
17
24
|
https://demo.nocobase.com/new
|
|
@@ -19,12 +26,74 @@ https://demo.nocobase.com/new
|
|
|
19
26
|
Documents:
|
|
20
27
|
https://docs.nocobase.com/
|
|
21
28
|
|
|
22
|
-
|
|
23
|
-
https://
|
|
29
|
+
Forum:
|
|
30
|
+
https://forum.nocobase.com/
|
|
24
31
|
|
|
25
|
-
|
|
26
|
-
https://www.nocobase.com/en/
|
|
32
|
+
Use Cases:
|
|
33
|
+
https://www.nocobase.com/en/blog/tags/customer-stories
|
|
27
34
|
|
|
35
|
+
## Release Notes
|
|
28
36
|
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
Our [blog](https://www.nocobase.com/en/blog/timeline) is regularly updated with release notes and provides a weekly summary.
|
|
38
|
+
|
|
39
|
+
## Distinctive features
|
|
40
|
+
|
|
41
|
+
### 1. Data model-driven, not form/table–driven
|
|
42
|
+
|
|
43
|
+
Instead of being constrained by forms or tables, NocoBase adopts a data model–driven approach, separating data structure from user interface to unlock unlimited possibilities.
|
|
44
|
+
|
|
45
|
+
- UI and data structure are fully decoupled
|
|
46
|
+
- Multiple blocks and actions can be created for the same table or record in any quantity or form
|
|
47
|
+
- Supports the main database, external databases, and third-party APIs as data sources
|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
### 2. AI employees, integrated into your business systems
|
|
52
|
+
Unlike standalone AI demos, NocoBase allows you to embed AI capabilities seamlessly into your interfaces, workflows, and data context, making AI truly useful in real business scenarios.
|
|
53
|
+
|
|
54
|
+
- Define AI employees for roles such as translator, analyst, researcher, or assistant
|
|
55
|
+
- Seamless AI–human collaboration in interfaces and workflows
|
|
56
|
+
- Ensure AI usage is secure, transparent, and customizable for your business needs
|
|
57
|
+
|
|
58
|
+

|
|
59
|
+
|
|
60
|
+
### 3. What you see is what you get, incredibly easy to use
|
|
61
|
+
|
|
62
|
+
While enabling the development of complex business systems, NocoBase keeps the experience simple and intuitive.
|
|
63
|
+
|
|
64
|
+
- One-click switch between usage mode and configuration mode
|
|
65
|
+
- Pages serve as a canvas to arrange blocks and actions, similar to Notion
|
|
66
|
+
- Configuration mode is designed for ordinary users, not just programmers
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
70
|
+
### 4. Everything is a plugin, designed for extension
|
|
71
|
+
Adding more no-code features will never cover every business case. NocoBase is built for extension through its plugin-based microkernel architecture.
|
|
72
|
+
|
|
73
|
+
- All functionalities are plugins, similar to WordPress
|
|
74
|
+
- Plugins are ready to use upon installation
|
|
75
|
+
- Pages, blocks, actions, APIs, and data sources can all be extended through custom plugins
|
|
76
|
+
|
|
77
|
+

|
|
78
|
+
|
|
79
|
+
## Installation
|
|
80
|
+
|
|
81
|
+
NocoBase supports three installation methods:
|
|
82
|
+
|
|
83
|
+
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/docker-compose">Installing With Docker (👍Recommended)</a>
|
|
84
|
+
|
|
85
|
+
Suitable for no-code scenarios, no code to write. When upgrading, just download the latest image and reboot.
|
|
86
|
+
|
|
87
|
+
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/create-nocobase-app">Installing from create-nocobase-app CLI</a>
|
|
88
|
+
|
|
89
|
+
The business code of the project is completely independent and supports low-code development.
|
|
90
|
+
|
|
91
|
+
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/git-clone">Installing from Git source code</a>
|
|
92
|
+
|
|
93
|
+
If you want to experience the latest unreleased version, or want to participate in the contribution, you need to make changes and debug on the source code, it is recommended to choose this installation method, which requires a high level of development skills, and if the code has been updated, you can git pull the latest code.
|
|
94
|
+
|
|
95
|
+
## How NocoBase works
|
|
96
|
+
|
|
97
|
+
<video width="100%" controls>
|
|
98
|
+
<source src="https://github.com/user-attachments/assets/8d183b44-9bb5-4792-b08f-bc08fe8dfaaf" type="video/mp4">
|
|
99
|
+
</video>
|
package/es/ai/index.d.ts
CHANGED
|
@@ -6,6 +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 './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,201 +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 } 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
|
-
context: FlowEngineContext & {
|
|
109
|
-
pluginSettingsRouter: PluginSettingsManager;
|
|
110
|
-
pluginManager: PluginManager;
|
|
111
|
-
};
|
|
112
72
|
loading: boolean;
|
|
113
|
-
maintained: boolean;
|
|
114
|
-
maintaining: boolean;
|
|
115
|
-
error: any;
|
|
116
73
|
hasLoadError: boolean;
|
|
117
74
|
locales: any;
|
|
118
|
-
private wsAuthorized;
|
|
119
75
|
private readonly variables;
|
|
120
|
-
|
|
121
|
-
|
|
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>>;
|
|
122
107
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
setWsAuthorized(authorized: boolean): void;
|
|
128
|
-
constructor(options?: ApplicationOptions);
|
|
129
|
-
private initListeners;
|
|
130
|
-
protected setTokenInWebSocket(options: {
|
|
131
|
-
token: string;
|
|
132
|
-
authenticator: string;
|
|
133
|
-
}): void;
|
|
134
|
-
setMaintaining(maintaining: boolean): void;
|
|
135
|
-
private initRequireJs;
|
|
136
|
-
private addDefaultProviders;
|
|
137
|
-
private addReactRouterComponents;
|
|
138
|
-
private addRoutes;
|
|
139
|
-
getOptions(): ApplicationOptions;
|
|
140
|
-
getName(): string;
|
|
141
|
-
getPublicPath(): string;
|
|
142
|
-
getApiUrl(pathname?: string): string;
|
|
143
|
-
getRouteUrl(pathname: string): string;
|
|
144
|
-
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>>;
|
|
145
112
|
getCollectionManager(dataSource?: string): import("../data-source").CollectionManager;
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
getComposeProviders(): React.FC;
|
|
150
|
-
use<T = any>(component: ComponentType, props?: T): number;
|
|
151
|
-
addProvider<T = any>(component: ComponentType, props?: T): number;
|
|
152
|
-
addProviders(providers: (ComponentType | [ComponentType, any])[]): void;
|
|
153
113
|
load(): Promise<void>;
|
|
154
114
|
loadWebSocket(): Promise<void>;
|
|
155
|
-
getComponent<T = any>(Component: ComponentTypeAndString<T>, isShowError?: boolean): ComponentType<T> | undefined;
|
|
156
|
-
renderComponent<T extends {}>(Component: ComponentTypeAndString, props?: T, children?: ReactNode): ReactElement;
|
|
157
|
-
/**
|
|
158
|
-
* @internal use addComponents({ SomeComponent }) instead
|
|
159
|
-
*/
|
|
160
|
-
protected addComponent(component: ComponentType, name?: string): void;
|
|
161
|
-
addComponents(components: Record<string, ComponentType>): void;
|
|
162
115
|
addScopes(scopes: Record<string, any>): void;
|
|
163
|
-
getRootComponent(): React.FC<{
|
|
164
|
-
children?: React.ReactNode;
|
|
165
|
-
}>;
|
|
166
|
-
mount(containerOrSelector: Element | ShadowRoot | string): import("react-dom/client").Root;
|
|
167
116
|
addFieldInterfaces(fieldInterfaceClasses?: CollectionFieldInterfaceFactory[]): void;
|
|
117
|
+
addFieldInterfaceGroups(groups: Record<string, {
|
|
118
|
+
label: string;
|
|
119
|
+
order?: number;
|
|
120
|
+
}>): void;
|
|
168
121
|
addFieldInterfaceComponentOption(fieldName: string, componentOption: CollectionFieldInterfaceComponentOption): void;
|
|
169
122
|
/**
|
|
170
123
|
* 为指定的字段接口添加操作符选项
|
|
171
124
|
*
|
|
172
125
|
* @param name 字段接口的名称
|
|
173
126
|
* @param operatorOption 要添加的操作符选项
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* // 为"单行文本"类型字段添加"等于任意一个"操作符
|
|
177
|
-
* app.addFieldInterfaceOperator('input', {
|
|
178
|
-
* label: '{{t("equals any of")}}',
|
|
179
|
-
* value: '$in',
|
|
180
|
-
* });
|
|
181
127
|
*/
|
|
182
128
|
addFieldInterfaceOperator(name: string, operatorOption: any): void;
|
|
183
129
|
addGlobalVar(key: string, value: any, varCtx?: any): void;
|
|
184
|
-
getGlobalVar(key:
|
|
185
|
-
getGlobalVarCtx(key:
|
|
130
|
+
getGlobalVar(key: string): any;
|
|
131
|
+
getGlobalVarCtx(key: string): any;
|
|
186
132
|
addUserCenterSettingsItem(item: SchemaSettingsItemType & {
|
|
187
133
|
aclSnippet?: string;
|
|
188
134
|
}): void;
|
|
189
|
-
/**
|
|
190
|
-
* Register a variable for use in the frontend
|
|
191
|
-
*
|
|
192
|
-
* Note: It is not recommended to register variables in components as it may cause rendering errors
|
|
193
|
-
* @param variable
|
|
194
|
-
* @returns
|
|
195
|
-
*/
|
|
196
135
|
registerVariable(variable: Variable): void;
|
|
197
|
-
/**
|
|
198
|
-
* Get all registered variables
|
|
199
|
-
* @returns
|
|
200
|
-
*/
|
|
201
136
|
getVariables(): Variable[];
|
|
202
137
|
setAppsComponent({ Component }: {
|
|
203
138
|
Component: ComponentType;
|
|
204
139
|
}): void;
|
|
205
140
|
}
|
|
206
|
-
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';
|