@quidgest/ui 0.13.1 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/ui.css +4 -0
  2. package/dist/ui.esm.js +535 -524
  3. package/dist/ui.js +7 -7
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +46 -46
  6. package/dist/ui.scss +4 -1
  7. package/esm/components/QBadge/QBadge.d.ts +12 -6
  8. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  9. package/esm/components/QBadge/QBadge.vue.js +6 -6
  10. package/esm/components/QBadge/index.d.ts +37 -15
  11. package/esm/components/QBadge/index.d.ts.map +1 -1
  12. package/esm/components/QCombobox/QCombobox.d.ts +22 -39
  13. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  14. package/esm/components/QCombobox/QCombobox.vue.js +29 -29
  15. package/esm/components/QCombobox/index.d.ts +48 -56
  16. package/esm/components/QCombobox/index.d.ts.map +1 -1
  17. package/esm/components/QDialog/QDialog.d.ts +21 -3
  18. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  19. package/esm/components/QDialog/QDialog.vue.js +117 -98
  20. package/esm/components/QDialog/index.d.ts +41 -7
  21. package/esm/components/QDialog/index.d.ts.map +1 -1
  22. package/esm/components/QList/QList.d.ts +10 -0
  23. package/esm/components/QList/QList.d.ts.map +1 -1
  24. package/esm/components/QList/QList.vue.js +23 -22
  25. package/esm/components/QList/QListItem.d.ts +14 -8
  26. package/esm/components/QList/QListItem.d.ts.map +1 -1
  27. package/esm/components/QList/QListItem.vue.js +17 -17
  28. package/esm/components/QList/index.d.ts +49 -15
  29. package/esm/components/QList/index.d.ts.map +1 -1
  30. package/esm/components/QOverlay/QOverlay.d.ts +13 -0
  31. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  32. package/esm/components/QOverlay/QOverlay.vue.js +2 -0
  33. package/esm/components/QOverlay/index.d.ts +19 -0
  34. package/esm/components/QOverlay/index.d.ts.map +1 -1
  35. package/esm/components/QPopover/QPopover.vue.js +25 -24
  36. package/esm/components/QSelect/QSelect.d.ts +22 -39
  37. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  38. package/esm/components/QSelect/QSelect.vue.js +6 -6
  39. package/esm/components/QSelect/index.d.ts +48 -56
  40. package/esm/components/QSelect/index.d.ts.map +1 -1
  41. package/package.json +1 -1
