@steedos-widgets/amis-lib 6.10.52-beta.9 → 6.10.53-beta.1

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.
@@ -20,9 +20,503 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
20
20
  debug: boolean;
21
21
  id: string;
22
22
  resetAfterSubmit: boolean;
23
- clearPersistDataAfterSubmit: boolean;
24
- persistData: string;
25
- body: ({
23
+ body: {
24
+ type: string;
25
+ id: string;
26
+ className: string;
27
+ steps: ({
28
+ title: string;
29
+ body: ({
30
+ type: string;
31
+ id: string;
32
+ api: {
33
+ url: string;
34
+ method: string;
35
+ requestAdaptor: string;
36
+ adaptor: string;
37
+ };
38
+ body: {
39
+ type: string;
40
+ source: string;
41
+ className: string;
42
+ label: boolean;
43
+ needConfirm: boolean;
44
+ bordered: boolean;
45
+ title: boolean;
46
+ quickSaveItemApi: {
47
+ url: string;
48
+ method: string;
49
+ requestAdaptor: string;
50
+ adaptor: string;
51
+ };
52
+ columns: ({
53
+ label: string;
54
+ name: string;
55
+ width: number;
56
+ quickEdit: {
57
+ type: string;
58
+ mode: string;
59
+ id: string;
60
+ name: string;
61
+ saveImmediately: boolean;
62
+ value: boolean;
63
+ disabledOn: string;
64
+ };
65
+ } | {
66
+ label: string;
67
+ name: string;
68
+ quickEdit: boolean;
69
+ width?: undefined;
70
+ } | {
71
+ label: string;
72
+ name: string;
73
+ quickEdit: {
74
+ type: string;
75
+ mode: string;
76
+ id: string;
77
+ name: string;
78
+ saveImmediately: boolean;
79
+ value?: undefined;
80
+ disabledOn?: undefined;
81
+ };
82
+ width?: undefined;
83
+ })[];
84
+ }[];
85
+ } | {
86
+ type: string;
87
+ id: string;
88
+ tpl: string;
89
+ } | {
90
+ type: string;
91
+ tpl: string;
92
+ className: string;
93
+ })[];
94
+ actions: ({
95
+ type: string;
96
+ label: string;
97
+ level: string;
98
+ onEvent: {
99
+ click: {
100
+ actions: ({
101
+ componentId: string;
102
+ args: {};
103
+ actionType: string;
104
+ script: string;
105
+ } | {
106
+ actionType: string;
107
+ script: string;
108
+ componentId?: undefined;
109
+ args?: undefined;
110
+ } | {
111
+ actionType: string;
112
+ componentId: string;
113
+ args?: undefined;
114
+ script?: undefined;
115
+ })[];
116
+ };
117
+ };
118
+ className?: undefined;
119
+ } | {
120
+ type: string;
121
+ label: string;
122
+ className: string;
123
+ onEvent: {
124
+ click: {
125
+ actions: {
126
+ componentId: string;
127
+ args: {};
128
+ actionType: string;
129
+ }[];
130
+ };
131
+ };
132
+ level?: undefined;
133
+ })[];
134
+ } | {
135
+ title: string;
136
+ body: ({
137
+ type: string;
138
+ label: boolean;
139
+ name: string;
140
+ value: string;
141
+ options: {
142
+ label: string;
143
+ value: string;
144
+ }[];
145
+ id: string;
146
+ required: boolean;
147
+ inline: boolean;
148
+ onEvent: {
149
+ change: {
150
+ weight: number;
151
+ actions: ({
152
+ componentId: string;
153
+ args: {
154
+ value: {
155
+ new_judge: string;
156
+ next_step: any;
157
+ };
158
+ judge?: undefined;
159
+ };
160
+ actionType: string;
161
+ eventName?: undefined;
162
+ } | {
163
+ args: {
164
+ judge: string;
165
+ value?: undefined;
166
+ };
167
+ actionType: string;
168
+ eventName: string;
169
+ componentId?: undefined;
170
+ })[];
171
+ };
172
+ };
173
+ } | {
174
+ type: string;
175
+ columns: ({
176
+ body: {
177
+ type: string;
178
+ tpl: string;
179
+ inline: boolean;
180
+ wrapperComponent: string;
181
+ id: string;
182
+ }[];
183
+ id: string;
184
+ md: string;
185
+ xs: string;
186
+ valign: string;
187
+ columnClassName: string;
188
+ } | {
189
+ body: ({
190
+ type: string;
191
+ label: boolean;
192
+ name: string;
193
+ id: string;
194
+ multiple: boolean;
195
+ required: boolean;
196
+ className: string;
197
+ autoFill: {
198
+ new_next_step: string;
199
+ };
200
+ source: {
201
+ url: string;
202
+ headers: {
203
+ Authorization: string;
204
+ };
205
+ method: string;
206
+ messages: {};
207
+ requestAdaptor: string;
208
+ adaptor: string;
209
+ data: {
210
+ context: string;
211
+ $scopeId: string;
212
+ judge: string;
213
+ };
214
+ };
215
+ onEvent: {
216
+ change: {
217
+ weight: number;
218
+ actions: any[];
219
+ };
220
+ };
221
+ tpl?: undefined;
222
+ visibleOn?: undefined;
223
+ } | {
224
+ type: string;
225
+ tpl: string;
226
+ visibleOn: string;
227
+ label?: undefined;
228
+ name?: undefined;
229
+ id?: undefined;
230
+ multiple?: undefined;
231
+ required?: undefined;
232
+ className?: undefined;
233
+ autoFill?: undefined;
234
+ source?: undefined;
235
+ onEvent?: undefined;
236
+ })[];
237
+ id: string;
238
+ valign: string;
239
+ md?: undefined;
240
+ xs?: undefined;
241
+ columnClassName?: undefined;
242
+ })[];
243
+ id: string;
244
+ className: string;
245
+ subFormMode: string;
246
+ } | {
247
+ type: string;
248
+ columns: ({
249
+ body: {
250
+ type: string;
251
+ tpl: string;
252
+ inline: boolean;
253
+ wrapperComponent: string;
254
+ id: string;
255
+ }[];
256
+ id: string;
257
+ md: string;
258
+ xs: string;
259
+ valign: string;
260
+ columnClassName: string;
261
+ } | {
262
+ body: {
263
+ type: string;
264
+ id: string;
265
+ api: {
266
+ url: string;
267
+ method: string;
268
+ sendOn: string;
269
+ messages: {};
270
+ requestAdaptor: string;
271
+ adaptor: string;
272
+ };
273
+ body: ({
274
+ type: string;
275
+ multiple: boolean;
276
+ label: boolean;
277
+ name: string;
278
+ id: string;
279
+ hiddenOn: string;
280
+ readonly: string;
281
+ required: boolean;
282
+ className: string;
283
+ onEvent: {
284
+ change: {
285
+ weight: number;
286
+ actions: any[];
287
+ };
288
+ };
289
+ disabledOn?: undefined;
290
+ source?: undefined;
291
+ labelField?: undefined;
292
+ valueField?: undefined;
293
+ value?: undefined;
294
+ joinValues?: undefined;
295
+ extractValue?: undefined;
296
+ tpl?: undefined;
297
+ visibleOn?: undefined;
298
+ } | {
299
+ type: string;
300
+ label: boolean;
301
+ name: string;
302
+ id: string;
303
+ required: boolean;
304
+ hiddenOn: string;
305
+ multiple: boolean;
306
+ className: string;
307
+ disabledOn: string;
308
+ source: {
309
+ url: string;
310
+ method: string;
311
+ sendOn: string;
312
+ messages: {};
313
+ requestAdaptor: string;
314
+ adaptor: string;
315
+ data: {
316
+ "&": string;
317
+ $scopeId: string;
318
+ context: string;
319
+ next_step: string;
320
+ };
321
+ };
322
+ labelField: string;
323
+ valueField: string;
324
+ value: string;
325
+ joinValues: boolean;
326
+ extractValue: boolean;
327
+ onEvent: {
328
+ change: {
329
+ weight: number;
330
+ actions: any[];
331
+ };
332
+ };
333
+ readonly?: undefined;
334
+ tpl?: undefined;
335
+ visibleOn?: undefined;
336
+ } | {
337
+ type: string;
338
+ tpl: string;
339
+ visibleOn: string;
340
+ multiple?: undefined;
341
+ label?: undefined;
342
+ name?: undefined;
343
+ id?: undefined;
344
+ hiddenOn?: undefined;
345
+ readonly?: undefined;
346
+ required?: undefined;
347
+ className?: undefined;
348
+ onEvent?: undefined;
349
+ disabledOn?: undefined;
350
+ source?: undefined;
351
+ labelField?: undefined;
352
+ valueField?: undefined;
353
+ value?: undefined;
354
+ joinValues?: undefined;
355
+ extractValue?: undefined;
356
+ })[];
357
+ }[];
358
+ id: string;
359
+ valign: string;
360
+ md?: undefined;
361
+ xs?: undefined;
362
+ columnClassName?: undefined;
363
+ })[];
364
+ id: string;
365
+ className: string;
366
+ subFormMode: string;
367
+ hiddenOn: string;
368
+ } | {
369
+ type: string;
370
+ tpl: string;
371
+ className: string;
372
+ name?: undefined;
373
+ label?: undefined;
374
+ id?: undefined;
375
+ minRows?: undefined;
376
+ maxRows?: undefined;
377
+ placeholder?: undefined;
378
+ requiredOn?: undefined;
379
+ value?: undefined;
380
+ onEvent?: undefined;
381
+ } | {
382
+ type: string;
383
+ name: string;
384
+ tpl?: undefined;
385
+ className?: undefined;
386
+ label?: undefined;
387
+ id?: undefined;
388
+ minRows?: undefined;
389
+ maxRows?: undefined;
390
+ placeholder?: undefined;
391
+ requiredOn?: undefined;
392
+ value?: undefined;
393
+ onEvent?: undefined;
394
+ } | {
395
+ type: string;
396
+ label: boolean;
397
+ name: string;
398
+ id: string;
399
+ className: string;
400
+ minRows: number;
401
+ maxRows: number;
402
+ placeholder: string;
403
+ requiredOn: string;
404
+ value: any;
405
+ onEvent: {
406
+ blur: {
407
+ actions: {
408
+ componentId: string;
409
+ actionType: string;
410
+ args: {
411
+ value: {
412
+ instance_my_approve_description: string;
413
+ };
414
+ };
415
+ }[];
416
+ };
417
+ };
418
+ tpl?: undefined;
419
+ })[];
420
+ actions: ({
421
+ type: string;
422
+ label: string;
423
+ onEvent: {
424
+ click: {
425
+ actions: any[];
426
+ };
427
+ };
428
+ id: string;
429
+ className: string;
430
+ level: string;
431
+ } | {
432
+ type: string;
433
+ label: string;
434
+ className: string;
435
+ onEvent: {
436
+ click: {
437
+ actions: {
438
+ componentId: string;
439
+ args: {};
440
+ actionType: string;
441
+ }[];
442
+ };
443
+ };
444
+ id: string;
445
+ level?: undefined;
446
+ })[];
447
+ })[];
448
+ onEvent: {
449
+ change: {
450
+ actions: {
451
+ actionType: string;
452
+ componentId: string;
453
+ args: {
454
+ value: string;
455
+ };
456
+ }[];
457
+ };
458
+ };
459
+ }[] | ({
460
+ type: string;
461
+ id: string;
462
+ api: {
463
+ url: string;
464
+ method: string;
465
+ requestAdaptor: string;
466
+ adaptor: string;
467
+ };
468
+ body: {
469
+ type: string;
470
+ source: string;
471
+ className: string;
472
+ label: boolean;
473
+ needConfirm: boolean;
474
+ bordered: boolean;
475
+ title: boolean;
476
+ quickSaveItemApi: {
477
+ url: string;
478
+ method: string;
479
+ requestAdaptor: string;
480
+ adaptor: string;
481
+ };
482
+ columns: ({
483
+ label: string;
484
+ name: string;
485
+ width: number;
486
+ quickEdit: {
487
+ type: string;
488
+ mode: string;
489
+ id: string;
490
+ name: string;
491
+ saveImmediately: boolean;
492
+ value: boolean;
493
+ disabledOn: string;
494
+ };
495
+ } | {
496
+ label: string;
497
+ name: string;
498
+ quickEdit: boolean;
499
+ width?: undefined;
500
+ } | {
501
+ label: string;
502
+ name: string;
503
+ quickEdit: {
504
+ type: string;
505
+ mode: string;
506
+ id: string;
507
+ name: string;
508
+ saveImmediately: boolean;
509
+ value?: undefined;
510
+ disabledOn?: undefined;
511
+ };
512
+ width?: undefined;
513
+ })[];
514
+ }[];
515
+ } | {
516
+ type: string;
517
+ id: string;
518
+ tpl: string;
519
+ } | {
26
520
  type: string;
27
521
  label: boolean;
28
522
  name: string;
@@ -33,6 +527,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
33
527
  }[];
34
528
  id: string;
35
529
  required: boolean;
530
+ inline: boolean;
36
531
  onEvent: {
37
532
  change: {
38
533
  weight: number;
@@ -70,12 +565,13 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
70
565
  }[];
71
566
  id: string;
72
567
  md: string;
568
+ xs: string;
73
569
  valign: string;
74
570
  columnClassName: string;
75
571
  } | {
76
- body: {
572
+ body: ({
77
573
  type: string;
78
- label: string;
574
+ label: boolean;
79
575
  name: string;
80
576
  id: string;
81
577
  multiple: boolean;
@@ -105,10 +601,26 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
105
601
  actions: any[];
106
602
  };
107
603
  };
108
- }[];
604
+ tpl?: undefined;
605
+ visibleOn?: undefined;
606
+ } | {
607
+ type: string;
608
+ tpl: string;
609
+ visibleOn: string;
610
+ label?: undefined;
611
+ name?: undefined;
612
+ id?: undefined;
613
+ multiple?: undefined;
614
+ required?: undefined;
615
+ className?: undefined;
616
+ autoFill?: undefined;
617
+ source?: undefined;
618
+ onEvent?: undefined;
619
+ })[];
109
620
  id: string;
110
621
  valign: string;
111
622
  md?: undefined;
623
+ xs?: undefined;
112
624
  columnClassName?: undefined;
113
625
  })[];
