@quidgest/ui 0.9.5 → 0.9.6

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,8 +1,8 @@
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 oe, createTextVNode as ue, toDisplayString as N, renderSlot as m, toRef as Le, mergeModels as H, useModel as X, createBlock as V, withCtx as k, renderList as ye, resolveDynamicComponent as Qe, h as Se, normalizeProps as ne, 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) {
1
+ import { getCurrentInstance as De, computed as w, ref as D, provide as ze, inject as Ce, watch as Y, defineComponent as x, openBlock as u, createElementBlock as m, normalizeClass as T, normalizeStyle as pe, createElementVNode as J, withModifiers as de, createVNode as F, unref as h, createCommentVNode as I, Fragment as te, createTextVNode as ue, toDisplayString as K, renderSlot as v, toRef as Ie, mergeModels as G, useModel as Z, createBlock as E, withCtx as k, renderList as be, resolveDynamicComponent as Ae, h as xe, normalizeProps as ne, mergeProps as se, reactive as Ne, onBeforeUnmount as He, onMounted as Qe, nextTick as H, Teleport as Ke, Transition as Ge, withKeys as We, createSlots as _e, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as ie } from "vue";
2
+ function ye(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 xe(t) {
5
+ function Be(t) {
6
6
  return t !== null && typeof t == "object" && !Array.isArray(t);
7
7
  }
8
8
  function ke(t = {}, o = {}) {
@@ -10,37 +10,37 @@ function ke(t = {}, o = {}) {
10
10
  for (const n in t)
11
11
  e[n] = t[n];
12
12
  for (const n in o) {
13
- const a = t[n], r = o[n];
14
- if (xe(a) && xe(r)) {
13
+ const l = t[n], s = o[n];
14
+ if (Be(l) && Be(s)) {
15
15
  e[n] = ke(
16
- a,
17
- r
16
+ l,
17
+ s
18
18
  );
19
19
  continue;
20
20
  }
21
- e[n] = r;
21
+ e[n] = s;
22
22
  }
23
23
  return e;
24
24
  }
25
25
  const we = "q-defaults";
26
26
  function Ye() {
27
- var r, d;
27
+ var s, r;
28
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 o = t.type.name ?? t.type.__name;
32
32
  if (!o)
33
33
  throw new Error("[Quidgest UI] Could not determine component name");
34
- const e = Me(), n = (r = e.value) == null ? void 0 : r.Global, a = (d = e.value) == null ? void 0 : d[o];
35
- return w(() => ke(n, a));
34
+ const e = Oe(), n = (s = e.value) == null ? void 0 : s.Global, l = (r = e.value) == null ? void 0 : r[o];
35
+ return w(() => ke(n, l));
36
36
  }
37
- function Fe(t) {
38
- if (ge(t))
37
+ function Me(t) {
38
+ if (ye(t))
39
39
  return;
40
- const o = Me(), e = T(t), n = w(() => ge(e.value) ? o.value : ke(o.value, e.value));
40
+ const o = Oe(), e = D(t), n = w(() => ye(e.value) ? o.value : ke(o.value, e.value));
41
41
  ze(we, n);
42
42
  }
43
- function Me() {
43
+ function Oe() {
44
44
  const t = Ce(we, void 0);
45
45
  if (!t)
46
46
  throw new Error("[Quidgest UI] Could not find defaults instance");
@@ -55,12 +55,12 @@ function Ze() {
55
55
  }
56
56
  function Vo(t) {
57
57
  const o = Ze(), e = {
58
- activeTheme: T(t),
58
+ activeTheme: D(t),
59
59
  themes: o.themes
60
60
  };
61
61
  return ze(ce, e), e;
62
62
  }
63
- const Be = {
63
+ const Se = {
64
64
  primary: "#008ad2",
65
65
  primaryLight: "#cde5ff",
66
66
  primaryDark: "#006398",
@@ -123,92 +123,92 @@ const Be = {
123
123
  onDanger: "#fff",
124
124
  onInfo: "#fff"
125
125
  };
126
- function et(t) {
126
+ function Pe(t) {
127
127
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
128
128
  }
129
- function tt(t) {
130
- if (!et(t))
129
+ function et(t) {
130
+ if (!Pe(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 o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
134
134
  return { r: o, g: e, b: n };
135
135
  }
136
- function Re(t) {
136
+ function Fe(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 ot() {
139
+ function tt() {
140
140
  let t = document.getElementById(
141
141
  ce
142
142
  );
143
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 o = "";
147
147
  for (const n of t) {
148
148
  o += `.q-theme--${n.name} {
149
149
  `;
150
- const a = n.scheme;
151
- let r;
152
- for (r in a) {
153
- const d = a[r];
154
- if (d) {
155
- o += ` ${Ve(r)}: ${d};
150
+ const l = n.scheme;
151
+ let s;
152
+ for (s in l) {
153
+ const r = l[s];
154
+ if (r) {
155
+ o += ` ${Ve(s)}: ${r};
156
156
  `;
157
- const i = tt(d);
158
- o += ` ${Ve(r)}-rgb: ${i.r} ${i.g} ${i.b};
157
+ const i = et(r);
158
+ o += ` ${Ve(s)}-rgb: ${i.r} ${i.g} ${i.b};
159
159
  `;
160
160
  }
161
161
  }
162
162
  o += `}
163
163
  `;
164
164
  }
165
- const e = ot();
165
+ const e = tt();
166
166
  e.textContent = o;
167
167
  }
168
168
  function Ve(t) {
169
- return t ? `--q-theme-${Re(t)}` : "";
169
+ return t ? `--q-theme-${Fe(t)}` : "";
170
170
  }
171
171
  function Eo(t = {}) {
172
172
  return { install: (e) => {
173
173
  const n = t.components || {};
174
- for (const r in n)
175
- e.component(r, n[r]);
176
- const a = t.defaults || {};
177
- e.provide(we, T(a)), lt(e, t.themes);
174
+ for (const s in n)
175
+ e.component(s, n[s]);
176
+ const l = t.defaults || {};
177
+ e.provide(we, D(l)), nt(e, t.themes);
178
178
  } };
179
179
  }
180
- function lt(t, o) {
180
+ function nt(t, o) {
181
181
  const e = [];
182
182
  let n;
183
183
  if (!o)
184
184
  n = "default", e.push({
185
185
  name: n,
186
186
  mode: "light",
187
- scheme: Be
187
+ scheme: Se
188
188
  });
189
189
  else
190
- for (const a of o.themes) {
191
- const d = { ...a.mode === "light" ? Be : Je, ...a.colors };
190
+ for (const l of o.themes) {
191
+ const r = { ...l.mode === "light" ? Se : Je, ...l.colors };
192
192
  e.push({
193
- name: a.name,
194
- mode: a.mode,
195
- scheme: d
196
- }), a.name === o.defaultTheme && (n = a.name);
193
+ name: l.name,
194
+ mode: l.mode,
195
+ scheme: r
196
+ }), l.name === o.defaultTheme && (n = l.name);
197
197
  }
198
198
  if (n) {
199
- const a = {
200
- activeTheme: T(n),
199
+ const l = {
200
+ activeTheme: D(n),
201
201
  themes: e
202
202
  };
203
- nt(e), P(a.activeTheme, at, { immediate: !0 }), t.provide(ce, a);
203
+ ot(e), Y(l.activeTheme, lt, { immediate: !0 }), t.provide(ce, l);
204
204
  }
205
205
  }
206
- function at(t) {
207
- const o = document.documentElement, n = Array.from(o.classList).filter((a) => !a.startsWith("q-theme"));
206
+ function lt(t) {
207
+ const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
208
208
  o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
209
209
  }
210
- const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
211
- /* @__PURE__ */ Y("circle", {
210
+ const at = /* @__PURE__ */ J("svg", { viewBox: "25 25 50 50" }, [
211
+ /* @__PURE__ */ J("circle", {
212
212
  class: "path",
213
213
  cx: "50",
214
214
  cy: "50",
@@ -218,9 +218,9 @@ const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
218
218
  "stroke-width": "5",
219
219
  "stroke-miterlimit": "10"
220
220
  })
221
- ], -1), it = [
222
- st
223
- ], rt = /* @__PURE__ */ S({
221
+ ], -1), st = [
222
+ at
223
+ ], it = /* @__PURE__ */ x({
224
224
  __name: "QSpinnerLoader",
225
225
  props: {
226
226
  size: { default: 48 },
@@ -230,40 +230,40 @@ const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
230
230
  const o = t, e = w(() => ({
231
231
  "font-size": o.size !== 48 ? `${o.size}px` : void 0
232
232
  }));
233
- return (n, a) => (u(), p("div", {
234
- class: E(["q-spinner-loader", o.class]),
233
+ return (n, l) => (u(), m("div", {
234
+ class: T(["q-spinner-loader", o.class]),
235
235
  style: pe(e.value)
236
- }, it, 6));
236
+ }, st, 6));
237
237
  }
238
238
  });
239
- function dt(t, o) {
239
+ function rt(t, o) {
240
240
  var n;
241
- const e = Re(o);
241
+ const e = Fe(o);
242
242
  return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
243
243
  }
244
- function B(t) {
244
+ function S(t) {
245
245
  const o = t.setup;
246
246
  return o && (t.setup = (e, n) => {
247
- const a = Ye();
248
- if (ge(a.value))
247
+ const l = Ye();
248
+ if (ye(l.value))
249
249
  return o(e, n);
250
- const r = De();
251
- if (r === null)
250
+ const s = De();
251
+ if (s === null)
252
252
  return o(e, n);
253
- const d = new Proxy(e, {
254
- get(i, c) {
255
- var _;
256
- const q = Reflect.get(i, c), g = (_ = a.value) == null ? void 0 : _[c];
257
- return typeof c == "string" && !dt(r.vnode, c) ? g ?? q : q;
253
+ const r = new Proxy(e, {
254
+ get(i, f) {
255
+ var y;
256
+ const L = Reflect.get(i, f), _ = (y = l.value) == null ? void 0 : y[f];
257
+ return typeof f == "string" && !rt(s.vnode, f) ? _ ?? L : L;
258
258
  }
259
259
  });
260
- return o(d, n);
260
+ return o(r, n);
261
261
  }), t;
262
262
  }
263
- const $e = B(rt), ut = ["disabled"], ct = {
263
+ const $e = S(it), dt = ["disabled"], ut = {
264
264
  key: 0,
265
265
  class: "q-btn__spinner"
266
- }, ft = { class: "q-btn__content" }, pt = /* @__PURE__ */ S({
266
+ }, ct = { class: "q-btn__content" }, ft = /* @__PURE__ */ x({
267
267
  __name: "QButton",
268
268
  props: {
269
269
  active: { type: Boolean },
@@ -280,11 +280,11 @@ const $e = B(rt), ut = ["disabled"], ct = {
280
280
  },
281
281
  emits: ["click"],
282
282
  setup(t, { emit: o }) {
283
- const e = t, n = o, a = w(() => e.disabled || e.loading);
284
- function r(i) {
285
- a.value || n("click", i);
283
+ const e = t, n = o, l = w(() => e.disabled || e.loading);
284
+ function s(i) {
285
+ l.value || n("click", i);
286
286
  }
287
- const d = w(() => {
287
+ const r = w(() => {
288
288
  const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
289
289
  return [
290
290
  "q-btn",
@@ -300,27 +300,27 @@ const $e = B(rt), ut = ["disabled"], ct = {
300
300
  e.class
301
301
  ];
302
302
  });
303
- return (i, c) => (u(), p("button", {
303
+ return (i, f) => (u(), m("button", {
304
304
  type: "button",
305
- class: E(d.value),
306
- disabled: a.value,
307
- onClick: de(r, ["stop", "prevent"])
305
+ class: T(r.value),
306
+ disabled: l.value,
307
+ onClick: de(s, ["stop", "prevent"])
308
308
  }, [
309
- i.loading ? (u(), p("div", ct, [
310
- A(v($e), { size: 20 })
309
+ i.loading ? (u(), m("div", ut, [
310
+ F(h($e), { size: 20 })
311
311
  ])) : I("", !0),
312
- Y("span", ft, [
313
- i.iconOnRight ? (u(), p(oe, { key: 0 }, [
314
- ue(N(e.label), 1)
312
+ J("span", ct, [
313
+ i.iconOnRight ? (u(), m(te, { key: 0 }, [
314
+ ue(K(e.label), 1)
315
315
  ], 64)) : I("", !0),
316
- m(i.$slots, "default"),
317
- i.iconOnRight ? I("", !0) : (u(), p(oe, { key: 1 }, [
318
- ue(N(e.label), 1)
316
+ v(i.$slots, "default"),
317
+ i.iconOnRight ? I("", !0) : (u(), m(te, { key: 1 }, [
318
+ ue(K(e.label), 1)
319
319
  ], 64))
320
320
  ])
321
- ], 10, ut));
321
+ ], 10, dt));
322
322
  }
323
- }), fe = B(pt), mt = /* @__PURE__ */ S({
323
+ }), fe = S(ft), pt = /* @__PURE__ */ x({
324
324
  __name: "QButtonGroup",
325
325
  props: {
326
326
  disabled: { type: Boolean },
@@ -330,15 +330,15 @@ const $e = B(rt), ut = ["disabled"], ct = {
330
330
  },
331
331
  setup(t) {
332
332
  const o = t;
333
- return Fe({
333
+ return Me({
334
334
  QButton: {
335
335
  bStyle: "secondary",
336
- disabled: Le(o, "disabled"),
337
- borderless: Le(o, "borderless"),
336
+ disabled: Ie(o, "disabled"),
337
+ borderless: Ie(o, "borderless"),
338
338
  elevated: !1
339
339
  }
340
- }), (e, n) => (u(), p("div", {
341
- class: E([
340
+ }), (e, n) => (u(), m("div", {
341
+ class: T([
342
342
  "q-btn-group",
343
343
  {
344
344
  "q-btn-group--elevated": o.elevated
@@ -346,12 +346,12 @@ const $e = B(rt), ut = ["disabled"], ct = {
346
346
  o.class
347
347
  ])
348
348
  }, [
349
- m(e.$slots, "default")
349
+ v(e.$slots, "default")
350
350
  ], 2));
351
351
  }
352
- }), vt = B(mt), ht = /* @__PURE__ */ S({
352
+ }), mt = S(pt), vt = /* @__PURE__ */ x({
353
353
  __name: "QButtonToggle",
354
- props: /* @__PURE__ */ H({
354
+ props: /* @__PURE__ */ G({
355
355
  options: {},
356
356
  disabled: { type: Boolean },
357
357
  borderless: { type: Boolean },
@@ -364,27 +364,27 @@ const $e = B(rt), ut = ["disabled"], ct = {
364
364
  }),
365
365
  emits: ["update:modelValue"],
366
366
  setup(t) {
367
- const o = t, e = X(t, "modelValue");
368
- function n(a) {
369
- e.value === a.key && !o.required ? e.value = void 0 : e.value = a.key;
367
+ const o = t, e = Z(t, "modelValue");
368
+ function n(l) {
369
+ e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
370
370
  }
371
- return (a, r) => (u(), V(v(vt), {
371
+ return (l, s) => (u(), E(h(mt), {
372
372
  "b-style": "secondary",
373
- class: E(o.class),
373
+ class: T(o.class),
374
374
  disabled: o.disabled,
375
375
  borderless: o.borderless,
376
376
  elevated: o.elevated
377
377
  }, {
378
378
  default: k(() => [
379
- (u(!0), p(oe, null, ye(o.options, (d) => (u(), V(v(fe), {
380
- key: d.key,
381
- title: d.title,
382
- label: d.label,
383
- active: e.value === d.key,
384
- onClick: () => n(d)
379
+ (u(!0), m(te, null, be(o.options, (r) => (u(), E(h(fe), {
380
+ key: r.key,
381
+ title: r.title,
382
+ label: r.label,
383
+ active: e.value === r.key,
384
+ onClick: () => n(r)
385
385
  }, {
386
386
  default: k(() => [
387
- m(a.$slots, d.key)
387
+ v(l.$slots, r.key)
388
388
  ]),
389
389
  _: 2
390
390
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -392,7 +392,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
392
392
  _: 3
393
393
  }, 8, ["class", "disabled", "borderless", "elevated"]));
394
394
  }
395
- }), To = B(ht), bt = /* @__PURE__ */ S({
395
+ }), To = S(vt), ht = /* @__PURE__ */ x({
396
396
  __name: "QIcon",
397
397
  props: {
398
398
  icon: {},
@@ -404,22 +404,22 @@ const $e = B(rt), ut = ["disabled"], ct = {
404
404
  const o = t, e = w(() => {
405
405
  switch (o.type) {
406
406
  case "svg":
407
- return St;
408
- case "font":
409
407
  return It;
408
+ case "font":
409
+ return qt;
410
410
  case "img":
411
411
  return Lt;
412
412
  default:
413
413
  return;
414
414
  }
415
415
  });
416
- return (n, a) => (u(), V(Qe(e.value), {
417
- class: E(o.class),
416
+ return (n, l) => (u(), E(Ae(e.value), {
417
+ class: T(o.class),
418
418
  icon: o.icon,
419
419
  size: o.size
420
420
  }, null, 8, ["class", "icon", "size"]));
421
421
  }
422
- }), yt = /* @__PURE__ */ S({
422
+ }), bt = /* @__PURE__ */ x({
423
423
  __name: "QIconFont",
424
424
  props: {
425
425
  icon: {},
@@ -429,15 +429,15 @@ const $e = B(rt), ut = ["disabled"], ct = {
429
429
  class: { default: void 0 }
430
430
  },
431
431
  setup(t) {
432
- const o = t, e = w(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = w(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), a = w(() => ({
432
+ const o = t, e = w(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = w(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = w(() => ({
433
433
  "font-size": o.size !== void 0 ? `${o.size}px` : void 0
434
434
  }));
435
- return (r, d) => (u(), p("i", {
436
- class: E(["q-icon", "q-icon__font", e.value, n.value, o.class]),
437
- style: pe(a.value)
435
+ return (s, r) => (u(), m("i", {
436
+ class: T(["q-icon", "q-icon__font", e.value, n.value, o.class]),
437
+ style: pe(l.value)
438
438
  }, null, 6));
439
439
  }
440
- }), gt = ["src"], _t = /* @__PURE__ */ S({
440
+ }), yt = ["src"], gt = /* @__PURE__ */ x({
441
441
  __name: "QIconImg",
442
442
  props: {
443
443
  icon: {},
@@ -448,13 +448,13 @@ const $e = B(rt), ut = ["disabled"], ct = {
448
448
  const o = t, e = w(() => ({
449
449
  "font-size": o.size !== void 0 ? `${o.size}px` : void 0
450
450
  }));
451
- return (n, a) => (u(), p("img", {
451
+ return (n, l) => (u(), m("img", {
452
452
  src: o.icon,
453
- class: E(["q-icon", "q-icon__img", o.class]),
453
+ class: T(["q-icon", "q-icon__img", o.class]),
454
454
  style: pe(e.value)
455
- }, null, 14, gt));
455
+ }, null, 14, yt));
456
456
  }
457
- }), re = {}, kt = S({
457
+ }), re = {}, _t = x({
458
458
  name: "InlineSvg",
459
459
  emits: {
460
460
  loaded: (t) => typeof t == "object",
@@ -467,9 +467,9 @@ const $e = B(rt), ut = ["disabled"], ct = {
467
467
  return null;
468
468
  const t = this.getSvgContent(this.svgElSource);
469
469
  if (!t)
470
- return Se("div", this.$attrs);
470
+ return xe("div", this.$attrs);
471
471
  const o = {};
472
- return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, Se("svg", o);
472
+ return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, xe("svg", o);
473
473
  },
474
474
  props: {
475
475
  /**
@@ -531,7 +531,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
531
531
  n !== !1 && n !== null && n !== void 0 && (t[e] = n);
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)), wt(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)), kt(t, this.title)), t);
535
535
  },
536
536
  /**
537
537
  * Get svgElSource
@@ -539,7 +539,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
539
539
  */
540
540
  async getSource(t) {
541
541
  try {
542
- re[t] || (re[t] = $t(this.download(t))), this.svgElSource && re[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
542
+ re[t] || (re[t] = wt(this.download(t))), this.svgElSource && re[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
543
543
  const o = await re[t];
544
544
  this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
545
545
  } catch (o) {
@@ -555,10 +555,10 @@ const $e = B(rt), ut = ["disabled"], ct = {
555
555
  const o = await fetch(t);
556
556
  if (!o.ok)
557
557
  throw new Error("Error loading SVG");
558
- const e = await o.text(), r = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
559
- if (!r)
558
+ const e = await o.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
559
+ if (!s)
560
560
  throw new Error("Loaded file is not a valid SVG");
561
- return r;
561
+ return s;
562
562
  }
563
563
  },
564
564
  watch: {
@@ -568,7 +568,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
568
568
  },
569
569
  expose: []
570
570
  });
571
- function wt(t, o) {
571
+ function kt(t, o) {
572
572
  const e = t.getElementsByTagName("title");
573
573
  if (e.length)
574
574
  e[0].textContent = o;
@@ -577,7 +577,7 @@ function wt(t, o) {
577
577
  n.textContent = o, t.insertBefore(n, t.firstChild);
578
578
  }
579
579
  }
580
- function $t(t) {
580
+ function wt(t) {
581
581
  if (t.getIsPending)
582
582
  return t;
583
583
  let o = !0;
@@ -589,7 +589,7 @@ function $t(t) {
589
589
  );
590
590
  return e.getIsPending = () => o, e;
591
591
  }
592
- const qt = /* @__PURE__ */ S({
592
+ const $t = /* @__PURE__ */ x({
593
593
  __name: "QIconSvg",
594
594
  props: {
595
595
  icon: {},
@@ -599,27 +599,27 @@ const qt = /* @__PURE__ */ S({
599
599
  },
600
600
  emits: ["loaded", "unloaded"],
601
601
  setup(t, { emit: o }) {
602
- const e = t, n = o, a = w(() => ({
602
+ const e = t, n = o, l = w(() => ({
603
603
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
604
604
  }));
605
- function r(i) {
605
+ function s(i) {
606
606
  n("loaded", i);
607
607
  }
608
- function d() {
608
+ function r() {
609
609
  n("unloaded");
610
610
  }
611
- return (i, c) => (u(), V(v(kt), {
612
- class: E(["q-icon", "q-icon__svg", e.class]),
611
+ return (i, f) => (u(), E(h(_t), {
612
+ class: T(["q-icon", "q-icon__svg", e.class]),
613
613
  src: e.bundle,
614
614
  symbol: e.icon,
615
- style: pe(a.value),
616
- onLoaded: r,
617
- onUnloaded: d
615
+ style: pe(l.value),
616
+ onLoaded: s,
617
+ onUnloaded: r
618
618
  }, null, 8, ["class", "src", "symbol", "style"]));
619
619
  }
620
- }), te = B(bt), It = B(yt), Lt = B(_t), St = B(qt), xt = /* @__PURE__ */ S({
620
+ }), ee = S(ht), qt = S(bt), Lt = S(gt), It = S($t), xt = /* @__PURE__ */ x({
621
621
  __name: "QList",
622
- props: /* @__PURE__ */ H({
622
+ props: /* @__PURE__ */ G({
623
623
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
624
624
  items: {},
625
625
  groups: { default: () => [] },
@@ -635,139 +635,141 @@ const qt = /* @__PURE__ */ S({
635
635
  }),
636
636
  emits: ["update:modelValue"],
637
637
  setup(t, { expose: o }) {
638
- const e = t, n = X(t, "modelValue"), a = T(!1), r = w(() => d.value.length > 1 ? "div" : "ul"), d = w(() => e.groups.length ? e.groups : [{ id: "", title: "" }]), i = T(null);
639
- function c(f) {
640
- n.value = f;
638
+ const e = t, n = Z(t, "modelValue"), l = D(!1), s = w(() => r.value.length > 1 ? "div" : "ul"), r = w(() => e.groups.length ? e.groups.filter(
639
+ (c) => e.items.some((b) => b.group === c.id)
640
+ ) : [{ id: "", title: "" }]), i = D(null);
641
+ function f(c) {
642
+ n.value = c;
641
643
  }
642
- function q() {
643
- a.value = !0;
644
+ function L() {
645
+ l.value = !0;
644
646
  }
645
- function g() {
646
- a.value = !1;
647
+ function _() {
648
+ l.value = !1;
647
649
  }
648
- function _(f) {
649
- var l;
650
- if ((l = i.value) != null && l.contains(f.relatedTarget))
650
+ function y(c) {
651
+ var d;
652
+ if ((d = i.value) != null && d.contains(c.relatedTarget))
651
653
  return;
652
- let y;
653
- n.value ? y = e.items.findIndex((h) => h[e.itemValue] === n.value) : y = G();
654
- const $ = a.value;
655
- z(y, $);
654
+ let b;
655
+ n.value ? b = e.items.findIndex(($) => $[e.itemValue] === n.value) : b = j();
656
+ const q = l.value;
657
+ C(b, q);
656
658
  }
657
- function F(f) {
658
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
659
+ function U(c) {
660
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && c.preventDefault(), c.key) {
659
661
  case "ArrowDown":
660
- D("next");
662
+ z("next");
661
663
  break;
662
664
  case "ArrowUp":
663
- D("prev");
665
+ z("prev");
664
666
  break;
665
667
  case "Home":
666
- D("first");
668
+ z("first");
667
669
  break;
668
670
  case "End":
669
- D("last");
671
+ z("last");
670
672
  break;
671
673
  }
672
674
  }
673
- function D(f) {
674
- switch (f) {
675
+ function z(c) {
676
+ switch (c) {
675
677
  case "next":
676
678
  case "prev":
677
- z(W(f));
679
+ C(X(c));
678
680
  break;
679
681
  case "first":
680
- z(G());
682
+ C(j());
681
683
  break;
682
684
  case "last":
683
- z(C());
685
+ C(A());
684
686
  break;
685
687
  }
686
688
  }
687
- function z(f, y = !1) {
688
- var l;
689
- (l = L()[f]) == null || l.focus({ preventScroll: y });
689
+ function C(c, b = !1) {
690
+ var d;
691
+ (d = V()[c]) == null || d.focus({ preventScroll: b });
690
692
  }
691
- function L() {
692
- var y;
693
- const f = (y = i.value) == null ? void 0 : y.querySelectorAll("li");
694
- return f ? Array.from(f) : [];
693
+ function V() {
694
+ var b;
695
+ const c = (b = i.value) == null ? void 0 : b.querySelectorAll("li");
696
+ return c ? Array.from(c) : [];
695
697
  }
696
- function K(f) {
697
- return L()[f];
698
+ function W(c) {
699
+ return V()[c];
698
700
  }
699
701
  function le() {
700
- return L().indexOf(document.activeElement);
701
- }
702
- function G() {
703
- const f = L(), y = f.find(($) => Z($));
704
- return y ? f.indexOf(y) : -1;
705
- }
706
- function C() {
707
- const f = L(), y = [...f].reverse().find(($) => Z($));
708
- return y ? f.indexOf(y) : -1;
709
- }
710
- function M(f, y, $) {
711
- return y === "prev" && f === 0 || y === "next" && f === $.length - 1;
712
- }
713
- function W(f) {
714
- const y = le();
715
- return R(y, f);
716
- }
717
- function R(f, y) {
718
- const $ = L();
719
- if (M(f, y, $))
720
- return f;
721
- let l = f + (y === "next" ? 1 : -1);
722
- for (; !Z($[l]); ) {
723
- if (M(l, y, $))
724
- return f;
725
- l += y === "next" ? 1 : -1;
702
+ return V().indexOf(document.activeElement);
703
+ }
704
+ function j() {
705
+ const c = V(), b = c.find((q) => P(q));
706
+ return b ? c.indexOf(b) : -1;
707
+ }
708
+ function A() {
709
+ const c = V(), b = [...c].reverse().find((q) => P(q));
710
+ return b ? c.indexOf(b) : -1;
711
+ }
712
+ function Q(c, b, q) {
713
+ return b === "prev" && c === 0 || b === "next" && c === q.length - 1;
714
+ }
715
+ function X(c) {
716
+ const b = le();
717
+ return N(b, c);
718
+ }
719
+ function N(c, b) {
720
+ const q = V();
721
+ if (Q(c, b, q))
722
+ return c;
723
+ let d = c + (b === "next" ? 1 : -1);
724
+ for (; !P(q[d]); ) {
725
+ if (Q(d, b, q))
726
+ return c;
727
+ d += b === "next" ? 1 : -1;
726
728
  }
727
- return l;
729
+ return d;
728
730
  }
729
- function Z(f) {
730
- return f.tabIndex === -2;
731
+ function P(c) {
732
+ return c.tabIndex === -2;
731
733
  }
732
- function J(f) {
733
- return f ? e.items.filter((y) => y.group === f) : e.items;
734
+ function ae(c) {
735
+ return c ? e.items.filter((b) => b.group === c) : e.items;
734
736
  }
735
737
  return o({
736
- focusItem: z,
737
- getItem: K,
738
- getAdjacentItemIndex: R,
739
- getFirstFocusableItemIndex: G,
740
- getLastFocusableItemIndex: C
741
- }), (f, y) => (u(), V(Qe(r.value), {
738
+ focusItem: C,
739
+ getItem: W,
740
+ getAdjacentItemIndex: N,
741
+ getFirstFocusableItemIndex: j,
742
+ getLastFocusableItemIndex: A
743
+ }), (c, b) => (u(), E(Ae(s.value), {
742
744
  ref_key: "listRef",
743
745
  ref: i,
744
- class: E(["q-list", { "q-list--disabled": e.disabled }, e.class]),
746
+ class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
745
747
  role: "listbox",
746
748
  tabindex: e.disabled ? -1 : 0,
747
- onFocus: _,
748
- onMousedown: q,
749
- onMouseup: g,
750
- onKeydown: F
749
+ onFocus: y,
750
+ onMousedown: L,
751
+ onMouseup: _,
752
+ onKeydown: U
751
753
  }, {
752
754
  default: k(() => [
753
- (u(!0), p(oe, null, ye(d.value, ($) => (u(), V(v(Ft), {
754
- key: $.id,
755
- title: d.value.length === 1 ? void 0 : $.title,
756
- disabled: $.disabled
755
+ (u(!0), m(te, null, be(r.value, (q) => (u(), E(h(Qt), {
756
+ key: q.id,
757
+ title: r.value.length === 1 ? void 0 : q.title,
758
+ disabled: q.disabled
757
759
  }, {
758
760
  default: k(() => [
759
- (u(!0), p(oe, null, ye(J($.id), (l) => (u(), V(v(At), {
760
- key: l[e.itemValue],
761
- value: l[e.itemValue],
762
- label: l[e.itemLabel],
763
- icon: l.icon,
764
- disabled: e.disabled || l.disabled,
765
- highlighted: e.highlighted === l[e.itemValue],
766
- selected: n.value === l[e.itemValue],
767
- onSelect: c
761
+ (u(!0), m(te, null, be(ae(q.id), (d) => (u(), E(h(At), {
762
+ key: d[e.itemValue],
763
+ value: d[e.itemValue],
764
+ label: d[e.itemLabel],
765
+ icon: d.icon,
766
+ disabled: e.disabled || d.disabled,
767
+ highlighted: e.highlighted === d[e.itemValue],
768
+ selected: n.value === d[e.itemValue],
769
+ onSelect: f
768
770
  }, {
769
771
  default: k(() => [
770
- m(f.$slots, "item", { item: l })
772
+ v(c.$slots, "item", { item: d })
771
773
  ]),
772
774
  _: 2
773
775
  }, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -783,11 +785,11 @@ let Bt = 0;
783
785
  function me(t) {
784
786
  return t || `uid-${++Bt}`;
785
787
  }
786
- const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = { class: "q-list-item__check-container" }, Tt = {
788
+ const St = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-list-item__check-container" }, Et = {
787
789
  check: {
788
790
  icon: "check"
789
791
  }
790
- }, Dt = /* @__PURE__ */ S({
792
+ }, Tt = /* @__PURE__ */ x({
791
793
  __name: "QListItem",
792
794
  props: {
793
795
  value: { type: [String, Number, Boolean, Symbol] },
@@ -795,24 +797,24 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
795
797
  icon: { default: void 0 },
796
798
  selected: { type: Boolean },
797
799
  highlighted: { type: Boolean },
798
- icons: { default: () => Tt },
800
+ icons: { default: () => Et },
799
801
  disabled: { type: Boolean }
800
802
  },
801
803
  emits: ["select"],
802
804
  setup(t, { emit: o }) {
803
- const e = t, n = o, a = me();
804
- function r() {
805
+ const e = t, n = o, l = me();
806
+ function s() {
805
807
  e.disabled || n("select", e.value);
806
808
  }
807
- function d(i) {
808
- i.key === "Tab" && r(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), r());
809
+ function r(i) {
810
+ i.key === "Tab" && s(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), s());
809
811
  }
810
- return (i, c) => (u(), p("li", {
811
- id: v(a),
812
+ return (i, f) => (u(), m("li", {
813
+ id: h(l),
812
814
  "data-key": e.value,
813
815
  role: "option",
814
816
  tabindex: e.disabled ? void 0 : -2,
815
- class: E([
817
+ class: T([
816
818
  "q-list-item",
817
819
  {
818
820
  "q-list-item--disabled": e.disabled,
@@ -822,19 +824,19 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
822
824
  ]),
823
825
  "aria-label": e.label,
824
826
  "aria-selected": e.disabled ? void 0 : e.selected,
825
- onKeydown: d,
826
- onClick: de(r, ["stop", "prevent"])
827
+ onKeydown: r,
828
+ onClick: de(s, ["stop", "prevent"])
827
829
  }, [
828
- m(i.$slots, "default", {}, () => [
829
- e.icon ? (u(), V(v(te), ne(se({ key: 0 }, e.icon)), null, 16)) : I("", !0),
830
- ue(" " + N(e.label), 1)
830
+ v(i.$slots, "default", {}, () => [
831
+ e.icon ? (u(), E(h(ee), ne(se({ key: 0 }, e.icon)), null, 16)) : I("", !0),
832
+ ue(" " + K(e.label), 1)
831
833
  ]),
832
- Y("div", Et, [
833
- e.selected ? (u(), V(v(te), se({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
834
+ J("div", Vt, [
835
+ e.selected ? (u(), E(h(ee), se({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
834
836
  ])
835
- ], 42, Vt));
837
+ ], 42, St));
836
838
  }
837
- }), zt = ["aria-labelledby"], Ct = ["id"], Qt = /* @__PURE__ */ S({
839
+ }), Dt = ["aria-labelledby"], zt = ["id"], Ct = /* @__PURE__ */ x({
838
840
  __name: "QListItemGroup",
839
841
  props: {
840
842
  title: { default: "" },
@@ -842,96 +844,106 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
842
844
  },
843
845
  setup(t) {
844
846
  const o = t, e = me();
845
- return (n, a) => (u(), p("ul", {
847
+ return (n, l) => (u(), m("ul", {
846
848
  class: "q-list-item-group",
847
849
  role: "group",
848
- "aria-labelledby": o.title ? v(e) : void 0
850
+ "aria-labelledby": o.title ? h(e) : void 0
849
851
  }, [
850
- o.title ? (u(), p("li", {
852
+ o.title ? (u(), m("li", {
851
853
  key: 0,
852
- id: v(e),
854
+ id: h(e),
853
855
  class: "q-list-item-group__title",
854
856
  role: "presentation"
855
- }, N(o.title), 9, Ct)) : I("", !0),
856
- m(n.$slots, "default")
857
- ], 8, zt));
857
+ }, K(o.title), 9, zt)) : I("", !0),
858
+ v(n.$slots, "default")
859
+ ], 8, Dt));
858
860
  }
859
- }), Oe = B(xt), At = B(Dt), Ft = B(Qt);
861
+ }), Re = S(xt), At = S(Tt), Qt = S(Ct);
860
862
  function Mt(t, o, e = "right", n) {
861
- const a = t.getBoundingClientRect(), r = a.x + window.scrollX, d = a.y + window.scrollY, i = o == null ? void 0 : o.getBoundingClientRect(), c = (i == null ? void 0 : i.width) ?? 0, q = (i == null ? void 0 : i.height) ?? 0;
862
- let g = e;
863
- i && !Ue(a, i, g) && (g = Rt(a, i, g));
864
- const _ = { x: 0, y: 0, placement: g };
865
- switch (g) {
863
+ const l = t.getBoundingClientRect(), s = l.x + window.scrollX, r = l.y + window.scrollY, i = o == null ? void 0 : o.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, L = (i == null ? void 0 : i.height) ?? 0;
864
+ let _ = e;
865
+ i && ge(l, i, _) !== 0 && (_ = Ot(l, i, _));
866
+ const y = { x: 0, y: 0, placement: _ };
867
+ switch (_) {
866
868
  case "top":
867
- n === "anchor" ? _.x = r : _.x = r + (a.width - c) / 2, _.y = d - q;
869
+ n === "anchor" ? y.x = s : y.x = s + (l.width - f) / 2, y.y = r - L;
868
870
  break;
869
871
  case "bottom":
870
- n === "anchor" ? _.x = r : _.x = r + (a.width - c) / 2, _.y = d + a.height;
872
+ n === "anchor" ? y.x = s : y.x = s + (l.width - f) / 2, y.y = r + l.height;
871
873
  break;
872
874
  case "left":
873
- _.x = r - c, _.y = d + a.height / 2 - q / 2;
875
+ y.x = s - f, y.y = r + l.height / 2 - L / 2;
874
876
  break;
875
877
  case "right":
876
- _.x = r + a.width, _.y = d + a.height / 2 - q / 2;
878
+ y.x = s + l.width, y.y = r + l.height / 2 - L / 2;
877
879
  break;
878
880
  }
879
- return n === "anchor" && a.width >= c && (_.width = a.width), _;
881
+ return y.x = Math.max(0, y.x), y.y = Math.max(0, y.y), n === "anchor" && l.width >= f && (y.width = l.width), y;
880
882
  }
881
- function Ue(t, o, e) {
882
- let n = !1, a = !1;
883
+ function ge(t, o, e) {
884
+ let n = 0, l = 0;
883
885
  switch (e) {
884
886
  case "top":
885
- n = Te(t, o), a = t.top > o.height;
887
+ n = Te(t, o), l = t.top - o.height;
886
888
  break;
887
889
  case "bottom":
888
- n = Te(t, o), a = window.innerHeight - t.top - t.height > o.height;
890
+ n = Te(t, o), l = window.innerHeight - t.top - t.height - o.height;
889
891
  break;
890
892
  case "left":
891
- n = t.left > o.width, a = Ee(t, o);
893
+ n = t.left - o.width, l = Ee(t, o);
892
894
  break;
893
895
  case "right":
894
- n = window.innerWidth - t.left - t.width > o.width, a = Ee(t, o);
896
+ n = window.innerWidth - t.left - t.width - o.width, l = Ee(t, o);
895
897
  break;
896
898
  }
897
- return n && a;
899
+ return Math.min(0, Math.min(n, l));
898
900
  }
899
901
  function Ee(t, o) {
900
- return window.innerHeight - t.top - t.height / 2 > o.height / 2 && t.top + t.height / 2 > o.height / 2;
902
+ return Math.min(
903
+ window.innerHeight - t.top - t.height / 2 - o.height / 2,
904
+ t.top + t.height / 2 - o.height / 2
905
+ );
901
906
  }
902
907
  function Te(t, o) {
903
- return window.innerWidth - t.left - t.width / 2 > o.width / 2 && t.left + t.width / 2 > o.width / 2;
908
+ return Math.min(
909
+ window.innerWidth - t.left - t.width / 2 - o.width / 2,
910
+ t.left + t.width / 2 - o.width / 2
911
+ );
904
912
  }
905
- function Rt(t, o, e) {
913
+ function Ot(t, o, e) {
906
914
  const n = {
907
915
  top: ["bottom", "left", "right"],
908
916
  bottom: ["top", "left", "right"],
909
917
  left: ["right", "top", "bottom"],
910
918
  right: ["left", "top", "bottom"]
911
919
  };
912
- for (const a of n[e])
913
- if (Ue(t, o, a))
914
- return a;
915
- return e;
920
+ let l = e, s = ge(t, o, e);
921
+ for (const r of n[e]) {
922
+ const i = ge(t, o, r);
923
+ i > s && (s = i, l = r);
924
+ }
925
+ return l;
916
926
  }
917
- function ae(t) {
927
+ function Ft(t) {
918
928
  return typeof t == "string" ? document.querySelector(t) : t;
919
929
  }
920
- const Ot = ["role"], Ut = {
930
+ const Rt = ["role"], Ut = {
921
931
  key: 0,
922
932
  role: "presentation",
923
933
  class: "q-overlay__arrow"
924
- }, Nt = /* @__PURE__ */ S({
934
+ }, Nt = /* @__PURE__ */ x({
925
935
  inheritAttrs: !1,
926
936
  __name: "QOverlay",
927
- props: /* @__PURE__ */ H({
937
+ props: /* @__PURE__ */ G({
928
938
  anchor: { default: void 0 },
929
939
  appearance: { default: "regular" },
930
940
  arrow: { type: Boolean },
931
941
  attach: { default: "body" },
932
942
  backdropBlur: { type: Boolean },
933
943
  delay: { default: 500 },
944
+ scrollLock: { type: Boolean },
934
945
  offset: { default: 8 },
946
+ persistent: { type: Boolean },
935
947
  placement: { default: "right" },
936
948
  spy: { type: Boolean },
937
949
  transition: { default: "fade" },
@@ -942,204 +954,200 @@ const Ot = ["role"], Ut = {
942
954
  modelValue: { type: Boolean },
943
955
  modelModifiers: {}
944
956
  }),
945
- emits: /* @__PURE__ */ H(["enter", "leave"], ["update:modelValue"]),
957
+ emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
946
958
  setup(t, { emit: o }) {
947
- const e = t, n = o, a = X(t, "modelValue"), r = w(() => [
959
+ const e = t, n = o, l = Z(t, "modelValue"), s = w(() => [
948
960
  "q-overlay",
949
961
  `q-overlay--${i.placement}`,
950
- { "q-overlay--inverted": e.appearance === "inverted" },
962
+ {
963
+ "q-overlay--independent": e.anchor === void 0,
964
+ "q-overlay--inverted": e.appearance === "inverted"
965
+ },
951
966
  e.class
952
- ]), d = w(
953
- () => (a.value || i.animating) && e.trigger === "click"
954
- ), i = He({
967
+ ]), r = w(
968
+ () => (l.value || i.animating) && (e.anchor === void 0 || e.trigger === "click")
969
+ ), i = Ne({
955
970
  animating: !1,
956
971
  top: 0,
957
972
  left: 0,
958
973
  width: 0,
959
974
  placement: e.placement
960
975
  });
961
- P(a, () => i.animating = !0);
962
- const c = w(() => {
963
- let l = 0, h = 0;
964
- switch (i.placement) {
976
+ Y(l, () => i.animating = !0);
977
+ const f = w(() => {
978
+ if (e.anchor === void 0)
979
+ return;
980
+ const p = ["top", "bottom"].includes(i.placement) ? i.width : void 0;
981
+ return {
982
+ top: `${i.top}px`,
983
+ left: `${i.left}px`,
984
+ width: p !== void 0 ? `${p}px` : void 0
985
+ };
986
+ }), L = D(null);
987
+ function _() {
988
+ const p = A();
989
+ if (!p)
990
+ return;
991
+ const M = Mt(p, L.value, e.placement, e.width);
992
+ let R = 0, oe = 0;
993
+ switch (M.placement) {
965
994
  case "top":
966
- h = -(e.offset || 0);
995
+ oe = -(e.offset || 0);
967
996
  break;
968
997
  case "bottom":
969
- h = e.offset || 0;
998
+ oe = e.offset || 0;
970
999
  break;
971
1000
  case "left":
972
- l = -(e.offset || 0);
1001
+ R = -(e.offset || 0);
973
1002
  break;
974
1003
  case "right":
975
- l = e.offset || 0;
1004
+ R = e.offset || 0;
976
1005
  break;
977
1006
  }
978
- const O = {
979
- top: `${i.top + h}px`,
980
- left: `${i.left + l}px`
981
- };
982
- return i.width !== void 0 && ["top", "bottom"].includes(i.placement) && (O.width = `${i.width}px`), O;
983
- }), q = T(null);
984
- function g() {
985
- if (e.anchor) {
986
- const l = ae(e.anchor);
987
- if (l) {
988
- const h = Mt(
989
- l,
990
- q.value,
991
- e.placement,
992
- e.width
993
- );
994
- i.left = h.x, i.top = h.y, i.width = h.width, i.placement = h.placement;
995
- }
996
- }
1007
+ i.left = M.x + R, i.top = M.y + oe, i.width = M.width, i.placement = M.placement;
997
1008
  }
998
- P([a, () => e.placement], g);
999
- let _;
1000
- function F() {
1001
- z(0);
1009
+ Y([l, () => e.placement], _);
1010
+ let y;
1011
+ function U() {
1012
+ C(0);
1002
1013
  }
1003
- function D() {
1004
- z(e.delay);
1014
+ function z() {
1015
+ C(e.delay);
1005
1016
  }
1006
- function z(l) {
1007
- _ || (_ = window.setTimeout(() => {
1008
- a.value = !0, U(() => {
1009
- var h;
1010
- e.trigger === "click" && ((h = q.value) == null || h.focus());
1011
- });
1012
- }, l));
1017
+ function C(p) {
1018
+ y || (y = window.setTimeout(() => {
1019
+ l.value = !0;
1020
+ }, p));
1013
1021
  }
1014
- function L() {
1015
- clearTimeout(_), _ = void 0, a.value = !1, U(() => {
1022
+ function V() {
1023
+ clearTimeout(y), y = void 0, l.value = !1, H(() => {
1016
1024
  if (e.anchor && e.trigger === "click") {
1017
- const l = ae(e.anchor);
1018
- l == null || l.focus();
1025
+ const p = A();
1026
+ p == null || p.focus();
1019
1027
  }
1020
1028
  });
1021
1029
  }
1022
- let K;
1030
+ let W;
1023
1031
  function le() {
1024
1032
  n("enter");
1025
1033
  }
1026
- function G() {
1027
- window.clearTimeout(K), K = window.setTimeout(() => i.animating = !1, 200), n("leave");
1028
- }
1029
- let C;
1030
- function M() {
1031
- U(() => {
1032
- if (!e.anchor)
1033
- return;
1034
- const l = ae(e.anchor);
1035
- if (l)
1036
- switch (e.trigger) {
1034
+ function j() {
1035
+ window.clearTimeout(W), W = window.setTimeout(() => i.animating = !1, 200), n("leave");
1036
+ }
1037
+ function A() {
1038
+ return e.anchor ? Ft(e.anchor) : null;
1039
+ }
1040
+ let Q;
1041
+ function X() {
1042
+ H(() => {
1043
+ const p = A();
1044
+ if (p)
1045
+ switch (Q = new MutationObserver(_), Q.observe(p, {
1046
+ attributes: !1,
1047
+ childList: !0,
1048
+ characterData: !0,
1049
+ subtree: !0
1050
+ }), e.trigger) {
1037
1051
  case "click":
1038
- l.addEventListener("click", F);
1052
+ p.addEventListener("click", U);
1039
1053
  break;
1040
1054
  case "hover":
1041
- l.addEventListener("mouseenter", D), l.addEventListener("mouseleave", L), l.addEventListener("focusin", F), l.addEventListener("focusout", L);
1055
+ p.addEventListener("mouseenter", z), p.addEventListener("mouseleave", V), p.addEventListener("focusin", U), p.addEventListener("focusout", V);
1042
1056
  break;
1043
1057
  }
1044
1058
  });
1045
1059
  }
1046
- function W() {
1047
- U(() => {
1048
- if (!e.anchor)
1049
- return;
1050
- const l = ae(e.anchor);
1051
- l && (window.addEventListener("resize", g), C = new MutationObserver(g), C.observe(l, {
1052
- attributes: !1,
1053
- childList: !0,
1054
- characterData: !0,
1055
- subtree: !0
1056
- }), g());
1057
- });
1058
- }
1059
- function R() {
1060
- if (!e.anchor)
1061
- return;
1062
- const l = ae(e.anchor);
1063
- if (l)
1064
- switch (e.trigger) {
1060
+ function N() {
1061
+ const p = A();
1062
+ if (p)
1063
+ switch (Q == null || Q.disconnect(), e.trigger) {
1065
1064
  case "click":
1066
- l.removeEventListener("click", F);
1065
+ p.removeEventListener("click", U);
1067
1066
  break;
1068
1067
  case "hover":
1069
- l.removeEventListener("mouseenter", D), l.removeEventListener("mouseleave", L), l.removeEventListener("focusin", F), l.removeEventListener("focusout", L);
1068
+ p.removeEventListener("mouseenter", z), p.removeEventListener("mouseleave", V), p.removeEventListener("focusin", U), p.removeEventListener("focusout", V);
1070
1069
  break;
1071
1070
  }
1072
1071
  }
1073
- function Z() {
1074
- window.removeEventListener("resize", g), C == null || C.disconnect();
1072
+ function P() {
1073
+ H(() => {
1074
+ window.addEventListener("resize", _), e.scrollLock || window.addEventListener("scroll", _), _();
1075
+ });
1075
1076
  }
1076
- let J;
1077
- function f() {
1078
- if (!e.anchor)
1079
- return;
1080
- ae(e.anchor) ? (g(), J = window.setTimeout(f, 100)) : L();
1077
+ function ae() {
1078
+ window.removeEventListener("resize", _), e.scrollLock || window.removeEventListener("scroll", _);
1079
+ }
1080
+ let c;
1081
+ function b() {
1082
+ A() ? (_(), c = window.setTimeout(b, 100)) : V();
1083
+ }
1084
+ function q() {
1085
+ P(), e.spy && b(), e.scrollLock && document.body.classList.add("no-scroll"), H(() => {
1086
+ var p;
1087
+ (e.anchor === void 0 || e.trigger === "click") && ((p = L.value) == null || p.focus());
1088
+ });
1081
1089
  }
1082
- function y() {
1083
- W(), e.spy && f(), e.anchor && document.addEventListener("scroll", L);
1090
+ function d() {
1091
+ ae(), e.spy && (clearTimeout(c), c = void 0), e.scrollLock && document.body.classList.remove("no-scroll");
1084
1092
  }
1085
1093
  function $() {
1086
- Z(), e.spy && (clearTimeout(J), J = void 0), document.removeEventListener("scroll", L);
1094
+ e.persistent || V();
1087
1095
  }
1088
- return Ke(() => {
1089
- R(), $();
1090
- }), Ae(() => {
1091
- U(() => {
1092
- M(), g();
1096
+ return He(() => {
1097
+ N(), d();
1098
+ }), Qe(() => {
1099
+ H(() => {
1100
+ X(), _();
1093
1101
  });
1094
- }), P(
1095
- a,
1096
- (l) => {
1097
- l ? y() : $();
1102
+ }), Y(
1103
+ l,
1104
+ (p) => {
1105
+ p ? q() : d();
1098
1106
  },
1099
1107
  { immediate: !0 }
1100
- ), (l, h) => (u(), V(Ge, {
1101
- disabled: !a.value && !i.animating || !e.attach,
1108
+ ), (p, M) => (u(), E(Ke, {
1109
+ disabled: !l.value && !i.animating || !e.attach,
1102
1110
  to: e.attach
1103
1111
  }, [
1104
- d.value ? (u(), p("div", {
1112
+ r.value ? (u(), m("div", {
1105
1113
  key: 0,
1106
- class: E([
1114
+ class: T([
1107
1115
  "q-overlay__underlay",
1108
1116
  { "q-overlay__underlay--blur": e.backdropBlur }
1109
1117
  ])
1110
1118
  }, null, 2)) : I("", !0),
1111
- A(We, {
1119
+ F(Ge, {
1112
1120
  name: e.transition,
1113
1121
  appear: "",
1114
1122
  onEnter: le,
1115
- onLeave: G
1123
+ onLeave: j
1116
1124
  }, {
1117
1125
  default: k(() => [
1118
- a.value ? (u(), p("div", {
1126
+ l.value ? (u(), m("div", {
1119
1127
  key: 0,
1120
- class: E(r.value),
1121
- style: pe(c.value)
1128
+ class: T(s.value),
1129
+ style: pe(f.value)
1122
1130
  }, [
1123
- Y("div", se({
1131
+ J("div", se({
1124
1132
  class: "q-overlay__content",
1125
1133
  ref_key: "overlayRef",
1126
- ref: q,
1134
+ ref: L,
1127
1135
  tabindex: "-1",
1128
- role: d.value ? "dialog" : void 0
1129
- }, l.$attrs, {
1130
- onKeydown: je(L, ["escape"]),
1131
- onBlur: L
1136
+ role: r.value ? "dialog" : void 0
1137
+ }, p.$attrs, {
1138
+ onKeydown: We($, ["escape"]),
1139
+ onBlur: $
1132
1140
  }), [
1133
- e.arrow ? (u(), p("div", Ut)) : I("", !0),
1134
- m(l.$slots, "default")
1135
- ], 16, Ot)
1141
+ e.arrow ? (u(), m("div", Ut)) : I("", !0),
1142
+ v(p.$slots, "default")
1143
+ ], 16, Rt)
1136
1144
  ], 6)) : I("", !0)
1137
1145
  ]),
1138
1146
  _: 3
1139
1147
  }, 8, ["name"])
1140
1148
  ], 8, ["disabled", "to"]));
1141
1149
  }
1142
- }), he = B(Nt), Ht = ["id"], Kt = {
1150
+ }), ve = S(Nt), Ht = ["id"], Kt = {
1143
1151
  key: 0,
1144
1152
  class: "q-field__label"
1145
1153
  }, Gt = ["for"], Wt = {
@@ -1148,10 +1156,10 @@ const Ot = ["role"], Ut = {
1148
1156
  }, jt = {
1149
1157
  key: 1,
1150
1158
  class: "q-field__append"
1151
- }, Pt = {
1159
+ }, Xt = {
1152
1160
  key: 1,
1153
1161
  class: "q-field__extras"
1154
- }, Xt = /* @__PURE__ */ S({
1162
+ }, Yt = /* @__PURE__ */ x({
1155
1163
  inheritAttrs: !1,
1156
1164
  __name: "QField",
1157
1165
  props: {
@@ -1165,53 +1173,53 @@ const Ot = ["role"], Ut = {
1165
1173
  class: { default: void 0 }
1166
1174
  },
1167
1175
  setup(t, { expose: o }) {
1168
- const e = t, n = me(e.id), a = T(null), r = w(() => e.required && !e.readonly && !e.disabled);
1176
+ const e = t, n = me(e.id), l = D(null), s = w(() => e.required && !e.readonly && !e.disabled);
1169
1177
  return o({
1170
- fieldRef: a
1171
- }), (d, i) => (u(), p("div", {
1172
- id: v(n),
1173
- class: E([
1178
+ fieldRef: l
1179
+ }), (r, i) => (u(), m("div", {
1180
+ id: h(n),
1181
+ class: T([
1174
1182
  "q-field",
1175
1183
  `q-field--${e.size}`,
1176
1184
  {
1177
1185
  "q-field--readonly": e.readonly,
1178
1186
  "q-field--disabled": e.disabled,
1179
- "q-field--required": r.value
1187
+ "q-field--required": s.value
1180
1188
  },
1181
1189
  e.class
1182
1190
  ])
1183
1191
  }, [
1184
- e.label ? (u(), p("div", Kt, [
1185
- m(d.$slots, "label.prepend"),
1186
- Y("label", {
1192
+ e.label ? (u(), m("div", Kt, [
1193
+ v(r.$slots, "label.prepend"),
1194
+ J("label", {
1187
1195
  for: e.for
1188
- }, N(e.label), 9, Gt),
1189
- m(d.$slots, "label.append")
1196
+ }, K(e.label), 9, Gt),
1197
+ v(r.$slots, "label.append")
1190
1198
  ])) : I("", !0),
1191
- m(d.$slots, "control", {}, () => [
1192
- Y("div", se({
1199
+ v(r.$slots, "control", {}, () => [
1200
+ J("div", se({
1193
1201
  class: "q-field__control",
1194
1202
  ref_key: "fieldRef",
1195
- ref: a
1196
- }, d.$attrs), [
1197
- d.$slots.prepend ? (u(), p("div", Wt, [
1198
- m(d.$slots, "prepend")
1203
+ ref: l
1204
+ }, r.$attrs), [
1205
+ r.$slots.prepend ? (u(), m("div", Wt, [
1206
+ v(r.$slots, "prepend")
1199
1207
  ])) : I("", !0),
1200
- m(d.$slots, "default"),
1201
- d.$slots.append ? (u(), p("div", jt, [
1202
- m(d.$slots, "append")
1208
+ v(r.$slots, "default"),
1209
+ r.$slots.append ? (u(), m("div", jt, [
1210
+ v(r.$slots, "append")
1203
1211
  ])) : I("", !0)
1204
1212
  ], 16)
1205
1213
  ]),
1206
- d.$slots.extras ? (u(), p("div", Pt, [
1207
- m(d.$slots, "extras")
1214
+ r.$slots.extras ? (u(), m("div", Xt, [
1215
+ v(r.$slots, "extras")
1208
1216
  ])) : I("", !0)
1209
1217
  ], 10, Ht));
1210
1218
  }
1211
- }), qe = B(Xt), Yt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Zt = /* @__PURE__ */ S({
1219
+ }), qe = S(Yt), Zt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Jt = /* @__PURE__ */ x({
1212
1220
  inheritAttrs: !1,
1213
1221
  __name: "QTextField",
1214
- props: /* @__PURE__ */ H({
1222
+ props: /* @__PURE__ */ G({
1215
1223
  id: { default: void 0 },
1216
1224
  placeholder: { default: "" },
1217
1225
  label: { default: "" },
@@ -1229,20 +1237,20 @@ const Ot = ["role"], Ut = {
1229
1237
  }),
1230
1238
  emits: ["update:modelValue"],
1231
1239
  setup(t, { expose: o }) {
1232
- const e = t, n = X(t, "modelValue"), a = me(e.id), r = T(null), d = T(null), i = w(
1240
+ const e = t, n = Z(t, "modelValue"), l = me(e.id), s = D(null), r = D(null), i = w(
1233
1241
  () => e.readonly || e.disabled ? "" : e.placeholder
1234
1242
  );
1235
1243
  return o({
1236
1244
  fieldRef: w(() => {
1237
- var c;
1238
- return (c = r.value) == null ? void 0 : c.fieldRef;
1245
+ var f;
1246
+ return (f = s.value) == null ? void 0 : f.fieldRef;
1239
1247
  }),
1240
- inputRef: d
1241
- }), (c, q) => (u(), V(v(qe), {
1248
+ inputRef: r
1249
+ }), (f, L) => (u(), E(h(qe), {
1242
1250
  ref_key: "fieldRef",
1243
- ref: r,
1244
- class: E(["q-text-field", e.class]),
1245
- for: v(a),
1251
+ ref: s,
1252
+ class: T(["q-text-field", e.class]),
1253
+ for: h(l),
1246
1254
  label: e.label,
1247
1255
  size: e.size,
1248
1256
  readonly: e.readonly,
@@ -1250,17 +1258,17 @@ const Ot = ["role"], Ut = {
1250
1258
  required: e.required
1251
1259
  }, _e({
1252
1260
  "label.prepend": k(() => [
1253
- m(c.$slots, "label.prepend")
1261
+ v(f.$slots, "label.prepend")
1254
1262
  ]),
1255
1263
  "label.append": k(() => [
1256
- m(c.$slots, "label.append")
1264
+ v(f.$slots, "label.append")
1257
1265
  ]),
1258
1266
  default: k(() => [
1259
- Pe(Y("input", se({
1260
- "onUpdate:modelValue": q[0] || (q[0] = (g) => n.value = g),
1267
+ je(J("input", se({
1268
+ "onUpdate:modelValue": L[0] || (L[0] = (_) => n.value = _),
1261
1269
  ref_key: "inputRef",
1262
- ref: d,
1263
- id: v(a),
1270
+ ref: r,
1271
+ id: h(l),
1264
1272
  class: "q-text-field__input",
1265
1273
  type: e.type,
1266
1274
  role: e.role,
@@ -1269,36 +1277,36 @@ const Ot = ["role"], Ut = {
1269
1277
  readonly: e.readonly,
1270
1278
  disabled: e.disabled,
1271
1279
  maxlength: e.maxLength
1272
- }, c.$attrs), null, 16, Yt), [
1280
+ }, f.$attrs), null, 16, Zt), [
1273
1281
  [Xe, n.value]
1274
1282
  ])
1275
1283
  ]),
1276
1284
  _: 2
1277
1285
  }, [
1278
- c.$slots.prepend ? {
1286
+ f.$slots.prepend ? {
1279
1287
  name: "prepend",
1280
1288
  fn: k(() => [
1281
- m(c.$slots, "prepend")
1289
+ v(f.$slots, "prepend")
1282
1290
  ]),
1283
1291
  key: "0"
1284
1292
  } : void 0,
1285
- c.$slots.append ? {
1293
+ f.$slots.append ? {
1286
1294
  name: "append",
1287
1295
  fn: k(() => [
1288
- m(c.$slots, "append")
1296
+ v(f.$slots, "append")
1289
1297
  ]),
1290
1298
  key: "1"
1291
1299
  } : void 0,
1292
- c.$slots.extras ? {
1300
+ f.$slots.extras ? {
1293
1301
  name: "extras",
1294
1302
  fn: k(() => [
1295
- m(c.$slots, "extras")
1303
+ v(f.$slots, "extras")
1296
1304
  ]),
1297
1305
  key: "2"
1298
1306
  } : void 0
1299
1307
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1300
1308
  }
1301
- }), Jt = B(Zt), eo = ["data-key"], to = {
1309
+ }), Pt = S(Jt), eo = ["data-key"], to = {
1302
1310
  key: 0,
1303
1311
  class: "q-select__loader"
1304
1312
  }, oo = {
@@ -1313,9 +1321,9 @@ const Ot = ["role"], Ut = {
1313
1321
  clear: {
1314
1322
  icon: "close"
1315
1323
  }
1316
- }, ao = /* @__PURE__ */ S({
1324
+ }, ao = /* @__PURE__ */ x({
1317
1325
  __name: "QCombobox",
1318
- props: /* @__PURE__ */ H({
1326
+ props: /* @__PURE__ */ G({
1319
1327
  id: { default: void 0 },
1320
1328
  placeholder: { default: "" },
1321
1329
  selectionMode: { default: "automatic" },
@@ -1345,161 +1353,161 @@ const Ot = ["role"], Ut = {
1345
1353
  search: { default: "" },
1346
1354
  searchModifiers: {}
1347
1355
  }),
1348
- emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1356
+ emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1349
1357
  setup(t, { expose: o, emit: e }) {
1350
- const n = t, a = e, r = X(t, "modelValue"), d = X(t, "open"), i = X(t, "search"), c = T(void 0), q = T(null), g = T(null), _ = T(null);
1351
- Ae(M);
1352
- const F = w(() => n.clearable && !n.readonly && !n.disabled), D = w(() => {
1353
- var s;
1354
- return n.filterMode === "manual" || !G.value ? n.items : (s = n.items) == null ? void 0 : s.filter(
1355
- (b) => b[n.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1358
+ const n = t, l = e, s = Z(t, "modelValue"), r = Z(t, "open"), i = Z(t, "search"), f = D(void 0), L = D(null), _ = D(null), y = D(null);
1359
+ Qe(Q);
1360
+ const U = w(() => n.clearable && !n.readonly && !n.disabled), z = w(() => {
1361
+ var a;
1362
+ return n.filterMode === "manual" || !j.value ? n.items : (a = n.items) == null ? void 0 : a.filter(
1363
+ (g) => g[n.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1356
1364
  );
1357
- }), z = w(() => {
1358
- var s;
1359
- return (s = n.items) == null ? void 0 : s.find((b) => b[n.itemValue] === r.value);
1360
- }), L = w(() => z.value === void 0), K = w(() => {
1361
- const s = c.value;
1362
- if (s !== void 0 && D.value[s])
1363
- return D.value[s];
1365
+ }), C = w(() => {
1366
+ var a;
1367
+ return (a = n.items) == null ? void 0 : a.find((g) => g[n.itemValue] === s.value);
1368
+ }), V = w(() => C.value === void 0), W = w(() => {
1369
+ const a = f.value;
1370
+ if (a !== void 0 && z.value[a])
1371
+ return z.value[a];
1364
1372
  }), le = w(() => {
1365
- var b;
1366
- if (c.value === void 0)
1373
+ var g;
1374
+ if (f.value === void 0)
1367
1375
  return;
1368
- const s = (b = g.value) == null ? void 0 : b.getItem(c.value);
1369
- return s == null ? void 0 : s.id;
1370
- }), G = w(() => {
1371
- var s;
1372
- return i.value.length > 0 && i.value !== ((s = z.value) == null ? void 0 : s[n.itemLabel]);
1376
+ const a = (g = _.value) == null ? void 0 : g.getItem(f.value);
1377
+ return a == null ? void 0 : a.id;
1378
+ }), j = w(() => {
1379
+ var a;
1380
+ return i.value.length > 0 && i.value !== ((a = C.value) == null ? void 0 : a[n.itemLabel]);
1373
1381
  });
1374
- function C(s) {
1375
- r.value = s, R();
1382
+ function A(a) {
1383
+ s.value = a, N();
1376
1384
  }
1377
- function M() {
1378
- var b;
1379
- const s = ((b = z.value) == null ? void 0 : b[n.itemLabel]) || "";
1380
- i.value !== s && (i.value = s);
1385
+ function Q() {
1386
+ var g;
1387
+ const a = ((g = C.value) == null ? void 0 : g[n.itemLabel]) || "";
1388
+ i.value !== a && (i.value = a);
1381
1389
  }
1382
- function W() {
1383
- d.value || n.readonly || n.disabled || (a("before-show"), d.value = !0, ee());
1390
+ function X() {
1391
+ r.value || n.readonly || n.disabled || (l("before-show"), r.value = !0, M());
1384
1392
  }
1385
- function R() {
1386
- d.value && (a("before-hide"), d.value = !1, c.value = void 0);
1393
+ function N() {
1394
+ r.value && (l("before-hide"), r.value = !1, f.value = void 0);
1387
1395
  }
1388
- function Z() {
1389
- d.value ? R() : f();
1396
+ function P() {
1397
+ r.value ? N() : c();
1390
1398
  }
1391
- function J() {
1392
- F.value && (r.value = n.emptyValue, c.value = void 0, ee());
1399
+ function ae() {
1400
+ U.value && (s.value = n.emptyValue, f.value = void 0, M());
1393
1401
  }
1394
- function f() {
1395
- if (W(), z.value !== void 0) {
1396
- const s = D.value.indexOf(z.value);
1397
- s !== -1 && U(() => Ie(s));
1402
+ function c() {
1403
+ if (X(), C.value !== void 0) {
1404
+ const a = z.value.indexOf(C.value);
1405
+ a !== -1 && H(() => Le(a));
1398
1406
  }
1399
1407
  }
1400
- function y(s) {
1401
- var b, x;
1402
- if (!(!s.key || n.readonly || n.disabled))
1403
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
1404
- M(), d.value && R();
1405
- else if (["ArrowDown", "ArrowUp"].includes(s.key))
1406
- d.value ? U(() => {
1407
- if (c.value === void 0)
1408
- $();
1408
+ function b(a) {
1409
+ var g, B;
1410
+ if (!(!a.key || n.readonly || n.disabled))
1411
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), a.key === "Escape")
1412
+ Q(), r.value && N();
1413
+ else if (["ArrowDown", "ArrowUp"].includes(a.key))
1414
+ r.value ? H(() => {
1415
+ if (f.value === void 0)
1416
+ q();
1409
1417
  else {
1410
- const Q = s.key === "ArrowDown" ? "next" : "prev";
1411
- h(c.value, Q);
1418
+ const O = a.key === "ArrowDown" ? "next" : "prev";
1419
+ $(f.value, O);
1412
1420
  }
1413
- }) : (W(), U(() => {
1414
- s.key === "ArrowDown" ? $() : l();
1421
+ }) : (X(), H(() => {
1422
+ a.key === "ArrowDown" ? q() : d();
1415
1423
  }));
1416
- else if (s.key === "Enter") {
1417
- if (K.value === void 0)
1424
+ else if (a.key === "Enter") {
1425
+ if (W.value === void 0)
1418
1426
  return;
1419
- C(K.value[n.itemValue]);
1427
+ A(W.value[n.itemValue]);
1420
1428
  } else
1421
- s.key === "Home" ? c.value = (b = g.value) == null ? void 0 : b.getFirstFocusableItemIndex() : s.key === "End" ? c.value = (x = g.value) == null ? void 0 : x.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && W();
1429
+ a.key === "Home" ? f.value = (g = _.value) == null ? void 0 : g.getFirstFocusableItemIndex() : a.key === "End" ? f.value = (B = _.value) == null ? void 0 : B.getLastFocusableItemIndex() : (/^[a-z]$/i.test(a.key) || a.key === "Backspace") && X();
1422
1430
  }
1423
- function $() {
1424
- var s, b;
1425
- if (L.value)
1426
- c.value = (b = g.value) == null ? void 0 : b.getFirstFocusableItemIndex();
1431
+ function q() {
1432
+ var a, g;
1433
+ if (V.value)
1434
+ f.value = (g = _.value) == null ? void 0 : g.getFirstFocusableItemIndex();
1427
1435
  else {
1428
- const x = D.value.findIndex(
1429
- (Q) => Q[n.itemValue] === r.value
1436
+ const B = z.value.findIndex(
1437
+ (O) => O[n.itemValue] === s.value
1430
1438
  );
1431
- x === -1 ? c.value = (s = g.value) == null ? void 0 : s.getFirstFocusableItemIndex() : c.value = x;
1439
+ B === -1 ? f.value = (a = _.value) == null ? void 0 : a.getFirstFocusableItemIndex() : f.value = B;
1432
1440
  }
1433
1441
  }
1434
- function l() {
1435
- var s;
1436
- c.value = (s = g.value) == null ? void 0 : s.getLastFocusableItemIndex();
1442
+ function d() {
1443
+ var a;
1444
+ f.value = (a = _.value) == null ? void 0 : a.getLastFocusableItemIndex();
1437
1445
  }
1438
- function h(s, b) {
1439
- var x;
1440
- c.value = (x = g.value) == null ? void 0 : x.getAdjacentItemIndex(s, b);
1446
+ function $(a, g) {
1447
+ var B;
1448
+ f.value = (B = _.value) == null ? void 0 : B.getAdjacentItemIndex(a, g);
1441
1449
  }
1442
- function O(s) {
1443
- var b, x, Q;
1444
- !((b = _.value) != null && b.contains(s.relatedTarget)) && !((Q = (x = q.value) == null ? void 0 : x.fieldRef) != null && Q.contains(s.relatedTarget)) ? (R(), F.value && !i.value && (r.value = n.emptyValue), M()) : (s.preventDefault(), s.stopPropagation());
1450
+ function p(a) {
1451
+ var g, B, O;
1452
+ !((g = y.value) != null && g.contains(a.relatedTarget)) && !((O = (B = L.value) == null ? void 0 : B.fieldRef) != null && O.contains(a.relatedTarget)) ? (N(), U.value && !i.value && (s.value = n.emptyValue), Q()) : (a.preventDefault(), a.stopPropagation());
1445
1453
  }
1446
- function ee() {
1447
- var s, b;
1448
- (b = (s = q.value) == null ? void 0 : s.inputRef) == null || b.focus();
1454
+ function M() {
1455
+ var a, g;
1456
+ (g = (a = L.value) == null ? void 0 : a.inputRef) == null || g.focus();
1449
1457
  }
1450
- function j() {
1451
- ee();
1458
+ function R() {
1459
+ M();
1452
1460
  }
1453
- function ve() {
1454
- a("show");
1461
+ function oe() {
1462
+ l("show");
1455
1463
  }
1456
- function Ne() {
1457
- a("hide");
1464
+ function Ue() {
1465
+ l("hide");
1458
1466
  }
1459
- function Ie(s) {
1460
- var x;
1461
- const b = (x = g.value) == null ? void 0 : x.getItem(s);
1462
- g.value && (g.value.$el.scrollTop = b == null ? void 0 : b.offsetTop);
1467
+ function Le(a) {
1468
+ var B;
1469
+ const g = (B = _.value) == null ? void 0 : B.getItem(a);
1470
+ _.value && (_.value.$el.scrollTop = g == null ? void 0 : g.offsetTop);
1463
1471
  }
1464
- return P(r, M), P(
1472
+ return Y(s, Q), Y(
1465
1473
  () => n.items,
1466
- (s, b) => {
1467
- if (!L.value) {
1468
- const x = b.find((Q) => Q[n.itemValue] === r.value);
1469
- i.value === (x == null ? void 0 : x[n.itemLabel]) && M();
1474
+ (a, g) => {
1475
+ if (!V.value) {
1476
+ const B = g.find((O) => O[n.itemValue] === s.value);
1477
+ i.value === (B == null ? void 0 : B[n.itemLabel]) && Q();
1470
1478
  }
1471
1479
  },
1472
1480
  { deep: !0 }
1473
- ), P(c, (s) => {
1474
- s !== void 0 && Ie(s);
1475
- }), P(i, (s) => {
1476
- s && d.value && n.selectionMode === "automatic" && U($);
1477
- }), P(
1481
+ ), Y(f, (a) => {
1482
+ a !== void 0 && Le(a);
1483
+ }), Y(i, (a) => {
1484
+ a && r.value && n.selectionMode === "automatic" && H(q);
1485
+ }), Y(
1478
1486
  () => n.loading,
1479
- (s) => {
1480
- !s && d.value && U($);
1487
+ (a) => {
1488
+ !a && r.value && H(q);
1481
1489
  }
1482
1490
  ), o({
1483
- triggerEl: q
1484
- }), (s, b) => {
1485
- var x;
1486
- return u(), p(oe, null, [
1487
- A(v(Jt), {
1491
+ triggerEl: L
1492
+ }), (a, g) => {
1493
+ var B;
1494
+ return u(), m(te, null, [
1495
+ F(h(Pt), {
1488
1496
  modelValue: i.value,
1489
- "onUpdate:modelValue": b[0] || (b[0] = (Q) => i.value = Q),
1497
+ "onUpdate:modelValue": g[0] || (g[0] = (O) => i.value = O),
1490
1498
  id: n.id,
1491
1499
  label: n.label,
1492
1500
  required: n.required,
1493
1501
  ref_key: "triggerEl",
1494
- ref: q,
1502
+ ref: L,
1495
1503
  role: "combobox",
1496
1504
  placeholder: n.placeholder,
1497
- class: E([
1505
+ class: T([
1498
1506
  "q-combobox",
1499
1507
  {
1500
1508
  "q-combobox--readonly": n.readonly,
1501
1509
  "q-combobox--disabled": n.disabled,
1502
- "q-combobox--expanded": d.value
1510
+ "q-combobox--expanded": r.value
1503
1511
  },
1504
1512
  n.class
1505
1513
  ]),
@@ -1507,117 +1515,117 @@ const Ot = ["role"], Ut = {
1507
1515
  disabled: n.disabled,
1508
1516
  "data-loading": n.loading,
1509
1517
  autocomplete: "off",
1510
- "aria-expanded": d.value,
1518
+ "aria-expanded": r.value,
1511
1519
  "aria-haspopup": "listbox",
1512
1520
  "aria-autocomplete": "list",
1513
1521
  "aria-activedescendant": le.value,
1514
1522
  size: n.size,
1515
- onClick: f,
1516
- onFocusout: O,
1517
- onKeydown: de(y, ["stop"])
1523
+ onClick: c,
1524
+ onFocusout: p,
1525
+ onKeydown: de(b, ["stop"])
1518
1526
  }, _e({
1519
1527
  "label.prepend": k(() => [
1520
- m(s.$slots, "label.prepend")
1528
+ v(a.$slots, "label.prepend")
1521
1529
  ]),
1522
1530
  "label.append": k(() => [
1523
- m(s.$slots, "label.append")
1531
+ v(a.$slots, "label.append")
1524
1532
  ]),
1525
1533
  append: k(() => [
1526
- m(s.$slots, "append"),
1527
- F.value && i.value ? (u(), V(v(fe), {
1534
+ v(a.$slots, "append"),
1535
+ U.value && i.value ? (u(), E(h(fe), {
1528
1536
  key: 0,
1529
1537
  class: "q-combobox__clear",
1530
1538
  "b-style": "plain",
1531
1539
  borderless: "",
1532
1540
  tabindex: "-1",
1533
- onClick: J
1541
+ onClick: ae
1534
1542
  }, {
1535
1543
  default: k(() => [
1536
- A(v(te), ne(ie(n.icons.clear)), null, 16)
1544
+ F(h(ee), ne(ie(n.icons.clear)), null, 16)
1537
1545
  ]),
1538
1546
  _: 1
1539
1547
  })) : I("", !0),
1540
- n.readonly ? I("", !0) : (u(), V(v(fe), {
1548
+ n.readonly ? I("", !0) : (u(), E(h(fe), {
1541
1549
  key: 1,
1542
1550
  class: "q-combobox__chevron",
1543
1551
  "b-style": "plain",
1544
1552
  borderless: "",
1545
1553
  tabindex: "-1",
1546
1554
  disabled: n.disabled,
1547
- onClick: Z
1555
+ onClick: P
1548
1556
  }, {
1549
1557
  default: k(() => [
1550
- A(v(te), ne(ie(n.icons.chevron)), null, 16)
1558
+ F(h(ee), ne(ie(n.icons.chevron)), null, 16)
1551
1559
  ]),
1552
1560
  _: 1
1553
1561
  }, 8, ["disabled"]))
1554
1562
  ]),
1555
1563
  _: 2
1556
1564
  }, [
1557
- s.$slots.prepend ? {
1565
+ a.$slots.prepend ? {
1558
1566
  name: "prepend",
1559
1567
  fn: k(() => [
1560
- m(s.$slots, "prepend")
1568
+ v(a.$slots, "prepend")
1561
1569
  ]),
1562
1570
  key: "0"
1563
1571
  } : void 0,
1564
- s.$slots.extras ? {
1572
+ a.$slots.extras ? {
1565
1573
  name: "extras",
1566
1574
  fn: k(() => [
1567
- m(s.$slots, "extras")
1575
+ v(a.$slots, "extras")
1568
1576
  ]),
1569
1577
  key: "1"
1570
1578
  } : void 0
1571
1579
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1572
- A(v(he), {
1573
- modelValue: d.value,
1574
- "onUpdate:modelValue": b[2] || (b[2] = (Q) => d.value = Q),
1580
+ F(h(ve), {
1581
+ modelValue: r.value,
1582
+ "onUpdate:modelValue": g[2] || (g[2] = (O) => r.value = O),
1575
1583
  spy: "",
1576
1584
  trigger: "manual",
1577
1585
  placement: "bottom",
1578
1586
  width: "anchor",
1579
1587
  offset: 4,
1580
- anchor: (x = q.value) == null ? void 0 : x.$el,
1581
- onEnter: ve,
1582
- onLeave: Ne
1588
+ anchor: (B = L.value) == null ? void 0 : B.$el,
1589
+ onEnter: oe,
1590
+ onLeave: Ue
1583
1591
  }, {
1584
1592
  default: k(() => {
1585
- var Q;
1593
+ var O;
1586
1594
  return [
1587
- Y("div", {
1595
+ J("div", {
1588
1596
  ref_key: "contentRef",
1589
- ref: _,
1597
+ ref: y,
1590
1598
  "data-testid": "combobox-dropdown",
1591
1599
  "data-key": n.id,
1592
1600
  class: "q-select__body",
1593
- onFocusout: O
1601
+ onFocusout: p
1594
1602
  }, [
1595
- m(s.$slots, "body.prepend"),
1596
- n.loading ? (u(), p("div", to, [
1597
- A(v($e), { size: 24 })
1598
- ])) : D.value.length ? (u(), V(v(Oe), {
1603
+ v(a.$slots, "body.prepend"),
1604
+ n.loading ? (u(), m("div", to, [
1605
+ F(h($e), { size: 24 })
1606
+ ])) : z.value.length ? (u(), E(h(Re), {
1599
1607
  key: 1,
1600
1608
  ref_key: "listRef",
1601
- ref: g,
1609
+ ref: _,
1602
1610
  class: "q-select__items",
1603
- modelValue: r.value,
1611
+ modelValue: s.value,
1604
1612
  "onUpdate:modelValue": [
1605
- b[1] || (b[1] = (be) => r.value = be),
1606
- C
1613
+ g[1] || (g[1] = (he) => s.value = he),
1614
+ A
1607
1615
  ],
1608
- highlighted: (Q = K.value) == null ? void 0 : Q[n.itemValue],
1609
- items: D.value,
1610
- groups: s.groups,
1616
+ highlighted: (O = W.value) == null ? void 0 : O[n.itemValue],
1617
+ items: z.value,
1618
+ groups: a.groups,
1611
1619
  "item-label": n.itemLabel,
1612
1620
  "item-value": n.itemValue,
1613
- onMouseup: j
1621
+ onMouseup: R
1614
1622
  }, {
1615
- item: k(({ item: be }) => [
1616
- m(s.$slots, "item", { item: be })
1623
+ item: k(({ item: he }) => [
1624
+ v(a.$slots, "item", { item: he })
1617
1625
  ]),
1618
1626
  _: 3
1619
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), p("div", oo, N(s.texts.noData), 1)),
1620
- m(s.$slots, "body.append")
1627
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", oo, K(a.texts.noData), 1)),
1628
+ v(a.$slots, "body.append")
1621
1629
  ], 40, eo)
1622
1630
  ];
1623
1631
  }),
@@ -1626,13 +1634,13 @@ const Ot = ["role"], Ut = {
1626
1634
  ], 64);
1627
1635
  };
1628
1636
  }
1629
- }), Do = B(ao), so = {
1637
+ }), Do = S(ao), so = {
1630
1638
  key: 0,
1631
1639
  class: "q-input-group__prepend"
1632
1640
  }, io = { key: 0 }, ro = {
1633
1641
  key: 1,
1634
1642
  class: "q-input-group__append"
1635
- }, uo = { key: 0 }, co = /* @__PURE__ */ S({
1643
+ }, uo = { key: 0 }, co = /* @__PURE__ */ x({
1636
1644
  __name: "QInputGroup",
1637
1645
  props: {
1638
1646
  id: { default: void 0 },
@@ -1645,56 +1653,56 @@ const Ot = ["role"], Ut = {
1645
1653
  },
1646
1654
  setup(t) {
1647
1655
  const o = t;
1648
- return Fe({
1656
+ return Me({
1649
1657
  QField: {
1650
1658
  size: "block"
1651
1659
  }
1652
- }), (e, n) => (u(), V(v(qe), {
1660
+ }), (e, n) => (u(), E(h(qe), {
1653
1661
  id: o.id,
1654
- class: E(["q-input-group", o.class]),
1662
+ class: T(["q-input-group", o.class]),
1655
1663
  label: o.label,
1656
1664
  required: o.required,
1657
1665
  size: o.size
1658
1666
  }, {
1659
1667
  default: k(() => [
1660
- e.$slots.prepend || o.prependIcon ? (u(), p("div", so, [
1661
- o.prependIcon ? (u(), p("span", io, [
1662
- A(v(te), ne(ie(o.prependIcon)), null, 16)
1668
+ e.$slots.prepend || o.prependIcon ? (u(), m("div", so, [
1669
+ o.prependIcon ? (u(), m("span", io, [
1670
+ F(h(ee), ne(ie(o.prependIcon)), null, 16)
1663
1671
  ])) : I("", !0),
1664
- m(e.$slots, "prepend")
1672
+ v(e.$slots, "prepend")
1665
1673
  ])) : I("", !0),
1666
- m(e.$slots, "default"),
1667
- e.$slots.append || o.appendIcon ? (u(), p("div", ro, [
1668
- o.appendIcon ? (u(), p("span", uo, [
1669
- A(v(te), ne(ie(o.appendIcon)), null, 16)
1674
+ v(e.$slots, "default"),
1675
+ e.$slots.append || o.appendIcon ? (u(), m("div", ro, [
1676
+ o.appendIcon ? (u(), m("span", uo, [
1677
+ F(h(ee), ne(ie(o.appendIcon)), null, 16)
1670
1678
  ])) : I("", !0),
1671
- m(e.$slots, "append")
1679
+ v(e.$slots, "append")
1672
1680
  ])) : I("", !0)
1673
1681
  ]),
1674
1682
  _: 3
1675
1683
  }, 8, ["id", "class", "label", "required", "size"]));
1676
1684
  }
1677
- }), zo = B(co), fo = /* @__PURE__ */ S({
1685
+ }), zo = S(co), fo = /* @__PURE__ */ x({
1678
1686
  __name: "QLineLoader",
1679
1687
  props: {
1680
1688
  class: { default: void 0 }
1681
1689
  },
1682
1690
  setup(t) {
1683
1691
  const o = t;
1684
- return (e, n) => (u(), p("div", {
1685
- class: E(["q-line-loader", o.class])
1692
+ return (e, n) => (u(), m("div", {
1693
+ class: T(["q-line-loader", o.class])
1686
1694
  }, null, 2));
1687
1695
  }
1688
- }), Co = B(fo), po = {
1696
+ }), Co = S(fo), po = {
1689
1697
  key: 0,
1690
1698
  class: "q-popover__header"
1691
1699
  }, mo = {
1692
1700
  key: 1,
1693
1701
  class: "q-popover__body"
1694
- }, vo = ["innerHTML"], ho = { key: 1 }, bo = /* @__PURE__ */ S({
1702
+ }, vo = ["innerHTML"], ho = { key: 1 }, bo = /* @__PURE__ */ x({
1695
1703
  inheritAttrs: !1,
1696
1704
  __name: "QPopover",
1697
- props: /* @__PURE__ */ H({
1705
+ props: /* @__PURE__ */ G({
1698
1706
  anchor: {},
1699
1707
  arrow: { type: Boolean, default: !0 },
1700
1708
  attach: { default: "body" },
@@ -1709,8 +1717,8 @@ const Ot = ["role"], Ut = {
1709
1717
  }),
1710
1718
  emits: ["update:modelValue"],
1711
1719
  setup(t) {
1712
- const o = t, e = X(t, "modelValue");
1713
- return (n, a) => (u(), V(v(he), {
1720
+ const o = t, e = Z(t, "modelValue");
1721
+ return (n, l) => (u(), E(h(ve), {
1714
1722
  "model-value": e.value,
1715
1723
  class: "q-popover",
1716
1724
  trigger: "click",
@@ -1721,22 +1729,22 @@ const Ot = ["role"], Ut = {
1721
1729
  placement: o.placement
1722
1730
  }, {
1723
1731
  default: k(() => [
1724
- o.title || n.$slots.header ? (u(), p("h3", po, [
1725
- ue(N(o.title) + " ", 1),
1726
- m(n.$slots, "header")
1732
+ o.title || n.$slots.header ? (u(), m("h3", po, [
1733
+ ue(K(o.title) + " ", 1),
1734
+ v(n.$slots, "header")
1727
1735
  ])) : I("", !0),
1728
- o.text || n.$slots.body ? (u(), p("div", mo, [
1729
- o.html ? (u(), p("span", {
1736
+ o.text || n.$slots.body ? (u(), m("div", mo, [
1737
+ o.html ? (u(), m("span", {
1730
1738
  key: 0,
1731
1739
  innerHTML: o.text
1732
- }, null, 8, vo)) : (u(), p("span", ho, N(o.text), 1)),
1733
- m(n.$slots, "body")
1740
+ }, null, 8, vo)) : (u(), m("span", ho, K(o.text), 1)),
1741
+ v(n.$slots, "body")
1734
1742
  ])) : I("", !0)
1735
1743
  ]),
1736
1744
  _: 3
1737
1745
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
1738
1746
  }
1739
- }), Qo = B(bo), yo = {
1747
+ }), Ao = S(bo), yo = {
1740
1748
  key: 0,
1741
1749
  class: "q-select__value"
1742
1750
  }, go = {
@@ -1754,9 +1762,9 @@ const Ot = ["role"], Ut = {
1754
1762
  clear: {
1755
1763
  icon: "close"
1756
1764
  }
1757
- }, qo = /* @__PURE__ */ S({
1765
+ }, qo = /* @__PURE__ */ x({
1758
1766
  __name: "QSelect",
1759
- props: /* @__PURE__ */ H({
1767
+ props: /* @__PURE__ */ G({
1760
1768
  id: { default: void 0 },
1761
1769
  label: { default: "" },
1762
1770
  clearable: { type: Boolean },
@@ -1779,84 +1787,84 @@ const Ot = ["role"], Ut = {
1779
1787
  },
1780
1788
  modelModifiers: {}
1781
1789
  }),
1782
- emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1790
+ emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1783
1791
  setup(t, { emit: o }) {
1784
- const e = t, n = o, a = X(t, "modelValue"), r = T(!1), d = T(""), i = T(null), c = T(null), q = T(null), g = w(() => _.value === void 0), _ = w(
1792
+ const e = t, n = o, l = Z(t, "modelValue"), s = D(!1), r = D(""), i = D(null), f = D(null), L = D(null), _ = w(() => y.value === void 0), y = w(
1785
1793
  () => {
1786
- var l;
1787
- return (l = e.items) == null ? void 0 : l.find((h) => h[e.itemValue] === a.value);
1794
+ var d;
1795
+ return (d = e.items) == null ? void 0 : d.find(($) => $[e.itemValue] === l.value);
1788
1796
  }
1789
- ), F = w(
1790
- () => _.value ? _.value[e.itemLabel] : ""
1791
- ), D = w(
1797
+ ), U = w(
1798
+ () => y.value ? y.value[e.itemLabel] : ""
1799
+ ), z = w(
1792
1800
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1793
1801
  );
1794
- function z(l) {
1795
- a.value = l, C();
1796
- }
1797
- function L() {
1798
- D.value && z(e.emptyValue);
1802
+ function C(d) {
1803
+ l.value = d, A();
1799
1804
  }
1800
- function K() {
1801
- e.readonly || e.disabled || (r.value ? C() : G());
1805
+ function V() {
1806
+ z.value && C(e.emptyValue);
1802
1807
  }
1803
- function le(l) {
1804
- var h, O, ee;
1805
- !((h = q.value) != null && h.contains(l.relatedTarget)) && !((ee = (O = i.value) == null ? void 0 : O.fieldRef) != null && ee.contains(l.relatedTarget)) && C();
1806
- }
1807
- function G() {
1808
- r.value || (n("before-show"), r.value = !0);
1809
- }
1810
- function C() {
1811
- r.value && (n("before-hide"), r.value = !1);
1808
+ function W() {
1809
+ e.readonly || e.disabled || (s.value ? A() : j());
1812
1810
  }
1813
- function M() {
1814
- r.value ? C() : G();
1811
+ function le(d) {
1812
+ var $, p, M;
1813
+ !(($ = L.value) != null && $.contains(d.relatedTarget)) && !((M = (p = i.value) == null ? void 0 : p.fieldRef) != null && M.contains(d.relatedTarget)) && A();
1815
1814
  }
1816
- let W;
1817
- function R(l) {
1818
- if (!(!l.key || e.readonly || e.disabled)) {
1819
- 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)) {
1820
- d.value += l.key.toLowerCase();
1821
- for (let h = 0; h < e.items.length; h++)
1822
- if (e.items[h][e.itemLabel].toLowerCase().startsWith(d.value)) {
1823
- $(h);
1815
+ function j() {
1816
+ s.value || (n("before-show"), s.value = !0);
1817
+ }
1818
+ function A() {
1819
+ s.value && (n("before-hide"), s.value = !1);
1820
+ }
1821
+ function Q() {
1822
+ s.value ? A() : j();
1823
+ }
1824
+ let X;
1825
+ function N(d) {
1826
+ if (!(!d.key || e.readonly || e.disabled)) {
1827
+ if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : z.value && d.key === "Escape" && V()), d.key === "Delete" && e.clearable && V(), /^[a-z]$/i.test(d.key)) {
1828
+ r.value += d.key.toLowerCase();
1829
+ for (let $ = 0; $ < e.items.length; $++)
1830
+ if (e.items[$][e.itemLabel].toLowerCase().startsWith(r.value)) {
1831
+ q($);
1824
1832
  break;
1825
1833
  }
1826
1834
  }
1827
- W = window.setTimeout(function() {
1828
- d.value = "";
1835
+ X = window.setTimeout(function() {
1836
+ r.value = "";
1829
1837
  }, 500);
1830
1838
  }
1831
1839
  }
1832
- function Z() {
1833
- var l;
1834
- e.loading ? (l = q.value) == null || l.focus() : y(), n("show");
1840
+ function P() {
1841
+ var d;
1842
+ e.loading ? (d = L.value) == null || d.focus() : b(), n("show");
1835
1843
  }
1836
- function J() {
1837
- f(), n("hide");
1844
+ function ae() {
1845
+ c(), n("hide");
1838
1846
  }
1839
- function f() {
1840
- var l, h;
1841
- (h = (l = i.value) == null ? void 0 : l.fieldRef) == null || h.focus();
1847
+ function c() {
1848
+ var d, $;
1849
+ ($ = (d = i.value) == null ? void 0 : d.fieldRef) == null || $.focus();
1842
1850
  }
1843
- function y() {
1844
- var l;
1845
- (l = c.value) == null || l.$el.focus();
1851
+ function b() {
1852
+ var d;
1853
+ (d = f.value) == null || d.$el.focus();
1846
1854
  }
1847
- function $(l) {
1848
- var h;
1849
- (h = c.value) == null || h.focusItem(l);
1855
+ function q(d) {
1856
+ var $;
1857
+ ($ = f.value) == null || $.focusItem(d);
1850
1858
  }
1851
- return P(
1859
+ return Y(
1852
1860
  () => e.loading,
1853
- (l) => {
1854
- !l && r.value && U(y);
1861
+ (d) => {
1862
+ !d && s.value && H(b);
1855
1863
  }
1856
- ), (l, h) => {
1857
- var O, ee;
1858
- return u(), p(oe, null, [
1859
- A(v(qe), {
1864
+ ), (d, $) => {
1865
+ var p, M;
1866
+ return u(), m(te, null, [
1867
+ F(h(qe), {
1860
1868
  id: e.id,
1861
1869
  label: e.label,
1862
1870
  required: e.required,
@@ -1864,129 +1872,130 @@ const Ot = ["role"], Ut = {
1864
1872
  ref: i,
1865
1873
  role: "combobox",
1866
1874
  tabindex: e.disabled ? -1 : 0,
1867
- class: E([
1875
+ class: T([
1868
1876
  "q-select",
1869
1877
  {
1870
1878
  "q-select--readonly": e.readonly,
1871
1879
  "q-select--disabled": e.disabled,
1872
- "q-select--expanded": r.value
1880
+ "q-select--expanded": s.value
1873
1881
  },
1874
1882
  e.class
1875
1883
  ]),
1876
1884
  readonly: e.readonly,
1877
1885
  disabled: e.disabled,
1878
1886
  "data-loading": e.loading,
1879
- "aria-expanded": r.value,
1887
+ "aria-expanded": s.value,
1880
1888
  "aria-haspopup": "listbox",
1881
1889
  size: e.size,
1882
- onClick: K,
1883
- onKeydown: de(R, ["stop"])
1890
+ onClick: W,
1891
+ onKeydown: de(N, ["stop"])
1884
1892
  }, _e({
1885
1893
  append: k(() => [
1886
- m(l.$slots, "append"),
1887
- D.value && a.value ? (u(), V(v(fe), {
1894
+ v(d.$slots, "append"),
1895
+ z.value && l.value ? (u(), E(h(fe), {
1888
1896
  key: 0,
1889
1897
  class: "q-select__clear",
1890
1898
  "b-style": "plain",
1891
1899
  borderless: "",
1892
1900
  tabindex: "-1",
1893
- onClick: L
1901
+ onClick: V
1894
1902
  }, {
1895
1903
  default: k(() => [
1896
- A(v(te), ne(ie(e.icons.clear)), null, 16)
1904
+ F(h(ee), ne(ie(e.icons.clear)), null, 16)
1897
1905
  ]),
1898
1906
  _: 1
1899
1907
  })) : I("", !0),
1900
- e.readonly ? I("", !0) : (u(), V(v(fe), {
1908
+ e.readonly ? I("", !0) : (u(), E(h(fe), {
1901
1909
  key: 1,
1902
1910
  class: "q-select__chevron",
1903
1911
  "b-style": "plain",
1904
1912
  borderless: "",
1905
1913
  tabindex: "-1",
1906
1914
  disabled: e.disabled,
1907
- onClick: M
1915
+ onClick: Q
1908
1916
  }, {
1909
1917
  default: k(() => [
1910
- A(v(te), ne(ie(e.icons.chevron)), null, 16)
1918
+ F(h(ee), ne(ie(e.icons.chevron)), null, 16)
1911
1919
  ]),
1912
1920
  _: 1
1913
1921
  }, 8, ["disabled"]))
1914
1922
  ]),
1915
1923
  default: k(() => [
1916
- g.value ? (u(), p("span", go, [
1917
- !e.readonly && !e.disabled ? (u(), p(oe, { key: 0 }, [
1918
- ue(N(l.texts.placeholder), 1)
1924
+ _.value ? (u(), m("span", go, [
1925
+ !e.readonly && !e.disabled ? (u(), m(te, { key: 0 }, [
1926
+ ue(K(d.texts.placeholder), 1)
1919
1927
  ], 64)) : I("", !0)
1920
- ])) : (u(), p("span", yo, N(F.value), 1))
1928
+ ])) : (u(), m("span", yo, K(U.value), 1))
1921
1929
  ]),
1922
1930
  _: 2
1923
1931
  }, [
1924
- (O = _.value) != null && O.icon || l.$slots.prepend ? {
1932
+ (p = y.value) != null && p.icon || d.$slots.prepend ? {
1925
1933
  name: "prepend",
1926
1934
  fn: k(() => {
1927
- var j, ve;
1935
+ var R, oe;
1928
1936
  return [
1929
- m(l.$slots, "prepend"),
1930
- (j = _.value) != null && j.icon ? (u(), V(v(te), ne(se({ key: 0 }, (ve = _.value) == null ? void 0 : ve.icon)), null, 16)) : I("", !0)
1937
+ v(d.$slots, "prepend"),
1938
+ (R = y.value) != null && R.icon ? (u(), E(h(ee), ne(se({ key: 0 }, (oe = y.value) == null ? void 0 : oe.icon)), null, 16)) : I("", !0)
1931
1939
  ];
1932
1940
  }),
1933
1941
  key: "0"
1934
1942
  } : void 0,
1935
- l.$slots.extras ? {
1943
+ d.$slots.extras ? {
1936
1944
  name: "extras",
1937
1945
  fn: k(() => [
1938
- m(l.$slots, "extras")
1946
+ v(d.$slots, "extras")
1939
1947
  ]),
1940
1948
  key: "1"
1941
1949
  } : void 0
1942
1950
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
1943
- A(v(he), {
1944
- modelValue: r.value,
1945
- "onUpdate:modelValue": h[1] || (h[1] = (j) => r.value = j),
1951
+ F(h(ve), {
1952
+ modelValue: s.value,
1953
+ "onUpdate:modelValue": $[1] || ($[1] = (R) => s.value = R),
1946
1954
  spy: "",
1947
1955
  trigger: "manual",
1948
1956
  placement: "bottom",
1949
1957
  width: "anchor",
1950
- anchor: (ee = i.value) == null ? void 0 : ee.$el,
1958
+ "scroll-lock": "",
1959
+ anchor: (M = i.value) == null ? void 0 : M.$el,
1951
1960
  offset: 2,
1952
- onEnter: Z,
1953
- onLeave: J
1961
+ onEnter: P,
1962
+ onLeave: ae
1954
1963
  }, {
1955
1964
  default: k(() => [
1956
- Y("div", {
1965
+ J("div", {
1957
1966
  ref_key: "contentRef",
1958
- ref: q,
1967
+ ref: L,
1959
1968
  "data-testid": "combobox-dropdown",
1960
1969
  "data-key": e.id,
1961
1970
  class: "q-select__body",
1962
1971
  tabindex: "-1",
1963
1972
  onFocusout: le,
1964
- onKeydown: de(R, ["stop"])
1973
+ onKeydown: de(N, ["stop"])
1965
1974
  }, [
1966
- m(l.$slots, "body.prepend"),
1967
- e.loading ? (u(), p("div", ko, [
1968
- A(v($e), { size: 24 })
1969
- ])) : (u(), V(v(Oe), {
1975
+ v(d.$slots, "body.prepend"),
1976
+ e.loading ? (u(), m("div", ko, [
1977
+ F(h($e), { size: 24 })
1978
+ ])) : (u(), E(h(Re), {
1970
1979
  key: 1,
1971
1980
  ref_key: "listRef",
1972
- ref: c,
1981
+ ref: f,
1973
1982
  class: "q-select__items",
1974
- modelValue: a.value,
1983
+ modelValue: l.value,
1975
1984
  "onUpdate:modelValue": [
1976
- h[0] || (h[0] = (j) => a.value = j),
1977
- z
1985
+ $[0] || ($[0] = (R) => l.value = R),
1986
+ C
1978
1987
  ],
1979
1988
  items: e.items,
1980
- groups: l.groups,
1989
+ groups: d.groups,
1981
1990
  "item-label": e.itemLabel,
1982
1991
  "item-value": e.itemValue
1983
1992
  }, {
1984
- item: k(({ item: j }) => [
1985
- m(l.$slots, "item", { item: j })
1993
+ item: k(({ item: R }) => [
1994
+ v(d.$slots, "item", { item: R })
1986
1995
  ]),
1987
1996
  _: 3
1988
1997
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
1989
- m(l.$slots, "body.append")
1998
+ v(d.$slots, "body.append")
1990
1999
  ], 40, _o)
1991
2000
  ]),
1992
2001
  _: 3
@@ -1994,22 +2003,22 @@ const Ot = ["role"], Ut = {
1994
2003
  ], 64);
1995
2004
  };
1996
2005
  }
1997
- }), Ao = B(qo), Io = /* @__PURE__ */ S({
2006
+ }), Qo = S(qo), Lo = /* @__PURE__ */ x({
1998
2007
  __name: "QThemeProvider",
1999
2008
  props: {
2000
2009
  theme: {}
2001
2010
  },
2002
2011
  setup(t) {
2003
2012
  const o = t;
2004
- return (e, n) => (u(), p("div", {
2005
- class: E(["q-theme-provider", `q-theme--${o.theme}`])
2013
+ return (e, n) => (u(), m("div", {
2014
+ class: T(["q-theme-provider", `q-theme--${o.theme}`])
2006
2015
  }, [
2007
- m(e.$slots, "default")
2016
+ v(e.$slots, "default")
2008
2017
  ], 2));
2009
2018
  }
2010
- }), Fo = B(Io), Lo = ["innerHTML"], So = { key: 1 }, xo = /* @__PURE__ */ S({
2019
+ }), Mo = S(Lo), Io = ["innerHTML"], xo = { key: 1 }, Bo = /* @__PURE__ */ x({
2011
2020
  __name: "QTooltip",
2012
- props: /* @__PURE__ */ H({
2021
+ props: /* @__PURE__ */ G({
2013
2022
  id: { default: void 0 },
2014
2023
  anchor: {},
2015
2024
  appearance: { default: "inverted" },
@@ -2028,61 +2037,61 @@ const Ot = ["role"], Ut = {
2028
2037
  }),
2029
2038
  emits: ["update:modelValue"],
2030
2039
  setup(t) {
2031
- const o = t, e = X(t, "modelValue"), n = me(o.id);
2032
- return (a, r) => (u(), p(oe, null, [
2033
- m(a.$slots, "anchor", {
2034
- props: { "aria-describedby": v(n) }
2040
+ const o = t, e = Z(t, "modelValue"), n = me(o.id);
2041
+ return (l, s) => (u(), m(te, null, [
2042
+ v(l.$slots, "anchor", {
2043
+ props: { "aria-describedby": h(n) }
2035
2044
  }),
2036
- A(v(he), {
2045
+ F(h(ve), {
2037
2046
  "model-value": e.value,
2038
2047
  anchor: o.anchor,
2039
2048
  role: "tooltip",
2040
- id: v(n),
2049
+ id: h(n),
2041
2050
  appearance: o.appearance,
2042
2051
  arrow: o.arrow,
2043
2052
  attach: o.attach,
2044
- class: E(["q-tooltip", o.class]),
2053
+ class: T(["q-tooltip", o.class]),
2045
2054
  delay: o.delay,
2046
2055
  disabled: o.disabled,
2047
2056
  placement: o.placement,
2048
2057
  trigger: o.trigger
2049
2058
  }, {
2050
2059
  default: k(() => [
2051
- o.html ? (u(), p("span", {
2060
+ o.html ? (u(), m("span", {
2052
2061
  key: 0,
2053
2062
  innerHTML: o.text
2054
- }, null, 8, Lo)) : (u(), p("span", So, N(o.text), 1))
2063
+ }, null, 8, Io)) : (u(), m("span", xo, K(o.text), 1))
2055
2064
  ]),
2056
2065
  _: 1
2057
2066
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
2058
2067
  ], 64));
2059
2068
  }
2060
- }), Mo = B(xo);
2069
+ }), Oo = S(Bo);
2061
2070
  export {
2062
2071
  fe as QButton,
2063
- vt as QButtonGroup,
2072
+ mt as QButtonGroup,
2064
2073
  To as QButtonToggle,
2065
2074
  Do as QCombobox,
2066
2075
  qe as QField,
2067
- te as QIcon,
2068
- It as QIconFont,
2076
+ ee as QIcon,
2077
+ qt as QIconFont,
2069
2078
  Lt as QIconImg,
2070
- St as QIconSvg,
2079
+ It as QIconSvg,
2071
2080
  zo as QInputGroup,
2072
2081
  Co as QLineLoader,
2073
- Oe as QList,
2082
+ Re as QList,
2074
2083
  At as QListItem,
2075
- Ft as QListItemGroup,
2076
- he as QOverlay,
2077
- Qo as QPopover,
2078
- Ao as QSelect,
2084
+ Qt as QListItemGroup,
2085
+ ve as QOverlay,
2086
+ Ao as QPopover,
2087
+ Qo as QSelect,
2079
2088
  $e as QSpinnerLoader,
2080
- Jt as QTextField,
2081
- Fo as QThemeProvider,
2082
- Mo as QTooltip,
2089
+ Pt as QTextField,
2090
+ Mo as QThemeProvider,
2091
+ Oo as QTooltip,
2083
2092
  Eo as createFramework,
2084
2093
  Je as defaultDarkColorScheme,
2085
- Be as defaultLightColorScheme,
2094
+ Se as defaultLightColorScheme,
2086
2095
  Vo as provideTheme,
2087
2096
  Ze as useTheme
2088
2097
  };