@fy-/fws-vue 0.2.9 → 0.3.1

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 (180) hide show
  1. package/components/ui/DefaultInput.vue +204 -213
  2. package/package.json +2 -12
  3. package/presets/Lara/accordion/index.js +0 -86
  4. package/presets/Lara/autocomplete/index.js +0 -284
  5. package/presets/Lara/avatar/index.js +0 -46
  6. package/presets/Lara/badge/index.js +0 -44
  7. package/presets/Lara/badgedirective/index.js +0 -49
  8. package/presets/Lara/blockui/index.js +0 -8
  9. package/presets/Lara/breadcrumb/index.js +0 -64
  10. package/presets/Lara/button/index.js +0 -470
  11. package/presets/Lara/calendar/index.js +0 -683
  12. package/presets/Lara/card/index.js +0 -37
  13. package/presets/Lara/carousel/index.js +0 -152
  14. package/presets/Lara/cascadeselect/index.js +0 -228
  15. package/presets/Lara/checkbox/index.js +0 -106
  16. package/presets/Lara/chip/index.js +0 -45
  17. package/presets/Lara/chips/index.js +0 -118
  18. package/presets/Lara/colorpicker/index.js +0 -129
  19. package/presets/Lara/confirmpopup/index.js +0 -107
  20. package/presets/Lara/contextmenu/index.js +0 -130
  21. package/presets/Lara/datatable/index.js +0 -1289
  22. package/presets/Lara/dataview/index.js +0 -40
  23. package/presets/Lara/deferred/index.js +0 -3
  24. package/presets/Lara/dialog/index.js +0 -249
  25. package/presets/Lara/divider/index.js +0 -72
  26. package/presets/Lara/dock/index.js +0 -97
  27. package/presets/Lara/dropdown/index.js +0 -300
  28. package/presets/Lara/fieldset/index.js +0 -98
  29. package/presets/Lara/fileupload/index.js +0 -173
  30. package/presets/Lara/floatlabel/index.js +0 -26
  31. package/presets/Lara/galleria/index.js +0 -351
  32. package/presets/Lara/global.js +0 -90
  33. package/presets/Lara/iconfield/index.js +0 -22
  34. package/presets/Lara/image/index.js +0 -206
  35. package/presets/Lara/index.js +0 -181
  36. package/presets/Lara/inlinemessage/index.js +0 -36
  37. package/presets/Lara/inplace/index.js +0 -27
  38. package/presets/Lara/inputgroup/index.js +0 -5
  39. package/presets/Lara/inputgroupaddon/index.js +0 -28
  40. package/presets/Lara/inputmask/index.js +0 -37
  41. package/presets/Lara/inputnumber/index.js +0 -253
  42. package/presets/Lara/inputotp/index.js +0 -72
  43. package/presets/Lara/inputswitch/index.js +0 -93
  44. package/presets/Lara/inputtext/index.js +0 -61
  45. package/presets/Lara/knob/index.js +0 -47
  46. package/presets/Lara/listbox/index.js +0 -170
  47. package/presets/Lara/megamenu/index.js +0 -207
  48. package/presets/Lara/menu/index.js +0 -98
  49. package/presets/Lara/menubar/index.js +0 -181
  50. package/presets/Lara/message/index.js +0 -87
  51. package/presets/Lara/metergroup/index.js +0 -110
  52. package/presets/Lara/multiselect/index.js +0 -589
  53. package/presets/Lara/orderlist/index.js +0 -266
  54. package/presets/Lara/organizationchart/index.js +0 -142
  55. package/presets/Lara/overlaypanel/index.js +0 -41
  56. package/presets/Lara/paginator/index.js +0 -590
  57. package/presets/Lara/panel/index.js +0 -93
  58. package/presets/Lara/panelmenu/index.js +0 -139
  59. package/presets/Lara/password/index.js +0 -140
  60. package/presets/Lara/picklist/index.js +0 -659
  61. package/presets/Lara/progressbar/index.js +0 -61
  62. package/presets/Lara/progressspinner/index.js +0 -51
  63. package/presets/Lara/radiobutton/index.js +0 -116
  64. package/presets/Lara/rating/index.js +0 -95
  65. package/presets/Lara/ripple/index.js +0 -6
  66. package/presets/Lara/scrollpanel/index.js +0 -77
  67. package/presets/Lara/scrolltop/index.js +0 -45
  68. package/presets/Lara/selectbutton/index.js +0 -60
  69. package/presets/Lara/sidebar/index.js +0 -163
  70. package/presets/Lara/skeleton/index.js +0 -19
  71. package/presets/Lara/slider/index.js +0 -149
  72. package/presets/Lara/speeddial/index.js +0 -535
  73. package/presets/Lara/splitbutton/index.js +0 -1081
  74. package/presets/Lara/splitter/index.js +0 -64
  75. package/presets/Lara/stepper/index.js +0 -183
  76. package/presets/Lara/steps/index.js +0 -115
  77. package/presets/Lara/tabmenu/index.js +0 -82
  78. package/presets/Lara/tabview/index.js +0 -166
  79. package/presets/Lara/tag/index.js +0 -37
  80. package/presets/Lara/terminal/index.js +0 -60
  81. package/presets/Lara/textarea/index.js +0 -39
  82. package/presets/Lara/tieredmenu/index.js +0 -125
  83. package/presets/Lara/timeline/index.js +0 -107
  84. package/presets/Lara/toast/index.js +0 -113
  85. package/presets/Lara/togglebutton/index.js +0 -100
  86. package/presets/Lara/toolbar/index.js +0 -28
  87. package/presets/Lara/tooltip/index.js +0 -73
  88. package/presets/Lara/tree/index.js +0 -281
  89. package/presets/Lara/treeselect/index.js +0 -387
  90. package/presets/Lara/treetable/index.js +0 -509
  91. package/presets/Lara/tristatecheckbox/index.js +0 -112
  92. package/presets/Wind/accordion/index.js +0 -75
  93. package/presets/Wind/autocomplete/index.js +0 -294
  94. package/presets/Wind/avatar/index.js +0 -48
  95. package/presets/Wind/badge/index.js +0 -43
  96. package/presets/Wind/badgedirective/index.js +0 -50
  97. package/presets/Wind/blockui/index.js +0 -8
  98. package/presets/Wind/breadcrumb/index.js +0 -45
  99. package/presets/Wind/button/index.js +0 -474
  100. package/presets/Wind/calendar/index.js +0 -659
  101. package/presets/Wind/card/index.js +0 -40
  102. package/presets/Wind/carousel/index.js +0 -152
  103. package/presets/Wind/cascadeselect/index.js +0 -225
  104. package/presets/Wind/checkbox/index.js +0 -112
  105. package/presets/Wind/chip/index.js +0 -45
  106. package/presets/Wind/chips/index.js +0 -120
  107. package/presets/Wind/colorpicker/index.js +0 -129
  108. package/presets/Wind/confirmpopup/index.js +0 -123
  109. package/presets/Wind/contextmenu/index.js +0 -128
  110. package/presets/Wind/datatable/index.js +0 -1330
  111. package/presets/Wind/dataview/index.js +0 -40
  112. package/presets/Wind/deferred/index.js +0 -3
  113. package/presets/Wind/dialog/index.js +0 -251
  114. package/presets/Wind/divider/index.js +0 -72
  115. package/presets/Wind/dock/index.js +0 -97
  116. package/presets/Wind/dropdown/index.js +0 -287
  117. package/presets/Wind/fieldset/index.js +0 -99
  118. package/presets/Wind/fileupload/index.js +0 -173
  119. package/presets/Wind/floatlabel/index.js +0 -26
  120. package/presets/Wind/galleria/index.js +0 -351
  121. package/presets/Wind/global.js +0 -77
  122. package/presets/Wind/iconfield/index.js +0 -22
  123. package/presets/Wind/image/index.js +0 -206
  124. package/presets/Wind/index.js +0 -181
  125. package/presets/Wind/inlinemessage/index.js +0 -29
  126. package/presets/Wind/inplace/index.js +0 -30
  127. package/presets/Wind/inputgroup/index.js +0 -5
  128. package/presets/Wind/inputgroupaddon/index.js +0 -28
  129. package/presets/Wind/inputmask/index.js +0 -34
  130. package/presets/Wind/inputnumber/index.js +0 -244
  131. package/presets/Wind/inputotp/index.js +0 -72
  132. package/presets/Wind/inputswitch/index.js +0 -106
  133. package/presets/Wind/inputtext/index.js +0 -61
  134. package/presets/Wind/knob/index.js +0 -47
  135. package/presets/Wind/listbox/index.js +0 -159
  136. package/presets/Wind/megamenu/index.js +0 -218
  137. package/presets/Wind/menu/index.js +0 -111
  138. package/presets/Wind/menubar/index.js +0 -188
  139. package/presets/Wind/message/index.js +0 -87
  140. package/presets/Wind/metergroup/index.js +0 -110
  141. package/presets/Wind/multiselect/index.js +0 -619
  142. package/presets/Wind/orderlist/index.js +0 -275
  143. package/presets/Wind/organizationchart/index.js +0 -143
  144. package/presets/Wind/overlaypanel/index.js +0 -42
  145. package/presets/Wind/paginator/index.js +0 -596
  146. package/presets/Wind/panel/index.js +0 -95
  147. package/presets/Wind/panelmenu/index.js +0 -136
  148. package/presets/Wind/password/index.js +0 -141
  149. package/presets/Wind/picklist/index.js +0 -684
  150. package/presets/Wind/progressbar/index.js +0 -68
  151. package/presets/Wind/progressspinner/index.js +0 -51
  152. package/presets/Wind/radiobutton/index.js +0 -92
  153. package/presets/Wind/rating/index.js +0 -86
  154. package/presets/Wind/ripple/index.js +0 -6
  155. package/presets/Wind/scrollpanel/index.js +0 -77
  156. package/presets/Wind/scrolltop/index.js +0 -45
  157. package/presets/Wind/selectbutton/index.js +0 -58
  158. package/presets/Wind/sidebar/index.js +0 -165
  159. package/presets/Wind/skeleton/index.js +0 -19
  160. package/presets/Wind/slider/index.js +0 -135
  161. package/presets/Wind/speeddial/index.js +0 -536
  162. package/presets/Wind/splitbutton/index.js +0 -1078
  163. package/presets/Wind/splitter/index.js +0 -64
  164. package/presets/Wind/stepper/index.js +0 -180
  165. package/presets/Wind/steps/index.js +0 -132
  166. package/presets/Wind/tabmenu/index.js +0 -84
  167. package/presets/Wind/tabview/index.js +0 -168
  168. package/presets/Wind/tag/index.js +0 -37
  169. package/presets/Wind/terminal/index.js +0 -60
  170. package/presets/Wind/textarea/index.js +0 -40
  171. package/presets/Wind/tieredmenu/index.js +0 -121
  172. package/presets/Wind/timeline/index.js +0 -107
  173. package/presets/Wind/toast/index.js +0 -111
  174. package/presets/Wind/togglebutton/index.js +0 -91
  175. package/presets/Wind/toolbar/index.js +0 -30
  176. package/presets/Wind/tooltip/index.js +0 -43
  177. package/presets/Wind/tree/index.js +0 -300
  178. package/presets/Wind/treeselect/index.js +0 -404
  179. package/presets/Wind/treetable/index.js +0 -505
  180. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,1330 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- "relative",
