@fewangsit/wangsvue-presets 1.0.84-alpha.1 → 1.0.84-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/fixedasset/checkbox/index.js +13 -13
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/style.css +39 -0
- package/fixedasset/toast/index.d.ts +5 -5
- package/fixedasset/toast/index.js +7 -7
- package/fixedasset/tree/index.d.ts +43 -20
- package/fixedasset/tree/index.js +19 -7
- package/fixedasset/treeselect/index.js +1 -1
- package/package.json +1 -1
- package/wangsvue/checkbox/index.js +2 -2
- package/wangsvue/index.system.js +1 -1
- package/wangsvue/style.css +39 -0
package/fixedasset/style.css
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z'/%3E%3C/svg%3E");
|
6
6
|
}
|
7
7
|
|
8
|
+
.ic-minus {
|
9
|
+
--svg: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik01IDExdjJoMTR2LTJ6Ii8+PC9zdmc+');
|
10
|
+
}
|
11
|
+
|
8
12
|
.ic-arrow-up-s {
|
9
13
|
/* ri--arrow-up-s-line */
|
10
14
|
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z'/%3E%3C/svg%3E");
|
@@ -888,6 +892,10 @@
|
|
888
892
|
mask-size: 100% 100%;
|
889
893
|
}
|
890
894
|
|
895
|
+
.\!pointer-events-none{
|
896
|
+
pointer-events: none !important;
|
897
|
+
}
|
898
|
+
|
891
899
|
.pointer-events-none{
|
892
900
|
pointer-events: none;
|
893
901
|
}
|
@@ -1449,6 +1457,10 @@
|
|
1449
1457
|
height: 10px;
|
1450
1458
|
}
|
1451
1459
|
|
1460
|
+
.h-\[13px\]{
|
1461
|
+
height: 13px;
|
1462
|
+
}
|
1463
|
+
|
1452
1464
|
.h-\[18px\]{
|
1453
1465
|
height: 18px;
|
1454
1466
|
}
|
@@ -1687,6 +1699,10 @@
|
|
1687
1699
|
width: 10px;
|
1688
1700
|
}
|
1689
1701
|
|
1702
|
+
.w-\[13px\]{
|
1703
|
+
width: 13px;
|
1704
|
+
}
|
1705
|
+
|
1690
1706
|
.w-\[18px\]{
|
1691
1707
|
width: 18px;
|
1692
1708
|
}
|
@@ -2633,6 +2649,10 @@
|
|
2633
2649
|
border-left-width: 1px;
|
2634
2650
|
}
|
2635
2651
|
|
2652
|
+
.border-l-4{
|
2653
|
+
border-left-width: 4px;
|
2654
|
+
}
|
2655
|
+
|
2636
2656
|
.border-r{
|
2637
2657
|
border-right-width: 1px;
|
2638
2658
|
}
|
@@ -2743,6 +2763,11 @@
|
|
2743
2763
|
border-color: rgb(0 99 247 / var(--tw-border-opacity));
|
2744
2764
|
}
|
2745
2765
|
|
2766
|
+
.border-success-500{
|
2767
|
+
--tw-border-opacity: 1;
|
2768
|
+
border-color: rgb(0 164 85 / var(--tw-border-opacity));
|
2769
|
+
}
|
2770
|
+
|
2746
2771
|
.border-success-600{
|
2747
2772
|
--tw-border-opacity: 1;
|
2748
2773
|
border-color: rgb(0 133 69 / var(--tw-border-opacity));
|
@@ -3883,6 +3908,10 @@
|
|
3883
3908
|
caret-color: #003b94;
|
3884
3909
|
}
|
3885
3910
|
|
3911
|
+
.\!opacity-60{
|
3912
|
+
opacity: 0.6 !important;
|
3913
|
+
}
|
3914
|
+
|
3886
3915
|
.opacity-0{
|
3887
3916
|
opacity: 0;
|
3888
3917
|
}
|
@@ -4965,6 +4994,11 @@ h6,
|
|
4965
4994
|
background-color: rgb(37 99 235 / var(--tw-bg-opacity));
|
4966
4995
|
}
|
4967
4996
|
|
4997
|
+
.hover\:bg-danger-100:hover{
|
4998
|
+
--tw-bg-opacity: 1;
|
4999
|
+
background-color: rgb(255 204 211 / var(--tw-bg-opacity));
|
5000
|
+
}
|
5001
|
+
|
4968
5002
|
.hover\:bg-danger-300\/20:hover{
|
4969
5003
|
background-color: rgb(255 102 122 / 0.2);
|
4970
5004
|
}
|
@@ -5095,6 +5129,11 @@ h6,
|
|
5095
5129
|
background-color: rgb(220 38 38 / var(--tw-bg-opacity));
|
5096
5130
|
}
|
5097
5131
|
|
5132
|
+
.hover\:bg-success-100:hover{
|
5133
|
+
--tw-bg-opacity: 1;
|
5134
|
+
background-color: rgb(184 255 220 / var(--tw-bg-opacity));
|
5135
|
+
}
|
5136
|
+
|
5098
5137
|
.hover\:bg-success-300\/20:hover{
|
5099
5138
|
background-color: rgb(46 255 154 / 0.2);
|
5100
5139
|
}
|
@@ -11,8 +11,8 @@ declare namespace _default {
|
|
11
11
|
props: any;
|
12
12
|
}): {
|
13
13
|
class: (string | {
|
14
|
-
'border-success-
|
15
|
-
'border-danger text-
|
14
|
+
'border-success-500 text-success-500 bg-success-50': boolean;
|
15
|
+
'border-danger-500 text-danger-500 bg-danger-50': boolean;
|
16
16
|
'border-primary-500 text-primary-500 bg-primary-50': boolean;
|
17
17
|
})[];
|
18
18
|
'data-wv-severity': any;
|
@@ -41,9 +41,9 @@ declare namespace _default {
|
|
41
41
|
props: any;
|
42
42
|
}): {
|
43
43
|
class: (string | {
|
44
|
-
'text-
|
45
|
-
'text-danger': boolean;
|
46
|
-
'text-primary-500': boolean;
|
44
|
+
'text-success-500 hover:bg-success-100': boolean;
|
45
|
+
'text-danger-500 hover:bg-danger-100': boolean;
|
46
|
+
'text-primary-500 hover:bg-primary-100': boolean;
|
47
47
|
})[];
|
48
48
|
};
|
49
49
|
namespace closeicon {
|
@@ -19,13 +19,13 @@ exports.default = {
|
|
19
19
|
var props = _a.props;
|
20
20
|
return ({
|
21
21
|
'class': [
|
22
|
-
'border-
|
22
|
+
'border-l-4 mt-6',
|
23
23
|
'rounded-[7px] w-full',
|
24
24
|
'shadow-lg',
|
25
25
|
// Colors
|
26
26
|
{
|
27
|
-
'border-success-
|
28
|
-
'border-danger text-
|
27
|
+
'border-success-500 text-success-500 bg-success-50': props.message.severity === 'success',
|
28
|
+
'border-danger-500 text-danger-500 bg-danger-50': props.message.severity === 'error',
|
29
29
|
'border-primary-500 text-primary-500 bg-primary-50': props.message.severity === 'info',
|
30
30
|
},
|
31
31
|
],
|
@@ -66,9 +66,9 @@ exports.default = {
|
|
66
66
|
// Colors
|
67
67
|
'bg-transparent',
|
68
68
|
{
|
69
|
-
'text-
|
70
|
-
'text-danger': props.message.severity === 'error',
|
71
|
-
'text-primary-500': props.message.severity === 'info',
|
69
|
+
'text-success-500 hover:bg-success-100': props.message.severity === 'success',
|
70
|
+
'text-danger-500 hover:bg-danger-100': props.message.severity === 'error',
|
71
|
+
'text-primary-500 hover:bg-primary-100': props.message.severity === 'info',
|
72
72
|
},
|
73
73
|
// Transitions
|
74
74
|
'transition duration-200 ease-in-out',
|
@@ -81,7 +81,7 @@ exports.default = {
|
|
81
81
|
closeicon: {
|
82
82
|
class: [
|
83
83
|
// Sizing and Spacing
|
84
|
-
'w-
|
84
|
+
'w-[13px] h-[13px]',
|
85
85
|
'shrink-0',
|
86
86
|
],
|
87
87
|
},
|
@@ -3,18 +3,22 @@ declare namespace _default {
|
|
3
3
|
let _class: string[];
|
4
4
|
export { _class as class };
|
5
5
|
}
|
6
|
-
export namespace
|
6
|
+
export namespace loadingOverlay {
|
7
7
|
let _class_1: string[];
|
8
8
|
export { _class_1 as class };
|
9
9
|
}
|
10
|
-
export namespace
|
10
|
+
export namespace wrapper {
|
11
11
|
let _class_2: string[];
|
12
12
|
export { _class_2 as class };
|
13
13
|
}
|
14
|
-
export namespace
|
14
|
+
export namespace container {
|
15
15
|
let _class_3: string[];
|
16
16
|
export { _class_3 as class };
|
17
17
|
}
|
18
|
+
export namespace node {
|
19
|
+
let _class_4: string[];
|
20
|
+
export { _class_4 as class };
|
21
|
+
}
|
18
22
|
export function content({ context, props }: {
|
19
23
|
context: any;
|
20
24
|
props: any;
|
@@ -22,15 +26,33 @@ declare namespace _default {
|
|
22
26
|
class: (string | {
|
23
27
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500': any;
|
24
28
|
'hover:bg-primary-50'?: undefined;
|
29
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
25
30
|
'cursor-pointer select-none'?: undefined;
|
31
|
+
'cursor-pointer'?: undefined;
|
26
32
|
} | {
|
27
33
|
'hover:bg-primary-50': boolean;
|
28
34
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
35
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
29
36
|
'cursor-pointer select-none'?: undefined;
|
37
|
+
'cursor-pointer'?: undefined;
|
38
|
+
} | {
|
39
|
+
'!pointer-events-none !opacity-60 !cursor-default': any;
|
40
|
+
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
41
|
+
'hover:bg-primary-50'?: undefined;
|
42
|
+
'cursor-pointer select-none'?: undefined;
|
43
|
+
'cursor-pointer'?: undefined;
|
30
44
|
} | {
|
31
45
|
'cursor-pointer select-none': boolean;
|
32
46
|
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
33
47
|
'hover:bg-primary-50'?: undefined;
|
48
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
49
|
+
'cursor-pointer'?: undefined;
|
50
|
+
} | {
|
51
|
+
'cursor-pointer': boolean;
|
52
|
+
'bg-primary-50 !text-primary-500 [&_*]:text-primary-500'?: undefined;
|
53
|
+
'hover:bg-primary-50'?: undefined;
|
54
|
+
'!pointer-events-none !opacity-60 !cursor-default'?: undefined;
|
55
|
+
'cursor-pointer select-none'?: undefined;
|
34
56
|
})[];
|
35
57
|
};
|
36
58
|
export function toggler({ context }: {
|
@@ -39,15 +61,16 @@ declare namespace _default {
|
|
39
61
|
class: (string | {
|
40
62
|
invisible: any;
|
41
63
|
})[];
|
64
|
+
'data-wv-section': string;
|
42
65
|
};
|
43
66
|
export namespace togglericon {
|
44
|
-
let
|
45
|
-
export {
|
67
|
+
let _class_5: string[];
|
68
|
+
export { _class_5 as class };
|
46
69
|
}
|
47
70
|
export namespace nodeCheckbox {
|
48
71
|
export namespace root_1 {
|
49
|
-
let
|
50
|
-
export {
|
72
|
+
let _class_6: string[];
|
73
|
+
export { _class_6 as class };
|
51
74
|
}
|
52
75
|
export { root_1 as root };
|
53
76
|
export function box({ props, context }: {
|
@@ -75,39 +98,39 @@ declare namespace _default {
|
|
75
98
|
})[];
|
76
99
|
};
|
77
100
|
export namespace input {
|
78
|
-
let _class_6: string[];
|
79
|
-
export { _class_6 as class };
|
80
|
-
}
|
81
|
-
export namespace icon {
|
82
101
|
let _class_7: string[];
|
83
102
|
export { _class_7 as class };
|
84
103
|
}
|
104
|
+
export namespace icon {
|
105
|
+
let _class_8: string[];
|
106
|
+
export { _class_8 as class };
|
107
|
+
}
|
85
108
|
}
|
86
109
|
export namespace nodeicon {
|
87
|
-
let _class_8: string[];
|
88
|
-
export { _class_8 as class };
|
89
|
-
}
|
90
|
-
export namespace subgroup {
|
91
110
|
let _class_9: string[];
|
92
111
|
export { _class_9 as class };
|
93
112
|
}
|
94
|
-
export namespace
|
113
|
+
export namespace subgroup {
|
95
114
|
let _class_10: string[];
|
96
115
|
export { _class_10 as class };
|
97
116
|
}
|
98
|
-
export namespace
|
117
|
+
export namespace filtercontainer {
|
99
118
|
let _class_11: string[];
|
100
119
|
export { _class_11 as class };
|
101
120
|
}
|
102
|
-
export
|
103
|
-
export namespace loadingicon {
|
121
|
+
export namespace input_1 {
|
104
122
|
let _class_12: string[];
|
105
123
|
export { _class_12 as class };
|
106
124
|
}
|
107
|
-
export
|
125
|
+
export { input_1 as input };
|
126
|
+
export namespace loadingicon {
|
108
127
|
let _class_13: string[];
|
109
128
|
export { _class_13 as class };
|
110
129
|
}
|
130
|
+
export namespace searchicon {
|
131
|
+
let _class_14: string[];
|
132
|
+
export { _class_14 as class };
|
133
|
+
}
|
111
134
|
export function label({ props }: {
|
112
135
|
props: any;
|
113
136
|
}): {
|
package/fixedasset/tree/index.js
CHANGED
@@ -5,12 +5,16 @@ exports.default = {
|
|
5
5
|
class: [
|
6
6
|
'relative',
|
7
7
|
// Space
|
8
|
+
'w-full h-full',
|
8
9
|
// Shape
|
9
10
|
'rounded-md',
|
10
11
|
'min-h-8',
|
11
12
|
// Color
|
12
13
|
],
|
13
14
|
},
|
15
|
+
loadingOverlay: {
|
16
|
+
class: ['flex justify-center items-center absolute z-1 h-full w-full'],
|
17
|
+
},
|
14
18
|
wrapper: {
|
15
19
|
class: ['overflow-auto'],
|
16
20
|
},
|
@@ -24,14 +28,16 @@ exports.default = {
|
|
24
28
|
},
|
25
29
|
node: {
|
26
30
|
class: [
|
27
|
-
'p-
|
31
|
+
'p-0',
|
32
|
+
'pl-1',
|
28
33
|
'rounded-md',
|
29
34
|
'focus:outline-none focus:outline-offset-0',
|
30
35
|
],
|
31
36
|
},
|
32
37
|
content: function (_a) {
|
33
38
|
var context = _a.context, props = _a.props;
|
34
|
-
|
39
|
+
console.log(context);
|
40
|
+
return {
|
35
41
|
class: [
|
36
42
|
// Flex and Alignment
|
37
43
|
'flex items-center',
|
@@ -46,22 +52,27 @@ exports.default = {
|
|
46
52
|
},
|
47
53
|
// States
|
48
54
|
{
|
49
|
-
'hover:bg-primary-50': props.selectionMode == 'single' ||
|
55
|
+
'hover:bg-primary-50': props.selectionMode == 'single' ||
|
56
|
+
props.selectionMode == 'multiple',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
'!pointer-events-none !opacity-60 !cursor-default': context.disabled,
|
50
60
|
},
|
51
61
|
// Transition
|
52
62
|
'transition-shadow duration-200',
|
53
63
|
{
|
54
|
-
'cursor-pointer select-none': props.selectionMode == 'single' ||
|
64
|
+
'cursor-pointer select-none': props.selectionMode == 'single' ||
|
65
|
+
props.selectionMode == 'multiple',
|
55
66
|
},
|
56
67
|
// Miscelanous
|
57
|
-
'cursor-pointer',
|
68
|
+
{ 'cursor-pointer': !context.disabled },
|
58
69
|
],
|
59
|
-
}
|
70
|
+
};
|
60
71
|
},
|
61
72
|
toggler: function (_a) {
|
62
73
|
var context = _a.context;
|
63
74
|
return ({
|
64
|
-
class: [
|
75
|
+
'class': [
|
65
76
|
// Flex and Alignment
|
66
77
|
'inline-flex items-center justify-center',
|
67
78
|
'shrink-0',
|
@@ -84,6 +95,7 @@ exports.default = {
|
|
84
95
|
// Misc
|
85
96
|
'cursor-pointer select-none',
|
86
97
|
],
|
98
|
+
'data-wv-section': 'tree-node-toggler',
|
87
99
|
});
|
88
100
|
},
|
89
101
|
togglericon: {
|
package/package.json
CHANGED
@@ -23,7 +23,7 @@ exports.default = {
|
|
23
23
|
'items-center',
|
24
24
|
'justify-center',
|
25
25
|
// Size
|
26
|
-
'w-
|
26
|
+
'w-4',
|
27
27
|
'h-full',
|
28
28
|
// Shape
|
29
29
|
'rounded',
|
@@ -64,7 +64,7 @@ exports.default = {
|
|
64
64
|
class: [
|
65
65
|
'peer',
|
66
66
|
// Size
|
67
|
-
'w-
|
67
|
+
'w-4',
|
68
68
|
'h-full',
|
69
69
|
// Position
|
70
70
|
'absolute',
|