@nocobase/client 2.1.0-beta.7 → 2.1.0-beta.9

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.
Files changed (49) hide show
  1. package/es/collection-manager/templates/view.d.ts +11 -11
  2. package/es/flow/actions/afterSuccess.d.ts +9 -0
  3. package/es/flow/actions/index.d.ts +1 -0
  4. package/es/flow/components/FieldAssignValueInput.d.ts +6 -0
  5. package/es/flow/components/code-editor/runjsDiagnostics.d.ts +5 -2
  6. package/es/flow/components/filter/LinkageFilterItem.d.ts +23 -0
  7. package/es/flow/internal/utils/modelUtils.d.ts +4 -0
  8. package/es/flow/models/actions/AddChildActionModel.d.ts +1 -0
  9. package/es/flow/models/actions/BulkDeleteActionModel.d.ts +1 -0
  10. package/es/flow/models/actions/LinkActionModel.d.ts +1 -4
  11. package/es/flow/models/actions/LinkActionUtils.d.ts +34 -0
  12. package/es/flow/models/actions/UpdateRecordActionUtils.d.ts +12 -0
  13. package/es/flow/models/actions/joinUrlSearch.d.ts +12 -0
  14. package/es/flow/models/base/ActionGroupModel.d.ts +8 -0
  15. package/es/flow/models/base/CollectionBlockModel.d.ts +8 -0
  16. package/es/flow/models/base/GridModel.d.ts +1 -0
  17. package/es/flow/models/base/PageModel/ChildPageModel.d.ts +1 -0
  18. package/es/flow/models/base/PageModel/RootPageModel.d.ts +8 -0
  19. package/es/flow/models/blocks/details/DetailsBlockModel.d.ts +4 -0
  20. package/es/flow/models/blocks/filter-form/FilterFormGridModel.d.ts +12 -1
  21. package/es/flow/models/blocks/form/CreateFormModel.d.ts +1 -0
  22. package/es/flow/models/blocks/form/EditFormModel.d.ts +2 -0
  23. package/es/flow/models/blocks/form/submitValues.d.ts +8 -0
  24. package/es/flow/models/fields/DisplayAssociationField/displaySubListUtils.d.ts +14 -0
  25. package/es/flow/utils/actionCapability.d.ts +60 -0
  26. package/es/index.mjs +5071 -4387
  27. package/es/route-switch/antd/admin-layout/index.d.ts +4 -0
  28. package/es/schema-component/antd/association-field/Table.d.ts +0 -57
  29. package/es/schema-component/antd/date-picker/DatePicker.d.ts +26 -0
  30. package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +3 -3
  31. package/lib/index.js +211 -203
  32. package/lib/locale/de-DE.json +3 -0
  33. package/lib/locale/en-US.json +3 -0
  34. package/lib/locale/es-ES.json +3 -0
  35. package/lib/locale/fr-FR.json +3 -0
  36. package/lib/locale/hu-HU.json +3 -0
  37. package/lib/locale/id-ID.json +3 -0
  38. package/lib/locale/it-IT.json +3 -0
  39. package/lib/locale/ja-JP.json +3 -0
  40. package/lib/locale/ko-KR.json +3 -0
  41. package/lib/locale/nl-NL.json +3 -0
  42. package/lib/locale/pt-BR.json +3 -0
  43. package/lib/locale/ru-RU.json +3 -0
  44. package/lib/locale/tr-TR.json +3 -0
  45. package/lib/locale/uk-UA.json +3 -0
  46. package/lib/locale/vi-VN.json +3 -0
  47. package/lib/locale/zh-CN.json +4 -1
  48. package/lib/locale/zh-TW.json +3 -0
  49. package/package.json +6 -6
@@ -18,6 +18,17 @@ export declare class ViewCollectionTemplate extends CollectionTemplate {
18
18
  };
19
19
  divider: boolean;
20
20
  configurableProperties: {
21
+ filterTargetKey: {
22
+ title: string;
23
+ type: string;
24
+ description: string;
25
+ 'x-decorator': string;
26
+ 'x-component': string;
27
+ 'x-component-props': {
28
+ multiple: boolean;
29
+ };
30
+ 'x-reactions': string[];
31
+ };
21
32
  name: any;
22
33
  title: any;
23
34
  description: any;
@@ -125,16 +136,5 @@ export declare class ViewCollectionTemplate extends CollectionTemplate {
125
136
  };
126
137
  };
127
138
  };
128
- filterTargetKey: {
129
- title: string;
130
- type: string;
131
- description: string;
132
- 'x-decorator': string;
133
- 'x-component': string;
134
- 'x-component-props': {
135
- multiple: boolean;
136
- };
137
- 'x-reactions': string[];
138
- };
139
139
  };
