@nocobase/client 2.1.0-alpha.20 → 2.1.0-alpha.22

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.
@@ -77,12 +77,13 @@ export type ToolsUIProperties<ToolCallArgs = unknown> = {
77
77
  export type DecisionActions = {
78
78
  approve: () => Promise<void>;
79
79
  edit: (args: any) => Promise<void>;
80
- reject: (message: string) => Promise<void>;
80
+ reject: (message?: string) => Promise<void>;
81
81
  };
82
82
  export type ToolsFilter = {
83
83
  scope?: Scope;
84
84
  defaultPermission?: Permission;
85
85
  silence?: boolean;
86
+ sessionId?: string;
86
87
  };
87
88
  export type Scope = 'SPECIFIED' | 'GENERAL' | 'CUSTOM';
88
89
  export type Permission = 'ASK' | 'ALLOW';
@@ -102,6 +102,7 @@ export declare const BlockProvider: (props: {
102
102
  * @returns
103
103
  */
104
104
  export declare const useBlockAssociationContext: () => any;
105
+ export declare const getFilterByTkByCollection: (collection: any, recordData: Record<string, any>) => any;
105
106
  export declare const useFilterByTk: (blockProps?: any) => any;
106
107
  /**
107
108
  * @deprecated
@@ -96,6 +96,7 @@ export declare class RuleEngine {
96
96
  private tryUnregisterDefaultRuleInstance;
97
97
  private bindMasterInitialValue;
98
98
  private removeRule;
99
+ rescheduleAllRules(): void;
99
100
  private scheduleRule;
100
101
  private flushRules;
101
102
  private runRule;
@@ -51,6 +51,7 @@ export declare class FormValueRuntime {
51
51
  sync?: boolean;
52
52
  }): void;
53
53
  dispose(): void;
54
+ resetAfterFormReset(): void;
54
55
  isSuppressed(): boolean;
55
56
  handleFormFieldsChange(changedFields: Array<{
56
57
  name?: NamePath | string | number;
@@ -21,7 +21,9 @@ export declare class TableColumnModel extends DisplayItemModel {
21
21
  afterAddAsSubModel(): Promise<void>;
22
22
  renderHiddenInConfig(): React.ReactNode | undefined;
23
23
  static defineChildren(ctx: FlowModelContext): any;
24
- getColumnProps(): TableColumnProps;
24
+ getColumnProps(): TableColumnProps & {
25
+ sortField?: string;
26
+ };
25
27
  onInit(options: any): void;
26
28
  renderItem(): any;
27
29
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ type AssociationTitleFieldModel = {
10
+ fieldPath?: string;
11
+ props?: {
12
+ dataIndex?: string;
13
+ titleField?: string;
14
+ };
15
+ collectionField?: {
16
+ name?: string;
17
+ targetCollectionTitleFieldName?: string;
18
+ isAssociationField?: () => boolean;
19
+ };
20
+ getStepParams?: (flowKey: string, stepKey: string) => {
21
+ label?: string;
22
+ } | undefined;
23
+ };
24
+ export declare function getSavedAssociationTitleField(model: AssociationTitleFieldModel): string;
25
+ export declare function getTableColumnSortField(model: AssociationTitleFieldModel): string;
26
+ export declare function resolveTableSorterField(sorter: {
27
+ field?: string;
28
+ column?: {
29
+ sortField?: string;
30
+ };
31
+ }): string;
32
+ export {};