@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
|
@@ -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
|
-
export * from './FilterManager';
|
|
10
|
-
export * from './flow-actions';
|
|
11
|
-
export * from './utils';
|
|
@@ -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 { FlowModel } from '@nocobase/flow-engine';
|
|
10
|
-
import { BlockGridModel } from '../../base';
|
|
11
|
-
export declare function getDefaultOperator(model: any): any;
|
|
12
|
-
/**
|
|
13
|
-
* 判断筛选值是否为空
|
|
14
|
-
*
|
|
15
|
-
* 专门用于筛选器场景的空值判断,不会将 boolean 类型视为空值
|
|
16
|
-
*
|
|
17
|
-
* @param value - 要判断的值
|
|
18
|
-
* @returns 如果值为空则返回 true,否则返回 false
|
|
19
|
-
*/
|
|
20
|
-
export declare function isFilterValueEmpty(value: any): boolean;
|
|
21
|
-
export declare function getAllDataModels(gridModel: BlockGridModel): FlowModel[];
|
|
@@ -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 { SingleRecordResource } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { FormBlockModel } from './FormBlockModel';
|
|
12
|
-
export declare class CreateFormModel extends FormBlockModel {
|
|
13
|
-
static scene: import("../../base/BlockModel").BlockSceneType;
|
|
14
|
-
private actionFlowSettings;
|
|
15
|
-
private actionExtraToolbarItems;
|
|
16
|
-
createResource(ctx: any, params: any): SingleRecordResource<unknown>;
|
|
17
|
-
getAclActionName(): string;
|
|
18
|
-
submitHandler(ctx: any, params: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
|
|
19
|
-
submit(params?: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
|
|
20
|
-
renderComponent(): React.JSX.Element;
|
|
21
|
-
}
|
|
@@ -1,24 +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, MultiRecordResource, SingleRecordResource } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { FormBlockModel } from './FormBlockModel';
|
|
12
|
-
export declare class EditFormModel extends FormBlockModel {
|
|
13
|
-
static scene: import("../../base").BlockSceneType;
|
|
14
|
-
private actionFlowSettings;
|
|
15
|
-
private actionExtraToolbarItems;
|
|
16
|
-
createResource(_ctx: FlowModelContext, params: any): SingleRecordResource<unknown> | MultiRecordResource<unknown>;
|
|
17
|
-
isMultiRecordResource(): boolean;
|
|
18
|
-
getCurrentRecord(): any;
|
|
19
|
-
getAclActionName(): string;
|
|
20
|
-
handlePageChange: (page: number) => Promise<void>;
|
|
21
|
-
submitHandler(ctx: any, params: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
|
|
22
|
-
submit(params?: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
|
|
23
|
-
renderComponent(): React.JSX.Element;
|
|
24
|
-
}
|
|
@@ -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 { ActionGroupModel } from '../../base';
|
|
10
|
-
import { FormActionModel } from './FormActionModel';
|
|
11
|
-
export declare class FormActionGroupModel extends ActionGroupModel {
|
|
12
|
-
static baseClass: typeof FormActionModel;
|
|
13
|
-
}
|
|
@@ -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 { ButtonProps } from 'antd';
|
|
10
|
-
import { AxiosRequestConfig } from 'axios';
|
|
11
|
-
import { ActionModel } from '../../base';
|
|
12
|
-
export declare class FormActionModel extends ActionModel {
|
|
13
|
-
}
|
|
14
|
-
export declare class FormSubmitActionModel extends FormActionModel {
|
|
15
|
-
defaultProps: ButtonProps;
|
|
16
|
-
/**
|
|
17
|
-
* 简化设置保存请求配置的方式
|
|
18
|
-
* @param requestConfig
|
|
19
|
-
*/
|
|
20
|
-
setSaveRequestConfig(requestConfig?: AxiosRequestConfig): void;
|
|
21
|
-
}
|
|
@@ -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 FormAssociationFieldGroupModel extends AssociationFieldGroupModel {
|
|
11
|
-
static itemModelName: string;
|
|
12
|
-
}
|
|
@@ -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
|
-
import { DisplayItemModel, FlowModelContext } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export declare class FormAssociationItemModel extends DisplayItemModel {
|
|
12
|
-
static defineChildren(ctx: FlowModelContext): {
|
|
13
|
-
key: any;
|
|
14
|
-
label: string;
|
|
15
|
-
refreshTargets: string[];
|
|
16
|
-
toggleable: (subModel: any) => boolean;
|
|
17
|
-
useModel: string;
|
|
18
|
-
createModelOptions: () => {
|
|
19
|
-
use: string;
|
|
20
|
-
stepParams: {
|
|
21
|
-
fieldSettings: {
|
|
22
|
-
init: {
|
|
23
|
-
dataSourceKey: any;
|
|
24
|
-
collectionName: any;
|
|
25
|
-
fieldPath: any;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
subModels: {
|
|
30
|
-
field: {
|
|
31
|
-
use: string;
|
|
32
|
-
props: any;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}[];
|
|
37
|
-
onInit(options: any): void;
|
|
38
|
-
renderItem(): React.JSX.Element;
|
|
39
|
-
}
|
|
@@ -1,95 +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 { PropertyMetaFactory } from '@nocobase/flow-engine';
|
|
10
|
-
import { FormInstance } from 'antd';
|
|
11
|
-
import React from 'react';
|
|
12
|
-
import { BlockGridModel } from '../../base/BlockGridModel';
|
|
13
|
-
import { CollectionBlockModel } from '../../base/CollectionBlockModel';
|
|
14
|
-
import { FormActionModel } from './FormActionModel';
|
|
15
|
-
import { FormGridModel } from './FormGridModel';
|
|
16
|
-
import { FormValueRuntime } from './value-runtime';
|
|
17
|
-
type DefaultCollectionBlockModelStructure = {
|
|
18
|
-
parent?: BlockGridModel;
|
|
19
|
-
subModels?: {
|
|
20
|
-
grid: FormGridModel;
|
|
21
|
-
actions?: FormActionModel[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
type CustomFormBlockModelClassesEnum = {};
|
|
25
|
-
export declare class FormBlockModel<T extends DefaultCollectionBlockModelStructure = DefaultCollectionBlockModelStructure> extends CollectionBlockModel<T> {
|
|
26
|
-
formValueRuntime?: FormValueRuntime;
|
|
27
|
-
private userModifiedTopLevelFields;
|
|
28
|
-
get form(): FormInstance<any>;
|
|
29
|
-
_defaultCustomModelClasses: {
|
|
30
|
-
FormActionGroupModel: string;
|
|
31
|
-
FormItemModel: string;
|
|
32
|
-
FormAssociationFieldGroupModel: string;
|
|
33
|
-
};
|
|
34
|
-
customModelClasses: CustomFormBlockModelClassesEnum;
|
|
35
|
-
renderConfigureActions(): React.JSX.Element;
|
|
36
|
-
setFieldsValue(values: any): void;
|
|
37
|
-
setFieldValue(fieldName: any, value: any): void;
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*
|
|
41
|
-
* 仅用于编辑表单刷新保护:只记录「用户交互」触发的改动(来自 antd Form.onValuesChange)。
|
|
42
|
-
* 程序化 setFieldValue/setFieldsValue 不会触发 onValuesChange(见 linkageRules 的手动 emit),因此不会污染该集合。
|
|
43
|
-
*/
|
|
44
|
-
markUserModifiedFields(changedValues: any): void;
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
getUserModifiedFields(): Set<string>;
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
|
-
resetUserModifiedFields(): void;
|
|
53
|
-
onDispatchEventStart(eventName: string, options?: any, inputArgs?: Record<string, any>): Promise<void>;
|
|
54
|
-
getStepParams(flowKey: string, stepKey: string): any | undefined;
|
|
55
|
-
getStepParams(flowKey: string): Record<string, any> | undefined;
|
|
56
|
-
getStepParams(): Record<string, any>;
|
|
57
|
-
setStepParams(flowKey: string, stepKey: string, params: any): void;
|
|
58
|
-
setStepParams(flowKey: string, stepParams: Record<string, any>): void;
|
|
59
|
-
setStepParams(allParams: Record<string, any>): void;
|
|
60
|
-
saveStepParams(): Promise<any>;
|
|
61
|
-
protected createFormValuesMetaFactory(): PropertyMetaFactory;
|
|
62
|
-
useHooksBeforeRender(): void;
|
|
63
|
-
onInit(options: any): void;
|
|
64
|
-
protected onMount(): void;
|
|
65
|
-
onUnmount(): void;
|
|
66
|
-
getCurrentRecord(): {};
|
|
67
|
-
renderComponent(): void;
|
|
68
|
-
}
|
|
69
|
-
export declare function FormComponent({ model, children, layoutProps, initialValues, ...rest }: {
|
|
70
|
-
model: any;
|
|
71
|
-
children: React.ReactNode;
|
|
72
|
-
layoutProps?: any;
|
|
73
|
-
initialValues?: any;
|
|
74
|
-
onFinish?: (values: any) => void;
|
|
75
|
-
[key: string]: any;
|
|
76
|
-
}): React.JSX.Element;
|
|
77
|
-
type FormBlockContentProps = {
|
|
78
|
-
model: FormBlockModel;
|
|
79
|
-
gridModel: FormGridModel;
|
|
80
|
-
layoutProps?: any;
|
|
81
|
-
onFinish?: (values: any) => void;
|
|
82
|
-
grid: React.ReactNode;
|
|
83
|
-
actions?: React.ReactNode;
|
|
84
|
-
footer?: React.ReactNode;
|
|
85
|
-
heightMode?: string;
|
|
86
|
-
height?: number;
|
|
87
|
-
};
|
|
88
|
-
export declare const FormBlockContent: ({ model, gridModel, layoutProps, onFinish, grid, actions, footer, heightMode, height, }: FormBlockContentProps) => React.JSX.Element;
|
|
89
|
-
/**
|
|
90
|
-
* 兼容旧版本
|
|
91
|
-
* @deprecated use FormBlockModel instead
|
|
92
|
-
*/
|
|
93
|
-
export declare class FormModel extends FormBlockModel {
|
|
94
|
-
}
|
|
95
|
-
export {};
|
|
@@ -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 { FlowModel, FlowModelContext, ModelRenderMode } from '@nocobase/flow-engine';
|
|
10
|
-
export declare class FormCustomItemModel extends FlowModel {
|
|
11
|
-
static renderMode: ModelRenderMode;
|
|
12
|
-
static defineChildren(ctx: FlowModelContext): any[];
|
|
13
|
-
}
|
|
@@ -1,34 +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 { DragOverlayConfig } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { FieldModel, GridModel } from '../../base';
|
|
12
|
-
import { FormBlockModel } from './FormBlockModel';
|
|
13
|
-
export type DefaultFormGridStructure = {
|
|
14
|
-
parent: FormBlockModel;
|
|
15
|
-
subModels: {
|
|
16
|
-
items: FieldModel[];
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare class FormGridModel<T extends DefaultFormGridStructure = DefaultFormGridStructure> extends GridModel<T> {
|
|
20
|
-
itemFallback: React.JSX.Element;
|
|
21
|
-
itemSettingsMenuLevel: number;
|
|
22
|
-
itemFlowSettings: {
|
|
23
|
-
showBackground: boolean;
|
|
24
|
-
style: {
|
|
25
|
-
top: number;
|
|
26
|
-
left: number;
|
|
27
|
-
right: number;
|
|
28
|
-
bottom: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
dragOverlayConfig: DragOverlayConfig;
|
|
32
|
-
renderAddSubModelButton(): React.JSX.Element;
|
|
33
|
-
render(): React.JSX.Element;
|
|
34
|
-
}
|
|
@@ -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
|
-
import { DefaultStructure, EditableItemModel, FlowModelContext } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export declare class FormItemModel<T extends DefaultStructure = DefaultStructure> extends EditableItemModel<T> {
|
|
12
|
-
static defineChildren(ctx: FlowModelContext): {
|
|
13
|
-
key: any;
|
|
14
|
-
label: string;
|
|
15
|
-
refreshTargets: string[];
|
|
16
|
-
toggleable: (subModel: any) => boolean;
|
|
17
|
-
useModel: string;
|
|
18
|
-
createModelOptions: () => {
|
|
19
|
-
use: string;
|
|
20
|
-
stepParams: {
|
|
21
|
-
fieldSettings: {
|
|
22
|
-
init: {
|
|
23
|
-
dataSourceKey: any;
|
|
24
|
-
collectionName: any;
|
|
25
|
-
fieldPath: any;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
subModels: {
|
|
30
|
-
field: {
|
|
31
|
-
use: string;
|
|
32
|
-
props: any;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}[];
|
|
37
|
-
onInit(options: any): void;
|
|
38
|
-
renderItem(): React.JSX.Element;
|
|
39
|
-
}
|
|
@@ -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 { FlowModel, FlowModelContext } from '@nocobase/flow-engine';
|
|
10
|
-
/**
|
|
11
|
-
* “JavaScript 字段(可编辑)”菜单入口(表单):
|
|
12
|
-
* - 作为独立分组(在 FormGrid 的 subModelBaseClasses 中显式包含本类);
|
|
13
|
-
* - 子项列出集合字段;
|
|
14
|
-
* - 点击后创建标准 FormItemModel,并将子字段设置为 JSEditableFieldModel。
|
|
15
|
-
*/
|
|
16
|
-
export declare class FormJSFieldItemModel extends FlowModel {
|
|
17
|
-
static defineChildren(ctx: FlowModelContext): Promise<import("@nocobase/flow-engine").SubModelItem[]>;
|
|
18
|
-
}
|
|
@@ -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 { FormActionModel } from './FormActionModel';
|
|
10
|
-
export declare class JSFormActionModel extends FormActionModel {
|
|
11
|
-
}
|
|
@@ -1,38 +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 { Collection, FlowEngine, FlowModel, SingleRecordResource } from '@nocobase/flow-engine';
|
|
10
|
-
import React from 'react';
|
|
11
|
-
export declare class QuickEditFormModel extends FlowModel {
|
|
12
|
-
fieldPath: string;
|
|
13
|
-
resource: SingleRecordResource;
|
|
14
|
-
collection: Collection;
|
|
15
|
-
now: number;
|
|
16
|
-
viewContainer: any;
|
|
17
|
-
__onSubmitSuccess: any;
|
|
18
|
-
_fieldProps: any;
|
|
19
|
-
_onOk: any;
|
|
20
|
-
get form(): any;
|
|
21
|
-
useHooksBeforeRender(): void;
|
|
22
|
-
static open(options: {
|
|
23
|
-
flowEngine: FlowEngine;
|
|
24
|
-
target: any;
|
|
25
|
-
dataSourceKey: string;
|
|
26
|
-
collectionName: string;
|
|
27
|
-
fieldPath: string;
|
|
28
|
-
record: any;
|
|
29
|
-
filterByTk?: string;
|
|
30
|
-
onSuccess?: (values: any) => void;
|
|
31
|
-
fieldProps?: any;
|
|
32
|
-
sourceFieldModelUid?: string;
|
|
33
|
-
onOk?: (values: any) => void;
|
|
34
|
-
}): Promise<void>;
|
|
35
|
-
onInit(options: any): void;
|
|
36
|
-
addAppends(fieldPath: string, refresh?: boolean): void;
|
|
37
|
-
render(): React.JSX.Element;
|
|
38
|
-
}
|
|
@@ -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
|
-
/**
|
|
10
|
-
* 从 assignRules 的 targetPath 推导需要注入到请求中的 updateAssociationValues。
|
|
11
|
-
*
|
|
12
|
-
* 规则:仅当 targetPath 穿过至少一段关联字段(association)时返回该关联路径:
|
|
13
|
-
* - user.name -> user
|
|
14
|
-
* - user.profile.name -> user.profile
|
|
15
|
-
*/
|
|
16
|
-
export declare function collectUpdateAssociationValuesFromAssignRules(items: Array<{
|
|
17
|
-
targetPath?: string;
|
|
18
|
-
} | any>, rootCollection: any): string[];
|
|
@@ -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
|
-
export type DynamicNamePart = string | number;
|
|
10
|
-
/**
|
|
11
|
-
* Build a dynamic NamePath based on current subform list row index.
|
|
12
|
-
*
|
|
13
|
-
* fieldIndex is an array like: ["products:0", "products:2"] (nested lists allowed, including same-name lists).
|
|
14
|
-
*
|
|
15
|
-
* For example:
|
|
16
|
-
* - nameParts: ["products", "products"] + fieldIndex: ["products:0"] => [0, "products"]
|
|
17
|
-
* - nameParts: ["products", "products", "id"] + fieldIndex: ["products:1", "products:0"] => [0, "id"]
|
|
18
|
-
*/
|
|
19
|
-
export declare function buildDynamicNamePath(nameParts: DynamicNamePart[], fieldIndex?: string[]): DynamicNamePart[];
|
|
@@ -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
|
-
export * from './CreateFormModel';
|
|
10
|
-
export * from './EditFormModel';
|
|
11
|
-
export * from './FormActionGroupModel';
|
|
12
|
-
export * from './FormActionModel';
|
|
13
|
-
export * from './FormBlockModel';
|
|
14
|
-
export * from './FormCustomItemModel';
|
|
15
|
-
export * from './FormGridModel';
|
|
16
|
-
export * from './FormItemModel';
|
|
17
|
-
export * from './FormJSFieldItemModel';
|
|
18
|
-
export * from './JSFormActionModel';
|
|
19
|
-
export * from './QuickEditFormModel';
|
|
20
|
-
export * from './FormAssociationFieldGroupModel';
|
|
21
|
-
export * from './FormAssociationItemModel';
|
|
@@ -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 { mergeAssignRulesWithLegacyDefaults } from '../shared/legacyDefaultValueMigrationBase';
|
|
10
|
-
import type { FieldAssignRuleItem } from '../../../components/FieldAssignRulesEditor';
|
|
11
|
-
export declare function collectLegacyDefaultValueRulesFromFormModel(formModel: any): FieldAssignRuleItem[];
|
|
12
|
-
export declare function clearLegacyDefaultValuesFromFormModel(formModel: any): any[];
|
|
13
|
-
export { mergeAssignRulesWithLegacyDefaults };
|
|
@@ -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 declare function submitHandler(ctx: any, params: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
|
|
@@ -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 type { FormBlockModel } from './FormBlockModel';
|
|
10
|
-
/**
|
|
11
|
-
* 提交前过滤:移除当前表单 block 中被「联动规则隐藏」的字段值(`model.hidden === true`)。
|
|
12
|
-
*
|
|
13
|
-
* 说明:
|
|
14
|
-
* - 仅对 “隐藏 / Hidden” 生效(对应 `model.hidden=true`)。
|
|
15
|
-
* - “隐藏并保留值 / Hidden (reserved value)” 在实现上是 `props.hidden=true` 但 `model.hidden=false`,
|
|
16
|
-
* 因此仍会提交(保持现有语义)。
|
|
17
|
-
* - 不会清空 antd Form 的内部 store,只影响本次提交 payload。
|
|
18
|
-
*/
|
|
19
|
-
export declare function omitHiddenModelValuesFromSubmit<T = any>(values: T, blockModel: FormBlockModel): T;
|
|
@@ -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 declare function evaluateCondition(ctx: any, condition: any): boolean;
|
|
@@ -1,23 +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 { NamePath } from './types';
|
|
10
|
-
export type DepCollector = {
|
|
11
|
-
deps: Set<string>;
|
|
12
|
-
wildcard: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function recordDep(namePath: NamePath, collector: DepCollector | undefined): void;
|
|
15
|
-
export declare function createFormValuesProxy(options: {
|
|
16
|
-
valuesMirror: any;
|
|
17
|
-
basePath: NamePath;
|
|
18
|
-
collector?: DepCollector;
|
|
19
|
-
getFormValuesSnapshot: () => any;
|
|
20
|
-
getFormValueAtPath: (namePath: NamePath) => any;
|
|
21
|
-
}): any;
|
|
22
|
-
export declare function collectStaticDepsFromTemplateValue(value: any, collector: DepCollector): void;
|
|
23
|
-
export declare function collectStaticDepsFromRunJSValue(value: any, collector: DepCollector): void;
|
|
@@ -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 type { FormInstance } from 'antd';
|
|
10
|
-
import type { Patch, SetOptions } from './types';
|
|
11
|
-
export type FormPatcher = {
|
|
12
|
-
patch: (form: FormInstance) => void;
|
|
13
|
-
restore: () => void;
|
|
14
|
-
};
|
|
15
|
-
export declare function createFormPatcher(options: {
|
|
16
|
-
isSuppressed: () => boolean;
|
|
17
|
-
getCallerContext: () => any;
|
|
18
|
-
setFormValues: (callerCtx: any, patch: Patch, options?: SetOptions) => Promise<void>;
|
|
19
|
-
}): FormPatcher;
|
|
@@ -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
|
-
export * from './types';
|
|
10
|
-
export { FormValueRuntime } from './runtime';
|
|
11
|
-
export { isEmptyValue } from './utils';
|
|
@@ -1,25 +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 { NamePath } from './types';
|
|
10
|
-
export type PathSegment = string | number | {
|
|
11
|
-
placeholder: string;
|
|
12
|
-
};
|
|
13
|
-
export declare function parsePathString(path: string): PathSegment[];
|
|
14
|
-
/**
|
|
15
|
-
* Resolve a dynamic NamePath using the current row index context (`fieldIndex`).
|
|
16
|
-
*
|
|
17
|
-
* - Supports placeholders: `users[placeholder].name`
|
|
18
|
-
* - Auto-fills to-many index when omitted: `users.name` -> `users[ctxIndex].name`
|
|
19
|
-
*
|
|
20
|
-
* Returns `null` when a placeholder can't be resolved in current context.
|
|
21
|
-
*/
|
|
22
|
-
export declare function resolveDynamicNamePath(path: string | NamePath, fieldIndex?: unknown): NamePath | null;
|
|
23
|
-
export declare function namePathToPathKey(namePath: Array<string | number>): string;
|
|
24
|
-
export declare function pathKeyToNamePath(pathKey: string): NamePath;
|
|
25
|
-
export declare function buildAncestorKeys(namePath: NamePath): string[];
|