@steedos-widgets/amis-lib 1.2.9-beta.1 → 1.2.9

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.
@@ -0,0 +1,47 @@
1
+ export function getRenameListviewButtonSchema(): {
2
+ type: string;
3
+ label: string;
4
+ disabledOn: string;
5
+ onEvent: {
6
+ click: {
7
+ weight: number;
8
+ actions: {
9
+ dialog: {
10
+ type: string;
11
+ title: string;
12
+ data: {
13
+ targetObjectName: string;
14
+ recordId: string;
15
+ appId: string;
16
+ };
17
+ body: {
18
+ type: string;
19
+ label: string;
20
+ objectApiName: string;
21
+ recordId: string;
22
+ mode: string;
23
+ fields: string[];
24
+ fieldsExtend: string;
25
+ onEvent: {
26
+ submitSucc: {
27
+ weight: number;
28
+ actions: {
29
+ args: {
30
+ url: string;
31
+ blank: boolean;
32
+ };
33
+ actionType: string;
34
+ }[];
35
+ };
36
+ };
37
+ }[];
38
+ showCloseButton: boolean;
39
+ showErrorMsg: boolean;
40
+ showLoading: boolean;
41
+ size: string;
42
+ };
43
+ actionType: string;
44
+ }[];
45
+ };
46
+ };
47
+ };
@@ -0,0 +1,34 @@
1
+ export function getSetListviewShareButtonSchema(): {
2
+ type: string;
3
+ label: string;
4
+ disabledOn: string;
5
+ onEvent: {
6
+ click: {
7
+ weight: number;
8
+ actions: {
9
+ dialog: {
10
+ type: string;
11
+ title: string;
12
+ data: {
13
+ recordId: string;
14
+ };
15
+ body: {
16
+ type: string;
17
+ label: string;
18
+ objectApiName: string;
19
+ recordId: string;
20
+ mode: string;
21
+ fields: string[];
22
+ }[];
23
+ showCloseButton: boolean;
24
+ showErrorMsg: boolean;
25
+ showLoading: boolean;
26
+ closeOnEsc: boolean;
27
+ dataMapSwitch: boolean;
28
+ size: string;
29
+ };
30
+ actionType: string;
31
+ }[];
32
+ };
33
+ };
34
+ };
@@ -0,0 +1,69 @@
1
+ export function getSetListviewSortButtonSchema(): {
2
+ type: string;
3
+ label: string;
4
+ disabledOn: string;
5
+ onEvent: {
6
+ click: {
7
+ weight: number;
8
+ actions: {
9
+ dialog: {
10
+ type: string;
11
+ title: string;
12
+ data: {
13
+ "&": string;
14
+ targetObjectName: string;
15
+ recordId: string;
16
+ listName: string;
17
+ appId: string;
18
+ };
19
+ body: {
20
+ type: string;
21
+ label: string;
22
+ objectApiName: string;
23
+ recordId: string;
24
+ className: string;
25
+ id: string;
26
+ mode: string;
27
+ fields: string[];
28
+ onEvent: {
29
+ submitSucc: {
30
+ weight: number;
31
+ actions: {
32
+ args: {
33
+ url: string;
34
+ blank: boolean;
35
+ };
36
+ actionType: string;
37
+ }[];
38
+ };
39
+ };
40
+ fieldsExtend: {
41
+ sort: {
42
+ amis: {
43
+ type: string;
44
+ sortable: boolean;
45
+ searchable: boolean;
46
+ source: {
47
+ method: string;
48
+ url: string;
49
+ headers: {
50
+ Authorization: string;
51
+ };
52
+ };
53
+ };
54
+ };
55
+ };
56
+ initApiAdaptor: string;
57
+ apiRequestAdaptor: string;
58
+ }[];
59
+ showCloseButton: boolean;
60
+ showErrorMsg: boolean;
61
+ showLoading: boolean;
62
+ id: string;
63
+ size: string;
64
+ };
65
+ actionType: string;
66
+ }[];
67
+ };
68
+ };
69
+ };
@@ -0,0 +1,509 @@
1
+ export function getSettingListviewToolbarButtonSchema(): {
2
+ type: string;
3
+ trigger: string;
4
+ icon: string;
5
+ btnClassName: string;
6
+ align: string;
7
+ visibleOn: string;
8
+ buttons: {
9
+ label: string;
10
+ children: ({
11
+ type: string;
12
+ label: string;
13
+ onEvent: {
14
+ click: {
15
+ weight: number;
16
+ actions: {
17
+ dialog: {
18
+ type: string;
19
+ title: string;
20
+ data: {
21
+ "&": string;
22
+ all: string;
23
+ list_view: string;
24
+ appId: string;
25
+ global: string;
26
+ targetObjectName: string;
27
+ };
28
+ body: {
29
+ type: string;
30
+ label: string;
31
+ objectApiName: string;
32
+ recordId: string;
33
+ mode: string;
34
+ defaultData: {
35
+ "&": string;
36
+ name: string;
37
+ label: string;
38
+ filters: string;
39
+ shared: boolean;
40
+ };
41
+ fieldsExtend: {
42
+ label: {
43
+ is_wide: boolean;
44
+ };
45
+ name: {
46
+ amis: {
47
+ hidden: boolean;
48
+ };
49
+ };
50
+ object_name: {
51
+ amis: {
52
+ hidden: boolean;
53
+ };
54
+ };
55
+ filter_scope: {
56
+ amis: {
57
+ hidden: boolean;
58
+ };
59
+ };
60
+ columns: {
61
+ amis: {
62
+ hidden: boolean;
63
+ };
64
+ };
65
+ filter_fields: {
66
+ amis: {
67
+ hidden: boolean;
68
+ };
69
+ };
70
+ scrolling_mode: {
71
+ amis: {
72
+ hidden: boolean;
73
+ };
74
+ };
75
+ sort: {
76
+ amis: {
77
+ hidden: boolean;
78
+ };
79
+ };
80
+ show_count: {
81
+ amis: {
82
+ hidden: boolean;
83
+ };
84
+ };
85
+ type: {
86
+ amis: {
87
+ hidden: boolean;
88
+ };
89
+ };
90
+ shared: {
91
+ amis: {
92
+ visibleOn: string;
93
+ };
94
+ };
95
+ };
96
+ fields: string[];
97
+ onEvent: {
98
+ submitSucc: {
99
+ weight: number;
100
+ actions: {
101
+ args: {
102
+ url: string;
103
+ blank: boolean;
104
+ };
105
+ actionType: string;
106
+ }[];
107
+ };
108
+ };
109
+ messages: {
110
+ success: string;
111
+ failed: string;
112
+ };
113
+ }[];
114
+ showCloseButton: boolean;
115
+ showErrorMsg: boolean;
116
+ showLoading: boolean;
117
+ closeOnEsc: boolean;
118
+ dataMapSwitch: boolean;
119
+ size: string;
120
+ };
121
+ actionType: string;
122
+ }[];
123
+ };
124
+ };
125
+ } | {
126
+ type: string;
127
+ label: string;
128
+ onEvent: {
129
+ click: {
130
+ weight: number;
131
+ actions: {
132
+ dialog: {
133
+ type: string;
134
+ title: string;
135
+ data: {
136
+ "&": string;
137
+ listName: string;
138
+ targetObjectName: string;
139
+ list_view: string;
140
+ appId: string;
141
+ global: string;
142
+ };
143
+ body: {
144
+ type: string;
145
+ label: string;
146
+ objectApiName: string;
147
+ recordId: string;
148
+ mode: string;
149
+ defaultData: {
150
+ "&": string;
151
+ name: string;
152
+ label: string;
153
+ shared: boolean;
154
+ };
155
+ fieldsExtend: {
156
+ label: {
157
+ is_wide: boolean;
158
+ };
159
+ name: {
160
+ is_wide: boolean;
161
+ amis: {
162
+ hidden: boolean;
163
+ };
164
+ };
165
+ object_name: {
166
+ amis: {
167
+ hidden: boolean;
168
+ };
169
+ };
170
+ filter_scope: {
171
+ amis: {
172
+ hidden: boolean;
173
+ };
174
+ };
175
+ columns: {
176
+ amis: {
177
+ hidden: boolean;
178
+ };
179
+ };
180
+ filter_fields: {
181
+ amis: {
182
+ hidden: boolean;
183
+ };
184
+ };
185
+ scrolling_mode: {
186
+ amis: {
187
+ hidden: boolean;
188
+ };
189
+ };
190
+ sort: {
191
+ amis: {
192
+ hidden: boolean;
193
+ };
194
+ };
195
+ show_count: {
196
+ amis: {
197
+ hidden: boolean;
198
+ };
199
+ };
200
+ type: {
201
+ amis: {
202
+ hidden: boolean;
203
+ };
204
+ };
205
+ shared: {
206
+ amis: {
207
+ visibleOn: string;
208
+ };
209
+ };
210
+ };
211
+ fields: string[];
212
+ onEvent: {
213
+ submitSucc: {
214
+ weight: number;
215
+ actions: {
216
+ args: {
217
+ url: string;
218
+ blank: boolean;
219
+ };
220
+ actionType: string;
221
+ }[];
222
+ };
223
+ };
224
+ }[];
225
+ showCloseButton: boolean;
226
+ showErrorMsg: boolean;
227
+ showLoading: boolean;
228
+ closeOnEsc: boolean;
229
+ dataMapSwitch: boolean;
230
+ size: string;
231
+ };
232
+ actionType: string;
233
+ }[];
234
+ };
235
+ };
236
+ } | {
237
+ type: string;
238
+ label: string;
239
+ disabledOn: string;
240
+ onEvent: {
241
+ click: {
242
+ weight: number;
243
+ actions: {
244
+ dialog: {
245
+ type: string;
246
+ title: string;
247
+ data: {
248
+ targetObjectName: string;
249
+ recordId: string;
250
+ appId: string;
251
+ };
252
+ body: {
253
+ type: string;
254
+ label: string;
255
+ objectApiName: string;
256
+ recordId: string;
257
+ mode: string;
258
+ fields: string[];
259
+ fieldsExtend: string;
260
+ onEvent: {
261
+ submitSucc: {
262
+ weight: number;
263
+ actions: {
264
+ args: {
265
+ url: string;
266
+ blank: boolean;
267
+ };
268
+ actionType: string;
269
+ }[];
270
+ };
271
+ };
272
+ }[];
273
+ showCloseButton: boolean;
274
+ showErrorMsg: boolean;
275
+ showLoading: boolean;
276
+ size: string;
277
+ };
278
+ actionType: string;
279
+ }[];
280
+ };
281
+ };
282
+ } | {
283
+ type: string;
284
+ label: string;
285
+ disabledOn: string;
286
+ onEvent: {
287
+ click: {
288
+ weight: number;
289
+ actions: {
290
+ dialog: {
291
+ type: string;
292
+ title: string;
293
+ data: {
294
+ recordId: string;
295
+ };
296
+ body: {
297
+ type: string;
298
+ label: string;
299
+ objectApiName: string;
300
+ recordId: string;
301
+ mode: string;
302
+ fields: string[];
303
+ }[];
304
+ showCloseButton: boolean;
305
+ showErrorMsg: boolean;
306
+ showLoading: boolean;
307
+ closeOnEsc: boolean;
308
+ dataMapSwitch: boolean;
309
+ size: string;
310
+ };
311
+ actionType: string;
312
+ }[];
313
+ };
314
+ };
315
+ } | {
316
+ type: string;
317
+ label: string;
318
+ disabledOn: string;
319
+ onEvent: {
320
+ click: {
321
+ weight: number;
322
+ actions: {
323
+ args: {};
324
+ dialog: {
325
+ type: string;
326
+ title: string;
327
+ data: {
328
+ "&": string;
329
+ targetObjectName: string;
330
+ recordId: string;
331
+ listName: string;
332
+ appId: string;
333
+ };
334
+ body: {
335
+ type: string;
336
+ label: string;
337
+ objectApiName: string;
338
+ recordId: string;
339
+ mode: string;
340
+ fieldsExtend: {
341
+ columns: {
342
+ amis: {
343
+ type: string;
344
+ sortable: boolean;
345
+ searchable: boolean;
346
+ source: {
347
+ method: string;
348
+ url: string;
349
+ headers: {
350
+ Authorization: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ mobile_columns: {
356
+ group: string;
357
+ amis: {
358
+ type: string;
359
+ sortable: boolean;
360
+ searchable: boolean;
361
+ source: {
362
+ method: string;
363
+ url: string;
364
+ headers: {
365
+ Authorization: string;
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ initApiAdaptor: string;
372
+ apiRequestAdaptor: string;
373
+ fields: string[];
374
+ onEvent: {
375
+ submitSucc: {
376
+ weight: number;
377
+ actions: {
378
+ args: {
379
+ url: string;
380
+ blank: boolean;
381
+ };
382
+ actionType: string;
383
+ }[];
384
+ };
385
+ };
386
+ }[];
387
+ searchable: boolean;
388
+ showCloseButton: boolean;
389
+ showErrorMsg: boolean;
390
+ showLoading: boolean;
391
+ size: string;
392
+ };
393
+ actionType: string;
394
+ }[];
395
+ };
396
+ };
397
+ } | {
398
+ type: string;
399
+ label: string;
400
+ disabledOn: string;
401
+ onEvent: {
402
+ click: {
403
+ weight: number;
404
+ actions: {
405
+ dialog: {
406
+ type: string;
407
+ title: string;
408
+ data: {
409
+ "&": string;
410
+ targetObjectName: string;
411
+ recordId: string;
412
+ listName: string;
413
+ appId: string;
414
+ };
415
+ body: {
416
+ type: string;
417
+ label: string;
418
+ objectApiName: string;
419
+ recordId: string;
420
+ className: string;
421
+ id: string;
422
+ mode: string;
423
+ fields: string[];
424
+ onEvent: {
425
+ submitSucc: {
426
+ weight: number;
427
+ actions: {
428
+ args: {
429
+ url: string;
430
+ blank: boolean;
431
+ };
432
+ actionType: string;
433
+ }[];
434
+ };
435
+ };
436
+ fieldsExtend: {
437
+ sort: {
438
+ amis: {
439
+ type: string;
440
+ sortable: boolean;
441
+ searchable: boolean;
442
+ source: {
443
+ method: string;
444
+ url: string;
445
+ headers: {
446
+ Authorization: string;
447
+ };
448
+ };
449
+ };
450
+ };
451
+ };
452
+ initApiAdaptor: string;
453
+ apiRequestAdaptor: string;
454
+ }[];
455
+ showCloseButton: boolean;
456
+ showErrorMsg: boolean;
457
+ showLoading: boolean;
458
+ id: string;
459
+ size: string;
460
+ };
461
+ actionType: string;
462
+ }[];
463
+ };
464
+ };
465
+ } | {
466
+ type: string;
467
+ label: string;
468
+ disabledOn: string;
469
+ confirmText: string;
470
+ onEvent: {
471
+ click: {
472
+ actions: ({
473
+ actionType: string;
474
+ args: {
475
+ api: {
476
+ url: string;
477
+ method: string;
478
+ headers: {
479
+ Authorization: string;
480
+ };
481
+ data: {
482
+ "&": string;
483
+ uiSchema: string;
484
+ recordId: string;
485
+ };
486
+ messages: {
487
+ success: string;
488
+ };
489
+ requestAdaptor: string;
490
+ adaptor: string;
491
+ };
492
+ url?: undefined;
493
+ blank?: undefined;
494
+ };
495
+ expression?: undefined;
496
+ } | {
497
+ actionType: string;
498
+ args: {
499
+ url: string;
500
+ blank: boolean;
501
+ api?: undefined;
502
+ };
503
+ expression: string;
504
+ })[];
505
+ };
506
+ };
507
+ })[];
508
+ }[];
509
+ };