@steedos-widgets/amis-object 1.0.18 → 1.0.20
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/amis/AmisRecordDetailHeader.d.ts +46 -43
- package/dist/amis/AmisRecordDetailRelatedList.d.ts +21 -1
- package/dist/amis/AmisRecordDetailRelatedLists.d.ts +5 -1
- package/dist/amis-object.cjs.css +110 -18
- package/dist/amis-object.cjs.js +1 -1
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +110 -18
- package/dist/amis-object.esm.js +1 -1
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +110 -18
- package/dist/amis-object.umd.js +1 -1
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets-dev.json +11 -11
- package/dist/assets.json +10 -10
- package/dist/components/SteedosLoading.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/meta.js +392 -293
- package/dist/metas/SteedosLoading.d.ts +2 -0
- package/dist/pages/PageListView.d.ts +1 -0
- package/dist/pages/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -8,62 +8,65 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
8
8
|
_id: any;
|
|
9
9
|
recordPermissions: any;
|
|
10
10
|
uiSchema: any;
|
|
11
|
+
record: string;
|
|
11
12
|
};
|
|
12
13
|
body: {
|
|
13
14
|
type: string;
|
|
15
|
+
data: {
|
|
16
|
+
"&": string;
|
|
17
|
+
objectName: any;
|
|
18
|
+
_id: any;
|
|
19
|
+
recordPermissions: string;
|
|
20
|
+
uiSchema: any;
|
|
21
|
+
};
|
|
14
22
|
body: {
|
|
15
23
|
type: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
columns: ({
|
|
23
|
-
body: {
|
|
24
|
-
type: string;
|
|
25
|
-
className: string;
|
|
26
|
-
tpl: string;
|
|
27
|
-
};
|
|
28
|
-
md: string;
|
|
24
|
+
columns: ({
|
|
25
|
+
body: {
|
|
26
|
+
type: string;
|
|
27
|
+
columns: ({
|
|
28
|
+
body: {
|
|
29
|
+
type: string;
|
|
29
30
|
className: string;
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type: string;
|
|
34
|
-
tpl: string;
|
|
35
|
-
inline: boolean;
|
|
36
|
-
wrapperComponent: string;
|
|
37
|
-
className: string;
|
|
38
|
-
}[];
|
|
39
|
-
columnClassName: string;
|
|
40
|
-
md?: undefined;
|
|
41
|
-
className?: undefined;
|
|
42
|
-
})[];
|
|
31
|
+
tpl: string;
|
|
32
|
+
};
|
|
33
|
+
md: string;
|
|
43
34
|
className: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} | {
|
|
48
|
-
body: {
|
|
49
|
-
type: string;
|
|
50
|
-
items: {
|
|
35
|
+
columnClassName: string;
|
|
36
|
+
} | {
|
|
37
|
+
body: {
|
|
51
38
|
type: string;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
39
|
+
tpl: string;
|
|
40
|
+
inline: boolean;
|
|
41
|
+
wrapperComponent: string;
|
|
55
42
|
className: string;
|
|
56
43
|
}[];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
44
|
+
columnClassName: string;
|
|
45
|
+
md?: undefined;
|
|
46
|
+
className?: undefined;
|
|
47
|
+
})[];
|
|
48
|
+
className: string;
|
|
49
|
+
}[];
|
|
50
|
+
md: string;
|
|
51
|
+
} | {
|
|
52
|
+
body: {
|
|
53
|
+
type: string;
|
|
54
|
+
items: {
|
|
55
|
+
type: string;
|
|
56
|
+
name: any;
|
|
57
|
+
objectName: any;
|
|
58
|
+
visibleOn: any;
|
|
59
|
+
className: string;
|
|
60
|
+
}[];
|
|
61
|
+
};
|
|
62
|
+
md: string;
|
|
63
|
+
})[];
|
|
64
|
+
className: string;
|
|
64
65
|
}[];
|
|
65
66
|
messages: {};
|
|
67
|
+
hiddenOn: string;
|
|
66
68
|
}[];
|
|
69
|
+
className: string;
|
|
67
70
|
} & {
|
|
68
71
|
onEvent: any;
|
|
69
72
|
}>;
|
|
@@ -12,7 +12,27 @@ export declare const AmisRecordDetailRelatedList: (props: any) => Promise<{
|
|
|
12
12
|
objectName: any;
|
|
13
13
|
listViewId: string;
|
|
14
14
|
};
|
|
15
|
-
body:
|
|
15
|
+
body: {
|
|
16
|
+
data: {
|
|
17
|
+
"&": string;
|
|
18
|
+
appId: string;
|
|
19
|
+
app_id: string;
|
|
20
|
+
relatedKey: any;
|
|
21
|
+
objectName: string;
|
|
22
|
+
recordId: string;
|
|
23
|
+
defaultData: {
|
|
24
|
+
[x: number]: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type: string;
|
|
28
|
+
objectApiName: any;
|
|
29
|
+
columns: any;
|
|
30
|
+
extraColumns: any;
|
|
31
|
+
filters: any;
|
|
32
|
+
filtersFunction: any;
|
|
33
|
+
sort: string;
|
|
34
|
+
ctx: {};
|
|
35
|
+
}[];
|
|
16
36
|
} | {
|
|
17
37
|
type: string;
|
|
18
38
|
body: string;
|
|
@@ -6,6 +6,7 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
|
|
|
6
6
|
className: string;
|
|
7
7
|
} | {
|
|
8
8
|
type: string;
|
|
9
|
+
className: string;
|
|
9
10
|
body: {
|
|
10
11
|
type: string;
|
|
11
12
|
objectApiName: any;
|
|
@@ -13,6 +14,10 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
|
|
|
13
14
|
relatedObjectApiName: any;
|
|
14
15
|
foreign_key: any;
|
|
15
16
|
relatedKey: any;
|
|
17
|
+
columns: any;
|
|
18
|
+
sort: any;
|
|
19
|
+
filters: any;
|
|
20
|
+
visible_on: any;
|
|
16
21
|
perPage: any;
|
|
17
22
|
hiddenEmptyTable: boolean;
|
|
18
23
|
appId: any;
|
|
@@ -20,5 +25,4 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
|
|
|
20
25
|
}[];
|
|
21
26
|
level?: undefined;
|
|
22
27
|
showIcon?: undefined;
|
|
23
|
-
className?: undefined;
|
|
24
28
|
}>;
|
package/dist/amis-object.cjs.css
CHANGED
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
--Nav-item-onActive-bg: rgba(21,137,238,.1);
|
|
44
44
|
--Nav-item-onActive-color: #000;
|
|
45
45
|
--Crud-toolbar-gap: 2px;
|
|
46
|
+
--DropDown-caret-marginLeft: 0;
|
|
47
|
+
--Nav-Item-maxWidth--tabs: 200px;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
fieldset.antd-Collapse {
|
|
@@ -139,6 +141,10 @@ body {
|
|
|
139
141
|
border-collapse: separate;
|
|
140
142
|
}
|
|
141
143
|
|
|
144
|
+
.antd-DropDown-caret > svg {
|
|
145
|
+
top: 0px;
|
|
146
|
+
}
|
|
147
|
+
|
|
142
148
|
.ant-dropdown-menu {
|
|
143
149
|
border: 1px solid #e5e5e5;
|
|
144
150
|
border-radius: 0.25rem;
|
|
@@ -235,6 +241,10 @@ body {
|
|
|
235
241
|
.m-2 {
|
|
236
242
|
margin: 0.5rem
|
|
237
243
|
}
|
|
244
|
+
.my-2 {
|
|
245
|
+
margin-top: 0.5rem;
|
|
246
|
+
margin-bottom: 0.5rem
|
|
247
|
+
}
|
|
238
248
|
.mb-4 {
|
|
239
249
|
margin-bottom: 1rem
|
|
240
250
|
}
|
|
@@ -274,6 +284,12 @@ body {
|
|
|
274
284
|
.\!mb-6 {
|
|
275
285
|
margin-bottom: 1.5rem !important
|
|
276
286
|
}
|
|
287
|
+
.-ml-1 {
|
|
288
|
+
margin-left: -0.25rem
|
|
289
|
+
}
|
|
290
|
+
.mr-3 {
|
|
291
|
+
margin-right: 0.75rem
|
|
292
|
+
}
|
|
277
293
|
.mt-0\.5 {
|
|
278
294
|
margin-top: 0.125rem
|
|
279
295
|
}
|
|
@@ -304,6 +320,9 @@ body {
|
|
|
304
320
|
.h-4 {
|
|
305
321
|
height: 1rem
|
|
306
322
|
}
|
|
323
|
+
.h-\[20px\] {
|
|
324
|
+
height: 20px
|
|
325
|
+
}
|
|
307
326
|
.h-12 {
|
|
308
327
|
height: 3rem
|
|
309
328
|
}
|
|
@@ -316,6 +335,12 @@ body {
|
|
|
316
335
|
.h-7 {
|
|
317
336
|
height: 1.75rem
|
|
318
337
|
}
|
|
338
|
+
.h-full {
|
|
339
|
+
height: 100%
|
|
340
|
+
}
|
|
341
|
+
.h-8 {
|
|
342
|
+
height: 2rem
|
|
343
|
+
}
|
|
319
344
|
.max-h-96 {
|
|
320
345
|
max-height: 24rem
|
|
321
346
|
}
|
|
@@ -349,6 +374,9 @@ body {
|
|
|
349
374
|
.w-full {
|
|
350
375
|
width: 100%
|
|
351
376
|
}
|
|
377
|
+
.w-8 {
|
|
378
|
+
width: 2rem
|
|
379
|
+
}
|
|
352
380
|
.\!min-w-\[160px\] {
|
|
353
381
|
min-width: 160px !important
|
|
354
382
|
}
|
|
@@ -471,6 +499,9 @@ body {
|
|
|
471
499
|
.p-3 {
|
|
472
500
|
padding: 0.75rem
|
|
473
501
|
}
|
|
502
|
+
.p-1 {
|
|
503
|
+
padding: 0.25rem
|
|
504
|
+
}
|
|
474
505
|
.px-0 {
|
|
475
506
|
padding-left: 0px;
|
|
476
507
|
padding-right: 0px
|
|
@@ -556,6 +587,10 @@ body {
|
|
|
556
587
|
--tw-text-opacity: 1;
|
|
557
588
|
color: rgb(0 0 0 / var(--tw-text-opacity))
|
|
558
589
|
}
|
|
590
|
+
.text-gray-800 {
|
|
591
|
+
--tw-text-opacity: 1;
|
|
592
|
+
color: rgb(31 41 55 / var(--tw-text-opacity))
|
|
593
|
+
}
|
|
559
594
|
.text-blue-600 {
|
|
560
595
|
--tw-text-opacity: 1;
|
|
561
596
|
color: rgb(37 99 235 / var(--tw-text-opacity))
|
|
@@ -564,9 +599,19 @@ body {
|
|
|
564
599
|
--tw-text-opacity: 1;
|
|
565
600
|
color: rgb(51 65 85 / var(--tw-text-opacity))
|
|
566
601
|
}
|
|
602
|
+
.text-sky-500 {
|
|
603
|
+
--tw-text-opacity: 1;
|
|
604
|
+
color: rgb(14 165 233 / var(--tw-text-opacity))
|
|
605
|
+
}
|
|
567
606
|
.no-underline {
|
|
568
607
|
text-decoration-line: none
|
|
569
608
|
}
|
|
609
|
+
.opacity-25 {
|
|
610
|
+
opacity: 0.25
|
|
611
|
+
}
|
|
612
|
+
.opacity-75 {
|
|
613
|
+
opacity: 0.75
|
|
614
|
+
}
|
|
570
615
|
.shadow-none {
|
|
571
616
|
--tw-shadow: 0 0 #0000;
|
|
572
617
|
--tw-shadow-colored: 0 0 #0000;
|
|
@@ -583,10 +628,6 @@ body {
|
|
|
583
628
|
.\!filter {
|
|
584
629
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important
|
|
585
630
|
}
|
|
586
|
-
.hover\:bg-gray-50:hover {
|
|
587
|
-
--tw-bg-opacity: 1;
|
|
588
|
-
background-color: rgb(249 250 251 / var(--tw-bg-opacity))
|
|
589
|
-
}
|
|
590
631
|
.hover\:bg-sky-50:hover {
|
|
591
632
|
--tw-bg-opacity: 1;
|
|
592
633
|
background-color: rgb(240 249 255 / var(--tw-bg-opacity))
|
|
@@ -619,6 +660,10 @@ body {
|
|
|
619
660
|
.sm\:border {
|
|
620
661
|
border-width: 1px
|
|
621
662
|
}
|
|
663
|
+
.sm\:border-gray-300 {
|
|
664
|
+
--tw-border-opacity: 1;
|
|
665
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity))
|
|
666
|
+
}
|
|
622
667
|
.sm\:p-0 {
|
|
623
668
|
padding: 0px
|
|
624
669
|
}
|
|
@@ -676,17 +721,21 @@ body {
|
|
|
676
721
|
overflow: hidden;
|
|
677
722
|
text-overflow: ellipsis;
|
|
678
723
|
}
|
|
679
|
-
.steedos-listview .antd-Images
|
|
724
|
+
.steedos-listview .antd-Images,
|
|
725
|
+
.steedos-object-table .antd-Images {
|
|
680
726
|
display: inline !important;
|
|
681
727
|
}
|
|
682
|
-
.steedos-listview .antd-Image-thumb
|
|
728
|
+
.steedos-listview .antd-Image-thumb,
|
|
729
|
+
.steedos-object-table .antd-Image-thumb {
|
|
683
730
|
width: 1rem !important;
|
|
684
731
|
height: 1rem !important;
|
|
685
732
|
}
|
|
686
|
-
.steedos-listview .min-w-56
|
|
733
|
+
.steedos-listview .min-w-56,
|
|
734
|
+
.steedos-object-table .min-w-56 {
|
|
687
735
|
min-width: 220px;
|
|
688
736
|
}
|
|
689
|
-
.steedos-listview .textarea span
|
|
737
|
+
.steedos-listview .textarea span,
|
|
738
|
+
.steedos-object-table .textarea span {
|
|
690
739
|
-webkit-line-clamp: 3;
|
|
691
740
|
display: -webkit-box;
|
|
692
741
|
-webkit-box-orient: vertical;
|
|
@@ -694,30 +743,48 @@ body {
|
|
|
694
743
|
text-overflow: ellipsis;
|
|
695
744
|
}
|
|
696
745
|
@media (max-width: 576px) {
|
|
697
|
-
.steedos-listview .antd-Table-content table.antd-Table-table
|
|
746
|
+
.steedos-listview .antd-Table-content table.antd-Table-table,
|
|
747
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table {
|
|
698
748
|
display: block;
|
|
699
749
|
}
|
|
700
750
|
.steedos-listview .antd-Table-content table.antd-Table-table thead,
|
|
751
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table thead,
|
|
701
752
|
.steedos-listview .antd-Table-content table.antd-Table-table tbody,
|
|
753
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table tbody,
|
|
702
754
|
.steedos-listview .antd-Table-content table.antd-Table-table tr,
|
|
755
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table tr,
|
|
703
756
|
.steedos-listview .antd-Table-content table.antd-Table-table th,
|
|
704
|
-
.steedos-
|
|
757
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table th,
|
|
758
|
+
.steedos-listview .antd-Table-content table.antd-Table-table td,
|
|
759
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table td {
|
|
705
760
|
display: block;
|
|
706
761
|
}
|
|
707
|
-
.steedos-listview .antd-Table-content table.antd-Table-table thead
|
|
762
|
+
.steedos-listview .antd-Table-content table.antd-Table-table thead,
|
|
763
|
+
.steedos-object-table .antd-Table-content table.antd-Table-table thead {
|
|
708
764
|
display: none;
|
|
709
765
|
}
|
|
710
|
-
.steedos-listview .steedos-listview-item .steedos-listview-item-right
|
|
766
|
+
.steedos-listview .steedos-listview-item .steedos-listview-item-right,
|
|
767
|
+
.steedos-object-table .steedos-listview-item .steedos-listview-item-right {
|
|
711
768
|
max-width: 50%;
|
|
712
769
|
}
|
|
713
|
-
.steedos-listview .antd-Table-toolbar
|
|
770
|
+
.steedos-listview .antd-Table-toolbar,
|
|
771
|
+
.steedos-object-table .antd-Table-toolbar {
|
|
714
772
|
position: relative;
|
|
715
773
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
774
|
+
}
|
|
775
|
+
.antd-Table-toolbar .antd-Crud-loadMore .antd-Button {
|
|
776
|
+
border: none;
|
|
777
|
+
position: absolute;
|
|
778
|
+
bottom: -10px;
|
|
779
|
+
left: 30px;
|
|
780
|
+
right: 30px;
|
|
781
|
+
}
|
|
782
|
+
.antd-Table-toolbar .antd-Crud-loadMore .antd-Button.is-disabled {
|
|
783
|
+
display: none;
|
|
784
|
+
}
|
|
785
|
+
@media (max-width: 576px) {
|
|
786
|
+
.steedos-record-detail-related-lists .steedos-record-related-list .steedos-object-table .antd-Table-footToolbar {
|
|
787
|
+
display: none;
|
|
721
788
|
}
|
|
722
789
|
.antd-Crud-toolbar {
|
|
723
790
|
flex-basis: 0;
|
|
@@ -730,6 +797,9 @@ body {
|
|
|
730
797
|
padding: 0px !important;
|
|
731
798
|
}
|
|
732
799
|
|
|
800
|
+
#main {
|
|
801
|
+
overflow: scroll;
|
|
802
|
+
}
|
|
733
803
|
.steedos-listview .is-loading .antd-Table-contentWrap {
|
|
734
804
|
height: 50px;
|
|
735
805
|
}
|
|
@@ -764,6 +834,13 @@ body {
|
|
|
764
834
|
margin-bottom: 0;
|
|
765
835
|
}
|
|
766
836
|
}
|
|
837
|
+
.steedos-amis-form .antd-ComboControl .antd-Combo .antd-Form-row {
|
|
838
|
+
display: grid;
|
|
839
|
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
840
|
+
row-gap: 0rem;
|
|
841
|
+
-moz-column-gap: 1rem;
|
|
842
|
+
column-gap: 1rem;
|
|
843
|
+
}
|
|
767
844
|
|
|
768
845
|
.steedos-context-bar .antd-Nav-list {
|
|
769
846
|
border-bottom: 0px;
|
|
@@ -821,4 +898,19 @@ body.sidebar.sidebar-open #main {
|
|
|
821
898
|
body.sidebar.sidebar-open #main {
|
|
822
899
|
padding-left: 0;
|
|
823
900
|
}
|
|
901
|
+
.sidebar-overlay {
|
|
902
|
+
display: none;
|
|
903
|
+
}
|
|
904
|
+
body.sidebar.sidebar-open .sidebar-overlay {
|
|
905
|
+
display: block;
|
|
906
|
+
transition: ease-out opacity 0.2s;
|
|
907
|
+
position: fixed;
|
|
908
|
+
top: 50px;
|
|
909
|
+
right: 0;
|
|
910
|
+
bottom: 0;
|
|
911
|
+
left: 0;
|
|
912
|
+
z-index: 1;
|
|
913
|
+
background: rgba(0, 0, 0, 0.6);
|
|
914
|
+
opacity: 1;
|
|
915
|
+
}
|
|
824
916
|
}
|