@steedos-widgets/amis-lib 6.3.0-beta.13 → 6.3.0-beta.14

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.
@@ -21,129 +21,330 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
21
21
  }[] | {
22
22
  type: string;
23
23
  icon: string;
24
- visibleOn: string;
25
- onEvent: {
26
- click: {
27
- actions: {
28
- actionType: string;
29
- drawer: {
30
- type: string;
31
- title: string;
32
- id: string;
33
- body: {
34
- type: string;
35
- id: string;
36
- vertical: boolean;
37
- tiled: boolean;
38
- buttons: {
39
- type: string;
40
- name: any;
41
- objectName: any;
42
- visibleOn: any;
43
- }[];
44
- btnLevel: string;
45
- className: string;
46
- btnClassName: string;
47
- size: string;
48
- }[];
49
- position: string;
50
- closeOnOutside: boolean;
51
- resizable: boolean;
52
- className: string;
53
- bodyClassName: string;
54
- actions: any[];
24
+ size: string;
25
+ hideCaret: boolean;
26
+ className: string;
27
+ closeOnClick: boolean;
28
+ menuClassName: string;
29
+ align: string;
30
+ body: ({
31
+ type: string;
32
+ style: {
33
+ position: string;
34
+ top: number;
35
+ right: number;
36
+ bottom: number;
37
+ left: number;
38
+ "z-index": number;
39
+ background: string;
40
+ height: string;
41
+ width: string;
42
+ padding: string;
43
+ margin: string;
44
+ "border-radius": string;
45
+ "box-shadow"?: undefined;
46
+ };
47
+ body?: undefined;
48
+ } | {
49
+ type: string;
50
+ style: {
51
+ position: string;
52
+ bottom: number;
53
+ "z-index": number;
54
+ width: string;
55
+ left: string;
56
+ padding: string;
57
+ background: string;
58
+ "box-shadow": string;
59
+ top?: undefined;
60
+ right?: undefined;
61
+ height?: undefined;
62
+ margin?: undefined;
63
+ "border-radius"?: undefined;
64
+ };
65
+ body: ({
66
+ type: string;
67
+ justify: string;
68
+ items: ({
69
+ type: string;
70
+ tpl: string;
71
+ style: {
72
+ padding: string;
73
+ "align-items": string;
74
+ display: string;
75
+ color?: undefined;
76
+ };
77
+ label?: undefined;
78
+ icon?: undefined;
79
+ level?: undefined;
80
+ } | {
81
+ type: string;
82
+ label: string;
83
+ icon: string;
84
+ level: string;
85
+ style: {
86
+ color: string;
87
+ padding?: undefined;
88
+ "align-items"?: undefined;
89
+ display?: undefined;
55
90
  };
91
+ tpl?: undefined;
92
+ })[];
93
+ style: {
94
+ "padding-top": string;
95
+ "padding-bottom": string;
96
+ "border-bottom": string;
97
+ padding?: undefined;
98
+ overflow?: undefined;
99
+ "max-height"?: undefined;
100
+ };
101
+ body?: undefined;
102
+ } | {
103
+ type: string;
104
+ body: {
105
+ type: string;
106
+ id: string;
107
+ vertical: boolean;
108
+ tiled: boolean;
109
+ buttons: any;
110
+ className: string;
111
+ btnClassName: string;
112
+ size: string;
56
113
  }[];
57
- };
58
- };
114
+ style: {
115
+ padding: string;
116
+ overflow: string;
117
+ "max-height": string;
118
+ "padding-top"?: undefined;
119
+ "padding-bottom"?: undefined;
120
+ "border-bottom"?: undefined;
121
+ };
122
+ justify?: undefined;
123
+ items?: undefined;
124
+ })[];
125
+ })[];
59
126
  }[];
60
127
  export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
128
+ type: string;
129
+ icon: string;
130
+ size: string;
131
+ hideCaret: boolean;
132
+ className: string;
133
+ closeOnClick: boolean;
134
+ menuClassName: string;
135
+ align: string;
136
+ body: ({
137
+ type: string;
138
+ style: {
139
+ position: string;
140
+ top: number;
141
+ right: number;
142
+ bottom: number;
143
+ left: number;
144
+ "z-index": number;
145
+ background: string;
146
+ height: string;
147
+ width: string;
148
+ padding: string;
149
+ margin: string;
150
+ "border-radius": string;
151
+ "box-shadow"?: undefined;
152
+ };
153
+ body?: undefined;
154
+ } | {
155
+ type: string;
156
+ style: {
157
+ position: string;
158
+ bottom: number;
159
+ "z-index": number;
160
+ width: string;
161
+ left: string;
162
+ padding: string;
163
+ background: string;
164
+ "box-shadow": string;
165
+ top?: undefined;
166
+ right?: undefined;
167
+ height?: undefined;
168
+ margin?: undefined;
169
+ "border-radius"?: undefined;
170
+ };
171
+ body: ({
172
+ type: string;
173
+ justify: string;
174
+ items: ({
175
+ type: string;
176
+ tpl: string;
177
+ style: {
178
+ padding: string;
179
+ "align-items": string;
180
+ display: string;
181
+ color?: undefined;
182
+ };
183
+ label?: undefined;
184
+ icon?: undefined;
185
+ level?: undefined;
186
+ } | {
187
+ type: string;
188
+ label: string;
189
+ icon: string;
190
+ level: string;
191
+ style: {
192
+ color: string;
193
+ padding?: undefined;
194
+ "align-items"?: undefined;
195
+ display?: undefined;
196
+ };
197
+ tpl?: undefined;
198
+ })[];
199
+ style: {
200
+ "padding-top": string;
201
+ "padding-bottom": string;
202
+ "border-bottom": string;
203
+ padding?: undefined;
204
+ overflow?: undefined;
205
+ "max-height"?: undefined;
206
+ };
207
+ body?: undefined;
208
+ } | {
209
+ type: string;
210
+ body: {
211
+ type: string;
212
+ id: string;
213
+ vertical: boolean;
214
+ tiled: boolean;
215
+ buttons: any;
216
+ className: string;
217
+ btnClassName: string;
218
+ size: string;
219
+ }[];
220
+ style: {
221
+ padding: string;
222
+ overflow: string;
223
+ "max-height": string;
224
+ "padding-top"?: undefined;
225
+ "padding-bottom"?: undefined;
226
+ "border-bottom"?: undefined;
227
+ };
228
+ justify?: undefined;
229
+ items?: undefined;
230
+ })[];
231
+ })[];
232
+ } | {
61
233
  type: string;
62
234
  name: any;
63
235
  objectName: any;
64
236
  visibleOn: any;
65
237
  className: string;
66
- }[] | {
238
+ }[];
239
+ export function getObjectRecordDetailRelatedListButtonsSchemas(objectSchema: any, ctx: any): {
67
240
  type: string;
68
241
  icon: string;
242
+ size: string;
243
+ hideCaret: boolean;
69
244
  className: string;
70
- onEvent: {
71
- click: {
72
- actions: {
73
- actionType: string;
74
- drawer: {
75
- type: string;
76
- title: string;
77
- id: string;
78
- body: {
79
- type: string;
80
- id: string;
81
- vertical: boolean;
82
- tiled: boolean;
83
- buttons: {
84
- type: string;
85
- name: any;
86
- objectName: any;
87
- visibleOn: any;
88
- className: string;
89
- }[];
90
- btnLevel: string;
91
- className: string;
92
- btnClassName: string;
93
- size: string;
94
- }[];
95
- position: string;
96
- closeOnOutside: boolean;
97
- resizable: boolean;
98
- className: string;
99
- bodyClassName: string;
100
- actions: any[];
245
+ closeOnClick: boolean;
246
+ menuClassName: string;
247
+ align: string;
248
+ body: ({
249
+ type: string;
250
+ style: {
251
+ position: string;
252
+ top: number;
253
+ right: number;
254
+ bottom: number;
255
+ left: number;
256
+ "z-index": number;
257
+ background: string;
258
+ height: string;
259
+ width: string;
260
+ padding: string;
261
+ margin: string;
262
+ "border-radius": string;
263
+ "box-shadow"?: undefined;
264
+ };
265
+ body?: undefined;
266
+ } | {
267
+ type: string;
268
+ style: {
269
+ position: string;
270
+ bottom: number;
271
+ "z-index": number;
272
+ width: string;
273
+ left: string;
274
+ padding: string;
275
+ background: string;
276
+ "box-shadow": string;
277
+ top?: undefined;
278
+ right?: undefined;
279
+ height?: undefined;
280
+ margin?: undefined;
281
+ "border-radius"?: undefined;
282
+ };
283
+ body: ({
284
+ type: string;
285
+ justify: string;
286
+ items: ({
287
+ type: string;
288
+ tpl: string;
289
+ style: {
290
+ padding: string;
291
+ "align-items": string;
292
+ display: string;
293
+ color?: undefined;
294
+ };
295
+ label?: undefined;
296
+ icon?: undefined;
297
+ level?: undefined;
298
+ } | {
299
+ type: string;
300
+ label: string;
301
+ icon: string;
302
+ level: string;
303
+ style: {
304
+ color: string;
305
+ padding?: undefined;
306
+ "align-items"?: undefined;
307
+ display?: undefined;
101
308
  };
309
+ tpl?: undefined;
310
+ })[];
311
+ style: {
312
+ "padding-top": string;
313
+ "padding-bottom": string;
314
+ "border-bottom": string;
315
+ padding?: undefined;
316
+ overflow?: undefined;
317
+ "max-height"?: undefined;
318
+ };
319
+ body?: undefined;
320
+ } | {
321
+ type: string;
322
+ body: {
323
+ type: string;
324
+ id: string;
325
+ vertical: boolean;
326
+ tiled: boolean;
327
+ buttons: any;
328
+ className: string;
329
+ btnClassName: string;
330
+ size: string;
102
331
  }[];
103
- };
104
- };
105
- };
106
- export function getObjectRecordDetailRelatedListButtonsSchemas(objectSchema: any, ctx: any): {
332
+ style: {
333
+ padding: string;
334
+ overflow: string;
335
+ "max-height": string;
336
+ "padding-top"?: undefined;
337
+ "padding-bottom"?: undefined;
338
+ "border-bottom"?: undefined;
339
+ };
340
+ justify?: undefined;
341
+ items?: undefined;
342
+ })[];
343
+ })[];
344
+ }[] | {
107
345
  type: string;
108
346
  name: any;
109
347
  objectName: any;
110
348
  visibleOn: any;
111
349
  className: string;
112
- }[] | {
113
- type: string;
114
- icon: string;
115
- onEvent: {
116
- click: {
117
- actions: {
118
- actionType: string;
119
- drawer: {
120
- type: string;
121
- title: string;
122
- id: string;
123
- body: {
124
- type: string;
125
- vertical: boolean;
126
- tiled: boolean;
127
- buttons: {
128
- type: string;
129
- name: any;
130
- objectName: any;
131
- visibleOn: any;
132
- className: string;
133
- }[];
134
- btnLevel: string;
135
- className: string;
136
- btnClassName: string;
137
- size: string;
138
- }[];
139
- position: string;
140
- closeOnOutside: boolean;
141
- resizable: boolean;
142
- className: string;
143
- bodyClassName: string;
144
- actions: any[];
145
- };
146
- }[];
147
- };
148
- };
149
- };
350
+ }[];