@quidgest/ui 0.8.1 → 0.8.2

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,7 +1469,7 @@ 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,
1472
1475
  "aria-expanded": s.value,
@@ -1474,7 +1477,7 @@ const Qt = ["role"], At = {
1474
1477
  "aria-autocomplete": "list",
1475
1478
  "aria-activedescendant": O.value,
1476
1479
  size: l.size,
1477
- onClick: K,
1480
+ onClick: G,
1478
1481
  onFocusout: g,
1479
1482
  onKeydown: te(Y, ["stop"])
1480
1483
  }, pe({
@@ -1496,7 +1499,7 @@ const Qt = ["role"], At = {
1496
1499
  z.value && d.value || i.$slots.append ? {
1497
1500
  name: "append",
1498
1501
  fn: $(() => [
1499
- z.value && d.value ? (u(), x(y(ee), Z({ key: 0 }, l.icons.clear, {
1502
+ z.value && d.value ? (u(), E(y(ee), Z({ key: 0 }, l.icons.clear, {
1500
1503
  class: "q-combobox__clear",
1501
1504
  onClick: te(U, ["stop", "prevent"])
1502
1505
  }), null, 16)) : L("", !0),
@@ -1512,7 +1515,7 @@ const Qt = ["role"], At = {
1512
1515
  key: "2"
1513
1516
  } : void 0
1514
1517
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1515
- j(y(de), {
1518
+ M(y(de), {
1516
1519
  "model-value": s.value,
1517
1520
  spy: "",
1518
1521
  trigger: "manual",
@@ -1524,7 +1527,7 @@ const Qt = ["role"], At = {
1524
1527
  onLeave: Ae
1525
1528
  }, {
1526
1529
  default: $(() => {
1527
- var E;
1530
+ var V;
1528
1531
  return [
1529
1532
  P("div", {
1530
1533
  ref_key: "contentRef",
@@ -1533,32 +1536,30 @@ const Qt = ["role"], At = {
1533
1536
  onFocusout: g
1534
1537
  }, [
1535
1538
  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), {
1539
+ l.loading ? (u(), v("div", Pt, [
1540
+ M(y(he), { size: 24 })
1541
+ ])) : T.value.length ? (u(), E(y(Ce), {
1541
1542
  key: 1,
1542
1543
  ref_key: "listRef",
1543
1544
  ref: _,
1544
1545
  class: "q-select__items",
1545
1546
  modelValue: r.value,
1546
1547
  "onUpdate:modelValue": [
1547
- w[1] || (w[1] = (G) => r.value = G),
1548
+ w[1] || (w[1] = (W) => r.value = W),
1548
1549
  X
1549
1550
  ],
1550
- highlighted: (E = Q.value) == null ? void 0 : E[l.itemValue],
1551
+ highlighted: (V = Q.value) == null ? void 0 : V[l.itemValue],
1551
1552
  items: T.value,
1552
1553
  groups: i.groups,
1553
1554
  "item-label": l.itemLabel,
1554
1555
  "item-value": l.itemValue,
1555
1556
  onMouseup: I
1556
1557
  }, {
1557
- item: $(({ item: G }) => [
1558
- b(i.$slots, "item", { item: G })
1558
+ item: $(({ item: W }) => [
1559
+ b(i.$slots, "item", { item: W })
1559
1560
  ]),
1560
1561
  _: 3
1561
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Pt, M(i.texts.noData), 1)),
1562
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Xt, N(i.texts.noData), 1)),
1562
1563
  b(i.$slots, "body.append")
1563
1564
  ], 544)
1564
1565
  ];
@@ -1567,13 +1568,13 @@ const Qt = ["role"], At = {
1567
1568
  }, 8, ["model-value", "anchor"])
1568
1569
  ], 64));
1569
1570
  }
1570
- }), In = S(Zt), Jt = {
1571
+ }), Ln = S(Jt), en = {
1571
1572
  key: 0,
1572
1573
  class: "q-input-group__prepend"
1573
- }, en = { key: 0 }, tn = {
1574
+ }, tn = { key: 0 }, nn = {
1574
1575
  key: 1,
1575
1576
  class: "q-input-group__append"
1576
- }, nn = { key: 0 }, ln = /* @__PURE__ */ B({
1577
+ }, ln = { key: 0 }, on = /* @__PURE__ */ B({
1577
1578
  __name: "QInputGroup",
1578
1579
  props: {
1579
1580
  id: { default: void 0 },
@@ -1590,24 +1591,24 @@ const Qt = ["role"], At = {
1590
1591
  QField: {
1591
1592
  size: "block"
1592
1593
  }
1593
- }), (o, e) => (u(), x(y(be), {
1594
+ }), (o, e) => (u(), E(y(be), {
1594
1595
  id: n.id,
1595
- class: V(["q-input-group", n.class]),
1596
+ class: x(["q-input-group", n.class]),
1596
1597
  label: n.label,
1597
1598
  required: n.required,
1598
1599
  size: n.size
1599
1600
  }, {
1600
1601
  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)
1602
+ o.$slots.prepend || n.prependIcon ? (u(), v("div", en, [
1603
+ n.prependIcon ? (u(), v("span", tn, [
1604
+ M(y(ee), re(ke(n.prependIcon)), null, 16)
1604
1605
  ])) : L("", !0),
1605
1606
  b(o.$slots, "prepend")
1606
1607
  ])) : L("", !0),
1607
1608
  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)
1609
+ o.$slots.append || n.appendIcon ? (u(), v("div", nn, [
1610
+ n.appendIcon ? (u(), v("span", ln, [
1611
+ M(y(ee), re(ke(n.appendIcon)), null, 16)
1611
1612
  ])) : L("", !0),
1612
1613
  b(o.$slots, "append")
1613
1614
  ])) : L("", !0)
@@ -1615,7 +1616,7 @@ const Qt = ["role"], At = {
1615
1616
  _: 3
1616
1617
  }, 8, ["id", "class", "label", "required", "size"]));
1617
1618
  }
1618
- }), Ln = S(ln), on = /* @__PURE__ */ B({
1619
+ }), Bn = S(on), an = /* @__PURE__ */ B({
1619
1620
  __name: "QLineLoader",
1620
1621
  props: {
1621
1622
  class: { default: void 0 }
@@ -1623,16 +1624,16 @@ const Qt = ["role"], At = {
1623
1624
  setup(t) {
1624
1625
  const n = t;
1625
1626
  return (o, e) => (u(), v("div", {
1626
- class: V(["q-line-loader", n.class])
1627
+ class: x(["q-line-loader", n.class])
1627
1628
  }, null, 2));
1628
1629
  }
1629
- }), Bn = S(on), an = {
1630
+ }), Sn = S(an), sn = {
1630
1631
  key: 0,
1631
1632
  class: "q-popover__header"
1632
- }, sn = {
1633
+ }, rn = {
1633
1634
  key: 1,
1634
1635
  class: "q-popover__body"
1635
- }, rn = ["innerHTML"], dn = { key: 1 }, un = /* @__PURE__ */ B({
1636
+ }, dn = ["innerHTML"], un = { key: 1 }, cn = /* @__PURE__ */ B({
1636
1637
  inheritAttrs: !1,
1637
1638
  __name: "QPopover",
1638
1639
  props: {
@@ -1648,7 +1649,7 @@ const Qt = ["role"], At = {
1648
1649
  },
1649
1650
  setup(t) {
1650
1651
  const n = t;
1651
- return (o, e) => (u(), x(y(de), {
1652
+ return (o, e) => (u(), E(y(de), {
1652
1653
  "model-value": n.modelValue,
1653
1654
  class: "q-popover",
1654
1655
  trigger: "click",
@@ -1659,40 +1660,40 @@ const Qt = ["role"], At = {
1659
1660
  placement: n.placement
1660
1661
  }, {
1661
1662
  default: $(() => [
1662
- n.title || o.$slots.header ? (u(), v("h3", an, [
1663
- oe(M(n.title) + " ", 1),
1663
+ n.title || o.$slots.header ? (u(), v("h3", sn, [
1664
+ oe(N(n.title) + " ", 1),
1664
1665
  b(o.$slots, "header")
1665
1666
  ])) : L("", !0),
1666
- n.text || o.$slots.body ? (u(), v("div", sn, [
1667
+ n.text || o.$slots.body ? (u(), v("div", rn, [
1667
1668
  n.html ? (u(), v("span", {
1668
1669
  key: 0,
1669
1670
  innerHTML: n.text
1670
- }, null, 8, rn)) : (u(), v("span", dn, M(n.text), 1)),
1671
+ }, null, 8, dn)) : (u(), v("span", un, N(n.text), 1)),
1671
1672
  b(o.$slots, "body")
1672
1673
  ])) : L("", !0)
1673
1674
  ]),
1674
1675
  _: 3
1675
1676
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
1676
1677
  }
1677
- }), Sn = S(un), cn = {
1678
+ }), xn = S(cn), fn = {
1678
1679
  key: 0,
1679
1680
  class: "q-select__value"
1680
- }, fn = {
1681
+ }, pn = {
1681
1682
  key: 1,
1682
1683
  class: "q-select__placeholder"
1683
- }, pn = {
1684
+ }, mn = {
1684
1685
  key: 0,
1685
1686
  class: "q-select__loader"
1686
- }, mn = {
1687
- placeholder: "Choose..."
1688
1687
  }, vn = {
1688
+ placeholder: "Choose..."
1689
+ }, hn = {
1689
1690
  chevron: {
1690
1691
  icon: "chevron-down"
1691
1692
  },
1692
1693
  clear: {
1693
1694
  icon: "close"
1694
1695
  }
1695
- }, hn = /* @__PURE__ */ B({
1696
+ }, bn = /* @__PURE__ */ B({
1696
1697
  __name: "QSelect",
1697
1698
  props: {
1698
1699
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1703,13 +1704,13 @@ const Qt = ["role"], At = {
1703
1704
  disabled: { type: Boolean },
1704
1705
  required: { type: Boolean },
1705
1706
  loading: { type: Boolean },
1706
- icons: { default: () => vn },
1707
+ icons: { default: () => hn },
1707
1708
  items: {},
1708
1709
  groups: { default: () => [] },
1709
1710
  itemValue: { default: "key" },
1710
1711
  itemLabel: { default: "label" },
1711
1712
  size: { default: void 0 },
1712
- texts: { default: () => mn },
1713
+ texts: { default: () => vn },
1713
1714
  class: { default: "" }
1714
1715
  },
1715
1716
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
@@ -1759,18 +1760,18 @@ const Qt = ["role"], At = {
1759
1760
  }, 500);
1760
1761
  }
1761
1762
  }
1762
- function N() {
1763
+ function H() {
1763
1764
  var c;
1764
- e.loading ? (c = h.value) == null || c.focus() : K(), o("show");
1765
+ e.loading ? (c = h.value) == null || c.focus() : G(), o("show");
1765
1766
  }
1766
- function H() {
1767
+ function K() {
1767
1768
  U(), o("hide");
1768
1769
  }
1769
1770
  function U() {
1770
1771
  var c, a;
1771
1772
  (a = (c = d.value) == null ? void 0 : c.fieldRef) == null || a.focus();
1772
1773
  }
1773
- function K() {
1774
+ function G() {
1774
1775
  var c;
1775
1776
  (c = m.value) == null || c.$el.focus();
1776
1777
  }
@@ -1786,12 +1787,12 @@ const Qt = ["role"], At = {
1786
1787
  ), F(
1787
1788
  () => e.loading,
1788
1789
  (c) => {
1789
- !c && r.value && W(K);
1790
+ !c && r.value && j(G);
1790
1791
  }
1791
1792
  ), (c, a) => {
1792
1793
  var f;
1793
1794
  return u(), v(J, null, [
1794
- j(y(be), {
1795
+ M(y(be), {
1795
1796
  id: e.id,
1796
1797
  label: e.label,
1797
1798
  required: e.required,
@@ -1799,7 +1800,7 @@ const Qt = ["role"], At = {
1799
1800
  ref: d,
1800
1801
  role: "combobox",
1801
1802
  tabindex: e.disabled ? -1 : 0,
1802
- class: V([
1803
+ class: x([
1803
1804
  "q-select",
1804
1805
  {
1805
1806
  "q-select--readonly": e.readonly,
@@ -1818,16 +1819,16 @@ const Qt = ["role"], At = {
1818
1819
  }, pe({
1819
1820
  append: $(() => [
1820
1821
  b(c.$slots, "append"),
1821
- z.value && l.value ? (u(), x(y(ee), Z({ key: 0 }, e.icons.clear, {
1822
+ z.value && l.value ? (u(), E(y(ee), Z({ key: 0 }, e.icons.clear, {
1822
1823
  class: "q-select__clear",
1823
1824
  onClick: te(D, ["stop", "prevent"])
1824
1825
  }), 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))
1826
+ e.readonly ? L("", !0) : (u(), E(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1826
1827
  ]),
1827
1828
  default: $(() => [
1828
- l.value !== void 0 ? (u(), v("span", cn, M(p.value), 1)) : (u(), v("span", fn, [
1829
+ l.value !== void 0 ? (u(), v("span", fn, N(p.value), 1)) : (u(), v("span", pn, [
1829
1830
  !e.readonly && !e.disabled ? (u(), v(J, { key: 0 }, [
1830
- oe(M(c.texts.placeholder), 1)
1831
+ oe(N(c.texts.placeholder), 1)
1831
1832
  ], 64)) : L("", !0)
1832
1833
  ]))
1833
1834
  ]),
@@ -1839,7 +1840,7 @@ const Qt = ["role"], At = {
1839
1840
  var g, I;
1840
1841
  return [
1841
1842
  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)
1843
+ (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
1844
  ];
1844
1845
  }),
1845
1846
  key: "0"
@@ -1852,7 +1853,7 @@ const Qt = ["role"], At = {
1852
1853
  key: "1"
1853
1854
  } : void 0
1854
1855
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
1855
- j(y(de), {
1856
+ M(y(de), {
1856
1857
  "model-value": r.value,
1857
1858
  spy: "",
1858
1859
  trigger: "manual",
@@ -1860,8 +1861,8 @@ const Qt = ["role"], At = {
1860
1861
  width: "anchor",
1861
1862
  anchor: d.value,
1862
1863
  offset: 2,
1863
- onEnter: N,
1864
- onLeave: H
1864
+ onEnter: H,
1865
+ onLeave: K
1865
1866
  }, {
1866
1867
  default: $(() => [
1867
1868
  P("div", {
@@ -1873,9 +1874,9 @@ const Qt = ["role"], At = {
1873
1874
  onKeydown: te(A, ["stop"])
1874
1875
  }, [
1875
1876
  b(c.$slots, "body.prepend"),
1876
- e.loading ? (u(), v("div", pn, [
1877
- j(y(he), { size: 24 })
1878
- ])) : (u(), x(y(Ce), {
1877
+ e.loading ? (u(), v("div", mn, [
1878
+ M(y(he), { size: 24 })
1879
+ ])) : (u(), E(y(Ce), {
1879
1880
  key: 1,
1880
1881
  ref_key: "listRef",
1881
1882
  ref: m,
@@ -1903,7 +1904,7 @@ const Qt = ["role"], At = {
1903
1904
  ], 64);
1904
1905
  };
1905
1906
  }
1906
- }), xn = S(hn), bn = /* @__PURE__ */ B({
1907
+ }), Vn = S(bn), yn = /* @__PURE__ */ B({
1907
1908
  __name: "QThemeProvider",
1908
1909
  props: {
1909
1910
  theme: {}
@@ -1911,12 +1912,12 @@ const Qt = ["role"], At = {
1911
1912
  setup(t) {
1912
1913
  const n = t;
1913
1914
  return (o, e) => (u(), v("div", {
1914
- class: V(["q-theme-provider", `q-theme--${n.theme}`])
1915
+ class: x(["q-theme-provider", `q-theme--${n.theme}`])
1915
1916
  }, [
1916
1917
  b(o.$slots, "default")
1917
1918
  ], 2));
1918
1919
  }
1919
- }), Vn = S(bn), yn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ B({
1920
+ }), En = S(yn), gn = ["innerHTML"], _n = { key: 1 }, kn = /* @__PURE__ */ B({
1920
1921
  __name: "QTooltip",
1921
1922
  props: {
1922
1923
  modelValue: { type: Boolean },
@@ -1939,7 +1940,7 @@ const Qt = ["role"], At = {
1939
1940
  b(e.$slots, "anchor", {
1940
1941
  props: { "aria-describedby": y(o) }
1941
1942
  }),
1942
- j(y(de), {
1943
+ M(y(de), {
1943
1944
  "model-value": n.modelValue,
1944
1945
  anchor: n.anchor,
1945
1946
  role: "tooltip",
@@ -1947,7 +1948,7 @@ const Qt = ["role"], At = {
1947
1948
  appearance: n.appearance,
1948
1949
  arrow: n.arrow,
1949
1950
  attach: n.attach,
1950
- class: V(["q-tooltip", n.class]),
1951
+ class: x(["q-tooltip", n.class]),
1951
1952
  delay: n.delay,
1952
1953
  disabled: n.disabled,
1953
1954
  placement: n.placement,
@@ -1957,39 +1958,39 @@ const Qt = ["role"], At = {
1957
1958
  n.html ? (u(), v("span", {
1958
1959
  key: 0,
1959
1960
  innerHTML: n.text
1960
- }, null, 8, yn)) : (u(), v("span", gn, M(n.text), 1))
1961
+ }, null, 8, gn)) : (u(), v("span", _n, N(n.text), 1))
1961
1962
  ]),
1962
1963
  _: 1
1963
1964
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
1964
1965
  ], 64));
1965
1966
  }
1966
- }), En = S(_n);
1967
+ }), Dn = S(kn);
1967
1968
  export {
1968
1969
  rt as QButton,
1969
1970
  ut as QButtonGroup,
1970
- qn as QButtonToggle,
1971
- In as QCombobox,
1971
+ In as QButtonToggle,
1972
+ Ln as QCombobox,
1972
1973
  be as QField,
1973
1974
  ee as QIcon,
1974
1975
  _t as QIconFont,
1975
1976
  kt as QIconImg,
1976
1977
  wt as QIconSvg,
1977
- Ln as QInputGroup,
1978
- Bn as QLineLoader,
1978
+ Bn as QInputGroup,
1979
+ Sn as QLineLoader,
1979
1980
  Ce as QList,
1980
1981
  Dt as QListItem,
1981
1982
  Tt as QListItemGroup,
1982
1983
  de as QOverlay,
1983
- Sn as QPopover,
1984
- xn as QSelect,
1984
+ xn as QPopover,
1985
+ Vn as QSelect,
1985
1986
  he as QSpinnerLoader,
1986
1987
  jt as QTextField,
1987
- Vn as QThemeProvider,
1988
- En as QTooltip,
1989
- $n as createFramework,
1988
+ En as QThemeProvider,
1989
+ Dn as QTooltip,
1990
+ qn as createFramework,
1990
1991
  We as defaultDarkColorScheme,
1991
1992
  $e as defaultLightColorScheme,
1992
- wn as provideTheme,
1993
+ $n as provideTheme,
1993
1994
  Ge as useTheme
1994
1995
  };
1995
1996
  //# sourceMappingURL=ui.esm.js.map