@nocobase/client 2.0.48 → 2.0.50

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.
@@ -18,6 +18,7 @@ export declare const CurrentPageUidContext: React.Context<string>;
18
18
  * @internal
19
19
  */
20
20
  export declare const CurrentTabUidContext: React.Context<string>;
21
+ export declare const SearchParamsContext: React.Context<URLSearchParams>;
21
22
  export declare const IsSubPageClosedByPageMenuContext: React.Context<{
22
23
  isSubPageClosedByPageMenu: () => boolean;
23
24
  setFieldSchema: React.Dispatch<React.SetStateAction<Schema>>;
@@ -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 { FlowContext } from '@nocobase/flow-engine';
10
+ export declare function ensureFormValueDrivenLinkageRefresh(ctx: FlowContext, params: any, actionName: string): void;
@@ -21,4 +21,5 @@ export * from './utils';
21
21
  export * from './actions';
22
22
  export { openViewFlow } from './flows/openViewFlow';
23
23
  export { editMarkdownFlow } from './flows/editMarkdownFlow';
24
+ export { resolveDynamicNamePath } from './models/blocks/form/value-runtime/path';
24
25
  export { TextAreaWithContextSelector } from './components/TextAreaWithContextSelector';
@@ -0,0 +1,19 @@
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 { ButtonProps } from 'antd';
10
+ import { ActionModel } from '../base';
11
+ export declare class AssociateActionModel extends ActionModel {
12
+ static scene: import("../base").ActionSceneType;
13
+ static capabilityActionName: string;
14
+ defaultPopupTitle: string;
15
+ selectedRows: any[];
16
+ defaultProps: ButtonProps;
17
+ getAclActionName(): string;
18
+ associateSelectedRows(): Promise<void>;
19
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { FlowModelContext } from '@nocobase/flow-engine';
10
+ export declare const getAssociationBlockResourceSettings: (ctx: FlowModelContext | any) => any;
11
+ export declare const isAssociationBlockContext: (ctx: FlowModelContext | any) => boolean;
12
+ export declare const getAssociationTargetResourceSettings: (ctx: FlowModelContext | any) => {
13
+ dataSourceKey: any;
14
+ collectionName: any;
15
+ };
16
+ export declare const applyDisassociateAction: (ctx: FlowModelContext | any) => Promise<void>;
17
+ export declare const applyAssociateAction: (ctx: FlowModelContext | any, selectedRows: any[]) => Promise<void>;
@@ -0,0 +1,16 @@
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 { ButtonProps } from 'antd';
10
+ import { ActionModel } from '../base';
11
+ export declare class DisassociateActionModel extends ActionModel {
12
+ static scene: import("../base").ActionSceneType;
13
+ static capabilityActionName: string;
14
+ defaultProps: ButtonProps;
15
+ getAclActionName(): string;
16
+ }
@@ -7,8 +7,11 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  export * from './AddNewActionModel';
10
+ export * from './AssociateActionModel';
11
+ export * from './AssociationActionUtils';
10
12
  export * from './BulkDeleteActionModel';
11
13
  export * from './DeleteActionModel';
14
+ export * from './DisassociateActionModel';
12
15
  export * from './EditActionModel';
13
16
  export * from './FilterActionModel';
14
17
  export * from './JSActionModel';
@@ -6,12 +6,14 @@
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 { DragOverlayConfig } from '@nocobase/flow-engine';
9
+ import { DragOverlayConfig, GridLayoutData, GridLayoutV2 } from '@nocobase/flow-engine';
10
10
  import React from 'react';
11
11
  import { GridModel } from '../../base';
12
12
  import { FilterFormItemModel } from './FilterFormItemModel';
13
13
  export declare class FilterFormGridModel extends GridModel {
14
14
  private fullLayoutBeforeCollapse?;
15
+ private normalizedItemUidsOverride?;
16
+ private readingFullLayoutForSettingsInteraction;
15
17
  itemSettingsMenuLevel: number;
16
18
  itemFlowSettings: {
17
19
  showBackground: boolean;
@@ -27,17 +29,24 @@ export declare class FilterFormGridModel extends GridModel {
27
29
  value: boolean;
28
30
  };
29
31
  private getAssociationFilterTargetKey;
32
+ private normalizeFilterFormLayout;
33
+ private normalizeStoredFullLayout;
34
+ protected normalizeLayoutFromSource(source?: Partial<GridLayoutData>): GridLayoutV2;
35
+ getGridLayout(): GridLayoutV2;
36
+ saveGridLayout(layout?: GridLayoutData | GridLayoutV2): void;
37
+ handleDragStart(event: Parameters<GridModel['handleDragStart']>[0]): void;
38
+ private collectLayoutItemUids;
39
+ private getCellVisibleRowCount;
40
+ private getRowVisibleRowCount;
41
+ private limitCellByVisibleCount;
42
+ private limitRowByVisibleCount;
43
+ private limitLayoutRowsByVisibleCount;
30
44
  /**
31
45
  * 获取筛选表单当前“完整布局”。
32
46
  * 折叠态会临时裁剪 props.rows,因此这里优先选取行数更多的那份布局,
33
47
  * 避免拖拽排序或重新挂载后只拿到被裁剪过的运行时 rows。
34
48
  */
35
49
  private getFullLayout;
36
- /**
37
- * 按“可视字段行数”裁剪布局,而不是只按 grid row 数裁剪。
38
- * 这样即使拖拽后多个字段被排进同一个 cell,也仍然可以正确折叠。
39
- */
40
- private limitRowsByVisibleCount;
41
50
  toggleFormFieldsCollapse(collapse: boolean, visibleRows: number): void;
42
51
  onModelCreated(subModel: FilterFormItemModel): Promise<void>;
43
52
  renderAddSubModelButton(): React.JSX.Element;
@@ -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 function isArrayLikeField(field: any): boolean;
@@ -25,6 +25,7 @@ export declare class SubTableColumnModel<T extends SubTableColumnModelStructure
25
25
  renderHiddenInConfig(): React.JSX.Element;
26
26
  static defineChildren(ctx: FlowModelContext): any;
27
27
  get collection(): any;
28
+ get hasFormulaColumn(): boolean;
28
29
  onInit(options: any): void;
29
30
  afterAddAsSubModel(): Promise<void>;
30
31
  getColumnProps(): TableColumnProps;
@@ -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 function hasAncestorModel(model: any, modelNames: string[]): boolean;