@steedos-widgets/amis-lib 6.3.0-beta.13 → 6.3.0-beta.15

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.
@@ -59,51 +59,117 @@ 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
- onEvent: {
72
- click: {
73
- actions: {
74
- actionType: string;
75
- drawer: {
76
- type: string;
77
- title: string;
78
- id: string;
79
- body: {
80
- type: string;
81
- id: string;
82
- vertical: boolean;
83
- tiled: boolean;
84
- buttons: {
85
- type: string;
86
- name: any;
87
- objectName: any;
88
- visibleOn: any;
89
- className: string;
90
- }[];
91
- btnLevel: string;
92
- className: string;
93
- btnClassName: string;
94
- size: string;
95
- }[];
96
- position: string;
97
- closeOnOutside: boolean;
98
- resizable: boolean;
99
- className: string;
100
- bodyClassName: string;
101
- actions: any[];
67
+ closeOnClick: boolean;
68
+ menuClassName: string;
69
+ align: string;
70
+ body: ({
71
+ type: string;
72
+ style: {
73
+ position: string;
74
+ top: number;
75
+ right: number;
76
+ bottom: number;
77
+ left: number;
78
+ "z-index": number;
79
+ background: string;
80
+ height: string;
81
+ width: string;
82
+ padding: string;
83
+ margin: string;
84
+ "border-radius": string;
85
+ "box-shadow"?: undefined;
86
+ };
87
+ body?: undefined;
88
+ } | {
89
+ type: string;
90
+ style: {
91
+ position: string;
92
+ bottom: number;
93
+ "z-index": number;
94
+ width: string;
95
+ left: string;
96
+ padding: string;
97
+ background: string;
98
+ "box-shadow": string;
99
+ top?: undefined;
100
+ right?: undefined;
101
+ height?: undefined;
102
+ margin?: undefined;
103
+ "border-radius"?: undefined;
104
+ };
105
+ body: ({
106
+ type: string;
107
+ justify: string;
108
+ items: ({
109
+ type: string;
110
+ tpl: string;
111
+ style: {
112
+ padding: string;
113
+ "align-items": string;
114
+ display: string;
115
+ color?: undefined;
116
+ };
117
+ label?: undefined;
118
+ icon?: undefined;
119
+ level?: undefined;
120
+ } | {
121
+ type: string;
122
+ label: string;
123
+ icon: string;
124
+ level: string;
125
+ style: {
126
+ color: string;
127
+ padding?: undefined;
128
+ "align-items"?: undefined;
129
+ display?: undefined;
102
130
  };
131
+ tpl?: undefined;
132
+ })[];
133
+ style: {
134
+ "padding-top": string;
135
+ "padding-bottom": string;
136
+ "border-bottom": string;
137
+ padding?: undefined;
138
+ overflow?: undefined;
139
+ "max-height"?: undefined;
140
+ };
141
+ body?: undefined;
142
+ } | {
143
+ type: string;
144
+ body: {
145
+ type: string;
146
+ id: string;
147
+ vertical: boolean;
148
+ tiled: boolean;
149
+ buttons: any;
150
+ className: string;
151
+ btnClassName: string;
152
+ size: string;
103
153
  }[];
104
- };
105
- };
106
- };
154
+ style: {
155
+ padding: string;
156
+ overflow: string;
157
+ "max-height": string;
158
+ "padding-top"?: undefined;
159
+ "padding-bottom"?: undefined;
160
+ "border-bottom"?: undefined;
161
+ };
162
+ justify?: undefined;
163
+ items?: undefined;
164
+ })[];
165
+ })[];
166
+ } | {
167
+ type: string;
168
+ name: any;
169
+ objectName: any;
170
+ visibleOn: any;
171
+ className: string;
172
+ }[];
107
173
  visibleOn: string;
108
174
  }[];
109
175
  md: string;
