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

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.
@@ -13,6 +13,7 @@ export declare const AmisInputTable: (props: any) => Promise<{
13
13
  showTableAddBtn: boolean;
14
14
  showFooterAddBtn: boolean;
15
15
  className: any;
16
+ pipeOut: (value: any, data: any) => any;
16
17
  }[];
17
18
  className: any;
18
19
  id: string;
@@ -23,10 +23,10 @@ export declare const AmisRecordDetail: (props: any) => Promise<{
23
23
  objectApiName: string;
24
24
  recordId: string;
25
25
  id: string;
26
+ showButtons: any;
27
+ showBackButton: any;
26
28
  })[];
27
- data: {
28
- "_master.objectName": string;
29
- "_master.recordId": string;
30
- };
29
+ objectApiName: string;
30
+ recordId: string;
31
31
  onEvent: any;
32
32
  }>;
@@ -3,13 +3,6 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
3
3
  type: string;
4
4
  id: string;
5
5
  name: string;
6
- data: {
7
- objectName: any;
8
- _id: any;
9
- recordPermissions: any;
10
- uiSchema: any;
11
- record: string;
12
- };
13
6
  body: {
14
7
  type: string;
15
8
  className: string;
@@ -49,14 +42,10 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
49
42
  className: string;
50
43
  }[];
51
44
  }[];
52
- className?: undefined;
53
- tpl?: undefined;
54
45
  } | {
55
46
  type: string;
56
47
  className: string;
57
48
  tpl: string;
58
- onEvent?: undefined;
59
- body?: undefined;
60
49
  })[];
61
50
  md: string;
62
51
  className: string;
