@fy-/fws-vue 0.1.3 → 0.1.5
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 +1 -1
- package/index.ts +4 -1
- package/package.json +1 -1
- package/presets/Lara/accordion/index.js +86 -0
- package/presets/Lara/autocomplete/index.js +284 -0
- package/presets/Lara/avatar/index.js +46 -0
- package/presets/Lara/badge/index.js +44 -0
- package/presets/Lara/badgedirective/index.js +49 -0
- package/presets/Lara/blockui/index.js +8 -0
- package/presets/Lara/breadcrumb/index.js +64 -0
- package/presets/Lara/button/index.js +470 -0
- package/presets/Lara/calendar/index.js +683 -0
- package/presets/Lara/card/index.js +37 -0
- package/presets/Lara/carousel/index.js +152 -0
- package/presets/Lara/cascadeselect/index.js +228 -0
- package/presets/Lara/checkbox/index.js +106 -0
- package/presets/Lara/chip/index.js +45 -0
- package/presets/Lara/chips/index.js +118 -0
- package/presets/Lara/colorpicker/index.js +129 -0
- package/presets/Lara/confirmpopup/index.js +107 -0
- package/presets/Lara/contextmenu/index.js +130 -0
- package/presets/Lara/datatable/index.js +1289 -0
- package/presets/Lara/dataview/index.js +40 -0
- package/presets/Lara/deferred/index.js +3 -0
- package/presets/Lara/dialog/index.js +249 -0
- package/presets/Lara/divider/index.js +72 -0
- package/presets/Lara/dock/index.js +97 -0
- package/presets/Lara/dropdown/index.js +300 -0
- package/presets/Lara/fieldset/index.js +98 -0
- package/presets/Lara/fileupload/index.js +173 -0
- package/presets/Lara/floatlabel/index.js +26 -0
- package/presets/Lara/galleria/index.js +351 -0
- package/presets/Lara/global.js +90 -0
- package/presets/Lara/iconfield/index.js +22 -0
- package/presets/Lara/image/index.js +206 -0
- package/presets/Lara/index.js +181 -0
- package/presets/Lara/inlinemessage/index.js +36 -0
- package/presets/Lara/inplace/index.js +27 -0
- package/presets/Lara/inputgroup/index.js +5 -0
- package/presets/Lara/inputgroupaddon/index.js +28 -0
- package/presets/Lara/inputmask/index.js +37 -0
- package/presets/Lara/inputnumber/index.js +253 -0
- package/presets/Lara/inputotp/index.js +72 -0
- package/presets/Lara/inputswitch/index.js +93 -0
- package/presets/Lara/inputtext/index.js +61 -0
- package/presets/Lara/knob/index.js +47 -0
- package/presets/Lara/listbox/index.js +170 -0
- package/presets/Lara/megamenu/index.js +207 -0
- package/presets/Lara/menu/index.js +98 -0
- package/presets/Lara/menubar/index.js +181 -0
- package/presets/Lara/message/index.js +87 -0
- package/presets/Lara/metergroup/index.js +110 -0
- package/presets/Lara/multiselect/index.js +589 -0
- package/presets/Lara/orderlist/index.js +266 -0
- package/presets/Lara/organizationchart/index.js +142 -0
- package/presets/Lara/overlaypanel/index.js +41 -0
- package/presets/Lara/paginator/index.js +590 -0
- package/presets/Lara/panel/index.js +93 -0
- package/presets/Lara/panelmenu/index.js +139 -0
- package/presets/Lara/password/index.js +140 -0
- package/presets/Lara/picklist/index.js +659 -0
- package/presets/Lara/progressbar/index.js +61 -0
- package/presets/Lara/progressspinner/index.js +51 -0
- package/presets/Lara/radiobutton/index.js +116 -0
- package/presets/Lara/rating/index.js +95 -0
- package/presets/Lara/ripple/index.js +6 -0
- package/presets/Lara/scrollpanel/index.js +77 -0
- package/presets/Lara/scrolltop/index.js +45 -0
- package/presets/Lara/selectbutton/index.js +60 -0
- package/presets/Lara/sidebar/index.js +163 -0
- package/presets/Lara/skeleton/index.js +19 -0
- package/presets/Lara/slider/index.js +149 -0
- package/presets/Lara/speeddial/index.js +535 -0
- package/presets/Lara/splitbutton/index.js +1081 -0
- package/presets/Lara/splitter/index.js +64 -0
- package/presets/Lara/stepper/index.js +183 -0
- package/presets/Lara/steps/index.js +115 -0
- package/presets/Lara/tabmenu/index.js +82 -0
- package/presets/Lara/tabview/index.js +166 -0
- package/presets/Lara/tag/index.js +37 -0
- package/presets/Lara/terminal/index.js +60 -0
- package/presets/Lara/textarea/index.js +39 -0
- package/presets/Lara/tieredmenu/index.js +125 -0
- package/presets/Lara/timeline/index.js +107 -0
- package/presets/Lara/toast/index.js +113 -0
- package/presets/Lara/togglebutton/index.js +100 -0
- package/presets/Lara/toolbar/index.js +28 -0
- package/presets/Lara/tooltip/index.js +73 -0
- package/presets/Lara/tree/index.js +281 -0
- package/presets/Lara/treeselect/index.js +387 -0
- package/presets/Lara/treetable/index.js +509 -0
- package/presets/Lara/tristatecheckbox/index.js +112 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
"relative",
|
|
5
|
+
|
|
6
|
+
// Flexbox
|
|
7
|
+
"flex",
|
|
8
|
+
"items-center",
|
|
9
|
+
|
|
10
|
+
// Spacing
|
|
11
|
+
"p-2",
|
|
12
|
+
|
|
13
|
+
// Shape
|
|
14
|
+
"rounded-md",
|
|
15
|
+
|
|
16
|
+
// Color
|
|
17
|
+
"bg-surface-50 dark:bg-surface-700",
|
|
18
|
+
"border border-surface-200 dark:border-surface-700",
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
menu: ({ props }) => ({
|
|
22
|
+
class: [
|
|
23
|
+
// Flexbox
|
|
24
|
+
"sm:flex",
|
|
25
|
+
"items-center",
|
|
26
|
+
"flex-wrap",
|
|
27
|
+
"flex-col sm:flex-row",
|
|
28
|
+
{ hidden: !props?.mobileActive, flex: props?.mobileActive },
|
|
29
|
+
|
|
30
|
+
// Position
|
|
31
|
+
"absolute sm:relative",
|
|
32
|
+
"top-full left-0",
|
|
33
|
+
"sm:top-auto sm:left-auto",
|
|
34
|
+
|
|
35
|
+
// Size
|
|
36
|
+
"w-full sm:w-auto",
|
|
37
|
+
|
|
38
|
+
// Spacing
|
|
39
|
+
"m-0",
|
|
40
|
+
"py-1 sm:py-0 sm:p-0",
|
|
41
|
+
"list-none",
|
|
42
|
+
|
|
43
|
+
// Shape
|
|
44
|
+
"shadow-md sm:shadow-none",
|
|
45
|
+
"border-0",
|
|
46
|
+
|
|
47
|
+
// Color
|
|
48
|
+
"bg-surface-0 dark:bg-surface-700 sm:bg-transparent",
|
|
49
|
+
|
|
50
|
+
// Misc
|
|
51
|
+
"outline-none",
|
|
52
|
+
],
|
|
53
|
+
}),
|
|
54
|
+
menuitem: {
|
|
55
|
+
class: "sm:relative sm:w-auto w-full static",
|
|
56
|
+
},
|
|
57
|
+
content: ({ props, context }) => ({
|
|
58
|
+
class: [
|
|
59
|
+
// Shape
|
|
60
|
+
{ "rounded-md": props.root },
|
|
61
|
+
|
|
62
|
+
// Colors
|
|
63
|
+
{
|
|
64
|
+
"text-surface-500 dark:text-white/70":
|
|
65
|
+
!context.focused && !context.active,
|
|
66
|
+
"text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90":
|
|
67
|
+
context.focused && !context.active,
|
|
68
|
+
"text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
|
|
69
|
+
context.focused && context.active,
|
|
70
|
+
"text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
|
|
71
|
+
!context.focused && context.active,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
// Hover States
|
|
75
|
+
{
|
|
76
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80": !context.active,
|
|
77
|
+
"hover:bg-primary-500/50 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80":
|
|
78
|
+
context.active,
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
// Transitions
|
|
82
|
+
"transition-all",
|
|
83
|
+
"duration-200",
|
|
84
|
+
],
|
|
85
|
+
}),
|
|
86
|
+
action: ({ context }) => ({
|
|
87
|
+
class: [
|
|
88
|
+
"relative",
|
|
89
|
+
|
|
90
|
+
// Flexbox
|
|
91
|
+
"flex",
|
|
92
|
+
"items-center",
|
|
93
|
+
|
|
94
|
+
// Spacing
|
|
95
|
+
"py-3",
|
|
96
|
+
"px-5",
|
|
97
|
+
|
|
98
|
+
// Size
|
|
99
|
+
{
|
|
100
|
+
"pl-9 sm:pl-5": context.level === 1,
|
|
101
|
+
"pl-14 sm:pl-5": context.level === 2,
|
|
102
|
+
},
|
|
103
|
+
"leading-none",
|
|
104
|
+
|
|
105
|
+
// Misc
|
|
106
|
+
"select-none",
|
|
107
|
+
"cursor-pointer",
|
|
108
|
+
"no-underline ",
|
|
109
|
+
"overflow-hidden",
|
|
110
|
+
],
|
|
111
|
+
}),
|
|
112
|
+
icon: {
|
|
113
|
+
class: "mr-2",
|
|
114
|
+
},
|
|
115
|
+
submenuicon: ({ props }) => ({
|
|
116
|
+
class: [
|
|
117
|
+
{
|
|
118
|
+
"ml-auto sm:ml-2": props.root,
|
|
119
|
+
"ml-auto": !props.root,
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
}),
|
|
123
|
+
submenu: ({ props }) => ({
|
|
124
|
+
class: [
|
|
125
|
+
// Size
|
|
126
|
+
"w-full sm:w-48",
|
|
127
|
+
|
|
128
|
+
// Spacing
|
|
129
|
+
"py-1",
|
|
130
|
+
"m-0",
|
|
131
|
+
"list-none",
|
|
132
|
+
|
|
133
|
+
// Shape
|
|
134
|
+
"shadow-none sm:shadow-md",
|
|
135
|
+
"border-0",
|
|
136
|
+
|
|
137
|
+
// Position
|
|
138
|
+
"static sm:absolute",
|
|
139
|
+
"z-10",
|
|
140
|
+
{ "sm:absolute sm:left-full sm:top-0": props.level > 1 },
|
|
141
|
+
|
|
142
|
+
// Color
|
|
143
|
+
"bg-surface-0 dark:bg-surface-700",
|
|
144
|
+
],
|
|
145
|
+
}),
|
|
146
|
+
separator: {
|
|
147
|
+
class: "border-t border-surface-200 dark:border-surface-600 my-1",
|
|
148
|
+
},
|
|
149
|
+
button: {
|
|
150
|
+
class: [
|
|
151
|
+
// Flexbox
|
|
152
|
+
"flex sm:hidden",
|
|
153
|
+
"items-center justify-center",
|
|
154
|
+
|
|
155
|
+
// Size
|
|
156
|
+
"w-8",
|
|
157
|
+
"h-8",
|
|
158
|
+
|
|
159
|
+
// Shape
|
|
160
|
+
"rounded-full",
|
|
161
|
+
// Color
|
|
162
|
+
"text-surface-500 dark:text-white/80",
|
|
163
|
+
|
|
164
|
+
// States
|
|
165
|
+
"hover:text-surface-600 dark:hover:text-white/60",
|
|
166
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80",
|
|
167
|
+
"focus:outline-none focus:outline-offset-0",
|
|
168
|
+
"focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
169
|
+
|
|
170
|
+
// Transitions
|
|
171
|
+
"transition duration-200 ease-in-out",
|
|
172
|
+
|
|
173
|
+
// Misc
|
|
174
|
+
"cursor-pointer",
|
|
175
|
+
"no-underline",
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
end: {
|
|
179
|
+
class: "ml-auto self-center",
|
|
180
|
+
},
|
|
181
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Spacing and Shape
|
|
5
|
+
"my-4 mx-0",
|
|
6
|
+
"rounded-md",
|
|
7
|
+
"border-solid border-0 border-l-[6px]",
|
|
8
|
+
|
|
9
|
+
// Colors
|
|
10
|
+
{
|
|
11
|
+
"bg-blue-100/70 dark:bg-blue-500/20": props.severity == "info",
|
|
12
|
+
"bg-green-100/70 dark:bg-green-500/20": props.severity == "success",
|
|
13
|
+
"bg-orange-100/70 dark:bg-orange-500/20": props.severity == "warn",
|
|
14
|
+
"bg-red-100/70 dark:bg-red-500/20": props.severity == "error",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"border-blue-500 dark:border-blue-400": props.severity == "info",
|
|
18
|
+
"border-green-500 dark:border-green-400": props.severity == "success",
|
|
19
|
+
"border-orange-500 dark:border-orange-400": props.severity == "warn",
|
|
20
|
+
"border-red-500 dark:border-red-400": props.severity == "error",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"text-blue-700 dark:text-blue-300": props.severity == "info",
|
|
24
|
+
"text-green-700 dark:text-green-300": props.severity == "success",
|
|
25
|
+
"text-orange-700 dark:text-orange-300": props.severity == "warn",
|
|
26
|
+
"text-red-700 dark:text-red-300": props.severity == "error",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
}),
|
|
30
|
+
wrapper: {
|
|
31
|
+
class: [
|
|
32
|
+
// Flexbox
|
|
33
|
+
"flex items-center",
|
|
34
|
+
|
|
35
|
+
// Spacing
|
|
36
|
+
"py-5 px-7",
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
icon: {
|
|
40
|
+
class: [
|
|
41
|
+
// Sizing and Spacing
|
|
42
|
+
"w-6 h-6",
|
|
43
|
+
"text-lg leading-none mr-2 shrink-0",
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
text: {
|
|
47
|
+
class: [
|
|
48
|
+
// Font and Text
|
|
49
|
+
"text-base leading-none",
|
|
50
|
+
"font-medium",
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
button: {
|
|
54
|
+
class: [
|
|
55
|
+
// Flexbox
|
|
56
|
+
"flex items-center justify-center",
|
|
57
|
+
|
|
58
|
+
// Size
|
|
59
|
+
"w-8 h-8",
|
|
60
|
+
|
|
61
|
+
// Spacing and Misc
|
|
62
|
+
"ml-auto relative",
|
|
63
|
+
|
|
64
|
+
// Shape
|
|
65
|
+
"rounded-full",
|
|
66
|
+
|
|
67
|
+
// Colors
|
|
68
|
+
"bg-transparent",
|
|
69
|
+
|
|
70
|
+
// Transitions
|
|
71
|
+
"transition duration-200 ease-in-out",
|
|
72
|
+
|
|
73
|
+
// States
|
|
74
|
+
"hover:bg-surface-0/50 dark:hover:bg-surface-0/10",
|
|
75
|
+
|
|
76
|
+
// Misc
|
|
77
|
+
"overflow-hidden",
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
transition: {
|
|
81
|
+
enterFromClass: "opacity-0",
|
|
82
|
+
enterActiveClass: "transition-opacity duration-300",
|
|
83
|
+
leaveFromClass: "max-h-40",
|
|
84
|
+
leaveActiveClass: "overflow-hidden transition-all duration-300 ease-in",
|
|
85
|
+
leaveToClass: "max-h-0 opacity-0 !m-0",
|
|
86
|
+
},
|
|
87
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox
|
|
5
|
+
"flex gap-4",
|
|
6
|
+
|
|
7
|
+
{
|
|
8
|
+
"flex-col": props.orientation == "horizontal",
|
|
9
|
+
"flex-row": props.orientation == "vertical",
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
}),
|
|
13
|
+
metercontainer: ({ props }) => ({
|
|
14
|
+
class: [
|
|
15
|
+
// Flexbox
|
|
16
|
+
"flex",
|
|
17
|
+
|
|
18
|
+
{ "flex-col": props.orientation === "vertical" },
|
|
19
|
+
|
|
20
|
+
// Sizing
|
|
21
|
+
{ "w-2 h-full": props.orientation === "vertical" },
|
|
22
|
+
{ "h-2": props.orientation === "horizontal" },
|
|
23
|
+
|
|
24
|
+
// Colors
|
|
25
|
+
"bg-gray-200 dark:bg-gray-700",
|
|
26
|
+
|
|
27
|
+
// Border Radius
|
|
28
|
+
"rounded-lg",
|
|
29
|
+
],
|
|
30
|
+
}),
|
|
31
|
+
meter: ({ props }) => ({
|
|
32
|
+
class: [
|
|
33
|
+
// Shape
|
|
34
|
+
"border-0",
|
|
35
|
+
|
|
36
|
+
// Rounded Corners - Horizontal
|
|
37
|
+
{
|
|
38
|
+
"first:rounded-l-lg last:rounded-r-lg":
|
|
39
|
+
props.orientation === "horizontal",
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
// Rounded Corners - Vertical
|
|
43
|
+
{
|
|
44
|
+
"first:rounded-t-lg last:rounded-b-lg":
|
|
45
|
+
props.orientation === "vertical",
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
// Colors
|
|
49
|
+
"bg-primary-500 dark:bg-primary-400",
|
|
50
|
+
],
|
|
51
|
+
}),
|
|
52
|
+
labellist: ({ props }) => ({
|
|
53
|
+
class: [
|
|
54
|
+
// Display & Flexbox
|
|
55
|
+
"flex flex-wrap",
|
|
56
|
+
|
|
57
|
+
{ "gap-4": props.labelOrientation === "horizontal" },
|
|
58
|
+
|
|
59
|
+
{ "gap-2": props.labelOrientation === "vertical" },
|
|
60
|
+
|
|
61
|
+
{ "flex-col": props.labelOrientation === "vertical" },
|
|
62
|
+
|
|
63
|
+
// Conditional Alignment - Horizontal
|
|
64
|
+
{
|
|
65
|
+
"align-end":
|
|
66
|
+
props.labelOrientation === "horizontal" &&
|
|
67
|
+
props.labelPosition === "end",
|
|
68
|
+
"align-start":
|
|
69
|
+
props.labelOrientation === "horizontal" &&
|
|
70
|
+
props.labelPosition === "start",
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
// Conditional Alignment - Vertical
|
|
74
|
+
{
|
|
75
|
+
"justify-end":
|
|
76
|
+
props.labelOrientation === "vertical" &&
|
|
77
|
+
props.labelPosition === "end",
|
|
78
|
+
"justify-start":
|
|
79
|
+
props.labelOrientation === "vertical" &&
|
|
80
|
+
props.labelPosition === "start",
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
// List Styling
|
|
84
|
+
"m-0 p-0 list-none",
|
|
85
|
+
],
|
|
86
|
+
}),
|
|
87
|
+
labellistitem: {
|
|
88
|
+
class: [
|
|
89
|
+
// Flexbox
|
|
90
|
+
"inline-flex",
|
|
91
|
+
"items-center",
|
|
92
|
+
"gap-2",
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
labellisttype: {
|
|
96
|
+
class: [
|
|
97
|
+
// Display
|
|
98
|
+
"inline-flex",
|
|
99
|
+
|
|
100
|
+
// Background Color
|
|
101
|
+
"bg-primary-500 dark:bg-primary-400",
|
|
102
|
+
|
|
103
|
+
// Size
|
|
104
|
+
"w-2 h-2",
|
|
105
|
+
|
|
106
|
+
// Rounded Shape
|
|
107
|
+
"rounded-full",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
};
|