@quidgest/ui 0.14.8 → 0.14.10
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/README.md +5 -5
- package/dist/ui.css +10 -4
- package/dist/ui.esm.js +847 -847
- package/dist/ui.js +25 -25
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +175 -175
- package/dist/ui.scss +9 -5
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +105 -105
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getCurrentInstance as Je, computed as y, ref as A, provide as De, inject as ze, watch as
|
|
1
|
+
import { getCurrentInstance as Je, computed as y, ref as A, provide as De, inject as ze, watch as Z, defineComponent as C, mergeModels as G, toRef as Ve, useModel as K, openBlock as i, createElementBlock as f, renderSlot as p, normalizeClass as T, normalizeStyle as fe, withModifiers as ue, createVNode as D, unref as m, createCommentVNode as g, createElementVNode as q, Fragment as U, createTextVNode as ae, toDisplayString as E, createBlock as B, resolveDynamicComponent as Se, h as He, withCtx as w, normalizeProps as W, guardReactiveProps as ne, renderList as he, useAttrs as bt, createSlots as ye, withKeys as Ae, mergeProps as H, onMounted as Me, onUnmounted as gt, reactive as je, nextTick as te, onBeforeUnmount as _t, Teleport as $t, Transition as kt, withDirectives as wt, vModelDynamic as qt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.10
|
|
4
4
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -96,13 +96,13 @@ function Fe(n = {}, t = {}) {
|
|
|
96
96
|
}
|
|
97
97
|
const Oe = "q-defaults";
|
|
98
98
|
function xt() {
|
|
99
|
-
var s,
|
|
99
|
+
var s, a;
|
|
100
100
|
const n = Je();
|
|
101
101
|
if (!n)
|
|
102
102
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
103
103
|
const t = n.type.name ?? n.type.__name;
|
|
104
104
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
105
|
-
const e = tt(), l = (s = e.value) == null ? void 0 : s.Global, o = (
|
|
105
|
+
const e = tt(), l = (s = e.value) == null ? void 0 : s.Global, o = (a = e.value) == null ? void 0 : a[t];
|
|
106
106
|
return y(() => Fe(l, o));
|
|
107
107
|
}
|
|
108
108
|
function Pe(n) {
|
|
@@ -125,14 +125,14 @@ function St(n) {
|
|
|
125
125
|
return ((o = n.multiple) == null ? void 0 : o.value) || !1;
|
|
126
126
|
})
|
|
127
127
|
};
|
|
128
|
-
return
|
|
128
|
+
return Z(
|
|
129
129
|
() => t.multiple.value,
|
|
130
130
|
(o) => {
|
|
131
131
|
o && t.active.value ? t.active.value = [t.active.value] : o ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
|
|
132
132
|
}
|
|
133
133
|
), De(nt, t), t;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Lt(n) {
|
|
136
136
|
const t = ze(nt, void 0);
|
|
137
137
|
if (!t) return;
|
|
138
138
|
const e = y(() => {
|
|
@@ -144,7 +144,7 @@ function Bt(n) {
|
|
|
144
144
|
Array.isArray(t.active.value) ? e.value ? t.active.value = (o = t.active.value) == null ? void 0 : o.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
|
|
145
145
|
} };
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Bt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
|
|
148
148
|
__name: "QAccordion",
|
|
149
149
|
props: /* @__PURE__ */ G({
|
|
150
150
|
variant: {}
|
|
@@ -159,8 +159,8 @@ const Lt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
|
|
|
159
159
|
variant: Ve(n, "variant")
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
const e =
|
|
163
|
-
return St({ active: e }), (l, o) => (
|
|
162
|
+
const e = K(n, "modelValue");
|
|
163
|
+
return St({ active: e }), (l, o) => (i(), f("div", Bt, [
|
|
164
164
|
p(l.$slots, "default")
|
|
165
165
|
]));
|
|
166
166
|
}
|
|
@@ -180,14 +180,14 @@ function I(n) {
|
|
|
180
180
|
if (Qe(o.value)) return t(e, l);
|
|
181
181
|
const s = Je();
|
|
182
182
|
if (s === null) return t(e, l);
|
|
183
|
-
const
|
|
184
|
-
get(
|
|
185
|
-
var
|
|
186
|
-
const u = Reflect.get(
|
|
187
|
-
return typeof
|
|
183
|
+
const a = new Proxy(e, {
|
|
184
|
+
get(d, r) {
|
|
185
|
+
var x;
|
|
186
|
+
const u = Reflect.get(d, r), b = (x = o.value) == null ? void 0 : x[r];
|
|
187
|
+
return typeof r == "string" && !It(s.vnode, r) ? b ?? u : u;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
return t(
|
|
190
|
+
return t(a, l);
|
|
191
191
|
}), n;
|
|
192
192
|
}
|
|
193
193
|
const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
@@ -200,12 +200,12 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
200
200
|
const t = n, e = y(() => ({
|
|
201
201
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
202
202
|
}));
|
|
203
|
-
return (l, o) => (
|
|
203
|
+
return (l, o) => (i(), f("div", {
|
|
204
204
|
class: T(["q-spinner-loader", t.class]),
|
|
205
|
-
style:
|
|
205
|
+
style: fe(e.value)
|
|
206
206
|
}, null, 6));
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), _e = I(Vt), At = ["disabled"], Et = {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "q-btn__spinner"
|
|
211
211
|
}, Qt = { class: "q-btn__content" }, Dt = /* @__PURE__ */ C({
|
|
@@ -226,15 +226,15 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
226
226
|
emits: ["click"],
|
|
227
227
|
setup(n, { emit: t }) {
|
|
228
228
|
const e = n, l = t, o = y(() => e.disabled || e.loading);
|
|
229
|
-
function s(
|
|
230
|
-
o.value || l("click",
|
|
229
|
+
function s(d) {
|
|
230
|
+
o.value || l("click", d);
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
const
|
|
232
|
+
const a = y(() => {
|
|
233
|
+
const d = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
234
234
|
return [
|
|
235
235
|
"q-btn",
|
|
236
236
|
`q-btn--${e.bStyle}`,
|
|
237
|
-
|
|
237
|
+
d,
|
|
238
238
|
{
|
|
239
239
|
"q-btn--active": e.active,
|
|
240
240
|
"q-btn--borderless": e.borderless,
|
|
@@ -245,27 +245,27 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
245
245
|
e.class
|
|
246
246
|
];
|
|
247
247
|
});
|
|
248
|
-
return (
|
|
248
|
+
return (d, r) => (i(), f("button", {
|
|
249
249
|
type: "button",
|
|
250
|
-
class: T(
|
|
250
|
+
class: T(a.value),
|
|
251
251
|
disabled: o.value,
|
|
252
|
-
onClick:
|
|
252
|
+
onClick: ue(s, ["stop", "prevent"])
|
|
253
253
|
}, [
|
|
254
|
-
|
|
255
|
-
D(m(
|
|
256
|
-
])) :
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
], 64)) :
|
|
261
|
-
p(
|
|
262
|
-
|
|
263
|
-
|
|
254
|
+
d.loading ? (i(), f("div", Et, [
|
|
255
|
+
D(m(_e), { size: 20 })
|
|
256
|
+
])) : g("", !0),
|
|
257
|
+
q("span", Qt, [
|
|
258
|
+
d.iconOnRight ? (i(), f(U, { key: 0 }, [
|
|
259
|
+
ae(E(e.label), 1)
|
|
260
|
+
], 64)) : g("", !0),
|
|
261
|
+
p(d.$slots, "default"),
|
|
262
|
+
d.iconOnRight ? g("", !0) : (i(), f(U, { key: 1 }, [
|
|
263
|
+
ae(E(e.label), 1)
|
|
264
264
|
], 64))
|
|
265
265
|
])
|
|
266
266
|
], 10, At));
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), le = I(Dt), zt = /* @__PURE__ */ C({
|
|
269
269
|
__name: "QIcon",
|
|
270
270
|
props: {
|
|
271
271
|
icon: {},
|
|
@@ -286,7 +286,7 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
return (l, o) => (
|
|
289
|
+
return (l, o) => (i(), B(Se(e.value), {
|
|
290
290
|
class: T(t.class),
|
|
291
291
|
icon: t.icon,
|
|
292
292
|
size: t.size
|
|
@@ -305,9 +305,9 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
305
305
|
const t = n, e = y(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = y(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), o = y(() => ({
|
|
306
306
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
307
307
|
}));
|
|
308
|
-
return (s,
|
|
308
|
+
return (s, a) => (i(), f("i", {
|
|
309
309
|
class: T(["q-icon", "q-icon__font", e.value, l.value, t.class]),
|
|
310
|
-
style:
|
|
310
|
+
style: fe(o.value)
|
|
311
311
|
}, null, 6));
|
|
312
312
|
}
|
|
313
313
|
}), Ft = ["src"], Ot = /* @__PURE__ */ C({
|
|
@@ -321,13 +321,13 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
321
321
|
const t = n, e = y(() => ({
|
|
322
322
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
323
323
|
}));
|
|
324
|
-
return (l, o) => (
|
|
324
|
+
return (l, o) => (i(), f("img", {
|
|
325
325
|
src: t.icon,
|
|
326
326
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
327
|
-
style:
|
|
327
|
+
style: fe(e.value)
|
|
328
328
|
}, null, 14, Ft));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), be = {}, Pt = C({
|
|
331
331
|
name: "InlineSvg",
|
|
332
332
|
emits: {
|
|
333
333
|
loaded: (n) => typeof n == "object",
|
|
@@ -408,11 +408,11 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
408
408
|
*/
|
|
409
409
|
async getSource(n) {
|
|
410
410
|
try {
|
|
411
|
-
|
|
412
|
-
const t = await
|
|
411
|
+
be[n] || (be[n] = Nt(this.download(n))), this.svgElSource && be[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
412
|
+
const t = await be[n];
|
|
413
413
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
414
414
|
} catch (t) {
|
|
415
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
415
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete be[n], this.$emit("error", t);
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
@@ -468,19 +468,19 @@ const Rt = /* @__PURE__ */ C({
|
|
|
468
468
|
const e = n, l = t, o = y(() => ({
|
|
469
469
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
470
470
|
}));
|
|
471
|
-
function s(
|
|
472
|
-
l("loaded",
|
|
471
|
+
function s(d) {
|
|
472
|
+
l("loaded", d);
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function a() {
|
|
475
475
|
l("unloaded");
|
|
476
476
|
}
|
|
477
|
-
return (
|
|
477
|
+
return (d, r) => (i(), B(m(Pt), {
|
|
478
478
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
479
479
|
src: e.bundle,
|
|
480
480
|
symbol: e.icon,
|
|
481
|
-
style:
|
|
481
|
+
style: fe(o.value),
|
|
482
482
|
onLoaded: s,
|
|
483
|
-
onUnloaded:
|
|
483
|
+
onUnloaded: a
|
|
484
484
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
485
485
|
}
|
|
486
486
|
}), O = I(zt), ot = I(Mt), st = I(Ot), at = I(Rt), Gt = {
|
|
@@ -511,29 +511,29 @@ function it(n) {
|
|
|
511
511
|
}
|
|
512
512
|
function Kt(n) {
|
|
513
513
|
const t = n.r / 255, e = n.g / 255, l = n.b / 255, o = Math.max(t, e, l), s = Math.min(t, e, l);
|
|
514
|
-
let
|
|
515
|
-
const
|
|
514
|
+
let a = 0, d;
|
|
515
|
+
const r = (o + s) / 2;
|
|
516
516
|
if (o === s)
|
|
517
|
-
|
|
517
|
+
a = d = 0;
|
|
518
518
|
else {
|
|
519
519
|
const u = o - s;
|
|
520
|
-
switch (
|
|
520
|
+
switch (d = r > 0.5 ? u / (2 - o - s) : u / (o + s), o) {
|
|
521
521
|
case t:
|
|
522
|
-
|
|
522
|
+
a = (e - l) / u + (e < l ? 6 : 0);
|
|
523
523
|
break;
|
|
524
524
|
case e:
|
|
525
|
-
|
|
525
|
+
a = (l - t) / u + 2;
|
|
526
526
|
break;
|
|
527
527
|
case l:
|
|
528
|
-
|
|
528
|
+
a = (t - e) / u + 4;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
|
-
|
|
531
|
+
a /= 6;
|
|
532
532
|
}
|
|
533
533
|
return {
|
|
534
|
-
h: Math.round(
|
|
535
|
-
s: Math.round(
|
|
536
|
-
l: Math.round(
|
|
534
|
+
h: Math.round(a * 360),
|
|
535
|
+
s: Math.round(d * 100),
|
|
536
|
+
l: Math.round(r * 100)
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
539
|
function Wt(n) {
|
|
@@ -553,45 +553,45 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
553
553
|
const e = n, l = t, o = y(
|
|
554
554
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
555
555
|
), s = y(() => {
|
|
556
|
-
const
|
|
557
|
-
return ["q-badge", `q-badge--${e.variant}`,
|
|
558
|
-
}),
|
|
559
|
-
let
|
|
556
|
+
const r = o.value ? `q-badge--${e.color}` : void 0;
|
|
557
|
+
return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
|
|
558
|
+
}), a = y(() => {
|
|
559
|
+
let r, u;
|
|
560
560
|
if (!o.value)
|
|
561
|
-
if (
|
|
561
|
+
if (r = e.color, e.variant === "tonal")
|
|
562
562
|
u = e.color;
|
|
563
563
|
else {
|
|
564
|
-
const
|
|
565
|
-
u = Wt(
|
|
564
|
+
const b = it(r), x = Kt(b);
|
|
565
|
+
u = Wt(x.l);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
|
-
"--q-badge-color":
|
|
568
|
+
"--q-badge-color": r,
|
|
569
569
|
"--q-badge-text-color": u
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
|
-
function
|
|
572
|
+
function d() {
|
|
573
573
|
l("click:remove");
|
|
574
574
|
}
|
|
575
|
-
return (
|
|
575
|
+
return (r, u) => (i(), f("span", {
|
|
576
576
|
class: T(s.value),
|
|
577
577
|
role: "presentation",
|
|
578
|
-
style:
|
|
578
|
+
style: fe(a.value)
|
|
579
579
|
}, [
|
|
580
|
-
u[0] || (u[0] =
|
|
581
|
-
|
|
582
|
-
p(
|
|
583
|
-
e.removable ? (
|
|
580
|
+
u[0] || (u[0] = q("div", { class: "q-badge__underlay" }, null, -1)),
|
|
581
|
+
q("div", Xt, [
|
|
582
|
+
p(r.$slots, "default"),
|
|
583
|
+
e.removable ? (i(), B(m(le), {
|
|
584
584
|
key: 0,
|
|
585
585
|
class: "q-badge__remove",
|
|
586
586
|
borderless: "",
|
|
587
587
|
tabindex: "0",
|
|
588
|
-
onClick:
|
|
588
|
+
onClick: d
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
D(m(O),
|
|
590
|
+
default: w(() => [
|
|
591
|
+
D(m(O), W(ne(e.icons.remove)), null, 16)
|
|
592
592
|
]),
|
|
593
593
|
_: 1
|
|
594
|
-
})) :
|
|
594
|
+
})) : g("", !0)
|
|
595
595
|
])
|
|
596
596
|
], 6));
|
|
597
597
|
}
|
|
@@ -612,7 +612,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
612
612
|
borderless: Ve(t, "borderless"),
|
|
613
613
|
elevated: !1
|
|
614
614
|
}
|
|
615
|
-
}), (e, l) => (
|
|
615
|
+
}), (e, l) => (i(), f("div", {
|
|
616
616
|
class: T([
|
|
617
617
|
"q-btn-group",
|
|
618
618
|
{
|
|
@@ -639,11 +639,11 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
639
639
|
}),
|
|
640
640
|
emits: ["update:modelValue"],
|
|
641
641
|
setup(n) {
|
|
642
|
-
const t = n, e =
|
|
642
|
+
const t = n, e = K(n, "modelValue");
|
|
643
643
|
function l(o) {
|
|
644
644
|
e.value === o.key && !t.required ? e.value = void 0 : e.value = o.key;
|
|
645
645
|
}
|
|
646
|
-
return (o, s) => (
|
|
646
|
+
return (o, s) => (i(), B(m(rt), {
|
|
647
647
|
"b-style": "secondary",
|
|
648
648
|
class: T(t.class),
|
|
649
649
|
disabled: t.disabled,
|
|
@@ -651,18 +651,18 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
651
651
|
elevated: t.elevated,
|
|
652
652
|
role: "listbox"
|
|
653
653
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
(
|
|
656
|
-
key:
|
|
657
|
-
title:
|
|
658
|
-
label:
|
|
659
|
-
active: e.value ===
|
|
654
|
+
default: w(() => [
|
|
655
|
+
(i(!0), f(U, null, he(t.options, (a) => (i(), B(m(le), {
|
|
656
|
+
key: a.key,
|
|
657
|
+
title: a.title,
|
|
658
|
+
label: a.label,
|
|
659
|
+
active: e.value === a.key,
|
|
660
660
|
role: "option",
|
|
661
|
-
"aria-selected": e.value ===
|
|
662
|
-
onClick: () => l(
|
|
661
|
+
"aria-selected": e.value === a.key,
|
|
662
|
+
onClick: () => l(a)
|
|
663
663
|
}, {
|
|
664
|
-
default:
|
|
665
|
-
p(o.$slots,
|
|
664
|
+
default: w(() => [
|
|
665
|
+
p(o.$slots, a.key)
|
|
666
666
|
]),
|
|
667
667
|
_: 2
|
|
668
668
|
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
|
|
@@ -672,7 +672,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
672
672
|
}
|
|
673
673
|
}), tn = I(en);
|
|
674
674
|
let nn = 0;
|
|
675
|
-
function
|
|
675
|
+
function ie(n) {
|
|
676
676
|
return n || `uid-${++nn}`;
|
|
677
677
|
}
|
|
678
678
|
const ln = { class: "q-card__header" }, on = {
|
|
@@ -704,13 +704,13 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
704
704
|
width: { default: void 0 }
|
|
705
705
|
},
|
|
706
706
|
setup(n) {
|
|
707
|
-
const t = n, e = bt(), l =
|
|
708
|
-
const
|
|
707
|
+
const t = n, e = bt(), l = ie(t.id), o = y(() => {
|
|
708
|
+
const r = t.width ? `q-card--${t.width}` : void 0, u = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, b = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
|
|
709
709
|
return [
|
|
710
710
|
"q-card",
|
|
711
|
-
|
|
711
|
+
r,
|
|
712
712
|
u,
|
|
713
|
-
|
|
713
|
+
b,
|
|
714
714
|
{
|
|
715
715
|
"q-card--clickable": s.value,
|
|
716
716
|
"q-card--loading": t.loading,
|
|
@@ -718,48 +718,48 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
718
718
|
"q-card--disabled": t.disabled
|
|
719
719
|
}
|
|
720
720
|
];
|
|
721
|
-
}), s = y(() => !!e.onClick || t.href),
|
|
722
|
-
|
|
721
|
+
}), s = y(() => !!e.onClick || t.href), a = y(() => t.disabled || t.loading), d = (r) => {
|
|
722
|
+
a.value && r.stopImmediatePropagation();
|
|
723
723
|
};
|
|
724
|
-
return (
|
|
724
|
+
return (r, u) => (i(), B(Se(t.href ? "a" : "div"), {
|
|
725
725
|
id: m(l),
|
|
726
|
-
class: T([...o.value,
|
|
727
|
-
href: t.href && !
|
|
728
|
-
onClick:
|
|
726
|
+
class: T([...o.value, r.$attrs.class]),
|
|
727
|
+
href: t.href && !a.value ? t.href : void 0,
|
|
728
|
+
onClick: d
|
|
729
729
|
}, {
|
|
730
|
-
default:
|
|
731
|
-
t.loading ? (
|
|
730
|
+
default: w(() => [
|
|
731
|
+
t.loading ? (i(), B(m(_e), {
|
|
732
732
|
key: 0,
|
|
733
733
|
size: 36
|
|
734
|
-
})) : (
|
|
735
|
-
|
|
736
|
-
p(
|
|
737
|
-
p(
|
|
738
|
-
|
|
739
|
-
p(
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
734
|
+
})) : (i(), f(U, { key: 1 }, [
|
|
735
|
+
q("div", ln, [
|
|
736
|
+
p(r.$slots, "header", {}, () => [
|
|
737
|
+
p(r.$slots, "header.prepend"),
|
|
738
|
+
r.$slots.title || t.title || r.$slots.subtitle || t.subtitle ? (i(), f("div", on, [
|
|
739
|
+
p(r.$slots, "header.content.prepend"),
|
|
740
|
+
q("div", sn, [
|
|
741
|
+
r.$slots.title || t.title ? (i(), f("p", an, [
|
|
742
|
+
r.$slots.title ? p(r.$slots, "title", { key: 0 }) : (i(), f(U, { key: 1 }, [
|
|
743
|
+
ae(E(r.$props.title), 1)
|
|
744
744
|
], 64))
|
|
745
|
-
])) :
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
745
|
+
])) : g("", !0),
|
|
746
|
+
r.$slots.subtitle || t.subtitle ? (i(), f("p", rn, [
|
|
747
|
+
r.$slots.subtitle ? p(r.$slots, "subtitle", { key: 0 }) : (i(), f(U, { key: 1 }, [
|
|
748
|
+
ae(E(r.$props.subtitle), 1)
|
|
749
749
|
], 64))
|
|
750
|
-
])) :
|
|
750
|
+
])) : g("", !0)
|
|
751
751
|
]),
|
|
752
|
-
p(
|
|
753
|
-
])) :
|
|
754
|
-
p(
|
|
752
|
+
p(r.$slots, "header.content.append")
|
|
753
|
+
])) : g("", !0),
|
|
754
|
+
p(r.$slots, "header.append")
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
|
-
|
|
758
|
-
p(
|
|
757
|
+
q("div", dn, [
|
|
758
|
+
p(r.$slots, "default")
|
|
759
759
|
]),
|
|
760
|
-
|
|
761
|
-
p(
|
|
762
|
-
])) :
|
|
760
|
+
r.$slots.footer ? (i(), f("div", un, [
|
|
761
|
+
p(r.$slots, "footer")
|
|
762
|
+
])) : g("", !0)
|
|
763
763
|
], 64))
|
|
764
764
|
]),
|
|
765
765
|
_: 3
|
|
@@ -772,12 +772,12 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
772
772
|
},
|
|
773
773
|
setup(n) {
|
|
774
774
|
const t = n;
|
|
775
|
-
return (e, l) => e.$slots.extras ? (
|
|
776
|
-
|
|
777
|
-
|
|
775
|
+
return (e, l) => e.$slots.extras ? (i(), f("div", fn, [
|
|
776
|
+
q("span", null, E(t.label), 1),
|
|
777
|
+
q("div", pn, [
|
|
778
778
|
p(e.$slots, "extras")
|
|
779
779
|
])
|
|
780
|
-
])) : (
|
|
780
|
+
])) : (i(), f("span", mn, E(t.label), 1));
|
|
781
781
|
}
|
|
782
782
|
}), hn = {
|
|
783
783
|
checked: {
|
|
@@ -805,7 +805,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
805
805
|
}),
|
|
806
806
|
emits: ["update:modelValue"],
|
|
807
807
|
setup(n) {
|
|
808
|
-
const t = n, e =
|
|
808
|
+
const t = n, e = K(n, "modelValue"), l = ie(t.id), o = y(() => [
|
|
809
809
|
"q-checkbox",
|
|
810
810
|
`q-checkbox--${t.size}`,
|
|
811
811
|
`q-checkbox--${t.color}`,
|
|
@@ -820,52 +820,52 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
820
820
|
function s() {
|
|
821
821
|
!t.disabled && !t.readonly && (e.value = !e.value);
|
|
822
822
|
}
|
|
823
|
-
return (
|
|
824
|
-
|
|
823
|
+
return (a, d) => (i(), f(U, null, [
|
|
824
|
+
q("label", {
|
|
825
825
|
class: T(o.value)
|
|
826
826
|
}, [
|
|
827
|
-
t.labelPlacement !== "right" ? (
|
|
827
|
+
t.labelPlacement !== "right" ? (i(), B(We, {
|
|
828
828
|
key: 0,
|
|
829
829
|
label: t.label
|
|
830
|
-
},
|
|
831
|
-
|
|
830
|
+
}, ye({ _: 2 }, [
|
|
831
|
+
a.$slots.extras ? {
|
|
832
832
|
name: "extras",
|
|
833
|
-
fn:
|
|
834
|
-
p(
|
|
833
|
+
fn: w(() => [
|
|
834
|
+
p(a.$slots, "extras")
|
|
835
835
|
]),
|
|
836
836
|
key: "0"
|
|
837
837
|
} : void 0
|
|
838
|
-
]), 1032, ["label"])) :
|
|
839
|
-
|
|
838
|
+
]), 1032, ["label"])) : g("", !0),
|
|
839
|
+
q("button", {
|
|
840
840
|
id: m(l),
|
|
841
841
|
role: "checkbox",
|
|
842
842
|
type: "button",
|
|
843
843
|
"aria-checked": t.indeterminate ? "mixed" : e.value,
|
|
844
844
|
disabled: t.disabled || t.readonly,
|
|
845
845
|
class: "q-checkbox__input",
|
|
846
|
-
onClick:
|
|
846
|
+
onClick: ue(s, ["prevent"]),
|
|
847
847
|
onKeydown: [
|
|
848
|
-
Ae(
|
|
849
|
-
|
|
848
|
+
Ae(ue(s, ["prevent"]), ["space"]),
|
|
849
|
+
d[0] || (d[0] = Ae(ue(() => {
|
|
850
850
|
}, ["prevent"]), ["enter"]))
|
|
851
851
|
]
|
|
852
852
|
}, [
|
|
853
|
-
e.value ||
|
|
853
|
+
e.value || a.indeterminate ? (i(), B(m(O), H({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : g("", !0)
|
|
854
854
|
], 40, yn),
|
|
855
|
-
t.labelPlacement === "right" ? (
|
|
855
|
+
t.labelPlacement === "right" ? (i(), B(We, {
|
|
856
856
|
key: 1,
|
|
857
857
|
label: t.label
|
|
858
|
-
},
|
|
859
|
-
|
|
858
|
+
}, ye({ _: 2 }, [
|
|
859
|
+
a.$slots.extras ? {
|
|
860
860
|
name: "extras",
|
|
861
|
-
fn:
|
|
862
|
-
p(
|
|
861
|
+
fn: w(() => [
|
|
862
|
+
p(a.$slots, "extras")
|
|
863
863
|
]),
|
|
864
864
|
key: "0"
|
|
865
865
|
} : void 0
|
|
866
|
-
]), 1032, ["label"])) :
|
|
866
|
+
]), 1032, ["label"])) : g("", !0)
|
|
867
867
|
], 2),
|
|
868
|
-
|
|
868
|
+
q("input", {
|
|
869
869
|
type: "checkbox",
|
|
870
870
|
tabindex: "-1",
|
|
871
871
|
"aria-hidden": "true",
|
|
@@ -888,7 +888,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
888
888
|
}, xn = {
|
|
889
889
|
key: 0,
|
|
890
890
|
class: "q-collapsible__subtitle"
|
|
891
|
-
}, Sn = { class: "q-collapsible__content-inner" },
|
|
891
|
+
}, Sn = { class: "q-collapsible__content-inner" }, Ln = { class: "q-collapsible__content" }, Bn = /* @__PURE__ */ C({
|
|
892
892
|
__name: "QCollapsible",
|
|
893
893
|
props: /* @__PURE__ */ G({
|
|
894
894
|
id: { default: void 0 },
|
|
@@ -906,69 +906,69 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
906
906
|
}),
|
|
907
907
|
emits: ["update:modelValue"],
|
|
908
908
|
setup(n) {
|
|
909
|
-
const t = n, e =
|
|
910
|
-
const u = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0,
|
|
909
|
+
const t = n, e = K(n, "modelValue"), l = ie(t.id), o = Lt(l), s = y(() => t.width === "block" ? "block" : void 0), a = y(() => {
|
|
910
|
+
const u = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, b = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
|
|
911
911
|
return [
|
|
912
912
|
"q-collapsible",
|
|
913
913
|
u,
|
|
914
|
-
|
|
914
|
+
b,
|
|
915
915
|
{
|
|
916
916
|
"q-collapsible--icon-right": t.iconRight,
|
|
917
917
|
"q-collapsible--expanded": e.value
|
|
918
918
|
}
|
|
919
919
|
];
|
|
920
|
-
}),
|
|
920
|
+
}), d = y(() => [
|
|
921
921
|
"q-collapsible__content-wrapper",
|
|
922
922
|
{
|
|
923
923
|
"q-collapsible__content-show": e.value
|
|
924
924
|
}
|
|
925
|
-
]),
|
|
925
|
+
]), r = () => {
|
|
926
926
|
e.value = !e.value, o == null || o.toggle();
|
|
927
927
|
};
|
|
928
|
-
return
|
|
928
|
+
return Z(
|
|
929
929
|
() => o == null ? void 0 : o.isActive.value,
|
|
930
930
|
() => e.value = o == null ? void 0 : o.isActive.value
|
|
931
|
-
), (u,
|
|
931
|
+
), (u, b) => (i(), B(m(dt), {
|
|
932
932
|
id: m(l),
|
|
933
|
-
class: T(
|
|
933
|
+
class: T(a.value),
|
|
934
934
|
width: s.value
|
|
935
935
|
}, {
|
|
936
|
-
header:
|
|
937
|
-
u.title ? (
|
|
938
|
-
D(m(
|
|
936
|
+
header: w(() => [
|
|
937
|
+
u.title ? (i(), f("div", $n, [
|
|
938
|
+
D(m(le), {
|
|
939
939
|
"b-style": "tertiary",
|
|
940
940
|
class: "q-collapsible__btn",
|
|
941
|
-
onClick:
|
|
941
|
+
onClick: r
|
|
942
942
|
}, {
|
|
943
|
-
default:
|
|
944
|
-
|
|
945
|
-
u.iconRight ?
|
|
943
|
+
default: w(() => [
|
|
944
|
+
q("div", kn, [
|
|
945
|
+
u.iconRight ? g("", !0) : p(u.$slots, "icon", { key: 0 }, () => [
|
|
946
946
|
D(m(O), H({ class: "q-collapsible__chevron" }, t.icons.chevron), null, 16)
|
|
947
947
|
]),
|
|
948
948
|
p(u.$slots, "title.prepend"),
|
|
949
|
-
|
|
950
|
-
t.required ? (
|
|
949
|
+
q("h4", wn, E(u.title), 1),
|
|
950
|
+
t.required ? (i(), f("span", qn, " * ")) : g("", !0),
|
|
951
951
|
p(u.$slots, "title.append"),
|
|
952
952
|
u.iconRight ? p(u.$slots, "icon", { key: 2 }, () => [
|
|
953
953
|
D(m(O), H({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, t.icons.chevron), null, 16)
|
|
954
|
-
]) :
|
|
954
|
+
]) : g("", !0)
|
|
955
955
|
]),
|
|
956
|
-
u.$slots.subtitle || u.subtitle ? (
|
|
956
|
+
u.$slots.subtitle || u.subtitle ? (i(), f("div", xn, [
|
|
957
957
|
p(u.$slots, "subtitle", {}, () => [
|
|
958
|
-
|
|
958
|
+
ae(E(u.subtitle), 1)
|
|
959
959
|
])
|
|
960
|
-
])) :
|
|
960
|
+
])) : g("", !0)
|
|
961
961
|
]),
|
|
962
962
|
_: 3
|
|
963
963
|
})
|
|
964
|
-
])) :
|
|
964
|
+
])) : g("", !0)
|
|
965
965
|
]),
|
|
966
|
-
default:
|
|
967
|
-
|
|
968
|
-
class: T(
|
|
966
|
+
default: w(() => [
|
|
967
|
+
q("div", {
|
|
968
|
+
class: T(d.value)
|
|
969
969
|
}, [
|
|
970
|
-
|
|
971
|
-
|
|
970
|
+
q("div", Sn, [
|
|
971
|
+
q("div", Ln, [
|
|
972
972
|
p(u.$slots, "default")
|
|
973
973
|
])
|
|
974
974
|
])
|
|
@@ -977,7 +977,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
977
977
|
_: 3
|
|
978
978
|
}, 8, ["id", "class", "width"]));
|
|
979
979
|
}
|
|
980
|
-
}), Cn = I(
|
|
980
|
+
}), Cn = I(Bn), In = /* @__PURE__ */ C({
|
|
981
981
|
__name: "QList",
|
|
982
982
|
props: /* @__PURE__ */ G({
|
|
983
983
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -996,130 +996,130 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
996
996
|
}),
|
|
997
997
|
emits: ["update:modelValue"],
|
|
998
998
|
setup(n, { expose: t }) {
|
|
999
|
-
const e = n, l =
|
|
1000
|
-
(v) => e.items.some((
|
|
1001
|
-
) : [{ id: "", title: "" }]),
|
|
1002
|
-
function
|
|
999
|
+
const e = n, l = K(n, "modelValue"), o = A(!1), s = y(() => a.value.length > 1 ? "div" : "ul"), a = y(() => e.groups.length ? e.groups.filter(
|
|
1000
|
+
(v) => e.items.some((S) => S.group === v.id)
|
|
1001
|
+
) : [{ id: "", title: "" }]), d = A(null);
|
|
1002
|
+
function r(v) {
|
|
1003
1003
|
l.value = v;
|
|
1004
1004
|
}
|
|
1005
1005
|
function u() {
|
|
1006
1006
|
o.value = !0;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function b() {
|
|
1009
1009
|
o.value = !1;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function x(v) {
|
|
1012
1012
|
var $;
|
|
1013
|
-
if (($ =
|
|
1013
|
+
if (($ = d.value) != null && $.contains(v.relatedTarget))
|
|
1014
1014
|
return;
|
|
1015
|
-
let
|
|
1016
|
-
l.value ?
|
|
1015
|
+
let S;
|
|
1016
|
+
l.value ? S = e.items.findIndex((J) => J[e.itemValue] === l.value) : S = Q();
|
|
1017
1017
|
const h = o.value;
|
|
1018
|
-
|
|
1018
|
+
z(S, h);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function R(v) {
|
|
1021
1021
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
|
|
1022
1022
|
case "ArrowDown":
|
|
1023
|
-
|
|
1023
|
+
P("next");
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "ArrowUp":
|
|
1026
|
-
|
|
1026
|
+
P("prev");
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "Home":
|
|
1029
|
-
|
|
1029
|
+
P("first");
|
|
1030
1030
|
break;
|
|
1031
1031
|
case "End":
|
|
1032
|
-
|
|
1032
|
+
P("last");
|
|
1033
1033
|
break;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function P(v) {
|
|
1037
1037
|
switch (v) {
|
|
1038
1038
|
case "next":
|
|
1039
1039
|
case "prev":
|
|
1040
|
-
|
|
1040
|
+
z(N(v));
|
|
1041
1041
|
break;
|
|
1042
1042
|
case "first":
|
|
1043
|
-
|
|
1043
|
+
z(Q());
|
|
1044
1044
|
break;
|
|
1045
1045
|
case "last":
|
|
1046
|
-
|
|
1046
|
+
z(oe());
|
|
1047
1047
|
break;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function z(v, S = !1) {
|
|
1051
1051
|
var $;
|
|
1052
|
-
($ =
|
|
1052
|
+
($ = _()[v]) == null || $.focus({ preventScroll: S });
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
var
|
|
1056
|
-
const v = (
|
|
1054
|
+
function _() {
|
|
1055
|
+
var S;
|
|
1056
|
+
const v = (S = d.value) == null ? void 0 : S.querySelectorAll("li");
|
|
1057
1057
|
return v ? Array.from(v) : [];
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1061
|
-
}
|
|
1062
|
-
function P() {
|
|
1063
|
-
return g().indexOf(document.activeElement);
|
|
1059
|
+
function V(v) {
|
|
1060
|
+
return _()[v];
|
|
1064
1061
|
}
|
|
1065
1062
|
function M() {
|
|
1066
|
-
|
|
1067
|
-
|
|
1063
|
+
return _().indexOf(document.activeElement);
|
|
1064
|
+
}
|
|
1065
|
+
function Q() {
|
|
1066
|
+
const v = _(), S = v.find((h) => X(h));
|
|
1067
|
+
return S ? v.indexOf(S) : -1;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
const v =
|
|
1071
|
-
return
|
|
1069
|
+
function oe() {
|
|
1070
|
+
const v = _(), S = [...v].reverse().find((h) => X(h));
|
|
1071
|
+
return S ? v.indexOf(S) : -1;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1073
|
+
function ee(v, S, h) {
|
|
1074
|
+
return S === "prev" && v === 0 || S === "next" && v === h.length - 1;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1076
|
+
function N(v) {
|
|
1077
|
+
const S = M();
|
|
1078
|
+
return se(S, v);
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
const h =
|
|
1082
|
-
if (
|
|
1080
|
+
function se(v, S) {
|
|
1081
|
+
const h = _();
|
|
1082
|
+
if (ee(v, S, h))
|
|
1083
1083
|
return v;
|
|
1084
|
-
let $ = v + (
|
|
1085
|
-
for (; !
|
|
1086
|
-
if (
|
|
1084
|
+
let $ = v + (S === "next" ? 1 : -1);
|
|
1085
|
+
for (; !X(h[$]); ) {
|
|
1086
|
+
if (ee($, S, h))
|
|
1087
1087
|
return v;
|
|
1088
|
-
$ +=
|
|
1088
|
+
$ += S === "next" ? 1 : -1;
|
|
1089
1089
|
}
|
|
1090
1090
|
return $;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function X(v) {
|
|
1093
1093
|
return v.tabIndex === -2;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return v ? e.items.filter((
|
|
1095
|
+
function ce(v) {
|
|
1096
|
+
return v ? e.items.filter((S) => S.group === v) : e.items;
|
|
1097
1097
|
}
|
|
1098
1098
|
return t({
|
|
1099
|
-
focusItem:
|
|
1100
|
-
getItem:
|
|
1101
|
-
getAdjacentItemIndex:
|
|
1102
|
-
getFirstFocusableItemIndex:
|
|
1103
|
-
getLastFocusableItemIndex:
|
|
1104
|
-
}), (v,
|
|
1099
|
+
focusItem: z,
|
|
1100
|
+
getItem: V,
|
|
1101
|
+
getAdjacentItemIndex: se,
|
|
1102
|
+
getFirstFocusableItemIndex: Q,
|
|
1103
|
+
getLastFocusableItemIndex: oe
|
|
1104
|
+
}), (v, S) => (i(), B(Se(s.value), {
|
|
1105
1105
|
ref_key: "listRef",
|
|
1106
|
-
ref:
|
|
1106
|
+
ref: d,
|
|
1107
1107
|
class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
1108
1108
|
role: "listbox",
|
|
1109
1109
|
tabindex: e.disabled ? -1 : 0,
|
|
1110
|
-
onFocus:
|
|
1110
|
+
onFocus: x,
|
|
1111
1111
|
onMousedown: u,
|
|
1112
|
-
onMouseup:
|
|
1113
|
-
onKeydown:
|
|
1112
|
+
onMouseup: b,
|
|
1113
|
+
onKeydown: R
|
|
1114
1114
|
}, {
|
|
1115
|
-
default:
|
|
1116
|
-
(
|
|
1115
|
+
default: w(() => [
|
|
1116
|
+
(i(!0), f(U, null, he(a.value, (h) => (i(), B(m(ct), {
|
|
1117
1117
|
id: h.id,
|
|
1118
1118
|
key: h.id,
|
|
1119
|
-
title:
|
|
1119
|
+
title: a.value.length === 1 ? void 0 : h.title
|
|
1120
1120
|
}, {
|
|
1121
|
-
default:
|
|
1122
|
-
(
|
|
1121
|
+
default: w(() => [
|
|
1122
|
+
(i(!0), f(U, null, he(ce(h.id), ($) => (i(), B(m(ut), {
|
|
1123
1123
|
key: $[e.itemValue],
|
|
1124
1124
|
value: $[e.itemValue],
|
|
1125
1125
|
label: $[e.itemLabel],
|
|
@@ -1128,9 +1128,9 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1128
1128
|
disabled: e.disabled || h.disabled || $.disabled,
|
|
1129
1129
|
highlighted: e.highlighted === $[e.itemValue],
|
|
1130
1130
|
selected: v.selectable && l.value === $[e.itemValue],
|
|
1131
|
-
onSelect:
|
|
1131
|
+
onSelect: r
|
|
1132
1132
|
}, {
|
|
1133
|
-
default:
|
|
1133
|
+
default: w(() => [
|
|
1134
1134
|
p(v.$slots, "item", { item: $ })
|
|
1135
1135
|
]),
|
|
1136
1136
|
_: 2
|
|
@@ -1166,14 +1166,14 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1166
1166
|
},
|
|
1167
1167
|
emits: ["select"],
|
|
1168
1168
|
setup(n, { emit: t }) {
|
|
1169
|
-
const e = n, l = t, o =
|
|
1169
|
+
const e = n, l = t, o = ie();
|
|
1170
1170
|
function s() {
|
|
1171
1171
|
e.disabled || l("select", e.value);
|
|
1172
1172
|
}
|
|
1173
|
-
function d
|
|
1174
|
-
|
|
1173
|
+
function a(d) {
|
|
1174
|
+
d.key === "Tab" && s(), (d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), s());
|
|
1175
1175
|
}
|
|
1176
|
-
return (
|
|
1176
|
+
return (d, r) => (i(), f("li", {
|
|
1177
1177
|
id: m(o),
|
|
1178
1178
|
"data-key": e.value,
|
|
1179
1179
|
role: "option",
|
|
@@ -1188,23 +1188,23 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1188
1188
|
]),
|
|
1189
1189
|
"aria-label": e.label,
|
|
1190
1190
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
1191
|
-
onKeydown:
|
|
1192
|
-
onClick:
|
|
1191
|
+
onKeydown: a,
|
|
1192
|
+
onClick: ue(s, ["stop", "prevent"])
|
|
1193
1193
|
}, [
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
p(
|
|
1197
|
-
e.icon ? (
|
|
1198
|
-
|
|
1194
|
+
q("div", An, [
|
|
1195
|
+
q("div", En, [
|
|
1196
|
+
p(d.$slots, "default", {}, () => [
|
|
1197
|
+
e.icon ? (i(), B(m(O), W(H({ key: 0 }, e.icon)), null, 16)) : g("", !0),
|
|
1198
|
+
ae(" " + E(e.label), 1)
|
|
1199
1199
|
])
|
|
1200
1200
|
]),
|
|
1201
|
-
e.description ? (
|
|
1202
|
-
D(m(O),
|
|
1203
|
-
|
|
1204
|
-
])) :
|
|
1201
|
+
e.description ? (i(), f("div", Qn, [
|
|
1202
|
+
D(m(O), W(ne(e.icons.description)), null, 16),
|
|
1203
|
+
q("span", null, E(e.description), 1)
|
|
1204
|
+
])) : g("", !0)
|
|
1205
1205
|
]),
|
|
1206
|
-
|
|
1207
|
-
e.selected ? (
|
|
1206
|
+
q("div", Dn, [
|
|
1207
|
+
e.selected ? (i(), B(m(O), H({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : g("", !0)
|
|
1208
1208
|
])
|
|
1209
1209
|
], 42, Vn));
|
|
1210
1210
|
}
|
|
@@ -1215,23 +1215,23 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1215
1215
|
title: { default: "" }
|
|
1216
1216
|
},
|
|
1217
1217
|
setup(n) {
|
|
1218
|
-
const t = n, e =
|
|
1219
|
-
return (l, o) => (
|
|
1218
|
+
const t = n, e = ie();
|
|
1219
|
+
return (l, o) => (i(), f("ul", {
|
|
1220
1220
|
class: "q-list-item-group",
|
|
1221
1221
|
role: "group",
|
|
1222
1222
|
"data-key": t.id,
|
|
1223
1223
|
"aria-labelledby": t.title ? m(e) : void 0
|
|
1224
1224
|
}, [
|
|
1225
|
-
t.title ? (
|
|
1225
|
+
t.title ? (i(), f("li", {
|
|
1226
1226
|
key: 0,
|
|
1227
1227
|
id: m(e),
|
|
1228
1228
|
class: "q-list-item-group__title",
|
|
1229
1229
|
role: "presentation"
|
|
1230
|
-
},
|
|
1230
|
+
}, E(t.title), 9, Fn)) : g("", !0),
|
|
1231
1231
|
p(l.$slots, "default")
|
|
1232
1232
|
], 8, Mn));
|
|
1233
1233
|
}
|
|
1234
|
-
}), Ue = I(In), ut = I(zn), ct = I(On),
|
|
1234
|
+
}), Ue = I(In), ut = I(zn), ct = I(On), me = "data-scroll-locked", Ce = "right-scroll-bar-position", Ie = "width-before-scroll-bar", Pn = "with-scroll-bars-hidden", Un = "--removed-body-scroll-bar-size", Nn = {
|
|
1235
1235
|
left: 0,
|
|
1236
1236
|
top: 0,
|
|
1237
1237
|
right: 0,
|
|
@@ -1279,113 +1279,113 @@ const Wn = () => {
|
|
|
1279
1279
|
},
|
|
1280
1280
|
setup(n) {
|
|
1281
1281
|
const t = n, e = Wn(), l = () => {
|
|
1282
|
-
const s = parseInt(document.body.getAttribute(
|
|
1282
|
+
const s = parseInt(document.body.getAttribute(me) || "0", 10);
|
|
1283
1283
|
return isFinite(s) ? s : 0;
|
|
1284
|
-
}, o = ({ left: s, top:
|
|
1284
|
+
}, o = ({ left: s, top: a, right: d, gap: r }, u, b = "margin", x) => `
|
|
1285
1285
|
.${Pn} {
|
|
1286
|
-
overflow: hidden ${
|
|
1287
|
-
padding-right: ${
|
|
1286
|
+
overflow: hidden ${x};
|
|
1287
|
+
padding-right: ${r}px ${x};
|
|
1288
1288
|
}
|
|
1289
|
-
body[${
|
|
1290
|
-
overflow: hidden ${
|
|
1289
|
+
body[${me}] {
|
|
1290
|
+
overflow: hidden ${x};
|
|
1291
1291
|
overscroll-behavior: contain;
|
|
1292
1292
|
${[
|
|
1293
|
-
u && `position: relative ${
|
|
1294
|
-
|
|
1293
|
+
u && `position: relative ${x};`,
|
|
1294
|
+
b === "margin" && `
|
|
1295
1295
|
padding-left: ${s}px;
|
|
1296
|
-
padding-top: ${
|
|
1297
|
-
padding-right: ${
|
|
1296
|
+
padding-top: ${a}px;
|
|
1297
|
+
padding-right: ${d}px;
|
|
1298
1298
|
margin-left:0;
|
|
1299
1299
|
margin-top:0;
|
|
1300
|
-
margin-right: ${
|
|
1300
|
+
margin-right: ${r}px ${x};
|
|
1301
1301
|
`,
|
|
1302
|
-
|
|
1302
|
+
b === "padding" && `padding-right: ${r}px ${x};`
|
|
1303
1303
|
].filter(Boolean).join("")}
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
1306
|
.${Ce} {
|
|
1307
|
-
right: ${
|
|
1307
|
+
right: ${r}px ${x};
|
|
1308
1308
|
}
|
|
1309
1309
|
|
|
1310
1310
|
.${Ie} {
|
|
1311
|
-
margin-right: ${
|
|
1311
|
+
margin-right: ${r}px ${x};
|
|
1312
1312
|
}
|
|
1313
1313
|
|
|
1314
1314
|
.${Ce} .${Ce} {
|
|
1315
|
-
right: 0 ${
|
|
1315
|
+
right: 0 ${x};
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
1318
|
.${Ie} .${Ie} {
|
|
1319
|
-
margin-right: 0 ${
|
|
1319
|
+
margin-right: 0 ${x};
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
|
-
body[${
|
|
1323
|
-
${Un}: ${
|
|
1322
|
+
body[${me}] {
|
|
1323
|
+
${Un}: ${r}px;
|
|
1324
1324
|
}
|
|
1325
1325
|
`;
|
|
1326
1326
|
return Me(() => {
|
|
1327
|
-
document.body.setAttribute(
|
|
1327
|
+
document.body.setAttribute(me, (l() + 1).toString());
|
|
1328
1328
|
const s = Gn(t.gapMode);
|
|
1329
1329
|
e.add(
|
|
1330
1330
|
o(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
1331
1331
|
);
|
|
1332
1332
|
}), gt(() => {
|
|
1333
1333
|
const s = l() - 1;
|
|
1334
|
-
s <= 0 ? document.body.removeAttribute(
|
|
1335
|
-
}), (s,
|
|
1334
|
+
s <= 0 ? document.body.removeAttribute(me) : document.body.setAttribute(me, s.toString()), e.remove();
|
|
1335
|
+
}), (s, a) => p(s.$slots, "default");
|
|
1336
1336
|
}
|
|
1337
|
-
}), Yn = I(Xn),
|
|
1337
|
+
}), Yn = I(Xn), qe = 8;
|
|
1338
1338
|
function Zn(n, t, e, l) {
|
|
1339
|
-
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom",
|
|
1340
|
-
let
|
|
1339
|
+
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", a = n.getBoundingClientRect(), d = t.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), u = Jn(a, d, s, o), b = ll(a, d, u), x = tl(b, u, o), R = el(x, d, u);
|
|
1340
|
+
let P;
|
|
1341
1341
|
if (l != null && l.arrow) {
|
|
1342
|
-
if (!
|
|
1342
|
+
if (!r)
|
|
1343
1343
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
1344
|
-
|
|
1344
|
+
P = nl(R, a, d, r, u);
|
|
1345
1345
|
}
|
|
1346
|
-
return { overlayCoords:
|
|
1346
|
+
return { overlayCoords: R, arrowCoords: P, placement: u };
|
|
1347
1347
|
}
|
|
1348
1348
|
function Jn(n, t, e, l) {
|
|
1349
1349
|
const o = Xe(n, t, e, l);
|
|
1350
1350
|
if (Ye(o)) {
|
|
1351
|
-
const s =
|
|
1351
|
+
const s = $e(e), d = {
|
|
1352
1352
|
top: "bottom",
|
|
1353
1353
|
bottom: "top",
|
|
1354
1354
|
left: "right",
|
|
1355
1355
|
right: "left"
|
|
1356
|
-
}[s],
|
|
1356
|
+
}[s], r = Xe(
|
|
1357
1357
|
n,
|
|
1358
1358
|
t,
|
|
1359
|
-
|
|
1359
|
+
d,
|
|
1360
1360
|
l
|
|
1361
1361
|
);
|
|
1362
|
-
if (Ye(
|
|
1362
|
+
if (Ye(r))
|
|
1363
1363
|
return e;
|
|
1364
1364
|
const u = al(e);
|
|
1365
|
-
return u ? `${
|
|
1365
|
+
return u ? `${d}-${u}` : d;
|
|
1366
1366
|
}
|
|
1367
1367
|
return e;
|
|
1368
1368
|
}
|
|
1369
1369
|
function el(n, t, e) {
|
|
1370
|
-
const l =
|
|
1371
|
-
return l === "x" ? s.x = o(n.x,
|
|
1370
|
+
const l = xe(e), o = (a, d, r) => Math.min(Math.max(a, d), r), s = { ...n };
|
|
1371
|
+
return l === "x" ? s.x = o(n.x, qe, window.innerWidth - t.width - qe) : s.y = o(n.y, qe, window.innerHeight - t.height - qe), s;
|
|
1372
1372
|
}
|
|
1373
1373
|
function tl(n, t, e) {
|
|
1374
|
-
const l =
|
|
1374
|
+
const l = $e(t);
|
|
1375
1375
|
return {
|
|
1376
1376
|
x: n.x + (l === "left" ? -e : l === "right" ? e : 0),
|
|
1377
1377
|
y: n.y + (l === "top" ? -e : l === "bottom" ? e : 0)
|
|
1378
1378
|
};
|
|
1379
1379
|
}
|
|
1380
1380
|
function nl(n, t, e, l, o) {
|
|
1381
|
-
if (
|
|
1382
|
-
const
|
|
1381
|
+
if (xe(o) === "y") {
|
|
1382
|
+
const a = t.top + t.height / 2, d = n.y + e.height / 2, r = d - a, u = e.height / 2 - r - l.height / 2 + 2;
|
|
1383
1383
|
if (u > 0 && u < e.height - l.height)
|
|
1384
1384
|
return {
|
|
1385
1385
|
y: u
|
|
1386
1386
|
};
|
|
1387
1387
|
} else {
|
|
1388
|
-
const
|
|
1388
|
+
const a = t.left + t.width / 2, d = n.x + e.width / 2, r = d - a, u = e.width / 2 - r - l.width / 2 + 2;
|
|
1389
1389
|
if (u > 0 && u < e.width - l.width)
|
|
1390
1390
|
return {
|
|
1391
1391
|
x: u
|
|
@@ -1393,41 +1393,41 @@ function nl(n, t, e, l, o) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
function ll(n, t, e) {
|
|
1396
|
-
const [l, o] = e.split("-"), s = n.x + n.width / 2 - t.width / 2,
|
|
1397
|
-
let
|
|
1396
|
+
const [l, o] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, a = n.y + n.height / 2 - t.height / 2;
|
|
1397
|
+
let d;
|
|
1398
1398
|
switch (l) {
|
|
1399
1399
|
case "top":
|
|
1400
|
-
|
|
1400
|
+
d = { x: s, y: n.y - t.height };
|
|
1401
1401
|
break;
|
|
1402
1402
|
case "bottom":
|
|
1403
|
-
|
|
1403
|
+
d = { x: s, y: n.y + n.height };
|
|
1404
1404
|
break;
|
|
1405
1405
|
case "left":
|
|
1406
|
-
|
|
1406
|
+
d = { x: n.x - t.width, y: a };
|
|
1407
1407
|
break;
|
|
1408
1408
|
case "right":
|
|
1409
|
-
|
|
1409
|
+
d = { x: n.x + n.width, y: a };
|
|
1410
1410
|
break;
|
|
1411
1411
|
default:
|
|
1412
1412
|
throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
|
|
1413
1413
|
}
|
|
1414
1414
|
if (!o)
|
|
1415
|
-
return
|
|
1416
|
-
const u =
|
|
1415
|
+
return d;
|
|
1416
|
+
const u = xe(e) === "y" ? "height" : "width", b = xe(e), x = n[u] / 2 - t[u] / 2;
|
|
1417
1417
|
switch (o) {
|
|
1418
1418
|
case "start":
|
|
1419
|
-
|
|
1419
|
+
d[b] -= x;
|
|
1420
1420
|
break;
|
|
1421
1421
|
case "end":
|
|
1422
|
-
|
|
1422
|
+
d[b] += x;
|
|
1423
1423
|
break;
|
|
1424
1424
|
default:
|
|
1425
1425
|
throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
|
|
1426
1426
|
}
|
|
1427
|
-
return
|
|
1427
|
+
return d;
|
|
1428
1428
|
}
|
|
1429
1429
|
function Xe(n, t, e, l) {
|
|
1430
|
-
const o =
|
|
1430
|
+
const o = $e(e);
|
|
1431
1431
|
let s = 0;
|
|
1432
1432
|
switch (o) {
|
|
1433
1433
|
case "top":
|
|
@@ -1451,13 +1451,13 @@ function ol(n) {
|
|
|
1451
1451
|
return n === "x" ? "y" : "x";
|
|
1452
1452
|
}
|
|
1453
1453
|
function sl(n) {
|
|
1454
|
-
const t =
|
|
1454
|
+
const t = $e(n);
|
|
1455
1455
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function xe(n) {
|
|
1458
1458
|
return ol(sl(n));
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function $e(n) {
|
|
1461
1461
|
const [t] = n.split("-");
|
|
1462
1462
|
return t;
|
|
1463
1463
|
}
|
|
@@ -1499,207 +1499,207 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1499
1499
|
}),
|
|
1500
1500
|
emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
|
|
1501
1501
|
setup(n, { emit: t }) {
|
|
1502
|
-
const e = n, l = t, o =
|
|
1502
|
+
const e = n, l = t, o = K(n, "modelValue"), s = y(() => [
|
|
1503
1503
|
"q-overlay",
|
|
1504
|
-
`q-overlay--${
|
|
1504
|
+
`q-overlay--${$e(u.placement)}`,
|
|
1505
1505
|
{
|
|
1506
|
-
"q-overlay--independent":
|
|
1506
|
+
"q-overlay--independent": a.value,
|
|
1507
1507
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1508
1508
|
},
|
|
1509
1509
|
e.class
|
|
1510
|
-
]), d = y(() => (o.value ||
|
|
1510
|
+
]), a = y(() => e.anchor === void 0), d = y(() => (o.value || u.animating) && !e.nonModal), r = y(() => (o.value || u.animating) && e.scrollLock), u = je({
|
|
1511
1511
|
animating: !1,
|
|
1512
1512
|
top: 0,
|
|
1513
1513
|
left: 0,
|
|
1514
1514
|
width: 0,
|
|
1515
1515
|
placement: e.placement
|
|
1516
|
-
}),
|
|
1516
|
+
}), b = je({
|
|
1517
1517
|
top: void 0,
|
|
1518
1518
|
left: void 0,
|
|
1519
1519
|
hidden: !0
|
|
1520
|
-
}),
|
|
1521
|
-
|
|
1522
|
-
const
|
|
1523
|
-
if (
|
|
1524
|
-
const
|
|
1520
|
+
}), x = y(() => u.top !== 0 && u.left !== 0);
|
|
1521
|
+
Z(o, () => u.animating = !0);
|
|
1522
|
+
const R = y(() => {
|
|
1523
|
+
if (a.value) return;
|
|
1524
|
+
const L = v(), c = e.width === "anchor", k = c ? L == null ? void 0 : L.getBoundingClientRect().width : void 0;
|
|
1525
1525
|
return {
|
|
1526
|
-
top: `${
|
|
1527
|
-
left: `${
|
|
1528
|
-
width:
|
|
1526
|
+
top: `${u.top}px`,
|
|
1527
|
+
left: `${u.left}px`,
|
|
1528
|
+
width: k !== void 0 ? `${k}px` : void 0
|
|
1529
1529
|
};
|
|
1530
|
-
}),
|
|
1530
|
+
}), P = y(() => {
|
|
1531
1531
|
if (e.arrow)
|
|
1532
1532
|
return {
|
|
1533
|
-
top:
|
|
1534
|
-
left:
|
|
1535
|
-
opacity:
|
|
1533
|
+
top: b.top !== void 0 ? `${b.top}px` : void 0,
|
|
1534
|
+
left: b.left !== void 0 ? `${b.left}px` : void 0,
|
|
1535
|
+
opacity: b.hidden ? 0 : 1
|
|
1536
1536
|
};
|
|
1537
|
-
}),
|
|
1537
|
+
}), z = A(null), _ = A(null);
|
|
1538
1538
|
function V() {
|
|
1539
|
-
const
|
|
1540
|
-
if (!
|
|
1539
|
+
const L = v();
|
|
1540
|
+
if (!L || !_.value)
|
|
1541
1541
|
return;
|
|
1542
|
-
const
|
|
1542
|
+
const c = {
|
|
1543
1543
|
placement: e.placement,
|
|
1544
1544
|
width: e.width,
|
|
1545
1545
|
offset: e.offset,
|
|
1546
1546
|
arrow: e.arrow
|
|
1547
|
-
},
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
(
|
|
1551
|
-
|
|
1547
|
+
}, k = Zn(
|
|
1548
|
+
L,
|
|
1549
|
+
_.value,
|
|
1550
|
+
(z == null ? void 0 : z.value) ?? void 0,
|
|
1551
|
+
c
|
|
1552
1552
|
);
|
|
1553
|
-
|
|
1553
|
+
u.left = k.overlayCoords.x, u.top = k.overlayCoords.y, u.placement = k.placement, b.hidden = k.arrowCoords === void 0, k.arrowCoords && (b.top = k.arrowCoords.y, b.left = k.arrowCoords.x);
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1555
|
+
Z(
|
|
1556
1556
|
() => e.placement,
|
|
1557
|
-
() =>
|
|
1557
|
+
() => te(V)
|
|
1558
1558
|
);
|
|
1559
|
-
let
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1559
|
+
let M;
|
|
1560
|
+
function Q() {
|
|
1561
|
+
ee(0);
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1564
|
-
|
|
1563
|
+
function oe() {
|
|
1564
|
+
ee(e.delay);
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1566
|
+
function ee(L) {
|
|
1567
|
+
M || (M = window.setTimeout(() => {
|
|
1568
1568
|
o.value = !0;
|
|
1569
|
-
},
|
|
1569
|
+
}, L));
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1572
|
-
if (clearTimeout(
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1571
|
+
function N() {
|
|
1572
|
+
if (clearTimeout(M), M = void 0, o.value = !1, e.anchor && e.trigger === "click") {
|
|
1573
|
+
const L = v();
|
|
1574
|
+
L == null || L.focus();
|
|
1575
1575
|
}
|
|
1576
1576
|
}
|
|
1577
|
-
|
|
1578
|
-
function
|
|
1577
|
+
Z(x, () => te(se));
|
|
1578
|
+
function se() {
|
|
1579
1579
|
l("enter");
|
|
1580
1580
|
}
|
|
1581
|
-
let
|
|
1582
|
-
function
|
|
1583
|
-
window.clearTimeout(
|
|
1581
|
+
let X;
|
|
1582
|
+
function ce() {
|
|
1583
|
+
window.clearTimeout(X), X = window.setTimeout(() => u.animating = !1, 200), l("leave");
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function v() {
|
|
1586
1586
|
return e.anchor ? il(e.anchor) : null;
|
|
1587
1587
|
}
|
|
1588
|
-
let
|
|
1589
|
-
function
|
|
1590
|
-
const
|
|
1591
|
-
if (
|
|
1592
|
-
switch (
|
|
1588
|
+
let S;
|
|
1589
|
+
function h() {
|
|
1590
|
+
const L = v();
|
|
1591
|
+
if (L)
|
|
1592
|
+
switch (S = new MutationObserver(V), S.observe(L, {
|
|
1593
1593
|
attributes: !1,
|
|
1594
1594
|
childList: !0,
|
|
1595
1595
|
characterData: !0,
|
|
1596
1596
|
subtree: !0
|
|
1597
1597
|
}), e.trigger) {
|
|
1598
1598
|
case "click":
|
|
1599
|
-
|
|
1599
|
+
L.addEventListener("click", Q);
|
|
1600
1600
|
break;
|
|
1601
1601
|
case "hover":
|
|
1602
|
-
|
|
1602
|
+
L.addEventListener("mouseenter", oe), L.addEventListener("mouseleave", N), L.addEventListener("focusin", Q), L.addEventListener("focusout", N);
|
|
1603
1603
|
break;
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1607
|
-
const
|
|
1608
|
-
if (
|
|
1609
|
-
switch (
|
|
1606
|
+
function $() {
|
|
1607
|
+
const L = v();
|
|
1608
|
+
if (L)
|
|
1609
|
+
switch (S == null || S.disconnect(), e.trigger) {
|
|
1610
1610
|
case "click":
|
|
1611
|
-
|
|
1611
|
+
L.removeEventListener("click", Q);
|
|
1612
1612
|
break;
|
|
1613
1613
|
case "hover":
|
|
1614
|
-
|
|
1614
|
+
L.removeEventListener("mouseenter", oe), L.removeEventListener("mouseleave", N), L.removeEventListener("focusin", Q), L.removeEventListener("focusout", N);
|
|
1615
1615
|
break;
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function J() {
|
|
1619
1619
|
window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function re() {
|
|
1622
1622
|
window.removeEventListener("resize", V), e.scrollLock || window.removeEventListener("scroll", V);
|
|
1623
1623
|
}
|
|
1624
|
-
let
|
|
1625
|
-
function
|
|
1626
|
-
|
|
1624
|
+
let Y;
|
|
1625
|
+
function de() {
|
|
1626
|
+
v() ? (V(), Y = window.setTimeout(de, 100)) : N();
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
|
|
1630
|
-
var
|
|
1631
|
-
return (
|
|
1628
|
+
function Be() {
|
|
1629
|
+
a.value || (J(), e.spy ? de() : V()), (a.value || e.trigger === "click") && te(() => {
|
|
1630
|
+
var L;
|
|
1631
|
+
return (L = _.value) == null ? void 0 : L.focus();
|
|
1632
1632
|
});
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1635
|
-
|
|
1634
|
+
function ke() {
|
|
1635
|
+
a.value || re(), e.spy && (clearTimeout(Y), Y = void 0), u.top = 0, u.left = 0;
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
e.persistent ||
|
|
1637
|
+
function we() {
|
|
1638
|
+
e.persistent || N();
|
|
1639
1639
|
}
|
|
1640
1640
|
return Me(() => {
|
|
1641
|
-
|
|
1641
|
+
te(h);
|
|
1642
1642
|
}), _t(() => {
|
|
1643
|
-
|
|
1644
|
-
}),
|
|
1643
|
+
$(), ke();
|
|
1644
|
+
}), Z(
|
|
1645
1645
|
o,
|
|
1646
|
-
(
|
|
1647
|
-
|
|
1646
|
+
(L) => {
|
|
1647
|
+
te(() => L ? Be() : ke());
|
|
1648
1648
|
},
|
|
1649
1649
|
{ immediate: !0 }
|
|
1650
|
-
), (
|
|
1651
|
-
(
|
|
1652
|
-
disabled: !o.value && !
|
|
1650
|
+
), (L, c) => (i(), f(U, null, [
|
|
1651
|
+
(i(), B($t, {
|
|
1652
|
+
disabled: !o.value && !u.animating || e.inline,
|
|
1653
1653
|
to: e.attach
|
|
1654
1654
|
}, [
|
|
1655
|
-
d.value ? (
|
|
1655
|
+
d.value ? (i(), f("div", {
|
|
1656
1656
|
key: 0,
|
|
1657
1657
|
class: T([
|
|
1658
1658
|
e.backdropClass,
|
|
1659
1659
|
"q-overlay__underlay",
|
|
1660
1660
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1661
1661
|
])
|
|
1662
|
-
}, null, 2)) :
|
|
1662
|
+
}, null, 2)) : g("", !0),
|
|
1663
1663
|
D(kt, {
|
|
1664
1664
|
name: e.transition,
|
|
1665
1665
|
appear: "",
|
|
1666
|
-
onLeave:
|
|
1666
|
+
onLeave: ce
|
|
1667
1667
|
}, {
|
|
1668
|
-
default:
|
|
1669
|
-
o.value ? (
|
|
1668
|
+
default: w(() => [
|
|
1669
|
+
o.value ? (i(), f("div", {
|
|
1670
1670
|
key: 0,
|
|
1671
1671
|
class: T(s.value),
|
|
1672
|
-
style:
|
|
1672
|
+
style: fe(R.value)
|
|
1673
1673
|
}, [
|
|
1674
|
-
|
|
1674
|
+
q("div", H({
|
|
1675
1675
|
ref_key: "overlayRef",
|
|
1676
|
-
ref:
|
|
1676
|
+
ref: _,
|
|
1677
1677
|
class: "q-overlay__content",
|
|
1678
1678
|
tabindex: "-1",
|
|
1679
1679
|
role: d.value ? "dialog" : void 0
|
|
1680
|
-
},
|
|
1681
|
-
onKeydown: Ae(
|
|
1682
|
-
onBlur:
|
|
1680
|
+
}, L.$attrs, {
|
|
1681
|
+
onKeydown: Ae(we, ["escape"]),
|
|
1682
|
+
onBlur: we
|
|
1683
1683
|
}), [
|
|
1684
|
-
e.arrow ? (
|
|
1684
|
+
e.arrow ? (i(), f("div", {
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
ref_key: "arrowRef",
|
|
1687
|
-
ref:
|
|
1687
|
+
ref: z,
|
|
1688
1688
|
role: "presentation",
|
|
1689
1689
|
class: "q-overlay__arrow",
|
|
1690
|
-
style:
|
|
1691
|
-
}, null, 4)) :
|
|
1692
|
-
p(
|
|
1690
|
+
style: fe(P.value)
|
|
1691
|
+
}, null, 4)) : g("", !0),
|
|
1692
|
+
p(L.$slots, "default")
|
|
1693
1693
|
], 16, rl)
|
|
1694
|
-
], 6)) :
|
|
1694
|
+
], 6)) : g("", !0)
|
|
1695
1695
|
]),
|
|
1696
1696
|
_: 3
|
|
1697
1697
|
}, 8, ["name"])
|
|
1698
1698
|
], 8, ["disabled", "to"])),
|
|
1699
|
-
|
|
1699
|
+
r.value ? (i(), B(m(Yn), { key: 0 })) : g("", !0)
|
|
1700
1700
|
], 64));
|
|
1701
1701
|
}
|
|
1702
|
-
}),
|
|
1702
|
+
}), ve = I(dl), ul = ["id"], cl = {
|
|
1703
1703
|
key: 0,
|
|
1704
1704
|
class: "q-field__label"
|
|
1705
1705
|
}, fl = ["for"], pl = {
|
|
@@ -1725,10 +1725,10 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1725
1725
|
class: { default: void 0 }
|
|
1726
1726
|
},
|
|
1727
1727
|
setup(n, { expose: t }) {
|
|
1728
|
-
const e = n, l =
|
|
1728
|
+
const e = n, l = ie(e.id), o = A(null), s = y(() => e.required && !e.readonly && !e.disabled);
|
|
1729
1729
|
return t({
|
|
1730
1730
|
fieldRef: o
|
|
1731
|
-
}), (
|
|
1731
|
+
}), (a, d) => (i(), f("div", {
|
|
1732
1732
|
id: m(l),
|
|
1733
1733
|
class: T([
|
|
1734
1734
|
"q-field",
|
|
@@ -1741,31 +1741,31 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1741
1741
|
e.class
|
|
1742
1742
|
])
|
|
1743
1743
|
}, [
|
|
1744
|
-
e.label ? (
|
|
1745
|
-
p(
|
|
1746
|
-
|
|
1744
|
+
e.label ? (i(), f("div", cl, [
|
|
1745
|
+
p(a.$slots, "label.prepend"),
|
|
1746
|
+
q("label", {
|
|
1747
1747
|
for: e.for
|
|
1748
|
-
},
|
|
1749
|
-
p(
|
|
1750
|
-
])) :
|
|
1751
|
-
p(
|
|
1752
|
-
|
|
1748
|
+
}, E(e.label), 9, fl),
|
|
1749
|
+
p(a.$slots, "label.append")
|
|
1750
|
+
])) : g("", !0),
|
|
1751
|
+
p(a.$slots, "control", {}, () => [
|
|
1752
|
+
q("div", H({
|
|
1753
1753
|
ref_key: "fieldRef",
|
|
1754
1754
|
ref: o,
|
|
1755
1755
|
class: "q-field__control"
|
|
1756
|
-
},
|
|
1757
|
-
|
|
1758
|
-
p(
|
|
1759
|
-
])) :
|
|
1760
|
-
p(
|
|
1761
|
-
|
|
1762
|
-
p(
|
|
1763
|
-
])) :
|
|
1756
|
+
}, a.$attrs), [
|
|
1757
|
+
a.$slots.prepend ? (i(), f("div", pl, [
|
|
1758
|
+
p(a.$slots, "prepend")
|
|
1759
|
+
])) : g("", !0),
|
|
1760
|
+
p(a.$slots, "default"),
|
|
1761
|
+
a.$slots.append ? (i(), f("div", ml, [
|
|
1762
|
+
p(a.$slots, "append")
|
|
1763
|
+
])) : g("", !0)
|
|
1764
1764
|
], 16)
|
|
1765
1765
|
]),
|
|
1766
|
-
|
|
1767
|
-
p(
|
|
1768
|
-
])) :
|
|
1766
|
+
a.$slots.extras ? (i(), f("div", hl, [
|
|
1767
|
+
p(a.$slots, "extras")
|
|
1768
|
+
])) : g("", !0)
|
|
1769
1769
|
], 10, ul));
|
|
1770
1770
|
}
|
|
1771
1771
|
}), Le = I(yl), vl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], bl = /* @__PURE__ */ C({
|
|
@@ -1789,16 +1789,16 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1789
1789
|
}),
|
|
1790
1790
|
emits: ["update:modelValue"],
|
|
1791
1791
|
setup(n, { expose: t }) {
|
|
1792
|
-
const e = n, l =
|
|
1792
|
+
const e = n, l = K(n, "modelValue"), o = ie(e.id), s = A(null), a = A(null), d = y(
|
|
1793
1793
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1794
1794
|
);
|
|
1795
1795
|
return t({
|
|
1796
1796
|
fieldRef: y(() => {
|
|
1797
|
-
var
|
|
1798
|
-
return (
|
|
1797
|
+
var r;
|
|
1798
|
+
return (r = s.value) == null ? void 0 : r.fieldRef;
|
|
1799
1799
|
}),
|
|
1800
|
-
inputRef:
|
|
1801
|
-
}), (
|
|
1800
|
+
inputRef: a
|
|
1801
|
+
}), (r, u) => (i(), B(m(Le), {
|
|
1802
1802
|
ref_key: "fieldRef",
|
|
1803
1803
|
ref: s,
|
|
1804
1804
|
class: T(["q-text-field", e.class]),
|
|
@@ -1808,51 +1808,51 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1808
1808
|
readonly: e.readonly,
|
|
1809
1809
|
disabled: e.disabled,
|
|
1810
1810
|
required: e.required
|
|
1811
|
-
},
|
|
1812
|
-
"label.prepend":
|
|
1813
|
-
p(
|
|
1811
|
+
}, ye({
|
|
1812
|
+
"label.prepend": w(() => [
|
|
1813
|
+
p(r.$slots, "label.prepend")
|
|
1814
1814
|
]),
|
|
1815
|
-
"label.append":
|
|
1816
|
-
p(
|
|
1815
|
+
"label.append": w(() => [
|
|
1816
|
+
p(r.$slots, "label.append")
|
|
1817
1817
|
]),
|
|
1818
|
-
default:
|
|
1819
|
-
wt(
|
|
1818
|
+
default: w(() => [
|
|
1819
|
+
wt(q("input", H({
|
|
1820
1820
|
id: m(o),
|
|
1821
1821
|
ref_key: "inputRef",
|
|
1822
|
-
ref:
|
|
1823
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1822
|
+
ref: a,
|
|
1823
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => l.value = b),
|
|
1824
1824
|
class: "q-text-field__input",
|
|
1825
1825
|
type: e.type,
|
|
1826
1826
|
role: e.role,
|
|
1827
1827
|
required: e.required,
|
|
1828
|
-
placeholder:
|
|
1828
|
+
placeholder: d.value,
|
|
1829
1829
|
readonly: e.readonly,
|
|
1830
1830
|
disabled: e.disabled,
|
|
1831
1831
|
maxlength: e.maxLength
|
|
1832
|
-
},
|
|
1832
|
+
}, r.$attrs), null, 16, vl), [
|
|
1833
1833
|
[qt, l.value]
|
|
1834
1834
|
])
|
|
1835
1835
|
]),
|
|
1836
1836
|
_: 2
|
|
1837
1837
|
}, [
|
|
1838
|
-
|
|
1838
|
+
r.$slots.prepend ? {
|
|
1839
1839
|
name: "prepend",
|
|
1840
|
-
fn:
|
|
1841
|
-
p(
|
|
1840
|
+
fn: w(() => [
|
|
1841
|
+
p(r.$slots, "prepend")
|
|
1842
1842
|
]),
|
|
1843
1843
|
key: "0"
|
|
1844
1844
|
} : void 0,
|
|
1845
|
-
|
|
1845
|
+
r.$slots.append ? {
|
|
1846
1846
|
name: "append",
|
|
1847
|
-
fn:
|
|
1848
|
-
p(
|
|
1847
|
+
fn: w(() => [
|
|
1848
|
+
p(r.$slots, "append")
|
|
1849
1849
|
]),
|
|
1850
1850
|
key: "1"
|
|
1851
1851
|
} : void 0,
|
|
1852
|
-
|
|
1852
|
+
r.$slots.extras ? {
|
|
1853
1853
|
name: "extras",
|
|
1854
|
-
fn:
|
|
1855
|
-
p(
|
|
1854
|
+
fn: w(() => [
|
|
1855
|
+
p(r.$slots, "extras")
|
|
1856
1856
|
]),
|
|
1857
1857
|
key: "2"
|
|
1858
1858
|
} : void 0
|
|
@@ -1910,152 +1910,152 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1910
1910
|
}),
|
|
1911
1911
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1912
1912
|
setup(n, { expose: t, emit: e }) {
|
|
1913
|
-
const l = n, o = e, s =
|
|
1914
|
-
Me(
|
|
1915
|
-
const
|
|
1913
|
+
const l = n, o = e, s = K(n, "modelValue"), a = K(n, "open"), d = K(n, "search"), r = A(void 0), u = A(null), b = A(null), x = A(null), R = A(null);
|
|
1914
|
+
Me(N);
|
|
1915
|
+
const P = y(() => l.clearable && !l.readonly && !l.disabled), z = y(() => {
|
|
1916
1916
|
var c;
|
|
1917
|
-
return l.filterMode === "manual" || !
|
|
1918
|
-
(
|
|
1917
|
+
return l.filterMode === "manual" || !oe.value ? l.items : (c = l.items) == null ? void 0 : c.filter(
|
|
1918
|
+
(k) => k[l.itemLabel].toLowerCase().startsWith(d.value.toLowerCase())
|
|
1919
1919
|
);
|
|
1920
|
-
}),
|
|
1920
|
+
}), _ = y(() => {
|
|
1921
1921
|
var c;
|
|
1922
|
-
return (c = l.items) == null ? void 0 : c.find((
|
|
1923
|
-
}),
|
|
1924
|
-
const c =
|
|
1925
|
-
if (c !== void 0 &&
|
|
1926
|
-
return
|
|
1927
|
-
}),
|
|
1928
|
-
var
|
|
1929
|
-
if (
|
|
1922
|
+
return (c = l.items) == null ? void 0 : c.find((k) => k[l.itemValue] === s.value);
|
|
1923
|
+
}), V = y(() => _.value === void 0), M = y(() => {
|
|
1924
|
+
const c = r.value;
|
|
1925
|
+
if (c !== void 0 && z.value[c])
|
|
1926
|
+
return z.value[c];
|
|
1927
|
+
}), Q = y(() => {
|
|
1928
|
+
var k;
|
|
1929
|
+
if (r.value === void 0)
|
|
1930
1930
|
return;
|
|
1931
|
-
const c = (
|
|
1931
|
+
const c = (k = b.value) == null ? void 0 : k.getItem(r.value);
|
|
1932
1932
|
return c == null ? void 0 : c.id;
|
|
1933
|
-
}),
|
|
1933
|
+
}), oe = y(() => {
|
|
1934
1934
|
var c;
|
|
1935
|
-
return
|
|
1935
|
+
return d.value.length > 0 && d.value !== ((c = _.value) == null ? void 0 : c[l.itemLabel]);
|
|
1936
1936
|
});
|
|
1937
|
-
function
|
|
1938
|
-
s.value = c,
|
|
1937
|
+
function ee(c) {
|
|
1938
|
+
s.value = c, X();
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1941
|
-
var
|
|
1942
|
-
const c = ((
|
|
1943
|
-
|
|
1940
|
+
function N() {
|
|
1941
|
+
var k;
|
|
1942
|
+
const c = ((k = _.value) == null ? void 0 : k[l.itemLabel]) || "";
|
|
1943
|
+
d.value !== c && (d.value = c);
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1946
|
-
|
|
1945
|
+
function se() {
|
|
1946
|
+
a.value || l.readonly || l.disabled || (o("before-show"), a.value = !0, de());
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1949
|
-
|
|
1948
|
+
function X() {
|
|
1949
|
+
a.value && (o("before-hide"), a.value = !1, r.value = void 0);
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1952
|
-
|
|
1951
|
+
function ce() {
|
|
1952
|
+
a.value ? X() : S();
|
|
1953
1953
|
}
|
|
1954
1954
|
function v() {
|
|
1955
|
-
|
|
1955
|
+
P.value && (s.value = l.emptyValue, r.value = void 0, de());
|
|
1956
1956
|
}
|
|
1957
|
-
function
|
|
1958
|
-
if (
|
|
1959
|
-
const c =
|
|
1960
|
-
c !== -1 &&
|
|
1957
|
+
function S() {
|
|
1958
|
+
if (se(), _.value !== void 0) {
|
|
1959
|
+
const c = z.value.indexOf(_.value);
|
|
1960
|
+
c !== -1 && te(() => L(c));
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
function h(c) {
|
|
1964
|
-
var
|
|
1964
|
+
var k, F;
|
|
1965
1965
|
if (!(!c.key || l.readonly || l.disabled))
|
|
1966
1966
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
|
|
1967
|
-
|
|
1967
|
+
N(), a.value && X();
|
|
1968
1968
|
else if (["ArrowDown", "ArrowUp"].includes(c.key))
|
|
1969
|
-
|
|
1970
|
-
if (
|
|
1969
|
+
a.value ? te(() => {
|
|
1970
|
+
if (r.value === void 0)
|
|
1971
1971
|
$();
|
|
1972
1972
|
else {
|
|
1973
|
-
const
|
|
1974
|
-
re(
|
|
1973
|
+
const j = c.key === "ArrowDown" ? "next" : "prev";
|
|
1974
|
+
re(r.value, j);
|
|
1975
1975
|
}
|
|
1976
|
-
}) : (
|
|
1977
|
-
c.key === "ArrowDown" ? $() :
|
|
1976
|
+
}) : (se(), te(() => {
|
|
1977
|
+
c.key === "ArrowDown" ? $() : J();
|
|
1978
1978
|
}));
|
|
1979
1979
|
else if (c.key === "Enter") {
|
|
1980
|
-
if (
|
|
1981
|
-
|
|
1982
|
-
} else c.key === "Home" ?
|
|
1980
|
+
if (M.value === void 0) return;
|
|
1981
|
+
ee(M.value[l.itemValue]);
|
|
1982
|
+
} else c.key === "Home" ? r.value = (k = b.value) == null ? void 0 : k.getFirstFocusableItemIndex() : c.key === "End" ? r.value = (F = b.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && se();
|
|
1983
1983
|
}
|
|
1984
1984
|
function $() {
|
|
1985
|
-
var c,
|
|
1986
|
-
if (
|
|
1987
|
-
|
|
1985
|
+
var c, k;
|
|
1986
|
+
if (V.value)
|
|
1987
|
+
r.value = (k = b.value) == null ? void 0 : k.getFirstFocusableItemIndex();
|
|
1988
1988
|
else {
|
|
1989
|
-
const F =
|
|
1990
|
-
(
|
|
1989
|
+
const F = z.value.findIndex(
|
|
1990
|
+
(j) => j[l.itemValue] === s.value
|
|
1991
1991
|
);
|
|
1992
|
-
F === -1 ?
|
|
1992
|
+
F === -1 ? r.value = (c = b.value) == null ? void 0 : c.getFirstFocusableItemIndex() : r.value = F;
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function J() {
|
|
1996
1996
|
var c;
|
|
1997
|
-
|
|
1997
|
+
r.value = (c = b.value) == null ? void 0 : c.getLastFocusableItemIndex();
|
|
1998
1998
|
}
|
|
1999
|
-
function re(c,
|
|
1999
|
+
function re(c, k) {
|
|
2000
2000
|
var F;
|
|
2001
|
-
|
|
2001
|
+
r.value = (F = b.value) == null ? void 0 : F.getAdjacentItemIndex(c, k);
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2004
|
-
var
|
|
2005
|
-
const
|
|
2006
|
-
if (
|
|
2003
|
+
function Y(c) {
|
|
2004
|
+
var pe, Ne, Re, Ge;
|
|
2005
|
+
const k = ((pe = x == null ? void 0 : x.value) == null ? void 0 : pe.$el) === c.relatedTarget, F = (Re = (Ne = u == null ? void 0 : u.value) == null ? void 0 : Ne.$el) == null ? void 0 : Re.contains(c.relatedTarget), j = (Ge = R == null ? void 0 : R.value) == null ? void 0 : Ge.contains(c.relatedTarget);
|
|
2006
|
+
if (k || j || F) {
|
|
2007
2007
|
c.preventDefault(), c.stopPropagation();
|
|
2008
2008
|
return;
|
|
2009
2009
|
}
|
|
2010
|
-
|
|
2010
|
+
X(), P.value && !d.value && (s.value = l.emptyValue), N();
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2013
|
-
var c,
|
|
2014
|
-
(
|
|
2012
|
+
function de() {
|
|
2013
|
+
var c, k;
|
|
2014
|
+
(k = (c = u.value) == null ? void 0 : c.inputRef) == null || k.focus();
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2017
|
-
|
|
2016
|
+
function Be() {
|
|
2017
|
+
de();
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function ke() {
|
|
2020
2020
|
o("show");
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function we() {
|
|
2023
2023
|
o("hide");
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function L(c) {
|
|
2026
2026
|
var F;
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2027
|
+
const k = (F = b.value) == null ? void 0 : F.getItem(c);
|
|
2028
|
+
b.value && (b.value.$el.scrollTop = k == null ? void 0 : k.offsetTop);
|
|
2029
2029
|
}
|
|
2030
|
-
return
|
|
2030
|
+
return Z(s, N), Z(
|
|
2031
2031
|
() => l.items,
|
|
2032
|
-
(c,
|
|
2033
|
-
if (!
|
|
2034
|
-
const F =
|
|
2035
|
-
|
|
2032
|
+
(c, k) => {
|
|
2033
|
+
if (!V.value) {
|
|
2034
|
+
const F = k.find((j) => j[l.itemValue] === s.value);
|
|
2035
|
+
d.value === (F == null ? void 0 : F[l.itemLabel]) && N();
|
|
2036
2036
|
}
|
|
2037
2037
|
},
|
|
2038
2038
|
{ deep: !0 }
|
|
2039
|
-
),
|
|
2040
|
-
c !== void 0 &&
|
|
2041
|
-
}),
|
|
2042
|
-
c &&
|
|
2043
|
-
}),
|
|
2039
|
+
), Z(r, (c) => {
|
|
2040
|
+
c !== void 0 && L(c);
|
|
2041
|
+
}), Z(d, (c) => {
|
|
2042
|
+
c && a.value && l.selectionMode === "automatic" && te($);
|
|
2043
|
+
}), Z(
|
|
2044
2044
|
() => l.loading,
|
|
2045
2045
|
(c) => {
|
|
2046
|
-
!c &&
|
|
2046
|
+
!c && a.value && te($);
|
|
2047
2047
|
}
|
|
2048
2048
|
), t({
|
|
2049
2049
|
triggerEl: u
|
|
2050
|
-
}), (c,
|
|
2050
|
+
}), (c, k) => {
|
|
2051
2051
|
var F;
|
|
2052
|
-
return
|
|
2052
|
+
return i(), f(U, null, [
|
|
2053
2053
|
D(m(ft), H({
|
|
2054
2054
|
id: l.id,
|
|
2055
2055
|
ref_key: "triggerEl",
|
|
2056
2056
|
ref: u,
|
|
2057
|
-
modelValue:
|
|
2058
|
-
"onUpdate:modelValue":
|
|
2057
|
+
modelValue: d.value,
|
|
2058
|
+
"onUpdate:modelValue": k[0] || (k[0] = (j) => d.value = j),
|
|
2059
2059
|
label: l.label,
|
|
2060
2060
|
required: l.required,
|
|
2061
2061
|
role: "combobox",
|
|
@@ -2065,7 +2065,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2065
2065
|
{
|
|
2066
2066
|
"q-combobox--readonly": l.readonly,
|
|
2067
2067
|
"q-combobox--disabled": l.disabled,
|
|
2068
|
-
"q-combobox--expanded":
|
|
2068
|
+
"q-combobox--expanded": a.value
|
|
2069
2069
|
},
|
|
2070
2070
|
l.class
|
|
2071
2071
|
],
|
|
@@ -2073,25 +2073,25 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2073
2073
|
disabled: l.disabled,
|
|
2074
2074
|
"data-loading": l.loading,
|
|
2075
2075
|
autocomplete: "off",
|
|
2076
|
-
"aria-expanded":
|
|
2076
|
+
"aria-expanded": a.value,
|
|
2077
2077
|
"aria-haspopup": "listbox",
|
|
2078
2078
|
"aria-autocomplete": "list",
|
|
2079
|
-
"aria-activedescendant":
|
|
2079
|
+
"aria-activedescendant": Q.value,
|
|
2080
2080
|
size: l.size
|
|
2081
2081
|
}, c.$attrs, {
|
|
2082
|
-
onClick:
|
|
2083
|
-
onFocusout:
|
|
2084
|
-
onKeydown:
|
|
2085
|
-
}),
|
|
2086
|
-
"label.prepend":
|
|
2082
|
+
onClick: S,
|
|
2083
|
+
onFocusout: Y,
|
|
2084
|
+
onKeydown: ue(h, ["stop"])
|
|
2085
|
+
}), ye({
|
|
2086
|
+
"label.prepend": w(() => [
|
|
2087
2087
|
p(c.$slots, "label.prepend")
|
|
2088
2088
|
]),
|
|
2089
|
-
"label.append":
|
|
2089
|
+
"label.append": w(() => [
|
|
2090
2090
|
p(c.$slots, "label.append")
|
|
2091
2091
|
]),
|
|
2092
|
-
append:
|
|
2092
|
+
append: w(() => [
|
|
2093
2093
|
p(c.$slots, "append"),
|
|
2094
|
-
|
|
2094
|
+
P.value && d.value ? (i(), B(m(le), {
|
|
2095
2095
|
key: 0,
|
|
2096
2096
|
class: "q-combobox__clear",
|
|
2097
2097
|
"aria-label": l.texts.clearValue,
|
|
@@ -2100,25 +2100,25 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2100
2100
|
tabindex: "-1",
|
|
2101
2101
|
onClick: v
|
|
2102
2102
|
}, {
|
|
2103
|
-
default:
|
|
2104
|
-
D(m(O),
|
|
2103
|
+
default: w(() => [
|
|
2104
|
+
D(m(O), W(ne(l.icons.clear)), null, 16)
|
|
2105
2105
|
]),
|
|
2106
2106
|
_: 1
|
|
2107
|
-
}, 8, ["aria-label"])) :
|
|
2108
|
-
l.readonly ?
|
|
2107
|
+
}, 8, ["aria-label"])) : g("", !0),
|
|
2108
|
+
l.readonly ? g("", !0) : (i(), B(m(le), {
|
|
2109
2109
|
key: 1,
|
|
2110
2110
|
ref_key: "toggleRef",
|
|
2111
|
-
ref:
|
|
2111
|
+
ref: x,
|
|
2112
2112
|
class: "q-combobox__chevron",
|
|
2113
2113
|
"aria-label": l.texts.showOptions,
|
|
2114
2114
|
"b-style": "plain",
|
|
2115
2115
|
borderless: "",
|
|
2116
2116
|
tabindex: "-1",
|
|
2117
2117
|
disabled: l.disabled,
|
|
2118
|
-
onMousedown:
|
|
2118
|
+
onMousedown: ue(ce, ["stop", "prevent"])
|
|
2119
2119
|
}, {
|
|
2120
|
-
default:
|
|
2121
|
-
D(m(O),
|
|
2120
|
+
default: w(() => [
|
|
2121
|
+
D(m(O), W(ne(l.icons.chevron)), null, 16)
|
|
2122
2122
|
]),
|
|
2123
2123
|
_: 1
|
|
2124
2124
|
}, 8, ["aria-label", "disabled"]))
|
|
@@ -2127,22 +2127,22 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2127
2127
|
}, [
|
|
2128
2128
|
c.$slots.prepend ? {
|
|
2129
2129
|
name: "prepend",
|
|
2130
|
-
fn:
|
|
2130
|
+
fn: w(() => [
|
|
2131
2131
|
p(c.$slots, "prepend")
|
|
2132
2132
|
]),
|
|
2133
2133
|
key: "0"
|
|
2134
2134
|
} : void 0,
|
|
2135
2135
|
c.$slots.extras ? {
|
|
2136
2136
|
name: "extras",
|
|
2137
|
-
fn:
|
|
2137
|
+
fn: w(() => [
|
|
2138
2138
|
p(c.$slots, "extras")
|
|
2139
2139
|
]),
|
|
2140
2140
|
key: "1"
|
|
2141
2141
|
} : void 0
|
|
2142
2142
|
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
2143
|
-
D(m(
|
|
2144
|
-
modelValue:
|
|
2145
|
-
"onUpdate:modelValue":
|
|
2143
|
+
D(m(ve), {
|
|
2144
|
+
modelValue: a.value,
|
|
2145
|
+
"onUpdate:modelValue": k[2] || (k[2] = (j) => a.value = j),
|
|
2146
2146
|
spy: "",
|
|
2147
2147
|
"non-modal": "",
|
|
2148
2148
|
trigger: "manual",
|
|
@@ -2150,46 +2150,46 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2150
2150
|
width: "anchor",
|
|
2151
2151
|
offset: 4,
|
|
2152
2152
|
anchor: (F = u.value) == null ? void 0 : F.$el,
|
|
2153
|
-
onEnter:
|
|
2154
|
-
onLeave:
|
|
2153
|
+
onEnter: ke,
|
|
2154
|
+
onLeave: we
|
|
2155
2155
|
}, {
|
|
2156
|
-
default:
|
|
2157
|
-
var
|
|
2156
|
+
default: w(() => {
|
|
2157
|
+
var j;
|
|
2158
2158
|
return [
|
|
2159
|
-
|
|
2159
|
+
q("div", {
|
|
2160
2160
|
ref_key: "contentRef",
|
|
2161
|
-
ref:
|
|
2161
|
+
ref: R,
|
|
2162
2162
|
class: "q-select__body",
|
|
2163
2163
|
"data-testid": "combobox-dropdown",
|
|
2164
2164
|
"data-key": l.id,
|
|
2165
|
-
onFocusout:
|
|
2165
|
+
onFocusout: Y
|
|
2166
2166
|
}, [
|
|
2167
2167
|
p(c.$slots, "body.prepend"),
|
|
2168
|
-
l.loading ? (
|
|
2169
|
-
D(m(
|
|
2170
|
-
])) :
|
|
2168
|
+
l.loading ? (i(), f("div", kl, [
|
|
2169
|
+
D(m(_e), { size: 24 })
|
|
2170
|
+
])) : z.value.length ? (i(), B(m(Ue), {
|
|
2171
2171
|
key: 1,
|
|
2172
2172
|
ref_key: "listRef",
|
|
2173
|
-
ref:
|
|
2173
|
+
ref: b,
|
|
2174
2174
|
modelValue: s.value,
|
|
2175
2175
|
"onUpdate:modelValue": [
|
|
2176
|
-
|
|
2177
|
-
|
|
2176
|
+
k[1] || (k[1] = (pe) => s.value = pe),
|
|
2177
|
+
ee
|
|
2178
2178
|
],
|
|
2179
2179
|
class: "q-select__items",
|
|
2180
2180
|
selectable: "",
|
|
2181
|
-
highlighted: (
|
|
2182
|
-
items:
|
|
2181
|
+
highlighted: (j = M.value) == null ? void 0 : j[l.itemValue],
|
|
2182
|
+
items: z.value,
|
|
2183
2183
|
groups: c.groups,
|
|
2184
2184
|
"item-label": l.itemLabel,
|
|
2185
2185
|
"item-value": l.itemValue,
|
|
2186
|
-
onMouseup:
|
|
2186
|
+
onMouseup: Be
|
|
2187
2187
|
}, {
|
|
2188
|
-
item:
|
|
2189
|
-
p(c.$slots, "item", { item:
|
|
2188
|
+
item: w(({ item: pe }) => [
|
|
2189
|
+
p(c.$slots, "item", { item: pe })
|
|
2190
2190
|
]),
|
|
2191
2191
|
_: 3
|
|
2192
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
2192
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (i(), f("div", wl, E(l.texts.noData), 1)),
|
|
2193
2193
|
p(c.$slots, "body.append")
|
|
2194
2194
|
], 40, $l)
|
|
2195
2195
|
];
|
|
@@ -2210,9 +2210,9 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2210
2210
|
label: "Ok"
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
|
-
],
|
|
2213
|
+
], Ll = {
|
|
2214
2214
|
icon: "check-circle-outline"
|
|
2215
|
-
},
|
|
2215
|
+
}, Bl = {
|
|
2216
2216
|
close: {
|
|
2217
2217
|
icon: "close"
|
|
2218
2218
|
}
|
|
@@ -2229,26 +2229,26 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2229
2229
|
buttons: { default: () => Sl },
|
|
2230
2230
|
dismissible: { type: Boolean },
|
|
2231
2231
|
html: { type: Boolean, default: !0 },
|
|
2232
|
-
icon: { default: () =>
|
|
2232
|
+
icon: { default: () => Ll },
|
|
2233
2233
|
id: { default: void 0 },
|
|
2234
2234
|
title: { default: "" },
|
|
2235
2235
|
class: { default: void 0 },
|
|
2236
|
-
icons: { default: () =>
|
|
2236
|
+
icons: { default: () => Bl }
|
|
2237
2237
|
}, {
|
|
2238
2238
|
modelValue: { type: Boolean },
|
|
2239
2239
|
modelModifiers: {}
|
|
2240
2240
|
}),
|
|
2241
2241
|
emits: ["update:modelValue"],
|
|
2242
2242
|
setup(n) {
|
|
2243
|
-
const t = n, e =
|
|
2243
|
+
const t = n, e = K(n, "modelValue"), l = ie(t.id), o = y(() => ["q-dialog", t.class]);
|
|
2244
2244
|
function s() {
|
|
2245
2245
|
e.value = !1;
|
|
2246
2246
|
}
|
|
2247
|
-
function d
|
|
2248
|
-
var
|
|
2249
|
-
(
|
|
2247
|
+
function a(d) {
|
|
2248
|
+
var r;
|
|
2249
|
+
(r = d.action) == null || r.call(d), s();
|
|
2250
2250
|
}
|
|
2251
|
-
return (
|
|
2251
|
+
return (d, r) => (i(), B(m(ve), {
|
|
2252
2252
|
id: m(l),
|
|
2253
2253
|
"model-value": e.value,
|
|
2254
2254
|
inline: t.inline,
|
|
@@ -2258,49 +2258,49 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2258
2258
|
"scroll-lock": "",
|
|
2259
2259
|
persistent: ""
|
|
2260
2260
|
}, {
|
|
2261
|
-
default:
|
|
2262
|
-
|
|
2261
|
+
default: w(() => [
|
|
2262
|
+
q("div", {
|
|
2263
2263
|
class: T(o.value)
|
|
2264
2264
|
}, [
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
t.dismissible ? (
|
|
2265
|
+
q("div", Cl, [
|
|
2266
|
+
q("span", Il, E(t.title), 1),
|
|
2267
|
+
t.dismissible ? (i(), B(m(le), {
|
|
2268
2268
|
key: 0,
|
|
2269
2269
|
"b-style": "tertiary",
|
|
2270
2270
|
onClick: s
|
|
2271
2271
|
}, {
|
|
2272
|
-
default:
|
|
2273
|
-
D(m(O),
|
|
2272
|
+
default: w(() => [
|
|
2273
|
+
D(m(O), W(ne(t.icons.close)), null, 16)
|
|
2274
2274
|
]),
|
|
2275
2275
|
_: 1
|
|
2276
|
-
})) :
|
|
2276
|
+
})) : g("", !0)
|
|
2277
2277
|
]),
|
|
2278
|
-
p(
|
|
2279
|
-
|
|
2280
|
-
p(
|
|
2281
|
-
t.icon ? (
|
|
2282
|
-
D(m(O),
|
|
2283
|
-
])) :
|
|
2278
|
+
p(d.$slots, "body.content", {}, () => [
|
|
2279
|
+
q("div", Tl, [
|
|
2280
|
+
p(d.$slots, "body.icon", {}, () => [
|
|
2281
|
+
t.icon ? (i(), f("span", Vl, [
|
|
2282
|
+
D(m(O), W(ne(t.icon)), null, 16)
|
|
2283
|
+
])) : g("", !0)
|
|
2284
2284
|
]),
|
|
2285
|
-
|
|
2286
|
-
t.html ? (
|
|
2285
|
+
q("div", Al, [
|
|
2286
|
+
t.html ? (i(), f("span", {
|
|
2287
2287
|
key: 0,
|
|
2288
2288
|
innerHTML: t.text
|
|
2289
|
-
}, null, 8, El)) : (
|
|
2289
|
+
}, null, 8, El)) : (i(), f("span", Ql, E(t.text), 1))
|
|
2290
2290
|
]),
|
|
2291
|
-
p(
|
|
2291
|
+
p(d.$slots, "body.append")
|
|
2292
2292
|
])
|
|
2293
2293
|
]),
|
|
2294
|
-
|
|
2295
|
-
(
|
|
2294
|
+
q("div", Dl, [
|
|
2295
|
+
(i(!0), f(U, null, he(t.buttons, (u) => (i(), B(m(le), H({ ref_for: !0 }, u.props, {
|
|
2296
2296
|
key: u.id,
|
|
2297
|
-
onClick: () =>
|
|
2297
|
+
onClick: () => a(u)
|
|
2298
2298
|
}), {
|
|
2299
|
-
default:
|
|
2300
|
-
u.icon ? (
|
|
2299
|
+
default: w(() => [
|
|
2300
|
+
u.icon ? (i(), B(m(O), H({
|
|
2301
2301
|
key: 0,
|
|
2302
2302
|
ref_for: !0
|
|
2303
|
-
}, u.icon), null, 16)) :
|
|
2303
|
+
}, u.icon), null, 16)) : g("", !0)
|
|
2304
2304
|
]),
|
|
2305
2305
|
_: 2
|
|
2306
2306
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -2333,33 +2333,33 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2333
2333
|
QField: {
|
|
2334
2334
|
size: "block"
|
|
2335
2335
|
}
|
|
2336
|
-
}), (e, l) => (
|
|
2336
|
+
}), (e, l) => (i(), B(m(Le), {
|
|
2337
2337
|
id: t.id,
|
|
2338
2338
|
class: T(["q-input-group", t.class]),
|
|
2339
2339
|
label: t.label,
|
|
2340
2340
|
required: t.required,
|
|
2341
2341
|
size: t.size
|
|
2342
|
-
},
|
|
2343
|
-
default:
|
|
2344
|
-
e.$slots.prepend || t.prependIcon ? (
|
|
2345
|
-
t.prependIcon ? (
|
|
2346
|
-
D(m(O),
|
|
2347
|
-
])) :
|
|
2342
|
+
}, ye({
|
|
2343
|
+
default: w(() => [
|
|
2344
|
+
e.$slots.prepend || t.prependIcon ? (i(), f("div", Fl, [
|
|
2345
|
+
t.prependIcon ? (i(), f("span", Ol, [
|
|
2346
|
+
D(m(O), W(ne(t.prependIcon)), null, 16)
|
|
2347
|
+
])) : g("", !0),
|
|
2348
2348
|
p(e.$slots, "prepend")
|
|
2349
|
-
])) :
|
|
2349
|
+
])) : g("", !0),
|
|
2350
2350
|
p(e.$slots, "default"),
|
|
2351
|
-
e.$slots.append || t.appendIcon ? (
|
|
2352
|
-
t.appendIcon ? (
|
|
2353
|
-
D(m(O),
|
|
2354
|
-
])) :
|
|
2351
|
+
e.$slots.append || t.appendIcon ? (i(), f("div", Pl, [
|
|
2352
|
+
t.appendIcon ? (i(), f("span", Ul, [
|
|
2353
|
+
D(m(O), W(ne(t.appendIcon)), null, 16)
|
|
2354
|
+
])) : g("", !0),
|
|
2355
2355
|
p(e.$slots, "append")
|
|
2356
|
-
])) :
|
|
2356
|
+
])) : g("", !0)
|
|
2357
2357
|
]),
|
|
2358
2358
|
_: 2
|
|
2359
2359
|
}, [
|
|
2360
2360
|
e.$slots.extras ? {
|
|
2361
2361
|
name: "extras",
|
|
2362
|
-
fn:
|
|
2362
|
+
fn: w(() => [
|
|
2363
2363
|
p(e.$slots, "extras")
|
|
2364
2364
|
]),
|
|
2365
2365
|
key: "0"
|
|
@@ -2373,7 +2373,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2373
2373
|
},
|
|
2374
2374
|
setup(n) {
|
|
2375
2375
|
const t = n;
|
|
2376
|
-
return (e, l) => (
|
|
2376
|
+
return (e, l) => (i(), f("div", {
|
|
2377
2377
|
class: T(["q-line-loader", t.class])
|
|
2378
2378
|
}, null, 2));
|
|
2379
2379
|
}
|
|
@@ -2402,8 +2402,8 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2402
2402
|
}),
|
|
2403
2403
|
emits: ["update:modelValue"],
|
|
2404
2404
|
setup(n) {
|
|
2405
|
-
const t = n, e =
|
|
2406
|
-
return (l, o) => (
|
|
2405
|
+
const t = n, e = K(n, "modelValue");
|
|
2406
|
+
return (l, o) => (i(), B(m(ve), {
|
|
2407
2407
|
modelValue: e.value,
|
|
2408
2408
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s),
|
|
2409
2409
|
class: "q-popover",
|
|
@@ -2415,18 +2415,18 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2415
2415
|
disabled: t.disabled,
|
|
2416
2416
|
placement: t.placement
|
|
2417
2417
|
}, {
|
|
2418
|
-
default:
|
|
2419
|
-
t.title || l.$slots.header ? (
|
|
2420
|
-
|
|
2418
|
+
default: w(() => [
|
|
2419
|
+
t.title || l.$slots.header ? (i(), f("h3", jl, [
|
|
2420
|
+
ae(E(t.title) + " ", 1),
|
|
2421
2421
|
p(l.$slots, "header")
|
|
2422
|
-
])) :
|
|
2423
|
-
t.text || l.$slots.body ? (
|
|
2424
|
-
t.html ? (
|
|
2422
|
+
])) : g("", !0),
|
|
2423
|
+
t.text || l.$slots.body ? (i(), f("div", Kl, [
|
|
2424
|
+
t.html ? (i(), f("span", {
|
|
2425
2425
|
key: 0,
|
|
2426
2426
|
innerHTML: t.text
|
|
2427
|
-
}, null, 8, Wl)) : (
|
|
2427
|
+
}, null, 8, Wl)) : (i(), f("span", Xl, E(t.text), 1)),
|
|
2428
2428
|
p(l.$slots, "body")
|
|
2429
|
-
])) :
|
|
2429
|
+
])) : g("", !0)
|
|
2430
2430
|
]),
|
|
2431
2431
|
_: 3
|
|
2432
2432
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
@@ -2455,92 +2455,92 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2455
2455
|
},
|
|
2456
2456
|
emits: ["field-change"],
|
|
2457
2457
|
setup(n, { emit: t }) {
|
|
2458
|
-
const e = n, l = t, o = A(e.groups.map((
|
|
2459
|
-
(
|
|
2460
|
-
) : [{ id: "", title: "" }]),
|
|
2458
|
+
const e = n, l = t, o = A(e.groups.map((_) => _.id)), s = A(void 0), a = A(null), d = y(() => e.groups.length ? e.groups.filter(
|
|
2459
|
+
(_) => e.fields.some((V) => V.group === _.id)
|
|
2460
|
+
) : [{ id: "", title: "" }]), r = y(() => [
|
|
2461
2461
|
e.class,
|
|
2462
2462
|
{
|
|
2463
2463
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2464
2464
|
}
|
|
2465
2465
|
]);
|
|
2466
2466
|
function u() {
|
|
2467
|
-
var
|
|
2468
|
-
(
|
|
2467
|
+
var _;
|
|
2468
|
+
(_ = a.value) != null && _.contains(document.activeElement) || (s.value = void 0);
|
|
2469
2469
|
}
|
|
2470
|
-
function _
|
|
2471
|
-
return
|
|
2470
|
+
function b(_) {
|
|
2471
|
+
return _ ? e.fields.filter((V) => V.group === _) : e.fields;
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2474
|
-
const
|
|
2475
|
-
|
|
2473
|
+
function x(_) {
|
|
2474
|
+
const V = o.value.indexOf(_);
|
|
2475
|
+
V === -1 ? o.value.push(_) : o.value.splice(V, 1);
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2478
|
-
var
|
|
2479
|
-
const
|
|
2477
|
+
function R(_) {
|
|
2478
|
+
var Q;
|
|
2479
|
+
const V = _.group && !o.value.includes(_.group), M = ((Q = s.value) == null ? void 0 : Q.id) === _.id;
|
|
2480
2480
|
return [
|
|
2481
2481
|
{
|
|
2482
|
-
"q-property-list__row--closed":
|
|
2483
|
-
"q-property-list__row--selected":
|
|
2482
|
+
"q-property-list__row--closed": V,
|
|
2483
|
+
"q-property-list__row--selected": M
|
|
2484
2484
|
}
|
|
2485
2485
|
];
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2488
|
-
s.value =
|
|
2487
|
+
function P(_) {
|
|
2488
|
+
s.value = _;
|
|
2489
2489
|
}
|
|
2490
|
-
function
|
|
2491
|
-
e.readonly || (
|
|
2490
|
+
function z(_, V) {
|
|
2491
|
+
e.readonly || (_.props.readonly ?? !1) || (_.props.modelValue = V, l("field-change", _));
|
|
2492
2492
|
}
|
|
2493
|
-
return (
|
|
2493
|
+
return (_, V) => (i(), f("div", {
|
|
2494
2494
|
ref_key: "componentRoot",
|
|
2495
|
-
ref:
|
|
2495
|
+
ref: a,
|
|
2496
2496
|
tabindex: "0",
|
|
2497
|
-
class: T(["q-property-list",
|
|
2497
|
+
class: T(["q-property-list", r.value]),
|
|
2498
2498
|
onFocusout: u
|
|
2499
2499
|
}, [
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2500
|
+
q("table", Jl, [
|
|
2501
|
+
V[0] || (V[0] = q("thead", { class: "q-property-list__header" }, [
|
|
2502
|
+
q("tr", null, [
|
|
2503
|
+
q("th", { colspan: "2" })
|
|
2504
2504
|
])
|
|
2505
2505
|
], -1)),
|
|
2506
|
-
|
|
2507
|
-
(
|
|
2508
|
-
key:
|
|
2506
|
+
q("tbody", null, [
|
|
2507
|
+
(i(!0), f(U, null, he(d.value, (M) => (i(), f(U, {
|
|
2508
|
+
key: M.id
|
|
2509
2509
|
}, [
|
|
2510
|
-
|
|
2510
|
+
M.title ? (i(), B(m(yt), {
|
|
2511
2511
|
key: 0,
|
|
2512
|
-
id:
|
|
2513
|
-
title:
|
|
2512
|
+
id: M.id,
|
|
2513
|
+
title: M.title,
|
|
2514
2514
|
icons: e.icons,
|
|
2515
2515
|
"no-toggle": e.noToggle,
|
|
2516
|
-
onToggleGroup:
|
|
2517
|
-
}, null, 8, ["id", "title", "icons", "no-toggle"])) :
|
|
2518
|
-
(
|
|
2519
|
-
key:
|
|
2520
|
-
class: T(
|
|
2521
|
-
field:
|
|
2516
|
+
onToggleGroup: x
|
|
2517
|
+
}, null, 8, ["id", "title", "icons", "no-toggle"])) : g("", !0),
|
|
2518
|
+
(i(!0), f(U, null, he(b(M.id), (Q) => (i(), B(m(ht), {
|
|
2519
|
+
key: Q.id,
|
|
2520
|
+
class: T(R(Q)),
|
|
2521
|
+
field: Q,
|
|
2522
2522
|
readonly: e.readonly,
|
|
2523
|
-
onFocus:
|
|
2524
|
-
onFieldChange:
|
|
2523
|
+
onFocus: P,
|
|
2524
|
+
onFieldChange: z
|
|
2525
2525
|
}, {
|
|
2526
|
-
default:
|
|
2527
|
-
p(
|
|
2526
|
+
default: w(() => [
|
|
2527
|
+
p(_.$slots, Q.id, { field: Q })
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 2
|
|
2530
2530
|
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2531
2531
|
], 64))), 128))
|
|
2532
2532
|
])
|
|
2533
2533
|
]),
|
|
2534
|
-
e.noPanel ?
|
|
2534
|
+
e.noPanel ? g("", !0) : (i(), B(m(vt), {
|
|
2535
2535
|
key: 0,
|
|
2536
2536
|
field: s.value,
|
|
2537
2537
|
texts: e.texts
|
|
2538
2538
|
}, {
|
|
2539
|
-
default:
|
|
2540
|
-
s.value ? p(
|
|
2539
|
+
default: w(() => [
|
|
2540
|
+
s.value ? p(_.$slots, "panel", {
|
|
2541
2541
|
key: 0,
|
|
2542
2542
|
field: s.value
|
|
2543
|
-
}) :
|
|
2543
|
+
}) : g("", !0)
|
|
2544
2544
|
]),
|
|
2545
2545
|
_: 3
|
|
2546
2546
|
}, 8, ["field", "texts"]))
|
|
@@ -2559,39 +2559,39 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2559
2559
|
emits: ["focus", "field-change"],
|
|
2560
2560
|
setup(n, { emit: t }) {
|
|
2561
2561
|
const e = n, l = t, o = y(() => ["q-property-list__row", e.class]), s = y(() => {
|
|
2562
|
-
var
|
|
2563
|
-
const
|
|
2564
|
-
return (
|
|
2565
|
-
}),
|
|
2566
|
-
function
|
|
2562
|
+
var x;
|
|
2563
|
+
const b = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
2564
|
+
return (x = e.field.props) != null && x.required && b.push("q-property-list__cell--required"), b;
|
|
2565
|
+
}), a = y(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
2566
|
+
function d() {
|
|
2567
2567
|
l("focus", e.field);
|
|
2568
2568
|
}
|
|
2569
|
-
function
|
|
2570
|
-
l("field-change", e.field,
|
|
2569
|
+
function r(b) {
|
|
2570
|
+
l("field-change", e.field, b);
|
|
2571
2571
|
}
|
|
2572
2572
|
const u = y(() => ({
|
|
2573
2573
|
...e.field.props,
|
|
2574
|
-
readonly:
|
|
2574
|
+
readonly: a.value
|
|
2575
2575
|
}));
|
|
2576
|
-
return (
|
|
2576
|
+
return (b, x) => (i(), f("tr", {
|
|
2577
2577
|
class: T(o.value),
|
|
2578
|
-
onFocusin:
|
|
2578
|
+
onFocusin: d
|
|
2579
2579
|
}, [
|
|
2580
|
-
|
|
2580
|
+
q("td", {
|
|
2581
2581
|
class: T(s.value),
|
|
2582
|
-
onClick:
|
|
2583
|
-
},
|
|
2584
|
-
|
|
2582
|
+
onClick: d
|
|
2583
|
+
}, E(e.field.label), 3),
|
|
2584
|
+
q("td", {
|
|
2585
2585
|
class: "q-property-list__cell",
|
|
2586
|
-
onClick:
|
|
2586
|
+
onClick: d
|
|
2587
2587
|
}, [
|
|
2588
|
-
p(
|
|
2589
|
-
e.field.component ? (
|
|
2590
|
-
(
|
|
2588
|
+
p(b.$slots, "default", {}, () => [
|
|
2589
|
+
e.field.component ? (i(), f("div", to, [
|
|
2590
|
+
(i(), B(Se(e.field.component), H(u.value, {
|
|
2591
2591
|
"model-value": e.field.props.modelValue,
|
|
2592
|
-
"onUpdate:modelValue":
|
|
2592
|
+
"onUpdate:modelValue": r
|
|
2593
2593
|
}), null, 16, ["model-value"]))
|
|
2594
|
-
])) :
|
|
2594
|
+
])) : g("", !0)
|
|
2595
2595
|
])
|
|
2596
2596
|
])
|
|
2597
2597
|
], 34));
|
|
@@ -2607,39 +2607,39 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2607
2607
|
},
|
|
2608
2608
|
emits: ["toggle-group"],
|
|
2609
2609
|
setup(n, { emit: t }) {
|
|
2610
|
-
const e = n, l = t, o = A(!0), s =
|
|
2610
|
+
const e = n, l = t, o = A(!0), s = ie(), a = y(() => o.value ? e.icons.open : e.icons.close), d = y(() => [
|
|
2611
2611
|
"q-property-list-group",
|
|
2612
2612
|
{
|
|
2613
2613
|
"q-property-list-group--no-toggle": e.noToggle
|
|
2614
2614
|
}
|
|
2615
2615
|
]);
|
|
2616
|
-
function
|
|
2616
|
+
function r() {
|
|
2617
2617
|
e.noToggle || (o.value = !o.value, l("toggle-group", e.id));
|
|
2618
2618
|
}
|
|
2619
|
-
return (u,
|
|
2620
|
-
class: T(
|
|
2619
|
+
return (u, b) => (i(), f("tr", {
|
|
2620
|
+
class: T(d.value),
|
|
2621
2621
|
role: "group",
|
|
2622
2622
|
"data-key": e.id,
|
|
2623
2623
|
"aria-labelledby": m(s),
|
|
2624
|
-
onClick:
|
|
2624
|
+
onClick: r
|
|
2625
2625
|
}, [
|
|
2626
|
-
|
|
2626
|
+
q("td", {
|
|
2627
2627
|
id: m(s),
|
|
2628
2628
|
colspan: "2"
|
|
2629
2629
|
}, [
|
|
2630
|
-
|
|
2631
|
-
e.noToggle ?
|
|
2630
|
+
q("div", so, [
|
|
2631
|
+
e.noToggle ? g("", !0) : (i(), B(m(le), {
|
|
2632
2632
|
key: 0,
|
|
2633
2633
|
"b-style": "tertiary",
|
|
2634
2634
|
borderless: "",
|
|
2635
|
-
onClick:
|
|
2635
|
+
onClick: r
|
|
2636
2636
|
}, {
|
|
2637
|
-
default:
|
|
2638
|
-
D(m(O),
|
|
2637
|
+
default: w(() => [
|
|
2638
|
+
D(m(O), W(ne(a.value)), null, 16)
|
|
2639
2639
|
]),
|
|
2640
2640
|
_: 1
|
|
2641
2641
|
})),
|
|
2642
|
-
|
|
2642
|
+
ae(" " + E(e.title), 1)
|
|
2643
2643
|
])
|
|
2644
2644
|
], 8, oo)
|
|
2645
2645
|
], 10, lo));
|
|
@@ -2656,11 +2656,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2656
2656
|
},
|
|
2657
2657
|
setup(n) {
|
|
2658
2658
|
const t = n;
|
|
2659
|
-
return (e, l) => (
|
|
2659
|
+
return (e, l) => (i(), f("div", io, [
|
|
2660
2660
|
t.field ? p(e.$slots, "default", { key: 0 }, () => [
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
]) : (
|
|
2661
|
+
q("div", ro, E(t.field.label), 1),
|
|
2662
|
+
q("div", uo, E(t.field.description), 1)
|
|
2663
|
+
]) : (i(), f("div", co, E(t.texts.emptyMessage), 1))
|
|
2664
2664
|
]));
|
|
2665
2665
|
}
|
|
2666
2666
|
}), po = I(eo), ht = I(no), yt = I(ao), vt = I(fo), mo = {
|
|
@@ -2711,82 +2711,82 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2711
2711
|
}),
|
|
2712
2712
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2713
2713
|
setup(n, { emit: t }) {
|
|
2714
|
-
const e = n, l = t, o =
|
|
2714
|
+
const e = n, l = t, o = K(n, "modelValue"), s = A(!1), a = A(""), d = A(null), r = A(null), u = A(null), b = y(() => x.value === void 0), x = y(
|
|
2715
2715
|
() => {
|
|
2716
2716
|
var h;
|
|
2717
2717
|
return (h = e.items) == null ? void 0 : h.find(($) => $[e.itemValue] === o.value);
|
|
2718
2718
|
}
|
|
2719
|
-
),
|
|
2720
|
-
() =>
|
|
2721
|
-
),
|
|
2719
|
+
), R = y(
|
|
2720
|
+
() => x.value ? x.value[e.itemLabel] : ""
|
|
2721
|
+
), P = y(
|
|
2722
2722
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2723
2723
|
);
|
|
2724
|
-
function
|
|
2725
|
-
o.value = h,
|
|
2724
|
+
function z(h) {
|
|
2725
|
+
o.value = h, Q();
|
|
2726
2726
|
}
|
|
2727
|
-
function
|
|
2728
|
-
|
|
2727
|
+
function _() {
|
|
2728
|
+
P.value && (z(e.emptyValue), ce());
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2731
|
-
var $,
|
|
2732
|
-
!(($ = u.value) != null && $.contains(h.relatedTarget)) && !((re = (
|
|
2730
|
+
function V(h) {
|
|
2731
|
+
var $, J, re;
|
|
2732
|
+
!(($ = u.value) != null && $.contains(h.relatedTarget)) && !((re = (J = d.value) == null ? void 0 : J.fieldRef) != null && re.contains(h.relatedTarget)) && Q();
|
|
2733
2733
|
}
|
|
2734
|
-
function
|
|
2734
|
+
function M() {
|
|
2735
2735
|
s.value || (l("before-show"), s.value = !0);
|
|
2736
2736
|
}
|
|
2737
|
-
function
|
|
2737
|
+
function Q() {
|
|
2738
2738
|
s.value && (l("before-hide"), s.value = !1);
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2741
|
-
e.readonly || e.disabled || (s.value ?
|
|
2740
|
+
function oe() {
|
|
2741
|
+
e.readonly || e.disabled || (s.value ? Q() : M());
|
|
2742
2742
|
}
|
|
2743
|
-
let
|
|
2744
|
-
function
|
|
2743
|
+
let ee;
|
|
2744
|
+
function N(h) {
|
|
2745
2745
|
if (!(!h.key || e.readonly || e.disabled)) {
|
|
2746
|
-
if (window.clearTimeout(
|
|
2747
|
-
|
|
2746
|
+
if (window.clearTimeout(ee), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(h.key) && (h.preventDefault(), h.stopPropagation()), ["Enter", " "].includes(h.key) && (s.value = !0), ["Escape", "Tab"].includes(h.key) && (s.value ? s.value = !1 : P.value && h.key === "Escape" && _()), h.key === "Delete" && e.clearable && _(), /^[a-z]$/i.test(h.key)) {
|
|
2747
|
+
a.value += h.key.toLowerCase();
|
|
2748
2748
|
for (let $ = 0; $ < e.items.length; $++)
|
|
2749
|
-
if (e.items[$][e.itemLabel].toLowerCase().startsWith(
|
|
2750
|
-
|
|
2749
|
+
if (e.items[$][e.itemLabel].toLowerCase().startsWith(a.value)) {
|
|
2750
|
+
S($);
|
|
2751
2751
|
break;
|
|
2752
2752
|
}
|
|
2753
2753
|
}
|
|
2754
|
-
|
|
2755
|
-
|
|
2754
|
+
ee = window.setTimeout(function() {
|
|
2755
|
+
a.value = "";
|
|
2756
2756
|
}, 500);
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
2759
|
-
function
|
|
2759
|
+
function se() {
|
|
2760
2760
|
var h;
|
|
2761
2761
|
e.loading ? (h = u.value) == null || h.focus() : v(), l("show");
|
|
2762
2762
|
}
|
|
2763
|
-
function
|
|
2764
|
-
|
|
2763
|
+
function X() {
|
|
2764
|
+
ce(), l("hide");
|
|
2765
2765
|
}
|
|
2766
|
-
function
|
|
2766
|
+
function ce() {
|
|
2767
2767
|
var h, $;
|
|
2768
|
-
($ = (h =
|
|
2768
|
+
($ = (h = d.value) == null ? void 0 : h.fieldRef) == null || $.focus();
|
|
2769
2769
|
}
|
|
2770
2770
|
function v() {
|
|
2771
2771
|
var h;
|
|
2772
|
-
(h =
|
|
2772
|
+
(h = r.value) == null || h.$el.focus();
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function S(h) {
|
|
2775
2775
|
var $;
|
|
2776
|
-
($ =
|
|
2776
|
+
($ = r.value) == null || $.focusItem(h);
|
|
2777
2777
|
}
|
|
2778
|
-
return
|
|
2778
|
+
return Z(
|
|
2779
2779
|
() => e.loading,
|
|
2780
2780
|
(h) => {
|
|
2781
|
-
!h && s.value &&
|
|
2781
|
+
!h && s.value && te(v);
|
|
2782
2782
|
}
|
|
2783
2783
|
), (h, $) => {
|
|
2784
|
-
var
|
|
2785
|
-
return
|
|
2784
|
+
var J, re;
|
|
2785
|
+
return i(), f(U, null, [
|
|
2786
2786
|
D(m(Le), H({
|
|
2787
2787
|
id: e.id,
|
|
2788
2788
|
ref_key: "triggerEl",
|
|
2789
|
-
ref:
|
|
2789
|
+
ref: d,
|
|
2790
2790
|
label: e.label,
|
|
2791
2791
|
required: e.required,
|
|
2792
2792
|
role: "combobox",
|
|
@@ -2807,26 +2807,26 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2807
2807
|
"aria-haspopup": "listbox",
|
|
2808
2808
|
size: e.size
|
|
2809
2809
|
}, h.$attrs, {
|
|
2810
|
-
onClick:
|
|
2811
|
-
onKeydown:
|
|
2812
|
-
}),
|
|
2813
|
-
append:
|
|
2810
|
+
onClick: oe,
|
|
2811
|
+
onKeydown: ue(N, ["stop"])
|
|
2812
|
+
}), ye({
|
|
2813
|
+
append: w(() => [
|
|
2814
2814
|
p(h.$slots, "append"),
|
|
2815
|
-
|
|
2815
|
+
P.value && o.value ? (i(), B(m(le), {
|
|
2816
2816
|
key: 0,
|
|
2817
2817
|
class: "q-select__clear",
|
|
2818
2818
|
"aria-label": e.texts.clearValue,
|
|
2819
2819
|
"b-style": "plain",
|
|
2820
2820
|
borderless: "",
|
|
2821
2821
|
tabindex: "-1",
|
|
2822
|
-
onClick:
|
|
2822
|
+
onClick: _
|
|
2823
2823
|
}, {
|
|
2824
|
-
default:
|
|
2825
|
-
D(m(O),
|
|
2824
|
+
default: w(() => [
|
|
2825
|
+
D(m(O), W(ne(e.icons.clear)), null, 16)
|
|
2826
2826
|
]),
|
|
2827
2827
|
_: 1
|
|
2828
|
-
}, 8, ["aria-label"])) :
|
|
2829
|
-
e.readonly ?
|
|
2828
|
+
}, 8, ["aria-label"])) : g("", !0),
|
|
2829
|
+
e.readonly ? g("", !0) : (i(), B(m(le), {
|
|
2830
2830
|
key: 1,
|
|
2831
2831
|
class: "q-select__chevron",
|
|
2832
2832
|
"aria-label": e.texts.showOptions,
|
|
@@ -2834,73 +2834,73 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2834
2834
|
borderless: "",
|
|
2835
2835
|
tabindex: "-1",
|
|
2836
2836
|
disabled: e.disabled,
|
|
2837
|
-
onClick:
|
|
2837
|
+
onClick: oe
|
|
2838
2838
|
}, {
|
|
2839
|
-
default:
|
|
2840
|
-
D(m(O),
|
|
2839
|
+
default: w(() => [
|
|
2840
|
+
D(m(O), W(ne(e.icons.chevron)), null, 16)
|
|
2841
2841
|
]),
|
|
2842
2842
|
_: 1
|
|
2843
2843
|
}, 8, ["aria-label", "disabled"]))
|
|
2844
2844
|
]),
|
|
2845
|
-
default:
|
|
2846
|
-
|
|
2847
|
-
!e.readonly && !e.disabled ? (
|
|
2848
|
-
|
|
2849
|
-
], 64)) :
|
|
2850
|
-
])) : (
|
|
2845
|
+
default: w(() => [
|
|
2846
|
+
b.value ? (i(), f("span", vo, [
|
|
2847
|
+
!e.readonly && !e.disabled ? (i(), f(U, { key: 0 }, [
|
|
2848
|
+
ae(E(e.texts.placeholder), 1)
|
|
2849
|
+
], 64)) : g("", !0)
|
|
2850
|
+
])) : (i(), f("span", yo, E(R.value), 1))
|
|
2851
2851
|
]),
|
|
2852
2852
|
_: 2
|
|
2853
2853
|
}, [
|
|
2854
|
-
(
|
|
2854
|
+
(J = x.value) != null && J.icon || h.$slots.prepend ? {
|
|
2855
2855
|
name: "prepend",
|
|
2856
|
-
fn:
|
|
2857
|
-
var
|
|
2856
|
+
fn: w(() => {
|
|
2857
|
+
var Y, de;
|
|
2858
2858
|
return [
|
|
2859
2859
|
p(h.$slots, "prepend"),
|
|
2860
|
-
(
|
|
2860
|
+
(Y = x.value) != null && Y.icon ? (i(), B(m(O), W(H({ key: 0 }, (de = x.value) == null ? void 0 : de.icon)), null, 16)) : g("", !0)
|
|
2861
2861
|
];
|
|
2862
2862
|
}),
|
|
2863
2863
|
key: "0"
|
|
2864
2864
|
} : void 0,
|
|
2865
2865
|
h.$slots.extras ? {
|
|
2866
2866
|
name: "extras",
|
|
2867
|
-
fn:
|
|
2867
|
+
fn: w(() => [
|
|
2868
2868
|
p(h.$slots, "extras")
|
|
2869
2869
|
]),
|
|
2870
2870
|
key: "1"
|
|
2871
2871
|
} : void 0
|
|
2872
2872
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2873
|
-
D(m(
|
|
2873
|
+
D(m(ve), {
|
|
2874
2874
|
modelValue: s.value,
|
|
2875
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
2875
|
+
"onUpdate:modelValue": $[0] || ($[0] = (Y) => s.value = Y),
|
|
2876
2876
|
spy: "",
|
|
2877
2877
|
trigger: "manual",
|
|
2878
2878
|
placement: "bottom-start",
|
|
2879
2879
|
width: "anchor",
|
|
2880
2880
|
"scroll-lock": "",
|
|
2881
|
-
anchor: (re =
|
|
2881
|
+
anchor: (re = d.value) == null ? void 0 : re.$el,
|
|
2882
2882
|
offset: 2,
|
|
2883
|
-
onEnter:
|
|
2884
|
-
onLeave:
|
|
2883
|
+
onEnter: se,
|
|
2884
|
+
onLeave: X
|
|
2885
2885
|
}, {
|
|
2886
|
-
default:
|
|
2887
|
-
|
|
2886
|
+
default: w(() => [
|
|
2887
|
+
q("div", {
|
|
2888
2888
|
ref_key: "contentRef",
|
|
2889
2889
|
ref: u,
|
|
2890
2890
|
"data-testid": "combobox-dropdown",
|
|
2891
2891
|
"data-key": e.id,
|
|
2892
2892
|
class: "q-select__body",
|
|
2893
2893
|
tabindex: "-1",
|
|
2894
|
-
onFocusout:
|
|
2895
|
-
onKeydown:
|
|
2894
|
+
onFocusout: V,
|
|
2895
|
+
onKeydown: ue(N, ["stop"])
|
|
2896
2896
|
}, [
|
|
2897
2897
|
p(h.$slots, "body.prepend"),
|
|
2898
|
-
e.loading ? (
|
|
2899
|
-
D(m(
|
|
2900
|
-
])) : (
|
|
2898
|
+
e.loading ? (i(), f("div", go, [
|
|
2899
|
+
D(m(_e), { size: 24 })
|
|
2900
|
+
])) : (i(), B(m(Ue), {
|
|
2901
2901
|
key: 1,
|
|
2902
2902
|
ref_key: "listRef",
|
|
2903
|
-
ref:
|
|
2903
|
+
ref: r,
|
|
2904
2904
|
class: "q-select__items",
|
|
2905
2905
|
selectable: "",
|
|
2906
2906
|
"model-value": o.value,
|
|
@@ -2908,10 +2908,10 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2908
2908
|
groups: h.groups,
|
|
2909
2909
|
"item-label": e.itemLabel,
|
|
2910
2910
|
"item-value": e.itemValue,
|
|
2911
|
-
"onUpdate:modelValue":
|
|
2911
|
+
"onUpdate:modelValue": z
|
|
2912
2912
|
}, {
|
|
2913
|
-
item:
|
|
2914
|
-
p(h.$slots, "item", { item:
|
|
2913
|
+
item: w(({ item: Y }) => [
|
|
2914
|
+
p(h.$slots, "item", { item: Y })
|
|
2915
2915
|
]),
|
|
2916
2916
|
_: 3
|
|
2917
2917
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
@@ -2938,11 +2938,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2938
2938
|
height: s
|
|
2939
2939
|
};
|
|
2940
2940
|
});
|
|
2941
|
-
return (o, s) => (
|
|
2941
|
+
return (o, s) => (i(), f("div", {
|
|
2942
2942
|
class: T(["q-skeleton-loader", e.value]),
|
|
2943
|
-
style:
|
|
2943
|
+
style: fe(l.value)
|
|
2944
2944
|
}, s[0] || (s[0] = [
|
|
2945
|
-
|
|
2945
|
+
q("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2946
2946
|
]), 6));
|
|
2947
2947
|
}
|
|
2948
2948
|
}), wo = I(ko), qo = /* @__PURE__ */ C({
|
|
@@ -2952,13 +2952,13 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2952
2952
|
},
|
|
2953
2953
|
setup(n) {
|
|
2954
2954
|
const t = n;
|
|
2955
|
-
return (e, l) => (
|
|
2955
|
+
return (e, l) => (i(), f("div", {
|
|
2956
2956
|
class: T(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2957
2957
|
}, [
|
|
2958
2958
|
p(e.$slots, "default")
|
|
2959
2959
|
], 2));
|
|
2960
2960
|
}
|
|
2961
|
-
}), xo = I(qo), So = ["innerHTML"],
|
|
2961
|
+
}), xo = I(qo), So = ["innerHTML"], Lo = /* @__PURE__ */ C({
|
|
2962
2962
|
__name: "QTooltip",
|
|
2963
2963
|
props: /* @__PURE__ */ G({
|
|
2964
2964
|
id: { default: void 0 },
|
|
@@ -2981,12 +2981,12 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2981
2981
|
}),
|
|
2982
2982
|
emits: ["update:modelValue"],
|
|
2983
2983
|
setup(n) {
|
|
2984
|
-
const t = n, e =
|
|
2985
|
-
return (o, s) => (
|
|
2984
|
+
const t = n, e = K(n, "modelValue"), l = ie(t.id);
|
|
2985
|
+
return (o, s) => (i(), f(U, null, [
|
|
2986
2986
|
p(o.$slots, "anchor", {
|
|
2987
2987
|
props: { "aria-describedby": m(l) }
|
|
2988
2988
|
}),
|
|
2989
|
-
D(m(
|
|
2989
|
+
D(m(ve), {
|
|
2990
2990
|
id: m(l),
|
|
2991
2991
|
"model-value": e.value,
|
|
2992
2992
|
anchor: t.anchor,
|
|
@@ -3002,14 +3002,14 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3002
3002
|
placement: t.placement,
|
|
3003
3003
|
trigger: t.trigger
|
|
3004
3004
|
}, {
|
|
3005
|
-
default:
|
|
3005
|
+
default: w(() => [
|
|
3006
3006
|
p(o.$slots, "default", {}, () => [
|
|
3007
|
-
t.icon ? (
|
|
3008
|
-
t.html ? (
|
|
3007
|
+
t.icon ? (i(), B(m(O), W(H({ key: 0 }, t.icon)), null, 16)) : g("", !0),
|
|
3008
|
+
t.html ? (i(), f("span", {
|
|
3009
3009
|
key: 1,
|
|
3010
3010
|
innerHTML: t.text
|
|
3011
|
-
}, null, 8, So)) : (
|
|
3012
|
-
|
|
3011
|
+
}, null, 8, So)) : (i(), f(U, { key: 2 }, [
|
|
3012
|
+
ae(E(t.text), 1)
|
|
3013
3013
|
], 64))
|
|
3014
3014
|
])
|
|
3015
3015
|
]),
|
|
@@ -3017,11 +3017,11 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3017
3017
|
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
3018
3018
|
], 64));
|
|
3019
3019
|
}
|
|
3020
|
-
}),
|
|
3020
|
+
}), Bo = I(Lo), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3021
3021
|
__proto__: null,
|
|
3022
3022
|
QAccordion: Tt,
|
|
3023
3023
|
QBadge: Zt,
|
|
3024
|
-
QButton:
|
|
3024
|
+
QButton: le,
|
|
3025
3025
|
QButtonGroup: rt,
|
|
3026
3026
|
QButtonToggle: tn,
|
|
3027
3027
|
QCard: dt,
|
|
@@ -3039,7 +3039,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3039
3039
|
QList: Ue,
|
|
3040
3040
|
QListItem: ut,
|
|
3041
3041
|
QListItemGroup: ct,
|
|
3042
|
-
QOverlay:
|
|
3042
|
+
QOverlay: ve,
|
|
3043
3043
|
QPopover: Zl,
|
|
3044
3044
|
QPropertyList: po,
|
|
3045
3045
|
QPropertyListGroup: yt,
|
|
@@ -3047,13 +3047,13 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3047
3047
|
QPropertyListRow: ht,
|
|
3048
3048
|
QSelect: $o,
|
|
3049
3049
|
QSkeletonLoader: wo,
|
|
3050
|
-
QSpinnerLoader:
|
|
3050
|
+
QSpinnerLoader: _e,
|
|
3051
3051
|
QTextField: ft,
|
|
3052
3052
|
QThemeProvider: xo,
|
|
3053
|
-
QTooltip:
|
|
3054
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3053
|
+
QTooltip: Bo
|
|
3054
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
|
|
3055
3055
|
function Io() {
|
|
3056
|
-
const n = ze(
|
|
3056
|
+
const n = ze(ge);
|
|
3057
3057
|
if (!n)
|
|
3058
3058
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
3059
3059
|
return n;
|
|
@@ -3063,13 +3063,13 @@ function Mo(n) {
|
|
|
3063
3063
|
activeTheme: A(n),
|
|
3064
3064
|
themes: t.themes
|
|
3065
3065
|
};
|
|
3066
|
-
return De(
|
|
3066
|
+
return De(ge, e), e;
|
|
3067
3067
|
}
|
|
3068
3068
|
function To() {
|
|
3069
3069
|
let n = document.getElementById(
|
|
3070
|
-
|
|
3070
|
+
ge
|
|
3071
3071
|
);
|
|
3072
|
-
return n || (n = document.createElement("style"), n.id =
|
|
3072
|
+
return n || (n = document.createElement("style"), n.id = ge, document.head.appendChild(n)), n;
|
|
3073
3073
|
}
|
|
3074
3074
|
function Vo(n) {
|
|
3075
3075
|
let t = "";
|
|
@@ -3079,12 +3079,12 @@ function Vo(n) {
|
|
|
3079
3079
|
const o = l.scheme;
|
|
3080
3080
|
let s;
|
|
3081
3081
|
for (s in o) {
|
|
3082
|
-
const
|
|
3083
|
-
if (
|
|
3084
|
-
t += ` ${Ze(s)}: ${
|
|
3082
|
+
const a = o[s];
|
|
3083
|
+
if (a) {
|
|
3084
|
+
t += ` ${Ze(s)}: ${a};
|
|
3085
3085
|
`;
|
|
3086
|
-
const
|
|
3087
|
-
t += ` ${Ze(s)}-rgb: ${
|
|
3086
|
+
const d = it(a);
|
|
3087
|
+
t += ` ${Ze(s)}-rgb: ${d.r} ${d.g} ${d.b};
|
|
3088
3088
|
`;
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
@@ -3117,11 +3117,11 @@ function Eo(n, t) {
|
|
|
3117
3117
|
});
|
|
3118
3118
|
else
|
|
3119
3119
|
for (const o of t.themes) {
|
|
3120
|
-
const
|
|
3120
|
+
const a = { ...o.mode === "light" ? Ee : et, ...o.colors };
|
|
3121
3121
|
e.push({
|
|
3122
3122
|
name: o.name,
|
|
3123
3123
|
mode: o.mode,
|
|
3124
|
-
scheme:
|
|
3124
|
+
scheme: a
|
|
3125
3125
|
}), o.name === t.defaultTheme && (l = o.name);
|
|
3126
3126
|
}
|
|
3127
3127
|
if (l) {
|
|
@@ -3129,7 +3129,7 @@ function Eo(n, t) {
|
|
|
3129
3129
|
activeTheme: A(l),
|
|
3130
3130
|
themes: e
|
|
3131
3131
|
};
|
|
3132
|
-
Vo(e),
|
|
3132
|
+
Vo(e), Z(o.activeTheme, Qo, { immediate: !0 }), n.provide(ge, o);
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
function Qo(n) {
|