@nocobase/client 1.3.33-beta → 1.3.34-beta
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.
- package/es/index.mjs +3004 -2925
- package/es/modules/fields/component/Select/selectComponentFieldSettings.d.ts +15 -1
- package/es/schema-component/antd/association-field/hooks.d.ts +6 -0
- package/es/schema-settings/VariableInput/hooks/useParentIterationVariable.d.ts +30 -0
- package/lib/index.js +107 -107
- package/lib/locale/en_US.js +3 -1
- package/lib/locale/es_ES.js +3 -1
- package/lib/locale/fr_FR.js +3 -1
- package/lib/locale/ja_JP.js +3 -1
- package/lib/locale/ko_KR.js +3 -1
- package/lib/locale/pt_BR.js +3 -1
- package/lib/locale/ru_RU.js +3 -1
- package/lib/locale/tr_TR.js +3 -1
- package/lib/locale/uk_UA.js +3 -1
- package/lib/locale/zh-CN.js +3 -1
- package/lib/locale/zh-TW.js +3 -1
- package/package.json +5 -5
|
@@ -7,5 +7,19 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import { SchemaSettings } from '../../../../application/schema-settings/SchemaSettings';
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const getAllowMultiple: (params?: {
|
|
11
|
+
title: string;
|
|
12
|
+
}) => {
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
useComponentProps(): {
|
|
16
|
+
title: string;
|
|
17
|
+
checked: any;
|
|
18
|
+
onChange(value: any): void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
11
21
|
export declare const selectComponentFieldSettings: SchemaSettings<{}>;
|
|
22
|
+
/**
|
|
23
|
+
* Used for Select fields in filter form blocks
|
|
24
|
+
*/
|
|
25
|
+
export declare const filterSelectComponentFieldSettings: SchemaSettings<{}>;
|
|
@@ -33,6 +33,11 @@ interface SubFormProviderProps {
|
|
|
33
33
|
* the schema of the current sub-table or sub-form
|
|
34
34
|
*/
|
|
35
35
|
fieldSchema?: Schema;
|
|
36
|
+
parent?: SubFormProviderProps;
|
|
37
|
+
/**
|
|
38
|
+
* Ignore the current value in the upper and lower levels
|
|
39
|
+
*/
|
|
40
|
+
skip?: boolean;
|
|
36
41
|
}
|
|
37
42
|
export declare const SubFormProvider: FC<{
|
|
38
43
|
value: SubFormProviderProps;
|
|
@@ -50,5 +55,6 @@ export declare const useSubFormValue: () => {
|
|
|
50
55
|
formValue: any;
|
|
51
56
|
collection: Collection;
|
|
52
57
|
fieldSchema: Schema<any, any, any, any, any, any, any, any, any>;
|
|
58
|
+
parent: SubFormProviderProps;
|
|
53
59
|
};
|
|
54
60
|
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { Schema } from '@formily/json-schema';
|
|
10
|
+
import { CollectionFieldOptions } from '../../../data-source/collection/Collection';
|
|
11
|
+
/**
|
|
12
|
+
* 变量:`上级对象`
|
|
13
|
+
* @param param0
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare const useParentObjectVariable: ({ collectionField, schema, noDisabled, targetFieldSchema, }?: {
|
|
17
|
+
collectionField?: CollectionFieldOptions;
|
|
18
|
+
schema?: any;
|
|
19
|
+
noDisabled?: boolean;
|
|
20
|
+
/** 消费变量值的字段 */
|
|
21
|
+
targetFieldSchema?: Schema;
|
|
22
|
+
}) => {
|
|
23
|
+
/** 是否显示变量 */
|
|
24
|
+
shouldDisplayParentObject: boolean;
|
|
25
|
+
/** 变量的值 */
|
|
26
|
+
parentObjectCtx: any;
|
|
27
|
+
/** 变量的配置项 */
|
|
28
|
+
parentObjectSettings: import("../type").Option;
|
|
29
|
+
collectionName: string;
|
|
30
|
+
};
|