@quidgest/ui 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/ui.css +22 -0
  2. package/dist/ui.esm.js +336 -320
  3. package/dist/ui.js +5 -5
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +55 -55
  6. package/dist/ui.scss +23 -1
  7. package/esm/components/QButton/QButton.d.ts.map +1 -1
  8. package/esm/components/QButton/index.d.ts +1 -1
  9. package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
  10. package/esm/components/QButtonGroup/index.d.ts +1 -1
  11. package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
  12. package/esm/components/QButtonToggle/index.d.ts +1 -1
  13. package/esm/components/QCombobox/QCombobox.d.ts +4 -4
  14. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  15. package/esm/components/QCombobox/index.d.ts +1 -1
  16. package/esm/components/QField/QField.d.ts.map +1 -1
  17. package/esm/components/QField/index.d.ts +1 -1
  18. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  19. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  20. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  21. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  22. package/esm/components/QIcon/index.d.ts +4 -4
  23. package/esm/components/QInputGroup/QInputGroup.d.ts +1 -1
  24. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  25. package/esm/components/QInputGroup/index.d.ts +1 -1
  26. package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
  27. package/esm/components/QLineLoader/index.d.ts +1 -1
  28. package/esm/components/QList/QList.d.ts +1 -1
  29. package/esm/components/QList/QList.d.ts.map +1 -1
  30. package/esm/components/QList/QList.vue.js +16 -15
  31. package/esm/components/QList/QListItem.d.ts +8 -1
  32. package/esm/components/QList/QListItem.d.ts.map +1 -1
  33. package/esm/components/QList/QListItem.vue.js +62 -35
  34. package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
  35. package/esm/components/QList/index.d.ts +3 -3
  36. package/esm/components/QOverlay/QOverlay.d.ts +1 -1
  37. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  38. package/esm/components/QOverlay/index.d.ts +1 -1
  39. package/esm/components/QPopover/QPopover.d.ts +1 -1
  40. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  41. package/esm/components/QPopover/index.d.ts +1 -1
  42. package/esm/components/QSelect/QSelect.d.ts +3 -3
  43. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  44. package/esm/components/QSelect/index.d.ts +1 -1
  45. package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
  46. package/esm/components/QSkeletonLoader/index.d.ts +1 -1
  47. package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
  48. package/esm/components/QSpinnerLoader/index.d.ts +1 -1
  49. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  50. package/esm/components/QTextField/index.d.ts +1 -1
  51. package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
  52. package/esm/components/QThemeProvider/index.d.ts +1 -1
  53. package/esm/components/QTooltip/QTooltip.d.ts +1 -1
  54. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  55. package/esm/components/QTooltip/index.d.ts +1 -1
  56. package/esm/framework.d.ts +2 -2
  57. package/package.json +16 -15
package/dist/ui.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, computed as k, openBlock as u, createElementBlock as m, normalizeClass as V, normalizeStyle as ie, ref as B, provide as We, inject as Re, getCurrentInstance as Xe, withModifiers as ue, createVNode as z, unref as b, createCommentVNode as q, createElementVNode as le, Fragment as ae, createTextVNode as he, toDisplayString as R, renderSlot as h, toRef as Pe, mergeModels as X, useModel as oe, createBlock as E, withCtx as w, renderList as Le, resolveDynamicComponent as Ye, h as Ue, normalizeProps as se, mergeProps as ce, reactive as Ne, watch as j, nextTick as G, onMounted as Ze, onBeforeUnmount as lt, Teleport as at, Transition as st, withKeys as it, createSlots as Ie, withDirectives as rt, vModelDynamic as dt, guardReactiveProps as fe } from "vue";
1
+ import { defineComponent as L, computed as k, openBlock as u, createElementBlock as m, normalizeClass as V, normalizeStyle as ie, ref as B, provide as We, inject as Re, getCurrentInstance as Xe, withModifiers as ce, createVNode as z, unref as y, createCommentVNode as q, createElementVNode as H, Fragment as se, createTextVNode as he, toDisplayString as j, renderSlot as h, toRef as Pe, mergeModels as Y, useModel as ne, createBlock as E, withCtx as w, renderList as Le, resolveDynamicComponent as Ye, h as Ue, normalizeProps as ae, mergeProps as fe, guardReactiveProps as re, reactive as Ne, watch as R, nextTick as X, onMounted as Ze, onBeforeUnmount as lt, Teleport as at, Transition as st, withKeys as it, createSlots as Ie, withDirectives as rt, vModelDynamic as dt } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.12.0
3
+ * Quidgest UI v0.12.1
4
4
  * (c) 2024 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
@@ -66,7 +66,7 @@ const Se = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
71
  defaultDarkColorScheme: Je,
72
72
  defaultLightColorScheme: Se
@@ -141,7 +141,7 @@ function ct(t, o) {
141
141
  const e = ot(o);
142
142
  return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
143
143
  }
