@steedos-widgets/amis-object 1.0.1 → 1.0.5

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022, Steedos Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,77 @@
1
+ export declare const AmisAppLauncher: (props: any) => Promise<{
2
+ type: string;
3
+ label: string;
4
+ actionType: string;
5
+ className: string;
6
+ body: {
7
+ type: string;
8
+ className: string;
9
+ tpl: string;
10
+ id: string;
11
+ }[];
12
+ dialog: {
13
+ size: string;
14
+ title: {
15
+ type: string;
16
+ tpl: string;
17
+ className: string;
18
+ };
19
+ actions: any[];
20
+ body: {
21
+ type: string;
22
+ id: string;
23
+ affixFooter: boolean;
24
+ body: {
25
+ type: string;
26
+ activeKey: string[];
27
+ body: ({
28
+ type: string;
29
+ key: string;
30
+ header: string;
31
+ body: {
32
+ type: string;
33
+ name: string;
34
+ items: {
35
+ type: string;
36
+ tpl: string;
37
+ inline: boolean;
38
+ style: {};
39
+ className: string;
40
+ };
41
+ id: string;
42
+ className: string;
43
+ }[];
44
+ id?: undefined;
45
+ className?: undefined;
46
+ } | {
47
+ type: string;
48
+ key: string;
49
+ header: string;
50
+ body: {
51
+ type: string;
52
+ html: string;
53
+ className: string;
54
+ }[];
55
+ id: string;
56
+ className: string;
57
+ })[];
58
+ id: string;
59
+ }[];
60
+ className: string;
61
+ visibleOn: string;
62
+ clearValueOnHidden: boolean;
63
+ visible: boolean;
64
+ messages: {};
65
+ api: {
66
+ method: string;
67
+ url: string;
68
+ data: any;
69
+ headers: {
70
+ Authorization: string;
71
+ };
72
+ adaptor: string;
73
+ };
74
+ }[];
75
+ };
76
+ id: string;
77
+ }>;
@@ -0,0 +1,14 @@
1
+ export declare const AmisAppMenu: (props: any) => Promise<{
2
+ type: string;
3
+ stacked: any;
4
+ links: any[];
5
+ id: string;
6
+ source: {
7
+ method: string;
8
+ url: string;
9
+ adaptor: string;
10
+ headers: {
11
+ Authorization: string;
12
+ };
13
+ };
14
+ }>;
@@ -0,0 +1,5 @@
1
+ export declare const AmisLogo: (props: any) => Promise<{
2
+ type: string;
3
+ tpl: string;
4
+ id: string;
5
+ }>;
@@ -13,7 +13,7 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
13
13
  relatedObjectApiName: any;
14
14
  foreign_key: any;
15
15
  relatedKey: any;
16
- top: any;
16
+ perPage: any;
17
17
  hiddenEmptyTable: boolean;
18
18
  appId: any;
19
19
  }[];
@@ -8,3 +8,6 @@ export * from './AmisRecordDetailRelatedList';
8
8
  export * from './AmisRecordDetailRelatedLists';
9
9
  export * from './AmisSelectUser';
10
10
  export * from './AmisProvider';
11
+ export * from './AmisAppLauncher';
12
+ export * from './AmisLogo';
13
+ export * from './AmisAppMenu';
@@ -1,10 +1,12 @@
1
1
  :root {
2
+ --Page-main-bg: transparent;
2
3
  --fontFamilyBase: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
3
4
  --fontSizeLg: 14px;
4
5
  --Form-item-fontSize: 12px;
5
6
  --Form-fontSize: 14px;
6
7
  --Form-selectValue-fontSize: 14px;
7
8
  --Table-toolbar-marginY: 0;
9
+ --Table-borderWidth: 1px;
8
10
  --Table-borderColor: #d9dcde;
9
11
  --Table-thead-fontSize: 13px;
10
12
  --Table-fontSize: 13px;
@@ -39,6 +41,14 @@
39
41
  --Nav-item-onActive-color: #000;
40
42
  }
41
43
 
