@fewangsit/wangsvue-presets 1.0.85-alpha.3 → 1.0.85-alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- package/fixedasset/button/index.d.ts +1 -1
- package/fixedasset/button/index.js +12 -8
- package/fixedasset/buttondownload/index.d.ts +2 -1
- package/fixedasset/buttondownload/index.js +6 -2
- package/fixedasset/buttonfilter/index.d.ts +13 -4
- package/fixedasset/buttonfilter/index.js +20 -7
- package/fixedasset/buttonsearch/index.js +1 -1
- package/fixedasset/checkbox/index.d.ts +25 -16
- package/fixedasset/checkbox/index.js +18 -4
- package/fixedasset/customColumn/index.d.ts +28 -0
- package/fixedasset/customColumn/index.js +33 -0
- package/fixedasset/datatable/index.d.ts +29 -28
- package/fixedasset/datatable/index.js +21 -18
- package/fixedasset/filtercontainer/index.d.ts +7 -0
- package/fixedasset/filtercontainer/index.js +10 -0
- package/fixedasset/index.d.ts +4 -0
- package/fixedasset/index.js +134 -130
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/menu/index.js +0 -1
- package/fixedasset/multiselect/index.d.ts +24 -16
- package/fixedasset/multiselect/index.js +1 -6
- package/fixedasset/style.css +114 -10
- package/package.json +1 -1
- package/wangsvue/button/index.d.ts +1 -1
- package/wangsvue/button/index.js +1 -1
- package/wangsvue/buttondownload/index.d.ts +1 -0
- package/wangsvue/buttondownload/index.js +1 -0
- package/wangsvue/buttonfilter/index.d.ts +3 -2
- package/wangsvue/buttonfilter/index.js +5 -4
- package/wangsvue/checkbox/index.d.ts +9 -0
- package/wangsvue/checkbox/index.js +23 -9
- package/wangsvue/customcolumn/index.d.ts +28 -0
- package/wangsvue/customcolumn/index.js +33 -0
- package/wangsvue/datatable/index.d.ts +2 -1
- package/wangsvue/datatable/index.js +3 -1
- package/wangsvue/filtercontainer/index.d.ts +7 -0
- package/wangsvue/filtercontainer/index.js +10 -0
- package/wangsvue/index.d.ts +4 -0
- package/wangsvue/index.js +4 -0
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/multiselect/index.d.ts +8 -0
- package/wangsvue/style.css +114 -10
@@ -81,26 +81,30 @@ exports.default = {
|
|
81
81
|
},
|
82
82
|
// Primary Blue Button
|
83
83
|
{
|
84
|
-
'text-white': props.severity
|
84
|
+
'text-white': (props.severity == null || props.severity === 'primary') &&
|
85
85
|
!props.text &&
|
86
86
|
!props.outlined &&
|
87
87
|
!props.plain,
|
88
|
-
'bg-primary-500': props.severity
|
88
|
+
'bg-primary-500': (props.severity == null || props.severity === 'primary') &&
|
89
89
|
!props.text &&
|
90
90
|
!props.outlined &&
|
91
91
|
!props.plain,
|
92
|
-
'ring-1 ring-primary-500': props.severity
|
92
|
+
'ring-1 ring-primary-500': (props.severity == null || props.severity === 'primary') &&
|
93
93
|
!props.text &&
|
94
94
|
!props.outlined &&
|
95
95
|
!props.plain,
|
96
96
|
},
|
97
97
|
// Primary Blue Text Button
|
98
98
|
{
|
99
|
-
'text-primary-500': props.text &&
|
99
|
+
'text-primary-500': props.text &&
|
100
|
+
(props.severity == null || props.severity === 'primary') &&
|
101
|
+
!props.plain,
|
100
102
|
},
|
101
103
|
// Primary Blue Outlined Button
|
102
104
|
{
|
103
|
-
'text-primary-500 ring-1 ring-primary-500 hover:bg-primary-500/20': props.outlined &&
|
105
|
+
'text-primary-500 ring-1 ring-primary-500 hover:bg-primary-500/20': props.outlined &&
|
106
|
+
(props.severity == null || props.severity === 'primary') &&
|
107
|
+
!props.plain,
|
104
108
|
},
|
105
109
|
// Success Button
|
106
110
|
{
|
@@ -263,9 +267,9 @@ exports.default = {
|
|
263
267
|
},
|
264
268
|
// Primary
|
265
269
|
{
|
266
|
-
'hover:bg-primary-500/[8%] active:bg-primary-500/[12%] ': props.severity ===
|
270
|
+
'hover:bg-primary-500/[8%] active:bg-primary-500/[12%] ': props.severity == null || props.severity === 'primary',
|
267
271
|
'hover:shadow-hover active:!shadow-none hover:!bg-primary-500/90 active:bg-primary-500/90 hover:ring-0': !props.link &&
|
268
|
-
props.severity
|
272
|
+
(props.severity == null || props.severity === 'primary') &&
|
269
273
|
!props.text &&
|
270
274
|
!props.outlined &&
|
271
275
|
!context.disabled &&
|
@@ -391,7 +395,7 @@ exports.default = {
|
|
391
395
|
icon: function (_a) {
|
392
396
|
var props = _a.props;
|
393
397
|
return ({
|
394
|
-
class: ['shrink-0', { '!h-
|
398
|
+
class: ['shrink-0', { '!h-3 !w-3': props.size === 'small' }],
|
395
399
|
});
|
396
400
|
},
|
397
401
|
loadingIcon: function (_a) {
|
@@ -1,12 +1,13 @@
|
|
1
1
|
declare namespace _default {
|
2
2
|
let root: {
|
3
|
-
class: string;
|
3
|
+
class: string[];
|
4
4
|
'data-wv-name': string;
|
5
5
|
'data-wv-section': string;
|
6
6
|
};
|
7
7
|
let icon: {
|
8
8
|
class: string;
|
9
9
|
'data-wv-section': string;
|
10
|
+
severity: string;
|
10
11
|
};
|
11
12
|
}
|
12
13
|
export default _default;
|
@@ -2,12 +2,16 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = {
|
4
4
|
root: {
|
5
|
-
'class':
|
5
|
+
'class': [
|
6
|
+
'rounded ring-1 ring-success-500 p-[5px] ring-inset',
|
7
|
+
'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none',
|
8
|
+
],
|
6
9
|
'data-wv-name': 'buttondownload',
|
7
10
|
'data-wv-section': 'root',
|
8
11
|
},
|
9
12
|
icon: {
|
10
|
-
'class': 'text-
|
13
|
+
'class': 'text-base',
|
11
14
|
'data-wv-section': 'icon',
|
15
|
+
'severity': 'success',
|
12
16
|
},
|
13
17
|
};
|
@@ -1,11 +1,20 @@
|
|
1
1
|
declare namespace _default {
|
2
|
-
|
3
|
-
|
2
|
+
function root({ context }: {
|
3
|
+
context: any;
|
4
|
+
}): {
|
5
|
+
class: (string | {
|
6
|
+
'bg-general-500': any;
|
7
|
+
})[];
|
4
8
|
'data-wv-name': string;
|
5
9
|
'data-wv-section': string;
|
6
10
|
};
|
7
|
-
|
8
|
-
|
11
|
+
function icon({ context }: {
|
12
|
+
context: any;
|
13
|
+
}): {
|
14
|
+
class: (string | {
|
15
|
+
'text-general-400': boolean;
|
16
|
+
'text-white': any;
|
17
|
+
})[];
|
9
18
|
'data-wv-section': string;
|
10
19
|
};
|
11
20
|
}
|
@@ -1,13 +1,26 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = {
|
4
|
-
root: {
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
root: function (_a) {
|
5
|
+
var context = _a.context;
|
6
|
+
return ({
|
7
|
+
'class': [
|
8
|
+
'rounded ring-1 ring-general-500 p-[5px] ring-inset',
|
9
|
+
'focus-within:ring-2 focus-within:outline-none',
|
10
|
+
{ 'bg-general-500': context.active },
|
11
|
+
],
|
12
|
+
'data-wv-name': 'buttonfilter',
|
13
|
+
'data-wv-section': 'root',
|
14
|
+
});
|
8
15
|
},
|
9
|
-
icon: {
|
10
|
-
|
11
|
-
|
16
|
+
icon: function (_a) {
|
17
|
+
var context = _a.context;
|
18
|
+
return ({
|
19
|
+
'class': [
|
20
|
+
'text-base',
|
21
|
+
{ 'text-general-400': !context.active, 'text-white': context.active },
|
22
|
+
],
|
23
|
+
'data-wv-section': 'icon',
|
24
|
+
});
|
12
25
|
},
|
13
26
|
};
|
@@ -7,7 +7,7 @@ exports.default = {
|
|
7
7
|
return ({
|
8
8
|
'class': [
|
9
9
|
{ 'w-max': !context.showSearchInput },
|
10
|
-
'ring-1 ring-general-500 rounded p-[5px]',
|
10
|
+
'ring-1 ring-general-500 rounded p-[5px] ring-inset',
|
11
11
|
'focus-within:ring-2 focus-within:ring-primary-500 focus-within:outline-none',
|
12
12
|
],
|
13
13
|
'data-wv-section': 'buttontrigger',
|
@@ -8,12 +8,12 @@ declare namespace _default {
|
|
8
8
|
context: any;
|
9
9
|
}): {
|
10
10
|
class: (string | {
|
11
|
-
'border-general-
|
12
|
-
'border-
|
11
|
+
'border-general-200': any;
|
12
|
+
'border-general-100': boolean;
|
13
13
|
'bg-white': boolean;
|
14
14
|
'bg-general-50': any;
|
15
|
-
'bg-
|
16
|
-
'bg-general-
|
15
|
+
'bg-primary-500 border-primary-500': boolean;
|
16
|
+
'bg-general-200': any;
|
17
17
|
'ring-8 ring-primary-400/[12%]'?: undefined;
|
18
18
|
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-0 peer-focus-visible:ring-primary-400/[8%]'?: undefined;
|
19
19
|
'peer-active:ring-8 peer-active:ring-offset-0 peer-active:ring-primary-400/[12%]'?: undefined;
|
@@ -24,12 +24,12 @@ declare namespace _default {
|
|
24
24
|
'[&_i]:text-transparent'?: undefined;
|
25
25
|
} | {
|
26
26
|
'ring-8 ring-primary-400/[12%]': any;
|
27
|
-
'border-general-
|
28
|
-
'border-
|
27
|
+
'border-general-200'?: undefined;
|
28
|
+
'border-general-100'?: undefined;
|
29
29
|
'bg-white'?: undefined;
|
30
30
|
'bg-general-50'?: undefined;
|
31
|
-
'bg-
|
32
|
-
'bg-general-
|
31
|
+
'bg-primary-500 border-primary-500'?: undefined;
|
32
|
+
'bg-general-200'?: undefined;
|
33
33
|
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-0 peer-focus-visible:ring-primary-400/[8%]'?: undefined;
|
34
34
|
'peer-active:ring-8 peer-active:ring-offset-0 peer-active:ring-primary-400/[12%]'?: undefined;
|
35
35
|
'cursor-default bg-general-50 border-general-200'?: undefined;
|
@@ -42,12 +42,12 @@ declare namespace _default {
|
|
42
42
|
'peer-active:ring-8 peer-active:ring-offset-0 peer-active:ring-primary-400/[12%]': boolean;
|
43
43
|
'cursor-default bg-general-50 border-general-200': boolean;
|
44
44
|
'bg-general-200 border-general-200': any;
|
45
|
-
'border-general-
|
46
|
-
'border-
|
45
|
+
'border-general-200'?: undefined;
|
46
|
+
'border-general-100'?: undefined;
|
47
47
|
'bg-white'?: undefined;
|
48
48
|
'bg-general-50'?: undefined;
|
49
|
-
'bg-
|
50
|
-
'bg-general-
|
49
|
+
'bg-primary-500 border-primary-500'?: undefined;
|
50
|
+
'bg-general-200'?: undefined;
|
51
51
|
'ring-8 ring-primary-400/[12%]'?: undefined;
|
52
52
|
'[&_i]:bg-transparent'?: undefined;
|
53
53
|
'[&_i]:text-white'?: undefined;
|
@@ -56,12 +56,12 @@ declare namespace _default {
|
|
56
56
|
'[&_i]:bg-transparent': boolean;
|
57
57
|
'[&_i]:text-white': any;
|
58
58
|
'[&_i]:text-transparent': boolean;
|
59
|
-
'border-general-
|
60
|
-
'border-
|
59
|
+
'border-general-200'?: undefined;
|
60
|
+
'border-general-100'?: undefined;
|
61
61
|
'bg-white'?: undefined;
|
62
62
|
'bg-general-50'?: undefined;
|
63
|
-
'bg-
|
64
|
-
'bg-general-
|
63
|
+
'bg-primary-500 border-primary-500'?: undefined;
|
64
|
+
'bg-general-200'?: undefined;
|
65
65
|
'ring-8 ring-primary-400/[12%]'?: undefined;
|
66
66
|
'peer-focus-visible:ring-8 peer-focus-visible:ring-offset-0 peer-focus-visible:ring-primary-400/[8%]'?: undefined;
|
67
67
|
'peer-active:ring-8 peer-active:ring-offset-0 peer-active:ring-primary-400/[12%]'?: undefined;
|
@@ -77,5 +77,14 @@ declare namespace _default {
|
|
77
77
|
let _class_2: string[];
|
78
78
|
export { _class_2 as class };
|
79
79
|
}
|
80
|
+
function label({ props }: {
|
81
|
+
props: any;
|
82
|
+
}): {
|
83
|
+
class: any[];
|
84
|
+
};
|
85
|
+
namespace tooltipicon {
|
86
|
+
let _class_3: string;
|
87
|
+
export { _class_3 as class };
|
88
|
+
}
|
80
89
|
}
|
81
90
|
export default _default;
|
@@ -4,6 +4,7 @@ exports.default = {
|
|
4
4
|
root: {
|
5
5
|
class: [
|
6
6
|
'relative',
|
7
|
+
'w-max items-center cursor-pointer',
|
7
8
|
'w-4 h-4',
|
8
9
|
'shrink-0',
|
9
10
|
// Alignment
|
@@ -31,12 +32,12 @@ exports.default = {
|
|
31
32
|
// Colors
|
32
33
|
'text-white',
|
33
34
|
{
|
34
|
-
'border-general-
|
35
|
-
'border-
|
35
|
+
'border-general-200': props.disabled,
|
36
|
+
'border-general-100': !props.disabled,
|
36
37
|
'bg-white': !(context.checked || context.partialChecked) && !props.disabled,
|
37
38
|
'bg-general-50': !(context.checked || context.partialChecked) && props.disabled,
|
38
|
-
'bg-
|
39
|
-
'bg-general-
|
39
|
+
'bg-primary-500 border-primary-500': (context.checked || context.partialChecked) && !props.disabled,
|
40
|
+
'bg-general-200': (context.checked || context.partialChecked) && props.disabled,
|
40
41
|
},
|
41
42
|
{
|
42
43
|
'ring-8 ring-primary-400/[12%]': !props.disabled && context.focused,
|
@@ -104,4 +105,17 @@ exports.default = {
|
|
104
105
|
'duration-200',
|
105
106
|
],
|
106
107
|
},
|
108
|
+
label: function (_a) {
|
109
|
+
var props = _a.props;
|
110
|
+
return ({
|
111
|
+
class: [
|
112
|
+
'flex items-start gap-px select-none text-xs tracking-[0.02em] font-medium',
|
113
|
+
'text-general-800',
|
114
|
+
props.labelClass,
|
115
|
+
],
|
116
|
+
});
|
117
|
+
},
|
118
|
+
tooltipicon: {
|
119
|
+
class: 'text-primary-500 w-[10px] h-[10px]',
|
120
|
+
},
|
107
121
|
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
namespace menustart {
|
3
|
+
let _class: string;
|
4
|
+
export { _class as class };
|
5
|
+
}
|
6
|
+
function menuitem({ context, props }: {
|
7
|
+
context: any;
|
8
|
+
props: any;
|
9
|
+
}): {
|
10
|
+
class: (string | {
|
11
|
+
'!pl-0.5 !pr-2 !py-[4.5px]': boolean;
|
12
|
+
'cursor-grab [&_label]:cursor-grab '?: undefined;
|
13
|
+
'cursor-default [&_*]:cursor-default'?: undefined;
|
14
|
+
} | {
|
15
|
+
'cursor-grab [&_label]:cursor-grab ': any;
|
16
|
+
'cursor-default [&_*]:cursor-default': boolean;
|
17
|
+
'!pl-0.5 !pr-2 !py-[4.5px]'?: undefined;
|
18
|
+
})[];
|
19
|
+
};
|
20
|
+
function dragicon({ context }: {
|
21
|
+
context: any;
|
22
|
+
}): {
|
23
|
+
class: (string | {
|
24
|
+
invisible: boolean;
|
25
|
+
})[];
|
26
|
+
};
|
27
|
+
}
|
28
|
+
export default _default;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = {
|
4
|
+
menustart: {
|
5
|
+
class: '',
|
6
|
+
},
|
7
|
+
menuitem: function (_a) {
|
8
|
+
var context = _a.context, props = _a.props;
|
9
|
+
return ({
|
10
|
+
class: [
|
11
|
+
'flex gap-1 py-[7px] px-4 transition-transform',
|
12
|
+
{
|
13
|
+
'!pl-0.5 !pr-2 !py-[4.5px]': props.type === 'flat',
|
14
|
+
},
|
15
|
+
{
|
16
|
+
'cursor-grab [&_label]:cursor-grab ': context.dragable,
|
17
|
+
'cursor-default [&_*]:cursor-default': !context.dragable,
|
18
|
+
},
|
19
|
+
'[&:has([selectable=false])]:!cursor-not-allowed',
|
20
|
+
'[&:has([selectable=false])]:hover:!bg-transparent',
|
21
|
+
],
|
22
|
+
});
|
23
|
+
},
|
24
|
+
dragicon: function (_a) {
|
25
|
+
var context = _a.context;
|
26
|
+
return ({
|
27
|
+
class: [
|
28
|
+
'!cursor-move w-[18px] h-[18px] !text-general-200 shrink-0',
|
29
|
+
{ invisible: context.dragable === false },
|
30
|
+
],
|
31
|
+
});
|
32
|
+
},
|
33
|
+
};
|
@@ -39,9 +39,9 @@ declare namespace _default {
|
|
39
39
|
class: (string | {
|
40
40
|
'!h-[35px]': boolean;
|
41
41
|
'bg-transparent'?: undefined;
|
42
|
-
'bg-primary-
|
42
|
+
'bg-primary-50 [&>td]:border-primary-200'?: undefined;
|
43
43
|
'focus:outline-none focus:outline-offset-0'?: undefined;
|
44
|
-
'hover:!bg-
|
44
|
+
'hover:!bg-grayscale-50'?: undefined;
|
45
45
|
'hover:!bg-warning-300 !bg-warning-200'?: undefined;
|
46
46
|
'transition duration-200'?: undefined;
|
47
47
|
'select-none'?: undefined;
|
@@ -50,10 +50,10 @@ declare namespace _default {
|
|
50
50
|
'cursor-pointer'?: undefined;
|
51
51
|
} | {
|
52
52
|
'bg-transparent': boolean;
|
53
|
-
'bg-primary-
|
53
|
+
'bg-primary-50 [&>td]:border-primary-200': any;
|
54
54
|
'!h-[35px]'?: undefined;
|
55
55
|
'focus:outline-none focus:outline-offset-0'?: undefined;
|
56
|
-
'hover:!bg-
|
56
|
+
'hover:!bg-grayscale-50'?: undefined;
|
57
57
|
'hover:!bg-warning-300 !bg-warning-200'?: undefined;
|
58
58
|
'transition duration-200'?: undefined;
|
59
59
|
'select-none'?: undefined;
|
@@ -62,11 +62,11 @@ declare namespace _default {
|
|
62
62
|
'cursor-pointer'?: undefined;
|
63
63
|
} | {
|
64
64
|
'focus:outline-none focus:outline-offset-0': any;
|
65
|
-
'hover:!bg-
|
65
|
+
'hover:!bg-grayscale-50': boolean;
|
66
66
|
'hover:!bg-warning-300 !bg-warning-200': any;
|
67
67
|
'!h-[35px]'?: undefined;
|
68
68
|
'bg-transparent'?: undefined;
|
69
|
-
'bg-primary-
|
69
|
+
'bg-primary-50 [&>td]:border-primary-200'?: undefined;
|
70
70
|
'transition duration-200'?: undefined;
|
71
71
|
'select-none'?: undefined;
|
72
72
|
'select-auto'?: undefined;
|
@@ -76,9 +76,9 @@ declare namespace _default {
|
|
76
76
|
'transition duration-200': any;
|
77
77
|
'!h-[35px]'?: undefined;
|
78
78
|
'bg-transparent'?: undefined;
|
79
|
-
'bg-primary-
|
79
|
+
'bg-primary-50 [&>td]:border-primary-200'?: undefined;
|
80
80
|
'focus:outline-none focus:outline-offset-0'?: undefined;
|
81
|
-
'hover:!bg-
|
81
|
+
'hover:!bg-grayscale-50'?: undefined;
|
82
82
|
'hover:!bg-warning-300 !bg-warning-200'?: undefined;
|
83
83
|
'select-none'?: undefined;
|
84
84
|
'select-auto'?: undefined;
|
@@ -89,9 +89,9 @@ declare namespace _default {
|
|
89
89
|
'select-auto': boolean;
|
90
90
|
'!h-[35px]'?: undefined;
|
91
91
|
'bg-transparent'?: undefined;
|
92
|
-
'bg-primary-
|
92
|
+
'bg-primary-50 [&>td]:border-primary-200'?: undefined;
|
93
93
|
'focus:outline-none focus:outline-offset-0'?: undefined;
|
94
|
-
'hover:!bg-
|
94
|
+
'hover:!bg-grayscale-50'?: undefined;
|
95
95
|
'hover:!bg-warning-300 !bg-warning-200'?: undefined;
|
96
96
|
'transition duration-200'?: undefined;
|
97
97
|
'!cursor-grab [&_label]:!cursor-grab'?: undefined;
|
@@ -100,9 +100,9 @@ declare namespace _default {
|
|
100
100
|
'!cursor-grab [&_label]:!cursor-grab': any;
|
101
101
|
'!h-[35px]'?: undefined;
|
102
102
|
'bg-transparent'?: undefined;
|
103
|
-
'bg-primary-
|
103
|
+
'bg-primary-50 [&>td]:border-primary-200'?: undefined;
|
104
104
|
'focus:outline-none focus:outline-offset-0'?: undefined;
|
105
|
-
'hover:!bg-
|
105
|
+
'hover:!bg-grayscale-50'?: undefined;
|
106
106
|
'hover:!bg-warning-300 !bg-warning-200'?: undefined;
|
107
107
|
'transition duration-200'?: undefined;
|
108
108
|
'select-none'?: undefined;
|
@@ -112,9 +112,9 @@ declare namespace _default {
|
|
112
112
|
'cursor-pointer': boolean;
|
113
113
|
'!h-[35px]'?: undefined;
|
114
114
|
'bg-transparent'?: undefined;
|
115
|
-
'bg-primary-
|
115
|
+
'bg-primary-50 [&>td]:border-primary-200'?: undefined;
|
116
116
|
'focus:outline-none focus:outline-offset-0'?: undefined;
|
117
|
-
'hover:!bg-
|
117
|
+
'hover:!bg-grayscale-50'?: undefined;
|
118
118
|
'hover:!bg-warning-300 !bg-warning-200'?: undefined;
|
119
119
|
'transition duration-200'?: undefined;
|
120
120
|
'select-none'?: undefined;
|
@@ -126,20 +126,20 @@ declare namespace _default {
|
|
126
126
|
context: any;
|
127
127
|
}): {
|
128
128
|
class: (string | {
|
129
|
-
'bg-primary-
|
130
|
-
'bg-primary-
|
131
|
-
'sticky right-0 hover:bg-primary-
|
129
|
+
'bg-primary-200': boolean;
|
130
|
+
'bg-primary-300'?: undefined;
|
131
|
+
'sticky right-0 hover:bg-primary-300'?: undefined;
|
132
132
|
'!cursor-default'?: undefined;
|
133
133
|
} | {
|
134
|
-
'bg-primary-
|
135
|
-
'bg-primary-
|
136
|
-
'sticky right-0 hover:bg-primary-
|
134
|
+
'bg-primary-300': any;
|
135
|
+
'bg-primary-200'?: undefined;
|
136
|
+
'sticky right-0 hover:bg-primary-300'?: undefined;
|
137
137
|
'!cursor-default'?: undefined;
|
138
138
|
} | {
|
139
|
-
'sticky right-0 hover:bg-primary-
|
139
|
+
'sticky right-0 hover:bg-primary-300': any;
|
140
140
|
'!cursor-default': boolean;
|
141
|
-
'bg-primary-
|
142
|
-
'bg-primary-
|
141
|
+
'bg-primary-200'?: undefined;
|
142
|
+
'bg-primary-300'?: undefined;
|
143
143
|
})[];
|
144
144
|
'data-wv-section': string;
|
145
145
|
};
|
@@ -159,7 +159,7 @@ declare namespace _default {
|
|
159
159
|
context: any;
|
160
160
|
}): {
|
161
161
|
class: {
|
162
|
-
'[&_[data-pc-section=box]]:!border-
|
162
|
+
'[&_[data-pc-section=box]]:!border-general-100 [&_[data-pc-section=box]]:!bg-white': boolean;
|
163
163
|
}[];
|
164
164
|
'data-wv-section': string;
|
165
165
|
};
|
@@ -206,7 +206,7 @@ declare namespace _default {
|
|
206
206
|
context: any;
|
207
207
|
}): {
|
208
208
|
class: (string | {
|
209
|
-
'!border-t border-
|
209
|
+
'!border-t border-general-100 !border-solid': boolean;
|
210
210
|
})[];
|
211
211
|
};
|
212
212
|
function rowtogglerbutton({ context }: {
|
@@ -236,8 +236,8 @@ declare namespace _default {
|
|
236
236
|
}): {
|
237
237
|
class: (string | {
|
238
238
|
'sticky bg-white': any;
|
239
|
-
'!bg-primary-
|
240
|
-
'group-hover:!bg-
|
239
|
+
'!bg-primary-50': any;
|
240
|
+
'group-hover:!bg-grayscale-50': boolean;
|
241
241
|
'group-hover:!bg-warning-300 !bg-warning-200': any;
|
242
242
|
})[];
|
243
243
|
'data-wv-section': string;
|
@@ -249,13 +249,14 @@ declare namespace _default {
|
|
249
249
|
function singleactionbutton({ props }: {
|
250
250
|
props: any;
|
251
251
|
}): {
|
252
|
-
class: ({
|
252
|
+
class: (string | {
|
253
253
|
'pointer-events-none !border-general-100 [&>i]:text-general-200': any;
|
254
254
|
'pointer-events-auto'?: undefined;
|
255
255
|
} | {
|
256
256
|
'pointer-events-auto': boolean;
|
257
257
|
'pointer-events-none !border-general-100 [&>i]:text-general-200'?: undefined;
|
258
258
|
})[];
|
259
|
+
severity: string;
|
259
260
|
tooltip: string;
|
260
261
|
'data-wv-section': string;
|
261
262
|
};
|
@@ -28,7 +28,7 @@ exports.default = {
|
|
28
28
|
table: {
|
29
29
|
'class': [
|
30
30
|
'min-w-max w-full',
|
31
|
-
'!border-separate !border-spacing-0 border !border-solid !border-
|
31
|
+
'!border-separate !border-spacing-0 border !border-solid !border-general-100 !border-t-0 !border-l-0 !border-r-0 !rounded-lg',
|
32
32
|
],
|
33
33
|
'data-wv-section': 'table',
|
34
34
|
},
|
@@ -43,7 +43,7 @@ exports.default = {
|
|
43
43
|
class: ['sticky top-0 z-50'],
|
44
44
|
},
|
45
45
|
headerrow: {
|
46
|
-
class: ['border-b border-
|
46
|
+
class: ['border-b border-general-100'],
|
47
47
|
},
|
48
48
|
bodyrow: function (_a) {
|
49
49
|
var context = _a.context, props = _a.props;
|
@@ -57,13 +57,13 @@ exports.default = {
|
|
57
57
|
'text-general-800 text-xs font-normal',
|
58
58
|
{
|
59
59
|
'bg-transparent': !context.selected,
|
60
|
-
'bg-primary-
|
60
|
+
'bg-primary-50 [&>td]:border-primary-200': context.selected,
|
61
61
|
},
|
62
62
|
// State
|
63
63
|
{
|
64
64
|
'focus:outline-none focus:outline-offset-0': props.selectionType,
|
65
65
|
// To sets the bg to single action td
|
66
|
-
'hover:!bg-
|
66
|
+
'hover:!bg-grayscale-50': !context.highlighted && !context.selected,
|
67
67
|
'hover:!bg-warning-300 !bg-warning-200': context.highlighted,
|
68
68
|
},
|
69
69
|
// Transition
|
@@ -82,21 +82,21 @@ exports.default = {
|
|
82
82
|
var context = _a.context;
|
83
83
|
return {
|
84
84
|
'class': [
|
85
|
-
'text-xs font-
|
86
|
-
{ 'bg-primary-
|
87
|
-
{ 'bg-primary-
|
85
|
+
'text-xs font-bold text-general-800 p-2 text-left cursor-pointer tracking-[0.02em]',
|
86
|
+
{ 'bg-primary-200': !context.sorted || !context.sortable },
|
87
|
+
{ 'bg-primary-300': context.sorted },
|
88
88
|
{
|
89
|
-
'sticky right-0 hover:bg-primary-
|
89
|
+
'sticky right-0 hover:bg-primary-300': context.customColumn,
|
90
90
|
'!cursor-default': !context.customColumn && !context.sortable,
|
91
91
|
},
|
92
92
|
'border-0 !border-b border-solid',
|
93
|
-
'border-
|
93
|
+
'border-general-100',
|
94
94
|
],
|
95
95
|
'data-wv-section': 'headercell',
|
96
96
|
};
|
97
97
|
},
|
98
98
|
headercellcontent: {
|
99
|
-
'class': ['inline-flex gap-2 items-center leading-
|
99
|
+
'class': ['inline-flex gap-2 items-center leading-4'],
|
100
100
|
'data-wv-section': 'headercellcontent',
|
101
101
|
},
|
102
102
|
headercellreorderable: {
|
@@ -111,7 +111,7 @@ exports.default = {
|
|
111
111
|
return ({
|
112
112
|
'class': [
|
113
113
|
{
|
114
|
-
'[&_[data-pc-section=box]]:!border-
|
114
|
+
'[&_[data-pc-section=box]]:!border-general-100 [&_[data-pc-section=box]]:!bg-white': !context.isSelectedAll,
|
115
115
|
},
|
116
116
|
],
|
117
117
|
'data-wv-section': 'headercheckbox',
|
@@ -137,7 +137,7 @@ exports.default = {
|
|
137
137
|
{ 'rotate-180': context.isExpandedAll },
|
138
138
|
{ 'rotate-0': !context.isExpandedAll },
|
139
139
|
],
|
140
|
-
'icon-class': 'w-6 h-6 text-
|
140
|
+
'icon-class': 'w-6 h-6 text-general-800',
|
141
141
|
'data-wv-section': 'headertogglerbutton',
|
142
142
|
});
|
143
143
|
},
|
@@ -148,7 +148,8 @@ exports.default = {
|
|
148
148
|
bodycell: {
|
149
149
|
'class': [
|
150
150
|
'text-xs px-2 py-0.5',
|
151
|
-
'border-0 !border-b !border-solid border-
|
151
|
+
'border-0 !border-b !border-solid border-general-100',
|
152
|
+
'justify-items-start',
|
152
153
|
'[&:has([data-wv-section=rowcheckbox])]:text-center',
|
153
154
|
'[&:has([data-wv-section=rowcheckbox])]:text-center',
|
154
155
|
],
|
@@ -165,7 +166,7 @@ exports.default = {
|
|
165
166
|
return ({
|
166
167
|
class: [
|
167
168
|
'!h-[35px] flex items-center px-2',
|
168
|
-
{ '!border-t border-
|
169
|
+
{ '!border-t border-general-100 !border-solid': !context.firstIndex },
|
169
170
|
],
|
170
171
|
});
|
171
172
|
},
|
@@ -177,7 +178,7 @@ exports.default = {
|
|
177
178
|
{ 'rotate-180': context.isRowExpanded },
|
178
179
|
{ 'rotate-0': !context.isRowExpanded },
|
179
180
|
],
|
180
|
-
'icon-class': 'w-6 h-6',
|
181
|
+
'icon-class': 'w-6 h-6 text-general-800',
|
181
182
|
'data-wv-section': 'rowtogglerbutton',
|
182
183
|
});
|
183
184
|
},
|
@@ -199,8 +200,8 @@ exports.default = {
|
|
199
200
|
'w-[35px]',
|
200
201
|
{
|
201
202
|
'sticky bg-white': props.useOption,
|
202
|
-
'!bg-primary-
|
203
|
-
'group-hover:!bg-
|
203
|
+
'!bg-primary-50': context.selected,
|
204
|
+
'group-hover:!bg-grayscale-50': !context.highlighted && !context.selected,
|
204
205
|
'group-hover:!bg-warning-300 !bg-warning-200': context.highlighted,
|
205
206
|
},
|
206
207
|
],
|
@@ -219,8 +220,10 @@ exports.default = {
|
|
219
220
|
'pointer-events-none !border-general-100 [&>i]:text-general-200': props.disableAllRows,
|
220
221
|
},
|
221
222
|
{ 'pointer-events-auto': !props.disableAllRows },
|
223
|
+
'!rounded-full',
|
222
224
|
],
|
223
|
-
'
|
225
|
+
'severity': 'primary',
|
226
|
+
'tooltip': 'Action',
|
224
227
|
'data-wv-section': 'singleactionbutton',
|
225
228
|
});
|
226
229
|
},
|