@nocobase/client 2.1.0-beta.21 → 2.1.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ai/index.d.ts +2 -4
- package/es/api-client/APIClient.d.ts +1 -2
- package/es/application/Application.d.ts +69 -139
- package/es/application/Plugin.d.ts +2 -24
- package/es/application/PluginManager.d.ts +7 -36
- package/es/application/PluginSettingsManager.d.ts +103 -7
- package/es/application/RouteRepository.d.ts +1 -15
- package/es/application/RouterManager.d.ts +4 -44
- package/es/application/WebSocketClient.d.ts +2 -36
- package/es/application/components/index.d.ts +0 -2
- package/es/application/hooks/usePlugin.d.ts +2 -2
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/application/schema-settings/hooks/useSchemaSettingsRender.d.ts +2 -2
- package/es/application/utils/remotePlugins.d.ts +6 -6
- package/es/block-provider/TableBlockContextBasicValue.d.ts +25 -0
- package/es/block-provider/TableBlockProvider.d.ts +0 -11
- package/es/block-provider/index.d.ts +1 -0
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +2 -2
- package/es/collection-manager/templates/sql.d.ts +4 -4
- package/es/collection-manager/templates/view.d.ts +4 -4
- package/es/data-source/collection/utils.d.ts +3 -3
- package/es/data-source/data-block/DataBlockProvider.d.ts +1 -1
- package/es/global-theme/AntdAppProvider.d.ts +1 -10
- package/es/global-theme/compatOldTheme.d.ts +1 -3
- package/es/global-theme/customAlgorithm.d.ts +1 -7
- package/es/global-theme/defaultTheme.d.ts +1 -3
- package/es/global-theme/index.d.ts +2 -29
- package/es/global-theme/type.d.ts +1 -56
- package/es/index.d.ts +1 -1
- package/es/index.mjs +507 -1118
- package/es/modules/actions/link/useURLAndHTMLSchema.d.ts +1 -0
- package/es/modules/blocks/BlockSchemaToolbar.d.ts +1 -1
- package/es/plugin-manager/PinnedPluginListProvider.d.ts +2 -1
- package/es/plugin-manager/context.d.ts +1 -4
- package/es/pm/AdminSettingsLayoutModel.d.ts +2 -4
- package/es/{flow/components/placeholders/FieldPlaceholder.d.ts → route-switch/antd/admin-layout/AdminDynamicPage.d.ts} +1 -1
- package/es/route-switch/antd/admin-layout/AdminLayoutCompat.d.ts +32 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutComponentV1.d.ts +15 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutMenuFlowUtils.d.ts +107 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutMenuModels.d.ts +64 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutMenuUtils.d.ts +164 -0
- package/es/route-switch/antd/admin-layout/AdminLayoutModel.d.ts +22 -16
- package/es/{application/components/AppComponent.d.ts → route-switch/antd/admin-layout/AdminShellProvider.d.ts} +4 -6
- package/es/{flow/components/drag-drop/Sortable.d.ts → route-switch/antd/admin-layout/ResetThemeTokenAndKeepAlgorithm.d.ts} +4 -3
- package/es/route-switch/antd/admin-layout/index.d.ts +12 -27
- package/es/route-switch/antd/admin-layout/route-runtime.d.ts +20 -0
- package/es/route-switch/antd/admin-layout/{convertRoutesToSchema.d.ts → route-types.d.ts} +5 -1
- package/es/route-switch/antd/admin-layout/route-utils.d.ts +13 -0
- package/es/schema-component/antd/__builtins__/hooks/useToken.d.ts +1 -1
- package/es/schema-component/antd/__builtins__/style.d.ts +1 -1
- package/es/schema-component/antd/association-field/hooks.d.ts +1 -1
- package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -1
- package/es/schema-component/antd/menu/Menu.d.ts +2 -2
- package/es/schema-component/antd/page/pagePopupUtils.d.ts +1 -1
- package/es/schema-initializer/components/CreateRecordAction.d.ts +1 -1
- package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
- package/es/schema-settings/SchemaSettings.d.ts +1 -1
- package/es/style/index.d.ts +1 -1
- package/es/style/useToken.d.ts +1 -1
- package/es/system-settings/SystemSettingsProvider.d.ts +1 -6
- package/es/{flow/components/code-editor/extension/index.d.ts → system-settings/SystemSettingsSource.d.ts} +1 -1
- package/es/system-settings/index.d.ts +2 -1
- package/lib/index.js +530 -1141
- package/lib/locale/en-US.json +11 -0
- package/lib/locale/zh-CN.json +12 -1
- package/package.json +7 -6
- package/es/ai/ai-manager.d.ts +0 -15
- package/es/ai/skills-manager/index.d.ts +0 -9
- package/es/ai/skills-manager/types.d.ts +0 -23
- package/es/ai/tools-manager/hooks/context.d.ts +0 -17
- package/es/ai/tools-manager/hooks/index.d.ts +0 -11
- package/es/ai/tools-manager/hooks/provider.d.ts +0 -16
- package/es/ai/tools-manager/index.d.ts +0 -20
- package/es/ai/tools-manager/types.d.ts +0 -90
- package/es/ai/utils.d.ts +0 -10
- package/es/application/components/MainComponent.d.ts +0 -10
- package/es/application/components/defaultComponents.d.ts +0 -19
- package/es/flow/FlowModelRepository.d.ts +0 -36
- package/es/flow/FlowPage.d.ts +0 -20
- package/es/flow/actions/aclCheck.d.ts +0 -9
- package/es/flow/actions/aclCheckRefresh.d.ts +0 -9
- package/es/flow/actions/afterSuccess.d.ts +0 -9
- package/es/flow/actions/blockHeight.d.ts +0 -9
- package/es/flow/actions/columnFixed.d.ts +0 -9
- package/es/flow/actions/confirm.d.ts +0 -9
- package/es/flow/actions/customVariable.d.ts +0 -9
- package/es/flow/actions/dataLoadingMode.d.ts +0 -9
- package/es/flow/actions/dataScope.d.ts +0 -9
- package/es/flow/actions/dateTimeFormat.d.ts +0 -9
- package/es/flow/actions/displayFieldComponent.d.ts +0 -19
- package/es/flow/actions/fieldComponent.d.ts +0 -9
- package/es/flow/actions/filterFormDefaultValues.d.ts +0 -9
- package/es/flow/actions/formAssignRules.d.ts +0 -9
- package/es/flow/actions/index.d.ts +0 -40
- package/es/flow/actions/layout.d.ts +0 -10
- package/es/flow/actions/linkageRules.d.ts +0 -23
- package/es/flow/actions/linkageRulesRefresh.d.ts +0 -9
- package/es/flow/actions/navigateToURL.d.ts +0 -9
- package/es/flow/actions/numberFormat.d.ts +0 -9
- package/es/flow/actions/openView.d.ts +0 -15
- package/es/flow/actions/overflowMode.d.ts +0 -9
- package/es/flow/actions/pattern.d.ts +0 -9
- package/es/flow/actions/refreshTargetBlocks.d.ts +0 -9
- package/es/flow/actions/renderMode.d.ts +0 -9
- package/es/flow/actions/required.d.ts +0 -9
- package/es/flow/actions/runjs.d.ts +0 -9
- package/es/flow/actions/setTargetDataScope.d.ts +0 -10
- package/es/flow/actions/showMessage.d.ts +0 -9
- package/es/flow/actions/showNotification.d.ts +0 -9
- package/es/flow/actions/sortingRules.d.ts +0 -9
- package/es/flow/actions/titleField.d.ts +0 -9
- package/es/flow/actions/validation.d.ts +0 -9
- package/es/flow/common/Liquid.d.ts +0 -33
- package/es/flow/common/Markdown/Display.d.ts +0 -9
- package/es/flow/common/Markdown/Edit.d.ts +0 -23
- package/es/flow/common/Markdown/Markdown.d.ts +0 -24
- package/es/flow/common/Markdown/style.d.ts +0 -10
- package/es/flow/common/Markdown/useCDN.d.ts +0 -9
- package/es/flow/components/BlockItemCard.d.ts +0 -16
- package/es/flow/components/ConditionBuilder.d.ts +0 -17
- package/es/flow/components/DefaultValue.d.ts +0 -20
- package/es/flow/components/DynamicFlowsIcon.d.ts +0 -13
- package/es/flow/components/EllipsisWithTooltip.d.ts +0 -17
- package/es/flow/components/ExpiresRadio/index.d.ts +0 -12
- package/es/flow/components/FieldAssignEditor.d.ts +0 -32
- package/es/flow/components/FieldAssignExactDatePicker.d.ts +0 -23
- package/es/flow/components/FieldAssignRulesEditor.d.ts +0 -70
- package/es/flow/components/FieldAssignValueInput.d.ts +0 -88
- package/es/flow/components/Grid/index.d.ts +0 -26
- package/es/flow/components/JsonEditor.d.ts +0 -19
- package/es/flow/components/RunJSValueEditor.d.ts +0 -19
- package/es/flow/components/SkeletonFallback.d.ts +0 -10
- package/es/flow/components/TextAreaWithContextSelector.d.ts +0 -30
- package/es/flow/components/code-editor/core/EditorCore.d.ts +0 -25
- package/es/flow/components/code-editor/core/tooltipParent.d.ts +0 -9
- package/es/flow/components/code-editor/errorHelpers.d.ts +0 -17
- package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +0 -14
- package/es/flow/components/code-editor/formatDocInfo.d.ts +0 -17
- package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +0 -23
- package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +0 -15
- package/es/flow/components/code-editor/htmlCompletion.d.ts +0 -11
- package/es/flow/components/code-editor/index.d.ts +0 -31
- package/es/flow/components/code-editor/javascriptCompletion.d.ts +0 -11
- package/es/flow/components/code-editor/javascriptHtmlTemplate.d.ts +0 -16
- package/es/flow/components/code-editor/jsxCompletion.d.ts +0 -10
- package/es/flow/components/code-editor/linter.d.ts +0 -19
- package/es/flow/components/code-editor/panels/LogsPanel.d.ts +0 -15
- package/es/flow/components/code-editor/panels/RightExtra.d.ts +0 -18
- package/es/flow/components/code-editor/panels/SnippetsDrawer.d.ts +0 -18
- package/es/flow/components/code-editor/resolveScenes.d.ts +0 -10
- package/es/flow/components/code-editor/runjsCompletionSource.d.ts +0 -20
- package/es/flow/components/code-editor/runjsCompletions.d.ts +0 -23
- package/es/flow/components/code-editor/runjsDiagnostics.d.ts +0 -46
- package/es/flow/components/code-editor/types.d.ts +0 -32
- package/es/flow/components/drag-drop/SortableItem.d.ts +0 -12
- package/es/flow/components/drag-drop/index.d.ts +0 -10
- package/es/flow/components/fieldAssignOptions.d.ts +0 -23
- package/es/flow/components/filter/FilterContainer.d.ts +0 -67
- package/es/flow/components/filter/FilterGroup.d.ts +0 -66
- package/es/flow/components/filter/FilterItem.d.ts +0 -40
- package/es/flow/components/filter/LinkageFilterItem.d.ts +0 -51
- package/es/flow/components/filter/VariableFilterItem.d.ts +0 -37
- package/es/flow/components/filter/fieldsToOptions.d.ts +0 -9
- package/es/flow/components/filter/index.d.ts +0 -16
- package/es/flow/components/index.d.ts +0 -14
- package/es/flow/components/placeholders/BlockPlaceholder.d.ts +0 -11
- package/es/flow/components/useAssociationTitleFieldSync.d.ts +0 -13
- package/es/flow/flows/editMarkdownFlow.d.ts +0 -10
- package/es/flow/flows/openViewFlow.d.ts +0 -17
- package/es/flow/formily/ReactiveField.d.ts +0 -19
- package/es/flow/formily/index.d.ts +0 -8
- package/es/flow/getViewDiffAndUpdateHidden.d.ts +0 -21
- package/es/flow/index.d.ts +0 -24
- package/es/flow/internal/components/Markdown/DisplayMarkdown.d.ts +0 -10
- package/es/flow/internal/components/Markdown/markdown-it-plugins/mermaidPlugin.d.ts +0 -13
- package/es/flow/internal/components/Markdown/md.d.ts +0 -11
- package/es/flow/internal/components/Markdown/style.d.ts +0 -9
- package/es/flow/internal/components/Markdown/util.d.ts +0 -15
- package/es/flow/internal/constants/HeightMode.d.ts +0 -13
- package/es/flow/internal/index.d.ts +0 -11
- package/es/flow/internal/utils/associationValueCoercion.d.ts +0 -15
- package/es/flow/internal/utils/dateTimeUtils.d.ts +0 -10
- package/es/flow/internal/utils/enumOptionsUtils.d.ts +0 -23
- package/es/flow/internal/utils/modelUtils.d.ts +0 -27
- package/es/flow/internal/utils/operatorSchemaHelper.d.ts +0 -15
- package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +0 -33
- package/es/flow/internal/utils/saveStepParamsWithSubModels.d.ts +0 -11
- package/es/flow/internal/utils/titleFieldQuickSync.d.ts +0 -35
- package/es/flow/models/actions/AddChildActionModel.d.ts +0 -16
- package/es/flow/models/actions/AddNewActionModel.d.ts +0 -16
- package/es/flow/models/actions/BulkDeleteActionModel.d.ts +0 -16
- package/es/flow/models/actions/DeleteActionModel.d.ts +0 -15
- package/es/flow/models/actions/EditActionModel.d.ts +0 -16
- package/es/flow/models/actions/ExpandCollapseActionModel.d.ts +0 -19
- package/es/flow/models/actions/FilterActionModel.d.ts +0 -26
- package/es/flow/models/actions/JSActionModel.d.ts +0 -13
- package/es/flow/models/actions/JSCollectionActionModel.d.ts +0 -14
- package/es/flow/models/actions/JSItemActionModel.d.ts +0 -19
- package/es/flow/models/actions/JSRecordActionModel.d.ts +0 -14
- package/es/flow/models/actions/LinkActionModel.d.ts +0 -15
- package/es/flow/models/actions/LinkActionUtils.d.ts +0 -34
- package/es/flow/models/actions/PopupCollectionActionModel.d.ts +0 -14
- package/es/flow/models/actions/RefreshActionModel.d.ts +0 -14
- package/es/flow/models/actions/UpdateRecordActionModel.d.ts +0 -27
- package/es/flow/models/actions/UpdateRecordActionUtils.d.ts +0 -12
- package/es/flow/models/actions/ViewActionModel.d.ts +0 -15
- package/es/flow/models/actions/index.d.ts +0 -24
- package/es/flow/models/actions/joinUrlSearch.d.ts +0 -12
- package/es/flow/models/base/ActionGroupModel.d.ts +0 -36
- package/es/flow/models/base/ActionModel.d.ts +0 -45
- package/es/flow/models/base/AssociationFieldGroupModel.d.ts +0 -49
- package/es/flow/models/base/BlockGridModel.d.ts +0 -22
- package/es/flow/models/base/BlockModel.d.ts +0 -57
- package/es/flow/models/base/CollectionActionModel.d.ts +0 -12
- package/es/flow/models/base/CollectionBlockModel.d.ts +0 -71
- package/es/flow/models/base/CommonItemModel.d.ts +0 -11
- package/es/flow/models/base/DataBlockModel.d.ts +0 -12
- package/es/flow/models/base/FieldModel.d.ts +0 -17
- package/es/flow/models/base/FilterBlockModel.d.ts +0 -12
- package/es/flow/models/base/GridModel.d.ts +0 -99
- package/es/flow/models/base/PageModel/ChildPageModel.d.ts +0 -21
- package/es/flow/models/base/PageModel/MainPageModel.d.ts +0 -17
- package/es/flow/models/base/PageModel/OldPageModel.d.ts +0 -21
- package/es/flow/models/base/PageModel/PageModel.d.ts +0 -53
- package/es/flow/models/base/PageModel/PageTabModel.d.ts +0 -42
- package/es/flow/models/base/PageModel/RootPageModel.d.ts +0 -24
- package/es/flow/models/base/PageModel/SubPageModel.d.ts +0 -17
- package/es/flow/models/base/PageModel/index.d.ts +0 -14
- package/es/flow/models/base/PopupActionModel.d.ts +0 -13
- package/es/flow/models/base/RecordActionModel.d.ts +0 -12
- package/es/flow/models/base/RouteModel.d.ts +0 -11
- package/es/flow/models/base/index.d.ts +0 -24
- package/es/flow/models/blocks/assign-form/AssignFormGridModel.d.ts +0 -15
- package/es/flow/models/blocks/assign-form/AssignFormItemModel.d.ts +0 -22
- package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +0 -26
- package/es/flow/models/blocks/assign-form/index.d.ts +0 -11
- package/es/flow/models/blocks/details/DetailsAssociationFieldGroupModel.d.ts +0 -12
- package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +0 -41
- package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +0 -13
- package/es/flow/models/blocks/details/DetailsGridModel.d.ts +0 -33
- package/es/flow/models/blocks/details/DetailsItemModel.d.ts +0 -60
- package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +0 -19
- package/es/flow/models/blocks/details/index.d.ts +0 -14
- package/es/flow/models/blocks/details/utils.d.ts +0 -16
- package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/FieldOperatorSelect.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/FilterFormActionGroupModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/FilterFormActionModel.d.ts +0 -11
- package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +0 -39
- package/es/flow/models/blocks/filter-form/FilterFormCollapseActionModel.d.ts +0 -18
- package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +0 -43
- package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +0 -59
- package/es/flow/models/blocks/filter-form/FilterFormJSActionModel.d.ts +0 -11
- package/es/flow/models/blocks/filter-form/FilterFormResetActionModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +0 -15
- package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/customFieldOperators.d.ts +0 -34
- package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +0 -52
- package/es/flow/models/blocks/filter-form/fields/FilterFormCustomRecordSelectFieldModel.d.ts +0 -20
- package/es/flow/models/blocks/filter-form/fields/FilterFormFieldModel.d.ts +0 -11
- package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +0 -12
- package/es/flow/models/blocks/filter-form/fields/date-time/DateOnlyFilterFieldModel.d.ts +0 -14
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeNoTzFilterFieldModel.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeTzFilterFieldModel.d.ts +0 -14
- package/es/flow/models/blocks/filter-form/fields/date-time/components/DateFilterDynamicComponent.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterDatePicker.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/fields/date-time/components/FilterRangePicker.d.ts +0 -10
- package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +0 -12
- package/es/flow/models/blocks/filter-form/fields/index.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/index.d.ts +0 -23
- package/es/flow/models/blocks/filter-form/legacyDefaultValueMigration.d.ts +0 -13
- package/es/flow/models/blocks/filter-form/valueNormalization.d.ts +0 -17
- package/es/flow/models/blocks/filter-manager/FilterManager.d.ts +0 -141
- package/es/flow/models/blocks/filter-manager/flow-actions/connectFields.d.ts +0 -10
- package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +0 -10
- package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +0 -9
- package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +0 -12
- package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +0 -10
- package/es/flow/models/blocks/filter-manager/index.d.ts +0 -11
- package/es/flow/models/blocks/filter-manager/utils.d.ts +0 -21
- package/es/flow/models/blocks/form/CreateFormModel.d.ts +0 -22
- package/es/flow/models/blocks/form/EditFormModel.d.ts +0 -26
- package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +0 -13
- package/es/flow/models/blocks/form/FormActionModel.d.ts +0 -21
- package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +0 -12
- package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +0 -39
- package/es/flow/models/blocks/form/FormBlockModel.d.ts +0 -96
- package/es/flow/models/blocks/form/FormCustomItemModel.d.ts +0 -13
- package/es/flow/models/blocks/form/FormGridModel.d.ts +0 -34
- package/es/flow/models/blocks/form/FormItemModel.d.ts +0 -39
- package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +0 -18
- package/es/flow/models/blocks/form/JSFormActionModel.d.ts +0 -11
- package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +0 -38
- package/es/flow/models/blocks/form/assignRulesUpdateAssociationValues.d.ts +0 -18
- package/es/flow/models/blocks/form/dynamicNamePath.d.ts +0 -19
- package/es/flow/models/blocks/form/index.d.ts +0 -21
- package/es/flow/models/blocks/form/legacyDefaultValueMigration.d.ts +0 -13
- package/es/flow/models/blocks/form/submitHandler.d.ts +0 -9
- package/es/flow/models/blocks/form/submitValues.d.ts +0 -40
- package/es/flow/models/blocks/form/value-runtime/conditions.d.ts +0 -9
- package/es/flow/models/blocks/form/value-runtime/deps.d.ts +0 -23
- package/es/flow/models/blocks/form/value-runtime/form-patch.d.ts +0 -19
- package/es/flow/models/blocks/form/value-runtime/index.d.ts +0 -11
- package/es/flow/models/blocks/form/value-runtime/path.d.ts +0 -25
- package/es/flow/models/blocks/form/value-runtime/rules.d.ts +0 -137
- package/es/flow/models/blocks/form/value-runtime/runtime.d.ts +0 -88
- package/es/flow/models/blocks/form/value-runtime/types.d.ts +0 -62
- package/es/flow/models/blocks/form/value-runtime/utils.d.ts +0 -12
- package/es/flow/models/blocks/index.d.ts +0 -15
- package/es/flow/models/blocks/js-block/JSBlock.d.ts +0 -16
- package/es/flow/models/blocks/js-block/index.d.ts +0 -9
- package/es/flow/models/blocks/shared/legacyDefaultValueMigrationBase.d.ts +0 -20
- package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -21
- package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -18
- package/es/flow/models/blocks/table/TableAssociationFieldGroupModel.d.ts +0 -12
- package/es/flow/models/blocks/table/TableBlockModel.d.ts +0 -68
- package/es/flow/models/blocks/table/TableColumnModel.d.ts +0 -29
- 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/sortUtils.d.ts +0 -32
- package/es/flow/models/blocks/table/utils.d.ts +0 -18
- package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +0 -42
- package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +0 -5
- package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +0 -45
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +0 -11
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +0 -19
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +0 -30
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +0 -28
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +0 -16
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +0 -14
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/popupSubTableBeforeClose.d.ts +0 -25
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +0 -36
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +0 -17
- package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +0 -45
- package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +0 -46
- package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +0 -32
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +0 -32
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.d.ts +0 -10
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +0 -19
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/rowIdentity.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 -99
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +0 -48
- package/es/flow/models/fields/CheckboxFieldModel.d.ts +0 -13
- package/es/flow/models/fields/CheckboxGroupFieldModel.d.ts +0 -13
- package/es/flow/models/fields/ClickableFieldModel.d.ts +0 -25
- package/es/flow/models/fields/CollectionSelectorFieldModel.d.ts +0 -13
- package/es/flow/models/fields/ColorFieldModel.d.ts +0 -14
- package/es/flow/models/fields/DateTimeFieldModel/DateOnlyFieldModel.d.ts +0 -7
- package/es/flow/models/fields/DateTimeFieldModel/DateTimeFieldModel.d.ts +0 -3
- package/es/flow/models/fields/DateTimeFieldModel/DateTimeNoTzFieldModel.d.ts +0 -6
- package/es/flow/models/fields/DateTimeFieldModel/DateTimeTzFieldModel.d.ts +0 -7
- package/es/flow/models/fields/DateTimeFieldModel/index.d.ts +0 -11
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +0 -26
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +0 -26
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +0 -20
- package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +0 -14
- package/es/flow/models/fields/DisplayAssociationField/index.d.ts +0 -11
- package/es/flow/models/fields/DisplayCheckboxFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayColorFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayDateTimeFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +0 -14
- package/es/flow/models/fields/DisplayHtmlFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayIconFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +0 -33
- package/es/flow/models/fields/DisplayPasswordFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayPercentFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayTextFieldModel.d.ts +0 -14
- package/es/flow/models/fields/DisplayTimeFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DisplayTitleFieldModel.d.ts +0 -18
- package/es/flow/models/fields/DisplayURLFieldModel.d.ts +0 -13
- package/es/flow/models/fields/DividerItemModel.d.ts +0 -13
- package/es/flow/models/fields/IconFieldModel.d.ts +0 -13
- package/es/flow/models/fields/InputFieldModel.d.ts +0 -13
- package/es/flow/models/fields/JSEditableFieldModel.d.ts +0 -27
- package/es/flow/models/fields/JSFieldModel.d.ts +0 -45
- package/es/flow/models/fields/JSItemModel.d.ts +0 -27
- package/es/flow/models/fields/JsonFieldModel.d.ts +0 -6
- package/es/flow/models/fields/MarkdownItemModel.d.ts +0 -14
- package/es/flow/models/fields/NumberFieldModel.d.ts +0 -15
- package/es/flow/models/fields/PasswordFieldModel.d.ts +0 -13
- package/es/flow/models/fields/PercentFieldModel.d.ts +0 -14
- package/es/flow/models/fields/RadioGroupFieldModel.d.ts +0 -13
- package/es/flow/models/fields/RichTextFieldModel/index.d.ts +0 -14
- package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +0 -9
- package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +0 -9
- package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +0 -12
- package/es/flow/models/fields/RichTextFieldModel/style.d.ts +0 -9
- package/es/flow/models/fields/SelectFieldModel.d.ts +0 -13
- package/es/flow/models/fields/TextareaFieldModel.d.ts +0 -13
- package/es/flow/models/fields/TimeFieldModel.d.ts +0 -5
- package/es/flow/models/fields/VariableFieldFormModel.d.ts +0 -18
- package/es/flow/models/fields/index.d.ts +0 -47
- package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +0 -10
- package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +0 -11
- package/es/flow/models/fields/mobile-components/MobileSelect.d.ts +0 -10
- package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +0 -10
- package/es/flow/models/index.d.ts +0 -12
- package/es/flow/models/utils/resolveRunJsParams.d.ts +0 -19
- package/es/flow/resolveViewParamsToViewList.d.ts +0 -20
- package/es/flow/utils/actionCapability.d.ts +0 -60
- package/es/flow/utils/blockUtils.d.ts +0 -16
- package/es/flow/utils/dispatchEventDeep.d.ts +0 -20
- package/es/flow/utils/index.d.ts +0 -11
- package/es/flow/utils/pagination.d.ts +0 -29
- package/es/flow/utils/useJsonTemplateResolver.d.ts +0 -9
- package/es/route-switch/antd/admin-layout/AdminLayoutRouteCoordinator.d.ts +0 -50
- package/es/route-switch/antd/admin-layout/useApplications.d.ts +0 -12
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
/** Maximum writes per path per transaction to prevent rule oscillation loops */
|
|
10
|
-
export declare const MAX_WRITES_PER_PATH_PER_TX = 20;
|
|
11
|
-
export declare function isEmptyValue(v: any): boolean;
|
|
12
|
-
export declare function createTxId(): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
export * from './assign-form';
|
|
10
|
-
export * from './details';
|
|
11
|
-
export * from './filter-form';
|
|
12
|
-
export * from './filter-manager';
|
|
13
|
-
export * from './form';
|
|
14
|
-
export * from './js-block';
|
|
15
|
-
export * from './table';
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { BlockModel } from '../../base';
|
|
11
|
-
export declare class JSBlockModel extends BlockModel {
|
|
12
|
-
private _mountedOnce;
|
|
13
|
-
renderComponent(): React.ReactNode;
|
|
14
|
-
render(): React.JSX.Element;
|
|
15
|
-
protected onMount(): void;
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
export * from './JSBlock';
|
|
@@ -1,20 +0,0 @@
|
|
|
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 { FieldAssignRuleItem } from '../../../components/FieldAssignRulesEditor';
|
|
10
|
-
export interface LegacyValueExtractor {
|
|
11
|
-
(model: any): any | undefined;
|
|
12
|
-
}
|
|
13
|
-
export interface LegacyClearer {
|
|
14
|
-
(model: any): void;
|
|
15
|
-
}
|
|
16
|
-
export declare function createLegacyValueExtractor(flowKeys: string[]): LegacyValueExtractor;
|
|
17
|
-
export declare function createLegacyClearer(flowKeys: string[]): LegacyClearer;
|
|
18
|
-
export declare function collectLegacyDefaultValueRules(formModel: any, extractor: LegacyValueExtractor): FieldAssignRuleItem[];
|
|
19
|
-
export declare function mergeAssignRulesWithLegacyDefaults(existing: FieldAssignRuleItem[] | undefined, legacyDefaults: FieldAssignRuleItem[]): FieldAssignRuleItem[];
|
|
20
|
-
export declare function clearLegacyDefaultValues(formModel: any, extractor: LegacyValueExtractor, clearer: LegacyClearer): any[];
|
|
@@ -1,21 +0,0 @@
|
|
|
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 { TableCustomColumnModel } from './TableCustomColumnModel';
|
|
11
|
-
export declare class JSColumnModel extends TableCustomColumnModel {
|
|
12
|
-
private _RenderComponent?;
|
|
13
|
-
renderHiddenInConfig(): React.JSX.Element;
|
|
14
|
-
getInputArgs(): {};
|
|
15
|
-
getColumnProps(): {
|
|
16
|
-
title: React.JSX.Element;
|
|
17
|
-
render: (value: any, record: any, index: any) => React.JSX.Element;
|
|
18
|
-
};
|
|
19
|
-
render(): React.ComponentType<{}>;
|
|
20
|
-
afterAddAsSubModel(): Promise<void>;
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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 { TableCustomColumnModel } from './TableCustomColumnModel';
|
|
11
|
-
export declare class TableActionsColumnModel extends TableCustomColumnModel {
|
|
12
|
-
afterAddAsSubModel(): Promise<void>;
|
|
13
|
-
getColumnProps(): {
|
|
14
|
-
title: React.JSX.Element;
|
|
15
|
-
render: (value: any, record: any, index: any) => React.JSX.Element;
|
|
16
|
-
};
|
|
17
|
-
render(): (value: any, record: any, index: any) => React.JSX.Element;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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 { AssociationFieldGroupModel } from '../../base';
|
|
10
|
-
export declare class TableAssociationFieldGroupModel extends AssociationFieldGroupModel {
|
|
11
|
-
static itemModelName: string;
|
|
12
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
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 { MultiRecordResource } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { ActionModel, CollectionBlockModel } from '../../base';
|
|
12
|
-
import { TableColumnModel } from './TableColumnModel';
|
|
13
|
-
type TableBlockModelStructure = {
|
|
14
|
-
subModels: {
|
|
15
|
-
columns: TableColumnModel[];
|
|
16
|
-
actions: ActionModel[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type CustomTableBlockModelClassesEnum = {
|
|
20
|
-
CollectionActionGroupModel?: string;
|
|
21
|
-
RecordActionGroupModel?: string;
|
|
22
|
-
TableColumnModel?: string;
|
|
23
|
-
TableAssociationFieldGroupModel?: string;
|
|
24
|
-
TableCustomColumnModel?: string;
|
|
25
|
-
};
|
|
26
|
-
export declare class TableBlockModel extends CollectionBlockModel<TableBlockModelStructure> {
|
|
27
|
-
static scene: import("../../base").BlockSceneType;
|
|
28
|
-
rowSelectionProps: {};
|
|
29
|
-
_defaultCustomModelClasses: {
|
|
30
|
-
CollectionActionGroupModel: string;
|
|
31
|
-
RecordActionGroupModel: string;
|
|
32
|
-
TableColumnModel: string;
|
|
33
|
-
TableAssociationFieldGroupModel: string;
|
|
34
|
-
TableCustomColumnModel: string;
|
|
35
|
-
};
|
|
36
|
-
customModelClasses: CustomTableBlockModelClassesEnum;
|
|
37
|
-
get resource(): MultiRecordResource<any>;
|
|
38
|
-
private readonly columns;
|
|
39
|
-
private disposeAutorun;
|
|
40
|
-
onMount(): void;
|
|
41
|
-
onUnmount(): void;
|
|
42
|
-
createResource(ctx: any, params: any): MultiRecordResource<unknown>;
|
|
43
|
-
/**
|
|
44
|
-
* 高亮指定的行
|
|
45
|
-
* @param record - 要高亮的行记录
|
|
46
|
-
*/
|
|
47
|
-
highlightRow(record: any): void;
|
|
48
|
-
/**
|
|
49
|
-
* 取消行高亮
|
|
50
|
-
*/
|
|
51
|
-
clearHighlight(): void;
|
|
52
|
-
getColumns(): any[];
|
|
53
|
-
EditableRow: (props: any) => React.JSX.Element;
|
|
54
|
-
EditableCell: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
55
|
-
components: {
|
|
56
|
-
header: {
|
|
57
|
-
wrapper: React.NamedExoticComponent<object>;
|
|
58
|
-
};
|
|
59
|
-
body: {
|
|
60
|
-
cell: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
renderCell: (checked: any, record: any, index: any, originNode: any) => any;
|
|
64
|
-
renderConfigureActions(): React.JSX.Element;
|
|
65
|
-
pagination(): import("antd").PaginationProps;
|
|
66
|
-
renderComponent(): React.JSX.Element;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
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 { DisplayItemModel, FlowModelContext, ModelRenderMode } from '@nocobase/flow-engine';
|
|
10
|
-
import { TableColumnProps } from 'antd';
|
|
11
|
-
import React from 'react';
|
|
12
|
-
export declare function FieldDeletePlaceholder(props: any): React.JSX.Element;
|
|
13
|
-
export declare const CustomWidth: ({ setOpen, t, handleChange, defaultValue }: {
|
|
14
|
-
setOpen: any;
|
|
15
|
-
t: any;
|
|
16
|
-
handleChange: any;
|
|
17
|
-
defaultValue: any;
|
|
18
|
-
}) => React.JSX.Element;
|
|
19
|
-
export declare class TableColumnModel extends DisplayItemModel {
|
|
20
|
-
static renderMode: ModelRenderMode;
|
|
21
|
-
afterAddAsSubModel(): Promise<void>;
|
|
22
|
-
renderHiddenInConfig(): React.ReactNode | undefined;
|
|
23
|
-
static defineChildren(ctx: FlowModelContext): any;
|
|
24
|
-
getColumnProps(): TableColumnProps & {
|
|
25
|
-
sortField?: string;
|
|
26
|
-
};
|
|
27
|
-
onInit(options: any): void;
|
|
28
|
-
renderItem(): any;
|
|
29
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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, ModelRenderMode } from '@nocobase/flow-engine';
|
|
10
|
-
export declare class TableCustomColumnModel extends FlowModel {
|
|
11
|
-
static renderMode: ModelRenderMode;
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { FlowModelContext, type SubModelItem } from '@nocobase/flow-engine';
|
|
10
|
-
import { TableCustomColumnModel } from './TableCustomColumnModel';
|
|
11
|
-
/**
|
|
12
|
-
* “JavaScript 字段”菜单入口(表格):
|
|
13
|
-
* - 仅用于在“添加列”菜单中提供一个二级菜单;
|
|
14
|
-
* - 子项为当前集合可选字段;
|
|
15
|
-
* - 点击后创建 TableColumnModel,并将其 subModels.field 固定为 JSFieldModel。
|
|
16
|
-
*/
|
|
17
|
-
export declare class TableJSFieldItemModel extends TableCustomColumnModel {
|
|
18
|
-
static defineChildren(ctx: FlowModelContext): Promise<SubModelItem[]>;
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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 { TableBlockModel } from './TableBlockModel';
|
|
10
|
-
export declare class TableSelectModel extends TableBlockModel {
|
|
11
|
-
static scene: import("../../base").BlockSceneType;
|
|
12
|
-
rowSelectionProps: any;
|
|
13
|
-
onInit(options: any): void;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
export declare const SortHandle: React.FC<{
|
|
11
|
-
id: string | number;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const SortableRow: (props: any) => React.JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
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 type { TableBlockModel } from '../TableBlockModel';
|
|
11
|
-
export declare function useDragSortBodyWrapper(model: TableBlockModel, dataSourceRef: React.MutableRefObject<any>, getRowKeyFunc: (record: any) => string | number): (props: any) => React.JSX.Element;
|
|
12
|
-
export declare function useDragSortRowComponent(dragSort: boolean): (props: any) => React.JSX.Element;
|
|
13
|
-
export declare function initDragSortParams(model: TableBlockModel): void;
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
export declare const dragSortSettings: {
|
|
10
|
-
title: string;
|
|
11
|
-
uiMode: {
|
|
12
|
-
type: "switch";
|
|
13
|
-
key: string;
|
|
14
|
-
};
|
|
15
|
-
defaultParams: {
|
|
16
|
-
dragSort: boolean;
|
|
17
|
-
};
|
|
18
|
-
handler(ctx: any, params: any): Promise<void>;
|
|
19
|
-
};
|
|
20
|
-
export declare const dragSortBySettings: {
|
|
21
|
-
title: string;
|
|
22
|
-
hideInSettings(ctx: any): boolean;
|
|
23
|
-
uiMode: (ctx: any) => {
|
|
24
|
-
type: "select";
|
|
25
|
-
key: string;
|
|
26
|
-
props: {
|
|
27
|
-
options: {
|
|
28
|
-
label: any;
|
|
29
|
-
value: any;
|
|
30
|
-
disabled: any;
|
|
31
|
-
}[];
|
|
32
|
-
placeholder: any;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
defaultParams: {
|
|
36
|
-
dragSortBy: any;
|
|
37
|
-
};
|
|
38
|
-
handler(ctx: any, params: any): void;
|
|
39
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
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 { Collection } from '@nocobase/flow-engine';
|
|
10
|
-
/**
|
|
11
|
-
* 从 collection 中获取所有 sort 类型的字段
|
|
12
|
-
* @param collection - 集合对象
|
|
13
|
-
* @returns 排序字段数组
|
|
14
|
-
*/
|
|
15
|
-
export declare function getSortFields(collection: Collection | undefined): import("@nocobase/flow-engine").CollectionField[];
|
|
16
|
-
/**
|
|
17
|
-
* 获取 collection 中第一个可用的 sort 字段
|
|
18
|
-
* @param collection - 集合对象
|
|
19
|
-
* @returns 第一个排序字段,如果没有则返回 undefined
|
|
20
|
-
*/
|
|
21
|
-
export declare function getFirstSortField(collection: Collection | undefined): import("@nocobase/flow-engine").CollectionField;
|
|
22
|
-
/**
|
|
23
|
-
* 将 sort 字段转换为选项格式
|
|
24
|
-
* @param fields - 字段数组
|
|
25
|
-
* @returns 选项数组
|
|
26
|
-
*/
|
|
27
|
-
export declare function convertFieldsToOptions(fields: any[]): {
|
|
28
|
-
label: any;
|
|
29
|
-
value: any;
|
|
30
|
-
disabled: any;
|
|
31
|
-
}[];
|
|
32
|
-
/**
|
|
33
|
-
* 检查 collection 是否支持拖拽排序
|
|
34
|
-
* @param collection - 集合对象
|
|
35
|
-
* @returns 如果 collection 有 sort 字段则返回 true
|
|
36
|
-
*/
|
|
37
|
-
export declare function supportsDragSort(collection: Collection | undefined): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
export * from './dragSortUtils';
|
|
10
|
-
export * from './dragSortComponents';
|
|
11
|
-
export * from './dragSortHooks';
|
|
12
|
-
export * from './dragSortSettings';
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
export * from './TableActionsColumnModel';
|
|
10
|
-
export * from './TableAssociationFieldGroupModel';
|
|
11
|
-
export * from './TableBlockModel';
|
|
12
|
-
export * from './TableColumnModel';
|
|
13
|
-
export * from './TableCustomColumnModel';
|
|
14
|
-
export * from './TableSelectModel';
|
|
15
|
-
export * from './TableJSFieldItemModel';
|
|
16
|
-
export * from './JSColumnModel';
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
type AssociationTitleFieldModel = {
|
|
10
|
-
fieldPath?: string;
|
|
11
|
-
props?: {
|
|
12
|
-
dataIndex?: string;
|
|
13
|
-
titleField?: string;
|
|
14
|
-
};
|
|
15
|
-
collectionField?: {
|
|
16
|
-
name?: string;
|
|
17
|
-
targetCollectionTitleFieldName?: string;
|
|
18
|
-
isAssociationField?: () => boolean;
|
|
19
|
-
};
|
|
20
|
-
getStepParams?: (flowKey: string, stepKey: string) => {
|
|
21
|
-
label?: string;
|
|
22
|
-
} | undefined;
|
|
23
|
-
};
|
|
24
|
-
export declare function getSavedAssociationTitleField(model: AssociationTitleFieldModel): string;
|
|
25
|
-
export declare function getTableColumnSortField(model: AssociationTitleFieldModel): string;
|
|
26
|
-
export declare function resolveTableSorterField(sorter: {
|
|
27
|
-
field?: string;
|
|
28
|
-
column?: {
|
|
29
|
-
sortField?: string;
|
|
30
|
-
};
|
|
31
|
-
}): string;
|
|
32
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function extractIndex(str: any): string;
|
|
3
|
-
export declare function adjustColumnOrder(columns: any): any[];
|
|
4
|
-
export declare function setNestedValue(data: any, recordIndex: any, value: any): void;
|
|
5
|
-
export declare function extractIds(data: any): any[];
|
|
6
|
-
/**
|
|
7
|
-
* 生成表格行唯一 key
|
|
8
|
-
* @param record 当前行数据
|
|
9
|
-
* @param key string | string[] 单字段或多字段
|
|
10
|
-
*/
|
|
11
|
-
export declare function getRowKey(record: any, key: string | string[]): any;
|
|
12
|
-
type UseBlockHeightOptions = {
|
|
13
|
-
heightMode?: string;
|
|
14
|
-
tableAreaRef: React.RefObject<HTMLDivElement>;
|
|
15
|
-
deps?: React.DependencyList;
|
|
16
|
-
};
|
|
17
|
-
export declare const useBlockHeight: ({ heightMode, tableAreaRef, deps }: UseBlockHeightOptions) => number;
|
|
18
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
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 FlowModelContext, type SubModelItem } from '@nocobase/flow-engine';
|
|
10
|
-
export interface TransformOptions {
|
|
11
|
-
fieldUseModel: string;
|
|
12
|
-
refreshTargets: string[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 递归将 SubModelItem 列表中的叶子节点 createModelOptions 重写为指定的 JS 字段模型。
|
|
16
|
-
* - 保留 children 的形态:数组或函数;
|
|
17
|
-
* - 对函数型 children 做一层包裹,确保返回结果继续被转换;
|
|
18
|
-
* - 对已有 createModelOptions(对象或函数)做二次包装并追加 subModels.field.use。
|
|
19
|
-
*/
|
|
20
|
-
export declare function transformChildrenToJS(items: SubModelItem[] | false | undefined, options: TransformOptions): SubModelItem[];
|
|
21
|
-
/**
|
|
22
|
-
* 构造“关联字段(JS 化)”分组节点,支持懒加载 children 并在返回时完成 JS 化。
|
|
23
|
-
*/
|
|
24
|
-
export declare function buildAssociationJSGroup(ctx: FlowModelContext, provider: (ctx: FlowModelContext) => SubModelItem[] | Promise<SubModelItem[]>, options: TransformOptions & {
|
|
25
|
-
key?: string;
|
|
26
|
-
label?: string;
|
|
27
|
-
searchable?: boolean;
|
|
28
|
-
searchPlaceholder?: string;
|
|
29
|
-
}): SubModelItem;
|
|
30
|
-
export declare function buildFormAssociationChildren(ctx: FlowModelContext): SubModelItem[];
|
|
31
|
-
export interface JSFieldMenuChildrenOptions {
|
|
32
|
-
useModel: string;
|
|
33
|
-
fieldUseModel: string;
|
|
34
|
-
refreshTargets: string[];
|
|
35
|
-
associationPathName?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 仅在需要“关系字段”入口时传入(例如 Table / Details 区块);
|
|
38
|
-
* 表单的 JS field 菜单默认不展示关系字段。
|
|
39
|
-
*/
|
|
40
|
-
associationProvider?: (ctx: FlowModelContext) => SubModelItem[] | Promise<SubModelItem[]>;
|
|
41
|
-
}
|
|
42
|
-
export declare function buildJSFieldMenuChildren(ctx: FlowModelContext, opts: JSFieldMenuChildrenOptions): Promise<SubModelItem[]>;
|
|
@@ -1,45 +0,0 @@
|
|
|
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 { CollectionField, MultiRecordResource } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { AssociationFieldModel } from './AssociationFieldModel';
|
|
12
|
-
type CascadeHydrateStatus = 'pending' | 'done';
|
|
13
|
-
export declare function collectCascadeHydrationCandidate(options: {
|
|
14
|
-
value: any;
|
|
15
|
-
valueKey: string;
|
|
16
|
-
labelKey?: string;
|
|
17
|
-
labelKeys?: string[];
|
|
18
|
-
statusMap: Map<string, CascadeHydrateStatus>;
|
|
19
|
-
}): {
|
|
20
|
-
item: Record<string, any>;
|
|
21
|
-
tk: any;
|
|
22
|
-
tkKey: string;
|
|
23
|
-
} | null;
|
|
24
|
-
export declare function markCascadeHydrationDone(statusMap: Map<string, CascadeHydrateStatus>, tkKey: string | null | undefined): void;
|
|
25
|
-
export declare function buildDisplayPathFromValue(value: any, labelKeyOrKeys: string | string[]): string[];
|
|
26
|
-
export declare function findOptionPathByTk(options: any[], tk: any, valueKey: string): any[];
|
|
27
|
-
export declare class CascadeSelectInnerFieldModel extends AssociationFieldModel {
|
|
28
|
-
resource: MultiRecordResource;
|
|
29
|
-
get collectionField(): CollectionField;
|
|
30
|
-
onInit(options: any): void;
|
|
31
|
-
set onPopupScroll(fn: any);
|
|
32
|
-
set onDropdownVisibleChange(fn: any);
|
|
33
|
-
set onSearch(fn: any);
|
|
34
|
-
set onLoadData(fn: any);
|
|
35
|
-
setDataSource(dataSource: any): void;
|
|
36
|
-
getDataSource(): any;
|
|
37
|
-
getFilterValue(): any;
|
|
38
|
-
}
|
|
39
|
-
export declare class CascadeSelectFieldModel extends CascadeSelectInnerFieldModel {
|
|
40
|
-
render(): React.JSX.Element;
|
|
41
|
-
}
|
|
42
|
-
export declare class CascadeSelectListFieldModel extends CascadeSelectInnerFieldModel {
|
|
43
|
-
render(): React.JSX.Element;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { ActionGroupModel } from '../../../base/ActionGroupModel';
|
|
10
|
-
export declare class PopupSubTableActionGroupModel extends ActionGroupModel {
|
|
11
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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 { TableCustomColumnModel } from '../../../blocks/table/TableCustomColumnModel';
|
|
11
|
-
export declare class PopupSubTableActionsColumnModel extends TableCustomColumnModel {
|
|
12
|
-
_subTableModel: any;
|
|
13
|
-
afterAddAsSubModel(): Promise<void>;
|
|
14
|
-
getColumnProps(model: any): {
|
|
15
|
-
title: React.JSX.Element;
|
|
16
|
-
render: (value: any, record: any, index: any) => React.JSX.Element;
|
|
17
|
-
};
|
|
18
|
-
render(): (value: any, record: any, index: any) => React.JSX.Element;
|
|
19
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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 { AssociationFieldModel } from '../AssociationFieldModel';
|
|
11
|
-
export declare class PopupSubTableFieldModel extends AssociationFieldModel {
|
|
12
|
-
disableTitleField: boolean;
|
|
13
|
-
defaultOverflowMode: string;
|
|
14
|
-
updateAssociation: boolean;
|
|
15
|
-
selectedRows: {
|
|
16
|
-
value: any[];
|
|
17
|
-
};
|
|
18
|
-
setCurrentPage: any;
|
|
19
|
-
currentPageSize: any;
|
|
20
|
-
get collection(): any;
|
|
21
|
-
get collectionField(): any;
|
|
22
|
-
onInit(options: any): void;
|
|
23
|
-
onDispatchEventStart(eventName: string): Promise<void>;
|
|
24
|
-
set onSelectExitRecordClick(fn: any);
|
|
25
|
-
set onAddRecordClick(fn: any);
|
|
26
|
-
afterAddAsSubModel(): Promise<void>;
|
|
27
|
-
getBaseColumns(model: any): any;
|
|
28
|
-
change(): void;
|
|
29
|
-
render(): React.JSX.Element;
|
|
30
|
-
}
|