@quidgest/ui 0.6.0 → 0.6.1

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 ve, computed as y, ref as x, provide as De, inject as be, watch as I, defineComponent as w, openBlock as r, createElementBlock as u, normalizeStyle as W, createElementVNode as z, normalizeClass as Q, withModifiers as U, createVNode as Z, unref as b, createCommentVNode as g, Fragment as O, createTextVNode as j, toDisplayString as C, renderSlot as q, toRef as te, createBlock as k, withCtx as D, renderList as oe, mergeProps as K, resolveDynamicComponent as ge, h as de, normalizeProps as _e, reactive as Ee, onBeforeUnmount as Ie, onMounted as Ce, Teleport as Ve, Transition as ze, nextTick as ce, useAttrs as Ae, createSlots as Qe, guardReactiveProps as Oe, withDirectives as ke, vModelText as Fe } from "vue";
2
- function le(t) {
1
+ import { getCurrentInstance as be, computed as y, ref as B, provide as De, inject as ge, watch as I, defineComponent as w, openBlock as r, createElementBlock as f, normalizeStyle as Y, createElementVNode as V, normalizeClass as Q, withModifiers as K, createVNode as J, unref as b, createCommentVNode as g, Fragment as F, createTextVNode as P, toDisplayString as C, renderSlot as q, toRef as oe, createBlock as k, withCtx as D, renderList as le, mergeProps as G, resolveDynamicComponent as _e, h as ue, normalizeProps as ke, reactive as Ee, onBeforeUnmount as Ie, onMounted as Ve, Teleport as Ce, Transition as ze, nextTick as se, useAttrs as Ae, createSlots as Qe, guardReactiveProps as Fe, withDirectives as Oe, vModelText as Re } from "vue";
2
+ function re(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 ue(t) {
5
+ function fe(t) {
6
6
  return t !== null && typeof t == "object" && !Array.isArray(t);
7
7
  }
8
8
  function we(t = {}, n = {}) {
@@ -10,21 +10,21 @@ function we(t = {}, n = {}) {
10
10
  for (const o in t)
11
11
  e[o] = t[o];
12
12
  for (const o in n) {
13
- const l = t[o], a = n[o];
14
- if (ue(l) && ue(a)) {
13
+ const a = t[o], l = n[o];
14
+ if (fe(a) && fe(l)) {
15
15
  e[o] = we(
16
- l,
17
- a
16
+ a,
17
+ l
18
18
  );
19
19
  continue;
20
20
  }
21
- e[o] = a;
21
+ e[o] = l;
22
22
  }
23
23
  return e;
24
24
  }
25
- const ae = "q-defaults";
26
- function Re() {
27
- const t = ve();
25
+ const ie = "q-defaults";
26
+ function Me() {
27
+ const t = be();
28
28
  if (!t)
29
29
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
30
30
  const n = t.type.name ?? t.type.__name;
@@ -36,19 +36,19 @@ function Re() {
36
36
  return (o = e.value) == null ? void 0 : o[n];
37
37
  });
38
38
  }
39
- function Me(t) {
40
- if (le(t))
39
+ function He(t) {
40
+ if (re(t))
41
41
  return;
42
- const n = $e(), e = x(t), o = y(() => le(e.value) ? n.value : we(n.value, e.value));
43
- De(ae, o);
42
+ const n = $e(), e = B(t), o = y(() => re(e.value) ? n.value : we(n.value, e.value));
43
+ De(ie, o);
44
44
  }
45
45
  function $e() {
46
- const t = be(ae, void 0);
46
+ const t = ge(ie, void 0);
47
47
  if (!t)
48
48
  throw new Error("[Quidgest UI] Could not find defaults instance");
49
49
  return t;
50
50
  }
51
- const fe = {
51
+ const pe = {
52
52
  primary: "#00a1f8",
53
53
  primaryLight: "#e5f6ff",
54
54
  primaryDark: "#0079ba",
@@ -78,7 +78,7 @@ const fe = {
78
78
  onWarning: "#fff",
79
79
  onDanger: "#fff",
80
80
  onInfo: "#fff"
81
- }, He = {
81
+ }, Ue = {
82
82
  primary: "#018BD2",
83
83
  primaryLight: "#cce7f6",
84
84
  primaryDark: "#006fac",
@@ -116,43 +116,43 @@ function Se(t) {
116
116
  const n = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), o = parseInt(t.slice(5, 7), 16);
117
117
  return { r: n, g: e, b: o };
118
118
  }
119
- function Ue(t, n) {
119
+ function Ne(t, n) {
120
120
  if (n < 0 || n > 100)
121
121
  throw new Error("Amount must be in the range [0, 100]");
122
122
  if (n === 0)
123
123
  return t;
124
124
  const e = qe(t), o = n / 100;
125
- return e.l = e.l + o * (100 - e.l), Be(e);
125
+ return e.l = e.l + o * (100 - e.l), xe(e);
126
126
  }
127
- function Ne(t, n) {
127
+ function Ke(t, n) {
128
128
  if (n < 0 || n > 100)
129
129
  throw new Error("Amount must be in the range [0, 100]");
130
130
  if (n === 0)
131
131
  return t;
132
132
  const e = qe(t), o = n / 100;
133
- return e.l = e.l - o * e.l, Be(e);
133
+ return e.l = e.l - o * e.l, xe(e);
134
134
  }
135
- function pe(t) {
135
+ function me(t) {
136
136
  const n = t.r.toString(16).padStart(2, "0"), e = t.g.toString(16).padStart(2, "0"), o = t.b.toString(16).padStart(2, "0");
137
137
  return `#${n}${e}${o}`;
138
138
  }
139
139
  function qe(t) {
140
- const n = t.r / 255, e = t.g / 255, o = t.b / 255, l = Math.max(n, e, o), a = Math.min(n, e, o);
140
+ const n = t.r / 255, e = t.g / 255, o = t.b / 255, a = Math.max(n, e, o), l = Math.min(n, e, o);
141
141
  let s = 0, d;
142
- const i = (l + a) / 2;
143
- if (l === a)
142
+ const i = (a + l) / 2;
143
+ if (a === l)
144
144
  s = d = 0;
145
145
  else {
146
- const h = l - a;
147
- switch (d = i > 0.5 ? h / (2 - l - a) : h / (l + a), l) {
146
+ const p = a - l;
147
+ switch (d = i > 0.5 ? p / (2 - a - l) : p / (a + l), a) {
148
148
  case n:
149
- s = (e - o) / h + (e < o ? 6 : 0);
149
+ s = (e - o) / p + (e < o ? 6 : 0);
150
150
  break;
151
151
  case e:
152
- s = (o - n) / h + 2;
152
+ s = (o - n) / p + 2;
153
153
  break;
154
154
  case o:
155
- s = (n - e) / h + 4;
155
+ s = (n - e) / p + 4;
156
156
  break;
157
157
  }
158
158
  s /= 6;
@@ -163,113 +163,113 @@ function qe(t) {
163
163
  l: Math.round(i * 100)
164
164
  };
165
165
  }
166
- function Be(t) {
166
+ function xe(t) {
167
167
  const n = t.h / 360, e = t.s / 100, o = t.l / 100;
168
- let l, a, s;
168
+ let a, l, s;
169
169
  if (e === 0)
170
- l = a = s = o;
170
+ a = l = s = o;
171
171
  else {
172
172
  const d = o < 0.5 ? o * (1 + e) : o + e - o * e, i = 2 * o - d;
173
- l = ne(i, d, n + 1 / 3), a = ne(i, d, n), s = ne(i, d, n - 1 / 3);
173
+ a = ae(i, d, n + 1 / 3), l = ae(i, d, n), s = ae(i, d, n - 1 / 3);
174
174
  }
175
175
  return {
176
- r: Math.round(l * 255),
177
- g: Math.round(a * 255),
176
+ r: Math.round(a * 255),
177
+ g: Math.round(l * 255),
178
178
  b: Math.round(s * 255)
179
179
  };
180
180
  }
181
- function ne(t, n, e) {
181
+ function ae(t, n, e) {
182
182
  return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? t + (n - t) * 6 * e : e < 1 / 2 ? n : e < 2 / 3 ? t + (n - t) * (2 / 3 - e) * 6 : t;
183
183
  }
184
- const J = "q-theme";
185
- function cn() {
186
- const t = be(J);
184
+ const ee = "q-theme";
185
+ function un() {
186
+ const t = ge(ee);
187
187
  if (!t)
188
188
  throw new Error("[Quidgest UI] Could not find theme instance");
189
189
  return t;
190
190
  }
191
- function Ke(t, n) {
191
+ function We(t, n) {
192
192
  let e = null;
193
193
  if (n)
194
194
  for (const o of n.themes) {
195
- const l = o.mode === "light" ? fe : He;
195
+ const a = o.mode === "light" ? pe : Ue;
196
196
  if (o.colors) {
197
- let a;
198
- for (a in o.colors) {
199
- const s = o.colors[a];
200
- if (s && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
- const d = Se(s), i = `${a}Light`, h = `${a}Dark`;
202
- i in o.colors || (o.colors[i] = pe(Ue(d, 85))), h in o.colors || (o.colors[h] = pe(Ne(d, 25)));
197
+ let l;
198
+ for (l in o.colors) {
199
+ const s = o.colors[l];
200
+ if (s && !l.startsWith("on") && !l.endsWith("Light") && !l.endsWith("Dark")) {
201
+ const d = Se(s), i = `${l}Light`, p = `${l}Dark`;
202
+ i in o.colors || (o.colors[i] = me(Ne(d, 85))), p in o.colors || (o.colors[p] = me(Ke(d, 25)));
203
203
  }
204
204
  }
205
205
  }
206
- o.colors = We(l, o.colors), o.name === n.defaultTheme && (e = o);
206
+ o.colors = Ge(a, o.colors), o.name === n.defaultTheme && (e = o);
207
207
  }
208
208
  else {
209
209
  const o = "default";
210
210
  e = {
211
211
  name: o,
212
212
  mode: "light",
213
- colors: fe
213
+ colors: pe
214
214
  }, n = {
215
215
  defaultTheme: o,
216
216
  themes: [e]
217
217
  };
218
218
  }
219
219
  if (e) {
220
- const o = x({
220
+ const o = B({
221
221
  activeTheme: e.name,
222
222
  themes: n.themes
223
223
  });
224
224
  I(
225
225
  () => o.value.activeTheme,
226
- (l) => {
227
- const a = o.value.themes.find((s) => s.name === l);
228
- a && Ge(a.colors);
226
+ (a) => {
227
+ const l = o.value.themes.find((s) => s.name === a);
228
+ l && Ye(l.colors);
229
229
  },
230
230
  { immediate: !0 }
231
- ), t.provide(J, o);
231
+ ), t.provide(ee, o);
232
232
  }
233
233
  }
234
- function We(t, n = {}) {
234
+ function Ge(t, n = {}) {
235
235
  return { ...t, ...n };
236
236
  }
237
- function Ge(t) {
237
+ function Ye(t) {
238
238
  let n = document.getElementById(
239
- J
239
+ ee
240
240
  );
241
- n || (n = document.createElement("style"), n.type = "text/css", n.id = J, document.head.appendChild(n));
241
+ n || (n = document.createElement("style"), n.type = "text/css", n.id = ee, document.head.appendChild(n));
242
242
  let e = `:root {
243
243
  `, o;
244
244
  for (o in t) {
245
- const l = t[o];
246
- if (l) {
247
- e += ` ${me(o)}: ${l};
245
+ const a = t[o];
246
+ if (a) {
247
+ e += ` ${he(o)}: ${a};
248
248
  `;
249
- const a = Se(l);
250
- e += ` ${me(o)}-rgb: ${a.r} ${a.g} ${a.b};
249
+ const l = Se(a);
250
+ e += ` ${he(o)}-rgb: ${l.r} ${l.g} ${l.b};
251
251
  `;
252
252
  }
253
253
  }
254
254
  e += "}", n.textContent = e;
255
255
  }
256
- function me(t) {
256
+ function he(t) {
257
257
  return t ? `--q-theme-${t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
258
258
  }
259
- function un(t = {}) {
259
+ function fn(t = {}) {
260
260
  return { install: (e) => {
261
261
  const o = t.components || {};
262
262
  for (const s in o)
263
263
  e.component(s, o[s]);
264
- const l = t.directives || {};
265
- for (const s in l)
266
- e.directive(s, l[s]);
267
- const a = t.defaults || {};
268
- e.provide(ae, x(a)), Ke(e, t.themes);
264
+ const a = t.directives || {};
265
+ for (const s in a)
266
+ e.directive(s, a[s]);
267
+ const l = t.defaults || {};
268
+ e.provide(ie, B(l)), We(e, t.themes);
269
269
  } };
270
270
  }
271
- const Ye = /* @__PURE__ */ z("svg", { viewBox: "25 25 50 50" }, [
272
- /* @__PURE__ */ z("circle", {
271
+ const Xe = /* @__PURE__ */ V("svg", { viewBox: "25 25 50 50" }, [
272
+ /* @__PURE__ */ V("circle", {
273
273
  class: "path",
274
274
  cx: "50",
275
275
  cy: "50",
@@ -279,9 +279,9 @@ const Ye = /* @__PURE__ */ z("svg", { viewBox: "25 25 50 50" }, [
279
279
  "stroke-width": "5",
280
280
  "stroke-miterlimit": "10"
281
281
  })
282
- ], -1), Xe = [
283
- Ye
284
- ], Ze = /* @__PURE__ */ w({
282
+ ], -1), Ze = [
283
+ Xe
284
+ ], je = /* @__PURE__ */ w({
285
285
  __name: "QSpinnerLoader",
286
286
  props: {
287
287
  size: { default: 48 }
@@ -290,39 +290,39 @@ const Ye = /* @__PURE__ */ z("svg", { viewBox: "25 25 50 50" }, [
290
290
  const n = t, e = y(() => ({
291
291
  "font-size": n.size !== 48 ? `${n.size}px` : void 0
292
292
  }));
293
- return (o, l) => (r(), u("div", {
293
+ return (o, a) => (r(), f("div", {
294
294
  class: "q-spinner-loader",
295
- style: W(e.value)
296
- }, Xe, 4));
295
+ style: Y(e.value)
296
+ }, Ze, 4));
297
297
  }
298
298
  });
299
- function je(t, n) {
299
+ function Je(t, n) {
300
300
  var e;
301
301
  return typeof ((e = t.props) == null ? void 0 : e[n]) < "u";
302
302
  }
303
303
  function $(t) {
304
304
  const n = t.setup;
305
305
  return n && (t.setup = (e, o) => {
306
- const l = Re();
307
- if (le(l.value))
306
+ const a = Me();
307
+ if (re(a.value))
308
308
  return n(e, o);
309
- const a = ve();
310
- if (a === null)
309
+ const l = be();
310
+ if (l === null)
311
311
  return n(e, o);
312
312
  const s = new Proxy(e, {
313
313
  get(d, i) {
314
- var p;
315
- const h = Reflect.get(d, i), S = (p = l.value) == null ? void 0 : p[i];
316
- return typeof i == "string" && !je(a.vnode, i) ? S ?? h : h;
314
+ var m;
315
+ const p = Reflect.get(d, i), S = (m = a.value) == null ? void 0 : m[i];
316
+ return typeof i == "string" && !Je(l.vnode, i) ? S ?? p : p;
317
317
  }
318
318
  });
319
319
  return n(s, o);
320
320
  }), t;
321
321
  }
322
- const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
322
+ const Be = $(je), Pe = ["disabled", "onClick"], et = {
323
323
  key: 0,
324
324
  class: "q-btn__spinner"
325
- }, et = { class: "q-btn__content" }, tt = /* @__PURE__ */ w({
325
+ }, tt = { class: "q-btn__content" }, nt = /* @__PURE__ */ w({
326
326
  __name: "QButton",
327
327
  props: {
328
328
  active: { type: Boolean },
@@ -339,10 +339,10 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
339
339
  emits: ["click"],
340
340
  setup(t, { emit: n }) {
341
341
  const e = t, o = y(() => e.disabled || e.loading);
342
- function l(s) {
342
+ function a(s) {
343
343
  o.value || n("click", s);
344
344
  }
345
- const a = y(() => {
345
+ const l = y(() => {
346
346
  const s = y(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), d = y(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
347
347
  return [
348
348
  "q-btn",
@@ -357,27 +357,27 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
357
357
  }
358
358
  ];
359
359
  });
360
- return (s, d) => (r(), u("button", {
360
+ return (s, d) => (r(), f("button", {
361
361
  type: "button",
362
- class: Q(a.value),
362
+ class: Q(l.value),
363
363
  disabled: o.value,
364
- onClick: U(l, ["stop", "prevent"])
364
+ onClick: K(a, ["stop", "prevent"])
365
365
  }, [
366
- s.loading ? (r(), u("div", Pe, [
367
- Z(b(xe), { size: 23 })
366
+ s.loading ? (r(), f("div", et, [
367
+ J(b(Be), { size: 23 })
368
368
  ])) : g("", !0),
369
- z("span", et, [
370
- s.iconOnRight ? (r(), u(O, { key: 0 }, [
371
- j(C(e.label), 1)
369
+ V("span", tt, [
370
+ s.iconOnRight ? (r(), f(F, { key: 0 }, [
371
+ P(C(e.label), 1)
372
372
  ], 64)) : g("", !0),
373
373
  q(s.$slots, "default"),
374
- s.iconOnRight ? g("", !0) : (r(), u(O, { key: 1 }, [
375
- j(C(e.label), 1)
374
+ s.iconOnRight ? g("", !0) : (r(), f(F, { key: 1 }, [
375
+ P(C(e.label), 1)
376
376
  ], 64))
377
377
  ])
378
- ], 10, Je));
378
+ ], 10, Pe));
379
379
  }
380
- }), nt = $(tt), ot = /* @__PURE__ */ w({
380
+ }), ot = $(nt), at = /* @__PURE__ */ w({
381
381
  __name: "QButtonGroup",
382
382
  props: {
383
383
  bStyle: {},
@@ -387,11 +387,11 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
387
387
  },
388
388
  setup(t) {
389
389
  const n = t;
390
- Me({
390
+ He({
391
391
  QButton: {
392
- bStyle: te(n, "bStyle"),
393
- disabled: te(n, "disabled"),
394
- borderless: te(n, "borderless"),
392
+ bStyle: oe(n, "bStyle"),
393
+ disabled: oe(n, "disabled"),
394
+ borderless: oe(n, "borderless"),
395
395
  elevated: !1
396
396
  }
397
397
  });
@@ -401,13 +401,13 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
401
401
  "q-btn-group--elevated": n.elevated
402
402
  }
403
403
  ]);
404
- return (o, l) => (r(), u("div", {
404
+ return (o, a) => (r(), f("div", {
405
405
  class: Q(e.value)
406
406
  }, [
407
407
  q(o.$slots, "default")
408
408
  ], 2));
409
409
  }
410
- }), lt = $(ot), at = /* @__PURE__ */ w({
410
+ }), lt = $(at), st = /* @__PURE__ */ w({
411
411
  __name: "QButtonToggle",
412
412
  props: {
413
413
  modelValue: {},
@@ -419,12 +419,12 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
419
419
  },
420
420
  emits: ["update:modelValue"],
421
421
  setup(t, { emit: n }) {
422
- const e = t, o = x(e.modelValue);
422
+ const e = t, o = B(e.modelValue);
423
423
  I(
424
424
  () => e.modelValue,
425
425
  (s) => o.value = s
426
426
  );
427
- const l = y({
427
+ const a = y({
428
428
  get() {
429
429
  return o.value;
430
430
  },
@@ -432,8 +432,8 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
432
432
  o.value = s, n("update:modelValue", s);
433
433
  }
434
434
  });
435
- function a(s) {
436
- l.value === s.key && !e.mandatory ? l.value = void 0 : l.value = s.key;
435
+ function l(s) {
436
+ a.value === s.key && !e.mandatory ? a.value = void 0 : a.value = s.key;
437
437
  }
438
438
  return (s, d) => (r(), k(b(lt), {
439
439
  "b-style": "secondary",
@@ -442,12 +442,12 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
442
442
  elevated: e.elevated
443
443
  }, {
444
444
  default: D(() => [
445
- (r(!0), u(O, null, oe(e.options, (i) => (r(), k(b(nt), {
445
+ (r(!0), f(F, null, le(e.options, (i) => (r(), k(b(ot), {
446
446
  key: i.key,
447
447
  title: i.title,
448
448
  label: i.label,
449
- active: l.value === i.key,
450
- onClick: (h) => a(i)
449
+ active: a.value === i.key,
450
+ onClick: (p) => l(i)
451
451
  }, {
452
452
  default: D(() => [
453
453
  q(s.$slots, i.key)
@@ -458,24 +458,24 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
458
458
  _: 3
459
459
  }, 8, ["disabled", "borderless", "elevated"]));
460
460
  }
461
- }), fn = $(at);
462
- let st = 0;
463
- function P() {
464
- return `uid-${++st}`;
461
+ }), pn = $(st);
462
+ let rt = 0;
463
+ function te() {
464
+ return `uid-${++rt}`;
465
465
  }
466
- const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__control" }, ct = {
466
+ const it = ["for", "data-val-required"], dt = ["id"], ct = { class: "q-field__control" }, ut = {
467
467
  key: 0,
468
468
  class: "q-field__prepend"
469
- }, ut = {
469
+ }, ft = {
470
470
  key: 1,
471
471
  class: "q-field__append"
472
- }, ft = {
472
+ }, pt = {
473
473
  key: 0,
474
474
  class: "q-field__extras"
475
- }, pt = /* @__PURE__ */ w({
475
+ }, mt = /* @__PURE__ */ w({
476
476
  __name: "QField",
477
477
  props: {
478
- id: { default: () => P() },
478
+ id: { default: () => te() },
479
479
  label: { default: "" },
480
480
  size: { default: "medium" },
481
481
  readonly: { type: Boolean, default: !1 },
@@ -483,18 +483,18 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
483
483
  required: { type: Boolean, default: !1 }
484
484
  },
485
485
  setup(t, { expose: n }) {
486
- const e = t, o = x(null), l = y(() => e.required && !e.readonly && !e.disabled);
486
+ const e = t, o = B(null), a = y(() => e.required && !e.readonly && !e.disabled);
487
487
  return n({
488
488
  fieldRef: o
489
- }), (a, s) => (r(), u(O, null, [
490
- q(a.$slots, "label.prepend"),
491
- z("label", {
489
+ }), (l, s) => (r(), f(F, null, [
490
+ q(l.$slots, "label.prepend"),
491
+ V("label", {
492
492
  class: "q-field__label",
493
493
  for: e.id,
494
- "data-val-required": l.value
495
- }, C(e.label), 9, rt),
496
- q(a.$slots, "label.append"),
497
- z("div", K({
494
+ "data-val-required": a.value
495
+ }, C(e.label), 9, it),
496
+ q(l.$slots, "label.append"),
497
+ V("div", G({
498
498
  ref_key: "fieldRef",
499
499
  ref: o,
500
500
  id: e.id,
@@ -503,23 +503,23 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
503
503
  `q-field--${e.size}`,
504
504
  { "q-field--readonly": e.readonly, "q-field--disabled": e.disabled }
505
505
  ]
506
- }, a.$attrs), [
507
- z("div", dt, [
508
- a.$slots.prepend ? (r(), u("div", ct, [
509
- q(a.$slots, "prepend")
506
+ }, l.$attrs), [
507
+ V("div", ct, [
508
+ l.$slots.prepend ? (r(), f("div", ut, [
509
+ q(l.$slots, "prepend")
510
510
  ])) : g("", !0),
511
- q(a.$slots, "default"),
512
- a.$slots.append ? (r(), u("div", ut, [
513
- q(a.$slots, "append")
511
+ q(l.$slots, "default"),
512
+ l.$slots.append ? (r(), f("div", ft, [
513
+ q(l.$slots, "append")
514
514
  ])) : g("", !0)
515
515
  ]),
516
- a.$slots.extras ? (r(), u("div", ft, [
517
- q(a.$slots, "extras")
516
+ l.$slots.extras ? (r(), f("div", pt, [
517
+ q(l.$slots, "extras")
518
518
  ])) : g("", !0)
519
- ], 16, it)
519
+ ], 16, dt)
520
520
  ], 64));
521
521
  }
522
- }), Le = $(pt), mt = /* @__PURE__ */ w({
522
+ }), Le = $(mt), ht = /* @__PURE__ */ w({
523
523
  __name: "QIcon",
524
524
  props: {
525
525
  icon: {},
@@ -530,22 +530,22 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
530
530
  const n = t, e = y(() => {
531
531
  switch (n.type) {
532
532
  case "svg":
533
- return St;
533
+ return qt;
534
534
  case "font":
535
- return wt;
536
- case "img":
537
535
  return $t;
536
+ case "img":
537
+ return St;
538
538
  default:
539
539
  return;
540
540
  }
541
541
  });
542
- return (o, l) => n.icon ? (r(), k(ge(e.value), {
542
+ return (o, a) => n.icon ? (r(), k(_e(e.value), {
543
543
  key: 0,
544
544
  icon: n.icon,
545
545
  size: n.size
546
546
  }, null, 8, ["icon", "size"])) : g("", !0);
547
547
  }
548
- }), ht = /* @__PURE__ */ w({
548
+ }), yt = /* @__PURE__ */ w({
549
549
  __name: "QIconFont",
550
550
  props: {
551
551
  icon: {},
@@ -554,16 +554,16 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
554
554
  size: { default: void 0 }
555
555
  },
556
556
  setup(t) {
557
- const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), l = y(() => ({
557
+ const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), a = y(() => ({
558
558
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
559
559
  }));
560
- return (a, s) => o.value ? (r(), u("i", {
560
+ return (l, s) => o.value ? (r(), f("i", {
561
561
  key: 0,
562
562
  class: Q(["q-icon", "q-icon__font", e.value, o.value]),
563
- style: W(l.value)
563
+ style: Y(a.value)
564
564
  }, null, 6)) : g("", !0);
565
565
  }
566
- }), yt = ["src"], vt = /* @__PURE__ */ w({
566
+ }), vt = ["src"], bt = /* @__PURE__ */ w({
567
567
  __name: "QIconImg",
568
568
  props: {
569
569
  icon: {},
@@ -573,14 +573,14 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
573
573
  const n = t, e = y(() => ({
574
574
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
575
575
  }));
576
- return (o, l) => n.icon ? (r(), u("img", {
576
+ return (o, a) => n.icon ? (r(), f("img", {
577
577
  key: 0,
578
578
  src: n.icon,
579
579
  class: "q-icon q-icon__img",
580
- style: W(e.value)
581
- }, null, 12, yt)) : g("", !0);
580
+ style: Y(e.value)
581
+ }, null, 12, vt)) : g("", !0);
582
582
  }
583
- }), H = {}, bt = w({
583
+ }), N = {}, gt = w({
584
584
  name: "InlineSvg",
585
585
  emits: ["loaded", "unloaded", "error"],
586
586
  inheritAttrs: !1,
@@ -589,9 +589,9 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
589
589
  return null;
590
590
  const t = this.getSvgContent(this.svgElSource);
591
591
  if (!t)
592
- return de("div", this.$attrs);
592
+ return ue("div", this.$attrs);
593
593
  const n = {};
594
- return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, de("svg", n);
594
+ return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, ue("svg", n);
595
595
  },
596
596
  props: {
597
597
  src: {
@@ -636,7 +636,7 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
636
636
  o !== !1 && o !== null && o !== void 0 && (t[e] = o);
637
637
  },
638
638
  getSvgContent(t) {
639
- 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)), gt(t, this.title)), t);
639
+ return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), _t(t, this.title)), t);
640
640
  },
641
641
  /**
642
642
  * Get svgElSource
@@ -644,11 +644,11 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
644
644
  */
645
645
  async getSource(t) {
646
646
  try {
647
- H[t] || (H[t] = _t(this.download(t))), this.svgElSource && H[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
648
- const n = await H[t];
647
+ N[t] || (N[t] = kt(this.download(t))), this.svgElSource && N[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
648
+ const n = await N[t];
649
649
  this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
650
650
  } catch (n) {
651
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete H[t], this.$emit("error", n);
651
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete N[t], this.$emit("error", n);
652
652
  }
653
653
  },
654
654
  /**
@@ -660,10 +660,10 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
660
660
  const n = await fetch(t);
661
661
  if (!n.ok)
662
662
  throw new Error("Error loading SVG");
663
- const e = await n.text(), a = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
664
- if (!a)
663
+ const e = await n.text(), l = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
664
+ if (!l)
665
665
  throw new Error("Loaded file is not a valid SVG");
666
- return a;
666
+ return l;
667
667
  }
668
668
  },
669
669
  watch: {
@@ -672,7 +672,7 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
672
672
  }
673
673
  }
674
674
  });
675
- function gt(t, n) {
675
+ function _t(t, n) {
676
676
  const e = t.getElementsByTagName("title");
677
677
  if (e.length)
678
678
  e[0].textContent = n;
@@ -681,7 +681,7 @@ function gt(t, n) {
681
681
  o.textContent = n, t.insertBefore(o, t.firstChild);
682
682
  }
683
683
  }
684
- function _t(t) {
684
+ function kt(t) {
685
685
  if (t.getIsPending)
686
686
  return t;
687
687
  let n = !0;
@@ -693,7 +693,7 @@ function _t(t) {
693
693
  );
694
694
  return e.getIsPending = () => n, e;
695
695
  }
696
- const kt = /* @__PURE__ */ w({
696
+ const wt = /* @__PURE__ */ w({
697
697
  __name: "QIconSvg",
698
698
  props: {
699
699
  icon: {},
@@ -705,26 +705,26 @@ const kt = /* @__PURE__ */ w({
705
705
  const e = t, o = y(() => ({
706
706
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
707
707
  }));
708
- return (l, a) => e.icon ? (r(), k(b(bt), {
708
+ return (a, l) => e.icon ? (r(), k(b(gt), {
709
709
  key: 0,
710
710
  class: "q-icon q-icon__svg",
711
711
  src: e.bundle,
712
712
  symbol: e.icon,
713
- style: W(o.value),
714
- onLoaded: a[0] || (a[0] = (s) => n("loaded", s)),
715
- onUnloaded: a[1] || (a[1] = (s) => n("unloaded", s))
713
+ style: Y(o.value),
714
+ onLoaded: l[0] || (l[0] = (s) => n("loaded", s)),
715
+ onUnloaded: l[1] || (l[1] = (s) => n("unloaded", s))
716
716
  }, null, 8, ["src", "symbol", "style"])) : g("", !0);
717
717
  }
718
- }), N = $(mt), wt = $(ht), $t = $(vt), St = $(kt), qt = (t, n) => {
718
+ }), W = $(ht), $t = $(yt), St = $(bt), qt = $(wt), xt = (t, n) => {
719
719
  const e = t.__vccOpts || t;
720
- for (const [o, l] of n)
721
- e[o] = l;
720
+ for (const [o, a] of n)
721
+ e[o] = a;
722
722
  return e;
723
- }, Bt = {}, xt = { class: "q-line-loader" };
724
- function Lt(t, n) {
725
- return r(), u("div", xt);
723
+ }, Bt = {}, Lt = { class: "q-line-loader" };
724
+ function Tt(t, n) {
725
+ return r(), f("div", Lt);
726
726
  }
727
- const Tt = /* @__PURE__ */ qt(Bt, [["render", Lt]]), pn = $(Tt), Dt = /* @__PURE__ */ w({
727
+ const Dt = /* @__PURE__ */ xt(Bt, [["render", Tt]]), mn = $(Dt), Et = /* @__PURE__ */ w({
728
728
  __name: "QList",
729
729
  props: {
730
730
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -736,35 +736,35 @@ const Tt = /* @__PURE__ */ qt(Bt, [["render", Lt]]), pn = $(Tt), Dt = /* @__PURE
736
736
  },
737
737
  emits: ["update:modelValue"],
738
738
  setup(t, { expose: n, emit: e }) {
739
- const o = t, l = x(o.modelValue), a = y(() => s.value.length > 1 ? "div" : "ul"), s = y(() => o.groups.length ? o.groups : [{ title: "" }]), d = x(null);
740
- function i(f) {
741
- l.value = f, e("update:modelValue", f);
739
+ const o = t, a = B(o.modelValue), l = y(() => s.value.length > 1 ? "div" : "ul"), s = y(() => o.groups.length ? o.groups : [{ title: "" }]), d = B(null);
740
+ function i(u) {
741
+ a.value = u, e("update:modelValue", u);
742
742
  }
743
- function h() {
744
- let f = 0;
745
- l.value && (f = o.items.findIndex((B) => B[o.itemValue] === l.value)), E(f);
743
+ function p() {
744
+ let u = 0;
745
+ a.value && (u = o.items.findIndex((x) => x[o.itemValue] === a.value)), E(u);
746
746
  }
747
- function S(f) {
748
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
747
+ function S(u) {
748
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && u.preventDefault(), u.key) {
749
749
  case "ArrowDown":
750
- p("next");
750
+ m("next");
751
751
  break;
752
752
  case "ArrowUp":
753
- p("prev");
753
+ m("prev");
754
754
  break;
755
755
  case "Home":
756
- p("first");
756
+ m("first");
757
757
  break;
758
758
  case "End":
759
- p("last");
759
+ m("last");
760
760
  break;
761
761
  }
762
762
  }
763
- function p(f) {
764
- switch (f) {
763
+ function m(u) {
764
+ switch (u) {
765
765
  case "next":
766
766
  case "prev":
767
- E(V(f));
767
+ E(z(u));
768
768
  break;
769
769
  case "first":
770
770
  E(0);
@@ -774,53 +774,53 @@ const Tt = /* @__PURE__ */ qt(Bt, [["render", Lt]]), pn = $(Tt), Dt = /* @__PURE
774
774
  break;
775
775
  }
776
776
  }
777
- function E(f) {
777
+ function E(u) {
778
778
  var v;
779
- (v = A().at(f)) == null || v.focus();
779
+ (v = A().at(u)) == null || v.focus();
780
780
  }
781
781
  function A() {
782
782
  var v;
783
- const f = (v = d.value) == null ? void 0 : v.querySelectorAll("li");
784
- return f ? Array.from(f).filter((L) => L.tabIndex !== -1) : [];
783
+ const u = (v = d.value) == null ? void 0 : v.querySelectorAll("li");
784
+ return u ? Array.from(u).filter((L) => L.tabIndex !== -1) : [];
785
785
  }
786
- function F(f) {
787
- return f.indexOf(document.activeElement);
786
+ function O(u) {
787
+ return u.indexOf(document.activeElement);
788
788
  }
789
- function V(f) {
790
- const B = A(), v = F(B);
791
- return f === "next" ? v === B.length - 1 ? v : v + 1 : v === 0 ? 0 : v - 1;
789
+ function z(u) {
790
+ const x = A(), v = O(x);
791
+ return u === "next" ? v === x.length - 1 ? v : v + 1 : v === 0 ? 0 : v - 1;
792
792
  }
793
- function M(f) {
794
- return f ? o.items.filter((B) => B.group === f) : o.items;
793
+ function M(u) {
794
+ return u ? o.items.filter((x) => x.group === u) : o.items;
795
795
  }
796
796
  return I(
797
797
  () => o.modelValue,
798
- (f) => {
799
- l.value = f;
798
+ (u) => {
799
+ a.value = u;
800
800
  }
801
- ), n({ focusItem: E }), (f, B) => (r(), k(ge(a.value), {
801
+ ), n({ focusItem: E }), (u, x) => (r(), k(_e(l.value), {
802
802
  ref_key: "listRef",
803
803
  ref: d,
804
804
  class: Q(["q-list", { "q-list--disabled": o.disabled }]),
805
805
  role: "listbox",
806
806
  tabindex: o.disabled ? -1 : 0,
807
- onFocus: h,
807
+ onFocus: p,
808
808
  onKeydown: S
809
809
  }, {
810
810
  default: D(() => [
811
- (r(!0), u(O, null, oe(s.value, (v) => (r(), k(b(Rt), {
811
+ (r(!0), f(F, null, le(s.value, (v) => (r(), k(b(Mt), {
812
812
  key: v.id,
813
813
  title: v.title,
814
814
  disabled: v.disabled
815
815
  }, {
816
816
  default: D(() => [
817
- (r(!0), u(O, null, oe(M(v.id), (L) => (r(), k(b(Ft), {
817
+ (r(!0), f(F, null, le(M(v.id), (L) => (r(), k(b(Rt), {
818
818
  key: L[o.itemValue],
819
819
  value: L[o.itemValue],
820
820
  label: L[o.itemLabel],
821
821
  icon: L.icon,
822
822
  disabled: o.disabled || L.disabled,
823
- selected: l.value === L[o.itemValue],
823
+ selected: a.value === L[o.itemValue],
824
824
  onSelect: i
825
825
  }, null, 8, ["value", "label", "icon", "disabled", "selected"]))), 128))
826
826
  ]),
@@ -830,11 +830,11 @@ const Tt = /* @__PURE__ */ qt(Bt, [["render", Lt]]), pn = $(Tt), Dt = /* @__PURE
830
830
  _: 1
831
831
  }, 40, ["class", "tabindex"]));
832
832
  }
833
- }), Et = ["tabindex", "aria-label", "aria-selected", "onClick"], It = { class: "q-list-item__check-container" }, Ct = {
833
+ }), It = ["tabindex", "aria-label", "aria-selected", "onClick"], Vt = { class: "q-list-item__check-container" }, Ct = {
834
834
  check: {
835
835
  icon: "check"
836
836
  }
837
- }, Vt = /* @__PURE__ */ w({
837
+ }, zt = /* @__PURE__ */ w({
838
838
  __name: "QListItem",
839
839
  props: {
840
840
  value: { type: [String, Number, Boolean, Symbol] },
@@ -851,10 +851,10 @@ const Tt = /* @__PURE__ */ qt(Bt, [["render", Lt]]), pn = $(Tt), Dt = /* @__PURE
851
851
  function o() {
852
852
  e.disabled || n("select", e.value);
853
853
  }
854
- function l(a) {
855
- a.key === "Tab" && o(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), o());
854
+ function a(l) {
855
+ l.key === "Tab" && o(), (l.key === "Enter" || l.key === " ") && (l.preventDefault(), l.stopPropagation(), o());
856
856
  }
857
- return (a, s) => (r(), u("li", {
857
+ return (l, s) => (r(), f("li", {
858
858
  role: "option",
859
859
  tabindex: e.disabled ? void 0 : -2,
860
860
  class: Q([
@@ -867,104 +867,104 @@ const Tt = /* @__PURE__ */ qt(Bt, [["render", Lt]]), pn = $(Tt), Dt = /* @__PURE
867
867
  ]),
868
868
  "aria-label": e.label,
869
869
  "aria-selected": e.disabled ? void 0 : e.selected,
870
- onKeydown: l,
871
- onClick: U(o, ["stop", "prevent"])
870
+ onKeydown: a,
871
+ onClick: K(o, ["stop", "prevent"])
872
872
  }, [
873
- e.icon ? (r(), k(b(N), _e(K({ key: 0 }, e.icon)), null, 16)) : g("", !0),
874
- j(" " + C(e.label) + " ", 1),
875
- z("div", It, [
876
- e.selected ? (r(), k(b(N), K({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : g("", !0)
873
+ e.icon ? (r(), k(b(W), ke(G({ key: 0 }, e.icon)), null, 16)) : g("", !0),
874
+ P(" " + C(e.label) + " ", 1),
875
+ V("div", Vt, [
876
+ e.selected ? (r(), k(b(W), G({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : g("", !0)
877
877
  ])
878
- ], 42, Et));
878
+ ], 42, It));
879
879
  }
880
- }), zt = ["aria-labelledby"], At = ["id"], Qt = /* @__PURE__ */ w({
880
+ }), At = ["aria-labelledby"], Qt = ["id"], Ft = /* @__PURE__ */ w({
881
881
  __name: "QListItemGroup",
882
882
  props: {
883
883
  title: { default: "" },
884
884
  disabled: { type: Boolean, default: !1 }
885
885
  },
886
886
  setup(t) {
887
- const n = t, e = P();
888
- return (o, l) => n.title ? (r(), u("ul", {
887
+ const n = t, e = te();
888
+ return (o, a) => n.title ? (r(), f("ul", {
889
889
  key: 1,
890
890
  class: "q-list-item-group",
891
891
  role: "group",
892
892
  "aria-labelledby": b(e)
893
893
  }, [
894
- n.title ? (r(), u("li", {
894
+ n.title ? (r(), f("li", {
895
895
  key: 0,
896
896
  id: b(e),
897
897
  class: "q-list-item-group__title",
898
898
  role: "presentation"
899
- }, C(n.title), 9, At)) : g("", !0),
899
+ }, C(n.title), 9, Qt)) : g("", !0),
900
900
  q(o.$slots, "default")
901
- ], 8, zt)) : q(o.$slots, "default", { key: 0 });
901
+ ], 8, At)) : q(o.$slots, "default", { key: 0 });
902
902
  }
903
- }), Ot = $(Dt), Ft = $(Vt), Rt = $(Qt);
904
- function Mt(t, n, e = "right", o) {
905
- const l = t.getBoundingClientRect(), a = l.x + window.scrollX, s = l.y + window.scrollY, d = n == null ? void 0 : n.getBoundingClientRect(), i = (d == null ? void 0 : d.width) ?? 0, h = (d == null ? void 0 : d.height) ?? 0;
903
+ }), Ot = $(Et), Rt = $(zt), Mt = $(Ft);
904
+ function Ht(t, n, e = "right", o) {
905
+ const a = t.getBoundingClientRect(), l = a.x + window.scrollX, s = a.y + window.scrollY, d = n == null ? void 0 : n.getBoundingClientRect(), i = (d == null ? void 0 : d.width) ?? 0, p = (d == null ? void 0 : d.height) ?? 0;
906
906
  let S = e;
907
- d && !Te(l, d, S) && (S = Ht(l, d, S));
908
- const p = { x: 0, y: 0, placement: S };
907
+ d && !Te(a, d, S) && (S = Ut(a, d, S));
908
+ const m = { x: 0, y: 0, placement: S };
909
909
  switch (S) {
910
910
  case "top":
911
- o === "anchor" ? p.x = a : p.x = a + (l.width - i) / 2, p.y = s - h;
911
+ o === "anchor" ? m.x = l : m.x = l + (a.width - i) / 2, m.y = s - p;
912
912
  break;
913
913
  case "bottom":
914
- o === "anchor" ? p.x = a : p.x = a + (l.width - i) / 2, p.y = s + l.height;
914
+ o === "anchor" ? m.x = l : m.x = l + (a.width - i) / 2, m.y = s + a.height;
915
915
  break;
916
916
  case "left":
917
- p.x = a - i, p.y = s + l.height / 2 - h / 2;
917
+ m.x = l - i, m.y = s + a.height / 2 - p / 2;
918
918
  break;
919
919
  case "right":
920
- p.x = a + l.width, p.y = s + l.height / 2 - h / 2;
920
+ m.x = l + a.width, m.y = s + a.height / 2 - p / 2;
921
921
  break;
922
922
  }
923
- return o === "anchor" && l.width >= i && (p.width = l.width), p;
923
+ return o === "anchor" && a.width >= i && (m.width = a.width), m;
924
924
  }
925
925
  function Te(t, n, e) {
926
- let o = !1, l = !1;
926
+ let o = !1, a = !1;
927
927
  switch (e) {
928
928
  case "top":
929
- o = ye(t, n), l = t.top > n.height;
929
+ o = ve(t, n), a = t.top > n.height;
930
930
  break;
931
931
  case "bottom":
932
- o = ye(t, n), l = window.innerHeight - t.top - t.height > n.height;
932
+ o = ve(t, n), a = window.innerHeight - t.top - t.height > n.height;
933
933
  break;
934
934
  case "left":
935
- o = t.left > n.width, l = he(t, n);
935
+ o = t.left > n.width, a = ye(t, n);
936
936
  break;
937
937
  case "right":
938
- o = window.innerWidth - t.left - t.width > n.width, l = he(t, n);
938
+ o = window.innerWidth - t.left - t.width > n.width, a = ye(t, n);
939
939
  break;
940
940
  }
941
- return o && l;
941
+ return o && a;
942
942
  }
943
- function he(t, n) {
943
+ function ye(t, n) {
944
944
  return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
945
945
  }
946
- function ye(t, n) {
946
+ function ve(t, n) {
947
947
  return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
948
948
  }
949
- function Ht(t, n, e) {
949
+ function Ut(t, n, e) {
950
950
  const o = {
951
951
  top: ["bottom", "left", "right"],
952
952
  bottom: ["top", "left", "right"],
953
953
  left: ["right", "top", "bottom"],
954
954
  right: ["left", "top", "bottom"]
955
955
  };
956
- for (const l of o[e])
957
- if (Te(t, n, l))
958
- return l;
956
+ for (const a of o[e])
957
+ if (Te(t, n, a))
958
+ return a;
959
959
  return e;
960
960
  }
961
- function X(t) {
961
+ function j(t) {
962
962
  return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
963
963
  }
964
- const Ut = {
964
+ const Nt = {
965
965
  key: 0,
966
966
  class: "q-overlay__arrow"
967
- }, Nt = /* @__PURE__ */ w({
967
+ }, Kt = /* @__PURE__ */ w({
968
968
  inheritAttrs: !1,
969
969
  __name: "QOverlay",
970
970
  props: {
@@ -987,27 +987,27 @@ const Ut = {
987
987
  setup(t, { emit: n }) {
988
988
  const e = t, o = y(() => [
989
989
  "q-overlay",
990
- `q-overlay--${l.placement}`,
990
+ `q-overlay--${a.placement}`,
991
991
  { "q-overlay--inverted": e.appearance === "inverted" },
992
992
  ...e.contentClasses
993
- ]), l = Ee({
993
+ ]), a = Ee({
994
994
  visible: e.modelValue,
995
995
  animating: !1,
996
996
  top: 0,
997
997
  left: 0,
998
998
  width: 0,
999
999
  placement: e.placement
1000
- }), a = y(() => l.visible && !e.disabled);
1000
+ }), l = y(() => a.visible && !e.disabled);
1001
1001
  I(
1002
1002
  () => e.modelValue,
1003
- () => l.visible = e.modelValue
1003
+ () => a.visible = e.modelValue
1004
1004
  ), I(
1005
- () => l.visible,
1006
- () => l.animating = !0
1005
+ () => a.visible,
1006
+ () => a.animating = !0
1007
1007
  );
1008
1008
  const s = y(() => {
1009
- let m = 0, T = 0;
1010
- switch (l.placement) {
1009
+ let h = 0, T = 0;
1010
+ switch (a.placement) {
1011
1011
  case "top":
1012
1012
  T = -(e.offset || 0);
1013
1013
  break;
@@ -1015,60 +1015,60 @@ const Ut = {
1015
1015
  T = e.offset || 0;
1016
1016
  break;
1017
1017
  case "left":
1018
- m = -(e.offset || 0);
1018
+ h = -(e.offset || 0);
1019
1019
  break;
1020
1020
  case "right":
1021
- m = e.offset || 0;
1021
+ h = e.offset || 0;
1022
1022
  break;
1023
1023
  }
1024
- const c = {
1025
- top: `${l.top + T}px`,
1026
- left: `${l.left + m}px`
1024
+ const H = {
1025
+ top: `${a.top + T}px`,
1026
+ left: `${a.left + h}px`
1027
1027
  };
1028
- return l.width !== void 0 && ["top", "bottom"].includes(l.placement) && (c.width = `${l.width}px`), c;
1029
- }), d = x(null);
1028
+ return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (H.width = `${a.width}px`), H;
1029
+ }), d = B(null);
1030
1030
  function i() {
1031
- const m = X(e.anchor);
1032
- if (m) {
1033
- const T = Mt(m, d.value, e.placement, e.width);
1034
- l.left = T.x, l.top = T.y, l.width = T.width, l.placement = T.placement;
1031
+ const h = j(e.anchor);
1032
+ if (h) {
1033
+ const T = Ht(h, d.value, e.placement, e.width);
1034
+ a.left = T.x, a.top = T.y, a.width = T.width, a.placement = T.placement;
1035
1035
  }
1036
1036
  }
1037
- I([() => a.value, () => e.placement], i);
1038
- let h;
1037
+ I([() => l.value, () => e.placement], i);
1038
+ let p;
1039
1039
  function S() {
1040
- const m = e.trigger === "hover" ? e.delay : 0;
1041
- h || (h = window.setTimeout(() => l.visible = !0, m));
1040
+ const h = e.trigger === "hover" ? e.delay : 0;
1041
+ p || (p = window.setTimeout(() => a.visible = !0, h));
1042
1042
  }
1043
- function p() {
1044
- clearTimeout(h), h = void 0, l.visible = !1;
1043
+ function m() {
1044
+ clearTimeout(p), p = void 0, a.visible = !1;
1045
1045
  }
1046
1046
  function E() {
1047
- a.value ? p() : S();
1047
+ l.value ? m() : S();
1048
1048
  }
1049
1049
  let A;
1050
- function F() {
1051
- window.clearTimeout(A), A = window.setTimeout(() => l.animating = !1, 200), n("leave");
1050
+ function O() {
1051
+ window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), n("leave");
1052
1052
  }
1053
- let V;
1053
+ let z;
1054
1054
  function M() {
1055
- ce(() => {
1056
- const m = X(e.anchor);
1057
- if (m)
1055
+ se(() => {
1056
+ const h = j(e.anchor);
1057
+ if (h)
1058
1058
  switch (e.trigger) {
1059
1059
  case "click":
1060
- m.addEventListener("click", E);
1060
+ h.addEventListener("click", E);
1061
1061
  break;
1062
1062
  case "hover":
1063
- m.addEventListener("mouseenter", S), m.addEventListener("mouseleave", p);
1063
+ h.addEventListener("mouseenter", S), h.addEventListener("mouseleave", m);
1064
1064
  break;
1065
1065
  }
1066
1066
  });
1067
1067
  }
1068
- function f() {
1069
- ce(() => {
1070
- const m = X(e.anchor);
1071
- m && (window.addEventListener("scroll", i), window.addEventListener("resize", i), V = new MutationObserver(i), V.observe(m, {
1068
+ function u() {
1069
+ se(() => {
1070
+ const h = j(e.anchor);
1071
+ h && (window.addEventListener("scroll", i), window.addEventListener("resize", i), z = new MutationObserver(i), z.observe(h, {
1072
1072
  attributes: !1,
1073
1073
  childList: !0,
1074
1074
  characterData: !0,
@@ -1076,57 +1076,57 @@ const Ut = {
1076
1076
  }), i());
1077
1077
  });
1078
1078
  }
1079
- function B() {
1080
- window.removeEventListener("scroll", i), window.removeEventListener("resize", i), V == null || V.disconnect();
1079
+ function x() {
1080
+ window.removeEventListener("scroll", i), window.removeEventListener("resize", i), z == null || z.disconnect();
1081
1081
  }
1082
1082
  let v;
1083
1083
  function L() {
1084
- X(e.anchor) ? (i(), v = window.setTimeout(L, 100)) : p();
1084
+ j(e.anchor) ? (i(), v = window.setTimeout(L, 100)) : m();
1085
1085
  }
1086
- function ee() {
1087
- f(), e.spy && L();
1086
+ function ne() {
1087
+ u(), e.spy && L();
1088
1088
  }
1089
- function G() {
1090
- B(), e.spy && (clearTimeout(v), v = void 0);
1089
+ function X() {
1090
+ x(), e.spy && (clearTimeout(v), v = void 0);
1091
1091
  }
1092
- return Ie(G), Ce(i), I(
1092
+ return Ie(X), Ve(i), I(
1093
1093
  () => e.disabled,
1094
- (m) => {
1095
- m || M();
1094
+ (h) => {
1095
+ h || M();
1096
1096
  },
1097
1097
  { immediate: !0 }
1098
1098
  ), I(
1099
- () => a.value,
1100
- (m) => {
1101
- m ? ee() : G();
1099
+ () => l.value,
1100
+ (h) => {
1101
+ h ? ne() : X();
1102
1102
  },
1103
1103
  { immediate: !0 }
1104
- ), (m, T) => (r(), u(O, null, [
1105
- q(m.$slots, "trigger", { open: a.value }),
1106
- a.value || l.animating ? (r(), k(Ve, {
1104
+ ), (h, T) => (r(), f(F, null, [
1105
+ q(h.$slots, "trigger", { open: l.value }),
1106
+ l.value || a.animating ? (r(), k(Ce, {
1107
1107
  key: 0,
1108
1108
  disabled: !e.attach,
1109
1109
  to: e.attach
1110
1110
  }, [
1111
- Z(ze, {
1111
+ J(ze, {
1112
1112
  name: e.transition,
1113
1113
  appear: "",
1114
- onEnter: T[0] || (T[0] = (c) => n("enter")),
1115
- onLeave: F
1114
+ onEnter: T[0] || (T[0] = (H) => n("enter")),
1115
+ onLeave: O
1116
1116
  }, {
1117
1117
  default: D(() => [
1118
- a.value ? (r(), u("div", {
1118
+ l.value ? (r(), f("div", {
1119
1119
  key: 0,
1120
1120
  class: Q(o.value),
1121
- style: W(s.value)
1121
+ style: Y(s.value)
1122
1122
  }, [
1123
- z("div", {
1123
+ V("div", {
1124
1124
  class: Q(["q-overlay__content"]),
1125
1125
  ref_key: "overlay",
1126
1126
  ref: d
1127
1127
  }, [
1128
- e.arrow ? (r(), u("div", Ut)) : g("", !0),
1129
- q(m.$slots, "default")
1128
+ e.arrow ? (r(), f("div", Nt)) : g("", !0),
1129
+ q(h.$slots, "default")
1130
1130
  ], 512)
1131
1131
  ], 6)) : g("", !0)
1132
1132
  ]),
@@ -1135,13 +1135,13 @@ const Ut = {
1135
1135
  ], 8, ["disabled", "to"])) : g("", !0)
1136
1136
  ], 64));
1137
1137
  }
1138
- }), se = $(Nt), Kt = {
1138
+ }), de = $(Kt), Wt = {
1139
1139
  key: 0,
1140
1140
  class: "q-popover__header"
1141
- }, Wt = {
1141
+ }, Gt = {
1142
1142
  key: 1,
1143
1143
  class: "q-popover__body"
1144
- }, Gt = ["innerHTML"], Yt = { key: 1 }, Xt = /* @__PURE__ */ w({
1144
+ }, Yt = ["innerHTML"], Xt = { key: 1 }, Zt = /* @__PURE__ */ w({
1145
1145
  inheritAttrs: !1,
1146
1146
  __name: "QPopover",
1147
1147
  props: {
@@ -1158,7 +1158,7 @@ const Ut = {
1158
1158
  },
1159
1159
  setup(t) {
1160
1160
  const n = t;
1161
- return (e, o) => (r(), k(b(se), {
1161
+ return (e, o) => (r(), k(b(de), {
1162
1162
  "model-value": n.modelValue,
1163
1163
  trigger: "click",
1164
1164
  anchor: n.anchor,
@@ -1170,110 +1170,100 @@ const Ut = {
1170
1170
  spy: n.spy
1171
1171
  }, {
1172
1172
  default: D(() => [
1173
- n.title || e.$slots.header ? (r(), u("h3", Kt, [
1174
- j(C(n.title) + " ", 1),
1173
+ n.title || e.$slots.header ? (r(), f("h3", Wt, [
1174
+ P(C(n.title) + " ", 1),
1175
1175
  q(e.$slots, "header")
1176
1176
  ])) : g("", !0),
1177
- n.text || e.$slots.body ? (r(), u("div", Wt, [
1178
- n.html ? (r(), u("span", {
1177
+ n.text || e.$slots.body ? (r(), f("div", Gt, [
1178
+ n.html ? (r(), f("span", {
1179
1179
  key: 0,
1180
1180
  innerHTML: n.text
1181
- }, null, 8, Gt)) : (r(), u("span", Yt, C(n.text), 1)),
1181
+ }, null, 8, Yt)) : (r(), f("span", Xt, C(n.text), 1)),
1182
1182
  q(e.$slots, "body")
1183
1183
  ])) : g("", !0)
1184
1184
  ]),
1185
1185
  _: 3
1186
1186
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
1187
1187
  }
1188
- }), mn = $(Xt);
1189
- function Zt() {
1188
+ }), hn = $(Zt);
1189
+ function jt() {
1190
1190
  const t = Ae(), n = {};
1191
1191
  return typeof t.class == "string" ? n.class = t.class.split(" ") : Array.isArray(t.class) ? n.class = t.class : n.class = [], n;
1192
1192
  }
1193
- const jt = {
1194
- mounted(t, n) {
1195
- t.clickOutsideEvent = function(e) {
1196
- const o = e.target;
1197
- n.arg ? t === o || t.contains(o) || o.closest(n.arg) || n.value(e, t) : t === o || t.contains(o) || n.value(e, t);
1198
- }, document.addEventListener("click", t.clickOutsideEvent);
1199
- },
1200
- unmounted(t) {
1201
- document.removeEventListener("click", t.clickOutsideEvent);
1202
- }
1203
- }, Jt = {
1193
+ const Jt = {
1204
1194
  key: 0,
1205
1195
  class: "q-select__value"
1206
1196
  }, Pt = {
1207
1197
  key: 1,
1208
1198
  class: "q-select__placeholder"
1209
- }, en = {
1199
+ }, en = ["onKeydown"], tn = {
1210
1200
  placeholder: "Choose..."
1211
- }, tn = {
1201
+ }, nn = {
1212
1202
  chevron: {
1213
1203
  icon: "chevron-down"
1214
1204
  },
1215
1205
  clear: {
1216
1206
  icon: "close"
1217
1207
  }
1218
- }, nn = /* @__PURE__ */ w({
1208
+ }, on = /* @__PURE__ */ w({
1219
1209
  inheritAttrs: !1,
1220
1210
  __name: "QSelect",
1221
1211
  props: {
1222
1212
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1223
- id: { default: () => P() },
1213
+ id: { default: () => te() },
1224
1214
  label: { default: "" },
1225
1215
  clearable: { type: Boolean, default: !1 },
1226
1216
  readonly: { type: Boolean },
1227
1217
  disabled: { type: Boolean, default: !1 },
1228
1218
  required: { type: Boolean, default: !1 },
1229
1219
  loading: { type: Boolean, default: !1 },
1230
- icons: { default: () => tn },
1220
+ icons: { default: () => nn },
1231
1221
  items: {},
1232
1222
  groups: { default: () => [] },
1233
1223
  itemValue: { default: "key" },
1234
1224
  itemLabel: { default: "label" },
1235
1225
  size: { default: "medium" },
1236
- texts: { default: () => en }
1226
+ texts: { default: () => tn }
1237
1227
  },
1238
1228
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1239
1229
  setup(t, { emit: n }) {
1240
- const e = t, o = Zt(), l = x(e.modelValue), a = x(!1), s = x(""), d = x(null), i = x(null), h = x(null), S = y(
1230
+ const e = t, o = jt(), a = B(e.modelValue), l = B(!1), s = B(""), d = B(null), i = B(null), p = B(null), S = y(
1241
1231
  () => {
1242
1232
  var c;
1243
- return (c = e.items) == null ? void 0 : c.find((_) => _[e.itemValue] === l.value);
1233
+ return (c = e.items) == null ? void 0 : c.find((_) => _[e.itemValue] === a.value);
1244
1234
  }
1245
- ), p = y(
1235
+ ), m = y(
1246
1236
  () => S.value ? S.value[e.itemLabel] : ""
1247
1237
  ), E = y(
1248
1238
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1249
1239
  );
1250
1240
  function A(c) {
1251
- l.value = c, n("update:modelValue", c), B();
1241
+ a.value = c, n("update:modelValue", c), x();
1252
1242
  }
1253
- function F() {
1243
+ function O() {
1254
1244
  E.value && A(void 0);
1255
1245
  }
1256
- function V() {
1257
- e.readonly || e.disabled || (a.value ? B() : f());
1246
+ function z() {
1247
+ e.readonly || e.disabled || (l.value ? x() : u());
1258
1248
  }
1259
1249
  function M(c) {
1260
- var _, R;
1261
- (R = (_ = d.value) == null ? void 0 : _.fieldRef) != null && R.contains(c.target) || B();
1250
+ var _, R, U;
1251
+ !((_ = p.value) != null && _.contains(c.relatedTarget)) && !((U = (R = d.value) == null ? void 0 : R.fieldRef) != null && U.contains(c.relatedTarget)) && x();
1262
1252
  }
1263
- function f() {
1264
- a.value || (n("before-show"), a.value = !0);
1253
+ function u() {
1254
+ l.value || (n("before-show"), l.value = !0);
1265
1255
  }
1266
- function B() {
1267
- a.value && (n("before-hide"), a.value = !1);
1256
+ function x() {
1257
+ l.value && (n("before-hide"), l.value = !1);
1268
1258
  }
1269
1259
  let v;
1270
1260
  function L(c) {
1271
1261
  if (!(!c.key || e.readonly || e.disabled)) {
1272
- if (window.clearTimeout(v), ["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" && F()), c.key === "Delete" && e.clearable && F(), /^[a-z]$/i.test(c.key)) {
1262
+ if (window.clearTimeout(v), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (l.value = !0), ["Escape", "Tab"].includes(c.key) && (l.value ? l.value = !1 : e.clearable && c.key === "Escape" && O()), c.key === "Delete" && e.clearable && O(), /^[a-z]$/i.test(c.key)) {
1273
1263
  s.value += c.key.toLowerCase();
1274
1264
  for (let _ = 0; _ < e.items.length; _++)
1275
1265
  if (e.items[_][e.itemLabel].toLowerCase().startsWith(s.value)) {
1276
- T(_);
1266
+ H(_);
1277
1267
  break;
1278
1268
  }
1279
1269
  }
@@ -1282,30 +1272,39 @@ const jt = {
1282
1272
  }, 500);
1283
1273
  }
1284
1274
  }
1285
- function ee() {
1275
+ function ne() {
1286
1276
  var c;
1287
- (c = i.value) == null || c.$el.focus(), n("show");
1277
+ e.loading ? (c = p.value) == null || c.focus() : T(), n("show");
1288
1278
  }
1289
- function G() {
1290
- m(), n("hide");
1279
+ function X() {
1280
+ h(), n("hide");
1291
1281
  }
1292
- function m() {
1282
+ function h() {
1293
1283
  var c, _;
1294
1284
  (_ = (c = d.value) == null ? void 0 : c.fieldRef) == null || _.focus();
1295
1285
  }
1296
- function T(c) {
1286
+ function T() {
1287
+ var c;
1288
+ (c = i.value) == null || c.$el.focus();
1289
+ }
1290
+ function H(c) {
1297
1291
  var _;
1298
1292
  (_ = i.value) == null || _.focusItem(c);
1299
1293
  }
1300
1294
  return I(
1301
1295
  () => e.modelValue,
1302
1296
  (c) => {
1303
- l.value = c;
1297
+ a.value = c;
1298
+ }
1299
+ ), I(
1300
+ () => e.loading,
1301
+ (c) => {
1302
+ !c && l.value && se(T);
1304
1303
  }
1305
1304
  ), (c, _) => {
1306
- var R, re, ie;
1307
- return r(), u(O, null, [
1308
- Z(b(Le), {
1305
+ var R, U, ce;
1306
+ return r(), f(F, null, [
1307
+ J(b(Le), {
1309
1308
  id: e.id,
1310
1309
  label: e.label,
1311
1310
  required: e.required,
@@ -1318,61 +1317,64 @@ const jt = {
1318
1317
  {
1319
1318
  "q-select--readonly": e.readonly,
1320
1319
  "q-select--disabled": e.disabled,
1321
- "q-select--expanded": a.value
1320
+ "q-select--expanded": l.value
1322
1321
  },
1323
1322
  ...b(o).class
1324
1323
  ]),
1325
1324
  readonly: e.readonly,
1326
1325
  disabled: e.disabled,
1327
- "aria-expanded": a.value,
1326
+ "aria-expanded": l.value,
1328
1327
  "aria-haspopup": "listbox",
1329
1328
  size: e.size,
1330
- onClick: V,
1331
- onKeydown: U(L, ["stop"])
1329
+ onClick: z,
1330
+ onKeydown: K(L, ["stop"])
1332
1331
  }, Qe({
1333
1332
  append: D(() => [
1334
- E.value && l.value ? (r(), k(b(N), K({ key: 0 }, e.icons.clear, {
1333
+ E.value && a.value ? (r(), k(b(W), G({ key: 0 }, e.icons.clear, {
1335
1334
  class: "q-select__clear",
1336
- onClick: U(F, ["stop", "prevent"])
1335
+ onClick: K(O, ["stop", "prevent"])
1337
1336
  }), null, 16, ["onClick"])) : g("", !0),
1338
- !e.readonly && !e.disabled ? (r(), k(b(N), K({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : g("", !0)
1337
+ !e.readonly && !e.disabled ? (r(), k(b(W), G({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : g("", !0)
1339
1338
  ]),
1340
1339
  default: D(() => [
1341
- l.value ? (r(), u("span", Jt, C(p.value), 1)) : (r(), u("span", Pt, C(c.texts.placeholder), 1))
1340
+ a.value ? (r(), f("span", Jt, C(m.value), 1)) : (r(), f("span", Pt, C(c.texts.placeholder), 1))
1342
1341
  ]),
1343
1342
  _: 2
1344
1343
  }, [
1345
1344
  (R = S.value) != null && R.icon ? {
1346
1345
  name: "prepend",
1347
1346
  fn: D(() => {
1348
- var Y;
1347
+ var Z;
1349
1348
  return [
1350
- Z(b(N), _e(Oe((Y = S.value) == null ? void 0 : Y.icon)), null, 16)
1349
+ J(b(W), ke(Fe((Z = S.value) == null ? void 0 : Z.icon)), null, 16)
1351
1350
  ];
1352
1351
  }),
1353
1352
  key: "0"
1354
1353
  } : void 0
1355
1354
  ]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size", "onKeydown"]),
1356
- (re = d.value) != null && re.fieldRef ? (r(), k(b(se), {
1355
+ (U = d.value) != null && U.fieldRef ? (r(), k(b(de), {
1357
1356
  key: 0,
1358
- "model-value": a.value,
1357
+ "model-value": l.value,
1359
1358
  spy: "",
1360
1359
  trigger: "manual",
1361
1360
  placement: "bottom",
1362
1361
  width: "anchor",
1363
1362
  offset: 2,
1364
- anchor: (ie = d.value) == null ? void 0 : ie.fieldRef,
1365
- onEnter: ee,
1366
- onLeave: G
1363
+ anchor: (ce = d.value) == null ? void 0 : ce.fieldRef,
1364
+ onEnter: ne,
1365
+ onLeave: X
1367
1366
  }, {
1368
1367
  default: D(() => [
1369
- ke((r(), u("div", {
1368
+ V("div", {
1370
1369
  ref_key: "contentRef",
1371
- ref: h,
1372
- class: "q-select__body"
1370
+ ref: p,
1371
+ class: "q-select__body",
1372
+ tabindex: "-1",
1373
+ onFocusout: M,
1374
+ onKeydown: K(L, ["stop"])
1373
1375
  }, [
1374
1376
  q(c.$slots, "body.prepend"),
1375
- e.loading ? (r(), k(b(xe), {
1377
+ e.loading ? (r(), k(b(Be), {
1376
1378
  key: 0,
1377
1379
  class: "q-select__loader",
1378
1380
  size: 24
@@ -1381,32 +1383,29 @@ const jt = {
1381
1383
  ref_key: "listRef",
1382
1384
  ref: i,
1383
1385
  class: "q-select__items",
1384
- modelValue: l.value,
1386
+ modelValue: a.value,
1385
1387
  "onUpdate:modelValue": [
1386
- _[0] || (_[0] = (Y) => l.value = Y),
1388
+ _[0] || (_[0] = (Z) => a.value = Z),
1387
1389
  A
1388
1390
  ],
1389
1391
  items: e.items,
1390
1392
  groups: c.groups,
1391
1393
  "item-label": e.itemLabel,
1392
- "item-value": e.itemValue,
1393
- onKeydown: U(L, ["stop"])
1394
- }, null, 8, ["modelValue", "items", "groups", "item-label", "item-value", "onKeydown"])),
1394
+ "item-value": e.itemValue
1395
+ }, null, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
1395
1396
  q(c.$slots, "body.append")
1396
- ])), [
1397
- [b(jt), M]
1398
- ])
1397
+ ], 40, en)
1399
1398
  ]),
1400
1399
  _: 3
1401
1400
  }, 8, ["model-value", "anchor"])) : g("", !0)
1402
1401
  ], 64);
1403
1402
  };
1404
1403
  }
1405
- }), hn = $(nn), on = ["required", "placeholder", "readonly", "disabled", "maxlength"], ln = /* @__PURE__ */ w({
1404
+ }), yn = $(on), an = ["required", "placeholder", "readonly", "disabled", "maxlength"], ln = /* @__PURE__ */ w({
1406
1405
  __name: "QTextField",
1407
1406
  props: {
1408
1407
  modelValue: { default: "" },
1409
- id: { default: () => P() },
1408
+ id: { default: () => te() },
1410
1409
  placeholder: { default: "" },
1411
1410
  label: { default: "" },
1412
1411
  size: { default: "medium" },
@@ -1417,20 +1416,20 @@ const jt = {
1417
1416
  },
1418
1417
  emits: ["update:modelValue"],
1419
1418
  setup(t, { emit: n }) {
1420
- const e = t, o = x(e.modelValue), l = y({
1419
+ const e = t, o = B(e.modelValue), a = y({
1421
1420
  get() {
1422
1421
  return o.value;
1423
1422
  },
1424
- set(a) {
1425
- o.value = a, n("update:modelValue", a);
1423
+ set(l) {
1424
+ o.value = l, n("update:modelValue", l);
1426
1425
  }
1427
1426
  });
1428
1427
  return I(
1429
1428
  () => e.modelValue,
1430
- (a) => o.value = a
1431
- ), (a, s) => (r(), k(b(Le), {
1429
+ (l) => o.value = l
1430
+ ), (l, s) => (r(), k(b(Le), {
1432
1431
  class: "q-text-field",
1433
- id: a.id,
1432
+ id: l.id,
1434
1433
  label: e.label,
1435
1434
  size: e.size,
1436
1435
  readonly: e.readonly,
@@ -1438,8 +1437,8 @@ const jt = {
1438
1437
  required: e.required
1439
1438
  }, {
1440
1439
  default: D(() => [
1441
- ke(z("input", {
1442
- "onUpdate:modelValue": s[0] || (s[0] = (d) => l.value = d),
1440
+ Oe(V("input", {
1441
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => a.value = d),
1443
1442
  class: "q-text-field__input",
1444
1443
  type: "text",
1445
1444
  required: e.required,
@@ -1447,10 +1446,10 @@ const jt = {
1447
1446
  readonly: e.readonly,
1448
1447
  disabled: e.disabled,
1449
1448
  maxlength: e.maxLength
1450
- }, null, 8, on), [
1449
+ }, null, 8, an), [
1451
1450
  [
1452
- Fe,
1453
- l.value,
1451
+ Re,
1452
+ a.value,
1454
1453
  void 0,
1455
1454
  { lazy: !0 }
1456
1455
  ]
@@ -1459,7 +1458,7 @@ const jt = {
1459
1458
  _: 1
1460
1459
  }, 8, ["id", "label", "size", "readonly", "disabled", "required"]));
1461
1460
  }
1462
- }), yn = $(ln), an = ["innerHTML"], sn = { key: 1 }, rn = /* @__PURE__ */ w({
1461
+ }), vn = $(ln), sn = ["innerHTML"], rn = { key: 1 }, dn = /* @__PURE__ */ w({
1463
1462
  inheritAttrs: !1,
1464
1463
  __name: "QTooltip",
1465
1464
  props: {
@@ -1477,7 +1476,7 @@ const jt = {
1477
1476
  },
1478
1477
  setup(t) {
1479
1478
  const n = t;
1480
- return (e, o) => (r(), k(b(se), {
1479
+ return (e, o) => (r(), k(b(de), {
1481
1480
  "model-value": n.modelValue,
1482
1481
  anchor: n.anchor,
1483
1482
  appearance: n.appearance,
@@ -1490,38 +1489,48 @@ const jt = {
1490
1489
  trigger: n.trigger
1491
1490
  }, {
1492
1491
  default: D(() => [
1493
- n.html ? (r(), u("span", {
1492
+ n.html ? (r(), f("span", {
1494
1493
  key: 0,
1495
1494
  innerHTML: n.text
1496
- }, null, 8, an)) : (r(), u("span", sn, C(n.text), 1))
1495
+ }, null, 8, sn)) : (r(), f("span", rn, C(n.text), 1))
1497
1496
  ]),
1498
1497
  _: 1
1499
1498
  }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
1500
1499
  }
1501
- }), vn = $(rn);
1500
+ }), bn = $(dn), gn = {
1501
+ mounted(t, n) {
1502
+ t.clickOutsideEvent = function(e) {
1503
+ const o = e.target;
1504
+ n.arg ? t === o || t.contains(o) || o.closest(n.arg) || n.value(e, t) : t === o || t.contains(o) || n.value(e, t);
1505
+ }, document.addEventListener("click", t.clickOutsideEvent);
1506
+ },
1507
+ unmounted(t) {
1508
+ document.removeEventListener("click", t.clickOutsideEvent);
1509
+ }
1510
+ };
1502
1511
  export {
1503
- nt as QButton,
1512
+ ot as QButton,
1504
1513
  lt as QButtonGroup,
1505
- fn as QButtonToggle,
1514
+ pn as QButtonToggle,
1506
1515
  Le as QField,
1507
- N as QIcon,
1508
- wt as QIconFont,
1509
- $t as QIconImg,
1510
- St as QIconSvg,
1511
- pn as QLineLoader,
1516
+ W as QIcon,
1517
+ $t as QIconFont,
1518
+ St as QIconImg,
1519
+ qt as QIconSvg,
1520
+ mn as QLineLoader,
1512
1521
  Ot as QList,
1513
- Ft as QListItem,
1514
- Rt as QListItemGroup,
1515
- se as QOverlay,
1516
- mn as QPopover,
1517
- hn as QSelect,
1518
- xe as QSpinnerLoader,
1519
- yn as QTextField,
1520
- vn as QTooltip,
1521
- jt as clickOutside,
1522
- un as createFramework,
1523
- He as defaultDarkColorScheme,
1524
- fe as defaultLightColorScheme,
1525
- cn as useTheme
1522
+ Rt as QListItem,
1523
+ Mt as QListItemGroup,
1524
+ de as QOverlay,
1525
+ hn as QPopover,
1526
+ yn as QSelect,
1527
+ Be as QSpinnerLoader,
1528
+ vn as QTextField,
1529
+ bn as QTooltip,
1530
+ gn as clickOutside,
1531
+ fn as createFramework,
1532
+ Ue as defaultDarkColorScheme,
1533
+ pe as defaultLightColorScheme,
1534
+ un as useTheme
1526
1535
  };
1527
1536
  //# sourceMappingURL=ui.esm.js.map