44
+ @media only screen and (min-width: 600px) {
45
+ body {
46
+ background: url(/images/defaultBackground.png);
47
+ background-size: contain;
48
+ background-repeat: no-repeat;
49
+ }
50
+ }
51
+
42
52
  fieldset.antd-Collapse {
43
53
  margin-bottom: 1rem;
44
54
  }
@@ -55,41 +65,11 @@ fieldset.antd-Collapse > legend.antd-Collapse-header > .antd-Collapse-arrow:befo
55
65
  border-color: initial
56
66
  }
57
67
 
58
-
59
- main {
60
- background: var(--body-bg);
61
- }
62
-
63
-
64
- .ant-modal-root .amis-scope .antd-Panel-footerWrap{
65
- position: sticky;
66
- width: 100%;
67
- bottom: 0px;
68
- background: #ffffff
69
- }
70
-
71
68
  .amis-scope .antd-Select-option > label {
72
69
  display: block;
73
70
  min-width: 100px;
74
71
  }
75
72
 
76
- /* .steedos-related-listview.amis-scope .antd-Table-headToolbar{
77
- display: none;
78
- } */
79
-
80
- /* .steedos-listview.amis-scope .antd-Table-headToolbar{
81
- display: none;
82
- } */
83
-
84
- .antd-Crud-toolbar{
85
- margin-left: 1rem;
86
- margin-right: 1rem;
87
- }
88
-
89
- #__next .antd-Panel {
90
- box-shadow: none;
91
- }
92
-
93
73
  .is-inline .antd-Combo-items{
94
74
  justify-content: space-between !important;
95
75
  display: flex !important;
@@ -108,67 +88,14 @@ main {
108
88
  margin-top: 0 !important;
109
89
  }
110
90
 
111
- /*Table空状态高度调整*/
112
- .antd-Table-placeholder{
113
- height: 20px !important;
114
- }
115
-
116
- .antd-Table-placeholder-empty-icon.icon{
117
- height: 20px !important;
118
- }
119
-
120
91
  .steedos-listview .antd-List-toolbar{
121
92
  display: none;
122
93
  }
123
94
 
124
- /* .steedos-listview .antd-Crud-toolbar:first-child{
125
- display: none;
126
- } */
127
-
128
- .amis-scope .antd-Card{
129
- border-left: none !important;
130
- border-right: none !important;
131
- -o-border-image: none !important;
132
- border-image: none !important;
133
- border-bottom: none !important;
134
- }
135
-
136
- .amis-scope svg.icon {
137
- vertical-align: baseline;
138
- display: inline;
139
- }
140
-
141
- button.antd-Button--primary {
142
- color: #fff;
143
- border-color: #1890ff;
144
- background: #1890ff;
145
- /* background-color: var(--Button--primary-bg); */
146
- }
147
-
148
- #__next .antd-Table {
149
- margin-bottom: 0;
150
- }
151
-
152
- #__next .antd-Table-tr--even {
153
- background-color: #fcfdfe;
154
- }
155
-
156
- #__next .antd-Table-checkCell {
157
- border-right: 0;
158
- }
159
-
160
95
  body {
161
96
  font-family: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
162
97
  }
163
98
 