140
140
  }
@@ -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 afterSuccess: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
@@ -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
+ export * from './afterSuccess';
9
10
  export * from './confirm';
10
11
  export * from './dataScope';
11
12
  export * from './openView';
@@ -54,6 +54,12 @@ interface Props {
54
54
  enableDateVariableAsConstant?: boolean;
55
55
  }
56
56
  export declare function mergeItemMetaTreeForAssignValue(baseTree: MetaTreeNode[], extraTree: MetaTreeNode[]): MetaTreeNode[];
57
+ export declare function resolveAssignValueFieldPath(itemModel: any): string | undefined;
58
+ export declare function resolveAssignValueFieldModelUse(options: {
59
+ itemModel: any;
60
+ fieldModelUse?: string;
61
+ preferFormItemFieldModel?: boolean;
62
+ }): string | undefined;
57
63
  /**
58
64
  * 根据所选字段渲染对应的赋值编辑器:
59
65
  * - 使用临时的 VariableFieldFormModel 包裹字段模型,确保常量编辑为真实字段组件
@@ -37,7 +37,10 @@ export type PreviewRunJSResult = {
37
37
  success: boolean;
38
38
  message: string;
39
39
  };
40
+ export type RunJSDiagnosticsOptions = {
41
+ version?: string;
42
+ };
40
43
  export declare const MAX_MESSAGE_CHARS = 4000;
41
44
  export declare function formatRunJSPreviewMessage(result: DiagnoseRunJSResult): string;
42
- export declare function diagnoseRunJS(code: string, ctx: FlowContext): Promise<DiagnoseRunJSResult>;
43
- export declare function previewRunJS(code: string, ctx: FlowContext): Promise<PreviewRunJSResult>;
45
+ export declare function diagnoseRunJS(code: string, ctx: FlowContext, options?: RunJSDiagnosticsOptions): Promise<DiagnoseRunJSResult>;
46
+ export declare function previewRunJS(code: string, ctx: FlowContext, options?: RunJSDiagnosticsOptions): Promise<PreviewRunJSResult>;
@@ -21,8 +21,31 @@ export interface LinkageFilterItemProps {
21
21
  /** 向变量树额外注入节点(置于根部) */
22
22
  extraMetaTree?: MetaTreeNode[];
23
23
  }
24
+ type OperatorMeta = {
25
+ value: string;
26
+ label: string;
27
+ noValue?: boolean;
28
+ schema?: any;
29
+ selected?: boolean;
30
+ };
31
+ type FilterableChild = {
32
+ name: string;
33
+ title?: string;
34
+ schema?: any;
35
+ operators?: OperatorMeta[];
36
+ };
37
+ type FieldInterfaceDef = {
38
+ filterable?: {
39
+ operators?: Array<OperatorMeta & {
40
+ visible?: (meta: MetaTreeNode) => boolean;
41
+ }>;
42
+ children?: FilterableChild[];
43
+ };
44
+ };
24
45
  export declare function mergeExtraMetaTreeWithBase(baseMetaTree: MetaTreeNode[] | undefined, extraMetaTree?: MetaTreeNode[]): MetaTreeNode[];
46
+ export declare function enhanceMetaTreeWithFilterableChildren(metaTree: MetaTreeNode[] | undefined, getFieldInterface?: (name: string) => FieldInterfaceDef | undefined): Promise<MetaTreeNode[]>;
25
47
  /**
26
48
  * LinkageFilterItem:左/右均为可变量输入,适用于联动规则等“前端逻辑”场景
27
49
  */
28
50
  export declare const LinkageFilterItem: React.FC<LinkageFilterItemProps>;
51
+ export {};
@@ -13,8 +13,12 @@ export interface CollectionLike {
13
13
  dataSourceKey?: string;
14
14
  name?: string;
15
15
  }
16
+ export declare const CUSTOM_FIELD_TARGET_PATH_PREFIX = "__custom__";
17
+ export declare function buildCustomFieldTargetPath(customFieldName: string): string;
16
18
  export declare function isToManyAssociationField(field: unknown): boolean;
17
19
  export declare function getCollectionFromModel(model: unknown): CollectionLike | undefined;