@@ -432,51 +498,117 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
432
498
  body: {
433
499
  type: string;
434
500
  items: {
435
- type: string;
436
- name: any;
437
- objectName: any;
438
- visibleOn: any;
439
- className: string;
440
- }[] | {
441
501
  type: string;
442
502
  icon: string;
503
+ size: string;
504
+ hideCaret: boolean;
443
505
  className: string;
444
- onEvent: {
445
- click: {
446
- actions: {
447
- actionType: string;
448
- drawer: {
449
- type: string;
450
- title: string;
451
- id: string;
452
- body: {
453
- type: string;
454
- id: string;
455
- vertical: boolean;
456
- tiled: boolean;
457
- buttons: {
458
- type: string;
459
- name: any;
460
- objectName: any;
461
- visibleOn: any;
462
- className: string;
463
- }[];
464
- btnLevel: string;
465
- className: string;
466
- btnClassName: string;
467
- size: string;
468
- }[];
469
- position: string;
470
- closeOnOutside: boolean;
471
- resizable: boolean;
472
- className: string;
473
- bodyClassName: string;
474
- actions: any[];
506
+ closeOnClick: boolean;
507
+ menuClassName: string;
508
+ align: string;
509
+ body: ({
510
+ type: string;
511
+ style: {
512
+ position: string;
513
+ top: number;
514
+ right: number;
515
+ bottom: number;
516
+ left: number;
517
+ "z-index": number;
518
+ background: string;
519
+ height: string;
520
+ width: string;
521
+ padding: string;
522
+ margin: string;
523
+ "border-radius": string;
524
+ "box-shadow"?: undefined;
525
+ };
526
+ body?: undefined;
527
+ } | {
528
+ type: string;
529
+ style: {
530
+ position: string;
531
+ bottom: number;
532
+ "z-index": number;
533
+ width: string;
534
+ left: string;
535
+ padding: string;
536
+ background: string;
537
+ "box-shadow": string;
538
+ top?: undefined;
539
+ right?: undefined;
540
+ height?: undefined;
541
+ margin?: undefined;
542
+ "border-radius"?: undefined;
543
+ };
544
+ body: ({
545
+ type: string;
546
+ justify: string;
547
+ items: ({
548
+ type: string;
549
+ tpl: string;
550
+ style: {
551
+ padding: string;
552
+ "align-items": string;
553
+ display: string;
554
+ color?: undefined;
475
555
  };
556
+ label?: undefined;
557
+ icon?: undefined;
558
+ level?: undefined;
559
+ } | {
560
+ type: string;
561
+ label: string;
562
+ icon: string;
563
+ level: string;
564
+ style: {
565
+ color: string;
566
+ padding?: undefined;
567
+ "align-items"?: undefined;
568
+ display?: undefined;
569
+ };
570
+ tpl?: undefined;
571
+ })[];
572
+ style: {
573
+ "padding-top": string;
574
+ "padding-bottom": string;
575
+ "border-bottom": string;
576
+ padding?: undefined;
577
+ overflow?: undefined;
578
+ "max-height"?: undefined;
579
+ };
580
+ body?: undefined;
581
+ } | {
582
+ type: string;
583
+ body: {
584
+ type: string;
585
+ id: string;
586
+ vertical: boolean;
587
+ tiled: boolean;
588
+ buttons: any;
589
+ className: string;
590
+ btnClassName: string;
591
+ size: string;
476
592
  }[];
477
- };
478
- };
479
- };
593
+ style: {
594
+ padding: string;
595
+ overflow: string;
596
+ "max-height": string;
597
+ "padding-top"?: undefined;
598
+ "padding-bottom"?: undefined;
599
+ "border-bottom"?: undefined;
600
+ };
601
+ justify?: undefined;
602
+ items?: undefined;
603
+ })[];
604
+ })[];
605
+ } | {
606
+ type: string;
607
+ name: any;
608
+ objectName: any;
609
+ visibleOn: any;
610
+ className: string;
611
+ }[];
480
612
  visibleOn: string;
481
613
  }[];
482
614
  md: string;
@@ -643,55 +775,117 @@ export function getObjectRecordDetailRelatedListHeader(relatedObjectSchema: any,
643
775
  body: {
644
776
  type: string;
645
777
  items: {
778
+ type: string;
779
+ icon: string;
780
+ size: string;
781
+ hideCaret: boolean;
782
+ className: string;
783
+ closeOnClick: boolean;
784
+ menuClassName: string;
785
+ align: string;
786
+ body: ({
787
+ type: string;
788
+ style: {
789
+ position: string;
790
+ top: number;
791
+ right: number;
792
+ bottom: number;
793
+ left: number;
794
+ "z-index": number;
795
+ background: string;
796
+ height: string;
797
+ width: string;
798
+ padding: string;
799
+ margin: string;
800
+ "border-radius": string;
801
+ "box-shadow"?: undefined;
802
+ };
803
+ body?: undefined;
804
+ } | {
805
+ type: string;
806
+ style: {
807
+ position: string;
808
+ bottom: number;
809
+ "z-index": number;
810
+ width: string;
811
+ left: string;
812
+ padding: string;
813
+ background: string;
814
+ "box-shadow": string;
815
+ top?: undefined;
816
+ right?: undefined;
817
+ height?: undefined;
818
+ margin?: undefined;
819
+ "border-radius"?: undefined;
820
+ };
821
+ body: ({
822
+ type: string;
823
+ justify: string;
824
+ items: ({
825
+ type: string;
826
+ tpl: string;
827
+ style: {
828
+ padding: string;
829
+ "align-items": string;
830
+ display: string;
831
+ color?: undefined;
832
+ };
833
+ label?: undefined;
834
+ icon?: undefined;
835
+ level?: undefined;
836
+ } | {
837
+ type: string;
838
+ label: string;
839
+ icon: string;
840
+ level: string;
841
+ style: {
842
+ color: string;
843
+ padding?: undefined;
844
+ "align-items"?: undefined;
845
+ display?: undefined;
846
+ };
847
+ tpl?: undefined;
848
+ })[];
849
+ style: {
850
+ "padding-top": string;
851
+ "padding-bottom": string;
852
+ "border-bottom": string;
853
+ padding?: undefined;
854
+ overflow?: undefined;
855
+ "max-height"?: undefined;
856
+ };
857
+ body?: undefined;
858
+ } | {
859
+ type: string;
860
+ body: {
861
+ type: string;
862
+ id: string;
863
+ vertical: boolean;
864
+ tiled: boolean;
865
+ buttons: any;
866
+ className: string;
867
+ btnClassName: string;
868
+ size: string;
869
+ }[];
870
+ style: {
871
+ padding: string;
872
+ overflow: string;
873
+ "max-height": string;
874
+ "padding-top"?: undefined;
875
+ "padding-bottom"?: undefined;
876
+ "border-bottom"?: undefined;
877
+ };
878
+ justify?: undefined;
879
+ items?: undefined;
880
+ })[];
881
+ })[];
882
+ }[] | {
646
883
  type: string;
647
884
  name: any;
648
885
  objectName: any;
649
886
  visibleOn: any;
650
887
  className: string;
651
- }[] | {
652
- type: string;
653
- icon: string;
654
- onEvent: {
655
- click: {
656
- actions: {
657
- actionType: string;
658
- drawer: {
659
- type: string;
660
- title: string;
661
- id: string;
662
- body: {
663
- type: string;
664
- vertical: boolean;
665
- tiled: boolean;
666
- buttons: {
667
- type: string;
668
- name: any;
669
- objectName: any;
670
- visibleOn: any;
671
- className: string;
672
- }[];
673
- btnLevel: string;
674
- className: string;
675
- btnClassName: string;
676
- size: string;
677
- }[];
678
- position: string; /**
679
- * 点击记录详细界面相关表顶部标题进入的相关表页面的顶部amisSchema
680
- * @param {*} objectSchema
681
- * @param {*} recordId
682
- * @param {*} relatedObjectName
683
- * @returns amisSchema
684
- */
685
- closeOnOutside: boolean;
686
- resizable: boolean;
687
- className: string;
688
- bodyClassName: string;
689
- actions: any[];
690
- };
691
- }[];
692
- };
693
- };
694
- };
888
+ }[];
695
889
  };
696
890
  md: string;
697
891
  })[];
