@quidgest/ui 0.8.5 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as xe, computed as _, ref as q, provide as Ve, inject as Ee, watch as F, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as z, 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 De, h as $e, normalizeProps as te, mergeProps as ne, reactive as Ne, onBeforeUnmount as Me, onMounted as Te, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as oe } from "vue";
1
+ import { getCurrentInstance as Be, computed as _, ref as q, provide as Ve, inject as Ee, watch as A, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as z, 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 De, h as $e, normalizeProps as te, mergeProps as ne, reactive as Ne, onBeforeUnmount as Me, onMounted as Te, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as oe } 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,7 +25,7 @@ function be(t = {}, l = {}) {
25
25
  const ye = "q-defaults";
26
26
  function Pe() {
27
27
  var d, s;
28
- const t = xe();
28
+ const t = Be();
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;
@@ -200,7 +200,7 @@ function lt(t, l) {
200
200
  activeTheme: q(e),
201
201
  themes: o
202
202
  };
203
- tt(o), F(n.activeTheme, nt, { immediate: !0 }), t.provide(de, n);
203
+ tt(o), A(n.activeTheme, nt, { immediate: !0 }), t.provide(de, n);
204
204
  }
205
205
  }
206
206
  function nt(t) {
@@ -241,13 +241,13 @@ function it(t, l) {
241
241
  const o = Ae(l);
242
242
  return o ? typeof ((e = t.props) == null ? void 0 : e[o]) < "u" : !1;
243
243
  }
244
- function B(t) {
244
+ function x(t) {
245
245
  const l = t.setup;
246
246
  return l && (t.setup = (o, e) => {
247
247
  const n = Pe();
248
248
  if (ve(n.value))
249
249
  return l(o, e);
250
- const d = xe();
250
+ const d = Be();
251
251
  if (d === null)
252
252
  return l(o, e);
253
253
  const s = new Proxy(o, {
@@ -260,7 +260,7 @@ function B(t) {
260
260
  return l(s, e);
261
261
  }), t;
262
262
  }
263
- const ge = B(st), rt = ["disabled"], dt = {
263
+ const ge = x(st), rt = ["disabled"], dt = {
264
264
  key: 0,
265
265
  class: "q-btn__spinner"
266
266
  }, ut = { class: "q-btn__content" }, ct = /* @__PURE__ */ L({
@@ -320,7 +320,7 @@ const ge = B(st), rt = ["disabled"], dt = {
320
320
  ])
321
321
  ], 10, rt));
322
322
  }
323
- }), ue = B(ct), ft = /* @__PURE__ */ L({
323
+ }), ue = x(ct), ft = /* @__PURE__ */ L({
324
324
  __name: "QButtonGroup",
325
325
  props: {
326
326
  disabled: { type: Boolean },
@@ -349,7 +349,7 @@ const ge = B(st), rt = ["disabled"], dt = {
349
349
  h(o.$slots, "default")
350
350
  ], 2));
351
351
  }
352
- }), pt = B(ft), mt = /* @__PURE__ */ L({
352
+ }), pt = x(ft), mt = /* @__PURE__ */ L({
353
353
  __name: "QButtonToggle",
354
354
  props: {
355
355
  modelValue: {},
@@ -363,7 +363,7 @@ const ge = B(st), rt = ["disabled"], dt = {
363
363
  emits: ["update:modelValue"],
364
364
  setup(t, { emit: l }) {
365
365
  const o = l, e = t, n = q(e.modelValue);
366
- F(
366
+ A(
367
367
  () => e.modelValue,
368
368
  (u) => n.value = u
369
369
  );
@@ -402,7 +402,7 @@ const ge = B(st), rt = ["disabled"], dt = {
402
402
  _: 3
403
403
  }, 8, ["class", "disabled", "borderless", "elevated"]));
404
404
  }
405
- }), Sl = B(mt), vt = /* @__PURE__ */ L({
405
+ }), Sl = x(mt), vt = /* @__PURE__ */ L({
406
406
  __name: "QIcon",
407
407
  props: {
408
408
  icon: {},
@@ -466,7 +466,11 @@ const ge = B(st), rt = ["disabled"], dt = {
466
466
  }
467
467
  }), se = {}, gt = L({
468
468
  name: "InlineSvg",
469
- emits: ["loaded", "unloaded", "error"],
469
+ emits: {
470
+ loaded: (t) => typeof t == "object",
471
+ unloaded: () => !0,
472
+ error: (t) => typeof t == "object"
473
+ },
470
474
  inheritAttrs: !1,
471
475
  render() {
472
476
  if (!this.svgElSource)
@@ -478,22 +482,39 @@ const ge = B(st), rt = ["disabled"], dt = {
478
482
  return this.copySvgAttrs(l, this.svgElSource), this.copySvgAttrs(l, t), this.copyComponentAttrs(l, this.$attrs), l.innerHTML = t.innerHTML, $e("svg", l);
479
483
  },
480
484
  props: {
485
+ /**
486
+ * The source URL of the SVG bundle.
487
+ */
481
488
  src: {
482
489
  type: String,
483
490
  required: !0
484
491
  },
492
+ /**
493
+ * The ID of the SVG symbol to be rendered.
494
+ */
485
495
  symbol: {
486
496
  type: String,
487
497
  default: ""
488
498
  },
499
+ /**
500
+ * The title to be associated with the SVG.
501
+ */
489
502
  title: {
490
503
  type: String,
491
504
  default: ""
492
505
  },
506
+ /**
507
+ * A function to transform the source SVG element before rendering.
508
+ * If not provided, no transformation will be applied.
509
+ */
493
510
  transformSource: {
494
511
  type: Function,
495
512
  default: void 0
496
513
  },
514
+ /**
515
+ * Determines whether to keep the existing SVG content visible during the loading of a new SVG.
516
+ * Set to `false` to hide content during loading.
517
+ */
497
518
  keepDuringLoading: {
498
519
  type: Boolean,
499
520
  default: !0
@@ -554,7 +575,8 @@ const ge = B(st), rt = ["disabled"], dt = {
554
575
  src(t) {
555
576
  this.getSource(t);
556
577
  }
557
- }
578
+ },
579
+ expose: []
558
580
  });
559
581
  function _t(t, l) {
560
582
  const o = t.getElementsByTagName("title");
@@ -605,7 +627,7 @@ const wt = /* @__PURE__ */ L({
605
627
  onUnloaded: s
606
628
  }, null, 8, ["class", "src", "symbol", "style"]));
607
629
  }
608
- }), J = B(vt), $t = B(ht), qt = B(yt), It = B(wt), Lt = /* @__PURE__ */ L({
630
+ }), J = x(vt), $t = x(ht), qt = x(yt), It = x(wt), Lt = /* @__PURE__ */ L({
609
631
  __name: "QList",
610
632
  props: {
611
633
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -636,39 +658,39 @@ const wt = /* @__PURE__ */ L({
636
658
  let a;
637
659
  d.value ? a = n.items.findIndex((T) => T[n.itemValue] === d.value) : a = W();
638
660
  const m = s.value;
639
- Q(a, m);
661
+ F(a, m);
640
662
  }
641
- function x(i) {
663
+ function B(i) {
642
664
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && i.preventDefault(), i.key) {
643
665
  case "ArrowDown":
644
- A("next");
666
+ Q("next");
645
667
  break;
646
668
  case "ArrowUp":
647
- A("prev");
669
+ Q("prev");
648
670
  break;
649
671
  case "Home":
650
- A("first");
672
+ Q("first");
651
673
  break;
652
674
  case "End":
653
- A("last");
675
+ Q("last");
654
676
  break;
655
677
  }
656
678
  }
657
- function A(i) {
679
+ function Q(i) {
658
680
  switch (i) {
659
681
  case "next":
660
682
  case "prev":
661
- Q(N(i));
683
+ F(N(i));
662
684
  break;
663
685
  case "first":
664
- Q(W());
686
+ F(W());
665
687
  break;
666
688
  case "last":
667
- Q(U());
689
+ F(U());
668
690
  break;
669
691
  }
670
692
  }
671
- function Q(i, a = !1) {
693
+ function F(i, a = !1) {
672
694
  var $;
673
695
  ($ = R()[i]) == null || $.focus({ preventScroll: a });
674
696
  }
@@ -716,13 +738,13 @@ const wt = /* @__PURE__ */ L({
716
738
  function j(i) {
717
739
  return i ? n.items.filter((a) => a.group === i) : n.items;
718
740
  }
719
- return F(
741
+ return A(
720
742
  () => n.modelValue,
721
743
  (i) => {
722
744
  d.value = i;
723
745
  }
724
746
  ), l({
725
- focusItem: Q,
747
+ focusItem: F,
726
748
  getItem: O,
727
749
  getAdjacentItemIndex: Z,
728
750
  getFirstFocusableItemIndex: W,
@@ -736,7 +758,7 @@ const wt = /* @__PURE__ */ L({
736
758
  onFocus: D,
737
759
  onMousedown: f,
738
760
  onMouseup: C,
739
- onKeydown: x
761
+ onKeydown: B
740
762
  }, {
741
763
  default: g(() => [
742
764
  (c(!0), v(ee, null, me(p.value, (m) => (c(), V(b(At), {
@@ -772,7 +794,7 @@ let St = 0;
772
794
  function fe(t) {
773
795
  return t || `uid-${++St}`;
774
796
  }
775
- const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-list-item__check-container" }, Vt = {
797
+ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-list-item__check-container" }, Vt = {
776
798
  check: {
777
799
  icon: "check"
778
800
  }
@@ -817,10 +839,10 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
817
839
  e.icon ? (c(), V(b(J), te(ne({ key: 0 }, e.icon)), null, 16)) : I("", !0),
818
840
  re(" " + G(e.label), 1)
819
841
  ]),
820
- Y("div", xt, [
842
+ Y("div", Bt, [
821
843
  e.selected ? (c(), V(b(J), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
822
844
  ])
823
- ], 42, Bt));
845
+ ], 42, xt));
824
846
  }
825
847
  }), Dt = ["aria-labelledby"], Tt = ["id"], Ct = /* @__PURE__ */ L({
826
848
  __name: "QListItemGroup",
@@ -844,7 +866,7 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
844
866
  h(e.$slots, "default")
845
867
  ], 8, Dt));
846
868
  }
847
- }), Qe = B(Lt), zt = B(Et), At = B(Ct);
869
+ }), Qe = x(Lt), zt = x(Et), At = x(Ct);
848
870
  function Qt(t, l, o = "right", e) {
849
871
  const n = t.getBoundingClientRect(), d = n.x + window.scrollX, s = n.y + window.scrollY, u = l == null ? void 0 : l.getBoundingClientRect(), p = (u == null ? void 0 : u.width) ?? 0, y = (u == null ? void 0 : u.height) ?? 0;
850
872
  let w = o;
@@ -870,10 +892,10 @@ function Fe(t, l, o) {
870
892
  let e = !1, n = !1;
871
893
  switch (o) {
872
894
  case "top":
873
- e = Be(t, l), n = t.top > l.height;
895
+ e = xe(t, l), n = t.top > l.height;
874
896
  break;
875
897
  case "bottom":
876
- e = Be(t, l), n = window.innerHeight - t.top - t.height > l.height;
898
+ e = xe(t, l), n = window.innerHeight - t.top - t.height > l.height;
877
899
  break;
878
900
  case "left":
879
901
  e = t.left > l.width, n = Se(t, l);
@@ -887,7 +909,7 @@ function Fe(t, l, o) {
887
909
  function Se(t, l) {
888
910
  return window.innerHeight - t.top - t.height / 2 > l.height / 2 && t.top + t.height / 2 > l.height / 2;
889
911
  }
890
- function Be(t, l) {
912
+ function xe(t, l) {
891
913
  return window.innerWidth - t.left - t.width / 2 > l.width / 2 && t.left + t.width / 2 > l.width / 2;
892
914
  }
893
915
  function Ft(t, l, o) {
@@ -945,10 +967,10 @@ const Rt = ["role"], Ot = {
945
967
  width: 0,
946
968
  placement: e.placement
947
969
  });
948
- F(
970
+ A(
949
971
  () => e.modelValue,
950
972
  () => s.visible = e.modelValue
951
- ), F(
973
+ ), A(
952
974
  () => s.visible,
953
975
  () => s.animating = !0
954
976
  );
@@ -988,7 +1010,7 @@ const Rt = ["role"], Ot = {
988
1010
  }
989
1011
  }
990
1012
  }
991
- F([() => s.visible, () => e.placement], y);
1013
+ A([() => s.visible, () => e.placement], y);
992
1014
  let w;
993
1015
  function f() {
994
1016
  D(0);
@@ -1004,7 +1026,7 @@ const Rt = ["role"], Ot = {
1004
1026
  });
1005
1027
  }, i));
1006
1028
  }
1007
- function x() {
1029
+ function B() {
1008
1030
  clearTimeout(w), w = void 0, s.visible = !1, X(() => {
1009
1031
  if (e.anchor && e.trigger === "click") {
1010
1032
  const i = le(e.anchor);
@@ -1012,12 +1034,12 @@ const Rt = ["role"], Ot = {
1012
1034
  }
1013
1035
  });
1014
1036
  }
1015
- let A;
1016
- function Q() {
1037
+ let Q;
1038
+ function F() {
1017
1039
  o("enter");
1018
1040
  }
1019
1041
  function R() {
1020
- window.clearTimeout(A), A = window.setTimeout(() => s.animating = !1, 200), o("leave");
1042
+ window.clearTimeout(Q), Q = window.setTimeout(() => s.animating = !1, 200), o("leave");
1021
1043
  }
1022
1044
  let O;
1023
1045
  function M() {
@@ -1031,7 +1053,7 @@ const Rt = ["role"], Ot = {
1031
1053
  i.addEventListener("click", f);
1032
1054
  break;
1033
1055
  case "hover":
1034
- i.addEventListener("mouseenter", C), i.addEventListener("mouseleave", x), i.addEventListener("focusin", f), i.addEventListener("focusout", x);
1056
+ i.addEventListener("mouseenter", C), i.addEventListener("mouseleave", B), i.addEventListener("focusin", f), i.addEventListener("focusout", B);
1035
1057
  break;
1036
1058
  }
1037
1059
  });
@@ -1059,7 +1081,7 @@ const Rt = ["role"], Ot = {
1059
1081
  i.removeEventListener("click", f);
1060
1082
  break;
1061
1083
  case "hover":
1062
- i.removeEventListener("mouseenter", C), i.removeEventListener("mouseleave", x), i.removeEventListener("focusin", f), i.removeEventListener("focusout", x);
1084
+ i.removeEventListener("mouseenter", C), i.removeEventListener("mouseleave", B), i.removeEventListener("focusin", f), i.removeEventListener("focusout", B);
1063
1085
  break;
1064
1086
  }
1065
1087
  }
@@ -1070,13 +1092,13 @@ const Rt = ["role"], Ot = {
1070
1092
  function Z() {
1071
1093
  if (!e.anchor)
1072
1094
  return;
1073
- le(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : x();
1095
+ le(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : B();
1074
1096
  }
1075
1097
  function K() {
1076
- W(), e.spy && Z(), e.anchor && document.addEventListener("scroll", x);
1098
+ W(), e.spy && Z(), e.anchor && document.addEventListener("scroll", B);
1077
1099
  }
1078
1100
  function j() {
1079
- H(), e.spy && (clearTimeout(N), N = void 0), document.removeEventListener("scroll", x);
1101
+ H(), e.spy && (clearTimeout(N), N = void 0), document.removeEventListener("scroll", B);
1080
1102
  }
1081
1103
  return Me(() => {
1082
1104
  U(), j();
@@ -1084,7 +1106,7 @@ const Rt = ["role"], Ot = {
1084
1106
  X(() => {
1085
1107
  M(), y();
1086
1108
  });
1087
- }), F(
1109
+ }), A(
1088
1110
  () => s.visible,
1089
1111
  (i) => {
1090
1112
  i ? K() : j(), o("update:modelValue", i);
@@ -1104,7 +1126,7 @@ const Rt = ["role"], Ot = {
1104
1126
  z(Ke, {
1105
1127
  name: e.transition,
1106
1128
  appear: "",
1107
- onEnter: Q,
1129
+ onEnter: F,
1108
1130
  onLeave: R
1109
1131
  }, {
1110
1132
  default: g(() => [
@@ -1120,8 +1142,8 @@ const Rt = ["role"], Ot = {
1120
1142
  tabindex: "-1",
1121
1143
  role: d.value ? "dialog" : void 0
1122
1144
  }, i.$attrs, {
1123
- onKeydown: Ge(x, ["escape"]),
1124
- onBlur: x
1145
+ onKeydown: Ge(B, ["escape"]),
1146
+ onBlur: B
1125
1147
  }), [
1126
1148
  e.arrow ? (c(), v("div", Ot)) : I("", !0),
1127
1149
  h(i.$slots, "default")
@@ -1132,7 +1154,7 @@ const Rt = ["role"], Ot = {
1132
1154
  }, 8, ["name"])
1133
1155
  ], 8, ["disabled", "to"]));
1134
1156
  }
1135
- }), pe = B(Ut), Nt = ["id"], Mt = {
1157
+ }), pe = x(Ut), Nt = ["id"], Mt = {
1136
1158
  key: 0,
1137
1159
  class: "q-field__label"
1138
1160
  }, Ht = ["for"], Kt = {
@@ -1201,7 +1223,7 @@ const Rt = ["role"], Ot = {
1201
1223
  ])) : I("", !0)
1202
1224
  ], 10, Nt));
1203
1225
  }
1204
- }), _e = B(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__ */ L({
1205
1227
  inheritAttrs: !1,
1206
1228
  __name: "QTextField",
1207
1229
  props: {
@@ -1230,7 +1252,7 @@ const Rt = ["role"], Ot = {
1230
1252
  }), w = _(
1231
1253
  () => n.readonly || n.disabled ? "" : n.placeholder
1232
1254
  );
1233
- return F(
1255
+ return A(
1234
1256
  () => n.modelValue,
1235
1257
  (f) => s.value = f
1236
1258
  ), l({
@@ -1299,7 +1321,7 @@ const Rt = ["role"], Ot = {
1299
1321
  } : void 0
1300
1322
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1301
1323
  }
1302
- }), Yt = B(Xt), Zt = {
1324
+ }), Yt = x(Xt), Zt = {
1303
1325
  key: 0,
1304
1326
  class: "q-select__loader"
1305
1327
  }, Jt = {
@@ -1342,17 +1364,15 @@ const Rt = ["role"], Ot = {
1342
1364
  setup(t, { expose: l, emit: o }) {
1343
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);
1344
1366
  Te(U);
1345
- const C = _(
1346
- () => n.clearable && !n.readonly && !n.disabled && !n.loading
1347
- ), D = _(() => {
1367
+ const C = _(() => n.clearable && !n.readonly && !n.disabled), D = _(() => {
1348
1368
  var r;
1349
1369
  return n.filterMode === "manual" || !O.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
1350
1370
  (k) => k[n.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
1351
1371
  );
1352
- }), x = _(() => {
1372
+ }), B = _(() => {
1353
1373
  var r;
1354
1374
  return (r = n.items) == null ? void 0 : r.find((k) => k[n.itemValue] === d.value);
1355
- }), A = _(() => x.value === void 0), Q = _(() => {
1375
+ }), Q = _(() => B.value === void 0), F = _(() => {
1356
1376
  const r = p.value;
1357
1377
  if (r !== void 0 && D.value[r])
1358
1378
  return D.value[r];
@@ -1364,7 +1384,7 @@ const Rt = ["role"], Ot = {
1364
1384
  return r == null ? void 0 : r.id;
1365
1385
  }), O = _(() => {
1366
1386
  var r;
1367
- return u.value.length > 0 && u.value !== ((r = x.value) == null ? void 0 : r[n.itemLabel]);
1387
+ return u.value.length > 0 && u.value !== ((r = B.value) == null ? void 0 : r[n.itemLabel]);
1368
1388
  });
1369
1389
  function M(r) {
1370
1390
  d.value = r, U(), e("update:modelValue", r);
@@ -1374,7 +1394,7 @@ const Rt = ["role"], Ot = {
1374
1394
  }
1375
1395
  function U() {
1376
1396
  var r;
1377
- u.value = ((r = x.value) == null ? void 0 : r[n.itemLabel]) || "";
1397
+ u.value = ((r = B.value) == null ? void 0 : r[n.itemLabel]) || "";
1378
1398
  }
1379
1399
  function H() {
1380
1400
  s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0, ae());
@@ -1389,8 +1409,8 @@ const Rt = ["role"], Ot = {
1389
1409
  C.value && (M(n.emptyValue), p.value = void 0);
1390
1410
  }
1391
1411
  function j() {
1392
- if (H(), x.value !== void 0) {
1393
- const r = D.value.indexOf(x.value);
1412
+ if (H(), B.value !== void 0) {
1413
+ const r = D.value.indexOf(B.value);
1394
1414
  r !== -1 && X(() => ke(r));
1395
1415
  }
1396
1416
  }
@@ -1411,15 +1431,15 @@ const Rt = ["role"], Ot = {
1411
1431
  r.key === "ArrowDown" ? a() : m();
1412
1432
  }));
1413
1433
  else if (r.key === "Enter") {
1414
- if (Q.value === void 0)
1434
+ if (F.value === void 0)
1415
1435
  return;
1416
- W(Q.value[n.itemValue]);
1436
+ W(F.value[n.itemValue]);
1417
1437
  } else
1418
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();
1419
1439
  }
1420
1440
  function a() {
1421
1441
  var r, k;
1422
- if (A.value)
1442
+ if (Q.value)
1423
1443
  p.value = (k = w.value) == null ? void 0 : k.getFirstFocusableItemIndex();
1424
1444
  else {
1425
1445
  const S = D.value.findIndex(
@@ -1458,14 +1478,14 @@ const Rt = ["role"], Ot = {
1458
1478
  const k = (S = w.value) == null ? void 0 : S.getItem(r);
1459
1479
  k == null || k.scrollIntoView({ block: "nearest", inline: "start" });
1460
1480
  }
1461
- return F(
1481
+ return A(
1462
1482
  () => n.modelValue,
1463
1483
  (r) => {
1464
- d.value = r, U();
1484
+ d.value = r;
1465
1485
  }
1466
- ), F(p, (r) => {
1486
+ ), A([d, () => n.items], U, { deep: !0 }), A(p, (r) => {
1467
1487
  r !== void 0 && ke(r);
1468
- }), F(u, (r) => {
1488
+ }), A(u, (r) => {
1469
1489
  !r && C.value ? K() : s.value && n.selectionMode === "automatic" && X(a), e("update:inputValue", r);
1470
1490
  }), l({
1471
1491
  triggerEl: y
@@ -1588,7 +1608,7 @@ const Rt = ["role"], Ot = {
1588
1608
  k[1] || (k[1] = (P) => d.value = P),
1589
1609
  W
1590
1610
  ],
1591
- highlighted: (S = Q.value) == null ? void 0 : S[n.itemValue],
1611
+ highlighted: (S = F.value) == null ? void 0 : S[n.itemValue],
1592
1612
  items: D.value,
1593
1613
  groups: r.groups,
1594
1614
  "item-label": n.itemLabel,
@@ -1608,7 +1628,7 @@ const Rt = ["role"], Ot = {
1608
1628
  }, 8, ["modelValue", "anchor"])
1609
1629
  ], 64));
1610
1630
  }
1611
- }), Bl = B(ll), nl = {
1631
+ }), xl = x(ll), nl = {
1612
1632
  key: 0,
1613
1633
  class: "q-input-group__prepend"
1614
1634
  }, ol = { key: 0 }, al = {
@@ -1656,7 +1676,7 @@ const Rt = ["role"], Ot = {
1656
1676
  _: 3
1657
1677
  }, 8, ["id", "class", "label", "required", "size"]));
1658
1678
  }
1659
- }), xl = B(il), rl = /* @__PURE__ */ L({
1679
+ }), Bl = x(il), rl = /* @__PURE__ */ L({
1660
1680
  __name: "QLineLoader",
1661
1681
  props: {
1662
1682
  class: { default: void 0 }
@@ -1667,7 +1687,7 @@ const Rt = ["role"], Ot = {
1667
1687
  class: E(["q-line-loader", l.class])
1668
1688
  }, null, 2));
1669
1689
  }
1670
- }), Vl = B(rl), dl = {
1690
+ }), Vl = x(rl), dl = {
1671
1691
  key: 0,
1672
1692
  class: "q-popover__header"
1673
1693
  }, ul = {
@@ -1715,7 +1735,7 @@ const Rt = ["role"], Ot = {
1715
1735
  _: 3
1716
1736
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
1717
1737
  }
1718
- }), El = B(pl), ml = {
1738
+ }), El = x(pl), ml = {
1719
1739
  key: 0,
1720
1740
  class: "q-select__value"
1721
1741
  }, vl = {
@@ -1766,13 +1786,13 @@ const Rt = ["role"], Ot = {
1766
1786
  ), D = _(
1767
1787
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1768
1788
  );
1769
- function x(a) {
1789
+ function B(a) {
1770
1790
  n.value = a, o("update:modelValue", a), M();
1771
1791
  }
1772
- function A() {
1773
- D.value && x(e.emptyValue);
1774
- }
1775
1792
  function Q() {
1793
+ D.value && B(e.emptyValue);
1794
+ }
1795
+ function F() {
1776
1796
  e.readonly || e.disabled || (d.value ? M() : O());
1777
1797
  }
1778
1798
  function R(a) {
@@ -1791,7 +1811,7 @@ const Rt = ["role"], Ot = {
1791
1811
  let U;
1792
1812
  function H(a) {
1793
1813
  if (!(!a.key || e.readonly || e.disabled)) {
1794
- if (window.clearTimeout(U), ["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 : D.value && a.key === "Escape" && A()), a.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(a.key)) {
1814
+ if (window.clearTimeout(U), ["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 : D.value && a.key === "Escape" && Q()), a.key === "Delete" && e.clearable && Q(), /^[a-z]$/i.test(a.key)) {
1795
1815
  s.value += a.key.toLowerCase();
1796
1816
  for (let m = 0; m < e.items.length; m++)
1797
1817
  if (e.items[m][e.itemLabel].toLowerCase().startsWith(s.value)) {
@@ -1823,12 +1843,12 @@ const Rt = ["role"], Ot = {
1823
1843
  var m;
1824
1844
  (m = p.value) == null || m.focusItem(a);
1825
1845
  }
1826
- return F(
1846
+ return A(
1827
1847
  () => e.modelValue,
1828
1848
  (a) => {
1829
1849
  n.value = a;
1830
1850
  }
1831
- ), F(
1851
+ ), A(
1832
1852
  () => e.loading,
1833
1853
  (a) => {
1834
1854
  !a && d.value && X(j);
@@ -1858,7 +1878,7 @@ const Rt = ["role"], Ot = {
1858
1878
  "aria-expanded": d.value,
1859
1879
  "aria-haspopup": "listbox",
1860
1880
  size: e.size,
1861
- onClick: Q,
1881
+ onClick: F,
1862
1882
  onKeydown: ie(H, ["stop"])
1863
1883
  }, he({
1864
1884
  append: g(() => [
@@ -1869,7 +1889,7 @@ const Rt = ["role"], Ot = {
1869
1889
  "b-style": "plain",
1870
1890
  borderless: "",
1871
1891
  tabindex: "-1",
1872
- onClick: A
1892
+ onClick: Q
1873
1893
  }, {
1874
1894
  default: g(() => [
1875
1895
  z(b(J), te(oe(e.icons.clear)), null, 16)
@@ -1951,7 +1971,7 @@ const Rt = ["role"], Ot = {
1951
1971
  modelValue: n.value,
1952
1972
  "onUpdate:modelValue": [
1953
1973
  m[0] || (m[0] = (T) => n.value = T),
1954
- x
1974
+ B
1955
1975
  ],
1956
1976
  items: e.items,
1957
1977
  groups: a.groups,
@@ -1971,7 +1991,7 @@ const Rt = ["role"], Ot = {
1971
1991
  ], 64);
1972
1992
  };
1973
1993
  }
1974
- }), Dl = B(gl), _l = /* @__PURE__ */ L({
1994
+ }), Dl = x(gl), _l = /* @__PURE__ */ L({
1975
1995
  __name: "QThemeProvider",
1976
1996
  props: {
1977
1997
  theme: {}
@@ -1984,7 +2004,7 @@ const Rt = ["role"], Ot = {
1984
2004
  h(o.$slots, "default")
1985
2005
  ], 2));
1986
2006
  }
1987
- }), Tl = B(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ L({
2007
+ }), Tl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ L({
1988
2008
  __name: "QTooltip",
1989
2009
  props: {
1990
2010
  modelValue: { type: Boolean },
@@ -2031,18 +2051,18 @@ const Rt = ["role"], Ot = {
2031
2051
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
2032
2052
  ], 64));
2033
2053
  }
2034
- }), Cl = B($l);
2054
+ }), Cl = x($l);
2035
2055
  export {
2036
2056
  ue as QButton,
2037
2057
  pt as QButtonGroup,
2038
2058
  Sl as QButtonToggle,
2039
- Bl as QCombobox,
2059
+ xl as QCombobox,
2040
2060
  _e as QField,
2041
2061
  J as QIcon,
2042
2062
  $t as QIconFont,
2043
2063
  qt as QIconImg,
2044
2064
  It as QIconSvg,
2045
- xl as QInputGroup,
2065
+ Bl as QInputGroup,
2046
2066
  Vl as QLineLoader,
2047
2067
  Qe as QList,
2048
2068
  zt as QListItem,