vx-vue 1.3.9 → 1.4.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.
package/dist/vxvue.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { useSlots as Le, ref as k, computed as I, onBeforeUpdate as Te, createElementBlock as m, openBlock as d, Fragment as O, renderList as Y, createBlock as H, resolveDynamicComponent as me, createElementVNode as c, useAttrs as K, normalizeClass as S, unref as L, renderSlot as T, Transition as Ve, withCtx as ee, toValue as F, watch as X, getCurrentScope as ze, onScopeDispose as Pe, mergeModels as Z, useModel as te, onUpdated as Be, createVNode as _, mergeProps as R, withKeys as re, withModifiers as j, createCommentVNode as B, toDisplayString as P, createTextVNode as Q, nextTick as be, withDirectives as le, vShow as fe, vModelText as Ie, onMounted as xe, vModelSelect as Ne, vModelCheckbox as Oe, normalizeStyle as Se, vModelDynamic as Ee, resolveComponent as Fe, createSlots as _e, toHandlers as ce } from "vue";
2
- const Cl = {
1
+ import { useSlots as Le, ref as k, computed as I, onBeforeUpdate as Te, createElementBlock as m, openBlock as d, Fragment as E, renderList as Y, createBlock as H, resolveDynamicComponent as me, createElementVNode as c, useAttrs as K, normalizeClass as S, unref as L, renderSlot as T, Transition as Ve, withCtx as ee, toValue as N, watch as X, getCurrentScope as ze, onScopeDispose as Pe, mergeModels as Z, useModel as te, onUpdated as Be, createVNode as _, mergeProps as R, withKeys as re, withModifiers as j, createCommentVNode as B, toDisplayString as P, createTextVNode as Q, nextTick as be, withDirectives as le, vShow as fe, vModelText as Ie, onMounted as xe, vModelSelect as Oe, vModelCheckbox as Ee, normalizeStyle as Se, vModelDynamic as Fe, resolveComponent as Ne, createSlots as _e, toHandlers as ce } from "vue";
2
+ const Ml = {
3
3
  __name: "Accordion",
4
4
  props: { activeIndex: { type: [Number, Array], default: null } },
5
5
  emits: ["update:activeIndex"],
@@ -25,14 +25,14 @@ const Cl = {
25
25
  }
26
26
  i(f);
27
27
  };
28
- return Te(() => s.value = []), (f, b) => (d(!0), m(O, null, Y(r.value, (w, g) => (d(), H(me(w), {
28
+ return Te(() => s.value = []), (f, b) => (d(!0), m(E, null, Y(r.value, (w, g) => (d(), H(me(w), {
29
29
  key: g,
30
30
  ref_for: !0,
31
31
  ref: v,
32
32
  show: Array.isArray(e.activeIndex) ? e.activeIndex?.includes(g) : e.activeIndex === g,
33
- onSelect: (M) => o(g),
34
- onKeydown: (M) => n(g),
35
- onKeyup: (M) => i(g)
33
+ onSelect: (C) => o(g),
34
+ onKeydown: (C) => n(g),
35
+ onKeyup: (C) => i(g)
36
36
  }, null, 40, ["show", "onSelect", "onKeydown", "onKeyup"]))), 128));
37
37
  }
38
38
  };
@@ -171,7 +171,7 @@ function ye(e, u) {
171
171
  })
172
172
  ]);
173
173
  }
174
- const We = ["id", "disabled", "aria-expanded", "aria-controls"], qe = ["id", "aria-labelledby"], Ke = { class: "overflow-hidden rounded-b" }, Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
174
+ const We = ["id", "disabled", "aria-expanded", "aria-controls"], qe = ["id", "aria-labelledby"], Ke = { class: "overflow-hidden rounded-b" }, Cl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
175
175
  __name: "AccordionPanel",
176
176
  props: { show: Boolean, disabled: Boolean },
177
177
  emits: ["select", "keyup", "keydown"],
@@ -222,7 +222,7 @@ const We = ["id", "disabled", "aria-expanded", "aria-controls"], qe = ["id", "ar
222
222
  ], 10, qe)
223
223
  ]));
224
224
  }
225
- }), Xe = ["viewBox"], Ge = ["cx", "cy", "r", "stroke-width"], Je = ["cx", "cy", "r", "stroke-width", "stroke-dasharray"], Ce = {
225
+ }), Xe = ["viewBox"], Ge = ["cx", "cy", "r", "stroke-width"], Je = ["cx", "cy", "r", "stroke-width", "stroke-dasharray"], Me = {
226
226
  __name: "Spinner",
227
227
  props: { radius: { type: Number, default: 10 }, strokeWidth: { type: Number, default: 4 } },
228
228
  setup(e) {
@@ -253,7 +253,7 @@ const We = ["id", "disabled", "aria-expanded", "aria-controls"], qe = ["id", "ar
253
253
  }, null, 8, Je)
254
254
  ], 8, Xe));
255
255
  }
256
- }, Me = (e, u) => {
256
+ }, Ce = (e, u) => {
257
257
  const t = e.__vccOpts || e;
258
258
  for (const [a, l] of u)
259
259
  t[a] = l;
@@ -269,7 +269,7 @@ const We = ["id", "disabled", "aria-expanded", "aria-controls"], qe = ["id", "ar
269
269
  _: 3
270
270
  }, 8, ["name"]));
271
271
  }
272
- }, de = /* @__PURE__ */ Me(Qe, [["__scopeId", "data-v-f6b1631e"]]);
272
+ }, de = /* @__PURE__ */ Ce(Qe, [["__scopeId", "data-v-f6b1631e"]]);
273
273
  function et(e) {
274
274
  return ze() ? (Pe(e), !0) : !1;
275
275
  }
@@ -295,9 +295,9 @@ function se(e) {
295
295
  }
