@selfeesas/shared-components 0.3.6 → 0.3.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,5 +1,5 @@
|
|
|
1
|
-
import { computed as c, markRaw as fo, defineComponent as vt, reactive as ul, h as d, withDirectives as dl, getCurrentInstance as fe, useAttrs as vo, createBlock as Ae, openBlock as ge, mergeProps as Mt, withCtx as me, createElementBlock as Je, Fragment as
|
|
2
|
-
const
|
|
1
|
+
import { computed as c, markRaw as fo, defineComponent as vt, reactive as ul, h as d, withDirectives as dl, getCurrentInstance as fe, useAttrs as vo, createBlock as Ae, openBlock as ge, mergeProps as Mt, withCtx as me, createElementBlock as Je, Fragment as Nl, renderList as Yl, createVNode as he, unref as Kt, ref as P, onBeforeUnmount as ze, Transition as wt, inject as fl, createCommentVNode as lt, toRaw as tl, onMounted as ft, nextTick as xe, watch as J, onDeactivated as hl, onActivated as Zl, onUnmounted as mo, Teleport as xr, onBeforeUpdate as ho, onBeforeMount as jn, onUpdated as Mr, normalizeStyle as Er, normalizeClass as ql, resolveComponent as $r, renderSlot as qt, createElementVNode as Ge, toDisplayString as St, provide as go, useSlots as Dr, createTextVNode as $l } from "vue";
|
|
2
|
+
const Mn = {
|
|
3
3
|
xs: 18,
|
|
4
4
|
sm: 24,
|
|
5
5
|
md: 32,
|
|
@@ -8,7 +8,7 @@ const xn = {
|
|
|
8
8
|
}, gl = {
|
|
9
9
|
size: String
|
|
10
10
|
};
|
|
11
|
-
function bl(e, t =
|
|
11
|
+
function bl(e, t = Mn) {
|
|
12
12
|
return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
13
13
|
}
|
|
14
14
|
function dt(e, t, l, a) {
|
|
@@ -18,7 +18,7 @@ function dt(e, t, l, a) {
|
|
|
18
18
|
enumerable: !0
|
|
19
19
|
}), e;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function zr(e, t) {
|
|
22
22
|
for (const l in t)
|
|
23
23
|
dt(e, l, t[l]);
|
|
24
24
|
return e;
|
|
@@ -26,7 +26,7 @@ function Dr(e, t) {
|
|
|
26
26
|
function de(e) {
|
|
27
27
|
return fo(vt(e));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Nn(e) {
|
|
30
30
|
return fo(e);
|
|
31
31
|
}
|
|
32
32
|
const Tr = (e, t) => {
|
|
@@ -42,10 +42,10 @@ const Tr = (e, t) => {
|
|
|
42
42
|
);
|
|
43
43
|
return t;
|
|
44
44
|
};
|
|
45
|
-
function
|
|
45
|
+
function De(e, t) {
|
|
46
46
|
return e !== void 0 && e() || t;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Yn(e, t) {
|
|
49
49
|
if (e !== void 0) {
|
|
50
50
|
const l = e();
|
|
51
51
|
if (l != null)
|
|
@@ -64,19 +64,19 @@ function Vr(e, t, l, a, n, o) {
|
|
|
64
64
|
const r = d(e, t, l);
|
|
65
65
|
return n === !0 ? dl(r, o()) : r;
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const ca = "0 0 24 24", rn = (e) => e, un = (e) => `ionicons ${e}`, yo = {
|
|
68
68
|
"mdi-": (e) => `mdi ${e}`,
|
|
69
|
-
"icon-":
|
|
69
|
+
"icon-": rn,
|
|
70
70
|
// fontawesome equiv
|
|
71
71
|
"bt-": (e) => `bt ${e}`,
|
|
72
72
|
"eva-": (e) => `eva ${e}`,
|
|
73
|
-
"ion-md":
|
|
74
|
-
"ion-ios":
|
|
75
|
-
"ion-logo":
|
|
76
|
-
"iconfont ":
|
|
73
|
+
"ion-md": un,
|
|
74
|
+
"ion-ios": un,
|
|
75
|
+
"ion-logo": un,
|
|
76
|
+
"iconfont ": rn,
|
|
77
77
|
"ti-": (e) => `themify-icon ${e}`,
|
|
78
78
|
"bi-": (e) => `bootstrap-icons ${e}`,
|
|
79
|
-
"i-":
|
|
79
|
+
"i-": rn
|
|
80
80
|
// UnoCSS pure icons
|
|
81
81
|
}, wo = {
|
|
82
82
|
o_: "-outlined",
|
|
@@ -86,7 +86,7 @@ const sa = "0 0 24 24", on = (e) => e, rn = (e) => `ionicons ${e}`, yo = {
|
|
|
86
86
|
sym_o_: "-outlined",
|
|
87
87
|
sym_r_: "-rounded",
|
|
88
88
|
sym_s_: "-sharp"
|
|
89
|
-
}, Br = new RegExp("^(" + Object.keys(yo).join("|") + ")"), Rr = new RegExp("^(" + Object.keys(wo).join("|") + ")"),
|
|
89
|
+
}, Br = new RegExp("^(" + Object.keys(yo).join("|") + ")"), Rr = new RegExp("^(" + Object.keys(wo).join("|") + ")"), da = new RegExp("^(" + Object.keys(So).join("|") + ")"), Or = /^[Mm]\s?[-+]?\.?\d/, Pr = /^img:/, Ar = /^svguse:/, Lr = /^ion-/, Fr = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, $e = de({
|
|
90
90
|
name: "QIcon",
|
|
91
91
|
props: {
|
|
92
92
|
...gl,
|
|
@@ -119,7 +119,7 @@ const sa = "0 0 24 24", on = (e) => e, rn = (e) => `ionicons ${e}`, yo = {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
if (Or.test(i) === !0) {
|
|
122
|
-
const [u, m =
|
|
122
|
+
const [u, m = ca] = i.split("|");
|
|
123
123
|
return {
|
|
124
124
|
svg: !0,
|
|
125
125
|
viewBox: m,
|
|
@@ -135,7 +135,7 @@ const sa = "0 0 24 24", on = (e) => e, rn = (e) => `ionicons ${e}`, yo = {
|
|
|
135
135
|
src: i.substring(4)
|
|
136
136
|
};
|
|
137
137
|
if (Ar.test(i) === !0) {
|
|
138
|
-
const [u, m =
|
|
138
|
+
const [u, m = ca] = i.split("|");
|
|
139
139
|
return {
|
|
140
140
|
svguse: !0,
|
|
141
141
|
src: u.substring(7),
|
|
@@ -150,9 +150,9 @@ const sa = "0 0 24 24", on = (e) => e, rn = (e) => `ionicons ${e}`, yo = {
|
|
|
150
150
|
r = i;
|
|
151
151
|
else if (Lr.test(i) === !0)
|
|
152
152
|
r = `ionicons ion-${l.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
|
|
153
|
-
else if (
|
|
153
|
+
else if (da.test(i) === !0) {
|
|
154
154
|
r = "notranslate material-symbols";
|
|
155
|
-
const u = i.match(
|
|
155
|
+
const u = i.match(da);
|
|
156
156
|
u !== null && (i = i.substring(6), r += So[u[1]]), s = i;
|
|
157
157
|
} else {
|
|
158
158
|
r = "notranslate material-icons";
|
|
@@ -170,7 +170,7 @@ const sa = "0 0 24 24", on = (e) => e, rn = (e) => `ionicons ${e}`, yo = {
|
|
|
170
170
|
style: a.value,
|
|
171
171
|
"aria-hidden": "true"
|
|
172
172
|
};
|
|
173
|
-
return o.value.none === !0 ? d(e.tag, r,
|
|
173
|
+
return o.value.none === !0 ? d(e.tag, r, De(t.default)) : o.value.img === !0 ? d(e.tag, r, ot(t.default, [
|
|
174
174
|
d("img", { src: o.value.src })
|
|
175
175
|
])) : o.value.svg === !0 ? d(e.tag, r, ot(t.default, [
|
|
176
176
|
d("svg", {
|
|
@@ -188,7 +188,7 @@ const sa = "0 0 24 24", on = (e) => e, rn = (e) => `ionicons ${e}`, yo = {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
|
-
function
|
|
191
|
+
function Ll(e) {
|
|
192
192
|
if (Object(e.$parent) === e.$parent)
|
|
193
193
|
return e.$parent;
|
|
194
194
|
let { parent: t } = e.$;
|
|
@@ -209,16 +209,16 @@ function Hr(e) {
|
|
|
209
209
|
po(t, l);
|
|
210
210
|
}), Array.from(t);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Qn(e) {
|
|
213
213
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
214
214
|
}
|
|
215
215
|
function Co(e) {
|
|
216
216
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function fa(e) {
|
|
219
219
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function va(e, t) {
|
|
222
222
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
223
223
|
}
|
|
224
224
|
function Ir(e, t) {
|
|
@@ -232,11 +232,11 @@ function Ir(e, t) {
|
|
|
232
232
|
}
|
|
233
233
|
return !0;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function ma(e, t) {
|
|
236
236
|
return Array.isArray(t) === !0 ? e.length === t.length && e.every((l, a) => l === t[a]) : e.length === 1 && e[0] === t;
|
|
237
237
|
}
|
|
238
238
|
function jr(e, t) {
|
|
239
|
-
return Array.isArray(e) === !0 ?
|
|
239
|
+
return Array.isArray(e) === !0 ? ma(e, t) : Array.isArray(t) === !0 ? ma(t, e) : e === t;
|
|
240
240
|
}
|
|
241
241
|
function Nr(e, t) {
|
|
242
242
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
@@ -268,8 +268,8 @@ const ko = {
|
|
|
268
268
|
default: "q-router-link--exact-active"
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
function
|
|
272
|
-
const l = fe(), { props: a, proxy: n, emit: o } = l, r =
|
|
271
|
+
function Un({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
272
|
+
const l = fe(), { props: a, proxy: n, emit: o } = l, r = Qn(l), i = c(() => a.disable !== !0 && a.href !== void 0), s = t === !0 ? c(
|
|
273
273
|
() => r === !0 && a.disable !== !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
274
274
|
) : c(
|
|
275
275
|
() => r === !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
@@ -282,22 +282,22 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
282
282
|
} : {}), y = c(() => {
|
|
283
283
|
if (u.value === !1)
|
|
284
284
|
return -1;
|
|
285
|
-
const { matched: b } = v.value, { length:
|
|
285
|
+
const { matched: b } = v.value, { length: R } = b, E = b[R - 1];
|
|
286
286
|
if (E === void 0)
|
|
287
287
|
return -1;
|
|
288
288
|
const L = n.$route.matched;
|
|
289
289
|
if (L.length === 0)
|
|
290
290
|
return -1;
|
|
291
291
|
const T = L.findIndex(
|
|
292
|
-
|
|
292
|
+
va.bind(null, E)
|
|
293
293
|
);
|
|
294
294
|
if (T !== -1)
|
|
295
295
|
return T;
|
|
296
|
-
const B =
|
|
296
|
+
const B = fa(b[R - 2]);
|
|
297
297
|
return (
|
|
298
298
|
// we are dealing with nested routes
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
R > 1 && fa(E) === B && L[L.length - 1].path !== B ? L.findIndex(
|
|
300
|
+
va.bind(null, b[R - 2])
|
|
301
301
|
) : T
|
|
302
302
|
);
|
|
303
303
|
}), q = c(
|
|
@@ -312,7 +312,7 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
312
312
|
}
|
|
313
313
|
return null;
|
|
314
314
|
}
|
|
315
|
-
function V(b, { returnRouterError:
|
|
315
|
+
function V(b, { returnRouterError: R, to: E = a.to, replace: L = a.replace } = {}) {
|
|
316
316
|
if (a.disable === !0)
|
|
317
317
|
return b.preventDefault(), Promise.resolve(!1);
|
|
318
318
|
if (
|
|
@@ -323,14 +323,14 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
323
323
|
return Promise.resolve(!1);
|
|
324
324
|
b.preventDefault();
|
|
325
325
|
const T = n.$router[L === !0 ? "replace" : "push"](E);
|
|
326
|
-
return
|
|
326
|
+
return R === !0 ? T : T.then(() => {
|
|
327
327
|
}).catch(() => {
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
function _(b) {
|
|
331
331
|
if (u.value === !0) {
|
|
332
|
-
const
|
|
333
|
-
o("click", b,
|
|
332
|
+
const R = (E) => V(b, E);
|
|
333
|
+
o("click", b, R), b.defaultPrevented !== !0 && R();
|
|
334
334
|
} else
|
|
335
335
|
o("click", b);
|
|
336
336
|
}
|
|
@@ -362,7 +362,7 @@ const Yr = de({
|
|
|
362
362
|
},
|
|
363
363
|
emits: ["click"],
|
|
364
364
|
setup(e, { slots: t }) {
|
|
365
|
-
const { linkTag: l, linkAttrs: a, linkClass: n, navigateOnClick: o } =
|
|
365
|
+
const { linkTag: l, linkAttrs: a, linkClass: n, navigateOnClick: o } = Un(), r = c(() => ({
|
|
366
366
|
class: "q-breadcrumbs__el q-link flex inline items-center relative-position " + (e.disable !== !0 ? "q-link--focusable" + n.value : "q-breadcrumbs__el--disable"),
|
|
367
367
|
...a.value,
|
|
368
368
|
onClick: o
|
|
@@ -429,7 +429,7 @@ const Ur = ["", !0], Kr = de({
|
|
|
429
429
|
return () => {
|
|
430
430
|
if (t.default === void 0) return;
|
|
431
431
|
const r = Hr(
|
|
432
|
-
|
|
432
|
+
De(t.default)
|
|
433
433
|
);
|
|
434
434
|
if (r.length === 0) return;
|
|
435
435
|
let i = 1;
|
|
@@ -522,7 +522,7 @@ const Ur = ["", !0], Kr = de({
|
|
|
522
522
|
}, null, 8, ["size", "name", "color"])
|
|
523
523
|
]),
|
|
524
524
|
default: me(() => [
|
|
525
|
-
(ge(!0), Je(
|
|
525
|
+
(ge(!0), Je(Nl, null, Yl(u.value, (y, q) => (ge(), Ae(Yr, Mt({ key: q }, { ref_for: !0 }, n(y), {
|
|
526
526
|
label: y.label,
|
|
527
527
|
onClick: (g) => m(y)
|
|
528
528
|
}), null, 16, ["label", "onClick"]))), 128))
|
|
@@ -539,7 +539,7 @@ const Ur = ["", !0], Kr = de({
|
|
|
539
539
|
};
|
|
540
540
|
function Xr(e) {
|
|
541
541
|
return {
|
|
542
|
-
cSize: c(() => e.size in
|
|
542
|
+
cSize: c(() => e.size in Mn ? `${Mn[e.size]}px` : e.size),
|
|
543
543
|
classes: c(
|
|
544
544
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
545
545
|
)
|
|
@@ -575,7 +575,7 @@ const Eo = de({
|
|
|
575
575
|
]);
|
|
576
576
|
}
|
|
577
577
|
});
|
|
578
|
-
function
|
|
578
|
+
function En(e, t) {
|
|
579
579
|
const l = e.style;
|
|
580
580
|
for (const a in t)
|
|
581
581
|
l[a] = t[a];
|
|
@@ -621,7 +621,7 @@ try {
|
|
|
621
621
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
622
622
|
} catch {
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Jl() {
|
|
625
625
|
}
|
|
626
626
|
function Jr(e) {
|
|
627
627
|
return e.button === 0;
|
|
@@ -654,7 +654,7 @@ function Ke(e) {
|
|
|
654
654
|
function Fe(e) {
|
|
655
655
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function sn(e, t) {
|
|
658
658
|
if (e === void 0 || t === !0 && e.__dragPrevented === !0)
|
|
659
659
|
return;
|
|
660
660
|
const l = t === !0 ? (a) => {
|
|
@@ -676,11 +676,11 @@ function _l(e, t) {
|
|
|
676
676
|
a[0].removeEventListener(a[1], e[a[2]], Re[a[3]]);
|
|
677
677
|
}), e[l] = void 0);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function Kn(e) {
|
|
680
680
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
681
681
|
}
|
|
682
682
|
function Rt(e, t) {
|
|
683
|
-
return
|
|
683
|
+
return Kn(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
684
684
|
}
|
|
685
685
|
function ei(e, t = 250) {
|
|
686
686
|
let l = !1, a;
|
|
@@ -690,13 +690,13 @@ function ei(e, t = 250) {
|
|
|
690
690
|
}, t), a = e.apply(this, arguments)), a;
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function ha(e, t, l, a) {
|
|
694
694
|
l.modifiers.stop === !0 && nt(e);
|
|
695
695
|
const n = l.modifiers.color;
|
|
696
696
|
let o = l.modifiers.center;
|
|
697
697
|
o = o === !0 || a === !0;
|
|
698
698
|
const r = document.createElement("span"), i = document.createElement("span"), s = xl(e), { left: v, top: u, width: m, height: S } = t.getBoundingClientRect(), h = Math.sqrt(m * m + S * S), y = h / 2, q = `${(m - h) / 2}px`, g = o ? q : `${s.left - v - y}px`, F = `${(S - h) / 2}px`, M = o ? F : `${s.top - u - y}px`;
|
|
699
|
-
i.className = "q-ripple__inner",
|
|
699
|
+
i.className = "q-ripple__inner", En(i, {
|
|
700
700
|
height: `${h}px`,
|
|
701
701
|
width: `${h}px`,
|
|
702
702
|
transform: `translate3d(${g},${M},0) scale3d(.2,.2,1)`,
|
|
@@ -714,7 +714,7 @@ function ma(e, t, l, a) {
|
|
|
714
714
|
}, 250);
|
|
715
715
|
}, 50);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function ga(e, { modifiers: t, value: l, arg: a }) {
|
|
718
718
|
const n = Object.assign({}, e.cfg.ripple, t, l);
|
|
719
719
|
e.modifiers = {
|
|
720
720
|
early: n.early === !0,
|
|
@@ -724,7 +724,7 @@ function ha(e, { modifiers: t, value: l, arg: a }) {
|
|
|
724
724
|
keyCodes: [].concat(n.keyCodes || 13)
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const Do = Nn(
|
|
728
728
|
{
|
|
729
729
|
name: "ripple",
|
|
730
730
|
beforeMount(e, t) {
|
|
@@ -736,13 +736,13 @@ const zo = jn(
|
|
|
736
736
|
modifiers: {},
|
|
737
737
|
abort: [],
|
|
738
738
|
start(n) {
|
|
739
|
-
a.enabled === !0 && n.qSkipRipple !== !0 && n.type === (a.modifiers.early === !0 ? "pointerdown" : "click") &&
|
|
739
|
+
a.enabled === !0 && n.qSkipRipple !== !0 && n.type === (a.modifiers.early === !0 ? "pointerdown" : "click") && ha(n, e, a, n.qKeyEvent === !0);
|
|
740
740
|
},
|
|
741
741
|
keystart: ei((n) => {
|
|
742
|
-
a.enabled === !0 && n.qSkipRipple !== !0 && Rt(n, a.modifiers.keyCodes) === !0 && n.type === `key${a.modifiers.early === !0 ? "down" : "up"}` &&
|
|
742
|
+
a.enabled === !0 && n.qSkipRipple !== !0 && Rt(n, a.modifiers.keyCodes) === !0 && n.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && ha(n, e, a, !0);
|
|
743
743
|
}, 300)
|
|
744
744
|
};
|
|
745
|
-
|
|
745
|
+
ga(a, t), e.__qripple = a, jt(a, "main", [
|
|
746
746
|
[e, "pointerdown", "start", "passive"],
|
|
747
747
|
[e, "click", "start", "passive"],
|
|
748
748
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -752,7 +752,7 @@ const zo = jn(
|
|
|
752
752
|
updated(e, t) {
|
|
753
753
|
if (t.oldValue !== t.value) {
|
|
754
754
|
const l = e.__qripple;
|
|
755
|
-
l !== void 0 && (l.enabled = t.value !== !1, l.enabled === !0 && Object(t.value) === t.value &&
|
|
755
|
+
l !== void 0 && (l.enabled = t.value !== !1, l.enabled === !0 && Object(t.value) === t.value && ga(l, t));
|
|
756
756
|
}
|
|
757
757
|
},
|
|
758
758
|
beforeUnmount(e) {
|
|
@@ -762,7 +762,7 @@ const zo = jn(
|
|
|
762
762
|
}), _l(t, "main"), delete e._qripple);
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
),
|
|
765
|
+
), ba = {
|
|
766
766
|
none: 0,
|
|
767
767
|
xs: 4,
|
|
768
768
|
sm: 8,
|
|
@@ -826,12 +826,12 @@ const ri = {
|
|
|
826
826
|
round: Boolean
|
|
827
827
|
};
|
|
828
828
|
function ui(e) {
|
|
829
|
-
const t = bl(e, ti), l = Mo(e), { hasRouterLink: a, hasLink: n, linkTag: o, linkAttrs: r, navigateOnClick: i } =
|
|
829
|
+
const t = bl(e, ti), l = Mo(e), { hasRouterLink: a, hasLink: n, linkTag: o, linkAttrs: r, navigateOnClick: i } = Un({
|
|
830
830
|
fallbackTag: "button"
|
|
831
831
|
}), s = c(() => {
|
|
832
832
|
const g = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
833
833
|
return e.padding !== void 0 ? Object.assign({}, g, {
|
|
834
|
-
padding: e.padding.split(/\s+/).map((F) => F in
|
|
834
|
+
padding: e.padding.split(/\s+/).map((F) => F in ba ? ba[F] + "px" : F).join(" "),
|
|
835
835
|
minWidth: "0",
|
|
836
836
|
minHeight: "0"
|
|
837
837
|
}) : g;
|
|
@@ -913,8 +913,8 @@ const Le = de({
|
|
|
913
913
|
onMousedown: B
|
|
914
914
|
};
|
|
915
915
|
if (a.$q.platform.has.touch === !0) {
|
|
916
|
-
const
|
|
917
|
-
C[`onTouchstart${
|
|
916
|
+
const O = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
917
|
+
C[`onTouchstart${O}`] = T;
|
|
918
918
|
}
|
|
919
919
|
return C;
|
|
920
920
|
}
|
|
@@ -922,7 +922,7 @@ const Le = de({
|
|
|
922
922
|
// needed; especially for disabled <a> tags
|
|
923
923
|
onClick: Fe
|
|
924
924
|
};
|
|
925
|
-
}),
|
|
925
|
+
}), R = c(() => ({
|
|
926
926
|
ref: S,
|
|
927
927
|
class: "q-btn q-btn-item non-selectable no-outline " + n.value,
|
|
928
928
|
style: o.value,
|
|
@@ -933,8 +933,8 @@ const Le = de({
|
|
|
933
933
|
if (S.value !== null) {
|
|
934
934
|
if (C !== void 0) {
|
|
935
935
|
if (C.defaultPrevented === !0) return;
|
|
936
|
-
const
|
|
937
|
-
if (e.type === "submit" &&
|
|
936
|
+
const O = document.activeElement;
|
|
937
|
+
if (e.type === "submit" && O !== document.body && S.value.contains(O) === !1 && O.contains(S.value) === !1) {
|
|
938
938
|
C.qAvoidFocus !== !0 && S.value.focus();
|
|
939
939
|
const H = () => {
|
|
940
940
|
var X;
|
|
@@ -947,38 +947,38 @@ const Le = de({
|
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
function L(C) {
|
|
950
|
-
S.value !== null && (l("keydown", C), Rt(C, [13, 32]) === !0 && nl !== S.value && (nl !== null &&
|
|
950
|
+
S.value !== null && (l("keydown", C), Rt(C, [13, 32]) === !0 && nl !== S.value && (nl !== null && D(), C.defaultPrevented !== !0 && (C.qAvoidFocus !== !0 && S.value.focus(), nl = S.value, S.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), S.value.addEventListener("blur", A, ct)), Fe(C)));
|
|
951
951
|
}
|
|
952
952
|
function T(C) {
|
|
953
|
-
S.value !== null && (l("touchstart", C), C.defaultPrevented !== !0 && (ll !== S.value && (ll !== null &&
|
|
953
|
+
S.value !== null && (l("touchstart", C), C.defaultPrevented !== !0 && (ll !== S.value && (ll !== null && D(), ll = S.value, y = C.target, y.addEventListener("touchcancel", A, ct), y.addEventListener("touchend", A, ct)), q = !0, g !== null && clearTimeout(g), g = setTimeout(() => {
|
|
954
954
|
g = null, q = !1;
|
|
955
955
|
}, 200)));
|
|
956
956
|
}
|
|
957
957
|
function B(C) {
|
|
958
|
-
S.value !== null && (C.qSkipRipple = q === !0, l("mousedown", C), C.defaultPrevented !== !0 && al !== S.value && (al !== null &&
|
|
958
|
+
S.value !== null && (C.qSkipRipple = q === !0, l("mousedown", C), C.defaultPrevented !== !0 && al !== S.value && (al !== null && D(), al = S.value, S.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, ct)));
|
|
959
959
|
}
|
|
960
960
|
function A(C) {
|
|
961
961
|
if (S.value !== null && !((C == null ? void 0 : C.type) === "blur" && document.activeElement === S.value)) {
|
|
962
962
|
if ((C == null ? void 0 : C.type) === "keyup") {
|
|
963
963
|
if (nl === S.value && Rt(C, [13, 32]) === !0) {
|
|
964
|
-
const
|
|
965
|
-
|
|
964
|
+
const O = new MouseEvent("click", C);
|
|
965
|
+
O.qKeyEvent = !0, C.defaultPrevented === !0 && Ke(O), C.cancelBubble === !0 && nt(O), S.value.dispatchEvent(O), Fe(C), C.qKeyEvent = !0;
|
|
966
966
|
}
|
|
967
967
|
l("keyup", C);
|
|
968
968
|
}
|
|
969
|
-
|
|
969
|
+
D();
|
|
970
970
|
}
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function D(C) {
|
|
973
973
|
var H, X;
|
|
974
|
-
const
|
|
975
|
-
C !== !0 && (ll === S.value || al === S.value) &&
|
|
974
|
+
const O = h.value;
|
|
975
|
+
C !== !0 && (ll === S.value || al === S.value) && O !== null && O !== document.activeElement && (O.setAttribute("tabindex", -1), O.focus()), ll === S.value && (y !== null && (y.removeEventListener("touchcancel", A, ct), y.removeEventListener("touchend", A, ct)), ll = y = null), al === S.value && (document.removeEventListener("mouseup", A, ct), al = null), nl === S.value && (document.removeEventListener("keyup", A, !0), (H = S.value) == null || H.removeEventListener("blur", A, ct), nl = null), (X = S.value) == null || X.classList.remove("q-btn--active");
|
|
976
976
|
}
|
|
977
977
|
function U(C) {
|
|
978
978
|
Fe(C), C.qSkipRipple = !0;
|
|
979
979
|
}
|
|
980
|
-
return
|
|
981
|
-
|
|
980
|
+
return ze(() => {
|
|
981
|
+
D(!0);
|
|
982
982
|
}), Object.assign(a, {
|
|
983
983
|
click: (C) => {
|
|
984
984
|
m.value === !0 && E(C);
|
|
@@ -1000,13 +1000,13 @@ const Le = de({
|
|
|
1000
1000
|
role: "img"
|
|
1001
1001
|
})
|
|
1002
1002
|
);
|
|
1003
|
-
const
|
|
1003
|
+
const O = [
|
|
1004
1004
|
d("span", {
|
|
1005
1005
|
class: "q-focus-helper",
|
|
1006
1006
|
ref: h
|
|
1007
1007
|
})
|
|
1008
1008
|
];
|
|
1009
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
1009
|
+
return e.loading === !0 && e.percentage !== void 0 && O.push(
|
|
1010
1010
|
d("span", {
|
|
1011
1011
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
1012
1012
|
}, [
|
|
@@ -1015,11 +1015,11 @@ const Le = de({
|
|
|
1015
1015
|
style: _.value
|
|
1016
1016
|
})
|
|
1017
1017
|
])
|
|
1018
|
-
),
|
|
1018
|
+
), O.push(
|
|
1019
1019
|
d("span", {
|
|
1020
1020
|
class: "q-btn__content text-center col items-center q-anchor--skip " + r.value
|
|
1021
1021
|
}, C)
|
|
1022
|
-
), e.loading !== null &&
|
|
1022
|
+
), e.loading !== null && O.push(
|
|
1023
1023
|
d(wt, {
|
|
1024
1024
|
name: "q-transition--fade"
|
|
1025
1025
|
}, () => e.loading === !0 ? [
|
|
@@ -1031,11 +1031,11 @@ const Le = de({
|
|
|
1031
1031
|
), dl(
|
|
1032
1032
|
d(
|
|
1033
1033
|
v.value,
|
|
1034
|
-
|
|
1035
|
-
|
|
1034
|
+
R.value,
|
|
1035
|
+
O
|
|
1036
1036
|
),
|
|
1037
1037
|
[[
|
|
1038
|
-
|
|
1038
|
+
Do,
|
|
1039
1039
|
M.value,
|
|
1040
1040
|
void 0,
|
|
1041
1041
|
V.value
|
|
@@ -1090,12 +1090,12 @@ const Le = de({
|
|
|
1090
1090
|
}, null, 8, ["label"])) : lt("", !0)
|
|
1091
1091
|
]));
|
|
1092
1092
|
}
|
|
1093
|
-
}),
|
|
1093
|
+
}), Gl = (e, t) => {
|
|
1094
1094
|
const l = e.__vccOpts || e;
|
|
1095
1095
|
for (const [a, n] of t)
|
|
1096
1096
|
l[a] = n;
|
|
1097
1097
|
return l;
|
|
1098
|
-
}, lc = /* @__PURE__ */
|
|
1098
|
+
}, lc = /* @__PURE__ */ Gl(ci, [["__scopeId", "data-v-c5e3fee0"]]), rt = {
|
|
1099
1099
|
dark: {
|
|
1100
1100
|
type: Boolean,
|
|
1101
1101
|
default: null
|
|
@@ -1119,7 +1119,7 @@ function di(e, t) {
|
|
|
1119
1119
|
refocusTarget: n
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const en = {
|
|
1123
1123
|
name: String
|
|
1124
1124
|
};
|
|
1125
1125
|
function fi(e) {
|
|
@@ -1129,7 +1129,7 @@ function fi(e) {
|
|
|
1129
1129
|
value: e.modelValue
|
|
1130
1130
|
}));
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function zo(e = {}) {
|
|
1133
1133
|
return (t, l, a) => {
|
|
1134
1134
|
t[l](
|
|
1135
1135
|
d("input", {
|
|
@@ -1151,7 +1151,7 @@ const vi = {
|
|
|
1151
1151
|
}, mi = {
|
|
1152
1152
|
...rt,
|
|
1153
1153
|
...gl,
|
|
1154
|
-
...
|
|
1154
|
+
...en,
|
|
1155
1155
|
modelValue: {
|
|
1156
1156
|
required: !0,
|
|
1157
1157
|
default: null
|
|
@@ -1180,41 +1180,41 @@ function gi(e, t) {
|
|
|
1180
1180
|
const { props: l, slots: a, emit: n, proxy: o } = fe(), { $q: r } = o, i = it(l, r), s = P(null), { refocusTargetEl: v, refocusTarget: u } = di(l, s), m = bl(l, vi), S = c(
|
|
1181
1181
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
1182
1182
|
), h = c(() => {
|
|
1183
|
-
const
|
|
1184
|
-
return S.value === !0 ? l.modelValue.findIndex((U) => tl(U) ===
|
|
1183
|
+
const D = tl(l.val);
|
|
1184
|
+
return S.value === !0 ? l.modelValue.findIndex((U) => tl(U) === D) : -1;
|
|
1185
1185
|
}), y = c(() => S.value === !0 ? h.value !== -1 : tl(l.modelValue) === tl(l.trueValue)), q = c(() => S.value === !0 ? h.value === -1 : tl(l.modelValue) === tl(l.falseValue)), g = c(
|
|
1186
1186
|
() => y.value === !1 && q.value === !1
|
|
1187
1187
|
), F = c(() => l.disable === !0 ? -1 : l.tabindex || 0), M = c(
|
|
1188
1188
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (l.disable === !0 ? " disabled" : "") + (i.value === !0 ? ` q-${e}--dark` : "") + (l.dense === !0 ? ` q-${e}--dense` : "") + (l.leftLabel === !0 ? " reverse" : "")
|
|
1189
1189
|
), V = c(() => {
|
|
1190
|
-
const
|
|
1191
|
-
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${
|
|
1190
|
+
const D = y.value === !0 ? "truthy" : q.value === !0 ? "falsy" : "indet", U = l.color !== void 0 && (l.keepColor === !0 || q.value !== !0) ? ` text-${l.color}` : "";
|
|
1191
|
+
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${D}${U}`;
|
|
1192
1192
|
}), _ = c(() => {
|
|
1193
|
-
const
|
|
1194
|
-
return l.name !== void 0 && Object.assign(
|
|
1193
|
+
const D = { type: "checkbox" };
|
|
1194
|
+
return l.name !== void 0 && Object.assign(D, {
|
|
1195
1195
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
1196
1196
|
".checked": y.value,
|
|
1197
1197
|
"^checked": y.value === !0 ? "checked" : void 0,
|
|
1198
1198
|
name: l.name,
|
|
1199
1199
|
value: S.value === !0 ? l.val : l.trueValue
|
|
1200
|
-
}),
|
|
1201
|
-
}), b =
|
|
1202
|
-
const
|
|
1200
|
+
}), D;
|
|
1201
|
+
}), b = zo(_), R = c(() => {
|
|
1202
|
+
const D = {
|
|
1203
1203
|
tabindex: F.value,
|
|
1204
1204
|
role: "checkbox",
|
|
1205
1205
|
"aria-label": l.label,
|
|
1206
1206
|
"aria-checked": g.value === !0 ? "mixed" : y.value === !0 ? "true" : "false"
|
|
1207
1207
|
};
|
|
1208
|
-
return l.disable === !0 && (
|
|
1208
|
+
return l.disable === !0 && (D["aria-disabled"] = "true"), D;
|
|
1209
1209
|
});
|
|
1210
|
-
function E(
|
|
1211
|
-
|
|
1210
|
+
function E(D) {
|
|
1211
|
+
D !== void 0 && (Fe(D), u(D)), l.disable !== !0 && n("update:modelValue", L(), D);
|
|
1212
1212
|
}
|
|
1213
1213
|
function L() {
|
|
1214
1214
|
if (S.value === !0) {
|
|
1215
1215
|
if (y.value === !0) {
|
|
1216
|
-
const
|
|
1217
|
-
return
|
|
1216
|
+
const D = l.modelValue.slice();
|
|
1217
|
+
return D.splice(h.value, 1), D;
|
|
1218
1218
|
}
|
|
1219
1219
|
return l.modelValue.concat([l.val]);
|
|
1220
1220
|
}
|
|
@@ -1228,17 +1228,17 @@ function gi(e, t) {
|
|
|
1228
1228
|
return l.toggleOrder !== "ft" ? l.trueValue : l.falseValue;
|
|
1229
1229
|
return l.indeterminateValue;
|
|
1230
1230
|
}
|
|
1231
|
-
function T(
|
|
1232
|
-
(
|
|
1231
|
+
function T(D) {
|
|
1232
|
+
(D.keyCode === 13 || D.keyCode === 32) && Fe(D);
|
|
1233
1233
|
}
|
|
1234
|
-
function B(
|
|
1235
|
-
(
|
|
1234
|
+
function B(D) {
|
|
1235
|
+
(D.keyCode === 13 || D.keyCode === 32) && E(D);
|
|
1236
1236
|
}
|
|
1237
1237
|
const A = t(y, g);
|
|
1238
1238
|
return Object.assign(o, { toggle: E }), () => {
|
|
1239
|
-
const
|
|
1239
|
+
const D = A();
|
|
1240
1240
|
l.disable !== !0 && b(
|
|
1241
|
-
|
|
1241
|
+
D,
|
|
1242
1242
|
"unshift",
|
|
1243
1243
|
` q-${e}__native absolute q-ma-none q-pa-none`
|
|
1244
1244
|
);
|
|
@@ -1247,10 +1247,10 @@ function gi(e, t) {
|
|
|
1247
1247
|
class: V.value,
|
|
1248
1248
|
style: m.value,
|
|
1249
1249
|
"aria-hidden": "true"
|
|
1250
|
-
},
|
|
1250
|
+
}, D)
|
|
1251
1251
|
];
|
|
1252
1252
|
v.value !== null && U.push(v.value);
|
|
1253
|
-
const C = l.label !== void 0 ? ot(a.default, [l.label]) :
|
|
1253
|
+
const C = l.label !== void 0 ? ot(a.default, [l.label]) : De(a.default);
|
|
1254
1254
|
return C !== void 0 && U.push(
|
|
1255
1255
|
d("div", {
|
|
1256
1256
|
class: `q-${e}__label q-anchor--skip`
|
|
@@ -1258,7 +1258,7 @@ function gi(e, t) {
|
|
|
1258
1258
|
), d("div", {
|
|
1259
1259
|
ref: s,
|
|
1260
1260
|
class: M.value,
|
|
1261
|
-
...
|
|
1261
|
+
...R.value,
|
|
1262
1262
|
onClick: E,
|
|
1263
1263
|
onKeydown: T,
|
|
1264
1264
|
onKeyup: B
|
|
@@ -1283,7 +1283,7 @@ const bi = () => d("div", {
|
|
|
1283
1283
|
d: "M4,14H20V10H4"
|
|
1284
1284
|
})
|
|
1285
1285
|
])
|
|
1286
|
-
]),
|
|
1286
|
+
]), Fl = de({
|
|
1287
1287
|
name: "QCheckbox",
|
|
1288
1288
|
props: mi,
|
|
1289
1289
|
emits: hi,
|
|
@@ -1351,7 +1351,7 @@ const bi = () => d("div", {
|
|
|
1351
1351
|
}), Ot = P(
|
|
1352
1352
|
!1
|
|
1353
1353
|
);
|
|
1354
|
-
let
|
|
1354
|
+
let $n;
|
|
1355
1355
|
function wi(e, t) {
|
|
1356
1356
|
const l = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
|
|
1357
1357
|
return {
|
|
@@ -1406,7 +1406,7 @@ function pi(e) {
|
|
|
1406
1406
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
1407
1407
|
n.bex = !0;
|
|
1408
1408
|
else {
|
|
1409
|
-
if (window.Capacitor !== void 0 ? (n.capacitor = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (n.cordova = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "cordova"), Ot.value === !0 && (
|
|
1409
|
+
if (window.Capacitor !== void 0 ? (n.capacitor = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (n.cordova = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "cordova"), Ot.value === !0 && ($n = { is: { ...n } }), Vo === !0 && n.mac === !0 && (n.desktop === !0 && n.safari === !0 || n.nativeMobile === !0 && n.android !== !0 && n.ios !== !0 && n.ipad !== !0)) {
|
|
1410
1410
|
delete n.mac, delete n.desktop;
|
|
1411
1411
|
const r = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
1412
1412
|
Object.assign(n, {
|
|
@@ -1420,22 +1420,22 @@ function pi(e) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
return n;
|
|
1422
1422
|
}
|
|
1423
|
-
const
|
|
1423
|
+
const ya = navigator.userAgent || navigator.vendor || window.opera, Ci = {
|
|
1424
1424
|
has: {
|
|
1425
1425
|
touch: !1,
|
|
1426
1426
|
webStorage: !1
|
|
1427
1427
|
},
|
|
1428
1428
|
within: { iframe: !1 }
|
|
1429
1429
|
}, He = {
|
|
1430
|
-
userAgent:
|
|
1431
|
-
is: pi(
|
|
1430
|
+
userAgent: ya,
|
|
1431
|
+
is: pi(ya),
|
|
1432
1432
|
has: {
|
|
1433
1433
|
touch: Vo
|
|
1434
1434
|
},
|
|
1435
1435
|
within: {
|
|
1436
1436
|
iframe: window.self !== window.top
|
|
1437
1437
|
}
|
|
1438
|
-
},
|
|
1438
|
+
}, Dn = {
|
|
1439
1439
|
install(e) {
|
|
1440
1440
|
const { $q: t } = e;
|
|
1441
1441
|
Ot.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
@@ -1454,7 +1454,7 @@ const ba = navigator.userAgent || navigator.vendor || window.opera, Ci = {
|
|
|
1454
1454
|
} catch {
|
|
1455
1455
|
}
|
|
1456
1456
|
return e = !1, !1;
|
|
1457
|
-
}), Object.assign(
|
|
1457
|
+
}), Object.assign(Dn, He), Ot.value === !0 && (Object.assign(Dn, $n, Ci), $n = null);
|
|
1458
1458
|
}
|
|
1459
1459
|
function ki() {
|
|
1460
1460
|
const e = P(!Ot.value);
|
|
@@ -1462,7 +1462,7 @@ function ki() {
|
|
|
1462
1462
|
e.value = !0;
|
|
1463
1463
|
}), { isHydrated: e };
|
|
1464
1464
|
}
|
|
1465
|
-
const Bo = typeof ResizeObserver < "u",
|
|
1465
|
+
const Bo = typeof ResizeObserver < "u", wa = Bo === !0 ? {} : {
|
|
1466
1466
|
style: "display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",
|
|
1467
1467
|
url: "about:blank"
|
|
1468
1468
|
}, vl = de({
|
|
@@ -1495,9 +1495,9 @@ const Bo = typeof ResizeObserver < "u", ya = Bo === !0 ? {} : {
|
|
|
1495
1495
|
};
|
|
1496
1496
|
return ft(() => {
|
|
1497
1497
|
v();
|
|
1498
|
-
}),
|
|
1498
|
+
}), ze(() => {
|
|
1499
1499
|
l !== null && clearTimeout(l), s !== void 0 && (s.disconnect !== void 0 ? s.disconnect() : a && s.unobserve(a));
|
|
1500
|
-
}),
|
|
1500
|
+
}), Jl;
|
|
1501
1501
|
} else {
|
|
1502
1502
|
let s = function() {
|
|
1503
1503
|
l !== null && (clearTimeout(l), l = null), m !== void 0 && (m.removeEventListener !== void 0 && m.removeEventListener("resize", o, Re.passive), m = void 0);
|
|
@@ -1510,23 +1510,23 @@ const Bo = typeof ResizeObserver < "u", ya = Bo === !0 ? {} : {
|
|
|
1510
1510
|
xe(() => {
|
|
1511
1511
|
a = i.$el, a && v();
|
|
1512
1512
|
});
|
|
1513
|
-
}),
|
|
1513
|
+
}), ze(s), () => {
|
|
1514
1514
|
if (u.value === !0)
|
|
1515
1515
|
return d("object", {
|
|
1516
1516
|
class: "q--avoid-card-border",
|
|
1517
|
-
style:
|
|
1517
|
+
style: wa.style,
|
|
1518
1518
|
tabindex: -1,
|
|
1519
1519
|
// fix for Firefox
|
|
1520
1520
|
type: "text/html",
|
|
1521
|
-
data:
|
|
1521
|
+
data: wa.url,
|
|
1522
1522
|
"aria-hidden": "true",
|
|
1523
1523
|
onLoad: v
|
|
1524
1524
|
});
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
|
-
}),
|
|
1529
|
-
function
|
|
1528
|
+
}), Wn = [Element, String], _i = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
1529
|
+
function Xn(e, t) {
|
|
1530
1530
|
let l = Zr(t);
|
|
1531
1531
|
if (l === void 0) {
|
|
1532
1532
|
if (e == null)
|
|
@@ -1535,14 +1535,14 @@ function Wn(e, t) {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
return _i.includes(l) ? window : l;
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function Zn(e) {
|
|
1539
1539
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Jn(e) {
|
|
1542
1542
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
1543
1543
|
}
|
|
1544
1544
|
function Ro(e, t, l = 0) {
|
|
1545
|
-
const a = arguments[3] === void 0 ? performance.now() : arguments[3], n =
|
|
1545
|
+
const a = arguments[3] === void 0 ? performance.now() : arguments[3], n = Zn(e);
|
|
1546
1546
|
if (l <= 0) {
|
|
1547
1547
|
n !== t && zn(e, t);
|
|
1548
1548
|
return;
|
|
@@ -1553,14 +1553,14 @@ function Ro(e, t, l = 0) {
|
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
1555
|
function Oo(e, t, l = 0) {
|
|
1556
|
-
const a = arguments[3] === void 0 ? performance.now() : arguments[3], n =
|
|
1556
|
+
const a = arguments[3] === void 0 ? performance.now() : arguments[3], n = Jn(e);
|
|
1557
1557
|
if (l <= 0) {
|
|
1558
|
-
n !== t &&
|
|
1558
|
+
n !== t && Tn(e, t);
|
|
1559
1559
|
return;
|
|
1560
1560
|
}
|
|
1561
1561
|
requestAnimationFrame((o) => {
|
|
1562
1562
|
const r = o - a, i = n + (t - n) / Math.max(r, l) * r;
|
|
1563
|
-
|
|
1563
|
+
Tn(e, i), i !== t && Oo(e, t, l - r, o);
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
function zn(e, t) {
|
|
@@ -1570,36 +1570,36 @@ function zn(e, t) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
e.scrollTop = t;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function Tn(e, t) {
|
|
1574
1574
|
if (e === window) {
|
|
1575
1575
|
window.scrollTo(t, window.pageYOffset || window.scrollY || document.body.scrollTop || 0);
|
|
1576
1576
|
return;
|
|
1577
1577
|
}
|
|
1578
1578
|
e.scrollLeft = t;
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function Sa(e, t, l) {
|
|
1581
1581
|
if (l) {
|
|
1582
1582
|
Ro(e, t, l);
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
zn(e, t);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function cn(e, t, l) {
|
|
1588
1588
|
if (l) {
|
|
1589
1589
|
Oo(e, t, l);
|
|
1590
1590
|
return;
|
|
1591
1591
|
}
|
|
1592
|
-
|
|
1592
|
+
Tn(e, t);
|
|
1593
1593
|
}
|
|
1594
|
-
let
|
|
1595
|
-
function
|
|
1596
|
-
if (
|
|
1597
|
-
return
|
|
1594
|
+
let Dl;
|
|
1595
|
+
function Hl() {
|
|
1596
|
+
if (Dl !== void 0)
|
|
1597
|
+
return Dl;
|
|
1598
1598
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
1599
|
-
|
|
1599
|
+
En(e, {
|
|
1600
1600
|
width: "100%",
|
|
1601
1601
|
height: "200px"
|
|
1602
|
-
}),
|
|
1602
|
+
}), En(t, {
|
|
1603
1603
|
position: "absolute",
|
|
1604
1604
|
top: "0px",
|
|
1605
1605
|
left: "0px",
|
|
@@ -1611,12 +1611,12 @@ function Fl() {
|
|
|
1611
1611
|
const l = e.offsetWidth;
|
|
1612
1612
|
t.style.overflow = "scroll";
|
|
1613
1613
|
let a = e.offsetWidth;
|
|
1614
|
-
return l === a && (a = t.clientWidth), t.remove(),
|
|
1614
|
+
return l === a && (a = t.clientWidth), t.remove(), Dl = l - a, Dl;
|
|
1615
1615
|
}
|
|
1616
1616
|
function qi(e, t = !0) {
|
|
1617
1617
|
return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
|
|
1618
1618
|
}
|
|
1619
|
-
const { passive:
|
|
1619
|
+
const { passive: pa } = Re, xi = ["both", "horizontal", "vertical"], Po = de({
|
|
1620
1620
|
name: "QScrollObserver",
|
|
1621
1621
|
props: {
|
|
1622
1622
|
axis: {
|
|
@@ -1625,7 +1625,7 @@ const { passive: Sa } = Re, xi = ["both", "horizontal", "vertical"], Po = de({
|
|
|
1625
1625
|
default: "vertical"
|
|
1626
1626
|
},
|
|
1627
1627
|
debounce: [String, Number],
|
|
1628
|
-
scrollTarget:
|
|
1628
|
+
scrollTarget: Wn
|
|
1629
1629
|
},
|
|
1630
1630
|
emits: ["scroll"],
|
|
1631
1631
|
setup(e, { emit: t }) {
|
|
@@ -1651,7 +1651,7 @@ const { passive: Sa } = Re, xi = ["both", "horizontal", "vertical"], Po = de({
|
|
|
1651
1651
|
});
|
|
1652
1652
|
function r() {
|
|
1653
1653
|
a == null || a();
|
|
1654
|
-
const m = Math.max(0,
|
|
1654
|
+
const m = Math.max(0, Zn(n)), S = Jn(n), h = {
|
|
1655
1655
|
top: m - l.position.top,
|
|
1656
1656
|
left: S - l.position.left
|
|
1657
1657
|
};
|
|
@@ -1660,10 +1660,10 @@ const { passive: Sa } = Re, xi = ["both", "horizontal", "vertical"], Po = de({
|
|
|
1660
1660
|
l.position = { top: m, left: S }, l.directionChanged = l.direction !== y, l.delta = h, l.directionChanged === !0 && (l.direction = y, l.inflectionPoint = l.position), t("scroll", { ...l });
|
|
1661
1661
|
}
|
|
1662
1662
|
function i() {
|
|
1663
|
-
n =
|
|
1663
|
+
n = Xn(o, e.scrollTarget), n.addEventListener("scroll", v, pa), v(!0);
|
|
1664
1664
|
}
|
|
1665
1665
|
function s() {
|
|
1666
|
-
n !== void 0 && (n.removeEventListener("scroll", v,
|
|
1666
|
+
n !== void 0 && (n.removeEventListener("scroll", v, pa), n = void 0);
|
|
1667
1667
|
}
|
|
1668
1668
|
function v(m) {
|
|
1669
1669
|
if (m === !0 || e.debounce === 0 || e.debounce === "0")
|
|
@@ -1678,39 +1678,39 @@ const { passive: Sa } = Re, xi = ["both", "horizontal", "vertical"], Po = de({
|
|
|
1678
1678
|
const { proxy: u } = fe();
|
|
1679
1679
|
return J(() => u.$q.lang.rtl, r), ft(() => {
|
|
1680
1680
|
o = u.$el.parentNode, i();
|
|
1681
|
-
}),
|
|
1681
|
+
}), ze(() => {
|
|
1682
1682
|
a == null || a(), s();
|
|
1683
1683
|
}), Object.assign(u, {
|
|
1684
1684
|
trigger: v,
|
|
1685
1685
|
getPosition: () => l
|
|
1686
|
-
}),
|
|
1686
|
+
}), Jl;
|
|
1687
1687
|
}
|
|
1688
|
-
}),
|
|
1688
|
+
}), Gn = {
|
|
1689
1689
|
left: !0,
|
|
1690
1690
|
right: !0,
|
|
1691
1691
|
up: !0,
|
|
1692
1692
|
down: !0,
|
|
1693
1693
|
horizontal: !0,
|
|
1694
1694
|
vertical: !0
|
|
1695
|
-
}, Mi = Object.keys(
|
|
1696
|
-
|
|
1697
|
-
function
|
|
1695
|
+
}, Mi = Object.keys(Gn);
|
|
1696
|
+
Gn.all = !0;
|
|
1697
|
+
function Ca(e) {
|
|
1698
1698
|
const t = {};
|
|
1699
1699
|
for (const l of Mi)
|
|
1700
1700
|
e[l] === !0 && (t[l] = !0);
|
|
1701
|
-
return Object.keys(t).length === 0 ?
|
|
1701
|
+
return Object.keys(t).length === 0 ? Gn : (t.horizontal === !0 ? t.left = t.right = !0 : t.left === !0 && t.right === !0 && (t.horizontal = !0), t.vertical === !0 ? t.up = t.down = !0 : t.up === !0 && t.down === !0 && (t.vertical = !0), t.horizontal === !0 && t.vertical === !0 && (t.all = !0), t);
|
|
1702
1702
|
}
|
|
1703
1703
|
const Ei = ["INPUT", "TEXTAREA"];
|
|
1704
|
-
function
|
|
1704
|
+
function ka(e, t) {
|
|
1705
1705
|
return t.event === void 0 && e.target !== void 0 && e.target.draggable !== !0 && typeof t.handler == "function" && Ei.includes(e.target.nodeName.toUpperCase()) === !1 && (e.qClonedBy === void 0 || e.qClonedBy.indexOf(t.uid) === -1);
|
|
1706
1706
|
}
|
|
1707
1707
|
function Ao() {
|
|
1708
1708
|
if (window.getSelection !== void 0) {
|
|
1709
1709
|
const e = window.getSelection();
|
|
1710
|
-
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(),
|
|
1710
|
+
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), Dn.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
1711
1711
|
} else document.selection !== void 0 && document.selection.empty();
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1713
|
+
function dn(e, t, l) {
|
|
1714
1714
|
const a = xl(e);
|
|
1715
1715
|
let n, o = a.left - t.event.x, r = a.top - t.event.y, i = Math.abs(o), s = Math.abs(r);
|
|
1716
1716
|
const v = t.direction;
|
|
@@ -1748,7 +1748,7 @@ function cn(e, t, l) {
|
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
1750
|
let $i = 0;
|
|
1751
|
-
const
|
|
1751
|
+
const _a = Nn(
|
|
1752
1752
|
{
|
|
1753
1753
|
name: "touch-pan",
|
|
1754
1754
|
beforeMount(e, { value: t, modifiers: l }) {
|
|
@@ -1760,16 +1760,16 @@ const ka = jn(
|
|
|
1760
1760
|
uid: "qvtp_" + $i++,
|
|
1761
1761
|
handler: t,
|
|
1762
1762
|
modifiers: l,
|
|
1763
|
-
direction:
|
|
1764
|
-
noop:
|
|
1763
|
+
direction: Ca(l),
|
|
1764
|
+
noop: Jl,
|
|
1765
1765
|
mouseStart(o) {
|
|
1766
|
-
|
|
1766
|
+
ka(o, n) && Jr(o) && (jt(n, "temp", [
|
|
1767
1767
|
[document, "mousemove", "move", "notPassiveCapture"],
|
|
1768
1768
|
[document, "mouseup", "end", "passiveCapture"]
|
|
1769
1769
|
]), n.start(o, !0));
|
|
1770
1770
|
},
|
|
1771
1771
|
touchStart(o) {
|
|
1772
|
-
if (
|
|
1772
|
+
if (ka(o, n)) {
|
|
1773
1773
|
const r = o.target;
|
|
1774
1774
|
jt(n, "temp", [
|
|
1775
1775
|
[r, "touchmove", "move", "notPassiveCapture"],
|
|
@@ -1779,7 +1779,7 @@ const ka = jn(
|
|
|
1779
1779
|
}
|
|
1780
1780
|
},
|
|
1781
1781
|
start(o, r) {
|
|
1782
|
-
if (He.is.firefox === !0 &&
|
|
1782
|
+
if (He.is.firefox === !0 && sn(e, !0), n.lastEvt = o, r === !0 || l.stop === !0) {
|
|
1783
1783
|
if (n.direction.all !== !0 && (r !== !0 || n.modifiers.mouseAllDir !== !0 && n.modifiers.mousealldir !== !0)) {
|
|
1784
1784
|
const v = o.type.indexOf("mouse") !== -1 ? new MouseEvent(o.type, o) : new TouchEvent(o.type, o);
|
|
1785
1785
|
o.defaultPrevented === !0 && Ke(v), o.cancelBubble === !0 && nt(v), Object.assign(v, {
|
|
@@ -1828,7 +1828,7 @@ const ka = jn(
|
|
|
1828
1828
|
};
|
|
1829
1829
|
if (n.event.detected === !0) {
|
|
1830
1830
|
n.event.isFirst !== !0 && a(o, n.event.mouse);
|
|
1831
|
-
const { payload: h, synthetic: y } =
|
|
1831
|
+
const { payload: h, synthetic: y } = dn(o, n, !1);
|
|
1832
1832
|
h !== void 0 && (n.handler(h) === !1 ? n.end(o) : (n.styleCleanup === void 0 && n.event.isFirst === !0 && u(), n.event.lastX = h.position.left, n.event.lastY = h.position.top, n.event.lastDir = y === !0 ? void 0 : h.direction, n.event.isFirst = !1));
|
|
1833
1833
|
return;
|
|
1834
1834
|
}
|
|
@@ -1842,11 +1842,11 @@ const ka = jn(
|
|
|
1842
1842
|
end(o, r) {
|
|
1843
1843
|
var i;
|
|
1844
1844
|
if (n.event !== void 0) {
|
|
1845
|
-
if (_l(n, "temp"), He.is.firefox === !0 &&
|
|
1845
|
+
if (_l(n, "temp"), He.is.firefox === !0 && sn(e, !1), r === !0)
|
|
1846
1846
|
(i = n.styleCleanup) == null || i.call(n), n.event.detected !== !0 && n.initialEvent !== void 0 && n.initialEvent.target.dispatchEvent(n.initialEvent.event);
|
|
1847
1847
|
else if (n.event.detected === !0) {
|
|
1848
|
-
n.event.isFirst === !0 && n.handler(
|
|
1849
|
-
const { payload: s } =
|
|
1848
|
+
n.event.isFirst === !0 && n.handler(dn(o === void 0 ? n.lastEvt : o, n).payload);
|
|
1849
|
+
const { payload: s } = dn(o === void 0 ? n.lastEvt : o, n, !0), v = () => {
|
|
1850
1850
|
n.handler(s);
|
|
1851
1851
|
};
|
|
1852
1852
|
n.styleCleanup !== void 0 ? n.styleCleanup(v) : v();
|
|
@@ -1869,19 +1869,19 @@ const ka = jn(
|
|
|
1869
1869
|
},
|
|
1870
1870
|
updated(e, t) {
|
|
1871
1871
|
const l = e.__qtouchpan;
|
|
1872
|
-
l !== void 0 && (t.oldValue !== t.value && (typeof value != "function" && l.end(), l.handler = t.value), l.direction =
|
|
1872
|
+
l !== void 0 && (t.oldValue !== t.value && (typeof value != "function" && l.end(), l.handler = t.value), l.direction = Ca(t.modifiers));
|
|
1873
1873
|
},
|
|
1874
1874
|
beforeUnmount(e) {
|
|
1875
1875
|
var l;
|
|
1876
1876
|
const t = e.__qtouchpan;
|
|
1877
|
-
t !== void 0 && (t.event !== void 0 && t.end(), _l(t, "main"), _l(t, "temp"), He.is.firefox === !0 &&
|
|
1877
|
+
t !== void 0 && (t.event !== void 0 && t.end(), _l(t, "main"), _l(t, "temp"), He.is.firefox === !0 && sn(e, !1), (l = t.styleCleanup) == null || l.call(t), delete e.__qtouchpan);
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
1880
|
);
|
|
1881
1881
|
function wl(e, t, l) {
|
|
1882
1882
|
return l <= t ? t : Math.min(l, Math.max(t, e));
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function qa(e, t, l) {
|
|
1885
1885
|
if (l <= t)
|
|
1886
1886
|
return t;
|
|
1887
1887
|
const a = l - t + 1;
|
|
@@ -1894,7 +1894,7 @@ function Se(e, t = 2, l = "0") {
|
|
|
1894
1894
|
const a = "" + e;
|
|
1895
1895
|
return a.length >= t ? a : new Array(t - a.length + 1).join(l) + a;
|
|
1896
1896
|
}
|
|
1897
|
-
function
|
|
1897
|
+
function ea(e, t = 250, l) {
|
|
1898
1898
|
let a = null;
|
|
1899
1899
|
function n() {
|
|
1900
1900
|
const o = arguments, r = () => {
|
|
@@ -1906,14 +1906,14 @@ function Gn(e, t = 250, l) {
|
|
|
1906
1906
|
a !== null && clearTimeout(a);
|
|
1907
1907
|
}, n;
|
|
1908
1908
|
}
|
|
1909
|
-
const
|
|
1909
|
+
const xa = ["vertical", "horizontal"], fn = {
|
|
1910
1910
|
vertical: { offset: "offsetY", scroll: "scrollTop", dir: "down", dist: "y" },
|
|
1911
1911
|
horizontal: { offset: "offsetX", scroll: "scrollLeft", dir: "right", dist: "x" }
|
|
1912
|
-
},
|
|
1912
|
+
}, Ma = {
|
|
1913
1913
|
prevent: !0,
|
|
1914
1914
|
mouse: !0,
|
|
1915
1915
|
mouseAllDir: !0
|
|
1916
|
-
},
|
|
1916
|
+
}, Ea = (e) => e >= 250 ? 50 : Math.ceil(e / 5), Di = de({
|
|
1917
1917
|
name: "QScrollArea",
|
|
1918
1918
|
props: {
|
|
1919
1919
|
...rt,
|
|
@@ -1971,13 +1971,13 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
1971
1971
|
const C = i.vertical.size.value - r.vertical.value;
|
|
1972
1972
|
if (C <= 0)
|
|
1973
1973
|
return 0;
|
|
1974
|
-
const
|
|
1975
|
-
return Math.round(
|
|
1974
|
+
const O = wl(i.vertical.position.value / C, 0, 1);
|
|
1975
|
+
return Math.round(O * 1e4) / 1e4;
|
|
1976
1976
|
}), i.vertical.thumbHidden = c(() => (e.visible === null ? o.value : e.visible) !== !0 && a.value === !1 && n.value === !1 || i.vertical.size.value <= r.vertical.value + 1), i.vertical.thumbStart = c(() => e.verticalOffset[0] + i.vertical.percentage.value * (r.verticalInner.value - i.vertical.thumbSize.value)), i.vertical.thumbSize = c(
|
|
1977
1977
|
() => Math.round(
|
|
1978
1978
|
wl(
|
|
1979
1979
|
r.verticalInner.value * r.verticalInner.value / i.vertical.size.value,
|
|
1980
|
-
|
|
1980
|
+
Ea(r.verticalInner.value),
|
|
1981
1981
|
r.verticalInner.value
|
|
1982
1982
|
)
|
|
1983
1983
|
)
|
|
@@ -1991,13 +1991,13 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
1991
1991
|
const C = i.horizontal.size.value - r.horizontal.value;
|
|
1992
1992
|
if (C <= 0)
|
|
1993
1993
|
return 0;
|
|
1994
|
-
const
|
|
1995
|
-
return Math.round(
|
|
1994
|
+
const O = wl(Math.abs(i.horizontal.position.value) / C, 0, 1);
|
|
1995
|
+
return Math.round(O * 1e4) / 1e4;
|
|
1996
1996
|
}), i.horizontal.thumbHidden = c(() => (e.visible === null ? o.value : e.visible) !== !0 && a.value === !1 && n.value === !1 || i.horizontal.size.value <= r.horizontal.value + 1), i.horizontal.thumbStart = c(() => e.horizontalOffset[0] + i.horizontal.percentage.value * (r.horizontalInner.value - i.horizontal.thumbSize.value)), i.horizontal.thumbSize = c(
|
|
1997
1997
|
() => Math.round(
|
|
1998
1998
|
wl(
|
|
1999
1999
|
r.horizontalInner.value * r.horizontalInner.value / i.horizontal.size.value,
|
|
2000
|
-
|
|
2000
|
+
Ea(r.horizontalInner.value),
|
|
2001
2001
|
r.horizontalInner.value
|
|
2002
2002
|
)
|
|
2003
2003
|
)
|
|
@@ -2011,57 +2011,57 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2011
2011
|
const y = c(() => i.vertical.thumbHidden.value === !0 && i.horizontal.thumbHidden.value === !0 ? e.contentStyle : e.contentActiveStyle);
|
|
2012
2012
|
function q() {
|
|
2013
2013
|
const C = {};
|
|
2014
|
-
return
|
|
2015
|
-
const H = i[
|
|
2014
|
+
return xa.forEach((O) => {
|
|
2015
|
+
const H = i[O];
|
|
2016
2016
|
Object.assign(C, {
|
|
2017
|
-
[
|
|
2018
|
-
[
|
|
2019
|
-
[
|
|
2020
|
-
[
|
|
2021
|
-
[
|
|
2017
|
+
[O + "Position"]: H.position.value,
|
|
2018
|
+
[O + "Percentage"]: H.percentage.value,
|
|
2019
|
+
[O + "Size"]: H.size.value,
|
|
2020
|
+
[O + "ContainerSize"]: r[O].value,
|
|
2021
|
+
[O + "ContainerInnerSize"]: r[O + "Inner"].value
|
|
2022
2022
|
});
|
|
2023
2023
|
}), C;
|
|
2024
2024
|
}
|
|
2025
|
-
const g =
|
|
2025
|
+
const g = ea(() => {
|
|
2026
2026
|
const C = q();
|
|
2027
2027
|
C.ref = s, l("scroll", C);
|
|
2028
2028
|
}, 0);
|
|
2029
|
-
function F(C,
|
|
2030
|
-
if (
|
|
2029
|
+
function F(C, O, H) {
|
|
2030
|
+
if (xa.includes(C) === !1) {
|
|
2031
2031
|
console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");
|
|
2032
2032
|
return;
|
|
2033
2033
|
}
|
|
2034
|
-
(C === "vertical" ?
|
|
2034
|
+
(C === "vertical" ? Sa : cn)(S.value, O, H);
|
|
2035
2035
|
}
|
|
2036
|
-
function M({ height: C, width:
|
|
2036
|
+
function M({ height: C, width: O }) {
|
|
2037
2037
|
let H = !1;
|
|
2038
|
-
r.vertical.value !== C && (r.vertical.value = C, H = !0), r.horizontal.value !==
|
|
2038
|
+
r.vertical.value !== C && (r.vertical.value = C, H = !0), r.horizontal.value !== O && (r.horizontal.value = O, H = !0), H === !0 && E();
|
|
2039
2039
|
}
|
|
2040
2040
|
function V({ position: C }) {
|
|
2041
|
-
let
|
|
2042
|
-
i.vertical.position.value !== C.top && (i.vertical.position.value = C.top,
|
|
2041
|
+
let O = !1;
|
|
2042
|
+
i.vertical.position.value !== C.top && (i.vertical.position.value = C.top, O = !0), i.horizontal.position.value !== C.left && (i.horizontal.position.value = C.left, O = !0), O === !0 && E();
|
|
2043
2043
|
}
|
|
2044
|
-
function _({ height: C, width:
|
|
2045
|
-
i.horizontal.size.value !==
|
|
2044
|
+
function _({ height: C, width: O }) {
|
|
2045
|
+
i.horizontal.size.value !== O && (i.horizontal.size.value = O, E()), i.vertical.size.value !== C && (i.vertical.size.value = C, E());
|
|
2046
2046
|
}
|
|
2047
|
-
function b(C,
|
|
2048
|
-
const H = i[
|
|
2047
|
+
function b(C, O) {
|
|
2048
|
+
const H = i[O];
|
|
2049
2049
|
if (C.isFirst === !0) {
|
|
2050
2050
|
if (H.thumbHidden.value === !0) return;
|
|
2051
2051
|
m = H.position.value, n.value = !0;
|
|
2052
2052
|
} else if (n.value !== !0)
|
|
2053
2053
|
return;
|
|
2054
2054
|
C.isFinal === !0 && (n.value = !1);
|
|
2055
|
-
const X =
|
|
2056
|
-
L(re,
|
|
2055
|
+
const X = fn[O], j = (H.size.value - r[O].value) / (r[O + "Inner"].value - H.thumbSize.value), G = C.distance[X.dist], re = m + (C.direction === X.dir ? 1 : -1) * G * j;
|
|
2056
|
+
L(re, O);
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2059
|
-
const H = i[
|
|
2058
|
+
function R(C, O) {
|
|
2059
|
+
const H = i[O];
|
|
2060
2060
|
if (H.thumbHidden.value !== !0) {
|
|
2061
|
-
const X =
|
|
2061
|
+
const X = O === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], j = C[fn[O].offset] - X, G = H.thumbStart.value - X;
|
|
2062
2062
|
if (j < G || j > G + H.thumbSize.value) {
|
|
2063
|
-
const re = j - H.thumbSize.value / 2, x = wl(re / (r[
|
|
2064
|
-
L(x * Math.max(0, H.size.value - r[
|
|
2063
|
+
const re = j - H.thumbSize.value / 2, x = wl(re / (r[O + "Inner"].value - H.thumbSize.value), 0, 1);
|
|
2064
|
+
L(x * Math.max(0, H.size.value - r[O].value), O);
|
|
2065
2065
|
}
|
|
2066
2066
|
H.ref.value !== null && H.ref.value.dispatchEvent(new MouseEvent(C.type, C));
|
|
2067
2067
|
}
|
|
@@ -2071,8 +2071,8 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2071
2071
|
u = null, a.value = !1;
|
|
2072
2072
|
}, e.delay), e.onScroll !== void 0 && g();
|
|
2073
2073
|
}
|
|
2074
|
-
function L(C,
|
|
2075
|
-
S.value[
|
|
2074
|
+
function L(C, O) {
|
|
2075
|
+
S.value[fn[O].scroll] = C;
|
|
2076
2076
|
}
|
|
2077
2077
|
let T = null;
|
|
2078
2078
|
function B() {
|
|
@@ -2083,22 +2083,22 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2083
2083
|
function A() {
|
|
2084
2084
|
T !== null && (clearTimeout(T), T = null), o.value = !1;
|
|
2085
2085
|
}
|
|
2086
|
-
let
|
|
2086
|
+
let D = null;
|
|
2087
2087
|
J(() => s.$q.lang.rtl, (C) => {
|
|
2088
|
-
S.value !== null &&
|
|
2088
|
+
S.value !== null && cn(
|
|
2089
2089
|
S.value,
|
|
2090
2090
|
Math.abs(i.horizontal.position.value) * (C === !0 ? -1 : 1)
|
|
2091
2091
|
);
|
|
2092
2092
|
}), hl(() => {
|
|
2093
|
-
|
|
2093
|
+
D = {
|
|
2094
2094
|
top: i.vertical.position.value,
|
|
2095
2095
|
left: i.horizontal.position.value
|
|
2096
2096
|
};
|
|
2097
|
-
}),
|
|
2098
|
-
if (
|
|
2097
|
+
}), Zl(() => {
|
|
2098
|
+
if (D === null) return;
|
|
2099
2099
|
const C = S.value;
|
|
2100
|
-
C !== null && (
|
|
2101
|
-
}),
|
|
2100
|
+
C !== null && (cn(C, D.left), Sa(C, D.top));
|
|
2101
|
+
}), ze(g.cancel), Object.assign(s, {
|
|
2102
2102
|
getScrollTarget: () => S.value,
|
|
2103
2103
|
getScroll: q,
|
|
2104
2104
|
getScrollPosition: () => ({
|
|
@@ -2110,10 +2110,10 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2110
2110
|
left: i.horizontal.percentage.value
|
|
2111
2111
|
}),
|
|
2112
2112
|
setScrollPosition: F,
|
|
2113
|
-
setScrollPercentage(C,
|
|
2113
|
+
setScrollPercentage(C, O, H) {
|
|
2114
2114
|
F(
|
|
2115
2115
|
C,
|
|
2116
|
-
|
|
2116
|
+
O * (i[C].size.value - r[C].value) * (C === "horizontal" && s.$q.lang.rtl === !0 ? -1 : 1),
|
|
2117
2117
|
H
|
|
2118
2118
|
);
|
|
2119
2119
|
}
|
|
@@ -2121,26 +2121,26 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2121
2121
|
const U = {
|
|
2122
2122
|
scroll: i,
|
|
2123
2123
|
thumbVertDir: [[
|
|
2124
|
-
|
|
2124
|
+
_a,
|
|
2125
2125
|
(C) => {
|
|
2126
2126
|
b(C, "vertical");
|
|
2127
2127
|
},
|
|
2128
2128
|
void 0,
|
|
2129
|
-
{ vertical: !0, ...
|
|
2129
|
+
{ vertical: !0, ...Ma }
|
|
2130
2130
|
]],
|
|
2131
2131
|
thumbHorizDir: [[
|
|
2132
|
-
|
|
2132
|
+
_a,
|
|
2133
2133
|
(C) => {
|
|
2134
2134
|
b(C, "horizontal");
|
|
2135
2135
|
},
|
|
2136
2136
|
void 0,
|
|
2137
|
-
{ horizontal: !0, ...
|
|
2137
|
+
{ horizontal: !0, ...Ma }
|
|
2138
2138
|
]],
|
|
2139
2139
|
onVerticalMousedown(C) {
|
|
2140
|
-
|
|
2140
|
+
R(C, "vertical");
|
|
2141
2141
|
},
|
|
2142
2142
|
onHorizontalMousedown(C) {
|
|
2143
|
-
|
|
2143
|
+
R(C, "horizontal");
|
|
2144
2144
|
}
|
|
2145
2145
|
};
|
|
2146
2146
|
return () => d("div", {
|
|
@@ -2179,7 +2179,7 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2179
2179
|
})
|
|
2180
2180
|
]);
|
|
2181
2181
|
}
|
|
2182
|
-
}),
|
|
2182
|
+
}), zi = de({
|
|
2183
2183
|
name: "QCard",
|
|
2184
2184
|
props: {
|
|
2185
2185
|
...rt,
|
|
@@ -2195,7 +2195,7 @@ const qa = ["vertical", "horizontal"], dn = {
|
|
|
2195
2195
|
const { proxy: { $q: l } } = fe(), a = it(e, l), n = c(
|
|
2196
2196
|
() => "q-card" + (a.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" : "")
|
|
2197
2197
|
);
|
|
2198
|
-
return () => d(e.tag, { class: n.value },
|
|
2198
|
+
return () => d(e.tag, { class: n.value }, De(t.default));
|
|
2199
2199
|
}
|
|
2200
2200
|
}), Ti = {
|
|
2201
2201
|
/* SSR does not know about Element */
|
|
@@ -2298,7 +2298,7 @@ function Fo({
|
|
|
2298
2298
|
r.value !== null && (h === !0 ? u() : l());
|
|
2299
2299
|
}), ft(() => {
|
|
2300
2300
|
S(), t !== !0 && a.modelValue === !0 && r.value === null && o("update:modelValue", !1);
|
|
2301
|
-
}),
|
|
2301
|
+
}), ze(() => {
|
|
2302
2302
|
i !== null && clearTimeout(i), u();
|
|
2303
2303
|
}), {
|
|
2304
2304
|
anchorEl: r,
|
|
@@ -2319,7 +2319,7 @@ function Vi(e, t) {
|
|
|
2319
2319
|
const r = J(() => e.noParentEvent, () => {
|
|
2320
2320
|
l.value !== null && (o(), t());
|
|
2321
2321
|
});
|
|
2322
|
-
return
|
|
2322
|
+
return ze(r), {
|
|
2323
2323
|
localScrollTarget: l,
|
|
2324
2324
|
unconfigureScrollTarget: o,
|
|
2325
2325
|
changeScrollEvent: n
|
|
@@ -2378,7 +2378,7 @@ function jo({
|
|
|
2378
2378
|
function g(M) {
|
|
2379
2379
|
i.disable === !0 && M === !0 ? i["onUpdate:modelValue"] !== void 0 && s("update:modelValue", !1) : M === !0 !== e.value && (M === !0 ? h : q)(u);
|
|
2380
2380
|
}
|
|
2381
|
-
J(() => i.modelValue, g), l !== void 0 &&
|
|
2381
|
+
J(() => i.modelValue, g), l !== void 0 && Qn(r) === !0 && J(() => v.$route.fullPath, () => {
|
|
2382
2382
|
l.value === !0 && e.value === !0 && y();
|
|
2383
2383
|
}), ft(() => {
|
|
2384
2384
|
g(i.modelValue);
|
|
@@ -2393,21 +2393,21 @@ function No(e) {
|
|
|
2393
2393
|
function Bi(e) {
|
|
2394
2394
|
No(e), Ml.push(e);
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function $a(e) {
|
|
2397
2397
|
No(e), Ml.length === 0 && Nt.length !== 0 && (Nt[Nt.length - 1](), Nt = []);
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function tn(e) {
|
|
2400
2400
|
Ml.length === 0 ? e() : Nt.push(e);
|
|
2401
2401
|
}
|
|
2402
2402
|
function Ri(e) {
|
|
2403
2403
|
Nt = Nt.filter((t) => t !== e);
|
|
2404
2404
|
}
|
|
2405
|
-
const
|
|
2405
|
+
const Da = {};
|
|
2406
2406
|
let Oi = 1, Pi = document.body;
|
|
2407
2407
|
function Ai(e, t) {
|
|
2408
2408
|
const l = document.createElement("div");
|
|
2409
|
-
if (l.id = t !== void 0 ? `q-portal--${t}--${Oi++}` : e,
|
|
2410
|
-
const a =
|
|
2409
|
+
if (l.id = t !== void 0 ? `q-portal--${t}--${Oi++}` : e, Da.globalNodes !== void 0) {
|
|
2410
|
+
const a = Da.globalNodes.class;
|
|
2411
2411
|
a !== void 0 && (l.className = a);
|
|
2412
2412
|
}
|
|
2413
2413
|
return Pi.appendChild(l), l;
|
|
@@ -2425,12 +2425,12 @@ function Yo(e, t) {
|
|
|
2425
2425
|
do {
|
|
2426
2426
|
if (e.$options.name === "QMenu") {
|
|
2427
2427
|
if (e.hide(t), e.$props.separateClosePopup === !0)
|
|
2428
|
-
return
|
|
2428
|
+
return Ll(e);
|
|
2429
2429
|
} else if (e.__qPortal === !0) {
|
|
2430
|
-
const l =
|
|
2430
|
+
const l = Ll(e);
|
|
2431
2431
|
return (l == null ? void 0 : l.$options.name) === "QPopupProxy" ? (e.hide(t), l) : e;
|
|
2432
2432
|
}
|
|
2433
|
-
e =
|
|
2433
|
+
e = Ll(e);
|
|
2434
2434
|
} while (e != null);
|
|
2435
2435
|
}
|
|
2436
2436
|
function Hi(e, t, l) {
|
|
@@ -2442,7 +2442,7 @@ function Hi(e, t, l) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
e.hide(t);
|
|
2444
2444
|
}
|
|
2445
|
-
e =
|
|
2445
|
+
e = Ll(e);
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
2448
|
const Ii = de({
|
|
@@ -2467,14 +2467,14 @@ function Qo(e, t, l, a) {
|
|
|
2467
2467
|
const i = {}, s = a === "dialog" && ji(e);
|
|
2468
2468
|
function v(m) {
|
|
2469
2469
|
if (m === !0) {
|
|
2470
|
-
|
|
2470
|
+
$a(i), o.value = !0;
|
|
2471
2471
|
return;
|
|
2472
2472
|
}
|
|
2473
2473
|
o.value = !1, n.value === !1 && (s === !1 && r === null && (r = Ai(!1, a)), n.value = !0, sl.push(e.proxy), Bi(i));
|
|
2474
2474
|
}
|
|
2475
2475
|
function u(m) {
|
|
2476
2476
|
if (o.value = !1, m !== !0) return;
|
|
2477
|
-
|
|
2477
|
+
$a(i), n.value = !1;
|
|
2478
2478
|
const S = sl.indexOf(e.proxy);
|
|
2479
2479
|
S !== -1 && sl.splice(S, 1), r !== null && (Li(r), r = null);
|
|
2480
2480
|
}
|
|
@@ -2527,7 +2527,7 @@ function Wo() {
|
|
|
2527
2527
|
function l() {
|
|
2528
2528
|
e = void 0;
|
|
2529
2529
|
}
|
|
2530
|
-
return hl(l),
|
|
2530
|
+
return hl(l), ze(l), {
|
|
2531
2531
|
removeTick: l,
|
|
2532
2532
|
registerTick(a) {
|
|
2533
2533
|
e = a, xe(() => {
|
|
@@ -2542,7 +2542,7 @@ function Xo() {
|
|
|
2542
2542
|
function l() {
|
|
2543
2543
|
e !== null && (clearTimeout(e), e = null);
|
|
2544
2544
|
}
|
|
2545
|
-
return hl(l),
|
|
2545
|
+
return hl(l), ze(l), {
|
|
2546
2546
|
removeTimeout: l,
|
|
2547
2547
|
registerTimeout(a, n) {
|
|
2548
2548
|
l(), Co(t) === !1 && (e = setTimeout(() => {
|
|
@@ -2568,7 +2568,7 @@ function Zo(e) {
|
|
|
2568
2568
|
function Jo(e) {
|
|
2569
2569
|
He.is.desktop === !0 && (Yt.push(e), Yt.length === 1 && Zo("addEventListener"));
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function Ql(e) {
|
|
2572
2572
|
const t = Yt.indexOf(e);
|
|
2573
2573
|
t !== -1 && (Yt.splice(t, 1), Yt.length === 0 && Zo("removeEventListener"));
|
|
2574
2574
|
}
|
|
@@ -2579,12 +2579,12 @@ function Go(e) {
|
|
|
2579
2579
|
function er(e) {
|
|
2580
2580
|
He.is.desktop === !0 && (Qt.push(e), Qt.length === 1 && document.body.addEventListener("focusin", Go));
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function Vn(e) {
|
|
2583
2583
|
const t = Qt.indexOf(e);
|
|
2584
2584
|
t !== -1 && (Qt.splice(t, 1), Qt.length === 0 && document.body.removeEventListener("focusin", Go));
|
|
2585
2585
|
}
|
|
2586
|
-
const { notPassiveCapture:
|
|
2587
|
-
function
|
|
2586
|
+
const { notPassiveCapture: Ul } = Re, Ut = [];
|
|
2587
|
+
function Kl(e) {
|
|
2588
2588
|
const t = e.target;
|
|
2589
2589
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0) return;
|
|
2590
2590
|
let l = sl.length - 1;
|
|
@@ -2608,34 +2608,34 @@ function Ul(e) {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
function Ui(e) {
|
|
2611
|
-
Ut.push(e), Ut.length === 1 && (document.addEventListener("mousedown",
|
|
2611
|
+
Ut.push(e), Ut.length === 1 && (document.addEventListener("mousedown", Kl, Ul), document.addEventListener("touchstart", Kl, Ul));
|
|
2612
2612
|
}
|
|
2613
2613
|
function za(e) {
|
|
2614
2614
|
const t = Ut.findIndex((l) => l === e);
|
|
2615
|
-
t !== -1 && (Ut.splice(t, 1), Ut.length === 0 && (document.removeEventListener("mousedown",
|
|
2615
|
+
t !== -1 && (Ut.splice(t, 1), Ut.length === 0 && (document.removeEventListener("mousedown", Kl, Ul), document.removeEventListener("touchstart", Kl, Ul)));
|
|
2616
2616
|
}
|
|
2617
|
-
let
|
|
2618
|
-
function
|
|
2617
|
+
let Ta, Va;
|
|
2618
|
+
function Ba(e) {
|
|
2619
2619
|
const t = e.split(" ");
|
|
2620
2620
|
return t.length !== 2 ? !1 : ["top", "center", "bottom"].includes(t[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(t[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
2621
2621
|
}
|
|
2622
2622
|
function Ki(e) {
|
|
2623
2623
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2625
|
+
const Bn = {
|
|
2626
2626
|
"start#ltr": "left",
|
|
2627
2627
|
"start#rtl": "right",
|
|
2628
2628
|
"end#ltr": "right",
|
|
2629
2629
|
"end#rtl": "left"
|
|
2630
2630
|
};
|
|
2631
2631
|
["left", "middle", "right"].forEach((e) => {
|
|
2632
|
-
|
|
2632
|
+
Bn[`${e}#ltr`] = e, Bn[`${e}#rtl`] = e;
|
|
2633
2633
|
});
|
|
2634
|
-
function
|
|
2634
|
+
function Ra(e, t) {
|
|
2635
2635
|
const l = e.split(" ");
|
|
2636
2636
|
return {
|
|
2637
2637
|
vertical: l[0],
|
|
2638
|
-
horizontal:
|
|
2638
|
+
horizontal: Bn[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
2641
|
function Wi(e, t) {
|
|
@@ -2674,7 +2674,7 @@ function Zi(e, t) {
|
|
|
2674
2674
|
right: e
|
|
2675
2675
|
};
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function Oa(e, t, l, a) {
|
|
2678
2678
|
return {
|
|
2679
2679
|
top: e[l.vertical] - t[a.vertical],
|
|
2680
2680
|
left: e[l.horizontal] - t[a.horizontal]
|
|
@@ -2701,8 +2701,8 @@ function tr(e, t = 0) {
|
|
|
2701
2701
|
maxWidth: m
|
|
2702
2702
|
} = e;
|
|
2703
2703
|
if (He.is.ios === !0 && window.visualViewport !== void 0) {
|
|
2704
|
-
const
|
|
2705
|
-
E !==
|
|
2704
|
+
const R = document.body.style, { offsetLeft: E, offsetTop: L } = window.visualViewport;
|
|
2705
|
+
E !== Ta && (R.setProperty("--q-pe-left", E + "px"), Ta = E), L !== Va && (R.setProperty("--q-pe-top", L + "px"), Va = L);
|
|
2706
2706
|
}
|
|
2707
2707
|
const { scrollLeft: S, scrollTop: h } = l, y = i === void 0 ? Wi(n, v === !0 ? [0, 0] : a) : Xi(n, i, a);
|
|
2708
2708
|
Object.assign(l.style, {
|
|
@@ -2718,14 +2718,14 @@ function tr(e, t = 0) {
|
|
|
2718
2718
|
let V = { maxWidth: m, maxHeight: u };
|
|
2719
2719
|
(s === !0 || v === !0) && (V.minWidth = y.width + "px", v === !0 && (V.minHeight = y.height + "px")), Object.assign(l.style, V);
|
|
2720
2720
|
const _ = Zi(F, M);
|
|
2721
|
-
let b =
|
|
2721
|
+
let b = Oa(y, _, o, r);
|
|
2722
2722
|
if (i === void 0 || a === void 0)
|
|
2723
|
-
|
|
2723
|
+
vn(b, y, _, o, r);
|
|
2724
2724
|
else {
|
|
2725
|
-
const { top:
|
|
2726
|
-
|
|
2725
|
+
const { top: R, left: E } = b;
|
|
2726
|
+
vn(b, y, _, o, r);
|
|
2727
2727
|
let L = !1;
|
|
2728
|
-
if (b.top !==
|
|
2728
|
+
if (b.top !== R) {
|
|
2729
2729
|
L = !0;
|
|
2730
2730
|
const T = 2 * a[1];
|
|
2731
2731
|
y.center = y.top -= T, y.bottom -= T + 2;
|
|
@@ -2735,15 +2735,15 @@ function tr(e, t = 0) {
|
|
|
2735
2735
|
const T = 2 * a[0];
|
|
2736
2736
|
y.middle = y.left -= T, y.right -= T + 2;
|
|
2737
2737
|
}
|
|
2738
|
-
L === !0 && (b =
|
|
2738
|
+
L === !0 && (b = Oa(y, _, o, r), vn(b, y, _, o, r));
|
|
2739
2739
|
}
|
|
2740
2740
|
V = {
|
|
2741
2741
|
top: b.top + "px",
|
|
2742
2742
|
left: b.left + "px"
|
|
2743
2743
|
}, b.maxHeight !== void 0 && (V.maxHeight = b.maxHeight + "px", y.height > b.maxHeight && (V.minHeight = V.maxHeight)), b.maxWidth !== void 0 && (V.maxWidth = b.maxWidth + "px", y.width > b.maxWidth && (V.minWidth = V.maxWidth)), Object.assign(l.style, V), l.scrollTop !== h && (l.scrollTop = h), l.scrollLeft !== S && (l.scrollLeft = S);
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2746
|
-
const o = l.bottom, r = l.right, i =
|
|
2745
|
+
function vn(e, t, l, a, n) {
|
|
2746
|
+
const o = l.bottom, r = l.right, i = Hl(), s = window.innerHeight - i, v = document.body.clientWidth;
|
|
2747
2747
|
if (e.top < 0 || e.top + o > s)
|
|
2748
2748
|
if (n.vertical === "center")
|
|
2749
2749
|
e.top = t[a.vertical] > s / 2 ? Math.max(0, s - o) : 0, e.maxHeight = Math.min(o, s);
|
|
@@ -2773,7 +2773,7 @@ function fn(e, t, l, a, n) {
|
|
|
2773
2773
|
a.horizontal === "middle" ? t.middle : a.horizontal === n.horizontal ? t.left : t.right
|
|
2774
2774
|
), e.maxWidth = Math.min(r, v - e.left);
|
|
2775
2775
|
}
|
|
2776
|
-
const
|
|
2776
|
+
const ln = de({
|
|
2777
2777
|
name: "QMenu",
|
|
2778
2778
|
inheritAttrs: !1,
|
|
2779
2779
|
props: {
|
|
@@ -2793,17 +2793,17 @@ const tn = de({
|
|
|
2793
2793
|
square: Boolean,
|
|
2794
2794
|
anchor: {
|
|
2795
2795
|
type: String,
|
|
2796
|
-
validator:
|
|
2796
|
+
validator: Ba
|
|
2797
2797
|
},
|
|
2798
2798
|
self: {
|
|
2799
2799
|
type: String,
|
|
2800
|
-
validator:
|
|
2800
|
+
validator: Ba
|
|
2801
2801
|
},
|
|
2802
2802
|
offset: {
|
|
2803
2803
|
type: Array,
|
|
2804
2804
|
validator: Ki
|
|
2805
2805
|
},
|
|
2806
|
-
scrollTarget:
|
|
2806
|
+
scrollTarget: Wn,
|
|
2807
2807
|
touchPosition: Boolean,
|
|
2808
2808
|
maxHeight: {
|
|
2809
2809
|
type: String,
|
|
@@ -2823,14 +2823,14 @@ const tn = de({
|
|
|
2823
2823
|
let n = null, o, r, i;
|
|
2824
2824
|
const s = fe(), { proxy: v } = s, { $q: u } = v, m = P(null), S = P(!1), h = c(
|
|
2825
2825
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
2826
|
-
), y = it(e, u), { registerTick: q, removeTick: g } = Wo(), { registerTimeout: F } = Xo(), { transitionProps: M, transitionStyle: V } = Ko(e), { localScrollTarget: _, changeScrollEvent: b, unconfigureScrollTarget:
|
|
2826
|
+
), y = it(e, u), { registerTick: q, removeTick: g } = Wo(), { registerTimeout: F } = Xo(), { transitionProps: M, transitionStyle: V } = Ko(e), { localScrollTarget: _, changeScrollEvent: b, unconfigureScrollTarget: R } = Vi(e, Z), { anchorEl: E, canShow: L } = Fo({ showing: S }), { hide: T } = jo({
|
|
2827
2827
|
showing: S,
|
|
2828
2828
|
canShow: L,
|
|
2829
2829
|
handleShow: re,
|
|
2830
2830
|
handleHide: x,
|
|
2831
2831
|
hideOnRouteChange: h,
|
|
2832
2832
|
processOnMount: !0
|
|
2833
|
-
}), { showPortal: B, hidePortal: A, renderPortal:
|
|
2833
|
+
}), { showPortal: B, hidePortal: A, renderPortal: D } = Qo(s, m, ye, "menu"), U = {
|
|
2834
2834
|
anchorEl: E,
|
|
2835
2835
|
innerRef: m,
|
|
2836
2836
|
onClickOutside(I) {
|
|
@@ -2839,20 +2839,20 @@ const tn = de({
|
|
|
2839
2839
|
(I.type === "touchstart" || I.target.classList.contains("q-dialog__backdrop")) && Fe(I), !0;
|
|
2840
2840
|
}
|
|
2841
2841
|
}, C = c(
|
|
2842
|
-
() =>
|
|
2842
|
+
() => Ra(
|
|
2843
2843
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
2844
2844
|
u.lang.rtl
|
|
2845
2845
|
)
|
|
2846
|
-
),
|
|
2846
|
+
), O = c(() => e.cover === !0 ? C.value : Ra(e.self || "top start", u.lang.rtl)), H = c(
|
|
2847
2847
|
() => (e.square === !0 ? " q-menu--square" : "") + (y.value === !0 ? " q-menu--dark q-dark" : "")
|
|
2848
2848
|
), X = c(() => e.autoClose === !0 ? { onClick: Y } : {}), j = c(
|
|
2849
2849
|
() => S.value === !0 && e.persistent !== !0
|
|
2850
2850
|
);
|
|
2851
2851
|
J(j, (I) => {
|
|
2852
|
-
I === !0 ? (Jo(te), Ui(U)) : (
|
|
2852
|
+
I === !0 ? (Jo(te), Ui(U)) : (Ql(te), za(U));
|
|
2853
2853
|
});
|
|
2854
2854
|
function G() {
|
|
2855
|
-
|
|
2855
|
+
tn(() => {
|
|
2856
2856
|
let I = m.value;
|
|
2857
2857
|
I && I.contains(document.activeElement) !== !0 && (I = I.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || I.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || I.querySelector("[autofocus], [data-autofocus]") || I, I.focus({ preventScroll: !0 }));
|
|
2858
2858
|
});
|
|
@@ -2881,10 +2881,10 @@ const tn = de({
|
|
|
2881
2881
|
}, e.transitionDuration);
|
|
2882
2882
|
}
|
|
2883
2883
|
function k(I) {
|
|
2884
|
-
o = void 0, r !== void 0 && (r(), r = void 0), (I === !0 || S.value === !0) && (
|
|
2884
|
+
o = void 0, r !== void 0 && (r(), r = void 0), (I === !0 || S.value === !0) && (Vn(ae), R(), za(U), Ql(te)), I !== !0 && (n = null);
|
|
2885
2885
|
}
|
|
2886
2886
|
function Z() {
|
|
2887
|
-
(E.value !== null || e.scrollTarget !== void 0) && (_.value =
|
|
2887
|
+
(E.value !== null || e.scrollTarget !== void 0) && (_.value = Xn(E.value, e.scrollTarget), b(_.value, ne));
|
|
2888
2888
|
}
|
|
2889
2889
|
function Y(I) {
|
|
2890
2890
|
i !== !0 ? (Yo(v, I), l("click", I)) : i = !1;
|
|
@@ -2901,7 +2901,7 @@ const tn = de({
|
|
|
2901
2901
|
offset: e.offset,
|
|
2902
2902
|
anchorEl: E.value,
|
|
2903
2903
|
anchorOrigin: C.value,
|
|
2904
|
-
selfOrigin:
|
|
2904
|
+
selfOrigin: O.value,
|
|
2905
2905
|
absoluteOffset: o,
|
|
2906
2906
|
fit: e.fit,
|
|
2907
2907
|
cover: e.cover,
|
|
@@ -2927,13 +2927,13 @@ const tn = de({
|
|
|
2927
2927
|
V.value
|
|
2928
2928
|
],
|
|
2929
2929
|
...X.value
|
|
2930
|
-
},
|
|
2930
|
+
}, De(t.default)) : null
|
|
2931
2931
|
);
|
|
2932
2932
|
}
|
|
2933
|
-
return
|
|
2933
|
+
return ze(k), Object.assign(v, { focus: G, updatePosition: ne }), D;
|
|
2934
2934
|
}
|
|
2935
2935
|
});
|
|
2936
|
-
let
|
|
2936
|
+
let mn, zl = 0;
|
|
2937
2937
|
const Ne = new Array(256);
|
|
2938
2938
|
for (let e = 0; e < 256; e++)
|
|
2939
2939
|
Ne[e] = (e + 256).toString(16).substring(1);
|
|
@@ -2954,30 +2954,30 @@ const Ji = (() => {
|
|
|
2954
2954
|
l.push(Math.floor(Math.random() * 256));
|
|
2955
2955
|
return l;
|
|
2956
2956
|
};
|
|
2957
|
-
})(),
|
|
2958
|
-
function
|
|
2959
|
-
(
|
|
2960
|
-
const e = Array.prototype.slice.call(
|
|
2957
|
+
})(), Pa = 4096;
|
|
2958
|
+
function Rn() {
|
|
2959
|
+
(mn === void 0 || zl + 16 > Pa) && (zl = 0, mn = Ji(Pa));
|
|
2960
|
+
const e = Array.prototype.slice.call(mn, zl, zl += 16);
|
|
2961
2961
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, Ne[e[0]] + Ne[e[1]] + Ne[e[2]] + Ne[e[3]] + "-" + Ne[e[4]] + Ne[e[5]] + "-" + Ne[e[6]] + Ne[e[7]] + "-" + Ne[e[8]] + Ne[e[9]] + "-" + Ne[e[10]] + Ne[e[11]] + Ne[e[12]] + Ne[e[13]] + Ne[e[14]] + Ne[e[15]];
|
|
2962
2962
|
}
|
|
2963
2963
|
function Gi(e) {
|
|
2964
2964
|
return e ?? null;
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2967
|
-
return e ?? (t === !0 ? `f_${
|
|
2966
|
+
function Aa(e, t) {
|
|
2967
|
+
return e ?? (t === !0 ? `f_${Rn()}` : null);
|
|
2968
2968
|
}
|
|
2969
2969
|
function eu({ getValue: e, required: t = !0 } = {}) {
|
|
2970
2970
|
if (Ot.value === !0) {
|
|
2971
2971
|
const l = e !== void 0 ? P(Gi(e())) : P(null);
|
|
2972
2972
|
return t === !0 && l.value === null && ft(() => {
|
|
2973
|
-
l.value = `f_${
|
|
2973
|
+
l.value = `f_${Rn()}`;
|
|
2974
2974
|
}), e !== void 0 && J(e, (a) => {
|
|
2975
|
-
l.value =
|
|
2975
|
+
l.value = Aa(a, t);
|
|
2976
2976
|
}), l;
|
|
2977
2977
|
}
|
|
2978
|
-
return e !== void 0 ? c(() =>
|
|
2978
|
+
return e !== void 0 ? c(() => Aa(e(), t)) : P(`f_${Rn()}`);
|
|
2979
2979
|
}
|
|
2980
|
-
const
|
|
2980
|
+
const La = /^on[A-Z]/;
|
|
2981
2981
|
function tu() {
|
|
2982
2982
|
const { attrs: e, vnode: t } = fe(), l = {
|
|
2983
2983
|
listeners: P({}),
|
|
@@ -2986,14 +2986,14 @@ function tu() {
|
|
|
2986
2986
|
function a() {
|
|
2987
2987
|
const n = {}, o = {};
|
|
2988
2988
|
for (const r in e)
|
|
2989
|
-
r !== "class" && r !== "style" &&
|
|
2989
|
+
r !== "class" && r !== "style" && La.test(r) === !1 && (n[r] = e[r]);
|
|
2990
2990
|
for (const r in t.props)
|
|
2991
|
-
|
|
2991
|
+
La.test(r) === !0 && (o[r] = t.props[r]);
|
|
2992
2992
|
l.attributes.value = n, l.listeners.value = o;
|
|
2993
2993
|
}
|
|
2994
2994
|
return ho(a), a(), l;
|
|
2995
2995
|
}
|
|
2996
|
-
const
|
|
2996
|
+
const nn = "_q_l_", lu = "_q_pc_", nu = "_q_fo_";
|
|
2997
2997
|
function xt() {
|
|
2998
2998
|
}
|
|
2999
2999
|
function au({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
@@ -3004,12 +3004,12 @@ function au({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
|
3004
3004
|
r === !0 ? (typeof t == "function" && t(), a.unbindComponent(o)) : a.bindComponent(o);
|
|
3005
3005
|
}), ft(() => {
|
|
3006
3006
|
n.disable !== !0 && a.bindComponent(o);
|
|
3007
|
-
}),
|
|
3007
|
+
}), ze(() => {
|
|
3008
3008
|
n.disable !== !0 && a.unbindComponent(o);
|
|
3009
3009
|
});
|
|
3010
3010
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const Fa = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Ha = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Ia = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Tl = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Vl = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, hn = {
|
|
3013
3013
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
3014
3014
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
3015
3015
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -3021,15 +3021,15 @@ const La = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Fa = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
3021
3021
|
// We won't be accepting PRs to enhance the one below because of the reason above.
|
|
3022
3022
|
// eslint-disable-next-line
|
|
3023
3023
|
email: (e) => /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),
|
|
3024
|
-
hexColor: (e) =>
|
|
3025
|
-
hexaColor: (e) =>
|
|
3026
|
-
hexOrHexaColor: (e) =>
|
|
3024
|
+
hexColor: (e) => Fa.test(e),
|
|
3025
|
+
hexaColor: (e) => Ha.test(e),
|
|
3026
|
+
hexOrHexaColor: (e) => Ia.test(e),
|
|
3027
3027
|
rgbColor: (e) => Tl.test(e),
|
|
3028
3028
|
rgbaColor: (e) => Vl.test(e),
|
|
3029
3029
|
rgbOrRgbaColor: (e) => Tl.test(e) || Vl.test(e),
|
|
3030
|
-
hexOrRgbColor: (e) =>
|
|
3031
|
-
hexaOrRgbaColor: (e) =>
|
|
3032
|
-
anyColor: (e) =>
|
|
3030
|
+
hexOrRgbColor: (e) => Fa.test(e) || Tl.test(e),
|
|
3031
|
+
hexaOrRgbaColor: (e) => Ha.test(e) || Vl.test(e),
|
|
3032
|
+
anyColor: (e) => Ia.test(e) || Tl.test(e) || Vl.test(e)
|
|
3033
3033
|
}, ou = [!0, !1, "ondemand"], ru = {
|
|
3034
3034
|
modelValue: {},
|
|
3035
3035
|
error: {
|
|
@@ -3076,28 +3076,28 @@ function iu(e, t) {
|
|
|
3076
3076
|
const M = ++i, V = t.value !== !0 ? () => {
|
|
3077
3077
|
r.value = !0;
|
|
3078
3078
|
} : () => {
|
|
3079
|
-
}, _ = (
|
|
3080
|
-
|
|
3079
|
+
}, _ = (R, E) => {
|
|
3080
|
+
R === !0 && V(), n.value = R, o.value = E || null, t.value = !1;
|
|
3081
3081
|
}, b = [];
|
|
3082
|
-
for (let
|
|
3083
|
-
const E = l.rules[
|
|
3082
|
+
for (let R = 0; R < l.rules.length; R++) {
|
|
3083
|
+
const E = l.rules[R];
|
|
3084
3084
|
let L;
|
|
3085
|
-
if (typeof E == "function" ? L = E(F,
|
|
3085
|
+
if (typeof E == "function" ? L = E(F, hn) : typeof E == "string" && hn[E] !== void 0 && (L = hn[E](F)), L === !1 || typeof L == "string")
|
|
3086
3086
|
return _(!0, L), !1;
|
|
3087
3087
|
L !== !0 && L !== void 0 && b.push(L);
|
|
3088
3088
|
}
|
|
3089
3089
|
return b.length === 0 ? (_(!1), !0) : (t.value = !0, Promise.all(b).then(
|
|
3090
|
-
(
|
|
3091
|
-
if (
|
|
3090
|
+
(R) => {
|
|
3091
|
+
if (R === void 0 || Array.isArray(R) === !1 || R.length === 0)
|
|
3092
3092
|
return M === i && _(!1), !0;
|
|
3093
|
-
const E =
|
|
3093
|
+
const E = R.find((L) => L === !1 || typeof L == "string");
|
|
3094
3094
|
return M === i && _(E !== void 0, E), E === void 0;
|
|
3095
3095
|
},
|
|
3096
|
-
(
|
|
3096
|
+
(R) => (M === i && (console.error(R), _(!0)), !1)
|
|
3097
3097
|
));
|
|
3098
3098
|
}
|
|
3099
|
-
const g =
|
|
3100
|
-
return
|
|
3099
|
+
const g = ea(q, 0);
|
|
3100
|
+
return ze(() => {
|
|
3101
3101
|
s == null || s(), g.cancel();
|
|
3102
3102
|
}), Object.assign(a, { resetValidation: y, validate: q }), dt(a, "hasError", () => m.value), {
|
|
3103
3103
|
isDirtyModel: r,
|
|
@@ -3142,11 +3142,11 @@ const uu = {
|
|
|
3142
3142
|
readonly: Boolean,
|
|
3143
3143
|
autofocus: Boolean,
|
|
3144
3144
|
for: String
|
|
3145
|
-
},
|
|
3145
|
+
}, an = {
|
|
3146
3146
|
...uu,
|
|
3147
3147
|
maxlength: [Number, String]
|
|
3148
|
-
},
|
|
3149
|
-
function
|
|
3148
|
+
}, ta = ["update:modelValue", "clear", "focus", "blur"];
|
|
3149
|
+
function la({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
3150
3150
|
const { props: a, proxy: n } = fe(), o = it(a, n.$q), r = eu({
|
|
3151
3151
|
required: e,
|
|
3152
3152
|
getValue: () => a.for
|
|
@@ -3187,7 +3187,7 @@ function ta({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
3187
3187
|
*/
|
|
3188
3188
|
};
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function na(e) {
|
|
3191
3191
|
const { props: t, emit: l, slots: a, attrs: n, proxy: o } = fe(), { $q: r } = o;
|
|
3192
3192
|
let i = null;
|
|
3193
3193
|
e.hasValue === void 0 && (e.hasValue = c(() => El(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (j) => {
|
|
@@ -3233,17 +3233,17 @@ function la(e) {
|
|
|
3233
3233
|
const j = {};
|
|
3234
3234
|
return e.targetUid.value && (j.for = e.targetUid.value), t.disable === !0 && (j["aria-disabled"] = "true"), j;
|
|
3235
3235
|
});
|
|
3236
|
-
function
|
|
3236
|
+
function R() {
|
|
3237
3237
|
var re;
|
|
3238
3238
|
const j = document.activeElement;
|
|
3239
3239
|
let G = (re = e.targetRef) == null ? void 0 : re.value;
|
|
3240
3240
|
G && (j === null || j.id !== e.targetUid.value) && (G.hasAttribute("tabindex") === !0 || (G = G.querySelector("[tabindex]")), G !== j && (G == null || G.focus({ preventScroll: !0 })));
|
|
3241
3241
|
}
|
|
3242
3242
|
function E() {
|
|
3243
|
-
|
|
3243
|
+
tn(R);
|
|
3244
3244
|
}
|
|
3245
3245
|
function L() {
|
|
3246
|
-
Ri(
|
|
3246
|
+
Ri(R);
|
|
3247
3247
|
const j = document.activeElement;
|
|
3248
3248
|
j !== null && e.rootRef.value.contains(j) && j.blur();
|
|
3249
3249
|
}
|
|
@@ -3262,7 +3262,7 @@ function la(e) {
|
|
|
3262
3262
|
S(), s.value = re;
|
|
3263
3263
|
});
|
|
3264
3264
|
}
|
|
3265
|
-
function
|
|
3265
|
+
function D(j) {
|
|
3266
3266
|
[13, 32].includes(j.keyCode) && A(j);
|
|
3267
3267
|
}
|
|
3268
3268
|
function U() {
|
|
@@ -3295,7 +3295,7 @@ function la(e) {
|
|
|
3295
3295
|
role: "button",
|
|
3296
3296
|
"aria-hidden": "false",
|
|
3297
3297
|
"aria-label": r.lang.label.clear,
|
|
3298
|
-
onKeyup:
|
|
3298
|
+
onKeyup: D,
|
|
3299
3299
|
onClick: A
|
|
3300
3300
|
})
|
|
3301
3301
|
])
|
|
@@ -3330,16 +3330,16 @@ function la(e) {
|
|
|
3330
3330
|
), M.value === !0 && j.push(
|
|
3331
3331
|
d("div", {
|
|
3332
3332
|
class: V.value
|
|
3333
|
-
},
|
|
3333
|
+
}, De(a.label, t.label))
|
|
3334
3334
|
), t.suffix !== void 0 && t.suffix !== null && j.push(
|
|
3335
3335
|
d("div", {
|
|
3336
3336
|
class: "q-field__suffix no-pointer-events row items-center"
|
|
3337
3337
|
}, t.suffix)
|
|
3338
|
-
), j.concat(
|
|
3338
|
+
), j.concat(De(a.default));
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function O() {
|
|
3341
3341
|
let j, G;
|
|
3342
|
-
u.value === !0 ? m.value !== null ? (j = [d("div", { role: "alert" }, m.value)], G = `q--slot-error-${m.value}`) : (j =
|
|
3342
|
+
u.value === !0 ? m.value !== null ? (j = [d("div", { role: "alert" }, m.value)], G = `q--slot-error-${m.value}`) : (j = De(a.error), G = "q--slot-error") : (t.hideHint !== !0 || e.focused.value === !0) && (t.hint !== void 0 ? (j = [d("div", t.hint)], G = `q--slot-hint-${t.hint}`) : (j = De(a.hint), G = "q--slot-hint"));
|
|
3343
3343
|
const re = t.counter === !0 || a.counter !== void 0;
|
|
3344
3344
|
if (t.hideBottomSpace === !0 && re === !1 && j === void 0) return;
|
|
3345
3345
|
const x = d("div", {
|
|
@@ -3365,11 +3365,11 @@ function la(e) {
|
|
|
3365
3365
|
let X = !1;
|
|
3366
3366
|
return hl(() => {
|
|
3367
3367
|
X = !0;
|
|
3368
|
-
}),
|
|
3368
|
+
}), Zl(() => {
|
|
3369
3369
|
X === !0 && t.autofocus === !0 && o.focus();
|
|
3370
3370
|
}), t.autofocus === !0 && ft(() => {
|
|
3371
3371
|
o.focus();
|
|
3372
|
-
}),
|
|
3372
|
+
}), ze(() => {
|
|
3373
3373
|
i !== null && clearTimeout(i);
|
|
3374
3374
|
}), Object.assign(o, { focus: E, blur: L }), function() {
|
|
3375
3375
|
const G = e.getControl === void 0 && a.control === void 0 ? {
|
|
@@ -3399,7 +3399,7 @@ function la(e) {
|
|
|
3399
3399
|
tabindex: -1,
|
|
3400
3400
|
...e.controlEvents
|
|
3401
3401
|
}, U()),
|
|
3402
|
-
y.value === !0 ?
|
|
3402
|
+
y.value === !0 ? O() : null
|
|
3403
3403
|
]),
|
|
3404
3404
|
a.after !== void 0 ? d("div", {
|
|
3405
3405
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
@@ -3412,16 +3412,16 @@ const su = de({
|
|
|
3412
3412
|
name: "QField",
|
|
3413
3413
|
inheritAttrs: !1,
|
|
3414
3414
|
props: {
|
|
3415
|
-
...
|
|
3415
|
+
...an,
|
|
3416
3416
|
tag: {
|
|
3417
3417
|
type: String,
|
|
3418
3418
|
default: "label"
|
|
3419
3419
|
}
|
|
3420
3420
|
},
|
|
3421
|
-
emits:
|
|
3421
|
+
emits: ta,
|
|
3422
3422
|
setup() {
|
|
3423
|
-
return
|
|
3424
|
-
|
|
3423
|
+
return na(
|
|
3424
|
+
la({ tagProp: !0 })
|
|
3425
3425
|
);
|
|
3426
3426
|
}
|
|
3427
3427
|
}), cu = {
|
|
@@ -3534,11 +3534,11 @@ const su = de({
|
|
|
3534
3534
|
q(),
|
|
3535
3535
|
"ripple",
|
|
3536
3536
|
e.ripple !== !1 && e.disable !== !0,
|
|
3537
|
-
() => [[
|
|
3537
|
+
() => [[Do, e.ripple]]
|
|
3538
3538
|
);
|
|
3539
3539
|
};
|
|
3540
3540
|
}
|
|
3541
|
-
}),
|
|
3541
|
+
}), On = de({
|
|
3542
3542
|
name: "QItem",
|
|
3543
3543
|
props: {
|
|
3544
3544
|
...rt,
|
|
@@ -3560,7 +3560,7 @@ const su = de({
|
|
|
3560
3560
|
},
|
|
3561
3561
|
emits: ["click", "keyup"],
|
|
3562
3562
|
setup(e, { slots: t, emit: l }) {
|
|
3563
|
-
const { proxy: { $q: a } } = fe(), n = it(e, a), { hasLink: o, linkAttrs: r, linkClass: i, linkTag: s, navigateOnClick: v } =
|
|
3563
|
+
const { proxy: { $q: a } } = fe(), n = it(e, a), { hasLink: o, linkAttrs: r, linkClass: i, linkTag: s, navigateOnClick: v } = Un(), u = P(null), m = P(null), S = c(
|
|
3564
3564
|
() => e.clickable === !0 || o.value === !0 || e.tag === "label"
|
|
3565
3565
|
), h = c(
|
|
3566
3566
|
() => e.disable !== !0 && S.value === !0
|
|
@@ -3581,7 +3581,7 @@ const su = de({
|
|
|
3581
3581
|
l("keyup", V);
|
|
3582
3582
|
}
|
|
3583
3583
|
function M() {
|
|
3584
|
-
const V =
|
|
3584
|
+
const V = Yn(t.default, []);
|
|
3585
3585
|
return h.value === !0 && V.unshift(
|
|
3586
3586
|
d("div", { class: "q-focus-helper", tabindex: -1, ref: m })
|
|
3587
3587
|
), V;
|
|
@@ -3602,7 +3602,7 @@ const su = de({
|
|
|
3602
3602
|
);
|
|
3603
3603
|
};
|
|
3604
3604
|
}
|
|
3605
|
-
}),
|
|
3605
|
+
}), Pn = de({
|
|
3606
3606
|
name: "QItemSection",
|
|
3607
3607
|
props: {
|
|
3608
3608
|
avatar: Boolean,
|
|
@@ -3615,7 +3615,7 @@ const su = de({
|
|
|
3615
3615
|
const l = c(
|
|
3616
3616
|
() => `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" : "")
|
|
3617
3617
|
);
|
|
3618
|
-
return () => d("div", { class: l.value },
|
|
3618
|
+
return () => d("div", { class: l.value }, De(t.default));
|
|
3619
3619
|
}
|
|
3620
3620
|
}), fu = de({
|
|
3621
3621
|
name: "QItemLabel",
|
|
@@ -3637,13 +3637,13 @@ const su = de({
|
|
|
3637
3637
|
return () => d("div", {
|
|
3638
3638
|
style: n.value,
|
|
3639
3639
|
class: a.value
|
|
3640
|
-
},
|
|
3640
|
+
}, De(t.default));
|
|
3641
3641
|
}
|
|
3642
3642
|
});
|
|
3643
3643
|
function vu(e, t, l) {
|
|
3644
3644
|
function a() {
|
|
3645
3645
|
}
|
|
3646
|
-
return
|
|
3646
|
+
return ze(() => {
|
|
3647
3647
|
e.value === !0 && void 0;
|
|
3648
3648
|
}), {
|
|
3649
3649
|
removeFromHistory: a,
|
|
@@ -3651,7 +3651,7 @@ function vu(e, t, l) {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
};
|
|
3653
3653
|
}
|
|
3654
|
-
let Sl = 0,
|
|
3654
|
+
let Sl = 0, gn, bn, kl, yn = !1, ja, Na, Ya, It = null;
|
|
3655
3655
|
function mu(e) {
|
|
3656
3656
|
hu(e) && Fe(e);
|
|
3657
3657
|
}
|
|
@@ -3666,23 +3666,23 @@ function hu(e) {
|
|
|
3666
3666
|
}
|
|
3667
3667
|
return !0;
|
|
3668
3668
|
}
|
|
3669
|
-
function
|
|
3669
|
+
function Qa(e) {
|
|
3670
3670
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
3671
3671
|
}
|
|
3672
3672
|
function Bl(e) {
|
|
3673
|
-
|
|
3674
|
-
|
|
3673
|
+
yn !== !0 && (yn = !0, requestAnimationFrame(() => {
|
|
3674
|
+
yn = !1;
|
|
3675
3675
|
const { height: t } = e.target, { clientHeight: l, scrollTop: a } = document.scrollingElement;
|
|
3676
3676
|
(kl === void 0 || t !== window.innerHeight) && (kl = l - t, document.scrollingElement.scrollTop = a), a > kl && (document.scrollingElement.scrollTop -= Math.ceil((a - kl) / 8));
|
|
3677
3677
|
}));
|
|
3678
3678
|
}
|
|
3679
|
-
function
|
|
3679
|
+
function Ua(e) {
|
|
3680
3680
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
3681
3681
|
if (e === "add") {
|
|
3682
3682
|
const { overflowY: a, overflowX: n } = window.getComputedStyle(t);
|
|
3683
|
-
|
|
3683
|
+
gn = Jn(window), bn = Zn(window), ja = t.style.left, Na = t.style.top, Ya = window.location.href, t.style.left = `-${gn}px`, t.style.top = `-${bn}px`, n !== "hidden" && (n === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), a !== "hidden" && (a === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, He.is.ios === !0 && (l === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Bl, Re.passiveCapture), window.visualViewport.addEventListener("scroll", Bl, Re.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Qa, Re.passiveCapture));
|
|
3684
3684
|
}
|
|
3685
|
-
He.is.desktop === !0 && He.is.mac === !0 && window[`${e}EventListener`]("wheel", mu, Re.notPassive), e === "remove" && (He.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", Bl, Re.passiveCapture), window.visualViewport.removeEventListener("scroll", Bl, Re.passiveCapture)) : window.removeEventListener("scroll",
|
|
3685
|
+
He.is.desktop === !0 && He.is.mac === !0 && window[`${e}EventListener`]("wheel", mu, Re.notPassive), e === "remove" && (He.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", Bl, Re.passiveCapture), window.visualViewport.removeEventListener("scroll", Bl, Re.passiveCapture)) : window.removeEventListener("scroll", Qa, Re.passiveCapture)), t.classList.remove("q-body--prevent-scroll"), t.classList.remove("q-body--force-scrollbar-x"), t.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, t.style.left = ja, t.style.top = Na, window.location.href === Ya && window.scrollTo(gn, bn), kl = void 0);
|
|
3686
3686
|
}
|
|
3687
3687
|
function gu(e) {
|
|
3688
3688
|
let t = "add";
|
|
@@ -3696,12 +3696,12 @@ function gu(e) {
|
|
|
3696
3696
|
if (Sl === 0 || (Sl--, Sl > 0)) return;
|
|
3697
3697
|
if (t = "remove", He.is.ios === !0 && He.is.nativeMobile === !0) {
|
|
3698
3698
|
It !== null && clearTimeout(It), It = setTimeout(() => {
|
|
3699
|
-
|
|
3699
|
+
Ua(t), It = null;
|
|
3700
3700
|
}, 100);
|
|
3701
3701
|
return;
|
|
3702
3702
|
}
|
|
3703
3703
|
}
|
|
3704
|
-
|
|
3704
|
+
Ua(t);
|
|
3705
3705
|
}
|
|
3706
3706
|
function bu() {
|
|
3707
3707
|
let e;
|
|
@@ -3718,7 +3718,7 @@ const yu = {
|
|
|
3718
3718
|
bottom: "fixed-bottom justify-center",
|
|
3719
3719
|
right: "fixed-right items-center",
|
|
3720
3720
|
left: "fixed-left items-center"
|
|
3721
|
-
},
|
|
3721
|
+
}, Ka = {
|
|
3722
3722
|
standard: ["scale", "scale"],
|
|
3723
3723
|
top: ["slide-down", "slide-up"],
|
|
3724
3724
|
bottom: ["slide-up", "slide-down"],
|
|
@@ -3768,9 +3768,9 @@ const yu = {
|
|
|
3768
3768
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
3769
3769
|
), { preventBodyScroll: h } = bu(), { registerTimeout: y } = Xo(), { registerTick: q, removeTick: g } = Wo(), { transitionProps: F, transitionStyle: M } = Ko(
|
|
3770
3770
|
e,
|
|
3771
|
-
() =>
|
|
3772
|
-
() =>
|
|
3773
|
-
), V = c(() => M.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: _, hidePortal: b, portalIsAccessible:
|
|
3771
|
+
() => Ka[e.position][0],
|
|
3772
|
+
() => Ka[e.position][1]
|
|
3773
|
+
), V = c(() => M.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: _, hidePortal: b, portalIsAccessible: R, renderPortal: E } = Qo(
|
|
3774
3774
|
n,
|
|
3775
3775
|
o,
|
|
3776
3776
|
Z,
|
|
@@ -3785,18 +3785,18 @@ const yu = {
|
|
|
3785
3785
|
vu(r);
|
|
3786
3786
|
const T = c(
|
|
3787
3787
|
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${yu[e.position]}` + (i.value === !0 ? " q-dialog__inner--animating" : "") + (e.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (e.square === !0 ? " q-dialog__inner--square" : "")
|
|
3788
|
-
), B = c(() => r.value === !0 && e.seamless !== !0), A = c(() => e.autoClose === !0 ? { onClick: re } : {}),
|
|
3788
|
+
), B = c(() => r.value === !0 && e.seamless !== !0), A = c(() => e.autoClose === !0 ? { onClick: re } : {}), D = c(() => [
|
|
3789
3789
|
`q-dialog fullscreen no-pointer-events q-dialog--${B.value === !0 ? "modal" : "seamless"}`,
|
|
3790
3790
|
a.class
|
|
3791
3791
|
]);
|
|
3792
3792
|
J(() => e.maximized, (Y) => {
|
|
3793
3793
|
r.value === !0 && G(Y);
|
|
3794
3794
|
}), J(B, (Y) => {
|
|
3795
|
-
h(Y), Y === !0 ? (er(k), Jo(X)) : (
|
|
3795
|
+
h(Y), Y === !0 ? (er(k), Jo(X)) : (Vn(k), Ql(X));
|
|
3796
3796
|
});
|
|
3797
3797
|
function U(Y) {
|
|
3798
3798
|
var ae;
|
|
3799
|
-
v = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, G(e.maximized), _(), i.value = !0, e.noFocus !== !0 ? ((ae = document.activeElement) == null || ae.blur(), q(
|
|
3799
|
+
v = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, G(e.maximized), _(), i.value = !0, e.noFocus !== !0 ? ((ae = document.activeElement) == null || ae.blur(), q(O)) : g(), y(() => {
|
|
3800
3800
|
if (n.proxy.$q.platform.is.ios === !0) {
|
|
3801
3801
|
if (e.seamless !== !0 && document.activeElement) {
|
|
3802
3802
|
const { top: te, bottom: ne } = document.activeElement.getBoundingClientRect(), { innerHeight: ye } = window, I = window.visualViewport !== void 0 ? window.visualViewport.height : ye;
|
|
@@ -3815,8 +3815,8 @@ const yu = {
|
|
|
3815
3815
|
b(!0), i.value = !1, l("hide", Y);
|
|
3816
3816
|
}, e.transitionDuration);
|
|
3817
3817
|
}
|
|
3818
|
-
function
|
|
3819
|
-
|
|
3818
|
+
function O(Y) {
|
|
3819
|
+
tn(() => {
|
|
3820
3820
|
let ae = o.value;
|
|
3821
3821
|
if (ae !== null) {
|
|
3822
3822
|
if (Y !== void 0) {
|
|
@@ -3831,17 +3831,17 @@ const yu = {
|
|
|
3831
3831
|
});
|
|
3832
3832
|
}
|
|
3833
3833
|
function H(Y) {
|
|
3834
|
-
Y && typeof Y.focus == "function" ? Y.focus({ preventScroll: !0 }) :
|
|
3834
|
+
Y && typeof Y.focus == "function" ? Y.focus({ preventScroll: !0 }) : O(), l("shake");
|
|
3835
3835
|
const ae = o.value;
|
|
3836
3836
|
ae !== null && (ae.classList.remove("q-animate--scale"), ae.classList.add("q-animate--scale"), s !== null && clearTimeout(s), s = setTimeout(() => {
|
|
3837
|
-
s = null, o.value !== null && (ae.classList.remove("q-animate--scale"),
|
|
3837
|
+
s = null, o.value !== null && (ae.classList.remove("q-animate--scale"), O());
|
|
3838
3838
|
}, 170));
|
|
3839
3839
|
}
|
|
3840
3840
|
function X() {
|
|
3841
3841
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && H() : (l("escapeKey"), L()));
|
|
3842
3842
|
}
|
|
3843
3843
|
function j(Y) {
|
|
3844
|
-
s !== null && (clearTimeout(s), s = null), (Y === !0 || r.value === !0) && (G(!1), e.seamless !== !0 && (h(!1),
|
|
3844
|
+
s !== null && (clearTimeout(s), s = null), (Y === !0 || r.value === !0) && (G(!1), e.seamless !== !0 && (h(!1), Vn(k), Ql(X))), Y !== !0 && (v = null);
|
|
3845
3845
|
}
|
|
3846
3846
|
function G(Y) {
|
|
3847
3847
|
Y === !0 ? u !== !0 && (Rl < 1 && document.body.classList.add("q-body--dialog"), Rl++, u = !0) : u === !0 && (Rl < 2 && document.body.classList.remove("q-body--dialog"), Rl--, u = !1);
|
|
@@ -3853,23 +3853,23 @@ const yu = {
|
|
|
3853
3853
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? L(Y) : e.noShake !== !0 && H();
|
|
3854
3854
|
}
|
|
3855
3855
|
function k(Y) {
|
|
3856
|
-
e.allowFocusOutside !== !0 &&
|
|
3856
|
+
e.allowFocusOutside !== !0 && R.value === !0 && $o(o.value, Y.target) !== !0 && O('[tabindex]:not([tabindex="-1"])');
|
|
3857
3857
|
}
|
|
3858
3858
|
Object.assign(n.proxy, {
|
|
3859
3859
|
// expose public methods
|
|
3860
|
-
focus:
|
|
3860
|
+
focus: O,
|
|
3861
3861
|
shake: H,
|
|
3862
3862
|
// private but needed by QSelect
|
|
3863
3863
|
__updateRefocusTarget(Y) {
|
|
3864
3864
|
v = Y || null;
|
|
3865
3865
|
}
|
|
3866
|
-
}),
|
|
3866
|
+
}), ze(j);
|
|
3867
3867
|
function Z() {
|
|
3868
3868
|
return d("div", {
|
|
3869
3869
|
role: "dialog",
|
|
3870
3870
|
"aria-modal": B.value === !0 ? "true" : "false",
|
|
3871
3871
|
...a,
|
|
3872
|
-
class:
|
|
3872
|
+
class: D.value
|
|
3873
3873
|
}, [
|
|
3874
3874
|
d(wt, {
|
|
3875
3875
|
name: "q-transition--fade",
|
|
@@ -3890,14 +3890,14 @@ const yu = {
|
|
|
3890
3890
|
style: M.value,
|
|
3891
3891
|
tabindex: -1,
|
|
3892
3892
|
...A.value
|
|
3893
|
-
},
|
|
3893
|
+
}, De(t.default)) : null
|
|
3894
3894
|
)
|
|
3895
3895
|
]);
|
|
3896
3896
|
}
|
|
3897
3897
|
return E;
|
|
3898
3898
|
}
|
|
3899
3899
|
});
|
|
3900
|
-
let
|
|
3900
|
+
let Wl = !1;
|
|
3901
3901
|
{
|
|
3902
3902
|
const e = document.createElement("div");
|
|
3903
3903
|
e.setAttribute("dir", "rtl"), Object.assign(e.style, {
|
|
@@ -3909,7 +3909,7 @@ let Kl = !1;
|
|
|
3909
3909
|
Object.assign(t.style, {
|
|
3910
3910
|
width: "1000px",
|
|
3911
3911
|
height: "1px"
|
|
3912
|
-
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3,
|
|
3912
|
+
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, Wl = e.scrollLeft >= 0, e.remove();
|
|
3913
3913
|
}
|
|
3914
3914
|
const ht = 1e3, wu = [
|
|
3915
3915
|
"start",
|
|
@@ -3918,7 +3918,7 @@ const ht = 1e3, wu = [
|
|
|
3918
3918
|
"start-force",
|
|
3919
3919
|
"center-force",
|
|
3920
3920
|
"end-force"
|
|
3921
|
-
], nr = Array.prototype.filter, Su = window.getComputedStyle(document.body).overflowAnchor === void 0 ?
|
|
3921
|
+
], nr = Array.prototype.filter, Su = window.getComputedStyle(document.body).overflowAnchor === void 0 ? Jl : function(e, t) {
|
|
3922
3922
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
3923
3923
|
if (e === null) return;
|
|
3924
3924
|
e._qOverflowAnimationFrame = void 0;
|
|
@@ -3933,7 +3933,7 @@ const ht = 1e3, wu = [
|
|
|
3933
3933
|
function cl(e, t) {
|
|
3934
3934
|
return e + t;
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3936
|
+
function wn(e, t, l, a, n, o, r, i) {
|
|
3937
3937
|
const s = e === window ? document.scrollingElement || document.documentElement : e, v = n === !0 ? "offsetWidth" : "offsetHeight", u = {
|
|
3938
3938
|
scrollStart: 0,
|
|
3939
3939
|
scrollViewSize: -r - i,
|
|
@@ -3941,7 +3941,7 @@ function yn(e, t, l, a, n, o, r, i) {
|
|
|
3941
3941
|
offsetStart: -r,
|
|
3942
3942
|
offsetEnd: -i
|
|
3943
3943
|
};
|
|
3944
|
-
if (n === !0 ? (e === window ? (u.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, u.scrollViewSize += document.documentElement.clientWidth) : (u.scrollStart = s.scrollLeft, u.scrollViewSize += s.clientWidth), u.scrollMaxSize = s.scrollWidth, o === !0 && (u.scrollStart = (
|
|
3944
|
+
if (n === !0 ? (e === window ? (u.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, u.scrollViewSize += document.documentElement.clientWidth) : (u.scrollStart = s.scrollLeft, u.scrollViewSize += s.clientWidth), u.scrollMaxSize = s.scrollWidth, o === !0 && (u.scrollStart = (Wl === !0 ? u.scrollMaxSize - u.scrollViewSize : 0) - u.scrollStart)) : (e === window ? (u.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, u.scrollViewSize += document.documentElement.clientHeight) : (u.scrollStart = s.scrollTop, u.scrollViewSize += s.clientHeight), u.scrollMaxSize = s.scrollHeight), l !== null)
|
|
3945
3945
|
for (let m = l.previousElementSibling; m !== null; m = m.previousElementSibling)
|
|
3946
3946
|
m.classList.contains("q-virtual-scroll--skip") === !1 && (u.offsetStart += m[v]);
|
|
3947
3947
|
if (a !== null)
|
|
@@ -3953,8 +3953,8 @@ function yn(e, t, l, a, n, o, r, i) {
|
|
|
3953
3953
|
}
|
|
3954
3954
|
return u;
|
|
3955
3955
|
}
|
|
3956
|
-
function
|
|
3957
|
-
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (a === !0 && (t = (
|
|
3956
|
+
function Wa(e, t, l, a) {
|
|
3957
|
+
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (a === !0 && (t = (Wl === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - t), window.scrollTo(t, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, t) : l === !0 ? (a === !0 && (t = (Wl === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
3958
3958
|
}
|
|
3959
3959
|
function pl(e, t, l, a) {
|
|
3960
3960
|
if (l >= a)
|
|
@@ -3989,7 +3989,7 @@ const ar = {
|
|
|
3989
3989
|
default: 0
|
|
3990
3990
|
},
|
|
3991
3991
|
tableColspan: [Number, String]
|
|
3992
|
-
}, or = Object.keys(ar),
|
|
3992
|
+
}, or = Object.keys(ar), An = {
|
|
3993
3993
|
virtualScrollHorizontal: Boolean,
|
|
3994
3994
|
onVirtualScroll: Function,
|
|
3995
3995
|
...ar
|
|
@@ -4005,22 +4005,22 @@ function rr({
|
|
|
4005
4005
|
let v, u, m, S = [], h;
|
|
4006
4006
|
const y = P(0), q = P(0), g = P({}), F = P(null), M = P(null), V = P(null), _ = P({ from: 0, to: 0 }), b = c(() => o.tableColspan !== void 0 ? o.tableColspan : 100);
|
|
4007
4007
|
a === void 0 && (a = c(() => o.virtualScrollItemSize));
|
|
4008
|
-
const
|
|
4009
|
-
() =>
|
|
4008
|
+
const R = c(() => a.value + ";" + o.virtualScrollHorizontal), E = c(
|
|
4009
|
+
() => R.value + ";" + o.virtualScrollSliceRatioBefore + ";" + o.virtualScrollSliceRatioAfter
|
|
4010
4010
|
);
|
|
4011
4011
|
J(E, () => {
|
|
4012
4012
|
H();
|
|
4013
|
-
}), J(
|
|
4013
|
+
}), J(R, L);
|
|
4014
4014
|
function L() {
|
|
4015
|
-
|
|
4015
|
+
O(u, !0);
|
|
4016
4016
|
}
|
|
4017
4017
|
function T(x) {
|
|
4018
|
-
|
|
4018
|
+
O(x === void 0 ? u : x);
|
|
4019
4019
|
}
|
|
4020
4020
|
function B(x, k) {
|
|
4021
4021
|
const Z = t();
|
|
4022
4022
|
if (Z == null || Z.nodeType === 8) return;
|
|
4023
|
-
const Y =
|
|
4023
|
+
const Y = wn(
|
|
4024
4024
|
Z,
|
|
4025
4025
|
l(),
|
|
4026
4026
|
F.value,
|
|
@@ -4030,7 +4030,7 @@ function rr({
|
|
|
4030
4030
|
o.virtualScrollStickySizeStart,
|
|
4031
4031
|
o.virtualScrollStickySizeEnd
|
|
4032
4032
|
);
|
|
4033
|
-
m !== Y.scrollViewSize && H(Y.scrollViewSize),
|
|
4033
|
+
m !== Y.scrollViewSize && H(Y.scrollViewSize), D(
|
|
4034
4034
|
Z,
|
|
4035
4035
|
Y,
|
|
4036
4036
|
Math.min(e.value - 1, Math.max(0, parseInt(x, 10) || 0)),
|
|
@@ -4041,7 +4041,7 @@ function rr({
|
|
|
4041
4041
|
function A() {
|
|
4042
4042
|
const x = t();
|
|
4043
4043
|
if (x == null || x.nodeType === 8) return;
|
|
4044
|
-
const k =
|
|
4044
|
+
const k = wn(
|
|
4045
4045
|
x,
|
|
4046
4046
|
l(),
|
|
4047
4047
|
F.value,
|
|
@@ -4053,13 +4053,13 @@ function rr({
|
|
|
4053
4053
|
), Z = e.value - 1, Y = k.scrollMaxSize - k.offsetStart - k.offsetEnd - q.value;
|
|
4054
4054
|
if (v === k.scrollStart) return;
|
|
4055
4055
|
if (k.scrollMaxSize <= 0) {
|
|
4056
|
-
|
|
4056
|
+
D(x, k, 0, 0);
|
|
4057
4057
|
return;
|
|
4058
4058
|
}
|
|
4059
4059
|
m !== k.scrollViewSize && H(k.scrollViewSize), U(_.value.from);
|
|
4060
4060
|
const ae = Math.floor(k.scrollMaxSize - Math.max(k.scrollViewSize, k.offsetEnd) - Math.min(h[Z], k.scrollViewSize / 2));
|
|
4061
4061
|
if (ae > 0 && Math.ceil(k.scrollStart) >= ae) {
|
|
4062
|
-
|
|
4062
|
+
D(
|
|
4063
4063
|
x,
|
|
4064
4064
|
k,
|
|
4065
4065
|
Z,
|
|
@@ -4075,14 +4075,14 @@ function rr({
|
|
|
4075
4075
|
ne -= S[I], te += ht;
|
|
4076
4076
|
for (; ne > 0 && te < Z; )
|
|
4077
4077
|
ne -= h[te], ne > -k.scrollViewSize ? (te++, ye = ne) : ye = h[te] + ne;
|
|
4078
|
-
|
|
4078
|
+
D(
|
|
4079
4079
|
x,
|
|
4080
4080
|
k,
|
|
4081
4081
|
te,
|
|
4082
4082
|
ye
|
|
4083
4083
|
);
|
|
4084
4084
|
}
|
|
4085
|
-
function
|
|
4085
|
+
function D(x, k, Z, Y, ae) {
|
|
4086
4086
|
const te = typeof ae == "string" && ae.indexOf("-force") !== -1, ne = te === !0 ? ae.replace("-force", "") : ae, ye = ne !== void 0 ? ne : "start";
|
|
4087
4087
|
let I = Math.max(0, Z - g.value[ye]), Ee = I + g.value.total;
|
|
4088
4088
|
Ee > e.value && (Ee = e.value, I = Math.max(0, Ee - g.value.total)), v = k.scrollStart;
|
|
@@ -4111,7 +4111,7 @@ function rr({
|
|
|
4111
4111
|
const Pt = We - et, Ct = k.scrollStart + Pt;
|
|
4112
4112
|
pt = te !== !0 && Ct < Ie && Te < Ct + k.scrollViewSize ? Ct : ne === "end" ? Te - k.scrollViewSize : Ie - (ne === "start" ? 0 : Math.round((k.scrollViewSize - h[Z]) / 2));
|
|
4113
4113
|
}
|
|
4114
|
-
v = pt,
|
|
4114
|
+
v = pt, Wa(
|
|
4115
4115
|
x,
|
|
4116
4116
|
pt,
|
|
4117
4117
|
o.virtualScrollHorizontal,
|
|
@@ -4138,7 +4138,7 @@ function rr({
|
|
|
4138
4138
|
var x;
|
|
4139
4139
|
(x = V.value) == null || x.focus();
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4141
|
+
function O(x, k) {
|
|
4142
4142
|
const Z = 1 * a.value;
|
|
4143
4143
|
(k === !0 || Array.isArray(h) === !1) && (h = []);
|
|
4144
4144
|
const Y = h.length;
|
|
@@ -4161,7 +4161,7 @@ function rr({
|
|
|
4161
4161
|
function H(x) {
|
|
4162
4162
|
if (x === void 0 && typeof window < "u") {
|
|
4163
4163
|
const ne = t();
|
|
4164
|
-
ne != null && ne.nodeType !== 8 && (x =
|
|
4164
|
+
ne != null && ne.nodeType !== 8 && (x = wn(
|
|
4165
4165
|
ne,
|
|
4166
4166
|
l(),
|
|
4167
4167
|
F.value,
|
|
@@ -4243,33 +4243,33 @@ function rr({
|
|
|
4243
4243
|
}), u = x);
|
|
4244
4244
|
}
|
|
4245
4245
|
H();
|
|
4246
|
-
const G =
|
|
4246
|
+
const G = ea(
|
|
4247
4247
|
A,
|
|
4248
4248
|
s.platform.is.ios === !0 ? 120 : 35
|
|
4249
4249
|
);
|
|
4250
|
-
|
|
4250
|
+
jn(() => {
|
|
4251
4251
|
H();
|
|
4252
4252
|
});
|
|
4253
4253
|
let re = !1;
|
|
4254
4254
|
return hl(() => {
|
|
4255
4255
|
re = !0;
|
|
4256
|
-
}),
|
|
4256
|
+
}), Zl(() => {
|
|
4257
4257
|
if (re !== !0) return;
|
|
4258
4258
|
const x = t();
|
|
4259
|
-
v !== void 0 && x !== void 0 && x !== null && x.nodeType !== 8 ?
|
|
4259
|
+
v !== void 0 && x !== void 0 && x !== null && x.nodeType !== 8 ? Wa(
|
|
4260
4260
|
x,
|
|
4261
4261
|
v,
|
|
4262
4262
|
o.virtualScrollHorizontal,
|
|
4263
4263
|
s.lang.rtl
|
|
4264
4264
|
) : B(u);
|
|
4265
|
-
}),
|
|
4265
|
+
}), ze(() => {
|
|
4266
4266
|
G.cancel();
|
|
4267
4267
|
}), Object.assign(i, { scrollTo: B, reset: L, refresh: T }), {
|
|
4268
4268
|
virtualScrollSliceRange: _,
|
|
4269
4269
|
virtualScrollSliceSizeComputed: g,
|
|
4270
4270
|
setVirtualScrollSize: H,
|
|
4271
4271
|
onVirtualScrollEvt: G,
|
|
4272
|
-
localResetVirtualScroll:
|
|
4272
|
+
localResetVirtualScroll: O,
|
|
4273
4273
|
padVirtualScroll: X,
|
|
4274
4274
|
scrollTo: B,
|
|
4275
4275
|
reset: L,
|
|
@@ -4356,25 +4356,25 @@ function Vt(e, t) {
|
|
|
4356
4356
|
function ur(e) {
|
|
4357
4357
|
return e !== null && typeof e == "object" && Array.isArray(e) !== !0;
|
|
4358
4358
|
}
|
|
4359
|
-
function
|
|
4359
|
+
function Xa(e) {
|
|
4360
4360
|
return Object.prototype.toString.call(e) === "[object Date]";
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function Ln(e) {
|
|
4363
4363
|
return typeof e == "number" && isFinite(e);
|
|
4364
4364
|
}
|
|
4365
|
-
const
|
|
4366
|
-
function
|
|
4365
|
+
const Za = (e) => ["add", "add-unique", "toggle"].includes(e), qu = ".*+?^${}()|[]\\", xu = Object.keys(an);
|
|
4366
|
+
function Sn(e, t) {
|
|
4367
4367
|
if (typeof e == "function") return e;
|
|
4368
4368
|
const l = e !== void 0 ? e : t;
|
|
4369
4369
|
return (a) => a !== null && typeof a == "object" && l in a ? a[l] : a;
|
|
4370
4370
|
}
|
|
4371
|
-
const
|
|
4371
|
+
const aa = de({
|
|
4372
4372
|
name: "QSelect",
|
|
4373
4373
|
inheritAttrs: !1,
|
|
4374
4374
|
props: {
|
|
4375
|
-
...
|
|
4376
|
-
...
|
|
4377
|
-
...
|
|
4375
|
+
...An,
|
|
4376
|
+
...en,
|
|
4377
|
+
...an,
|
|
4378
4378
|
// override of useFieldProps > modelValue
|
|
4379
4379
|
modelValue: {
|
|
4380
4380
|
required: !0
|
|
@@ -4413,7 +4413,7 @@ const na = de({
|
|
|
4413
4413
|
useChips: Boolean,
|
|
4414
4414
|
newValueMode: {
|
|
4415
4415
|
type: String,
|
|
4416
|
-
validator:
|
|
4416
|
+
validator: Za
|
|
4417
4417
|
},
|
|
4418
4418
|
mapOptions: Boolean,
|
|
4419
4419
|
emitValue: Boolean,
|
|
@@ -4438,12 +4438,12 @@ const na = de({
|
|
|
4438
4438
|
default: "default"
|
|
4439
4439
|
},
|
|
4440
4440
|
// override of useVirtualScrollProps > virtualScrollItemSize (no default)
|
|
4441
|
-
virtualScrollItemSize:
|
|
4441
|
+
virtualScrollItemSize: An.virtualScrollItemSize.type,
|
|
4442
4442
|
onNewValue: Function,
|
|
4443
4443
|
onFilter: Function
|
|
4444
4444
|
},
|
|
4445
4445
|
emits: [
|
|
4446
|
-
...
|
|
4446
|
+
...ta,
|
|
4447
4447
|
"add",
|
|
4448
4448
|
"remove",
|
|
4449
4449
|
"inputValue",
|
|
@@ -4457,20 +4457,20 @@ const na = de({
|
|
|
4457
4457
|
setup(e, { slots: t, emit: l }) {
|
|
4458
4458
|
const { proxy: a } = fe(), { $q: n } = a, o = P(!1), r = P(!1), i = P(-1), s = P(""), v = P(!1), u = P(!1);
|
|
4459
4459
|
let m = null, S = null, h, y, q, g = null, F, M, V, _;
|
|
4460
|
-
const b = P(null),
|
|
4460
|
+
const b = P(null), R = P(null), E = P(null), L = P(null), T = P(null), B = To(e), A = ir($), D = c(() => Array.isArray(e.options) ? e.options.length : 0), U = c(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
4461
4461
|
virtualScrollSliceRange: C,
|
|
4462
|
-
virtualScrollSliceSizeComputed:
|
|
4462
|
+
virtualScrollSliceSizeComputed: O,
|
|
4463
4463
|
localResetVirtualScroll: H,
|
|
4464
4464
|
padVirtualScroll: X,
|
|
4465
4465
|
onVirtualScrollEvt: j,
|
|
4466
4466
|
scrollTo: G,
|
|
4467
4467
|
setVirtualScrollSize: re
|
|
4468
4468
|
} = rr({
|
|
4469
|
-
virtualScrollLength:
|
|
4469
|
+
virtualScrollLength: D,
|
|
4470
4470
|
getVirtualScrollTarget: $t,
|
|
4471
4471
|
getVirtualScrollEl: Ft,
|
|
4472
4472
|
virtualScrollItemSizeComputed: U
|
|
4473
|
-
}), x =
|
|
4473
|
+
}), x = la(), k = c(() => {
|
|
4474
4474
|
const p = e.mapOptions === !0 && e.multiple !== !0, W = e.modelValue !== void 0 && (e.modelValue !== null || p === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
4475
4475
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
4476
4476
|
const ee = e.mapOptions === !0 && h !== void 0 ? h : [], ve = W.map((Ce) => Zt(Ce, ee));
|
|
@@ -4488,7 +4488,7 @@ const na = de({
|
|
|
4488
4488
|
return e.hideSelected === !0 || k.value.length === 0 ? [p, e.inputClass] : (p += " q-field__input--padding", e.inputClass === void 0 ? p : [p, e.inputClass]);
|
|
4489
4489
|
}), ne = c(
|
|
4490
4490
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
4491
|
-
), ye = c(() =>
|
|
4491
|
+
), ye = c(() => D.value === 0), I = c(
|
|
4492
4492
|
() => k.value.map((p) => je.value(p)).join(", ")
|
|
4493
4493
|
), Ee = c(() => e.displayValue !== void 0 ? e.displayValue : I.value), we = c(() => e.optionsHtml === !0 ? () => !0 : (p) => (p == null ? void 0 : p.html) === !0), Me = c(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || k.value.some(we.value))), Oe = c(() => x.focused.value === !0 ? e.tabindex : -1), et = c(() => {
|
|
4494
4494
|
const p = {
|
|
@@ -4514,7 +4514,7 @@ const na = de({
|
|
|
4514
4514
|
toggleOption: Ue,
|
|
4515
4515
|
tabindex: Oe.value
|
|
4516
4516
|
}))), Te = c(() => {
|
|
4517
|
-
if (
|
|
4517
|
+
if (D.value === 0)
|
|
4518
4518
|
return [];
|
|
4519
4519
|
const { from: p, to: W } = C.value;
|
|
4520
4520
|
return e.options.slice(p, W).map((ee, ve) => {
|
|
@@ -4551,7 +4551,7 @@ const na = de({
|
|
|
4551
4551
|
});
|
|
4552
4552
|
}), pt = c(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : n.iconSet.arrow.dropdown), Pt = c(
|
|
4553
4553
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
4554
|
-
), Ct = c(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Qe = c(() =>
|
|
4554
|
+
), Ct = c(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Qe = c(() => Sn(e.optionValue, "value")), je = c(() => Sn(e.optionLabel, "label")), ut = c(() => Sn(e.optionDisable, "disable")), gt = c(() => k.value.map(Qe.value)), Wt = c(() => {
|
|
4555
4555
|
const p = {
|
|
4556
4556
|
onInput: $,
|
|
4557
4557
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -4571,7 +4571,7 @@ const na = de({
|
|
|
4571
4571
|
});
|
|
4572
4572
|
J(k, (p) => {
|
|
4573
4573
|
h = p, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && x.innerLoading.value !== !0 && (r.value !== !0 && o.value !== !0 || ae.value !== !0) && (q !== !0 && st(), (r.value === !0 || o.value === !0) && oe(""));
|
|
4574
|
-
}, { immediate: !0 }), J(() => e.fillInput, st), J(o,
|
|
4574
|
+
}, { immediate: !0 }), J(() => e.fillInput, st), J(o, on), J(D, qr);
|
|
4575
4575
|
function Xt(p) {
|
|
4576
4576
|
return e.emitValue === !0 ? Qe.value(p) : p;
|
|
4577
4577
|
}
|
|
@@ -4613,7 +4613,7 @@ const na = de({
|
|
|
4613
4613
|
e.fillInput === !0 ? je.value(p) : "",
|
|
4614
4614
|
!0,
|
|
4615
4615
|
!0
|
|
4616
|
-
), be()), (Ve =
|
|
4616
|
+
), be()), (Ve = R.value) == null || Ve.focus(), (k.value.length === 0 || Vt(Qe.value(k.value[0]), ee) !== !0) && l("update:modelValue", e.emitValue === !0 ? ee : p);
|
|
4617
4617
|
return;
|
|
4618
4618
|
}
|
|
4619
4619
|
if ((y !== !0 || v.value === !0) && x.focus(), Lt(), k.value.length === 0) {
|
|
@@ -4633,17 +4633,17 @@ const na = de({
|
|
|
4633
4633
|
}
|
|
4634
4634
|
function Ye(p) {
|
|
4635
4635
|
if (n.platform.is.desktop !== !0) return;
|
|
4636
|
-
const W = p !== -1 && p <
|
|
4636
|
+
const W = p !== -1 && p < D.value ? p : -1;
|
|
4637
4637
|
i.value !== W && (i.value = W);
|
|
4638
4638
|
}
|
|
4639
4639
|
function Xe(p = 1, W) {
|
|
4640
4640
|
if (o.value === !0) {
|
|
4641
4641
|
let ee = i.value;
|
|
4642
4642
|
do
|
|
4643
|
-
ee =
|
|
4643
|
+
ee = qa(
|
|
4644
4644
|
ee + p,
|
|
4645
4645
|
-1,
|
|
4646
|
-
|
|
4646
|
+
D.value - 1
|
|
4647
4647
|
);
|
|
4648
4648
|
while (ee !== -1 && ee !== i.value && ut.value(e.options[ee]) === !0);
|
|
4649
4649
|
i.value !== ee && (Ye(ee), G(ee), W !== !0 && e.useInput === !0 && e.fillInput === !0 && Q(
|
|
@@ -4661,7 +4661,7 @@ const na = de({
|
|
|
4661
4661
|
return gt.value.find((ee) => Vt(ee, W)) !== void 0;
|
|
4662
4662
|
}
|
|
4663
4663
|
function Lt(p) {
|
|
4664
|
-
e.useInput === !0 &&
|
|
4664
|
+
e.useInput === !0 && R.value !== null && (p === void 0 || R.value === p.target && p.target.value === I.value) && R.value.select();
|
|
4665
4665
|
}
|
|
4666
4666
|
function Jt(p) {
|
|
4667
4667
|
Rt(p, 27) === !0 && o.value === !0 && (nt(p), be(), st()), l("keyup", p);
|
|
@@ -4687,7 +4687,7 @@ const na = de({
|
|
|
4687
4687
|
l("keypress", p);
|
|
4688
4688
|
}
|
|
4689
4689
|
function Ze(p) {
|
|
4690
|
-
if (l("keydown", p),
|
|
4690
|
+
if (l("keydown", p), Kn(p) === !0) return;
|
|
4691
4691
|
const W = s.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), ee = p.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (i.value !== -1 || W === !0);
|
|
4692
4692
|
if (p.keyCode === 27) {
|
|
4693
4693
|
Ke(p);
|
|
@@ -4706,14 +4706,14 @@ const na = de({
|
|
|
4706
4706
|
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? bt(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
4707
4707
|
return;
|
|
4708
4708
|
}
|
|
4709
|
-
(p.keyCode === 35 || p.keyCode === 36) && (typeof s.value != "string" || s.value.length === 0) && (Fe(p), i.value = -1, Xe(p.keyCode === 36 ? 1 : -1, e.multiple)), (p.keyCode === 33 || p.keyCode === 34) &&
|
|
4709
|
+
(p.keyCode === 35 || p.keyCode === 36) && (typeof s.value != "string" || s.value.length === 0) && (Fe(p), i.value = -1, Xe(p.keyCode === 36 ? 1 : -1, e.multiple)), (p.keyCode === 33 || p.keyCode === 34) && O.value !== void 0 && (Fe(p), i.value = Math.max(
|
|
4710
4710
|
-1,
|
|
4711
4711
|
Math.min(
|
|
4712
|
-
|
|
4713
|
-
i.value + (p.keyCode === 33 ? -1 : 1) *
|
|
4712
|
+
D.value,
|
|
4713
|
+
i.value + (p.keyCode === 33 ? -1 : 1) * O.value.view
|
|
4714
4714
|
)
|
|
4715
4715
|
), Xe(p.keyCode === 33 ? 1 : -1, e.multiple)), (p.keyCode === 38 || p.keyCode === 40) && (Fe(p), Xe(p.keyCode === 38 ? -1 : 1, e.multiple));
|
|
4716
|
-
const ve =
|
|
4716
|
+
const ve = D.value;
|
|
4717
4717
|
if ((V === void 0 || _ < Date.now()) && (V = ""), ve > 0 && e.useInput !== !0 && p.key !== void 0 && p.key.length === 1 && p.altKey === !1 && p.ctrlKey === !1 && p.metaKey === !1 && (p.keyCode !== 32 || V.length !== 0)) {
|
|
4718
4718
|
o.value !== !0 && ue(p);
|
|
4719
4719
|
const Ce = p.key.toLocaleLowerCase(), Ve = V.length === 1 && V[0] === Ce;
|
|
@@ -4722,7 +4722,7 @@ const na = de({
|
|
|
4722
4722
|
let Be = i.value;
|
|
4723
4723
|
if (Ve === !0 || Be < 0 || ke.test(je.value(e.options[Be])) !== !0)
|
|
4724
4724
|
do
|
|
4725
|
-
Be =
|
|
4725
|
+
Be = qa(Be + 1, -1, ve - 1);
|
|
4726
4726
|
while (Be !== i.value && (ut.value(e.options[Be]) === !0 || ke.test(je.value(e.options[Be])) !== !0));
|
|
4727
4727
|
i.value !== Be && xe(() => {
|
|
4728
4728
|
Ye(Be), G(Be), Be >= 0 && e.useInput === !0 && e.fillInput === !0 && Q(je.value(e.options[Be]), !0);
|
|
@@ -4738,11 +4738,11 @@ const na = de({
|
|
|
4738
4738
|
const Ce = (Ve, ke) => {
|
|
4739
4739
|
var el;
|
|
4740
4740
|
if (ke) {
|
|
4741
|
-
if (
|
|
4741
|
+
if (Za(ke) !== !0) return;
|
|
4742
4742
|
} else
|
|
4743
4743
|
ke = e.newValueMode;
|
|
4744
4744
|
if (ie("", e.multiple !== !0, !0), Ve == null) return;
|
|
4745
|
-
(ke === "toggle" ? Ue : At)(Ve, ke === "add-unique"), e.multiple !== !0 && ((el =
|
|
4745
|
+
(ke === "toggle" ? Ue : At)(Ve, ke === "add-unique"), e.multiple !== !0 && ((el = R.value) == null || el.focus(), be());
|
|
4746
4746
|
};
|
|
4747
4747
|
if (e.onNewValue !== void 0 ? l("newValue", s.value, Ce) : Ce(s.value), e.multiple !== !0) return;
|
|
4748
4748
|
}
|
|
@@ -4778,11 +4778,11 @@ const na = de({
|
|
|
4778
4778
|
function mt() {
|
|
4779
4779
|
if (ye.value === !0)
|
|
4780
4780
|
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: s.value }) : void 0;
|
|
4781
|
-
const p = t.option !== void 0 ? t.option : (ee) => d(
|
|
4781
|
+
const p = t.option !== void 0 ? t.option : (ee) => d(On, {
|
|
4782
4782
|
key: ee.index,
|
|
4783
4783
|
...ee.itemProps
|
|
4784
4784
|
}, () => d(
|
|
4785
|
-
|
|
4785
|
+
Pn,
|
|
4786
4786
|
() => d(
|
|
4787
4787
|
fu,
|
|
4788
4788
|
() => d("span", {
|
|
@@ -4795,7 +4795,7 @@ const na = de({
|
|
|
4795
4795
|
}
|
|
4796
4796
|
function Ht(p, W) {
|
|
4797
4797
|
const ee = W === !0 ? { ...et.value, ...x.splitAttrs.attributes.value } : void 0, ve = {
|
|
4798
|
-
ref: W === !0 ?
|
|
4798
|
+
ref: W === !0 ? R : void 0,
|
|
4799
4799
|
key: "i_t",
|
|
4800
4800
|
class: te.value,
|
|
4801
4801
|
style: e.inputStyle,
|
|
@@ -4837,7 +4837,7 @@ const na = de({
|
|
|
4837
4837
|
p,
|
|
4838
4838
|
(Ce, Ve) => {
|
|
4839
4839
|
(W === !0 || x.focused.value === !0) && g === ve && (clearTimeout(g), typeof Ce == "function" && Ce(), u.value = !1, xe(() => {
|
|
4840
|
-
x.innerLoading.value = !1, x.editable.value === !0 && (W === !0 ? o.value === !0 && be() : o.value === !0 ?
|
|
4840
|
+
x.innerLoading.value = !1, x.editable.value === !0 && (W === !0 ? o.value === !0 && be() : o.value === !0 ? on(!0) : o.value = !0), typeof Ve == "function" && xe(() => {
|
|
4841
4841
|
Ve(a);
|
|
4842
4842
|
}), typeof ee == "function" && xe(() => {
|
|
4843
4843
|
ee(a);
|
|
@@ -4850,7 +4850,7 @@ const na = de({
|
|
|
4850
4850
|
);
|
|
4851
4851
|
}
|
|
4852
4852
|
function se() {
|
|
4853
|
-
return d(
|
|
4853
|
+
return d(ln, {
|
|
4854
4854
|
ref: E,
|
|
4855
4855
|
class: ne.value,
|
|
4856
4856
|
style: e.popupContentStyle,
|
|
@@ -4872,27 +4872,27 @@ const na = de({
|
|
|
4872
4872
|
separateClosePopup: !0,
|
|
4873
4873
|
...We.value,
|
|
4874
4874
|
onScrollPassive: j,
|
|
4875
|
-
onBeforeShow:
|
|
4875
|
+
onBeforeShow: ia,
|
|
4876
4876
|
onBeforeHide: _e,
|
|
4877
4877
|
onShow: pe
|
|
4878
4878
|
}, mt);
|
|
4879
4879
|
}
|
|
4880
4880
|
function _e(p) {
|
|
4881
|
-
|
|
4881
|
+
ua(p), le();
|
|
4882
4882
|
}
|
|
4883
4883
|
function pe() {
|
|
4884
4884
|
re();
|
|
4885
4885
|
}
|
|
4886
4886
|
function f(p) {
|
|
4887
4887
|
var W;
|
|
4888
|
-
nt(p), (W =
|
|
4888
|
+
nt(p), (W = R.value) == null || W.focus(), v.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
4889
4889
|
}
|
|
4890
4890
|
function w(p) {
|
|
4891
4891
|
nt(p), xe(() => {
|
|
4892
4892
|
v.value = !1;
|
|
4893
4893
|
});
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function z() {
|
|
4896
4896
|
const p = [
|
|
4897
4897
|
d(su, {
|
|
4898
4898
|
class: `col-auto ${x.fieldClass.value}`,
|
|
@@ -4931,7 +4931,7 @@ const na = de({
|
|
|
4931
4931
|
transitionHide: e.transitionHide,
|
|
4932
4932
|
transitionDuration: e.transitionDuration,
|
|
4933
4933
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
4934
|
-
onBeforeShow:
|
|
4934
|
+
onBeforeShow: ia,
|
|
4935
4935
|
onBeforeHide: N,
|
|
4936
4936
|
onHide: K,
|
|
4937
4937
|
onShow: ce
|
|
@@ -4940,7 +4940,7 @@ const na = de({
|
|
|
4940
4940
|
}, p));
|
|
4941
4941
|
}
|
|
4942
4942
|
function N(p) {
|
|
4943
|
-
|
|
4943
|
+
ua(p), L.value !== null && L.value.__updateRefocusTarget(
|
|
4944
4944
|
x.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
4945
4945
|
), x.focused.value = !1;
|
|
4946
4946
|
}
|
|
@@ -4949,7 +4949,7 @@ const na = de({
|
|
|
4949
4949
|
}
|
|
4950
4950
|
function ce() {
|
|
4951
4951
|
const p = document.activeElement;
|
|
4952
|
-
(p === null || p.id !== x.targetUid.value) &&
|
|
4952
|
+
(p === null || p.id !== x.targetUid.value) && R.value !== null && R.value !== p && R.value.focus(), re();
|
|
4953
4953
|
}
|
|
4954
4954
|
function le() {
|
|
4955
4955
|
r.value !== !0 && (i.value = -1, o.value === !0 && (o.value = !1), x.focused.value === !1 && (g !== null && (clearTimeout(g), g = null), x.innerLoading.value === !0 && (l("filterAbort"), x.innerLoading.value = !1, u.value = !1)));
|
|
@@ -4969,7 +4969,7 @@ const na = de({
|
|
|
4969
4969
|
!0
|
|
4970
4970
|
);
|
|
4971
4971
|
}
|
|
4972
|
-
function
|
|
4972
|
+
function on(p) {
|
|
4973
4973
|
let W = -1;
|
|
4974
4974
|
if (p === !0) {
|
|
4975
4975
|
if (k.value.length !== 0) {
|
|
@@ -4982,22 +4982,22 @@ const na = de({
|
|
|
4982
4982
|
}
|
|
4983
4983
|
function qr(p, W) {
|
|
4984
4984
|
o.value === !0 && x.innerLoading.value === !1 && (H(-1, !0), xe(() => {
|
|
4985
|
-
o.value === !0 && x.innerLoading.value === !1 && (p > W ? H() :
|
|
4985
|
+
o.value === !0 && x.innerLoading.value === !1 && (p > W ? H() : on(!0));
|
|
4986
4986
|
}));
|
|
4987
4987
|
}
|
|
4988
|
-
function
|
|
4988
|
+
function ra() {
|
|
4989
4989
|
r.value === !1 && E.value !== null && E.value.updatePosition();
|
|
4990
4990
|
}
|
|
4991
|
-
function
|
|
4991
|
+
function ia(p) {
|
|
4992
4992
|
p !== void 0 && nt(p), l("popupShow", p), x.hasPopupOpen = !0, x.onControlFocusin(p);
|
|
4993
4993
|
}
|
|
4994
|
-
function
|
|
4994
|
+
function ua(p) {
|
|
4995
4995
|
p !== void 0 && nt(p), l("popupHide", p), x.hasPopupOpen = !1, x.onControlFocusout(p);
|
|
4996
4996
|
}
|
|
4997
|
-
function
|
|
4997
|
+
function sa() {
|
|
4998
4998
|
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 || ye.value === !1 : !0), M = n.platform.is.ios === !0 && y === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
4999
4999
|
}
|
|
5000
|
-
return ho(
|
|
5000
|
+
return ho(sa), Mr(ra), sa(), ze(() => {
|
|
5001
5001
|
m !== null && clearTimeout(m), S !== null && clearTimeout(S);
|
|
5002
5002
|
}), Object.assign(a, {
|
|
5003
5003
|
showPopup: ue,
|
|
@@ -5009,7 +5009,7 @@ const na = de({
|
|
|
5009
5009
|
setOptionIndex: Ye,
|
|
5010
5010
|
moveOptionSelection: Xe,
|
|
5011
5011
|
filter: oe,
|
|
5012
|
-
updateMenuPosition:
|
|
5012
|
+
updateMenuPosition: ra,
|
|
5013
5013
|
updateInputValue: ie,
|
|
5014
5014
|
isOptionSelected: yt,
|
|
5015
5015
|
getEmittingOptionValue: Xt,
|
|
@@ -5022,7 +5022,7 @@ const na = de({
|
|
|
5022
5022
|
() => `q-select q-field--auto-height q-select--with${e.useInput !== !0 ? "out" : ""}-input q-select--with${e.useChips !== !0 ? "out" : ""}-chips q-select--${e.multiple === !0 ? "multiple" : "single"}`
|
|
5023
5023
|
),
|
|
5024
5024
|
inputRef: b,
|
|
5025
|
-
targetRef:
|
|
5025
|
+
targetRef: R,
|
|
5026
5026
|
hasValue: ae,
|
|
5027
5027
|
showPopup: ue,
|
|
5028
5028
|
floatingLabel: c(
|
|
@@ -5030,7 +5030,7 @@ const na = de({
|
|
|
5030
5030
|
),
|
|
5031
5031
|
getControlChild: () => {
|
|
5032
5032
|
if (x.editable.value !== !1 && (r.value === !0 || ye.value !== !0 || t["no-option"] !== void 0))
|
|
5033
|
-
return y === !0 ?
|
|
5033
|
+
return y === !0 ? z() : se();
|
|
5034
5034
|
x.hasPopupOpen === !0 && (x.hasPopupOpen = !1);
|
|
5035
5035
|
},
|
|
5036
5036
|
controlEvents: {
|
|
@@ -5045,7 +5045,7 @@ const na = de({
|
|
|
5045
5045
|
onClick(p) {
|
|
5046
5046
|
var W;
|
|
5047
5047
|
if (Ke(p), y !== !0 && o.value === !0) {
|
|
5048
|
-
le(), (W =
|
|
5048
|
+
le(), (W = R.value) == null || W.focus();
|
|
5049
5049
|
return;
|
|
5050
5050
|
}
|
|
5051
5051
|
ue(p);
|
|
@@ -5059,7 +5059,7 @@ const na = de({
|
|
|
5059
5059
|
const Ce = ee === !0 ? et.value : void 0;
|
|
5060
5060
|
W.push(
|
|
5061
5061
|
d("input", {
|
|
5062
|
-
ref: ee === !0 ?
|
|
5062
|
+
ref: ee === !0 ? R : void 0,
|
|
5063
5063
|
key: "d_t",
|
|
5064
5064
|
class: "q-select__focus-target",
|
|
5065
5065
|
id: ee === !0 ? x.targetUid.value : void 0,
|
|
@@ -5103,7 +5103,7 @@ const na = de({
|
|
|
5103
5103
|
name: pt.value
|
|
5104
5104
|
})
|
|
5105
5105
|
] : null
|
|
5106
|
-
}),
|
|
5106
|
+
}), na(x);
|
|
5107
5107
|
}
|
|
5108
5108
|
}), Mu = { class: "q-pa-none" }, Eu = /* @__PURE__ */ vt({
|
|
5109
5109
|
__name: "CheckboxFilter",
|
|
@@ -5129,7 +5129,7 @@ const na = de({
|
|
|
5129
5129
|
s && (o.value = s);
|
|
5130
5130
|
}
|
|
5131
5131
|
), (s, v) => (ge(), Je("div", Mu, [
|
|
5132
|
-
he(
|
|
5132
|
+
he(aa, Mt({
|
|
5133
5133
|
outlined: "",
|
|
5134
5134
|
dense: "",
|
|
5135
5135
|
label: l.label,
|
|
@@ -5146,7 +5146,7 @@ const na = de({
|
|
|
5146
5146
|
}, null, 8, ["class"])
|
|
5147
5147
|
]),
|
|
5148
5148
|
default: me(() => [
|
|
5149
|
-
he(
|
|
5149
|
+
he(ln, {
|
|
5150
5150
|
modelValue: n.value,
|
|
5151
5151
|
"onUpdate:modelValue": v[1] || (v[1] = (u) => n.value = u),
|
|
5152
5152
|
anchor: "bottom left",
|
|
@@ -5156,13 +5156,13 @@ const na = de({
|
|
|
5156
5156
|
"transition-hide": "scale"
|
|
5157
5157
|
}, {
|
|
5158
5158
|
default: me(() => [
|
|
5159
|
-
he(
|
|
5159
|
+
he(zi, { class: "q-pa-sm" }, {
|
|
5160
5160
|
default: me(() => [
|
|
5161
|
-
he(
|
|
5161
|
+
he(Di, {
|
|
5162
5162
|
style: Er(r.value)
|
|
5163
5163
|
}, {
|
|
5164
5164
|
default: me(() => [
|
|
5165
|
-
(ge(!0), Je(
|
|
5165
|
+
(ge(!0), Je(Nl, null, Yl(l.options, (u) => (ge(), Ae(Fl, {
|
|
5166
5166
|
key: u.value,
|
|
5167
5167
|
modelValue: o.value,
|
|
5168
5168
|
"onUpdate:modelValue": v[0] || (v[0] = (m) => o.value = m),
|
|
@@ -5187,7 +5187,7 @@ const na = de({
|
|
|
5187
5187
|
}, 16, ["label", "data-cy"])
|
|
5188
5188
|
]));
|
|
5189
5189
|
}
|
|
5190
|
-
}), nc = /* @__PURE__ */
|
|
5190
|
+
}), nc = /* @__PURE__ */ Gl(Eu, [["__scopeId", "data-v-0094cb2e"]]), ac = /* @__PURE__ */ vt({
|
|
5191
5191
|
__name: "SelectSearch",
|
|
5192
5192
|
props: {
|
|
5193
5193
|
options: { default: () => [] },
|
|
@@ -5252,7 +5252,7 @@ const na = de({
|
|
|
5252
5252
|
});
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
return (g, F) => (ge(), Ae(
|
|
5255
|
+
return (g, F) => (ge(), Ae(aa, Mt({
|
|
5256
5256
|
ref_key: "selectRef",
|
|
5257
5257
|
ref: n,
|
|
5258
5258
|
"model-value": o.value,
|
|
@@ -5307,7 +5307,7 @@ const na = de({
|
|
|
5307
5307
|
const e = d("div", { class: "q-space" });
|
|
5308
5308
|
return () => e;
|
|
5309
5309
|
}
|
|
5310
|
-
}),
|
|
5310
|
+
}), Du = de({
|
|
5311
5311
|
name: "QToolbar",
|
|
5312
5312
|
props: {
|
|
5313
5313
|
inset: Boolean
|
|
@@ -5316,9 +5316,9 @@ const na = de({
|
|
|
5316
5316
|
const l = c(
|
|
5317
5317
|
() => "q-toolbar row no-wrap items-center" + (e.inset === !0 ? " q-toolbar--inset" : "")
|
|
5318
5318
|
);
|
|
5319
|
-
return () => d("div", { class: l.value, role: "toolbar" },
|
|
5319
|
+
return () => d("div", { class: l.value, role: "toolbar" }, De(t.default));
|
|
5320
5320
|
}
|
|
5321
|
-
}),
|
|
5321
|
+
}), zu = de({
|
|
5322
5322
|
name: "QHeader",
|
|
5323
5323
|
props: {
|
|
5324
5324
|
modelValue: {
|
|
@@ -5339,7 +5339,7 @@ const na = de({
|
|
|
5339
5339
|
},
|
|
5340
5340
|
emits: ["reveal", "focusin"],
|
|
5341
5341
|
setup(e, { slots: t, emit: l }) {
|
|
5342
|
-
const { proxy: { $q: a } } = fe(), n = fl(
|
|
5342
|
+
const { proxy: { $q: a } } = fe(), n = fl(nn, xt);
|
|
5343
5343
|
if (n === xt)
|
|
5344
5344
|
return console.error("QHeader needs to be child of QLayout"), xt;
|
|
5345
5345
|
const o = P(parseInt(e.heightHint, 10)), r = P(!0), i = c(
|
|
@@ -5388,10 +5388,10 @@ const na = de({
|
|
|
5388
5388
|
);
|
|
5389
5389
|
});
|
|
5390
5390
|
const F = {};
|
|
5391
|
-
return n.instances.header = F, e.modelValue === !0 && h("size", o.value), h("space", e.modelValue), h("offset", s.value),
|
|
5391
|
+
return n.instances.header = F, e.modelValue === !0 && h("size", o.value), h("space", e.modelValue), h("offset", s.value), ze(() => {
|
|
5392
5392
|
n.instances.header === F && (n.instances.header = void 0, h("size", 0), h("offset", 0), h("space", !1));
|
|
5393
5393
|
}), () => {
|
|
5394
|
-
const M =
|
|
5394
|
+
const M = Yn(t.default, []);
|
|
5395
5395
|
return e.elevated === !0 && M.push(
|
|
5396
5396
|
d("div", {
|
|
5397
5397
|
class: "q-layout__shadow absolute-full overflow-hidden no-pointer-events"
|
|
@@ -5419,9 +5419,9 @@ const na = de({
|
|
|
5419
5419
|
const t = e, l = t.logoAlt ?? "Logo", a = t.logoTo ?? "/";
|
|
5420
5420
|
return (n, o) => {
|
|
5421
5421
|
const r = $r("router-link");
|
|
5422
|
-
return ge(), Ae(
|
|
5422
|
+
return ge(), Ae(zu, Mt({ elevated: "" }, n.$attrs), {
|
|
5423
5423
|
default: me(() => [
|
|
5424
|
-
he(
|
|
5424
|
+
he(Du, null, {
|
|
5425
5425
|
default: me(() => [
|
|
5426
5426
|
he(r, {
|
|
5427
5427
|
to: Kt(a),
|
|
@@ -5450,7 +5450,7 @@ const na = de({
|
|
|
5450
5450
|
}, 16);
|
|
5451
5451
|
};
|
|
5452
5452
|
}
|
|
5453
|
-
}), oc = /* @__PURE__ */
|
|
5453
|
+
}), oc = /* @__PURE__ */ Gl(Vu, [["__scopeId", "data-v-ab7c0ff6"]]), Bu = de({
|
|
5454
5454
|
name: "QFooter",
|
|
5455
5455
|
props: {
|
|
5456
5456
|
modelValue: {
|
|
@@ -5467,7 +5467,7 @@ const na = de({
|
|
|
5467
5467
|
},
|
|
5468
5468
|
emits: ["reveal", "focusin"],
|
|
5469
5469
|
setup(e, { slots: t, emit: l }) {
|
|
5470
|
-
const { proxy: { $q: a } } = fe(), n = fl(
|
|
5470
|
+
const { proxy: { $q: a } } = fe(), n = fl(nn, xt);
|
|
5471
5471
|
if (n === xt)
|
|
5472
5472
|
return console.error("QFooter needs to be child of QLayout"), xt;
|
|
5473
5473
|
const o = P(parseInt(e.heightHint, 10)), r = P(!0), i = P(
|
|
@@ -5488,22 +5488,22 @@ const na = de({
|
|
|
5488
5488
|
), h = c(
|
|
5489
5489
|
() => "q-footer q-layout__section--marginal " + (s.value === !0 ? "fixed" : "absolute") + "-bottom" + (e.bordered === !0 ? " q-footer--bordered" : "") + (m.value === !0 ? " q-footer--hidden" : "") + (e.modelValue !== !0 ? " q-layout--prevent-focus" + (s.value !== !0 ? " hidden" : "") : "")
|
|
5490
5490
|
), y = c(() => {
|
|
5491
|
-
const b = n.rows.value.bottom,
|
|
5492
|
-
return b[0] === "l" && n.left.space === !0 && (
|
|
5491
|
+
const b = n.rows.value.bottom, R = {};
|
|
5492
|
+
return b[0] === "l" && n.left.space === !0 && (R[a.lang.rtl === !0 ? "right" : "left"] = `${n.left.size}px`), b[2] === "r" && n.right.space === !0 && (R[a.lang.rtl === !0 ? "left" : "right"] = `${n.right.size}px`), R;
|
|
5493
5493
|
});
|
|
5494
|
-
function q(b,
|
|
5495
|
-
n.update("footer", b,
|
|
5494
|
+
function q(b, R) {
|
|
5495
|
+
n.update("footer", b, R);
|
|
5496
5496
|
}
|
|
5497
|
-
function g(b,
|
|
5498
|
-
b.value !==
|
|
5497
|
+
function g(b, R) {
|
|
5498
|
+
b.value !== R && (b.value = R);
|
|
5499
5499
|
}
|
|
5500
5500
|
function F({ height: b }) {
|
|
5501
5501
|
g(o, b), q("size", b);
|
|
5502
5502
|
}
|
|
5503
5503
|
function M() {
|
|
5504
5504
|
if (e.reveal !== !0) return;
|
|
5505
|
-
const { direction: b, position:
|
|
5506
|
-
g(r, b === "up" ||
|
|
5505
|
+
const { direction: b, position: R, inflectionPoint: E } = n.scroll.value;
|
|
5506
|
+
g(r, b === "up" || R - E < 100 || n.height.value - v.value - R - o.value < 300);
|
|
5507
5507
|
}
|
|
5508
5508
|
function V(b) {
|
|
5509
5509
|
S.value === !0 && g(r, !0), l("focusin", b);
|
|
@@ -5520,7 +5520,7 @@ const na = de({
|
|
|
5520
5520
|
n.isContainer.value !== !0 && g(i, b);
|
|
5521
5521
|
});
|
|
5522
5522
|
const _ = {};
|
|
5523
|
-
return n.instances.footer = _, e.modelValue === !0 && q("size", o.value), q("space", e.modelValue), q("offset", u.value),
|
|
5523
|
+
return n.instances.footer = _, e.modelValue === !0 && q("size", o.value), q("space", e.modelValue), q("offset", u.value), ze(() => {
|
|
5524
5524
|
n.instances.footer === _ && (n.instances.footer = void 0, q("size", 0), q("offset", 0), q("space", !1));
|
|
5525
5525
|
}), () => {
|
|
5526
5526
|
const b = ot(t.default, [
|
|
@@ -5563,7 +5563,7 @@ const na = de({
|
|
|
5563
5563
|
true: "inset",
|
|
5564
5564
|
item: "item-inset",
|
|
5565
5565
|
"item-thumbnail": "item-thumbnail-inset"
|
|
5566
|
-
},
|
|
5566
|
+
}, pn = {
|
|
5567
5567
|
xs: 2,
|
|
5568
5568
|
sm: 4,
|
|
5569
5569
|
md: 8,
|
|
@@ -5585,7 +5585,7 @@ const na = de({
|
|
|
5585
5585
|
), i = c(() => {
|
|
5586
5586
|
const s = {};
|
|
5587
5587
|
if (e.size !== void 0 && (s[e.vertical === !0 ? "width" : "height"] = e.size), e.spaced !== !1) {
|
|
5588
|
-
const v = e.spaced === !0 ? `${
|
|
5588
|
+
const v = e.spaced === !0 ? `${pn.md}px` : e.spaced in pn ? `${pn[e.spaced]}px` : e.spaced, u = e.vertical === !0 ? ["Left", "Right"] : ["Top", "Bottom"];
|
|
5589
5589
|
s[`margin${u[0]}`] = s[`margin${u[1]}`] = v;
|
|
5590
5590
|
}
|
|
5591
5591
|
return s;
|
|
@@ -5615,7 +5615,7 @@ const na = de({
|
|
|
5615
5615
|
), o = c(
|
|
5616
5616
|
() => "q-list" + (e.bordered === !0 ? " q-list--bordered" : "") + (e.dense === !0 ? " q-list--dense" : "") + (e.separator === !0 ? " q-list--separator" : "") + (a.value === !0 ? " q-list--dark" : "") + (e.padding === !0 ? " q-list--padding" : "")
|
|
5617
5617
|
);
|
|
5618
|
-
return () => d(e.tag, { class: o.value, role: n.value },
|
|
5618
|
+
return () => d(e.tag, { class: o.value, role: n.value }, De(t.default));
|
|
5619
5619
|
}
|
|
5620
5620
|
}), Hu = { class: "text-h6 text-primary" }, ic = /* @__PURE__ */ vt({
|
|
5621
5621
|
__name: "UserAvatar",
|
|
@@ -5638,16 +5638,16 @@ const na = de({
|
|
|
5638
5638
|
}, {
|
|
5639
5639
|
default: me(() => [
|
|
5640
5640
|
Ge("span", Hu, St(l.value), 1),
|
|
5641
|
-
he(
|
|
5641
|
+
he(ln, {
|
|
5642
5642
|
"transition-show": "flip-right",
|
|
5643
5643
|
"transition-hide": "flip-left"
|
|
5644
5644
|
}, {
|
|
5645
5645
|
default: me(() => [
|
|
5646
5646
|
he(dr, null, {
|
|
5647
5647
|
default: me(() => [
|
|
5648
|
-
he(
|
|
5648
|
+
he(On, null, {
|
|
5649
5649
|
default: me(() => [
|
|
5650
|
-
he(
|
|
5650
|
+
he(Pn, null, {
|
|
5651
5651
|
default: me(() => [
|
|
5652
5652
|
Ge("div", null, St(n.username), 1)
|
|
5653
5653
|
]),
|
|
@@ -5657,13 +5657,13 @@ const na = de({
|
|
|
5657
5657
|
_: 1
|
|
5658
5658
|
}),
|
|
5659
5659
|
he(cr),
|
|
5660
|
-
he(
|
|
5660
|
+
he(On, {
|
|
5661
5661
|
clickable: "",
|
|
5662
5662
|
onClick: n.onLogout,
|
|
5663
5663
|
"data-cy": "cy-logout-button"
|
|
5664
5664
|
}, {
|
|
5665
5665
|
default: me(() => [
|
|
5666
|
-
he(
|
|
5666
|
+
he(Pn, null, {
|
|
5667
5667
|
default: me(() => [
|
|
5668
5668
|
Ge("div", null, St(Kt(a)), 1)
|
|
5669
5669
|
]),
|
|
@@ -5686,7 +5686,7 @@ const na = de({
|
|
|
5686
5686
|
}), Iu = de({
|
|
5687
5687
|
name: "QPageContainer",
|
|
5688
5688
|
setup(e, { slots: t }) {
|
|
5689
|
-
const { proxy: { $q: l } } = fe(), a = fl(
|
|
5689
|
+
const { proxy: { $q: l } } = fe(), a = fl(nn, xt);
|
|
5690
5690
|
if (a === xt)
|
|
5691
5691
|
return console.error("QPageContainer needs to be child of QLayout"), xt;
|
|
5692
5692
|
go(lu, !0);
|
|
@@ -5697,7 +5697,7 @@ const na = de({
|
|
|
5697
5697
|
return () => d("div", {
|
|
5698
5698
|
class: "q-page-container",
|
|
5699
5699
|
style: n.value
|
|
5700
|
-
},
|
|
5700
|
+
}, De(t.default));
|
|
5701
5701
|
}
|
|
5702
5702
|
}), ju = de({
|
|
5703
5703
|
name: "QLayout",
|
|
@@ -5713,7 +5713,7 @@ const na = de({
|
|
|
5713
5713
|
onResize: Function
|
|
5714
5714
|
},
|
|
5715
5715
|
setup(e, { slots: t, emit: l }) {
|
|
5716
|
-
const { proxy: { $q: a } } = fe(), n = P(null), o = P(a.screen.height), r = P(e.container === !0 ? 0 : a.screen.width), i = P({ position: 0, direction: "down", inflectionPoint: 0 }), s = P(0), v = P(Ot.value === !0 ? 0 :
|
|
5716
|
+
const { proxy: { $q: a } } = fe(), n = P(null), o = P(a.screen.height), r = P(e.container === !0 ? 0 : a.screen.width), i = P({ position: 0, direction: "down", inflectionPoint: 0 }), s = P(0), v = P(Ot.value === !0 ? 0 : Hl()), u = c(
|
|
5717
5717
|
() => "q-layout q-layout--" + (e.container === !0 ? "containerized" : "standard")
|
|
5718
5718
|
), m = c(() => e.container === !1 ? { minHeight: a.screen.height + "px" } : null), S = c(() => v.value !== 0 ? { [a.lang.rtl === !0 ? "left" : "right"]: `${v.value}px` } : null), h = c(() => v.value !== 0 ? {
|
|
5719
5719
|
[a.lang.rtl === !0 ? "right" : "left"]: 0,
|
|
@@ -5733,16 +5733,16 @@ const na = de({
|
|
|
5733
5733
|
}
|
|
5734
5734
|
}
|
|
5735
5735
|
function q(_) {
|
|
5736
|
-
const { height: b, width:
|
|
5736
|
+
const { height: b, width: R } = _;
|
|
5737
5737
|
let E = !1;
|
|
5738
|
-
o.value !== b && (E = !0, o.value = b, e.onScrollHeight !== void 0 && l("scrollHeight", b), F()), r.value !==
|
|
5738
|
+
o.value !== b && (E = !0, o.value = b, e.onScrollHeight !== void 0 && l("scrollHeight", b), F()), r.value !== R && (E = !0, r.value = R), E === !0 && e.onResize !== void 0 && l("resize", _);
|
|
5739
5739
|
}
|
|
5740
5740
|
function g({ height: _ }) {
|
|
5741
5741
|
s.value !== _ && (s.value = _, F());
|
|
5742
5742
|
}
|
|
5743
5743
|
function F() {
|
|
5744
5744
|
if (e.container === !0) {
|
|
5745
|
-
const _ = o.value > s.value ?
|
|
5745
|
+
const _ = o.value > s.value ? Hl() : 0;
|
|
5746
5746
|
v.value !== _ && (v.value = _);
|
|
5747
5747
|
}
|
|
5748
5748
|
}
|
|
@@ -5774,11 +5774,11 @@ const na = de({
|
|
|
5774
5774
|
M = null, document.body.classList.remove("q-body--layout-animate");
|
|
5775
5775
|
}, 155);
|
|
5776
5776
|
},
|
|
5777
|
-
update(_, b,
|
|
5778
|
-
V[_][b] =
|
|
5777
|
+
update(_, b, R) {
|
|
5778
|
+
V[_][b] = R;
|
|
5779
5779
|
}
|
|
5780
5780
|
};
|
|
5781
|
-
if (go(
|
|
5781
|
+
if (go(nn, V), Hl() > 0) {
|
|
5782
5782
|
let _ = function() {
|
|
5783
5783
|
E = null, L.classList.remove("hide-scrollbar");
|
|
5784
5784
|
}, b = function() {
|
|
@@ -5788,15 +5788,15 @@ const na = de({
|
|
|
5788
5788
|
} else
|
|
5789
5789
|
clearTimeout(E);
|
|
5790
5790
|
E = setTimeout(_, 300);
|
|
5791
|
-
},
|
|
5791
|
+
}, R = function(T) {
|
|
5792
5792
|
E !== null && T === "remove" && (clearTimeout(E), _()), window[`${T}EventListener`]("resize", b);
|
|
5793
5793
|
}, E = null;
|
|
5794
5794
|
const L = document.body;
|
|
5795
5795
|
J(
|
|
5796
5796
|
() => e.container !== !0 ? "add" : "remove",
|
|
5797
|
-
|
|
5798
|
-
), e.container !== !0 &&
|
|
5799
|
-
|
|
5797
|
+
R
|
|
5798
|
+
), e.container !== !0 && R("add"), mo(() => {
|
|
5799
|
+
R("remove");
|
|
5800
5800
|
});
|
|
5801
5801
|
}
|
|
5802
5802
|
return () => {
|
|
@@ -5893,15 +5893,15 @@ const Bt = [
|
|
|
5893
5893
|
3178
|
|
5894
5894
|
];
|
|
5895
5895
|
function Yu(e, t, l) {
|
|
5896
|
-
return Object.prototype.toString.call(e) === "[object Date]" && (l = e.getDate(), t = e.getMonth() + 1, e = e.getFullYear()), Wu(
|
|
5896
|
+
return Object.prototype.toString.call(e) === "[object Date]" && (l = e.getDate(), t = e.getMonth() + 1, e = e.getFullYear()), Wu(oa(e, t, l));
|
|
5897
5897
|
}
|
|
5898
|
-
function
|
|
5898
|
+
function Ja(e, t, l) {
|
|
5899
5899
|
return vr(Ku(e, t, l));
|
|
5900
5900
|
}
|
|
5901
5901
|
function Qu(e) {
|
|
5902
5902
|
return Uu(e) === 0;
|
|
5903
5903
|
}
|
|
5904
|
-
function
|
|
5904
|
+
function Il(e, t) {
|
|
5905
5905
|
return t <= 6 ? 31 : t <= 11 || Qu(e) ? 30 : 29;
|
|
5906
5906
|
}
|
|
5907
5907
|
function Uu(e) {
|
|
@@ -5930,12 +5930,12 @@ function fr(e, t) {
|
|
|
5930
5930
|
}
|
|
5931
5931
|
function Ku(e, t, l) {
|
|
5932
5932
|
const a = fr(e, !0);
|
|
5933
|
-
return
|
|
5933
|
+
return oa(a.gy, 3, a.march) + (t - 1) * 31 - qe(t, 7) * (t - 7) + l - 1;
|
|
5934
5934
|
}
|
|
5935
5935
|
function Wu(e) {
|
|
5936
5936
|
const t = vr(e).gy;
|
|
5937
5937
|
let l = t - 621, a, n, o;
|
|
5938
|
-
const r = fr(l, !1), i =
|
|
5938
|
+
const r = fr(l, !1), i = oa(t, 3, r.march);
|
|
5939
5939
|
if (o = e - i, o >= 0) {
|
|
5940
5940
|
if (o <= 185)
|
|
5941
5941
|
return n = 1 + qe(o, 31), a = at(o, 31) + 1, {
|
|
@@ -5952,7 +5952,7 @@ function Wu(e) {
|
|
|
5952
5952
|
jd: a
|
|
5953
5953
|
};
|
|
5954
5954
|
}
|
|
5955
|
-
function
|
|
5955
|
+
function oa(e, t, l) {
|
|
5956
5956
|
let a = qe((e + qe(t - 8, 6) + 100100) * 1461, 4) + qe(153 * at(t + 9, 12) + 2, 5) + l - 34840408;
|
|
5957
5957
|
return a = a - qe(qe(e + 100100 + qe(t - 8, 6), 100) * 3, 4) + 752, a;
|
|
5958
5958
|
}
|
|
@@ -5972,7 +5972,7 @@ function qe(e, t) {
|
|
|
5972
5972
|
function at(e, t) {
|
|
5973
5973
|
return e - ~~(e / t) * t;
|
|
5974
5974
|
}
|
|
5975
|
-
const Xu = ["gregorian", "persian"],
|
|
5975
|
+
const Xu = ["gregorian", "persian"], Ga = {
|
|
5976
5976
|
// should define modelValue in the target component
|
|
5977
5977
|
mask: {
|
|
5978
5978
|
type: String
|
|
@@ -5992,7 +5992,7 @@ const Xu = ["gregorian", "persian"], Ja = {
|
|
|
5992
5992
|
readonly: Boolean,
|
|
5993
5993
|
disable: Boolean
|
|
5994
5994
|
}, Zu = ["update:modelValue"];
|
|
5995
|
-
function
|
|
5995
|
+
function Dt(e) {
|
|
5996
5996
|
return e.year + "/" + Se(e.month) + "/" + Se(e.day);
|
|
5997
5997
|
}
|
|
5998
5998
|
function Ju(e, t) {
|
|
@@ -6031,7 +6031,7 @@ function Ju(e, t) {
|
|
|
6031
6031
|
getCurrentDate: r
|
|
6032
6032
|
};
|
|
6033
6033
|
}
|
|
6034
|
-
const
|
|
6034
|
+
const Fn = {
|
|
6035
6035
|
isoName: "en-US",
|
|
6036
6036
|
nativeName: "English (US)",
|
|
6037
6037
|
label: {
|
|
@@ -6134,7 +6134,7 @@ const Ln = {
|
|
|
6134
6134
|
noResults: "No matching nodes found"
|
|
6135
6135
|
}
|
|
6136
6136
|
};
|
|
6137
|
-
function
|
|
6137
|
+
function eo() {
|
|
6138
6138
|
const e = Array.isArray(navigator.languages) === !0 && navigator.languages.length !== 0 ? navigator.languages[0] : navigator.language;
|
|
6139
6139
|
if (typeof e == "string")
|
|
6140
6140
|
return e.split(/[-_]/).map((t, l) => l === 0 ? t.toLowerCase() : l > 1 || t.length < 4 ? t.toUpperCase() : t[0].toUpperCase() + t.slice(1).toLowerCase()).join("-");
|
|
@@ -6144,12 +6144,12 @@ const Tt = Tr({
|
|
|
6144
6144
|
}, {
|
|
6145
6145
|
// props: object
|
|
6146
6146
|
// __langConfig: object
|
|
6147
|
-
getLocale:
|
|
6148
|
-
set(e =
|
|
6147
|
+
getLocale: eo,
|
|
6148
|
+
set(e = Fn, t) {
|
|
6149
6149
|
const l = {
|
|
6150
6150
|
...e,
|
|
6151
6151
|
rtl: e.rtl === !0,
|
|
6152
|
-
getLocale:
|
|
6152
|
+
getLocale: eo
|
|
6153
6153
|
};
|
|
6154
6154
|
{
|
|
6155
6155
|
if (l.set = Tt.set, Tt.__langConfig === void 0 || Tt.__langConfig.noHtmlAttrs !== !0) {
|
|
@@ -6167,13 +6167,13 @@ const Tt = Tr({
|
|
|
6167
6167
|
ownKeys(a) {
|
|
6168
6168
|
return Reflect.ownKeys(a).filter((n) => n !== "set" && n !== "getLocale");
|
|
6169
6169
|
}
|
|
6170
|
-
}), this.set(t ||
|
|
6170
|
+
}), this.set(t || Fn));
|
|
6171
6171
|
}
|
|
6172
|
-
}), mr = 864e5, Gu = 36e5,
|
|
6172
|
+
}), mr = 864e5, Gu = 36e5, Hn = 6e4, hr = "YYYY-MM-DDTHH:mm:ss.SSSZ", es = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g, ts = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g, Cn = {};
|
|
6173
6173
|
function ls(e, t) {
|
|
6174
6174
|
const l = "(" + t.days.join("|") + ")", a = e + l;
|
|
6175
|
-
if (
|
|
6176
|
-
return
|
|
6175
|
+
if (Cn[a] !== void 0)
|
|
6176
|
+
return Cn[a];
|
|
6177
6177
|
const n = "(" + t.daysShort.join("|") + ")", o = "(" + t.months.join("|") + ")", r = "(" + t.monthsShort.join("|") + ")", i = {};
|
|
6178
6178
|
let s = 0;
|
|
6179
6179
|
const v = e.replace(ts, (m) => {
|
|
@@ -6261,12 +6261,12 @@ function ls(e, t) {
|
|
|
6261
6261
|
return s--, m[0] === "[" && (m = m.substring(1, m.length - 1)), m.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
6262
6262
|
}
|
|
6263
6263
|
}), u = { map: i, regex: new RegExp("^" + v) };
|
|
6264
|
-
return
|
|
6264
|
+
return Cn[a] = u, u;
|
|
6265
6265
|
}
|
|
6266
6266
|
function gr(e, t) {
|
|
6267
|
-
return e !== void 0 ? e : t !== void 0 ? t.date :
|
|
6267
|
+
return e !== void 0 ? e : t !== void 0 ? t.date : Fn.date;
|
|
6268
6268
|
}
|
|
6269
|
-
function
|
|
6269
|
+
function to(e, t = "") {
|
|
6270
6270
|
const l = e > 0 ? "-" : "+", a = Math.abs(e), n = Math.floor(a / 60), o = a % 60;
|
|
6271
6271
|
return l + Se(n) + t + Se(o);
|
|
6272
6272
|
}
|
|
@@ -6310,7 +6310,7 @@ function ns(e, t, l, a, n) {
|
|
|
6310
6310
|
if (u.D !== void 0) {
|
|
6311
6311
|
if (o.day = parseInt(m[u.D], 10), o.year === null || o.month === null || o.day < 1)
|
|
6312
6312
|
return o;
|
|
6313
|
-
const h = a !== "persian" ? new Date(o.year, o.month, 0).getDate() :
|
|
6313
|
+
const h = a !== "persian" ? new Date(o.year, o.month, 0).getDate() : Il(o.year, o.month);
|
|
6314
6314
|
if (o.day > h)
|
|
6315
6315
|
return o;
|
|
6316
6316
|
}
|
|
@@ -6318,7 +6318,7 @@ function ns(e, t, l, a, n) {
|
|
|
6318
6318
|
}
|
|
6319
6319
|
return o.dateHash = Se(o.year, 6) + "/" + Se(o.month) + "/" + Se(o.day), o.timeHash = Se(o.hour) + ":" + Se(o.minute) + ":" + Se(o.second) + S, o;
|
|
6320
6320
|
}
|
|
6321
|
-
function
|
|
6321
|
+
function kn(e) {
|
|
6322
6322
|
const t = new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
6323
6323
|
t.setDate(t.getDate() - (t.getDay() + 6) % 7 + 3);
|
|
6324
6324
|
const l = new Date(t.getFullYear(), 0, 4);
|
|
@@ -6354,7 +6354,7 @@ function _t(e, t, l) {
|
|
|
6354
6354
|
return a;
|
|
6355
6355
|
}
|
|
6356
6356
|
function Ol(e, t, l) {
|
|
6357
|
-
return (e.getTime() - e.getTimezoneOffset() *
|
|
6357
|
+
return (e.getTime() - e.getTimezoneOffset() * Hn - (t.getTime() - t.getTimezoneOffset() * Hn)) / l;
|
|
6358
6358
|
}
|
|
6359
6359
|
function br(e, t, l = "days") {
|
|
6360
6360
|
const a = new Date(e), n = new Date(t);
|
|
@@ -6374,13 +6374,13 @@ function br(e, t, l = "days") {
|
|
|
6374
6374
|
return Ol(_t(a, "hour"), _t(n, "hour"), Gu);
|
|
6375
6375
|
case "minutes":
|
|
6376
6376
|
case "minute":
|
|
6377
|
-
return Ol(_t(a, "minute"), _t(n, "minute"),
|
|
6377
|
+
return Ol(_t(a, "minute"), _t(n, "minute"), Hn);
|
|
6378
6378
|
case "seconds":
|
|
6379
6379
|
case "second":
|
|
6380
6380
|
return Ol(_t(a, "second"), _t(n, "second"), 1e3);
|
|
6381
6381
|
}
|
|
6382
6382
|
}
|
|
6383
|
-
function
|
|
6383
|
+
function _n(e) {
|
|
6384
6384
|
return br(e, _t(e, "year"), "days") + 1;
|
|
6385
6385
|
}
|
|
6386
6386
|
function ol(e) {
|
|
@@ -6396,7 +6396,7 @@ function ol(e) {
|
|
|
6396
6396
|
}
|
|
6397
6397
|
return `${e}th`;
|
|
6398
6398
|
}
|
|
6399
|
-
const
|
|
6399
|
+
const lo = {
|
|
6400
6400
|
// Year: 00, 01, ..., 99
|
|
6401
6401
|
YY(e, t, l) {
|
|
6402
6402
|
const a = this.YYYY(e, t, l) % 100;
|
|
@@ -6448,15 +6448,15 @@ const to = {
|
|
|
6448
6448
|
},
|
|
6449
6449
|
// Day of year: 1, 2, ..., 366
|
|
6450
6450
|
DDD(e) {
|
|
6451
|
-
return
|
|
6451
|
+
return _n(e);
|
|
6452
6452
|
},
|
|
6453
6453
|
// Day of year: 1st, 2nd, ..., 366th
|
|
6454
6454
|
DDDo(e) {
|
|
6455
|
-
return ol(
|
|
6455
|
+
return ol(_n(e));
|
|
6456
6456
|
},
|
|
6457
6457
|
// Day of year: 001, 002, ..., 366
|
|
6458
6458
|
DDDD(e) {
|
|
6459
|
-
return Se(
|
|
6459
|
+
return Se(_n(e), 3);
|
|
6460
6460
|
},
|
|
6461
6461
|
// Day of week: 0, 1, ..., 6
|
|
6462
6462
|
d(e) {
|
|
@@ -6484,15 +6484,15 @@ const to = {
|
|
|
6484
6484
|
},
|
|
6485
6485
|
// Week of Year: 1 2 ... 52 53
|
|
6486
6486
|
w(e) {
|
|
6487
|
-
return
|
|
6487
|
+
return kn(e);
|
|
6488
6488
|
},
|
|
6489
6489
|
// Week of Year: 1st 2nd ... 52nd 53rd
|
|
6490
6490
|
wo(e) {
|
|
6491
|
-
return ol(
|
|
6491
|
+
return ol(kn(e));
|
|
6492
6492
|
},
|
|
6493
6493
|
// Week of Year: 01 02 ... 52 53
|
|
6494
6494
|
ww(e) {
|
|
6495
|
-
return Se(
|
|
6495
|
+
return Se(kn(e));
|
|
6496
6496
|
},
|
|
6497
6497
|
// Hour: 0, 1, ... 23
|
|
6498
6498
|
H(e) {
|
|
@@ -6554,12 +6554,12 @@ const to = {
|
|
|
6554
6554
|
// Timezone: -01:00, +00:00, ... +12:00
|
|
6555
6555
|
Z(e, t, l, a) {
|
|
6556
6556
|
const n = a ?? e.getTimezoneOffset();
|
|
6557
|
-
return
|
|
6557
|
+
return to(n, ":");
|
|
6558
6558
|
},
|
|
6559
6559
|
// Timezone: -0100, +0000, ... +1200
|
|
6560
6560
|
ZZ(e, t, l, a) {
|
|
6561
6561
|
const n = a ?? e.getTimezoneOffset();
|
|
6562
|
-
return
|
|
6562
|
+
return to(n);
|
|
6563
6563
|
},
|
|
6564
6564
|
// Seconds timestamp: 512969520
|
|
6565
6565
|
X(e) {
|
|
@@ -6578,18 +6578,18 @@ function as(e, t, l, a, n) {
|
|
|
6578
6578
|
const r = gr(l, Tt.props);
|
|
6579
6579
|
return t.replace(
|
|
6580
6580
|
es,
|
|
6581
|
-
(i, s) => i in
|
|
6581
|
+
(i, s) => i in lo ? lo[i](o, r, a, n) : s === void 0 ? i : s.split("\\]").join("]")
|
|
6582
6582
|
);
|
|
6583
6583
|
}
|
|
6584
|
-
const kt = 20, os = ["Calendar", "Years", "Months"],
|
|
6585
|
-
function
|
|
6584
|
+
const kt = 20, os = ["Calendar", "Years", "Months"], no = (e) => os.includes(e), qn = (e) => /^-?[\d]+\/[0-1]\d$/.test(e), rl = " — ";
|
|
6585
|
+
function zt(e) {
|
|
6586
6586
|
return e.year + "/" + Se(e.month);
|
|
6587
6587
|
}
|
|
6588
6588
|
const yr = de({
|
|
6589
6589
|
name: "QDate",
|
|
6590
6590
|
props: {
|
|
6591
|
-
...
|
|
6592
|
-
...
|
|
6591
|
+
...Ga,
|
|
6592
|
+
...en,
|
|
6593
6593
|
...rt,
|
|
6594
6594
|
modelValue: {
|
|
6595
6595
|
required: !0,
|
|
@@ -6600,14 +6600,14 @@ const yr = de({
|
|
|
6600
6600
|
title: String,
|
|
6601
6601
|
subtitle: String,
|
|
6602
6602
|
mask: {
|
|
6603
|
-
...
|
|
6603
|
+
...Ga.mask,
|
|
6604
6604
|
// this mask is forced
|
|
6605
6605
|
// when using persian calendar
|
|
6606
6606
|
default: "YYYY/MM/DD"
|
|
6607
6607
|
},
|
|
6608
6608
|
defaultYearMonth: {
|
|
6609
6609
|
type: String,
|
|
6610
|
-
validator:
|
|
6610
|
+
validator: qn
|
|
6611
6611
|
},
|
|
6612
6612
|
yearsInMonthView: Boolean,
|
|
6613
6613
|
events: [Array, Function],
|
|
@@ -6616,11 +6616,11 @@ const yr = de({
|
|
|
6616
6616
|
options: [Array, Function],
|
|
6617
6617
|
navigationMinYearMonth: {
|
|
6618
6618
|
type: String,
|
|
6619
|
-
validator:
|
|
6619
|
+
validator: qn
|
|
6620
6620
|
},
|
|
6621
6621
|
navigationMaxYearMonth: {
|
|
6622
6622
|
type: String,
|
|
6623
|
-
validator:
|
|
6623
|
+
validator: qn
|
|
6624
6624
|
},
|
|
6625
6625
|
noUnset: Boolean,
|
|
6626
6626
|
firstDayOfWeek: [String, Number],
|
|
@@ -6629,7 +6629,7 @@ const yr = de({
|
|
|
6629
6629
|
defaultView: {
|
|
6630
6630
|
type: String,
|
|
6631
6631
|
default: "Calendar",
|
|
6632
|
-
validator:
|
|
6632
|
+
validator: no
|
|
6633
6633
|
}
|
|
6634
6634
|
},
|
|
6635
6635
|
emits: [
|
|
@@ -6641,10 +6641,10 @@ const yr = de({
|
|
|
6641
6641
|
setup(e, { slots: t, emit: l }) {
|
|
6642
6642
|
const { proxy: a } = fe(), { $q: n } = a, o = it(e, n), { getCache: r } = Nu(), { tabindex: i, headerClass: s, getLocale: v, getCurrentDate: u } = Ju(e, n);
|
|
6643
6643
|
let m;
|
|
6644
|
-
const S = fi(e), h =
|
|
6644
|
+
const S = fi(e), h = zo(S), y = P(null), q = P(At()), g = P(v()), F = c(() => At()), M = c(() => v()), V = c(() => u()), _ = P(Ye(q.value, g.value)), b = P(e.defaultView), R = c(() => n.lang.rtl === !0 ? "right" : "left"), E = P(R.value), L = P(R.value), T = _.value.year, B = P(T - T % kt - (T < 0 ? kt : 0)), A = P(null), D = c(() => {
|
|
6645
6645
|
const f = e.landscape === !0 ? "landscape" : "portrait";
|
|
6646
6646
|
return `q-date q-date--${f} q-date--${f}-${e.minimal === !0 ? "minimal" : "standard"}` + (o.value === !0 ? " q-date--dark q-dark" : "") + (e.bordered === !0 ? " q-date--bordered" : "") + (e.square === !0 ? " q-date--square no-border-radius" : "") + (e.flat === !0 ? " q-date--flat no-shadow" : "") + (e.disable === !0 ? " disabled" : e.readonly === !0 ? " q-date--readonly" : "");
|
|
6647
|
-
}), U = c(() => e.color || "primary"), C = c(() => e.textColor || "white"),
|
|
6647
|
+
}), U = c(() => e.color || "primary"), C = c(() => e.textColor || "white"), O = c(
|
|
6648
6648
|
() => e.emitImmediately === !0 && e.multiple !== !0 && e.range !== !0
|
|
6649
6649
|
), H = c(() => Array.isArray(e.modelValue) === !0 ? e.modelValue : e.modelValue !== null && e.modelValue !== void 0 ? [e.modelValue] : []), X = c(
|
|
6650
6650
|
() => H.value.filter((f) => typeof f == "string").map((f) => Ue(f, q.value, g.value)).filter(
|
|
@@ -6654,9 +6654,9 @@ const yr = de({
|
|
|
6654
6654
|
const f = (w) => Ue(w, q.value, g.value);
|
|
6655
6655
|
return H.value.filter((w) => ur(w) === !0 && w.from !== void 0 && w.to !== void 0).map((w) => ({ from: f(w.from), to: f(w.to) })).filter((w) => w.from.dateHash !== null && w.to.dateHash !== null && w.from.dateHash < w.to.dateHash);
|
|
6656
6656
|
}), G = c(() => e.calendar !== "persian" ? (f) => new Date(f.year, f.month - 1, f.day) : (f) => {
|
|
6657
|
-
const w =
|
|
6657
|
+
const w = Ja(f.year, f.month, f.day);
|
|
6658
6658
|
return new Date(w.gy, w.gm - 1, w.gd);
|
|
6659
|
-
}), re = c(() => e.calendar === "persian" ?
|
|
6659
|
+
}), re = c(() => e.calendar === "persian" ? Dt : (f, w, z) => as(
|
|
6660
6660
|
new Date(
|
|
6661
6661
|
f.year,
|
|
6662
6662
|
f.month - 1,
|
|
@@ -6667,7 +6667,7 @@ const yr = de({
|
|
|
6667
6667
|
f.millisecond
|
|
6668
6668
|
),
|
|
6669
6669
|
w === void 0 ? q.value : w,
|
|
6670
|
-
|
|
6670
|
+
z === void 0 ? g.value : z,
|
|
6671
6671
|
f.year,
|
|
6672
6672
|
f.timezoneOffset
|
|
6673
6673
|
)), x = c(
|
|
@@ -6682,8 +6682,8 @@ const yr = de({
|
|
|
6682
6682
|
if (e.title !== void 0 && e.title !== null && e.title.length !== 0)
|
|
6683
6683
|
return e.title;
|
|
6684
6684
|
if (A.value !== null) {
|
|
6685
|
-
const
|
|
6686
|
-
return g.value.daysShort[N.getDay()] + ", " + g.value.monthsShort[
|
|
6685
|
+
const z = A.value.init, N = G.value(z);
|
|
6686
|
+
return g.value.daysShort[N.getDay()] + ", " + g.value.monthsShort[z.month - 1] + " " + z.day + rl + "?";
|
|
6687
6687
|
}
|
|
6688
6688
|
if (x.value === 0)
|
|
6689
6689
|
return rl;
|
|
@@ -6691,14 +6691,14 @@ const yr = de({
|
|
|
6691
6691
|
return `${x.value} ${g.value.pluralDay}`;
|
|
6692
6692
|
const f = X.value[0], w = G.value(f);
|
|
6693
6693
|
return isNaN(w.valueOf()) === !0 ? rl : g.value.headerTitle !== void 0 ? g.value.headerTitle(w, f) : g.value.daysShort[w.getDay()] + ", " + g.value.monthsShort[f.month - 1] + " " + f.day;
|
|
6694
|
-
}), Z = c(() => X.value.concat(j.value.map((w) => w.from)).sort((w,
|
|
6694
|
+
}), Z = c(() => X.value.concat(j.value.map((w) => w.from)).sort((w, z) => w.year - z.year || w.month - z.month)[0]), Y = c(() => X.value.concat(j.value.map((w) => w.to)).sort((w, z) => z.year - w.year || z.month - w.month)[0]), ae = c(() => {
|
|
6695
6695
|
if (e.subtitle !== void 0 && e.subtitle !== null && e.subtitle.length !== 0)
|
|
6696
6696
|
return e.subtitle;
|
|
6697
6697
|
if (x.value === 0)
|
|
6698
6698
|
return rl;
|
|
6699
6699
|
if (x.value > 1) {
|
|
6700
|
-
const f = Z.value, w = Y.value,
|
|
6701
|
-
return
|
|
6700
|
+
const f = Z.value, w = Y.value, z = g.value.monthsShort;
|
|
6701
|
+
return z[f.month - 1] + (f.year !== w.year ? " " + f.year + rl + z[w.month - 1] + " " : f.month !== w.month ? rl + z[w.month - 1] : "") + " " + w.year;
|
|
6702
6702
|
}
|
|
6703
6703
|
return X.value[0].year;
|
|
6704
6704
|
}), te = c(() => {
|
|
@@ -6709,7 +6709,7 @@ const yr = de({
|
|
|
6709
6709
|
return w > 0 ? f.slice(w, 7).concat(f.slice(0, w)) : f;
|
|
6710
6710
|
}), I = c(() => {
|
|
6711
6711
|
const f = _.value;
|
|
6712
|
-
return e.calendar !== "persian" ? new Date(f.year, f.month, 0).getDate() :
|
|
6712
|
+
return e.calendar !== "persian" ? new Date(f.year, f.month, 0).getDate() : Il(f.year, f.month);
|
|
6713
6713
|
}), Ee = c(() => typeof e.eventColor == "function" ? e.eventColor : () => e.eventColor), we = c(() => {
|
|
6714
6714
|
if (e.navigationMinYearMonth === void 0)
|
|
6715
6715
|
return null;
|
|
@@ -6729,21 +6729,21 @@ const yr = de({
|
|
|
6729
6729
|
}), et = c(() => {
|
|
6730
6730
|
const f = {};
|
|
6731
6731
|
return X.value.forEach((w) => {
|
|
6732
|
-
const
|
|
6733
|
-
f[
|
|
6732
|
+
const z = zt(w);
|
|
6733
|
+
f[z] === void 0 && (f[z] = []), f[z].push(w.day);
|
|
6734
6734
|
}), f;
|
|
6735
6735
|
}), We = c(() => {
|
|
6736
6736
|
const f = {};
|
|
6737
6737
|
return j.value.forEach((w) => {
|
|
6738
|
-
const
|
|
6739
|
-
if (f[
|
|
6738
|
+
const z = zt(w.from), N = zt(w.to);
|
|
6739
|
+
if (f[z] === void 0 && (f[z] = []), f[z].push({
|
|
6740
6740
|
from: w.from.day,
|
|
6741
|
-
to:
|
|
6741
|
+
to: z === N ? w.to.day : void 0,
|
|
6742
6742
|
range: w
|
|
6743
|
-
}),
|
|
6743
|
+
}), z < N) {
|
|
6744
6744
|
let K;
|
|
6745
6745
|
const { year: ce, month: le } = w.from, ue = le < 12 ? { year: ce, month: le + 1 } : { year: ce + 1, month: 1 };
|
|
6746
|
-
for (; (K =
|
|
6746
|
+
for (; (K = zt(ue)) <= N; )
|
|
6747
6747
|
f[K] === void 0 && (f[K] = []), f[K].push({
|
|
6748
6748
|
from: void 0,
|
|
6749
6749
|
to: K === N ? w.to.day : void 0,
|
|
@@ -6753,21 +6753,21 @@ const yr = de({
|
|
|
6753
6753
|
}), f;
|
|
6754
6754
|
}), Ie = c(() => {
|
|
6755
6755
|
if (A.value === null) return;
|
|
6756
|
-
const { init: f, initHash: w, final:
|
|
6756
|
+
const { init: f, initHash: w, final: z, finalHash: N } = A.value, [K, ce] = w <= N ? [f, z] : [z, f], le = zt(K), ue = zt(ce);
|
|
6757
6757
|
if (le !== Te.value && ue !== Te.value) return;
|
|
6758
6758
|
const be = {};
|
|
6759
6759
|
return le === Te.value ? (be.from = K.day, be.includeFrom = !0) : be.from = 1, ue === Te.value ? (be.to = ce.day, be.includeTo = !0) : be.to = I.value, be;
|
|
6760
|
-
}), Te = c(() =>
|
|
6760
|
+
}), Te = c(() => zt(_.value)), pt = c(() => {
|
|
6761
6761
|
const f = {};
|
|
6762
6762
|
if (e.options === void 0) {
|
|
6763
|
-
for (let
|
|
6764
|
-
f[
|
|
6763
|
+
for (let z = 1; z <= I.value; z++)
|
|
6764
|
+
f[z] = !0;
|
|
6765
6765
|
return f;
|
|
6766
6766
|
}
|
|
6767
|
-
const w = typeof e.options == "function" ? e.options : (
|
|
6768
|
-
for (let
|
|
6769
|
-
const N = Te.value + "/" + Se(
|
|
6770
|
-
f[
|
|
6767
|
+
const w = typeof e.options == "function" ? e.options : (z) => e.options.includes(z);
|
|
6768
|
+
for (let z = 1; z <= I.value; z++) {
|
|
6769
|
+
const N = Te.value + "/" + Se(z);
|
|
6770
|
+
f[z] = w(N);
|
|
6771
6771
|
}
|
|
6772
6772
|
return f;
|
|
6773
6773
|
}), Pt = c(() => {
|
|
@@ -6776,32 +6776,32 @@ const yr = de({
|
|
|
6776
6776
|
for (let w = 1; w <= I.value; w++)
|
|
6777
6777
|
f[w] = !1;
|
|
6778
6778
|
else {
|
|
6779
|
-
const w = typeof e.events == "function" ? e.events : (
|
|
6780
|
-
for (let
|
|
6781
|
-
const N = Te.value + "/" + Se(
|
|
6782
|
-
f[
|
|
6779
|
+
const w = typeof e.events == "function" ? e.events : (z) => e.events.includes(z);
|
|
6780
|
+
for (let z = 1; z <= I.value; z++) {
|
|
6781
|
+
const N = Te.value + "/" + Se(z);
|
|
6782
|
+
f[z] = w(N) === !0 && Ee.value(N);
|
|
6783
6783
|
}
|
|
6784
6784
|
}
|
|
6785
6785
|
return f;
|
|
6786
6786
|
}), Ct = c(() => {
|
|
6787
6787
|
let f, w;
|
|
6788
|
-
const { year:
|
|
6788
|
+
const { year: z, month: N } = _.value;
|
|
6789
6789
|
if (e.calendar !== "persian")
|
|
6790
|
-
f = new Date(
|
|
6790
|
+
f = new Date(z, N - 1, 1), w = new Date(z, N - 1, 0).getDate();
|
|
6791
6791
|
else {
|
|
6792
|
-
const K =
|
|
6792
|
+
const K = Ja(z, N, 1);
|
|
6793
6793
|
f = new Date(K.gy, K.gm - 1, K.gd);
|
|
6794
|
-
let ce = N - 1, le =
|
|
6795
|
-
ce === 0 && (ce = 12, le--), w =
|
|
6794
|
+
let ce = N - 1, le = z;
|
|
6795
|
+
ce === 0 && (ce = 12, le--), w = Il(le, ce);
|
|
6796
6796
|
}
|
|
6797
6797
|
return {
|
|
6798
6798
|
days: f.getDay() - ne.value - 1,
|
|
6799
6799
|
endDay: w
|
|
6800
6800
|
};
|
|
6801
6801
|
}), Qe = c(() => {
|
|
6802
|
-
const f = [], { days: w, endDay:
|
|
6802
|
+
const f = [], { days: w, endDay: z } = Ct.value, N = w < 0 ? w + 7 : w;
|
|
6803
6803
|
if (N < 6)
|
|
6804
|
-
for (let le =
|
|
6804
|
+
for (let le = z - N; le <= z; le++)
|
|
6805
6805
|
f.push({ i: le, fill: !0 });
|
|
6806
6806
|
const K = f.length;
|
|
6807
6807
|
for (let le = 1; le <= I.value; le++) {
|
|
@@ -6895,19 +6895,19 @@ const yr = de({
|
|
|
6895
6895
|
m = JSON.stringify(f);
|
|
6896
6896
|
}
|
|
6897
6897
|
function gt() {
|
|
6898
|
-
const { year: f, month: w, day:
|
|
6898
|
+
const { year: f, month: w, day: z } = V.value, N = {
|
|
6899
6899
|
// contains more props than needed (hour, minute, second, millisecond)
|
|
6900
6900
|
// but those aren't used in the processing of this "date" variable
|
|
6901
6901
|
..._.value,
|
|
6902
6902
|
// overwriting with today's date
|
|
6903
6903
|
year: f,
|
|
6904
6904
|
month: w,
|
|
6905
|
-
day:
|
|
6906
|
-
}, K = et.value[
|
|
6905
|
+
day: z
|
|
6906
|
+
}, K = et.value[zt(N)];
|
|
6907
6907
|
(K === void 0 || K.includes(N.day) === !1) && Ht(N), bt(N.year, N.month);
|
|
6908
6908
|
}
|
|
6909
6909
|
function Wt(f) {
|
|
6910
|
-
|
|
6910
|
+
no(f) === !0 && (b.value = f);
|
|
6911
6911
|
}
|
|
6912
6912
|
function Xt(f, w) {
|
|
6913
6913
|
["month", "year"].includes(f) && (f === "month" ? Zt : yt)(w === !0 ? -1 : 1);
|
|
@@ -6920,22 +6920,22 @@ const yr = de({
|
|
|
6920
6920
|
A.value = null;
|
|
6921
6921
|
return;
|
|
6922
6922
|
}
|
|
6923
|
-
const
|
|
6923
|
+
const z = Object.assign({ ..._.value }, f), N = w !== void 0 ? Object.assign({ ..._.value }, w) : z;
|
|
6924
6924
|
A.value = {
|
|
6925
|
-
init:
|
|
6926
|
-
initHash:
|
|
6925
|
+
init: z,
|
|
6926
|
+
initHash: Dt(z),
|
|
6927
6927
|
final: N,
|
|
6928
|
-
finalHash:
|
|
6929
|
-
}, bt(
|
|
6928
|
+
finalHash: Dt(N)
|
|
6929
|
+
}, bt(z.year, z.month);
|
|
6930
6930
|
}
|
|
6931
6931
|
function At() {
|
|
6932
6932
|
return e.calendar === "persian" ? "YYYY/MM/DD" : e.mask;
|
|
6933
6933
|
}
|
|
6934
|
-
function Ue(f, w,
|
|
6934
|
+
function Ue(f, w, z) {
|
|
6935
6935
|
return ns(
|
|
6936
6936
|
f,
|
|
6937
6937
|
w,
|
|
6938
|
-
|
|
6938
|
+
z,
|
|
6939
6939
|
e.calendar,
|
|
6940
6940
|
{
|
|
6941
6941
|
hour: 0,
|
|
@@ -6946,10 +6946,10 @@ const yr = de({
|
|
|
6946
6946
|
);
|
|
6947
6947
|
}
|
|
6948
6948
|
function Ye(f, w) {
|
|
6949
|
-
const
|
|
6950
|
-
if (
|
|
6949
|
+
const z = Array.isArray(e.modelValue) === !0 ? e.modelValue : e.modelValue ? [e.modelValue] : [];
|
|
6950
|
+
if (z.length === 0)
|
|
6951
6951
|
return Xe();
|
|
6952
|
-
const N =
|
|
6952
|
+
const N = z[z.length - 1], K = Ue(
|
|
6953
6953
|
N.from !== void 0 ? N.from : N,
|
|
6954
6954
|
f,
|
|
6955
6955
|
w
|
|
@@ -6959,11 +6959,11 @@ const yr = de({
|
|
|
6959
6959
|
function Xe() {
|
|
6960
6960
|
let f, w;
|
|
6961
6961
|
if (e.defaultYearMonth !== void 0) {
|
|
6962
|
-
const
|
|
6963
|
-
f = parseInt(
|
|
6962
|
+
const z = e.defaultYearMonth.split("/");
|
|
6963
|
+
f = parseInt(z[0], 10), w = parseInt(z[1], 10);
|
|
6964
6964
|
} else {
|
|
6965
|
-
const
|
|
6966
|
-
f =
|
|
6965
|
+
const z = V.value !== void 0 ? V.value : u();
|
|
6966
|
+
f = z.year, w = z.month;
|
|
6967
6967
|
}
|
|
6968
6968
|
return {
|
|
6969
6969
|
year: f,
|
|
@@ -6977,29 +6977,29 @@ const yr = de({
|
|
|
6977
6977
|
};
|
|
6978
6978
|
}
|
|
6979
6979
|
function Zt(f) {
|
|
6980
|
-
let w = _.value.year,
|
|
6981
|
-
|
|
6980
|
+
let w = _.value.year, z = Number(_.value.month) + f;
|
|
6981
|
+
z === 13 ? (z = 1, w++) : z === 0 && (z = 12, w--), Ze(w, z), O.value === !0 && $t("month");
|
|
6982
6982
|
}
|
|
6983
6983
|
function yt(f) {
|
|
6984
6984
|
const w = Number(_.value.year) + f;
|
|
6985
|
-
Ze(w, _.value.month),
|
|
6985
|
+
Ze(w, _.value.month), O.value === !0 && $t("year");
|
|
6986
6986
|
}
|
|
6987
6987
|
function Lt(f) {
|
|
6988
|
-
Ze(f, _.value.month), b.value = e.defaultView === "Years" ? "Months" : "Calendar",
|
|
6988
|
+
Ze(f, _.value.month), b.value = e.defaultView === "Years" ? "Months" : "Calendar", O.value === !0 && $t("year");
|
|
6989
6989
|
}
|
|
6990
6990
|
function Jt(f) {
|
|
6991
|
-
Ze(_.value.year, f), b.value = "Calendar",
|
|
6991
|
+
Ze(_.value.year, f), b.value = "Calendar", O.value === !0 && $t("month");
|
|
6992
6992
|
}
|
|
6993
6993
|
function Et(f, w) {
|
|
6994
|
-
const
|
|
6995
|
-
((
|
|
6994
|
+
const z = et.value[w];
|
|
6995
|
+
((z == null ? void 0 : z.includes(f.day)) === !0 ? $ : Ht)(f);
|
|
6996
6996
|
}
|
|
6997
6997
|
function tt(f) {
|
|
6998
6998
|
return { year: f.year, month: f.month, day: f.day };
|
|
6999
6999
|
}
|
|
7000
|
-
function Ze(f, w,
|
|
7001
|
-
if (we.value !== null && f <= we.value.year && ((w < we.value.month || f < we.value.year) && (w = we.value.month), f = we.value.year), Me.value !== null && f >= Me.value.year && ((w > Me.value.month || f > Me.value.year) && (w = Me.value.month), f = Me.value.year),
|
|
7002
|
-
const { hour: K, minute: ce, second: le, millisecond: ue, timezoneOffset: be, timeHash: st } =
|
|
7000
|
+
function Ze(f, w, z) {
|
|
7001
|
+
if (we.value !== null && f <= we.value.year && ((w < we.value.month || f < we.value.year) && (w = we.value.month), f = we.value.year), Me.value !== null && f >= Me.value.year && ((w > Me.value.month || f > Me.value.year) && (w = Me.value.month), f = Me.value.year), z !== void 0) {
|
|
7002
|
+
const { hour: K, minute: ce, second: le, millisecond: ue, timezoneOffset: be, timeHash: st } = z;
|
|
7003
7003
|
Object.assign(_.value, { hour: K, minute: ce, second: le, millisecond: ue, timezoneOffset: be, timeHash: st });
|
|
7004
7004
|
}
|
|
7005
7005
|
const N = f + "/" + Se(w) + "/01";
|
|
@@ -7012,16 +7012,16 @@ const yr = de({
|
|
|
7012
7012
|
});
|
|
7013
7013
|
}));
|
|
7014
7014
|
}
|
|
7015
|
-
function Ft(f, w,
|
|
7016
|
-
const N = f !== null && f.length === 1 && e.multiple === !1 ? f[0] : f, { reason: K, details: ce } = Gt(w,
|
|
7015
|
+
function Ft(f, w, z) {
|
|
7016
|
+
const N = f !== null && f.length === 1 && e.multiple === !1 ? f[0] : f, { reason: K, details: ce } = Gt(w, z);
|
|
7017
7017
|
ut(N), l("update:modelValue", N, K, ce);
|
|
7018
7018
|
}
|
|
7019
7019
|
function $t(f) {
|
|
7020
7020
|
const w = X.value[0] !== void 0 && X.value[0].dateHash !== null ? { ...X.value[0] } : { ..._.value };
|
|
7021
7021
|
xe(() => {
|
|
7022
7022
|
w.year = _.value.year, w.month = _.value.month;
|
|
7023
|
-
const
|
|
7024
|
-
w.day = Math.min(Math.max(1, w.day),
|
|
7023
|
+
const z = e.calendar !== "persian" ? new Date(w.year, w.month, 0).getDate() : Il(w.year, w.month);
|
|
7024
|
+
w.day = Math.min(Math.max(1, w.day), z);
|
|
7025
7025
|
const N = mt(w), { details: K } = Gt("", w);
|
|
7026
7026
|
ut(N), l("update:modelValue", N, f, K);
|
|
7027
7027
|
});
|
|
@@ -7039,18 +7039,18 @@ const yr = de({
|
|
|
7039
7039
|
details: tt(w)
|
|
7040
7040
|
};
|
|
7041
7041
|
}
|
|
7042
|
-
function mt(f, w,
|
|
7043
|
-
return f.from !== void 0 ? { from: re.value(f.from, w,
|
|
7042
|
+
function mt(f, w, z) {
|
|
7043
|
+
return f.from !== void 0 ? { from: re.value(f.from, w, z), to: re.value(f.to, w, z) } : re.value(f, w, z);
|
|
7044
7044
|
}
|
|
7045
7045
|
function Ht(f) {
|
|
7046
7046
|
let w;
|
|
7047
7047
|
if (e.multiple === !0)
|
|
7048
7048
|
if (f.from !== void 0) {
|
|
7049
|
-
const
|
|
7049
|
+
const z = Dt(f.from), N = Dt(f.to), K = X.value.filter((le) => le.dateHash < z || le.dateHash > N), ce = j.value.filter(({ from: le, to: ue }) => ue.dateHash < z || le.dateHash > N);
|
|
7050
7050
|
w = K.concat(ce).concat(f).map((le) => mt(le));
|
|
7051
7051
|
} else {
|
|
7052
|
-
const
|
|
7053
|
-
|
|
7052
|
+
const z = H.value.slice();
|
|
7053
|
+
z.push(mt(f)), w = z;
|
|
7054
7054
|
}
|
|
7055
7055
|
else
|
|
7056
7056
|
w = mt(f);
|
|
@@ -7060,16 +7060,16 @@ const yr = de({
|
|
|
7060
7060
|
if (e.noUnset === !0) return;
|
|
7061
7061
|
let w = null;
|
|
7062
7062
|
if (e.multiple === !0 && Array.isArray(e.modelValue) === !0) {
|
|
7063
|
-
const
|
|
7063
|
+
const z = mt(f);
|
|
7064
7064
|
f.from !== void 0 ? w = e.modelValue.filter(
|
|
7065
|
-
(N) => N.from !== void 0 ? N.from !==
|
|
7066
|
-
) : w = e.modelValue.filter((N) => N !==
|
|
7065
|
+
(N) => N.from !== void 0 ? N.from !== z.from && N.to !== z.to : !0
|
|
7066
|
+
) : w = e.modelValue.filter((N) => N !== z), w.length === 0 && (w = null);
|
|
7067
7067
|
}
|
|
7068
7068
|
Ft(w, "remove", f);
|
|
7069
7069
|
}
|
|
7070
|
-
function Q(f, w,
|
|
7070
|
+
function Q(f, w, z) {
|
|
7071
7071
|
const N = X.value.concat(j.value).map((ce) => mt(ce, f, w)).filter((ce) => ce.from !== void 0 ? ce.from.dateHash !== null && ce.to.dateHash !== null : ce.dateHash !== null), K = (e.multiple === !0 ? N : N[0]) || null;
|
|
7072
|
-
ut(K), l("update:modelValue", K,
|
|
7072
|
+
ut(K), l("update:modelValue", K, z);
|
|
7073
7073
|
}
|
|
7074
7074
|
function ie() {
|
|
7075
7075
|
if (e.minimal !== !0)
|
|
@@ -7130,7 +7130,7 @@ const yr = de({
|
|
|
7130
7130
|
])
|
|
7131
7131
|
]);
|
|
7132
7132
|
}
|
|
7133
|
-
function oe({ label: f, type: w, key:
|
|
7133
|
+
function oe({ label: f, type: w, key: z, dir: N, goTo: K, boundaries: ce, cls: le }) {
|
|
7134
7134
|
return [
|
|
7135
7135
|
d("div", {
|
|
7136
7136
|
class: "row items-center q-date__arrow"
|
|
@@ -7154,7 +7154,7 @@ const yr = de({
|
|
|
7154
7154
|
}, [
|
|
7155
7155
|
d(wt, {
|
|
7156
7156
|
name: "q-transition--jump-" + N
|
|
7157
|
-
}, () => d("div", { key:
|
|
7157
|
+
}, () => d("div", { key: z }, [
|
|
7158
7158
|
d(Le, {
|
|
7159
7159
|
flat: !0,
|
|
7160
7160
|
dense: !0,
|
|
@@ -7250,7 +7250,7 @@ const yr = de({
|
|
|
7250
7250
|
])
|
|
7251
7251
|
],
|
|
7252
7252
|
Months() {
|
|
7253
|
-
const f = _.value.year === V.value.year, w = (N) => we.value !== null && _.value.year === we.value.year && we.value.month > N || Me.value !== null && _.value.year === Me.value.year && Me.value.month < N,
|
|
7253
|
+
const f = _.value.year === V.value.year, w = (N) => we.value !== null && _.value.year === we.value.year && we.value.month > N || Me.value !== null && _.value.year === Me.value.year && Me.value.month < N, z = g.value.monthsShort.map((N, K) => {
|
|
7254
7254
|
const ce = _.value.month === K + 1;
|
|
7255
7255
|
return d("div", {
|
|
7256
7256
|
class: "q-date__months-item flex flex-center"
|
|
@@ -7270,7 +7270,7 @@ const yr = de({
|
|
|
7270
7270
|
})
|
|
7271
7271
|
]);
|
|
7272
7272
|
});
|
|
7273
|
-
return e.yearsInMonthView === !0 &&
|
|
7273
|
+
return e.yearsInMonthView === !0 && z.unshift(
|
|
7274
7274
|
d("div", { class: "row no-wrap full-width" }, [
|
|
7275
7275
|
oe({
|
|
7276
7276
|
label: _.value.year,
|
|
@@ -7285,13 +7285,13 @@ const yr = de({
|
|
|
7285
7285
|
), d("div", {
|
|
7286
7286
|
key: "months-view",
|
|
7287
7287
|
class: "q-date__view q-date__months flex flex-center"
|
|
7288
|
-
},
|
|
7288
|
+
}, z);
|
|
7289
7289
|
},
|
|
7290
7290
|
Years() {
|
|
7291
|
-
const f = B.value, w = f + kt,
|
|
7291
|
+
const f = B.value, w = f + kt, z = [], N = (K) => we.value !== null && we.value.year > K || Me.value !== null && Me.value.year < K;
|
|
7292
7292
|
for (let K = f; K <= w; K++) {
|
|
7293
7293
|
const ce = _.value.year === K;
|
|
7294
|
-
|
|
7294
|
+
z.push(
|
|
7295
7295
|
d("div", {
|
|
7296
7296
|
class: "q-date__years-item flex flex-center"
|
|
7297
7297
|
}, [
|
|
@@ -7334,7 +7334,7 @@ const yr = de({
|
|
|
7334
7334
|
]),
|
|
7335
7335
|
d("div", {
|
|
7336
7336
|
class: "q-date__years-content col self-stretch row items-center"
|
|
7337
|
-
},
|
|
7337
|
+
}, z),
|
|
7338
7338
|
d("div", {
|
|
7339
7339
|
class: "col-auto"
|
|
7340
7340
|
}, [
|
|
@@ -7361,16 +7361,16 @@ const yr = de({
|
|
|
7361
7361
|
return;
|
|
7362
7362
|
}
|
|
7363
7363
|
if (A.value === null) {
|
|
7364
|
-
const
|
|
7365
|
-
if (e.noUnset !== !0 &&
|
|
7366
|
-
$({ target: w, from:
|
|
7364
|
+
const z = Qe.value.find((K) => K.fill !== !0 && K.i === f);
|
|
7365
|
+
if (e.noUnset !== !0 && z.range !== void 0) {
|
|
7366
|
+
$({ target: w, from: z.range.from, to: z.range.to });
|
|
7367
7367
|
return;
|
|
7368
7368
|
}
|
|
7369
|
-
if (
|
|
7369
|
+
if (z.selected === !0) {
|
|
7370
7370
|
$(w);
|
|
7371
7371
|
return;
|
|
7372
7372
|
}
|
|
7373
|
-
const N =
|
|
7373
|
+
const N = Dt(w);
|
|
7374
7374
|
A.value = {
|
|
7375
7375
|
init: w,
|
|
7376
7376
|
initHash: N,
|
|
@@ -7378,8 +7378,8 @@ const yr = de({
|
|
|
7378
7378
|
finalHash: N
|
|
7379
7379
|
}, l("rangeStart", tt(w));
|
|
7380
7380
|
} else {
|
|
7381
|
-
const
|
|
7382
|
-
A.value = null, Ht(
|
|
7381
|
+
const z = A.value.initHash, N = Dt(w), K = z <= N ? { from: A.value.init, to: w } : { from: w, to: A.value.init };
|
|
7382
|
+
A.value = null, Ht(z === N ? w : { target: w, ...K }), l("rangeEnd", {
|
|
7383
7383
|
from: tt(K.from),
|
|
7384
7384
|
to: tt(K.to)
|
|
7385
7385
|
});
|
|
@@ -7390,7 +7390,7 @@ const yr = de({
|
|
|
7390
7390
|
const w = { ..._.value, day: f };
|
|
7391
7391
|
Object.assign(A.value, {
|
|
7392
7392
|
final: w,
|
|
7393
|
-
finalHash:
|
|
7393
|
+
finalHash: Dt(w)
|
|
7394
7394
|
});
|
|
7395
7395
|
}
|
|
7396
7396
|
}
|
|
@@ -7409,11 +7409,11 @@ const yr = de({
|
|
|
7409
7409
|
name: "q-transition--fade"
|
|
7410
7410
|
}, se[b.value])
|
|
7411
7411
|
])
|
|
7412
|
-
], w =
|
|
7412
|
+
], w = De(t.default);
|
|
7413
7413
|
return w !== void 0 && f.push(
|
|
7414
7414
|
d("div", { class: "q-date__actions" }, w)
|
|
7415
7415
|
), e.name !== void 0 && e.disable !== !0 && h(f, "push"), d("div", {
|
|
7416
|
-
class:
|
|
7416
|
+
class: D.value,
|
|
7417
7417
|
...je.value
|
|
7418
7418
|
}, [
|
|
7419
7419
|
ie(),
|
|
@@ -7474,7 +7474,7 @@ const yr = de({
|
|
|
7474
7474
|
onHide: y
|
|
7475
7475
|
};
|
|
7476
7476
|
let g;
|
|
7477
|
-
return m.value === "dialog" ? g = lr : (g =
|
|
7477
|
+
return m.value === "dialog" ? g = lr : (g = ln, Object.assign(q, {
|
|
7478
7478
|
target: e.target,
|
|
7479
7479
|
contextMenu: e.contextMenu,
|
|
7480
7480
|
noParentEvent: !0,
|
|
@@ -7482,14 +7482,14 @@ const yr = de({
|
|
|
7482
7482
|
})), d(g, q, t.default);
|
|
7483
7483
|
};
|
|
7484
7484
|
}
|
|
7485
|
-
}),
|
|
7485
|
+
}), ao = {
|
|
7486
7486
|
date: "####/##/##",
|
|
7487
7487
|
datetime: "####/##/## ##:##",
|
|
7488
7488
|
time: "##:##",
|
|
7489
7489
|
fulltime: "##:##:##",
|
|
7490
7490
|
phone: "(###) ### - ####",
|
|
7491
7491
|
card: "#### #### #### ####"
|
|
7492
|
-
},
|
|
7492
|
+
}, Xl = {
|
|
7493
7493
|
"#": { pattern: "[\\d]", negate: "[^\\d]" },
|
|
7494
7494
|
S: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]" },
|
|
7495
7495
|
N: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]" },
|
|
@@ -7497,11 +7497,11 @@ const yr = de({
|
|
|
7497
7497
|
a: { pattern: "[a-zA-Z]", negate: "[^a-zA-Z]", transform: (e) => e.toLocaleLowerCase() },
|
|
7498
7498
|
X: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (e) => e.toLocaleUpperCase() },
|
|
7499
7499
|
x: { pattern: "[0-9a-zA-Z]", negate: "[^0-9a-zA-Z]", transform: (e) => e.toLocaleLowerCase() }
|
|
7500
|
-
}, Sr = Object.keys(
|
|
7500
|
+
}, Sr = Object.keys(Xl);
|
|
7501
7501
|
Sr.forEach((e) => {
|
|
7502
|
-
|
|
7502
|
+
Xl[e].regex = new RegExp(Xl[e].pattern);
|
|
7503
7503
|
});
|
|
7504
|
-
const rs = new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + Sr.join("") + "])|(.)", "g"),
|
|
7504
|
+
const rs = new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + Sr.join("") + "])|(.)", "g"), oo = /[.*+?^${}()|[\]\\]/g, Pe = "", is = {
|
|
7505
7505
|
mask: String,
|
|
7506
7506
|
reverseFillMask: Boolean,
|
|
7507
7507
|
fillMask: [Boolean, String],
|
|
@@ -7536,11 +7536,11 @@ function us(e, t, l, a) {
|
|
|
7536
7536
|
if (T < n.length)
|
|
7537
7537
|
return n.slice(-T);
|
|
7538
7538
|
let B = "", A = n;
|
|
7539
|
-
const
|
|
7540
|
-
if (
|
|
7539
|
+
const D = A.indexOf(Pe);
|
|
7540
|
+
if (D !== -1) {
|
|
7541
7541
|
for (let U = T - A.length; U > 0; U--)
|
|
7542
7542
|
B += Pe;
|
|
7543
|
-
A = A.slice(0,
|
|
7543
|
+
A = A.slice(0, D) + B + A.slice(D);
|
|
7544
7544
|
}
|
|
7545
7545
|
return A;
|
|
7546
7546
|
}
|
|
@@ -7549,21 +7549,21 @@ function us(e, t, l, a) {
|
|
|
7549
7549
|
i = void 0, n = "", o = "";
|
|
7550
7550
|
return;
|
|
7551
7551
|
}
|
|
7552
|
-
const T =
|
|
7553
|
-
let
|
|
7552
|
+
const T = ao[e.mask] === void 0 ? e.mask : ao[e.mask], B = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", A = B.replace(oo, "\\$&"), D = [], U = [], C = [];
|
|
7553
|
+
let O = e.reverseFillMask === !0, H = "", X = "";
|
|
7554
7554
|
T.replace(rs, (x, k, Z, Y, ae) => {
|
|
7555
7555
|
if (Y !== void 0) {
|
|
7556
|
-
const te =
|
|
7557
|
-
C.push(te), X = te.negate,
|
|
7556
|
+
const te = Xl[Y];
|
|
7557
|
+
C.push(te), X = te.negate, O === !0 && (U.push("(?:" + X + "+)?(" + te.pattern + "+)?(?:" + X + "+)?(" + te.pattern + "+)?"), O = !1), U.push("(?:" + X + "+)?(" + te.pattern + ")?");
|
|
7558
7558
|
} else if (Z !== void 0)
|
|
7559
|
-
H = "\\" + (Z === "\\" ? "" : Z), C.push(Z),
|
|
7559
|
+
H = "\\" + (Z === "\\" ? "" : Z), C.push(Z), D.push("([^" + H + "]+)?" + H + "?");
|
|
7560
7560
|
else {
|
|
7561
7561
|
const te = k !== void 0 ? k : ae;
|
|
7562
|
-
H = te === "\\" ? "\\\\\\\\" : te.replace(
|
|
7562
|
+
H = te === "\\" ? "\\\\\\\\" : te.replace(oo, "\\\\$&"), C.push(te), D.push("([^" + H + "]+)?" + H + "?");
|
|
7563
7563
|
}
|
|
7564
7564
|
});
|
|
7565
7565
|
const j = new RegExp(
|
|
7566
|
-
"^" +
|
|
7566
|
+
"^" + D.join("") + "(" + (H === "" ? "." : "[^" + H + "]") + "+)?" + (H === "" ? "" : "[" + H + "]*") + "$"
|
|
7567
7567
|
), G = U.length - 1, re = U.map((x, k) => k === 0 && e.reverseFillMask === !0 ? new RegExp("^" + A + "*" + x) : k === G ? new RegExp(
|
|
7568
7568
|
"^" + x + "(" + (X === "" ? "." : X) + "+)?" + (e.reverseFillMask === !0 ? "$" : A + "*")
|
|
7569
7569
|
) : new RegExp("^" + x));
|
|
@@ -7581,98 +7581,98 @@ function us(e, t, l, a) {
|
|
|
7581
7581
|
}, n = C.map((x) => typeof x == "string" ? x : Pe).join(""), o = n.split(Pe).join(B);
|
|
7582
7582
|
}
|
|
7583
7583
|
function g(T, B, A) {
|
|
7584
|
-
const
|
|
7584
|
+
const D = a.value, U = D.selectionEnd, C = D.value.length - U, O = E(T);
|
|
7585
7585
|
B === !0 && q();
|
|
7586
|
-
const H = b(
|
|
7587
|
-
|
|
7586
|
+
const H = b(O), X = e.fillMask !== !1 ? L(H) : H, j = m.value !== X;
|
|
7587
|
+
D.value !== X && (D.value = X), j === !0 && (m.value = X), document.activeElement === D && xe(() => {
|
|
7588
7588
|
if (X === o) {
|
|
7589
7589
|
const re = e.reverseFillMask === !0 ? o.length : 0;
|
|
7590
|
-
|
|
7590
|
+
D.setSelectionRange(re, re, "forward");
|
|
7591
7591
|
return;
|
|
7592
7592
|
}
|
|
7593
7593
|
if (A === "insertFromPaste" && e.reverseFillMask !== !0) {
|
|
7594
|
-
const re =
|
|
7594
|
+
const re = D.selectionEnd;
|
|
7595
7595
|
let x = U - 1;
|
|
7596
7596
|
for (let k = s; k <= x && k < re; k++)
|
|
7597
7597
|
n[k] !== Pe && x++;
|
|
7598
|
-
M.right(
|
|
7598
|
+
M.right(D, x);
|
|
7599
7599
|
return;
|
|
7600
7600
|
}
|
|
7601
7601
|
if (["deleteContentBackward", "deleteContentForward"].indexOf(A) !== -1) {
|
|
7602
7602
|
const re = e.reverseFillMask === !0 ? U === 0 ? X.length > H.length ? 1 : 0 : Math.max(0, X.length - (X === o ? 0 : Math.min(H.length, C) + 1)) + 1 : U;
|
|
7603
|
-
|
|
7603
|
+
D.setSelectionRange(re, re, "forward");
|
|
7604
7604
|
return;
|
|
7605
7605
|
}
|
|
7606
7606
|
if (e.reverseFillMask === !0)
|
|
7607
7607
|
if (j === !0) {
|
|
7608
7608
|
const re = Math.max(0, X.length - (X === o ? 0 : Math.min(H.length, C + 1)));
|
|
7609
|
-
re === 1 && U === 1 ?
|
|
7609
|
+
re === 1 && U === 1 ? D.setSelectionRange(re, re, "forward") : M.rightReverse(D, re);
|
|
7610
7610
|
} else {
|
|
7611
7611
|
const re = X.length - C;
|
|
7612
|
-
|
|
7612
|
+
D.setSelectionRange(re, re, "backward");
|
|
7613
7613
|
}
|
|
7614
7614
|
else if (j === !0) {
|
|
7615
7615
|
const re = Math.max(0, n.indexOf(Pe), Math.min(H.length, U) - 1);
|
|
7616
|
-
M.right(
|
|
7616
|
+
M.right(D, re);
|
|
7617
7617
|
} else {
|
|
7618
7618
|
const re = U - 1;
|
|
7619
|
-
M.right(
|
|
7619
|
+
M.right(D, re);
|
|
7620
7620
|
}
|
|
7621
7621
|
});
|
|
7622
7622
|
const G = e.unmaskedValue === !0 ? E(X) : X;
|
|
7623
7623
|
String(e.modelValue) !== G && (e.modelValue !== null || G !== "") && l(G, !0);
|
|
7624
7624
|
}
|
|
7625
7625
|
function F(T, B, A) {
|
|
7626
|
-
const
|
|
7627
|
-
B = Math.max(0, n.indexOf(Pe), Math.min(
|
|
7626
|
+
const D = b(E(T.value));
|
|
7627
|
+
B = Math.max(0, n.indexOf(Pe), Math.min(D.length, B)), s = B, T.setSelectionRange(B, A, "forward");
|
|
7628
7628
|
}
|
|
7629
7629
|
const M = {
|
|
7630
7630
|
left(T, B) {
|
|
7631
7631
|
const A = n.slice(B - 1).indexOf(Pe) === -1;
|
|
7632
|
-
let
|
|
7633
|
-
for (;
|
|
7634
|
-
if (n[
|
|
7635
|
-
B =
|
|
7632
|
+
let D = Math.max(0, B - 1);
|
|
7633
|
+
for (; D >= 0; D--)
|
|
7634
|
+
if (n[D] === Pe) {
|
|
7635
|
+
B = D, A === !0 && B++;
|
|
7636
7636
|
break;
|
|
7637
7637
|
}
|
|
7638
|
-
if (
|
|
7638
|
+
if (D < 0 && n[B] !== void 0 && n[B] !== Pe)
|
|
7639
7639
|
return M.right(T, 0);
|
|
7640
7640
|
B >= 0 && T.setSelectionRange(B, B, "backward");
|
|
7641
7641
|
},
|
|
7642
7642
|
right(T, B) {
|
|
7643
7643
|
const A = T.value.length;
|
|
7644
|
-
let
|
|
7645
|
-
for (;
|
|
7646
|
-
if (n[
|
|
7647
|
-
B =
|
|
7644
|
+
let D = Math.min(A, B + 1);
|
|
7645
|
+
for (; D <= A; D++)
|
|
7646
|
+
if (n[D] === Pe) {
|
|
7647
|
+
B = D;
|
|
7648
7648
|
break;
|
|
7649
|
-
} else n[
|
|
7650
|
-
if (
|
|
7649
|
+
} else n[D - 1] === Pe && (B = D);
|
|
7650
|
+
if (D > A && n[B - 1] !== void 0 && n[B - 1] !== Pe)
|
|
7651
7651
|
return M.left(T, A);
|
|
7652
7652
|
T.setSelectionRange(B, B, "forward");
|
|
7653
7653
|
},
|
|
7654
7654
|
leftReverse(T, B) {
|
|
7655
7655
|
const A = y(T.value.length);
|
|
7656
|
-
let
|
|
7657
|
-
for (;
|
|
7658
|
-
if (A[
|
|
7659
|
-
B =
|
|
7656
|
+
let D = Math.max(0, B - 1);
|
|
7657
|
+
for (; D >= 0; D--)
|
|
7658
|
+
if (A[D - 1] === Pe) {
|
|
7659
|
+
B = D;
|
|
7660
7660
|
break;
|
|
7661
|
-
} else if (A[
|
|
7661
|
+
} else if (A[D] === Pe && (B = D, D === 0))
|
|
7662
7662
|
break;
|
|
7663
|
-
if (
|
|
7663
|
+
if (D < 0 && A[B] !== void 0 && A[B] !== Pe)
|
|
7664
7664
|
return M.rightReverse(T, 0);
|
|
7665
7665
|
B >= 0 && T.setSelectionRange(B, B, "backward");
|
|
7666
7666
|
},
|
|
7667
7667
|
rightReverse(T, B) {
|
|
7668
|
-
const A = T.value.length,
|
|
7668
|
+
const A = T.value.length, D = y(A), U = D.slice(0, B + 1).indexOf(Pe) === -1;
|
|
7669
7669
|
let C = Math.min(A, B + 1);
|
|
7670
7670
|
for (; C <= A; C++)
|
|
7671
|
-
if (
|
|
7671
|
+
if (D[C - 1] === Pe) {
|
|
7672
7672
|
B = C, B > 0 && U === !0 && B--;
|
|
7673
7673
|
break;
|
|
7674
7674
|
}
|
|
7675
|
-
if (C > A &&
|
|
7675
|
+
if (C > A && D[B - 1] !== void 0 && D[B - 1] !== Pe)
|
|
7676
7676
|
return M.leftReverse(T, A);
|
|
7677
7677
|
T.setSelectionRange(B, B, "forward");
|
|
7678
7678
|
}
|
|
@@ -7681,47 +7681,47 @@ function us(e, t, l, a) {
|
|
|
7681
7681
|
t("click", T), v = void 0;
|
|
7682
7682
|
}
|
|
7683
7683
|
function _(T) {
|
|
7684
|
-
if (t("keydown", T),
|
|
7685
|
-
const B = a.value, A = B.selectionStart,
|
|
7684
|
+
if (t("keydown", T), Kn(T) === !0 || T.altKey === !0) return;
|
|
7685
|
+
const B = a.value, A = B.selectionStart, D = B.selectionEnd;
|
|
7686
7686
|
if (T.shiftKey || (v = void 0), T.keyCode === 37 || T.keyCode === 39) {
|
|
7687
|
-
T.shiftKey && v === void 0 && (v = B.selectionDirection === "forward" ? A :
|
|
7687
|
+
T.shiftKey && v === void 0 && (v = B.selectionDirection === "forward" ? A : D);
|
|
7688
7688
|
const U = M[(T.keyCode === 39 ? "right" : "left") + (e.reverseFillMask === !0 ? "Reverse" : "")];
|
|
7689
|
-
if (T.preventDefault(), U(B, v === A ?
|
|
7689
|
+
if (T.preventDefault(), U(B, v === A ? D : A), T.shiftKey) {
|
|
7690
7690
|
const C = B.selectionStart;
|
|
7691
7691
|
B.setSelectionRange(Math.min(v, C), Math.max(v, C), "forward");
|
|
7692
7692
|
}
|
|
7693
|
-
} else T.keyCode === 8 && e.reverseFillMask !== !0 && A ===
|
|
7693
|
+
} else T.keyCode === 8 && e.reverseFillMask !== !0 && A === D ? (M.left(B, A), B.setSelectionRange(B.selectionStart, D, "backward")) : T.keyCode === 46 && e.reverseFillMask === !0 && A === D && (M.rightReverse(B, D), B.setSelectionRange(A, B.selectionEnd, "forward"));
|
|
7694
7694
|
}
|
|
7695
7695
|
function b(T) {
|
|
7696
7696
|
if (T == null || T === "")
|
|
7697
7697
|
return "";
|
|
7698
7698
|
if (e.reverseFillMask === !0)
|
|
7699
|
-
return
|
|
7699
|
+
return R(T);
|
|
7700
7700
|
const B = r;
|
|
7701
|
-
let A = 0,
|
|
7701
|
+
let A = 0, D = "";
|
|
7702
7702
|
for (let U = 0; U < B.length; U++) {
|
|
7703
|
-
const C = T[A],
|
|
7704
|
-
if (typeof
|
|
7705
|
-
|
|
7706
|
-
else if (C !== void 0 &&
|
|
7707
|
-
|
|
7703
|
+
const C = T[A], O = B[U];
|
|
7704
|
+
if (typeof O == "string")
|
|
7705
|
+
D += O, C === O && A++;
|
|
7706
|
+
else if (C !== void 0 && O.regex.test(C))
|
|
7707
|
+
D += O.transform !== void 0 ? O.transform(C) : C, A++;
|
|
7708
7708
|
else
|
|
7709
|
-
return
|
|
7709
|
+
return D;
|
|
7710
7710
|
}
|
|
7711
|
-
return
|
|
7711
|
+
return D;
|
|
7712
7712
|
}
|
|
7713
|
-
function
|
|
7713
|
+
function R(T) {
|
|
7714
7714
|
const B = r, A = n.indexOf(Pe);
|
|
7715
|
-
let
|
|
7716
|
-
for (let C = B.length - 1; C >= 0 &&
|
|
7717
|
-
const
|
|
7718
|
-
let H = T[
|
|
7719
|
-
if (typeof
|
|
7720
|
-
U =
|
|
7721
|
-
else if (H !== void 0 &&
|
|
7715
|
+
let D = T.length - 1, U = "";
|
|
7716
|
+
for (let C = B.length - 1; C >= 0 && D !== -1; C--) {
|
|
7717
|
+
const O = B[C];
|
|
7718
|
+
let H = T[D];
|
|
7719
|
+
if (typeof O == "string")
|
|
7720
|
+
U = O + U, H === O && D--;
|
|
7721
|
+
else if (H !== void 0 && O.regex.test(H))
|
|
7722
7722
|
do
|
|
7723
|
-
U = (
|
|
7724
|
-
while (A === C && H !== void 0 &&
|
|
7723
|
+
U = (O.transform !== void 0 ? O.transform(H) : H) + U, D--, H = T[D];
|
|
7724
|
+
while (A === C && H !== void 0 && O.regex.test(H));
|
|
7725
7725
|
else
|
|
7726
7726
|
return U;
|
|
7727
7727
|
}
|
|
@@ -7763,13 +7763,13 @@ function ss(e, t) {
|
|
|
7763
7763
|
return l();
|
|
7764
7764
|
});
|
|
7765
7765
|
}
|
|
7766
|
-
const
|
|
7766
|
+
const In = de({
|
|
7767
7767
|
name: "QInput",
|
|
7768
7768
|
inheritAttrs: !1,
|
|
7769
7769
|
props: {
|
|
7770
|
-
...
|
|
7770
|
+
...an,
|
|
7771
7771
|
...is,
|
|
7772
|
-
...
|
|
7772
|
+
...en,
|
|
7773
7773
|
// override of useFieldProps > modelValue
|
|
7774
7774
|
modelValue: [String, Number, FileList],
|
|
7775
7775
|
shadowText: String,
|
|
@@ -7784,7 +7784,7 @@ const Hn = de({
|
|
|
7784
7784
|
inputStyle: [Array, String, Object]
|
|
7785
7785
|
},
|
|
7786
7786
|
emits: [
|
|
7787
|
-
...
|
|
7787
|
+
...ta,
|
|
7788
7788
|
"paste",
|
|
7789
7789
|
"change",
|
|
7790
7790
|
"keydown",
|
|
@@ -7803,13 +7803,13 @@ const Hn = de({
|
|
|
7803
7803
|
onMaskedClick: M
|
|
7804
7804
|
} = us(e, t, H, m), V = ss(
|
|
7805
7805
|
e
|
|
7806
|
-
), _ = c(() => El(h.value)), b = ir(C),
|
|
7806
|
+
), _ = c(() => El(h.value)), b = ir(C), R = la({ changeEvent: !0 }), E = c(
|
|
7807
7807
|
() => e.type === "textarea" || e.autogrow === !0
|
|
7808
7808
|
), L = c(
|
|
7809
7809
|
() => E.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)
|
|
7810
7810
|
), T = c(() => {
|
|
7811
7811
|
const k = {
|
|
7812
|
-
...
|
|
7812
|
+
...R.splitAttrs.listeners.value,
|
|
7813
7813
|
onInput: C,
|
|
7814
7814
|
onPaste: U,
|
|
7815
7815
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -7820,7 +7820,7 @@ const Hn = de({
|
|
|
7820
7820
|
onBlur: G,
|
|
7821
7821
|
onFocus: nt
|
|
7822
7822
|
};
|
|
7823
|
-
return k.onCompositionstart = k.onCompositionupdate = k.onCompositionend = b, y.value === !0 && (k.onKeydown = F, k.onClick = M), e.autogrow === !0 && (k.onAnimationend =
|
|
7823
|
+
return k.onCompositionstart = k.onCompositionupdate = k.onCompositionend = b, y.value === !0 && (k.onKeydown = F, k.onClick = M), e.autogrow === !0 && (k.onAnimationend = O), k;
|
|
7824
7824
|
}), B = c(() => {
|
|
7825
7825
|
const k = {
|
|
7826
7826
|
tabindex: 0,
|
|
@@ -7828,8 +7828,8 @@ const Hn = de({
|
|
|
7828
7828
|
rows: e.type === "textarea" ? 6 : void 0,
|
|
7829
7829
|
"aria-label": e.label,
|
|
7830
7830
|
name: S.value,
|
|
7831
|
-
...
|
|
7832
|
-
id:
|
|
7831
|
+
...R.splitAttrs.attributes.value,
|
|
7832
|
+
id: R.targetUid.value,
|
|
7833
7833
|
maxlength: e.maxlength,
|
|
7834
7834
|
disabled: e.disable === !0,
|
|
7835
7835
|
readonly: e.readonly === !0
|
|
@@ -7851,12 +7851,12 @@ const Hn = de({
|
|
|
7851
7851
|
e.autogrow === !0 && xe(X);
|
|
7852
7852
|
});
|
|
7853
7853
|
function A() {
|
|
7854
|
-
|
|
7854
|
+
tn(() => {
|
|
7855
7855
|
const k = document.activeElement;
|
|
7856
|
-
m.value !== null && m.value !== k && (k === null || k.id !==
|
|
7856
|
+
m.value !== null && m.value !== k && (k === null || k.id !== R.targetUid.value) && m.value.focus({ preventScroll: !0 });
|
|
7857
7857
|
});
|
|
7858
7858
|
}
|
|
7859
|
-
function
|
|
7859
|
+
function D() {
|
|
7860
7860
|
var k;
|
|
7861
7861
|
(k = m.value) == null || k.select();
|
|
7862
7862
|
}
|
|
@@ -7888,7 +7888,7 @@ const Hn = de({
|
|
|
7888
7888
|
}
|
|
7889
7889
|
e.autogrow === !0 && X();
|
|
7890
7890
|
}
|
|
7891
|
-
function
|
|
7891
|
+
function O(k) {
|
|
7892
7892
|
t("animationend", k), X();
|
|
7893
7893
|
}
|
|
7894
7894
|
function H(k, Z) {
|
|
@@ -7918,11 +7918,11 @@ const Hn = de({
|
|
|
7918
7918
|
function re() {
|
|
7919
7919
|
return o.hasOwnProperty("value") === !0 ? o.value : h.value !== void 0 ? h.value : "";
|
|
7920
7920
|
}
|
|
7921
|
-
|
|
7921
|
+
ze(() => {
|
|
7922
7922
|
G();
|
|
7923
7923
|
}), ft(() => {
|
|
7924
7924
|
e.autogrow === !0 && X();
|
|
7925
|
-
}), Object.assign(
|
|
7925
|
+
}), Object.assign(R, {
|
|
7926
7926
|
innerValue: h,
|
|
7927
7927
|
fieldClass: c(
|
|
7928
7928
|
() => `q-${E.value === !0 ? "textarea" : "input"}` + (e.autogrow === !0 ? " q-textarea--autogrow" : "")
|
|
@@ -7954,16 +7954,16 @@ const Hn = de({
|
|
|
7954
7954
|
d("span", e.shadowText)
|
|
7955
7955
|
])
|
|
7956
7956
|
});
|
|
7957
|
-
const x =
|
|
7957
|
+
const x = na(R);
|
|
7958
7958
|
return Object.assign(a, {
|
|
7959
7959
|
focus: A,
|
|
7960
|
-
select:
|
|
7960
|
+
select: D,
|
|
7961
7961
|
getNativeElement: () => m.value
|
|
7962
7962
|
// deprecated
|
|
7963
7963
|
}), dt(a, "nativeEl", () => m.value), x;
|
|
7964
7964
|
}
|
|
7965
7965
|
});
|
|
7966
|
-
function
|
|
7966
|
+
function ro(e) {
|
|
7967
7967
|
if (e === !1)
|
|
7968
7968
|
return 0;
|
|
7969
7969
|
if (e === !0 || e === void 0)
|
|
@@ -7971,12 +7971,12 @@ function oo(e) {
|
|
|
7971
7971
|
const t = parseInt(e, 10);
|
|
7972
7972
|
return isNaN(t) ? 0 : t;
|
|
7973
7973
|
}
|
|
7974
|
-
const pr =
|
|
7974
|
+
const pr = Nn(
|
|
7975
7975
|
{
|
|
7976
7976
|
name: "close-popup",
|
|
7977
7977
|
beforeMount(e, { value: t }) {
|
|
7978
7978
|
const l = {
|
|
7979
|
-
depth:
|
|
7979
|
+
depth: ro(t),
|
|
7980
7980
|
handler(a) {
|
|
7981
7981
|
l.depth !== 0 && setTimeout(() => {
|
|
7982
7982
|
const n = Fi(e);
|
|
@@ -7990,7 +7990,7 @@ const pr = jn(
|
|
|
7990
7990
|
e.__qclosepopup = l, e.addEventListener("click", l.handler), e.addEventListener("keyup", l.handlerKey);
|
|
7991
7991
|
},
|
|
7992
7992
|
updated(e, { value: t, oldValue: l }) {
|
|
7993
|
-
t !== l && (e.__qclosepopup.depth =
|
|
7993
|
+
t !== l && (e.__qclosepopup.depth = ro(t));
|
|
7994
7994
|
},
|
|
7995
7995
|
beforeUnmount(e) {
|
|
7996
7996
|
const t = e.__qclosepopup;
|
|
@@ -8031,11 +8031,11 @@ function sc(e) {
|
|
|
8031
8031
|
};
|
|
8032
8032
|
}
|
|
8033
8033
|
const cs = /^\d{2}-\d{2}-\d{4}$/;
|
|
8034
|
-
function
|
|
8034
|
+
function cc(e) {
|
|
8035
8035
|
const t = e.getTimezoneOffset() * 6e4;
|
|
8036
8036
|
return new Date(e.getTime() + t);
|
|
8037
8037
|
}
|
|
8038
|
-
function
|
|
8038
|
+
function Pl(e) {
|
|
8039
8039
|
const t = /^\d{4}-\d{2}-\d{2}$/, l = /^\d{2}-\d{2}-\d{4}$/;
|
|
8040
8040
|
if (t.test(e)) return e;
|
|
8041
8041
|
if (l.test(e)) {
|
|
@@ -8045,24 +8045,29 @@ function cc(e) {
|
|
|
8045
8045
|
return console.warn("'Invalid date format. Expected DD-MM-YYYY' or 'YYYY-MM-DD' but got: " + e), "";
|
|
8046
8046
|
}
|
|
8047
8047
|
function Cr(e, t, l, a = []) {
|
|
8048
|
-
const n = new Date(e);
|
|
8048
|
+
const n = typeof e == "string" ? new Date(Pl(e)) : new Date(e);
|
|
8049
|
+
if (isNaN(n.getTime())) return !1;
|
|
8049
8050
|
if (t) {
|
|
8050
|
-
const o =
|
|
8051
|
+
const o = typeof t == "string" ? new Date(Pl(t)) : new Date(t);
|
|
8051
8052
|
if (n < o) return !1;
|
|
8052
8053
|
}
|
|
8053
8054
|
if (l) {
|
|
8054
|
-
const o =
|
|
8055
|
+
const o = typeof l == "string" ? new Date(Pl(l)) : new Date(l);
|
|
8055
8056
|
if (n > o) return !1;
|
|
8056
8057
|
}
|
|
8057
8058
|
return !a.some((o) => {
|
|
8058
|
-
if (typeof o == "string"
|
|
8059
|
-
const r = new Date(o);
|
|
8059
|
+
if (typeof o == "string") {
|
|
8060
|
+
const r = new Date(Pl(o));
|
|
8060
8061
|
return n.getFullYear() === r.getFullYear() && n.getMonth() === r.getMonth() && n.getDate() === r.getDate();
|
|
8061
8062
|
} else {
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8063
|
+
if (o instanceof Date)
|
|
8064
|
+
return n.getFullYear() === o.getFullYear() && n.getMonth() === o.getMonth() && n.getDate() === o.getDate();
|
|
8065
|
+
{
|
|
8066
|
+
const r = new Date(o.start_date);
|
|
8067
|
+
r.setDate(r.getDate() - 1);
|
|
8068
|
+
const i = new Date(o.end_date);
|
|
8069
|
+
return n >= r && n <= i;
|
|
8070
|
+
}
|
|
8066
8071
|
}
|
|
8067
8072
|
});
|
|
8068
8073
|
}
|
|
@@ -8119,9 +8124,10 @@ const il = {
|
|
|
8119
8124
|
},
|
|
8120
8125
|
emits: ["update:date"],
|
|
8121
8126
|
setup(e, { emit: t }) {
|
|
8122
|
-
const l = e, a = t, n = vo(), o = P(l.date), r = P(l.date), i = c(
|
|
8123
|
-
|
|
8124
|
-
|
|
8127
|
+
const l = e, a = t, n = vo(), o = P(l.date), r = P(l.date), i = c(() => (u) => {
|
|
8128
|
+
const m = u.replace(/\//g, "-");
|
|
8129
|
+
return Cr(m, l.minDate, l.maxDate, l.datesDisabled);
|
|
8130
|
+
}), s = (u) => {
|
|
8125
8131
|
o.value = u, r.value = u, a("update:date", u);
|
|
8126
8132
|
}, v = (u) => {
|
|
8127
8133
|
typeof u == "string" && (o.value = u, r.value = u, a("update:date", u));
|
|
@@ -8132,7 +8138,7 @@ const il = {
|
|
|
8132
8138
|
u !== o.value && (o.value = u, r.value = u);
|
|
8133
8139
|
}
|
|
8134
8140
|
), (u, m) => (ge(), Je("div", fs, [
|
|
8135
|
-
he(
|
|
8141
|
+
he(In, Mt(Kt(n), {
|
|
8136
8142
|
class: "full-width",
|
|
8137
8143
|
"model-value": r.value,
|
|
8138
8144
|
mask: "##-##-####",
|
|
@@ -8188,7 +8194,7 @@ const il = {
|
|
|
8188
8194
|
}, 16, ["model-value", "label", "rules", "disable", "outlined", "placeholder"])
|
|
8189
8195
|
]));
|
|
8190
8196
|
}
|
|
8191
|
-
}), dc = /* @__PURE__ */
|
|
8197
|
+
}), dc = /* @__PURE__ */ Gl(ms, [["__scopeId", "data-v-3ecf00f2"]]), hs = { class: "row" }, gs = { class: "row no-wrap items-center" }, bs = { class: "row items-center justify-end" }, ys = {
|
|
8192
8198
|
key: 0,
|
|
8193
8199
|
class: "row items-center text-warning text-caption"
|
|
8194
8200
|
}, ws = { class: "row items-center justify-end q-ml-sm" }, fc = /* @__PURE__ */ vt({
|
|
@@ -8220,9 +8226,10 @@ const il = {
|
|
|
8220
8226
|
}), r = c(() => `from-date-${a.idCy}`), i = c(() => `to-date-${a.idCy}`), s = c(() => [
|
|
8221
8227
|
...a.required ? [(y) => !!y || a.requiredErrorMessage] : [],
|
|
8222
8228
|
...a.rules
|
|
8223
|
-
]), v = c(
|
|
8224
|
-
|
|
8225
|
-
|
|
8229
|
+
]), v = c(() => (y) => {
|
|
8230
|
+
const q = y.replace(/\//g, "-");
|
|
8231
|
+
return Cr(q, a.minDate, a.maxDate, a.datesDisabled);
|
|
8232
|
+
}), u = (y) => {
|
|
8226
8233
|
il.handleInput(y, (q) => {
|
|
8227
8234
|
o.value = il.validateAndUpdate(o.value, q, !0);
|
|
8228
8235
|
});
|
|
@@ -8255,7 +8262,7 @@ const il = {
|
|
|
8255
8262
|
resetDate: h
|
|
8256
8263
|
}), (y, q) => (ge(), Je("div", hs, [
|
|
8257
8264
|
Ge("div", gs, [
|
|
8258
|
-
he(
|
|
8265
|
+
he(In, Mt(y.$attrs, {
|
|
8259
8266
|
"data-cy": r.value,
|
|
8260
8267
|
"model-value": o.value.from,
|
|
8261
8268
|
mask: "##-##-####",
|
|
@@ -8265,7 +8272,7 @@ const il = {
|
|
|
8265
8272
|
disable: y.disabled,
|
|
8266
8273
|
"hide-bottom-space": ""
|
|
8267
8274
|
}), null, 16, ["data-cy", "model-value", "label", "rules", "disable"]),
|
|
8268
|
-
he(
|
|
8275
|
+
he(In, Mt(y.$attrs, {
|
|
8269
8276
|
"model-value": o.value.to,
|
|
8270
8277
|
mask: "##-##-####",
|
|
8271
8278
|
label: y.labelEnd,
|
|
@@ -8337,7 +8344,7 @@ const il = {
|
|
|
8337
8344
|
])
|
|
8338
8345
|
]));
|
|
8339
8346
|
}
|
|
8340
|
-
}),
|
|
8347
|
+
}), jl = de({
|
|
8341
8348
|
name: "QTh",
|
|
8342
8349
|
props: {
|
|
8343
8350
|
props: Object,
|
|
@@ -8353,7 +8360,7 @@ const il = {
|
|
|
8353
8360
|
return d("th", {
|
|
8354
8361
|
class: e.autoWidth === !0 ? "q-table--col-auto-width" : "",
|
|
8355
8362
|
onClick: o
|
|
8356
|
-
},
|
|
8363
|
+
}, De(t.default));
|
|
8357
8364
|
let r, i;
|
|
8358
8365
|
const s = a.vnode.key;
|
|
8359
8366
|
if (s) {
|
|
@@ -8362,14 +8369,14 @@ const il = {
|
|
|
8362
8369
|
r = e.props.col;
|
|
8363
8370
|
if (r.sortable === !0) {
|
|
8364
8371
|
const u = r.align === "right" ? "unshift" : "push";
|
|
8365
|
-
i =
|
|
8372
|
+
i = Yn(t.default, []), i[u](
|
|
8366
8373
|
d($e, {
|
|
8367
8374
|
class: r.__iconClass,
|
|
8368
8375
|
name: n.iconSet.table.arrowUp
|
|
8369
8376
|
})
|
|
8370
8377
|
);
|
|
8371
8378
|
} else
|
|
8372
|
-
i =
|
|
8379
|
+
i = De(t.default);
|
|
8373
8380
|
const v = {
|
|
8374
8381
|
class: r.__thClass + (e.autoWidth === !0 ? " q-table--col-auto-width" : ""),
|
|
8375
8382
|
style: r.headerStyle,
|
|
@@ -8380,7 +8387,7 @@ const il = {
|
|
|
8380
8387
|
return d("th", v, i);
|
|
8381
8388
|
};
|
|
8382
8389
|
}
|
|
8383
|
-
}),
|
|
8390
|
+
}), xn = de({
|
|
8384
8391
|
name: "QTr",
|
|
8385
8392
|
props: {
|
|
8386
8393
|
props: Object,
|
|
@@ -8395,7 +8402,7 @@ const il = {
|
|
|
8395
8402
|
return d("tr", {
|
|
8396
8403
|
style: (a = e.props) == null ? void 0 : a.__trStyle,
|
|
8397
8404
|
class: l.value
|
|
8398
|
-
},
|
|
8405
|
+
}, De(t.default));
|
|
8399
8406
|
};
|
|
8400
8407
|
}
|
|
8401
8408
|
}), Ss = de({
|
|
@@ -8411,14 +8418,14 @@ const il = {
|
|
|
8411
8418
|
);
|
|
8412
8419
|
return () => {
|
|
8413
8420
|
if (e.props === void 0)
|
|
8414
|
-
return d("td", { class: a.value },
|
|
8421
|
+
return d("td", { class: a.value }, De(t.default));
|
|
8415
8422
|
const n = l.vnode.key, o = (e.props.colsMap !== void 0 ? e.props.colsMap[n] : null) || e.props.col;
|
|
8416
8423
|
if (o === void 0) return;
|
|
8417
8424
|
const { row: r } = e.props;
|
|
8418
8425
|
return d("td", {
|
|
8419
8426
|
class: a.value + o.__tdClass(r),
|
|
8420
8427
|
style: o.__tdStyle(r)
|
|
8421
|
-
},
|
|
8428
|
+
}, De(t.default));
|
|
8422
8429
|
};
|
|
8423
8430
|
}
|
|
8424
8431
|
}), ps = ["horizontal", "vertical", "cell", "none"], Cs = de({
|
|
@@ -8443,7 +8450,7 @@ const il = {
|
|
|
8443
8450
|
return () => d("div", {
|
|
8444
8451
|
class: n.value
|
|
8445
8452
|
}, [
|
|
8446
|
-
d("table", { class: "q-table" },
|
|
8453
|
+
d("table", { class: "q-table" }, De(t.default))
|
|
8447
8454
|
]);
|
|
8448
8455
|
}
|
|
8449
8456
|
});
|
|
@@ -8458,7 +8465,7 @@ const ks = {
|
|
|
8458
8465
|
}, _s = ["list", "table", "__qtable"], qs = de({
|
|
8459
8466
|
name: "QVirtualScroll",
|
|
8460
8467
|
props: {
|
|
8461
|
-
...
|
|
8468
|
+
...An,
|
|
8462
8469
|
type: {
|
|
8463
8470
|
type: String,
|
|
8464
8471
|
default: "list",
|
|
@@ -8470,7 +8477,7 @@ const ks = {
|
|
|
8470
8477
|
},
|
|
8471
8478
|
itemsFn: Function,
|
|
8472
8479
|
itemsSize: Number,
|
|
8473
|
-
scrollTarget:
|
|
8480
|
+
scrollTarget: Wn
|
|
8474
8481
|
},
|
|
8475
8482
|
setup(e, { slots: t, attrs: l }) {
|
|
8476
8483
|
let a;
|
|
@@ -8506,7 +8513,7 @@ const ks = {
|
|
|
8506
8513
|
return a;
|
|
8507
8514
|
}
|
|
8508
8515
|
function q() {
|
|
8509
|
-
a =
|
|
8516
|
+
a = Xn(h(), e.scrollTarget), a.addEventListener("scroll", v, Re.passive);
|
|
8510
8517
|
}
|
|
8511
8518
|
function g() {
|
|
8512
8519
|
a !== void 0 && (a.removeEventListener("scroll", v, Re.passive), a = void 0);
|
|
@@ -8518,15 +8525,15 @@ const ks = {
|
|
|
8518
8525
|
);
|
|
8519
8526
|
return t.before !== void 0 && (M = t.before().concat(M)), ot(t.after, M);
|
|
8520
8527
|
}
|
|
8521
|
-
return
|
|
8528
|
+
return jn(() => {
|
|
8522
8529
|
i();
|
|
8523
8530
|
}), ft(() => {
|
|
8524
8531
|
q();
|
|
8525
|
-
}),
|
|
8532
|
+
}), Zl(() => {
|
|
8526
8533
|
q();
|
|
8527
8534
|
}), hl(() => {
|
|
8528
8535
|
g();
|
|
8529
|
-
}),
|
|
8536
|
+
}), ze(() => {
|
|
8530
8537
|
g();
|
|
8531
8538
|
}), () => {
|
|
8532
8539
|
if (t.default === void 0) {
|
|
@@ -8624,11 +8631,11 @@ const Es = {
|
|
|
8624
8631
|
fullscreen: Boolean,
|
|
8625
8632
|
noRouteFullscreenExit: Boolean
|
|
8626
8633
|
}, $s = ["update:fullscreen", "fullscreen"];
|
|
8627
|
-
function
|
|
8634
|
+
function Ds() {
|
|
8628
8635
|
const e = fe(), { props: t, emit: l, proxy: a } = e;
|
|
8629
8636
|
let n, o;
|
|
8630
8637
|
const r = P(!1);
|
|
8631
|
-
|
|
8638
|
+
Qn(e) === !0 && J(() => a.$route.fullPath, () => {
|
|
8632
8639
|
t.noRouteFullscreenExit !== !0 && v();
|
|
8633
8640
|
}), J(() => t.fullscreen, (u) => {
|
|
8634
8641
|
r.value !== u && i();
|
|
@@ -8646,11 +8653,11 @@ function zs() {
|
|
|
8646
8653
|
a.$el.scrollIntoView();
|
|
8647
8654
|
})));
|
|
8648
8655
|
}
|
|
8649
|
-
return
|
|
8656
|
+
return jn(() => {
|
|
8650
8657
|
n = document.createElement("span");
|
|
8651
8658
|
}), ft(() => {
|
|
8652
8659
|
t.fullscreen === !0 && s();
|
|
8653
|
-
}),
|
|
8660
|
+
}), ze(v), Object.assign(a, {
|
|
8654
8661
|
toggleFullscreen: i,
|
|
8655
8662
|
setFullscreen: s,
|
|
8656
8663
|
exitFullscreen: v
|
|
@@ -8659,7 +8666,7 @@ function zs() {
|
|
|
8659
8666
|
toggleFullscreen: i
|
|
8660
8667
|
};
|
|
8661
8668
|
}
|
|
8662
|
-
function
|
|
8669
|
+
function zs(e, t) {
|
|
8663
8670
|
return new Date(e) - new Date(t);
|
|
8664
8671
|
}
|
|
8665
8672
|
const Ts = {
|
|
@@ -8682,7 +8689,7 @@ function Vs(e, t, l, a) {
|
|
|
8682
8689
|
const m = v === !0 ? -1 : 1, S = typeof u.field == "function" ? (h) => u.field(h) : (h) => h[u.field];
|
|
8683
8690
|
return i.sort((h, y) => {
|
|
8684
8691
|
let q = S(h), g = S(y);
|
|
8685
|
-
return u.rawSort !== void 0 ? u.rawSort(q, g, h, y) * m : q == null ? -1 * m : g == null ? 1 * m : u.sort !== void 0 ? u.sort(q, g, h, y) * m :
|
|
8692
|
+
return u.rawSort !== void 0 ? u.rawSort(q, g, h, y) * m : q == null ? -1 * m : g == null ? 1 * m : u.sort !== void 0 ? u.sort(q, g, h, y) * m : Ln(q) === !0 && Ln(g) === !0 ? (q - g) * m : Xa(q) === !0 && Xa(g) === !0 ? zs(q, g) * m : typeof q == "boolean" && typeof g == "boolean" ? (q - g) * m : ([q, g] = [q, g].map((F) => (F + "").toLocaleString().toLowerCase()), q < g ? -1 * m : q === g ? 0 : m);
|
|
8686
8693
|
});
|
|
8687
8694
|
});
|
|
8688
8695
|
function r(i) {
|
|
@@ -8809,8 +8816,8 @@ function Ls(e, t, l, a, n, o) {
|
|
|
8809
8816
|
})));
|
|
8810
8817
|
J(h, (_, b) => {
|
|
8811
8818
|
if (_ === b) return;
|
|
8812
|
-
const
|
|
8813
|
-
_ && !
|
|
8819
|
+
const R = l.value.page;
|
|
8820
|
+
_ && !R ? n({ page: 1 }) : _ < R && n({ page: _ });
|
|
8814
8821
|
});
|
|
8815
8822
|
function g() {
|
|
8816
8823
|
n({ page: 1 });
|
|
@@ -8929,7 +8936,7 @@ function Us(e, t, l) {
|
|
|
8929
8936
|
name: s,
|
|
8930
8937
|
label: s.toUpperCase(),
|
|
8931
8938
|
field: s,
|
|
8932
|
-
align:
|
|
8939
|
+
align: Ln(i[s]) ? "right" : "left",
|
|
8933
8940
|
sortable: !0
|
|
8934
8941
|
})) : [];
|
|
8935
8942
|
}), n = c(() => {
|
|
@@ -8958,7 +8965,7 @@ function Us(e, t, l) {
|
|
|
8958
8965
|
computedColspan: r
|
|
8959
8966
|
};
|
|
8960
8967
|
}
|
|
8961
|
-
const
|
|
8968
|
+
const Al = "q-table__bottom row items-center", _r = {};
|
|
8962
8969
|
or.forEach((e) => {
|
|
8963
8970
|
_r[e] = {};
|
|
8964
8971
|
});
|
|
@@ -9043,7 +9050,7 @@ const Ks = de({
|
|
|
9043
9050
|
...Hs
|
|
9044
9051
|
],
|
|
9045
9052
|
setup(e, { slots: t, emit: l }) {
|
|
9046
|
-
const a = fe(), { proxy: { $q: n } } = a, o = it(e, n), { inFullscreen: r, toggleFullscreen: i } =
|
|
9053
|
+
const a = fe(), { proxy: { $q: n } } = a, o = it(e, n), { inFullscreen: r, toggleFullscreen: i } = Ds(), s = c(() => typeof e.rowKey == "function" ? e.rowKey : ($) => $[e.rowKey]), v = P(null), u = P(null), m = c(() => e.grid !== !0 && e.virtualScroll === !0), S = c(
|
|
9047
9054
|
() => " q-table__card" + (o.value === !0 ? " q-table__card--dark q-dark" : "") + (e.square === !0 ? " q-table--square" : "") + (e.flat === !0 ? " q-table--flat" : "") + (e.bordered === !0 ? " q-table--bordered" : "")
|
|
9048
9055
|
), h = c(
|
|
9049
9056
|
() => `q-table__container q-table--${e.separator}-separator column no-wrap` + (e.grid === !0 ? " q-table--grid" : S.value) + (o.value === !0 ? " q-table--dark" : "") + (e.dense === !0 ? " q-table--dense" : "") + (e.wrapCells === !1 ? " q-table--no-wrap" : "") + (r.value === !0 ? " fullscreen scroll" : "")
|
|
@@ -9063,7 +9070,7 @@ const Ks = de({
|
|
|
9063
9070
|
isServerSide: F,
|
|
9064
9071
|
requestServerInteraction: M,
|
|
9065
9072
|
setPagination: V
|
|
9066
|
-
} = As(a, Ye), { computedFilterMethod: _ } = Rs(e, V), { isRowExpanded: b, setExpanded:
|
|
9073
|
+
} = As(a, Ye), { computedFilterMethod: _ } = Rs(e, V), { isRowExpanded: b, setExpanded: R, updateExpanded: E } = Ys(e, l), L = c(() => {
|
|
9067
9074
|
let $ = e.rows;
|
|
9068
9075
|
if (F.value === !0 || $.length === 0)
|
|
9069
9076
|
return $;
|
|
@@ -9081,10 +9088,10 @@ const Ks = de({
|
|
|
9081
9088
|
return Q !== 0 && (ne.value === 0 && e.rows !== $ ? $.length > ye.value && ($ = $.slice(0, ye.value)) : $ = $.slice(ne.value, ye.value)), $;
|
|
9082
9089
|
}), {
|
|
9083
9090
|
hasSelectionMode: A,
|
|
9084
|
-
singleSelection:
|
|
9091
|
+
singleSelection: D,
|
|
9085
9092
|
multipleSelection: U,
|
|
9086
9093
|
allRowsSelected: C,
|
|
9087
|
-
someRowsSelected:
|
|
9094
|
+
someRowsSelected: O,
|
|
9088
9095
|
rowsSelectedNumber: H,
|
|
9089
9096
|
isRowSelected: X,
|
|
9090
9097
|
clearSelection: j,
|
|
@@ -9183,23 +9190,23 @@ const Ks = de({
|
|
|
9183
9190
|
__trClass: se ? "selected" : ""
|
|
9184
9191
|
};
|
|
9185
9192
|
if (e.tableRowStyleFn !== void 0 && (w.__trStyle = e.tableRowStyleFn($)), e.tableRowClassFn !== void 0) {
|
|
9186
|
-
const
|
|
9187
|
-
|
|
9193
|
+
const z = e.tableRowClassFn($);
|
|
9194
|
+
z && (w.__trClass = `${z} ${w.__trClass}`);
|
|
9188
9195
|
}
|
|
9189
9196
|
return Q(
|
|
9190
9197
|
bt(w)
|
|
9191
9198
|
);
|
|
9192
9199
|
}
|
|
9193
9200
|
const _e = t["body-cell"], pe = x.value.map((w) => {
|
|
9194
|
-
const
|
|
9201
|
+
const z = t[`body-cell-${w.name}`], N = z !== void 0 ? z : _e;
|
|
9195
9202
|
return N !== void 0 ? N(yl({ key: oe, row: $, pageIndex: ie, col: w })) : d("td", {
|
|
9196
9203
|
class: w.__tdClass($),
|
|
9197
9204
|
style: w.__tdStyle($)
|
|
9198
9205
|
}, Ye(w, $));
|
|
9199
9206
|
});
|
|
9200
9207
|
if (A.value === !0) {
|
|
9201
|
-
const w = t["body-selection"],
|
|
9202
|
-
d(
|
|
9208
|
+
const w = t["body-selection"], z = w !== void 0 ? w(At({ key: oe, row: $, pageIndex: ie })) : [
|
|
9209
|
+
d(Fl, {
|
|
9203
9210
|
modelValue: se,
|
|
9204
9211
|
color: e.color,
|
|
9205
9212
|
dark: o.value,
|
|
@@ -9210,7 +9217,7 @@ const Ks = de({
|
|
|
9210
9217
|
})
|
|
9211
9218
|
];
|
|
9212
9219
|
pe.unshift(
|
|
9213
|
-
d("td", { class: "q-table--col-auto-width" },
|
|
9220
|
+
d("td", { class: "q-table--col-auto-width" }, z)
|
|
9214
9221
|
);
|
|
9215
9222
|
}
|
|
9216
9223
|
const f = { key: oe, class: { selected: se } };
|
|
@@ -9309,7 +9316,7 @@ const Ks = de({
|
|
|
9309
9316
|
)), pe.length !== 0)
|
|
9310
9317
|
return d("div", { class: _e }, pe);
|
|
9311
9318
|
}
|
|
9312
|
-
const yt = c(() =>
|
|
9319
|
+
const yt = c(() => O.value === !0 ? null : C.value);
|
|
9313
9320
|
function Lt() {
|
|
9314
9321
|
const $ = Jt();
|
|
9315
9322
|
return e.loading === !0 && t.loading === void 0 && $.push(
|
|
@@ -9329,18 +9336,18 @@ const Ks = de({
|
|
|
9329
9336
|
).slice();
|
|
9330
9337
|
const ie = x.value.map((oe) => {
|
|
9331
9338
|
const se = t[`header-cell-${oe.name}`], _e = se !== void 0 ? se : Q, pe = Et({ col: oe });
|
|
9332
|
-
return _e !== void 0 ? _e(pe) : d(
|
|
9339
|
+
return _e !== void 0 ? _e(pe) : d(jl, {
|
|
9333
9340
|
key: oe.name,
|
|
9334
9341
|
props: pe
|
|
9335
9342
|
}, () => oe.label);
|
|
9336
9343
|
});
|
|
9337
|
-
if (
|
|
9344
|
+
if (D.value === !0 && e.grid !== !0)
|
|
9338
9345
|
ie.unshift(
|
|
9339
9346
|
d("th", { class: "q-table--col-auto-width" }, " ")
|
|
9340
9347
|
);
|
|
9341
9348
|
else if (U.value === !0) {
|
|
9342
9349
|
const oe = t["header-selection"], se = oe !== void 0 ? oe(Et({})) : [
|
|
9343
|
-
d(
|
|
9350
|
+
d(Fl, {
|
|
9344
9351
|
color: e.color,
|
|
9345
9352
|
modelValue: yt.value,
|
|
9346
9353
|
dark: o.value,
|
|
@@ -9375,7 +9382,7 @@ const Ks = de({
|
|
|
9375
9382
|
), $;
|
|
9376
9383
|
}
|
|
9377
9384
|
function tt($) {
|
|
9378
|
-
|
|
9385
|
+
O.value === !0 && ($ = !1), G(
|
|
9379
9386
|
B.value.map(s.value),
|
|
9380
9387
|
B.value,
|
|
9381
9388
|
$
|
|
@@ -9401,11 +9408,11 @@ const Ks = de({
|
|
|
9401
9408
|
}),
|
|
9402
9409
|
ie
|
|
9403
9410
|
];
|
|
9404
|
-
return d("div", { class:
|
|
9411
|
+
return d("div", { class: Al + " q-table__bottom--nodata" }, se);
|
|
9405
9412
|
}
|
|
9406
9413
|
const $ = t.bottom;
|
|
9407
9414
|
if ($ !== void 0)
|
|
9408
|
-
return d("div", { class:
|
|
9415
|
+
return d("div", { class: Al }, [$(Xe.value)]);
|
|
9409
9416
|
const Q = e.hideSelectedBanner !== !0 && A.value === !0 && H.value > 0 ? [
|
|
9410
9417
|
d("div", { class: "q-table__control" }, [
|
|
9411
9418
|
d("div", [
|
|
@@ -9415,10 +9422,10 @@ const Ks = de({
|
|
|
9415
9422
|
] : [];
|
|
9416
9423
|
if (e.hidePagination !== !0)
|
|
9417
9424
|
return d("div", {
|
|
9418
|
-
class:
|
|
9425
|
+
class: Al + " justify-end"
|
|
9419
9426
|
}, Gt(Q));
|
|
9420
9427
|
if (Q.length !== 0)
|
|
9421
|
-
return d("div", { class:
|
|
9428
|
+
return d("div", { class: Al }, Q);
|
|
9422
9429
|
}
|
|
9423
9430
|
function $t($) {
|
|
9424
9431
|
V({
|
|
@@ -9436,7 +9443,7 @@ const Ks = de({
|
|
|
9436
9443
|
d("span", { class: "q-table__bottom-item" }, [
|
|
9437
9444
|
e.rowsPerPageLabel || n.lang.table.recordsPerPage
|
|
9438
9445
|
]),
|
|
9439
|
-
d(
|
|
9446
|
+
d(aa, {
|
|
9440
9447
|
class: "q-table__select inline q-table__bottom-item",
|
|
9441
9448
|
color: e.color,
|
|
9442
9449
|
modelValue: ie,
|
|
@@ -9522,7 +9529,7 @@ const Ks = de({
|
|
|
9522
9529
|
);
|
|
9523
9530
|
if (A.value === !0) {
|
|
9524
9531
|
const se = t["body-selection"], _e = se !== void 0 ? se(Q) : [
|
|
9525
|
-
d(
|
|
9532
|
+
d(Fl, {
|
|
9526
9533
|
modelValue: Q.selected,
|
|
9527
9534
|
color: e.color,
|
|
9528
9535
|
dark: o.value,
|
|
@@ -9582,12 +9589,12 @@ const Ks = de({
|
|
|
9582
9589
|
isRowSelected: X,
|
|
9583
9590
|
clearSelection: j,
|
|
9584
9591
|
isRowExpanded: b,
|
|
9585
|
-
setExpanded:
|
|
9592
|
+
setExpanded: R,
|
|
9586
9593
|
sort: te,
|
|
9587
9594
|
resetVirtualScroll: Ct,
|
|
9588
9595
|
scrollTo: je,
|
|
9589
9596
|
getCellValue: Ye
|
|
9590
|
-
}),
|
|
9597
|
+
}), zr(a.proxy, {
|
|
9591
9598
|
filteredSortedRows: () => L.value,
|
|
9592
9599
|
computedRows: () => B.value,
|
|
9593
9600
|
computedRowsNumber: () => Oe.value
|
|
@@ -9606,13 +9613,13 @@ const Ks = de({
|
|
|
9606
9613
|
}
|
|
9607
9614
|
}), Ws = {
|
|
9608
9615
|
shouldShowExpandButton: () => !0,
|
|
9609
|
-
shouldShowMoveButton: (e) => e
|
|
9616
|
+
shouldShowMoveButton: (e) => e === "prm",
|
|
9610
9617
|
shouldShowArchiveButton: (e) => !!e.archived,
|
|
9611
9618
|
shouldShowUnarchiveButton: (e) => {
|
|
9612
9619
|
var t;
|
|
9613
9620
|
return !e.archived && !((t = e.portfolios) != null && t.length) && !!e.portfolios;
|
|
9614
9621
|
},
|
|
9615
|
-
shouldShowCancelButton: (e) =>
|
|
9622
|
+
shouldShowCancelButton: (e, t) => t === "uuid" && e.affaire_statut !== "CANCELLING" && e.affaire_statut !== "ANNUL",
|
|
9616
9623
|
isCancelButtonDisabled: (e) => e.affaire_statut !== "COURS"
|
|
9617
9624
|
};
|
|
9618
9625
|
function co(e, t) {
|
|
@@ -9643,7 +9650,7 @@ const Xs = {
|
|
|
9643
9650
|
},
|
|
9644
9651
|
emits: ["update:pagination"],
|
|
9645
9652
|
setup(e, { emit: t }) {
|
|
9646
|
-
const l = e, a = t, n = P([]), o =
|
|
9653
|
+
const l = e, a = t, n = P([]), o = Dr(), r = c(() => !!o.expanded), i = c({
|
|
9647
9654
|
get() {
|
|
9648
9655
|
return l.pagination;
|
|
9649
9656
|
},
|
|
@@ -9655,14 +9662,14 @@ const Xs = {
|
|
|
9655
9662
|
...Ws,
|
|
9656
9663
|
...l.conditionals
|
|
9657
9664
|
})
|
|
9658
|
-
), v = (b) => s.value.shouldShowExpandButton(b), u = (b) => s.value.shouldShowMoveButton(b), m = (b) => s.value.shouldShowArchiveButton(b), S = (b) => s.value.shouldShowUnarchiveButton(b), h = (b) => s.value.shouldShowCancelButton(b), y = (b) => s.value.isCancelButtonDisabled(b), q = (b) => n.value.includes(b[l.rowKey]);
|
|
9659
|
-
function g(b,
|
|
9665
|
+
), v = (b) => s.value.shouldShowExpandButton(b), u = (b) => s.value.shouldShowMoveButton(b), m = (b) => s.value.shouldShowArchiveButton(b), S = (b) => s.value.shouldShowUnarchiveButton(b), h = (b, R) => s.value.shouldShowCancelButton(b, R), y = (b) => s.value.isCancelButtonDisabled(b), q = (b) => n.value.includes(b[l.rowKey]);
|
|
9666
|
+
async function g(b, R = !1) {
|
|
9660
9667
|
const E = b[l.rowKey];
|
|
9661
|
-
if (q(b) ||
|
|
9668
|
+
if (q(b) || R)
|
|
9662
9669
|
n.value = n.value.filter((L) => L !== E);
|
|
9663
9670
|
else if (n.value = [E], l.rowKey === "uuid" && l.services.fetchDetails)
|
|
9664
9671
|
try {
|
|
9665
|
-
b.details = l.services.fetchDetails(b);
|
|
9672
|
+
b.details = await l.services.fetchDetails(b);
|
|
9666
9673
|
} catch (L) {
|
|
9667
9674
|
console.error("Error fetching details:", L);
|
|
9668
9675
|
}
|
|
@@ -9679,7 +9686,7 @@ const Xs = {
|
|
|
9679
9686
|
function _(b) {
|
|
9680
9687
|
l.services.redirectToPrm && l.services.redirectToPrm(b);
|
|
9681
9688
|
}
|
|
9682
|
-
return (b,
|
|
9689
|
+
return (b, R) => (ge(), Ae(Ks, {
|
|
9683
9690
|
columns: b.columns,
|
|
9684
9691
|
rows: b.results,
|
|
9685
9692
|
filter: b.filter,
|
|
@@ -9687,18 +9694,18 @@ const Xs = {
|
|
|
9687
9694
|
"binary-state-sort": "",
|
|
9688
9695
|
onRequest: F,
|
|
9689
9696
|
pagination: i.value,
|
|
9690
|
-
"onUpdate:pagination":
|
|
9697
|
+
"onUpdate:pagination": R[0] || (R[0] = (E) => i.value = E),
|
|
9691
9698
|
"rows-per-page-options": i.value.rowsPerPageOptions,
|
|
9692
9699
|
loading: b.loading
|
|
9693
9700
|
}, {
|
|
9694
9701
|
header: me((E) => [
|
|
9695
|
-
he(
|
|
9702
|
+
he(xn, { props: E }, {
|
|
9696
9703
|
default: me(() => [
|
|
9697
|
-
r.value ? (ge(), Ae(
|
|
9704
|
+
r.value ? (ge(), Ae(jl, {
|
|
9698
9705
|
key: 0,
|
|
9699
9706
|
"auto-width": ""
|
|
9700
9707
|
})) : lt("", !0),
|
|
9701
|
-
(ge(!0), Je(
|
|
9708
|
+
(ge(!0), Je(Nl, null, Yl(E.cols, (L) => (ge(), Ae(jl, {
|
|
9702
9709
|
key: L.name,
|
|
9703
9710
|
props: E
|
|
9704
9711
|
}, {
|
|
@@ -9707,8 +9714,8 @@ const Xs = {
|
|
|
9707
9714
|
]),
|
|
9708
9715
|
_: 2
|
|
9709
9716
|
}, 1032, ["props"]))), 128)),
|
|
9710
|
-
b.showActionsColumn ? (ge(), Ae(
|
|
9711
|
-
default: me(() =>
|
|
9717
|
+
b.showActionsColumn ? (ge(), Ae(jl, { key: 1 }, {
|
|
9718
|
+
default: me(() => R[1] || (R[1] = [
|
|
9712
9719
|
$l("Actions")
|
|
9713
9720
|
])),
|
|
9714
9721
|
_: 1,
|
|
@@ -9719,7 +9726,7 @@ const Xs = {
|
|
|
9719
9726
|
}, 1032, ["props"])
|
|
9720
9727
|
]),
|
|
9721
9728
|
body: me((E) => [
|
|
9722
|
-
he(
|
|
9729
|
+
he(xn, {
|
|
9723
9730
|
"data-cy": `row-${E.row[b.rowKey]}`,
|
|
9724
9731
|
props: E,
|
|
9725
9732
|
onDblclick: (L) => {
|
|
@@ -9747,7 +9754,7 @@ const Xs = {
|
|
|
9747
9754
|
}, null, 8, ["data-cy", "onClick", "icon"])) : lt("", !0)
|
|
9748
9755
|
])
|
|
9749
9756
|
])) : lt("", !0),
|
|
9750
|
-
(ge(!0), Je(
|
|
9757
|
+
(ge(!0), Je(Nl, null, Yl(E.cols, (L) => (ge(), Je("td", {
|
|
9751
9758
|
key: L.name
|
|
9752
9759
|
}, [
|
|
9753
9760
|
qt(b.$slots, "body-cell", {
|
|
@@ -9798,7 +9805,7 @@ const Xs = {
|
|
|
9798
9805
|
return (L = b.onCancel) == null ? void 0 : L.call(b, E.row);
|
|
9799
9806
|
}
|
|
9800
9807
|
}, () => [
|
|
9801
|
-
u(
|
|
9808
|
+
u(b.rowKey) ? (ge(), Ae($e, {
|
|
9802
9809
|
key: 0,
|
|
9803
9810
|
class: "cursor-pointer q-mr-sm",
|
|
9804
9811
|
name: "mdi-swap-horizontal",
|
|
@@ -9839,7 +9846,7 @@ const Xs = {
|
|
|
9839
9846
|
},
|
|
9840
9847
|
"data-cy": "details-button"
|
|
9841
9848
|
}, null, 8, ["class", "color", "onClick"]),
|
|
9842
|
-
h(E.row) ? (ge(), Ae(Le, {
|
|
9849
|
+
h(E.row, b.rowKey) ? (ge(), Ae(Le, {
|
|
9843
9850
|
key: 3,
|
|
9844
9851
|
onClick: (L) => {
|
|
9845
9852
|
var T;
|
|
@@ -9850,7 +9857,7 @@ const Xs = {
|
|
|
9850
9857
|
disabled: y(E.row),
|
|
9851
9858
|
"data-cy": `cancel-button-affaire-${E.row.uuid}`
|
|
9852
9859
|
}, {
|
|
9853
|
-
default: me(() =>
|
|
9860
|
+
default: me(() => R[2] || (R[2] = [
|
|
9854
9861
|
$l(" Annuler ")
|
|
9855
9862
|
])),
|
|
9856
9863
|
_: 2,
|
|
@@ -9863,7 +9870,7 @@ const Xs = {
|
|
|
9863
9870
|
]),
|
|
9864
9871
|
_: 2
|
|
9865
9872
|
}, 1032, ["data-cy", "props", "onDblclick", "class"]),
|
|
9866
|
-
r.value && q(E.row) ? (ge(), Ae(
|
|
9873
|
+
r.value && q(E.row) ? (ge(), Ae(xn, { key: 0 }, {
|
|
9867
9874
|
default: me(() => [
|
|
9868
9875
|
Ge("td", Gs, [
|
|
9869
9876
|
qt(b.$slots, "expanded", {
|
|
@@ -9893,8 +9900,8 @@ export {
|
|
|
9893
9900
|
ic as UserAvatar,
|
|
9894
9901
|
sc as createBreadcrumb,
|
|
9895
9902
|
il as dateRangeUtils,
|
|
9896
|
-
|
|
9903
|
+
cc as dateWithoutTimezone,
|
|
9897
9904
|
ds as defaultLocale,
|
|
9898
|
-
|
|
9905
|
+
Pl as formatDate,
|
|
9899
9906
|
Cr as isDateSelectable
|
|
9900
9907
|
};
|