5
-
6
- // Flex & Alignment
7
- { "flex flex-col": props.scrollable && props.scrollHeight === "flex" },
8
-
9
- // Size
10
- { "h-full": props.scrollable && props.scrollHeight === "flex" },
11
-
12
- // Shape
13
- "border-spacing-0 border-separate",
14
- ],
15
- }),
16
- loadingoverlay: {
17
- class: [
18
- // Position
19
- "absolute",
20
- "top-0 left-0",
21
- "z-20",
22
-
23
- // Flex & Alignment
24
- "flex items-center justify-center",
25
-
26
- // Size
27
- "w-full h-full",
28
-
29
- // Color
30
- "bg-surface-100/40 dark:bg-surface-800/40",
31
-
32
- // Transition
33
- "transition duration-200",
34
- ],
35
- },
36
- loadingicon: {
37
- class: "w-8 h-8 animate-spin",
38
- },
39
- wrapper: ({ props }) => ({
40
- class: [
41
- {
42
- relative: props.scrollable,
43
- "flex flex-col grow": props.scrollable && props.scrollHeight === "flex",
44
- },
45
-
46
- // Size
47
- { "h-full": props.scrollable && props.scrollHeight === "flex" },
48
- ],
49
- }),
50
- header: ({ props }) => ({
51
- class: [
52
- "font-semibold",
53
-
54
- // Shape
55
- props.showGridlines ? "border-b" : "border-b border-x-0",
56
-
57
- // Spacing
58
- "py-3.5 px-3",
59
-
60
- // Color
61
- "bg-surface-0 dark:bg-surface-800",
62
- "border-surface-300 dark:border-surface-600",
63
- "text-surface-700 dark:text-white/80",
64
- ],
65
- }),
66
- table: {
67
- class: "w-full border-spacing-0 border-separate",
68
- },
69
- thead: ({ context }) => ({
70
- class: [
71
- {
72
- "top-0 z-40 sticky": context.scrollable,
73
- },
74
- ],
75
- }),
76
- tbody: ({ instance, context }) => ({
77
- class: [
78
- "border-t border-surface-300 dark:border-surface-600",
79
- {
80
- "sticky z-20 font-semibold": instance.frozenRow && context.scrollable,
81
- },
82
- ],
83
- }),
84
- tfoot: ({ context }) => ({
85
- class: [
86
- {
87
- "bottom-0 z-0": context.scrollable,
88
- },
89
- ],
90
- }),
91
- footer: {
92
- class: [
93
- "font-semibold",
94
-
95
- // Shape
96
- "border-t-0 border-t border-x-0",
97
-
98
- // Spacing
99
- "p-4",
100
-
101
- // Color
102
- "bg-surface-0 dark:bg-surface-800",
103
- "border-surface-200 dark:border-surface-700",
104
- "text-surface-700 dark:text-white/80",
105
- ],
106
- },
107
- column: {
108
- headercell: ({ context, props }) => ({
109
- class: [
110
- "font-semibold",
111
- "text-sm",
112
-
113
- // Position
114
- { "sticky z-20 border-b": props.frozen || props.frozen === "" },
115
- { relative: context.resizable },
116
-
117
- // Alignment
118
- "text-left",
119
-
120
- // Shape
121
- { "border-r last:border-r-0": context?.showGridlines },
122
- "border-0 border-b border-solid",
123
-
124
- // Spacing
125
- context?.size === "small"
126
- ? "py-2.5 px-2"
127
- : context?.size === "large"
128
- ? "py-5 px-4"
129
- : "py-3.5 px-3",
130
- // Color
131
- (props.sortable === "" || props.sortable) && context.sorted
132
- ? "text-primary-500"
133
- : "bg-surface-0 text-surface-700",
134
- (props.sortable === "" || props.sortable) && context.sorted
135
- ? "dark:text-primary-400"
136
- : "dark:text-white/80 dark:bg-surface-800",
137
- "border-surface-200 dark:border-surface-700 ",
138
-
139
- // States
140
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
141
-
142
- // Transition
143
- { "transition duration-200": props.sortable === "" || props.sortable },
144
-
145
- // Misc
146
- { "cursor-pointer": props.sortable === "" || props.sortable },
147
- {
148
- "overflow-hidden space-nowrap bg-clip-padding": context.resizable,
149
- },
150
- ],
151
- }),
152
- headercontent: {
153
- class: "flex items-center",
154
- },
155
- sort: ({ context }) => ({
156
- class: [
157
- context.sorted ? "text-primary-500" : "text-surface-700",
158
- context.sorted ? "dark:text-primary-400" : "dark:text-white/80",
159
- ],
160
- }),
161
- bodycell: ({ props, context, state, parent }) => ({
162
- class: [
163
- //Position
164
- { "sticky box-border border-b": parent.instance.frozenRow },
165
- { "sticky box-border border-b": props.frozen || props.frozen === "" },
166
- "text-sm",
167
-
168
- // Alignment
169
- "text-left",
170
-
171
- "border-0 border-b border-solid",
172
- { "last:border-r-0 border-r border-b": context?.showGridlines },
173
- {
174
- "bg-surface-0 dark:bg-surface-800":
175
- parent.instance.frozenRow || props.frozen || props.frozen === "",
176
- },
177
-
178
- // Spacing
179
- { "py-2.5 px-2": context?.size === "small" && !state["d_editing"] },
180
- { "py-5 px-4": context?.size === "large" && !state["d_editing"] },
181
- {
182
- "py-3.5 px-3":
183
- context?.size !== "large" &&
184
- context?.size !== "small" &&
185
- !state["d_editing"],
186
- },
187
- { "py-[0.6rem] px-2": state["d_editing"] },
188
-
189
- // Color
190
- "border-surface-200 dark:border-surface-700",
191
-
192
- // Misc
193
- "space-nowrap",
194
- ],
195
- }),
196
- footercell: ({ context }) => ({
197
- class: [
198
- // Font
199
- "font-bold",
200
-
201
- // Alignment
202
- "text-left",
203
-
204
- // Shape
205
- { "border-r last:border-r-0": context?.showGridlines },
206
- "border-0 border-t border-solid",
207
-
208
- // Spacing
209
- context?.size === "small"
210
- ? "p-2"
211
- : context?.size === "large"
212
- ? "p-5"
213
- : "p-4",
214
-
215
- // Color
216
- "border-surface-200 dark:border-surface-700",
217
- "text-surface-700 dark:text-white/80",
218
- "bg-surface-0 dark:bg-surface-800",
219
- ],
220
- }),
221
- sorticon: {
222
- class: "ml-2",
223
- },
224
- sortbadge: {
225
- class: [
226
- // Flex & Alignment
227
- "flex items-center justify-center align-middle",
228
-
229
- // Shape
230
- "rounded-full",
231
-
232
- // Size
233
- "w-[1.143rem] leading-[1.143rem]",
234
-
235
- // Spacing
236
- "ml-2",
237
-
238
- // Color
239
- "text-primary-700 dark:text-white",
240
- "bg-primary-50 dark:bg-primary-400/30",
241
- ],
242
- },
243
- columnfilter: {
244
- class: "inline-flex items-center ml-auto",
245
- },
246
- filteroverlay: {
247
- class: [
248
- // Position
249
- "absolute top-0 left-0",
250
- "mt-2",
251
-
252
- // Shape
253
- "border-0",
254
- "rounded-md",
255
- "shadow-md",
256
-
257
- // Size
258
- "min-w-[12.5rem]",
259
-
260
- // Color
261
- "bg-surface-0 dark:bg-surface-800",
262
- "text-surface-800 dark:text-white/80",
263
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700",
264
- ],
265
- },
266
- filtermatchmodedropdown: {
267
- root: ({ state }) => ({
268
- class: [
269
- // Display and Position
270
- "flex",
271
- "relative",
272
-
273
- // Spacing
274
- "mb-2",
275
-
276
- // Shape
277
- "w-full",
278
- "rounded-md",
279
- "shadow-sm",
280
-
281
- // Color and Background
282
- "bg-surface-0 dark:bg-surface-900",
283
- {
284
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700":
285
- !state.focused,
286
- },
287
-
288
- // Transitions
289
- "transition-all",
290
- "duration-200",
291
-
292
- // States
293
- {
294
- "outline-none outline-offset-0 ring-2 ring-primary-500 dark:ring-primary-400":
295
- state.focused,
296
- },
297
-
298
- // Misc
299
- "cursor-default",
300
- "select-none",
301
- ],
302
- }),
303
- input: ({ props }) => ({
304
- class: [
305
- //Font
306
- "font-sans",
307
- "leading-6",
308
- "sm:text-sm",
309
-
310
- // Display
311
- "block",
312
- "flex-auto",
313
-
314
- // Color and Background
315
- "bg-transparent",
316
- "border-0",
317
- {
318
- "text-surface-800 dark:text-white/80": props.modelValue,
319
- "text-surface-400 dark:text-surface-500": !props.modelValue,
320
- },
321
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
322
-
323
- "py-1.5 px-3",
324
-
325
- //Shape
326
- "rounded-none",
327
-
328
- // Transitions
329
- "transition",
330
- "duration-200",
331
-
332
- // States
333
- "focus:outline-none focus:shadow-none",
334
-
335
- // Misc
336
- "relative",
337
- "cursor-pointer",
338
- "overflow-hidden overflow-ellipsis",
339
- "whitespace-nowrap",
340
- "appearance-none",
341
- ],
342
- }),
343
- },
344
- filterrowitems: {
345
- class: "py-1 list-none m-0",
346
- },
347
- filterrowitem: ({ context }) => ({
348
- class: [
349
- // Font
350
- "sm:text-sm",
351
- "leading-none",
352
- {
353
- "font-normal": !context?.highlighted,
354
- "font-bold": context?.highlighted,
355
- },
356
-
357
- // Position
358
- "relative",
359
-
360
- // Shape
361
- "border-0",
362
- "rounded-none",
363
-
364
- // Spacing
365
- "m-0",
366
- "py-2 px-4",
367
-
368
- // Color
369
- { "text-surface-700 dark:text-white/80": !context?.highlighted },
370
- {
371
- "bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80":
372
- !context?.highlighted,
373
- },
374
- {
375
- "bg-primary-500 dark:bg-primary-400 text-white dark:text-surface-700":
376
- context?.highlighted,
377
- },
378
-
379
- //States
380
- "hover:bg-primary-500 dark:hover:bg-primary-400 hover:text-white dark:hover:text-surface-700",
381
- "focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
382
-
383
- // Transitions
384
- "transition-shadow",
385
- "duration-200",
386
-
387
- // Misc
388
- "cursor-pointer",
389
- "overflow-hidden",
390
- "whitespace-nowrap",
391
- ],
392
- }),
393
- filteroperator: {
394
- class: [
395
- // Spacing
396
- "p-4",
397
-
398
- // Shape
399
- "border-b border-solid",
400
- "rounded-t-md",
401
-
402
- // Color
403
- "text-surface-700 dark:text-white/80",
404
- "border-surface-200 dark:border-surface-700",
405
- ],
406
- },
407
- filteroperatordropdown: {
408
- root: ({ state }) => ({
409
- class: [
410
- // Display and Position
411
- "flex",
412
- "relative",
413
-
414
- // Shape
415
- "w-full",
416
- "rounded-md",
417
- "shadow-sm",
418
-
419
- // Color and Background
420
- "text-surface-800 dark:text-white/80",
421
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
422
- "bg-surface-0 dark:bg-surface-900",
423
- {
424
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700":
425
- !state.focused,
426
- },
427
-
428
- // Transitions
429
- "transition-all",
430
- "duration-200",
431
-
432
- // States
433
- {
434
- "outline-none outline-offset-0 ring-2 ring-primary-500 dark:ring-primary-400":
435
- state.focused,
436
- },
437
-
438
- // Misc
439
- "cursor-default",
440
- "select-none",
441
- ],
442
- }),
443
- input: {
444
- class: [
445
- //Font
446
- "font-sans",
447
- "leading-6",
448
- "sm:text-sm",
449
-
450
- // Display
451
- "block",
452
- "flex-auto",
453
-
454
- // Color and Background
455
- "bg-transparent",
456
- "border-0",
457
- "text-surface-800 dark:text-white/80",
458
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
459
-
460
- "py-1.5 px-3",
461
-
462
- //Shape
463
- "rounded-none",
464
-
465
- // Transitions
466
- "transition",
467
- "duration-200",
468
-
469
- // States
470
- "focus:outline-none focus:shadow-none",
471
-
472
- // Misc
473
- "relative",
474
- "cursor-pointer",
475
- "overflow-hidden overflow-ellipsis",
476
- "whitespace-nowrap",
477
- "appearance-none",
478
- ],
479
- },
480
- trigger: {
481
- class: [
482
- // Flexbox
483
- "flex items-center justify-center",
484
- "shrink-0",
485
-
486
- // Color and Background
487
- "bg-transparent",
488
- "text-surface-500",
489
-
490
- // Size
491
- "w-12",
492
-
493
- // Shape
494
- "rounded-tr-md",
495
- "rounded-br-md",
496
- ],
497
- },
498
- panel: {
499
- class: [
500
- // Position
501
- "absolute top-0 left-0",
502
- "mt-2",
503
-
504
- // Shape
505
- "border-0",
506
- "rounded-md",
507
- "shadow-md",
508
-
509
- // Size
510
- "min-w-[12.5rem]",
511
-
512
- // Color
513
- "bg-surface-0 dark:bg-surface-800",
514
- "text-surface-800 dark:text-white/80",
515
- "ring-1 ring-inset ring-surface-300 dark:ring-surface-700",
516
- ],
517
- },
518
- list: {
519
- class: "py-1 list-none m-0",
520
- },
521
- item: ({ context }) => ({
522
- class: [
523
- // Font
524
- "sm:text-sm",
525
- "leading-none",
526
- {
527
- "font-normal": !context?.highlighted,
528
- "font-bold": context?.highlighted,
529
- },
530
-
531
- // Position
532
- "relative",
533
-
534
- // Shape
535
- "border-0",
536
- "rounded-none",
537
-
538
- // Spacing
539
- "m-0",
540
- "py-2 px-4",
541
-
542
- // Color
543
- { "text-surface-700 dark:text-white/80": !context?.highlighted },
544
- {
545
- "bg-surface-0 dark:bg-surface-800 text-surface-700 dark:text-white/80":
546
- !context?.highlighted,
547
- },
548
- {
549
- "bg-primary-500 dark:bg-primary-400 text-white dark:text-surface-700":
550
- context?.highlighted,
551
- },
552
-
553
- //States
554
- "hover:bg-primary-500 dark:hover:bg-primary-400 hover:text-white dark:hover:text-surface-700",
555
-
556
- // Transitions
557
- "transition-shadow",
558
- "duration-200",
559
-
560
- // Misc
561
- "cursor-pointer",
562
- "overflow-hidden",
563
- "whitespace-nowrap",
564
- ],
565
- }),
566
- },
567
- filterconstraint: {
568
- class: [
569
- // Spacing
570
- "p-4",
571
-
572
- // Shape
573
- "border-b border-solid",
574
-
575
- // Color
576
- "border-surface-200 dark:border-surface-700",
577
- ],
578
- },
579
- filteraddrule: {
580
- class: "pt-4 pb-2 px-4",
581
- },
582
- filteraddrulebutton: {
583
- root: {
584
- class: [
585
- "relative",
586
-
587
- // Alignments
588
- "items-center inline-flex text-center align-bottom justify-center",
589
-
590
- // Sizes & Spacing
591
- "text-sm px-2.5 py-1.5 min-w-[2rem] w-full",
592
-
593
- // Shape
594
- "rounded-md",
595
-
596
- "bg-transparent border-transparent",
597
- "text-primary-500 dark:text-primary-400",
598
- "hover:bg-primary-300/20",
599
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-offset-current",
600
- "focus:ring-primary-500 dark:focus:ring-primary-400",
601
-
602
- // Transitions
603
- "transition duration-200 ease-in-out",
604
-
605
- // Misc
606
- "cursor-pointer overflow-hidden select-none",
607
- ],
608
- },
609
- label: {
610
- class: "flex-auto grow-0",
611
- },
612
- icon: {
613
- class: "mr-2",
614
- },
615
- },
616
- filterremovebutton: {
617
- root: {
618
- class: [
619
- "relative",
620
-
621
- // Alignments
622
- "items-center inline-flex text-center align-bottom justify-center",
623
-
624
- // Sizes & Spacing
625
- "text-sm px-2.5 py-1.5 min-w-[2rem] w-full mt-2",
626
-
627
- // Shape
628
- "rounded-md",
629
-
630
- "bg-transparent border-transparent",
631
- "text-red-500 dark:text-red-400",
632
- "hover:bg-red-300/20",
633
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-offset-current",
634
- "focus:ring-red-500 dark:focus:ring-red-400",
635
-
636
- // Transitions
637
- "transition duration-200 ease-in-out",
638
-
639
- // Misc
640
- "cursor-pointer overflow-hidden select-none",
641
- ],
642
- },
643
- label: {
644
- class: "flex-auto grow-0",
645
- },
646
- icon: {
647
- class: "mr-2",
648
- },
649
- },
650
- filterbuttonbar: {
651
- class: [
652
- // Flex & Alignment
653
- "flex items-center justify-between",
654
-
655
- // Space
656
- "py-4 px-4",
657
- ],
658
- },
659
- filterclearbutton: {
660
- root: {
661
- class: [
662
- "relative",
663
-
664
- // Alignments
665
- "items-center inline-flex text-center align-bottom justify-center",
666
-
667
- // Sizes & Spacing
668
- "text-sm px-2.5 py-1.5 min-w-[2rem]",
669
-
670
- // Shape
671
- "rounded-md shadow-sm border-0",
672
-
673
- "text-primary-500 ring-1 ring-primary-500 hover:bg-primary-300/20",
674
- "hover:bg-primary-300/20",
675
- "focus:ring-primary-500 dark:focus:ring-primary-400",
676
-
677
- // Transitions
678
- "transition duration-200 ease-in-out",
679
-
680
- // Misc
681
- "cursor-pointer overflow-hidden select-none",
682
- ],
683
- },
684
- },
685
- filterapplybutton: {
686
- root: {
687
- class: [
688
- "relative",
689
-
690
- // Alignments
691
- "items-center inline-flex text-center align-bottom justify-center",
692
-
693
- // Sizes & Spacing
694
- "text-sm px-2.5 py-1.5 min-w-[2rem]",
695
-
696
- // Shape
697
- "rounded-md border-0",
698
-
699
- "text-white dark:text-surface-900",
700
- "bg-primary-500 dark:bg-primary-400",
701
- "ring-1 ring-primary-500 dark:ring-primary-400",
702
- "hover:bg-primary-600 dark:hover:bg-primary-300 hover:ring-primary-600 dark:hover:ring-primary-300",
703
- "focus:ring-primary-500 dark:focus:ring-primary-400",
704
-
705
- // Transitions
706
- "transition duration-200 ease-in-out",
707
-
708
- // Misc
709
- "cursor-pointer overflow-hidden select-none",
710
- ],
711
- },
712
- },
713
- filtermenubutton: ({ context }) => ({
714
- class: [
715
- "relative",
716
- // Flex & Alignment
717
- "inline-flex items-center justify-center",
718
-
719
- // Size
720
- "w-8 h-8",
721
-
722
- // Spacing
723
- "ml-2",
724
-
725
- // Shape
726
- "rounded-full",
727
-
728
- // Color
729
- { "bg-primary-50 text-primary-700": context.active },
730
- "dark:text-white/70 dark:hover:text-white/80 dark:bg-surface-800",
731
-
732
- // States
733
- "hover:text-surface-700 hover:bg-surface-300/20",
734
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
735
-
736
- // Transition
737
- "transition duration-200",
738
-
739
- // Misc
740
- "cursor-pointer no-underline overflow-hidden",
741
- ],
742
- }),
743
- headerfilterclearbutton: ({ context }) => ({
744
- class: [
745
- "relative",
746
-
747
- // Flex & Alignment
748
- "inline-flex items-center justify-center",
749
- "text-left",
750
-
751
- // Shape
752
- "border-none",
753
-
754
- // Spacing
755
- "m-0 p-0 ml-2",
756
-
757
- // Color
758
- "bg-transparent",
759
-
760
- // Misc
761
- "cursor-pointer no-underline overflow-hidden select-none",
762
- {
763
- invisible: !context.hidden,
764
- },
765
- ],
766
- }),
767
- rowtoggler: {
768
- class: [
769
- "relative",
770
-
771
- // Flex & Alignment
772
- "inline-flex items-center justify-center",
773
- "text-left",
774
-
775
- // Spacing
776
- "m-0 p-0",
777
-
778
- // Size
779
- "w-8 h-8",
780
-
781
- // Shape
782
- "border-0 rounded-full",
783
-
784
- // Color
785
- "text-surface-500 dark:text-white/70",
786
- "bg-transparent",
787
- "focus-visible:outline-none focus-visible:outline-offset-0",
788
- "focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
789
-
790
- // Transition
791
- "transition duration-200",
792
-
793
- // Misc
794
- "overflow-hidden",
795
- "cursor-pointer select-none",
796
- ],
797
- },
798
- columnresizer: {
799
- class: [
800
- "block",
801
-
802
- // Position
803
- "absolute top-0 right-0",
804
-
805
- // Sizing
806
- "w-2 h-full",
807
-
808
- // Spacing
809
- "m-0 p-0",
810
-
811
- // Color
812
- "border border-transparent",
813
-
814
- // Misc
815
- "cursor-col-resize",
816
- ],
817
- },
818
- rowreordericon: {
819
- class: "cursor-move",
820
- },
821
- roweditorinitbutton: {
822
- class: [
823
- "relative",
824
-
825
- // Flex & Alignment
826
- "inline-flex items-center justify-center",
827
- "text-left",
828
-
829
- // Size
830
- "w-8 h-8",
831
-
832
- // Shape
833
- "border-0 rounded-full",
834
-
835
- // Color
836
- "text-surface-700 dark:text-white/70",
837
- "border-transparent",
838
-
839
- // States
840
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
841
- "hover:text-surface-700 hover:bg-surface-300/20",
842
-
843
- // Transition
844
- "transition duration-200",
845
-
846
- // Misc
847
- "overflow-hidden",
848
- "cursor-pointer select-none",
849
- ],
850
- },
851
- roweditorsavebutton: {
852
- class: [
853
- "relative",
854
-
855
- // Flex & Alignment
856
- "inline-flex items-center justify-center",
857
- "text-left",
858
-
859
- // Size
860
- "w-8 h-8",
861
-
862
- // Shape
863
- "border-0 rounded-full",
864
-
865
- // Color
866
- "text-surface-700 dark:text-white/70",
867
- "border-transparent",
868
-
869
- // States
870
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
871
- "hover:text-surface-700 hover:bg-surface-300/20",
872
-
873
- // Transition
874
- "transition duration-200",
875
-
876
- // Misc
877
- "overflow-hidden",
878
- "cursor-pointer select-none",
879
- ],
880
- },
881
- roweditorcancelbutton: {
882
- class: [
883
- "relative",
884
-
885
- // Flex & Alignment
886
- "inline-flex items-center justify-center",
887
- "text-left",
888
-
889
- // Size
890
- "w-8 h-8",
891
-
892
- // Shape
893
- "border-0 rounded-full",
894
-
895
- // Color
896
- "text-surface-700 dark:text-white/70",
897
- "border-transparent",
898
-
899
- // States
900
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-500 dark:focus:ring-primary-400",
901
- "hover:text-surface-700 hover:bg-surface-300/20",
902
-
903
- // Transition
904
- "transition duration-200",
905
-
906
- // Misc
907
- "overflow-hidden",
908
- "cursor-pointer select-none",
909
- ],
910
- },
911
- radiobuttonwrapper: {
912
- class: [
913
- "relative",
914
-
915
- // Flex & Alignment
916
- "inline-flex align-bottom",
917
-
918
- // Size
919
- "w-4 h-4",
920
-
921
- // Misc
922
- "cursor-pointer select-none",
923
- ],
924
- },
925
- rowRadioButton: {
926
- root: {
927
- class: [
928
- "relative",
929
-
930
- // Flexbox & Alignment
931
- "inline-flex",
932
- "align-bottom",
933
-
934
- // Size
935
- "w-4 h-4",
936
-
937
- // Misc
938
- "cursor-default",
939
- "select-none",
940
- ],
941
- },
942
- box: ({ props }) => ({
943
- class: [
944
- // Flexbox
945
- "flex justify-center items-center",
946
-
947
- // Size
948
- "w-4 h-4",
949
- "text-sm",
950
- "font-medium",
951
-
952
- // Shape
953
- "border-2",
954
- "rounded-full",
955
-
956
- // Transition
957
- "transition duration-200 ease-in-out",
958
-
959
- // Colors
960
- {
961
- "text-surface-700 dark:text-white/80": !props.modelValue,
962
- "bg-surface-0 dark:bg-surface-900": !props.modelValue,
963
- "border-surface-300 dark:border-surface-700": !props.modelValue,
964
- "border-primary-500 dark:border-primary-400": props.modelValue,
965
- },
966
-
967
- // States
968
- {
969
- "outline-none outline-offset-0": !props.disabled,
970
- "peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-surface-0 dark:focus-visible:ring-offset-surface-800 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
971
- !props.disabled,
972
- "opacity-60 cursor-default": props.disabled,
973
- },
974
- ],
975
- }),
976
- input: {
977
- class: [
978
- "peer",
979
-
980
- // Size
981
- "w-full ",
982
- "h-full",
983
-
984
- // Position
985
- "absolute",
986
- "top-0 left-0",
987
- "z-10",
988
-
989
- // Spacing
990
- "p-0",
991
- "m-0",
992
-
993
- // Shape
994
- "opacity-0",
995
- "rounded-md",
996
- "outline-none",
997
- "border-2 border-surface-300 dark:border-surface-700",
998
-
999
- // Misc
1000
- "appearance-none",
1001
- "cursor-default",
1002
- ],
1003
- },
1004
- icon: {
1005
- class: "hidden",
1006
- },
1007
- },
1008
- headerCheckbox: {
1009
- root: {
1010
- class: [
1011
- "relative",
1012
-
1013
- // Alignment
1014
- "inline-flex",
1015
- "align-bottom",
1016
-
1017
- // Size
1018
- "w-4",
1019
- "h-4",
1020
-
1021
- // Misc
1022
- "cursor-default",
1023
- "select-none",
1024
- ],
1025
- },
1026
- box: ({ props, context }) => ({
1027
- class: [
1028
- // Alignment
1029
- "flex",
1030
- "items-center",
1031
- "justify-center",
1032
-
1033
- // Size
1034
- "w-4",
1035
- "h-4",
1036
-
1037
- // Shape
1038
- "rounded",
1039
- "border",
1040
-
1041
- // Colors
1042
- "text-surface-600",
1043
- {
1044
- "border-surface-300 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
1045
- !context.checked,
1046
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
1047
- context.checked,
1048
- },
1049
-
1050
- {
1051
- "ring-2 ring-primary-500 dark:ring-primary-400":
1052
- !props.disabled && context.focused,
1053
- "cursor-default opacity-60": props.disabled,
1054
- },
1055
-
1056
- // States
1057
- {
1058
- "peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
1059
- !props.disabled,
1060
- "cursor-default opacity-60": props.disabled,
1061
- },
1062
-
1063
- // Transitions
1064
- "transition-colors",
1065
- "duration-200",
1066
- ],
1067
- }),
1068
- input: {
1069
- class: [
1070
- "peer",
1071
-
1072
- // Size
1073
- "w-full ",
1074
- "h-full",
1075
-
1076
- // Position
1077
- "absolute",
1078
- "top-0 left-0",
1079
- "z-10",
1080
-
1081
- // Spacing
1082
- "p-0",
1083
- "m-0",
1084
-
1085
- // Shape
1086
- "rounded",
1087
- "border",
1088
-
1089
- // Shape
1090
- "opacity-0",
1091
- "rounded-md",
1092
- "outline-none",
1093
- "border-2 border-surface-300 dark:border-surface-700",
1094
-
1095
- // Misc
1096
- "appearance-none",
1097
- ],
1098
- },
1099
- icon: {
1100
- class: [
1101
- // Font
1102
- "text-normal",
1103
-
1104
- // Size
1105
- "w-3",
1106
- "h-3",
1107
-
1108
- // Colors
1109
- "text-white dark:text-surface-900",
1110
-
1111
- // Transitions
1112
- "transition-all",
1113
- "duration-200",
1114
- ],
1115
- },
1116
- },
1117
- rowCheckbox: {
1118
- root: {
1119
- class: [
1120
- "relative",
1121
-
1122
- // Alignment
1123
- "inline-flex",
1124
- "align-bottom",
1125
-
1126
- // Size
1127
- "w-4",
1128
- "h-4",
1129
-
1130
- // Misc
1131
- "cursor-default",
1132
- "select-none",
1133
- ],
1134
- },
1135
- box: ({ props, context }) => ({
1136
- class: [
1137
- // Alignment
1138
- "flex",
1139
- "items-center",
1140
- "justify-center",
1141
-
1142
- // Size
1143
- "w-4",
1144
- "h-4",
1145
-
1146
- // Shape
1147
- "rounded",
1148
- "border",
1149
-
1150
- // Colors
1151
- "text-surface-600",
1152
- {
1153
- "border-surface-300 bg-surface-0 dark:border-surface-700 dark:bg-surface-900":
1154
- !context.checked,
1155
- "border-primary-500 bg-primary-500 dark:border-primary-400 dark:bg-primary-400":
1156
- context.checked,
1157
- },
1158
-
1159
- {
1160
- "ring-2 ring-primary-500 dark:ring-primary-400":
1161
- !props.disabled && context.focused,
1162
- "cursor-default opacity-60": props.disabled,
1163
- },
1164
-
1165
- // States
1166
- {
1167
- "peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
1168
- !props.disabled,
1169
- "cursor-default opacity-60": props.disabled,
1170
- },
1171
-
1172
- // Transitions
1173
- "transition-colors",
1174
- "duration-200",
1175
- ],
1176
- }),
1177
- input: {
1178
- class: [
1179
- "peer",
1180
-
1181
- // Size
1182
- "w-full ",
1183
- "h-full",
1184
-
1185
- // Position
1186
- "absolute",
1187
- "top-0 left-0",
1188
- "z-10",
1189
-
1190
- // Spacing
1191
- "p-0",
1192
- "m-0",
1193
-
1194
- // Shape
1195
- "rounded",
1196
- "border",
1197
-
1198
- // Shape
1199
- "opacity-0",
1200
- "rounded-md",
1201
- "outline-none",
1202
- "border-2 border-surface-300 dark:border-surface-700",
1203
-
1204
- // Misc
1205
- "appearance-none",
1206
- ],
1207
- },
1208
- icon: {
1209
- class: [
1210
- // Font
1211
- "text-normal",
1212
-
1213
- // Size
1214
- "w-3",
1215
- "h-3",
1216
-
1217
- // Colors
1218
- "text-white dark:text-surface-900",
1219
-
1220
- // Transitions
1221
- "transition-all",
1222
- "duration-200",
1223
- ],
1224
- },
1225
- },
1226
- transition: {
1227
- enterFromClass: "opacity-0 scale-y-[0.8]",
1228
- enterActiveClass:
1229
- "transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]",
1230
- leaveActiveClass: "transition-opacity duration-100 ease-linear",
1231
- leaveToClass: "opacity-0",
1232
- },
1233
- },
1234
- bodyrow: ({ context, props }) => ({
1235
- class: [
1236
- // Color
1237
- "dark:text-white/80",
1238
- {
1239
- "bg-surface-100 dark:bg-surface-500/30":
1240
- context.selected && context.stripedRows,
1241
- },
1242
- {
1243
- "bg-surface-50 dark:bg-surface-500/30":
1244
- context.selected && !context.stripedRows,
1245
- },
1246
- {
1247
- "bg-surface-0 text-surface-600 dark:bg-surface-800": !context.selected,
1248
- },
1249
- { "bg-surface-0 dark:bg-surface-800": props.frozenRow },
1250
- {
1251
- "odd:bg-surface-0 odd:text-surface-600 dark:odd:bg-surface-800 even:bg-surface-50 even:text-surface-600 dark:even:bg-surface-900/60":
1252
- context.stripedRows && !context.selected,
1253
- },
1254
-
1255
- // State
1256
- {
1257
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-primary-500 ring-inset dark:focus:ring-primary-400":
1258
- props.selectionMode,
1259
- },
1260
- {
1261
- "hover:bg-surface-300/20 hover:text-surface-600":
1262
- props.selectionMode && !context.selected,
1263
- },
1264
-
1265
- // Transition
1266
- {
1267
- "transition duration-200":
1268
- (props.selectionMode && !context.selected) || props.rowHover,
1269
- },
1270
-
1271
- // Misc
1272
- { "cursor-pointer": props.selectionMode },
1273
- ],
1274
- }),
1275
- rowexpansion: {
1276
- class:
1277
- "bg-surface-0 dark:bg-surface-800 text-surface-600 dark:text-white/80",
1278
- },
1279
- rowgroupheader: {
1280
- class: [
1281
- "sticky z-20",
1282
- "bg-surface-0 text-surface-600 dark:text-white/70",
1283
- "dark:bg-surface-800",
1284
- ],
1285
- },
1286
- rowgroupfooter: {
1287
- class: [
1288
- "sticky z-20",
1289
- "bg-surface-0 text-surface-600 dark:text-white/70",
1290
- "dark:bg-surface-800",
1291
- ],
1292
- },
1293
- rowgrouptoggler: {
1294
- class: [
1295
- "relative",
1296
-
1297
- // Flex & Alignment
1298
- "inline-flex items-center justify-center",
1299
- "text-left",
1300
-
1301
- // Spacing
1302
- "m-0 p-0",
1303
-
1304
- // Size
1305
- "w-8 h-8",
1306
-
1307
- // Shape
1308
- "border-0 rounded-full",
1309
-
1310
- // Color
1311
- "text-surface-500 dark:text-white/70",
1312
- "bg-transparent",
1313
- "focus-visible:outline-none focus-visible:outline-offset-0",
1314
- "focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
1315
-
1316
- // Transition
1317
- "transition duration-200",
1318
-
1319
- // Misc
1320
- "overflow-hidden",
1321
- "cursor-pointer select-none",
1322
- ],
1323
- },
1324
- rowgrouptogglericon: {
1325
- class: "inline-block w-4 h-4",
1326
- },
1327
- resizehelper: {
1328
- class: "absolute hidden w-[2px] z-20 bg-primary-500 dark:bg-primary-400",
1329
- },
1330
- };