@selfeesas/shared-components 0.2.6 → 0.2.8
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as f, markRaw as Bn, defineComponent as gt, h as
|
|
1
|
+
import { computed as f, markRaw as Bn, defineComponent as gt, h as b, withDirectives as Vt, getCurrentInstance as te, useAttrs as Ho, createBlock as ft, openBlock as Ce, mergeProps as Bt, withCtx as _e, createElementBlock as Tt, Fragment as Tn, renderList as An, createVNode as ze, unref as Do, ref as V, onBeforeUnmount as de, Transition as vt, inject as ol, createCommentVNode as jo, toRaw as Ye, reactive as No, onMounted as qe, nextTick as fe, watch as Q, onDeactivated as bt, onActivated as hl, onUnmounted as Wo, Teleport as Ko, onBeforeUpdate as On, onBeforeMount as Qo, onUpdated as Uo, normalizeStyle as Xo, normalizeClass as Yo, createSlots as Go } from "vue";
|
|
2
2
|
const il = {
|
|
3
3
|
xs: 18,
|
|
4
4
|
sm: 24,
|
|
@@ -43,7 +43,7 @@ function Jo(e, t) {
|
|
|
43
43
|
}
|
|
44
44
|
function ei(e, t, l, o, n, i) {
|
|
45
45
|
t.key = o + n;
|
|
46
|
-
const r =
|
|
46
|
+
const r = b(e, t, l);
|
|
47
47
|
return n === !0 ? Vt(r, i()) : r;
|
|
48
48
|
}
|
|
49
49
|
const Fl = "0 0 24 24", jt = (e) => e, Nt = (e) => `ionicons ${e}`, Ln = {
|
|
@@ -101,13 +101,13 @@ const Fl = "0 0 24 24", jt = (e) => e, Nt = (e) => `ionicons ${e}`, Ln = {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
if (ni.test(a) === !0) {
|
|
104
|
-
const [c,
|
|
104
|
+
const [c, h = Fl] = a.split("|");
|
|
105
105
|
return {
|
|
106
106
|
svg: !0,
|
|
107
|
-
viewBox:
|
|
107
|
+
viewBox: h,
|
|
108
108
|
nodes: c.split("&&").map((m) => {
|
|
109
109
|
const [v, y, E] = m.split("@@");
|
|
110
|
-
return
|
|
110
|
+
return b("path", { style: y, d: v, transform: E });
|
|
111
111
|
})
|
|
112
112
|
};
|
|
113
113
|
}
|
|
@@ -117,17 +117,17 @@ const Fl = "0 0 24 24", jt = (e) => e, Nt = (e) => `ionicons ${e}`, Ln = {
|
|
|
117
117
|
src: a.substring(4)
|
|
118
118
|
};
|
|
119
119
|
if (ii.test(a) === !0) {
|
|
120
|
-
const [c,
|
|
120
|
+
const [c, h = Fl] = a.split("|");
|
|
121
121
|
return {
|
|
122
122
|
svguse: !0,
|
|
123
123
|
src: c.substring(7),
|
|
124
|
-
viewBox:
|
|
124
|
+
viewBox: h
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
let
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
r = Ln[
|
|
127
|
+
let d = " ";
|
|
128
|
+
const s = a.match(ti);
|
|
129
|
+
if (s !== null)
|
|
130
|
+
r = Ln[s[1]](a);
|
|
131
131
|
else if (ai.test(a) === !0)
|
|
132
132
|
r = a;
|
|
133
133
|
else if (ri.test(a) === !0)
|
|
@@ -135,15 +135,15 @@ const Fl = "0 0 24 24", jt = (e) => e, Nt = (e) => `ionicons ${e}`, Ln = {
|
|
|
135
135
|
else if (Il.test(a) === !0) {
|
|
136
136
|
r = "notranslate material-symbols";
|
|
137
137
|
const c = a.match(Il);
|
|
138
|
-
c !== null && (a = a.substring(6), r += Pn[c[1]]),
|
|
138
|
+
c !== null && (a = a.substring(6), r += Pn[c[1]]), d = a;
|
|
139
139
|
} else {
|
|
140
140
|
r = "notranslate material-icons";
|
|
141
141
|
const c = a.match(li);
|
|
142
|
-
c !== null && (a = a.substring(2), r += Mn[c[1]]),
|
|
142
|
+
c !== null && (a = a.substring(2), r += Mn[c[1]]), d = a;
|
|
143
143
|
}
|
|
144
144
|
return {
|
|
145
145
|
cls: r,
|
|
146
|
-
content:
|
|
146
|
+
content: d
|
|
147
147
|
};
|
|
148
148
|
});
|
|
149
149
|
return () => {
|
|
@@ -152,19 +152,19 @@ const Fl = "0 0 24 24", jt = (e) => e, Nt = (e) => `ionicons ${e}`, Ln = {
|
|
|
152
152
|
style: o.value,
|
|
153
153
|
"aria-hidden": "true"
|
|
154
154
|
};
|
|
155
|
-
return i.value.none === !0 ?
|
|
156
|
-
|
|
157
|
-
])) : i.value.svg === !0 ?
|
|
158
|
-
|
|
155
|
+
return i.value.none === !0 ? b(e.tag, r, ge(t.default)) : i.value.img === !0 ? b(e.tag, r, ke(t.default, [
|
|
156
|
+
b("img", { src: i.value.src })
|
|
157
|
+
])) : i.value.svg === !0 ? b(e.tag, r, ke(t.default, [
|
|
158
|
+
b("svg", {
|
|
159
159
|
viewBox: i.value.viewBox || "0 0 24 24"
|
|
160
160
|
}, i.value.nodes)
|
|
161
|
-
])) : i.value.svguse === !0 ?
|
|
162
|
-
|
|
161
|
+
])) : i.value.svguse === !0 ? b(e.tag, r, ke(t.default, [
|
|
162
|
+
b("svg", {
|
|
163
163
|
viewBox: i.value.viewBox
|
|
164
164
|
}, [
|
|
165
|
-
|
|
165
|
+
b("use", { "xlink:href": i.value.src })
|
|
166
166
|
])
|
|
167
|
-
])) : (i.value.cls !== void 0 && (r.class += " " + i.value.cls),
|
|
167
|
+
])) : (i.value.cls !== void 0 && (r.class += " " + i.value.cls), b(e.tag, r, ke(t.default, [
|
|
168
168
|
i.value.content
|
|
169
169
|
])));
|
|
170
170
|
};
|
|
@@ -251,20 +251,20 @@ const Hn = {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
function bl({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
254
|
-
const l = te(), { props: o, proxy: n, emit: i } = l, r = Fn(l), a = f(() => o.disable !== !0 && o.href !== void 0),
|
|
254
|
+
const l = te(), { props: o, proxy: n, emit: i } = l, r = Fn(l), a = f(() => o.disable !== !0 && o.href !== void 0), d = t === !0 ? f(
|
|
255
255
|
() => r === !0 && o.disable !== !0 && a.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
256
256
|
) : f(
|
|
257
257
|
() => r === !0 && a.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
258
|
-
),
|
|
258
|
+
), s = f(() => d.value === !0 ? B(o.to) : null), c = f(() => s.value !== null), h = f(() => a.value === !0 || c.value === !0), m = f(() => o.type === "a" || h.value === !0 ? "a" : o.tag || e || "div"), v = f(() => a.value === !0 ? {
|
|
259
259
|
href: o.href,
|
|
260
260
|
target: o.target
|
|
261
261
|
} : c.value === !0 ? {
|
|
262
|
-
href:
|
|
262
|
+
href: s.value.href,
|
|
263
263
|
target: o.target
|
|
264
264
|
} : {}), y = f(() => {
|
|
265
265
|
if (c.value === !1)
|
|
266
266
|
return -1;
|
|
267
|
-
const { matched: T } =
|
|
267
|
+
const { matched: T } = s.value, { length: A } = T, L = T[A - 1];
|
|
268
268
|
if (L === void 0)
|
|
269
269
|
return -1;
|
|
270
270
|
const F = n.$route.matched;
|
|
@@ -283,9 +283,9 @@ function bl({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
283
283
|
) : W
|
|
284
284
|
);
|
|
285
285
|
}), E = f(
|
|
286
|
-
() => c.value === !0 && y.value !== -1 && si(n.$route.params,
|
|
286
|
+
() => c.value === !0 && y.value !== -1 && si(n.$route.params, s.value.params)
|
|
287
287
|
), S = f(
|
|
288
|
-
() => E.value === !0 && y.value === n.$route.matched.length - 1 && di(n.$route.params,
|
|
288
|
+
() => E.value === !0 && y.value === n.$route.matched.length - 1 && di(n.$route.params, s.value.params)
|
|
289
289
|
), M = f(() => c.value === !0 ? S.value === !0 ? ` ${o.exactActiveClass} ${o.activeClass}` : o.exact === !0 ? "" : E.value === !0 ? ` ${o.activeClass}` : "" : "");
|
|
290
290
|
function B(T) {
|
|
291
291
|
try {
|
|
@@ -319,9 +319,9 @@ function bl({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
319
319
|
return {
|
|
320
320
|
hasRouterLink: c,
|
|
321
321
|
hasHrefLink: a,
|
|
322
|
-
hasLink:
|
|
322
|
+
hasLink: h,
|
|
323
323
|
linkTag: m,
|
|
324
|
-
resolvedLink:
|
|
324
|
+
resolvedLink: s,
|
|
325
325
|
linkIsActive: E,
|
|
326
326
|
linkIsExactActive: S,
|
|
327
327
|
linkClass: M,
|
|
@@ -352,16 +352,16 @@ const fi = re({
|
|
|
352
352
|
() => "q-breadcrumbs__el-icon" + (e.label !== void 0 ? " q-breadcrumbs__el-icon--with-label" : "")
|
|
353
353
|
);
|
|
354
354
|
return () => {
|
|
355
|
-
const
|
|
356
|
-
return e.icon !== void 0 &&
|
|
357
|
-
|
|
355
|
+
const d = [];
|
|
356
|
+
return e.icon !== void 0 && d.push(
|
|
357
|
+
b(be, {
|
|
358
358
|
class: a.value,
|
|
359
359
|
name: e.icon
|
|
360
360
|
})
|
|
361
|
-
), e.label !== void 0 &&
|
|
361
|
+
), e.label !== void 0 && d.push(e.label), b(
|
|
362
362
|
l.value,
|
|
363
363
|
{ ...r.value },
|
|
364
|
-
ke(t.default,
|
|
364
|
+
ke(t.default, d)
|
|
365
365
|
);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
@@ -415,29 +415,29 @@ const mi = ["", !0], hi = re({
|
|
|
415
415
|
);
|
|
416
416
|
if (r.length === 0) return;
|
|
417
417
|
let a = 1;
|
|
418
|
-
const
|
|
418
|
+
const d = [], s = r.filter((h) => {
|
|
419
419
|
var m;
|
|
420
|
-
return ((m =
|
|
420
|
+
return ((m = h.type) == null ? void 0 : m.name) === "QBreadcrumbsEl";
|
|
421
421
|
}).length, c = t.separator !== void 0 ? t.separator : () => e.separator;
|
|
422
|
-
return r.forEach((
|
|
422
|
+
return r.forEach((h) => {
|
|
423
423
|
var m;
|
|
424
|
-
if (((m =
|
|
425
|
-
const v = a <
|
|
426
|
-
a++,
|
|
427
|
-
|
|
424
|
+
if (((m = h.type) == null ? void 0 : m.name) === "QBreadcrumbsEl") {
|
|
425
|
+
const v = a < s, y = h.props !== null && mi.includes(h.props.disable), E = (v === !0 ? "" : " q-breadcrumbs--last") + (y !== !0 && v === !0 ? i.value : "");
|
|
426
|
+
a++, d.push(
|
|
427
|
+
b("div", {
|
|
428
428
|
class: `flex items-center${E}`
|
|
429
|
-
}, [
|
|
430
|
-
), v === !0 &&
|
|
431
|
-
|
|
429
|
+
}, [h])
|
|
430
|
+
), v === !0 && d.push(
|
|
431
|
+
b("div", {
|
|
432
432
|
class: "q-breadcrumbs__separator" + n.value
|
|
433
433
|
}, c())
|
|
434
434
|
);
|
|
435
435
|
} else
|
|
436
|
-
|
|
437
|
-
}),
|
|
436
|
+
d.push(h);
|
|
437
|
+
}), b("div", {
|
|
438
438
|
class: "q-breadcrumbs"
|
|
439
439
|
}, [
|
|
440
|
-
|
|
440
|
+
b("div", { class: o.value }, d)
|
|
441
441
|
]);
|
|
442
442
|
};
|
|
443
443
|
}
|
|
@@ -466,21 +466,21 @@ const mi = ["", !0], hi = re({
|
|
|
466
466
|
"data-cy": m.dataCy,
|
|
467
467
|
class: "cursor-pointer text-h5",
|
|
468
468
|
color: m.color
|
|
469
|
-
}), i = f(() => t.activeColor || "primary"), r = f(() => t.separatorIcon || "chevron_right"), a = f(() => t.separatorSize || "2em"),
|
|
469
|
+
}), i = f(() => t.activeColor || "primary"), r = f(() => t.separatorIcon || "chevron_right"), a = f(() => t.separatorSize || "2em"), d = f(() => t.separatorColor || "primary"), s = f(() => ({
|
|
470
470
|
store: t.store,
|
|
471
471
|
route: t.route,
|
|
472
472
|
navStore: t.navStore || {}
|
|
473
473
|
})), c = f(() => {
|
|
474
474
|
const m = [];
|
|
475
475
|
return t.breadcrumbConfig.forEach((v) => {
|
|
476
|
-
if (!v.shouldRender(
|
|
476
|
+
if (!v.shouldRender(s.value))
|
|
477
477
|
return;
|
|
478
|
-
const y = v.getLabel ? v.getLabel(
|
|
478
|
+
const y = v.getLabel ? v.getLabel(s.value) : v.defaultLabel, E = v.getColor ? v.getColor(s.value) : "dark", S = {
|
|
479
479
|
name: v.routeName,
|
|
480
480
|
...v.getRouteParams && {
|
|
481
|
-
params: v.getRouteParams(
|
|
481
|
+
params: v.getRouteParams(s.value)
|
|
482
482
|
}
|
|
483
|
-
}, M = v.clearActions ? v.clearActions.map((B) => () => B(
|
|
483
|
+
}, M = v.clearActions ? v.clearActions.map((B) => () => B(s.value)) : [];
|
|
484
484
|
m.push({
|
|
485
485
|
label: y,
|
|
486
486
|
dataCy: v.dataCy,
|
|
@@ -489,7 +489,7 @@ const mi = ["", !0], hi = re({
|
|
|
489
489
|
clearActions: M
|
|
490
490
|
});
|
|
491
491
|
}), m;
|
|
492
|
-
}),
|
|
492
|
+
}), h = (m) => {
|
|
493
493
|
m.clearActions && m.clearActions.forEach((v) => v()), t.router.push(m.route);
|
|
494
494
|
};
|
|
495
495
|
return (m, v) => (Ce(), ft(hi, Bt({
|
|
@@ -500,13 +500,13 @@ const mi = ["", !0], hi = re({
|
|
|
500
500
|
ze(be, {
|
|
501
501
|
size: a.value,
|
|
502
502
|
name: r.value,
|
|
503
|
-
color:
|
|
503
|
+
color: d.value
|
|
504
504
|
}, null, 8, ["size", "name", "color"])
|
|
505
505
|
]),
|
|
506
506
|
default: _e(() => [
|
|
507
507
|
(Ce(!0), Tt(Tn, null, An(c.value, (y, E) => (Ce(), ft(fi, Bt({ key: E }, { ref_for: !0 }, n(y), {
|
|
508
508
|
label: y.label,
|
|
509
|
-
onClick: (S) =>
|
|
509
|
+
onClick: (S) => h(y)
|
|
510
510
|
}), null, 16, ["label", "onClick"]))), 128))
|
|
511
511
|
]),
|
|
512
512
|
_: 1
|
|
@@ -538,13 +538,13 @@ const pl = re({
|
|
|
538
538
|
},
|
|
539
539
|
setup(e) {
|
|
540
540
|
const { cSize: t, classes: l } = bi(e);
|
|
541
|
-
return () =>
|
|
541
|
+
return () => b("svg", {
|
|
542
542
|
class: l.value + " q-spinner-mat",
|
|
543
543
|
width: t.value,
|
|
544
544
|
height: t.value,
|
|
545
545
|
viewBox: "25 25 50 50"
|
|
546
546
|
}, [
|
|
547
|
-
|
|
547
|
+
b("circle", {
|
|
548
548
|
class: "path",
|
|
549
549
|
cx: "50",
|
|
550
550
|
cy: "50",
|
|
@@ -677,7 +677,7 @@ function Nl(e, t, l, o) {
|
|
|
677
677
|
const n = l.modifiers.color;
|
|
678
678
|
let i = l.modifiers.center;
|
|
679
679
|
i = i === !0 || o === !0;
|
|
680
|
-
const r = document.createElement("span"), a = document.createElement("span"),
|
|
680
|
+
const r = document.createElement("span"), a = document.createElement("span"), d = mt(e), { left: s, top: c, width: h, height: m } = t.getBoundingClientRect(), v = Math.sqrt(h * h + m * m), y = v / 2, E = `${(h - v) / 2}px`, S = i ? E : `${d.left - s - y}px`, M = `${(m - v) / 2}px`, B = i ? M : `${d.top - c - y}px`;
|
|
681
681
|
a.className = "q-ripple__inner", rl(a, {
|
|
682
682
|
height: `${v}px`,
|
|
683
683
|
width: `${v}px`,
|
|
@@ -810,19 +810,19 @@ const zi = {
|
|
|
810
810
|
function Vi(e) {
|
|
811
811
|
const t = Pt(e, xi), l = Wn(e), { hasRouterLink: o, hasLink: n, linkTag: i, linkAttrs: r, navigateOnClick: a } = bl({
|
|
812
812
|
fallbackTag: "button"
|
|
813
|
-
}),
|
|
813
|
+
}), d = f(() => {
|
|
814
814
|
const S = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
815
815
|
return e.padding !== void 0 ? Object.assign({}, S, {
|
|
816
816
|
padding: e.padding.split(/\s+/).map((M) => M in Kl ? Kl[M] + "px" : M).join(" "),
|
|
817
817
|
minWidth: "0",
|
|
818
818
|
minHeight: "0"
|
|
819
819
|
}) : S;
|
|
820
|
-
}),
|
|
820
|
+
}), s = f(
|
|
821
821
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
822
822
|
), c = f(
|
|
823
823
|
() => e.disable !== !0 && e.loading !== !0
|
|
824
|
-
),
|
|
825
|
-
const S = { tabindex:
|
|
824
|
+
), h = f(() => c.value === !0 ? e.tabindex || 0 : -1), m = f(() => _i(e, "standard")), v = f(() => {
|
|
825
|
+
const S = { tabindex: h.value };
|
|
826
826
|
return n.value === !0 ? Object.assign(S, r.value) : ki.includes(e.type) === !0 && (S.type = e.type), i.value === "a" ? (e.disable === !0 ? S["aria-disabled"] = "true" : S.href === void 0 && (S.role = "button"), o.value !== !0 && Ci.test(e.type) === !0 && (S.type = e.type)) : e.disable === !0 && (S.disabled = "", S["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(S, {
|
|
827
827
|
role: "progressbar",
|
|
828
828
|
"aria-valuemin": 0,
|
|
@@ -832,14 +832,14 @@ function Vi(e) {
|
|
|
832
832
|
}), y = f(() => {
|
|
833
833
|
let S;
|
|
834
834
|
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? S = `text-${e.textColor || e.color}` : S = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (S = `text-${e.textColor}`);
|
|
835
|
-
const M = e.round === !0 ? "round" : `rectangle${
|
|
835
|
+
const M = e.round === !0 ? "round" : `rectangle${s.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
836
836
|
return `q-btn--${m.value} q-btn--${M}` + (S !== void 0 ? " " + S : "") + (c.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
837
837
|
}), E = f(
|
|
838
838
|
() => l.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
839
839
|
);
|
|
840
840
|
return {
|
|
841
841
|
classes: y,
|
|
842
|
-
style:
|
|
842
|
+
style: d,
|
|
843
843
|
innerClasses: E,
|
|
844
844
|
attributes: v,
|
|
845
845
|
hasLink: n,
|
|
@@ -865,20 +865,20 @@ const Ql = re({
|
|
|
865
865
|
style: i,
|
|
866
866
|
innerClasses: r,
|
|
867
867
|
attributes: a,
|
|
868
|
-
hasLink:
|
|
869
|
-
linkTag:
|
|
868
|
+
hasLink: d,
|
|
869
|
+
linkTag: s,
|
|
870
870
|
navigateOnClick: c,
|
|
871
|
-
isActionable:
|
|
871
|
+
isActionable: h
|
|
872
872
|
} = Vi(e), m = V(null), v = V(null);
|
|
873
873
|
let y = null, E, S = null;
|
|
874
874
|
const M = f(
|
|
875
875
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
876
876
|
), B = f(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
877
|
-
keyCodes:
|
|
877
|
+
keyCodes: d.value === !0 ? [13, 32] : [13],
|
|
878
878
|
...e.ripple === !0 ? {} : e.ripple
|
|
879
879
|
}), q = f(() => ({ center: e.round })), P = f(() => {
|
|
880
|
-
const
|
|
881
|
-
return
|
|
880
|
+
const g = Math.max(0, Math.min(100, e.percentage));
|
|
881
|
+
return g > 0 ? { transition: "transform 0.6s", transform: `translateX(${g - 100}%)` } : {};
|
|
882
882
|
}), T = f(() => {
|
|
883
883
|
if (e.loading === !0)
|
|
884
884
|
return {
|
|
@@ -888,17 +888,17 @@ const Ql = re({
|
|
|
888
888
|
onKeydown: U,
|
|
889
889
|
onKeyup: U
|
|
890
890
|
};
|
|
891
|
-
if (
|
|
892
|
-
const
|
|
891
|
+
if (h.value === !0) {
|
|
892
|
+
const g = {
|
|
893
893
|
onClick: L,
|
|
894
894
|
onKeydown: F,
|
|
895
895
|
onMousedown: Y
|
|
896
896
|
};
|
|
897
897
|
if (o.$q.platform.has.touch === !0) {
|
|
898
898
|
const w = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
899
|
-
|
|
899
|
+
g[`onTouchstart${w}`] = W;
|
|
900
900
|
}
|
|
901
|
-
return
|
|
901
|
+
return g;
|
|
902
902
|
}
|
|
903
903
|
return {
|
|
904
904
|
// needed; especially for disabled <a> tags
|
|
@@ -911,13 +911,13 @@ const Ql = re({
|
|
|
911
911
|
...a.value,
|
|
912
912
|
...T.value
|
|
913
913
|
}));
|
|
914
|
-
function L(
|
|
914
|
+
function L(g) {
|
|
915
915
|
if (m.value !== null) {
|
|
916
|
-
if (
|
|
917
|
-
if (
|
|
916
|
+
if (g !== void 0) {
|
|
917
|
+
if (g.defaultPrevented === !0) return;
|
|
918
918
|
const w = document.activeElement;
|
|
919
919
|
if (e.type === "submit" && w !== document.body && m.value.contains(w) === !1 && w.contains(m.value) === !1) {
|
|
920
|
-
|
|
920
|
+
g.qAvoidFocus !== !0 && m.value.focus();
|
|
921
921
|
const R = () => {
|
|
922
922
|
var J;
|
|
923
923
|
document.removeEventListener("keydown", ie, !0), document.removeEventListener("keyup", R, he), (J = m.value) == null || J.removeEventListener("blur", R, he);
|
|
@@ -925,94 +925,94 @@ const Ql = re({
|
|
|
925
925
|
document.addEventListener("keydown", ie, !0), document.addEventListener("keyup", R, he), m.value.addEventListener("blur", R, he);
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
c(
|
|
928
|
+
c(g);
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
function F(
|
|
932
|
-
m.value !== null && (l("keydown",
|
|
931
|
+
function F(g) {
|
|
932
|
+
m.value !== null && (l("keydown", g), Fe(g, [13, 32]) === !0 && Ze !== m.value && (Ze !== null && $(), g.defaultPrevented !== !0 && (g.qAvoidFocus !== !0 && m.value.focus(), Ze = m.value, m.value.classList.add("q-btn--active"), document.addEventListener("keyup", X, !0), m.value.addEventListener("blur", X, he)), ie(g)));
|
|
933
933
|
}
|
|
934
|
-
function W(
|
|
935
|
-
m.value !== null && (l("touchstart",
|
|
934
|
+
function W(g) {
|
|
935
|
+
m.value !== null && (l("touchstart", g), g.defaultPrevented !== !0 && (Ge !== m.value && (Ge !== null && $(), Ge = m.value, y = g.target, y.addEventListener("touchcancel", X, he), y.addEventListener("touchend", X, he)), E = !0, S !== null && clearTimeout(S), S = setTimeout(() => {
|
|
936
936
|
S = null, E = !1;
|
|
937
937
|
}, 200)));
|
|
938
938
|
}
|
|
939
|
-
function Y(
|
|
940
|
-
m.value !== null && (
|
|
939
|
+
function Y(g) {
|
|
940
|
+
m.value !== null && (g.qSkipRipple = E === !0, l("mousedown", g), g.defaultPrevented !== !0 && Je !== m.value && (Je !== null && $(), Je = m.value, m.value.classList.add("q-btn--active"), document.addEventListener("mouseup", X, he)));
|
|
941
941
|
}
|
|
942
|
-
function X(
|
|
943
|
-
if (m.value !== null && !((
|
|
944
|
-
if ((
|
|
945
|
-
if (Ze === m.value && Fe(
|
|
946
|
-
const w = new MouseEvent("click",
|
|
947
|
-
w.qKeyEvent = !0,
|
|
942
|
+
function X(g) {
|
|
943
|
+
if (m.value !== null && !((g == null ? void 0 : g.type) === "blur" && document.activeElement === m.value)) {
|
|
944
|
+
if ((g == null ? void 0 : g.type) === "keyup") {
|
|
945
|
+
if (Ze === m.value && Fe(g, [13, 32]) === !0) {
|
|
946
|
+
const w = new MouseEvent("click", g);
|
|
947
|
+
w.qKeyEvent = !0, g.defaultPrevented === !0 && ve(w), g.cancelBubble === !0 && ye(w), m.value.dispatchEvent(w), ie(g), g.qKeyEvent = !0;
|
|
948
948
|
}
|
|
949
|
-
l("keyup",
|
|
949
|
+
l("keyup", g);
|
|
950
950
|
}
|
|
951
951
|
$();
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
function $(
|
|
954
|
+
function $(g) {
|
|
955
955
|
var R, J;
|
|
956
956
|
const w = v.value;
|
|
957
|
-
|
|
957
|
+
g !== !0 && (Ge === m.value || Je === m.value) && w !== null && w !== document.activeElement && (w.setAttribute("tabindex", -1), w.focus()), Ge === m.value && (y !== null && (y.removeEventListener("touchcancel", X, he), y.removeEventListener("touchend", X, he)), Ge = y = null), Je === m.value && (document.removeEventListener("mouseup", X, he), Je = null), Ze === m.value && (document.removeEventListener("keyup", X, !0), (R = m.value) == null || R.removeEventListener("blur", X, he), Ze = null), (J = m.value) == null || J.classList.remove("q-btn--active");
|
|
958
958
|
}
|
|
959
|
-
function U(
|
|
960
|
-
ie(
|
|
959
|
+
function U(g) {
|
|
960
|
+
ie(g), g.qSkipRipple = !0;
|
|
961
961
|
}
|
|
962
962
|
return de(() => {
|
|
963
963
|
$(!0);
|
|
964
964
|
}), Object.assign(o, {
|
|
965
|
-
click: (
|
|
966
|
-
|
|
965
|
+
click: (g) => {
|
|
966
|
+
h.value === !0 && L(g);
|
|
967
967
|
}
|
|
968
968
|
}), () => {
|
|
969
|
-
let
|
|
970
|
-
e.icon !== void 0 &&
|
|
971
|
-
|
|
969
|
+
let g = [];
|
|
970
|
+
e.icon !== void 0 && g.push(
|
|
971
|
+
b(be, {
|
|
972
972
|
name: e.icon,
|
|
973
973
|
left: e.stack !== !0 && M.value === !0,
|
|
974
974
|
role: "img"
|
|
975
975
|
})
|
|
976
|
-
), M.value === !0 &&
|
|
977
|
-
|
|
978
|
-
),
|
|
979
|
-
|
|
976
|
+
), M.value === !0 && g.push(
|
|
977
|
+
b("span", { class: "block" }, [e.label])
|
|
978
|
+
), g = ke(t.default, g), e.iconRight !== void 0 && e.round === !1 && g.push(
|
|
979
|
+
b(be, {
|
|
980
980
|
name: e.iconRight,
|
|
981
981
|
right: e.stack !== !0 && M.value === !0,
|
|
982
982
|
role: "img"
|
|
983
983
|
})
|
|
984
984
|
);
|
|
985
985
|
const w = [
|
|
986
|
-
|
|
986
|
+
b("span", {
|
|
987
987
|
class: "q-focus-helper",
|
|
988
988
|
ref: v
|
|
989
989
|
})
|
|
990
990
|
];
|
|
991
991
|
return e.loading === !0 && e.percentage !== void 0 && w.push(
|
|
992
|
-
|
|
992
|
+
b("span", {
|
|
993
993
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
994
994
|
}, [
|
|
995
|
-
|
|
995
|
+
b("span", {
|
|
996
996
|
class: "q-btn__progress-indicator fit block",
|
|
997
997
|
style: P.value
|
|
998
998
|
})
|
|
999
999
|
])
|
|
1000
1000
|
), w.push(
|
|
1001
|
-
|
|
1001
|
+
b("span", {
|
|
1002
1002
|
class: "q-btn__content text-center col items-center q-anchor--skip " + r.value
|
|
1003
|
-
},
|
|
1003
|
+
}, g)
|
|
1004
1004
|
), e.loading !== null && w.push(
|
|
1005
|
-
|
|
1005
|
+
b(vt, {
|
|
1006
1006
|
name: "q-transition--fade"
|
|
1007
1007
|
}, () => e.loading === !0 ? [
|
|
1008
|
-
|
|
1008
|
+
b("span", {
|
|
1009
1009
|
key: "loading",
|
|
1010
1010
|
class: "absolute-full flex flex-center"
|
|
1011
|
-
}, t.loading !== void 0 ? t.loading() : [
|
|
1011
|
+
}, t.loading !== void 0 ? t.loading() : [b(pl)])
|
|
1012
1012
|
] : null)
|
|
1013
1013
|
), Vt(
|
|
1014
|
-
|
|
1015
|
-
|
|
1014
|
+
b(
|
|
1015
|
+
s.value,
|
|
1016
1016
|
A.value,
|
|
1017
1017
|
w
|
|
1018
1018
|
),
|
|
@@ -1087,7 +1087,7 @@ function He(e, t) {
|
|
|
1087
1087
|
return f(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1088
1088
|
}
|
|
1089
1089
|
function Ai(e, t) {
|
|
1090
|
-
const l = V(null), o = f(() => e.disable === !0 ? null :
|
|
1090
|
+
const l = V(null), o = f(() => e.disable === !0 ? null : b("span", {
|
|
1091
1091
|
ref: l,
|
|
1092
1092
|
class: "no-outline",
|
|
1093
1093
|
tabindex: -1
|
|
@@ -1107,7 +1107,7 @@ const Yn = {
|
|
|
1107
1107
|
function Oi(e = {}) {
|
|
1108
1108
|
return (t, l, o) => {
|
|
1109
1109
|
t[l](
|
|
1110
|
-
|
|
1110
|
+
b("input", {
|
|
1111
1111
|
class: "hidden" + (o || ""),
|
|
1112
1112
|
...e.value
|
|
1113
1113
|
})
|
|
@@ -1152,7 +1152,7 @@ const Li = {
|
|
|
1152
1152
|
tabindex: [String, Number]
|
|
1153
1153
|
}, Pi = ["update:modelValue"];
|
|
1154
1154
|
function Ri(e, t) {
|
|
1155
|
-
const { props: l, slots: o, emit: n, proxy: i } = te(), { $q: r } = i, a = He(l, r),
|
|
1155
|
+
const { props: l, slots: o, emit: n, proxy: i } = te(), { $q: r } = i, a = He(l, r), d = V(null), { refocusTargetEl: s, refocusTarget: c } = Ai(l, d), h = Pt(l, Li), m = f(
|
|
1156
1156
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
1157
1157
|
), v = f(() => {
|
|
1158
1158
|
const $ = Ye(l.val);
|
|
@@ -1218,20 +1218,20 @@ function Ri(e, t) {
|
|
|
1218
1218
|
` q-${e}__native absolute q-ma-none q-pa-none`
|
|
1219
1219
|
);
|
|
1220
1220
|
const U = [
|
|
1221
|
-
|
|
1221
|
+
b("div", {
|
|
1222
1222
|
class: q.value,
|
|
1223
|
-
style:
|
|
1223
|
+
style: h.value,
|
|
1224
1224
|
"aria-hidden": "true"
|
|
1225
1225
|
}, $)
|
|
1226
1226
|
];
|
|
1227
|
-
|
|
1228
|
-
const
|
|
1229
|
-
return
|
|
1230
|
-
|
|
1227
|
+
s.value !== null && U.push(s.value);
|
|
1228
|
+
const g = l.label !== void 0 ? ke(o.default, [l.label]) : ge(o.default);
|
|
1229
|
+
return g !== void 0 && U.push(
|
|
1230
|
+
b("div", {
|
|
1231
1231
|
class: `q-${e}__label q-anchor--skip`
|
|
1232
|
-
},
|
|
1233
|
-
),
|
|
1234
|
-
ref:
|
|
1232
|
+
}, g)
|
|
1233
|
+
), b("div", {
|
|
1234
|
+
ref: d,
|
|
1235
1235
|
class: B.value,
|
|
1236
1236
|
...A.value,
|
|
1237
1237
|
onClick: L,
|
|
@@ -1240,20 +1240,20 @@ function Ri(e, t) {
|
|
|
1240
1240
|
}, U);
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
|
-
const Fi = () =>
|
|
1243
|
+
const Fi = () => b("div", {
|
|
1244
1244
|
key: "svg",
|
|
1245
1245
|
class: "q-checkbox__bg absolute"
|
|
1246
1246
|
}, [
|
|
1247
|
-
|
|
1247
|
+
b("svg", {
|
|
1248
1248
|
class: "q-checkbox__svg fit absolute-full",
|
|
1249
1249
|
viewBox: "0 0 24 24"
|
|
1250
1250
|
}, [
|
|
1251
|
-
|
|
1251
|
+
b("path", {
|
|
1252
1252
|
class: "q-checkbox__truthy",
|
|
1253
1253
|
fill: "none",
|
|
1254
1254
|
d: "M1.73,12.91 8.1,19.28 22.79,4.59"
|
|
1255
1255
|
}),
|
|
1256
|
-
|
|
1256
|
+
b("path", {
|
|
1257
1257
|
class: "q-checkbox__indet",
|
|
1258
1258
|
d: "M4,14H20V10H4"
|
|
1259
1259
|
})
|
|
@@ -1269,11 +1269,11 @@ const Fi = () => g("div", {
|
|
|
1269
1269
|
() => (o.value === !0 ? e.checkedIcon : n.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
1270
1270
|
);
|
|
1271
1271
|
return () => i.value !== null ? [
|
|
1272
|
-
|
|
1272
|
+
b("div", {
|
|
1273
1273
|
key: "icon",
|
|
1274
1274
|
class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
|
|
1275
1275
|
}, [
|
|
1276
|
-
|
|
1276
|
+
b(be, {
|
|
1277
1277
|
class: "q-checkbox__icon",
|
|
1278
1278
|
name: i.value
|
|
1279
1279
|
})
|
|
@@ -1291,20 +1291,20 @@ const Fi = () => g("div", {
|
|
|
1291
1291
|
],
|
|
1292
1292
|
setup(e) {
|
|
1293
1293
|
return () => [
|
|
1294
|
-
|
|
1294
|
+
b("div", {
|
|
1295
1295
|
class: e.store.scroll.vertical.barClass.value,
|
|
1296
1296
|
style: [e.barStyle, e.verticalBarStyle],
|
|
1297
1297
|
"aria-hidden": "true",
|
|
1298
1298
|
onMousedown: e.store.onVerticalMousedown
|
|
1299
1299
|
}),
|
|
1300
|
-
|
|
1300
|
+
b("div", {
|
|
1301
1301
|
class: e.store.scroll.horizontal.barClass.value,
|
|
1302
1302
|
style: [e.barStyle, e.horizontalBarStyle],
|
|
1303
1303
|
"aria-hidden": "true",
|
|
1304
1304
|
onMousedown: e.store.onHorizontalMousedown
|
|
1305
1305
|
}),
|
|
1306
1306
|
Vt(
|
|
1307
|
-
|
|
1307
|
+
b("div", {
|
|
1308
1308
|
ref: e.store.scroll.vertical.ref,
|
|
1309
1309
|
class: e.store.scroll.vertical.thumbClass.value,
|
|
1310
1310
|
style: e.store.scroll.vertical.style.value,
|
|
@@ -1313,7 +1313,7 @@ const Fi = () => g("div", {
|
|
|
1313
1313
|
e.store.thumbVertDir
|
|
1314
1314
|
),
|
|
1315
1315
|
Vt(
|
|
1316
|
-
|
|
1316
|
+
b("div", {
|
|
1317
1317
|
ref: e.store.scroll.horizontal.ref,
|
|
1318
1318
|
class: e.store.scroll.horizontal.thumbClass.value,
|
|
1319
1319
|
style: e.store.scroll.horizontal.style.value,
|
|
@@ -1451,43 +1451,43 @@ const Zn = typeof ResizeObserver < "u", Xl = Zn === !0 ? {} : {
|
|
|
1451
1451
|
emits: ["resize"],
|
|
1452
1452
|
setup(e, { emit: t }) {
|
|
1453
1453
|
let l = null, o, n = { width: -1, height: -1 };
|
|
1454
|
-
function i(
|
|
1455
|
-
|
|
1454
|
+
function i(d) {
|
|
1455
|
+
d === !0 || e.debounce === 0 || e.debounce === "0" ? r() : l === null && (l = setTimeout(r, e.debounce));
|
|
1456
1456
|
}
|
|
1457
1457
|
function r() {
|
|
1458
1458
|
if (l !== null && (clearTimeout(l), l = null), o) {
|
|
1459
|
-
const { offsetWidth:
|
|
1460
|
-
(
|
|
1459
|
+
const { offsetWidth: d, offsetHeight: s } = o;
|
|
1460
|
+
(d !== n.width || s !== n.height) && (n = { width: d, height: s }, t("resize", n));
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
const { proxy: a } = te();
|
|
1464
1464
|
if (a.trigger = i, Zn === !0) {
|
|
1465
|
-
let
|
|
1466
|
-
const
|
|
1467
|
-
o = a.$el.parentNode, o ? (
|
|
1468
|
-
|
|
1465
|
+
let d;
|
|
1466
|
+
const s = (c) => {
|
|
1467
|
+
o = a.$el.parentNode, o ? (d = new ResizeObserver(i), d.observe(o), r()) : c !== !0 && fe(() => {
|
|
1468
|
+
s(!0);
|
|
1469
1469
|
});
|
|
1470
1470
|
};
|
|
1471
1471
|
return qe(() => {
|
|
1472
|
-
|
|
1472
|
+
s();
|
|
1473
1473
|
}), de(() => {
|
|
1474
|
-
l !== null && clearTimeout(l),
|
|
1474
|
+
l !== null && clearTimeout(l), d !== void 0 && (d.disconnect !== void 0 ? d.disconnect() : o && d.unobserve(o));
|
|
1475
1475
|
}), Rt;
|
|
1476
1476
|
} else {
|
|
1477
|
-
let
|
|
1478
|
-
l !== null && (clearTimeout(l), l = null),
|
|
1479
|
-
},
|
|
1480
|
-
|
|
1477
|
+
let d = function() {
|
|
1478
|
+
l !== null && (clearTimeout(l), l = null), h !== void 0 && (h.removeEventListener !== void 0 && h.removeEventListener("resize", i, ae.passive), h = void 0);
|
|
1479
|
+
}, s = function() {
|
|
1480
|
+
d(), o != null && o.contentDocument && (h = o.contentDocument.defaultView, h.addEventListener("resize", i, ae.passive), r());
|
|
1481
1481
|
};
|
|
1482
1482
|
const { isHydrated: c } = Ki();
|
|
1483
|
-
let
|
|
1483
|
+
let h;
|
|
1484
1484
|
return qe(() => {
|
|
1485
1485
|
fe(() => {
|
|
1486
|
-
o = a.$el, o &&
|
|
1486
|
+
o = a.$el, o && s();
|
|
1487
1487
|
});
|
|
1488
|
-
}), de(
|
|
1488
|
+
}), de(d), () => {
|
|
1489
1489
|
if (c.value === !0)
|
|
1490
|
-
return
|
|
1490
|
+
return b("object", {
|
|
1491
1491
|
class: "q--avoid-card-border",
|
|
1492
1492
|
style: Xl.style,
|
|
1493
1493
|
tabindex: -1,
|
|
@@ -1495,7 +1495,7 @@ const Zn = typeof ResizeObserver < "u", Xl = Zn === !0 ? {} : {
|
|
|
1495
1495
|
type: "text/html",
|
|
1496
1496
|
data: Xl.url,
|
|
1497
1497
|
"aria-hidden": "true",
|
|
1498
|
-
onLoad:
|
|
1498
|
+
onLoad: s
|
|
1499
1499
|
});
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
@@ -1622,26 +1622,26 @@ const { passive: Zl } = ae, Yi = ["both", "horizontal", "vertical"], Gi = re({
|
|
|
1622
1622
|
};
|
|
1623
1623
|
let o = null, n, i;
|
|
1624
1624
|
Q(() => e.scrollTarget, () => {
|
|
1625
|
-
|
|
1625
|
+
d(), a();
|
|
1626
1626
|
});
|
|
1627
1627
|
function r() {
|
|
1628
1628
|
o == null || o();
|
|
1629
|
-
const
|
|
1630
|
-
top:
|
|
1629
|
+
const h = Math.max(0, yl(n)), m = Sl(n), v = {
|
|
1630
|
+
top: h - l.position.top,
|
|
1631
1631
|
left: m - l.position.left
|
|
1632
1632
|
};
|
|
1633
1633
|
if (e.axis === "vertical" && v.top === 0 || e.axis === "horizontal" && v.left === 0) return;
|
|
1634
1634
|
const y = Math.abs(v.top) >= Math.abs(v.left) ? v.top < 0 ? "up" : "down" : v.left < 0 ? "left" : "right";
|
|
1635
|
-
l.position = { top:
|
|
1635
|
+
l.position = { top: h, left: m }, l.directionChanged = l.direction !== y, l.delta = v, l.directionChanged === !0 && (l.direction = y, l.inflectionPoint = l.position), t("scroll", { ...l });
|
|
1636
1636
|
}
|
|
1637
1637
|
function a() {
|
|
1638
|
-
n = eo(i, e.scrollTarget), n.addEventListener("scroll",
|
|
1638
|
+
n = eo(i, e.scrollTarget), n.addEventListener("scroll", s, Zl), s(!0);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1641
|
-
n !== void 0 && (n.removeEventListener("scroll",
|
|
1640
|
+
function d() {
|
|
1641
|
+
n !== void 0 && (n.removeEventListener("scroll", s, Zl), n = void 0);
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1644
|
-
if (
|
|
1643
|
+
function s(h) {
|
|
1644
|
+
if (h === !0 || e.debounce === 0 || e.debounce === "0")
|
|
1645
1645
|
r();
|
|
1646
1646
|
else if (o === null) {
|
|
1647
1647
|
const [m, v] = e.debounce ? [setTimeout(r, e.debounce), clearTimeout] : [requestAnimationFrame(r), cancelAnimationFrame];
|
|
@@ -1654,9 +1654,9 @@ const { passive: Zl } = ae, Yi = ["both", "horizontal", "vertical"], Gi = re({
|
|
|
1654
1654
|
return Q(() => c.$q.lang.rtl, r), qe(() => {
|
|
1655
1655
|
i = c.$el.parentNode, a();
|
|
1656
1656
|
}), de(() => {
|
|
1657
|
-
o == null || o(),
|
|
1657
|
+
o == null || o(), d();
|
|
1658
1658
|
}), Object.assign(c, {
|
|
1659
|
-
trigger:
|
|
1659
|
+
trigger: s,
|
|
1660
1660
|
getPosition: () => l
|
|
1661
1661
|
}), Rt;
|
|
1662
1662
|
}
|
|
@@ -1687,14 +1687,14 @@ function no() {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
function Ut(e, t, l) {
|
|
1689
1689
|
const o = mt(e);
|
|
1690
|
-
let n, i = o.left - t.event.x, r = o.top - t.event.y, a = Math.abs(i),
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1690
|
+
let n, i = o.left - t.event.x, r = o.top - t.event.y, a = Math.abs(i), d = Math.abs(r);
|
|
1691
|
+
const s = t.direction;
|
|
1692
|
+
s.horizontal === !0 && s.vertical !== !0 ? n = i < 0 ? "left" : "right" : s.horizontal !== !0 && s.vertical === !0 ? n = r < 0 ? "up" : "down" : s.up === !0 && r < 0 ? (n = "up", a > d && (s.left === !0 && i < 0 ? n = "left" : s.right === !0 && i > 0 && (n = "right"))) : s.down === !0 && r > 0 ? (n = "down", a > d && (s.left === !0 && i < 0 ? n = "left" : s.right === !0 && i > 0 && (n = "right"))) : s.left === !0 && i < 0 ? (n = "left", a < d && (s.up === !0 && r < 0 ? n = "up" : s.down === !0 && r > 0 && (n = "down"))) : s.right === !0 && i > 0 && (n = "right", a < d && (s.up === !0 && r < 0 ? n = "up" : s.down === !0 && r > 0 && (n = "down")));
|
|
1693
1693
|
let c = !1;
|
|
1694
1694
|
if (n === void 0 && l === !1) {
|
|
1695
1695
|
if (t.event.isFirst === !0 || t.event.lastDir === void 0)
|
|
1696
1696
|
return {};
|
|
1697
|
-
n = t.event.lastDir, c = !0, n === "left" || n === "right" ? (o.left -= i, a = 0, i = 0) : (o.top -= r,
|
|
1697
|
+
n = t.event.lastDir, c = !0, n === "left" || n === "right" ? (o.left -= i, a = 0, i = 0) : (o.top -= r, d = 0, r = 0);
|
|
1698
1698
|
}
|
|
1699
1699
|
return {
|
|
1700
1700
|
synthetic: c,
|
|
@@ -1709,7 +1709,7 @@ function Ut(e, t, l) {
|
|
|
1709
1709
|
duration: Date.now() - t.event.time,
|
|
1710
1710
|
distance: {
|
|
1711
1711
|
x: a,
|
|
1712
|
-
y:
|
|
1712
|
+
y: d
|
|
1713
1713
|
},
|
|
1714
1714
|
offset: {
|
|
1715
1715
|
x: i,
|
|
@@ -1756,42 +1756,42 @@ const tn = $n(
|
|
|
1756
1756
|
start(i, r) {
|
|
1757
1757
|
if (ue.is.firefox === !0 && Kt(e, !0), n.lastEvt = i, r === !0 || l.stop === !0) {
|
|
1758
1758
|
if (n.direction.all !== !0 && (r !== !0 || n.modifiers.mouseAllDir !== !0 && n.modifiers.mousealldir !== !0)) {
|
|
1759
|
-
const
|
|
1760
|
-
i.defaultPrevented === !0 && ve(
|
|
1759
|
+
const s = i.type.indexOf("mouse") !== -1 ? new MouseEvent(i.type, i) : new TouchEvent(i.type, i);
|
|
1760
|
+
i.defaultPrevented === !0 && ve(s), i.cancelBubble === !0 && ye(s), Object.assign(s, {
|
|
1761
1761
|
qKeyEvent: i.qKeyEvent,
|
|
1762
1762
|
qClickOutside: i.qClickOutside,
|
|
1763
1763
|
qAnchorHandled: i.qAnchorHandled,
|
|
1764
1764
|
qClonedBy: i.qClonedBy === void 0 ? [n.uid] : i.qClonedBy.concat(n.uid)
|
|
1765
1765
|
}), n.initialEvent = {
|
|
1766
1766
|
target: i.target,
|
|
1767
|
-
event:
|
|
1767
|
+
event: s
|
|
1768
1768
|
};
|
|
1769
1769
|
}
|
|
1770
1770
|
ye(i);
|
|
1771
1771
|
}
|
|
1772
|
-
const { left: a, top:
|
|
1772
|
+
const { left: a, top: d } = mt(i);
|
|
1773
1773
|
n.event = {
|
|
1774
1774
|
x: a,
|
|
1775
|
-
y:
|
|
1775
|
+
y: d,
|
|
1776
1776
|
time: Date.now(),
|
|
1777
1777
|
mouse: r === !0,
|
|
1778
1778
|
detected: !1,
|
|
1779
1779
|
isFirst: !0,
|
|
1780
1780
|
isFinal: !1,
|
|
1781
1781
|
lastX: a,
|
|
1782
|
-
lastY:
|
|
1782
|
+
lastY: d
|
|
1783
1783
|
};
|
|
1784
1784
|
},
|
|
1785
1785
|
move(i) {
|
|
1786
1786
|
if (n.event === void 0) return;
|
|
1787
|
-
const r = mt(i), a = r.left - n.event.x,
|
|
1788
|
-
if (a === 0 &&
|
|
1787
|
+
const r = mt(i), a = r.left - n.event.x, d = r.top - n.event.y;
|
|
1788
|
+
if (a === 0 && d === 0) return;
|
|
1789
1789
|
n.lastEvt = i;
|
|
1790
|
-
const
|
|
1791
|
-
o(i,
|
|
1790
|
+
const s = n.event.mouse === !0, c = () => {
|
|
1791
|
+
o(i, s);
|
|
1792
1792
|
let v;
|
|
1793
|
-
l.preserveCursor !== !0 && l.preservecursor !== !0 && (v = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"),
|
|
1794
|
-
if (n.styleCleanup = void 0, v !== void 0 && (document.documentElement.style.cursor = v), document.body.classList.remove("non-selectable"),
|
|
1793
|
+
l.preserveCursor !== !0 && l.preservecursor !== !0 && (v = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), s === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), no(), n.styleCleanup = (y) => {
|
|
1794
|
+
if (n.styleCleanup = void 0, v !== void 0 && (document.documentElement.style.cursor = v), document.body.classList.remove("non-selectable"), s === !0) {
|
|
1795
1795
|
const E = () => {
|
|
1796
1796
|
document.body.classList.remove("no-pointer-events--children");
|
|
1797
1797
|
};
|
|
@@ -1807,12 +1807,12 @@ const tn = $n(
|
|
|
1807
1807
|
v !== void 0 && (n.handler(v) === !1 ? n.end(i) : (n.styleCleanup === void 0 && n.event.isFirst === !0 && c(), n.event.lastX = v.position.left, n.event.lastY = v.position.top, n.event.lastDir = y === !0 ? void 0 : v.direction, n.event.isFirst = !1));
|
|
1808
1808
|
return;
|
|
1809
1809
|
}
|
|
1810
|
-
if (n.direction.all === !0 ||
|
|
1810
|
+
if (n.direction.all === !0 || s === !0 && (n.modifiers.mouseAllDir === !0 || n.modifiers.mousealldir === !0)) {
|
|
1811
1811
|
c(), n.event.detected = !0, n.move(i);
|
|
1812
1812
|
return;
|
|
1813
1813
|
}
|
|
1814
|
-
const
|
|
1815
|
-
|
|
1814
|
+
const h = Math.abs(a), m = Math.abs(d);
|
|
1815
|
+
h !== m && (n.direction.horizontal === !0 && h > m || n.direction.vertical === !0 && h < m || n.direction.up === !0 && h < m && d < 0 || n.direction.down === !0 && h < m && d > 0 || n.direction.left === !0 && h > m && a < 0 || n.direction.right === !0 && h > m && a > 0 ? (n.event.detected = !0, n.move(i)) : n.end(i, !0));
|
|
1816
1816
|
},
|
|
1817
1817
|
end(i, r) {
|
|
1818
1818
|
var a;
|
|
@@ -1821,10 +1821,10 @@ const tn = $n(
|
|
|
1821
1821
|
(a = n.styleCleanup) == null || a.call(n), n.event.detected !== !0 && n.initialEvent !== void 0 && n.initialEvent.target.dispatchEvent(n.initialEvent.event);
|
|
1822
1822
|
else if (n.event.detected === !0) {
|
|
1823
1823
|
n.event.isFirst === !0 && n.handler(Ut(i === void 0 ? n.lastEvt : i, n).payload);
|
|
1824
|
-
const { payload:
|
|
1825
|
-
n.handler(
|
|
1824
|
+
const { payload: d } = Ut(i === void 0 ? n.lastEvt : i, n, !0), s = () => {
|
|
1825
|
+
n.handler(d);
|
|
1826
1826
|
};
|
|
1827
|
-
n.styleCleanup !== void 0 ? n.styleCleanup(
|
|
1827
|
+
n.styleCleanup !== void 0 ? n.styleCleanup(s) : s();
|
|
1828
1828
|
}
|
|
1829
1829
|
n.event = void 0, n.initialEvent = void 0, n.lastEvt = void 0;
|
|
1830
1830
|
}
|
|
@@ -1928,19 +1928,19 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
1928
1928
|
position: V(0),
|
|
1929
1929
|
size: V(0)
|
|
1930
1930
|
}
|
|
1931
|
-
}, { proxy:
|
|
1932
|
-
let c = null,
|
|
1931
|
+
}, { proxy: d } = te(), s = He(e, d.$q);
|
|
1932
|
+
let c = null, h;
|
|
1933
1933
|
const m = V(null), v = f(
|
|
1934
|
-
() => "q-scrollarea" + (
|
|
1934
|
+
() => "q-scrollarea" + (s.value === !0 ? " q-scrollarea--dark" : "")
|
|
1935
1935
|
);
|
|
1936
1936
|
Object.assign(r, {
|
|
1937
1937
|
verticalInner: f(() => r.vertical.value - e.verticalOffset[0] - e.verticalOffset[1]),
|
|
1938
1938
|
horizontalInner: f(() => r.horizontal.value - e.horizontalOffset[0] - e.horizontalOffset[1])
|
|
1939
1939
|
}), a.vertical.percentage = f(() => {
|
|
1940
|
-
const
|
|
1941
|
-
if (
|
|
1940
|
+
const g = a.vertical.size.value - r.vertical.value;
|
|
1941
|
+
if (g <= 0)
|
|
1942
1942
|
return 0;
|
|
1943
|
-
const w = rt(a.vertical.position.value /
|
|
1943
|
+
const w = rt(a.vertical.position.value / g, 0, 1);
|
|
1944
1944
|
return Math.round(w * 1e4) / 1e4;
|
|
1945
1945
|
}), a.vertical.thumbHidden = f(() => (e.visible === null ? i.value : e.visible) !== !0 && o.value === !1 && n.value === !1 || a.vertical.size.value <= r.vertical.value + 1), a.vertical.thumbStart = f(() => e.verticalOffset[0] + a.vertical.percentage.value * (r.verticalInner.value - a.vertical.thumbSize.value)), a.vertical.thumbSize = f(
|
|
1946
1946
|
() => Math.round(
|
|
@@ -1957,10 +1957,10 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
1957
1957
|
height: `${a.vertical.thumbSize.value}px`,
|
|
1958
1958
|
right: `${e.horizontalOffset[1]}px`
|
|
1959
1959
|
})), a.vertical.thumbClass = f(() => "q-scrollarea__thumb q-scrollarea__thumb--v absolute-right" + (a.vertical.thumbHidden.value === !0 ? " q-scrollarea__thumb--invisible" : "")), a.vertical.barClass = f(() => "q-scrollarea__bar q-scrollarea__bar--v absolute-right" + (a.vertical.thumbHidden.value === !0 ? " q-scrollarea__bar--invisible" : "")), a.horizontal.percentage = f(() => {
|
|
1960
|
-
const
|
|
1961
|
-
if (
|
|
1960
|
+
const g = a.horizontal.size.value - r.horizontal.value;
|
|
1961
|
+
if (g <= 0)
|
|
1962
1962
|
return 0;
|
|
1963
|
-
const w = rt(Math.abs(a.horizontal.position.value) /
|
|
1963
|
+
const w = rt(Math.abs(a.horizontal.position.value) / g, 0, 1);
|
|
1964
1964
|
return Math.round(w * 1e4) / 1e4;
|
|
1965
1965
|
}), a.horizontal.thumbHidden = f(() => (e.visible === null ? i.value : e.visible) !== !0 && o.value === !1 && n.value === !1 || a.horizontal.size.value <= r.horizontal.value + 1), a.horizontal.thumbStart = f(() => e.horizontalOffset[0] + a.horizontal.percentage.value * (r.horizontalInner.value - a.horizontal.thumbSize.value)), a.horizontal.thumbSize = f(
|
|
1966
1966
|
() => Math.round(
|
|
@@ -1973,66 +1973,66 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
1973
1973
|
), a.horizontal.style = f(() => ({
|
|
1974
1974
|
...e.thumbStyle,
|
|
1975
1975
|
...e.horizontalThumbStyle,
|
|
1976
|
-
[
|
|
1976
|
+
[d.$q.lang.rtl === !0 ? "right" : "left"]: `${a.horizontal.thumbStart.value}px`,
|
|
1977
1977
|
width: `${a.horizontal.thumbSize.value}px`,
|
|
1978
1978
|
bottom: `${e.verticalOffset[1]}px`
|
|
1979
1979
|
})), a.horizontal.thumbClass = f(() => "q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom" + (a.horizontal.thumbHidden.value === !0 ? " q-scrollarea__thumb--invisible" : "")), a.horizontal.barClass = f(() => "q-scrollarea__bar q-scrollarea__bar--h absolute-bottom" + (a.horizontal.thumbHidden.value === !0 ? " q-scrollarea__bar--invisible" : ""));
|
|
1980
1980
|
const y = f(() => a.vertical.thumbHidden.value === !0 && a.horizontal.thumbHidden.value === !0 ? e.contentStyle : e.contentActiveStyle);
|
|
1981
1981
|
function E() {
|
|
1982
|
-
const
|
|
1982
|
+
const g = {};
|
|
1983
1983
|
return nn.forEach((w) => {
|
|
1984
1984
|
const R = a[w];
|
|
1985
|
-
Object.assign(
|
|
1985
|
+
Object.assign(g, {
|
|
1986
1986
|
[w + "Position"]: R.position.value,
|
|
1987
1987
|
[w + "Percentage"]: R.percentage.value,
|
|
1988
1988
|
[w + "Size"]: R.size.value,
|
|
1989
1989
|
[w + "ContainerSize"]: r[w].value,
|
|
1990
1990
|
[w + "ContainerInnerSize"]: r[w + "Inner"].value
|
|
1991
1991
|
});
|
|
1992
|
-
}),
|
|
1992
|
+
}), g;
|
|
1993
1993
|
}
|
|
1994
1994
|
const S = xl(() => {
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1995
|
+
const g = E();
|
|
1996
|
+
g.ref = d, l("scroll", g);
|
|
1997
1997
|
}, 0);
|
|
1998
|
-
function M(
|
|
1999
|
-
if (nn.includes(
|
|
1998
|
+
function M(g, w, R) {
|
|
1999
|
+
if (nn.includes(g) === !1) {
|
|
2000
2000
|
console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");
|
|
2001
2001
|
return;
|
|
2002
2002
|
}
|
|
2003
|
-
(
|
|
2003
|
+
(g === "vertical" ? Gl : Qt)(m.value, w, R);
|
|
2004
2004
|
}
|
|
2005
|
-
function B({ height:
|
|
2005
|
+
function B({ height: g, width: w }) {
|
|
2006
2006
|
let R = !1;
|
|
2007
|
-
r.vertical.value !==
|
|
2007
|
+
r.vertical.value !== g && (r.vertical.value = g, R = !0), r.horizontal.value !== w && (r.horizontal.value = w, R = !0), R === !0 && L();
|
|
2008
2008
|
}
|
|
2009
|
-
function q({ position:
|
|
2009
|
+
function q({ position: g }) {
|
|
2010
2010
|
let w = !1;
|
|
2011
|
-
a.vertical.position.value !==
|
|
2011
|
+
a.vertical.position.value !== g.top && (a.vertical.position.value = g.top, w = !0), a.horizontal.position.value !== g.left && (a.horizontal.position.value = g.left, w = !0), w === !0 && L();
|
|
2012
2012
|
}
|
|
2013
|
-
function P({ height:
|
|
2014
|
-
a.horizontal.size.value !== w && (a.horizontal.size.value = w, L()), a.vertical.size.value !==
|
|
2013
|
+
function P({ height: g, width: w }) {
|
|
2014
|
+
a.horizontal.size.value !== w && (a.horizontal.size.value = w, L()), a.vertical.size.value !== g && (a.vertical.size.value = g, L());
|
|
2015
2015
|
}
|
|
2016
|
-
function T(
|
|
2016
|
+
function T(g, w) {
|
|
2017
2017
|
const R = a[w];
|
|
2018
|
-
if (
|
|
2018
|
+
if (g.isFirst === !0) {
|
|
2019
2019
|
if (R.thumbHidden.value === !0) return;
|
|
2020
|
-
|
|
2020
|
+
h = R.position.value, n.value = !0;
|
|
2021
2021
|
} else if (n.value !== !0)
|
|
2022
2022
|
return;
|
|
2023
|
-
|
|
2024
|
-
const J = Xt[w], _ = (R.size.value - r[w].value) / (r[w + "Inner"].value - R.thumbSize.value), I =
|
|
2023
|
+
g.isFinal === !0 && (n.value = !1);
|
|
2024
|
+
const J = Xt[w], _ = (R.size.value - r[w].value) / (r[w + "Inner"].value - R.thumbSize.value), I = g.distance[J.dist], le = h + (g.direction === J.dir ? 1 : -1) * I * _;
|
|
2025
2025
|
F(le, w);
|
|
2026
2026
|
}
|
|
2027
|
-
function A(
|
|
2027
|
+
function A(g, w) {
|
|
2028
2028
|
const R = a[w];
|
|
2029
2029
|
if (R.thumbHidden.value !== !0) {
|
|
2030
|
-
const J = w === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], _ =
|
|
2030
|
+
const J = w === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], _ = g[Xt[w].offset] - J, I = R.thumbStart.value - J;
|
|
2031
2031
|
if (_ < I || _ > I + R.thumbSize.value) {
|
|
2032
2032
|
const le = _ - R.thumbSize.value / 2, p = rt(le / (r[w + "Inner"].value - R.thumbSize.value), 0, 1);
|
|
2033
2033
|
F(p * Math.max(0, R.size.value - r[w].value), w);
|
|
2034
2034
|
}
|
|
2035
|
-
R.ref.value !== null && R.ref.value.dispatchEvent(new MouseEvent(
|
|
2035
|
+
R.ref.value !== null && R.ref.value.dispatchEvent(new MouseEvent(g.type, g));
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
2038
|
function L() {
|
|
@@ -2040,23 +2040,23 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
2040
2040
|
c = null, o.value = !1;
|
|
2041
2041
|
}, e.delay), e.onScroll !== void 0 && S();
|
|
2042
2042
|
}
|
|
2043
|
-
function F(
|
|
2044
|
-
m.value[Xt[w].scroll] =
|
|
2043
|
+
function F(g, w) {
|
|
2044
|
+
m.value[Xt[w].scroll] = g;
|
|
2045
2045
|
}
|
|
2046
2046
|
let W = null;
|
|
2047
2047
|
function Y() {
|
|
2048
2048
|
W !== null && clearTimeout(W), W = setTimeout(() => {
|
|
2049
2049
|
W = null, i.value = !0;
|
|
2050
|
-
},
|
|
2050
|
+
}, d.$q.platform.is.ios ? 50 : 0);
|
|
2051
2051
|
}
|
|
2052
2052
|
function X() {
|
|
2053
2053
|
W !== null && (clearTimeout(W), W = null), i.value = !1;
|
|
2054
2054
|
}
|
|
2055
2055
|
let $ = null;
|
|
2056
|
-
Q(() =>
|
|
2056
|
+
Q(() => d.$q.lang.rtl, (g) => {
|
|
2057
2057
|
m.value !== null && Qt(
|
|
2058
2058
|
m.value,
|
|
2059
|
-
Math.abs(a.horizontal.position.value) * (
|
|
2059
|
+
Math.abs(a.horizontal.position.value) * (g === !0 ? -1 : 1)
|
|
2060
2060
|
);
|
|
2061
2061
|
}), bt(() => {
|
|
2062
2062
|
$ = {
|
|
@@ -2065,9 +2065,9 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
2065
2065
|
};
|
|
2066
2066
|
}), hl(() => {
|
|
2067
2067
|
if ($ === null) return;
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
}), de(S.cancel), Object.assign(
|
|
2068
|
+
const g = m.value;
|
|
2069
|
+
g !== null && (Qt(g, $.left), Gl(g, $.top));
|
|
2070
|
+
}), de(S.cancel), Object.assign(d, {
|
|
2071
2071
|
getScrollTarget: () => m.value,
|
|
2072
2072
|
getScroll: E,
|
|
2073
2073
|
getScrollPosition: () => ({
|
|
@@ -2079,10 +2079,10 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
2079
2079
|
left: a.horizontal.percentage.value
|
|
2080
2080
|
}),
|
|
2081
2081
|
setScrollPosition: M,
|
|
2082
|
-
setScrollPercentage(
|
|
2082
|
+
setScrollPercentage(g, w, R) {
|
|
2083
2083
|
M(
|
|
2084
|
-
|
|
2085
|
-
w * (a[
|
|
2084
|
+
g,
|
|
2085
|
+
w * (a[g].size.value - r[g].value) * (g === "horizontal" && d.$q.lang.rtl === !0 ? -1 : 1),
|
|
2086
2086
|
R
|
|
2087
2087
|
);
|
|
2088
2088
|
}
|
|
@@ -2091,56 +2091,56 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
2091
2091
|
scroll: a,
|
|
2092
2092
|
thumbVertDir: [[
|
|
2093
2093
|
tn,
|
|
2094
|
-
(
|
|
2095
|
-
T(
|
|
2094
|
+
(g) => {
|
|
2095
|
+
T(g, "vertical");
|
|
2096
2096
|
},
|
|
2097
2097
|
void 0,
|
|
2098
2098
|
{ vertical: !0, ...on }
|
|
2099
2099
|
]],
|
|
2100
2100
|
thumbHorizDir: [[
|
|
2101
2101
|
tn,
|
|
2102
|
-
(
|
|
2103
|
-
T(
|
|
2102
|
+
(g) => {
|
|
2103
|
+
T(g, "horizontal");
|
|
2104
2104
|
},
|
|
2105
2105
|
void 0,
|
|
2106
2106
|
{ horizontal: !0, ...on }
|
|
2107
2107
|
]],
|
|
2108
|
-
onVerticalMousedown(
|
|
2109
|
-
A(
|
|
2108
|
+
onVerticalMousedown(g) {
|
|
2109
|
+
A(g, "vertical");
|
|
2110
2110
|
},
|
|
2111
|
-
onHorizontalMousedown(
|
|
2112
|
-
A(
|
|
2111
|
+
onHorizontalMousedown(g) {
|
|
2112
|
+
A(g, "horizontal");
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
|
-
return () =>
|
|
2115
|
+
return () => b("div", {
|
|
2116
2116
|
class: v.value,
|
|
2117
2117
|
onMouseenter: Y,
|
|
2118
2118
|
onMouseleave: X
|
|
2119
2119
|
}, [
|
|
2120
|
-
|
|
2120
|
+
b("div", {
|
|
2121
2121
|
ref: m,
|
|
2122
2122
|
class: "q-scrollarea__container scroll relative-position fit hide-scrollbar",
|
|
2123
2123
|
tabindex: e.tabindex !== void 0 ? e.tabindex : void 0
|
|
2124
2124
|
}, [
|
|
2125
|
-
|
|
2125
|
+
b("div", {
|
|
2126
2126
|
class: "q-scrollarea__content absolute",
|
|
2127
2127
|
style: y.value
|
|
2128
2128
|
}, ke(t.default, [
|
|
2129
|
-
|
|
2129
|
+
b(Yl, {
|
|
2130
2130
|
debounce: 0,
|
|
2131
2131
|
onResize: P
|
|
2132
2132
|
})
|
|
2133
2133
|
])),
|
|
2134
|
-
|
|
2134
|
+
b(Gi, {
|
|
2135
2135
|
axis: "both",
|
|
2136
2136
|
onScroll: q
|
|
2137
2137
|
})
|
|
2138
2138
|
]),
|
|
2139
|
-
|
|
2139
|
+
b(Yl, {
|
|
2140
2140
|
debounce: 0,
|
|
2141
2141
|
onResize: B
|
|
2142
2142
|
}),
|
|
2143
|
-
|
|
2143
|
+
b(Hi, {
|
|
2144
2144
|
store: U,
|
|
2145
2145
|
barStyle: e.barStyle,
|
|
2146
2146
|
verticalBarStyle: e.verticalBarStyle,
|
|
@@ -2164,7 +2164,7 @@ const nn = ["vertical", "horizontal"], Xt = {
|
|
|
2164
2164
|
const { proxy: { $q: l } } = te(), o = He(e, l), n = f(
|
|
2165
2165
|
() => "q-card" + (o.value === !0 ? " q-card--dark q-dark" : "") + (e.bordered === !0 ? " q-card--bordered" : "") + (e.square === !0 ? " q-card--square no-border-radius" : "") + (e.flat === !0 ? " q-card--flat no-shadow" : "")
|
|
2166
2166
|
);
|
|
2167
|
-
return () =>
|
|
2167
|
+
return () => b(e.tag, { class: n.value }, ge(t.default));
|
|
2168
2168
|
}
|
|
2169
2169
|
}), nr = {
|
|
2170
2170
|
/* SSR does not know about Element */
|
|
@@ -2186,11 +2186,11 @@ function ir({
|
|
|
2186
2186
|
}) {
|
|
2187
2187
|
const { props: o, proxy: n, emit: i } = te(), r = V(null);
|
|
2188
2188
|
let a = null;
|
|
2189
|
-
function
|
|
2189
|
+
function d(v) {
|
|
2190
2190
|
return r.value === null ? !1 : v === void 0 || v.touches === void 0 || v.touches.length <= 1;
|
|
2191
2191
|
}
|
|
2192
|
-
const
|
|
2193
|
-
l === void 0 && (Object.assign(
|
|
2192
|
+
const s = {};
|
|
2193
|
+
l === void 0 && (Object.assign(s, {
|
|
2194
2194
|
hide(v) {
|
|
2195
2195
|
n.hide(v);
|
|
2196
2196
|
},
|
|
@@ -2198,7 +2198,7 @@ function ir({
|
|
|
2198
2198
|
n.toggle(v), v.qAnchorHandled = !0;
|
|
2199
2199
|
},
|
|
2200
2200
|
toggleKey(v) {
|
|
2201
|
-
Fe(v, 13) === !0 &&
|
|
2201
|
+
Fe(v, 13) === !0 && s.toggle(v);
|
|
2202
2202
|
},
|
|
2203
2203
|
contextClick(v) {
|
|
2204
2204
|
n.hide(v), ve(v), fe(() => {
|
|
@@ -2207,10 +2207,10 @@ function ir({
|
|
|
2207
2207
|
},
|
|
2208
2208
|
prevent: ve,
|
|
2209
2209
|
mobileTouch(v) {
|
|
2210
|
-
if (
|
|
2210
|
+
if (s.mobileCleanup(v), d(v) !== !0) return;
|
|
2211
2211
|
n.hide(v), r.value.classList.add("non-selectable");
|
|
2212
2212
|
const y = v.target;
|
|
2213
|
-
$e(
|
|
2213
|
+
$e(s, "anchor", [
|
|
2214
2214
|
[y, "touchmove", "mobileCleanup", "passive"],
|
|
2215
2215
|
[y, "touchend", "mobileCleanup", "passive"],
|
|
2216
2216
|
[y, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -2233,12 +2233,12 @@ function ir({
|
|
|
2233
2233
|
] : y = [
|
|
2234
2234
|
[r.value, "click", "toggle", "passive"],
|
|
2235
2235
|
[r.value, "keyup", "toggleKey", "passive"]
|
|
2236
|
-
], $e(
|
|
2236
|
+
], $e(s, "anchor", y);
|
|
2237
2237
|
});
|
|
2238
2238
|
function c() {
|
|
2239
|
-
ct(
|
|
2239
|
+
ct(s, "anchor");
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function h(v) {
|
|
2242
2242
|
for (r.value = v; r.value.classList.contains("q-anchor--skip"); )
|
|
2243
2243
|
r.value = r.value.parentNode;
|
|
2244
2244
|
l();
|
|
@@ -2247,7 +2247,7 @@ function ir({
|
|
|
2247
2247
|
if (o.target === !1 || o.target === "" || n.$el.parentNode === null)
|
|
2248
2248
|
r.value = null;
|
|
2249
2249
|
else if (o.target === !0)
|
|
2250
|
-
|
|
2250
|
+
h(n.$el.parentNode);
|
|
2251
2251
|
else {
|
|
2252
2252
|
let v = o.target;
|
|
2253
2253
|
if (typeof o.target == "string")
|
|
@@ -2271,16 +2271,16 @@ function ir({
|
|
|
2271
2271
|
a !== null && clearTimeout(a), c();
|
|
2272
2272
|
}), {
|
|
2273
2273
|
anchorEl: r,
|
|
2274
|
-
canShow:
|
|
2275
|
-
anchorEvents:
|
|
2274
|
+
canShow: d,
|
|
2275
|
+
anchorEvents: s
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
2278
|
function rr(e, t) {
|
|
2279
2279
|
const l = V(null);
|
|
2280
2280
|
let o;
|
|
2281
|
-
function n(a,
|
|
2282
|
-
const
|
|
2283
|
-
a !== window && a[
|
|
2281
|
+
function n(a, d) {
|
|
2282
|
+
const s = `${d !== void 0 ? "add" : "remove"}EventListener`, c = d !== void 0 ? d : o;
|
|
2283
|
+
a !== window && a[s]("scroll", c, ae.passive), window[s]("scroll", c, ae.passive), o = d;
|
|
2284
2284
|
}
|
|
2285
2285
|
function i() {
|
|
2286
2286
|
l.value !== null && (n(l.value), l.value = null);
|
|
@@ -2319,41 +2319,41 @@ function ro({
|
|
|
2319
2319
|
processOnMount: i
|
|
2320
2320
|
// optional
|
|
2321
2321
|
}) {
|
|
2322
|
-
const r = te(), { props: a, emit:
|
|
2322
|
+
const r = te(), { props: a, emit: d, proxy: s } = r;
|
|
2323
2323
|
let c;
|
|
2324
|
-
function
|
|
2324
|
+
function h(B) {
|
|
2325
2325
|
e.value === !0 ? y(B) : m(B);
|
|
2326
2326
|
}
|
|
2327
2327
|
function m(B) {
|
|
2328
2328
|
if (a.disable === !0 || (B == null ? void 0 : B.qAnchorHandled) === !0 || t !== void 0 && t(B) !== !0) return;
|
|
2329
2329
|
const q = a["onUpdate:modelValue"] !== void 0;
|
|
2330
|
-
q === !0 && (
|
|
2330
|
+
q === !0 && (d("update:modelValue", !0), c = B, fe(() => {
|
|
2331
2331
|
c === B && (c = void 0);
|
|
2332
2332
|
})), (a.modelValue === null || q === !1) && v(B);
|
|
2333
2333
|
}
|
|
2334
2334
|
function v(B) {
|
|
2335
|
-
e.value !== !0 && (e.value = !0,
|
|
2335
|
+
e.value !== !0 && (e.value = !0, d("beforeShow", B), o !== void 0 ? o(B) : d("show", B));
|
|
2336
2336
|
}
|
|
2337
2337
|
function y(B) {
|
|
2338
2338
|
if (a.disable === !0) return;
|
|
2339
2339
|
const q = a["onUpdate:modelValue"] !== void 0;
|
|
2340
|
-
q === !0 && (
|
|
2340
|
+
q === !0 && (d("update:modelValue", !1), c = B, fe(() => {
|
|
2341
2341
|
c === B && (c = void 0);
|
|
2342
2342
|
})), (a.modelValue === null || q === !1) && E(B);
|
|
2343
2343
|
}
|
|
2344
2344
|
function E(B) {
|
|
2345
|
-
e.value !== !1 && (e.value = !1,
|
|
2345
|
+
e.value !== !1 && (e.value = !1, d("beforeHide", B), n !== void 0 ? n(B) : d("hide", B));
|
|
2346
2346
|
}
|
|
2347
2347
|
function S(B) {
|
|
2348
|
-
a.disable === !0 && B === !0 ? a["onUpdate:modelValue"] !== void 0 &&
|
|
2348
|
+
a.disable === !0 && B === !0 ? a["onUpdate:modelValue"] !== void 0 && d("update:modelValue", !1) : B === !0 !== e.value && (B === !0 ? v : E)(c);
|
|
2349
2349
|
}
|
|
2350
|
-
Q(() => a.modelValue, S), l !== void 0 && Fn(r) === !0 && Q(() =>
|
|
2350
|
+
Q(() => a.modelValue, S), l !== void 0 && Fn(r) === !0 && Q(() => s.$route.fullPath, () => {
|
|
2351
2351
|
l.value === !0 && e.value === !0 && y();
|
|
2352
2352
|
}), qe(() => {
|
|
2353
2353
|
S(a.modelValue);
|
|
2354
2354
|
});
|
|
2355
|
-
const M = { show: m, hide: y, toggle:
|
|
2356
|
-
return Object.assign(
|
|
2355
|
+
const M = { show: m, hide: y, toggle: h };
|
|
2356
|
+
return Object.assign(s, M), M;
|
|
2357
2357
|
}
|
|
2358
2358
|
let Le = [], ht = [];
|
|
2359
2359
|
function ao(e) {
|
|
@@ -2416,16 +2416,16 @@ function hr(e) {
|
|
|
2416
2416
|
function uo(e, t, l, o) {
|
|
2417
2417
|
const n = V(!1), i = V(!1);
|
|
2418
2418
|
let r = null;
|
|
2419
|
-
const a = {},
|
|
2420
|
-
function
|
|
2421
|
-
if (
|
|
2419
|
+
const a = {}, d = o === "dialog" && hr(e);
|
|
2420
|
+
function s(h) {
|
|
2421
|
+
if (h === !0) {
|
|
2422
2422
|
an(a), i.value = !0;
|
|
2423
2423
|
return;
|
|
2424
2424
|
}
|
|
2425
|
-
i.value = !1, n.value === !1 && (
|
|
2425
|
+
i.value = !1, n.value === !1 && (d === !1 && r === null && (r = dr(!1, o)), n.value = !0, dt.push(e.proxy), ar(a));
|
|
2426
2426
|
}
|
|
2427
|
-
function c(
|
|
2428
|
-
if (i.value = !1,
|
|
2427
|
+
function c(h) {
|
|
2428
|
+
if (i.value = !1, h !== !0) return;
|
|
2429
2429
|
an(a), n.value = !1;
|
|
2430
2430
|
const m = dt.indexOf(e.proxy);
|
|
2431
2431
|
m !== -1 && dt.splice(m, 1), r !== null && (fr(r), r = null);
|
|
@@ -2433,11 +2433,11 @@ function uo(e, t, l, o) {
|
|
|
2433
2433
|
return Wo(() => {
|
|
2434
2434
|
c(!0);
|
|
2435
2435
|
}), e.proxy.__qPortal = !0, gl(e.proxy, "contentEl", () => t.value), {
|
|
2436
|
-
showPortal:
|
|
2436
|
+
showPortal: s,
|
|
2437
2437
|
hidePortal: c,
|
|
2438
2438
|
portalIsActive: n,
|
|
2439
2439
|
portalIsAccessible: i,
|
|
2440
|
-
renderPortal: () =>
|
|
2440
|
+
renderPortal: () => d === !0 ? l() : n.value === !0 ? [b(Ko, { to: r }, b(mr, l))] : void 0
|
|
2441
2441
|
};
|
|
2442
2442
|
}
|
|
2443
2443
|
const so = {
|
|
@@ -2647,28 +2647,28 @@ function po(e, t = 0) {
|
|
|
2647
2647
|
anchorOrigin: i,
|
|
2648
2648
|
selfOrigin: r,
|
|
2649
2649
|
absoluteOffset: a,
|
|
2650
|
-
fit:
|
|
2651
|
-
cover:
|
|
2650
|
+
fit: d,
|
|
2651
|
+
cover: s,
|
|
2652
2652
|
maxHeight: c,
|
|
2653
|
-
maxWidth:
|
|
2653
|
+
maxWidth: h
|
|
2654
2654
|
} = e;
|
|
2655
2655
|
if (ue.is.ios === !0 && window.visualViewport !== void 0) {
|
|
2656
2656
|
const A = document.body.style, { offsetLeft: L, offsetTop: F } = window.visualViewport;
|
|
2657
2657
|
L !== cn && (A.setProperty("--q-pe-left", L + "px"), cn = L), F !== dn && (A.setProperty("--q-pe-top", F + "px"), dn = F);
|
|
2658
2658
|
}
|
|
2659
|
-
const { scrollLeft: m, scrollTop: v } = l, y = a === void 0 ? wr(n,
|
|
2659
|
+
const { scrollLeft: m, scrollTop: v } = l, y = a === void 0 ? wr(n, s === !0 ? [0, 0] : o) : xr(n, a, o);
|
|
2660
2660
|
Object.assign(l.style, {
|
|
2661
2661
|
top: 0,
|
|
2662
2662
|
left: 0,
|
|
2663
2663
|
minWidth: null,
|
|
2664
2664
|
minHeight: null,
|
|
2665
|
-
maxWidth:
|
|
2665
|
+
maxWidth: h,
|
|
2666
2666
|
maxHeight: c,
|
|
2667
2667
|
visibility: "visible"
|
|
2668
2668
|
});
|
|
2669
|
-
const { offsetWidth: E, offsetHeight: S } = l, { elWidth: M, elHeight: B } =
|
|
2670
|
-
let q = { maxWidth:
|
|
2671
|
-
(
|
|
2669
|
+
const { offsetWidth: E, offsetHeight: S } = l, { elWidth: M, elHeight: B } = d === !0 || s === !0 ? { elWidth: Math.max(y.width, E), elHeight: s === !0 ? Math.max(y.height, S) : S } : { elWidth: E, elHeight: S };
|
|
2670
|
+
let q = { maxWidth: h, maxHeight: c };
|
|
2671
|
+
(d === !0 || s === !0) && (q.minWidth = y.width + "px", s === !0 && (q.minHeight = y.height + "px")), Object.assign(l.style, q);
|
|
2672
2672
|
const P = kr(M, B);
|
|
2673
2673
|
let T = mn(y, P, i, r);
|
|
2674
2674
|
if (a === void 0 || o === void 0)
|
|
@@ -2695,13 +2695,13 @@ function po(e, t = 0) {
|
|
|
2695
2695
|
}, T.maxHeight !== void 0 && (q.maxHeight = T.maxHeight + "px", y.height > T.maxHeight && (q.minHeight = q.maxHeight)), T.maxWidth !== void 0 && (q.maxWidth = T.maxWidth + "px", y.width > T.maxWidth && (q.minWidth = q.maxWidth)), Object.assign(l.style, q), l.scrollTop !== v && (l.scrollTop = v), l.scrollLeft !== m && (l.scrollLeft = m);
|
|
2696
2696
|
}
|
|
2697
2697
|
function Yt(e, t, l, o, n) {
|
|
2698
|
-
const i = l.bottom, r = l.right, a = Ui(),
|
|
2699
|
-
if (e.top < 0 || e.top + i >
|
|
2698
|
+
const i = l.bottom, r = l.right, a = Ui(), d = window.innerHeight - a, s = document.body.clientWidth;
|
|
2699
|
+
if (e.top < 0 || e.top + i > d)
|
|
2700
2700
|
if (n.vertical === "center")
|
|
2701
|
-
e.top = t[o.vertical] >
|
|
2702
|
-
else if (t[o.vertical] >
|
|
2701
|
+
e.top = t[o.vertical] > d / 2 ? Math.max(0, d - i) : 0, e.maxHeight = Math.min(i, d);
|
|
2702
|
+
else if (t[o.vertical] > d / 2) {
|
|
2703
2703
|
const c = Math.min(
|
|
2704
|
-
|
|
2704
|
+
d,
|
|
2705
2705
|
o.vertical === "center" ? t.center : o.vertical === n.vertical ? t.bottom : t.top
|
|
2706
2706
|
);
|
|
2707
2707
|
e.maxHeight = Math.min(i, c), e.top = Math.max(0, c - i);
|
|
@@ -2709,13 +2709,13 @@ function Yt(e, t, l, o, n) {
|
|
|
2709
2709
|
e.top = Math.max(
|
|
2710
2710
|
0,
|
|
2711
2711
|
o.vertical === "center" ? t.center : o.vertical === n.vertical ? t.top : t.bottom
|
|
2712
|
-
), e.maxHeight = Math.min(i,
|
|
2713
|
-
if (e.left < 0 || e.left + r >
|
|
2714
|
-
if (e.maxWidth = Math.min(r,
|
|
2715
|
-
e.left = t[o.horizontal] >
|
|
2716
|
-
else if (t[o.horizontal] >
|
|
2712
|
+
), e.maxHeight = Math.min(i, d - e.top);
|
|
2713
|
+
if (e.left < 0 || e.left + r > s)
|
|
2714
|
+
if (e.maxWidth = Math.min(r, s), n.horizontal === "middle")
|
|
2715
|
+
e.left = t[o.horizontal] > s / 2 ? Math.max(0, s - r) : 0;
|
|
2716
|
+
else if (t[o.horizontal] > s / 2) {
|
|
2717
2717
|
const c = Math.min(
|
|
2718
|
-
|
|
2718
|
+
s,
|
|
2719
2719
|
o.horizontal === "middle" ? t.middle : o.horizontal === n.horizontal ? t.right : t.left
|
|
2720
2720
|
);
|
|
2721
2721
|
e.maxWidth = Math.min(r, c), e.left = Math.max(0, c - e.maxWidth);
|
|
@@ -2723,7 +2723,7 @@ function Yt(e, t, l, o, n) {
|
|
|
2723
2723
|
e.left = Math.max(
|
|
2724
2724
|
0,
|
|
2725
2725
|
o.horizontal === "middle" ? t.middle : o.horizontal === n.horizontal ? t.left : t.right
|
|
2726
|
-
), e.maxWidth = Math.min(r,
|
|
2726
|
+
), e.maxWidth = Math.min(r, s - e.left);
|
|
2727
2727
|
}
|
|
2728
2728
|
const yo = re({
|
|
2729
2729
|
name: "QMenu",
|
|
@@ -2773,7 +2773,7 @@ const yo = re({
|
|
|
2773
2773
|
],
|
|
2774
2774
|
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
2775
2775
|
let n = null, i, r, a;
|
|
2776
|
-
const
|
|
2776
|
+
const d = te(), { proxy: s } = d, { $q: c } = s, h = V(null), m = V(!1), v = f(
|
|
2777
2777
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
2778
2778
|
), y = He(e, c), { registerTick: E, removeTick: S } = fo(), { registerTimeout: M } = vo(), { transitionProps: B, transitionStyle: q } = co(e), { localScrollTarget: P, changeScrollEvent: T, unconfigureScrollTarget: A } = rr(e, D), { anchorEl: L, canShow: F } = ir({ showing: m }), { hide: W } = ro({
|
|
2779
2779
|
showing: m,
|
|
@@ -2782,20 +2782,20 @@ const yo = re({
|
|
|
2782
2782
|
handleHide: p,
|
|
2783
2783
|
hideOnRouteChange: v,
|
|
2784
2784
|
processOnMount: !0
|
|
2785
|
-
}), { showPortal: Y, hidePortal: X, renderPortal: $ } = uo(
|
|
2785
|
+
}), { showPortal: Y, hidePortal: X, renderPortal: $ } = uo(d, h, ee, "menu"), U = {
|
|
2786
2786
|
anchorEl: L,
|
|
2787
|
-
innerRef:
|
|
2787
|
+
innerRef: h,
|
|
2788
2788
|
onClickOutside(x) {
|
|
2789
2789
|
if (e.persistent !== !0 && m.value === !0)
|
|
2790
2790
|
return W(x), // always prevent touch event
|
|
2791
2791
|
(x.type === "touchstart" || x.target.classList.contains("q-dialog__backdrop")) && ie(x), !0;
|
|
2792
2792
|
}
|
|
2793
|
-
},
|
|
2793
|
+
}, g = f(
|
|
2794
2794
|
() => vn(
|
|
2795
2795
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
2796
2796
|
c.lang.rtl
|
|
2797
2797
|
)
|
|
2798
|
-
), w = f(() => e.cover === !0 ?
|
|
2798
|
+
), w = f(() => e.cover === !0 ? g.value : vn(e.self || "top start", c.lang.rtl)), R = f(
|
|
2799
2799
|
() => (e.square === !0 ? " q-menu--square" : "") + (y.value === !0 ? " q-menu--dark q-dark" : "")
|
|
2800
2800
|
), J = f(() => e.autoClose === !0 ? { onClick: O } : {}), _ = f(
|
|
2801
2801
|
() => m.value === !0 && e.persistent !== !0
|
|
@@ -2805,7 +2805,7 @@ const yo = re({
|
|
|
2805
2805
|
});
|
|
2806
2806
|
function I() {
|
|
2807
2807
|
kl(() => {
|
|
2808
|
-
let x =
|
|
2808
|
+
let x = h.value;
|
|
2809
2809
|
x && x.contains(document.activeElement) !== !0 && (x = x.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || x.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || x.querySelector("[autofocus], [data-autofocus]") || x, x.focus({ preventScroll: !0 }));
|
|
2810
2810
|
});
|
|
2811
2811
|
}
|
|
@@ -2823,7 +2823,7 @@ const yo = re({
|
|
|
2823
2823
|
)), e.noFocus !== !0 && document.activeElement.blur(), E(() => {
|
|
2824
2824
|
H(), e.noFocus !== !0 && I();
|
|
2825
2825
|
}), M(() => {
|
|
2826
|
-
c.platform.is.ios === !0 && (a = e.autoClose,
|
|
2826
|
+
c.platform.is.ios === !0 && (a = e.autoClose, h.value.click()), H(), Y(!0), l("show", x);
|
|
2827
2827
|
}, e.transitionDuration);
|
|
2828
2828
|
}
|
|
2829
2829
|
function p(x) {
|
|
@@ -2839,20 +2839,20 @@ const yo = re({
|
|
|
2839
2839
|
(L.value !== null || e.scrollTarget !== void 0) && (P.value = eo(L.value, e.scrollTarget), T(P.value, H));
|
|
2840
2840
|
}
|
|
2841
2841
|
function O(x) {
|
|
2842
|
-
a !== !0 ? (vr(
|
|
2842
|
+
a !== !0 ? (vr(s, x), l("click", x)) : a = !1;
|
|
2843
2843
|
}
|
|
2844
2844
|
function N(x) {
|
|
2845
|
-
_.value === !0 && e.noFocus !== !0 && Kn(
|
|
2845
|
+
_.value === !0 && e.noFocus !== !0 && Kn(h.value, x.target) !== !0 && I();
|
|
2846
2846
|
}
|
|
2847
2847
|
function j(x) {
|
|
2848
2848
|
e.noEscDismiss !== !0 && (l("escapeKey"), W(x));
|
|
2849
2849
|
}
|
|
2850
2850
|
function H() {
|
|
2851
2851
|
po({
|
|
2852
|
-
targetEl:
|
|
2852
|
+
targetEl: h.value,
|
|
2853
2853
|
offset: e.offset,
|
|
2854
2854
|
anchorEl: L.value,
|
|
2855
|
-
anchorOrigin:
|
|
2855
|
+
anchorOrigin: g.value,
|
|
2856
2856
|
selfOrigin: w.value,
|
|
2857
2857
|
absoluteOffset: i,
|
|
2858
2858
|
fit: e.fit,
|
|
@@ -2862,13 +2862,13 @@ const yo = re({
|
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
2864
|
function ee() {
|
|
2865
|
-
return
|
|
2865
|
+
return b(
|
|
2866
2866
|
vt,
|
|
2867
2867
|
B.value,
|
|
2868
|
-
() => m.value === !0 ?
|
|
2868
|
+
() => m.value === !0 ? b("div", {
|
|
2869
2869
|
role: "menu",
|
|
2870
2870
|
...o,
|
|
2871
|
-
ref:
|
|
2871
|
+
ref: h,
|
|
2872
2872
|
tabindex: -1,
|
|
2873
2873
|
class: [
|
|
2874
2874
|
"q-menu q-position-engine scroll" + R.value,
|
|
@@ -2882,7 +2882,7 @@ const yo = re({
|
|
|
2882
2882
|
}, ge(t.default)) : null
|
|
2883
2883
|
);
|
|
2884
2884
|
}
|
|
2885
|
-
return de(k), Object.assign(
|
|
2885
|
+
return de(k), Object.assign(s, { focus: I, updatePosition: H }), $;
|
|
2886
2886
|
}
|
|
2887
2887
|
});
|
|
2888
2888
|
let Gt, Ct = 0;
|
|
@@ -3000,10 +3000,10 @@ const pn = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, yn = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
3000
3000
|
function Ar(e, t) {
|
|
3001
3001
|
const { props: l, proxy: o } = te(), n = V(!1), i = V(null), r = V(!1);
|
|
3002
3002
|
Vr({ validate: E, resetValidation: y });
|
|
3003
|
-
let a = 0,
|
|
3004
|
-
const
|
|
3003
|
+
let a = 0, d;
|
|
3004
|
+
const s = f(
|
|
3005
3005
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
3006
|
-
), c = f(() => l.disable !== !0 &&
|
|
3006
|
+
), c = f(() => l.disable !== !0 && s.value === !0 && t.value === !1), h = f(
|
|
3007
3007
|
() => l.error === !0 || n.value === !0
|
|
3008
3008
|
), m = f(() => typeof l.errorMessage == "string" && l.errorMessage.length !== 0 ? l.errorMessage : i.value);
|
|
3009
3009
|
Q(() => l.modelValue, () => {
|
|
@@ -3013,7 +3013,7 @@ function Ar(e, t) {
|
|
|
3013
3013
|
l.lazyRules !== "ondemand" && c.value === !0 && r.value === !0 && S();
|
|
3014
3014
|
}
|
|
3015
3015
|
Q(() => l.reactiveRules, (M) => {
|
|
3016
|
-
M === !0 ?
|
|
3016
|
+
M === !0 ? d === void 0 && (d = Q(() => l.rules, v, { immediate: !0, deep: !0 })) : d !== void 0 && (d(), d = void 0);
|
|
3017
3017
|
}, { immediate: !0 }), Q(() => l.lazyRules, v), Q(e, (M) => {
|
|
3018
3018
|
M === !0 ? r.value = !0 : c.value === !0 && l.lazyRules !== "ondemand" && S();
|
|
3019
3019
|
});
|
|
@@ -3021,7 +3021,7 @@ function Ar(e, t) {
|
|
|
3021
3021
|
a++, t.value = !1, r.value = !1, n.value = !1, i.value = null, S.cancel();
|
|
3022
3022
|
}
|
|
3023
3023
|
function E(M = l.modelValue) {
|
|
3024
|
-
if (l.disable === !0 ||
|
|
3024
|
+
if (l.disable === !0 || s.value === !1)
|
|
3025
3025
|
return !0;
|
|
3026
3026
|
const B = ++a, q = t.value !== !0 ? () => {
|
|
3027
3027
|
r.value = !0;
|
|
@@ -3048,11 +3048,11 @@ function Ar(e, t) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
const S = xl(E, 0);
|
|
3050
3050
|
return de(() => {
|
|
3051
|
-
|
|
3052
|
-
}), Object.assign(o, { resetValidation: y, validate: E }), gl(o, "hasError", () =>
|
|
3051
|
+
d == null || d(), S.cancel();
|
|
3052
|
+
}), Object.assign(o, { resetValidation: y, validate: E }), gl(o, "hasError", () => h.value), {
|
|
3053
3053
|
isDirtyModel: r,
|
|
3054
|
-
hasRules:
|
|
3055
|
-
hasError:
|
|
3054
|
+
hasRules: s,
|
|
3055
|
+
hasError: h,
|
|
3056
3056
|
errorMessage: m,
|
|
3057
3057
|
validate: E,
|
|
3058
3058
|
resetValidation: y
|
|
@@ -3157,13 +3157,13 @@ function xo(e) {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
}));
|
|
3159
3159
|
const {
|
|
3160
|
-
isDirtyModel:
|
|
3161
|
-
hasRules:
|
|
3160
|
+
isDirtyModel: d,
|
|
3161
|
+
hasRules: s,
|
|
3162
3162
|
hasError: c,
|
|
3163
|
-
errorMessage:
|
|
3163
|
+
errorMessage: h,
|
|
3164
3164
|
resetValidation: m
|
|
3165
3165
|
} = Ar(e.focused, e.innerLoading), v = e.floatingLabel !== void 0 ? f(() => t.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : f(() => t.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), y = f(
|
|
3166
|
-
() => t.bottomSlots === !0 || t.hint !== void 0 ||
|
|
3166
|
+
() => t.bottomSlots === !0 || t.hint !== void 0 || s.value === !0 || t.counter === !0 || t.error !== null
|
|
3167
3167
|
), E = f(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), S = f(
|
|
3168
3168
|
() => `q-field row no-wrap items-start q-field--${E.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (v.value === !0 ? " q-field--float" : "") + (B.value === !0 ? " q-field--labeled" : "") + (t.dense === !0 ? " q-field--dense" : "") + (t.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (c.value === !0 ? " q-field--error" : "") + (c.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (t.hideBottomSpace !== !0 && y.value === !0 ? " q-field--with-bottom" : "") + (t.disable === !0 ? " q-field--disabled" : t.readonly === !0 ? " q-field--readonly" : "")
|
|
3169
3169
|
), M = f(
|
|
@@ -3208,8 +3208,8 @@ function xo(e) {
|
|
|
3208
3208
|
function X(_) {
|
|
3209
3209
|
var I;
|
|
3210
3210
|
ie(_), r.platform.is.mobile !== !0 ? (((I = e.targetRef) == null ? void 0 : I.value) || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), t.type === "file" && (e.inputRef.value.value = null), l("update:modelValue", null), e.changeEvent === !0 && l("change", null), l("clear", t.modelValue), fe(() => {
|
|
3211
|
-
const le =
|
|
3212
|
-
m(),
|
|
3211
|
+
const le = d.value;
|
|
3212
|
+
m(), d.value = le;
|
|
3213
3213
|
});
|
|
3214
3214
|
}
|
|
3215
3215
|
function $(_) {
|
|
@@ -3218,27 +3218,27 @@ function xo(e) {
|
|
|
3218
3218
|
function U() {
|
|
3219
3219
|
const _ = [];
|
|
3220
3220
|
return o.prepend !== void 0 && _.push(
|
|
3221
|
-
|
|
3221
|
+
b("div", {
|
|
3222
3222
|
class: "q-field__prepend q-field__marginal row no-wrap items-center",
|
|
3223
3223
|
key: "prepend",
|
|
3224
3224
|
onClick: ve
|
|
3225
3225
|
}, o.prepend())
|
|
3226
3226
|
), _.push(
|
|
3227
|
-
|
|
3227
|
+
b("div", {
|
|
3228
3228
|
class: "q-field__control-container col relative-position row no-wrap q-anchor--skip"
|
|
3229
|
-
},
|
|
3229
|
+
}, g())
|
|
3230
3230
|
), c.value === !0 && t.noErrorIcon === !1 && _.push(
|
|
3231
3231
|
R("error", [
|
|
3232
|
-
|
|
3232
|
+
b(be, { name: r.iconSet.field.error, color: "negative" })
|
|
3233
3233
|
])
|
|
3234
3234
|
), t.loading === !0 || e.innerLoading.value === !0 ? _.push(
|
|
3235
3235
|
R(
|
|
3236
3236
|
"inner-loading-append",
|
|
3237
|
-
o.loading !== void 0 ? o.loading() : [
|
|
3237
|
+
o.loading !== void 0 ? o.loading() : [b(pl, { color: t.color })]
|
|
3238
3238
|
)
|
|
3239
3239
|
) : t.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && _.push(
|
|
3240
3240
|
R("inner-clearable-append", [
|
|
3241
|
-
|
|
3241
|
+
b(be, {
|
|
3242
3242
|
class: "q-field__focusable-action",
|
|
3243
3243
|
name: t.clearIcon || r.iconSet.field.clear,
|
|
3244
3244
|
tabindex: 0,
|
|
@@ -3250,7 +3250,7 @@ function xo(e) {
|
|
|
3250
3250
|
})
|
|
3251
3251
|
])
|
|
3252
3252
|
), o.append !== void 0 && _.push(
|
|
3253
|
-
|
|
3253
|
+
b("div", {
|
|
3254
3254
|
class: "q-field__append q-field__marginal row no-wrap items-center",
|
|
3255
3255
|
key: "append",
|
|
3256
3256
|
onClick: ve
|
|
@@ -3261,16 +3261,16 @@ function xo(e) {
|
|
|
3261
3261
|
e.getControlChild()
|
|
3262
3262
|
), _;
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3264
|
+
function g() {
|
|
3265
3265
|
const _ = [];
|
|
3266
3266
|
return t.prefix !== void 0 && t.prefix !== null && _.push(
|
|
3267
|
-
|
|
3267
|
+
b("div", {
|
|
3268
3268
|
class: "q-field__prefix no-pointer-events row items-center"
|
|
3269
3269
|
}, t.prefix)
|
|
3270
3270
|
), e.getShadowControl !== void 0 && e.hasShadow.value === !0 && _.push(
|
|
3271
3271
|
e.getShadowControl()
|
|
3272
3272
|
), e.getControl !== void 0 ? _.push(e.getControl()) : o.rawControl !== void 0 ? _.push(o.rawControl()) : o.control !== void 0 && _.push(
|
|
3273
|
-
|
|
3273
|
+
b("div", {
|
|
3274
3274
|
ref: e.targetRef,
|
|
3275
3275
|
class: "q-field__native row",
|
|
3276
3276
|
tabindex: -1,
|
|
@@ -3278,36 +3278,36 @@ function xo(e) {
|
|
|
3278
3278
|
"data-autofocus": t.autofocus === !0 || void 0
|
|
3279
3279
|
}, o.control(P.value))
|
|
3280
3280
|
), B.value === !0 && _.push(
|
|
3281
|
-
|
|
3281
|
+
b("div", {
|
|
3282
3282
|
class: q.value
|
|
3283
3283
|
}, ge(o.label, t.label))
|
|
3284
3284
|
), t.suffix !== void 0 && t.suffix !== null && _.push(
|
|
3285
|
-
|
|
3285
|
+
b("div", {
|
|
3286
3286
|
class: "q-field__suffix no-pointer-events row items-center"
|
|
3287
3287
|
}, t.suffix)
|
|
3288
3288
|
), _.concat(ge(o.default));
|
|
3289
3289
|
}
|
|
3290
3290
|
function w() {
|
|
3291
3291
|
let _, I;
|
|
3292
|
-
c.value === !0 ?
|
|
3292
|
+
c.value === !0 ? h.value !== null ? (_ = [b("div", { role: "alert" }, h.value)], I = `q--slot-error-${h.value}`) : (_ = ge(o.error), I = "q--slot-error") : (t.hideHint !== !0 || e.focused.value === !0) && (t.hint !== void 0 ? (_ = [b("div", t.hint)], I = `q--slot-hint-${t.hint}`) : (_ = ge(o.hint), I = "q--slot-hint"));
|
|
3293
3293
|
const le = t.counter === !0 || o.counter !== void 0;
|
|
3294
3294
|
if (t.hideBottomSpace === !0 && le === !1 && _ === void 0) return;
|
|
3295
|
-
const p =
|
|
3295
|
+
const p = b("div", {
|
|
3296
3296
|
key: I,
|
|
3297
3297
|
class: "q-field__messages col"
|
|
3298
3298
|
}, _);
|
|
3299
|
-
return
|
|
3299
|
+
return b("div", {
|
|
3300
3300
|
class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
3301
3301
|
onClick: ve
|
|
3302
3302
|
}, [
|
|
3303
|
-
t.hideBottomSpace === !0 ? p :
|
|
3304
|
-
le === !0 ?
|
|
3303
|
+
t.hideBottomSpace === !0 ? p : b(vt, { name: "q-transition--field-message" }, () => p),
|
|
3304
|
+
le === !0 ? b("div", {
|
|
3305
3305
|
class: "q-field__counter"
|
|
3306
3306
|
}, o.counter !== void 0 ? o.counter() : e.computedCounter.value) : null
|
|
3307
3307
|
]);
|
|
3308
3308
|
}
|
|
3309
3309
|
function R(_, I) {
|
|
3310
|
-
return I === null ? null :
|
|
3310
|
+
return I === null ? null : b("div", {
|
|
3311
3311
|
key: _,
|
|
3312
3312
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
3313
3313
|
}, I);
|
|
@@ -3327,7 +3327,7 @@ function xo(e) {
|
|
|
3327
3327
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
3328
3328
|
...T.value
|
|
3329
3329
|
} : T.value;
|
|
3330
|
-
return
|
|
3330
|
+
return b(e.tag.value, {
|
|
3331
3331
|
ref: e.rootRef,
|
|
3332
3332
|
class: [
|
|
3333
3333
|
S.value,
|
|
@@ -3336,14 +3336,14 @@ function xo(e) {
|
|
|
3336
3336
|
style: n.style,
|
|
3337
3337
|
...I
|
|
3338
3338
|
}, [
|
|
3339
|
-
o.before !== void 0 ?
|
|
3339
|
+
o.before !== void 0 ? b("div", {
|
|
3340
3340
|
class: "q-field__before q-field__marginal row no-wrap items-center",
|
|
3341
3341
|
onClick: ve
|
|
3342
3342
|
}, o.before()) : null,
|
|
3343
|
-
|
|
3343
|
+
b("div", {
|
|
3344
3344
|
class: "q-field__inner relative-position col self-stretch"
|
|
3345
3345
|
}, [
|
|
3346
|
-
|
|
3346
|
+
b("div", {
|
|
3347
3347
|
ref: e.controlRef,
|
|
3348
3348
|
class: M.value,
|
|
3349
3349
|
tabindex: -1,
|
|
@@ -3351,7 +3351,7 @@ function xo(e) {
|
|
|
3351
3351
|
}, U()),
|
|
3352
3352
|
y.value === !0 ? w() : null
|
|
3353
3353
|
]),
|
|
3354
|
-
o.after !== void 0 ?
|
|
3354
|
+
o.after !== void 0 ? b("div", {
|
|
3355
3355
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
3356
3356
|
onClick: ve
|
|
3357
3357
|
}, o.after()) : null
|
|
@@ -3415,12 +3415,12 @@ const $r = re({
|
|
|
3415
3415
|
},
|
|
3416
3416
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
3417
3417
|
setup(e, { slots: t, emit: l }) {
|
|
3418
|
-
const { proxy: { $q: o } } = te(), n = He(e, o), i = Pt(e, Lr), r = f(() => e.selected === !0 || e.icon !== void 0), a = f(() => e.selected === !0 ? e.iconSelected || o.iconSet.chip.selected : e.icon),
|
|
3418
|
+
const { proxy: { $q: o } } = te(), n = He(e, o), i = Pt(e, Lr), r = f(() => e.selected === !0 || e.icon !== void 0), a = f(() => e.selected === !0 ? e.iconSelected || o.iconSet.chip.selected : e.icon), d = f(() => e.iconRemove || o.iconSet.chip.remove), s = f(
|
|
3419
3419
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
3420
3420
|
), c = f(() => {
|
|
3421
3421
|
const S = e.outline === !0 && e.color || e.textColor;
|
|
3422
|
-
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (S ? ` text-${S} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (
|
|
3423
|
-
}),
|
|
3422
|
+
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (S ? ` text-${S} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (s.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (n.value === !0 ? " q-chip--dark q-dark" : "");
|
|
3423
|
+
}), h = f(() => {
|
|
3424
3424
|
const S = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 }, M = {
|
|
3425
3425
|
...S,
|
|
3426
3426
|
role: "button",
|
|
@@ -3440,29 +3440,29 @@ const $r = re({
|
|
|
3440
3440
|
}
|
|
3441
3441
|
function E() {
|
|
3442
3442
|
const S = [];
|
|
3443
|
-
|
|
3444
|
-
|
|
3443
|
+
s.value === !0 && S.push(
|
|
3444
|
+
b("div", { class: "q-focus-helper" })
|
|
3445
3445
|
), r.value === !0 && S.push(
|
|
3446
|
-
|
|
3446
|
+
b(be, {
|
|
3447
3447
|
class: "q-chip__icon q-chip__icon--left",
|
|
3448
3448
|
name: a.value
|
|
3449
3449
|
})
|
|
3450
3450
|
);
|
|
3451
|
-
const M = e.label !== void 0 ? [
|
|
3451
|
+
const M = e.label !== void 0 ? [b("div", { class: "ellipsis" }, [e.label])] : void 0;
|
|
3452
3452
|
return S.push(
|
|
3453
|
-
|
|
3453
|
+
b("div", {
|
|
3454
3454
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
3455
3455
|
}, Jo(t.default, M))
|
|
3456
3456
|
), e.iconRight && S.push(
|
|
3457
|
-
|
|
3457
|
+
b(be, {
|
|
3458
3458
|
class: "q-chip__icon q-chip__icon--right",
|
|
3459
3459
|
name: e.iconRight
|
|
3460
3460
|
})
|
|
3461
3461
|
), e.removable === !0 && S.push(
|
|
3462
|
-
|
|
3462
|
+
b(be, {
|
|
3463
3463
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
3464
|
-
name:
|
|
3465
|
-
...
|
|
3464
|
+
name: d.value,
|
|
3465
|
+
...h.value.remove,
|
|
3466
3466
|
onClick: y,
|
|
3467
3467
|
onKeyup: y
|
|
3468
3468
|
})
|
|
@@ -3474,9 +3474,9 @@ const $r = re({
|
|
|
3474
3474
|
class: c.value,
|
|
3475
3475
|
style: i.value
|
|
3476
3476
|
};
|
|
3477
|
-
return
|
|
3477
|
+
return s.value === !0 && Object.assign(
|
|
3478
3478
|
S,
|
|
3479
|
-
|
|
3479
|
+
h.value.chip,
|
|
3480
3480
|
{ onClick: v, onKeyup: m }
|
|
3481
3481
|
), ei(
|
|
3482
3482
|
"div",
|
|
@@ -3510,7 +3510,7 @@ const $r = re({
|
|
|
3510
3510
|
},
|
|
3511
3511
|
emits: ["click", "keyup"],
|
|
3512
3512
|
setup(e, { slots: t, emit: l }) {
|
|
3513
|
-
const { proxy: { $q: o } } = te(), n = He(e, o), { hasLink: i, linkAttrs: r, linkClass: a, linkTag:
|
|
3513
|
+
const { proxy: { $q: o } } = te(), n = He(e, o), { hasLink: i, linkAttrs: r, linkClass: a, linkTag: d, navigateOnClick: s } = bl(), c = V(null), h = V(null), m = f(
|
|
3514
3514
|
() => e.clickable === !0 || i.value === !0 || e.tag === "label"
|
|
3515
3515
|
), v = f(
|
|
3516
3516
|
() => e.disable !== !0 && m.value === !0
|
|
@@ -3520,7 +3520,7 @@ const $r = re({
|
|
|
3520
3520
|
["padding" + (o.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
3521
3521
|
});
|
|
3522
3522
|
function S(q) {
|
|
3523
|
-
v.value === !0 && (
|
|
3523
|
+
v.value === !0 && (h.value !== null && q.qAvoidFocus !== !0 && (q.qKeyEvent !== !0 && document.activeElement === c.value ? h.value.focus() : document.activeElement === h.value && c.value.focus()), s(q));
|
|
3524
3524
|
}
|
|
3525
3525
|
function M(q) {
|
|
3526
3526
|
if (v.value === !0 && Fe(q, [13, 32]) === !0) {
|
|
@@ -3533,7 +3533,7 @@ const $r = re({
|
|
|
3533
3533
|
function B() {
|
|
3534
3534
|
const q = Zo(t.default, []);
|
|
3535
3535
|
return v.value === !0 && q.unshift(
|
|
3536
|
-
|
|
3536
|
+
b("div", { class: "q-focus-helper", tabindex: -1, ref: h })
|
|
3537
3537
|
), q;
|
|
3538
3538
|
}
|
|
3539
3539
|
return () => {
|
|
@@ -3545,8 +3545,8 @@ const $r = re({
|
|
|
3545
3545
|
onClick: S,
|
|
3546
3546
|
onKeyup: M
|
|
3547
3547
|
};
|
|
3548
|
-
return v.value === !0 ? (q.tabindex = e.tabindex || "0", Object.assign(q, r.value)) : m.value === !0 && (q["aria-disabled"] = "true"),
|
|
3549
|
-
|
|
3548
|
+
return v.value === !0 ? (q.tabindex = e.tabindex || "0", Object.assign(q, r.value)) : m.value === !0 && (q["aria-disabled"] = "true"), b(
|
|
3549
|
+
d.value,
|
|
3550
3550
|
q,
|
|
3551
3551
|
B()
|
|
3552
3552
|
);
|
|
@@ -3565,7 +3565,7 @@ const $r = re({
|
|
|
3565
3565
|
const l = f(
|
|
3566
3566
|
() => `q-item__section column q-item__section--${e.avatar === !0 || e.side === !0 || e.thumbnail === !0 ? "side" : "main"}` + (e.top === !0 ? " q-item__section--top justify-start" : " justify-center") + (e.avatar === !0 ? " q-item__section--avatar" : "") + (e.thumbnail === !0 ? " q-item__section--thumbnail" : "") + (e.noWrap === !0 ? " q-item__section--nowrap" : "")
|
|
3567
3567
|
);
|
|
3568
|
-
return () =>
|
|
3568
|
+
return () => b("div", { class: l.value }, ge(t.default));
|
|
3569
3569
|
}
|
|
3570
3570
|
}), Fr = re({
|
|
3571
3571
|
name: "QItemLabel",
|
|
@@ -3584,7 +3584,7 @@ const $r = re({
|
|
|
3584
3584
|
"-webkit-box-orient": "vertical",
|
|
3585
3585
|
"-webkit-line-clamp": l.value
|
|
3586
3586
|
} : null);
|
|
3587
|
-
return () =>
|
|
3587
|
+
return () => b("div", {
|
|
3588
3588
|
style: n.value,
|
|
3589
3589
|
class: o.value
|
|
3590
3590
|
}, ge(t.default));
|
|
@@ -3713,7 +3713,7 @@ const Wr = {
|
|
|
3713
3713
|
],
|
|
3714
3714
|
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
3715
3715
|
const n = te(), i = V(null), r = V(!1), a = V(!1);
|
|
3716
|
-
let
|
|
3716
|
+
let d = null, s = null, c, h;
|
|
3717
3717
|
const m = f(
|
|
3718
3718
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
3719
3719
|
), { preventBodyScroll: v } = Nr(), { registerTimeout: y } = vo(), { registerTick: E, removeTick: S } = fo(), { transitionProps: M, transitionStyle: B } = co(
|
|
@@ -3729,7 +3729,7 @@ const Wr = {
|
|
|
3729
3729
|
showing: r,
|
|
3730
3730
|
hideOnRouteChange: m,
|
|
3731
3731
|
handleShow: U,
|
|
3732
|
-
handleHide:
|
|
3732
|
+
handleHide: g,
|
|
3733
3733
|
processOnMount: !0
|
|
3734
3734
|
});
|
|
3735
3735
|
Ir(r);
|
|
@@ -3746,7 +3746,7 @@ const Wr = {
|
|
|
3746
3746
|
});
|
|
3747
3747
|
function U(O) {
|
|
3748
3748
|
var N;
|
|
3749
|
-
|
|
3749
|
+
s = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, I(e.maximized), P(), a.value = !0, e.noFocus !== !0 ? ((N = document.activeElement) == null || N.blur(), E(w)) : S(), y(() => {
|
|
3750
3750
|
if (n.proxy.$q.platform.is.ios === !0) {
|
|
3751
3751
|
if (e.seamless !== !0 && document.activeElement) {
|
|
3752
3752
|
const { top: j, bottom: H } = document.activeElement.getBoundingClientRect(), { innerHeight: ee } = window, x = window.visualViewport !== void 0 ? window.visualViewport.height : ee;
|
|
@@ -3755,13 +3755,13 @@ const Wr = {
|
|
|
3755
3755
|
H >= ee ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + H - x / 2)
|
|
3756
3756
|
)), document.activeElement.scrollIntoView();
|
|
3757
3757
|
}
|
|
3758
|
-
|
|
3758
|
+
h = !0, i.value.click(), h = !1;
|
|
3759
3759
|
}
|
|
3760
3760
|
P(!0), a.value = !1, l("show", O);
|
|
3761
3761
|
}, e.transitionDuration);
|
|
3762
3762
|
}
|
|
3763
|
-
function
|
|
3764
|
-
S(), _(!0), a.value = !0, T(),
|
|
3763
|
+
function g(O) {
|
|
3764
|
+
S(), _(!0), a.value = !0, T(), s !== null && ((((O == null ? void 0 : O.type.indexOf("key")) === 0 ? s.closest('[tabindex]:not([tabindex^="-"])') : void 0) || s).focus(), s = null), y(() => {
|
|
3765
3765
|
T(!0), a.value = !1, l("hide", O);
|
|
3766
3766
|
}, e.transitionDuration);
|
|
3767
3767
|
}
|
|
@@ -3783,21 +3783,21 @@ const Wr = {
|
|
|
3783
3783
|
function R(O) {
|
|
3784
3784
|
O && typeof O.focus == "function" ? O.focus({ preventScroll: !0 }) : w(), l("shake");
|
|
3785
3785
|
const N = i.value;
|
|
3786
|
-
N !== null && (N.classList.remove("q-animate--scale"), N.classList.add("q-animate--scale"),
|
|
3787
|
-
|
|
3786
|
+
N !== null && (N.classList.remove("q-animate--scale"), N.classList.add("q-animate--scale"), d !== null && clearTimeout(d), d = setTimeout(() => {
|
|
3787
|
+
d = null, i.value !== null && (N.classList.remove("q-animate--scale"), w());
|
|
3788
3788
|
}, 170));
|
|
3789
3789
|
}
|
|
3790
3790
|
function J() {
|
|
3791
3791
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && R() : (l("escapeKey"), F()));
|
|
3792
3792
|
}
|
|
3793
3793
|
function _(O) {
|
|
3794
|
-
|
|
3794
|
+
d !== null && (clearTimeout(d), d = null), (O === !0 || r.value === !0) && (I(!1), e.seamless !== !0 && (v(!1), dl(k), At(J))), O !== !0 && (s = null);
|
|
3795
3795
|
}
|
|
3796
3796
|
function I(O) {
|
|
3797
3797
|
O === !0 ? c !== !0 && (Et < 1 && document.body.classList.add("q-body--dialog"), Et++, c = !0) : c === !0 && (Et < 2 && document.body.classList.remove("q-body--dialog"), Et--, c = !1);
|
|
3798
3798
|
}
|
|
3799
3799
|
function le(O) {
|
|
3800
|
-
|
|
3800
|
+
h !== !0 && (F(O), l("click", O));
|
|
3801
3801
|
}
|
|
3802
3802
|
function p(O) {
|
|
3803
3803
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? F(O) : e.noShake !== !0 && R();
|
|
@@ -3811,30 +3811,30 @@ const Wr = {
|
|
|
3811
3811
|
shake: R,
|
|
3812
3812
|
// private but needed by QSelect
|
|
3813
3813
|
__updateRefocusTarget(O) {
|
|
3814
|
-
|
|
3814
|
+
s = O || null;
|
|
3815
3815
|
}
|
|
3816
3816
|
}), de(_);
|
|
3817
3817
|
function D() {
|
|
3818
|
-
return
|
|
3818
|
+
return b("div", {
|
|
3819
3819
|
role: "dialog",
|
|
3820
3820
|
"aria-modal": Y.value === !0 ? "true" : "false",
|
|
3821
3821
|
...o,
|
|
3822
3822
|
class: $.value
|
|
3823
3823
|
}, [
|
|
3824
|
-
|
|
3824
|
+
b(vt, {
|
|
3825
3825
|
name: "q-transition--fade",
|
|
3826
3826
|
appear: !0
|
|
3827
|
-
}, () => Y.value === !0 ?
|
|
3827
|
+
}, () => Y.value === !0 ? b("div", {
|
|
3828
3828
|
class: "q-dialog__backdrop fixed-full",
|
|
3829
3829
|
style: q.value,
|
|
3830
3830
|
"aria-hidden": "true",
|
|
3831
3831
|
tabindex: -1,
|
|
3832
3832
|
onClick: p
|
|
3833
3833
|
}) : null),
|
|
3834
|
-
|
|
3834
|
+
b(
|
|
3835
3835
|
vt,
|
|
3836
3836
|
M.value,
|
|
3837
|
-
() => r.value === !0 ?
|
|
3837
|
+
() => r.value === !0 ? b("div", {
|
|
3838
3838
|
ref: i,
|
|
3839
3839
|
class: W.value,
|
|
3840
3840
|
style: B.value,
|
|
@@ -3884,22 +3884,22 @@ function et(e, t) {
|
|
|
3884
3884
|
return e + t;
|
|
3885
3885
|
}
|
|
3886
3886
|
function ll(e, t, l, o, n, i, r, a) {
|
|
3887
|
-
const
|
|
3887
|
+
const d = e === window ? document.scrollingElement || document.documentElement : e, s = n === !0 ? "offsetWidth" : "offsetHeight", c = {
|
|
3888
3888
|
scrollStart: 0,
|
|
3889
3889
|
scrollViewSize: -r - a,
|
|
3890
3890
|
scrollMaxSize: 0,
|
|
3891
3891
|
offsetStart: -r,
|
|
3892
3892
|
offsetEnd: -a
|
|
3893
3893
|
};
|
|
3894
|
-
if (n === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart =
|
|
3895
|
-
for (let
|
|
3896
|
-
|
|
3894
|
+
if (n === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = d.scrollLeft, c.scrollViewSize += d.clientWidth), c.scrollMaxSize = d.scrollWidth, i === !0 && (c.scrollStart = (Lt === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = d.scrollTop, c.scrollViewSize += d.clientHeight), c.scrollMaxSize = d.scrollHeight), l !== null)
|
|
3895
|
+
for (let h = l.previousElementSibling; h !== null; h = h.previousElementSibling)
|
|
3896
|
+
h.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += h[s]);
|
|
3897
3897
|
if (o !== null)
|
|
3898
|
-
for (let
|
|
3899
|
-
|
|
3898
|
+
for (let h = o.nextElementSibling; h !== null; h = h.nextElementSibling)
|
|
3899
|
+
h.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetEnd += h[s]);
|
|
3900
3900
|
if (t !== e) {
|
|
3901
|
-
const
|
|
3902
|
-
n === !0 ? (c.offsetStart += m.left -
|
|
3901
|
+
const h = d.getBoundingClientRect(), m = t.getBoundingClientRect();
|
|
3902
|
+
n === !0 ? (c.offsetStart += m.left - h.left, c.offsetEnd -= m.width) : (c.offsetStart += m.top - h.top, c.offsetEnd -= m.height), e !== window && (c.offsetStart += c.scrollStart), c.offsetEnd += c.scrollMaxSize - c.offsetStart;
|
|
3903
3903
|
}
|
|
3904
3904
|
return c;
|
|
3905
3905
|
}
|
|
@@ -3951,8 +3951,8 @@ function Yr({
|
|
|
3951
3951
|
virtualScrollItemSizeComputed: o
|
|
3952
3952
|
// optional
|
|
3953
3953
|
}) {
|
|
3954
|
-
const n = te(), { props: i, emit: r, proxy: a } = n, { $q:
|
|
3955
|
-
let
|
|
3954
|
+
const n = te(), { props: i, emit: r, proxy: a } = n, { $q: d } = a;
|
|
3955
|
+
let s, c, h, m = [], v;
|
|
3956
3956
|
const y = V(0), E = V(0), S = V({}), M = V(null), B = V(null), q = V(null), P = V({ from: 0, to: 0 }), T = f(() => i.tableColspan !== void 0 ? i.tableColspan : 100);
|
|
3957
3957
|
o === void 0 && (o = f(() => i.virtualScrollItemSize));
|
|
3958
3958
|
const A = f(() => o.value + ";" + i.virtualScrollHorizontal), L = f(
|
|
@@ -3976,11 +3976,11 @@ function Yr({
|
|
|
3976
3976
|
M.value,
|
|
3977
3977
|
B.value,
|
|
3978
3978
|
i.virtualScrollHorizontal,
|
|
3979
|
-
|
|
3979
|
+
d.lang.rtl,
|
|
3980
3980
|
i.virtualScrollStickySizeStart,
|
|
3981
3981
|
i.virtualScrollStickySizeEnd
|
|
3982
3982
|
);
|
|
3983
|
-
|
|
3983
|
+
h !== O.scrollViewSize && R(O.scrollViewSize), $(
|
|
3984
3984
|
D,
|
|
3985
3985
|
O,
|
|
3986
3986
|
Math.min(e.value - 1, Math.max(0, parseInt(p, 10) || 0)),
|
|
@@ -3997,16 +3997,16 @@ function Yr({
|
|
|
3997
3997
|
M.value,
|
|
3998
3998
|
B.value,
|
|
3999
3999
|
i.virtualScrollHorizontal,
|
|
4000
|
-
|
|
4000
|
+
d.lang.rtl,
|
|
4001
4001
|
i.virtualScrollStickySizeStart,
|
|
4002
4002
|
i.virtualScrollStickySizeEnd
|
|
4003
4003
|
), D = e.value - 1, O = k.scrollMaxSize - k.offsetStart - k.offsetEnd - E.value;
|
|
4004
|
-
if (
|
|
4004
|
+
if (s === k.scrollStart) return;
|
|
4005
4005
|
if (k.scrollMaxSize <= 0) {
|
|
4006
4006
|
$(p, k, 0, 0);
|
|
4007
4007
|
return;
|
|
4008
4008
|
}
|
|
4009
|
-
|
|
4009
|
+
h !== k.scrollViewSize && R(k.scrollViewSize), U(P.value.from);
|
|
4010
4010
|
const N = Math.floor(k.scrollMaxSize - Math.max(k.scrollViewSize, k.offsetEnd) - Math.min(v[D], k.scrollViewSize / 2));
|
|
4011
4011
|
if (N > 0 && Math.ceil(k.scrollStart) >= N) {
|
|
4012
4012
|
$(
|
|
@@ -4035,25 +4035,25 @@ function Yr({
|
|
|
4035
4035
|
function $(p, k, D, O, N) {
|
|
4036
4036
|
const j = typeof N == "string" && N.indexOf("-force") !== -1, H = j === !0 ? N.replace("-force", "") : N, ee = H !== void 0 ? H : "start";
|
|
4037
4037
|
let x = Math.max(0, D - S.value[ee]), se = x + S.value.total;
|
|
4038
|
-
se > e.value && (se = e.value, x = Math.max(0, se - S.value.total)),
|
|
4038
|
+
se > e.value && (se = e.value, x = Math.max(0, se - S.value.total)), s = k.scrollStart;
|
|
4039
4039
|
const we = x !== P.value.from || se !== P.value.to;
|
|
4040
4040
|
if (we === !1 && H === void 0) {
|
|
4041
4041
|
_(D);
|
|
4042
4042
|
return;
|
|
4043
4043
|
}
|
|
4044
4044
|
const { activeElement: De } = document, pe = q.value;
|
|
4045
|
-
we === !0 && pe !== null && pe !== De && pe.contains(De) === !0 && (pe.addEventListener("focusout",
|
|
4046
|
-
pe == null || pe.removeEventListener("focusout",
|
|
4045
|
+
we === !0 && pe !== null && pe !== De && pe.contains(De) === !0 && (pe.addEventListener("focusout", g), setTimeout(() => {
|
|
4046
|
+
pe == null || pe.removeEventListener("focusout", g);
|
|
4047
4047
|
})), Ur(pe, D - x);
|
|
4048
4048
|
const pt = H !== void 0 ? v.slice(x, D).reduce(et, 0) : 0;
|
|
4049
4049
|
if (we === !0) {
|
|
4050
4050
|
const Ve = se >= P.value.from && x <= P.value.to ? P.value.to : se;
|
|
4051
4051
|
P.value = { from: x, to: Ve }, y.value = ut(m, v, 0, x), E.value = ut(m, v, se, e.value), requestAnimationFrame(() => {
|
|
4052
|
-
P.value.to !== se &&
|
|
4052
|
+
P.value.to !== se && s === k.scrollStart && (P.value = { from: P.value.from, to: se }, E.value = ut(m, v, se, e.value));
|
|
4053
4053
|
});
|
|
4054
4054
|
}
|
|
4055
4055
|
requestAnimationFrame(() => {
|
|
4056
|
-
if (
|
|
4056
|
+
if (s !== k.scrollStart) return;
|
|
4057
4057
|
we === !0 && U(x);
|
|
4058
4058
|
const Ve = v.slice(x, D).reduce(et, 0), Be = Ve + k.offsetStart + y.value, yt = Be + v[D];
|
|
4059
4059
|
let nt = Be + O;
|
|
@@ -4061,11 +4061,11 @@ function Yr({
|
|
|
4061
4061
|
const Ft = Ve - pt, ot = k.scrollStart + Ft;
|
|
4062
4062
|
nt = j !== !0 && ot < Be && yt < ot + k.scrollViewSize ? ot : H === "end" ? yt - k.scrollViewSize : Be - (H === "start" ? 0 : Math.round((k.scrollViewSize - v[D]) / 2));
|
|
4063
4063
|
}
|
|
4064
|
-
|
|
4064
|
+
s = nt, zn(
|
|
4065
4065
|
p,
|
|
4066
4066
|
nt,
|
|
4067
4067
|
i.virtualScrollHorizontal,
|
|
4068
|
-
|
|
4068
|
+
d.lang.rtl
|
|
4069
4069
|
), _(D);
|
|
4070
4070
|
});
|
|
4071
4071
|
}
|
|
@@ -4084,7 +4084,7 @@ function Yr({
|
|
|
4084
4084
|
}
|
|
4085
4085
|
}
|
|
4086
4086
|
}
|
|
4087
|
-
function
|
|
4087
|
+
function g() {
|
|
4088
4088
|
var p;
|
|
4089
4089
|
(p = q.value) == null || p.focus();
|
|
4090
4090
|
}
|
|
@@ -4104,7 +4104,7 @@ function Yr({
|
|
|
4104
4104
|
H += v[x];
|
|
4105
4105
|
m.push(H);
|
|
4106
4106
|
}
|
|
4107
|
-
c = -1,
|
|
4107
|
+
c = -1, s = void 0, y.value = ut(m, v, 0, P.value.from), E.value = ut(m, v, P.value.to, e.value), p >= 0 ? (U(P.value.from), fe(() => {
|
|
4108
4108
|
Y(p);
|
|
4109
4109
|
})) : I();
|
|
4110
4110
|
}
|
|
@@ -4117,12 +4117,12 @@ function Yr({
|
|
|
4117
4117
|
M.value,
|
|
4118
4118
|
B.value,
|
|
4119
4119
|
i.virtualScrollHorizontal,
|
|
4120
|
-
|
|
4120
|
+
d.lang.rtl,
|
|
4121
4121
|
i.virtualScrollStickySizeStart,
|
|
4122
4122
|
i.virtualScrollStickySizeEnd
|
|
4123
4123
|
).scrollViewSize);
|
|
4124
4124
|
}
|
|
4125
|
-
|
|
4125
|
+
h = p;
|
|
4126
4126
|
const k = parseFloat(i.virtualScrollSliceRatioBefore) || 0, D = parseFloat(i.virtualScrollSliceRatioAfter) || 0, O = 1 + k + D, N = p === void 0 || p <= 0 ? 1 : Math.ceil(p / o.value), j = Math.max(
|
|
4127
4127
|
1,
|
|
4128
4128
|
N,
|
|
@@ -4141,41 +4141,41 @@ function Yr({
|
|
|
4141
4141
|
["--q-virtual-scroll-item-" + D]: o.value + "px"
|
|
4142
4142
|
};
|
|
4143
4143
|
return [
|
|
4144
|
-
p === "tbody" ?
|
|
4144
|
+
p === "tbody" ? b(p, {
|
|
4145
4145
|
class: "q-virtual-scroll__padding",
|
|
4146
4146
|
key: "before",
|
|
4147
4147
|
ref: M
|
|
4148
4148
|
}, [
|
|
4149
|
-
|
|
4150
|
-
|
|
4149
|
+
b("tr", [
|
|
4150
|
+
b("td", {
|
|
4151
4151
|
style: { [D]: `${y.value}px`, ...O },
|
|
4152
4152
|
colspan: T.value
|
|
4153
4153
|
})
|
|
4154
4154
|
])
|
|
4155
|
-
]) :
|
|
4155
|
+
]) : b(p, {
|
|
4156
4156
|
class: "q-virtual-scroll__padding",
|
|
4157
4157
|
key: "before",
|
|
4158
4158
|
ref: M,
|
|
4159
4159
|
style: { [D]: `${y.value}px`, ...O }
|
|
4160
4160
|
}),
|
|
4161
|
-
|
|
4161
|
+
b(p, {
|
|
4162
4162
|
class: "q-virtual-scroll__content",
|
|
4163
4163
|
key: "content",
|
|
4164
4164
|
ref: q,
|
|
4165
4165
|
tabindex: -1
|
|
4166
4166
|
}, k.flat()),
|
|
4167
|
-
p === "tbody" ?
|
|
4167
|
+
p === "tbody" ? b(p, {
|
|
4168
4168
|
class: "q-virtual-scroll__padding",
|
|
4169
4169
|
key: "after",
|
|
4170
4170
|
ref: B
|
|
4171
4171
|
}, [
|
|
4172
|
-
|
|
4173
|
-
|
|
4172
|
+
b("tr", [
|
|
4173
|
+
b("td", {
|
|
4174
4174
|
style: { [D]: `${E.value}px`, ...O },
|
|
4175
4175
|
colspan: T.value
|
|
4176
4176
|
})
|
|
4177
4177
|
])
|
|
4178
|
-
]) :
|
|
4178
|
+
]) : b(p, {
|
|
4179
4179
|
class: "q-virtual-scroll__padding",
|
|
4180
4180
|
key: "after",
|
|
4181
4181
|
ref: B,
|
|
@@ -4195,7 +4195,7 @@ function Yr({
|
|
|
4195
4195
|
R();
|
|
4196
4196
|
const I = xl(
|
|
4197
4197
|
X,
|
|
4198
|
-
|
|
4198
|
+
d.platform.is.ios === !0 ? 120 : 35
|
|
4199
4199
|
);
|
|
4200
4200
|
Qo(() => {
|
|
4201
4201
|
R();
|
|
@@ -4206,11 +4206,11 @@ function Yr({
|
|
|
4206
4206
|
}), hl(() => {
|
|
4207
4207
|
if (le !== !0) return;
|
|
4208
4208
|
const p = t();
|
|
4209
|
-
|
|
4209
|
+
s !== void 0 && p !== void 0 && p !== null && p.nodeType !== 8 ? zn(
|
|
4210
4210
|
p,
|
|
4211
|
-
|
|
4211
|
+
s,
|
|
4212
4212
|
i.virtualScrollHorizontal,
|
|
4213
|
-
|
|
4213
|
+
d.lang.rtl
|
|
4214
4214
|
) : Y(c);
|
|
4215
4215
|
}), de(() => {
|
|
4216
4216
|
I.cancel();
|
|
@@ -4396,10 +4396,10 @@ const Co = re({
|
|
|
4396
4396
|
"filterAbort"
|
|
4397
4397
|
],
|
|
4398
4398
|
setup(e, { slots: t, emit: l }) {
|
|
4399
|
-
const { proxy: o } = te(), { $q: n } = o, i = V(!1), r = V(!1), a = V(-1),
|
|
4400
|
-
let
|
|
4399
|
+
const { proxy: o } = te(), { $q: n } = o, i = V(!1), r = V(!1), a = V(-1), d = V(""), s = V(!1), c = V(!1);
|
|
4400
|
+
let h = null, m = null, v, y, E, S = null, M, B, q, P;
|
|
4401
4401
|
const T = V(null), A = V(null), L = V(null), F = V(null), W = V(null), Y = $i(e), X = ta($l), $ = f(() => Array.isArray(e.options) ? e.options.length : 0), U = f(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
4402
|
-
virtualScrollSliceRange:
|
|
4402
|
+
virtualScrollSliceRange: g,
|
|
4403
4403
|
virtualScrollSliceSizeComputed: w,
|
|
4404
4404
|
localResetVirtualScroll: R,
|
|
4405
4405
|
padVirtualScroll: J,
|
|
@@ -4457,7 +4457,7 @@ const Co = re({
|
|
|
4457
4457
|
}))), yt = f(() => {
|
|
4458
4458
|
if ($.value === 0)
|
|
4459
4459
|
return [];
|
|
4460
|
-
const { from: u, to: C } =
|
|
4460
|
+
const { from: u, to: C } = g.value;
|
|
4461
4461
|
return e.options.slice(u, C).map((z, K) => {
|
|
4462
4462
|
const G = je.value(z) === !0, ne = Ht(z) === !0, Z = u + K, oe = {
|
|
4463
4463
|
clickable: !0,
|
|
@@ -4557,7 +4557,7 @@ const Co = re({
|
|
|
4557
4557
|
), Ae()), (ne = A.value) == null || ne.focus(), (k.value.length === 0 || Ee(xe.value(k.value[0]), z) !== !0) && l("update:modelValue", e.emitValue === !0 ? z : u);
|
|
4558
4558
|
return;
|
|
4559
4559
|
}
|
|
4560
|
-
if ((y !== !0 ||
|
|
4560
|
+
if ((y !== !0 || s.value === !0) && p.focus(), zl(), k.value.length === 0) {
|
|
4561
4561
|
const Z = e.emitValue === !0 ? z : u;
|
|
4562
4562
|
l("add", { index: 0, value: Z }), l("update:modelValue", e.multiple === !0 ? [Z] : Z);
|
|
4563
4563
|
return;
|
|
@@ -4613,7 +4613,7 @@ const Co = re({
|
|
|
4613
4613
|
El(u);
|
|
4614
4614
|
return;
|
|
4615
4615
|
}
|
|
4616
|
-
if (u.target.value = "",
|
|
4616
|
+
if (u.target.value = "", h !== null && (clearTimeout(h), h = null), m !== null && (clearTimeout(m), m = null), Ue(), typeof C == "string" && C.length !== 0) {
|
|
4617
4617
|
const z = C.toLocaleLowerCase(), K = (ne) => {
|
|
4618
4618
|
const Z = e.options.find((oe) => String(ne.value(oe)).toLocaleLowerCase() === z);
|
|
4619
4619
|
return Z === void 0 ? !1 : (k.value.indexOf(Z) === -1 ? Te(Z) : Ae(), !0);
|
|
@@ -4629,7 +4629,7 @@ const Co = re({
|
|
|
4629
4629
|
}
|
|
4630
4630
|
function Tl(u) {
|
|
4631
4631
|
if (l("keydown", u), Qn(u) === !0) return;
|
|
4632
|
-
const C =
|
|
4632
|
+
const C = d.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), z = u.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (a.value !== -1 || C === !0);
|
|
4633
4633
|
if (u.keyCode === 27) {
|
|
4634
4634
|
ve(u);
|
|
4635
4635
|
return;
|
|
@@ -4643,11 +4643,11 @@ const Co = re({
|
|
|
4643
4643
|
ie(u), Qe();
|
|
4644
4644
|
return;
|
|
4645
4645
|
}
|
|
4646
|
-
if (u.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 &&
|
|
4646
|
+
if (u.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && d.value.length === 0) {
|
|
4647
4647
|
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? It(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
4648
4648
|
return;
|
|
4649
4649
|
}
|
|
4650
|
-
(u.keyCode === 35 || u.keyCode === 36) && (typeof
|
|
4650
|
+
(u.keyCode === 35 || u.keyCode === 36) && (typeof d.value != "string" || d.value.length === 0) && (ie(u), a.value = -1, wt(u.keyCode === 36 ? 1 : -1, e.multiple)), (u.keyCode === 33 || u.keyCode === 34) && w.value !== void 0 && (ie(u), a.value = Math.max(
|
|
4651
4651
|
-1,
|
|
4652
4652
|
Math.min(
|
|
4653
4653
|
$.value,
|
|
@@ -4685,7 +4685,7 @@ const Co = re({
|
|
|
4685
4685
|
if (it("", e.multiple !== !0, !0), ne == null) return;
|
|
4686
4686
|
(Z === "toggle" ? Te : _l)(ne, Z === "add-unique"), e.multiple !== !0 && ((Xe = A.value) == null || Xe.focus(), Ae());
|
|
4687
4687
|
};
|
|
4688
|
-
if (e.onNewValue !== void 0 ? l("newValue",
|
|
4688
|
+
if (e.onNewValue !== void 0 ? l("newValue", d.value, G) : G(d.value), e.multiple !== !0) return;
|
|
4689
4689
|
}
|
|
4690
4690
|
i.value === !0 ? Ke() : p.innerLoading.value !== !0 && Qe();
|
|
4691
4691
|
}
|
|
@@ -4697,7 +4697,7 @@ const Co = re({
|
|
|
4697
4697
|
return Al();
|
|
4698
4698
|
}
|
|
4699
4699
|
function Vo() {
|
|
4700
|
-
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? Be.value.map((u) => t["selected-item"](u)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? Be.value.map((u, C) =>
|
|
4700
|
+
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? Be.value.map((u) => t["selected-item"](u)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? Be.value.map((u, C) => b(Mr, {
|
|
4701
4701
|
key: "option-" + C,
|
|
4702
4702
|
removable: p.editable.value === !0 && je.value(u.opt) !== !0,
|
|
4703
4703
|
dense: !0,
|
|
@@ -4706,11 +4706,11 @@ const Co = re({
|
|
|
4706
4706
|
onRemove() {
|
|
4707
4707
|
u.removeAtIndex(C);
|
|
4708
4708
|
}
|
|
4709
|
-
}, () =>
|
|
4709
|
+
}, () => b("span", {
|
|
4710
4710
|
class: "ellipsis",
|
|
4711
4711
|
[u.html === !0 ? "innerHTML" : "textContent"]: me.value(u.opt)
|
|
4712
4712
|
}))) : [
|
|
4713
|
-
|
|
4713
|
+
b("span", {
|
|
4714
4714
|
class: "ellipsis",
|
|
4715
4715
|
[De.value === !0 ? "innerHTML" : "textContent"]: se.value
|
|
4716
4716
|
})
|
|
@@ -4718,15 +4718,15 @@ const Co = re({
|
|
|
4718
4718
|
}
|
|
4719
4719
|
function Ol() {
|
|
4720
4720
|
if (ee.value === !0)
|
|
4721
|
-
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue:
|
|
4722
|
-
const u = t.option !== void 0 ? t.option : (z) =>
|
|
4721
|
+
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: d.value }) : void 0;
|
|
4722
|
+
const u = t.option !== void 0 ? t.option : (z) => b(Pr, {
|
|
4723
4723
|
key: z.index,
|
|
4724
4724
|
...z.itemProps
|
|
4725
|
-
}, () =>
|
|
4725
|
+
}, () => b(
|
|
4726
4726
|
Rr,
|
|
4727
|
-
() =>
|
|
4727
|
+
() => b(
|
|
4728
4728
|
Fr,
|
|
4729
|
-
() =>
|
|
4729
|
+
() => b("span", {
|
|
4730
4730
|
[z.html === !0 ? "innerHTML" : "textContent"]: z.label
|
|
4731
4731
|
})
|
|
4732
4732
|
)
|
|
@@ -4740,7 +4740,7 @@ const Co = re({
|
|
|
4740
4740
|
key: "i_t",
|
|
4741
4741
|
class: j.value,
|
|
4742
4742
|
style: e.inputStyle,
|
|
4743
|
-
value:
|
|
4743
|
+
value: d.value !== void 0 ? d.value : "",
|
|
4744
4744
|
// required for Android in order to show ENTER key when in form
|
|
4745
4745
|
type: "search",
|
|
4746
4746
|
...z,
|
|
@@ -4752,15 +4752,15 @@ const Co = re({
|
|
|
4752
4752
|
readonly: e.readonly === !0,
|
|
4753
4753
|
...qo.value
|
|
4754
4754
|
};
|
|
4755
|
-
return u !== !0 && y === !0 && (Array.isArray(K.class) === !0 ? K.class = [...K.class, "no-pointer-events"] : K.class += " no-pointer-events"),
|
|
4755
|
+
return u !== !0 && y === !0 && (Array.isArray(K.class) === !0 ? K.class = [...K.class, "no-pointer-events"] : K.class += " no-pointer-events"), b("input", K);
|
|
4756
4756
|
}
|
|
4757
4757
|
function $l(u) {
|
|
4758
|
-
|
|
4759
|
-
|
|
4758
|
+
h !== null && (clearTimeout(h), h = null), m !== null && (clearTimeout(m), m = null), !(u && u.target && u.target.qComposing === !0) && (xt(u.target.value || ""), E = !0, M = d.value, p.focused.value !== !0 && (y !== !0 || s.value === !0) && p.focus(), e.onFilter !== void 0 && (h = setTimeout(() => {
|
|
4759
|
+
h = null, We(d.value);
|
|
4760
4760
|
}, e.inputDebounce)));
|
|
4761
4761
|
}
|
|
4762
4762
|
function xt(u, C) {
|
|
4763
|
-
|
|
4763
|
+
d.value !== u && (d.value = u, C === !0 || e.inputDebounce === 0 || e.inputDebounce === "0" ? l("inputValue", u) : m = setTimeout(() => {
|
|
4764
4764
|
m = null, l("inputValue", u);
|
|
4765
4765
|
}, e.inputDebounce));
|
|
4766
4766
|
}
|
|
@@ -4791,7 +4791,7 @@ const Co = re({
|
|
|
4791
4791
|
);
|
|
4792
4792
|
}
|
|
4793
4793
|
function To() {
|
|
4794
|
-
return
|
|
4794
|
+
return b(yo, {
|
|
4795
4795
|
ref: L,
|
|
4796
4796
|
class: H.value,
|
|
4797
4797
|
style: e.popupContentStyle,
|
|
@@ -4826,16 +4826,16 @@ const Co = re({
|
|
|
4826
4826
|
}
|
|
4827
4827
|
function $o(u) {
|
|
4828
4828
|
var C;
|
|
4829
|
-
ye(u), (C = A.value) == null || C.focus(),
|
|
4829
|
+
ye(u), (C = A.value) == null || C.focus(), s.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
4830
4830
|
}
|
|
4831
4831
|
function Lo(u) {
|
|
4832
4832
|
ye(u), fe(() => {
|
|
4833
|
-
|
|
4833
|
+
s.value = !1;
|
|
4834
4834
|
});
|
|
4835
4835
|
}
|
|
4836
4836
|
function Mo() {
|
|
4837
4837
|
const u = [
|
|
4838
|
-
|
|
4838
|
+
b($r, {
|
|
4839
4839
|
class: `col-auto ${p.fieldClass.value}`,
|
|
4840
4840
|
...D.value,
|
|
4841
4841
|
for: p.targetUid.value,
|
|
@@ -4844,7 +4844,7 @@ const Co = re({
|
|
|
4844
4844
|
loading: c.value,
|
|
4845
4845
|
itemAligned: !1,
|
|
4846
4846
|
filled: !0,
|
|
4847
|
-
stackLabel:
|
|
4847
|
+
stackLabel: d.value.length !== 0,
|
|
4848
4848
|
...p.splitAttrs.listeners.value,
|
|
4849
4849
|
onFocus: $o,
|
|
4850
4850
|
onBlur: Lo
|
|
@@ -4856,7 +4856,7 @@ const Co = re({
|
|
|
4856
4856
|
})
|
|
4857
4857
|
];
|
|
4858
4858
|
return i.value === !0 && u.push(
|
|
4859
|
-
|
|
4859
|
+
b("div", {
|
|
4860
4860
|
ref: W,
|
|
4861
4861
|
class: H.value + " scroll",
|
|
4862
4862
|
style: e.popupContentStyle,
|
|
@@ -4864,7 +4864,7 @@ const Co = re({
|
|
|
4864
4864
|
onClick: ve,
|
|
4865
4865
|
onScrollPassive: _
|
|
4866
4866
|
}, Ol())
|
|
4867
|
-
),
|
|
4867
|
+
), b(Kr, {
|
|
4868
4868
|
ref: F,
|
|
4869
4869
|
modelValue: r.value,
|
|
4870
4870
|
position: e.useInput === !0 ? "top" : void 0,
|
|
@@ -4876,8 +4876,8 @@ const Co = re({
|
|
|
4876
4876
|
onBeforeHide: Po,
|
|
4877
4877
|
onHide: Ro,
|
|
4878
4878
|
onShow: Fo
|
|
4879
|
-
}, () =>
|
|
4880
|
-
class: "q-select__dialog" + (O.value === !0 ? " q-select__dialog--dark q-dark" : "") + (
|
|
4879
|
+
}, () => b("div", {
|
|
4880
|
+
class: "q-select__dialog" + (O.value === !0 ? " q-select__dialog--dark q-dark" : "") + (s.value === !0 ? " q-select__dialog--focused" : "")
|
|
4881
4881
|
}, u));
|
|
4882
4882
|
}
|
|
4883
4883
|
function Po(u) {
|
|
@@ -4898,7 +4898,7 @@ const Co = re({
|
|
|
4898
4898
|
function Qe(u) {
|
|
4899
4899
|
p.editable.value === !0 && (y === !0 ? (p.onControlFocusin(u), r.value = !0, fe(() => {
|
|
4900
4900
|
p.focus();
|
|
4901
|
-
})) : p.focus(), e.onFilter !== void 0 ? We(
|
|
4901
|
+
})) : p.focus(), e.onFilter !== void 0 ? We(d.value) : (ee.value !== !0 || t["no-option"] !== void 0) && (i.value = !0));
|
|
4902
4902
|
}
|
|
4903
4903
|
function Ae() {
|
|
4904
4904
|
r.value = !1, Ke();
|
|
@@ -4939,7 +4939,7 @@ const Co = re({
|
|
|
4939
4939
|
y = n.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || ee.value === !1 : !0), B = n.platform.is.ios === !0 && y === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
4940
4940
|
}
|
|
4941
4941
|
return On(Rl), Uo(Ll), Rl(), de(() => {
|
|
4942
|
-
|
|
4942
|
+
h !== null && clearTimeout(h), m !== null && clearTimeout(m);
|
|
4943
4943
|
}), Object.assign(o, {
|
|
4944
4944
|
showPopup: Qe,
|
|
4945
4945
|
hidePopup: Ae,
|
|
@@ -4967,7 +4967,7 @@ const Co = re({
|
|
|
4967
4967
|
hasValue: N,
|
|
4968
4968
|
showPopup: Qe,
|
|
4969
4969
|
floatingLabel: f(
|
|
4970
|
-
() => e.hideSelected !== !0 && N.value === !0 || typeof
|
|
4970
|
+
() => e.hideSelected !== !0 && N.value === !0 || typeof d.value == "number" || d.value.length !== 0 || ml(e.displayValue)
|
|
4971
4971
|
),
|
|
4972
4972
|
getControlChild: () => {
|
|
4973
4973
|
if (p.editable.value !== !1 && (r.value === !0 || ee.value !== !0 || t["no-option"] !== void 0))
|
|
@@ -4999,7 +4999,7 @@ const Co = re({
|
|
|
4999
4999
|
else if (p.editable.value === !0) {
|
|
5000
5000
|
const G = z === !0 ? pt.value : void 0;
|
|
5001
5001
|
C.push(
|
|
5002
|
-
|
|
5002
|
+
b("input", {
|
|
5003
5003
|
ref: z === !0 ? A : void 0,
|
|
5004
5004
|
key: "d_t",
|
|
5005
5005
|
class: "q-select__focus-target",
|
|
@@ -5013,7 +5013,7 @@ const Co = re({
|
|
|
5013
5013
|
onKeypress: Bl
|
|
5014
5014
|
})
|
|
5015
5015
|
), z === !0 && typeof e.autocomplete == "string" && e.autocomplete.length !== 0 && C.push(
|
|
5016
|
-
|
|
5016
|
+
b("input", {
|
|
5017
5017
|
class: "q-select__autocomplete-input",
|
|
5018
5018
|
autocomplete: e.autocomplete,
|
|
5019
5019
|
tabindex: -1,
|
|
@@ -5022,9 +5022,9 @@ const Co = re({
|
|
|
5022
5022
|
);
|
|
5023
5023
|
}
|
|
5024
5024
|
if (Y.value !== void 0 && e.disable !== !0 && St.value.length !== 0) {
|
|
5025
|
-
const G = St.value.map((ne) =>
|
|
5025
|
+
const G = St.value.map((ne) => b("option", { value: ne, selected: !0 }));
|
|
5026
5026
|
C.push(
|
|
5027
|
-
|
|
5027
|
+
b("select", {
|
|
5028
5028
|
class: "hidden",
|
|
5029
5029
|
name: Y.value,
|
|
5030
5030
|
multiple: e.multiple
|
|
@@ -5032,14 +5032,14 @@ const Co = re({
|
|
|
5032
5032
|
);
|
|
5033
5033
|
}
|
|
5034
5034
|
const K = e.useInput === !0 || z !== !0 ? void 0 : p.splitAttrs.attributes.value;
|
|
5035
|
-
return
|
|
5035
|
+
return b("div", {
|
|
5036
5036
|
class: "q-field__native row items-center",
|
|
5037
5037
|
...K,
|
|
5038
5038
|
...p.splitAttrs.listeners.value
|
|
5039
5039
|
}, C);
|
|
5040
5040
|
},
|
|
5041
5041
|
getInnerAppend: () => e.loading !== !0 && c.value !== !0 && e.hideDropdownIcon !== !0 ? [
|
|
5042
|
-
|
|
5042
|
+
b(be, {
|
|
5043
5043
|
class: "q-select__dropdown-icon" + (i.value === !0 ? " rotate-180" : ""),
|
|
5044
5044
|
name: nt.value
|
|
5045
5045
|
})
|
|
@@ -5068,7 +5068,7 @@ const Co = re({
|
|
|
5068
5068
|
(a) => {
|
|
5069
5069
|
a && (i.value = a);
|
|
5070
5070
|
}
|
|
5071
|
-
), (a,
|
|
5071
|
+
), (a, d) => (Ce(), Tt("div", oa, [
|
|
5072
5072
|
ze(Co, Bt({
|
|
5073
5073
|
outlined: "",
|
|
5074
5074
|
dense: "",
|
|
@@ -5088,7 +5088,7 @@ const Co = re({
|
|
|
5088
5088
|
default: _e(() => [
|
|
5089
5089
|
ze(yo, {
|
|
5090
5090
|
modelValue: n.value,
|
|
5091
|
-
"onUpdate:modelValue":
|
|
5091
|
+
"onUpdate:modelValue": d[1] || (d[1] = (s) => n.value = s),
|
|
5092
5092
|
anchor: "bottom left",
|
|
5093
5093
|
self: "top left",
|
|
5094
5094
|
offset: [0, 8],
|
|
@@ -5102,16 +5102,16 @@ const Co = re({
|
|
|
5102
5102
|
style: Xo(r.value)
|
|
5103
5103
|
}, {
|
|
5104
5104
|
default: _e(() => [
|
|
5105
|
-
(Ce(!0), Tt(Tn, null, An(l.options, (
|
|
5106
|
-
key:
|
|
5105
|
+
(Ce(!0), Tt(Tn, null, An(l.options, (s) => (Ce(), ft(Ii, {
|
|
5106
|
+
key: s.value,
|
|
5107
5107
|
modelValue: i.value,
|
|
5108
|
-
"onUpdate:modelValue":
|
|
5109
|
-
val:
|
|
5110
|
-
label:
|
|
5111
|
-
disable:
|
|
5108
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => i.value = c),
|
|
5109
|
+
val: s,
|
|
5110
|
+
label: s.label,
|
|
5111
|
+
disable: s.disabled,
|
|
5112
5112
|
color: "primary",
|
|
5113
5113
|
class: "q-mb-sm q-ml-sm q-mr-sm",
|
|
5114
|
-
"data-cy": `checkbox-option-${
|
|
5114
|
+
"data-cy": `checkbox-option-${s.label}`
|
|
5115
5115
|
}, null, 8, ["modelValue", "val", "label", "disable", "data-cy"]))), 128))
|
|
5116
5116
|
]),
|
|
5117
5117
|
_: 1
|
|
@@ -5151,29 +5151,27 @@ const Co = re({
|
|
|
5151
5151
|
i.value = s;
|
|
5152
5152
|
}
|
|
5153
5153
|
);
|
|
5154
|
-
const a = async (s,
|
|
5155
|
-
|
|
5156
|
-
if (
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
try {
|
|
5162
|
-
r.value = !0;
|
|
5163
|
-
const c = await l.fetchOptions(s);
|
|
5164
|
-
i.value = c;
|
|
5165
|
-
} finally {
|
|
5154
|
+
const a = async (s, c) => {
|
|
5155
|
+
c(() => {
|
|
5156
|
+
if (l.fetchOptions) {
|
|
5157
|
+
const h = l.fetchOptions(s);
|
|
5158
|
+
h instanceof Promise ? (r.value = !0, h.then((m) => {
|
|
5159
|
+
i.value = m;
|
|
5160
|
+
}).finally(() => {
|
|
5166
5161
|
r.value = !1;
|
|
5167
|
-
}
|
|
5168
|
-
else
|
|
5169
|
-
i.value = l.options.filter(
|
|
5170
|
-
|
|
5171
|
-
|
|
5162
|
+
})) : i.value = h;
|
|
5163
|
+
} else
|
|
5164
|
+
i.value = s ? l.options.filter((h) => {
|
|
5165
|
+
var m;
|
|
5166
|
+
return (m = h.label) == null ? void 0 : m.toLowerCase().includes(s.toLowerCase());
|
|
5167
|
+
}) : l.options;
|
|
5172
5168
|
});
|
|
5169
|
+
}, d = () => {
|
|
5170
|
+
a("", (s) => s());
|
|
5173
5171
|
};
|
|
5174
|
-
return (s,
|
|
5172
|
+
return (s, c) => (Ce(), ft(Co, Bt({
|
|
5175
5173
|
modelValue: n.value,
|
|
5176
|
-
"onUpdate:modelValue":
|
|
5174
|
+
"onUpdate:modelValue": c[0] || (c[0] = (h) => n.value = h),
|
|
5177
5175
|
"use-input": "",
|
|
5178
5176
|
"hide-selected": "",
|
|
5179
5177
|
"fill-input": "",
|
|
@@ -5181,6 +5179,7 @@ const Co = re({
|
|
|
5181
5179
|
label: s.label,
|
|
5182
5180
|
options: i.value,
|
|
5183
5181
|
onFilter: a,
|
|
5182
|
+
onFocus: d,
|
|
5184
5183
|
"data-cy": "client-select",
|
|
5185
5184
|
dense: "",
|
|
5186
5185
|
outlined: "",
|