@quidgest/ui 0.8.10 → 0.8.11

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/ui.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as Be, computed as _, ref as q, provide as Ve, inject as Ee, watch as C, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as Q, unref as b, createCommentVNode as I, Fragment as ee, createTextVNode as re, toDisplayString as G, renderSlot as h, toRef as we, createBlock as V, withCtx as g, renderList as me, resolveDynamicComponent as Te, h as $e, normalizeProps as te, mergeProps as oe, reactive as Ne, onBeforeUnmount as Me, onMounted as De, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as ae } from "vue";
1
+ import { getCurrentInstance as Ve, computed as k, ref as q, provide as Be, inject as Ee, watch as C, defineComponent as S, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as Q, unref as b, createCommentVNode as L, Fragment as ee, createTextVNode as re, toDisplayString as W, renderSlot as h, toRef as we, createBlock as B, withCtx as _, renderList as me, resolveDynamicComponent as Te, h as $e, normalizeProps as te, mergeProps as oe, reactive as Ne, onBeforeUnmount as Me, onMounted as De, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as ae } from "vue";
2
2
  function ve(t) {
3
3
  return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
4
4
  }
@@ -25,20 +25,20 @@ function be(t = {}, l = {}) {
25
25
  const ye = "q-defaults";
26
26
  function Pe() {
27
27
  var d, s;
28
- const t = Be();
28
+ const t = Ve();
29
29
  if (!t)
30
30
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
31
31
  const l = t.type.name ?? t.type.__name;
32
32
  if (!l)
33
33
  throw new Error("[Quidgest UI] Could not determine component name");
34
34
  const o = Ce(), e = (d = o.value) == null ? void 0 : d.Global, n = (s = o.value) == null ? void 0 : s[l];
35
- return _(() => be(e, n));
35
+ return k(() => be(e, n));
36
36
  }
37
37
  function ze(t) {
38
38
  if (ve(t))
39
39
  return;
40
- const l = Ce(), o = q(t), e = _(() => ve(o.value) ? l.value : be(l.value, o.value));
41
- Ve(ye, e);
40
+ const l = Ce(), o = q(t), e = k(() => ve(o.value) ? l.value : be(l.value, o.value));
41
+ Be(ye, e);
42
42
  }
43
43
  function Ce() {
44
44
  const t = Ee(ye, void 0);
@@ -58,7 +58,7 @@ function Il(t) {
58
58
  activeTheme: q(t),
59
59
  themes: l.themes
60
60
  };
61
- return Ve(de, o), o;
61
+ return Be(de, o), o;
62
62
  }
63
63
  const Ie = {
64
64
  primary: "#008ad2",
@@ -220,14 +220,14 @@ const ot = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
220
220
  })
