@nocobase/client 2.0.0-alpha.7 → 2.0.0-alpha.71
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/.dumirc.ts +12 -4
- package/es/api-client/APIClient.d.ts +1 -0
- package/es/application/Application.d.ts +2 -1
- package/es/application/RouteRepository.d.ts +23 -0
- package/es/block-configs/BlockConfigsProvider.d.ts +1 -1
- package/es/block-provider/TableUidContext.d.ts +10 -0
- package/es/block-provider/hooks/index.d.ts +2 -1
- package/es/block-provider/index.d.ts +4 -3
- package/es/collection-manager/Configuration/SetPrimaryKeyAction.d.ts +10 -0
- package/es/collection-manager/Configuration/components/CollectionCategory.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionFieldInterfaceTag.d.ts +1 -1
- package/es/collection-manager/Configuration/components/CollectionTemplateTag.d.ts +1 -1
- package/es/collection-manager/Configuration/components/Summary.d.ts +1 -1
- package/es/collection-manager/Configuration/interfaces.d.ts +1 -0
- package/es/collection-manager/action-hooks.d.ts +1 -1
- package/es/collection-manager/interfaces/color.d.ts +0 -1
- package/es/collection-manager/interfaces/index.d.ts +1 -0
- package/es/collection-manager/interfaces/input.d.ts +1 -0
- package/es/collection-manager/interfaces/integer.d.ts +1 -0
- package/es/collection-manager/interfaces/nanoid.d.ts +1 -0
- package/es/collection-manager/interfaces/number.d.ts +44 -0
- package/es/collection-manager/interfaces/snowflake-id.d.ts +117 -0
- package/es/collection-manager/interfaces/uuid.d.ts +1 -0
- package/es/collection-manager/templates/properties/index.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/data-source/DataSourceManager.d.ts +1 -0
- package/es/flow/FlowModelRepository.d.ts +4 -0
- package/es/flow/FlowPage.d.ts +2 -1
- package/es/flow/actions/aclCheckRefresh.d.ts +9 -0
- package/es/flow/actions/blockHeight.d.ts +9 -0
- package/es/flow/actions/columnFixed.d.ts +1 -2
- package/es/flow/actions/customVariable.d.ts +9 -0
- package/es/flow/actions/displayFieldComponent.d.ts +1 -1
- package/es/flow/actions/index.d.ts +10 -1
- package/es/flow/actions/linkageRules.d.ts +4 -0
- package/es/flow/actions/linkageRulesRefresh.d.ts +9 -0
- package/es/flow/actions/navigateToURL.d.ts +9 -0
- package/es/flow/actions/openView.d.ts +2 -13
- package/es/flow/actions/refreshTargetBlocks.d.ts +9 -0
- package/es/flow/actions/setTargetDataScope.d.ts +10 -0
- package/es/flow/actions/showMessage.d.ts +9 -0
- package/es/flow/actions/showNotification.d.ts +9 -0
- package/es/flow/actions/titleField.d.ts +0 -1
- package/es/flow/common/Liquid.d.ts +33 -0
- package/es/flow/common/Markdown/Display.d.ts +9 -0
- package/es/flow/common/Markdown/Edit.d.ts +23 -0
- package/es/flow/common/Markdown/Markdown.d.ts +24 -0
- package/es/flow/{components/code-editor/completions/index.d.ts → common/Markdown/style.d.ts} +1 -2
- package/es/flow/common/Markdown/useCDN.d.ts +9 -0
- package/es/flow/components/BlockItemCard.d.ts +3 -0
- package/es/flow/components/DefaultValue.d.ts +1 -0
- package/es/flow/components/FieldAssignValueInput.d.ts +1 -0
- package/es/flow/components/TextAreaWithContextSelector.d.ts +1 -0
- package/es/flow/components/code-editor/core/EditorCore.d.ts +2 -1
- package/es/flow/components/code-editor/extension/CodeEditorExtension.d.ts +14 -0
- package/es/flow/components/{decorator → code-editor/extension}/index.d.ts +1 -1
- package/es/flow/components/code-editor/formatDocInfo.d.ts +17 -0
- package/es/flow/components/code-editor/hooks/useCodeRunner.d.ts +3 -1
- package/es/flow/components/code-editor/hooks/useRunJSDocCompletions.d.ts +1 -1
- package/es/flow/components/code-editor/index.d.ts +6 -4
- package/es/flow/components/code-editor/jsxCompletion.d.ts +10 -0
- package/es/flow/components/code-editor/linter.d.ts +2 -0
- package/es/flow/components/code-editor/panels/RightExtra.d.ts +3 -1
- package/es/flow/components/code-editor/runjsCompletionSource.d.ts +20 -0
- package/es/flow/components/code-editor/runjsCompletions.d.ts +3 -1
- package/es/flow/components/code-editor/types.d.ts +16 -0
- package/es/flow/components/filter/FilterContainer.d.ts +4 -4
- package/es/flow/components/filter/FilterGroup.d.ts +2 -1
- package/es/flow/components/filter/LinkageFilterItem.d.ts +1 -0
- package/es/flow/components/filter/VariableFilterItem.d.ts +4 -1
- package/es/flow/components/index.d.ts +1 -1
- package/es/flow/components/placeholders/BlockPlaceholder.d.ts +1 -0
- package/es/flow/flows/editMarkdownFlow.d.ts +10 -0
- package/es/flow/getViewDiffAndUpdateHidden.d.ts +1 -0
- package/es/flow/index.d.ts +6 -0
- package/es/flow/internal/utils/associationValueCoercion.d.ts +15 -0
- package/es/flow/internal/utils/enumOptionsUtils.d.ts +7 -7
- package/es/flow/internal/utils/operatorSchemaHelper.d.ts +15 -0
- package/es/flow/internal/utils/rebuildFieldSubModel.d.ts +33 -0
- package/es/flow/models/actions/AddChildActionModel.d.ts +15 -0
- package/es/flow/models/actions/AddNewActionModel.d.ts +1 -0
- package/es/flow/models/actions/EditActionModel.d.ts +1 -0
- package/es/flow/models/actions/{UpdateActionModel.d.ts → ExpandCollapseActionModel.d.ts} +8 -10
- package/es/flow/models/actions/FilterActionModel.d.ts +5 -59
- package/es/flow/models/actions/JSActionModel.d.ts +13 -0
- package/es/flow/models/actions/LinkActionModel.d.ts +18 -0
- package/es/flow/models/actions/UpdateRecordActionModel.d.ts +27 -0
- package/es/flow/models/actions/index.d.ts +5 -1
- package/es/flow/models/base/ActionModel.d.ts +15 -5
- package/es/flow/models/base/AssociationFieldGroupModel.d.ts +1 -1
- package/es/flow/models/base/BlockModel.d.ts +5 -1
- package/es/flow/models/base/CollectionBlockModel.d.ts +34 -74
- package/es/flow/models/base/FieldModel.d.ts +6 -0
- package/es/flow/models/base/GridModel.d.ts +33 -4
- package/es/flow/models/base/PageModel/ChildPageModel.d.ts +1 -0
- package/es/flow/models/base/PageModel/PageModel.d.ts +19 -0
- package/es/flow/models/base/PageModel/PageTabModel.d.ts +2 -0
- package/es/flow/models/base/PageModel/RootPageModel.d.ts +2 -0
- package/es/flow/models/blocks/assign-form/AssignFormModel.d.ts +2 -0
- package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +1 -0
- package/es/flow/models/blocks/details/DetailsCustomItemModel.d.ts +2 -2
- package/es/flow/models/blocks/details/DetailsGridModel.d.ts +2 -0
- package/es/flow/models/blocks/details/DetailsItemModel.d.ts +2 -2
- package/es/flow/models/blocks/details/DetailsJSFieldItemModel.d.ts +2 -2
- package/es/flow/models/blocks/details/utils.d.ts +16 -0
- package/es/flow/models/blocks/filter-form/FieldModelSelect.d.ts +10 -0
- package/es/flow/models/blocks/filter-form/FilterFormBlockModel.d.ts +4 -0
- package/es/flow/models/blocks/filter-form/FilterFormCustomItemModel.d.ts +13 -0
- package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +1 -0
- package/es/flow/models/blocks/filter-form/FilterFormItemModel.d.ts +7 -4
- package/es/flow/models/blocks/filter-form/FilterFormSubmitActionModel.d.ts +1 -1
- package/es/flow/models/blocks/filter-form/SourceCascader.d.ts +10 -0
- package/es/flow/models/blocks/filter-form/fields/FieldComponentProps.d.ts +13 -0
- package/es/flow/models/blocks/filter-form/fields/FilterFormCustomFieldModel.d.ts +36 -0
- package/es/flow/models/blocks/filter-form/fields/FilterFormRecordSelectFieldModel.d.ts +12 -0
- package/es/flow/models/blocks/filter-form/fields/date-time/DateTimeFilterFieldModel.d.ts +8 -0
- package/es/flow/models/blocks/filter-form/fields/date-time/index.d.ts +1 -0
- package/es/flow/models/blocks/filter-form/fields/index.d.ts +2 -0
- package/es/flow/models/blocks/filter-form/index.d.ts +1 -0
- package/es/flow/models/blocks/filter-manager/flow-actions/customizeFilterRender.d.ts +10 -0
- package/es/flow/models/blocks/filter-manager/flow-actions/defaultOperator.d.ts +1 -3
- package/es/flow/models/blocks/filter-manager/flow-actions/index.d.ts +2 -0
- package/es/flow/models/blocks/filter-manager/flow-actions/operatorComponentProps.d.ts +10 -0
- package/es/flow/models/blocks/form/CreateFormModel.d.ts +3 -1
- package/es/flow/models/blocks/form/EditFormModel.d.ts +2 -0
- package/es/flow/models/blocks/form/FormAssociationFieldGroupModel.d.ts +12 -0
- package/es/flow/models/blocks/form/FormAssociationItemModel.d.ts +39 -0
- package/es/flow/models/blocks/form/FormBlockModel.d.ts +44 -4
- package/es/flow/models/blocks/form/FormGridModel.d.ts +2 -0
- package/es/flow/models/blocks/form/FormItemModel.d.ts +1 -1
- package/es/flow/models/blocks/form/FormJSFieldItemModel.d.ts +1 -1
- package/es/flow/models/blocks/form/QuickEditFormModel.d.ts +4 -1
- package/es/flow/models/blocks/form/index.d.ts +2 -0
- package/es/flow/models/blocks/form/submitHandler.d.ts +9 -0
- package/es/flow/models/blocks/js-block/JSBlock.d.ts +1 -0
- package/es/flow/models/blocks/table/JSColumnModel.d.ts +0 -1
- package/es/flow/models/blocks/table/TableActionsColumnModel.d.ts +0 -1
- package/es/flow/models/blocks/table/TableBlockModel.d.ts +14 -1
- package/es/flow/models/blocks/table/TableColumnModel.d.ts +9 -2
- package/es/flow/models/blocks/table/TableJSFieldItemModel.d.ts +2 -2
- package/es/flow/models/blocks/table/utils.d.ts +16 -8
- package/es/flow/models/blocks/utils/transformChildrenToJS.d.ts +42 -0
- package/es/flow/models/fields/AssociationFieldModel/AssociationFieldModel.d.ts +1 -0
- package/es/flow/models/fields/AssociationFieldModel/CascadeSelectFieldModel.d.ts +29 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionGroupModel.d.ts +11 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableActionsColumnModel.d.ts +19 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/PopupSubTableFieldModel.d.ts +30 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableEditActionModel.d.ts +28 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableFormSubmitActionModel.d.ts +16 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/actions/PopupSubTableRemoveActionModel.d.ts +14 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/blocks/PopupSubTableFormModel.d.ts +36 -0
- package/es/flow/models/fields/AssociationFieldModel/PopupSubTableFieldModel/index.d.ts +17 -0
- package/es/flow/models/fields/AssociationFieldModel/RecordPickerFieldModel.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/RecordSelectFieldModel.d.ts +8 -2
- package/es/flow/models/fields/AssociationFieldModel/SubFormFieldModel.d.ts +7 -0
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.d.ts +6 -3
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/index.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/recordSelectShared.d.ts +52 -0
- package/es/flow/models/fields/ClickableFieldModel.d.ts +3 -2
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubItemFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubListFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayAssociationField/DisplaySubTableFieldModel.d.ts +3 -1
- package/es/flow/models/fields/DisplayEnumFieldModel.d.ts +1 -0
- package/es/flow/models/fields/DisplayJSONFieldModel.d.ts +3 -3
- package/es/flow/models/fields/DisplayNumberFieldModel.d.ts +4 -2
- package/es/flow/models/fields/DisplayTextFieldModel.d.ts +1 -1
- package/es/flow/models/fields/JSEditableFieldModel.d.ts +8 -0
- package/es/flow/models/fields/JSFieldModel.d.ts +1 -1
- package/es/flow/models/fields/JSItemModel.d.ts +1 -2
- package/es/flow/models/fields/JsonFieldModel.d.ts +1 -0
- package/es/flow/models/fields/MarkdownItemModel.d.ts +1 -0
- package/es/flow/models/fields/RichTextFieldModel/registerFontSize.d.ts +9 -0
- package/es/flow/models/fields/RichTextFieldModel/registerImageResize.d.ts +9 -0
- package/es/flow/models/fields/RichTextFieldModel/registerSmartBreak.d.ts +12 -0
- package/es/flow/models/fields/TimeFieldModel.d.ts +0 -1
- package/es/flow/models/fields/index.d.ts +0 -1
- package/es/flow/models/fields/mobile-components/MobileDatePicker.d.ts +10 -0
- package/es/flow/models/fields/mobile-components/MobileLazySelect.d.ts +11 -0
- package/es/flow/{components/JsonInput.d.ts → models/fields/mobile-components/MobileSelect.d.ts} +1 -1
- package/es/flow/models/fields/mobile-components/MobileTimePicker.d.ts +10 -0
- package/es/flow/resolveViewParamsToViewList.d.ts +4 -2
- package/es/flow/utils/dispatchEventDeep.d.ts +20 -0
- package/es/flow/utils/index.d.ts +10 -0
- package/es/flow/utils/useJsonTemplateResolver.d.ts +9 -0
- package/es/global-theme/type.d.ts +1 -0
- package/es/hooks/useFullscreenOverlay.d.ts +20 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +32329 -21454
- package/es/modules/menu/FlowPageMenuItem.d.ts +1 -3
- package/es/modules/menu/index.d.ts +9 -0
- package/es/nocobase-buildin-plugin/plugins/LocalePlugin.d.ts +0 -1
- package/es/route-switch/antd/admin-layout/index.d.ts +1 -1
- package/es/schema-component/antd/association-select/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/filter/FilterItem.d.ts +1 -1
- package/es/schema-component/antd/input/EllipsisWithTooltip.d.ts +1 -0
- package/es/schema-component/antd/linkageFilter/LinkageFilterItem.d.ts +1 -1
- package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +1 -3
- package/es/schema-component/antd/table/Table.Column.ActionBar.d.ts +1 -1
- package/es/schema-component/antd/table/Table.Void.d.ts +1 -0
- package/es/schema-component/antd/table-v2/Table.Column.ActionBar.d.ts +1 -1
- package/es/schema-component/antd/upload/shared.d.ts +1 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.d.ts +2 -2
- package/es/schema-settings/LinkageRules/components/BlockLinkageRuleAction.d.ts +1 -1
- package/es/schema-settings/LinkageRules/components/FieldStyleLinkageRuleAction.d.ts +1 -1
- package/es/user/CurrentUserProvider.d.ts +1 -1
- package/es/variables/index.d.ts +1 -1
- package/lib/index.js +549 -310
- package/lib/locale/cron/zh-CN.json +33 -0
- package/lib/locale/cron/zh-TW.json +33 -0
- package/lib/locale/de-DE.json +1547 -0
- package/lib/locale/en-US.json +1571 -0
- package/lib/locale/es-ES.json +1575 -0
- package/lib/locale/fr-FR.json +1551 -0
- package/lib/locale/hu-HU.json +1547 -0
- package/lib/locale/id-ID.json +1548 -0
- package/lib/locale/{it-IT.js → it-IT.json} +1498 -1054
- package/lib/locale/ja-JP.json +1566 -0
- package/lib/locale/ko-KR.json +1560 -0
- package/lib/locale/{nl-NL.js → nl-NL.json} +1495 -1018
- package/lib/locale/pt-BR.json +1619 -0
- package/lib/locale/ru-RU.json +1553 -0
- package/lib/locale/tr-TR.json +1555 -0
- package/lib/locale/uk-UA.json +1572 -0
- package/lib/locale/vi-VN.json +1547 -0
- package/lib/locale/zh-CN.json +1603 -0
- package/lib/locale/zh-TW.json +1551 -0
- package/package.json +12 -8
- package/es/flow/components/code-editor/snippets/loader.d.ts +0 -19
- package/es/flow/components/decorator/injectable.d.ts +0 -19
- package/es/flow/models/fields/UploadFieldModel.d.ts +0 -22
- package/es/index-C3fHjsMw.mjs +0 -279
- package/lib/index-C3fHjsMw-B24GCpti.js +0 -2081
- package/lib/locale/cron/zh-CN.js +0 -33
- package/lib/locale/cron/zh-TW.js +0 -33
- package/lib/locale/de-DE.js +0 -904
- package/lib/locale/en-US.js +0 -996
- package/lib/locale/es-ES.js +0 -824
- package/lib/locale/fr-FR.js +0 -844
- package/lib/locale/ja-JP.js +0 -1062
- package/lib/locale/ko-KR.js +0 -935
- package/lib/locale/pt-BR.js +0 -804
- package/lib/locale/ru-RU.js +0 -633
- package/lib/locale/tr-TR.js +0 -631
- package/lib/locale/uk-UA.js +0 -847
- package/lib/locale/zh-CN.js +0 -1404
- package/lib/locale/zh-TW.js +0 -938
- package/lib/style.css +0 -1
- /package/es/flow/{internal/utils → utils}/blockUtils.d.ts +0 -0
package/.dumirc.ts
CHANGED
|
@@ -124,10 +124,6 @@ export default defineConfig({
|
|
|
124
124
|
title: 'Fork model',
|
|
125
125
|
link: '/examples/flow-models/fork-model',
|
|
126
126
|
},
|
|
127
|
-
// {
|
|
128
|
-
// title: 'cleanRun:自动流干净运行',
|
|
129
|
-
// link: '/examples/flow-models/render-in-fork',
|
|
130
|
-
// },
|
|
131
127
|
{
|
|
132
128
|
title: '拖拽(DND)',
|
|
133
129
|
link: '/examples/flow-models/dnd',
|
|
@@ -160,6 +156,10 @@ export default defineConfig({
|
|
|
160
156
|
title: '生命周期',
|
|
161
157
|
link: '/examples/flow-models/lifecycle',
|
|
162
158
|
},
|
|
159
|
+
{
|
|
160
|
+
title: 'scheduleModelOperation',
|
|
161
|
+
link: '/examples/flow-models/schedule-model-operation',
|
|
162
|
+
},
|
|
163
163
|
{
|
|
164
164
|
title: 'hidden 属性演示',
|
|
165
165
|
link: '/examples/flow-model-hidden',
|
|
@@ -218,6 +218,10 @@ export default defineConfig({
|
|
|
218
218
|
title: 'hideInSettings - 在设置界面中隐藏',
|
|
219
219
|
link: '/examples/flow-definition/hide-in-settings',
|
|
220
220
|
},
|
|
221
|
+
{
|
|
222
|
+
title: '扩展设置菜单(Common actions)',
|
|
223
|
+
link: '/examples/flow-definition/settings-menu-extra-items',
|
|
224
|
+
},
|
|
221
225
|
{
|
|
222
226
|
title: 'uiMode - 步骤设置的 UI 模式',
|
|
223
227
|
link: '/examples/flow-definition/ui-mode',
|
|
@@ -398,6 +402,10 @@ export default defineConfig({
|
|
|
398
402
|
title: 'ctx.exit()',
|
|
399
403
|
link: '/examples/flow-context/exit',
|
|
400
404
|
},
|
|
405
|
+
{
|
|
406
|
+
title: 'ctx.customRepository',
|
|
407
|
+
link: '/examples/flow-context/custom-repository',
|
|
408
|
+
},
|
|
401
409
|
],
|
|
402
410
|
},
|
|
403
411
|
{
|
|
@@ -112,8 +112,9 @@ export declare class Application {
|
|
|
112
112
|
maintaining: boolean;
|
|
113
113
|
error: any;
|
|
114
114
|
hasLoadError: boolean;
|
|
115
|
+
locales: any;
|
|
115
116
|
private wsAuthorized;
|
|
116
|
-
private variables;
|
|
117
|
+
private readonly variables;
|
|
117
118
|
apps: {
|
|
118
119
|
Component?: ComponentType;
|
|
119
120
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 RouteOptions = {
|
|
10
|
+
id: string;
|
|
11
|
+
schemaUid: string;
|
|
12
|
+
children?: RouteOptions[];
|
|
13
|
+
};
|
|
14
|
+
export declare class RouteRepository {
|
|
15
|
+
protected ctx: any;
|
|
16
|
+
routes: Array<RouteOptions>;
|
|
17
|
+
constructor(ctx: any);
|
|
18
|
+
setRoutes(routes: Array<any>): void;
|
|
19
|
+
listAccessible(): RouteOptions[];
|
|
20
|
+
getRouteBySchemaUid(schemaUid: string): RouteOptions | undefined;
|
|
21
|
+
private findRoute;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import React, { ReactNode } from
|
|
9
|
+
import React, { ReactNode } from 'react';
|
|
10
10
|
export declare const BlockConfigsContext: React.Context<{
|
|
11
11
|
getConfigs: () => any;
|
|
12
12
|
setConfigs: (value: any, shouldNotify?: boolean) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
/// <reference types="react" />
|
|
10
|
+
export declare const TableUidContext: import("react").Context<string>;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
import { Form } from '@formily/core';
|
|
9
10
|
import { ChangeEvent } from 'react';
|
|
10
11
|
import { NavigateFunction } from 'react-router-dom';
|
|
11
12
|
import { CollectionOptions } from '../../collection-manager';
|
|
@@ -26,7 +27,7 @@ export declare function getFormValues({ filterByTk, field, form, fieldNames, get
|
|
|
26
27
|
resource: any;
|
|
27
28
|
actionFields: any[];
|
|
28
29
|
}): any;
|
|
29
|
-
export declare function useCollectValuesToSubmit(): () => Promise<any>;
|
|
30
|
+
export declare function useCollectValuesToSubmit(f?: Form): () => Promise<any>;
|
|
30
31
|
export declare const useCreateActionProps: () => {
|
|
31
32
|
onClick(): Promise<void>;
|
|
32
33
|
};
|
|
@@ -8,12 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export * from './BlockProvider';
|
|
10
10
|
export * from './BlockSchemaComponentProvider';
|
|
11
|
+
export * from './DetailsBlockProvider';
|
|
11
12
|
export * from './FilterFormBlockProvider';
|
|
12
13
|
export * from './FormBlockProvider';
|
|
13
14
|
export * from './FormFieldProvider';
|
|
15
|
+
export * from './hooks';
|
|
16
|
+
export { useLinkActionProps } from './hooks/index';
|
|
14
17
|
export * from './TableBlockProvider';
|
|
15
18
|
export * from './TableFieldProvider';
|
|
16
19
|
export * from './TableSelectorProvider';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './hooks';
|
|
19
|
-
export { useLinkActionProps } from './hooks/index';
|
|
20
|
+
export * from './TemplateBlockProvider';
|
|
@@ -0,0 +1,10 @@
|
|
|
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 SetPrimaryKeyAction: (props: any) => React.JSX.Element;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare const CollectionCategory: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
|
|
10
|
+
export declare const CollectionCategory: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare const CollectionFieldInterfaceTag: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
|
|
10
|
+
export declare const CollectionFieldInterfaceTag: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare const CollectionTemplateTag: React.MemoExoticComponent<import("@formily/react").ReactFC<Omit<any, "ref">>>;
|
|
10
|
+
export declare const CollectionTemplateTag: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
declare const Summary: React.MemoExoticComponent<import("@formily/react").ReactFC<{
|
|
10
|
+
declare const Summary: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<{
|
|
11
11
|
schema: any;
|
|
12
12
|
label: string;
|
|
13
13
|
}>>;
|
|
@@ -47,7 +47,7 @@ export declare const useFilterDataSource: (options: any) => import("../api-clien
|
|
|
47
47
|
export declare const useFilterAction: () => {
|
|
48
48
|
run(): Promise<void>;
|
|
49
49
|
};
|
|
50
|
-
export declare const useCreateAction: (actionCallback?: (values: any
|
|
50
|
+
export declare const useCreateAction: (actionCallback?: (values: any) => void) => {
|
|
51
51
|
run(): Promise<void>;
|
|
52
52
|
};
|
|
53
53
|
export declare const useCreateActionWithoutRefresh: (actionCallback?: (values: any) => void) => {
|
|
@@ -57,6 +57,38 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
|
|
|
57
57
|
label: string;
|
|
58
58
|
}[];
|
|
59
59
|
};
|
|
60
|
+
precision: {
|
|
61
|
+
type: string;
|
|
62
|
+
title: string;
|
|
63
|
+
'x-component': string;
|
|
64
|
+
'x-decorator': string;
|
|
65
|
+
'x-disabled': string;
|
|
66
|
+
default: number;
|
|
67
|
+
'x-reactions': {
|
|
68
|
+
dependencies: string[];
|
|
69
|
+
fulfill: {
|
|
70
|
+
state: {
|
|
71
|
+
visible: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
scale: {
|
|
77
|
+
type: string;
|
|
78
|
+
title: string;
|
|
79
|
+
'x-component': string;
|
|
80
|
+
'x-decorator': string;
|
|
81
|
+
'x-disabled': string;
|
|
82
|
+
default: number;
|
|
83
|
+
'x-reactions': {
|
|
84
|
+
dependencies: string[];
|
|
85
|
+
fulfill: {
|
|
86
|
+
state: {
|
|
87
|
+
visible: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
60
92
|
'uiSchema.title': {
|
|
61
93
|
type: string;
|
|
62
94
|
title: string;
|
|
@@ -74,6 +106,18 @@ export declare class NumberFieldInterface extends CollectionFieldInterface {
|
|
|
74
106
|
'x-validator': string;
|
|
75
107
|
description: string;
|
|
76
108
|
};
|
|
109
|
+
type: {
|
|
110
|
+
type: string;
|
|
111
|
+
title: string;
|
|
112
|
+
'x-component': string;
|
|
113
|
+
'x-decorator': string;
|
|
114
|
+
'x-disabled': string;
|
|
115
|
+
default: string;
|
|
116
|
+
enum: {
|
|
117
|
+
label: string;
|
|
118
|
+
value: string;
|
|
119
|
+
}[];
|
|
120
|
+
};
|
|
77
121
|
};
|
|
78
122
|
filterable: {
|
|
79
123
|
operators: ({
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { CollectionFieldInterface } from '../../data-source/collection-field-interface/CollectionFieldInterface';
|
|
10
|
+
export declare class SnowflakeIdFieldInterface extends CollectionFieldInterface {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
group: string;
|
|
14
|
+
order: number;
|
|
15
|
+
title: string;
|
|
16
|
+
primaryKeyDescription: string;
|
|
17
|
+
hidden: boolean;
|
|
18
|
+
sortable: boolean;
|
|
19
|
+
default: {
|
|
20
|
+
type: string;
|
|
21
|
+
uiSchema: {
|
|
22
|
+
type: string;
|
|
23
|
+
'x-component': string;
|
|
24
|
+
'x-component-props': {
|
|
25
|
+
stringMode: boolean;
|
|
26
|
+
separator: string;
|
|
27
|
+
step: string;
|
|
28
|
+
};
|
|
29
|
+
'x-validator': string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
availableTypes: string[];
|
|
33
|
+
properties: {
|
|
34
|
+
layout: {
|
|
35
|
+
type: string;
|
|
36
|
+
title: string;
|
|
37
|
+
'x-component': string;
|
|
38
|
+
'x-decorator': string;
|
|
39
|
+
'x-decorator-props': {
|
|
40
|
+
style: {
|
|
41
|
+
marginBottom: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
properties: {
|
|
45
|
+
primaryKey: {
|
|
46
|
+
type: string;
|
|
47
|
+
'x-content': string;
|
|
48
|
+
'x-decorator': string;
|
|
49
|
+
'x-component': string;
|
|
50
|
+
'x-disabled': string;
|
|
51
|
+
'x-reactions': {
|
|
52
|
+
dependencies: string[];
|
|
53
|
+
when: string;
|
|
54
|
+
fulfill: {
|
|
55
|
+
state: {
|
|
56
|
+
value: boolean;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
60
|
+
};
|
|
61
|
+
unique: {
|
|
62
|
+
type: string;
|
|
63
|
+
'x-content': string;
|
|
64
|
+
'x-decorator': string;
|
|
65
|
+
'x-component': string;
|
|
66
|
+
'x-disabled': string;
|
|
67
|
+
'x-reactions': {
|
|
68
|
+
dependencies: string[];
|
|
69
|
+
when: string;
|
|
70
|
+
fulfill: {
|
|
71
|
+
state: {
|
|
72
|
+
value: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
'uiSchema.title': {
|
|
80
|
+
type: string;
|
|
81
|
+
title: string;
|
|
82
|
+
required: boolean;
|
|
83
|
+
'x-decorator': string;
|
|
84
|
+
'x-component': string;
|
|
85
|
+
};
|
|
86
|
+
name: {
|
|
87
|
+
type: string;
|
|
88
|
+
title: string;
|
|
89
|
+
required: boolean;
|
|
90
|
+
'x-disabled': string;
|
|
91
|
+
'x-decorator': string;
|
|
92
|
+
'x-component': string;
|
|
93
|
+
'x-validator': string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
filterable: {
|
|
98
|
+
operators: ({
|
|
99
|
+
label: string;
|
|
100
|
+
value: string;
|
|
101
|
+
selected: boolean;
|
|
102
|
+
noValue?: undefined;
|
|
103
|
+
} | {
|
|
104
|
+
label: string;
|
|
105
|
+
value: string;
|
|
106
|
+
selected?: undefined;
|
|
107
|
+
noValue?: undefined;
|
|
108
|
+
} | {
|
|
109
|
+
label: string;
|
|
110
|
+
value: string;
|
|
111
|
+
noValue: boolean;
|
|
112
|
+
selected?: undefined;
|
|
113
|
+
})[];
|
|
114
|
+
};
|
|
115
|
+
description: string;
|
|
116
|
+
titleUsable: boolean;
|
|
117
|
+
}
|
|
@@ -74,6 +74,7 @@ export declare const defaultConfigurableProperties: {
|
|
|
74
74
|
};
|
|
75
75
|
'x-component': import("react").MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
76
76
|
'x-component-props': {
|
|
77
|
+
template: string;
|
|
77
78
|
disabled: string;
|
|
78
79
|
presetFieldsDisabledIncludes: string;
|
|
79
80
|
};
|
|
@@ -35,6 +35,7 @@ export declare class DataSourceManager {
|
|
|
35
35
|
constructor(options: DataSourceManagerOptions, app: Application);
|
|
36
36
|
addCollectionMixins(mixins?: (typeof Collection)[]): void;
|
|
37
37
|
getDataSources(filterDataSource?: (dataSource: DataSource) => boolean): DataSource[];
|
|
38
|
+
setDataSources(dataSources: DataSourceOptions[]): void;
|
|
38
39
|
getDataSource(key?: string): DataSource;
|
|
39
40
|
removeDataSources(keys: string[]): void;
|
|
40
41
|
addDataSource(DataSource: DataSourceFactory, options: DataSourceOptions): DataSource;
|
|
@@ -19,14 +19,18 @@ export declare class MockFlowModelRepository implements IFlowModelRepository<Flo
|
|
|
19
19
|
destroy(uid: string): Promise<boolean>;
|
|
20
20
|
clear(): Promise<boolean>;
|
|
21
21
|
move(sourceId: string, targetId: string, position?: 'before' | 'after'): Promise<void>;
|
|
22
|
+
duplicate(uid: string): Promise<any>;
|
|
22
23
|
}
|
|
23
24
|
export declare class FlowModelRepository implements IFlowModelRepository<FlowModel> {
|
|
24
25
|
private app;
|
|
25
26
|
constructor(app: Application);
|
|
27
|
+
private inFlightFindOne;
|
|
28
|
+
private buildFindOneKey;
|
|
26
29
|
findOne(query: any): Promise<any>;
|
|
27
30
|
save(model: FlowModel, options?: {
|
|
28
31
|
onlyStepParams?: boolean;
|
|
29
32
|
}): Promise<any>;
|
|
30
33
|
destroy(uid: string): Promise<boolean>;
|
|
31
34
|
move(sourceId: string, targetId: string, position?: 'before' | 'after'): Promise<any>;
|
|
35
|
+
duplicate(uid: string): Promise<any>;
|
|
32
36
|
}
|
package/es/flow/FlowPage.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ type FlowPageProps = {
|
|
|
13
13
|
pageModelClass?: string;
|
|
14
14
|
parentId?: string;
|
|
15
15
|
onModelLoaded?: (uid: string, model: FlowModel) => void;
|
|
16
|
+
defaultTabTitle?: string;
|
|
16
17
|
};
|
|
17
|
-
export declare const FlowPage: (props: FlowPageProps & Record<string, unknown>) => React.JSX.Element
|
|
18
|
+
export declare const FlowPage: React.MemoExoticComponent<(props: FlowPageProps & Record<string, unknown>) => React.JSX.Element>;
|
|
18
19
|
export declare const RemoteFlowModelRenderer: (props: any) => React.JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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 aclCheckRefresh: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 blockHeight: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -6,5 +6,4 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
export declare const fixed: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
9
|
+
export declare const fixed: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 customVariable: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -10,6 +10,12 @@ export * from './confirm';
|
|
|
10
10
|
export * from './dataScope';
|
|
11
11
|
export * from './openView';
|
|
12
12
|
export * from './runjs';
|
|
13
|
+
export * from './showMessage';
|
|
14
|
+
export * from './showNotification';
|
|
15
|
+
export * from './navigateToURL';
|
|
16
|
+
export * from './customVariable';
|
|
17
|
+
export * from './refreshTargetBlocks';
|
|
18
|
+
export * from './setTargetDataScope';
|
|
13
19
|
export { titleField } from './titleField';
|
|
14
20
|
export * from './dateTimeFormat';
|
|
15
21
|
export * from './sortingRules';
|
|
@@ -19,9 +25,12 @@ export * from './layout';
|
|
|
19
25
|
export * from './required';
|
|
20
26
|
export * from './fieldComponent';
|
|
21
27
|
export * from './aclCheck';
|
|
28
|
+
export * from './aclCheckRefresh';
|
|
22
29
|
export * from './pattern';
|
|
23
30
|
export * from './validation';
|
|
24
31
|
export * from './columnFixed';
|
|
25
|
-
export
|
|
32
|
+
export * from './linkageRulesRefresh';
|
|
33
|
+
export * from './blockHeight';
|
|
34
|
+
export { fieldLinkageRules, subFormFieldLinkageRules, detailsFieldLinkageRules, linkageSetDetailsFieldProps, actionLinkageRules, blockLinkageRules, linkageSetBlockProps, linkageSetActionProps, linkageSetFieldProps, subFormLinkageSetFieldProps, linkageAssignField, linkageRunjs, subFormLinkageAssignField, } from './linkageRules';
|
|
26
35
|
export { displayFieldComponent } from './displayFieldComponent';
|
|
27
36
|
export * from './overflowMode';
|
|
@@ -10,10 +10,14 @@ import { FlowContext, FlowModel } from '@nocobase/flow-engine';
|
|
|
10
10
|
export declare const linkageSetBlockProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
11
11
|
export declare const linkageSetActionProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
12
12
|
export declare const linkageSetFieldProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
13
|
+
export declare const subFormLinkageSetFieldProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
13
14
|
export declare const linkageSetDetailsFieldProps: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
14
15
|
export declare const linkageAssignField: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
16
|
+
export declare const subFormLinkageAssignField: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
17
|
+
export declare const setFieldsDefaultValue: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
15
18
|
export declare const linkageRunjs: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
16
19
|
export declare const blockLinkageRules: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
17
20
|
export declare const actionLinkageRules: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
18
21
|
export declare const fieldLinkageRules: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
22
|
+
export declare const subFormFieldLinkageRules: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
19
23
|
export declare const detailsFieldLinkageRules: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, FlowContext>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 linkageRulesRefresh: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 navigateToURL: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|
|
@@ -9,18 +9,7 @@
|
|
|
9
9
|
import { FlowModel } from '@nocobase/flow-engine';
|
|
10
10
|
/**
|
|
11
11
|
* 弹窗打开动作(openView)配置
|
|
12
|
-
*
|
|
13
|
-
* -
|
|
14
|
-
* - 默认使用当前模型 uid;必填。
|
|
15
|
-
* - 当 uid 与当前模型不同:调用 ctx.openView(uid, …) 打开“其它弹窗”。
|
|
16
|
-
* - 当 uid 与当前模型相同:在当前上下文打开“自身弹窗”。
|
|
17
|
-
* - 数据源/集合:
|
|
18
|
-
* - 顶层只读展示(使用级联),底层字段 dataSourceKey / collectionName 永远禁用。
|
|
19
|
-
* - 默认取当前集合的数据源/集合;若从他弹窗回填则以回填为准。
|
|
20
|
-
* - 关联名/来源主键:
|
|
21
|
-
* - 当关联名无值时隐藏;有默认值时禁用。
|
|
22
|
-
* - Source ID 在关联名不存在时隐藏;在关联场景默认使用 {{ ctx.resource.sourceId }}。
|
|
23
|
-
* - Filter by TK:默认使用 {{ ctx.record.<filterTargetKey> }}。
|
|
24
|
-
* - 变量选择:仅暴露 record/resource,避免误选 view/collection。
|
|
12
|
+
* - 当 params.uid !== ctx.model.uid:委托 ctx.openView 打开其它弹窗
|
|
13
|
+
* - filterByTk/sourceId 优先级:显式 inputArgs > params > actionDefaults
|
|
25
14
|
*/
|
|
26
15
|
export declare const openView: import("@nocobase/flow-engine").ActionDefinition<FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
|