@steedos-widgets/amis-object 1.0.8 → 1.0.9
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/AmisAppLauncher.d.ts +10 -16
- package/dist/amis/AmisAppMenu.d.ts +3 -0
- package/dist/amis/AmisGlobalHeader.d.ts +34 -41
- package/dist/amis/AmisRecordDetail.d.ts +15 -2
- package/dist/amis/AmisRecordDetailHeader.d.ts +11 -22
- package/dist/amis-object.cjs.css +76 -52
- package/dist/amis-object.cjs.js +1 -1
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +76 -52
- package/dist/amis-object.esm.js +1 -1
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +76 -52
- package/dist/amis-object.umd.js +1 -1
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +10 -10
- package/dist/meta.js +8 -2
- package/package.json +3 -3
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
export declare const AmisAppLauncher: (props: any) => Promise<{
|
|
2
2
|
type: string;
|
|
3
|
-
body:
|
|
3
|
+
body: {
|
|
4
4
|
type: string;
|
|
5
5
|
actionType: string;
|
|
6
6
|
className: string;
|
|
7
|
-
body: {
|
|
7
|
+
body: ({
|
|
8
8
|
type: string;
|
|
9
9
|
className: string;
|
|
10
10
|
tpl: string;
|
|
11
|
-
|
|
12
|
-
}
|
|
11
|
+
hiddenOn?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
type: string;
|
|
14
|
+
className: string;
|
|
15
|
+
tpl: string;
|
|
16
|
+
hiddenOn: string;
|
|
17
|
+
})[];
|
|
13
18
|
dialog: {
|
|
14
19
|
size: string;
|
|
15
20
|
title: {
|
|
@@ -75,18 +80,7 @@ export declare const AmisAppLauncher: (props: any) => Promise<{
|
|
|
75
80
|
}[];
|
|
76
81
|
};
|
|
77
82
|
id: string;
|
|
78
|
-
|
|
79
|
-
hiddenOn?: undefined;
|
|
80
|
-
} | {
|
|
81
|
-
type: string;
|
|
82
|
-
className: string;
|
|
83
|
-
tpl: string;
|
|
84
|
-
hiddenOn: string;
|
|
85
|
-
actionType?: undefined;
|
|
86
|
-
body?: undefined;
|
|
87
|
-
dialog?: undefined;
|
|
88
|
-
id?: undefined;
|
|
89
|
-
})[];
|
|
83
|
+
}[];
|
|
90
84
|
api: {
|
|
91
85
|
method: string;
|
|
92
86
|
url: string;
|
|
@@ -176,36 +176,39 @@ export declare const AmisGlobalHeader: (props: any) => Promise<{
|
|
|
176
176
|
className: string;
|
|
177
177
|
body: ({
|
|
178
178
|
type: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
id: string;
|
|
182
|
-
style: {
|
|
183
|
-
background: string;
|
|
184
|
-
color: string;
|
|
185
|
-
};
|
|
186
|
-
className?: undefined;
|
|
187
|
-
tpl?: undefined;
|
|
188
|
-
inline?: undefined;
|
|
189
|
-
label?: undefined;
|
|
190
|
-
onEvent?: undefined;
|
|
191
|
-
block?: undefined;
|
|
192
|
-
level?: undefined;
|
|
193
|
-
} | {
|
|
194
|
-
type: string;
|
|
179
|
+
valign: string;
|
|
180
|
+
align: string;
|
|
195
181
|
className: string;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
182
|
+
columns: ({
|
|
183
|
+
columnClassName: string;
|
|
184
|
+
md: number;
|
|
185
|
+
body: {
|
|
186
|
+
type: string;
|
|
187
|
+
src: any;
|
|
188
|
+
icon: string;
|
|
189
|
+
id: string;
|
|
190
|
+
style: {
|
|
191
|
+
background: string;
|
|
192
|
+
color: string;
|
|
193
|
+
};
|
|
194
|
+
}[];
|
|
195
|
+
} | {
|
|
196
|
+
columnClassName: string;
|
|
197
|
+
md: number;
|
|
198
|
+
body: {
|
|
199
|
+
type: string;
|
|
200
|
+
className: string;
|
|
201
|
+
tpl: string;
|
|
202
|
+
inline: boolean;
|
|
203
|
+
}[];
|
|
204
|
+
})[];
|
|
202
205
|
label?: undefined;
|
|
203
206
|
onEvent?: undefined;
|
|
204
|
-
block?: undefined;
|
|
205
207
|
level?: undefined;
|
|
206
208
|
} | {
|
|
207
209
|
type: string;
|
|
208
210
|
label: string;
|
|
211
|
+
className: string;
|
|
209
212
|
onEvent: {
|
|
210
213
|
click: {
|
|
211
214
|
actions: {
|
|
@@ -217,18 +220,14 @@ export declare const AmisGlobalHeader: (props: any) => Promise<{
|
|
|
217
220
|
}[];
|
|
218
221
|
};
|
|
219
222
|
};
|
|
220
|
-
id: string;
|
|
221
|
-
block: boolean;
|
|
222
223
|
level: string;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
className?: undefined;
|
|
227
|
-
tpl?: undefined;
|
|
228
|
-
inline?: undefined;
|
|
224
|
+
valign?: undefined;
|
|
225
|
+
align?: undefined;
|
|
226
|
+
columns?: undefined;
|
|
229
227
|
} | {
|
|
230
228
|
type: string;
|
|
231
229
|
label: string;
|
|
230
|
+
className: string;
|
|
232
231
|
onEvent: {
|
|
233
232
|
click: {
|
|
234
233
|
actions: {
|
|
@@ -239,20 +238,14 @@ export declare const AmisGlobalHeader: (props: any) => Promise<{
|
|
|
239
238
|
}[];
|
|
240
239
|
};
|
|
241
240
|
};
|
|
242
|
-
id: string;
|
|
243
|
-
block: boolean;
|
|
244
241
|
level: string;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
className?: undefined;
|
|
249
|
-
tpl?: undefined;
|
|
250
|
-
inline?: undefined;
|
|
242
|
+
valign?: undefined;
|
|
243
|
+
align?: undefined;
|
|
244
|
+
columns?: undefined;
|
|
251
245
|
})[];
|
|
252
|
-
id: string;
|
|
253
246
|
}[];
|
|
254
|
-
id: string;
|
|
255
247
|
className: string;
|
|
248
|
+
id?: undefined;
|
|
256
249
|
onEvent?: undefined;
|
|
257
250
|
label?: undefined;
|
|
258
251
|
open?: undefined;
|
|
@@ -8,19 +8,32 @@ 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
15
|
};
|
|
16
|
-
|
|
16
|
+
args?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
actionType: string;
|
|
19
|
+
args: {
|
|
20
|
+
value: {
|
|
21
|
+
record: string;
|
|
22
|
+
recordLoaded: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
data?: undefined;
|
|
26
|
+
})[];
|
|
17
27
|
};
|
|
18
28
|
};
|
|
29
|
+
className?: undefined;
|
|
19
30
|
tabs?: undefined;
|
|
20
31
|
} | {
|
|
21
32
|
type: string;
|
|
33
|
+
className: string;
|
|
22
34
|
tabs: {
|
|
23
35
|
title: string;
|
|
36
|
+
className: string;
|
|
24
37
|
body: {
|
|
25
38
|
type: string;
|
|
26
39
|
label: string;
|
|
@@ -15,6 +15,11 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
15
15
|
};
|
|
16
16
|
body: {
|
|
17
17
|
type: string;
|
|
18
|
+
data: {
|
|
19
|
+
"&": string;
|
|
20
|
+
record: string;
|
|
21
|
+
recordLoaded: string;
|
|
22
|
+
};
|
|
18
23
|
body: {
|
|
19
24
|
type: string;
|
|
20
25
|
className: string;
|
|
@@ -33,35 +38,18 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
33
38
|
className: string;
|
|
34
39
|
columnClassName: string;
|
|
35
40
|
} | {
|
|
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;
|
|
46
|
-
};
|
|
47
|
-
className: string;
|
|
48
|
-
} | {
|
|
41
|
+
body: {
|
|
49
42
|
type: string;
|
|
50
43
|
tpl: string;
|
|
51
44
|
inline: boolean;
|
|
52
45
|
wrapperComponent: string;
|
|
53
|
-
style: {
|
|
54
|
-
fontFamily: string;
|
|
55
|
-
fontSize: number;
|
|
56
|
-
fontWeight: string;
|
|
57
|
-
textAlign: string;
|
|
58
|
-
};
|
|
59
46
|
className: string;
|
|
60
|
-
}
|
|
47
|
+
}[];
|
|
48
|
+
columnClassName: string;
|
|
61
49
|
md?: undefined;
|
|
62
50
|
className?: undefined;
|
|
63
|
-
columnClassName?: undefined;
|
|
64
51
|
})[];
|
|
52
|
+
className: string;
|
|
65
53
|
}[];
|
|
66
54
|
md: string;
|
|
67
55
|
} | {
|
|
@@ -77,11 +65,12 @@ export declare const AmisRecordDetailHeader: (props: any) => Promise<{
|
|
|
77
65
|
};
|
|
78
66
|
md: string;
|
|
79
67
|
})[];
|
|
80
|
-
|
|
68
|
+
className: string;
|
|
81
69
|
}[];
|
|
82
70
|
size: string;
|
|
83
71
|
}[];
|
|
84
72
|
messages: {};
|
|
73
|
+
hiddenOn: string;
|
|
85
74
|
}[];
|
|
86
75
|
} & {
|
|
87
76
|
onEvent: any;
|
package/dist/amis-object.cjs.css
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--Page-main-bg: transparent;
|
|
3
3
|
--fontFamilyBase: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
|
|
4
|
-
--fontSizeXs: 0.75rem;
|
|
5
|
-
--fontSizeSm: 0.875rem;
|
|
6
|
-
--fontSizeBase: 1rem;
|
|
7
|
-
--fontSizeMd: 1rem;
|
|
8
|
-
--fontSizeLg: 1.125rem;
|
|
9
|
-
--fontSizeXl: 1.25rem;
|
|
10
4
|
--Form-item-fontSize: 12px;
|
|
11
5
|
--Form-fontSize: 14px;
|
|
12
6
|
--Form-selectValue-fontSize: 14px;
|
|
13
|
-
--Table-
|
|
7
|
+
--Table-borderColor: #e5e7eb;
|
|
14
8
|
--Table-borderWidth: 1px;
|
|
15
|
-
--Table-borderColor: #d9dcde;
|
|
16
|
-
--Table-thead-fontSize: 13px;
|
|
17
9
|
--Table-fontSize: 13px;
|
|
10
|
+
--Table-thead-borderColor: rgb(209 213 219);
|
|
11
|
+
--Table-thead-fontSize: 13px;
|
|
18
12
|
--Table-thead-bg: rgb(243 244 246);
|
|
13
|
+
--Table-toolbar-marginY: 0;
|
|
19
14
|
--TableCell-paddingY: 0.3rem;
|
|
20
15
|
--TableCell-paddingX: 0.5rem;
|
|
21
16
|
--TableCell--edge-paddingX: 0.5rem;
|
|
@@ -34,12 +29,14 @@
|
|
|
34
29
|
--button-size-default-top-left-border-radius: 0.25rem;
|
|
35
30
|
--button-size-default-bottom-right-border-radius: 0.25rem;
|
|
36
31
|
--button-size-default-bottom-left-border-radius: 0.25rem;
|
|
32
|
+
--button-size-default-marginRight: 4px;
|
|
33
|
+
--button-default-default-bg-color: white;
|
|
37
34
|
--button-default-default-top-border-color: #c9c9c9;
|
|
38
35
|
--button-default-default-bottom-border-color: #c9c9c9;
|
|
39
36
|
--button-default-default-left-border-color: #c9c9c9;
|
|
40
37
|
--button-default-default-right-border-color: #c9c9c9;
|
|
41
|
-
--button-size-default-marginRight: 4px;
|
|
42
38
|
--button-default-default-font-color: rgb(1, 118, 211);
|
|
39
|
+
--button-enhance-default-bg-color: white;
|
|
43
40
|
--Nav-item-borderRadius: 0px;
|
|
44
41
|
--Nav-item-onHover-bg: rgba(21,137,238,.1);
|
|
45
42
|
--Nav-item-onActive-bg: rgba(21,137,238,.1);
|
|
@@ -218,8 +215,11 @@ body {
|
|
|
218
215
|
.m-1 {
|
|
219
216
|
margin: 0.25rem
|
|
220
217
|
}
|
|
221
|
-
.
|
|
222
|
-
margin-
|
|
218
|
+
.mt-3 {
|
|
219
|
+
margin-top: 0.75rem
|
|
220
|
+
}
|
|
221
|
+
.mb-4 {
|
|
222
|
+
margin-bottom: 1rem
|
|
223
223
|
}
|
|
224
224
|
.mb-2 {
|
|
225
225
|
margin-bottom: 0.5rem
|
|
@@ -227,6 +227,9 @@ body {
|
|
|
227
227
|
.ml-4 {
|
|
228
228
|
margin-left: 1rem
|
|
229
229
|
}
|
|
230
|
+
.mr-4 {
|
|
231
|
+
margin-right: 1rem
|
|
232
|
+
}
|
|
230
233
|
.-ml-px {
|
|
231
234
|
margin-left: -1px
|
|
232
235
|
}
|
|
@@ -363,9 +366,6 @@ body {
|
|
|
363
366
|
.rounded-full {
|
|
364
367
|
border-radius: 9999px
|
|
365
368
|
}
|
|
366
|
-
.border {
|
|
367
|
-
border-width: 1px
|
|
368
|
-
}
|
|
369
369
|
.border-0 {
|
|
370
370
|
border-width: 0px
|
|
371
371
|
}
|
|
@@ -378,6 +378,9 @@ body {
|
|
|
378
378
|
.border-none {
|
|
379
379
|
border-style: none
|
|
380
380
|
}
|
|
381
|
+
.\!border-none {
|
|
382
|
+
border-style: none !important
|
|
383
|
+
}
|
|
381
384
|
.border-slate-300 {
|
|
382
385
|
--tw-border-opacity: 1;
|
|
383
386
|
border-color: rgb(203 213 225 / var(--tw-border-opacity))
|
|
@@ -390,6 +393,9 @@ body {
|
|
|
390
393
|
--tw-bg-opacity: 1;
|
|
391
394
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
|
|
392
395
|
}
|
|
396
|
+
.\!bg-transparent {
|
|
397
|
+
background-color: transparent !important
|
|
398
|
+
}
|
|
393
399
|
.bg-transparent {
|
|
394
400
|
background-color: transparent
|
|
395
401
|
}
|
|
@@ -400,15 +406,26 @@ body {
|
|
|
400
406
|
.fill-slate-500 {
|
|
401
407
|
fill: #64748b
|
|
402
408
|
}
|
|
403
|
-
.p-0 {
|
|
404
|
-
padding: 0px
|
|
405
|
-
}
|
|
406
409
|
.p-4 {
|
|
407
410
|
padding: 1rem
|
|
408
411
|
}
|
|
412
|
+
.p-0 {
|
|
413
|
+
padding: 0px
|
|
414
|
+
}
|
|
409
415
|
.p-2 {
|
|
410
416
|
padding: 0.5rem
|
|
411
417
|
}
|
|
418
|
+
.p-3 {
|
|
419
|
+
padding: 0.75rem
|
|
420
|
+
}
|
|
421
|
+
.px-0 {
|
|
422
|
+
padding-left: 0px;
|
|
423
|
+
padding-right: 0px
|
|
424
|
+
}
|
|
425
|
+
.py-4 {
|
|
426
|
+
padding-top: 1rem;
|
|
427
|
+
padding-bottom: 1rem
|
|
428
|
+
}
|
|
412
429
|
.px-1 {
|
|
413
430
|
padding-left: 0.25rem;
|
|
414
431
|
padding-right: 0.25rem
|
|
@@ -417,9 +434,8 @@ body {
|
|
|
417
434
|
padding-top: 0.25rem;
|
|
418
435
|
padding-bottom: 0.25rem
|
|
419
436
|
}
|
|
420
|
-
.
|
|
421
|
-
padding-
|
|
422
|
-
padding-right: 1rem
|
|
437
|
+
.pt-4 {
|
|
438
|
+
padding-top: 1rem
|
|
423
439
|
}
|
|
424
440
|
.pl-4 {
|
|
425
441
|
padding-left: 1rem
|
|
@@ -445,28 +461,21 @@ body {
|
|
|
445
461
|
.text-center {
|
|
446
462
|
text-align: center
|
|
447
463
|
}
|
|
448
|
-
.
|
|
449
|
-
|
|
450
|
-
}
|
|
451
|
-
.text-sm {
|
|
452
|
-
font-size: 0.875rem;
|
|
453
|
-
line-height: 1.25rem
|
|
464
|
+
.text-md {
|
|
465
|
+
font-size: 14px
|
|
454
466
|
}
|
|
455
467
|
.text-lg {
|
|
456
|
-
font-size:
|
|
457
|
-
line-height: 1.75rem
|
|
468
|
+
font-size: 16px
|
|
458
469
|
}
|
|
459
470
|
.text-xl {
|
|
460
|
-
font-size:
|
|
461
|
-
|
|
471
|
+
font-size: 18px
|
|
472
|
+
}
|
|
473
|
+
.text-base {
|
|
474
|
+
font-size: 14px
|
|
462
475
|
}
|
|
463
476
|
.text-\[15px\] {
|
|
464
477
|
font-size: 15px
|
|
465
478
|
}
|
|
466
|
-
.text-base {
|
|
467
|
-
font-size: 1rem;
|
|
468
|
-
line-height: 1.5rem
|
|
469
|
-
}
|
|
470
479
|
.font-bold {
|
|
471
480
|
font-weight: 700
|
|
472
481
|
}
|
|
@@ -476,6 +485,12 @@ body {
|
|
|
476
485
|
.leading-none {
|
|
477
486
|
line-height: 1
|
|
478
487
|
}
|
|
488
|
+
.leading-5 {
|
|
489
|
+
line-height: 1.25rem
|
|
490
|
+
}
|
|
491
|
+
.leading-3 {
|
|
492
|
+
line-height: .75rem
|
|
493
|
+
}
|
|
479
494
|
.text-gray-500 {
|
|
480
495
|
--tw-text-opacity: 1;
|
|
481
496
|
color: rgb(107 114 128 / var(--tw-text-opacity))
|
|
@@ -558,14 +573,6 @@ body {
|
|
|
558
573
|
}
|
|
559
574
|
}
|
|
560
575
|
|
|
561
|
-
.antd-Page audio,
|
|
562
|
-
.antd-Page canvas,
|
|
563
|
-
.antd-Page iframe,
|
|
564
|
-
.antd-Page img,
|
|
565
|
-
.antd-Page svg,
|
|
566
|
-
.antd-Page video {
|
|
567
|
-
vertical-align: unset;
|
|
568
|
-
}
|
|
569
576
|
.ant-dropdown-menu {
|
|
570
577
|
border: 1px solid #e5e5e5;
|
|
571
578
|
border-radius: 0.25rem;
|
|
@@ -585,15 +592,9 @@ body {
|
|
|
585
592
|
.ant-dropdown-menu-item .antd-Button--default:not(:disabled):not(.is-disabled):hover {
|
|
586
593
|
border-width: 0;
|
|
587
594
|
}
|
|
588
|
-
.steedos-record-detail .antd-Button {
|
|
589
|
-
background: white;
|
|
590
|
-
}
|
|
591
595
|
.steedos-record-related-list .antd-Table-contentWrap {
|
|
592
596
|
margin-bottom: 0px !important;
|
|
593
597
|
}
|
|
594
|
-
.steedos-record-related-list .antd-Button {
|
|
595
|
-
background: white;
|
|
596
|
-
}
|
|
597
598
|
.steedos-record-related-list .antd-Table-headToolbar {
|
|
598
599
|
display: none;
|
|
599
600
|
}
|
|
@@ -610,9 +611,6 @@ body {
|
|
|
610
611
|
-webkit-box-orient: vertical;
|
|
611
612
|
overflow: hidden;
|
|
612
613
|
}
|
|
613
|
-
.steedos-listview .antd-Button {
|
|
614
|
-
background: white;
|
|
615
|
-
}
|
|
616
614
|
.steedos-listview .antd-Table-headToolbar {
|
|
617
615
|
display: none;
|
|
618
616
|
}
|
|
@@ -665,3 +663,29 @@ body {
|
|
|
665
663
|
column-gap: 1rem;
|
|
666
664
|
}
|
|
667
665
|
}
|
|
666
|
+
|
|
667
|
+
.steedos-context-bar .antd-Nav-list {
|
|
668
|
+
border-bottom: 0px;
|
|
669
|
+
height: 40px;
|
|
670
|
+
}
|
|
671
|
+
.steedos-context-bar .antd-Nav .antd-Nav-list--tabs .antd-Nav-item.is-active {
|
|
672
|
+
box-shadow: none;
|
|
673
|
+
}
|
|
674
|
+
.steedos-context-bar .antd-Nav .antd-Nav-list--tabs .antd-Nav-item > a {
|
|
675
|
+
border: 0px;
|
|
676
|
+
padding-left: 12px;
|
|
677
|
+
padding-right: 12px;
|
|
678
|
+
}
|
|
679
|
+
.steedos-context-bar .antd-Nav .antd-Nav-list--tabs .antd-Nav-item:hover > a,
|
|
680
|
+
.steedos-context-bar .antd-Nav .antd-Nav-list--tabs .antd-Nav-item > a:focus {
|
|
681
|
+
border-top-left-radius: 0px;
|
|
682
|
+
border-top-right-radius: 0px;
|
|
683
|
+
background: rgba(21, 137, 238, 0.1);
|
|
684
|
+
border-top: solid rgba(21, 137, 238, 0.1) 3px;
|
|
685
|
+
}
|
|
686
|
+
.steedos-context-bar .antd-Nav .antd-Nav-list--tabs .antd-Nav-item.is-active > a {
|
|
687
|
+
border-top-left-radius: 0px;
|
|
688
|
+
border-top-right-radius: 0px;
|
|
689
|
+
background: rgba(21, 137, 238, 0.1);
|
|
690
|
+
border-top: solid rgb(14 165 233) 3px;
|
|
691
|
+
}
|