@nocobase/client 2.0.0-alpha.16 → 2.0.0-alpha.18

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.
@@ -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
  };
@@ -12,6 +12,7 @@ export * from './openView';
12
12
  export * from './runjs';
13
13
  export * from './customVariable';
14
14
  export * from './refreshTargetBlocks';
15
+ export * from './setTargetDataScope';
15
16
  export { titleField } from './titleField';
16
17
  export * from './dateTimeFormat';
17
18
  export * from './sortingRules';
@@ -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 setTargetDataScope: import("@nocobase/flow-engine").ActionDefinition<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>, import("@nocobase/flow-engine").FlowContext>;
@@ -27,6 +27,7 @@ export interface VariableFilterItemProps {
27
27
  * 默认使用整棵 ctx 的 metaTree:model.context.getPropertyMetaTree()
28
28
  */
29
29
  rightMetaTree?: MetaTreeNode[] | (() => MetaTreeNode[] | Promise<MetaTreeNode[]>);
30
+ ignoreFieldNames?: string[];
30
31
  }
31
32
  /**
32
33
  * 上下文筛选项组件
@@ -7,74 +7,19 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { ButtonProps } from 'antd';
10
- import React, { FC } from 'react';
10
+ import React from 'react';
11
11
  import { ActionModel } from '../base';
12
12
  export declare class FilterActionModel extends ActionModel {
13
13
  static scene: string;
14
+ private readonly map;
14
15
  props: ButtonProps & {
15
16
  filterValue?: any;
16
17
  ignoreFieldsNames?: string[];
17
18
  open?: boolean;
18
19
  position: 'left';
20
+ filterableFieldNames?: string[];
19
21
  };
20
22
  defaultProps: any;
23
+ getIgnoreFieldNames(): any;
21
24
  render(): React.JSX.Element;
22
25
  }
23
- /**
24
- * 筛选项组件的属性接口
25
- */
26
- interface FilterItemProps {
27
- value: {
28
- path: string;
29
- operator: string;
30
- value: string;
31
- };
32
- }
33
- /**
34
- * FilterContent 组件的属性接口
35
- */
36
- interface FilterContentProps {
37
- /** 响应式的过滤条件对象 */
38
- value: Record<string, any>;
39
- /** 自定义筛选项组件 */
40
- FilterItem?: React.FC<FilterItemProps>;
41
- /** 上下文对象,用于获取字段列表等元信息 */
42
- ctx: any;
43
- }
44
- /**
45
- * 筛选内容组件
46
- *
47
- * 支持新的数据结构格式:
48
- * ```typescript
49
- * {
50
- * "logic": "or",
51
- * "items": [
52
- * {
53
- * "leftValue": "isAdmin",
54
- * "operator": "eq",
55
- * "rightValue": true
56
- * },
57
- * {
58
- * "logic": "and",
59
- * "items": [...]
60
- * }
61
- * ]
62
- * }
63
- * ```
64
- *
65
- * @example
66
- * ```typescript
67
- * const filterValue = observable({
68
- * logic: 'and',
69
- * items: []
70
- * });
71
- *
72
- * <FilterContent
73
- * value={filterValue}
74
- * ctx={contextObject}
75
- * FormItem={CustomFormItem}
76
- * />
77
- * ```
78
- */
79
- export declare const FilterContainer: FC<FilterContentProps>;
80
- export {};
@@ -40,6 +40,15 @@ export declare class TableBlockModel extends CollectionBlockModel<TableBlockMode
40
40
  onMount(): void;
41
41
  onUnmount(): void;
42
42
  createResource(ctx: any, params: any): MultiRecordResource<unknown>;
43
+ /**
44
+ * 高亮指定的行
45
+ * @param record - 要高亮的行记录
46
+ */
47
+ highlightRow(record: any): void;
48
+ /**
49
+ * 取消行高亮
50
+ */
51
+ clearHighlight(): void;
43
52
  getColumns(): any[];
44
53
  EditableRow: (props: any) => React.JSX.Element;
45
54
  EditableCell: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;