164
- @media only screen and (min-width: 600px) {
165
- body {
166
- background: url(/images/defaultBackground.png);
167
- background-size: contain;
168
- background-repeat: no-repeat;
169
- }
170
- }
171
-
172
99
  @media (max-width: 768px){
173
100
  .ant-modal.antd-Modal--lg, .ant-modal.antd-Modal--xl, .ant-modal.antd-Modal--full{
174
101
  top: 0px !important;
@@ -187,11 +114,6 @@ body {
187
114
  outline: 0;
188
115
  }
189
116
 
190
- svg.icon {
191
- display: inherit;
192
- }
193
-
194
-
195
117
  /* fix: https://github.com/baidu/amis/issues/5073 */
196
118
  .antd-CBGroup-toolbar .antd-CBGroup-toolbarConditionAdd .antd-ButtonGroup>.antd-Button:first-child {
197
119
  margin-right: 1.5rem;
@@ -208,6 +130,10 @@ svg.icon {
208
130
  overflow: auto;
209
131
  }
210
132
 
133
+
134
+ .antd-Nav-item.is-active {
135
+ box-shadow:var(--link-color) 4px 0 0 inset;
136
+ }
211
137
  /* @tailwind base; */
212
138
  .container {
213
139
  width: 100%
@@ -240,6 +166,9 @@ svg.icon {
240
166
  .visible {
241
167
  visibility: visible
242
168
  }
169
+ .collapse {
170
+ visibility: collapse
171
+ }
243
172
  .static {
244
173
  position: static
245
174
  }
@@ -267,6 +196,12 @@ svg.icon {
267
196
  .ml-1 {
268
197
  margin-left: 0.25rem
269
198
  }
199
+ .-ml-px {
200
+ margin-left: -1px
201
+ }
202
+ .mr-1 {
203
+ margin-right: 0.25rem
204
+ }
270
205
  .mb-3 {
271
206
  margin-bottom: 0.75rem
272
207
  }
@@ -291,18 +226,42 @@ svg.icon {
291
226
  .hidden {
292
227
  display: none
293
228
  }
229
+ .h-12 {
230
+ height: 3rem
231
+ }
232
+ .h-6 {
233
+ height: 1.5rem
234
+ }
235
+ .h-7 {
236
+ height: 1.75rem
237
+ }
294
238
  .h-4 {
295
239
  height: 1rem
296
240
  }
297
241
  .w-56 {
298
242
  width: 14rem
299
243
  }
244
+ .w-20 {
245
+ width: 5rem
246
+ }
247
+ .w-12 {
248
+ width: 3rem
249
+ }
250
+ .w-6 {
251
+ width: 1.5rem
252
+ }
253
+ .w-auto {
254
+ width: auto
255
+ }
300
256
  .w-4 {
301
257
  width: 1rem
302
258
  }
303
259
  .w-full {
304
260
  width: 100%
305
261
  }
262
+ .flex-shrink-0 {
263
+ flex-shrink: 0
264
+ }
306
265
  @keyframes spin {
307
266
  to {
308
267
  transform: rotate(360deg)
@@ -337,6 +296,9 @@ svg.icon {
337
296
  .rounded-none {
338
297
  border-radius: 0px
339
298
  }
299
+ .rounded-md {
300
+ border-radius: 0.375rem
301
+ }
340
302
  .border {
341
303
  border-width: 1px
342
304
  }
@@ -375,6 +337,9 @@ svg.icon {
375
337
  --tw-bg-opacity: 1;
376
338
  background-color: rgb(243 244 246 / var(--tw-bg-opacity))
377
339
  }
340
+ .fill-slate-500 {
341
+ fill: #64748b
342
+ }
378
343
  .p-0 {
379
344
  padding: 0px
380
345
  }
@@ -414,13 +379,26 @@ svg.icon {
414
379
  .text-center {
415
380
  text-align: center
416
381
  }
382
+ .align-text-top {
383
+ vertical-align: text-top
384
+ }
417
385
  .text-xl {
418
386
  font-size: 1.25rem;
419
387
  line-height: 1.75rem
420
388
  }
389
+ .text-lg {
390
+ font-size: 1.125rem;
391
+ line-height: 1.75rem
392
+ }
393
+ .text-\[15px\] {
394
+ font-size: 15px
395
+ }
421
396
  .font-bold {
422
397
  font-weight: 700
423
398
  }
399
+ .font-medium {
400
+ font-weight: 500
401
+ }
424
402
  .leading-none {
425
403
  line-height: 1
426
404
  }
@@ -432,6 +410,17 @@ svg.icon {
432
410
  --tw-text-opacity: 1;
433
411
  color: rgb(0 0 0 / var(--tw-text-opacity))
434
412
  }
413
+ .text-blue-600 {
414
+ --tw-text-opacity: 1;
415
+ color: rgb(37 99 235 / var(--tw-text-opacity))
416
+ }
417
+ .text-slate-700 {
418
+ --tw-text-opacity: 1;
419
+ color: rgb(51 65 85 / var(--tw-text-opacity))
420
+ }
421
+ .no-underline {
422
+ text-decoration-line: none
423
+ }
435
424
  .shadow-none {
436
425
  --tw-shadow: 0 0 #0000;
437
426
  --tw-shadow-colored: 0 0 #0000;