@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.
Files changed (92) hide show
  1. package/components/ui/DefaultInput.vue +1 -1
  2. package/index.ts +4 -1
  3. package/package.json +1 -1
  4. package/presets/Lara/accordion/index.js +86 -0
  5. package/presets/Lara/autocomplete/index.js +284 -0
  6. package/presets/Lara/avatar/index.js +46 -0
  7. package/presets/Lara/badge/index.js +44 -0
  8. package/presets/Lara/badgedirective/index.js +49 -0
  9. package/presets/Lara/blockui/index.js +8 -0
  10. package/presets/Lara/breadcrumb/index.js +64 -0
  11. package/presets/Lara/button/index.js +470 -0
  12. package/presets/Lara/calendar/index.js +683 -0
  13. package/presets/Lara/card/index.js +37 -0
  14. package/presets/Lara/carousel/index.js +152 -0
  15. package/presets/Lara/cascadeselect/index.js +228 -0
  16. package/presets/Lara/checkbox/index.js +106 -0
  17. package/presets/Lara/chip/index.js +45 -0
  18. package/presets/Lara/chips/index.js +118 -0
  19. package/presets/Lara/colorpicker/index.js +129 -0
  20. package/presets/Lara/confirmpopup/index.js +107 -0
  21. package/presets/Lara/contextmenu/index.js +130 -0
  22. package/presets/Lara/datatable/index.js +1289 -0
  23. package/presets/Lara/dataview/index.js +40 -0
  24. package/presets/Lara/deferred/index.js +3 -0
  25. package/presets/Lara/dialog/index.js +249 -0
  26. package/presets/Lara/divider/index.js +72 -0
  27. package/presets/Lara/dock/index.js +97 -0
  28. package/presets/Lara/dropdown/index.js +300 -0
  29. package/presets/Lara/fieldset/index.js +98 -0
  30. package/presets/Lara/fileupload/index.js +173 -0
  31. package/presets/Lara/floatlabel/index.js +26 -0
  32. package/presets/Lara/galleria/index.js +351 -0
  33. package/presets/Lara/global.js +90 -0
  34. package/presets/Lara/iconfield/index.js +22 -0
  35. package/presets/Lara/image/index.js +206 -0
  36. package/presets/Lara/index.js +181 -0
  37. package/presets/Lara/inlinemessage/index.js +36 -0
  38. package/presets/Lara/inplace/index.js +27 -0
  39. package/presets/Lara/inputgroup/index.js +5 -0
  40. package/presets/Lara/inputgroupaddon/index.js +28 -0
  41. package/presets/Lara/inputmask/index.js +37 -0
  42. package/presets/Lara/inputnumber/index.js +253 -0
  43. package/presets/Lara/inputotp/index.js +72 -0
  44. package/presets/Lara/inputswitch/index.js +93 -0
  45. package/presets/Lara/inputtext/index.js +61 -0
  46. package/presets/Lara/knob/index.js +47 -0
  47. package/presets/Lara/listbox/index.js +170 -0
  48. package/presets/Lara/megamenu/index.js +207 -0
  49. package/presets/Lara/menu/index.js +98 -0
  50. package/presets/Lara/menubar/index.js +181 -0
  51. package/presets/Lara/message/index.js +87 -0
  52. package/presets/Lara/metergroup/index.js +110 -0
  53. package/presets/Lara/multiselect/index.js +589 -0
  54. package/presets/Lara/orderlist/index.js +266 -0
  55. package/presets/Lara/organizationchart/index.js +142 -0
  56. package/presets/Lara/overlaypanel/index.js +41 -0
  57. package/presets/Lara/paginator/index.js +590 -0
  58. package/presets/Lara/panel/index.js +93 -0
  59. package/presets/Lara/panelmenu/index.js +139 -0
  60. package/presets/Lara/password/index.js +140 -0
  61. package/presets/Lara/picklist/index.js +659 -0
  62. package/presets/Lara/progressbar/index.js +61 -0
  63. package/presets/Lara/progressspinner/index.js +51 -0
  64. package/presets/Lara/radiobutton/index.js +116 -0
  65. package/presets/Lara/rating/index.js +95 -0
  66. package/presets/Lara/ripple/index.js +6 -0
  67. package/presets/Lara/scrollpanel/index.js +77 -0
  68. package/presets/Lara/scrolltop/index.js +45 -0
  69. package/presets/Lara/selectbutton/index.js +60 -0
  70. package/presets/Lara/sidebar/index.js +163 -0
  71. package/presets/Lara/skeleton/index.js +19 -0
  72. package/presets/Lara/slider/index.js +149 -0
  73. package/presets/Lara/speeddial/index.js +535 -0
  74. package/presets/Lara/splitbutton/index.js +1081 -0
  75. package/presets/Lara/splitter/index.js +64 -0
  76. package/presets/Lara/stepper/index.js +183 -0
  77. package/presets/Lara/steps/index.js +115 -0
  78. package/presets/Lara/tabmenu/index.js +82 -0
  79. package/presets/Lara/tabview/index.js +166 -0
  80. package/presets/Lara/tag/index.js +37 -0
  81. package/presets/Lara/terminal/index.js +60 -0
  82. package/presets/Lara/textarea/index.js +39 -0
  83. package/presets/Lara/tieredmenu/index.js +125 -0
  84. package/presets/Lara/timeline/index.js +107 -0
  85. package/presets/Lara/toast/index.js +113 -0
  86. package/presets/Lara/togglebutton/index.js +100 -0
  87. package/presets/Lara/toolbar/index.js +28 -0
  88. package/presets/Lara/tooltip/index.js +73 -0
  89. package/presets/Lara/tree/index.js +281 -0
  90. package/presets/Lara/treeselect/index.js +387 -0
  91. package/presets/Lara/treetable/index.js +509 -0
  92. package/presets/Lara/tristatecheckbox/index.js +112 -0
