@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
|
@@ -6,8 +6,8 @@
|
|
|
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 { useImported } from 'react-imported-component';
|
|
10
9
|
export declare const LAZY_COMPONENT_KEY: unique symbol;
|
|
10
|
+
type ModuleImportor<TModule extends Record<string, any> = Record<string, any>> = () => Promise<TModule>;
|
|
11
11
|
type LazyComponentType<M extends Record<string, any>, K extends keyof M> = {
|
|
12
12
|
[P in K]: M[P];
|
|
13
13
|
};
|
|
@@ -33,17 +33,19 @@ export declare function lazy<M extends Record<string, any>, K extends keyof M =
|
|
|
33
33
|
/**
|
|
34
34
|
* A hook to lazily load a module and return a specific export from it.
|
|
35
35
|
*
|
|
36
|
-
* This hook
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* This hook dynamically imports a module and returns a specific export from it.
|
|
37
|
+
* It throws a promise while the module is being loaded, which can be caught by
|
|
38
|
+
* the parent Suspense boundary to show a loading state.
|
|
39
|
+
*
|
|
40
|
+
* @deprecated Use this hook only when you need to dynamically load a module inside a hook. Otherwise, use lazy() to load React components, or use import() directly to load modules, utility functions, or third-party libraries. Avoid adding new usages of useLazy.
|
|
39
41
|
*
|
|
40
42
|
* @template T - The type of the export being picked from the module.
|
|
41
43
|
*
|
|
42
|
-
* @param {
|
|
44
|
+
* @param {ModuleImportor} importor - The function to import the module.
|
|
43
45
|
* @param {string | ((module: any) => T)} picker - The name of the export to pick or a function to pick the export.
|
|
44
46
|
* @returns {T} The picked export from the imported module.
|
|
45
47
|
*
|
|
46
48
|
* @throws {Promise} Throws a promise while the module is being loaded.
|
|
47
49
|
*/
|
|
48
|
-
export declare function useLazy<T = () => any>(importor:
|
|
50
|
+
export declare function useLazy<T = () => any>(importor: ModuleImportor, picker: string | ((module: any) => T)): T;
|
|
49
51
|
export {};
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
export declare const getVariableComponentWithScope: (Com: any, data?: any[]) => (props: any) => React.JSX.Element;
|
|
11
|
+
export declare const FlowSettingsVariableTextArea: (props: any) => React.JSX.Element;
|
|
11
12
|
export declare const useURLAndHTMLSchema: () => {
|
|
12
13
|
urlSchema: {
|
|
13
14
|
title: string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { Collection } from '../../data-source';
|
|
10
|
+
import { Collection } from '../../data-source/collection/Collection';
|
|
11
11
|
export declare const BlockSchemaToolbar: (props: any) => React.JSX.Element;
|
|
12
12
|
export declare function getCollectionTitle(arg: {
|
|
13
13
|
collectionTitle: string;
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import { type PinnedPluginListItems } from './context';
|
|
10
11
|
export declare const PinnedPluginListProvider: React.FC<{
|
|
11
|
-
items:
|
|
12
|
+
items: PinnedPluginListItems;
|
|
12
13
|
}>;
|
|
13
14
|
export declare const PinnedPluginList: React.MemoExoticComponent<(props: {
|
|
14
15
|
onClick?: () => void;
|
|
@@ -6,7 +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
|
-
export declare const PinnedPluginListContext: import("react").Context<{
|
|
11
|
-
items: {};
|
|
12
|
-
}>;
|
|
9
|
+
export { getPinnedPluginListKeys, PinnedPluginListContext, type PinnedPluginListContextValue, type PinnedPluginListItem, type PinnedPluginListItems, } from '@nocobase/client-v2';
|
|
@@ -6,8 +6,6 @@
|
|
|
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
|
-
|
|
11
|
-
export declare class JSActionModel extends ActionModel {
|
|
12
|
-
defaultProps: ButtonProps;
|
|
9
|
+
import { AdminSettingsLayoutModel as BaseAdminSettingsLayoutModel } from '@nocobase/client-v2';
|
|
10
|
+
export declare class AdminSettingsLayoutModel extends BaseAdminSettingsLayoutModel {
|
|
13
11
|
}
|
package/es/pm/PluginSetting.d.ts
CHANGED
|
@@ -8,4 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
10
|
export declare const SettingsCenterContext: React.Context<any>;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const InternalAdminSettingsLayout: () => React.JSX.Element;
|
|
12
|
+
export declare const AdminSettingsLayout: (props: any) => React.JSX.Element;
|
package/es/pm/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from '../application/Plugin';
|
|
10
|
+
export * from './AdminSettingsLayoutModel';
|
|
10
11
|
export * from './PluginManager';
|
|
11
12
|
export * from './PluginManagerLink';
|
|
12
13
|
export * from './PluginSetting';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { NavigateFunction } from 'react-router-dom';
|
|
10
|
+
import { useNavigateNoUpdate, useRouterBasename } from '../../../application/CustomRouterContextProvider';
|
|
11
|
+
import { appendQueryStringToUrl, reduceValueSize } from '../../../block-provider/hooks';
|
|
12
|
+
import { withTooltipComponent } from '../../../hoc/withTooltipComponent';
|
|
13
|
+
import { getFlowPageMenuSchema } from '../../../modules/menu/FlowPageMenuItem';
|
|
14
|
+
import { getPageMenuSchema } from '../../../modules/menu/PageMenuItem';
|
|
15
|
+
import { VariableScope } from '../../../variables/VariableScope';
|
|
16
|
+
import { isVariable } from '../../../variables/utils/isVariable';
|
|
17
|
+
import { ParentRouteContext } from '../../../schema-component/antd/menu/Menu';
|
|
18
|
+
import { NocoBaseRouteContext } from './route-runtime';
|
|
19
|
+
import { findFirstPageRoute } from './route-utils';
|
|
20
|
+
export { appendQueryStringToUrl, getFlowPageMenuSchema, getPageMenuSchema, isVariable, NocoBaseRouteContext, ParentRouteContext, reduceValueSize, useNavigateNoUpdate, useRouterBasename, VariableScope, withTooltipComponent, findFirstPageRoute, };
|
|
21
|
+
/**
|
|
22
|
+
* 兼容 v2 菜单副本里保留的两参调用签名。
|
|
23
|
+
*/
|
|
24
|
+
export declare const useEvaluatedExpression: (expression: string, _context?: unknown) => string | number;
|
|
25
|
+
/**
|
|
26
|
+
* 补全站内 URL。
|
|
27
|
+
*/
|
|
28
|
+
export declare function completeURL(url: string, origin?: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* 在当前窗口内跳转链接。
|
|
31
|
+
*/
|
|
32
|
+
export declare function navigateWithinSelf(link: string, navigate: NavigateFunction, basePath?: string): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { AdminLayoutMenuItemModel } from './AdminLayoutMenuModels';
|
|
11
|
+
/**
|
|
12
|
+
* @internal 供单测覆盖当前激活分支的 legacy 恢复递归逻辑。
|
|
13
|
+
*/
|
|
14
|
+
export declare const hydrateLegacyActiveMenuPersistedStateForTest: (items: AdminLayoutMenuItemModel[] | undefined, pathname: string, basename?: string) => Promise<boolean>;
|
|
15
|
+
export declare const AdminLayoutComponent: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { FlowSettingsContext } from '@nocobase/flow-engine';
|
|
10
|
+
import { AdminLayoutMenuCreationMeta, AdminLayoutMenuCreationParams, AdminLayoutMenuCreationType, AdminLayoutMenuInsertPosition, getAdminLayoutMenuMovePositionOptions } from './AdminLayoutMenuUtils';
|
|
11
|
+
import { type NocoBaseDesktopRoute } from './route-types';
|
|
12
|
+
declare const buildLinkSettingSchema: (t: (title: any) => any) => {
|
|
13
|
+
href: {
|
|
14
|
+
title: any;
|
|
15
|
+
type: string;
|
|
16
|
+
'x-decorator': string;
|
|
17
|
+
'x-component': string;
|
|
18
|
+
'x-component-props': {
|
|
19
|
+
rows: number;
|
|
20
|
+
maxRows: number;
|
|
21
|
+
};
|
|
22
|
+
description: any;
|
|
23
|
+
};
|
|
24
|
+
params: {
|
|
25
|
+
type: string;
|
|
26
|
+
title: any;
|
|
27
|
+
'x-component': string;
|
|
28
|
+
'x-decorator': string;
|
|
29
|
+
items: {
|
|
30
|
+
type: string;
|
|
31
|
+
properties: {
|
|
32
|
+
space: {
|
|
33
|
+
type: string;
|
|
34
|
+
'x-component': string;
|
|
35
|
+
properties: {
|
|
36
|
+
name: {
|
|
37
|
+
type: string;
|
|
38
|
+
'x-decorator': string;
|
|
39
|
+
'x-component': string;
|
|
40
|
+
'x-component-props': {
|
|
41
|
+
placeholder: any;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
value: {
|
|
45
|
+
type: string;
|
|
46
|
+
'x-decorator': string;
|
|
47
|
+
'x-component': string;
|
|
48
|
+
'x-component-props': {
|
|
49
|
+
placeholder: any;
|
|
50
|
+
rows: number;
|
|
51
|
+
maxRows: number;
|
|
52
|
+
useTypedConstant: boolean;
|
|
53
|
+
changeOnSelect: boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
remove: {
|
|
57
|
+
type: string;
|
|
58
|
+
'x-decorator': string;
|
|
59
|
+
'x-component': string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
properties: {
|
|
66
|
+
add: {
|
|
67
|
+
type: string;
|
|
68
|
+
title: any;
|
|
69
|
+
'x-component': string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
openInNewWindow: {
|
|
74
|
+
type: string;
|
|
75
|
+
'x-content': any;
|
|
76
|
+
'x-decorator': string;
|
|
77
|
+
'x-component': string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const insertRouteSchema: (api: {
|
|
81
|
+
request: (options: any) => Promise<any>;
|
|
82
|
+
}, schema: Record<string, any>) => Promise<void>;
|
|
83
|
+
export declare const getMenuCreationDefaultParams: (meta: AdminLayoutMenuCreationMeta | undefined) => AdminLayoutMenuCreationParams;
|
|
84
|
+
declare const MENU_TYPE_OPTIONS: Array<{
|
|
85
|
+
label: string;
|
|
86
|
+
value: AdminLayoutMenuCreationType;
|
|
87
|
+
}>;
|
|
88
|
+
export declare const buildMenuBasicSchema: (t: (title: any) => any) => Record<string, any>;
|
|
89
|
+
export declare const getMenuEditDefaultParams: (route: NocoBaseDesktopRoute | undefined) => AdminLayoutMenuCreationParams;
|
|
90
|
+
export declare const getMenuCreationUiSchema: (t: (title: any) => any, meta: AdminLayoutMenuCreationMeta | undefined) => Record<string, any>;
|
|
91
|
+
export declare const createInsertMenuStep: (options: {
|
|
92
|
+
title: string;
|
|
93
|
+
insertPosition: AdminLayoutMenuInsertPosition;
|
|
94
|
+
hideInSettings?: (ctx: FlowSettingsContext<any>) => Promise<boolean>;
|
|
95
|
+
canCreate?: (route: NocoBaseDesktopRoute) => boolean;
|
|
96
|
+
resolveParentRoute: (ctx: FlowSettingsContext<any>, route: NocoBaseDesktopRoute) => NocoBaseDesktopRoute | undefined;
|
|
97
|
+
}) => Record<string, any>;
|
|
98
|
+
export declare const toTreeSelectItems: (routes: NocoBaseDesktopRoute[], ctx: Pick<FlowSettingsContext<any>, 'resolveJsonTemplate' | 't'>) => any;
|
|
99
|
+
export declare const findPrevSiblingRoute: (routes: NocoBaseDesktopRoute[], currentRoute: NocoBaseDesktopRoute | undefined) => any;
|
|
100
|
+
export declare const findNextSiblingRoute: (routes: NocoBaseDesktopRoute[], currentRoute: NocoBaseDesktopRoute | undefined) => any;
|
|
101
|
+
export declare const matchesRoutePath: (route: NocoBaseDesktopRoute | undefined, pathname: string, basename?: string) => boolean;
|
|
102
|
+
export declare const buildInsertRouteSchema: (menuType: AdminLayoutMenuCreationType, pageSchemaUid: string, tabSchemaUid: string, tabSchemaName: string) => {
|
|
103
|
+
type: string;
|
|
104
|
+
'x-component': string;
|
|
105
|
+
'x-uid': any;
|
|
106
|
+
};
|
|
107
|
+
export { getAdminLayoutMenuMovePositionOptions, MENU_TYPE_OPTIONS, buildLinkSettingSchema };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { FlowModel } from '@nocobase/flow-engine';
|
|
11
|
+
import { AdminLayoutMenuCreationMeta, AdminLayoutMenuCreationParams, AdminLayoutMenuInsertPosition, AdminLayoutMenuItemStructure, AdminLayoutMenuNode, AdminLayoutMenuRouteOptions } from './AdminLayoutMenuUtils';
|
|
12
|
+
import { type NocoBaseDesktopRoute } from './route-types';
|
|
13
|
+
export * from './AdminLayoutMenuUtils';
|
|
14
|
+
export { insertRouteSchema } from './AdminLayoutMenuFlowUtils';
|
|
15
|
+
export declare class AdminLayoutMenuItemModel extends FlowModel<AdminLayoutMenuItemStructure> {
|
|
16
|
+
private creationPersisted;
|
|
17
|
+
private persistedStateHydrated;
|
|
18
|
+
private persistedStateHydrating?;
|
|
19
|
+
onInit(options: any): void;
|
|
20
|
+
syncFromRoute(route: NocoBaseDesktopRoute, parentRoute?: NocoBaseDesktopRoute): void;
|
|
21
|
+
getRoute(): NocoBaseDesktopRoute;
|
|
22
|
+
getParentRoute(): NocoBaseDesktopRoute;
|
|
23
|
+
getCreationMeta(): AdminLayoutMenuCreationMeta;
|
|
24
|
+
isCreationSession(): boolean;
|
|
25
|
+
shouldHydratePersistedState(): boolean;
|
|
26
|
+
hydrateLegacyPersistedStateIfCurrentPath(pathname: string, basename?: string): Promise<boolean>;
|
|
27
|
+
openFlowSettings(options?: Parameters<FlowModel['openFlowSettings']>[0]): Promise<boolean>;
|
|
28
|
+
getRouteRepository(): any;
|
|
29
|
+
hasPersistedMenuInstanceFlowFlag(route?: NocoBaseDesktopRoute): boolean;
|
|
30
|
+
getCurrentPersistedInstanceFlowCount(): number;
|
|
31
|
+
buildRouteOptionsWithPersistedFlowFlag(hasPersistedMenuInstanceFlow: boolean): {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
hasPersistedMenuInstanceFlow?: boolean;
|
|
34
|
+
};
|
|
35
|
+
syncPersistedFlowRouteFlag(): Promise<void>;
|
|
36
|
+
destroyPersistedState(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* 按固定 uid 从 flowModels 仓库恢复实例级事件流与步骤参数。
|
|
39
|
+
*
|
|
40
|
+
* @returns {Promise<void>} 恢复完成
|
|
41
|
+
*/
|
|
42
|
+
hydratePersistedState(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* 判断当前菜单模型是否存在需要通过 flowModels 持久化的实例事件流。
|
|
45
|
+
*
|
|
46
|
+
* @returns {boolean} 是否需要走 FlowModel 默认保存链路
|
|
47
|
+
*/
|
|
48
|
+
hasPersistableInstanceFlows(): boolean;
|
|
49
|
+
insertRouteSchema(schema: Record<string, any>): Promise<void>;
|
|
50
|
+
createMenuRoute(route: NocoBaseDesktopRoute, options?: {
|
|
51
|
+
parentId?: string | number;
|
|
52
|
+
refreshAfterMutation?: boolean;
|
|
53
|
+
}): Promise<any>;
|
|
54
|
+
createRouteForInsert(route: NocoBaseDesktopRoute, insertPosition: AdminLayoutMenuInsertPosition, targetRoute?: NocoBaseDesktopRoute): Promise<any>;
|
|
55
|
+
createMenuFromMeta(meta: AdminLayoutMenuCreationMeta, values: AdminLayoutMenuCreationParams): Promise<void>;
|
|
56
|
+
persistMenuCreation(values: AdminLayoutMenuCreationParams): Promise<void>;
|
|
57
|
+
updateMenuRoute(values: Partial<NocoBaseDesktopRoute>): Promise<void>;
|
|
58
|
+
moveMenuRoute(target: string, position: 'beforeBegin' | 'afterEnd' | 'beforeEnd'): Promise<void>;
|
|
59
|
+
saveStepParams(): Promise<boolean>;
|
|
60
|
+
save(): Promise<boolean>;
|
|
61
|
+
destroy(): Promise<boolean>;
|
|
62
|
+
toProLayoutRoute(options: AdminLayoutMenuRouteOptions): AdminLayoutMenuNode | null;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { FlowModel } from '@nocobase/flow-engine';
|
|
10
|
+
import React, { FC } from 'react';
|
|
11
|
+
import { type NavigateFunction } from 'react-router-dom';
|
|
12
|
+
import type { AdminLayoutMenuItemModel } from './AdminLayoutMenuModels';
|
|
13
|
+
import { type NocoBaseDesktopRoute } from './route-types';
|
|
14
|
+
export type AdminLayoutMenuRenderType = 'item' | 'group';
|
|
15
|
+
export type AdminLayoutMenuRenderOptions = {
|
|
16
|
+
isMobile?: boolean;
|
|
17
|
+
collapsed?: boolean;
|
|
18
|
+
menuRenderType?: string;
|
|
19
|
+
};
|
|
20
|
+
export type AdminLayoutMenuNode = {
|
|
21
|
+
key?: string;
|
|
22
|
+
name: React.ReactNode;
|
|
23
|
+
icon?: React.ReactNode;
|
|
24
|
+
path: string;
|
|
25
|
+
redirect?: string;
|
|
26
|
+
hideInMenu?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
_route: any;
|
|
29
|
+
_parentRoute?: NocoBaseDesktopRoute;
|
|
30
|
+
_depth?: number;
|
|
31
|
+
_model?: AdminLayoutMenuItemModel;
|
|
32
|
+
_launcherModel?: FlowModel;
|
|
33
|
+
routes?: AdminLayoutMenuNode[];
|
|
34
|
+
};
|
|
35
|
+
export type AdminLayoutMenuRouteOptions = {
|
|
36
|
+
designable: boolean;
|
|
37
|
+
isMobile: boolean;
|
|
38
|
+
t: (title: any) => any;
|
|
39
|
+
depth?: number;
|
|
40
|
+
};
|
|
41
|
+
export type AdminLayoutMenuMovePositionOption = {
|
|
42
|
+
label: any;
|
|
43
|
+
value: 'beforeBegin' | 'afterEnd' | 'beforeEnd';
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type AdminLayoutMenuInsertPosition = 'beforeBegin' | 'afterEnd' | 'beforeEnd';
|
|
47
|
+
export type AdminLayoutMenuCreationType = 'group' | 'page' | 'flowPage' | 'link';
|
|
48
|
+
export type AdminLayoutMenuCreationSource = 'header' | 'sider' | 'insert';
|
|
49
|
+
export type AdminLayoutMenuCreationMeta = {
|
|
50
|
+
menuType: AdminLayoutMenuCreationType;
|
|
51
|
+
source: AdminLayoutMenuCreationSource;
|
|
52
|
+
insertPosition?: AdminLayoutMenuInsertPosition;
|
|
53
|
+
targetRoute?: NocoBaseDesktopRoute;
|
|
54
|
+
parentRoute?: NocoBaseDesktopRoute;
|
|
55
|
+
};
|
|
56
|
+
export type AdminLayoutMenuCreationParams = {
|
|
57
|
+
menuType?: AdminLayoutMenuCreationType;
|
|
58
|
+
title?: string;
|
|
59
|
+
icon?: string;
|
|
60
|
+
href?: string;
|
|
61
|
+
params?: any[];
|
|
62
|
+
openInNewWindow?: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type AdminLayoutMenuItemStructure = {
|
|
65
|
+
subModels: {
|
|
66
|
+
menuItems?: AdminLayoutMenuItemModel[];
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type AdminLayoutMenuItemsParent = FlowModel & {
|
|
70
|
+
subModels: {
|
|
71
|
+
menuItems?: AdminLayoutMenuItemModel[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* 为不会直接参与站内路由跳转的菜单节点生成稳定且唯一的占位路径。
|
|
76
|
+
* 这些节点仍会被 ProLayout/rc-menu 当成菜单 key 使用,因此不能复用 '/'。
|
|
77
|
+
* @param type 占位路径类型
|
|
78
|
+
* @param identity 节点身份
|
|
79
|
+
* @returns 唯一占位路径
|
|
80
|
+
*/
|
|
81
|
+
export declare const getAdminLayoutMenuVirtualPath: (type: 'link' | 'designer', identity: string | number) => string;
|
|
82
|
+
/**
|
|
83
|
+
* 仅在模板表达式内部兼容历史菜单变量写法,避免误改普通文本。
|
|
84
|
+
* @param template 原始模板字符串
|
|
85
|
+
* @returns 归一化后的模板字符串
|
|
86
|
+
*/
|
|
87
|
+
export declare const normalizeAdminLayoutMenuLegacyVariables: (template: string) => string;
|
|
88
|
+
/**
|
|
89
|
+
* 使用 FlowContext 解析 admin-layout link 菜单的 URL 和查询参数。
|
|
90
|
+
* @param options 解析所需参数
|
|
91
|
+
* @returns 最终可跳转的 URL
|
|
92
|
+
*/
|
|
93
|
+
export declare const resolveAdminLayoutMenuLink: (options: {
|
|
94
|
+
context: FlowModel['context'];
|
|
95
|
+
href: string;
|
|
96
|
+
params?: Array<{
|
|
97
|
+
name: string;
|
|
98
|
+
value: any;
|
|
99
|
+
}>;
|
|
100
|
+
}) => Promise<string>;
|
|
101
|
+
export declare const openAdminLayoutMenuLink: (options: {
|
|
102
|
+
context: FlowModel['context'];
|
|
103
|
+
href: string;
|
|
104
|
+
params?: any[];
|
|
105
|
+
openInNewWindow?: boolean;
|
|
106
|
+
isMobile?: boolean;
|
|
107
|
+
closeMobileMenu: () => void;
|
|
108
|
+
navigate: NavigateFunction;
|
|
109
|
+
basenameOfCurrentRouter: string;
|
|
110
|
+
}) => Promise<void>;
|
|
111
|
+
export declare const MobileMenuControlContext: React.Context<{
|
|
112
|
+
closeMobileMenu: () => void;
|
|
113
|
+
}>;
|
|
114
|
+
export declare const HeaderContext: React.Context<{
|
|
115
|
+
inHeader: boolean;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* 根据当前选中的目标菜单,生成可用的 Move to 位置选项。
|
|
119
|
+
*/
|
|
120
|
+
export declare const getAdminLayoutMenuMovePositionOptions: (target: string | undefined, currentRouteId: string | number | undefined, t: (title: any) => any) => AdminLayoutMenuMovePositionOption[];
|
|
121
|
+
export declare function reconcileAdminLayoutMenuItems(parent: AdminLayoutMenuItemsParent, routes: NocoBaseDesktopRoute[], parentRoute?: NocoBaseDesktopRoute): void;
|
|
122
|
+
type AdminLayoutMenuDragMoveOptions = {
|
|
123
|
+
sourceId: string | number;
|
|
124
|
+
targetId?: string | number;
|
|
125
|
+
targetScope?: {
|
|
126
|
+
parentId: string | number;
|
|
127
|
+
};
|
|
128
|
+
sortField: 'sort';
|
|
129
|
+
method?: 'insertAfter' | 'prepend';
|
|
130
|
+
};
|
|
131
|
+
export declare function resolveAdminLayoutMenuDragMoveOptions(activeModel?: FlowModel, overModel?: FlowModel): AdminLayoutMenuDragMoveOptions | undefined;
|
|
132
|
+
export declare function resolveAdminLayoutMenuDragMoveOptionsFromEvent(flowEngine: {
|
|
133
|
+
getModel: (uid: string) => FlowModel | undefined;
|
|
134
|
+
}, event: {
|
|
135
|
+
active?: {
|
|
136
|
+
id?: string | number;
|
|
137
|
+
};
|
|
138
|
+
over?: {
|
|
139
|
+
id?: string | number;
|
|
140
|
+
} | null;
|
|
141
|
+
}): AdminLayoutMenuDragMoveOptions | undefined;
|
|
142
|
+
export declare const AdminLayoutMenuItemRenderer: FC<{
|
|
143
|
+
item: AdminLayoutMenuNode;
|
|
144
|
+
dom: React.ReactNode;
|
|
145
|
+
options?: AdminLayoutMenuRenderOptions;
|
|
146
|
+
renderType: AdminLayoutMenuRenderType;
|
|
147
|
+
}>;
|
|
148
|
+
export declare const shouldRenderIconInTitle: ({ depth, isMobile }: {
|
|
149
|
+
depth: number;
|
|
150
|
+
isMobile: boolean;
|
|
151
|
+
}) => boolean;
|
|
152
|
+
export declare const AdminLayoutMenuModelRenderer: FC<{
|
|
153
|
+
model: FlowModel;
|
|
154
|
+
item: AdminLayoutMenuNode;
|
|
155
|
+
dom: React.ReactNode;
|
|
156
|
+
renderType: AdminLayoutMenuRenderType;
|
|
157
|
+
options?: AdminLayoutMenuRenderOptions;
|
|
158
|
+
}>;
|
|
159
|
+
export declare function getAdminLayoutMenuInitializerButton(testId: string, launcherModel: FlowModel, parentRoute?: NocoBaseDesktopRoute): AdminLayoutMenuNode;
|
|
160
|
+
export declare const buildMenuTitleWithIcon: (route: NocoBaseDesktopRoute, t: (title: any) => any, showIconInTitle: boolean) => {
|
|
161
|
+
name: any;
|
|
162
|
+
icon: React.JSX.Element;
|
|
163
|
+
};
|
|
164
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { AdminLayoutModel, getAdminLayoutModel } from '@nocobase/client-v2';
|
|
11
|
+
import { type NocoBaseDesktopRoute } from './route-types';
|
|
12
|
+
import { type AdminLayoutMenuRouteOptions } from './AdminLayoutMenuUtils';
|
|
13
|
+
/**
|
|
14
|
+
* 兼容旧 route-switch 入口的 Admin Layout 渲染包装类。
|
|
15
|
+
*
|
|
16
|
+
* 该类仅保留 v1 入口所需的 render 能力,
|
|
17
|
+
* 运行时状态和生命周期全部复用 flow 侧基类。
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const model = flowEngine.getModel<AdminLayoutModelV1>('admin-layout-model');
|
|
22
|
+
* return model?.render();
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class AdminLayoutModelV1 extends AdminLayoutModel {
|
|
26
|
+
syncMenuRoutes(routes: NocoBaseDesktopRoute[]): void;
|
|
27
|
+
toProLayoutRoute(options: Omit<AdminLayoutMenuRouteOptions, 'depth'>): {
|
|
28
|
+
path: string;
|
|
29
|
+
children: any[];
|
|
30
|
+
};
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
|
+
}
|
|
33
|
+
export { getAdminLayoutModel };
|
|
@@ -6,5 +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 React from 'react';
|
|
10
|
-
export declare const
|
|
9
|
+
import React, { FC } from 'react';
|
|
10
|
+
export declare const NavigateToDefaultPage: FC;
|
|
11
|
+
export declare const LegacyRouteCompat: FC;
|
|
12
|
+
export declare const AdminShellProvider: (props: any) => React.JSX.Element;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { FC } from 'react';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
/**
|
|
11
|
+
* 重置主题,避免被 ProLayout 的主题影响,同时保留当前算法配置。
|
|
12
|
+
*/
|
|
13
|
+
export declare const ResetThemeTokenAndKeepAlgorithm: FC<any>;
|
|
@@ -6,33 +6,22 @@
|
|
|
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 { LayoutContent, useMobileLayout } from '@nocobase/client-v2';
|
|
10
|
+
import React from 'react';
|
|
10
11
|
import { Plugin } from '../../../application/Plugin';
|
|
11
|
-
import {
|
|
12
|
-
import { NocoBaseDesktopRoute, NocoBaseDesktopRouteType } from './convertRoutesToSchema';
|
|
12
|
+
import { shouldRenderIconInTitle } from './AdminLayoutMenuUtils';
|
|
13
13
|
export * from './useDeleteRouteSchema';
|
|
14
|
-
export {
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
export declare const AdminDynamicPage: () => React.JSX.Element;
|
|
25
|
-
export declare const LayoutContent: () => React.JSX.Element;
|
|
26
|
-
export declare const useMobileLayout: () => {
|
|
27
|
-
isMobileLayout: boolean;
|
|
28
|
-
setIsMobileLayout: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
-
};
|
|
30
|
-
export declare const InternalAdminLayout: (props: any) => React.JSX.Element;
|
|
31
|
-
export declare const AdminProvider: (props: any) => React.JSX.Element;
|
|
14
|
+
export { AdminDynamicPage } from './AdminDynamicPage';
|
|
15
|
+
export { AdminLayoutMenuItemModel } from './AdminLayoutMenuModels';
|
|
16
|
+
export { KeepAlive, useKeepAlive } from './KeepAlive';
|
|
17
|
+
export { LayoutContent };
|
|
18
|
+
export { NocoBaseDesktopRouteType } from './route-types';
|
|
19
|
+
export { NocoBaseRouteContext, CurrentRouteProvider, useCurrentRoute, useAllAccessDesktopRoutes, } from './route-runtime';
|
|
20
|
+
export { findFirstPageRoute, findRouteBySchemaUid } from './route-utils';
|
|
21
|
+
export { AdminShellProvider as AdminProvider } from './AdminShellProvider';
|
|
22
|
+
export { shouldRenderIconInTitle, useMobileLayout };
|
|
32
23
|
export declare const AdminLayout: (props: any) => React.JSX.Element;
|
|
33
24
|
export declare class AdminLayoutPlugin extends Plugin {
|
|
34
25
|
afterAdd(): Promise<void>;
|
|
35
26
|
load(): Promise<void>;
|
|
36
27
|
}
|
|
37
|
-
export declare function findRouteBySchemaUid(schemaUid: string, treeArray: any[]): any;
|
|
38
|
-
export declare function findFirstPageRoute(routes: NocoBaseDesktopRoute[]): any;
|
|
@@ -6,10 +6,10 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
9
|
+
export declare const MOBILE_MENU_CLOSE_DELAY_MS = 220;
|
|
10
|
+
export declare const runAfterMobileMenuClosed: ({ isMobile, closeMobileMenu, callback, delayMs, }: {
|
|
11
|
+
isMobile: boolean;
|
|
12
|
+
closeMobileMenu: () => void;
|
|
13
|
+
callback: () => void;
|
|
14
|
+
delayMs?: number;
|
|
15
|
+
}) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import React, { FC } from 'react';
|
|
10
|
+
import { NocoBaseDesktopRoute } from './route-types';
|
|
11
|
+
export declare const NocoBaseRouteContext: React.Context<NocoBaseDesktopRoute>;
|
|
12
|
+
export declare const CurrentRouteProvider: FC<{
|
|
13
|
+
uid: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const useCurrentRoute: () => NocoBaseDesktopRoute;
|
|
16
|
+
export declare const useAllAccessDesktopRoutes: () => {
|
|
17
|
+
allAccessRoutes: NocoBaseDesktopRoute[];
|
|
18
|
+
refresh: () => Promise<NocoBaseDesktopRoute[]>;
|
|
19
|
+
};
|
|
20
|
+
export declare const RoutesRequestProvider: FC;
|