@validol4ik/uikit 0.3.29 → 0.3.31
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/AppButtonCopy-0BhYb2nY.cjs +1 -0
- package/dist/{AppButtonCopy-CBiI1PFG.js → AppButtonCopy-DhpGToMA.js} +22 -17
- package/dist/{AppSelect-DkpvIHUg.js → AppSelect-Bg_r7IT-.js} +515 -510
- package/dist/AppSelect-DYglZ5gw.cjs +1 -0
- package/dist/{focusout-DjvPXP_b.js → QNoSsr-B6NOqbLV.js} +75 -41
- package/dist/QNoSsr-DIrrSzFf.cjs +1 -0
- package/dist/index-DMWwOLS3.cjs +1 -0
- package/dist/{index-Ccvx5Q-3.js → index-VwoDHcYO.js} +153 -153
- package/dist/style.css +1 -1
- package/dist/types/components/buttons/CopyButton/AppButtonCopy.vue.d.ts +1 -1
- package/dist/types/components/form/AppSelect/AppSelect.vue.d.ts +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +2 -12
- package/dist/AppButtonCopy-CzEFYWZ_.cjs +0 -1
- package/dist/AppSelect-DyDlPz00.cjs +0 -1
- package/dist/focusout-DzWGke-4.cjs +0 -1
- package/dist/index-DnduCzlS.cjs +0 -1
- package/dist/types/boot.d.ts +0 -0
- package/dist/types/plugin.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as f, ref as T, h, getCurrentInstance as le, toRaw as $e, onMounted as tt, watch as K, onBeforeUpdate as
|
|
2
|
-
import { u as
|
|
3
|
-
import { i as Zn, b as
|
|
1
|
+
import { computed as f, ref as T, h, getCurrentInstance as le, toRaw as $e, onMounted as tt, watch as K, onBeforeUpdate as Ll, inject as En, onBeforeUnmount as ce, nextTick as ie, onDeactivated as kt, onActivated as Ol, Transition as yt, onUnmounted as Bn, Teleport as An, onBeforeMount as Tn, onUpdated as Rn, defineComponent as zn, openBlock as de, createBlock as Tt, unref as rl, withCtx as ye, createElementVNode as st, normalizeClass as ct, createElementBlock as xe, toDisplayString as Ue, createCommentVNode as Pe, createVNode as Xe, mergeProps as Fn, createTextVNode as Rt, Fragment as dt, withModifiers as Mn } from "vue";
|
|
2
|
+
import { u as Il, s as ae, h as Hl, a as Se, b as $l, c as be, Q as Ae, d as Ln, i as qt, e as On, f as In, p as pe, g as Hn, j as $n, R as Pn, k as Dn, l as sl, m as Wn, n as ge, v as jn, o as zt, q as Pl, r as Nn, t as cl, w as Kn, x as Dl, y as Qn, z as Un, B as De, D as Xn, S as Yn, _ as Gn } from "./index-VwoDHcYO.js";
|
|
3
|
+
import { i as Zn, b as Wl, P as Jn, c as we, r as Dt, a as jl, Q as eo } from "./QNoSsr-B6NOqbLV.js";
|
|
4
4
|
const lt = {
|
|
5
5
|
dark: {
|
|
6
6
|
type: Boolean,
|
|
@@ -10,7 +10,7 @@ const lt = {
|
|
|
10
10
|
function nt(e, t) {
|
|
11
11
|
return f(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function to(e, t) {
|
|
14
14
|
const l = T(null), n = f(() => e.disable === !0 ? null : h("span", {
|
|
15
15
|
ref: l,
|
|
16
16
|
class: "no-outline",
|
|
@@ -25,10 +25,10 @@ function eo(e, t) {
|
|
|
25
25
|
refocusTarget: a
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Nl = {
|
|
29
29
|
name: String
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function lo(e = {}) {
|
|
32
32
|
return (t, l, n) => {
|
|
33
33
|
t[l](
|
|
34
34
|
h("input", {
|
|
@@ -38,19 +38,19 @@ function to(e = {}) {
|
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function no(e) {
|
|
42
42
|
return f(() => e.name || e.for);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const oo = {
|
|
45
45
|
xs: 30,
|
|
46
46
|
sm: 35,
|
|
47
47
|
md: 40,
|
|
48
48
|
lg: 50,
|
|
49
49
|
xl: 60
|
|
50
|
-
},
|
|
50
|
+
}, uo = {
|
|
51
51
|
...lt,
|
|
52
|
-
|
|
53
|
-
...
|
|
52
|
+
...$l,
|
|
53
|
+
...Nl,
|
|
54
54
|
modelValue: {
|
|
55
55
|
required: !0,
|
|
56
56
|
default: null
|
|
@@ -74,9 +74,9 @@ const no = {
|
|
|
74
74
|
dense: Boolean,
|
|
75
75
|
disable: Boolean,
|
|
76
76
|
tabindex: [String, Number]
|
|
77
|
-
},
|
|
78
|
-
function
|
|
79
|
-
const { props: l, slots: n, emit: a, proxy: u } = le(), { $q: i } = u, d = nt(l, i), v = T(null), { refocusTargetEl: g, refocusTarget: c } =
|
|
77
|
+
}, io = ["update:modelValue"];
|
|
78
|
+
function ao(e, t) {
|
|
79
|
+
const { props: l, slots: n, emit: a, proxy: u } = le(), { $q: i } = u, d = nt(l, i), v = T(null), { refocusTargetEl: g, refocusTarget: c } = to(l, v), y = Il(l, oo), C = f(
|
|
80
80
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
81
81
|
), r = f(() => {
|
|
82
82
|
const A = $e(l.val);
|
|
@@ -97,7 +97,7 @@ function io(e, t) {
|
|
|
97
97
|
name: l.name,
|
|
98
98
|
value: C.value === !0 ? l.val : l.trueValue
|
|
99
99
|
}), A;
|
|
100
|
-
}), D =
|
|
100
|
+
}), D = lo(R), B = f(() => {
|
|
101
101
|
const A = {
|
|
102
102
|
tabindex: P.value,
|
|
103
103
|
role: "checkbox",
|
|
@@ -149,7 +149,7 @@ function io(e, t) {
|
|
|
149
149
|
}, A)
|
|
150
150
|
];
|
|
151
151
|
g.value !== null && U.push(g.value);
|
|
152
|
-
const oe = l.label !== void 0 ?
|
|
152
|
+
const oe = l.label !== void 0 ? Hl(n.default, [l.label]) : Se(n.default);
|
|
153
153
|
return oe !== void 0 && U.push(
|
|
154
154
|
h("div", {
|
|
155
155
|
class: `q-${e}__label q-anchor--skip`
|
|
@@ -164,7 +164,7 @@ function io(e, t) {
|
|
|
164
164
|
}, U);
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const ro = () => h("div", {
|
|
168
168
|
key: "svg",
|
|
169
169
|
class: "q-checkbox__bg absolute"
|
|
170
170
|
}, [
|
|
@@ -182,12 +182,12 @@ const ao = () => h("div", {
|
|
|
182
182
|
d: "M4,14H20V10H4"
|
|
183
183
|
})
|
|
184
184
|
])
|
|
185
|
-
]),
|
|
185
|
+
]), so = be({
|
|
186
186
|
name: "QCheckbox",
|
|
187
|
-
props:
|
|
188
|
-
emits:
|
|
187
|
+
props: uo,
|
|
188
|
+
emits: io,
|
|
189
189
|
setup(e) {
|
|
190
|
-
const t =
|
|
190
|
+
const t = ro();
|
|
191
191
|
function l(n, a) {
|
|
192
192
|
const u = f(
|
|
193
193
|
() => (n.value === !0 ? e.checkedIcon : a.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
@@ -204,9 +204,9 @@ const ao = () => h("div", {
|
|
|
204
204
|
])
|
|
205
205
|
] : [t];
|
|
206
206
|
}
|
|
207
|
-
return
|
|
207
|
+
return ao("checkbox", l);
|
|
208
208
|
}
|
|
209
|
-
}),
|
|
209
|
+
}), bt = be({
|
|
210
210
|
name: "QItemSection",
|
|
211
211
|
props: {
|
|
212
212
|
avatar: Boolean,
|
|
@@ -221,7 +221,7 @@ const ao = () => h("div", {
|
|
|
221
221
|
);
|
|
222
222
|
return () => h("div", { class: l.value }, Se(t.default));
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
224
|
+
}), Kl = be({
|
|
225
225
|
name: "QItemLabel",
|
|
226
226
|
props: {
|
|
227
227
|
overline: Boolean,
|
|
@@ -243,7 +243,7 @@ const ao = () => h("div", {
|
|
|
243
243
|
class: n.value
|
|
244
244
|
}, Se(t.default));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), Ql = be({
|
|
247
247
|
name: "QItem",
|
|
248
248
|
props: {
|
|
249
249
|
...lt,
|
|
@@ -278,7 +278,7 @@ const ao = () => h("div", {
|
|
|
278
278
|
r.value === !0 && (y.value !== null && (q.qKeyEvent !== !0 && document.activeElement === c.value ? y.value.focus() : document.activeElement === y.value && c.value.focus()), g(q));
|
|
279
279
|
}
|
|
280
280
|
function P(q) {
|
|
281
|
-
if (r.value === !0 &&
|
|
281
|
+
if (r.value === !0 && qt(q, [13, 32]) === !0) {
|
|
282
282
|
ae(q), q.qKeyEvent = !0;
|
|
283
283
|
const R = new MouseEvent("click", q);
|
|
284
284
|
R.qKeyEvent = !0, c.value.dispatchEvent(R);
|
|
@@ -307,12 +307,12 @@ const ao = () => h("div", {
|
|
|
307
307
|
);
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
}),
|
|
311
|
-
let
|
|
310
|
+
}), dl = (e) => e ? !0 : "Обовʼязкове поле";
|
|
311
|
+
let Ft, ft = 0;
|
|
312
312
|
const ee = new Array(256);
|
|
313
313
|
for (let e = 0; e < 256; e++)
|
|
314
314
|
ee[e] = (e + 256).toString(16).substring(1);
|
|
315
|
-
const
|
|
315
|
+
const co = (() => {
|
|
316
316
|
const e = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
|
|
317
317
|
if (e !== void 0) {
|
|
318
318
|
if (e.randomBytes !== void 0)
|
|
@@ -329,31 +329,31 @@ const so = (() => {
|
|
|
329
329
|
l.push(Math.floor(Math.random() * 256));
|
|
330
330
|
return l;
|
|
331
331
|
};
|
|
332
|
-
})(),
|
|
333
|
-
function
|
|
334
|
-
(
|
|
335
|
-
const e = Array.prototype.slice.call(
|
|
332
|
+
})(), fl = 4096;
|
|
333
|
+
function Wt() {
|
|
334
|
+
(Ft === void 0 || ft + 16 > fl) && (ft = 0, Ft = co(fl));
|
|
335
|
+
const e = Array.prototype.slice.call(Ft, ft, ft += 16);
|
|
336
336
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, ee[e[0]] + ee[e[1]] + ee[e[2]] + ee[e[3]] + "-" + ee[e[4]] + ee[e[5]] + "-" + ee[e[6]] + ee[e[7]] + "-" + ee[e[8]] + ee[e[9]] + "-" + ee[e[10]] + ee[e[11]] + ee[e[12]] + ee[e[13]] + ee[e[14]] + ee[e[15]];
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function fo(e) {
|
|
339
339
|
return e ?? null;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
return e ?? (t === !0 ? `f_${
|
|
341
|
+
function vl(e, t) {
|
|
342
|
+
return e ?? (t === !0 ? `f_${Wt()}` : null);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function vo({ getValue: e, required: t = !0 } = {}) {
|
|
345
345
|
if (Zn.value === !0) {
|
|
346
|
-
const l = e !== void 0 ? T(
|
|
346
|
+
const l = e !== void 0 ? T(fo(e())) : T(null);
|
|
347
347
|
return t === !0 && l.value === null && tt(() => {
|
|
348
|
-
l.value = `f_${
|
|
348
|
+
l.value = `f_${Wt()}`;
|
|
349
349
|
}), e !== void 0 && K(e, (n) => {
|
|
350
|
-
l.value =
|
|
350
|
+
l.value = vl(n, t);
|
|
351
351
|
}), l;
|
|
352
352
|
}
|
|
353
|
-
return e !== void 0 ? f(() =>
|
|
353
|
+
return e !== void 0 ? f(() => vl(e(), t)) : T(`f_${Wt()}`);
|
|
354
354
|
}
|
|
355
|
-
const
|
|
356
|
-
function
|
|
355
|
+
const ml = /^on[A-Z]/;
|
|
356
|
+
function mo() {
|
|
357
357
|
const { attrs: e, vnode: t } = le(), l = {
|
|
358
358
|
listeners: T({}),
|
|
359
359
|
attributes: T({})
|
|
@@ -361,16 +361,16 @@ function vo() {
|
|
|
361
361
|
function n() {
|
|
362
362
|
const a = {}, u = {};
|
|
363
363
|
for (const i in e)
|
|
364
|
-
i !== "class" && i !== "style" &&
|
|
364
|
+
i !== "class" && i !== "style" && ml.test(i) === !1 && (a[i] = e[i]);
|
|
365
365
|
for (const i in t.props)
|
|
366
|
-
|
|
366
|
+
ml.test(i) === !0 && (u[i] = t.props[i]);
|
|
367
367
|
l.attributes.value = a, l.listeners.value = u;
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return Ll(n), n(), l;
|
|
370
370
|
}
|
|
371
|
-
const
|
|
372
|
-
function
|
|
373
|
-
const n =
|
|
371
|
+
const ho = "_q_fo_";
|
|
372
|
+
function go({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
373
|
+
const n = En(ho, !1);
|
|
374
374
|
if (n !== !1) {
|
|
375
375
|
const { props: a, proxy: u } = le();
|
|
376
376
|
Object.assign(u, { validate: e, resetValidation: t }), K(() => a.disable, (i) => {
|
|
@@ -382,7 +382,7 @@ function ho({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
|
382
382
|
});
|
|
383
383
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const hl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, gl = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, pl = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, vt = /^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])\)$/, mt = /^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)\)$/, Mt = {
|
|
386
386
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
387
387
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
388
388
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -394,17 +394,17 @@ const ml = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, hl = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
394
394
|
// We won't be accepting PRs to enhance the one below because of the reason above.
|
|
395
395
|
// eslint-disable-next-line
|
|
396
396
|
email: (e) => /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),
|
|
397
|
-
hexColor: (e) =>
|
|
398
|
-
hexaColor: (e) =>
|
|
399
|
-
hexOrHexaColor: (e) =>
|
|
400
|
-
rgbColor: (e) =>
|
|
401
|
-
rgbaColor: (e) =>
|
|
402
|
-
rgbOrRgbaColor: (e) =>
|
|
403
|
-
hexOrRgbColor: (e) =>
|
|
404
|
-
hexaOrRgbaColor: (e) =>
|
|
405
|
-
anyColor: (e) =>
|
|
397
|
+
hexColor: (e) => hl.test(e),
|
|
398
|
+
hexaColor: (e) => gl.test(e),
|
|
399
|
+
hexOrHexaColor: (e) => pl.test(e),
|
|
400
|
+
rgbColor: (e) => vt.test(e),
|
|
401
|
+
rgbaColor: (e) => mt.test(e),
|
|
402
|
+
rgbOrRgbaColor: (e) => vt.test(e) || mt.test(e),
|
|
403
|
+
hexOrRgbColor: (e) => hl.test(e) || vt.test(e),
|
|
404
|
+
hexaOrRgbaColor: (e) => gl.test(e) || mt.test(e),
|
|
405
|
+
anyColor: (e) => pl.test(e) || vt.test(e) || mt.test(e)
|
|
406
406
|
};
|
|
407
|
-
function
|
|
407
|
+
function Ul(e, t = 250, l) {
|
|
408
408
|
let n = null;
|
|
409
409
|
function a() {
|
|
410
410
|
const u = arguments, i = () => {
|
|
@@ -416,7 +416,7 @@ function Ql(e, t = 250, l) {
|
|
|
416
416
|
n !== null && clearTimeout(n);
|
|
417
417
|
}, a;
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const po = [!0, !1, "ondemand"], bo = {
|
|
420
420
|
modelValue: {},
|
|
421
421
|
error: {
|
|
422
422
|
type: Boolean,
|
|
@@ -430,12 +430,12 @@ const go = [!0, !1, "ondemand"], po = {
|
|
|
430
430
|
type: [Boolean, String],
|
|
431
431
|
default: !1,
|
|
432
432
|
// statement unneeded but avoids future vue implementation changes
|
|
433
|
-
validator: (e) =>
|
|
433
|
+
validator: (e) => po.includes(e)
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
function
|
|
436
|
+
function yo(e, t) {
|
|
437
437
|
const { props: l, proxy: n } = le(), a = T(!1), u = T(null), i = T(!1);
|
|
438
|
-
|
|
438
|
+
go({ validate: _, resetValidation: m });
|
|
439
439
|
let d = 0, v;
|
|
440
440
|
const g = f(
|
|
441
441
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
@@ -468,7 +468,7 @@ function bo(e, t) {
|
|
|
468
468
|
for (let B = 0; B < l.rules.length; B++) {
|
|
469
469
|
const L = l.rules[B];
|
|
470
470
|
let H;
|
|
471
|
-
if (typeof L == "function" ? H = L(P,
|
|
471
|
+
if (typeof L == "function" ? H = L(P, Mt) : typeof L == "string" && Mt[L] !== void 0 && (H = Mt[L](P)), H === !1 || typeof H == "string")
|
|
472
472
|
return R(!0, H), !1;
|
|
473
473
|
H !== !0 && H !== void 0 && D.push(H);
|
|
474
474
|
}
|
|
@@ -482,10 +482,10 @@ function bo(e, t) {
|
|
|
482
482
|
(B) => (E === d && (console.error(B), R(!0)), !1)
|
|
483
483
|
));
|
|
484
484
|
}
|
|
485
|
-
const S =
|
|
485
|
+
const S = Ul(_, 0);
|
|
486
486
|
return ce(() => {
|
|
487
487
|
v !== void 0 && v(), S.cancel();
|
|
488
|
-
}), Object.assign(n, { resetValidation: m, validate: _ }),
|
|
488
|
+
}), Object.assign(n, { resetValidation: m, validate: _ }), Wl(n, "hasError", () => y.value), {
|
|
489
489
|
isDirtyModel: i,
|
|
490
490
|
hasRules: g,
|
|
491
491
|
hasError: y,
|
|
@@ -495,27 +495,27 @@ function bo(e, t) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
let Be = [], et = [];
|
|
498
|
-
function
|
|
498
|
+
function Xl(e) {
|
|
499
499
|
et = et.filter((t) => t !== e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
501
|
+
function So(e) {
|
|
502
|
+
Xl(e), et.push(e);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
504
|
+
function bl(e) {
|
|
505
|
+
Xl(e), et.length === 0 && Be.length !== 0 && (Be[Be.length - 1](), Be = []);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Kt(e) {
|
|
508
508
|
et.length === 0 ? e() : Be.push(e);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function wo(e) {
|
|
511
511
|
Be = Be.filter((t) => t !== e);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function jt(e) {
|
|
514
514
|
return e != null && ("" + e).length !== 0;
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const xo = {
|
|
517
517
|
...lt,
|
|
518
|
-
...
|
|
518
|
+
...bo,
|
|
519
519
|
label: String,
|
|
520
520
|
stackLabel: Boolean,
|
|
521
521
|
hint: String,
|
|
@@ -544,12 +544,12 @@ const wo = {
|
|
|
544
544
|
readonly: Boolean,
|
|
545
545
|
autofocus: Boolean,
|
|
546
546
|
for: String
|
|
547
|
-
},
|
|
548
|
-
...
|
|
547
|
+
}, Qt = {
|
|
548
|
+
...xo,
|
|
549
549
|
maxlength: [Number, String]
|
|
550
|
-
},
|
|
551
|
-
function
|
|
552
|
-
const { props: n, proxy: a } = le(), u = nt(n, a.$q), i =
|
|
550
|
+
}, Yl = ["update:modelValue", "clear", "focus", "blur"];
|
|
551
|
+
function Gl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
552
|
+
const { props: n, proxy: a } = le(), u = nt(n, a.$q), i = vo({
|
|
553
553
|
required: e,
|
|
554
554
|
getValue: () => n.for
|
|
555
555
|
});
|
|
@@ -564,7 +564,7 @@ function Yl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
564
564
|
innerLoading: T(!1),
|
|
565
565
|
focused: T(!1),
|
|
566
566
|
hasPopupOpen: !1,
|
|
567
|
-
splitAttrs:
|
|
567
|
+
splitAttrs: mo(),
|
|
568
568
|
targetUid: i,
|
|
569
569
|
rootRef: T(null),
|
|
570
570
|
targetRef: T(null),
|
|
@@ -589,10 +589,10 @@ function Yl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
589
589
|
*/
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Zl(e) {
|
|
593
593
|
const { props: t, emit: l, slots: n, attrs: a, proxy: u } = le(), { $q: i } = u;
|
|
594
594
|
let d = null;
|
|
595
|
-
e.hasValue === void 0 && (e.hasValue = f(() =>
|
|
595
|
+
e.hasValue === void 0 && (e.hasValue = f(() => jt(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (k) => {
|
|
596
596
|
l("update:modelValue", k);
|
|
597
597
|
}), e.controlEvents === void 0 && (e.controlEvents = {
|
|
598
598
|
onFocusin: Q,
|
|
@@ -614,7 +614,7 @@ function Gl(e) {
|
|
|
614
614
|
hasError: c,
|
|
615
615
|
errorMessage: y,
|
|
616
616
|
resetValidation: C
|
|
617
|
-
} =
|
|
617
|
+
} = yo(e.focused, e.innerLoading), r = e.floatingLabel !== void 0 ? f(() => t.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : f(() => t.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), m = f(
|
|
618
618
|
() => t.bottomSlots === !0 || t.hint !== void 0 || g.value === !0 || t.counter === !0 || t.error !== null
|
|
619
619
|
), _ = f(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), S = f(
|
|
620
620
|
() => `q-field row no-wrap items-start q-field--${_.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (r.value === !0 ? " q-field--float" : "") + (E.value === !0 ? " q-field--labeled" : "") + (t.dense === !0 ? " q-field--dense" : "") + (t.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (c.value === !0 ? " q-field--error" : "") + (c.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (t.hideBottomSpace !== !0 && m.value === !0 ? " q-field--with-bottom" : "") + (t.disable === !0 ? " q-field--disabled" : t.readonly === !0 ? " q-field--readonly" : "")
|
|
@@ -641,10 +641,10 @@ function Gl(e) {
|
|
|
641
641
|
M && (k === null || k.id !== e.targetUid.value) && (M.hasAttribute("tabindex") === !0 || (M = M.querySelector("[tabindex]")), M && M !== k && M.focus({ preventScroll: !0 }));
|
|
642
642
|
}
|
|
643
643
|
function L() {
|
|
644
|
-
|
|
644
|
+
Kt(B);
|
|
645
645
|
}
|
|
646
646
|
function H() {
|
|
647
|
-
|
|
647
|
+
wo(B);
|
|
648
648
|
const k = document.activeElement;
|
|
649
649
|
k !== null && e.rootRef.value.contains(k) && k.blur();
|
|
650
650
|
}
|
|
@@ -751,7 +751,7 @@ function Gl(e) {
|
|
|
751
751
|
class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
752
752
|
onClick: pe
|
|
753
753
|
}, [
|
|
754
|
-
t.hideBottomSpace === !0 ? s : h(
|
|
754
|
+
t.hideBottomSpace === !0 ? s : h(yt, { name: "q-transition--field-message" }, () => s),
|
|
755
755
|
se === !0 ? h("div", {
|
|
756
756
|
class: "q-field__counter"
|
|
757
757
|
}, n.counter !== void 0 ? n.counter() : e.computedCounter.value) : null
|
|
@@ -764,9 +764,9 @@ function Gl(e) {
|
|
|
764
764
|
}, M);
|
|
765
765
|
}
|
|
766
766
|
let re = !1;
|
|
767
|
-
return
|
|
767
|
+
return kt(() => {
|
|
768
768
|
re = !0;
|
|
769
|
-
}),
|
|
769
|
+
}), Ol(() => {
|
|
770
770
|
re === !0 && t.autofocus === !0 && u.focus();
|
|
771
771
|
}), t.autofocus === !0 && tt(() => {
|
|
772
772
|
u.focus();
|
|
@@ -809,33 +809,33 @@ function Gl(e) {
|
|
|
809
809
|
]);
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
const
|
|
812
|
+
const Co = be({
|
|
813
813
|
name: "QField",
|
|
814
814
|
inheritAttrs: !1,
|
|
815
815
|
props: {
|
|
816
|
-
...
|
|
816
|
+
...Qt,
|
|
817
817
|
tag: {
|
|
818
818
|
type: String,
|
|
819
819
|
default: "label"
|
|
820
820
|
}
|
|
821
821
|
},
|
|
822
|
-
emits:
|
|
822
|
+
emits: Yl,
|
|
823
823
|
setup() {
|
|
824
|
-
return
|
|
825
|
-
|
|
824
|
+
return Zl(
|
|
825
|
+
Gl({ tagProp: !0 })
|
|
826
826
|
);
|
|
827
827
|
}
|
|
828
|
-
}),
|
|
828
|
+
}), ko = {
|
|
829
829
|
xs: 8,
|
|
830
830
|
sm: 10,
|
|
831
831
|
md: 14,
|
|
832
832
|
lg: 20,
|
|
833
833
|
xl: 24
|
|
834
|
-
},
|
|
834
|
+
}, qo = be({
|
|
835
835
|
name: "QChip",
|
|
836
836
|
props: {
|
|
837
837
|
...lt,
|
|
838
|
-
|
|
838
|
+
...$l,
|
|
839
839
|
dense: Boolean,
|
|
840
840
|
icon: String,
|
|
841
841
|
iconRight: String,
|
|
@@ -866,7 +866,7 @@ const xo = be({
|
|
|
866
866
|
},
|
|
867
867
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
868
868
|
setup(e, { slots: t, emit: l }) {
|
|
869
|
-
const { proxy: { $q: n } } = le(), a = nt(e, n), u =
|
|
869
|
+
const { proxy: { $q: n } } = le(), a = nt(e, n), u = Il(e, ko), i = f(() => e.selected === !0 || e.icon !== void 0), d = f(() => e.selected === !0 ? e.iconSelected || n.iconSet.chip.selected : e.icon), v = f(() => e.iconRemove || n.iconSet.chip.remove), g = f(
|
|
870
870
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
871
871
|
), c = f(() => {
|
|
872
872
|
const S = e.outline === !0 && e.color || e.textColor;
|
|
@@ -940,24 +940,24 @@ const xo = be({
|
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
942
|
});
|
|
943
|
-
function
|
|
943
|
+
function Vo() {
|
|
944
944
|
if (window.getSelection !== void 0) {
|
|
945
945
|
const e = window.getSelection();
|
|
946
946
|
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), Jn.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
947
947
|
} else document.selection !== void 0 && document.selection.empty();
|
|
948
948
|
}
|
|
949
|
-
const
|
|
949
|
+
const _o = {
|
|
950
950
|
/* SSR does not know about Element */
|
|
951
951
|
target: {
|
|
952
952
|
type: [Boolean, String, Element],
|
|
953
953
|
default: !0
|
|
954
954
|
},
|
|
955
955
|
noParentEvent: Boolean
|
|
956
|
-
},
|
|
957
|
-
...
|
|
956
|
+
}, Eo = {
|
|
957
|
+
..._o,
|
|
958
958
|
contextMenu: Boolean
|
|
959
959
|
};
|
|
960
|
-
function
|
|
960
|
+
function Bo({
|
|
961
961
|
showing: e,
|
|
962
962
|
avoidEmit: t,
|
|
963
963
|
// required for QPopupProxy (true)
|
|
@@ -978,7 +978,7 @@ function Eo({
|
|
|
978
978
|
a.toggle(r), r.qAnchorHandled = !0;
|
|
979
979
|
},
|
|
980
980
|
toggleKey(r) {
|
|
981
|
-
|
|
981
|
+
qt(r, 13) === !0 && g.toggle(r);
|
|
982
982
|
},
|
|
983
983
|
contextClick(r) {
|
|
984
984
|
a.hide(r), pe(r), ie(() => {
|
|
@@ -991,7 +991,7 @@ function Eo({
|
|
|
991
991
|
return;
|
|
992
992
|
a.hide(r), i.value.classList.add("non-selectable");
|
|
993
993
|
const m = r.target;
|
|
994
|
-
|
|
994
|
+
sl(g, "anchor", [
|
|
995
995
|
[m, "touchmove", "mobileCleanup", "passive"],
|
|
996
996
|
[m, "touchend", "mobileCleanup", "passive"],
|
|
997
997
|
[m, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -1001,7 +1001,7 @@ function Eo({
|
|
|
1001
1001
|
}, 300);
|
|
1002
1002
|
},
|
|
1003
1003
|
mobileCleanup(r) {
|
|
1004
|
-
i.value.classList.remove("non-selectable"), d !== null && (clearTimeout(d), d = null), e.value === !0 && r !== void 0 &&
|
|
1004
|
+
i.value.classList.remove("non-selectable"), d !== null && (clearTimeout(d), d = null), e.value === !0 && r !== void 0 && Vo();
|
|
1005
1005
|
}
|
|
1006
1006
|
}), l = function(r = n.contextMenu) {
|
|
1007
1007
|
if (n.noParentEvent === !0 || i.value === null) return;
|
|
@@ -1014,7 +1014,7 @@ function Eo({
|
|
|
1014
1014
|
] : m = [
|
|
1015
1015
|
[i.value, "click", "toggle", "passive"],
|
|
1016
1016
|
[i.value, "keyup", "toggleKey", "passive"]
|
|
1017
|
-
],
|
|
1017
|
+
], sl(g, "anchor", m);
|
|
1018
1018
|
});
|
|
1019
1019
|
function c() {
|
|
1020
1020
|
Wn(g, "anchor");
|
|
@@ -1056,7 +1056,7 @@ function Eo({
|
|
|
1056
1056
|
anchorEvents: g
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Ao(e, t) {
|
|
1060
1060
|
const l = T(null);
|
|
1061
1061
|
let n;
|
|
1062
1062
|
function a(d, v) {
|
|
@@ -1075,19 +1075,19 @@ function Bo(e, t) {
|
|
|
1075
1075
|
changeScrollEvent: a
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const Jl = {
|
|
1079
1079
|
modelValue: {
|
|
1080
1080
|
type: Boolean,
|
|
1081
1081
|
default: null
|
|
1082
1082
|
},
|
|
1083
1083
|
"onUpdate:modelValue": [Function, Array]
|
|
1084
|
-
},
|
|
1084
|
+
}, en = [
|
|
1085
1085
|
"beforeShow",
|
|
1086
1086
|
"show",
|
|
1087
1087
|
"beforeHide",
|
|
1088
1088
|
"hide"
|
|
1089
1089
|
];
|
|
1090
|
-
function
|
|
1090
|
+
function tn({
|
|
1091
1091
|
showing: e,
|
|
1092
1092
|
canShow: t,
|
|
1093
1093
|
// optional
|
|
@@ -1138,39 +1138,39 @@ function en({
|
|
|
1138
1138
|
const P = { show: C, hide: m, toggle: y };
|
|
1139
1139
|
return Object.assign(g, P), P;
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1142
|
-
let
|
|
1143
|
-
function
|
|
1141
|
+
const yl = {};
|
|
1142
|
+
let To = 1, Ro = document.body;
|
|
1143
|
+
function zo(e, t) {
|
|
1144
1144
|
const l = document.createElement("div");
|
|
1145
|
-
if (l.id = t !== void 0 ? `q-portal--${t}--${
|
|
1146
|
-
const n =
|
|
1145
|
+
if (l.id = t !== void 0 ? `q-portal--${t}--${To++}` : e, yl.globalNodes !== void 0) {
|
|
1146
|
+
const n = yl.globalNodes.class;
|
|
1147
1147
|
n !== void 0 && (l.className = n);
|
|
1148
1148
|
}
|
|
1149
|
-
return
|
|
1149
|
+
return Ro.appendChild(l), l;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function Fo(e) {
|
|
1152
1152
|
e.remove();
|
|
1153
1153
|
}
|
|
1154
1154
|
const Je = [];
|
|
1155
|
-
function
|
|
1155
|
+
function Mo(e, t) {
|
|
1156
1156
|
do {
|
|
1157
1157
|
if (e.$options.name === "QMenu") {
|
|
1158
1158
|
if (e.hide(t), e.$props.separateClosePopup === !0)
|
|
1159
|
-
return
|
|
1159
|
+
return zt(e);
|
|
1160
1160
|
} else if (e.__qPortal === !0) {
|
|
1161
|
-
const l =
|
|
1161
|
+
const l = zt(e);
|
|
1162
1162
|
return l !== void 0 && l.$options.name === "QPopupProxy" ? (e.hide(t), l) : e;
|
|
1163
1163
|
}
|
|
1164
|
-
e =
|
|
1164
|
+
e = zt(e);
|
|
1165
1165
|
} while (e != null);
|
|
1166
1166
|
}
|
|
1167
|
-
const
|
|
1167
|
+
const Lo = be({
|
|
1168
1168
|
name: "QPortal",
|
|
1169
1169
|
setup(e, { slots: t }) {
|
|
1170
1170
|
return () => t.default();
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
|
-
function
|
|
1173
|
+
function Oo(e) {
|
|
1174
1174
|
for (e = e.parent; e != null; ) {
|
|
1175
1175
|
if (e.type.name === "QGlobalDialog")
|
|
1176
1176
|
return !0;
|
|
@@ -1180,34 +1180,34 @@ function Lo(e) {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
return !1;
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function ln(e, t, l, n) {
|
|
1184
1184
|
const a = T(!1), u = T(!1);
|
|
1185
1185
|
let i = null;
|
|
1186
|
-
const d = {}, v = n === "dialog" &&
|
|
1186
|
+
const d = {}, v = n === "dialog" && Oo(e);
|
|
1187
1187
|
function g(y) {
|
|
1188
1188
|
if (y === !0) {
|
|
1189
|
-
|
|
1189
|
+
bl(d), u.value = !0;
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
|
-
u.value = !1, a.value === !1 && (v === !1 && i === null && (i =
|
|
1192
|
+
u.value = !1, a.value === !1 && (v === !1 && i === null && (i = zo(!1, n)), a.value = !0, Je.push(e.proxy), So(d));
|
|
1193
1193
|
}
|
|
1194
1194
|
function c(y) {
|
|
1195
1195
|
if (u.value = !1, y !== !0) return;
|
|
1196
|
-
|
|
1196
|
+
bl(d), a.value = !1;
|
|
1197
1197
|
const C = Je.indexOf(e.proxy);
|
|
1198
|
-
C !== -1 && Je.splice(C, 1), i !== null && (
|
|
1198
|
+
C !== -1 && Je.splice(C, 1), i !== null && (Fo(i), i = null);
|
|
1199
1199
|
}
|
|
1200
|
-
return
|
|
1200
|
+
return Bn(() => {
|
|
1201
1201
|
c(!0);
|
|
1202
|
-
}), e.proxy.__qPortal = !0,
|
|
1202
|
+
}), e.proxy.__qPortal = !0, Wl(e.proxy, "contentEl", () => t.value), {
|
|
1203
1203
|
showPortal: g,
|
|
1204
1204
|
hidePortal: c,
|
|
1205
1205
|
portalIsActive: a,
|
|
1206
1206
|
portalIsAccessible: u,
|
|
1207
|
-
renderPortal: () => v === !0 ? l() : a.value === !0 ? [h(
|
|
1207
|
+
renderPortal: () => v === !0 ? l() : a.value === !0 ? [h(An, { to: i }, h(Lo, l))] : void 0
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const nn = {
|
|
1211
1211
|
transitionShow: {
|
|
1212
1212
|
type: String,
|
|
1213
1213
|
default: "fade"
|
|
@@ -1221,7 +1221,7 @@ const ln = {
|
|
|
1221
1221
|
default: 300
|
|
1222
1222
|
}
|
|
1223
1223
|
};
|
|
1224
|
-
function
|
|
1224
|
+
function on(e, t = () => {
|
|
1225
1225
|
}, l = () => {
|
|
1226
1226
|
}) {
|
|
1227
1227
|
return {
|
|
@@ -1240,61 +1240,61 @@ function nn(e, t = () => {
|
|
|
1240
1240
|
transitionStyle: f(() => `--q-transition-duration: ${e.transitionDuration}ms`)
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function un() {
|
|
1244
1244
|
let e;
|
|
1245
1245
|
const t = le();
|
|
1246
1246
|
function l() {
|
|
1247
1247
|
e = void 0;
|
|
1248
1248
|
}
|
|
1249
|
-
return
|
|
1249
|
+
return kt(l), ce(l), {
|
|
1250
1250
|
removeTick: l,
|
|
1251
1251
|
registerTick(n) {
|
|
1252
1252
|
e = n, ie(() => {
|
|
1253
|
-
e === n && (
|
|
1253
|
+
e === n && (Pl(t) === !1 && e(), e = void 0);
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
};
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function an() {
|
|
1259
1259
|
let e = null;
|
|
1260
1260
|
const t = le();
|
|
1261
1261
|
function l() {
|
|
1262
1262
|
e !== null && (clearTimeout(e), e = null);
|
|
1263
1263
|
}
|
|
1264
|
-
return
|
|
1264
|
+
return kt(l), ce(l), {
|
|
1265
1265
|
removeTimeout: l,
|
|
1266
1266
|
registerTimeout(n, a) {
|
|
1267
|
-
l(),
|
|
1267
|
+
l(), Pl(t) === !1 && (e = setTimeout(() => {
|
|
1268
1268
|
e = null, n();
|
|
1269
1269
|
}, a));
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
function
|
|
1273
|
+
const Io = [Element, String], Ho = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
1274
|
+
function $o(e, t) {
|
|
1275
1275
|
let l = Nn(t);
|
|
1276
1276
|
if (l === void 0) {
|
|
1277
1277
|
if (e == null)
|
|
1278
1278
|
return window;
|
|
1279
1279
|
l = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
1280
1280
|
}
|
|
1281
|
-
return
|
|
1281
|
+
return Ho.includes(l) ? window : l;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Po(e) {
|
|
1284
1284
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Do(e) {
|
|
1287
1287
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
1288
1288
|
}
|
|
1289
|
-
let
|
|
1290
|
-
function
|
|
1291
|
-
if (
|
|
1292
|
-
return
|
|
1289
|
+
let ht;
|
|
1290
|
+
function Wo() {
|
|
1291
|
+
if (ht !== void 0)
|
|
1292
|
+
return ht;
|
|
1293
1293
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
1294
|
-
|
|
1294
|
+
cl(e, {
|
|
1295
1295
|
width: "100%",
|
|
1296
1296
|
height: "200px"
|
|
1297
|
-
}),
|
|
1297
|
+
}), cl(t, {
|
|
1298
1298
|
position: "absolute",
|
|
1299
1299
|
top: "0px",
|
|
1300
1300
|
left: "0px",
|
|
@@ -1306,34 +1306,34 @@ function Do() {
|
|
|
1306
1306
|
const l = e.offsetWidth;
|
|
1307
1307
|
t.style.overflow = "scroll";
|
|
1308
1308
|
let n = e.offsetWidth;
|
|
1309
|
-
return l === n && (n = t.clientWidth), t.remove(),
|
|
1309
|
+
return l === n && (n = t.clientWidth), t.remove(), ht = l - n, ht;
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function jo(e, t = !0) {
|
|
1312
1312
|
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"]));
|
|
1313
1313
|
}
|
|
1314
1314
|
const Te = [];
|
|
1315
1315
|
let je;
|
|
1316
|
-
function
|
|
1316
|
+
function No(e) {
|
|
1317
1317
|
je = e.keyCode === 27;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Ko() {
|
|
1320
1320
|
je === !0 && (je = !1);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
je === !0 && (je = !1,
|
|
1324
|
-
}
|
|
1325
|
-
function an(e) {
|
|
1326
|
-
window[e]("keydown", jo), window[e]("blur", No), window[e]("keyup", Ko), je = !1;
|
|
1322
|
+
function Qo(e) {
|
|
1323
|
+
je === !0 && (je = !1, qt(e, 27) === !0 && Te[Te.length - 1](e));
|
|
1327
1324
|
}
|
|
1328
1325
|
function rn(e) {
|
|
1329
|
-
|
|
1326
|
+
window[e]("keydown", No), window[e]("blur", Ko), window[e]("keyup", Qo), je = !1;
|
|
1330
1327
|
}
|
|
1331
|
-
function
|
|
1328
|
+
function sn(e) {
|
|
1329
|
+
we.is.desktop === !0 && (Te.push(e), Te.length === 1 && rn("addEventListener"));
|
|
1330
|
+
}
|
|
1331
|
+
function St(e) {
|
|
1332
1332
|
const t = Te.indexOf(e);
|
|
1333
|
-
t !== -1 && (Te.splice(t, 1), Te.length === 0 &&
|
|
1333
|
+
t !== -1 && (Te.splice(t, 1), Te.length === 0 && rn("removeEventListener"));
|
|
1334
1334
|
}
|
|
1335
|
-
const { notPassiveCapture:
|
|
1336
|
-
function
|
|
1335
|
+
const { notPassiveCapture: wt } = ge, Re = [];
|
|
1336
|
+
function xt(e) {
|
|
1337
1337
|
const t = e.target;
|
|
1338
1338
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
1339
1339
|
return;
|
|
@@ -1358,38 +1358,38 @@ function wt(e) {
|
|
|
1358
1358
|
return;
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
Re.push(e), Re.length === 1 && (document.addEventListener("mousedown",
|
|
1361
|
+
function Uo(e) {
|
|
1362
|
+
Re.push(e), Re.length === 1 && (document.addEventListener("mousedown", xt, wt), document.addEventListener("touchstart", xt, wt));
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Sl(e) {
|
|
1365
1365
|
const t = Re.findIndex((l) => l === e);
|
|
1366
|
-
t !== -1 && (Re.splice(t, 1), Re.length === 0 && (document.removeEventListener("mousedown",
|
|
1366
|
+
t !== -1 && (Re.splice(t, 1), Re.length === 0 && (document.removeEventListener("mousedown", xt, wt), document.removeEventListener("touchstart", xt, wt)));
|
|
1367
1367
|
}
|
|
1368
|
-
let
|
|
1369
|
-
function
|
|
1368
|
+
let wl, xl;
|
|
1369
|
+
function Cl(e) {
|
|
1370
1370
|
const t = e.split(" ");
|
|
1371
1371
|
return t.length !== 2 ? !1 : ["top", "center", "bottom"].includes(t[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(t[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Xo(e) {
|
|
1374
1374
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const Nt = {
|
|
1377
1377
|
"start#ltr": "left",
|
|
1378
1378
|
"start#rtl": "right",
|
|
1379
1379
|
"end#ltr": "right",
|
|
1380
1380
|
"end#rtl": "left"
|
|
1381
1381
|
};
|
|
1382
1382
|
["left", "middle", "right"].forEach((e) => {
|
|
1383
|
-
|
|
1383
|
+
Nt[`${e}#ltr`] = e, Nt[`${e}#rtl`] = e;
|
|
1384
1384
|
});
|
|
1385
|
-
function
|
|
1385
|
+
function kl(e, t) {
|
|
1386
1386
|
const l = e.split(" ");
|
|
1387
1387
|
return {
|
|
1388
1388
|
vertical: l[0],
|
|
1389
|
-
horizontal:
|
|
1389
|
+
horizontal: Nt[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Yo(e, t) {
|
|
1393
1393
|
let { top: l, left: n, right: a, bottom: u, width: i, height: d } = e.getBoundingClientRect();
|
|
1394
1394
|
return t !== void 0 && (l -= t[1], n -= t[0], u += t[1], a += t[0], i += t[0], d += t[1]), {
|
|
1395
1395
|
top: l,
|
|
@@ -1402,7 +1402,7 @@ function Xo(e, t) {
|
|
|
1402
1402
|
center: l + (u - l) / 2
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function Go(e, t, l) {
|
|
1406
1406
|
let { top: n, left: a } = e.getBoundingClientRect();
|
|
1407
1407
|
return n += t.top, a += t.left, l !== void 0 && (n += l[1], a += l[0]), {
|
|
1408
1408
|
top: n,
|
|
@@ -1415,7 +1415,7 @@ function Yo(e, t, l) {
|
|
|
1415
1415
|
center: n
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Zo(e, t) {
|
|
1419
1419
|
return {
|
|
1420
1420
|
top: 0,
|
|
1421
1421
|
center: t / 2,
|
|
@@ -1425,18 +1425,18 @@ function Go(e, t) {
|
|
|
1425
1425
|
right: e
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function ql(e, t, l, n) {
|
|
1429
1429
|
return {
|
|
1430
1430
|
top: e[l.vertical] - t[n.vertical],
|
|
1431
1431
|
left: e[l.horizontal] - t[n.horizontal]
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function cn(e, t = 0) {
|
|
1435
1435
|
if (e.targetEl === null || e.anchorEl === null || t > 5)
|
|
1436
1436
|
return;
|
|
1437
1437
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
1438
1438
|
setTimeout(() => {
|
|
1439
|
-
|
|
1439
|
+
cn(e, t + 1);
|
|
1440
1440
|
}, 10);
|
|
1441
1441
|
return;
|
|
1442
1442
|
}
|
|
@@ -1454,9 +1454,9 @@ function sn(e, t = 0) {
|
|
|
1454
1454
|
} = e;
|
|
1455
1455
|
if (we.is.ios === !0 && window.visualViewport !== void 0) {
|
|
1456
1456
|
const B = document.body.style, { offsetLeft: L, offsetTop: H } = window.visualViewport;
|
|
1457
|
-
L !==
|
|
1457
|
+
L !== wl && (B.setProperty("--q-pe-left", L + "px"), wl = L), H !== xl && (B.setProperty("--q-pe-top", H + "px"), xl = H);
|
|
1458
1458
|
}
|
|
1459
|
-
const { scrollLeft: C, scrollTop: r } = l, m = d === void 0 ?
|
|
1459
|
+
const { scrollLeft: C, scrollTop: r } = l, m = d === void 0 ? Yo(a, g === !0 ? [0, 0] : n) : Go(a, d, n);
|
|
1460
1460
|
Object.assign(l.style, {
|
|
1461
1461
|
top: 0,
|
|
1462
1462
|
left: 0,
|
|
@@ -1469,13 +1469,13 @@ function sn(e, t = 0) {
|
|
|
1469
1469
|
const { offsetWidth: _, offsetHeight: S } = l, { elWidth: P, elHeight: E } = v === !0 || g === !0 ? { elWidth: Math.max(m.width, _), elHeight: g === !0 ? Math.max(m.height, S) : S } : { elWidth: _, elHeight: S };
|
|
1470
1470
|
let q = { maxWidth: y, maxHeight: c };
|
|
1471
1471
|
(v === !0 || g === !0) && (q.minWidth = m.width + "px", g === !0 && (q.minHeight = m.height + "px")), Object.assign(l.style, q);
|
|
1472
|
-
const R =
|
|
1473
|
-
let D =
|
|
1472
|
+
const R = Zo(P, E);
|
|
1473
|
+
let D = ql(m, R, u, i);
|
|
1474
1474
|
if (d === void 0 || n === void 0)
|
|
1475
|
-
|
|
1475
|
+
Lt(D, m, R, u, i);
|
|
1476
1476
|
else {
|
|
1477
1477
|
const { top: B, left: L } = D;
|
|
1478
|
-
|
|
1478
|
+
Lt(D, m, R, u, i);
|
|
1479
1479
|
let H = !1;
|
|
1480
1480
|
if (D.top !== B) {
|
|
1481
1481
|
H = !0;
|
|
@@ -1487,15 +1487,15 @@ function sn(e, t = 0) {
|
|
|
1487
1487
|
const Q = 2 * n[0];
|
|
1488
1488
|
m.middle = m.left -= Q, m.right -= Q + 2;
|
|
1489
1489
|
}
|
|
1490
|
-
H === !0 && (D =
|
|
1490
|
+
H === !0 && (D = ql(m, R, u, i), Lt(D, m, R, u, i));
|
|
1491
1491
|
}
|
|
1492
1492
|
q = {
|
|
1493
1493
|
top: D.top + "px",
|
|
1494
1494
|
left: D.left + "px"
|
|
1495
1495
|
}, D.maxHeight !== void 0 && (q.maxHeight = D.maxHeight + "px", m.height > D.maxHeight && (q.minHeight = q.maxHeight)), D.maxWidth !== void 0 && (q.maxWidth = D.maxWidth + "px", m.width > D.maxWidth && (q.minWidth = q.maxWidth)), Object.assign(l.style, q), l.scrollTop !== r && (l.scrollTop = r), l.scrollLeft !== C && (l.scrollLeft = C);
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
const u = l.bottom, i = l.right, d =
|
|
1497
|
+
function Lt(e, t, l, n, a) {
|
|
1498
|
+
const u = l.bottom, i = l.right, d = Wo(), v = window.innerHeight - d, g = document.body.clientWidth;
|
|
1499
1499
|
if (e.top < 0 || e.top + u > v)
|
|
1500
1500
|
if (a.vertical === "center")
|
|
1501
1501
|
e.top = t[n.vertical] > v / 2 ? Math.max(0, v - u) : 0, e.maxHeight = Math.min(u, v);
|
|
@@ -1525,14 +1525,14 @@ function Mt(e, t, l, n, a) {
|
|
|
1525
1525
|
n.horizontal === "middle" ? t.middle : n.horizontal === a.horizontal ? t.left : t.right
|
|
1526
1526
|
), e.maxWidth = Math.min(i, g - e.left);
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const Jo = be({
|
|
1529
1529
|
name: "QMenu",
|
|
1530
1530
|
inheritAttrs: !1,
|
|
1531
1531
|
props: {
|
|
1532
|
-
...
|
|
1533
|
-
...
|
|
1532
|
+
...Eo,
|
|
1533
|
+
...Jl,
|
|
1534
1534
|
...lt,
|
|
1535
|
-
...
|
|
1535
|
+
...nn,
|
|
1536
1536
|
persistent: Boolean,
|
|
1537
1537
|
autoClose: Boolean,
|
|
1538
1538
|
separateClosePopup: Boolean,
|
|
@@ -1544,17 +1544,17 @@ const Zo = be({
|
|
|
1544
1544
|
square: Boolean,
|
|
1545
1545
|
anchor: {
|
|
1546
1546
|
type: String,
|
|
1547
|
-
validator:
|
|
1547
|
+
validator: Cl
|
|
1548
1548
|
},
|
|
1549
1549
|
self: {
|
|
1550
1550
|
type: String,
|
|
1551
|
-
validator:
|
|
1551
|
+
validator: Cl
|
|
1552
1552
|
},
|
|
1553
1553
|
offset: {
|
|
1554
1554
|
type: Array,
|
|
1555
|
-
validator:
|
|
1555
|
+
validator: Xo
|
|
1556
1556
|
},
|
|
1557
|
-
scrollTarget:
|
|
1557
|
+
scrollTarget: Io,
|
|
1558
1558
|
touchPosition: Boolean,
|
|
1559
1559
|
maxHeight: {
|
|
1560
1560
|
type: String,
|
|
@@ -1566,7 +1566,7 @@ const Zo = be({
|
|
|
1566
1566
|
}
|
|
1567
1567
|
},
|
|
1568
1568
|
emits: [
|
|
1569
|
-
...
|
|
1569
|
+
...en,
|
|
1570
1570
|
"click",
|
|
1571
1571
|
"escapeKey"
|
|
1572
1572
|
],
|
|
@@ -1574,14 +1574,14 @@ const Zo = be({
|
|
|
1574
1574
|
let a = null, u, i, d;
|
|
1575
1575
|
const v = le(), { proxy: g } = v, { $q: c } = g, y = T(null), C = T(!1), r = f(
|
|
1576
1576
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
1577
|
-
), m = nt(e, c), { registerTick: _, removeTick: S } =
|
|
1577
|
+
), m = nt(e, c), { registerTick: _, removeTick: S } = un(), { registerTimeout: P } = an(), { transitionProps: E, transitionStyle: q } = on(e), { localScrollTarget: R, changeScrollEvent: D, unconfigureScrollTarget: B } = Ao(e, O), { anchorEl: L, canShow: H } = Bo({ showing: C }), { hide: Q } = tn({
|
|
1578
1578
|
showing: C,
|
|
1579
1579
|
canShow: H,
|
|
1580
1580
|
handleShow: se,
|
|
1581
1581
|
handleHide: s,
|
|
1582
1582
|
hideOnRouteChange: r,
|
|
1583
1583
|
processOnMount: !0
|
|
1584
|
-
}), { showPortal: G, hidePortal: ne, renderPortal: A } =
|
|
1584
|
+
}), { showPortal: G, hidePortal: ne, renderPortal: A } = ln(v, y, N, "menu"), U = {
|
|
1585
1585
|
anchorEl: L,
|
|
1586
1586
|
innerRef: y,
|
|
1587
1587
|
onClickOutside(b) {
|
|
@@ -1590,26 +1590,26 @@ const Zo = be({
|
|
|
1590
1590
|
(b.type === "touchstart" || b.target.classList.contains("q-dialog__backdrop")) && ae(b), !0;
|
|
1591
1591
|
}
|
|
1592
1592
|
}, oe = f(
|
|
1593
|
-
() =>
|
|
1593
|
+
() => kl(
|
|
1594
1594
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
1595
1595
|
c.lang.rtl
|
|
1596
1596
|
)
|
|
1597
|
-
), te = f(() => e.cover === !0 ? oe.value :
|
|
1597
|
+
), te = f(() => e.cover === !0 ? oe.value : kl(e.self || "top start", c.lang.rtl)), X = f(
|
|
1598
1598
|
() => (e.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
1599
1599
|
), re = f(() => e.autoClose === !0 ? { onClick: V } : {}), k = f(
|
|
1600
1600
|
() => C.value === !0 && e.persistent !== !0
|
|
1601
1601
|
);
|
|
1602
1602
|
K(k, (b) => {
|
|
1603
|
-
b === !0 ? (
|
|
1603
|
+
b === !0 ? (sn(F), Uo(U)) : (St(F), Sl(U));
|
|
1604
1604
|
});
|
|
1605
1605
|
function M() {
|
|
1606
|
-
|
|
1606
|
+
Kt(() => {
|
|
1607
1607
|
let b = y.value;
|
|
1608
1608
|
b && b.contains(document.activeElement) !== !0 && (b = b.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || b.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || b.querySelector("[autofocus], [data-autofocus]") || b, b.focus({ preventScroll: !0 }));
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
function se(b) {
|
|
1612
|
-
if (a = e.noRefocus === !1 ? document.activeElement : null,
|
|
1612
|
+
if (a = e.noRefocus === !1 ? document.activeElement : null, jl(I), G(), O(), u = void 0, b !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
1613
1613
|
const Z = Kn(b);
|
|
1614
1614
|
if (Z.left !== void 0) {
|
|
1615
1615
|
const { top: ve, left: ze } = L.value.getBoundingClientRect();
|
|
@@ -1632,22 +1632,22 @@ const Zo = be({
|
|
|
1632
1632
|
}, e.transitionDuration);
|
|
1633
1633
|
}
|
|
1634
1634
|
function p(b) {
|
|
1635
|
-
u = void 0, i !== void 0 && (i(), i = void 0), (b === !0 || C.value === !0) && (
|
|
1635
|
+
u = void 0, i !== void 0 && (i(), i = void 0), (b === !0 || C.value === !0) && (Dt(I), B(), Sl(U), St(F)), b !== !0 && (a = null);
|
|
1636
1636
|
}
|
|
1637
1637
|
function O() {
|
|
1638
|
-
(L.value !== null || e.scrollTarget !== void 0) && (R.value =
|
|
1638
|
+
(L.value !== null || e.scrollTarget !== void 0) && (R.value = $o(L.value, e.scrollTarget), D(R.value, z));
|
|
1639
1639
|
}
|
|
1640
1640
|
function V(b) {
|
|
1641
|
-
d !== !0 ? (
|
|
1641
|
+
d !== !0 ? (Mo(g, b), l("click", b)) : d = !1;
|
|
1642
1642
|
}
|
|
1643
1643
|
function I(b) {
|
|
1644
|
-
k.value === !0 && e.noFocus !== !0 &&
|
|
1644
|
+
k.value === !0 && e.noFocus !== !0 && Dl(y.value, b.target) !== !0 && M();
|
|
1645
1645
|
}
|
|
1646
1646
|
function F(b) {
|
|
1647
1647
|
l("escapeKey"), Q(b);
|
|
1648
1648
|
}
|
|
1649
1649
|
function z() {
|
|
1650
|
-
|
|
1650
|
+
cn({
|
|
1651
1651
|
targetEl: y.value,
|
|
1652
1652
|
offset: e.offset,
|
|
1653
1653
|
anchorEl: L.value,
|
|
@@ -1662,7 +1662,7 @@ const Zo = be({
|
|
|
1662
1662
|
}
|
|
1663
1663
|
function N() {
|
|
1664
1664
|
return h(
|
|
1665
|
-
|
|
1665
|
+
yt,
|
|
1666
1666
|
E.value,
|
|
1667
1667
|
() => C.value === !0 ? h("div", {
|
|
1668
1668
|
role: "menu",
|
|
@@ -1684,7 +1684,7 @@ const Zo = be({
|
|
|
1684
1684
|
return ce(p), Object.assign(g, { focus: M, updatePosition: z }), A;
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
|
-
function
|
|
1687
|
+
function eu(e, t, l) {
|
|
1688
1688
|
function n() {
|
|
1689
1689
|
}
|
|
1690
1690
|
return ce(() => {
|
|
@@ -1695,40 +1695,40 @@ function Jo(e, t, l) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
let Ye = 0,
|
|
1699
|
-
function eu(e) {
|
|
1700
|
-
tu(e) && ae(e);
|
|
1701
|
-
}
|
|
1698
|
+
let Ye = 0, Ot, It, Ze, Ht = !1, Vl, _l, El, Ee = null;
|
|
1702
1699
|
function tu(e) {
|
|
1700
|
+
lu(e) && ae(e);
|
|
1701
|
+
}
|
|
1702
|
+
function lu(e) {
|
|
1703
1703
|
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop"))
|
|
1704
1704
|
return !0;
|
|
1705
1705
|
const t = Qn(e), l = e.shiftKey && !e.deltaX, n = !l && Math.abs(e.deltaX) <= Math.abs(e.deltaY), a = l || n ? e.deltaY : e.deltaX;
|
|
1706
1706
|
for (let u = 0; u < t.length; u++) {
|
|
1707
1707
|
const i = t[u];
|
|
1708
|
-
if (
|
|
1708
|
+
if (jo(i, n))
|
|
1709
1709
|
return n ? a < 0 && i.scrollTop === 0 ? !0 : a > 0 && i.scrollTop + i.clientHeight === i.scrollHeight : a < 0 && i.scrollLeft === 0 ? !0 : a > 0 && i.scrollLeft + i.clientWidth === i.scrollWidth;
|
|
1710
1710
|
}
|
|
1711
1711
|
return !0;
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1713
|
+
function Bl(e) {
|
|
1714
1714
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1717
|
-
|
|
1718
|
-
|
|
1716
|
+
function gt(e) {
|
|
1717
|
+
Ht !== !0 && (Ht = !0, requestAnimationFrame(() => {
|
|
1718
|
+
Ht = !1;
|
|
1719
1719
|
const { height: t } = e.target, { clientHeight: l, scrollTop: n } = document.scrollingElement;
|
|
1720
1720
|
(Ze === void 0 || t !== window.innerHeight) && (Ze = l - t, document.scrollingElement.scrollTop = n), n > Ze && (document.scrollingElement.scrollTop -= Math.ceil((n - Ze) / 8));
|
|
1721
1721
|
}));
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function Al(e) {
|
|
1724
1724
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
1725
1725
|
if (e === "add") {
|
|
1726
1726
|
const { overflowY: n, overflowX: a } = window.getComputedStyle(t);
|
|
1727
|
-
|
|
1727
|
+
Ot = Do(window), It = Po(window), Vl = t.style.left, _l = t.style.top, El = window.location.href, t.style.left = `-${Ot}px`, t.style.top = `-${It}px`, a !== "hidden" && (a === "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, we.is.ios === !0 && (l === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", gt, ge.passiveCapture), window.visualViewport.addEventListener("scroll", gt, ge.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", Bl, ge.passiveCapture));
|
|
1728
1728
|
}
|
|
1729
|
-
we.is.desktop === !0 && we.is.mac === !0 && window[`${e}EventListener`]("wheel",
|
|
1729
|
+
we.is.desktop === !0 && we.is.mac === !0 && window[`${e}EventListener`]("wheel", tu, ge.notPassive), e === "remove" && (we.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", gt, ge.passiveCapture), window.visualViewport.removeEventListener("scroll", gt, ge.passiveCapture)) : window.removeEventListener("scroll", Bl, ge.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 = Vl, t.style.top = _l, window.location.href === El && window.scrollTo(Ot, It), Ze = void 0);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function nu(e) {
|
|
1732
1732
|
let t = "add";
|
|
1733
1733
|
if (e === !0) {
|
|
1734
1734
|
if (Ye++, Ee !== null) {
|
|
@@ -1742,40 +1742,40 @@ function lu(e) {
|
|
|
1742
1742
|
return;
|
|
1743
1743
|
if (t = "remove", we.is.ios === !0 && we.is.nativeMobile === !0) {
|
|
1744
1744
|
Ee !== null && clearTimeout(Ee), Ee = setTimeout(() => {
|
|
1745
|
-
|
|
1745
|
+
Al(t), Ee = null;
|
|
1746
1746
|
}, 100);
|
|
1747
1747
|
return;
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
|
-
|
|
1750
|
+
Al(t);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function ou() {
|
|
1753
1753
|
let e;
|
|
1754
1754
|
return {
|
|
1755
1755
|
preventBodyScroll(t) {
|
|
1756
|
-
t !== e && (e !== void 0 || t === !0) && (e = t,
|
|
1756
|
+
t !== e && (e !== void 0 || t === !0) && (e = t, nu(t));
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
let
|
|
1761
|
-
const
|
|
1760
|
+
let pt = 0;
|
|
1761
|
+
const uu = {
|
|
1762
1762
|
standard: "fixed-full flex-center",
|
|
1763
1763
|
top: "fixed-top justify-center",
|
|
1764
1764
|
bottom: "fixed-bottom justify-center",
|
|
1765
1765
|
right: "fixed-right items-center",
|
|
1766
1766
|
left: "fixed-left items-center"
|
|
1767
|
-
},
|
|
1767
|
+
}, Tl = {
|
|
1768
1768
|
standard: ["scale", "scale"],
|
|
1769
1769
|
top: ["slide-down", "slide-up"],
|
|
1770
1770
|
bottom: ["slide-up", "slide-down"],
|
|
1771
1771
|
right: ["slide-left", "slide-right"],
|
|
1772
1772
|
left: ["slide-right", "slide-left"]
|
|
1773
|
-
},
|
|
1773
|
+
}, iu = be({
|
|
1774
1774
|
name: "QDialog",
|
|
1775
1775
|
inheritAttrs: !1,
|
|
1776
1776
|
props: {
|
|
1777
|
-
...
|
|
1778
|
-
...
|
|
1777
|
+
...Jl,
|
|
1778
|
+
...nn,
|
|
1779
1779
|
transitionShow: String,
|
|
1780
1780
|
// override useTransitionProps
|
|
1781
1781
|
transitionHide: String,
|
|
@@ -1802,7 +1802,7 @@ const ou = {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
},
|
|
1804
1804
|
emits: [
|
|
1805
|
-
...
|
|
1805
|
+
...en,
|
|
1806
1806
|
"shake",
|
|
1807
1807
|
"click",
|
|
1808
1808
|
"escapeKey"
|
|
@@ -1812,25 +1812,25 @@ const ou = {
|
|
|
1812
1812
|
let v = null, g = null, c, y;
|
|
1813
1813
|
const C = f(
|
|
1814
1814
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
1815
|
-
), { preventBodyScroll: r } =
|
|
1815
|
+
), { preventBodyScroll: r } = ou(), { registerTimeout: m } = an(), { registerTick: _, removeTick: S } = un(), { transitionProps: P, transitionStyle: E } = on(
|
|
1816
1816
|
e,
|
|
1817
|
-
() =>
|
|
1818
|
-
() =>
|
|
1819
|
-
), q = f(() => E.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: R, hidePortal: D, portalIsAccessible: B, renderPortal: L } =
|
|
1817
|
+
() => Tl[e.position][0],
|
|
1818
|
+
() => Tl[e.position][1]
|
|
1819
|
+
), q = f(() => E.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: R, hidePortal: D, portalIsAccessible: B, renderPortal: L } = ln(
|
|
1820
1820
|
a,
|
|
1821
1821
|
u,
|
|
1822
1822
|
O,
|
|
1823
1823
|
"dialog"
|
|
1824
|
-
), { hide: H } =
|
|
1824
|
+
), { hide: H } = tn({
|
|
1825
1825
|
showing: i,
|
|
1826
1826
|
hideOnRouteChange: C,
|
|
1827
1827
|
handleShow: U,
|
|
1828
1828
|
handleHide: oe,
|
|
1829
1829
|
processOnMount: !0
|
|
1830
1830
|
});
|
|
1831
|
-
|
|
1831
|
+
eu(i);
|
|
1832
1832
|
const Q = f(
|
|
1833
|
-
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${
|
|
1833
|
+
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${uu[e.position]}` + (d.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" : "")
|
|
1834
1834
|
), G = f(() => i.value === !0 && e.seamless !== !0), ne = f(() => e.autoClose === !0 ? { onClick: se } : {}), A = f(() => [
|
|
1835
1835
|
`q-dialog fullscreen no-pointer-events q-dialog--${G.value === !0 ? "modal" : "seamless"}`,
|
|
1836
1836
|
n.class
|
|
@@ -1838,7 +1838,7 @@ const ou = {
|
|
|
1838
1838
|
K(() => e.maximized, (V) => {
|
|
1839
1839
|
i.value === !0 && M(V);
|
|
1840
1840
|
}), K(G, (V) => {
|
|
1841
|
-
r(V), V === !0 ? (
|
|
1841
|
+
r(V), V === !0 ? (jl(p), sn(re)) : (Dt(p), St(re));
|
|
1842
1842
|
});
|
|
1843
1843
|
function U(V) {
|
|
1844
1844
|
g = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, M(e.maximized), R(), d.value = !0, e.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), _(te)) : S(), m(() => {
|
|
@@ -1861,7 +1861,7 @@ const ou = {
|
|
|
1861
1861
|
}, e.transitionDuration);
|
|
1862
1862
|
}
|
|
1863
1863
|
function te(V) {
|
|
1864
|
-
|
|
1864
|
+
Kt(() => {
|
|
1865
1865
|
let I = u.value;
|
|
1866
1866
|
if (I !== null) {
|
|
1867
1867
|
if (V !== void 0) {
|
|
@@ -1886,10 +1886,10 @@ const ou = {
|
|
|
1886
1886
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && X() : (l("escapeKey"), H()));
|
|
1887
1887
|
}
|
|
1888
1888
|
function k(V) {
|
|
1889
|
-
v !== null && (clearTimeout(v), v = null), (V === !0 || i.value === !0) && (M(!1), e.seamless !== !0 && (r(!1),
|
|
1889
|
+
v !== null && (clearTimeout(v), v = null), (V === !0 || i.value === !0) && (M(!1), e.seamless !== !0 && (r(!1), Dt(p), St(re))), V !== !0 && (g = null);
|
|
1890
1890
|
}
|
|
1891
1891
|
function M(V) {
|
|
1892
|
-
V === !0 ? c !== !0 && (
|
|
1892
|
+
V === !0 ? c !== !0 && (pt < 1 && document.body.classList.add("q-body--dialog"), pt++, c = !0) : c === !0 && (pt < 2 && document.body.classList.remove("q-body--dialog"), pt--, c = !1);
|
|
1893
1893
|
}
|
|
1894
1894
|
function se(V) {
|
|
1895
1895
|
y !== !0 && (H(V), l("click", V));
|
|
@@ -1898,7 +1898,7 @@ const ou = {
|
|
|
1898
1898
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? H(V) : e.noShake !== !0 && X();
|
|
1899
1899
|
}
|
|
1900
1900
|
function p(V) {
|
|
1901
|
-
e.allowFocusOutside !== !0 && B.value === !0 &&
|
|
1901
|
+
e.allowFocusOutside !== !0 && B.value === !0 && Dl(u.value, V.target) !== !0 && te('[tabindex]:not([tabindex="-1"])');
|
|
1902
1902
|
}
|
|
1903
1903
|
Object.assign(a.proxy, {
|
|
1904
1904
|
// expose public methods
|
|
@@ -1916,7 +1916,7 @@ const ou = {
|
|
|
1916
1916
|
...n,
|
|
1917
1917
|
class: A.value
|
|
1918
1918
|
}, [
|
|
1919
|
-
h(
|
|
1919
|
+
h(yt, {
|
|
1920
1920
|
name: "q-transition--fade",
|
|
1921
1921
|
appear: !0
|
|
1922
1922
|
}, () => G.value === !0 ? h("div", {
|
|
@@ -1927,7 +1927,7 @@ const ou = {
|
|
|
1927
1927
|
onClick: s
|
|
1928
1928
|
}) : null),
|
|
1929
1929
|
h(
|
|
1930
|
-
|
|
1930
|
+
yt,
|
|
1931
1931
|
P.value,
|
|
1932
1932
|
() => i.value === !0 ? h("div", {
|
|
1933
1933
|
ref: u,
|
|
@@ -1942,7 +1942,7 @@ const ou = {
|
|
|
1942
1942
|
return L;
|
|
1943
1943
|
}
|
|
1944
1944
|
});
|
|
1945
|
-
let
|
|
1945
|
+
let Ct = !1;
|
|
1946
1946
|
{
|
|
1947
1947
|
const e = document.createElement("div");
|
|
1948
1948
|
e.setAttribute("dir", "rtl"), Object.assign(e.style, {
|
|
@@ -1954,22 +1954,22 @@ let xt = !1;
|
|
|
1954
1954
|
Object.assign(t.style, {
|
|
1955
1955
|
width: "1000px",
|
|
1956
1956
|
height: "1px"
|
|
1957
|
-
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3,
|
|
1957
|
+
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, Ct = e.scrollLeft >= 0, e.remove();
|
|
1958
1958
|
}
|
|
1959
|
-
const fe = 1e3,
|
|
1959
|
+
const fe = 1e3, au = [
|
|
1960
1960
|
"start",
|
|
1961
1961
|
"center",
|
|
1962
1962
|
"end",
|
|
1963
1963
|
"start-force",
|
|
1964
1964
|
"center-force",
|
|
1965
1965
|
"end-force"
|
|
1966
|
-
],
|
|
1966
|
+
], dn = Array.prototype.filter, ru = window.getComputedStyle(document.body).overflowAnchor === void 0 ? Un : function(e, t) {
|
|
1967
1967
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
1968
1968
|
if (e === null)
|
|
1969
1969
|
return;
|
|
1970
1970
|
e._qOverflowAnimationFrame = void 0;
|
|
1971
1971
|
const l = e.children || [];
|
|
1972
|
-
|
|
1972
|
+
dn.call(l, (a) => a.dataset && a.dataset.qVsAnchor !== void 0).forEach((a) => {
|
|
1973
1973
|
delete a.dataset.qVsAnchor;
|
|
1974
1974
|
});
|
|
1975
1975
|
const n = l[t];
|
|
@@ -1979,7 +1979,7 @@ const fe = 1e3, iu = [
|
|
|
1979
1979
|
function We(e, t) {
|
|
1980
1980
|
return e + t;
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function $t(e, t, l, n, a, u, i, d) {
|
|
1983
1983
|
const v = e === window ? document.scrollingElement || document.documentElement : e, g = a === !0 ? "offsetWidth" : "offsetHeight", c = {
|
|
1984
1984
|
scrollStart: 0,
|
|
1985
1985
|
scrollViewSize: -i - d,
|
|
@@ -1987,7 +1987,7 @@ function Ht(e, t, l, n, a, u, i, d) {
|
|
|
1987
1987
|
offsetStart: -i,
|
|
1988
1988
|
offsetEnd: -d
|
|
1989
1989
|
};
|
|
1990
|
-
if (a === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = v.scrollLeft, c.scrollViewSize += v.clientWidth), c.scrollMaxSize = v.scrollWidth, u === !0 && (c.scrollStart = (
|
|
1990
|
+
if (a === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = v.scrollLeft, c.scrollViewSize += v.clientWidth), c.scrollMaxSize = v.scrollWidth, u === !0 && (c.scrollStart = (Ct === !0 ? c.scrollMaxSize - c.scrollViewSize : 0) - c.scrollStart)) : (e === window ? (c.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, c.scrollViewSize += document.documentElement.clientHeight) : (c.scrollStart = v.scrollTop, c.scrollViewSize += v.clientHeight), c.scrollMaxSize = v.scrollHeight), l !== null)
|
|
1991
1991
|
for (let y = l.previousElementSibling; y !== null; y = y.previousElementSibling)
|
|
1992
1992
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += y[g]);
|
|
1993
1993
|
if (n !== null)
|
|
@@ -1999,8 +1999,8 @@ function Ht(e, t, l, n, a, u, i, d) {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
return c;
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (
|
|
2002
|
+
function Rl(e, t, l, n) {
|
|
2003
|
+
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (Ct === !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 = (Ct === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
2004
2004
|
}
|
|
2005
2005
|
function Ge(e, t, l, n) {
|
|
2006
2006
|
if (l >= n)
|
|
@@ -2009,7 +2009,7 @@ function Ge(e, t, l, n) {
|
|
|
2009
2009
|
let d = e.slice(u, i).reduce(We, 0);
|
|
2010
2010
|
return l % fe !== 0 && (d -= t.slice(u * fe, l).reduce(We, 0)), n % fe !== 0 && n !== a && (d -= t.slice(n, i * fe).reduce(We, 0)), d;
|
|
2011
2011
|
}
|
|
2012
|
-
const
|
|
2012
|
+
const su = {
|
|
2013
2013
|
virtualScrollSliceSize: {
|
|
2014
2014
|
type: [Number, String],
|
|
2015
2015
|
default: 10
|
|
@@ -2035,12 +2035,12 @@ const ru = {
|
|
|
2035
2035
|
default: 0
|
|
2036
2036
|
},
|
|
2037
2037
|
tableColspan: [Number, String]
|
|
2038
|
-
},
|
|
2038
|
+
}, zl = {
|
|
2039
2039
|
virtualScrollHorizontal: Boolean,
|
|
2040
2040
|
onVirtualScroll: Function,
|
|
2041
|
-
...
|
|
2041
|
+
...su
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2043
|
+
function cu({
|
|
2044
2044
|
virtualScrollLength: e,
|
|
2045
2045
|
getVirtualScrollTarget: t,
|
|
2046
2046
|
getVirtualScrollEl: l,
|
|
@@ -2067,7 +2067,7 @@ function su({
|
|
|
2067
2067
|
const O = t();
|
|
2068
2068
|
if (O == null || O.nodeType === 8)
|
|
2069
2069
|
return;
|
|
2070
|
-
const V =
|
|
2070
|
+
const V = $t(
|
|
2071
2071
|
O,
|
|
2072
2072
|
l(),
|
|
2073
2073
|
P.value,
|
|
@@ -2082,14 +2082,14 @@ function su({
|
|
|
2082
2082
|
V,
|
|
2083
2083
|
Math.min(e.value - 1, Math.max(0, parseInt(s, 10) || 0)),
|
|
2084
2084
|
0,
|
|
2085
|
-
|
|
2085
|
+
au.indexOf(p) !== -1 ? p : c !== -1 && s > c ? "end" : "start"
|
|
2086
2086
|
);
|
|
2087
2087
|
}
|
|
2088
2088
|
function ne() {
|
|
2089
2089
|
const s = t();
|
|
2090
2090
|
if (s == null || s.nodeType === 8)
|
|
2091
2091
|
return;
|
|
2092
|
-
const p =
|
|
2092
|
+
const p = $t(
|
|
2093
2093
|
s,
|
|
2094
2094
|
l(),
|
|
2095
2095
|
P.value,
|
|
@@ -2143,7 +2143,7 @@ function su({
|
|
|
2143
2143
|
const { activeElement: ze } = document, me = q.value;
|
|
2144
2144
|
ve === !0 && me !== null && me !== ze && me.contains(ze) === !0 && (me.addEventListener("focusout", oe), setTimeout(() => {
|
|
2145
2145
|
me !== null && me.removeEventListener("focusout", oe);
|
|
2146
|
-
})),
|
|
2146
|
+
})), ru(me, O - b);
|
|
2147
2147
|
const ot = z !== void 0 ? r.slice(b, O).reduce(We, 0) : 0;
|
|
2148
2148
|
if (ve === !0) {
|
|
2149
2149
|
const ke = Z >= R.value.from && b <= R.value.to ? R.value.to : Z;
|
|
@@ -2158,10 +2158,10 @@ function su({
|
|
|
2158
2158
|
const ke = r.slice(b, O).reduce(We, 0), qe = ke + p.offsetStart + m.value, ut = qe + r[O];
|
|
2159
2159
|
let Ne = qe + V;
|
|
2160
2160
|
if (z !== void 0) {
|
|
2161
|
-
const
|
|
2161
|
+
const Vt = ke - ot, Ke = p.scrollStart + Vt;
|
|
2162
2162
|
Ne = F !== !0 && Ke < qe && ut < Ke + p.scrollViewSize ? Ke : z === "end" ? ut - p.scrollViewSize : qe - (z === "start" ? 0 : Math.round((p.scrollViewSize - r[O]) / 2));
|
|
2163
2163
|
}
|
|
2164
|
-
g = Ne,
|
|
2164
|
+
g = Ne, Rl(
|
|
2165
2165
|
s,
|
|
2166
2166
|
Ne,
|
|
2167
2167
|
u.virtualScrollHorizontal,
|
|
@@ -2172,7 +2172,7 @@ function su({
|
|
|
2172
2172
|
function U(s) {
|
|
2173
2173
|
const p = q.value;
|
|
2174
2174
|
if (p) {
|
|
2175
|
-
const O =
|
|
2175
|
+
const O = dn.call(
|
|
2176
2176
|
p.children,
|
|
2177
2177
|
(b) => b.classList && b.classList.contains("q-virtual-scroll--skip") === !1
|
|
2178
2178
|
), V = O.length, I = u.virtualScrollHorizontal === !0 ? (b) => b.getBoundingClientRect().width : (b) => b.offsetHeight;
|
|
@@ -2210,7 +2210,7 @@ function su({
|
|
|
2210
2210
|
function X(s) {
|
|
2211
2211
|
if (s === void 0 && typeof window < "u") {
|
|
2212
2212
|
const z = t();
|
|
2213
|
-
z != null && z.nodeType !== 8 && (s =
|
|
2213
|
+
z != null && z.nodeType !== 8 && (s = $t(
|
|
2214
2214
|
z,
|
|
2215
2215
|
l(),
|
|
2216
2216
|
P.value,
|
|
@@ -2292,20 +2292,20 @@ function su({
|
|
|
2292
2292
|
}), c = s);
|
|
2293
2293
|
}
|
|
2294
2294
|
X();
|
|
2295
|
-
const M =
|
|
2295
|
+
const M = Ul(
|
|
2296
2296
|
ne,
|
|
2297
2297
|
v.platform.is.ios === !0 ? 120 : 35
|
|
2298
2298
|
);
|
|
2299
|
-
|
|
2299
|
+
Tn(() => {
|
|
2300
2300
|
X();
|
|
2301
2301
|
});
|
|
2302
2302
|
let se = !1;
|
|
2303
|
-
return
|
|
2303
|
+
return kt(() => {
|
|
2304
2304
|
se = !0;
|
|
2305
|
-
}),
|
|
2305
|
+
}), Ol(() => {
|
|
2306
2306
|
if (se !== !0) return;
|
|
2307
2307
|
const s = t();
|
|
2308
|
-
g !== void 0 && s !== void 0 && s !== null && s.nodeType !== 8 ?
|
|
2308
|
+
g !== void 0 && s !== void 0 && s !== null && s.nodeType !== 8 ? Rl(
|
|
2309
2309
|
s,
|
|
2310
2310
|
g,
|
|
2311
2311
|
u.virtualScrollHorizontal,
|
|
@@ -2325,13 +2325,13 @@ function su({
|
|
|
2325
2325
|
refresh: Q
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
const
|
|
2329
|
-
function
|
|
2328
|
+
const du = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, fu = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, vu = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, mu = /[a-z0-9_ -]$/i;
|
|
2329
|
+
function hu(e) {
|
|
2330
2330
|
return function(l) {
|
|
2331
2331
|
if (l.type === "compositionend" || l.type === "change") {
|
|
2332
2332
|
if (l.target.qComposing !== !0) return;
|
|
2333
2333
|
l.target.qComposing = !1, e(l);
|
|
2334
|
-
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (we.is.firefox === !0 ?
|
|
2334
|
+
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (we.is.firefox === !0 ? mu.test(l.data) === !1 : du.test(l.data) === !0 || fu.test(l.data) === !0 || vu.test(l.data) === !0) === !0 && (l.target.qComposing = !0);
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
2337
|
function Ce(e, t) {
|
|
@@ -2402,26 +2402,26 @@ function Ce(e, t) {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
return e !== e && t !== t;
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function Fl(e, t, l) {
|
|
2406
2406
|
if (l <= t)
|
|
2407
2407
|
return t;
|
|
2408
2408
|
const n = l - t + 1;
|
|
2409
2409
|
let a = t + (e - t) % n;
|
|
2410
2410
|
return a < t && (a = n + a), a === 0 ? 0 : a;
|
|
2411
2411
|
}
|
|
2412
|
-
const
|
|
2413
|
-
function
|
|
2412
|
+
const Ml = (e) => ["add", "add-unique", "toggle"].includes(e), gu = ".*+?^${}()|[]\\", pu = Object.keys(Qt);
|
|
2413
|
+
function Pt(e, t) {
|
|
2414
2414
|
if (typeof e == "function") return e;
|
|
2415
2415
|
const l = e !== void 0 ? e : t;
|
|
2416
2416
|
return (n) => n !== null && typeof n == "object" && l in n ? n[l] : n;
|
|
2417
2417
|
}
|
|
2418
|
-
const
|
|
2418
|
+
const bu = be({
|
|
2419
2419
|
name: "QSelect",
|
|
2420
2420
|
inheritAttrs: !1,
|
|
2421
2421
|
props: {
|
|
2422
|
-
...
|
|
2423
|
-
...
|
|
2424
|
-
...
|
|
2422
|
+
...zl,
|
|
2423
|
+
...Nl,
|
|
2424
|
+
...Qt,
|
|
2425
2425
|
// override of useFieldProps > modelValue
|
|
2426
2426
|
modelValue: {
|
|
2427
2427
|
required: !0
|
|
@@ -2460,7 +2460,7 @@ const pu = be({
|
|
|
2460
2460
|
useChips: Boolean,
|
|
2461
2461
|
newValueMode: {
|
|
2462
2462
|
type: String,
|
|
2463
|
-
validator:
|
|
2463
|
+
validator: Ml
|
|
2464
2464
|
},
|
|
2465
2465
|
mapOptions: Boolean,
|
|
2466
2466
|
emitValue: Boolean,
|
|
@@ -2485,12 +2485,12 @@ const pu = be({
|
|
|
2485
2485
|
default: "default"
|
|
2486
2486
|
},
|
|
2487
2487
|
// override of useVirtualScrollProps > virtualScrollItemSize (no default)
|
|
2488
|
-
virtualScrollItemSize:
|
|
2488
|
+
virtualScrollItemSize: zl.virtualScrollItemSize.type,
|
|
2489
2489
|
onNewValue: Function,
|
|
2490
2490
|
onFilter: Function
|
|
2491
2491
|
},
|
|
2492
2492
|
emits: [
|
|
2493
|
-
...
|
|
2493
|
+
...Yl,
|
|
2494
2494
|
"add",
|
|
2495
2495
|
"remove",
|
|
2496
2496
|
"inputValue",
|
|
@@ -2504,7 +2504,7 @@ const pu = be({
|
|
|
2504
2504
|
setup(e, { slots: t, emit: l }) {
|
|
2505
2505
|
const { proxy: n } = le(), { $q: a } = n, u = T(!1), i = T(!1), d = T(-1), v = T(""), g = T(!1), c = T(!1);
|
|
2506
2506
|
let y = null, C = null, r, m, _, S = null, P, E, q, R;
|
|
2507
|
-
const D = T(null), B = T(null), L = T(null), H = T(null), Q = T(null), G =
|
|
2507
|
+
const D = T(null), B = T(null), L = T(null), H = T(null), Q = T(null), G = no(e), ne = hu(nl), A = f(() => Array.isArray(e.options) ? e.options.length : 0), U = f(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
2508
2508
|
virtualScrollSliceRange: oe,
|
|
2509
2509
|
virtualScrollSliceSizeComputed: te,
|
|
2510
2510
|
localResetVirtualScroll: X,
|
|
@@ -2512,25 +2512,25 @@ const pu = be({
|
|
|
2512
2512
|
onVirtualScrollEvt: k,
|
|
2513
2513
|
scrollTo: M,
|
|
2514
2514
|
setVirtualScrollSize: se
|
|
2515
|
-
} =
|
|
2515
|
+
} = cu({
|
|
2516
2516
|
virtualScrollLength: A,
|
|
2517
|
-
getVirtualScrollTarget:
|
|
2518
|
-
getVirtualScrollEl:
|
|
2517
|
+
getVirtualScrollTarget: hn,
|
|
2518
|
+
getVirtualScrollEl: tl,
|
|
2519
2519
|
virtualScrollItemSizeComputed: U
|
|
2520
|
-
}), s =
|
|
2520
|
+
}), s = Gl(), p = f(() => {
|
|
2521
2521
|
const o = e.mapOptions === !0 && e.multiple !== !0, w = e.modelValue !== void 0 && (e.modelValue !== null || o === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
2522
2522
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
2523
|
-
const x = e.mapOptions === !0 && r !== void 0 ? r : [], $ = w.map((j) =>
|
|
2523
|
+
const x = e.mapOptions === !0 && r !== void 0 ? r : [], $ = w.map((j) => mn(j, x));
|
|
2524
2524
|
return e.modelValue === null && o === !0 ? $.filter((j) => j !== null) : $;
|
|
2525
2525
|
}
|
|
2526
2526
|
return w;
|
|
2527
2527
|
}), O = f(() => {
|
|
2528
2528
|
const o = {};
|
|
2529
|
-
return
|
|
2529
|
+
return pu.forEach((w) => {
|
|
2530
2530
|
const x = e[w];
|
|
2531
2531
|
x !== void 0 && (o[w] = x);
|
|
2532
2532
|
}), o;
|
|
2533
|
-
}), V = f(() => e.optionsDark === null ? s.isDark.value : e.optionsDark), I = f(() =>
|
|
2533
|
+
}), V = f(() => e.optionsDark === null ? s.isDark.value : e.optionsDark), I = f(() => jt(p.value)), F = f(() => {
|
|
2534
2534
|
let o = "q-field__input q-placeholder col";
|
|
2535
2535
|
return e.hideSelected === !0 || p.value.length === 0 ? [o, e.inputClass] : (o += " q-field__input--padding", e.inputClass === void 0 ? o : [o, e.inputClass]);
|
|
2536
2536
|
}), z = f(
|
|
@@ -2557,7 +2557,7 @@ const pu = be({
|
|
|
2557
2557
|
opt: o,
|
|
2558
2558
|
html: ve.value(o),
|
|
2559
2559
|
selected: !0,
|
|
2560
|
-
removeAtIndex:
|
|
2560
|
+
removeAtIndex: vn,
|
|
2561
2561
|
toggleOption: Ve,
|
|
2562
2562
|
tabindex: me.value
|
|
2563
2563
|
}))), ut = f(() => {
|
|
@@ -2565,7 +2565,7 @@ const pu = be({
|
|
|
2565
2565
|
return [];
|
|
2566
2566
|
const { from: o, to: w } = oe.value;
|
|
2567
2567
|
return e.options.slice(o, w).map((x, $) => {
|
|
2568
|
-
const j = Fe.value(x) === !0, W =
|
|
2568
|
+
const j = Fe.value(x) === !0, W = Et(x) === !0, J = o + $, Y = {
|
|
2569
2569
|
clickable: !0,
|
|
2570
2570
|
active: W,
|
|
2571
2571
|
activeClass: Ke.value,
|
|
@@ -2596,20 +2596,20 @@ const pu = be({
|
|
|
2596
2596
|
itemProps: Y
|
|
2597
2597
|
};
|
|
2598
2598
|
});
|
|
2599
|
-
}), Ne = f(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown),
|
|
2599
|
+
}), Ne = f(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown), Vt = f(
|
|
2600
2600
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
2601
|
-
), Ke = f(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), he = f(() =>
|
|
2601
|
+
), Ke = f(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), he = f(() => Pt(e.optionValue, "value")), ue = f(() => Pt(e.optionLabel, "label")), Fe = f(() => Pt(e.optionDisable, "disable")), it = f(() => p.value.map(he.value)), fn = f(() => {
|
|
2602
2602
|
const o = {
|
|
2603
|
-
onInput:
|
|
2603
|
+
onInput: nl,
|
|
2604
2604
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
2605
2605
|
// switching focus before confirming composition choice
|
|
2606
2606
|
// this also fixes the issue where some browsers e.g. iOS Chrome
|
|
2607
2607
|
// fires "change" instead of "input" on autocomplete.
|
|
2608
2608
|
onChange: ne,
|
|
2609
|
-
onKeydown:
|
|
2610
|
-
onKeyup:
|
|
2611
|
-
onKeypress:
|
|
2612
|
-
onFocus:
|
|
2609
|
+
onKeydown: el,
|
|
2610
|
+
onKeyup: Zt,
|
|
2611
|
+
onKeypress: Jt,
|
|
2612
|
+
onFocus: Yt,
|
|
2613
2613
|
onClick(w) {
|
|
2614
2614
|
m === !0 && De(w);
|
|
2615
2615
|
}
|
|
@@ -2618,11 +2618,11 @@ const pu = be({
|
|
|
2618
2618
|
});
|
|
2619
2619
|
K(p, (o) => {
|
|
2620
2620
|
r = o, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && s.innerLoading.value !== !0 && (i.value !== !0 && u.value !== !0 || I.value !== !0) && (_ !== !0 && He(), (i.value === !0 || u.value === !0) && Le(""));
|
|
2621
|
-
}, { immediate: !0 }), K(() => e.fillInput, He), K(u,
|
|
2622
|
-
function
|
|
2621
|
+
}, { immediate: !0 }), K(() => e.fillInput, He), K(u, Bt), K(A, _n);
|
|
2622
|
+
function Ut(o) {
|
|
2623
2623
|
return e.emitValue === !0 ? he.value(o) : o;
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function _t(o) {
|
|
2626
2626
|
if (o !== -1 && o < p.value.length)
|
|
2627
2627
|
if (e.multiple === !0) {
|
|
2628
2628
|
const w = e.modelValue.slice();
|
|
@@ -2630,11 +2630,11 @@ const pu = be({
|
|
|
2630
2630
|
} else
|
|
2631
2631
|
l("update:modelValue", null);
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2634
|
-
|
|
2633
|
+
function vn(o) {
|
|
2634
|
+
_t(o), s.focus();
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const x =
|
|
2636
|
+
function Xt(o, w) {
|
|
2637
|
+
const x = Ut(o);
|
|
2638
2638
|
if (e.multiple !== !0) {
|
|
2639
2639
|
e.fillInput === !0 && Qe(
|
|
2640
2640
|
ue.value(o),
|
|
@@ -2647,7 +2647,7 @@ const pu = be({
|
|
|
2647
2647
|
l("add", { index: 0, value: x }), l("update:modelValue", e.multiple === !0 ? [x] : x);
|
|
2648
2648
|
return;
|
|
2649
2649
|
}
|
|
2650
|
-
if (w === !0 &&
|
|
2650
|
+
if (w === !0 && Et(o) === !0 || e.maxValues !== void 0 && e.modelValue.length >= e.maxValues)
|
|
2651
2651
|
return;
|
|
2652
2652
|
const $ = e.modelValue.slice();
|
|
2653
2653
|
l("add", { index: $.length, value: x }), $.push(x), l("update:modelValue", $);
|
|
@@ -2664,7 +2664,7 @@ const pu = be({
|
|
|
2664
2664
|
), _e()), B.value !== null && B.value.focus(), (p.value.length === 0 || Ce(he.value(p.value[0]), x) !== !0) && l("update:modelValue", e.emitValue === !0 ? x : o);
|
|
2665
2665
|
return;
|
|
2666
2666
|
}
|
|
2667
|
-
if ((m !== !0 || g.value === !0) && s.focus(),
|
|
2667
|
+
if ((m !== !0 || g.value === !0) && s.focus(), Yt(), p.value.length === 0) {
|
|
2668
2668
|
const W = e.emitValue === !0 ? x : o;
|
|
2669
2669
|
l("add", { index: 0, value: W }), l("update:modelValue", e.multiple === !0 ? [W] : W);
|
|
2670
2670
|
return;
|
|
@@ -2689,7 +2689,7 @@ const pu = be({
|
|
|
2689
2689
|
if (u.value === !0) {
|
|
2690
2690
|
let x = d.value;
|
|
2691
2691
|
do
|
|
2692
|
-
x =
|
|
2692
|
+
x = Fl(
|
|
2693
2693
|
x + o,
|
|
2694
2694
|
-1,
|
|
2695
2695
|
A.value - 1
|
|
@@ -2701,24 +2701,24 @@ const pu = be({
|
|
|
2701
2701
|
));
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function mn(o, w) {
|
|
2705
2705
|
const x = ($) => Ce(he.value($), o);
|
|
2706
2706
|
return e.options.find(x) || w.find(x) || o;
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function Et(o) {
|
|
2709
2709
|
const w = he.value(o);
|
|
2710
2710
|
return it.value.find((x) => Ce(x, w)) !== void 0;
|
|
2711
2711
|
}
|
|
2712
|
-
function Xt(o) {
|
|
2713
|
-
e.useInput === !0 && B.value !== null && (o === void 0 || B.value === o.target && o.target.value === b.value) && B.value.select();
|
|
2714
|
-
}
|
|
2715
2712
|
function Yt(o) {
|
|
2716
|
-
|
|
2713
|
+
e.useInput === !0 && B.value !== null && (o === void 0 || B.value === o.target && o.target.value === b.value) && B.value.select();
|
|
2717
2714
|
}
|
|
2718
2715
|
function Gt(o) {
|
|
2716
|
+
qt(o, 27) === !0 && u.value === !0 && (De(o), _e(), He()), l("keyup", o);
|
|
2717
|
+
}
|
|
2718
|
+
function Zt(o) {
|
|
2719
2719
|
const { value: w } = o.target;
|
|
2720
2720
|
if (o.keyCode !== void 0) {
|
|
2721
|
-
|
|
2721
|
+
Gt(o);
|
|
2722
2722
|
return;
|
|
2723
2723
|
}
|
|
2724
2724
|
if (o.target.value = "", y !== null && (clearTimeout(y), y = null), C !== null && (clearTimeout(C), C = null), He(), typeof w == "string" && w.length !== 0) {
|
|
@@ -2732,10 +2732,10 @@ const pu = be({
|
|
|
2732
2732
|
} else
|
|
2733
2733
|
s.clearValue(o);
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function Jt(o) {
|
|
2736
2736
|
l("keypress", o);
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function el(o) {
|
|
2739
2739
|
if (l("keydown", o), Xn(o) === !0)
|
|
2740
2740
|
return;
|
|
2741
2741
|
const w = v.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), x = o.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (d.value !== -1 || w === !0);
|
|
@@ -2753,7 +2753,7 @@ const pu = be({
|
|
|
2753
2753
|
return;
|
|
2754
2754
|
}
|
|
2755
2755
|
if (o.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && v.value.length === 0) {
|
|
2756
|
-
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ?
|
|
2756
|
+
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? _t(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
2757
2757
|
return;
|
|
2758
2758
|
}
|
|
2759
2759
|
(o.keyCode === 35 || o.keyCode === 36) && (typeof v.value != "string" || v.value.length === 0) && (ae(o), d.value = -1, at(o.keyCode === 36 ? 1 : -1, e.multiple)), (o.keyCode === 33 || o.keyCode === 34) && te.value !== void 0 && (ae(o), d.value = Math.max(
|
|
@@ -2768,11 +2768,11 @@ const pu = be({
|
|
|
2768
2768
|
u.value !== !0 && Ie(o);
|
|
2769
2769
|
const j = o.key.toLocaleLowerCase(), W = q.length === 1 && q[0] === j;
|
|
2770
2770
|
R = Date.now() + 1500, W === !1 && (ae(o), q += j);
|
|
2771
|
-
const J = new RegExp("^" + q.split("").map((
|
|
2771
|
+
const J = new RegExp("^" + q.split("").map((At) => gu.indexOf(At) !== -1 ? "\\" + At : At).join(".*"), "i");
|
|
2772
2772
|
let Y = d.value;
|
|
2773
2773
|
if (W === !0 || Y < 0 || J.test(ue.value(e.options[Y])) !== !0)
|
|
2774
2774
|
do
|
|
2775
|
-
Y =
|
|
2775
|
+
Y = Fl(Y + 1, -1, $ - 1);
|
|
2776
2776
|
while (Y !== d.value && (Fe.value(e.options[Y]) === !0 || J.test(ue.value(e.options[Y])) !== !0));
|
|
2777
2777
|
d.value !== Y && ie(() => {
|
|
2778
2778
|
Me(Y), M(Y), Y >= 0 && e.useInput === !0 && e.fillInput === !0 && rt(ue.value(e.options[Y]), !0);
|
|
@@ -2787,13 +2787,13 @@ const pu = be({
|
|
|
2787
2787
|
if (w === !0) {
|
|
2788
2788
|
const j = (W, J) => {
|
|
2789
2789
|
if (J) {
|
|
2790
|
-
if (
|
|
2790
|
+
if (Ml(J) !== !0)
|
|
2791
2791
|
return;
|
|
2792
2792
|
} else
|
|
2793
2793
|
J = e.newValueMode;
|
|
2794
2794
|
if (Qe("", e.multiple !== !0, !0), W == null)
|
|
2795
2795
|
return;
|
|
2796
|
-
(J === "toggle" ? Ve :
|
|
2796
|
+
(J === "toggle" ? Ve : Xt)(W, J === "add-unique"), e.multiple !== !0 && (B.value !== null && B.value.focus(), _e());
|
|
2797
2797
|
};
|
|
2798
2798
|
if (e.onNewValue !== void 0 ? l("newValue", v.value, j) : j(v.value), e.multiple !== !0)
|
|
2799
2799
|
return;
|
|
@@ -2801,14 +2801,14 @@ const pu = be({
|
|
|
2801
2801
|
u.value === !0 ? Oe() : s.innerLoading.value !== !0 && Ie();
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2804
|
+
function tl() {
|
|
2805
2805
|
return m === !0 ? Q.value : L.value !== null && L.value.contentEl !== null ? L.value.contentEl : void 0;
|
|
2806
2806
|
}
|
|
2807
|
-
function mn() {
|
|
2808
|
-
return el();
|
|
2809
|
-
}
|
|
2810
2807
|
function hn() {
|
|
2811
|
-
return
|
|
2808
|
+
return tl();
|
|
2809
|
+
}
|
|
2810
|
+
function gn() {
|
|
2811
|
+
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? qe.value.map((o) => t["selected-item"](o)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? qe.value.map((o, w) => h(qo, {
|
|
2812
2812
|
key: "option-" + w,
|
|
2813
2813
|
removable: s.editable.value === !0 && Fe.value(o.opt) !== !0,
|
|
2814
2814
|
dense: !0,
|
|
@@ -2826,25 +2826,25 @@ const pu = be({
|
|
|
2826
2826
|
})
|
|
2827
2827
|
];
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function ll() {
|
|
2830
2830
|
if (N.value === !0)
|
|
2831
2831
|
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: v.value }) : void 0;
|
|
2832
|
-
const o = t.option !== void 0 ? t.option : (x) => h(
|
|
2832
|
+
const o = t.option !== void 0 ? t.option : (x) => h(Ql, {
|
|
2833
2833
|
key: x.index,
|
|
2834
2834
|
...x.itemProps
|
|
2835
2835
|
}, () => h(
|
|
2836
|
-
|
|
2836
|
+
bt,
|
|
2837
2837
|
() => h(
|
|
2838
|
-
|
|
2838
|
+
Kl,
|
|
2839
2839
|
() => h("span", {
|
|
2840
2840
|
[x.html === !0 ? "innerHTML" : "textContent"]: x.label
|
|
2841
2841
|
})
|
|
2842
2842
|
)
|
|
2843
2843
|
));
|
|
2844
2844
|
let w = re("div", ut.value.map(o));
|
|
2845
|
-
return t["before-options"] !== void 0 && (w = t["before-options"]().concat(w)),
|
|
2845
|
+
return t["before-options"] !== void 0 && (w = t["before-options"]().concat(w)), Hl(t["after-options"], w);
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function pn(o, w) {
|
|
2848
2848
|
const x = w === !0 ? { ...ot.value, ...s.splitAttrs.attributes.value } : void 0, $ = {
|
|
2849
2849
|
ref: w === !0 ? B : void 0,
|
|
2850
2850
|
key: "i_t",
|
|
@@ -2860,11 +2860,11 @@ const pu = be({
|
|
|
2860
2860
|
"data-autofocus": o === !0 || e.autofocus === !0 || void 0,
|
|
2861
2861
|
disabled: e.disable === !0,
|
|
2862
2862
|
readonly: e.readonly === !0,
|
|
2863
|
-
...
|
|
2863
|
+
...fn.value
|
|
2864
2864
|
};
|
|
2865
2865
|
return o !== !0 && m === !0 && (Array.isArray($.class) === !0 ? $.class = [...$.class, "no-pointer-events"] : $.class += " no-pointer-events"), h("input", $);
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2867
|
+
function nl(o) {
|
|
2868
2868
|
y !== null && (clearTimeout(y), y = null), C !== null && (clearTimeout(C), C = null), !(o && o.target && o.target.qComposing === !0) && (rt(o.target.value || ""), _ = !0, P = v.value, s.focused.value !== !0 && (m !== !0 || g.value === !0) && s.focus(), e.onFilter !== void 0 && (y = setTimeout(() => {
|
|
2869
2869
|
y = null, Le(v.value);
|
|
2870
2870
|
}, e.inputDebounce)));
|
|
@@ -2889,7 +2889,7 @@ const pu = be({
|
|
|
2889
2889
|
o,
|
|
2890
2890
|
(j, W) => {
|
|
2891
2891
|
(w === !0 || s.focused.value === !0) && S === $ && (clearTimeout(S), typeof j == "function" && j(), c.value = !1, ie(() => {
|
|
2892
|
-
s.innerLoading.value = !1, s.editable.value === !0 && (w === !0 ? u.value === !0 && _e() : u.value === !0 ?
|
|
2892
|
+
s.innerLoading.value = !1, s.editable.value === !0 && (w === !0 ? u.value === !0 && _e() : u.value === !0 ? Bt(!0) : u.value = !0), typeof W == "function" && ie(() => {
|
|
2893
2893
|
W(n);
|
|
2894
2894
|
}), typeof x == "function" && ie(() => {
|
|
2895
2895
|
x(n);
|
|
@@ -2901,8 +2901,8 @@ const pu = be({
|
|
|
2901
2901
|
}
|
|
2902
2902
|
);
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2905
|
-
return h(
|
|
2904
|
+
function bn() {
|
|
2905
|
+
return h(Jo, {
|
|
2906
2906
|
ref: L,
|
|
2907
2907
|
class: z.value,
|
|
2908
2908
|
style: e.popupContentStyle,
|
|
@@ -2917,35 +2917,35 @@ const pu = be({
|
|
|
2917
2917
|
noRefocus: !0,
|
|
2918
2918
|
noFocus: !0,
|
|
2919
2919
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
2920
|
-
square:
|
|
2920
|
+
square: Vt.value,
|
|
2921
2921
|
transitionShow: e.transitionShow,
|
|
2922
2922
|
transitionHide: e.transitionHide,
|
|
2923
2923
|
transitionDuration: e.transitionDuration,
|
|
2924
2924
|
separateClosePopup: !0,
|
|
2925
2925
|
...ke.value,
|
|
2926
2926
|
onScrollPassive: k,
|
|
2927
|
-
onBeforeShow:
|
|
2928
|
-
onBeforeHide:
|
|
2929
|
-
onShow:
|
|
2930
|
-
},
|
|
2927
|
+
onBeforeShow: ul,
|
|
2928
|
+
onBeforeHide: yn,
|
|
2929
|
+
onShow: Sn
|
|
2930
|
+
}, ll);
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2933
|
-
|
|
2932
|
+
function yn(o) {
|
|
2933
|
+
il(o), Oe();
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function Sn() {
|
|
2936
2936
|
se();
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function wn(o) {
|
|
2939
2939
|
De(o), B.value !== null && B.value.focus(), g.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function xn(o) {
|
|
2942
2942
|
De(o), ie(() => {
|
|
2943
2943
|
g.value = !1;
|
|
2944
2944
|
});
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function Cn() {
|
|
2947
2947
|
const o = [
|
|
2948
|
-
h(
|
|
2948
|
+
h(Co, {
|
|
2949
2949
|
class: `col-auto ${s.fieldClass.value}`,
|
|
2950
2950
|
...O.value,
|
|
2951
2951
|
for: s.targetUid.value,
|
|
@@ -2956,8 +2956,8 @@ const pu = be({
|
|
|
2956
2956
|
filled: !0,
|
|
2957
2957
|
stackLabel: v.value.length !== 0,
|
|
2958
2958
|
...s.splitAttrs.listeners.value,
|
|
2959
|
-
onFocus:
|
|
2960
|
-
onBlur:
|
|
2959
|
+
onFocus: wn,
|
|
2960
|
+
onBlur: xn
|
|
2961
2961
|
}, {
|
|
2962
2962
|
...t,
|
|
2963
2963
|
rawControl: () => s.getControl(!0),
|
|
@@ -2973,8 +2973,8 @@ const pu = be({
|
|
|
2973
2973
|
...ke.value,
|
|
2974
2974
|
onClick: pe,
|
|
2975
2975
|
onScrollPassive: k
|
|
2976
|
-
},
|
|
2977
|
-
), h(
|
|
2976
|
+
}, ll())
|
|
2977
|
+
), h(iu, {
|
|
2978
2978
|
ref: H,
|
|
2979
2979
|
modelValue: i.value,
|
|
2980
2980
|
position: e.useInput === !0 ? "top" : void 0,
|
|
@@ -2982,23 +2982,23 @@ const pu = be({
|
|
|
2982
2982
|
transitionHide: e.transitionHide,
|
|
2983
2983
|
transitionDuration: e.transitionDuration,
|
|
2984
2984
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
2985
|
-
onBeforeShow:
|
|
2986
|
-
onBeforeHide:
|
|
2987
|
-
onHide:
|
|
2988
|
-
onShow:
|
|
2985
|
+
onBeforeShow: ul,
|
|
2986
|
+
onBeforeHide: kn,
|
|
2987
|
+
onHide: qn,
|
|
2988
|
+
onShow: Vn
|
|
2989
2989
|
}, () => h("div", {
|
|
2990
2990
|
class: "q-select__dialog" + (V.value === !0 ? " q-select__dialog--dark q-dark" : "") + (g.value === !0 ? " q-select__dialog--focused" : "")
|
|
2991
2991
|
}, o));
|
|
2992
2992
|
}
|
|
2993
|
-
function
|
|
2994
|
-
|
|
2993
|
+
function kn(o) {
|
|
2994
|
+
il(o), H.value !== null && H.value.__updateRefocusTarget(
|
|
2995
2995
|
s.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
2996
2996
|
), s.focused.value = !1;
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function qn(o) {
|
|
2999
2999
|
_e(), s.focused.value === !1 && l("blur", o), He();
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function Vn() {
|
|
3002
3002
|
const o = document.activeElement;
|
|
3003
3003
|
(o === null || o.id !== s.targetUid.value) && B.value !== null && B.value !== o && B.value.focus(), se();
|
|
3004
3004
|
}
|
|
@@ -3020,7 +3020,7 @@ const pu = be({
|
|
|
3020
3020
|
!0
|
|
3021
3021
|
);
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3023
|
+
function Bt(o) {
|
|
3024
3024
|
let w = -1;
|
|
3025
3025
|
if (o === !0) {
|
|
3026
3026
|
if (p.value.length !== 0) {
|
|
@@ -3031,39 +3031,39 @@ const pu = be({
|
|
|
3031
3031
|
}
|
|
3032
3032
|
Me(w);
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3034
|
+
function _n(o, w) {
|
|
3035
3035
|
u.value === !0 && s.innerLoading.value === !1 && (X(-1, !0), ie(() => {
|
|
3036
|
-
u.value === !0 && s.innerLoading.value === !1 && (o > w ? X() :
|
|
3036
|
+
u.value === !0 && s.innerLoading.value === !1 && (o > w ? X() : Bt(!0));
|
|
3037
3037
|
}));
|
|
3038
3038
|
}
|
|
3039
|
-
function
|
|
3039
|
+
function ol() {
|
|
3040
3040
|
i.value === !1 && L.value !== null && L.value.updatePosition();
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function ul(o) {
|
|
3043
3043
|
o !== void 0 && De(o), l("popupShow", o), s.hasPopupOpen = !0, s.onControlFocusin(o);
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function il(o) {
|
|
3046
3046
|
o !== void 0 && De(o), l("popupHide", o), s.hasPopupOpen = !1, s.onControlFocusout(o);
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
3048
|
+
function al() {
|
|
3049
3049
|
m = a.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || N.value === !1 : !0), E = a.platform.is.ios === !0 && m === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
3050
3050
|
}
|
|
3051
|
-
return
|
|
3051
|
+
return Ll(al), Rn(ol), al(), ce(() => {
|
|
3052
3052
|
y !== null && clearTimeout(y), C !== null && clearTimeout(C);
|
|
3053
3053
|
}), Object.assign(n, {
|
|
3054
3054
|
showPopup: Ie,
|
|
3055
3055
|
hidePopup: _e,
|
|
3056
|
-
removeAtIndex:
|
|
3057
|
-
add:
|
|
3056
|
+
removeAtIndex: _t,
|
|
3057
|
+
add: Xt,
|
|
3058
3058
|
toggleOption: Ve,
|
|
3059
3059
|
getOptionIndex: () => d.value,
|
|
3060
3060
|
setOptionIndex: Me,
|
|
3061
3061
|
moveOptionSelection: at,
|
|
3062
3062
|
filter: Le,
|
|
3063
|
-
updateMenuPosition:
|
|
3063
|
+
updateMenuPosition: ol,
|
|
3064
3064
|
updateInputValue: Qe,
|
|
3065
|
-
isOptionSelected:
|
|
3066
|
-
getEmittingOptionValue:
|
|
3065
|
+
isOptionSelected: Et,
|
|
3066
|
+
getEmittingOptionValue: Ut,
|
|
3067
3067
|
isOptionDisabled: (...o) => Fe.value.apply(null, o) === !0,
|
|
3068
3068
|
getOptionValue: (...o) => he.value.apply(null, o),
|
|
3069
3069
|
getOptionLabel: (...o) => ue.value.apply(null, o)
|
|
@@ -3077,11 +3077,11 @@ const pu = be({
|
|
|
3077
3077
|
hasValue: I,
|
|
3078
3078
|
showPopup: Ie,
|
|
3079
3079
|
floatingLabel: f(
|
|
3080
|
-
() => e.hideSelected !== !0 && I.value === !0 || typeof v.value == "number" || v.value.length !== 0 ||
|
|
3080
|
+
() => e.hideSelected !== !0 && I.value === !0 || typeof v.value == "number" || v.value.length !== 0 || jt(e.displayValue)
|
|
3081
3081
|
),
|
|
3082
3082
|
getControlChild: () => {
|
|
3083
3083
|
if (s.editable.value !== !1 && (i.value === !0 || N.value !== !0 || t["no-option"] !== void 0))
|
|
3084
|
-
return m === !0 ?
|
|
3084
|
+
return m === !0 ? Cn() : bn();
|
|
3085
3085
|
s.hasPopupOpen === !0 && (s.hasPopupOpen = !1);
|
|
3086
3086
|
},
|
|
3087
3087
|
controlEvents: {
|
|
@@ -3102,9 +3102,9 @@ const pu = be({
|
|
|
3102
3102
|
}
|
|
3103
3103
|
},
|
|
3104
3104
|
getControl: (o) => {
|
|
3105
|
-
const w =
|
|
3105
|
+
const w = gn(), x = o === !0 || i.value !== !0 || m !== !0;
|
|
3106
3106
|
if (e.useInput === !0)
|
|
3107
|
-
w.push(
|
|
3107
|
+
w.push(pn(o, x));
|
|
3108
3108
|
else if (s.editable.value === !0) {
|
|
3109
3109
|
const j = x === !0 ? ot.value : void 0;
|
|
3110
3110
|
w.push(
|
|
@@ -3117,16 +3117,16 @@ const pu = be({
|
|
|
3117
3117
|
readonly: !0,
|
|
3118
3118
|
"data-autofocus": o === !0 || e.autofocus === !0 || void 0,
|
|
3119
3119
|
...j,
|
|
3120
|
-
onKeydown:
|
|
3121
|
-
onKeyup:
|
|
3122
|
-
onKeypress:
|
|
3120
|
+
onKeydown: el,
|
|
3121
|
+
onKeyup: Gt,
|
|
3122
|
+
onKeypress: Jt
|
|
3123
3123
|
})
|
|
3124
3124
|
), x === !0 && typeof e.autocomplete == "string" && e.autocomplete.length !== 0 && w.push(
|
|
3125
3125
|
h("input", {
|
|
3126
3126
|
class: "q-select__autocomplete-input",
|
|
3127
3127
|
autocomplete: e.autocomplete,
|
|
3128
3128
|
tabindex: -1,
|
|
3129
|
-
onKeyup:
|
|
3129
|
+
onKeyup: Zt
|
|
3130
3130
|
})
|
|
3131
3131
|
);
|
|
3132
3132
|
}
|
|
@@ -3153,9 +3153,9 @@ const pu = be({
|
|
|
3153
3153
|
name: Ne.value
|
|
3154
3154
|
})
|
|
3155
3155
|
] : null
|
|
3156
|
-
}),
|
|
3156
|
+
}), Zl(s);
|
|
3157
3157
|
}
|
|
3158
|
-
}),
|
|
3158
|
+
}), yu = { class: "app-select__amount" }, Su = /* @__PURE__ */ zn({
|
|
3159
3159
|
__name: "AppSelect",
|
|
3160
3160
|
props: {
|
|
3161
3161
|
modelValue: {},
|
|
@@ -3193,9 +3193,9 @@ const pu = be({
|
|
|
3193
3193
|
(r) => r.label.toLowerCase().includes(u.value.toLowerCase())
|
|
3194
3194
|
) : l.options), c = f(() => {
|
|
3195
3195
|
if (l.rules)
|
|
3196
|
-
return l.required ? [...l.rules,
|
|
3196
|
+
return l.required ? [...l.rules, dl] : l.rules;
|
|
3197
3197
|
if (l.required)
|
|
3198
|
-
return [
|
|
3198
|
+
return [dl];
|
|
3199
3199
|
}), y = () => {
|
|
3200
3200
|
i.value = void 0;
|
|
3201
3201
|
}, C = (r, m) => {
|
|
@@ -3203,124 +3203,129 @@ const pu = be({
|
|
|
3203
3203
|
u.value = r;
|
|
3204
3204
|
});
|
|
3205
3205
|
};
|
|
3206
|
-
return (r, m) => (de(),
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
}, Ue(r.required ? `${r.label} *` : r.label), 3)) : Pe("", !0),
|
|
3213
|
-
Xe(zn(pu), {
|
|
3214
|
-
standout: "",
|
|
3215
|
-
"hide-bottom-space": "",
|
|
3216
|
-
"hide-dropdown-icon": "",
|
|
3217
|
-
"no-error-icon": "",
|
|
3218
|
-
behavior: "menu",
|
|
3219
|
-
"popup-content-class": `app-select-menu app-select-menu_${r.size}`,
|
|
3220
|
-
placeholder: r.filtering && "Почніть вводити",
|
|
3221
|
-
"input-debounce": "50",
|
|
3222
|
-
modelValue: i.value,
|
|
3223
|
-
"onUpdate:modelValue": m[0] || (m[0] = (_) => i.value = _),
|
|
3224
|
-
options: g.value,
|
|
3225
|
-
multiple: r.multiple,
|
|
3226
|
-
"use-input": r.filtering && (Array.isArray(i.value) || !i.value),
|
|
3227
|
-
rules: c.value,
|
|
3228
|
-
"lazy-rules": r.lazyRules,
|
|
3229
|
-
autofocus: r.autofocus,
|
|
3230
|
-
disable: r.disabled,
|
|
3231
|
-
loading: r.loading,
|
|
3232
|
-
onFilter: C,
|
|
3233
|
-
onPopupShow: m[1] || (m[1] = (_) => a.value = !0),
|
|
3234
|
-
onPopupHide: m[2] || (m[2] = (_) => a.value = !1)
|
|
3235
|
-
}, {
|
|
3236
|
-
append: xe(() => [
|
|
3237
|
-
v.value ? (de(), ye("i", {
|
|
3206
|
+
return (r, m) => (de(), Tt(rl(eo), null, {
|
|
3207
|
+
default: ye(() => [
|
|
3208
|
+
st("div", {
|
|
3209
|
+
class: ct(["app-select", [{ "app-select_opened": a.value }, `app-select_${r.size}`]])
|
|
3210
|
+
}, [
|
|
3211
|
+
r.label ? (de(), xe("label", {
|
|
3238
3212
|
key: 0,
|
|
3239
|
-
class: "
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3213
|
+
class: ct(["app-select__label", { "app-select__label_bold": r.required }])
|
|
3214
|
+
}, Ue(r.required ? `${r.label} *` : r.label), 3)) : Pe("", !0),
|
|
3215
|
+
Xe(rl(bu), {
|
|
3216
|
+
standout: "",
|
|
3217
|
+
"hide-bottom-space": "",
|
|
3218
|
+
"hide-dropdown-icon": "",
|
|
3219
|
+
"no-error-icon": "",
|
|
3220
|
+
behavior: "menu",
|
|
3221
|
+
"popup-content-class": `app-select-menu app-select-menu_${r.size}`,
|
|
3222
|
+
placeholder: r.filtering && "Почніть вводити",
|
|
3223
|
+
"input-debounce": "50",
|
|
3224
|
+
modelValue: i.value,
|
|
3225
|
+
"onUpdate:modelValue": m[0] || (m[0] = (_) => i.value = _),
|
|
3226
|
+
options: g.value,
|
|
3227
|
+
multiple: r.multiple,
|
|
3228
|
+
"use-input": r.filtering && (Array.isArray(i.value) || !i.value),
|
|
3229
|
+
rules: c.value,
|
|
3230
|
+
"lazy-rules": r.lazyRules,
|
|
3231
|
+
autofocus: r.autofocus,
|
|
3232
|
+
disable: r.disabled,
|
|
3233
|
+
loading: r.loading,
|
|
3234
|
+
onFilter: C,
|
|
3235
|
+
onPopupShow: m[1] || (m[1] = (_) => a.value = !0),
|
|
3236
|
+
onPopupHide: m[2] || (m[2] = (_) => a.value = !1)
|
|
3237
|
+
}, {
|
|
3238
|
+
append: ye(() => [
|
|
3239
|
+
v.value ? (de(), xe("i", {
|
|
3249
3240
|
key: 0,
|
|
3250
|
-
class:
|
|
3251
|
-
|
|
3252
|
-
{
|
|
3253
|
-
"app-select__placeholder": !((_ = i.value) != null && _.length) && r.placeholder
|
|
3254
|
-
}
|
|
3255
|
-
])
|
|
3256
|
-
}, [
|
|
3257
|
-
(S = i.value) != null && S.length ? (de(), ye(ct, { key: 0 }, [
|
|
3258
|
-
m[4] || (m[4] = Tt(" Вибрано ")),
|
|
3259
|
-
At("span", bu, Ue(i.value.length), 1)
|
|
3260
|
-
], 64)) : (de(), ye(ct, { key: 1 }, [
|
|
3261
|
-
Tt(Ue(l.placeholder), 1)
|
|
3262
|
-
], 64))
|
|
3263
|
-
], 2)) : Pe("", !0)
|
|
3264
|
-
], 64)) : (de(), ye(ct, { key: 1 }, [
|
|
3265
|
-
!r.filtering || i.value ? (de(), ye("span", {
|
|
3266
|
-
key: 0,
|
|
3267
|
-
class: st([
|
|
3268
|
-
"app-select__selected",
|
|
3269
|
-
{ "app-select__placeholder": !i.value && r.placeholder }
|
|
3270
|
-
])
|
|
3271
|
-
}, Ue(d.value), 3)) : Pe("", !0)
|
|
3272
|
-
], 64))
|
|
3273
|
-
];
|
|
3274
|
-
}),
|
|
3275
|
-
option: xe((_) => [
|
|
3276
|
-
Xe(Kl, Fn({
|
|
3277
|
-
class: ["app-select__option", { "app-select__option_selected": _.selected }]
|
|
3278
|
-
}, _.itemProps), {
|
|
3279
|
-
default: xe(() => [
|
|
3280
|
-
l.multiple ? (de(), al(pt, {
|
|
3281
|
-
key: 0,
|
|
3282
|
-
class: "option-multiple",
|
|
3283
|
-
avatar: ""
|
|
3284
|
-
}, {
|
|
3285
|
-
default: xe(() => [
|
|
3286
|
-
Xe(ro, {
|
|
3287
|
-
size: "30px",
|
|
3288
|
-
"model-value": _.selected,
|
|
3289
|
-
"onUpdate:modelValue": () => _.toggleOption(_.opt)
|
|
3290
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
3291
|
-
]),
|
|
3292
|
-
_: 2
|
|
3293
|
-
}, 1024)) : Pe("", !0),
|
|
3294
|
-
_.opt.done ? (de(), al(pt, {
|
|
3295
|
-
key: 1,
|
|
3296
|
-
class: "option-done",
|
|
3297
|
-
avatar: ""
|
|
3298
|
-
}, {
|
|
3299
|
-
default: xe(() => m[5] || (m[5] = [
|
|
3300
|
-
At("i", { class: "icon-kl icon-kl-check option-done__icon" }, null, -1)
|
|
3301
|
-
])),
|
|
3302
|
-
_: 1
|
|
3241
|
+
class: "icon-kl icon-kl-close app-select__clear",
|
|
3242
|
+
onClick: Mn(y, ["stop", "prevent"])
|
|
3303
3243
|
})) : Pe("", !0),
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3244
|
+
m[3] || (m[3] = st("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
|
|
3245
|
+
]),
|
|
3246
|
+
selected: ye(() => {
|
|
3247
|
+
var _, S;
|
|
3248
|
+
return [
|
|
3249
|
+
Array.isArray(i.value) ? (de(), xe(dt, { key: 0 }, [
|
|
3250
|
+
!r.filtering || i.value.length ? (de(), xe("span", {
|
|
3251
|
+
key: 0,
|
|
3252
|
+
class: ct([
|
|
3253
|
+
"app-select__selected",
|
|
3254
|
+
{
|
|
3255
|
+
"app-select__placeholder": !((_ = i.value) != null && _.length) && r.placeholder
|
|
3256
|
+
}
|
|
3257
|
+
])
|
|
3258
|
+
}, [
|
|
3259
|
+
(S = i.value) != null && S.length ? (de(), xe(dt, { key: 0 }, [
|
|
3260
|
+
m[4] || (m[4] = Rt(" Вибрано ")),
|
|
3261
|
+
st("span", yu, Ue(i.value.length), 1)
|
|
3262
|
+
], 64)) : (de(), xe(dt, { key: 1 }, [
|
|
3263
|
+
Rt(Ue(l.placeholder), 1)
|
|
3264
|
+
], 64))
|
|
3265
|
+
], 2)) : Pe("", !0)
|
|
3266
|
+
], 64)) : (de(), xe(dt, { key: 1 }, [
|
|
3267
|
+
!r.filtering || i.value ? (de(), xe("span", {
|
|
3268
|
+
key: 0,
|
|
3269
|
+
class: ct([
|
|
3270
|
+
"app-select__selected",
|
|
3271
|
+
{ "app-select__placeholder": !i.value && r.placeholder }
|
|
3272
|
+
])
|
|
3273
|
+
}, Ue(d.value), 3)) : Pe("", !0)
|
|
3274
|
+
], 64))
|
|
3275
|
+
];
|
|
3276
|
+
}),
|
|
3277
|
+
option: ye((_) => [
|
|
3278
|
+
Xe(Ql, Fn({
|
|
3279
|
+
class: ["app-select__option", { "app-select__option_selected": _.selected }]
|
|
3280
|
+
}, _.itemProps), {
|
|
3281
|
+
default: ye(() => [
|
|
3282
|
+
l.multiple ? (de(), Tt(bt, {
|
|
3283
|
+
key: 0,
|
|
3284
|
+
class: "option-multiple",
|
|
3285
|
+
avatar: ""
|
|
3286
|
+
}, {
|
|
3287
|
+
default: ye(() => [
|
|
3288
|
+
Xe(so, {
|
|
3289
|
+
size: "30px",
|
|
3290
|
+
"model-value": _.selected,
|
|
3291
|
+
"onUpdate:modelValue": () => _.toggleOption(_.opt)
|
|
3292
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
3293
|
+
]),
|
|
3294
|
+
_: 2
|
|
3295
|
+
}, 1024)) : Pe("", !0),
|
|
3296
|
+
_.opt.done ? (de(), Tt(bt, {
|
|
3297
|
+
key: 1,
|
|
3298
|
+
class: "option-done",
|
|
3299
|
+
avatar: ""
|
|
3300
|
+
}, {
|
|
3301
|
+
default: ye(() => m[5] || (m[5] = [
|
|
3302
|
+
st("i", { class: "icon-kl icon-kl-check option-done__icon" }, null, -1)
|
|
3303
|
+
])),
|
|
3304
|
+
_: 1
|
|
3305
|
+
})) : Pe("", !0),
|
|
3306
|
+
Xe(bt, null, {
|
|
3307
|
+
default: ye(() => [
|
|
3308
|
+
Xe(Kl, null, {
|
|
3309
|
+
default: ye(() => [
|
|
3310
|
+
Rt(Ue(_.opt.label), 1)
|
|
3311
|
+
]),
|
|
3312
|
+
_: 2
|
|
3313
|
+
}, 1024)
|
|
3309
3314
|
]),
|
|
3310
3315
|
_: 2
|
|
3311
3316
|
}, 1024)
|
|
3312
3317
|
]),
|
|
3313
3318
|
_: 2
|
|
3314
|
-
},
|
|
3319
|
+
}, 1040, ["class"])
|
|
3315
3320
|
]),
|
|
3316
|
-
_:
|
|
3317
|
-
},
|
|
3318
|
-
])
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
}
|
|
3323
|
-
}),
|
|
3321
|
+
_: 1
|
|
3322
|
+
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
3323
|
+
], 2)
|
|
3324
|
+
]),
|
|
3325
|
+
_: 1
|
|
3326
|
+
}));
|
|
3327
|
+
}
|
|
3328
|
+
}), ku = /* @__PURE__ */ Gn(Su, [["__scopeId", "data-v-0f420510"]]);
|
|
3324
3329
|
export {
|
|
3325
|
-
|
|
3330
|
+
ku as default
|
|
3326
3331
|
};
|