package/dist/ui.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, computed as k, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as x, resolveDynamicComponent as Ke, h as Ae, withCtx as _, normalizeProps as W, guardReactiveProps as ie, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
1
+ import { defineComponent as L, computed as g, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as T, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as I, resolveDynamicComponent as Ke, h as Ae, withCtx as k, normalizeProps as G, guardReactiveProps as se, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.13.1
3
+ * Quidgest UI v0.13.3
4
4
  * (c) 2024 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
@@ -76,28 +76,28 @@ const Le = {
76
76
  size: { default: 48 },
77
77
  class: { default: void 0 }
78
78
  },
79
- setup(t) {
80
- const o = t, e = k(() => ({
81
- "font-size": o.size !== 48 ? `${o.size}px` : void 0
79
+ setup(o) {
80
+ const t = o, e = g(() => ({
81
+ "font-size": t.size !== 48 ? `${t.size}px` : void 0
82
82
  }));
83
83
  return (n, l) => (u(), v("div", {
84
- class: C(["q-spinner-loader", o.class]),
84
+ class: C(["q-spinner-loader", t.class]),
85
85
  style: ue(e.value)
86
86
  }, null, 6));
87
87
  }
88
88
  });
89
- function Se(t) {
90
- return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
89
+ function Se(o) {
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(t) {
93
- return t !== null && typeof t == "object" && !Array.isArray(t);
92
+ function Me(o) {
93
+ return o !== null && typeof o == "object" && !Array.isArray(o);
94
94
  }
95
- function Be(t = {}, o = {}) {
95
+ function Be(o = {}, t = {}) {
96
96
  const e = {};
97
- for (const n in t)
98
- e[n] = t[n];
99
- for (const n in o) {
100
- const l = t[n], s = o[n];
97
+ for (const n in o)
98
+ e[n] = o[n];
99
+ for (const n in t) {
100
+ const l = o[n], s = t[n];
101
101
  if (Me(l) && Me(s)) {
102
102
  e[n] = Be(
103
103
  l,
@@ -112,55 +112,55 @@ function Be(t = {}, o = {}) {
112
112
  const Ce = "q-defaults";
113
113
  function ft() {
114
114
  var s, i;
115
- const t = Pe();
116
- if (!t)
117
- throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
- const o = t.type.name ?? t.type.__name;
115
+ const o = Pe();
119
116
  if (!o)
117
+ throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
+ const t = o.type.name ?? o.type.__name;
119
+ if (!t)
120
120
  throw new Error("[Quidgest UI] Could not determine component name");
121
- const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[o];
122
- return k(() => Be(n, l));
121
+ const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
122
+ return g(() => Be(n, l));
123
123
  }
124
- function Re(t) {
125
- if (Se(t))
124
+ function Re(o) {
125
+ if (Se(o))
126
126
  return;
127
- const o = We(), e = V(t), n = k(() => Se(e.value) ? o.value : Be(o.value, e.value));
127
+ const t = We(), e = T(o), n = g(() => Se(e.value) ? t.value : Be(t.value, e.value));
128
128
  Ne(Ce, n);
129
129
  }
130
130
  function We() {
131
- const t = He(Ce, void 0);
132
- if (!t)
131
+ const o = He(Ce, void 0);
132
+ if (!o)
133
133
  throw new Error("[Quidgest UI] Could not find defaults instance");
134
- return t;
134
+ return o;
135
135
  }
136
- function Xe(t) {
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();
136
+ function Xe(o) {
137
+ 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();
138
138
  }
139
- function pt(t, o) {
139
+ function pt(o, t) {
140
140
  var n;
141
- const e = Xe(o);
142
- return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
141
+ const e = Xe(t);
142
+ return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
143
143
  }
144
- function B(t) {
145
- const o = t.setup;
146
- return o && (t.setup = (e, n) => {
144
+ function B(o) {
145
+ const t = o.setup;
146
+ return t && (o.setup = (e, n) => {
147
147
  const l = ft();
148
148
  if (Se(l.value))
149
- return o(e, n);
149
+ return t(e, n);
150
150
  const s = Pe();
151
151
  if (s === null)
152
- return o(e, n);
152
+ return t(e, n);
153
153
  const i = new Proxy(e, {
154
154
  get(a, r) {
155
- var I;
156
- const f = Reflect.get(a, r), q = (I = l.value) == null ? void 0 : I[r];
155
+ var x;
156
+ const f = Reflect.get(a, r), q = (x = l.value) == null ? void 0 : x[r];
157
157
  return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
158
158
  }
159
159
  });
160
- return o(i, n);
161
- }), t;
160
+ return t(i, n);
161
+ }), o;
162
162
  }
163
- const xe = B(ct), mt = ["disabled"], vt = {
163
+ const Ie = B(ct), mt = ["disabled"], vt = {
164
164
  key: 0,
165
165
  class: "q-btn__spinner"
166
166
  }, ht = { class: "q-btn__content" }, yt = /* @__PURE__ */ L({
@@ -179,12 +179,12 @@ const xe = B(ct), mt = ["disabled"], vt = {
179
179
  class: { default: void 0 }
180
180
  },
181
181
  emits: ["click"],
182
- setup(t, { emit: o }) {
183
- const e = t, n = o, l = k(() => e.disabled || e.loading);
182
+ setup(o, { emit: t }) {
183
+ const e = o, n = t, l = g(() => e.disabled || e.loading);
184
184
  function s(a) {
185
185
  l.value || n("click", a);
186
186
  }
187
- const i = k(() => {
187
+ const i = g(() => {
188
188
  const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
189
189
  return [
190
190
  "q-btn",
@@ -207,7 +207,7 @@ const xe = B(ct), mt = ["disabled"], vt = {
207
207
  onClick: pe(s, ["stop", "prevent"])
208
208
  }, [
209
209
  a.loading ? (u(), v("div", vt, [
210
- z(m(xe), { size: 20 })
210
+ z(m(Ie), { size: 20 })
211
211
  ])) : $("", !0),
212
212
  A("span", ht, [
213
213
  a.iconOnRight ? (u(), v(te, { key: 0 }, [
@@ -228,9 +228,9 @@ const xe = B(ct), mt = ["disabled"], vt = {
228
228
  size: { default: void 0 },
229
229
  class: { default: void 0 }
230
230
  },
231
- setup(t) {
232
- const o = t, e = k(() => {
233
- switch (o.type) {
231
+ setup(o) {
232
+ const t = o, e = g(() => {
233
+ switch (t.type) {
234
234
  case "svg":
235
235
  return Je;
236
236
  case "font":
@@ -241,10 +241,10 @@ const xe = B(ct), mt = ["disabled"], vt = {
241
241
  return;
242
242
  }
243
243
  });
244
- return (n, l) => (u(), x(Ke(e.value), {
245
- class: C(o.class),
246
- icon: o.icon,
247
- size: o.size
244
+ return (n, l) => (u(), I(Ke(e.value), {
245
+ class: C(t.class),
246
+ icon: t.icon,
247
+ size: t.size
248
248
  }, null, 8, ["class", "icon", "size"]));
249
249
  }
250
250
  }), gt = /* @__PURE__ */ L({
@@ -256,12 +256,12 @@ const xe = B(ct), mt = ["disabled"], vt = {
256
256
  size: { default: void 0 },
257
257
  class: { default: void 0 }
258
258
  },
259
- setup(t) {
260
- const o = t, e = k(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = k(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = k(() => ({
261
- "font-size": o.size !== void 0 ? `${o.size}px` : void 0
259
+ setup(o) {
260
+ 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(() => ({
261
+ "font-size": t.size !== void 0 ? `${t.size}px` : void 0
262
262
  }));
263
263
  return (s, i) => (u(), v("i", {
264
- class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
264
+ class: C(["q-icon", "q-icon__font", e.value, n.value, t.class]),
265
265
  style: ue(l.value)
266
266
  }, null, 6));
267
267
  }
@@ -272,32 +272,32 @@ const xe = B(ct), mt = ["disabled"], vt = {
272
272
  size: {},
273
273
  class: {}
274
274
  },
275
- setup(t) {
276
- const o = t, e = k(() => ({
277
- "font-size": o.size !== void 0 ? `${o.size}px` : void 0
275
+ setup(o) {
276
+ const t = o, e = g(() => ({
277
+ "font-size": t.size !== void 0 ? `${t.size}px` : void 0
278
278
  }));
279
279
  return (n, l) => (u(), v("img", {
280
- src: o.icon,
281
- class: C(["q-icon", "q-icon__img", o.class]),
280
+ src: t.icon,
281
+ class: C(["q-icon", "q-icon__img", t.class]),
282
282
  style: ue(e.value)
283
283
  }, null, 14, _t));
284
284
  }
285
285
  }), ye = {}, wt = L({
286
286
  name: "InlineSvg",
287
287
  emits: {
288
- loaded: (t) => typeof t == "object",
288
+ loaded: (o) => typeof o == "object",
289
289
  unloaded: () => !0,
290
- error: (t) => typeof t == "object"
290
+ error: (o) => typeof o == "object"
291
291
  },
292
292
  inheritAttrs: !1,
293
293
  render() {
294
294
  if (!this.svgElSource)
295
295
  return null;
296
- const t = this.getSvgContent(this.svgElSource);
297
- if (!t)
296
+ const o = this.getSvgContent(this.svgElSource);
297
+ if (!o)
298
298
  return Ae("div", this.$attrs);
299
- const o = {};
300
- return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, Ae("svg", o);
299
+ const t = {};
300
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Ae("svg", t);
301
301
  },
302
302
  props: {
303
303
  /**
@@ -348,30 +348,30 @@ const xe = B(ct), mt = ["disabled"], vt = {
348
348
  await this.getSource(this.src);
349
349
  },
350
350
  methods: {
351
- copySvgAttrs(t, o) {
352
- const e = o.attributes;
351
+ copySvgAttrs(o, t) {
352
+ const e = t.attributes;
353
353
  if (e)
354
354
  for (const n of e)
355
- t[n.name] = n.value;
355
+ o[n.name] = n.value;
356
356
  },
357
- copyComponentAttrs(t, o) {
358
- for (const [e, n] of Object.entries(o))
359
- n !== !1 && n !== null && n !== void 0 && (t[e] = n);
357
+ copyComponentAttrs(o, t) {
358
+ for (const [e, n] of Object.entries(t))
359
+ n !== !1 && n !== null && n !== void 0 && (o[e] = n);
360
360
  },
361
- getSvgContent(t) {
362
- 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)), $t(t, this.title)), t);
361
+ getSvgContent(o) {
362
+ return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), $t(o, this.title)), o);
363
363
  },
364
364
  /**
365
365
  * Get svgElSource
366
366
  * @param {string} src
367
367
  */
368
- async getSource(t) {
368
+ async getSource(o) {
369
369
  try {
370
- ye[t] || (ye[t] = qt(this.download(t))), this.svgElSource && ye[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
371
- const o = await ye[t];
372
- this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
373
- } catch (o) {
374
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[t], this.$emit("error", o);
370
+ ye[o] || (ye[o] = qt(this.download(o))), this.svgElSource && ye[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
371
+ const t = await ye[o];
372
+ this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
373
+ } catch (t) {
374
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[o], this.$emit("error", t);
375
375
  }
376
376
  },
377
377
  /**
@@ -379,45 +379,45 @@ const xe = B(ct), mt = ["disabled"], vt = {
379
379
  * @param {string} url
380
380
  * @returns {PromiseWithState<Element>}
381
381
  */
382
- async download(t) {
383
- const o = await fetch(t);
384
- if (!o.ok)
382
+ async download(o) {
383
+ const t = await fetch(o);
384
+ if (!t.ok)
385
385
  throw new Error("Error loading SVG");
386
- const e = await o.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
386
+ const e = await t.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
387
387
  if (!s)
388
388
  throw new Error("Loaded file is not a valid SVG");
389
389
  return s;
390
390
  }
391
391
  },
392
392
  watch: {
393
- src(t) {
394
- this.getSource(t);
393
+ src(o) {
394
+ this.getSource(o);
395
395
  }
396
396
  },
397
397
  expose: []
398
398
  });
399
- function $t(t, o) {
400
- const e = t.getElementsByTagName("title");
399
+ function $t(o, t) {
400
+ const e = o.getElementsByTagName("title");
401
401
  if (e.length)
402
- e[0].textContent = o;
402
+ e[0].textContent = t;
403
403
  else {
404
404
  const n = document.createElementNS("http://www.w3.org/2000/svg", "title");
405
- n.textContent = o, t.insertBefore(n, t.firstChild);
405
+ n.textContent = t, o.insertBefore(n, o.firstChild);
406
406
  }
407
407
  }
408
- function qt(t) {
409
- if (t.getIsPending)
410
- return t;
411
- let o = !0;
412
- const e = t.then(
413
- (n) => (o = !1, n),
408
+ function qt(o) {
409
+ if (o.getIsPending)
410
+ return o;
411
+ let t = !0;
412
+ const e = o.then(
413
+ (n) => (t = !1, n),
414
414
  (n) => {
415
- throw o = !1, n;
415
+ throw t = !1, n;
416
416
  }
417
417
  );
418
- return e.getIsPending = () => o, e;
418
+ return e.getIsPending = () => t, e;
419
419
  }
420
- const xt = /* @__PURE__ */ L({
420
+ const It = /* @__PURE__ */ L({
421
421
  __name: "QIconSvg",
422
422
  props: {
423
423
  icon: {},
@@ -426,8 +426,8 @@ const xt = /* @__PURE__ */ L({
426
426
  class: { default: void 0 }
427
427
  },
428
428
  emits: ["loaded", "unloaded"],
429
- setup(t, { emit: o }) {
430
- const e = t, n = o, l = k(() => ({
429
+ setup(o, { emit: t }) {
430
+ const e = o, n = t, l = g(() => ({
431
431
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
432
432
  }));
433
433
  function s(a) {
@@ -436,7 +436,7 @@ const xt = /* @__PURE__ */ L({
436
436
  function i() {
437
437
  n("unloaded");
438
438
  }
439
- return (a, r) => (u(), x(m(wt), {
439
+ return (a, r) => (u(), I(m(wt), {
440
440
  class: C(["q-icon", "q-icon__svg", e.class]),
441
441
  src: e.bundle,
442
442
  symbol: e.icon,
@@ -445,31 +445,31 @@ const xt = /* @__PURE__ */ L({
445
445
  onUnloaded: i
446
446
  }, null, 8, ["class", "src", "symbol", "style"]));
447
447
  }
448
- }), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(xt);
449
- function It(t) {
450
- return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
448
+ }), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(It);
449
+ function xt(o) {
450
+ return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(o);
451
451
  }
452
- function Lt(t) {
453
- const o = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
454
- if (o) {
455
- const e = parseInt(o[1], 10), n = parseInt(o[2], 10), l = parseInt(o[3], 10);
452
+ function Lt(o) {
453
+ const t = o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
454
+ if (t) {
455
+ const e = parseInt(t[1], 10), n = parseInt(t[2], 10), l = parseInt(t[3], 10);
456
456
  return { r: e, g: n, b: l };
457
457
  }
458
458
  }
459
- function et(t) {
460
- if (It(t)) {
461
- t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
462
- const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
463
- return { r: o, g: e, b: n };
459
+ function et(o) {
460
+ if (xt(o)) {
461
+ o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
462
+ const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), n = parseInt(o.slice(5, 7), 16);
463
+ return { r: t, g: e, b: n };
464
464
  } else {
465
- const o = Lt(t);
466
- if (o)
467
- return o;
465
+ const t = Lt(o);
466
+ if (t)
467
+ return t;
468
468
  }
469
469
  throw new Error("Invalid color format");
470
470
  }
471
- function St(t) {
472
- const o = t.r / 255, e = t.g / 255, n = t.b / 255, l = Math.max(o, e, n), s = Math.min(o, e, n);
471
+ function St(o) {
472
+ const t = o.r / 255, e = o.g / 255, n = o.b / 255, l = Math.max(t, e, n), s = Math.min(t, e, n);
473
473
  let i = 0, a;
474
474
  const r = (l + s) / 2;
475
475
  if (l === s)
@@ -477,14 +477,14 @@ function St(t) {
477
477
  else {
478
478
  const f = l - s;
479
479
  switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
480
- case o:
480
+ case t:
481
481
  i = (e - n) / f + (e < n ? 6 : 0);
482
482
  break;
483
483
  case e:
484
- i = (n - o) / f + 2;
484
+ i = (n - t) / f + 2;
485
485
  break;
486
486
  case n:
487
- i = (o - e) / f + 4;
487
+ i = (t - e) / f + 4;
488
488
  break;
489
489
  }
490
490
  i /= 6;
@@ -495,10 +495,10 @@ function St(t) {
495
495
  l: Math.round(r * 100)
496
496
  };
497
497
  }
498
- function Bt(t) {
499
- return t > 50 ? "#000" : "#fff";
498
+ function Bt(o) {
499
+ return o > 50 ? "#000" : "#fff";
500
500
  }
501
- const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Tt = { class: "q-badge__content" }, Vt = {
501
+ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Vt = { class: "q-badge__content" }, Tt = {
502
502
  remove: {
503
503
  icon: "close"
504
504
  }
@@ -509,23 +509,23 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
509
509
  variant: { default: "tonal" },
510
510
  removable: { type: Boolean },
511
511
  pill: { type: Boolean },
512
- icons: { default: () => Vt }
512
+ internals: { default: () => ({ icons: Tt }) }
513
513
  },
514
514
  emits: ["click:remove"],
515
- setup(t, { emit: o }) {
516
- const e = t, n = o, l = k(
515
+ setup(o, { emit: t }) {
516
+ const e = o, n = t, l = g(
517
517
  () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
518
- ), s = k(() => {
518
+ ), s = g(() => {
519
519
  const r = l.value ? `q-badge--${e.color}` : void 0;
520
520
  return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
521
- }), i = k(() => {
521
+ }), i = g(() => {
522
522
  let r, f;
523
523
  if (!l.value)
524
524
  if (r = e.color, e.variant === "tonal")
525
525
  f = e.color;
526
526
  else {
527
- const q = et(r), I = St(q);
528
- f = Bt(I.l);
527
+ const q = et(r), x = St(q);
528
+ f = Bt(x.l);
529
529
  }
530
530
  return {
531
531
  "--q-badge-color": r,
@@ -541,17 +541,17 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
541
541
  style: ue(i.value)
542
542
  }, [
543
543
  Ct,
544
- A("div", Tt, [
544
+ A("div", Vt, [
545
545
  y(r.$slots, "default"),
546
- e.removable ? (u(), x(m(de), {
546
+ e.removable ? (u(), I(m(de), {
547
547
  key: 0,
548
548
  class: "q-badge__remove",
549
549
  borderless: "",
550
550
  tabindex: "0",
551
551
  onClick: a
552
552
  }, {
553
- default: _(() => [
554
- z(m(F), W(ie(e.icons.remove)), null, 16)
553
+ default: k(() => [
554
+ z(m(F), G(se(e.internals.icons.remove)), null, 16)
555
555
  ]),
556
556
  _: 1
557
557
  })) : $("", !0)
@@ -566,22 +566,22 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
566
566
  elevated: { type: Boolean },
567
567
  class: { default: void 0 }
568
568
  },
569
- setup(t) {
570
- const o = t;
569
+ setup(o) {
570
+ const t = o;
571
571
  return Re({
572
572
  QButton: {
573
573
  bStyle: "secondary",
574
- disabled: ze(o, "disabled"),
575
- borderless: ze(o, "borderless"),
574
+ disabled: ze(t, "disabled"),
575
+ borderless: ze(t, "borderless"),
576
576
  elevated: !1
577
577
  }
578
578
  }), (e, n) => (u(), v("div", {
579
579
  class: C([
580
580
  "q-btn-group",
581
581
  {
582
- "q-btn-group--elevated": o.elevated
582
+ "q-btn-group--elevated": t.elevated
583
583
  },
584
- o.class
584
+ t.class
585
585
  ])
586
586
  }, [
587
587
  y(e.$slots, "default")
@@ -601,27 +601,27 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
601
601
  modelModifiers: {}
602
602
  }),
603
603
  emits: ["update:modelValue"],
604
- setup(t) {
605
- const o = t, e = ee(t, "modelValue");
604
+ setup(o) {
605
+ const t = o, e = ee(o, "modelValue");
606
606
  function n(l) {
607
- e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
607
+ e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
608
608
  }
609
- return (l, s) => (u(), x(m(tt), {
609
+ return (l, s) => (u(), I(m(tt), {
610
610
  "b-style": "secondary",
611
- class: C(o.class),
612
- disabled: o.disabled,
613
- borderless: o.borderless,
614
- elevated: o.elevated
611
+ class: C(t.class),
612
+ disabled: t.disabled,
613
+ borderless: t.borderless,
614
+ elevated: t.elevated
615
615
  }, {
616
- default: _(() => [
617
- (u(!0), v(te, null, we(o.options, (i) => (u(), x(m(de), {
616
+ default: k(() => [
617
+ (u(!0), v(te, null, we(t.options, (i) => (u(), I(m(de), {
618
618
  key: i.key,
619
619
  title: i.title,
620
620
  label: i.label,
621
621
  active: e.value === i.key,
622
622
  onClick: () => n(i)
623
623
  }, {
624
- default: _(() => [
624
+ default: k(() => [
625
625
  y(l.$slots, i.key)
626
626
  ]),
627
627
  _: 2
@@ -639,7 +639,8 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
639
639
  itemValue: { default: "key" },
640
640
  itemLabel: { default: "label" },
641
641
  disabled: { type: Boolean },
642
- class: { default: void 0 }
642
+ class: { default: void 0 },
643
+ selectable: { type: Boolean }
643
644
  }, {
644
645
  modelValue: {
645
646
  type: [String, Number, Boolean, Symbol]
@@ -647,10 +648,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
647
648
  modelModifiers: {}
648
649
  }),
649
650
  emits: ["update:modelValue"],
650
- setup(t, { expose: o }) {
651
- const e = t, n = ee(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
652
- (p) => e.items.some((g) => g.group === p.id)
653
- ) : [{ id: "", title: "" }]), a = V(null);
651
+ setup(o, { expose: t }) {
652
+ const e = o, n = ee(o, "modelValue"), l = T(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
653
+ (p) => e.items.some((_) => _.group === p.id)
654
+ ) : [{ id: "", title: "" }]), a = T(null);
654
655
  function r(p) {
655
656
  n.value = p;
656
657
  }
@@ -660,14 +661,14 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
660
661
  function q() {
661
662
  l.value = !1;
662
663
  }
663
- function I(p) {
664
+ function x(p) {
664
665
  var h;
665
666
  if ((h = a.value) != null && h.contains(p.relatedTarget))
666
667
  return;
667
- let g;
668
- n.value ? g = e.items.findIndex((U) => U[e.itemValue] === n.value) : g = G();
668
+ let _;
669
+ n.value ? _ = e.items.findIndex((U) => U[e.itemValue] === n.value) : _ = R();
669
670
  const c = l.value;
670
- S(g, c);
671
+ S(_, c);
671
672
  }
672
673
  function M(p) {
673
674
  switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
@@ -692,86 +693,86 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
692
693
  S(H(p));
693
694
  break;
694
695
  case "first":
695
- S(G());
696
+ S(R());
696
697
  break;
697
698
  case "last":
698
699
  S(O());
699
700
  break;
700
701
  }
701
702
  }
702
- function S(p, g = !1) {
703
+ function S(p, _ = !1) {
703
704
  var h;
704
- (h = T()[p]) == null || h.focus({ preventScroll: g });
705
+ (h = V()[p]) == null || h.focus({ preventScroll: _ });
705
706
  }
706
- function T() {
707
- var g;
708
- const p = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
707
+ function V() {
708
+ var _;
709
+ const p = (_ = a.value) == null ? void 0 : _.querySelectorAll("li");
709
710
  return p ? Array.from(p) : [];
710
711
  }
711
712
  function Y(p) {
712
- return T()[p];
713
+ return V()[p];
713
714
  }
714
715
  function oe() {
715
- return T().indexOf(document.activeElement);
716
+ return V().indexOf(document.activeElement);
716
717
  }
717
- function G() {
718
- const p = T(), g = p.find((c) => Q(c));
719
- return g ? p.indexOf(g) : -1;
718
+ function R() {
719
+ const p = V(), _ = p.find((c) => Q(c));
720
+ return _ ? p.indexOf(_) : -1;
720
721
  }
721
722
  function O() {
722
- const p = T(), g = [...p].reverse().find((c) => Q(c));
723
- return g ? p.indexOf(g) : -1;
723
+ const p = V(), _ = [...p].reverse().find((c) => Q(c));
724
+ return _ ? p.indexOf(_) : -1;
724
725
  }
725
- function ne(p, g, c) {
726
- return g === "prev" && p === 0 || g === "next" && p === c.length - 1;
726
+ function ne(p, _, c) {
727
+ return _ === "prev" && p === 0 || _ === "next" && p === c.length - 1;
727
728
  }
728
729
  function H(p) {
729
- const g = oe();
730
- return le(g, p);
730
+ const _ = oe();
731
+ return le(_, p);
731
732
  }
732
- function le(p, g) {
733
- const c = T();
734
- if (ne(p, g, c))
733
+ function le(p, _) {
734
+ const c = V();
735
+ if (ne(p, _, c))
735
736
  return p;
736
- let h = p + (g === "next" ? 1 : -1);
737
+ let h = p + (_ === "next" ? 1 : -1);
737
738
  for (; !Q(c[h]); ) {
738
- if (ne(h, g, c))
739
+ if (ne(h, _, c))
739
740
  return p;
740
- h += g === "next" ? 1 : -1;
741
+ h += _ === "next" ? 1 : -1;
741
742
  }
742
743
  return h;
743
744
  }
744
745
  function Q(p) {
745
746
  return p.tabIndex === -2;
746
747
  }
747
- function R(p) {
748
- return p ? e.items.filter((g) => g.group === p) : e.items;
748
+ function W(p) {
749
+ return p ? e.items.filter((_) => _.group === p) : e.items;
749
750
  }
750
- return o({
751
+ return t({
751
752
  focusItem: S,
752
753
  getItem: Y,
753
754
  getAdjacentItemIndex: le,
754
- getFirstFocusableItemIndex: G,
755
+ getFirstFocusableItemIndex: R,
755
756
  getLastFocusableItemIndex: O
756
- }), (p, g) => (u(), x(Ke(s.value), {
757
+ }), (p, _) => (u(), I(Ke(s.value), {
757
758
  ref_key: "listRef",
758
759
  ref: a,
759
760
  class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
760
761
  role: "listbox",
761
762
  tabindex: e.disabled ? -1 : 0,
762
- onFocus: I,
763
+ onFocus: x,
763
764
  onMousedown: f,
764
765
  onMouseup: q,
765
766
  onKeydown: M
766
767
  }, {
767
- default: _(() => [
768
- (u(!0), v(te, null, we(i.value, (c) => (u(), x(m(nt), {
768
+ default: k(() => [
769
+ (u(!0), v(te, null, we(i.value, (c) => (u(), I(m(nt), {
769
770
  key: c.id,
770
771
  id: c.id,
771
772
  title: i.value.length === 1 ? void 0 : c.title
772
773
  }, {
773
- default: _(() => [
774
- (u(!0), v(te, null, we(R(c.id), (h) => (u(), x(m(ot), {
774
+ default: k(() => [
775
+ (u(!0), v(te, null, we(W(c.id), (h) => (u(), I(m(ot), {
775
776
  key: h[e.itemValue],
776
777
  value: h[e.itemValue],
777
778
  label: h[e.itemLabel],
@@ -779,10 +780,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
779
780
  icon: h.icon,
780
781
  disabled: e.disabled || c.disabled || h.disabled,
781
782
  highlighted: e.highlighted === h[e.itemValue],
782
- selected: n.value === h[e.itemValue],
783
+ selected: p.selectable && n.value === h[e.itemValue],
783
784
  onSelect: r
784
785
  }, {
785
- default: _(() => [
786
+ default: k(() => [
786
787
  y(p.$slots, "item", { item: h })
787
788
  ]),
788
789
  _: 2
@@ -796,8 +797,8 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
796
797
  }
797
798
  });
798
799
  let Ft = 0;
799
- function ve(t) {
800
- return t || `uid-${++Ft}`;
800
+ function ve(o) {
801
+ return o || `uid-${++Ft}`;
801
802
  }
802
803
  const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
803
804
  key: 0,
@@ -817,13 +818,13 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
817
818
  icon: { default: void 0 },
818
819
  selected: { type: Boolean },
819
820
  highlighted: { type: Boolean },
820
- icons: { default: () => Kt },
821
821
  disabled: { type: Boolean },
822
- description: { default: void 0 }
822
+ description: { default: void 0 },
823
+ internals: { default: () => ({ icons: Kt }) }
823
824
  },
824
825
  emits: ["select"],
825
- setup(t, { emit: o }) {
826
- const e = t, n = o, l = ve();
826
+ setup(o, { emit: t }) {
827
+ const e = o, n = t, l = ve();
827
828
  function s() {
828
829
  e.disabled || n("select", e.value);
829
830
  }
@@ -851,17 +852,17 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
851
852
  A("div", Ut, [
852
853
  A("div", Pt, [
853
854
  y(a.$slots, "default", {}, () => [
854
- e.icon ? (u(), x(m(F), W(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
855
+ e.icon ? (u(), I(m(F), G(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
855
856
  me(" " + N(e.label), 1)
856
857
  ])
857
858
  ]),
858
859
  e.description ? (u(), v("div", Nt, [
859
- z(m(F), W(ie(e.icons.description)), null, 16),
860
+ z(m(F), G(se(e.internals.icons.description)), null, 16),
860
861
  A("span", null, N(e.description), 1)
861
862
  ])) : $("", !0)
862
863
  ]),
863
864
  A("div", Ht, [
864
- e.selected ? (u(), x(m(F), re({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
865
+ e.selected ? (u(), I(m(F), re({ key: 0 }, e.internals.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
865
866
  ])
866
867
  ], 42, Ot));
867
868
  }
@@ -871,26 +872,26 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
871
872
  id: {},
872
873
  title: { default: "" }
873
874
  },
874
- setup(t) {
875
- const o = t, e = ve();
875
+ setup(o) {
876
+ const t = o, e = ve();
876
877
  return (n, l) => (u(), v("ul", {
877
878
  class: "q-list-item-group",
878
879
  role: "group",
879
- "data-key": o.id,
880
- "aria-labelledby": o.title ? m(e) : void 0
880
+ "data-key": t.id,
881
+ "aria-labelledby": t.title ? m(e) : void 0
881
882
  }, [
882
- o.title ? (u(), v("li", {
883
+ t.title ? (u(), v("li", {
883
884
  key: 0,
884
885
  id: m(e),
885
886
  class: "q-list-item-group__title",
886
887
  role: "presentation"
887
- }, N(o.title), 9, Rt)) : $("", !0),
888
+ }, N(t.title), 9, Rt)) : $("", !0),
888
889
  y(n.$slots, "default")
889
890
  ], 8, Gt));
890
891
  }
891
- }), Te = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
892
- function Xt(t, o, e, n) {
893
- const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), I = Jt(q, f, l), M = Zt(I, a, f);
892
+ }), Ve = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
893
+ function Xt(o, t, e, n) {
894
+ const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), x = Jt(q, f, l), M = Zt(x, a, f);
894
895
  let E;
895
896
  if (n != null && n.arrow) {
896
897
  if (!r)
@@ -899,8 +900,8 @@ function Xt(t, o, e, n) {
899
900
  }
900
901
  return { overlayCoords: M, arrowCoords: E, placement: f };
901
902
  }
902
- function Yt(t, o, e, n) {
903
- const l = Fe(t, o, e, n);
903
+ function Yt(o, t, e, n) {
904
+ const l = Fe(o, t, e, n);
904
905
  if (Oe(l)) {
905
906
  const s = ge(e), a = {
906
907
  top: "bottom",
@@ -908,8 +909,8 @@ function Yt(t, o, e, n) {
908
909
  left: "right",
909
910
  right: "left"
910
911
  }[s], r = Fe(
911
- t,
912
912
  o,
913
+ t,
913
914
  a,
914
915
  n
915
916
  );
@@ -920,110 +921,110 @@ function Yt(t, o, e, n) {
920
921
  }
921
922
  return e;
922
923
  }
923
- function Zt(t, o, e) {
924
- const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...t };
925
- return n === "x" ? s.x = l(t.x, ke, window.innerWidth - o.width - ke) : s.y = l(t.y, ke, window.innerHeight - o.height - ke), s;
924
+ function Zt(o, t, e) {
925
+ const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...o };
926
+ return n === "x" ? s.x = l(o.x, ke, window.innerWidth - t.width - ke) : s.y = l(o.y, ke, window.innerHeight - t.height - ke), s;
926
927
  }
927
- function Jt(t, o, e) {
928
- const n = ge(o);
928
+ function Jt(o, t, e) {
929
+ const n = ge(t);
929
930
  return {
930
- x: t.x + (n === "left" ? -e : n === "right" ? e : 0),
931
- y: t.y + (n === "top" ? -e : n === "bottom" ? e : 0)
931
+ x: o.x + (n === "left" ? -e : n === "right" ? e : 0),
932
+ y: o.y + (n === "top" ? -e : n === "bottom" ? e : 0)
932
933
  };
933
934
  }
934
- function eo(t, o, e, n, l) {
935
+ function eo(o, t, e, n, l) {
935
936
  if ($e(l) === "y") {
936
- const i = o.top + o.height / 2, a = t.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
937
+ const i = t.top + t.height / 2, a = o.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
937
938
  if (f > 0 && f < e.height - n.height)
938
939
  return {
939
940
  y: f
940
941
  };
941
942
  } else {
942
- const i = o.left + o.width / 2, a = t.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
943
+ const i = t.left + t.width / 2, a = o.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
943
944
  if (f > 0 && f < e.width - n.width)
944
945
  return {
945
946
  x: f
946
947
  };
947
948
  }
948
949
  }
949
- function to(t, o, e) {
950
- const [n, l] = e.split("-"), s = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2;
950
+ function to(o, t, e) {
951
+ const [n, l] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, i = o.y + o.height / 2 - t.height / 2;
951
952
  let a;
952
953
  switch (n) {
953
954
  case "top":
954
- a = { x: s, y: t.y - o.height };
955
+ a = { x: s, y: o.y - t.height };
955
956
  break;
956
957
  case "bottom":
957
- a = { x: s, y: t.y + t.height };
958
+ a = { x: s, y: o.y + o.height };
958
959
  break;
959
960
  case "left":
960
- a = { x: t.x - o.width, y: i };
961
+ a = { x: o.x - t.width, y: i };
961
962
  break;
962
963
  case "right":
963
- a = { x: t.x + t.width, y: i };
964
+ a = { x: o.x + o.width, y: i };
964
965
  break;
965
966
  default:
966
967
  throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
967
968
  }
968
969
  if (!l)
969
970
  return a;
970
- const f = $e(e) === "y" ? "height" : "width", q = $e(e), I = t[f] / 2 - o[f] / 2;
971
+ const f = $e(e) === "y" ? "height" : "width", q = $e(e), x = o[f] / 2 - t[f] / 2;
971
972
  switch (l) {
972
973
  case "start":
973
- a[q] -= I;
974
+ a[q] -= x;
974
975
  break;
975
976
  case "end":
976
- a[q] += I;
977
+ a[q] += x;
977
978
  break;
978
979
  default:
979
980
  throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
980
981
  }
981
982
  return a;
982
983
  }
983
- function Fe(t, o, e, n) {
984
+ function Fe(o, t, e, n) {
984
985
  const l = ge(e);
985
986
  let s = 0;
986
987
  switch (l) {
987
988
  case "top":
988
- s = t.top - (o.height + n);
989
+ s = o.top - (t.height + n);
989
990
  break;
990
991
  case "bottom":
991
- s = window.innerHeight - t.bottom - (o.height + n);
992
+ s = window.innerHeight - o.bottom - (t.height + n);
992
993
  break;
993
994
  case "left":
994
- s = t.left - (o.width + n);
995
+ s = o.left - (t.width + n);
995
996
  break;
996
997
  case "right":
997
- s = window.innerWidth - t.right - (o.width + n);
998
+ s = window.innerWidth - o.right - (t.width + n);
998
999
  break;
999
1000
  default:
1000
1001
  throw new Error(`[Quidgest UI] Invalid side value: ${l}`);
1001
1002
  }
1002
1003
  return s;
1003
1004
  }
1004
- function oo(t) {
1005
- return t === "x" ? "y" : "x";
1005
+ function oo(o) {
1006
+ return o === "x" ? "y" : "x";
1006
1007
  }
1007
- function no(t) {
1008
- const o = ge(t);
1009
- return ["left", "right"].includes(o) ? "x" : "y";
1008
+ function no(o) {
1009
+ const t = ge(o);
1010
+ return ["left", "right"].includes(t) ? "x" : "y";
1010
1011
  }
1011
- function $e(t) {
1012
- return oo(no(t));
1012
+ function $e(o) {
1013
+ return oo(no(o));
1013
1014
  }
1014
- function ge(t) {
1015
- const [o] = t.split("-");
1016
- return o;
1015
+ function ge(o) {
1016
+ const [t] = o.split("-");
1017
+ return t;
1017
1018
  }
1018
- function lo(t) {
1019
- const [, o] = t.split("-");
1020
- return o;
1019
+ function lo(o) {
1020
+ const [, t] = o.split("-");
1021
+ return t;
1021
1022
  }
1022
- function Oe(t) {
1023
- return t < 0;
1023
+ function Oe(o) {
1024
+ return o < 0;
1024
1025
  }
1025
- function ao(t) {
1026
- return typeof t == "string" ? document.querySelector(t) : t;
1026
+ function ao(o) {
1027
+ return typeof o == "string" ? document.querySelector(o) : o;
1027
1028
  }
1028
1029
  const so = ["role"], io = /* @__PURE__ */ L({
1029
1030
  inheritAttrs: !1,
@@ -1035,6 +1036,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1035
1036
  attach: { default: "body" },
1036
1037
  inline: { type: Boolean },
1037
1038
  backdropBlur: { type: Boolean },
1039
+ backdropClass: { default: void 0 },
1038
1040
  delay: { default: 500 },
1039
1041
  nonModal: { type: Boolean },
1040
1042
  scrollLock: { type: Boolean },
@@ -1051,8 +1053,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
1051
1053
  modelModifiers: {}
1052
1054
  }),
1053
1055
  emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
1054
- setup(t, { emit: o }) {
1055
- const e = t, n = o, l = ee(t, "modelValue"), s = k(() => [
1056
+ setup(o, { emit: t }) {
1057
+ const e = o, n = t, l = ee(o, "modelValue"), s = g(() => [
1056
1058
  "q-overlay",
1057
1059
  `q-overlay--${ge(a.placement)}`,
1058
1060
  {
@@ -1060,7 +1062,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1060
1062
  "q-overlay--inverted": e.appearance === "inverted"
1061
1063
  },
1062
1064
  e.class
1063
- ]), i = k(() => (l.value || a.animating) && !e.nonModal), a = Qe({
1065
+ ]), i = g(() => (l.value || a.animating) && !e.nonModal), a = Qe({
1064
1066
  animating: !1,
1065
1067
  top: 0,
1066
1068
  left: 0,
@@ -1070,9 +1072,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
1070
1072
  top: void 0,
1071
1073
  left: void 0,
1072
1074
  hidden: !0
1073
- }), f = k(() => a.top !== 0 && a.left !== 0);
1075
+ }), f = g(() => a.top !== 0 && a.left !== 0);
1074
1076
  Z(l, () => a.animating = !0);
1075
- const q = k(() => {
1077
+ const q = g(() => {
1076
1078
  if (e.anchor === void 0)
1077
1079
  return;
1078
1080
  const b = Q(), ce = e.width === "anchor", j = ce ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
@@ -1081,14 +1083,14 @@ const so = ["role"], io = /* @__PURE__ */ L({
1081
1083
  left: `${a.left}px`,
1082
1084
  width: j !== void 0 ? `${j}px` : void 0
1083
1085
  };
1084
- }), I = k(() => {
1086
+ }), x = g(() => {
1085
1087
  if (e.arrow)
1086
1088
  return {
1087
1089
  top: r.top !== void 0 ? `${r.top}px` : void 0,
1088
1090
  left: r.left !== void 0 ? `${r.left}px` : void 0,
1089
1091
  opacity: r.hidden ? 0 : 1
1090
1092
  };
1091
- }), M = V(null), E = V(null);
1093
+ }), M = T(null), E = T(null);
1092
1094
  function S() {
1093
1095
  const b = Q();
1094
1096
  if (!b || !E.value)
@@ -1110,20 +1112,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
1110
1112
  () => e.placement,
1111
1113
  () => J(S)
1112
1114
  );
1113
- let T;
1115
+ let V;
1114
1116
  function Y() {
1115
- G(0);
1117
+ R(0);
1116
1118
  }
1117
1119
  function oe() {
1118
- G(e.delay);
1120
+ R(e.delay);
1119
1121
  }
1120
- function G(b) {
1121
- T || (T = window.setTimeout(() => {
1122
+ function R(b) {
1123
+ V || (V = window.setTimeout(() => {
1122
1124
  l.value = !0;
1123
1125
  }, b));
1124
1126
  }
1125
1127
  function O() {
1126
- if (clearTimeout(T), T = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1128
+ if (clearTimeout(V), V = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1127
1129
  const b = Q();
1128
1130
  b == null || b.focus();
1129
1131
  }
@@ -1139,11 +1141,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
1139
1141
  function Q() {
1140
1142
  return e.anchor ? ao(e.anchor) : null;
1141
1143
  }
1142
- let R;
1144
+ let W;
1143
1145
  function p() {
1144
1146
  const b = Q();
1145
1147
  if (b)
1146
- switch (R = new MutationObserver(S), R.observe(b, {
1148
+ switch (W = new MutationObserver(S), W.observe(b, {
1147
1149
  attributes: !1,
1148
1150
  childList: !0,
1149
1151
  characterData: !0,
@@ -1157,10 +1159,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
1157
1159
  break;
1158
1160
  }
1159
1161
  }
1160
- function g() {
1162
+ function _() {
1161
1163
  const b = Q();
1162
1164
  if (b)
1163
- switch (R == null || R.disconnect(), e.trigger) {
1165
+ switch (W == null || W.disconnect(), e.trigger) {
1164
1166
  case "click":
1165
1167
  b.removeEventListener("click", Y);
1166
1168
  break;
@@ -1185,7 +1187,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1185
1187
  return (b = E.value) == null ? void 0 : b.focus();
1186
1188
  });
1187
1189
  }
1188
- function se() {
1190
+ function ie() {
1189
1191
  h(), e.spy && (clearTimeout(U), U = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1190
1192
  }
1191
1193
  function _e() {
@@ -1194,20 +1196,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
1194
1196
  return je(() => {
1195
1197
  J(p);
1196
1198
  }), at(() => {
1197
- g(), se();
1199
+ _(), ie();
1198
1200
  }), Z(
1199
1201
  l,
1200
1202
  (b) => {
1201
- J(() => b ? K() : se());
1203
+ J(() => b ? K() : ie());
1202
1204
  },
1203
1205
  { immediate: !0 }
1204
- ), (b, ce) => (u(), x(st, {
1206
+ ), (b, ce) => (u(), I(st, {
1205
1207
  disabled: !l.value && !a.animating || e.inline,
1206
1208
  to: e.attach
1207
1209
  }, [
1208
1210
  i.value ? (u(), v("div", {
1209
1211
  key: 0,
1210
1212
  class: C([
1213
+ e.backdropClass,
1211
1214
  "q-overlay__underlay",
1212
1215
  { "q-overlay__underlay--blur": e.backdropBlur }
1213
1216
  ])
@@ -1217,7 +1220,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1217
1220
  appear: "",
1218
1221
  onLeave: le
1219
1222
  }, {
1220
- default: _(() => [
1223
+ default: k(() => [
1221
1224
  l.value ? (u(), v("div", {
1222
1225
  key: 0,
1223
1226
  class: C(s.value),
@@ -1239,7 +1242,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1239
1242
  ref: M,
1240
1243
  role: "presentation",
1241
1244
  class: "q-overlay__arrow",
1242
- style: ue(I.value)
1245
+ style: ue(x.value)
1243
1246
  }, null, 4)) : $("", !0),
1244
1247
  y(b.$slots, "default")
1245
1248
  ], 16, so)
@@ -1274,9 +1277,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
1274
1277
  required: { type: Boolean },
1275
1278
  class: { default: void 0 }
1276
1279
  },
1277
- setup(t, { expose: o }) {
1278
- const e = t, n = ve(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
1279
- return o({
1280
+ setup(o, { expose: t }) {
1281
+ const e = o, n = ve(e.id), l = T(null), s = g(() => e.required && !e.readonly && !e.disabled);
1282
+ return t({
1280
1283
  fieldRef: l
1281
1284
  }), (i, a) => (u(), v("div", {
1282
1285
  id: m(n),
@@ -1318,7 +1321,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1318
1321
  ])) : $("", !0)
1319
1322
  ], 10, ro));
1320
1323
  }
1321
- }), Ie = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1324
+ }), xe = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1322
1325
  inheritAttrs: !1,
1323
1326
  __name: "QTextField",
1324
1327
  props: /* @__PURE__ */ X({
@@ -1338,17 +1341,17 @@ const so = ["role"], io = /* @__PURE__ */ L({
1338
1341
  modelModifiers: {}
1339
1342
  }),
1340
1343
  emits: ["update:modelValue"],
1341
- setup(t, { expose: o }) {
1342
- const e = t, n = ee(t, "modelValue"), l = ve(e.id), s = V(null), i = V(null), a = k(
1344
+ setup(o, { expose: t }) {
1345
+ const e = o, n = ee(o, "modelValue"), l = ve(e.id), s = T(null), i = T(null), a = g(
1343
1346
  () => e.readonly || e.disabled ? "" : e.placeholder
1344
1347
  );
1345
- return o({
1346
- fieldRef: k(() => {
1348
+ return t({
1349
+ fieldRef: g(() => {
1347
1350
  var r;
1348
1351
  return (r = s.value) == null ? void 0 : r.fieldRef;
1349
1352
  }),
1350
1353
  inputRef: i
1351
- }), (r, f) => (u(), x(m(Ie), {
1354
+ }), (r, f) => (u(), I(m(xe), {
1352
1355
  ref_key: "fieldRef",
1353
1356
  ref: s,
1354
1357
  class: C(["q-text-field", e.class]),
@@ -1359,13 +1362,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
1359
1362
  disabled: e.disabled,
1360
1363
  required: e.required
1361
1364
  }, qe({
1362
- "label.prepend": _(() => [
1365
+ "label.prepend": k(() => [
1363
1366
  y(r.$slots, "label.prepend")
1364
1367
  ]),
1365
- "label.append": _(() => [
1368
+ "label.append": k(() => [
1366
1369
  y(r.$slots, "label.append")
1367
1370
  ]),
1368
- default: _(() => [
1371
+ default: k(() => [
1369
1372
  dt(A("input", re({
1370
1373
  "onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
1371
1374
  ref_key: "inputRef",
@@ -1387,21 +1390,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
1387
1390
  }, [
1388
1391
  r.$slots.prepend ? {
1389
1392
  name: "prepend",
1390
- fn: _(() => [
1393
+ fn: k(() => [
1391
1394
  y(r.$slots, "prepend")
1392
1395
  ]),
1393
1396
  key: "0"
1394
1397
  } : void 0,
1395
1398
  r.$slots.append ? {
1396
1399
  name: "append",
1397
- fn: _(() => [
1400
+ fn: k(() => [
1398
1401
  y(r.$slots, "append")
1399
1402
  ]),
1400
1403
  key: "1"
1401
1404
  } : void 0,
1402
1405
  r.$slots.extras ? {
1403
1406
  name: "extras",
1404
- fn: _(() => [
1407
+ fn: k(() => [
1405
1408
  y(r.$slots, "extras")
1406
1409
  ]),
1407
1410
  key: "2"
@@ -1442,9 +1445,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
1442
1445
  itemLabel: { default: "label" },
1443
1446
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1444
1447
  size: { default: void 0 },
1445
- texts: { default: () => ko },
1446
- icons: { default: () => wo },
1447
- class: { default: void 0 }
1448
+ class: { default: void 0 },
1449
+ internals: { default: () => ({ icons: wo, texts: ko }) }
1448
1450
  }, {
1449
1451
  modelValue: {
1450
1452
  type: [String, Number, Boolean, Symbol]
@@ -1456,54 +1458,54 @@ const so = ["role"], io = /* @__PURE__ */ L({
1456
1458
  searchModifiers: {}
1457
1459
  }),
1458
1460
  emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1459
- setup(t, { expose: o, emit: e }) {
1460
- const n = t, l = e, s = ee(t, "modelValue"), i = ee(t, "open"), a = ee(t, "search"), r = V(void 0), f = V(null), q = V(null), I = V(null), M = V(null);
1461
+ setup(o, { expose: t, emit: e }) {
1462
+ const n = o, l = e, s = ee(o, "modelValue"), i = ee(o, "open"), a = ee(o, "search"), r = T(void 0), f = T(null), q = T(null), x = T(null), M = T(null);
1461
1463
  je(H);
1462
- const E = k(() => n.clearable && !n.readonly && !n.disabled), S = k(() => {
1464
+ const E = g(() => n.clearable && !n.readonly && !n.disabled), S = g(() => {
1463
1465
  var d;
1464
1466
  return n.filterMode === "manual" || !O.value ? n.items : (d = n.items) == null ? void 0 : d.filter(
1465
1467
  (w) => w[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1466
1468
  );
1467
- }), T = k(() => {
1469
+ }), V = g(() => {
1468
1470
  var d;
1469
1471
  return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
1470
- }), Y = k(() => T.value === void 0), oe = k(() => {
1472
+ }), Y = g(() => V.value === void 0), oe = g(() => {
1471
1473
  const d = r.value;
1472
1474
  if (d !== void 0 && S.value[d])
1473
1475
  return S.value[d];
1474
- }), G = k(() => {
1476
+ }), R = g(() => {
1475
1477
  var w;
1476
1478
  if (r.value === void 0)
1477
1479
  return;
1478
1480
  const d = (w = q.value) == null ? void 0 : w.getItem(r.value);
1479
1481
  return d == null ? void 0 : d.id;
1480
- }), O = k(() => {
1482
+ }), O = g(() => {
1481
1483
  var d;
1482
- return a.value.length > 0 && a.value !== ((d = T.value) == null ? void 0 : d[n.itemLabel]);
1484
+ return a.value.length > 0 && a.value !== ((d = V.value) == null ? void 0 : d[n.itemLabel]);
1483
1485
  });
1484
1486
  function ne(d) {
1485
1487
  s.value = d, Q();
1486
1488
  }
1487
1489
  function H() {
1488
1490
  var w;
1489
- const d = ((w = T.value) == null ? void 0 : w[n.itemLabel]) || "";
1491
+ const d = ((w = V.value) == null ? void 0 : w[n.itemLabel]) || "";
1490
1492
  a.value !== d && (a.value = d);
1491
1493
  }
1492
1494
  function le() {
1493
- i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, se());
1495
+ i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, ie());
1494
1496
  }
1495
1497
  function Q() {
1496
1498
  i.value && (l("before-hide"), i.value = !1, r.value = void 0);
1497
1499
  }
1498
- function R() {
1499
- i.value ? Q() : g();
1500
+ function W() {
1501
+ i.value ? Q() : _();
1500
1502
  }
1501
1503
  function p() {
1502
- E.value && (s.value = n.emptyValue, r.value = void 0, se());
1504
+ E.value && (s.value = n.emptyValue, r.value = void 0, ie());
1503
1505
  }
1504
- function g() {
1505
- if (le(), T.value !== void 0) {
1506
- const d = S.value.indexOf(T.value);
1506
+ function _() {
1507
+ if (le(), V.value !== void 0) {
1508
+ const d = S.value.indexOf(V.value);
1507
1509
  d !== -1 && J(() => j(d));
1508
1510
  }
1509
1511
  }
@@ -1550,20 +1552,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
1550
1552
  r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
1551
1553
  }
1552
1554
  function K(d) {
1553
- var fe, Ve, Ee, De;
1554
- const w = ((fe = I == null ? void 0 : I.value) == null ? void 0 : fe.$el) === d.relatedTarget, D = (Ee = (Ve = f == null ? void 0 : f.value) == null ? void 0 : Ve.$el) == null ? void 0 : Ee.contains(d.relatedTarget), P = (De = M == null ? void 0 : M.value) == null ? void 0 : De.contains(d.relatedTarget);
1555
+ var fe, Te, Ee, De;
1556
+ const w = ((fe = x == null ? void 0 : x.value) == null ? void 0 : fe.$el) === d.relatedTarget, D = (Ee = (Te = f == null ? void 0 : f.value) == null ? void 0 : Te.$el) == null ? void 0 : Ee.contains(d.relatedTarget), P = (De = M == null ? void 0 : M.value) == null ? void 0 : De.contains(d.relatedTarget);
1555
1557
  if (w || P || D) {
1556
1558
  d.preventDefault(), d.stopPropagation();
1557
1559
  return;
1558
1560
  }
1559
1561
  Q(), E.value && !a.value && (s.value = n.emptyValue), H();
1560
1562
  }
1561
- function se() {
1563
+ function ie() {
1562
1564
  var d, w;
1563
1565
  (w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
1564
1566
  }
1565
1567
  function _e() {
1566
- se();
1568
+ ie();
1567
1569
  }
1568
1570
  function b() {
1569
1571
  l("show");
@@ -1594,7 +1596,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1594
1596
  (d) => {
1595
1597
  !d && i.value && J(h);
1596
1598
  }
1597
- ), o({
1599
+ ), t({
1598
1600
  triggerEl: f
1599
1601
  }), (d, w) => {
1600
1602
  var D;
@@ -1625,21 +1627,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
1625
1627
  "aria-expanded": i.value,
1626
1628
  "aria-haspopup": "listbox",
1627
1629
  "aria-autocomplete": "list",
1628
- "aria-activedescendant": G.value,
1630
+ "aria-activedescendant": R.value,
1629
1631
  size: n.size,
1630
- onClick: g,
1632
+ onClick: _,
1631
1633
  onFocusout: K,
1632
1634
  onKeydown: pe(c, ["stop"])
1633
1635
  }, qe({
1634
- "label.prepend": _(() => [
1636
+ "label.prepend": k(() => [
1635
1637
  y(d.$slots, "label.prepend")
1636
1638
  ]),
1637
- "label.append": _(() => [
1639
+ "label.append": k(() => [
1638
1640
  y(d.$slots, "label.append")
1639
1641
  ]),
1640
- append: _(() => [
1642
+ append: k(() => [
1641
1643
  y(d.$slots, "append"),
1642
- E.value && a.value ? (u(), x(m(de), {
1644
+ E.value && a.value ? (u(), I(m(de), {
1643
1645
  key: 0,
1644
1646
  class: "q-combobox__clear",
1645
1647
  "b-style": "plain",
@@ -1647,24 +1649,24 @@ const so = ["role"], io = /* @__PURE__ */ L({
1647
1649
  tabindex: "-1",
1648
1650
  onClick: p
1649
1651
  }, {
1650
- default: _(() => [
1651
- z(m(F), W(ie(n.icons.clear)), null, 16)
1652
+ default: k(() => [
1653
+ z(m(F), G(se(n.internals.icons.clear)), null, 16)
1652
1654
  ]),
1653
1655
  _: 1
1654
1656
  })) : $("", !0),
1655
- n.readonly ? $("", !0) : (u(), x(m(de), {
1657
+ n.readonly ? $("", !0) : (u(), I(m(de), {
1656
1658
  key: 1,
1657
1659
  ref_key: "toggleRef",
1658
- ref: I,
1660
+ ref: x,
1659
1661
  class: "q-combobox__chevron",
1660
1662
  "b-style": "plain",
1661
1663
  borderless: "",
1662
1664
  tabindex: "-1",
1663
1665
  disabled: n.disabled,
1664
- onMousedown: pe(R, ["stop", "prevent"])
1666
+ onMousedown: pe(W, ["stop", "prevent"])
1665
1667
  }, {
1666
- default: _(() => [
1667
- z(m(F), W(ie(n.icons.chevron)), null, 16)
1668
+ default: k(() => [
1669
+ z(m(F), G(se(n.internals.icons.chevron)), null, 16)
1668
1670
  ]),
1669
1671
  _: 1
1670
1672
  }, 8, ["disabled"]))
@@ -1673,14 +1675,14 @@ const so = ["role"], io = /* @__PURE__ */ L({
1673
1675
  }, [
1674
1676
  d.$slots.prepend ? {
1675
1677
  name: "prepend",
1676
- fn: _(() => [
1678
+ fn: k(() => [
1677
1679
  y(d.$slots, "prepend")
1678
1680
  ]),
1679
1681
  key: "0"
1680
1682
  } : void 0,
1681
1683
  d.$slots.extras ? {
1682
1684
  name: "extras",
1683
- fn: _(() => [
1685
+ fn: k(() => [
1684
1686
  y(d.$slots, "extras")
1685
1687
  ]),
1686
1688
  key: "1"
@@ -1699,7 +1701,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1699
1701
  onEnter: b,
1700
1702
  onLeave: ce
1701
1703
  }, {
1702
- default: _(() => {
1704
+ default: k(() => {
1703
1705
  var P;
1704
1706
  return [
1705
1707
  A("div", {
@@ -1712,12 +1714,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
1712
1714
  }, [
1713
1715
  y(d.$slots, "body.prepend"),
1714
1716
  n.loading ? (u(), v("div", go, [
1715
- z(m(xe), { size: 24 })
1716
- ])) : S.value.length ? (u(), x(m(Te), {
1717
+ z(m(Ie), { size: 24 })
1718
+ ])) : S.value.length ? (u(), I(m(Ve), {
1717
1719
  key: 1,
1718
1720
  ref_key: "listRef",
1719
1721
  ref: q,
1720
1722
  class: "q-select__items",
1723
+ selectable: "",
1721
1724
  modelValue: s.value,
1722
1725
  "onUpdate:modelValue": [
1723
1726
  w[1] || (w[1] = (fe) => s.value = fe),
@@ -1730,11 +1733,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
1730
1733
  "item-value": n.itemValue,
1731
1734
  onMouseup: _e
1732
1735
  }, {
1733
- item: _(({ item: fe }) => [
1736
+ item: k(({ item: fe }) => [
1734
1737
  y(d.$slots, "item", { item: fe })
1735
1738
  ]),
1736
1739
  _: 3
1737
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.texts.noData), 1)),
1740
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.internals.texts.noData), 1)),
1738
1741
  y(d.$slots, "body.append")
1739
1742
  ], 40, bo)
1740
1743
  ];
@@ -1744,10 +1747,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
1744
1747
  ], 64);
1745
1748
  };
1746
1749
  }
1747
- }), qo = B($o), xo = { class: "q-dialog" }, Io = { class: "q-dialog__header" }, Lo = { class: "q-dialog__header-title" }, So = { class: "q-dialog__body" }, Bo = {
1750
+ }), qo = B($o), Io = { class: "q-dialog__header" }, xo = { class: "q-dialog__header-title" }, Lo = { class: "q-dialog__body" }, So = {
1748
1751
  key: 0,
1749
1752
  class: "q-dialog__body-icon"
1750
- }, Co = { class: "q-dialog__body-text" }, To = ["innerHTML"], Vo = { key: 1 }, Eo = { class: "q-dialog__body-actions" }, Do = [
1753
+ }, Bo = { class: "q-dialog__body-text" }, Co = ["innerHTML"], Vo = { key: 1 }, To = { class: "q-dialog__body-actions" }, Eo = [
1751
1754
  {
1752
1755
  id: "button",
1753
1756
  icon: {
@@ -1758,9 +1761,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
1758
1761
  label: "Ok"
1759
1762
  }
1760
1763
  }
1761
- ], Ao = {
1762
- icon: "check-circle-outline",
1763
- type: "svg"
1764
+ ], Do = {
1765
+ icon: "check-circle-outline"
1766
+ }, Ao = {
1767
+ close: {
1768
+ icon: "close"
1769
+ }
1764
1770
  }, zo = /* @__PURE__ */ L({
1765
1771
  __name: "QDialog",
1766
1772
  props: /* @__PURE__ */ X({
@@ -1768,82 +1774,86 @@ const so = ["role"], io = /* @__PURE__ */ L({
1768
1774
  attach: { default: "body" },
1769
1775
  inline: { type: Boolean },
1770
1776
  backdropBlur: { type: Boolean, default: !0 },
1771
- buttons: { default: () => Do },
1772
- dismissible: { type: Boolean, default: !1 },
1777
+ buttons: { default: () => Eo },
1778
+ dismissible: { type: Boolean },
1773
1779
  html: { type: Boolean, default: !0 },
1774
- icon: { default: () => Ao },
1780
+ icon: { default: () => Do },
1775
1781
  id: { default: void 0 },
1776
1782
  title: { default: "" },
1777
- class: { default: void 0 }
1783
+ class: { default: void 0 },
1784
+ internals: { default: () => ({ icons: Ao }) }
1778
1785
  }, {
1779
1786
  modelValue: { type: Boolean },
1780
1787
  modelModifiers: {}
1781
1788
  }),
1782
1789
  emits: ["update:modelValue"],
1783
- setup(t) {
1784
- const o = t, e = ee(t, "modelValue"), n = ve(o.id);
1785
- function l() {
1790
+ setup(o) {
1791
+ const t = o, e = ee(o, "modelValue"), n = ve(t.id), l = g(() => ["q-dialog", t.class]);
1792
+ function s() {
1786
1793
  e.value = !1;
1787
1794
  }
1788
- function s(i) {
1789
- var a;
1790
- (a = i.action) == null || a.call(i), l();
1795
+ function i(a) {
1796
+ var r;
1797
+ (r = a.action) == null || r.call(a), s();
1791
1798
  }
1792
- return (i, a) => (u(), x(m(he), {
1799
+ return (a, r) => (u(), I(m(he), {
1793
1800
  "model-value": e.value,
1794
1801
  id: m(n),
1795
- inline: o.inline,
1796
- attach: o.attach,
1797
- "backdrop-blur": o.backdropBlur,
1802
+ inline: t.inline,
1803
+ attach: t.attach,
1804
+ "backdrop-blur": t.backdropBlur,
1805
+ "backdrop-class": "q-dialog__underlay",
1798
1806
  "scroll-lock": "",
1799
1807
  persistent: ""
1800
1808
  }, {
1801
- default: _(() => [
1802
- A("div", xo, [
1809
+ default: k(() => [
1810
+ A("div", {
1811
+ class: C(l.value)
1812
+ }, [
1803
1813
  A("div", Io, [
1804
- A("span", Lo, N(o.title), 1),
1805
- o.dismissible ? (u(), x(m(de), {
1814
+ A("span", xo, N(t.title), 1),
1815
+ t.dismissible ? (u(), I(m(de), {
1806
1816
  key: 0,
1807
1817
  "b-style": "tertiary",
1808
- onClick: l
1818
+ onClick: s
1809
1819
  }, {
1810
- default: _(() => [
1811
- z(m(F), { icon: "close" })
1820
+ default: k(() => [
1821
+ z(m(F), G(se(t.internals.icons.close)), null, 16)
1812
1822
  ]),
1813
1823
  _: 1
1814
1824
  })) : $("", !0)
1815
1825
  ]),
1816
- y(i.$slots, "body.content", {}, () => [
1817
- A("div", So, [
1818
- y(i.$slots, "body.icon", {}, () => [
1819
- o.icon ? (u(), v("span", Bo, [
1820
- z(m(F), W(ie(o.icon)), null, 16)
1826
+ y(a.$slots, "body.content", {}, () => [
1827
+ A("div", Lo, [
1828
+ y(a.$slots, "body.icon", {}, () => [
1829
+ t.icon ? (u(), v("span", So, [
1830
+ z(m(F), G(se(t.icon)), null, 16)
1821
1831
  ])) : $("", !0)
1822
1832
  ]),
1823
- A("div", Co, [
1824
- o.html ? (u(), v("span", {
1833
+ A("div", Bo, [
1834
+ t.html ? (u(), v("span", {
1825
1835
  key: 0,
1826
- innerHTML: o.text
1827
- }, null, 8, To)) : (u(), v("span", Vo, N(o.text), 1))
1836
+ innerHTML: t.text
1837
+ }, null, 8, Co)) : (u(), v("span", Vo, N(t.text), 1))
1828
1838
  ]),
1829
- y(i.$slots, "body.append")
1839
+ y(a.$slots, "body.append")
1830
1840
  ])
1831
1841
  ]),
1832
- A("div", Eo, [
1833
- (u(!0), v(te, null, we(o.buttons, (r) => (u(), x(m(de), re({ ref_for: !0 }, r.props, {
1834
- key: r.id,
1835
- onClick: () => s(r)
1842
+ A("div", To, [
1843
+ (u(!0), v(te, null, we(t.buttons, (f) => (u(), I(m(de), re({ ref_for: !0 }, f.props, {
1844
+ key: f.id,
1845
+ onClick: () => i(f)
1836
1846
  }), {
1837
- default: _(() => [
1838
- r.icon ? (u(), x(m(F), re({
1847
+ default: k(() => [
1848
+ f.icon ? (u(), I(m(F), re({
1839
1849
  key: 0,
1840
1850
  ref_for: !0
1841
- }, r.icon), null, 16)) : $("", !0)
1851
+ }, f.icon), null, 16)) : $("", !0)
1842
1852
  ]),
1843
1853
  _: 2
1844
1854
  }, 1040, ["onClick"]))), 128))
1845
1855
  ])
1846
- ])
1856
+ ], 2)
1847
1857
  ]),
1848
1858
  _: 3
1849
1859
  }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
@@ -1865,30 +1875,30 @@ const so = ["role"], io = /* @__PURE__ */ L({
1865
1875
  size: { default: "large" },
1866
1876
  class: { default: void 0 }
1867
1877
  },
1868
- setup(t) {
1869
- const o = t;
1878
+ setup(o) {
1879
+ const t = o;
1870
1880
  return Re({
1871
1881
  QField: {
1872
1882
  size: "block"
1873
1883
  }
1874
- }), (e, n) => (u(), x(m(Ie), {
1875
- id: o.id,
1876
- class: C(["q-input-group", o.class]),
1877
- label: o.label,
1878
- required: o.required,
1879
- size: o.size
1884
+ }), (e, n) => (u(), I(m(xe), {
1885
+ id: t.id,
1886
+ class: C(["q-input-group", t.class]),
1887
+ label: t.label,
1888
+ required: t.required,
1889
+ size: t.size
1880
1890
  }, qe({
1881
- default: _(() => [
1882
- e.$slots.prepend || o.prependIcon ? (u(), v("div", Mo, [
1883
- o.prependIcon ? (u(), v("span", Fo, [
1884
- z(m(F), W(ie(o.prependIcon)), null, 16)
1891
+ default: k(() => [
1892
+ e.$slots.prepend || t.prependIcon ? (u(), v("div", Mo, [
1893
+ t.prependIcon ? (u(), v("span", Fo, [
1894
+ z(m(F), G(se(t.prependIcon)), null, 16)
1885
1895
  ])) : $("", !0),
1886
1896
  y(e.$slots, "prepend")
1887
1897
  ])) : $("", !0),
1888
1898
  y(e.$slots, "default"),
1889
- e.$slots.append || o.appendIcon ? (u(), v("div", Oo, [
1890
- o.appendIcon ? (u(), v("span", Uo, [
1891
- z(m(F), W(ie(o.appendIcon)), null, 16)
1899
+ e.$slots.append || t.appendIcon ? (u(), v("div", Oo, [
1900
+ t.appendIcon ? (u(), v("span", Uo, [
1901
+ z(m(F), G(se(t.appendIcon)), null, 16)
1892
1902
  ])) : $("", !0),
1893
1903
  y(e.$slots, "append")
1894
1904
  ])) : $("", !0)
@@ -1897,7 +1907,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
1897
1907
  }, [
1898
1908
  e.$slots.extras ? {
1899
1909
  name: "extras",
1900
- fn: _(() => [
1910
+ fn: k(() => [
1901
1911
  y(e.$slots, "extras")
1902
1912
  ]),
1903
1913
  key: "0"
@@ -1909,10 +1919,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
1909
1919
  props: {
1910
1920
  class: { default: void 0 }
1911
1921
  },
1912
- setup(t) {
1913
- const o = t;
1922
+ setup(o) {
1923
+ const t = o;
1914
1924
  return (e, n) => (u(), v("div", {
1915
- class: C(["q-line-loader", o.class])
1925
+ class: C(["q-line-loader", t.class])
1916
1926
  }, null, 2));
1917
1927
  }
1918
1928
  }), Ko = B(Ho), jo = {
@@ -1939,34 +1949,35 @@ const so = ["role"], io = /* @__PURE__ */ L({
1939
1949
  modelModifiers: {}
1940
1950
  }),
1941
1951
  emits: ["update:modelValue"],
1942
- setup(t) {
1943
- const o = t, e = ee(t, "modelValue");
1944
- return (n, l) => (u(), x(m(he), {
1945
- "model-value": e.value,
1952
+ setup(o) {
1953
+ const t = o, e = ee(o, "modelValue");
1954
+ return (n, l) => (u(), I(m(he), {
1955
+ modelValue: e.value,
1956
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
1946
1957
  class: "q-popover",
1947
1958
  trigger: "click",
1948
- anchor: o.anchor,
1949
- arrow: o.arrow,
1950
- attach: o.attach,
1951
- inline: o.inline,
1952
- disabled: o.disabled,
1953
- placement: o.placement
1959
+ anchor: t.anchor,
1960
+ arrow: t.arrow,
1961
+ attach: t.attach,
1962
+ inline: t.inline,
1963
+ disabled: t.disabled,
1964
+ placement: t.placement
1954
1965
  }, {
1955
- default: _(() => [
1956
- o.title || n.$slots.header ? (u(), v("h3", jo, [
1957
- me(N(o.title) + " ", 1),
1966
+ default: k(() => [
1967
+ t.title || n.$slots.header ? (u(), v("h3", jo, [
1968
+ me(N(t.title) + " ", 1),
1958
1969
  y(n.$slots, "header")
1959
1970
  ])) : $("", !0),
1960
- o.text || n.$slots.body ? (u(), v("div", Go, [
1961
- o.html ? (u(), v("span", {
1971
+ t.text || n.$slots.body ? (u(), v("div", Go, [
1972
+ t.html ? (u(), v("span", {
1962
1973
  key: 0,
1963
- innerHTML: o.text
1964
- }, null, 8, Ro)) : (u(), v("span", Wo, N(o.text), 1)),
1974
+ innerHTML: t.text
1975
+ }, null, 8, Ro)) : (u(), v("span", Wo, N(t.text), 1)),
1965
1976
  y(n.$slots, "body")
1966
1977
  ])) : $("", !0)
1967
1978
  ]),
1968
1979
  _: 3
1969
- }, 8, ["model-value", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1980
+ }, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1970
1981
  }
1971
1982
  }), Yo = B(Xo), Zo = {
1972
1983
  key: 0,
@@ -1996,15 +2007,14 @@ const so = ["role"], io = /* @__PURE__ */ L({
1996
2007
  disabled: { type: Boolean },
1997
2008
  required: { type: Boolean },
1998
2009
  loading: { type: Boolean },
1999
- icons: { default: () => nn },
2000
2010
  items: {},
2001
2011
  groups: { default: () => [] },
2002
2012
  itemValue: { default: "key" },
2003
2013
  itemLabel: { default: "label" },
2004
2014
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
2005
2015
  size: { default: void 0 },
2006
- texts: { default: () => on },
2007
- class: { default: "" }
2016
+ class: { default: "" },
2017
+ internals: { default: () => ({ icons: nn, texts: on }) }
2008
2018
  }, {
2009
2019
  modelValue: {
2010
2020
  type: [String, Number, Boolean, Symbol]
@@ -2012,44 +2022,44 @@ const so = ["role"], io = /* @__PURE__ */ L({
2012
2022
  modelModifiers: {}
2013
2023
  }),
2014
2024
  emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2015
- setup(t, { emit: o }) {
2016
- const e = t, n = o, l = ee(t, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = k(() => I.value === void 0), I = k(
2025
+ setup(o, { emit: t }) {
2026
+ const e = o, n = t, l = ee(o, "modelValue"), s = T(!1), i = T(""), a = T(null), r = T(null), f = T(null), q = g(() => x.value === void 0), x = g(
2017
2027
  () => {
2018
2028
  var c;
2019
2029
  return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
2020
2030
  }
2021
- ), M = k(
2022
- () => I.value ? I.value[e.itemLabel] : ""
2023
- ), E = k(
2031
+ ), M = g(
2032
+ () => x.value ? x.value[e.itemLabel] : ""
2033
+ ), E = g(
2024
2034
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
2025
2035
  );
2026
2036
  function S(c) {
2027
- l.value = c, G();
2037
+ l.value = c, R();
2028
2038
  }
2029
- function T() {
2030
- E.value && (S(e.emptyValue), R());
2039
+ function V() {
2040
+ E.value && (S(e.emptyValue), W());
2031
2041
  }
2032
2042
  function Y(c) {
2033
2043
  var h, U, ae;
2034
- !((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && G();
2044
+ !((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && R();
2035
2045
  }
2036
2046
  function oe() {
2037
2047
  s.value || (n("before-show"), s.value = !0);
2038
2048
  }
2039
- function G() {
2049
+ function R() {
2040
2050
  s.value && (n("before-hide"), s.value = !1);
2041
2051
  }
2042
2052
  function O() {
2043
- e.readonly || e.disabled || (s.value ? G() : oe());
2053
+ e.readonly || e.disabled || (s.value ? R() : oe());
2044
2054
  }
2045
2055
  let ne;
2046
2056
  function H(c) {
2047
2057
  if (!(!c.key || e.readonly || e.disabled)) {
2048
- if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
2058
+ if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && V()), c.key === "Delete" && e.clearable && V(), /^[a-z]$/i.test(c.key)) {
2049
2059
  i.value += c.key.toLowerCase();
2050
2060
  for (let h = 0; h < e.items.length; h++)
2051
2061
  if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
2052
- g(h);
2062
+ _(h);
2053
2063
  break;
2054
2064
  }
2055
2065
  }
@@ -2063,9 +2073,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
2063
2073
  e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
2064
2074
  }
2065
2075
  function Q() {
2066
- R(), n("hide");
2076
+ W(), n("hide");
2067
2077
  }
2068
- function R() {
2078
+ function W() {
2069
2079
  var c, h;
2070
2080
  (h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
2071
2081
  }
@@ -2073,7 +2083,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2073
2083
  var c;
2074
2084
  (c = r.value) == null || c.$el.focus();
2075
2085
  }
2076
- function g(c) {
2086
+ function _(c) {
2077
2087
  var h;
2078
2088
  (h = r.value) == null || h.focusItem(c);
2079
2089
  }
@@ -2085,7 +2095,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2085
2095
  ), (c, h) => {
2086
2096
  var U, ae;
2087
2097
  return u(), v(te, null, [
2088
- z(m(Ie), {
2098
+ z(m(xe), {
2089
2099
  id: e.id,
2090
2100
  label: e.label,
2091
2101
  required: e.required,
@@ -2111,22 +2121,22 @@ const so = ["role"], io = /* @__PURE__ */ L({
2111
2121
  onClick: O,
2112
2122
  onKeydown: pe(H, ["stop"])
2113
2123
  }, qe({
2114
- append: _(() => [
2124
+ append: k(() => [
2115
2125
  y(c.$slots, "append"),
2116
- E.value && l.value ? (u(), x(m(de), {
2126
+ E.value && l.value ? (u(), I(m(de), {
2117
2127
  key: 0,
2118
2128
  class: "q-select__clear",
2119
2129
  "b-style": "plain",
2120
2130
  borderless: "",
2121
2131
  tabindex: "-1",
2122
- onClick: T
2132
+ onClick: V
2123
2133
  }, {
2124
- default: _(() => [
2125
- z(m(F), W(ie(e.icons.clear)), null, 16)
2134
+ default: k(() => [
2135
+ z(m(F), G(se(e.internals.icons.clear)), null, 16)
2126
2136
  ]),
2127
2137
  _: 1
2128
2138
  })) : $("", !0),
2129
- e.readonly ? $("", !0) : (u(), x(m(de), {
2139
+ e.readonly ? $("", !0) : (u(), I(m(de), {
2130
2140
  key: 1,
2131
2141
  class: "q-select__chevron",
2132
2142
  "b-style": "plain",
@@ -2135,35 +2145,35 @@ const so = ["role"], io = /* @__PURE__ */ L({
2135
2145
  disabled: e.disabled,
2136
2146
  onClick: O
2137
2147
  }, {
2138
- default: _(() => [
2139
- z(m(F), W(ie(e.icons.chevron)), null, 16)
2148
+ default: k(() => [
2149
+ z(m(F), G(se(e.internals.icons.chevron)), null, 16)
2140
2150
  ]),
2141
2151
  _: 1
2142
2152
  }, 8, ["disabled"]))
2143
2153
  ]),
2144
- default: _(() => [
2154
+ default: k(() => [
2145
2155
  q.value ? (u(), v("span", Jo, [
2146
2156
  !e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
2147
- me(N(c.texts.placeholder), 1)
2157
+ me(N(c.internals.texts.placeholder), 1)
2148
2158
  ], 64)) : $("", !0)
2149
2159
  ])) : (u(), v("span", Zo, N(M.value), 1))
2150
2160
  ]),
2151
2161
  _: 2
2152
2162
  }, [
2153
- (U = I.value) != null && U.icon || c.$slots.prepend ? {
2163
+ (U = x.value) != null && U.icon || c.$slots.prepend ? {
2154
2164
  name: "prepend",
2155
- fn: _(() => {
2156
- var K, se;
2165
+ fn: k(() => {
2166
+ var K, ie;
2157
2167
  return [
2158
2168
  y(c.$slots, "prepend"),
2159
- (K = I.value) != null && K.icon ? (u(), x(m(F), W(re({ key: 0 }, (se = I.value) == null ? void 0 : se.icon)), null, 16)) : $("", !0)
2169
+ (K = x.value) != null && K.icon ? (u(), I(m(F), G(re({ key: 0 }, (ie = x.value) == null ? void 0 : ie.icon)), null, 16)) : $("", !0)
2160
2170
  ];
2161
2171
  }),
2162
2172
  key: "0"
2163
2173
  } : void 0,
2164
2174
  c.$slots.extras ? {
2165
2175
  name: "extras",
2166
- fn: _(() => [
2176
+ fn: k(() => [
2167
2177
  y(c.$slots, "extras")
2168
2178
  ]),
2169
2179
  key: "1"
@@ -2182,7 +2192,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2182
2192
  onEnter: le,
2183
2193
  onLeave: Q
2184
2194
  }, {
2185
- default: _(() => [
2195
+ default: k(() => [
2186
2196
  A("div", {
2187
2197
  ref_key: "contentRef",
2188
2198
  ref: f,
@@ -2195,12 +2205,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
2195
2205
  }, [
2196
2206
  y(c.$slots, "body.prepend"),
2197
2207
  e.loading ? (u(), v("div", tn, [
2198
- z(m(xe), { size: 24 })
2199
- ])) : (u(), x(m(Te), {
2208
+ z(m(Ie), { size: 24 })
2209
+ ])) : (u(), I(m(Ve), {
2200
2210
  key: 1,
2201
2211
  ref_key: "listRef",
2202
2212
  ref: r,
2203
2213
  class: "q-select__items",
2214
+ selectable: "",
2204
2215
  modelValue: l.value,
2205
2216
  "onUpdate:modelValue": [
2206
2217
  h[0] || (h[0] = (K) => l.value = K),
@@ -2211,7 +2222,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
2211
2222
  "item-label": e.itemLabel,
2212
2223
  "item-value": e.itemValue
2213
2224
  }, {
2214
- item: _(({ item: K }) => [
2225
+ item: k(({ item: K }) => [
2215
2226
  y(c.$slots, "item", { item: K })
2216
2227
  ]),
2217
2228
  _: 3
@@ -2233,9 +2244,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
2233
2244
  width: { default: void 0 },
2234
2245
  height: { default: void 0 }
2235
2246
  },
2236
- setup(t) {
2237
- const o = t, e = k(() => o.type ? `q-skeleton-loader--${o.type}` : void 0), n = k(() => {
2238
- const l = typeof o.width == "number" ? `${o.width}px` : o.width, s = typeof o.height == "number" ? `${o.height}px` : o.height;
2247
+ setup(o) {
2248
+ const t = o, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = g(() => {
2249
+ const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
2239
2250
  return {
2240
2251
  width: l,
2241
2252
  height: s
@@ -2251,10 +2262,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
2251
2262
  props: {
2252
2263
  theme: {}
2253
2264
  },
2254
- setup(t) {
2255
- const o = t;
2265
+ setup(o) {
2266
+ const t = o;
2256
2267
  return (e, n) => (u(), v("div", {
2257
- class: C(["q-theme-provider", `q-theme--${o.theme}`])
2268
+ class: C(["q-theme-provider", `q-theme--${t.theme}`])
2258
2269
  }, [
2259
2270
  y(e.$slots, "default")
2260
2271
  ], 2));
@@ -2281,36 +2292,36 @@ const so = ["role"], io = /* @__PURE__ */ L({
2281
2292
  modelModifiers: {}
2282
2293
  }),
2283
2294
  emits: ["update:modelValue"],
2284
- setup(t) {
2285
- const o = t, e = ee(t, "modelValue"), n = ve(o.id);
2295
+ setup(o) {
2296
+ const t = o, e = ee(o, "modelValue"), n = ve(t.id);
2286
2297
  return (l, s) => (u(), v(te, null, [
2287
2298
  y(l.$slots, "anchor", {
2288
2299
  props: { "aria-describedby": m(n) }
2289
2300
  }),
2290
2301
  z(m(he), {
2291
2302
  "model-value": e.value,
2292
- anchor: o.anchor,
2303
+ anchor: t.anchor,
2293
2304
  role: "tooltip",
2294
2305
  "non-modal": "",
2295
2306
  id: m(n),
2296
- appearance: o.appearance,
2297
- arrow: o.arrow,
2298
- attach: o.attach,
2299
- inline: o.inline,
2300
- class: C(["q-tooltip", o.class]),
2301
- delay: o.delay,
2302
- disabled: o.disabled,
2303
- placement: o.placement,
2304
- trigger: o.trigger
2307
+ appearance: t.appearance,
2308
+ arrow: t.arrow,
2309
+ attach: t.attach,
2310
+ inline: t.inline,
2311
+ class: C(["q-tooltip", t.class]),
2312
+ delay: t.delay,
2313
+ disabled: t.disabled,
2314
+ placement: t.placement,
2315
+ trigger: t.trigger
2305
2316
  }, {
2306
- default: _(() => [
2317
+ default: k(() => [
2307
2318
  y(l.$slots, "default", {}, () => [
2308
- o.icon ? (u(), x(m(F), W(re({ key: 0 }, o.icon)), null, 16)) : $("", !0),
2309
- o.html ? (u(), v("span", {
2319
+ t.icon ? (u(), I(m(F), G(re({ key: 0 }, t.icon)), null, 16)) : $("", !0),
2320
+ t.html ? (u(), v("span", {
2310
2321
  key: 1,
2311
- innerHTML: o.text
2322
+ innerHTML: t.text
2312
2323
  }, null, 8, pn)) : (u(), v(te, { key: 2 }, [
2313
- me(N(o.text), 1)
2324
+ me(N(t.text), 1)
2314
2325
  ], 64))
2315
2326
  ])
2316
2327
  ]),
@@ -2326,114 +2337,114 @@ const so = ["role"], io = /* @__PURE__ */ L({
2326
2337
  QButtonToggle: Qt,
2327
2338
  QCombobox: qo,
2328
2339
  QDialog: Qo,
2329
- QField: Ie,
2340
+ QField: xe,
2330
2341
  QIcon: F,
2331
2342
  QIconFont: Ye,
2332
2343
  QIconImg: Ze,
2333
2344
  QIconSvg: Je,
2334
2345
  QInputGroup: No,
2335
2346
  QLineLoader: Ko,
2336
- QList: Te,
2347
+ QList: Ve,
2337
2348
  QListItem: ot,
2338
2349
  QListItemGroup: nt,
2339
2350
  QOverlay: he,
2340
2351
  QPopover: Yo,
2341
2352
  QSelect: an,
2342
2353
  QSkeletonLoader: un,
2343
- QSpinnerLoader: xe,
2354
+ QSpinnerLoader: Ie,
2344
2355
  QTextField: lt,
2345
2356
  QThemeProvider: fn,
2346
2357
  QTooltip: vn
2347
2358
  }, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
2348
2359
  function yn() {
2349
- const t = He(be);
2350
- if (!t)
2360
+ const o = He(be);
2361
+ if (!o)
2351
2362
  throw new Error("[Quidgest UI] Could not find theme instance");
2352
- return t;
2363
+ return o;
2353
2364
  }
2354
- function xn(t) {
2355
- const o = yn(), e = {
2356
- activeTheme: V(t),
2357
- themes: o.themes
2365
+ function In(o) {
2366
+ const t = yn(), e = {
2367
+ activeTheme: T(o),
2368
+ themes: t.themes
2358
2369
  };
2359
2370
  return Ne(be, e), e;
2360
2371
  }
2361
2372
  function bn() {
2362
- let t = document.getElementById(
2373
+ let o = document.getElementById(
2363
2374
  be
2364
2375
  );
2365
- return t || (t = document.createElement("style"), t.id = be, document.head.appendChild(t)), t;
2376
+ return o || (o = document.createElement("style"), o.id = be, document.head.appendChild(o)), o;
2366
2377
  }
2367
- function gn(t) {
2368
- let o = "";
2369
- for (const n of t) {
2370
- o += `.q-theme--${n.name} {
2378
+ function gn(o) {
2379
+ let t = "";
2380
+ for (const n of o) {
2381
+ t += `.q-theme--${n.name} {
2371
2382
  `;
2372
2383
  const l = n.scheme;
2373
2384
  let s;
2374
2385
  for (s in l) {
2375
2386
  const i = l[s];
2376
2387
  if (i) {
2377
- o += ` ${Ue(s)}: ${i};
2388
+ t += ` ${Ue(s)}: ${i};
2378
2389
  `;
2379
2390
  const a = et(i);
2380
- o += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2391
+ t += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2381
2392
  `;
2382
2393
  }
2383
2394
  }
2384
- o += `}
2395
+ t += `}
2385
2396
  `;
2386
2397
  }
2387
2398
  const e = bn();
2388
- e.textContent = o;
2399
+ e.textContent = t;
2389
2400
  }
2390
- function Ue(t) {
2391
- return t ? `--q-theme-${Xe(t)}` : "";
2401
+ function Ue(o) {
2402
+ return o ? `--q-theme-${Xe(o)}` : "";
2392
2403
  }
2393
- function _n(t = {}) {
2404
+ function _n(o = {}) {
2394
2405
  return { install: (e) => {
2395
- const n = t.components || {};
2406
+ const n = o.components || {};
2396
2407
  for (const s in n)
2397
2408
  e.component(s, n[s]);
2398
- const l = t.defaults || {};
2399
- e.provide(Ce, V(l)), kn(e, t.themes);
2409
+ const l = o.defaults || {};
2410
+ e.provide(Ce, T(l)), kn(e, o.themes);
2400
2411
  } };
2401
2412
  }
2402
- function kn(t, o) {
2413
+ function kn(o, t) {
2403
2414
  const e = [];
2404
2415
  let n;
2405
- if (!o)
2416
+ if (!t)
2406
2417
  n = "default", e.push({
2407
2418
  name: n,
2408
2419
  mode: "light",
2409
2420
  scheme: Le
2410
2421
  });
2411
2422
  else
2412
- for (const l of o.themes) {
2423
+ for (const l of t.themes) {
2413
2424
  const i = { ...l.mode === "light" ? Le : Ge, ...l.colors };
2414
2425
  e.push({
2415
2426
  name: l.name,
2416
2427
  mode: l.mode,
2417
2428
  scheme: i
2418
- }), l.name === o.defaultTheme && (n = l.name);
2429
+ }), l.name === t.defaultTheme && (n = l.name);
2419
2430
  }
2420
2431
  if (n) {
2421
2432
  const l = {
2422
- activeTheme: V(n),
2433
+ activeTheme: T(n),
2423
2434
  themes: e
2424
2435
  };
2425
- gn(e), Z(l.activeTheme, wn, { immediate: !0 }), t.provide(be, l);
2436
+ gn(e), Z(l.activeTheme, wn, { immediate: !0 }), o.provide(be, l);
2426
2437
  }
2427
2438
  }
2428
- function wn(t) {
2429
- const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
2430
- o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
2439
+ function wn(o) {
2440
+ const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
2441
+ t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
2431
2442
  }
2432
- const In = (t = {}) => _n({ components: hn, ...t });
2443
+ const xn = (o = {}) => _n({ components: hn, ...o });
2433
2444
  export {
2434
2445
  hn as components,
2435
- In as createFramework,
2436
- xn as provideTheme,
2446
+ xn as createFramework,
2447
+ In as provideTheme,
2437
2448
  qn as templates,
2438
2449
  yn as useTheme
2439
2450
  };