@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,139 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
};
|