@quidgest/ui 0.8.1 → 0.8.3

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 k, ref as q, provide as Se, inject as xe, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as V, normalizeStyle as se, createElementVNode as P, withModifiers as te, createVNode as j, unref as y, createCommentVNode as L, Fragment as J, createTextVNode as oe, toDisplayString as M, renderSlot as b, toRef as ge, createBlock as x, withCtx as $, renderList as ce, resolveDynamicComponent as Ve, h as _e, normalizeProps as re, mergeProps as Z, reactive as Fe, onBeforeUnmount as Re, onMounted as Ee, nextTick as W, Teleport as Oe, Transition as Ue, withKeys as Me, createSlots as pe, withDirectives as Ne, vModelDynamic as He, guardReactiveProps as ke } from "vue";
1
+ import { getCurrentInstance as Be, computed as k, ref as q, provide as Se, inject as xe, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as x, normalizeStyle as se, createElementVNode as P, withModifiers as te, createVNode as M, unref as y, createCommentVNode as L, Fragment as J, createTextVNode as oe, toDisplayString as N, renderSlot as b, toRef as ge, createBlock as E, withCtx as $, renderList as ce, resolveDynamicComponent as Ve, h as _e, normalizeProps as re, mergeProps as Z, reactive as Fe, onBeforeUnmount as Re, onMounted as Ee, nextTick as j, Teleport as Oe, Transition as Ue, withKeys as Me, createSlots as pe, withDirectives as Ne, vModelDynamic as He, guardReactiveProps as ke } from "vue";
2
2
  function fe(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
  }
@@ -53,7 +53,7 @@ function Ge() {
53
53
  throw new Error("[Quidgest UI] Could not find theme instance");
54
54
  return t;
55
55
  }