114
626
  id: string;
@@ -126,11 +638,13 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
126
638
  }[];
127
639
  id: string;
128
640
  md: string;
641
+ xs: string;
129
642
  valign: string;
130
643
  columnClassName: string;
131
644
  } | {
132
- body: ({
645
+ body: {
133
646
  type: string;
647
+ id: string;
134
648
  api: {
135
649
  url: string;
136
650
  method: string;
@@ -141,10 +655,12 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
141
655
  };
142
656
  body: ({
143
657
  type: string;
144
- label: string;
658
+ multiple: boolean;
659
+ label: boolean;
145
660
  name: string;
146
661
  id: string;
147
662
  hiddenOn: string;
663
+ readonly: string;
148
664
  required: boolean;
149
665
  className: string;
150
666
  onEvent: {
@@ -153,77 +669,79 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
153
669
  actions: any[];
154
670
  };
155
671
  };
156
- multiple?: undefined;
672
+ disabledOn?: undefined;
673
+ source?: undefined;
674
+ labelField?: undefined;
675
+ valueField?: undefined;
676
+ value?: undefined;
677
+ joinValues?: undefined;
678
+ extractValue?: undefined;
679
+ tpl?: undefined;
680
+ visibleOn?: undefined;
157
681
  } | {
158
682
  type: string;
159
- label: string;
683
+ label: boolean;
160
684
  name: string;
161
685
  id: string;
162
- hiddenOn: string;
163
686
  required: boolean;
687
+ hiddenOn: string;
164
688
  multiple: boolean;
165
689
  className: string;
690
+ disabledOn: string;
691
+ source: {
692
+ url: string;
693
+ method: string;
694
+ sendOn: string;
695
+ messages: {};
696
+ requestAdaptor: string;
697
+ adaptor: string;
698
+ data: {
699
+ "&": string;
700
+ $scopeId: string;
701
+ context: string;
702
+ next_step: string;
703
+ };
704
+ };
705
+ labelField: string;
706
+ valueField: string;
707
+ value: string;
708
+ joinValues: boolean;
709
+ extractValue: boolean;
166
710
  onEvent: {
167
711
  change: {
168
712
  weight: number;
169
713
  actions: any[];
170
714
  };
171
715
  };
716
+ readonly?: undefined;
717
+ tpl?: undefined;
718
+ visibleOn?: undefined;
719
+ } | {
720
+ type: string;
721
+ tpl: string;
722
+ visibleOn: string;
723
+ multiple?: undefined;
724
+ label?: undefined;
725
+ name?: undefined;
726
+ id?: undefined;
727
+ hiddenOn?: undefined;
728
+ readonly?: undefined;
729
+ required?: undefined;
730
+ className?: undefined;
731
+ onEvent?: undefined;
732
+ disabledOn?: undefined;
733
+ source?: undefined;
734
+ labelField?: undefined;
735
+ valueField?: undefined;
736
+ value?: undefined;
737
+ joinValues?: undefined;
738
+ extractValue?: undefined;
172
739
  })[];
173
- label?: undefined;
174
- name?: undefined;
175
- id?: undefined;
176
- required?: undefined;
177
- hiddenOn?: undefined;
178
- multiple?: undefined;
179
- className?: undefined;
180
- source?: undefined;
181
- labelField?: undefined;
182
- valueField?: undefined;
183
- value?: undefined;
184
- joinValues?: undefined;
185
- extractValue?: undefined;
186
- onEvent?: undefined;
187
- } | {
188
- type: string;
189
- label: string;
190
- name: string;
191
- id: string;
192
- required: boolean;
193
- hiddenOn: string;
194
- multiple: boolean;
195
- className: string;
196
- source: {
197
- url: string;
198
- method: string;
199
- sendOn: string;
200
- messages: {};
201
- requestAdaptor: string;
202
- adaptor: string;
203
- data: {
204
- "&": string;
205
- $scopeId: string;
206
- context: string;
207
- next_step: string;
208
- };
209
- };
210
- labelField: string;
211
- valueField: string;
212
- value: string;
213
- joinValues: boolean;
214
- extractValue: boolean;
215
- onEvent: {
216
- change: {
217
- weight: number;
218
- actions: any[];
219
- };
220
- };
221
- api?: undefined;
222
- body?: undefined;
223
- })[];
740
+ }[];
224
741
  id: string;
