@quidgest/ui 0.7.15 → 0.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.esm.js CHANGED
@@ -1,18 +1,18 @@
1
- import { getCurrentInstance as Ve, computed as g, ref as q, provide as Ne, inject as De, watch as C, defineComponent as x, openBlock as d, createElementBlock as v, normalizeClass as D, normalizeStyle as ae, createElementVNode as G, withModifiers as ee, createVNode as te, unref as k, createCommentVNode as S, Fragment as Z, createTextVNode as re, toDisplayString as N, renderSlot as y, toRef as pe, createBlock as B, withCtx as $, renderList as ve, resolveDynamicComponent as Te, h as $e, normalizeProps as de, mergeProps as ne, reactive as He, onBeforeUnmount as Ke, onMounted as Ee, Teleport as We, Transition as Ge, nextTick as J, createSlots as be, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as he } from "vue";
2
- function ye(n) {
1
+ import { getCurrentInstance as Le, computed as g, ref as q, provide as Oe, inject as xe, watch as F, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as T, normalizeStyle as ae, createElementVNode as j, withModifiers as ne, createVNode as G, unref as $, createCommentVNode as S, Fragment as J, createTextVNode as se, toDisplayString as N, renderSlot as b, toRef as ce, createBlock as x, withCtx as I, renderList as pe, resolveDynamicComponent as Ve, h as ke, normalizeProps as ie, mergeProps as ee, reactive as Ue, onBeforeUnmount as Ne, onMounted as De, Teleport as He, Transition as Ke, withKeys as We, nextTick as P, createSlots as he, withDirectives as Ge, vModelDynamic as je, guardReactiveProps as me } from "vue";
2
+ function ve(n) {
3
3
  return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
4
4
  }
5
- function Ie(n) {
5
+ function we(n) {
6
6
  return n !== null && typeof n == "object" && !Array.isArray(n);
7
7
  }
8
- function ze(n = {}, t = {}) {
8
+ function Te(n = {}, t = {}) {
9
9
  const o = {};
10
10
  for (const e in n)
11
11
  o[e] = n[e];
12
12
  for (const e in t) {
13
13
  const l = n[e], a = t[e];
14
- if (Ie(l) && Ie(a)) {
15
- o[e] = ze(
14
+ if (we(l) && we(a)) {
15
+ o[e] = Te(
16
16
  l,
17
17
  a
18
18
  );
@@ -22,33 +22,33 @@ function ze(n = {}, t = {}) {
22
22
  }
23
23
  return o;
24
24
  }
25
- const ge = "q-defaults";
26
- function Ye() {
27
- const n = Ve();
25
+ const ye = "q-defaults";
26
+ function Xe() {
27
+ const n = Le();
28
28
  if (!n)
29
29
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
30
30
  const t = n.type.name ?? n.type.__name;
31
31
  if (!t)
32
32
  throw new Error("[Quidgest UI] Could not determine component name");
33
- const o = Fe();
33
+ const o = ze();
34
34
  return g(() => {
35
35
  var e;
36
36
  return (e = o.value) == null ? void 0 : e[t];
37
37
  });
38
38
  }
39
- function Ce(n) {
40
- if (ye(n))
39
+ function Ee(n) {
40
+ if (ve(n))
41
41
  return;
42
- const t = Fe(), o = q(n), e = g(() => ye(o.value) ? t.value : ze(t.value, o.value));
43
- Ne(ge, e);
42
+ const t = ze(), o = q(n), e = g(() => ve(o.value) ? t.value : Te(t.value, o.value));
43
+ Oe(ye, e);
44
44
  }
45
- function Fe() {
46
- const n = De(ge, void 0);
45
+ function ze() {
46
+ const n = xe(ye, void 0);
47
47
  if (!n)
48
48
  throw new Error("[Quidgest UI] Could not find defaults instance");
49
49
  return n;
50
50
  }
51
- const qe = {
51
+ const $e = {
52
52
  primary: "#00a1f8",
53
53
  primaryLight: "#e5f6ff",
54
54
  primaryDark: "#0079ba",
@@ -78,7 +78,7 @@ const qe = {
78
78
  onWarning: "#fff",
79
79
  onDanger: "#fff",
80
80
  onInfo: "#fff"
81
- }, Pe = {
81
+ }, Ye = {
82
82
  primary: "#018BD2",
83
83
  primaryLight: "#cce7f6",
84
84
  primaryDark: "#006fac",
@@ -109,108 +109,108 @@ const qe = {
109
109
  onDanger: "#fff",
110
110
  onInfo: "#fff"
111
111
  };
112
- function Ae(n) {
112
+ function Ce(n) {
113
113
  if (!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n))
114
114
  throw new Error("Invalid color format");
115
115
  n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
116
116
  const t = parseInt(n.slice(1, 3), 16), o = parseInt(n.slice(3, 5), 16), e = parseInt(n.slice(5, 7), 16);
117
117
  return { r: t, g: o, b: e };
118
118
  }
119
- function Ze(n, t) {
119
+ function Pe(n, t) {
120
120
  if (t < 0 || t > 100)
121
121
  throw new Error("Amount must be in the range [0, 100]");
122
122
  if (t === 0)
123
123
  return n;
124
- const o = Qe(n), e = t / 100;
125
- return o.l = o.l + e * (100 - o.l), Re(o);
124
+ const o = Fe(n), e = t / 100;
125
+ return o.l = o.l + e * (100 - o.l), Ae(o);
126
126
  }
127
- function Je(n, t) {
127
+ function Ze(n, t) {
128
128
  if (t < 0 || t > 100)
129
129
  throw new Error("Amount must be in the range [0, 100]");
130
130
  if (t === 0)
131
131
  return n;
132
- const o = Qe(n), e = t / 100;
133
- return o.l = o.l - e * o.l, Re(o);
132
+ const o = Fe(n), e = t / 100;
133
+ return o.l = o.l - e * o.l, Ae(o);
134
134
  }
135
- function Se(n) {
135
+ function Ie(n) {
136
136
  const t = n.r.toString(16).padStart(2, "0"), o = n.g.toString(16).padStart(2, "0"), e = n.b.toString(16).padStart(2, "0");
137
137
  return `#${t}${o}${e}`;
138
138
  }
139
- function Qe(n) {
139
+ function Fe(n) {
140
140
  const t = n.r / 255, o = n.g / 255, e = n.b / 255, l = Math.max(t, o, e), a = Math.min(t, o, e);
141
- let u = 0, i;
142
- const f = (l + a) / 2;
141
+ let r = 0, i;
142
+ const p = (l + a) / 2;
143
143
  if (l === a)
144
- u = i = 0;
144
+ r = i = 0;
145
145
  else {
146
- const p = l - a;
147
- switch (i = f > 0.5 ? p / (2 - l - a) : p / (l + a), l) {
146
+ const m = l - a;
147
+ switch (i = p > 0.5 ? m / (2 - l - a) : m / (l + a), l) {
148
148
  case t:
149
- u = (o - e) / p + (o < e ? 6 : 0);
149
+ r = (o - e) / m + (o < e ? 6 : 0);
150
150
  break;
151
151
  case o:
152
- u = (e - t) / p + 2;
152
+ r = (e - t) / m + 2;
153
153
  break;
154
154
  case e:
155
- u = (t - o) / p + 4;
155
+ r = (t - o) / m + 4;
156
156
  break;
157
157
  }
158
- u /= 6;
158
+ r /= 6;
159
159
  }
160
160
  return {
161
- h: Math.round(u * 360),
161
+ h: Math.round(r * 360),
162
162
  s: Math.round(i * 100),
163
- l: Math.round(f * 100)
163
+ l: Math.round(p * 100)
164
164
  };
165
165
  }
166
- function Re(n) {
166
+ function Ae(n) {
167
167
  const t = n.h / 360, o = n.s / 100, e = n.l / 100;
168
- let l, a, u;
168
+ let l, a, r;
169
169
  if (o === 0)
170
- l = a = u = e;
170
+ l = a = r = e;
171
171
  else {
172
- const i = e < 0.5 ? e * (1 + o) : e + o - e * o, f = 2 * e - i;
173
- l = me(f, i, t + 1 / 3), a = me(f, i, t), u = me(f, i, t - 1 / 3);
172
+ const i = e < 0.5 ? e * (1 + o) : e + o - e * o, p = 2 * e - i;
173
+ l = fe(p, i, t + 1 / 3), a = fe(p, i, t), r = fe(p, i, t - 1 / 3);
174
174
  }
175
175
  return {
176
176
  r: Math.round(l * 255),
177
177
  g: Math.round(a * 255),
178
- b: Math.round(u * 255)
178
+ b: Math.round(r * 255)
179
179
  };
180
180
  }
181
- function me(n, t, o) {
181
+ function fe(n, t, o) {
182
182
  return o < 0 && (o += 1), o > 1 && (o -= 1), o < 1 / 6 ? n + (t - n) * 6 * o : o < 1 / 2 ? t : o < 2 / 3 ? n + (t - n) * (2 / 3 - o) * 6 : n;
183
183
  }
184
- const ue = "q-theme";
184
+ const re = "q-theme";
185
185
  function wn() {
186
- const n = De(ue);
186
+ const n = xe(re);
187
187
  if (!n)
188
188
  throw new Error("[Quidgest UI] Could not find theme instance");
189
189
  return n;
190
190
  }
191
- function et(n, t) {
191
+ function Je(n, t) {
192
192
  let o = null;
193
193
  if (t)
194
194
  for (const e of t.themes) {
195
- const l = e.mode === "light" ? qe : Pe;
195
+ const l = e.mode === "light" ? $e : Ye;
196
196
  if (e.colors) {
197
197
  let a;
198
198
  for (a in e.colors) {
199
- const u = e.colors[a];
200
- if (u && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
- const i = Ae(u), f = `${a}Light`, p = `${a}Dark`;
202
- f in e.colors || (e.colors[f] = Se(Ze(i, 85))), p in e.colors || (e.colors[p] = Se(Je(i, 25)));
199
+ const r = e.colors[a];
200
+ if (r && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
+ const i = Ce(r), p = `${a}Light`, m = `${a}Dark`;
202
+ p in e.colors || (e.colors[p] = Ie(Pe(i, 85))), m in e.colors || (e.colors[m] = Ie(Ze(i, 25)));
203
203
  }
204
204
  }
205
205
  }
206
- e.colors = tt(l, e.colors), e.name === t.defaultTheme && (o = e);
206
+ e.colors = et(l, e.colors), e.name === t.defaultTheme && (o = e);
207
207
  }
208
208
  else {
209
209
  const e = "default";
210
210
  o = {
211
211
  name: e,
212
212
  mode: "light",
213
- colors: qe
213
+ colors: $e
214
214
  }, t = {
215
215
  defaultTheme: e,
216
216
  themes: [o]
@@ -221,39 +221,39 @@ function et(n, t) {
221
221
  activeTheme: o.name,
222
222
  themes: t.themes
223
223
  });
224
- C(
224
+ F(
225
225
  () => e.value.activeTheme,
226
226
  (l) => {
227
- const a = e.value.themes.find((u) => u.name === l);
228
- a && nt(a.colors);
227
+ const a = e.value.themes.find((r) => r.name === l);
228
+ a && tt(a.colors);
229
229
  },
230
230
  { immediate: !0 }
231
- ), n.provide(ue, e);
231
+ ), n.provide(re, e);
232
232
  }
233
233
  }
234
- function tt(n, t = {}) {
234
+ function et(n, t = {}) {
235
235
  return { ...n, ...t };
236
236
  }
237
- function nt(n) {
237
+ function tt(n) {
238
238
  let t = document.getElementById(
239
- ue
239
+ re
240
240
  );
241
- t || (t = document.createElement("style"), t.type = "text/css", t.id = ue, document.head.appendChild(t));
241
+ t || (t = document.createElement("style"), t.type = "text/css", t.id = re, document.head.appendChild(t));
242
242
  let o = `:root {
243
243
  `, e;
244
244
  for (e in n) {
245
245
  const l = n[e];
246
246
  if (l) {
247
- o += ` ${Le(e)}: ${l};
247
+ o += ` ${qe(e)}: ${l};
248
248
  `;
249
- const a = Ae(l);
250
- o += ` ${Le(e)}-rgb: ${a.r} ${a.g} ${a.b};
249
+ const a = Ce(l);
250
+ o += ` ${qe(e)}-rgb: ${a.r} ${a.g} ${a.b};
251
251
  `;
252
252
  }
253
253
  }
254
254
  o += "}", t.textContent = o;
255
255
  }
256
- function Le(n) {
256
+ function qe(n) {
257
257
  return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
258
258
  }
259
259
  function $n(n = {}) {
@@ -262,11 +262,11 @@ function $n(n = {}) {
262
262
  for (const a in e)
263
263
  o.component(a, e[a]);
264
264
  const l = n.defaults || {};
265
- o.provide(ge, q(l)), et(o, n.themes);
265
+ o.provide(ye, q(l)), Je(o, n.themes);
266
266
  } };
267
267
  }
268
- const lt = /* @__PURE__ */ G("svg", { viewBox: "25 25 50 50" }, [
269
- /* @__PURE__ */ G("circle", {
268
+ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
269
+ /* @__PURE__ */ j("circle", {
270
270
  class: "path",
271
271
  cx: "50",
272
272
  cy: "50",
@@ -276,9 +276,9 @@ const lt = /* @__PURE__ */ G("svg", { viewBox: "25 25 50 50" }, [
276
276
  "stroke-width": "5",
277
277
  "stroke-miterlimit": "10"
278
278
  })
279
- ], -1), ot = [
280
- lt
281
- ], at = /* @__PURE__ */ x({
279
+ ], -1), lt = [
280
+ nt
281
+ ], ot = /* @__PURE__ */ L({
282
282
  __name: "QSpinnerLoader",
283
283
  props: {
284
284
  size: { default: 48 },
@@ -288,39 +288,39 @@ const lt = /* @__PURE__ */ G("svg", { viewBox: "25 25 50 50" }, [
288
288
  const t = n, o = g(() => ({
289
289
  "font-size": t.size !== 48 ? `${t.size}px` : void 0
290
290
  }));
291
- return (e, l) => (d(), v("div", {
292
- class: D(["q-spinner-loader", t.class]),
291
+ return (e, l) => (c(), v("div", {
292
+ class: T(["q-spinner-loader", t.class]),
293
293
  style: ae(o.value)
294
- }, ot, 6));
294
+ }, lt, 6));
295
295
  }
296
296
  });
297
- function st(n, t) {
297
+ function at(n, t) {
298
298
  var o;
299
299
  return typeof ((o = n.props) == null ? void 0 : o[t]) < "u";
300
300
  }
301
301
  function V(n) {
302
302
  const t = n.setup;
303
303
  return t && (n.setup = (o, e) => {
304
- const l = Ye();
305
- if (ye(l.value))
304
+ const l = Xe();
305
+ if (ve(l.value))
306
306
  return t(o, e);
307
- const a = Ve();
307
+ const a = Le();
308
308
  if (a === null)
309
309
  return t(o, e);
310
- const u = new Proxy(o, {
311
- get(i, f) {
312
- var w;
313
- const p = Reflect.get(i, f), m = (w = l.value) == null ? void 0 : w[f];
314
- return typeof f == "string" && !st(a.vnode, f) ? m ?? p : p;
310
+ const r = new Proxy(o, {
311
+ get(i, p) {
312
+ var _;
313
+ const m = Reflect.get(i, p), f = (_ = l.value) == null ? void 0 : _[p];
314
+ return typeof p == "string" && !at(a.vnode, p) ? f ?? m : m;
315
315
  }
316
316
  });
317
- return t(u, e);
317
+ return t(r, e);
318
318
  }), n;
319
319
  }
320
- const _e = V(at), it = ["disabled"], rt = {
320
+ const be = V(ot), st = ["disabled"], it = {
321
321
  key: 0,
322
322
  class: "q-btn__spinner"
323
- }, dt = { class: "q-btn__content" }, ut = /* @__PURE__ */ x({
323
+ }, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */ L({
324
324
  __name: "QButton",
325
325
  props: {
326
326
  active: { type: Boolean },
@@ -341,7 +341,7 @@ const _e = V(at), it = ["disabled"], rt = {
341
341
  function a(i) {
342
342
  l.value || o("click", i);
343
343
  }
344
- const u = g(() => {
344
+ const r = g(() => {
345
345
  const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
346
346
  return [
347
347
  "q-btn",
@@ -357,27 +357,27 @@ const _e = V(at), it = ["disabled"], rt = {
357
357
  e.class
358
358
  ];
359
359
  });
360
- return (i, f) => (d(), v("button", {
360
+ return (i, p) => (c(), v("button", {
361
361
  type: "button",
362
- class: D(u.value),
362
+ class: T(r.value),
363
363
  disabled: l.value,
364
- onClick: ee(a, ["stop", "prevent"])
364
+ onClick: ne(a, ["stop", "prevent"])
365
365
  }, [
366
- i.loading ? (d(), v("div", rt, [
367
- te(k(_e), { size: 23 })
366
+ i.loading ? (c(), v("div", it, [
367
+ G($(be), { size: 23 })
368
368
  ])) : S("", !0),
369
- G("span", dt, [
370
- i.iconOnRight ? (d(), v(Z, { key: 0 }, [
371
- re(N(e.label), 1)
369
+ j("span", rt, [
370
+ i.iconOnRight ? (c(), v(J, { key: 0 }, [
371
+ se(N(e.label), 1)
372
372
  ], 64)) : S("", !0),
373
- y(i.$slots, "default"),
374
- i.iconOnRight ? S("", !0) : (d(), v(Z, { key: 1 }, [
375
- re(N(e.label), 1)
373
+ b(i.$slots, "default"),
374
+ i.iconOnRight ? S("", !0) : (c(), v(J, { key: 1 }, [
375
+ se(N(e.label), 1)
376
376
  ], 64))
377
377
  ])
378
- ], 10, it));
378
+ ], 10, st));
379
379
  }
380
- }), ct = V(ut), ft = /* @__PURE__ */ x({
380
+ }), ut = V(dt), ct = /* @__PURE__ */ L({
381
381
  __name: "QButtonGroup",
382
382
  props: {
383
383
  bStyle: { default: void 0 },
@@ -388,15 +388,15 @@ const _e = V(at), it = ["disabled"], rt = {
388
388
  },
389
389
  setup(n) {
390
390
  const t = n;
391
- return Ce({
391
+ return Ee({
392
392
  QButton: {
393
- bStyle: pe(t, "bStyle"),
394
- disabled: pe(t, "disabled"),
395
- borderless: pe(t, "borderless"),
393
+ bStyle: ce(t, "bStyle"),
394
+ disabled: ce(t, "disabled"),
395
+ borderless: ce(t, "borderless"),
396
396
  elevated: !1
397
397
  }
398
- }), (o, e) => (d(), v("div", {
399
- class: D([
398
+ }), (o, e) => (c(), v("div", {
399
+ class: T([
400
400
  "q-btn-group",
401
401
  {
402
402
  "q-btn-group--elevated": t.elevated
@@ -404,10 +404,10 @@ const _e = V(at), it = ["disabled"], rt = {
404
404
  t.class
405
405
  ])
406
406
  }, [
407
- y(o.$slots, "default")
407
+ b(o.$slots, "default")
408
408
  ], 2));
409
409
  }
410
- }), pt = V(ft), mt = /* @__PURE__ */ x({
410
+ }), ft = V(ct), pt = /* @__PURE__ */ L({
411
411
  __name: "QButtonToggle",
412
412
  props: {
413
413
  modelValue: {},
@@ -421,7 +421,7 @@ const _e = V(at), it = ["disabled"], rt = {
421
421
  emits: ["update:modelValue"],
422
422
  setup(n, { emit: t }) {
423
423
  const o = t, e = n, l = q(e.modelValue);
424
- C(
424
+ F(
425
425
  () => e.modelValue,
426
426
  (i) => l.value = i
427
427
  );
@@ -433,26 +433,26 @@ const _e = V(at), it = ["disabled"], rt = {
433
433
  l.value = i, o("update:modelValue", i);
434
434
  }
435
435
  });
436
- function u(i) {
436
+ function r(i) {
437
437
  a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
438
438
  }
439
- return (i, f) => (d(), B(k(pt), {
439
+ return (i, p) => (c(), x($(ft), {
440
440
  "b-style": "secondary",
441
- class: D(e.class),
441
+ class: T(e.class),
442
442
  disabled: e.disabled,
443
443
  borderless: e.borderless,
444
444
  elevated: e.elevated
445
445
  }, {
446
- default: $(() => [
447
- (d(!0), v(Z, null, ve(e.options, (p) => (d(), B(k(ct), {
448
- key: p.key,
449
- title: p.title,
450
- label: p.label,
451
- active: a.value === p.key,
452
- onClick: () => u(p)
446
+ default: I(() => [
447
+ (c(!0), v(J, null, pe(e.options, (m) => (c(), x($(ut), {
448
+ key: m.key,
449
+ title: m.title,
450
+ label: m.label,
451
+ active: a.value === m.key,
452
+ onClick: () => r(m)
453
453
  }, {
454
- default: $(() => [
455
- y(i.$slots, p.key)
454
+ default: I(() => [
455
+ b(i.$slots, m.key)
456
456
  ]),
457
457
  _: 2
458
458
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -460,7 +460,7 @@ const _e = V(at), it = ["disabled"], rt = {
460
460
  _: 3
461
461
  }, 8, ["class", "disabled", "borderless", "elevated"]));
462
462
  }
463
- }), In = V(mt), vt = /* @__PURE__ */ x({
463
+ }), In = V(pt), mt = /* @__PURE__ */ L({
464
464
  __name: "QIcon",
465
465
  props: {
466
466
  icon: {},
@@ -472,22 +472,22 @@ const _e = V(at), it = ["disabled"], rt = {
472
472
  const t = n, o = g(() => {
473
473
  switch (t.type) {
474
474
  case "svg":
475
- return qt;
475
+ return It;
476
476
  case "font":
477
- return $t;
477
+ return wt;
478
478
  case "img":
479
- return It;
479
+ return $t;
480
480
  default:
481
481
  return;
482
482
  }
483
483
  });
484
- return (e, l) => (d(), B(Te(o.value), {
485
- class: D(t.class),
484
+ return (e, l) => (c(), x(Ve(o.value), {
485
+ class: T(t.class),
486
486
  icon: t.icon,
487
487
  size: t.size
488
488
  }, null, 8, ["class", "icon", "size"]));
489
489
  }
490
- }), ht = /* @__PURE__ */ x({
490
+ }), vt = /* @__PURE__ */ L({
491
491
  __name: "QIconFont",
492
492
  props: {
493
493
  icon: {},
@@ -500,12 +500,12 @@ const _e = V(at), it = ["disabled"], rt = {
500
500
  const t = n, o = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), e = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
501
501
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
502
502
  }));
503
- return (a, u) => (d(), v("i", {
504
- class: D(["q-icon", "q-icon__font", o.value, e.value, t.class]),
503
+ return (a, r) => (c(), v("i", {
504
+ class: T(["q-icon", "q-icon__font", o.value, e.value, t.class]),
505
505
  style: ae(l.value)
506
506
  }, null, 6));
507
507
  }
508
- }), yt = ["src"], bt = /* @__PURE__ */ x({
508
+ }), ht = ["src"], yt = /* @__PURE__ */ L({
509
509
  __name: "QIconImg",
510
510
  props: {
511
511
  icon: {},
@@ -516,13 +516,13 @@ const _e = V(at), it = ["disabled"], rt = {
516
516
  const t = n, o = g(() => ({
517
517
  "font-size": t.size !== void 0 ? `${t.size}px` : void 0
518
518
  }));
519
- return (e, l) => (d(), v("img", {
519
+ return (e, l) => (c(), v("img", {
520
520
  src: t.icon,
521
- class: D(["q-icon", "q-icon__img", t.class]),
521
+ class: T(["q-icon", "q-icon__img", t.class]),
522
522
  style: ae(o.value)
523
- }, null, 14, yt));
523
+ }, null, 14, ht));
524
524
  }
525
- }), oe = {}, gt = x({
525
+ }), le = {}, bt = L({
526
526
  name: "InlineSvg",
527
527
  emits: ["loaded", "unloaded", "error"],
528
528
  inheritAttrs: !1,
@@ -531,9 +531,9 @@ const _e = V(at), it = ["disabled"], rt = {
531
531
  return null;
532
532
  const n = this.getSvgContent(this.svgElSource);
533
533
  if (!n)
534
- return $e("div", this.$attrs);
534
+ return ke("div", this.$attrs);
535
535
  const t = {};
536
- return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, $e("svg", t);
536
+ return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, ke("svg", t);
537
537
  },
538
538
  props: {
539
539
  src: {
@@ -578,7 +578,7 @@ const _e = V(at), it = ["disabled"], rt = {
578
578
  e !== !1 && e !== null && e !== void 0 && (n[o] = e);
579
579
  },
580
580
  getSvgContent(n) {
581
- return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), _t(n, this.title)), n);
581
+ return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), gt(n, this.title)), n);
582
582
  },
583
583
  /**
584
584
  * Get svgElSource
@@ -586,11 +586,11 @@ const _e = V(at), it = ["disabled"], rt = {
586
586
  */
587
587
  async getSource(n) {
588
588
  try {
589
- oe[n] || (oe[n] = kt(this.download(n))), this.svgElSource && oe[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
590
- const t = await oe[n];
589
+ le[n] || (le[n] = _t(this.download(n))), this.svgElSource && le[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
590
+ const t = await le[n];
591
591
  this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
592
592
  } catch (t) {
593
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete oe[n], this.$emit("error", t);
593
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete le[n], this.$emit("error", t);
594
594
  }
595
595
  },
596
596
  /**
@@ -614,7 +614,7 @@ const _e = V(at), it = ["disabled"], rt = {
614
614
  }
615
615
  }
616
616
  });
617
- function _t(n, t) {
617
+ function gt(n, t) {
618
618
  const o = n.getElementsByTagName("title");
619
619
  if (o.length)
620
620
  o[0].textContent = t;
@@ -623,7 +623,7 @@ function _t(n, t) {
623
623
  e.textContent = t, n.insertBefore(e, n.firstChild);
624
624
  }
625
625
  }
626
- function kt(n) {
626
+ function _t(n) {
627
627
  if (n.getIsPending)
628
628
  return n;
629
629
  let t = !0;
@@ -635,7 +635,7 @@ function kt(n) {
635
635
  );
636
636
  return o.getIsPending = () => t, o;
637
637
  }
638
- const wt = /* @__PURE__ */ x({
638
+ const kt = /* @__PURE__ */ L({
639
639
  __name: "QIconSvg",
640
640
  props: {
641
641
  icon: {},
@@ -651,19 +651,19 @@ const wt = /* @__PURE__ */ x({
651
651
  function a(i) {
652
652
  o("loaded", i);
653
653
  }
654
- function u() {
654
+ function r() {
655
655
  o("unloaded");
656
656
  }
657
- return (i, f) => (d(), B(k(gt), {
658
- class: D(["q-icon", "q-icon__svg", e.class]),
657
+ return (i, p) => (c(), x($(bt), {
658
+ class: T(["q-icon", "q-icon__svg", e.class]),
659
659
  src: e.bundle,
660
660
  symbol: e.icon,
661
661
  style: ae(l.value),
662
662
  onLoaded: a,
663
- onUnloaded: u
663
+ onUnloaded: r
664
664
  }, null, 8, ["class", "src", "symbol", "style"]));
665
665
  }
666
- }), P = V(vt), $t = V(ht), It = V(bt), qt = V(wt), St = /* @__PURE__ */ x({
666
+ }), Z = V(mt), wt = V(vt), $t = V(yt), It = V(kt), qt = /* @__PURE__ */ L({
667
667
  __name: "QList",
668
668
  props: {
669
669
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -677,27 +677,27 @@ const wt = /* @__PURE__ */ x({
677
677
  },
678
678
  emits: ["update:modelValue"],
679
679
  setup(n, { expose: t, emit: o }) {
680
- const e = o, l = n, a = q(l.modelValue), u = q(!1), i = g(() => f.value.length > 1 ? "div" : "ul"), f = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), p = q(null);
681
- function m(r) {
682
- a.value = r, e("update:modelValue", r);
680
+ const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() => p.value.length > 1 ? "div" : "ul"), p = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), m = q(null);
681
+ function f(d) {
682
+ a.value = d, e("update:modelValue", d);
683
683
  }
684
- function w() {
685
- u.value = !0;
684
+ function _() {
685
+ r.value = !0;
686
686
  }
687
- function z() {
688
- u.value = !1;
687
+ function C() {
688
+ r.value = !1;
689
689
  }
690
- function F(r) {
691
- var L;
692
- if ((L = p.value) != null && L.contains(r.relatedTarget))
690
+ function E(d) {
691
+ var B;
692
+ if ((B = m.value) != null && B.contains(d.relatedTarget))
693
693
  return;
694
- let h;
695
- a.value ? h = l.items.findIndex((W) => W[l.itemValue] === a.value) : h = Q();
696
- const I = u.value;
697
- O(h, I);
694
+ let y;
695
+ a.value ? y = l.items.findIndex((ue) => ue[l.itemValue] === a.value) : y = Q();
696
+ const k = r.value;
697
+ O(y, k);
698
698
  }
699
- function A(r) {
700
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && r.preventDefault(), r.key) {
699
+ function A(d) {
700
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && d.preventDefault(), d.key) {
701
701
  case "ArrowDown":
702
702
  R("next");
703
703
  break;
@@ -712,11 +712,11 @@ const wt = /* @__PURE__ */ x({
712
712
  break;
713
713
  }
714
714
  }
715
- function R(r) {
716
- switch (r) {
715
+ function R(d) {
716
+ switch (d) {
717
717
  case "next":
718
718
  case "prev":
719
- O(X(r));
719
+ O(Y(d));
720
720
  break;
721
721
  case "first":
722
722
  O(Q());
@@ -726,58 +726,58 @@ const wt = /* @__PURE__ */ x({
726
726
  break;
727
727
  }
728
728
  }
729
- function O(r, h = !1) {
730
- var L;
731
- (L = E()[r]) == null || L.focus({ preventScroll: h });
729
+ function O(d, y = !1) {
730
+ var B;
731
+ (B = z()[d]) == null || B.focus({ preventScroll: y });
732
732
  }
733
- function E() {
734
- var h;
735
- const r = (h = p.value) == null ? void 0 : h.querySelectorAll("li");
736
- return r ? Array.from(r) : [];
733
+ function z() {
734
+ var y;
735
+ const d = (y = m.value) == null ? void 0 : y.querySelectorAll("li");
736
+ return d ? Array.from(d) : [];
737
737
  }
738
- function H(r) {
739
- return E()[r];
738
+ function H(d) {
739
+ return z()[d];
740
740
  }
741
- function j() {
742
- return E().indexOf(document.activeElement);
741
+ function X() {
742
+ return z().indexOf(document.activeElement);
743
743
  }
744
744
  function Q() {
745
- const r = E(), h = r.find((I) => b(I));
746
- return h ? r.indexOf(h) : -1;
745
+ const d = z(), y = d.find((k) => h(k));
746
+ return y ? d.indexOf(y) : -1;
747
747
  }
748
748
  function M() {
749
- const r = E(), h = [...r].reverse().find((I) => b(I));
750
- return h ? r.indexOf(h) : -1;
751
- }
752
- function U(r, h, I) {
753
- return h === "prev" && r === 0 || h === "next" && r === I.length - 1;
754
- }
755
- function X(r) {
756
- const h = j();
757
- return K(h, r);
758
- }
759
- function K(r, h) {
760
- const I = E();
761
- if (U(r, h, I))
762
- return r;
763
- let L = r + (h === "next" ? 1 : -1);
764
- for (; !b(I[L]); ) {
765
- if (U(L, h, I))
766
- return r;
767
- L += h === "next" ? 1 : -1;
749
+ const d = z(), y = [...d].reverse().find((k) => h(k));
750
+ return y ? d.indexOf(y) : -1;
751
+ }
752
+ function U(d, y, k) {
753
+ return y === "prev" && d === 0 || y === "next" && d === k.length - 1;
754
+ }
755
+ function Y(d) {
756
+ const y = X();
757
+ return K(y, d);
758
+ }
759
+ function K(d, y) {
760
+ const k = z();
761
+ if (U(d, y, k))
762
+ return d;
763
+ let B = d + (y === "next" ? 1 : -1);
764
+ for (; !h(k[B]); ) {
765
+ if (U(B, y, k))
766
+ return d;
767
+ B += y === "next" ? 1 : -1;
768
768
  }
769
- return L;
769
+ return B;
770
770
  }
771
- function b(r) {
772
- return r.tabIndex === -2;
771
+ function h(d) {
772
+ return d.tabIndex === -2;
773
773
  }
774
- function c(r) {
775
- return r ? l.items.filter((h) => h.group === r) : l.items;
774
+ function u(d) {
775
+ return d ? l.items.filter((y) => y.group === d) : l.items;
776
776
  }
777
- return C(
777
+ return F(
778
778
  () => l.modelValue,
779
- (r) => {
780
- a.value = r;
779
+ (d) => {
780
+ a.value = d;
781
781
  }
782
782
  ), t({
783
783
  focusItem: O,
@@ -785,36 +785,36 @@ const wt = /* @__PURE__ */ x({
785
785
  getAdjacentItemIndex: K,
786
786
  getFirstFocusableItemIndex: Q,
787
787
  getLastFocusableItemIndex: M
788
- }), (r, h) => (d(), B(Te(i.value), {
788
+ }), (d, y) => (c(), x(Ve(i.value), {
789
789
  ref_key: "listRef",
790
- ref: p,
791
- class: D(["q-list", { "q-list--disabled": l.disabled }, l.class]),
790
+ ref: m,
791
+ class: T(["q-list", { "q-list--disabled": l.disabled }, l.class]),
792
792
  role: "listbox",
793
793
  tabindex: l.disabled ? -1 : 0,
794
- onFocus: F,
795
- onMousedown: w,
796
- onMouseup: z,
794
+ onFocus: E,
795
+ onMousedown: _,
796
+ onMouseup: C,
797
797
  onKeydown: A
798
798
  }, {
799
- default: $(() => [
800
- (d(!0), v(Z, null, ve(f.value, (I) => (d(), B(k(Ft), {
801
- key: I.id,
802
- title: I.title,
803
- disabled: I.disabled
799
+ default: I(() => [
800
+ (c(!0), v(J, null, pe(p.value, (k) => (c(), x($(Ct), {
801
+ key: k.id,
802
+ title: k.title,
803
+ disabled: k.disabled
804
804
  }, {
805
- default: $(() => [
806
- (d(!0), v(Z, null, ve(c(I.id), (L) => (d(), B(k(Ct), {
807
- key: L[l.itemValue],
808
- value: L[l.itemValue],
809
- label: L[l.itemLabel],
810
- icon: L.icon,
811
- disabled: l.disabled || L.disabled,
812
- highlighted: l.highlighted === L[l.itemValue],
813
- selected: a.value === L[l.itemValue],
814
- onSelect: m
805
+ default: I(() => [
806
+ (c(!0), v(J, null, pe(u(k.id), (B) => (c(), x($(zt), {
807
+ key: B[l.itemValue],
808
+ value: B[l.itemValue],
809
+ label: B[l.itemLabel],
810
+ icon: B.icon,
811
+ disabled: l.disabled || B.disabled,
812
+ highlighted: l.highlighted === B[l.itemValue],
813
+ selected: a.value === B[l.itemValue],
814
+ onSelect: f
815
815
  }, {
816
- default: $(() => [
817
- y(r.$slots, "item", { item: L })
816
+ default: I(() => [
817
+ b(d.$slots, "item", { item: B })
818
818
  ]),
819
819
  _: 2
820
820
  }, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -826,15 +826,15 @@ const wt = /* @__PURE__ */ x({
826
826
  }, 40, ["class", "tabindex"]));
827
827
  }
828
828
  });
829
- let Lt = 0;
830
- function le() {
831
- return `uid-${++Lt}`;
829
+ let St = 0;
830
+ function te() {
831
+ return `uid-${++St}`;
832
832
  }
833
- const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-list-item__check-container" }, Vt = {
833
+ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-list-item__check-container" }, xt = {
834
834
  check: {
835
835
  icon: "check"
836
836
  }
837
- }, Dt = /* @__PURE__ */ x({
837
+ }, Vt = /* @__PURE__ */ L({
838
838
  __name: "QListItem",
839
839
  props: {
840
840
  value: { type: [String, Number, Boolean, Symbol] },
@@ -842,23 +842,23 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
842
842
  icon: { default: void 0 },
843
843
  selected: { type: Boolean },
844
844
  highlighted: { type: Boolean },
845
- icons: { default: () => Vt },
845
+ icons: { default: () => xt },
846
846
  disabled: { type: Boolean }
847
847
  },
848
848
  emits: ["select"],
849
849
  setup(n, { emit: t }) {
850
- const o = t, e = n, l = le();
850
+ const o = t, e = n, l = te();
851
851
  function a() {
852
852
  e.disabled || o("select", e.value);
853
853
  }
854
- function u(i) {
854
+ function r(i) {
855
855
  i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
856
856
  }
857
- return (i, f) => (d(), v("li", {
858
- id: k(l),
857
+ return (i, p) => (c(), v("li", {
858
+ id: $(l),
859
859
  role: "option",
860
860
  tabindex: e.disabled ? void 0 : -2,
861
- class: D([
861
+ class: T([
862
862
  "q-list-item",
863
863
  {
864
864
  "q-list-item--disabled": e.disabled,
@@ -868,87 +868,87 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
868
868
  ]),
869
869
  "aria-label": e.label,
870
870
  "aria-selected": e.disabled ? void 0 : e.selected,
871
- onKeydown: u,
872
- onClick: ee(a, ["stop", "prevent"])
871
+ onKeydown: r,
872
+ onClick: ne(a, ["stop", "prevent"])
873
873
  }, [
874
- y(i.$slots, "default", {}, () => [
875
- e.icon ? (d(), B(k(P), de(ne({ key: 0 }, e.icon)), null, 16)) : S("", !0),
876
- re(" " + N(e.label), 1)
874
+ b(i.$slots, "default", {}, () => [
875
+ e.icon ? (c(), x($(Z), ie(ee({ key: 0 }, e.icon)), null, 16)) : S("", !0),
876
+ se(" " + N(e.label), 1)
877
877
  ]),
878
- G("div", xt, [
879
- e.selected ? (d(), B(k(P), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
878
+ j("div", Lt, [
879
+ e.selected ? (c(), x($(Z), ee({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
880
880
  ])
881
881
  ], 42, Bt));
882
882
  }
883
- }), Tt = ["aria-labelledby"], Et = ["id"], zt = /* @__PURE__ */ x({
883
+ }), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */ L({
884
884
  __name: "QListItemGroup",
885
885
  props: {
886
886
  title: { default: "" },
887
887
  disabled: { type: Boolean }
888
888
  },
889
889
  setup(n) {
890
- const t = n, o = le();
891
- return (e, l) => (d(), v("ul", {
890
+ const t = n, o = te();
891
+ return (e, l) => (c(), v("ul", {
892
892
  class: "q-list-item-group",
893
893
  role: "group",
894
- "aria-labelledby": t.title ? k(o) : void 0
894
+ "aria-labelledby": t.title ? $(o) : void 0
895
895
  }, [
896
- t.title ? (d(), v("li", {
896
+ t.title ? (c(), v("li", {
897
897
  key: 0,
898
- id: k(o),
898
+ id: $(o),
899
899
  class: "q-list-item-group__title",
900
900
  role: "presentation"
901
- }, N(t.title), 9, Et)) : S("", !0),
902
- y(e.$slots, "default")
903
- ], 8, Tt));
901
+ }, N(t.title), 9, Tt)) : S("", !0),
902
+ b(e.$slots, "default")
903
+ ], 8, Dt));
904
904
  }
905
- }), Me = V(St), Ct = V(Dt), Ft = V(zt);
906
- function At(n, t, o = "right", e) {
907
- const l = n.getBoundingClientRect(), a = l.x + window.scrollX, u = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, p = (i == null ? void 0 : i.height) ?? 0;
908
- let m = o;
909
- i && !Oe(l, i, m) && (m = Qt(l, i, m));
910
- const w = { x: 0, y: 0, placement: m };
911
- switch (m) {
905
+ }), Qe = V(qt), zt = V(Vt), Ct = V(Et);
906
+ function Ft(n, t, o = "right", e) {
907
+ const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), p = (i == null ? void 0 : i.width) ?? 0, m = (i == null ? void 0 : i.height) ?? 0;
908
+ let f = o;
909
+ i && !Re(l, i, f) && (f = At(l, i, f));
910
+ const _ = { x: 0, y: 0, placement: f };
911
+ switch (f) {
912
912
  case "top":
913
- e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u - p;
913
+ e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r - m;
914
914
  break;
915
915
  case "bottom":
916
- e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u + l.height;
916
+ e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r + l.height;
917
917
  break;
918
918
  case "left":
919
- w.x = a - f, w.y = u + l.height / 2 - p / 2;
919
+ _.x = a - p, _.y = r + l.height / 2 - m / 2;
920
920
  break;
921
921
  case "right":
922
- w.x = a + l.width, w.y = u + l.height / 2 - p / 2;
922
+ _.x = a + l.width, _.y = r + l.height / 2 - m / 2;
923
923
  break;
924
924
  }
925
- return e === "anchor" && l.width >= f && (w.width = l.width), w;
925
+ return e === "anchor" && l.width >= p && (_.width = l.width), _;
926
926
  }
927
- function Oe(n, t, o) {
927
+ function Re(n, t, o) {
928
928
  let e = !1, l = !1;
929
929
  switch (o) {
930
930
  case "top":
931
- e = xe(n, t), l = n.top > t.height;
931
+ e = Be(n, t), l = n.top > t.height;
932
932
  break;
933
933
  case "bottom":
934
- e = xe(n, t), l = window.innerHeight - n.top - n.height > t.height;
934
+ e = Be(n, t), l = window.innerHeight - n.top - n.height > t.height;
935
935
  break;
936
936
  case "left":
937
- e = n.left > t.width, l = Be(n, t);
937
+ e = n.left > t.width, l = Se(n, t);
938
938
  break;
939
939
  case "right":
940
- e = window.innerWidth - n.left - n.width > t.width, l = Be(n, t);
940
+ e = window.innerWidth - n.left - n.width > t.width, l = Se(n, t);
941
941
  break;
942
942
  }
943
943
  return e && l;
944
944
  }
945
- function Be(n, t) {
945
+ function Se(n, t) {
946
946
  return window.innerHeight - n.top - n.height / 2 > t.height / 2 && n.top + n.height / 2 > t.height / 2;
947
947
  }
948
- function xe(n, t) {
948
+ function Be(n, t) {
949
949
  return window.innerWidth - n.left - n.width / 2 > t.width / 2 && n.left + n.width / 2 > t.width / 2;
950
950
  }
951
- function Qt(n, t, o) {
951
+ function At(n, t, o) {
952
952
  const e = {
953
953
  top: ["bottom", "left", "right"],
954
954
  bottom: ["top", "left", "right"],
@@ -956,25 +956,27 @@ function Qt(n, t, o) {
956
956
  right: ["left", "top", "bottom"]
957
957
  };
958
958
  for (const l of e[o])
959
- if (Oe(n, t, l))
959
+ if (Re(n, t, l))
960
960
  return l;
961
961
  return o;
962
962
  }
963
- function ie(n) {
963
+ function oe(n) {
964
964
  return typeof n == "string" ? document.querySelector(n) : n && "$el" in n ? n.$el : n;
965
965
  }
966
- const Rt = {
966
+ const Qt = ["role"], Rt = {
967
967
  key: 0,
968
+ role: "presentation",
968
969
  class: "q-overlay__arrow"
969
- }, Mt = /* @__PURE__ */ x({
970
+ }, Mt = /* @__PURE__ */ L({
970
971
  inheritAttrs: !1,
971
972
  __name: "QOverlay",
972
973
  props: {
973
974
  modelValue: { type: Boolean },
974
- anchor: {},
975
+ anchor: { default: void 0 },
975
976
  appearance: { default: "regular" },
976
977
  arrow: { type: Boolean },
977
978
  attach: { default: "body" },
979
+ backdropBlur: { type: Boolean },
978
980
  delay: { default: 500 },
979
981
  disabled: { type: Boolean },
980
982
  offset: { default: 8 },
@@ -989,158 +991,187 @@ const Rt = {
989
991
  setup(n, { emit: t }) {
990
992
  const o = t, e = n, l = g(() => [
991
993
  "q-overlay",
992
- `q-overlay--${a.placement}`,
994
+ `q-overlay--${r.placement}`,
993
995
  { "q-overlay--inverted": e.appearance === "inverted" },
994
996
  e.class
995
- ]), a = He({
997
+ ]), a = g(
998
+ () => (i.value || r.animating) && e.trigger === "click"
999
+ ), r = Ue({
996
1000
  visible: e.modelValue,
997
1001
  animating: !1,
998
1002
  top: 0,
999
1003
  left: 0,
1000
1004
  width: 0,
1001
1005
  placement: e.placement
1002
- }), u = g(() => a.visible && !e.disabled);
1003
- C(
1006
+ }), i = g(() => r.visible && !e.disabled);
1007
+ F(
1004
1008
  () => e.modelValue,
1005
- () => a.visible = e.modelValue
1006
- ), C(
1007
- () => a.visible,
1008
- () => a.animating = !0
1009
+ () => r.visible = e.modelValue
1010
+ ), F(
1011
+ () => r.visible,
1012
+ () => r.animating = !0
1009
1013
  );
1010
- const i = g(() => {
1011
- let b = 0, c = 0;
1012
- switch (a.placement) {
1014
+ const p = g(() => {
1015
+ let h = 0, u = 0;
1016
+ switch (r.placement) {
1013
1017
  case "top":
1014
- c = -(e.offset || 0);
1018
+ u = -(e.offset || 0);
1015
1019
  break;
1016
1020
  case "bottom":
1017
- c = e.offset || 0;
1021
+ u = e.offset || 0;
1018
1022
  break;
1019
1023
  case "left":
1020
- b = -(e.offset || 0);
1024
+ h = -(e.offset || 0);
1021
1025
  break;
1022
1026
  case "right":
1023
- b = e.offset || 0;
1027
+ h = e.offset || 0;
1024
1028
  break;
1025
1029
  }
1026
- const r = {
1027
- top: `${a.top + c}px`,
1028
- left: `${a.left + b}px`
1030
+ const d = {
1031
+ top: `${r.top + u}px`,
1032
+ left: `${r.left + h}px`
1029
1033
  };
1030
- return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (r.width = `${a.width}px`), r;
1031
- }), f = q(null);
1032
- function p() {
1033
- const b = ie(e.anchor);
1034
- if (b) {
1035
- const c = At(b, f.value, e.placement, e.width);
1036
- a.left = c.x, a.top = c.y, a.width = c.width, a.placement = c.placement;
1034
+ return r.width !== void 0 && ["top", "bottom"].includes(r.placement) && (d.width = `${r.width}px`), d;
1035
+ }), m = q(null);
1036
+ function f() {
1037
+ if (e.anchor) {
1038
+ const h = oe(e.anchor);
1039
+ if (h) {
1040
+ const u = Ft(
1041
+ h,
1042
+ m.value,
1043
+ e.placement,
1044
+ e.width
1045
+ );
1046
+ r.left = u.x, r.top = u.y, r.width = u.width, r.placement = u.placement;
1047
+ }
1037
1048
  }
1038
1049
  }
1039
- C([() => u.value, () => e.placement], p);
1040
- let m;
1041
- function w() {
1042
- const b = e.trigger === "hover" ? e.delay : 0;
1043
- m || (m = window.setTimeout(() => a.visible = !0, b));
1050
+ F([() => i.value, () => e.placement], f);
1051
+ let _;
1052
+ function C(h) {
1053
+ _ || (_ = window.setTimeout(() => {
1054
+ r.visible = !0, P(() => {
1055
+ var u;
1056
+ e.trigger === "click" && ((u = m.value) == null || u.focus());
1057
+ });
1058
+ }, h));
1044
1059
  }
1045
- function z() {
1046
- clearTimeout(m), m = void 0, a.visible = !1;
1047
- }
1048
- function F() {
1049
- u.value ? z() : w();
1060
+ function E() {
1061
+ clearTimeout(_), _ = void 0, r.visible = !1, P(() => {
1062
+ if (e.anchor && e.trigger === "click") {
1063
+ const h = oe(e.anchor);
1064
+ h == null || h.focus();
1065
+ }
1066
+ });
1050
1067
  }
1051
1068
  let A;
1052
1069
  function R() {
1053
1070
  o("enter");
1054
1071
  }
1055
1072
  function O() {
1056
- window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), o("leave");
1073
+ window.clearTimeout(A), A = window.setTimeout(() => r.animating = !1, 200), o("leave");
1057
1074
  }
1058
- let E;
1075
+ let z;
1059
1076
  function H() {
1060
- J(() => {
1061
- const b = ie(e.anchor);
1062
- if (b)
1077
+ P(() => {
1078
+ if (!e.anchor)
1079
+ return;
1080
+ const h = oe(e.anchor);
1081
+ if (h)
1063
1082
  switch (e.trigger) {
1064
1083
  case "click":
1065
- b.addEventListener("click", F);
1084
+ h.addEventListener("click", () => C(0));
1066
1085
  break;
1067
1086
  case "hover":
1068
- b.addEventListener("mouseenter", w), b.addEventListener("mouseleave", z);
1087
+ h.addEventListener("mouseenter", () => C(e.delay)), h.addEventListener("mouseleave", E), h.addEventListener("focusin", () => C(0)), h.addEventListener("focusout", E);
1069
1088
  break;
1070
1089
  }
1071
1090
  });
1072
1091
  }
1073
- function j() {
1074
- J(() => {
1075
- const b = ie(e.anchor);
1076
- b && (window.addEventListener("scroll", p), window.addEventListener("resize", p), E = new MutationObserver(p), E.observe(b, {
1092
+ function X() {
1093
+ P(() => {
1094
+ if (!e.anchor)
1095
+ return;
1096
+ const h = oe(e.anchor);
1097
+ h && (window.addEventListener("scroll", f), window.addEventListener("resize", f), z = new MutationObserver(f), z.observe(h, {
1077
1098
  attributes: !1,
1078
1099
  childList: !0,
1079
1100
  characterData: !0,
1080
1101
  subtree: !0
1081
- }), p());
1102
+ }), f());
1082
1103
  });
1083
1104
  }
1084
1105
  function Q() {
1085
- window.removeEventListener("scroll", p), window.removeEventListener("resize", p), E == null || E.disconnect();
1106
+ window.removeEventListener("scroll", f), window.removeEventListener("resize", f), z == null || z.disconnect();
1086
1107
  }
1087
1108
  let M;
1088
1109
  function U() {
1089
- ie(e.anchor) ? (p(), M = window.setTimeout(U, 100)) : z();
1110
+ if (!e.anchor)
1111
+ return;
1112
+ oe(e.anchor) ? (f(), M = window.setTimeout(U, 100)) : E();
1090
1113
  }
1091
- function X() {
1092
- j(), e.spy && U();
1114
+ function Y() {
1115
+ X(), e.spy && U();
1093
1116
  }
1094
1117
  function K() {
1095
1118
  Q(), e.spy && (clearTimeout(M), M = void 0);
1096
1119
  }
1097
- return Ke(K), Ee(p), C(
1120
+ return Ne(K), De(f), F(
1098
1121
  () => e.disabled,
1099
- (b) => {
1100
- b || H();
1122
+ (h) => {
1123
+ h || H();
1101
1124
  },
1102
1125
  { immediate: !0 }
1103
- ), C(
1104
- () => u.value,
1105
- (b) => {
1106
- b ? X() : K();
1126
+ ), F(
1127
+ () => i.value,
1128
+ (h) => {
1129
+ h ? Y() : K();
1107
1130
  },
1108
1131
  { immediate: !0 }
1109
- ), (b, c) => (d(), v(Z, null, [
1110
- y(b.$slots, "trigger", { open: u.value }),
1111
- u.value || a.animating ? (d(), B(We, {
1132
+ ), (h, u) => (c(), x(He, {
1133
+ disabled: !i.value && !r.animating || !e.attach,
1134
+ to: e.attach
1135
+ }, [
1136
+ a.value ? (c(), v("div", {
1112
1137
  key: 0,
1113
- disabled: !e.attach,
1114
- to: e.attach
1115
- }, [
1116
- te(Ge, {
1117
- name: e.transition,
1118
- appear: "",
1119
- onEnter: R,
1120
- onLeave: O
1121
- }, {
1122
- default: $(() => [
1123
- u.value ? (d(), v("div", {
1124
- key: 0,
1125
- class: D(l.value),
1126
- style: ae(i.value)
1127
- }, [
1128
- G("div", {
1129
- class: "q-overlay__content",
1130
- ref_key: "overlay",
1131
- ref: f
1132
- }, [
1133
- e.arrow ? (d(), v("div", Rt)) : S("", !0),
1134
- y(b.$slots, "default")
1135
- ], 512)
1136
- ], 6)) : S("", !0)
1137
- ]),
1138
- _: 3
1139
- }, 8, ["name"])
1140
- ], 8, ["disabled", "to"])) : S("", !0)
1141
- ], 64));
1138
+ class: T([
1139
+ "q-overlay__underlay",
1140
+ { "q-overlay__underlay--blur": e.backdropBlur }
1141
+ ])
1142
+ }, null, 2)) : S("", !0),
1143
+ G(Ke, {
1144
+ name: e.transition,
1145
+ appear: "",
1146
+ onEnter: R,
1147
+ onLeave: O
1148
+ }, {
1149
+ default: I(() => [
1150
+ i.value ? (c(), v("div", {
1151
+ key: 0,
1152
+ class: T(l.value),
1153
+ style: ae(p.value)
1154
+ }, [
1155
+ j("div", ee({
1156
+ class: "q-overlay__content",
1157
+ ref_key: "overlayRef",
1158
+ ref: m,
1159
+ tabindex: "-1",
1160
+ role: a.value ? "dialog" : void 0
1161
+ }, h.$attrs, {
1162
+ onKeydown: We(E, ["escape"]),
1163
+ onBlur: E
1164
+ }), [
1165
+ e.arrow ? (c(), v("div", Rt)) : S("", !0),
1166
+ b(h.$slots, "default")
1167
+ ], 16, Qt)
1168
+ ], 6)) : S("", !0)
1169
+ ]),
1170
+ _: 3
1171
+ }, 8, ["name"])
1172
+ ], 8, ["disabled", "to"]));
1142
1173
  }
1143
- }), ce = V(Mt), Ot = ["id"], Ut = {
1174
+ }), de = V(Mt), Ot = ["id"], Ut = {
1144
1175
  key: 0,
1145
1176
  class: "q-field__label"
1146
1177
  }, Nt = ["for"], Ht = {
@@ -1152,11 +1183,11 @@ const Rt = {
1152
1183
  }, Wt = {
1153
1184
  key: 1,
1154
1185
  class: "q-field__extras"
1155
- }, Gt = /* @__PURE__ */ x({
1186
+ }, Gt = /* @__PURE__ */ L({
1156
1187
  inheritAttrs: !1,
1157
1188
  __name: "QField",
1158
1189
  props: {
1159
- id: { default: () => le() },
1190
+ id: { default: () => te() },
1160
1191
  label: { default: "" },
1161
1192
  size: { default: "medium" },
1162
1193
  readonly: { type: Boolean },
@@ -1168,9 +1199,9 @@ const Rt = {
1168
1199
  const o = n, e = q(null), l = g(() => o.required && !o.readonly && !o.disabled);
1169
1200
  return t({
1170
1201
  fieldRef: e
1171
- }), (a, u) => (d(), v("div", {
1202
+ }), (a, r) => (c(), v("div", {
1172
1203
  id: o.id,
1173
- class: D([
1204
+ class: T([
1174
1205
  "q-field",
1175
1206
  `q-field--${o.size}`,
1176
1207
  {
@@ -1181,39 +1212,39 @@ const Rt = {
1181
1212
  o.class
1182
1213
  ])
1183
1214
  }, [
1184
- o.label ? (d(), v("div", Ut, [
1185
- y(a.$slots, "label.prepend"),
1186
- G("label", {
1215
+ o.label ? (c(), v("div", Ut, [
1216
+ b(a.$slots, "label.prepend"),
1217
+ j("label", {
1187
1218
  for: o.id
1188
1219
  }, N(o.label), 9, Nt),
1189
- y(a.$slots, "label.append")
1220
+ b(a.$slots, "label.append")
1190
1221
  ])) : S("", !0),
1191
- y(a.$slots, "control", {}, () => [
1192
- G("div", ne({
1222
+ b(a.$slots, "control", {}, () => [
1223
+ j("div", ee({
1193
1224
  class: "q-field__control",
1194
1225
  ref_key: "fieldRef",
1195
1226
  ref: e
1196
1227
  }, a.$attrs), [
1197
- a.$slots.prepend ? (d(), v("div", Ht, [
1198
- y(a.$slots, "prepend")
1228
+ a.$slots.prepend ? (c(), v("div", Ht, [
1229
+ b(a.$slots, "prepend")
1199
1230
  ])) : S("", !0),
1200
- y(a.$slots, "default"),
1201
- a.$slots.append ? (d(), v("div", Kt, [
1202
- y(a.$slots, "append")
1231
+ b(a.$slots, "default"),
1232
+ a.$slots.append ? (c(), v("div", Kt, [
1233
+ b(a.$slots, "append")
1203
1234
  ])) : S("", !0)
1204
1235
  ], 16)
1205
1236
  ]),
1206
- a.$slots.extras ? (d(), v("div", Wt, [
1207
- y(a.$slots, "extras")
1237
+ a.$slots.extras ? (c(), v("div", Wt, [
1238
+ b(a.$slots, "extras")
1208
1239
  ])) : S("", !0)
1209
1240
  ], 10, Ot));
1210
1241
  }
1211
- }), ke = V(Gt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ x({
1242
+ }), ge = V(Gt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ L({
1212
1243
  inheritAttrs: !1,
1213
1244
  __name: "QTextField",
1214
1245
  props: {
1215
1246
  modelValue: { default: "" },
1216
- id: { default: () => le() },
1247
+ id: { default: () => te() },
1217
1248
  placeholder: { default: "" },
1218
1249
  label: { default: "" },
1219
1250
  size: { default: void 0 },
@@ -1227,79 +1258,79 @@ const Rt = {
1227
1258
  },
1228
1259
  emits: ["update:modelValue"],
1229
1260
  setup(n, { expose: t, emit: o }) {
1230
- const e = o, l = n, a = q(l.modelValue), u = q(null), i = q(null), f = g({
1261
+ const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null), p = g({
1231
1262
  get() {
1232
1263
  return a.value;
1233
1264
  },
1234
- set(m) {
1235
- a.value = m, e("update:modelValue", m);
1265
+ set(f) {
1266
+ a.value = f, e("update:modelValue", f);
1236
1267
  }
1237
- }), p = g(
1268
+ }), m = g(
1238
1269
  () => l.readonly || l.disabled ? "" : l.placeholder
1239
1270
  );
1240
- return C(
1271
+ return F(
1241
1272
  () => l.modelValue,
1242
- (m) => a.value = m
1273
+ (f) => a.value = f
1243
1274
  ), t({
1244
1275
  fieldRef: g(() => {
1245
- var m;
1246
- return (m = u.value) == null ? void 0 : m.fieldRef;
1276
+ var f;
1277
+ return (f = r.value) == null ? void 0 : f.fieldRef;
1247
1278
  }),
1248
1279
  inputRef: i
1249
- }), (m, w) => (d(), B(k(ke), {
1280
+ }), (f, _) => (c(), x($(ge), {
1250
1281
  ref_key: "fieldRef",
1251
- ref: u,
1252
- class: D(["q-text-field", l.class]),
1282
+ ref: r,
1283
+ class: T(["q-text-field", l.class]),
1253
1284
  id: l.id,
1254
1285
  label: l.label,
1255
1286
  size: l.size,
1256
1287
  readonly: l.readonly,
1257
1288
  disabled: l.disabled,
1258
1289
  required: l.required
1259
- }, be({
1260
- "label.prepend": $(() => [
1261
- y(m.$slots, "label.prepend")
1290
+ }, he({
1291
+ "label.prepend": I(() => [
1292
+ b(f.$slots, "label.prepend")
1262
1293
  ]),
1263
- "label.append": $(() => [
1264
- y(m.$slots, "label.append")
1294
+ "label.append": I(() => [
1295
+ b(f.$slots, "label.append")
1265
1296
  ]),
1266
- default: $(() => [
1267
- je(G("input", ne({
1268
- "onUpdate:modelValue": w[0] || (w[0] = (z) => f.value = z),
1297
+ default: I(() => [
1298
+ Ge(j("input", ee({
1299
+ "onUpdate:modelValue": _[0] || (_[0] = (C) => p.value = C),
1269
1300
  ref_key: "inputRef",
1270
1301
  ref: i,
1271
1302
  class: "q-text-field__input",
1272
1303
  type: l.type,
1273
1304
  role: l.role,
1274
1305
  required: l.required,
1275
- placeholder: p.value,
1306
+ placeholder: m.value,
1276
1307
  readonly: l.readonly,
1277
1308
  disabled: l.disabled,
1278
1309
  maxlength: l.maxLength
1279
- }, m.$attrs), null, 16, jt), [
1280
- [Xe, f.value]
1310
+ }, f.$attrs), null, 16, jt), [
1311
+ [je, p.value]
1281
1312
  ])
1282
1313
  ]),
1283
1314
  _: 2
1284
1315
  }, [
1285
- m.$slots.prepend ? {
1316
+ f.$slots.prepend ? {
1286
1317
  name: "prepend",
1287
- fn: $(() => [
1288
- y(m.$slots, "prepend")
1318
+ fn: I(() => [
1319
+ b(f.$slots, "prepend")
1289
1320
  ]),
1290
1321
  key: "0"
1291
1322
  } : void 0,
1292
- m.$slots.append ? {
1323
+ f.$slots.append ? {
1293
1324
  name: "append",
1294
- fn: $(() => [
1295
- y(m.$slots, "append")
1325
+ fn: I(() => [
1326
+ b(f.$slots, "append")
1296
1327
  ]),
1297
1328
  key: "1"
1298
1329
  } : void 0,
1299
- m.$slots.extras ? {
1330
+ f.$slots.extras ? {
1300
1331
  name: "extras",
1301
- fn: $(() => [
1302
- y(m.$slots, "extras")
1332
+ fn: I(() => [
1333
+ b(f.$slots, "extras")
1303
1334
  ]),
1304
1335
  key: "2"
1305
1336
  } : void 0
@@ -1314,11 +1345,11 @@ const Rt = {
1314
1345
  clear: {
1315
1346
  icon: "close"
1316
1347
  }
1317
- }, en = /* @__PURE__ */ x({
1348
+ }, en = /* @__PURE__ */ L({
1318
1349
  __name: "QCombobox",
1319
1350
  props: {
1320
1351
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1321
- id: { default: () => le() },
1352
+ id: { default: () => te() },
1322
1353
  placeholder: { default: "" },
1323
1354
  selectionMode: { default: "automatic" },
1324
1355
  filterMode: { default: "builtin" },
@@ -1339,36 +1370,36 @@ const Rt = {
1339
1370
  },
1340
1371
  emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
1341
1372
  setup(n, { expose: t, emit: o }) {
1342
- const e = o, l = n, a = q(l.modelValue), u = q(!1), i = q(""), f = q(void 0), p = q(null), m = q(null), w = q(null);
1343
- Ee(Q);
1344
- const z = g(
1373
+ const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""), p = q(void 0), m = q(null), f = q(null), _ = q(null);
1374
+ De(Q);
1375
+ const C = g(
1345
1376
  () => l.clearable && !l.readonly && !l.disabled && !l.loading
1346
- ), F = g(() => {
1377
+ ), E = g(() => {
1347
1378
  var s;
1348
- return l.filterMode === "manual" || !E.value ? l.items : (s = l.items) == null ? void 0 : s.filter(
1349
- (_) => _[l.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1379
+ return l.filterMode === "manual" || !z.value ? l.items : (s = l.items) == null ? void 0 : s.filter(
1380
+ (w) => w[l.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
1350
1381
  );
1351
1382
  }), A = g(() => {
1352
1383
  var s;
1353
- return (s = l.items) == null ? void 0 : s.find((_) => _[l.itemValue] === a.value);
1384
+ return (s = l.items) == null ? void 0 : s.find((w) => w[l.itemValue] === a.value);
1354
1385
  }), R = g(() => {
1355
- const s = f.value;
1356
- if (s !== void 0 && F.value[s])
1357
- return F.value[s];
1386
+ const s = p.value;
1387
+ if (s !== void 0 && E.value[s])
1388
+ return E.value[s];
1358
1389
  }), O = g(() => {
1359
- var _;
1360
- if (f.value === void 0)
1390
+ var w;
1391
+ if (p.value === void 0)
1361
1392
  return;
1362
- const s = (_ = m.value) == null ? void 0 : _.getItem(f.value);
1393
+ const s = (w = f.value) == null ? void 0 : w.getItem(p.value);
1363
1394
  return s == null ? void 0 : s.id;
1364
- }), E = g(() => {
1395
+ }), z = g(() => {
1365
1396
  var s;
1366
1397
  return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[l.itemLabel]);
1367
1398
  });
1368
1399
  function H(s) {
1369
1400
  a.value = s, Q(), e("update:modelValue", s);
1370
1401
  }
1371
- function j(s) {
1402
+ function X(s) {
1372
1403
  H(s), U();
1373
1404
  }
1374
1405
  function Q() {
@@ -1376,206 +1407,202 @@ const Rt = {
1376
1407
  i.value = ((s = A.value) == null ? void 0 : s[l.itemLabel]) || "";
1377
1408
  }
1378
1409
  function M() {
1379
- u.value || l.readonly || l.disabled || (e("before-show"), u.value = !0);
1410
+ r.value || l.readonly || l.disabled || (e("before-show"), r.value = !0);
1380
1411
  }
1381
1412
  function U() {
1382
- u.value && (e("before-hide"), u.value = !1, f.value = void 0);
1413
+ r.value && (e("before-hide"), r.value = !1, p.value = void 0);
1383
1414
  }
1384
- function X() {
1385
- H(void 0), f.value = void 0;
1415
+ function Y() {
1416
+ H(void 0), p.value = void 0;
1386
1417
  }
1387
1418
  function K() {
1388
1419
  if (M(), A.value !== void 0) {
1389
- const s = F.value.indexOf(A.value);
1390
- s !== -1 && J(() => we(s));
1420
+ const s = E.value.indexOf(A.value);
1421
+ s !== -1 && P(() => _e(s));
1391
1422
  }
1392
1423
  }
1393
- function b(s) {
1394
- var _, T;
1424
+ function h(s) {
1425
+ var w, D;
1395
1426
  if (!(!s.key || l.readonly || l.disabled))
1396
1427
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
1397
- u.value ? U() : X();
1428
+ r.value ? U() : Y();
1398
1429
  else if (["ArrowDown", "ArrowUp"].includes(s.key))
1399
- u.value ? J(() => {
1400
- if (f.value === void 0)
1401
- c();
1430
+ r.value ? P(() => {
1431
+ if (p.value === void 0)
1432
+ u();
1402
1433
  else {
1403
- const Y = s.key === "ArrowDown" ? "next" : "prev";
1404
- h(f.value, Y);
1434
+ const W = s.key === "ArrowDown" ? "next" : "prev";
1435
+ y(p.value, W);
1405
1436
  }
1406
- }) : (M(), J(() => {
1407
- s.key === "ArrowDown" ? c() : r();
1437
+ }) : (M(), P(() => {
1438
+ s.key === "ArrowDown" ? u() : d();
1408
1439
  }));
1409
1440
  else if (s.key === "Enter") {
1410
1441
  if (R.value === void 0)
1411
1442
  return;
1412
- j(R.value[l.itemValue]);
1443
+ X(R.value[l.itemValue]);
1413
1444
  } else
1414
- s.key === "Home" ? f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex() : s.key === "End" ? f.value = (T = m.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
1445
+ s.key === "Home" ? p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex() : s.key === "End" ? p.value = (D = f.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
1415
1446
  }
1416
- function c() {
1417
- var s, _;
1447
+ function u() {
1448
+ var s, w;
1418
1449
  if (a.value !== void 0) {
1419
- const T = F.value.findIndex(
1420
- (Y) => Y[l.itemValue] === a.value
1450
+ const D = E.value.findIndex(
1451
+ (W) => W[l.itemValue] === a.value
1421
1452
  );
1422
- T === -1 ? f.value = (s = m.value) == null ? void 0 : s.getFirstFocusableItemIndex() : f.value = T;
1453
+ D === -1 ? p.value = (s = f.value) == null ? void 0 : s.getFirstFocusableItemIndex() : p.value = D;
1423
1454
  } else
1424
- f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex();
1455
+ p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1425
1456
  }
1426
- function r() {
1457
+ function d() {
1427
1458
  var s;
1428
- f.value = (s = m.value) == null ? void 0 : s.getLastFocusableItemIndex();
1459
+ p.value = (s = f.value) == null ? void 0 : s.getLastFocusableItemIndex();
1429
1460
  }
1430
- function h(s, _) {
1431
- var T;
1432
- f.value = (T = m.value) == null ? void 0 : T.getAdjacentItemIndex(s, _);
1461
+ function y(s, w) {
1462
+ var D;
1463
+ p.value = (D = f.value) == null ? void 0 : D.getAdjacentItemIndex(s, w);
1433
1464
  }
1434
- function I(s) {
1435
- var _, T, Y;
1436
- !((_ = w.value) != null && _.contains(s.relatedTarget)) && !((Y = (T = p.value) == null ? void 0 : T.fieldRef) != null && Y.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
1465
+ function k(s) {
1466
+ var w, D, W;
1467
+ !((w = _.value) != null && w.contains(s.relatedTarget)) && !((W = (D = m.value) == null ? void 0 : D.fieldRef) != null && W.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
1437
1468
  }
1438
- function L() {
1439
- var s, _;
1440
- (_ = (s = p.value) == null ? void 0 : s.inputRef) == null || _.focus();
1469
+ function B() {
1470
+ var s, w;
1471
+ (w = (s = m.value) == null ? void 0 : s.inputRef) == null || w.focus();
1441
1472
  }
1442
- function W() {
1473
+ function ue() {
1443
1474
  e("show");
1444
1475
  }
1445
- function Ue() {
1476
+ function Me() {
1446
1477
  e("hide");
1447
1478
  }
1448
- function we(s) {
1449
- var T;
1450
- const _ = (T = m.value) == null ? void 0 : T.getItem(s);
1451
- _ == null || _.scrollIntoView({ block: "nearest", inline: "start" });
1479
+ function _e(s) {
1480
+ var D;
1481
+ const w = (D = f.value) == null ? void 0 : D.getItem(s);
1482
+ w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
1452
1483
  }
1453
- return C(
1484
+ return F(
1454
1485
  () => l.modelValue,
1455
1486
  (s) => {
1456
1487
  a.value = s, Q();
1457
1488
  }
1458
- ), C(f, (s) => {
1459
- s !== void 0 && we(s);
1460
- }), C(i, (s) => {
1461
- !s && z.value ? X() : u.value && l.selectionMode === "automatic" && J(c), e("update:inputValue", s);
1489
+ ), F(p, (s) => {
1490
+ s !== void 0 && _e(s);
1491
+ }), F(i, (s) => {
1492
+ !s && C.value ? Y() : r.value && l.selectionMode === "automatic" && P(u), e("update:inputValue", s);
1462
1493
  }), t({
1463
- triggerEl: p
1464
- }), (s, _) => {
1465
- var T, Y;
1466
- return d(), v(Z, null, [
1467
- te(k(Yt), {
1468
- modelValue: i.value,
1469
- "onUpdate:modelValue": _[0] || (_[0] = (se) => i.value = se),
1470
- id: l.id,
1471
- label: l.label,
1472
- required: l.required,
1473
- ref_key: "triggerEl",
1474
- ref: p,
1475
- role: "combobox",
1476
- placeholder: l.placeholder,
1477
- class: D(["q-combobox", l.class]),
1478
- readonly: l.readonly,
1479
- disabled: l.disabled,
1480
- "aria-expanded": u.value,
1481
- "aria-haspopup": "listbox",
1482
- "aria-autocomplete": "list",
1483
- "aria-activedescendant": O.value,
1484
- size: l.size,
1485
- onClick: K,
1486
- onFocusout: I,
1487
- onKeydown: ee(b, ["stop"])
1488
- }, be({
1489
- "label.prepend": $(() => [
1490
- y(s.$slots, "label.prepend")
1494
+ triggerEl: m
1495
+ }), (s, w) => (c(), v(J, null, [
1496
+ G($(Yt), {
1497
+ modelValue: i.value,
1498
+ "onUpdate:modelValue": w[0] || (w[0] = (D) => i.value = D),
1499
+ id: l.id,
1500
+ label: l.label,
1501
+ required: l.required,
1502
+ ref_key: "triggerEl",
1503
+ ref: m,
1504
+ role: "combobox",
1505
+ placeholder: l.placeholder,
1506
+ class: T(["q-combobox", l.class]),
1507
+ readonly: l.readonly,
1508
+ disabled: l.disabled,
1509
+ "aria-expanded": r.value,
1510
+ "aria-haspopup": "listbox",
1511
+ "aria-autocomplete": "list",
1512
+ "aria-activedescendant": O.value,
1513
+ size: l.size,
1514
+ onClick: K,
1515
+ onFocusout: k,
1516
+ onKeydown: ne(h, ["stop"])
1517
+ }, he({
1518
+ "label.prepend": I(() => [
1519
+ b(s.$slots, "label.prepend")
1520
+ ]),
1521
+ "label.append": I(() => [
1522
+ b(s.$slots, "label.append")
1523
+ ]),
1524
+ _: 2
1525
+ }, [
1526
+ s.$slots.prepend ? {
1527
+ name: "prepend",
1528
+ fn: I(() => [
1529
+ b(s.$slots, "prepend")
1491
1530
  ]),
1492
- "label.append": $(() => [
1493
- y(s.$slots, "label.append")
1531
+ key: "0"
1532
+ } : void 0,
1533
+ C.value && i.value || s.$slots.append ? {
1534
+ name: "append",
1535
+ fn: I(() => [
1536
+ C.value && i.value ? (c(), x($(Z), ee({ key: 0 }, l.icons.clear, {
1537
+ class: "q-combobox__clear",
1538
+ onClick: ne(Y, ["stop", "prevent"])
1539
+ }), null, 16)) : S("", !0),
1540
+ b(s.$slots, "append")
1494
1541
  ]),
1495
- _: 2
1496
- }, [
1497
- s.$slots.prepend ? {
1498
- name: "prepend",
1499
- fn: $(() => [
1500
- y(s.$slots, "prepend")
1501
- ]),
1502
- key: "0"
1503
- } : void 0,
1504
- z.value && i.value || s.$slots.append ? {
1505
- name: "append",
1506
- fn: $(() => [
1507
- z.value && i.value ? (d(), B(k(P), ne({ key: 0 }, l.icons.clear, {
1508
- class: "q-combobox__clear",
1509
- onClick: ee(X, ["stop", "prevent"])
1510
- }), null, 16)) : S("", !0),
1511
- y(s.$slots, "append")
1512
- ]),
1513
- key: "1"
1514
- } : void 0,
1515
- s.$slots.extras ? {
1516
- name: "extras",
1517
- fn: $(() => [
1518
- y(s.$slots, "extras")
1519
- ]),
1520
- key: "2"
1521
- } : void 0
1522
- ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1523
- (T = p.value) != null && T.fieldRef ? (d(), B(k(ce), {
1524
- key: 0,
1525
- "model-value": u.value,
1526
- spy: "",
1527
- trigger: "manual",
1528
- placement: "bottom",
1529
- width: "anchor",
1530
- offset: 4,
1531
- anchor: (Y = p.value) == null ? void 0 : Y.fieldRef,
1532
- onEnter: W,
1533
- onLeave: Ue
1534
- }, {
1535
- default: $(() => {
1536
- var se;
1537
- return [
1538
- G("div", {
1539
- ref_key: "contentRef",
1540
- ref: w,
1541
- class: "q-select__body",
1542
- onFocusout: I
1543
- }, [
1544
- y(s.$slots, "body.prepend"),
1545
- l.loading ? (d(), B(k(_e), {
1546
- key: 0,
1547
- class: "q-select__loader",
1548
- size: 24
1549
- })) : F.value.length ? (d(), B(k(Me), {
1550
- key: 1,
1551
- ref_key: "listRef",
1552
- ref: m,
1553
- class: "q-select__items",
1554
- modelValue: a.value,
1555
- "onUpdate:modelValue": [
1556
- _[1] || (_[1] = (fe) => a.value = fe),
1557
- j
1558
- ],
1559
- highlighted: (se = R.value) == null ? void 0 : se[l.itemValue],
1560
- items: F.value,
1561
- groups: s.groups,
1562
- "item-label": l.itemLabel,
1563
- "item-value": l.itemValue,
1564
- onMouseup: L
1565
- }, {
1566
- item: $(({ item: fe }) => [
1567
- y(s.$slots, "item", { item: fe })
1568
- ]),
1569
- _: 3
1570
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), v("div", Pt, N(s.texts.noData), 1)),
1571
- y(s.$slots, "body.append")
1572
- ], 544)
1573
- ];
1574
- }),
1575
- _: 3
1576
- }, 8, ["model-value", "anchor"])) : S("", !0)
1577
- ], 64);
1578
- };
1542
+ key: "1"
1543
+ } : void 0,
1544
+ s.$slots.extras ? {
1545
+ name: "extras",
1546
+ fn: I(() => [
1547
+ b(s.$slots, "extras")
1548
+ ]),
1549
+ key: "2"
1550
+ } : void 0
1551
+ ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1552
+ G($(de), {
1553
+ "model-value": r.value,
1554
+ spy: "",
1555
+ trigger: "manual",
1556
+ placement: "bottom",
1557
+ width: "anchor",
1558
+ offset: 4,
1559
+ anchor: m.value,
1560
+ onEnter: ue,
1561
+ onLeave: Me
1562
+ }, {
1563
+ default: I(() => {
1564
+ var D;
1565
+ return [
1566
+ j("div", {
1567
+ ref_key: "contentRef",
1568
+ ref: _,
1569
+ class: "q-select__body",
1570
+ onFocusout: k
1571
+ }, [
1572
+ b(s.$slots, "body.prepend"),
1573
+ l.loading ? (c(), x($(be), {
1574
+ key: 0,
1575
+ class: "q-select__loader",
1576
+ size: 24
1577
+ })) : E.value.length ? (c(), x($(Qe), {
1578
+ key: 1,
1579
+ ref_key: "listRef",
1580
+ ref: f,
1581
+ class: "q-select__items",
1582
+ modelValue: a.value,
1583
+ "onUpdate:modelValue": [
1584
+ w[1] || (w[1] = (W) => a.value = W),
1585
+ X
1586
+ ],
1587
+ highlighted: (D = R.value) == null ? void 0 : D[l.itemValue],
1588
+ items: E.value,
1589
+ groups: s.groups,
1590
+ "item-label": l.itemLabel,
1591
+ "item-value": l.itemValue,
1592
+ onMouseup: B
1593
+ }, {
1594
+ item: I(({ item: W }) => [
1595
+ b(s.$slots, "item", { item: W })
1596
+ ]),
1597
+ _: 3
1598
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Pt, N(s.texts.noData), 1)),
1599
+ b(s.$slots, "body.append")
1600
+ ], 544)
1601
+ ];
1602
+ }),
1603
+ _: 3
1604
+ }, 8, ["model-value", "anchor"])
1605
+ ], 64));
1579
1606
  }
1580
1607
  }), qn = V(en), tn = {
1581
1608
  key: 0,
@@ -1583,10 +1610,10 @@ const Rt = {
1583
1610
  }, nn = { key: 0 }, ln = {
1584
1611
  key: 1,
1585
1612
  class: "q-input-group__append"
1586
- }, on = { key: 0 }, an = /* @__PURE__ */ x({
1613
+ }, on = { key: 0 }, an = /* @__PURE__ */ L({
1587
1614
  __name: "QInputGroup",
1588
1615
  props: {
1589
- id: { default: () => le() },
1616
+ id: { default: () => te() },
1590
1617
  label: { default: "" },
1591
1618
  readonly: { type: Boolean },
1592
1619
  disabled: { type: Boolean },
@@ -1598,55 +1625,55 @@ const Rt = {
1598
1625
  },
1599
1626
  setup(n) {
1600
1627
  const t = n;
1601
- return Ce({
1628
+ return Ee({
1602
1629
  QField: {
1603
1630
  size: "block"
1604
1631
  }
1605
- }), (o, e) => (d(), B(k(ke), {
1632
+ }), (o, e) => (c(), x($(ge), {
1606
1633
  id: t.id,
1607
- class: D(["q-input-group", t.class]),
1634
+ class: T(["q-input-group", t.class]),
1608
1635
  label: t.label,
1609
1636
  readonly: t.readonly,
1610
1637
  disabled: t.disabled,
1611
1638
  required: t.required,
1612
1639
  size: t.size
1613
1640
  }, {
1614
- default: $(() => [
1615
- o.$slots.prepend || t.prependIcon ? (d(), v("div", tn, [
1616
- t.prependIcon ? (d(), v("span", nn, [
1617
- te(k(P), de(he(t.prependIcon)), null, 16)
1641
+ default: I(() => [
1642
+ o.$slots.prepend || t.prependIcon ? (c(), v("div", tn, [
1643
+ t.prependIcon ? (c(), v("span", nn, [
1644
+ G($(Z), ie(me(t.prependIcon)), null, 16)
1618
1645
  ])) : S("", !0),
1619
- y(o.$slots, "prepend")
1646
+ b(o.$slots, "prepend")
1620
1647
  ])) : S("", !0),
1621
- y(o.$slots, "default"),
1622
- o.$slots.append || t.appendIcon ? (d(), v("div", ln, [
1623
- t.appendIcon ? (d(), v("span", on, [
1624
- te(k(P), de(he(t.appendIcon)), null, 16)
1648
+ b(o.$slots, "default"),
1649
+ o.$slots.append || t.appendIcon ? (c(), v("div", ln, [
1650
+ t.appendIcon ? (c(), v("span", on, [
1651
+ G($(Z), ie(me(t.appendIcon)), null, 16)
1625
1652
  ])) : S("", !0),
1626
- y(o.$slots, "append")
1653
+ b(o.$slots, "append")
1627
1654
  ])) : S("", !0)
1628
1655
  ]),
1629
1656
  _: 3
1630
1657
  }, 8, ["id", "class", "label", "readonly", "disabled", "required", "size"]));
1631
1658
  }
1632
- }), Sn = V(an), sn = /* @__PURE__ */ x({
1659
+ }), Sn = V(an), sn = /* @__PURE__ */ L({
1633
1660
  __name: "QLineLoader",
1634
1661
  props: {
1635
1662
  class: { default: void 0 }
1636
1663
  },
1637
1664
  setup(n) {
1638
1665
  const t = n;
1639
- return (o, e) => (d(), v("div", {
1640
- class: D(["q-line-loader", t.class])
1666
+ return (o, e) => (c(), v("div", {
1667
+ class: T(["q-line-loader", t.class])
1641
1668
  }, null, 2));
1642
1669
  }
1643
- }), Ln = V(sn), rn = {
1670
+ }), Bn = V(sn), rn = {
1644
1671
  key: 0,
1645
1672
  class: "q-popover__header"
1646
1673
  }, dn = {
1647
1674
  key: 1,
1648
1675
  class: "q-popover__body"
1649
- }, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ x({
1676
+ }, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ L({
1650
1677
  inheritAttrs: !1,
1651
1678
  __name: "QPopover",
1652
1679
  props: {
@@ -1663,7 +1690,7 @@ const Rt = {
1663
1690
  },
1664
1691
  setup(n) {
1665
1692
  const t = n;
1666
- return (o, e) => (d(), B(k(ce), {
1693
+ return (o, e) => (c(), x($(de), {
1667
1694
  "model-value": t.modelValue,
1668
1695
  class: "q-popover",
1669
1696
  trigger: "click",
@@ -1674,23 +1701,23 @@ const Rt = {
1674
1701
  placement: t.placement,
1675
1702
  spy: t.spy
1676
1703
  }, {
1677
- default: $(() => [
1678
- t.title || o.$slots.header ? (d(), v("h3", rn, [
1679
- re(N(t.title) + " ", 1),
1680
- y(o.$slots, "header")
1704
+ default: I(() => [
1705
+ t.title || o.$slots.header ? (c(), v("h3", rn, [
1706
+ se(N(t.title) + " ", 1),
1707
+ b(o.$slots, "header")
1681
1708
  ])) : S("", !0),
1682
- t.text || o.$slots.body ? (d(), v("div", dn, [
1683
- t.html ? (d(), v("span", {
1709
+ t.text || o.$slots.body ? (c(), v("div", dn, [
1710
+ t.html ? (c(), v("span", {
1684
1711
  key: 0,
1685
1712
  innerHTML: t.text
1686
- }, null, 8, un)) : (d(), v("span", cn, N(t.text), 1)),
1687
- y(o.$slots, "body")
1713
+ }, null, 8, un)) : (c(), v("span", cn, N(t.text), 1)),
1714
+ b(o.$slots, "body")
1688
1715
  ])) : S("", !0)
1689
1716
  ]),
1690
1717
  _: 3
1691
1718
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
1692
1719
  }
1693
- }), Bn = V(fn), pn = {
1720
+ }), Ln = V(fn), pn = {
1694
1721
  key: 0,
1695
1722
  class: "q-select__value"
1696
1723
  }, mn = {
@@ -1705,11 +1732,11 @@ const Rt = {
1705
1732
  clear: {
1706
1733
  icon: "close"
1707
1734
  }
1708
- }, yn = /* @__PURE__ */ x({
1735
+ }, yn = /* @__PURE__ */ L({
1709
1736
  __name: "QSelect",
1710
1737
  props: {
1711
1738
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1712
- id: { default: () => le() },
1739
+ id: { default: () => te() },
1713
1740
  label: { default: "" },
1714
1741
  clearable: { type: Boolean },
1715
1742
  readonly: { type: Boolean },
@@ -1727,84 +1754,84 @@ const Rt = {
1727
1754
  },
1728
1755
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1729
1756
  setup(n, { emit: t }) {
1730
- const o = t, e = n, l = q(e.modelValue), a = q(!1), u = q(""), i = q(null), f = q(null), p = q(null), m = g(
1757
+ const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null), p = q(null), m = q(null), f = g(
1731
1758
  () => {
1732
- var c;
1733
- return (c = e.items) == null ? void 0 : c.find((r) => r[e.itemValue] === l.value);
1759
+ var u;
1760
+ return (u = e.items) == null ? void 0 : u.find((d) => d[e.itemValue] === l.value);
1734
1761
  }
1735
- ), w = g(
1736
- () => m.value ? m.value[e.itemLabel] : ""
1737
- ), z = g(
1762
+ ), _ = g(
1763
+ () => f.value ? f.value[e.itemLabel] : ""
1764
+ ), C = g(
1738
1765
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1739
1766
  );
1740
- function F(c) {
1741
- l.value = c, o("update:modelValue", c), H();
1767
+ function E(u) {
1768
+ l.value = u, o("update:modelValue", u), H();
1742
1769
  }
1743
1770
  function A() {
1744
- z.value && F(void 0);
1771
+ C.value && E(void 0);
1745
1772
  }
1746
1773
  function R() {
1747
- e.readonly || e.disabled || (a.value ? H() : E());
1774
+ e.readonly || e.disabled || (a.value ? H() : z());
1748
1775
  }
1749
- function O(c) {
1750
- var r, h, I;
1751
- !((r = p.value) != null && r.contains(c.relatedTarget)) && !((I = (h = i.value) == null ? void 0 : h.fieldRef) != null && I.contains(c.relatedTarget)) && H();
1776
+ function O(u) {
1777
+ var d, y, k;
1778
+ !((d = m.value) != null && d.contains(u.relatedTarget)) && !((k = (y = i.value) == null ? void 0 : y.fieldRef) != null && k.contains(u.relatedTarget)) && H();
1752
1779
  }
1753
- function E() {
1780
+ function z() {
1754
1781
  a.value || (o("before-show"), a.value = !0);
1755
1782
  }
1756
1783
  function H() {
1757
1784
  a.value && (o("before-hide"), a.value = !1);
1758
1785
  }
1759
- let j;
1760
- function Q(c) {
1761
- if (!(!c.key || e.readonly || e.disabled)) {
1762
- if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (a.value = !0), ["Escape", "Tab"].includes(c.key) && (a.value ? a.value = !1 : e.clearable && c.key === "Escape" && A()), c.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(c.key)) {
1763
- u.value += c.key.toLowerCase();
1764
- for (let r = 0; r < e.items.length; r++)
1765
- if (e.items[r][e.itemLabel].toLowerCase().startsWith(u.value)) {
1766
- b(r);
1786
+ let X;
1787
+ function Q(u) {
1788
+ if (!(!u.key || e.readonly || e.disabled)) {
1789
+ if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (a.value = !0), ["Escape", "Tab"].includes(u.key) && (a.value ? a.value = !1 : e.clearable && u.key === "Escape" && A()), u.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(u.key)) {
1790
+ r.value += u.key.toLowerCase();
1791
+ for (let d = 0; d < e.items.length; d++)
1792
+ if (e.items[d][e.itemLabel].toLowerCase().startsWith(r.value)) {
1793
+ h(d);
1767
1794
  break;
1768
1795
  }
1769
1796
  }
1770
- j = window.setTimeout(function() {
1771
- u.value = "";
1797
+ X = window.setTimeout(function() {
1798
+ r.value = "";
1772
1799
  }, 500);
1773
1800
  }
1774
1801
  }
1775
1802
  function M() {
1776
- var c;
1777
- e.loading ? (c = p.value) == null || c.focus() : K(), o("show");
1803
+ var u;
1804
+ e.loading ? (u = m.value) == null || u.focus() : K(), o("show");
1778
1805
  }
1779
1806
  function U() {
1780
- X(), o("hide");
1807
+ Y(), o("hide");
1781
1808
  }
1782
- function X() {
1783
- var c, r;
1784
- (r = (c = i.value) == null ? void 0 : c.fieldRef) == null || r.focus();
1809
+ function Y() {
1810
+ var u, d;
1811
+ (d = (u = i.value) == null ? void 0 : u.fieldRef) == null || d.focus();
1785
1812
  }
1786
1813
  function K() {
1787
- var c;
1788
- (c = f.value) == null || c.$el.focus();
1814
+ var u;
1815
+ (u = p.value) == null || u.$el.focus();
1789
1816
  }
1790
- function b(c) {
1791
- var r;
1792
- (r = f.value) == null || r.focusItem(c);
1817
+ function h(u) {
1818
+ var d;
1819
+ (d = p.value) == null || d.focusItem(u);
1793
1820
  }
1794
- return C(
1821
+ return F(
1795
1822
  () => e.modelValue,
1796
- (c) => {
1797
- l.value = c;
1823
+ (u) => {
1824
+ l.value = u;
1798
1825
  }
1799
- ), C(
1826
+ ), F(
1800
1827
  () => e.loading,
1801
- (c) => {
1802
- !c && a.value && J(K);
1828
+ (u) => {
1829
+ !u && a.value && P(K);
1803
1830
  }
1804
- ), (c, r) => {
1805
- var h, I, L;
1806
- return d(), v(Z, null, [
1807
- te(k(ke), {
1831
+ ), (u, d) => {
1832
+ var y;
1833
+ return c(), v(J, null, [
1834
+ G($(ge), {
1808
1835
  id: e.id,
1809
1836
  label: e.label,
1810
1837
  required: e.required,
@@ -1812,7 +1839,7 @@ const Rt = {
1812
1839
  ref: i,
1813
1840
  role: "combobox",
1814
1841
  tabindex: "0",
1815
- class: D([
1842
+ class: T([
1816
1843
  "q-select",
1817
1844
  {
1818
1845
  "q-select--readonly": e.readonly,
@@ -1827,89 +1854,89 @@ const Rt = {
1827
1854
  "aria-haspopup": "listbox",
1828
1855
  size: e.size,
1829
1856
  onClick: R,
1830
- onKeydown: ee(Q, ["stop"])
1831
- }, be({
1832
- append: $(() => [
1833
- z.value && l.value ? (d(), B(k(P), ne({ key: 0 }, e.icons.clear, {
1857
+ onKeydown: ne(Q, ["stop"])
1858
+ }, he({
1859
+ append: I(() => [
1860
+ C.value && l.value ? (c(), x($(Z), ee({ key: 0 }, e.icons.clear, {
1834
1861
  class: "q-select__clear",
1835
- onClick: ee(A, ["stop", "prevent"])
1862
+ onClick: ne(A, ["stop", "prevent"])
1836
1863
  }), null, 16)) : S("", !0),
1837
- e.readonly ? S("", !0) : (d(), B(k(P), ne({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1864
+ e.readonly ? S("", !0) : (c(), x($(Z), ee({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1838
1865
  ]),
1839
- default: $(() => [
1840
- l.value ? (d(), v("span", pn, N(w.value), 1)) : !e.readonly && !e.disabled ? (d(), v("span", mn, N(c.texts.placeholder), 1)) : S("", !0)
1866
+ default: I(() => [
1867
+ l.value !== void 0 ? (c(), v("span", pn, N(_.value), 1)) : !e.readonly && !e.disabled ? (c(), v("span", mn, N(u.texts.placeholder), 1)) : S("", !0)
1841
1868
  ]),
1842
1869
  _: 2
1843
1870
  }, [
1844
- (h = m.value) != null && h.icon ? {
1871
+ (y = f.value) != null && y.icon ? {
1845
1872
  name: "prepend",
1846
- fn: $(() => {
1847
- var W;
1873
+ fn: I(() => {
1874
+ var k;
1848
1875
  return [
1849
- te(k(P), de(he((W = m.value) == null ? void 0 : W.icon)), null, 16)
1876
+ G($(Z), ie(me((k = f.value) == null ? void 0 : k.icon)), null, 16)
1850
1877
  ];
1851
1878
  }),
1852
1879
  key: "0"
1853
1880
  } : void 0
1854
1881
  ]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
1855
- (I = i.value) != null && I.fieldRef ? (d(), B(k(ce), {
1856
- key: 0,
1882
+ G($(de), {
1857
1883
  "model-value": a.value,
1858
1884
  spy: "",
1859
1885
  trigger: "manual",
1860
1886
  placement: "bottom",
1861
1887
  width: "anchor",
1888
+ anchor: i.value,
1862
1889
  offset: 2,
1863
- anchor: (L = i.value) == null ? void 0 : L.fieldRef,
1864
1890
  onEnter: M,
1865
1891
  onLeave: U
1866
1892
  }, {
1867
- default: $(() => [
1868
- G("div", {
1893
+ default: I(() => [
1894
+ j("div", {
1869
1895
  ref_key: "contentRef",
1870
- ref: p,
1896
+ ref: m,
1871
1897
  class: "q-select__body",
1872
1898
  tabindex: "-1",
1873
1899
  onFocusout: O,
1874
- onKeydown: ee(Q, ["stop"])
1900
+ onKeydown: ne(Q, ["stop"])
1875
1901
  }, [
1876
- y(c.$slots, "body.prepend"),
1877
- e.loading ? (d(), B(k(_e), {
1902
+ b(u.$slots, "body.prepend"),
1903
+ e.loading ? (c(), x($(be), {
1878
1904
  key: 0,
1879
1905
  class: "q-select__loader",
1880
1906
  size: 24
1881
- })) : (d(), B(k(Me), {
1907
+ })) : (c(), x($(Qe), {
1882
1908
  key: 1,
1883
1909
  ref_key: "listRef",
1884
- ref: f,
1910
+ ref: p,
1885
1911
  class: "q-select__items",
1886
1912
  modelValue: l.value,
1887
1913
  "onUpdate:modelValue": [
1888
- r[0] || (r[0] = (W) => l.value = W),
1889
- F
1914
+ d[0] || (d[0] = (k) => l.value = k),
1915
+ E
1890
1916
  ],
1891
1917
  items: e.items,
1892
- groups: c.groups,
1918
+ groups: u.groups,
1893
1919
  "item-label": e.itemLabel,
1894
1920
  "item-value": e.itemValue
1895
1921
  }, {
1896
- item: $(({ item: W }) => [
1897
- y(c.$slots, "item", { item: W })
1922
+ item: I(({ item: k }) => [
1923
+ b(u.$slots, "item", { item: k })
1898
1924
  ]),
1899
1925
  _: 3
1900
1926
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
1901
- y(c.$slots, "body.append")
1927
+ b(u.$slots, "body.append")
1902
1928
  ], 544)
1903
1929
  ]),
1904
1930
  _: 3
1905
- }, 8, ["model-value", "anchor"])) : S("", !0)
1931
+ }, 8, ["model-value", "anchor"])
1906
1932
  ], 64);
1907
1933
  };
1908
1934
  }
1909
- }), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ x({
1935
+ }), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ L({
1910
1936
  __name: "QTooltip",
1911
1937
  props: {
1912
1938
  modelValue: { type: Boolean },
1939
+ id: { default: () => te() },
1913
1940
  anchor: {},
1914
1941
  appearance: { default: "inverted" },
1915
1942
  arrow: { type: Boolean, default: !0 },
@@ -1924,52 +1951,59 @@ const Rt = {
1924
1951
  },
1925
1952
  setup(n) {
1926
1953
  const t = n;
1927
- return (o, e) => (d(), B(k(ce), {
1928
- "model-value": t.modelValue,
1929
- anchor: t.anchor,
1930
- appearance: t.appearance,
1931
- arrow: t.arrow,
1932
- attach: t.attach,
1933
- class: D(["q-tooltip", t.class]),
1934
- delay: t.delay,
1935
- disabled: t.disabled,
1936
- placement: t.placement,
1937
- trigger: t.trigger
1938
- }, {
1939
- default: $(() => [
1940
- t.html ? (d(), v("span", {
1941
- key: 0,
1942
- innerHTML: t.text
1943
- }, null, 8, bn)) : (d(), v("span", gn, N(t.text), 1))
1944
- ]),
1945
- _: 1
1946
- }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"]));
1954
+ return (o, e) => (c(), v(J, null, [
1955
+ b(o.$slots, "anchor", {
1956
+ props: { "aria-describedby": t.id }
1957
+ }),
1958
+ G($(de), {
1959
+ "model-value": t.modelValue,
1960
+ anchor: t.anchor,
1961
+ role: "tooltip",
1962
+ id: t.id,
1963
+ appearance: t.appearance,
1964
+ arrow: t.arrow,
1965
+ attach: t.attach,
1966
+ class: T(["q-tooltip", t.class]),
1967
+ delay: t.delay,
1968
+ disabled: t.disabled,
1969
+ placement: t.placement,
1970
+ trigger: t.trigger
1971
+ }, {
1972
+ default: I(() => [
1973
+ t.html ? (c(), v("span", {
1974
+ key: 0,
1975
+ innerHTML: t.text
1976
+ }, null, 8, bn)) : (c(), v("span", gn, N(t.text), 1))
1977
+ ]),
1978
+ _: 1
1979
+ }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
1980
+ ], 64));
1947
1981
  }
1948
1982
  }), Vn = V(_n);
1949
1983
  export {
1950
- ct as QButton,
1951
- pt as QButtonGroup,
1984
+ ut as QButton,
1985
+ ft as QButtonGroup,
1952
1986
  In as QButtonToggle,
1953
1987
  qn as QCombobox,
1954
- ke as QField,
1955
- P as QIcon,
1956
- $t as QIconFont,
1957
- It as QIconImg,
1958
- qt as QIconSvg,
1988
+ ge as QField,
1989
+ Z as QIcon,
1990
+ wt as QIconFont,
1991
+ $t as QIconImg,
1992
+ It as QIconSvg,
1959
1993
  Sn as QInputGroup,
1960
- Ln as QLineLoader,
1961
- Me as QList,
1962
- Ct as QListItem,
1963
- Ft as QListItemGroup,
1964
- ce as QOverlay,
1965
- Bn as QPopover,
1994
+ Bn as QLineLoader,
1995
+ Qe as QList,
1996
+ zt as QListItem,
1997
+ Ct as QListItemGroup,
1998
+ de as QOverlay,
1999
+ Ln as QPopover,
1966
2000
  xn as QSelect,
1967
- _e as QSpinnerLoader,
2001
+ be as QSpinnerLoader,
1968
2002
  Yt as QTextField,
1969
2003
  Vn as QTooltip,
1970
2004
  $n as createFramework,
1971
- Pe as defaultDarkColorScheme,
1972
- qe as defaultLightColorScheme,
2005
+ Ye as defaultDarkColorScheme,
2006
+ $e as defaultLightColorScheme,
1973
2007
  wn as useTheme
1974
2008
  };
1975
2009
  //# sourceMappingURL=ui.esm.js.map