@nocobase/client-v2 2.2.31 → 2.2.32

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.
@@ -0,0 +1,29 @@
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 ArrayValueCollectionField = {
10
+ interface?: string;
11
+ uiSchema?: {
12
+ type?: string;
13
+ } | null;
14
+ } | null | undefined;
15
+ /**
16
+ * Fields whose stored value is an array. Besides `multipleSelect`/`checkboxGroup`,
17
+ * some legacy fields declare `uiSchema.type === 'array'` explicitly.
18
+ */
19
+ export declare function isArrayValueField(collectionField: ArrayValueCollectionField): boolean;
20
+ /**
21
+ * Normalize a constant assignment value for array-valued fields.
22
+ *
23
+ * Historical configurations may store a scalar (before the multi-select control
24
+ * was rendered correctly), so wrap it into an array instead of submitting a
25
+ * string to the server. Variable expressions, RunJS values, Null and empty
26
+ * values are kept as-is so the assignment mode is not changed.
27
+ */
28
+ export declare function normalizeAssignFormValue(value: unknown, arrayValueField: boolean): unknown;
29
+ export {};