@steedos-widgets/amis-lib 6.3.0-beta.9 → 6.3.0
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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +1125 -529
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1125 -530
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +309 -262
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/buttons.d.ts +296 -107
- package/dist/types/lib/converter/amis/fields/editor.d.ts +1 -0
- package/dist/types/lib/converter/amis/fields/file.d.ts +82 -14
- package/dist/types/lib/converter/amis/graphql.d.ts +1 -1
- package/dist/types/lib/converter/amis/header.d.ts +307 -118
- package/dist/types/lib/converter/amis/toolbars/setting_listview/new.d.ts +1 -0
- package/dist/types/lib/converter/amis/toolbars/setting_listview.d.ts +1 -0
- package/dist/types/lib/input_table.d.ts +1 -0
- package/dist/types/lib/objects.d.ts +1 -0
- package/dist/types/schema/standard_edit.amis.d.ts +17 -9
- package/dist/types/schema/standard_new.amis.d.ts +0 -9
- package/dist/types/standard/button.d.ts +17 -18
- package/dist/types/utils/uuid.d.ts +5 -0
- package/package.json +2 -2
|
@@ -59,51 +59,113 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
|
|
|
59
59
|
body: {
|
|
60
60
|
type: string;
|
|
61
61
|
items: {
|
|
62
|
-
type: string;
|
|
63
|
-
name: any;
|
|
64
|
-
objectName: any;
|
|
65
|
-
visibleOn: any;
|
|
66
|
-
className: string;
|
|
67
|
-
}[] | {
|
|
68
62
|
type: string;
|
|
69
63
|
icon: string;
|
|
64
|
+
size: string;
|
|
65
|
+
hideCaret: boolean;
|
|
70
66
|
className: string;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
67
|
+
closeOnClick: boolean;
|
|
68
|
+
menuClassName: string;
|
|
69
|
+
align: string;
|
|
70
|
+
body: ({
|
|
71
|
+
type: string;
|
|
72
|
+
style: {
|
|
73
|
+
"z-index": number;
|
|
74
|
+
background: string;
|
|
75
|
+
height: string;
|
|
76
|
+
width: string;
|
|
77
|
+
padding: string;
|
|
78
|
+
margin: string;
|
|
79
|
+
"border-radius": string;
|
|
80
|
+
position?: undefined;
|
|
81
|
+
bottom?: undefined;
|
|
82
|
+
left?: undefined;
|
|
83
|
+
"box-shadow"?: undefined;
|
|
84
|
+
};
|
|
85
|
+
body?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
type: string;
|
|
88
|
+
style: {
|
|
89
|
+
position: string;
|
|
90
|
+
bottom: number;
|
|
91
|
+
"z-index": number;
|
|
92
|
+
width: string;
|
|
93
|
+
left: string;
|
|
94
|
+
padding: string;
|
|
95
|
+
background: string;
|
|
96
|
+
"box-shadow": string;
|
|
97
|
+
height?: undefined;
|
|
98
|
+
margin?: undefined;
|
|
99
|
+
"border-radius"?: undefined;
|
|
100
|
+
};
|
|
101
|
+
body: ({
|
|
102
|
+
type: string;
|
|
103
|
+
justify: string;
|
|
104
|
+
items: ({
|
|
105
|
+
type: string;
|
|
106
|
+
tpl: string;
|
|
107
|
+
style: {
|
|
108
|
+
padding: string;
|
|
109
|
+
"align-items": string;
|
|
110
|
+
display: string;
|
|
111
|
+
color?: undefined;
|
|
112
|
+
};
|
|
113
|
+
label?: undefined;
|
|
114
|
+
icon?: undefined;
|
|
115
|
+
level?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: string;
|
|
118
|
+
label: string;
|
|
119
|
+
icon: string;
|
|
120
|
+
level: string;
|
|
121
|
+
style: {
|
|
122
|
+
color: string;
|
|
123
|
+
padding?: undefined;
|
|
124
|
+
"align-items"?: undefined;
|
|
125
|
+
display?: undefined;
|
|
102
126
|
};
|
|
127
|
+
tpl?: undefined;
|
|
128
|
+
})[];
|
|
129
|
+
style: {
|
|
130
|
+
"padding-top": string;
|
|
131
|
+
"padding-bottom": string;
|
|
132
|
+
"border-bottom": string;
|
|
133
|
+
padding?: undefined;
|
|
134
|
+
overflow?: undefined;
|
|
135
|
+
"max-height"?: undefined;
|
|
136
|
+
};
|
|
137
|
+
body?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
type: string;
|
|
140
|
+
body: {
|
|
141
|
+
type: string;
|
|
142
|
+
id: string;
|
|
143
|
+
vertical: boolean;
|
|
144
|
+
tiled: boolean;
|
|
145
|
+
buttons: any;
|
|
146
|
+
className: string;
|
|
147
|
+
btnClassName: string;
|
|
148
|
+
size: string;
|
|
103
149
|
}[];
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
150
|
+
style: {
|
|
151
|
+
padding: string;
|
|
152
|
+
overflow: string;
|
|
153
|
+
"max-height": string;
|
|
154
|
+
"padding-top"?: undefined;
|
|
155
|
+
"padding-bottom"?: undefined;
|
|
156
|
+
"border-bottom"?: undefined;
|
|
157
|
+
};
|
|
158
|
+
justify?: undefined;
|
|
159
|
+
items?: undefined;
|
|
160
|
+
})[];
|
|
161
|
+
})[];
|
|
162
|
+
} | {
|
|
163
|
+
type: string;
|
|
164
|
+
name: any;
|
|
165
|
+
objectName: any;
|
|
166
|
+
visibleOn: any;
|
|
167
|
+
className: string;
|
|
168
|
+
}[];
|
|
107
169
|
visibleOn: string;
|
|
108
170
|
}[];
|
|
109
171
|
md: string;
|
|
@@ -432,51 +494,113 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
|
|
|
432
494
|
body: {
|
|
433
495
|
type: string;
|
|
434
496
|
items: {
|
|
435
|
-
type: string;
|
|
436
|
-
name: any;
|
|
437
|
-
objectName: any;
|
|
438
|
-
visibleOn: any;
|
|
439
|
-
className: string;
|
|
440
|
-
}[] | {
|
|
441
497
|
type: string;
|
|
442
498
|
icon: string;
|
|
499
|
+
size: string;
|
|
500
|
+
hideCaret: boolean;
|
|
443
501
|
className: string;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
502
|
+
closeOnClick: boolean;
|
|
503
|
+
menuClassName: string;
|
|
504
|
+
align: string;
|
|
505
|
+
body: ({
|
|
506
|
+
type: string;
|
|
507
|
+
style: {
|
|
508
|
+
"z-index": number;
|
|
509
|
+
background: string;
|
|
510
|
+
height: string;
|
|
511
|
+
width: string;
|
|
512
|
+
padding: string;
|
|
513
|
+
margin: string;
|
|
514
|
+
"border-radius": string;
|
|
515
|
+
position?: undefined;
|
|
516
|
+
bottom?: undefined;
|
|
517
|
+
left?: undefined;
|
|
518
|
+
"box-shadow"?: undefined;
|
|
519
|
+
};
|
|
520
|
+
body?: undefined;
|
|
521
|
+
} | {
|
|
522
|
+
type: string;
|
|
523
|
+
style: {
|
|
524
|
+
position: string;
|
|
525
|
+
bottom: number;
|
|
526
|
+
"z-index": number;
|
|
527
|
+
width: string;
|
|
528
|
+
left: string;
|
|
529
|
+
padding: string;
|
|
530
|
+
background: string;
|
|
531
|
+
"box-shadow": string;
|
|
532
|
+
height?: undefined;
|
|
533
|
+
margin?: undefined;
|
|
534
|
+
"border-radius"?: undefined;
|
|
535
|
+
};
|
|
536
|
+
body: ({
|
|
537
|
+
type: string;
|
|
538
|
+
justify: string;
|
|
539
|
+
items: ({
|
|
540
|
+
type: string;
|
|
541
|
+
tpl: string;
|
|
542
|
+
style: {
|
|
543
|
+
padding: string;
|
|
544
|
+
"align-items": string;
|
|
545
|
+
display: string;
|
|
546
|
+
color?: undefined;
|
|
475
547
|
};
|
|
548
|
+
label?: undefined;
|
|
549
|
+
icon?: undefined;
|
|
550
|
+
level?: undefined;
|
|
551
|
+
} | {
|
|
552
|
+
type: string;
|
|
553
|
+
label: string;
|
|
554
|
+
icon: string;
|
|
555
|
+
level: string;
|
|
556
|
+
style: {
|
|
557
|
+
color: string;
|
|
558
|
+
padding?: undefined;
|
|
559
|
+
"align-items"?: undefined;
|
|
560
|
+
display?: undefined;
|
|
561
|
+
};
|
|
562
|
+
tpl?: undefined;
|
|
563
|
+
})[];
|
|
564
|
+
style: {
|
|
565
|
+
"padding-top": string;
|
|
566
|
+
"padding-bottom": string;
|
|
567
|
+
"border-bottom": string;
|
|
568
|
+
padding?: undefined;
|
|
569
|
+
overflow?: undefined;
|
|
570
|
+
"max-height"?: undefined;
|
|
571
|
+
};
|
|
572
|
+
body?: undefined;
|
|
573
|
+
} | {
|
|
574
|
+
type: string;
|
|
575
|
+
body: {
|
|
576
|
+
type: string;
|
|
577
|
+
id: string;
|
|
578
|
+
vertical: boolean;
|
|
579
|
+
tiled: boolean;
|
|
580
|
+
buttons: any;
|
|
581
|
+
className: string;
|
|
582
|
+
btnClassName: string;
|
|
583
|
+
size: string;
|
|
476
584
|
}[];
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
585
|
+
style: {
|
|
586
|
+
padding: string;
|
|
587
|
+
overflow: string;
|
|
588
|
+
"max-height": string;
|
|
589
|
+
"padding-top"?: undefined;
|
|
590
|
+
"padding-bottom"?: undefined;
|
|
591
|
+
"border-bottom"?: undefined;
|
|
592
|
+
};
|
|
593
|
+
justify?: undefined;
|
|
594
|
+
items?: undefined;
|
|
595
|
+
})[];
|
|
596
|
+
})[];
|
|
597
|
+
} | {
|
|
598
|
+
type: string;
|
|
599
|
+
name: any;
|
|
600
|
+
objectName: any;
|
|
601
|
+
visibleOn: any;
|
|
602
|
+
className: string;
|
|
603
|
+
}[];
|
|
480
604
|
visibleOn: string;
|
|
481
605
|
}[];
|
|
482
606
|
md: string;
|
|
@@ -508,6 +632,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
508
632
|
columns: ({
|
|
509
633
|
body: ({
|
|
510
634
|
type: string;
|
|
635
|
+
className: string;
|
|
511
636
|
onEvent: {
|
|
512
637
|
"@history_paths.changed": {
|
|
513
638
|
actions: {
|
|
@@ -642,49 +767,113 @@ export function getObjectRecordDetailRelatedListHeader(relatedObjectSchema: any,
|
|
|
642
767
|
body: {
|
|
643
768
|
type: string;
|
|
644
769
|
items: {
|
|
770
|
+
type: string;
|
|
771
|
+
icon: string;
|
|
772
|
+
size: string;
|
|
773
|
+
hideCaret: boolean;
|
|
774
|
+
className: string;
|
|
775
|
+
closeOnClick: boolean;
|
|
776
|
+
menuClassName: string;
|
|
777
|
+
align: string;
|
|
778
|
+
body: ({
|
|
779
|
+
type: string;
|
|
780
|
+
style: {
|
|
781
|
+
"z-index": number;
|
|
782
|
+
background: string;
|
|
783
|
+
height: string;
|
|
784
|
+
width: string;
|
|
785
|
+
padding: string;
|
|
786
|
+
margin: string;
|
|
787
|
+
"border-radius": string;
|
|
788
|
+
position?: undefined;
|
|
789
|
+
bottom?: undefined;
|
|
790
|
+
left?: undefined;
|
|
791
|
+
"box-shadow"?: undefined;
|
|
792
|
+
};
|
|
793
|
+
body?: undefined;
|
|
794
|
+
} | {
|
|
795
|
+
type: string;
|
|
796
|
+
style: {
|
|
797
|
+
position: string;
|
|
798
|
+
bottom: number;
|
|
799
|
+
"z-index": number;
|
|
800
|
+
width: string;
|
|
801
|
+
left: string;
|
|
802
|
+
padding: string;
|
|
803
|
+
background: string;
|
|
804
|
+
"box-shadow": string;
|
|
805
|
+
height?: undefined;
|
|
806
|
+
margin?: undefined;
|
|
807
|
+
"border-radius"?: undefined;
|
|
808
|
+
};
|
|
809
|
+
body: ({
|
|
810
|
+
type: string;
|
|
811
|
+
justify: string;
|
|
812
|
+
items: ({
|
|
813
|
+
type: string;
|
|
814
|
+
tpl: string;
|
|
815
|
+
style: {
|
|
816
|
+
padding: string;
|
|
817
|
+
"align-items": string;
|
|
818
|
+
display: string;
|
|
819
|
+
color?: undefined;
|
|
820
|
+
};
|
|
821
|
+
label?: undefined;
|
|
822
|
+
icon?: undefined;
|
|
823
|
+
level?: undefined;
|
|
824
|
+
} | {
|
|
825
|
+
type: string;
|
|
826
|
+
label: string;
|
|
827
|
+
icon: string;
|
|
828
|
+
level: string;
|
|
829
|
+
style: {
|
|
830
|
+
color: string;
|
|
831
|
+
padding?: undefined;
|
|
832
|
+
"align-items"?: undefined;
|
|
833
|
+
display?: undefined;
|
|
834
|
+
};
|
|
835
|
+
tpl?: undefined;
|
|
836
|
+
})[];
|
|
837
|
+
style: {
|
|
838
|
+
"padding-top": string;
|
|
839
|
+
"padding-bottom": string;
|
|
840
|
+
"border-bottom": string;
|
|
841
|
+
padding?: undefined;
|
|
842
|
+
overflow?: undefined;
|
|
843
|
+
"max-height"?: undefined;
|
|
844
|
+
};
|
|
845
|
+
body?: undefined;
|
|
846
|
+
} | {
|
|
847
|
+
type: string;
|
|
848
|
+
body: {
|
|
849
|
+
type: string;
|
|
850
|
+
id: string;
|
|
851
|
+
vertical: boolean;
|
|
852
|
+
tiled: boolean;
|
|
853
|
+
buttons: any;
|
|
854
|
+
className: string;
|
|
855
|
+
btnClassName: string;
|
|
856
|
+
size: string;
|
|
857
|
+
}[];
|
|
858
|
+
style: {
|
|
859
|
+
padding: string;
|
|
860
|
+
overflow: string;
|
|
861
|
+
"max-height": string;
|
|
862
|
+
"padding-top"?: undefined;
|
|
863
|
+
"padding-bottom"?: undefined;
|
|
864
|
+
"border-bottom"?: undefined;
|
|
865
|
+
};
|
|
866
|
+
justify?: undefined;
|
|
867
|
+
items?: undefined;
|
|
868
|
+
})[];
|
|
869
|
+
})[];
|
|
870
|
+
}[] | {
|
|
645
871
|
type: string;
|
|
646
872
|
name: any;
|
|
647
873
|
objectName: any;
|
|
648
874
|
visibleOn: any;
|
|
649
875
|
className: string;
|
|
650
|
-
}[]
|
|
651
|
-
type: string;
|
|
652
|
-
icon: string;
|
|
653
|
-
onEvent: {
|
|
654
|
-
click: {
|
|
655
|
-
actions: {
|
|
656
|
-
actionType: string;
|
|
657
|
-
drawer: {
|
|
658
|
-
type: string;
|
|
659
|
-
title: string;
|
|
660
|
-
id: string;
|
|
661
|
-
body: {
|
|
662
|
-
type: string;
|
|
663
|
-
vertical: boolean;
|
|
664
|
-
tiled: boolean;
|
|
665
|
-
buttons: {
|
|
666
|
-
type: string;
|
|
667
|
-
name: any;
|
|
668
|
-
objectName: any;
|
|
669
|
-
visibleOn: any;
|
|
670
|
-
className: string;
|
|
671
|
-
}[];
|
|
672
|
-
btnLevel: string;
|
|
673
|
-
className: string;
|
|
674
|
-
btnClassName: string;
|
|
675
|
-
size: string;
|
|
676
|
-
}[];
|
|
677
|
-
position: string;
|
|
678
|
-
closeOnOutside: boolean;
|
|
679
|
-
resizable: boolean;
|
|
680
|
-
className: string;
|
|
681
|
-
bodyClassName: string;
|
|
682
|
-
actions: any[];
|
|
683
|
-
};
|
|
684
|
-
}[];
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
|
-
};
|
|
876
|
+
}[];
|
|
688
877
|
};
|
|
689
878
|
md: string;
|
|
690
879
|
})[];
|
|
@@ -24,16 +24,24 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
24
24
|
closeOnEsc: boolean;
|
|
25
25
|
closeOnOutside: boolean;
|
|
26
26
|
showCloseButton: boolean;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
script: string;
|
|
33
|
-
expression: string;
|
|
34
|
-
}[];
|
|
35
|
-
};
|
|
27
|
+
data: {
|
|
28
|
+
"&": string;
|
|
29
|
+
_master: string;
|
|
30
|
+
"_master._isRelated": string;
|
|
31
|
+
"_master.relatedKey": string;
|
|
36
32
|
};
|
|
33
|
+
size: string;
|
|
34
|
+
actions: ({
|
|
35
|
+
type: string;
|
|
36
|
+
actionType: string;
|
|
37
|
+
label: string;
|
|
38
|
+
primary?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
type: string;
|
|
41
|
+
actionType: string;
|
|
42
|
+
label: string;
|
|
43
|
+
primary: boolean;
|
|
44
|
+
})[];
|
|
37
45
|
};
|
|
38
46
|
}[];
|
|
39
47
|
weight: number;
|
|
@@ -74,15 +74,6 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
|
|
|
74
74
|
closeOnEsc: boolean;
|
|
75
75
|
closeOnOutside: boolean;
|
|
76
76
|
size: string;
|
|
77
|
-
onEvent: {
|
|
78
|
-
cancel: {
|
|
79
|
-
actions: {
|
|
80
|
-
actionType: string;
|
|
81
|
-
script: string;
|
|
82
|
-
expression: string;
|
|
83
|
-
}[];
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
77
|
actions: ({
|
|
87
78
|
type: string;
|
|
88
79
|
actionType: string;
|
|
@@ -77,15 +77,6 @@ export namespace StandardButtons {
|
|
|
77
77
|
closeOnEsc: boolean;
|
|
78
78
|
closeOnOutside: boolean;
|
|
79
79
|
size: string;
|
|
80
|
-
onEvent: {
|
|
81
|
-
cancel: {
|
|
82
|
-
actions: {
|
|
83
|
-
actionType: string;
|
|
84
|
-
script: string;
|
|
85
|
-
expression: string;
|
|
86
|
-
}[];
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
80
|
actions: ({
|
|
90
81
|
type: string;
|
|
91
82
|
actionType: string;
|
|
@@ -150,16 +141,24 @@ export namespace StandardButtons {
|
|
|
150
141
|
closeOnEsc: boolean;
|
|
151
142
|
closeOnOutside: boolean;
|
|
152
143
|
showCloseButton: boolean;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
script: string;
|
|
159
|
-
expression: string;
|
|
160
|
-
}[];
|
|
161
|
-
};
|
|
144
|
+
data: {
|
|
145
|
+
"&": string;
|
|
146
|
+
_master: string;
|
|
147
|
+
"_master._isRelated": string;
|
|
148
|
+
"_master.relatedKey": string;
|
|
162
149
|
};
|
|
150
|
+
size: string;
|
|
151
|
+
actions: ({
|
|
152
|
+
type: string;
|
|
153
|
+
actionType: string;
|
|
154
|
+
label: string;
|
|
155
|
+
primary?: undefined;
|
|
156
|
+
} | {
|
|
157
|
+
type: string;
|
|
158
|
+
actionType: string;
|
|
159
|
+
label: string;
|
|
160
|
+
primary: boolean;
|
|
161
|
+
})[];
|
|
163
162
|
};
|
|
164
163
|
}[];
|
|
165
164
|
weight: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "6.3.0
|
|
4
|
+
"version": "6.3.0",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"react-i18next": "12.3.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b8f4c71ba4639e584d04f348c61f1f4b3b4e484f"
|
|
65
65
|
}
|