20
+ export declare function getFormItemFieldPathCandidates(model: unknown): string[];
21
+ export declare function getFormItemPreferredFieldPath(model: unknown): string | undefined;
18
22
  /**
19
23
  * Find a configured FormItemModel by its `fieldSettings.init.fieldPath` (or `fieldPath`) in the current form grid,
20
24
  * including nested subform items. Also supports combined path matching when a model stores
@@ -9,6 +9,7 @@
9
9
  import type { ButtonProps } from 'antd/es/button';
10
10
  import { PopupActionModel } from '../base';
11
11
  export declare class AddChildActionModel extends PopupActionModel {
12
+ static capabilityActionName: any;
12
13
  defaultProps: ButtonProps;
13
14
  getAclActionName(): string;
14
15
  onInit(options: any): void;
@@ -10,6 +10,7 @@ import { ButtonProps } from 'antd';
10
10
  import { ActionModel } from '../base';
11
11
  export declare class BulkDeleteActionModel extends ActionModel {
12
12
  static scene: import("../base").ActionSceneType;
13
+ static capabilityActionName: string;
13
14
  defaultProps: ButtonProps;
14
15
  getAclActionName(): string;
15
16
  }
@@ -8,10 +8,7 @@
8
8
  */
9
9
  import type { ButtonProps } from 'antd/es/button';
10
10
  import { ActionModel } from '../base';
