@steedos-widgets/amis-lib 1.1.4 → 1.2.0-beta.0
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/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +138 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +138 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +138 -23
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +56 -0
- package/dist/types/lib/converter/amis/toolbar.d.ts +3 -111
- package/dist/types/lib/objects.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
export function getLookupSapceUserTreeSchema(): {
|
|
2
|
+
type: string;
|
|
3
|
+
className: string;
|
|
4
|
+
id: string;
|
|
5
|
+
source: {
|
|
6
|
+
method: string;
|
|
7
|
+
url: string;
|
|
8
|
+
headers: {
|
|
9
|
+
Authorization: string;
|
|
10
|
+
};
|
|
11
|
+
adaptor: string;
|
|
12
|
+
requestAdaptor: string;
|
|
13
|
+
data: {
|
|
14
|
+
query: string;
|
|
15
|
+
};
|
|
16
|
+
messages: {};
|
|
17
|
+
};
|
|
18
|
+
onEvent: {
|
|
19
|
+
change: {
|
|
20
|
+
actions: {
|
|
21
|
+
actionType: string;
|
|
22
|
+
script: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
label: string;
|
|
27
|
+
name: string;
|
|
28
|
+
multiple: boolean;
|
|
29
|
+
joinValues: boolean;
|
|
30
|
+
clearValueOnHidden: boolean;
|
|
31
|
+
fieldName: string;
|
|
32
|
+
hideRoot: boolean;
|
|
33
|
+
initiallyOpen: boolean;
|
|
34
|
+
extractValue: boolean;
|
|
35
|
+
onlyChildren: boolean;
|
|
36
|
+
treeContainerClassName: string;
|
|
37
|
+
showIcon: boolean;
|
|
38
|
+
enableNodePath: boolean;
|
|
39
|
+
autoCheckChildren: boolean;
|
|
40
|
+
searchable: boolean;
|
|
41
|
+
searchConfig: {
|
|
42
|
+
sticky: boolean;
|
|
43
|
+
};
|
|
44
|
+
unfoldedLevel: number;
|
|
45
|
+
style: {
|
|
46
|
+
"max-height": string;
|
|
47
|
+
position: string;
|
|
48
|
+
left: string;
|
|
49
|
+
width: string;
|
|
50
|
+
bottom: number;
|
|
51
|
+
top: string;
|
|
52
|
+
overflow: string;
|
|
53
|
+
"min-height": string;
|
|
54
|
+
};
|
|
55
|
+
originPosition: string;
|
|
56
|
+
}[];
|
|
1
57
|
export function lookupToAmisPicker(field: any, readonly: any, ctx: any): Promise<{
|
|
2
58
|
type: any;
|
|
3
59
|
labelField: any;
|
|
@@ -1,116 +1,8 @@
|
|
|
1
|
-
export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showDisplayAs, hiddenCount }?: {
|
|
1
|
+
export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems }?: {
|
|
2
2
|
showDisplayAs?: boolean;
|
|
3
3
|
hiddenCount?: boolean;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
icon: string;
|
|
7
|
-
btnClassName: string;
|
|
8
|
-
align: string;
|
|
9
|
-
buttons: {
|
|
10
|
-
label: string;
|
|
11
|
-
children: {
|
|
12
|
-
type: string;
|
|
13
|
-
label: string;
|
|
14
|
-
onClick: string;
|
|
15
|
-
}[];
|
|
16
|
-
}[];
|
|
17
|
-
} | {
|
|
18
|
-
type: string;
|
|
19
|
-
className: string;
|
|
20
|
-
tpl?: undefined;
|
|
21
|
-
align?: undefined;
|
|
22
|
-
tooltipPlacement?: undefined;
|
|
23
|
-
label?: undefined;
|
|
24
|
-
icon?: undefined;
|
|
25
|
-
visibleOn?: undefined;
|
|
26
|
-
tooltip?: undefined;
|
|
27
|
-
onEvent?: undefined;
|
|
28
|
-
} | {
|
|
29
|
-
type?: undefined;
|
|
30
|
-
className?: undefined;
|
|
31
|
-
tpl?: undefined;
|
|
32
|
-
align?: undefined;
|
|
33
|
-
tooltipPlacement?: undefined;
|
|
34
|
-
label?: undefined;
|
|
35
|
-
icon?: undefined;
|
|
36
|
-
visibleOn?: undefined;
|
|
37
|
-
tooltip?: undefined;
|
|
38
|
-
onEvent?: undefined;
|
|
39
|
-
} | {
|
|
40
|
-
type: string;
|
|
41
|
-
tpl: string;
|
|
42
|
-
className?: undefined;
|
|
43
|
-
align?: undefined;
|
|
44
|
-
tooltipPlacement?: undefined;
|
|
45
|
-
label?: undefined;
|
|
46
|
-
icon?: undefined;
|
|
47
|
-
visibleOn?: undefined;
|
|
48
|
-
tooltip?: undefined;
|
|
49
|
-
onEvent?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
type: string;
|
|
52
|
-
align: string;
|
|
53
|
-
tooltipPlacement: string;
|
|
54
|
-
className: string;
|
|
55
|
-
tpl?: undefined;
|
|
56
|
-
label?: undefined;
|
|
57
|
-
icon?: undefined;
|
|
58
|
-
visibleOn?: undefined;
|
|
59
|
-
tooltip?: undefined;
|
|
60
|
-
onEvent?: undefined;
|
|
61
|
-
} | {
|
|
62
|
-
type: string;
|
|
63
|
-
label: string;
|
|
64
|
-
icon: string;
|
|
65
|
-
align: string;
|
|
66
|
-
className: string;
|
|
67
|
-
tooltipPlacement: string;
|
|
68
|
-
visibleOn: string;
|
|
69
|
-
tooltip: string;
|
|
70
|
-
onEvent: {
|
|
71
|
-
click: {
|
|
72
|
-
weight: number;
|
|
73
|
-
actions: {
|
|
74
|
-
args: {
|
|
75
|
-
api: {
|
|
76
|
-
url: string;
|
|
77
|
-
method: string;
|
|
78
|
-
messages: {};
|
|
79
|
-
requestAdaptor: string;
|
|
80
|
-
data: {
|
|
81
|
-
uiSchema: string;
|
|
82
|
-
listName: string;
|
|
83
|
-
};
|
|
84
|
-
headers: {
|
|
85
|
-
Authorization: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
actionType: string;
|
|
90
|
-
}[];
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
tpl?: undefined;
|
|
94
|
-
} | {
|
|
95
|
-
label: string;
|
|
96
|
-
icon: string;
|
|
97
|
-
type: string;
|
|
98
|
-
align: string;
|
|
99
|
-
className: string;
|
|
100
|
-
onEvent: {
|
|
101
|
-
click: {
|
|
102
|
-
actions: {
|
|
103
|
-
actionType: string;
|
|
104
|
-
script: string;
|
|
105
|
-
}[];
|
|
106
|
-
weight?: undefined;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
tpl?: undefined;
|
|
110
|
-
tooltipPlacement?: undefined;
|
|
111
|
-
visibleOn?: undefined;
|
|
112
|
-
tooltip?: undefined;
|
|
113
|
-
})[];
|
|
4
|
+
headerToolbarItems: any;
|
|
5
|
+
}): any[];
|
|
114
6
|
export function getObjectFooterToolbar(mainObject: any, formFactor: any): string[];
|
|
115
7
|
export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
|
|
116
8
|
title: string;
|
|
@@ -163,6 +163,7 @@ export function getListSchema(appName: any, objectName: any, listViewName: any,
|
|
|
163
163
|
ctx: {};
|
|
164
164
|
requestAdaptor: any;
|
|
165
165
|
adaptor: any;
|
|
166
|
+
headerToolbarItems: any;
|
|
166
167
|
};
|
|
167
168
|
isCustomAmisSchema?: undefined;
|
|
168
169
|
isCalendar?: undefined;
|
|
@@ -357,6 +358,7 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
|
|
|
357
358
|
ctx: {};
|
|
358
359
|
requestAdaptor: any;
|
|
359
360
|
adaptor: any;
|
|
361
|
+
headerToolbarItems: any;
|
|
360
362
|
};
|
|
361
363
|
isCustomAmisSchema?: undefined;
|
|
362
364
|
isCalendar?: undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0-beta.0",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"lodash": "^4.17.21"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "d5030ab9b3119bfce413d11fa978ce25dcb3df8b"
|
|
63
63
|
}
|