@quidgest/ui 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.css +6 -2
- package/dist/ui.esm.js +269 -263
- package/dist/ui.js +4 -4
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +47 -47
- package/dist/ui.scss +7 -3
- package/esm/components/QDialog/QDialog.d.ts +8 -4
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +28 -28
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +34 -34
- package/esm/components/QTooltip/QTooltip.d.ts +15 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +44 -27
- package/esm/components/QTooltip/index.d.ts +20 -0
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as L, computed as k, openBlock as u, createElementBlock as
|
|
1
|
+
import { defineComponent as L, computed as k, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as x, resolveDynamicComponent as Ke, h as Ae, withCtx as _, normalizeProps as W, guardReactiveProps as ie, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.13.
|
|
3
|
+
* Quidgest UI v0.13.1
|
|
4
4
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -66,7 +66,7 @@ const Le = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
71
|
defaultDarkColorScheme: Ge,
|
|
72
72
|
defaultLightColorScheme: Le
|
|
@@ -80,9 +80,9 @@ const Le = {
|
|
|
80
80
|
const o = t, e = k(() => ({
|
|
81
81
|
"font-size": o.size !== 48 ? `${o.size}px` : void 0
|
|
82
82
|
}));
|
|
83
|
-
return (n, l) => (u(),
|
|
83
|
+
return (n, l) => (u(), v("div", {
|
|
84
84
|
class: C(["q-spinner-loader", o.class]),
|
|
85
|
-
style:
|
|
85
|
+
style: ue(e.value)
|
|
86
86
|
}, null, 6));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -152,8 +152,8 @@ function B(t) {
|
|
|
152
152
|
return o(e, n);
|
|
153
153
|
const i = new Proxy(e, {
|
|
154
154
|
get(a, r) {
|
|
155
|
-
var
|
|
156
|
-
const f = Reflect.get(a, r), q = (
|
|
155
|
+
var I;
|
|
156
|
+
const f = Reflect.get(a, r), q = (I = l.value) == null ? void 0 : I[r];
|
|
157
157
|
return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
@@ -200,27 +200,27 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
200
200
|
e.class
|
|
201
201
|
];
|
|
202
202
|
});
|
|
203
|
-
return (a, r) => (u(),
|
|
203
|
+
return (a, r) => (u(), v("button", {
|
|
204
204
|
type: "button",
|
|
205
205
|
class: C(i.value),
|
|
206
206
|
disabled: l.value,
|
|
207
207
|
onClick: pe(s, ["stop", "prevent"])
|
|
208
208
|
}, [
|
|
209
|
-
a.loading ? (u(),
|
|
210
|
-
z(
|
|
209
|
+
a.loading ? (u(), v("div", vt, [
|
|
210
|
+
z(m(xe), { size: 20 })
|
|
211
211
|
])) : $("", !0),
|
|
212
212
|
A("span", ht, [
|
|
213
|
-
a.iconOnRight ? (u(),
|
|
214
|
-
|
|
213
|
+
a.iconOnRight ? (u(), v(te, { key: 0 }, [
|
|
214
|
+
me(N(e.label), 1)
|
|
215
215
|
], 64)) : $("", !0),
|
|
216
216
|
y(a.$slots, "default"),
|
|
217
|
-
a.iconOnRight ? $("", !0) : (u(),
|
|
218
|
-
|
|
217
|
+
a.iconOnRight ? $("", !0) : (u(), v(te, { key: 1 }, [
|
|
218
|
+
me(N(e.label), 1)
|
|
219
219
|
], 64))
|
|
220
220
|
])
|
|
221
221
|
], 10, mt));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), de = B(yt), bt = /* @__PURE__ */ L({
|
|
224
224
|
__name: "QIcon",
|
|
225
225
|
props: {
|
|
226
226
|
icon: {},
|
|
@@ -241,7 +241,7 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
return (n, l) => (u(),
|
|
244
|
+
return (n, l) => (u(), x(Ke(e.value), {
|
|
245
245
|
class: C(o.class),
|
|
246
246
|
icon: o.icon,
|
|
247
247
|
size: o.size
|
|
@@ -260,9 +260,9 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
260
260
|
const o = t, e = k(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = k(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = k(() => ({
|
|
261
261
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
262
262
|
}));
|
|
263
|
-
return (s, i) => (u(),
|
|
263
|
+
return (s, i) => (u(), v("i", {
|
|
264
264
|
class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
|
|
265
|
-
style:
|
|
265
|
+
style: ue(l.value)
|
|
266
266
|
}, null, 6));
|
|
267
267
|
}
|
|
268
268
|
}), _t = ["src"], kt = /* @__PURE__ */ L({
|
|
@@ -276,13 +276,13 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
276
276
|
const o = t, e = k(() => ({
|
|
277
277
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
278
278
|
}));
|
|
279
|
-
return (n, l) => (u(),
|
|
279
|
+
return (n, l) => (u(), v("img", {
|
|
280
280
|
src: o.icon,
|
|
281
281
|
class: C(["q-icon", "q-icon__img", o.class]),
|
|
282
|
-
style:
|
|
282
|
+
style: ue(e.value)
|
|
283
283
|
}, null, 14, _t));
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), ye = {}, wt = L({
|
|
286
286
|
name: "InlineSvg",
|
|
287
287
|
emits: {
|
|
288
288
|
loaded: (t) => typeof t == "object",
|
|
@@ -367,11 +367,11 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
367
367
|
*/
|
|
368
368
|
async getSource(t) {
|
|
369
369
|
try {
|
|
370
|
-
|
|
371
|
-
const o = await
|
|
370
|
+
ye[t] || (ye[t] = qt(this.download(t))), this.svgElSource && ye[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
371
|
+
const o = await ye[t];
|
|
372
372
|
this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
373
373
|
} catch (o) {
|
|
374
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
374
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[t], this.$emit("error", o);
|
|
375
375
|
}
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
@@ -436,11 +436,11 @@ const xt = /* @__PURE__ */ L({
|
|
|
436
436
|
function i() {
|
|
437
437
|
n("unloaded");
|
|
438
438
|
}
|
|
439
|
-
return (a, r) => (u(),
|
|
439
|
+
return (a, r) => (u(), x(m(wt), {
|
|
440
440
|
class: C(["q-icon", "q-icon__svg", e.class]),
|
|
441
441
|
src: e.bundle,
|
|
442
442
|
symbol: e.icon,
|
|
443
|
-
style:
|
|
443
|
+
style: ue(l.value),
|
|
444
444
|
onLoaded: s,
|
|
445
445
|
onUnloaded: i
|
|
446
446
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
@@ -524,8 +524,8 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
524
524
|
if (r = e.color, e.variant === "tonal")
|
|
525
525
|
f = e.color;
|
|
526
526
|
else {
|
|
527
|
-
const q = et(r),
|
|
528
|
-
f = Bt(
|
|
527
|
+
const q = et(r), I = St(q);
|
|
528
|
+
f = Bt(I.l);
|
|
529
529
|
}
|
|
530
530
|
return {
|
|
531
531
|
"--q-badge-color": r,
|
|
@@ -535,15 +535,15 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
535
535
|
function a() {
|
|
536
536
|
n("click:remove");
|
|
537
537
|
}
|
|
538
|
-
return (r, f) => (u(),
|
|
538
|
+
return (r, f) => (u(), v("span", {
|
|
539
539
|
class: C(s.value),
|
|
540
540
|
role: "presentation",
|
|
541
|
-
style:
|
|
541
|
+
style: ue(i.value)
|
|
542
542
|
}, [
|
|
543
543
|
Ct,
|
|
544
544
|
A("div", Tt, [
|
|
545
545
|
y(r.$slots, "default"),
|
|
546
|
-
e.removable ? (u(),
|
|
546
|
+
e.removable ? (u(), x(m(de), {
|
|
547
547
|
key: 0,
|
|
548
548
|
class: "q-badge__remove",
|
|
549
549
|
borderless: "",
|
|
@@ -551,7 +551,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
551
551
|
onClick: a
|
|
552
552
|
}, {
|
|
553
553
|
default: _(() => [
|
|
554
|
-
z(
|
|
554
|
+
z(m(F), W(ie(e.icons.remove)), null, 16)
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
})) : $("", !0)
|
|
@@ -575,7 +575,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
575
575
|
borderless: ze(o, "borderless"),
|
|
576
576
|
elevated: !1
|
|
577
577
|
}
|
|
578
|
-
}), (e, n) => (u(),
|
|
578
|
+
}), (e, n) => (u(), v("div", {
|
|
579
579
|
class: C([
|
|
580
580
|
"q-btn-group",
|
|
581
581
|
{
|
|
@@ -589,7 +589,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
589
589
|
}
|
|
590
590
|
}), tt = B(At), zt = /* @__PURE__ */ L({
|
|
591
591
|
__name: "QButtonToggle",
|
|
592
|
-
props: /* @__PURE__ */
|
|
592
|
+
props: /* @__PURE__ */ X({
|
|
593
593
|
options: {},
|
|
594
594
|
disabled: { type: Boolean },
|
|
595
595
|
borderless: { type: Boolean },
|
|
@@ -606,7 +606,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
606
606
|
function n(l) {
|
|
607
607
|
e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
|
|
608
608
|
}
|
|
609
|
-
return (l, s) => (u(),
|
|
609
|
+
return (l, s) => (u(), x(m(tt), {
|
|
610
610
|
"b-style": "secondary",
|
|
611
611
|
class: C(o.class),
|
|
612
612
|
disabled: o.disabled,
|
|
@@ -614,7 +614,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
614
614
|
elevated: o.elevated
|
|
615
615
|
}, {
|
|
616
616
|
default: _(() => [
|
|
617
|
-
(u(!0),
|
|
617
|
+
(u(!0), v(te, null, we(o.options, (i) => (u(), x(m(de), {
|
|
618
618
|
key: i.key,
|
|
619
619
|
title: i.title,
|
|
620
620
|
label: i.label,
|
|
@@ -632,7 +632,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
632
632
|
}
|
|
633
633
|
}), Qt = B(zt), Mt = /* @__PURE__ */ L({
|
|
634
634
|
__name: "QList",
|
|
635
|
-
props: /* @__PURE__ */
|
|
635
|
+
props: /* @__PURE__ */ X({
|
|
636
636
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
637
637
|
items: {},
|
|
638
638
|
groups: { default: () => [] },
|
|
@@ -660,7 +660,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
660
660
|
function q() {
|
|
661
661
|
l.value = !1;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function I(p) {
|
|
664
664
|
var h;
|
|
665
665
|
if ((h = a.value) != null && h.contains(p.relatedTarget))
|
|
666
666
|
return;
|
|
@@ -708,10 +708,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
708
708
|
const p = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
|
|
709
709
|
return p ? Array.from(p) : [];
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Y(p) {
|
|
712
712
|
return T()[p];
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function oe() {
|
|
715
715
|
return T().indexOf(document.activeElement);
|
|
716
716
|
}
|
|
717
717
|
function G() {
|
|
@@ -722,20 +722,20 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
722
722
|
const p = T(), g = [...p].reverse().find((c) => Q(c));
|
|
723
723
|
return g ? p.indexOf(g) : -1;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function ne(p, g, c) {
|
|
726
726
|
return g === "prev" && p === 0 || g === "next" && p === c.length - 1;
|
|
727
727
|
}
|
|
728
728
|
function H(p) {
|
|
729
|
-
const g =
|
|
730
|
-
return
|
|
729
|
+
const g = oe();
|
|
730
|
+
return le(g, p);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function le(p, g) {
|
|
733
733
|
const c = T();
|
|
734
|
-
if (
|
|
734
|
+
if (ne(p, g, c))
|
|
735
735
|
return p;
|
|
736
736
|
let h = p + (g === "next" ? 1 : -1);
|
|
737
737
|
for (; !Q(c[h]); ) {
|
|
738
|
-
if (
|
|
738
|
+
if (ne(h, g, c))
|
|
739
739
|
return p;
|
|
740
740
|
h += g === "next" ? 1 : -1;
|
|
741
741
|
}
|
|
@@ -744,34 +744,34 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
744
744
|
function Q(p) {
|
|
745
745
|
return p.tabIndex === -2;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function R(p) {
|
|
748
748
|
return p ? e.items.filter((g) => g.group === p) : e.items;
|
|
749
749
|
}
|
|
750
750
|
return o({
|
|
751
751
|
focusItem: S,
|
|
752
|
-
getItem:
|
|
753
|
-
getAdjacentItemIndex:
|
|
752
|
+
getItem: Y,
|
|
753
|
+
getAdjacentItemIndex: le,
|
|
754
754
|
getFirstFocusableItemIndex: G,
|
|
755
755
|
getLastFocusableItemIndex: O
|
|
756
|
-
}), (p, g) => (u(),
|
|
756
|
+
}), (p, g) => (u(), x(Ke(s.value), {
|
|
757
757
|
ref_key: "listRef",
|
|
758
758
|
ref: a,
|
|
759
759
|
class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
760
760
|
role: "listbox",
|
|
761
761
|
tabindex: e.disabled ? -1 : 0,
|
|
762
|
-
onFocus:
|
|
762
|
+
onFocus: I,
|
|
763
763
|
onMousedown: f,
|
|
764
764
|
onMouseup: q,
|
|
765
765
|
onKeydown: M
|
|
766
766
|
}, {
|
|
767
767
|
default: _(() => [
|
|
768
|
-
(u(!0),
|
|
768
|
+
(u(!0), v(te, null, we(i.value, (c) => (u(), x(m(nt), {
|
|
769
769
|
key: c.id,
|
|
770
770
|
id: c.id,
|
|
771
771
|
title: i.value.length === 1 ? void 0 : c.title
|
|
772
772
|
}, {
|
|
773
773
|
default: _(() => [
|
|
774
|
-
(u(!0),
|
|
774
|
+
(u(!0), v(te, null, we(R(c.id), (h) => (u(), x(m(ot), {
|
|
775
775
|
key: h[e.itemValue],
|
|
776
776
|
value: h[e.itemValue],
|
|
777
777
|
label: h[e.itemLabel],
|
|
@@ -796,7 +796,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
796
796
|
}
|
|
797
797
|
});
|
|
798
798
|
let Ft = 0;
|
|
799
|
-
function
|
|
799
|
+
function ve(t) {
|
|
800
800
|
return t || `uid-${++Ft}`;
|
|
801
801
|
}
|
|
802
802
|
const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
|
|
@@ -823,15 +823,15 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
823
823
|
},
|
|
824
824
|
emits: ["select"],
|
|
825
825
|
setup(t, { emit: o }) {
|
|
826
|
-
const e = t, n = o, l =
|
|
826
|
+
const e = t, n = o, l = ve();
|
|
827
827
|
function s() {
|
|
828
828
|
e.disabled || n("select", e.value);
|
|
829
829
|
}
|
|
830
830
|
function i(a) {
|
|
831
831
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
832
832
|
}
|
|
833
|
-
return (a, r) => (u(),
|
|
834
|
-
id:
|
|
833
|
+
return (a, r) => (u(), v("li", {
|
|
834
|
+
id: m(l),
|
|
835
835
|
"data-key": e.value,
|
|
836
836
|
role: "option",
|
|
837
837
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -851,17 +851,17 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
851
851
|
A("div", Ut, [
|
|
852
852
|
A("div", Pt, [
|
|
853
853
|
y(a.$slots, "default", {}, () => [
|
|
854
|
-
e.icon ? (u(),
|
|
855
|
-
|
|
854
|
+
e.icon ? (u(), x(m(F), W(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
|
|
855
|
+
me(" " + N(e.label), 1)
|
|
856
856
|
])
|
|
857
857
|
]),
|
|
858
|
-
e.description ? (u(),
|
|
859
|
-
z(
|
|
858
|
+
e.description ? (u(), v("div", Nt, [
|
|
859
|
+
z(m(F), W(ie(e.icons.description)), null, 16),
|
|
860
860
|
A("span", null, N(e.description), 1)
|
|
861
861
|
])) : $("", !0)
|
|
862
862
|
]),
|
|
863
863
|
A("div", Ht, [
|
|
864
|
-
e.selected ? (u(),
|
|
864
|
+
e.selected ? (u(), x(m(F), re({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
|
|
865
865
|
])
|
|
866
866
|
], 42, Ot));
|
|
867
867
|
}
|
|
@@ -872,16 +872,16 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
872
872
|
title: { default: "" }
|
|
873
873
|
},
|
|
874
874
|
setup(t) {
|
|
875
|
-
const o = t, e =
|
|
876
|
-
return (n, l) => (u(),
|
|
875
|
+
const o = t, e = ve();
|
|
876
|
+
return (n, l) => (u(), v("ul", {
|
|
877
877
|
class: "q-list-item-group",
|
|
878
878
|
role: "group",
|
|
879
879
|
"data-key": o.id,
|
|
880
|
-
"aria-labelledby": o.title ?
|
|
880
|
+
"aria-labelledby": o.title ? m(e) : void 0
|
|
881
881
|
}, [
|
|
882
|
-
o.title ? (u(),
|
|
882
|
+
o.title ? (u(), v("li", {
|
|
883
883
|
key: 0,
|
|
884
|
-
id:
|
|
884
|
+
id: m(e),
|
|
885
885
|
class: "q-list-item-group__title",
|
|
886
886
|
role: "presentation"
|
|
887
887
|
}, N(o.title), 9, Rt)) : $("", !0),
|
|
@@ -890,7 +890,7 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
890
890
|
}
|
|
891
891
|
}), Te = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
|
|
892
892
|
function Xt(t, o, e, n) {
|
|
893
|
-
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f),
|
|
893
|
+
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), I = Jt(q, f, l), M = Zt(I, a, f);
|
|
894
894
|
let E;
|
|
895
895
|
if (n != null && n.arrow) {
|
|
896
896
|
if (!r)
|
|
@@ -967,13 +967,13 @@ function to(t, o, e) {
|
|
|
967
967
|
}
|
|
968
968
|
if (!l)
|
|
969
969
|
return a;
|
|
970
|
-
const f = $e(e) === "y" ? "height" : "width", q = $e(e),
|
|
970
|
+
const f = $e(e) === "y" ? "height" : "width", q = $e(e), I = t[f] / 2 - o[f] / 2;
|
|
971
971
|
switch (l) {
|
|
972
972
|
case "start":
|
|
973
|
-
a[q] -=
|
|
973
|
+
a[q] -= I;
|
|
974
974
|
break;
|
|
975
975
|
case "end":
|
|
976
|
-
a[q] +=
|
|
976
|
+
a[q] += I;
|
|
977
977
|
break;
|
|
978
978
|
default:
|
|
979
979
|
throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
|
|
@@ -1028,7 +1028,7 @@ function ao(t) {
|
|
|
1028
1028
|
const so = ["role"], io = /* @__PURE__ */ L({
|
|
1029
1029
|
inheritAttrs: !1,
|
|
1030
1030
|
__name: "QOverlay",
|
|
1031
|
-
props: /* @__PURE__ */
|
|
1031
|
+
props: /* @__PURE__ */ X({
|
|
1032
1032
|
anchor: { default: void 0 },
|
|
1033
1033
|
appearance: { default: "regular" },
|
|
1034
1034
|
arrow: { type: Boolean },
|
|
@@ -1050,7 +1050,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1050
1050
|
modelValue: { type: Boolean },
|
|
1051
1051
|
modelModifiers: {}
|
|
1052
1052
|
}),
|
|
1053
|
-
emits: /* @__PURE__ */
|
|
1053
|
+
emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
|
|
1054
1054
|
setup(t, { emit: o }) {
|
|
1055
1055
|
const e = t, n = o, l = ee(t, "modelValue"), s = k(() => [
|
|
1056
1056
|
"q-overlay",
|
|
@@ -1071,7 +1071,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1071
1071
|
left: void 0,
|
|
1072
1072
|
hidden: !0
|
|
1073
1073
|
}), f = k(() => a.top !== 0 && a.left !== 0);
|
|
1074
|
-
|
|
1074
|
+
Z(l, () => a.animating = !0);
|
|
1075
1075
|
const q = k(() => {
|
|
1076
1076
|
if (e.anchor === void 0)
|
|
1077
1077
|
return;
|
|
@@ -1081,7 +1081,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1081
1081
|
left: `${a.left}px`,
|
|
1082
1082
|
width: j !== void 0 ? `${j}px` : void 0
|
|
1083
1083
|
};
|
|
1084
|
-
}),
|
|
1084
|
+
}), I = k(() => {
|
|
1085
1085
|
if (e.arrow)
|
|
1086
1086
|
return {
|
|
1087
1087
|
top: r.top !== void 0 ? `${r.top}px` : void 0,
|
|
@@ -1106,15 +1106,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1106
1106
|
);
|
|
1107
1107
|
a.left = j.overlayCoords.x, a.top = j.overlayCoords.y, a.placement = j.placement, r.hidden = j.arrowCoords === void 0, j.arrowCoords && (r.top = j.arrowCoords.y, r.left = j.arrowCoords.x);
|
|
1108
1108
|
}
|
|
1109
|
-
|
|
1109
|
+
Z(
|
|
1110
1110
|
() => e.placement,
|
|
1111
|
-
() =>
|
|
1111
|
+
() => J(S)
|
|
1112
1112
|
);
|
|
1113
1113
|
let T;
|
|
1114
|
-
function
|
|
1114
|
+
function Y() {
|
|
1115
1115
|
G(0);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function oe() {
|
|
1118
1118
|
G(e.delay);
|
|
1119
1119
|
}
|
|
1120
1120
|
function G(b) {
|
|
@@ -1128,44 +1128,44 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1128
1128
|
b == null || b.focus();
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
|
-
|
|
1132
|
-
function
|
|
1131
|
+
Z(f, () => J(ne));
|
|
1132
|
+
function ne() {
|
|
1133
1133
|
n("enter");
|
|
1134
1134
|
}
|
|
1135
1135
|
let H;
|
|
1136
|
-
function
|
|
1136
|
+
function le() {
|
|
1137
1137
|
window.clearTimeout(H), H = window.setTimeout(() => a.animating = !1, 200), n("leave");
|
|
1138
1138
|
}
|
|
1139
1139
|
function Q() {
|
|
1140
1140
|
return e.anchor ? ao(e.anchor) : null;
|
|
1141
1141
|
}
|
|
1142
|
-
let
|
|
1142
|
+
let R;
|
|
1143
1143
|
function p() {
|
|
1144
1144
|
const b = Q();
|
|
1145
1145
|
if (b)
|
|
1146
|
-
switch (
|
|
1146
|
+
switch (R = new MutationObserver(S), R.observe(b, {
|
|
1147
1147
|
attributes: !1,
|
|
1148
1148
|
childList: !0,
|
|
1149
1149
|
characterData: !0,
|
|
1150
1150
|
subtree: !0
|
|
1151
1151
|
}), e.trigger) {
|
|
1152
1152
|
case "click":
|
|
1153
|
-
b.addEventListener("click",
|
|
1153
|
+
b.addEventListener("click", Y);
|
|
1154
1154
|
break;
|
|
1155
1155
|
case "hover":
|
|
1156
|
-
b.addEventListener("mouseenter",
|
|
1156
|
+
b.addEventListener("mouseenter", oe), b.addEventListener("mouseleave", O), b.addEventListener("focusin", Y), b.addEventListener("focusout", O);
|
|
1157
1157
|
break;
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
function g() {
|
|
1161
1161
|
const b = Q();
|
|
1162
1162
|
if (b)
|
|
1163
|
-
switch (
|
|
1163
|
+
switch (R == null || R.disconnect(), e.trigger) {
|
|
1164
1164
|
case "click":
|
|
1165
|
-
b.removeEventListener("click",
|
|
1165
|
+
b.removeEventListener("click", Y);
|
|
1166
1166
|
break;
|
|
1167
1167
|
case "hover":
|
|
1168
|
-
b.removeEventListener("mouseenter",
|
|
1168
|
+
b.removeEventListener("mouseenter", oe), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", Y), b.removeEventListener("focusout", O);
|
|
1169
1169
|
break;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
@@ -1176,11 +1176,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1176
1176
|
window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
|
|
1177
1177
|
}
|
|
1178
1178
|
let U;
|
|
1179
|
-
function
|
|
1180
|
-
Q() ? (S(), U = window.setTimeout(
|
|
1179
|
+
function ae() {
|
|
1180
|
+
Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
|
|
1181
1181
|
}
|
|
1182
1182
|
function K() {
|
|
1183
|
-
c(), e.spy ?
|
|
1183
|
+
c(), e.spy ? ae() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && J(() => {
|
|
1184
1184
|
var b;
|
|
1185
1185
|
return (b = E.value) == null ? void 0 : b.focus();
|
|
1186
1186
|
});
|
|
@@ -1192,20 +1192,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1192
1192
|
e.persistent || O();
|
|
1193
1193
|
}
|
|
1194
1194
|
return je(() => {
|
|
1195
|
-
|
|
1195
|
+
J(p);
|
|
1196
1196
|
}), at(() => {
|
|
1197
1197
|
g(), se();
|
|
1198
|
-
}),
|
|
1198
|
+
}), Z(
|
|
1199
1199
|
l,
|
|
1200
1200
|
(b) => {
|
|
1201
|
-
|
|
1201
|
+
J(() => b ? K() : se());
|
|
1202
1202
|
},
|
|
1203
1203
|
{ immediate: !0 }
|
|
1204
|
-
), (b, ce) => (u(),
|
|
1204
|
+
), (b, ce) => (u(), x(st, {
|
|
1205
1205
|
disabled: !l.value && !a.animating || e.inline,
|
|
1206
1206
|
to: e.attach
|
|
1207
1207
|
}, [
|
|
1208
|
-
i.value ? (u(),
|
|
1208
|
+
i.value ? (u(), v("div", {
|
|
1209
1209
|
key: 0,
|
|
1210
1210
|
class: C([
|
|
1211
1211
|
"q-overlay__underlay",
|
|
@@ -1215,15 +1215,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1215
1215
|
z(it, {
|
|
1216
1216
|
name: e.transition,
|
|
1217
1217
|
appear: "",
|
|
1218
|
-
onLeave:
|
|
1218
|
+
onLeave: le
|
|
1219
1219
|
}, {
|
|
1220
1220
|
default: _(() => [
|
|
1221
|
-
l.value ? (u(),
|
|
1221
|
+
l.value ? (u(), v("div", {
|
|
1222
1222
|
key: 0,
|
|
1223
1223
|
class: C(s.value),
|
|
1224
|
-
style:
|
|
1224
|
+
style: ue(q.value)
|
|
1225
1225
|
}, [
|
|
1226
|
-
A("div",
|
|
1226
|
+
A("div", re({
|
|
1227
1227
|
class: "q-overlay__content",
|
|
1228
1228
|
ref_key: "overlayRef",
|
|
1229
1229
|
ref: E,
|
|
@@ -1233,13 +1233,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1233
1233
|
onKeydown: rt(_e, ["escape"]),
|
|
1234
1234
|
onBlur: _e
|
|
1235
1235
|
}), [
|
|
1236
|
-
e.arrow ? (u(),
|
|
1236
|
+
e.arrow ? (u(), v("div", {
|
|
1237
1237
|
key: 0,
|
|
1238
1238
|
ref_key: "arrowRef",
|
|
1239
1239
|
ref: M,
|
|
1240
1240
|
role: "presentation",
|
|
1241
1241
|
class: "q-overlay__arrow",
|
|
1242
|
-
style:
|
|
1242
|
+
style: ue(I.value)
|
|
1243
1243
|
}, null, 4)) : $("", !0),
|
|
1244
1244
|
y(b.$slots, "default")
|
|
1245
1245
|
], 16, so)
|
|
@@ -1249,7 +1249,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1249
1249
|
}, 8, ["name"])
|
|
1250
1250
|
], 8, ["disabled", "to"]));
|
|
1251
1251
|
}
|
|
1252
|
-
}),
|
|
1252
|
+
}), he = B(io), ro = ["id"], uo = {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
class: "q-field__label"
|
|
1255
1255
|
}, co = ["for"], fo = {
|
|
@@ -1275,11 +1275,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1275
1275
|
class: { default: void 0 }
|
|
1276
1276
|
},
|
|
1277
1277
|
setup(t, { expose: o }) {
|
|
1278
|
-
const e = t, n =
|
|
1278
|
+
const e = t, n = ve(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
|
|
1279
1279
|
return o({
|
|
1280
1280
|
fieldRef: l
|
|
1281
|
-
}), (i, a) => (u(),
|
|
1282
|
-
id:
|
|
1281
|
+
}), (i, a) => (u(), v("div", {
|
|
1282
|
+
id: m(n),
|
|
1283
1283
|
class: C([
|
|
1284
1284
|
"q-field",
|
|
1285
1285
|
`q-field--${e.size}`,
|
|
@@ -1291,7 +1291,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1291
1291
|
e.class
|
|
1292
1292
|
])
|
|
1293
1293
|
}, [
|
|
1294
|
-
e.label ? (u(),
|
|
1294
|
+
e.label ? (u(), v("div", uo, [
|
|
1295
1295
|
y(i.$slots, "label.prepend"),
|
|
1296
1296
|
A("label", {
|
|
1297
1297
|
for: e.for
|
|
@@ -1299,21 +1299,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1299
1299
|
y(i.$slots, "label.append")
|
|
1300
1300
|
])) : $("", !0),
|
|
1301
1301
|
y(i.$slots, "control", {}, () => [
|
|
1302
|
-
A("div",
|
|
1302
|
+
A("div", re({
|
|
1303
1303
|
class: "q-field__control",
|
|
1304
1304
|
ref_key: "fieldRef",
|
|
1305
1305
|
ref: l
|
|
1306
1306
|
}, i.$attrs), [
|
|
1307
|
-
i.$slots.prepend ? (u(),
|
|
1307
|
+
i.$slots.prepend ? (u(), v("div", fo, [
|
|
1308
1308
|
y(i.$slots, "prepend")
|
|
1309
1309
|
])) : $("", !0),
|
|
1310
1310
|
y(i.$slots, "default"),
|
|
1311
|
-
i.$slots.append ? (u(),
|
|
1311
|
+
i.$slots.append ? (u(), v("div", po, [
|
|
1312
1312
|
y(i.$slots, "append")
|
|
1313
1313
|
])) : $("", !0)
|
|
1314
1314
|
], 16)
|
|
1315
1315
|
]),
|
|
1316
|
-
i.$slots.extras ? (u(),
|
|
1316
|
+
i.$slots.extras ? (u(), v("div", mo, [
|
|
1317
1317
|
y(i.$slots, "extras")
|
|
1318
1318
|
])) : $("", !0)
|
|
1319
1319
|
], 10, ro));
|
|
@@ -1321,7 +1321,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1321
1321
|
}), Ie = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
|
|
1322
1322
|
inheritAttrs: !1,
|
|
1323
1323
|
__name: "QTextField",
|
|
1324
|
-
props: /* @__PURE__ */
|
|
1324
|
+
props: /* @__PURE__ */ X({
|
|
1325
1325
|
id: { default: void 0 },
|
|
1326
1326
|
placeholder: { default: "" },
|
|
1327
1327
|
label: { default: "" },
|
|
@@ -1339,7 +1339,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1339
1339
|
}),
|
|
1340
1340
|
emits: ["update:modelValue"],
|
|
1341
1341
|
setup(t, { expose: o }) {
|
|
1342
|
-
const e = t, n = ee(t, "modelValue"), l =
|
|
1342
|
+
const e = t, n = ee(t, "modelValue"), l = ve(e.id), s = V(null), i = V(null), a = k(
|
|
1343
1343
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1344
1344
|
);
|
|
1345
1345
|
return o({
|
|
@@ -1348,11 +1348,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1348
1348
|
return (r = s.value) == null ? void 0 : r.fieldRef;
|
|
1349
1349
|
}),
|
|
1350
1350
|
inputRef: i
|
|
1351
|
-
}), (r, f) => (u(),
|
|
1351
|
+
}), (r, f) => (u(), x(m(Ie), {
|
|
1352
1352
|
ref_key: "fieldRef",
|
|
1353
1353
|
ref: s,
|
|
1354
1354
|
class: C(["q-text-field", e.class]),
|
|
1355
|
-
for:
|
|
1355
|
+
for: m(l),
|
|
1356
1356
|
label: e.label,
|
|
1357
1357
|
size: e.size,
|
|
1358
1358
|
readonly: e.readonly,
|
|
@@ -1366,11 +1366,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1366
1366
|
y(r.$slots, "label.append")
|
|
1367
1367
|
]),
|
|
1368
1368
|
default: _(() => [
|
|
1369
|
-
dt(A("input",
|
|
1369
|
+
dt(A("input", re({
|
|
1370
1370
|
"onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
|
|
1371
1371
|
ref_key: "inputRef",
|
|
1372
1372
|
ref: i,
|
|
1373
|
-
id:
|
|
1373
|
+
id: m(l),
|
|
1374
1374
|
class: "q-text-field__input",
|
|
1375
1375
|
type: e.type,
|
|
1376
1376
|
role: e.role,
|
|
@@ -1425,7 +1425,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1425
1425
|
}
|
|
1426
1426
|
}, $o = /* @__PURE__ */ L({
|
|
1427
1427
|
__name: "QCombobox",
|
|
1428
|
-
props: /* @__PURE__ */
|
|
1428
|
+
props: /* @__PURE__ */ X({
|
|
1429
1429
|
id: { default: void 0 },
|
|
1430
1430
|
placeholder: { default: "" },
|
|
1431
1431
|
selectionMode: { default: "automatic" },
|
|
@@ -1455,9 +1455,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1455
1455
|
search: { default: "" },
|
|
1456
1456
|
searchModifiers: {}
|
|
1457
1457
|
}),
|
|
1458
|
-
emits: /* @__PURE__ */
|
|
1458
|
+
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1459
1459
|
setup(t, { expose: o, emit: e }) {
|
|
1460
|
-
const n = t, l = e, s = ee(t, "modelValue"), i = ee(t, "open"), a = ee(t, "search"), r = V(void 0), f = V(null), q = V(null),
|
|
1460
|
+
const n = t, l = e, s = ee(t, "modelValue"), i = ee(t, "open"), a = ee(t, "search"), r = V(void 0), f = V(null), q = V(null), I = V(null), M = V(null);
|
|
1461
1461
|
je(H);
|
|
1462
1462
|
const E = k(() => n.clearable && !n.readonly && !n.disabled), S = k(() => {
|
|
1463
1463
|
var d;
|
|
@@ -1467,7 +1467,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1467
1467
|
}), T = k(() => {
|
|
1468
1468
|
var d;
|
|
1469
1469
|
return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
|
|
1470
|
-
}),
|
|
1470
|
+
}), Y = k(() => T.value === void 0), oe = k(() => {
|
|
1471
1471
|
const d = r.value;
|
|
1472
1472
|
if (d !== void 0 && S.value[d])
|
|
1473
1473
|
return S.value[d];
|
|
@@ -1481,7 +1481,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1481
1481
|
var d;
|
|
1482
1482
|
return a.value.length > 0 && a.value !== ((d = T.value) == null ? void 0 : d[n.itemLabel]);
|
|
1483
1483
|
});
|
|
1484
|
-
function
|
|
1484
|
+
function ne(d) {
|
|
1485
1485
|
s.value = d, Q();
|
|
1486
1486
|
}
|
|
1487
1487
|
function H() {
|
|
@@ -1489,22 +1489,22 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1489
1489
|
const d = ((w = T.value) == null ? void 0 : w[n.itemLabel]) || "";
|
|
1490
1490
|
a.value !== d && (a.value = d);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function le() {
|
|
1493
1493
|
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, se());
|
|
1494
1494
|
}
|
|
1495
1495
|
function Q() {
|
|
1496
1496
|
i.value && (l("before-hide"), i.value = !1, r.value = void 0);
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function R() {
|
|
1499
1499
|
i.value ? Q() : g();
|
|
1500
1500
|
}
|
|
1501
1501
|
function p() {
|
|
1502
1502
|
E.value && (s.value = n.emptyValue, r.value = void 0, se());
|
|
1503
1503
|
}
|
|
1504
1504
|
function g() {
|
|
1505
|
-
if (
|
|
1505
|
+
if (le(), T.value !== void 0) {
|
|
1506
1506
|
const d = S.value.indexOf(T.value);
|
|
1507
|
-
d !== -1 &&
|
|
1507
|
+
d !== -1 && J(() => j(d));
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
1510
|
function c(d) {
|
|
@@ -1513,26 +1513,26 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1513
1513
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), d.key === "Escape")
|
|
1514
1514
|
H(), i.value && Q();
|
|
1515
1515
|
else if (["ArrowDown", "ArrowUp"].includes(d.key))
|
|
1516
|
-
i.value ?
|
|
1516
|
+
i.value ? J(() => {
|
|
1517
1517
|
if (r.value === void 0)
|
|
1518
1518
|
h();
|
|
1519
1519
|
else {
|
|
1520
1520
|
const P = d.key === "ArrowDown" ? "next" : "prev";
|
|
1521
|
-
|
|
1521
|
+
ae(r.value, P);
|
|
1522
1522
|
}
|
|
1523
|
-
}) : (
|
|
1523
|
+
}) : (le(), J(() => {
|
|
1524
1524
|
d.key === "ArrowDown" ? h() : U();
|
|
1525
1525
|
}));
|
|
1526
1526
|
else if (d.key === "Enter") {
|
|
1527
|
-
if (
|
|
1527
|
+
if (oe.value === void 0)
|
|
1528
1528
|
return;
|
|
1529
|
-
oe
|
|
1529
|
+
ne(oe.value[n.itemValue]);
|
|
1530
1530
|
} else
|
|
1531
|
-
d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") &&
|
|
1531
|
+
d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && le();
|
|
1532
1532
|
}
|
|
1533
1533
|
function h() {
|
|
1534
1534
|
var d, w;
|
|
1535
|
-
if (
|
|
1535
|
+
if (Y.value)
|
|
1536
1536
|
r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1537
1537
|
else {
|
|
1538
1538
|
const D = S.value.findIndex(
|
|
@@ -1545,13 +1545,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1545
1545
|
var d;
|
|
1546
1546
|
r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function ae(d, w) {
|
|
1549
1549
|
var D;
|
|
1550
1550
|
r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
|
|
1551
1551
|
}
|
|
1552
1552
|
function K(d) {
|
|
1553
1553
|
var fe, Ve, Ee, De;
|
|
1554
|
-
const w = ((fe =
|
|
1554
|
+
const w = ((fe = I == null ? void 0 : I.value) == null ? void 0 : fe.$el) === d.relatedTarget, D = (Ee = (Ve = f == null ? void 0 : f.value) == null ? void 0 : Ve.$el) == null ? void 0 : Ee.contains(d.relatedTarget), P = (De = M == null ? void 0 : M.value) == null ? void 0 : De.contains(d.relatedTarget);
|
|
1555
1555
|
if (w || P || D) {
|
|
1556
1556
|
d.preventDefault(), d.stopPropagation();
|
|
1557
1557
|
return;
|
|
@@ -1576,30 +1576,30 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1576
1576
|
const w = (D = q.value) == null ? void 0 : D.getItem(d);
|
|
1577
1577
|
q.value && (q.value.$el.scrollTop = w == null ? void 0 : w.offsetTop);
|
|
1578
1578
|
}
|
|
1579
|
-
return
|
|
1579
|
+
return Z(s, H), Z(
|
|
1580
1580
|
() => n.items,
|
|
1581
1581
|
(d, w) => {
|
|
1582
|
-
if (!
|
|
1582
|
+
if (!Y.value) {
|
|
1583
1583
|
const D = w.find((P) => P[n.itemValue] === s.value);
|
|
1584
1584
|
a.value === (D == null ? void 0 : D[n.itemLabel]) && H();
|
|
1585
1585
|
}
|
|
1586
1586
|
},
|
|
1587
1587
|
{ deep: !0 }
|
|
1588
|
-
),
|
|
1588
|
+
), Z(r, (d) => {
|
|
1589
1589
|
d !== void 0 && j(d);
|
|
1590
|
-
}),
|
|
1591
|
-
d && i.value && n.selectionMode === "automatic" &&
|
|
1592
|
-
}),
|
|
1590
|
+
}), Z(a, (d) => {
|
|
1591
|
+
d && i.value && n.selectionMode === "automatic" && J(h);
|
|
1592
|
+
}), Z(
|
|
1593
1593
|
() => n.loading,
|
|
1594
1594
|
(d) => {
|
|
1595
|
-
!d && i.value &&
|
|
1595
|
+
!d && i.value && J(h);
|
|
1596
1596
|
}
|
|
1597
1597
|
), o({
|
|
1598
1598
|
triggerEl: f
|
|
1599
1599
|
}), (d, w) => {
|
|
1600
1600
|
var D;
|
|
1601
|
-
return u(),
|
|
1602
|
-
z(
|
|
1601
|
+
return u(), v(te, null, [
|
|
1602
|
+
z(m(lt), {
|
|
1603
1603
|
modelValue: a.value,
|
|
1604
1604
|
"onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
|
|
1605
1605
|
id: n.id,
|
|
@@ -1639,7 +1639,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1639
1639
|
]),
|
|
1640
1640
|
append: _(() => [
|
|
1641
1641
|
y(d.$slots, "append"),
|
|
1642
|
-
E.value && a.value ? (u(),
|
|
1642
|
+
E.value && a.value ? (u(), x(m(de), {
|
|
1643
1643
|
key: 0,
|
|
1644
1644
|
class: "q-combobox__clear",
|
|
1645
1645
|
"b-style": "plain",
|
|
@@ -1648,23 +1648,23 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1648
1648
|
onClick: p
|
|
1649
1649
|
}, {
|
|
1650
1650
|
default: _(() => [
|
|
1651
|
-
z(
|
|
1651
|
+
z(m(F), W(ie(n.icons.clear)), null, 16)
|
|
1652
1652
|
]),
|
|
1653
1653
|
_: 1
|
|
1654
1654
|
})) : $("", !0),
|
|
1655
|
-
n.readonly ? $("", !0) : (u(),
|
|
1655
|
+
n.readonly ? $("", !0) : (u(), x(m(de), {
|
|
1656
1656
|
key: 1,
|
|
1657
1657
|
ref_key: "toggleRef",
|
|
1658
|
-
ref:
|
|
1658
|
+
ref: I,
|
|
1659
1659
|
class: "q-combobox__chevron",
|
|
1660
1660
|
"b-style": "plain",
|
|
1661
1661
|
borderless: "",
|
|
1662
1662
|
tabindex: "-1",
|
|
1663
1663
|
disabled: n.disabled,
|
|
1664
|
-
onMousedown: pe(
|
|
1664
|
+
onMousedown: pe(R, ["stop", "prevent"])
|
|
1665
1665
|
}, {
|
|
1666
1666
|
default: _(() => [
|
|
1667
|
-
z(
|
|
1667
|
+
z(m(F), W(ie(n.icons.chevron)), null, 16)
|
|
1668
1668
|
]),
|
|
1669
1669
|
_: 1
|
|
1670
1670
|
}, 8, ["disabled"]))
|
|
@@ -1686,7 +1686,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1686
1686
|
key: "1"
|
|
1687
1687
|
} : void 0
|
|
1688
1688
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1689
|
-
z(
|
|
1689
|
+
z(m(he), {
|
|
1690
1690
|
modelValue: i.value,
|
|
1691
1691
|
"onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
|
|
1692
1692
|
spy: "",
|
|
@@ -1711,9 +1711,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1711
1711
|
onFocusout: K
|
|
1712
1712
|
}, [
|
|
1713
1713
|
y(d.$slots, "body.prepend"),
|
|
1714
|
-
n.loading ? (u(),
|
|
1715
|
-
z(
|
|
1716
|
-
])) : S.value.length ? (u(),
|
|
1714
|
+
n.loading ? (u(), v("div", go, [
|
|
1715
|
+
z(m(xe), { size: 24 })
|
|
1716
|
+
])) : S.value.length ? (u(), x(m(Te), {
|
|
1717
1717
|
key: 1,
|
|
1718
1718
|
ref_key: "listRef",
|
|
1719
1719
|
ref: q,
|
|
@@ -1721,9 +1721,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1721
1721
|
modelValue: s.value,
|
|
1722
1722
|
"onUpdate:modelValue": [
|
|
1723
1723
|
w[1] || (w[1] = (fe) => s.value = fe),
|
|
1724
|
-
|
|
1724
|
+
ne
|
|
1725
1725
|
],
|
|
1726
|
-
highlighted: (P =
|
|
1726
|
+
highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
|
|
1727
1727
|
items: S.value,
|
|
1728
1728
|
groups: d.groups,
|
|
1729
1729
|
"item-label": n.itemLabel,
|
|
@@ -1734,7 +1734,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1734
1734
|
y(d.$slots, "item", { item: fe })
|
|
1735
1735
|
]),
|
|
1736
1736
|
_: 3
|
|
1737
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(),
|
|
1737
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.texts.noData), 1)),
|
|
1738
1738
|
y(d.$slots, "body.append")
|
|
1739
1739
|
], 40, bo)
|
|
1740
1740
|
];
|
|
@@ -1750,20 +1750,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1750
1750
|
}, Co = { class: "q-dialog__body-text" }, To = ["innerHTML"], Vo = { key: 1 }, Eo = { class: "q-dialog__body-actions" }, Do = [
|
|
1751
1751
|
{
|
|
1752
1752
|
id: "button",
|
|
1753
|
-
bStyle: "primary",
|
|
1754
|
-
label: "Ok",
|
|
1755
1753
|
icon: {
|
|
1756
1754
|
icon: "check"
|
|
1757
1755
|
},
|
|
1758
|
-
|
|
1759
|
-
|
|
1756
|
+
props: {
|
|
1757
|
+
bStyle: "primary",
|
|
1758
|
+
label: "Ok"
|
|
1759
|
+
}
|
|
1760
1760
|
}
|
|
1761
1761
|
], Ao = {
|
|
1762
1762
|
icon: "check-circle-outline",
|
|
1763
1763
|
type: "svg"
|
|
1764
1764
|
}, zo = /* @__PURE__ */ L({
|
|
1765
1765
|
__name: "QDialog",
|
|
1766
|
-
props: /* @__PURE__ */
|
|
1766
|
+
props: /* @__PURE__ */ X({
|
|
1767
1767
|
text: { default: "" },
|
|
1768
1768
|
attach: { default: "body" },
|
|
1769
1769
|
inline: { type: Boolean },
|
|
@@ -1781,7 +1781,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1781
1781
|
}),
|
|
1782
1782
|
emits: ["update:modelValue"],
|
|
1783
1783
|
setup(t) {
|
|
1784
|
-
const o = t, e = ee(t, "modelValue"), n =
|
|
1784
|
+
const o = t, e = ee(t, "modelValue"), n = ve(o.id);
|
|
1785
1785
|
function l() {
|
|
1786
1786
|
e.value = !1;
|
|
1787
1787
|
}
|
|
@@ -1789,9 +1789,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1789
1789
|
var a;
|
|
1790
1790
|
(a = i.action) == null || a.call(i), l();
|
|
1791
1791
|
}
|
|
1792
|
-
return (i, a) => (u(),
|
|
1792
|
+
return (i, a) => (u(), x(m(he), {
|
|
1793
1793
|
"model-value": e.value,
|
|
1794
|
-
id:
|
|
1794
|
+
id: m(n),
|
|
1795
1795
|
inline: o.inline,
|
|
1796
1796
|
attach: o.attach,
|
|
1797
1797
|
"backdrop-blur": o.backdropBlur,
|
|
@@ -1802,13 +1802,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1802
1802
|
A("div", xo, [
|
|
1803
1803
|
A("div", Io, [
|
|
1804
1804
|
A("span", Lo, N(o.title), 1),
|
|
1805
|
-
o.dismissible ? (u(),
|
|
1805
|
+
o.dismissible ? (u(), x(m(de), {
|
|
1806
1806
|
key: 0,
|
|
1807
1807
|
"b-style": "tertiary",
|
|
1808
1808
|
onClick: l
|
|
1809
1809
|
}, {
|
|
1810
1810
|
default: _(() => [
|
|
1811
|
-
z(
|
|
1811
|
+
z(m(F), { icon: "close" })
|
|
1812
1812
|
]),
|
|
1813
1813
|
_: 1
|
|
1814
1814
|
})) : $("", !0)
|
|
@@ -1816,26 +1816,26 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1816
1816
|
y(i.$slots, "body.content", {}, () => [
|
|
1817
1817
|
A("div", So, [
|
|
1818
1818
|
y(i.$slots, "body.icon", {}, () => [
|
|
1819
|
-
o.icon ? (u(),
|
|
1820
|
-
z(
|
|
1819
|
+
o.icon ? (u(), v("span", Bo, [
|
|
1820
|
+
z(m(F), W(ie(o.icon)), null, 16)
|
|
1821
1821
|
])) : $("", !0)
|
|
1822
1822
|
]),
|
|
1823
1823
|
A("div", Co, [
|
|
1824
|
-
o.html ? (u(),
|
|
1824
|
+
o.html ? (u(), v("span", {
|
|
1825
1825
|
key: 0,
|
|
1826
1826
|
innerHTML: o.text
|
|
1827
|
-
}, null, 8, To)) : (u(),
|
|
1827
|
+
}, null, 8, To)) : (u(), v("span", Vo, N(o.text), 1))
|
|
1828
1828
|
]),
|
|
1829
1829
|
y(i.$slots, "body.append")
|
|
1830
1830
|
])
|
|
1831
1831
|
]),
|
|
1832
1832
|
A("div", Eo, [
|
|
1833
|
-
(u(!0),
|
|
1833
|
+
(u(!0), v(te, null, we(o.buttons, (r) => (u(), x(m(de), re({ ref_for: !0 }, r.props, {
|
|
1834
1834
|
key: r.id,
|
|
1835
1835
|
onClick: () => s(r)
|
|
1836
1836
|
}), {
|
|
1837
1837
|
default: _(() => [
|
|
1838
|
-
r.icon ? (u(),
|
|
1838
|
+
r.icon ? (u(), x(m(F), re({
|
|
1839
1839
|
key: 0,
|
|
1840
1840
|
ref_for: !0
|
|
1841
1841
|
}, r.icon), null, 16)) : $("", !0)
|
|
@@ -1871,7 +1871,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1871
1871
|
QField: {
|
|
1872
1872
|
size: "block"
|
|
1873
1873
|
}
|
|
1874
|
-
}), (e, n) => (u(),
|
|
1874
|
+
}), (e, n) => (u(), x(m(Ie), {
|
|
1875
1875
|
id: o.id,
|
|
1876
1876
|
class: C(["q-input-group", o.class]),
|
|
1877
1877
|
label: o.label,
|
|
@@ -1879,16 +1879,16 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1879
1879
|
size: o.size
|
|
1880
1880
|
}, qe({
|
|
1881
1881
|
default: _(() => [
|
|
1882
|
-
e.$slots.prepend || o.prependIcon ? (u(),
|
|
1883
|
-
o.prependIcon ? (u(),
|
|
1884
|
-
z(
|
|
1882
|
+
e.$slots.prepend || o.prependIcon ? (u(), v("div", Mo, [
|
|
1883
|
+
o.prependIcon ? (u(), v("span", Fo, [
|
|
1884
|
+
z(m(F), W(ie(o.prependIcon)), null, 16)
|
|
1885
1885
|
])) : $("", !0),
|
|
1886
1886
|
y(e.$slots, "prepend")
|
|
1887
1887
|
])) : $("", !0),
|
|
1888
1888
|
y(e.$slots, "default"),
|
|
1889
|
-
e.$slots.append || o.appendIcon ? (u(),
|
|
1890
|
-
o.appendIcon ? (u(),
|
|
1891
|
-
z(
|
|
1889
|
+
e.$slots.append || o.appendIcon ? (u(), v("div", Oo, [
|
|
1890
|
+
o.appendIcon ? (u(), v("span", Uo, [
|
|
1891
|
+
z(m(F), W(ie(o.appendIcon)), null, 16)
|
|
1892
1892
|
])) : $("", !0),
|
|
1893
1893
|
y(e.$slots, "append")
|
|
1894
1894
|
])) : $("", !0)
|
|
@@ -1911,7 +1911,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1911
1911
|
},
|
|
1912
1912
|
setup(t) {
|
|
1913
1913
|
const o = t;
|
|
1914
|
-
return (e, n) => (u(),
|
|
1914
|
+
return (e, n) => (u(), v("div", {
|
|
1915
1915
|
class: C(["q-line-loader", o.class])
|
|
1916
1916
|
}, null, 2));
|
|
1917
1917
|
}
|
|
@@ -1924,7 +1924,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1924
1924
|
}, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
|
|
1925
1925
|
inheritAttrs: !1,
|
|
1926
1926
|
__name: "QPopover",
|
|
1927
|
-
props: /* @__PURE__ */
|
|
1927
|
+
props: /* @__PURE__ */ X({
|
|
1928
1928
|
anchor: {},
|
|
1929
1929
|
arrow: { type: Boolean, default: !0 },
|
|
1930
1930
|
attach: { default: "body" },
|
|
@@ -1941,7 +1941,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1941
1941
|
emits: ["update:modelValue"],
|
|
1942
1942
|
setup(t) {
|
|
1943
1943
|
const o = t, e = ee(t, "modelValue");
|
|
1944
|
-
return (n, l) => (u(),
|
|
1944
|
+
return (n, l) => (u(), x(m(he), {
|
|
1945
1945
|
"model-value": e.value,
|
|
1946
1946
|
class: "q-popover",
|
|
1947
1947
|
trigger: "click",
|
|
@@ -1953,15 +1953,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1953
1953
|
placement: o.placement
|
|
1954
1954
|
}, {
|
|
1955
1955
|
default: _(() => [
|
|
1956
|
-
o.title || n.$slots.header ? (u(),
|
|
1957
|
-
|
|
1956
|
+
o.title || n.$slots.header ? (u(), v("h3", jo, [
|
|
1957
|
+
me(N(o.title) + " ", 1),
|
|
1958
1958
|
y(n.$slots, "header")
|
|
1959
1959
|
])) : $("", !0),
|
|
1960
|
-
o.text || n.$slots.body ? (u(),
|
|
1961
|
-
o.html ? (u(),
|
|
1960
|
+
o.text || n.$slots.body ? (u(), v("div", Go, [
|
|
1961
|
+
o.html ? (u(), v("span", {
|
|
1962
1962
|
key: 0,
|
|
1963
1963
|
innerHTML: o.text
|
|
1964
|
-
}, null, 8, Ro)) : (u(),
|
|
1964
|
+
}, null, 8, Ro)) : (u(), v("span", Wo, N(o.text), 1)),
|
|
1965
1965
|
y(n.$slots, "body")
|
|
1966
1966
|
])) : $("", !0)
|
|
1967
1967
|
]),
|
|
@@ -1988,7 +1988,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1988
1988
|
}
|
|
1989
1989
|
}, ln = /* @__PURE__ */ L({
|
|
1990
1990
|
__name: "QSelect",
|
|
1991
|
-
props: /* @__PURE__ */
|
|
1991
|
+
props: /* @__PURE__ */ X({
|
|
1992
1992
|
id: { default: void 0 },
|
|
1993
1993
|
label: { default: "" },
|
|
1994
1994
|
clearable: { type: Boolean },
|
|
@@ -2011,15 +2011,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2011
2011
|
},
|
|
2012
2012
|
modelModifiers: {}
|
|
2013
2013
|
}),
|
|
2014
|
-
emits: /* @__PURE__ */
|
|
2014
|
+
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2015
2015
|
setup(t, { emit: o }) {
|
|
2016
|
-
const e = t, n = o, l = ee(t, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = k(() =>
|
|
2016
|
+
const e = t, n = o, l = ee(t, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = k(() => I.value === void 0), I = k(
|
|
2017
2017
|
() => {
|
|
2018
2018
|
var c;
|
|
2019
2019
|
return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
|
|
2020
2020
|
}
|
|
2021
2021
|
), M = k(
|
|
2022
|
-
() =>
|
|
2022
|
+
() => I.value ? I.value[e.itemLabel] : ""
|
|
2023
2023
|
), E = k(
|
|
2024
2024
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2025
2025
|
);
|
|
@@ -2027,25 +2027,25 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2027
2027
|
l.value = c, G();
|
|
2028
2028
|
}
|
|
2029
2029
|
function T() {
|
|
2030
|
-
E.value && S(e.emptyValue);
|
|
2030
|
+
E.value && (S(e.emptyValue), R());
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
var h, U,
|
|
2034
|
-
!((h = f.value) != null && h.contains(c.relatedTarget)) && !((
|
|
2032
|
+
function Y(c) {
|
|
2033
|
+
var h, U, ae;
|
|
2034
|
+
!((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && G();
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function oe() {
|
|
2037
2037
|
s.value || (n("before-show"), s.value = !0);
|
|
2038
2038
|
}
|
|
2039
2039
|
function G() {
|
|
2040
2040
|
s.value && (n("before-hide"), s.value = !1);
|
|
2041
2041
|
}
|
|
2042
2042
|
function O() {
|
|
2043
|
-
e.readonly || e.disabled || (s.value ? G() :
|
|
2043
|
+
e.readonly || e.disabled || (s.value ? G() : oe());
|
|
2044
2044
|
}
|
|
2045
|
-
let
|
|
2045
|
+
let ne;
|
|
2046
2046
|
function H(c) {
|
|
2047
2047
|
if (!(!c.key || e.readonly || e.disabled)) {
|
|
2048
|
-
if (window.clearTimeout(
|
|
2048
|
+
if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
|
|
2049
2049
|
i.value += c.key.toLowerCase();
|
|
2050
2050
|
for (let h = 0; h < e.items.length; h++)
|
|
2051
2051
|
if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
|
|
@@ -2053,19 +2053,19 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2053
2053
|
break;
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
|
-
|
|
2056
|
+
ne = window.setTimeout(function() {
|
|
2057
2057
|
i.value = "";
|
|
2058
2058
|
}, 500);
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function le() {
|
|
2062
2062
|
var c;
|
|
2063
2063
|
e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
|
|
2064
2064
|
}
|
|
2065
2065
|
function Q() {
|
|
2066
|
-
|
|
2066
|
+
R(), n("hide");
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function R() {
|
|
2069
2069
|
var c, h;
|
|
2070
2070
|
(h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
|
|
2071
2071
|
}
|
|
@@ -2077,15 +2077,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2077
2077
|
var h;
|
|
2078
2078
|
(h = r.value) == null || h.focusItem(c);
|
|
2079
2079
|
}
|
|
2080
|
-
return
|
|
2080
|
+
return Z(
|
|
2081
2081
|
() => e.loading,
|
|
2082
2082
|
(c) => {
|
|
2083
|
-
!c && s.value &&
|
|
2083
|
+
!c && s.value && J(p);
|
|
2084
2084
|
}
|
|
2085
2085
|
), (c, h) => {
|
|
2086
|
-
var U,
|
|
2087
|
-
return u(),
|
|
2088
|
-
z(
|
|
2086
|
+
var U, ae;
|
|
2087
|
+
return u(), v(te, null, [
|
|
2088
|
+
z(m(Ie), {
|
|
2089
2089
|
id: e.id,
|
|
2090
2090
|
label: e.label,
|
|
2091
2091
|
required: e.required,
|
|
@@ -2113,7 +2113,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2113
2113
|
}, qe({
|
|
2114
2114
|
append: _(() => [
|
|
2115
2115
|
y(c.$slots, "append"),
|
|
2116
|
-
E.value && l.value ? (u(),
|
|
2116
|
+
E.value && l.value ? (u(), x(m(de), {
|
|
2117
2117
|
key: 0,
|
|
2118
2118
|
class: "q-select__clear",
|
|
2119
2119
|
"b-style": "plain",
|
|
@@ -2122,11 +2122,11 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2122
2122
|
onClick: T
|
|
2123
2123
|
}, {
|
|
2124
2124
|
default: _(() => [
|
|
2125
|
-
z(
|
|
2125
|
+
z(m(F), W(ie(e.icons.clear)), null, 16)
|
|
2126
2126
|
]),
|
|
2127
2127
|
_: 1
|
|
2128
2128
|
})) : $("", !0),
|
|
2129
|
-
e.readonly ? $("", !0) : (u(),
|
|
2129
|
+
e.readonly ? $("", !0) : (u(), x(m(de), {
|
|
2130
2130
|
key: 1,
|
|
2131
2131
|
class: "q-select__chevron",
|
|
2132
2132
|
"b-style": "plain",
|
|
@@ -2136,27 +2136,27 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2136
2136
|
onClick: O
|
|
2137
2137
|
}, {
|
|
2138
2138
|
default: _(() => [
|
|
2139
|
-
z(
|
|
2139
|
+
z(m(F), W(ie(e.icons.chevron)), null, 16)
|
|
2140
2140
|
]),
|
|
2141
2141
|
_: 1
|
|
2142
2142
|
}, 8, ["disabled"]))
|
|
2143
2143
|
]),
|
|
2144
2144
|
default: _(() => [
|
|
2145
|
-
q.value ? (u(),
|
|
2146
|
-
!e.readonly && !e.disabled ? (u(),
|
|
2147
|
-
|
|
2145
|
+
q.value ? (u(), v("span", Jo, [
|
|
2146
|
+
!e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
|
|
2147
|
+
me(N(c.texts.placeholder), 1)
|
|
2148
2148
|
], 64)) : $("", !0)
|
|
2149
|
-
])) : (u(),
|
|
2149
|
+
])) : (u(), v("span", Zo, N(M.value), 1))
|
|
2150
2150
|
]),
|
|
2151
2151
|
_: 2
|
|
2152
2152
|
}, [
|
|
2153
|
-
(U =
|
|
2153
|
+
(U = I.value) != null && U.icon || c.$slots.prepend ? {
|
|
2154
2154
|
name: "prepend",
|
|
2155
2155
|
fn: _(() => {
|
|
2156
2156
|
var K, se;
|
|
2157
2157
|
return [
|
|
2158
2158
|
y(c.$slots, "prepend"),
|
|
2159
|
-
(K =
|
|
2159
|
+
(K = I.value) != null && K.icon ? (u(), x(m(F), W(re({ key: 0 }, (se = I.value) == null ? void 0 : se.icon)), null, 16)) : $("", !0)
|
|
2160
2160
|
];
|
|
2161
2161
|
}),
|
|
2162
2162
|
key: "0"
|
|
@@ -2169,7 +2169,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2169
2169
|
key: "1"
|
|
2170
2170
|
} : void 0
|
|
2171
2171
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2172
|
-
z(
|
|
2172
|
+
z(m(he), {
|
|
2173
2173
|
modelValue: s.value,
|
|
2174
2174
|
"onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
|
|
2175
2175
|
spy: "",
|
|
@@ -2177,9 +2177,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2177
2177
|
placement: "bottom-start",
|
|
2178
2178
|
width: "anchor",
|
|
2179
2179
|
"scroll-lock": "",
|
|
2180
|
-
anchor: (
|
|
2180
|
+
anchor: (ae = a.value) == null ? void 0 : ae.$el,
|
|
2181
2181
|
offset: 2,
|
|
2182
|
-
onEnter:
|
|
2182
|
+
onEnter: le,
|
|
2183
2183
|
onLeave: Q
|
|
2184
2184
|
}, {
|
|
2185
2185
|
default: _(() => [
|
|
@@ -2190,13 +2190,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2190
2190
|
"data-key": e.id,
|
|
2191
2191
|
class: "q-select__body",
|
|
2192
2192
|
tabindex: "-1",
|
|
2193
|
-
onFocusout:
|
|
2193
|
+
onFocusout: Y,
|
|
2194
2194
|
onKeydown: pe(H, ["stop"])
|
|
2195
2195
|
}, [
|
|
2196
2196
|
y(c.$slots, "body.prepend"),
|
|
2197
|
-
e.loading ? (u(),
|
|
2198
|
-
z(
|
|
2199
|
-
])) : (u(),
|
|
2197
|
+
e.loading ? (u(), v("div", tn, [
|
|
2198
|
+
z(m(xe), { size: 24 })
|
|
2199
|
+
])) : (u(), x(m(Te), {
|
|
2200
2200
|
key: 1,
|
|
2201
2201
|
ref_key: "listRef",
|
|
2202
2202
|
ref: r,
|
|
@@ -2241,9 +2241,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2241
2241
|
height: s
|
|
2242
2242
|
};
|
|
2243
2243
|
});
|
|
2244
|
-
return (l, s) => (u(),
|
|
2244
|
+
return (l, s) => (u(), v("div", {
|
|
2245
2245
|
class: C(["q-skeleton-loader", e.value]),
|
|
2246
|
-
style:
|
|
2246
|
+
style: ue(n.value)
|
|
2247
2247
|
}, rn, 6));
|
|
2248
2248
|
}
|
|
2249
2249
|
}), un = B(dn), cn = /* @__PURE__ */ L({
|
|
@@ -2253,15 +2253,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2253
2253
|
},
|
|
2254
2254
|
setup(t) {
|
|
2255
2255
|
const o = t;
|
|
2256
|
-
return (e, n) => (u(),
|
|
2256
|
+
return (e, n) => (u(), v("div", {
|
|
2257
2257
|
class: C(["q-theme-provider", `q-theme--${o.theme}`])
|
|
2258
2258
|
}, [
|
|
2259
2259
|
y(e.$slots, "default")
|
|
2260
2260
|
], 2));
|
|
2261
2261
|
}
|
|
2262
|
-
}), fn = B(cn), pn = ["innerHTML"], mn =
|
|
2262
|
+
}), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
|
|
2263
2263
|
__name: "QTooltip",
|
|
2264
|
-
props: /* @__PURE__ */
|
|
2264
|
+
props: /* @__PURE__ */ X({
|
|
2265
2265
|
id: { default: void 0 },
|
|
2266
2266
|
anchor: {},
|
|
2267
2267
|
appearance: { default: "inverted" },
|
|
@@ -2273,6 +2273,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2273
2273
|
html: { type: Boolean, default: !0 },
|
|
2274
2274
|
placement: { default: "right" },
|
|
2275
2275
|
text: {},
|
|
2276
|
+
icon: { default: void 0 },
|
|
2276
2277
|
trigger: { default: "hover" },
|
|
2277
2278
|
class: { default: void 0 }
|
|
2278
2279
|
}, {
|
|
@@ -2281,17 +2282,17 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2281
2282
|
}),
|
|
2282
2283
|
emits: ["update:modelValue"],
|
|
2283
2284
|
setup(t) {
|
|
2284
|
-
const o = t, e = ee(t, "modelValue"), n =
|
|
2285
|
-
return (l, s) => (u(),
|
|
2285
|
+
const o = t, e = ee(t, "modelValue"), n = ve(o.id);
|
|
2286
|
+
return (l, s) => (u(), v(te, null, [
|
|
2286
2287
|
y(l.$slots, "anchor", {
|
|
2287
|
-
props: { "aria-describedby":
|
|
2288
|
+
props: { "aria-describedby": m(n) }
|
|
2288
2289
|
}),
|
|
2289
|
-
z(
|
|
2290
|
+
z(m(he), {
|
|
2290
2291
|
"model-value": e.value,
|
|
2291
2292
|
anchor: o.anchor,
|
|
2292
2293
|
role: "tooltip",
|
|
2293
2294
|
"non-modal": "",
|
|
2294
|
-
id:
|
|
2295
|
+
id: m(n),
|
|
2295
2296
|
appearance: o.appearance,
|
|
2296
2297
|
arrow: o.arrow,
|
|
2297
2298
|
attach: o.attach,
|
|
@@ -2303,19 +2304,24 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2303
2304
|
trigger: o.trigger
|
|
2304
2305
|
}, {
|
|
2305
2306
|
default: _(() => [
|
|
2306
|
-
|
|
2307
|
-
key: 0,
|
|
2308
|
-
|
|
2309
|
-
|
|
2307
|
+
y(l.$slots, "default", {}, () => [
|
|
2308
|
+
o.icon ? (u(), x(m(F), W(re({ key: 0 }, o.icon)), null, 16)) : $("", !0),
|
|
2309
|
+
o.html ? (u(), v("span", {
|
|
2310
|
+
key: 1,
|
|
2311
|
+
innerHTML: o.text
|
|
2312
|
+
}, null, 8, pn)) : (u(), v(te, { key: 2 }, [
|
|
2313
|
+
me(N(o.text), 1)
|
|
2314
|
+
], 64))
|
|
2315
|
+
])
|
|
2310
2316
|
]),
|
|
2311
|
-
_:
|
|
2317
|
+
_: 3
|
|
2312
2318
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2313
2319
|
], 64));
|
|
2314
2320
|
}
|
|
2315
|
-
}),
|
|
2321
|
+
}), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2316
2322
|
__proto__: null,
|
|
2317
2323
|
QBadge: Dt,
|
|
2318
|
-
QButton:
|
|
2324
|
+
QButton: de,
|
|
2319
2325
|
QButtonGroup: tt,
|
|
2320
2326
|
QButtonToggle: Qt,
|
|
2321
2327
|
QCombobox: qo,
|
|
@@ -2330,35 +2336,35 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2330
2336
|
QList: Te,
|
|
2331
2337
|
QListItem: ot,
|
|
2332
2338
|
QListItemGroup: nt,
|
|
2333
|
-
QOverlay:
|
|
2339
|
+
QOverlay: he,
|
|
2334
2340
|
QPopover: Yo,
|
|
2335
2341
|
QSelect: an,
|
|
2336
2342
|
QSkeletonLoader: un,
|
|
2337
2343
|
QSpinnerLoader: xe,
|
|
2338
2344
|
QTextField: lt,
|
|
2339
2345
|
QThemeProvider: fn,
|
|
2340
|
-
QTooltip:
|
|
2346
|
+
QTooltip: vn
|
|
2341
2347
|
}, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
|
|
2342
|
-
function
|
|
2348
|
+
function yn() {
|
|
2343
2349
|
const t = He(be);
|
|
2344
2350
|
if (!t)
|
|
2345
2351
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2346
2352
|
return t;
|
|
2347
2353
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const o =
|
|
2354
|
+
function xn(t) {
|
|
2355
|
+
const o = yn(), e = {
|
|
2350
2356
|
activeTheme: V(t),
|
|
2351
2357
|
themes: o.themes
|
|
2352
2358
|
};
|
|
2353
2359
|
return Ne(be, e), e;
|
|
2354
2360
|
}
|
|
2355
|
-
function
|
|
2361
|
+
function bn() {
|
|
2356
2362
|
let t = document.getElementById(
|
|
2357
2363
|
be
|
|
2358
2364
|
);
|
|
2359
2365
|
return t || (t = document.createElement("style"), t.id = be, document.head.appendChild(t)), t;
|
|
2360
2366
|
}
|
|
2361
|
-
function
|
|
2367
|
+
function gn(t) {
|
|
2362
2368
|
let o = "";
|
|
2363
2369
|
for (const n of t) {
|
|
2364
2370
|
o += `.q-theme--${n.name} {
|
|
@@ -2378,22 +2384,22 @@ function _n(t) {
|
|
|
2378
2384
|
o += `}
|
|
2379
2385
|
`;
|
|
2380
2386
|
}
|
|
2381
|
-
const e =
|
|
2387
|
+
const e = bn();
|
|
2382
2388
|
e.textContent = o;
|
|
2383
2389
|
}
|
|
2384
2390
|
function Ue(t) {
|
|
2385
2391
|
return t ? `--q-theme-${Xe(t)}` : "";
|
|
2386
2392
|
}
|
|
2387
|
-
function
|
|
2393
|
+
function _n(t = {}) {
|
|
2388
2394
|
return { install: (e) => {
|
|
2389
2395
|
const n = t.components || {};
|
|
2390
2396
|
for (const s in n)
|
|
2391
2397
|
e.component(s, n[s]);
|
|
2392
2398
|
const l = t.defaults || {};
|
|
2393
|
-
e.provide(Ce, V(l)),
|
|
2399
|
+
e.provide(Ce, V(l)), kn(e, t.themes);
|
|
2394
2400
|
} };
|
|
2395
2401
|
}
|
|
2396
|
-
function
|
|
2402
|
+
function kn(t, o) {
|
|
2397
2403
|
const e = [];
|
|
2398
2404
|
let n;
|
|
2399
2405
|
if (!o)
|
|
@@ -2416,18 +2422,18 @@ function wn(t, o) {
|
|
|
2416
2422
|
activeTheme: V(n),
|
|
2417
2423
|
themes: e
|
|
2418
2424
|
};
|
|
2419
|
-
|
|
2425
|
+
gn(e), Z(l.activeTheme, wn, { immediate: !0 }), t.provide(be, l);
|
|
2420
2426
|
}
|
|
2421
2427
|
}
|
|
2422
|
-
function
|
|
2428
|
+
function wn(t) {
|
|
2423
2429
|
const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
|
|
2424
2430
|
o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
|
|
2425
2431
|
}
|
|
2426
|
-
const
|
|
2432
|
+
const In = (t = {}) => _n({ components: hn, ...t });
|
|
2427
2433
|
export {
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2434
|
+
hn as components,
|
|
2435
|
+
In as createFramework,
|
|
2436
|
+
xn as provideTheme,
|
|
2437
|
+
qn as templates,
|
|
2438
|
+
yn as useTheme
|
|
2433
2439
|
};
|