@fy-/fws-vue 0.1.2 → 0.1.4
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 +21 -0
- 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,129 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display
|
|
5
|
+
"inline-block",
|
|
6
|
+
|
|
7
|
+
// Misc
|
|
8
|
+
{
|
|
9
|
+
"opacity-60 select-none pointer-events-none cursor-default":
|
|
10
|
+
props.disabled,
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
}),
|
|
14
|
+
input: {
|
|
15
|
+
class: [
|
|
16
|
+
// Font
|
|
17
|
+
"font-sans text-base ",
|
|
18
|
+
|
|
19
|
+
// Spacing
|
|
20
|
+
"m-0",
|
|
21
|
+
"p-3",
|
|
22
|
+
|
|
23
|
+
// Size & Shape
|
|
24
|
+
"rounded-lg w-8 h-8",
|
|
25
|
+
|
|
26
|
+
// Colors
|
|
27
|
+
"bg-surface-0 dark:bg-surface-900",
|
|
28
|
+
"border border-surface-300 dark:border-surface-700",
|
|
29
|
+
|
|
30
|
+
// States
|
|
31
|
+
"hover:border-primary-500 dark:hover:border-primary-400",
|
|
32
|
+
"focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
33
|
+
|
|
34
|
+
// Transition
|
|
35
|
+
"transition-colors duration-200",
|
|
36
|
+
|
|
37
|
+
// Misc
|
|
38
|
+
"cursor-pointer",
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
panel: ({ props }) => ({
|
|
42
|
+
class: [
|
|
43
|
+
// Position & Size
|
|
44
|
+
{
|
|
45
|
+
"relative h-[166px] w-[193px]": props.inline,
|
|
46
|
+
"absolute h-[166px] w-[193px]": !props.inline,
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
// Shape
|
|
50
|
+
"shadow-md border",
|
|
51
|
+
|
|
52
|
+
// Colors
|
|
53
|
+
"bg-surface-800 border-surface-900 dark:border-surface-600",
|
|
54
|
+
],
|
|
55
|
+
}),
|
|
56
|
+
selector: {
|
|
57
|
+
class: [
|
|
58
|
+
// Position
|
|
59
|
+
"absolute top-[8px] left-[8px]",
|
|
60
|
+
|
|
61
|
+
// Size
|
|
62
|
+
"h-[150px] w-[150px]",
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
color: {
|
|
66
|
+
class: [
|
|
67
|
+
// Size
|
|
68
|
+
"h-[150px] w-[150px]",
|
|
69
|
+
],
|
|
70
|
+
style:
|
|
71
|
+
"background: linear-gradient(to top, #000 0%, rgb(0 0 0 / 0) 100%), linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0) 100%)",
|
|
72
|
+
},
|
|
73
|
+
colorhandle: {
|
|
74
|
+
class: [
|
|
75
|
+
"absolute",
|
|
76
|
+
|
|
77
|
+
// Shape
|
|
78
|
+
"rounded-full border border-solid",
|
|
79
|
+
|
|
80
|
+
// Size
|
|
81
|
+
"h-[10px] w-[10px]",
|
|
82
|
+
|
|
83
|
+
// Spacing
|
|
84
|
+
"-ml-[5px] -mt-[5px]",
|
|
85
|
+
|
|
86
|
+
// Colors
|
|
87
|
+
"border-white",
|
|
88
|
+
|
|
89
|
+
// Misc
|
|
90
|
+
"cursor-pointer opacity-85",
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
hue: {
|
|
94
|
+
class: [
|
|
95
|
+
// Position
|
|
96
|
+
"absolute top-[8px] left-[167px]",
|
|
97
|
+
|
|
98
|
+
// Size
|
|
99
|
+
"h-[150px] w-[17px]",
|
|
100
|
+
|
|
101
|
+
// Opacity
|
|
102
|
+
"opacity-85",
|
|
103
|
+
],
|
|
104
|
+
style:
|
|
105
|
+
"background: linear-gradient(0deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red)",
|
|
106
|
+
},
|
|
107
|
+
huehandle: {
|
|
108
|
+
class: [
|
|
109
|
+
// Position
|
|
110
|
+
"absolute left-0 -ml-[2px] -mt-[5px]",
|
|
111
|
+
|
|
112
|
+
// Size
|
|
113
|
+
"h-[10px] w-[21px]",
|
|
114
|
+
|
|
115
|
+
// Shape
|
|
116
|
+
"border-solid border-2",
|
|
117
|
+
|
|
118
|
+
// Misc
|
|
119
|
+
"cursor-pointer opacity-85",
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
transition: {
|
|
123
|
+
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
124
|
+
enterActiveClass:
|
|
125
|
+
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
126
|
+
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
127
|
+
leaveToClass: "opacity-0",
|
|
128
|
+
},
|
|
129
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Shape
|
|
5
|
+
"rounded-lg",
|
|
6
|
+
"shadow-lg",
|
|
7
|
+
"border-0",
|
|
8
|
+
|
|
9
|
+
// Positioning
|
|
10
|
+
"z-40 transform origin-center",
|
|
11
|
+
"mt-3 absolute left-0 top-0",
|
|
12
|
+
|
|
13
|
+
// Color
|
|
14
|
+
"dark:border",
|
|
15
|
+
"dark:border-surface-700",
|
|
16
|
+
"bg-surface-0 dark:bg-surface-800",
|
|
17
|
+
"text-surface-700 dark:text-surface-0/80",
|
|
18
|
+
|
|
19
|
+
// Before: Arrow
|
|
20
|
+
"before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-surface-0 dark:before:border-b-surface-800",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
content: {
|
|
24
|
+
class: "p-5 items-center flex",
|
|
25
|
+
},
|
|
26
|
+
icon: {
|
|
27
|
+
class: "text-2xl mr-4",
|
|
28
|
+
},
|
|
29
|
+
footer: {
|
|
30
|
+
class: [
|
|
31
|
+
// Flexbox and Alignment
|
|
32
|
+
"flex items-center justify-end",
|
|
33
|
+
"shrink-0",
|
|
34
|
+
"text-right",
|
|
35
|
+
"gap-2",
|
|
36
|
+
|
|
37
|
+
// Spacing
|
|
38
|
+
"px-6",
|
|
39
|
+
"pb-6",
|
|
40
|
+
|
|
41
|
+
// Shape
|
|
42
|
+
"border-t-0",
|
|
43
|
+
"rounded-b-lg",
|
|
44
|
+
|
|
45
|
+
// Colors
|
|
46
|
+
"bg-surface-0 dark:bg-surface-800",
|
|
47
|
+
"text-surface-700 dark:text-surface-0/80",
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
rejectbutton: {
|
|
51
|
+
root: {
|
|
52
|
+
class: [
|
|
53
|
+
"relative",
|
|
54
|
+
|
|
55
|
+
// Alignments
|
|
56
|
+
"items-center inline-flex text-center align-bottom justify-center",
|
|
57
|
+
|
|
58
|
+
// Sizes & Spacing
|
|
59
|
+
"px-4 py-3 leading-none",
|
|
60
|
+
|
|
61
|
+
// Shape
|
|
62
|
+
"rounded-md",
|
|
63
|
+
|
|
64
|
+
// Color
|
|
65
|
+
"text-primary-500 dark:text-primary-400",
|
|
66
|
+
|
|
67
|
+
// States
|
|
68
|
+
"hover:bg-primary-300/20",
|
|
69
|
+
"focus:outline-none focus:outline-offset-0 focus:ring",
|
|
70
|
+
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
acceptbutton: {
|
|
75
|
+
root: {
|
|
76
|
+
class: [
|
|
77
|
+
"relative",
|
|
78
|
+
|
|
79
|
+
// Alignments
|
|
80
|
+
"items-center inline-flex text-center align-bottom justify-center",
|
|
81
|
+
|
|
82
|
+
// Sizes & Spacing
|
|
83
|
+
"px-4 py-3 leading-none",
|
|
84
|
+
|
|
85
|
+
// Shape
|
|
86
|
+
"rounded-md",
|
|
87
|
+
|
|
88
|
+
// Color
|
|
89
|
+
"text-white dark:text-surface-900",
|
|
90
|
+
"bg-primary-500 dark:bg-primary-400",
|
|
91
|
+
"border border-primary-500 dark:border-primary-400",
|
|
92
|
+
|
|
93
|
+
// States
|
|
94
|
+
"hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
|
|
95
|
+
"focus:outline-none focus:outline-offset-0 focus:ring",
|
|
96
|
+
"focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
transition: {
|
|
101
|
+
enterFromClass: "opacity-0 scale-y-[0.8]",
|
|
102
|
+
enterActiveClass:
|
|
103
|
+
"transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
|
|
104
|
+
leaveActiveClass: "transition-opacity duration-100 ease-linear",
|
|
105
|
+
leaveToClass: "opacity-0",
|
|
106
|
+
},
|
|
107
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Sizing and Shape
|
|
5
|
+
"min-w-[12rem]",
|
|
6
|
+
"rounded-md",
|
|
7
|
+
"shadow-md",
|
|
8
|
+
|
|
9
|
+
// Spacing
|
|
10
|
+
"py-2",
|
|
11
|
+
|
|
12
|
+
// Colors
|
|
13
|
+
"bg-surface-0 dark:bg-surface-700",
|
|
14
|
+
"text-surface-700 dark:text-white/80",
|
|
15
|
+
"dark:border dark:border-surface-700",
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
menu: {
|
|
19
|
+
class: [
|
|
20
|
+
// Spacings and Shape
|
|
21
|
+
"list-none",
|
|
22
|
+
"m-0",
|
|
23
|
+
"p-0",
|
|
24
|
+
"outline-none",
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
menuitem: {
|
|
28
|
+
class: "relative",
|
|
29
|
+
},
|
|
30
|
+
content: ({ context }) => ({
|
|
31
|
+
class: [
|
|
32
|
+
// Shape
|
|
33
|
+
"rounded-none",
|
|
34
|
+
// Colors
|
|
35
|
+
"text-surface-700 dark:text-white/80",
|
|
36
|
+
{
|
|
37
|
+
"text-surface-500 dark:text-white/70":
|
|
38
|
+
!context.focused && !context.active,
|
|
39
|
+
"text-surface-500 dark:text-white/70 bg-surface-200 dark:bg-surface-600/90":
|
|
40
|
+
context.focused && !context.active,
|
|
41
|
+
"text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
|
|
42
|
+
context.focused && context.active,
|
|
43
|
+
"text-primary-700 dark:text-surface-0/80 bg-primary-50 dark:bg-primary-400/30":
|
|
44
|
+
!context.focused && context.active,
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
// Transitions
|
|
48
|
+
"transition-shadow",
|
|
49
|
+
"duration-200",
|
|
50
|
+
|
|
51
|
+
// States
|
|
52
|
+
{
|
|
53
|
+
"hover:bg-surface-100 dark:hover:bg-surface-600/80": !context.active,
|
|
54
|
+
"hover:bg-primary-400/30 dark:hover:bg-primary-300/30 text-primary-700 dark:text-surface-0/80":
|
|
55
|
+
context.active,
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
// Disabled
|
|
59
|
+
{ "opacity-60 pointer-events-none cursor-default": context.disabled },
|
|
60
|
+
],
|
|
61
|
+
}),
|
|
62
|
+
action: {
|
|
63
|
+
class: [
|
|
64
|
+
"relative",
|
|
65
|
+
// Flexbox
|
|
66
|
+
|
|
67
|
+
"flex",
|
|
68
|
+
"items-center",
|
|
69
|
+
|
|
70
|
+
// Spacing
|
|
71
|
+
"py-3",
|
|
72
|
+
"px-5",
|
|
73
|
+
|
|
74
|
+
// Color
|
|
75
|
+
"text-surface-700 dark:text-white/80",
|
|
76
|
+
|
|
77
|
+
// Misc
|
|
78
|
+
"no-underline",
|
|
79
|
+
"overflow-hidden",
|
|
80
|
+
"cursor-pointer",
|
|
81
|
+
"select-none",
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
icon: {
|
|
85
|
+
class: [
|
|
86
|
+
// Spacing
|
|
87
|
+
"mr-2",
|
|
88
|
+
|
|
89
|
+
// Color
|
|
90
|
+
"text-surface-600 dark:text-white/70",
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
label: {
|
|
94
|
+
class: ["leading-none"],
|
|
95
|
+
},
|
|
96
|
+
submenu: ({ props }) => ({
|
|
97
|
+
class: [
|
|
98
|
+
// Size
|
|
99
|
+
"w-full sm:w-48",
|
|
100
|
+
|
|
101
|
+
// Spacing
|
|
102
|
+
"py-1",
|
|
103
|
+
"m-0",
|
|
104
|
+
"list-none",
|
|
105
|
+
|
|
106
|
+
// Shape
|
|
107
|
+
"shadow-md",
|
|
108
|
+
"rounded-md",
|
|
109
|
+
"dark:border dark:border-surface-700",
|
|
110
|
+
|
|
111
|
+
// Position
|
|
112
|
+
"static sm:absolute",
|
|
113
|
+
"z-10",
|
|
114
|
+
{ "sm:absolute sm:left-full sm:top-0": props.level > 1 },
|
|
115
|
+
|
|
116
|
+
// Color
|
|
117
|
+
"bg-surface-0 dark:bg-surface-700",
|
|
118
|
+
],
|
|
119
|
+
}),
|
|
120
|
+
submenuicon: {
|
|
121
|
+
class: ["ml-auto"],
|
|
122
|
+
},
|
|
123
|
+
separator: {
|
|
124
|
+
class: "border-t border-surface-200 dark:border-surface-600 my-1",
|
|
125
|
+
},
|
|
126
|
+
transition: {
|
|
127
|
+
enterFromClass: "opacity-0",
|
|
128
|
+
enterActiveClass: "transition-opacity duration-250",
|
|
129
|
+
},
|
|
130
|
+
};
|