56
- function wn(t) {
56
+ function $n(t) {
57
57
  const n = Ge(), o = {
58
58
  activeTheme: q(t),
59
59
  themes: n.themes
@@ -168,7 +168,7 @@ function Ye(t) {
168
168
  function qe(t) {
169
169
  return t ? `--q-theme-${ze(t)}` : "";
170
170
  }
171
- function $n(t = {}) {
171
+ function qn(t = {}) {
172
172
  return { install: (o) => {
173
173
  const e = t.components || {};
174
174
  for (const r in e)
@@ -231,7 +231,7 @@ const et = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
231
231
  "font-size": n.size !== 48 ? `${n.size}px` : void 0
232
232
  }));
233
233
  return (e, l) => (u(), v("div", {
234
- class: V(["q-spinner-loader", n.class]),
234
+ class: x(["q-spinner-loader", n.class]),
235
235
  style: se(o.value)
236
236
  }, tt, 6));
237
237
  }
@@ -302,20 +302,20 @@ const he = S(nt), ot = ["disabled"], at = {
302
302
  });
303
303
  return (d, m) => (u(), v("button", {
304
304
  type: "button",
305
- class: V(s.value),
305
+ class: x(s.value),
306
306
  disabled: l.value,
307
307
  onClick: te(r, ["stop", "prevent"])
308
308
  }, [
309
309
  d.loading ? (u(), v("div", at, [
310
- j(y(he), { size: 20 })
310
+ M(y(he), { size: 20 })
311
311
  ])) : L("", !0),
312
312
  P("span", st, [
313
313
  d.iconOnRight ? (u(), v(J, { key: 0 }, [
314
- oe(M(e.label), 1)
314
+ oe(N(e.label), 1)
315
315
  ], 64)) : L("", !0),
316
316
  b(d.$slots, "default"),
317
317
  d.iconOnRight ? L("", !0) : (u(), v(J, { key: 1 }, [
318
- oe(M(e.label), 1)
318
+ oe(N(e.label), 1)
319
319
  ], 64))
320
320
  ])
321
321
  ], 10, ot));
@@ -338,7 +338,7 @@ const he = S(nt), ot = ["disabled"], at = {
338
338
  elevated: !1
339
339
  }
340
340
  }), (o, e) => (u(), v("div", {
341
- class: V([
341
+ class: x([
342
342
  "q-btn-group",
343
343
  {
344
344
  "q-btn-group--elevated": n.elevated
@@ -378,15 +378,15 @@ const he = S(nt), ot = ["disabled"], at = {
378
378
  function s(d) {
379
379
  r.value === d.key && !e.required ? r.value = void 0 : r.value = d.key;
380
380
  }
381
- return (d, m) => (u(), x(y(ut), {
381
+ return (d, m) => (u(), E(y(ut), {
382
382
  "b-style": "secondary",
383
- class: V(e.class),
383
+ class: x(e.class),
384
384
  disabled: e.disabled,
385
385
  borderless: e.borderless,
386
386
  elevated: e.elevated
387
387
  }, {
388
388
  default: $(() => [
389
- (u(!0), v(J, null, ce(e.options, (h) => (u(), x(y(rt), {
389
+ (u(!0), v(J, null, ce(e.options, (h) => (u(), E(y(rt), {
390
390
  key: h.key,
391
391
  title: h.title,
392
392
  label: h.label,
@@ -402,7 +402,7 @@ const he = S(nt), ot = ["disabled"], at = {
402
402
  _: 3
403
403
  }, 8, ["class", "disabled", "borderless", "elevated"]));
404
404
  }
405
- }), qn = S(ct), ft = /* @__PURE__ */ B({
405
+ }), In = S(ct), ft = /* @__PURE__ */ B({
406
406
  __name: "QIcon",
407
407
  props: {
408
408
  icon: {},
@@ -423,8 +423,8 @@ const he = S(nt), ot = ["disabled"], at = {
423
423
  return;
424
424
  }
425
425
  });
426
- return (e, l) => (u(), x(Ve(o.value), {
427
- class: V(n.class),
426
+ return (e, l) => (u(), E(Ve(o.value), {
427
+ class: x(n.class),
428
428
  icon: n.icon,
429
429
  size: n.size
430
430
  }, null, 8, ["class", "icon", "size"]));
@@ -443,7 +443,7 @@ const he = S(nt), ot = ["disabled"], at = {
443
443
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
444
444
  }));
445
445
  return (r, s) => (u(), v("i", {
446
- class: V(["q-icon", "q-icon__font", o.value, e.value, n.class]),
446
+ class: x(["q-icon", "q-icon__font", o.value, e.value, n.class]),
447
447
  style: se(l.value)
448
448
  }, null, 6));
449
449
  }
@@ -460,7 +460,7 @@ const he = S(nt), ot = ["disabled"], at = {
460
460
  }));
461
461
  return (e, l) => (u(), v("img", {
462
462
  src: n.icon,
463
- class: V(["q-icon", "q-icon__img", n.class]),
463
+ class: x(["q-icon", "q-icon__img", n.class]),
464
464
  style: se(o.value)
465
465
  }, null, 14, mt));
466
466
  }
@@ -596,8 +596,8 @@ const gt = /* @__PURE__ */ B({
596
596
  function s() {
597
597
  o("unloaded");
598
598
  }
599
- return (d, m) => (u(), x(y(ht), {
600
- class: V(["q-icon", "q-icon__svg", e.class]),
599
+ return (d, m) => (u(), E(y(ht), {
600
+ class: x(["q-icon", "q-icon__svg", e.class]),
601
601
  src: e.bundle,
602
602
  symbol: e.icon,
603
603
  style: se(l.value),
@@ -664,7 +664,7 @@ const gt = /* @__PURE__ */ B({
664
664
  O(A());
665
665
  break;
666
666
  case "last":
667
- O(N());
667
+ O(H());
668
668
  break;
669
669
  }
670
670
  }
@@ -687,24 +687,24 @@ const gt = /* @__PURE__ */ B({
687
687
  const a = R(), f = a.find((g) => Y(g));
688
688
  return f ? a.indexOf(f) : -1;
689
689
  }
690
- function N() {
690
+ function H() {
691
691
  const a = R(), f = [...a].reverse().find((g) => Y(g));
692
692
  return f ? a.indexOf(f) : -1;
693
693
  }
694
- function H(a, f, g) {
694
+ function K(a, f, g) {
695
695
  return f === "prev" && a === 0 || f === "next" && a === g.length - 1;
696
696
  }
697
697
  function U(a) {
698
698
  const f = X();
699
- return K(f, a);
699
+ return G(f, a);
700
700
  }
701
- function K(a, f) {
701
+ function G(a, f) {
702
702
  const g = R();
703
- if (H(a, f, g))
703
+ if (K(a, f, g))
704
704
  return a;
705
705
  let I = a + (f === "next" ? 1 : -1);
706
706
  for (; !Y(g[I]); ) {
707
- if (H(I, f, g))
707
+ if (K(I, f, g))
708
708
  return a;
709
709
  I += f === "next" ? 1 : -1;
710
710
  }
@@ -724,13 +724,13 @@ const gt = /* @__PURE__ */ B({
724
724
  ), n({
725
725
  focusItem: O,
726
726
  getItem: C,
727
- getAdjacentItemIndex: K,
727
+ getAdjacentItemIndex: G,
728
728
  getFirstFocusableItemIndex: A,
729
- getLastFocusableItemIndex: N
730
- }), (a, f) => (u(), x(Ve(d.value), {
729
+ getLastFocusableItemIndex: H
730
+ }), (a, f) => (u(), E(Ve(d.value), {
731
731
  ref_key: "listRef",
732
732
  ref: h,
733
- class: V(["q-list", { "q-list--disabled": l.disabled }, l.class]),
733
+ class: x(["q-list", { "q-list--disabled": l.disabled }, l.class]),
734
734
  role: "listbox",
735
735
  tabindex: l.disabled ? -1 : 0,
736
736
  onFocus: T,
@@ -739,13 +739,13 @@ const gt = /* @__PURE__ */ B({
739
739
  onKeydown: D
740
740
  }, {
741
741
  default: $(() => [
742
- (u(!0), v(J, null, ce(m.value, (g) => (u(), x(y(Tt), {
742
+ (u(!0), v(J, null, ce(m.value, (g) => (u(), E(y(Tt), {
743
743
  key: g.id,
744
744
  title: m.value.length === 1 ? void 0 : g.title,
745
745
  disabled: g.disabled
746
746
  }, {
747
747
  default: $(() => [
748
- (u(!0), v(J, null, ce(c(g.id), (I) => (u(), x(y(Dt), {
748
+ (u(!0), v(J, null, ce(c(g.id), (I) => (u(), E(y(Dt), {
749
749
  key: I[l.itemValue],
750
750
  value: I[l.itemValue],
751
751
  label: I[l.itemLabel],
@@ -800,7 +800,7 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
800
800
  id: y(l),
801
801
  role: "option",
802
802
  tabindex: e.disabled ? void 0 : -2,
803
- class: V([
803
+ class: x([
804
804
  "q-list-item",
805
805
  {
806
806
  "q-list-item--disabled": e.disabled,
@@ -814,11 +814,11 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
814
814
  onClick: te(r, ["stop", "prevent"])
815
815
  }, [
816
816
  b(d.$slots, "default", {}, () => [
817
- e.icon ? (u(), x(y(ee), re(Z({ key: 0 }, e.icon)), null, 16)) : L("", !0),
818
- oe(" " + M(e.label), 1)
817
+ e.icon ? (u(), E(y(ee), re(Z({ key: 0 }, e.icon)), null, 16)) : L("", !0),
818
+ oe(" " + N(e.label), 1)
819
819
  ]),
820
820
  P("div", Lt, [
821
- e.selected ? (u(), x(y(ee), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
821
+ e.selected ? (u(), E(y(ee), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
822
822
  ])
823
823
  ], 42, It));
824
824
  }
@@ -840,7 +840,7 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
840
840
  id: y(o),
841
841
  class: "q-list-item-group__title",
842
842
  role: "presentation"
843
- }, M(n.title), 9, Vt)) : L("", !0),
843
+ }, N(n.title), 9, Vt)) : L("", !0),
844
844
  b(e.$slots, "default")
845
845
  ], 8, xt));
846
846
  }
@@ -998,14 +998,14 @@ const Qt = ["role"], At = {
998
998
  }
999
999
  function T(a) {
1000
1000
  _ || (_ = window.setTimeout(() => {
1001
- s.visible = !0, W(() => {
1001
+ s.visible = !0, j(() => {
1002
1002
  var f;
1003
1003
  e.trigger === "click" && ((f = m.value) == null || f.focus());
1004
1004
  });
1005
1005
  }, a));
1006
1006
  }
1007
1007
  function D() {
1008
- clearTimeout(_), _ = void 0, s.visible = !1, W(() => {
1008
+ clearTimeout(_), _ = void 0, s.visible = !1, j(() => {
1009
1009
  if (e.anchor && e.trigger === "click") {
1010
1010
  const a = ne(e.anchor);
1011
1011
  a == null || a.focus();
@@ -1021,7 +1021,7 @@ const Qt = ["role"], At = {
1021
1021
  }
1022
1022
  let C;
1023
1023
  function X() {
1024
- W(() => {
1024
+ j(() => {
1025
1025
  if (!e.anchor)
1026
1026
  return;
1027
1027
  const a = ne(e.anchor);
@@ -1037,7 +1037,7 @@ const Qt = ["role"], At = {
1037
1037
  });
1038
1038
  }
1039
1039
  function A() {
1040
- W(() => {
1040
+ j(() => {
1041
1041
  if (!e.anchor)
1042
1042
  return;
1043
1043
  const a = ne(e.anchor);
@@ -1049,7 +1049,7 @@ const Qt = ["role"], At = {
1049
1049
  }), h());
1050
1050
  });
1051
1051
  }
1052
- function N() {
1052
+ function H() {
1053
1053
  if (!e.anchor)
1054
1054
  return;
1055
1055
  const a = ne(e.anchor);
@@ -1063,25 +1063,25 @@ const Qt = ["role"], At = {
1063
1063
  break;
1064
1064
  }
1065
1065
  }
1066
- function H() {
1066
+ function K() {
1067
1067
  window.removeEventListener("scroll", h), window.removeEventListener("resize", h), C == null || C.disconnect();
1068
1068
  }
1069
1069
  let U;
1070
- function K() {
1070
+ function G() {
1071
1071
  if (!e.anchor)
1072
1072
  return;
1073
- ne(e.anchor) ? (h(), U = window.setTimeout(K, 100)) : D();
1073
+ ne(e.anchor) ? (h(), U = window.setTimeout(G, 100)) : D();
1074
1074
  }
1075
1075
  function Y() {
1076
- A(), e.spy && K();
1076
+ A(), e.spy && G();
1077
1077
  }
1078
1078
  function c() {
1079
- H(), e.spy && (clearTimeout(U), U = void 0);
1079
+ K(), e.spy && (clearTimeout(U), U = void 0);
1080
1080
  }
1081
1081
  return Re(() => {
1082
- N(), c();
1082
+ H(), c();
1083
1083
  }), Ee(() => {
1084
- W(() => {
1084
+ j(() => {
1085
1085
  X(), h();
1086
1086
  });
1087
1087
  }), F(
@@ -1090,18 +1090,18 @@ const Qt = ["role"], At = {
1090
1090
  a ? Y() : c();
1091
1091
  },
1092
1092
  { immediate: !0 }
1093
- ), (a, f) => (u(), x(Oe, {
1093
+ ), (a, f) => (u(), E(Oe, {
1094
1094
  disabled: !s.visible && !s.animating || !e.attach,
1095
1095
  to: e.attach
1096
1096
  }, [
1097
1097
  r.value ? (u(), v("div", {
1098
1098
  key: 0,
1099
- class: V([
1099
+ class: x([
1100
1100
  "q-overlay__underlay",
1101
1101
  { "q-overlay__underlay--blur": e.backdropBlur }
1102
1102
  ])
1103
1103
  }, null, 2)) : L("", !0),
1104
- j(Ue, {
1104
+ M(Ue, {
1105
1105
  name: e.transition,
1106
1106
  appear: "",
1107
1107
  onEnter: O,
@@ -1110,7 +1110,7 @@ const Qt = ["role"], At = {
1110
1110
  default: $(() => [
1111
1111
  s.visible ? (u(), v("div", {
1112
1112
  key: 0,
1113
- class: V(l.value),
1113
+ class: x(l.value),
1114
1114
  style: se(d.value)
1115
1115
  }, [
1116
1116
  P("div", Z({
@@ -1163,7 +1163,7 @@ const Qt = ["role"], At = {
1163
1163
  fieldRef: l
1164
1164
  }), (s, d) => (u(), v("div", {
1165
1165
  id: y(e),
1166
- class: V([
1166
+ class: x([
1167
1167
  "q-field",
1168
1168
  `q-field--${o.size}`,
1169
1169
  {
@@ -1178,7 +1178,7 @@ const Qt = ["role"], At = {
1178
1178
  b(s.$slots, "label.prepend"),
1179
1179
  P("label", {
1180
1180
  for: o.for
1181
- }, M(o.label), 9, Ut),
1181
+ }, N(o.label), 9, Ut),
1182
1182
  b(s.$slots, "label.append")
1183
1183
  ])) : L("", !0),
1184
1184
  b(s.$slots, "control", {}, () => [
@@ -1239,10 +1239,10 @@ const Qt = ["role"], At = {
1239
1239
  return (p = d.value) == null ? void 0 : p.fieldRef;
1240
1240
  }),
1241
1241
  inputRef: m
1242
- }), (p, z) => (u(), x(y(be), {
1242
+ }), (p, z) => (u(), E(y(be), {
1243
1243
  ref_key: "fieldRef",
1244
1244
  ref: d,
1245
- class: V(["q-text-field", l.class]),
1245
+ class: x(["q-text-field", l.class]),
1246
1246
  for: y(r),
1247
1247
  label: l.label,
1248
1248
  size: l.size,
@@ -1300,15 +1300,18 @@ const Qt = ["role"], At = {
1300
1300
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1301
1301
  }
1302
1302
  }), jt = S(Wt), Pt = {
1303
- key: 2,
1303
+ key: 0,
1304
1304
  class: "q-select__loader"
1305
1305
  }, Xt = {
1306
- noData: "No data available"
1306
+ key: 2,
1307
+ class: "q-select__loader"
1307
1308
  }, Yt = {
1309
+ noData: "No data available"
1310
+ }, Zt = {
1308
1311
  clear: {
1309
1312
  icon: "close"
1310
1313
  }
1311
- }, Zt = /* @__PURE__ */ B({
1314
+ }, Jt = /* @__PURE__ */ B({
1312
1315
  __name: "QCombobox",
1313
1316
  props: {
1314
1317
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1327,8 +1330,8 @@ const Qt = ["role"], At = {
1327
1330
  itemValue: { default: "key" },
1328
1331
  itemLabel: { default: "label" },
1329
1332
  size: { default: void 0 },
1330
- texts: { default: () => Xt },
1331
- icons: { default: () => Yt },
1333
+ texts: { default: () => Yt },
1334
+ icons: { default: () => Zt },
1332
1335
  class: { default: void 0 }
1333
1336
  },
1334
1337
  emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
@@ -1363,41 +1366,41 @@ const Qt = ["role"], At = {
1363
1366
  r.value = i, A(), e("update:modelValue", i);
1364
1367
  }
1365
1368
  function X(i) {
1366
- C(i), H();
1369
+ C(i), K();
1367
1370
  }
1368
1371
  function A() {
1369
1372
  var i;
1370
1373
  d.value = ((i = D.value) == null ? void 0 : i[l.itemLabel]) || "";
1371
1374
  }
1372
- function N() {
1375
+ function H() {
1373
1376
  s.value || l.readonly || l.disabled || (e("before-show"), s.value = !0);
1374
1377
  }
1375
- function H() {
1378
+ function K() {
1376
1379
  s.value && (e("before-hide"), s.value = !1, m.value = void 0);
1377
1380
  }
1378
1381
  function U() {
1379
1382
  C(void 0), m.value = void 0;
1380
1383
  }
1381
- function K() {
1382
- if (N(), D.value !== void 0) {
1384
+ function G() {
1385
+ if (H(), D.value !== void 0) {
1383
1386
  const i = T.value.indexOf(D.value);
1384
- i !== -1 && W(() => ye(i));
1387
+ i !== -1 && j(() => ye(i));
1385
1388
  }
1386
1389
  }
1387
1390
  function Y(i) {
1388
- var w, E;
1391
+ var w, V;
1389
1392
  if (!(!i.key || l.readonly || l.disabled))
1390
1393
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && (i.preventDefault(), i.stopPropagation()), i.key === "Escape")
1391
- s.value ? H() : U();
1394
+ s.value ? K() : U();
1392
1395
  else if (["ArrowDown", "ArrowUp"].includes(i.key))
1393
- s.value ? W(() => {
1396
+ s.value ? j(() => {
1394
1397
  if (m.value === void 0)
1395
1398
  c();
1396
1399
  else {
1397
- const G = i.key === "ArrowDown" ? "next" : "prev";
1398
- f(m.value, G);
1400
+ const W = i.key === "ArrowDown" ? "next" : "prev";
1401
+ f(m.value, W);
1399
1402
  }
1400
- }) : (N(), W(() => {
1403
+ }) : (H(), j(() => {
1401
1404
  i.key === "ArrowDown" ? c() : a();
1402
1405
  }));
1403
1406
  else if (i.key === "Enter") {
@@ -1405,15 +1408,15 @@ const Qt = ["role"], At = {
1405
1408
  return;
1406
1409
  X(Q.value[l.itemValue]);
1407
1410
  } else
1408
- i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (E = _.value) == null ? void 0 : E.getLastFocusableItemIndex() : (/^[a-z]$/i.test(i.key) || i.key === "Backspace") && N();
1411
+ i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (V = _.value) == null ? void 0 : V.getLastFocusableItemIndex() : (/^[a-z]$/i.test(i.key) || i.key === "Backspace") && H();
1409
1412
  }
1410
1413
  function c() {
1411
1414
  var i, w;
1412
1415
  if (r.value !== void 0) {
1413
- const E = T.value.findIndex(
1414
- (G) => G[l.itemValue] === r.value
1416
+ const V = T.value.findIndex(
1417
+ (W) => W[l.itemValue] === r.value
1415
1418
  );
1416
- E === -1 ? m.value = (i = _.value) == null ? void 0 : i.getFirstFocusableItemIndex() : m.value = E;
1419
+ V === -1 ? m.value = (i = _.value) == null ? void 0 : i.getFirstFocusableItemIndex() : m.value = V;
1417
1420
  } else
1418
1421
  m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1419
1422
  }
@@ -1422,12 +1425,12 @@ const Qt = ["role"], At = {
1422
1425
  m.value = (i = _.value) == null ? void 0 : i.getLastFocusableItemIndex();
1423
1426
  }
1424
1427
  function f(i, w) {
1425
- var E;
1426
- m.value = (E = _.value) == null ? void 0 : E.getAdjacentItemIndex(i, w);
1428
+ var V;
1429
+ m.value = (V = _.value) == null ? void 0 : V.getAdjacentItemIndex(i, w);
1427
1430
  }
1428
1431
  function g(i) {
1429
- var w, E, G;
1430
- !((w = p.value) != null && w.contains(i.relatedTarget)) && !((G = (E = h.value) == null ? void 0 : E.fieldRef) != null && G.contains(i.relatedTarget)) ? (H(), A()) : (i.preventDefault(), i.stopPropagation());
1432
+ var w, V, W;
1433
+ !((w = p.value) != null && w.contains(i.relatedTarget)) && !((W = (V = h.value) == null ? void 0 : V.fieldRef) != null && W.contains(i.relatedTarget)) ? (K(), A()) : (i.preventDefault(), i.stopPropagation());
1431
1434
  }
1432
1435
  function I() {
1433
1436
  var i, w;
@@ -1440,8 +1443,8 @@ const Qt = ["role"], At = {
1440
1443
  e("hide");
1441
1444
  }
1442
1445
  function ye(i) {
1443
- var E;
1444
- const w = (E = _.value) == null ? void 0 : E.getItem(i);
1446
+ var V;
1447
+ const w = (V = _.value) == null ? void 0 : V.getItem(i);
1445
1448
  w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
1446
1449
  }
1447
1450
  return F(
@@ -1452,13 +1455,13 @@ const Qt = ["role"], At = {
1452
1455
  ), F(m, (i) => {
1453
1456
  i !== void 0 && ye(i);
1454
1457
  }), F(d, (i) => {
1455
- !i && z.value ? U() : s.value && l.selectionMode === "automatic" && W(c), e("update:inputValue", i);
1458
+ !i && z.value ? U() : s.value && l.selectionMode === "automatic" && j(c), e("update:inputValue", i);
1456
1459
  }), n({
1457
1460
  triggerEl: h
1458
1461
  }), (i, w) => (u(), v(J, null, [
1459
- j(y(jt), {
1462
+ M(y(jt), {
1460
1463
  modelValue: d.value,
1461
- "onUpdate:modelValue": w[0] || (w[0] = (E) => d.value = E),
1464
+ "onUpdate:modelValue": w[0] || (w[0] = (V) => d.value = V),
1462
1465
  id: l.id,
1463
1466
  label: l.label,
1464
1467
  required: l.required,
@@ -1466,15 +1469,16 @@ const Qt = ["role"], At = {
1466
1469
  ref: h,
1467
1470
  role: "combobox",
1468
1471
  placeholder: l.placeholder,
1469
- class: V(["q-combobox", l.class]),
1472
+ class: x(["q-combobox", l.class]),
1470
1473
  readonly: l.readonly,
1471
1474
  disabled: l.disabled,
1475
+ autocomplete: "off",
1472
1476
  "aria-expanded": s.value,
1473
1477
  "aria-haspopup": "listbox",
1474
1478
  "aria-autocomplete": "list",
1475
1479
  "aria-activedescendant": O.value,
1476
1480
  size: l.size,
1477
- onClick: K,
1481
+ onClick: G,
1478
1482
  onFocusout: g,
1479
1483
  onKeydown: te(Y, ["stop"])
1480
1484
  }, pe({
@@ -1496,7 +1500,7 @@ const Qt = ["role"], At = {
1496
1500
  z.value && d.value || i.$slots.append ? {
1497
1501
  name: "append",
1498
1502
  fn: $(() => [
1499
- z.value && d.value ? (u(), x(y(ee), Z({ key: 0 }, l.icons.clear, {
1503
+ z.value && d.value ? (u(), E(y(ee), Z({ key: 0 }, l.icons.clear, {
1500
1504
  class: "q-combobox__clear",
1501
1505
  onClick: te(U, ["stop", "prevent"])
1502
1506
  }), null, 16)) : L("", !0),
@@ -1512,7 +1516,7 @@ const Qt = ["role"], At = {
1512
1516
  key: "2"
1513
1517
  } : void 0
1514
1518
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1515
- j(y(de), {
1519
+ M(y(de), {
1516
1520
  "model-value": s.value,
1517
1521
  spy: "",
1518
1522
  trigger: "manual",
@@ -1524,7 +1528,7 @@ const Qt = ["role"], At = {
1524
1528
  onLeave: Ae
1525
1529
  }, {
1526
1530
  default: $(() => {
1527
- var E;
1531
+ var V;
1528
1532
  return [
1529
1533
  P("div", {
1530
1534
  ref_key: "contentRef",
@@ -1533,32 +1537,30 @@ const Qt = ["role"], At = {
1533
1537
  onFocusout: g
1534
1538
  }, [
1535
1539
  b(i.$slots, "body.prepend"),
1536
- l.loading ? (u(), x(y(he), {
1537
- key: 0,
1538
- class: "q-select__loader",
1539
- size: 24
1540
- })) : T.value.length ? (u(), x(y(Ce), {
1540
+ l.loading ? (u(), v("div", Pt, [
1541
+ M(y(he), { size: 24 })
1542
+ ])) : T.value.length ? (u(), E(y(Ce), {
1541
1543
  key: 1,
1542
1544
  ref_key: "listRef",
1543
1545
  ref: _,
1544
1546
  class: "q-select__items",
1545
1547
  modelValue: r.value,
1546
1548
  "onUpdate:modelValue": [
1547
- w[1] || (w[1] = (G) => r.value = G),
1549
+ w[1] || (w[1] = (W) => r.value = W),
1548
1550
  X
1549
1551
  ],
1550
- highlighted: (E = Q.value) == null ? void 0 : E[l.itemValue],
1552
+ highlighted: (V = Q.value) == null ? void 0 : V[l.itemValue],
1551
1553
  items: T.value,
1552
1554
  groups: i.groups,
1553
1555
  "item-label": l.itemLabel,
1554
1556
  "item-value": l.itemValue,
1555
1557
  onMouseup: I
1556
1558
  }, {
1557
- item: $(({ item: G }) => [
1558
- b(i.$slots, "item", { item: G })
1559
+ item: $(({ item: W }) => [
1560
+ b(i.$slots, "item", { item: W })
1559
1561
  ]),
1560
1562
  _: 3
1561
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Pt, M(i.texts.noData), 1)),
1563
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Xt, N(i.texts.noData), 1)),
1562
1564
  b(i.$slots, "body.append")
1563
1565
  ], 544)
1564
1566
  ];
@@ -1567,13 +1569,13 @@ const Qt = ["role"], At = {
1567
1569
  }, 8, ["model-value", "anchor"])
1568
1570
  ], 64));
1569
1571
  }
1570
- }), In = S(Zt), Jt = {
1572
+ }), Ln = S(Jt), en = {
1571
1573
  key: 0,
1572
1574
  class: "q-input-group__prepend"
1573
- }, en = { key: 0 }, tn = {
1575
+ }, tn = { key: 0 }, nn = {
1574
1576
  key: 1,
1575
1577
  class: "q-input-group__append"
1576
- }, nn = { key: 0 }, ln = /* @__PURE__ */ B({
1578
+ }, ln = { key: 0 }, on = /* @__PURE__ */ B({
1577
1579
  __name: "QInputGroup",
1578
1580
  props: {
1579
1581
  id: { default: void 0 },
@@ -1590,24 +1592,24 @@ const Qt = ["role"], At = {
1590
1592
  QField: {
1591
1593
  size: "block"
1592
1594
  }
1593
- }), (o, e) => (u(), x(y(be), {
1595
+ }), (o, e) => (u(), E(y(be), {
1594
1596
  id: n.id,
1595
- class: V(["q-input-group", n.class]),
1597
+ class: x(["q-input-group", n.class]),
1596
1598
  label: n.label,
1597
1599
  required: n.required,
1598
1600
  size: n.size
1599
1601
  }, {
1600
1602
  default: $(() => [
1601
- o.$slots.prepend || n.prependIcon ? (u(), v("div", Jt, [
1602
- n.prependIcon ? (u(), v("span", en, [
1603
- j(y(ee), re(ke(n.prependIcon)), null, 16)
1603
+ o.$slots.prepend || n.prependIcon ? (u(), v("div", en, [
1604
+ n.prependIcon ? (u(), v("span", tn, [
1605
+ M(y(ee), re(ke(n.prependIcon)), null, 16)
1604
1606
  ])) : L("", !0),
1605
1607
  b(o.$slots, "prepend")
1606
1608
  ])) : L("", !0),
1607
1609
  b(o.$slots, "default"),
1608
- o.$slots.append || n.appendIcon ? (u(), v("div", tn, [
1609
- n.appendIcon ? (u(), v("span", nn, [
1610
- j(y(ee), re(ke(n.appendIcon)), null, 16)
1610
+ o.$slots.append || n.appendIcon ? (u(), v("div", nn, [
1611
+ n.appendIcon ? (u(), v("span", ln, [
1612
+ M(y(ee), re(ke(n.appendIcon)), null, 16)
1611
1613
  ])) : L("", !0),
1612
1614
  b(o.$slots, "append")
1613
1615
  ])) : L("", !0)
@@ -1615,7 +1617,7 @@ const Qt = ["role"], At = {
1615
1617
  _: 3
1616
1618
  }, 8, ["id", "class", "label", "required", "size"]));
1617
1619
  }
1618
- }), Ln = S(ln), on = /* @__PURE__ */ B({
1620
+ }), Bn = S(on), an = /* @__PURE__ */ B({
1619
1621
  __name: "QLineLoader",
1620
1622
  props: {
1621
1623
  class: { default: void 0 }
@@ -1623,16 +1625,16 @@ const Qt = ["role"], At = {
1623
1625
  setup(t) {
1624
1626
  const n = t;
1625
1627
  return (o, e) => (u(), v("div", {
1626
- class: V(["q-line-loader", n.class])
1628
+ class: x(["q-line-loader", n.class])
1627
1629
  }, null, 2));
1628
1630
  }
1629
- }), Bn = S(on), an = {
1631
+ }), Sn = S(an), sn = {
1630
1632
  key: 0,
1631
1633
  class: "q-popover__header"
1632
- }, sn = {
1634
+ }, rn = {
1633
1635
  key: 1,
1634
1636
  class: "q-popover__body"
1635
- }, rn = ["innerHTML"], dn = { key: 1 }, un = /* @__PURE__ */ B({
1637
+ }, dn = ["innerHTML"], un = { key: 1 }, cn = /* @__PURE__ */ B({
1636
1638
  inheritAttrs: !1,
1637
1639
  __name: "QPopover",
1638
1640
  props: {
@@ -1648,7 +1650,7 @@ const Qt = ["role"], At = {
1648
1650
  },
1649
1651
  setup(t) {
1650
1652
  const n = t;
1651
- return (o, e) => (u(), x(y(de), {
1653
+ return (o, e) => (u(), E(y(de), {
1652
1654
  "model-value": n.modelValue,
1653
1655
  class: "q-popover",
1654
1656
  trigger: "click",
@@ -1659,40 +1661,40 @@ const Qt = ["role"], At = {
1659
1661
  placement: n.placement
1660
1662
  }, {
1661
1663
  default: $(() => [
1662
- n.title || o.$slots.header ? (u(), v("h3", an, [
1663
- oe(M(n.title) + " ", 1),
1664
+ n.title || o.$slots.header ? (u(), v("h3", sn, [
1665
+ oe(N(n.title) + " ", 1),
1664
1666
  b(o.$slots, "header")
1665
1667
  ])) : L("", !0),
1666
- n.text || o.$slots.body ? (u(), v("div", sn, [
1668
+ n.text || o.$slots.body ? (u(), v("div", rn, [
1667
1669
  n.html ? (u(), v("span", {
1668
1670
  key: 0,
1669
1671
  innerHTML: n.text
1670
- }, null, 8, rn)) : (u(), v("span", dn, M(n.text), 1)),
1672
+ }, null, 8, dn)) : (u(), v("span", un, N(n.text), 1)),
1671
1673
  b(o.$slots, "body")
1672
1674
  ])) : L("", !0)
1673
1675
  ]),
1674
1676
  _: 3
1675
1677
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
1676
1678
  }
1677
- }), Sn = S(un), cn = {
1679
+ }), xn = S(cn), fn = {
1678
1680
  key: 0,
1679
1681
  class: "q-select__value"
1680
- }, fn = {
1682
+ }, pn = {
1681
1683
  key: 1,
1682
1684
  class: "q-select__placeholder"
1683
- }, pn = {
1685
+ }, mn = {
1684
1686
  key: 0,
1685
1687
  class: "q-select__loader"
1686
- }, mn = {
1687
- placeholder: "Choose..."
1688
1688
  }, vn = {
1689
+ placeholder: "Choose..."
1690
+ }, hn = {
1689
1691
  chevron: {
1690
1692
  icon: "chevron-down"
1691
1693
  },
1692
1694
  clear: {
1693
1695
  icon: "close"
1694
1696
  }
1695
- }, hn = /* @__PURE__ */ B({
1697
+ }, bn = /* @__PURE__ */ B({
1696
1698
  __name: "QSelect",
1697
1699
  props: {
1698
1700
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1703,13 +1705,13 @@ const Qt = ["role"], At = {
1703
1705
  disabled: { type: Boolean },
1704
1706
  required: { type: Boolean },
1705
1707
  loading: { type: Boolean },
1706
- icons: { default: () => vn },
1708
+ icons: { default: () => hn },
1707
1709
  items: {},
1708
1710
  groups: { default: () => [] },
1709
1711
  itemValue: { default: "key" },
1710
1712
  itemLabel: { default: "label" },
1711
1713
  size: { default: void 0 },
1712
- texts: { default: () => mn },
1714
+ texts: { default: () => vn },
1713
1715
  class: { default: "" }
1714
1716
  },
1715
1717
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
@@ -1759,18 +1761,18 @@ const Qt = ["role"], At = {
1759
1761
  }, 500);
1760
1762
  }
1761
1763
  }
1762
- function N() {
1764
+ function H() {
1763
1765
  var c;
1764
- e.loading ? (c = h.value) == null || c.focus() : K(), o("show");
1766
+ e.loading ? (c = h.value) == null || c.focus() : G(), o("show");
1765
1767
  }
1766
- function H() {
1768
+ function K() {
1767
1769
  U(), o("hide");
1768
1770
  }
1769
1771
  function U() {
1770
1772
  var c, a;
1771
1773
  (a = (c = d.value) == null ? void 0 : c.fieldRef) == null || a.focus();
1772
1774
  }
1773
- function K() {
1775
+ function G() {
1774
1776
  var c;
1775
1777
  (c = m.value) == null || c.$el.focus();
1776
1778
  }
@@ -1786,12 +1788,12 @@ const Qt = ["role"], At = {
1786
1788
  ), F(
1787
1789
  () => e.loading,
1788
1790
  (c) => {
1789
- !c && r.value && W(K);
1791
+ !c && r.value && j(G);
1790
1792
  }
1791
1793
  ), (c, a) => {
1792
1794
  var f;
1793
1795
  return u(), v(J, null, [
1794
- j(y(be), {
1796
+ M(y(be), {
1795
1797
  id: e.id,
1796
1798
  label: e.label,
1797
1799
  required: e.required,
@@ -1799,7 +1801,7 @@ const Qt = ["role"], At = {
1799
1801
  ref: d,
1800
1802
  role: "combobox",
1801
1803
  tabindex: e.disabled ? -1 : 0,
1802
- class: V([
1804
+ class: x([
1803
1805
  "q-select",
1804
1806
  {
1805
1807
  "q-select--readonly": e.readonly,
@@ -1818,16 +1820,16 @@ const Qt = ["role"], At = {
1818
1820
  }, pe({
1819
1821
  append: $(() => [
1820
1822
  b(c.$slots, "append"),
1821
- z.value && l.value ? (u(), x(y(ee), Z({ key: 0 }, e.icons.clear, {
1823
+ z.value && l.value ? (u(), E(y(ee), Z({ key: 0 }, e.icons.clear, {
1822
1824
  class: "q-select__clear",
1823
1825
  onClick: te(D, ["stop", "prevent"])
1824
1826
  }), null, 16)) : L("", !0),
1825
- e.readonly ? L("", !0) : (u(), x(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1827
+ e.readonly ? L("", !0) : (u(), E(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1826
1828
  ]),
1827
1829
  default: $(() => [
1828
- l.value !== void 0 ? (u(), v("span", cn, M(p.value), 1)) : (u(), v("span", fn, [
1830
+ l.value !== void 0 ? (u(), v("span", fn, N(p.value), 1)) : (u(), v("span", pn, [
1829
1831
  !e.readonly && !e.disabled ? (u(), v(J, { key: 0 }, [
1830
- oe(M(c.texts.placeholder), 1)
1832
+ oe(N(c.texts.placeholder), 1)
1831
1833
  ], 64)) : L("", !0)
1832
1834
  ]))
1833
1835
  ]),
@@ -1839,7 +1841,7 @@ const Qt = ["role"], At = {
1839
1841
  var g, I;
1840
1842
  return [
1841
1843
  b(c.$slots, "prepend"),
1842
- (g = _.value) != null && g.icon ? (u(), x(y(ee), re(Z({ key: 0 }, (I = _.value) == null ? void 0 : I.icon)), null, 16)) : L("", !0)
1844
+ (g = _.value) != null && g.icon ? (u(), E(y(ee), re(Z({ key: 0 }, (I = _.value) == null ? void 0 : I.icon)), null, 16)) : L("", !0)
1843
1845
  ];
1844
1846
  }),
1845
1847
  key: "0"
@@ -1852,7 +1854,7 @@ const Qt = ["role"], At = {
1852
1854
  key: "1"
1853
1855
  } : void 0
1854
1856
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
1855
- j(y(de), {
1857
+ M(y(de), {
1856
1858
  "model-value": r.value,
1857
1859
  spy: "",
1858
1860
  trigger: "manual",
@@ -1860,8 +1862,8 @@ const Qt = ["role"], At = {
1860
1862
  width: "anchor",
1861
1863
  anchor: d.value,
1862
1864
  offset: 2,
1863
- onEnter: N,
1864
- onLeave: H
1865
+ onEnter: H,
1866
+ onLeave: K
1865
1867
  }, {
1866
1868
  default: $(() => [
1867
1869
  P("div", {
@@ -1873,9 +1875,9 @@ const Qt = ["role"], At = {
1873
1875
  onKeydown: te(A, ["stop"])
1874
1876
  }, [
1875
1877
  b(c.$slots, "body.prepend"),
1876
- e.loading ? (u(), v("div", pn, [
1877
- j(y(he), { size: 24 })
1878
- ])) : (u(), x(y(Ce), {
1878
+ e.loading ? (u(), v("div", mn, [
1879
+ M(y(he), { size: 24 })
1880
+ ])) : (u(), E(y(Ce), {
1879
1881
  key: 1,
1880
1882
  ref_key: "listRef",
1881
1883
  ref: m,
@@ -1903,7 +1905,7 @@ const Qt = ["role"], At = {
1903
1905
  ], 64);
1904
1906
  };
1905
1907
  }
1906
- }), xn = S(hn), bn = /* @__PURE__ */ B({
1908
+ }), Vn = S(bn), yn = /* @__PURE__ */ B({
1907
1909
  __name: "QThemeProvider",
1908
1910
  props: {
1909
1911
  theme: {}
@@ -1911,12 +1913,12 @@ const Qt = ["role"], At = {
1911
1913
  setup(t) {
1912
1914
  const n = t;
1913
1915
  return (o, e) => (u(), v("div", {
1914
- class: V(["q-theme-provider", `q-theme--${n.theme}`])
1916
+ class: x(["q-theme-provider", `q-theme--${n.theme}`])
1915
1917
  }, [
1916
1918
  b(o.$slots, "default")
1917
1919
  ], 2));
1918
1920
  }
1919
- }), Vn = S(bn), yn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ B({
1921
+ }), En = S(yn), gn = ["innerHTML"], _n = { key: 1 }, kn = /* @__PURE__ */ B({
1920
1922
  __name: "QTooltip",
1921
1923
  props: {
1922
1924
  modelValue: { type: Boolean },
@@ -1939,7 +1941,7 @@ const Qt = ["role"], At = {
1939
1941
  b(e.$slots, "anchor", {
1940
1942
  props: { "aria-describedby": y(o) }
1941
1943
  }),
1942
- j(y(de), {
1944
+ M(y(de), {
1943
1945
  "model-value": n.modelValue,
1944
1946
  anchor: n.anchor,
1945
1947
  role: "tooltip",
@@ -1947,7 +1949,7 @@ const Qt = ["role"], At = {
1947
1949
  appearance: n.appearance,
1948
1950
  arrow: n.arrow,
1949
1951
  attach: n.attach,
1950
- class: V(["q-tooltip", n.class]),
1952
+ class: x(["q-tooltip", n.class]),
1951
1953
  delay: n.delay,
1952
1954
  disabled: n.disabled,
1953
1955
  placement: n.placement,
@@ -1957,39 +1959,39 @@ const Qt = ["role"], At = {
1957
1959
  n.html ? (u(), v("span", {
1958
1960
  key: 0,
1959
1961
  innerHTML: n.text
1960
- }, null, 8, yn)) : (u(), v("span", gn, M(n.text), 1))
1962
+ }, null, 8, gn)) : (u(), v("span", _n, N(n.text), 1))
1961
1963
  ]),
1962
1964
  _: 1
1963
1965
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
1964
1966
  ], 64));
1965
1967
  }
1966
- }), En = S(_n);
1968
+ }), Dn = S(kn);
1967
1969
  export {
1968
1970
  rt as QButton,
1969
1971
  ut as QButtonGroup,
1970
- qn as QButtonToggle,
1971
- In as QCombobox,
1972
+ In as QButtonToggle,
1973
+ Ln as QCombobox,
1972
1974
  be as QField,
1973
1975
  ee as QIcon,
1974
1976
  _t as QIconFont,
1975
1977
  kt as QIconImg,
1976
1978
  wt as QIconSvg,
1977
- Ln as QInputGroup,
1978
- Bn as QLineLoader,
1979
+ Bn as QInputGroup,
1980
+ Sn as QLineLoader,
1979
1981
  Ce as QList,
1980
1982
  Dt as QListItem,
1981
1983
  Tt as QListItemGroup,
1982
1984
  de as QOverlay,
1983
- Sn as QPopover,
1984
- xn as QSelect,
1985
+ xn as QPopover,
1986
+ Vn as QSelect,
1985
1987
  he as QSpinnerLoader,
1986
1988
  jt as QTextField,
1987
- Vn as QThemeProvider,
1988
- En as QTooltip,
1989
- $n as createFramework,
1989
+ En as QThemeProvider,
1990
+ Dn as QTooltip,
1991
+ qn as createFramework,
1990
1992
  We as defaultDarkColorScheme,
1991
1993
  $e as defaultLightColorScheme,
1992
- wn as provideTheme,
1994
+ $n as provideTheme,
1993
1995
  Ge as useTheme
1994
1996
  };
1995
1997
  //# sourceMappingURL=ui.esm.js.map