144
- function Y(t) {
144
+ function Z(t) {
145
145
  const o = t.setup;
146
146
  return o && (t.setup = (e, n) => {
147
147
  const l = ut();
@@ -160,7 +160,7 @@ function Y(t) {
160
160
  return o(i, n);
161
161
  }), t;
162
162
  }
163
- Y(be);
163
+ Z(be);
164
164
  const ft = ["disabled"], pt = {
165
165
  key: 0,
166
166
  class: "q-btn__spinner"
@@ -205,18 +205,18 @@ const ft = ["disabled"], pt = {
205
205
  type: "button",
206
206
  class: V(i.value),
207
207
  disabled: l.value,
208
- onClick: ue(s, ["stop", "prevent"])
208
+ onClick: ce(s, ["stop", "prevent"])
209
209
  }, [
210
210
  a.loading ? (u(), m("div", pt, [
211
- z(b(be), { size: 20 })
211
+ z(y(be), { size: 20 })
212
212
  ])) : q("", !0),
213
- le("span", mt, [
214
- a.iconOnRight ? (u(), m(ae, { key: 0 }, [
215
- he(R(e.label), 1)
213
+ H("span", mt, [
214
+ a.iconOnRight ? (u(), m(se, { key: 0 }, [
215
+ he(j(e.label), 1)
216
216
  ], 64)) : q("", !0),
217
217
  h(a.$slots, "default"),
218
- a.iconOnRight ? q("", !0) : (u(), m(ae, { key: 1 }, [
219
- he(R(e.label), 1)
218
+ a.iconOnRight ? q("", !0) : (u(), m(se, { key: 1 }, [
219
+ he(j(e.label), 1)
220
220
  ], 64))
221
221
  ])
222
222
  ], 10, ft));
@@ -252,7 +252,7 @@ const ft = ["disabled"], pt = {
252
252
  }
253
253
  }), vt = /* @__PURE__ */ L({
254
254
  __name: "QButtonToggle",
255
- props: /* @__PURE__ */ X({
255
+ props: /* @__PURE__ */ Y({
256
256
  options: {},
257
257
  disabled: { type: Boolean },
258
258
  borderless: { type: Boolean },
@@ -265,11 +265,11 @@ const ft = ["disabled"], pt = {
265
265
  }),
266
266
  emits: ["update:modelValue"],
267
267
  setup(t) {
268
- const o = t, e = oe(t, "modelValue");
268
+ const o = t, e = ne(t, "modelValue");
269
269
  function n(l) {
270
270
  e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
271
271
  }
272
- return (l, s) => (u(), E(b(nt), {
272
+ return (l, s) => (u(), E(y(nt), {
273
273
  "b-style": "secondary",
274
274
  class: V(o.class),
275
275
  disabled: o.disabled,
@@ -277,7 +277,7 @@ const ft = ["disabled"], pt = {
277
277
  elevated: o.elevated
278
278
  }, {
279
279
  default: w(() => [
280
- (u(!0), m(ae, null, Le(o.options, (i) => (u(), E(b(pe), {
280
+ (u(!0), m(se, null, Le(o.options, (i) => (u(), E(y(pe), {
281
281
  key: i.key,
282
282
  title: i.title,
283
283
  label: i.label,
@@ -293,7 +293,7 @@ const ft = ["disabled"], pt = {
293
293
  _: 3
294
294
  }, 8, ["class", "disabled", "borderless", "elevated"]));
295
295
  }
296
- }), W = /* @__PURE__ */ L({
296
+ }), K = /* @__PURE__ */ L({
297
297
  __name: "QIcon",
298
298
  props: {
299
299
  icon: {},
@@ -509,7 +509,7 @@ const De = /* @__PURE__ */ L({
509
509
  function i() {
510
510
  n("unloaded");
511
511
  }
512
- return (a, c) => (u(), E(b(yt), {
512
+ return (a, c) => (u(), E(y(yt), {
513
513
  class: V(["q-icon", "q-icon__svg", e.class]),
514
514
  src: e.bundle,
515
515
  symbol: e.icon,
@@ -519,13 +519,13 @@ const De = /* @__PURE__ */ L({
519
519
  }, null, 8, ["class", "src", "symbol", "style"]));
520
520
  }
521
521
  });
522
- Y(W);
523
- Y(Te);
524
- Y(Ee);
525
- Y(De);
522
+ Z(K);
523
+ Z(Te);
524
+ Z(Ee);
525
+ Z(De);
526
526
  const xe = /* @__PURE__ */ L({
527
527
  __name: "QList",
528
- props: /* @__PURE__ */ X({
528
+ props: /* @__PURE__ */ Y({
529
529
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
530
530
  items: {},
531
531
  groups: { default: () => [] },
@@ -541,7 +541,7 @@ const xe = /* @__PURE__ */ L({
541
541
  }),
542
542
  emits: ["update:modelValue"],
543
543
  setup(t, { expose: o }) {
544
- const e = t, n = oe(t, "modelValue"), l = B(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
544
+ const e = t, n = ne(t, "modelValue"), l = B(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
545
545
  (f) => e.items.some((g) => g.group === f.id)
546
546
  ) : [{ id: "", title: "" }]), a = B(null);
547
547
  function c(f) {
@@ -601,10 +601,10 @@ const xe = /* @__PURE__ */ L({
601
601
  const f = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
602
602
  return f ? Array.from(f) : [];
603
603
  }
604
- function H(f) {
604
+ function G(f) {
605
605
  return S()[f];
606
606
  }
607
- function Z() {
607
+ function J() {
608
608
  return S().indexOf(document.activeElement);
609
609
  }
610
610
  function N() {
@@ -615,20 +615,20 @@ const xe = /* @__PURE__ */ L({
615
615
  const f = S(), g = [...f].reverse().find((d) => D(d));
616
616
  return g ? f.indexOf(g) : -1;
617
617
  }
618
- function J(f, g, d) {
618
+ function ee(f, g, d) {
619
619
  return g === "prev" && f === 0 || g === "next" && f === d.length - 1;
620
620
  }
621
621
  function O(f) {
622
- const g = Z();
623
- return ee(g, f);
622
+ const g = J();
623
+ return te(g, f);
624
624
  }
625
- function ee(f, g) {
625
+ function te(f, g) {
626
626
  const d = S();
627
- if (J(f, g, d))
627
+ if (ee(f, g, d))
628
628
  return f;
629
629
  let p = f + (g === "next" ? 1 : -1);
630
630
  for (; !D(d[p]); ) {
631
- if (J(p, g, d))
631
+ if (ee(p, g, d))
632
632
  return f;
633
633
  p += g === "next" ? 1 : -1;
634
634
  }
@@ -637,13 +637,13 @@ const xe = /* @__PURE__ */ L({
637
637
  function D(f) {
638
638
  return f.tabIndex === -2;
639
639
  }
640
- function K(f) {
640
+ function W(f) {
641
641
  return f ? e.items.filter((g) => g.group === f) : e.items;
642
642
  }
643
643
  return o({
644
644
  focusItem: I,
645
- getItem: H,
646
- getAdjacentItemIndex: ee,
645
+ getItem: G,
646
+ getAdjacentItemIndex: te,
647
647
  getFirstFocusableItemIndex: N,
648
648
  getLastFocusableItemIndex: Q
649
649
  }), (f, g) => (u(), E(Ye(s.value), {
@@ -658,16 +658,17 @@ const xe = /* @__PURE__ */ L({
658
658
  onKeydown: A
659
659
  }, {
660
660
  default: w(() => [
661
- (u(!0), m(ae, null, Le(i.value, (d) => (u(), E(b(ze), {
661
+ (u(!0), m(se, null, Le(i.value, (d) => (u(), E(y(ze), {
662
662
  key: d.id,
663
663
  id: d.id,
664
664
  title: i.value.length === 1 ? void 0 : d.title
665
665
  }, {
666
666
  default: w(() => [
667
- (u(!0), m(ae, null, Le(K(d.id), (p) => (u(), E(b(Ae), {
667
+ (u(!0), m(se, null, Le(W(d.id), (p) => (u(), E(y(Ae), {
668
668
  key: p[e.itemValue],
669
669
  value: p[e.itemValue],
670
670
  label: p[e.itemLabel],
671
+ description: p.description,
671
672
  icon: p.icon,
672
673
  disabled: e.disabled || d.disabled || p.disabled,
673
674
  highlighted: e.highlighted === p[e.itemValue],
@@ -678,7 +679,7 @@ const xe = /* @__PURE__ */ L({
678
679
  h(f.$slots, "item", { item: p })
679
680
  ]),
680
681
  _: 2
681
- }, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
682
+ }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
682
683
  ]),
683
684
  _: 2
684
685
  }, 1032, ["id", "title"]))), 128))
@@ -691,9 +692,15 @@ let _t = 0;
691
692
  function ge(t) {
692
693
  return t || `uid-${++_t}`;
693
694
  }
694
- const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = { class: "q-list-item__check-container" }, $t = {
695
+ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = { class: "q-list-item__container" }, $t = { class: "q-list-item__content" }, qt = {
696
+ key: 0,
697
+ class: "q-list-item__description"
698
+ }, It = { class: "q-list-item__check-container" }, xt = {
695
699
  check: {
696
700
  icon: "check"
701
+ },
702
+ description: {
703
+ icon: "information-outline"
697
704
  }
698
705
  }, Ae = /* @__PURE__ */ L({
699
706
  __name: "QListItem",
@@ -703,8 +710,9 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
703
710
  icon: { default: void 0 },
704
711
  selected: { type: Boolean },
705
712
  highlighted: { type: Boolean },
706
- icons: { default: () => $t },
707
- disabled: { type: Boolean }
713
+ icons: { default: () => xt },
714
+ disabled: { type: Boolean },
715
+ description: { default: void 0 }
708
716
  },
709
717
  emits: ["select"],
710
718
  setup(t, { emit: o }) {
@@ -716,7 +724,7 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
716
724
  a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
717
725
  }
718
726
  return (a, c) => (u(), m("li", {
719
- id: b(l),
727
+ id: y(l),
720
728
  "data-key": e.value,
721
729
  role: "option",
722
730
  tabindex: e.disabled ? void 0 : -2,
@@ -731,18 +739,26 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
731
739
  "aria-label": e.label,
732
740
  "aria-selected": e.disabled ? void 0 : e.selected,
733
741
  onKeydown: i,
734
- onClick: ue(s, ["stop", "prevent"])
742
+ onClick: ce(s, ["stop", "prevent"])
735
743
  }, [
736
- h(a.$slots, "default", {}, () => [
737
- e.icon ? (u(), E(b(W), se(ce({ key: 0 }, e.icon)), null, 16)) : q("", !0),
738
- he(" " + R(e.label), 1)
744
+ H("div", wt, [
745
+ H("div", $t, [
746
+ h(a.$slots, "default", {}, () => [
747
+ e.icon ? (u(), E(y(K), ae(fe({ key: 0 }, e.icon)), null, 16)) : q("", !0),
748
+ he(" " + j(e.label), 1)
749
+ ])
750
+ ]),
751
+ e.description ? (u(), m("div", qt, [
752
+ z(y(K), ae(re(e.icons.description)), null, 16),
753
+ H("span", null, j(e.description), 1)
754
+ ])) : q("", !0)
739
755
  ]),
740
- le("div", wt, [
741
- e.selected ? (u(), E(b(W), ce({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
756
+ H("div", It, [
757
+ e.selected ? (u(), E(y(K), fe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
742
758
  ])
743
759
  ], 42, kt));
744
760
  }
745
- }), qt = ["data-key", "aria-labelledby"], It = ["id"], ze = /* @__PURE__ */ L({
761
+ }), Lt = ["data-key", "aria-labelledby"], St = ["id"], ze = /* @__PURE__ */ L({
746
762
  __name: "QListItemGroup",
747
763
  props: {
748
764
  id: {},
@@ -754,33 +770,33 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
754
770
  class: "q-list-item-group",
755
771
  role: "group",
756
772
  "data-key": o.id,
757
- "aria-labelledby": o.title ? b(e) : void 0
773
+ "aria-labelledby": o.title ? y(e) : void 0
758
774
  }, [
759
775
  o.title ? (u(), m("li", {
760
776
  key: 0,
761
- id: b(e),
777
+ id: y(e),
762
778
  class: "q-list-item-group__title",
763
779
  role: "presentation"
764
- }, R(o.title), 9, It)) : q("", !0),
780
+ }, j(o.title), 9, St)) : q("", !0),
765
781
  h(n.$slots, "default")
766
- ], 8, qt));
782
+ ], 8, Lt));
767
783
  }
768
784
  });
769
- Y(xe);
770
- Y(Ae);
771
- Y(ze);
785
+ Z(xe);
786
+ Z(Ae);
787
+ Z(ze);
772
788
  const $e = 8;
773
- function xt(t, o, e, n) {
774
- const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Lt(i, a, s, l), $ = Ct(i, a, v), x = Bt($, v, l), A = St(x, a, v);
789
+ function Bt(t, o, e, n) {
790
+ const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Vt(i, a, s, l), $ = Dt(i, a, v), x = Tt($, v, l), A = Ct(x, a, v);
775
791
  let C;
776
792
  if (n != null && n.arrow) {
777
793
  if (!c)
778
794
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
779
- C = Vt(A, i, a, c, v);
795
+ C = Et(A, i, a, c, v);
780
796
  }
781
797
  return { overlayCoords: A, arrowCoords: C, placement: v };
782
798
  }
783
- function Lt(t, o, e, n) {
799
+ function Vt(t, o, e, n) {
784
800
  const l = Ke(t, o, e, n);
785
801
  if (je(l)) {
786
802
  const s = _e(e), a = {
@@ -796,23 +812,23 @@ function Lt(t, o, e, n) {
796
812
  );
797
813
  if (je(c))
798
814
  return e;
799
- const v = Dt(e);
815
+ const v = Qt(e);
800
816
  return v ? `${a}-${v}` : a;
801
817
  }
802
818
  return e;
803
819
  }
804
- function St(t, o, e) {
820
+ function Ct(t, o, e) {
805
821
  const n = qe(e), l = (i, a, c) => Math.min(Math.max(i, a), c), s = { ...t };
806
822
  return n === "x" ? s.x = l(t.x, $e, window.innerWidth - o.width - $e) : s.y = l(t.y, $e, window.innerHeight - o.height - $e), s;
807
823
  }
808
- function Bt(t, o, e) {
824
+ function Tt(t, o, e) {
809
825
  const n = _e(o);
810
826
  return {
811
827
  x: t.x + (n === "left" ? -e : n === "right" ? e : 0),
812
828
  y: t.y + (n === "top" ? -e : n === "bottom" ? e : 0)
813
829
  };
814
830
  }
815
- function Vt(t, o, e, n, l) {
831
+ function Et(t, o, e, n, l) {
816
832
  if (qe(l) === "y") {
817
833
  const i = o.top + o.height / 2, a = t.y + e.height / 2, c = a - i, v = e.height / 2 - c - n.height / 2 + 2;
818
834
  if (v > 0 && v < e.height - n.height)
@@ -827,7 +843,7 @@ function Vt(t, o, e, n, l) {
827
843
  };
828
844
  }
829
845
  }
830
- function Ct(t, o, e) {
846
+ function Dt(t, o, e) {
831
847
  const [n, l] = e.split("-"), s = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2;
832
848
  let a;
833
849
  switch (n) {
@@ -882,34 +898,34 @@ function Ke(t, o, e, n) {
882
898
  }
883
899
  return s;
884
900
  }
885
- function Tt(t) {
901
+ function At(t) {
886
902
  return t === "x" ? "y" : "x";
887
903
  }
888
- function Et(t) {
904
+ function zt(t) {
889
905
  const o = _e(t);
890
906
  return ["left", "right"].includes(o) ? "x" : "y";
891
907
  }
892
908
  function qe(t) {
893
- return Tt(Et(t));
909
+ return At(zt(t));
894
910
  }
895
911
  function _e(t) {
896
912
  const [o] = t.split("-");
897
913
  return o;
898
914
  }
899
- function Dt(t) {
915
+ function Qt(t) {
900
916
  const [, o] = t.split("-");
901
917
  return o;
902
918
  }
903
919
  function je(t) {
904
920
  return t < 0;
905
921
  }
906
- function At(t) {
922
+ function Mt(t) {
907
923
  return typeof t == "string" ? document.querySelector(t) : t;
908
924
  }
909
- const zt = ["role"], me = /* @__PURE__ */ L({
925
+ const Ft = ["role"], me = /* @__PURE__ */ L({
910
926
  inheritAttrs: !1,
911
927
  __name: "QOverlay",
912
- props: /* @__PURE__ */ X({
928
+ props: /* @__PURE__ */ Y({
913
929
  anchor: { default: void 0 },
914
930
  appearance: { default: "regular" },
915
931
  arrow: { type: Boolean },
@@ -931,9 +947,9 @@ const zt = ["role"], me = /* @__PURE__ */ L({
931
947
  modelValue: { type: Boolean },
932
948
  modelModifiers: {}
933
949
  }),
934
- emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
950
+ emits: /* @__PURE__ */ Y(["enter", "leave"], ["update:modelValue"]),
935
951
  setup(t, { emit: o }) {
936
- const e = t, n = o, l = oe(t, "modelValue"), s = k(() => [
952
+ const e = t, n = o, l = ne(t, "modelValue"), s = k(() => [
937
953
  "q-overlay",
938
954
  `q-overlay--${_e(a.placement)}`,
939
955
  {
@@ -952,11 +968,11 @@ const zt = ["role"], me = /* @__PURE__ */ L({
952
968
  left: void 0,
953
969
  hidden: !0
954
970
  }), v = k(() => a.top !== 0 && a.left !== 0);
955
- j(l, () => a.animating = !0);
971
+ R(l, () => a.animating = !0);
956
972
  const $ = k(() => {
957
973
  if (e.anchor === void 0)
958
974
  return;
959
- const y = D(), re = e.width === "anchor", U = re ? y == null ? void 0 : y.getBoundingClientRect().width : void 0;
975
+ const b = D(), de = e.width === "anchor", U = de ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
960
976
  return {
961
977
  top: `${a.top}px`,
962
978
  left: `${a.left}px`,
@@ -971,82 +987,82 @@ const zt = ["role"], me = /* @__PURE__ */ L({
971
987
  };
972
988
  }), A = B(null), C = B(null);
973
989
  function I() {
974
- const y = D();
975
- if (!y || !C.value)
990
+ const b = D();
991
+ if (!b || !C.value)
976
992
  return;
977
- const re = {
993
+ const de = {
978
994
  placement: e.placement,
979
995
  width: e.width,
980
996
  offset: e.offset,
981
997
  arrow: e.arrow
982
- }, U = xt(
983
- y,
998
+ }, U = Bt(
999
+ b,
984
1000
  C.value,
985
1001
  (A == null ? void 0 : A.value) ?? void 0,
986
- re
1002
+ de
987
1003
  );
988
1004
  a.left = U.overlayCoords.x, a.top = U.overlayCoords.y, a.placement = U.placement, c.hidden = U.arrowCoords === void 0, U.arrowCoords && (c.top = U.arrowCoords.y, c.left = U.arrowCoords.x);
989
1005
  }
990
- j(
1006
+ R(
991
1007
  () => e.placement,
992
- () => G(I)
1008
+ () => X(I)
993
1009
  );
994
1010
  let S;
995
- function H() {
1011
+ function G() {
996
1012
  N(0);
997
1013
  }
998
- function Z() {
1014
+ function J() {
999
1015
  N(e.delay);
1000
1016
  }
1001
- function N(y) {
1017
+ function N(b) {
1002
1018
  S || (S = window.setTimeout(() => {
1003
1019
  l.value = !0;
1004
- }, y));
1020
+ }, b));
1005
1021
  }
1006
1022
  function Q() {
1007
1023
  if (clearTimeout(S), S = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1008
- const y = D();
1009
- y == null || y.focus();
1024
+ const b = D();
1025
+ b == null || b.focus();
1010
1026
  }
1011
1027
  }
1012
- j(v, () => G(J));
1013
- function J() {
1028
+ R(v, () => X(ee));
1029
+ function ee() {
1014
1030
  n("enter");
1015
1031
  }
1016
1032
  let O;
1017
- function ee() {
1033
+ function te() {
1018
1034
  window.clearTimeout(O), O = window.setTimeout(() => a.animating = !1, 200), n("leave");
1019
1035
  }
1020
1036
  function D() {
1021
- return e.anchor ? At(e.anchor) : null;
1037
+ return e.anchor ? Mt(e.anchor) : null;
1022
1038
  }
1023
- let K;
1039
+ let W;
1024
1040
  function f() {
1025
- const y = D();
1026
- if (y)
1027
- switch (K = new MutationObserver(I), K.observe(y, {
1041
+ const b = D();
1042
+ if (b)
1043
+ switch (W = new MutationObserver(I), W.observe(b, {
1028
1044
  attributes: !1,
1029
1045
  childList: !0,
1030
1046
  characterData: !0,
1031
1047
  subtree: !0
1032
1048
  }), e.trigger) {
1033
1049
  case "click":
1034
- y.addEventListener("click", H);
1050
+ b.addEventListener("click", G);
1035
1051
  break;
1036
1052
  case "hover":
1037
- y.addEventListener("mouseenter", Z), y.addEventListener("mouseleave", Q), y.addEventListener("focusin", H), y.addEventListener("focusout", Q);
1053
+ b.addEventListener("mouseenter", J), b.addEventListener("mouseleave", Q), b.addEventListener("focusin", G), b.addEventListener("focusout", Q);
1038
1054
  break;
1039
1055
  }
1040
1056
  }
1041
1057
  function g() {
1042
- const y = D();
1043
- if (y)
1044
- switch (K == null || K.disconnect(), e.trigger) {
1058
+ const b = D();
1059
+ if (b)
1060
+ switch (W == null || W.disconnect(), e.trigger) {
1045
1061
  case "click":
1046
- y.removeEventListener("click", H);
1062
+ b.removeEventListener("click", G);
1047
1063
  break;
1048
1064
  case "hover":
1049
- y.removeEventListener("mouseenter", Z), y.removeEventListener("mouseleave", Q), y.removeEventListener("focusin", H), y.removeEventListener("focusout", Q);
1065
+ b.removeEventListener("mouseenter", J), b.removeEventListener("mouseleave", Q), b.removeEventListener("focusin", G), b.removeEventListener("focusout", Q);
1050
1066
  break;
1051
1067
  }
1052
1068
  }
@@ -1057,32 +1073,32 @@ const zt = ["role"], me = /* @__PURE__ */ L({
1057
1073
  window.removeEventListener("resize", I), e.scrollLock || window.removeEventListener("scroll", I);
1058
1074
  }
1059
1075
  let M;
1060
- function te() {
1061
- D() ? (I(), M = window.setTimeout(te, 100)) : Q();
1076
+ function oe() {
1077
+ D() ? (I(), M = window.setTimeout(oe, 100)) : Q();
1062
1078
  }
1063
1079
  function P() {
1064
- d(), e.spy ? te() : I(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && G(() => {
1065
- var y;
1066
- return (y = C.value) == null ? void 0 : y.focus();
1080
+ d(), e.spy ? oe() : I(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && X(() => {
1081
+ var b;
1082
+ return (b = C.value) == null ? void 0 : b.focus();
1067
1083
  });
1068
1084
  }
1069
- function ne() {
1085
+ function le() {
1070
1086
  p(), e.spy && (clearTimeout(M), M = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1071
1087
  }
1072
1088
  function we() {
1073
1089
  e.persistent || Q();
1074
1090
  }
1075
1091
  return Ze(() => {
1076
- G(f);
1092
+ X(f);
1077
1093
  }), lt(() => {
1078
- g(), ne();
1079
- }), j(
1094
+ g(), le();
1095
+ }), R(
1080
1096
  l,
1081
- (y) => {
1082
- G(() => y ? P() : ne());
1097
+ (b) => {
1098
+ X(() => b ? P() : le());
1083
1099
  },
1084
1100
  { immediate: !0 }
1085
- ), (y, re) => (u(), E(at, {
1101
+ ), (b, de) => (u(), E(at, {
1086
1102
  disabled: !l.value && !a.animating || e.inline,
1087
1103
  to: e.attach
1088
1104
  }, [
@@ -1096,7 +1112,7 @@ const zt = ["role"], me = /* @__PURE__ */ L({
1096
1112
  z(st, {
1097
1113
  name: e.transition,
1098
1114
  appear: "",
1099
- onLeave: ee
1115
+ onLeave: te
1100
1116
  }, {
1101
1117
  default: w(() => [
1102
1118
  l.value ? (u(), m("div", {
@@ -1104,13 +1120,13 @@ const zt = ["role"], me = /* @__PURE__ */ L({
1104
1120
  class: V(s.value),
1105
1121
  style: ie($.value)
1106
1122
  }, [
1107
- le("div", ce({
1123
+ H("div", fe({
1108
1124
  class: "q-overlay__content",
1109
1125
  ref_key: "overlayRef",
1110
1126
  ref: C,
1111
1127
  tabindex: "-1",
1112
1128
  role: i.value ? "dialog" : void 0
1113
- }, y.$attrs, {
1129
+ }, b.$attrs, {
1114
1130
  onKeydown: it(we, ["escape"]),
1115
1131
  onBlur: we
1116
1132
  }), [
@@ -1122,8 +1138,8 @@ const zt = ["role"], me = /* @__PURE__ */ L({
1122
1138
  class: "q-overlay__arrow",
1123
1139
  style: ie(x.value)
1124
1140
  }, null, 4)) : q("", !0),
1125
- h(y.$slots, "default")
1126
- ], 16, zt)
1141
+ h(b.$slots, "default")
1142
+ ], 16, Ft)
1127
1143
  ], 6)) : q("", !0)
1128
1144
  ]),
1129
1145
  _: 3
@@ -1131,17 +1147,17 @@ const zt = ["role"], me = /* @__PURE__ */ L({
1131
1147
  ], 8, ["disabled", "to"]));
1132
1148
  }
1133
1149
  });
1134
- Y(me);
1135
- const Qt = ["id"], Mt = {
1150
+ Z(me);
1151
+ const Ot = ["id"], Pt = {
1136
1152
  key: 0,
1137
1153
  class: "q-field__label"
1138
- }, Ft = ["for"], Ot = {
1154
+ }, Ut = ["for"], Nt = {
1139
1155
  key: 0,
1140
1156
  class: "q-field__prepend"
1141
- }, Pt = {
1157
+ }, Ht = {
1142
1158
  key: 1,
1143
1159
  class: "q-field__append"
1144
- }, Ut = {
1160
+ }, Kt = {
1145
1161
  key: 1,
1146
1162
  class: "q-field__extras"
1147
1163
  }, ke = /* @__PURE__ */ L({
@@ -1162,7 +1178,7 @@ const Qt = ["id"], Mt = {
1162
1178
  return o({
1163
1179
  fieldRef: l
1164
1180
  }), (i, a) => (u(), m("div", {
1165
- id: b(n),
1181
+ id: y(n),
1166
1182
  class: V([
1167
1183
  "q-field",
1168
1184
  `q-field--${e.size}`,
@@ -1174,39 +1190,39 @@ const Qt = ["id"], Mt = {
1174
1190
  e.class
1175
1191
  ])
1176
1192
  }, [
1177
- e.label ? (u(), m("div", Mt, [
1193
+ e.label ? (u(), m("div", Pt, [
1178
1194
  h(i.$slots, "label.prepend"),
1179
- le("label", {
1195
+ H("label", {
1180
1196
  for: e.for
1181
- }, R(e.label), 9, Ft),
1197
+ }, j(e.label), 9, Ut),
1182
1198
  h(i.$slots, "label.append")
1183
1199
  ])) : q("", !0),
1184
1200
  h(i.$slots, "control", {}, () => [
1185
- le("div", ce({
1201
+ H("div", fe({
1186
1202
  class: "q-field__control",
1187
1203
  ref_key: "fieldRef",
1188
1204
  ref: l
1189
1205
  }, i.$attrs), [
1190
- i.$slots.prepend ? (u(), m("div", Ot, [
1206
+ i.$slots.prepend ? (u(), m("div", Nt, [
1191
1207
  h(i.$slots, "prepend")
1192
1208
  ])) : q("", !0),
1193
1209
  h(i.$slots, "default"),
1194
- i.$slots.append ? (u(), m("div", Pt, [
1210
+ i.$slots.append ? (u(), m("div", Ht, [
1195
1211
  h(i.$slots, "append")
1196
1212
  ])) : q("", !0)
1197
1213
  ], 16)
1198
1214
  ]),
1199
- i.$slots.extras ? (u(), m("div", Ut, [
1215
+ i.$slots.extras ? (u(), m("div", Kt, [
1200
1216
  h(i.$slots, "extras")
1201
1217
  ])) : q("", !0)
1202
- ], 10, Qt));
1218
+ ], 10, Ot));
1203
1219
  }
1204
1220
  });
1205
- Y(ke);
1206
- const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Qe = /* @__PURE__ */ L({
1221
+ Z(ke);
1222
+ const jt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Qe = /* @__PURE__ */ L({
1207
1223
  inheritAttrs: !1,
1208
1224
  __name: "QTextField",
1209
- props: /* @__PURE__ */ X({
1225
+ props: /* @__PURE__ */ Y({
1210
1226
  id: { default: void 0 },
1211
1227
  placeholder: { default: "" },
1212
1228
  label: { default: "" },
@@ -1224,7 +1240,7 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
1224
1240
  }),
1225
1241
  emits: ["update:modelValue"],
1226
1242
  setup(t, { expose: o }) {
1227
- const e = t, n = oe(t, "modelValue"), l = ge(e.id), s = B(null), i = B(null), a = k(
1243
+ const e = t, n = ne(t, "modelValue"), l = ge(e.id), s = B(null), i = B(null), a = k(
1228
1244
  () => e.readonly || e.disabled ? "" : e.placeholder
1229
1245
  );
1230
1246
  return o({
@@ -1233,11 +1249,11 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
1233
1249
  return (c = s.value) == null ? void 0 : c.fieldRef;
1234
1250
  }),
1235
1251
  inputRef: i
1236
- }), (c, v) => (u(), E(b(ke), {
1252
+ }), (c, v) => (u(), E(y(ke), {
1237
1253
  ref_key: "fieldRef",
1238
1254
  ref: s,
1239
1255
  class: V(["q-text-field", e.class]),
1240
- for: b(l),
1256
+ for: y(l),
1241
1257
  label: e.label,
1242
1258
  size: e.size,
1243
1259
  readonly: e.readonly,
@@ -1251,11 +1267,11 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
1251
1267
  h(c.$slots, "label.append")
1252
1268
  ]),
1253
1269
  default: w(() => [
1254
- rt(le("input", ce({
1270
+ rt(H("input", fe({
1255
1271
  "onUpdate:modelValue": v[0] || (v[0] = ($) => n.value = $),
1256
1272
  ref_key: "inputRef",
1257
1273
  ref: i,
1258
- id: b(l),
1274
+ id: y(l),
1259
1275
  class: "q-text-field__input",
1260
1276
  type: e.type,
1261
1277
  role: e.role,
@@ -1264,7 +1280,7 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
1264
1280
  readonly: e.readonly,
1265
1281
  disabled: e.disabled,
1266
1282
  maxlength: e.maxLength
1267
- }, c.$attrs), null, 16, Nt), [
1283
+ }, c.$attrs), null, 16, jt), [
1268
1284
  [dt, n.value]
1269
1285
  ])
1270
1286
  ]),
@@ -1294,25 +1310,25 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
1294
1310
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1295
1311
  }
1296
1312
  });
1297
- Y(Qe);
1298
- const Ht = ["data-key"], Kt = {
1313
+ Z(Qe);
1314
+ const Gt = ["data-key"], Wt = {
1299
1315
  key: 0,
1300
1316
  class: "q-select__loader"
1301
- }, jt = {
1317
+ }, Rt = {
1302
1318
  key: 2,
1303
1319
  class: "q-select__loader"
1304
- }, Gt = {
1320
+ }, Xt = {
1305
1321
  noData: "No data available"
1306
- }, Wt = {
1322
+ }, Yt = {
1307
1323
  chevron: {
1308
1324
  icon: "chevron-down"
1309
1325
  },
1310
1326
  clear: {
1311
1327
  icon: "close"
1312
1328
  }
1313
- }, Rt = /* @__PURE__ */ L({
1329
+ }, Zt = /* @__PURE__ */ L({
1314
1330
  __name: "QCombobox",
1315
- props: /* @__PURE__ */ X({
1331
+ props: /* @__PURE__ */ Y({
1316
1332
  id: { default: void 0 },
1317
1333
  placeholder: { default: "" },
1318
1334
  selectionMode: { default: "automatic" },
@@ -1329,8 +1345,8 @@ const Ht = ["data-key"], Kt = {
1329
1345
  itemLabel: { default: "label" },
1330
1346
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1331
1347
  size: { default: void 0 },
1332
- texts: { default: () => Gt },
1333
- icons: { default: () => Wt },
1348
+ texts: { default: () => Xt },
1349
+ icons: { default: () => Yt },
1334
1350
  class: { default: void 0 }
1335
1351
  }, {
1336
1352
  modelValue: {
@@ -1342,9 +1358,9 @@ const Ht = ["data-key"], Kt = {
1342
1358
  search: { default: "" },
1343
1359
  searchModifiers: {}
1344
1360
  }),
1345
- emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1361
+ emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1346
1362
  setup(t, { expose: o, emit: e }) {
1347
- const n = t, l = e, s = oe(t, "modelValue"), i = oe(t, "open"), a = oe(t, "search"), c = B(void 0), v = B(null), $ = B(null), x = B(null), A = B(null);
1363
+ const n = t, l = e, s = ne(t, "modelValue"), i = ne(t, "open"), a = ne(t, "search"), c = B(void 0), v = B(null), $ = B(null), x = B(null), A = B(null);
1348
1364
  Ze(O);
1349
1365
  const C = k(() => n.clearable && !n.readonly && !n.disabled), I = k(() => {
1350
1366
  var r;
@@ -1354,7 +1370,7 @@ const Ht = ["data-key"], Kt = {
1354
1370
  }), S = k(() => {
1355
1371
  var r;
1356
1372
  return (r = n.items) == null ? void 0 : r.find((_) => _[n.itemValue] === s.value);
1357
- }), H = k(() => S.value === void 0), Z = k(() => {
1373
+ }), G = k(() => S.value === void 0), J = k(() => {
1358
1374
  const r = c.value;
1359
1375
  if (r !== void 0 && I.value[r])
1360
1376
  return I.value[r];
@@ -1368,7 +1384,7 @@ const Ht = ["data-key"], Kt = {
1368
1384
  var r;
1369
1385
  return a.value.length > 0 && a.value !== ((r = S.value) == null ? void 0 : r[n.itemLabel]);
1370
1386
  });
1371
- function J(r) {
1387
+ function ee(r) {
1372
1388
  s.value = r, D();
1373
1389
  }
1374
1390
  function O() {
@@ -1376,22 +1392,22 @@ const Ht = ["data-key"], Kt = {
1376
1392
  const r = ((_ = S.value) == null ? void 0 : _[n.itemLabel]) || "";
1377
1393
  a.value !== r && (a.value = r);
1378
1394
  }
1379
- function ee() {
1380
- i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, ne());
1395
+ function te() {
1396
+ i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, le());
1381
1397
  }
1382
1398
  function D() {
1383
1399
  i.value && (l("before-hide"), i.value = !1, c.value = void 0);
1384
1400
  }
1385
- function K() {
1401
+ function W() {
1386
1402
  i.value ? D() : g();
1387
1403
  }
1388
1404
  function f() {
1389
- C.value && (s.value = n.emptyValue, c.value = void 0, ne());
1405
+ C.value && (s.value = n.emptyValue, c.value = void 0, le());
1390
1406
  }
1391
1407
  function g() {
1392
- if (ee(), S.value !== void 0) {
1408
+ if (te(), S.value !== void 0) {
1393
1409
  const r = I.value.indexOf(S.value);
1394
- r !== -1 && G(() => U(r));
1410
+ r !== -1 && X(() => U(r));
1395
1411
  }
1396
1412
  }
1397
1413
  function d(r) {
@@ -1400,26 +1416,26 @@ const Ht = ["data-key"], Kt = {
1400
1416
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
1401
1417
  O(), i.value && D();
1402
1418
  else if (["ArrowDown", "ArrowUp"].includes(r.key))
1403
- i.value ? G(() => {
1419
+ i.value ? X(() => {
1404
1420
  if (c.value === void 0)
1405
1421
  p();
1406
1422
  else {
1407
1423
  const F = r.key === "ArrowDown" ? "next" : "prev";
1408
- te(c.value, F);
1424
+ oe(c.value, F);
1409
1425
  }
1410
- }) : (ee(), G(() => {
1426
+ }) : (te(), X(() => {
1411
1427
  r.key === "ArrowDown" ? p() : M();
1412
1428
  }));
1413
1429
  else if (r.key === "Enter") {
1414
- if (Z.value === void 0)
1430
+ if (J.value === void 0)
1415
1431
  return;
1416
- J(Z.value[n.itemValue]);
1432
+ ee(J.value[n.itemValue]);
1417
1433
  } else
1418
- r.key === "Home" ? c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex() : r.key === "End" ? c.value = (T = $.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && ee();
1434
+ r.key === "Home" ? c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex() : r.key === "End" ? c.value = (T = $.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && te();
1419
1435
  }
1420
1436
  function p() {
1421
1437
  var r, _;
1422
- if (H.value)
1438
+ if (G.value)
1423
1439
  c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex();
1424
1440
  else {
1425
1441
  const T = I.value.findIndex(
@@ -1432,30 +1448,30 @@ const Ht = ["data-key"], Kt = {
1432
1448
  var r;
1433
1449
  c.value = (r = $.value) == null ? void 0 : r.getLastFocusableItemIndex();
1434
1450
  }
1435
- function te(r, _) {
1451
+ function oe(r, _) {
1436
1452
  var T;
1437
1453
  c.value = (T = $.value) == null ? void 0 : T.getAdjacentItemIndex(r, _);
1438
1454
  }
1439
1455
  function P(r) {
1440
- var de, Me, Fe, Oe;
1441
- const _ = ((de = x == null ? void 0 : x.value) == null ? void 0 : de.$el) === r.relatedTarget, T = (Fe = (Me = v == null ? void 0 : v.value) == null ? void 0 : Me.$el) == null ? void 0 : Fe.contains(r.relatedTarget), F = (Oe = A == null ? void 0 : A.value) == null ? void 0 : Oe.contains(r.relatedTarget);
1456
+ var ue, Me, Fe, Oe;
1457
+ const _ = ((ue = x == null ? void 0 : x.value) == null ? void 0 : ue.$el) === r.relatedTarget, T = (Fe = (Me = v == null ? void 0 : v.value) == null ? void 0 : Me.$el) == null ? void 0 : Fe.contains(r.relatedTarget), F = (Oe = A == null ? void 0 : A.value) == null ? void 0 : Oe.contains(r.relatedTarget);
1442
1458
  if (_ || F || T) {
1443
1459
  r.preventDefault(), r.stopPropagation();
1444
1460
  return;
1445
1461
  }
1446
1462
  D(), C.value && !a.value && (s.value = n.emptyValue), O();
1447
1463
  }
1448
- function ne() {
1464
+ function le() {
1449
1465
  var r, _;
1450
1466
  (_ = (r = v.value) == null ? void 0 : r.inputRef) == null || _.focus();
1451
1467
  }
1452
1468
  function we() {
1453
- ne();
1469
+ le();
1454
1470
  }
1455
- function y() {
1471
+ function b() {
1456
1472
  l("show");
1457
1473
  }
1458
- function re() {
1474
+ function de() {
1459
1475
  l("hide");
1460
1476
  }
1461
1477
  function U(r) {
@@ -1463,30 +1479,30 @@ const Ht = ["data-key"], Kt = {
1463
1479
  const _ = (T = $.value) == null ? void 0 : T.getItem(r);
1464
1480
  $.value && ($.value.$el.scrollTop = _ == null ? void 0 : _.offsetTop);
1465
1481
  }
1466
- return j(s, O), j(
1482
+ return R(s, O), R(
1467
1483
  () => n.items,
1468
1484
  (r, _) => {
1469
- if (!H.value) {
1485
+ if (!G.value) {
1470
1486
  const T = _.find((F) => F[n.itemValue] === s.value);
1471
1487
  a.value === (T == null ? void 0 : T[n.itemLabel]) && O();
1472
1488
  }
1473
1489
  },
1474
1490
  { deep: !0 }
1475
- ), j(c, (r) => {
1491
+ ), R(c, (r) => {
1476
1492
  r !== void 0 && U(r);
1477
- }), j(a, (r) => {
1478
- r && i.value && n.selectionMode === "automatic" && G(p);
1479
- }), j(
1493
+ }), R(a, (r) => {
1494
+ r && i.value && n.selectionMode === "automatic" && X(p);
1495
+ }), R(
1480
1496
  () => n.loading,
1481
1497
  (r) => {
1482
- !r && i.value && G(p);
1498
+ !r && i.value && X(p);
1483
1499
  }
1484
1500
  ), o({
1485
1501
  triggerEl: v
1486
1502
  }), (r, _) => {
1487
1503
  var T;
1488
- return u(), m(ae, null, [
1489
- z(b(Qe), {
1504
+ return u(), m(se, null, [
1505
+ z(y(Qe), {
1490
1506
  modelValue: a.value,
1491
1507
  "onUpdate:modelValue": _[0] || (_[0] = (F) => a.value = F),
1492
1508
  id: n.id,
@@ -1516,7 +1532,7 @@ const Ht = ["data-key"], Kt = {
1516
1532
  size: n.size,
1517
1533
  onClick: g,
1518
1534
  onFocusout: P,
1519
- onKeydown: ue(d, ["stop"])
1535
+ onKeydown: ce(d, ["stop"])
1520
1536
  }, Ie({
1521
1537
  "label.prepend": w(() => [
1522
1538
  h(r.$slots, "label.prepend")
@@ -1526,7 +1542,7 @@ const Ht = ["data-key"], Kt = {
1526
1542
  ]),
1527
1543
  append: w(() => [
1528
1544
  h(r.$slots, "append"),
1529
- C.value && a.value ? (u(), E(b(pe), {
1545
+ C.value && a.value ? (u(), E(y(pe), {
1530
1546
  key: 0,
1531
1547
  class: "q-combobox__clear",
1532
1548
  "b-style": "plain",
@@ -1535,11 +1551,11 @@ const Ht = ["data-key"], Kt = {
1535
1551
  onClick: f
1536
1552
  }, {
1537
1553
  default: w(() => [
1538
- z(b(W), se(fe(n.icons.clear)), null, 16)
1554
+ z(y(K), ae(re(n.icons.clear)), null, 16)
1539
1555
  ]),
1540
1556
  _: 1
1541
1557
  })) : q("", !0),
1542
- n.readonly ? q("", !0) : (u(), E(b(pe), {
1558
+ n.readonly ? q("", !0) : (u(), E(y(pe), {
1543
1559
  key: 1,
1544
1560
  ref_key: "toggleRef",
1545
1561
  ref: x,
@@ -1548,10 +1564,10 @@ const Ht = ["data-key"], Kt = {
1548
1564
  borderless: "",
1549
1565
  tabindex: "-1",
1550
1566
  disabled: n.disabled,
1551
- onMousedown: ue(K, ["stop", "prevent"])
1567
+ onMousedown: ce(W, ["stop", "prevent"])
1552
1568
  }, {
1553
1569
  default: w(() => [
1554
- z(b(W), se(fe(n.icons.chevron)), null, 16)
1570
+ z(y(K), ae(re(n.icons.chevron)), null, 16)
1555
1571
  ]),
1556
1572
  _: 1
1557
1573
  }, 8, ["disabled"]))
@@ -1573,7 +1589,7 @@ const Ht = ["data-key"], Kt = {
1573
1589
  key: "1"
1574
1590
  } : void 0
1575
1591
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1576
- z(b(me), {
1592
+ z(y(me), {
1577
1593
  modelValue: i.value,
1578
1594
  "onUpdate:modelValue": _[2] || (_[2] = (F) => i.value = F),
1579
1595
  spy: "",
@@ -1583,13 +1599,13 @@ const Ht = ["data-key"], Kt = {
1583
1599
  width: "anchor",
1584
1600
  offset: 4,
1585
1601
  anchor: (T = v.value) == null ? void 0 : T.$el,
1586
- onEnter: y,
1587
- onLeave: re
1602
+ onEnter: b,
1603
+ onLeave: de
1588
1604
  }, {
1589
1605
  default: w(() => {
1590
1606
  var F;
1591
1607
  return [
1592
- le("div", {
1608
+ H("div", {
1593
1609
  ref_key: "contentRef",
1594
1610
  ref: A,
1595
1611
  class: "q-select__body",
@@ -1598,32 +1614,32 @@ const Ht = ["data-key"], Kt = {
1598
1614
  onFocusout: P
1599
1615
  }, [
1600
1616
  h(r.$slots, "body.prepend"),
1601
- n.loading ? (u(), m("div", Kt, [
1602
- z(b(be), { size: 24 })
1603
- ])) : I.value.length ? (u(), E(b(xe), {
1617
+ n.loading ? (u(), m("div", Wt, [
1618
+ z(y(be), { size: 24 })
1619
+ ])) : I.value.length ? (u(), E(y(xe), {
1604
1620
  key: 1,
1605
1621
  ref_key: "listRef",
1606
1622
  ref: $,
1607
1623
  class: "q-select__items",
1608
1624
  modelValue: s.value,
1609
1625
  "onUpdate:modelValue": [
1610
- _[1] || (_[1] = (de) => s.value = de),
1611
- J
1626
+ _[1] || (_[1] = (ue) => s.value = ue),
1627
+ ee
1612
1628
  ],
1613
- highlighted: (F = Z.value) == null ? void 0 : F[n.itemValue],
1629
+ highlighted: (F = J.value) == null ? void 0 : F[n.itemValue],
1614
1630
  items: I.value,
1615
1631
  groups: r.groups,
1616
1632
  "item-label": n.itemLabel,
1617
1633
  "item-value": n.itemValue,
1618
1634
  onMouseup: we
1619
1635
  }, {
1620
- item: w(({ item: de }) => [
1621
- h(r.$slots, "item", { item: de })
1636
+ item: w(({ item: ue }) => [
1637
+ h(r.$slots, "item", { item: ue })
1622
1638
  ]),
1623
1639
  _: 3
1624
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", jt, R(r.texts.noData), 1)),
1640
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", Rt, j(r.texts.noData), 1)),
1625
1641
  h(r.$slots, "body.append")
1626
- ], 40, Ht)
1642
+ ], 40, Gt)
1627
1643
  ];
1628
1644
  }),
1629
1645
  _: 3
@@ -1631,13 +1647,13 @@ const Ht = ["data-key"], Kt = {
1631
1647
  ], 64);
1632
1648
  };
1633
1649
  }
1634
- }), Xt = {
1650
+ }), Jt = {
1635
1651
  key: 0,
1636
1652
  class: "q-input-group__prepend"
1637
- }, Yt = { key: 0 }, Zt = {
1653
+ }, eo = { key: 0 }, to = {
1638
1654
  key: 1,
1639
1655
  class: "q-input-group__append"
1640
- }, Jt = { key: 0 }, eo = /* @__PURE__ */ L({
1656
+ }, oo = { key: 0 }, no = /* @__PURE__ */ L({
1641
1657
  __name: "QInputGroup",
1642
1658
  props: {
1643
1659
  id: { default: void 0 },
@@ -1654,7 +1670,7 @@ const Ht = ["data-key"], Kt = {
1654
1670
  QField: {
1655
1671
  size: "block"
1656
1672
  }
1657
- }), (e, n) => (u(), E(b(ke), {
1673
+ }), (e, n) => (u(), E(y(ke), {
1658
1674
  id: o.id,
1659
1675
  class: V(["q-input-group", o.class]),
1660
1676
  label: o.label,
@@ -1662,16 +1678,16 @@ const Ht = ["data-key"], Kt = {
1662
1678
  size: o.size
1663
1679
  }, Ie({
1664
1680
  default: w(() => [
1665
- e.$slots.prepend || o.prependIcon ? (u(), m("div", Xt, [
1666
- o.prependIcon ? (u(), m("span", Yt, [
1667
- z(b(W), se(fe(o.prependIcon)), null, 16)
1681
+ e.$slots.prepend || o.prependIcon ? (u(), m("div", Jt, [
1682
+ o.prependIcon ? (u(), m("span", eo, [
1683
+ z(y(K), ae(re(o.prependIcon)), null, 16)
1668
1684
  ])) : q("", !0),
1669
1685
  h(e.$slots, "prepend")
1670
1686
  ])) : q("", !0),
1671
1687
  h(e.$slots, "default"),
1672
- e.$slots.append || o.appendIcon ? (u(), m("div", Zt, [
1673
- o.appendIcon ? (u(), m("span", Jt, [
1674
- z(b(W), se(fe(o.appendIcon)), null, 16)
1688
+ e.$slots.append || o.appendIcon ? (u(), m("div", to, [
1689
+ o.appendIcon ? (u(), m("span", oo, [
1690
+ z(y(K), ae(re(o.appendIcon)), null, 16)
1675
1691
  ])) : q("", !0),
1676
1692
  h(e.$slots, "append")
1677
1693
  ])) : q("", !0)
@@ -1687,7 +1703,7 @@ const Ht = ["data-key"], Kt = {
1687
1703
  } : void 0
1688
1704
  ]), 1032, ["id", "class", "label", "required", "size"]));
1689
1705
  }
1690
- }), to = /* @__PURE__ */ L({
1706
+ }), lo = /* @__PURE__ */ L({
1691
1707
  __name: "QLineLoader",
1692
1708
  props: {
1693
1709
  class: { default: void 0 }
@@ -1698,16 +1714,16 @@ const Ht = ["data-key"], Kt = {
1698
1714
  class: V(["q-line-loader", o.class])
1699
1715
  }, null, 2));
1700
1716
  }
1701
- }), oo = {
1717
+ }), ao = {
1702
1718
  key: 0,
1703
1719
  class: "q-popover__header"
1704
- }, no = {
1720
+ }, so = {
1705
1721
  key: 1,
1706
1722
  class: "q-popover__body"
1707
- }, lo = ["innerHTML"], ao = { key: 1 }, so = /* @__PURE__ */ L({
1723
+ }, io = ["innerHTML"], ro = { key: 1 }, uo = /* @__PURE__ */ L({
1708
1724
  inheritAttrs: !1,
1709
1725
  __name: "QPopover",
1710
- props: /* @__PURE__ */ X({
1726
+ props: /* @__PURE__ */ Y({
1711
1727
  anchor: {},
1712
1728
  arrow: { type: Boolean, default: !0 },
1713
1729
  attach: { default: "body" },
@@ -1723,8 +1739,8 @@ const Ht = ["data-key"], Kt = {
1723
1739
  }),
1724
1740
  emits: ["update:modelValue"],
1725
1741
  setup(t) {
1726
- const o = t, e = oe(t, "modelValue");
1727
- return (n, l) => (u(), E(b(me), {
1742
+ const o = t, e = ne(t, "modelValue");
1743
+ return (n, l) => (u(), E(y(me), {
1728
1744
  "model-value": e.value,
1729
1745
  class: "q-popover",
1730
1746
  trigger: "click",
@@ -1736,42 +1752,42 @@ const Ht = ["data-key"], Kt = {
1736
1752
  placement: o.placement
1737
1753
  }, {
1738
1754
  default: w(() => [
1739
- o.title || n.$slots.header ? (u(), m("h3", oo, [
1740
- he(R(o.title) + " ", 1),
1755
+ o.title || n.$slots.header ? (u(), m("h3", ao, [
1756
+ he(j(o.title) + " ", 1),
1741
1757
  h(n.$slots, "header")
1742
1758
  ])) : q("", !0),
1743
- o.text || n.$slots.body ? (u(), m("div", no, [
1759
+ o.text || n.$slots.body ? (u(), m("div", so, [
1744
1760
  o.html ? (u(), m("span", {
1745
1761
  key: 0,
1746
1762
  innerHTML: o.text
1747
- }, null, 8, lo)) : (u(), m("span", ao, R(o.text), 1)),
1763
+ }, null, 8, io)) : (u(), m("span", ro, j(o.text), 1)),
1748
1764
  h(n.$slots, "body")
1749
1765
  ])) : q("", !0)
1750
1766
  ]),
1751
1767
  _: 3
1752
1768
  }, 8, ["model-value", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1753
1769
  }
1754
- }), io = {
1770
+ }), co = {
1755
1771
  key: 0,
1756
1772
  class: "q-select__value"
1757
- }, ro = {
1773
+ }, fo = {
1758
1774
  key: 1,
1759
1775
  class: "q-select__placeholder"
1760
- }, uo = ["data-key"], co = {
1776
+ }, po = ["data-key"], mo = {
1761
1777
  key: 0,
1762
1778
  class: "q-select__loader"
1763
- }, fo = {
1779
+ }, vo = {
1764
1780
  placeholder: "Choose..."
1765
- }, po = {
1781
+ }, ho = {
1766
1782
  chevron: {
1767
1783
  icon: "chevron-down"
1768
1784
  },
1769
1785
  clear: {
1770
1786
  icon: "close"
1771
1787
  }
1772
- }, mo = /* @__PURE__ */ L({
1788
+ }, yo = /* @__PURE__ */ L({
1773
1789
  __name: "QSelect",
1774
- props: /* @__PURE__ */ X({
1790
+ props: /* @__PURE__ */ Y({
1775
1791
  id: { default: void 0 },
1776
1792
  label: { default: "" },
1777
1793
  clearable: { type: Boolean },
@@ -1779,14 +1795,14 @@ const Ht = ["data-key"], Kt = {
1779
1795
  disabled: { type: Boolean },
1780
1796
  required: { type: Boolean },
1781
1797
  loading: { type: Boolean },
1782
- icons: { default: () => po },
1798
+ icons: { default: () => ho },
1783
1799
  items: {},
1784
1800
  groups: { default: () => [] },
1785
1801
  itemValue: { default: "key" },
1786
1802
  itemLabel: { default: "label" },
1787
1803
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1788
1804
  size: { default: void 0 },
1789
- texts: { default: () => fo },
1805
+ texts: { default: () => vo },
1790
1806
  class: { default: "" }
1791
1807
  }, {
1792
1808
  modelValue: {
@@ -1794,9 +1810,9 @@ const Ht = ["data-key"], Kt = {
1794
1810
  },
1795
1811
  modelModifiers: {}
1796
1812
  }),
1797
- emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1813
+ emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1798
1814
  setup(t, { emit: o }) {
1799
- const e = t, n = o, l = oe(t, "modelValue"), s = B(!1), i = B(""), a = B(null), c = B(null), v = B(null), $ = k(() => x.value === void 0), x = k(
1815
+ const e = t, n = o, l = ne(t, "modelValue"), s = B(!1), i = B(""), a = B(null), c = B(null), v = B(null), $ = k(() => x.value === void 0), x = k(
1800
1816
  () => {
1801
1817
  var d;
1802
1818
  return (d = e.items) == null ? void 0 : d.find((p) => p[e.itemValue] === l.value);
@@ -1812,23 +1828,23 @@ const Ht = ["data-key"], Kt = {
1812
1828
  function S() {
1813
1829
  C.value && I(e.emptyValue);
1814
1830
  }
1815
- function H(d) {
1816
- var p, M, te;
1817
- !((p = v.value) != null && p.contains(d.relatedTarget)) && !((te = (M = a.value) == null ? void 0 : M.fieldRef) != null && te.contains(d.relatedTarget)) && N();
1831
+ function G(d) {
1832
+ var p, M, oe;
1833
+ !((p = v.value) != null && p.contains(d.relatedTarget)) && !((oe = (M = a.value) == null ? void 0 : M.fieldRef) != null && oe.contains(d.relatedTarget)) && N();
1818
1834
  }
1819
- function Z() {
1835
+ function J() {
1820
1836
  s.value || (n("before-show"), s.value = !0);
1821
1837
  }
1822
1838
  function N() {
1823
1839
  s.value && (n("before-hide"), s.value = !1);
1824
1840
  }
1825
1841
  function Q() {
1826
- e.readonly || e.disabled || (s.value ? N() : Z());
1842
+ e.readonly || e.disabled || (s.value ? N() : J());
1827
1843
  }
1828
- let J;
1844
+ let ee;
1829
1845
  function O(d) {
1830
1846
  if (!(!d.key || e.readonly || e.disabled)) {
1831
- if (window.clearTimeout(J), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : C.value && d.key === "Escape" && S()), d.key === "Delete" && e.clearable && S(), /^[a-z]$/i.test(d.key)) {
1847
+ if (window.clearTimeout(ee), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : C.value && d.key === "Escape" && S()), d.key === "Delete" && e.clearable && S(), /^[a-z]$/i.test(d.key)) {
1832
1848
  i.value += d.key.toLowerCase();
1833
1849
  for (let p = 0; p < e.items.length; p++)
1834
1850
  if (e.items[p][e.itemLabel].toLowerCase().startsWith(i.value)) {
@@ -1836,19 +1852,19 @@ const Ht = ["data-key"], Kt = {
1836
1852
  break;
1837
1853
  }
1838
1854
  }
1839
- J = window.setTimeout(function() {
1855
+ ee = window.setTimeout(function() {
1840
1856
  i.value = "";
1841
1857
  }, 500);
1842
1858
  }
1843
1859
  }
1844
- function ee() {
1860
+ function te() {
1845
1861
  var d;
1846
1862
  e.loading ? (d = v.value) == null || d.focus() : f(), n("show");
1847
1863
  }
1848
1864
  function D() {
1849
- K(), n("hide");
1865
+ W(), n("hide");
1850
1866
  }
1851
- function K() {
1867
+ function W() {
1852
1868
  var d, p;
1853
1869
  (p = (d = a.value) == null ? void 0 : d.fieldRef) == null || p.focus();
1854
1870
  }
@@ -1860,15 +1876,15 @@ const Ht = ["data-key"], Kt = {
1860
1876
  var p;
1861
1877
  (p = c.value) == null || p.focusItem(d);
1862
1878
  }
1863
- return j(
1879
+ return R(
1864
1880
  () => e.loading,
1865
1881
  (d) => {
1866
- !d && s.value && G(f);
1882
+ !d && s.value && X(f);
1867
1883
  }
1868
1884
  ), (d, p) => {
1869
- var M, te;
1870
- return u(), m(ae, null, [
1871
- z(b(ke), {
1885
+ var M, oe;
1886
+ return u(), m(se, null, [
1887
+ z(y(ke), {
1872
1888
  id: e.id,
1873
1889
  label: e.label,
1874
1890
  required: e.required,
@@ -1892,11 +1908,11 @@ const Ht = ["data-key"], Kt = {
1892
1908
  "aria-haspopup": "listbox",
1893
1909
  size: e.size,
1894
1910
  onClick: Q,
1895
- onKeydown: ue(O, ["stop"])
1911
+ onKeydown: ce(O, ["stop"])
1896
1912
  }, Ie({
1897
1913
  append: w(() => [
1898
1914
  h(d.$slots, "append"),
1899
- C.value && l.value ? (u(), E(b(pe), {
1915
+ C.value && l.value ? (u(), E(y(pe), {
1900
1916
  key: 0,
1901
1917
  class: "q-select__clear",
1902
1918
  "b-style": "plain",
@@ -1905,11 +1921,11 @@ const Ht = ["data-key"], Kt = {
1905
1921
  onClick: S
1906
1922
  }, {
1907
1923
  default: w(() => [
1908
- z(b(W), se(fe(e.icons.clear)), null, 16)
1924
+ z(y(K), ae(re(e.icons.clear)), null, 16)
1909
1925
  ]),
1910
1926
  _: 1
1911
1927
  })) : q("", !0),
1912
- e.readonly ? q("", !0) : (u(), E(b(pe), {
1928
+ e.readonly ? q("", !0) : (u(), E(y(pe), {
1913
1929
  key: 1,
1914
1930
  class: "q-select__chevron",
1915
1931
  "b-style": "plain",
@@ -1919,27 +1935,27 @@ const Ht = ["data-key"], Kt = {
1919
1935
  onClick: Q
1920
1936
  }, {
1921
1937
  default: w(() => [
1922
- z(b(W), se(fe(e.icons.chevron)), null, 16)
1938
+ z(y(K), ae(re(e.icons.chevron)), null, 16)
1923
1939
  ]),
1924
1940
  _: 1
1925
1941
  }, 8, ["disabled"]))
1926
1942
  ]),
1927
1943
  default: w(() => [
1928
- $.value ? (u(), m("span", ro, [
1929
- !e.readonly && !e.disabled ? (u(), m(ae, { key: 0 }, [
1930
- he(R(d.texts.placeholder), 1)
1944
+ $.value ? (u(), m("span", fo, [
1945
+ !e.readonly && !e.disabled ? (u(), m(se, { key: 0 }, [
1946
+ he(j(d.texts.placeholder), 1)
1931
1947
  ], 64)) : q("", !0)
1932
- ])) : (u(), m("span", io, R(A.value), 1))
1948
+ ])) : (u(), m("span", co, j(A.value), 1))
1933
1949
  ]),
1934
1950
  _: 2
1935
1951
  }, [
1936
1952
  (M = x.value) != null && M.icon || d.$slots.prepend ? {
1937
1953
  name: "prepend",
1938
1954
  fn: w(() => {
1939
- var P, ne;
1955
+ var P, le;
1940
1956
  return [
1941
1957
  h(d.$slots, "prepend"),
1942
- (P = x.value) != null && P.icon ? (u(), E(b(W), se(ce({ key: 0 }, (ne = x.value) == null ? void 0 : ne.icon)), null, 16)) : q("", !0)
1958
+ (P = x.value) != null && P.icon ? (u(), E(y(K), ae(fe({ key: 0 }, (le = x.value) == null ? void 0 : le.icon)), null, 16)) : q("", !0)
1943
1959
  ];
1944
1960
  }),
1945
1961
  key: "0"
@@ -1952,7 +1968,7 @@ const Ht = ["data-key"], Kt = {
1952
1968
  key: "1"
1953
1969
  } : void 0
1954
1970
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
1955
- z(b(me), {
1971
+ z(y(me), {
1956
1972
  modelValue: s.value,
1957
1973
  "onUpdate:modelValue": p[1] || (p[1] = (P) => s.value = P),
1958
1974
  spy: "",
@@ -1960,26 +1976,26 @@ const Ht = ["data-key"], Kt = {
1960
1976
  placement: "bottom-start",
1961
1977
  width: "anchor",
1962
1978
  "scroll-lock": "",
1963
- anchor: (te = a.value) == null ? void 0 : te.$el,
1979
+ anchor: (oe = a.value) == null ? void 0 : oe.$el,
1964
1980
  offset: 2,
1965
- onEnter: ee,
1981
+ onEnter: te,
1966
1982
  onLeave: D
1967
1983
  }, {
1968
1984
  default: w(() => [
1969
- le("div", {
1985
+ H("div", {
1970
1986
  ref_key: "contentRef",
1971
1987
  ref: v,
1972
1988
  "data-testid": "combobox-dropdown",
1973
1989
  "data-key": e.id,
1974
1990
  class: "q-select__body",
1975
1991
  tabindex: "-1",
1976
- onFocusout: H,
1977
- onKeydown: ue(O, ["stop"])
1992
+ onFocusout: G,
1993
+ onKeydown: ce(O, ["stop"])
1978
1994
  }, [
1979
1995
  h(d.$slots, "body.prepend"),
1980
- e.loading ? (u(), m("div", co, [
1981
- z(b(be), { size: 24 })
1982
- ])) : (u(), E(b(xe), {
1996
+ e.loading ? (u(), m("div", mo, [
1997
+ z(y(be), { size: 24 })
1998
+ ])) : (u(), E(y(xe), {
1983
1999
  key: 1,
1984
2000
  ref_key: "listRef",
1985
2001
  ref: c,
@@ -2000,16 +2016,16 @@ const Ht = ["data-key"], Kt = {
2000
2016
  _: 3
2001
2017
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
2002
2018
  h(d.$slots, "body.append")
2003
- ], 40, uo)
2019
+ ], 40, po)
2004
2020
  ]),
2005
2021
  _: 3
2006
2022
  }, 8, ["modelValue", "anchor"])
2007
2023
  ], 64);
2008
2024
  };
2009
2025
  }
2010
- }), vo = /* @__PURE__ */ le("div", { class: "q-skeleton-loader__bone" }, null, -1), ho = [
2011
- vo
2012
- ], yo = /* @__PURE__ */ L({
2026
+ }), bo = /* @__PURE__ */ H("div", { class: "q-skeleton-loader__bone" }, null, -1), go = [
2027
+ bo
2028
+ ], _o = /* @__PURE__ */ L({
2013
2029
  __name: "QSkeletonLoader",
2014
2030
  props: {
2015
2031
  type: { default: void 0 },
@@ -2027,9 +2043,9 @@ const Ht = ["data-key"], Kt = {
2027
2043
  return (l, s) => (u(), m("div", {
2028
2044
  class: V(["q-skeleton-loader", e.value]),
2029
2045
  style: ie(n.value)
2030
- }, ho, 6));
2046
+ }, go, 6));
2031
2047
  }
2032
- }), bo = /* @__PURE__ */ L({
2048
+ }), ko = /* @__PURE__ */ L({
2033
2049
  __name: "QThemeProvider",
2034
2050
  props: {
2035
2051
  theme: {}
@@ -2042,9 +2058,9 @@ const Ht = ["data-key"], Kt = {
2042
2058
  h(e.$slots, "default")
2043
2059
  ], 2));
2044
2060
  }
2045
- }), go = ["innerHTML"], _o = { key: 1 }, ko = /* @__PURE__ */ L({
2061
+ }), wo = ["innerHTML"], $o = { key: 1 }, qo = /* @__PURE__ */ L({
2046
2062
  __name: "QTooltip",
2047
- props: /* @__PURE__ */ X({
2063
+ props: /* @__PURE__ */ Y({
2048
2064
  id: { default: void 0 },
2049
2065
  anchor: {},
2050
2066
  appearance: { default: "inverted" },
@@ -2064,17 +2080,17 @@ const Ht = ["data-key"], Kt = {
2064
2080
  }),
2065
2081
  emits: ["update:modelValue"],
2066
2082
  setup(t) {
2067
- const o = t, e = oe(t, "modelValue"), n = ge(o.id);
2068
- return (l, s) => (u(), m(ae, null, [
2083
+ const o = t, e = ne(t, "modelValue"), n = ge(o.id);
2084
+ return (l, s) => (u(), m(se, null, [
2069
2085
  h(l.$slots, "anchor", {
2070
- props: { "aria-describedby": b(n) }
2086
+ props: { "aria-describedby": y(n) }
2071
2087
  }),
2072
- z(b(me), {
2088
+ z(y(me), {
2073
2089
  "model-value": e.value,
2074
2090
  anchor: o.anchor,
2075
2091
  role: "tooltip",
2076
2092
  "non-modal": "",
2077
- id: b(n),
2093
+ id: y(n),
2078
2094
  appearance: o.appearance,
2079
2095
  arrow: o.arrow,
2080
2096
  attach: o.attach,
@@ -2089,67 +2105,67 @@ const Ht = ["data-key"], Kt = {
2089
2105
  o.html ? (u(), m("span", {
2090
2106
  key: 0,
2091
2107
  innerHTML: o.text
2092
- }, null, 8, go)) : (u(), m("span", _o, R(o.text), 1))
2108
+ }, null, 8, wo)) : (u(), m("span", $o, j(o.text), 1))
2093
2109
  ]),
2094
2110
  _: 1
2095
2111
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2096
2112
  ], 64));
2097
2113
  }
2098
- }), wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2114
+ }), Io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2099
2115
  __proto__: null,
2100
2116
  QButton: pe,
2101
2117
  QButtonGroup: nt,
2102
2118
  QButtonToggle: vt,
2103
- QCombobox: Rt,
2119
+ QCombobox: Zt,
2104
2120
  QField: ke,
2105
- QIcon: W,
2121
+ QIcon: K,
2106
2122
  QIconFont: Te,
2107
2123
  QIconImg: Ee,
2108
2124
  QIconSvg: De,
2109
- QInputGroup: eo,
2110
- QLineLoader: to,
2125
+ QInputGroup: no,
2126
+ QLineLoader: lo,
2111
2127
  QList: xe,
2112
2128
  QListItem: Ae,
2113
2129
  QListItemGroup: ze,
2114
2130
  QOverlay: me,
2115
- QPopover: so,
2116
- QSelect: mo,
2117
- QSkeletonLoader: yo,
2131
+ QPopover: uo,
2132
+ QSelect: yo,
2133
+ QSkeletonLoader: _o,
2118
2134
  QSpinnerLoader: be,
2119
2135
  QTextField: Qe,
2120
- QThemeProvider: bo,
2121
- QTooltip: ko
2136
+ QThemeProvider: ko,
2137
+ QTooltip: qo
2122
2138
  }, Symbol.toStringTag, { value: "Module" })), ye = "q-theme";
2123
- function $o() {
2139
+ function xo() {
2124
2140
  const t = Re(ye);
2125
2141
  if (!t)
2126
2142
  throw new Error("[Quidgest UI] Could not find theme instance");
2127
2143
  return t;
2128
2144
  }
2129
- function Eo(t) {
2130
- const o = $o(), e = {
2145
+ function zo(t) {
2146
+ const o = xo(), e = {
2131
2147
  activeTheme: B(t),
2132
2148
  themes: o.themes
2133
2149
  };
2134
2150
  return We(ye, e), e;
2135
2151
  }
2136
- function qo(t) {
2152
+ function Lo(t) {
2137
2153
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
2138
2154
  }
2139
- function Io(t) {
2140
- if (!qo(t))
2155
+ function So(t) {
2156
+ if (!Lo(t))
2141
2157
  throw new Error("Invalid color format");
2142
2158
  t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
2143
2159
  const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
2144
2160
  return { r: o, g: e, b: n };
2145
2161
  }
2146
- function xo() {
2162
+ function Bo() {
2147
2163
  let t = document.getElementById(
2148
2164
  ye
2149
2165
  );
2150
2166
  return t || (t = document.createElement("style"), t.id = ye, document.head.appendChild(t)), t;
2151
2167
  }
2152
- function Lo(t) {
2168
+ function Vo(t) {
2153
2169
  let o = "";
2154
2170
  for (const n of t) {
2155
2171
  o += `.q-theme--${n.name} {
@@ -2161,7 +2177,7 @@ function Lo(t) {
2161
2177
  if (i) {
2162
2178
  o += ` ${Ge(s)}: ${i};
2163
2179
  `;
2164
- const a = Io(i);
2180
+ const a = So(i);
2165
2181
  o += ` ${Ge(s)}-rgb: ${a.r} ${a.g} ${a.b};
2166
2182
  `;
2167
2183
  }
@@ -2169,22 +2185,22 @@ function Lo(t) {
2169
2185
  o += `}
2170
2186
  `;
2171
2187
  }
2172
- const e = xo();
2188
+ const e = Bo();
2173
2189
  e.textContent = o;
2174
2190
  }
2175
2191
  function Ge(t) {
2176
2192
  return t ? `--q-theme-${ot(t)}` : "";
2177
2193
  }
2178
- function So(t = {}) {
2194
+ function Co(t = {}) {
2179
2195
  return { install: (e) => {
2180
2196
  const n = t.components || {};
2181
2197
  for (const s in n)
2182
2198
  e.component(s, n[s]);
2183
2199
  const l = t.defaults || {};
2184
- e.provide(Ce, B(l)), Bo(e, t.themes);
2200
+ e.provide(Ce, B(l)), To(e, t.themes);
2185
2201
  } };
2186
2202
  }
2187
- function Bo(t, o) {
2203
+ function To(t, o) {
2188
2204
  const e = [];
2189
2205
  let n;
2190
2206
  if (!o)
@@ -2207,18 +2223,18 @@ function Bo(t, o) {
2207
2223
  activeTheme: B(n),
2208
2224
  themes: e
2209
2225
  };
2210
- Lo(e), j(l.activeTheme, Vo, { immediate: !0 }), t.provide(ye, l);
2226
+ Vo(e), R(l.activeTheme, Eo, { immediate: !0 }), t.provide(ye, l);
2211
2227
  }
2212
2228
  }
2213
- function Vo(t) {
2229
+ function Eo(t) {
2214
2230
  const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
2215
2231
  o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
2216
2232
  }
2217
- const Do = (t = {}) => So({ components: wo, ...t });
2233
+ const Qo = (t = {}) => Co({ components: Io, ...t });
2218
2234
  export {
2219
- wo as components,
2220
- Do as createFramework,
2221
- Eo as provideTheme,
2222
- To as templates,
2223
- $o as useTheme
2235
+ Io as components,
2236
+ Qo as createFramework,
2237
+ zo as provideTheme,
2238
+ Ao as templates,
2239
+ xo as useTheme
2224
2240
  };