@steedos-widgets/amis-lib 1.1.4 → 1.1.7
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 +43 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +43 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +43 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +3 -111
- package/dist/types/lib/objects.d.ts +2 -0
- package/dist/types/schema/standard_delete.amis.d.ts +0 -6
- package/dist/types/standard/button.d.ts +0 -6
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -23,10 +23,6 @@ export function getSchema(uiSchema: any): {
|
|
|
23
23
|
};
|
|
24
24
|
adaptor: string;
|
|
25
25
|
};
|
|
26
|
-
messages: {
|
|
27
|
-
success: string;
|
|
28
|
-
failed: string;
|
|
29
|
-
};
|
|
30
26
|
eventName?: undefined;
|
|
31
27
|
};
|
|
32
28
|
actionType: string;
|
|
@@ -37,7 +33,6 @@ export function getSchema(uiSchema: any): {
|
|
|
37
33
|
args: {
|
|
38
34
|
eventName: string;
|
|
39
35
|
api?: undefined;
|
|
40
|
-
messages?: undefined;
|
|
41
36
|
};
|
|
42
37
|
data: {
|
|
43
38
|
objectName: string;
|
|
@@ -49,7 +44,6 @@ export function getSchema(uiSchema: any): {
|
|
|
49
44
|
args: {
|
|
50
45
|
eventName: string;
|
|
51
46
|
api?: undefined;
|
|
52
|
-
messages?: undefined;
|
|
53
47
|
};
|
|
54
48
|
data: {
|
|
55
49
|
objectName: string;
|
|
@@ -129,10 +129,6 @@ export namespace StandardButtons {
|
|
|
129
129
|
};
|
|
130
130
|
adaptor: string;
|
|
131
131
|
};
|
|
132
|
-
messages: {
|
|
133
|
-
success: string;
|
|
134
|
-
failed: string;
|
|
135
|
-
};
|
|
136
132
|
eventName?: undefined;
|
|
137
133
|
};
|
|
138
134
|
actionType: string;
|
|
@@ -143,7 +139,6 @@ export namespace StandardButtons {
|
|
|
143
139
|
args: {
|
|
144
140
|
eventName: string;
|
|
145
141
|
api?: undefined;
|
|
146
|
-
messages?: undefined;
|
|
147
142
|
};
|
|
148
143
|
data: {
|
|
149
144
|
objectName: string;
|
|
@@ -155,7 +150,6 @@ export namespace StandardButtons {
|
|
|
155
150
|
args: {
|
|
156
151
|
eventName: string;
|
|
157
152
|
api?: undefined;
|
|
158
|
-
messages?: undefined;
|
|
159
153
|
};
|
|
160
154
|
data: {
|
|
161
155
|
objectName: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
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": "bb2cabb1e6e3c02a590fbdb19af40f429416cb17"
|
|
63
63
|
}
|