@quidgest/ui 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.esm.js CHANGED
@@ -1,18 +1,18 @@
1
- import { getCurrentInstance as Ee, computed as w, ref as T, provide as Te, inject as De, watch as P, defineComponent as B, openBlock as u, createElementBlock as p, normalizeClass as E, normalizeStyle as fe, createElementVNode as Y, withModifiers as re, createVNode as A, unref as v, createCommentVNode as L, Fragment as te, createTextVNode as de, toDisplayString as H, renderSlot as m, toRef as qe, mergeModels as K, useModel as X, createBlock as V, withCtx as _, renderList as he, resolveDynamicComponent as ze, h as Ie, normalizeProps as ne, mergeProps as ae, reactive as Ne, onBeforeUnmount as He, onMounted as Ce, nextTick as N, Teleport as Ke, Transition as Ge, withKeys as We, createSlots as ye, withDirectives as je, vModelDynamic as Pe, guardReactiveProps as se } from "vue";
2
- function be(t) {
1
+ import { getCurrentInstance as De, computed as w, ref as T, provide as ze, inject as Ce, watch as P, defineComponent as S, openBlock as u, createElementBlock as p, normalizeClass as E, normalizeStyle as pe, createElementVNode as Y, withModifiers as de, createVNode as A, unref as v, createCommentVNode as I, Fragment as ne, createTextVNode as ue, toDisplayString as N, renderSlot as m, toRef as Le, mergeModels as H, useModel as X, createBlock as V, withCtx as _, renderList as ye, resolveDynamicComponent as Qe, h as Se, normalizeProps as oe, mergeProps as se, reactive as He, onBeforeUnmount as Ke, onMounted as Ae, nextTick as U, Teleport as Ge, Transition as We, withKeys as je, createSlots as _e, withDirectives as Pe, vModelDynamic as Xe, guardReactiveProps as ie } from "vue";
2
+ function ge(t) {
3
3
  return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
4
4
  }
5
- function Le(t) {
5
+ function xe(t) {
6
6
  return t !== null && typeof t == "object" && !Array.isArray(t);
7
7
  }
8
- function ge(t = {}, n = {}) {
8
+ function ke(t = {}, n = {}) {
9
9
  const e = {};
10
10
  for (const o in t)
11
11
  e[o] = t[o];
12
12
  for (const o in n) {
13
13
  const a = t[o], r = n[o];
14
- if (Le(a) && Le(r)) {
15
- e[o] = ge(
14
+ if (xe(a) && xe(r)) {
15
+ e[o] = ke(
16
16
  a,
17
17
  r
18
18
  );
@@ -22,45 +22,45 @@ function ge(t = {}, n = {}) {
22
22
  }
23
23
  return e;
24
24
  }
25
- const _e = "q-defaults";
26
- function Xe() {
25
+ const we = "q-defaults";
26
+ function Ye() {
27
27
  var r, d;
28
- const t = Ee();
28
+ const t = De();
29
29
  if (!t)
30
30
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
31
31
  const n = t.type.name ?? t.type.__name;
32
32
  if (!n)
33
33
  throw new Error("[Quidgest UI] Could not determine component name");
34
- const e = Ae(), o = (r = e.value) == null ? void 0 : r.Global, a = (d = e.value) == null ? void 0 : d[n];
35
- return w(() => ge(o, a));
34
+ const e = Me(), o = (r = e.value) == null ? void 0 : r.Global, a = (d = e.value) == null ? void 0 : d[n];
35
+ return w(() => ke(o, a));
36
36
  }
37
- function Qe(t) {
38
- if (be(t))
37
+ function Fe(t) {
38
+ if (ge(t))
39
39
  return;
40
- const n = Ae(), e = T(t), o = w(() => be(e.value) ? n.value : ge(n.value, e.value));
41
- Te(_e, o);
40
+ const n = Me(), e = T(t), o = w(() => ge(e.value) ? n.value : ke(n.value, e.value));
41
+ ze(we, o);
42
42
  }
43
- function Ae() {
44
- const t = De(_e, void 0);
43
+ function Me() {
44
+ const t = Ce(we, void 0);
45
45
  if (!t)
46
46
  throw new Error("[Quidgest UI] Could not find defaults instance");
47
47
  return t;
48
48
  }
49
- const ue = "q-theme";
50
- function Ye() {
51
- const t = De(ue);
49
+ const ce = "q-theme";
50
+ function Ze() {
51
+ const t = Ce(ce);
52
52
  if (!t)
53
53
  throw new Error("[Quidgest UI] Could not find theme instance");
54
54
  return t;
55
55
  }
56
56
  function xn(t) {
57
- const n = Ye(), e = {
57
+ const n = Ze(), e = {
58
58
  activeTheme: T(t),
59
59
  themes: n.themes
60
60
  };
61
- return Te(ue, e), e;
61
+ return ze(ce, e), e;
62
62
  }
63
- const xe = {
63
+ const Be = {
64
64
  primary: "#008ad2",
65
65
  primaryLight: "#cde5ff",
66
66
  primaryDark: "#006398",
@@ -91,7 +91,7 @@ const xe = {
91
91
  onWarning: "#fff",
92
92
  onDanger: "#fff",
93
93
  onInfo: "#fff"
94
- }, Ze = {
94
+ }, Je = {
95
95
  primary: "#009ff5",
96
96
  primaryLight: "#ade2ff",
97
97
  primaryDark: "#164965",
@@ -123,26 +123,26 @@ const xe = {
123
123
  onDanger: "#fff",
124
124
  onInfo: "#fff"
125
125
  };
126
- function Je(t) {
126
+ function et(t) {
127
127
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
128
128
  }
129
- function et(t) {
130
- if (!Je(t))
129
+ function tt(t) {
130
+ if (!et(t))
131
131
  throw new Error("Invalid color format");
132
132
  t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
133
133
  const n = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), o = parseInt(t.slice(5, 7), 16);
134
134
  return { r: n, g: e, b: o };
135
135
  }
136
- function Fe(t) {
136
+ function Re(t) {
137
137
  return t.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();
138
138
  }
139
- function tt() {
139
+ function nt() {
140
140
  let t = document.getElementById(
141
- ue
141
+ ce
142
142
  );
143
- return t || (t = document.createElement("style"), t.id = ue, document.head.appendChild(t)), t;
143
+ return t || (t = document.createElement("style"), t.id = ce, document.head.appendChild(t)), t;
144
144
  }
145
- function nt(t) {
145
+ function ot(t) {
146
146
  let n = "";
147
147
  for (const o of t) {
148
148
  n += `.q-theme--${o.name} {
@@ -152,21 +152,21 @@ function nt(t) {
152
152
  for (r in a) {
153
153
  const d = a[r];
154
154
  if (d) {
155
- n += ` ${Be(r)}: ${d};
155
+ n += ` ${Ve(r)}: ${d};
156
156
  `;
157
- const i = et(d);
158
- n += ` ${Be(r)}-rgb: ${i.r} ${i.g} ${i.b};
157
+ const i = tt(d);
158
+ n += ` ${Ve(r)}-rgb: ${i.r} ${i.g} ${i.b};
159
159
  `;
160
160
  }
161
161
  }
162
162
  n += `}
163
163
  `;
164
164
  }
165
- const e = tt();
165
+ const e = nt();
166
166
  e.textContent = n;
167
167
  }
168
- function Be(t) {
169
- return t ? `--q-theme-${Fe(t)}` : "";
168
+ function Ve(t) {
169
+ return t ? `--q-theme-${Re(t)}` : "";
170
170
  }
171
171
  function Bn(t = {}) {
172
172
  return { install: (e) => {
@@ -174,21 +174,21 @@ function Bn(t = {}) {
174
174
  for (const r in o)
175
175
  e.component(r, o[r]);
176
176
  const a = t.defaults || {};
177
- e.provide(_e, T(a)), ot(e, t.themes);
177
+ e.provide(we, T(a)), lt(e, t.themes);
178
178
  } };
179
179
  }
180
- function ot(t, n) {
180
+ function lt(t, n) {
181
181
  const e = [];
182
182
  let o;
183
183
  if (!n)
184
184
  o = "default", e.push({
185
185
  name: o,
186
186
  mode: "light",
187
- scheme: xe
187
+ scheme: Be
188
188
  });
189
189
  else
190
190
  for (const a of n.themes) {
191
- const d = { ...a.mode === "light" ? xe : Ze, ...a.colors };
191
+ const d = { ...a.mode === "light" ? Be : Je, ...a.colors };
192
192
  e.push({
193
193
  name: a.name,
194
194
  mode: a.mode,
@@ -200,14 +200,14 @@ function ot(t, n) {
200
200
  activeTheme: T(o),
201
201
  themes: e
202
202
  };
203
- nt(e), P(a.activeTheme, lt, { immediate: !0 }), t.provide(ue, a);
203
+ ot(e), P(a.activeTheme, at, { immediate: !0 }), t.provide(ce, a);
204
204
  }
205
205
  }
206
- function lt(t) {
206
+ function at(t) {
207
207
  const n = document.documentElement, o = Array.from(n.classList).filter((a) => !a.startsWith("q-theme"));
208
208
  n.className = o.join(" "), n.classList.add(`q-theme--${t}`);
209
209
  }
210
- const at = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
210
+ const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
211
211
  /* @__PURE__ */ Y("circle", {
212
212
  class: "path",
213
213
  cx: "50",
@@ -218,9 +218,9 @@ const at = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
218
218
  "stroke-width": "5",
219
219
  "stroke-miterlimit": "10"
220
220
  })
221
- ], -1), st = [
222
- at
223
- ], it = /* @__PURE__ */ B({
221
+ ], -1), it = [
222
+ st
223
+ ], rt = /* @__PURE__ */ S({
224
224
  __name: "QSpinnerLoader",
225
225
  props: {
226
226
  size: { default: 48 },
@@ -232,38 +232,38 @@ const at = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
232
232
  }));
233
233
  return (o, a) => (u(), p("div", {
234
234
  class: E(["q-spinner-loader", n.class]),
235
- style: fe(e.value)
236
- }, st, 6));
235
+ style: pe(e.value)
236
+ }, it, 6));
237
237
  }
238
238
  });
239
- function rt(t, n) {
239
+ function dt(t, n) {
240
240
  var o;
241
- const e = Fe(n);
241
+ const e = Re(n);
242
242
  return e ? typeof ((o = t.props) == null ? void 0 : o[e]) < "u" : !1;
243
243
  }
244
- function S(t) {
244
+ function B(t) {
245
245
  const n = t.setup;
246
246
  return n && (t.setup = (e, o) => {
247
- const a = Xe();
248
- if (be(a.value))
247
+ const a = Ye();
248
+ if (ge(a.value))
249
249
  return n(e, o);
250
- const r = Ee();
250
+ const r = De();
251
251
  if (r === null)
252
252
  return n(e, o);
253
253
  const d = new Proxy(e, {
254
254
  get(i, c) {
255
255
  var g;
256
256
  const q = Reflect.get(i, c), k = (g = a.value) == null ? void 0 : g[c];
257
- return typeof c == "string" && !rt(r.vnode, c) ? k ?? q : q;
257
+ return typeof c == "string" && !dt(r.vnode, c) ? k ?? q : q;
258
258
  }
259
259
  });
260
260
  return n(d, o);
261
261
  }), t;
262
262
  }
263
- const ke = S(it), dt = ["disabled"], ut = {
263
+ const $e = B(rt), ut = ["disabled"], ct = {
264
264
  key: 0,
265
265
  class: "q-btn__spinner"
266
- }, ct = { class: "q-btn__content" }, ft = /* @__PURE__ */ B({
266
+ }, ft = { class: "q-btn__content" }, pt = /* @__PURE__ */ S({
267
267
  __name: "QButton",
268
268
  props: {
269
269
  active: { type: Boolean },
@@ -304,23 +304,23 @@ const ke = S(it), dt = ["disabled"], ut = {
304
304
  type: "button",
305
305
  class: E(d.value),
306
306
  disabled: a.value,
307
- onClick: re(r, ["stop", "prevent"])
307
+ onClick: de(r, ["stop", "prevent"])
308
308
  }, [
309
- i.loading ? (u(), p("div", ut, [
310
- A(v(ke), { size: 20 })
311
- ])) : L("", !0),
312
- Y("span", ct, [
313
- i.iconOnRight ? (u(), p(te, { key: 0 }, [
314
- de(H(e.label), 1)
315
- ], 64)) : L("", !0),
309
+ i.loading ? (u(), p("div", ct, [
310
+ A(v($e), { size: 20 })
311
+ ])) : I("", !0),
312
+ Y("span", ft, [
313
+ i.iconOnRight ? (u(), p(ne, { key: 0 }, [
314
+ ue(N(e.label), 1)
315
+ ], 64)) : I("", !0),
316
316
  m(i.$slots, "default"),
317
- i.iconOnRight ? L("", !0) : (u(), p(te, { key: 1 }, [
318
- de(H(e.label), 1)
317
+ i.iconOnRight ? I("", !0) : (u(), p(ne, { key: 1 }, [
318
+ ue(N(e.label), 1)
319
319
  ], 64))
320
320
  ])
321
- ], 10, dt));
321
+ ], 10, ut));
322
322
  }
323
- }), ce = S(ft), pt = /* @__PURE__ */ B({
323
+ }), fe = B(pt), mt = /* @__PURE__ */ S({
324
324
  __name: "QButtonGroup",
325
325
  props: {
326
326
  disabled: { type: Boolean },
@@ -330,11 +330,11 @@ const ke = S(it), dt = ["disabled"], ut = {
330
330
  },
331
331
  setup(t) {
332
332
  const n = t;
333
- return Qe({
333
+ return Fe({
334
334
  QButton: {
335
335
  bStyle: "secondary",
336
- disabled: qe(n, "disabled"),
337
- borderless: qe(n, "borderless"),
336
+ disabled: Le(n, "disabled"),
337
+ borderless: Le(n, "borderless"),
338
338
  elevated: !1
339
339
  }
340
340
  }), (e, o) => (u(), p("div", {
@@ -349,9 +349,9 @@ const ke = S(it), dt = ["disabled"], ut = {
349
349
  m(e.$slots, "default")
350
350
  ], 2));
351
351
  }
352
- }), mt = S(pt), vt = /* @__PURE__ */ B({
352
+ }), vt = B(mt), ht = /* @__PURE__ */ S({
353
353
  __name: "QButtonToggle",
354
- props: /* @__PURE__ */ K({
354
+ props: /* @__PURE__ */ H({
355
355
  options: {},
356
356
  disabled: { type: Boolean },
357
357
  borderless: { type: Boolean },
@@ -368,7 +368,7 @@ const ke = S(it), dt = ["disabled"], ut = {
368
368
  function o(a) {
369
369
  e.value === a.key && !n.required ? e.value = void 0 : e.value = a.key;
370
370
  }
371
- return (a, r) => (u(), V(v(mt), {
371
+ return (a, r) => (u(), V(v(vt), {
372
372
  "b-style": "secondary",
373
373
  class: E(n.class),
374
374
  disabled: n.disabled,
@@ -376,7 +376,7 @@ const ke = S(it), dt = ["disabled"], ut = {
376
376
  elevated: n.elevated
377
377
  }, {
378
378
  default: _(() => [
379
- (u(!0), p(te, null, he(n.options, (d) => (u(), V(v(ce), {
379
+ (u(!0), p(ne, null, ye(n.options, (d) => (u(), V(v(fe), {
380
380
  key: d.key,
381
381
  title: d.title,
382
382
  label: d.label,
@@ -392,7 +392,7 @@ const ke = S(it), dt = ["disabled"], ut = {
392
392
  _: 3
393
393
  }, 8, ["class", "disabled", "borderless", "elevated"]));
394
394
  }
395
- }), Sn = S(vt), ht = /* @__PURE__ */ B({
395
+ }), Vn = B(ht), bt = /* @__PURE__ */ S({
396
396
  __name: "QIcon",
397
397
  props: {
398
398
  icon: {},
@@ -404,22 +404,22 @@ const ke = S(it), dt = ["disabled"], ut = {
404
404
  const n = t, e = w(() => {
405
405
  switch (n.type) {
406
406
  case "svg":
407
- return Lt;
407
+ return St;
408
408
  case "font":
409
- return qt;
410
- case "img":
411
409
  return It;
410
+ case "img":
411
+ return Lt;
412
412
  default:
413
413
  return;
414
414
  }
415
415
  });
416
- return (o, a) => (u(), V(ze(e.value), {
416
+ return (o, a) => (u(), V(Qe(e.value), {
417
417
  class: E(n.class),
418
418
  icon: n.icon,
419
419
  size: n.size
420
420
  }, null, 8, ["class", "icon", "size"]));
421
421
  }
422
- }), bt = /* @__PURE__ */ B({
422
+ }), yt = /* @__PURE__ */ S({
423
423
  __name: "QIconFont",
424
424
  props: {
425
425
  icon: {},
@@ -434,10 +434,10 @@ const ke = S(it), dt = ["disabled"], ut = {
434
434
  }));
435
435
  return (r, d) => (u(), p("i", {
436
436
  class: E(["q-icon", "q-icon__font", e.value, o.value, n.class]),
437
- style: fe(a.value)
437
+ style: pe(a.value)
438
438
  }, null, 6));
439
439
  }
440
- }), yt = ["src"], gt = /* @__PURE__ */ B({
440
+ }), gt = ["src"], _t = /* @__PURE__ */ S({
441
441
  __name: "QIconImg",
442
442
  props: {
443
443
  icon: {},
@@ -451,10 +451,10 @@ const ke = S(it), dt = ["disabled"], ut = {
451
451
  return (o, a) => (u(), p("img", {
452
452
  src: n.icon,
453
453
  class: E(["q-icon", "q-icon__img", n.class]),
454
- style: fe(e.value)
455
- }, null, 14, yt));
454
+ style: pe(e.value)
455
+ }, null, 14, gt));
456
456
  }
457
- }), ie = {}, _t = B({
457
+ }), re = {}, kt = S({
458
458
  name: "InlineSvg",
459
459
  emits: {
460
460
  loaded: (t) => typeof t == "object",
@@ -467,9 +467,9 @@ const ke = S(it), dt = ["disabled"], ut = {
467
467
  return null;
468
468
  const t = this.getSvgContent(this.svgElSource);
469
469
  if (!t)
470
- return Ie("div", this.$attrs);
470
+ return Se("div", this.$attrs);
471
471
  const n = {};
472
- return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, Ie("svg", n);
472
+ return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, Se("svg", n);
473
473
  },
474
474
  props: {
475
475
  /**
@@ -531,7 +531,7 @@ const ke = S(it), dt = ["disabled"], ut = {
531
531
  o !== !1 && o !== null && o !== void 0 && (t[e] = o);
532
532
  },
533
533
  getSvgContent(t) {
534
- return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), kt(t, this.title)), t);
534
+ return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), wt(t, this.title)), t);
535
535
  },
536
536
  /**
537
537
  * Get svgElSource
@@ -539,11 +539,11 @@ const ke = S(it), dt = ["disabled"], ut = {
539
539
  */
540
540
  async getSource(t) {
541
541
  try {
542
- ie[t] || (ie[t] = wt(this.download(t))), this.svgElSource && ie[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
543
- const n = await ie[t];
542
+ re[t] || (re[t] = $t(this.download(t))), this.svgElSource && re[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
543
+ const n = await re[t];
544
544
  this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
545
545
  } catch (n) {
546
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ie[t], this.$emit("error", n);
546
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete re[t], this.$emit("error", n);
547
547
  }
548
548
  },
549
549
  /**
@@ -568,7 +568,7 @@ const ke = S(it), dt = ["disabled"], ut = {
568
568
  },
569
569
  expose: []
570
570
  });
571
- function kt(t, n) {
571
+ function wt(t, n) {
572
572
  const e = t.getElementsByTagName("title");
573
573
  if (e.length)
574
574
  e[0].textContent = n;
@@ -577,7 +577,7 @@ function kt(t, n) {
577
577
  o.textContent = n, t.insertBefore(o, t.firstChild);
578
578
  }
579
579
  }
580
- function wt(t) {
580
+ function $t(t) {
581
581
  if (t.getIsPending)
582
582
  return t;
583
583
  let n = !0;
@@ -589,7 +589,7 @@ function wt(t) {
589
589
  );
590
590
  return e.getIsPending = () => n, e;
591
591
  }
592
- const $t = /* @__PURE__ */ B({
592
+ const qt = /* @__PURE__ */ S({
593
593
  __name: "QIconSvg",
594
594
  props: {
595
595
  icon: {},
@@ -608,18 +608,18 @@ const $t = /* @__PURE__ */ B({
608
608
  function d() {
609
609
  o("unloaded");
610
610
  }
611
- return (i, c) => (u(), V(v(_t), {
611
+ return (i, c) => (u(), V(v(kt), {
612
612
  class: E(["q-icon", "q-icon__svg", e.class]),
613
613
  src: e.bundle,
614
614
  symbol: e.icon,
615
- style: fe(a.value),
615
+ style: pe(a.value),
616
616
  onLoaded: r,
617
617
  onUnloaded: d
618
618
  }, null, 8, ["class", "src", "symbol", "style"]));
619
619
  }
620
- }), ee = S(ht), qt = S(bt), It = S(gt), Lt = S($t), xt = /* @__PURE__ */ B({
620
+ }), te = B(bt), It = B(yt), Lt = B(_t), St = B(qt), xt = /* @__PURE__ */ S({
621
621
  __name: "QList",
622
- props: /* @__PURE__ */ K({
622
+ props: /* @__PURE__ */ H({
623
623
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
624
624
  items: {},
625
625
  groups: { default: () => [] },
@@ -628,7 +628,9 @@ const $t = /* @__PURE__ */ B({
628
628
  disabled: { type: Boolean },
629
629
  class: { default: void 0 }
630
630
  }, {
631
- modelValue: { type: Boolean },
631
+ modelValue: {
632
+ type: [String, Number, Boolean, Symbol]
633
+ },
632
634
  modelModifiers: {}
633
635
  }),
634
636
  emits: ["update:modelValue"],
@@ -648,7 +650,7 @@ const $t = /* @__PURE__ */ B({
648
650
  if ((l = i.value) != null && l.contains(f.relatedTarget))
649
651
  return;
650
652
  let b;
651
- o.value ? b = e.items.findIndex((h) => h[e.itemValue] === o.value) : b = W();
653
+ o.value ? b = e.items.findIndex((h) => h[e.itemValue] === o.value) : b = G();
652
654
  const $ = a.value;
653
655
  z(b, $);
654
656
  }
@@ -672,10 +674,10 @@ const $t = /* @__PURE__ */ B({
672
674
  switch (f) {
673
675
  case "next":
674
676
  case "prev":
675
- z(j(f));
677
+ z(W(f));
676
678
  break;
677
679
  case "first":
678
- z(W());
680
+ z(G());
679
681
  break;
680
682
  case "last":
681
683
  z(C());
@@ -684,36 +686,36 @@ const $t = /* @__PURE__ */ B({
684
686
  }
685
687
  function z(f, b = !1) {
686
688
  var l;
687
- (l = x()[f]) == null || l.focus({ preventScroll: b });
689
+ (l = L()[f]) == null || l.focus({ preventScroll: b });
688
690
  }
689
- function x() {
691
+ function L() {
690
692
  var b;
691
693
  const f = (b = i.value) == null ? void 0 : b.querySelectorAll("li");
692
694
  return f ? Array.from(f) : [];
693
695
  }
694
- function G(f) {
695
- return x()[f];
696
+ function K(f) {
697
+ return L()[f];
696
698
  }
697
- function oe() {
698
- return x().indexOf(document.activeElement);
699
+ function le() {
700
+ return L().indexOf(document.activeElement);
699
701
  }
700
- function W() {
701
- const f = x(), b = f.find(($) => Z($));
702
+ function G() {
703
+ const f = L(), b = f.find(($) => Z($));
702
704
  return b ? f.indexOf(b) : -1;
703
705
  }
704
706
  function C() {
705
- const f = x(), b = [...f].reverse().find(($) => Z($));
707
+ const f = L(), b = [...f].reverse().find(($) => Z($));
706
708
  return b ? f.indexOf(b) : -1;
707
709
  }
708
710
  function M(f, b, $) {
709
711
  return b === "prev" && f === 0 || b === "next" && f === $.length - 1;
710
712
  }
711
- function j(f) {
712
- const b = oe();
713
+ function W(f) {
714
+ const b = le();
713
715
  return R(b, f);
714
716
  }
715
717
  function R(f, b) {
716
- const $ = x();
718
+ const $ = L();
717
719
  if (M(f, b, $))
718
720
  return f;
719
721
  let l = f + (b === "next" ? 1 : -1);
@@ -732,11 +734,11 @@ const $t = /* @__PURE__ */ B({
732
734
  }
733
735
  return n({
734
736
  focusItem: z,
735
- getItem: G,
737
+ getItem: K,
736
738
  getAdjacentItemIndex: R,
737
- getFirstFocusableItemIndex: W,
739
+ getFirstFocusableItemIndex: G,
738
740
  getLastFocusableItemIndex: C
739
- }), (f, b) => (u(), V(ze(r.value), {
741
+ }), (f, b) => (u(), V(Qe(r.value), {
740
742
  ref_key: "listRef",
741
743
  ref: i,
742
744
  class: E(["q-list", { "q-list--disabled": e.disabled }, e.class]),
@@ -748,13 +750,13 @@ const $t = /* @__PURE__ */ B({
748
750
  onKeydown: F
749
751
  }, {
750
752
  default: _(() => [
751
- (u(!0), p(te, null, he(d.value, ($) => (u(), V(v(At), {
753
+ (u(!0), p(ne, null, ye(d.value, ($) => (u(), V(v(Ft), {
752
754
  key: $.id,
753
755
  title: d.value.length === 1 ? void 0 : $.title,
754
756
  disabled: $.disabled
755
757
  }, {
756
758
  default: _(() => [
757
- (u(!0), p(te, null, he(J($.id), (l) => (u(), V(v(Qt), {
759
+ (u(!0), p(ne, null, ye(J($.id), (l) => (u(), V(v(At), {
758
760
  key: l[e.itemValue],
759
761
  value: l[e.itemValue],
760
762
  label: l[e.itemLabel],
@@ -778,14 +780,14 @@ const $t = /* @__PURE__ */ B({
778
780
  }
779
781
  });
780
782
  let Bt = 0;
781
- function pe(t) {
783
+ function me(t) {
782
784
  return t || `uid-${++Bt}`;
783
785
  }
784
- const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-list-item__check-container" }, Et = {
786
+ const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Et = { class: "q-list-item__check-container" }, Tt = {
785
787
  check: {
786
788
  icon: "check"
787
789
  }
788
- }, Tt = /* @__PURE__ */ B({
790
+ }, Dt = /* @__PURE__ */ S({
789
791
  __name: "QListItem",
790
792
  props: {
791
793
  value: { type: [String, Number, Boolean, Symbol] },
@@ -793,12 +795,12 @@ const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-l
793
795
  icon: { default: void 0 },
794
796
  selected: { type: Boolean },
795
797
  highlighted: { type: Boolean },
796
- icons: { default: () => Et },
798
+ icons: { default: () => Tt },
797
799
  disabled: { type: Boolean }
798
800
  },
799
801
  emits: ["select"],
800
802
  setup(t, { emit: n }) {
801
- const e = t, o = n, a = pe();
803
+ const e = t, o = n, a = me();
802
804
  function r() {
803
805
  e.disabled || o("select", e.value);
804
806
  }
@@ -820,25 +822,25 @@ const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-l
820
822
  "aria-label": e.label,
821
823
  "aria-selected": e.disabled ? void 0 : e.selected,
822
824
  onKeydown: d,
823
- onClick: re(r, ["stop", "prevent"])
825
+ onClick: de(r, ["stop", "prevent"])
824
826
  }, [
825
827
  m(i.$slots, "default", {}, () => [
826
- e.icon ? (u(), V(v(ee), ne(ae({ key: 0 }, e.icon)), null, 16)) : L("", !0),
827
- de(" " + H(e.label), 1)
828
+ e.icon ? (u(), V(v(te), oe(se({ key: 0 }, e.icon)), null, 16)) : I("", !0),
829
+ ue(" " + N(e.label), 1)
828
830
  ]),
829
- Y("div", Vt, [
830
- e.selected ? (u(), V(v(ee), ae({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
831
+ Y("div", Et, [
832
+ e.selected ? (u(), V(v(te), se({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
831
833
  ])
832
- ], 42, St));
834
+ ], 42, Vt));
833
835
  }
834
- }), Dt = ["aria-labelledby"], zt = ["id"], Ct = /* @__PURE__ */ B({
836
+ }), zt = ["aria-labelledby"], Ct = ["id"], Qt = /* @__PURE__ */ S({
835
837
  __name: "QListItemGroup",
836
838
  props: {
837
839
  title: { default: "" },
838
840
  disabled: { type: Boolean }
839
841
  },
840
842
  setup(t) {
841
- const n = t, e = pe();
843
+ const n = t, e = me();
842
844
  return (o, a) => (u(), p("ul", {
843
845
  class: "q-list-item-group",
844
846
  role: "group",
@@ -849,15 +851,15 @@ const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-l
849
851
  id: v(e),
850
852
  class: "q-list-item-group__title",
851
853
  role: "presentation"
852
- }, H(n.title), 9, zt)) : L("", !0),
854
+ }, N(n.title), 9, Ct)) : I("", !0),
853
855
  m(o.$slots, "default")
854
- ], 8, Dt));
856
+ ], 8, zt));
855
857
  }
856
- }), Me = S(xt), Qt = S(Tt), At = S(Ct);
857
- function Ft(t, n, e = "right", o) {
858
+ }), Oe = B(xt), At = B(Dt), Ft = B(Qt);
859
+ function Mt(t, n, e = "right", o) {
858
860
  const a = t.getBoundingClientRect(), r = a.x + window.scrollX, d = a.y + window.scrollY, i = n == null ? void 0 : n.getBoundingClientRect(), c = (i == null ? void 0 : i.width) ?? 0, q = (i == null ? void 0 : i.height) ?? 0;
859
861
  let k = e;
860
- i && !Re(a, i, k) && (k = Mt(a, i, k));
862
+ i && !Ue(a, i, k) && (k = Rt(a, i, k));
861
863
  const g = { x: 0, y: 0, placement: k };
862
864
  switch (k) {
863
865
  case "top":
@@ -875,31 +877,31 @@ function Ft(t, n, e = "right", o) {
875
877
  }
876
878
  return o === "anchor" && a.width >= c && (g.width = a.width), g;
877
879
  }
878
- function Re(t, n, e) {
880
+ function Ue(t, n, e) {
879
881
  let o = !1, a = !1;
880
882
  switch (e) {
881
883
  case "top":
882
- o = Ve(t, n), a = t.top > n.height;
884
+ o = Te(t, n), a = t.top > n.height;
883
885
  break;
884
886
  case "bottom":
885
- o = Ve(t, n), a = window.innerHeight - t.top - t.height > n.height;
887
+ o = Te(t, n), a = window.innerHeight - t.top - t.height > n.height;
886
888
  break;
887
889
  case "left":
888
- o = t.left > n.width, a = Se(t, n);
890
+ o = t.left > n.width, a = Ee(t, n);
889
891
  break;
890
892
  case "right":
891
- o = window.innerWidth - t.left - t.width > n.width, a = Se(t, n);
893
+ o = window.innerWidth - t.left - t.width > n.width, a = Ee(t, n);
892
894
  break;
893
895
  }
894
896
  return o && a;
895
897
  }
896
- function Se(t, n) {
898
+ function Ee(t, n) {
897
899
  return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
898
900
  }
899
- function Ve(t, n) {
901
+ function Te(t, n) {
900
902
  return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
901
903
  }
902
- function Mt(t, n, e) {
904
+ function Rt(t, n, e) {
903
905
  const o = {
904
906
  top: ["bottom", "left", "right"],
905
907
  bottom: ["top", "left", "right"],
@@ -907,21 +909,21 @@ function Mt(t, n, e) {
907
909
  right: ["left", "top", "bottom"]
908
910
  };
909
911
  for (const a of o[e])
910
- if (Re(t, n, a))
912
+ if (Ue(t, n, a))
911
913
  return a;
912
914
  return e;
913
915
  }
914
- function le(t) {
915
- return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
916
+ function ae(t) {
917
+ return typeof t == "string" ? document.querySelector(t) : t;
916
918
  }
917
- const Rt = ["role"], Ot = {
919
+ const Ot = ["role"], Ut = {
918
920
  key: 0,
919
921
  role: "presentation",
920
922
  class: "q-overlay__arrow"
921
- }, Ut = /* @__PURE__ */ B({
923
+ }, Nt = /* @__PURE__ */ S({
922
924
  inheritAttrs: !1,
923
925
  __name: "QOverlay",
924
- props: /* @__PURE__ */ K({
926
+ props: /* @__PURE__ */ H({
925
927
  anchor: { default: void 0 },
926
928
  appearance: { default: "regular" },
927
929
  arrow: { type: Boolean },
@@ -939,7 +941,7 @@ const Rt = ["role"], Ot = {
939
941
  modelValue: { type: Boolean },
940
942
  modelModifiers: {}
941
943
  }),
942
- emits: /* @__PURE__ */ K(["enter", "leave"], ["update:modelValue"]),
944
+ emits: /* @__PURE__ */ H(["enter", "leave"], ["update:modelValue"]),
943
945
  setup(t, { emit: n }) {
944
946
  const e = t, o = n, a = X(t, "modelValue"), r = w(() => [
945
947
  "q-overlay",
@@ -948,7 +950,7 @@ const Rt = ["role"], Ot = {
948
950
  e.class
949
951
  ]), d = w(
950
952
  () => (a.value || i.animating) && e.trigger === "click"
951
- ), i = Ne({
953
+ ), i = He({
952
954
  animating: !1,
953
955
  top: 0,
954
956
  left: 0,
@@ -980,9 +982,9 @@ const Rt = ["role"], Ot = {
980
982
  }), q = T(null);
981
983
  function k() {
982
984
  if (e.anchor) {
983
- const l = le(e.anchor);
985
+ const l = ae(e.anchor);
984
986
  if (l) {
985
- const h = Ft(
987
+ const h = Mt(
986
988
  l,
987
989
  q.value,
988
990
  e.placement,
@@ -1002,49 +1004,49 @@ const Rt = ["role"], Ot = {
1002
1004
  }
1003
1005
  function z(l) {
1004
1006
  g || (g = window.setTimeout(() => {
1005
- a.value = !0, N(() => {
1007
+ a.value = !0, U(() => {
1006
1008
  var h;
1007
1009
  e.trigger === "click" && ((h = q.value) == null || h.focus());
1008
1010
  });
1009
1011
  }, l));
1010
1012
  }
1011
- function x() {
1012
- clearTimeout(g), g = void 0, a.value = !1, N(() => {
1013
+ function L() {
1014
+ clearTimeout(g), g = void 0, a.value = !1, U(() => {
1013
1015
  if (e.anchor && e.trigger === "click") {
1014
- const l = le(e.anchor);
1016
+ const l = ae(e.anchor);
1015
1017
  l == null || l.focus();
1016
1018
  }
1017
1019
  });
1018
1020
  }
1019
- let G;
1020
- function oe() {
1021
+ let K;
1022
+ function le() {
1021
1023
  o("enter");
1022
1024
  }
1023
- function W() {
1024
- window.clearTimeout(G), G = window.setTimeout(() => i.animating = !1, 200), o("leave");
1025
+ function G() {
1026
+ window.clearTimeout(K), K = window.setTimeout(() => i.animating = !1, 200), o("leave");
1025
1027
  }
1026
1028
  let C;
1027
1029
  function M() {
1028
- N(() => {
1030
+ U(() => {
1029
1031
  if (!e.anchor)
1030
1032
  return;
1031
- const l = le(e.anchor);
1033
+ const l = ae(e.anchor);
1032
1034
  if (l)
1033
1035
  switch (e.trigger) {
1034
1036
  case "click":
1035
1037
  l.addEventListener("click", F);
1036
1038
  break;
1037
1039
  case "hover":
1038
- l.addEventListener("mouseenter", D), l.addEventListener("mouseleave", x), l.addEventListener("focusin", F), l.addEventListener("focusout", x);
1040
+ l.addEventListener("mouseenter", D), l.addEventListener("mouseleave", L), l.addEventListener("focusin", F), l.addEventListener("focusout", L);
1039
1041
  break;
1040
1042
  }
1041
1043
  });
1042
1044
  }
1043
- function j() {
1044
- N(() => {
1045
+ function W() {
1046
+ U(() => {
1045
1047
  if (!e.anchor)
1046
1048
  return;
1047
- const l = le(e.anchor);
1049
+ const l = ae(e.anchor);
1048
1050
  l && (window.addEventListener("resize", k), C = new MutationObserver(k), C.observe(l, {
1049
1051
  attributes: !1,
1050
1052
  childList: !0,
@@ -1056,14 +1058,14 @@ const Rt = ["role"], Ot = {
1056
1058
  function R() {
1057
1059
  if (!e.anchor)
1058
1060
  return;
1059
- const l = le(e.anchor);
1061
+ const l = ae(e.anchor);
1060
1062
  if (l)
1061
1063
  switch (e.trigger) {
1062
1064
  case "click":
1063
1065
  l.removeEventListener("click", F);
1064
1066
  break;
1065
1067
  case "hover":
1066
- l.removeEventListener("mouseenter", D), l.removeEventListener("mouseleave", x), l.removeEventListener("focusin", F), l.removeEventListener("focusout", x);
1068
+ l.removeEventListener("mouseenter", D), l.removeEventListener("mouseleave", L), l.removeEventListener("focusin", F), l.removeEventListener("focusout", L);
1067
1069
  break;
1068
1070
  }
1069
1071
  }
@@ -1074,18 +1076,18 @@ const Rt = ["role"], Ot = {
1074
1076
  function f() {
1075
1077
  if (!e.anchor)
1076
1078
  return;
1077
- le(e.anchor) ? (k(), J = window.setTimeout(f, 100)) : x();
1079
+ ae(e.anchor) ? (k(), J = window.setTimeout(f, 100)) : L();
1078
1080
  }
1079
1081
  function b() {
1080
- j(), e.spy && f(), e.anchor && document.addEventListener("scroll", x);
1082
+ W(), e.spy && f(), e.anchor && document.addEventListener("scroll", L);
1081
1083
  }
1082
1084
  function $() {
1083
- Z(), e.spy && (clearTimeout(J), J = void 0), document.removeEventListener("scroll", x);
1085
+ Z(), e.spy && (clearTimeout(J), J = void 0), document.removeEventListener("scroll", L);
1084
1086
  }
1085
- return He(() => {
1087
+ return Ke(() => {
1086
1088
  R(), $();
1087
- }), Ce(() => {
1088
- N(() => {
1089
+ }), Ae(() => {
1090
+ U(() => {
1089
1091
  M(), k();
1090
1092
  });
1091
1093
  }), P(
@@ -1094,7 +1096,7 @@ const Rt = ["role"], Ot = {
1094
1096
  l ? b() : $();
1095
1097
  },
1096
1098
  { immediate: !0 }
1097
- ), (l, h) => (u(), V(Ke, {
1099
+ ), (l, h) => (u(), V(Ge, {
1098
1100
  disabled: !a.value && !i.animating || !e.attach,
1099
1101
  to: e.attach
1100
1102
  }, [
@@ -1104,51 +1106,51 @@ const Rt = ["role"], Ot = {
1104
1106
  "q-overlay__underlay",
1105
1107
  { "q-overlay__underlay--blur": e.backdropBlur }
1106
1108
  ])
1107
- }, null, 2)) : L("", !0),
1108
- A(Ge, {
1109
+ }, null, 2)) : I("", !0),
1110
+ A(We, {
1109
1111
  name: e.transition,
1110
1112
  appear: "",
1111
- onEnter: oe,
1112
- onLeave: W
1113
+ onEnter: le,
1114
+ onLeave: G
1113
1115
  }, {
1114
1116
  default: _(() => [
1115
1117
  a.value ? (u(), p("div", {
1116
1118
  key: 0,
1117
1119
  class: E(r.value),
1118
- style: fe(c.value)
1120
+ style: pe(c.value)
1119
1121
  }, [
1120
- Y("div", ae({
1122
+ Y("div", se({
1121
1123
  class: "q-overlay__content",
1122
1124
  ref_key: "overlayRef",
1123
1125
  ref: q,
1124
1126
  tabindex: "-1",
1125
1127
  role: d.value ? "dialog" : void 0
1126
1128
  }, l.$attrs, {
1127
- onKeydown: We(x, ["escape"]),
1128
- onBlur: x
1129
+ onKeydown: je(L, ["escape"]),
1130
+ onBlur: L
1129
1131
  }), [
1130
- e.arrow ? (u(), p("div", Ot)) : L("", !0),
1132
+ e.arrow ? (u(), p("div", Ut)) : I("", !0),
1131
1133
  m(l.$slots, "default")
1132
- ], 16, Rt)
1133
- ], 6)) : L("", !0)
1134
+ ], 16, Ot)
1135
+ ], 6)) : I("", !0)
1134
1136
  ]),
1135
1137
  _: 3
1136
1138
  }, 8, ["name"])
1137
1139
  ], 8, ["disabled", "to"]));
1138
1140
  }
1139
- }), ve = S(Ut), Nt = ["id"], Ht = {
1141
+ }), he = B(Nt), Ht = ["id"], Kt = {
1140
1142
  key: 0,
1141
1143
  class: "q-field__label"
1142
- }, Kt = ["for"], Gt = {
1144
+ }, Gt = ["for"], Wt = {
1143
1145
  key: 0,
1144
1146
  class: "q-field__prepend"
1145
- }, Wt = {
1147
+ }, jt = {
1146
1148
  key: 1,
1147
1149
  class: "q-field__append"
1148
- }, jt = {
1150
+ }, Pt = {
1149
1151
  key: 1,
1150
1152
  class: "q-field__extras"
1151
- }, Pt = /* @__PURE__ */ B({
1153
+ }, Xt = /* @__PURE__ */ S({
1152
1154
  inheritAttrs: !1,
1153
1155
  __name: "QField",
1154
1156
  props: {
@@ -1162,7 +1164,7 @@ const Rt = ["role"], Ot = {
1162
1164
  class: { default: void 0 }
1163
1165
  },
1164
1166
  setup(t, { expose: n }) {
1165
- const e = t, o = pe(e.id), a = T(null), r = w(() => e.required && !e.readonly && !e.disabled);
1167
+ const e = t, o = me(e.id), a = T(null), r = w(() => e.required && !e.readonly && !e.disabled);
1166
1168
  return n({
1167
1169
  fieldRef: a
1168
1170
  }), (d, i) => (u(), p("div", {
@@ -1178,37 +1180,37 @@ const Rt = ["role"], Ot = {
1178
1180
  e.class
1179
1181
  ])
1180
1182
  }, [
1181
- e.label ? (u(), p("div", Ht, [
1183
+ e.label ? (u(), p("div", Kt, [
1182
1184
  m(d.$slots, "label.prepend"),
1183
1185
  Y("label", {
1184
1186
  for: e.for
1185
- }, H(e.label), 9, Kt),
1187
+ }, N(e.label), 9, Gt),
1186
1188
  m(d.$slots, "label.append")
1187
- ])) : L("", !0),
1189
+ ])) : I("", !0),
1188
1190
  m(d.$slots, "control", {}, () => [
1189
- Y("div", ae({
1191
+ Y("div", se({
1190
1192
  class: "q-field__control",
1191
1193
  ref_key: "fieldRef",
1192
1194
  ref: a
1193
1195
  }, d.$attrs), [
1194
- d.$slots.prepend ? (u(), p("div", Gt, [
1196
+ d.$slots.prepend ? (u(), p("div", Wt, [
1195
1197
  m(d.$slots, "prepend")
1196
- ])) : L("", !0),
1198
+ ])) : I("", !0),
1197
1199
  m(d.$slots, "default"),
1198
- d.$slots.append ? (u(), p("div", Wt, [
1200
+ d.$slots.append ? (u(), p("div", jt, [
1199
1201
  m(d.$slots, "append")
1200
- ])) : L("", !0)
1202
+ ])) : I("", !0)
1201
1203
  ], 16)
1202
1204
  ]),
1203
- d.$slots.extras ? (u(), p("div", jt, [
1205
+ d.$slots.extras ? (u(), p("div", Pt, [
1204
1206
  m(d.$slots, "extras")
1205
- ])) : L("", !0)
1206
- ], 10, Nt));
1207
+ ])) : I("", !0)
1208
+ ], 10, Ht));
1207
1209
  }
1208
- }), we = S(Pt), Xt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Yt = /* @__PURE__ */ B({
1210
+ }), qe = B(Xt), Yt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Zt = /* @__PURE__ */ S({
1209
1211
  inheritAttrs: !1,
1210
1212
  __name: "QTextField",
1211
- props: /* @__PURE__ */ K({
1213
+ props: /* @__PURE__ */ H({
1212
1214
  id: { default: void 0 },
1213
1215
  placeholder: { default: "" },
1214
1216
  label: { default: "" },
@@ -1226,7 +1228,7 @@ const Rt = ["role"], Ot = {
1226
1228
  }),
1227
1229
  emits: ["update:modelValue"],
1228
1230
  setup(t, { expose: n }) {
1229
- const e = t, o = X(t, "modelValue"), a = pe(e.id), r = T(null), d = T(null), i = w(
1231
+ const e = t, o = X(t, "modelValue"), a = me(e.id), r = T(null), d = T(null), i = w(
1230
1232
  () => e.readonly || e.disabled ? "" : e.placeholder
1231
1233
  );
1232
1234
  return n({
@@ -1235,7 +1237,7 @@ const Rt = ["role"], Ot = {
1235
1237
  return (c = r.value) == null ? void 0 : c.fieldRef;
1236
1238
  }),
1237
1239
  inputRef: d
1238
- }), (c, q) => (u(), V(v(we), {
1240
+ }), (c, q) => (u(), V(v(qe), {
1239
1241
  ref_key: "fieldRef",
1240
1242
  ref: r,
1241
1243
  class: E(["q-text-field", e.class]),
@@ -1245,7 +1247,7 @@ const Rt = ["role"], Ot = {
1245
1247
  readonly: e.readonly,
1246
1248
  disabled: e.disabled,
1247
1249
  required: e.required
1248
- }, ye({
1250
+ }, _e({
1249
1251
  "label.prepend": _(() => [
1250
1252
  m(c.$slots, "label.prepend")
1251
1253
  ]),
@@ -1253,7 +1255,7 @@ const Rt = ["role"], Ot = {
1253
1255
  m(c.$slots, "label.append")
1254
1256
  ]),
1255
1257
  default: _(() => [
1256
- je(Y("input", ae({
1258
+ Pe(Y("input", se({
1257
1259
  "onUpdate:modelValue": q[0] || (q[0] = (k) => o.value = k),
1258
1260
  ref_key: "inputRef",
1259
1261
  ref: d,
@@ -1266,8 +1268,8 @@ const Rt = ["role"], Ot = {
1266
1268
  readonly: e.readonly,
1267
1269
  disabled: e.disabled,
1268
1270
  maxlength: e.maxLength
1269
- }, c.$attrs), null, 16, Xt), [
1270
- [Pe, o.value]
1271
+ }, c.$attrs), null, 16, Yt), [
1272
+ [Xe, o.value]
1271
1273
  ])
1272
1274
  ]),
1273
1275
  _: 2
@@ -1295,24 +1297,24 @@ const Rt = ["role"], Ot = {
1295
1297
  } : void 0
1296
1298
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1297
1299
  }
1298
- }), Zt = S(Yt), Jt = {
1300
+ }), Jt = B(Zt), en = {
1299
1301
  key: 0,
1300
1302
  class: "q-select__loader"
1301
- }, en = {
1303
+ }, tn = {
1302
1304
  key: 2,
1303
1305
  class: "q-select__loader"
1304
- }, tn = {
1305
- noData: "No data available"
1306
1306
  }, nn = {
1307
+ noData: "No data available"
1308
+ }, on = {
1307
1309
  chevron: {
1308
1310
  icon: "chevron-down"
1309
1311
  },
1310
1312
  clear: {
1311
1313
  icon: "close"
1312
1314
  }
1313
- }, on = /* @__PURE__ */ B({
1315
+ }, ln = /* @__PURE__ */ S({
1314
1316
  __name: "QCombobox",
1315
- props: /* @__PURE__ */ K({
1317
+ props: /* @__PURE__ */ H({
1316
1318
  id: { default: void 0 },
1317
1319
  placeholder: { default: "" },
1318
1320
  selectionMode: { default: "automatic" },
@@ -1329,40 +1331,44 @@ const Rt = ["role"], Ot = {
1329
1331
  itemLabel: { default: "label" },
1330
1332
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1331
1333
  size: { default: void 0 },
1332
- texts: { default: () => tn },
1333
- icons: { default: () => nn },
1334
+ texts: { default: () => nn },
1335
+ icons: { default: () => on },
1334
1336
  class: { default: void 0 }
1335
1337
  }, {
1336
- modelValue: { type: Boolean },
1338
+ modelValue: {
1339
+ type: [String, Number, Boolean, Symbol]
1340
+ },
1337
1341
  modelModifiers: {},
1338
1342
  open: { type: Boolean },
1339
1343
  openModifiers: {},
1340
1344
  search: { default: "" },
1341
1345
  searchModifiers: {}
1342
1346
  }),
1343
- emits: /* @__PURE__ */ K(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1347
+ emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1344
1348
  setup(t, { expose: n, emit: e }) {
1345
1349
  const o = t, a = e, r = X(t, "modelValue"), d = X(t, "open"), i = X(t, "search"), c = T(void 0), q = T(null), k = T(null), g = T(null);
1346
- Ce(M);
1350
+ Ae(() => {
1351
+ z.value && M();
1352
+ });
1347
1353
  const F = w(() => o.clearable && !o.readonly && !o.disabled), D = w(() => {
1348
1354
  var s;
1349
- return o.filterMode === "manual" || !W.value ? o.items : (s = o.items) == null ? void 0 : s.filter(
1355
+ return o.filterMode === "manual" || !G.value ? o.items : (s = o.items) == null ? void 0 : s.filter(
1350
1356
  (y) => y[o.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1351
1357
  );
1352
1358
  }), z = w(() => {
1353
1359
  var s;
1354
1360
  return (s = o.items) == null ? void 0 : s.find((y) => y[o.itemValue] === r.value);
1355
- }), x = w(() => z.value === void 0), G = w(() => {
1361
+ }), L = w(() => z.value === void 0), K = w(() => {
1356
1362
  const s = c.value;
1357
1363
  if (s !== void 0 && D.value[s])
1358
1364
  return D.value[s];
1359
- }), oe = w(() => {
1365
+ }), le = w(() => {
1360
1366
  var y;
1361
1367
  if (c.value === void 0)
1362
1368
  return;
1363
1369
  const s = (y = k.value) == null ? void 0 : y.getItem(c.value);
1364
1370
  return s == null ? void 0 : s.id;
1365
- }), W = w(() => {
1371
+ }), G = w(() => {
1366
1372
  var s;
1367
1373
  return i.value.length > 0 && i.value !== ((s = z.value) == null ? void 0 : s[o.itemLabel]);
1368
1374
  });
@@ -1373,8 +1379,8 @@ const Rt = ["role"], Ot = {
1373
1379
  var s;
1374
1380
  i.value = ((s = z.value) == null ? void 0 : s[o.itemLabel]) || "";
1375
1381
  }
1376
- function j() {
1377
- d.value || o.readonly || o.disabled || (a("before-show"), d.value = !0, Q());
1382
+ function W() {
1383
+ d.value || o.readonly || o.disabled || (a("before-show"), d.value = !0, ee());
1378
1384
  }
1379
1385
  function R() {
1380
1386
  d.value && (a("before-hide"), d.value = !1, c.value = void 0);
@@ -1383,46 +1389,46 @@ const Rt = ["role"], Ot = {
1383
1389
  d.value ? R() : f();
1384
1390
  }
1385
1391
  function J() {
1386
- F.value && (r.value = o.emptyValue, c.value = void 0, Q());
1392
+ F.value && (r.value = o.emptyValue, c.value = void 0, ee());
1387
1393
  }
1388
1394
  function f() {
1389
- if (j(), z.value !== void 0) {
1395
+ if (W(), z.value !== void 0) {
1390
1396
  const s = D.value.indexOf(z.value);
1391
- s !== -1 && N(() => $e(s));
1397
+ s !== -1 && U(() => Ie(s));
1392
1398
  }
1393
1399
  }
1394
1400
  function b(s) {
1395
- var y, I;
1401
+ var y, x;
1396
1402
  if (!(!s.key || o.readonly || o.disabled))
1397
1403
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
1398
1404
  M(), d.value && R();
1399
1405
  else if (["ArrowDown", "ArrowUp"].includes(s.key))
1400
- d.value ? N(() => {
1406
+ d.value ? U(() => {
1401
1407
  if (c.value === void 0)
1402
1408
  $();
1403
1409
  else {
1404
- const U = s.key === "ArrowDown" ? "next" : "prev";
1405
- h(c.value, U);
1410
+ const Q = s.key === "ArrowDown" ? "next" : "prev";
1411
+ h(c.value, Q);
1406
1412
  }
1407
- }) : (j(), N(() => {
1413
+ }) : (W(), U(() => {
1408
1414
  s.key === "ArrowDown" ? $() : l();
1409
1415
  }));
1410
1416
  else if (s.key === "Enter") {
1411
- if (G.value === void 0)
1417
+ if (K.value === void 0)
1412
1418
  return;
1413
- C(G.value[o.itemValue]);
1419
+ C(K.value[o.itemValue]);
1414
1420
  } else
1415
- s.key === "Home" ? c.value = (y = k.value) == null ? void 0 : y.getFirstFocusableItemIndex() : s.key === "End" ? c.value = (I = k.value) == null ? void 0 : I.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && j();
1421
+ s.key === "Home" ? c.value = (y = k.value) == null ? void 0 : y.getFirstFocusableItemIndex() : s.key === "End" ? c.value = (x = k.value) == null ? void 0 : x.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && W();
1416
1422
  }
1417
1423
  function $() {
1418
1424
  var s, y;
1419
- if (x.value)
1425
+ if (L.value)
1420
1426
  c.value = (y = k.value) == null ? void 0 : y.getFirstFocusableItemIndex();
1421
1427
  else {
1422
- const I = D.value.findIndex(
1423
- (U) => U[o.itemValue] === r.value
1428
+ const x = D.value.findIndex(
1429
+ (Q) => Q[o.itemValue] === r.value
1424
1430
  );
1425
- I === -1 ? c.value = (s = k.value) == null ? void 0 : s.getFirstFocusableItemIndex() : c.value = I;
1431
+ x === -1 ? c.value = (s = k.value) == null ? void 0 : s.getFirstFocusableItemIndex() : c.value = x;
1426
1432
  }
1427
1433
  }
1428
1434
  function l() {
@@ -1430,197 +1436,200 @@ const Rt = ["role"], Ot = {
1430
1436
  c.value = (s = k.value) == null ? void 0 : s.getLastFocusableItemIndex();
1431
1437
  }
1432
1438
  function h(s, y) {
1433
- var I;
1434
- c.value = (I = k.value) == null ? void 0 : I.getAdjacentItemIndex(s, y);
1439
+ var x;
1440
+ c.value = (x = k.value) == null ? void 0 : x.getAdjacentItemIndex(s, y);
1435
1441
  }
1436
1442
  function O(s) {
1437
- var y, I, U;
1438
- !((y = g.value) != null && y.contains(s.relatedTarget)) && !((U = (I = q.value) == null ? void 0 : I.fieldRef) != null && U.contains(s.relatedTarget)) ? (R(), F.value && !i.value && (r.value = o.emptyValue), M()) : (s.preventDefault(), s.stopPropagation());
1443
+ var y, x, Q;
1444
+ !((y = g.value) != null && y.contains(s.relatedTarget)) && !((Q = (x = q.value) == null ? void 0 : x.fieldRef) != null && Q.contains(s.relatedTarget)) ? (R(), F.value && !i.value && (r.value = o.emptyValue), M()) : (s.preventDefault(), s.stopPropagation());
1439
1445
  }
1440
- function Q() {
1446
+ function ee() {
1441
1447
  var s, y;
1442
1448
  (y = (s = q.value) == null ? void 0 : s.inputRef) == null || y.focus();
1443
1449
  }
1444
- function me() {
1445
- Q();
1450
+ function j() {
1451
+ ee();
1446
1452
  }
1447
- function Oe() {
1453
+ function ve() {
1448
1454
  a("show");
1449
1455
  }
1450
- function Ue() {
1456
+ function Ne() {
1451
1457
  a("hide");
1452
1458
  }
1453
- function $e(s) {
1454
- var I;
1455
- const y = (I = k.value) == null ? void 0 : I.getItem(s);
1459
+ function Ie(s) {
1460
+ var x;
1461
+ const y = (x = k.value) == null ? void 0 : x.getItem(s);
1456
1462
  y == null || y.scrollIntoView({ block: "nearest", inline: "start" });
1457
1463
  }
1458
1464
  return P(r, M), P(
1459
1465
  () => o.items,
1460
1466
  (s, y) => {
1461
- if (!x.value) {
1462
- const I = y.find((U) => U[o.itemValue] === r.value);
1463
- i.value === (I == null ? void 0 : I[o.itemLabel]) && M();
1467
+ if (!L.value) {
1468
+ const x = y.find((Q) => Q[o.itemValue] === r.value);
1469
+ i.value === (x == null ? void 0 : x[o.itemLabel]) && M();
1464
1470
  }
1465
1471
  },
1466
1472
  { deep: !0 }
1467
1473
  ), P(c, (s) => {
1468
- s !== void 0 && $e(s);
1474
+ s !== void 0 && Ie(s);
1469
1475
  }), P(i, (s) => {
1470
- s && d.value && o.selectionMode === "automatic" && N($);
1476
+ s && d.value && o.selectionMode === "automatic" && U($);
1471
1477
  }), P(
1472
1478
  () => o.loading,
1473
1479
  (s) => {
1474
- !s && d.value && N($);
1480
+ !s && d.value && U($);
1475
1481
  }
1476
1482
  ), n({
1477
1483
  triggerEl: q
1478
- }), (s, y) => (u(), p(te, null, [
1479
- A(v(Zt), {
1480
- modelValue: i.value,
1481
- "onUpdate:modelValue": y[0] || (y[0] = (I) => i.value = I),
1482
- id: o.id,
1483
- label: o.label,
1484
- required: o.required,
1485
- ref_key: "triggerEl",
1486
- ref: q,
1487
- role: "combobox",
1488
- placeholder: o.placeholder,
1489
- class: E([
1490
- "q-combobox",
1491
- {
1492
- "q-combobox--readonly": o.readonly,
1493
- "q-combobox--disabled": o.disabled,
1494
- "q-combobox--expanded": d.value
1495
- },
1496
- o.class
1497
- ]),
1498
- readonly: o.readonly,
1499
- disabled: o.disabled,
1500
- autocomplete: "off",
1501
- "aria-expanded": d.value,
1502
- "aria-haspopup": "listbox",
1503
- "aria-autocomplete": "list",
1504
- "aria-activedescendant": oe.value,
1505
- size: o.size,
1506
- onClick: f,
1507
- onFocusout: O,
1508
- onKeydown: re(b, ["stop"])
1509
- }, ye({
1510
- "label.prepend": _(() => [
1511
- m(s.$slots, "label.prepend")
1512
- ]),
1513
- "label.append": _(() => [
1514
- m(s.$slots, "label.append")
1515
- ]),
1516
- append: _(() => [
1517
- m(s.$slots, "append"),
1518
- F.value && i.value ? (u(), V(v(ce), {
1519
- key: 0,
1520
- class: "q-combobox__clear",
1521
- "b-style": "plain",
1522
- borderless: "",
1523
- tabindex: "-1",
1524
- onClick: J
1525
- }, {
1526
- default: _(() => [
1527
- A(v(ee), ne(se(o.icons.clear)), null, 16)
1528
- ]),
1529
- _: 1
1530
- })) : L("", !0),
1531
- o.readonly ? L("", !0) : (u(), V(v(ce), {
1532
- key: 1,
1533
- class: "q-combobox__chevron",
1534
- "b-style": "plain",
1535
- borderless: "",
1536
- tabindex: "-1",
1537
- disabled: o.disabled,
1538
- onClick: Z
1539
- }, {
1540
- default: _(() => [
1541
- A(v(ee), ne(se(o.icons.chevron)), null, 16)
1542
- ]),
1543
- _: 1
1544
- }, 8, ["disabled"]))
1545
- ]),
1546
- _: 2
1547
- }, [
1548
- s.$slots.prepend ? {
1549
- name: "prepend",
1550
- fn: _(() => [
1551
- m(s.$slots, "prepend")
1484
+ }), (s, y) => {
1485
+ var x;
1486
+ return u(), p(ne, null, [
1487
+ A(v(Jt), {
1488
+ modelValue: i.value,
1489
+ "onUpdate:modelValue": y[0] || (y[0] = (Q) => i.value = Q),
1490
+ id: o.id,
1491
+ label: o.label,
1492
+ required: o.required,
1493
+ ref_key: "triggerEl",
1494
+ ref: q,
1495
+ role: "combobox",
1496
+ placeholder: o.placeholder,
1497
+ class: E([
1498
+ "q-combobox",
1499
+ {
1500
+ "q-combobox--readonly": o.readonly,
1501
+ "q-combobox--disabled": o.disabled,
1502
+ "q-combobox--expanded": d.value
1503
+ },
1504
+ o.class
1552
1505
  ]),
1553
- key: "0"
1554
- } : void 0,
1555
- s.$slots.extras ? {
1556
- name: "extras",
1557
- fn: _(() => [
1558
- m(s.$slots, "extras")
1506
+ readonly: o.readonly,
1507
+ disabled: o.disabled,
1508
+ autocomplete: "off",
1509
+ "aria-expanded": d.value,
1510
+ "aria-haspopup": "listbox",
1511
+ "aria-autocomplete": "list",
1512
+ "aria-activedescendant": le.value,
1513
+ size: o.size,
1514
+ onClick: f,
1515
+ onFocusout: O,
1516
+ onKeydown: de(b, ["stop"])
1517
+ }, _e({
1518
+ "label.prepend": _(() => [
1519
+ m(s.$slots, "label.prepend")
1559
1520
  ]),
1560
- key: "1"
1561
- } : void 0
1562
- ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1563
- A(v(ve), {
1564
- modelValue: d.value,
1565
- "onUpdate:modelValue": y[2] || (y[2] = (I) => d.value = I),
1566
- spy: "",
1567
- trigger: "manual",
1568
- placement: "bottom",
1569
- width: "anchor",
1570
- offset: 4,
1571
- anchor: q.value,
1572
- onEnter: Oe,
1573
- onLeave: Ue
1574
- }, {
1575
- default: _(() => {
1576
- var I;
1577
- return [
1578
- Y("div", {
1579
- ref_key: "contentRef",
1580
- ref: g,
1581
- class: "q-select__body",
1582
- onFocusout: O
1583
- }, [
1584
- m(s.$slots, "body.prepend"),
1585
- o.loading ? (u(), p("div", Jt, [
1586
- A(v(ke), { size: 24 })
1587
- ])) : D.value.length ? (u(), V(v(Me), {
1588
- key: 1,
1589
- ref_key: "listRef",
1590
- ref: k,
1591
- class: "q-select__items",
1592
- modelValue: r.value,
1593
- "onUpdate:modelValue": [
1594
- y[1] || (y[1] = (U) => r.value = U),
1595
- C
1596
- ],
1597
- highlighted: (I = G.value) == null ? void 0 : I[o.itemValue],
1598
- items: D.value,
1599
- groups: s.groups,
1600
- "item-label": o.itemLabel,
1601
- "item-value": o.itemValue,
1602
- onMouseup: me
1603
- }, {
1604
- item: _(({ item: U }) => [
1605
- m(s.$slots, "item", { item: U })
1606
- ]),
1607
- _: 3
1608
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), p("div", en, H(s.texts.noData), 1)),
1609
- m(s.$slots, "body.append")
1610
- ], 544)
1611
- ];
1612
- }),
1613
- _: 3
1614
- }, 8, ["modelValue", "anchor"])
1615
- ], 64));
1521
+ "label.append": _(() => [
1522
+ m(s.$slots, "label.append")
1523
+ ]),
1524
+ append: _(() => [
1525
+ m(s.$slots, "append"),
1526
+ F.value && i.value ? (u(), V(v(fe), {
1527
+ key: 0,
1528
+ class: "q-combobox__clear",
1529
+ "b-style": "plain",
1530
+ borderless: "",
1531
+ tabindex: "-1",
1532
+ onClick: J
1533
+ }, {
1534
+ default: _(() => [
1535
+ A(v(te), oe(ie(o.icons.clear)), null, 16)
1536
+ ]),
1537
+ _: 1
1538
+ })) : I("", !0),
1539
+ o.readonly ? I("", !0) : (u(), V(v(fe), {
1540
+ key: 1,
1541
+ class: "q-combobox__chevron",
1542
+ "b-style": "plain",
1543
+ borderless: "",
1544
+ tabindex: "-1",
1545
+ disabled: o.disabled,
1546
+ onClick: Z
1547
+ }, {
1548
+ default: _(() => [
1549
+ A(v(te), oe(ie(o.icons.chevron)), null, 16)
1550
+ ]),
1551
+ _: 1
1552
+ }, 8, ["disabled"]))
1553
+ ]),
1554
+ _: 2
1555
+ }, [
1556
+ s.$slots.prepend ? {
1557
+ name: "prepend",
1558
+ fn: _(() => [
1559
+ m(s.$slots, "prepend")
1560
+ ]),
1561
+ key: "0"
1562
+ } : void 0,
1563
+ s.$slots.extras ? {
1564
+ name: "extras",
1565
+ fn: _(() => [
1566
+ m(s.$slots, "extras")
1567
+ ]),
1568
+ key: "1"
1569
+ } : void 0
1570
+ ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1571
+ A(v(he), {
1572
+ modelValue: d.value,
1573
+ "onUpdate:modelValue": y[2] || (y[2] = (Q) => d.value = Q),
1574
+ spy: "",
1575
+ trigger: "manual",
1576
+ placement: "bottom",
1577
+ width: "anchor",
1578
+ offset: 4,
1579
+ anchor: (x = q.value) == null ? void 0 : x.$el,
1580
+ onEnter: ve,
1581
+ onLeave: Ne
1582
+ }, {
1583
+ default: _(() => {
1584
+ var Q;
1585
+ return [
1586
+ Y("div", {
1587
+ ref_key: "contentRef",
1588
+ ref: g,
1589
+ class: "q-select__body",
1590
+ onFocusout: O
1591
+ }, [
1592
+ m(s.$slots, "body.prepend"),
1593
+ o.loading ? (u(), p("div", en, [
1594
+ A(v($e), { size: 24 })
1595
+ ])) : D.value.length ? (u(), V(v(Oe), {
1596
+ key: 1,
1597
+ ref_key: "listRef",
1598
+ ref: k,
1599
+ class: "q-select__items",
1600
+ modelValue: r.value,
1601
+ "onUpdate:modelValue": [
1602
+ y[1] || (y[1] = (be) => r.value = be),
1603
+ C
1604
+ ],
1605
+ highlighted: (Q = K.value) == null ? void 0 : Q[o.itemValue],
1606
+ items: D.value,
1607
+ groups: s.groups,
1608
+ "item-label": o.itemLabel,
1609
+ "item-value": o.itemValue,
1610
+ onMouseup: j
1611
+ }, {
1612
+ item: _(({ item: be }) => [
1613
+ m(s.$slots, "item", { item: be })
1614
+ ]),
1615
+ _: 3
1616
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), p("div", tn, N(s.texts.noData), 1)),
1617
+ m(s.$slots, "body.append")
1618
+ ], 544)
1619
+ ];
1620
+ }),
1621
+ _: 3
1622
+ }, 8, ["modelValue", "anchor"])
1623
+ ], 64);
1624
+ };
1616
1625
  }
1617
- }), Vn = S(on), ln = {
1626
+ }), En = B(ln), an = {
1618
1627
  key: 0,
1619
1628
  class: "q-input-group__prepend"
1620
- }, an = { key: 0 }, sn = {
1629
+ }, sn = { key: 0 }, rn = {
1621
1630
  key: 1,
1622
1631
  class: "q-input-group__append"
1623
- }, rn = { key: 0 }, dn = /* @__PURE__ */ B({
1632
+ }, dn = { key: 0 }, un = /* @__PURE__ */ S({
1624
1633
  __name: "QInputGroup",
1625
1634
  props: {
1626
1635
  id: { default: void 0 },
@@ -1633,11 +1642,11 @@ const Rt = ["role"], Ot = {
1633
1642
  },
1634
1643
  setup(t) {
1635
1644
  const n = t;
1636
- return Qe({
1645
+ return Fe({
1637
1646
  QField: {
1638
1647
  size: "block"
1639
1648
  }
1640
- }), (e, o) => (u(), V(v(we), {
1649
+ }), (e, o) => (u(), V(v(qe), {
1641
1650
  id: n.id,
1642
1651
  class: E(["q-input-group", n.class]),
1643
1652
  label: n.label,
@@ -1645,24 +1654,24 @@ const Rt = ["role"], Ot = {
1645
1654
  size: n.size
1646
1655
  }, {
1647
1656
  default: _(() => [
1648
- e.$slots.prepend || n.prependIcon ? (u(), p("div", ln, [
1649
- n.prependIcon ? (u(), p("span", an, [
1650
- A(v(ee), ne(se(n.prependIcon)), null, 16)
1651
- ])) : L("", !0),
1657
+ e.$slots.prepend || n.prependIcon ? (u(), p("div", an, [
1658
+ n.prependIcon ? (u(), p("span", sn, [
1659
+ A(v(te), oe(ie(n.prependIcon)), null, 16)
1660
+ ])) : I("", !0),
1652
1661
  m(e.$slots, "prepend")
1653
- ])) : L("", !0),
1662
+ ])) : I("", !0),
1654
1663
  m(e.$slots, "default"),
1655
- e.$slots.append || n.appendIcon ? (u(), p("div", sn, [
1656
- n.appendIcon ? (u(), p("span", rn, [
1657
- A(v(ee), ne(se(n.appendIcon)), null, 16)
1658
- ])) : L("", !0),
1664
+ e.$slots.append || n.appendIcon ? (u(), p("div", rn, [
1665
+ n.appendIcon ? (u(), p("span", dn, [
1666
+ A(v(te), oe(ie(n.appendIcon)), null, 16)
1667
+ ])) : I("", !0),
1659
1668
  m(e.$slots, "append")
1660
- ])) : L("", !0)
1669
+ ])) : I("", !0)
1661
1670
  ]),
1662
1671
  _: 3
1663
1672
  }, 8, ["id", "class", "label", "required", "size"]));
1664
1673
  }
1665
- }), En = S(dn), un = /* @__PURE__ */ B({
1674
+ }), Tn = B(un), cn = /* @__PURE__ */ S({
1666
1675
  __name: "QLineLoader",
1667
1676
  props: {
1668
1677
  class: { default: void 0 }
@@ -1673,16 +1682,16 @@ const Rt = ["role"], Ot = {
1673
1682
  class: E(["q-line-loader", n.class])
1674
1683
  }, null, 2));
1675
1684
  }
1676
- }), Tn = S(un), cn = {
1685
+ }), Dn = B(cn), fn = {
1677
1686
  key: 0,
1678
1687
  class: "q-popover__header"
1679
- }, fn = {
1688
+ }, pn = {
1680
1689
  key: 1,
1681
1690
  class: "q-popover__body"
1682
- }, pn = ["innerHTML"], mn = { key: 1 }, vn = /* @__PURE__ */ B({
1691
+ }, mn = ["innerHTML"], vn = { key: 1 }, hn = /* @__PURE__ */ S({
1683
1692
  inheritAttrs: !1,
1684
1693
  __name: "QPopover",
1685
- props: /* @__PURE__ */ K({
1694
+ props: /* @__PURE__ */ H({
1686
1695
  anchor: {},
1687
1696
  arrow: { type: Boolean, default: !0 },
1688
1697
  attach: { default: "body" },
@@ -1698,7 +1707,7 @@ const Rt = ["role"], Ot = {
1698
1707
  emits: ["update:modelValue"],
1699
1708
  setup(t) {
1700
1709
  const n = t, e = X(t, "modelValue");
1701
- return (o, a) => (u(), V(v(ve), {
1710
+ return (o, a) => (u(), V(v(he), {
1702
1711
  "model-value": e.value,
1703
1712
  class: "q-popover",
1704
1713
  trigger: "click",
@@ -1709,42 +1718,42 @@ const Rt = ["role"], Ot = {
1709
1718
  placement: n.placement
1710
1719
  }, {
1711
1720
  default: _(() => [
1712
- n.title || o.$slots.header ? (u(), p("h3", cn, [
1713
- de(H(n.title) + " ", 1),
1721
+ n.title || o.$slots.header ? (u(), p("h3", fn, [
1722
+ ue(N(n.title) + " ", 1),
1714
1723
  m(o.$slots, "header")
1715
- ])) : L("", !0),
1716
- n.text || o.$slots.body ? (u(), p("div", fn, [
1724
+ ])) : I("", !0),
1725
+ n.text || o.$slots.body ? (u(), p("div", pn, [
1717
1726
  n.html ? (u(), p("span", {
1718
1727
  key: 0,
1719
1728
  innerHTML: n.text
1720
- }, null, 8, pn)) : (u(), p("span", mn, H(n.text), 1)),
1729
+ }, null, 8, mn)) : (u(), p("span", vn, N(n.text), 1)),
1721
1730
  m(o.$slots, "body")
1722
- ])) : L("", !0)
1731
+ ])) : I("", !0)
1723
1732
  ]),
1724
1733
  _: 3
1725
1734
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
1726
1735
  }
1727
- }), Dn = S(vn), hn = {
1736
+ }), zn = B(hn), bn = {
1728
1737
  key: 0,
1729
1738
  class: "q-select__value"
1730
- }, bn = {
1739
+ }, yn = {
1731
1740
  key: 1,
1732
1741
  class: "q-select__placeholder"
1733
- }, yn = {
1742
+ }, gn = {
1734
1743
  key: 0,
1735
1744
  class: "q-select__loader"
1736
- }, gn = {
1737
- placeholder: "Choose..."
1738
1745
  }, _n = {
1746
+ placeholder: "Choose..."
1747
+ }, kn = {
1739
1748
  chevron: {
1740
1749
  icon: "chevron-down"
1741
1750
  },
1742
1751
  clear: {
1743
1752
  icon: "close"
1744
1753
  }
1745
- }, kn = /* @__PURE__ */ B({
1754
+ }, wn = /* @__PURE__ */ S({
1746
1755
  __name: "QSelect",
1747
- props: /* @__PURE__ */ K({
1756
+ props: /* @__PURE__ */ H({
1748
1757
  id: { default: void 0 },
1749
1758
  label: { default: "" },
1750
1759
  clearable: { type: Boolean },
@@ -1752,20 +1761,22 @@ const Rt = ["role"], Ot = {
1752
1761
  disabled: { type: Boolean },
1753
1762
  required: { type: Boolean },
1754
1763
  loading: { type: Boolean },
1755
- icons: { default: () => _n },
1764
+ icons: { default: () => kn },
1756
1765
  items: {},
1757
1766
  groups: { default: () => [] },
1758
1767
  itemValue: { default: "key" },
1759
1768
  itemLabel: { default: "label" },
1760
1769
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1761
1770
  size: { default: void 0 },
1762
- texts: { default: () => gn },
1771
+ texts: { default: () => _n },
1763
1772
  class: { default: "" }
1764
1773
  }, {
1765
- modelValue: { type: Boolean },
1774
+ modelValue: {
1775
+ type: [String, Number, Boolean, Symbol]
1776
+ },
1766
1777
  modelModifiers: {}
1767
1778
  }),
1768
- emits: /* @__PURE__ */ K(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1779
+ emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1769
1780
  setup(t, { emit: n }) {
1770
1781
  const e = t, o = n, a = X(t, "modelValue"), r = T(!1), d = T(""), i = T(null), c = T(null), q = T(null), k = w(() => g.value === void 0), g = w(
1771
1782
  () => {
@@ -1780,29 +1791,29 @@ const Rt = ["role"], Ot = {
1780
1791
  function z(l) {
1781
1792
  a.value = l, C();
1782
1793
  }
1783
- function x() {
1794
+ function L() {
1784
1795
  D.value && z(e.emptyValue);
1785
1796
  }
1786
- function G() {
1787
- e.readonly || e.disabled || (r.value ? C() : W());
1797
+ function K() {
1798
+ e.readonly || e.disabled || (r.value ? C() : G());
1788
1799
  }
1789
- function oe(l) {
1790
- var h, O, Q;
1791
- !((h = q.value) != null && h.contains(l.relatedTarget)) && !((Q = (O = i.value) == null ? void 0 : O.fieldRef) != null && Q.contains(l.relatedTarget)) && C();
1800
+ function le(l) {
1801
+ var h, O, ee;
1802
+ !((h = q.value) != null && h.contains(l.relatedTarget)) && !((ee = (O = i.value) == null ? void 0 : O.fieldRef) != null && ee.contains(l.relatedTarget)) && C();
1792
1803
  }
1793
- function W() {
1804
+ function G() {
1794
1805
  r.value || (o("before-show"), r.value = !0);
1795
1806
  }
1796
1807
  function C() {
1797
1808
  r.value && (o("before-hide"), r.value = !1);
1798
1809
  }
1799
1810
  function M() {
1800
- r.value ? C() : W();
1811
+ r.value ? C() : G();
1801
1812
  }
1802
- let j;
1813
+ let W;
1803
1814
  function R(l) {
1804
1815
  if (!(!l.key || e.readonly || e.disabled)) {
1805
- if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " "].includes(l.key) && (r.value = !0), ["Escape", "Tab"].includes(l.key) && (r.value ? r.value = !1 : D.value && l.key === "Escape" && x()), l.key === "Delete" && e.clearable && x(), /^[a-z]$/i.test(l.key)) {
1816
+ if (window.clearTimeout(W), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " "].includes(l.key) && (r.value = !0), ["Escape", "Tab"].includes(l.key) && (r.value ? r.value = !1 : D.value && l.key === "Escape" && L()), l.key === "Delete" && e.clearable && L(), /^[a-z]$/i.test(l.key)) {
1806
1817
  d.value += l.key.toLowerCase();
1807
1818
  for (let h = 0; h < e.items.length; h++)
1808
1819
  if (e.items[h][e.itemLabel].toLowerCase().startsWith(d.value)) {
@@ -1810,7 +1821,7 @@ const Rt = ["role"], Ot = {
1810
1821
  break;
1811
1822
  }
1812
1823
  }
1813
- j = window.setTimeout(function() {
1824
+ W = window.setTimeout(function() {
1814
1825
  d.value = "";
1815
1826
  }, 500);
1816
1827
  }
@@ -1837,12 +1848,12 @@ const Rt = ["role"], Ot = {
1837
1848
  return P(
1838
1849
  () => e.loading,
1839
1850
  (l) => {
1840
- !l && r.value && N(b);
1851
+ !l && r.value && U(b);
1841
1852
  }
1842
1853
  ), (l, h) => {
1843
- var O;
1844
- return u(), p(te, null, [
1845
- A(v(we), {
1854
+ var O, ee;
1855
+ return u(), p(ne, null, [
1856
+ A(v(qe), {
1846
1857
  id: e.id,
1847
1858
  label: e.label,
1848
1859
  required: e.required,
@@ -1864,25 +1875,25 @@ const Rt = ["role"], Ot = {
1864
1875
  "aria-expanded": r.value,
1865
1876
  "aria-haspopup": "listbox",
1866
1877
  size: e.size,
1867
- onClick: G,
1868
- onKeydown: re(R, ["stop"])
1869
- }, ye({
1878
+ onClick: K,
1879
+ onKeydown: de(R, ["stop"])
1880
+ }, _e({
1870
1881
  append: _(() => [
1871
1882
  m(l.$slots, "append"),
1872
- D.value && a.value ? (u(), V(v(ce), {
1883
+ D.value && a.value ? (u(), V(v(fe), {
1873
1884
  key: 0,
1874
1885
  class: "q-select__clear",
1875
1886
  "b-style": "plain",
1876
1887
  borderless: "",
1877
1888
  tabindex: "-1",
1878
- onClick: x
1889
+ onClick: L
1879
1890
  }, {
1880
1891
  default: _(() => [
1881
- A(v(ee), ne(se(e.icons.clear)), null, 16)
1892
+ A(v(te), oe(ie(e.icons.clear)), null, 16)
1882
1893
  ]),
1883
1894
  _: 1
1884
- })) : L("", !0),
1885
- e.readonly ? L("", !0) : (u(), V(v(ce), {
1895
+ })) : I("", !0),
1896
+ e.readonly ? I("", !0) : (u(), V(v(fe), {
1886
1897
  key: 1,
1887
1898
  class: "q-select__chevron",
1888
1899
  "b-style": "plain",
@@ -1892,27 +1903,27 @@ const Rt = ["role"], Ot = {
1892
1903
  onClick: M
1893
1904
  }, {
1894
1905
  default: _(() => [
1895
- A(v(ee), ne(se(e.icons.chevron)), null, 16)
1906
+ A(v(te), oe(ie(e.icons.chevron)), null, 16)
1896
1907
  ]),
1897
1908
  _: 1
1898
1909
  }, 8, ["disabled"]))
1899
1910
  ]),
1900
1911
  default: _(() => [
1901
- k.value ? (u(), p("span", bn, [
1902
- !e.readonly && !e.disabled ? (u(), p(te, { key: 0 }, [
1903
- de(H(l.texts.placeholder), 1)
1904
- ], 64)) : L("", !0)
1905
- ])) : (u(), p("span", hn, H(F.value), 1))
1912
+ k.value ? (u(), p("span", yn, [
1913
+ !e.readonly && !e.disabled ? (u(), p(ne, { key: 0 }, [
1914
+ ue(N(l.texts.placeholder), 1)
1915
+ ], 64)) : I("", !0)
1916
+ ])) : (u(), p("span", bn, N(F.value), 1))
1906
1917
  ]),
1907
1918
  _: 2
1908
1919
  }, [
1909
1920
  (O = g.value) != null && O.icon || l.$slots.prepend ? {
1910
1921
  name: "prepend",
1911
1922
  fn: _(() => {
1912
- var Q, me;
1923
+ var j, ve;
1913
1924
  return [
1914
1925
  m(l.$slots, "prepend"),
1915
- (Q = g.value) != null && Q.icon ? (u(), V(v(ee), ne(ae({ key: 0 }, (me = g.value) == null ? void 0 : me.icon)), null, 16)) : L("", !0)
1926
+ (j = g.value) != null && j.icon ? (u(), V(v(te), oe(se({ key: 0 }, (ve = g.value) == null ? void 0 : ve.icon)), null, 16)) : I("", !0)
1916
1927
  ];
1917
1928
  }),
1918
1929
  key: "0"
@@ -1925,14 +1936,14 @@ const Rt = ["role"], Ot = {
1925
1936
  key: "1"
1926
1937
  } : void 0
1927
1938
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
1928
- A(v(ve), {
1939
+ A(v(he), {
1929
1940
  modelValue: r.value,
1930
- "onUpdate:modelValue": h[1] || (h[1] = (Q) => r.value = Q),
1941
+ "onUpdate:modelValue": h[1] || (h[1] = (j) => r.value = j),
1931
1942
  spy: "",
1932
1943
  trigger: "manual",
1933
1944
  placement: "bottom",
1934
1945
  width: "anchor",
1935
- anchor: i.value,
1946
+ anchor: (ee = i.value) == null ? void 0 : ee.$el,
1936
1947
  offset: 2,
1937
1948
  onEnter: Z,
1938
1949
  onLeave: J
@@ -1943,20 +1954,20 @@ const Rt = ["role"], Ot = {
1943
1954
  ref: q,
1944
1955
  class: "q-select__body",
1945
1956
  tabindex: "-1",
1946
- onFocusout: oe,
1947
- onKeydown: re(R, ["stop"])
1957
+ onFocusout: le,
1958
+ onKeydown: de(R, ["stop"])
1948
1959
  }, [
1949
1960
  m(l.$slots, "body.prepend"),
1950
- e.loading ? (u(), p("div", yn, [
1951
- A(v(ke), { size: 24 })
1952
- ])) : (u(), V(v(Me), {
1961
+ e.loading ? (u(), p("div", gn, [
1962
+ A(v($e), { size: 24 })
1963
+ ])) : (u(), V(v(Oe), {
1953
1964
  key: 1,
1954
1965
  ref_key: "listRef",
1955
1966
  ref: c,
1956
1967
  class: "q-select__items",
1957
1968
  modelValue: a.value,
1958
1969
  "onUpdate:modelValue": [
1959
- h[0] || (h[0] = (Q) => a.value = Q),
1970
+ h[0] || (h[0] = (j) => a.value = j),
1960
1971
  z
1961
1972
  ],
1962
1973
  items: e.items,
@@ -1964,8 +1975,8 @@ const Rt = ["role"], Ot = {
1964
1975
  "item-label": e.itemLabel,
1965
1976
  "item-value": e.itemValue
1966
1977
  }, {
1967
- item: _(({ item: Q }) => [
1968
- m(l.$slots, "item", { item: Q })
1978
+ item: _(({ item: j }) => [
1979
+ m(l.$slots, "item", { item: j })
1969
1980
  ]),
1970
1981
  _: 3
1971
1982
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
@@ -1977,7 +1988,7 @@ const Rt = ["role"], Ot = {
1977
1988
  ], 64);
1978
1989
  };
1979
1990
  }
1980
- }), zn = S(kn), wn = /* @__PURE__ */ B({
1991
+ }), Cn = B(wn), $n = /* @__PURE__ */ S({
1981
1992
  __name: "QThemeProvider",
1982
1993
  props: {
1983
1994
  theme: {}
@@ -1990,9 +2001,9 @@ const Rt = ["role"], Ot = {
1990
2001
  m(e.$slots, "default")
1991
2002
  ], 2));
1992
2003
  }
1993
- }), Cn = S(wn), $n = ["innerHTML"], qn = { key: 1 }, In = /* @__PURE__ */ B({
2004
+ }), Qn = B($n), qn = ["innerHTML"], In = { key: 1 }, Ln = /* @__PURE__ */ S({
1994
2005
  __name: "QTooltip",
1995
- props: /* @__PURE__ */ K({
2006
+ props: /* @__PURE__ */ H({
1996
2007
  id: { default: void 0 },
1997
2008
  anchor: {},
1998
2009
  appearance: { default: "inverted" },
@@ -2011,12 +2022,12 @@ const Rt = ["role"], Ot = {
2011
2022
  }),
2012
2023
  emits: ["update:modelValue"],
2013
2024
  setup(t) {
2014
- const n = t, e = X(t, "modelValue"), o = pe(n.id);
2015
- return (a, r) => (u(), p(te, null, [
2025
+ const n = t, e = X(t, "modelValue"), o = me(n.id);
2026
+ return (a, r) => (u(), p(ne, null, [
2016
2027
  m(a.$slots, "anchor", {
2017
2028
  props: { "aria-describedby": v(o) }
2018
2029
  }),
2019
- A(v(ve), {
2030
+ A(v(he), {
2020
2031
  "model-value": e.value,
2021
2032
  anchor: n.anchor,
2022
2033
  role: "tooltip",
@@ -2034,39 +2045,39 @@ const Rt = ["role"], Ot = {
2034
2045
  n.html ? (u(), p("span", {
2035
2046
  key: 0,
2036
2047
  innerHTML: n.text
2037
- }, null, 8, $n)) : (u(), p("span", qn, H(n.text), 1))
2048
+ }, null, 8, qn)) : (u(), p("span", In, N(n.text), 1))
2038
2049
  ]),
2039
2050
  _: 1
2040
2051
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
2041
2052
  ], 64));
2042
2053
  }
2043
- }), Qn = S(In);
2054
+ }), An = B(Ln);
2044
2055
  export {
2045
- ce as QButton,
2046
- mt as QButtonGroup,
2047
- Sn as QButtonToggle,
2048
- Vn as QCombobox,
2049
- we as QField,
2050
- ee as QIcon,
2051
- qt as QIconFont,
2052
- It as QIconImg,
2053
- Lt as QIconSvg,
2054
- En as QInputGroup,
2055
- Tn as QLineLoader,
2056
- Me as QList,
2057
- Qt as QListItem,
2058
- At as QListItemGroup,
2059
- ve as QOverlay,
2060
- Dn as QPopover,
2061
- zn as QSelect,
2062
- ke as QSpinnerLoader,
2063
- Zt as QTextField,
2064
- Cn as QThemeProvider,
2065
- Qn as QTooltip,
2056
+ fe as QButton,
2057
+ vt as QButtonGroup,
2058
+ Vn as QButtonToggle,
2059
+ En as QCombobox,
2060
+ qe as QField,
2061
+ te as QIcon,
2062
+ It as QIconFont,
2063
+ Lt as QIconImg,
2064
+ St as QIconSvg,
2065
+ Tn as QInputGroup,
2066
+ Dn as QLineLoader,
2067
+ Oe as QList,
2068
+ At as QListItem,
2069
+ Ft as QListItemGroup,
2070
+ he as QOverlay,
2071
+ zn as QPopover,
2072
+ Cn as QSelect,
2073
+ $e as QSpinnerLoader,
2074
+ Jt as QTextField,
2075
+ Qn as QThemeProvider,
2076
+ An as QTooltip,
2066
2077
  Bn as createFramework,
2067
- Ze as defaultDarkColorScheme,
2068
- xe as defaultLightColorScheme,
2078
+ Je as defaultDarkColorScheme,
2079
+ Be as defaultLightColorScheme,
2069
2080
  xn as provideTheme,
2070
- Ye as useTheme
2081
+ Ze as useTheme
2071
2082
  };
2072
2083
  //# sourceMappingURL=ui.esm.js.map