@quidgest/ui 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.esm.js CHANGED
@@ -1,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 v, 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,45 +10,45 @@ 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;
31
31
  if (!n)
32
32
  throw new Error("[Quidgest UI] Could not determine component name");
33
33
  const e = $e();
34
- return y(() => {
34
+ return v(() => {
35
35
  var o;
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 = v(() => 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,50 +279,50 @@ 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 }
288
288
  },
289
289
  setup(t) {
290
- const n = t, e = y(() => ({
290
+ const n = t, e = v(() => ({
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 },
@@ -338,12 +338,12 @@ const xe = $(Ze), Je = ["disabled", "onClick"], Pe = {
338
338
  },
339
339
  emits: ["click"],
340
340
  setup(t, { emit: n }) {
341
- const e = t, o = y(() => e.disabled || e.loading);
342
- function l(s) {
341
+ const e = t, o = v(() => e.disabled || e.loading);
342
+ function a(s) {
343
343
  o.value || n("click", s);
344
344
  }
345
- const a = y(() => {
346
- const s = y(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), d = y(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
345
+ const l = v(() => {
346
+ const s = v(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), d = v(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
347
347
  return [
348
348
  "q-btn",
349
349
  s.value,
@@ -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,27 +387,27 @@ 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
  });
398
- const e = y(() => [
398
+ const e = v(() => [
399
399
  "q-btn-group",
400
400
  {
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 = v({
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 = v(() => 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: {},
@@ -527,25 +527,25 @@ const rt = ["for", "data-val-required"], it = ["id"], dt = { class: "q-field__co
527
527
  size: { default: void 0 }
528
528
  },
529
529
  setup(t) {
530
- const n = t, e = y(() => {
530
+ const n = t, e = v(() => {
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
+ }), vt = /* @__PURE__ */ w({
549
549
  __name: "QIconFont",
550
550
  props: {
551
551
  icon: {},
@@ -554,33 +554,33 @@ 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 = v(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = v(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), a = v(() => ({
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
+ }), yt = ["src"], bt = /* @__PURE__ */ w({
567
567
  __name: "QIconImg",
568
568
  props: {
569
569
  icon: {},
570
570
  size: {}
571
571
  },
572
572
  setup(t) {
573
- const n = t, e = y(() => ({
573
+ const n = t, e = v(() => ({
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)
580
+ style: Y(e.value)
581
581
  }, null, 12, yt)) : 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: {},
@@ -702,29 +702,29 @@ const kt = /* @__PURE__ */ w({
702
702
  },
703
703
  emits: ["loaded", "unloaded"],
704
704
  setup(t, { emit: n }) {
705
- const e = t, o = y(() => ({
705
+ const e = t, o = v(() => ({
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 = $(vt), 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 = v(() => s.value.length > 1 ? "div" : "ul"), s = v(() => 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) {
778
- var v;
779
- (v = A().at(f)) == null || v.focus();
777
+ function E(u) {
778
+ var y;
779
+ (y = A().at(u)) == null || y.focus();
780
780
  }
781
781
  function A() {
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) : [];
782
+ var y;
783
+ const u = (y = d.value) == null ? void 0 : y.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(), y = O(x);
791
+ return u === "next" ? y === x.length - 1 ? y : y + 1 : y === 0 ? 0 : y - 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), {
812
- key: v.id,
813
- title: v.title,
814
- disabled: v.disabled
811
+ (r(!0), f(F, null, le(s.value, (y) => (r(), k(b(Mt), {
812
+ key: y.id,
813
+ title: y.title,
814
+ disabled: y.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(y.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,103 @@ 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", {
889
- key: 1,
887
+ const n = t, e = te();
888
+ return (o, a) => (r(), f("ul", {
890
889
  class: "q-list-item-group",
891
890
  role: "group",
892
- "aria-labelledby": b(e)
891
+ "aria-labelledby": n.title ? b(e) : void 0
893
892
  }, [
894
- n.title ? (r(), u("li", {
893
+ n.title ? (r(), f("li", {
895
894
  key: 0,
896
895
  id: b(e),
897
896
  class: "q-list-item-group__title",
898
897
  role: "presentation"
899
- }, C(n.title), 9, At)) : g("", !0),
898
+ }, C(n.title), 9, Qt)) : g("", !0),
900
899
  q(o.$slots, "default")
901
- ], 8, zt)) : q(o.$slots, "default", { key: 0 });
900
+ ], 8, At));
902
901
  }
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;
902
+ }), Ot = $(Et), Rt = $(zt), Mt = $(Ft);
903
+ function Ht(t, n, e = "right", o) {
904
+ 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
905
  let S = e;
907
- d && !Te(l, d, S) && (S = Ht(l, d, S));
908
- const p = { x: 0, y: 0, placement: S };
906
+ d && !Te(a, d, S) && (S = Ut(a, d, S));
907
+ const m = { x: 0, y: 0, placement: S };
909
908
  switch (S) {
910
909
  case "top":
911
- o === "anchor" ? p.x = a : p.x = a + (l.width - i) / 2, p.y = s - h;
910
+ o === "anchor" ? m.x = l : m.x = l + (a.width - i) / 2, m.y = s - p;
912
911
  break;
913
912
  case "bottom":
914
- o === "anchor" ? p.x = a : p.x = a + (l.width - i) / 2, p.y = s + l.height;
913
+ o === "anchor" ? m.x = l : m.x = l + (a.width - i) / 2, m.y = s + a.height;
915
914
  break;
916
915
  case "left":
917
- p.x = a - i, p.y = s + l.height / 2 - h / 2;
916
+ m.x = l - i, m.y = s + a.height / 2 - p / 2;
918
917
  break;
919
918
  case "right":
920
- p.x = a + l.width, p.y = s + l.height / 2 - h / 2;
919
+ m.x = l + a.width, m.y = s + a.height / 2 - p / 2;
921
920
  break;
922
921
  }
923
- return o === "anchor" && l.width >= i && (p.width = l.width), p;
922
+ return o === "anchor" && a.width >= i && (m.width = a.width), m;
924
923
  }
925
924
  function Te(t, n, e) {
926
- let o = !1, l = !1;
925
+ let o = !1, a = !1;
927
926
  switch (e) {
928
927
  case "top":
929
- o = ye(t, n), l = t.top > n.height;
928
+ o = ye(t, n), a = t.top > n.height;
930
929
  break;
931
930
  case "bottom":
932
- o = ye(t, n), l = window.innerHeight - t.top - t.height > n.height;
931
+ o = ye(t, n), a = window.innerHeight - t.top - t.height > n.height;
933
932
  break;
934
933
  case "left":
935
- o = t.left > n.width, l = he(t, n);
934
+ o = t.left > n.width, a = ve(t, n);
936
935
  break;
937
936
  case "right":
938
- o = window.innerWidth - t.left - t.width > n.width, l = he(t, n);
937
+ o = window.innerWidth - t.left - t.width > n.width, a = ve(t, n);
939
938
  break;
940
939
  }
941
- return o && l;
940
+ return o && a;
942
941
  }
943
- function he(t, n) {
942
+ function ve(t, n) {
944
943
  return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
945
944
  }
946
945
  function ye(t, n) {
947
946
  return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
948
947
  }
949
- function Ht(t, n, e) {
948
+ function Ut(t, n, e) {
950
949
  const o = {
951
950
  top: ["bottom", "left", "right"],
952
951
  bottom: ["top", "left", "right"],
953
952
  left: ["right", "top", "bottom"],
954
953
  right: ["left", "top", "bottom"]
955
954
  };
956
- for (const l of o[e])
957
- if (Te(t, n, l))
958
- return l;
955
+ for (const a of o[e])
956
+ if (Te(t, n, a))
957
+ return a;
959
958
  return e;
960
959
  }
961
- function X(t) {
960
+ function j(t) {
962
961
  return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
963
962
  }
964
- const Ut = {
963
+ const Nt = {
965
964
  key: 0,
966
965
  class: "q-overlay__arrow"
967
- }, Nt = /* @__PURE__ */ w({
966
+ }, Kt = /* @__PURE__ */ w({
968
967
  inheritAttrs: !1,
969
968
  __name: "QOverlay",
970
969
  props: {
@@ -985,29 +984,29 @@ const Ut = {
985
984
  },
986
985
  emits: ["enter", "leave"],
987
986
  setup(t, { emit: n }) {
988
- const e = t, o = y(() => [
987
+ const e = t, o = v(() => [
989
988
  "q-overlay",
990
- `q-overlay--${l.placement}`,
989
+ `q-overlay--${a.placement}`,
991
990
  { "q-overlay--inverted": e.appearance === "inverted" },
992
991
  ...e.contentClasses
993
- ]), l = Ee({
992
+ ]), a = Ee({
994
993
  visible: e.modelValue,
995
994
  animating: !1,
996
995
  top: 0,
997
996
  left: 0,
998
997
  width: 0,
999
998
  placement: e.placement
1000
- }), a = y(() => l.visible && !e.disabled);
999
+ }), l = v(() => a.visible && !e.disabled);
1001
1000
  I(
1002
1001
  () => e.modelValue,
1003
- () => l.visible = e.modelValue
1002
+ () => a.visible = e.modelValue
1004
1003
  ), I(
1005
- () => l.visible,
1006
- () => l.animating = !0
1004
+ () => a.visible,
1005
+ () => a.animating = !0
1007
1006
  );
1008
- const s = y(() => {
1009
- let m = 0, T = 0;
1010
- switch (l.placement) {
1007
+ const s = v(() => {
1008
+ let h = 0, T = 0;
1009
+ switch (a.placement) {
1011
1010
  case "top":
1012
1011
  T = -(e.offset || 0);
1013
1012
  break;
@@ -1015,60 +1014,60 @@ const Ut = {
1015
1014
  T = e.offset || 0;
1016
1015
  break;
1017
1016
  case "left":
1018
- m = -(e.offset || 0);
1017
+ h = -(e.offset || 0);
1019
1018
  break;
1020
1019
  case "right":
1021
- m = e.offset || 0;
1020
+ h = e.offset || 0;
1022
1021
  break;
1023
1022
  }
1024
- const c = {
1025
- top: `${l.top + T}px`,
1026
- left: `${l.left + m}px`
1023
+ const H = {
1024
+ top: `${a.top + T}px`,
1025
+ left: `${a.left + h}px`
1027
1026
  };
1028
- return l.width !== void 0 && ["top", "bottom"].includes(l.placement) && (c.width = `${l.width}px`), c;
1029
- }), d = x(null);
1027
+ return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (H.width = `${a.width}px`), H;
1028
+ }), d = B(null);
1030
1029
  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;
1030
+ const h = j(e.anchor);
1031
+ if (h) {
1032
+ const T = Ht(h, d.value, e.placement, e.width);
1033
+ a.left = T.x, a.top = T.y, a.width = T.width, a.placement = T.placement;
1035
1034
  }
1036
1035
  }
1037
- I([() => a.value, () => e.placement], i);
1038
- let h;
1036
+ I([() => l.value, () => e.placement], i);
1037
+ let p;
1039
1038
  function S() {
1040
- const m = e.trigger === "hover" ? e.delay : 0;
1041
- h || (h = window.setTimeout(() => l.visible = !0, m));
1039
+ const h = e.trigger === "hover" ? e.delay : 0;
1040
+ p || (p = window.setTimeout(() => a.visible = !0, h));
1042
1041
  }
1043
- function p() {
1044
- clearTimeout(h), h = void 0, l.visible = !1;
1042
+ function m() {
1043
+ clearTimeout(p), p = void 0, a.visible = !1;
1045
1044
  }
1046
1045
  function E() {
1047
- a.value ? p() : S();
1046
+ l.value ? m() : S();
1048
1047
  }
1049
1048
  let A;
1050
- function F() {
1051
- window.clearTimeout(A), A = window.setTimeout(() => l.animating = !1, 200), n("leave");
1049
+ function O() {
1050
+ window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), n("leave");
1052
1051
  }
1053
- let V;
1052
+ let z;
1054
1053
  function M() {
1055
- ce(() => {
1056
- const m = X(e.anchor);
1057
- if (m)
1054
+ se(() => {
1055
+ const h = j(e.anchor);
1056
+ if (h)
1058
1057
  switch (e.trigger) {
1059
1058
  case "click":
1060
- m.addEventListener("click", E);
1059
+ h.addEventListener("click", E);
1061
1060
  break;
1062
1061
  case "hover":
1063
- m.addEventListener("mouseenter", S), m.addEventListener("mouseleave", p);
1062
+ h.addEventListener("mouseenter", S), h.addEventListener("mouseleave", m);
1064
1063
  break;
1065
1064
  }
1066
1065
  });
1067
1066
  }
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, {
1067
+ function u() {
1068
+ se(() => {
1069
+ const h = j(e.anchor);
1070
+ h && (window.addEventListener("scroll", i), window.addEventListener("resize", i), z = new MutationObserver(i), z.observe(h, {
1072
1071
  attributes: !1,
1073
1072
  childList: !0,
1074
1073
  characterData: !0,
@@ -1076,57 +1075,57 @@ const Ut = {
1076
1075
  }), i());
1077
1076
  });
1078
1077
  }
1079
- function B() {
1080
- window.removeEventListener("scroll", i), window.removeEventListener("resize", i), V == null || V.disconnect();
1078
+ function x() {
1079
+ window.removeEventListener("scroll", i), window.removeEventListener("resize", i), z == null || z.disconnect();
1081
1080
  }
1082
- let v;
1081
+ let y;
1083
1082
  function L() {
1084
- X(e.anchor) ? (i(), v = window.setTimeout(L, 100)) : p();
1083
+ j(e.anchor) ? (i(), y = window.setTimeout(L, 100)) : m();
1085
1084
  }
1086
- function ee() {
1087
- f(), e.spy && L();
1085
+ function ne() {
1086
+ u(), e.spy && L();
1088
1087
  }
1089
- function G() {
1090
- B(), e.spy && (clearTimeout(v), v = void 0);
1088
+ function X() {
1089
+ x(), e.spy && (clearTimeout(y), y = void 0);
1091
1090
  }
1092
- return Ie(G), Ce(i), I(
1091
+ return Ie(X), Ve(i), I(
1093
1092
  () => e.disabled,
1094
- (m) => {
1095
- m || M();
1093
+ (h) => {
1094
+ h || M();
1096
1095
  },
1097
1096
  { immediate: !0 }
1098
1097
  ), I(
1099
- () => a.value,
1100
- (m) => {
1101
- m ? ee() : G();
1098
+ () => l.value,
1099
+ (h) => {
1100
+ h ? ne() : X();
1102
1101
  },
1103
1102
  { 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, {
1103
+ ), (h, T) => (r(), f(F, null, [
1104
+ q(h.$slots, "trigger", { open: l.value }),
1105
+ l.value || a.animating ? (r(), k(Ce, {
1107
1106
  key: 0,
1108
1107
  disabled: !e.attach,
1109
1108
  to: e.attach
1110
1109
  }, [
1111
- Z(ze, {
1110
+ J(ze, {
1112
1111
  name: e.transition,
1113
1112
  appear: "",
1114
- onEnter: T[0] || (T[0] = (c) => n("enter")),
1115
- onLeave: F
1113
+ onEnter: T[0] || (T[0] = (H) => n("enter")),
1114
+ onLeave: O
1116
1115
  }, {
1117
1116
  default: D(() => [
1118
- a.value ? (r(), u("div", {
1117
+ l.value ? (r(), f("div", {
1119
1118
  key: 0,
1120
1119
  class: Q(o.value),
1121
- style: W(s.value)
1120
+ style: Y(s.value)
1122
1121
  }, [
1123
- z("div", {
1122
+ V("div", {
1124
1123
  class: Q(["q-overlay__content"]),
1125
1124
  ref_key: "overlay",
1126
1125
  ref: d
1127
1126
  }, [
1128
- e.arrow ? (r(), u("div", Ut)) : g("", !0),
1129
- q(m.$slots, "default")
1127
+ e.arrow ? (r(), f("div", Nt)) : g("", !0),
1128
+ q(h.$slots, "default")
1130
1129
  ], 512)
1131
1130
  ], 6)) : g("", !0)
1132
1131
  ]),
@@ -1135,13 +1134,13 @@ const Ut = {
1135
1134
  ], 8, ["disabled", "to"])) : g("", !0)
1136
1135
  ], 64));
1137
1136
  }
1138
- }), se = $(Nt), Kt = {
1137
+ }), de = $(Kt), Wt = {
1139
1138
  key: 0,
1140
1139
  class: "q-popover__header"
1141
- }, Wt = {
1140
+ }, Gt = {
1142
1141
  key: 1,
1143
1142
  class: "q-popover__body"
1144
- }, Gt = ["innerHTML"], Yt = { key: 1 }, Xt = /* @__PURE__ */ w({
1143
+ }, Yt = ["innerHTML"], Xt = { key: 1 }, Zt = /* @__PURE__ */ w({
1145
1144
  inheritAttrs: !1,
1146
1145
  __name: "QPopover",
1147
1146
  props: {
@@ -1158,7 +1157,7 @@ const Ut = {
1158
1157
  },
1159
1158
  setup(t) {
1160
1159
  const n = t;
1161
- return (e, o) => (r(), k(b(se), {
1160
+ return (e, o) => (r(), k(b(de), {
1162
1161
  "model-value": n.modelValue,
1163
1162
  trigger: "click",
1164
1163
  anchor: n.anchor,
@@ -1170,142 +1169,141 @@ const Ut = {
1170
1169
  spy: n.spy
1171
1170
  }, {
1172
1171
  default: D(() => [
1173
- n.title || e.$slots.header ? (r(), u("h3", Kt, [
1174
- j(C(n.title) + " ", 1),
1172
+ n.title || e.$slots.header ? (r(), f("h3", Wt, [
1173
+ P(C(n.title) + " ", 1),
1175
1174
  q(e.$slots, "header")
1176
1175
  ])) : g("", !0),
1177
- n.text || e.$slots.body ? (r(), u("div", Wt, [
1178
- n.html ? (r(), u("span", {
1176
+ n.text || e.$slots.body ? (r(), f("div", Gt, [
1177
+ n.html ? (r(), f("span", {
1179
1178
  key: 0,
1180
1179
  innerHTML: n.text
1181
- }, null, 8, Gt)) : (r(), u("span", Yt, C(n.text), 1)),
1180
+ }, null, 8, Yt)) : (r(), f("span", Xt, C(n.text), 1)),
1182
1181
  q(e.$slots, "body")
1183
1182
  ])) : g("", !0)
1184
1183
  ]),
1185
1184
  _: 3
1186
1185
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
1187
1186
  }
1188
- }), mn = $(Xt);
1189
- function Zt() {
1187
+ }), hn = $(Zt);
1188
+ function jt() {
1190
1189
  const t = Ae(), n = {};
1191
1190
  return typeof t.class == "string" ? n.class = t.class.split(" ") : Array.isArray(t.class) ? n.class = t.class : n.class = [], n;
1192
1191
  }
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 = {
1192
+ const Jt = {
1204
1193
  key: 0,
1205
1194
  class: "q-select__value"
1206
1195
  }, Pt = {
1207
1196
  key: 1,
1208
1197
  class: "q-select__placeholder"
1209
- }, en = {
1198
+ }, en = ["onKeydown"], tn = {
1210
1199
  placeholder: "Choose..."
1211
- }, tn = {
1200
+ }, nn = {
1212
1201
  chevron: {
1213
1202
  icon: "chevron-down"
1214
1203
  },
1215
1204
  clear: {
1216
1205
  icon: "close"
1217
1206
  }
1218
- }, nn = /* @__PURE__ */ w({
1207
+ }, on = /* @__PURE__ */ w({
1219
1208
  inheritAttrs: !1,
1220
1209
  __name: "QSelect",
1221
1210
  props: {
1222
1211
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1223
- id: { default: () => P() },
1212
+ id: { default: () => te() },
1224
1213
  label: { default: "" },
1225
1214
  clearable: { type: Boolean, default: !1 },
1226
1215
  readonly: { type: Boolean },
1227
1216
  disabled: { type: Boolean, default: !1 },
1228
1217
  required: { type: Boolean, default: !1 },
1229
1218
  loading: { type: Boolean, default: !1 },
1230
- icons: { default: () => tn },
1219
+ icons: { default: () => nn },
1231
1220
  items: {},
1232
1221
  groups: { default: () => [] },
1233
1222
  itemValue: { default: "key" },
1234
1223
  itemLabel: { default: "label" },
1235
1224
  size: { default: "medium" },
1236
- texts: { default: () => en }
1225
+ texts: { default: () => tn }
1237
1226
  },
1238
1227
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1239
1228
  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(
1229
+ const e = t, o = jt(), a = B(e.modelValue), l = B(!1), s = B(""), d = B(null), i = B(null), p = B(null), S = v(
1241
1230
  () => {
1242
1231
  var c;
1243
- return (c = e.items) == null ? void 0 : c.find((_) => _[e.itemValue] === l.value);
1232
+ return (c = e.items) == null ? void 0 : c.find((_) => _[e.itemValue] === a.value);
1244
1233
  }
1245
- ), p = y(
1234
+ ), m = v(
1246
1235
  () => S.value ? S.value[e.itemLabel] : ""
1247
- ), E = y(
1236
+ ), E = v(
1248
1237
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1249
1238
  );
1250
1239
  function A(c) {
1251
- l.value = c, n("update:modelValue", c), B();
1240
+ a.value = c, n("update:modelValue", c), x();
1252
1241
  }
1253
- function F() {
1242
+ function O() {
1254
1243
  E.value && A(void 0);
1255
1244
  }
1256
- function V() {
1257
- e.readonly || e.disabled || (a.value ? B() : f());
1245
+ function z() {
1246
+ e.readonly || e.disabled || (l.value ? x() : u());
1258
1247
  }
1259
1248
  function M(c) {
1260
- var _, R;
1261
- (R = (_ = d.value) == null ? void 0 : _.fieldRef) != null && R.contains(c.target) || B();
1249
+ var _, R, U;
1250
+ !((_ = p.value) != null && _.contains(c.relatedTarget)) && !((U = (R = d.value) == null ? void 0 : R.fieldRef) != null && U.contains(c.relatedTarget)) && x();
1262
1251
  }
1263
- function f() {
1264
- a.value || (n("before-show"), a.value = !0);
1252
+ function u() {
1253
+ l.value || (n("before-show"), l.value = !0);
1265
1254
  }
1266
- function B() {
1267
- a.value && (n("before-hide"), a.value = !1);
1255
+ function x() {
1256
+ l.value && (n("before-hide"), l.value = !1);
1268
1257
  }
1269
- let v;
1258
+ let y;
1270
1259
  function L(c) {
1271
1260
  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)) {
1261
+ if (window.clearTimeout(y), ["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
1262
  s.value += c.key.toLowerCase();
1274
1263
  for (let _ = 0; _ < e.items.length; _++)
1275
1264
  if (e.items[_][e.itemLabel].toLowerCase().startsWith(s.value)) {
1276
- T(_);
1265
+ H(_);
1277
1266
  break;
1278
1267
  }
1279
1268
  }
1280
- v = window.setTimeout(function() {
1269
+ y = window.setTimeout(function() {
1281
1270
  s.value = "";
1282
1271
  }, 500);
1283
1272
  }
1284
1273
  }
1285
- function ee() {
1274
+ function ne() {
1286
1275
  var c;
1287
- (c = i.value) == null || c.$el.focus(), n("show");
1276
+ e.loading ? (c = p.value) == null || c.focus() : T(), n("show");
1288
1277
  }
1289
- function G() {
1290
- m(), n("hide");
1278
+ function X() {
1279
+ h(), n("hide");
1291
1280
  }
1292
- function m() {
1281
+ function h() {
1293
1282
  var c, _;
1294
1283
  (_ = (c = d.value) == null ? void 0 : c.fieldRef) == null || _.focus();
1295
1284
  }
1296
- function T(c) {
1285
+ function T() {
1286
+ var c;
1287
+ (c = i.value) == null || c.$el.focus();
1288
+ }
1289
+ function H(c) {
1297
1290
  var _;
1298
1291
  (_ = i.value) == null || _.focusItem(c);
1299
1292
  }
1300
1293
  return I(
1301
1294
  () => e.modelValue,
1302
1295
  (c) => {
1303
- l.value = c;
1296
+ a.value = c;
1297
+ }
1298
+ ), I(
1299
+ () => e.loading,
1300
+ (c) => {
1301
+ !c && l.value && se(T);
1304
1302
  }
1305
1303
  ), (c, _) => {
1306
- var R, re, ie;
1307
- return r(), u(O, null, [
1308
- Z(b(Le), {
1304
+ var R, U, ce;
1305
+ return r(), f(F, null, [
1306
+ J(b(Le), {
1309
1307
  id: e.id,
1310
1308
  label: e.label,
1311
1309
  required: e.required,
@@ -1318,61 +1316,64 @@ const jt = {
1318
1316
  {
1319
1317
  "q-select--readonly": e.readonly,
1320
1318
  "q-select--disabled": e.disabled,
1321
- "q-select--expanded": a.value
1319
+ "q-select--expanded": l.value
1322
1320
  },
1323
1321
  ...b(o).class
1324
1322
  ]),
1325
1323
  readonly: e.readonly,
1326
1324
  disabled: e.disabled,
1327
- "aria-expanded": a.value,
1325
+ "aria-expanded": l.value,
1328
1326
  "aria-haspopup": "listbox",
1329
1327
  size: e.size,
1330
- onClick: V,
1331
- onKeydown: U(L, ["stop"])
1328
+ onClick: z,
1329
+ onKeydown: K(L, ["stop"])
1332
1330
  }, Qe({
1333
1331
  append: D(() => [
1334
- E.value && l.value ? (r(), k(b(N), K({ key: 0 }, e.icons.clear, {
1332
+ E.value && a.value ? (r(), k(b(W), G({ key: 0 }, e.icons.clear, {
1335
1333
  class: "q-select__clear",
1336
- onClick: U(F, ["stop", "prevent"])
1334
+ onClick: K(O, ["stop", "prevent"])
1337
1335
  }), 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)
1336
+ !e.readonly && !e.disabled ? (r(), k(b(W), G({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : g("", !0)
1339
1337
  ]),
1340
1338
  default: D(() => [
1341
- l.value ? (r(), u("span", Jt, C(p.value), 1)) : (r(), u("span", Pt, C(c.texts.placeholder), 1))
1339
+ a.value ? (r(), f("span", Jt, C(m.value), 1)) : (r(), f("span", Pt, C(c.texts.placeholder), 1))
1342
1340
  ]),
1343
1341
  _: 2
1344
1342
  }, [
1345
1343
  (R = S.value) != null && R.icon ? {
1346
1344
  name: "prepend",
1347
1345
  fn: D(() => {
1348
- var Y;
1346
+ var Z;
1349
1347
  return [
1350
- Z(b(N), _e(Oe((Y = S.value) == null ? void 0 : Y.icon)), null, 16)
1348
+ J(b(W), ke(Fe((Z = S.value) == null ? void 0 : Z.icon)), null, 16)
1351
1349
  ];
1352
1350
  }),
1353
1351
  key: "0"
1354
1352
  } : void 0
1355
1353
  ]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size", "onKeydown"]),
1356
- (re = d.value) != null && re.fieldRef ? (r(), k(b(se), {
1354
+ (U = d.value) != null && U.fieldRef ? (r(), k(b(de), {
1357
1355
  key: 0,
1358
- "model-value": a.value,
1356
+ "model-value": l.value,
1359
1357
  spy: "",
1360
1358
  trigger: "manual",
1361
1359
  placement: "bottom",
1362
1360
  width: "anchor",
1363
1361
  offset: 2,
1364
- anchor: (ie = d.value) == null ? void 0 : ie.fieldRef,
1365
- onEnter: ee,
1366
- onLeave: G
1362
+ anchor: (ce = d.value) == null ? void 0 : ce.fieldRef,
1363
+ onEnter: ne,
1364
+ onLeave: X
1367
1365
  }, {
1368
1366
  default: D(() => [
1369
- ke((r(), u("div", {
1367
+ V("div", {
1370
1368
  ref_key: "contentRef",
1371
- ref: h,
1372
- class: "q-select__body"
1369
+ ref: p,
1370
+ class: "q-select__body",
1371
+ tabindex: "-1",
1372
+ onFocusout: M,
1373
+ onKeydown: K(L, ["stop"])
1373
1374
  }, [
1374
1375
  q(c.$slots, "body.prepend"),
1375
- e.loading ? (r(), k(b(xe), {
1376
+ e.loading ? (r(), k(b(Be), {
1376
1377
  key: 0,
1377
1378
  class: "q-select__loader",
1378
1379
  size: 24
@@ -1381,32 +1382,29 @@ const jt = {
1381
1382
  ref_key: "listRef",
1382
1383
  ref: i,
1383
1384
  class: "q-select__items",
1384
- modelValue: l.value,
1385
+ modelValue: a.value,
1385
1386
  "onUpdate:modelValue": [
1386
- _[0] || (_[0] = (Y) => l.value = Y),
1387
+ _[0] || (_[0] = (Z) => a.value = Z),
1387
1388
  A
1388
1389
  ],
1389
1390
  items: e.items,
1390
1391
  groups: c.groups,
1391
1392
  "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"])),
1393
+ "item-value": e.itemValue
1394
+ }, null, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
1395
1395
  q(c.$slots, "body.append")
1396
- ])), [
1397
- [b(jt), M]
1398
- ])
1396
+ ], 40, en)
1399
1397
  ]),
1400
1398
  _: 3
1401
1399
  }, 8, ["model-value", "anchor"])) : g("", !0)
1402
1400
  ], 64);
1403
1401
  };
1404
1402
  }
1405
- }), hn = $(nn), on = ["required", "placeholder", "readonly", "disabled", "maxlength"], ln = /* @__PURE__ */ w({
1403
+ }), vn = $(on), an = ["required", "placeholder", "readonly", "disabled", "maxlength"], ln = /* @__PURE__ */ w({
1406
1404
  __name: "QTextField",
1407
1405
  props: {
1408
1406
  modelValue: { default: "" },
1409
- id: { default: () => P() },
1407
+ id: { default: () => te() },
1410
1408
  placeholder: { default: "" },
1411
1409
  label: { default: "" },
1412
1410
  size: { default: "medium" },
@@ -1417,20 +1415,20 @@ const jt = {
1417
1415
  },
1418
1416
  emits: ["update:modelValue"],
1419
1417
  setup(t, { emit: n }) {
1420
- const e = t, o = x(e.modelValue), l = y({
1418
+ const e = t, o = B(e.modelValue), a = v({
1421
1419
  get() {
1422
1420
  return o.value;
1423
1421
  },
1424
- set(a) {
1425
- o.value = a, n("update:modelValue", a);
1422
+ set(l) {
1423
+ o.value = l, n("update:modelValue", l);
1426
1424
  }
1427
1425
  });
1428
1426
  return I(
1429
1427
  () => e.modelValue,
1430
- (a) => o.value = a
1431
- ), (a, s) => (r(), k(b(Le), {
1428
+ (l) => o.value = l
1429
+ ), (l, s) => (r(), k(b(Le), {
1432
1430
  class: "q-text-field",
1433
- id: a.id,
1431
+ id: l.id,
1434
1432
  label: e.label,
1435
1433
  size: e.size,
1436
1434
  readonly: e.readonly,
@@ -1438,8 +1436,8 @@ const jt = {
1438
1436
  required: e.required
1439
1437
  }, {
1440
1438
  default: D(() => [
1441
- ke(z("input", {
1442
- "onUpdate:modelValue": s[0] || (s[0] = (d) => l.value = d),
1439
+ Oe(V("input", {
1440
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => a.value = d),
1443
1441
  class: "q-text-field__input",
1444
1442
  type: "text",
1445
1443
  required: e.required,
@@ -1447,10 +1445,10 @@ const jt = {
1447
1445
  readonly: e.readonly,
1448
1446
  disabled: e.disabled,
1449
1447
  maxlength: e.maxLength
1450
- }, null, 8, on), [
1448
+ }, null, 8, an), [
1451
1449
  [
1452
- Fe,
1453
- l.value,
1450
+ Re,
1451
+ a.value,
1454
1452
  void 0,
1455
1453
  { lazy: !0 }
1456
1454
  ]
@@ -1459,7 +1457,7 @@ const jt = {
1459
1457
  _: 1
1460
1458
  }, 8, ["id", "label", "size", "readonly", "disabled", "required"]));
1461
1459
  }
1462
- }), yn = $(ln), an = ["innerHTML"], sn = { key: 1 }, rn = /* @__PURE__ */ w({
1460
+ }), yn = $(ln), sn = ["innerHTML"], rn = { key: 1 }, dn = /* @__PURE__ */ w({
1463
1461
  inheritAttrs: !1,
1464
1462
  __name: "QTooltip",
1465
1463
  props: {
@@ -1477,7 +1475,7 @@ const jt = {
1477
1475
  },
1478
1476
  setup(t) {
1479
1477
  const n = t;
1480
- return (e, o) => (r(), k(b(se), {
1478
+ return (e, o) => (r(), k(b(de), {
1481
1479
  "model-value": n.modelValue,
1482
1480
  anchor: n.anchor,
1483
1481
  appearance: n.appearance,
@@ -1490,38 +1488,48 @@ const jt = {
1490
1488
  trigger: n.trigger
1491
1489
  }, {
1492
1490
  default: D(() => [
1493
- n.html ? (r(), u("span", {
1491
+ n.html ? (r(), f("span", {
1494
1492
  key: 0,
1495
1493
  innerHTML: n.text
1496
- }, null, 8, an)) : (r(), u("span", sn, C(n.text), 1))
1494
+ }, null, 8, sn)) : (r(), f("span", rn, C(n.text), 1))
1497
1495
  ]),
1498
1496
  _: 1
1499
1497
  }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
1500
1498
  }
1501
- }), vn = $(rn);
1499
+ }), bn = $(dn), gn = {
1500
+ mounted(t, n) {
1501
+ t.clickOutsideEvent = function(e) {
1502
+ const o = e.target;
1503
+ n.arg ? t === o || t.contains(o) || o.closest(n.arg) || n.value(e, t) : t === o || t.contains(o) || n.value(e, t);
1504
+ }, document.addEventListener("click", t.clickOutsideEvent);
1505
+ },
1506
+ unmounted(t) {
1507
+ document.removeEventListener("click", t.clickOutsideEvent);
1508
+ }
1509
+ };
1502
1510
  export {
1503
- nt as QButton,
1511
+ ot as QButton,
1504
1512
  lt as QButtonGroup,
1505
- fn as QButtonToggle,
1513
+ pn as QButtonToggle,
1506
1514
  Le as QField,
1507
- N as QIcon,
1508
- wt as QIconFont,
1509
- $t as QIconImg,
1510
- St as QIconSvg,
1511
- pn as QLineLoader,
1515
+ W as QIcon,
1516
+ $t as QIconFont,
1517
+ St as QIconImg,
1518
+ qt as QIconSvg,
1519
+ mn as QLineLoader,
1512
1520
  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,
1521
+ Rt as QListItem,
1522
+ Mt as QListItemGroup,
1523
+ de as QOverlay,
1524
+ hn as QPopover,
1525
+ vn as QSelect,
1526
+ Be as QSpinnerLoader,
1519
1527
  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
1528
+ bn as QTooltip,
1529
+ gn as clickOutside,
1530
+ fn as createFramework,
1531
+ Ue as defaultDarkColorScheme,
1532
+ pe as defaultLightColorScheme,
1533
+ un as useTheme
1526
1534
  };
1527
1535
  //# sourceMappingURL=ui.esm.js.map