@nocobase/client 1.2.12-alpha → 1.2.13-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/block-provider/hooks/index.d.ts +6 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +3928 -3830
- package/es/modules/actions/link/useURLAndParamsSchema.d.ts +88 -0
- package/es/schema-component/antd/grid/Grid.style.d.ts +1 -0
- package/es/schema-initializer/utils.d.ts +3 -2
- package/es/schema-settings/VariableInput/hooks/index.d.ts +3 -2
- package/es/schema-settings/VariableInput/hooks/useAPITokenVariable.d.ts +21 -0
- package/es/schema-settings/VariableInput/hooks/useBaseVariable.d.ts +3 -3
- package/lib/index.js +198 -185
- package/package.json +5 -5
|
@@ -0,0 +1,88 @@
|
|
|
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 React from 'react';
|
|
10
|
+
export declare const useURLAndParamsSchema: () => {
|
|
11
|
+
urlSchema: {
|
|
12
|
+
title: string;
|
|
13
|
+
type: string;
|
|
14
|
+
'x-decorator': string;
|
|
15
|
+
'x-component': (props: any) => React.JSX.Element;
|
|
16
|
+
description: string;
|
|
17
|
+
'x-reactions': {
|
|
18
|
+
dependencies: string[];
|
|
19
|
+
fulfill: {
|
|
20
|
+
state: {
|
|
21
|
+
hidden: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
paramsSchema: {
|
|
27
|
+
type: string;
|
|
28
|
+
'x-component': string;
|
|
29
|
+
'x-decorator': string;
|
|
30
|
+
title: string;
|
|
31
|
+
items: {
|
|
32
|
+
type: string;
|
|
33
|
+
properties: {
|
|
34
|
+
space: {
|
|
35
|
+
type: string;
|
|
36
|
+
'x-component': string;
|
|
37
|
+
'x-component-props': {
|
|
38
|
+
style: {
|
|
39
|
+
flexWrap: string;
|
|
40
|
+
maxWidth: string;
|
|
41
|
+
};
|
|
42
|
+
className: string;
|
|
43
|
+
};
|
|
44
|
+
properties: {
|
|
45
|
+
name: {
|
|
46
|
+
type: string;
|
|
47
|
+
'x-decorator': string;
|
|
48
|
+
'x-component': string;
|
|
49
|
+
'x-component-props': {
|
|
50
|
+
placeholder: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
value: {
|
|
54
|
+
type: string;
|
|
55
|
+
'x-decorator': string;
|
|
56
|
+
'x-component': (props: any) => React.JSX.Element;
|
|
57
|
+
'x-component-props': {
|
|
58
|
+
placeholder: string;
|
|
59
|
+
useTypedConstant: boolean;
|
|
60
|
+
changeOnSelect: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
remove: {
|
|
64
|
+
type: string;
|
|
65
|
+
'x-decorator': string;
|
|
66
|
+
'x-component': string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
'x-reactions': {
|
|
73
|
+
dependencies: string[];
|
|
74
|
+
fulfill: {
|
|
75
|
+
state: {
|
|
76
|
+
hidden: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
properties: {
|
|
81
|
+
add: {
|
|
82
|
+
type: string;
|
|
83
|
+
title: string;
|
|
84
|
+
'x-component': string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -130,8 +130,9 @@ export declare const useRecordCollectionDataSourceItems: (componentName: any, it
|
|
|
130
130
|
children: any;
|
|
131
131
|
item?: undefined;
|
|
132
132
|
})[];
|
|
133
|
-
export declare const useCollectionDataSourceItems: ({ componentName, filter, onlyCurrentDataSource, showAssociationFields, filterDataSource, dataBlockInitializerProps, hideOtherRecordsInPopup, onClick, filterOtherRecordsCollection, currentText, otherText, }: {
|
|
134
|
-
|
|
133
|
+
export declare const useCollectionDataSourceItems: ({ name, componentName, filter, onlyCurrentDataSource, showAssociationFields, filterDataSource, dataBlockInitializerProps, hideOtherRecordsInPopup, onClick, filterOtherRecordsCollection, currentText, otherText, }: {
|
|
134
|
+
name: string;
|
|
135
|
+
componentName: string;
|
|
135
136
|
filter?: (options: {
|
|
136
137
|
collection?: Collection;
|
|
137
138
|
associationField?: CollectionFieldOptions;
|
|
@@ -6,9 +6,10 @@
|
|
|
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
|
+
export * from './useAPITokenVariable';
|
|
9
10
|
export * from './useBaseVariable';
|
|
10
11
|
export * from './useDateVariable';
|
|
12
|
+
export * from './useRoleVariable';
|
|
13
|
+
export * from './useURLSearchParamsVariable';
|
|
11
14
|
export * from './useUserVariable';
|
|
12
15
|
export * from './useVariableOptions';
|
|
13
|
-
export * from './useURLSearchParamsVariable';
|
|
14
|
-
export * from './useRoleVariable';
|
|
@@ -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
|
+
/**
|
|
10
|
+
* 变量:`当前 Token`
|
|
11
|
+
* @param param0
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare const useAPITokenVariable: ({ noDisabled, }?: {
|
|
15
|
+
noDisabled?: boolean;
|
|
16
|
+
}) => {
|
|
17
|
+
/** 变量配置项 */
|
|
18
|
+
apiTokenSettings: import("../type").Option;
|
|
19
|
+
/** 变量的值 */
|
|
20
|
+
apiTokenCtx: string;
|
|
21
|
+
};
|
|
@@ -19,9 +19,9 @@ export interface IsDisabledParams {
|
|
|
19
19
|
getCollectionField: (name: string) => CollectionFieldOptions_deprecated;
|
|
20
20
|
}
|
|
21
21
|
interface BaseProps {
|
|
22
|
-
collectionField
|
|
22
|
+
collectionField?: CollectionFieldOptions_deprecated;
|
|
23
23
|
/** 当前字段的 `uiSchema`,和 `collectionField.uiSchema` 不同,该值也包含操作符中 schema(参见 useValues) */
|
|
24
|
-
uiSchema
|
|
24
|
+
uiSchema?: any;
|
|
25
25
|
/** 消费变量值的字段 */
|
|
26
26
|
targetFieldSchema?: Schema;
|
|
27
27
|
maxDepth?: number;
|
|
@@ -30,7 +30,7 @@ interface BaseProps {
|
|
|
30
30
|
/**
|
|
31
31
|
* 变量所对应的 collectionName,例如:$user 对应的 collectionName 是 users
|
|
32
32
|
*/
|
|
33
|
-
collectionName
|
|
33
|
+
collectionName?: string;
|
|
34
34
|
/**
|
|
35
35
|
* 不需要禁用选项,一般会在表达式中使用
|
|
36
36
|
*/
|