@steedos-widgets/amis-object 1.2.6-beta.9 → 1.2.7

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.
@@ -43,11 +43,6 @@ export declare const AmisAppLauncher: (props: any) => Promise<{
43
43
  "@data.changed.steedos_keyvalues": {
44
44
  actions: {
45
45
  actionType: string;
46
- args: {
47
- value: {
48
- keyvalue: string;
49
- };
50
- };
51
46
  }[];
52
47
  };
53
48
  };
@@ -7,13 +7,7 @@ export declare const AmisObjectListView: (props: any) => Promise<{
7
7
  data?: undefined;
8
8
  } | {
9
9
  type: string;
10
- data: {
11
- showDisplayAs: any;
12
- displayAs: string;
13
- recordPermissions: any;
14
- _id: any;
15
- $listviewId: any;
16
- };
10
+ data: any;
17
11
  className: string;
18
12
  body: {
19
13
  type: string;
@@ -50,7 +50,45 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
50
50
  objectName: any;
51
51
  visibleOn: any;
52
52
  className: string;
53
- }[];
53
+ }[] | {
54
+ type: string;
55
+ icon: string;
56
+ onEvent: {
57
+ click: {
58
+ actions: {
59
+ actionType: string;
60
+ drawer: {
61
+ type: string;
62
+ title: string;
63
+ body: {
64
+ type: string;
65
+ id: string;
66
+ vertical: boolean;
67
+ tiled: boolean;
68
+ buttons: {
69
+ type: string;
70
+ name: any;
71
+ objectName: any;
72
+ visibleOn: any;
73
+ }[];
74
+ btnLevel: string;
75
+ className: string;
76
+ btnClassName: string;
77
+ size: string;
78
+ }[];
79
+ id: string;
80
+ position: string;
81
+ closeOnOutside: boolean;
82
+ resizable: boolean;
83
+ className: string;
84
+ bodyClassName: string;
85
+ actions: any[];
86
+ };
87
+ }[];
88
+ };
89
+ };
90
+ id: string;
91
+ };
54
92
  };
55
93
  md: string;
56
94
  })[];
@@ -7,20 +7,7 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
7
7
  } | {
8
8
  type: string;
9
9
  className: string;
10
- body: {
11
- type: string;
12
- objectApiName: any;
13
- relatedObjectApiName: any;
14
- foreign_key: any;
15
- relatedKey: any;
16
- columns: any;
17
- sort: any;
18
- filters: any;
19
- visible_on: any;
20
- perPage: any;
21
- hiddenEmptyTable: boolean;
22
- relatedLabel: any;
23
- }[];
10
+ body: any[];
24
11
  level?: undefined;
25
12
  showIcon?: undefined;
26
13
  }>;