@@ -0,0 +1,266 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Flexbox
5
+ "flex",
6
+ ],
7
+ },
8
+ controls: {
9
+ class: [
10
+ // Flexbox & Alignment
11
+ "flex flex-col justify-center gap-2",
12
+
13
+ // Spacing
14
+ "p-5",
15
+ ],
16
+ },
17
+ moveupbutton: {
18
+ root: ({ context }) => ({
19
+ class: [
20
+ // Flexbox & Alignment
21
+ "relative inline-flex items-center justify-center",
22
+
23
+ // Shape
24
+ "rounded-md",
25
+
26
+ // Color
27
+ "text-white dark:text-surface-900",
28
+ "bg-primary-500 dark:bg-primary-400",
29
+ "border border-primary-500 dark:border-primary-400",
30
+
31
+ // Spacing & Size
32
+ "w-12",
33
+ "m-0",
34
+ "px-0 py-3",
35
+
36
+ // Transitions
37
+ "transition duration-200 ease-in-out",
38
+
39
+ // State
40
+ "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
41
+ "focus:outline-none focus:outline-offset-0 focus:ring",
42
+ "focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
43
+ { "cursor-default pointer-events-none opacity-60": context.disabled },
44
+
45
+ // Interactivity
46
+ "cursor-pointer user-select-none",
47
+ ],
48
+ }),
49
+ label: {
50
+ class: [
51
+ // Flexbox
52
+ "flex-initial",
53
+
54
+ // Size
55
+ "w-0",
56
+ ],
57
+ },
58
+ },
59
+ movedownbutton: {
60
+ root: ({ context }) => ({
61
+ class: [
62
+ // Flexbox & Alignment
63
+ "relative inline-flex items-center justify-center",
64
+
65
+ // Shape
66
+ "rounded-md",
67
+
68
+ // Color
69
+ "text-white dark:text-surface-900",
70
+ "bg-primary-500 dark:bg-primary-400",
71
+ "border border-primary-500 dark:border-primary-400",
72
+
73
+ // Spacing & Size
74
+ "w-12",
75
+ "m-0",
76
+ "px-0 py-3",
77
+
78
+ // Transitions
79
+ "transition duration-200 ease-in-out",
80
+
81
+ // State
82
+ "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
83
+ "focus:outline-none focus:outline-offset-0 focus:ring",
84
+ "focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
85
+ { "cursor-default pointer-events-none opacity-60": context.disabled },
86
+
87
+ // Interactivity
88
+ "cursor-pointer user-select-none",
89
+ ],
90
+ }),
91
+ label: {
92
+ class: [
93
+ // Flexbox
94
+ "flex-initial",
95
+
96
+ // Size
97
+ "w-0",
98
+ ],
99
+ },
100
+ },
101
+ movetopbutton: {
102
+ root: ({ context }) => ({
103
+ class: [
104
+ // Flexbox & Alignment
105
+ "relative inline-flex items-center justify-center",
106
+
107
+ // Shape
108
+ "rounded-md",
109
+
110
+ // Color
111
+ "text-white dark:text-surface-900",
112
+ "bg-primary-500 dark:bg-primary-400",
113
+ "border border-primary-500 dark:border-primary-400",
114
+
115
+ // Spacing & Size
116
+ "w-12",
117
+ "m-0",
118
+ "px-0 py-3",
119
+
120
+ // Transitions
121
+ "transition duration-200 ease-in-out",
122
+
123
+ // State
124
+ "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
125
+ "focus:outline-none focus:outline-offset-0 focus:ring",
126
+ "focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
127
+ { "cursor-default pointer-events-none opacity-60": context.disabled },
128
+
129
+ // Interactivity
130
+ "cursor-pointer user-select-none",
131
+ ],
132
+ }),
133
+ label: {
134
+ class: [
135
+ // Flexbox
136
+ "flex-initial",
137
+
138
+ // Size
139
+ "w-0",
140
+ ],
141
+ },
142
+ },
143
+ movebottombutton: {
144
+ root: ({ context }) => ({
145
+ class: [
146
+ // Flexbox & Alignment
147
+ "relative inline-flex items-center justify-center",
148
+
149
+ // Shape
150
+ "rounded-md",
151
+
152
+ // Color
153
+ "text-white dark:text-surface-900",
154
+ "bg-primary-500 dark:bg-primary-400",
155
+ "border border-primary-500 dark:border-primary-400",
156
+
157
+ // Spacing & Size
158
+ "w-12",
159
+ "m-0",
160
+ "px-0 py-3",
161
+
162
+ // Transitions
163
+ "transition duration-200 ease-in-out",
164
+
165
+ // State
166
+ "hover:bg-primary-600 dark:hover:bg-primary-300 hover:border-primary-600 dark:hover:border-primary-300",
167
+ "focus:outline-none focus:outline-offset-0 focus:ring",
168
+ "focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
169
+ { "cursor-default pointer-events-none opacity-60": context.disabled },
170
+
171
+ // Interactivity
172
+ "cursor-pointer user-select-none",
173
+ ],
174
+ }),
175
+ label: {
176
+ class: [
177
+ // Flexbox
178
+ "flex-initial",
179
+
180
+ // Size
181
+ "w-0",
182
+ ],
183
+ },
184
+ },
185
+ container: {
186
+ class: ["flex-auto"],
187
+ },
188
+ header: {
189
+ class: [
190
+ "font-bold",
191
+
192
+ // Shape
193
+ "border-b-0 rounded-t-md",
194
+
195
+ // Spacing
196
+ "p-5",
197
+
198
+ // Color
199
+ "text-surface-700 dark:text-white/80",
200
+ "bg-surface-50 dark:bg-surface-800",
201
+ "border border-surface-200 dark:border-surface-700",
202
+ ],
203
+ },
204
+ list: {
205
+ class: [
206
+ // Spacing
207
+ "list-none m-0 p-0",
208
+
209
+ // Size
210
+ "min-h-[12rem] max-h-[24rem]",
211
+
212
+ // Shape
213
+ "rounded-b-md",
214
+
215
+ // Color
216
+ "text-surface-600 dark:text-white/80",
217
+ "bg-surface-0 dark:bg-surface-800",
218
+ "border border-surface-200 dark:border-surface-700",
219
+
220
+ // Spacing
221
+ "py-3 px-0",
222
+
223
+ // Focus & Outline
224
+ "outline-none",
225
+
226
+ // Misc
227
+ "overflow-auto",
228
+ ],
229
+ },
230
+ item: ({ context }) => ({
231
+ class: [
232
+ // Position
233
+ "relative",
234
+
235
+ // Spacing
236
+ "py-3 px-5 m-0",
237
+
238
+ // Shape
239
+ "border-none",
240
+
241
+ // Transition
242
+ "transition duration-200",
243
+
244
+ // Color
245
+ "text-surface-700 dark:text-white/80",
246
+ {
247
+ "bg-primary-500/20 dark:bg-primary-300/20":
248
+ context.active && !context.focused,
249
+ },
250
+ {
251
+ "bg-primary-500/30 dark:bg-primary-400/30":
252
+ context.active && context.focused,
253
+ },
254
+ {
255
+ "bg-surface-100 dark:bg-surface-700/70":
256
+ !context.active && context.focused,
257
+ },
258
+
259
+ // State
260
+ "hover:bg-surface-100 dark:hover:bg-surface-700",
261
+
262
+ // Misc
263
+ "cursor-pointer overflow-hidden",
264
+ ],
265
+ }),
266
+ };
@@ -0,0 +1,142 @@
1
+ export default {
2
+ table: {
3
+ class: [
4
+ // Spacing & Position
5
+ "mx-auto my-0",
6
+
7
+ // Table Style
8
+ "border-spacing-0 border-separate",
9
+ ],
10
+ },
11
+ cell: {
12
+ class: [
13
+ // Alignment
14
+ "text-center align-top",
15
+
16
+ // Spacing
17
+ "py-0 px-3",
18
+ ],
19
+ },
20
+ node: ({ props, context }) => ({
21
+ class: [
22
+ "relative inline-block",
23
+
24
+ // Spacing
25
+ "p-5",
26
+
27
+ // Shape
28
+ "border",
29
+
30
+ // Color
31
+ {
32
+ "text-surface-600 dark:text-white/80": !context?.selected,
33
+ "bg-surface-0 dark:bg-surface-800": !context?.selected,
34
+ "border-surface-200 dark:border-surface-700": !context?.selected,
35
+ "text-primary-700 dark:text-surface-0": context?.selected,
36
+ "bg-primary-50 dark:bg-primary-400/30": context?.selected,
37
+ "border-primary-200 dark:border-primary-600": context?.selected,
38
+ },
39
+
40
+ // States
41
+ {
42
+ "hover:bg-surface-100 dark:hover:bg-surface-700":
43
+ context?.selectable && !context?.selected,
44
+ "hover:bg-primary-100 dark:hover:bg-primary-300/30":
45
+ context?.selectable && context?.selected,
46
+ },
47
+
48
+ { "cursor-pointer": context?.selectable },
49
+ ],
50
+ }),
51
+ linecell: {
52
+ class: [
53
+ // Alignment
54
+ "text-center align-top",
55
+
56
+ // Spacing
57
+ "py-0 px-3",
58
+ ],
59
+ },
60
+ linedown: {
61
+ class: [
62
+ // Spacing
63
+ "mx-auto my-0",
64
+
65
+ // Size
66
+ "w-px h-[20px]",
67
+
68
+ // Color
69
+ "bg-surface-200 dark:bg-surface-700",
70
+ ],
71
+ },
72
+ lineleft: ({ context }) => ({
73
+ class: [
74
+ // Alignment
75
+ "text-center align-top",
76
+
77
+ // Spacing
78
+ "py-0 px-3",
79
+
80
+ // Shape
81
+ "rounded-none border-r",
82
+ { "border-t": context.lineTop },
83
+
84
+ // Color
85
+ "border-surface-200 dark:border-surface-700",
86
+ ],
87
+ }),
88
+ lineright: ({ context }) => ({
89
+ class: [
90
+ // Alignment
91
+ "text-center align-top",
92
+
93
+ // Spacing
94
+ "py-0 px-3",
95
+
96
+ // Shape
97
+ "rounded-none",
98
+
99
+ // Color
100
+ {
101
+ "border-t border-surface-200 dark:border-surface-700": context.lineTop,
102
+ },
103
+ ],
104
+ }),
105
+ nodecell: {
106
+ class: "text-center align-top py-0 px-3",
107
+ },
108
+ nodetoggler: {
109
+ class: [
110
+ // Position
111
+ "absolute bottom-[-0.75rem] left-2/4 -ml-3",
112
+ "z-20",
113
+
114
+ // Flexbox
115
+ "flex items-center justify-center",
116
+
117
+ // Size
118
+ "w-6 h-6",
119
+
120
+ // Shape
121
+ "rounded-full",
122
+
123
+ // Color
124
+ "bg-inherit text-inherit",
125
+
126
+ // Focus
127
+ "focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50",
128
+
129
+ // Misc
130
+ "cursor-pointer no-underline select-none",
131
+ ],
132
+ },
133
+ nodetogglericon: {
134
+ class: [
135
+ // Position
136
+ "relative inline-block",
137
+
138
+ // Size
139
+ "w-4 h-4",
140
+ ],
141
+ },
142
+ };
@@ -0,0 +1,41 @@
1
+ export default {
2
+ root: {
3
+ class: [
4
+ // Shape
5
+ "rounded-md shadow-lg",
6
+ "border-0 dark:border",
7
+
8
+ // Position
9
+ "absolute left-0 top-0 mt-2",
10
+ "z-40 transform origin-center",
11
+
12
+ // Color
13
+ "bg-surface-0 dark:bg-surface-800",
14
+ "text-surface-700 dark:text-surface-0/80",
15
+ "dark:border-surface-700",
16
+
17
+ // Before: Triangle
18
+ "before:absolute before:-top-[9px] before:-ml-[9px] before:left-[calc(var(--overlayArrowLeft,0)+1.25rem)] z-0",
19
+ "before:w-0 before:h-0",
20
+ "before:border-transparent before:border-solid",
21
+ "before:border-x-[8px] before:border-[8px]",
22
+ "before:border-t-0 before:border-b-surface-300/10 dark:before:border-b-surface-700",
23
+
24
+ "after:absolute after:-top-2 after:-ml-[8px] after:left-[calc(var(--overlayArrowLeft,0)+1.25rem)]",
25
+ "after:w-0 after:h-0",
26
+ "after:border-transparent after:border-solid",
27
+ "after:border-x-[0.5rem] after:border-[0.5rem]",
28
+ "after:border-t-0 after:border-b-surface-0 dark:after:border-b-surface-800",
29
+ ],
30
+ },
31
+ content: {
32
+ class: "p-5 items-center flex",
33
+ },
34
+ transition: {
35
+ enterFromClass: "opacity-0 scale-y-[0.8]",
36
+ enterActiveClass:
37
+ "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
38
+ leaveActiveClass: "transition-opacity duration-100 ease-linear",
39
+ leaveToClass: "opacity-0",
40
+ },
41
+ };