@nocobase/client 2.0.0-alpha.27 → 2.0.0-alpha.29

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.
@@ -6,4 +6,6 @@
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 { Diagnostic } from '@codemirror/lint';
10
+ export declare const computeDiagnosticsFromText: (text: string) => Diagnostic[];
9
11
  export declare const createJavaScriptLinter: () => import("@codemirror/state").Extension;
@@ -11,7 +11,7 @@ import { type MetaTreeNode, FlowModel } from '@nocobase/flow-engine';
11
11
  export interface VariableFilterItemValue {
12
12
  path: string;
13
13
  operator: string;
14
- value: string | boolean;
14
+ value: string | number | boolean | null | Array<string | number> | Record<string, unknown>;
15
15
  }
16
16
  export interface VariableFilterItemProps {
17
17
  /** 筛选条件值对象 */
@@ -0,0 +1,15 @@
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 isToManyAssociation(collectionField: any): boolean;
10
+ /**
11
+ * 若目标字段为“对一”关联且传入值为数组,则取第一个元素
12
+ * - 对多关联/非关联字段:不处理,原样返回
13
+ * - 传入空数组:返回 undefined
14
+ */
15
+ export declare function coerceForToOneField(collectionField: any, value: any): any;
@@ -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 type { PropertyMetaFactory } from '@nocobase/flow-engine';
9
10
  import { FormInstance } from 'antd';
10
11
  import React from 'react';
11
12
  import { BlockGridModel } from '../../base/BlockGridModel';
@@ -31,6 +32,7 @@ export declare class FormBlockModel<T extends DefaultCollectionBlockModelStructu
31
32
  renderConfigureActions(): React.JSX.Element;
32
33
  setFieldsValue(values: any): void;
33
34
  setFieldValue(fieldName: string, value: any): void;
35
+ protected createFormValuesMetaFactory(): PropertyMetaFactory;
34
36
  useHooksBeforeRender(): void;
35
37
  onInit(options: any): void;
36
38
  onMount(): void;