221
221
  ], -1), at = [
222
222
  ot
223
- ], st = /* @__PURE__ */ L({
223
+ ], st = /* @__PURE__ */ S({
224
224
  __name: "QSpinnerLoader",
225
225
  props: {
226
226
  size: { default: 48 },
227
227
  class: { default: void 0 }
228
228
  },
229
229
  setup(t) {
230
- const l = t, o = _(() => ({
230
+ const l = t, o = k(() => ({
231
231
  "font-size": l.size !== 48 ? `${l.size}px` : void 0
232
232
  }));
233
233
  return (e, n) => (c(), v("div", {
@@ -247,7 +247,7 @@ function x(t) {
247
247
  const n = Pe();
248
248
  if (ve(n.value))
249
249
  return l(o, e);
250
- const d = Be();
250
+ const d = Ve();
251
251
  if (d === null)
252
252
  return l(o, e);
253
253
  const s = new Proxy(o, {
@@ -263,7 +263,7 @@ function x(t) {
263
263
  const ge = x(st), rt = ["disabled"], dt = {
264
264
  key: 0,
265
265
  class: "q-btn__spinner"
266
- }, ut = { class: "q-btn__content" }, ct = /* @__PURE__ */ L({
266
+ }, ut = { class: "q-btn__content" }, ct = /* @__PURE__ */ S({
267
267
  __name: "QButton",
268
268
  props: {
269
269
  active: { type: Boolean },
@@ -280,11 +280,11 @@ const ge = x(st), rt = ["disabled"], dt = {
280
280
  },
281
281
  emits: ["click"],
282
282
  setup(t, { emit: l }) {
283
- const o = l, e = t, n = _(() => e.disabled || e.loading);
283
+ const o = l, e = t, n = k(() => e.disabled || e.loading);
284
284
  function d(u) {
285
285
  n.value || o("click", u);
286
286
  }
287
- const s = _(() => {
287
+ const s = k(() => {
288
288
  const u = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
289
289
  return [
290
290
  "q-btn",
@@ -308,19 +308,19 @@ const ge = x(st), rt = ["disabled"], dt = {
308
308
  }, [
309
309
  u.loading ? (c(), v("div", dt, [
310
310
  Q(b(ge), { size: 20 })
311
- ])) : I("", !0),
311
+ ])) : L("", !0),
312
312
  Y("span", ut, [
313
313
  u.iconOnRight ? (c(), v(ee, { key: 0 }, [
314
- re(G(e.label), 1)
315
- ], 64)) : I("", !0),
314
+ re(W(e.label), 1)
315
+ ], 64)) : L("", !0),
316
316
  h(u.$slots, "default"),
317
- u.iconOnRight ? I("", !0) : (c(), v(ee, { key: 1 }, [
318
- re(G(e.label), 1)
317
+ u.iconOnRight ? L("", !0) : (c(), v(ee, { key: 1 }, [
318
+ re(W(e.label), 1)
319
319
  ], 64))
320
320
  ])
321
321
  ], 10, rt));
322
322
  }
323
- }), ue = x(ct), ft = /* @__PURE__ */ L({
323
+ }), ue = x(ct), ft = /* @__PURE__ */ S({
324
324
  __name: "QButtonGroup",
325
325
  props: {
326
326
  disabled: { type: Boolean },
@@ -349,7 +349,7 @@ const ge = x(st), rt = ["disabled"], dt = {
349
349
  h(o.$slots, "default")
350
350
  ], 2));
351
351
  }
352
- }), pt = x(ft), mt = /* @__PURE__ */ L({
352
+ }), pt = x(ft), mt = /* @__PURE__ */ S({
353
353
  __name: "QButtonToggle",
354
354
  props: {
355
355
  modelValue: {},
@@ -367,7 +367,7 @@ const ge = x(st), rt = ["disabled"], dt = {
367
367
  () => e.modelValue,
368
368
  (u) => n.value = u
369
369
  );
370
- const d = _({
370
+ const d = k({
371
371
  get() {
372
372
  return n.value;
373
373
  },
@@ -378,22 +378,22 @@ const ge = x(st), rt = ["disabled"], dt = {
378
378
  function s(u) {
379
379
  d.value === u.key && !e.required ? d.value = void 0 : d.value = u.key;
380
380
  }
381
- return (u, p) => (c(), V(b(pt), {
381
+ return (u, p) => (c(), B(b(pt), {
382
382
  "b-style": "secondary",
383
383
  class: E(e.class),
384
384
  disabled: e.disabled,
385
385
  borderless: e.borderless,
386
386
  elevated: e.elevated
387
387
  }, {
388
- default: g(() => [
389
- (c(!0), v(ee, null, me(e.options, (y) => (c(), V(b(ue), {
388
+ default: _(() => [
389
+ (c(!0), v(ee, null, me(e.options, (y) => (c(), B(b(ue), {
390
390
  key: y.key,
391
391
  title: y.title,
392
392
  label: y.label,
393
393
  active: d.value === y.key,
394
394
  onClick: () => s(y)
395
395
  }, {
396
- default: g(() => [
396
+ default: _(() => [
397
397
  h(u.$slots, y.key)
398
398
  ]),
399
399
  _: 2
@@ -402,7 +402,7 @@ const ge = x(st), rt = ["disabled"], dt = {
402
402
  _: 3
403
403
  }, 8, ["class", "disabled", "borderless", "elevated"]));
404
404
  }
405
- }), Sl = x(mt), vt = /* @__PURE__ */ L({
405
+ }), Sl = x(mt), vt = /* @__PURE__ */ S({
406
406
  __name: "QIcon",
407
407
  props: {
408
408
  icon: {},
@@ -411,7 +411,7 @@ const ge = x(st), rt = ["disabled"], dt = {
411
411
  class: { default: void 0 }
412
412
  },
413
413
  setup(t) {
414
- const l = t, o = _(() => {
414
+ const l = t, o = k(() => {
415
415
  switch (l.type) {
416
416
  case "svg":
417
417
  return It;
@@ -423,13 +423,13 @@ const ge = x(st), rt = ["disabled"], dt = {
423
423
  return;
424
424
  }
425
425
  });
426
- return (e, n) => (c(), V(Te(o.value), {
426
+ return (e, n) => (c(), B(Te(o.value), {
427
427
  class: E(l.class),
428
428
  icon: l.icon,
429
429
  size: l.size
430
430
  }, null, 8, ["class", "icon", "size"]));
431
431
  }
432
- }), ht = /* @__PURE__ */ L({
432
+ }), ht = /* @__PURE__ */ S({
433
433
  __name: "QIconFont",
434
434
  props: {
435
435
  icon: {},
@@ -439,7 +439,7 @@ const ge = x(st), rt = ["disabled"], dt = {
439
439
  class: { default: void 0 }
440
440
  },
441
441
  setup(t) {
442
- const l = t, o = _(() => l.variant ? `${l.library}-${l.variant}` : l.library), e = _(() => l.library && l.icon ? `${l.library}-${l.icon}` : l.icon), n = _(() => ({
442
+ const l = t, o = k(() => l.variant ? `${l.library}-${l.variant}` : l.library), e = k(() => l.library && l.icon ? `${l.library}-${l.icon}` : l.icon), n = k(() => ({
443
443
  "font-size": l.size !== void 0 ? `${l.size}px` : void 0
444
444
  }));
445
445
  return (d, s) => (c(), v("i", {
@@ -447,7 +447,7 @@ const ge = x(st), rt = ["disabled"], dt = {
447
447
  style: ce(n.value)
448
448
  }, null, 6));
449
449
  }
450
- }), bt = ["src"], yt = /* @__PURE__ */ L({
450
+ }), bt = ["src"], yt = /* @__PURE__ */ S({
451
451
  __name: "QIconImg",
452
452
  props: {
453
453
  icon: {},
@@ -455,7 +455,7 @@ const ge = x(st), rt = ["disabled"], dt = {
455
455
  class: {}
456
456
  },
457
457
  setup(t) {
458
- const l = t, o = _(() => ({
458
+ const l = t, o = k(() => ({
459
459
  "font-size": l.size !== void 0 ? `${l.size}px` : void 0
460
460
  }));
461
461
  return (e, n) => (c(), v("img", {
@@ -464,7 +464,7 @@ const ge = x(st), rt = ["disabled"], dt = {
464
464
  style: ce(o.value)
465
465
  }, null, 14, bt));
466
466
  }
467
- }), se = {}, gt = L({
467
+ }), se = {}, gt = S({
468
468
  name: "InlineSvg",
469
469
  emits: {
470
470
  loaded: (t) => typeof t == "object",
@@ -599,7 +599,7 @@ function kt(t) {
599
599
  );
600
600
  return o.getIsPending = () => l, o;
601
601
  }
602
- const wt = /* @__PURE__ */ L({
602
+ const wt = /* @__PURE__ */ S({
603
603
  __name: "QIconSvg",
604
604
  props: {
605
605
  icon: {},
@@ -609,7 +609,7 @@ const wt = /* @__PURE__ */ L({
609
609
  },
610
610
  emits: ["loaded", "unloaded"],
611
611
  setup(t, { emit: l }) {
612
- const o = l, e = t, n = _(() => ({
612
+ const o = l, e = t, n = k(() => ({
613
613
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
614
614
  }));
615
615
  function d(u) {
@@ -618,7 +618,7 @@ const wt = /* @__PURE__ */ L({
618
618
  function s() {
619
619
  o("unloaded");
620
620
  }
621
- return (u, p) => (c(), V(b(gt), {
621
+ return (u, p) => (c(), B(b(gt), {
622
622
  class: E(["q-icon", "q-icon__svg", e.class]),
623
623
  src: e.bundle,
624
624
  symbol: e.icon,
@@ -627,7 +627,7 @@ const wt = /* @__PURE__ */ L({
627
627
  onUnloaded: s
628
628
  }, null, 8, ["class", "src", "symbol", "style"]));
629
629
  }
630
- }), J = x(vt), $t = x(ht), qt = x(yt), It = x(wt), Lt = /* @__PURE__ */ L({
630
+ }), J = x(vt), $t = x(ht), qt = x(yt), It = x(wt), Lt = /* @__PURE__ */ S({
631
631
  __name: "QList",
632
632
  props: {
633
633
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -641,7 +641,7 @@ const wt = /* @__PURE__ */ L({
641
641
  },
642
642
  emits: ["update:modelValue"],
643
643
  setup(t, { expose: l, emit: o }) {
644
- const e = o, n = t, d = q(n.modelValue), s = q(!1), u = _(() => p.value.length > 1 ? "div" : "ul"), p = _(() => n.groups.length ? n.groups : [{ id: "", title: "" }]), y = q(null);
644
+ const e = o, n = t, d = q(n.modelValue), s = q(!1), u = k(() => p.value.length > 1 ? "div" : "ul"), p = k(() => n.groups.length ? n.groups : [{ id: "", title: "" }]), y = q(null);
645
645
  function w(i) {
646
646
  d.value = i, e("update:modelValue", i);
647
647
  }
@@ -656,11 +656,11 @@ const wt = /* @__PURE__ */ L({
656
656
  if (($ = y.value) != null && $.contains(i.relatedTarget))
657
657
  return;
658
658
  let a;
659
- d.value ? a = n.items.findIndex((D) => D[n.itemValue] === d.value) : a = W();
659
+ d.value ? a = n.items.findIndex((D) => D[n.itemValue] === d.value) : a = j();
660
660
  const m = s.value;
661
661
  F(a, m);
662
662
  }
663
- function B(i) {
663
+ function V(i) {
664
664
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && i.preventDefault(), i.key) {
665
665
  case "ArrowDown":
666
666
  A("next");
@@ -683,7 +683,7 @@ const wt = /* @__PURE__ */ L({
683
683
  F(N(i));
684
684
  break;
685
685
  case "first":
686
- F(W());
686
+ F(j());
687
687
  break;
688
688
  case "last":
689
689
  F(R());
@@ -702,40 +702,40 @@ const wt = /* @__PURE__ */ L({
702
702
  function U(i) {
703
703
  return O()[i];
704
704
  }
705
- function M() {
705
+ function H() {
706
706
  return O().indexOf(document.activeElement);
707
707
  }
708
- function W() {
709
- const i = O(), a = i.find((m) => K(m));
708
+ function j() {
709
+ const i = O(), a = i.find((m) => G(m));
710
710
  return a ? i.indexOf(a) : -1;
711
711
  }
712
712
  function R() {
713
- const i = O(), a = [...i].reverse().find((m) => K(m));
713
+ const i = O(), a = [...i].reverse().find((m) => G(m));
714
714
  return a ? i.indexOf(a) : -1;
715
715
  }
716
- function H(i, a, m) {
716
+ function K(i, a, m) {
717
717
  return a === "prev" && i === 0 || a === "next" && i === m.length - 1;
718
718
  }
719
719
  function N(i) {
720
- const a = M();
720
+ const a = H();
721
721
  return Z(a, i);
722
722
  }
723
723
  function Z(i, a) {
724
724
  const m = O();
725
- if (H(i, a, m))
725
+ if (K(i, a, m))
726
726
  return i;
727
727
  let $ = i + (a === "next" ? 1 : -1);
728
- for (; !K(m[$]); ) {
729
- if (H($, a, m))
728
+ for (; !G(m[$]); ) {
729
+ if (K($, a, m))
730
730
  return i;
731
731
  $ += a === "next" ? 1 : -1;
732
732
  }
733
733
  return $;
734
734
  }
735
- function K(i) {
735
+ function G(i) {
736
736
  return i.tabIndex === -2;
737
737
  }
738
- function j(i) {
738
+ function P(i) {
739
739
  return i ? n.items.filter((a) => a.group === i) : n.items;
740
740
  }
741
741
  return C(
@@ -747,9 +747,9 @@ const wt = /* @__PURE__ */ L({
747
747
  focusItem: F,
748
748
  getItem: U,
749
749
  getAdjacentItemIndex: Z,
750
- getFirstFocusableItemIndex: W,
750
+ getFirstFocusableItemIndex: j,
751
751
  getLastFocusableItemIndex: R
752
- }), (i, a) => (c(), V(Te(u.value), {
752
+ }), (i, a) => (c(), B(Te(u.value), {
753
753
  ref_key: "listRef",
754
754
  ref: y,
755
755
  class: E(["q-list", { "q-list--disabled": n.disabled }, n.class]),
@@ -758,16 +758,16 @@ const wt = /* @__PURE__ */ L({
758
758
  onFocus: T,
759
759
  onMousedown: f,
760
760
  onMouseup: z,
761
- onKeydown: B
761
+ onKeydown: V
762
762
  }, {
763
- default: g(() => [
764
- (c(!0), v(ee, null, me(p.value, (m) => (c(), V(b(Qt), {
763
+ default: _(() => [
764
+ (c(!0), v(ee, null, me(p.value, (m) => (c(), B(b(Qt), {
765
765
  key: m.id,
766
766
  title: p.value.length === 1 ? void 0 : m.title,
767
767
  disabled: m.disabled
768
768
  }, {
769
- default: g(() => [
770
- (c(!0), v(ee, null, me(j(m.id), ($) => (c(), V(b(Ct), {
769
+ default: _(() => [
770
+ (c(!0), v(ee, null, me(P(m.id), ($) => (c(), B(b(Ct), {
771
771
  key: $[n.itemValue],
772
772
  value: $[n.itemValue],
773
773
  label: $[n.itemLabel],
@@ -777,7 +777,7 @@ const wt = /* @__PURE__ */ L({
777
777
  selected: d.value === $[n.itemValue],
778
778
  onSelect: w
779
779
  }, {
780
- default: g(() => [
780
+ default: _(() => [
781
781
  h(i.$slots, "item", { item: $ })
782
782
  ]),
783
783
  _: 2
@@ -794,11 +794,11 @@ let St = 0;
794
794
  function fe(t) {
795
795
  return t || `uid-${++St}`;
796
796
  }
797
- const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-list-item__check-container" }, Vt = {
797
+ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-list-item__check-container" }, Bt = {
798
798
  check: {
799
799
  icon: "check"
800
800
  }
801
- }, Et = /* @__PURE__ */ L({
801
+ }, Et = /* @__PURE__ */ S({
802
802
  __name: "QListItem",
803
803
  props: {
804
804
  value: { type: [String, Number, Boolean, Symbol] },
@@ -806,7 +806,7 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
806
806
  icon: { default: void 0 },
807
807
  selected: { type: Boolean },
808
808
  highlighted: { type: Boolean },
809
- icons: { default: () => Vt },
809
+ icons: { default: () => Bt },
810
810
  disabled: { type: Boolean }
811
811
  },
812
812
  emits: ["select"],
@@ -836,15 +836,15 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
836
836
  onClick: ie(d, ["stop", "prevent"])
837
837
  }, [
838
838
  h(u.$slots, "default", {}, () => [
839
- e.icon ? (c(), V(b(J), te(oe({ key: 0 }, e.icon)), null, 16)) : I("", !0),
840
- re(" " + G(e.label), 1)
839
+ e.icon ? (c(), B(b(J), te(oe({ key: 0 }, e.icon)), null, 16)) : L("", !0),
840
+ re(" " + W(e.label), 1)
841
841
  ]),
842
- Y("div", Bt, [
843
- e.selected ? (c(), V(b(J), oe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
842
+ Y("div", Vt, [
843
+ e.selected ? (c(), B(b(J), oe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
844
844
  ])
845
845
  ], 42, xt));
846
846
  }
847
- }), Tt = ["aria-labelledby"], Dt = ["id"], zt = /* @__PURE__ */ L({
847
+ }), Tt = ["aria-labelledby"], Dt = ["id"], zt = /* @__PURE__ */ S({
848
848
  __name: "QListItemGroup",
849
849
  props: {
850
850
  title: { default: "" },
@@ -862,7 +862,7 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
862
862
  id: b(o),
863
863
  class: "q-list-item-group__title",
864
864
  role: "presentation"
865
- }, G(l.title), 9, Dt)) : I("", !0),
865
+ }, W(l.title), 9, Dt)) : L("", !0),
866
866
  h(e.$slots, "default")
867
867
  ], 8, Tt));
868
868
  }
@@ -931,7 +931,7 @@ const Rt = ["role"], Ot = {
931
931
  key: 0,
932
932
  role: "presentation",
933
933
  class: "q-overlay__arrow"
934
- }, Ut = /* @__PURE__ */ L({
934
+ }, Ut = /* @__PURE__ */ S({
935
935
  inheritAttrs: !1,
936
936
  __name: "QOverlay",
937
937
  props: {
@@ -952,12 +952,12 @@ const Rt = ["role"], Ot = {
952
952
  },
953
953
  emits: ["update:modelValue", "enter", "leave"],
954
954
  setup(t, { emit: l }) {
955
- const o = l, e = t, n = _(() => [
955
+ const o = l, e = t, n = k(() => [
956
956
  "q-overlay",
957
957
  `q-overlay--${s.placement}`,
958
958
  { "q-overlay--inverted": e.appearance === "inverted" },
959
959
  e.class
960
- ]), d = _(
960
+ ]), d = k(
961
961
  () => (s.visible || s.animating) && e.trigger === "click"
962
962
  ), s = Ne({
963
963
  visible: e.modelValue,
@@ -974,7 +974,7 @@ const Rt = ["role"], Ot = {
974
974
  () => s.visible,
975
975
  () => s.animating = !0
976
976
  );
977
- const u = _(() => {
977
+ const u = k(() => {
978
978
  let i = 0, a = 0;
979
979
  switch (s.placement) {
980
980
  case "top":
@@ -1026,7 +1026,7 @@ const Rt = ["role"], Ot = {
1026
1026
  });
1027
1027
  }, i));
1028
1028
  }
1029
- function B() {
1029
+ function V() {
1030
1030
  clearTimeout(w), w = void 0, s.visible = !1, X(() => {
1031
1031
  if (e.anchor && e.trigger === "click") {
1032
1032
  const i = ne(e.anchor);
@@ -1042,7 +1042,7 @@ const Rt = ["role"], Ot = {
1042
1042
  window.clearTimeout(A), A = window.setTimeout(() => s.animating = !1, 200), o("leave");
1043
1043
  }
1044
1044
  let U;
1045
- function M() {
1045
+ function H() {
1046
1046
  X(() => {
1047
1047
  if (!e.anchor)
1048
1048
  return;
@@ -1053,12 +1053,12 @@ const Rt = ["role"], Ot = {
1053
1053
  i.addEventListener("click", f);
1054
1054
  break;
1055
1055
  case "hover":
1056
- i.addEventListener("mouseenter", z), i.addEventListener("mouseleave", B), i.addEventListener("focusin", f), i.addEventListener("focusout", B);
1056
+ i.addEventListener("mouseenter", z), i.addEventListener("mouseleave", V), i.addEventListener("focusin", f), i.addEventListener("focusout", V);
1057
1057
  break;
1058
1058
  }
1059
1059
  });
1060
1060
  }
1061
- function W() {
1061
+ function j() {
1062
1062
  X(() => {
1063
1063
  if (!e.anchor)
1064
1064
  return;
@@ -1081,38 +1081,38 @@ const Rt = ["role"], Ot = {
1081
1081
  i.removeEventListener("click", f);
1082
1082
  break;
1083
1083
  case "hover":
1084
- i.removeEventListener("mouseenter", z), i.removeEventListener("mouseleave", B), i.removeEventListener("focusin", f), i.removeEventListener("focusout", B);
1084
+ i.removeEventListener("mouseenter", z), i.removeEventListener("mouseleave", V), i.removeEventListener("focusin", f), i.removeEventListener("focusout", V);
1085
1085
  break;
1086
1086
  }
1087
1087
  }
1088
- function H() {
1088
+ function K() {
1089
1089
  window.removeEventListener("resize", y), U == null || U.disconnect();
1090
1090
  }
1091
1091
  let N;
1092
1092
  function Z() {
1093
1093
  if (!e.anchor)
1094
1094
  return;
1095
- ne(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : B();
1095
+ ne(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : V();
1096
1096
  }
1097
- function K() {
1098
- W(), e.spy && Z(), e.anchor && document.addEventListener("scroll", B);
1097
+ function G() {
1098
+ j(), e.spy && Z(), e.anchor && document.addEventListener("scroll", V);
1099
1099
  }
1100
- function j() {
1101
- H(), e.spy && (clearTimeout(N), N = void 0), document.removeEventListener("scroll", B);
1100
+ function P() {
1101
+ K(), e.spy && (clearTimeout(N), N = void 0), document.removeEventListener("scroll", V);
1102
1102
  }
1103
1103
  return Me(() => {
1104
- R(), j();
1104
+ R(), P();
1105
1105
  }), De(() => {
1106
1106
  X(() => {
1107
- M(), y();
1107
+ H(), y();
1108
1108
  });
1109
1109
  }), C(
1110
1110
  () => s.visible,
1111
1111
  (i) => {
1112
- i ? K() : j(), o("update:modelValue", i);
1112
+ i ? G() : P(), o("update:modelValue", i);
1113
1113
  },
1114
1114
  { immediate: !0 }
1115
- ), (i, a) => (c(), V(He, {
1115
+ ), (i, a) => (c(), B(He, {
1116
1116
  disabled: !s.visible && !s.animating || !e.attach,
1117
1117
  to: e.attach
1118
1118
  }, [
@@ -1122,14 +1122,14 @@ const Rt = ["role"], Ot = {
1122
1122
  "q-overlay__underlay",
1123
1123
  { "q-overlay__underlay--blur": e.backdropBlur }
1124
1124
  ])
1125
- }, null, 2)) : I("", !0),
1125
+ }, null, 2)) : L("", !0),
1126
1126
  Q(Ke, {
1127
1127
  name: e.transition,
1128
1128
  appear: "",
1129
1129
  onEnter: F,
1130
1130
  onLeave: O
1131
1131
  }, {
1132
- default: g(() => [
1132
+ default: _(() => [
1133
1133
  s.visible ? (c(), v("div", {
1134
1134
  key: 0,
1135
1135
  class: E(n.value),
@@ -1142,13 +1142,13 @@ const Rt = ["role"], Ot = {
1142
1142
  tabindex: "-1",
1143
1143
  role: d.value ? "dialog" : void 0
1144
1144
  }, i.$attrs, {
1145
- onKeydown: Ge(B, ["escape"]),
1146
- onBlur: B
1145
+ onKeydown: Ge(V, ["escape"]),
1146
+ onBlur: V
1147
1147
  }), [
1148
- e.arrow ? (c(), v("div", Ot)) : I("", !0),
1148
+ e.arrow ? (c(), v("div", Ot)) : L("", !0),
1149
1149
  h(i.$slots, "default")
1150
1150
  ], 16, Rt)
1151
- ], 6)) : I("", !0)
1151
+ ], 6)) : L("", !0)
1152
1152
  ]),
1153
1153
  _: 3
1154
1154
  }, 8, ["name"])
@@ -1166,7 +1166,7 @@ const Rt = ["role"], Ot = {
1166
1166
  }, Wt = {
1167
1167
  key: 1,
1168
1168
  class: "q-field__extras"
1169
- }, jt = /* @__PURE__ */ L({
1169
+ }, jt = /* @__PURE__ */ S({
1170
1170
  inheritAttrs: !1,
1171
1171
  __name: "QField",
1172
1172
  props: {
@@ -1180,7 +1180,7 @@ const Rt = ["role"], Ot = {
1180
1180
  class: { default: void 0 }
1181
1181
  },
1182
1182
  setup(t, { expose: l }) {
1183
- const o = t, e = fe(o.id), n = q(null), d = _(() => o.required && !o.readonly && !o.disabled);
1183
+ const o = t, e = fe(o.id), n = q(null), d = k(() => o.required && !o.readonly && !o.disabled);
1184
1184
  return l({
1185
1185
  fieldRef: n
1186
1186
  }), (s, u) => (c(), v("div", {
@@ -1200,9 +1200,9 @@ const Rt = ["role"], Ot = {
1200
1200
  h(s.$slots, "label.prepend"),
1201
1201
  Y("label", {
1202
1202
  for: o.for
1203
- }, G(o.label), 9, Ht),
1203
+ }, W(o.label), 9, Ht),
1204
1204
  h(s.$slots, "label.append")
1205
- ])) : I("", !0),
1205
+ ])) : L("", !0),
1206
1206
  h(s.$slots, "control", {}, () => [
1207
1207
  Y("div", oe({
1208
1208
  class: "q-field__control",
@@ -1211,19 +1211,19 @@ const Rt = ["role"], Ot = {
1211
1211
  }, s.$attrs), [
1212
1212
  s.$slots.prepend ? (c(), v("div", Kt, [
1213
1213
  h(s.$slots, "prepend")
1214
- ])) : I("", !0),
1214
+ ])) : L("", !0),
1215
1215
  h(s.$slots, "default"),
1216
1216
  s.$slots.append ? (c(), v("div", Gt, [
1217
1217
  h(s.$slots, "append")
1218
- ])) : I("", !0)
1218
+ ])) : L("", !0)
1219
1219
  ], 16)
1220
1220
  ]),
1221
1221
  s.$slots.extras ? (c(), v("div", Wt, [
1222
1222
  h(s.$slots, "extras")
1223
- ])) : I("", !0)
1223
+ ])) : L("", !0)
1224
1224
  ], 10, Nt));
1225
1225
  }
1226
- }), _e = x(jt), Pt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ L({
1226
+ }), _e = x(jt), Pt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ S({
1227
1227
  inheritAttrs: !1,
1228
1228
  __name: "QTextField",
1229
1229
  props: {
@@ -1242,26 +1242,26 @@ const Rt = ["role"], Ot = {
1242
1242
  },
1243
1243
  emits: ["update:modelValue"],
1244
1244
  setup(t, { expose: l, emit: o }) {
1245
- const e = o, n = t, d = fe(n.id), s = q(n.modelValue), u = q(null), p = q(null), y = _({
1245
+ const e = o, n = t, d = fe(n.id), s = q(n.modelValue), u = q(null), p = q(null), y = k({
1246
1246
  get() {
1247
1247
  return s.value;
1248
1248
  },
1249
1249
  set(f) {
1250
1250
  s.value = f, e("update:modelValue", f);
1251
1251
  }
1252
- }), w = _(
1252
+ }), w = k(
1253
1253
  () => n.readonly || n.disabled ? "" : n.placeholder
1254
1254
  );
1255
1255
  return C(
1256
1256
  () => n.modelValue,
1257
1257
  (f) => s.value = f
1258
1258
  ), l({
1259
- fieldRef: _(() => {
1259
+ fieldRef: k(() => {
1260
1260
  var f;
1261
1261
  return (f = u.value) == null ? void 0 : f.fieldRef;
1262
1262
  }),
1263
1263
  inputRef: p
1264
- }), (f, z) => (c(), V(b(_e), {
1264
+ }), (f, z) => (c(), B(b(_e), {
1265
1265
  ref_key: "fieldRef",
1266
1266
  ref: u,
1267
1267
  class: E(["q-text-field", n.class]),
@@ -1272,13 +1272,13 @@ const Rt = ["role"], Ot = {
1272
1272
  disabled: n.disabled,
1273
1273
  required: n.required
1274
1274
  }, he({
1275
- "label.prepend": g(() => [
1275
+ "label.prepend": _(() => [
1276
1276
  h(f.$slots, "label.prepend")
1277
1277
  ]),
1278
- "label.append": g(() => [
1278
+ "label.append": _(() => [
1279
1279
  h(f.$slots, "label.append")
1280
1280
  ]),
1281
- default: g(() => [
1281
+ default: _(() => [
1282
1282
  We(Y("input", oe({
1283
1283
  "onUpdate:modelValue": z[0] || (z[0] = (T) => y.value = T),
1284
1284
  ref_key: "inputRef",
@@ -1300,21 +1300,21 @@ const Rt = ["role"], Ot = {
1300
1300
  }, [
1301
1301
  f.$slots.prepend ? {
1302
1302
  name: "prepend",
1303
- fn: g(() => [
1303
+ fn: _(() => [
1304
1304
  h(f.$slots, "prepend")
1305
1305
  ]),
1306
1306
  key: "0"
1307
1307
  } : void 0,
1308
1308
  f.$slots.append ? {
1309
1309
  name: "append",
1310
- fn: g(() => [
1310
+ fn: _(() => [
1311
1311
  h(f.$slots, "append")
1312
1312
  ]),
1313
1313
  key: "1"
1314
1314
  } : void 0,
1315
1315
  f.$slots.extras ? {
1316
1316
  name: "extras",
1317
- fn: g(() => [
1317
+ fn: _(() => [
1318
1318
  h(f.$slots, "extras")
1319
1319
  ]),
1320
1320
  key: "2"
@@ -1336,7 +1336,7 @@ const Rt = ["role"], Ot = {
1336
1336
  clear: {
1337
1337
  icon: "close"
1338
1338
  }
1339
- }, ll = /* @__PURE__ */ L({
1339
+ }, ll = /* @__PURE__ */ S({
1340
1340
  __name: "QCombobox",
1341
1341
  props: {
1342
1342
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1364,105 +1364,105 @@ const Rt = ["role"], Ot = {
1364
1364
  setup(t, { expose: l, emit: o }) {
1365
1365
  const e = o, n = t, d = q(n.modelValue), s = q(!1), u = q(""), p = q(void 0), y = q(null), w = q(null), f = q(null);
1366
1366
  De(R);
1367
- const z = _(() => n.clearable && !n.readonly && !n.disabled), T = _(() => {
1367
+ const z = k(() => n.clearable && !n.readonly && !n.disabled), T = k(() => {
1368
1368
  var r;
1369
1369
  return n.filterMode === "manual" || !U.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
1370
- (k) => k[n.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
1370
+ (g) => g[n.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
1371
1371
  );
1372
- }), B = _(() => {
1372
+ }), V = k(() => {
1373
1373
  var r;
1374
- return (r = n.items) == null ? void 0 : r.find((k) => k[n.itemValue] === d.value);
1375
- }), A = _(() => B.value === void 0), F = _(() => {
1374
+ return (r = n.items) == null ? void 0 : r.find((g) => g[n.itemValue] === d.value);
1375
+ }), A = k(() => V.value === void 0), F = k(() => {
1376
1376
  const r = p.value;
1377
1377
  if (r !== void 0 && T.value[r])
1378
1378
  return T.value[r];
1379
- }), O = _(() => {
1380
- var k;
1379
+ }), O = k(() => {
1380
+ var g;
1381
1381
  if (p.value === void 0)
1382
1382
  return;
1383
- const r = (k = w.value) == null ? void 0 : k.getItem(p.value);
1383
+ const r = (g = w.value) == null ? void 0 : g.getItem(p.value);
1384
1384
  return r == null ? void 0 : r.id;
1385
- }), U = _(() => {
1385
+ }), U = k(() => {
1386
1386
  var r;
1387
- return u.value.length > 0 && u.value !== ((r = B.value) == null ? void 0 : r[n.itemLabel]);
1387
+ return u.value.length > 0 && u.value !== ((r = V.value) == null ? void 0 : r[n.itemLabel]);
1388
1388
  });
1389
- function M(r) {
1389
+ function H(r) {
1390
1390
  d.value = r, R(), e("update:modelValue", r);
1391
1391
  }
1392
- function W(r) {
1393
- M(r), N();
1392
+ function j(r) {
1393
+ H(r), N();
1394
1394
  }
1395
1395
  function R() {
1396
1396
  var r;
1397
- u.value = ((r = B.value) == null ? void 0 : r[n.itemLabel]) || "";
1397
+ u.value = ((r = V.value) == null ? void 0 : r[n.itemLabel]) || "";
1398
1398
  }
1399
- function H() {
1399
+ function K() {
1400
1400
  s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0, le());
1401
1401
  }
1402
1402
  function N() {
1403
1403
  s.value && (e("before-hide"), s.value = !1, p.value = void 0);
1404
1404
  }
1405
1405
  function Z() {
1406
- s.value ? N() : j();
1406
+ s.value ? N() : P();
1407
1407
  }
1408
- function K() {
1409
- z.value && (M(n.emptyValue), p.value = void 0, le());
1408
+ function G() {
1409
+ z.value && (H(n.emptyValue), p.value = void 0, le());
1410
1410
  }
1411
- function j() {
1412
- if (H(), B.value !== void 0) {
1413
- const r = T.value.indexOf(B.value);
1411
+ function P() {
1412
+ if (K(), V.value !== void 0) {
1413
+ const r = T.value.indexOf(V.value);
1414
1414
  r !== -1 && X(() => ke(r));
1415
1415
  }
1416
1416
  }
1417
1417
  function i(r) {
1418
- var k, S;
1418
+ var g, I;
1419
1419
  if (!(!r.key || n.readonly || n.disabled))
1420
1420
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
1421
- s.value ? N() : z.value && K();
1421
+ s.value ? N() : z.value && G();
1422
1422
  else if (["ArrowDown", "ArrowUp"].includes(r.key))
1423
1423
  s.value ? X(() => {
1424
1424
  if (p.value === void 0)
1425
1425
  a();
1426
1426
  else {
1427
- const P = r.key === "ArrowDown" ? "next" : "prev";
1428
- $(p.value, P);
1427
+ const M = r.key === "ArrowDown" ? "next" : "prev";
1428
+ $(p.value, M);
1429
1429
  }
1430
- }) : (H(), X(() => {
1430
+ }) : (K(), X(() => {
1431
1431
  r.key === "ArrowDown" ? a() : m();
1432
1432
  }));
1433
1433
  else if (r.key === "Enter") {
1434
1434
  if (F.value === void 0)
1435
1435
  return;
1436
- W(F.value[n.itemValue]);
1436
+ j(F.value[n.itemValue]);
1437
1437
  } else
1438
- r.key === "Home" ? p.value = (k = w.value) == null ? void 0 : k.getFirstFocusableItemIndex() : r.key === "End" ? p.value = (S = w.value) == null ? void 0 : S.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && H();
1438
+ r.key === "Home" ? p.value = (g = w.value) == null ? void 0 : g.getFirstFocusableItemIndex() : r.key === "End" ? p.value = (I = w.value) == null ? void 0 : I.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && K();
1439
1439
  }
1440
1440
  function a() {
1441
- var r, k;
1441
+ var r, g;
1442
1442
  if (A.value)
1443
- p.value = (k = w.value) == null ? void 0 : k.getFirstFocusableItemIndex();
1443
+ p.value = (g = w.value) == null ? void 0 : g.getFirstFocusableItemIndex();
1444
1444
  else {
1445
- const S = T.value.findIndex(
1446
- (P) => P[n.itemValue] === d.value
1445
+ const I = T.value.findIndex(
1446
+ (M) => M[n.itemValue] === d.value
1447
1447
  );
1448
- S === -1 ? p.value = (r = w.value) == null ? void 0 : r.getFirstFocusableItemIndex() : p.value = S;
1448
+ I === -1 ? p.value = (r = w.value) == null ? void 0 : r.getFirstFocusableItemIndex() : p.value = I;
1449
1449
  }
1450
1450
  }
1451
1451
  function m() {
1452
1452
  var r;
1453
1453
  p.value = (r = w.value) == null ? void 0 : r.getLastFocusableItemIndex();
1454
1454
  }
1455
- function $(r, k) {
1456
- var S;
1457
- p.value = (S = w.value) == null ? void 0 : S.getAdjacentItemIndex(r, k);
1455
+ function $(r, g) {
1456
+ var I;
1457
+ p.value = (I = w.value) == null ? void 0 : I.getAdjacentItemIndex(r, g);
1458
1458
  }
1459
1459
  function D(r) {
1460
- var k, S, P;
1461
- !((k = f.value) != null && k.contains(r.relatedTarget)) && !((P = (S = y.value) == null ? void 0 : S.fieldRef) != null && P.contains(r.relatedTarget)) ? (N(), R()) : (r.preventDefault(), r.stopPropagation());
1460
+ var g, I, M;
1461
+ !((g = f.value) != null && g.contains(r.relatedTarget)) && !((M = (I = y.value) == null ? void 0 : I.fieldRef) != null && M.contains(r.relatedTarget)) ? (N(), R()) : (r.preventDefault(), r.stopPropagation());
1462
1462
  }
1463
1463
  function le() {
1464
- var r, k;
1465
- (k = (r = y.value) == null ? void 0 : r.inputRef) == null || k.focus();
1464
+ var r, g;
1465
+ (g = (r = y.value) == null ? void 0 : r.inputRef) == null || g.focus();
1466
1466
  }
1467
1467
  function Re() {
1468
1468
  le();
@@ -1474,9 +1474,9 @@ const Rt = ["role"], Ot = {
1474
1474
  e("hide");
1475
1475
  }
1476
1476
  function ke(r) {
1477
- var S;
1478
- const k = (S = w.value) == null ? void 0 : S.getItem(r);
1479
- k == null || k.scrollIntoView({ block: "nearest", inline: "start" });
1477
+ var I;
1478
+ const g = (I = w.value) == null ? void 0 : I.getItem(r);
1479
+ g == null || g.scrollIntoView({ block: "nearest", inline: "start" });
1480
1480
  }
1481
1481
  return C(
1482
1482
  () => n.modelValue,
@@ -1485,20 +1485,23 @@ const Rt = ["role"], Ot = {
1485
1485
  }
1486
1486
  ), C(d, R), C(
1487
1487
  () => n.items,
1488
- () => {
1489
- A.value || R();
1488
+ (r, g) => {
1489
+ if (!A.value) {
1490
+ const I = g.find((M) => M[n.itemValue] === d.value);
1491
+ u.value === (I == null ? void 0 : I[n.itemLabel]) && R();
1492
+ }
1490
1493
  },
1491
1494
  { deep: !0 }
1492
1495
  ), C(p, (r) => {
1493
1496
  r !== void 0 && ke(r);
1494
1497
  }), C(u, (r) => {
1495
- !r && z.value ? K() : s.value && n.selectionMode === "automatic" && X(a), e("update:inputValue", r);
1498
+ !r && z.value ? G() : s.value && n.selectionMode === "automatic" && X(a), e("update:inputValue", r);
1496
1499
  }), l({
1497
1500
  triggerEl: y
1498
- }), (r, k) => (c(), v(ee, null, [
1501
+ }), (r, g) => (c(), v(ee, null, [
1499
1502
  Q(b(Yt), {
1500
1503
  modelValue: u.value,
1501
- "onUpdate:modelValue": k[0] || (k[0] = (S) => u.value = S),
1504
+ "onUpdate:modelValue": g[0] || (g[0] = (I) => u.value = I),
1502
1505
  id: n.id,
1503
1506
  label: n.label,
1504
1507
  required: n.required,
@@ -1523,32 +1526,32 @@ const Rt = ["role"], Ot = {
1523
1526
  "aria-autocomplete": "list",
1524
1527
  "aria-activedescendant": O.value,
1525
1528
  size: n.size,
1526
- onClick: j,
1529
+ onClick: P,
1527
1530
  onFocusout: D,
1528
1531
  onKeydown: ie(i, ["stop"])
1529
1532
  }, he({
1530
- "label.prepend": g(() => [
1533
+ "label.prepend": _(() => [
1531
1534
  h(r.$slots, "label.prepend")
1532
1535
  ]),
1533
- "label.append": g(() => [
1536
+ "label.append": _(() => [
1534
1537
  h(r.$slots, "label.append")
1535
1538
  ]),
1536
- append: g(() => [
1539
+ append: _(() => [
1537
1540
  h(r.$slots, "append"),
1538
- z.value && u.value ? (c(), V(b(ue), {
1541
+ z.value && u.value ? (c(), B(b(ue), {
1539
1542
  key: 0,
1540
1543
  class: "q-combobox__clear",
1541
1544
  "b-style": "plain",
1542
1545
  borderless: "",
1543
1546
  tabindex: "-1",
1544
- onClick: K
1547
+ onClick: G
1545
1548
  }, {
1546
- default: g(() => [
1549
+ default: _(() => [
1547
1550
  Q(b(J), te(ae(n.icons.clear)), null, 16)
1548
1551
  ]),
1549
1552
  _: 1
1550
- })) : I("", !0),
1551
- n.readonly ? I("", !0) : (c(), V(b(ue), {
1553
+ })) : L("", !0),
1554
+ n.readonly ? L("", !0) : (c(), B(b(ue), {
1552
1555
  key: 1,
1553
1556
  class: "q-combobox__chevron",
1554
1557
  "b-style": "plain",
@@ -1557,7 +1560,7 @@ const Rt = ["role"], Ot = {
1557
1560
  disabled: n.disabled,
1558
1561
  onClick: Z
1559
1562
  }, {
1560
- default: g(() => [
1563
+ default: _(() => [
1561
1564
  Q(b(J), te(ae(n.icons.chevron)), null, 16)
1562
1565
  ]),
1563
1566
  _: 1
@@ -1567,14 +1570,14 @@ const Rt = ["role"], Ot = {
1567
1570
  }, [
1568
1571
  r.$slots.prepend ? {
1569
1572
  name: "prepend",
1570
- fn: g(() => [
1573
+ fn: _(() => [
1571
1574
  h(r.$slots, "prepend")
1572
1575
  ]),
1573
1576
  key: "0"
1574
1577
  } : void 0,
1575
1578
  r.$slots.extras ? {
1576
1579
  name: "extras",
1577
- fn: g(() => [
1580
+ fn: _(() => [
1578
1581
  h(r.$slots, "extras")
1579
1582
  ]),
1580
1583
  key: "1"
@@ -1582,7 +1585,7 @@ const Rt = ["role"], Ot = {
1582
1585
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1583
1586
  Q(b(pe), {
1584
1587
  modelValue: s.value,
1585
- "onUpdate:modelValue": k[2] || (k[2] = (S) => s.value = S),
1588
+ "onUpdate:modelValue": g[2] || (g[2] = (I) => s.value = I),
1586
1589
  spy: "",
1587
1590
  trigger: "manual",
1588
1591
  placement: "bottom",
@@ -1592,8 +1595,8 @@ const Rt = ["role"], Ot = {
1592
1595
  onEnter: Oe,
1593
1596
  onLeave: Ue
1594
1597
  }, {
1595
- default: g(() => {
1596
- var S;
1598
+ default: _(() => {
1599
+ var I;
1597
1600
  return [
1598
1601
  Y("div", {
1599
1602
  ref_key: "contentRef",
@@ -1604,28 +1607,28 @@ const Rt = ["role"], Ot = {
1604
1607
  h(r.$slots, "body.prepend"),
1605
1608
  n.loading ? (c(), v("div", Zt, [
1606
1609
  Q(b(ge), { size: 24 })
1607
- ])) : T.value.length ? (c(), V(b(Ae), {
1610
+ ])) : T.value.length ? (c(), B(b(Ae), {
1608
1611
  key: 1,
1609
1612
  ref_key: "listRef",
1610
1613
  ref: w,
1611
1614
  class: "q-select__items",
1612
1615
  modelValue: d.value,
1613
1616
  "onUpdate:modelValue": [
1614
- k[1] || (k[1] = (P) => d.value = P),
1615
- W
1617
+ g[1] || (g[1] = (M) => d.value = M),
1618
+ j
1616
1619
  ],
1617
- highlighted: (S = F.value) == null ? void 0 : S[n.itemValue],
1620
+ highlighted: (I = F.value) == null ? void 0 : I[n.itemValue],
1618
1621
  items: T.value,
1619
1622
  groups: r.groups,
1620
1623
  "item-label": n.itemLabel,
1621
1624
  "item-value": n.itemValue,
1622
1625
  onMouseup: Re
1623
1626
  }, {
1624
- item: g(({ item: P }) => [
1625
- h(r.$slots, "item", { item: P })
1627
+ item: _(({ item: M }) => [
1628
+ h(r.$slots, "item", { item: M })
1626
1629
  ]),
1627
1630
  _: 3
1628
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Jt, G(r.texts.noData), 1)),
1631
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Jt, W(r.texts.noData), 1)),
1629
1632
  h(r.$slots, "body.append")
1630
1633
  ], 544)
1631
1634
  ];
@@ -1640,7 +1643,7 @@ const Rt = ["role"], Ot = {
1640
1643
  }, ol = { key: 0 }, al = {
1641
1644
  key: 1,
1642
1645
  class: "q-input-group__append"
1643
- }, sl = { key: 0 }, il = /* @__PURE__ */ L({
1646
+ }, sl = { key: 0 }, il = /* @__PURE__ */ S({
1644
1647
  __name: "QInputGroup",
1645
1648
  props: {
1646
1649
  id: { default: void 0 },
@@ -1657,32 +1660,32 @@ const Rt = ["role"], Ot = {
1657
1660
  QField: {
1658
1661
  size: "block"
1659
1662
  }
1660
- }), (o, e) => (c(), V(b(_e), {
1663
+ }), (o, e) => (c(), B(b(_e), {
1661
1664
  id: l.id,
1662
1665
  class: E(["q-input-group", l.class]),
1663
1666
  label: l.label,
1664
1667
  required: l.required,
1665
1668
  size: l.size
1666
1669
  }, {
1667
- default: g(() => [
1670
+ default: _(() => [
1668
1671
  o.$slots.prepend || l.prependIcon ? (c(), v("div", nl, [
1669
1672
  l.prependIcon ? (c(), v("span", ol, [
1670
1673
  Q(b(J), te(ae(l.prependIcon)), null, 16)
1671
- ])) : I("", !0),
1674
+ ])) : L("", !0),
1672
1675
  h(o.$slots, "prepend")
1673
- ])) : I("", !0),
1676
+ ])) : L("", !0),
1674
1677
  h(o.$slots, "default"),
1675
1678
  o.$slots.append || l.appendIcon ? (c(), v("div", al, [
1676
1679
  l.appendIcon ? (c(), v("span", sl, [
1677
1680
  Q(b(J), te(ae(l.appendIcon)), null, 16)
1678
- ])) : I("", !0),
1681
+ ])) : L("", !0),
1679
1682
  h(o.$slots, "append")
1680
- ])) : I("", !0)
1683
+ ])) : L("", !0)
1681
1684
  ]),
1682
1685
  _: 3
1683
1686
  }, 8, ["id", "class", "label", "required", "size"]));
1684
1687
  }
1685
- }), Bl = x(il), rl = /* @__PURE__ */ L({
1688
+ }), Vl = x(il), rl = /* @__PURE__ */ S({
1686
1689
  __name: "QLineLoader",
1687
1690
  props: {
1688
1691
  class: { default: void 0 }
@@ -1693,13 +1696,13 @@ const Rt = ["role"], Ot = {
1693
1696
  class: E(["q-line-loader", l.class])
1694
1697
  }, null, 2));
1695
1698
  }
1696
- }), Vl = x(rl), dl = {
1699
+ }), Bl = x(rl), dl = {
1697
1700
  key: 0,
1698
1701
  class: "q-popover__header"
1699
1702
  }, ul = {
1700
1703
  key: 1,
1701
1704
  class: "q-popover__body"
1702
- }, cl = ["innerHTML"], fl = { key: 1 }, pl = /* @__PURE__ */ L({
1705
+ }, cl = ["innerHTML"], fl = { key: 1 }, pl = /* @__PURE__ */ S({
1703
1706
  inheritAttrs: !1,
1704
1707
  __name: "QPopover",
1705
1708
  props: {
@@ -1715,7 +1718,7 @@ const Rt = ["role"], Ot = {
1715
1718
  },
1716
1719
  setup(t) {
1717
1720
  const l = t;
1718
- return (o, e) => (c(), V(b(pe), {
1721
+ return (o, e) => (c(), B(b(pe), {
1719
1722
  "model-value": l.modelValue,
1720
1723
  class: "q-popover",
1721
1724
  trigger: "click",
@@ -1725,18 +1728,18 @@ const Rt = ["role"], Ot = {
1725
1728
  disabled: l.disabled,
1726
1729
  placement: l.placement
1727
1730
  }, {
1728
- default: g(() => [
1731
+ default: _(() => [
1729
1732
  l.title || o.$slots.header ? (c(), v("h3", dl, [
1730
- re(G(l.title) + " ", 1),
1733
+ re(W(l.title) + " ", 1),
1731
1734
  h(o.$slots, "header")
1732
- ])) : I("", !0),
1735
+ ])) : L("", !0),
1733
1736
  l.text || o.$slots.body ? (c(), v("div", ul, [
1734
1737
  l.html ? (c(), v("span", {
1735
1738
  key: 0,
1736
1739
  innerHTML: l.text
1737
- }, null, 8, cl)) : (c(), v("span", fl, G(l.text), 1)),
1740
+ }, null, 8, cl)) : (c(), v("span", fl, W(l.text), 1)),
1738
1741
  h(o.$slots, "body")
1739
- ])) : I("", !0)
1742
+ ])) : L("", !0)
1740
1743
  ]),
1741
1744
  _: 3
1742
1745
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
@@ -1759,7 +1762,7 @@ const Rt = ["role"], Ot = {
1759
1762
  clear: {
1760
1763
  icon: "close"
1761
1764
  }
1762
- }, gl = /* @__PURE__ */ L({
1765
+ }, gl = /* @__PURE__ */ S({
1763
1766
  __name: "QSelect",
1764
1767
  props: {
1765
1768
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1782,40 +1785,40 @@ const Rt = ["role"], Ot = {
1782
1785
  },
1783
1786
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1784
1787
  setup(t, { emit: l }) {
1785
- const o = l, e = t, n = q(e.modelValue), d = q(!1), s = q(""), u = q(null), p = q(null), y = q(null), w = _(() => f.value === void 0), f = _(
1788
+ const o = l, e = t, n = q(e.modelValue), d = q(!1), s = q(""), u = q(null), p = q(null), y = q(null), w = k(() => f.value === void 0), f = k(
1786
1789
  () => {
1787
1790
  var a;
1788
1791
  return (a = e.items) == null ? void 0 : a.find((m) => m[e.itemValue] === n.value);
1789
1792
  }
1790
- ), z = _(
1793
+ ), z = k(
1791
1794
  () => f.value ? f.value[e.itemLabel] : ""
1792
- ), T = _(
1795
+ ), T = k(
1793
1796
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1794
1797
  );
1795
- function B(a) {
1796
- n.value = a, o("update:modelValue", a), M();
1798
+ function V(a) {
1799
+ n.value = a, o("update:modelValue", a), H();
1797
1800
  }
1798
1801
  function A() {
1799
- T.value && B(e.emptyValue);
1802
+ T.value && V(e.emptyValue);
1800
1803
  }
1801
1804
  function F() {
1802
- e.readonly || e.disabled || (d.value ? M() : U());
1805
+ e.readonly || e.disabled || (d.value ? H() : U());
1803
1806
  }
1804
1807
  function O(a) {
1805
1808
  var m, $, D;
1806
- !((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) && M();
1809
+ !((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) && H();
1807
1810
  }
1808
1811
  function U() {
1809
1812
  d.value || (o("before-show"), d.value = !0);
1810
1813
  }
1811
- function M() {
1814
+ function H() {
1812
1815
  d.value && (o("before-hide"), d.value = !1);
1813
1816
  }
1814
- function W() {
1815
- d.value ? M() : U();
1817
+ function j() {
1818
+ d.value ? H() : U();
1816
1819
  }
1817
1820
  let R;
1818
- function H(a) {
1821
+ function K(a) {
1819
1822
  if (!(!a.key || e.readonly || e.disabled)) {
1820
1823
  if (window.clearTimeout(R), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), ["Enter", " "].includes(a.key) && (d.value = !0), ["Escape", "Tab"].includes(a.key) && (d.value ? d.value = !1 : T.value && a.key === "Escape" && A()), a.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(a.key)) {
1821
1824
  s.value += a.key.toLowerCase();
@@ -1832,16 +1835,16 @@ const Rt = ["role"], Ot = {
1832
1835
  }
1833
1836
  function N() {
1834
1837
  var a;
1835
- e.loading ? (a = y.value) == null || a.focus() : j(), o("show");
1838
+ e.loading ? (a = y.value) == null || a.focus() : P(), o("show");
1836
1839
  }
1837
1840
  function Z() {
1838
- K(), o("hide");
1841
+ G(), o("hide");
1839
1842
  }
1840
- function K() {
1843
+ function G() {
1841
1844
  var a, m;
1842
1845
  (m = (a = u.value) == null ? void 0 : a.fieldRef) == null || m.focus();
1843
1846
  }
1844
- function j() {
1847
+ function P() {
1845
1848
  var a;
1846
1849
  (a = p.value) == null || a.$el.focus();
1847
1850
  }
@@ -1857,7 +1860,7 @@ const Rt = ["role"], Ot = {
1857
1860
  ), C(
1858
1861
  () => e.loading,
1859
1862
  (a) => {
1860
- !a && d.value && X(j);
1863
+ !a && d.value && X(P);
1861
1864
  }
1862
1865
  ), (a, m) => {
1863
1866
  var $;
@@ -1885,11 +1888,11 @@ const Rt = ["role"], Ot = {
1885
1888
  "aria-haspopup": "listbox",
1886
1889
  size: e.size,
1887
1890
  onClick: F,
1888
- onKeydown: ie(H, ["stop"])
1891
+ onKeydown: ie(K, ["stop"])
1889
1892
  }, he({
1890
- append: g(() => [
1893
+ append: _(() => [
1891
1894
  h(a.$slots, "append"),
1892
- T.value && n.value ? (c(), V(b(ue), {
1895
+ T.value && n.value ? (c(), B(b(ue), {
1893
1896
  key: 0,
1894
1897
  class: "q-select__clear",
1895
1898
  "b-style": "plain",
@@ -1897,49 +1900,49 @@ const Rt = ["role"], Ot = {
1897
1900
  tabindex: "-1",
1898
1901
  onClick: A
1899
1902
  }, {
1900
- default: g(() => [
1903
+ default: _(() => [
1901
1904
  Q(b(J), te(ae(e.icons.clear)), null, 16)
1902
1905
  ]),
1903
1906
  _: 1
1904
- })) : I("", !0),
1905
- e.readonly ? I("", !0) : (c(), V(b(ue), {
1907
+ })) : L("", !0),
1908
+ e.readonly ? L("", !0) : (c(), B(b(ue), {
1906
1909
  key: 1,
1907
1910
  class: "q-select__chevron",
1908
1911
  "b-style": "plain",
1909
1912
  borderless: "",
1910
1913
  tabindex: "-1",
1911
1914
  disabled: e.disabled,
1912
- onClick: W
1915
+ onClick: j
1913
1916
  }, {
1914
- default: g(() => [
1917
+ default: _(() => [
1915
1918
  Q(b(J), te(ae(e.icons.chevron)), null, 16)
1916
1919
  ]),
1917
1920
  _: 1
1918
1921
  }, 8, ["disabled"]))
1919
1922
  ]),
1920
- default: g(() => [
1923
+ default: _(() => [
1921
1924
  w.value ? (c(), v("span", vl, [
1922
1925
  !e.readonly && !e.disabled ? (c(), v(ee, { key: 0 }, [
1923
- re(G(a.texts.placeholder), 1)
1924
- ], 64)) : I("", !0)
1925
- ])) : (c(), v("span", ml, G(z.value), 1))
1926
+ re(W(a.texts.placeholder), 1)
1927
+ ], 64)) : L("", !0)
1928
+ ])) : (c(), v("span", ml, W(z.value), 1))
1926
1929
  ]),
1927
1930
  _: 2
1928
1931
  }, [
1929
1932
  ($ = f.value) != null && $.icon || a.$slots.prepend ? {
1930
1933
  name: "prepend",
1931
- fn: g(() => {
1934
+ fn: _(() => {
1932
1935
  var D, le;
1933
1936
  return [
1934
1937
  h(a.$slots, "prepend"),
1935
- (D = f.value) != null && D.icon ? (c(), V(b(J), te(oe({ key: 0 }, (le = f.value) == null ? void 0 : le.icon)), null, 16)) : I("", !0)
1938
+ (D = f.value) != null && D.icon ? (c(), B(b(J), te(oe({ key: 0 }, (le = f.value) == null ? void 0 : le.icon)), null, 16)) : L("", !0)
1936
1939
  ];
1937
1940
  }),
1938
1941
  key: "0"
1939
1942
  } : void 0,
1940
1943
  a.$slots.extras ? {
1941
1944
  name: "extras",
1942
- fn: g(() => [
1945
+ fn: _(() => [
1943
1946
  h(a.$slots, "extras")
1944
1947
  ]),
1945
1948
  key: "1"
@@ -1957,19 +1960,19 @@ const Rt = ["role"], Ot = {
1957
1960
  onEnter: N,
1958
1961
  onLeave: Z
1959
1962
  }, {
1960
- default: g(() => [
1963
+ default: _(() => [
1961
1964
  Y("div", {
1962
1965
  ref_key: "contentRef",
1963
1966
  ref: y,
1964
1967
  class: "q-select__body",
1965
1968
  tabindex: "-1",
1966
1969
  onFocusout: O,
1967
- onKeydown: ie(H, ["stop"])
1970
+ onKeydown: ie(K, ["stop"])
1968
1971
  }, [
1969
1972
  h(a.$slots, "body.prepend"),
1970
1973
  e.loading ? (c(), v("div", hl, [
1971
1974
  Q(b(ge), { size: 24 })
1972
- ])) : (c(), V(b(Ae), {
1975
+ ])) : (c(), B(b(Ae), {
1973
1976
  key: 1,
1974
1977
  ref_key: "listRef",
1975
1978
  ref: p,
@@ -1977,14 +1980,14 @@ const Rt = ["role"], Ot = {
1977
1980
  modelValue: n.value,
1978
1981
  "onUpdate:modelValue": [
1979
1982
  m[0] || (m[0] = (D) => n.value = D),
1980
- B
1983
+ V
1981
1984
  ],
1982
1985
  items: e.items,
1983
1986
  groups: a.groups,
1984
1987
  "item-label": e.itemLabel,
1985
1988
  "item-value": e.itemValue
1986
1989
  }, {
1987
- item: g(({ item: D }) => [
1990
+ item: _(({ item: D }) => [
1988
1991
  h(a.$slots, "item", { item: D })
1989
1992
  ]),
1990
1993
  _: 3
@@ -1997,7 +2000,7 @@ const Rt = ["role"], Ot = {
1997
2000
  ], 64);
1998
2001
  };
1999
2002
  }
2000
- }), Tl = x(gl), _l = /* @__PURE__ */ L({
2003
+ }), Tl = x(gl), _l = /* @__PURE__ */ S({
2001
2004
  __name: "QThemeProvider",
2002
2005
  props: {
2003
2006
  theme: {}
@@ -2010,7 +2013,7 @@ const Rt = ["role"], Ot = {
2010
2013
  h(o.$slots, "default")
2011
2014
  ], 2));
2012
2015
  }
2013
- }), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ L({
2016
+ }), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ S({
2014
2017
  __name: "QTooltip",
2015
2018
  props: {
2016
2019
  modelValue: { type: Boolean },
@@ -2047,11 +2050,11 @@ const Rt = ["role"], Ot = {
2047
2050
  placement: l.placement,
2048
2051
  trigger: l.trigger
2049
2052
  }, {
2050
- default: g(() => [
2053
+ default: _(() => [
2051
2054
  l.html ? (c(), v("span", {
2052
2055
  key: 0,
2053
2056
  innerHTML: l.text
2054
- }, null, 8, kl)) : (c(), v("span", wl, G(l.text), 1))
2057
+ }, null, 8, kl)) : (c(), v("span", wl, W(l.text), 1))
2055
2058
  ]),
2056
2059
  _: 1
2057
2060
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
@@ -2068,8 +2071,8 @@ export {
2068
2071
  $t as QIconFont,
2069
2072
  qt as QIconImg,
2070
2073
  It as QIconSvg,
2071
- Bl as QInputGroup,
2072
- Vl as QLineLoader,
2074
+ Vl as QInputGroup,
2075
+ Bl as QLineLoader,
2073
2076
  Ae as QList,
2074
2077
  Ct as QListItem,
2075
2078
  Qt as QListItemGroup,