@fy-/fws-vue 0.3.0 → 0.3.2
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/components/ui/DefaultInput.vue +2 -44
- package/package.json +1 -11
- package/presets/Lara/accordion/index.js +0 -86
- package/presets/Lara/autocomplete/index.js +0 -284
- package/presets/Lara/avatar/index.js +0 -46
- package/presets/Lara/badge/index.js +0 -44
- package/presets/Lara/badgedirective/index.js +0 -49
- package/presets/Lara/blockui/index.js +0 -8
- package/presets/Lara/breadcrumb/index.js +0 -64
- package/presets/Lara/button/index.js +0 -470
- package/presets/Lara/calendar/index.js +0 -683
- package/presets/Lara/card/index.js +0 -37
- package/presets/Lara/carousel/index.js +0 -152
- package/presets/Lara/cascadeselect/index.js +0 -228
- package/presets/Lara/checkbox/index.js +0 -106
- package/presets/Lara/chip/index.js +0 -45
- package/presets/Lara/chips/index.js +0 -118
- package/presets/Lara/colorpicker/index.js +0 -129
- package/presets/Lara/confirmpopup/index.js +0 -107
- package/presets/Lara/contextmenu/index.js +0 -130
- package/presets/Lara/datatable/index.js +0 -1289
- package/presets/Lara/dataview/index.js +0 -40
- package/presets/Lara/deferred/index.js +0 -3
- package/presets/Lara/dialog/index.js +0 -249
- package/presets/Lara/divider/index.js +0 -72
- package/presets/Lara/dock/index.js +0 -97
- package/presets/Lara/dropdown/index.js +0 -300
- package/presets/Lara/fieldset/index.js +0 -98
- package/presets/Lara/fileupload/index.js +0 -173
- package/presets/Lara/floatlabel/index.js +0 -26
- package/presets/Lara/galleria/index.js +0 -351
- package/presets/Lara/global.js +0 -90
- package/presets/Lara/iconfield/index.js +0 -22
- package/presets/Lara/image/index.js +0 -206
- package/presets/Lara/index.js +0 -181
- package/presets/Lara/inlinemessage/index.js +0 -36
- package/presets/Lara/inplace/index.js +0 -27
- package/presets/Lara/inputgroup/index.js +0 -5
- package/presets/Lara/inputgroupaddon/index.js +0 -28
- package/presets/Lara/inputmask/index.js +0 -37
- package/presets/Lara/inputnumber/index.js +0 -253
- package/presets/Lara/inputotp/index.js +0 -72
- package/presets/Lara/inputswitch/index.js +0 -93
- package/presets/Lara/inputtext/index.js +0 -61
- package/presets/Lara/knob/index.js +0 -47
- package/presets/Lara/listbox/index.js +0 -170
- package/presets/Lara/megamenu/index.js +0 -207
- package/presets/Lara/menu/index.js +0 -98
- package/presets/Lara/menubar/index.js +0 -181
- package/presets/Lara/message/index.js +0 -87
- package/presets/Lara/metergroup/index.js +0 -110
- package/presets/Lara/multiselect/index.js +0 -589
- package/presets/Lara/orderlist/index.js +0 -266
- package/presets/Lara/organizationchart/index.js +0 -142
- package/presets/Lara/overlaypanel/index.js +0 -41
- package/presets/Lara/paginator/index.js +0 -590
- package/presets/Lara/panel/index.js +0 -93
- package/presets/Lara/panelmenu/index.js +0 -139
- package/presets/Lara/password/index.js +0 -140
- package/presets/Lara/picklist/index.js +0 -659
- package/presets/Lara/progressbar/index.js +0 -61
- package/presets/Lara/progressspinner/index.js +0 -51
- package/presets/Lara/radiobutton/index.js +0 -116
- package/presets/Lara/rating/index.js +0 -95
- package/presets/Lara/ripple/index.js +0 -6
- package/presets/Lara/scrollpanel/index.js +0 -77
- package/presets/Lara/scrolltop/index.js +0 -45
- package/presets/Lara/selectbutton/index.js +0 -60
- package/presets/Lara/sidebar/index.js +0 -163
- package/presets/Lara/skeleton/index.js +0 -19
- package/presets/Lara/slider/index.js +0 -149
- package/presets/Lara/speeddial/index.js +0 -535
- package/presets/Lara/splitbutton/index.js +0 -1081
- package/presets/Lara/splitter/index.js +0 -64
- package/presets/Lara/stepper/index.js +0 -183
- package/presets/Lara/steps/index.js +0 -115
- package/presets/Lara/tabmenu/index.js +0 -82
- package/presets/Lara/tabview/index.js +0 -166
- package/presets/Lara/tag/index.js +0 -37
- package/presets/Lara/terminal/index.js +0 -60
- package/presets/Lara/textarea/index.js +0 -39
- package/presets/Lara/tieredmenu/index.js +0 -125
- package/presets/Lara/timeline/index.js +0 -107
- package/presets/Lara/toast/index.js +0 -113
- package/presets/Lara/togglebutton/index.js +0 -100
- package/presets/Lara/toolbar/index.js +0 -28
- package/presets/Lara/tooltip/index.js +0 -73
- package/presets/Lara/tree/index.js +0 -281
- package/presets/Lara/treeselect/index.js +0 -387
- package/presets/Lara/treetable/index.js +0 -509
- package/presets/Lara/tristatecheckbox/index.js +0 -112
- package/presets/Wind/accordion/index.js +0 -75
- package/presets/Wind/autocomplete/index.js +0 -294
- package/presets/Wind/avatar/index.js +0 -48
- package/presets/Wind/badge/index.js +0 -43
- package/presets/Wind/badgedirective/index.js +0 -50
- package/presets/Wind/blockui/index.js +0 -8
- package/presets/Wind/breadcrumb/index.js +0 -45
- package/presets/Wind/button/index.js +0 -474
- package/presets/Wind/calendar/index.js +0 -659
- package/presets/Wind/card/index.js +0 -40
- package/presets/Wind/carousel/index.js +0 -152
- package/presets/Wind/cascadeselect/index.js +0 -225
- package/presets/Wind/checkbox/index.js +0 -112
- package/presets/Wind/chip/index.js +0 -45
- package/presets/Wind/chips/index.js +0 -120
- package/presets/Wind/colorpicker/index.js +0 -129
- package/presets/Wind/confirmpopup/index.js +0 -123
- package/presets/Wind/contextmenu/index.js +0 -128
- package/presets/Wind/datatable/index.js +0 -1330
- package/presets/Wind/dataview/index.js +0 -40
- package/presets/Wind/deferred/index.js +0 -3
- package/presets/Wind/dialog/index.js +0 -251
- package/presets/Wind/divider/index.js +0 -72
- package/presets/Wind/dock/index.js +0 -97
- package/presets/Wind/dropdown/index.js +0 -287
- package/presets/Wind/fieldset/index.js +0 -99
- package/presets/Wind/fileupload/index.js +0 -173
- package/presets/Wind/floatlabel/index.js +0 -26
- package/presets/Wind/galleria/index.js +0 -351
- package/presets/Wind/global.js +0 -77
- package/presets/Wind/iconfield/index.js +0 -22
- package/presets/Wind/image/index.js +0 -206
- package/presets/Wind/index.js +0 -181
- package/presets/Wind/inlinemessage/index.js +0 -29
- package/presets/Wind/inplace/index.js +0 -30
- package/presets/Wind/inputgroup/index.js +0 -5
- package/presets/Wind/inputgroupaddon/index.js +0 -28
- package/presets/Wind/inputmask/index.js +0 -34
- package/presets/Wind/inputnumber/index.js +0 -244
- package/presets/Wind/inputotp/index.js +0 -72
- package/presets/Wind/inputswitch/index.js +0 -106
- package/presets/Wind/inputtext/index.js +0 -61
- package/presets/Wind/knob/index.js +0 -47
- package/presets/Wind/listbox/index.js +0 -159
- package/presets/Wind/megamenu/index.js +0 -218
- package/presets/Wind/menu/index.js +0 -111
- package/presets/Wind/menubar/index.js +0 -188
- package/presets/Wind/message/index.js +0 -87
- package/presets/Wind/metergroup/index.js +0 -110
- package/presets/Wind/multiselect/index.js +0 -619
- package/presets/Wind/orderlist/index.js +0 -275
- package/presets/Wind/organizationchart/index.js +0 -143
- package/presets/Wind/overlaypanel/index.js +0 -42
- package/presets/Wind/paginator/index.js +0 -596
- package/presets/Wind/panel/index.js +0 -95
- package/presets/Wind/panelmenu/index.js +0 -136
- package/presets/Wind/password/index.js +0 -141
- package/presets/Wind/picklist/index.js +0 -684
- package/presets/Wind/progressbar/index.js +0 -68
- package/presets/Wind/progressspinner/index.js +0 -51
- package/presets/Wind/radiobutton/index.js +0 -92
- package/presets/Wind/rating/index.js +0 -86
- package/presets/Wind/ripple/index.js +0 -6
- package/presets/Wind/scrollpanel/index.js +0 -77
- package/presets/Wind/scrolltop/index.js +0 -45
- package/presets/Wind/selectbutton/index.js +0 -58
- package/presets/Wind/sidebar/index.js +0 -165
- package/presets/Wind/skeleton/index.js +0 -19
- package/presets/Wind/slider/index.js +0 -135
- package/presets/Wind/speeddial/index.js +0 -536
- package/presets/Wind/splitbutton/index.js +0 -1078
- package/presets/Wind/splitter/index.js +0 -64
- package/presets/Wind/stepper/index.js +0 -180
- package/presets/Wind/steps/index.js +0 -132
- package/presets/Wind/tabmenu/index.js +0 -84
- package/presets/Wind/tabview/index.js +0 -168
- package/presets/Wind/tag/index.js +0 -37
- package/presets/Wind/terminal/index.js +0 -60
- package/presets/Wind/textarea/index.js +0 -40
- package/presets/Wind/tieredmenu/index.js +0 -121
- package/presets/Wind/timeline/index.js +0 -107
- package/presets/Wind/toast/index.js +0 -111
- package/presets/Wind/togglebutton/index.js +0 -91
- package/presets/Wind/toolbar/index.js +0 -30
- package/presets/Wind/tooltip/index.js +0 -43
- package/presets/Wind/tree/index.js +0 -300
- package/presets/Wind/treeselect/index.js +0 -404
- package/presets/Wind/treetable/index.js +0 -505
- package/presets/Wind/tristatecheckbox/index.js +0 -118
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
panel: {
|
|
3
|
-
class: "mb-1",
|
|
4
|
-
},
|
|
5
|
-
header: {
|
|
6
|
-
class: [
|
|
7
|
-
"rounded-md",
|
|
8
|
-
"outline-none",
|
|
9
|
-
"focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring focus-visible:ring-primary-400/50 dark:focus-visible:ring-primary-300/50",
|
|
10
|
-
],
|
|
11
|
-
},
|
|
12
|
-
headercontent: ({ context, instance }) => ({
|
|
13
|
-
class: [
|
|
14
|
-
// Shape
|
|
15
|
-
"rounded-t-md",
|
|
16
|
-
{
|
|
17
|
-
"rounded-br-md rounded-bl-md":
|
|
18
|
-
!context.active || instance.activeItem?.items === undefined,
|
|
19
|
-
"rounded-br-0 rounded-bl-0":
|
|
20
|
-
context.active && instance.activeItem?.items !== undefined,
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
// Color
|
|
24
|
-
"border border-surface-200 dark:border-surface-700",
|
|
25
|
-
"bg-surface-50 dark:bg-surface-800",
|
|
26
|
-
"text-surface-600 dark:text-surface-0/80",
|
|
27
|
-
{ "text-surface-900": context.active },
|
|
28
|
-
|
|
29
|
-
// States
|
|
30
|
-
"hover:bg-surface-100 dark:hover:bg-surface-700/80",
|
|
31
|
-
"hover:text-surface-900",
|
|
32
|
-
|
|
33
|
-
// Transition
|
|
34
|
-
"transition duration-200 ease-in-out",
|
|
35
|
-
"transition-shadow duration-200",
|
|
36
|
-
],
|
|
37
|
-
}),
|
|
38
|
-
headeraction: {
|
|
39
|
-
class: [
|
|
40
|
-
"relative",
|
|
41
|
-
|
|
42
|
-
// Font
|
|
43
|
-
"font-bold",
|
|
44
|
-
"leading-none",
|
|
45
|
-
|
|
46
|
-
// Flex & Alignments
|
|
47
|
-
"flex items-center",
|
|
48
|
-
|
|
49
|
-
// Spacing
|
|
50
|
-
"p-5",
|
|
51
|
-
|
|
52
|
-
// Misc
|
|
53
|
-
"select-none cursor-pointer no-underline",
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
headerlabel: {
|
|
57
|
-
class: "leading-none",
|
|
58
|
-
},
|
|
59
|
-
headerIcon: {
|
|
60
|
-
class: "mr-2",
|
|
61
|
-
},
|
|
62
|
-
submenuicon: {
|
|
63
|
-
class: "mr-2",
|
|
64
|
-
},
|
|
65
|
-
menucontent: {
|
|
66
|
-
class: [
|
|
67
|
-
// Spacing
|
|
68
|
-
"py-2",
|
|
69
|
-
|
|
70
|
-
// Shape
|
|
71
|
-
"border border-t-0",
|
|
72
|
-
"rounded-t-none rounded-br-md rounded-bl-md",
|
|
73
|
-
|
|
74
|
-
// Color
|
|
75
|
-
"text-surface-700 dark:text-white/80",
|
|
76
|
-
"bg-surface-0 dark:bg-surface-800",
|
|
77
|
-
"border-surface-200 dark:border-surface-700",
|
|
78
|
-
],
|
|
79
|
-
},
|
|
80
|
-
menu: {
|
|
81
|
-
class: ["outline-none", "m-0 p-0 list-none"],
|
|
82
|
-
},
|
|
83
|
-
content: {
|
|
84
|
-
class: [
|
|
85
|
-
// Shape
|
|
86
|
-
"border-none rounded-none",
|
|
87
|
-
|
|
88
|
-
// Color
|
|
89
|
-
"text-surface-700 dark:text-white/80",
|
|
90
|
-
|
|
91
|
-
// Transition
|
|
92
|
-
"transition-shadow duration-200",
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
action: ({ context }) => ({
|
|
96
|
-
class: [
|
|
97
|
-
"relative",
|
|
98
|
-
|
|
99
|
-
// Font
|
|
100
|
-
"leading-none",
|
|
101
|
-
|
|
102
|
-
// Flex & Alignments
|
|
103
|
-
"flex items-center",
|
|
104
|
-
|
|
105
|
-
// Spacing
|
|
106
|
-
"py-3 px-5",
|
|
107
|
-
|
|
108
|
-
// Color
|
|
109
|
-
"text-surface-700 dark:text-white/80",
|
|
110
|
-
|
|
111
|
-
// States
|
|
112
|
-
"hover:bg-surface-100 dark:hover:bg-surface-700/80 hover:text-surface-700 dark:hover:text-white/80",
|
|
113
|
-
{
|
|
114
|
-
"bg-surface-200 text-surface-700 dark:text-white/80 dark:bg-surface-600/90":
|
|
115
|
-
context.focused,
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
// Misc
|
|
119
|
-
"cursor-pointer no-underline",
|
|
120
|
-
"select-none overflow-hidden",
|
|
121
|
-
],
|
|
122
|
-
}),
|
|
123
|
-
icon: {
|
|
124
|
-
class: "mr-2",
|
|
125
|
-
},
|
|
126
|
-
submenu: {
|
|
127
|
-
class: "p-0 pl-4 m-0 list-none",
|
|
128
|
-
},
|
|
129
|
-
transition: {
|
|
130
|
-
enterFromClass: "max-h-0",
|
|
131
|
-
enterActiveClass:
|
|
132
|
-
"overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]",
|
|
133
|
-
enterToClass: "max-h-[1000px]",
|
|
134
|
-
leaveFromClass: "max-h-[1000px]",
|
|
135
|
-
leaveActiveClass:
|
|
136
|
-
"overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]",
|
|
137
|
-
leaveToClass: "max-h-0",
|
|
138
|
-
},
|
|
139
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
root: ({ props }) => ({
|
|
3
|
-
class: [
|
|
4
|
-
"inline-flex relative",
|
|
5
|
-
{
|
|
6
|
-
"opacity-60 select-none pointer-events-none cursor-default":
|
|
7
|
-
props.disabled,
|
|
8
|
-
},
|
|
9
|
-
{ "[&>input]:pr-10": props.toggleMask },
|
|
10
|
-
],
|
|
11
|
-
}),
|
|
12
|
-
panel: {
|
|
13
|
-
class: [
|
|
14
|
-
// Spacing
|
|
15
|
-
"p-5",
|
|
16
|
-
|
|
17
|
-
// Shape
|
|
18
|
-
"border-0 dark:border",
|
|
19
|
-
"shadow-md rounded-md",
|
|
20
|
-
|
|
21
|
-
// Colors
|
|
22
|
-
"bg-surface-0 dark:bg-surface-900",
|
|
23
|
-
"text-surface-700 dark:text-white/80",
|
|
24
|
-
"dark:border-surface-700",
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
meter: {
|
|
28
|
-
class: [
|
|
29
|
-
// Position and Overflow
|
|
30
|
-
"overflow-hidden",
|
|
31
|
-
"relative",
|
|
32
|
-
|
|
33
|
-
// Shape and Size
|
|
34
|
-
"border-0",
|
|
35
|
-
"h-3",
|
|
36
|
-
|
|
37
|
-
// Spacing
|
|
38
|
-
"mb-2",
|
|
39
|
-
|
|
40
|
-
// Colors
|
|
41
|
-
"bg-surface-100 dark:bg-surface-700",
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
meterlabel: ({ instance }) => ({
|
|
45
|
-
class: [
|
|
46
|
-
// Size
|
|
47
|
-
"h-full",
|
|
48
|
-
|
|
49
|
-
// Colors
|
|
50
|
-
{
|
|
51
|
-
"bg-red-500 dark:bg-red-400/50": instance?.meter?.strength == "weak",
|
|
52
|
-
"bg-orange-500 dark:bg-orange-400/50":
|
|
53
|
-
instance?.meter?.strength == "medium",
|
|
54
|
-
"bg-green-500 dark:bg-green-400/50":
|
|
55
|
-
instance?.meter?.strength == "strong",
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
// Transitions
|
|
59
|
-
"transition-all duration-1000 ease-in-out",
|
|
60
|
-
],
|
|
61
|
-
}),
|
|
62
|
-
showicon: {
|
|
63
|
-
class: [
|
|
64
|
-
"absolute top-1/2 right-3 -mt-2 z-10",
|
|
65
|
-
"text-surface-600 dark:text-white/70",
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
hideicon: {
|
|
69
|
-
class: [
|
|
70
|
-
"absolute top-1/2 right-3 -mt-2 z-10",
|
|
71
|
-
"text-surface-600 dark:text-white/70",
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
input: {
|
|
75
|
-
root: ({ props, context, parent }) => ({
|
|
76
|
-
class: [
|
|
77
|
-
// Font
|
|
78
|
-
"font-sans leading-none",
|
|
79
|
-
|
|
80
|
-
// Flex
|
|
81
|
-
{ "flex-1 w-[1%]": parent.instance.$name == "InputGroup" },
|
|
82
|
-
|
|
83
|
-
// Spacing
|
|
84
|
-
"m-0",
|
|
85
|
-
{
|
|
86
|
-
"px-4 py-4": props.size == "large",
|
|
87
|
-
"px-2 py-2": props.size == "small",
|
|
88
|
-
"p-3": props.size == null,
|
|
89
|
-
},
|
|
90
|
-
"w-full",
|
|
91
|
-
|
|
92
|
-
// Shape
|
|
93
|
-
{ "rounded-md": parent.instance.$name !== "InputGroup" },
|
|
94
|
-
{
|
|
95
|
-
"first:rounded-l-md rounded-none last:rounded-r-md":
|
|
96
|
-
parent.instance.$name == "InputGroup",
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"border-0 border-y border-l last:border-r":
|
|
100
|
-
parent.instance.$name == "InputGroup",
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"first:ml-0 -ml-px":
|
|
104
|
-
parent.instance.$name == "InputGroup" && !props.showButtons,
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
// Colors
|
|
108
|
-
"text-surface-600 dark:text-surface-200",
|
|
109
|
-
"placeholder:text-surface-400 dark:placeholder:text-surface-500",
|
|
110
|
-
"bg-surface-0 dark:bg-surface-900",
|
|
111
|
-
"border",
|
|
112
|
-
{ "border-surface-300 dark:border-surface-600": !parent.props.invalid },
|
|
113
|
-
|
|
114
|
-
// Invalid State
|
|
115
|
-
{ "border-red-500 dark:border-red-400": parent.props.invalid },
|
|
116
|
-
|
|
117
|
-
// States
|
|
118
|
-
{
|
|
119
|
-
"hover:border-primary-500 dark:hover:border-primary-400":
|
|
120
|
-
!context.disabled && !parent.props.invalid,
|
|
121
|
-
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:z-10":
|
|
122
|
-
!context.disabled,
|
|
123
|
-
"opacity-60 select-none pointer-events-none cursor-default":
|
|
124
|
-
context.disabled,
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
// Misc
|
|
128
|
-
"appearance-none",
|
|
129
|
-
"transition-colors duration-200",
|
|
130
|
-
],
|
|
131
|
-
}),
|
|
132
|
-
},
|
|
133
|
-
transition: {
|
|
134
|
-
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
135
|
-
enterActiveClass:
|
|
136
|
-
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
137
|
-
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
138
|
-
leaveToClass: "opacity-0",
|
|
139
|
-
},
|
|
140
|
-
};
|