296
296
  function ke(e, u, t = {}) {
297
297
  var a;
298
- const l = e.getFullYear(), s = e.getMonth(), v = e.getDate(), r = e.getHours(), o = e.getMinutes(), n = e.getSeconds(), i = e.getMilliseconds(), f = e.getDay(), b = (a = t.customMeridiem) != null ? a : ot, w = (M) => {
298
+ const l = e.getFullYear(), s = e.getMonth(), v = e.getDate(), r = e.getHours(), o = e.getMinutes(), n = e.getSeconds(), i = e.getMilliseconds(), f = e.getDay(), b = (a = t.customMeridiem) != null ? a : ot, w = (C) => {
299
299
  var y;
300
- return (y = M.split(" ")[1]) != null ? y : "";
300
+ return (y = C.split(" ")[1]) != null ? y : "";
301
301
  }, g = {
302
302
  Yo: () => se(l),
303
303
  YY: () => String(l).slice(-2),
@@ -305,8 +305,8 @@ function ke(e, u, t = {}) {
305
305
  M: () => s + 1,
306
306
  Mo: () => se(s + 1),
307
307
  MM: () => `${s + 1}`.padStart(2, "0"),
308
- MMM: () => e.toLocaleDateString(F(t.locales), { month: "short" }),
309
- MMMM: () => e.toLocaleDateString(F(t.locales), { month: "long" }),
308
+ MMM: () => e.toLocaleDateString(N(t.locales), { month: "short" }),
309
+ MMMM: () => e.toLocaleDateString(N(t.locales), { month: "long" }),
310
310
  D: () => String(v),
311
311
  Do: () => se(v),
312
312
  DD: () => `${v}`.padStart(2, "0"),
@@ -324,21 +324,21 @@ function ke(e, u, t = {}) {
324
324
  ss: () => `${n}`.padStart(2, "0"),
325
325
  SSS: () => `${i}`.padStart(3, "0"),
326
326
  d: () => f,
327
- dd: () => e.toLocaleDateString(F(t.locales), { weekday: "narrow" }),
328
- ddd: () => e.toLocaleDateString(F(t.locales), { weekday: "short" }),
329
- dddd: () => e.toLocaleDateString(F(t.locales), { weekday: "long" }),
327
+ dd: () => e.toLocaleDateString(N(t.locales), { weekday: "narrow" }),
328
+ ddd: () => e.toLocaleDateString(N(t.locales), { weekday: "short" }),
329
+ dddd: () => e.toLocaleDateString(N(t.locales), { weekday: "long" }),
330
330
  A: () => b(r, o),
331
331
  AA: () => b(r, o, !1, !0),
332
332
  a: () => b(r, o, !0),
333
333
  aa: () => b(r, o, !0, !0),
334
- z: () => w(e.toLocaleDateString(F(t.locales), { timeZoneName: "shortOffset" })),
335
- zz: () => w(e.toLocaleDateString(F(t.locales), { timeZoneName: "shortOffset" })),
336
- zzz: () => w(e.toLocaleDateString(F(t.locales), { timeZoneName: "shortOffset" })),
337
- zzzz: () => w(e.toLocaleDateString(F(t.locales), { timeZoneName: "longOffset" }))
334
+ z: () => w(e.toLocaleDateString(N(t.locales), { timeZoneName: "shortOffset" })),
335
+ zz: () => w(e.toLocaleDateString(N(t.locales), { timeZoneName: "shortOffset" })),
336
+ zzz: () => w(e.toLocaleDateString(N(t.locales), { timeZoneName: "shortOffset" })),
337
+ zzzz: () => w(e.toLocaleDateString(N(t.locales), { timeZoneName: "longOffset" }))
338
338
  };
339
- return u.replace(nt, (M, y) => {
340
- var C, V;
341
- return (V = y ?? ((C = g[M]) == null ? void 0 : C.call(g))) != null ? V : M;
339
+ return u.replace(nt, (C, y) => {
340
+ var M, V;
341
+ return (V = y ?? ((M = g[C]) == null ? void 0 : M.call(g))) != null ? V : C;
342
342
  });
343
343
  }
344
344
  function rt(e, u, t) {
@@ -354,24 +354,24 @@ function rt(e, u, t) {
354
354
  const Ae = De ? window : void 0;
355
355
  function ue(e) {
356
356
  var u;
357
- const t = F(e);
357
+ const t = N(e);
358
358
  return (u = t?.$el) != null ? u : t;
359
359
  }
360
360
  function ge(...e) {
361
361
  const u = [], t = () => {
362
362
  u.forEach((r) => r()), u.length = 0;
363
363
  }, a = (r, o, n, i) => (r.addEventListener(o, n, i), () => r.removeEventListener(o, n, i)), l = I(() => {
364
- const r = pe(F(e[0])).filter((o) => o != null);
364
+ const r = pe(N(e[0])).filter((o) => o != null);
365
365
  return r.every((o) => typeof o != "string") ? r : void 0;
366
366
  }), s = rt(
367
367
  () => {
368
368
  var r, o;
369
369
  return [
370
370
  (o = (r = l.value) == null ? void 0 : r.map((n) => ue(n))) != null ? o : [Ae].filter((n) => n != null),
371
- pe(F(l.value ? e[1] : e[0])),
371
+ pe(N(l.value ? e[1] : e[0])),
372
372
  pe(L(l.value ? e[2] : e[1])),
373
373
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
374
- F(l.value ? e[3] : e[2])
374
+ N(l.value ? e[3] : e[2])
375
375
  ];
376
376
  },
377
377
  ([r, o, n, i]) => {
@@ -400,28 +400,28 @@ function we(e, u, t = {}) {
400
400
  if (at && !$e) {
401
401
  $e = !0;
402
402
  const y = { passive: !0 };
403
- Array.from(a.document.body.children).forEach((C) => C.addEventListener("click", ne, y)), a.document.documentElement.addEventListener("click", ne, y);
403
+ Array.from(a.document.body.children).forEach((M) => M.addEventListener("click", ne, y)), a.document.documentElement.addEventListener("click", ne, y);
404
404
  }
405
405
  let o = !0;
406
- const n = (y) => F(l).some((C) => {
407
- if (typeof C == "string")
408
- return Array.from(a.document.querySelectorAll(C)).some((V) => V === y.target || y.composedPath().includes(V));
406
+ const n = (y) => N(l).some((M) => {
407
+ if (typeof M == "string")
408
+ return Array.from(a.document.querySelectorAll(M)).some((V) => V === y.target || y.composedPath().includes(V));
409
409
  {
410
- const V = ue(C);
410
+ const V = ue(M);
411
411
  return V && (y.target === V || y.composedPath().includes(V));
412
412
  }
413
413
  });
414
414
  function i(y) {
415
- const C = F(y);
416
- return C && C.$.subTree.shapeFlag === 16;
415
+ const M = N(y);
416
+ return M && M.$.subTree.shapeFlag === 16;
417
417
  }
418
- function f(y, C) {
419
- const V = F(y), E = V.$.subTree && V.$.subTree.children;
420
- return E == null || !Array.isArray(E) ? !1 : E.some((G) => G.el === C.target || C.composedPath().includes(G.el));
418
+ function f(y, M) {
419
+ const V = N(y), F = V.$.subTree && V.$.subTree.children;
420
+ return F == null || !Array.isArray(F) ? !1 : F.some((G) => G.el === M.target || M.composedPath().includes(G.el));
421
421
  }
422
422
  const b = (y) => {
423
- const C = ue(e);
424
- if (y.target != null && !(!(C instanceof Element) && i(e) && f(e, y)) && !(!C || C === y.target || y.composedPath().includes(C))) {
423
+ const M = ue(e);
424
+ if (y.target != null && !(!(M instanceof Element) && i(e) && f(e, y)) && !(!M || M === y.target || y.composedPath().includes(M))) {
425
425
  if ("detail" in y && y.detail === 0 && (o = !n(y)), !o) {
426
426
  o = !0;
427
427
  return;
@@ -437,26 +437,26 @@ function we(e, u, t = {}) {
437
437
  }, 0), b(y));
438
438
  }, { passive: !0, capture: s }),
439
439
  ge(a, "pointerdown", (y) => {
440
- const C = ue(e);
441
- o = !n(y) && !!(C && !y.composedPath().includes(C));
440
+ const M = ue(e);
441
+ o = !n(y) && !!(M && !y.composedPath().includes(M));
442
442
  }, { passive: !0 }),
443
443
  v && ge(a, "blur", (y) => {
444
444
  setTimeout(() => {
445
- var C;
445
+ var M;
446
446
  const V = ue(e);
447
- ((C = a.document.activeElement) == null ? void 0 : C.tagName) === "IFRAME" && !V?.contains(a.document.activeElement) && u(y);
447
+ ((M = a.document.activeElement) == null ? void 0 : M.tagName) === "IFRAME" && !V?.contains(a.document.activeElement) && u(y);
448
448
  }, 0);
449
449
  }, { passive: !0 })
450
- ].filter(Boolean), M = () => g.forEach((y) => y());
450
+ ].filter(Boolean), C = () => g.forEach((y) => y());
451
451
  return r ? {
452
- stop: M,
452
+ stop: C,
453
453
  cancel: () => {
454
454
  o = !1;
455
455
  },
456
456
  trigger: (y) => {
457
457
  o = !0, b(y), o = !1;
458
458
  }
459
- } : M;
459
+ } : C;
460
460
  }
461
461
  const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-0 items-center pr-3 text-vxvue-700" }, dt = ["data-result-index"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
462
462
  __name: "Autocomplete",
@@ -475,14 +475,14 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
475
475
  const t = u, a = e, l = te(e, "modelValue"), s = K(), r = (/* @__PURE__ */ (() => {
476
476
  let A = 0;
477
477
  return (z) => (z || "") + ++A;
478
- })())((s.id || "autocomplete") + "-"), o = k([]), n = k(-1), i = k(0), f = k(!1), b = k(!1), w = k("top-0 translate-y-12"), g = k(!0), M = k(null), y = k(null), C = k(null), V = I(
478
+ })())((s.id || "autocomplete") + "-"), o = k([]), n = k(-1), i = k(0), f = k(!1), b = k(!1), w = k("top-0 translate-y-12"), g = k(!0), C = k(null), y = k(null), M = k(null), V = I(
479
479
  () => o.value.map((A, z) => ({
480
480
  id: (s.id || "autocomplete") + "-item-" + z,
481
481
  class: [a.resultItemClass, { "bg-vxvue-700 text-white": n.value === z }],
482
482
  role: "option",
483
483
  ...n.value === z ? { "aria-selected": "true" } : {}
484
484
  }))
485
- ), E = I(() => ({
485
+ ), F = I(() => ({
486
486
  role: "combobox",
487
487
  autocomplete: "off",
488
488
  autocapitalize: "off",
@@ -516,7 +516,7 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
516
516
  l.value = A, $(A);
517
517
  }, h = (A) => $(A.target.value), x = () => {
518
518
  q(), t("blur-sm");
519
- }, N = () => {
519
+ }, O = () => {
520
520
  const A = o.value.length;
521
521
  n.value = ((n.value - 1) % A + A) % A;
522
522
  }, U = (A) => {
@@ -529,19 +529,19 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
529
529
  const z = A.target.closest("[data-result-index]");
530
530
  z && (n.value = parseInt(z.dataset.resultIndex, 10), t("submit", D()));
531
531
  };
532
- return we(C, q), Be(() => {
533
- if (M.value) {
534
- const A = y.value.getBoundingClientRect(), z = M.value.getBoundingClientRect();
532
+ return we(M, q), Be(() => {
533
+ if (C.value) {
534
+ const A = y.value.getBoundingClientRect(), z = C.value.getBoundingClientRect();
535
535
  g.value && o.value.length && (g.value = !1, w.value = A.bottom + z.height > window.innerHeight && window.innerHeight - A.bottom < A.top && window.pageYOffset + A.top - z.height > 0 ? "bottom-0 -translate-y-12" : "top-0 translate-y-12");
536
- const J = M.value.querySelector('[data-result-index="' + n.value + '"]');
536
+ const J = C.value.querySelector('[data-result-index="' + n.value + '"]');
537
537
  if (J) {
538
538
  let W = J.getBoundingClientRect();
539
- W.top < z.top ? M.value.scrollTop -= z.top - W.top : W.bottom > z.bottom && (M.value.scrollTop += W.bottom - z.bottom);
539
+ W.top < z.top ? C.value.scrollTop -= z.top - W.top : W.bottom > z.bottom && (C.value.scrollTop += W.bottom - z.bottom);
540
540
  }
541
541
  }
542
542
  }), (A, z) => (d(), m("div", {
543
543
  ref_key: "container",
544
- ref: C,
544
+ ref: M,
545
545
  class: S(["inline-block relative", A.$attrs.class])
546
546
  }, [
547
547
  c("input", R({
@@ -549,20 +549,20 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
549
549
  ref: y,
550
550
  class: "block pr-10 w-full form-input focus:border-vxvue",
551
551
  value: l.value
552
- }, E.value, {
552
+ }, F.value, {
553
553
  onInput: z[0] || (z[0] = (J) => p(J.target.value)),
554
554
  onKeydown: [
555
555
  re(ae, ["enter"]),
556
556
  re(oe, ["esc"]),
557
557
  re(D, ["tab"]),
558
- re(j(N, ["prevent"]), ["up"]),
558
+ re(j(O, ["prevent"]), ["up"]),
559
559
  re(j(U, ["prevent"]), ["down"])
560
560
  ],
561
561
  onFocus: h,
562
562
  onBlur: x
563
563
  }), null, 16, ut),
564
564
  c("span", it, [
565
- b.value ? (d(), H(Ce, {
565
+ b.value ? (d(), H(Me, {
566
566
  key: 0,
567
567
  class: "size-5"
568
568
  })) : B("", !0)
@@ -572,13 +572,13 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
572
572
  o.value.length ? (d(), m("div", R({
573
573
  key: 0,
574
574
  ref_key: "resultList",
575
- ref: M
575
+ ref: C
576
576
  }, G.value, {
577
577
  onClick: he,
578
578
  onMousedown: z[1] || (z[1] = j(() => {
579
579
  }, ["prevent"]))
580
580
  }), [
581
- (d(!0), m(O, null, Y(o.value, (J, W) => (d(), m("div", { "data-result-index": W }, [
581
+ (d(!0), m(E, null, Y(o.value, (J, W) => (d(), m("div", { "data-result-index": W }, [
582
582
  T(A.$slots, "result", {
583
583
  result: J,
584
584
  props: V.value[W]
@@ -624,9 +624,9 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
624
624
  const o = I(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]), n = k(null), i = (b, w) => {
625
625
  s.value = !1, b.value !== void 0 ? b.value ? v() : r() : w ? r() : v();
626
626
  };
627
- return u({ open: (b, w) => (a.value = b, l.value = w, s.value = !0, be(() => n.value.firstElementChild.focus()), new Promise((g, M) => {
628
- v = g, r = M;
629
- })) }), (b, w) => (d(), m(O, null, [
627
+ return u({ open: (b, w) => (a.value = b, l.value = w, s.value = !0, be(() => n.value.firstElementChild.focus()), new Promise((g, C) => {
628
+ v = g, r = C;
629
+ })) }), (b, w) => (d(), m(E, null, [
630
630
  s.value ? (d(), m("div", ct)) : B("", !0),
631
631
  _(de, { name: "appear" }, {
632
632
  default: ee(() => [
@@ -662,10 +662,10 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
662
662
  ref: n,
663
663
  class: "flex justify-center mt-5 space-x-2 sm:mt-6"
664
664
  }, [
665
- (d(!0), m(O, null, Y(o.value, (g, M) => (d(), m("button", {
665
+ (d(!0), m(E, null, Y(o.value, (g, C) => (d(), m("button", {
666
666
  key: g.label,
667
667
  class: S([e.buttonClass, g.class]),
668
- onClick: j((y) => i(g, M), ["prevent"])
668
+ onClick: j((y) => i(g, C), ["prevent"])
669
669
  }, P(g.label), 11, yt))), 128))
670
670
  ], 512)
671
671
  ])
@@ -680,7 +680,7 @@ const ut = ["value", "onKeydown"], it = { class: "flex absolute inset-y-0 right-
680
680
  }
681
681
  };
682
682
  function wt(e, u) {
683
- const t = k(!1), a = F(u);
683
+ const t = k(!1), a = N(u);
684
684
  let l, s = a.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), v = [];
685
685
  if ((l = a.match(/\bd\b/gi)) && l.length === 1)
686
686
  s = s.replace("d", "(\\d{1,2})");
@@ -698,7 +698,7 @@ function wt(e, u) {
698
698
  s = s.replace("yyyy", "(\\d{4})");
699
699
  else
700
700
  return { date: t };
701
- if (v.push({ srcPos: a.toLowerCase().indexOf("y"), destPos: 0 }), !(l = F(e).match(s)))
701
+ if (v.push({ srcPos: a.toLowerCase().indexOf("y"), destPos: 0 }), !(l = N(e).match(s)))
702
702
  return { date: t };
703
703
  l.shift(), v.sort((i, f) => i.srcPos < f.srcPos ? -1 : 1);
704
704
  let r = [], o, n;
@@ -769,7 +769,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
769
769
  T(o.$slots, "default")
770
770
  ], 2));
771
771
  }
772
- }), Ct = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, Mt = { class: "flex justify-between w-1/2" }, Dt = { class: "flex justify-between w-1/2" }, At = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, Lt = ["disabled", "onClick"], Tt = { class: "flex justify-between items-center py-2 px-3 text-white bg-vxvue-700" }, Vt = { class: "grid grid-cols-2 gap-0.5 p-0.5" }, zt = ["onClick"], Ll = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
772
+ }), Mt = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, Ct = { class: "flex justify-between w-1/2" }, Dt = { class: "flex justify-between w-1/2" }, At = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, Lt = ["disabled", "onClick"], Tt = { class: "flex justify-between items-center py-2 px-3 text-white bg-vxvue-700" }, Vt = { class: "grid grid-cols-2 gap-0.5 p-0.5" }, zt = ["onClick"], Ll = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
773
773
  __name: "Datepicker",
774
774
  props: /* @__PURE__ */ Z({
775
775
  shownMonth: Date,
@@ -794,40 +794,40 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
794
794
  const t = e, a = te(e, "modelValue"), l = u, s = (() => {
795
795
  const p = /* @__PURE__ */ new Date();
796
796
  return new Date(p.getFullYear(), p.getMonth(), p.getDate());
797
- })(), v = k(null), r = k([]), o = k(!1), n = k("days"), i = k(0), f = k({ horiz: "left-0", vert: "top-0" }), b = k(null), w = k(null), g = k(null), M = I(() => t.hasInput && t.maxNumberOfValues === 1), y = I(() => {
798
- const p = [], h = v.value.getFullYear(), x = v.value.getMonth(), N = new Date(h, x + 1, 0), U = new Date(h, x, 0).getDay() + 1 - t.startOfWeekIndex, oe = (6 + t.startOfWeekIndex - N.getDay()) % 7;
799
- for (let ae = -U, he = N.getDate() + oe; ae < he; ++ae)
797
+ })(), v = k(null), r = k([]), o = k(!1), n = k("days"), i = k(0), f = k({ horiz: "left-0", vert: "top-0" }), b = k(null), w = k(null), g = k(null), C = I(() => t.hasInput && t.maxNumberOfValues === 1), y = I(() => {
798
+ const p = [], h = v.value.getFullYear(), x = v.value.getMonth(), O = new Date(h, x + 1, 0), U = new Date(h, x, 0).getDay() + 1 - t.startOfWeekIndex, oe = (6 + t.startOfWeekIndex - O.getDay()) % 7;
799
+ for (let ae = -U, he = O.getDate() + oe; ae < he; ++ae)
800
800
  p.push(new Date(h, x, ae + 1));
801
801
  return p;
802
- }), C = I(() => t.startOfWeekIndex ? t.dayNames.slice(1).concat(t.dayNames[0]) : t.dayNames), V = (p) => {
802
+ }), M = I(() => t.startOfWeekIndex ? t.dayNames.slice(1).concat(t.dayNames[0]) : t.dayNames), V = (p) => {
803
803
  v.value = new Date(v.value.getFullYear(), p, 1), l("month-change", v.value);
804
- }, E = (p) => {
804
+ }, F = (p) => {
805
805
  v.value = new Date(p, v.value.getMonth(), 1), l("year-change", v.value);
806
806
  }, G = (p) => a.value = p, q = (p) => {
807
807
  if (o.value = !1, t.maxNumberOfValues === 1)
808
808
  a.value = p;
809
809
  else {
810
810
  const h = r.value;
811
- let x = h.findIndex((N) => N.getTime() === p.getTime());
811
+ let x = h.findIndex((O) => O.getTime() === p.getTime());
812
812
  x !== -1 ? h.splice(x, 1) : h.length < t.maxNumberOfValues && h.push(p), a.value = h;
813
813
  }
814
814
  }, $ = (p) => r.value.find((h) => h?.getTime() === p.getTime()), D = (p) => {
815
- const h = p.getMonth() !== v.value.getMonth(), x = $(p), N = p.getTime() === s.getTime(), U = t.validFrom && t.validFrom > p || t.validUntil && t.validUntil < p, oe = !x && t.maxNumberOfValues > 1 && r.value.length === t.maxNumberOfValues, ae = t.highlightRange && p > Math.min(...r.value) && p < Math.max(...r.value);
815
+ const h = p.getMonth() !== v.value.getMonth(), x = $(p), O = p.getTime() === s.getTime(), U = t.validFrom && t.validFrom > p || t.validUntil && t.validUntil < p, oe = !x && t.maxNumberOfValues > 1 && r.value.length === t.maxNumberOfValues, ae = t.highlightRange && p > Math.min(...r.value) && p < Math.max(...r.value);
816
816
  return {
817
817
  "cursor-not-allowed": U || oe,
818
- "text-vxvue-700": !U && !h && !N && !x,
818
+ "text-vxvue-700": !U && !h && !O && !x,
819
819
  "text-error": U && !h,
820
- "text-gray-400": h && !N && !x,
821
- "bg-vxvue-alt-300 font-bold": N && !x,
820
+ "text-gray-400": h && !O && !x,
821
+ "bg-vxvue-alt-300 font-bold": O && !x,
822
822
  "bg-vxvue-700 text-white": x,
823
823
  "hover:ring-2 hover:ring-vxvue": !U,
824
- "bg-vxvue-100/50": ae && !N && !x
824
+ "bg-vxvue-100/50": ae && !O && !x
825
825
  };
826
826
  };
827
827
  return we(w, () => {
828
828
  o.value = !1, n.value = "days";
829
829
  }, { ignore: [g] }), xe(() => g.value = b.value?.$refs.toggleButton), X(o, (p) => {
830
- p && M.value && be(() => {
830
+ p && C.value && be(() => {
831
831
  const h = b.value.$el.getBoundingClientRect(), x = w.value.getBoundingClientRect();
832
832
  f.value.horiz = h.right - x.width < 0 ? "left-0" : "right-0", f.value.vert = h.bottom + x.height > window.innerHeight ? "bottom-0 -translate-y-12" : "top-0 translate-y-12";
833
833
  });
@@ -835,9 +835,9 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
835
835
  if (p)
836
836
  if (Array.isArray(p)) {
837
837
  const h = [], x = r.value;
838
- p.forEach((N) => {
839
- N && h.push(new Date(N.getFullYear(), N.getMonth(), N.getDate()));
840
- }), (h.length !== x.length || ![.../* @__PURE__ */ new Set([...h, ...x])].every((N) => h.filter((U) => U.getTime() === N.getTime()).length === x.filter((U) => U.getTime() === N.getTime()).length)) && (r.value = h, v.value = new Date((h[0] || s).getTime()), v.value.setDate(1));
838
+ p.forEach((O) => {
839
+ O && h.push(new Date(O.getFullYear(), O.getMonth(), O.getDate()));
840
+ }), (h.length !== x.length || ![.../* @__PURE__ */ new Set([...h, ...x])].every((O) => h.filter((U) => U.getTime() === O.getTime()).length === x.filter((U) => U.getTime() === O.getTime()).length)) && (r.value = h, v.value = new Date((h[0] || s).getTime()), v.value.setDate(1));
841
841
  } else
842
842
  r.value = [new Date(p.getFullYear(), p.getMonth(), p.getDate())], v.value = new Date(p.getFullYear(), p.getMonth(), 1);
843
843
  else
@@ -847,7 +847,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
847
847
  }, { immediate: !0 }), (p, h) => (d(), m("div", {
848
848
  class: S(["relative", p.$attrs.class])
849
849
  }, [
850
- M.value ? (d(), H(St, R({ key: 0 }, p.$attrs, {
850
+ C.value ? (d(), H(St, R({ key: 0 }, p.$attrs, {
851
851
  ref_key: "input",
852
852
  ref: b,
853
853
  "model-value": r.value[0],
@@ -871,13 +871,13 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
871
871
  f.value.horiz,
872
872
  f.value.vert,
873
873
  {
874
- absolute: M.value
874
+ absolute: C.value
875
875
  }
876
876
  ])
877
877
  }, [
878
- n.value === "days" ? (d(), m(O, { key: 0 }, [
879
- c("div", Ct, [
880
- c("div", Mt, [
878
+ n.value === "days" ? (d(), m(E, { key: 0 }, [
879
+ c("div", Mt, [
880
+ c("div", Ct, [
881
881
  c("button", {
882
882
  class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
883
883
  onClick: h[1] || (h[1] = j((x) => V(v.value.getMonth() - 1), ["stop"]))
@@ -895,7 +895,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
895
895
  c("div", Dt, [
896
896
  c("button", {
897
897
  class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
898
- onClick: h[3] || (h[3] = j((x) => E(v.value.getFullYear() - 1), ["stop"]))
898
+ onClick: h[3] || (h[3] = j((x) => F(v.value.getFullYear() - 1), ["stop"]))
899
899
  }, [
900
900
  _(L(ve), { class: "size-6" })
901
901
  ]),
@@ -907,26 +907,26 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
907
907
  }, P(v.value.getFullYear()), 1),
908
908
  c("button", {
909
909
  class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
910
- onClick: h[5] || (h[5] = j((x) => E(v.value.getFullYear() + 1), ["stop"]))
910
+ onClick: h[5] || (h[5] = j((x) => F(v.value.getFullYear() + 1), ["stop"]))
911
911
  }, [
912
912
  _(L(ie), { class: "size-6" })
913
913
  ])
914
914
  ])
915
915
  ]),
916
916
  c("div", At, [
917
- (d(!0), m(O, null, Y(C.value, (x, N) => (d(), m("div", {
918
- key: N,
917
+ (d(!0), m(E, null, Y(M.value, (x, O) => (d(), m("div", {
918
+ key: O,
919
919
  class: "py-2 text-center bg-gray-200"
920
920
  }, P(x), 1))), 128)),
921
- (d(!0), m(O, null, Y(y.value, (x) => (d(), m("button", {
921
+ (d(!0), m(E, null, Y(y.value, (x) => (d(), m("button", {
922
922
  key: x,
923
923
  class: S(["py-2 rounded-xs block text-center", D(x)]),
924
924
  disabled: e.validFrom && e.validFrom > x || e.validUntil && e.validUntil < x || e.maxNumberOfValues > 1 && r.value.length === e.maxNumberOfValues && !$(x),
925
- onClick: j((N) => q(x), ["stop"])
925
+ onClick: j((O) => q(x), ["stop"])
926
926
  }, P(x.getDate()), 11, Lt))), 128))
927
927
  ])
928
928
  ], 64)) : B("", !0),
929
- n.value === "years" ? (d(), m(O, { key: 1 }, [
929
+ n.value === "years" ? (d(), m(E, { key: 1 }, [
930
930
  c("div", Tt, [
931
931
  c("button", {
932
932
  class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
@@ -943,14 +943,14 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
943
943
  ])
944
944
  ]),
945
945
  c("div", Vt, [
946
- (d(), m(O, null, Y(10, (x) => c("div", {
946
+ (d(), m(E, null, Y(10, (x) => c("div", {
947
947
  key: x,
948
948
  class: "text-center hover:ring-2 text-vxvue-700 hover:ring-vxvue"
949
949
  }, [
950
950
  c("button", {
951
951
  class: "py-2 px-3",
952
- onClick: j((N) => {
953
- E(i.value + x - 1), n.value = "days";
952
+ onClick: j((O) => {
953
+ F(i.value + x - 1), n.value = "days";
954
954
  }, ["stop"])
955
955
  }, P(i.value + x - 1), 9, zt)
956
956
  ])), 64))
@@ -1005,13 +1005,14 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1005
1005
  }
1006
1006
  }, It = {
1007
1007
  key: 0,
1008
+ value: null,
1008
1009
  disabled: "",
1009
- value: ""
1010
- }, Nt = ["selected", "value"], Ot = {
1010
+ hidden: ""
1011
+ }, Ot = ["selected", "value"], Et = {
1011
1012
  __name: "FormSelect",
1012
1013
  props: /* @__PURE__ */ Z({
1013
1014
  options: { type: Array, default: () => [] },
1014
- disabledLabel: { type: String, default: "" }
1015
+ placeholder: { type: String, default: null }
1015
1016
  }, {
1016
1017
  modelValue: {},
1017
1018
  modelModifiers: {}
@@ -1023,17 +1024,17 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1023
1024
  "onUpdate:modelValue": a[0] || (a[0] = (l) => u.value = l),
1024
1025
  class: "form-select"
1025
1026
  }), [
1026
- e.disabledLabel ? (d(), m("option", It, P(e.disabledLabel), 1)) : B("", !0),
1027
- (d(!0), m(O, null, Y(e.options, (l) => (d(), m("option", {
1027
+ e.placeholder ? (d(), m("option", It, P(e.placeholder), 1)) : B("", !0),
1028
+ (d(!0), m(E, null, Y(e.options, (l) => (d(), m("option", {
1028
1029
  key: l.key !== void 0 ? l.key : l.label || l,
1029
1030
  selected: (l.key !== void 0 ? l.key : l.label || l) === u.value,
1030
1031
  value: l.key !== void 0 ? l.key : l.label || l
1031
- }, P(l.label || l), 9, Nt))), 128))
1032
+ }, P(l.label || l), 9, Ot))), 128))
1032
1033
  ], 16)), [
1033
- [Ne, u.value]
1034
+ [Oe, u.value]
1034
1035
  ]);
1035
1036
  }
1036
- }, Et = ["aria-checked", "aria-label"], Ft = ["d"], Vl = {
1037
+ }, Ft = ["aria-checked", "aria-label"], Nt = ["d"], Vl = {
1037
1038
  __name: "FormSwitch",
1038
1039
  props: {
1039
1040
  modelValue: {},
@@ -1052,7 +1053,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1052
1053
  c("span", {
1053
1054
  role: "switch",
1054
1055
  class: S([
1055
- "inline-flex relative shrink-0 w-11 h-6 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out cursor-pointer focus:ring-2 focus:ring-offset-2 focus:outline-hidden focus:ring-vxvue",
1056
+ "inline-flex relative shrink-0 w-11 p-[2px] rounded-full transition-colors duration-200 ease-in-out cursor-pointer focus:ring-2 focus:ring-offset-2 focus:outline-hidden focus:ring-vxvue",
1056
1057
  a.value ? "bg-slate-200" : u.value ? "bg-vxvue" : "bg-slate-300"
1057
1058
  ]),
1058
1059
  "aria-checked": u.value,
@@ -1061,7 +1062,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1061
1062
  c("span", {
1062
1063
  "aria-hidden": "true",
1063
1064
  class: S([
1064
- "block relative size-5 rounded-full ring-0 shadow-sm transition duration-200 ease-in-out transform pointer-events-none",
1065
+ "block relative size-5 rounded-full transition duration-200 ease-in-out transform pointer-events-none",
1065
1066
  u.value ? "translate-x-5" : "translate-x-0",
1066
1067
  a.value ? "bg-slate-100" : "bg-white"
1067
1068
  ])
@@ -1071,15 +1072,14 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1071
1072
  xmlns: "http://www.w3.org/2000/svg",
1072
1073
  fill: "none",
1073
1074
  viewBox: "0 0 24 24",
1074
- "stroke-width": "5",
1075
+ "stroke-width": "6",
1075
1076
  stroke: "currentColor",
1076
1077
  class: S(["absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-3", u.value && !a.value ? "text-vxvue" : "text-slate-300"])
1077
1078
  }, [
1078
1079
  c("path", {
1079
1080
  "stroke-linecap": "round",
1080
- "stroke-linejoin": "round",
1081
1081
  d: u.value ? "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"
1082
- }, null, 8, Ft)
1082
+ }, null, 8, Nt)
1083
1083
  ], 2))
1084
1084
  ])
1085
1085
  ], 2),
@@ -1090,9 +1090,9 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1090
1090
  value: "1",
1091
1091
  type: "checkbox"
1092
1092
  }), null, 16), [
1093
- [Oe, u.value]
1093
+ [Ee, u.value]
1094
1094
  ])
1095
- ], 10, Et),
1095
+ ], 10, Ft),
1096
1096
  T(l.$slots, "default")
1097
1097
  ], 2));
1098
1098
  }
@@ -1137,7 +1137,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1137
1137
  c("div", Ut, P(e.title), 1)
1138
1138
  ]),
1139
1139
  T(o.$slots, "default", {}, () => [
1140
- (d(!0), m(O, null, Y(l.value, (i) => (d(), m("p", Wt, P(i), 1))), 256))
1140
+ (d(!0), m(E, null, Y(l.value, (i) => (d(), m("p", Wt, P(i), 1))), 256))
1141
1141
  ])
1142
1142
  ]),
1143
1143
  c("div", qt, [
@@ -1190,7 +1190,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1190
1190
  emits: ["clicked-outside"],
1191
1191
  setup(e, { emit: u }) {
1192
1192
  const t = u, a = k(null);
1193
- return we(a, () => t("clicked-outside")), (l, s) => (d(), m(O, null, [
1193
+ return we(a, () => t("clicked-outside")), (l, s) => (d(), m(E, null, [
1194
1194
  e.show ? (d(), m("div", Kt)) : B("", !0),
1195
1195
  _(de, { name: "appear" }, {
1196
1196
  default: ee(() => [
@@ -1269,7 +1269,7 @@ const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */
1269
1269
  ], 10, el)) : B("", !0)
1270
1270
  ]),
1271
1271
  c("div", tl, [
1272
- (d(!0), m(O, null, Y(r.value, (b, w) => (d(), H(me(e.page !== "dots" ? "button" : "span"), {
1272
+ (d(!0), m(E, null, Y(r.value, (b, w) => (d(), H(me(e.page !== "dots" ? "button" : "span"), {
1273
1273
  key: w,
1274
1274
  class: S([
1275
1275
  { "pointer-events-none": b === "dots" },
@@ -1360,7 +1360,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1360
1360
  "onUpdate:modelValue": s[0] || (s[0] = (v) => u.value = v),
1361
1361
  type: t.value ? "text" : "password"
1362
1362
  }, a.value, { class: "block pr-12 w-full form-input peer" }), null, 16, ol), [
1363
- [Ee, u.value]
1363
+ [Fe, u.value]
1364
1364
  ]),
1365
1365
  c("button", {
1366
1366
  class: "flex absolute inset-y-0 right-0 items-center px-3 text-brand-700 hover:text-brand",
@@ -1381,7 +1381,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1381
1381
  }), ul = { class: "flex items-center pb-1" }, il = {
1382
1382
  key: 0,
1383
1383
  class: "ml-6"
1384
- }, Nl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1384
+ }, Ol = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1385
1385
  __name: "SimpleTree",
1386
1386
  props: /* @__PURE__ */ Z({ branch: { type: Object, default: () => ({}) } }, {
1387
1387
  modelValue: { type: Object, default: null },
@@ -1393,7 +1393,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1393
1393
  return xe(() => {
1394
1394
  t.branch === l.value && a("expand", !0);
1395
1395
  }), (v, r) => {
1396
- const o = Fe("simple-tree", !0);
1396
+ const o = Ne("simple-tree", !0);
1397
1397
  return d(), m("div", {
1398
1398
  class: S([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", v.$attrs.class])
1399
1399
  }, [
@@ -1425,7 +1425,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1425
1425
  ]))
1426
1426
  ]),
1427
1427
  e.branch.branches && e.branch.branches.length ? le((d(), m("div", il, [
1428
- (d(!0), m(O, null, Y(e.branch.branches, (n) => (d(), H(o, {
1428
+ (d(!0), m(E, null, Y(e.branch.branches, (n) => (d(), H(o, {
1429
1429
  key: n.id || n.key || null,
1430
1430
  branch: n,
1431
1431
  modelValue: l.value,
@@ -1447,7 +1447,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1447
1447
  ], 2);
1448
1448
  };
1449
1449
  }
1450
- }), Ol = {
1450
+ }), El = {
1451
1451
  __name: "Sizable",
1452
1452
  props: { vertical: Boolean },
1453
1453
  emits: ["dragStart", "dragStop"],
@@ -1457,17 +1457,17 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1457
1457
  const f = (g) => {
1458
1458
  if (v) {
1459
1459
  g.preventDefault();
1460
- const { pageX: M, pageY: y } = g.touches?.[0] ?? g;
1461
- t.vertical ? l.value.style.height = Math.min(n.height - i.height - (o.y - n.y), Math.max(0, o.height + y - r.y)) + "px" : l.value.style.width = Math.min(n.width - i.width - (o.x - n.x), Math.max(0, o.width + M - r.x)) + "px";
1460
+ const { pageX: C, pageY: y } = g.touches?.[0] ?? g;
1461
+ t.vertical ? l.value.style.height = Math.min(n.height - i.height - (o.y - n.y), Math.max(0, o.height + y - r.y)) + "px" : l.value.style.width = Math.min(n.width - i.width - (o.x - n.x), Math.max(0, o.width + C - r.x)) + "px";
1462
1462
  }
1463
1463
  }, b = (g) => {
1464
1464
  g.preventDefault(), g.currentTarget.focus(), v = !0;
1465
- const { pageX: M, pageY: y } = g.touches?.[0] ?? g;
1466
- r = { x: M, y }, i = s.value.getBoundingClientRect(), o = l.value.getBoundingClientRect(), n = l.value.parentElement.getBoundingClientRect(), g.type === "mousedown" ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", w)) : (document.addEventListener("touchmove", f), document.addEventListener("touchend", w)), a("dragStart");
1465
+ const { pageX: C, pageY: y } = g.touches?.[0] ?? g;
1466
+ r = { x: C, y }, i = s.value.getBoundingClientRect(), o = l.value.getBoundingClientRect(), n = l.value.parentElement.getBoundingClientRect(), g.type === "mousedown" ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", w)) : (document.addEventListener("touchmove", f), document.addEventListener("touchend", w)), a("dragStart");
1467
1467
  }, w = (g) => {
1468
1468
  v && (v = !1, g.type === "mouseup" ? (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", w)) : (document.removeEventListener("touchmove", f), document.removeEventListener("touchend", w)), setTimeout(() => a("dragStop"), 0));
1469
1469
  };
1470
- return (g, M) => (d(), m("div", {
1470
+ return (g, C) => (d(), m("div", {
1471
1471
  ref_key: "box",
1472
1472
  ref: l,
1473
1473
  class: "relative"
@@ -1491,7 +1491,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1491
1491
  ], 16)
1492
1492
  ], 512));
1493
1493
  }
1494
- }, dl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], cl = ["id"], vl = ["id", "aria-label"], El = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1494
+ }, dl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], cl = ["id"], vl = ["id", "aria-label"], Fl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
1495
1495
  __name: "Slider",
1496
1496
  props: /* @__PURE__ */ Z({
1497
1497
  min: { type: Number, default: 0 },
@@ -1527,18 +1527,18 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1527
1527
  }), g = ($) => {
1528
1528
  let D = parseFloat($.toFixed(10));
1529
1529
  D = Math.min(t.max, Math.max(t.min, D)), a.value instanceof Array ? a.value[i.value] = D : a.value = D;
1530
- }, M = ($) => {
1530
+ }, C = ($) => {
1531
1531
  const { pageX: D, pageY: p } = $.touches ? $.touches[0] : $, h = t.vertical ? (-p + v.y) / r.h : (D - v.x) / r.w;
1532
1532
  g(Math.floor((t.max - t.min) * h + t.min));
1533
1533
  }, y = () => {
1534
1534
  const { clientLeft: $, clientTop: D, scrollLeft: p, scrollTop: h } = document.documentElement, x = n.value.getBoundingClientRect();
1535
1535
  v.x = x.left + p - $, v.y = x.bottom + h - D, r.w = n.value.offsetWidth, r.h = n.value.offsetHeight;
1536
- }, C = ($) => {
1537
- o && ($.preventDefault(), M($));
1536
+ }, M = ($) => {
1537
+ o && ($.preventDefault(), C($));
1538
1538
  }, V = ($) => {
1539
- $.preventDefault(), $.currentTarget.focus(), y(), o = !0, $.type === "mousedown" ? (document.addEventListener("mousemove", C), document.addEventListener("mouseup", E)) : (document.addEventListener("touchmove", C), document.addEventListener("touchend", E)), l("dragStart");
1540
- }, E = ($) => {
1541
- o && (o = !1, $.type === "mouseup" ? (document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", E)) : (document.removeEventListener("touchmove", C), document.removeEventListener("touchend", E)), setTimeout(() => l("dragStop"), 0));
1539
+ $.preventDefault(), $.currentTarget.focus(), y(), o = !0, $.type === "mousedown" ? (document.addEventListener("mousemove", M), document.addEventListener("mouseup", F)) : (document.addEventListener("touchmove", M), document.addEventListener("touchend", F)), l("dragStart");
1540
+ }, F = ($) => {
1541
+ o && (o = !1, $.type === "mouseup" ? (document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", F)) : (document.removeEventListener("touchmove", M), document.removeEventListener("touchend", F)), setTimeout(() => l("dragStop"), 0));
1542
1542
  }, G = ($) => {
1543
1543
  $.keyCode >= 33 && $.keyCode <= 40 && $.preventDefault();
1544
1544
  const D = a.value[i.value] ?? a.value;
@@ -1564,7 +1564,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1564
1564
  g(t.max);
1565
1565
  }
1566
1566
  }, q = ($) => {
1567
- y(), M($);
1567
+ y(), C($);
1568
1568
  };
1569
1569
  return ($, D) => (d(), m("div", R({
1570
1570
  ref_key: "track",
@@ -1584,7 +1584,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1584
1584
  class: S(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
1585
1585
  style: Se(b.value)
1586
1586
  }, null, 6)),
1587
- a.value.length ? (d(!0), m(O, { key: 2 }, Y(a.value, (p, h) => (d(), m("button", R({
1587
+ a.value.length ? (d(!0), m(E, { key: 2 }, Y(a.value, (p, h) => (d(), m("button", R({
1588
1588
  id: h ? null : L(s).id,
1589
1589
  style: e.vertical ? { bottom: f.value[h] + "%" } : { left: f.value[h] + "%" },
1590
1590
  "aria-label": "slider-thumb-" + (h + 1)
@@ -1597,8 +1597,8 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1597
1597
  mousedown: (x) => {
1598
1598
  i.value = h, V(x);
1599
1599
  },
1600
- touchend: E,
1601
- mouseup: E
1600
+ touchend: F,
1601
+ mouseup: F
1602
1602
  }, !0)), null, 16, vl))), 256)) : (d(), m("button", R({
1603
1603
  key: 1,
1604
1604
  id: L(s).id,
@@ -1613,12 +1613,12 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1613
1613
  mousedown: (p) => {
1614
1614
  i.value = 0, V(p);
1615
1615
  },
1616
- touchend: E,
1617
- mouseup: E
1616
+ touchend: F,
1617
+ mouseup: F
1618
1618
  }, !0)), null, 16, cl))
1619
1619
  ], 16, dl));
1620
1620
  }
1621
- }), fl = ["data-active", "onClick"], ml = { class: "flex items-center space-x-1" }, hl = ["data-active"], Fl = {
1621
+ }), fl = ["data-active", "onClick"], ml = { class: "flex items-center space-x-1" }, hl = ["data-active"], Nl = {
1622
1622
  __name: "Sortable",
1623
1623
  props: {
1624
1624
  columns: {
@@ -1656,7 +1656,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1656
1656
  class: S(e.headerClass)
1657
1657
  }, [
1658
1658
  c("tr", null, [
1659
- (d(!0), m(O, null, Y(e.columns, (i) => (d(), m("th", {
1659
+ (d(!0), m(E, null, Y(e.columns, (i) => (d(), m("th", {
1660
1660
  key: i.prop,
1661
1661
  scope: "col",
1662
1662
  "data-active": l.value === i.prop ? "active" : null,
@@ -1686,11 +1686,11 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1686
1686
  c("tbody", {
1687
1687
  class: S(e.bodyClass)
1688
1688
  }, [
1689
- (d(!0), m(O, null, Y(v.value, (i) => (d(), m("tr", {
1689
+ (d(!0), m(E, null, Y(v.value, (i) => (d(), m("tr", {
1690
1690
  key: i[e.keyProperty],
1691
1691
  class: S(i.cssClass)
1692
1692
  }, [
1693
- (d(!0), m(O, null, Y(e.columns, (f) => (d(), m("td", {
1693
+ (d(!0), m(E, null, Y(e.columns, (f) => (d(), m("td", {
1694
1694
  key: f.prop,
1695
1695
  "data-active": l.value === f.prop ? "active" : null,
1696
1696
  class: "overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis"
@@ -1722,13 +1722,13 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1722
1722
  }, [
1723
1723
  T(a.$slots, "default", {}, void 0, !0)
1724
1724
  ], 10, gl),
1725
- e.busy ? (d(), H(Ce, {
1725
+ e.busy ? (d(), H(Me, {
1726
1726
  key: 0,
1727
1727
  class: S(e.spinnerClass || ["size-5", { error: "text-error", success: "text-success", default: "text-vxvue" }[e.theme || "default"]])
1728
1728
  }, null, 8, ["class"])) : B("", !0)
1729
1729
  ]));
1730
1730
  }
1731
- }), _l = /* @__PURE__ */ Me(bl, [["__scopeId", "data-v-646b7a90"]]), xl = { class: "sm:hidden" }, yl = { class: "hidden sm:block" }, wl = { class: "border-b border-gray-200" }, kl = {
1731
+ }), _l = /* @__PURE__ */ Ce(bl, [["__scopeId", "data-v-646b7a90"]]), xl = { class: "sm:hidden" }, yl = { class: "hidden sm:block" }, wl = { class: "border-b border-gray-200" }, kl = {
1732
1732
  class: "flex -mb-px space-x-8",
1733
1733
  "aria-label": "Tabs"
1734
1734
  }, $l = ["aria-current", "onClick"], jl = {
@@ -1751,9 +1751,9 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1751
1751
  const v = (r) => {
1752
1752
  r.disabled || (l.value = r, a("update:activeIndex", t.items.indexOf(r)));
1753
1753
  };
1754
- return (r, o) => (d(), m(O, null, [
1754
+ return (r, o) => (d(), m(E, null, [
1755
1755
  c("div", xl, [
1756
- _(Ot, {
1756
+ _(Et, {
1757
1757
  options: s.value,
1758
1758
  "model-value": e.activeIndex,
1759
1759
  class: "w-full",
@@ -1763,7 +1763,7 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1763
1763
  c("div", yl, [
1764
1764
  c("div", wl, [
1765
1765
  c("nav", kl, [
1766
- (d(!0), m(O, null, Y(e.items, (n) => (d(), m("a", {
1766
+ (d(!0), m(E, null, Y(e.items, (n) => (d(), m("a", {
1767
1767
  key: n.name,
1768
1768
  href: "#",
1769
1769
  class: S([
@@ -1824,30 +1824,31 @@ const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inh
1824
1824
  }
1825
1825
  },
1826
1826
  updated: (e, u) => {
1827
- const t = e.parentNode.querySelector("label"), a = e.getAttribute("placeholder")?.trim();
1827
+ const t = e.parentNode.querySelector("label");
1828
+ if (!t) return;
1829
+ const a = e.getAttribute("placeholder")?.trim();
1828
1830
  t.innerHTML = u.value?.label || a || t.innerHTML, a && e.setAttribute("placeholder", " "), u.value?.invalid ? (t.classList.add("text-error", "peer-focus:text-error"), t.classList.remove("peer-focus:text-blue-600")) : (t.classList.remove("text-error", "peer-focus:text-error"), t.classList.add("peer-focus:text-blue-600")), t.classList[e.getAttribute("required") !== null ? "add" : "remove"]("required");
1829
- },
1830
- beforeUnmount: (e) => e.parentNode.parentNode.removeChild(e.parentNode)
1831
+ }
1831
1832
  };
1832
1833
  export {
1833
- Cl as Accordion,
1834
- Ml as AccordionPanel,
1834
+ Ml as Accordion,
1835
+ Cl as AccordionPanel,
1835
1836
  Dl as Autocomplete,
1836
1837
  Al as Confirm,
1837
1838
  St as DateInput,
1838
1839
  Ll as Datepicker,
1839
1840
  Tl as FormFileButton,
1840
- Ot as FormSelect,
1841
+ Et as FormSelect,
1841
1842
  Vl as FormSwitch,
1842
1843
  zl as MessageToast,
1843
1844
  Pl as Modal,
1844
1845
  Bl as Pagination,
1845
1846
  Il as PasswordInput,
1846
- Nl as SimpleTree,
1847
- Ol as Sizable,
1848
- El as Slider,
1849
- Fl as Sortable,
1850
- Ce as Spinner,
1847
+ Ol as SimpleTree,
1848
+ El as Sizable,
1849
+ Fl as Slider,
1850
+ Nl as Sortable,
1851
+ Me as Spinner,
1851
1852
  _l as SubmitButton,
1852
1853
  jl as Tabs,
1853
1854
  Rl as VFloatingLabel,