@@ -57,7 +57,6 @@ export function getSchema(uiSchema: any): {
57
57
  })[];
58
58
  };
59
59
  };
60
- close: string;
61
60
  }[];
62
61
  regions: string[];
63
62
  };
@@ -31,27 +31,16 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
31
31
  "_master.relatedKey": string;
32
32
  };
33
33
  size: string;
34
- onEvent: {
35
- cancel: {
36
- actions: {
37
- actionType: string;
38
- script: string;
39
- expression: string;
40
- }[];
41
- };
42
- };
43
34
  actions: ({
44
35
  type: string;
45
36
  actionType: string;
46
37
  label: string;
47
38
  primary?: undefined;
48
- close?: undefined;
49
39
  } | {
50
40
  type: string;
51
41
  actionType: string;
52
42
  label: string;
53
43
  primary: boolean;
54
- close: string;
55
44
  })[];
56
45
  };
57
46
  }[];
@@ -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;
@@ -102,7 +93,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
102
93
  actionType: string;
103
94
  label: string;
104
95
  primary: boolean;
105
- close: string;
96
+ close?: undefined;
106
97
  id?: undefined;
107
98
  })[];
108
99
  };
@@ -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;
@@ -105,7 +96,7 @@ export namespace StandardButtons {
105
96
  actionType: string;
106
97
  label: string;
107
98
  primary: boolean;
108
- close: string;
99
+ close?: undefined;
109
100
  id?: undefined;
110
101
  })[];
111
102
  };
@@ -157,27 +148,16 @@ export namespace StandardButtons {
157
148
  "_master.relatedKey": string;
158
149
  };
159
150
  size: string;
160
- onEvent: {
161
- cancel: {
162
- actions: {
163
- actionType: string;
164
- script: string;
165
- expression: string;
166
- }[];
167
- };
168
- };
169
151
  actions: ({
170
152
  type: string;
171
153
  actionType: string;
172
154
  label: string;
173
155
  primary?: undefined;
174
- close?: undefined;
175
156
  } | {
176
157
  type: string;
177
158
  actionType: string;
178
159
  label: string;
179
160
  primary: boolean;
180
- close: string;
181
161
  })[];
182
162
  };
183
163
  }[];
@@ -251,7 +231,6 @@ export namespace StandardButtons {
251
231
  })[];
252
232
  };
253
233
  };
254
- close: string;
255
234
  }[];
256
235
  regions: string[];
257
236
  };
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-beta.13",
4
+ "version": "6.3.0-beta.15",
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": "9c91a4fcaec8a9a5399a98e4217c8230067f294f"
64
+ "gitHead": "2814297d85c3ef6567fb501ada86fb28edb92b9d"
65
65
  }