@steedos-widgets/amis-lib 6.10.52-beta.3 → 6.10.52-beta.31

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,498 @@ 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
+ onEvent: {
148
+ change: {
149
+ weight: number;
150
+ actions: ({
151
+ componentId: string;
152
+ args: {
153
+ value: {
154
+ new_judge: string;
155
+ next_step: any;
156
+ };
157
+ judge?: undefined;
158
+ };
159
+ actionType: string;
160
+ eventName?: undefined;
161
+ } | {
162
+ args: {
163
+ judge: string;
164
+ value?: undefined;
165
+ };
166
+ actionType: string;
167
+ eventName: string;
168
+ componentId?: undefined;
169
+ })[];
170
+ };
171
+ };
172
+ } | {
173
+ type: string;
174
+ columns: ({
175
+ body: {
176
+ type: string;
177
+ tpl: string;
178
+ inline: boolean;
179
+ wrapperComponent: string;
180
+ id: string;
181
+ }[];
182
+ id: string;
183
+ md: string;
184
+ valign: string;
185
+ columnClassName: string;
186
+ } | {
187
+ body: ({
188
+ type: string;
189
+ label: boolean;
190
+ name: string;
191
+ id: string;
192
+ multiple: boolean;
193
+ required: boolean;
194
+ className: string;
195
+ autoFill: {
196
+ new_next_step: string;
197
+ };
198
+ source: {
199
+ url: string;
200
+ headers: {
201
+ Authorization: string;
202
+ };
203
+ method: string;
204
+ messages: {};
205
+ requestAdaptor: string;
206
+ adaptor: string;
207
+ data: {
208
+ context: string;
209
+ $scopeId: string;
210
+ judge: string;
211
+ };
212
+ };
213
+ onEvent: {
214
+ change: {
215
+ weight: number;
216
+ actions: any[];
217
+ };
218
+ };
219
+ tpl?: undefined;
220
+ visibleOn?: undefined;
221
+ } | {
222
+ type: string;
223
+ tpl: string;
224
+ visibleOn: string;
225
+ label?: undefined;
226
+ name?: undefined;
227
+ id?: undefined;
228
+ multiple?: undefined;
229
+ required?: undefined;
230
+ className?: undefined;
231
+ autoFill?: undefined;
232
+ source?: undefined;
233
+ onEvent?: undefined;
234
+ })[];
235
+ id: string;
236
+ valign: string;
237
+ md?: undefined;
238
+ columnClassName?: undefined;
239
+ })[];
240
+ id: string;
241
+ className: string;
242
+ subFormMode: string;
243
+ } | {
244
+ type: string;
245
+ columns: ({
246
+ body: {
247
+ type: string;
248
+ tpl: string;
249
+ inline: boolean;
250
+ wrapperComponent: string;
251
+ id: string;
252
+ }[];
253
+ id: string;
254
+ md: string;
255
+ valign: string;
256
+ columnClassName: string;
257
+ } | {
258
+ body: {
259
+ type: string;
260
+ id: string;
261
+ api: {
262
+ url: string;
263
+ method: string;
264
+ sendOn: string;
265
+ messages: {};
266
+ requestAdaptor: string;
267
+ adaptor: string;
268
+ };
269
+ body: ({
270
+ type: string;
271
+ multiple: boolean;
272
+ label: boolean;
273
+ name: string;
274
+ id: string;
275
+ hiddenOn: string;
276
+ readonly: string;
277
+ required: boolean;
278
+ className: string;
279
+ onEvent: {
280
+ change: {
281
+ weight: number;
282
+ actions: any[];
283
+ };
284
+ };
285
+ disabledOn?: undefined;
286
+ source?: undefined;
287
+ labelField?: undefined;
288
+ valueField?: undefined;
289
+ value?: undefined;
290
+ joinValues?: undefined;
291
+ extractValue?: undefined;
292
+ tpl?: undefined;
293
+ visibleOn?: undefined;
294
+ } | {
295
+ type: string;
296
+ label: boolean;
297
+ name: string;
298
+ id: string;
299
+ required: boolean;
300
+ hiddenOn: string;
301
+ multiple: boolean;
302
+ className: string;
303
+ disabledOn: string;
304
+ source: {
305
+ url: string;
306
+ method: string;
307
+ sendOn: string;
308
+ messages: {};
309
+ requestAdaptor: string;
310
+ adaptor: string;
311
+ data: {
312
+ "&": string;
313
+ $scopeId: string;
314
+ context: string;
315
+ next_step: string;
316
+ };
317
+ };
318
+ labelField: string;
319
+ valueField: string;
320
+ value: string;
321
+ joinValues: boolean;
322
+ extractValue: boolean;
323
+ onEvent: {
324
+ change: {
325
+ weight: number;
326
+ actions: any[];
327
+ };
328
+ };
329
+ readonly?: undefined;
330
+ tpl?: undefined;
331
+ visibleOn?: undefined;
332
+ } | {
333
+ type: string;
334
+ tpl: string;
335
+ visibleOn: string;
336
+ multiple?: undefined;
337
+ label?: undefined;
338
+ name?: undefined;
339
+ id?: undefined;
340
+ hiddenOn?: undefined;
341
+ readonly?: undefined;
342
+ required?: undefined;
343
+ className?: undefined;
344
+ onEvent?: undefined;
345
+ disabledOn?: undefined;
346
+ source?: undefined;
347
+ labelField?: undefined;
348
+ valueField?: undefined;
349
+ value?: undefined;
350
+ joinValues?: undefined;
351
+ extractValue?: undefined;
352
+ })[];
353
+ }[];
354
+ id: string;
355
+ valign: string;
356
+ md?: undefined;
357
+ columnClassName?: undefined;
358
+ })[];
359
+ id: string;
360
+ className: string;
361
+ subFormMode: string;
362
+ hiddenOn: string;
363
+ } | {
364
+ type: string;
365
+ tpl: string;
366
+ className: string;
367
+ name?: undefined;
368
+ label?: undefined;
369
+ id?: undefined;
370
+ minRows?: undefined;
371
+ maxRows?: undefined;
372
+ placeholder?: undefined;
373
+ requiredOn?: undefined;
374
+ value?: undefined;
375
+ onEvent?: undefined;
376
+ } | {
377
+ type: string;
378
+ name: string;
379
+ tpl?: undefined;
380
+ className?: undefined;
381
+ label?: undefined;
382
+ id?: undefined;
383
+ minRows?: undefined;
384
+ maxRows?: undefined;
385
+ placeholder?: undefined;
386
+ requiredOn?: undefined;
387
+ value?: undefined;
388
+ onEvent?: undefined;
389
+ } | {
390
+ type: string;
391
+ label: boolean;
392
+ name: string;
393
+ id: string;
394
+ minRows: number;
395
+ maxRows: number;
396
+ placeholder: string;
397
+ requiredOn: string;
398
+ value: any;
399
+ onEvent: {
400
+ blur: {
401
+ actions: {
402
+ componentId: string;
403
+ actionType: string;
404
+ args: {
405
+ value: {
406
+ instance_my_approve_description: string;
407
+ };
408
+ };
409
+ }[];
410
+ };
411
+ };
412
+ tpl?: undefined;
413
+ className?: undefined;
414
+ })[];
415
+ actions: ({
416
+ type: string;
417
+ label: string;
418
+ onEvent: {
419
+ click: {
420
+ actions: any[];
421
+ };
422
+ };
423
+ id: string;
424
+ className: string;
425
+ level: string;
426
+ } | {
427
+ type: string;
428
+ label: string;
429
+ className: string;
430
+ onEvent: {
431
+ click: {
432
+ actions: {
433
+ componentId: string;
434
+ args: {};
435
+ actionType: string;
436
+ }[];
437
+ };
438
+ };
439
+ id: string;
440
+ level?: undefined;
441
+ })[];
442
+ })[];
443
+ onEvent: {
444
+ change: {
445
+ actions: {
446
+ actionType: string;
447
+ componentId: string;
448
+ args: {
449
+ value: string;
450
+ };
451
+ }[];
452
+ };
453
+ };
454
+ }[] | ({
455
+ type: string;
456
+ id: string;
457
+ api: {
458
+ url: string;
459
+ method: string;
460
+ requestAdaptor: string;
461
+ adaptor: string;
462
+ };
463
+ body: {
464
+ type: string;
465
+ source: string;
466
+ className: string;
467
+ label: boolean;
468
+ needConfirm: boolean;
469
+ bordered: boolean;
470
+ title: boolean;
471
+ quickSaveItemApi: {
472
+ url: string;
473
+ method: string;
474
+ requestAdaptor: string;
475
+ adaptor: string;
476
+ };
477
+ columns: ({
478
+ label: string;
479
+ name: string;
480
+ width: number;
481
+ quickEdit: {
482
+ type: string;
483
+ mode: string;
484
+ id: string;
485
+ name: string;
486
+ saveImmediately: boolean;
487
+ value: boolean;
488
+ disabledOn: string;
489
+ };
490
+ } | {
491
+ label: string;
492
+ name: string;
493
+ quickEdit: boolean;
494
+ width?: undefined;
495
+ } | {
496
+ label: string;
497
+ name: string;
498
+ quickEdit: {
499
+ type: string;
500
+ mode: string;
501
+ id: string;
502
+ name: string;
503
+ saveImmediately: boolean;
504
+ value?: undefined;
505
+ disabledOn?: undefined;
506
+ };
507
+ width?: undefined;
508
+ })[];
509
+ }[];
510
+ } | {
511
+ type: string;
512
+ id: string;
513
+ tpl: string;
514
+ } | {
26
515
  type: string;
27
516
  label: boolean;
28
517
  name: string;
@@ -71,14 +560,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
71
560
  id: string;
72
561
  md: string;
73
562
  valign: string;
563
+ columnClassName: string;
74
564
  } | {
75
- body: {
565
+ body: ({
76
566
  type: string;
77
- label: string;
567
+ label: boolean;
78
568
  name: string;
79
569
  id: string;
80
570
  multiple: boolean;
81
571
  required: boolean;
572
+ className: string;
82
573
  autoFill: {
83
574
  new_next_step: string;
84
575
  };
@@ -103,10 +594,26 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
103
594
  actions: any[];
104
595
  };
105
596
  };
106
- }[];
597
+ tpl?: undefined;
598
+ visibleOn?: undefined;
599
+ } | {
600
+ type: string;
601
+ tpl: string;
602
+ visibleOn: string;
603
+ label?: undefined;
604
+ name?: undefined;
605
+ id?: undefined;
606
+ multiple?: undefined;
607
+ required?: undefined;
608
+ className?: undefined;
609
+ autoFill?: undefined;
610
+ source?: undefined;
611
+ onEvent?: undefined;
612
+ })[];
107
613
  id: string;
