@quidgest/ui 0.7.22 → 0.7.23
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/index.d.ts +3 -0
- package/dist/ui.esm.js +350 -341
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +2 -2
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as xe, computed as g, ref as q, provide as Oe, inject as Ve, watch as F, defineComponent as
|
|
2
|
-
function
|
|
1
|
+
import { getCurrentInstance as xe, computed as g, ref as q, provide as Oe, inject as Ve, watch as F, defineComponent as x, openBlock as c, createElementBlock as v, normalizeClass as T, normalizeStyle as se, createElementVNode as W, withModifiers as ne, createVNode as Z, unref as $, createCommentVNode as L, Fragment as J, createTextVNode as ae, toDisplayString as N, renderSlot as h, toRef as ce, createBlock as B, withCtx as I, renderList as pe, resolveDynamicComponent as De, h as ke, normalizeProps as ie, mergeProps as P, reactive as Ue, onBeforeUnmount as Ne, onMounted as Te, Teleport as He, Transition as Ke, withKeys as Ge, nextTick as Y, createSlots as ve, withDirectives as We, vModelDynamic as je, guardReactiveProps as we } from "vue";
|
|
2
|
+
function me(n) {
|
|
3
3
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
4
4
|
}
|
|
5
5
|
function $e(n) {
|
|
6
6
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function he(n = {}, t = {}) {
|
|
9
9
|
const o = {};
|
|
10
10
|
for (const e in n)
|
|
11
11
|
o[e] = n[e];
|
|
12
12
|
for (const e in t) {
|
|
13
13
|
const l = n[e], a = t[e];
|
|
14
14
|
if ($e(l) && $e(a)) {
|
|
15
|
-
o[e] =
|
|
15
|
+
o[e] = he(
|
|
16
16
|
l,
|
|
17
17
|
a
|
|
18
18
|
);
|
|
@@ -32,12 +32,12 @@ function Xe() {
|
|
|
32
32
|
if (!t)
|
|
33
33
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
34
34
|
const o = ze(), e = (a = o.value) == null ? void 0 : a.Global, l = (r = o.value) == null ? void 0 : r[t];
|
|
35
|
-
return g(() =>
|
|
35
|
+
return g(() => he(e, l));
|
|
36
36
|
}
|
|
37
37
|
function Ee(n) {
|
|
38
|
-
if (
|
|
38
|
+
if (me(n))
|
|
39
39
|
return;
|
|
40
|
-
const t = ze(), o = q(n), e = g(() =>
|
|
40
|
+
const t = ze(), o = q(n), e = g(() => me(o.value) ? t.value : he(t.value, o.value));
|
|
41
41
|
Oe(ye, e);
|
|
42
42
|
}
|
|
43
43
|
function ze() {
|
|
@@ -137,12 +137,12 @@ function qe(n) {
|
|
|
137
137
|
function Fe(n) {
|
|
138
138
|
const t = n.r / 255, o = n.g / 255, e = n.b / 255, l = Math.max(t, o, e), a = Math.min(t, o, e);
|
|
139
139
|
let r = 0, i;
|
|
140
|
-
const
|
|
140
|
+
const p = (l + a) / 2;
|
|
141
141
|
if (l === a)
|
|
142
142
|
r = i = 0;
|
|
143
143
|
else {
|
|
144
144
|
const m = l - a;
|
|
145
|
-
switch (i =
|
|
145
|
+
switch (i = p > 0.5 ? m / (2 - l - a) : m / (l + a), l) {
|
|
146
146
|
case t:
|
|
147
147
|
r = (o - e) / m + (o < e ? 6 : 0);
|
|
148
148
|
break;
|
|
@@ -158,7 +158,7 @@ function Fe(n) {
|
|
|
158
158
|
return {
|
|
159
159
|
h: Math.round(r * 360),
|
|
160
160
|
s: Math.round(i * 100),
|
|
161
|
-
l: Math.round(
|
|
161
|
+
l: Math.round(p * 100)
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
function Ae(n) {
|
|
@@ -167,8 +167,8 @@ function Ae(n) {
|
|
|
167
167
|
if (o === 0)
|
|
168
168
|
l = a = r = e;
|
|
169
169
|
else {
|
|
170
|
-
const i = e < 0.5 ? e * (1 + o) : e + o - e * o,
|
|
171
|
-
l = fe(
|
|
170
|
+
const i = e < 0.5 ? e * (1 + o) : e + o - e * o, p = 2 * e - i;
|
|
171
|
+
l = fe(p, i, t + 1 / 3), a = fe(p, i, t), r = fe(p, i, t - 1 / 3);
|
|
172
172
|
}
|
|
173
173
|
return {
|
|
174
174
|
r: Math.round(l * 255),
|
|
@@ -196,8 +196,8 @@ function Je(n, t) {
|
|
|
196
196
|
for (a in e.colors) {
|
|
197
197
|
const r = e.colors[a];
|
|
198
198
|
if (r && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
|
|
199
|
-
const i = Ce(r),
|
|
200
|
-
|
|
199
|
+
const i = Ce(r), p = `${a}Light`, m = `${a}Dark`;
|
|
200
|
+
p in e.colors || (e.colors[p] = qe(Pe(i, 85))), m in e.colors || (e.colors[m] = qe(Ze(i, 25)));
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -263,8 +263,8 @@ function $n(n = {}) {
|
|
|
263
263
|
o.provide(ye, q(l)), Je(o, n.themes);
|
|
264
264
|
} };
|
|
265
265
|
}
|
|
266
|
-
const nt = /* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
266
|
+
const nt = /* @__PURE__ */ W("svg", { viewBox: "25 25 50 50" }, [
|
|
267
|
+
/* @__PURE__ */ W("circle", {
|
|
268
268
|
class: "path",
|
|
269
269
|
cx: "50",
|
|
270
270
|
cy: "50",
|
|
@@ -276,7 +276,7 @@ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
|
276
276
|
})
|
|
277
277
|
], -1), lt = [
|
|
278
278
|
nt
|
|
279
|
-
], ot = /* @__PURE__ */
|
|
279
|
+
], ot = /* @__PURE__ */ x({
|
|
280
280
|
__name: "QSpinnerLoader",
|
|
281
281
|
props: {
|
|
282
282
|
size: { default: 48 },
|
|
@@ -286,7 +286,7 @@ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
|
286
286
|
const t = n, o = g(() => ({
|
|
287
287
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
288
288
|
}));
|
|
289
|
-
return (e, l) => (
|
|
289
|
+
return (e, l) => (c(), v("div", {
|
|
290
290
|
class: T(["q-spinner-loader", t.class]),
|
|
291
291
|
style: se(o.value)
|
|
292
292
|
}, lt, 6));
|
|
@@ -300,25 +300,25 @@ function V(n) {
|
|
|
300
300
|
const t = n.setup;
|
|
301
301
|
return t && (n.setup = (o, e) => {
|
|
302
302
|
const l = Xe();
|
|
303
|
-
if (
|
|
303
|
+
if (me(l.value))
|
|
304
304
|
return t(o, e);
|
|
305
305
|
const a = xe();
|
|
306
306
|
if (a === null)
|
|
307
307
|
return t(o, e);
|
|
308
308
|
const r = new Proxy(o, {
|
|
309
|
-
get(i,
|
|
309
|
+
get(i, p) {
|
|
310
310
|
var _;
|
|
311
|
-
const m = Reflect.get(i,
|
|
312
|
-
return typeof
|
|
311
|
+
const m = Reflect.get(i, p), f = (_ = l.value) == null ? void 0 : _[p];
|
|
312
|
+
return typeof p == "string" && !at(a.vnode, p) ? f ?? m : m;
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
return t(r, e);
|
|
316
316
|
}), n;
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const be = V(ot), st = ["disabled"], it = {
|
|
319
319
|
key: 0,
|
|
320
320
|
class: "q-btn__spinner"
|
|
321
|
-
}, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */
|
|
321
|
+
}, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */ x({
|
|
322
322
|
__name: "QButton",
|
|
323
323
|
props: {
|
|
324
324
|
active: { type: Boolean },
|
|
@@ -355,27 +355,27 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
355
355
|
e.class
|
|
356
356
|
];
|
|
357
357
|
});
|
|
358
|
-
return (i,
|
|
358
|
+
return (i, p) => (c(), v("button", {
|
|
359
359
|
type: "button",
|
|
360
360
|
class: T(r.value),
|
|
361
361
|
disabled: l.value,
|
|
362
362
|
onClick: ne(a, ["stop", "prevent"])
|
|
363
363
|
}, [
|
|
364
|
-
i.loading ? (
|
|
365
|
-
|
|
366
|
-
])) :
|
|
367
|
-
|
|
368
|
-
i.iconOnRight ? (
|
|
364
|
+
i.loading ? (c(), v("div", it, [
|
|
365
|
+
Z($(be), { size: 23 })
|
|
366
|
+
])) : L("", !0),
|
|
367
|
+
W("span", rt, [
|
|
368
|
+
i.iconOnRight ? (c(), v(J, { key: 0 }, [
|
|
369
369
|
ae(N(e.label), 1)
|
|
370
|
-
], 64)) :
|
|
371
|
-
|
|
372
|
-
i.iconOnRight ?
|
|
370
|
+
], 64)) : L("", !0),
|
|
371
|
+
h(i.$slots, "default"),
|
|
372
|
+
i.iconOnRight ? L("", !0) : (c(), v(J, { key: 1 }, [
|
|
373
373
|
ae(N(e.label), 1)
|
|
374
374
|
], 64))
|
|
375
375
|
])
|
|
376
376
|
], 10, st));
|
|
377
377
|
}
|
|
378
|
-
}), ut = V(dt), ct = /* @__PURE__ */
|
|
378
|
+
}), ut = V(dt), ct = /* @__PURE__ */ x({
|
|
379
379
|
__name: "QButtonGroup",
|
|
380
380
|
props: {
|
|
381
381
|
bStyle: { default: void 0 },
|
|
@@ -393,7 +393,7 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
393
393
|
borderless: ce(t, "borderless"),
|
|
394
394
|
elevated: !1
|
|
395
395
|
}
|
|
396
|
-
}), (o, e) => (
|
|
396
|
+
}), (o, e) => (c(), v("div", {
|
|
397
397
|
class: T([
|
|
398
398
|
"q-btn-group",
|
|
399
399
|
{
|
|
@@ -402,10 +402,10 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
402
402
|
t.class
|
|
403
403
|
])
|
|
404
404
|
}, [
|
|
405
|
-
|
|
405
|
+
h(o.$slots, "default")
|
|
406
406
|
], 2));
|
|
407
407
|
}
|
|
408
|
-
}), ft = V(ct), pt = /* @__PURE__ */
|
|
408
|
+
}), ft = V(ct), pt = /* @__PURE__ */ x({
|
|
409
409
|
__name: "QButtonToggle",
|
|
410
410
|
props: {
|
|
411
411
|
modelValue: {},
|
|
@@ -434,7 +434,7 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
434
434
|
function r(i) {
|
|
435
435
|
a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
|
|
436
436
|
}
|
|
437
|
-
return (i,
|
|
437
|
+
return (i, p) => (c(), B($(ft), {
|
|
438
438
|
"b-style": "secondary",
|
|
439
439
|
class: T(e.class),
|
|
440
440
|
disabled: e.disabled,
|
|
@@ -442,7 +442,7 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
442
442
|
elevated: e.elevated
|
|
443
443
|
}, {
|
|
444
444
|
default: I(() => [
|
|
445
|
-
(
|
|
445
|
+
(c(!0), v(J, null, pe(e.options, (m) => (c(), B($(ut), {
|
|
446
446
|
key: m.key,
|
|
447
447
|
title: m.title,
|
|
448
448
|
label: m.label,
|
|
@@ -450,7 +450,7 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
450
450
|
onClick: () => r(m)
|
|
451
451
|
}, {
|
|
452
452
|
default: I(() => [
|
|
453
|
-
|
|
453
|
+
h(i.$slots, m.key)
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
456
|
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
@@ -458,7 +458,7 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
458
458
|
_: 3
|
|
459
459
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
460
460
|
}
|
|
461
|
-
}), In = V(pt), mt = /* @__PURE__ */
|
|
461
|
+
}), In = V(pt), mt = /* @__PURE__ */ x({
|
|
462
462
|
__name: "QIcon",
|
|
463
463
|
props: {
|
|
464
464
|
icon: {},
|
|
@@ -479,13 +479,13 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
|
-
return (e, l) => (
|
|
482
|
+
return (e, l) => (c(), B(De(o.value), {
|
|
483
483
|
class: T(t.class),
|
|
484
484
|
icon: t.icon,
|
|
485
485
|
size: t.size
|
|
486
486
|
}, null, 8, ["class", "icon", "size"]));
|
|
487
487
|
}
|
|
488
|
-
}), vt = /* @__PURE__ */
|
|
488
|
+
}), vt = /* @__PURE__ */ x({
|
|
489
489
|
__name: "QIconFont",
|
|
490
490
|
props: {
|
|
491
491
|
icon: {},
|
|
@@ -498,12 +498,12 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
498
498
|
const t = n, o = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), e = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
|
|
499
499
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
500
500
|
}));
|
|
501
|
-
return (a, r) => (
|
|
501
|
+
return (a, r) => (c(), v("i", {
|
|
502
502
|
class: T(["q-icon", "q-icon__font", o.value, e.value, t.class]),
|
|
503
503
|
style: se(l.value)
|
|
504
504
|
}, null, 6));
|
|
505
505
|
}
|
|
506
|
-
}), ht = ["src"],
|
|
506
|
+
}), ht = ["src"], yt = /* @__PURE__ */ x({
|
|
507
507
|
__name: "QIconImg",
|
|
508
508
|
props: {
|
|
509
509
|
icon: {},
|
|
@@ -514,13 +514,13 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
514
514
|
const t = n, o = g(() => ({
|
|
515
515
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
516
516
|
}));
|
|
517
|
-
return (e, l) => (
|
|
517
|
+
return (e, l) => (c(), v("img", {
|
|
518
518
|
src: t.icon,
|
|
519
519
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
520
520
|
style: se(o.value)
|
|
521
521
|
}, null, 14, ht));
|
|
522
522
|
}
|
|
523
|
-
}), le = {},
|
|
523
|
+
}), le = {}, bt = x({
|
|
524
524
|
name: "InlineSvg",
|
|
525
525
|
emits: ["loaded", "unloaded", "error"],
|
|
526
526
|
inheritAttrs: !1,
|
|
@@ -529,9 +529,9 @@ const ge = V(ot), st = ["disabled"], it = {
|
|
|
529
529
|
return null;
|
|
530
530
|
const n = this.getSvgContent(this.svgElSource);
|
|
531
531
|
if (!n)
|
|
532
|
-
return
|
|
532
|
+
return ke("div", this.$attrs);
|
|
533
533
|
const t = {};
|
|
534
|
-
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML,
|
|
534
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, ke("svg", t);
|
|
535
535
|
},
|
|
536
536
|
props: {
|
|
537
537
|
src: {
|
|
@@ -633,7 +633,7 @@ function _t(n) {
|
|
|
633
633
|
);
|
|
634
634
|
return o.getIsPending = () => t, o;
|
|
635
635
|
}
|
|
636
|
-
const kt = /* @__PURE__ */
|
|
636
|
+
const kt = /* @__PURE__ */ x({
|
|
637
637
|
__name: "QIconSvg",
|
|
638
638
|
props: {
|
|
639
639
|
icon: {},
|
|
@@ -652,7 +652,7 @@ const kt = /* @__PURE__ */ B({
|
|
|
652
652
|
function r() {
|
|
653
653
|
o("unloaded");
|
|
654
654
|
}
|
|
655
|
-
return (i,
|
|
655
|
+
return (i, p) => (c(), B($(bt), {
|
|
656
656
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
657
657
|
src: e.bundle,
|
|
658
658
|
symbol: e.icon,
|
|
@@ -661,7 +661,7 @@ const kt = /* @__PURE__ */ B({
|
|
|
661
661
|
onUnloaded: r
|
|
662
662
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
663
663
|
}
|
|
664
|
-
}),
|
|
664
|
+
}), ee = V(mt), wt = V(vt), $t = V(yt), It = V(kt), qt = /* @__PURE__ */ x({
|
|
665
665
|
__name: "QList",
|
|
666
666
|
props: {
|
|
667
667
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -675,8 +675,8 @@ const kt = /* @__PURE__ */ B({
|
|
|
675
675
|
},
|
|
676
676
|
emits: ["update:modelValue"],
|
|
677
677
|
setup(n, { expose: t, emit: o }) {
|
|
678
|
-
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() =>
|
|
679
|
-
function
|
|
678
|
+
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() => p.value.length > 1 ? "div" : "ul"), p = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), m = q(null);
|
|
679
|
+
function f(d) {
|
|
680
680
|
a.value = d, e("update:modelValue", d);
|
|
681
681
|
}
|
|
682
682
|
function _() {
|
|
@@ -686,8 +686,8 @@ const kt = /* @__PURE__ */ B({
|
|
|
686
686
|
r.value = !1;
|
|
687
687
|
}
|
|
688
688
|
function E(d) {
|
|
689
|
-
var
|
|
690
|
-
if ((
|
|
689
|
+
var S;
|
|
690
|
+
if ((S = m.value) != null && S.contains(d.relatedTarget))
|
|
691
691
|
return;
|
|
692
692
|
let b;
|
|
693
693
|
a.value ? b = l.items.findIndex((ue) => ue[l.itemValue] === a.value) : b = Q();
|
|
@@ -714,7 +714,7 @@ const kt = /* @__PURE__ */ B({
|
|
|
714
714
|
switch (d) {
|
|
715
715
|
case "next":
|
|
716
716
|
case "prev":
|
|
717
|
-
O(
|
|
717
|
+
O(X(d));
|
|
718
718
|
break;
|
|
719
719
|
case "first":
|
|
720
720
|
O(Q());
|
|
@@ -725,8 +725,8 @@ const kt = /* @__PURE__ */ B({
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
function O(d, b = !1) {
|
|
728
|
-
var
|
|
729
|
-
(
|
|
728
|
+
var S;
|
|
729
|
+
(S = z()[d]) == null || S.focus({ preventScroll: b });
|
|
730
730
|
}
|
|
731
731
|
function z() {
|
|
732
732
|
var b;
|
|
@@ -736,40 +736,40 @@ const kt = /* @__PURE__ */ B({
|
|
|
736
736
|
function H(d) {
|
|
737
737
|
return z()[d];
|
|
738
738
|
}
|
|
739
|
-
function
|
|
739
|
+
function j() {
|
|
740
740
|
return z().indexOf(document.activeElement);
|
|
741
741
|
}
|
|
742
742
|
function Q() {
|
|
743
|
-
const d = z(), b = d.find((k) =>
|
|
743
|
+
const d = z(), b = d.find((k) => y(k));
|
|
744
744
|
return b ? d.indexOf(b) : -1;
|
|
745
745
|
}
|
|
746
746
|
function M() {
|
|
747
|
-
const d = z(), b = [...d].reverse().find((k) =>
|
|
747
|
+
const d = z(), b = [...d].reverse().find((k) => y(k));
|
|
748
748
|
return b ? d.indexOf(b) : -1;
|
|
749
749
|
}
|
|
750
750
|
function U(d, b, k) {
|
|
751
751
|
return b === "prev" && d === 0 || b === "next" && d === k.length - 1;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
const b =
|
|
753
|
+
function X(d) {
|
|
754
|
+
const b = j();
|
|
755
755
|
return K(b, d);
|
|
756
756
|
}
|
|
757
757
|
function K(d, b) {
|
|
758
758
|
const k = z();
|
|
759
759
|
if (U(d, b, k))
|
|
760
760
|
return d;
|
|
761
|
-
let
|
|
762
|
-
for (; !
|
|
763
|
-
if (U(
|
|
761
|
+
let S = d + (b === "next" ? 1 : -1);
|
|
762
|
+
for (; !y(k[S]); ) {
|
|
763
|
+
if (U(S, b, k))
|
|
764
764
|
return d;
|
|
765
|
-
|
|
765
|
+
S += b === "next" ? 1 : -1;
|
|
766
766
|
}
|
|
767
|
-
return
|
|
767
|
+
return S;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function y(d) {
|
|
770
770
|
return d.tabIndex === -2;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function u(d) {
|
|
773
773
|
return d ? l.items.filter((b) => b.group === d) : l.items;
|
|
774
774
|
}
|
|
775
775
|
return F(
|
|
@@ -783,7 +783,7 @@ const kt = /* @__PURE__ */ B({
|
|
|
783
783
|
getAdjacentItemIndex: K,
|
|
784
784
|
getFirstFocusableItemIndex: Q,
|
|
785
785
|
getLastFocusableItemIndex: M
|
|
786
|
-
}), (d, b) => (
|
|
786
|
+
}), (d, b) => (c(), B(De(i.value), {
|
|
787
787
|
ref_key: "listRef",
|
|
788
788
|
ref: m,
|
|
789
789
|
class: T(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
@@ -795,24 +795,24 @@ const kt = /* @__PURE__ */ B({
|
|
|
795
795
|
onKeydown: A
|
|
796
796
|
}, {
|
|
797
797
|
default: I(() => [
|
|
798
|
-
(
|
|
798
|
+
(c(!0), v(J, null, pe(p.value, (k) => (c(), B($(Ct), {
|
|
799
799
|
key: k.id,
|
|
800
|
-
title:
|
|
800
|
+
title: p.value.length === 1 ? void 0 : k.title,
|
|
801
801
|
disabled: k.disabled
|
|
802
802
|
}, {
|
|
803
803
|
default: I(() => [
|
|
804
|
-
(
|
|
805
|
-
key:
|
|
806
|
-
value:
|
|
807
|
-
label:
|
|
808
|
-
icon:
|
|
809
|
-
disabled: l.disabled ||
|
|
810
|
-
highlighted: l.highlighted ===
|
|
811
|
-
selected: a.value ===
|
|
812
|
-
onSelect:
|
|
804
|
+
(c(!0), v(J, null, pe(u(k.id), (S) => (c(), B($(zt), {
|
|
805
|
+
key: S[l.itemValue],
|
|
806
|
+
value: S[l.itemValue],
|
|
807
|
+
label: S[l.itemLabel],
|
|
808
|
+
icon: S.icon,
|
|
809
|
+
disabled: l.disabled || S.disabled,
|
|
810
|
+
highlighted: l.highlighted === S[l.itemValue],
|
|
811
|
+
selected: a.value === S[l.itemValue],
|
|
812
|
+
onSelect: f
|
|
813
813
|
}, {
|
|
814
814
|
default: I(() => [
|
|
815
|
-
|
|
815
|
+
h(d.$slots, "item", { item: S })
|
|
816
816
|
]),
|
|
817
817
|
_: 2
|
|
818
818
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -832,7 +832,7 @@ const Lt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
832
832
|
check: {
|
|
833
833
|
icon: "check"
|
|
834
834
|
}
|
|
835
|
-
}, Vt = /* @__PURE__ */
|
|
835
|
+
}, Vt = /* @__PURE__ */ x({
|
|
836
836
|
__name: "QListItem",
|
|
837
837
|
props: {
|
|
838
838
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -852,7 +852,7 @@ const Lt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
852
852
|
function r(i) {
|
|
853
853
|
i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
|
|
854
854
|
}
|
|
855
|
-
return (i,
|
|
855
|
+
return (i, p) => (c(), v("li", {
|
|
856
856
|
id: $(l),
|
|
857
857
|
role: "option",
|
|
858
858
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -869,16 +869,16 @@ const Lt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
869
869
|
onKeydown: r,
|
|
870
870
|
onClick: ne(a, ["stop", "prevent"])
|
|
871
871
|
}, [
|
|
872
|
-
|
|
873
|
-
e.icon ? (
|
|
872
|
+
h(i.$slots, "default", {}, () => [
|
|
873
|
+
e.icon ? (c(), B($(ee), ie(P({ key: 0 }, e.icon)), null, 16)) : L("", !0),
|
|
874
874
|
ae(" " + N(e.label), 1)
|
|
875
875
|
]),
|
|
876
|
-
|
|
877
|
-
e.selected ? (
|
|
876
|
+
W("div", Bt, [
|
|
877
|
+
e.selected ? (c(), B($(ee), P({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
|
|
878
878
|
])
|
|
879
879
|
], 42, Lt));
|
|
880
880
|
}
|
|
881
|
-
}), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */
|
|
881
|
+
}), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */ x({
|
|
882
882
|
__name: "QListItemGroup",
|
|
883
883
|
props: {
|
|
884
884
|
title: { default: "" },
|
|
@@ -886,41 +886,41 @@ const Lt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
886
886
|
},
|
|
887
887
|
setup(n) {
|
|
888
888
|
const t = n, o = te();
|
|
889
|
-
return (e, l) => (
|
|
889
|
+
return (e, l) => (c(), v("ul", {
|
|
890
890
|
class: "q-list-item-group",
|
|
891
891
|
role: "group",
|
|
892
892
|
"aria-labelledby": t.title ? $(o) : void 0
|
|
893
893
|
}, [
|
|
894
|
-
t.title ? (
|
|
894
|
+
t.title ? (c(), v("li", {
|
|
895
895
|
key: 0,
|
|
896
896
|
id: $(o),
|
|
897
897
|
class: "q-list-item-group__title",
|
|
898
898
|
role: "presentation"
|
|
899
|
-
}, N(t.title), 9, Tt)) :
|
|
900
|
-
|
|
899
|
+
}, N(t.title), 9, Tt)) : L("", !0),
|
|
900
|
+
h(e.$slots, "default")
|
|
901
901
|
], 8, Dt));
|
|
902
902
|
}
|
|
903
903
|
}), Qe = V(qt), zt = V(Vt), Ct = V(Et);
|
|
904
904
|
function Ft(n, t, o = "right", e) {
|
|
905
|
-
const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(),
|
|
906
|
-
let
|
|
907
|
-
i && !Re(l, i,
|
|
908
|
-
const _ = { x: 0, y: 0, placement:
|
|
909
|
-
switch (
|
|
905
|
+
const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), p = (i == null ? void 0 : i.width) ?? 0, m = (i == null ? void 0 : i.height) ?? 0;
|
|
906
|
+
let f = o;
|
|
907
|
+
i && !Re(l, i, f) && (f = At(l, i, f));
|
|
908
|
+
const _ = { x: 0, y: 0, placement: f };
|
|
909
|
+
switch (f) {
|
|
910
910
|
case "top":
|
|
911
|
-
e === "anchor" ? _.x = a : _.x = a + (l.width -
|
|
911
|
+
e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r - m;
|
|
912
912
|
break;
|
|
913
913
|
case "bottom":
|
|
914
|
-
e === "anchor" ? _.x = a : _.x = a + (l.width -
|
|
914
|
+
e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r + l.height;
|
|
915
915
|
break;
|
|
916
916
|
case "left":
|
|
917
|
-
_.x = a -
|
|
917
|
+
_.x = a - p, _.y = r + l.height / 2 - m / 2;
|
|
918
918
|
break;
|
|
919
919
|
case "right":
|
|
920
920
|
_.x = a + l.width, _.y = r + l.height / 2 - m / 2;
|
|
921
921
|
break;
|
|
922
922
|
}
|
|
923
|
-
return e === "anchor" && l.width >=
|
|
923
|
+
return e === "anchor" && l.width >= p && (_.width = l.width), _;
|
|
924
924
|
}
|
|
925
925
|
function Re(n, t, o) {
|
|
926
926
|
let e = !1, l = !1;
|
|
@@ -965,7 +965,7 @@ const Qt = ["role"], Rt = {
|
|
|
965
965
|
key: 0,
|
|
966
966
|
role: "presentation",
|
|
967
967
|
class: "q-overlay__arrow"
|
|
968
|
-
}, Mt = /* @__PURE__ */
|
|
968
|
+
}, Mt = /* @__PURE__ */ x({
|
|
969
969
|
inheritAttrs: !1,
|
|
970
970
|
__name: "QOverlay",
|
|
971
971
|
props: {
|
|
@@ -1009,57 +1009,57 @@ const Qt = ["role"], Rt = {
|
|
|
1009
1009
|
() => r.visible,
|
|
1010
1010
|
() => r.animating = !0
|
|
1011
1011
|
);
|
|
1012
|
-
const
|
|
1013
|
-
let
|
|
1012
|
+
const p = g(() => {
|
|
1013
|
+
let y = 0, u = 0;
|
|
1014
1014
|
switch (r.placement) {
|
|
1015
1015
|
case "top":
|
|
1016
|
-
|
|
1016
|
+
u = -(e.offset || 0);
|
|
1017
1017
|
break;
|
|
1018
1018
|
case "bottom":
|
|
1019
|
-
|
|
1019
|
+
u = e.offset || 0;
|
|
1020
1020
|
break;
|
|
1021
1021
|
case "left":
|
|
1022
|
-
|
|
1022
|
+
y = -(e.offset || 0);
|
|
1023
1023
|
break;
|
|
1024
1024
|
case "right":
|
|
1025
|
-
|
|
1025
|
+
y = e.offset || 0;
|
|
1026
1026
|
break;
|
|
1027
1027
|
}
|
|
1028
1028
|
const d = {
|
|
1029
|
-
top: `${r.top +
|
|
1030
|
-
left: `${r.left +
|
|
1029
|
+
top: `${r.top + u}px`,
|
|
1030
|
+
left: `${r.left + y}px`
|
|
1031
1031
|
};
|
|
1032
1032
|
return r.width !== void 0 && ["top", "bottom"].includes(r.placement) && (d.width = `${r.width}px`), d;
|
|
1033
1033
|
}), m = q(null);
|
|
1034
|
-
function
|
|
1034
|
+
function f() {
|
|
1035
1035
|
if (e.anchor) {
|
|
1036
|
-
const
|
|
1037
|
-
if (
|
|
1038
|
-
const
|
|
1039
|
-
|
|
1036
|
+
const y = oe(e.anchor);
|
|
1037
|
+
if (y) {
|
|
1038
|
+
const u = Ft(
|
|
1039
|
+
y,
|
|
1040
1040
|
m.value,
|
|
1041
1041
|
e.placement,
|
|
1042
1042
|
e.width
|
|
1043
1043
|
);
|
|
1044
|
-
r.left =
|
|
1044
|
+
r.left = u.x, r.top = u.y, r.width = u.width, r.placement = u.placement;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
|
-
F([() => i.value, () => e.placement],
|
|
1048
|
+
F([() => i.value, () => e.placement], f);
|
|
1049
1049
|
let _;
|
|
1050
|
-
function C(
|
|
1050
|
+
function C(y) {
|
|
1051
1051
|
_ || (_ = window.setTimeout(() => {
|
|
1052
|
-
r.visible = !0,
|
|
1053
|
-
var
|
|
1054
|
-
e.trigger === "click" && ((
|
|
1052
|
+
r.visible = !0, Y(() => {
|
|
1053
|
+
var u;
|
|
1054
|
+
e.trigger === "click" && ((u = m.value) == null || u.focus());
|
|
1055
1055
|
});
|
|
1056
|
-
},
|
|
1056
|
+
}, y));
|
|
1057
1057
|
}
|
|
1058
1058
|
function E() {
|
|
1059
|
-
clearTimeout(_), _ = void 0, r.visible = !1,
|
|
1059
|
+
clearTimeout(_), _ = void 0, r.visible = !1, Y(() => {
|
|
1060
1060
|
if (e.anchor && e.trigger === "click") {
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1061
|
+
const y = oe(e.anchor);
|
|
1062
|
+
y == null || y.focus();
|
|
1063
1063
|
}
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
@@ -1072,98 +1072,98 @@ const Qt = ["role"], Rt = {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
let z;
|
|
1074
1074
|
function H() {
|
|
1075
|
-
|
|
1075
|
+
Y(() => {
|
|
1076
1076
|
if (!e.anchor)
|
|
1077
1077
|
return;
|
|
1078
|
-
const
|
|
1079
|
-
if (
|
|
1078
|
+
const y = oe(e.anchor);
|
|
1079
|
+
if (y)
|
|
1080
1080
|
switch (e.trigger) {
|
|
1081
1081
|
case "click":
|
|
1082
|
-
|
|
1082
|
+
y.addEventListener("click", () => C(0));
|
|
1083
1083
|
break;
|
|
1084
1084
|
case "hover":
|
|
1085
|
-
|
|
1085
|
+
y.addEventListener("mouseenter", () => C(e.delay)), y.addEventListener("mouseleave", E), y.addEventListener("focusin", () => C(0)), y.addEventListener("focusout", E);
|
|
1086
1086
|
break;
|
|
1087
1087
|
}
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
|
|
1090
|
+
function j() {
|
|
1091
|
+
Y(() => {
|
|
1092
1092
|
if (!e.anchor)
|
|
1093
1093
|
return;
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1094
|
+
const y = oe(e.anchor);
|
|
1095
|
+
y && (window.addEventListener("scroll", f), window.addEventListener("resize", f), z = new MutationObserver(f), z.observe(y, {
|
|
1096
1096
|
attributes: !1,
|
|
1097
1097
|
childList: !0,
|
|
1098
1098
|
characterData: !0,
|
|
1099
1099
|
subtree: !0
|
|
1100
|
-
}),
|
|
1100
|
+
}), f());
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
1103
|
function Q() {
|
|
1104
|
-
window.removeEventListener("scroll",
|
|
1104
|
+
window.removeEventListener("scroll", f), window.removeEventListener("resize", f), z == null || z.disconnect();
|
|
1105
1105
|
}
|
|
1106
1106
|
let M;
|
|
1107
1107
|
function U() {
|
|
1108
1108
|
if (!e.anchor)
|
|
1109
1109
|
return;
|
|
1110
|
-
oe(e.anchor) ? (
|
|
1110
|
+
oe(e.anchor) ? (f(), M = window.setTimeout(U, 100)) : E();
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
|
|
1112
|
+
function X() {
|
|
1113
|
+
j(), e.spy && U();
|
|
1114
1114
|
}
|
|
1115
1115
|
function K() {
|
|
1116
1116
|
Q(), e.spy && (clearTimeout(M), M = void 0);
|
|
1117
1117
|
}
|
|
1118
|
-
return Ne(K), Te(
|
|
1118
|
+
return Ne(K), Te(f), F(
|
|
1119
1119
|
() => e.disabled,
|
|
1120
|
-
(
|
|
1121
|
-
|
|
1120
|
+
(y) => {
|
|
1121
|
+
y || H();
|
|
1122
1122
|
},
|
|
1123
1123
|
{ immediate: !0 }
|
|
1124
1124
|
), F(
|
|
1125
1125
|
() => i.value,
|
|
1126
|
-
(
|
|
1127
|
-
|
|
1126
|
+
(y) => {
|
|
1127
|
+
y ? X() : K();
|
|
1128
1128
|
},
|
|
1129
1129
|
{ immediate: !0 }
|
|
1130
|
-
), (
|
|
1130
|
+
), (y, u) => (c(), B(He, {
|
|
1131
1131
|
disabled: !i.value && !r.animating || !e.attach,
|
|
1132
1132
|
to: e.attach
|
|
1133
1133
|
}, [
|
|
1134
|
-
a.value ? (
|
|
1134
|
+
a.value ? (c(), v("div", {
|
|
1135
1135
|
key: 0,
|
|
1136
1136
|
class: T([
|
|
1137
1137
|
"q-overlay__underlay",
|
|
1138
1138
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1139
1139
|
])
|
|
1140
|
-
}, null, 2)) :
|
|
1141
|
-
|
|
1140
|
+
}, null, 2)) : L("", !0),
|
|
1141
|
+
Z(Ke, {
|
|
1142
1142
|
name: e.transition,
|
|
1143
1143
|
appear: "",
|
|
1144
1144
|
onEnter: R,
|
|
1145
1145
|
onLeave: O
|
|
1146
1146
|
}, {
|
|
1147
1147
|
default: I(() => [
|
|
1148
|
-
i.value ? (
|
|
1148
|
+
i.value ? (c(), v("div", {
|
|
1149
1149
|
key: 0,
|
|
1150
1150
|
class: T(l.value),
|
|
1151
|
-
style: se(
|
|
1151
|
+
style: se(p.value)
|
|
1152
1152
|
}, [
|
|
1153
|
-
|
|
1153
|
+
W("div", P({
|
|
1154
1154
|
class: "q-overlay__content",
|
|
1155
1155
|
ref_key: "overlayRef",
|
|
1156
1156
|
ref: m,
|
|
1157
1157
|
tabindex: "-1",
|
|
1158
1158
|
role: a.value ? "dialog" : void 0
|
|
1159
|
-
},
|
|
1159
|
+
}, y.$attrs, {
|
|
1160
1160
|
onKeydown: Ge(E, ["escape"]),
|
|
1161
1161
|
onBlur: E
|
|
1162
1162
|
}), [
|
|
1163
|
-
e.arrow ? (
|
|
1164
|
-
y
|
|
1163
|
+
e.arrow ? (c(), v("div", Rt)) : L("", !0),
|
|
1164
|
+
h(y.$slots, "default")
|
|
1165
1165
|
], 16, Qt)
|
|
1166
|
-
], 6)) :
|
|
1166
|
+
], 6)) : L("", !0)
|
|
1167
1167
|
]),
|
|
1168
1168
|
_: 3
|
|
1169
1169
|
}, 8, ["name"])
|
|
@@ -1181,7 +1181,7 @@ const Qt = ["role"], Rt = {
|
|
|
1181
1181
|
}, Gt = {
|
|
1182
1182
|
key: 1,
|
|
1183
1183
|
class: "q-field__extras"
|
|
1184
|
-
}, Wt = /* @__PURE__ */
|
|
1184
|
+
}, Wt = /* @__PURE__ */ x({
|
|
1185
1185
|
inheritAttrs: !1,
|
|
1186
1186
|
__name: "QField",
|
|
1187
1187
|
props: {
|
|
@@ -1197,7 +1197,7 @@ const Qt = ["role"], Rt = {
|
|
|
1197
1197
|
const o = n, e = q(null), l = g(() => o.required && !o.readonly && !o.disabled);
|
|
1198
1198
|
return t({
|
|
1199
1199
|
fieldRef: e
|
|
1200
|
-
}), (a, r) => (
|
|
1200
|
+
}), (a, r) => (c(), v("div", {
|
|
1201
1201
|
id: o.id,
|
|
1202
1202
|
class: T([
|
|
1203
1203
|
"q-field",
|
|
@@ -1210,34 +1210,34 @@ const Qt = ["role"], Rt = {
|
|
|
1210
1210
|
o.class
|
|
1211
1211
|
])
|
|
1212
1212
|
}, [
|
|
1213
|
-
o.label ? (
|
|
1214
|
-
|
|
1215
|
-
|
|
1213
|
+
o.label ? (c(), v("div", Ut, [
|
|
1214
|
+
h(a.$slots, "label.prepend"),
|
|
1215
|
+
W("label", {
|
|
1216
1216
|
for: o.id
|
|
1217
1217
|
}, N(o.label), 9, Nt),
|
|
1218
|
-
|
|
1219
|
-
])) :
|
|
1220
|
-
|
|
1221
|
-
|
|
1218
|
+
h(a.$slots, "label.append")
|
|
1219
|
+
])) : L("", !0),
|
|
1220
|
+
h(a.$slots, "control", {}, () => [
|
|
1221
|
+
W("div", P({
|
|
1222
1222
|
class: "q-field__control",
|
|
1223
1223
|
ref_key: "fieldRef",
|
|
1224
1224
|
ref: e
|
|
1225
1225
|
}, a.$attrs), [
|
|
1226
|
-
a.$slots.prepend ? (
|
|
1227
|
-
|
|
1228
|
-
])) :
|
|
1229
|
-
|
|
1230
|
-
a.$slots.append ? (
|
|
1231
|
-
|
|
1232
|
-
])) :
|
|
1226
|
+
a.$slots.prepend ? (c(), v("div", Ht, [
|
|
1227
|
+
h(a.$slots, "prepend")
|
|
1228
|
+
])) : L("", !0),
|
|
1229
|
+
h(a.$slots, "default"),
|
|
1230
|
+
a.$slots.append ? (c(), v("div", Kt, [
|
|
1231
|
+
h(a.$slots, "append")
|
|
1232
|
+
])) : L("", !0)
|
|
1233
1233
|
], 16)
|
|
1234
1234
|
]),
|
|
1235
|
-
a.$slots.extras ? (
|
|
1236
|
-
|
|
1237
|
-
])) :
|
|
1235
|
+
a.$slots.extras ? (c(), v("div", Gt, [
|
|
1236
|
+
h(a.$slots, "extras")
|
|
1237
|
+
])) : L("", !0)
|
|
1238
1238
|
], 10, Ot));
|
|
1239
1239
|
}
|
|
1240
|
-
}),
|
|
1240
|
+
}), ge = V(Wt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ x({
|
|
1241
1241
|
inheritAttrs: !1,
|
|
1242
1242
|
__name: "QTextField",
|
|
1243
1243
|
props: {
|
|
@@ -1256,26 +1256,26 @@ const Qt = ["role"], Rt = {
|
|
|
1256
1256
|
},
|
|
1257
1257
|
emits: ["update:modelValue"],
|
|
1258
1258
|
setup(n, { expose: t, emit: o }) {
|
|
1259
|
-
const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null),
|
|
1259
|
+
const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null), p = g({
|
|
1260
1260
|
get() {
|
|
1261
1261
|
return a.value;
|
|
1262
1262
|
},
|
|
1263
|
-
set(
|
|
1264
|
-
a.value =
|
|
1263
|
+
set(f) {
|
|
1264
|
+
a.value = f, e("update:modelValue", f);
|
|
1265
1265
|
}
|
|
1266
1266
|
}), m = g(
|
|
1267
1267
|
() => l.readonly || l.disabled ? "" : l.placeholder
|
|
1268
1268
|
);
|
|
1269
1269
|
return F(
|
|
1270
1270
|
() => l.modelValue,
|
|
1271
|
-
(
|
|
1271
|
+
(f) => a.value = f
|
|
1272
1272
|
), t({
|
|
1273
1273
|
fieldRef: g(() => {
|
|
1274
|
-
var
|
|
1275
|
-
return (
|
|
1274
|
+
var f;
|
|
1275
|
+
return (f = r.value) == null ? void 0 : f.fieldRef;
|
|
1276
1276
|
}),
|
|
1277
1277
|
inputRef: i
|
|
1278
|
-
}), (
|
|
1278
|
+
}), (f, _) => (c(), B($(ge), {
|
|
1279
1279
|
ref_key: "fieldRef",
|
|
1280
1280
|
ref: r,
|
|
1281
1281
|
class: T(["q-text-field", l.class]),
|
|
@@ -1285,16 +1285,16 @@ const Qt = ["role"], Rt = {
|
|
|
1285
1285
|
readonly: l.readonly,
|
|
1286
1286
|
disabled: l.disabled,
|
|
1287
1287
|
required: l.required
|
|
1288
|
-
},
|
|
1288
|
+
}, ve({
|
|
1289
1289
|
"label.prepend": I(() => [
|
|
1290
|
-
|
|
1290
|
+
h(f.$slots, "label.prepend")
|
|
1291
1291
|
]),
|
|
1292
1292
|
"label.append": I(() => [
|
|
1293
|
-
|
|
1293
|
+
h(f.$slots, "label.append")
|
|
1294
1294
|
]),
|
|
1295
1295
|
default: I(() => [
|
|
1296
|
-
We(
|
|
1297
|
-
"onUpdate:modelValue": _[0] || (_[0] = (C) =>
|
|
1296
|
+
We(W("input", P({
|
|
1297
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => p.value = C),
|
|
1298
1298
|
ref_key: "inputRef",
|
|
1299
1299
|
ref: i,
|
|
1300
1300
|
class: "q-text-field__input",
|
|
@@ -1305,30 +1305,30 @@ const Qt = ["role"], Rt = {
|
|
|
1305
1305
|
readonly: l.readonly,
|
|
1306
1306
|
disabled: l.disabled,
|
|
1307
1307
|
maxlength: l.maxLength
|
|
1308
|
-
},
|
|
1309
|
-
[je,
|
|
1308
|
+
}, f.$attrs), null, 16, jt), [
|
|
1309
|
+
[je, p.value]
|
|
1310
1310
|
])
|
|
1311
1311
|
]),
|
|
1312
1312
|
_: 2
|
|
1313
1313
|
}, [
|
|
1314
|
-
|
|
1314
|
+
f.$slots.prepend ? {
|
|
1315
1315
|
name: "prepend",
|
|
1316
1316
|
fn: I(() => [
|
|
1317
|
-
|
|
1317
|
+
h(f.$slots, "prepend")
|
|
1318
1318
|
]),
|
|
1319
1319
|
key: "0"
|
|
1320
1320
|
} : void 0,
|
|
1321
|
-
|
|
1321
|
+
f.$slots.append ? {
|
|
1322
1322
|
name: "append",
|
|
1323
1323
|
fn: I(() => [
|
|
1324
|
-
|
|
1324
|
+
h(f.$slots, "append")
|
|
1325
1325
|
]),
|
|
1326
1326
|
key: "1"
|
|
1327
1327
|
} : void 0,
|
|
1328
|
-
|
|
1328
|
+
f.$slots.extras ? {
|
|
1329
1329
|
name: "extras",
|
|
1330
1330
|
fn: I(() => [
|
|
1331
|
-
|
|
1331
|
+
h(f.$slots, "extras")
|
|
1332
1332
|
]),
|
|
1333
1333
|
key: "2"
|
|
1334
1334
|
} : void 0
|
|
@@ -1343,7 +1343,7 @@ const Qt = ["role"], Rt = {
|
|
|
1343
1343
|
clear: {
|
|
1344
1344
|
icon: "close"
|
|
1345
1345
|
}
|
|
1346
|
-
}, en = /* @__PURE__ */
|
|
1346
|
+
}, en = /* @__PURE__ */ x({
|
|
1347
1347
|
__name: "QCombobox",
|
|
1348
1348
|
props: {
|
|
1349
1349
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1368,7 +1368,7 @@ const Qt = ["role"], Rt = {
|
|
|
1368
1368
|
},
|
|
1369
1369
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1370
1370
|
setup(n, { expose: t, emit: o }) {
|
|
1371
|
-
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""),
|
|
1371
|
+
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""), p = q(void 0), m = q(null), f = q(null), _ = q(null);
|
|
1372
1372
|
Te(Q);
|
|
1373
1373
|
const C = g(
|
|
1374
1374
|
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
@@ -1381,14 +1381,14 @@ const Qt = ["role"], Rt = {
|
|
|
1381
1381
|
var s;
|
|
1382
1382
|
return (s = l.items) == null ? void 0 : s.find((w) => w[l.itemValue] === a.value);
|
|
1383
1383
|
}), R = g(() => {
|
|
1384
|
-
const s =
|
|
1384
|
+
const s = p.value;
|
|
1385
1385
|
if (s !== void 0 && E.value[s])
|
|
1386
1386
|
return E.value[s];
|
|
1387
1387
|
}), O = g(() => {
|
|
1388
1388
|
var w;
|
|
1389
|
-
if (
|
|
1389
|
+
if (p.value === void 0)
|
|
1390
1390
|
return;
|
|
1391
|
-
const s = (w =
|
|
1391
|
+
const s = (w = f.value) == null ? void 0 : w.getItem(p.value);
|
|
1392
1392
|
return s == null ? void 0 : s.id;
|
|
1393
1393
|
}), z = g(() => {
|
|
1394
1394
|
var s;
|
|
@@ -1397,7 +1397,7 @@ const Qt = ["role"], Rt = {
|
|
|
1397
1397
|
function H(s) {
|
|
1398
1398
|
a.value = s, Q(), e("update:modelValue", s);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function j(s) {
|
|
1401
1401
|
H(s), U();
|
|
1402
1402
|
}
|
|
1403
1403
|
function Q() {
|
|
@@ -1408,63 +1408,63 @@ const Qt = ["role"], Rt = {
|
|
|
1408
1408
|
r.value || l.readonly || l.disabled || (e("before-show"), r.value = !0);
|
|
1409
1409
|
}
|
|
1410
1410
|
function U() {
|
|
1411
|
-
r.value && (e("before-hide"), r.value = !1,
|
|
1411
|
+
r.value && (e("before-hide"), r.value = !1, p.value = void 0);
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1414
|
-
H(void 0),
|
|
1413
|
+
function X() {
|
|
1414
|
+
H(void 0), p.value = void 0;
|
|
1415
1415
|
}
|
|
1416
1416
|
function K() {
|
|
1417
1417
|
if (M(), A.value !== void 0) {
|
|
1418
1418
|
const s = E.value.indexOf(A.value);
|
|
1419
|
-
s !== -1 &&
|
|
1419
|
+
s !== -1 && Y(() => _e(s));
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function y(s) {
|
|
1423
1423
|
var w, D;
|
|
1424
1424
|
if (!(!s.key || l.readonly || l.disabled))
|
|
1425
1425
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
|
|
1426
|
-
r.value ? U() :
|
|
1426
|
+
r.value ? U() : X();
|
|
1427
1427
|
else if (["ArrowDown", "ArrowUp"].includes(s.key))
|
|
1428
|
-
r.value ?
|
|
1429
|
-
if (
|
|
1430
|
-
|
|
1428
|
+
r.value ? Y(() => {
|
|
1429
|
+
if (p.value === void 0)
|
|
1430
|
+
u();
|
|
1431
1431
|
else {
|
|
1432
1432
|
const G = s.key === "ArrowDown" ? "next" : "prev";
|
|
1433
|
-
b(
|
|
1433
|
+
b(p.value, G);
|
|
1434
1434
|
}
|
|
1435
|
-
}) : (M(),
|
|
1436
|
-
s.key === "ArrowDown" ?
|
|
1435
|
+
}) : (M(), Y(() => {
|
|
1436
|
+
s.key === "ArrowDown" ? u() : d();
|
|
1437
1437
|
}));
|
|
1438
1438
|
else if (s.key === "Enter") {
|
|
1439
1439
|
if (R.value === void 0)
|
|
1440
1440
|
return;
|
|
1441
|
-
|
|
1441
|
+
j(R.value[l.itemValue]);
|
|
1442
1442
|
} else
|
|
1443
|
-
s.key === "Home" ?
|
|
1443
|
+
s.key === "Home" ? p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex() : s.key === "End" ? p.value = (D = f.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function u() {
|
|
1446
1446
|
var s, w;
|
|
1447
1447
|
if (a.value !== void 0) {
|
|
1448
1448
|
const D = E.value.findIndex(
|
|
1449
1449
|
(G) => G[l.itemValue] === a.value
|
|
1450
1450
|
);
|
|
1451
|
-
D === -1 ?
|
|
1451
|
+
D === -1 ? p.value = (s = f.value) == null ? void 0 : s.getFirstFocusableItemIndex() : p.value = D;
|
|
1452
1452
|
} else
|
|
1453
|
-
|
|
1453
|
+
p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1454
1454
|
}
|
|
1455
1455
|
function d() {
|
|
1456
1456
|
var s;
|
|
1457
|
-
|
|
1457
|
+
p.value = (s = f.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1458
1458
|
}
|
|
1459
1459
|
function b(s, w) {
|
|
1460
1460
|
var D;
|
|
1461
|
-
|
|
1461
|
+
p.value = (D = f.value) == null ? void 0 : D.getAdjacentItemIndex(s, w);
|
|
1462
1462
|
}
|
|
1463
1463
|
function k(s) {
|
|
1464
1464
|
var w, D, G;
|
|
1465
1465
|
!((w = _.value) != null && w.contains(s.relatedTarget)) && !((G = (D = m.value) == null ? void 0 : D.fieldRef) != null && G.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function S() {
|
|
1468
1468
|
var s, w;
|
|
1469
1469
|
(w = (s = m.value) == null ? void 0 : s.inputRef) == null || w.focus();
|
|
1470
1470
|
}
|
|
@@ -1474,9 +1474,9 @@ const Qt = ["role"], Rt = {
|
|
|
1474
1474
|
function Me() {
|
|
1475
1475
|
e("hide");
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function _e(s) {
|
|
1478
1478
|
var D;
|
|
1479
|
-
const w = (D =
|
|
1479
|
+
const w = (D = f.value) == null ? void 0 : D.getItem(s);
|
|
1480
1480
|
w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1481
1481
|
}
|
|
1482
1482
|
return F(
|
|
@@ -1484,14 +1484,14 @@ const Qt = ["role"], Rt = {
|
|
|
1484
1484
|
(s) => {
|
|
1485
1485
|
a.value = s, Q();
|
|
1486
1486
|
}
|
|
1487
|
-
), F(
|
|
1488
|
-
s !== void 0 &&
|
|
1487
|
+
), F(p, (s) => {
|
|
1488
|
+
s !== void 0 && _e(s);
|
|
1489
1489
|
}), F(i, (s) => {
|
|
1490
|
-
!s && C.value ?
|
|
1490
|
+
!s && C.value ? X() : r.value && l.selectionMode === "automatic" && Y(u), e("update:inputValue", s);
|
|
1491
1491
|
}), t({
|
|
1492
1492
|
triggerEl: m
|
|
1493
|
-
}), (s, w) => (
|
|
1494
|
-
|
|
1493
|
+
}), (s, w) => (c(), v(J, null, [
|
|
1494
|
+
Z($(Yt), {
|
|
1495
1495
|
modelValue: i.value,
|
|
1496
1496
|
"onUpdate:modelValue": w[0] || (w[0] = (D) => i.value = D),
|
|
1497
1497
|
id: l.id,
|
|
@@ -1511,43 +1511,43 @@ const Qt = ["role"], Rt = {
|
|
|
1511
1511
|
size: l.size,
|
|
1512
1512
|
onClick: K,
|
|
1513
1513
|
onFocusout: k,
|
|
1514
|
-
onKeydown: ne(
|
|
1515
|
-
},
|
|
1514
|
+
onKeydown: ne(y, ["stop"])
|
|
1515
|
+
}, ve({
|
|
1516
1516
|
"label.prepend": I(() => [
|
|
1517
|
-
|
|
1517
|
+
h(s.$slots, "label.prepend")
|
|
1518
1518
|
]),
|
|
1519
1519
|
"label.append": I(() => [
|
|
1520
|
-
|
|
1520
|
+
h(s.$slots, "label.append")
|
|
1521
1521
|
]),
|
|
1522
1522
|
_: 2
|
|
1523
1523
|
}, [
|
|
1524
1524
|
s.$slots.prepend ? {
|
|
1525
1525
|
name: "prepend",
|
|
1526
1526
|
fn: I(() => [
|
|
1527
|
-
|
|
1527
|
+
h(s.$slots, "prepend")
|
|
1528
1528
|
]),
|
|
1529
1529
|
key: "0"
|
|
1530
1530
|
} : void 0,
|
|
1531
1531
|
C.value && i.value || s.$slots.append ? {
|
|
1532
1532
|
name: "append",
|
|
1533
1533
|
fn: I(() => [
|
|
1534
|
-
C.value && i.value ? (
|
|
1534
|
+
C.value && i.value ? (c(), B($(ee), P({ key: 0 }, l.icons.clear, {
|
|
1535
1535
|
class: "q-combobox__clear",
|
|
1536
|
-
onClick: ne(
|
|
1537
|
-
}), null, 16)) :
|
|
1538
|
-
|
|
1536
|
+
onClick: ne(X, ["stop", "prevent"])
|
|
1537
|
+
}), null, 16)) : L("", !0),
|
|
1538
|
+
h(s.$slots, "append")
|
|
1539
1539
|
]),
|
|
1540
1540
|
key: "1"
|
|
1541
1541
|
} : void 0,
|
|
1542
1542
|
s.$slots.extras ? {
|
|
1543
1543
|
name: "extras",
|
|
1544
1544
|
fn: I(() => [
|
|
1545
|
-
|
|
1545
|
+
h(s.$slots, "extras")
|
|
1546
1546
|
]),
|
|
1547
1547
|
key: "2"
|
|
1548
1548
|
} : void 0
|
|
1549
1549
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1550
|
-
|
|
1550
|
+
Z($(de), {
|
|
1551
1551
|
"model-value": r.value,
|
|
1552
1552
|
spy: "",
|
|
1553
1553
|
trigger: "manual",
|
|
@@ -1561,40 +1561,40 @@ const Qt = ["role"], Rt = {
|
|
|
1561
1561
|
default: I(() => {
|
|
1562
1562
|
var D;
|
|
1563
1563
|
return [
|
|
1564
|
-
|
|
1564
|
+
W("div", {
|
|
1565
1565
|
ref_key: "contentRef",
|
|
1566
1566
|
ref: _,
|
|
1567
1567
|
class: "q-select__body",
|
|
1568
1568
|
onFocusout: k
|
|
1569
1569
|
}, [
|
|
1570
|
-
|
|
1571
|
-
l.loading ? (
|
|
1570
|
+
h(s.$slots, "body.prepend"),
|
|
1571
|
+
l.loading ? (c(), B($(be), {
|
|
1572
1572
|
key: 0,
|
|
1573
1573
|
class: "q-select__loader",
|
|
1574
1574
|
size: 24
|
|
1575
|
-
})) : E.value.length ? (
|
|
1575
|
+
})) : E.value.length ? (c(), B($(Qe), {
|
|
1576
1576
|
key: 1,
|
|
1577
1577
|
ref_key: "listRef",
|
|
1578
|
-
ref:
|
|
1578
|
+
ref: f,
|
|
1579
1579
|
class: "q-select__items",
|
|
1580
1580
|
modelValue: a.value,
|
|
1581
1581
|
"onUpdate:modelValue": [
|
|
1582
1582
|
w[1] || (w[1] = (G) => a.value = G),
|
|
1583
|
-
|
|
1583
|
+
j
|
|
1584
1584
|
],
|
|
1585
1585
|
highlighted: (D = R.value) == null ? void 0 : D[l.itemValue],
|
|
1586
1586
|
items: E.value,
|
|
1587
1587
|
groups: s.groups,
|
|
1588
1588
|
"item-label": l.itemLabel,
|
|
1589
1589
|
"item-value": l.itemValue,
|
|
1590
|
-
onMouseup:
|
|
1590
|
+
onMouseup: S
|
|
1591
1591
|
}, {
|
|
1592
1592
|
item: I(({ item: G }) => [
|
|
1593
|
-
|
|
1593
|
+
h(s.$slots, "item", { item: G })
|
|
1594
1594
|
]),
|
|
1595
1595
|
_: 3
|
|
1596
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
1597
|
-
|
|
1596
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Pt, N(s.texts.noData), 1)),
|
|
1597
|
+
h(s.$slots, "body.append")
|
|
1598
1598
|
], 544)
|
|
1599
1599
|
];
|
|
1600
1600
|
}),
|
|
@@ -1608,7 +1608,7 @@ const Qt = ["role"], Rt = {
|
|
|
1608
1608
|
}, nn = { key: 0 }, ln = {
|
|
1609
1609
|
key: 1,
|
|
1610
1610
|
class: "q-input-group__append"
|
|
1611
|
-
}, on = { key: 0 }, an = /* @__PURE__ */
|
|
1611
|
+
}, on = { key: 0 }, an = /* @__PURE__ */ x({
|
|
1612
1612
|
__name: "QInputGroup",
|
|
1613
1613
|
props: {
|
|
1614
1614
|
id: { default: () => te() },
|
|
@@ -1625,7 +1625,7 @@ const Qt = ["role"], Rt = {
|
|
|
1625
1625
|
QField: {
|
|
1626
1626
|
size: "block"
|
|
1627
1627
|
}
|
|
1628
|
-
}), (o, e) => (
|
|
1628
|
+
}), (o, e) => (c(), B($(ge), {
|
|
1629
1629
|
id: t.id,
|
|
1630
1630
|
class: T(["q-input-group", t.class]),
|
|
1631
1631
|
label: t.label,
|
|
@@ -1633,31 +1633,31 @@ const Qt = ["role"], Rt = {
|
|
|
1633
1633
|
size: t.size
|
|
1634
1634
|
}, {
|
|
1635
1635
|
default: I(() => [
|
|
1636
|
-
o.$slots.prepend || t.prependIcon ? (
|
|
1637
|
-
t.prependIcon ? (
|
|
1638
|
-
|
|
1639
|
-
])) :
|
|
1640
|
-
|
|
1641
|
-
])) :
|
|
1642
|
-
|
|
1643
|
-
o.$slots.append || t.appendIcon ? (
|
|
1644
|
-
t.appendIcon ? (
|
|
1645
|
-
|
|
1646
|
-
])) :
|
|
1647
|
-
|
|
1648
|
-
])) :
|
|
1636
|
+
o.$slots.prepend || t.prependIcon ? (c(), v("div", tn, [
|
|
1637
|
+
t.prependIcon ? (c(), v("span", nn, [
|
|
1638
|
+
Z($(ee), ie(we(t.prependIcon)), null, 16)
|
|
1639
|
+
])) : L("", !0),
|
|
1640
|
+
h(o.$slots, "prepend")
|
|
1641
|
+
])) : L("", !0),
|
|
1642
|
+
h(o.$slots, "default"),
|
|
1643
|
+
o.$slots.append || t.appendIcon ? (c(), v("div", ln, [
|
|
1644
|
+
t.appendIcon ? (c(), v("span", on, [
|
|
1645
|
+
Z($(ee), ie(we(t.appendIcon)), null, 16)
|
|
1646
|
+
])) : L("", !0),
|
|
1647
|
+
h(o.$slots, "append")
|
|
1648
|
+
])) : L("", !0)
|
|
1649
1649
|
]),
|
|
1650
1650
|
_: 3
|
|
1651
1651
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1652
1652
|
}
|
|
1653
|
-
}), Sn = V(an), sn = /* @__PURE__ */
|
|
1653
|
+
}), Sn = V(an), sn = /* @__PURE__ */ x({
|
|
1654
1654
|
__name: "QLineLoader",
|
|
1655
1655
|
props: {
|
|
1656
1656
|
class: { default: void 0 }
|
|
1657
1657
|
},
|
|
1658
1658
|
setup(n) {
|
|
1659
1659
|
const t = n;
|
|
1660
|
-
return (o, e) => (
|
|
1660
|
+
return (o, e) => (c(), v("div", {
|
|
1661
1661
|
class: T(["q-line-loader", t.class])
|
|
1662
1662
|
}, null, 2));
|
|
1663
1663
|
}
|
|
@@ -1667,7 +1667,7 @@ const Qt = ["role"], Rt = {
|
|
|
1667
1667
|
}, dn = {
|
|
1668
1668
|
key: 1,
|
|
1669
1669
|
class: "q-popover__body"
|
|
1670
|
-
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */
|
|
1670
|
+
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ x({
|
|
1671
1671
|
inheritAttrs: !1,
|
|
1672
1672
|
__name: "QPopover",
|
|
1673
1673
|
props: {
|
|
@@ -1684,7 +1684,7 @@ const Qt = ["role"], Rt = {
|
|
|
1684
1684
|
},
|
|
1685
1685
|
setup(n) {
|
|
1686
1686
|
const t = n;
|
|
1687
|
-
return (o, e) => (
|
|
1687
|
+
return (o, e) => (c(), B($(de), {
|
|
1688
1688
|
"model-value": t.modelValue,
|
|
1689
1689
|
class: "q-popover",
|
|
1690
1690
|
trigger: "click",
|
|
@@ -1696,17 +1696,17 @@ const Qt = ["role"], Rt = {
|
|
|
1696
1696
|
spy: t.spy
|
|
1697
1697
|
}, {
|
|
1698
1698
|
default: I(() => [
|
|
1699
|
-
t.title || o.$slots.header ? (
|
|
1699
|
+
t.title || o.$slots.header ? (c(), v("h3", rn, [
|
|
1700
1700
|
ae(N(t.title) + " ", 1),
|
|
1701
|
-
|
|
1702
|
-
])) :
|
|
1703
|
-
t.text || o.$slots.body ? (
|
|
1704
|
-
t.html ? (
|
|
1701
|
+
h(o.$slots, "header")
|
|
1702
|
+
])) : L("", !0),
|
|
1703
|
+
t.text || o.$slots.body ? (c(), v("div", dn, [
|
|
1704
|
+
t.html ? (c(), v("span", {
|
|
1705
1705
|
key: 0,
|
|
1706
1706
|
innerHTML: t.text
|
|
1707
|
-
}, null, 8, un)) : (
|
|
1708
|
-
|
|
1709
|
-
])) :
|
|
1707
|
+
}, null, 8, un)) : (c(), v("span", cn, N(t.text), 1)),
|
|
1708
|
+
h(o.$slots, "body")
|
|
1709
|
+
])) : L("", !0)
|
|
1710
1710
|
]),
|
|
1711
1711
|
_: 3
|
|
1712
1712
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
@@ -1726,7 +1726,7 @@ const Qt = ["role"], Rt = {
|
|
|
1726
1726
|
clear: {
|
|
1727
1727
|
icon: "close"
|
|
1728
1728
|
}
|
|
1729
|
-
},
|
|
1729
|
+
}, yn = /* @__PURE__ */ x({
|
|
1730
1730
|
__name: "QSelect",
|
|
1731
1731
|
props: {
|
|
1732
1732
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1748,18 +1748,18 @@ const Qt = ["role"], Rt = {
|
|
|
1748
1748
|
},
|
|
1749
1749
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1750
1750
|
setup(n, { emit: t }) {
|
|
1751
|
-
const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null),
|
|
1751
|
+
const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null), p = q(null), m = q(null), f = g(
|
|
1752
1752
|
() => {
|
|
1753
|
-
var
|
|
1754
|
-
return (
|
|
1753
|
+
var u;
|
|
1754
|
+
return (u = e.items) == null ? void 0 : u.find((d) => d[e.itemValue] === l.value);
|
|
1755
1755
|
}
|
|
1756
1756
|
), _ = g(
|
|
1757
|
-
() =>
|
|
1757
|
+
() => f.value ? f.value[e.itemLabel] : ""
|
|
1758
1758
|
), C = g(
|
|
1759
1759
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1760
1760
|
);
|
|
1761
|
-
function E(
|
|
1762
|
-
l.value =
|
|
1761
|
+
function E(u) {
|
|
1762
|
+
l.value = u, o("update:modelValue", u), H();
|
|
1763
1763
|
}
|
|
1764
1764
|
function A() {
|
|
1765
1765
|
C.value && E(void 0);
|
|
@@ -1767,9 +1767,9 @@ const Qt = ["role"], Rt = {
|
|
|
1767
1767
|
function R() {
|
|
1768
1768
|
e.readonly || e.disabled || (a.value ? H() : z());
|
|
1769
1769
|
}
|
|
1770
|
-
function O(
|
|
1770
|
+
function O(u) {
|
|
1771
1771
|
var d, b, k;
|
|
1772
|
-
!((d = m.value) != null && d.contains(
|
|
1772
|
+
!((d = m.value) != null && d.contains(u.relatedTarget)) && !((k = (b = i.value) == null ? void 0 : b.fieldRef) != null && k.contains(u.relatedTarget)) && H();
|
|
1773
1773
|
}
|
|
1774
1774
|
function z() {
|
|
1775
1775
|
a.value || (o("before-show"), a.value = !0);
|
|
@@ -1777,55 +1777,55 @@ const Qt = ["role"], Rt = {
|
|
|
1777
1777
|
function H() {
|
|
1778
1778
|
a.value && (o("before-hide"), a.value = !1);
|
|
1779
1779
|
}
|
|
1780
|
-
let
|
|
1781
|
-
function Q(
|
|
1782
|
-
if (!(!
|
|
1783
|
-
if (window.clearTimeout(
|
|
1784
|
-
r.value +=
|
|
1780
|
+
let j;
|
|
1781
|
+
function Q(u) {
|
|
1782
|
+
if (!(!u.key || e.readonly || e.disabled)) {
|
|
1783
|
+
if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (a.value = !0), ["Escape", "Tab"].includes(u.key) && (a.value ? a.value = !1 : e.clearable && u.key === "Escape" && A()), u.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(u.key)) {
|
|
1784
|
+
r.value += u.key.toLowerCase();
|
|
1785
1785
|
for (let d = 0; d < e.items.length; d++)
|
|
1786
1786
|
if (e.items[d][e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
1787
|
-
|
|
1787
|
+
y(d);
|
|
1788
1788
|
break;
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
|
|
1791
|
+
j = window.setTimeout(function() {
|
|
1792
1792
|
r.value = "";
|
|
1793
1793
|
}, 500);
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
function M() {
|
|
1797
|
-
var
|
|
1798
|
-
e.loading ? (
|
|
1797
|
+
var u;
|
|
1798
|
+
e.loading ? (u = m.value) == null || u.focus() : K(), o("show");
|
|
1799
1799
|
}
|
|
1800
1800
|
function U() {
|
|
1801
|
-
|
|
1801
|
+
X(), o("hide");
|
|
1802
1802
|
}
|
|
1803
|
-
function
|
|
1804
|
-
var
|
|
1805
|
-
(d = (
|
|
1803
|
+
function X() {
|
|
1804
|
+
var u, d;
|
|
1805
|
+
(d = (u = i.value) == null ? void 0 : u.fieldRef) == null || d.focus();
|
|
1806
1806
|
}
|
|
1807
1807
|
function K() {
|
|
1808
|
-
var
|
|
1809
|
-
(
|
|
1808
|
+
var u;
|
|
1809
|
+
(u = p.value) == null || u.$el.focus();
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function y(u) {
|
|
1812
1812
|
var d;
|
|
1813
|
-
(d =
|
|
1813
|
+
(d = p.value) == null || d.focusItem(u);
|
|
1814
1814
|
}
|
|
1815
1815
|
return F(
|
|
1816
1816
|
() => e.modelValue,
|
|
1817
|
-
(
|
|
1818
|
-
l.value =
|
|
1817
|
+
(u) => {
|
|
1818
|
+
l.value = u;
|
|
1819
1819
|
}
|
|
1820
1820
|
), F(
|
|
1821
1821
|
() => e.loading,
|
|
1822
|
-
(
|
|
1823
|
-
!
|
|
1822
|
+
(u) => {
|
|
1823
|
+
!u && a.value && Y(K);
|
|
1824
1824
|
}
|
|
1825
|
-
), (
|
|
1825
|
+
), (u, d) => {
|
|
1826
1826
|
var b;
|
|
1827
|
-
return
|
|
1828
|
-
|
|
1827
|
+
return c(), v(J, null, [
|
|
1828
|
+
Z($(ge), {
|
|
1829
1829
|
id: e.id,
|
|
1830
1830
|
label: e.label,
|
|
1831
1831
|
required: e.required,
|
|
@@ -1849,35 +1849,44 @@ const Qt = ["role"], Rt = {
|
|
|
1849
1849
|
size: e.size,
|
|
1850
1850
|
onClick: R,
|
|
1851
1851
|
onKeydown: ne(Q, ["stop"])
|
|
1852
|
-
},
|
|
1852
|
+
}, ve({
|
|
1853
1853
|
append: I(() => [
|
|
1854
|
-
|
|
1854
|
+
h(u.$slots, "append"),
|
|
1855
|
+
C.value && l.value ? (c(), B($(ee), P({ key: 0 }, e.icons.clear, {
|
|
1855
1856
|
class: "q-select__clear",
|
|
1856
1857
|
onClick: ne(A, ["stop", "prevent"])
|
|
1857
|
-
}), null, 16)) :
|
|
1858
|
-
e.readonly ?
|
|
1858
|
+
}), null, 16)) : L("", !0),
|
|
1859
|
+
e.readonly ? L("", !0) : (c(), B($(ee), P({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1859
1860
|
]),
|
|
1860
1861
|
default: I(() => [
|
|
1861
|
-
l.value !== void 0 ? (
|
|
1862
|
-
!e.readonly && !e.disabled ? (
|
|
1863
|
-
ae(N(
|
|
1864
|
-
], 64)) :
|
|
1862
|
+
l.value !== void 0 ? (c(), v("span", pn, N(_.value), 1)) : (c(), v("span", mn, [
|
|
1863
|
+
!e.readonly && !e.disabled ? (c(), v(J, { key: 0 }, [
|
|
1864
|
+
ae(N(u.texts.placeholder), 1)
|
|
1865
|
+
], 64)) : L("", !0)
|
|
1865
1866
|
]))
|
|
1866
1867
|
]),
|
|
1867
1868
|
_: 2
|
|
1868
1869
|
}, [
|
|
1869
|
-
(b =
|
|
1870
|
+
(b = f.value) != null && b.icon || u.$slots.prepend ? {
|
|
1870
1871
|
name: "prepend",
|
|
1871
1872
|
fn: I(() => {
|
|
1872
|
-
var k;
|
|
1873
|
+
var k, S;
|
|
1873
1874
|
return [
|
|
1874
|
-
|
|
1875
|
+
h(u.$slots, "prepend"),
|
|
1876
|
+
(k = f.value) != null && k.icon ? (c(), B($(ee), ie(P({ key: 0 }, (S = f.value) == null ? void 0 : S.icon)), null, 16)) : L("", !0)
|
|
1875
1877
|
];
|
|
1876
1878
|
}),
|
|
1877
1879
|
key: "0"
|
|
1880
|
+
} : void 0,
|
|
1881
|
+
u.$slots.extras ? {
|
|
1882
|
+
name: "extras",
|
|
1883
|
+
fn: I(() => [
|
|
1884
|
+
h(u.$slots, "extras")
|
|
1885
|
+
]),
|
|
1886
|
+
key: "1"
|
|
1878
1887
|
} : void 0
|
|
1879
1888
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1880
|
-
|
|
1889
|
+
Z($(de), {
|
|
1881
1890
|
"model-value": a.value,
|
|
1882
1891
|
spy: "",
|
|
1883
1892
|
trigger: "manual",
|
|
@@ -1889,7 +1898,7 @@ const Qt = ["role"], Rt = {
|
|
|
1889
1898
|
onLeave: U
|
|
1890
1899
|
}, {
|
|
1891
1900
|
default: I(() => [
|
|
1892
|
-
|
|
1901
|
+
W("div", {
|
|
1893
1902
|
ref_key: "contentRef",
|
|
1894
1903
|
ref: m,
|
|
1895
1904
|
class: "q-select__body",
|
|
@@ -1897,15 +1906,15 @@ const Qt = ["role"], Rt = {
|
|
|
1897
1906
|
onFocusout: O,
|
|
1898
1907
|
onKeydown: ne(Q, ["stop"])
|
|
1899
1908
|
}, [
|
|
1900
|
-
|
|
1901
|
-
e.loading ? (
|
|
1909
|
+
h(u.$slots, "body.prepend"),
|
|
1910
|
+
e.loading ? (c(), B($(be), {
|
|
1902
1911
|
key: 0,
|
|
1903
1912
|
class: "q-select__loader",
|
|
1904
1913
|
size: 24
|
|
1905
|
-
})) : (
|
|
1914
|
+
})) : (c(), B($(Qe), {
|
|
1906
1915
|
key: 1,
|
|
1907
1916
|
ref_key: "listRef",
|
|
1908
|
-
ref:
|
|
1917
|
+
ref: p,
|
|
1909
1918
|
class: "q-select__items",
|
|
1910
1919
|
modelValue: l.value,
|
|
1911
1920
|
"onUpdate:modelValue": [
|
|
@@ -1913,16 +1922,16 @@ const Qt = ["role"], Rt = {
|
|
|
1913
1922
|
E
|
|
1914
1923
|
],
|
|
1915
1924
|
items: e.items,
|
|
1916
|
-
groups:
|
|
1925
|
+
groups: u.groups,
|
|
1917
1926
|
"item-label": e.itemLabel,
|
|
1918
1927
|
"item-value": e.itemValue
|
|
1919
1928
|
}, {
|
|
1920
1929
|
item: I(({ item: k }) => [
|
|
1921
|
-
|
|
1930
|
+
h(u.$slots, "item", { item: k })
|
|
1922
1931
|
]),
|
|
1923
1932
|
_: 3
|
|
1924
1933
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
1925
|
-
|
|
1934
|
+
h(u.$slots, "body.append")
|
|
1926
1935
|
], 544)
|
|
1927
1936
|
]),
|
|
1928
1937
|
_: 3
|
|
@@ -1930,7 +1939,7 @@ const Qt = ["role"], Rt = {
|
|
|
1930
1939
|
], 64);
|
|
1931
1940
|
};
|
|
1932
1941
|
}
|
|
1933
|
-
}), xn = V(
|
|
1942
|
+
}), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ x({
|
|
1934
1943
|
__name: "QTooltip",
|
|
1935
1944
|
props: {
|
|
1936
1945
|
modelValue: { type: Boolean },
|
|
@@ -1949,11 +1958,11 @@ const Qt = ["role"], Rt = {
|
|
|
1949
1958
|
},
|
|
1950
1959
|
setup(n) {
|
|
1951
1960
|
const t = n;
|
|
1952
|
-
return (o, e) => (
|
|
1953
|
-
|
|
1961
|
+
return (o, e) => (c(), v(J, null, [
|
|
1962
|
+
h(o.$slots, "anchor", {
|
|
1954
1963
|
props: { "aria-describedby": t.id }
|
|
1955
1964
|
}),
|
|
1956
|
-
|
|
1965
|
+
Z($(de), {
|
|
1957
1966
|
"model-value": t.modelValue,
|
|
1958
1967
|
anchor: t.anchor,
|
|
1959
1968
|
role: "tooltip",
|
|
@@ -1968,10 +1977,10 @@ const Qt = ["role"], Rt = {
|
|
|
1968
1977
|
trigger: t.trigger
|
|
1969
1978
|
}, {
|
|
1970
1979
|
default: I(() => [
|
|
1971
|
-
t.html ? (
|
|
1980
|
+
t.html ? (c(), v("span", {
|
|
1972
1981
|
key: 0,
|
|
1973
1982
|
innerHTML: t.text
|
|
1974
|
-
}, null, 8,
|
|
1983
|
+
}, null, 8, bn)) : (c(), v("span", gn, N(t.text), 1))
|
|
1975
1984
|
]),
|
|
1976
1985
|
_: 1
|
|
1977
1986
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
@@ -1983,8 +1992,8 @@ export {
|
|
|
1983
1992
|
ft as QButtonGroup,
|
|
1984
1993
|
In as QButtonToggle,
|
|
1985
1994
|
qn as QCombobox,
|
|
1986
|
-
|
|
1987
|
-
|
|
1995
|
+
ge as QField,
|
|
1996
|
+
ee as QIcon,
|
|
1988
1997
|
wt as QIconFont,
|
|
1989
1998
|
$t as QIconImg,
|
|
1990
1999
|
It as QIconSvg,
|
|
@@ -1996,7 +2005,7 @@ export {
|
|
|
1996
2005
|
de as QOverlay,
|
|
1997
2006
|
Bn as QPopover,
|
|
1998
2007
|
xn as QSelect,
|
|
1999
|
-
|
|
2008
|
+
be as QSpinnerLoader,
|
|
2000
2009
|
Yt as QTextField,
|
|
2001
2010
|
Vn as QTooltip,
|
|
2002
2011
|
$n as createFramework,
|