vx-vue 1.3.5 → 1.3.7
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/README.md +9 -0
- package/dist/style.css +1 -1
- package/dist/vxvue.es.js +175 -169
- package/dist/vxvue.umd.js +1 -1
- package/package.json +13 -12
package/dist/vxvue.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useSlots as Me, ref as $, computed as
|
|
1
|
+
import { useSlots as Me, ref as $, computed as B, onBeforeUpdate as Ve, createElementBlock as m, openBlock as c, Fragment as O, renderList as j, createBlock as Z, resolveDynamicComponent as de, createElementVNode as v, useAttrs as K, normalizeClass as C, unref as A, renderSlot as L, toValue as E, watch as X, getCurrentScope as De, onScopeDispose as Ae, onUpdated as Le, createCommentVNode as I, mergeProps as R, withKeys as se, withModifiers as _, toDisplayString as P, Transition as Te, withCtx as te, createVNode as Y, createTextVNode as J, nextTick as fe, withDirectives as re, vShow as me, vModelText as ze, onMounted as he, normalizeStyle as we, resolveComponent as Pe, createSlots as Be, toHandlers as ue } from "vue";
|
|
2
2
|
const wl = {
|
|
3
3
|
__name: "Accordion",
|
|
4
4
|
props: { activeIndex: { type: [Number, Array], default: null } },
|
|
5
5
|
emits: ["update:activeIndex"],
|
|
6
6
|
setup(e, { emit: u }) {
|
|
7
|
-
const t = e, n = u, a = Me(), l = $([]), i = (f) => l.value.push(f), s =
|
|
7
|
+
const t = e, n = u, a = Me(), l = $([]), i = (f) => l.value.push(f), s = B(
|
|
8
8
|
() => a.default().reduce((f, x) => ((x.type.__name || x.type.name) === "AccordionPanel" && f.push(x), f), [])
|
|
9
9
|
), o = (f) => {
|
|
10
10
|
if (Array.isArray(t.activeIndex)) {
|
|
@@ -27,7 +27,7 @@ const wl = {
|
|
|
27
27
|
};
|
|
28
28
|
return Ve(() => l.value = []), (f, x) => (c(!0), m(O, null, j(s.value, (y, b) => {
|
|
29
29
|
var T;
|
|
30
|
-
return c(), Z(
|
|
30
|
+
return c(), Z(de(y), {
|
|
31
31
|
key: b,
|
|
32
32
|
ref_for: !0,
|
|
33
33
|
ref: i,
|
|
@@ -69,7 +69,7 @@ function Ne(e, u) {
|
|
|
69
69
|
})
|
|
70
70
|
]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ie(e, u) {
|
|
73
73
|
return c(), m("svg", {
|
|
74
74
|
xmlns: "http://www.w3.org/2000/svg",
|
|
75
75
|
viewBox: "0 0 24 24",
|
|
@@ -84,7 +84,7 @@ function de(e, u) {
|
|
|
84
84
|
})
|
|
85
85
|
]);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function oe(e, u) {
|
|
88
88
|
return c(), m("svg", {
|
|
89
89
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
90
|
viewBox: "0 0 24 24",
|
|
@@ -114,7 +114,7 @@ function Oe(e, u) {
|
|
|
114
114
|
})
|
|
115
115
|
]);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ee(e, u) {
|
|
118
118
|
return c(), m("svg", {
|
|
119
119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
120
120
|
viewBox: "0 0 24 24",
|
|
@@ -129,7 +129,7 @@ function Fe(e, u) {
|
|
|
129
129
|
})
|
|
130
130
|
]);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Fe(e, u) {
|
|
133
133
|
return c(), m("svg", {
|
|
134
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
135
135
|
viewBox: "0 0 24 24",
|
|
@@ -206,7 +206,7 @@ const je = ["id", "disabled", "aria-expanded", "aria-controls"], Ye = ["id", "ar
|
|
|
206
206
|
e.disabled ? (c(), Z(A(pe), {
|
|
207
207
|
key: 0,
|
|
208
208
|
class: "size-5"
|
|
209
|
-
})) : (c(), Z(A(
|
|
209
|
+
})) : (c(), Z(A(oe), {
|
|
210
210
|
key: 1,
|
|
211
211
|
class: C(["size-5 transform-gpu transition-transform duration-300", { "rotate-90": e.show }])
|
|
212
212
|
}, null, 8, ["class"])),
|
|
@@ -229,7 +229,7 @@ const je = ["id", "disabled", "aria-expanded", "aria-controls"], Ye = ["id", "ar
|
|
|
229
229
|
__name: "Spinner",
|
|
230
230
|
props: { radius: { type: Number, default: 10 }, strokeWidth: { type: Number, default: 4 } },
|
|
231
231
|
setup(e) {
|
|
232
|
-
const u = e, t =
|
|
232
|
+
const u = e, t = B(() => u.radius + u.strokeWidth / 2), n = B(() => u.radius * 2 + u.strokeWidth), a = B(() => u.radius * Math.PI / 1.5);
|
|
233
233
|
return (l, i) => (c(), m("svg", {
|
|
234
234
|
class: "animate-spin",
|
|
235
235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -268,7 +268,7 @@ function Ge() {
|
|
|
268
268
|
var e, u;
|
|
269
269
|
return $e && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((u = window == null ? void 0 : window.navigator) == null ? void 0 : u.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function ce(e) {
|
|
272
272
|
return Array.isArray(e) ? e : [e];
|
|
273
273
|
}
|
|
274
274
|
const Je = /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;
|
|
@@ -292,8 +292,8 @@ function xe(e, u, t = {}) {
|
|
|
292
292
|
M: () => l + 1,
|
|
293
293
|
Mo: () => ee(l + 1),
|
|
294
294
|
MM: () => `${l + 1}`.padStart(2, "0"),
|
|
295
|
-
MMM: () => e.toLocaleDateString(
|
|
296
|
-
MMMM: () => e.toLocaleDateString(
|
|
295
|
+
MMM: () => e.toLocaleDateString(E(t.locales), { month: "short" }),
|
|
296
|
+
MMMM: () => e.toLocaleDateString(E(t.locales), { month: "long" }),
|
|
297
297
|
D: () => String(i),
|
|
298
298
|
Do: () => ee(i),
|
|
299
299
|
DD: () => `${i}`.padStart(2, "0"),
|
|
@@ -311,17 +311,17 @@ function xe(e, u, t = {}) {
|
|
|
311
311
|
ss: () => `${r}`.padStart(2, "0"),
|
|
312
312
|
SSS: () => `${d}`.padStart(3, "0"),
|
|
313
313
|
d: () => f,
|
|
314
|
-
dd: () => e.toLocaleDateString(
|
|
315
|
-
ddd: () => e.toLocaleDateString(
|
|
316
|
-
dddd: () => e.toLocaleDateString(
|
|
314
|
+
dd: () => e.toLocaleDateString(E(t.locales), { weekday: "narrow" }),
|
|
315
|
+
ddd: () => e.toLocaleDateString(E(t.locales), { weekday: "short" }),
|
|
316
|
+
dddd: () => e.toLocaleDateString(E(t.locales), { weekday: "long" }),
|
|
317
317
|
A: () => x(s, o),
|
|
318
318
|
AA: () => x(s, o, !1, !0),
|
|
319
319
|
a: () => x(s, o, !0),
|
|
320
320
|
aa: () => x(s, o, !0, !0),
|
|
321
|
-
z: () => y(e.toLocaleDateString(
|
|
322
|
-
zz: () => y(e.toLocaleDateString(
|
|
323
|
-
zzz: () => y(e.toLocaleDateString(
|
|
324
|
-
zzzz: () => y(e.toLocaleDateString(
|
|
321
|
+
z: () => y(e.toLocaleDateString(E(t.locales), { timeZoneName: "shortOffset" })),
|
|
322
|
+
zz: () => y(e.toLocaleDateString(E(t.locales), { timeZoneName: "shortOffset" })),
|
|
323
|
+
zzz: () => y(e.toLocaleDateString(E(t.locales), { timeZoneName: "shortOffset" })),
|
|
324
|
+
zzzz: () => y(e.toLocaleDateString(E(t.locales), { timeZoneName: "longOffset" }))
|
|
325
325
|
};
|
|
326
326
|
return u.replace(Je, (T, p) => {
|
|
327
327
|
var k, D;
|
|
@@ -339,26 +339,26 @@ function et(e, u, t) {
|
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
341
|
const Se = $e ? window : void 0;
|
|
342
|
-
function
|
|
342
|
+
function ne(e) {
|
|
343
343
|
var u;
|
|
344
|
-
const t =
|
|
344
|
+
const t = E(e);
|
|
345
345
|
return (u = t == null ? void 0 : t.$el) != null ? u : t;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function ve(...e) {
|
|
348
348
|
const u = [], t = () => {
|
|
349
349
|
u.forEach((s) => s()), u.length = 0;
|
|
350
|
-
}, n = (s, o, r, d) => (s.addEventListener(o, r, d), () => s.removeEventListener(o, r, d)), a =
|
|
351
|
-
const s =
|
|
350
|
+
}, n = (s, o, r, d) => (s.addEventListener(o, r, d), () => s.removeEventListener(o, r, d)), a = B(() => {
|
|
351
|
+
const s = ce(E(e[0])).filter((o) => o != null);
|
|
352
352
|
return s.every((o) => typeof o != "string") ? s : void 0;
|
|
353
353
|
}), l = et(
|
|
354
354
|
() => {
|
|
355
355
|
var s, o;
|
|
356
356
|
return [
|
|
357
|
-
(o = (s = a.value) == null ? void 0 : s.map((r) =>
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
(o = (s = a.value) == null ? void 0 : s.map((r) => ne(r))) != null ? o : [Se].filter((r) => r != null),
|
|
358
|
+
ce(E(a.value ? e[1] : e[0])),
|
|
359
|
+
ce(A(a.value ? e[2] : e[1])),
|
|
360
360
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
361
|
-
|
|
361
|
+
E(a.value ? e[3] : e[2])
|
|
362
362
|
];
|
|
363
363
|
},
|
|
364
364
|
([s, o, r, d]) => {
|
|
@@ -387,27 +387,27 @@ function ge(e, u, t = {}) {
|
|
|
387
387
|
if (Xe && !ye) {
|
|
388
388
|
ye = !0;
|
|
389
389
|
const p = { passive: !0 };
|
|
390
|
-
Array.from(n.document.body.children).forEach((k) =>
|
|
390
|
+
Array.from(n.document.body.children).forEach((k) => k.addEventListener("click", le, p)), n.document.documentElement.addEventListener("click", le, p);
|
|
391
391
|
}
|
|
392
392
|
let o = !0;
|
|
393
|
-
const r = (p) =>
|
|
393
|
+
const r = (p) => E(a).some((k) => {
|
|
394
394
|
if (typeof k == "string")
|
|
395
395
|
return Array.from(n.document.querySelectorAll(k)).some((D) => D === p.target || p.composedPath().includes(D));
|
|
396
396
|
{
|
|
397
|
-
const D =
|
|
397
|
+
const D = ne(k);
|
|
398
398
|
return D && (p.target === D || p.composedPath().includes(D));
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
function d(p) {
|
|
402
|
-
const k =
|
|
402
|
+
const k = E(p);
|
|
403
403
|
return k && k.$.subTree.shapeFlag === 16;
|
|
404
404
|
}
|
|
405
405
|
function f(p, k) {
|
|
406
|
-
const D =
|
|
406
|
+
const D = E(p), W = D.$.subTree && D.$.subTree.children;
|
|
407
407
|
return W == null || !Array.isArray(W) ? !1 : W.some((H) => H.el === k.target || k.composedPath().includes(H.el));
|
|
408
408
|
}
|
|
409
409
|
const x = (p) => {
|
|
410
|
-
const k =
|
|
410
|
+
const k = ne(e);
|
|
411
411
|
if (p.target != null && !(!(k instanceof Element) && d(e) && f(e, p)) && !(!k || k === p.target || p.composedPath().includes(k))) {
|
|
412
412
|
if ("detail" in p && p.detail === 0 && (o = !r(p)), !o) {
|
|
413
413
|
o = !0;
|
|
@@ -418,19 +418,19 @@ function ge(e, u, t = {}) {
|
|
|
418
418
|
};
|
|
419
419
|
let y = !1;
|
|
420
420
|
const b = [
|
|
421
|
-
|
|
421
|
+
ve(n, "click", (p) => {
|
|
422
422
|
y || (y = !0, setTimeout(() => {
|
|
423
423
|
y = !1;
|
|
424
424
|
}, 0), x(p));
|
|
425
425
|
}, { passive: !0, capture: l }),
|
|
426
|
-
|
|
427
|
-
const k =
|
|
426
|
+
ve(n, "pointerdown", (p) => {
|
|
427
|
+
const k = ne(e);
|
|
428
428
|
o = !r(p) && !!(k && !p.composedPath().includes(k));
|
|
429
429
|
}, { passive: !0 }),
|
|
430
|
-
i &&
|
|
430
|
+
i && ve(n, "blur", (p) => {
|
|
431
431
|
setTimeout(() => {
|
|
432
432
|
var k;
|
|
433
|
-
const D =
|
|
433
|
+
const D = ne(e);
|
|
434
434
|
((k = n.document.activeElement) == null ? void 0 : k.tagName) === "IFRAME" && !(D != null && D.contains(n.document.activeElement)) && u(p);
|
|
435
435
|
}, 0);
|
|
436
436
|
}, { passive: !0 })
|
|
@@ -459,15 +459,15 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
459
459
|
setup(e, { emit: u }) {
|
|
460
460
|
const t = u, n = e, a = K(), i = (/* @__PURE__ */ (() => {
|
|
461
461
|
let V = 0;
|
|
462
|
-
return (
|
|
463
|
-
})())((a.id || "autocomplete") + "-"), s = $([]), o = $(-1), r = $(0), d = $(!1), f = $(!1), x = $("top-0 translate-y-12"), y = $(!0), b = $(null), T = $(null), p = $(null), k =
|
|
464
|
-
() => s.value.map((V,
|
|
465
|
-
id: (a.id || "autocomplete") + "-item-" +
|
|
466
|
-
class: [n.resultItemClass, { "bg-vxvue-700 text-white": o.value ===
|
|
462
|
+
return (z) => (z || "") + ++V;
|
|
463
|
+
})())((a.id || "autocomplete") + "-"), s = $([]), o = $(-1), r = $(0), d = $(!1), f = $(!1), x = $("top-0 translate-y-12"), y = $(!0), b = $(null), T = $(null), p = $(null), k = B(
|
|
464
|
+
() => s.value.map((V, z) => ({
|
|
465
|
+
id: (a.id || "autocomplete") + "-item-" + z,
|
|
466
|
+
class: [n.resultItemClass, { "bg-vxvue-700 text-white": o.value === z }],
|
|
467
467
|
role: "option",
|
|
468
|
-
...o.value ===
|
|
468
|
+
...o.value === z ? { "aria-selected": "true" } : {}
|
|
469
469
|
}))
|
|
470
|
-
), D =
|
|
470
|
+
), D = B(() => ({
|
|
471
471
|
role: "combobox",
|
|
472
472
|
autocomplete: "off",
|
|
473
473
|
autocapitalize: "off",
|
|
@@ -479,25 +479,25 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
479
479
|
"aria-expanded": d.value ? "true" : "false",
|
|
480
480
|
"aria-activedescendant": o.value > -1 ? k.value[o.value].id : "",
|
|
481
481
|
...a
|
|
482
|
-
})), W =
|
|
482
|
+
})), W = B(() => ({
|
|
483
483
|
id: i,
|
|
484
|
-
class: ["absolute min-w-full transform z-
|
|
484
|
+
class: ["absolute min-w-full transform z-[var(--zIndex-dropdown)]", n.resultListClass, x.value],
|
|
485
485
|
role: "listbox"
|
|
486
486
|
})), H = () => {
|
|
487
487
|
o.value = -1, s.value = [], d.value = !1, y.value = !0;
|
|
488
488
|
}, S = (V) => {
|
|
489
|
-
const
|
|
490
|
-
if (
|
|
489
|
+
const z = n.search(V);
|
|
490
|
+
if (z instanceof Promise) {
|
|
491
491
|
const G = ++r.value;
|
|
492
|
-
f.value = !0,
|
|
492
|
+
f.value = !0, z.then((U) => {
|
|
493
493
|
G === r.value && (s.value = U, f.value = !1, s.value.length ? (o.value = n.autoSelect ? 0 : -1, d.value = !0) : H());
|
|
494
494
|
});
|
|
495
495
|
} else
|
|
496
|
-
s.value =
|
|
496
|
+
s.value = z, s.value.length === 0 ? H() : (o.value = n.autoSelect ? 0 : -1, d.value = !0);
|
|
497
497
|
}, M = () => {
|
|
498
498
|
const V = s.value[o.value];
|
|
499
499
|
return V && t("update:modelValue", n.getResultValue(V)), H(), V;
|
|
500
|
-
},
|
|
500
|
+
}, F = (V) => {
|
|
501
501
|
t("update:modelValue", V), S(V);
|
|
502
502
|
}, h = (V) => S(V.target.value), g = () => {
|
|
503
503
|
H(), t("blur-sm");
|
|
@@ -506,25 +506,25 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
506
506
|
o.value = ((o.value - 1) % V + V) % V;
|
|
507
507
|
}, N = (V) => {
|
|
508
508
|
d.value || h(V);
|
|
509
|
-
const
|
|
510
|
-
o.value = ((o.value + 1) %
|
|
509
|
+
const z = s.value.length;
|
|
510
|
+
o.value = ((o.value + 1) % z + z) % z;
|
|
511
511
|
}, q = () => {
|
|
512
512
|
H(), t("update:modelValue", "");
|
|
513
513
|
}, ae = () => t("submit", M()), Q = (V) => {
|
|
514
|
-
const
|
|
515
|
-
|
|
514
|
+
const z = V.target.closest("[data-result-index]");
|
|
515
|
+
z && (o.value = parseInt(z.dataset.resultIndex, 10), t("submit", M()));
|
|
516
516
|
};
|
|
517
517
|
return ge(p, H), Le(() => {
|
|
518
518
|
if (b.value) {
|
|
519
|
-
const V = T.value.getBoundingClientRect(),
|
|
520
|
-
y.value && s.value.length && (y.value = !1, x.value = V.bottom +
|
|
519
|
+
const V = T.value.getBoundingClientRect(), z = b.value.getBoundingClientRect();
|
|
520
|
+
y.value && s.value.length && (y.value = !1, x.value = V.bottom + z.height > window.innerHeight && window.innerHeight - V.bottom < V.top && window.pageYOffset + V.top - z.height > 0 ? "bottom-0 -translate-y-12" : "top-0 translate-y-12");
|
|
521
521
|
const G = b.value.querySelector('[data-result-index="' + o.value + '"]');
|
|
522
522
|
if (G) {
|
|
523
523
|
let U = G.getBoundingClientRect();
|
|
524
|
-
U.top <
|
|
524
|
+
U.top < z.top ? b.value.scrollTop -= z.top - U.top : U.bottom > z.bottom && (b.value.scrollTop += U.bottom - z.bottom);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
}), (V,
|
|
527
|
+
}), (V, z) => (c(), m("div", {
|
|
528
528
|
ref_key: "container",
|
|
529
529
|
ref: p,
|
|
530
530
|
class: C(["inline-block relative", V.$attrs.class])
|
|
@@ -535,7 +535,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
535
535
|
class: "block pr-10 w-full form-input focus:border-vxvue",
|
|
536
536
|
value: e.modelValue
|
|
537
537
|
}, D.value, {
|
|
538
|
-
onInput:
|
|
538
|
+
onInput: z[0] || (z[0] = (G) => F(G.target.value)),
|
|
539
539
|
onKeydown: [
|
|
540
540
|
se(ae, ["enter"]),
|
|
541
541
|
se(q, ["esc"]),
|
|
@@ -558,7 +558,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
558
558
|
ref: b
|
|
559
559
|
}, W.value, {
|
|
560
560
|
onClick: Q,
|
|
561
|
-
onMousedown:
|
|
561
|
+
onMousedown: z[1] || (z[1] = _(() => {
|
|
562
562
|
}, ["prevent"]))
|
|
563
563
|
}), [
|
|
564
564
|
(c(!0), m(O, null, j(s.value, (G, U) => (c(), m("div", { "data-result-index": U }, [
|
|
@@ -569,7 +569,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
569
569
|
(c(), m("div", R({
|
|
570
570
|
key: k.value[U].id,
|
|
571
571
|
ref_for: !0
|
|
572
|
-
}, k.value[U]),
|
|
572
|
+
}, k.value[U]), P(e.getResultValue(G)), 17))
|
|
573
573
|
])
|
|
574
574
|
], 8, at))), 256))
|
|
575
575
|
], 16)) : I("", !0)
|
|
@@ -591,13 +591,13 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
591
591
|
_: 3
|
|
592
592
|
}, 8, ["name"]));
|
|
593
593
|
}
|
|
594
|
-
}, be = /* @__PURE__ */ Ce(st, [["__scopeId", "data-v-
|
|
594
|
+
}, be = /* @__PURE__ */ Ce(st, [["__scopeId", "data-v-edc3641f"]]), nt = {
|
|
595
595
|
key: 0,
|
|
596
|
-
class: "fixed inset-0 z-
|
|
596
|
+
class: "fixed inset-0 z-[calc(var(--zIndex-confirm)-1)] bg-black/50 backdrop-blur-xs",
|
|
597
597
|
"aria-hidden": "true"
|
|
598
598
|
}, ot = {
|
|
599
599
|
key: 0,
|
|
600
|
-
class: "overflow-y-auto fixed inset-0 z-
|
|
600
|
+
class: "overflow-y-auto fixed inset-0 z-[var(--zIndex-confirm)]"
|
|
601
601
|
}, rt = { class: "flex justify-center items-center min-h-screen text-center sm:block sm:p-0" }, ut = { key: 0 }, it = { class: "inline-block overflow-hidden text-left align-bottom bg-white rounded-sm shadow-xl transition-all transform sm:my-8 sm:w-full sm:max-w-sm sm:align-middle lg:max-w-lg" }, dt = { class: "px-4 pb-4 mt-4 sm:px-6 sm:pb-6 sm:mt-5" }, ct = { class: "flex flex-row items-center" }, vt = { class: "shrink-0" }, mt = { class: "grow text-center" }, ft = ["onClick"], Sl = {
|
|
602
602
|
__name: "Confirm",
|
|
603
603
|
props: {
|
|
@@ -618,7 +618,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
618
618
|
setup(e, { expose: u }) {
|
|
619
619
|
const t = e, n = $(""), a = $(""), l = $(!1);
|
|
620
620
|
let i = null, s = null;
|
|
621
|
-
const o =
|
|
621
|
+
const o = B(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]), r = $(null), d = (x, y) => {
|
|
622
622
|
l.value = !1, x.value !== void 0 ? x.value ? i() : s() : y ? s() : i();
|
|
623
623
|
};
|
|
624
624
|
return u({ open: (x, y) => (n.value = x, a.value = y, l.value = !0, fe(() => r.value.firstElementChild.focus()), new Promise((b, T) => {
|
|
@@ -640,7 +640,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
640
640
|
class: C(["py-4 pt-4 text-lg font-medium text-center sm:py-6", e.headerClass])
|
|
641
641
|
}, [
|
|
642
642
|
L(x.$slots, "title", { title: n.value }, () => [
|
|
643
|
-
J(
|
|
643
|
+
J(P(n.value), 1)
|
|
644
644
|
])
|
|
645
645
|
], 2)) : I("", !0),
|
|
646
646
|
v("div", dt, [
|
|
@@ -650,7 +650,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
650
650
|
]),
|
|
651
651
|
v("p", mt, [
|
|
652
652
|
L(x.$slots, "default", { message: a.value }, () => [
|
|
653
|
-
J(
|
|
653
|
+
J(P(a.value), 1)
|
|
654
654
|
])
|
|
655
655
|
])
|
|
656
656
|
]),
|
|
@@ -663,7 +663,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
663
663
|
key: b.label,
|
|
664
664
|
class: C([e.buttonClass, b.class]),
|
|
665
665
|
onClick: _((p) => d(b, T), ["prevent"])
|
|
666
|
-
},
|
|
666
|
+
}, P(b.label), 11, ft))), 128))
|
|
667
667
|
], 512)
|
|
668
668
|
])
|
|
669
669
|
])
|
|
@@ -677,7 +677,7 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
679
|
function ht(e, u) {
|
|
680
|
-
const t = $(!1), n =
|
|
680
|
+
const t = $(!1), n = E(u);
|
|
681
681
|
let a, l = n.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = [];
|
|
682
682
|
if ((a = n.match(/\bd\b/gi)) && a.length === 1)
|
|
683
683
|
l = l.replace("d", "(\\d{1,2})");
|
|
@@ -695,7 +695,7 @@ function ht(e, u) {
|
|
|
695
695
|
l = l.replace("yyyy", "(\\d{4})");
|
|
696
696
|
else
|
|
697
697
|
return { date: t };
|
|
698
|
-
if (i.push({ srcPos: n.toLowerCase().indexOf("y"), destPos: 0 }), !(a =
|
|
698
|
+
if (i.push({ srcPos: n.toLowerCase().indexOf("y"), destPos: 0 }), !(a = E(e).match(l)))
|
|
699
699
|
return { date: t };
|
|
700
700
|
a.shift(), i.sort((d, f) => d.srcPos < f.srcPos ? -1 : 1);
|
|
701
701
|
let s = [], o, r;
|
|
@@ -713,18 +713,18 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
713
713
|
},
|
|
714
714
|
emits: ["update:modelValue", "toggle-datepicker"],
|
|
715
715
|
setup(e, { emit: u }) {
|
|
716
|
-
const t = u, n = e, a = $(""), l =
|
|
716
|
+
const t = u, n = e, a = $(""), l = B(() => n.modelValue ? xe(n.modelValue, n.outputFormat) : ""), i = B(() => {
|
|
717
717
|
let s = Object.assign({}, K());
|
|
718
718
|
return delete s.class, s;
|
|
719
719
|
});
|
|
720
720
|
return X(() => n.modelValue, (s) => a.value = s ? xe(s, n.outputFormat) : ""), (s, o) => (c(), m("div", {
|
|
721
721
|
class: C(["inline-block relative", s.$attrs.class])
|
|
722
722
|
}, [
|
|
723
|
-
|
|
723
|
+
re(v("div", null, [
|
|
724
724
|
v("div", {
|
|
725
725
|
class: C(["block flex items-center w-full form-input bg-vxvue-50", { "pr-10": e.showToggle }])
|
|
726
726
|
}, [
|
|
727
|
-
v("span", pt,
|
|
727
|
+
v("span", pt, P(l.value), 1),
|
|
728
728
|
i.value.disabled ? I("", !0) : (c(), m("button", {
|
|
729
729
|
key: 0,
|
|
730
730
|
class: "inline-flex shrink-0 justify-center items-center ml-2 rounded-full focus:text-white focus:outline-hidden size-4 text-vxvue hover:bg-vxvue-100 hover:text-vue-700 focus:bg-vxvue-700",
|
|
@@ -736,8 +736,8 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
736
736
|
], 512), [
|
|
737
737
|
[me, l.value]
|
|
738
738
|
]),
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
re(v("div", null, [
|
|
740
|
+
re(v("input", R({
|
|
741
741
|
"onUpdate:modelValue": o[1] || (o[1] = (r) => a.value = r),
|
|
742
742
|
type: "text",
|
|
743
743
|
class: ["block w-full form-input peer focus:border-vxvue", { "pr-10": e.showToggle }]
|
|
@@ -749,7 +749,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
749
749
|
onInput: o[3] || (o[3] = _(() => {
|
|
750
750
|
}, ["prevent"]))
|
|
751
751
|
}), null, 16), [
|
|
752
|
-
[
|
|
752
|
+
[ze, a.value]
|
|
753
753
|
])
|
|
754
754
|
], 512), [
|
|
755
755
|
[me, !l.value]
|
|
@@ -786,12 +786,12 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
786
786
|
const t = e, n = u, a = (() => {
|
|
787
787
|
const h = /* @__PURE__ */ new Date();
|
|
788
788
|
return new Date(h.getFullYear(), h.getMonth(), h.getDate());
|
|
789
|
-
})(), l = $(null), i = $([]), s = $(!1), o = $("days"), r = $(0), d = $({ horiz: "left-0", vert: "top-0" }), f = $(null), x = $(null), y = $(null), b =
|
|
789
|
+
})(), l = $(null), i = $([]), s = $(!1), o = $("days"), r = $(0), d = $({ horiz: "left-0", vert: "top-0" }), f = $(null), x = $(null), y = $(null), b = B(() => t.hasInput && t.maxNumberOfValues === 1), T = B(() => b.value ? { class: ["absolute", s.value ? "block" : "hidden"] } : {}), p = B(() => {
|
|
790
790
|
const h = [], g = l.value.getFullYear(), w = l.value.getMonth(), N = new Date(g, w + 1, 0), q = new Date(g, w, 0).getDay() + 1 - t.startOfWeekIndex, ae = (6 + t.startOfWeekIndex - N.getDay()) % 7;
|
|
791
791
|
for (let Q = -q, V = N.getDate() + ae; Q < V; ++Q)
|
|
792
792
|
h.push(new Date(g, w, Q + 1));
|
|
793
793
|
return h;
|
|
794
|
-
}), k =
|
|
794
|
+
}), k = B(() => t.startOfWeekIndex ? t.dayNames.slice(1).concat(t.dayNames[0]) : t.dayNames);
|
|
795
795
|
X(() => t.modelValue, (h) => {
|
|
796
796
|
if (h)
|
|
797
797
|
if (Array.isArray(h)) {
|
|
@@ -828,7 +828,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
828
828
|
let w = g.findIndex((N) => N.getTime() === h.getTime());
|
|
829
829
|
w !== -1 ? g.splice(w, 1) : g.length < t.maxNumberOfValues && g.push(h), n("update:modelValue", g);
|
|
830
830
|
}
|
|
831
|
-
}, M = (h) => i.value.find((g) => (g == null ? void 0 : g.getTime()) === h.getTime()),
|
|
831
|
+
}, M = (h) => i.value.find((g) => (g == null ? void 0 : g.getTime()) === h.getTime()), F = (h) => {
|
|
832
832
|
const g = h.getMonth() !== l.value.getMonth(), w = M(h), N = h.getTime() === a.getTime(), q = t.validFrom && t.validFrom > h || t.validUntil && t.validUntil < h, ae = !w && t.maxNumberOfValues > 1 && i.value.length === t.maxNumberOfValues, Q = t.highlightRange && h > Math.min(...i.value) && h < Math.max(...i.value);
|
|
833
833
|
return {
|
|
834
834
|
"cursor-not-allowed": q || ae,
|
|
@@ -864,7 +864,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
864
864
|
v("div", R(T.value, {
|
|
865
865
|
ref_key: "calendar",
|
|
866
866
|
ref: x,
|
|
867
|
-
class: ["overflow-hidden z-
|
|
867
|
+
class: ["overflow-hidden z-[var(--zIndex-dropdown)] bg-white rounded-sm shadow-md min-w-72 sm:min-w-80", [d.value.horiz, d.value.vert]]
|
|
868
868
|
}), [
|
|
869
869
|
o.value === "days" ? (c(), m(O, { key: 0 }, [
|
|
870
870
|
v("div", xt, [
|
|
@@ -873,14 +873,14 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
873
873
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
874
874
|
onClick: g[1] || (g[1] = _((w) => D(l.value.getMonth() - 1), ["stop"]))
|
|
875
875
|
}, [
|
|
876
|
-
Y(A(
|
|
876
|
+
Y(A(ie), { class: "size-6" })
|
|
877
877
|
]),
|
|
878
|
-
v("span", null,
|
|
878
|
+
v("span", null, P(l.value.toLocaleString(e.locale, { month: "long" })), 1),
|
|
879
879
|
v("button", {
|
|
880
880
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
881
881
|
onClick: g[2] || (g[2] = _((w) => D(l.value.getMonth() + 1), ["stop"]))
|
|
882
882
|
}, [
|
|
883
|
-
Y(A(
|
|
883
|
+
Y(A(oe), { class: "size-6" })
|
|
884
884
|
])
|
|
885
885
|
]),
|
|
886
886
|
v("div", wt, [
|
|
@@ -888,19 +888,19 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
888
888
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
889
889
|
onClick: g[3] || (g[3] = _((w) => W(l.value.getFullYear() - 1), ["stop"]))
|
|
890
890
|
}, [
|
|
891
|
-
Y(A(
|
|
891
|
+
Y(A(ie), { class: "size-6" })
|
|
892
892
|
]),
|
|
893
893
|
v("button", {
|
|
894
894
|
class: "text-vxvue-100 hover:text-vxvue-50",
|
|
895
895
|
onClick: g[4] || (g[4] = (w) => {
|
|
896
896
|
o.value = "years", r.value = l.value.getFullYear();
|
|
897
897
|
})
|
|
898
|
-
},
|
|
898
|
+
}, P(l.value.getFullYear()), 1),
|
|
899
899
|
v("button", {
|
|
900
900
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
901
901
|
onClick: g[5] || (g[5] = _((w) => W(l.value.getFullYear() + 1), ["stop"]))
|
|
902
902
|
}, [
|
|
903
|
-
Y(A(
|
|
903
|
+
Y(A(oe), { class: "size-6" })
|
|
904
904
|
])
|
|
905
905
|
])
|
|
906
906
|
]),
|
|
@@ -908,13 +908,13 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
908
908
|
(c(!0), m(O, null, j(k.value, (w, N) => (c(), m("div", {
|
|
909
909
|
key: N,
|
|
910
910
|
class: "py-2 text-center bg-gray-200"
|
|
911
|
-
},
|
|
911
|
+
}, P(w), 1))), 128)),
|
|
912
912
|
(c(!0), m(O, null, j(p.value, (w) => (c(), m("button", {
|
|
913
913
|
key: w,
|
|
914
|
-
class: C(["py-2 rounded-xs block text-center",
|
|
914
|
+
class: C(["py-2 rounded-xs block text-center", F(w)]),
|
|
915
915
|
disabled: e.validFrom && e.validFrom > w || e.validUntil && e.validUntil < w || e.maxNumberOfValues > 1 && i.value.length === e.maxNumberOfValues && !M(w),
|
|
916
916
|
onClick: _((N) => S(w), ["stop"])
|
|
917
|
-
},
|
|
917
|
+
}, P(w.getDate()), 11, $t))), 128))
|
|
918
918
|
])
|
|
919
919
|
], 64)) : I("", !0),
|
|
920
920
|
o.value === "years" ? (c(), m(O, { key: 1 }, [
|
|
@@ -923,14 +923,14 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
923
923
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
924
924
|
onClick: g[6] || (g[6] = _((w) => r.value -= 10, ["stop"]))
|
|
925
925
|
}, [
|
|
926
|
-
Y(A(
|
|
926
|
+
Y(A(ie), { class: "size-6" })
|
|
927
927
|
]),
|
|
928
|
-
v("span", null,
|
|
928
|
+
v("span", null, P(r.value) + " - " + P(r.value + 9), 1),
|
|
929
929
|
v("button", {
|
|
930
930
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
931
931
|
onClick: g[7] || (g[7] = _((w) => r.value += 10, ["stop"]))
|
|
932
932
|
}, [
|
|
933
|
-
Y(A(
|
|
933
|
+
Y(A(oe), { class: "size-6" })
|
|
934
934
|
])
|
|
935
935
|
]),
|
|
936
936
|
v("div", Ct, [
|
|
@@ -943,7 +943,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
943
943
|
onClick: _((N) => {
|
|
944
944
|
W(r.value + w - 1), o.value = "days";
|
|
945
945
|
}, ["stop"])
|
|
946
|
-
},
|
|
946
|
+
}, P(r.value + w - 1), 9, Mt)
|
|
947
947
|
])), 64))
|
|
948
948
|
])
|
|
949
949
|
], 64)) : I("", !0)
|
|
@@ -991,7 +991,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
991
991
|
key: 0,
|
|
992
992
|
disabled: "",
|
|
993
993
|
value: ""
|
|
994
|
-
}, Tt = ["selected", "value"],
|
|
994
|
+
}, Tt = ["selected", "value"], zt = {
|
|
995
995
|
__name: "FormSelect",
|
|
996
996
|
props: {
|
|
997
997
|
options: { type: Array, default: () => [] },
|
|
@@ -1006,23 +1006,23 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1006
1006
|
class: "form-select",
|
|
1007
1007
|
onChange: a[0] || (a[0] = (l) => t("update:modelValue", l.target.value))
|
|
1008
1008
|
}), [
|
|
1009
|
-
e.disabledLabel ? (c(), m("option", Lt,
|
|
1009
|
+
e.disabledLabel ? (c(), m("option", Lt, P(e.disabledLabel), 1)) : I("", !0),
|
|
1010
1010
|
(c(!0), m(O, null, j(e.options, (l) => (c(), m("option", {
|
|
1011
1011
|
key: l.key !== void 0 ? l.key : l.label || l,
|
|
1012
1012
|
selected: (l.key !== void 0 ? l.key : l.label || l) === e.modelValue,
|
|
1013
1013
|
value: l.key !== void 0 ? l.key : l.label || l
|
|
1014
|
-
},
|
|
1014
|
+
}, P(l.label || l), 9, Tt))), 128))
|
|
1015
1015
|
], 16, At));
|
|
1016
1016
|
}
|
|
1017
|
-
},
|
|
1017
|
+
}, Pt = ["aria-checked", "aria-label"], Bt = ["d"], It = ["checked"], Vl = {
|
|
1018
1018
|
__name: "FormSwitch",
|
|
1019
1019
|
props: { modelValue: Boolean },
|
|
1020
1020
|
emits: ["update:modelValue"],
|
|
1021
1021
|
setup(e, { emit: u }) {
|
|
1022
|
-
const t = u, n =
|
|
1022
|
+
const t = u, n = B(() => {
|
|
1023
1023
|
let l = Object.assign({}, K());
|
|
1024
1024
|
return delete l.class, l;
|
|
1025
|
-
}), a =
|
|
1025
|
+
}), a = B(() => K().disabled || K().disabled === "");
|
|
1026
1026
|
return (l, i) => (c(), m("label", {
|
|
1027
1027
|
class: C(l.$attrs.class),
|
|
1028
1028
|
tabindex: "0"
|
|
@@ -1057,7 +1057,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1057
1057
|
"stroke-linecap": "round",
|
|
1058
1058
|
"stroke-linejoin": "round",
|
|
1059
1059
|
d: e.modelValue ? "M12 18 V6" : "m18.5 12 c0 3.5 -3 6.5 -6.5 6.5 -3.5 0 -6.5 -3 -6.5 -6.5 0 -3.5 3 -6.5 6.5 -6.5 3.5 0 6.5 3 6.5 6.5z"
|
|
1060
|
-
}, null, 8,
|
|
1060
|
+
}, null, 8, Bt)
|
|
1061
1061
|
], 2))
|
|
1062
1062
|
])
|
|
1063
1063
|
], 2),
|
|
@@ -1068,14 +1068,14 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1068
1068
|
type: "checkbox",
|
|
1069
1069
|
onChange: i[0] || (i[0] = (s) => t("update:modelValue", s.target.checked))
|
|
1070
1070
|
}), null, 16, It)
|
|
1071
|
-
], 10,
|
|
1071
|
+
], 10, Pt),
|
|
1072
1072
|
L(l.$slots, "default")
|
|
1073
1073
|
], 2));
|
|
1074
1074
|
}
|
|
1075
1075
|
}, Nt = {
|
|
1076
1076
|
"aria-live": "assertive",
|
|
1077
|
-
class: "flex fixed inset-0 z-
|
|
1078
|
-
}, Ot = { class: "flex flex-col items-center space-y-4 w-full" },
|
|
1077
|
+
class: "flex fixed inset-0 z-[var(--zIndex-toast)] items-start py-6 px-4 pointer-events-none sm:p-6"
|
|
1078
|
+
}, Ot = { class: "flex flex-col items-center space-y-4 w-full" }, Et = { class: "p-4" }, Ft = { class: "flex items-start" }, _t = { class: "shrink-0" }, jt = { class: "flex-1 pt-0.5 ml-3 w-0" }, Yt = { class: "font-bold" }, Rt = { class: "mt-1" }, Ht = { class: "flex shrink-0 ml-4" }, Dl = /* @__PURE__ */ Object.assign({
|
|
1079
1079
|
inheritAttrs: !1
|
|
1080
1080
|
}, {
|
|
1081
1081
|
__name: "MessageToast",
|
|
@@ -1088,7 +1088,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1088
1088
|
},
|
|
1089
1089
|
emits: ["timeout", "close"],
|
|
1090
1090
|
setup(e, { emit: u }) {
|
|
1091
|
-
const t = e, n = u, a =
|
|
1091
|
+
const t = e, n = u, a = B(() => typeof t.message == "string" ? [t.message] : t.message), l = $(0);
|
|
1092
1092
|
let i = null;
|
|
1093
1093
|
const s = () => {
|
|
1094
1094
|
window.clearTimeout(i), l.value = 100, t.active && t.timeout && (i = window.setTimeout(() => {
|
|
@@ -1103,17 +1103,17 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1103
1103
|
key: 0,
|
|
1104
1104
|
class: C(["overflow-hidden w-full max-w-sm rounded-md ring-1 ring-black/5 shadow-lg pointer-events-auto", o.$attrs.class])
|
|
1105
1105
|
}, [
|
|
1106
|
-
v("div",
|
|
1107
|
-
v("div",
|
|
1106
|
+
v("div", Et, [
|
|
1107
|
+
v("div", Ft, [
|
|
1108
1108
|
v("div", _t, [
|
|
1109
1109
|
L(o.$slots, "icon")
|
|
1110
1110
|
]),
|
|
1111
1111
|
v("div", jt, [
|
|
1112
1112
|
L(o.$slots, "title", {}, () => [
|
|
1113
|
-
v("div", Yt,
|
|
1113
|
+
v("div", Yt, P(e.title), 1)
|
|
1114
1114
|
]),
|
|
1115
1115
|
L(o.$slots, "default", {}, () => [
|
|
1116
|
-
(c(!0), m(O, null, j(a.value, (d) => (c(), m("p", Rt,
|
|
1116
|
+
(c(!0), m(O, null, j(a.value, (d) => (c(), m("p", Rt, P(d), 1))), 256))
|
|
1117
1117
|
])
|
|
1118
1118
|
]),
|
|
1119
1119
|
v("div", Ht, [
|
|
@@ -1147,16 +1147,19 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1147
1147
|
}
|
|
1148
1148
|
}), Zt = {
|
|
1149
1149
|
key: 0,
|
|
1150
|
-
class: "fixed inset-0 z-
|
|
1150
|
+
class: "fixed inset-0 z-[calc(var(--zIndex-modal)-1)] bg-white/50 backdrop-blur-xs",
|
|
1151
1151
|
"aria-hidden": "true"
|
|
1152
1152
|
}, Wt = {
|
|
1153
1153
|
key: 0,
|
|
1154
|
-
class: "fixed inset-0 z-
|
|
1154
|
+
class: "fixed inset-0 z-[var(--zIndex-modal)]"
|
|
1155
1155
|
}, qt = { class: "flex justify-center items-center h-screen" }, Al = {
|
|
1156
1156
|
__name: "Modal",
|
|
1157
1157
|
props: {
|
|
1158
1158
|
show: Boolean,
|
|
1159
|
-
containerClass: {
|
|
1159
|
+
containerClass: {
|
|
1160
|
+
type: String,
|
|
1161
|
+
default: "mx-4 w-full lg:w-1/2 xl:w-1/4 max-h-[90vh]"
|
|
1162
|
+
},
|
|
1160
1163
|
headerClass: { type: String, default: "" },
|
|
1161
1164
|
contentClass: { type: String, default: "" }
|
|
1162
1165
|
},
|
|
@@ -1172,15 +1175,18 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1172
1175
|
v("div", {
|
|
1173
1176
|
ref_key: "container",
|
|
1174
1177
|
ref: n,
|
|
1175
|
-
class: C([
|
|
1178
|
+
class: C([
|
|
1179
|
+
"flex flex-col overflow-hidden max-w-full bg-white rounded-sm ring-1 ring-black/10 shadow-xl transition-all transform xl:max-w-(--breakpoint-xl)",
|
|
1180
|
+
e.containerClass
|
|
1181
|
+
])
|
|
1176
1182
|
}, [
|
|
1177
1183
|
v("div", {
|
|
1178
|
-
class: C(e.headerClass)
|
|
1184
|
+
class: C(["grow-0", e.headerClass])
|
|
1179
1185
|
}, [
|
|
1180
1186
|
L(a.$slots, "title")
|
|
1181
1187
|
], 2),
|
|
1182
1188
|
v("div", {
|
|
1183
|
-
class: C(["overflow-y-auto h-full
|
|
1189
|
+
class: C(["overflow-y-auto h-full", e.contentClass])
|
|
1184
1190
|
}, [
|
|
1185
1191
|
L(a.$slots, "default")
|
|
1186
1192
|
], 2)
|
|
@@ -1206,7 +1212,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1206
1212
|
},
|
|
1207
1213
|
emits: ["update:page"],
|
|
1208
1214
|
setup(e, { emit: u }) {
|
|
1209
|
-
const t = u, n = e, a = $(Math.ceil(n.total / n.perPage)), l = $(null), i =
|
|
1215
|
+
const t = u, n = e, a = $(Math.ceil(n.total / n.perPage)), l = $(null), i = B(() => (n.markerPosition === "above" ? "border-t-4 -mt-[4px]" : "border-b-4 -mb-[4px]") + " py-4"), s = B(() => {
|
|
1210
1216
|
let d = [1];
|
|
1211
1217
|
if (n.showAllPages || a.value <= 7) {
|
|
1212
1218
|
for (let f = 2; f <= a.value; ++f)
|
|
@@ -1234,12 +1240,12 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1234
1240
|
]),
|
|
1235
1241
|
onClick: o
|
|
1236
1242
|
}, [
|
|
1237
|
-
Y(A(
|
|
1238
|
-
J(" " +
|
|
1243
|
+
Y(A(ie), { class: "size-5" }),
|
|
1244
|
+
J(" " + P(e.prevText), 1)
|
|
1239
1245
|
], 10, Xt)) : I("", !0)
|
|
1240
1246
|
]),
|
|
1241
1247
|
v("div", Gt, [
|
|
1242
|
-
(c(!0), m(O, null, j(s.value, (x, y) => (c(), Z(
|
|
1248
|
+
(c(!0), m(O, null, j(s.value, (x, y) => (c(), Z(de(e.page !== "dots" ? "button" : "span"), {
|
|
1243
1249
|
key: y,
|
|
1244
1250
|
class: C([
|
|
1245
1251
|
{ "pointer-events-none": x === "dots" },
|
|
@@ -1250,7 +1256,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1250
1256
|
onClick: (b) => x !== "dots" ? t("update:page", x) : null
|
|
1251
1257
|
}, {
|
|
1252
1258
|
default: te(() => [
|
|
1253
|
-
J(
|
|
1259
|
+
J(P(x !== "dots" ? x : "…"), 1)
|
|
1254
1260
|
]),
|
|
1255
1261
|
_: 2
|
|
1256
1262
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -1265,8 +1271,8 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1265
1271
|
]),
|
|
1266
1272
|
onClick: r
|
|
1267
1273
|
}, [
|
|
1268
|
-
J(
|
|
1269
|
-
Y(A(
|
|
1274
|
+
J(P(e.nextText) + " ", 1),
|
|
1275
|
+
Y(A(oe), { class: "size-5" })
|
|
1270
1276
|
], 10, Qt)) : I("", !0)
|
|
1271
1277
|
])
|
|
1272
1278
|
]));
|
|
@@ -1316,7 +1322,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1316
1322
|
props: { modelValue: { type: String, default: "" } },
|
|
1317
1323
|
emits: ["update:modelValue"],
|
|
1318
1324
|
setup(e, { emit: u }) {
|
|
1319
|
-
const t = u, n = $(!1), a =
|
|
1325
|
+
const t = u, n = $(!1), a = B(() => {
|
|
1320
1326
|
let l = Object.assign({}, K());
|
|
1321
1327
|
return delete l.class, l;
|
|
1322
1328
|
});
|
|
@@ -1349,7 +1355,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1349
1355
|
}), sl = { class: "flex items-center pb-1" }, nl = {
|
|
1350
1356
|
key: 0,
|
|
1351
1357
|
class: "ml-6"
|
|
1352
|
-
},
|
|
1358
|
+
}, zl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1353
1359
|
__name: "SimpleTree",
|
|
1354
1360
|
props: {
|
|
1355
1361
|
branch: { type: Object, default: () => ({}) },
|
|
@@ -1361,7 +1367,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1361
1367
|
return he(() => {
|
|
1362
1368
|
t.branch === t.modelValue && n("expand", !0);
|
|
1363
1369
|
}), (l, i) => {
|
|
1364
|
-
const s =
|
|
1370
|
+
const s = Pe("simple-tree", !0);
|
|
1365
1371
|
return c(), m("div", {
|
|
1366
1372
|
class: C([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", l.$attrs.class])
|
|
1367
1373
|
}, [
|
|
@@ -1375,24 +1381,24 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1375
1381
|
branch: e.branch,
|
|
1376
1382
|
expanded: a.value
|
|
1377
1383
|
}, () => [
|
|
1378
|
-
(c(), Z(
|
|
1384
|
+
(c(), Z(de(a.value ? A(Fe) : A(_e)), { class: "p-1 text-white rounded-xs size-5 bg-vxvue-700 hover:bg-vxvue" }))
|
|
1379
1385
|
])
|
|
1380
1386
|
])) : I("", !0),
|
|
1381
1387
|
e.branch === e.modelValue ? L(l.$slots, "label-selected", {
|
|
1382
1388
|
key: 1,
|
|
1383
1389
|
branch: e.branch
|
|
1384
1390
|
}, () => [
|
|
1385
|
-
v("strong", null,
|
|
1391
|
+
v("strong", null, P(e.branch.label), 1)
|
|
1386
1392
|
]) : (c(), m("button", {
|
|
1387
1393
|
key: 2,
|
|
1388
1394
|
onClick: i[1] || (i[1] = (o) => n("update:modelValue", e.branch))
|
|
1389
1395
|
}, [
|
|
1390
1396
|
L(l.$slots, "label", { branch: e.branch }, () => [
|
|
1391
|
-
J(
|
|
1397
|
+
J(P(e.branch.label), 1)
|
|
1392
1398
|
])
|
|
1393
1399
|
]))
|
|
1394
1400
|
]),
|
|
1395
|
-
e.branch.branches && e.branch.branches.length ?
|
|
1401
|
+
e.branch.branches && e.branch.branches.length ? re((c(), m("div", nl, [
|
|
1396
1402
|
(c(!0), m(O, null, j(e.branch.branches, (o) => (c(), Z(s, {
|
|
1397
1403
|
key: o.id || o.key || null,
|
|
1398
1404
|
branch: o,
|
|
@@ -1401,7 +1407,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1401
1407
|
onExpand: i[3] || (i[3] = (r) => {
|
|
1402
1408
|
a.value = r, n("expand", r);
|
|
1403
1409
|
})
|
|
1404
|
-
},
|
|
1410
|
+
}, Be({ _: 2 }, [
|
|
1405
1411
|
j(l.$slots, (r, d) => ({
|
|
1406
1412
|
name: d,
|
|
1407
1413
|
fn: te((f) => [
|
|
@@ -1415,7 +1421,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1415
1421
|
], 2);
|
|
1416
1422
|
};
|
|
1417
1423
|
}
|
|
1418
|
-
}),
|
|
1424
|
+
}), Pl = {
|
|
1419
1425
|
__name: "Sizable",
|
|
1420
1426
|
props: { vertical: Boolean },
|
|
1421
1427
|
emits: ["dragStart", "dragStop"],
|
|
@@ -1447,7 +1453,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1447
1453
|
ref_key: "handle",
|
|
1448
1454
|
ref: l,
|
|
1449
1455
|
class: ["absolute flex", t.vertical ? "inset-x-0 top-full justify-center py-1 cursor-ns-resize" : "inset-y-0 left-full items-center px-1 cursor-ew-resize"]
|
|
1450
|
-
},
|
|
1456
|
+
}, ue({
|
|
1451
1457
|
touchstart: x,
|
|
1452
1458
|
mousedown: x,
|
|
1453
1459
|
touchend: y,
|
|
@@ -1461,7 +1467,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1461
1467
|
], 16)
|
|
1462
1468
|
], 512));
|
|
1463
1469
|
}
|
|
1464
|
-
}, ol = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], rl = ["id"], ul = ["id", "aria-label"],
|
|
1470
|
+
}, ol = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], rl = ["id"], ul = ["id", "aria-label"], Bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1465
1471
|
__name: "Slider",
|
|
1466
1472
|
props: {
|
|
1467
1473
|
min: { type: Number, default: 0 },
|
|
@@ -1476,10 +1482,10 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1476
1482
|
setup(e, { emit: u }) {
|
|
1477
1483
|
const t = e, n = u, a = K(), l = { x: null, y: null }, i = { w: null, h: null };
|
|
1478
1484
|
let s = !1;
|
|
1479
|
-
const o = $(null), r = $(0), d =
|
|
1485
|
+
const o = $(null), r = $(0), d = B(() => {
|
|
1480
1486
|
const S = t.max, M = t.min;
|
|
1481
|
-
return t.modelValue instanceof Array ? t.modelValue.map((
|
|
1482
|
-
}), f =
|
|
1487
|
+
return t.modelValue instanceof Array ? t.modelValue.map((F) => (Math.max(Math.min(F, S), M) - M) * 100 / (S - M)) : (Math.max(Math.min(t.modelValue, S), M) - M) * 100 / (S - M);
|
|
1488
|
+
}), f = B(() => {
|
|
1483
1489
|
if (t.modelValue instanceof Array) {
|
|
1484
1490
|
const S = Math.min(...d.value) + "%", M = Math.max(...d.value) - Math.min(...d.value) + "%";
|
|
1485
1491
|
return t.vertical ? { bottom: S, height: M } : { left: S, width: M };
|
|
@@ -1491,16 +1497,16 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1491
1497
|
}), y = (S) => {
|
|
1492
1498
|
let M = parseFloat(S.toFixed(10));
|
|
1493
1499
|
if (M = Math.min(t.max, Math.max(t.min, M)), t.modelValue instanceof Array) {
|
|
1494
|
-
let
|
|
1495
|
-
|
|
1500
|
+
let F = [...t.modelValue];
|
|
1501
|
+
F[r.value] = M, n("update:modelValue", F);
|
|
1496
1502
|
} else
|
|
1497
1503
|
n("update:modelValue", M);
|
|
1498
1504
|
}, b = (S) => {
|
|
1499
|
-
const { pageX: M, pageY:
|
|
1505
|
+
const { pageX: M, pageY: F } = S.touches ? S.touches[0] : S, h = t.vertical ? (-F + l.y) / i.h : (M - l.x) / i.w;
|
|
1500
1506
|
y(Math.floor((t.max - t.min) * h + t.min));
|
|
1501
1507
|
}, T = () => {
|
|
1502
|
-
const { clientLeft: S, clientTop: M, scrollLeft:
|
|
1503
|
-
l.x = g.left +
|
|
1508
|
+
const { clientLeft: S, clientTop: M, scrollLeft: F, scrollTop: h } = document.documentElement, g = o.value.getBoundingClientRect();
|
|
1509
|
+
l.x = g.left + F - S, l.y = g.bottom + h - M, i.w = o.value.offsetWidth, i.h = o.value.offsetHeight;
|
|
1504
1510
|
}, p = (S) => {
|
|
1505
1511
|
s && (S.preventDefault(), b(S));
|
|
1506
1512
|
}, k = (S) => {
|
|
@@ -1544,7 +1550,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1544
1550
|
"aria-valuemax": t.max,
|
|
1545
1551
|
"aria-valuenow": e.modelValue[0] ?? e.modelValue,
|
|
1546
1552
|
"aria-valuetext": e.modelValue
|
|
1547
|
-
},
|
|
1553
|
+
}, ue(e.disabled ? {} : {
|
|
1548
1554
|
click: H
|
|
1549
1555
|
}, !0)), [
|
|
1550
1556
|
e.disabled ? I("", !0) : (c(), m("div", {
|
|
@@ -1552,12 +1558,12 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1552
1558
|
class: C(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
|
|
1553
1559
|
style: we(f.value)
|
|
1554
1560
|
}, null, 6)),
|
|
1555
|
-
e.modelValue.length ? (c(!0), m(O, { key: 2 }, j(e.modelValue, (
|
|
1561
|
+
e.modelValue.length ? (c(!0), m(O, { key: 2 }, j(e.modelValue, (F, h) => (c(), m("button", R({
|
|
1556
1562
|
id: h ? null : A(a).id,
|
|
1557
1563
|
style: e.vertical ? { bottom: d.value[h] + "%" } : { left: d.value[h] + "%" },
|
|
1558
1564
|
"aria-label": "slider-thumb-" + (h + 1),
|
|
1559
1565
|
ref_for: !0
|
|
1560
|
-
}, x.value,
|
|
1566
|
+
}, x.value, ue(e.disabled ? {} : {
|
|
1561
1567
|
focus: () => r.value = h,
|
|
1562
1568
|
keydown: W,
|
|
1563
1569
|
touchstart: (g) => {
|
|
@@ -1573,14 +1579,14 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1573
1579
|
id: A(a).id,
|
|
1574
1580
|
style: e.vertical ? { bottom: d.value + "%" } : { left: d.value + "%" },
|
|
1575
1581
|
"aria-label": "slider-thumb"
|
|
1576
|
-
}, x.value,
|
|
1582
|
+
}, x.value, ue(e.disabled ? {} : {
|
|
1577
1583
|
focus: () => r.value = 0,
|
|
1578
1584
|
keydown: W,
|
|
1579
|
-
touchstart: (
|
|
1580
|
-
r.value = 0, k(
|
|
1585
|
+
touchstart: (F) => {
|
|
1586
|
+
r.value = 0, k(F);
|
|
1581
1587
|
},
|
|
1582
|
-
mousedown: (
|
|
1583
|
-
r.value = 0, k(
|
|
1588
|
+
mousedown: (F) => {
|
|
1589
|
+
r.value = 0, k(F);
|
|
1584
1590
|
},
|
|
1585
1591
|
touchend: D,
|
|
1586
1592
|
mouseup: D
|
|
@@ -1611,7 +1617,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1611
1617
|
},
|
|
1612
1618
|
emits: ["before-sort", "after-sort"],
|
|
1613
1619
|
setup(e, { emit: u }) {
|
|
1614
|
-
const t = e, n = u, a = $(t.sortProp), l = $(t.sortDirection), i =
|
|
1620
|
+
const t = e, n = u, a = $(t.sortProp), l = $(t.sortDirection), i = B(() => {
|
|
1615
1621
|
let o = t.rows.slice();
|
|
1616
1622
|
const r = t.columns.find(({ prop: d }) => d === a.value);
|
|
1617
1623
|
return r && (l.value === "asc" && r.sortAscFunction ? o.sort(r.sortAscFunction) : l.value === "desc" && r.sortDescFunction ? o.sort(r.sortDescFunction) : o.sort((d, f) => d[a.value] < f[a.value] ? l.value === "asc" ? -1 : 1 : d[a.value] > f[a.value] ? l.value === "asc" ? 1 : -1 : 0)), o.slice(t.offset || 0, (t.offset || 0) + (t.count || o.length));
|
|
@@ -1642,8 +1648,8 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1642
1648
|
sortProp: a.value
|
|
1643
1649
|
}, () => [
|
|
1644
1650
|
v("div", dl, [
|
|
1645
|
-
v("span", null,
|
|
1646
|
-
d.sortable ? (c(), Z(
|
|
1651
|
+
v("span", null, P(d.label), 1),
|
|
1652
|
+
d.sortable ? (c(), Z(de(a.value !== d.prop ? A(Oe) : l.value === "asc" ? A(Ne) : A(Ee)), {
|
|
1647
1653
|
key: 0,
|
|
1648
1654
|
class: "size-4"
|
|
1649
1655
|
})) : I("", !0)
|
|
@@ -1665,7 +1671,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1665
1671
|
class: "overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis"
|
|
1666
1672
|
}, [
|
|
1667
1673
|
L(o.$slots, f.prop, { row: d }, () => [
|
|
1668
|
-
J(
|
|
1674
|
+
J(P(d[f.prop]), 1)
|
|
1669
1675
|
])
|
|
1670
1676
|
], 8, cl))), 128))
|
|
1671
1677
|
], 2))), 128))
|
|
@@ -1708,7 +1714,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1708
1714
|
},
|
|
1709
1715
|
emits: ["update:activeIndex"],
|
|
1710
1716
|
setup(e, { emit: u }) {
|
|
1711
|
-
const t = e, n = u, a = $(t.items[t.activeIndex] || {}), l =
|
|
1717
|
+
const t = e, n = u, a = $(t.items[t.activeIndex] || {}), l = B(() => {
|
|
1712
1718
|
let s = [];
|
|
1713
1719
|
return t.items.forEach((o, r) => {
|
|
1714
1720
|
o.disabled || s.push({ label: o.name, key: r });
|
|
@@ -1722,7 +1728,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1722
1728
|
};
|
|
1723
1729
|
return (s, o) => (c(), m(O, null, [
|
|
1724
1730
|
v("div", hl, [
|
|
1725
|
-
Y(
|
|
1731
|
+
Y(zt, {
|
|
1726
1732
|
options: l.value,
|
|
1727
1733
|
"model-value": e.activeIndex,
|
|
1728
1734
|
class: "w-full",
|
|
@@ -1749,7 +1755,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1749
1755
|
L(s.$slots, "icon", { tab: r }),
|
|
1750
1756
|
v("span", null, [
|
|
1751
1757
|
L(s.$slots, "default", { tab: r }, () => [
|
|
1752
|
-
J(
|
|
1758
|
+
J(P(r.name), 1)
|
|
1753
1759
|
])
|
|
1754
1760
|
]),
|
|
1755
1761
|
L(s.$slots, "badge", { tab: r }, () => [
|
|
@@ -1763,7 +1769,7 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1763
1769
|
"bg-gray-200": a.value !== r && !r.disabled
|
|
1764
1770
|
}
|
|
1765
1771
|
])
|
|
1766
|
-
},
|
|
1772
|
+
}, P(r.badge), 3)) : I("", !0)
|
|
1767
1773
|
])
|
|
1768
1774
|
], 10, xl))), 128))
|
|
1769
1775
|
])
|
|
@@ -1771,9 +1777,9 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1771
1777
|
])
|
|
1772
1778
|
], 64));
|
|
1773
1779
|
}
|
|
1774
|
-
}, Fl = {
|
|
1775
|
-
mounted: (e) => e.focus()
|
|
1776
1780
|
}, El = {
|
|
1781
|
+
mounted: (e) => e.focus()
|
|
1782
|
+
}, Fl = {
|
|
1777
1783
|
mounted: (e, u) => {
|
|
1778
1784
|
var t, n;
|
|
1779
1785
|
if (!["INPUT", "TEXTAREA"].includes(e.nodeName)) {
|
|
@@ -1783,10 +1789,10 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1783
1789
|
if (e) {
|
|
1784
1790
|
if (e.querySelector("label")) throw new Error("VFloatingLabel directive: LABEL element found.");
|
|
1785
1791
|
const a = Math.random().toString(36).substring(2), l = document.createElement("div");
|
|
1786
|
-
l.classList.add("relative");
|
|
1792
|
+
l.classList.add("relative", "isolate");
|
|
1787
1793
|
const i = document.createElement("label");
|
|
1788
1794
|
i.classList.add(
|
|
1789
|
-
..."absolute px-2 left-1 top-2 scale-90 text-sm z-
|
|
1795
|
+
..."absolute px-2 left-1 top-2 scale-90 text-sm z-[var(--zIndex-label)] origin-[0] bg-white -translate-y-4 transform-gpu duration-200".split(" "),
|
|
1790
1796
|
..."peer-focus:top-2 peer-focus:scale-90 peer-focus:-translate-y-full".split(" "),
|
|
1791
1797
|
..."peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2".split(" "),
|
|
1792
1798
|
e.nodeName === "TEXTAREA" ? "peer-placeholder-shown:top-4" : "peer-placeholder-shown:top-1/2"
|
|
@@ -1808,19 +1814,19 @@ export {
|
|
|
1808
1814
|
bt as DateInput,
|
|
1809
1815
|
Cl as Datepicker,
|
|
1810
1816
|
Ml as FormFileButton,
|
|
1811
|
-
|
|
1817
|
+
zt as FormSelect,
|
|
1812
1818
|
Vl as FormSwitch,
|
|
1813
1819
|
Dl as MessageToast,
|
|
1814
1820
|
Al as Modal,
|
|
1815
1821
|
Ll as Pagination,
|
|
1816
1822
|
Tl as PasswordInput,
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1823
|
+
zl as SimpleTree,
|
|
1824
|
+
Pl as Sizable,
|
|
1825
|
+
Bl as Slider,
|
|
1820
1826
|
Il as Sortable,
|
|
1821
1827
|
ke as Spinner,
|
|
1822
1828
|
Nl as SubmitButton,
|
|
1823
1829
|
Ol as Tabs,
|
|
1824
|
-
|
|
1825
|
-
|
|
1830
|
+
Fl as VFloatingLabel,
|
|
1831
|
+
El as VFocus
|
|
1826
1832
|
};
|