@@ -80,51 +69,7 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
80
69
  } | {
81
70
  body: {
82
71
  type: string;
83
- items: {
84
- type: string;
85
- name: any;
86
- objectName: any;
87
- visibleOn: any;
88
- className: string;
89
- }[] | {
90
- type: string;
91
- icon: string;
92
- visibleOn: string;
93
- onEvent: {
94
- click: {
95
- actions: {
96
- actionType: string;
97
- drawer: {
98
- type: string;
99
- title: string;
100
- id: string;
101
- body: {
102
- type: string;
103
- id: string;
104
- vertical: boolean;
105
- tiled: boolean;
106
- buttons: {
107
- type: string;
108
- name: any;
109
- objectName: any;
110
- visibleOn: any;
111
- }[];
112
- btnLevel: string;
113
- className: string;
114
- btnClassName: string;
115
- size: string;
116
- }[];
117
- position: string;
118
- closeOnOutside: boolean;
119
- resizable: boolean;
120
- className: string;
121
- bodyClassName: string;
122
- actions: any[];
123
- };
124
- }[];
125
- };
126
- };
127
- };
72
+ items: any[];
128
73
  };
129
74
  md: string;
130
75
  columnClassName?: undefined;
@@ -0,0 +1,31 @@
1
+ import './AmisRecordDetailMini.less';
2
+ export declare const AmisRecordDetailMini: (props: any) => Promise<{
3
+ type: string;
4
+ wrapWithPanel: boolean;
5
+ actions: any[];
6
+ initApi: {
7
+ method: string;
8
+ url: string;
9
+ cache: number;
10
+ requestAdaptor: string;
11
+ adaptor: string;
12
+ data: {
13
+ query: string;
14
+ };
15
+ headers: {
16
+ Authorization: string;
17
+ };
18
+ };
19
+ body: {
20
+ type: string;
21
+ className: string;
22
+ body: {
23
+ type: string;
24
+ showButtons: boolean;
25
+ showBackButton: boolean;
26
+ objectApiName: string;
27
+ recordId: string;
28
+ }[];
29
+ hiddenOn: string;
30
+ };
31
+ }>;
@@ -1,10 +1,46 @@
1
1
  export declare const AmisRecordService: (props: any) => Promise<{
2
2
  type: string;
3
- body: any[];
4
- data: {
5
- "_master.objectName": string;
6
- "_master.recordId": string;
3
+ className: string;
4
+ onEvent: {
5
+ [x: string]: {
6
+ actions: ({
7
+ actionType: string;
8
+ componentId: string;
9
+ expression: string;
10
+ script?: undefined;
11
+ } | {
12
+ actionType: string;
13
+ script: string;
14
+ expression: string;
15
+ componentId?: undefined;
16
+ })[];
17
+ };
18
+ };
19
+ body: {
20
+ type: string;
21
+ id: string;
22
+ className: string;
23
+ api: {
24
+ method: string;
25
+ url: string;
26
+ cache: number;
27
+ requestAdaptor: string;
28
+ adaptor: string;
29
+ data: {
30
+ query: string;
31
+ };
32
+ headers: {
33
+ Authorization: string;
34
+ };
35
+ };
36
+ body: {
37
+ type: string;
38
+ className: string;
39
+ body: any;
40
+ hiddenOn: string;
41
+ };
42
+ data: any;
43
+ style: any;
44
+ onEvent: any;
7
45
  };
8
- style: any;
9
- onEvent: any;
10
46
  }>;
@@ -19,3 +19,4 @@ export * from './AmisSteedosField';
19
19
  export * from './AmisSelectFlow';
20
20
  export * from './AmisInstanceDetail';
21
21
  export * from './AmisInputTable';
22
+ export * from './AmisRecordDetailMini';
@@ -278,7 +278,7 @@ fieldset.antd-Collapse > legend{
278
278
  /* crud中的顶部选中项未垂直居中 */
279
279
  .antd-Crud .antd-Crud-selection{
280
280
  padding: var(--gap-sm);
281
- border-bottom: 1px solid var(--Table-thead-borderColor);
281
+ /* border-bottom: 1px solid var(--Table-thead-borderColor); */
282
282
  margin-bottom: 0;
283
283
  }
284
284
 
@@ -321,6 +321,26 @@ fieldset.antd-Collapse > legend{
321
321
  overflow: hidden;
322
322
  }
323
323
 
324
+
325
+ /* === amis 3.6 子表组件showIndex设置为false隐藏索引列后,且有嵌套行存在时,第一列样式顶部都多了空白半行 start === */
326
+ .antd-InputTable .antd-Table-primayCell .antd-Table-indent{
327
+ display: none;
328
+ }
329
+
330
+ .antd-InputTable .antd-Table-primayCell .antd-Table-expandSpace{
331
+ display: none;
332
+ }
333
+ /* === end === */
334
+
335
+ /* === amis 3.6 子表组件showIndex设置为false隐藏索引列后,children子行缩进样式末生效 start === */
336
+ .antd-InputTable .antd-Table-tr--2th .antd-Table-primayCell .antd-Table-expandSpace{
337
+ display: block;
338
+ height: 1rem;
339
+ float: left;
340
+ }
341
+ /* === end === */
342
+
343
+
324
344
  .ant-dropdown-menu {
325
345
  border: 1px solid #e5e5e5;
326
346
  border-radius: 0.25rem;
@@ -751,6 +771,9 @@ fieldset.antd-Collapse > legend{
751
771
  .justify-between {
752
772
  justify-content: space-between
753
773
  }
774
+ .gap-2 {
775
+ gap: 0.5rem
776
+ }
754
777
  .gap-x-3 {
755
778
  -moz-column-gap: 0.75rem;
756
779
  column-gap: 0.75rem
@@ -783,8 +806,8 @@ fieldset.antd-Collapse > legend{
783
806
  .whitespace-nowrap {
784
807
  white-space: nowrap
785
808
  }
786
- .break-all {
787
- word-break: break-all
809
+ .break-words {
810
+ overflow-wrap: break-word
788
811
  }
789
812
  .rounded {
790
813
  border-radius: 0.25rem
@@ -926,6 +949,9 @@ fieldset.antd-Collapse > legend{
926
949
  .pt-0 {
927
950
  padding-top: 0px
928
951
  }
952
+ .pb-0 {
953
+ padding-bottom: 0px
954
+ }
929
955
  .pl-1\.5 {
930
956
  padding-left: 0.375rem
931
957
  }
@@ -938,9 +964,6 @@ fieldset.antd-Collapse > legend{
938
964
  .pl-5 {
939
965
  padding-left: 1.25rem
940
966
  }
941
- .pb-0 {
942
- padding-bottom: 0px
943
- }
944
967
  .pb-16 {
945
968
  padding-bottom: 4rem
946
969
  }
@@ -1165,6 +1188,11 @@ fieldset.antd-Collapse > legend{
1165
1188
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
1166
1189
  }
1167
1190
  }
1191
+ @media (min-width: 768px) {
1192
+ .md\:p-2 {
1193
+ padding: 0.5rem
1194
+ }
1195
+ }
1168
1196
  @media (min-width: 1024px) {
1169
1197
  .lg\:z-50 {
1170
1198
  z-index: 50
@@ -1894,11 +1922,18 @@ body.steedos {
1894
1922
  }
1895
1923
  /* amis3.2版本快速编辑单元格样式:end */
1896
1924
  .steedos-object-table thead tr th:nth-last-child(2),
1925
+ .steedos-object-table colgroup col:nth-last-child(2),
1926
+ .steedos-object-table tbody tr td:nth-last-child(2) {
1927
+ padding: 0;
1928
+ border: 0;
1929
+ }
1897
1930
  .steedos-object-table colgroup col:nth-last-child(2) {
1898
- display: none;
1931
+ width: 0.5px !important;
1932
+ min-width: 0.5px !important;
1899
1933
  }
1900
1934
  .steedos-object-table tbody td.antd-Field--quickEditable .antd-Field-quickEditBtn {
1901
- padding-right: 13px;
1935
+ padding-top: 3px;
1936
+ float: right;
1902
1937
  }
1903
1938
  .steedos-object-table tbody td.antd-Field--quickEditable .antd-Field-quickEditBtn svg {
1904
1939
  display: none;
@@ -1915,12 +1950,6 @@ body.steedos {
1915
1950
  .steedos-object-table .datetime-min-w {
1916
1951
  min-width: 12em;
1917
1952
  }
1918
- .steedos-object-table .antd-Table-table thead tr th {
1919
- height: 32px !important;
1920
- }
1921
- .steedos-object-table .antd-Table-table tbody tr {
1922
- height: 46px;
1923
- }
1924
1953
  .page-list-split .steedos-object-table .antd-Table-table tbody tr.antd-Table-placeholder {
1925
1954
  height: var(--Table-placeholder-height);
1926
1955
  }
@@ -2034,6 +2063,62 @@ body.steedos {
2034
2063
  }
2035
2064
  }
2036
2065
 
2066
+ .compact-layouts {
2067
+ display: grid;
2068
+ grid-template-columns: repeat(5, minmax(0, 1fr));
2069
+ row-gap: 0rem;
2070
+ -moz-column-gap: 1rem;
2071
+ column-gap: 1rem;
2072
+ }
2073
+ .compact-layouts .antd-Form-item {
2074
+ margin-bottom: 0px;
2075
+ }
2076
+ .compact-layouts .antd-Form-label {
2077
+ margin-bottom: 0px;
2078
+ }
2079
+ .compact-layouts .antd-PopOver {
2080
+ min-width: 420px;
2081
+ max-width: 420px;
2082
+ }
2083
+ .compact-layouts .antd-PopOver .antd-Panel {
2084
+ overflow-y: auto;
2085
+ height: 100%;
2086
+ }
2087
+ .compact-layouts .steedos-field-lookup-each .antd-Form-static {
2088
+ overflow: visible;
2089
+ text-overflow: clip;
2090
+ white-space: normal;
2091
+ }
2092
+ .compact-layouts .antd-Form-static,
2093
+ .compact-layouts .antd-MultilineText-display {
2094
+ overflow: hidden;
2095
+ text-overflow: ellipsis;
2096
+ white-space: nowrap;
2097
+ }
2098
+ .steedos-field-lookup-wrapper .antd-PopOver {
2099
+ min-width: 420px;
2100
+ max-width: 420px;
2101
+ }
2102
+ .steedos-record-detail-popover > .antd-Panel-body {
2103
+ padding: 0px;
2104
+ }
2105
+ .steedos-record-detail-popover > .antd-Panel-body > .antd-Form {
2106
+ display: block;
2107
+ }
2108
+ .steedos-record-detail-popover .compact-layouts {
2109
+ display: grid;
2110
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2111
+ }
2112
+ .steedos-record-detail-popover .compact-layouts .antd-Form-item {
2113
+ padding: 0px;
2114
+ display: block;
2115
+ }
2116
+ .steedos-record-detail-popover .compact-layouts .antd-Form-item .antd-Form-label {
2117
+ max-width: 100%;
2118
+ }
2119
+ .steedos-record-detail-popover .compact-layouts .antd-Form-item .antd-Form-item-controlBox {
2120
+ max-width: 100%;
2121
+ }
2037
2122
  @media (max-width: 768px) {
2038
2123
  .record-detail-header-name {
2039
2124
  display: -webkit-box;
@@ -2042,6 +2127,22 @@ body.steedos {
2042
2127
  -webkit-line-clamp: 2;
2043
2128
  -webkit-box-orient: vertical;
2044
2129
  }
2130
+ .compact-layouts {
2131
+ display: block;
2132
+ }
2133
+ .compact-layouts .antd-Form-item {
2134
+ padding: 0px;
2135
+ display: block;
2136
+ }
2137
+ .compact-layouts .antd-Form-item .antd-Form-label {
2138
+ max-width: 100%;
2139
+ }
2140
+ .compact-layouts .antd-Form-item .antd-Form-item-controlBox {
2141
+ max-width: 100%;
2142
+ }
2143
+ }
2144
+ .steedos-field-lookup-wrapper {
2145
+ display: block !important;
2045
2146
  }
2046
2147
 
2047
2148
  .steedos-context-bar .antd-Nav-list {
@@ -2316,3 +2417,12 @@ body.sidebar #sidebar {
2316
2417
  border: none;
2317
2418
  color: #000;
2318
2419
  }
2420
+
2421
+
2422
+ .steedos-record-selected {
2423
+ background: var(--Table-onChecked-bg) !important;
2424
+ color: var(--Table-onChecked-color) !important;
2425
+ }
2426
+ .steedos-record-selected span {
2427
+ color: var(--Table-onChecked-color) !important;
2428
+ }