@steedos-widgets/amis-object 3.6.2-beta.6 → 3.6.2-beta.8

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.
@@ -78,37 +78,7 @@ export declare const AmisGlobalHeader: (props: any) => Promise<{
78
78
  label: string;
79
79
  className: string;
80
80
  logoutScript: string;
81
- customButtons: ({
82
- type: string;
83
- className: string;
84
- visibleOn: string;
85
- onEvent: {
86
- click: {
87
- actions: {
88
- actionType: string;
89
- script: string;
90
- }[];
91
- };
92
- };
93
- body: {
94
- type: string;
95
- category: string;
96
- name: string;
97
- colorVariant: string;
98
- id: string;
99
- className: string;
100
- }[];
101
- showAppName?: undefined;
102
- appId?: undefined;
103
- } | {
104
- type: string;
105
- showAppName: boolean;
106
- appId: string;
107
- visibleOn: string;
108
- className?: undefined;
109
- onEvent?: undefined;
110
- body?: undefined;
111
- })[];
81
+ customButtons: any;
112
82
  onEvent?: undefined;
113
83
  body?: undefined;
114
84
  })[];
@@ -3,6 +3,7 @@ export declare const AmisRecordDetail: (props: any) => Promise<{
3
3
  body: ({
4
4
  type: string;
5
5
  className: string;
6
+ contentClassName: string;
6
7
  tabs: {
7
8
  title: string;
8
9
  className: string;
@@ -11,12 +12,9 @@ export declare const AmisRecordDetail: (props: any) => Promise<{
11
12
  label: string;
12
13
  objectApiName: string;
13
14
  recordId: string;
14
- id: string;
15
15
  appId: any;
16
16
  }[];
17
- id: string;
18
17
  }[];
19
- id: string;
20
18
  } | {
21
19
  type: string;
22
20
  label: string;
@@ -10,14 +10,17 @@
10
10
  --Table-borderColor: #e5e7eb;
11
11
  --Table-borderWidth: 1px;
12
12
  --Table-fontSize: 13px;
13
+ --Table-fixedRight-boxShadow: none;
13
14
  --Table-thead-borderColor: rgb(209 213 219);
14
15
  --Table-thead-fontSize: 13px;
15
16
  --Table-thead-bg: rgb(243 244 246);
17
+ --Table-thead-borderColor: var(--Table-borderColor);
16
18
  --Table-toolbar-marginY: 0;
19
+ --Table-thead-borderWidth: 1px;
20
+ --Table-bg: white;
17
21
  --TableCell-paddingY: 0.3rem;
18
22
  --TableCell-paddingX: 0.5rem;
19
23
  --TableCell--edge-paddingX: 0.5rem;
20
- --Table-thead-borderWidth: 1px;
21
24
  --text--muted-color: #d9dcde;
22
25
  --Collapse-content-fontSize: 14px;
23
26
  --Collapse-border: 0;
@@ -26,6 +29,7 @@
26
29
  --Collapse-header-onHover-bg: #EEEEEE;
27
30
  --Collapse-header-padding: 4px;
28
31
  --Collapse-content-padding: 4px;
32
+ --collapse-default-bg-color: unset;
29
33
  --Button-height: 2rem;
30
34
  --Button-paddingX: 16px;
31
35
  --button-size-default-top-right-border-radius: 0.25rem;
@@ -49,6 +53,8 @@
49
53
  --DropDown-caret-marginLeft: 0;
50
54
  --Tabs--vertical-width: 180px;
51
55
  --Tabs-link-maxWidth: 180px;
56
+ --Tabs-content-bg: unset;
57
+ --drawer-content-paddingTop: 0;
52
58
  }
53
59
 
54
60
  .steedos-header-container .antd-Nav-Menu {
@@ -340,6 +346,13 @@ fieldset.antd-Collapse > legend{
340
346
  }
341
347
  /* === end === */
342
348
 
349
+ .steedos-record-related-crud {
350
+ --Table-thead-bg: white;
351
+ }
352
+
353
+ .steedos-record-related-crud .antd-Table-table > thead > tr > th:not(:last-child) {
354
+ border-right: 0px;
355
+ }
343
356
 
344
357
  .ant-dropdown-menu {
345
358
  border: 1px solid #e5e5e5;
@@ -416,6 +429,10 @@ fieldset.antd-Collapse > legend{
416
429
  justify-content: start;
417
430
  text-align: left;
418
431
  }
432
+
433
+ .antd-Tabs {
434
+ margin: 1rem;
435
+ }
419
436
  /* @tailwind base; */
420
437
  .container {
421
438
  width: 100%
@@ -445,6 +462,21 @@ fieldset.antd-Collapse > legend{
445
462
  max-width: 1536px
446
463
  }
447
464
  }
465
+ @media (min-width: 1600px) {
466
+ .container {
467
+ max-width: 1600px
468
+ }
469
+ }
470
+ @media (min-width: 1800px) {
471
+ .container {
472
+ max-width: 1800px
473
+ }
474
+ }
475
+ @media (min-width: 2000px) {
476
+ .container {
477
+ max-width: 2000px
478
+ }
479
+ }
448
480
  .visible {
449
481
  visibility: visible
450
482
  }
@@ -499,9 +531,6 @@ fieldset.antd-Collapse > legend{
499
531
  .m-0 {
500
532
  margin: 0px
501
533
  }
502
- .m-1 {
503
- margin: 0.25rem
504
- }
505
534
  .m-2 {
506
535
  margin: 0.5rem
507
536
  }
@@ -518,30 +547,27 @@ fieldset.antd-Collapse > legend{
518
547
  .mr-1 {
519
548
  margin-right: 0.25rem
520
549
  }
521
- .-mt-2 {
522
- margin-top: -0.5rem
550
+ .mt-2 {
551
+ margin-top: 0.5rem
523
552
  }
524
553
  .mb-3 {
525
554
  margin-bottom: 0.75rem
526
555
  }
527
- .mb-4 {
528
- margin-bottom: 1rem
529
- }
530
556
  .mb-1 {
531
557
  margin-bottom: 0.25rem
532
558
  }
533
559
  .mb-2 {
534
560
  margin-bottom: 0.5rem
535
561
  }
536
- .mt-2 {
537
- margin-top: 0.5rem
538
- }
539
562
  .-mb-4 {
540
563
  margin-bottom: -1rem
541
564
  }
542
565
  .mr-4 {
543
566
  margin-right: 1rem
544
567
  }
568
+ .mb-0 {
569
+ margin-bottom: 0px
570
+ }
545
571
  .mr-2 {
546
572
  margin-right: 0.5rem
547
573
  }
@@ -578,6 +604,9 @@ fieldset.antd-Collapse > legend{
578
604
  .-ml-1 {
579
605
  margin-left: -0.25rem
580
606
  }
607
+ .mb-4 {
608
+ margin-bottom: 1rem
609
+ }
581
610
  .block {
582
611
  display: block
583
612
  }
@@ -638,6 +667,9 @@ fieldset.antd-Collapse > legend{
638
667
  .h-8 {
639
668
  height: 2rem
640
669
  }
670
+ .max-h-12 {
671
+ max-height: 3rem
672
+ }
641
673
  .max-h-96 {
642
674
  max-height: 24rem
643
675
  }
@@ -747,6 +779,9 @@ fieldset.antd-Collapse > legend{
747
779
  .animate-spin {
748
780
  animation: spin 1s linear infinite
749
781
  }
782
+ .grid-cols-1 {
783
+ grid-template-columns: repeat(1, minmax(0, 1fr))
784
+ }
750
785
  .flex-row {
751
786
  flex-direction: row
752
787
  }
@@ -809,21 +844,18 @@ fieldset.antd-Collapse > legend{
809
844
  .break-words {
810
845
  overflow-wrap: break-word
811
846
  }
812
- .rounded {
813
- border-radius: 0.25rem
814
- }
815
847
  .rounded-full {
816
848
  border-radius: 9999px
817
849
  }
850
+ .rounded {
851
+ border-radius: 0.25rem
852
+ }
818
853
  .rounded-xl {
819
854
  border-radius: 0.75rem
820
855
  }
821
856
  .rounded-md {
822
857
  border-radius: 0.375rem
823
858
  }
824
- .border {
825
- border-width: 1px
826
- }
827
859
  .border-0 {
828
860
  border-width: 0px
829
861
  }
@@ -831,9 +863,6 @@ fieldset.antd-Collapse > legend{
831
863
  border-top-width: 1px;
832
864
  border-bottom-width: 1px
833
865
  }
834
- .border-t {
835
- border-top-width: 1px
836
- }
837
866
  .border-b {
838
867
  border-bottom-width: 1px
839
868
  }
@@ -868,10 +897,6 @@ fieldset.antd-Collapse > legend{
868
897
  --tw-bg-opacity: 1;
869
898
  background-color: rgb(255 255 255 / var(--tw-bg-opacity))
870
899
  }
871
- .bg-gray-100 {
872
- --tw-bg-opacity: 1;
873
- background-color: rgb(243 244 246 / var(--tw-bg-opacity))
874
- }
875
900
  .bg-blue-500 {
876
901
  --tw-bg-opacity: 1;
877
902
  background-color: rgb(59 130 246 / var(--tw-bg-opacity))
@@ -882,6 +907,10 @@ fieldset.antd-Collapse > legend{
882
907
  .bg-transparent {
883
908
  background-color: transparent
884
909
  }
910
+ .bg-gray-100 {
911
+ --tw-bg-opacity: 1;
912
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity))
913
+ }
885
914
  .bg-none {
886
915
  background-image: none
887
916
  }
@@ -900,9 +929,6 @@ fieldset.antd-Collapse > legend{
900
929
  .p-2 {
901
930
  padding: 0.5rem
902
931
  }
903
- .p-3 {
904
- padding: 0.75rem
905
- }
906
932
  .\!p-2 {
907
933
  padding: 0.5rem !important
908
934
  }
@@ -917,14 +943,14 @@ fieldset.antd-Collapse > legend{
917
943
  padding-top: 1rem;
918
944
  padding-bottom: 1rem
919
945
  }
920
- .px-4 {
921
- padding-left: 1rem;
922
- padding-right: 1rem
923
- }
924
946
  .py-2 {
925
947
  padding-top: 0.5rem;
926
948
  padding-bottom: 0.5rem
927
949
  }
950
+ .px-4 {
951
+ padding-left: 1rem;
952
+ padding-right: 1rem
953
+ }
928
954
  .px-2 {
929
955
  padding-left: 0.5rem;
930
956
  padding-right: 0.5rem
@@ -937,9 +963,6 @@ fieldset.antd-Collapse > legend{
937
963
  padding-top: 0.625rem;
938
964
  padding-bottom: 0.625rem
939
965
  }
940
- .pt-4 {
941
- padding-top: 1rem
942
- }
943
966
  .pl-4 {
944
967
  padding-left: 1rem
945
968
  }
@@ -949,9 +972,6 @@ fieldset.antd-Collapse > legend{
949
972
  .pt-0 {
950
973
  padding-top: 0px
951
974
  }
952
- .pb-0 {
953
- padding-bottom: 0px
954
- }
955
975
  .pl-1\.5 {
956
976
  padding-left: 0.375rem
957
977
  }
@@ -964,6 +984,12 @@ fieldset.antd-Collapse > legend{
964
984
  .pl-5 {
965
985
  padding-left: 1.25rem
966
986
  }
987
+ .pb-0 {
988
+ padding-bottom: 0px
989
+ }
990
+ .pt-4 {
991
+ padding-top: 1rem
992
+ }
967
993
  .pb-16 {
968
994
  padding-bottom: 4rem
969
995
  }
@@ -1117,6 +1143,12 @@ fieldset.antd-Collapse > legend{
1117
1143
  .ease-in-out {
1118
1144
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
1119
1145
  }
1146
+ .first\:pt-0:first-child {
1147
+ padding-top: 0px
1148
+ }
1149
+ .last\:border-b-0:last-child {
1150
+ border-bottom-width: 0px
1151
+ }
1120
1152
  .hover\:bg-sky-50:hover {
1121
1153
  --tw-bg-opacity: 1;
1122
1154
  background-color: rgb(240 249 255 / var(--tw-bg-opacity))
@@ -1150,6 +1182,9 @@ fieldset.antd-Collapse > legend{
1150
1182
  .sm\:grid-cols-4 {
1151
1183
  grid-template-columns: repeat(4, minmax(0, 1fr))
1152
1184
  }
1185
+ .sm\:grid-cols-2 {
1186
+ grid-template-columns: repeat(2, minmax(0, 1fr))
1187
+ }
1153
1188
  .sm\:gap-2 {
1154
1189
  gap: 0.5rem
1155
1190
  }
@@ -1189,8 +1224,8 @@ fieldset.antd-Collapse > legend{
1189
1224
  }
1190
1225
  }
1191
1226
  @media (min-width: 768px) {
1192
- .md\:p-2 {
1193
- padding: 0.5rem
1227
+ .md\:grid-cols-3 {
1228
+ grid-template-columns: repeat(3, minmax(0, 1fr))
1194
1229
  }
1195
1230
  }
1196
1231
  @media (min-width: 1024px) {
@@ -1206,10 +1241,38 @@ fieldset.antd-Collapse > legend{
1206
1241
  .lg\:flex {
1207
1242
  display: flex
1208
1243
  }
1244
+ .lg\:grid-cols-4 {
1245
+ grid-template-columns: repeat(4, minmax(0, 1fr))
1246
+ }
1209
1247
  .lg\:flex-col {
1210
1248
  flex-direction: column
1211
1249
  }
1212
1250
  }
1251
+ @media (min-width: 1280px) {
1252
+ .xl\:grid-cols-5 {
1253
+ grid-template-columns: repeat(5, minmax(0, 1fr))
1254
+ }
1255
+ }
1256
+ @media (min-width: 1536px) {
1257
+ .\32xl\:grid-cols-5 {
1258
+ grid-template-columns: repeat(5, minmax(0, 1fr))
1259
+ }
1260
+ }
1261
+ @media (min-width: 1600px) {
1262
+ .\33xl\:grid-cols-8 {
1263
+ grid-template-columns: repeat(8, minmax(0, 1fr))
1264
+ }
1265
+ }
1266
+ @media (min-width: 1800px) {
1267
+ .\34xl\:grid-cols-8 {
1268
+ grid-template-columns: repeat(8, minmax(0, 1fr))
1269
+ }
1270
+ }
1271
+ @media (min-width: 2000px) {
1272
+ .\35xl\:grid-cols-10 {
1273
+ grid-template-columns: repeat(10, minmax(0, 1fr))
1274
+ }
1275
+ }
1213
1276
 
1214
1277
  .ant-dropdown-menu {
1215
1278
  border: 1px solid #e5e5e5;
@@ -1671,16 +1734,13 @@ body.steedos {
1671
1734
  .steedos-amis-form .antd-Form--horizontal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {
1672
1735
  display: grid;
1673
1736
  grid-template-columns: repeat(2, minmax(0, 1fr));
1674
- row-gap: 0rem;
1737
+ row-gap: 0.5rem;
1675
1738
  -moz-column-gap: 1rem;
1676
1739
  column-gap: 1rem;
1677
1740
  }
1678
1741
  .steedos-amis-form .antd-Collapse .antd-Form--quickEdit {
1679
1742
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
1680
1743
  }
1681
- .steedos-amis-form.antd-Form .antd-Collapse-content {
1682
- padding: 0.5rem;
1683
- }
1684
1744
  .steedos-object-form .antd-ComboControl .antd-Combo .antd-Form-row {
1685
1745
  display: grid;
1686
1746
  grid-template-columns: repeat(1, minmax(0, 1fr));
@@ -1694,7 +1754,7 @@ body.steedos {
1694
1754
  .steedos-object-form .antd-Tabs-pane.is-active {
1695
1755
  display: grid;
1696
1756
  grid-template-columns: repeat(2, minmax(0, 1fr));
1697
- row-gap: 0rem;
1757
+ row-gap: 0.25rem;
1698
1758
  -moz-column-gap: 1rem;
1699
1759
  column-gap: 1rem;
1700
1760
  }
@@ -1932,8 +1992,7 @@ body.steedos {
1932
1992
  min-width: 0.5px !important;
1933
1993
  }
1934
1994
  .steedos-object-table tbody td.antd-Field--quickEditable .antd-Field-quickEditBtn {
1935
- padding-top: 3px;
1936
- float: right;
1995
+ padding-right: 13px;
1937
1996
  }
1938
1997
  .steedos-object-table tbody td.antd-Field--quickEditable .antd-Field-quickEditBtn svg {
1939
1998
  display: none;
@@ -2065,7 +2124,6 @@ body.steedos {
2065
2124
 
2066
2125
  .compact-layouts {
2067
2126
  display: grid;
2068
- grid-template-columns: repeat(5, minmax(0, 1fr));
2069
2127
  row-gap: 0rem;
2070
2128
  -moz-column-gap: 1rem;
2071
2129
  column-gap: 1rem;
@@ -2106,8 +2164,10 @@ body.steedos {
2106
2164
  display: block;
2107
2165
  }
2108
2166
  .steedos-record-detail-popover .compact-layouts {
2109
- display: grid;
2110
- grid-template-columns: repeat(2, minmax(0, 1fr));
2167
+ display: block;
2168
+ }
2169
+ .steedos-record-detail-popover .compact-layouts .grid {
2170
+ grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
2111
2171
  }
2112
2172
  .steedos-record-detail-popover .compact-layouts .antd-Form-item {
2113
2173
  padding: 0px;