@quidgest/ui 0.14.2 → 0.14.4

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,10 +1,10 @@
1
- import { defineComponent as B, computed as g, openBlock as r, createElementBlock as p, normalizeClass as V, normalizeStyle as ue, getCurrentInstance as Ne, ref as D, provide as He, inject as Ge, withModifiers as ve, createVNode as z, unref as m, createCommentVNode as q, createElementVNode as I, Fragment as K, createTextVNode as ce, toDisplayString as O, renderSlot as h, createBlock as S, resolveDynamicComponent as Be, h as Qe, withCtx as _, normalizeProps as j, guardReactiveProps as le, toRef as Fe, mergeModels as Z, useModel as ne, renderList as he, mergeProps as J, reactive as ze, watch as te, nextTick as oe, onMounted as Re, onBeforeUnmount as ut, Teleport as ct, Transition as ft, withKeys as pt, createSlots as qe, withDirectives as mt, vModelDynamic as vt } from "vue";
1
+ import { defineComponent as B, computed as b, openBlock as r, createElementBlock as p, normalizeClass as T, normalizeStyle as ue, getCurrentInstance as He, ref as D, provide as Ge, inject as Re, withModifiers as ce, createVNode as M, unref as m, createCommentVNode as $, createElementVNode as L, Fragment as H, createTextVNode as pe, toDisplayString as z, renderSlot as h, createBlock as I, resolveDynamicComponent as Ce, h as ze, withCtx as _, normalizeProps as j, guardReactiveProps as le, toRef as Fe, mergeModels as Y, useModel as ee, renderList as he, withKeys as Ie, mergeProps as Z, reactive as Me, watch as oe, nextTick as ne, onMounted as Ke, onBeforeUnmount as ut, Teleport as ft, Transition as pt, createSlots as qe, withDirectives as mt, vModelDynamic as vt } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.14.2
3
+ * Quidgest UI v0.14.4
4
4
  * (c) 2024 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