11
- export declare function joinUrlSearch(url: string, params?: {
12
- name: string;
13
- value: any;
14
- }[]): string;
11
+ export { joinUrlSearch } from './joinUrlSearch';
15
12
  export declare class LinkActionModel extends ActionModel {
16
13
  static scene: import("../base").ActionSceneType;
17
14
  defaultProps: ButtonProps;
@@ -0,0 +1,34 @@
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 completeURL(url: string, origin?: string): string;
10
+ export declare function handleLinkNavigation(options: {
11
+ link: string;
12
+ openInNewWindow?: boolean;
13
+ router: {
14
+ navigate: (to: string, options?: {
15
+ replace?: boolean;
16
+ }) => void;
17
+ };
18
+ isExternalLink: boolean;
19
+ setLocationHref?: (url: string) => void;
20
+ openWindow?: (url?: string, target?: string) => Window | null;
21
+ }): void;
22
+ /**
23
+ * 判断 Link 导航后是否需要销毁当前视图
24
+ * @param options 判定参数
25
+ * @param options.openInNewWindow 是否新窗口打开
26
+ * @param options.isExternalLink 是否外部链接
27
+ * @param options.viewType 当前视图类型
28
+ * @returns 是否应销毁当前视图
29
+ */
30
+ export declare function shouldDestroyViewAfterLinkNavigation(options: {
31
+ openInNewWindow?: boolean;
32
+ isExternalLink: boolean;
33
+ viewType?: string;
34
+ }): boolean;
@@ -0,0 +1,12 @@
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 refreshLinkageRulesAfterUpdate(ctx: any): Promise<void>;
10
+ export declare function applyUpdateRecordAction(ctx: any, params: any, options?: {
11
+ settingsFlowKey?: string;
12
+ }): Promise<void>;
@@ -0,0 +1,12 @@
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 joinUrlSearch(url: string, params?: {
10
+ name: string;
11
+ value: any;
12
+ }[]): string;
@@ -16,6 +16,14 @@ export declare class ActionGroupModel extends FlowModel {
16
16
  static get currentModels(): Map<string, typeof ActionModel>;
17
17
  static get models(): Map<any, any>;
18
18
  static registerActionModels(models: Record<string, any>): void;
19
+ /**
20
+ * 判断动作模型在当前数据表上下文下是否应显示在 v2 的“添加动作”菜单中。
21
+ *
22
+ * @param ModelClass 动作模型类
23
+ * @param ctx Flow 上下文
24
+ * @returns 是否显示
25
+ */
26
+ static isActionModelVisible(ModelClass: typeof ActionModel, ctx: FlowModelContext): boolean;
19
27
  static defineChildren(ctx: FlowModelContext): Promise<any[]>;
20
28
  }
21
29
  export declare class CollectionActionGroupModel extends ActionGroupModel {
@@ -22,11 +22,19 @@ export declare class CollectionBlockModel<T = DefaultStructure> extends DataBloc
22
22
  private lastSeenDirtyVersion;
23
23
  private dirtyRefreshing;
24
24
  protected onMount(): void;
25
+ private getDirtyTrackingVersion;
25
26
  onActive(forceRefresh?: boolean): void;
26
27
  /**
27
28
  * 子菜单过滤函数
28
29
  */
29
30
  static filterCollection(_collection: Collection): boolean;
31
+ /**
32
+ * 判断当前区块模型在 collection 选择菜单中是否应该展示指定数据表。
33
+ *
34
+ * @param collection 数据表
35
+ * @returns 是否显示
36
+ */
37
+ static isCollectionAvailable(collection: Collection | undefined): boolean;
30
38
  /**
31
39
  * 定义子菜单选项
32
40
  */
@@ -45,6 +45,7 @@ export declare class GridModel<T extends {
45
45
  mergeRowsWithItems(rows: Record<string, string[][]>): Record<string, string[][]>;
46
46
  resetRows(syncProps?: boolean): void;
47
47
  private computePointerPosition;
48
+ private getDragContainer;
48
49
  private updateLayoutSnapshot;
49
50
  private scheduleSnapshotRefresh;
50
51
  /**
@@ -14,6 +14,7 @@ export declare class ChildPageModel extends PageModel {
14
14
  tabBarExtraContent: {
15
15
  left: React.JSX.Element;
16
16
  };
17
+ renderBackButtonWhenTabsDisabled(): React.JSX.Element;
17
18
  createPageTabModelOptions: () => CreateModelOptions;
18
19
  handleDragEnd(event: DragEndEvent): Promise<void>;
19
20
  render(): React.JSX.Element;
@@ -10,6 +10,14 @@ import { DragEndEvent } from '@dnd-kit/core';
10
10
  import { PageModel } from './PageModel';
11
11
  export declare class RootPageModel extends PageModel {
12
12
  mounted: boolean;
13
+ /**
14
+ * 新建 tab 在首次保存完成前,前端 route 里可能还没有数据库 id。
15
+ * 拖拽前兜底触发一次保存,确保 move 接口拿到真实主键。
16
+ *
17
+ * @param model - 当前参与拖拽的 tab model
18
+ * @returns 可用于排序接口的 route id
19
+ */
20
+ private ensurePersistedRouteId;
13
21
  onMount(): void;
14
22
  saveStepParams(): Promise<void>;
15
23
  handleDragEnd(event: DragEndEvent): Promise<void>;
@@ -18,6 +18,8 @@ export declare class DetailsBlockModel extends CollectionBlockModel<{
18
18
  };
19
19
  }> {
20
20
  static scene: import("../../base").BlockSceneType;
21
+ private hadSingleRecordData;
22
+ private hasMultiRefreshDispatched;
21
23
  _defaultCustomModelClasses: {
22
24
  RecordActionGroupModel: string;
23
25
  DetailsItemModel: string;
@@ -28,7 +30,9 @@ export declare class DetailsBlockModel extends CollectionBlockModel<{
28
30
  createResource(ctx: any, params: any): SingleRecordResource<unknown> | MultiRecordResource<unknown>;
29
31
  onInit(options: any): void;
30
32
  isMultiRecordResource(): boolean;
33
+ hasDispatchedMultiRefresh(): boolean;
31
34
  getCurrentRecord(): any;
35
+ hasAvailableData(): boolean;
32
36
  handlePageChange: (page: number) => Promise<void>;
33
37
  refresh(): Promise<void>;
34
38
  renderPagination(): React.JSX.Element;
@@ -22,10 +22,21 @@ export declare class FilterFormGridModel extends GridModel {
22
22
  };
23
23
  };
24
24
  dragOverlayConfig: DragOverlayConfig;
25
- private hiddenRows;
26
25
  readonly loading: {
27
26
  value: boolean;
28
27
  };
28
+ private getAssociationFilterTargetKey;
29
+ /**
30
+ * 获取筛选表单当前“完整布局”。
31
+ * 折叠态会临时裁剪 props.rows,因此这里优先选取行数更多的那份布局,
32
+ * 避免拖拽排序或重新挂载后只拿到被裁剪过的运行时 rows。
33
+ */
34
+ private getFullLayout;
35
+ /**
36
+ * 按“可视字段行数”裁剪布局,而不是只按 grid row 数裁剪。
37
+ * 这样即使拖拽后多个字段被排进同一个 cell,也仍然可以正确折叠。
38
+ */
39
+ private limitRowsByVisibleCount;
29
40
  toggleFormFieldsCollapse(collapse: boolean, visibleRows: number): void;
30
41
  onModelCreated(subModel: FilterFormItemModel): Promise<void>;
31
42
  renderAddSubModelButton(): React.JSX.Element;
@@ -11,6 +11,7 @@ import React from 'react';
11
11
  import { FormBlockModel } from './FormBlockModel';
12
12
  export declare class CreateFormModel extends FormBlockModel {
13
13
  static scene: import("../../base/BlockModel").BlockSceneType;
14
+ static blockCapabilityActionName: string;
14
15
  private actionFlowSettings;
15
16
  private actionExtraToolbarItems;
16
17
  createResource(ctx: any, params: any): SingleRecordResource<unknown>;
@@ -11,11 +11,13 @@ import React from 'react';
11
11
  import { FormBlockModel } from './FormBlockModel';
12
12
  export declare class EditFormModel extends FormBlockModel {
13
13
  static scene: import("../../base").BlockSceneType;
14
+ static blockCapabilityActionName: string;
14
15
  private actionFlowSettings;
15
16
  private actionExtraToolbarItems;
16
17
  createResource(_ctx: FlowModelContext, params: any): SingleRecordResource<unknown> | MultiRecordResource<unknown>;
17
18
  isMultiRecordResource(): boolean;
18
19
  getCurrentRecord(): any;
20
+ hasAvailableData(): boolean;
19
21
  getAclActionName(): string;
20
22
  handlePageChange: (page: number) => Promise<void>;
21
23
  submitHandler(ctx: any, params: any, cb?: (values?: any, filterByTk?: any) => void): Promise<void>;
@@ -6,7 +6,15 @@
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 type { NamePath } from './value-runtime/types';
9
10
  import type { FormBlockModel } from './FormBlockModel';
11
+ /**
12
+ * 生成提交前的校验字段列表:
13
+ * - 在配置态下可用于绕开“联动隐藏字段”的必填校验;
14
+ * - 仅排除 `model.hidden=true` 的字段路径;
15
+ * - 返回 null 表示无法安全推断,调用方应回退到 `validateFields()` 全量校验。
16
+ */
17
+ export declare function getValidationNamePathsExcludingHiddenModels(blockModel: FormBlockModel): NamePath[] | null;
10
18
  /**
11
19
  * 提交前过滤:移除当前表单 block 中被「联动规则隐藏」的字段值(`model.hidden === true`)。
12
20
  *
@@ -0,0 +1,14 @@
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 normalizeFieldIndexChain: (fieldIndex: unknown) => string[];
10
+ export declare const buildDisplaySubListForkKey: ({ parentFieldIndex, index, blockPage, }: {
11
+ parentFieldIndex: string[];
12
+ index: number;
13
+ blockPage: number;
14
+ }) => string;
@@ -0,0 +1,60 @@
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 CapabilityCollection = {
10
+ options?: Record<string, any>;
11
+ };
12
+ type CapabilityModelClass = {
13
+ prototype?: {
14
+ getAclActionName?: () => string | null | undefined;
15
+ };
16
+ capabilityActionName?: string | null;
17
+ capabilityActionNames?: string[] | null;
18
+ blockCapabilityActionName?: string | null;
19
+ blockCapabilityActionNames?: string[] | null;
20
+ };
21
+ /**
22
+ * 统一动作能力名,保证 v2 与 v1 使用同一套数据源动作键。
23
+ *
24
+ * @param actionName 动作名
25
+ * @returns 归一化后的动作能力名
26
+ */
27
+ export declare const normalizeCapabilityActionName: (actionName?: string | null) => string;
28
+ /**
29
+ * 判断 collection 是否支持指定动作能力。
30
+ *
31
+ * @param collection 数据表
32
+ * @param capabilityName 动作能力键
33
+ * @returns 是否支持
34
+ */
35
+ export declare const isCapabilitySupported: (collection: CapabilityCollection | null | undefined, capabilityName?: string | null) => boolean;
36
+ /**
37
+ * 判断 collection 是否支持一组动作能力。
38
+ *
39
+ * @param collection 数据表
40
+ * @param capabilityNames 动作能力键数组
41
+ * @returns 是否全部支持
42
+ */
43
+ export declare const areCapabilitiesSupported: (collection: CapabilityCollection | null | undefined, capabilityNames?: Array<string | null | undefined> | null) => boolean;
44
+ /**
45
+ * 推导动作模型使用的数据源动作能力键。
46
+ * 默认会回落到 getAclActionName,但允许通过静态字段显式覆写。
47
+ *
48
+ * @param ModelClass 动作模型类
49
+ * @returns 动作能力键数组或 null
50
+ */
51
+ export declare const getActionCapabilityNamesFromModelClass: (ModelClass: CapabilityModelClass) => string[];
52
+ /**
53
+ * 推导区块模型在“选择 collection”时需要满足的数据源动作能力键。
54
+ * 仅对显式声明的区块生效,避免误把所有区块都套上 view/create/update 过滤。
55
+ *
56
+ * @param ModelClass 区块模型类
57
+ * @returns 动作能力键数组或 null
58
+ */
59
+ export declare const getBlockCapabilityNamesFromModelClass: (ModelClass: CapabilityModelClass) => string[];
60
+ export {};