@@ -1,3 +1,4 @@
1
+ import './AmisSelectFlow.less';
1
2
  /**
2
3
  *
3
4
  * @css
@@ -205,6 +205,39 @@ body {
205
205
  overflow: unset;
206
206
  }
207
207
 
208
+ /* 手机端native时间控件样式 */
209
+ @media (max-width: 768px){
210
+ .steedos-combo-edit .antd-Form-row{
211
+ display: flex !important;
212
+ -moz-column-gap: unset !important;
213
+ column-gap: unset !important;
214
+ }
215
+ .steedos-combo-edit .antd-Form::before{
216
+ content: unset;
217
+ }
218
+
219
+ .steedos-combo-edit .antd-Form .antd-Form-item::after{
220
+ content: unset;
221
+ }
222
+
223
+ .steedos-combo-edit .antd-Form .antd-Form-item{
224
+ padding: 0;
225
+ }
226
+
227
+ .steedos-combo-edit{
228
+ flex-wrap:nowrap !important;
229
+ }
230
+
231
+ .steedos-combo-edit .steedos-native-date .antd-TextControl-input input{
232
+ min-width: 120px;
233
+ align-items: start !important;
234
+ }
235
+
236
+ .steedos-combo-edit .steedos-native-time .antd-TextControl-input input{
237
+ min-width: 70px;
238
+ }
239
+ }
240
+
208
241
  .ant-dropdown-menu {
209
242
  border: 1px solid #e5e5e5;
210
243
  border-radius: 0.25rem;
@@ -248,6 +281,10 @@ body {
248
281
  display: flex;
249
282
  align-items: center;
250
283
  }
284
+
285
+ .antd-ButtonGroup > .antd-Button {
286
+ max-width: none !important;
287
+ }
251
288
  /* @tailwind base; */
252
289
  .container {
253
290
  width: 100%
@@ -467,6 +504,9 @@ body {
467
504
  .\!max-h-\[80vh\] {
468
505
  max-height: 80vh !important
469
506
  }
507
+ .w-full {
508
+ width: 100%
509
+ }
470
510
  .w-14 {
471
511
  width: 3.5rem
472
512
  }
@@ -485,9 +525,6 @@ body {
485
525
  .w-1\/3 {
486
526
  width: 33.333333%
487
527
  }
488
- .w-full {
489
- width: 100%
490
- }
491
528
  .w-10 {
492
529
  width: 2.5rem
493
530
  }
@@ -598,15 +635,15 @@ body {
598
635
  .whitespace-nowrap {
599
636
  white-space: nowrap
600
637
  }
601
- .whitespace-pre-wrap {
602
- white-space: pre-wrap
603
- }
604
638
  .rounded {
605
639
  border-radius: 0.25rem
606
640
  }
607
641
  .rounded-full {
608
642
  border-radius: 9999px
609
643
  }
644
+ .rounded-xl {
645
+ border-radius: 0.75rem
646
+ }
610
647
  .rounded-md {
611
648
  border-radius: 0.375rem
612
649
  }
@@ -723,6 +760,10 @@ body {
723
760
  padding-left: 0.5rem;
724
761
  padding-right: 0.5rem
725
762
  }
763
+ .py-1 {
764
+ padding-top: 0.25rem;
765
+ padding-bottom: 0.25rem
766
+ }
726
767
  .pt-4 {
727
768
  padding-top: 1rem
728
769
  }
@@ -777,8 +818,8 @@ body {
777
818
  .text-\[15px\] {
778
819
  font-size: 15px
779
820
  }
780
- .text-\[13px\] {
781
- font-size: 13px
821
+ .text-\[12px\] {
822
+ font-size: 12px
782
823
  }
783
824
  .text-xs {
784
825
  font-size: 12px
@@ -902,6 +943,9 @@ body {
902
943
  outline-offset: 2px
903
944
  }
904
945
  @media (min-width: 640px) {
946
+ .sm\:sticky {
947
+ position: sticky
948
+ }
905
949
  .sm\:m-3 {
906
950
  margin: 0.75rem
907
951
  }
@@ -942,12 +986,23 @@ body {
942
986
  --tw-border-opacity: 1;
943
987
  border-color: rgb(209 213 219 / var(--tw-border-opacity))
944
988
  }
989
+ .sm\:bg-gray-100 {
990
+ --tw-bg-opacity: 1;
991
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity))
992
+ }
945
993
  .sm\:p-0 {
946
994
  padding: 0px
947
995
  }
948
996
  .sm\:p-3 {
949
997
  padding: 0.75rem
950
998
  }
999
+ .sm\:px-3 {
1000
+ padding-left: 0.75rem;
1001
+ padding-right: 0.75rem
1002
+ }
1003
+ .sm\:pt-3 {
1004
+ padding-top: 0.75rem
1005
+ }
951
1006
  .sm\:shadow {
952
1007
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
953
1008
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -1103,6 +1158,44 @@ body {
1103
1158
  #steedosPageRoot{
1104
1159
  overflow: auto;
1105
1160
  }
1161
+
1162
+ .buttons-drawer .antd-Drawer-content{
1163
+ height: auto !important;
1164
+ max-height: 70% !important;
1165
+ }
1166
+
1167
+ .buttons-drawer .antd-Drawer-body{
1168
+ overflow: inherit !important;
1169
+ }
1170
+
1171
+ .buttons-drawer .antd-Drawer-body button{
1172
+ border-color: #c9c9c9;
1173
+ border-right: none !important;
1174
+ border-left: none !important;
1175
+ border-bottom: none !important;
1176
+ border-radius: 0px !important;;
1177
+ min-height: 50px;
1178
+ }
1179
+
1180
+ @media screen and (max-width: 767px) {
1181
+ /* 手机版Modal全屏 */
1182
+ .antd-Modal-content{
1183
+ max-height: 100% !important;
1184
+ margin: 0px !important;
1185
+ border-radius: 0px !important;
1186
+ height: 100% !important;
1187
+ }
1188
+
1189
+ /* 修正手机版TreeSelect样式异常 */
1190
+ .antd-TreeSelect-popup .antd-Tree{
1191
+ width: 100% !important;
1192
+ }
1193
+
1194
+ /* 修正手机版 body上的sidebar导致y滚动条异常 */
1195
+ .sidebar{
1196
+ padding-bottom: 0px !important;
1197
+ }
1198
+ }
1106
1199
  .steedos-listview .is-loading .antd-Table-contentWrap {
1107
1200
  height: 50px;
1108
1201
  }
@@ -1179,48 +1272,74 @@ body {
1179
1272
  height: -webkit-fill-available !important;
1180
1273
  }
1181
1274
 
1182
- .antd-AmisGlobalFooter .antd-Nav-Menu-item,
1183
- .antd-AmisGlobalFooter .antd-Nav-Menu-submenu-title,
1184
- .antd-AmisGlobalFooter .antd-Nav-Menu-overflow-item-rest {
1275
+ .steedos-global-footer {
1276
+ border-top: 1px solid rgb(203 213 225);
1277
+ }
1278
+ .steedos-global-footer .antd-Nav-Menu-item,
1279
+ .steedos-global-footer .antd-Nav-Menu-submenu-title {
1280
+ padding-bottom: 5px !important;
1281
+ }
1282
+ .steedos-global-footer .antd-Nav-Menu-item,
1283
+ .steedos-global-footer .antd-Nav-Menu-submenu-title,
1284
+ .steedos-global-footer .antd-Nav-Menu-overflow-item-rest {
1185
1285
  background-color: rgb(243 244 246) !important;
1186
1286
  }
1187
- .antd-AmisGlobalFooter .antd-Nav-Menu-submenu-selected {
1287
+ .steedos-global-footer .antd-Nav-Menu-submenu-selected {
1188
1288
  border-bottom: none !important;
1189
1289
  }
1190
- .antd-AmisGlobalFooter .antd-Nav-Menu-item.antd-Nav-Menu-item-selected:after {
1290
+ .steedos-global-footer .antd-Nav-Menu-item.antd-Nav-Menu-item-selected:after {
1191
1291
  width: 0;
1192
1292
  }
1193
- #steedos-global-footer .antd-Nav-Menu-horizontal.antd-Nav-Menu-light > .antd-Nav-Menu-submenu-selected .antd-Nav-Menu-item-icon,
1194
- #steedosGlobalFooterRoot .antd-Nav-Menu-horizontal.antd-Nav-Menu-light .antd-Nav-Menu-item-icon {
1195
- color: rgb(51 65 85);
1293
+ .steedos-global-footer .antd-Nav-Menu-item-wrap svg {
1294
+ background-color: unset;
1295
+ fill: #64748b;
1196
1296
  }
1197
- .antd-AmisGlobalFooter .antd-Nav-Menu-submenu-open .antd-Nav-Menu-item-icon {
1297
+ .steedos-global-footer .antd-Nav-Menu-item-selected .text-slate-700 {
1198
1298
  color: #0970d1 !important;
1199
1299
  }
1200
- .antd-AmisGlobalFooter .antd-Nav-Menu-item-selected .text-slate-700,
1201
- .footer-popup .antd-Nav-Menu-item-selected .text-slate-700 {
1202
- color: #0970d1 !important;
1203
- }
1204
- .antd-AmisGlobalFooter .antd-Nav-Menu-item-selected svg,
1205
- .footer-popup .antd-Nav-Menu-item-selected svg {
1300
+ .steedos-global-footer .antd-Nav-Menu-item-selected svg {
1206
1301
  fill: #0970d1;
1207
1302
  }
1208
- .antd-AmisGlobalFooter .antd-Nav-Menu-item-link,
1209
- .antd-AmisGlobalFooter .antd-Nav-Menu-item-wrap,
1303
+ .steedos-global-footer .antd-Nav-Menu-item-link,
1304
+ .steedos-global-footer .antd-Nav-Menu-item-wrap,
1210
1305
  .antd-Nav-Menu-overflow-item {
1211
1306
  height: 100% !important;
1212
1307
  }
1213
- .antd-AmisGlobalFooter .antd-Nav-Menu-submenu-title {
1308
+ .steedos-global-footer-popup .antd-Nav-Menu-item-wrap {
1309
+ align-items: center;
1310
+ }
1311
+ .steedos-global-footer .antd-Nav-Menu-submenu-title {
1214
1312
  height: 100% !important;
1215
1313
  display: flex;
1216
1314
  align-items: center;
1217
1315
  }
1218
- .footer-popup .nav-label {
1316
+ .steedos-global-footer-popup .nav-label {
1219
1317
  flex-direction: unset !important;
1220
1318
  }
1221
- .footer-popup {
1222
- max-height: 50vh;
1319
+ .steedos-global-footer-popup {
1320
+ width: 100%;
1321
+ top: 54px !important;
1322
+ bottom: 64px;
1323
+ position: fixed;
1324
+ }
1325
+ .steedos-global-footer-popup .antd-Nav-Menu {
1326
+ height: 100%;
1223
1327
  overflow: auto;
1328
+ box-shadow: none;
1329
+ }
1330
+ .steedos-global-footer-popup .antd-Nav-Menu-item {
1331
+ padding-bottom: 10px;
1332
+ padding-top: 10px;
1333
+ border-bottom: 0.5px solid #e5e7eb;
1334
+ }
1335
+ .steedos-global-footer-popup .antd-Nav-Menu-item svg {
1336
+ margin-right: 12px;
1337
+ }
1338
+ .steedos-global-footer-popup .nav-label {
1339
+ font-size: 17px;
1340
+ }
1341
+ .steedos-global-footer-popup .antd-Nav-Menu-item-label-subTitle {
1342
+ max-width: 100% !important;
1224
1343
  }
1225
1344
  .steedos-global-footer-root .antd-Nav-Menu-horizontal.antd-Nav-Menu-light {
1226
1345
  background-color: rgb(243 244 246);
@@ -1229,15 +1348,30 @@ body {
1229
1348
  .steedos-object-listview .antd-Table-content {
1230
1349
  max-height: calc(100vh - 263px);
1231
1350
  }
1351
+ .steedos-global-footer-root .antd-Nav-Menu-horizontal:after {
1352
+ /*手机端底部导航左右间隔不平衡*/
1353
+ content: unset;
1354
+ }
1355
+ }
1356
+ .steedos-global-footer ul {
1357
+ order: unset !important;
1232
1358
  }
1233
1359
 
1234
1360
  .sidebar-wrapper {
1235
- transition: 0.5s ease translate;
1236
- translate: -100% 0;
1361
+ transition: 0.5s ease transform;
1237
1362
  will-change: transform;
1363
+ transform: translate(-100%, 0);
1364
+ -webkit-transform: translate(-100%, 0);
1365
+ -moz-transform: translate(-100%, 0);
1366
+ -ms-transform: translate(-100%, 0);
1367
+ -o-transform: translate(-100%, 0);
1238
1368
  }
1239
1369
  body.sidebar-open .sidebar-wrapper {
1240
- translate: 0 0;
1370
+ transform: translate(0, 0);
1371
+ -webkit-transform: translate(0, 0);
1372
+ -moz-transform: translate(0, 0);
1373
+ -ms-transform: translate(0, 0);
1374
+ -o-transform: translate(0, 0);
1241
1375
  }
1242
1376
  body.sidebar #sidebar {
1243
1377
  margin-top: 50px;
@@ -1271,6 +1405,10 @@ body.sidebar #sidebar {
1271
1405
  }
1272
1406
  }
1273
1407
 
1408
+ .steedos-select-flow-service .antd-TreeControl > .antd-Tree {
1409
+ max-height: unset;
1410
+ }
1411
+
1274
1412
  .steedos-amis-instance-view {
1275
1413
  font-size: 0.8125rem;
1276
1414
  }