7
- const Ie = {
7
+ const Se = {
8
8
  primary: "#008ad2",
9
9
  primaryLight: "#cde5ff",
10
10
  primaryDark: "#006398",
@@ -35,7 +35,7 @@ const Ie = {
35
35
  onWarning: "#fff",
36
36
  onDanger: "#fff",
37
37
  onInfo: "#fff"
38
- }, Ke = {
38
+ }, je = {
39
39
  primary: "#009ff5",
40
40
  primaryLight: "#ade2ff",
41
41
  primaryDark: "#164965",
@@ -66,10 +66,10 @@ const Ie = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
- defaultDarkColorScheme: Ke,
72
- defaultLightColorScheme: Ie
71
+ defaultDarkColorScheme: je,
72
+ defaultLightColorScheme: Se
73
73
  }, Symbol.toStringTag, { value: "Module" })), ht = /* @__PURE__ */ B({
74
74
  __name: "QSpinnerLoader",
75
75
  props: {
@@ -77,29 +77,29 @@ const Ie = {
77
77
  class: { default: void 0 }
78
78
  },
79
79
  setup(o) {
80
- const t = o, e = g(() => ({
80
+ const t = o, e = b(() => ({
81
81
  "font-size": t.size !== 48 ? `${t.size}px` : void 0
82
82
  }));
83
83
  return (n, l) => (r(), p("div", {
84
- class: V(["q-spinner-loader", t.class]),
84
+ class: T(["q-spinner-loader", t.class]),
85
85
  style: ue(e.value)
86
86
  }, null, 6));
87
87
  }
88
88
  });
89
- function Se(o) {
89
+ function Be(o) {
90
90
  return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
91
91
  }
92
- function Me(o) {
92
+ function Pe(o) {
93
93
  return o !== null && typeof o == "object" && !Array.isArray(o);
94
94
  }
95
- function Ce(o = {}, t = {}) {
95
+ function Te(o = {}, t = {}) {
96
96
  const e = {};
97
97
  for (const n in o)
98
98
  e[n] = o[n];
99
99
  for (const n in t) {
100
100
  const l = o[n], s = t[n];
101
- if (Me(l) && Me(s)) {
102
- e[n] = Ce(
101
+ if (Pe(l) && Pe(s)) {
102
+ e[n] = Te(
103
103
  l,
104
104
  s
105
105
  );
@@ -109,47 +109,47 @@ function Ce(o = {}, t = {}) {
109
109
  }
110
110
  return e;
111
111
  }
112
- const Te = "q-defaults";
112
+ const Ve = "q-defaults";
113
113
  function yt() {
114
114
  var s, i;
115
- const o = Ne();
115
+ const o = He();
116
116
  if (!o)
117
117
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
118
  const t = o.type.name ?? o.type.__name;
119
119
  if (!t) throw new Error("[Quidgest UI] Could not determine component name");
120
- const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
121
- return g(() => Ce(n, l));
120
+ const e = Xe(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
121
+ return b(() => Te(n, l));
122
122
  }
123
- function je(o) {
124
- if (Se(o)) return;
125
- const t = We(), e = D(o), n = g(() => Se(e.value) ? t.value : Ce(t.value, e.value));
126
- He(Te, n);
123
+ function We(o) {
124
+ if (Be(o)) return;
125
+ const t = Xe(), e = D(o), n = b(() => Be(e.value) ? t.value : Te(t.value, e.value));
126
+ Ge(Ve, n);
127
127
  }
128
- function We() {
129
- const o = Ge(Te, void 0);
128
+ function Xe() {
129
+ const o = Re(Ve, void 0);
130
130
  if (!o) throw new Error("[Quidgest UI] Could not find defaults instance");
131
131
  return o;
132
132
  }
133
- function Xe(o) {
133
+ function Ye(o) {
134
134
  return o.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
135
135
  }
136
136
  function bt(o, t) {
137
137
  var n;
138
- const e = Xe(t);
138
+ const e = Ye(t);
139
139
  return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
140
140
  }
141
141
  function C(o) {
142
142
  const t = o.setup;
143
143
  return t && (o.setup = (e, n) => {
144
144
  const l = yt();
145
- if (Se(l.value)) return t(e, n);
146
- const s = Ne();
145
+ if (Be(l.value)) return t(e, n);
146
+ const s = He();
147
147
  if (s === null) return t(e, n);
148
148
  const i = new Proxy(e, {
149
149
  get(a, d) {
150
- var L;
151
- const c = Reflect.get(a, d), w = (L = l.value) == null ? void 0 : L[d];
152
- return typeof d == "string" && !bt(s.vnode, d) ? w ?? c : c;
150
+ var S;
151
+ const u = Reflect.get(a, d), w = (S = l.value) == null ? void 0 : S[d];
152
+ return typeof d == "string" && !bt(s.vnode, d) ? w ?? u : u;
153
153
  }
154
154
  });
155
155
  return t(i, n);
@@ -158,7 +158,7 @@ function C(o) {
158
158
  const xe = C(ht), gt = ["disabled"], _t = {
159
159
  key: 0,
160
160
  class: "q-btn__spinner"
161
- }, kt = { class: "q-btn__content" }, wt = /* @__PURE__ */ B({
161
+ }, kt = { class: "q-btn__content" }, $t = /* @__PURE__ */ B({
162
162
  __name: "QButton",
163
163
  props: {
164
164
  active: { type: Boolean },
@@ -175,11 +175,11 @@ const xe = C(ht), gt = ["disabled"], _t = {
175
175
  },
176
176
  emits: ["click"],
177
177
  setup(o, { emit: t }) {
178
- const e = o, n = t, l = g(() => e.disabled || e.loading);
178
+ const e = o, n = t, l = b(() => e.disabled || e.loading);
179
179
  function s(a) {
180
180
  l.value || n("click", a);
181
181
  }
182
- const i = g(() => {
182
+ const i = b(() => {
183
183
  const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
184
184
  return [
185
185
  "q-btn",
@@ -197,25 +197,25 @@ const xe = C(ht), gt = ["disabled"], _t = {
197
197
  });
198
198
  return (a, d) => (r(), p("button", {
199
199
  type: "button",
200
- class: V(i.value),
200
+ class: T(i.value),
201
201
  disabled: l.value,
202
- onClick: ve(s, ["stop", "prevent"])
202
+ onClick: ce(s, ["stop", "prevent"])
203
203
  }, [
204
204
  a.loading ? (r(), p("div", _t, [
205
- z(m(xe), { size: 20 })
206
- ])) : q("", !0),
207
- I("span", kt, [
208
- a.iconOnRight ? (r(), p(K, { key: 0 }, [
209
- ce(O(e.label), 1)
210
- ], 64)) : q("", !0),
205
+ M(m(xe), { size: 20 })
206
+ ])) : $("", !0),
207
+ L("span", kt, [
208
+ a.iconOnRight ? (r(), p(H, { key: 0 }, [
209
+ pe(z(e.label), 1)
210
+ ], 64)) : $("", !0),
211
211
  h(a.$slots, "default"),
212
- a.iconOnRight ? q("", !0) : (r(), p(K, { key: 1 }, [
213
- ce(O(e.label), 1)
212
+ a.iconOnRight ? $("", !0) : (r(), p(H, { key: 1 }, [
213
+ pe(z(e.label), 1)
214
214
  ], 64))
215
215
  ])
216
216
  ], 10, gt));
217
217
  }
218
- }), re = C(wt), $t = /* @__PURE__ */ B({
218
+ }), re = C($t), wt = /* @__PURE__ */ B({
219
219
  __name: "QIcon",
220
220
  props: {
221
221
  icon: {},
@@ -224,20 +224,20 @@ const xe = C(ht), gt = ["disabled"], _t = {
224
224
  type: { default: "svg" }
225
225
  },
226
226
  setup(o) {
227
- const t = o, e = g(() => {
227
+ const t = o, e = b(() => {
228
228
  switch (t.type) {
229
229
  case "svg":
230
- return Je;
230
+ return et;
231
231
  case "font":
232
- return Ye;
233
- case "img":
234
232
  return Ze;
233
+ case "img":
234
+ return Je;
235
235
  default:
236
236
  return;
237
237
  }
238
238
  });
239
- return (n, l) => (r(), S(Be(e.value), {
240
- class: V(t.class),
239
+ return (n, l) => (r(), I(Ce(e.value), {
240
+ class: T(t.class),
241
241
  icon: t.icon,
242
242
  size: t.size
243
243
  }, null, 8, ["class", "icon", "size"]));
@@ -252,11 +252,11 @@ const xe = C(ht), gt = ["disabled"], _t = {
252
252
  variant: { default: "" }
253
253
  },
254
254
  setup(o) {
255
- const t = o, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
255
+ const t = o, e = b(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = b(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = b(() => ({
256
256
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
257
257
  }));
258
258
  return (s, i) => (r(), p("i", {
259
- class: V(["q-icon", "q-icon__font", e.value, n.value, t.class]),
259
+ class: T(["q-icon", "q-icon__font", e.value, n.value, t.class]),
260
260
  style: ue(l.value)
261
261
  }, null, 6));
262
262
  }
@@ -268,12 +268,12 @@ const xe = C(ht), gt = ["disabled"], _t = {
268
268
  class: {}
269
269
  },
270
270
  setup(o) {
271
- const t = o, e = g(() => ({
271
+ const t = o, e = b(() => ({
272
272
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
273
273
  }));
274
274
  return (n, l) => (r(), p("img", {
275
275
  src: t.icon,
276
- class: V(["q-icon", "q-icon__img", t.class]),
276
+ class: T(["q-icon", "q-icon__img", t.class]),
277
277
  style: ue(e.value)
278
278
  }, null, 14, xt));
279
279
  }
@@ -288,9 +288,9 @@ const xe = C(ht), gt = ["disabled"], _t = {
288
288
  render() {
289
289
  if (!this.svgElSource) return null;
290
290
  const o = this.getSvgContent(this.svgElSource);
291
- if (!o) return Qe("div", this.$attrs);
291
+ if (!o) return ze("div", this.$attrs);
292
292
  const t = {};
293
- return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Qe("svg", t);
293
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, ze("svg", t);
294
294
  },
295
295
  props: {
296
296
  /**
@@ -415,7 +415,7 @@ const Ct = /* @__PURE__ */ B({
415
415
  },
416
416
  emits: ["loaded", "unloaded"],
417
417
  setup(o, { emit: t }) {
418
- const e = o, n = t, l = g(() => ({
418
+ const e = o, n = t, l = b(() => ({
419
419
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
420
420
  }));
421
421
  function s(a) {
@@ -424,8 +424,8 @@ const Ct = /* @__PURE__ */ B({
424
424
  function i() {
425
425
  n("unloaded");
426
426
  }
427
- return (a, d) => (r(), S(m(It), {
428
- class: V(["q-icon", "q-icon__svg", e.class]),
427
+ return (a, d) => (r(), I(m(It), {
428
+ class: T(["q-icon", "q-icon__svg", e.class]),
429
429
  src: e.bundle,
430
430
  symbol: e.icon,
431
431
  style: ue(l.value),
@@ -433,7 +433,7 @@ const Ct = /* @__PURE__ */ B({
433
433
  onUnloaded: i
434
434
  }, null, 8, ["class", "src", "symbol", "style"]));
435
435
  }
436
- }), N = C($t), Ye = C(qt), Ze = C(Lt), Je = C(Ct), Tt = {
436
+ }), U = C(wt), Ze = C(qt), Je = C(Lt), et = C(Ct), Tt = {
437
437
  remove: {
438
438
  icon: "close"
439
439
  }
@@ -448,7 +448,7 @@ function Et(o) {
448
448
  return { r: e, g: n, b: l };
449
449
  }
450
450
  }
451
- function et(o) {
451
+ function tt(o) {
452
452
  if (Vt(o)) {
453
453
  o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
454
454
  const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), n = parseInt(o.slice(5, 7), 16);
@@ -466,16 +466,16 @@ function Dt(o) {
466
466
  if (l === s)
467
467
  i = a = 0;
468
468
  else {
469
- const c = l - s;
470
- switch (a = d > 0.5 ? c / (2 - l - s) : c / (l + s), l) {
469
+ const u = l - s;
470
+ switch (a = d > 0.5 ? u / (2 - l - s) : u / (l + s), l) {
471
471
  case t:
472
- i = (e - n) / c + (e < n ? 6 : 0);
472
+ i = (e - n) / u + (e < n ? 6 : 0);
473
473
  break;
474
474
  case e:
475
- i = (n - t) / c + 2;
475
+ i = (n - t) / u + 2;
476
476
  break;
477
477
  case n:
478
- i = (t - e) / c + 4;
478
+ i = (t - e) / u + 4;
479
479
  break;
480
480
  }
481
481
  i /= 6;
@@ -489,7 +489,7 @@ function Dt(o) {
489
489
  function At(o) {
490
490
  return o > 50 ? "#000" : "#fff";
491
491
  }
492
- const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
492
+ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
493
493
  __name: "QBadge",
494
494
  props: {
495
495
  color: { default: "primary" },
@@ -500,37 +500,37 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
500
500
  },
501
501
  emits: ["click:remove"],
502
502
  setup(o, { emit: t }) {
503
- const e = o, n = t, l = g(
503
+ const e = o, n = t, l = b(
504
504
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
505
- ), s = g(() => {
505
+ ), s = b(() => {
506
506
  const d = l.value ? `q-badge--${e.color}` : void 0;
507
507
  return ["q-badge", `q-badge--${e.variant}`, d, { "q-badge--pill": e.pill }];
508
- }), i = g(() => {
509
- let d, c;
508
+ }), i = b(() => {
509
+ let d, u;
510
510
  if (!l.value)
511
511
  if (d = e.color, e.variant === "tonal")
512
- c = e.color;
512
+ u = e.color;
513
513
  else {
514
- const w = et(d), L = Dt(w);
515
- c = At(L.l);
514
+ const w = tt(d), S = Dt(w);
515
+ u = At(S.l);
516
516
  }
517
517
  return {
518
518
  "--q-badge-color": d,
519
- "--q-badge-text-color": c
519
+ "--q-badge-text-color": u
520
520
  };
521
521
  });
522
522
  function a() {
523
523
  n("click:remove");
524
524
  }
525
- return (d, c) => (r(), p("span", {
526
- class: V(s.value),
525
+ return (d, u) => (r(), p("span", {
526
+ class: T(s.value),
527
527
  role: "presentation",
528
528
  style: ue(i.value)
529
529
  }, [
530
- c[0] || (c[0] = I("div", { class: "q-badge__underlay" }, null, -1)),
531
- I("div", Qt, [
530
+ u[0] || (u[0] = L("div", { class: "q-badge__underlay" }, null, -1)),
531
+ L("div", Qt, [
532
532
  h(d.$slots, "default"),
533
- e.removable ? (r(), S(m(re), {
533
+ e.removable ? (r(), I(m(re), {
534
534
  key: 0,
535
535
  class: "q-badge__remove",
536
536
  borderless: "",
@@ -538,14 +538,14 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
538
538
  onClick: a
539
539
  }, {
540
540
  default: _(() => [
541
- z(m(N), j(le(e.icons.remove)), null, 16)
541
+ M(m(U), j(le(e.icons.remove)), null, 16)
542
542
  ]),
543
543
  _: 1
544
- })) : q("", !0)
544
+ })) : $("", !0)
545
545
  ])
546
546
  ], 6));
547
547
  }
548
- }), zt = C(Ft), Mt = /* @__PURE__ */ B({
548
+ }), Ft = C(zt), Mt = /* @__PURE__ */ B({
549
549
  __name: "QButtonGroup",
550
550
  props: {
551
551
  disabled: { type: Boolean },
@@ -555,7 +555,7 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
555
555
  },
556
556
  setup(o) {
557
557
  const t = o;
558
- return je({
558
+ return We({
559
559
  QButton: {
560
560
  bStyle: "secondary",
561
561
  disabled: Fe(t, "disabled"),
@@ -563,7 +563,7 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
563
563
  elevated: !1
564
564
  }
565
565
  }), (e, n) => (r(), p("div", {
566
- class: V([
566
+ class: T([
567
567
  "q-btn-group",
568
568
  {
569
569
  "q-btn-group--elevated": t.elevated
@@ -574,9 +574,9 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
574
574
  h(e.$slots, "default")
575
575
  ], 2));
576
576
  }
577
- }), tt = C(Mt), Ot = /* @__PURE__ */ B({
577
+ }), ot = C(Mt), Pt = /* @__PURE__ */ B({
578
578
  __name: "QButtonToggle",
579
- props: /* @__PURE__ */ Z({
579
+ props: /* @__PURE__ */ Y({
580
580
  options: {},
581
581
  disabled: { type: Boolean },
582
582
  borderless: { type: Boolean },
@@ -589,20 +589,20 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
589
589
  }),
590
590
  emits: ["update:modelValue"],
591
591
  setup(o) {
592
- const t = o, e = ne(o, "modelValue");
592
+ const t = o, e = ee(o, "modelValue");
593
593
  function n(l) {
594
594
  e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
595
595
  }
596
- return (l, s) => (r(), S(m(tt), {
596
+ return (l, s) => (r(), I(m(ot), {
597
597
  "b-style": "secondary",
598
- class: V(t.class),
598
+ class: T(t.class),
599
599
  disabled: t.disabled,
600
600
  borderless: t.borderless,
601
601
  elevated: t.elevated,
602
602
  role: "listbox"
603
603
  }, {
604
604
  default: _(() => [
605
- (r(!0), p(K, null, he(t.options, (i) => (r(), S(m(re), {
605
+ (r(!0), p(H, null, he(t.options, (i) => (r(), I(m(re), {
606
606
  key: i.key,
607
607
  title: i.title,
608
608
  label: i.label,
@@ -620,9 +620,88 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
620
620
  _: 3
621
621
  }, 8, ["class", "disabled", "borderless", "elevated"]));
622
622
  }
623
- }), Pt = C(Ot), Ut = /* @__PURE__ */ B({
623
+ }), Ot = C(Pt);
624
+ let Ut = 0;
625
+ function fe(o) {
626
+ return o || `uid-${++Ut}`;
627
+ }
628
+ const Nt = {
629
+ checked: {
630
+ icon: "check"
631
+ },
632
+ indeterminate: {
633
+ icon: "minus"
634
+ }
635
+ }, Ht = { key: 0 }, Gt = ["id", "aria-checked", "disabled", "onKeydown"], Rt = { key: 1 }, Kt = ["checked", "disabled"], jt = /* @__PURE__ */ B({
636
+ __name: "QCheckbox",
637
+ props: /* @__PURE__ */ Y({
638
+ id: { default: void 0 },
639
+ label: { default: "" },
640
+ labelPlacement: { default: "right" },
641
+ disabled: { type: Boolean },
642
+ readonly: { type: Boolean },
643
+ indeterminate: { type: Boolean },
644
+ color: { default: "primary" },
645
+ size: { default: "regular" },
646
+ class: { default: void 0 },
647
+ icons: { default: () => Nt }
648
+ }, {
649
+ modelValue: { type: Boolean },
650
+ modelModifiers: {}
651
+ }),
652
+ emits: ["update:modelValue"],
653
+ setup(o) {
654
+ const t = o, e = ee(o, "modelValue"), n = fe(t.id), l = b(() => [
655
+ "q-checkbox",
656
+ `q-checkbox--${t.size}`,
657
+ `q-checkbox--${t.color}`,
658
+ {
659
+ "q-checkbox--readonly": t.readonly,
660
+ "q-checkbox--disabled": t.disabled,
661
+ "q-checkbox--checked": e.value,
662
+ "q-checkbox--indeterminate": t.indeterminate
663
+ },
664
+ t.class
665
+ ]);
666
+ function s() {
667
+ !t.disabled && !t.readonly && (e.value = !e.value);
668
+ }
669
+ return (i, a) => (r(), p(H, null, [
670
+ L("label", {
671
+ class: T(l.value)
672
+ }, [
673
+ t.labelPlacement !== "right" ? (r(), p("span", Ht, z(t.label), 1)) : $("", !0),
674
+ L("button", {
675
+ id: m(n),
676
+ role: "checkbox",
677
+ type: "button",
678
+ "aria-checked": t.indeterminate ? "mixed" : e.value,
679
+ disabled: t.disabled || t.readonly,
680
+ class: "q-checkbox__input",
681
+ onClick: ce(s, ["prevent"]),
682
+ onKeydown: [
683
+ Ie(ce(s, ["prevent"]), ["space"]),
684
+ a[0] || (a[0] = Ie(ce(() => {
685
+ }, ["prevent"]), ["enter"]))
686
+ ]
687
+ }, [
688
+ e.value || i.indeterminate ? (r(), I(m(U), Z({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : $("", !0)
689
+ ], 40, Gt),
690
+ t.labelPlacement === "right" ? (r(), p("span", Rt, z(t.label), 1)) : $("", !0)
691
+ ], 2),
692
+ L("input", {
693
+ type: "checkbox",
694
+ tabindex: "-1",
695
+ "aria-hidden": "true",
696
+ class: "q-checkbox__native-input",
697
+ checked: !!e.value,
698
+ disabled: t.disabled || t.readonly
699
+ }, null, 8, Kt)
700
+ ], 64));
701
+ }
702
+ }), Wt = C(jt), Xt = /* @__PURE__ */ B({
624
703
  __name: "QList",
625
- props: /* @__PURE__ */ Z({
704
+ props: /* @__PURE__ */ Y({
626
705
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
627
706
  items: {},
628
707
  groups: { default: () => [] },
@@ -639,28 +718,28 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
639
718
  }),
640
719
  emits: ["update:modelValue"],
641
720
  setup(o, { expose: t }) {
642
- const e = o, n = ne(o, "modelValue"), l = D(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
643
- (v) => e.items.some(($) => $.group === v.id)
721
+ const e = o, n = ee(o, "modelValue"), l = D(!1), s = b(() => i.value.length > 1 ? "div" : "ul"), i = b(() => e.groups.length ? e.groups.filter(
722
+ (v) => e.items.some((q) => q.group === v.id)
644
723
  ) : [{ id: "", title: "" }]), a = D(null);
645
724
  function d(v) {
646
725
  n.value = v;
647
726
  }
648
- function c() {
727
+ function u() {
649
728
  l.value = !0;
650
729
  }
651
730
  function w() {
652
731
  l.value = !1;
653
732
  }
654
- function L(v) {
655
- var b;
656
- if ((b = a.value) != null && b.contains(v.relatedTarget))
733
+ function S(v) {
734
+ var g;
735
+ if ((g = a.value) != null && g.contains(v.relatedTarget))
657
736
  return;
658
- let $;
659
- n.value ? $ = e.items.findIndex((G) => G[e.itemValue] === n.value) : $ = Q();
737
+ let q;
738
+ n.value ? q = e.items.findIndex((R) => R[e.itemValue] === n.value) : q = Q();
660
739
  const f = l.value;
661
- T($, f);
740
+ V(q, f);
662
741
  }
663
- function P(v) {
742
+ function O(v) {
664
743
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
665
744
  case "ArrowDown":
666
745
  A("next");
@@ -680,101 +759,101 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
680
759
  switch (v) {
681
760
  case "next":
682
761
  case "prev":
683
- T(W(v));
762
+ V(W(v));
684
763
  break;
685
764
  case "first":
686
- T(Q());
765
+ V(Q());
687
766
  break;
688
767
  case "last":
689
- T(H());
768
+ V(G());
690
769
  break;
691
770
  }
692
771
  }
693
- function T(v, $ = !1) {
694
- var b;
695
- (b = y()[v]) == null || b.focus({ preventScroll: $ });
772
+ function V(v, q = !1) {
773
+ var g;
774
+ (g = y()[v]) == null || g.focus({ preventScroll: q });
696
775
  }
697
776
  function y() {
698
- var $;
699
- const v = ($ = a.value) == null ? void 0 : $.querySelectorAll("li");
777
+ var q;
778
+ const v = (q = a.value) == null ? void 0 : q.querySelectorAll("li");
700
779
  return v ? Array.from(v) : [];
701
780
  }
702
781
  function E(v) {
703
782
  return y()[v];
704
783
  }
705
- function M() {
784
+ function P() {
706
785
  return y().indexOf(document.activeElement);
707
786
  }
708
787
  function Q() {
709
- const v = y(), $ = v.find((f) => U(f));
710
- return $ ? v.indexOf($) : -1;
788
+ const v = y(), q = v.find((f) => N(f));
789
+ return q ? v.indexOf(q) : -1;
711
790
  }
712
- function H() {
713
- const v = y(), $ = [...v].reverse().find((f) => U(f));
714
- return $ ? v.indexOf($) : -1;
791
+ function G() {
792
+ const v = y(), q = [...v].reverse().find((f) => N(f));
793
+ return q ? v.indexOf(q) : -1;
715
794
  }
716
- function se(v, $, f) {
717
- return $ === "prev" && v === 0 || $ === "next" && v === f.length - 1;
795
+ function se(v, q, f) {
796
+ return q === "prev" && v === 0 || q === "next" && v === f.length - 1;
718
797
  }
719
798
  function W(v) {
720
- const $ = M();
721
- return ae($, v);
799
+ const q = P();
800
+ return ae(q, v);
722
801
  }
723
- function ae(v, $) {
802
+ function ae(v, q) {
724
803
  const f = y();
725
- if (se(v, $, f))
804
+ if (se(v, q, f))
726
805
  return v;
727
- let b = v + ($ === "next" ? 1 : -1);
728
- for (; !U(f[b]); ) {
729
- if (se(b, $, f))
806
+ let g = v + (q === "next" ? 1 : -1);
807
+ for (; !N(f[g]); ) {
808
+ if (se(g, q, f))
730
809
  return v;
731
- b += $ === "next" ? 1 : -1;
810
+ g += q === "next" ? 1 : -1;
732
811
  }
733
- return b;
812
+ return g;
734
813
  }
735
- function U(v) {
814
+ function N(v) {
736
815
  return v.tabIndex === -2;
737
816
  }
738
- function Y(v) {
739
- return v ? e.items.filter(($) => $.group === v) : e.items;
817
+ function J(v) {
818
+ return v ? e.items.filter((q) => q.group === v) : e.items;
740
819
  }
741
820
  return t({
742
- focusItem: T,
821
+ focusItem: V,
743
822
  getItem: E,
744
823
  getAdjacentItemIndex: ae,
745
824
  getFirstFocusableItemIndex: Q,
746
- getLastFocusableItemIndex: H
747
- }), (v, $) => (r(), S(Be(s.value), {
825
+ getLastFocusableItemIndex: G
826
+ }), (v, q) => (r(), I(Ce(s.value), {
748
827
  ref_key: "listRef",
749
828
  ref: a,
750
- class: V(["q-list", { "q-list--disabled": e.disabled }, e.class]),
829
+ class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
751
830
  role: "listbox",
752
831
  tabindex: e.disabled ? -1 : 0,
753
- onFocus: L,
754
- onMousedown: c,
832
+ onFocus: S,
833
+ onMousedown: u,
755
834
  onMouseup: w,
756
- onKeydown: P
835
+ onKeydown: O
757
836
  }, {
758
837
  default: _(() => [
759
- (r(!0), p(K, null, he(i.value, (f) => (r(), S(m(nt), {
838
+ (r(!0), p(H, null, he(i.value, (f) => (r(), I(m(lt), {
760
839
  key: f.id,
761
840
  id: f.id,
762
841
  title: i.value.length === 1 ? void 0 : f.title
763
842
  }, {
764
843
  default: _(() => [
765
- (r(!0), p(K, null, he(Y(f.id), (b) => (r(), S(m(ot), {
766
- key: b[e.itemValue],
767
- value: b[e.itemValue],
768
- label: b[e.itemLabel],
769
- description: b.description,
770
- icon: b.icon,
771
- disabled: e.disabled || f.disabled || b.disabled,
772
- highlighted: e.highlighted === b[e.itemValue],
773
- selected: v.selectable && n.value === b[e.itemValue],
844
+ (r(!0), p(H, null, he(J(f.id), (g) => (r(), I(m(nt), {
845
+ key: g[e.itemValue],
846
+ value: g[e.itemValue],
847
+ label: g[e.itemLabel],
848
+ description: g.description,
849
+ icon: g.icon,
850
+ disabled: e.disabled || f.disabled || g.disabled,
851
+ highlighted: e.highlighted === g[e.itemValue],
852
+ selected: v.selectable && n.value === g[e.itemValue],
774
853
  onSelect: d
775
854
  }, {
776
855
  default: _(() => [
777
- h(v.$slots, "item", { item: b })
856
+ h(v.$slots, "item", { item: g })
778
857
  ]),
779
858
  _: 2
780
859
  }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -785,22 +864,17 @@ const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
785
864
  _: 3
786
865
  }, 40, ["class", "tabindex"]));
787
866
  }
788
- }), Nt = {
867
+ }), Yt = {
789
868
  check: {
790
869
  icon: "check"
791
870
  },
792
871
  description: {
793
872
  icon: "information-outline"
794
873
  }
795
- };
796
- let Ht = 0;
797
- function fe(o) {
798
- return o || `uid-${++Ht}`;
799
- }
800
- const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = { class: "q-list-item__container" }, Kt = { class: "q-list-item__content" }, jt = {
874
+ }, Zt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Jt = { class: "q-list-item__container" }, eo = { class: "q-list-item__content" }, to = {
801
875
  key: 0,
802
876
  class: "q-list-item__description"
803
- }, Wt = { class: "q-list-item__check-container" }, Xt = /* @__PURE__ */ B({
877
+ }, oo = { class: "q-list-item__check-container" }, no = /* @__PURE__ */ B({
804
878
  __name: "QListItem",
805
879
  props: {
806
880
  value: { type: [String, Number, Boolean, Symbol] },
@@ -810,7 +884,7 @@ const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = {
810
884
  highlighted: { type: Boolean },
811
885
  disabled: { type: Boolean },
812
886
  description: { default: void 0 },
813
- icons: { default: () => Nt }
887
+ icons: { default: () => Yt }
814
888
  },
815
889
  emits: ["select"],
816
890
  setup(o, { emit: t }) {
@@ -826,7 +900,7 @@ const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = {
826
900
  "data-key": e.value,
827
901
  role: "option",
828
902
  tabindex: e.disabled ? void 0 : -2,
829
- class: V([
903
+ class: T([
830
904
  "q-list-item",
831
905
  {
832
906
  "q-list-item--disabled": e.disabled,
@@ -837,26 +911,26 @@ const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = {
837
911
  "aria-label": e.label,
838
912
  "aria-selected": e.disabled ? void 0 : e.selected,
839
913
  onKeydown: i,
840
- onClick: ve(s, ["stop", "prevent"])
914
+ onClick: ce(s, ["stop", "prevent"])
841
915
  }, [
842
- I("div", Rt, [
843
- I("div", Kt, [
916
+ L("div", Jt, [
917
+ L("div", eo, [
844
918
  h(a.$slots, "default", {}, () => [
845
- e.icon ? (r(), S(m(N), j(J({ key: 0 }, e.icon)), null, 16)) : q("", !0),
846
- ce(" " + O(e.label), 1)
919
+ e.icon ? (r(), I(m(U), j(Z({ key: 0 }, e.icon)), null, 16)) : $("", !0),
920
+ pe(" " + z(e.label), 1)
847
921
  ])
848
922
  ]),
849
- e.description ? (r(), p("div", jt, [
850
- z(m(N), j(le(e.icons.description)), null, 16),
851
- I("span", null, O(e.description), 1)
852
- ])) : q("", !0)
923
+ e.description ? (r(), p("div", to, [
924
+ M(m(U), j(le(e.icons.description)), null, 16),
925
+ L("span", null, z(e.description), 1)
926
+ ])) : $("", !0)
853
927
  ]),
854
- I("div", Wt, [
855
- e.selected ? (r(), S(m(N), J({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
928
+ L("div", oo, [
929
+ e.selected ? (r(), I(m(U), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
856
930
  ])
857
- ], 42, Gt));
931
+ ], 42, Zt));
858
932
  }
859
- }), Yt = ["data-key", "aria-labelledby"], Zt = ["id"], Jt = /* @__PURE__ */ B({
933
+ }), lo = ["data-key", "aria-labelledby"], so = ["id"], ao = /* @__PURE__ */ B({
860
934
  __name: "QListItemGroup",
861
935
  props: {
862
936
  id: {},
@@ -875,24 +949,24 @@ const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = {
875
949
  id: m(e),
876
950
  class: "q-list-item-group__title",
877
951
  role: "presentation"
878
- }, O(t.title), 9, Zt)) : q("", !0),
952
+ }, z(t.title), 9, so)) : $("", !0),
879
953
  h(n.$slots, "default")
880
- ], 8, Yt));
954
+ ], 8, lo));
881
955
  }
882
- }), Ve = C(Ut), ot = C(Xt), nt = C(Jt), we = 8;
883
- function eo(o, t, e, n) {
884
- const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), d = e == null ? void 0 : e.getBoundingClientRect(), c = to(i, a, s, l), w = so(i, a, c), L = no(w, c, l), P = oo(L, a, c);
956
+ }), Ee = C(Xt), nt = C(no), lt = C(ao), $e = 8;
957
+ function io(o, t, e, n) {
958
+ const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), d = e == null ? void 0 : e.getBoundingClientRect(), u = ro(i, a, s, l), w = po(i, a, u), S = uo(w, u, l), O = co(S, a, u);
885
959
  let A;
886
960
  if (n != null && n.arrow) {
887
961
  if (!d)
888
962
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
889
- A = lo(P, i, a, d, c);
963
+ A = fo(O, i, a, d, u);
890
964
  }
891
- return { overlayCoords: P, arrowCoords: A, placement: c };
965
+ return { overlayCoords: O, arrowCoords: A, placement: u };
892
966
  }
893
- function to(o, t, e, n) {
967
+ function ro(o, t, e, n) {
894
968
  const l = Oe(o, t, e, n);
895
- if (Pe(l)) {
969
+ if (Ue(l)) {
896
970
  const s = _e(e), a = {
897
971
  top: "bottom",
898
972
  bottom: "top",
@@ -904,40 +978,40 @@ function to(o, t, e, n) {
904
978
  a,
905
979
  n
906
980
  );
907
- if (Pe(d))
981
+ if (Ue(d))
908
982
  return e;
909
- const c = ro(e);
910
- return c ? `${a}-${c}` : a;
983
+ const u = ho(e);
984
+ return u ? `${a}-${u}` : a;
911
985
  }
912
986
  return e;
913
987
  }
914
- function oo(o, t, e) {
915
- const n = $e(e), l = (i, a, d) => Math.min(Math.max(i, a), d), s = { ...o };
916
- return n === "x" ? s.x = l(o.x, we, window.innerWidth - t.width - we) : s.y = l(o.y, we, window.innerHeight - t.height - we), s;
988
+ function co(o, t, e) {
989
+ const n = we(e), l = (i, a, d) => Math.min(Math.max(i, a), d), s = { ...o };
990
+ return n === "x" ? s.x = l(o.x, $e, window.innerWidth - t.width - $e) : s.y = l(o.y, $e, window.innerHeight - t.height - $e), s;
917
991
  }
918
- function no(o, t, e) {
992
+ function uo(o, t, e) {
919
993
  const n = _e(t);
920
994
  return {
921
995
  x: o.x + (n === "left" ? -e : n === "right" ? e : 0),
922
996
  y: o.y + (n === "top" ? -e : n === "bottom" ? e : 0)
923
997
  };
924
998
  }
925
- function lo(o, t, e, n, l) {
926
- if ($e(l) === "y") {
927
- const i = t.top + t.height / 2, a = o.y + e.height / 2, d = a - i, c = e.height / 2 - d - n.height / 2 + 2;
928
- if (c > 0 && c < e.height - n.height)
999
+ function fo(o, t, e, n, l) {
1000
+ if (we(l) === "y") {
1001
+ const i = t.top + t.height / 2, a = o.y + e.height / 2, d = a - i, u = e.height / 2 - d - n.height / 2 + 2;
1002
+ if (u > 0 && u < e.height - n.height)
929
1003
  return {
930
- y: c
1004
+ y: u
931
1005
  };
932
1006
  } else {
933
- const i = t.left + t.width / 2, a = o.x + e.width / 2, d = a - i, c = e.width / 2 - d - n.width / 2 + 2;
934
- if (c > 0 && c < e.width - n.width)
1007
+ const i = t.left + t.width / 2, a = o.x + e.width / 2, d = a - i, u = e.width / 2 - d - n.width / 2 + 2;
1008
+ if (u > 0 && u < e.width - n.width)
935
1009
  return {
936
- x: c
1010
+ x: u
937
1011
  };
938
1012
  }
939
1013
  }
940
- function so(o, t, e) {
1014
+ function po(o, t, e) {
941
1015
  const [n, l] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, i = o.y + o.height / 2 - t.height / 2;
942
1016
  let a;
943
1017
  switch (n) {
@@ -958,13 +1032,13 @@ function so(o, t, e) {
958
1032
  }
959
1033
  if (!l)
960
1034
  return a;
961
- const c = $e(e) === "y" ? "height" : "width", w = $e(e), L = o[c] / 2 - t[c] / 2;
1035
+ const u = we(e) === "y" ? "height" : "width", w = we(e), S = o[u] / 2 - t[u] / 2;
962
1036
  switch (l) {
963
1037
  case "start":
964
- a[w] -= L;
1038
+ a[w] -= S;
965
1039
  break;
966
1040
  case "end":
967
- a[w] += L;
1041
+ a[w] += S;
968
1042
  break;
969
1043
  default:
970
1044
  throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
@@ -992,34 +1066,34 @@ function Oe(o, t, e, n) {
992
1066
  }
993
1067
  return s;
994
1068
  }
995
- function ao(o) {
1069
+ function mo(o) {
996
1070
  return o === "x" ? "y" : "x";
997
1071
  }
998
- function io(o) {
1072
+ function vo(o) {
999
1073
  const t = _e(o);
1000
1074
  return ["left", "right"].includes(t) ? "x" : "y";
1001
1075
  }
1002
- function $e(o) {
1003
- return ao(io(o));
1076
+ function we(o) {
1077
+ return mo(vo(o));
1004
1078
  }
1005
1079
  function _e(o) {
1006
1080
  const [t] = o.split("-");
1007
1081
  return t;
1008
1082
  }
1009
- function ro(o) {
1083
+ function ho(o) {
1010
1084
  const [, t] = o.split("-");
1011
1085
  return t;
1012
1086
  }
1013
- function Pe(o) {
1087
+ function Ue(o) {
1014
1088
  return o < 0;
1015
1089
  }
1016
- function uo(o) {
1090
+ function yo(o) {
1017
1091
  return typeof o == "string" ? document.querySelector(o) : o;
1018
1092
  }
1019
- const co = ["role"], fo = /* @__PURE__ */ B({
1093
+ const bo = ["role"], go = /* @__PURE__ */ B({
1020
1094
  inheritAttrs: !1,
1021
1095
  __name: "QOverlay",
1022
- props: /* @__PURE__ */ Z({
1096
+ props: /* @__PURE__ */ Y({
1023
1097
  anchor: { default: void 0 },
1024
1098
  appearance: { default: "regular" },
1025
1099
  arrow: { type: Boolean },
@@ -1042,9 +1116,9 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1042
1116
  modelValue: { type: Boolean },
1043
1117
  modelModifiers: {}
1044
1118
  }),
1045
- emits: /* @__PURE__ */ Z(["enter", "leave"], ["update:modelValue"]),
1119
+ emits: /* @__PURE__ */ Y(["enter", "leave"], ["update:modelValue"]),
1046
1120
  setup(o, { emit: t }) {
1047
- const e = o, n = t, l = ne(o, "modelValue"), s = g(() => [
1121
+ const e = o, n = t, l = ee(o, "modelValue"), s = b(() => [
1048
1122
  "q-overlay",
1049
1123
  `q-overlay--${_e(a.placement)}`,
1050
1124
  {
@@ -1052,60 +1126,60 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1052
1126
  "q-overlay--inverted": e.appearance === "inverted"
1053
1127
  },
1054
1128
  e.class
1055
- ]), i = g(() => (l.value || a.animating) && !e.nonModal), a = ze({
1129
+ ]), i = b(() => (l.value || a.animating) && !e.nonModal), a = Me({
1056
1130
  animating: !1,
1057
1131
  top: 0,
1058
1132
  left: 0,
1059
1133
  width: 0,
1060
1134
  placement: e.placement
1061
- }), d = ze({
1135
+ }), d = Me({
1062
1136
  top: void 0,
1063
1137
  left: void 0,
1064
1138
  hidden: !0
1065
- }), c = g(() => a.top !== 0 && a.left !== 0);
1066
- te(l, () => a.animating = !0);
1067
- const w = g(() => {
1139
+ }), u = b(() => a.top !== 0 && a.left !== 0);
1140
+ oe(l, () => a.animating = !0);
1141
+ const w = b(() => {
1068
1142
  if (e.anchor === void 0) return;
1069
- const k = U(), pe = e.width === "anchor", X = pe ? k == null ? void 0 : k.getBoundingClientRect().width : void 0;
1143
+ const k = N(), me = e.width === "anchor", X = me ? k == null ? void 0 : k.getBoundingClientRect().width : void 0;
1070
1144
  return {
1071
1145
  top: `${a.top}px`,
1072
1146
  left: `${a.left}px`,
1073
1147
  width: X !== void 0 ? `${X}px` : void 0
1074
1148
  };
1075
- }), L = g(() => {
1149
+ }), S = b(() => {
1076
1150
  if (e.arrow)
1077
1151
  return {
1078
1152
  top: d.top !== void 0 ? `${d.top}px` : void 0,
1079
1153
  left: d.left !== void 0 ? `${d.left}px` : void 0,
1080
1154
  opacity: d.hidden ? 0 : 1
1081
1155
  };
1082
- }), P = D(null), A = D(null);
1083
- function T() {
1084
- const k = U();
1156
+ }), O = D(null), A = D(null);
1157
+ function V() {
1158
+ const k = N();
1085
1159
  if (!k || !A.value)
1086
1160
  return;
1087
- const pe = {
1161
+ const me = {
1088
1162
  placement: e.placement,
1089
1163
  width: e.width,
1090
1164
  offset: e.offset,
1091
1165
  arrow: e.arrow
1092
- }, X = eo(
1166
+ }, X = io(
1093
1167
  k,
1094
1168
  A.value,
1095
- (P == null ? void 0 : P.value) ?? void 0,
1096
- pe
1169
+ (O == null ? void 0 : O.value) ?? void 0,
1170
+ me
1097
1171
  );
1098
1172
  a.left = X.overlayCoords.x, a.top = X.overlayCoords.y, a.placement = X.placement, d.hidden = X.arrowCoords === void 0, X.arrowCoords && (d.top = X.arrowCoords.y, d.left = X.arrowCoords.x);
1099
1173
  }
1100
- te(
1174
+ oe(
1101
1175
  () => e.placement,
1102
- () => oe(T)
1176
+ () => ne(V)
1103
1177
  );
1104
1178
  let y;
1105
1179
  function E() {
1106
1180
  Q(0);
1107
1181
  }
1108
- function M() {
1182
+ function P() {
1109
1183
  Q(e.delay);
1110
1184
  }
1111
1185
  function Q(k) {
@@ -1113,13 +1187,13 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1113
1187
  l.value = !0;
1114
1188
  }, k));
1115
1189
  }
1116
- function H() {
1190
+ function G() {
1117
1191
  if (clearTimeout(y), y = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1118
- const k = U();
1192
+ const k = N();
1119
1193
  k == null || k.focus();
1120
1194
  }
1121
1195
  }
1122
- te(c, () => oe(se));
1196
+ oe(u, () => ne(se));
1123
1197
  function se() {
1124
1198
  n("enter");
1125
1199
  }
@@ -1127,14 +1201,14 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1127
1201
  function ae() {
1128
1202
  window.clearTimeout(W), W = window.setTimeout(() => a.animating = !1, 200), n("leave");
1129
1203
  }
1130
- function U() {
1131
- return e.anchor ? uo(e.anchor) : null;
1204
+ function N() {
1205
+ return e.anchor ? yo(e.anchor) : null;
1132
1206
  }
1133
- let Y;
1207
+ let J;
1134
1208
  function v() {
1135
- const k = U();
1209
+ const k = N();
1136
1210
  if (k)
1137
- switch (Y = new MutationObserver(T), Y.observe(k, {
1211
+ switch (J = new MutationObserver(V), J.observe(k, {
1138
1212
  attributes: !1,
1139
1213
  childList: !0,
1140
1214
  characterData: !0,
@@ -1144,67 +1218,67 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1144
1218
  k.addEventListener("click", E);
1145
1219
  break;
1146
1220
  case "hover":
1147
- k.addEventListener("mouseenter", M), k.addEventListener("mouseleave", H), k.addEventListener("focusin", E), k.addEventListener("focusout", H);
1221
+ k.addEventListener("mouseenter", P), k.addEventListener("mouseleave", G), k.addEventListener("focusin", E), k.addEventListener("focusout", G);
1148
1222
  break;
1149
1223
  }
1150
1224
  }
1151
- function $() {
1152
- const k = U();
1225
+ function q() {
1226
+ const k = N();
1153
1227
  if (k)
1154
- switch (Y == null || Y.disconnect(), e.trigger) {
1228
+ switch (J == null || J.disconnect(), e.trigger) {
1155
1229
  case "click":
1156
1230
  k.removeEventListener("click", E);
1157
1231
  break;
1158
1232
  case "hover":
1159
- k.removeEventListener("mouseenter", M), k.removeEventListener("mouseleave", H), k.removeEventListener("focusin", E), k.removeEventListener("focusout", H);
1233
+ k.removeEventListener("mouseenter", P), k.removeEventListener("mouseleave", G), k.removeEventListener("focusin", E), k.removeEventListener("focusout", G);
1160
1234
  break;
1161
1235
  }
1162
1236
  }
1163
1237
  function f() {
1164
- window.addEventListener("resize", T), e.scrollLock || window.addEventListener("scroll", T);
1238
+ window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
1165
1239
  }
1166
- function b() {
1167
- window.removeEventListener("resize", T), e.scrollLock || window.removeEventListener("scroll", T);
1240
+ function g() {
1241
+ window.removeEventListener("resize", V), e.scrollLock || window.removeEventListener("scroll", V);
1168
1242
  }
1169
- let G;
1243
+ let R;
1170
1244
  function ie() {
1171
- U() ? (T(), G = window.setTimeout(ie, 100)) : H();
1245
+ N() ? (V(), R = window.setTimeout(ie, 100)) : G();
1172
1246
  }
1173
- function ee() {
1174
- f(), e.spy ? ie() : T(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && oe(() => {
1247
+ function te() {
1248
+ f(), e.spy ? ie() : V(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && ne(() => {
1175
1249
  var k;
1176
1250
  return (k = A.value) == null ? void 0 : k.focus();
1177
1251
  });
1178
1252
  }
1179
1253
  function de() {
1180
- b(), e.spy && (clearTimeout(G), G = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1254
+ g(), e.spy && (clearTimeout(R), R = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1181
1255
  }
1182
1256
  function ke() {
1183
- e.persistent || H();
1257
+ e.persistent || G();
1184
1258
  }
1185
- return Re(() => {
1186
- oe(v);
1259
+ return Ke(() => {
1260
+ ne(v);
1187
1261
  }), ut(() => {
1188
- $(), de();
1189
- }), te(
1262
+ q(), de();
1263
+ }), oe(
1190
1264
  l,
1191
1265
  (k) => {
1192
- oe(() => k ? ee() : de());
1266
+ ne(() => k ? te() : de());
1193
1267
  },
1194
1268
  { immediate: !0 }
1195
- ), (k, pe) => (r(), S(ct, {
1269
+ ), (k, me) => (r(), I(ft, {
1196
1270
  disabled: !l.value && !a.animating || e.inline,
1197
1271
  to: e.attach
1198
1272
  }, [
1199
1273
  i.value ? (r(), p("div", {
1200
1274
  key: 0,
1201
- class: V([
1275
+ class: T([
1202
1276
  e.backdropClass,
1203
1277
  "q-overlay__underlay",
1204
1278
  { "q-overlay__underlay--blur": e.backdropBlur }
1205
1279
  ])
1206
- }, null, 2)) : q("", !0),
1207
- z(ft, {
1280
+ }, null, 2)) : $("", !0),
1281
+ M(pt, {
1208
1282
  name: e.transition,
1209
1283
  appear: "",
1210
1284
  onLeave: ae
@@ -1212,48 +1286,48 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1212
1286
  default: _(() => [
1213
1287
  l.value ? (r(), p("div", {
1214
1288
  key: 0,
1215
- class: V(s.value),
1289
+ class: T(s.value),
1216
1290
  style: ue(w.value)
1217
1291
  }, [
1218
- I("div", J({
1292
+ L("div", Z({
1219
1293
  class: "q-overlay__content",
1220
1294
  ref_key: "overlayRef",
1221
1295
  ref: A,
1222
1296
  tabindex: "-1",
1223
1297
  role: i.value ? "dialog" : void 0
1224
1298
  }, k.$attrs, {
1225
- onKeydown: pt(ke, ["escape"]),
1299
+ onKeydown: Ie(ke, ["escape"]),
1226
1300
  onBlur: ke
1227
1301
  }), [
1228
1302
  e.arrow ? (r(), p("div", {
1229
1303
  key: 0,
1230
1304
  ref_key: "arrowRef",
1231
- ref: P,
1305
+ ref: O,
1232
1306
  role: "presentation",
1233
1307
  class: "q-overlay__arrow",
1234
- style: ue(L.value)
1235
- }, null, 4)) : q("", !0),
1308
+ style: ue(S.value)
1309
+ }, null, 4)) : $("", !0),
1236
1310
  h(k.$slots, "default")
1237
- ], 16, co)
1238
- ], 6)) : q("", !0)
1311
+ ], 16, bo)
1312
+ ], 6)) : $("", !0)
1239
1313
  ]),
1240
1314
  _: 3
1241
1315
  }, 8, ["name"])
1242
1316
  ], 8, ["disabled", "to"]));
1243
1317
  }
1244
- }), ye = C(fo), po = ["id"], mo = {
1318
+ }), ye = C(go), _o = ["id"], ko = {
1245
1319
  key: 0,
1246
1320
  class: "q-field__label"
1247
- }, vo = ["for"], ho = {
1321
+ }, $o = ["for"], wo = {
1248
1322
  key: 0,
1249
1323
  class: "q-field__prepend"
1250
- }, yo = {
1324
+ }, qo = {
1251
1325
  key: 1,
1252
1326
  class: "q-field__append"
1253
- }, bo = {
1327
+ }, xo = {
1254
1328
  key: 1,
1255
1329
  class: "q-field__extras"
1256
- }, go = /* @__PURE__ */ B({
1330
+ }, Lo = /* @__PURE__ */ B({
1257
1331
  inheritAttrs: !1,
1258
1332
  __name: "QField",
1259
1333
  props: {
@@ -1267,12 +1341,12 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1267
1341
  class: { default: void 0 }
1268
1342
  },
1269
1343
  setup(o, { expose: t }) {
1270
- const e = o, n = fe(e.id), l = D(null), s = g(() => e.required && !e.readonly && !e.disabled);
1344
+ const e = o, n = fe(e.id), l = D(null), s = b(() => e.required && !e.readonly && !e.disabled);
1271
1345
  return t({
1272
1346
  fieldRef: l
1273
1347
  }), (i, a) => (r(), p("div", {
1274
1348
  id: m(n),
1275
- class: V([
1349
+ class: T([
1276
1350
  "q-field",
1277
1351
  `q-field--${e.size}`,
1278
1352
  {
@@ -1283,37 +1357,37 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1283
1357
  e.class
1284
1358
  ])
1285
1359
  }, [
1286
- e.label ? (r(), p("div", mo, [
1360
+ e.label ? (r(), p("div", ko, [
1287
1361
  h(i.$slots, "label.prepend"),
1288
- I("label", {
1362
+ L("label", {
1289
1363
  for: e.for
1290
- }, O(e.label), 9, vo),
1364
+ }, z(e.label), 9, $o),
1291
1365
  h(i.$slots, "label.append")
1292
- ])) : q("", !0),
1366
+ ])) : $("", !0),
1293
1367
  h(i.$slots, "control", {}, () => [
1294
- I("div", J({
1368
+ L("div", Z({
1295
1369
  class: "q-field__control",
1296
1370
  ref_key: "fieldRef",
1297
1371
  ref: l
1298
1372
  }, i.$attrs), [
1299
- i.$slots.prepend ? (r(), p("div", ho, [
1373
+ i.$slots.prepend ? (r(), p("div", wo, [
1300
1374
  h(i.$slots, "prepend")
1301
- ])) : q("", !0),
1375
+ ])) : $("", !0),
1302
1376
  h(i.$slots, "default"),
1303
- i.$slots.append ? (r(), p("div", yo, [
1377
+ i.$slots.append ? (r(), p("div", qo, [
1304
1378
  h(i.$slots, "append")
1305
- ])) : q("", !0)
1379
+ ])) : $("", !0)
1306
1380
  ], 16)
1307
1381
  ]),
1308
- i.$slots.extras ? (r(), p("div", bo, [
1382
+ i.$slots.extras ? (r(), p("div", xo, [
1309
1383
  h(i.$slots, "extras")
1310
- ])) : q("", !0)
1311
- ], 10, po));
1384
+ ])) : $("", !0)
1385
+ ], 10, _o));
1312
1386
  }
1313
- }), Le = C(go), _o = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], ko = /* @__PURE__ */ B({
1387
+ }), Le = C(Lo), Io = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], So = /* @__PURE__ */ B({
1314
1388
  inheritAttrs: !1,
1315
1389
  __name: "QTextField",
1316
- props: /* @__PURE__ */ Z({
1390
+ props: /* @__PURE__ */ Y({
1317
1391
  id: { default: void 0 },
1318
1392
  placeholder: { default: "" },
1319
1393
  label: { default: "" },
@@ -1331,19 +1405,19 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1331
1405
  }),
1332
1406
  emits: ["update:modelValue"],
1333
1407
  setup(o, { expose: t }) {
1334
- const e = o, n = ne(o, "modelValue"), l = fe(e.id), s = D(null), i = D(null), a = g(
1408
+ const e = o, n = ee(o, "modelValue"), l = fe(e.id), s = D(null), i = D(null), a = b(
1335
1409
  () => e.readonly || e.disabled ? "" : e.placeholder
1336
1410
  );
1337
1411
  return t({
1338
- fieldRef: g(() => {
1412
+ fieldRef: b(() => {
1339
1413
  var d;
1340
1414
  return (d = s.value) == null ? void 0 : d.fieldRef;
1341
1415
  }),
1342
1416
  inputRef: i
1343
- }), (d, c) => (r(), S(m(Le), {
1417
+ }), (d, u) => (r(), I(m(Le), {
1344
1418
  ref_key: "fieldRef",
1345
1419
  ref: s,
1346
- class: V(["q-text-field", e.class]),
1420
+ class: T(["q-text-field", e.class]),
1347
1421
  for: m(l),
1348
1422
  label: e.label,
1349
1423
  size: e.size,
@@ -1358,8 +1432,8 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1358
1432
  h(d.$slots, "label.append")
1359
1433
  ]),
1360
1434
  default: _(() => [
1361
- mt(I("input", J({
1362
- "onUpdate:modelValue": c[0] || (c[0] = (w) => n.value = w),
1435
+ mt(L("input", Z({
1436
+ "onUpdate:modelValue": u[0] || (u[0] = (w) => n.value = w),
1363
1437
  ref_key: "inputRef",
1364
1438
  ref: i,
1365
1439
  id: m(l),
@@ -1371,7 +1445,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1371
1445
  readonly: e.readonly,
1372
1446
  disabled: e.disabled,
1373
1447
  maxlength: e.maxLength
1374
- }, d.$attrs), null, 16, _o), [
1448
+ }, d.$attrs), null, 16, Io), [
1375
1449
  [vt, n.value]
1376
1450
  ])
1377
1451
  ]),
@@ -1400,27 +1474,27 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1400
1474
  } : void 0
1401
1475
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1402
1476
  }
1403
- }), lt = C(ko), wo = {
1477
+ }), st = C(So), Bo = {
1404
1478
  noData: "No data available",
1405
1479
  clearValue: "Clear value",
1406
1480
  showOptions: "Show options"
1407
- }, $o = {
1481
+ }, Co = {
1408
1482
  chevron: {
1409
1483
  icon: "chevron-down"
1410
1484
  },
1411
1485
  clear: {
1412
1486
  icon: "close"
1413
1487
  }
1414
- }, qo = ["data-key"], xo = {
1488
+ }, To = ["data-key"], Vo = {
1415
1489
  key: 0,
1416
1490
  class: "q-select__loader"
1417
- }, Lo = {
1491
+ }, Eo = {
1418
1492
  key: 2,
1419
1493
  class: "q-select__loader"
1420
- }, Io = /* @__PURE__ */ B({
1494
+ }, Do = /* @__PURE__ */ B({
1421
1495
  inheritAttrs: !1,
1422
1496
  __name: "QCombobox",
1423
- props: /* @__PURE__ */ Z({
1497
+ props: /* @__PURE__ */ Y({
1424
1498
  id: { default: void 0 },
1425
1499
  placeholder: { default: "" },
1426
1500
  selectionMode: { default: "automatic" },
@@ -1438,8 +1512,8 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1438
1512
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1439
1513
  size: { default: void 0 },
1440
1514
  class: { default: void 0 },
1441
- icons: { default: () => $o },
1442
- texts: { default: () => wo }
1515
+ icons: { default: () => Co },
1516
+ texts: { default: () => Bo }
1443
1517
  }, {
1444
1518
  modelValue: {
1445
1519
  type: [String, Number, Boolean, Symbol]
@@ -1450,110 +1524,110 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1450
1524
  search: { default: "" },
1451
1525
  searchModifiers: {}
1452
1526
  }),
1453
- emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1527
+ emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1454
1528
  setup(o, { expose: t, emit: e }) {
1455
- const n = o, l = e, s = ne(o, "modelValue"), i = ne(o, "open"), a = ne(o, "search"), d = D(void 0), c = D(null), w = D(null), L = D(null), P = D(null);
1456
- Re(W);
1457
- const A = g(() => n.clearable && !n.readonly && !n.disabled), T = g(() => {
1458
- var u;
1459
- return n.filterMode === "manual" || !H.value ? n.items : (u = n.items) == null ? void 0 : u.filter(
1529
+ const n = o, l = e, s = ee(o, "modelValue"), i = ee(o, "open"), a = ee(o, "search"), d = D(void 0), u = D(null), w = D(null), S = D(null), O = D(null);
1530
+ Ke(W);
1531
+ const A = b(() => n.clearable && !n.readonly && !n.disabled), V = b(() => {
1532
+ var c;
1533
+ return n.filterMode === "manual" || !G.value ? n.items : (c = n.items) == null ? void 0 : c.filter(
1460
1534
  (x) => x[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1461
1535
  );
1462
- }), y = g(() => {
1463
- var u;
1464
- return (u = n.items) == null ? void 0 : u.find((x) => x[n.itemValue] === s.value);
1465
- }), E = g(() => y.value === void 0), M = g(() => {
1466
- const u = d.value;
1467
- if (u !== void 0 && T.value[u])
1468
- return T.value[u];
1469
- }), Q = g(() => {
1536
+ }), y = b(() => {
1537
+ var c;
1538
+ return (c = n.items) == null ? void 0 : c.find((x) => x[n.itemValue] === s.value);
1539
+ }), E = b(() => y.value === void 0), P = b(() => {
1540
+ const c = d.value;
1541
+ if (c !== void 0 && V.value[c])
1542
+ return V.value[c];
1543
+ }), Q = b(() => {
1470
1544
  var x;
1471
1545
  if (d.value === void 0)
1472
1546
  return;
1473
- const u = (x = w.value) == null ? void 0 : x.getItem(d.value);
1474
- return u == null ? void 0 : u.id;
1475
- }), H = g(() => {
1476
- var u;
1477
- return a.value.length > 0 && a.value !== ((u = y.value) == null ? void 0 : u[n.itemLabel]);
1547
+ const c = (x = w.value) == null ? void 0 : x.getItem(d.value);
1548
+ return c == null ? void 0 : c.id;
1549
+ }), G = b(() => {
1550
+ var c;
1551
+ return a.value.length > 0 && a.value !== ((c = y.value) == null ? void 0 : c[n.itemLabel]);
1478
1552
  });
1479
- function se(u) {
1480
- s.value = u, U();
1553
+ function se(c) {
1554
+ s.value = c, N();
1481
1555
  }
1482
1556
  function W() {
1483
1557
  var x;
1484
- const u = ((x = y.value) == null ? void 0 : x[n.itemLabel]) || "";
1485
- a.value !== u && (a.value = u);
1558
+ const c = ((x = y.value) == null ? void 0 : x[n.itemLabel]) || "";
1559
+ a.value !== c && (a.value = c);
1486
1560
  }
1487
1561
  function ae() {
1488
1562
  i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, de());
1489
1563
  }
1490
- function U() {
1564
+ function N() {
1491
1565
  i.value && (l("before-hide"), i.value = !1, d.value = void 0);
1492
1566
  }
1493
- function Y() {
1494
- i.value ? U() : $();
1567
+ function J() {
1568
+ i.value ? N() : q();
1495
1569
  }
1496
1570
  function v() {
1497
1571
  A.value && (s.value = n.emptyValue, d.value = void 0, de());
1498
1572
  }
1499
- function $() {
1573
+ function q() {
1500
1574
  if (ae(), y.value !== void 0) {
1501
- const u = T.value.indexOf(y.value);
1502
- u !== -1 && oe(() => X(u));
1575
+ const c = V.value.indexOf(y.value);
1576
+ c !== -1 && ne(() => X(c));
1503
1577
  }
1504
1578
  }
1505
- function f(u) {
1579
+ function f(c) {
1506
1580
  var x, F;
1507
- if (!(!u.key || n.readonly || n.disabled))
1508
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), u.key === "Escape")
1509
- W(), i.value && U();
1510
- else if (["ArrowDown", "ArrowUp"].includes(u.key))
1511
- i.value ? oe(() => {
1581
+ if (!(!c.key || n.readonly || n.disabled))
1582
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
1583
+ W(), i.value && N();
1584
+ else if (["ArrowDown", "ArrowUp"].includes(c.key))
1585
+ i.value ? ne(() => {
1512
1586
  if (d.value === void 0)
1513
- b();
1587
+ g();
1514
1588
  else {
1515
- const R = u.key === "ArrowDown" ? "next" : "prev";
1516
- ie(d.value, R);
1589
+ const K = c.key === "ArrowDown" ? "next" : "prev";
1590
+ ie(d.value, K);
1517
1591
  }
1518
- }) : (ae(), oe(() => {
1519
- u.key === "ArrowDown" ? b() : G();
1592
+ }) : (ae(), ne(() => {
1593
+ c.key === "ArrowDown" ? g() : R();
1520
1594
  }));
1521
- else if (u.key === "Enter") {
1522
- if (M.value === void 0) return;
1523
- se(M.value[n.itemValue]);
1524
- } else u.key === "Home" ? d.value = (x = w.value) == null ? void 0 : x.getFirstFocusableItemIndex() : u.key === "End" ? d.value = (F = w.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(u.key) || u.key === "Backspace") && ae();
1595
+ else if (c.key === "Enter") {
1596
+ if (P.value === void 0) return;
1597
+ se(P.value[n.itemValue]);
1598
+ } else c.key === "Home" ? d.value = (x = w.value) == null ? void 0 : x.getFirstFocusableItemIndex() : c.key === "End" ? d.value = (F = w.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && ae();
1525
1599
  }
1526
- function b() {
1527
- var u, x;
1600
+ function g() {
1601
+ var c, x;
1528
1602
  if (E.value)
1529
1603
  d.value = (x = w.value) == null ? void 0 : x.getFirstFocusableItemIndex();
1530
1604
  else {
1531
- const F = T.value.findIndex(
1532
- (R) => R[n.itemValue] === s.value
1605
+ const F = V.value.findIndex(
1606
+ (K) => K[n.itemValue] === s.value
1533
1607
  );
1534
- F === -1 ? d.value = (u = w.value) == null ? void 0 : u.getFirstFocusableItemIndex() : d.value = F;
1608
+ F === -1 ? d.value = (c = w.value) == null ? void 0 : c.getFirstFocusableItemIndex() : d.value = F;
1535
1609
  }
1536
1610
  }
1537
- function G() {
1538
- var u;
1539
- d.value = (u = w.value) == null ? void 0 : u.getLastFocusableItemIndex();
1611
+ function R() {
1612
+ var c;
1613
+ d.value = (c = w.value) == null ? void 0 : c.getLastFocusableItemIndex();
1540
1614
  }
1541
- function ie(u, x) {
1615
+ function ie(c, x) {
1542
1616
  var F;
1543
- d.value = (F = w.value) == null ? void 0 : F.getAdjacentItemIndex(u, x);
1617
+ d.value = (F = w.value) == null ? void 0 : F.getAdjacentItemIndex(c, x);
1544
1618
  }
1545
- function ee(u) {
1546
- var me, Ee, De, Ae;
1547
- const x = ((me = L == null ? void 0 : L.value) == null ? void 0 : me.$el) === u.relatedTarget, F = (De = (Ee = c == null ? void 0 : c.value) == null ? void 0 : Ee.$el) == null ? void 0 : De.contains(u.relatedTarget), R = (Ae = P == null ? void 0 : P.value) == null ? void 0 : Ae.contains(u.relatedTarget);
1548
- if (x || R || F) {
1549
- u.preventDefault(), u.stopPropagation();
1619
+ function te(c) {
1620
+ var ve, De, Ae, Qe;
1621
+ const x = ((ve = S == null ? void 0 : S.value) == null ? void 0 : ve.$el) === c.relatedTarget, F = (Ae = (De = u == null ? void 0 : u.value) == null ? void 0 : De.$el) == null ? void 0 : Ae.contains(c.relatedTarget), K = (Qe = O == null ? void 0 : O.value) == null ? void 0 : Qe.contains(c.relatedTarget);
1622
+ if (x || K || F) {
1623
+ c.preventDefault(), c.stopPropagation();
1550
1624
  return;
1551
1625
  }
1552
- U(), A.value && !a.value && (s.value = n.emptyValue), W();
1626
+ N(), A.value && !a.value && (s.value = n.emptyValue), W();
1553
1627
  }
1554
1628
  function de() {
1555
- var u, x;
1556
- (x = (u = c.value) == null ? void 0 : u.inputRef) == null || x.focus();
1629
+ var c, x;
1630
+ (x = (c = u.value) == null ? void 0 : c.inputRef) == null || x.focus();
1557
1631
  }
1558
1632
  function ke() {
1559
1633
  de();
@@ -1561,45 +1635,45 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1561
1635
  function k() {
1562
1636
  l("show");
1563
1637
  }
1564
- function pe() {
1638
+ function me() {
1565
1639
  l("hide");
1566
1640
  }
1567
- function X(u) {
1641
+ function X(c) {
1568
1642
  var F;
1569
- const x = (F = w.value) == null ? void 0 : F.getItem(u);
1643
+ const x = (F = w.value) == null ? void 0 : F.getItem(c);
1570
1644
  w.value && (w.value.$el.scrollTop = x == null ? void 0 : x.offsetTop);
1571
1645
  }
1572
- return te(s, W), te(
1646
+ return oe(s, W), oe(
1573
1647
  () => n.items,
1574
- (u, x) => {
1648
+ (c, x) => {
1575
1649
  if (!E.value) {
1576
- const F = x.find((R) => R[n.itemValue] === s.value);
1650
+ const F = x.find((K) => K[n.itemValue] === s.value);
1577
1651
  a.value === (F == null ? void 0 : F[n.itemLabel]) && W();
1578
1652
  }
1579
1653
  },
1580
1654
  { deep: !0 }
1581
- ), te(d, (u) => {
1582
- u !== void 0 && X(u);
1583
- }), te(a, (u) => {
1584
- u && i.value && n.selectionMode === "automatic" && oe(b);
1585
- }), te(
1655
+ ), oe(d, (c) => {
1656
+ c !== void 0 && X(c);
1657
+ }), oe(a, (c) => {
1658
+ c && i.value && n.selectionMode === "automatic" && ne(g);
1659
+ }), oe(
1586
1660
  () => n.loading,
1587
- (u) => {
1588
- !u && i.value && oe(b);
1661
+ (c) => {
1662
+ !c && i.value && ne(g);
1589
1663
  }
1590
1664
  ), t({
1591
- triggerEl: c
1592
- }), (u, x) => {
1665
+ triggerEl: u
1666
+ }), (c, x) => {
1593
1667
  var F;
1594
- return r(), p(K, null, [
1595
- z(m(lt), J({
1668
+ return r(), p(H, null, [
1669
+ M(m(st), Z({
1596
1670
  modelValue: a.value,
1597
- "onUpdate:modelValue": x[0] || (x[0] = (R) => a.value = R),
1671
+ "onUpdate:modelValue": x[0] || (x[0] = (K) => a.value = K),
1598
1672
  id: n.id,
1599
1673
  label: n.label,
1600
1674
  required: n.required,
1601
1675
  ref_key: "triggerEl",
1602
- ref: c,
1676
+ ref: u,
1603
1677
  role: "combobox",
1604
1678
  placeholder: n.placeholder,
1605
1679
  class: [
@@ -1620,20 +1694,20 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1620
1694
  "aria-autocomplete": "list",
1621
1695
  "aria-activedescendant": Q.value,
1622
1696
  size: n.size
1623
- }, u.$attrs, {
1624
- onClick: $,
1625
- onFocusout: ee,
1626
- onKeydown: ve(f, ["stop"])
1697
+ }, c.$attrs, {
1698
+ onClick: q,
1699
+ onFocusout: te,
1700
+ onKeydown: ce(f, ["stop"])
1627
1701
  }), qe({
1628
1702
  "label.prepend": _(() => [
1629
- h(u.$slots, "label.prepend")
1703
+ h(c.$slots, "label.prepend")
1630
1704
  ]),
1631
1705
  "label.append": _(() => [
1632
- h(u.$slots, "label.append")
1706
+ h(c.$slots, "label.append")
1633
1707
  ]),
1634
1708
  append: _(() => [
1635
- h(u.$slots, "append"),
1636
- A.value && a.value ? (r(), S(m(re), {
1709
+ h(c.$slots, "append"),
1710
+ A.value && a.value ? (r(), I(m(re), {
1637
1711
  key: 0,
1638
1712
  class: "q-combobox__clear",
1639
1713
  "aria-label": n.texts.clearValue,
@@ -1643,73 +1717,73 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1643
1717
  onClick: v
1644
1718
  }, {
1645
1719
  default: _(() => [
1646
- z(m(N), j(le(n.icons.clear)), null, 16)
1720
+ M(m(U), j(le(n.icons.clear)), null, 16)
1647
1721
  ]),
1648
1722
  _: 1
1649
- }, 8, ["aria-label"])) : q("", !0),
1650
- n.readonly ? q("", !0) : (r(), S(m(re), {
1723
+ }, 8, ["aria-label"])) : $("", !0),
1724
+ n.readonly ? $("", !0) : (r(), I(m(re), {
1651
1725
  key: 1,
1652
1726
  ref_key: "toggleRef",
1653
- ref: L,
1727
+ ref: S,
1654
1728
  class: "q-combobox__chevron",
1655
1729
  "aria-label": n.texts.showOptions,
1656
1730
  "b-style": "plain",
1657
1731
  borderless: "",
1658
1732
  tabindex: "-1",
1659
1733
  disabled: n.disabled,
1660
- onMousedown: ve(Y, ["stop", "prevent"])
1734
+ onMousedown: ce(J, ["stop", "prevent"])
1661
1735
  }, {
1662
1736
  default: _(() => [
1663
- z(m(N), j(le(n.icons.chevron)), null, 16)
1737
+ M(m(U), j(le(n.icons.chevron)), null, 16)
1664
1738
  ]),
1665
1739
  _: 1
1666
1740
  }, 8, ["aria-label", "disabled"]))
1667
1741
  ]),
1668
1742
  _: 2
1669
1743
  }, [
1670
- u.$slots.prepend ? {
1744
+ c.$slots.prepend ? {
1671
1745
  name: "prepend",
1672
1746
  fn: _(() => [
1673
- h(u.$slots, "prepend")
1747
+ h(c.$slots, "prepend")
1674
1748
  ]),
1675
1749
  key: "0"
1676
1750
  } : void 0,
1677
- u.$slots.extras ? {
1751
+ c.$slots.extras ? {
1678
1752
  name: "extras",
1679
1753
  fn: _(() => [
1680
- h(u.$slots, "extras")
1754
+ h(c.$slots, "extras")
1681
1755
  ]),
1682
1756
  key: "1"
1683
1757
  } : void 0
1684
1758
  ]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1685
- z(m(ye), {
1759
+ M(m(ye), {
1686
1760
  modelValue: i.value,
1687
- "onUpdate:modelValue": x[2] || (x[2] = (R) => i.value = R),
1761
+ "onUpdate:modelValue": x[2] || (x[2] = (K) => i.value = K),
1688
1762
  spy: "",
1689
1763
  "non-modal": "",
1690
1764
  trigger: "manual",
1691
1765
  placement: "bottom-start",
1692
1766
  width: "anchor",
1693
1767
  offset: 4,
1694
- anchor: (F = c.value) == null ? void 0 : F.$el,
1768
+ anchor: (F = u.value) == null ? void 0 : F.$el,
1695
1769
  onEnter: k,
1696
- onLeave: pe
1770
+ onLeave: me
1697
1771
  }, {
1698
1772
  default: _(() => {
1699
- var R;
1773
+ var K;
1700
1774
  return [
1701
- I("div", {
1775
+ L("div", {
1702
1776
  ref_key: "contentRef",
1703
- ref: P,
1777
+ ref: O,
1704
1778
  class: "q-select__body",
1705
1779
  "data-testid": "combobox-dropdown",
1706
1780
  "data-key": n.id,
1707
- onFocusout: ee
1781
+ onFocusout: te
1708
1782
  }, [
1709
- h(u.$slots, "body.prepend"),
1710
- n.loading ? (r(), p("div", xo, [
1711
- z(m(xe), { size: 24 })
1712
- ])) : T.value.length ? (r(), S(m(Ve), {
1783
+ h(c.$slots, "body.prepend"),
1784
+ n.loading ? (r(), p("div", Vo, [
1785
+ M(m(xe), { size: 24 })
1786
+ ])) : V.value.length ? (r(), I(m(Ee), {
1713
1787
  key: 1,
1714
1788
  ref_key: "listRef",
1715
1789
  ref: w,
@@ -1717,23 +1791,23 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1717
1791
  selectable: "",
1718
1792
  modelValue: s.value,
1719
1793
  "onUpdate:modelValue": [
1720
- x[1] || (x[1] = (me) => s.value = me),
1794
+ x[1] || (x[1] = (ve) => s.value = ve),
1721
1795
  se
1722
1796
  ],
1723
- highlighted: (R = M.value) == null ? void 0 : R[n.itemValue],
1724
- items: T.value,
1725
- groups: u.groups,
1797
+ highlighted: (K = P.value) == null ? void 0 : K[n.itemValue],
1798
+ items: V.value,
1799
+ groups: c.groups,
1726
1800
  "item-label": n.itemLabel,
1727
1801
  "item-value": n.itemValue,
1728
1802
  onMouseup: ke
1729
1803
  }, {
1730
- item: _(({ item: me }) => [
1731
- h(u.$slots, "item", { item: me })
1804
+ item: _(({ item: ve }) => [
1805
+ h(c.$slots, "item", { item: ve })
1732
1806
  ]),
1733
1807
  _: 3
1734
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), p("div", Lo, O(n.texts.noData), 1)),
1735
- h(u.$slots, "body.append")
1736
- ], 40, qo)
1808
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), p("div", Eo, z(n.texts.noData), 1)),
1809
+ h(c.$slots, "body.append")
1810
+ ], 40, To)
1737
1811
  ];
1738
1812
  }),
1739
1813
  _: 3
@@ -1741,7 +1815,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1741
1815
  ], 64);
1742
1816
  };
1743
1817
  }
1744
- }), So = C(Io), Bo = [
1818
+ }), Ao = C(Do), Qo = [
1745
1819
  {
1746
1820
  id: "button",
1747
1821
  icon: {
@@ -1752,37 +1826,37 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1752
1826
  label: "Ok"
1753
1827
  }
1754
1828
  }
1755
- ], Co = {
1829
+ ], zo = {
1756
1830
  icon: "check-circle-outline"
1757
- }, To = {
1831
+ }, Fo = {
1758
1832
  close: {
1759
1833
  icon: "close"
1760
1834
  }
1761
- }, Vo = { class: "q-dialog__header" }, Eo = { class: "q-dialog__header-title" }, Do = { class: "q-dialog__body" }, Ao = {
1835
+ }, Mo = { class: "q-dialog__header" }, Po = { class: "q-dialog__header-title" }, Oo = { class: "q-dialog__body" }, Uo = {
1762
1836
  key: 0,
1763
1837
  class: "q-dialog__body-icon"
1764
- }, Qo = { class: "q-dialog__body-text" }, Fo = ["innerHTML"], zo = { key: 1 }, Mo = { class: "q-dialog__body-actions" }, Oo = /* @__PURE__ */ B({
1838
+ }, No = { class: "q-dialog__body-text" }, Ho = ["innerHTML"], Go = { key: 1 }, Ro = { class: "q-dialog__body-actions" }, Ko = /* @__PURE__ */ B({
1765
1839
  __name: "QDialog",
1766
- props: /* @__PURE__ */ Z({
1840
+ props: /* @__PURE__ */ Y({
1767
1841
  text: { default: "" },
1768
1842
  attach: { default: "body" },
1769
1843
  inline: { type: Boolean },
1770
1844
  backdropBlur: { type: Boolean, default: !0 },
1771
- buttons: { default: () => Bo },
1845
+ buttons: { default: () => Qo },
1772
1846
  dismissible: { type: Boolean },
1773
1847
  html: { type: Boolean, default: !0 },
1774
- icon: { default: () => Co },
1848
+ icon: { default: () => zo },
1775
1849
  id: { default: void 0 },
1776
1850
  title: { default: "" },
1777
1851
  class: { default: void 0 },
1778
- icons: { default: () => To }
1852
+ icons: { default: () => Fo }
1779
1853
  }, {
1780
1854
  modelValue: { type: Boolean },
1781
1855
  modelModifiers: {}
1782
1856
  }),
1783
1857
  emits: ["update:modelValue"],
1784
1858
  setup(o) {
1785
- const t = o, e = ne(o, "modelValue"), n = fe(t.id), l = g(() => ["q-dialog", t.class]);
1859
+ const t = o, e = ee(o, "modelValue"), n = fe(t.id), l = b(() => ["q-dialog", t.class]);
1786
1860
  function s() {
1787
1861
  e.value = !1;
1788
1862
  }
@@ -1790,7 +1864,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1790
1864
  var d;
1791
1865
  (d = a.action) == null || d.call(a), s();
1792
1866
  }
1793
- return (a, d) => (r(), S(m(ye), {
1867
+ return (a, d) => (r(), I(m(ye), {
1794
1868
  "model-value": e.value,
1795
1869
  id: m(n),
1796
1870
  inline: t.inline,
@@ -1801,48 +1875,48 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1801
1875
  persistent: ""
1802
1876
  }, {
1803
1877
  default: _(() => [
1804
- I("div", {
1805
- class: V(l.value)
1878
+ L("div", {
1879
+ class: T(l.value)
1806
1880
  }, [
1807
- I("div", Vo, [
1808
- I("span", Eo, O(t.title), 1),
1809
- t.dismissible ? (r(), S(m(re), {
1881
+ L("div", Mo, [
1882
+ L("span", Po, z(t.title), 1),
1883
+ t.dismissible ? (r(), I(m(re), {
1810
1884
  key: 0,
1811
1885
  "b-style": "tertiary",
1812
1886
  onClick: s
1813
1887
  }, {
1814
1888
  default: _(() => [
1815
- z(m(N), j(le(t.icons.close)), null, 16)
1889
+ M(m(U), j(le(t.icons.close)), null, 16)
1816
1890
  ]),
1817
1891
  _: 1
1818
- })) : q("", !0)
1892
+ })) : $("", !0)
1819
1893
  ]),
1820
1894
  h(a.$slots, "body.content", {}, () => [
1821
- I("div", Do, [
1895
+ L("div", Oo, [
1822
1896
  h(a.$slots, "body.icon", {}, () => [
1823
- t.icon ? (r(), p("span", Ao, [
1824
- z(m(N), j(le(t.icon)), null, 16)
1825
- ])) : q("", !0)
1897
+ t.icon ? (r(), p("span", Uo, [
1898
+ M(m(U), j(le(t.icon)), null, 16)
1899
+ ])) : $("", !0)
1826
1900
  ]),
1827
- I("div", Qo, [
1901
+ L("div", No, [
1828
1902
  t.html ? (r(), p("span", {
1829
1903
  key: 0,
1830
1904
  innerHTML: t.text
1831
- }, null, 8, Fo)) : (r(), p("span", zo, O(t.text), 1))
1905
+ }, null, 8, Ho)) : (r(), p("span", Go, z(t.text), 1))
1832
1906
  ]),
1833
1907
  h(a.$slots, "body.append")
1834
1908
  ])
1835
1909
  ]),
1836
- I("div", Mo, [
1837
- (r(!0), p(K, null, he(t.buttons, (c) => (r(), S(m(re), J({ ref_for: !0 }, c.props, {
1838
- key: c.id,
1839
- onClick: () => i(c)
1910
+ L("div", Ro, [
1911
+ (r(!0), p(H, null, he(t.buttons, (u) => (r(), I(m(re), Z({ ref_for: !0 }, u.props, {
1912
+ key: u.id,
1913
+ onClick: () => i(u)
1840
1914
  }), {
1841
1915
  default: _(() => [
1842
- c.icon ? (r(), S(m(N), J({
1916
+ u.icon ? (r(), I(m(U), Z({
1843
1917
  key: 0,
1844
1918
  ref_for: !0
1845
- }, c.icon), null, 16)) : q("", !0)
1919
+ }, u.icon), null, 16)) : $("", !0)
1846
1920
  ]),
1847
1921
  _: 2
1848
1922
  }, 1040, ["onClick"]))), 128))
@@ -1852,13 +1926,13 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1852
1926
  _: 3
1853
1927
  }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
1854
1928
  }
1855
- }), Po = C(Oo), Uo = {
1929
+ }), jo = C(Ko), Wo = {
1856
1930
  key: 0,
1857
1931
  class: "q-input-group__prepend"
1858
- }, No = { key: 0 }, Ho = {
1932
+ }, Xo = { key: 0 }, Yo = {
1859
1933
  key: 1,
1860
1934
  class: "q-input-group__append"
1861
- }, Go = { key: 0 }, Ro = /* @__PURE__ */ B({
1935
+ }, Zo = { key: 0 }, Jo = /* @__PURE__ */ B({
1862
1936
  __name: "QInputGroup",
1863
1937
  props: {
1864
1938
  id: { default: void 0 },
@@ -1871,31 +1945,31 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1871
1945
  },
1872
1946
  setup(o) {
1873
1947
  const t = o;
1874
- return je({
1948
+ return We({
1875
1949
  QField: {
1876
1950
  size: "block"
1877
1951
  }
1878
- }), (e, n) => (r(), S(m(Le), {
1952
+ }), (e, n) => (r(), I(m(Le), {
1879
1953
  id: t.id,
1880
- class: V(["q-input-group", t.class]),
1954
+ class: T(["q-input-group", t.class]),
1881
1955
  label: t.label,
1882
1956
  required: t.required,
1883
1957
  size: t.size
1884
1958
  }, qe({
1885
1959
  default: _(() => [
1886
- e.$slots.prepend || t.prependIcon ? (r(), p("div", Uo, [
1887
- t.prependIcon ? (r(), p("span", No, [
1888
- z(m(N), j(le(t.prependIcon)), null, 16)
1889
- ])) : q("", !0),
1960
+ e.$slots.prepend || t.prependIcon ? (r(), p("div", Wo, [
1961
+ t.prependIcon ? (r(), p("span", Xo, [
1962
+ M(m(U), j(le(t.prependIcon)), null, 16)
1963
+ ])) : $("", !0),
1890
1964
  h(e.$slots, "prepend")
1891
- ])) : q("", !0),
1965
+ ])) : $("", !0),
1892
1966
  h(e.$slots, "default"),
1893
- e.$slots.append || t.appendIcon ? (r(), p("div", Ho, [
1894
- t.appendIcon ? (r(), p("span", Go, [
1895
- z(m(N), j(le(t.appendIcon)), null, 16)
1896
- ])) : q("", !0),
1967
+ e.$slots.append || t.appendIcon ? (r(), p("div", Yo, [
1968
+ t.appendIcon ? (r(), p("span", Zo, [
1969
+ M(m(U), j(le(t.appendIcon)), null, 16)
1970
+ ])) : $("", !0),
1897
1971
  h(e.$slots, "append")
1898
- ])) : q("", !0)
1972
+ ])) : $("", !0)
1899
1973
  ]),
1900
1974
  _: 2
1901
1975
  }, [
@@ -1908,7 +1982,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1908
1982
  } : void 0
1909
1983
  ]), 1032, ["id", "class", "label", "required", "size"]));
1910
1984
  }
1911
- }), Ko = C(Ro), jo = /* @__PURE__ */ B({
1985
+ }), en = C(Jo), tn = /* @__PURE__ */ B({
1912
1986
  __name: "QLineLoader",
1913
1987
  props: {
1914
1988
  class: { default: void 0 }
@@ -1916,19 +1990,19 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1916
1990
  setup(o) {
1917
1991
  const t = o;
1918
1992
  return (e, n) => (r(), p("div", {
1919
- class: V(["q-line-loader", t.class])
1993
+ class: T(["q-line-loader", t.class])
1920
1994
  }, null, 2));
1921
1995
  }
1922
- }), Wo = C(jo), Xo = {
1996
+ }), on = C(tn), nn = {
1923
1997
  key: 0,
1924
1998
  class: "q-popover__header"
1925
- }, Yo = {
1999
+ }, ln = {
1926
2000
  key: 1,
1927
2001
  class: "q-popover__body"
1928
- }, Zo = ["innerHTML"], Jo = { key: 1 }, en = /* @__PURE__ */ B({
2002
+ }, sn = ["innerHTML"], an = { key: 1 }, rn = /* @__PURE__ */ B({
1929
2003
  inheritAttrs: !1,
1930
2004
  __name: "QPopover",
1931
- props: /* @__PURE__ */ Z({
2005
+ props: /* @__PURE__ */ Y({
1932
2006
  anchor: {},
1933
2007
  arrow: { type: Boolean, default: !0 },
1934
2008
  attach: { default: "body" },
@@ -1944,8 +2018,8 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1944
2018
  }),
1945
2019
  emits: ["update:modelValue"],
1946
2020
  setup(o) {
1947
- const t = o, e = ne(o, "modelValue");
1948
- return (n, l) => (r(), S(m(ye), {
2021
+ const t = o, e = ee(o, "modelValue");
2022
+ return (n, l) => (r(), I(m(ye), {
1949
2023
  modelValue: e.value,
1950
2024
  "onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
1951
2025
  class: "q-popover",
@@ -1958,31 +2032,31 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1958
2032
  placement: t.placement
1959
2033
  }, {
1960
2034
  default: _(() => [
1961
- t.title || n.$slots.header ? (r(), p("h3", Xo, [
1962
- ce(O(t.title) + " ", 1),
2035
+ t.title || n.$slots.header ? (r(), p("h3", nn, [
2036
+ pe(z(t.title) + " ", 1),
1963
2037
  h(n.$slots, "header")
1964
- ])) : q("", !0),
1965
- t.text || n.$slots.body ? (r(), p("div", Yo, [
2038
+ ])) : $("", !0),
2039
+ t.text || n.$slots.body ? (r(), p("div", ln, [
1966
2040
  t.html ? (r(), p("span", {
1967
2041
  key: 0,
1968
2042
  innerHTML: t.text
1969
- }, null, 8, Zo)) : (r(), p("span", Jo, O(t.text), 1)),
2043
+ }, null, 8, sn)) : (r(), p("span", an, z(t.text), 1)),
1970
2044
  h(n.$slots, "body")
1971
- ])) : q("", !0)
2045
+ ])) : $("", !0)
1972
2046
  ]),
1973
2047
  _: 3
1974
2048
  }, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1975
2049
  }
1976
- }), tn = C(en), st = {
2050
+ }), dn = C(rn), at = {
1977
2051
  emptyMessage: "Select a field to view details."
1978
- }, at = {
2052
+ }, it = {
1979
2053
  open: {
1980
2054
  icon: "minus-box"
1981
2055
  },
1982
2056
  close: {
1983
2057
  icon: "plus-box"
1984
2058
  }
1985
- }, on = { class: "q-property-list__table" }, nn = /* @__PURE__ */ B({
2059
+ }, cn = { class: "q-property-list__table" }, un = /* @__PURE__ */ B({
1986
2060
  __name: "QPropertyList",
1987
2061
  props: {
1988
2062
  fields: { default: () => [] },
@@ -1992,78 +2066,78 @@ const co = ["role"], fo = /* @__PURE__ */ B({
1992
2066
  groups: { default: () => [] },
1993
2067
  readonly: { type: Boolean },
1994
2068
  class: { default: void 0 },
1995
- icons: { default: () => at },
1996
- texts: { default: () => st }
2069
+ icons: { default: () => it },
2070
+ texts: { default: () => at }
1997
2071
  },
1998
2072
  emits: ["field-change"],
1999
2073
  setup(o, { emit: t }) {
2000
- const e = o, n = t, l = D(e.groups.map((y) => y.id)), s = D(void 0), i = D(null), a = g(() => e.groups.length ? e.groups.filter(
2074
+ const e = o, n = t, l = D(e.groups.map((y) => y.id)), s = D(void 0), i = D(null), a = b(() => e.groups.length ? e.groups.filter(
2001
2075
  (y) => e.fields.some((E) => E.group === y.id)
2002
- ) : [{ id: "", title: "" }]), d = g(() => [
2076
+ ) : [{ id: "", title: "" }]), d = b(() => [
2003
2077
  e.class,
2004
2078
  {
2005
2079
  "q-property-list--side-panel": e.panelPosition === "right"
2006
2080
  }
2007
2081
  ]);
2008
- function c() {
2082
+ function u() {
2009
2083
  var y;
2010
2084
  (y = i.value) != null && y.contains(document.activeElement) || (s.value = void 0);
2011
2085
  }
2012
2086
  function w(y) {
2013
2087
  return y ? e.fields.filter((E) => E.group === y) : e.fields;
2014
2088
  }
2015
- function L(y) {
2089
+ function S(y) {
2016
2090
  const E = l.value.indexOf(y);
2017
2091
  E === -1 ? l.value.push(y) : l.value.splice(E, 1);
2018
2092
  }
2019
- function P(y) {
2093
+ function O(y) {
2020
2094
  var Q;
2021
- const E = y.group && !l.value.includes(y.group), M = ((Q = s.value) == null ? void 0 : Q.id) === y.id;
2095
+ const E = y.group && !l.value.includes(y.group), P = ((Q = s.value) == null ? void 0 : Q.id) === y.id;
2022
2096
  return [
2023
2097
  {
2024
2098
  "q-property-list__row--closed": E,
2025
- "q-property-list__row--selected": M
2099
+ "q-property-list__row--selected": P
2026
2100
  }
2027
2101
  ];
2028
2102
  }
2029
2103
  function A(y) {
2030
2104
  s.value = y;
2031
2105
  }
2032
- function T(y, E) {
2106
+ function V(y, E) {
2033
2107
  e.readonly || (y.props.readonly ?? !1) || (y.props.modelValue = E, n("field-change", y));
2034
2108
  }
2035
2109
  return (y, E) => (r(), p("div", {
2036
2110
  tabindex: "0",
2037
- class: V(["q-property-list", d.value]),
2111
+ class: T(["q-property-list", d.value]),
2038
2112
  ref_key: "componentRoot",
2039
2113
  ref: i,
2040
- onFocusout: c
2114
+ onFocusout: u
2041
2115
  }, [
2042
- I("table", on, [
2043
- E[0] || (E[0] = I("thead", { class: "q-property-list__header" }, [
2044
- I("tr", null, [
2045
- I("th", { colspan: "2" })
2116
+ L("table", cn, [
2117
+ E[0] || (E[0] = L("thead", { class: "q-property-list__header" }, [
2118
+ L("tr", null, [
2119
+ L("th", { colspan: "2" })
2046
2120
  ])
2047
2121
  ], -1)),
2048
- I("tbody", null, [
2049
- (r(!0), p(K, null, he(a.value, (M) => (r(), p(K, {
2050
- key: M.id
2122
+ L("tbody", null, [
2123
+ (r(!0), p(H, null, he(a.value, (P) => (r(), p(H, {
2124
+ key: P.id
2051
2125
  }, [
2052
- M.title ? (r(), S(m(rt), {
2126
+ P.title ? (r(), I(m(dt), {
2053
2127
  key: 0,
2054
- id: M.id,
2055
- title: M.title,
2128
+ id: P.id,
2129
+ title: P.title,
2056
2130
  icons: e.icons,
2057
2131
  "no-toggle": e.noToggle,
2058
- onToggleGroup: L
2059
- }, null, 8, ["id", "title", "icons", "no-toggle"])) : q("", !0),
2060
- (r(!0), p(K, null, he(w(M.id), (Q) => (r(), S(m(it), {
2132
+ onToggleGroup: S
2133
+ }, null, 8, ["id", "title", "icons", "no-toggle"])) : $("", !0),
2134
+ (r(!0), p(H, null, he(w(P.id), (Q) => (r(), I(m(rt), {
2061
2135
  key: Q.id,
2062
- class: V(P(Q)),
2136
+ class: T(O(Q)),
2063
2137
  field: Q,
2064
2138
  readonly: e.readonly,
2065
2139
  onFocus: A,
2066
- onFieldChange: T
2140
+ onFieldChange: V
2067
2141
  }, {
2068
2142
  default: _(() => [
2069
2143
  h(y.$slots, Q.id, { field: Q })
@@ -2073,7 +2147,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2073
2147
  ], 64))), 128))
2074
2148
  ])
2075
2149
  ]),
2076
- e.noPanel ? q("", !0) : (r(), S(m(dt), {
2150
+ e.noPanel ? $("", !0) : (r(), I(m(ct), {
2077
2151
  key: 0,
2078
2152
  field: s.value,
2079
2153
  texts: e.texts
@@ -2082,16 +2156,16 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2082
2156
  s.value ? h(y.$slots, "panel", {
2083
2157
  key: 0,
2084
2158
  field: s.value
2085
- }) : q("", !0)
2159
+ }) : $("", !0)
2086
2160
  ]),
2087
2161
  _: 3
2088
2162
  }, 8, ["field", "texts"]))
2089
2163
  ], 34));
2090
2164
  }
2091
- }), ln = {
2165
+ }), fn = {
2092
2166
  key: 0,
2093
2167
  class: "q-property-list-field__container"
2094
- }, sn = /* @__PURE__ */ B({
2168
+ }, pn = /* @__PURE__ */ B({
2095
2169
  __name: "QPropertyListRow",
2096
2170
  props: {
2097
2171
  field: {},
@@ -2100,56 +2174,56 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2100
2174
  },
2101
2175
  emits: ["focus", "field-change"],
2102
2176
  setup(o, { emit: t }) {
2103
- const e = o, n = t, l = g(() => ["q-property-list__row", e.class]), s = g(() => {
2104
- var L;
2177
+ const e = o, n = t, l = b(() => ["q-property-list__row", e.class]), s = b(() => {
2178
+ var S;
2105
2179
  const w = ["q-property-list__cell", "q-property-list__cell--label"];
2106
- return (L = e.field.props) != null && L.required && w.push("q-property-list__cell--required"), w;
2107
- }), i = g(() => e.readonly || (e.field.props.readonly ?? !1));
2180
+ return (S = e.field.props) != null && S.required && w.push("q-property-list__cell--required"), w;
2181
+ }), i = b(() => e.readonly || (e.field.props.readonly ?? !1));
2108
2182
  function a() {
2109
2183
  n("focus", e.field);
2110
2184
  }
2111
2185
  function d(w) {
2112
2186
  n("field-change", e.field, w);
2113
2187
  }
2114
- const c = g(() => ({
2188
+ const u = b(() => ({
2115
2189
  ...e.field.props,
2116
2190
  readonly: i.value
2117
2191
  }));
2118
- return (w, L) => (r(), p("tr", {
2119
- class: V(l.value),
2192
+ return (w, S) => (r(), p("tr", {
2193
+ class: T(l.value),
2120
2194
  onFocusin: a
2121
2195
  }, [
2122
- I("td", {
2123
- class: V(s.value),
2196
+ L("td", {
2197
+ class: T(s.value),
2124
2198
  onClick: a
2125
- }, O(e.field.label), 3),
2126
- I("td", {
2199
+ }, z(e.field.label), 3),
2200
+ L("td", {
2127
2201
  class: "q-property-list__cell",
2128
2202
  onClick: a
2129
2203
  }, [
2130
2204
  h(w.$slots, "default", {}, () => [
2131
- e.field.component ? (r(), p("div", ln, [
2132
- (r(), S(Be(e.field.component), J(c.value, {
2205
+ e.field.component ? (r(), p("div", fn, [
2206
+ (r(), I(Ce(e.field.component), Z(u.value, {
2133
2207
  "model-value": e.field.props.modelValue,
2134
2208
  "onUpdate:modelValue": d
2135
2209
  }), null, 16, ["model-value"]))
2136
- ])) : q("", !0)
2210
+ ])) : $("", !0)
2137
2211
  ])
2138
2212
  ])
2139
2213
  ], 34));
2140
2214
  }
2141
- }), an = ["data-key", "aria-labelledby"], rn = ["id"], dn = { class: "q-property-list-group__content" }, un = /* @__PURE__ */ B({
2215
+ }), mn = ["data-key", "aria-labelledby"], vn = ["id"], hn = { class: "q-property-list-group__content" }, yn = /* @__PURE__ */ B({
2142
2216
  __name: "QPropertyListGroup",
2143
2217
  props: {
2144
2218
  id: {},
2145
2219
  title: {},
2146
2220
  noToggle: { type: Boolean, default: !1 },
2147
- icons: { default: () => at },
2221
+ icons: { default: () => it },
2148
2222
  texts: {}
2149
2223
  },
2150
2224
  emits: ["toggle-group"],
2151
2225
  setup(o, { emit: t }) {
2152
- const e = o, n = t, l = D(!0), s = fe(), i = g(() => l.value ? e.icons.open : e.icons.close), a = g(() => [
2226
+ const e = o, n = t, l = D(!0), s = fe(), i = b(() => l.value ? e.icons.open : e.icons.close), a = b(() => [
2153
2227
  "q-property-list-group",
2154
2228
  {
2155
2229
  "q-property-list-group--no-toggle": e.noToggle
@@ -2158,77 +2232,77 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2158
2232
  function d() {
2159
2233
  e.noToggle || (l.value = !l.value, n("toggle-group", e.id));
2160
2234
  }
2161
- return (c, w) => (r(), p("tr", {
2162
- class: V(a.value),
2235
+ return (u, w) => (r(), p("tr", {
2236
+ class: T(a.value),
2163
2237
  role: "group",
2164
2238
  "data-key": e.id,
2165
2239
  "aria-labelledby": m(s),
2166
2240
  onClick: d
2167
2241
  }, [
2168
- I("td", {
2242
+ L("td", {
2169
2243
  id: m(s),
2170
2244
  colspan: "2"
2171
2245
  }, [
2172
- I("div", dn, [
2173
- e.noToggle ? q("", !0) : (r(), S(m(re), {
2246
+ L("div", hn, [
2247
+ e.noToggle ? $("", !0) : (r(), I(m(re), {
2174
2248
  key: 0,
2175
2249
  "b-style": "tertiary",
2176
2250
  borderless: "",
2177
2251
  onClick: d
2178
2252
  }, {
2179
2253
  default: _(() => [
2180
- z(m(N), j(le(i.value)), null, 16)
2254
+ M(m(U), j(le(i.value)), null, 16)
2181
2255
  ]),
2182
2256
  _: 1
2183
2257
  })),
2184
- ce(" " + O(e.title), 1)
2258
+ pe(" " + z(e.title), 1)
2185
2259
  ])
2186
- ], 8, rn)
2187
- ], 10, an));
2260
+ ], 8, vn)
2261
+ ], 10, mn));
2188
2262
  }
2189
- }), cn = { class: "q-property-list-panel__container" }, fn = { class: "q-property-list-panel__label" }, pn = { class: "q-property-list-panel__description" }, mn = {
2263
+ }), bn = { class: "q-property-list-panel__container" }, gn = { class: "q-property-list-panel__label" }, _n = { class: "q-property-list-panel__description" }, kn = {
2190
2264
  key: 1,
2191
2265
  class: "q-property-list-panel__empty"
2192
- }, vn = /* @__PURE__ */ B({
2266
+ }, $n = /* @__PURE__ */ B({
2193
2267
  __name: "QPropertyListPanel",
2194
2268
  props: {
2195
2269
  field: { default: void 0 },
2196
2270
  icons: {},
2197
- texts: { default: () => st }
2271
+ texts: { default: () => at }
2198
2272
  },
2199
2273
  setup(o) {
2200
2274
  const t = o;
2201
- return (e, n) => (r(), p("div", cn, [
2275
+ return (e, n) => (r(), p("div", bn, [
2202
2276
  t.field ? h(e.$slots, "default", { key: 0 }, () => [
2203
- I("div", fn, O(t.field.label), 1),
2204
- I("div", pn, O(t.field.description), 1)
2205
- ]) : (r(), p("div", mn, O(t.texts.emptyMessage), 1))
2277
+ L("div", gn, z(t.field.label), 1),
2278
+ L("div", _n, z(t.field.description), 1)
2279
+ ]) : (r(), p("div", kn, z(t.texts.emptyMessage), 1))
2206
2280
  ]));
2207
2281
  }
2208
- }), hn = C(nn), it = C(sn), rt = C(un), dt = C(vn), yn = {
2282
+ }), wn = C(un), rt = C(pn), dt = C(yn), ct = C($n), qn = {
2209
2283
  placeholder: "Choose...",
2210
2284
  clearValue: "Clear value",
2211
2285
  showOptions: "Show options"
2212
- }, bn = {
2286
+ }, xn = {
2213
2287
  chevron: {
2214
2288
  icon: "chevron-down"
2215
2289
  },
2216
2290
  clear: {
2217
2291
  icon: "close"
2218
2292
  }
2219
- }, gn = {
2293
+ }, Ln = {
2220
2294
  key: 0,
2221
2295
  class: "q-select__value"
2222
- }, _n = {
2296
+ }, In = {
2223
2297
  key: 1,
2224
2298
  class: "q-select__placeholder"
2225
- }, kn = ["data-key"], wn = {
2299
+ }, Sn = ["data-key"], Bn = {
2226
2300
  key: 0,
2227
2301
  class: "q-select__loader"
2228
- }, $n = /* @__PURE__ */ B({
2302
+ }, Cn = /* @__PURE__ */ B({
2229
2303
  inheritAttrs: !1,
2230
2304
  __name: "QSelect",
2231
- props: /* @__PURE__ */ Z({
2305
+ props: /* @__PURE__ */ Y({
2232
2306
  id: { default: void 0 },
2233
2307
  label: { default: "" },
2234
2308
  clearable: { type: Boolean },
@@ -2243,53 +2317,53 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2243
2317
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2244
2318
  size: { default: void 0 },
2245
2319
  class: { default: "" },
2246
- icons: { default: () => bn },
2247
- texts: { default: () => yn }
2320
+ icons: { default: () => xn },
2321
+ texts: { default: () => qn }
2248
2322
  }, {
2249
2323
  modelValue: {
2250
2324
  type: [String, Number, Boolean, Symbol]
2251
2325
  },
2252
2326
  modelModifiers: {}
2253
2327
  }),
2254
- emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2328
+ emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2255
2329
  setup(o, { emit: t }) {
2256
- const e = o, n = t, l = ne(o, "modelValue"), s = D(!1), i = D(""), a = D(null), d = D(null), c = D(null), w = g(() => L.value === void 0), L = g(
2330
+ const e = o, n = t, l = ee(o, "modelValue"), s = D(!1), i = D(""), a = D(null), d = D(null), u = D(null), w = b(() => S.value === void 0), S = b(
2257
2331
  () => {
2258
2332
  var f;
2259
- return (f = e.items) == null ? void 0 : f.find((b) => b[e.itemValue] === l.value);
2333
+ return (f = e.items) == null ? void 0 : f.find((g) => g[e.itemValue] === l.value);
2260
2334
  }
2261
- ), P = g(
2262
- () => L.value ? L.value[e.itemLabel] : ""
2263
- ), A = g(
2335
+ ), O = b(
2336
+ () => S.value ? S.value[e.itemLabel] : ""
2337
+ ), A = b(
2264
2338
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2265
2339
  );
2266
- function T(f) {
2340
+ function V(f) {
2267
2341
  l.value = f, Q();
2268
2342
  }
2269
2343
  function y() {
2270
- A.value && (T(e.emptyValue), Y());
2344
+ A.value && (V(e.emptyValue), J());
2271
2345
  }
2272
2346
  function E(f) {
2273
- var b, G, ie;
2274
- !((b = c.value) != null && b.contains(f.relatedTarget)) && !((ie = (G = a.value) == null ? void 0 : G.fieldRef) != null && ie.contains(f.relatedTarget)) && Q();
2347
+ var g, R, ie;
2348
+ !((g = u.value) != null && g.contains(f.relatedTarget)) && !((ie = (R = a.value) == null ? void 0 : R.fieldRef) != null && ie.contains(f.relatedTarget)) && Q();
2275
2349
  }
2276
- function M() {
2350
+ function P() {
2277
2351
  s.value || (n("before-show"), s.value = !0);
2278
2352
  }
2279
2353
  function Q() {
2280
2354
  s.value && (n("before-hide"), s.value = !1);
2281
2355
  }
2282
- function H() {
2283
- e.readonly || e.disabled || (s.value ? Q() : M());
2356
+ function G() {
2357
+ e.readonly || e.disabled || (s.value ? Q() : P());
2284
2358
  }
2285
2359
  let se;
2286
2360
  function W(f) {
2287
2361
  if (!(!f.key || e.readonly || e.disabled)) {
2288
2362
  if (window.clearTimeout(se), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), ["Enter", " "].includes(f.key) && (s.value = !0), ["Escape", "Tab"].includes(f.key) && (s.value ? s.value = !1 : A.value && f.key === "Escape" && y()), f.key === "Delete" && e.clearable && y(), /^[a-z]$/i.test(f.key)) {
2289
2363
  i.value += f.key.toLowerCase();
2290
- for (let b = 0; b < e.items.length; b++)
2291
- if (e.items[b][e.itemLabel].toLowerCase().startsWith(i.value)) {
2292
- $(b);
2364
+ for (let g = 0; g < e.items.length; g++)
2365
+ if (e.items[g][e.itemLabel].toLowerCase().startsWith(i.value)) {
2366
+ q(g);
2293
2367
  break;
2294
2368
  }
2295
2369
  }
@@ -2300,32 +2374,32 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2300
2374
  }
2301
2375
  function ae() {
2302
2376
  var f;
2303
- e.loading ? (f = c.value) == null || f.focus() : v(), n("show");
2377
+ e.loading ? (f = u.value) == null || f.focus() : v(), n("show");
2304
2378
  }
2305
- function U() {
2306
- Y(), n("hide");
2379
+ function N() {
2380
+ J(), n("hide");
2307
2381
  }
2308
- function Y() {
2309
- var f, b;
2310
- (b = (f = a.value) == null ? void 0 : f.fieldRef) == null || b.focus();
2382
+ function J() {
2383
+ var f, g;
2384
+ (g = (f = a.value) == null ? void 0 : f.fieldRef) == null || g.focus();
2311
2385
  }
2312
2386
  function v() {
2313
2387
  var f;
2314
2388
  (f = d.value) == null || f.$el.focus();
2315
2389
  }
2316
- function $(f) {
2317
- var b;
2318
- (b = d.value) == null || b.focusItem(f);
2390
+ function q(f) {
2391
+ var g;
2392
+ (g = d.value) == null || g.focusItem(f);
2319
2393
  }
2320
- return te(
2394
+ return oe(
2321
2395
  () => e.loading,
2322
2396
  (f) => {
2323
- !f && s.value && oe(v);
2397
+ !f && s.value && ne(v);
2324
2398
  }
2325
- ), (f, b) => {
2326
- var G, ie;
2327
- return r(), p(K, null, [
2328
- z(m(Le), J({
2399
+ ), (f, g) => {
2400
+ var R, ie;
2401
+ return r(), p(H, null, [
2402
+ M(m(Le), Z({
2329
2403
  id: e.id,
2330
2404
  label: e.label,
2331
2405
  required: e.required,
@@ -2349,12 +2423,12 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2349
2423
  "aria-haspopup": "listbox",
2350
2424
  size: e.size
2351
2425
  }, f.$attrs, {
2352
- onClick: H,
2353
- onKeydown: ve(W, ["stop"])
2426
+ onClick: G,
2427
+ onKeydown: ce(W, ["stop"])
2354
2428
  }), qe({
2355
2429
  append: _(() => [
2356
2430
  h(f.$slots, "append"),
2357
- A.value && l.value ? (r(), S(m(re), {
2431
+ A.value && l.value ? (r(), I(m(re), {
2358
2432
  key: 0,
2359
2433
  class: "q-select__clear",
2360
2434
  "aria-label": e.texts.clearValue,
@@ -2364,11 +2438,11 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2364
2438
  onClick: y
2365
2439
  }, {
2366
2440
  default: _(() => [
2367
- z(m(N), j(le(e.icons.clear)), null, 16)
2441
+ M(m(U), j(le(e.icons.clear)), null, 16)
2368
2442
  ]),
2369
2443
  _: 1
2370
- }, 8, ["aria-label"])) : q("", !0),
2371
- e.readonly ? q("", !0) : (r(), S(m(re), {
2444
+ }, 8, ["aria-label"])) : $("", !0),
2445
+ e.readonly ? $("", !0) : (r(), I(m(re), {
2372
2446
  key: 1,
2373
2447
  class: "q-select__chevron",
2374
2448
  "aria-label": e.texts.showOptions,
@@ -2376,30 +2450,30 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2376
2450
  borderless: "",
2377
2451
  tabindex: "-1",
2378
2452
  disabled: e.disabled,
2379
- onClick: H
2453
+ onClick: G
2380
2454
  }, {
2381
2455
  default: _(() => [
2382
- z(m(N), j(le(e.icons.chevron)), null, 16)
2456
+ M(m(U), j(le(e.icons.chevron)), null, 16)
2383
2457
  ]),
2384
2458
  _: 1
2385
2459
  }, 8, ["aria-label", "disabled"]))
2386
2460
  ]),
2387
2461
  default: _(() => [
2388
- w.value ? (r(), p("span", _n, [
2389
- !e.readonly && !e.disabled ? (r(), p(K, { key: 0 }, [
2390
- ce(O(e.texts.placeholder), 1)
2391
- ], 64)) : q("", !0)
2392
- ])) : (r(), p("span", gn, O(P.value), 1))
2462
+ w.value ? (r(), p("span", In, [
2463
+ !e.readonly && !e.disabled ? (r(), p(H, { key: 0 }, [
2464
+ pe(z(e.texts.placeholder), 1)
2465
+ ], 64)) : $("", !0)
2466
+ ])) : (r(), p("span", Ln, z(O.value), 1))
2393
2467
  ]),
2394
2468
  _: 2
2395
2469
  }, [
2396
- (G = L.value) != null && G.icon || f.$slots.prepend ? {
2470
+ (R = S.value) != null && R.icon || f.$slots.prepend ? {
2397
2471
  name: "prepend",
2398
2472
  fn: _(() => {
2399
- var ee, de;
2473
+ var te, de;
2400
2474
  return [
2401
2475
  h(f.$slots, "prepend"),
2402
- (ee = L.value) != null && ee.icon ? (r(), S(m(N), j(J({ key: 0 }, (de = L.value) == null ? void 0 : de.icon)), null, 16)) : q("", !0)
2476
+ (te = S.value) != null && te.icon ? (r(), I(m(U), j(Z({ key: 0 }, (de = S.value) == null ? void 0 : de.icon)), null, 16)) : $("", !0)
2403
2477
  ];
2404
2478
  }),
2405
2479
  key: "0"
@@ -2412,9 +2486,9 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2412
2486
  key: "1"
2413
2487
  } : void 0
2414
2488
  ]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
2415
- z(m(ye), {
2489
+ M(m(ye), {
2416
2490
  modelValue: s.value,
2417
- "onUpdate:modelValue": b[0] || (b[0] = (ee) => s.value = ee),
2491
+ "onUpdate:modelValue": g[0] || (g[0] = (te) => s.value = te),
2418
2492
  spy: "",
2419
2493
  trigger: "manual",
2420
2494
  placement: "bottom-start",
@@ -2423,23 +2497,23 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2423
2497
  anchor: (ie = a.value) == null ? void 0 : ie.$el,
2424
2498
  offset: 2,
2425
2499
  onEnter: ae,
2426
- onLeave: U
2500
+ onLeave: N
2427
2501
  }, {
2428
2502
  default: _(() => [
2429
- I("div", {
2503
+ L("div", {
2430
2504
  ref_key: "contentRef",
2431
- ref: c,
2505
+ ref: u,
2432
2506
  "data-testid": "combobox-dropdown",
2433
2507
  "data-key": e.id,
2434
2508
  class: "q-select__body",
2435
2509
  tabindex: "-1",
2436
2510
  onFocusout: E,
2437
- onKeydown: ve(W, ["stop"])
2511
+ onKeydown: ce(W, ["stop"])
2438
2512
  }, [
2439
2513
  h(f.$slots, "body.prepend"),
2440
- e.loading ? (r(), p("div", wn, [
2441
- z(m(xe), { size: 24 })
2442
- ])) : (r(), S(m(Ve), {
2514
+ e.loading ? (r(), p("div", Bn, [
2515
+ M(m(xe), { size: 24 })
2516
+ ])) : (r(), I(m(Ee), {
2443
2517
  key: 1,
2444
2518
  ref_key: "listRef",
2445
2519
  ref: d,
@@ -2450,22 +2524,22 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2450
2524
  groups: f.groups,
2451
2525
  "item-label": e.itemLabel,
2452
2526
  "item-value": e.itemValue,
2453
- "onUpdate:modelValue": T
2527
+ "onUpdate:modelValue": V
2454
2528
  }, {
2455
- item: _(({ item: ee }) => [
2456
- h(f.$slots, "item", { item: ee })
2529
+ item: _(({ item: te }) => [
2530
+ h(f.$slots, "item", { item: te })
2457
2531
  ]),
2458
2532
  _: 3
2459
2533
  }, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
2460
2534
  h(f.$slots, "body.append")
2461
- ], 40, kn)
2535
+ ], 40, Sn)
2462
2536
  ]),
2463
2537
  _: 3
2464
2538
  }, 8, ["modelValue", "anchor"])
2465
2539
  ], 64);
2466
2540
  };
2467
2541
  }
2468
- }), qn = C($n), xn = /* @__PURE__ */ B({
2542
+ }), Tn = C(Cn), Vn = /* @__PURE__ */ B({
2469
2543
  __name: "QSkeletonLoader",
2470
2544
  props: {
2471
2545
  type: { default: void 0 },
@@ -2473,7 +2547,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2473
2547
  height: { default: void 0 }
2474
2548
  },
2475
2549
  setup(o) {
2476
- const t = o, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = g(() => {
2550
+ const t = o, e = b(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = b(() => {
2477
2551
  const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
2478
2552
  return {
2479
2553
  width: l,
@@ -2481,13 +2555,13 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2481
2555
  };
2482
2556
  });
2483
2557
  return (l, s) => (r(), p("div", {
2484
- class: V(["q-skeleton-loader", e.value]),
2558
+ class: T(["q-skeleton-loader", e.value]),
2485
2559
  style: ue(n.value)
2486
2560
  }, s[0] || (s[0] = [
2487
- I("div", { class: "q-skeleton-loader__bone" }, null, -1)
2561
+ L("div", { class: "q-skeleton-loader__bone" }, null, -1)
2488
2562
  ]), 6));
2489
2563
  }
2490
- }), Ln = C(xn), In = /* @__PURE__ */ B({
2564
+ }), En = C(Vn), Dn = /* @__PURE__ */ B({
2491
2565
  __name: "QThemeProvider",
2492
2566
  props: {
2493
2567
  theme: {}
@@ -2495,14 +2569,14 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2495
2569
  setup(o) {
2496
2570
  const t = o;
2497
2571
  return (e, n) => (r(), p("div", {
2498
- class: V(["q-theme-provider", `q-theme--${t.theme}`])
2572
+ class: T(["q-theme-provider", `q-theme--${t.theme}`])
2499
2573
  }, [
2500
2574
  h(e.$slots, "default")
2501
2575
  ], 2));
2502
2576
  }
2503
- }), Sn = C(In), Bn = ["innerHTML"], Cn = /* @__PURE__ */ B({
2577
+ }), An = C(Dn), Qn = ["innerHTML"], zn = /* @__PURE__ */ B({
2504
2578
  __name: "QTooltip",
2505
- props: /* @__PURE__ */ Z({
2579
+ props: /* @__PURE__ */ Y({
2506
2580
  id: { default: void 0 },
2507
2581
  anchor: { default: void 0 },
2508
2582
  appearance: { default: "inverted" },
@@ -2523,12 +2597,12 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2523
2597
  }),
2524
2598
  emits: ["update:modelValue"],
2525
2599
  setup(o) {
2526
- const t = o, e = ne(o, "modelValue"), n = fe(t.id);
2527
- return (l, s) => (r(), p(K, null, [
2600
+ const t = o, e = ee(o, "modelValue"), n = fe(t.id);
2601
+ return (l, s) => (r(), p(H, null, [
2528
2602
  h(l.$slots, "anchor", {
2529
2603
  props: { "aria-describedby": m(n) }
2530
2604
  }),
2531
- z(m(ye), {
2605
+ M(m(ye), {
2532
2606
  "model-value": e.value,
2533
2607
  anchor: t.anchor,
2534
2608
  role: "tooltip",
@@ -2538,7 +2612,7 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2538
2612
  arrow: t.arrow,
2539
2613
  attach: t.attach,
2540
2614
  inline: t.inline,
2541
- class: V(["q-tooltip", t.class]),
2615
+ class: T(["q-tooltip", t.class]),
2542
2616
  delay: t.delay,
2543
2617
  disabled: t.disabled,
2544
2618
  placement: t.placement,
@@ -2546,12 +2620,12 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2546
2620
  }, {
2547
2621
  default: _(() => [
2548
2622
  h(l.$slots, "default", {}, () => [
2549
- t.icon ? (r(), S(m(N), j(J({ key: 0 }, t.icon)), null, 16)) : q("", !0),
2623
+ t.icon ? (r(), I(m(U), j(Z({ key: 0 }, t.icon)), null, 16)) : $("", !0),
2550
2624
  t.html ? (r(), p("span", {
2551
2625
  key: 1,
2552
2626
  innerHTML: t.text
2553
- }, null, 8, Bn)) : (r(), p(K, { key: 2 }, [
2554
- ce(O(t.text), 1)
2627
+ }, null, 8, Qn)) : (r(), p(H, { key: 2 }, [
2628
+ pe(z(t.text), 1)
2555
2629
  ], 64))
2556
2630
  ])
2557
2631
  ]),
@@ -2559,57 +2633,58 @@ const co = ["role"], fo = /* @__PURE__ */ B({
2559
2633
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2560
2634
  ], 64));
2561
2635
  }
2562
- }), Tn = C(Cn), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2636
+ }), Fn = C(zn), Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2563
2637
  __proto__: null,
2564
- QBadge: zt,
2638
+ QBadge: Ft,
2565
2639
  QButton: re,
2566
- QButtonGroup: tt,
2567
- QButtonToggle: Pt,
2568
- QCombobox: So,
2569
- QDialog: Po,
2640
+ QButtonGroup: ot,
2641
+ QButtonToggle: Ot,
2642
+ QCheckbox: Wt,
2643
+ QCombobox: Ao,
2644
+ QDialog: jo,
2570
2645
  QField: Le,
2571
- QIcon: N,
2572
- QIconFont: Ye,
2573
- QIconImg: Ze,
2574
- QIconSvg: Je,
2575
- QInputGroup: Ko,
2576
- QLineLoader: Wo,
2577
- QList: Ve,
2578
- QListItem: ot,
2579
- QListItemGroup: nt,
2646
+ QIcon: U,
2647
+ QIconFont: Ze,
2648
+ QIconImg: Je,
2649
+ QIconSvg: et,
2650
+ QInputGroup: en,
2651
+ QLineLoader: on,
2652
+ QList: Ee,
2653
+ QListItem: nt,
2654
+ QListItemGroup: lt,
2580
2655
  QOverlay: ye,
2581
- QPopover: tn,
2582
- QPropertyList: hn,
2583
- QPropertyListGroup: rt,
2584
- QPropertyListPanel: dt,
2585
- QPropertyListRow: it,
2586
- QSelect: qn,
2587
- QSkeletonLoader: Ln,
2656
+ QPopover: dn,
2657
+ QPropertyList: wn,
2658
+ QPropertyListGroup: dt,
2659
+ QPropertyListPanel: ct,
2660
+ QPropertyListRow: rt,
2661
+ QSelect: Tn,
2662
+ QSkeletonLoader: En,
2588
2663
  QSpinnerLoader: xe,
2589
- QTextField: lt,
2590
- QThemeProvider: Sn,
2591
- QTooltip: Tn
2664
+ QTextField: st,
2665
+ QThemeProvider: An,
2666
+ QTooltip: Fn
2592
2667
  }, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
2593
- function En() {
2594
- const o = Ge(ge);
2668
+ function Pn() {
2669
+ const o = Re(ge);
2595
2670
  if (!o)
2596
2671
  throw new Error("[Quidgest UI] Could not find theme instance");
2597
2672
  return o;
2598
2673
  }
2599
- function Pn(o) {
2600
- const t = En(), e = {
2674
+ function jn(o) {
2675
+ const t = Pn(), e = {
2601
2676
  activeTheme: D(o),
2602
2677
  themes: t.themes
2603
2678
  };
2604
- return He(ge, e), e;
2679
+ return Ge(ge, e), e;
2605
2680
  }
2606
- function Dn() {
2681
+ function On() {
2607
2682
  let o = document.getElementById(
2608
2683
  ge
2609
2684
  );
2610
2685
  return o || (o = document.createElement("style"), o.id = ge, document.head.appendChild(o)), o;
2611
2686
  }
2612
- function An(o) {
2687
+ function Un(o) {
2613
2688
  let t = "";
2614
2689
  for (const n of o) {
2615
2690
  t += `.q-theme--${n.name} {
@@ -2619,43 +2694,43 @@ function An(o) {
2619
2694
  for (s in l) {
2620
2695
  const i = l[s];
2621
2696
  if (i) {
2622
- t += ` ${Ue(s)}: ${i};
2697
+ t += ` ${Ne(s)}: ${i};
2623
2698
  `;
2624
- const a = et(i);
2625
- t += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2699
+ const a = tt(i);
2700
+ t += ` ${Ne(s)}-rgb: ${a.r} ${a.g} ${a.b};
2626
2701
  `;
2627
2702
  }
2628
2703
  }
2629
2704
  t += `}
2630
2705
  `;
2631
2706
  }
2632
- const e = Dn();
2707
+ const e = On();
2633
2708
  e.textContent = t;
2634
2709
  }
2635
- function Ue(o) {
2636
- return o ? `--q-theme-${Xe(o)}` : "";
2710
+ function Ne(o) {
2711
+ return o ? `--q-theme-${Ye(o)}` : "";
2637
2712
  }
2638
- function Qn(o = {}) {
2713
+ function Nn(o = {}) {
2639
2714
  return { install: (e) => {
2640
2715
  const n = o.components || {};
2641
2716
  for (const s in n)
2642
2717
  e.component(s, n[s]);
2643
2718
  const l = o.defaults || {};
2644
- e.provide(Te, D(l)), Fn(e, o.themes);
2719
+ e.provide(Ve, D(l)), Hn(e, o.themes);
2645
2720
  } };
2646
2721
  }
2647
- function Fn(o, t) {
2722
+ function Hn(o, t) {
2648
2723
  const e = [];
2649
2724
  let n;
2650
2725
  if (!t)
2651
2726
  n = "default", e.push({
2652
2727
  name: n,
2653
2728
  mode: "light",
2654
- scheme: Ie
2729
+ scheme: Se
2655
2730
  });
2656
2731
  else
2657
2732
  for (const l of t.themes) {
2658
- const i = { ...l.mode === "light" ? Ie : Ke, ...l.colors };
2733
+ const i = { ...l.mode === "light" ? Se : je, ...l.colors };
2659
2734
  e.push({
2660
2735
  name: l.name,
2661
2736
  mode: l.mode,
@@ -2667,18 +2742,18 @@ function Fn(o, t) {
2667
2742
  activeTheme: D(n),
2668
2743
  themes: e
2669
2744
  };
2670
- An(e), te(l.activeTheme, zn, { immediate: !0 }), o.provide(ge, l);
2745
+ Un(e), oe(l.activeTheme, Gn, { immediate: !0 }), o.provide(ge, l);
2671
2746
  }
2672
2747
  }
2673
- function zn(o) {
2748
+ function Gn(o) {
2674
2749
  const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
2675
2750
  t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
2676
2751
  }
2677
- const Un = (o = {}) => Qn({ components: Vn, ...o });
2752
+ const Wn = (o = {}) => Nn({ components: Mn, ...o });
2678
2753
  export {
2679
- Vn as components,
2680
- Un as createFramework,
2681
- Pn as provideTheme,
2682
- On as templates,
2683
- En as useTheme
2754
+ Mn as components,
2755
+ Wn as createFramework,
2756
+ jn as provideTheme,
2757
+ Kn as templates,
2758
+ Pn as useTheme
2684
2759
  };