@steedos-widgets/amis-object 1.0.6 → 1.0.8

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.
@@ -2,8 +2,7 @@ export declare const AmisAppMenu: (props: any) => Promise<{
2
2
  type: string;
3
3
  stacked: any;
4
4
  overflow: any;
5
- links: any[];
6
- id: string;
5
+ links: any;
7
6
  source: {
8
7
  method: string;
9
8
  url: string;
@@ -11,5 +10,6 @@ export declare const AmisAppMenu: (props: any) => Promise<{
11
10
  headers: {
12
11
  Authorization: string;
13
12
  };
13
+ sendOn: string;
14
14
  };
15
15
  }>;
@@ -37,21 +37,119 @@ export declare const AmisGlobalHeader: (props: any) => Promise<{
37
37
  trigger: string[];
38
38
  body: {
39
39
  type: string;
40
- category: string;
41
- name: string;
42
- colorVariant: string;
40
+ body: {
41
+ type: string;
42
+ body: {
43
+ type: string;
44
+ category: string;
45
+ name: string;
46
+ colorVariant: string;
47
+ className: string;
48
+ }[];
49
+ count: string;
50
+ }[];
43
51
  id: string;
44
- className: string;
52
+ messages: {};
53
+ api: {
54
+ method: string;
55
+ url: string;
56
+ data: {
57
+ "&": string;
58
+ context: string;
59
+ userId: string;
60
+ };
61
+ dataType: string;
62
+ requestAdaptor: string;
63
+ headers: {
64
+ Authorization: string;
65
+ };
66
+ adaptor: string;
67
+ };
68
+ interval: number;
69
+ silentPolling: boolean;
45
70
  }[];
46
71
  overlay: {
47
72
  type: string;
48
- label: string;
49
- objectApiName: string;
50
- className: string;
51
- columns: {
52
- field: string;
53
- }[];
73
+ body: ({
74
+ type: string;
75
+ body: {
76
+ type: string;
77
+ tpl: string;
78
+ inline: boolean;
79
+ id: string;
80
+ }[];
81
+ className: string;
82
+ id: string;
83
+ size: string;
84
+ name?: undefined;
85
+ items?: undefined;
86
+ label?: undefined;
87
+ block?: undefined;
88
+ onEvent?: undefined;
89
+ } | {
90
+ type: string;
91
+ className: string;
92
+ name: string;
93
+ items: {
94
+ type: string;
95
+ tpl: string;
96
+ id: string;
97
+ };
98
+ id: string;
99
+ body?: undefined;
100
+ size?: undefined;
101
+ label?: undefined;
102
+ block?: undefined;
103
+ onEvent?: undefined;
104
+ } | {
105
+ type: string;
106
+ label: string;
107
+ id: string;
108
+ block: boolean;
109
+ size: string;
110
+ onEvent: {
111
+ click: {
112
+ actions: {
113
+ componentId: string;
114
+ args: {
115
+ api: {
116
+ url: string;
117
+ method: string;
118
+ headers: {
119
+ Authorization: string;
120
+ };
121
+ };
122
+ messages: {
123
+ success: string;
124
+ };
125
+ };
126
+ actionType: string;
127
+ }[];
128
+ weight: number;
129
+ };
130
+ };
131
+ body?: undefined;
132
+ className?: undefined;
133
+ name?: undefined;
134
+ items?: undefined;
135
+ })[];
54
136
  id: string;
137
+ messages: {};
138
+ api: {
139
+ method: string;
140
+ url: string;
141
+ data: {
142
+ "&": string;
143
+ context: string;
144
+ userId: string;
145
+ };
146
+ dataType: string;
147
+ requestAdaptor: string;
148
+ headers: {
149
+ Authorization: string;
150
+ };
151
+ adaptor: string;
152
+ };
55
153
  }[];
56
154
  id: string;
57
155
  className: string;
@@ -17,76 +17,69 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
17
17
  type: string;
18
18
  body: {
19
19
  type: string;
20
- title: string;
21
- body: any[];
22
- header: {
20
+ className: string;
21
+ body: {
23
22
  type: string;
24
- body: {
25
- type: string;
26
- columns: ({
27
- body: {
28
- type: string;
29
- columns: ({
30
- body: {
31
- type: string;
32
- className: string;
33
- tpl: string;
23
+ columns: ({
24
+ body: {
25
+ type: string;
26
+ columns: ({
27
+ body: {
28
+ type: string;
29
+ className: string;
30
+ tpl: string;
31
+ };
32
+ md: string;
33
+ className: string;
34
+ columnClassName: string;
35
+ } | {
36
+ body: ({
37
+ type: string;
38
+ tpl: string;
39
+ inline: boolean;
40
+ wrapperComponent: string;
41
+ style: {
42
+ fontFamily: string;
43
+ fontSize: number;
44
+ fontWeight?: undefined;
45
+ textAlign?: undefined;
34
46
  };
35
- md: string;
36
47
  className: string;
37
- columnClassName: string;
38
48
  } | {
39
- body: ({
40
- type: string;
41
- tpl: string;
42
- inline: boolean;
43
- wrapperComponent: string;
44
- style: {
45
- fontFamily: string;
46
- fontSize: number;
47
- fontWeight?: undefined;
48
- textAlign?: undefined;
49
- };
50
- className: string;
51
- } | {
52
- type: string;
53
- tpl: string;
54
- inline: boolean;
55
- wrapperComponent: string;
56
- style: {
57
- fontFamily: string;
58
- fontSize: number;
59
- fontWeight: string;
60
- textAlign: string;
61
- };
62
- className: string;
63
- })[];
64
- md?: undefined;
65
- className?: undefined;
66
- columnClassName?: undefined;
67
- })[];
68
- }[];
69
- md: string;
70
- } | {
71
- body: {
72
- type: string;
73
- items: {
74
49
  type: string;
75
- name: any;
76
- objectName: any;
77
- visibleOn: any;
50
+ tpl: string;
51
+ inline: boolean;
52
+ wrapperComponent: string;
53
+ style: {
54
+ fontFamily: string;
55
+ fontSize: number;
56
+ fontWeight: string;
57
+ textAlign: string;
58
+ };
78
59
  className: string;
79
- }[];
80
- };
81
- md: string;
82
- })[];
83
- align: string;
84
- }[];
85
- size: string;
86
- };
87
- affixFooter: boolean;
88
- headerClassName: string;
89
- bodyClassName: string;
60
+ })[];
61
+ md?: undefined;
62
+ className?: undefined;
63
+ columnClassName?: undefined;
64
+ })[];
65
+ }[];
66
+ md: string;
67
+ } | {
68
+ body: {
69
+ type: string;
70
+ items: {
71
+ type: string;
72
+ name: any;
73
+ objectName: any;
74
+ visibleOn: any;
75
+ className: string;
76
+ }[];
77
+ };
78
+ md: string;
79
+ })[];
80
+ align: string;
81
+ }[];
82
+ size: string;
90
83
  }[];
91
84
  messages: {};
92
85
  }[];
@@ -1,7 +1,12 @@
1
1
  :root {
2
2
  --Page-main-bg: transparent;
3
3
  --fontFamilyBase: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
4
- --fontSizeLg: 14px;
4
+ --fontSizeXs: 0.75rem;
5
+ --fontSizeSm: 0.875rem;
6
+ --fontSizeBase: 1rem;
7
+ --fontSizeMd: 1rem;
8
+ --fontSizeLg: 1.125rem;
9
+ --fontSizeXl: 1.25rem;
5
10
  --Form-item-fontSize: 12px;
6
11
  --Form-fontSize: 14px;
7
12
  --Form-selectValue-fontSize: 14px;
@@ -216,15 +221,9 @@ body {
216
221
  .mb-1 {
217
222
  margin-bottom: 0.25rem
218
223
  }
219
- .mb-4 {
220
- margin-bottom: 1rem
221
- }
222
224
  .mb-2 {
223
225
  margin-bottom: 0.5rem
224
226
  }
225
- .ml-1 {
226
- margin-left: 0.25rem
227
- }
228
227
  .ml-4 {
229
228
  margin-left: 1rem
230
229
  }
@@ -234,15 +233,21 @@ body {
234
233
  .mr-1 {
235
234
  margin-right: 0.25rem
236
235
  }
236
+ .mt-1 {
237
+ margin-top: 0.25rem
238
+ }
237
239
  .mb-3 {
238
240
  margin-bottom: 0.75rem
239
241
  }
242
+ .mt-0\.5 {
243
+ margin-top: 0.125rem
244
+ }
245
+ .mt-0 {
246
+ margin-top: 0px
247
+ }
240
248
  .block {
241
249
  display: block
242
250
  }
243
- .inline-block {
244
- display: inline-block
245
- }
246
251
  .inline {
247
252
  display: inline
248
253
  }
@@ -258,18 +263,27 @@ body {
258
263
  .hidden {
259
264
  display: none
260
265
  }
266
+ .h-5 {
267
+ height: 1.25rem
268
+ }
261
269
  .h-12 {
262
270
  height: 3rem
263
271
  }
264
272
  .h-6 {
265
273
  height: 1.5rem
266
274
  }
275
+ .h-10 {
276
+ height: 2.5rem
277
+ }
267
278
  .h-7 {
268
279
  height: 1.75rem
269
280
  }
270
281
  .h-4 {
271
282
  height: 1rem
272
283
  }
284
+ .max-h-96 {
285
+ max-height: 24rem
286
+ }
273
287
  .w-56 {
274
288
  width: 14rem
275
289
  }
@@ -282,6 +296,9 @@ body {
282
296
  .w-6 {
283
297
  width: 1.5rem
284
298
  }
299
+ .w-10 {
300
+ width: 2.5rem
301
+ }
285
302
  .w-auto {
286
303
  width: auto
287
304
  }
@@ -294,6 +311,12 @@ body {
294
311
  .\!min-w-\[160px\] {
295
312
  min-width: 160px !important
296
313
  }
314
+ .flex-none {
315
+ flex: none
316
+ }
317
+ .flex-auto {
318
+ flex: 1 1 auto
319
+ }
297
320
  .flex-shrink-0 {
298
321
  flex-shrink: 0
299
322
  }
@@ -305,6 +328,9 @@ body {
305
328
  .animate-spin {
306
329
  animation: spin 1s linear infinite
307
330
  }
331
+ .flex-col {
332
+ flex-direction: column
333
+ }
308
334
  .items-center {
309
335
  align-items: center
310
336
  }
@@ -319,6 +345,9 @@ body {
319
345
  margin-right: calc(1rem * var(--tw-space-x-reverse));
320
346
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)))
321
347
  }
348
+ .overflow-auto {
349
+ overflow: auto
350
+ }
322
351
  .whitespace-nowrap {
323
352
  white-space: nowrap
324
353
  }
@@ -328,12 +357,12 @@ body {
328
357
  .rounded {
329
358
  border-radius: 0.25rem
330
359
  }
331
- .rounded-none {
332
- border-radius: 0px
333
- }
334
360
  .rounded-md {
335
361
  border-radius: 0.375rem
336
362
  }
363
+ .rounded-full {
364
+ border-radius: 9999px
365
+ }
337
366
  .border {
338
367
  border-width: 1px
339
368
  }
@@ -349,18 +378,14 @@ body {
349
378
  .border-none {
350
379
  border-style: none
351
380
  }
352
- .border-gray-300 {
353
- --tw-border-opacity: 1;
354
- border-color: rgb(209 213 219 / var(--tw-border-opacity))
355
- }
356
- .border-gray-200 {
357
- --tw-border-opacity: 1;
358
- border-color: rgb(229 231 235 / var(--tw-border-opacity))
359
- }
360
381
  .border-slate-300 {
361
382
  --tw-border-opacity: 1;
362
383
  border-color: rgb(203 213 225 / var(--tw-border-opacity))
363
384
  }
385
+ .border-gray-300 {
386
+ --tw-border-opacity: 1;
387
+ border-color: rgb(209 213 219 / var(--tw-border-opacity))
388
+ }
364
389
  .bg-white {
365
390
  --tw-bg-opacity: 1;
366
391
  background-color: rgb(255 255 255 / var(--tw-bg-opacity))
@@ -408,6 +433,12 @@ body {
408
433
  .pb-0 {
409
434
  padding-bottom: 0px
410
435
  }
436
+ .pl-1\.5 {
437
+ padding-left: 0.375rem
438
+ }
439
+ .pl-1 {
440
+ padding-left: 0.25rem
441
+ }
411
442
  .text-left {
412
443
  text-align: left
413
444
  }
@@ -417,17 +448,25 @@ body {
417
448
  .align-text-top {
418
449
  vertical-align: text-top
419
450
  }
420
- .text-xl {
421
- font-size: 1.25rem;
422
- line-height: 1.75rem
451
+ .text-sm {
452
+ font-size: 0.875rem;
453
+ line-height: 1.25rem
423
454
  }
424
455
  .text-lg {
425
456
  font-size: 1.125rem;
426
457
  line-height: 1.75rem
427
458
  }
459
+ .text-xl {
460
+ font-size: 1.25rem;
461
+ line-height: 1.75rem
462
+ }
428
463
  .text-\[15px\] {
429
464
  font-size: 15px
430
465
  }
466
+ .text-base {
467
+ font-size: 1rem;
468
+ line-height: 1.5rem
469
+ }
431
470
  .font-bold {
432
471
  font-weight: 700
433
472
  }
@@ -472,7 +511,14 @@ body {
472
511
  .\!filter {
473
512
  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
474
513
  }
514
+ .hover\:bg-sky-50:hover {
515
+ --tw-bg-opacity: 1;
516
+ background-color: rgb(240 249 255 / var(--tw-bg-opacity))
517
+ }
475
518
  @media (min-width: 640px) {
519
+ .sm\:mt-3 {
520
+ margin-top: 0.75rem
521
+ }
476
522
  .sm\:grid {
477
523
  display: grid
478
524
  }
@@ -482,12 +528,12 @@ body {
482
528
  .sm\:gap-2 {
483
529
  gap: 0.5rem
484
530
  }
485
- .sm\:rounded-lg {
486
- border-radius: 0.5rem
487
- }
488
531
  .sm\:rounded {
489
532
  border-radius: 0.25rem
490
533
  }
534
+ .sm\:rounded-lg {
535
+ border-radius: 0.5rem
536
+ }
491
537
  .sm\:rounded-tl {
492
538
  border-top-left-radius: 0.25rem
493
539
  }