@nocobase/client 1.2.7-alpha → 1.2.9-alpha
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/application/PluginSettingsManager.d.ts +1 -0
- package/es/collection-manager/interfaces/integer.d.ts +9 -0
- package/es/collection-manager/interfaces/properties/index.d.ts +9 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1806 -1704
- package/es/modules/fields/component/Tag/e2e/templatesOfBug.d.ts +165 -0
- package/es/modules/variable/{DeclareVariable.d.ts → types.d.ts} +2 -9
- package/es/modules/variable/variablesProvider/VariablePopupRecordProvider.d.ts +21 -0
- package/es/schema-component/antd/association-field/InternalPopoverNester.d.ts +1 -1
- package/es/schema-component/antd/filter/DynamicComponent.d.ts +3 -0
- package/es/schema-component/antd/filter/index.d.ts +2 -0
- package/es/schema-settings/VariableInput/hooks/useParentPopupVariable.d.ts +24 -0
- package/lib/index.js +62 -68
- package/lib/locale/en_US.js +1 -0
- package/lib/locale/es_ES.js +1 -0
- package/lib/locale/fr_FR.js +1 -0
- package/lib/locale/ja_JP.js +1 -0
- package/lib/locale/ko_KR.js +1 -0
- package/lib/locale/pt_BR.js +3 -1
- package/lib/locale/ru_RU.js +1 -0
- package/lib/locale/tr_TR.js +1 -0
- package/lib/locale/uk_UA.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- package/package.json +6 -6
- package/es/modules/variable/useVariable.d.ts +0 -22
|
@@ -0,0 +1,165 @@
|
|
|
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 oneTableWithTagField: {
|
|
10
|
+
pageSchema: {
|
|
11
|
+
_isJSONSchemaObject: boolean;
|
|
12
|
+
version: string;
|
|
13
|
+
type: string;
|
|
14
|
+
'x-component': string;
|
|
15
|
+
'x-app-version': string;
|
|
16
|
+
properties: {
|
|
17
|
+
ehepu4b8vhj: {
|
|
18
|
+
_isJSONSchemaObject: boolean;
|
|
19
|
+
version: string;
|
|
20
|
+
type: string;
|
|
21
|
+
'x-component': string;
|
|
22
|
+
'x-initializer': string;
|
|
23
|
+
'x-app-version': string;
|
|
24
|
+
properties: {
|
|
25
|
+
'2bp3civv10s': {
|
|
26
|
+
_isJSONSchemaObject: boolean;
|
|
27
|
+
version: string;
|
|
28
|
+
type: string;
|
|
29
|
+
'x-component': string;
|
|
30
|
+
'x-app-version': string;
|
|
31
|
+
properties: {
|
|
32
|
+
vjff2vsptqc: {
|
|
33
|
+
_isJSONSchemaObject: boolean;
|
|
34
|
+
version: string;
|
|
35
|
+
type: string;
|
|
36
|
+
'x-component': string;
|
|
37
|
+
'x-app-version': string;
|
|
38
|
+
properties: {
|
|
39
|
+
'2owh8mmlcd4': {
|
|
40
|
+
_isJSONSchemaObject: boolean;
|
|
41
|
+
version: string;
|
|
42
|
+
type: string;
|
|
43
|
+
'x-decorator': string;
|
|
44
|
+
'x-acl-action': string;
|
|
45
|
+
'x-use-decorator-props': string;
|
|
46
|
+
'x-decorator-props': {
|
|
47
|
+
collection: string;
|
|
48
|
+
dataSource: string;
|
|
49
|
+
action: string;
|
|
50
|
+
params: {
|
|
51
|
+
pageSize: number;
|
|
52
|
+
};
|
|
53
|
+
rowKey: string;
|
|
54
|
+
showIndex: boolean;
|
|
55
|
+
dragSort: boolean;
|
|
56
|
+
};
|
|
57
|
+
'x-toolbar': string;
|
|
58
|
+
'x-settings': string;
|
|
59
|
+
'x-component': string;
|
|
60
|
+
'x-filter-targets': any[];
|
|
61
|
+
'x-app-version': string;
|
|
62
|
+
properties: {
|
|
63
|
+
actions: {
|
|
64
|
+
_isJSONSchemaObject: boolean;
|
|
65
|
+
version: string;
|
|
66
|
+
type: string;
|
|
67
|
+
'x-initializer': string;
|
|
68
|
+
'x-component': string;
|
|
69
|
+
'x-component-props': {
|
|
70
|
+
style: {
|
|
71
|
+
marginBottom: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
'x-app-version': string;
|
|
75
|
+
'x-uid': string;
|
|
76
|
+
'x-async': boolean;
|
|
77
|
+
'x-index': number;
|
|
78
|
+
};
|
|
79
|
+
'7y3gwycqft3': {
|
|
80
|
+
_isJSONSchemaObject: boolean;
|
|
81
|
+
version: string;
|
|
82
|
+
type: string;
|
|
83
|
+
'x-initializer': string;
|
|
84
|
+
'x-component': string;
|
|
85
|
+
'x-use-component-props': string;
|
|
86
|
+
'x-component-props': {
|
|
87
|
+
rowKey: string;
|
|
88
|
+
rowSelection: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
'x-app-version': string;
|
|
93
|
+
properties: {
|
|
94
|
+
pxvel5iqt9r: {
|
|
95
|
+
_isJSONSchemaObject: boolean;
|
|
96
|
+
version: string;
|
|
97
|
+
type: string;
|
|
98
|
+
'x-decorator': string;
|
|
99
|
+
'x-toolbar': string;
|
|
100
|
+
'x-settings': string;
|
|
101
|
+
'x-component': string;
|
|
102
|
+
'x-app-version': string;
|
|
103
|
+
properties: {
|
|
104
|
+
roles: {
|
|
105
|
+
'x-uid': string;
|
|
106
|
+
_isJSONSchemaObject: boolean;
|
|
107
|
+
version: string;
|
|
108
|
+
'x-collection-field': string;
|
|
109
|
+
'x-component': string;
|
|
110
|
+
'x-component-props': {
|
|
111
|
+
fieldNames: {
|
|
112
|
+
value: string;
|
|
113
|
+
label: string;
|
|
114
|
+
};
|
|
115
|
+
ellipsis: boolean;
|
|
116
|
+
size: string;
|
|
117
|
+
mode: string;
|
|
118
|
+
};
|
|
119
|
+
'x-read-pretty': boolean;
|
|
120
|
+
'x-decorator': any;
|
|
121
|
+
'x-decorator-props': {
|
|
122
|
+
labelStyle: {
|
|
123
|
+
display: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
'x-app-version': string;
|
|
127
|
+
'x-async': boolean;
|
|
128
|
+
'x-index': number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
'x-uid': string;
|
|
132
|
+
'x-async': boolean;
|
|
133
|
+
'x-index': number;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
'x-uid': string;
|
|
137
|
+
'x-async': boolean;
|
|
138
|
+
'x-index': number;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
'x-uid': string;
|
|
142
|
+
'x-async': boolean;
|
|
143
|
+
'x-index': number;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
'x-uid': string;
|
|
147
|
+
'x-async': boolean;
|
|
148
|
+
'x-index': number;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
'x-uid': string;
|
|
152
|
+
'x-async': boolean;
|
|
153
|
+
'x-index': number;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
'x-uid': string;
|
|
157
|
+
'x-async': boolean;
|
|
158
|
+
'x-index': number;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
'x-uid': string;
|
|
162
|
+
'x-async': boolean;
|
|
163
|
+
'x-index': number;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
@@ -6,9 +6,8 @@
|
|
|
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
|
|
10
|
-
|
|
11
|
-
interface DeclareVariableProps {
|
|
9
|
+
import { Collection } from '../../data-source/collection/Collection';
|
|
10
|
+
export interface DeclareVariableProps {
|
|
12
11
|
name: string;
|
|
13
12
|
/** 变量值 */
|
|
14
13
|
value: any;
|
|
@@ -17,9 +16,3 @@ interface DeclareVariableProps {
|
|
|
17
16
|
/** 变量对应的数据表信息 */
|
|
18
17
|
collection?: Collection;
|
|
19
18
|
}
|
|
20
|
-
export declare const DeclareVariableContext: React.Context<DeclareVariableProps>;
|
|
21
|
-
/**
|
|
22
|
-
* 在当前上下文中声明一个变量
|
|
23
|
-
*/
|
|
24
|
-
export declare const DeclareVariable: FC<DeclareVariableProps>;
|
|
25
|
-
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { FC } from 'react';
|
|
10
|
+
import { Collection } from '../../../data-source/collection/Collection';
|
|
11
|
+
import { DeclareVariableProps } from '../types';
|
|
12
|
+
export declare const VariablePopupRecordProvider: FC<{
|
|
13
|
+
recordData?: Record<string, any>;
|
|
14
|
+
collection?: Collection;
|
|
15
|
+
parent?: {
|
|
16
|
+
recordData?: Record<string, any>;
|
|
17
|
+
collection?: Collection;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
export declare const useCurrentPopupRecord: () => DeclareVariableProps;
|
|
21
|
+
export declare const useParentPopupRecord: () => DeclareVariableProps;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const InternalPopoverNester: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
|
|
@@ -22,6 +22,9 @@ interface Props {
|
|
|
22
22
|
value: any;
|
|
23
23
|
collectionField: CollectionFieldOptions_deprecated;
|
|
24
24
|
onChange: (value: any) => void;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
componentProps?: any;
|
|
25
27
|
}
|
|
26
28
|
export declare const DynamicComponent: (props: Props) => React.JSX.Element;
|
|
29
|
+
export declare const FilterDynamicComponent: (props: Props) => React.JSX.Element;
|
|
27
30
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
10
|
+
* 变量:`Parent popup record`
|
|
11
|
+
* @param props
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare const useParentPopupVariable: (props?: any) => {
|
|
15
|
+
/** 变量配置 */
|
|
16
|
+
settings: import("../type").Option;
|
|
17
|
+
/** 变量值 */
|
|
18
|
+
parentPopupRecordCtx: any;
|
|
19
|
+
/** 用于判断是否需要显示配置项 */
|
|
20
|
+
shouldDisplayParentPopupRecord: boolean;
|
|
21
|
+
/** 当前记录对应的 collection name */
|
|
22
|
+
collectionName: string;
|
|
23
|
+
dataSource: string;
|
|
24
|
+
};
|