@validol4ik/uikit 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +845 -808
- package/package.json +1 -1
package/dist/uikit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as d, markRaw as fn, defineComponent as
|
|
1
|
+
import { computed as d, markRaw as fn, defineComponent as ht, h as g, withDirectives as vn, getCurrentInstance as le, unref as Pe, ref as A, onBeforeUnmount as fe, Transition as mt, openBlock as ue, createBlock as ft, normalizeClass as Be, withCtx as xe, createElementBlock as he, createCommentVNode as Ce, renderSlot as yo, Fragment as ct, createTextVNode as $t, toDisplayString as Je, normalizeStyle as wo, defineAsyncComponent as mn, reactive as So, mergeProps as gn, withModifiers as hn, toRaw as Ye, onMounted as nt, watch as J, onBeforeUpdate as pn, inject as ko, nextTick as ce, onDeactivated as zt, onActivated as bn, onUnmounted as xo, Teleport as Co, onBeforeMount as qo, onUpdated as _o, createElementVNode as Ct, createVNode as at } from "vue";
|
|
2
2
|
const yn = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
@@ -16,10 +16,10 @@ const yn = {
|
|
|
16
16
|
md: 32,
|
|
17
17
|
lg: 38,
|
|
18
18
|
xl: 46
|
|
19
|
-
},
|
|
19
|
+
}, It = {
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function Ft(e, t = nl) {
|
|
23
23
|
return d(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
24
24
|
}
|
|
25
25
|
function dl(e, t, l, n) {
|
|
@@ -29,13 +29,13 @@ function dl(e, t, l, n) {
|
|
|
29
29
|
enumerable: !0
|
|
30
30
|
}), e;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return fn(
|
|
32
|
+
function re(e) {
|
|
33
|
+
return fn(ht(e));
|
|
34
34
|
}
|
|
35
35
|
function Vo(e) {
|
|
36
36
|
return fn(e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function pe(e, t) {
|
|
39
39
|
return e !== void 0 && e() || t;
|
|
40
40
|
}
|
|
41
41
|
function Bo(e, t) {
|
|
@@ -52,10 +52,10 @@ function Oe(e, t) {
|
|
|
52
52
|
function To(e, t) {
|
|
53
53
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
54
54
|
}
|
|
55
|
-
function $o(e, t, l, n, o,
|
|
55
|
+
function $o(e, t, l, n, o, i) {
|
|
56
56
|
t.key = n + o;
|
|
57
|
-
const a =
|
|
58
|
-
return o === !0 ? vn(a,
|
|
57
|
+
const a = g(e, t, l);
|
|
58
|
+
return o === !0 ? vn(a, i()) : a;
|
|
59
59
|
}
|
|
60
60
|
const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
61
61
|
"mdi-": (e) => `mdi ${e}`,
|
|
@@ -77,10 +77,10 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
|
77
77
|
sym_o_: "-outlined",
|
|
78
78
|
sym_r_: "-rounded",
|
|
79
79
|
sym_s_: "-sharp"
|
|
80
|
-
}, Ro = new RegExp("^(" + Object.keys(wn).join("|") + ")"), Lo = new RegExp("^(" + Object.keys(Sn).join("|") + ")"), Rl = new RegExp("^(" + Object.keys(kn).join("|") + ")"), Mo = /^[Mm]\s?[-+]?\.?\d/, Oo = /^img:/, Ao = /^svguse:/, Po = /^ion-/, zo = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, _e =
|
|
80
|
+
}, Ro = new RegExp("^(" + Object.keys(wn).join("|") + ")"), Lo = new RegExp("^(" + Object.keys(Sn).join("|") + ")"), Rl = new RegExp("^(" + Object.keys(kn).join("|") + ")"), Mo = /^[Mm]\s?[-+]?\.?\d/, Oo = /^img:/, Ao = /^svguse:/, Po = /^ion-/, zo = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, _e = re({
|
|
81
81
|
name: "QIcon",
|
|
82
82
|
props: {
|
|
83
|
-
...
|
|
83
|
+
...It,
|
|
84
84
|
tag: {
|
|
85
85
|
type: String,
|
|
86
86
|
default: "i"
|
|
@@ -91,9 +91,9 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
|
91
91
|
right: Boolean
|
|
92
92
|
},
|
|
93
93
|
setup(e, { slots: t }) {
|
|
94
|
-
const { proxy: { $q: l } } = le(), n =
|
|
94
|
+
const { proxy: { $q: l } } = le(), n = Ft(e), o = d(
|
|
95
95
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
96
|
-
),
|
|
96
|
+
), i = d(() => {
|
|
97
97
|
let a, r = e.name;
|
|
98
98
|
if (r === "none" || !r)
|
|
99
99
|
return { none: !0 };
|
|
@@ -116,7 +116,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
|
116
116
|
viewBox: y,
|
|
117
117
|
nodes: s.split("&&").map((v) => {
|
|
118
118
|
const [c, m, x] = v.split("@@");
|
|
119
|
-
return
|
|
119
|
+
return g("path", { style: m, d: c, transform: x });
|
|
120
120
|
})
|
|
121
121
|
};
|
|
122
122
|
}
|
|
@@ -133,7 +133,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
|
133
133
|
viewBox: y
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
let
|
|
136
|
+
let h = " ";
|
|
137
137
|
const b = r.match(Ro);
|
|
138
138
|
if (b !== null)
|
|
139
139
|
a = wn[b[1]](r);
|
|
@@ -144,15 +144,15 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
|
144
144
|
else if (Rl.test(r) === !0) {
|
|
145
145
|
a = "notranslate material-symbols";
|
|
146
146
|
const s = r.match(Rl);
|
|
147
|
-
s !== null && (r = r.substring(6), a += kn[s[1]]),
|
|
147
|
+
s !== null && (r = r.substring(6), a += kn[s[1]]), h = r;
|
|
148
148
|
} else {
|
|
149
149
|
a = "notranslate material-icons";
|
|
150
150
|
const s = r.match(Lo);
|
|
151
|
-
s !== null && (r = r.substring(2), a += Sn[s[1]]),
|
|
151
|
+
s !== null && (r = r.substring(2), a += Sn[s[1]]), h = r;
|
|
152
152
|
}
|
|
153
153
|
return {
|
|
154
154
|
cls: a,
|
|
155
|
-
content:
|
|
155
|
+
content: h
|
|
156
156
|
};
|
|
157
157
|
});
|
|
158
158
|
return () => {
|
|
@@ -162,20 +162,20 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, wn = {
|
|
|
162
162
|
"aria-hidden": "true",
|
|
163
163
|
role: "presentation"
|
|
164
164
|
};
|
|
165
|
-
return
|
|
166
|
-
|
|
167
|
-
])) :
|
|
168
|
-
|
|
169
|
-
viewBox:
|
|
170
|
-
},
|
|
171
|
-
])) :
|
|
172
|
-
|
|
173
|
-
viewBox:
|
|
165
|
+
return i.value.none === !0 ? g(e.tag, a, pe(t.default)) : i.value.img === !0 ? g(e.tag, a, Oe(t.default, [
|
|
166
|
+
g("img", { src: i.value.src })
|
|
167
|
+
])) : i.value.svg === !0 ? g(e.tag, a, Oe(t.default, [
|
|
168
|
+
g("svg", {
|
|
169
|
+
viewBox: i.value.viewBox || "0 0 24 24"
|
|
170
|
+
}, i.value.nodes)
|
|
171
|
+
])) : i.value.svguse === !0 ? g(e.tag, a, Oe(t.default, [
|
|
172
|
+
g("svg", {
|
|
173
|
+
viewBox: i.value.viewBox
|
|
174
174
|
}, [
|
|
175
|
-
|
|
175
|
+
g("use", { "xlink:href": i.value.src })
|
|
176
176
|
])
|
|
177
|
-
])) : (
|
|
178
|
-
|
|
177
|
+
])) : (i.value.cls !== void 0 && (a.class += " " + i.value.cls), g(e.tag, a, Oe(t.default, [
|
|
178
|
+
i.value.content
|
|
179
179
|
])));
|
|
180
180
|
};
|
|
181
181
|
}
|
|
@@ -194,7 +194,7 @@ function Fo(e) {
|
|
|
194
194
|
)
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
const xn =
|
|
197
|
+
const xn = re({
|
|
198
198
|
name: "QSpinner",
|
|
199
199
|
props: {
|
|
200
200
|
...Io,
|
|
@@ -205,13 +205,13 @@ const xn = ve({
|
|
|
205
205
|
},
|
|
206
206
|
setup(e) {
|
|
207
207
|
const { cSize: t, classes: l } = Fo(e);
|
|
208
|
-
return () =>
|
|
208
|
+
return () => g("svg", {
|
|
209
209
|
class: l.value + " q-spinner-mat",
|
|
210
210
|
width: t.value,
|
|
211
211
|
height: t.value,
|
|
212
212
|
viewBox: "25 25 50 50"
|
|
213
213
|
}, [
|
|
214
|
-
|
|
214
|
+
g("circle", {
|
|
215
215
|
class: "path",
|
|
216
216
|
cx: "50",
|
|
217
217
|
cy: "50",
|
|
@@ -238,7 +238,7 @@ function Ho(e) {
|
|
|
238
238
|
} catch {
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
const t =
|
|
241
|
+
const t = Pe(e);
|
|
242
242
|
if (t)
|
|
243
243
|
return t.$el || t;
|
|
244
244
|
}
|
|
@@ -294,7 +294,7 @@ function jo(e) {
|
|
|
294
294
|
function Ee(e) {
|
|
295
295
|
e.stopPropagation();
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function ye(e) {
|
|
298
298
|
e.cancelable !== !1 && e.preventDefault();
|
|
299
299
|
}
|
|
300
300
|
function te(e) {
|
|
@@ -315,7 +315,7 @@ function _n(e, t) {
|
|
|
315
315
|
function En(e) {
|
|
316
316
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function He(e, t) {
|
|
319
319
|
return En(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
320
320
|
}
|
|
321
321
|
function No(e, t = 250) {
|
|
@@ -329,9 +329,9 @@ function No(e, t = 250) {
|
|
|
329
329
|
function Ll(e, t, l, n) {
|
|
330
330
|
l.modifiers.stop === !0 && Ee(e);
|
|
331
331
|
const o = l.modifiers.color;
|
|
332
|
-
let
|
|
333
|
-
|
|
334
|
-
const a = document.createElement("span"), r = document.createElement("span"),
|
|
332
|
+
let i = l.modifiers.center;
|
|
333
|
+
i = i === !0 || n === !0;
|
|
334
|
+
const a = document.createElement("span"), r = document.createElement("span"), h = qn(e), { left: b, top: s, width: y, height: v } = t.getBoundingClientRect(), c = Math.sqrt(y * y + v * v), m = c / 2, x = `${(y - c) / 2}px`, p = i ? x : `${h.left - b - m}px`, O = `${(v - c) / 2}px`, B = i ? O : `${h.top - s - m}px`;
|
|
335
335
|
r.className = "q-ripple__inner", ol(r, {
|
|
336
336
|
height: `${c}px`,
|
|
337
337
|
width: `${c}px`,
|
|
@@ -376,7 +376,7 @@ const Vn = Vo(
|
|
|
376
376
|
n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && Ll(o, e, n, o.qKeyEvent === !0);
|
|
377
377
|
},
|
|
378
378
|
keystart: No((o) => {
|
|
379
|
-
n.enabled === !0 && o.qSkipRipple !== !0 &&
|
|
379
|
+
n.enabled === !0 && o.qSkipRipple !== !0 && He(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && Ll(o, e, n, !0);
|
|
380
380
|
}, 300)
|
|
381
381
|
};
|
|
382
382
|
Ml(n, t), e.__qripple = n, il(n, "main", [
|
|
@@ -447,7 +447,7 @@ function Uo(e, t) {
|
|
|
447
447
|
if (typeof n == "string") {
|
|
448
448
|
if (n !== o)
|
|
449
449
|
return !1;
|
|
450
|
-
} else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((
|
|
450
|
+
} else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((i, a) => i !== o[a]))
|
|
451
451
|
return !1;
|
|
452
452
|
}
|
|
453
453
|
return !0;
|
|
@@ -489,11 +489,11 @@ const Rn = {
|
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
function Ln({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
492
|
-
const l = le(), { props: n, proxy: o, emit:
|
|
492
|
+
const l = le(), { props: n, proxy: o, emit: i } = l, a = Tn(l), r = d(() => n.disable !== !0 && n.href !== void 0), h = t === !0 ? d(
|
|
493
493
|
() => a === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
494
494
|
) : d(
|
|
495
495
|
() => a === !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
496
|
-
), b = d(() =>
|
|
496
|
+
), b = d(() => h.value === !0 ? B(n.to) : null), s = d(() => b.value !== null), y = d(() => r.value === !0 || s.value === !0), v = d(() => n.type === "a" || y.value === !0 ? "a" : n.tag || e || "div"), c = d(() => r.value === !0 ? {
|
|
497
497
|
href: n.href,
|
|
498
498
|
target: n.target
|
|
499
499
|
} : s.value === !0 ? {
|
|
@@ -550,9 +550,9 @@ function Ln({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
550
550
|
function L($) {
|
|
551
551
|
if (s.value === !0) {
|
|
552
552
|
const V = (M) => k($, M);
|
|
553
|
-
|
|
553
|
+
i("click", $, V), $.defaultPrevented !== !0 && V();
|
|
554
554
|
} else
|
|
555
|
-
|
|
555
|
+
i("click", $);
|
|
556
556
|
}
|
|
557
557
|
return {
|
|
558
558
|
hasRouterLink: s,
|
|
@@ -587,7 +587,7 @@ function li(e, t) {
|
|
|
587
587
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
588
588
|
}
|
|
589
589
|
const ni = {
|
|
590
|
-
...
|
|
590
|
+
...It,
|
|
591
591
|
...Rn,
|
|
592
592
|
type: {
|
|
593
593
|
type: String,
|
|
@@ -633,9 +633,9 @@ const ni = {
|
|
|
633
633
|
round: Boolean
|
|
634
634
|
};
|
|
635
635
|
function ii(e) {
|
|
636
|
-
const t =
|
|
636
|
+
const t = Ft(e, Zo), l = Qo(e), { hasRouterLink: n, hasLink: o, linkTag: i, linkAttrs: a, navigateOnClick: r } = Ln({
|
|
637
637
|
fallbackTag: "button"
|
|
638
|
-
}),
|
|
638
|
+
}), h = d(() => {
|
|
639
639
|
const p = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
640
640
|
return e.padding !== void 0 ? Object.assign({}, p, {
|
|
641
641
|
padding: e.padding.split(/\s+/).map((O) => O in zl ? zl[O] + "px" : O).join(" "),
|
|
@@ -648,7 +648,7 @@ function ii(e) {
|
|
|
648
648
|
() => e.disable !== !0 && e.loading !== !0
|
|
649
649
|
), y = d(() => s.value === !0 ? e.tabindex || 0 : -1), v = d(() => li(e, "standard")), c = d(() => {
|
|
650
650
|
const p = { tabindex: y.value };
|
|
651
|
-
return o.value === !0 ? Object.assign(p, a.value) : Jo.includes(e.type) === !0 && (p.type = e.type),
|
|
651
|
+
return o.value === !0 ? Object.assign(p, a.value) : Jo.includes(e.type) === !0 && (p.type = e.type), i.value === "a" ? (e.disable === !0 ? p["aria-disabled"] = "true" : p.href === void 0 && (p.role = "button"), n.value !== !0 && ei.test(e.type) === !0 && (p.type = e.type)) : e.disable === !0 && (p.disabled = "", p["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(p, {
|
|
652
652
|
role: "progressbar",
|
|
653
653
|
"aria-valuemin": 0,
|
|
654
654
|
"aria-valuemax": 100,
|
|
@@ -664,18 +664,18 @@ function ii(e) {
|
|
|
664
664
|
);
|
|
665
665
|
return {
|
|
666
666
|
classes: m,
|
|
667
|
-
style:
|
|
667
|
+
style: h,
|
|
668
668
|
innerClasses: x,
|
|
669
669
|
attributes: c,
|
|
670
670
|
hasLink: o,
|
|
671
|
-
linkTag:
|
|
671
|
+
linkTag: i,
|
|
672
672
|
navigateOnClick: r,
|
|
673
673
|
isActionable: s
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
const { passiveCapture:
|
|
677
|
-
let
|
|
678
|
-
const ui =
|
|
676
|
+
const { passiveCapture: ge } = ae;
|
|
677
|
+
let Xe = null, Ge = null, Ze = null;
|
|
678
|
+
const ui = re({
|
|
679
679
|
name: "QBtn",
|
|
680
680
|
props: {
|
|
681
681
|
...oi,
|
|
@@ -687,10 +687,10 @@ const ui = ve({
|
|
|
687
687
|
setup(e, { slots: t, emit: l }) {
|
|
688
688
|
const { proxy: n } = le(), {
|
|
689
689
|
classes: o,
|
|
690
|
-
style:
|
|
690
|
+
style: i,
|
|
691
691
|
innerClasses: a,
|
|
692
692
|
attributes: r,
|
|
693
|
-
hasLink:
|
|
693
|
+
hasLink: h,
|
|
694
694
|
linkTag: b,
|
|
695
695
|
navigateOnClick: s,
|
|
696
696
|
isActionable: y
|
|
@@ -699,7 +699,7 @@ const ui = ve({
|
|
|
699
699
|
const O = d(
|
|
700
700
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
701
701
|
), B = d(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
702
|
-
keyCodes:
|
|
702
|
+
keyCodes: h.value === !0 ? [13, 32] : [13],
|
|
703
703
|
...e.ripple === !0 ? {} : e.ripple
|
|
704
704
|
}), k = d(() => ({ center: e.round })), L = d(() => {
|
|
705
705
|
const E = Math.max(0, Math.min(100, e.percentage));
|
|
@@ -732,7 +732,7 @@ const ui = ve({
|
|
|
732
732
|
}), V = d(() => ({
|
|
733
733
|
ref: v,
|
|
734
734
|
class: "q-btn q-btn-item non-selectable no-outline " + o.value,
|
|
735
|
-
style:
|
|
735
|
+
style: i.value,
|
|
736
736
|
...r.value,
|
|
737
737
|
...$.value
|
|
738
738
|
}));
|
|
@@ -745,31 +745,31 @@ const ui = ve({
|
|
|
745
745
|
if (e.type === "submit" && j !== document.body && v.value.contains(j) === !1 && j.contains(v.value) === !1) {
|
|
746
746
|
v.value.focus();
|
|
747
747
|
const Y = () => {
|
|
748
|
-
document.removeEventListener("keydown", te, !0), document.removeEventListener("keyup", Y,
|
|
748
|
+
document.removeEventListener("keydown", te, !0), document.removeEventListener("keyup", Y, ge), v.value !== null && v.value.removeEventListener("blur", Y, ge);
|
|
749
749
|
};
|
|
750
|
-
document.addEventListener("keydown", te, !0), document.addEventListener("keyup", Y,
|
|
750
|
+
document.addEventListener("keydown", te, !0), document.addEventListener("keyup", Y, ge), v.value.addEventListener("blur", Y, ge);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
s(E);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
function P(E) {
|
|
757
|
-
v.value !== null && (l("keydown", E),
|
|
757
|
+
v.value !== null && (l("keydown", E), He(E, [13, 32]) === !0 && Ge !== v.value && (Ge !== null && R(), E.defaultPrevented !== !0 && (v.value.focus(), Ge = v.value, v.value.classList.add("q-btn--active"), document.addEventListener("keyup", U, !0), v.value.addEventListener("blur", U, ge)), te(E)));
|
|
758
758
|
}
|
|
759
759
|
function W(E) {
|
|
760
|
-
v.value !== null && (l("touchstart", E), E.defaultPrevented !== !0 && (
|
|
760
|
+
v.value !== null && (l("touchstart", E), E.defaultPrevented !== !0 && (Xe !== v.value && (Xe !== null && R(), Xe = v.value, m = E.target, m.addEventListener("touchcancel", U, ge), m.addEventListener("touchend", U, ge)), x = !0, p !== null && clearTimeout(p), p = setTimeout(() => {
|
|
761
761
|
p = null, x = !1;
|
|
762
762
|
}, 200)));
|
|
763
763
|
}
|
|
764
764
|
function G(E) {
|
|
765
|
-
v.value !== null && (E.qSkipRipple = x === !0, l("mousedown", E), E.defaultPrevented !== !0 &&
|
|
765
|
+
v.value !== null && (E.qSkipRipple = x === !0, l("mousedown", E), E.defaultPrevented !== !0 && Ze !== v.value && (Ze !== null && R(), Ze = v.value, v.value.classList.add("q-btn--active"), document.addEventListener("mouseup", U, ge)));
|
|
766
766
|
}
|
|
767
767
|
function U(E) {
|
|
768
768
|
if (v.value !== null && !(E !== void 0 && E.type === "blur" && document.activeElement === v.value)) {
|
|
769
769
|
if (E !== void 0 && E.type === "keyup") {
|
|
770
|
-
if (
|
|
770
|
+
if (Ge === v.value && He(E, [13, 32]) === !0) {
|
|
771
771
|
const j = new MouseEvent("click", E);
|
|
772
|
-
j.qKeyEvent = !0, E.defaultPrevented === !0 &&
|
|
772
|
+
j.qKeyEvent = !0, E.defaultPrevented === !0 && ye(j), E.cancelBubble === !0 && Ee(j), v.value.dispatchEvent(j), te(E), E.qKeyEvent = !0;
|
|
773
773
|
}
|
|
774
774
|
l("keyup", E);
|
|
775
775
|
}
|
|
@@ -778,7 +778,7 @@ const ui = ve({
|
|
|
778
778
|
}
|
|
779
779
|
function R(E) {
|
|
780
780
|
const j = c.value;
|
|
781
|
-
E !== !0 && (
|
|
781
|
+
E !== !0 && (Xe === v.value || Ze === v.value) && j !== null && j !== document.activeElement && (j.setAttribute("tabindex", -1), j.focus()), Xe === v.value && (m !== null && (m.removeEventListener("touchcancel", U, ge), m.removeEventListener("touchend", U, ge)), Xe = m = null), Ze === v.value && (document.removeEventListener("mouseup", U, ge), Ze = null), Ge === v.value && (document.removeEventListener("keyup", U, !0), v.value !== null && v.value.removeEventListener("blur", U, ge), Ge = null), v.value !== null && v.value.classList.remove("q-btn--active");
|
|
782
782
|
}
|
|
783
783
|
function K(E) {
|
|
784
784
|
te(E), E.qSkipRipple = !0;
|
|
@@ -792,50 +792,50 @@ const ui = ve({
|
|
|
792
792
|
}), () => {
|
|
793
793
|
let E = [];
|
|
794
794
|
e.icon !== void 0 && E.push(
|
|
795
|
-
|
|
795
|
+
g(_e, {
|
|
796
796
|
name: e.icon,
|
|
797
797
|
left: e.stack !== !0 && O.value === !0,
|
|
798
798
|
role: "img"
|
|
799
799
|
})
|
|
800
800
|
), O.value === !0 && E.push(
|
|
801
|
-
|
|
801
|
+
g("span", { class: "block" }, [e.label])
|
|
802
802
|
), E = Oe(t.default, E), e.iconRight !== void 0 && e.round === !1 && E.push(
|
|
803
|
-
|
|
803
|
+
g(_e, {
|
|
804
804
|
name: e.iconRight,
|
|
805
805
|
right: e.stack !== !0 && O.value === !0,
|
|
806
806
|
role: "img"
|
|
807
807
|
})
|
|
808
808
|
);
|
|
809
809
|
const j = [
|
|
810
|
-
|
|
810
|
+
g("span", {
|
|
811
811
|
class: "q-focus-helper",
|
|
812
812
|
ref: c
|
|
813
813
|
})
|
|
814
814
|
];
|
|
815
815
|
return e.loading === !0 && e.percentage !== void 0 && j.push(
|
|
816
|
-
|
|
816
|
+
g("span", {
|
|
817
817
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
818
818
|
}, [
|
|
819
|
-
|
|
819
|
+
g("span", {
|
|
820
820
|
class: "q-btn__progress-indicator fit block",
|
|
821
821
|
style: L.value
|
|
822
822
|
})
|
|
823
823
|
])
|
|
824
824
|
), j.push(
|
|
825
|
-
|
|
825
|
+
g("span", {
|
|
826
826
|
class: "q-btn__content text-center col items-center q-anchor--skip " + a.value
|
|
827
827
|
}, E)
|
|
828
828
|
), e.loading !== null && j.push(
|
|
829
|
-
|
|
829
|
+
g(mt, {
|
|
830
830
|
name: "q-transition--fade"
|
|
831
831
|
}, () => e.loading === !0 ? [
|
|
832
|
-
|
|
832
|
+
g("span", {
|
|
833
833
|
key: "loading",
|
|
834
834
|
class: "absolute-full flex flex-center"
|
|
835
|
-
}, t.loading !== void 0 ? t.loading() : [
|
|
835
|
+
}, t.loading !== void 0 ? t.loading() : [g(xn)])
|
|
836
836
|
] : null)
|
|
837
837
|
), vn(
|
|
838
|
-
|
|
838
|
+
g(
|
|
839
839
|
b.value,
|
|
840
840
|
V.value,
|
|
841
841
|
j
|
|
@@ -849,7 +849,7 @@ const ui = ve({
|
|
|
849
849
|
);
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
}), ai = /* @__PURE__ */
|
|
852
|
+
}), ai = /* @__PURE__ */ ht({
|
|
853
853
|
__name: "index",
|
|
854
854
|
props: {
|
|
855
855
|
size: { default: qe.MD },
|
|
@@ -887,11 +887,11 @@ const ui = ve({
|
|
|
887
887
|
},
|
|
888
888
|
`app-btn_${t.color}`
|
|
889
889
|
]);
|
|
890
|
-
return (n, o) => (ue(),
|
|
890
|
+
return (n, o) => (ue(), ft(Pe(ui), {
|
|
891
891
|
"no-caps": "",
|
|
892
892
|
unelevated: "",
|
|
893
893
|
class: Be(l.value),
|
|
894
|
-
padding:
|
|
894
|
+
padding: Pe(Eo)[n.size || Pe(qe).MD],
|
|
895
895
|
loading: n.loading,
|
|
896
896
|
disable: n.disabled || void 0,
|
|
897
897
|
to: n.to,
|
|
@@ -899,10 +899,10 @@ const ui = ve({
|
|
|
899
899
|
target: n.target,
|
|
900
900
|
type: n.submit ? "submit" : void 0,
|
|
901
901
|
"aria-label": n.ariaLabel,
|
|
902
|
-
onClick: o[0] || (o[0] = (
|
|
902
|
+
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
903
903
|
}, {
|
|
904
904
|
default: xe(() => [
|
|
905
|
-
n.iconLeft || n.iconMiddle ? (ue(),
|
|
905
|
+
n.iconLeft || n.iconMiddle ? (ue(), he("i", {
|
|
906
906
|
key: 0,
|
|
907
907
|
class: Be([
|
|
908
908
|
"icon-kl",
|
|
@@ -912,10 +912,10 @@ const ui = ve({
|
|
|
912
912
|
])
|
|
913
913
|
}, null, 2)) : Ce("", !0),
|
|
914
914
|
yo(n.$slots, "default", {}, void 0, !0),
|
|
915
|
-
n.label ? (ue(),
|
|
916
|
-
|
|
915
|
+
n.label ? (ue(), he(ct, { key: 1 }, [
|
|
916
|
+
$t(Je(n.label), 1)
|
|
917
917
|
], 64)) : Ce("", !0),
|
|
918
|
-
n.iconRight ? (ue(),
|
|
918
|
+
n.iconRight ? (ue(), he("i", {
|
|
919
919
|
key: 2,
|
|
920
920
|
class: Be([
|
|
921
921
|
"icon-kl",
|
|
@@ -933,7 +933,7 @@ const ui = ve({
|
|
|
933
933
|
for (const [n, o] of t)
|
|
934
934
|
l[n] = o;
|
|
935
935
|
return l;
|
|
936
|
-
}, ri = /* @__PURE__ */ fl(ai, [["__scopeId", "data-v-ac94630a"]]), si = /* @__PURE__ */
|
|
936
|
+
}, ri = /* @__PURE__ */ fl(ai, [["__scopeId", "data-v-ac94630a"]]), si = /* @__PURE__ */ ht({
|
|
937
937
|
__name: "index",
|
|
938
938
|
props: {
|
|
939
939
|
name: {},
|
|
@@ -941,16 +941,16 @@ const ui = ve({
|
|
|
941
941
|
color: {}
|
|
942
942
|
},
|
|
943
943
|
setup(e) {
|
|
944
|
-
return (t, l) => (ue(),
|
|
944
|
+
return (t, l) => (ue(), he("i", {
|
|
945
945
|
class: Be(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
946
946
|
style: wo(t.size ? `font-size: ${t.size}` : void 0)
|
|
947
947
|
}, null, 6));
|
|
948
948
|
}
|
|
949
|
-
}),
|
|
949
|
+
}), Du = /* @__PURE__ */ fl(si, [["__scopeId", "data-v-73419357"]]), ju = mn(
|
|
950
950
|
() => Promise.resolve().then(() => pi)
|
|
951
|
-
),
|
|
952
|
-
() => Promise.resolve().then(() =>
|
|
953
|
-
),
|
|
951
|
+
), Nu = mn(
|
|
952
|
+
() => Promise.resolve().then(() => Fu)
|
|
953
|
+
), tt = A(
|
|
954
954
|
!1
|
|
955
955
|
);
|
|
956
956
|
let ul;
|
|
@@ -1001,14 +1001,14 @@ function fi(e) {
|
|
|
1001
1001
|
silk: !1
|
|
1002
1002
|
};
|
|
1003
1003
|
n.browser && (o[n.browser] = !0, o.version = n.version, o.versionNumber = parseInt(n.version, 10)), n.platform && (o[n.platform] = !0);
|
|
1004
|
-
const
|
|
1005
|
-
if (
|
|
1006
|
-
(o.chrome || o.opr || o.safari || o.vivaldi || o.mobile === !0 && o.ios !== !0 &&
|
|
1004
|
+
const i = o.android || o.ios || o.bb || o.blackberry || o.ipad || o.iphone || o.ipod || o.kindle || o.playbook || o.silk || o["windows phone"];
|
|
1005
|
+
if (i === !0 || t.indexOf("mobile") !== -1 ? o.mobile = !0 : o.desktop = !0, o["windows phone"] && (o.winphone = !0, delete o["windows phone"]), o.edga || o.edgios || o.edg ? (o.edge = !0, n.browser = "edge") : o.crios ? (o.chrome = !0, n.browser = "chrome") : o.fxios && (o.firefox = !0, n.browser = "firefox"), (o.ipod || o.ipad || o.iphone) && (o.ios = !0), o.vivaldi && (n.browser = "vivaldi", o.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
|
|
1006
|
+
(o.chrome || o.opr || o.safari || o.vivaldi || o.mobile === !0 && o.ios !== !0 && i !== !0) && (o.webkit = !0), o.opr && (n.browser = "opera", o.opera = !0), o.safari && (o.blackberry || o.bb ? (n.browser = "blackberry", o.blackberry = !0) : o.playbook ? (n.browser = "playbook", o.playbook = !0) : o.android ? (n.browser = "android", o.android = !0) : o.kindle ? (n.browser = "kindle", o.kindle = !0) : o.silk && (n.browser = "silk", o.silk = !0)), o.name = n.browser, o.platform = n.platform, t.indexOf("electron") !== -1)
|
|
1007
1007
|
o.electron = !0;
|
|
1008
1008
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
1009
1009
|
o.bex = !0;
|
|
1010
1010
|
else {
|
|
1011
|
-
if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"),
|
|
1011
|
+
if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), tt.value === !0 && (ul = { is: { ...o } }), Mn === !0 && o.mac === !0 && (o.desktop === !0 && o.safari === !0 || o.nativeMobile === !0 && o.android !== !0 && o.ios !== !0 && o.ipad !== !0)) {
|
|
1012
1012
|
delete o.mac, delete o.desktop;
|
|
1013
1013
|
const a = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
1014
1014
|
Object.assign(o, {
|
|
@@ -1040,8 +1040,8 @@ const Il = navigator.userAgent || navigator.vendor || window.opera, vi = {
|
|
|
1040
1040
|
}, al = {
|
|
1041
1041
|
install(e) {
|
|
1042
1042
|
const { $q: t } = e;
|
|
1043
|
-
|
|
1044
|
-
Object.assign(t.platform, de),
|
|
1043
|
+
tt.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
1044
|
+
Object.assign(t.platform, de), tt.value = !1;
|
|
1045
1045
|
}), t.platform = So(this)) : t.platform = this;
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
@@ -1056,18 +1056,18 @@ const Il = navigator.userAgent || navigator.vendor || window.opera, vi = {
|
|
|
1056
1056
|
} catch {
|
|
1057
1057
|
}
|
|
1058
1058
|
return e = !1, !1;
|
|
1059
|
-
}), Object.assign(al, de),
|
|
1059
|
+
}), Object.assign(al, de), tt.value === !0 && (Object.assign(al, ul, vi), ul = null);
|
|
1060
1060
|
}
|
|
1061
|
-
const
|
|
1061
|
+
const ze = [];
|
|
1062
1062
|
function On(e) {
|
|
1063
|
-
|
|
1063
|
+
ze[ze.length - 1](e);
|
|
1064
1064
|
}
|
|
1065
1065
|
function vl(e) {
|
|
1066
|
-
de.is.desktop === !0 && (
|
|
1066
|
+
de.is.desktop === !0 && (ze.push(e), ze.length === 1 && document.body.addEventListener("focusin", On));
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const t =
|
|
1070
|
-
t !== -1 && (
|
|
1068
|
+
function Lt(e) {
|
|
1069
|
+
const t = ze.indexOf(e);
|
|
1070
|
+
t !== -1 && (ze.splice(t, 1), ze.length === 0 && document.body.removeEventListener("focusin", On));
|
|
1071
1071
|
}
|
|
1072
1072
|
function mi(e) {
|
|
1073
1073
|
const t = document.createElement("textarea");
|
|
@@ -1076,7 +1076,7 @@ function mi(e) {
|
|
|
1076
1076
|
};
|
|
1077
1077
|
vl(l), document.body.appendChild(t), t.focus(), t.select();
|
|
1078
1078
|
const n = document.execCommand("copy");
|
|
1079
|
-
return t.remove(),
|
|
1079
|
+
return t.remove(), Lt(l), n;
|
|
1080
1080
|
}
|
|
1081
1081
|
function gi(e) {
|
|
1082
1082
|
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(e) : new Promise((t, l) => {
|
|
@@ -1087,7 +1087,7 @@ function gi(e) {
|
|
|
1087
1087
|
const Ut = {
|
|
1088
1088
|
COPY: "copy_o",
|
|
1089
1089
|
COPIED: "copied_o"
|
|
1090
|
-
}, hi = /* @__PURE__ */
|
|
1090
|
+
}, hi = /* @__PURE__ */ ht({
|
|
1091
1091
|
__name: "index",
|
|
1092
1092
|
props: {
|
|
1093
1093
|
text: {},
|
|
@@ -1114,11 +1114,11 @@ const Ut = {
|
|
|
1114
1114
|
l.value = Ut.COPY;
|
|
1115
1115
|
}, 2e3);
|
|
1116
1116
|
}, o = () => {
|
|
1117
|
-
gi(t.text).then(n).catch((
|
|
1118
|
-
console.log(
|
|
1117
|
+
gi(t.text).then(n).catch((i) => {
|
|
1118
|
+
console.log(i);
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
|
-
return (
|
|
1121
|
+
return (i, a) => (ue(), ft(Pe(ri), gn(t, {
|
|
1122
1122
|
"icon-middle": l.value,
|
|
1123
1123
|
onClick: hn(o, ["prevent"])
|
|
1124
1124
|
}), null, 16, ["icon-middle"]));
|
|
@@ -1126,24 +1126,24 @@ const Ut = {
|
|
|
1126
1126
|
}), pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1127
1127
|
__proto__: null,
|
|
1128
1128
|
default: hi
|
|
1129
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1129
|
+
}, Symbol.toStringTag, { value: "Module" })), pt = {
|
|
1130
1130
|
dark: {
|
|
1131
1131
|
type: Boolean,
|
|
1132
1132
|
default: null
|
|
1133
1133
|
}
|
|
1134
1134
|
};
|
|
1135
|
-
function
|
|
1135
|
+
function bt(e, t) {
|
|
1136
1136
|
return d(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1137
1137
|
}
|
|
1138
1138
|
function bi(e, t) {
|
|
1139
|
-
const l = A(null), n = d(() => e.disable === !0 ? null :
|
|
1139
|
+
const l = A(null), n = d(() => e.disable === !0 ? null : g("span", {
|
|
1140
1140
|
ref: l,
|
|
1141
1141
|
class: "no-outline",
|
|
1142
1142
|
tabindex: -1
|
|
1143
1143
|
}));
|
|
1144
|
-
function o(
|
|
1144
|
+
function o(i) {
|
|
1145
1145
|
const a = t.value;
|
|
1146
|
-
|
|
1146
|
+
i !== void 0 && i.type.indexOf("key") === 0 ? a !== null && document.activeElement !== a && a.contains(document.activeElement) === !0 && a.focus() : l.value !== null && (i === void 0 || a !== null && a.contains(i.target) === !0) && l.value.focus();
|
|
1147
1147
|
}
|
|
1148
1148
|
return {
|
|
1149
1149
|
refocusTargetEl: n,
|
|
@@ -1156,7 +1156,7 @@ const An = {
|
|
|
1156
1156
|
function yi(e = {}) {
|
|
1157
1157
|
return (t, l, n) => {
|
|
1158
1158
|
t[l](
|
|
1159
|
-
|
|
1159
|
+
g("input", {
|
|
1160
1160
|
class: "hidden" + (n || ""),
|
|
1161
1161
|
...e.value
|
|
1162
1162
|
})
|
|
@@ -1173,8 +1173,8 @@ const Si = {
|
|
|
1173
1173
|
lg: 50,
|
|
1174
1174
|
xl: 60
|
|
1175
1175
|
}, ki = {
|
|
1176
|
-
...
|
|
1177
|
-
...
|
|
1176
|
+
...pt,
|
|
1177
|
+
...It,
|
|
1178
1178
|
...An,
|
|
1179
1179
|
modelValue: {
|
|
1180
1180
|
required: !0,
|
|
@@ -1201,12 +1201,12 @@ const Si = {
|
|
|
1201
1201
|
tabindex: [String, Number]
|
|
1202
1202
|
}, xi = ["update:modelValue"];
|
|
1203
1203
|
function Ci(e, t) {
|
|
1204
|
-
const { props: l, slots: n, emit: o, proxy:
|
|
1204
|
+
const { props: l, slots: n, emit: o, proxy: i } = le(), { $q: a } = i, r = bt(l, a), h = A(null), { refocusTargetEl: b, refocusTarget: s } = bi(l, h), y = Ft(l, Si), v = d(
|
|
1205
1205
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
1206
1206
|
), c = d(() => {
|
|
1207
|
-
const R =
|
|
1208
|
-
return v.value === !0 ? l.modelValue.findIndex((K) =>
|
|
1209
|
-
}), m = d(() => v.value === !0 ? c.value !== -1 :
|
|
1207
|
+
const R = Ye(l.val);
|
|
1208
|
+
return v.value === !0 ? l.modelValue.findIndex((K) => Ye(K) === R) : -1;
|
|
1209
|
+
}), m = d(() => v.value === !0 ? c.value !== -1 : Ye(l.modelValue) === Ye(l.trueValue)), x = d(() => v.value === !0 ? c.value === -1 : Ye(l.modelValue) === Ye(l.falseValue)), p = d(
|
|
1210
1210
|
() => m.value === !1 && x.value === !1
|
|
1211
1211
|
), O = d(() => l.disable === !0 ? -1 : l.tabindex || 0), B = d(
|
|
1212
1212
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (l.disable === !0 ? " disabled" : "") + (r.value === !0 ? ` q-${e}--dark` : "") + (l.dense === !0 ? ` q-${e}--dense` : "") + (l.leftLabel === !0 ? " reverse" : "")
|
|
@@ -1259,7 +1259,7 @@ function Ci(e, t) {
|
|
|
1259
1259
|
(R.keyCode === 13 || R.keyCode === 32) && M(R);
|
|
1260
1260
|
}
|
|
1261
1261
|
const U = t(m, p);
|
|
1262
|
-
return Object.assign(
|
|
1262
|
+
return Object.assign(i, { toggle: M }), () => {
|
|
1263
1263
|
const R = U();
|
|
1264
1264
|
l.disable !== !0 && $(
|
|
1265
1265
|
R,
|
|
@@ -1267,20 +1267,20 @@ function Ci(e, t) {
|
|
|
1267
1267
|
` q-${e}__native absolute q-ma-none q-pa-none`
|
|
1268
1268
|
);
|
|
1269
1269
|
const K = [
|
|
1270
|
-
|
|
1270
|
+
g("div", {
|
|
1271
1271
|
class: k.value,
|
|
1272
1272
|
style: y.value,
|
|
1273
1273
|
"aria-hidden": "true"
|
|
1274
1274
|
}, R)
|
|
1275
1275
|
];
|
|
1276
1276
|
b.value !== null && K.push(b.value);
|
|
1277
|
-
const E = l.label !== void 0 ? Oe(n.default, [l.label]) :
|
|
1277
|
+
const E = l.label !== void 0 ? Oe(n.default, [l.label]) : pe(n.default);
|
|
1278
1278
|
return E !== void 0 && K.push(
|
|
1279
|
-
|
|
1279
|
+
g("div", {
|
|
1280
1280
|
class: `q-${e}__label q-anchor--skip`
|
|
1281
1281
|
}, E)
|
|
1282
|
-
),
|
|
1283
|
-
ref:
|
|
1282
|
+
), g("div", {
|
|
1283
|
+
ref: h,
|
|
1284
1284
|
class: B.value,
|
|
1285
1285
|
...V.value,
|
|
1286
1286
|
onClick: M,
|
|
@@ -1289,49 +1289,49 @@ function Ci(e, t) {
|
|
|
1289
1289
|
}, K);
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
|
-
const qi = () =>
|
|
1292
|
+
const qi = () => g("div", {
|
|
1293
1293
|
key: "svg",
|
|
1294
1294
|
class: "q-checkbox__bg absolute"
|
|
1295
1295
|
}, [
|
|
1296
|
-
|
|
1296
|
+
g("svg", {
|
|
1297
1297
|
class: "q-checkbox__svg fit absolute-full",
|
|
1298
1298
|
viewBox: "0 0 24 24"
|
|
1299
1299
|
}, [
|
|
1300
|
-
|
|
1300
|
+
g("path", {
|
|
1301
1301
|
class: "q-checkbox__truthy",
|
|
1302
1302
|
fill: "none",
|
|
1303
1303
|
d: "M1.73,12.91 8.1,19.28 22.79,4.59"
|
|
1304
1304
|
}),
|
|
1305
|
-
|
|
1305
|
+
g("path", {
|
|
1306
1306
|
class: "q-checkbox__indet",
|
|
1307
1307
|
d: "M4,14H20V10H4"
|
|
1308
1308
|
})
|
|
1309
1309
|
])
|
|
1310
|
-
]), _i =
|
|
1310
|
+
]), _i = re({
|
|
1311
1311
|
name: "QCheckbox",
|
|
1312
1312
|
props: ki,
|
|
1313
1313
|
emits: xi,
|
|
1314
1314
|
setup(e) {
|
|
1315
1315
|
const t = qi();
|
|
1316
1316
|
function l(n, o) {
|
|
1317
|
-
const
|
|
1317
|
+
const i = d(
|
|
1318
1318
|
() => (n.value === !0 ? e.checkedIcon : o.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
1319
1319
|
);
|
|
1320
|
-
return () =>
|
|
1321
|
-
|
|
1320
|
+
return () => i.value !== null ? [
|
|
1321
|
+
g("div", {
|
|
1322
1322
|
key: "icon",
|
|
1323
1323
|
class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
|
|
1324
1324
|
}, [
|
|
1325
|
-
|
|
1325
|
+
g(_e, {
|
|
1326
1326
|
class: "q-checkbox__icon",
|
|
1327
|
-
name:
|
|
1327
|
+
name: i.value
|
|
1328
1328
|
})
|
|
1329
1329
|
])
|
|
1330
1330
|
] : [t];
|
|
1331
1331
|
}
|
|
1332
1332
|
return Ci("checkbox", l);
|
|
1333
1333
|
}
|
|
1334
|
-
}),
|
|
1334
|
+
}), Rt = re({
|
|
1335
1335
|
name: "QItemSection",
|
|
1336
1336
|
props: {
|
|
1337
1337
|
avatar: Boolean,
|
|
@@ -1344,9 +1344,9 @@ const qi = () => h("div", {
|
|
|
1344
1344
|
const l = d(
|
|
1345
1345
|
() => `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" : "")
|
|
1346
1346
|
);
|
|
1347
|
-
return () =>
|
|
1347
|
+
return () => g("div", { class: l.value }, pe(t.default));
|
|
1348
1348
|
}
|
|
1349
|
-
}), Pn =
|
|
1349
|
+
}), Pn = re({
|
|
1350
1350
|
name: "QItemLabel",
|
|
1351
1351
|
props: {
|
|
1352
1352
|
overline: Boolean,
|
|
@@ -1363,15 +1363,15 @@ const qi = () => h("div", {
|
|
|
1363
1363
|
"-webkit-box-orient": "vertical",
|
|
1364
1364
|
"-webkit-line-clamp": l.value
|
|
1365
1365
|
} : null);
|
|
1366
|
-
return () =>
|
|
1366
|
+
return () => g("div", {
|
|
1367
1367
|
style: o.value,
|
|
1368
1368
|
class: n.value
|
|
1369
|
-
},
|
|
1369
|
+
}, pe(t.default));
|
|
1370
1370
|
}
|
|
1371
|
-
}), zn =
|
|
1371
|
+
}), zn = re({
|
|
1372
1372
|
name: "QItem",
|
|
1373
1373
|
props: {
|
|
1374
|
-
...
|
|
1374
|
+
...pt,
|
|
1375
1375
|
...Go,
|
|
1376
1376
|
tag: {
|
|
1377
1377
|
type: String,
|
|
@@ -1390,12 +1390,12 @@ const qi = () => h("div", {
|
|
|
1390
1390
|
},
|
|
1391
1391
|
emits: ["click", "keyup"],
|
|
1392
1392
|
setup(e, { slots: t, emit: l }) {
|
|
1393
|
-
const { proxy: { $q: n } } = le(), o =
|
|
1394
|
-
() => e.clickable === !0 ||
|
|
1393
|
+
const { proxy: { $q: n } } = le(), o = bt(e, n), { hasLink: i, linkAttrs: a, linkClass: r, linkTag: h, navigateOnClick: b } = Ln(), s = A(null), y = A(null), v = d(
|
|
1394
|
+
() => e.clickable === !0 || i.value === !0 || e.tag === "label"
|
|
1395
1395
|
), c = d(
|
|
1396
1396
|
() => e.disable !== !0 && v.value === !0
|
|
1397
1397
|
), m = d(
|
|
1398
|
-
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (o.value === !0 ? " q-item--dark" : "") + (
|
|
1398
|
+
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (o.value === !0 ? " q-item--dark" : "") + (i.value === !0 && e.active === null ? r.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (c.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")
|
|
1399
1399
|
), x = d(() => e.insetLevel === void 0 ? null : {
|
|
1400
1400
|
["padding" + (n.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
1401
1401
|
});
|
|
@@ -1403,7 +1403,7 @@ const qi = () => h("div", {
|
|
|
1403
1403
|
c.value === !0 && (y.value !== null && (k.qKeyEvent !== !0 && document.activeElement === s.value ? y.value.focus() : document.activeElement === y.value && s.value.focus()), b(k));
|
|
1404
1404
|
}
|
|
1405
1405
|
function O(k) {
|
|
1406
|
-
if (c.value === !0 &&
|
|
1406
|
+
if (c.value === !0 && He(k, [13, 32]) === !0) {
|
|
1407
1407
|
te(k), k.qKeyEvent = !0;
|
|
1408
1408
|
const L = new MouseEvent("click", k);
|
|
1409
1409
|
L.qKeyEvent = !0, s.value.dispatchEvent(L);
|
|
@@ -1413,7 +1413,7 @@ const qi = () => h("div", {
|
|
|
1413
1413
|
function B() {
|
|
1414
1414
|
const k = Bo(t.default, []);
|
|
1415
1415
|
return c.value === !0 && k.unshift(
|
|
1416
|
-
|
|
1416
|
+
g("div", { class: "q-focus-helper", tabindex: -1, ref: y })
|
|
1417
1417
|
), k;
|
|
1418
1418
|
}
|
|
1419
1419
|
return () => {
|
|
@@ -1425,15 +1425,15 @@ const qi = () => h("div", {
|
|
|
1425
1425
|
onClick: p,
|
|
1426
1426
|
onKeyup: O
|
|
1427
1427
|
};
|
|
1428
|
-
return c.value === !0 ? (k.tabindex = e.tabindex || "0", Object.assign(k, a.value)) : v.value === !0 && (k["aria-disabled"] = "true"),
|
|
1429
|
-
|
|
1428
|
+
return c.value === !0 ? (k.tabindex = e.tabindex || "0", Object.assign(k, a.value)) : v.value === !0 && (k["aria-disabled"] = "true"), g(
|
|
1429
|
+
h.value,
|
|
1430
1430
|
k,
|
|
1431
1431
|
B()
|
|
1432
1432
|
);
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
1435
|
}), Fl = (e) => e ? !0 : "Обовʼязкове поле";
|
|
1436
|
-
let Yt,
|
|
1436
|
+
let Yt, qt = 0;
|
|
1437
1437
|
const ie = new Array(256);
|
|
1438
1438
|
for (let e = 0; e < 256; e++)
|
|
1439
1439
|
ie[e] = (e + 256).toString(16).substring(1);
|
|
@@ -1456,8 +1456,8 @@ const Ei = (() => {
|
|
|
1456
1456
|
};
|
|
1457
1457
|
})(), Hl = 4096;
|
|
1458
1458
|
function rl() {
|
|
1459
|
-
(Yt === void 0 ||
|
|
1460
|
-
const e = Array.prototype.slice.call(Yt,
|
|
1459
|
+
(Yt === void 0 || qt + 16 > Hl) && (qt = 0, Yt = Ei(Hl));
|
|
1460
|
+
const e = Array.prototype.slice.call(Yt, qt, qt += 16);
|
|
1461
1461
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, ie[e[0]] + ie[e[1]] + ie[e[2]] + ie[e[3]] + "-" + ie[e[4]] + ie[e[5]] + "-" + ie[e[6]] + ie[e[7]] + "-" + ie[e[8]] + ie[e[9]] + "-" + ie[e[10]] + ie[e[11]] + ie[e[12]] + ie[e[13]] + ie[e[14]] + ie[e[15]];
|
|
1462
1462
|
}
|
|
1463
1463
|
function Vi(e) {
|
|
@@ -1467,9 +1467,9 @@ function Dl(e, t) {
|
|
|
1467
1467
|
return e ?? (t === !0 ? `f_${rl()}` : null);
|
|
1468
1468
|
}
|
|
1469
1469
|
function Bi({ getValue: e, required: t = !0 } = {}) {
|
|
1470
|
-
if (
|
|
1470
|
+
if (tt.value === !0) {
|
|
1471
1471
|
const l = e !== void 0 ? A(Vi(e())) : A(null);
|
|
1472
|
-
return t === !0 && l.value === null &&
|
|
1472
|
+
return t === !0 && l.value === null && nt(() => {
|
|
1473
1473
|
l.value = `f_${rl()}`;
|
|
1474
1474
|
}), e !== void 0 && J(e, (n) => {
|
|
1475
1475
|
l.value = Dl(n, t);
|
|
@@ -1484,12 +1484,12 @@ function Ti() {
|
|
|
1484
1484
|
attributes: A({})
|
|
1485
1485
|
};
|
|
1486
1486
|
function n() {
|
|
1487
|
-
const o = {},
|
|
1487
|
+
const o = {}, i = {};
|
|
1488
1488
|
for (const a in e)
|
|
1489
1489
|
a !== "class" && a !== "style" && jl.test(a) === !1 && (o[a] = e[a]);
|
|
1490
1490
|
for (const a in t.props)
|
|
1491
|
-
jl.test(a) === !0 && (
|
|
1492
|
-
l.attributes.value = o, l.listeners.value =
|
|
1491
|
+
jl.test(a) === !0 && (i[a] = t.props[a]);
|
|
1492
|
+
l.attributes.value = o, l.listeners.value = i;
|
|
1493
1493
|
}
|
|
1494
1494
|
return pn(n), n(), l;
|
|
1495
1495
|
}
|
|
@@ -1497,17 +1497,17 @@ const $i = "_q_fo_";
|
|
|
1497
1497
|
function Ri({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
1498
1498
|
const n = ko($i, !1);
|
|
1499
1499
|
if (n !== !1) {
|
|
1500
|
-
const { props: o, proxy:
|
|
1501
|
-
Object.assign(
|
|
1502
|
-
a === !0 ? (typeof t == "function" && t(), n.unbindComponent(
|
|
1503
|
-
}),
|
|
1504
|
-
o.disable !== !0 && n.bindComponent(
|
|
1500
|
+
const { props: o, proxy: i } = le();
|
|
1501
|
+
Object.assign(i, { validate: e, resetValidation: t }), J(() => o.disable, (a) => {
|
|
1502
|
+
a === !0 ? (typeof t == "function" && t(), n.unbindComponent(i)) : n.bindComponent(i);
|
|
1503
|
+
}), nt(() => {
|
|
1504
|
+
o.disable !== !0 && n.bindComponent(i);
|
|
1505
1505
|
}), fe(() => {
|
|
1506
|
-
o.disable !== !0 && n.unbindComponent(
|
|
1506
|
+
o.disable !== !0 && n.unbindComponent(i);
|
|
1507
1507
|
});
|
|
1508
1508
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
1509
1509
|
}
|
|
1510
|
-
const Nl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Wl = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Kl = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,
|
|
1510
|
+
const Nl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Wl = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Kl = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, _t = /^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])\)$/, Et = /^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)\)$/, Xt = {
|
|
1511
1511
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
1512
1512
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
1513
1513
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -1522,20 +1522,20 @@ const Nl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Wl = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
1522
1522
|
hexColor: (e) => Nl.test(e),
|
|
1523
1523
|
hexaColor: (e) => Wl.test(e),
|
|
1524
1524
|
hexOrHexaColor: (e) => Kl.test(e),
|
|
1525
|
-
rgbColor: (e) =>
|
|
1526
|
-
rgbaColor: (e) =>
|
|
1527
|
-
rgbOrRgbaColor: (e) =>
|
|
1528
|
-
hexOrRgbColor: (e) => Nl.test(e) ||
|
|
1529
|
-
hexaOrRgbaColor: (e) => Wl.test(e) ||
|
|
1530
|
-
anyColor: (e) => Kl.test(e) ||
|
|
1525
|
+
rgbColor: (e) => _t.test(e),
|
|
1526
|
+
rgbaColor: (e) => Et.test(e),
|
|
1527
|
+
rgbOrRgbaColor: (e) => _t.test(e) || Et.test(e),
|
|
1528
|
+
hexOrRgbColor: (e) => Nl.test(e) || _t.test(e),
|
|
1529
|
+
hexaOrRgbaColor: (e) => Wl.test(e) || Et.test(e),
|
|
1530
|
+
anyColor: (e) => Kl.test(e) || _t.test(e) || Et.test(e)
|
|
1531
1531
|
};
|
|
1532
1532
|
function In(e, t = 250, l) {
|
|
1533
1533
|
let n = null;
|
|
1534
1534
|
function o() {
|
|
1535
|
-
const
|
|
1536
|
-
n = null, l !== !0 && e.apply(this,
|
|
1535
|
+
const i = arguments, a = () => {
|
|
1536
|
+
n = null, l !== !0 && e.apply(this, i);
|
|
1537
1537
|
};
|
|
1538
|
-
n !== null ? clearTimeout(n) : l === !0 && e.apply(this,
|
|
1538
|
+
n !== null ? clearTimeout(n) : l === !0 && e.apply(this, i), n = setTimeout(a, t);
|
|
1539
1539
|
}
|
|
1540
1540
|
return o.cancel = () => {
|
|
1541
1541
|
n !== null && clearTimeout(n);
|
|
@@ -1559,14 +1559,14 @@ const Li = [!0, !1, "ondemand"], Mi = {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
};
|
|
1561
1561
|
function Oi(e, t) {
|
|
1562
|
-
const { props: l, proxy: n } = le(), o = A(!1),
|
|
1562
|
+
const { props: l, proxy: n } = le(), o = A(!1), i = A(null), a = A(!1);
|
|
1563
1563
|
Ri({ validate: x, resetValidation: m });
|
|
1564
|
-
let r = 0,
|
|
1564
|
+
let r = 0, h;
|
|
1565
1565
|
const b = d(
|
|
1566
1566
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
1567
1567
|
), s = d(() => l.disable !== !0 && b.value === !0 && t.value === !1), y = d(
|
|
1568
1568
|
() => l.error === !0 || o.value === !0
|
|
1569
|
-
), v = d(() => typeof l.errorMessage == "string" && l.errorMessage.length !== 0 ? l.errorMessage :
|
|
1569
|
+
), v = d(() => typeof l.errorMessage == "string" && l.errorMessage.length !== 0 ? l.errorMessage : i.value);
|
|
1570
1570
|
J(() => l.modelValue, () => {
|
|
1571
1571
|
a.value = !0, s.value === !0 && l.lazyRules === !1 && p();
|
|
1572
1572
|
});
|
|
@@ -1574,12 +1574,12 @@ function Oi(e, t) {
|
|
|
1574
1574
|
l.lazyRules !== "ondemand" && s.value === !0 && a.value === !0 && p();
|
|
1575
1575
|
}
|
|
1576
1576
|
J(() => l.reactiveRules, (O) => {
|
|
1577
|
-
O === !0 ?
|
|
1577
|
+
O === !0 ? h === void 0 && (h = J(() => l.rules, c, { immediate: !0, deep: !0 })) : h !== void 0 && (h(), h = void 0);
|
|
1578
1578
|
}, { immediate: !0 }), J(() => l.lazyRules, c), J(e, (O) => {
|
|
1579
1579
|
O === !0 ? a.value = !0 : s.value === !0 && l.lazyRules !== "ondemand" && p();
|
|
1580
1580
|
});
|
|
1581
1581
|
function m() {
|
|
1582
|
-
r++, t.value = !1, a.value = !1, o.value = !1,
|
|
1582
|
+
r++, t.value = !1, a.value = !1, o.value = !1, i.value = null, p.cancel();
|
|
1583
1583
|
}
|
|
1584
1584
|
function x(O = l.modelValue) {
|
|
1585
1585
|
if (l.disable === !0 || b.value === !1)
|
|
@@ -1588,7 +1588,7 @@ function Oi(e, t) {
|
|
|
1588
1588
|
a.value = !0;
|
|
1589
1589
|
} : () => {
|
|
1590
1590
|
}, L = (V, M) => {
|
|
1591
|
-
V === !0 && k(), o.value = V,
|
|
1591
|
+
V === !0 && k(), o.value = V, i.value = M || null, t.value = !1;
|
|
1592
1592
|
}, $ = [];
|
|
1593
1593
|
for (let V = 0; V < l.rules.length; V++) {
|
|
1594
1594
|
const M = l.rules[V];
|
|
@@ -1609,7 +1609,7 @@ function Oi(e, t) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
const p = In(x, 0);
|
|
1611
1611
|
return fe(() => {
|
|
1612
|
-
|
|
1612
|
+
h !== void 0 && h(), p.cancel();
|
|
1613
1613
|
}), Object.assign(n, { resetValidation: m, validate: x }), dl(n, "hasError", () => y.value), {
|
|
1614
1614
|
isDirtyModel: a,
|
|
1615
1615
|
hasRules: b,
|
|
@@ -1619,18 +1619,18 @@ function Oi(e, t) {
|
|
|
1619
1619
|
resetValidation: m
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
1622
|
-
let Ae = [],
|
|
1622
|
+
let Ae = [], gt = [];
|
|
1623
1623
|
function Fn(e) {
|
|
1624
|
-
|
|
1624
|
+
gt = gt.filter((t) => t !== e);
|
|
1625
1625
|
}
|
|
1626
1626
|
function Ai(e) {
|
|
1627
|
-
Fn(e),
|
|
1627
|
+
Fn(e), gt.push(e);
|
|
1628
1628
|
}
|
|
1629
1629
|
function Ql(e) {
|
|
1630
|
-
Fn(e),
|
|
1630
|
+
Fn(e), gt.length === 0 && Ae.length !== 0 && (Ae[Ae.length - 1](), Ae = []);
|
|
1631
1631
|
}
|
|
1632
1632
|
function ml(e) {
|
|
1633
|
-
|
|
1633
|
+
gt.length === 0 ? e() : Ae.push(e);
|
|
1634
1634
|
}
|
|
1635
1635
|
function Pi(e) {
|
|
1636
1636
|
Ae = Ae.filter((t) => t !== e);
|
|
@@ -1639,7 +1639,7 @@ function sl(e) {
|
|
|
1639
1639
|
return e != null && ("" + e).length !== 0;
|
|
1640
1640
|
}
|
|
1641
1641
|
const zi = {
|
|
1642
|
-
...
|
|
1642
|
+
...pt,
|
|
1643
1643
|
...Mi,
|
|
1644
1644
|
label: String,
|
|
1645
1645
|
stackLabel: Boolean,
|
|
@@ -1674,7 +1674,7 @@ const zi = {
|
|
|
1674
1674
|
maxlength: [Number, String]
|
|
1675
1675
|
}, Hn = ["update:modelValue", "clear", "focus", "blur"];
|
|
1676
1676
|
function Dn({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
1677
|
-
const { props: n, proxy: o } = le(),
|
|
1677
|
+
const { props: n, proxy: o } = le(), i = bt(n, o.$q), a = Bi({
|
|
1678
1678
|
required: e,
|
|
1679
1679
|
getValue: () => n.for
|
|
1680
1680
|
});
|
|
@@ -1682,7 +1682,7 @@ function Dn({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
1682
1682
|
requiredForAttr: e,
|
|
1683
1683
|
changeEvent: l,
|
|
1684
1684
|
tag: t === !0 ? d(() => n.tag) : { value: "label" },
|
|
1685
|
-
isDark:
|
|
1685
|
+
isDark: i,
|
|
1686
1686
|
editable: d(
|
|
1687
1687
|
() => n.disable !== !0 && n.readonly !== !0
|
|
1688
1688
|
),
|
|
@@ -1715,7 +1715,7 @@ function Dn({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
1715
1715
|
};
|
|
1716
1716
|
}
|
|
1717
1717
|
function jn(e) {
|
|
1718
|
-
const { props: t, emit: l, slots: n, attrs: o, proxy:
|
|
1718
|
+
const { props: t, emit: l, slots: n, attrs: o, proxy: i } = le(), { $q: a } = i;
|
|
1719
1719
|
let r = null;
|
|
1720
1720
|
e.hasValue === void 0 && (e.hasValue = d(() => sl(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (_) => {
|
|
1721
1721
|
l("update:modelValue", _);
|
|
@@ -1734,7 +1734,7 @@ function jn(e) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
}));
|
|
1736
1736
|
const {
|
|
1737
|
-
isDirtyModel:
|
|
1737
|
+
isDirtyModel: h,
|
|
1738
1738
|
hasRules: b,
|
|
1739
1739
|
hasError: s,
|
|
1740
1740
|
errorMessage: y,
|
|
@@ -1783,8 +1783,8 @@ function jn(e) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
function U(_) {
|
|
1785
1785
|
te(_), a.platform.is.mobile !== !0 ? (e.targetRef !== void 0 && e.targetRef.value || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), t.type === "file" && (e.inputRef.value.value = null), l("update:modelValue", null), e.changeEvent === !0 && l("change", null), l("clear", t.modelValue), ce(() => {
|
|
1786
|
-
const F =
|
|
1787
|
-
v(),
|
|
1786
|
+
const F = h.value;
|
|
1787
|
+
v(), h.value = F;
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
1790
|
function R(_) {
|
|
@@ -1793,27 +1793,27 @@ function jn(e) {
|
|
|
1793
1793
|
function K() {
|
|
1794
1794
|
const _ = [];
|
|
1795
1795
|
return n.prepend !== void 0 && _.push(
|
|
1796
|
-
|
|
1796
|
+
g("div", {
|
|
1797
1797
|
class: "q-field__prepend q-field__marginal row no-wrap items-center",
|
|
1798
1798
|
key: "prepend",
|
|
1799
|
-
onClick:
|
|
1799
|
+
onClick: ye
|
|
1800
1800
|
}, n.prepend())
|
|
1801
1801
|
), _.push(
|
|
1802
|
-
|
|
1802
|
+
g("div", {
|
|
1803
1803
|
class: "q-field__control-container col relative-position row no-wrap q-anchor--skip"
|
|
1804
1804
|
}, E())
|
|
1805
1805
|
), s.value === !0 && t.noErrorIcon === !1 && _.push(
|
|
1806
1806
|
Y("error", [
|
|
1807
|
-
|
|
1807
|
+
g(_e, { name: a.iconSet.field.error, color: "negative" })
|
|
1808
1808
|
])
|
|
1809
1809
|
), t.loading === !0 || e.innerLoading.value === !0 ? _.push(
|
|
1810
1810
|
Y(
|
|
1811
1811
|
"inner-loading-append",
|
|
1812
|
-
n.loading !== void 0 ? n.loading() : [
|
|
1812
|
+
n.loading !== void 0 ? n.loading() : [g(xn, { color: t.color })]
|
|
1813
1813
|
)
|
|
1814
1814
|
) : t.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && _.push(
|
|
1815
1815
|
Y("inner-clearable-append", [
|
|
1816
|
-
|
|
1816
|
+
g(_e, {
|
|
1817
1817
|
class: "q-field__focusable-action",
|
|
1818
1818
|
name: t.clearIcon || a.iconSet.field.clear,
|
|
1819
1819
|
tabindex: 0,
|
|
@@ -1825,10 +1825,10 @@ function jn(e) {
|
|
|
1825
1825
|
})
|
|
1826
1826
|
])
|
|
1827
1827
|
), n.append !== void 0 && _.push(
|
|
1828
|
-
|
|
1828
|
+
g("div", {
|
|
1829
1829
|
class: "q-field__append q-field__marginal row no-wrap items-center",
|
|
1830
1830
|
key: "append",
|
|
1831
|
-
onClick:
|
|
1831
|
+
onClick: ye
|
|
1832
1832
|
}, n.append())
|
|
1833
1833
|
), e.getInnerAppend !== void 0 && _.push(
|
|
1834
1834
|
Y("inner-append", e.getInnerAppend())
|
|
@@ -1839,13 +1839,13 @@ function jn(e) {
|
|
|
1839
1839
|
function E() {
|
|
1840
1840
|
const _ = [];
|
|
1841
1841
|
return t.prefix !== void 0 && t.prefix !== null && _.push(
|
|
1842
|
-
|
|
1842
|
+
g("div", {
|
|
1843
1843
|
class: "q-field__prefix no-pointer-events row items-center"
|
|
1844
1844
|
}, t.prefix)
|
|
1845
1845
|
), e.getShadowControl !== void 0 && e.hasShadow.value === !0 && _.push(
|
|
1846
1846
|
e.getShadowControl()
|
|
1847
1847
|
), e.getControl !== void 0 ? _.push(e.getControl()) : n.rawControl !== void 0 ? _.push(n.rawControl()) : n.control !== void 0 && _.push(
|
|
1848
|
-
|
|
1848
|
+
g("div", {
|
|
1849
1849
|
ref: e.targetRef,
|
|
1850
1850
|
class: "q-field__native row",
|
|
1851
1851
|
tabindex: -1,
|
|
@@ -1853,57 +1853,57 @@ function jn(e) {
|
|
|
1853
1853
|
"data-autofocus": t.autofocus === !0 || void 0
|
|
1854
1854
|
}, n.control(L.value))
|
|
1855
1855
|
), B.value === !0 && _.push(
|
|
1856
|
-
|
|
1856
|
+
g("div", {
|
|
1857
1857
|
class: k.value
|
|
1858
|
-
},
|
|
1858
|
+
}, pe(n.label, t.label))
|
|
1859
1859
|
), t.suffix !== void 0 && t.suffix !== null && _.push(
|
|
1860
|
-
|
|
1860
|
+
g("div", {
|
|
1861
1861
|
class: "q-field__suffix no-pointer-events row items-center"
|
|
1862
1862
|
}, t.suffix)
|
|
1863
|
-
), _.concat(
|
|
1863
|
+
), _.concat(pe(n.default));
|
|
1864
1864
|
}
|
|
1865
1865
|
function j() {
|
|
1866
1866
|
let _, F;
|
|
1867
|
-
s.value === !0 ? y.value !== null ? (_ = [
|
|
1868
|
-
const
|
|
1869
|
-
if (t.hideBottomSpace === !0 &&
|
|
1867
|
+
s.value === !0 ? y.value !== null ? (_ = [g("div", { role: "alert" }, y.value)], F = `q--slot-error-${y.value}`) : (_ = pe(n.error), F = "q--slot-error") : (t.hideHint !== !0 || e.focused.value === !0) && (t.hint !== void 0 ? (_ = [g("div", t.hint)], F = `q--slot-hint-${t.hint}`) : (_ = pe(n.hint), F = "q--slot-hint"));
|
|
1868
|
+
const me = t.counter === !0 || n.counter !== void 0;
|
|
1869
|
+
if (t.hideBottomSpace === !0 && me === !1 && _ === void 0)
|
|
1870
1870
|
return;
|
|
1871
|
-
const f =
|
|
1871
|
+
const f = g("div", {
|
|
1872
1872
|
key: F,
|
|
1873
1873
|
class: "q-field__messages col"
|
|
1874
1874
|
}, _);
|
|
1875
|
-
return
|
|
1875
|
+
return g("div", {
|
|
1876
1876
|
class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
1877
|
-
onClick:
|
|
1877
|
+
onClick: ye
|
|
1878
1878
|
}, [
|
|
1879
|
-
t.hideBottomSpace === !0 ? f :
|
|
1880
|
-
|
|
1879
|
+
t.hideBottomSpace === !0 ? f : g(mt, { name: "q-transition--field-message" }, () => f),
|
|
1880
|
+
me === !0 ? g("div", {
|
|
1881
1881
|
class: "q-field__counter"
|
|
1882
1882
|
}, n.counter !== void 0 ? n.counter() : e.computedCounter.value) : null
|
|
1883
1883
|
]);
|
|
1884
1884
|
}
|
|
1885
1885
|
function Y(_, F) {
|
|
1886
|
-
return F === null ? null :
|
|
1886
|
+
return F === null ? null : g("div", {
|
|
1887
1887
|
key: _,
|
|
1888
1888
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
1889
1889
|
}, F);
|
|
1890
1890
|
}
|
|
1891
|
-
let
|
|
1892
|
-
return
|
|
1893
|
-
|
|
1891
|
+
let ve = !1;
|
|
1892
|
+
return zt(() => {
|
|
1893
|
+
ve = !0;
|
|
1894
1894
|
}), bn(() => {
|
|
1895
|
-
|
|
1896
|
-
}), t.autofocus === !0 &&
|
|
1897
|
-
|
|
1895
|
+
ve === !0 && t.autofocus === !0 && i.focus();
|
|
1896
|
+
}), t.autofocus === !0 && nt(() => {
|
|
1897
|
+
i.focus();
|
|
1898
1898
|
}), fe(() => {
|
|
1899
1899
|
r !== null && clearTimeout(r);
|
|
1900
|
-
}), Object.assign(
|
|
1900
|
+
}), Object.assign(i, { focus: M, blur: P }), function() {
|
|
1901
1901
|
const F = e.getControl === void 0 && n.control === void 0 ? {
|
|
1902
1902
|
...e.splitAttrs.attributes.value,
|
|
1903
1903
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
1904
1904
|
...$.value
|
|
1905
1905
|
} : $.value;
|
|
1906
|
-
return
|
|
1906
|
+
return g(e.tag.value, {
|
|
1907
1907
|
ref: e.rootRef,
|
|
1908
1908
|
class: [
|
|
1909
1909
|
p.value,
|
|
@@ -1912,14 +1912,14 @@ function jn(e) {
|
|
|
1912
1912
|
style: o.style,
|
|
1913
1913
|
...F
|
|
1914
1914
|
}, [
|
|
1915
|
-
n.before !== void 0 ?
|
|
1915
|
+
n.before !== void 0 ? g("div", {
|
|
1916
1916
|
class: "q-field__before q-field__marginal row no-wrap items-center",
|
|
1917
|
-
onClick:
|
|
1917
|
+
onClick: ye
|
|
1918
1918
|
}, n.before()) : null,
|
|
1919
|
-
|
|
1919
|
+
g("div", {
|
|
1920
1920
|
class: "q-field__inner relative-position col self-stretch"
|
|
1921
1921
|
}, [
|
|
1922
|
-
|
|
1922
|
+
g("div", {
|
|
1923
1923
|
ref: e.controlRef,
|
|
1924
1924
|
class: O.value,
|
|
1925
1925
|
tabindex: -1,
|
|
@@ -1927,14 +1927,14 @@ function jn(e) {
|
|
|
1927
1927
|
}, K()),
|
|
1928
1928
|
m.value === !0 ? j() : null
|
|
1929
1929
|
]),
|
|
1930
|
-
n.after !== void 0 ?
|
|
1930
|
+
n.after !== void 0 ? g("div", {
|
|
1931
1931
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
1932
|
-
onClick:
|
|
1932
|
+
onClick: ye
|
|
1933
1933
|
}, n.after()) : null
|
|
1934
1934
|
]);
|
|
1935
1935
|
};
|
|
1936
1936
|
}
|
|
1937
|
-
const Ii =
|
|
1937
|
+
const Ii = re({
|
|
1938
1938
|
name: "QField",
|
|
1939
1939
|
inheritAttrs: !1,
|
|
1940
1940
|
props: {
|
|
@@ -1956,11 +1956,11 @@ const Ii = ve({
|
|
|
1956
1956
|
md: 14,
|
|
1957
1957
|
lg: 20,
|
|
1958
1958
|
xl: 24
|
|
1959
|
-
}, Hi =
|
|
1959
|
+
}, Hi = re({
|
|
1960
1960
|
name: "QChip",
|
|
1961
1961
|
props: {
|
|
1962
|
-
...
|
|
1963
|
-
...
|
|
1962
|
+
...pt,
|
|
1963
|
+
...It,
|
|
1964
1964
|
dense: Boolean,
|
|
1965
1965
|
icon: String,
|
|
1966
1966
|
iconRight: String,
|
|
@@ -1991,7 +1991,7 @@ const Ii = ve({
|
|
|
1991
1991
|
},
|
|
1992
1992
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
1993
1993
|
setup(e, { slots: t, emit: l }) {
|
|
1994
|
-
const { proxy: { $q: n } } = le(), o =
|
|
1994
|
+
const { proxy: { $q: n } } = le(), o = bt(e, n), i = Ft(e, Fi), a = d(() => e.selected === !0 || e.icon !== void 0), r = d(() => e.selected === !0 ? e.iconSelected || n.iconSet.chip.selected : e.icon), h = d(() => e.iconRemove || n.iconSet.chip.remove), b = d(
|
|
1995
1995
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
1996
1996
|
), s = d(() => {
|
|
1997
1997
|
const p = e.outline === !0 && e.color || e.textColor;
|
|
@@ -2017,27 +2017,27 @@ const Ii = ve({
|
|
|
2017
2017
|
function x() {
|
|
2018
2018
|
const p = [];
|
|
2019
2019
|
b.value === !0 && p.push(
|
|
2020
|
-
|
|
2020
|
+
g("div", { class: "q-focus-helper" })
|
|
2021
2021
|
), a.value === !0 && p.push(
|
|
2022
|
-
|
|
2022
|
+
g(_e, {
|
|
2023
2023
|
class: "q-chip__icon q-chip__icon--left",
|
|
2024
2024
|
name: r.value
|
|
2025
2025
|
})
|
|
2026
2026
|
);
|
|
2027
|
-
const O = e.label !== void 0 ? [
|
|
2027
|
+
const O = e.label !== void 0 ? [g("div", { class: "ellipsis" }, [e.label])] : void 0;
|
|
2028
2028
|
return p.push(
|
|
2029
|
-
|
|
2029
|
+
g("div", {
|
|
2030
2030
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
2031
2031
|
}, To(t.default, O))
|
|
2032
2032
|
), e.iconRight && p.push(
|
|
2033
|
-
|
|
2033
|
+
g(_e, {
|
|
2034
2034
|
class: "q-chip__icon q-chip__icon--right",
|
|
2035
2035
|
name: e.iconRight
|
|
2036
2036
|
})
|
|
2037
2037
|
), e.removable === !0 && p.push(
|
|
2038
|
-
|
|
2038
|
+
g(_e, {
|
|
2039
2039
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
2040
|
-
name:
|
|
2040
|
+
name: h.value,
|
|
2041
2041
|
...y.value.remove,
|
|
2042
2042
|
onClick: m,
|
|
2043
2043
|
onKeyup: m
|
|
@@ -2048,7 +2048,7 @@ const Ii = ve({
|
|
|
2048
2048
|
if (e.modelValue === !1) return;
|
|
2049
2049
|
const p = {
|
|
2050
2050
|
class: s.value,
|
|
2051
|
-
style:
|
|
2051
|
+
style: i.value
|
|
2052
2052
|
};
|
|
2053
2053
|
return b.value === !0 && Object.assign(
|
|
2054
2054
|
p,
|
|
@@ -2089,9 +2089,9 @@ function Wi({
|
|
|
2089
2089
|
configureAnchorEl: l
|
|
2090
2090
|
// optional
|
|
2091
2091
|
}) {
|
|
2092
|
-
const { props: n, proxy: o, emit:
|
|
2092
|
+
const { props: n, proxy: o, emit: i } = le(), a = A(null);
|
|
2093
2093
|
let r = null;
|
|
2094
|
-
function
|
|
2094
|
+
function h(c) {
|
|
2095
2095
|
return a.value === null ? !1 : c === void 0 || c.touches === void 0 || c.touches.length <= 1;
|
|
2096
2096
|
}
|
|
2097
2097
|
const b = {};
|
|
@@ -2103,16 +2103,16 @@ function Wi({
|
|
|
2103
2103
|
o.toggle(c), c.qAnchorHandled = !0;
|
|
2104
2104
|
},
|
|
2105
2105
|
toggleKey(c) {
|
|
2106
|
-
|
|
2106
|
+
He(c, 13) === !0 && b.toggle(c);
|
|
2107
2107
|
},
|
|
2108
2108
|
contextClick(c) {
|
|
2109
|
-
o.hide(c),
|
|
2109
|
+
o.hide(c), ye(c), ce(() => {
|
|
2110
2110
|
o.show(c), c.qAnchorHandled = !0;
|
|
2111
2111
|
});
|
|
2112
2112
|
},
|
|
2113
|
-
prevent:
|
|
2113
|
+
prevent: ye,
|
|
2114
2114
|
mobileTouch(c) {
|
|
2115
|
-
if (b.mobileCleanup(c),
|
|
2115
|
+
if (b.mobileCleanup(c), h(c) !== !0)
|
|
2116
2116
|
return;
|
|
2117
2117
|
o.hide(c), a.value.classList.add("non-selectable");
|
|
2118
2118
|
const m = c.target;
|
|
@@ -2171,32 +2171,32 @@ function Wi({
|
|
|
2171
2171
|
a.value !== null && s(), v();
|
|
2172
2172
|
}), J(() => n.noParentEvent, (c) => {
|
|
2173
2173
|
a.value !== null && (c === !0 ? s() : l());
|
|
2174
|
-
}),
|
|
2175
|
-
v(), t !== !0 && n.modelValue === !0 && a.value === null &&
|
|
2174
|
+
}), nt(() => {
|
|
2175
|
+
v(), t !== !0 && n.modelValue === !0 && a.value === null && i("update:modelValue", !1);
|
|
2176
2176
|
}), fe(() => {
|
|
2177
2177
|
r !== null && clearTimeout(r), s();
|
|
2178
2178
|
}), {
|
|
2179
2179
|
anchorEl: a,
|
|
2180
|
-
canShow:
|
|
2180
|
+
canShow: h,
|
|
2181
2181
|
anchorEvents: b
|
|
2182
2182
|
};
|
|
2183
2183
|
}
|
|
2184
2184
|
function Ki(e, t) {
|
|
2185
2185
|
const l = A(null);
|
|
2186
2186
|
let n;
|
|
2187
|
-
function o(r,
|
|
2188
|
-
const b = `${
|
|
2189
|
-
r !== window && r[b]("scroll", s, ae.passive), window[b]("scroll", s, ae.passive), n =
|
|
2187
|
+
function o(r, h) {
|
|
2188
|
+
const b = `${h !== void 0 ? "add" : "remove"}EventListener`, s = h !== void 0 ? h : n;
|
|
2189
|
+
r !== window && r[b]("scroll", s, ae.passive), window[b]("scroll", s, ae.passive), n = h;
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function i() {
|
|
2192
2192
|
l.value !== null && (o(l.value), l.value = null);
|
|
2193
2193
|
}
|
|
2194
2194
|
const a = J(() => e.noParentEvent, () => {
|
|
2195
|
-
l.value !== null && (
|
|
2195
|
+
l.value !== null && (i(), t());
|
|
2196
2196
|
});
|
|
2197
2197
|
return fe(a), {
|
|
2198
2198
|
localScrollTarget: l,
|
|
2199
|
-
unconfigureScrollTarget:
|
|
2199
|
+
unconfigureScrollTarget: i,
|
|
2200
2200
|
changeScrollEvent: o
|
|
2201
2201
|
};
|
|
2202
2202
|
}
|
|
@@ -2222,10 +2222,10 @@ function Kn({
|
|
|
2222
2222
|
// optional
|
|
2223
2223
|
handleHide: o,
|
|
2224
2224
|
// optional
|
|
2225
|
-
processOnMount:
|
|
2225
|
+
processOnMount: i
|
|
2226
2226
|
// optional
|
|
2227
2227
|
}) {
|
|
2228
|
-
const a = le(), { props: r, emit:
|
|
2228
|
+
const a = le(), { props: r, emit: h, proxy: b } = a;
|
|
2229
2229
|
let s;
|
|
2230
2230
|
function y(B) {
|
|
2231
2231
|
e.value === !0 ? m(B) : v(B);
|
|
@@ -2234,30 +2234,30 @@ function Kn({
|
|
|
2234
2234
|
if (r.disable === !0 || B !== void 0 && B.qAnchorHandled === !0 || t !== void 0 && t(B) !== !0)
|
|
2235
2235
|
return;
|
|
2236
2236
|
const k = r["onUpdate:modelValue"] !== void 0;
|
|
2237
|
-
k === !0 && (
|
|
2237
|
+
k === !0 && (h("update:modelValue", !0), s = B, ce(() => {
|
|
2238
2238
|
s === B && (s = void 0);
|
|
2239
2239
|
})), (r.modelValue === null || k === !1) && c(B);
|
|
2240
2240
|
}
|
|
2241
2241
|
function c(B) {
|
|
2242
|
-
e.value !== !0 && (e.value = !0,
|
|
2242
|
+
e.value !== !0 && (e.value = !0, h("beforeShow", B), n !== void 0 ? n(B) : h("show", B));
|
|
2243
2243
|
}
|
|
2244
2244
|
function m(B) {
|
|
2245
2245
|
if (r.disable === !0)
|
|
2246
2246
|
return;
|
|
2247
2247
|
const k = r["onUpdate:modelValue"] !== void 0;
|
|
2248
|
-
k === !0 && (
|
|
2248
|
+
k === !0 && (h("update:modelValue", !1), s = B, ce(() => {
|
|
2249
2249
|
s === B && (s = void 0);
|
|
2250
2250
|
})), (r.modelValue === null || k === !1) && x(B);
|
|
2251
2251
|
}
|
|
2252
2252
|
function x(B) {
|
|
2253
|
-
e.value !== !1 && (e.value = !1,
|
|
2253
|
+
e.value !== !1 && (e.value = !1, h("beforeHide", B), o !== void 0 ? o(B) : h("hide", B));
|
|
2254
2254
|
}
|
|
2255
2255
|
function p(B) {
|
|
2256
|
-
r.disable === !0 && B === !0 ? r["onUpdate:modelValue"] !== void 0 &&
|
|
2256
|
+
r.disable === !0 && B === !0 ? r["onUpdate:modelValue"] !== void 0 && h("update:modelValue", !1) : B === !0 !== e.value && (B === !0 ? c : x)(s);
|
|
2257
2257
|
}
|
|
2258
2258
|
J(() => r.modelValue, p), l !== void 0 && Tn(a) === !0 && J(() => b.$route.fullPath, () => {
|
|
2259
2259
|
l.value === !0 && e.value === !0 && m();
|
|
2260
|
-
}),
|
|
2260
|
+
}), nt(() => {
|
|
2261
2261
|
p(r.modelValue);
|
|
2262
2262
|
});
|
|
2263
2263
|
const O = { show: v, hide: m, toggle: y };
|
|
@@ -2276,7 +2276,7 @@ function Yi(e, t) {
|
|
|
2276
2276
|
function Xi(e) {
|
|
2277
2277
|
e.remove();
|
|
2278
2278
|
}
|
|
2279
|
-
const
|
|
2279
|
+
const vt = [];
|
|
2280
2280
|
function Gi(e, t) {
|
|
2281
2281
|
do {
|
|
2282
2282
|
if (e.$options.name === "QMenu") {
|
|
@@ -2289,7 +2289,7 @@ function Gi(e, t) {
|
|
|
2289
2289
|
e = Qt(e);
|
|
2290
2290
|
} while (e != null);
|
|
2291
2291
|
}
|
|
2292
|
-
const Zi =
|
|
2292
|
+
const Zi = re({
|
|
2293
2293
|
name: "QPortal",
|
|
2294
2294
|
setup(e, { slots: t }) {
|
|
2295
2295
|
return () => t.default();
|
|
@@ -2306,21 +2306,21 @@ function Ji(e) {
|
|
|
2306
2306
|
return !1;
|
|
2307
2307
|
}
|
|
2308
2308
|
function Qn(e, t, l, n) {
|
|
2309
|
-
const o = A(!1),
|
|
2309
|
+
const o = A(!1), i = A(!1);
|
|
2310
2310
|
let a = null;
|
|
2311
|
-
const r = {},
|
|
2311
|
+
const r = {}, h = n === "dialog" && Ji(e);
|
|
2312
2312
|
function b(y) {
|
|
2313
2313
|
if (y === !0) {
|
|
2314
|
-
Ql(r),
|
|
2314
|
+
Ql(r), i.value = !0;
|
|
2315
2315
|
return;
|
|
2316
2316
|
}
|
|
2317
|
-
|
|
2317
|
+
i.value = !1, o.value === !1 && (h === !1 && a === null && (a = Yi(!1, n)), o.value = !0, vt.push(e.proxy), Ai(r));
|
|
2318
2318
|
}
|
|
2319
2319
|
function s(y) {
|
|
2320
|
-
if (
|
|
2320
|
+
if (i.value = !1, y !== !0) return;
|
|
2321
2321
|
Ql(r), o.value = !1;
|
|
2322
|
-
const v =
|
|
2323
|
-
v !== -1 &&
|
|
2322
|
+
const v = vt.indexOf(e.proxy);
|
|
2323
|
+
v !== -1 && vt.splice(v, 1), a !== null && (Xi(a), a = null);
|
|
2324
2324
|
}
|
|
2325
2325
|
return xo(() => {
|
|
2326
2326
|
s(!0);
|
|
@@ -2328,8 +2328,8 @@ function Qn(e, t, l, n) {
|
|
|
2328
2328
|
showPortal: b,
|
|
2329
2329
|
hidePortal: s,
|
|
2330
2330
|
portalIsActive: o,
|
|
2331
|
-
portalIsAccessible:
|
|
2332
|
-
renderPortal: () =>
|
|
2331
|
+
portalIsAccessible: i,
|
|
2332
|
+
renderPortal: () => h === !0 ? l() : o.value === !0 ? [g(Co, { to: a }, g(Zi, l))] : void 0
|
|
2333
2333
|
};
|
|
2334
2334
|
}
|
|
2335
2335
|
const Un = {
|
|
@@ -2371,7 +2371,7 @@ function Xn() {
|
|
|
2371
2371
|
function l() {
|
|
2372
2372
|
e = void 0;
|
|
2373
2373
|
}
|
|
2374
|
-
return
|
|
2374
|
+
return zt(l), fe(l), {
|
|
2375
2375
|
removeTick: l,
|
|
2376
2376
|
registerTick(n) {
|
|
2377
2377
|
e = n, ce(() => {
|
|
@@ -2386,7 +2386,7 @@ function Gn() {
|
|
|
2386
2386
|
function l() {
|
|
2387
2387
|
e !== null && (clearTimeout(e), e = null);
|
|
2388
2388
|
}
|
|
2389
|
-
return
|
|
2389
|
+
return zt(l), fe(l), {
|
|
2390
2390
|
removeTimeout: l,
|
|
2391
2391
|
registerTimeout(n, o) {
|
|
2392
2392
|
l(), $n(t) === !1 && (e = setTimeout(() => {
|
|
@@ -2411,10 +2411,10 @@ function nu(e) {
|
|
|
2411
2411
|
function ou(e) {
|
|
2412
2412
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
2413
2413
|
}
|
|
2414
|
-
let
|
|
2414
|
+
let Vt;
|
|
2415
2415
|
function iu() {
|
|
2416
|
-
if (
|
|
2417
|
-
return
|
|
2416
|
+
if (Vt !== void 0)
|
|
2417
|
+
return Vt;
|
|
2418
2418
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
2419
2419
|
ol(e, {
|
|
2420
2420
|
width: "100%",
|
|
@@ -2431,40 +2431,40 @@ function iu() {
|
|
|
2431
2431
|
const l = e.offsetWidth;
|
|
2432
2432
|
t.style.overflow = "scroll";
|
|
2433
2433
|
let n = e.offsetWidth;
|
|
2434
|
-
return l === n && (n = t.clientWidth), t.remove(),
|
|
2434
|
+
return l === n && (n = t.clientWidth), t.remove(), Vt = l - n, Vt;
|
|
2435
2435
|
}
|
|
2436
2436
|
function uu(e, t = !0) {
|
|
2437
2437
|
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"]));
|
|
2438
2438
|
}
|
|
2439
|
-
const
|
|
2440
|
-
let
|
|
2439
|
+
const Ie = [];
|
|
2440
|
+
let lt;
|
|
2441
2441
|
function au(e) {
|
|
2442
|
-
|
|
2442
|
+
lt = e.keyCode === 27;
|
|
2443
2443
|
}
|
|
2444
2444
|
function ru() {
|
|
2445
|
-
|
|
2445
|
+
lt === !0 && (lt = !1);
|
|
2446
2446
|
}
|
|
2447
2447
|
function su(e) {
|
|
2448
|
-
|
|
2448
|
+
lt === !0 && (lt = !1, He(e, 27) === !0 && Ie[Ie.length - 1](e));
|
|
2449
2449
|
}
|
|
2450
2450
|
function Zn(e) {
|
|
2451
|
-
window[e]("keydown", au), window[e]("blur", ru), window[e]("keyup", su),
|
|
2451
|
+
window[e]("keydown", au), window[e]("blur", ru), window[e]("keyup", su), lt = !1;
|
|
2452
2452
|
}
|
|
2453
2453
|
function Jn(e) {
|
|
2454
|
-
de.is.desktop === !0 && (
|
|
2454
|
+
de.is.desktop === !0 && (Ie.push(e), Ie.length === 1 && Zn("addEventListener"));
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2457
|
-
const t =
|
|
2458
|
-
t !== -1 && (
|
|
2456
|
+
function Mt(e) {
|
|
2457
|
+
const t = Ie.indexOf(e);
|
|
2458
|
+
t !== -1 && (Ie.splice(t, 1), Ie.length === 0 && Zn("removeEventListener"));
|
|
2459
2459
|
}
|
|
2460
|
-
const { notPassiveCapture:
|
|
2461
|
-
function
|
|
2460
|
+
const { notPassiveCapture: Ot } = ae, Fe = [];
|
|
2461
|
+
function At(e) {
|
|
2462
2462
|
const t = e.target;
|
|
2463
2463
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
2464
2464
|
return;
|
|
2465
|
-
let l =
|
|
2465
|
+
let l = vt.length - 1;
|
|
2466
2466
|
for (; l >= 0; ) {
|
|
2467
|
-
const n =
|
|
2467
|
+
const n = vt[l].$;
|
|
2468
2468
|
if (n.type.name === "QTooltip") {
|
|
2469
2469
|
l--;
|
|
2470
2470
|
continue;
|
|
@@ -2475,8 +2475,8 @@ function Ot(e) {
|
|
|
2475
2475
|
return;
|
|
2476
2476
|
l--;
|
|
2477
2477
|
}
|
|
2478
|
-
for (let n =
|
|
2479
|
-
const o =
|
|
2478
|
+
for (let n = Fe.length - 1; n >= 0; n--) {
|
|
2479
|
+
const o = Fe[n];
|
|
2480
2480
|
if ((o.anchorEl.value === null || o.anchorEl.value.contains(t) === !1) && (t === document.body || o.innerRef.value !== null && o.innerRef.value.contains(t) === !1))
|
|
2481
2481
|
e.qClickOutside = !0, o.onClickOutside(e);
|
|
2482
2482
|
else
|
|
@@ -2484,11 +2484,11 @@ function Ot(e) {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
2486
|
function cu(e) {
|
|
2487
|
-
|
|
2487
|
+
Fe.push(e), Fe.length === 1 && (document.addEventListener("mousedown", At, Ot), document.addEventListener("touchstart", At, Ot));
|
|
2488
2488
|
}
|
|
2489
2489
|
function Yl(e) {
|
|
2490
|
-
const t =
|
|
2491
|
-
t !== -1 && (
|
|
2490
|
+
const t = Fe.findIndex((l) => l === e);
|
|
2491
|
+
t !== -1 && (Fe.splice(t, 1), Fe.length === 0 && (document.removeEventListener("mousedown", At, Ot), document.removeEventListener("touchstart", At, Ot)));
|
|
2492
2492
|
}
|
|
2493
2493
|
let Xl, Gl;
|
|
2494
2494
|
function Zl(e) {
|
|
@@ -2515,16 +2515,16 @@ function Jl(e, t) {
|
|
|
2515
2515
|
};
|
|
2516
2516
|
}
|
|
2517
2517
|
function fu(e, t) {
|
|
2518
|
-
let { top: l, left: n, right: o, bottom:
|
|
2519
|
-
return t !== void 0 && (l -= t[1], n -= t[0],
|
|
2518
|
+
let { top: l, left: n, right: o, bottom: i, width: a, height: r } = e.getBoundingClientRect();
|
|
2519
|
+
return t !== void 0 && (l -= t[1], n -= t[0], i += t[1], o += t[0], a += t[0], r += t[1]), {
|
|
2520
2520
|
top: l,
|
|
2521
|
-
bottom:
|
|
2521
|
+
bottom: i,
|
|
2522
2522
|
height: r,
|
|
2523
2523
|
left: n,
|
|
2524
2524
|
right: o,
|
|
2525
2525
|
width: a,
|
|
2526
2526
|
middle: n + (o - n) / 2,
|
|
2527
|
-
center: l + (
|
|
2527
|
+
center: l + (i - l) / 2
|
|
2528
2528
|
};
|
|
2529
2529
|
}
|
|
2530
2530
|
function vu(e, t, l) {
|
|
@@ -2569,10 +2569,10 @@ function eo(e, t = 0) {
|
|
|
2569
2569
|
targetEl: l,
|
|
2570
2570
|
offset: n,
|
|
2571
2571
|
anchorEl: o,
|
|
2572
|
-
anchorOrigin:
|
|
2572
|
+
anchorOrigin: i,
|
|
2573
2573
|
selfOrigin: a,
|
|
2574
2574
|
absoluteOffset: r,
|
|
2575
|
-
fit:
|
|
2575
|
+
fit: h,
|
|
2576
2576
|
cover: b,
|
|
2577
2577
|
maxHeight: s,
|
|
2578
2578
|
maxWidth: y
|
|
@@ -2591,16 +2591,16 @@ function eo(e, t = 0) {
|
|
|
2591
2591
|
maxHeight: s,
|
|
2592
2592
|
visibility: "visible"
|
|
2593
2593
|
});
|
|
2594
|
-
const { offsetWidth: x, offsetHeight: p } = l, { elWidth: O, elHeight: B } =
|
|
2594
|
+
const { offsetWidth: x, offsetHeight: p } = l, { elWidth: O, elHeight: B } = h === !0 || b === !0 ? { elWidth: Math.max(m.width, x), elHeight: b === !0 ? Math.max(m.height, p) : p } : { elWidth: x, elHeight: p };
|
|
2595
2595
|
let k = { maxWidth: y, maxHeight: s };
|
|
2596
|
-
(
|
|
2596
|
+
(h === !0 || b === !0) && (k.minWidth = m.width + "px", b === !0 && (k.minHeight = m.height + "px")), Object.assign(l.style, k);
|
|
2597
2597
|
const L = mu(O, B);
|
|
2598
|
-
let $ = en(m, L,
|
|
2598
|
+
let $ = en(m, L, i, a);
|
|
2599
2599
|
if (r === void 0 || n === void 0)
|
|
2600
|
-
Gt($, m, L,
|
|
2600
|
+
Gt($, m, L, i, a);
|
|
2601
2601
|
else {
|
|
2602
2602
|
const { top: V, left: M } = $;
|
|
2603
|
-
Gt($, m, L,
|
|
2603
|
+
Gt($, m, L, i, a);
|
|
2604
2604
|
let P = !1;
|
|
2605
2605
|
if ($.top !== V) {
|
|
2606
2606
|
P = !0;
|
|
@@ -2612,7 +2612,7 @@ function eo(e, t = 0) {
|
|
|
2612
2612
|
const W = 2 * n[0];
|
|
2613
2613
|
m.middle = m.left -= W, m.right -= W + 2;
|
|
2614
2614
|
}
|
|
2615
|
-
P === !0 && ($ = en(m, L,
|
|
2615
|
+
P === !0 && ($ = en(m, L, i, a), Gt($, m, L, i, a));
|
|
2616
2616
|
}
|
|
2617
2617
|
k = {
|
|
2618
2618
|
top: $.top + "px",
|
|
@@ -2620,21 +2620,21 @@ function eo(e, t = 0) {
|
|
|
2620
2620
|
}, $.maxHeight !== void 0 && (k.maxHeight = $.maxHeight + "px", m.height > $.maxHeight && (k.minHeight = k.maxHeight)), $.maxWidth !== void 0 && (k.maxWidth = $.maxWidth + "px", m.width > $.maxWidth && (k.minWidth = k.maxWidth)), Object.assign(l.style, k), l.scrollTop !== c && (l.scrollTop = c), l.scrollLeft !== v && (l.scrollLeft = v);
|
|
2621
2621
|
}
|
|
2622
2622
|
function Gt(e, t, l, n, o) {
|
|
2623
|
-
const
|
|
2624
|
-
if (e.top < 0 || e.top +
|
|
2623
|
+
const i = l.bottom, a = l.right, r = iu(), h = window.innerHeight - r, b = document.body.clientWidth;
|
|
2624
|
+
if (e.top < 0 || e.top + i > h)
|
|
2625
2625
|
if (o.vertical === "center")
|
|
2626
|
-
e.top = t[n.vertical] >
|
|
2627
|
-
else if (t[n.vertical] >
|
|
2626
|
+
e.top = t[n.vertical] > h / 2 ? Math.max(0, h - i) : 0, e.maxHeight = Math.min(i, h);
|
|
2627
|
+
else if (t[n.vertical] > h / 2) {
|
|
2628
2628
|
const s = Math.min(
|
|
2629
|
-
|
|
2629
|
+
h,
|
|
2630
2630
|
n.vertical === "center" ? t.center : n.vertical === o.vertical ? t.bottom : t.top
|
|
2631
2631
|
);
|
|
2632
|
-
e.maxHeight = Math.min(
|
|
2632
|
+
e.maxHeight = Math.min(i, s), e.top = Math.max(0, s - i);
|
|
2633
2633
|
} else
|
|
2634
2634
|
e.top = Math.max(
|
|
2635
2635
|
0,
|
|
2636
2636
|
n.vertical === "center" ? t.center : n.vertical === o.vertical ? t.top : t.bottom
|
|
2637
|
-
), e.maxHeight = Math.min(
|
|
2637
|
+
), e.maxHeight = Math.min(i, h - e.top);
|
|
2638
2638
|
if (e.left < 0 || e.left + a > b)
|
|
2639
2639
|
if (e.maxWidth = Math.min(a, b), o.horizontal === "middle")
|
|
2640
2640
|
e.left = t[n.horizontal] > b / 2 ? Math.max(0, b - a) : 0;
|
|
@@ -2650,13 +2650,13 @@ function Gt(e, t, l, n, o) {
|
|
|
2650
2650
|
n.horizontal === "middle" ? t.middle : n.horizontal === o.horizontal ? t.left : t.right
|
|
2651
2651
|
), e.maxWidth = Math.min(a, b - e.left);
|
|
2652
2652
|
}
|
|
2653
|
-
const gu =
|
|
2653
|
+
const gu = re({
|
|
2654
2654
|
name: "QMenu",
|
|
2655
2655
|
inheritAttrs: !1,
|
|
2656
2656
|
props: {
|
|
2657
2657
|
...Ni,
|
|
2658
2658
|
...Nn,
|
|
2659
|
-
...
|
|
2659
|
+
...pt,
|
|
2660
2660
|
...Un,
|
|
2661
2661
|
persistent: Boolean,
|
|
2662
2662
|
autoClose: Boolean,
|
|
@@ -2696,17 +2696,17 @@ const gu = ve({
|
|
|
2696
2696
|
"escapeKey"
|
|
2697
2697
|
],
|
|
2698
2698
|
setup(e, { slots: t, emit: l, attrs: n }) {
|
|
2699
|
-
let o = null,
|
|
2700
|
-
const
|
|
2699
|
+
let o = null, i, a, r;
|
|
2700
|
+
const h = le(), { proxy: b } = h, { $q: s } = b, y = A(null), v = A(!1), c = d(
|
|
2701
2701
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
2702
|
-
), m =
|
|
2702
|
+
), m = bt(e, s), { registerTick: x, removeTick: p } = Xn(), { registerTimeout: O } = Gn(), { transitionProps: B, transitionStyle: k } = Yn(e), { localScrollTarget: L, changeScrollEvent: $, unconfigureScrollTarget: V } = Ki(e, H), { anchorEl: M, canShow: P } = Wi({ showing: v }), { hide: W } = Kn({
|
|
2703
2703
|
showing: v,
|
|
2704
2704
|
canShow: P,
|
|
2705
|
-
handleShow:
|
|
2705
|
+
handleShow: me,
|
|
2706
2706
|
handleHide: f,
|
|
2707
2707
|
hideOnRouteChange: c,
|
|
2708
2708
|
processOnMount: !0
|
|
2709
|
-
}), { showPortal: G, hidePortal: U, renderPortal: R } = Qn(
|
|
2709
|
+
}), { showPortal: G, hidePortal: U, renderPortal: R } = Qn(h, y, Z, "menu"), K = {
|
|
2710
2710
|
anchorEl: M,
|
|
2711
2711
|
innerRef: y,
|
|
2712
2712
|
onClickOutside(S) {
|
|
@@ -2721,11 +2721,11 @@ const gu = ve({
|
|
|
2721
2721
|
)
|
|
2722
2722
|
), j = d(() => e.cover === !0 ? E.value : Jl(e.self || "top start", s.lang.rtl)), Y = d(
|
|
2723
2723
|
() => (e.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
2724
|
-
),
|
|
2724
|
+
), ve = d(() => e.autoClose === !0 ? { onClick: T } : {}), _ = d(
|
|
2725
2725
|
() => v.value === !0 && e.persistent !== !0
|
|
2726
2726
|
);
|
|
2727
2727
|
J(_, (S) => {
|
|
2728
|
-
S === !0 ? (Jn(I), cu(K)) : (
|
|
2728
|
+
S === !0 ? (Jn(I), cu(K)) : (Mt(I), Yl(K));
|
|
2729
2729
|
});
|
|
2730
2730
|
function F() {
|
|
2731
2731
|
ml(() => {
|
|
@@ -2733,12 +2733,12 @@ const gu = ve({
|
|
|
2733
2733
|
S && S.contains(document.activeElement) !== !0 && (S = S.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || S.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || S.querySelector("[autofocus], [data-autofocus]") || S, S.focus({ preventScroll: !0 }));
|
|
2734
2734
|
});
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2737
|
-
if (o = e.noRefocus === !1 ? document.activeElement : null, vl(D), G(), H(),
|
|
2736
|
+
function me(S) {
|
|
2737
|
+
if (o = e.noRefocus === !1 ? document.activeElement : null, vl(D), G(), H(), i = void 0, S !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
2738
2738
|
const ne = qn(S);
|
|
2739
2739
|
if (ne.left !== void 0) {
|
|
2740
|
-
const { top:
|
|
2741
|
-
|
|
2740
|
+
const { top: we, left: De } = M.value.getBoundingClientRect();
|
|
2741
|
+
i = { left: ne.left - De, top: ne.top - we };
|
|
2742
2742
|
}
|
|
2743
2743
|
}
|
|
2744
2744
|
a === void 0 && (a = J(
|
|
@@ -2757,7 +2757,7 @@ const gu = ve({
|
|
|
2757
2757
|
}, e.transitionDuration);
|
|
2758
2758
|
}
|
|
2759
2759
|
function w(S) {
|
|
2760
|
-
|
|
2760
|
+
i = void 0, a !== void 0 && (a(), a = void 0), (S === !0 || v.value === !0) && (Lt(D), V(), Yl(K), Mt(I)), S !== !0 && (o = null);
|
|
2761
2761
|
}
|
|
2762
2762
|
function H() {
|
|
2763
2763
|
(M.value !== null || e.scrollTarget !== void 0) && (L.value = lu(M.value, e.scrollTarget), $(L.value, z));
|
|
@@ -2778,7 +2778,7 @@ const gu = ve({
|
|
|
2778
2778
|
anchorEl: M.value,
|
|
2779
2779
|
anchorOrigin: E.value,
|
|
2780
2780
|
selfOrigin: j.value,
|
|
2781
|
-
absoluteOffset:
|
|
2781
|
+
absoluteOffset: i,
|
|
2782
2782
|
fit: e.fit,
|
|
2783
2783
|
cover: e.cover,
|
|
2784
2784
|
maxHeight: e.maxHeight,
|
|
@@ -2786,10 +2786,10 @@ const gu = ve({
|
|
|
2786
2786
|
});
|
|
2787
2787
|
}
|
|
2788
2788
|
function Z() {
|
|
2789
|
-
return
|
|
2790
|
-
|
|
2789
|
+
return g(
|
|
2790
|
+
mt,
|
|
2791
2791
|
B.value,
|
|
2792
|
-
() => v.value === !0 ?
|
|
2792
|
+
() => v.value === !0 ? g("div", {
|
|
2793
2793
|
role: "menu",
|
|
2794
2794
|
...n,
|
|
2795
2795
|
ref: y,
|
|
@@ -2802,8 +2802,8 @@ const gu = ve({
|
|
|
2802
2802
|
n.style,
|
|
2803
2803
|
k.value
|
|
2804
2804
|
],
|
|
2805
|
-
...
|
|
2806
|
-
},
|
|
2805
|
+
...ve.value
|
|
2806
|
+
}, pe(t.default)) : null
|
|
2807
2807
|
);
|
|
2808
2808
|
}
|
|
2809
2809
|
return fe(w), Object.assign(b, { focus: F, updatePosition: z }), R;
|
|
@@ -2820,7 +2820,7 @@ function hu(e, t, l) {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
|
-
let
|
|
2823
|
+
let rt = 0, Zt, Jt, dt, el = !1, tn, ln, nn, Me = null;
|
|
2824
2824
|
function pu(e) {
|
|
2825
2825
|
bu(e) && te(e);
|
|
2826
2826
|
}
|
|
@@ -2828,8 +2828,8 @@ function bu(e) {
|
|
|
2828
2828
|
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop"))
|
|
2829
2829
|
return !0;
|
|
2830
2830
|
const t = jo(e), l = e.shiftKey && !e.deltaX, n = !l && Math.abs(e.deltaX) <= Math.abs(e.deltaY), o = l || n ? e.deltaY : e.deltaX;
|
|
2831
|
-
for (let
|
|
2832
|
-
const a = t[
|
|
2831
|
+
for (let i = 0; i < t.length; i++) {
|
|
2832
|
+
const a = t[i];
|
|
2833
2833
|
if (uu(a, n))
|
|
2834
2834
|
return n ? o < 0 && a.scrollTop === 0 ? !0 : o > 0 && a.scrollTop + a.clientHeight === a.scrollHeight : o < 0 && a.scrollLeft === 0 ? !0 : o > 0 && a.scrollLeft + a.clientWidth === a.scrollWidth;
|
|
2835
2835
|
}
|
|
@@ -2838,32 +2838,32 @@ function bu(e) {
|
|
|
2838
2838
|
function on(e) {
|
|
2839
2839
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
2840
2840
|
}
|
|
2841
|
-
function
|
|
2841
|
+
function Bt(e) {
|
|
2842
2842
|
el !== !0 && (el = !0, requestAnimationFrame(() => {
|
|
2843
2843
|
el = !1;
|
|
2844
2844
|
const { height: t } = e.target, { clientHeight: l, scrollTop: n } = document.scrollingElement;
|
|
2845
|
-
(
|
|
2845
|
+
(dt === void 0 || t !== window.innerHeight) && (dt = l - t, document.scrollingElement.scrollTop = n), n > dt && (document.scrollingElement.scrollTop -= Math.ceil((n - dt) / 8));
|
|
2846
2846
|
}));
|
|
2847
2847
|
}
|
|
2848
2848
|
function un(e) {
|
|
2849
2849
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
2850
2850
|
if (e === "add") {
|
|
2851
2851
|
const { overflowY: n, overflowX: o } = window.getComputedStyle(t);
|
|
2852
|
-
Zt = ou(window), Jt = nu(window), tn = t.style.left, ln = t.style.top, nn = window.location.href, t.style.left = `-${Zt}px`, t.style.top = `-${Jt}px`, o !== "hidden" && (o === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, de.is.ios === !0 && (l === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize",
|
|
2852
|
+
Zt = ou(window), Jt = nu(window), tn = t.style.left, ln = t.style.top, nn = window.location.href, t.style.left = `-${Zt}px`, t.style.top = `-${Jt}px`, o !== "hidden" && (o === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, de.is.ios === !0 && (l === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Bt, ae.passiveCapture), window.visualViewport.addEventListener("scroll", Bt, ae.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", on, ae.passiveCapture));
|
|
2853
2853
|
}
|
|
2854
|
-
de.is.desktop === !0 && de.is.mac === !0 && window[`${e}EventListener`]("wheel", pu, ae.notPassive), e === "remove" && (de.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize",
|
|
2854
|
+
de.is.desktop === !0 && de.is.mac === !0 && window[`${e}EventListener`]("wheel", pu, ae.notPassive), e === "remove" && (de.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", Bt, ae.passiveCapture), window.visualViewport.removeEventListener("scroll", Bt, ae.passiveCapture)) : window.removeEventListener("scroll", on, ae.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 = tn, t.style.top = ln, window.location.href === nn && window.scrollTo(Zt, Jt), dt = void 0);
|
|
2855
2855
|
}
|
|
2856
2856
|
function yu(e) {
|
|
2857
2857
|
let t = "add";
|
|
2858
2858
|
if (e === !0) {
|
|
2859
|
-
if (
|
|
2859
|
+
if (rt++, Me !== null) {
|
|
2860
2860
|
clearTimeout(Me), Me = null;
|
|
2861
2861
|
return;
|
|
2862
2862
|
}
|
|
2863
|
-
if (
|
|
2863
|
+
if (rt > 1)
|
|
2864
2864
|
return;
|
|
2865
2865
|
} else {
|
|
2866
|
-
if (
|
|
2866
|
+
if (rt === 0 || (rt--, rt > 0))
|
|
2867
2867
|
return;
|
|
2868
2868
|
if (t = "remove", de.is.ios === !0 && de.is.nativeMobile === !0) {
|
|
2869
2869
|
Me !== null && clearTimeout(Me), Me = setTimeout(() => {
|
|
@@ -2882,7 +2882,7 @@ function wu() {
|
|
|
2882
2882
|
}
|
|
2883
2883
|
};
|
|
2884
2884
|
}
|
|
2885
|
-
let
|
|
2885
|
+
let Tt = 0;
|
|
2886
2886
|
const Su = {
|
|
2887
2887
|
standard: "fixed-full flex-center",
|
|
2888
2888
|
top: "fixed-top justify-center",
|
|
@@ -2895,7 +2895,7 @@ const Su = {
|
|
|
2895
2895
|
bottom: ["slide-up", "slide-down"],
|
|
2896
2896
|
right: ["slide-left", "slide-right"],
|
|
2897
2897
|
left: ["slide-right", "slide-left"]
|
|
2898
|
-
}, ku =
|
|
2898
|
+
}, ku = re({
|
|
2899
2899
|
name: "QDialog",
|
|
2900
2900
|
inheritAttrs: !1,
|
|
2901
2901
|
props: {
|
|
@@ -2933,8 +2933,8 @@ const Su = {
|
|
|
2933
2933
|
"escapeKey"
|
|
2934
2934
|
],
|
|
2935
2935
|
setup(e, { slots: t, emit: l, attrs: n }) {
|
|
2936
|
-
const o = le(),
|
|
2937
|
-
let
|
|
2936
|
+
const o = le(), i = A(null), a = A(!1), r = A(!1);
|
|
2937
|
+
let h = null, b = null, s, y;
|
|
2938
2938
|
const v = d(
|
|
2939
2939
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
2940
2940
|
), { preventBodyScroll: c } = wu(), { registerTimeout: m } = Gn(), { registerTick: x, removeTick: p } = Xn(), { transitionProps: O, transitionStyle: B } = Yn(
|
|
@@ -2943,7 +2943,7 @@ const Su = {
|
|
|
2943
2943
|
() => an[e.position][1]
|
|
2944
2944
|
), k = d(() => B.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: L, hidePortal: $, portalIsAccessible: V, renderPortal: M } = Qn(
|
|
2945
2945
|
o,
|
|
2946
|
-
|
|
2946
|
+
i,
|
|
2947
2947
|
H,
|
|
2948
2948
|
"dialog"
|
|
2949
2949
|
), { hide: P } = Kn({
|
|
@@ -2956,14 +2956,14 @@ const Su = {
|
|
|
2956
2956
|
hu(a);
|
|
2957
2957
|
const W = d(
|
|
2958
2958
|
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Su[e.position]}` + (r.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" : "")
|
|
2959
|
-
), G = d(() => a.value === !0 && e.seamless !== !0), U = d(() => e.autoClose === !0 ? { onClick:
|
|
2959
|
+
), G = d(() => a.value === !0 && e.seamless !== !0), U = d(() => e.autoClose === !0 ? { onClick: me } : {}), R = d(() => [
|
|
2960
2960
|
`q-dialog fullscreen no-pointer-events q-dialog--${G.value === !0 ? "modal" : "seamless"}`,
|
|
2961
2961
|
n.class
|
|
2962
2962
|
]);
|
|
2963
2963
|
J(() => e.maximized, (T) => {
|
|
2964
2964
|
a.value === !0 && F(T);
|
|
2965
2965
|
}), J(G, (T) => {
|
|
2966
|
-
c(T), T === !0 ? (vl(w), Jn(
|
|
2966
|
+
c(T), T === !0 ? (vl(w), Jn(ve)) : (Lt(w), Mt(ve));
|
|
2967
2967
|
});
|
|
2968
2968
|
function K(T) {
|
|
2969
2969
|
b = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, F(e.maximized), L(), r.value = !0, e.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), x(j)) : p(), m(() => {
|
|
@@ -2975,7 +2975,7 @@ const Su = {
|
|
|
2975
2975
|
I >= z ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + I - Z / 2)
|
|
2976
2976
|
)), document.activeElement.scrollIntoView();
|
|
2977
2977
|
}
|
|
2978
|
-
y = !0,
|
|
2978
|
+
y = !0, i.value.click(), y = !1;
|
|
2979
2979
|
}
|
|
2980
2980
|
L(!0), r.value = !1, l("show", T);
|
|
2981
2981
|
}, e.transitionDuration);
|
|
@@ -2987,7 +2987,7 @@ const Su = {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
function j(T) {
|
|
2989
2989
|
ml(() => {
|
|
2990
|
-
let D =
|
|
2990
|
+
let D = i.value;
|
|
2991
2991
|
if (D !== null) {
|
|
2992
2992
|
if (T !== void 0) {
|
|
2993
2993
|
const I = D.querySelector(T);
|
|
@@ -3002,28 +3002,28 @@ const Su = {
|
|
|
3002
3002
|
}
|
|
3003
3003
|
function Y(T) {
|
|
3004
3004
|
T && typeof T.focus == "function" ? T.focus({ preventScroll: !0 }) : j(), l("shake");
|
|
3005
|
-
const D =
|
|
3006
|
-
D !== null && (D.classList.remove("q-animate--scale"), D.classList.add("q-animate--scale"),
|
|
3007
|
-
|
|
3005
|
+
const D = i.value;
|
|
3006
|
+
D !== null && (D.classList.remove("q-animate--scale"), D.classList.add("q-animate--scale"), h !== null && clearTimeout(h), h = setTimeout(() => {
|
|
3007
|
+
h = null, i.value !== null && (D.classList.remove("q-animate--scale"), j());
|
|
3008
3008
|
}, 170));
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function ve() {
|
|
3011
3011
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && Y() : (l("escapeKey"), P()));
|
|
3012
3012
|
}
|
|
3013
3013
|
function _(T) {
|
|
3014
|
-
|
|
3014
|
+
h !== null && (clearTimeout(h), h = null), (T === !0 || a.value === !0) && (F(!1), e.seamless !== !0 && (c(!1), Lt(w), Mt(ve))), T !== !0 && (b = null);
|
|
3015
3015
|
}
|
|
3016
3016
|
function F(T) {
|
|
3017
|
-
T === !0 ? s !== !0 && (
|
|
3017
|
+
T === !0 ? s !== !0 && (Tt < 1 && document.body.classList.add("q-body--dialog"), Tt++, s = !0) : s === !0 && (Tt < 2 && document.body.classList.remove("q-body--dialog"), Tt--, s = !1);
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function me(T) {
|
|
3020
3020
|
y !== !0 && (P(T), l("click", T));
|
|
3021
3021
|
}
|
|
3022
3022
|
function f(T) {
|
|
3023
3023
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? P(T) : e.noShake !== !0 && Y();
|
|
3024
3024
|
}
|
|
3025
3025
|
function w(T) {
|
|
3026
|
-
e.allowFocusOutside !== !0 && V.value === !0 && Cn(
|
|
3026
|
+
e.allowFocusOutside !== !0 && V.value === !0 && Cn(i.value, T.target) !== !0 && j('[tabindex]:not([tabindex="-1"])');
|
|
3027
3027
|
}
|
|
3028
3028
|
Object.assign(o.proxy, {
|
|
3029
3029
|
// expose public methods
|
|
@@ -3035,39 +3035,39 @@ const Su = {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
}), fe(_);
|
|
3037
3037
|
function H() {
|
|
3038
|
-
return
|
|
3038
|
+
return g("div", {
|
|
3039
3039
|
role: "dialog",
|
|
3040
3040
|
"aria-modal": G.value === !0 ? "true" : "false",
|
|
3041
3041
|
...n,
|
|
3042
3042
|
class: R.value
|
|
3043
3043
|
}, [
|
|
3044
|
-
|
|
3044
|
+
g(mt, {
|
|
3045
3045
|
name: "q-transition--fade",
|
|
3046
3046
|
appear: !0
|
|
3047
|
-
}, () => G.value === !0 ?
|
|
3047
|
+
}, () => G.value === !0 ? g("div", {
|
|
3048
3048
|
class: "q-dialog__backdrop fixed-full",
|
|
3049
3049
|
style: k.value,
|
|
3050
3050
|
"aria-hidden": "true",
|
|
3051
3051
|
tabindex: -1,
|
|
3052
3052
|
onClick: f
|
|
3053
3053
|
}) : null),
|
|
3054
|
-
|
|
3055
|
-
|
|
3054
|
+
g(
|
|
3055
|
+
mt,
|
|
3056
3056
|
O.value,
|
|
3057
|
-
() => a.value === !0 ?
|
|
3058
|
-
ref:
|
|
3057
|
+
() => a.value === !0 ? g("div", {
|
|
3058
|
+
ref: i,
|
|
3059
3059
|
class: W.value,
|
|
3060
3060
|
style: B.value,
|
|
3061
3061
|
tabindex: -1,
|
|
3062
3062
|
...U.value
|
|
3063
|
-
},
|
|
3063
|
+
}, pe(t.default)) : null
|
|
3064
3064
|
)
|
|
3065
3065
|
]);
|
|
3066
3066
|
}
|
|
3067
3067
|
return M;
|
|
3068
3068
|
}
|
|
3069
3069
|
});
|
|
3070
|
-
let
|
|
3070
|
+
let Pt = !1;
|
|
3071
3071
|
{
|
|
3072
3072
|
const e = document.createElement("div");
|
|
3073
3073
|
e.setAttribute("dir", "rtl"), Object.assign(e.style, {
|
|
@@ -3079,9 +3079,9 @@ let At = !1;
|
|
|
3079
3079
|
Object.assign(t.style, {
|
|
3080
3080
|
width: "1000px",
|
|
3081
3081
|
height: "1px"
|
|
3082
|
-
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3,
|
|
3082
|
+
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, Pt = e.scrollLeft >= 0, e.remove();
|
|
3083
3083
|
}
|
|
3084
|
-
const
|
|
3084
|
+
const be = 1e3, xu = [
|
|
3085
3085
|
"start",
|
|
3086
3086
|
"center",
|
|
3087
3087
|
"end",
|
|
@@ -3104,35 +3104,35 @@ const pe = 1e3, xu = [
|
|
|
3104
3104
|
function et(e, t) {
|
|
3105
3105
|
return e + t;
|
|
3106
3106
|
}
|
|
3107
|
-
function tl(e, t, l, n, o,
|
|
3108
|
-
const
|
|
3107
|
+
function tl(e, t, l, n, o, i, a, r) {
|
|
3108
|
+
const h = e === window ? document.scrollingElement || document.documentElement : e, b = o === !0 ? "offsetWidth" : "offsetHeight", s = {
|
|
3109
3109
|
scrollStart: 0,
|
|
3110
3110
|
scrollViewSize: -a - r,
|
|
3111
3111
|
scrollMaxSize: 0,
|
|
3112
3112
|
offsetStart: -a,
|
|
3113
3113
|
offsetEnd: -r
|
|
3114
3114
|
};
|
|
3115
|
-
if (o === !0 ? (e === window ? (s.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, s.scrollViewSize += document.documentElement.clientWidth) : (s.scrollStart =
|
|
3115
|
+
if (o === !0 ? (e === window ? (s.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, s.scrollViewSize += document.documentElement.clientWidth) : (s.scrollStart = h.scrollLeft, s.scrollViewSize += h.clientWidth), s.scrollMaxSize = h.scrollWidth, i === !0 && (s.scrollStart = (Pt === !0 ? s.scrollMaxSize - s.scrollViewSize : 0) - s.scrollStart)) : (e === window ? (s.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, s.scrollViewSize += document.documentElement.clientHeight) : (s.scrollStart = h.scrollTop, s.scrollViewSize += h.clientHeight), s.scrollMaxSize = h.scrollHeight), l !== null)
|
|
3116
3116
|
for (let y = l.previousElementSibling; y !== null; y = y.previousElementSibling)
|
|
3117
3117
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (s.offsetStart += y[b]);
|
|
3118
3118
|
if (n !== null)
|
|
3119
3119
|
for (let y = n.nextElementSibling; y !== null; y = y.nextElementSibling)
|
|
3120
3120
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (s.offsetEnd += y[b]);
|
|
3121
3121
|
if (t !== e) {
|
|
3122
|
-
const y =
|
|
3122
|
+
const y = h.getBoundingClientRect(), v = t.getBoundingClientRect();
|
|
3123
3123
|
o === !0 ? (s.offsetStart += v.left - y.left, s.offsetEnd -= v.width) : (s.offsetStart += v.top - y.top, s.offsetEnd -= v.height), e !== window && (s.offsetStart += s.scrollStart), s.offsetEnd += s.scrollMaxSize - s.offsetStart;
|
|
3124
3124
|
}
|
|
3125
3125
|
return s;
|
|
3126
3126
|
}
|
|
3127
3127
|
function rn(e, t, l, n) {
|
|
3128
|
-
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (
|
|
3128
|
+
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (Pt === !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 ? (n === !0 && (t = (Pt === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function st(e, t, l, n) {
|
|
3131
3131
|
if (l >= n)
|
|
3132
3132
|
return 0;
|
|
3133
|
-
const o = t.length,
|
|
3134
|
-
let r = e.slice(
|
|
3135
|
-
return l %
|
|
3133
|
+
const o = t.length, i = Math.floor(l / be), a = Math.floor((n - 1) / be) + 1;
|
|
3134
|
+
let r = e.slice(i, a).reduce(et, 0);
|
|
3135
|
+
return l % be !== 0 && (r -= t.slice(i * be, l).reduce(et, 0)), n % be !== 0 && n !== o && (r -= t.slice(n, a * be).reduce(et, 0)), r;
|
|
3136
3136
|
}
|
|
3137
3137
|
const qu = {
|
|
3138
3138
|
virtualScrollSliceSize: {
|
|
@@ -3172,12 +3172,12 @@ function _u({
|
|
|
3172
3172
|
virtualScrollItemSizeComputed: n
|
|
3173
3173
|
// optional
|
|
3174
3174
|
}) {
|
|
3175
|
-
const o = le(), { props:
|
|
3175
|
+
const o = le(), { props: i, emit: a, proxy: r } = o, { $q: h } = r;
|
|
3176
3176
|
let b, s, y, v = [], c;
|
|
3177
|
-
const m = A(0), x = A(0), p = A({}), O = A(null), B = A(null), k = A(null), L = A({ from: 0, to: 0 }), $ = d(() =>
|
|
3178
|
-
n === void 0 && (n = d(() =>
|
|
3179
|
-
const V = d(() => n.value + ";" +
|
|
3180
|
-
() => V.value + ";" +
|
|
3177
|
+
const m = A(0), x = A(0), p = A({}), O = A(null), B = A(null), k = A(null), L = A({ from: 0, to: 0 }), $ = d(() => i.tableColspan !== void 0 ? i.tableColspan : 100);
|
|
3178
|
+
n === void 0 && (n = d(() => i.virtualScrollItemSize));
|
|
3179
|
+
const V = d(() => n.value + ";" + i.virtualScrollHorizontal), M = d(
|
|
3180
|
+
() => V.value + ";" + i.virtualScrollSliceRatioBefore + ";" + i.virtualScrollSliceRatioAfter
|
|
3181
3181
|
);
|
|
3182
3182
|
J(M, () => {
|
|
3183
3183
|
Y();
|
|
@@ -3197,10 +3197,10 @@ function _u({
|
|
|
3197
3197
|
l(),
|
|
3198
3198
|
O.value,
|
|
3199
3199
|
B.value,
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3200
|
+
i.virtualScrollHorizontal,
|
|
3201
|
+
h.lang.rtl,
|
|
3202
|
+
i.virtualScrollStickySizeStart,
|
|
3203
|
+
i.virtualScrollStickySizeEnd
|
|
3204
3204
|
);
|
|
3205
3205
|
y !== T.scrollViewSize && Y(T.scrollViewSize), R(
|
|
3206
3206
|
H,
|
|
@@ -3219,10 +3219,10 @@ function _u({
|
|
|
3219
3219
|
l(),
|
|
3220
3220
|
O.value,
|
|
3221
3221
|
B.value,
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3222
|
+
i.virtualScrollHorizontal,
|
|
3223
|
+
h.lang.rtl,
|
|
3224
|
+
i.virtualScrollStickySizeStart,
|
|
3225
|
+
i.virtualScrollStickySizeEnd
|
|
3226
3226
|
), H = e.value - 1, T = w.scrollMaxSize - w.offsetStart - w.offsetEnd - x.value;
|
|
3227
3227
|
if (b === w.scrollStart)
|
|
3228
3228
|
return;
|
|
@@ -3246,7 +3246,7 @@ function _u({
|
|
|
3246
3246
|
z -= m.value, I = L.value.from, Z = z;
|
|
3247
3247
|
else
|
|
3248
3248
|
for (let S = 0; z >= v[S] && I < H; S++)
|
|
3249
|
-
z -= v[S], I +=
|
|
3249
|
+
z -= v[S], I += be;
|
|
3250
3250
|
for (; z > 0 && I < H; )
|
|
3251
3251
|
z -= c[I], z > -w.scrollViewSize ? (I++, Z = z) : Z = c[I] + z;
|
|
3252
3252
|
R(
|
|
@@ -3260,37 +3260,37 @@ function _u({
|
|
|
3260
3260
|
const I = typeof D == "string" && D.indexOf("-force") !== -1, z = I === !0 ? D.replace("-force", "") : D, Z = z !== void 0 ? z : "start";
|
|
3261
3261
|
let S = Math.max(0, H - p.value[Z]), ne = S + p.value.total;
|
|
3262
3262
|
ne > e.value && (ne = e.value, S = Math.max(0, ne - p.value.total)), b = w.scrollStart;
|
|
3263
|
-
const
|
|
3264
|
-
if (
|
|
3263
|
+
const we = S !== L.value.from || ne !== L.value.to;
|
|
3264
|
+
if (we === !1 && z === void 0) {
|
|
3265
3265
|
_(H);
|
|
3266
3266
|
return;
|
|
3267
3267
|
}
|
|
3268
|
-
const { activeElement:
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
})), Cu(
|
|
3272
|
-
const
|
|
3273
|
-
if (
|
|
3268
|
+
const { activeElement: De } = document, Se = k.value;
|
|
3269
|
+
we === !0 && Se !== null && Se !== De && Se.contains(De) === !0 && (Se.addEventListener("focusout", E), setTimeout(() => {
|
|
3270
|
+
Se !== null && Se.removeEventListener("focusout", E);
|
|
3271
|
+
})), Cu(Se, H - S);
|
|
3272
|
+
const yt = z !== void 0 ? c.slice(S, H).reduce(et, 0) : 0;
|
|
3273
|
+
if (we === !0) {
|
|
3274
3274
|
const Te = ne >= L.value.from && S <= L.value.to ? L.value.to : ne;
|
|
3275
|
-
L.value = { from: S, to: Te }, m.value =
|
|
3276
|
-
L.value.to !== ne && b === w.scrollStart && (L.value = { from: L.value.from, to: ne }, x.value =
|
|
3275
|
+
L.value = { from: S, to: Te }, m.value = st(v, c, 0, S), x.value = st(v, c, ne, e.value), requestAnimationFrame(() => {
|
|
3276
|
+
L.value.to !== ne && b === w.scrollStart && (L.value = { from: L.value.from, to: ne }, x.value = st(v, c, ne, e.value));
|
|
3277
3277
|
});
|
|
3278
3278
|
}
|
|
3279
3279
|
requestAnimationFrame(() => {
|
|
3280
3280
|
if (b !== w.scrollStart)
|
|
3281
3281
|
return;
|
|
3282
|
-
|
|
3283
|
-
const Te = c.slice(S, H).reduce(et, 0), $e = Te + w.offsetStart + m.value,
|
|
3284
|
-
let
|
|
3282
|
+
we === !0 && K(S);
|
|
3283
|
+
const Te = c.slice(S, H).reduce(et, 0), $e = Te + w.offsetStart + m.value, wt = $e + c[H];
|
|
3284
|
+
let ot = $e + T;
|
|
3285
3285
|
if (z !== void 0) {
|
|
3286
|
-
const
|
|
3287
|
-
|
|
3286
|
+
const Ht = Te - yt, it = w.scrollStart + Ht;
|
|
3287
|
+
ot = I !== !0 && it < $e && wt < it + w.scrollViewSize ? it : z === "end" ? wt - w.scrollViewSize : $e - (z === "start" ? 0 : Math.round((w.scrollViewSize - c[H]) / 2));
|
|
3288
3288
|
}
|
|
3289
|
-
b =
|
|
3289
|
+
b = ot, rn(
|
|
3290
3290
|
f,
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3291
|
+
ot,
|
|
3292
|
+
i.virtualScrollHorizontal,
|
|
3293
|
+
h.lang.rtl
|
|
3294
3294
|
), _(H);
|
|
3295
3295
|
});
|
|
3296
3296
|
}
|
|
@@ -3300,12 +3300,12 @@ function _u({
|
|
|
3300
3300
|
const H = to.call(
|
|
3301
3301
|
w.children,
|
|
3302
3302
|
(S) => S.classList && S.classList.contains("q-virtual-scroll--skip") === !1
|
|
3303
|
-
), T = H.length, D =
|
|
3303
|
+
), T = H.length, D = i.virtualScrollHorizontal === !0 ? (S) => S.getBoundingClientRect().width : (S) => S.offsetHeight;
|
|
3304
3304
|
let I = f, z, Z;
|
|
3305
3305
|
for (let S = 0; S < T; ) {
|
|
3306
3306
|
for (z = D(H[S]), S++; S < T && H[S].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
3307
3307
|
z += D(H[S]), S++;
|
|
3308
|
-
Z = z - c[I], Z !== 0 && (c[I] += Z, v[Math.floor(I /
|
|
3308
|
+
Z = z - c[I], Z !== 0 && (c[I] += Z, v[Math.floor(I / be)] += Z), I++;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
@@ -3319,16 +3319,16 @@ function _u({
|
|
|
3319
3319
|
c.length = e.value;
|
|
3320
3320
|
for (let I = e.value - 1; I >= T; I--)
|
|
3321
3321
|
c[I] = H;
|
|
3322
|
-
const D = Math.floor((e.value - 1) /
|
|
3322
|
+
const D = Math.floor((e.value - 1) / be);
|
|
3323
3323
|
v = [];
|
|
3324
3324
|
for (let I = 0; I <= D; I++) {
|
|
3325
3325
|
let z = 0;
|
|
3326
|
-
const Z = Math.min((I + 1) *
|
|
3327
|
-
for (let S = I *
|
|
3326
|
+
const Z = Math.min((I + 1) * be, e.value);
|
|
3327
|
+
for (let S = I * be; S < Z; S++)
|
|
3328
3328
|
z += c[S];
|
|
3329
3329
|
v.push(z);
|
|
3330
3330
|
}
|
|
3331
|
-
s = -1, b = void 0, m.value =
|
|
3331
|
+
s = -1, b = void 0, m.value = st(v, c, 0, L.value.from), x.value = st(v, c, L.value.to, e.value), f >= 0 ? (K(L.value.from), ce(() => {
|
|
3332
3332
|
G(f);
|
|
3333
3333
|
})) : F();
|
|
3334
3334
|
}
|
|
@@ -3340,17 +3340,17 @@ function _u({
|
|
|
3340
3340
|
l(),
|
|
3341
3341
|
O.value,
|
|
3342
3342
|
B.value,
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3343
|
+
i.virtualScrollHorizontal,
|
|
3344
|
+
h.lang.rtl,
|
|
3345
|
+
i.virtualScrollStickySizeStart,
|
|
3346
|
+
i.virtualScrollStickySizeEnd
|
|
3347
3347
|
).scrollViewSize);
|
|
3348
3348
|
}
|
|
3349
3349
|
y = f;
|
|
3350
|
-
const w = parseFloat(
|
|
3350
|
+
const w = parseFloat(i.virtualScrollSliceRatioBefore) || 0, H = parseFloat(i.virtualScrollSliceRatioAfter) || 0, T = 1 + w + H, D = f === void 0 || f <= 0 ? 1 : Math.ceil(f / n.value), I = Math.max(
|
|
3351
3351
|
1,
|
|
3352
3352
|
D,
|
|
3353
|
-
Math.ceil((
|
|
3353
|
+
Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / T)
|
|
3354
3354
|
);
|
|
3355
3355
|
p.value = {
|
|
3356
3356
|
total: Math.ceil(I * T),
|
|
@@ -3360,46 +3360,46 @@ function _u({
|
|
|
3360
3360
|
view: D
|
|
3361
3361
|
};
|
|
3362
3362
|
}
|
|
3363
|
-
function
|
|
3364
|
-
const H =
|
|
3363
|
+
function ve(f, w) {
|
|
3364
|
+
const H = i.virtualScrollHorizontal === !0 ? "width" : "height", T = {
|
|
3365
3365
|
["--q-virtual-scroll-item-" + H]: n.value + "px"
|
|
3366
3366
|
};
|
|
3367
3367
|
return [
|
|
3368
|
-
f === "tbody" ?
|
|
3368
|
+
f === "tbody" ? g(f, {
|
|
3369
3369
|
class: "q-virtual-scroll__padding",
|
|
3370
3370
|
key: "before",
|
|
3371
3371
|
ref: O
|
|
3372
3372
|
}, [
|
|
3373
|
-
|
|
3374
|
-
|
|
3373
|
+
g("tr", [
|
|
3374
|
+
g("td", {
|
|
3375
3375
|
style: { [H]: `${m.value}px`, ...T },
|
|
3376
3376
|
colspan: $.value
|
|
3377
3377
|
})
|
|
3378
3378
|
])
|
|
3379
|
-
]) :
|
|
3379
|
+
]) : g(f, {
|
|
3380
3380
|
class: "q-virtual-scroll__padding",
|
|
3381
3381
|
key: "before",
|
|
3382
3382
|
ref: O,
|
|
3383
3383
|
style: { [H]: `${m.value}px`, ...T }
|
|
3384
3384
|
}),
|
|
3385
|
-
|
|
3385
|
+
g(f, {
|
|
3386
3386
|
class: "q-virtual-scroll__content",
|
|
3387
3387
|
key: "content",
|
|
3388
3388
|
ref: k,
|
|
3389
3389
|
tabindex: -1
|
|
3390
3390
|
}, w.flat()),
|
|
3391
|
-
f === "tbody" ?
|
|
3391
|
+
f === "tbody" ? g(f, {
|
|
3392
3392
|
class: "q-virtual-scroll__padding",
|
|
3393
3393
|
key: "after",
|
|
3394
3394
|
ref: B
|
|
3395
3395
|
}, [
|
|
3396
|
-
|
|
3397
|
-
|
|
3396
|
+
g("tr", [
|
|
3397
|
+
g("td", {
|
|
3398
3398
|
style: { [H]: `${x.value}px`, ...T },
|
|
3399
3399
|
colspan: $.value
|
|
3400
3400
|
})
|
|
3401
3401
|
])
|
|
3402
|
-
]) :
|
|
3402
|
+
]) : g(f, {
|
|
3403
3403
|
class: "q-virtual-scroll__padding",
|
|
3404
3404
|
key: "after",
|
|
3405
3405
|
ref: B,
|
|
@@ -3408,7 +3408,7 @@ function _u({
|
|
|
3408
3408
|
];
|
|
3409
3409
|
}
|
|
3410
3410
|
function _(f) {
|
|
3411
|
-
s !== f && (
|
|
3411
|
+
s !== f && (i.onVirtualScroll !== void 0 && a("virtualScroll", {
|
|
3412
3412
|
index: f,
|
|
3413
3413
|
from: L.value.from,
|
|
3414
3414
|
to: L.value.to - 1,
|
|
@@ -3419,22 +3419,22 @@ function _u({
|
|
|
3419
3419
|
Y();
|
|
3420
3420
|
const F = In(
|
|
3421
3421
|
U,
|
|
3422
|
-
|
|
3422
|
+
h.platform.is.ios === !0 ? 120 : 35
|
|
3423
3423
|
);
|
|
3424
3424
|
qo(() => {
|
|
3425
3425
|
Y();
|
|
3426
3426
|
});
|
|
3427
|
-
let
|
|
3428
|
-
return
|
|
3429
|
-
|
|
3427
|
+
let me = !1;
|
|
3428
|
+
return zt(() => {
|
|
3429
|
+
me = !0;
|
|
3430
3430
|
}), bn(() => {
|
|
3431
|
-
if (
|
|
3431
|
+
if (me !== !0) return;
|
|
3432
3432
|
const f = t();
|
|
3433
3433
|
b !== void 0 && f !== void 0 && f !== null && f.nodeType !== 8 ? rn(
|
|
3434
3434
|
f,
|
|
3435
3435
|
b,
|
|
3436
|
-
|
|
3437
|
-
|
|
3436
|
+
i.virtualScrollHorizontal,
|
|
3437
|
+
h.lang.rtl
|
|
3438
3438
|
) : G(s);
|
|
3439
3439
|
}), fe(() => {
|
|
3440
3440
|
F.cancel();
|
|
@@ -3444,7 +3444,7 @@ function _u({
|
|
|
3444
3444
|
setVirtualScrollSize: Y,
|
|
3445
3445
|
onVirtualScrollEvt: F,
|
|
3446
3446
|
localResetVirtualScroll: j,
|
|
3447
|
-
padVirtualScroll:
|
|
3447
|
+
padVirtualScroll: ve,
|
|
3448
3448
|
scrollTo: G,
|
|
3449
3449
|
reset: P,
|
|
3450
3450
|
refresh: W
|
|
@@ -3477,27 +3477,27 @@ function Ve(e, t) {
|
|
|
3477
3477
|
if (e.constructor === Map) {
|
|
3478
3478
|
if (e.size !== t.size)
|
|
3479
3479
|
return !1;
|
|
3480
|
-
let
|
|
3481
|
-
for (n =
|
|
3480
|
+
let i = e.entries();
|
|
3481
|
+
for (n = i.next(); n.done !== !0; ) {
|
|
3482
3482
|
if (t.has(n.value[0]) !== !0)
|
|
3483
3483
|
return !1;
|
|
3484
|
-
n =
|
|
3484
|
+
n = i.next();
|
|
3485
3485
|
}
|
|
3486
|
-
for (
|
|
3486
|
+
for (i = e.entries(), n = i.next(); n.done !== !0; ) {
|
|
3487
3487
|
if (Ve(n.value[1], t.get(n.value[0])) !== !0)
|
|
3488
3488
|
return !1;
|
|
3489
|
-
n =
|
|
3489
|
+
n = i.next();
|
|
3490
3490
|
}
|
|
3491
3491
|
return !0;
|
|
3492
3492
|
}
|
|
3493
3493
|
if (e.constructor === Set) {
|
|
3494
3494
|
if (e.size !== t.size)
|
|
3495
3495
|
return !1;
|
|
3496
|
-
const
|
|
3497
|
-
for (n =
|
|
3496
|
+
const i = e.entries();
|
|
3497
|
+
for (n = i.next(); n.done !== !0; ) {
|
|
3498
3498
|
if (t.has(n.value[0]) !== !0)
|
|
3499
3499
|
return !1;
|
|
3500
|
-
n =
|
|
3500
|
+
n = i.next();
|
|
3501
3501
|
}
|
|
3502
3502
|
return !0;
|
|
3503
3503
|
}
|
|
@@ -3515,12 +3515,12 @@ function Ve(e, t) {
|
|
|
3515
3515
|
return e.valueOf() === t.valueOf();
|
|
3516
3516
|
if (e.toString !== Object.prototype.toString)
|
|
3517
3517
|
return e.toString() === t.toString();
|
|
3518
|
-
const o = Object.keys(e).filter((
|
|
3519
|
-
if (l = o.length, l !== Object.keys(t).filter((
|
|
3518
|
+
const o = Object.keys(e).filter((i) => e[i] !== void 0);
|
|
3519
|
+
if (l = o.length, l !== Object.keys(t).filter((i) => t[i] !== void 0).length)
|
|
3520
3520
|
return !1;
|
|
3521
3521
|
for (n = l; n-- !== 0; ) {
|
|
3522
|
-
const
|
|
3523
|
-
if (Ve(e[
|
|
3522
|
+
const i = o[n];
|
|
3523
|
+
if (Ve(e[i], t[i]) !== !0)
|
|
3524
3524
|
return !1;
|
|
3525
3525
|
}
|
|
3526
3526
|
return !0;
|
|
@@ -3540,7 +3540,7 @@ function ll(e, t) {
|
|
|
3540
3540
|
const l = e !== void 0 ? e : t;
|
|
3541
3541
|
return (n) => n !== null && typeof n == "object" && l in n ? n[l] : n;
|
|
3542
3542
|
}
|
|
3543
|
-
const Mu =
|
|
3543
|
+
const Mu = re({
|
|
3544
3544
|
name: "QSelect",
|
|
3545
3545
|
inheritAttrs: !1,
|
|
3546
3546
|
props: {
|
|
@@ -3627,73 +3627,73 @@ const Mu = ve({
|
|
|
3627
3627
|
"filterAbort"
|
|
3628
3628
|
],
|
|
3629
3629
|
setup(e, { slots: t, emit: l }) {
|
|
3630
|
-
const { proxy: n } = le(), { $q: o } = n,
|
|
3630
|
+
const { proxy: n } = le(), { $q: o } = n, i = A(!1), a = A(!1), r = A(-1), h = A(""), b = A(!1), s = A(!1);
|
|
3631
3631
|
let y = null, v = null, c, m, x, p = null, O, B, k, L;
|
|
3632
3632
|
const $ = A(null), V = A(null), M = A(null), P = A(null), W = A(null), G = wi(e), U = $u(ql), R = d(() => Array.isArray(e.options) ? e.options.length : 0), K = d(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
3633
3633
|
virtualScrollSliceRange: E,
|
|
3634
3634
|
virtualScrollSliceSizeComputed: j,
|
|
3635
3635
|
localResetVirtualScroll: Y,
|
|
3636
|
-
padVirtualScroll:
|
|
3636
|
+
padVirtualScroll: ve,
|
|
3637
3637
|
onVirtualScrollEvt: _,
|
|
3638
3638
|
scrollTo: F,
|
|
3639
|
-
setVirtualScrollSize:
|
|
3639
|
+
setVirtualScrollSize: me
|
|
3640
3640
|
} = _u({
|
|
3641
3641
|
virtualScrollLength: R,
|
|
3642
3642
|
getVirtualScrollTarget: io,
|
|
3643
3643
|
getVirtualScrollEl: xl,
|
|
3644
3644
|
virtualScrollItemSizeComputed: K
|
|
3645
3645
|
}), f = Dn(), w = d(() => {
|
|
3646
|
-
const
|
|
3646
|
+
const u = e.mapOptions === !0 && e.multiple !== !0, C = e.modelValue !== void 0 && (e.modelValue !== null || u === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
3647
3647
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
3648
3648
|
const q = e.mapOptions === !0 && c !== void 0 ? c : [], N = C.map((X) => oo(X, q));
|
|
3649
|
-
return e.modelValue === null &&
|
|
3649
|
+
return e.modelValue === null && u === !0 ? N.filter((X) => X !== null) : N;
|
|
3650
3650
|
}
|
|
3651
3651
|
return C;
|
|
3652
3652
|
}), H = d(() => {
|
|
3653
|
-
const
|
|
3653
|
+
const u = {};
|
|
3654
3654
|
return Lu.forEach((C) => {
|
|
3655
3655
|
const q = e[C];
|
|
3656
|
-
q !== void 0 && (
|
|
3657
|
-
}),
|
|
3656
|
+
q !== void 0 && (u[C] = q);
|
|
3657
|
+
}), u;
|
|
3658
3658
|
}), T = d(() => e.optionsDark === null ? f.isDark.value : e.optionsDark), D = d(() => sl(w.value)), I = d(() => {
|
|
3659
|
-
let
|
|
3660
|
-
return e.hideSelected === !0 || w.value.length === 0 ? [
|
|
3659
|
+
let u = "q-field__input q-placeholder col";
|
|
3660
|
+
return e.hideSelected === !0 || w.value.length === 0 ? [u, e.inputClass] : (u += " q-field__input--padding", e.inputClass === void 0 ? u : [u, e.inputClass]);
|
|
3661
3661
|
}), z = d(
|
|
3662
3662
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
3663
3663
|
), Z = d(() => R.value === 0), S = d(
|
|
3664
|
-
() => w.value.map((
|
|
3665
|
-
), ne = d(() => e.displayValue !== void 0 ? e.displayValue : S.value),
|
|
3666
|
-
const
|
|
3664
|
+
() => w.value.map((u) => se.value(u)).join(", ")
|
|
3665
|
+
), ne = d(() => e.displayValue !== void 0 ? e.displayValue : S.value), we = d(() => e.optionsHtml === !0 ? () => !0 : (u) => u != null && u.html === !0), De = d(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || w.value.some(we.value))), Se = d(() => f.focused.value === !0 ? e.tabindex : -1), yt = d(() => {
|
|
3666
|
+
const u = {
|
|
3667
3667
|
tabindex: e.tabindex,
|
|
3668
3668
|
role: "combobox",
|
|
3669
3669
|
"aria-label": e.label,
|
|
3670
3670
|
"aria-readonly": e.readonly === !0 ? "true" : "false",
|
|
3671
3671
|
"aria-autocomplete": e.useInput === !0 ? "list" : "none",
|
|
3672
|
-
"aria-expanded":
|
|
3672
|
+
"aria-expanded": i.value === !0 ? "true" : "false",
|
|
3673
3673
|
"aria-controls": `${f.targetUid.value}_lb`
|
|
3674
3674
|
};
|
|
3675
|
-
return r.value >= 0 && (
|
|
3675
|
+
return r.value >= 0 && (u["aria-activedescendant"] = `${f.targetUid.value}_${r.value}`), u;
|
|
3676
3676
|
}), Te = d(() => ({
|
|
3677
3677
|
id: `${f.targetUid.value}_lb`,
|
|
3678
3678
|
role: "listbox",
|
|
3679
3679
|
"aria-multiselectable": e.multiple === !0 ? "true" : "false"
|
|
3680
|
-
})), $e = d(() => w.value.map((
|
|
3680
|
+
})), $e = d(() => w.value.map((u, C) => ({
|
|
3681
3681
|
index: C,
|
|
3682
|
-
opt:
|
|
3683
|
-
html:
|
|
3682
|
+
opt: u,
|
|
3683
|
+
html: we.value(u),
|
|
3684
3684
|
selected: !0,
|
|
3685
3685
|
removeAtIndex: no,
|
|
3686
3686
|
toggleOption: Re,
|
|
3687
|
-
tabindex:
|
|
3688
|
-
}))),
|
|
3687
|
+
tabindex: Se.value
|
|
3688
|
+
}))), wt = d(() => {
|
|
3689
3689
|
if (R.value === 0)
|
|
3690
3690
|
return [];
|
|
3691
|
-
const { from:
|
|
3692
|
-
return e.options.slice(
|
|
3693
|
-
const X =
|
|
3691
|
+
const { from: u, to: C } = E.value;
|
|
3692
|
+
return e.options.slice(u, C).map((q, N) => {
|
|
3693
|
+
const X = je.value(q) === !0, Q = jt(q) === !0, oe = u + N, ee = {
|
|
3694
3694
|
clickable: !0,
|
|
3695
3695
|
active: Q,
|
|
3696
|
-
activeClass:
|
|
3696
|
+
activeClass: it.value,
|
|
3697
3697
|
manualFocus: !0,
|
|
3698
3698
|
focused: !1,
|
|
3699
3699
|
disable: X,
|
|
@@ -3708,23 +3708,23 @@ const Mu = ve({
|
|
|
3708
3708
|
}
|
|
3709
3709
|
};
|
|
3710
3710
|
return X !== !0 && (r.value === oe && (ee.focused = !0), o.platform.is.desktop === !0 && (ee.onMousemove = () => {
|
|
3711
|
-
|
|
3711
|
+
i.value === !0 && Ne(oe);
|
|
3712
3712
|
})), {
|
|
3713
3713
|
index: oe,
|
|
3714
3714
|
opt: q,
|
|
3715
|
-
html:
|
|
3716
|
-
label:
|
|
3715
|
+
html: we.value(q),
|
|
3716
|
+
label: se.value(q),
|
|
3717
3717
|
selected: ee.active,
|
|
3718
3718
|
focused: ee.focused,
|
|
3719
3719
|
toggleOption: Re,
|
|
3720
|
-
setOptionIndex:
|
|
3720
|
+
setOptionIndex: Ne,
|
|
3721
3721
|
itemProps: ee
|
|
3722
3722
|
};
|
|
3723
3723
|
});
|
|
3724
|
-
}),
|
|
3724
|
+
}), ot = d(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown), Ht = d(
|
|
3725
3725
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
3726
|
-
),
|
|
3727
|
-
const
|
|
3726
|
+
), it = d(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), ke = d(() => ll(e.optionValue, "value")), se = d(() => ll(e.optionLabel, "label")), je = d(() => ll(e.optionDisable, "disable")), St = d(() => w.value.map(ke.value)), lo = d(() => {
|
|
3727
|
+
const u = {
|
|
3728
3728
|
onInput: ql,
|
|
3729
3729
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
3730
3730
|
// switching focus before confirming composition choice
|
|
@@ -3739,30 +3739,30 @@ const Mu = ve({
|
|
|
3739
3739
|
m === !0 && Ee(C);
|
|
3740
3740
|
}
|
|
3741
3741
|
};
|
|
3742
|
-
return
|
|
3742
|
+
return u.onCompositionstart = u.onCompositionupdate = u.onCompositionend = U, u;
|
|
3743
3743
|
});
|
|
3744
|
-
J(w, (
|
|
3745
|
-
c =
|
|
3746
|
-
}, { immediate: !0 }), J(() => e.fillInput,
|
|
3747
|
-
function hl(
|
|
3748
|
-
return e.emitValue === !0 ?
|
|
3744
|
+
J(w, (u) => {
|
|
3745
|
+
c = u, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && f.innerLoading.value !== !0 && (a.value !== !0 && i.value !== !0 || D.value !== !0) && (x !== !0 && Ue(), (a.value === !0 || i.value === !0) && We(""));
|
|
3746
|
+
}, { immediate: !0 }), J(() => e.fillInput, Ue), J(i, Nt), J(R, bo);
|
|
3747
|
+
function hl(u) {
|
|
3748
|
+
return e.emitValue === !0 ? ke.value(u) : u;
|
|
3749
3749
|
}
|
|
3750
|
-
function
|
|
3751
|
-
if (
|
|
3750
|
+
function Dt(u) {
|
|
3751
|
+
if (u !== -1 && u < w.value.length)
|
|
3752
3752
|
if (e.multiple === !0) {
|
|
3753
3753
|
const C = e.modelValue.slice();
|
|
3754
|
-
l("remove", { index:
|
|
3754
|
+
l("remove", { index: u, value: C.splice(u, 1)[0] }), l("update:modelValue", C);
|
|
3755
3755
|
} else
|
|
3756
3756
|
l("update:modelValue", null);
|
|
3757
3757
|
}
|
|
3758
|
-
function no(
|
|
3759
|
-
|
|
3758
|
+
function no(u) {
|
|
3759
|
+
Dt(u), f.focus();
|
|
3760
3760
|
}
|
|
3761
|
-
function pl(
|
|
3762
|
-
const q = hl(
|
|
3761
|
+
function pl(u, C) {
|
|
3762
|
+
const q = hl(u);
|
|
3763
3763
|
if (e.multiple !== !0) {
|
|
3764
|
-
e.fillInput === !0 &&
|
|
3765
|
-
|
|
3764
|
+
e.fillInput === !0 && ut(
|
|
3765
|
+
se.value(u),
|
|
3766
3766
|
!0,
|
|
3767
3767
|
!0
|
|
3768
3768
|
), l("update:modelValue", q);
|
|
@@ -3772,140 +3772,140 @@ const Mu = ve({
|
|
|
3772
3772
|
l("add", { index: 0, value: q }), l("update:modelValue", e.multiple === !0 ? [q] : q);
|
|
3773
3773
|
return;
|
|
3774
3774
|
}
|
|
3775
|
-
if (C === !0 &&
|
|
3775
|
+
if (C === !0 && jt(u) === !0 || e.maxValues !== void 0 && e.modelValue.length >= e.maxValues)
|
|
3776
3776
|
return;
|
|
3777
3777
|
const N = e.modelValue.slice();
|
|
3778
3778
|
l("add", { index: N.length, value: q }), N.push(q), l("update:modelValue", N);
|
|
3779
3779
|
}
|
|
3780
|
-
function Re(
|
|
3781
|
-
if (f.editable.value !== !0 ||
|
|
3780
|
+
function Re(u, C) {
|
|
3781
|
+
if (f.editable.value !== !0 || u === void 0 || je.value(u) === !0)
|
|
3782
3782
|
return;
|
|
3783
|
-
const q =
|
|
3783
|
+
const q = ke.value(u);
|
|
3784
3784
|
if (e.multiple !== !0) {
|
|
3785
|
-
C !== !0 && (
|
|
3786
|
-
e.fillInput === !0 ?
|
|
3785
|
+
C !== !0 && (ut(
|
|
3786
|
+
e.fillInput === !0 ? se.value(u) : "",
|
|
3787
3787
|
!0,
|
|
3788
3788
|
!0
|
|
3789
|
-
), Le()), V.value !== null && V.value.focus(), (w.value.length === 0 || Ve(
|
|
3789
|
+
), Le()), V.value !== null && V.value.focus(), (w.value.length === 0 || Ve(ke.value(w.value[0]), q) !== !0) && l("update:modelValue", e.emitValue === !0 ? q : u);
|
|
3790
3790
|
return;
|
|
3791
3791
|
}
|
|
3792
3792
|
if ((m !== !0 || b.value === !0) && f.focus(), bl(), w.value.length === 0) {
|
|
3793
|
-
const Q = e.emitValue === !0 ? q :
|
|
3793
|
+
const Q = e.emitValue === !0 ? q : u;
|
|
3794
3794
|
l("add", { index: 0, value: Q }), l("update:modelValue", e.multiple === !0 ? [Q] : Q);
|
|
3795
3795
|
return;
|
|
3796
3796
|
}
|
|
3797
|
-
const N = e.modelValue.slice(), X =
|
|
3797
|
+
const N = e.modelValue.slice(), X = St.value.findIndex((Q) => Ve(Q, q));
|
|
3798
3798
|
if (X !== -1)
|
|
3799
3799
|
l("remove", { index: X, value: N.splice(X, 1)[0] });
|
|
3800
3800
|
else {
|
|
3801
3801
|
if (e.maxValues !== void 0 && N.length >= e.maxValues)
|
|
3802
3802
|
return;
|
|
3803
|
-
const Q = e.emitValue === !0 ? q :
|
|
3803
|
+
const Q = e.emitValue === !0 ? q : u;
|
|
3804
3804
|
l("add", { index: N.length, value: Q }), N.push(Q);
|
|
3805
3805
|
}
|
|
3806
3806
|
l("update:modelValue", N);
|
|
3807
3807
|
}
|
|
3808
|
-
function
|
|
3808
|
+
function Ne(u) {
|
|
3809
3809
|
if (o.platform.is.desktop !== !0) return;
|
|
3810
|
-
const C =
|
|
3810
|
+
const C = u !== -1 && u < R.value ? u : -1;
|
|
3811
3811
|
r.value !== C && (r.value = C);
|
|
3812
3812
|
}
|
|
3813
|
-
function
|
|
3814
|
-
if (
|
|
3813
|
+
function kt(u = 1, C) {
|
|
3814
|
+
if (i.value === !0) {
|
|
3815
3815
|
let q = r.value;
|
|
3816
3816
|
do
|
|
3817
3817
|
q = cn(
|
|
3818
|
-
q +
|
|
3818
|
+
q + u,
|
|
3819
3819
|
-1,
|
|
3820
3820
|
R.value - 1
|
|
3821
3821
|
);
|
|
3822
|
-
while (q !== -1 && q !== r.value &&
|
|
3823
|
-
r.value !== q && (
|
|
3824
|
-
q >= 0 ?
|
|
3822
|
+
while (q !== -1 && q !== r.value && je.value(e.options[q]) === !0);
|
|
3823
|
+
r.value !== q && (Ne(q), F(q), C !== !0 && e.useInput === !0 && e.fillInput === !0 && xt(
|
|
3824
|
+
q >= 0 ? se.value(e.options[q]) : O,
|
|
3825
3825
|
!0
|
|
3826
3826
|
));
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
|
-
function oo(
|
|
3830
|
-
const q = (N) => Ve(
|
|
3831
|
-
return e.options.find(q) || C.find(q) ||
|
|
3829
|
+
function oo(u, C) {
|
|
3830
|
+
const q = (N) => Ve(ke.value(N), u);
|
|
3831
|
+
return e.options.find(q) || C.find(q) || u;
|
|
3832
3832
|
}
|
|
3833
|
-
function
|
|
3834
|
-
const C =
|
|
3835
|
-
return
|
|
3833
|
+
function jt(u) {
|
|
3834
|
+
const C = ke.value(u);
|
|
3835
|
+
return St.value.find((q) => Ve(q, C)) !== void 0;
|
|
3836
3836
|
}
|
|
3837
|
-
function bl(
|
|
3838
|
-
e.useInput === !0 && V.value !== null && (
|
|
3837
|
+
function bl(u) {
|
|
3838
|
+
e.useInput === !0 && V.value !== null && (u === void 0 || V.value === u.target && u.target.value === S.value) && V.value.select();
|
|
3839
3839
|
}
|
|
3840
|
-
function yl(
|
|
3841
|
-
|
|
3840
|
+
function yl(u) {
|
|
3841
|
+
He(u, 27) === !0 && i.value === !0 && (Ee(u), Le(), Ue()), l("keyup", u);
|
|
3842
3842
|
}
|
|
3843
|
-
function wl(
|
|
3844
|
-
const { value: C } =
|
|
3845
|
-
if (
|
|
3846
|
-
yl(
|
|
3843
|
+
function wl(u) {
|
|
3844
|
+
const { value: C } = u.target;
|
|
3845
|
+
if (u.keyCode !== void 0) {
|
|
3846
|
+
yl(u);
|
|
3847
3847
|
return;
|
|
3848
3848
|
}
|
|
3849
|
-
if (
|
|
3849
|
+
if (u.target.value = "", y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), Ue(), typeof C == "string" && C.length !== 0) {
|
|
3850
3850
|
const q = C.toLocaleLowerCase(), N = (Q) => {
|
|
3851
3851
|
const oe = e.options.find((ee) => String(Q.value(ee)).toLocaleLowerCase() === q);
|
|
3852
3852
|
return oe === void 0 ? !1 : (w.value.indexOf(oe) === -1 ? Re(oe) : Le(), !0);
|
|
3853
3853
|
}, X = (Q) => {
|
|
3854
|
-
N(
|
|
3854
|
+
N(ke) !== !0 && Q !== !0 && N(se) !== !0 && We(C, !0, () => X(!0));
|
|
3855
3855
|
};
|
|
3856
3856
|
X();
|
|
3857
3857
|
} else
|
|
3858
|
-
f.clearValue(
|
|
3858
|
+
f.clearValue(u);
|
|
3859
3859
|
}
|
|
3860
|
-
function Sl(
|
|
3861
|
-
l("keypress",
|
|
3860
|
+
function Sl(u) {
|
|
3861
|
+
l("keypress", u);
|
|
3862
3862
|
}
|
|
3863
|
-
function kl(
|
|
3864
|
-
if (l("keydown",
|
|
3863
|
+
function kl(u) {
|
|
3864
|
+
if (l("keydown", u), En(u) === !0)
|
|
3865
3865
|
return;
|
|
3866
|
-
const C =
|
|
3867
|
-
if (
|
|
3868
|
-
|
|
3866
|
+
const C = h.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), q = u.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (r.value !== -1 || C === !0);
|
|
3867
|
+
if (u.keyCode === 27) {
|
|
3868
|
+
ye(u);
|
|
3869
3869
|
return;
|
|
3870
3870
|
}
|
|
3871
|
-
if (
|
|
3872
|
-
|
|
3871
|
+
if (u.keyCode === 9 && q === !1) {
|
|
3872
|
+
Ke();
|
|
3873
3873
|
return;
|
|
3874
3874
|
}
|
|
3875
|
-
if (
|
|
3876
|
-
if (
|
|
3877
|
-
te(
|
|
3875
|
+
if (u.target === void 0 || u.target.id !== f.targetUid.value || f.editable.value !== !0) return;
|
|
3876
|
+
if (u.keyCode === 40 && f.innerLoading.value !== !0 && i.value === !1) {
|
|
3877
|
+
te(u), Qe();
|
|
3878
3878
|
return;
|
|
3879
3879
|
}
|
|
3880
|
-
if (
|
|
3881
|
-
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ?
|
|
3880
|
+
if (u.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && h.value.length === 0) {
|
|
3881
|
+
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? Dt(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
3882
3882
|
return;
|
|
3883
3883
|
}
|
|
3884
|
-
(
|
|
3884
|
+
(u.keyCode === 35 || u.keyCode === 36) && (typeof h.value != "string" || h.value.length === 0) && (te(u), r.value = -1, kt(u.keyCode === 36 ? 1 : -1, e.multiple)), (u.keyCode === 33 || u.keyCode === 34) && j.value !== void 0 && (te(u), r.value = Math.max(
|
|
3885
3885
|
-1,
|
|
3886
3886
|
Math.min(
|
|
3887
3887
|
R.value,
|
|
3888
|
-
r.value + (
|
|
3888
|
+
r.value + (u.keyCode === 33 ? -1 : 1) * j.value.view
|
|
3889
3889
|
)
|
|
3890
|
-
),
|
|
3890
|
+
), kt(u.keyCode === 33 ? 1 : -1, e.multiple)), (u.keyCode === 38 || u.keyCode === 40) && (te(u), kt(u.keyCode === 38 ? -1 : 1, e.multiple));
|
|
3891
3891
|
const N = R.value;
|
|
3892
|
-
if ((k === void 0 || L < Date.now()) && (k = ""), N > 0 && e.useInput !== !0 &&
|
|
3893
|
-
|
|
3894
|
-
const X =
|
|
3895
|
-
L = Date.now() + 1500, Q === !1 && (te(
|
|
3896
|
-
const oe = new RegExp("^" + k.split("").map((
|
|
3892
|
+
if ((k === void 0 || L < Date.now()) && (k = ""), N > 0 && e.useInput !== !0 && u.key !== void 0 && u.key.length === 1 && u.altKey === !1 && u.ctrlKey === !1 && u.metaKey === !1 && (u.keyCode !== 32 || k.length !== 0)) {
|
|
3893
|
+
i.value !== !0 && Qe(u);
|
|
3894
|
+
const X = u.key.toLocaleLowerCase(), Q = k.length === 1 && k[0] === X;
|
|
3895
|
+
L = Date.now() + 1500, Q === !1 && (te(u), k += X);
|
|
3896
|
+
const oe = new RegExp("^" + k.split("").map((Wt) => Ru.indexOf(Wt) !== -1 ? "\\" + Wt : Wt).join(".*"), "i");
|
|
3897
3897
|
let ee = r.value;
|
|
3898
|
-
if (Q === !0 || ee < 0 || oe.test(
|
|
3898
|
+
if (Q === !0 || ee < 0 || oe.test(se.value(e.options[ee])) !== !0)
|
|
3899
3899
|
do
|
|
3900
3900
|
ee = cn(ee + 1, -1, N - 1);
|
|
3901
|
-
while (ee !== r.value && (
|
|
3901
|
+
while (ee !== r.value && (je.value(e.options[ee]) === !0 || oe.test(se.value(e.options[ee])) !== !0));
|
|
3902
3902
|
r.value !== ee && ce(() => {
|
|
3903
|
-
|
|
3903
|
+
Ne(ee), F(ee), ee >= 0 && e.useInput === !0 && e.fillInput === !0 && xt(se.value(e.options[ee]), !0);
|
|
3904
3904
|
});
|
|
3905
3905
|
return;
|
|
3906
3906
|
}
|
|
3907
|
-
if (!(
|
|
3908
|
-
if (
|
|
3907
|
+
if (!(u.keyCode !== 13 && (u.keyCode !== 32 || e.useInput === !0 || k !== "") && (u.keyCode !== 9 || q === !1))) {
|
|
3908
|
+
if (u.keyCode !== 9 && te(u), r.value !== -1 && r.value < N) {
|
|
3909
3909
|
Re(e.options[r.value]);
|
|
3910
3910
|
return;
|
|
3911
3911
|
}
|
|
@@ -3916,14 +3916,14 @@ const Mu = ve({
|
|
|
3916
3916
|
return;
|
|
3917
3917
|
} else
|
|
3918
3918
|
oe = e.newValueMode;
|
|
3919
|
-
if (
|
|
3919
|
+
if (ut("", e.multiple !== !0, !0), Q == null)
|
|
3920
3920
|
return;
|
|
3921
3921
|
(oe === "toggle" ? Re : pl)(Q, oe === "add-unique"), e.multiple !== !0 && (V.value !== null && V.value.focus(), Le());
|
|
3922
3922
|
};
|
|
3923
|
-
if (e.onNewValue !== void 0 ? l("newValue",
|
|
3923
|
+
if (e.onNewValue !== void 0 ? l("newValue", h.value, X) : X(h.value), e.multiple !== !0)
|
|
3924
3924
|
return;
|
|
3925
3925
|
}
|
|
3926
|
-
|
|
3926
|
+
i.value === !0 ? Ke() : f.innerLoading.value !== !0 && Qe();
|
|
3927
3927
|
}
|
|
3928
3928
|
}
|
|
3929
3929
|
function xl() {
|
|
@@ -3933,88 +3933,88 @@ const Mu = ve({
|
|
|
3933
3933
|
return xl();
|
|
3934
3934
|
}
|
|
3935
3935
|
function uo() {
|
|
3936
|
-
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? $e.value.map((
|
|
3936
|
+
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? $e.value.map((u) => t["selected-item"](u)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? $e.value.map((u, C) => g(Hi, {
|
|
3937
3937
|
key: "option-" + C,
|
|
3938
|
-
removable: f.editable.value === !0 &&
|
|
3938
|
+
removable: f.editable.value === !0 && je.value(u.opt) !== !0,
|
|
3939
3939
|
dense: !0,
|
|
3940
3940
|
textColor: e.color,
|
|
3941
|
-
tabindex:
|
|
3941
|
+
tabindex: Se.value,
|
|
3942
3942
|
onRemove() {
|
|
3943
|
-
|
|
3943
|
+
u.removeAtIndex(C);
|
|
3944
3944
|
}
|
|
3945
|
-
}, () =>
|
|
3945
|
+
}, () => g("span", {
|
|
3946
3946
|
class: "ellipsis",
|
|
3947
|
-
[
|
|
3947
|
+
[u.html === !0 ? "innerHTML" : "textContent"]: se.value(u.opt)
|
|
3948
3948
|
}))) : [
|
|
3949
|
-
|
|
3950
|
-
[
|
|
3949
|
+
g("span", {
|
|
3950
|
+
[De.value === !0 ? "innerHTML" : "textContent"]: ne.value
|
|
3951
3951
|
})
|
|
3952
3952
|
];
|
|
3953
3953
|
}
|
|
3954
3954
|
function Cl() {
|
|
3955
3955
|
if (Z.value === !0)
|
|
3956
|
-
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue:
|
|
3957
|
-
const
|
|
3956
|
+
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: h.value }) : void 0;
|
|
3957
|
+
const u = t.option !== void 0 ? t.option : (q) => g(zn, {
|
|
3958
3958
|
key: q.index,
|
|
3959
3959
|
...q.itemProps
|
|
3960
|
-
}, () =>
|
|
3961
|
-
|
|
3962
|
-
() =>
|
|
3960
|
+
}, () => g(
|
|
3961
|
+
Rt,
|
|
3962
|
+
() => g(
|
|
3963
3963
|
Pn,
|
|
3964
|
-
() =>
|
|
3964
|
+
() => g("span", {
|
|
3965
3965
|
[q.html === !0 ? "innerHTML" : "textContent"]: q.label
|
|
3966
3966
|
})
|
|
3967
3967
|
)
|
|
3968
3968
|
));
|
|
3969
|
-
let C =
|
|
3969
|
+
let C = ve("div", wt.value.map(u));
|
|
3970
3970
|
return t["before-options"] !== void 0 && (C = t["before-options"]().concat(C)), Oe(t["after-options"], C);
|
|
3971
3971
|
}
|
|
3972
|
-
function ao(
|
|
3973
|
-
const q = C === !0 ? { ...
|
|
3972
|
+
function ao(u, C) {
|
|
3973
|
+
const q = C === !0 ? { ...yt.value, ...f.splitAttrs.attributes.value } : void 0, N = {
|
|
3974
3974
|
ref: C === !0 ? V : void 0,
|
|
3975
3975
|
key: "i_t",
|
|
3976
3976
|
class: I.value,
|
|
3977
3977
|
style: e.inputStyle,
|
|
3978
|
-
value:
|
|
3978
|
+
value: h.value !== void 0 ? h.value : "",
|
|
3979
3979
|
// required for Android in order to show ENTER key when in form
|
|
3980
3980
|
type: "search",
|
|
3981
3981
|
...q,
|
|
3982
3982
|
id: C === !0 ? f.targetUid.value : void 0,
|
|
3983
3983
|
maxlength: e.maxlength,
|
|
3984
3984
|
autocomplete: e.autocomplete,
|
|
3985
|
-
"data-autofocus":
|
|
3985
|
+
"data-autofocus": u === !0 || e.autofocus === !0 || void 0,
|
|
3986
3986
|
disabled: e.disable === !0,
|
|
3987
3987
|
readonly: e.readonly === !0,
|
|
3988
3988
|
...lo.value
|
|
3989
3989
|
};
|
|
3990
|
-
return
|
|
3990
|
+
return u !== !0 && m === !0 && (Array.isArray(N.class) === !0 ? N.class = [...N.class, "no-pointer-events"] : N.class += " no-pointer-events"), g("input", N);
|
|
3991
3991
|
}
|
|
3992
|
-
function ql(
|
|
3993
|
-
y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), !(
|
|
3994
|
-
y = null,
|
|
3992
|
+
function ql(u) {
|
|
3993
|
+
y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), !(u && u.target && u.target.qComposing === !0) && (xt(u.target.value || ""), x = !0, O = h.value, f.focused.value !== !0 && (m !== !0 || b.value === !0) && f.focus(), e.onFilter !== void 0 && (y = setTimeout(() => {
|
|
3994
|
+
y = null, We(h.value);
|
|
3995
3995
|
}, e.inputDebounce)));
|
|
3996
3996
|
}
|
|
3997
|
-
function
|
|
3998
|
-
|
|
3999
|
-
v = null, l("inputValue",
|
|
3997
|
+
function xt(u, C) {
|
|
3998
|
+
h.value !== u && (h.value = u, C === !0 || e.inputDebounce === 0 || e.inputDebounce === "0" ? l("inputValue", u) : v = setTimeout(() => {
|
|
3999
|
+
v = null, l("inputValue", u);
|
|
4000
4000
|
}, e.inputDebounce));
|
|
4001
4001
|
}
|
|
4002
|
-
function
|
|
4003
|
-
x = q !== !0, e.useInput === !0 && (
|
|
4002
|
+
function ut(u, C, q) {
|
|
4003
|
+
x = q !== !0, e.useInput === !0 && (xt(u, !0), (C === !0 || q !== !0) && (O = u), C !== !0 && We(u));
|
|
4004
4004
|
}
|
|
4005
|
-
function
|
|
4005
|
+
function We(u, C, q) {
|
|
4006
4006
|
if (e.onFilter === void 0 || C !== !0 && f.focused.value !== !0)
|
|
4007
4007
|
return;
|
|
4008
|
-
f.innerLoading.value === !0 ? l("filterAbort") : (f.innerLoading.value = !0, s.value = !0),
|
|
4008
|
+
f.innerLoading.value === !0 ? l("filterAbort") : (f.innerLoading.value = !0, s.value = !0), u !== "" && e.multiple !== !0 && w.value.length !== 0 && x !== !0 && u === se.value(w.value[0]) && (u = "");
|
|
4009
4009
|
const N = setTimeout(() => {
|
|
4010
|
-
|
|
4010
|
+
i.value === !0 && (i.value = !1);
|
|
4011
4011
|
}, 10);
|
|
4012
4012
|
p !== null && clearTimeout(p), p = N, l(
|
|
4013
4013
|
"filter",
|
|
4014
|
-
|
|
4014
|
+
u,
|
|
4015
4015
|
(X, Q) => {
|
|
4016
4016
|
(C === !0 || f.focused.value === !0) && p === N && (clearTimeout(p), typeof X == "function" && X(), s.value = !1, ce(() => {
|
|
4017
|
-
f.innerLoading.value = !1, f.editable.value === !0 && (C === !0 ?
|
|
4017
|
+
f.innerLoading.value = !1, f.editable.value === !0 && (C === !0 ? i.value === !0 && Le() : i.value === !0 ? Nt(!0) : i.value = !0), typeof Q == "function" && ce(() => {
|
|
4018
4018
|
Q(n);
|
|
4019
4019
|
}), typeof q == "function" && ce(() => {
|
|
4020
4020
|
q(n);
|
|
@@ -4022,16 +4022,16 @@ const Mu = ve({
|
|
|
4022
4022
|
}));
|
|
4023
4023
|
},
|
|
4024
4024
|
() => {
|
|
4025
|
-
f.focused.value === !0 && p === N && (clearTimeout(p), f.innerLoading.value = !1, s.value = !1),
|
|
4025
|
+
f.focused.value === !0 && p === N && (clearTimeout(p), f.innerLoading.value = !1, s.value = !1), i.value === !0 && (i.value = !1);
|
|
4026
4026
|
}
|
|
4027
4027
|
);
|
|
4028
4028
|
}
|
|
4029
4029
|
function ro() {
|
|
4030
|
-
return
|
|
4030
|
+
return g(gu, {
|
|
4031
4031
|
ref: M,
|
|
4032
4032
|
class: z.value,
|
|
4033
4033
|
style: e.popupContentStyle,
|
|
4034
|
-
modelValue:
|
|
4034
|
+
modelValue: i.value,
|
|
4035
4035
|
fit: e.menuShrink !== !0,
|
|
4036
4036
|
cover: e.optionsCover === !0 && Z.value !== !0 && e.useInput !== !0,
|
|
4037
4037
|
anchor: e.menuAnchor,
|
|
@@ -4042,7 +4042,7 @@ const Mu = ve({
|
|
|
4042
4042
|
noRefocus: !0,
|
|
4043
4043
|
noFocus: !0,
|
|
4044
4044
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
4045
|
-
square:
|
|
4045
|
+
square: Ht.value,
|
|
4046
4046
|
transitionShow: e.transitionShow,
|
|
4047
4047
|
transitionHide: e.transitionHide,
|
|
4048
4048
|
transitionDuration: e.transitionDuration,
|
|
@@ -4054,23 +4054,23 @@ const Mu = ve({
|
|
|
4054
4054
|
onShow: co
|
|
4055
4055
|
}, Cl);
|
|
4056
4056
|
}
|
|
4057
|
-
function so(
|
|
4058
|
-
Vl(
|
|
4057
|
+
function so(u) {
|
|
4058
|
+
Vl(u), Ke();
|
|
4059
4059
|
}
|
|
4060
4060
|
function co() {
|
|
4061
|
-
|
|
4061
|
+
me();
|
|
4062
4062
|
}
|
|
4063
|
-
function fo(
|
|
4064
|
-
Ee(
|
|
4063
|
+
function fo(u) {
|
|
4064
|
+
Ee(u), V.value !== null && V.value.focus(), b.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
4065
4065
|
}
|
|
4066
|
-
function vo(
|
|
4067
|
-
Ee(
|
|
4066
|
+
function vo(u) {
|
|
4067
|
+
Ee(u), ce(() => {
|
|
4068
4068
|
b.value = !1;
|
|
4069
4069
|
});
|
|
4070
4070
|
}
|
|
4071
4071
|
function mo() {
|
|
4072
|
-
const
|
|
4073
|
-
|
|
4072
|
+
const u = [
|
|
4073
|
+
g(Ii, {
|
|
4074
4074
|
class: `col-auto ${f.fieldClass.value}`,
|
|
4075
4075
|
...H.value,
|
|
4076
4076
|
for: f.targetUid.value,
|
|
@@ -4079,7 +4079,7 @@ const Mu = ve({
|
|
|
4079
4079
|
loading: s.value,
|
|
4080
4080
|
itemAligned: !1,
|
|
4081
4081
|
filled: !0,
|
|
4082
|
-
stackLabel:
|
|
4082
|
+
stackLabel: h.value.length !== 0,
|
|
4083
4083
|
...f.splitAttrs.listeners.value,
|
|
4084
4084
|
onFocus: fo,
|
|
4085
4085
|
onBlur: vo
|
|
@@ -4090,16 +4090,16 @@ const Mu = ve({
|
|
|
4090
4090
|
after: void 0
|
|
4091
4091
|
})
|
|
4092
4092
|
];
|
|
4093
|
-
return
|
|
4094
|
-
|
|
4093
|
+
return i.value === !0 && u.push(
|
|
4094
|
+
g("div", {
|
|
4095
4095
|
ref: W,
|
|
4096
4096
|
class: z.value + " scroll",
|
|
4097
4097
|
style: e.popupContentStyle,
|
|
4098
4098
|
...Te.value,
|
|
4099
|
-
onClick:
|
|
4099
|
+
onClick: ye,
|
|
4100
4100
|
onScrollPassive: _
|
|
4101
4101
|
}, Cl())
|
|
4102
|
-
),
|
|
4102
|
+
), g(ku, {
|
|
4103
4103
|
ref: P,
|
|
4104
4104
|
modelValue: a.value,
|
|
4105
4105
|
position: e.useInput === !0 ? "top" : void 0,
|
|
@@ -4111,64 +4111,64 @@ const Mu = ve({
|
|
|
4111
4111
|
onBeforeHide: go,
|
|
4112
4112
|
onHide: ho,
|
|
4113
4113
|
onShow: po
|
|
4114
|
-
}, () =>
|
|
4114
|
+
}, () => g("div", {
|
|
4115
4115
|
class: "q-select__dialog" + (T.value === !0 ? " q-select__dialog--dark q-dark" : "") + (b.value === !0 ? " q-select__dialog--focused" : "")
|
|
4116
|
-
},
|
|
4116
|
+
}, u));
|
|
4117
4117
|
}
|
|
4118
|
-
function go(
|
|
4119
|
-
Vl(
|
|
4118
|
+
function go(u) {
|
|
4119
|
+
Vl(u), P.value !== null && P.value.__updateRefocusTarget(
|
|
4120
4120
|
f.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
4121
4121
|
), f.focused.value = !1;
|
|
4122
4122
|
}
|
|
4123
|
-
function ho(
|
|
4124
|
-
Le(), f.focused.value === !1 && l("blur",
|
|
4123
|
+
function ho(u) {
|
|
4124
|
+
Le(), f.focused.value === !1 && l("blur", u), Ue();
|
|
4125
4125
|
}
|
|
4126
4126
|
function po() {
|
|
4127
|
-
const
|
|
4128
|
-
(
|
|
4127
|
+
const u = document.activeElement;
|
|
4128
|
+
(u === null || u.id !== f.targetUid.value) && V.value !== null && V.value !== u && V.value.focus(), me();
|
|
4129
4129
|
}
|
|
4130
|
-
function
|
|
4131
|
-
a.value !== !0 && (r.value = -1,
|
|
4130
|
+
function Ke() {
|
|
4131
|
+
a.value !== !0 && (r.value = -1, i.value === !0 && (i.value = !1), f.focused.value === !1 && (p !== null && (clearTimeout(p), p = null), f.innerLoading.value === !0 && (l("filterAbort"), f.innerLoading.value = !1, s.value = !1)));
|
|
4132
4132
|
}
|
|
4133
|
-
function
|
|
4134
|
-
f.editable.value === !0 && (m === !0 ? (f.onControlFocusin(
|
|
4133
|
+
function Qe(u) {
|
|
4134
|
+
f.editable.value === !0 && (m === !0 ? (f.onControlFocusin(u), a.value = !0, ce(() => {
|
|
4135
4135
|
f.focus();
|
|
4136
|
-
})) : f.focus(), e.onFilter !== void 0 ?
|
|
4136
|
+
})) : f.focus(), e.onFilter !== void 0 ? We(h.value) : (Z.value !== !0 || t["no-option"] !== void 0) && (i.value = !0));
|
|
4137
4137
|
}
|
|
4138
4138
|
function Le() {
|
|
4139
|
-
a.value = !1,
|
|
4139
|
+
a.value = !1, Ke();
|
|
4140
4140
|
}
|
|
4141
|
-
function
|
|
4142
|
-
e.useInput === !0 &&
|
|
4143
|
-
e.multiple !== !0 && e.fillInput === !0 && w.value.length !== 0 &&
|
|
4141
|
+
function Ue() {
|
|
4142
|
+
e.useInput === !0 && ut(
|
|
4143
|
+
e.multiple !== !0 && e.fillInput === !0 && w.value.length !== 0 && se.value(w.value[0]) || "",
|
|
4144
4144
|
!0,
|
|
4145
4145
|
!0
|
|
4146
4146
|
);
|
|
4147
4147
|
}
|
|
4148
|
-
function
|
|
4148
|
+
function Nt(u) {
|
|
4149
4149
|
let C = -1;
|
|
4150
|
-
if (
|
|
4150
|
+
if (u === !0) {
|
|
4151
4151
|
if (w.value.length !== 0) {
|
|
4152
|
-
const q =
|
|
4153
|
-
C = e.options.findIndex((N) => Ve(
|
|
4152
|
+
const q = ke.value(w.value[0]);
|
|
4153
|
+
C = e.options.findIndex((N) => Ve(ke.value(N), q));
|
|
4154
4154
|
}
|
|
4155
4155
|
Y(C);
|
|
4156
4156
|
}
|
|
4157
|
-
|
|
4157
|
+
Ne(C);
|
|
4158
4158
|
}
|
|
4159
|
-
function bo(
|
|
4160
|
-
|
|
4161
|
-
|
|
4159
|
+
function bo(u, C) {
|
|
4160
|
+
i.value === !0 && f.innerLoading.value === !1 && (Y(-1, !0), ce(() => {
|
|
4161
|
+
i.value === !0 && f.innerLoading.value === !1 && (u > C ? Y() : Nt(!0));
|
|
4162
4162
|
}));
|
|
4163
4163
|
}
|
|
4164
4164
|
function _l() {
|
|
4165
4165
|
a.value === !1 && M.value !== null && M.value.updatePosition();
|
|
4166
4166
|
}
|
|
4167
|
-
function El(
|
|
4168
|
-
|
|
4167
|
+
function El(u) {
|
|
4168
|
+
u !== void 0 && Ee(u), l("popupShow", u), f.hasPopupOpen = !0, f.onControlFocusin(u);
|
|
4169
4169
|
}
|
|
4170
|
-
function Vl(
|
|
4171
|
-
|
|
4170
|
+
function Vl(u) {
|
|
4171
|
+
u !== void 0 && Ee(u), l("popupHide", u), f.hasPopupOpen = !1, f.onControlFocusout(u);
|
|
4172
4172
|
}
|
|
4173
4173
|
function Bl() {
|
|
4174
4174
|
m = o.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || Z.value === !1 : !0), B = o.platform.is.ios === !0 && m === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
@@ -4176,22 +4176,22 @@ const Mu = ve({
|
|
|
4176
4176
|
return pn(Bl), _o(_l), Bl(), fe(() => {
|
|
4177
4177
|
y !== null && clearTimeout(y), v !== null && clearTimeout(v);
|
|
4178
4178
|
}), Object.assign(n, {
|
|
4179
|
-
showPopup:
|
|
4179
|
+
showPopup: Qe,
|
|
4180
4180
|
hidePopup: Le,
|
|
4181
|
-
removeAtIndex:
|
|
4181
|
+
removeAtIndex: Dt,
|
|
4182
4182
|
add: pl,
|
|
4183
4183
|
toggleOption: Re,
|
|
4184
4184
|
getOptionIndex: () => r.value,
|
|
4185
|
-
setOptionIndex:
|
|
4186
|
-
moveOptionSelection:
|
|
4187
|
-
filter:
|
|
4185
|
+
setOptionIndex: Ne,
|
|
4186
|
+
moveOptionSelection: kt,
|
|
4187
|
+
filter: We,
|
|
4188
4188
|
updateMenuPosition: _l,
|
|
4189
|
-
updateInputValue:
|
|
4190
|
-
isOptionSelected:
|
|
4189
|
+
updateInputValue: ut,
|
|
4190
|
+
isOptionSelected: jt,
|
|
4191
4191
|
getEmittingOptionValue: hl,
|
|
4192
|
-
isOptionDisabled: (...
|
|
4193
|
-
getOptionValue: (...
|
|
4194
|
-
getOptionLabel: (...
|
|
4192
|
+
isOptionDisabled: (...u) => je.value.apply(null, u) === !0,
|
|
4193
|
+
getOptionValue: (...u) => ke.value.apply(null, u),
|
|
4194
|
+
getOptionLabel: (...u) => se.value.apply(null, u)
|
|
4195
4195
|
}), Object.assign(f, {
|
|
4196
4196
|
innerValue: w,
|
|
4197
4197
|
fieldClass: d(
|
|
@@ -4200,9 +4200,9 @@ const Mu = ve({
|
|
|
4200
4200
|
inputRef: $,
|
|
4201
4201
|
targetRef: V,
|
|
4202
4202
|
hasValue: D,
|
|
4203
|
-
showPopup:
|
|
4203
|
+
showPopup: Qe,
|
|
4204
4204
|
floatingLabel: d(
|
|
4205
|
-
() => e.hideSelected !== !0 && D.value === !0 || typeof
|
|
4205
|
+
() => e.hideSelected !== !0 && D.value === !0 || typeof h.value == "number" || h.value.length !== 0 || sl(e.displayValue)
|
|
4206
4206
|
),
|
|
4207
4207
|
getControlChild: () => {
|
|
4208
4208
|
if (f.editable.value !== !1 && (a.value === !0 || Z.value !== !0 || t["no-option"] !== void 0))
|
|
@@ -4210,44 +4210,44 @@ const Mu = ve({
|
|
|
4210
4210
|
f.hasPopupOpen === !0 && (f.hasPopupOpen = !1);
|
|
4211
4211
|
},
|
|
4212
4212
|
controlEvents: {
|
|
4213
|
-
onFocusin(
|
|
4214
|
-
f.onControlFocusin(
|
|
4213
|
+
onFocusin(u) {
|
|
4214
|
+
f.onControlFocusin(u);
|
|
4215
4215
|
},
|
|
4216
|
-
onFocusout(
|
|
4217
|
-
f.onControlFocusout(
|
|
4218
|
-
|
|
4216
|
+
onFocusout(u) {
|
|
4217
|
+
f.onControlFocusout(u, () => {
|
|
4218
|
+
Ue(), Ke();
|
|
4219
4219
|
});
|
|
4220
4220
|
},
|
|
4221
|
-
onClick(
|
|
4222
|
-
if (
|
|
4223
|
-
|
|
4221
|
+
onClick(u) {
|
|
4222
|
+
if (ye(u), m !== !0 && i.value === !0) {
|
|
4223
|
+
Ke(), V.value !== null && V.value.focus();
|
|
4224
4224
|
return;
|
|
4225
4225
|
}
|
|
4226
|
-
|
|
4226
|
+
Qe(u);
|
|
4227
4227
|
}
|
|
4228
4228
|
},
|
|
4229
|
-
getControl: (
|
|
4230
|
-
const C = uo(), q =
|
|
4229
|
+
getControl: (u) => {
|
|
4230
|
+
const C = uo(), q = u === !0 || a.value !== !0 || m !== !0;
|
|
4231
4231
|
if (e.useInput === !0)
|
|
4232
|
-
C.push(ao(
|
|
4232
|
+
C.push(ao(u, q));
|
|
4233
4233
|
else if (f.editable.value === !0) {
|
|
4234
|
-
const X = q === !0 ?
|
|
4234
|
+
const X = q === !0 ? yt.value : void 0;
|
|
4235
4235
|
C.push(
|
|
4236
|
-
|
|
4236
|
+
g("input", {
|
|
4237
4237
|
ref: q === !0 ? V : void 0,
|
|
4238
4238
|
key: "d_t",
|
|
4239
4239
|
class: "q-select__focus-target",
|
|
4240
4240
|
id: q === !0 ? f.targetUid.value : void 0,
|
|
4241
4241
|
value: ne.value,
|
|
4242
4242
|
readonly: !0,
|
|
4243
|
-
"data-autofocus":
|
|
4243
|
+
"data-autofocus": u === !0 || e.autofocus === !0 || void 0,
|
|
4244
4244
|
...X,
|
|
4245
4245
|
onKeydown: kl,
|
|
4246
4246
|
onKeyup: yl,
|
|
4247
4247
|
onKeypress: Sl
|
|
4248
4248
|
})
|
|
4249
4249
|
), q === !0 && typeof e.autocomplete == "string" && e.autocomplete.length !== 0 && C.push(
|
|
4250
|
-
|
|
4250
|
+
g("input", {
|
|
4251
4251
|
class: "q-select__autocomplete-input",
|
|
4252
4252
|
autocomplete: e.autocomplete,
|
|
4253
4253
|
tabindex: -1,
|
|
@@ -4255,10 +4255,10 @@ const Mu = ve({
|
|
|
4255
4255
|
})
|
|
4256
4256
|
);
|
|
4257
4257
|
}
|
|
4258
|
-
if (G.value !== void 0 && e.disable !== !0 &&
|
|
4259
|
-
const X =
|
|
4258
|
+
if (G.value !== void 0 && e.disable !== !0 && St.value.length !== 0) {
|
|
4259
|
+
const X = St.value.map((Q) => g("option", { value: Q, selected: !0 }));
|
|
4260
4260
|
C.push(
|
|
4261
|
-
|
|
4261
|
+
g("select", {
|
|
4262
4262
|
class: "hidden",
|
|
4263
4263
|
name: G.value,
|
|
4264
4264
|
multiple: e.multiple
|
|
@@ -4266,21 +4266,53 @@ const Mu = ve({
|
|
|
4266
4266
|
);
|
|
4267
4267
|
}
|
|
4268
4268
|
const N = e.useInput === !0 || q !== !0 ? void 0 : f.splitAttrs.attributes.value;
|
|
4269
|
-
return
|
|
4269
|
+
return g("div", {
|
|
4270
4270
|
class: "q-field__native row items-center",
|
|
4271
4271
|
...N,
|
|
4272
4272
|
...f.splitAttrs.listeners.value
|
|
4273
4273
|
}, C);
|
|
4274
4274
|
},
|
|
4275
4275
|
getInnerAppend: () => e.loading !== !0 && s.value !== !0 && e.hideDropdownIcon !== !0 ? [
|
|
4276
|
-
|
|
4277
|
-
class: "q-select__dropdown-icon" + (
|
|
4278
|
-
name:
|
|
4276
|
+
g(_e, {
|
|
4277
|
+
class: "q-select__dropdown-icon" + (i.value === !0 ? " rotate-180" : ""),
|
|
4278
|
+
name: ot.value
|
|
4279
4279
|
})
|
|
4280
4280
|
] : null
|
|
4281
4281
|
}), jn(f);
|
|
4282
4282
|
}
|
|
4283
|
-
})
|
|
4283
|
+
});
|
|
4284
|
+
function Ou() {
|
|
4285
|
+
const e = A(!tt.value);
|
|
4286
|
+
return e.value === !1 && nt(() => {
|
|
4287
|
+
e.value = !0;
|
|
4288
|
+
}), { isHydrated: e };
|
|
4289
|
+
}
|
|
4290
|
+
const Au = re({
|
|
4291
|
+
name: "QNoSsr",
|
|
4292
|
+
props: {
|
|
4293
|
+
tag: {
|
|
4294
|
+
type: String,
|
|
4295
|
+
default: "div"
|
|
4296
|
+
},
|
|
4297
|
+
placeholder: String
|
|
4298
|
+
},
|
|
4299
|
+
setup(e, { slots: t }) {
|
|
4300
|
+
const { isHydrated: l } = Ou();
|
|
4301
|
+
return () => {
|
|
4302
|
+
if (l.value === !0) {
|
|
4303
|
+
const i = pe(t.default);
|
|
4304
|
+
return i === void 0 ? i : i.length > 1 ? g(e.tag, {}, i) : i[0];
|
|
4305
|
+
}
|
|
4306
|
+
const n = {
|
|
4307
|
+
class: "q-no-ssr-placeholder"
|
|
4308
|
+
}, o = pe(t.placeholder);
|
|
4309
|
+
if (o !== void 0)
|
|
4310
|
+
return o.length > 1 ? g(e.tag, n, o) : o[0];
|
|
4311
|
+
if (e.placeholder !== void 0)
|
|
4312
|
+
return g(e.tag, n, e.placeholder);
|
|
4313
|
+
};
|
|
4314
|
+
}
|
|
4315
|
+
}), Pu = { class: "app-select__amount" }, zu = /* @__PURE__ */ ht({
|
|
4284
4316
|
__name: "index",
|
|
4285
4317
|
props: {
|
|
4286
4318
|
modelValue: {},
|
|
@@ -4300,7 +4332,7 @@ const Mu = ve({
|
|
|
4300
4332
|
},
|
|
4301
4333
|
emits: ["update:modelValue"],
|
|
4302
4334
|
setup(e, { emit: t }) {
|
|
4303
|
-
const l = e, n = t, o = A(!1),
|
|
4335
|
+
const l = e, n = t, o = A(!1), i = A(""), a = d({
|
|
4304
4336
|
get() {
|
|
4305
4337
|
return l.modelValue;
|
|
4306
4338
|
},
|
|
@@ -4314,8 +4346,8 @@ const Mu = ve({
|
|
|
4314
4346
|
return l.placeholder;
|
|
4315
4347
|
} else return ((c = a.value) == null ? void 0 : c.label) || l.placeholder || "";
|
|
4316
4348
|
return "";
|
|
4317
|
-
}),
|
|
4318
|
-
(c) => c.label.toLowerCase().includes(
|
|
4349
|
+
}), h = d(() => !(!l.clearable || !l.modelValue || l.modelValue && Array.isArray(l.modelValue) && !l.modelValue.length)), b = d(() => i.value ? l.options.filter(
|
|
4350
|
+
(c) => c.label.toLowerCase().includes(i.value.toLowerCase())
|
|
4319
4351
|
) : l.options), s = d(() => {
|
|
4320
4352
|
if (l.rules)
|
|
4321
4353
|
return l.required ? [...l.rules, Fl] : l.rules;
|
|
@@ -4325,133 +4357,138 @@ const Mu = ve({
|
|
|
4325
4357
|
a.value = void 0;
|
|
4326
4358
|
}, v = (c, m) => {
|
|
4327
4359
|
m(() => {
|
|
4328
|
-
|
|
4360
|
+
i.value = c;
|
|
4329
4361
|
});
|
|
4330
4362
|
};
|
|
4331
|
-
return (c, m) => (ue(),
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
}, Ze(c.required ? `${c.label} *` : c.label), 3)) : Ce("", !0),
|
|
4338
|
-
it(Je(Mu), {
|
|
4339
|
-
standout: "",
|
|
4340
|
-
"hide-bottom-space": "",
|
|
4341
|
-
"hide-dropdown-icon": "",
|
|
4342
|
-
"no-error-icon": "",
|
|
4343
|
-
behavior: "menu",
|
|
4344
|
-
"popup-content-class": `app-select-menu app-select-menu_${c.size}`,
|
|
4345
|
-
placeholder: c.filtering && "Почніть вводити",
|
|
4346
|
-
"input-debounce": "50",
|
|
4347
|
-
modelValue: a.value,
|
|
4348
|
-
"onUpdate:modelValue": m[0] || (m[0] = (x) => a.value = x),
|
|
4349
|
-
options: b.value,
|
|
4350
|
-
multiple: c.multiple,
|
|
4351
|
-
"use-input": c.filtering && (Array.isArray(a.value) || !a.value),
|
|
4352
|
-
rules: s.value,
|
|
4353
|
-
"lazy-rules": c.lazyRules,
|
|
4354
|
-
autofocus: c.autofocus,
|
|
4355
|
-
disable: c.disabled,
|
|
4356
|
-
loading: c.loading,
|
|
4357
|
-
onFilter: v,
|
|
4358
|
-
onPopupShow: m[1] || (m[1] = (x) => o.value = !0),
|
|
4359
|
-
onPopupHide: m[2] || (m[2] = (x) => o.value = !1)
|
|
4360
|
-
}, {
|
|
4361
|
-
append: xe(() => [
|
|
4362
|
-
g.value ? (ue(), se("i", {
|
|
4363
|
+
return (c, m) => (ue(), ft(Pe(Au), null, {
|
|
4364
|
+
default: xe(() => [
|
|
4365
|
+
Ct("div", {
|
|
4366
|
+
class: Be(["app-select", [{ "app-select_opened": o.value }, `app-select_${c.size}`]])
|
|
4367
|
+
}, [
|
|
4368
|
+
c.label ? (ue(), he("label", {
|
|
4363
4369
|
key: 0,
|
|
4364
|
-
class: "
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
key: 0,
|
|
4392
|
-
class: Be([
|
|
4393
|
-
"app-select__selected",
|
|
4394
|
-
{ "app-select__placeholder": !a.value && c.placeholder }
|
|
4395
|
-
])
|
|
4396
|
-
}, Ze(r.value), 3)) : Ce("", !0)
|
|
4397
|
-
], 64))
|
|
4398
|
-
];
|
|
4399
|
-
}),
|
|
4400
|
-
option: xe((x) => [
|
|
4401
|
-
it(zn, gn({
|
|
4402
|
-
class: ["app-select__option", { "app-select__option_selected": x.selected }]
|
|
4403
|
-
}, x.itemProps), {
|
|
4404
|
-
default: xe(() => [
|
|
4405
|
-
l.multiple ? (ue(), $t(Tt, {
|
|
4370
|
+
class: Be(["app-select__label", { "app-select__label_bold": c.required }])
|
|
4371
|
+
}, Je(c.required ? `${c.label} *` : c.label), 3)) : Ce("", !0),
|
|
4372
|
+
at(Pe(Mu), {
|
|
4373
|
+
standout: "",
|
|
4374
|
+
"hide-bottom-space": "",
|
|
4375
|
+
"hide-dropdown-icon": "",
|
|
4376
|
+
"no-error-icon": "",
|
|
4377
|
+
behavior: "menu",
|
|
4378
|
+
"popup-content-class": `app-select-menu app-select-menu_${c.size}`,
|
|
4379
|
+
placeholder: c.filtering && "Почніть вводити",
|
|
4380
|
+
"input-debounce": "50",
|
|
4381
|
+
modelValue: a.value,
|
|
4382
|
+
"onUpdate:modelValue": m[0] || (m[0] = (x) => a.value = x),
|
|
4383
|
+
options: b.value,
|
|
4384
|
+
multiple: c.multiple,
|
|
4385
|
+
"use-input": c.filtering && (Array.isArray(a.value) || !a.value),
|
|
4386
|
+
rules: s.value,
|
|
4387
|
+
"lazy-rules": c.lazyRules,
|
|
4388
|
+
autofocus: c.autofocus,
|
|
4389
|
+
disable: c.disabled,
|
|
4390
|
+
loading: c.loading,
|
|
4391
|
+
onFilter: v,
|
|
4392
|
+
onPopupShow: m[1] || (m[1] = (x) => o.value = !0),
|
|
4393
|
+
onPopupHide: m[2] || (m[2] = (x) => o.value = !1)
|
|
4394
|
+
}, {
|
|
4395
|
+
append: xe(() => [
|
|
4396
|
+
h.value ? (ue(), he("i", {
|
|
4406
4397
|
key: 0,
|
|
4407
|
-
class: "
|
|
4408
|
-
|
|
4409
|
-
}, {
|
|
4410
|
-
default: xe(() => [
|
|
4411
|
-
it(_i, {
|
|
4412
|
-
size: "30px",
|
|
4413
|
-
"model-value": x.selected,
|
|
4414
|
-
"onUpdate:modelValue": () => x.toggleOption(x.opt)
|
|
4415
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4416
|
-
]),
|
|
4417
|
-
_: 2
|
|
4418
|
-
}, 1024)) : Ce("", !0),
|
|
4419
|
-
x.opt.done ? (ue(), $t(Tt, {
|
|
4420
|
-
key: 1,
|
|
4421
|
-
class: "option-done",
|
|
4422
|
-
avatar: ""
|
|
4423
|
-
}, {
|
|
4424
|
-
default: xe(() => m[5] || (m[5] = [
|
|
4425
|
-
Wt("i", { class: "icon-kl icon-kl-check option-done__icon" }, null, -1)
|
|
4426
|
-
])),
|
|
4427
|
-
_: 1
|
|
4398
|
+
class: "icon-kl icon-kl-close app-select__clear",
|
|
4399
|
+
onClick: hn(y, ["stop", "prevent"])
|
|
4428
4400
|
})) : Ce("", !0),
|
|
4429
|
-
|
|
4401
|
+
m[3] || (m[3] = Ct("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
|
|
4402
|
+
]),
|
|
4403
|
+
selected: xe(() => {
|
|
4404
|
+
var x, p;
|
|
4405
|
+
return [
|
|
4406
|
+
Array.isArray(a.value) ? (ue(), he(ct, { key: 0 }, [
|
|
4407
|
+
!c.filtering || a.value.length ? (ue(), he("span", {
|
|
4408
|
+
key: 0,
|
|
4409
|
+
class: Be([
|
|
4410
|
+
"app-select__selected",
|
|
4411
|
+
{
|
|
4412
|
+
"app-select__placeholder": !((x = a.value) != null && x.length) && c.placeholder
|
|
4413
|
+
}
|
|
4414
|
+
])
|
|
4415
|
+
}, [
|
|
4416
|
+
(p = a.value) != null && p.length ? (ue(), he(ct, { key: 0 }, [
|
|
4417
|
+
m[4] || (m[4] = $t(" Вибрано ")),
|
|
4418
|
+
Ct("span", Pu, Je(a.value.length), 1)
|
|
4419
|
+
], 64)) : (ue(), he(ct, { key: 1 }, [
|
|
4420
|
+
$t(Je(l.placeholder), 1)
|
|
4421
|
+
], 64))
|
|
4422
|
+
], 2)) : Ce("", !0)
|
|
4423
|
+
], 64)) : (ue(), he(ct, { key: 1 }, [
|
|
4424
|
+
!c.filtering || a.value ? (ue(), he("span", {
|
|
4425
|
+
key: 0,
|
|
4426
|
+
class: Be([
|
|
4427
|
+
"app-select__selected",
|
|
4428
|
+
{ "app-select__placeholder": !a.value && c.placeholder }
|
|
4429
|
+
])
|
|
4430
|
+
}, Je(r.value), 3)) : Ce("", !0)
|
|
4431
|
+
], 64))
|
|
4432
|
+
];
|
|
4433
|
+
}),
|
|
4434
|
+
option: xe((x) => [
|
|
4435
|
+
at(zn, gn({
|
|
4436
|
+
class: ["app-select__option", { "app-select__option_selected": x.selected }]
|
|
4437
|
+
}, x.itemProps), {
|
|
4430
4438
|
default: xe(() => [
|
|
4431
|
-
|
|
4439
|
+
l.multiple ? (ue(), ft(Rt, {
|
|
4440
|
+
key: 0,
|
|
4441
|
+
class: "option-multiple",
|
|
4442
|
+
avatar: ""
|
|
4443
|
+
}, {
|
|
4432
4444
|
default: xe(() => [
|
|
4433
|
-
|
|
4445
|
+
at(_i, {
|
|
4446
|
+
size: "30px",
|
|
4447
|
+
"model-value": x.selected,
|
|
4448
|
+
"onUpdate:modelValue": () => x.toggleOption(x.opt)
|
|
4449
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
4450
|
+
]),
|
|
4451
|
+
_: 2
|
|
4452
|
+
}, 1024)) : Ce("", !0),
|
|
4453
|
+
x.opt.done ? (ue(), ft(Rt, {
|
|
4454
|
+
key: 1,
|
|
4455
|
+
class: "option-done",
|
|
4456
|
+
avatar: ""
|
|
4457
|
+
}, {
|
|
4458
|
+
default: xe(() => m[5] || (m[5] = [
|
|
4459
|
+
Ct("i", { class: "icon-kl icon-kl-check option-done__icon" }, null, -1)
|
|
4460
|
+
])),
|
|
4461
|
+
_: 1
|
|
4462
|
+
})) : Ce("", !0),
|
|
4463
|
+
at(Rt, null, {
|
|
4464
|
+
default: xe(() => [
|
|
4465
|
+
at(Pn, null, {
|
|
4466
|
+
default: xe(() => [
|
|
4467
|
+
$t(Je(x.opt.label), 1)
|
|
4468
|
+
]),
|
|
4469
|
+
_: 2
|
|
4470
|
+
}, 1024)
|
|
4434
4471
|
]),
|
|
4435
4472
|
_: 2
|
|
4436
4473
|
}, 1024)
|
|
4437
4474
|
]),
|
|
4438
4475
|
_: 2
|
|
4439
|
-
},
|
|
4476
|
+
}, 1040, ["class"])
|
|
4440
4477
|
]),
|
|
4441
|
-
_:
|
|
4442
|
-
},
|
|
4443
|
-
])
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4478
|
+
_: 1
|
|
4479
|
+
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
4480
|
+
], 2)
|
|
4481
|
+
]),
|
|
4482
|
+
_: 1
|
|
4483
|
+
}));
|
|
4447
4484
|
}
|
|
4448
|
-
}),
|
|
4485
|
+
}), Iu = /* @__PURE__ */ fl(zu, [["__scopeId", "data-v-cb36c8d5"]]), Fu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4449
4486
|
__proto__: null,
|
|
4450
|
-
default:
|
|
4487
|
+
default: Iu
|
|
4451
4488
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4452
4489
|
export {
|
|
4453
4490
|
ri as AppButton,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4491
|
+
ju as AppButtonCopy,
|
|
4492
|
+
Du as AppIcon,
|
|
4493
|
+
Nu as AppSelect
|
|
4457
4494
|
};
|