@validol4ik/uikit 0.3.23 → 0.3.24
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/{index-CkDJagwx.cjs → AppButton-Bz5mz9Mx.cjs} +1 -1
- package/dist/{index-91CnFQLB.js → AppButton-DGne1Zdn.js} +26 -26
- package/dist/{index-3coIHqW5.js → AppButtonCopy-CWQXqXtn.js} +3 -3
- package/dist/AppButtonCopy-Vyc1hnYD.cjs +1 -0
- package/dist/AppIcon-Bupq345T.js +19 -0
- package/dist/AppIcon-CZ4SweU2.cjs +1 -0
- package/dist/{index-DuYpalwR.cjs → AppSelect-DVxNpiFx.cjs} +1 -1
- package/dist/{index-D-vCNV-C.js → AppSelect-DWfwIpXY.js} +506 -506
- package/dist/components-C9kjME7-.js +16 -0
- package/dist/components-TUA38xWT.cjs +1 -0
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
- package/dist/components-7V5uuTz1.js +0 -16
- package/dist/components-BEHCFgSt.cjs +0 -1
- package/dist/index-CK6Wk_S2.cjs +0 -1
- package/dist/index-DlTcPzc5.cjs +0 -1
- package/dist/index-vr4EEUVJ.js +0 -21
- /package/dist/types/components/AppIcon/{index.vue.d.ts → AppIcon.vue.d.ts} +0 -0
- /package/dist/types/components/buttons/AppButton/{index.vue.d.ts → AppButton.vue.d.ts} +0 -0
- /package/dist/types/components/buttons/CopyButton/{index.vue.d.ts → AppButtonCopy.vue.d.ts} +0 -0
- /package/dist/types/components/form/AppSelect/{index.vue.d.ts → AppSelect.vue.d.ts} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as f, ref as T, h, getCurrentInstance as le, toRaw as $e, onMounted as tt, watch as K, onBeforeUpdate as Ml, inject as
|
|
2
|
-
import { u as Ol, s as ae, h as Il, g as Se, c as Hl, d as be, Q as Ae, a as
|
|
3
|
-
import { i as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { computed as f, ref as T, h, getCurrentInstance as le, toRaw as $e, onMounted as tt, watch as K, onBeforeUpdate as Ml, inject as _o, onBeforeUnmount as ce, nextTick as ue, onDeactivated as Ct, onActivated as Ll, Transition as bt, onUnmounted as Eo, Teleport as Bo, onBeforeMount as Ao, onUpdated as To, defineComponent as Ro, openBlock as de, createElementBlock as ye, normalizeClass as st, toDisplayString as Ue, createCommentVNode as Pe, createVNode as Xe, unref as zo, withCtx as xe, mergeProps as Fo, createBlock as al, createElementVNode as At, createTextVNode as Tt, Fragment as ct, withModifiers as Mo } from "vue";
|
|
2
|
+
import { u as Ol, s as ae, h as Il, g as Se, c as Hl, d as be, Q as Ae, a as Lo, i as kt, j as Oo, k as Io, p as pe, f as Ho, m as $o, R as Po, n as Do, o as rl, q as Wo, l as ge, v as jo, r as Rt, t as $l, w as No, x as sl, y as Ko, z as Pl, A as Qo, B as Uo, e as De, D as Xo, S as Yo } from "./use-router-link-BgNwCOFX.js";
|
|
3
|
+
import { i as Go, b as Dl, P as Zo, c as we, r as Pt, a as Wl } from "./focusout-DjvPXP_b.js";
|
|
4
|
+
import { _ as Jo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const lt = {
|
|
6
6
|
dark: {
|
|
7
7
|
type: Boolean,
|
|
8
8
|
default: null
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function ot(e, t) {
|
|
12
12
|
return f(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const l = T(null),
|
|
14
|
+
function en(e, t) {
|
|
15
|
+
const l = T(null), o = f(() => e.disable === !0 ? null : h("span", {
|
|
16
16
|
ref: l,
|
|
17
17
|
class: "no-outline",
|
|
18
18
|
tabindex: -1
|
|
@@ -22,33 +22,33 @@ function eo(e, t) {
|
|
|
22
22
|
i !== void 0 && i.type.indexOf("key") === 0 ? u !== null && document.activeElement !== u && u.contains(document.activeElement) === !0 && u.focus() : l.value !== null && (i === void 0 || u !== null && u.contains(i.target) === !0) && l.value.focus();
|
|
23
23
|
}
|
|
24
24
|
return {
|
|
25
|
-
refocusTargetEl:
|
|
25
|
+
refocusTargetEl: o,
|
|
26
26
|
refocusTarget: a
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
const jl = {
|
|
30
30
|
name: String
|
|
31
31
|
};
|
|
32
|
-
function
|
|
33
|
-
return (t, l,
|
|
32
|
+
function tn(e = {}) {
|
|
33
|
+
return (t, l, o) => {
|
|
34
34
|
t[l](
|
|
35
35
|
h("input", {
|
|
36
|
-
class: "hidden" + (
|
|
36
|
+
class: "hidden" + (o || ""),
|
|
37
37
|
...e.value
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ln(e) {
|
|
43
43
|
return f(() => e.name || e.for);
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const on = {
|
|
46
46
|
xs: 30,
|
|
47
47
|
sm: 35,
|
|
48
48
|
md: 40,
|
|
49
49
|
lg: 50,
|
|
50
50
|
xl: 60
|
|
51
|
-
},
|
|
51
|
+
}, nn = {
|
|
52
52
|
...lt,
|
|
53
53
|
...Hl,
|
|
54
54
|
...jl,
|
|
@@ -75,9 +75,9 @@ const no = {
|
|
|
75
75
|
dense: Boolean,
|
|
76
76
|
disable: Boolean,
|
|
77
77
|
tabindex: [String, Number]
|
|
78
|
-
},
|
|
79
|
-
function
|
|
80
|
-
const { props: l, slots:
|
|
78
|
+
}, un = ["update:modelValue"];
|
|
79
|
+
function an(e, t) {
|
|
80
|
+
const { props: l, slots: o, emit: a, proxy: i } = le(), { $q: u } = i, d = ot(l, u), v = T(null), { refocusTargetEl: g, refocusTarget: c } = en(l, v), y = Ol(l, on), C = f(
|
|
81
81
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
82
82
|
), r = f(() => {
|
|
83
83
|
const A = $e(l.val);
|
|
@@ -98,7 +98,7 @@ function uo(e, t) {
|
|
|
98
98
|
name: l.name,
|
|
99
99
|
value: C.value === !0 ? l.val : l.trueValue
|
|
100
100
|
}), A;
|
|
101
|
-
}), D =
|
|
101
|
+
}), D = tn(R), B = f(() => {
|
|
102
102
|
const A = {
|
|
103
103
|
tabindex: P.value,
|
|
104
104
|
role: "checkbox",
|
|
@@ -134,9 +134,9 @@ function uo(e, t) {
|
|
|
134
134
|
function G(A) {
|
|
135
135
|
(A.keyCode === 13 || A.keyCode === 32) && L(A);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const oe = t(m, S);
|
|
138
138
|
return Object.assign(i, { toggle: L }), () => {
|
|
139
|
-
const A =
|
|
139
|
+
const A = oe();
|
|
140
140
|
l.disable !== !0 && D(
|
|
141
141
|
A,
|
|
142
142
|
"unshift",
|
|
@@ -150,11 +150,11 @@ function uo(e, t) {
|
|
|
150
150
|
}, A)
|
|
151
151
|
];
|
|
152
152
|
g.value !== null && U.push(g.value);
|
|
153
|
-
const
|
|
154
|
-
return
|
|
153
|
+
const ne = l.label !== void 0 ? Il(o.default, [l.label]) : Se(o.default);
|
|
154
|
+
return ne !== void 0 && U.push(
|
|
155
155
|
h("div", {
|
|
156
156
|
class: `q-${e}__label q-anchor--skip`
|
|
157
|
-
},
|
|
157
|
+
}, ne)
|
|
158
158
|
), h("div", {
|
|
159
159
|
ref: v,
|
|
160
160
|
class: E.value,
|
|
@@ -165,7 +165,7 @@ function uo(e, t) {
|
|
|
165
165
|
}, U);
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const rn = () => h("div", {
|
|
169
169
|
key: "svg",
|
|
170
170
|
class: "q-checkbox__bg absolute"
|
|
171
171
|
}, [
|
|
@@ -183,15 +183,15 @@ const ao = () => h("div", {
|
|
|
183
183
|
d: "M4,14H20V10H4"
|
|
184
184
|
})
|
|
185
185
|
])
|
|
186
|
-
]),
|
|
186
|
+
]), sn = be({
|
|
187
187
|
name: "QCheckbox",
|
|
188
|
-
props:
|
|
189
|
-
emits:
|
|
188
|
+
props: nn,
|
|
189
|
+
emits: un,
|
|
190
190
|
setup(e) {
|
|
191
|
-
const t =
|
|
192
|
-
function l(
|
|
191
|
+
const t = rn();
|
|
192
|
+
function l(o, a) {
|
|
193
193
|
const i = f(
|
|
194
|
-
() => (
|
|
194
|
+
() => (o.value === !0 ? e.checkedIcon : a.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
195
195
|
);
|
|
196
196
|
return () => i.value !== null ? [
|
|
197
197
|
h("div", {
|
|
@@ -205,7 +205,7 @@ const ao = () => h("div", {
|
|
|
205
205
|
])
|
|
206
206
|
] : [t];
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return an("checkbox", l);
|
|
209
209
|
}
|
|
210
210
|
}), pt = be({
|
|
211
211
|
name: "QItemSection",
|
|
@@ -231,7 +231,7 @@ const ao = () => h("div", {
|
|
|
231
231
|
lines: [Number, String]
|
|
232
232
|
},
|
|
233
233
|
setup(e, { slots: t }) {
|
|
234
|
-
const l = f(() => parseInt(e.lines, 10)),
|
|
234
|
+
const l = f(() => parseInt(e.lines, 10)), o = f(
|
|
235
235
|
() => "q-item__label" + (e.overline === !0 ? " q-item__label--overline text-overline" : "") + (e.caption === !0 ? " q-item__label--caption text-caption" : "") + (e.header === !0 ? " q-item__label--header" : "") + (l.value === 1 ? " ellipsis" : "")
|
|
236
236
|
), a = f(() => e.lines !== void 0 && l.value > 1 ? {
|
|
237
237
|
overflow: "hidden",
|
|
@@ -241,14 +241,14 @@ const ao = () => h("div", {
|
|
|
241
241
|
} : null);
|
|
242
242
|
return () => h("div", {
|
|
243
243
|
style: a.value,
|
|
244
|
-
class:
|
|
244
|
+
class: o.value
|
|
245
245
|
}, Se(t.default));
|
|
246
246
|
}
|
|
247
247
|
}), Kl = be({
|
|
248
248
|
name: "QItem",
|
|
249
249
|
props: {
|
|
250
250
|
...lt,
|
|
251
|
-
...
|
|
251
|
+
...Io,
|
|
252
252
|
tag: {
|
|
253
253
|
type: String,
|
|
254
254
|
default: "div"
|
|
@@ -266,14 +266,14 @@ const ao = () => h("div", {
|
|
|
266
266
|
},
|
|
267
267
|
emits: ["click", "keyup"],
|
|
268
268
|
setup(e, { slots: t, emit: l }) {
|
|
269
|
-
const { proxy: { $q:
|
|
269
|
+
const { proxy: { $q: o } } = le(), a = ot(e, o), { hasLink: i, linkAttrs: u, linkClass: d, linkTag: v, navigateOnClick: g } = Lo(), c = T(null), y = T(null), C = f(
|
|
270
270
|
() => e.clickable === !0 || i.value === !0 || e.tag === "label"
|
|
271
271
|
), r = f(
|
|
272
272
|
() => e.disable !== !0 && C.value === !0
|
|
273
273
|
), m = f(
|
|
274
274
|
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (a.value === !0 ? " q-item--dark" : "") + (i.value === !0 && e.active === null ? d.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (r.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")
|
|
275
275
|
), _ = f(() => e.insetLevel === void 0 ? null : {
|
|
276
|
-
["padding" + (
|
|
276
|
+
["padding" + (o.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
277
277
|
});
|
|
278
278
|
function S(q) {
|
|
279
279
|
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));
|
|
@@ -287,7 +287,7 @@ const ao = () => h("div", {
|
|
|
287
287
|
l("keyup", q);
|
|
288
288
|
}
|
|
289
289
|
function E() {
|
|
290
|
-
const q =
|
|
290
|
+
const q = Oo(t.default, []);
|
|
291
291
|
return r.value === !0 && q.unshift(
|
|
292
292
|
h("div", { class: "q-focus-helper", tabindex: -1, ref: y })
|
|
293
293
|
), q;
|
|
@@ -313,7 +313,7 @@ let zt, dt = 0;
|
|
|
313
313
|
const ee = new Array(256);
|
|
314
314
|
for (let e = 0; e < 256; e++)
|
|
315
315
|
ee[e] = (e + 256).toString(16).substring(1);
|
|
316
|
-
const
|
|
316
|
+
const cn = (() => {
|
|
317
317
|
const e = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
|
|
318
318
|
if (e !== void 0) {
|
|
319
319
|
if (e.randomBytes !== void 0)
|
|
@@ -326,40 +326,40 @@ const so = (() => {
|
|
|
326
326
|
}
|
|
327
327
|
return (t) => {
|
|
328
328
|
const l = [];
|
|
329
|
-
for (let
|
|
329
|
+
for (let o = t; o > 0; o--)
|
|
330
330
|
l.push(Math.floor(Math.random() * 256));
|
|
331
331
|
return l;
|
|
332
332
|
};
|
|
333
333
|
})(), dl = 4096;
|
|
334
334
|
function Dt() {
|
|
335
|
-
(zt === void 0 || dt + 16 > dl) && (dt = 0, zt =
|
|
335
|
+
(zt === void 0 || dt + 16 > dl) && (dt = 0, zt = cn(dl));
|
|
336
336
|
const e = Array.prototype.slice.call(zt, dt, dt += 16);
|
|
337
337
|
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]];
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function dn(e) {
|
|
340
340
|
return e ?? null;
|
|
341
341
|
}
|
|
342
342
|
function fl(e, t) {
|
|
343
343
|
return e ?? (t === !0 ? `f_${Dt()}` : null);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
if (
|
|
347
|
-
const l = e !== void 0 ? T(
|
|
345
|
+
function fn({ getValue: e, required: t = !0 } = {}) {
|
|
346
|
+
if (Go.value === !0) {
|
|
347
|
+
const l = e !== void 0 ? T(dn(e())) : T(null);
|
|
348
348
|
return t === !0 && l.value === null && tt(() => {
|
|
349
349
|
l.value = `f_${Dt()}`;
|
|
350
|
-
}), e !== void 0 && K(e, (
|
|
351
|
-
l.value = fl(
|
|
350
|
+
}), e !== void 0 && K(e, (o) => {
|
|
351
|
+
l.value = fl(o, t);
|
|
352
352
|
}), l;
|
|
353
353
|
}
|
|
354
354
|
return e !== void 0 ? f(() => fl(e(), t)) : T(`f_${Dt()}`);
|
|
355
355
|
}
|
|
356
356
|
const vl = /^on[A-Z]/;
|
|
357
|
-
function
|
|
357
|
+
function vn() {
|
|
358
358
|
const { attrs: e, vnode: t } = le(), l = {
|
|
359
359
|
listeners: T({}),
|
|
360
360
|
attributes: T({})
|
|
361
361
|
};
|
|
362
|
-
function
|
|
362
|
+
function o() {
|
|
363
363
|
const a = {}, i = {};
|
|
364
364
|
for (const u in e)
|
|
365
365
|
u !== "class" && u !== "style" && vl.test(u) === !1 && (a[u] = e[u]);
|
|
@@ -367,19 +367,19 @@ function vo() {
|
|
|
367
367
|
vl.test(u) === !0 && (i[u] = t.props[u]);
|
|
368
368
|
l.attributes.value = a, l.listeners.value = i;
|
|
369
369
|
}
|
|
370
|
-
return Ml(
|
|
370
|
+
return Ml(o), o(), l;
|
|
371
371
|
}
|
|
372
|
-
const
|
|
373
|
-
function
|
|
374
|
-
const
|
|
375
|
-
if (
|
|
372
|
+
const mn = "_q_fo_";
|
|
373
|
+
function hn({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
374
|
+
const o = _o(mn, !1);
|
|
375
|
+
if (o !== !1) {
|
|
376
376
|
const { props: a, proxy: i } = le();
|
|
377
377
|
Object.assign(i, { validate: e, resetValidation: t }), K(() => a.disable, (u) => {
|
|
378
|
-
u === !0 ? (typeof t == "function" && t(),
|
|
378
|
+
u === !0 ? (typeof t == "function" && t(), o.unbindComponent(i)) : o.bindComponent(i);
|
|
379
379
|
}), tt(() => {
|
|
380
|
-
a.disable !== !0 &&
|
|
380
|
+
a.disable !== !0 && o.bindComponent(i);
|
|
381
381
|
}), ce(() => {
|
|
382
|
-
a.disable !== !0 &&
|
|
382
|
+
a.disable !== !0 && o.unbindComponent(i);
|
|
383
383
|
});
|
|
384
384
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
385
385
|
}
|
|
@@ -406,18 +406,18 @@ const ml = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, hl = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
406
406
|
anyColor: (e) => gl.test(e) || ft.test(e) || vt.test(e)
|
|
407
407
|
};
|
|
408
408
|
function Ql(e, t = 250, l) {
|
|
409
|
-
let
|
|
409
|
+
let o = null;
|
|
410
410
|
function a() {
|
|
411
411
|
const i = arguments, u = () => {
|
|
412
|
-
|
|
412
|
+
o = null, l !== !0 && e.apply(this, i);
|
|
413
413
|
};
|
|
414
|
-
|
|
414
|
+
o !== null ? clearTimeout(o) : l === !0 && e.apply(this, i), o = setTimeout(u, t);
|
|
415
415
|
}
|
|
416
416
|
return a.cancel = () => {
|
|
417
|
-
|
|
417
|
+
o !== null && clearTimeout(o);
|
|
418
418
|
}, a;
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const gn = [!0, !1, "ondemand"], pn = {
|
|
421
421
|
modelValue: {},
|
|
422
422
|
error: {
|
|
423
423
|
type: Boolean,
|
|
@@ -431,12 +431,12 @@ const go = [!0, !1, "ondemand"], po = {
|
|
|
431
431
|
type: [Boolean, String],
|
|
432
432
|
default: !1,
|
|
433
433
|
// statement unneeded but avoids future vue implementation changes
|
|
434
|
-
validator: (e) =>
|
|
434
|
+
validator: (e) => gn.includes(e)
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
|
-
function
|
|
438
|
-
const { props: l, proxy:
|
|
439
|
-
|
|
437
|
+
function bn(e, t) {
|
|
438
|
+
const { props: l, proxy: o } = le(), a = T(!1), i = T(null), u = T(!1);
|
|
439
|
+
hn({ validate: _, resetValidation: m });
|
|
440
440
|
let d = 0, v;
|
|
441
441
|
const g = f(
|
|
442
442
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
@@ -486,7 +486,7 @@ function bo(e, t) {
|
|
|
486
486
|
const S = Ql(_, 0);
|
|
487
487
|
return ce(() => {
|
|
488
488
|
v !== void 0 && v(), S.cancel();
|
|
489
|
-
}), Object.assign(
|
|
489
|
+
}), Object.assign(o, { resetValidation: m, validate: _ }), Dl(o, "hasError", () => y.value), {
|
|
490
490
|
isDirtyModel: u,
|
|
491
491
|
hasRules: g,
|
|
492
492
|
hasError: y,
|
|
@@ -499,7 +499,7 @@ let Be = [], et = [];
|
|
|
499
499
|
function Ul(e) {
|
|
500
500
|
et = et.filter((t) => t !== e);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function yn(e) {
|
|
503
503
|
Ul(e), et.push(e);
|
|
504
504
|
}
|
|
505
505
|
function pl(e) {
|
|
@@ -508,15 +508,15 @@ function pl(e) {
|
|
|
508
508
|
function Nt(e) {
|
|
509
509
|
et.length === 0 ? e() : Be.push(e);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Sn(e) {
|
|
512
512
|
Be = Be.filter((t) => t !== e);
|
|
513
513
|
}
|
|
514
514
|
function Wt(e) {
|
|
515
515
|
return e != null && ("" + e).length !== 0;
|
|
516
516
|
}
|
|
517
|
-
const
|
|
517
|
+
const wn = {
|
|
518
518
|
...lt,
|
|
519
|
-
...
|
|
519
|
+
...pn,
|
|
520
520
|
label: String,
|
|
521
521
|
stackLabel: Boolean,
|
|
522
522
|
hint: String,
|
|
@@ -546,26 +546,26 @@ const wo = {
|
|
|
546
546
|
autofocus: Boolean,
|
|
547
547
|
for: String
|
|
548
548
|
}, Kt = {
|
|
549
|
-
...
|
|
549
|
+
...wn,
|
|
550
550
|
maxlength: [Number, String]
|
|
551
551
|
}, Xl = ["update:modelValue", "clear", "focus", "blur"];
|
|
552
552
|
function Yl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
553
|
-
const { props:
|
|
553
|
+
const { props: o, proxy: a } = le(), i = ot(o, a.$q), u = fn({
|
|
554
554
|
required: e,
|
|
555
|
-
getValue: () =>
|
|
555
|
+
getValue: () => o.for
|
|
556
556
|
});
|
|
557
557
|
return {
|
|
558
558
|
requiredForAttr: e,
|
|
559
559
|
changeEvent: l,
|
|
560
|
-
tag: t === !0 ? f(() =>
|
|
560
|
+
tag: t === !0 ? f(() => o.tag) : { value: "label" },
|
|
561
561
|
isDark: i,
|
|
562
562
|
editable: f(
|
|
563
|
-
() =>
|
|
563
|
+
() => o.disable !== !0 && o.readonly !== !0
|
|
564
564
|
),
|
|
565
565
|
innerLoading: T(!1),
|
|
566
566
|
focused: T(!1),
|
|
567
567
|
hasPopupOpen: !1,
|
|
568
|
-
splitAttrs:
|
|
568
|
+
splitAttrs: vn(),
|
|
569
569
|
targetUid: u,
|
|
570
570
|
rootRef: T(null),
|
|
571
571
|
targetRef: T(null),
|
|
@@ -591,7 +591,7 @@ function Yl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
function Gl(e) {
|
|
594
|
-
const { props: t, emit: l, slots:
|
|
594
|
+
const { props: t, emit: l, slots: o, attrs: a, proxy: i } = le(), { $q: u } = i;
|
|
595
595
|
let d = null;
|
|
596
596
|
e.hasValue === void 0 && (e.hasValue = f(() => Wt(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (k) => {
|
|
597
597
|
l("update:modelValue", k);
|
|
@@ -599,7 +599,7 @@ function Gl(e) {
|
|
|
599
599
|
onFocusin: Q,
|
|
600
600
|
onFocusout: G
|
|
601
601
|
}), Object.assign(e, {
|
|
602
|
-
clearValue:
|
|
602
|
+
clearValue: oe,
|
|
603
603
|
onControlFocusin: Q,
|
|
604
604
|
onControlFocusout: G,
|
|
605
605
|
focus: L
|
|
@@ -615,7 +615,7 @@ function Gl(e) {
|
|
|
615
615
|
hasError: c,
|
|
616
616
|
errorMessage: y,
|
|
617
617
|
resetValidation: C
|
|
618
|
-
} =
|
|
618
|
+
} = bn(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(
|
|
619
619
|
() => t.bottomSlots === !0 || t.hint !== void 0 || g.value === !0 || t.counter === !0 || t.error !== null
|
|
620
620
|
), _ = f(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), S = f(
|
|
621
621
|
() => `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" : "")
|
|
@@ -645,7 +645,7 @@ function Gl(e) {
|
|
|
645
645
|
Nt(B);
|
|
646
646
|
}
|
|
647
647
|
function H() {
|
|
648
|
-
|
|
648
|
+
Sn(B);
|
|
649
649
|
const k = document.activeElement;
|
|
650
650
|
k !== null && e.rootRef.value.contains(k) && k.blur();
|
|
651
651
|
}
|
|
@@ -657,27 +657,27 @@ function Gl(e) {
|
|
|
657
657
|
d = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, l("blur", k)), M !== void 0 && M());
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function oe(k) {
|
|
661
661
|
ae(k), u.platform.is.mobile !== !0 ? (e.targetRef !== void 0 && e.targetRef.value || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), t.type === "file" && (e.inputRef.value.value = null), l("update:modelValue", null), e.changeEvent === !0 && l("change", null), l("clear", t.modelValue), ue(() => {
|
|
662
662
|
const M = v.value;
|
|
663
663
|
C(), v.value = M;
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
function A(k) {
|
|
667
|
-
[13, 32].includes(k.keyCode) &&
|
|
667
|
+
[13, 32].includes(k.keyCode) && oe(k);
|
|
668
668
|
}
|
|
669
669
|
function U() {
|
|
670
670
|
const k = [];
|
|
671
|
-
return
|
|
671
|
+
return o.prepend !== void 0 && k.push(
|
|
672
672
|
h("div", {
|
|
673
673
|
class: "q-field__prepend q-field__marginal row no-wrap items-center",
|
|
674
674
|
key: "prepend",
|
|
675
675
|
onClick: pe
|
|
676
|
-
},
|
|
676
|
+
}, o.prepend())
|
|
677
677
|
), k.push(
|
|
678
678
|
h("div", {
|
|
679
679
|
class: "q-field__control-container col relative-position row no-wrap q-anchor--skip"
|
|
680
|
-
},
|
|
680
|
+
}, ne())
|
|
681
681
|
), c.value === !0 && t.noErrorIcon === !1 && k.push(
|
|
682
682
|
X("error", [
|
|
683
683
|
h(Ae, { name: u.iconSet.field.error, color: "negative" })
|
|
@@ -685,7 +685,7 @@ function Gl(e) {
|
|
|
685
685
|
), t.loading === !0 || e.innerLoading.value === !0 ? k.push(
|
|
686
686
|
X(
|
|
687
687
|
"inner-loading-append",
|
|
688
|
-
|
|
688
|
+
o.loading !== void 0 ? o.loading() : [h(Ho, { color: t.color })]
|
|
689
689
|
)
|
|
690
690
|
) : t.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && k.push(
|
|
691
691
|
X("inner-clearable-append", [
|
|
@@ -697,22 +697,22 @@ function Gl(e) {
|
|
|
697
697
|
"aria-hidden": "false",
|
|
698
698
|
"aria-label": u.lang.label.clear,
|
|
699
699
|
onKeyup: A,
|
|
700
|
-
onClick:
|
|
700
|
+
onClick: oe
|
|
701
701
|
})
|
|
702
702
|
])
|
|
703
|
-
),
|
|
703
|
+
), o.append !== void 0 && k.push(
|
|
704
704
|
h("div", {
|
|
705
705
|
class: "q-field__append q-field__marginal row no-wrap items-center",
|
|
706
706
|
key: "append",
|
|
707
707
|
onClick: pe
|
|
708
|
-
},
|
|
708
|
+
}, o.append())
|
|
709
709
|
), e.getInnerAppend !== void 0 && k.push(
|
|
710
710
|
X("inner-append", e.getInnerAppend())
|
|
711
711
|
), e.getControlChild !== void 0 && k.push(
|
|
712
712
|
e.getControlChild()
|
|
713
713
|
), k;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function ne() {
|
|
716
716
|
const k = [];
|
|
717
717
|
return t.prefix !== void 0 && t.prefix !== null && k.push(
|
|
718
718
|
h("div", {
|
|
@@ -720,28 +720,28 @@ function Gl(e) {
|
|
|
720
720
|
}, t.prefix)
|
|
721
721
|
), e.getShadowControl !== void 0 && e.hasShadow.value === !0 && k.push(
|
|
722
722
|
e.getShadowControl()
|
|
723
|
-
), e.getControl !== void 0 ? k.push(e.getControl()) :
|
|
723
|
+
), e.getControl !== void 0 ? k.push(e.getControl()) : o.rawControl !== void 0 ? k.push(o.rawControl()) : o.control !== void 0 && k.push(
|
|
724
724
|
h("div", {
|
|
725
725
|
ref: e.targetRef,
|
|
726
726
|
class: "q-field__native row",
|
|
727
727
|
tabindex: -1,
|
|
728
728
|
...e.splitAttrs.attributes.value,
|
|
729
729
|
"data-autofocus": t.autofocus === !0 || void 0
|
|
730
|
-
},
|
|
730
|
+
}, o.control(R.value))
|
|
731
731
|
), E.value === !0 && k.push(
|
|
732
732
|
h("div", {
|
|
733
733
|
class: q.value
|
|
734
|
-
}, Se(
|
|
734
|
+
}, Se(o.label, t.label))
|
|
735
735
|
), t.suffix !== void 0 && t.suffix !== null && k.push(
|
|
736
736
|
h("div", {
|
|
737
737
|
class: "q-field__suffix no-pointer-events row items-center"
|
|
738
738
|
}, t.suffix)
|
|
739
|
-
), k.concat(Se(
|
|
739
|
+
), k.concat(Se(o.default));
|
|
740
740
|
}
|
|
741
741
|
function te() {
|
|
742
742
|
let k, M;
|
|
743
|
-
c.value === !0 ? y.value !== null ? (k = [h("div", { role: "alert" }, y.value)], M = `q--slot-error-${y.value}`) : (k = Se(
|
|
744
|
-
const se = t.counter === !0 ||
|
|
743
|
+
c.value === !0 ? y.value !== null ? (k = [h("div", { role: "alert" }, y.value)], M = `q--slot-error-${y.value}`) : (k = Se(o.error), M = "q--slot-error") : (t.hideHint !== !0 || e.focused.value === !0) && (t.hint !== void 0 ? (k = [h("div", t.hint)], M = `q--slot-hint-${t.hint}`) : (k = Se(o.hint), M = "q--slot-hint"));
|
|
744
|
+
const se = t.counter === !0 || o.counter !== void 0;
|
|
745
745
|
if (t.hideBottomSpace === !0 && se === !1 && k === void 0)
|
|
746
746
|
return;
|
|
747
747
|
const s = h("div", {
|
|
@@ -755,7 +755,7 @@ function Gl(e) {
|
|
|
755
755
|
t.hideBottomSpace === !0 ? s : h(bt, { name: "q-transition--field-message" }, () => s),
|
|
756
756
|
se === !0 ? h("div", {
|
|
757
757
|
class: "q-field__counter"
|
|
758
|
-
},
|
|
758
|
+
}, o.counter !== void 0 ? o.counter() : e.computedCounter.value) : null
|
|
759
759
|
]);
|
|
760
760
|
}
|
|
761
761
|
function X(k, M) {
|
|
@@ -774,7 +774,7 @@ function Gl(e) {
|
|
|
774
774
|
}), ce(() => {
|
|
775
775
|
d !== null && clearTimeout(d);
|
|
776
776
|
}), Object.assign(i, { focus: L, blur: H }), function() {
|
|
777
|
-
const M = e.getControl === void 0 &&
|
|
777
|
+
const M = e.getControl === void 0 && o.control === void 0 ? {
|
|
778
778
|
...e.splitAttrs.attributes.value,
|
|
779
779
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
780
780
|
...D.value
|
|
@@ -788,10 +788,10 @@ function Gl(e) {
|
|
|
788
788
|
style: a.style,
|
|
789
789
|
...M
|
|
790
790
|
}, [
|
|
791
|
-
|
|
791
|
+
o.before !== void 0 ? h("div", {
|
|
792
792
|
class: "q-field__before q-field__marginal row no-wrap items-center",
|
|
793
793
|
onClick: pe
|
|
794
|
-
},
|
|
794
|
+
}, o.before()) : null,
|
|
795
795
|
h("div", {
|
|
796
796
|
class: "q-field__inner relative-position col self-stretch"
|
|
797
797
|
}, [
|
|
@@ -803,14 +803,14 @@ function Gl(e) {
|
|
|
803
803
|
}, U()),
|
|
804
804
|
m.value === !0 ? te() : null
|
|
805
805
|
]),
|
|
806
|
-
|
|
806
|
+
o.after !== void 0 ? h("div", {
|
|
807
807
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
808
808
|
onClick: pe
|
|
809
|
-
},
|
|
809
|
+
}, o.after()) : null
|
|
810
810
|
]);
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
|
-
const
|
|
813
|
+
const xn = be({
|
|
814
814
|
name: "QField",
|
|
815
815
|
inheritAttrs: !1,
|
|
816
816
|
props: {
|
|
@@ -826,13 +826,13 @@ const xo = be({
|
|
|
826
826
|
Yl({ tagProp: !0 })
|
|
827
827
|
);
|
|
828
828
|
}
|
|
829
|
-
}),
|
|
829
|
+
}), Cn = {
|
|
830
830
|
xs: 8,
|
|
831
831
|
sm: 10,
|
|
832
832
|
md: 14,
|
|
833
833
|
lg: 20,
|
|
834
834
|
xl: 24
|
|
835
|
-
},
|
|
835
|
+
}, kn = be({
|
|
836
836
|
name: "QChip",
|
|
837
837
|
props: {
|
|
838
838
|
...lt,
|
|
@@ -867,7 +867,7 @@ const xo = be({
|
|
|
867
867
|
},
|
|
868
868
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
869
869
|
setup(e, { slots: t, emit: l }) {
|
|
870
|
-
const { proxy: { $q:
|
|
870
|
+
const { proxy: { $q: o } } = le(), a = ot(e, o), i = Ol(e, Cn), u = f(() => e.selected === !0 || e.icon !== void 0), d = f(() => e.selected === !0 ? e.iconSelected || o.iconSet.chip.selected : e.icon), v = f(() => e.iconRemove || o.iconSet.chip.remove), g = f(
|
|
871
871
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
872
872
|
), c = f(() => {
|
|
873
873
|
const S = e.outline === !0 && e.color || e.textColor;
|
|
@@ -877,7 +877,7 @@ const xo = be({
|
|
|
877
877
|
...S,
|
|
878
878
|
role: "button",
|
|
879
879
|
"aria-hidden": "false",
|
|
880
|
-
"aria-label": e.removeAriaLabel ||
|
|
880
|
+
"aria-label": e.removeAriaLabel || o.lang.label.remove
|
|
881
881
|
};
|
|
882
882
|
return { chip: S, remove: P };
|
|
883
883
|
});
|
|
@@ -904,7 +904,7 @@ const xo = be({
|
|
|
904
904
|
return S.push(
|
|
905
905
|
h("div", {
|
|
906
906
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
907
|
-
},
|
|
907
|
+
}, Do(t.default, P))
|
|
908
908
|
), e.iconRight && S.push(
|
|
909
909
|
h(Ae, {
|
|
910
910
|
class: "q-chip__icon q-chip__icon--right",
|
|
@@ -930,42 +930,42 @@ const xo = be({
|
|
|
930
930
|
S,
|
|
931
931
|
y.value.chip,
|
|
932
932
|
{ onClick: r, onKeyup: C }
|
|
933
|
-
), $
|
|
933
|
+
), $o(
|
|
934
934
|
"div",
|
|
935
935
|
S,
|
|
936
936
|
_(),
|
|
937
937
|
"ripple",
|
|
938
938
|
e.ripple !== !1 && e.disable !== !0,
|
|
939
|
-
() => [[
|
|
939
|
+
() => [[Po, e.ripple]]
|
|
940
940
|
);
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
|
-
function
|
|
944
|
+
function qn() {
|
|
945
945
|
if (window.getSelection !== void 0) {
|
|
946
946
|
const e = window.getSelection();
|
|
947
|
-
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(),
|
|
947
|
+
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), Zo.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
948
948
|
} else document.selection !== void 0 && document.selection.empty();
|
|
949
949
|
}
|
|
950
|
-
const
|
|
950
|
+
const Vn = {
|
|
951
951
|
/* SSR does not know about Element */
|
|
952
952
|
target: {
|
|
953
953
|
type: [Boolean, String, Element],
|
|
954
954
|
default: !0
|
|
955
955
|
},
|
|
956
956
|
noParentEvent: Boolean
|
|
957
|
-
},
|
|
958
|
-
...
|
|
957
|
+
}, _n = {
|
|
958
|
+
...Vn,
|
|
959
959
|
contextMenu: Boolean
|
|
960
960
|
};
|
|
961
|
-
function
|
|
961
|
+
function En({
|
|
962
962
|
showing: e,
|
|
963
963
|
avoidEmit: t,
|
|
964
964
|
// required for QPopupProxy (true)
|
|
965
965
|
configureAnchorEl: l
|
|
966
966
|
// optional
|
|
967
967
|
}) {
|
|
968
|
-
const { props:
|
|
968
|
+
const { props: o, proxy: a, emit: i } = le(), u = T(null);
|
|
969
969
|
let d = null;
|
|
970
970
|
function v(r) {
|
|
971
971
|
return u.value === null ? !1 : r === void 0 || r.touches === void 0 || r.touches.length <= 1;
|
|
@@ -1002,10 +1002,10 @@ function Eo({
|
|
|
1002
1002
|
}, 300);
|
|
1003
1003
|
},
|
|
1004
1004
|
mobileCleanup(r) {
|
|
1005
|
-
u.value.classList.remove("non-selectable"), d !== null && (clearTimeout(d), d = null), e.value === !0 && r !== void 0 &&
|
|
1005
|
+
u.value.classList.remove("non-selectable"), d !== null && (clearTimeout(d), d = null), e.value === !0 && r !== void 0 && qn();
|
|
1006
1006
|
}
|
|
1007
|
-
}), l = function(r =
|
|
1008
|
-
if (
|
|
1007
|
+
}), l = function(r = o.contextMenu) {
|
|
1008
|
+
if (o.noParentEvent === !0 || u.value === null) return;
|
|
1009
1009
|
let m;
|
|
1010
1010
|
r === !0 ? a.$q.platform.is.mobile === !0 ? m = [
|
|
1011
1011
|
[u.value, "touchstart", "mobileTouch", "passive"]
|
|
@@ -1018,7 +1018,7 @@ function Eo({
|
|
|
1018
1018
|
], rl(g, "anchor", m);
|
|
1019
1019
|
});
|
|
1020
1020
|
function c() {
|
|
1021
|
-
|
|
1021
|
+
Wo(g, "anchor");
|
|
1022
1022
|
}
|
|
1023
1023
|
function y(r) {
|
|
1024
1024
|
for (u.value = r; u.value.classList.contains("q-anchor--skip"); )
|
|
@@ -1026,29 +1026,29 @@ function Eo({
|
|
|
1026
1026
|
l();
|
|
1027
1027
|
}
|
|
1028
1028
|
function C() {
|
|
1029
|
-
if (
|
|
1029
|
+
if (o.target === !1 || o.target === "" || a.$el.parentNode === null)
|
|
1030
1030
|
u.value = null;
|
|
1031
|
-
else if (
|
|
1031
|
+
else if (o.target === !0)
|
|
1032
1032
|
y(a.$el.parentNode);
|
|
1033
1033
|
else {
|
|
1034
|
-
let r =
|
|
1035
|
-
if (typeof
|
|
1034
|
+
let r = o.target;
|
|
1035
|
+
if (typeof o.target == "string")
|
|
1036
1036
|
try {
|
|
1037
|
-
r = document.querySelector(
|
|
1037
|
+
r = document.querySelector(o.target);
|
|
1038
1038
|
} catch {
|
|
1039
1039
|
r = void 0;
|
|
1040
1040
|
}
|
|
1041
|
-
r != null ? (u.value = r.$el || r, l()) : (u.value = null, console.error(`Anchor: target "${
|
|
1041
|
+
r != null ? (u.value = r.$el || r, l()) : (u.value = null, console.error(`Anchor: target "${o.target}" not found`));
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
return K(() =>
|
|
1044
|
+
return K(() => o.contextMenu, (r) => {
|
|
1045
1045
|
u.value !== null && (c(), l(r));
|
|
1046
|
-
}), K(() =>
|
|
1046
|
+
}), K(() => o.target, () => {
|
|
1047
1047
|
u.value !== null && c(), C();
|
|
1048
|
-
}), K(() =>
|
|
1048
|
+
}), K(() => o.noParentEvent, (r) => {
|
|
1049
1049
|
u.value !== null && (r === !0 ? c() : l());
|
|
1050
1050
|
}), tt(() => {
|
|
1051
|
-
C(), t !== !0 &&
|
|
1051
|
+
C(), t !== !0 && o.modelValue === !0 && u.value === null && i("update:modelValue", !1);
|
|
1052
1052
|
}), ce(() => {
|
|
1053
1053
|
d !== null && clearTimeout(d), c();
|
|
1054
1054
|
}), {
|
|
@@ -1057,12 +1057,12 @@ function Eo({
|
|
|
1057
1057
|
anchorEvents: g
|
|
1058
1058
|
};
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function Bn(e, t) {
|
|
1061
1061
|
const l = T(null);
|
|
1062
|
-
let
|
|
1062
|
+
let o;
|
|
1063
1063
|
function a(d, v) {
|
|
1064
|
-
const g = `${v !== void 0 ? "add" : "remove"}EventListener`, c = v !== void 0 ? v :
|
|
1065
|
-
d !== window && d[g]("scroll", c, ge.passive), window[g]("scroll", c, ge.passive),
|
|
1064
|
+
const g = `${v !== void 0 ? "add" : "remove"}EventListener`, c = v !== void 0 ? v : o;
|
|
1065
|
+
d !== window && d[g]("scroll", c, ge.passive), window[g]("scroll", c, ge.passive), o = v;
|
|
1066
1066
|
}
|
|
1067
1067
|
function i() {
|
|
1068
1068
|
l.value !== null && (a(l.value), l.value = null);
|
|
@@ -1088,13 +1088,13 @@ const Zl = {
|
|
|
1088
1088
|
"beforeHide",
|
|
1089
1089
|
"hide"
|
|
1090
1090
|
];
|
|
1091
|
-
function
|
|
1091
|
+
function eo({
|
|
1092
1092
|
showing: e,
|
|
1093
1093
|
canShow: t,
|
|
1094
1094
|
// optional
|
|
1095
1095
|
hideOnRouteChange: l,
|
|
1096
1096
|
// optional
|
|
1097
|
-
handleShow:
|
|
1097
|
+
handleShow: o,
|
|
1098
1098
|
// optional
|
|
1099
1099
|
handleHide: a,
|
|
1100
1100
|
// optional
|
|
@@ -1115,7 +1115,7 @@ function en({
|
|
|
1115
1115
|
})), (d.modelValue === null || q === !1) && r(E);
|
|
1116
1116
|
}
|
|
1117
1117
|
function r(E) {
|
|
1118
|
-
e.value !== !0 && (e.value = !0, v("beforeShow", E),
|
|
1118
|
+
e.value !== !0 && (e.value = !0, v("beforeShow", E), o !== void 0 ? o(E) : v("show", E));
|
|
1119
1119
|
}
|
|
1120
1120
|
function m(E) {
|
|
1121
1121
|
if (d.disable === !0)
|
|
@@ -1131,7 +1131,7 @@ function en({
|
|
|
1131
1131
|
function S(E) {
|
|
1132
1132
|
d.disable === !0 && E === !0 ? d["onUpdate:modelValue"] !== void 0 && v("update:modelValue", !1) : E === !0 !== e.value && (E === !0 ? r : _)(c);
|
|
1133
1133
|
}
|
|
1134
|
-
K(() => d.modelValue, S), l !== void 0 &&
|
|
1134
|
+
K(() => d.modelValue, S), l !== void 0 && jo(u) === !0 && K(() => g.$route.fullPath, () => {
|
|
1135
1135
|
l.value === !0 && e.value === !0 && m();
|
|
1136
1136
|
}), tt(() => {
|
|
1137
1137
|
S(d.modelValue);
|
|
@@ -1140,20 +1140,20 @@ function en({
|
|
|
1140
1140
|
return Object.assign(g, P), P;
|
|
1141
1141
|
}
|
|
1142
1142
|
const bl = {};
|
|
1143
|
-
let
|
|
1144
|
-
function
|
|
1143
|
+
let An = 1, Tn = document.body;
|
|
1144
|
+
function Rn(e, t) {
|
|
1145
1145
|
const l = document.createElement("div");
|
|
1146
|
-
if (l.id = t !== void 0 ? `q-portal--${t}--${
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1146
|
+
if (l.id = t !== void 0 ? `q-portal--${t}--${An++}` : e, bl.globalNodes !== void 0) {
|
|
1147
|
+
const o = bl.globalNodes.class;
|
|
1148
|
+
o !== void 0 && (l.className = o);
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return Tn.appendChild(l), l;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function zn(e) {
|
|
1153
1153
|
e.remove();
|
|
1154
1154
|
}
|
|
1155
1155
|
const Je = [];
|
|
1156
|
-
function
|
|
1156
|
+
function Fn(e, t) {
|
|
1157
1157
|
do {
|
|
1158
1158
|
if (e.$options.name === "QMenu") {
|
|
1159
1159
|
if (e.hide(t), e.$props.separateClosePopup === !0)
|
|
@@ -1165,13 +1165,13 @@ function Fo(e, t) {
|
|
|
1165
1165
|
e = Rt(e);
|
|
1166
1166
|
} while (e != null);
|
|
1167
1167
|
}
|
|
1168
|
-
const
|
|
1168
|
+
const Mn = be({
|
|
1169
1169
|
name: "QPortal",
|
|
1170
1170
|
setup(e, { slots: t }) {
|
|
1171
1171
|
return () => t.default();
|
|
1172
1172
|
}
|
|
1173
1173
|
});
|
|
1174
|
-
function
|
|
1174
|
+
function Ln(e) {
|
|
1175
1175
|
for (e = e.parent; e != null; ) {
|
|
1176
1176
|
if (e.type.name === "QGlobalDialog")
|
|
1177
1177
|
return !0;
|
|
@@ -1181,34 +1181,34 @@ function Lo(e) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
return !1;
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function to(e, t, l, o) {
|
|
1185
1185
|
const a = T(!1), i = T(!1);
|
|
1186
1186
|
let u = null;
|
|
1187
|
-
const d = {}, v =
|
|
1187
|
+
const d = {}, v = o === "dialog" && Ln(e);
|
|
1188
1188
|
function g(y) {
|
|
1189
1189
|
if (y === !0) {
|
|
1190
1190
|
pl(d), i.value = !0;
|
|
1191
1191
|
return;
|
|
1192
1192
|
}
|
|
1193
|
-
i.value = !1, a.value === !1 && (v === !1 && u === null && (u =
|
|
1193
|
+
i.value = !1, a.value === !1 && (v === !1 && u === null && (u = Rn(!1, o)), a.value = !0, Je.push(e.proxy), yn(d));
|
|
1194
1194
|
}
|
|
1195
1195
|
function c(y) {
|
|
1196
1196
|
if (i.value = !1, y !== !0) return;
|
|
1197
1197
|
pl(d), a.value = !1;
|
|
1198
1198
|
const C = Je.indexOf(e.proxy);
|
|
1199
|
-
C !== -1 && Je.splice(C, 1), u !== null && (
|
|
1199
|
+
C !== -1 && Je.splice(C, 1), u !== null && (zn(u), u = null);
|
|
1200
1200
|
}
|
|
1201
|
-
return
|
|
1201
|
+
return Eo(() => {
|
|
1202
1202
|
c(!0);
|
|
1203
1203
|
}), e.proxy.__qPortal = !0, Dl(e.proxy, "contentEl", () => t.value), {
|
|
1204
1204
|
showPortal: g,
|
|
1205
1205
|
hidePortal: c,
|
|
1206
1206
|
portalIsActive: a,
|
|
1207
1207
|
portalIsAccessible: i,
|
|
1208
|
-
renderPortal: () => v === !0 ? l() : a.value === !0 ? [h(
|
|
1208
|
+
renderPortal: () => v === !0 ? l() : a.value === !0 ? [h(Bo, { to: u }, h(Mn, l))] : void 0
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1211
|
+
const lo = {
|
|
1212
1212
|
transitionShow: {
|
|
1213
1213
|
type: String,
|
|
1214
1214
|
default: "fade"
|
|
@@ -1222,17 +1222,17 @@ const ln = {
|
|
|
1222
1222
|
default: 300
|
|
1223
1223
|
}
|
|
1224
1224
|
};
|
|
1225
|
-
function
|
|
1225
|
+
function oo(e, t = () => {
|
|
1226
1226
|
}, l = () => {
|
|
1227
1227
|
}) {
|
|
1228
1228
|
return {
|
|
1229
1229
|
transitionProps: f(() => {
|
|
1230
|
-
const
|
|
1230
|
+
const o = `q-transition--${e.transitionShow || t()}`, a = `q-transition--${e.transitionHide || l()}`;
|
|
1231
1231
|
return {
|
|
1232
1232
|
appear: !0,
|
|
1233
|
-
enterFromClass: `${
|
|
1234
|
-
enterActiveClass: `${
|
|
1235
|
-
enterToClass: `${
|
|
1233
|
+
enterFromClass: `${o}-enter-from`,
|
|
1234
|
+
enterActiveClass: `${o}-enter-active`,
|
|
1235
|
+
enterToClass: `${o}-enter-to`,
|
|
1236
1236
|
leaveFromClass: `${a}-leave-from`,
|
|
1237
1237
|
leaveActiveClass: `${a}-leave-active`,
|
|
1238
1238
|
leaveToClass: `${a}-leave-to`
|
|
@@ -1241,7 +1241,7 @@ function nn(e, t = () => {
|
|
|
1241
1241
|
transitionStyle: f(() => `--q-transition-duration: ${e.transitionDuration}ms`)
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function no() {
|
|
1245
1245
|
let e;
|
|
1246
1246
|
const t = le();
|
|
1247
1247
|
function l() {
|
|
@@ -1249,14 +1249,14 @@ function on() {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
return Ct(l), ce(l), {
|
|
1251
1251
|
removeTick: l,
|
|
1252
|
-
registerTick(
|
|
1253
|
-
e =
|
|
1254
|
-
e ===
|
|
1252
|
+
registerTick(o) {
|
|
1253
|
+
e = o, ue(() => {
|
|
1254
|
+
e === o && ($l(t) === !1 && e(), e = void 0);
|
|
1255
1255
|
});
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function io() {
|
|
1260
1260
|
let e = null;
|
|
1261
1261
|
const t = le();
|
|
1262
1262
|
function l() {
|
|
@@ -1264,31 +1264,31 @@ function un() {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
return Ct(l), ce(l), {
|
|
1266
1266
|
removeTimeout: l,
|
|
1267
|
-
registerTimeout(
|
|
1267
|
+
registerTimeout(o, a) {
|
|
1268
1268
|
l(), $l(t) === !1 && (e = setTimeout(() => {
|
|
1269
|
-
e = null,
|
|
1269
|
+
e = null, o();
|
|
1270
1270
|
}, a));
|
|
1271
1271
|
}
|
|
1272
1272
|
};
|
|
1273
1273
|
}
|
|
1274
|
-
const
|
|
1275
|
-
function
|
|
1276
|
-
let l =
|
|
1274
|
+
const On = [Element, String], In = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
1275
|
+
function Hn(e, t) {
|
|
1276
|
+
let l = No(t);
|
|
1277
1277
|
if (l === void 0) {
|
|
1278
1278
|
if (e == null)
|
|
1279
1279
|
return window;
|
|
1280
1280
|
l = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
1281
1281
|
}
|
|
1282
|
-
return
|
|
1282
|
+
return In.includes(l) ? window : l;
|
|
1283
1283
|
}
|
|
1284
|
-
function $
|
|
1284
|
+
function $n(e) {
|
|
1285
1285
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Pn(e) {
|
|
1288
1288
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
1289
1289
|
}
|
|
1290
1290
|
let mt;
|
|
1291
|
-
function
|
|
1291
|
+
function Dn() {
|
|
1292
1292
|
if (mt !== void 0)
|
|
1293
1293
|
return mt;
|
|
1294
1294
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
@@ -1306,32 +1306,32 @@ function Do() {
|
|
|
1306
1306
|
}), t.appendChild(e), document.body.appendChild(t);
|
|
1307
1307
|
const l = e.offsetWidth;
|
|
1308
1308
|
t.style.overflow = "scroll";
|
|
1309
|
-
let
|
|
1310
|
-
return l ===
|
|
1309
|
+
let o = e.offsetWidth;
|
|
1310
|
+
return l === o && (o = t.clientWidth), t.remove(), mt = l - o, mt;
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Wn(e, t = !0) {
|
|
1313
1313
|
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"]));
|
|
1314
1314
|
}
|
|
1315
1315
|
const Te = [];
|
|
1316
1316
|
let je;
|
|
1317
|
-
function
|
|
1317
|
+
function jn(e) {
|
|
1318
1318
|
je = e.keyCode === 27;
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Nn() {
|
|
1321
1321
|
je === !0 && (je = !1);
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Kn(e) {
|
|
1324
1324
|
je === !0 && (je = !1, kt(e, 27) === !0 && Te[Te.length - 1](e));
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1327
|
-
window[e]("keydown",
|
|
1326
|
+
function uo(e) {
|
|
1327
|
+
window[e]("keydown", jn), window[e]("blur", Nn), window[e]("keyup", Kn), je = !1;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
we.is.desktop === !0 && (Te.push(e), Te.length === 1 &&
|
|
1329
|
+
function ao(e) {
|
|
1330
|
+
we.is.desktop === !0 && (Te.push(e), Te.length === 1 && uo("addEventListener"));
|
|
1331
1331
|
}
|
|
1332
1332
|
function yt(e) {
|
|
1333
1333
|
const t = Te.indexOf(e);
|
|
1334
|
-
t !== -1 && (Te.splice(t, 1), Te.length === 0 &&
|
|
1334
|
+
t !== -1 && (Te.splice(t, 1), Te.length === 0 && uo("removeEventListener"));
|
|
1335
1335
|
}
|
|
1336
1336
|
const { notPassiveCapture: St } = ge, Re = [];
|
|
1337
1337
|
function wt(e) {
|
|
@@ -1340,26 +1340,26 @@ function wt(e) {
|
|
|
1340
1340
|
return;
|
|
1341
1341
|
let l = Je.length - 1;
|
|
1342
1342
|
for (; l >= 0; ) {
|
|
1343
|
-
const
|
|
1344
|
-
if (
|
|
1343
|
+
const o = Je[l].$;
|
|
1344
|
+
if (o.type.name === "QTooltip") {
|
|
1345
1345
|
l--;
|
|
1346
1346
|
continue;
|
|
1347
1347
|
}
|
|
1348
|
-
if (
|
|
1348
|
+
if (o.type.name !== "QDialog")
|
|
1349
1349
|
break;
|
|
1350
|
-
if (
|
|
1350
|
+
if (o.props.seamless !== !0)
|
|
1351
1351
|
return;
|
|
1352
1352
|
l--;
|
|
1353
1353
|
}
|
|
1354
|
-
for (let
|
|
1355
|
-
const a = Re[
|
|
1354
|
+
for (let o = Re.length - 1; o >= 0; o--) {
|
|
1355
|
+
const a = Re[o];
|
|
1356
1356
|
if ((a.anchorEl.value === null || a.anchorEl.value.contains(t) === !1) && (t === document.body || a.innerRef.value !== null && a.innerRef.value.contains(t) === !1))
|
|
1357
1357
|
e.qClickOutside = !0, a.onClickOutside(e);
|
|
1358
1358
|
else
|
|
1359
1359
|
return;
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function Qn(e) {
|
|
1363
1363
|
Re.push(e), Re.length === 1 && (document.addEventListener("mousedown", wt, St), document.addEventListener("touchstart", wt, St));
|
|
1364
1364
|
}
|
|
1365
1365
|
function yl(e) {
|
|
@@ -1371,7 +1371,7 @@ function xl(e) {
|
|
|
1371
1371
|
const t = e.split(" ");
|
|
1372
1372
|
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;
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function Un(e) {
|
|
1375
1375
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
1376
1376
|
}
|
|
1377
1377
|
const jt = {
|
|
@@ -1390,33 +1390,33 @@ function Cl(e, t) {
|
|
|
1390
1390
|
horizontal: jt[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
let { top: l, left:
|
|
1395
|
-
return t !== void 0 && (l -= t[1],
|
|
1393
|
+
function Xn(e, t) {
|
|
1394
|
+
let { top: l, left: o, right: a, bottom: i, width: u, height: d } = e.getBoundingClientRect();
|
|
1395
|
+
return t !== void 0 && (l -= t[1], o -= t[0], i += t[1], a += t[0], u += t[0], d += t[1]), {
|
|
1396
1396
|
top: l,
|
|
1397
1397
|
bottom: i,
|
|
1398
1398
|
height: d,
|
|
1399
|
-
left:
|
|
1399
|
+
left: o,
|
|
1400
1400
|
right: a,
|
|
1401
1401
|
width: u,
|
|
1402
|
-
middle:
|
|
1402
|
+
middle: o + (a - o) / 2,
|
|
1403
1403
|
center: l + (i - l) / 2
|
|
1404
1404
|
};
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
let { top:
|
|
1408
|
-
return
|
|
1409
|
-
top:
|
|
1410
|
-
bottom:
|
|
1406
|
+
function Yn(e, t, l) {
|
|
1407
|
+
let { top: o, left: a } = e.getBoundingClientRect();
|
|
1408
|
+
return o += t.top, a += t.left, l !== void 0 && (o += l[1], a += l[0]), {
|
|
1409
|
+
top: o,
|
|
1410
|
+
bottom: o + 1,
|
|
1411
1411
|
height: 1,
|
|
1412
1412
|
left: a,
|
|
1413
1413
|
right: a + 1,
|
|
1414
1414
|
width: 1,
|
|
1415
1415
|
middle: a,
|
|
1416
|
-
center:
|
|
1416
|
+
center: o
|
|
1417
1417
|
};
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Gn(e, t) {
|
|
1420
1420
|
return {
|
|
1421
1421
|
top: 0,
|
|
1422
1422
|
center: t / 2,
|
|
@@ -1426,24 +1426,24 @@ function Go(e, t) {
|
|
|
1426
1426
|
right: e
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
function kl(e, t, l,
|
|
1429
|
+
function kl(e, t, l, o) {
|
|
1430
1430
|
return {
|
|
1431
|
-
top: e[l.vertical] - t[
|
|
1432
|
-
left: e[l.horizontal] - t[
|
|
1431
|
+
top: e[l.vertical] - t[o.vertical],
|
|
1432
|
+
left: e[l.horizontal] - t[o.horizontal]
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function ro(e, t = 0) {
|
|
1436
1436
|
if (e.targetEl === null || e.anchorEl === null || t > 5)
|
|
1437
1437
|
return;
|
|
1438
1438
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
1439
1439
|
setTimeout(() => {
|
|
1440
|
-
|
|
1440
|
+
ro(e, t + 1);
|
|
1441
1441
|
}, 10);
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
1444
|
const {
|
|
1445
1445
|
targetEl: l,
|
|
1446
|
-
offset:
|
|
1446
|
+
offset: o,
|
|
1447
1447
|
anchorEl: a,
|
|
1448
1448
|
anchorOrigin: i,
|
|
1449
1449
|
selfOrigin: u,
|
|
@@ -1457,7 +1457,7 @@ function sn(e, t = 0) {
|
|
|
1457
1457
|
const B = document.body.style, { offsetLeft: L, offsetTop: H } = window.visualViewport;
|
|
1458
1458
|
L !== Sl && (B.setProperty("--q-pe-left", L + "px"), Sl = L), H !== wl && (B.setProperty("--q-pe-top", H + "px"), wl = H);
|
|
1459
1459
|
}
|
|
1460
|
-
const { scrollLeft: C, scrollTop: r } = l, m = d === void 0 ?
|
|
1460
|
+
const { scrollLeft: C, scrollTop: r } = l, m = d === void 0 ? Xn(a, g === !0 ? [0, 0] : o) : Yn(a, d, o);
|
|
1461
1461
|
Object.assign(l.style, {
|
|
1462
1462
|
top: 0,
|
|
1463
1463
|
left: 0,
|
|
@@ -1470,9 +1470,9 @@ function sn(e, t = 0) {
|
|
|
1470
1470
|
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 };
|
|
1471
1471
|
let q = { maxWidth: y, maxHeight: c };
|
|
1472
1472
|
(v === !0 || g === !0) && (q.minWidth = m.width + "px", g === !0 && (q.minHeight = m.height + "px")), Object.assign(l.style, q);
|
|
1473
|
-
const R =
|
|
1473
|
+
const R = Gn(P, E);
|
|
1474
1474
|
let D = kl(m, R, i, u);
|
|
1475
|
-
if (d === void 0 ||
|
|
1475
|
+
if (d === void 0 || o === void 0)
|
|
1476
1476
|
Mt(D, m, R, i, u);
|
|
1477
1477
|
else {
|
|
1478
1478
|
const { top: B, left: L } = D;
|
|
@@ -1480,12 +1480,12 @@ function sn(e, t = 0) {
|
|
|
1480
1480
|
let H = !1;
|
|
1481
1481
|
if (D.top !== B) {
|
|
1482
1482
|
H = !0;
|
|
1483
|
-
const Q = 2 *
|
|
1483
|
+
const Q = 2 * o[1];
|
|
1484
1484
|
m.center = m.top -= Q, m.bottom -= Q + 2;
|
|
1485
1485
|
}
|
|
1486
1486
|
if (D.left !== L) {
|
|
1487
1487
|
H = !0;
|
|
1488
|
-
const Q = 2 *
|
|
1488
|
+
const Q = 2 * o[0];
|
|
1489
1489
|
m.middle = m.left -= Q, m.right -= Q + 2;
|
|
1490
1490
|
}
|
|
1491
1491
|
H === !0 && (D = kl(m, R, i, u), Mt(D, m, R, i, u));
|
|
@@ -1495,45 +1495,45 @@ function sn(e, t = 0) {
|
|
|
1495
1495
|
left: D.left + "px"
|
|
1496
1496
|
}, 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);
|
|
1497
1497
|
}
|
|
1498
|
-
function Mt(e, t, l,
|
|
1499
|
-
const i = l.bottom, u = l.right, d =
|
|
1498
|
+
function Mt(e, t, l, o, a) {
|
|
1499
|
+
const i = l.bottom, u = l.right, d = Dn(), v = window.innerHeight - d, g = document.body.clientWidth;
|
|
1500
1500
|
if (e.top < 0 || e.top + i > v)
|
|
1501
1501
|
if (a.vertical === "center")
|
|
1502
|
-
e.top = t[
|
|
1503
|
-
else if (t[
|
|
1502
|
+
e.top = t[o.vertical] > v / 2 ? Math.max(0, v - i) : 0, e.maxHeight = Math.min(i, v);
|
|
1503
|
+
else if (t[o.vertical] > v / 2) {
|
|
1504
1504
|
const c = Math.min(
|
|
1505
1505
|
v,
|
|
1506
|
-
|
|
1506
|
+
o.vertical === "center" ? t.center : o.vertical === a.vertical ? t.bottom : t.top
|
|
1507
1507
|
);
|
|
1508
1508
|
e.maxHeight = Math.min(i, c), e.top = Math.max(0, c - i);
|
|
1509
1509
|
} else
|
|
1510
1510
|
e.top = Math.max(
|
|
1511
1511
|
0,
|
|
1512
|
-
|
|
1512
|
+
o.vertical === "center" ? t.center : o.vertical === a.vertical ? t.top : t.bottom
|
|
1513
1513
|
), e.maxHeight = Math.min(i, v - e.top);
|
|
1514
1514
|
if (e.left < 0 || e.left + u > g)
|
|
1515
1515
|
if (e.maxWidth = Math.min(u, g), a.horizontal === "middle")
|
|
1516
|
-
e.left = t[
|
|
1517
|
-
else if (t[
|
|
1516
|
+
e.left = t[o.horizontal] > g / 2 ? Math.max(0, g - u) : 0;
|
|
1517
|
+
else if (t[o.horizontal] > g / 2) {
|
|
1518
1518
|
const c = Math.min(
|
|
1519
1519
|
g,
|
|
1520
|
-
|
|
1520
|
+
o.horizontal === "middle" ? t.middle : o.horizontal === a.horizontal ? t.right : t.left
|
|
1521
1521
|
);
|
|
1522
1522
|
e.maxWidth = Math.min(u, c), e.left = Math.max(0, c - e.maxWidth);
|
|
1523
1523
|
} else
|
|
1524
1524
|
e.left = Math.max(
|
|
1525
1525
|
0,
|
|
1526
|
-
|
|
1526
|
+
o.horizontal === "middle" ? t.middle : o.horizontal === a.horizontal ? t.left : t.right
|
|
1527
1527
|
), e.maxWidth = Math.min(u, g - e.left);
|
|
1528
1528
|
}
|
|
1529
|
-
const
|
|
1529
|
+
const Zn = be({
|
|
1530
1530
|
name: "QMenu",
|
|
1531
1531
|
inheritAttrs: !1,
|
|
1532
1532
|
props: {
|
|
1533
|
-
...
|
|
1533
|
+
..._n,
|
|
1534
1534
|
...Zl,
|
|
1535
1535
|
...lt,
|
|
1536
|
-
...
|
|
1536
|
+
...lo,
|
|
1537
1537
|
persistent: Boolean,
|
|
1538
1538
|
autoClose: Boolean,
|
|
1539
1539
|
separateClosePopup: Boolean,
|
|
@@ -1553,9 +1553,9 @@ const Zo = be({
|
|
|
1553
1553
|
},
|
|
1554
1554
|
offset: {
|
|
1555
1555
|
type: Array,
|
|
1556
|
-
validator:
|
|
1556
|
+
validator: Un
|
|
1557
1557
|
},
|
|
1558
|
-
scrollTarget:
|
|
1558
|
+
scrollTarget: On,
|
|
1559
1559
|
touchPosition: Boolean,
|
|
1560
1560
|
maxHeight: {
|
|
1561
1561
|
type: String,
|
|
@@ -1571,18 +1571,18 @@ const Zo = be({
|
|
|
1571
1571
|
"click",
|
|
1572
1572
|
"escapeKey"
|
|
1573
1573
|
],
|
|
1574
|
-
setup(e, { slots: t, emit: l, attrs:
|
|
1574
|
+
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
1575
1575
|
let a = null, i, u, d;
|
|
1576
1576
|
const v = le(), { proxy: g } = v, { $q: c } = g, y = T(null), C = T(!1), r = f(
|
|
1577
1577
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
1578
|
-
), m =
|
|
1578
|
+
), m = ot(e, c), { registerTick: _, removeTick: S } = no(), { registerTimeout: P } = io(), { transitionProps: E, transitionStyle: q } = oo(e), { localScrollTarget: R, changeScrollEvent: D, unconfigureScrollTarget: B } = Bn(e, O), { anchorEl: L, canShow: H } = En({ showing: C }), { hide: Q } = eo({
|
|
1579
1579
|
showing: C,
|
|
1580
1580
|
canShow: H,
|
|
1581
1581
|
handleShow: se,
|
|
1582
1582
|
handleHide: s,
|
|
1583
1583
|
hideOnRouteChange: r,
|
|
1584
1584
|
processOnMount: !0
|
|
1585
|
-
}), { showPortal: G, hidePortal:
|
|
1585
|
+
}), { showPortal: G, hidePortal: oe, renderPortal: A } = to(v, y, N, "menu"), U = {
|
|
1586
1586
|
anchorEl: L,
|
|
1587
1587
|
innerRef: y,
|
|
1588
1588
|
onClickOutside(b) {
|
|
@@ -1590,18 +1590,18 @@ const Zo = be({
|
|
|
1590
1590
|
return Q(b), // always prevent touch event
|
|
1591
1591
|
(b.type === "touchstart" || b.target.classList.contains("q-dialog__backdrop")) && ae(b), !0;
|
|
1592
1592
|
}
|
|
1593
|
-
},
|
|
1593
|
+
}, ne = f(
|
|
1594
1594
|
() => Cl(
|
|
1595
1595
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
1596
1596
|
c.lang.rtl
|
|
1597
1597
|
)
|
|
1598
|
-
), te = f(() => e.cover === !0 ?
|
|
1598
|
+
), te = f(() => e.cover === !0 ? ne.value : Cl(e.self || "top start", c.lang.rtl)), X = f(
|
|
1599
1599
|
() => (e.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
1600
1600
|
), re = f(() => e.autoClose === !0 ? { onClick: V } : {}), k = f(
|
|
1601
1601
|
() => C.value === !0 && e.persistent !== !0
|
|
1602
1602
|
);
|
|
1603
1603
|
K(k, (b) => {
|
|
1604
|
-
b === !0 ? (
|
|
1604
|
+
b === !0 ? (ao(F), Qn(U)) : (yt(F), yl(U));
|
|
1605
1605
|
});
|
|
1606
1606
|
function M() {
|
|
1607
1607
|
Nt(() => {
|
|
@@ -1611,7 +1611,7 @@ const Zo = be({
|
|
|
1611
1611
|
}
|
|
1612
1612
|
function se(b) {
|
|
1613
1613
|
if (a = e.noRefocus === !1 ? document.activeElement : null, Wl(I), G(), O(), i = void 0, b !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
1614
|
-
const Z =
|
|
1614
|
+
const Z = Ko(b);
|
|
1615
1615
|
if (Z.left !== void 0) {
|
|
1616
1616
|
const { top: ve, left: ze } = L.value.getBoundingClientRect();
|
|
1617
1617
|
i = { left: Z.left - ze, top: Z.top - ve };
|
|
@@ -1627,19 +1627,19 @@ const Zo = be({
|
|
|
1627
1627
|
}, e.transitionDuration);
|
|
1628
1628
|
}
|
|
1629
1629
|
function s(b) {
|
|
1630
|
-
S(),
|
|
1630
|
+
S(), oe(), p(!0), a !== null && // menu was hidden from code or ESC plugin
|
|
1631
1631
|
(b === void 0 || b.qClickOutside !== !0) && (((b && b.type.indexOf("key") === 0 ? a.closest('[tabindex]:not([tabindex^="-"])') : void 0) || a).focus(), a = null), P(() => {
|
|
1632
|
-
|
|
1632
|
+
oe(!0), l("hide", b);
|
|
1633
1633
|
}, e.transitionDuration);
|
|
1634
1634
|
}
|
|
1635
1635
|
function p(b) {
|
|
1636
1636
|
i = void 0, u !== void 0 && (u(), u = void 0), (b === !0 || C.value === !0) && (Pt(I), B(), yl(U), yt(F)), b !== !0 && (a = null);
|
|
1637
1637
|
}
|
|
1638
1638
|
function O() {
|
|
1639
|
-
(L.value !== null || e.scrollTarget !== void 0) && (R.value =
|
|
1639
|
+
(L.value !== null || e.scrollTarget !== void 0) && (R.value = Hn(L.value, e.scrollTarget), D(R.value, z));
|
|
1640
1640
|
}
|
|
1641
1641
|
function V(b) {
|
|
1642
|
-
d !== !0 ? (
|
|
1642
|
+
d !== !0 ? (Fn(g, b), l("click", b)) : d = !1;
|
|
1643
1643
|
}
|
|
1644
1644
|
function I(b) {
|
|
1645
1645
|
k.value === !0 && e.noFocus !== !0 && Pl(y.value, b.target) !== !0 && M();
|
|
@@ -1648,11 +1648,11 @@ const Zo = be({
|
|
|
1648
1648
|
l("escapeKey"), Q(b);
|
|
1649
1649
|
}
|
|
1650
1650
|
function z() {
|
|
1651
|
-
|
|
1651
|
+
ro({
|
|
1652
1652
|
targetEl: y.value,
|
|
1653
1653
|
offset: e.offset,
|
|
1654
1654
|
anchorEl: L.value,
|
|
1655
|
-
anchorOrigin:
|
|
1655
|
+
anchorOrigin: ne.value,
|
|
1656
1656
|
selfOrigin: te.value,
|
|
1657
1657
|
absoluteOffset: i,
|
|
1658
1658
|
fit: e.fit,
|
|
@@ -1667,15 +1667,15 @@ const Zo = be({
|
|
|
1667
1667
|
E.value,
|
|
1668
1668
|
() => C.value === !0 ? h("div", {
|
|
1669
1669
|
role: "menu",
|
|
1670
|
-
...
|
|
1670
|
+
...o,
|
|
1671
1671
|
ref: y,
|
|
1672
1672
|
tabindex: -1,
|
|
1673
1673
|
class: [
|
|
1674
1674
|
"q-menu q-position-engine scroll" + X.value,
|
|
1675
|
-
|
|
1675
|
+
o.class
|
|
1676
1676
|
],
|
|
1677
1677
|
style: [
|
|
1678
|
-
|
|
1678
|
+
o.style,
|
|
1679
1679
|
q.value
|
|
1680
1680
|
],
|
|
1681
1681
|
...re.value
|
|
@@ -1685,13 +1685,13 @@ const Zo = be({
|
|
|
1685
1685
|
return ce(p), Object.assign(g, { focus: M, updatePosition: z }), A;
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
|
-
function
|
|
1689
|
-
function
|
|
1688
|
+
function Jn(e, t, l) {
|
|
1689
|
+
function o() {
|
|
1690
1690
|
}
|
|
1691
1691
|
return ce(() => {
|
|
1692
1692
|
e.value === !0 && void 0;
|
|
1693
1693
|
}), {
|
|
1694
|
-
removeFromHistory:
|
|
1694
|
+
removeFromHistory: o,
|
|
1695
1695
|
addToHistory() {
|
|
1696
1696
|
}
|
|
1697
1697
|
};
|
|
@@ -1703,11 +1703,11 @@ function ei(e) {
|
|
|
1703
1703
|
function ti(e) {
|
|
1704
1704
|
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop"))
|
|
1705
1705
|
return !0;
|
|
1706
|
-
const t =
|
|
1706
|
+
const t = Qo(e), l = e.shiftKey && !e.deltaX, o = !l && Math.abs(e.deltaX) <= Math.abs(e.deltaY), a = l || o ? e.deltaY : e.deltaX;
|
|
1707
1707
|
for (let i = 0; i < t.length; i++) {
|
|
1708
1708
|
const u = t[i];
|
|
1709
|
-
if (
|
|
1710
|
-
return
|
|
1709
|
+
if (Wn(u, o))
|
|
1710
|
+
return o ? a < 0 && u.scrollTop === 0 ? !0 : a > 0 && u.scrollTop + u.clientHeight === u.scrollHeight : a < 0 && u.scrollLeft === 0 ? !0 : a > 0 && u.scrollLeft + u.clientWidth === u.scrollWidth;
|
|
1711
1711
|
}
|
|
1712
1712
|
return !0;
|
|
1713
1713
|
}
|
|
@@ -1717,15 +1717,15 @@ function El(e) {
|
|
|
1717
1717
|
function ht(e) {
|
|
1718
1718
|
It !== !0 && (It = !0, requestAnimationFrame(() => {
|
|
1719
1719
|
It = !1;
|
|
1720
|
-
const { height: t } = e.target, { clientHeight: l, scrollTop:
|
|
1721
|
-
(Ze === void 0 || t !== window.innerHeight) && (Ze = l - t, document.scrollingElement.scrollTop =
|
|
1720
|
+
const { height: t } = e.target, { clientHeight: l, scrollTop: o } = document.scrollingElement;
|
|
1721
|
+
(Ze === void 0 || t !== window.innerHeight) && (Ze = l - t, document.scrollingElement.scrollTop = o), o > Ze && (document.scrollingElement.scrollTop -= Math.ceil((o - Ze) / 8));
|
|
1722
1722
|
}));
|
|
1723
1723
|
}
|
|
1724
1724
|
function Bl(e) {
|
|
1725
1725
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
1726
1726
|
if (e === "add") {
|
|
1727
|
-
const { overflowY:
|
|
1728
|
-
Lt =
|
|
1727
|
+
const { overflowY: o, overflowX: a } = window.getComputedStyle(t);
|
|
1728
|
+
Lt = Pn(window), Ot = $n(window), ql = t.style.left, Vl = t.style.top, _l = window.location.href, t.style.left = `-${Lt}px`, t.style.top = `-${Ot}px`, a !== "hidden" && (a === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), o !== "hidden" && (o === "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", ht, ge.passiveCapture), window.visualViewport.addEventListener("scroll", ht, ge.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", El, ge.passiveCapture));
|
|
1729
1729
|
}
|
|
1730
1730
|
we.is.desktop === !0 && we.is.mac === !0 && window[`${e}EventListener`]("wheel", ei, ge.notPassive), e === "remove" && (we.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", ht, ge.passiveCapture), window.visualViewport.removeEventListener("scroll", ht, ge.passiveCapture)) : window.removeEventListener("scroll", El, 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 = ql, t.style.top = Vl, window.location.href === _l && window.scrollTo(Lt, Ot), Ze = void 0);
|
|
1731
1731
|
}
|
|
@@ -1750,7 +1750,7 @@ function li(e) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
Bl(t);
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function oi() {
|
|
1754
1754
|
let e;
|
|
1755
1755
|
return {
|
|
1756
1756
|
preventBodyScroll(t) {
|
|
@@ -1759,7 +1759,7 @@ function ni() {
|
|
|
1759
1759
|
};
|
|
1760
1760
|
}
|
|
1761
1761
|
let gt = 0;
|
|
1762
|
-
const
|
|
1762
|
+
const ni = {
|
|
1763
1763
|
standard: "fixed-full flex-center",
|
|
1764
1764
|
top: "fixed-top justify-center",
|
|
1765
1765
|
bottom: "fixed-bottom justify-center",
|
|
@@ -1776,7 +1776,7 @@ const oi = {
|
|
|
1776
1776
|
inheritAttrs: !1,
|
|
1777
1777
|
props: {
|
|
1778
1778
|
...Zl,
|
|
1779
|
-
...
|
|
1779
|
+
...lo,
|
|
1780
1780
|
transitionShow: String,
|
|
1781
1781
|
// override useTransitionProps
|
|
1782
1782
|
transitionHide: String,
|
|
@@ -1808,38 +1808,38 @@ const oi = {
|
|
|
1808
1808
|
"click",
|
|
1809
1809
|
"escapeKey"
|
|
1810
1810
|
],
|
|
1811
|
-
setup(e, { slots: t, emit: l, attrs:
|
|
1811
|
+
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
1812
1812
|
const a = le(), i = T(null), u = T(!1), d = T(!1);
|
|
1813
1813
|
let v = null, g = null, c, y;
|
|
1814
1814
|
const C = f(
|
|
1815
1815
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
1816
|
-
), { preventBodyScroll: r } =
|
|
1816
|
+
), { preventBodyScroll: r } = oi(), { registerTimeout: m } = io(), { registerTick: _, removeTick: S } = no(), { transitionProps: P, transitionStyle: E } = oo(
|
|
1817
1817
|
e,
|
|
1818
1818
|
() => Al[e.position][0],
|
|
1819
1819
|
() => Al[e.position][1]
|
|
1820
|
-
), 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 } =
|
|
1820
|
+
), 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 } = to(
|
|
1821
1821
|
a,
|
|
1822
1822
|
i,
|
|
1823
1823
|
O,
|
|
1824
1824
|
"dialog"
|
|
1825
|
-
), { hide: H } =
|
|
1825
|
+
), { hide: H } = eo({
|
|
1826
1826
|
showing: u,
|
|
1827
1827
|
hideOnRouteChange: C,
|
|
1828
1828
|
handleShow: U,
|
|
1829
|
-
handleHide:
|
|
1829
|
+
handleHide: ne,
|
|
1830
1830
|
processOnMount: !0
|
|
1831
1831
|
});
|
|
1832
|
-
|
|
1832
|
+
Jn(u);
|
|
1833
1833
|
const Q = f(
|
|
1834
|
-
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${
|
|
1835
|
-
), G = f(() => u.value === !0 && e.seamless !== !0),
|
|
1834
|
+
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${ni[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" : "")
|
|
1835
|
+
), G = f(() => u.value === !0 && e.seamless !== !0), oe = f(() => e.autoClose === !0 ? { onClick: se } : {}), A = f(() => [
|
|
1836
1836
|
`q-dialog fullscreen no-pointer-events q-dialog--${G.value === !0 ? "modal" : "seamless"}`,
|
|
1837
|
-
|
|
1837
|
+
o.class
|
|
1838
1838
|
]);
|
|
1839
1839
|
K(() => e.maximized, (V) => {
|
|
1840
1840
|
u.value === !0 && M(V);
|
|
1841
1841
|
}), K(G, (V) => {
|
|
1842
|
-
r(V), V === !0 ? (Wl(p),
|
|
1842
|
+
r(V), V === !0 ? (Wl(p), ao(re)) : (Pt(p), yt(re));
|
|
1843
1843
|
});
|
|
1844
1844
|
function U(V) {
|
|
1845
1845
|
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(() => {
|
|
@@ -1856,7 +1856,7 @@ const oi = {
|
|
|
1856
1856
|
R(!0), d.value = !1, l("show", V);
|
|
1857
1857
|
}, e.transitionDuration);
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function ne(V) {
|
|
1860
1860
|
S(), k(!0), d.value = !0, D(), g !== null && (((V && V.type.indexOf("key") === 0 ? g.closest('[tabindex]:not([tabindex^="-"])') : void 0) || g).focus(), g = null), m(() => {
|
|
1861
1861
|
D(!0), d.value = !1, l("hide", V);
|
|
1862
1862
|
}, e.transitionDuration);
|
|
@@ -1914,7 +1914,7 @@ const oi = {
|
|
|
1914
1914
|
return h("div", {
|
|
1915
1915
|
role: "dialog",
|
|
1916
1916
|
"aria-modal": G.value === !0 ? "true" : "false",
|
|
1917
|
-
...
|
|
1917
|
+
...o,
|
|
1918
1918
|
class: A.value
|
|
1919
1919
|
}, [
|
|
1920
1920
|
h(bt, {
|
|
@@ -1935,7 +1935,7 @@ const oi = {
|
|
|
1935
1935
|
class: Q.value,
|
|
1936
1936
|
style: E.value,
|
|
1937
1937
|
tabindex: -1,
|
|
1938
|
-
...
|
|
1938
|
+
...oe.value
|
|
1939
1939
|
}, Se(t.default)) : null
|
|
1940
1940
|
)
|
|
1941
1941
|
]);
|
|
@@ -1964,23 +1964,23 @@ const fe = 1e3, ui = [
|
|
|
1964
1964
|
"start-force",
|
|
1965
1965
|
"center-force",
|
|
1966
1966
|
"end-force"
|
|
1967
|
-
],
|
|
1967
|
+
], so = Array.prototype.filter, ai = window.getComputedStyle(document.body).overflowAnchor === void 0 ? Uo : function(e, t) {
|
|
1968
1968
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
1969
1969
|
if (e === null)
|
|
1970
1970
|
return;
|
|
1971
1971
|
e._qOverflowAnimationFrame = void 0;
|
|
1972
1972
|
const l = e.children || [];
|
|
1973
|
-
|
|
1973
|
+
so.call(l, (a) => a.dataset && a.dataset.qVsAnchor !== void 0).forEach((a) => {
|
|
1974
1974
|
delete a.dataset.qVsAnchor;
|
|
1975
1975
|
});
|
|
1976
|
-
const
|
|
1977
|
-
|
|
1976
|
+
const o = l[t];
|
|
1977
|
+
o && o.dataset && (o.dataset.qVsAnchor = "");
|
|
1978
1978
|
}));
|
|
1979
1979
|
};
|
|
1980
1980
|
function We(e, t) {
|
|
1981
1981
|
return e + t;
|
|
1982
1982
|
}
|
|
1983
|
-
function Ht(e, t, l,
|
|
1983
|
+
function Ht(e, t, l, o, a, i, u, d) {
|
|
1984
1984
|
const v = e === window ? document.scrollingElement || document.documentElement : e, g = a === !0 ? "offsetWidth" : "offsetHeight", c = {
|
|
1985
1985
|
scrollStart: 0,
|
|
1986
1986
|
scrollViewSize: -u - d,
|
|
@@ -1991,8 +1991,8 @@ function Ht(e, t, l, n, a, i, u, d) {
|
|
|
1991
1991
|
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, i === !0 && (c.scrollStart = (xt === !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)
|
|
1992
1992
|
for (let y = l.previousElementSibling; y !== null; y = y.previousElementSibling)
|
|
1993
1993
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += y[g]);
|
|
1994
|
-
if (
|
|
1995
|
-
for (let y =
|
|
1994
|
+
if (o !== null)
|
|
1995
|
+
for (let y = o.nextElementSibling; y !== null; y = y.nextElementSibling)
|
|
1996
1996
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetEnd += y[g]);
|
|
1997
1997
|
if (t !== e) {
|
|
1998
1998
|
const y = v.getBoundingClientRect(), C = t.getBoundingClientRect();
|
|
@@ -2000,15 +2000,15 @@ function Ht(e, t, l, n, a, i, u, d) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
return c;
|
|
2002
2002
|
}
|
|
2003
|
-
function Tl(e, t, l,
|
|
2004
|
-
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (
|
|
2003
|
+
function Tl(e, t, l, o) {
|
|
2004
|
+
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (o === !0 && (t = (xt === !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 ? (o === !0 && (t = (xt === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
2005
2005
|
}
|
|
2006
|
-
function Ge(e, t, l,
|
|
2007
|
-
if (l >=
|
|
2006
|
+
function Ge(e, t, l, o) {
|
|
2007
|
+
if (l >= o)
|
|
2008
2008
|
return 0;
|
|
2009
|
-
const a = t.length, i = Math.floor(l / fe), u = Math.floor((
|
|
2009
|
+
const a = t.length, i = Math.floor(l / fe), u = Math.floor((o - 1) / fe) + 1;
|
|
2010
2010
|
let d = e.slice(i, u).reduce(We, 0);
|
|
2011
|
-
return l % fe !== 0 && (d -= t.slice(i * fe, l).reduce(We, 0)),
|
|
2011
|
+
return l % fe !== 0 && (d -= t.slice(i * fe, l).reduce(We, 0)), o % fe !== 0 && o !== a && (d -= t.slice(o, u * fe).reduce(We, 0)), d;
|
|
2012
2012
|
}
|
|
2013
2013
|
const ri = {
|
|
2014
2014
|
virtualScrollSliceSize: {
|
|
@@ -2045,14 +2045,14 @@ function si({
|
|
|
2045
2045
|
virtualScrollLength: e,
|
|
2046
2046
|
getVirtualScrollTarget: t,
|
|
2047
2047
|
getVirtualScrollEl: l,
|
|
2048
|
-
virtualScrollItemSizeComputed:
|
|
2048
|
+
virtualScrollItemSizeComputed: o
|
|
2049
2049
|
// optional
|
|
2050
2050
|
}) {
|
|
2051
2051
|
const a = le(), { props: i, emit: u, proxy: d } = a, { $q: v } = d;
|
|
2052
2052
|
let g, c, y, C = [], r;
|
|
2053
2053
|
const m = T(0), _ = T(0), S = T({}), P = T(null), E = T(null), q = T(null), R = T({ from: 0, to: 0 }), D = f(() => i.tableColspan !== void 0 ? i.tableColspan : 100);
|
|
2054
|
-
|
|
2055
|
-
const B = f(() =>
|
|
2054
|
+
o === void 0 && (o = f(() => i.virtualScrollItemSize));
|
|
2055
|
+
const B = f(() => o.value + ";" + i.virtualScrollHorizontal), L = f(
|
|
2056
2056
|
() => B.value + ";" + i.virtualScrollSliceRatioBefore + ";" + i.virtualScrollSliceRatioAfter
|
|
2057
2057
|
);
|
|
2058
2058
|
K(L, () => {
|
|
@@ -2086,7 +2086,7 @@ function si({
|
|
|
2086
2086
|
ui.indexOf(p) !== -1 ? p : c !== -1 && s > c ? "end" : "start"
|
|
2087
2087
|
);
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function oe() {
|
|
2090
2090
|
const s = t();
|
|
2091
2091
|
if (s == null || s.nodeType === 8)
|
|
2092
2092
|
return;
|
|
@@ -2142,10 +2142,10 @@ function si({
|
|
|
2142
2142
|
return;
|
|
2143
2143
|
}
|
|
2144
2144
|
const { activeElement: ze } = document, me = q.value;
|
|
2145
|
-
ve === !0 && me !== null && me !== ze && me.contains(ze) === !0 && (me.addEventListener("focusout",
|
|
2146
|
-
me !== null && me.removeEventListener("focusout",
|
|
2145
|
+
ve === !0 && me !== null && me !== ze && me.contains(ze) === !0 && (me.addEventListener("focusout", ne), setTimeout(() => {
|
|
2146
|
+
me !== null && me.removeEventListener("focusout", ne);
|
|
2147
2147
|
})), ai(me, O - b);
|
|
2148
|
-
const
|
|
2148
|
+
const nt = z !== void 0 ? r.slice(b, O).reduce(We, 0) : 0;
|
|
2149
2149
|
if (ve === !0) {
|
|
2150
2150
|
const ke = Z >= R.value.from && b <= R.value.to ? R.value.to : Z;
|
|
2151
2151
|
R.value = { from: b, to: ke }, m.value = Ge(C, r, 0, b), _.value = Ge(C, r, Z, e.value), requestAnimationFrame(() => {
|
|
@@ -2159,7 +2159,7 @@ function si({
|
|
|
2159
2159
|
const ke = r.slice(b, O).reduce(We, 0), qe = ke + p.offsetStart + m.value, it = qe + r[O];
|
|
2160
2160
|
let Ne = qe + V;
|
|
2161
2161
|
if (z !== void 0) {
|
|
2162
|
-
const qt = ke -
|
|
2162
|
+
const qt = ke - nt, Ke = p.scrollStart + qt;
|
|
2163
2163
|
Ne = F !== !0 && Ke < qe && it < Ke + p.scrollViewSize ? Ke : z === "end" ? it - p.scrollViewSize : qe - (z === "start" ? 0 : Math.round((p.scrollViewSize - r[O]) / 2));
|
|
2164
2164
|
}
|
|
2165
2165
|
g = Ne, Tl(
|
|
@@ -2173,7 +2173,7 @@ function si({
|
|
|
2173
2173
|
function U(s) {
|
|
2174
2174
|
const p = q.value;
|
|
2175
2175
|
if (p) {
|
|
2176
|
-
const O =
|
|
2176
|
+
const O = so.call(
|
|
2177
2177
|
p.children,
|
|
2178
2178
|
(b) => b.classList && b.classList.contains("q-virtual-scroll--skip") === !1
|
|
2179
2179
|
), V = O.length, I = i.virtualScrollHorizontal === !0 ? (b) => b.getBoundingClientRect().width : (b) => b.offsetHeight;
|
|
@@ -2185,11 +2185,11 @@ function si({
|
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function ne() {
|
|
2189
2189
|
q.value !== null && q.value !== void 0 && q.value.focus();
|
|
2190
2190
|
}
|
|
2191
2191
|
function te(s, p) {
|
|
2192
|
-
const O = 1 *
|
|
2192
|
+
const O = 1 * o.value;
|
|
2193
2193
|
(p === !0 || Array.isArray(r) === !1) && (r = []);
|
|
2194
2194
|
const V = r.length;
|
|
2195
2195
|
r.length = e.value;
|
|
@@ -2223,7 +2223,7 @@ function si({
|
|
|
2223
2223
|
).scrollViewSize);
|
|
2224
2224
|
}
|
|
2225
2225
|
y = s;
|
|
2226
|
-
const p = parseFloat(i.virtualScrollSliceRatioBefore) || 0, O = parseFloat(i.virtualScrollSliceRatioAfter) || 0, V = 1 + p + O, I = s === void 0 || s <= 0 ? 1 : Math.ceil(s /
|
|
2226
|
+
const p = parseFloat(i.virtualScrollSliceRatioBefore) || 0, O = parseFloat(i.virtualScrollSliceRatioAfter) || 0, V = 1 + p + O, I = s === void 0 || s <= 0 ? 1 : Math.ceil(s / o.value), F = Math.max(
|
|
2227
2227
|
1,
|
|
2228
2228
|
I,
|
|
2229
2229
|
Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / V)
|
|
@@ -2238,7 +2238,7 @@ function si({
|
|
|
2238
2238
|
}
|
|
2239
2239
|
function re(s, p) {
|
|
2240
2240
|
const O = i.virtualScrollHorizontal === !0 ? "width" : "height", V = {
|
|
2241
|
-
["--q-virtual-scroll-item-" + O]:
|
|
2241
|
+
["--q-virtual-scroll-item-" + O]: o.value + "px"
|
|
2242
2242
|
};
|
|
2243
2243
|
return [
|
|
2244
2244
|
s === "tbody" ? h(s, {
|
|
@@ -2294,10 +2294,10 @@ function si({
|
|
|
2294
2294
|
}
|
|
2295
2295
|
X();
|
|
2296
2296
|
const M = Ql(
|
|
2297
|
-
|
|
2297
|
+
oe,
|
|
2298
2298
|
v.platform.is.ios === !0 ? 120 : 35
|
|
2299
2299
|
);
|
|
2300
|
-
|
|
2300
|
+
Ao(() => {
|
|
2301
2301
|
X();
|
|
2302
2302
|
});
|
|
2303
2303
|
let se = !1;
|
|
@@ -2341,12 +2341,12 @@ function Ce(e, t) {
|
|
|
2341
2341
|
if (e !== null && t !== null && typeof e == "object" && typeof t == "object") {
|
|
2342
2342
|
if (e.constructor !== t.constructor)
|
|
2343
2343
|
return !1;
|
|
2344
|
-
let l,
|
|
2344
|
+
let l, o;
|
|
2345
2345
|
if (e.constructor === Array) {
|
|
2346
2346
|
if (l = e.length, l !== t.length)
|
|
2347
2347
|
return !1;
|
|
2348
|
-
for (
|
|
2349
|
-
if (Ce(e[
|
|
2348
|
+
for (o = l; o-- !== 0; )
|
|
2349
|
+
if (Ce(e[o], t[o]) !== !0)
|
|
2350
2350
|
return !1;
|
|
2351
2351
|
return !0;
|
|
2352
2352
|
}
|
|
@@ -2354,15 +2354,15 @@ function Ce(e, t) {
|
|
|
2354
2354
|
if (e.size !== t.size)
|
|
2355
2355
|
return !1;
|
|
2356
2356
|
let i = e.entries();
|
|
2357
|
-
for (
|
|
2358
|
-
if (t.has(
|
|
2357
|
+
for (o = i.next(); o.done !== !0; ) {
|
|
2358
|
+
if (t.has(o.value[0]) !== !0)
|
|
2359
2359
|
return !1;
|
|
2360
|
-
|
|
2360
|
+
o = i.next();
|
|
2361
2361
|
}
|
|
2362
|
-
for (i = e.entries(),
|
|
2363
|
-
if (Ce(
|
|
2362
|
+
for (i = e.entries(), o = i.next(); o.done !== !0; ) {
|
|
2363
|
+
if (Ce(o.value[1], t.get(o.value[0])) !== !0)
|
|
2364
2364
|
return !1;
|
|
2365
|
-
|
|
2365
|
+
o = i.next();
|
|
2366
2366
|
}
|
|
2367
2367
|
return !0;
|
|
2368
2368
|
}
|
|
@@ -2370,18 +2370,18 @@ function Ce(e, t) {
|
|
|
2370
2370
|
if (e.size !== t.size)
|
|
2371
2371
|
return !1;
|
|
2372
2372
|
const i = e.entries();
|
|
2373
|
-
for (
|
|
2374
|
-
if (t.has(
|
|
2373
|
+
for (o = i.next(); o.done !== !0; ) {
|
|
2374
|
+
if (t.has(o.value[0]) !== !0)
|
|
2375
2375
|
return !1;
|
|
2376
|
-
|
|
2376
|
+
o = i.next();
|
|
2377
2377
|
}
|
|
2378
2378
|
return !0;
|
|
2379
2379
|
}
|
|
2380
2380
|
if (e.buffer != null && e.buffer.constructor === ArrayBuffer) {
|
|
2381
2381
|
if (l = e.length, l !== t.length)
|
|
2382
2382
|
return !1;
|
|
2383
|
-
for (
|
|
2384
|
-
if (e[
|
|
2383
|
+
for (o = l; o-- !== 0; )
|
|
2384
|
+
if (e[o] !== t[o])
|
|
2385
2385
|
return !1;
|
|
2386
2386
|
return !0;
|
|
2387
2387
|
}
|
|
@@ -2394,8 +2394,8 @@ function Ce(e, t) {
|
|
|
2394
2394
|
const a = Object.keys(e).filter((i) => e[i] !== void 0);
|
|
2395
2395
|
if (l = a.length, l !== Object.keys(t).filter((i) => t[i] !== void 0).length)
|
|
2396
2396
|
return !1;
|
|
2397
|
-
for (
|
|
2398
|
-
const i = a[
|
|
2397
|
+
for (o = l; o-- !== 0; ) {
|
|
2398
|
+
const i = a[o];
|
|
2399
2399
|
if (Ce(e[i], t[i]) !== !0)
|
|
2400
2400
|
return !1;
|
|
2401
2401
|
}
|
|
@@ -2406,15 +2406,15 @@ function Ce(e, t) {
|
|
|
2406
2406
|
function zl(e, t, l) {
|
|
2407
2407
|
if (l <= t)
|
|
2408
2408
|
return t;
|
|
2409
|
-
const
|
|
2410
|
-
let a = t + (e - t) %
|
|
2411
|
-
return a < t && (a =
|
|
2409
|
+
const o = l - t + 1;
|
|
2410
|
+
let a = t + (e - t) % o;
|
|
2411
|
+
return a < t && (a = o + a), a === 0 ? 0 : a;
|
|
2412
2412
|
}
|
|
2413
2413
|
const Fl = (e) => ["add", "add-unique", "toggle"].includes(e), hi = ".*+?^${}()|[]\\", gi = Object.keys(Kt);
|
|
2414
2414
|
function $t(e, t) {
|
|
2415
2415
|
if (typeof e == "function") return e;
|
|
2416
2416
|
const l = e !== void 0 ? e : t;
|
|
2417
|
-
return (
|
|
2417
|
+
return (o) => o !== null && typeof o == "object" && l in o ? o[l] : o;
|
|
2418
2418
|
}
|
|
2419
2419
|
const pi = be({
|
|
2420
2420
|
name: "QSelect",
|
|
@@ -2503,10 +2503,10 @@ const pi = be({
|
|
|
2503
2503
|
"filterAbort"
|
|
2504
2504
|
],
|
|
2505
2505
|
setup(e, { slots: t, emit: l }) {
|
|
2506
|
-
const { proxy:
|
|
2506
|
+
const { proxy: o } = le(), { $q: a } = o, i = T(!1), u = T(!1), d = T(-1), v = T(""), g = T(!1), c = T(!1);
|
|
2507
2507
|
let y = null, C = null, r, m, _, S = null, P, E, q, R;
|
|
2508
|
-
const D = T(null), B = T(null), L = T(null), H = T(null), Q = T(null), G =
|
|
2509
|
-
virtualScrollSliceRange:
|
|
2508
|
+
const D = T(null), B = T(null), L = T(null), H = T(null), Q = T(null), G = ln(e), oe = mi(ll), A = f(() => Array.isArray(e.options) ? e.options.length : 0), U = f(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
2509
|
+
virtualScrollSliceRange: ne,
|
|
2510
2510
|
virtualScrollSliceSizeComputed: te,
|
|
2511
2511
|
localResetVirtualScroll: X,
|
|
2512
2512
|
padVirtualScroll: re,
|
|
@@ -2515,31 +2515,31 @@ const pi = be({
|
|
|
2515
2515
|
setVirtualScrollSize: se
|
|
2516
2516
|
} = si({
|
|
2517
2517
|
virtualScrollLength: A,
|
|
2518
|
-
getVirtualScrollTarget:
|
|
2518
|
+
getVirtualScrollTarget: mo,
|
|
2519
2519
|
getVirtualScrollEl: el,
|
|
2520
2520
|
virtualScrollItemSizeComputed: U
|
|
2521
2521
|
}), s = Yl(), p = f(() => {
|
|
2522
|
-
const
|
|
2522
|
+
const n = e.mapOptions === !0 && e.multiple !== !0, w = e.modelValue !== void 0 && (e.modelValue !== null || n === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
2523
2523
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
2524
|
-
const x = e.mapOptions === !0 && r !== void 0 ? r : [], $ = w.map((j) =>
|
|
2525
|
-
return e.modelValue === null &&
|
|
2524
|
+
const x = e.mapOptions === !0 && r !== void 0 ? r : [], $ = w.map((j) => vo(j, x));
|
|
2525
|
+
return e.modelValue === null && n === !0 ? $.filter((j) => j !== null) : $;
|
|
2526
2526
|
}
|
|
2527
2527
|
return w;
|
|
2528
2528
|
}), O = f(() => {
|
|
2529
|
-
const
|
|
2529
|
+
const n = {};
|
|
2530
2530
|
return gi.forEach((w) => {
|
|
2531
2531
|
const x = e[w];
|
|
2532
|
-
x !== void 0 && (
|
|
2533
|
-
}),
|
|
2532
|
+
x !== void 0 && (n[w] = x);
|
|
2533
|
+
}), n;
|
|
2534
2534
|
}), V = f(() => e.optionsDark === null ? s.isDark.value : e.optionsDark), I = f(() => Wt(p.value)), F = f(() => {
|
|
2535
|
-
let
|
|
2536
|
-
return e.hideSelected === !0 || p.value.length === 0 ? [
|
|
2535
|
+
let n = "q-field__input q-placeholder col";
|
|
2536
|
+
return e.hideSelected === !0 || p.value.length === 0 ? [n, e.inputClass] : (n += " q-field__input--padding", e.inputClass === void 0 ? n : [n, e.inputClass]);
|
|
2537
2537
|
}), z = f(
|
|
2538
2538
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
2539
2539
|
), N = f(() => A.value === 0), b = f(
|
|
2540
|
-
() => p.value.map((
|
|
2541
|
-
), Z = f(() => e.displayValue !== void 0 ? e.displayValue : b.value), ve = f(() => e.optionsHtml === !0 ? () => !0 : (
|
|
2542
|
-
const
|
|
2540
|
+
() => p.value.map((n) => ie.value(n)).join(", ")
|
|
2541
|
+
), Z = f(() => e.displayValue !== void 0 ? e.displayValue : b.value), ve = f(() => e.optionsHtml === !0 ? () => !0 : (n) => n != null && n.html === !0), ze = f(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || p.value.some(ve.value))), me = f(() => s.focused.value === !0 ? e.tabindex : -1), nt = f(() => {
|
|
2542
|
+
const n = {
|
|
2543
2543
|
tabindex: e.tabindex,
|
|
2544
2544
|
role: "combobox",
|
|
2545
2545
|
"aria-label": e.label,
|
|
@@ -2548,25 +2548,25 @@ const pi = be({
|
|
|
2548
2548
|
"aria-expanded": i.value === !0 ? "true" : "false",
|
|
2549
2549
|
"aria-controls": `${s.targetUid.value}_lb`
|
|
2550
2550
|
};
|
|
2551
|
-
return d.value >= 0 && (
|
|
2551
|
+
return d.value >= 0 && (n["aria-activedescendant"] = `${s.targetUid.value}_${d.value}`), n;
|
|
2552
2552
|
}), ke = f(() => ({
|
|
2553
2553
|
id: `${s.targetUid.value}_lb`,
|
|
2554
2554
|
role: "listbox",
|
|
2555
2555
|
"aria-multiselectable": e.multiple === !0 ? "true" : "false"
|
|
2556
|
-
})), qe = f(() => p.value.map((
|
|
2556
|
+
})), qe = f(() => p.value.map((n, w) => ({
|
|
2557
2557
|
index: w,
|
|
2558
|
-
opt:
|
|
2559
|
-
html: ve.value(
|
|
2558
|
+
opt: n,
|
|
2559
|
+
html: ve.value(n),
|
|
2560
2560
|
selected: !0,
|
|
2561
|
-
removeAtIndex:
|
|
2561
|
+
removeAtIndex: fo,
|
|
2562
2562
|
toggleOption: Ve,
|
|
2563
2563
|
tabindex: me.value
|
|
2564
2564
|
}))), it = f(() => {
|
|
2565
2565
|
if (A.value === 0)
|
|
2566
2566
|
return [];
|
|
2567
|
-
const { from:
|
|
2568
|
-
return e.options.slice(
|
|
2569
|
-
const j = Fe.value(x) === !0, W = _t(x) === !0, J =
|
|
2567
|
+
const { from: n, to: w } = ne.value;
|
|
2568
|
+
return e.options.slice(n, w).map((x, $) => {
|
|
2569
|
+
const j = Fe.value(x) === !0, W = _t(x) === !0, J = n + $, Y = {
|
|
2570
2570
|
clickable: !0,
|
|
2571
2571
|
active: W,
|
|
2572
2572
|
activeClass: Ke.value,
|
|
@@ -2599,14 +2599,14 @@ const pi = be({
|
|
|
2599
2599
|
});
|
|
2600
2600
|
}), Ne = f(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown), qt = f(
|
|
2601
2601
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
2602
|
-
), Ke = f(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), he = f(() => $t(e.optionValue, "value")), ie = f(() => $t(e.optionLabel, "label")), Fe = f(() => $t(e.optionDisable, "disable")), ut = f(() => p.value.map(he.value)),
|
|
2603
|
-
const
|
|
2602
|
+
), Ke = f(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), he = f(() => $t(e.optionValue, "value")), ie = f(() => $t(e.optionLabel, "label")), Fe = f(() => $t(e.optionDisable, "disable")), ut = f(() => p.value.map(he.value)), co = f(() => {
|
|
2603
|
+
const n = {
|
|
2604
2604
|
onInput: ll,
|
|
2605
2605
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
2606
2606
|
// switching focus before confirming composition choice
|
|
2607
2607
|
// this also fixes the issue where some browsers e.g. iOS Chrome
|
|
2608
2608
|
// fires "change" instead of "input" on autocomplete.
|
|
2609
|
-
onChange:
|
|
2609
|
+
onChange: oe,
|
|
2610
2610
|
onKeydown: Jt,
|
|
2611
2611
|
onKeyup: Gt,
|
|
2612
2612
|
onKeypress: Zt,
|
|
@@ -2615,30 +2615,30 @@ const pi = be({
|
|
|
2615
2615
|
m === !0 && De(w);
|
|
2616
2616
|
}
|
|
2617
2617
|
};
|
|
2618
|
-
return
|
|
2618
|
+
return n.onCompositionstart = n.onCompositionupdate = n.onCompositionend = oe, n;
|
|
2619
2619
|
});
|
|
2620
|
-
K(p, (
|
|
2621
|
-
r =
|
|
2622
|
-
}, { immediate: !0 }), K(() => e.fillInput, He), K(i, Et), K(A,
|
|
2623
|
-
function Qt(
|
|
2624
|
-
return e.emitValue === !0 ? he.value(
|
|
2625
|
-
}
|
|
2626
|
-
function Vt(
|
|
2627
|
-
if (
|
|
2620
|
+
K(p, (n) => {
|
|
2621
|
+
r = n, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && s.innerLoading.value !== !0 && (u.value !== !0 && i.value !== !0 || I.value !== !0) && (_ !== !0 && He(), (u.value === !0 || i.value === !0) && Le(""));
|
|
2622
|
+
}, { immediate: !0 }), K(() => e.fillInput, He), K(i, Et), K(A, Vo);
|
|
2623
|
+
function Qt(n) {
|
|
2624
|
+
return e.emitValue === !0 ? he.value(n) : n;
|
|
2625
|
+
}
|
|
2626
|
+
function Vt(n) {
|
|
2627
|
+
if (n !== -1 && n < p.value.length)
|
|
2628
2628
|
if (e.multiple === !0) {
|
|
2629
2629
|
const w = e.modelValue.slice();
|
|
2630
|
-
l("remove", { index:
|
|
2630
|
+
l("remove", { index: n, value: w.splice(n, 1)[0] }), l("update:modelValue", w);
|
|
2631
2631
|
} else
|
|
2632
2632
|
l("update:modelValue", null);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
Vt(
|
|
2634
|
+
function fo(n) {
|
|
2635
|
+
Vt(n), s.focus();
|
|
2636
2636
|
}
|
|
2637
|
-
function Ut(
|
|
2638
|
-
const x = Qt(
|
|
2637
|
+
function Ut(n, w) {
|
|
2638
|
+
const x = Qt(n);
|
|
2639
2639
|
if (e.multiple !== !0) {
|
|
2640
2640
|
e.fillInput === !0 && Qe(
|
|
2641
|
-
ie.value(
|
|
2641
|
+
ie.value(n),
|
|
2642
2642
|
!0,
|
|
2643
2643
|
!0
|
|
2644
2644
|
), l("update:modelValue", x);
|
|
@@ -2648,25 +2648,25 @@ const pi = be({
|
|
|
2648
2648
|
l("add", { index: 0, value: x }), l("update:modelValue", e.multiple === !0 ? [x] : x);
|
|
2649
2649
|
return;
|
|
2650
2650
|
}
|
|
2651
|
-
if (w === !0 && _t(
|
|
2651
|
+
if (w === !0 && _t(n) === !0 || e.maxValues !== void 0 && e.modelValue.length >= e.maxValues)
|
|
2652
2652
|
return;
|
|
2653
2653
|
const $ = e.modelValue.slice();
|
|
2654
2654
|
l("add", { index: $.length, value: x }), $.push(x), l("update:modelValue", $);
|
|
2655
2655
|
}
|
|
2656
|
-
function Ve(
|
|
2657
|
-
if (s.editable.value !== !0 ||
|
|
2656
|
+
function Ve(n, w) {
|
|
2657
|
+
if (s.editable.value !== !0 || n === void 0 || Fe.value(n) === !0)
|
|
2658
2658
|
return;
|
|
2659
|
-
const x = he.value(
|
|
2659
|
+
const x = he.value(n);
|
|
2660
2660
|
if (e.multiple !== !0) {
|
|
2661
2661
|
w !== !0 && (Qe(
|
|
2662
|
-
e.fillInput === !0 ? ie.value(
|
|
2662
|
+
e.fillInput === !0 ? ie.value(n) : "",
|
|
2663
2663
|
!0,
|
|
2664
2664
|
!0
|
|
2665
|
-
), _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 :
|
|
2665
|
+
), _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 : n);
|
|
2666
2666
|
return;
|
|
2667
2667
|
}
|
|
2668
2668
|
if ((m !== !0 || g.value === !0) && s.focus(), Xt(), p.value.length === 0) {
|
|
2669
|
-
const W = e.emitValue === !0 ? x :
|
|
2669
|
+
const W = e.emitValue === !0 ? x : n;
|
|
2670
2670
|
l("add", { index: 0, value: W }), l("update:modelValue", e.multiple === !0 ? [W] : W);
|
|
2671
2671
|
return;
|
|
2672
2672
|
}
|
|
@@ -2676,22 +2676,22 @@ const pi = be({
|
|
|
2676
2676
|
else {
|
|
2677
2677
|
if (e.maxValues !== void 0 && $.length >= e.maxValues)
|
|
2678
2678
|
return;
|
|
2679
|
-
const W = e.emitValue === !0 ? x :
|
|
2679
|
+
const W = e.emitValue === !0 ? x : n;
|
|
2680
2680
|
l("add", { index: $.length, value: W }), $.push(W);
|
|
2681
2681
|
}
|
|
2682
2682
|
l("update:modelValue", $);
|
|
2683
2683
|
}
|
|
2684
|
-
function Me(
|
|
2684
|
+
function Me(n) {
|
|
2685
2685
|
if (a.platform.is.desktop !== !0) return;
|
|
2686
|
-
const w =
|
|
2686
|
+
const w = n !== -1 && n < A.value ? n : -1;
|
|
2687
2687
|
d.value !== w && (d.value = w);
|
|
2688
2688
|
}
|
|
2689
|
-
function at(
|
|
2689
|
+
function at(n = 1, w) {
|
|
2690
2690
|
if (i.value === !0) {
|
|
2691
2691
|
let x = d.value;
|
|
2692
2692
|
do
|
|
2693
2693
|
x = zl(
|
|
2694
|
-
x +
|
|
2694
|
+
x + n,
|
|
2695
2695
|
-1,
|
|
2696
2696
|
A.value - 1
|
|
2697
2697
|
);
|
|
@@ -2702,27 +2702,27 @@ const pi = be({
|
|
|
2702
2702
|
));
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2706
|
-
const x = ($) => Ce(he.value($),
|
|
2707
|
-
return e.options.find(x) || w.find(x) ||
|
|
2705
|
+
function vo(n, w) {
|
|
2706
|
+
const x = ($) => Ce(he.value($), n);
|
|
2707
|
+
return e.options.find(x) || w.find(x) || n;
|
|
2708
2708
|
}
|
|
2709
|
-
function _t(
|
|
2710
|
-
const w = he.value(
|
|
2709
|
+
function _t(n) {
|
|
2710
|
+
const w = he.value(n);
|
|
2711
2711
|
return ut.value.find((x) => Ce(x, w)) !== void 0;
|
|
2712
2712
|
}
|
|
2713
|
-
function Xt(
|
|
2714
|
-
e.useInput === !0 && B.value !== null && (
|
|
2713
|
+
function Xt(n) {
|
|
2714
|
+
e.useInput === !0 && B.value !== null && (n === void 0 || B.value === n.target && n.target.value === b.value) && B.value.select();
|
|
2715
2715
|
}
|
|
2716
|
-
function Yt(
|
|
2717
|
-
kt(
|
|
2716
|
+
function Yt(n) {
|
|
2717
|
+
kt(n, 27) === !0 && i.value === !0 && (De(n), _e(), He()), l("keyup", n);
|
|
2718
2718
|
}
|
|
2719
|
-
function Gt(
|
|
2720
|
-
const { value: w } =
|
|
2721
|
-
if (
|
|
2722
|
-
Yt(
|
|
2719
|
+
function Gt(n) {
|
|
2720
|
+
const { value: w } = n.target;
|
|
2721
|
+
if (n.keyCode !== void 0) {
|
|
2722
|
+
Yt(n);
|
|
2723
2723
|
return;
|
|
2724
2724
|
}
|
|
2725
|
-
if (
|
|
2725
|
+
if (n.target.value = "", y !== null && (clearTimeout(y), y = null), C !== null && (clearTimeout(C), C = null), He(), typeof w == "string" && w.length !== 0) {
|
|
2726
2726
|
const x = w.toLocaleLowerCase(), $ = (W) => {
|
|
2727
2727
|
const J = e.options.find((Y) => String(W.value(Y)).toLocaleLowerCase() === x);
|
|
2728
2728
|
return J === void 0 ? !1 : (p.value.indexOf(J) === -1 ? Ve(J) : _e(), !0);
|
|
@@ -2731,44 +2731,44 @@ const pi = be({
|
|
|
2731
2731
|
};
|
|
2732
2732
|
j();
|
|
2733
2733
|
} else
|
|
2734
|
-
s.clearValue(
|
|
2734
|
+
s.clearValue(n);
|
|
2735
2735
|
}
|
|
2736
|
-
function Zt(
|
|
2737
|
-
l("keypress",
|
|
2736
|
+
function Zt(n) {
|
|
2737
|
+
l("keypress", n);
|
|
2738
2738
|
}
|
|
2739
|
-
function Jt(
|
|
2740
|
-
if (l("keydown",
|
|
2739
|
+
function Jt(n) {
|
|
2740
|
+
if (l("keydown", n), Xo(n) === !0)
|
|
2741
2741
|
return;
|
|
2742
|
-
const w = v.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), x =
|
|
2743
|
-
if (
|
|
2744
|
-
pe(
|
|
2742
|
+
const w = v.value.length !== 0 && (e.newValueMode !== void 0 || e.onNewValue !== void 0), x = n.shiftKey !== !0 && e.disableTabSelection !== !0 && e.multiple !== !0 && (d.value !== -1 || w === !0);
|
|
2743
|
+
if (n.keyCode === 27) {
|
|
2744
|
+
pe(n);
|
|
2745
2745
|
return;
|
|
2746
2746
|
}
|
|
2747
|
-
if (
|
|
2747
|
+
if (n.keyCode === 9 && x === !1) {
|
|
2748
2748
|
Oe();
|
|
2749
2749
|
return;
|
|
2750
2750
|
}
|
|
2751
|
-
if (
|
|
2752
|
-
if (
|
|
2753
|
-
ae(
|
|
2751
|
+
if (n.target === void 0 || n.target.id !== s.targetUid.value || s.editable.value !== !0) return;
|
|
2752
|
+
if (n.keyCode === 40 && s.innerLoading.value !== !0 && i.value === !1) {
|
|
2753
|
+
ae(n), Ie();
|
|
2754
2754
|
return;
|
|
2755
2755
|
}
|
|
2756
|
-
if (
|
|
2756
|
+
if (n.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && v.value.length === 0) {
|
|
2757
2757
|
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? Vt(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
2758
2758
|
return;
|
|
2759
2759
|
}
|
|
2760
|
-
(
|
|
2760
|
+
(n.keyCode === 35 || n.keyCode === 36) && (typeof v.value != "string" || v.value.length === 0) && (ae(n), d.value = -1, at(n.keyCode === 36 ? 1 : -1, e.multiple)), (n.keyCode === 33 || n.keyCode === 34) && te.value !== void 0 && (ae(n), d.value = Math.max(
|
|
2761
2761
|
-1,
|
|
2762
2762
|
Math.min(
|
|
2763
2763
|
A.value,
|
|
2764
|
-
d.value + (
|
|
2764
|
+
d.value + (n.keyCode === 33 ? -1 : 1) * te.value.view
|
|
2765
2765
|
)
|
|
2766
|
-
), at(
|
|
2766
|
+
), at(n.keyCode === 33 ? 1 : -1, e.multiple)), (n.keyCode === 38 || n.keyCode === 40) && (ae(n), at(n.keyCode === 38 ? -1 : 1, e.multiple));
|
|
2767
2767
|
const $ = A.value;
|
|
2768
|
-
if ((q === void 0 || R < Date.now()) && (q = ""), $ > 0 && e.useInput !== !0 &&
|
|
2769
|
-
i.value !== !0 && Ie(
|
|
2770
|
-
const j =
|
|
2771
|
-
R = Date.now() + 1500, W === !1 && (ae(
|
|
2768
|
+
if ((q === void 0 || R < Date.now()) && (q = ""), $ > 0 && e.useInput !== !0 && n.key !== void 0 && n.key.length === 1 && n.altKey === !1 && n.ctrlKey === !1 && n.metaKey === !1 && (n.keyCode !== 32 || q.length !== 0)) {
|
|
2769
|
+
i.value !== !0 && Ie(n);
|
|
2770
|
+
const j = n.key.toLocaleLowerCase(), W = q.length === 1 && q[0] === j;
|
|
2771
|
+
R = Date.now() + 1500, W === !1 && (ae(n), q += j);
|
|
2772
2772
|
const J = new RegExp("^" + q.split("").map((Bt) => hi.indexOf(Bt) !== -1 ? "\\" + Bt : Bt).join(".*"), "i");
|
|
2773
2773
|
let Y = d.value;
|
|
2774
2774
|
if (W === !0 || Y < 0 || J.test(ie.value(e.options[Y])) !== !0)
|
|
@@ -2780,8 +2780,8 @@ const pi = be({
|
|
|
2780
2780
|
});
|
|
2781
2781
|
return;
|
|
2782
2782
|
}
|
|
2783
|
-
if (!(
|
|
2784
|
-
if (
|
|
2783
|
+
if (!(n.keyCode !== 13 && (n.keyCode !== 32 || e.useInput === !0 || q !== "") && (n.keyCode !== 9 || x === !1))) {
|
|
2784
|
+
if (n.keyCode !== 9 && ae(n), d.value !== -1 && d.value < $) {
|
|
2785
2785
|
Ve(e.options[d.value]);
|
|
2786
2786
|
return;
|
|
2787
2787
|
}
|
|
@@ -2805,22 +2805,22 @@ const pi = be({
|
|
|
2805
2805
|
function el() {
|
|
2806
2806
|
return m === !0 ? Q.value : L.value !== null && L.value.contentEl !== null ? L.value.contentEl : void 0;
|
|
2807
2807
|
}
|
|
2808
|
-
function
|
|
2808
|
+
function mo() {
|
|
2809
2809
|
return el();
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2812
|
-
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? qe.value.map((
|
|
2811
|
+
function ho() {
|
|
2812
|
+
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? qe.value.map((n) => t["selected-item"](n)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? qe.value.map((n, w) => h(kn, {
|
|
2813
2813
|
key: "option-" + w,
|
|
2814
|
-
removable: s.editable.value === !0 && Fe.value(
|
|
2814
|
+
removable: s.editable.value === !0 && Fe.value(n.opt) !== !0,
|
|
2815
2815
|
dense: !0,
|
|
2816
2816
|
textColor: e.color,
|
|
2817
2817
|
tabindex: me.value,
|
|
2818
2818
|
onRemove() {
|
|
2819
|
-
|
|
2819
|
+
n.removeAtIndex(w);
|
|
2820
2820
|
}
|
|
2821
2821
|
}, () => h("span", {
|
|
2822
2822
|
class: "ellipsis",
|
|
2823
|
-
[
|
|
2823
|
+
[n.html === !0 ? "innerHTML" : "textContent"]: ie.value(n.opt)
|
|
2824
2824
|
}))) : [
|
|
2825
2825
|
h("span", {
|
|
2826
2826
|
[ze.value === !0 ? "innerHTML" : "textContent"]: Z.value
|
|
@@ -2830,7 +2830,7 @@ const pi = be({
|
|
|
2830
2830
|
function tl() {
|
|
2831
2831
|
if (N.value === !0)
|
|
2832
2832
|
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: v.value }) : void 0;
|
|
2833
|
-
const
|
|
2833
|
+
const n = t.option !== void 0 ? t.option : (x) => h(Kl, {
|
|
2834
2834
|
key: x.index,
|
|
2835
2835
|
...x.itemProps
|
|
2836
2836
|
}, () => h(
|
|
@@ -2842,11 +2842,11 @@ const pi = be({
|
|
|
2842
2842
|
})
|
|
2843
2843
|
)
|
|
2844
2844
|
));
|
|
2845
|
-
let w = re("div", it.value.map(
|
|
2845
|
+
let w = re("div", it.value.map(n));
|
|
2846
2846
|
return t["before-options"] !== void 0 && (w = t["before-options"]().concat(w)), Il(t["after-options"], w);
|
|
2847
2847
|
}
|
|
2848
|
-
function
|
|
2849
|
-
const x = w === !0 ? { ...
|
|
2848
|
+
function go(n, w) {
|
|
2849
|
+
const x = w === !0 ? { ...nt.value, ...s.splitAttrs.attributes.value } : void 0, $ = {
|
|
2850
2850
|
ref: w === !0 ? B : void 0,
|
|
2851
2851
|
key: "i_t",
|
|
2852
2852
|
class: F.value,
|
|
@@ -2858,42 +2858,42 @@ const pi = be({
|
|
|
2858
2858
|
id: w === !0 ? s.targetUid.value : void 0,
|
|
2859
2859
|
maxlength: e.maxlength,
|
|
2860
2860
|
autocomplete: e.autocomplete,
|
|
2861
|
-
"data-autofocus":
|
|
2861
|
+
"data-autofocus": n === !0 || e.autofocus === !0 || void 0,
|
|
2862
2862
|
disabled: e.disable === !0,
|
|
2863
2863
|
readonly: e.readonly === !0,
|
|
2864
|
-
...
|
|
2864
|
+
...co.value
|
|
2865
2865
|
};
|
|
2866
|
-
return
|
|
2866
|
+
return n !== !0 && m === !0 && (Array.isArray($.class) === !0 ? $.class = [...$.class, "no-pointer-events"] : $.class += " no-pointer-events"), h("input", $);
|
|
2867
2867
|
}
|
|
2868
|
-
function ll(
|
|
2869
|
-
y !== null && (clearTimeout(y), y = null), C !== null && (clearTimeout(C), C = null), !(
|
|
2868
|
+
function ll(n) {
|
|
2869
|
+
y !== null && (clearTimeout(y), y = null), C !== null && (clearTimeout(C), C = null), !(n && n.target && n.target.qComposing === !0) && (rt(n.target.value || ""), _ = !0, P = v.value, s.focused.value !== !0 && (m !== !0 || g.value === !0) && s.focus(), e.onFilter !== void 0 && (y = setTimeout(() => {
|
|
2870
2870
|
y = null, Le(v.value);
|
|
2871
2871
|
}, e.inputDebounce)));
|
|
2872
2872
|
}
|
|
2873
|
-
function rt(
|
|
2874
|
-
v.value !==
|
|
2875
|
-
C = null, l("inputValue",
|
|
2873
|
+
function rt(n, w) {
|
|
2874
|
+
v.value !== n && (v.value = n, w === !0 || e.inputDebounce === 0 || e.inputDebounce === "0" ? l("inputValue", n) : C = setTimeout(() => {
|
|
2875
|
+
C = null, l("inputValue", n);
|
|
2876
2876
|
}, e.inputDebounce));
|
|
2877
2877
|
}
|
|
2878
|
-
function Qe(
|
|
2879
|
-
_ = x !== !0, e.useInput === !0 && (rt(
|
|
2878
|
+
function Qe(n, w, x) {
|
|
2879
|
+
_ = x !== !0, e.useInput === !0 && (rt(n, !0), (w === !0 || x !== !0) && (P = n), w !== !0 && Le(n));
|
|
2880
2880
|
}
|
|
2881
|
-
function Le(
|
|
2881
|
+
function Le(n, w, x) {
|
|
2882
2882
|
if (e.onFilter === void 0 || w !== !0 && s.focused.value !== !0)
|
|
2883
2883
|
return;
|
|
2884
|
-
s.innerLoading.value === !0 ? l("filterAbort") : (s.innerLoading.value = !0, c.value = !0),
|
|
2884
|
+
s.innerLoading.value === !0 ? l("filterAbort") : (s.innerLoading.value = !0, c.value = !0), n !== "" && e.multiple !== !0 && p.value.length !== 0 && _ !== !0 && n === ie.value(p.value[0]) && (n = "");
|
|
2885
2885
|
const $ = setTimeout(() => {
|
|
2886
2886
|
i.value === !0 && (i.value = !1);
|
|
2887
2887
|
}, 10);
|
|
2888
2888
|
S !== null && clearTimeout(S), S = $, l(
|
|
2889
2889
|
"filter",
|
|
2890
|
-
|
|
2890
|
+
n,
|
|
2891
2891
|
(j, W) => {
|
|
2892
2892
|
(w === !0 || s.focused.value === !0) && S === $ && (clearTimeout(S), typeof j == "function" && j(), c.value = !1, ue(() => {
|
|
2893
2893
|
s.innerLoading.value = !1, s.editable.value === !0 && (w === !0 ? i.value === !0 && _e() : i.value === !0 ? Et(!0) : i.value = !0), typeof W == "function" && ue(() => {
|
|
2894
|
-
W(
|
|
2894
|
+
W(o);
|
|
2895
2895
|
}), typeof x == "function" && ue(() => {
|
|
2896
|
-
x(
|
|
2896
|
+
x(o);
|
|
2897
2897
|
});
|
|
2898
2898
|
}));
|
|
2899
2899
|
},
|
|
@@ -2902,8 +2902,8 @@ const pi = be({
|
|
|
2902
2902
|
}
|
|
2903
2903
|
);
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2906
|
-
return h(
|
|
2905
|
+
function po() {
|
|
2906
|
+
return h(Zn, {
|
|
2907
2907
|
ref: L,
|
|
2908
2908
|
class: z.value,
|
|
2909
2909
|
style: e.popupContentStyle,
|
|
@@ -2925,28 +2925,28 @@ const pi = be({
|
|
|
2925
2925
|
separateClosePopup: !0,
|
|
2926
2926
|
...ke.value,
|
|
2927
2927
|
onScrollPassive: k,
|
|
2928
|
-
onBeforeShow:
|
|
2929
|
-
onBeforeHide:
|
|
2930
|
-
onShow:
|
|
2928
|
+
onBeforeShow: nl,
|
|
2929
|
+
onBeforeHide: bo,
|
|
2930
|
+
onShow: yo
|
|
2931
2931
|
}, tl);
|
|
2932
2932
|
}
|
|
2933
|
-
function
|
|
2934
|
-
il(
|
|
2933
|
+
function bo(n) {
|
|
2934
|
+
il(n), Oe();
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2936
|
+
function yo() {
|
|
2937
2937
|
se();
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2940
|
-
De(
|
|
2939
|
+
function So(n) {
|
|
2940
|
+
De(n), B.value !== null && B.value.focus(), g.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2943
|
-
De(
|
|
2942
|
+
function wo(n) {
|
|
2943
|
+
De(n), ue(() => {
|
|
2944
2944
|
g.value = !1;
|
|
2945
2945
|
});
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2948
|
-
const
|
|
2949
|
-
h(
|
|
2947
|
+
function xo() {
|
|
2948
|
+
const n = [
|
|
2949
|
+
h(xn, {
|
|
2950
2950
|
class: `col-auto ${s.fieldClass.value}`,
|
|
2951
2951
|
...O.value,
|
|
2952
2952
|
for: s.targetUid.value,
|
|
@@ -2957,8 +2957,8 @@ const pi = be({
|
|
|
2957
2957
|
filled: !0,
|
|
2958
2958
|
stackLabel: v.value.length !== 0,
|
|
2959
2959
|
...s.splitAttrs.listeners.value,
|
|
2960
|
-
onFocus:
|
|
2961
|
-
onBlur:
|
|
2960
|
+
onFocus: So,
|
|
2961
|
+
onBlur: wo
|
|
2962
2962
|
}, {
|
|
2963
2963
|
...t,
|
|
2964
2964
|
rawControl: () => s.getControl(!0),
|
|
@@ -2966,7 +2966,7 @@ const pi = be({
|
|
|
2966
2966
|
after: void 0
|
|
2967
2967
|
})
|
|
2968
2968
|
];
|
|
2969
|
-
return i.value === !0 &&
|
|
2969
|
+
return i.value === !0 && n.push(
|
|
2970
2970
|
h("div", {
|
|
2971
2971
|
ref: Q,
|
|
2972
2972
|
class: z.value + " scroll",
|
|
@@ -2983,31 +2983,31 @@ const pi = be({
|
|
|
2983
2983
|
transitionHide: e.transitionHide,
|
|
2984
2984
|
transitionDuration: e.transitionDuration,
|
|
2985
2985
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
2986
|
-
onBeforeShow:
|
|
2987
|
-
onBeforeHide:
|
|
2988
|
-
onHide:
|
|
2989
|
-
onShow:
|
|
2986
|
+
onBeforeShow: nl,
|
|
2987
|
+
onBeforeHide: Co,
|
|
2988
|
+
onHide: ko,
|
|
2989
|
+
onShow: qo
|
|
2990
2990
|
}, () => h("div", {
|
|
2991
2991
|
class: "q-select__dialog" + (V.value === !0 ? " q-select__dialog--dark q-dark" : "") + (g.value === !0 ? " q-select__dialog--focused" : "")
|
|
2992
|
-
},
|
|
2992
|
+
}, n));
|
|
2993
2993
|
}
|
|
2994
|
-
function
|
|
2995
|
-
il(
|
|
2994
|
+
function Co(n) {
|
|
2995
|
+
il(n), H.value !== null && H.value.__updateRefocusTarget(
|
|
2996
2996
|
s.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
2997
2997
|
), s.focused.value = !1;
|
|
2998
2998
|
}
|
|
2999
|
-
function
|
|
3000
|
-
_e(), s.focused.value === !1 && l("blur",
|
|
2999
|
+
function ko(n) {
|
|
3000
|
+
_e(), s.focused.value === !1 && l("blur", n), He();
|
|
3001
3001
|
}
|
|
3002
|
-
function
|
|
3003
|
-
const
|
|
3004
|
-
(
|
|
3002
|
+
function qo() {
|
|
3003
|
+
const n = document.activeElement;
|
|
3004
|
+
(n === null || n.id !== s.targetUid.value) && B.value !== null && B.value !== n && B.value.focus(), se();
|
|
3005
3005
|
}
|
|
3006
3006
|
function Oe() {
|
|
3007
3007
|
u.value !== !0 && (d.value = -1, i.value === !0 && (i.value = !1), s.focused.value === !1 && (S !== null && (clearTimeout(S), S = null), s.innerLoading.value === !0 && (l("filterAbort"), s.innerLoading.value = !1, c.value = !1)));
|
|
3008
3008
|
}
|
|
3009
|
-
function Ie(
|
|
3010
|
-
s.editable.value === !0 && (m === !0 ? (s.onControlFocusin(
|
|
3009
|
+
function Ie(n) {
|
|
3010
|
+
s.editable.value === !0 && (m === !0 ? (s.onControlFocusin(n), u.value = !0, ue(() => {
|
|
3011
3011
|
s.focus();
|
|
3012
3012
|
})) : s.focus(), e.onFilter !== void 0 ? Le(v.value) : (N.value !== !0 || t["no-option"] !== void 0) && (i.value = !0));
|
|
3013
3013
|
}
|
|
@@ -3021,9 +3021,9 @@ const pi = be({
|
|
|
3021
3021
|
!0
|
|
3022
3022
|
);
|
|
3023
3023
|
}
|
|
3024
|
-
function Et(
|
|
3024
|
+
function Et(n) {
|
|
3025
3025
|
let w = -1;
|
|
3026
|
-
if (
|
|
3026
|
+
if (n === !0) {
|
|
3027
3027
|
if (p.value.length !== 0) {
|
|
3028
3028
|
const x = he.value(p.value[0]);
|
|
3029
3029
|
w = e.options.findIndex(($) => Ce(he.value($), x));
|
|
@@ -3032,26 +3032,26 @@ const pi = be({
|
|
|
3032
3032
|
}
|
|
3033
3033
|
Me(w);
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function Vo(n, w) {
|
|
3036
3036
|
i.value === !0 && s.innerLoading.value === !1 && (X(-1, !0), ue(() => {
|
|
3037
|
-
i.value === !0 && s.innerLoading.value === !1 && (
|
|
3037
|
+
i.value === !0 && s.innerLoading.value === !1 && (n > w ? X() : Et(!0));
|
|
3038
3038
|
}));
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function ol() {
|
|
3041
3041
|
u.value === !1 && L.value !== null && L.value.updatePosition();
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3044
|
-
|
|
3043
|
+
function nl(n) {
|
|
3044
|
+
n !== void 0 && De(n), l("popupShow", n), s.hasPopupOpen = !0, s.onControlFocusin(n);
|
|
3045
3045
|
}
|
|
3046
|
-
function il(
|
|
3047
|
-
|
|
3046
|
+
function il(n) {
|
|
3047
|
+
n !== void 0 && De(n), l("popupHide", n), s.hasPopupOpen = !1, s.onControlFocusout(n);
|
|
3048
3048
|
}
|
|
3049
3049
|
function ul() {
|
|
3050
3050
|
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;
|
|
3051
3051
|
}
|
|
3052
|
-
return Ml(ul),
|
|
3052
|
+
return Ml(ul), To(ol), ul(), ce(() => {
|
|
3053
3053
|
y !== null && clearTimeout(y), C !== null && clearTimeout(C);
|
|
3054
|
-
}), Object.assign(
|
|
3054
|
+
}), Object.assign(o, {
|
|
3055
3055
|
showPopup: Ie,
|
|
3056
3056
|
hidePopup: _e,
|
|
3057
3057
|
removeAtIndex: Vt,
|
|
@@ -3061,13 +3061,13 @@ const pi = be({
|
|
|
3061
3061
|
setOptionIndex: Me,
|
|
3062
3062
|
moveOptionSelection: at,
|
|
3063
3063
|
filter: Le,
|
|
3064
|
-
updateMenuPosition:
|
|
3064
|
+
updateMenuPosition: ol,
|
|
3065
3065
|
updateInputValue: Qe,
|
|
3066
3066
|
isOptionSelected: _t,
|
|
3067
3067
|
getEmittingOptionValue: Qt,
|
|
3068
|
-
isOptionDisabled: (...
|
|
3069
|
-
getOptionValue: (...
|
|
3070
|
-
getOptionLabel: (...
|
|
3068
|
+
isOptionDisabled: (...n) => Fe.value.apply(null, n) === !0,
|
|
3069
|
+
getOptionValue: (...n) => he.value.apply(null, n),
|
|
3070
|
+
getOptionLabel: (...n) => ie.value.apply(null, n)
|
|
3071
3071
|
}), Object.assign(s, {
|
|
3072
3072
|
innerValue: p,
|
|
3073
3073
|
fieldClass: f(
|
|
@@ -3082,32 +3082,32 @@ const pi = be({
|
|
|
3082
3082
|
),
|
|
3083
3083
|
getControlChild: () => {
|
|
3084
3084
|
if (s.editable.value !== !1 && (u.value === !0 || N.value !== !0 || t["no-option"] !== void 0))
|
|
3085
|
-
return m === !0 ?
|
|
3085
|
+
return m === !0 ? xo() : po();
|
|
3086
3086
|
s.hasPopupOpen === !0 && (s.hasPopupOpen = !1);
|
|
3087
3087
|
},
|
|
3088
3088
|
controlEvents: {
|
|
3089
|
-
onFocusin(
|
|
3090
|
-
s.onControlFocusin(
|
|
3089
|
+
onFocusin(n) {
|
|
3090
|
+
s.onControlFocusin(n);
|
|
3091
3091
|
},
|
|
3092
|
-
onFocusout(
|
|
3093
|
-
s.onControlFocusout(
|
|
3092
|
+
onFocusout(n) {
|
|
3093
|
+
s.onControlFocusout(n, () => {
|
|
3094
3094
|
He(), Oe();
|
|
3095
3095
|
});
|
|
3096
3096
|
},
|
|
3097
|
-
onClick(
|
|
3098
|
-
if (pe(
|
|
3097
|
+
onClick(n) {
|
|
3098
|
+
if (pe(n), m !== !0 && i.value === !0) {
|
|
3099
3099
|
Oe(), B.value !== null && B.value.focus();
|
|
3100
3100
|
return;
|
|
3101
3101
|
}
|
|
3102
|
-
Ie(
|
|
3102
|
+
Ie(n);
|
|
3103
3103
|
}
|
|
3104
3104
|
},
|
|
3105
|
-
getControl: (
|
|
3106
|
-
const w =
|
|
3105
|
+
getControl: (n) => {
|
|
3106
|
+
const w = ho(), x = n === !0 || u.value !== !0 || m !== !0;
|
|
3107
3107
|
if (e.useInput === !0)
|
|
3108
|
-
w.push(
|
|
3108
|
+
w.push(go(n, x));
|
|
3109
3109
|
else if (s.editable.value === !0) {
|
|
3110
|
-
const j = x === !0 ?
|
|
3110
|
+
const j = x === !0 ? nt.value : void 0;
|
|
3111
3111
|
w.push(
|
|
3112
3112
|
h("input", {
|
|
3113
3113
|
ref: x === !0 ? B : void 0,
|
|
@@ -3116,7 +3116,7 @@ const pi = be({
|
|
|
3116
3116
|
id: x === !0 ? s.targetUid.value : void 0,
|
|
3117
3117
|
value: Z.value,
|
|
3118
3118
|
readonly: !0,
|
|
3119
|
-
"data-autofocus":
|
|
3119
|
+
"data-autofocus": n === !0 || e.autofocus === !0 || void 0,
|
|
3120
3120
|
...j,
|
|
3121
3121
|
onKeydown: Jt,
|
|
3122
3122
|
onKeyup: Yt,
|
|
@@ -3156,11 +3156,11 @@ const pi = be({
|
|
|
3156
3156
|
] : null
|
|
3157
3157
|
}), Gl(s);
|
|
3158
3158
|
}
|
|
3159
|
-
}), bi = { class: "app-select__amount" }, yi = /* @__PURE__ */
|
|
3160
|
-
__name: "
|
|
3159
|
+
}), bi = { class: "app-select__amount" }, yi = /* @__PURE__ */ Ro({
|
|
3160
|
+
__name: "AppSelect",
|
|
3161
3161
|
props: {
|
|
3162
3162
|
modelValue: {},
|
|
3163
|
-
size: { default:
|
|
3163
|
+
size: { default: Yo.MD },
|
|
3164
3164
|
options: {},
|
|
3165
3165
|
multiple: { type: Boolean },
|
|
3166
3166
|
label: {},
|
|
@@ -3176,12 +3176,12 @@ const pi = be({
|
|
|
3176
3176
|
},
|
|
3177
3177
|
emits: ["update:modelValue"],
|
|
3178
3178
|
setup(e, { emit: t }) {
|
|
3179
|
-
const l = e,
|
|
3179
|
+
const l = e, o = t, a = T(!1), i = T(""), u = f({
|
|
3180
3180
|
get() {
|
|
3181
3181
|
return l.modelValue;
|
|
3182
3182
|
},
|
|
3183
3183
|
set(r) {
|
|
3184
|
-
|
|
3184
|
+
o("update:modelValue", r);
|
|
3185
3185
|
}
|
|
3186
3186
|
}), d = f(() => {
|
|
3187
3187
|
var r;
|
|
@@ -3211,7 +3211,7 @@ const pi = be({
|
|
|
3211
3211
|
key: 0,
|
|
3212
3212
|
class: st(["app-select__label", { "app-select__label_bold": r.required }])
|
|
3213
3213
|
}, Ue(r.required ? `${r.label} *` : r.label), 3)) : Pe("", !0),
|
|
3214
|
-
Xe(
|
|
3214
|
+
Xe(zo(pi), {
|
|
3215
3215
|
standout: "",
|
|
3216
3216
|
"hide-bottom-space": "",
|
|
3217
3217
|
"hide-dropdown-icon": "",
|
|
@@ -3238,7 +3238,7 @@ const pi = be({
|
|
|
3238
3238
|
v.value ? (de(), ye("i", {
|
|
3239
3239
|
key: 0,
|
|
3240
3240
|
class: "icon-kl icon-kl-close app-select__clear",
|
|
3241
|
-
onClick:
|
|
3241
|
+
onClick: Mo(y, ["stop", "prevent"])
|
|
3242
3242
|
})) : Pe("", !0),
|
|
3243
3243
|
m[3] || (m[3] = At("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
|
|
3244
3244
|
]),
|
|
@@ -3274,7 +3274,7 @@ const pi = be({
|
|
|
3274
3274
|
];
|
|
3275
3275
|
}),
|
|
3276
3276
|
option: xe((_) => [
|
|
3277
|
-
Xe(Kl,
|
|
3277
|
+
Xe(Kl, Fo({
|
|
3278
3278
|
class: ["app-select__option", { "app-select__option_selected": _.selected }]
|
|
3279
3279
|
}, _.itemProps), {
|
|
3280
3280
|
default: xe(() => [
|
|
@@ -3284,7 +3284,7 @@ const pi = be({
|
|
|
3284
3284
|
avatar: ""
|
|
3285
3285
|
}, {
|
|
3286
3286
|
default: xe(() => [
|
|
3287
|
-
Xe(
|
|
3287
|
+
Xe(sn, {
|
|
3288
3288
|
size: "30px",
|
|
3289
3289
|
"model-value": _.selected,
|
|
3290
3290
|
"onUpdate:modelValue": () => _.toggleOption(_.opt)
|
|
@@ -3321,7 +3321,7 @@ const pi = be({
|
|
|
3321
3321
|
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
3322
3322
|
], 2));
|
|
3323
3323
|
}
|
|
3324
|
-
}), ki = /* @__PURE__ */
|
|
3324
|
+
}), ki = /* @__PURE__ */ Jo(yi, [["__scopeId", "data-v-435de7e5"]]);
|
|
3325
3325
|
export {
|
|
3326
3326
|
ki as default
|
|
3327
3327
|
};
|