225
742
  valign: string;
226
743
  md?: undefined;
744
+ xs?: undefined;
227
745
  columnClassName?: undefined;
228
746
  })[];
229
747
  id: string;
@@ -235,6 +753,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
235
753
  name: string;
236
754
  label?: undefined;
237
755
  id?: undefined;
756
+ className?: undefined;
238
757
  minRows?: undefined;
239
758
  maxRows?: undefined;
240
759
  placeholder?: undefined;
@@ -246,6 +765,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
246
765
  label: boolean;
247
766
  name: string;
248
767
  id: string;
768
+ className: string;
249
769
  minRows: number;
250
770
  maxRows: number;
251
771
  placeholder: string;
@@ -273,6 +793,9 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
273
793
  args: {};
274
794
  }[];
275
795
  };
796
+ next_step_auto_selected: {
797
+ actions: any[];
798
+ };
276
799
  inited: {
277
800
  actions: any[];
278
801
  };
@@ -280,7 +803,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
280
803
  }[];
281
804
  id: string;
282
805
  position: string;
283
- actions: ({
806
+ actions: boolean | ({
284
807
  type: string;
285
808
  label: string;
286
809
  onEvent: {
@@ -294,6 +817,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
294
817
  } | {
295
818
  type: string;
296
819
  label: string;
820
+ className: string;
297
821
  onEvent: {
298
822
  click: {
299
823
  actions: {
@@ -304,7 +828,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
304
828
  };
305
829
  };
306
830
  id: string;
307
- className?: undefined;
308
831
  level?: undefined;
309
832
  })[];
310
833
  }>;