614
+ valign: string;
108
615
  md?: undefined;
109
- valign?: undefined;
616
+ columnClassName?: undefined;
110
617
  })[];
111
618
  id: string;
112
619
  className: string;
@@ -124,9 +631,11 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
124
631
  id: string;
125
632
  md: string;
126
633
  valign: string;
634
+ columnClassName: string;
127
635
  } | {
128
- body: ({
636
+ body: {
129
637
  type: string;
638
+ id: string;
130
639
  api: {
131
640
  url: string;
132
641
  method: string;
@@ -137,85 +646,93 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
137
646
  };
138
647
  body: ({
139
648
  type: string;
140
- label: string;
649
+ multiple: boolean;
650
+ label: boolean;
141
651
  name: string;
142
652
  id: string;
143
653
  hiddenOn: string;
654
+ readonly: string;
144
655
  required: boolean;
656
+ className: string;
145
657
  onEvent: {
146
658
  change: {
147
659
  weight: number;
148
660
  actions: any[];
149
661
  };
150
662
  };
151
- multiple?: undefined;
663
+ disabledOn?: undefined;
664
+ source?: undefined;
665
+ labelField?: undefined;
666
+ valueField?: undefined;
667
+ value?: undefined;
668
+ joinValues?: undefined;
669
+ extractValue?: undefined;
670
+ tpl?: undefined;
671
+ visibleOn?: undefined;
152
672
  } | {
153
673
  type: string;
154
- label: string;
674
+ label: boolean;
155
675
  name: string;
156
676
  id: string;
157
- hiddenOn: string;
158
677
  required: boolean;
678
+ hiddenOn: string;
159
679
  multiple: boolean;
680
+ className: string;
681
+ disabledOn: string;
682
+ source: {
683
+ url: string;
684
+ method: string;
685
+ sendOn: string;
686
+ messages: {};
687
+ requestAdaptor: string;
688
+ adaptor: string;
689
+ data: {
690
+ "&": string;
691
+ $scopeId: string;
692
+ context: string;
693
+ next_step: string;
694
+ };
695
+ };
696
+ labelField: string;
697
+ valueField: string;
698
+ value: string;
699
+ joinValues: boolean;
700
+ extractValue: boolean;
160
701
  onEvent: {
161
702
  change: {
162
703
  weight: number;
163
704
  actions: any[];
164
705
  };
165
706
  };
707
+ readonly?: undefined;
708
+ tpl?: undefined;
709
+ visibleOn?: undefined;
710
+ } | {
711
+ type: string;
712
+ tpl: string;
713
+ visibleOn: string;
714
+ multiple?: undefined;
715
+ label?: undefined;
716
+ name?: undefined;
717
+ id?: undefined;
718
+ hiddenOn?: undefined;
719
+ readonly?: undefined;
720
+ required?: undefined;
721
+ className?: undefined;
722
+ onEvent?: undefined;
723
+ disabledOn?: undefined;
724
+ source?: undefined;
725
+ labelField?: undefined;
726
+ valueField?: undefined;
727
+ value?: undefined;
728
+ joinValues?: undefined;
729
+ extractValue?: undefined;
166
730
  })[];
167
- label?: undefined;
168
- name?: undefined;
169
- id?: undefined;
170
- required?: undefined;
171
- hiddenOn?: undefined;
172
- multiple?: undefined;
173
- source?: undefined;
174
- labelField?: undefined;
175
- valueField?: undefined;
176
- value?: undefined;
177
- joinValues?: undefined;
178
- extractValue?: undefined;
179
- onEvent?: undefined;
180
- } | {
181
- type: string;
182
- label: string;
183
- name: string;
184
- id: string;
185
- required: boolean;
186
- hiddenOn: string;
187
- multiple: boolean;
188
- source: {
189
- url: string;
190
- method: string;
191
- sendOn: string;
192
- messages: {};
193
- requestAdaptor: string;
194
- adaptor: string;
195
- data: {
196
- "&": string;
197
- $scopeId: string;
198
- context: string;
199
- next_step: string;
200
- };
201
- };
202
- labelField: string;
203
- valueField: string;
204
- value: string;
205
- joinValues: boolean;
206
- extractValue: boolean;
207
- onEvent: {
208
- change: {
209
- weight: number;
210
- actions: any[];
211
- };
212
- };
213
- api?: undefined;
214
- body?: undefined;
215
- })[];
731
+ }[];
216
732
  id: string;
733
+ valign: string;
217
734
  md?: undefined;
218
- valign?: undefined;
735
+ columnClassName?: undefined;
219
736
  })[];
220
737
  id: string;
221
738
  className: string;
@@ -264,6 +781,9 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
264
781
  args: {};
265
782
  }[];
266
783
  };
784
+ next_step_auto_selected: {
785
+ actions: any[];
786
+ };
267
787
  inited: {
268
788
  actions: any[];
269
789
  };
@@ -271,7 +791,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
271
791
  }[];
272
792
  id: string;
273
793
  position: string;
274
- actions: ({
794
+ actions: boolean | ({
275
795
  type: string;
276
796
  label: string;
277
797
  onEvent: {
@@ -285,6 +805,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
285
805
  } | {
286
806
  type: string;
287
807
  label: string;
808
+ className: string;
288
809
  onEvent: {
289
810
  click: {
290
811
  actions: {
@@ -295,7 +816,6 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
295
816
  };
296
817
  };
297
818
  id: string;
298
- className?: undefined;
299
819
  level?: undefined;
300
820
  })[];
301
821
  }>;