@steedos-widgets/amis-object 1.0.13 → 1.0.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.
@@ -1,7 +1,7 @@
1
1
  import './AmisAppMenu.less';
2
2
  export declare const AmisAppMenu: (props: any) => Promise<{
3
3
  type: string;
4
- className: any;
4
+ className: string;
5
5
  stacked: any;
6
6
  overflow: any;
7
7
  indentSize: any;
@@ -8,22 +8,14 @@ export declare const AmisRecordDetail: (props: any) => Promise<{
8
8
  id: string;
9
9
  onEvent: {
10
10
  recordLoaded: {
11
- actions: ({
11
+ actions: {
12
12
  actionType: string;
13
13
  data: {
14
14
  name: string;
15
+ record: string;
16
+ recordLoaded: boolean;
15
17
  };
16
- args?: undefined;
17
- } | {
18
- actionType: string;
19
- args: {
20
- value: {
21
- record: string;
22
- recordLoaded: boolean;
23
- };
24
- };
25
- data?: undefined;
26
- })[];
18
+ }[];
27
19
  };
28
20
  };
29
21
  className?: undefined;
@@ -3,11 +3,7 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
3
3
  bodyClassName: string;
4
4
  name: string;
5
5
  data: {
6
- context: {
7
- rootUrl: any;
8
- tenantId: any;
9
- authToken: any;
10
- };
6
+ "&": string;
11
7
  objectName: any;
12
8
  _id: any;
13
9
  recordPermissions: any;
@@ -15,11 +11,6 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
15
11
  };
16
12
  body: {
17
13
  type: string;
18
- data: {
19
- "&": string;
20
- record: string;
21
- recordLoaded: string;
22
- };
23
14
  body: {
24
15
  type: string;
25
16
  className: string;
@@ -16,6 +16,7 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
16
16
  perPage: any;
17
17
  hiddenEmptyTable: boolean;
18
18
  appId: any;
19
+ label: any;
19
20
  }[];
20
21
  level?: undefined;
21
22
  showIcon?: undefined;
@@ -0,0 +1,10 @@
1
+ export declare const AmisSteedosField: (props: any) => Promise<{
2
+ type: any;
3
+ tpl: string;
4
+ value: string | number | boolean;
5
+ multiple: boolean;
6
+ extractValue: boolean;
7
+ className: any;
8
+ quickEdit: boolean;
9
+ visibleOn: string;
10
+ }>;
@@ -13,3 +13,4 @@ export * from './AmisAppLauncher';
13
13
  export * from './AmisLogo';
14
14
  export * from './AmisAppMenu';
15
15
  export * from './AmisGlobalHeader';
16
+ export * from './AmisSteedosField';
@@ -39,7 +39,7 @@
39
39
  --button-enhance-default-bg-color: white;
40
40
  --Nav-item-borderRadius: 0px;
41
41
  --Nav-item-onHover-bg: rgba(21,137,238,.1);
42
- --Nav-item-onActive-bg: rgba(21,137,238,.1);
42
+ --Nav-item-onActive-bg: rgba(27, 34, 41, 0.1);
43
43
  --Nav-item-onActive-color: #000;
44
44
  --Crud-toolbar-gap: 2px;
45
45
  }
@@ -130,6 +130,10 @@ body {
130
130
  box-shadow:var(--link-color) 4px 0 0 inset;
131
131
  }
132
132
 
133
+ .antd-Pagination > li > a, .antd-Pagination > li > span {
134
+ display: flex;
135
+ }
136
+
133
137
  .ant-dropdown-menu {
134
138
  border: 1px solid #e5e5e5;
135
139
  border-radius: 0.25rem;
@@ -166,6 +170,13 @@ body {
166
170
  background: #ffffff
167
171
  }
168
172
 
173
+ .antd-Select--multi .antd-Select-valueWrap{
174
+ display: flex;
175
+ }
176
+ .antd-Select--multi .antd-Select-valueWrap .antd-Select-value{
177
+ display: flex;
178
+ align-items: center;
179
+ }
169
180
  /* @tailwind base; */
170
181
  .container {
171
182
  width: 100%
@@ -219,9 +230,6 @@ body {
219
230
  .m-2 {
220
231
  margin: 0.5rem
221
232
  }
222
- .mt-3 {
223
- margin-top: 0.75rem
224
- }
225
233
  .mb-4 {
226
234
  margin-bottom: 1rem
227
235
  }
@@ -303,9 +311,6 @@ body {
303
311
  .w-4 {
304
312
  width: 1rem
305
313
  }
306
- .w-56 {
307
- width: 14rem
308
- }
309
314
  .w-20 {
310
315
  width: 5rem
311
316
  }
@@ -413,16 +418,16 @@ body {
413
418
  --tw-bg-opacity: 1;
414
419
  background-color: rgb(255 255 255 / var(--tw-bg-opacity))
415
420
  }
421
+ .bg-gray-100 {
422
+ --tw-bg-opacity: 1;
423
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity))
424
+ }
416
425
  .\!bg-transparent {
417
426
  background-color: transparent !important
418
427
  }
419
428
  .bg-transparent {
420
429
  background-color: transparent
421
430
  }
422
- .bg-gray-100 {
423
- --tw-bg-opacity: 1;
424
- background-color: rgb(243 244 246 / var(--tw-bg-opacity))
425
- }
426
431
  .fill-slate-500 {
427
432
  fill: #64748b
428
433
  }
@@ -454,10 +459,6 @@ body {
454
459
  padding-top: 0.5rem;
455
460
  padding-bottom: 0.5rem
456
461
  }
457
- .px-2 {
458
- padding-left: 0.5rem;
459
- padding-right: 0.5rem
460
- }
461
462
  .pt-4 {
462
463
  padding-top: 1rem
463
464
  }
@@ -573,10 +574,6 @@ body {
573
574
  .sm\:rounded-lg {
574
575
  border-radius: 0.5rem
575
576
  }
576
- .sm\:rounded-t {
577
- border-top-left-radius: 0.25rem;
578
- border-top-right-radius: 0.25rem
579
- }
580
577
  .sm\:rounded-tl {
581
578
  border-top-left-radius: 0.25rem
582
579
  }
@@ -633,11 +630,15 @@ body {
633
630
  width: 1rem !important;
634
631
  height: 1rem !important;
635
632
  }
636
- .steedos-record-related-list .textarea {
633
+ .steedos-record-related-list .min-w-56 {
634
+ min-width: 220px;
635
+ }
636
+ .steedos-record-related-list .textarea span {
637
637
  -webkit-line-clamp: 3;
638
638
  display: -webkit-box;
639
639
  -webkit-box-orient: vertical;
640
640
  overflow: hidden;
641
+ text-overflow: ellipsis;
641
642
  }
642
643
  .steedos-listview .antd-Images {
643
644
  display: inline !important;
@@ -646,11 +647,21 @@ body {
646
647
  width: 1rem !important;
647
648
  height: 1rem !important;
648
649
  }
649
- .steedos-listview .textarea {
650
+ .steedos-listview .min-w-56 {
651
+ min-width: 220px;
652
+ }
653
+ .steedos-listview .textarea span {
650
654
  -webkit-line-clamp: 3;
651
655
  display: -webkit-box;
652
656
  -webkit-box-orient: vertical;
653
657
  overflow: hidden;
658
+ text-overflow: ellipsis;
659
+ }
660
+ @media (max-width: 576px) {
661
+ .antd-Crud-toolbar {
662
+ flex-basis: 0;
663
+ flex-grow: 1;
664
+ }
654
665
  }
655
666
 
656
667
 
@@ -658,6 +669,13 @@ body {
658
669
  padding: 0px !important;
659
670
  }
660
671
 
672
+ .steedos-listview .is-loading .antd-Table-contentWrap {
673
+ height: 50px;
674
+ }
675
+ .steedos-record-related-list .is-loading .antd-Table-contentWrap {
676
+ height: 50px;
677
+ }
678
+
661
679
  @media (min-width: 767px) {
662
680
  .steedos-amis-form .antd-Collapse .antd-Form--normal,
663
681
  .steedos-amis-form .antd-Form--normal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {
@@ -675,6 +693,9 @@ body {
675
693
  -moz-column-gap: 1rem;
676
694
  column-gap: 1rem;
677
695
  }
696
+ .steedos-amis-form .antd-Collapse .antd-Form--quickEdit {
697
+ grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
698
+ }
678
699
  }
679
700
 
680
701
  .steedos-context-bar .antd-Nav-list {
@@ -707,6 +728,9 @@ body {
707
728
  .antd-Nav .antd-Nav-list--stacked .antd-Badge .antd-Nav-itemToggler {
708
729
  height: auto;
709
730
  }
731
+ .h-fill {
732
+ height: -webkit-fill-available !important;
733
+ }
710
734
 
711
735
  .sidebar-wrapper {
712
736
  background: #1f2937;