@steedos-widgets/amis-lib 6.10.36 → 6.10.38

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.
@@ -5,7 +5,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
5
5
  closeOnEsc: boolean;
6
6
  closeOnOutside: boolean;
7
7
  size: string;
8
- title: string;
8
+ title: any;
9
9
  className: string;
10
10
  headerClassName: string;
11
11
  bodyClassName: string;
@@ -1,5 +1,5 @@
1
1
  export function checkInstanceFlowVersion(instance: any): Promise<boolean>;
2
- export function getFlowFormSchema(instance: any, box: any): Promise<{
2
+ export function getFlowFormSchema(instance: any, box: any, print: any): Promise<{
3
3
  type: string;
4
4
  name: string;
5
5
  className: string;
@@ -56,685 +56,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
56
56
  };
57
57
  body: {
58
58
  type: string;
59
- body: ({
60
- type: string;
61
- className: string;
62
- headerClassName: string;
63
- bodyClassName: string;
64
- title: ({
65
- type: string;
66
- tpl: string;
67
- title?: undefined;
68
- body?: undefined;
69
- id?: undefined;
70
- wrapWithPanel?: undefined;
71
- } | {
72
- type: string;
73
- title: string;
74
- body: {
75
- type: string;
76
- labelClassName: string;
77
- className: string;
78
- label: string;
79
- mode: string;
80
- name: string;
81
- id: string;
82
- btnLabel: string;
83
- btnClassName: string;
84
- multiple: boolean;
85
- maxLength: number;
86
- submitType: string;
87
- uploadType: string;
88
- proxy: boolean;
89
- drag: boolean;
90
- autoUpload: boolean;
91
- useChunk: boolean;
92
- joinValues: boolean;
93
- extractValue: boolean;
94
- valueField: string;
95
- receiver: {
96
- url: string;
97
- headers: {
98
- Authorization: string;
99
- };
100
- method: string;
101
- messages: {};
102
- dataType: string;
103
- requestAdaptor: string;
104
- };
105
- onEvent: {
106
- success: {
107
- weight: number;
108
- actions: ({
109
- componentId: string;
110
- args: {
111
- msgType?: undefined;
112
- position?: undefined;
113
- closeButton?: undefined;
114
- showIcon?: undefined;
115
- msg?: undefined;
116
- };
117
- actionType: string;
118
- } | {
119
- componentId: string;
120
- args: {
121
- msgType: string;
122
- position: string;
123
- closeButton: boolean;
124
- showIcon: boolean;
125
- msg: string;
126
- };
127
- actionType: string;
128
- })[];
129
- };
130
- };
131
- }[];
132
- id: string;
133
- wrapWithPanel: boolean;
134
- tpl?: undefined;
135
- })[];
136
- body: {
137
- type: string;
138
- id: string;
139
- api: {
140
- method: string;
141
- url: string;
142
- dataType: string;
143
- headers: {
144
- Authorization: string;
145
- };
146
- requestAdaptor: string;
147
- };
148
- body: {
149
- type: string;
150
- source: string;
151
- title: boolean;
152
- listItem: {
153
- body: {
154
- type: string;
155
- inline: boolean;
156
- tpl: string;
157
- }[];
158
- actions: any[];
159
- id: string;
160
- };
161
- id: string;
162
- }[];
163
- }[];
164
- } | {
165
- type: string;
166
- tpl: string;
167
- }[] | {
168
- type: string;
169
- name: string;
170
- source: string;
171
- title: string;
172
- listItem: {
173
- body: {
174
- type: string;
175
- inline: boolean;
176
- tpl: string;
177
- }[];
178
- actions: any[];
179
- id: string;
180
- };
181
- id: string;
182
- } | {
183
- type: string;
184
- headerClassName: string;
185
- title: string;
186
- source: string;
187
- className: string;
188
- columnsTogglable: boolean;
189
- footable: {
190
- expand: string;
191
- };
192
- columns: ({
193
- name: string;
194
- label: string;
195
- type?: undefined;
196
- tpl?: undefined;
197
- classNameExpr?: undefined;
198
- } | {
199
- name: string;
200
- label: string;
201
- type: string;
202
- tpl: string;
203
- classNameExpr?: undefined;
204
- } | {
205
- name: string;
206
- label: string;
207
- classNameExpr: string;
208
- type?: undefined;
209
- tpl?: undefined;
210
- })[];
211
- } | {
212
- type: string;
213
- id: string;
214
- api: {
215
- url: string;
216
- method: string;
217
- requestAdaptor: string;
218
- adaptor: string;
219
- };
220
- body: {
221
- type: string;
222
- source: string;
223
- className: string;
224
- label: boolean;
225
- needConfirm: boolean;
226
- bordered: boolean;
227
- title: string;
228
- quickSaveItemApi: {
229
- url: string;
230
- method: string;
231
- requestAdaptor: string;
232
- adaptor: string;
233
- };
234
- columns: ({
235
- label: string;
236
- name: string;
237
- width: number;
238
- quickEdit: {
239
- type: string;
240
- mode: string;
241
- id: string;
242
- name: string;
243
- saveImmediately: boolean;
244
- value: boolean;
245
- disabledOn: string;
246
- };
247
- } | {
248
- label: string;
249
- name: string;
250
- quickEdit: boolean;
251
- width?: undefined;
252
- } | {
253
- label: string;
254
- name: string;
255
- quickEdit: {
256
- type: string;
257
- mode: string;
258
- id: string;
259
- name: string;
260
- saveImmediately: boolean;
261
- value?: undefined;
262
- disabledOn?: undefined;
263
- };
264
- width?: undefined;
265
- })[];
266
- }[];
267
- } | {
268
- type: string;
269
- id: string;
270
- tpl: string;
271
- } | {
272
- type: string;
273
- label: string;
274
- onEvent: {
275
- click: {
276
- actions: ({
277
- componentId: string;
278
- args: {
279
- time?: undefined;
280
- };
281
- actionType: string;
282
- drawer: {
283
- type: string;
284
- overlay: boolean;
285
- resizable: boolean;
286
- closeOnEsc: boolean;
287
- closeOnOutside: boolean;
288
- size: string;
289
- title: string;
290
- className: string;
291
- headerClassName: string;
292
- bodyClassName: string;
293
- footerClassName: string;
294
- drawerContainer: () => Element;
295
- body: {
296
- type: string;
297
- initApi: {
298
- method: string;
299
- url: string;
300
- };
301
- debug: boolean;
302
- id: string;
303
- resetAfterSubmit: boolean;
304
- clearPersistDataAfterSubmit: boolean;
305
- persistData: string;
306
- body: ({
307
- type: string;
308
- label: boolean;
309
- name: string;
310
- value: string;
311
- options: {
312
- label: string;
313
- value: string;
314
- }[];
315
- id: string;
316
- required: boolean;
317
- onEvent: {
318
- change: {
319
- weight: number;
320
- actions: ({
321
- componentId: string;
322
- args: {
323
- value: {
324
- new_judge: string;
325
- next_step: any;
326
- };
327
- judge?: undefined;
328
- };
329
- actionType: string;
330
- eventName?: undefined;
331
- } | {
332
- args: {
333
- judge: string;
334
- value?: undefined;
335
- };
336
- actionType: string;
337
- eventName: string;
338
- componentId?: undefined;
339
- })[];
340
- };
341
- };
342
- } | {
343
- type: string;
344
- columns: ({
345
- body: {
346
- type: string;
347
- tpl: string;
348
- inline: boolean;
349
- wrapperComponent: string;
350
- id: string;
351
- }[];
352
- id: string;
353
- md: string;
354
- valign: string;
355
- } | {
356
- body: {
357
- type: string;
358
- label: string;
359
- name: string;
360
- id: string;
361
- multiple: boolean;
362
- required: boolean;
363
- autoFill: {
364
- new_next_step: string;
365
- };
366
- source: {
367
- url: string;
368
- headers: {
369
- Authorization: string;
370
- };
371
- method: string;
372
- messages: {};
373
- requestAdaptor: string;
374
- adaptor: string;
375
- data: {
376
- context: string;
377
- $scopeId: string;
378
- judge: string;
379
- };
380
- };
381
- onEvent: {
382
- change: {
383
- weight: number;
384
- actions: any[];
385
- };
386
- };
387
- }[];
388
- id: string;
389
- md?: undefined;
390
- valign?: undefined;
391
- })[];
392
- id: string;
393
- className: string;
394
- subFormMode: string;
395
- } | {
396
- type: string;
397
- columns: ({
398
- body: {
399
- type: string;
400
- tpl: string;
401
- inline: boolean;
402
- wrapperComponent: string;
403
- id: string;
404
- }[];
405
- id: string;
406
- md: string;
407
- valign: string;
408
- } | {
409
- body: ({
410
- type: string;
411
- label: string;
412
- name: string;
413
- id: string;
414
- hiddenOn: string;
415
- required: boolean;
416
- onEvent: {
417
- change: {
418
- weight: number;
419
- actions: any[];
420
- };
421
- };
422
- multiple?: undefined;
423
- source?: undefined;
424
- labelField?: undefined;
425
- valueField?: undefined;
426
- value?: undefined;
427
- joinValues?: undefined;
428
- extractValue?: undefined;
429
- } | {
430
- type: string;
431
- label: string;
432
- name: string;
433
- id: string;
434
- hiddenOn: string;
435
- required: boolean;
436
- multiple: boolean;
437
- onEvent: {
438
- change: {
439
- weight: number;
440
- actions: any[];
441
- };
442
- };
443
- source?: undefined;
444
- labelField?: undefined;
445
- valueField?: undefined;
446
- value?: undefined;
447
- joinValues?: undefined;
448
- extractValue?: undefined;
449
- } | {
450
- type: string;
451
- label: string;
452
- name: string;
453
- id: string;
454
- required: boolean;
455
- hiddenOn: string;
456
- multiple: boolean;
457
- source: {
458
- url: string;
459
- method: string;
460
- sendOn: string;
461
- headers: {
462
- Authorization: string;
463
- };
464
- messages: {};
465
- requestAdaptor: string;
466
- adaptor: string;
467
- data: {
468
- "&": string;
469
- $scopeId: string;
470
- context: string;
471
- next_step: string;
472
- };
473
- };
474
- labelField: string;
475
- valueField: string;
476
- value: string;
477
- joinValues: boolean;
478
- extractValue: boolean;
479
- onEvent: {
480
- change: {
481
- weight: number;
482
- actions: any[];
483
- };
484
- };
485
- })[];
486
- id: string;
487
- md?: undefined;
488
- valign?: undefined;
489
- })[];
490
- id: string;
491
- className: string;
492
- subFormMode: string;
493
- hiddenOn: string;
494
- } | {
495
- type: string;
496
- name: string;
497
- label?: undefined;
498
- id?: undefined;
499
- minRows?: undefined;
500
- maxRows?: undefined;
501
- placeholder?: undefined;
502
- requiredOn?: undefined;
503
- value?: undefined;
504
- onEvent?: undefined;
505
- } | {
506
- type: string;
507
- label: boolean;
508
- name: string;
509
- id: string;
510
- minRows: number;
511
- maxRows: number;
512
- placeholder: string;
513
- requiredOn: string;
514
- value: any;
515
- onEvent: {
516
- blur: {
517
- actions: {
518
- componentId: string;
519
- actionType: string;
520
- args: {
521
- value: {
522
- instance_my_approve_description: string;
523
- };
524
- };
525
- }[];
526
- };
527
- };
528
- })[];
529
- onEvent: {
530
- approve_judge_change: {
531
- actions: {
532
- actionType: string;
533
- componentId: string;
534
- args: {};
535
- }[];
536
- };
537
- inited: {
538
- actions: any[];
539
- };
540
- };
541
- }[];
542
- id: string;
543
- position: string;
544
- onEvent: {
545
- cancel: {
546
- actions: {
547
- actionType: string;
548
- script: (context: any, doAction: any, event: any) => void;
549
- }[];
550
- };
551
- };
552
- actions: ({
553
- type: string;
554
- label: string;
555
- onEvent: {
556
- click: {
557
- actions: any[];
558
- };
559
- };
560
- id: string;
561
- level: string;
562
- } | {
563
- type: string;
564
- label: string;
565
- onEvent: {
566
- click: {
567
- actions: {
568
- componentId: string;
569
- args: {};
570
- actionType: string;
571
- }[];
572
- };
573
- };
574
- id: string;
575
- level?: undefined;
576
- })[];
577
- };
578
- script?: undefined;
579
- } | {
580
- actionType: string;
581
- args: {
582
- time: number;
583
- };
584
- componentId?: undefined;
585
- drawer?: undefined;
586
- script?: undefined;
587
- } | {
588
- actionType: string;
589
- script: (context: any, doAction: any, event: any) => void;
590
- componentId?: undefined;
591
- args?: undefined;
592
- drawer?: undefined;
593
- })[];
594
- };
595
- };
596
- id: string;
597
- level: string;
598
- className: {
599
- "approve-button w-14 h-14 rounded-full fixed bottom-4 right-4 shadow-lg text-white text-base text-center font-semibold bg-blue-500 p-0": boolean;
600
- hidden: boolean;
601
- };
602
- } | {
603
- type: string;
604
- debug: boolean;
605
- wrapWithPanel: boolean;
606
- resetAfterSubmit: boolean;
607
- body: ({
608
- type: string;
609
- className: string;
610
- trs: {
611
- background: string;
612
- tds: ({
613
- background: string;
614
- colspan: number;
615
- align: string;
616
- className: string;
617
- width: string;
618
- body: {
619
- label: any;
620
- name: any;
621
- mode: string;
622
- className: string;
623
- }[];
624
- style: {
625
- marginTop: string;
626
- paddingTop: string;
627
- paddingRight: string;
628
- paddingBottom: string;
629
- paddingLeft: string;
630
- marginRight: string;
631
- marginBottom: string;
632
- marginLeft: string;
633
- borderLeftColor: string;
634
- borderTopColor: string;
635
- borderRightColor: string;
636
- borderBottomColor: string;
637
- };
638
- } | {
639
- className: string;
640
- align: string;
641
- width: string;
642
- colspan: string | number;
643
- background: string;
644
- body: {
645
- type: string;
646
- tpl: string;
647
- className: string | {
648
- 'steedos-field-required': string;
649
- };
650
- }[];
651
- style: {
652
- borderLeftColor: string;
653
- borderTopColor: string;
654
- borderRightColor: string;
655
- borderBottomColor: string;
656
- };
657
- })[];
658
- }[];
659
- id: string;
660
- } | {
661
- type: string;
662
- className: string;
663
- mode: any;
664
- steps: {
665
- title: any;
666
- body: {
667
- label: any;
668
- name: any;
669
- mode: string;
670
- className: string;
671
- }[];
672
- }[];
673
- actionFinishLabel: string;
674
- id: string;
675
- target: string;
676
- onEvent: {
677
- change: {
678
- actions: {
679
- actionType: string;
680
- componentId: string;
681
- args: {
682
- value: string;
683
- };
684
- }[];
685
- };
686
- finished: {
687
- actions: {
688
- actionType: string;
689
- componentId: string;
690
- }[];
691
- };
692
- };
693
- } | {
694
- type: string;
695
- className: string;
696
- trs: {
697
- background: string;
698
- tds: {
699
- className: string;
700
- background: string;
701
- align: string;
702
- width: string;
703
- colspan: string;
704
- body: any[];
705
- id: string;
706
- style: {
707
- padding: string;
708
- };
709
- }[];
710
- }[];
711
- id: string;
712
- style: {
713
- borderLeftStyle: string;
714
- borderTopStyle: string;
715
- borderRightStyle: string;
716
- borderBottomStyle: string;
717
- };
718
- } | {
719
- type: string;
720
- id: string;
721
- tpl: string;
722
- inline: boolean;
723
- wrapperComponent: string;
724
- style: {
725
- fontFamily: string;
726
- fontSize: number;
727
- textAlign: string;
728
- };
729
- })[];
730
- id: string;
731
- onEvent: {
732
- change: {
733
- weight: number;
734
- actions: any[];
735
- };
736
- };
737
- })[];
59
+ body: any[];
738
60
  size: string;
739
61
  className: string;
740
62
  }[];