@validol4ik/uikit 0.3.37 → 0.3.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppButtonCopy-BYH8F6F2.js +97 -0
- package/dist/AppButtonCopy-C9I_oYhz.cjs +1 -0
- package/dist/AppSelect-Bda-f0Z5.cjs +1 -0
- package/dist/{AppSelect-C0YonzHM.js → AppSelect-D0V_4egP.js} +715 -720
- package/dist/{QNoSsr-RUuuRu8b.js → focusout-DjvPXP_b.js} +41 -75
- package/dist/focusout-DzWGke-4.cjs +1 -0
- package/dist/{index-DPKx_P0q.js → index-BWQz1AUO.js} +4 -4
- package/dist/{index-Ds5xSOgF.cjs → index-DQu9r9r-.cjs} +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/AppButtonCopy-C1gfZJJx.js +0 -66
- package/dist/AppButtonCopy-adr4s-Rf.cjs +0 -1
- package/dist/AppSelect-Dy_SXOBT.cjs +0 -1
- package/dist/QNoSsr-CMMZVPpl.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as f, ref as T, h, getCurrentInstance as le, toRaw as $e, onMounted as tt, watch as K, onBeforeUpdate as
|
|
2
|
-
import { u as
|
|
3
|
-
import { i as Zo, b as
|
|
1
|
+
import { computed as f, ref as T, h, getCurrentInstance as le, toRaw as $e, onMounted as tt, watch as K, onBeforeUpdate as 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, a as Il, h as Se, b as Hl, c as be, Q as Ae, d as Lo, i as kt, e as Oo, f as Io, p as pe, g as Ho, j as $o, R as Po, k as Do, l as rl, m as Wo, n as ge, v as jo, o as Rt, q as $l, r as No, t as sl, w as Ko, x as Pl, y as Qo, z as Uo, B as De, D as Xo, S as Yo, _ as Go } from "./index-BWQz1AUO.js";
|
|
3
|
+
import { i as Zo, b as Dl, P as Jo, c as we, r as Pt, a as Wl } from "./focusout-DjvPXP_b.js";
|
|
4
4
|
const lt = {
|
|
5
5
|
dark: {
|
|
6
6
|
type: Boolean,
|
|
@@ -10,25 +10,25 @@ const lt = {
|
|
|
10
10
|
function ot(e, t) {
|
|
11
11
|
return f(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function en(e, t) {
|
|
14
14
|
const l = T(null), o = f(() => e.disable === !0 ? null : h("span", {
|
|
15
15
|
ref: l,
|
|
16
16
|
class: "no-outline",
|
|
17
17
|
tabindex: -1
|
|
18
18
|
}));
|
|
19
|
-
function a(
|
|
20
|
-
const
|
|
21
|
-
|
|
19
|
+
function a(i) {
|
|
20
|
+
const u = t.value;
|
|
21
|
+
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();
|
|
22
22
|
}
|
|
23
23
|
return {
|
|
24
24
|
refocusTargetEl: o,
|
|
25
25
|
refocusTarget: a
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const jl = {
|
|
29
29
|
name: String
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function tn(e = {}) {
|
|
32
32
|
return (t, l, o) => {
|
|
33
33
|
t[l](
|
|
34
34
|
h("input", {
|
|
@@ -38,19 +38,19 @@ function ln(e = {}) {
|
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ln(e) {
|
|
42
42
|
return f(() => e.name || e.for);
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const on = {
|
|
45
45
|
xs: 30,
|
|
46
46
|
sm: 35,
|
|
47
47
|
md: 40,
|
|
48
48
|
lg: 50,
|
|
49
49
|
xl: 60
|
|
50
|
-
},
|
|
50
|
+
}, nn = {
|
|
51
51
|
...lt,
|
|
52
|
-
|
|
53
|
-
...
|
|
52
|
+
...Hl,
|
|
53
|
+
...jl,
|
|
54
54
|
modelValue: {
|
|
55
55
|
required: !0,
|
|
56
56
|
default: null
|
|
@@ -74,9 +74,9 @@ const nn = {
|
|
|
74
74
|
dense: Boolean,
|
|
75
75
|
disable: Boolean,
|
|
76
76
|
tabindex: [String, Number]
|
|
77
|
-
},
|
|
78
|
-
function
|
|
79
|
-
const { props: l, slots: o, emit: a, proxy:
|
|
77
|
+
}, un = ["update:modelValue"];
|
|
78
|
+
function an(e, t) {
|
|
79
|
+
const { props: l, slots: o, emit: a, proxy: i } = le(), { $q: u } = i, d = ot(l, u), m = T(null), { refocusTargetEl: g, refocusTarget: c } = en(l, m), y = Ol(l, on), C = f(
|
|
80
80
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
81
81
|
), r = f(() => {
|
|
82
82
|
const A = $e(l.val);
|
|
@@ -97,7 +97,7 @@ function rn(e, t) {
|
|
|
97
97
|
name: l.name,
|
|
98
98
|
value: C.value === !0 ? l.val : l.trueValue
|
|
99
99
|
}), A;
|
|
100
|
-
}), D =
|
|
100
|
+
}), D = tn(R), B = f(() => {
|
|
101
101
|
const A = {
|
|
102
102
|
tabindex: P.value,
|
|
103
103
|
role: "checkbox",
|
|
@@ -134,7 +134,7 @@ function rn(e, t) {
|
|
|
134
134
|
(A.keyCode === 13 || A.keyCode === 32) && L(A);
|
|
135
135
|
}
|
|
136
136
|
const oe = t(v, S);
|
|
137
|
-
return Object.assign(
|
|
137
|
+
return Object.assign(i, { toggle: L }), () => {
|
|
138
138
|
const A = oe();
|
|
139
139
|
l.disable !== !0 && D(
|
|
140
140
|
A,
|
|
@@ -149,7 +149,7 @@ function rn(e, t) {
|
|
|
149
149
|
}, A)
|
|
150
150
|
];
|
|
151
151
|
g.value !== null && U.push(g.value);
|
|
152
|
-
const ne = l.label !== void 0 ?
|
|
152
|
+
const ne = l.label !== void 0 ? Il(o.default, [l.label]) : Se(o.default);
|
|
153
153
|
return ne !== void 0 && U.push(
|
|
154
154
|
h("div", {
|
|
155
155
|
class: `q-${e}__label q-anchor--skip`
|
|
@@ -164,7 +164,7 @@ function rn(e, t) {
|
|
|
164
164
|
}, U);
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const rn = () => h("div", {
|
|
168
168
|
key: "svg",
|
|
169
169
|
class: "q-checkbox__bg absolute"
|
|
170
170
|
}, [
|
|
@@ -182,31 +182,31 @@ const sn = () => h("div", {
|
|
|
182
182
|
d: "M4,14H20V10H4"
|
|
183
183
|
})
|
|
184
184
|
])
|
|
185
|
-
]),
|
|
185
|
+
]), sn = be({
|
|
186
186
|
name: "QCheckbox",
|
|
187
|
-
props:
|
|
188
|
-
emits:
|
|
187
|
+
props: nn,
|
|
188
|
+
emits: un,
|
|
189
189
|
setup(e) {
|
|
190
|
-
const t =
|
|
190
|
+
const t = rn();
|
|
191
191
|
function l(o, a) {
|
|
192
|
-
const
|
|
192
|
+
const i = f(
|
|
193
193
|
() => (o.value === !0 ? e.checkedIcon : a.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
194
194
|
);
|
|
195
|
-
return () =>
|
|
195
|
+
return () => i.value !== null ? [
|
|
196
196
|
h("div", {
|
|
197
197
|
key: "icon",
|
|
198
198
|
class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
|
|
199
199
|
}, [
|
|
200
200
|
h(Ae, {
|
|
201
201
|
class: "q-checkbox__icon",
|
|
202
|
-
name:
|
|
202
|
+
name: i.value
|
|
203
203
|
})
|
|
204
204
|
])
|
|
205
205
|
] : [t];
|
|
206
206
|
}
|
|
207
|
-
return
|
|
207
|
+
return an("checkbox", l);
|
|
208
208
|
}
|
|
209
|
-
}),
|
|
209
|
+
}), pt = be({
|
|
210
210
|
name: "QItemSection",
|
|
211
211
|
props: {
|
|
212
212
|
avatar: Boolean,
|
|
@@ -221,7 +221,7 @@ const sn = () => h("div", {
|
|
|
221
221
|
);
|
|
222
222
|
return () => h("div", { class: l.value }, Se(t.default));
|
|
223
223
|
}
|
|
224
|
-
}),
|
|
224
|
+
}), Nl = be({
|
|
225
225
|
name: "QItemLabel",
|
|
226
226
|
props: {
|
|
227
227
|
overline: Boolean,
|
|
@@ -243,7 +243,7 @@ const sn = () => h("div", {
|
|
|
243
243
|
class: o.value
|
|
244
244
|
}, Se(t.default));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), Kl = be({
|
|
247
247
|
name: "QItem",
|
|
248
248
|
props: {
|
|
249
249
|
...lt,
|
|
@@ -265,12 +265,12 @@ const sn = () => h("div", {
|
|
|
265
265
|
},
|
|
266
266
|
emits: ["click", "keyup"],
|
|
267
267
|
setup(e, { slots: t, emit: l }) {
|
|
268
|
-
const { proxy: { $q: o } } = le(), a = ot(e, o), { hasLink:
|
|
269
|
-
() => e.clickable === !0 ||
|
|
268
|
+
const { proxy: { $q: o } } = le(), a = ot(e, o), { hasLink: i, linkAttrs: u, linkClass: d, linkTag: m, navigateOnClick: g } = Lo(), c = T(null), y = T(null), C = f(
|
|
269
|
+
() => e.clickable === !0 || i.value === !0 || e.tag === "label"
|
|
270
270
|
), r = f(
|
|
271
271
|
() => e.disable !== !0 && C.value === !0
|
|
272
272
|
), v = f(
|
|
273
|
-
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (a.value === !0 ? " q-item--dark" : "") + (
|
|
273
|
+
() => "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" : "") : "")
|
|
274
274
|
), _ = f(() => e.insetLevel === void 0 ? null : {
|
|
275
275
|
["padding" + (o.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
276
276
|
});
|
|
@@ -278,7 +278,7 @@ const sn = () => h("div", {
|
|
|
278
278
|
r.value === !0 && (y.value !== null && (q.qKeyEvent !== !0 && document.activeElement === c.value ? y.value.focus() : document.activeElement === y.value && c.value.focus()), g(q));
|
|
279
279
|
}
|
|
280
280
|
function P(q) {
|
|
281
|
-
if (r.value === !0 &&
|
|
281
|
+
if (r.value === !0 && kt(q, [13, 32]) === !0) {
|
|
282
282
|
ae(q), q.qKeyEvent = !0;
|
|
283
283
|
const R = new MouseEvent("click", q);
|
|
284
284
|
R.qKeyEvent = !0, c.value.dispatchEvent(R);
|
|
@@ -300,19 +300,19 @@ const sn = () => h("div", {
|
|
|
300
300
|
onClick: S,
|
|
301
301
|
onKeyup: P
|
|
302
302
|
};
|
|
303
|
-
return r.value === !0 ? (q.tabindex = e.tabindex || "0", Object.assign(q,
|
|
303
|
+
return r.value === !0 ? (q.tabindex = e.tabindex || "0", Object.assign(q, u.value)) : C.value === !0 && (q["aria-disabled"] = "true"), h(
|
|
304
304
|
m.value,
|
|
305
305
|
q,
|
|
306
306
|
E()
|
|
307
307
|
);
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
}),
|
|
311
|
-
let
|
|
310
|
+
}), cl = (e) => e ? !0 : "Обовʼязкове поле";
|
|
311
|
+
let zt, dt = 0;
|
|
312
312
|
const ee = new Array(256);
|
|
313
313
|
for (let e = 0; e < 256; e++)
|
|
314
314
|
ee[e] = (e + 256).toString(16).substring(1);
|
|
315
|
-
const
|
|
315
|
+
const cn = (() => {
|
|
316
316
|
const e = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
|
|
317
317
|
if (e !== void 0) {
|
|
318
318
|
if (e.randomBytes !== void 0)
|
|
@@ -329,60 +329,60 @@ const dn = (() => {
|
|
|
329
329
|
l.push(Math.floor(Math.random() * 256));
|
|
330
330
|
return l;
|
|
331
331
|
};
|
|
332
|
-
})(),
|
|
333
|
-
function
|
|
334
|
-
(
|
|
335
|
-
const e = Array.prototype.slice.call(
|
|
332
|
+
})(), dl = 4096;
|
|
333
|
+
function Dt() {
|
|
334
|
+
(zt === void 0 || dt + 16 > dl) && (dt = 0, zt = cn(dl));
|
|
335
|
+
const e = Array.prototype.slice.call(zt, dt, dt += 16);
|
|
336
336
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, ee[e[0]] + ee[e[1]] + ee[e[2]] + ee[e[3]] + "-" + ee[e[4]] + ee[e[5]] + "-" + ee[e[6]] + ee[e[7]] + "-" + ee[e[8]] + ee[e[9]] + "-" + ee[e[10]] + ee[e[11]] + ee[e[12]] + ee[e[13]] + ee[e[14]] + ee[e[15]];
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function dn(e) {
|
|
339
339
|
return e ?? null;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
return e ?? (t === !0 ? `f_${
|
|
341
|
+
function fl(e, t) {
|
|
342
|
+
return e ?? (t === !0 ? `f_${Dt()}` : null);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function fn({ getValue: e, required: t = !0 } = {}) {
|
|
345
345
|
if (Zo.value === !0) {
|
|
346
|
-
const l = e !== void 0 ? T(
|
|
346
|
+
const l = e !== void 0 ? T(dn(e())) : T(null);
|
|
347
347
|
return t === !0 && l.value === null && tt(() => {
|
|
348
|
-
l.value = `f_${
|
|
348
|
+
l.value = `f_${Dt()}`;
|
|
349
349
|
}), e !== void 0 && K(e, (o) => {
|
|
350
|
-
l.value =
|
|
350
|
+
l.value = fl(o, t);
|
|
351
351
|
}), l;
|
|
352
352
|
}
|
|
353
|
-
return e !== void 0 ? f(() =>
|
|
353
|
+
return e !== void 0 ? f(() => fl(e(), t)) : T(`f_${Dt()}`);
|
|
354
354
|
}
|
|
355
|
-
const
|
|
356
|
-
function
|
|
355
|
+
const vl = /^on[A-Z]/;
|
|
356
|
+
function vn() {
|
|
357
357
|
const { attrs: e, vnode: t } = le(), l = {
|
|
358
358
|
listeners: T({}),
|
|
359
359
|
attributes: T({})
|
|
360
360
|
};
|
|
361
361
|
function o() {
|
|
362
|
-
const a = {},
|
|
363
|
-
for (const
|
|
364
|
-
|
|
365
|
-
for (const
|
|
366
|
-
|
|
367
|
-
l.attributes.value = a, l.listeners.value =
|
|
368
|
-
}
|
|
369
|
-
return
|
|
370
|
-
}
|
|
371
|
-
const
|
|
372
|
-
function
|
|
373
|
-
const o =
|
|
362
|
+
const a = {}, i = {};
|
|
363
|
+
for (const u in e)
|
|
364
|
+
u !== "class" && u !== "style" && vl.test(u) === !1 && (a[u] = e[u]);
|
|
365
|
+
for (const u in t.props)
|
|
366
|
+
vl.test(u) === !0 && (i[u] = t.props[u]);
|
|
367
|
+
l.attributes.value = a, l.listeners.value = i;
|
|
368
|
+
}
|
|
369
|
+
return Ml(o), o(), l;
|
|
370
|
+
}
|
|
371
|
+
const mn = "_q_fo_";
|
|
372
|
+
function hn({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
373
|
+
const o = _o(mn, !1);
|
|
374
374
|
if (o !== !1) {
|
|
375
|
-
const { props: a, proxy:
|
|
376
|
-
Object.assign(
|
|
377
|
-
|
|
375
|
+
const { props: a, proxy: i } = le();
|
|
376
|
+
Object.assign(i, { validate: e, resetValidation: t }), K(() => a.disable, (u) => {
|
|
377
|
+
u === !0 ? (typeof t == "function" && t(), o.unbindComponent(i)) : o.bindComponent(i);
|
|
378
378
|
}), tt(() => {
|
|
379
|
-
a.disable !== !0 && o.bindComponent(
|
|
379
|
+
a.disable !== !0 && o.bindComponent(i);
|
|
380
380
|
}), ce(() => {
|
|
381
|
-
a.disable !== !0 && o.unbindComponent(
|
|
381
|
+
a.disable !== !0 && o.unbindComponent(i);
|
|
382
382
|
});
|
|
383
383
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const ml = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, hl = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, gl = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, ft = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, vt = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Ft = {
|
|
386
386
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
387
387
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
388
388
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -394,29 +394,29 @@ const hl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, gl = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
394
394
|
// We won't be accepting PRs to enhance the one below because of the reason above.
|
|
395
395
|
// eslint-disable-next-line
|
|
396
396
|
email: (e) => /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),
|
|
397
|
-
hexColor: (e) =>
|
|
398
|
-
hexaColor: (e) =>
|
|
399
|
-
hexOrHexaColor: (e) =>
|
|
400
|
-
rgbColor: (e) =>
|
|
401
|
-
rgbaColor: (e) =>
|
|
402
|
-
rgbOrRgbaColor: (e) =>
|
|
403
|
-
hexOrRgbColor: (e) =>
|
|
404
|
-
hexaOrRgbaColor: (e) =>
|
|
405
|
-
anyColor: (e) =>
|
|
397
|
+
hexColor: (e) => ml.test(e),
|
|
398
|
+
hexaColor: (e) => hl.test(e),
|
|
399
|
+
hexOrHexaColor: (e) => gl.test(e),
|
|
400
|
+
rgbColor: (e) => ft.test(e),
|
|
401
|
+
rgbaColor: (e) => vt.test(e),
|
|
402
|
+
rgbOrRgbaColor: (e) => ft.test(e) || vt.test(e),
|
|
403
|
+
hexOrRgbColor: (e) => ml.test(e) || ft.test(e),
|
|
404
|
+
hexaOrRgbaColor: (e) => hl.test(e) || vt.test(e),
|
|
405
|
+
anyColor: (e) => gl.test(e) || ft.test(e) || vt.test(e)
|
|
406
406
|
};
|
|
407
|
-
function
|
|
407
|
+
function Ql(e, t = 250, l) {
|
|
408
408
|
let o = null;
|
|
409
409
|
function a() {
|
|
410
|
-
const
|
|
411
|
-
o = null, l !== !0 && e.apply(this,
|
|
410
|
+
const i = arguments, u = () => {
|
|
411
|
+
o = null, l !== !0 && e.apply(this, i);
|
|
412
412
|
};
|
|
413
|
-
o !== null ? clearTimeout(o) : l === !0 && e.apply(this,
|
|
413
|
+
o !== null ? clearTimeout(o) : l === !0 && e.apply(this, i), o = setTimeout(u, t);
|
|
414
414
|
}
|
|
415
415
|
return a.cancel = () => {
|
|
416
416
|
o !== null && clearTimeout(o);
|
|
417
417
|
}, a;
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const gn = [!0, !1, "ondemand"], pn = {
|
|
420
420
|
modelValue: {},
|
|
421
421
|
error: {
|
|
422
422
|
type: Boolean,
|
|
@@ -430,45 +430,45 @@ const pn = [!0, !1, "ondemand"], bn = {
|
|
|
430
430
|
type: [Boolean, String],
|
|
431
431
|
default: !1,
|
|
432
432
|
// statement unneeded but avoids future vue implementation changes
|
|
433
|
-
validator: (e) =>
|
|
433
|
+
validator: (e) => gn.includes(e)
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
function
|
|
437
|
-
const { props: l, proxy: o } = le(), a = T(!1),
|
|
438
|
-
|
|
436
|
+
function bn(e, t) {
|
|
437
|
+
const { props: l, proxy: o } = le(), a = T(!1), i = T(null), u = T(!1);
|
|
438
|
+
hn({ validate: _, resetValidation: v });
|
|
439
439
|
let d = 0, m;
|
|
440
440
|
const g = f(
|
|
441
441
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
442
442
|
), c = f(() => l.disable !== !0 && g.value === !0 && t.value === !1), y = f(
|
|
443
443
|
() => l.error === !0 || a.value === !0
|
|
444
|
-
), C = f(() => typeof l.errorMessage == "string" && l.errorMessage.length !== 0 ? l.errorMessage :
|
|
444
|
+
), C = f(() => typeof l.errorMessage == "string" && l.errorMessage.length !== 0 ? l.errorMessage : i.value);
|
|
445
445
|
K(() => l.modelValue, () => {
|
|
446
|
-
|
|
446
|
+
u.value = !0, c.value === !0 && l.lazyRules === !1 && S();
|
|
447
447
|
});
|
|
448
448
|
function r() {
|
|
449
|
-
l.lazyRules !== "ondemand" && c.value === !0 &&
|
|
449
|
+
l.lazyRules !== "ondemand" && c.value === !0 && u.value === !0 && S();
|
|
450
450
|
}
|
|
451
451
|
K(() => l.reactiveRules, (P) => {
|
|
452
452
|
P === !0 ? m === void 0 && (m = K(() => l.rules, r, { immediate: !0, deep: !0 })) : m !== void 0 && (m(), m = void 0);
|
|
453
453
|
}, { immediate: !0 }), K(() => l.lazyRules, r), K(e, (P) => {
|
|
454
|
-
P === !0 ?
|
|
454
|
+
P === !0 ? u.value = !0 : c.value === !0 && l.lazyRules !== "ondemand" && S();
|
|
455
455
|
});
|
|
456
456
|
function v() {
|
|
457
|
-
d++, t.value = !1,
|
|
457
|
+
d++, t.value = !1, u.value = !1, a.value = !1, i.value = null, S.cancel();
|
|
458
458
|
}
|
|
459
459
|
function _(P = l.modelValue) {
|
|
460
460
|
if (l.disable === !0 || g.value === !1)
|
|
461
461
|
return !0;
|
|
462
462
|
const E = ++d, q = t.value !== !0 ? () => {
|
|
463
|
-
|
|
463
|
+
u.value = !0;
|
|
464
464
|
} : () => {
|
|
465
465
|
}, R = (B, L) => {
|
|
466
|
-
B === !0 && q(), a.value = B,
|
|
466
|
+
B === !0 && q(), a.value = B, i.value = L || null, t.value = !1;
|
|
467
467
|
}, D = [];
|
|
468
468
|
for (let B = 0; B < l.rules.length; B++) {
|
|
469
469
|
const L = l.rules[B];
|
|
470
470
|
let H;
|
|
471
|
-
if (typeof L == "function" ? H = L(P,
|
|
471
|
+
if (typeof L == "function" ? H = L(P, Ft) : typeof L == "string" && Ft[L] !== void 0 && (H = Ft[L](P)), H === !1 || typeof H == "string")
|
|
472
472
|
return R(!0, H), !1;
|
|
473
473
|
H !== !0 && H !== void 0 && D.push(H);
|
|
474
474
|
}
|
|
@@ -482,11 +482,11 @@ function yn(e, t) {
|
|
|
482
482
|
(B) => (E === d && (console.error(B), R(!0)), !1)
|
|
483
483
|
));
|
|
484
484
|
}
|
|
485
|
-
const S =
|
|
485
|
+
const S = Ql(_, 0);
|
|
486
486
|
return ce(() => {
|
|
487
487
|
m !== void 0 && m(), S.cancel();
|
|
488
|
-
}), Object.assign(o, { resetValidation: v, validate: _ }),
|
|
489
|
-
isDirtyModel:
|
|
488
|
+
}), Object.assign(o, { resetValidation: v, validate: _ }), Dl(o, "hasError", () => y.value), {
|
|
489
|
+
isDirtyModel: u,
|
|
490
490
|
hasRules: g,
|
|
491
491
|
hasError: y,
|
|
492
492
|
errorMessage: C,
|
|
@@ -495,27 +495,27 @@ function yn(e, t) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
let Be = [], et = [];
|
|
498
|
-
function
|
|
498
|
+
function Ul(e) {
|
|
499
499
|
et = et.filter((t) => t !== e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
|
|
501
|
+
function yn(e) {
|
|
502
|
+
Ul(e), et.push(e);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
504
|
+
function pl(e) {
|
|
505
|
+
Ul(e), et.length === 0 && Be.length !== 0 && (Be[Be.length - 1](), Be = []);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Nt(e) {
|
|
508
508
|
et.length === 0 ? e() : Be.push(e);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Sn(e) {
|
|
511
511
|
Be = Be.filter((t) => t !== e);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Wt(e) {
|
|
514
514
|
return e != null && ("" + e).length !== 0;
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const wn = {
|
|
517
517
|
...lt,
|
|
518
|
-
...
|
|
518
|
+
...pn,
|
|
519
519
|
label: String,
|
|
520
520
|
stackLabel: Boolean,
|
|
521
521
|
hint: String,
|
|
@@ -544,12 +544,12 @@ const xn = {
|
|
|
544
544
|
readonly: Boolean,
|
|
545
545
|
autofocus: Boolean,
|
|
546
546
|
for: String
|
|
547
|
-
},
|
|
548
|
-
...
|
|
547
|
+
}, Kt = {
|
|
548
|
+
...wn,
|
|
549
549
|
maxlength: [Number, String]
|
|
550
|
-
},
|
|
551
|
-
function
|
|
552
|
-
const { props: o, proxy: a } = le(),
|
|
550
|
+
}, Xl = ["update:modelValue", "clear", "focus", "blur"];
|
|
551
|
+
function Yl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
552
|
+
const { props: o, proxy: a } = le(), i = ot(o, a.$q), u = fn({
|
|
553
553
|
required: e,
|
|
554
554
|
getValue: () => o.for
|
|
555
555
|
});
|
|
@@ -557,15 +557,15 @@ function Gl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
557
557
|
requiredForAttr: e,
|
|
558
558
|
changeEvent: l,
|
|
559
559
|
tag: t === !0 ? f(() => o.tag) : { value: "label" },
|
|
560
|
-
isDark:
|
|
560
|
+
isDark: i,
|
|
561
561
|
editable: f(
|
|
562
562
|
() => o.disable !== !0 && o.readonly !== !0
|
|
563
563
|
),
|
|
564
564
|
innerLoading: T(!1),
|
|
565
565
|
focused: T(!1),
|
|
566
566
|
hasPopupOpen: !1,
|
|
567
|
-
splitAttrs:
|
|
568
|
-
targetUid:
|
|
567
|
+
splitAttrs: vn(),
|
|
568
|
+
targetUid: u,
|
|
569
569
|
rootRef: T(null),
|
|
570
570
|
targetRef: T(null),
|
|
571
571
|
controlRef: T(null)
|
|
@@ -589,10 +589,10 @@ function Gl({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
589
589
|
*/
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
const { props: t, emit: l, slots: o, attrs: a, proxy:
|
|
592
|
+
function Gl(e) {
|
|
593
|
+
const { props: t, emit: l, slots: o, attrs: a, proxy: i } = le(), { $q: u } = i;
|
|
594
594
|
let d = null;
|
|
595
|
-
e.hasValue === void 0 && (e.hasValue = f(() =>
|
|
595
|
+
e.hasValue === void 0 && (e.hasValue = f(() => Wt(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (k) => {
|
|
596
596
|
l("update:modelValue", k);
|
|
597
597
|
}), e.controlEvents === void 0 && (e.controlEvents = {
|
|
598
598
|
onFocusin: Q,
|
|
@@ -614,7 +614,7 @@ function Zl(e) {
|
|
|
614
614
|
hasError: c,
|
|
615
615
|
errorMessage: y,
|
|
616
616
|
resetValidation: C
|
|
617
|
-
} =
|
|
617
|
+
} = 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), v = f(
|
|
618
618
|
() => t.bottomSlots === !0 || t.hint !== void 0 || g.value === !0 || t.counter === !0 || t.error !== null
|
|
619
619
|
), _ = f(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), S = f(
|
|
620
620
|
() => `q-field row no-wrap items-start q-field--${_.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (r.value === !0 ? " q-field--float" : "") + (E.value === !0 ? " q-field--labeled" : "") + (t.dense === !0 ? " q-field--dense" : "") + (t.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (c.value === !0 ? " q-field--error" : "") + (c.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (t.hideBottomSpace !== !0 && v.value === !0 ? " q-field--with-bottom" : "") + (t.disable === !0 ? " q-field--disabled" : t.readonly === !0 ? " q-field--readonly" : "")
|
|
@@ -641,10 +641,10 @@ function Zl(e) {
|
|
|
641
641
|
M && (k === null || k.id !== e.targetUid.value) && (M.hasAttribute("tabindex") === !0 || (M = M.querySelector("[tabindex]")), M && M !== k && M.focus({ preventScroll: !0 }));
|
|
642
642
|
}
|
|
643
643
|
function L() {
|
|
644
|
-
|
|
644
|
+
Nt(B);
|
|
645
645
|
}
|
|
646
646
|
function H() {
|
|
647
|
-
|
|
647
|
+
Sn(B);
|
|
648
648
|
const k = document.activeElement;
|
|
649
649
|
k !== null && e.rootRef.value.contains(k) && k.blur();
|
|
650
650
|
}
|
|
@@ -657,7 +657,7 @@ function Zl(e) {
|
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
function oe(k) {
|
|
660
|
-
ae(k),
|
|
660
|
+
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(() => {
|
|
661
661
|
const M = m.value;
|
|
662
662
|
C(), m.value = M;
|
|
663
663
|
});
|
|
@@ -679,7 +679,7 @@ function Zl(e) {
|
|
|
679
679
|
}, ne())
|
|
680
680
|
), c.value === !0 && t.noErrorIcon === !1 && k.push(
|
|
681
681
|
X("error", [
|
|
682
|
-
h(Ae, { name:
|
|
682
|
+
h(Ae, { name: u.iconSet.field.error, color: "negative" })
|
|
683
683
|
])
|
|
684
684
|
), t.loading === !0 || e.innerLoading.value === !0 ? k.push(
|
|
685
685
|
X(
|
|
@@ -690,11 +690,11 @@ function Zl(e) {
|
|
|
690
690
|
X("inner-clearable-append", [
|
|
691
691
|
h(Ae, {
|
|
692
692
|
class: "q-field__focusable-action",
|
|
693
|
-
name: t.clearIcon ||
|
|
693
|
+
name: t.clearIcon || u.iconSet.field.clear,
|
|
694
694
|
tabindex: 0,
|
|
695
695
|
role: "button",
|
|
696
696
|
"aria-hidden": "false",
|
|
697
|
-
"aria-label":
|
|
697
|
+
"aria-label": u.lang.label.clear,
|
|
698
698
|
onKeyup: A,
|
|
699
699
|
onClick: oe
|
|
700
700
|
})
|
|
@@ -751,7 +751,7 @@ function Zl(e) {
|
|
|
751
751
|
class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
752
752
|
onClick: pe
|
|
753
753
|
}, [
|
|
754
|
-
t.hideBottomSpace === !0 ? s : h(
|
|
754
|
+
t.hideBottomSpace === !0 ? s : h(bt, { name: "q-transition--field-message" }, () => s),
|
|
755
755
|
se === !0 ? h("div", {
|
|
756
756
|
class: "q-field__counter"
|
|
757
757
|
}, o.counter !== void 0 ? o.counter() : e.computedCounter.value) : null
|
|
@@ -764,15 +764,15 @@ function Zl(e) {
|
|
|
764
764
|
}, M);
|
|
765
765
|
}
|
|
766
766
|
let re = !1;
|
|
767
|
-
return
|
|
767
|
+
return Ct(() => {
|
|
768
768
|
re = !0;
|
|
769
|
-
}),
|
|
770
|
-
re === !0 && t.autofocus === !0 &&
|
|
769
|
+
}), Ll(() => {
|
|
770
|
+
re === !0 && t.autofocus === !0 && i.focus();
|
|
771
771
|
}), t.autofocus === !0 && tt(() => {
|
|
772
|
-
|
|
772
|
+
i.focus();
|
|
773
773
|
}), ce(() => {
|
|
774
774
|
d !== null && clearTimeout(d);
|
|
775
|
-
}), Object.assign(
|
|
775
|
+
}), Object.assign(i, { focus: L, blur: H }), function() {
|
|
776
776
|
const M = e.getControl === void 0 && o.control === void 0 ? {
|
|
777
777
|
...e.splitAttrs.attributes.value,
|
|
778
778
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
@@ -809,33 +809,33 @@ function Zl(e) {
|
|
|
809
809
|
]);
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
const
|
|
812
|
+
const xn = be({
|
|
813
813
|
name: "QField",
|
|
814
814
|
inheritAttrs: !1,
|
|
815
815
|
props: {
|
|
816
|
-
...
|
|
816
|
+
...Kt,
|
|
817
817
|
tag: {
|
|
818
818
|
type: String,
|
|
819
819
|
default: "label"
|
|
820
820
|
}
|
|
821
821
|
},
|
|
822
|
-
emits:
|
|
822
|
+
emits: Xl,
|
|
823
823
|
setup() {
|
|
824
|
-
return
|
|
825
|
-
|
|
824
|
+
return Gl(
|
|
825
|
+
Yl({ tagProp: !0 })
|
|
826
826
|
);
|
|
827
827
|
}
|
|
828
|
-
}),
|
|
828
|
+
}), Cn = {
|
|
829
829
|
xs: 8,
|
|
830
830
|
sm: 10,
|
|
831
831
|
md: 14,
|
|
832
832
|
lg: 20,
|
|
833
833
|
xl: 24
|
|
834
|
-
},
|
|
834
|
+
}, kn = be({
|
|
835
835
|
name: "QChip",
|
|
836
836
|
props: {
|
|
837
837
|
...lt,
|
|
838
|
-
|
|
838
|
+
...Hl,
|
|
839
839
|
dense: Boolean,
|
|
840
840
|
icon: String,
|
|
841
841
|
iconRight: String,
|
|
@@ -866,7 +866,7 @@ const Cn = be({
|
|
|
866
866
|
},
|
|
867
867
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
868
868
|
setup(e, { slots: t, emit: l }) {
|
|
869
|
-
const { proxy: { $q: o } } = le(), a = ot(e, o),
|
|
869
|
+
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), m = f(() => e.iconRemove || o.iconSet.chip.remove), g = f(
|
|
870
870
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
871
871
|
), c = f(() => {
|
|
872
872
|
const S = e.outline === !0 && e.color || e.textColor;
|
|
@@ -893,7 +893,7 @@ const Cn = be({
|
|
|
893
893
|
const S = [];
|
|
894
894
|
g.value === !0 && S.push(
|
|
895
895
|
h("div", { class: "q-focus-helper" })
|
|
896
|
-
),
|
|
896
|
+
), u.value === !0 && S.push(
|
|
897
897
|
h(Ae, {
|
|
898
898
|
class: "q-chip__icon q-chip__icon--left",
|
|
899
899
|
name: d.value
|
|
@@ -923,7 +923,7 @@ const Cn = be({
|
|
|
923
923
|
if (e.modelValue === !1) return;
|
|
924
924
|
const S = {
|
|
925
925
|
class: c.value,
|
|
926
|
-
style:
|
|
926
|
+
style: i.value
|
|
927
927
|
};
|
|
928
928
|
return g.value === !0 && Object.assign(
|
|
929
929
|
S,
|
|
@@ -940,34 +940,34 @@ const Cn = be({
|
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
942
|
});
|
|
943
|
-
function
|
|
943
|
+
function qn() {
|
|
944
944
|
if (window.getSelection !== void 0) {
|
|
945
945
|
const e = window.getSelection();
|
|
946
946
|
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), Jo.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
947
947
|
} else document.selection !== void 0 && document.selection.empty();
|
|
948
948
|
}
|
|
949
|
-
const
|
|
949
|
+
const Vn = {
|
|
950
950
|
/* SSR does not know about Element */
|
|
951
951
|
target: {
|
|
952
952
|
type: [Boolean, String, Element],
|
|
953
953
|
default: !0
|
|
954
954
|
},
|
|
955
955
|
noParentEvent: Boolean
|
|
956
|
-
},
|
|
957
|
-
...
|
|
956
|
+
}, _n = {
|
|
957
|
+
...Vn,
|
|
958
958
|
contextMenu: Boolean
|
|
959
959
|
};
|
|
960
|
-
function
|
|
960
|
+
function En({
|
|
961
961
|
showing: e,
|
|
962
962
|
avoidEmit: t,
|
|
963
963
|
// required for QPopupProxy (true)
|
|
964
964
|
configureAnchorEl: l
|
|
965
965
|
// optional
|
|
966
966
|
}) {
|
|
967
|
-
const { props: o, proxy: a, emit:
|
|
967
|
+
const { props: o, proxy: a, emit: i } = le(), u = T(null);
|
|
968
968
|
let d = null;
|
|
969
969
|
function m(r) {
|
|
970
|
-
return
|
|
970
|
+
return u.value === null ? !1 : r === void 0 || r.touches === void 0 || r.touches.length <= 1;
|
|
971
971
|
}
|
|
972
972
|
const g = {};
|
|
973
973
|
l === void 0 && (Object.assign(g, {
|
|
@@ -978,10 +978,10 @@ function Bn({
|
|
|
978
978
|
a.toggle(r), r.qAnchorHandled = !0;
|
|
979
979
|
},
|
|
980
980
|
toggleKey(r) {
|
|
981
|
-
|
|
981
|
+
kt(r, 13) === !0 && g.toggle(r);
|
|
982
982
|
},
|
|
983
983
|
contextClick(r) {
|
|
984
|
-
a.hide(r), pe(r),
|
|
984
|
+
a.hide(r), pe(r), ue(() => {
|
|
985
985
|
a.show(r), r.qAnchorHandled = !0;
|
|
986
986
|
});
|
|
987
987
|
},
|
|
@@ -989,44 +989,44 @@ function Bn({
|
|
|
989
989
|
mobileTouch(r) {
|
|
990
990
|
if (g.mobileCleanup(r), m(r) !== !0)
|
|
991
991
|
return;
|
|
992
|
-
a.hide(r),
|
|
992
|
+
a.hide(r), u.value.classList.add("non-selectable");
|
|
993
993
|
const v = r.target;
|
|
994
|
-
|
|
994
|
+
rl(g, "anchor", [
|
|
995
995
|
[v, "touchmove", "mobileCleanup", "passive"],
|
|
996
996
|
[v, "touchend", "mobileCleanup", "passive"],
|
|
997
997
|
[v, "touchcancel", "mobileCleanup", "passive"],
|
|
998
|
-
[
|
|
998
|
+
[u.value, "contextmenu", "prevent", "notPassive"]
|
|
999
999
|
]), d = setTimeout(() => {
|
|
1000
1000
|
d = null, a.show(r), r.qAnchorHandled = !0;
|
|
1001
1001
|
}, 300);
|
|
1002
1002
|
},
|
|
1003
1003
|
mobileCleanup(r) {
|
|
1004
|
-
|
|
1004
|
+
u.value.classList.remove("non-selectable"), d !== null && (clearTimeout(d), d = null), e.value === !0 && r !== void 0 && qn();
|
|
1005
1005
|
}
|
|
1006
1006
|
}), l = function(r = o.contextMenu) {
|
|
1007
|
-
if (o.noParentEvent === !0 ||
|
|
1007
|
+
if (o.noParentEvent === !0 || u.value === null) return;
|
|
1008
1008
|
let v;
|
|
1009
1009
|
r === !0 ? a.$q.platform.is.mobile === !0 ? v = [
|
|
1010
|
-
[
|
|
1010
|
+
[u.value, "touchstart", "mobileTouch", "passive"]
|
|
1011
1011
|
] : v = [
|
|
1012
|
-
[
|
|
1013
|
-
[
|
|
1012
|
+
[u.value, "mousedown", "hide", "passive"],
|
|
1013
|
+
[u.value, "contextmenu", "contextClick", "notPassive"]
|
|
1014
1014
|
] : v = [
|
|
1015
|
-
[
|
|
1016
|
-
[
|
|
1017
|
-
],
|
|
1015
|
+
[u.value, "click", "toggle", "passive"],
|
|
1016
|
+
[u.value, "keyup", "toggleKey", "passive"]
|
|
1017
|
+
], rl(g, "anchor", v);
|
|
1018
1018
|
});
|
|
1019
1019
|
function c() {
|
|
1020
1020
|
Wo(g, "anchor");
|
|
1021
1021
|
}
|
|
1022
1022
|
function y(r) {
|
|
1023
|
-
for (
|
|
1024
|
-
|
|
1023
|
+
for (u.value = r; u.value.classList.contains("q-anchor--skip"); )
|
|
1024
|
+
u.value = u.value.parentNode;
|
|
1025
1025
|
l();
|
|
1026
1026
|
}
|
|
1027
1027
|
function C() {
|
|
1028
1028
|
if (o.target === !1 || o.target === "" || a.$el.parentNode === null)
|
|
1029
|
-
|
|
1029
|
+
u.value = null;
|
|
1030
1030
|
else if (o.target === !0)
|
|
1031
1031
|
y(a.$el.parentNode);
|
|
1032
1032
|
else {
|
|
@@ -1037,57 +1037,57 @@ function Bn({
|
|
|
1037
1037
|
} catch {
|
|
1038
1038
|
r = void 0;
|
|
1039
1039
|
}
|
|
1040
|
-
r != null ? (
|
|
1040
|
+
r != null ? (u.value = r.$el || r, l()) : (u.value = null, console.error(`Anchor: target "${o.target}" not found`));
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
return K(() => o.contextMenu, (r) => {
|
|
1044
|
-
|
|
1044
|
+
u.value !== null && (c(), l(r));
|
|
1045
1045
|
}), K(() => o.target, () => {
|
|
1046
|
-
|
|
1046
|
+
u.value !== null && c(), C();
|
|
1047
1047
|
}), K(() => o.noParentEvent, (r) => {
|
|
1048
|
-
|
|
1048
|
+
u.value !== null && (r === !0 ? c() : l());
|
|
1049
1049
|
}), tt(() => {
|
|
1050
|
-
C(), t !== !0 && o.modelValue === !0 &&
|
|
1050
|
+
C(), t !== !0 && o.modelValue === !0 && u.value === null && i("update:modelValue", !1);
|
|
1051
1051
|
}), ce(() => {
|
|
1052
1052
|
d !== null && clearTimeout(d), c();
|
|
1053
1053
|
}), {
|
|
1054
|
-
anchorEl:
|
|
1054
|
+
anchorEl: u,
|
|
1055
1055
|
canShow: m,
|
|
1056
1056
|
anchorEvents: g
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Bn(e, t) {
|
|
1060
1060
|
const l = T(null);
|
|
1061
1061
|
let o;
|
|
1062
1062
|
function a(d, m) {
|
|
1063
1063
|
const g = `${m !== void 0 ? "add" : "remove"}EventListener`, c = m !== void 0 ? m : o;
|
|
1064
1064
|
d !== window && d[g]("scroll", c, ge.passive), window[g]("scroll", c, ge.passive), o = m;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function i() {
|
|
1067
1067
|
l.value !== null && (a(l.value), l.value = null);
|
|
1068
1068
|
}
|
|
1069
|
-
const
|
|
1070
|
-
l.value !== null && (
|
|
1069
|
+
const u = K(() => e.noParentEvent, () => {
|
|
1070
|
+
l.value !== null && (i(), t());
|
|
1071
1071
|
});
|
|
1072
|
-
return ce(
|
|
1072
|
+
return ce(u), {
|
|
1073
1073
|
localScrollTarget: l,
|
|
1074
|
-
unconfigureScrollTarget:
|
|
1074
|
+
unconfigureScrollTarget: i,
|
|
1075
1075
|
changeScrollEvent: a
|
|
1076
1076
|
};
|
|
1077
1077
|
}
|
|
1078
|
-
const
|
|
1078
|
+
const Zl = {
|
|
1079
1079
|
modelValue: {
|
|
1080
1080
|
type: Boolean,
|
|
1081
1081
|
default: null
|
|
1082
1082
|
},
|
|
1083
1083
|
"onUpdate:modelValue": [Function, Array]
|
|
1084
|
-
},
|
|
1084
|
+
}, Jl = [
|
|
1085
1085
|
"beforeShow",
|
|
1086
1086
|
"show",
|
|
1087
1087
|
"beforeHide",
|
|
1088
1088
|
"hide"
|
|
1089
1089
|
];
|
|
1090
|
-
function
|
|
1090
|
+
function eo({
|
|
1091
1091
|
showing: e,
|
|
1092
1092
|
canShow: t,
|
|
1093
1093
|
// optional
|
|
@@ -1097,10 +1097,10 @@ function to({
|
|
|
1097
1097
|
// optional
|
|
1098
1098
|
handleHide: a,
|
|
1099
1099
|
// optional
|
|
1100
|
-
processOnMount:
|
|
1100
|
+
processOnMount: i
|
|
1101
1101
|
// optional
|
|
1102
1102
|
}) {
|
|
1103
|
-
const
|
|
1103
|
+
const u = le(), { props: d, emit: m, proxy: g } = u;
|
|
1104
1104
|
let c;
|
|
1105
1105
|
function y(E) {
|
|
1106
1106
|
e.value === !0 ? v(E) : C(E);
|
|
@@ -1109,7 +1109,7 @@ function to({
|
|
|
1109
1109
|
if (d.disable === !0 || E !== void 0 && E.qAnchorHandled === !0 || t !== void 0 && t(E) !== !0)
|
|
1110
1110
|
return;
|
|
1111
1111
|
const q = d["onUpdate:modelValue"] !== void 0;
|
|
1112
|
-
q === !0 && (m("update:modelValue", !0), c = E,
|
|
1112
|
+
q === !0 && (m("update:modelValue", !0), c = E, ue(() => {
|
|
1113
1113
|
c === E && (c = void 0);
|
|
1114
1114
|
})), (d.modelValue === null || q === !1) && r(E);
|
|
1115
1115
|
}
|
|
@@ -1120,7 +1120,7 @@ function to({
|
|
|
1120
1120
|
if (d.disable === !0)
|
|
1121
1121
|
return;
|
|
1122
1122
|
const q = d["onUpdate:modelValue"] !== void 0;
|
|
1123
|
-
q === !0 && (m("update:modelValue", !1), c = E,
|
|
1123
|
+
q === !0 && (m("update:modelValue", !1), c = E, ue(() => {
|
|
1124
1124
|
c === E && (c = void 0);
|
|
1125
1125
|
})), (d.modelValue === null || q === !1) && _(E);
|
|
1126
1126
|
}
|
|
@@ -1130,7 +1130,7 @@ function to({
|
|
|
1130
1130
|
function S(E) {
|
|
1131
1131
|
d.disable === !0 && E === !0 ? d["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : E === !0 !== e.value && (E === !0 ? r : _)(c);
|
|
1132
1132
|
}
|
|
1133
|
-
K(() => d.modelValue, S), l !== void 0 && jo(
|
|
1133
|
+
K(() => d.modelValue, S), l !== void 0 && jo(u) === !0 && K(() => g.$route.fullPath, () => {
|
|
1134
1134
|
l.value === !0 && e.value === !0 && v();
|
|
1135
1135
|
}), tt(() => {
|
|
1136
1136
|
S(d.modelValue);
|
|
@@ -1138,39 +1138,39 @@ function to({
|
|
|
1138
1138
|
const P = { show: C, hide: v, toggle: y };
|
|
1139
1139
|
return Object.assign(g, P), P;
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1142
|
-
let
|
|
1143
|
-
function
|
|
1141
|
+
const bl = {};
|
|
1142
|
+
let An = 1, Tn = document.body;
|
|
1143
|
+
function Rn(e, t) {
|
|
1144
1144
|
const l = document.createElement("div");
|
|
1145
|
-
if (l.id = t !== void 0 ? `q-portal--${t}--${
|
|
1146
|
-
const o =
|
|
1145
|
+
if (l.id = t !== void 0 ? `q-portal--${t}--${An++}` : e, bl.globalNodes !== void 0) {
|
|
1146
|
+
const o = bl.globalNodes.class;
|
|
1147
1147
|
o !== void 0 && (l.className = o);
|
|
1148
1148
|
}
|
|
1149
|
-
return
|
|
1149
|
+
return Tn.appendChild(l), l;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function zn(e) {
|
|
1152
1152
|
e.remove();
|
|
1153
1153
|
}
|
|
1154
1154
|
const Je = [];
|
|
1155
|
-
function
|
|
1155
|
+
function Fn(e, t) {
|
|
1156
1156
|
do {
|
|
1157
1157
|
if (e.$options.name === "QMenu") {
|
|
1158
1158
|
if (e.hide(t), e.$props.separateClosePopup === !0)
|
|
1159
|
-
return
|
|
1159
|
+
return Rt(e);
|
|
1160
1160
|
} else if (e.__qPortal === !0) {
|
|
1161
|
-
const l =
|
|
1161
|
+
const l = Rt(e);
|
|
1162
1162
|
return l !== void 0 && l.$options.name === "QPopupProxy" ? (e.hide(t), l) : e;
|
|
1163
1163
|
}
|
|
1164
|
-
e =
|
|
1164
|
+
e = Rt(e);
|
|
1165
1165
|
} while (e != null);
|
|
1166
1166
|
}
|
|
1167
|
-
const
|
|
1167
|
+
const Mn = be({
|
|
1168
1168
|
name: "QPortal",
|
|
1169
1169
|
setup(e, { slots: t }) {
|
|
1170
1170
|
return () => t.default();
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
|
-
function
|
|
1173
|
+
function Ln(e) {
|
|
1174
1174
|
for (e = e.parent; e != null; ) {
|
|
1175
1175
|
if (e.type.name === "QGlobalDialog")
|
|
1176
1176
|
return !0;
|
|
@@ -1180,34 +1180,34 @@ function On(e) {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
return !1;
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const a = T(!1),
|
|
1185
|
-
let
|
|
1186
|
-
const d = {}, m = o === "dialog" &&
|
|
1183
|
+
function to(e, t, l, o) {
|
|
1184
|
+
const a = T(!1), i = T(!1);
|
|
1185
|
+
let u = null;
|
|
1186
|
+
const d = {}, m = o === "dialog" && Ln(e);
|
|
1187
1187
|
function g(y) {
|
|
1188
1188
|
if (y === !0) {
|
|
1189
|
-
|
|
1189
|
+
pl(d), i.value = !0;
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
|
-
|
|
1192
|
+
i.value = !1, a.value === !1 && (m === !1 && u === null && (u = Rn(!1, o)), a.value = !0, Je.push(e.proxy), yn(d));
|
|
1193
1193
|
}
|
|
1194
1194
|
function c(y) {
|
|
1195
|
-
if (
|
|
1196
|
-
|
|
1195
|
+
if (i.value = !1, y !== !0) return;
|
|
1196
|
+
pl(d), a.value = !1;
|
|
1197
1197
|
const C = Je.indexOf(e.proxy);
|
|
1198
|
-
C !== -1 && Je.splice(C, 1),
|
|
1198
|
+
C !== -1 && Je.splice(C, 1), u !== null && (zn(u), u = null);
|
|
1199
1199
|
}
|
|
1200
|
-
return
|
|
1200
|
+
return Eo(() => {
|
|
1201
1201
|
c(!0);
|
|
1202
|
-
}), e.proxy.__qPortal = !0,
|
|
1202
|
+
}), e.proxy.__qPortal = !0, Dl(e.proxy, "contentEl", () => t.value), {
|
|
1203
1203
|
showPortal: g,
|
|
1204
1204
|
hidePortal: c,
|
|
1205
1205
|
portalIsActive: a,
|
|
1206
|
-
portalIsAccessible:
|
|
1207
|
-
renderPortal: () => m === !0 ? l() : a.value === !0 ? [h(
|
|
1206
|
+
portalIsAccessible: i,
|
|
1207
|
+
renderPortal: () => m === !0 ? l() : a.value === !0 ? [h(Bo, { to: u }, h(Mn, l))] : void 0
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const lo = {
|
|
1211
1211
|
transitionShow: {
|
|
1212
1212
|
type: String,
|
|
1213
1213
|
default: "fade"
|
|
@@ -1221,7 +1221,7 @@ const oo = {
|
|
|
1221
1221
|
default: 300
|
|
1222
1222
|
}
|
|
1223
1223
|
};
|
|
1224
|
-
function
|
|
1224
|
+
function oo(e, t = () => {
|
|
1225
1225
|
}, l = () => {
|
|
1226
1226
|
}) {
|
|
1227
1227
|
return {
|
|
@@ -1240,17 +1240,17 @@ function no(e, t = () => {
|
|
|
1240
1240
|
transitionStyle: f(() => `--q-transition-duration: ${e.transitionDuration}ms`)
|
|
1241
1241
|
};
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function no() {
|
|
1244
1244
|
let e;
|
|
1245
1245
|
const t = le();
|
|
1246
1246
|
function l() {
|
|
1247
1247
|
e = void 0;
|
|
1248
1248
|
}
|
|
1249
|
-
return
|
|
1249
|
+
return Ct(l), ce(l), {
|
|
1250
1250
|
removeTick: l,
|
|
1251
1251
|
registerTick(o) {
|
|
1252
|
-
e = o,
|
|
1253
|
-
e === o && (
|
|
1252
|
+
e = o, ue(() => {
|
|
1253
|
+
e === o && ($l(t) === !1 && e(), e = void 0);
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
};
|
|
@@ -1261,40 +1261,40 @@ function io() {
|
|
|
1261
1261
|
function l() {
|
|
1262
1262
|
e !== null && (clearTimeout(e), e = null);
|
|
1263
1263
|
}
|
|
1264
|
-
return
|
|
1264
|
+
return Ct(l), ce(l), {
|
|
1265
1265
|
removeTimeout: l,
|
|
1266
1266
|
registerTimeout(o, a) {
|
|
1267
|
-
l(),
|
|
1267
|
+
l(), $l(t) === !1 && (e = setTimeout(() => {
|
|
1268
1268
|
e = null, o();
|
|
1269
1269
|
}, a));
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1274
|
-
function
|
|
1273
|
+
const On = [Element, String], In = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
1274
|
+
function Hn(e, t) {
|
|
1275
1275
|
let l = No(t);
|
|
1276
1276
|
if (l === void 0) {
|
|
1277
1277
|
if (e == null)
|
|
1278
1278
|
return window;
|
|
1279
1279
|
l = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
1280
1280
|
}
|
|
1281
|
-
return
|
|
1281
|
+
return In.includes(l) ? window : l;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function $n(e) {
|
|
1284
1284
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Pn(e) {
|
|
1287
1287
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
1288
1288
|
}
|
|
1289
|
-
let
|
|
1290
|
-
function
|
|
1291
|
-
if (
|
|
1292
|
-
return
|
|
1289
|
+
let mt;
|
|
1290
|
+
function Dn() {
|
|
1291
|
+
if (mt !== void 0)
|
|
1292
|
+
return mt;
|
|
1293
1293
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
1294
|
-
|
|
1294
|
+
sl(e, {
|
|
1295
1295
|
width: "100%",
|
|
1296
1296
|
height: "200px"
|
|
1297
|
-
}),
|
|
1297
|
+
}), sl(t, {
|
|
1298
1298
|
position: "absolute",
|
|
1299
1299
|
top: "0px",
|
|
1300
1300
|
left: "0px",
|
|
@@ -1306,34 +1306,34 @@ function Wn() {
|
|
|
1306
1306
|
const l = e.offsetWidth;
|
|
1307
1307
|
t.style.overflow = "scroll";
|
|
1308
1308
|
let o = e.offsetWidth;
|
|
1309
|
-
return l === o && (o = t.clientWidth), t.remove(),
|
|
1309
|
+
return l === o && (o = t.clientWidth), t.remove(), mt = l - o, mt;
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function Wn(e, t = !0) {
|
|
1312
1312
|
return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
|
|
1313
1313
|
}
|
|
1314
1314
|
const Te = [];
|
|
1315
1315
|
let je;
|
|
1316
|
-
function
|
|
1316
|
+
function jn(e) {
|
|
1317
1317
|
je = e.keyCode === 27;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Nn() {
|
|
1320
1320
|
je === !0 && (je = !1);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
je === !0 && (je = !1,
|
|
1322
|
+
function Kn(e) {
|
|
1323
|
+
je === !0 && (je = !1, kt(e, 27) === !0 && Te[Te.length - 1](e));
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
window[e]("keydown",
|
|
1325
|
+
function uo(e) {
|
|
1326
|
+
window[e]("keydown", jn), window[e]("blur", Nn), window[e]("keyup", Kn), je = !1;
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
we.is.desktop === !0 && (Te.push(e), Te.length === 1 &&
|
|
1328
|
+
function ao(e) {
|
|
1329
|
+
we.is.desktop === !0 && (Te.push(e), Te.length === 1 && uo("addEventListener"));
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function yt(e) {
|
|
1332
1332
|
const t = Te.indexOf(e);
|
|
1333
|
-
t !== -1 && (Te.splice(t, 1), Te.length === 0 &&
|
|
1333
|
+
t !== -1 && (Te.splice(t, 1), Te.length === 0 && uo("removeEventListener"));
|
|
1334
1334
|
}
|
|
1335
|
-
const { notPassiveCapture:
|
|
1336
|
-
function
|
|
1335
|
+
const { notPassiveCapture: St } = ge, Re = [];
|
|
1336
|
+
function wt(e) {
|
|
1337
1337
|
const t = e.target;
|
|
1338
1338
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
1339
1339
|
return;
|
|
@@ -1358,51 +1358,51 @@ function xt(e) {
|
|
|
1358
1358
|
return;
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
Re.push(e), Re.length === 1 && (document.addEventListener("mousedown",
|
|
1361
|
+
function Qn(e) {
|
|
1362
|
+
Re.push(e), Re.length === 1 && (document.addEventListener("mousedown", wt, St), document.addEventListener("touchstart", wt, St));
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function yl(e) {
|
|
1365
1365
|
const t = Re.findIndex((l) => l === e);
|
|
1366
|
-
t !== -1 && (Re.splice(t, 1), Re.length === 0 && (document.removeEventListener("mousedown",
|
|
1366
|
+
t !== -1 && (Re.splice(t, 1), Re.length === 0 && (document.removeEventListener("mousedown", wt, St), document.removeEventListener("touchstart", wt, St)));
|
|
1367
1367
|
}
|
|
1368
|
-
let
|
|
1369
|
-
function
|
|
1368
|
+
let Sl, wl;
|
|
1369
|
+
function xl(e) {
|
|
1370
1370
|
const t = e.split(" ");
|
|
1371
1371
|
return t.length !== 2 ? !1 : ["top", "center", "bottom"].includes(t[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(t[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Un(e) {
|
|
1374
1374
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const jt = {
|
|
1377
1377
|
"start#ltr": "left",
|
|
1378
1378
|
"start#rtl": "right",
|
|
1379
1379
|
"end#ltr": "right",
|
|
1380
1380
|
"end#rtl": "left"
|
|
1381
1381
|
};
|
|
1382
1382
|
["left", "middle", "right"].forEach((e) => {
|
|
1383
|
-
|
|
1383
|
+
jt[`${e}#ltr`] = e, jt[`${e}#rtl`] = e;
|
|
1384
1384
|
});
|
|
1385
|
-
function
|
|
1385
|
+
function Cl(e, t) {
|
|
1386
1386
|
const l = e.split(" ");
|
|
1387
1387
|
return {
|
|
1388
1388
|
vertical: l[0],
|
|
1389
|
-
horizontal:
|
|
1389
|
+
horizontal: jt[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
let { top: l, left: o, right: a, bottom:
|
|
1394
|
-
return t !== void 0 && (l -= t[1], o -= t[0],
|
|
1392
|
+
function Xn(e, t) {
|
|
1393
|
+
let { top: l, left: o, right: a, bottom: i, width: u, height: d } = e.getBoundingClientRect();
|
|
1394
|
+
return t !== void 0 && (l -= t[1], o -= t[0], i += t[1], a += t[0], u += t[0], d += t[1]), {
|
|
1395
1395
|
top: l,
|
|
1396
|
-
bottom:
|
|
1396
|
+
bottom: i,
|
|
1397
1397
|
height: d,
|
|
1398
1398
|
left: o,
|
|
1399
1399
|
right: a,
|
|
1400
|
-
width:
|
|
1400
|
+
width: u,
|
|
1401
1401
|
middle: o + (a - o) / 2,
|
|
1402
|
-
center: l + (
|
|
1402
|
+
center: l + (i - l) / 2
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1405
|
+
function Yn(e, t, l) {
|
|
1406
1406
|
let { top: o, left: a } = e.getBoundingClientRect();
|
|
1407
1407
|
return o += t.top, a += t.left, l !== void 0 && (o += l[1], a += l[0]), {
|
|
1408
1408
|
top: o,
|
|
@@ -1415,7 +1415,7 @@ function Gn(e, t, l) {
|
|
|
1415
1415
|
center: o
|
|
1416
1416
|
};
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Gn(e, t) {
|
|
1419
1419
|
return {
|
|
1420
1420
|
top: 0,
|
|
1421
1421
|
center: t / 2,
|
|
@@ -1425,18 +1425,18 @@ function Zn(e, t) {
|
|
|
1425
1425
|
right: e
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function kl(e, t, l, o) {
|
|
1429
1429
|
return {
|
|
1430
1430
|
top: e[l.vertical] - t[o.vertical],
|
|
1431
1431
|
left: e[l.horizontal] - t[o.horizontal]
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function ro(e, t = 0) {
|
|
1435
1435
|
if (e.targetEl === null || e.anchorEl === null || t > 5)
|
|
1436
1436
|
return;
|
|
1437
1437
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
1438
1438
|
setTimeout(() => {
|
|
1439
|
-
|
|
1439
|
+
ro(e, t + 1);
|
|
1440
1440
|
}, 10);
|
|
1441
1441
|
return;
|
|
1442
1442
|
}
|
|
@@ -1444,8 +1444,8 @@ function so(e, t = 0) {
|
|
|
1444
1444
|
targetEl: l,
|
|
1445
1445
|
offset: o,
|
|
1446
1446
|
anchorEl: a,
|
|
1447
|
-
anchorOrigin:
|
|
1448
|
-
selfOrigin:
|
|
1447
|
+
anchorOrigin: i,
|
|
1448
|
+
selfOrigin: u,
|
|
1449
1449
|
absoluteOffset: d,
|
|
1450
1450
|
fit: m,
|
|
1451
1451
|
cover: g,
|
|
@@ -1454,9 +1454,9 @@ function so(e, t = 0) {
|
|
|
1454
1454
|
} = e;
|
|
1455
1455
|
if (we.is.ios === !0 && window.visualViewport !== void 0) {
|
|
1456
1456
|
const B = document.body.style, { offsetLeft: L, offsetTop: H } = window.visualViewport;
|
|
1457
|
-
L !==
|
|
1457
|
+
L !== Sl && (B.setProperty("--q-pe-left", L + "px"), Sl = L), H !== wl && (B.setProperty("--q-pe-top", H + "px"), wl = H);
|
|
1458
1458
|
}
|
|
1459
|
-
const { scrollLeft: C, scrollTop: r } = l, v = d === void 0 ?
|
|
1459
|
+
const { scrollLeft: C, scrollTop: r } = l, v = d === void 0 ? Xn(a, g === !0 ? [0, 0] : o) : Yn(a, d, o);
|
|
1460
1460
|
Object.assign(l.style, {
|
|
1461
1461
|
top: 0,
|
|
1462
1462
|
left: 0,
|
|
@@ -1469,13 +1469,13 @@ function so(e, t = 0) {
|
|
|
1469
1469
|
const { offsetWidth: _, offsetHeight: S } = l, { elWidth: P, elHeight: E } = m === !0 || g === !0 ? { elWidth: Math.max(v.width, _), elHeight: g === !0 ? Math.max(v.height, S) : S } : { elWidth: _, elHeight: S };
|
|
1470
1470
|
let q = { maxWidth: y, maxHeight: c };
|
|
1471
1471
|
(m === !0 || g === !0) && (q.minWidth = v.width + "px", g === !0 && (q.minHeight = v.height + "px")), Object.assign(l.style, q);
|
|
1472
|
-
const R =
|
|
1473
|
-
let D =
|
|
1472
|
+
const R = Gn(P, E);
|
|
1473
|
+
let D = kl(v, R, i, u);
|
|
1474
1474
|
if (d === void 0 || o === void 0)
|
|
1475
|
-
|
|
1475
|
+
Mt(D, v, R, i, u);
|
|
1476
1476
|
else {
|
|
1477
1477
|
const { top: B, left: L } = D;
|
|
1478
|
-
|
|
1478
|
+
Mt(D, v, R, i, u);
|
|
1479
1479
|
let H = !1;
|
|
1480
1480
|
if (D.top !== B) {
|
|
1481
1481
|
H = !0;
|
|
@@ -1487,52 +1487,52 @@ function so(e, t = 0) {
|
|
|
1487
1487
|
const Q = 2 * o[0];
|
|
1488
1488
|
v.middle = v.left -= Q, v.right -= Q + 2;
|
|
1489
1489
|
}
|
|
1490
|
-
H === !0 && (D =
|
|
1490
|
+
H === !0 && (D = kl(v, R, i, u), Mt(D, v, R, i, u));
|
|
1491
1491
|
}
|
|
1492
1492
|
q = {
|
|
1493
1493
|
top: D.top + "px",
|
|
1494
1494
|
left: D.left + "px"
|
|
1495
1495
|
}, D.maxHeight !== void 0 && (q.maxHeight = D.maxHeight + "px", v.height > D.maxHeight && (q.minHeight = q.maxHeight)), D.maxWidth !== void 0 && (q.maxWidth = D.maxWidth + "px", v.width > D.maxWidth && (q.minWidth = q.maxWidth)), Object.assign(l.style, q), l.scrollTop !== r && (l.scrollTop = r), l.scrollLeft !== C && (l.scrollLeft = C);
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
const
|
|
1499
|
-
if (e.top < 0 || e.top +
|
|
1497
|
+
function Mt(e, t, l, o, a) {
|
|
1498
|
+
const i = l.bottom, u = l.right, d = Dn(), m = window.innerHeight - d, g = document.body.clientWidth;
|
|
1499
|
+
if (e.top < 0 || e.top + i > m)
|
|
1500
1500
|
if (a.vertical === "center")
|
|
1501
|
-
e.top = t[o.vertical] > m / 2 ? Math.max(0, m -
|
|
1501
|
+
e.top = t[o.vertical] > m / 2 ? Math.max(0, m - i) : 0, e.maxHeight = Math.min(i, m);
|
|
1502
1502
|
else if (t[o.vertical] > m / 2) {
|
|
1503
1503
|
const c = Math.min(
|
|
1504
1504
|
m,
|
|
1505
1505
|
o.vertical === "center" ? t.center : o.vertical === a.vertical ? t.bottom : t.top
|
|
1506
1506
|
);
|
|
1507
|
-
e.maxHeight = Math.min(
|
|
1507
|
+
e.maxHeight = Math.min(i, c), e.top = Math.max(0, c - i);
|
|
1508
1508
|
} else
|
|
1509
1509
|
e.top = Math.max(
|
|
1510
1510
|
0,
|
|
1511
1511
|
o.vertical === "center" ? t.center : o.vertical === a.vertical ? t.top : t.bottom
|
|
1512
|
-
), e.maxHeight = Math.min(
|
|
1513
|
-
if (e.left < 0 || e.left +
|
|
1514
|
-
if (e.maxWidth = Math.min(
|
|
1515
|
-
e.left = t[o.horizontal] > g / 2 ? Math.max(0, g -
|
|
1512
|
+
), e.maxHeight = Math.min(i, m - e.top);
|
|
1513
|
+
if (e.left < 0 || e.left + u > g)
|
|
1514
|
+
if (e.maxWidth = Math.min(u, g), a.horizontal === "middle")
|
|
1515
|
+
e.left = t[o.horizontal] > g / 2 ? Math.max(0, g - u) : 0;
|
|
1516
1516
|
else if (t[o.horizontal] > g / 2) {
|
|
1517
1517
|
const c = Math.min(
|
|
1518
1518
|
g,
|
|
1519
1519
|
o.horizontal === "middle" ? t.middle : o.horizontal === a.horizontal ? t.right : t.left
|
|
1520
1520
|
);
|
|
1521
|
-
e.maxWidth = Math.min(
|
|
1521
|
+
e.maxWidth = Math.min(u, c), e.left = Math.max(0, c - e.maxWidth);
|
|
1522
1522
|
} else
|
|
1523
1523
|
e.left = Math.max(
|
|
1524
1524
|
0,
|
|
1525
1525
|
o.horizontal === "middle" ? t.middle : o.horizontal === a.horizontal ? t.left : t.right
|
|
1526
|
-
), e.maxWidth = Math.min(
|
|
1526
|
+
), e.maxWidth = Math.min(u, g - e.left);
|
|
1527
1527
|
}
|
|
1528
|
-
const
|
|
1528
|
+
const Zn = be({
|
|
1529
1529
|
name: "QMenu",
|
|
1530
1530
|
inheritAttrs: !1,
|
|
1531
1531
|
props: {
|
|
1532
|
-
...
|
|
1533
|
-
...
|
|
1532
|
+
..._n,
|
|
1533
|
+
...Zl,
|
|
1534
1534
|
...lt,
|
|
1535
|
-
...
|
|
1535
|
+
...lo,
|
|
1536
1536
|
persistent: Boolean,
|
|
1537
1537
|
autoClose: Boolean,
|
|
1538
1538
|
separateClosePopup: Boolean,
|
|
@@ -1544,17 +1544,17 @@ const Jn = be({
|
|
|
1544
1544
|
square: Boolean,
|
|
1545
1545
|
anchor: {
|
|
1546
1546
|
type: String,
|
|
1547
|
-
validator:
|
|
1547
|
+
validator: xl
|
|
1548
1548
|
},
|
|
1549
1549
|
self: {
|
|
1550
1550
|
type: String,
|
|
1551
|
-
validator:
|
|
1551
|
+
validator: xl
|
|
1552
1552
|
},
|
|
1553
1553
|
offset: {
|
|
1554
1554
|
type: Array,
|
|
1555
|
-
validator:
|
|
1555
|
+
validator: Un
|
|
1556
1556
|
},
|
|
1557
|
-
scrollTarget:
|
|
1557
|
+
scrollTarget: On,
|
|
1558
1558
|
touchPosition: Boolean,
|
|
1559
1559
|
maxHeight: {
|
|
1560
1560
|
type: String,
|
|
@@ -1566,22 +1566,22 @@ const Jn = be({
|
|
|
1566
1566
|
}
|
|
1567
1567
|
},
|
|
1568
1568
|
emits: [
|
|
1569
|
-
...
|
|
1569
|
+
...Jl,
|
|
1570
1570
|
"click",
|
|
1571
1571
|
"escapeKey"
|
|
1572
1572
|
],
|
|
1573
1573
|
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
1574
|
-
let a = null,
|
|
1574
|
+
let a = null, i, u, d;
|
|
1575
1575
|
const m = le(), { proxy: g } = m, { $q: c } = g, y = T(null), C = T(!1), r = f(
|
|
1576
1576
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
1577
|
-
), v = ot(e, c), { registerTick: _, removeTick: S } =
|
|
1577
|
+
), v = 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({
|
|
1578
1578
|
showing: C,
|
|
1579
1579
|
canShow: H,
|
|
1580
1580
|
handleShow: se,
|
|
1581
1581
|
handleHide: s,
|
|
1582
1582
|
hideOnRouteChange: r,
|
|
1583
1583
|
processOnMount: !0
|
|
1584
|
-
}), { showPortal: G, hidePortal: oe, renderPortal: A } =
|
|
1584
|
+
}), { showPortal: G, hidePortal: oe, renderPortal: A } = to(m, y, N, "menu"), U = {
|
|
1585
1585
|
anchorEl: L,
|
|
1586
1586
|
innerRef: y,
|
|
1587
1587
|
onClickOutside(b) {
|
|
@@ -1590,33 +1590,33 @@ const Jn = be({
|
|
|
1590
1590
|
(b.type === "touchstart" || b.target.classList.contains("q-dialog__backdrop")) && ae(b), !0;
|
|
1591
1591
|
}
|
|
1592
1592
|
}, ne = f(
|
|
1593
|
-
() =>
|
|
1593
|
+
() => Cl(
|
|
1594
1594
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
1595
1595
|
c.lang.rtl
|
|
1596
1596
|
)
|
|
1597
|
-
), te = f(() => e.cover === !0 ? ne.value :
|
|
1597
|
+
), te = f(() => e.cover === !0 ? ne.value : Cl(e.self || "top start", c.lang.rtl)), X = f(
|
|
1598
1598
|
() => (e.square === !0 ? " q-menu--square" : "") + (v.value === !0 ? " q-menu--dark q-dark" : "")
|
|
1599
1599
|
), re = f(() => e.autoClose === !0 ? { onClick: V } : {}), k = f(
|
|
1600
1600
|
() => C.value === !0 && e.persistent !== !0
|
|
1601
1601
|
);
|
|
1602
1602
|
K(k, (b) => {
|
|
1603
|
-
b === !0 ? (
|
|
1603
|
+
b === !0 ? (ao(F), Qn(U)) : (yt(F), yl(U));
|
|
1604
1604
|
});
|
|
1605
1605
|
function M() {
|
|
1606
|
-
|
|
1606
|
+
Nt(() => {
|
|
1607
1607
|
let b = y.value;
|
|
1608
1608
|
b && b.contains(document.activeElement) !== !0 && (b = b.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || b.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || b.querySelector("[autofocus], [data-autofocus]") || b, b.focus({ preventScroll: !0 }));
|
|
1609
1609
|
});
|
|
1610
1610
|
}
|
|
1611
1611
|
function se(b) {
|
|
1612
|
-
if (a = e.noRefocus === !1 ? document.activeElement : null,
|
|
1612
|
+
if (a = e.noRefocus === !1 ? document.activeElement : null, Wl(I), G(), O(), i = void 0, b !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
1613
1613
|
const Z = Ko(b);
|
|
1614
1614
|
if (Z.left !== void 0) {
|
|
1615
1615
|
const { top: ve, left: ze } = L.value.getBoundingClientRect();
|
|
1616
|
-
|
|
1616
|
+
i = { left: Z.left - ze, top: Z.top - ve };
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
|
|
1619
|
+
u === void 0 && (u = K(
|
|
1620
1620
|
() => c.screen.width + "|" + c.screen.height + "|" + e.self + "|" + e.anchor + "|" + c.lang.rtl,
|
|
1621
1621
|
z
|
|
1622
1622
|
)), e.noFocus !== !0 && document.activeElement.blur(), _(() => {
|
|
@@ -1632,28 +1632,28 @@ const Jn = be({
|
|
|
1632
1632
|
}, e.transitionDuration);
|
|
1633
1633
|
}
|
|
1634
1634
|
function p(b) {
|
|
1635
|
-
|
|
1635
|
+
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);
|
|
1636
1636
|
}
|
|
1637
1637
|
function O() {
|
|
1638
|
-
(L.value !== null || e.scrollTarget !== void 0) && (R.value =
|
|
1638
|
+
(L.value !== null || e.scrollTarget !== void 0) && (R.value = Hn(L.value, e.scrollTarget), D(R.value, z));
|
|
1639
1639
|
}
|
|
1640
1640
|
function V(b) {
|
|
1641
|
-
d !== !0 ? (
|
|
1641
|
+
d !== !0 ? (Fn(g, b), l("click", b)) : d = !1;
|
|
1642
1642
|
}
|
|
1643
1643
|
function I(b) {
|
|
1644
|
-
k.value === !0 && e.noFocus !== !0 &&
|
|
1644
|
+
k.value === !0 && e.noFocus !== !0 && Pl(y.value, b.target) !== !0 && M();
|
|
1645
1645
|
}
|
|
1646
1646
|
function F(b) {
|
|
1647
1647
|
l("escapeKey"), Q(b);
|
|
1648
1648
|
}
|
|
1649
1649
|
function z() {
|
|
1650
|
-
|
|
1650
|
+
ro({
|
|
1651
1651
|
targetEl: y.value,
|
|
1652
1652
|
offset: e.offset,
|
|
1653
1653
|
anchorEl: L.value,
|
|
1654
1654
|
anchorOrigin: ne.value,
|
|
1655
1655
|
selfOrigin: te.value,
|
|
1656
|
-
absoluteOffset:
|
|
1656
|
+
absoluteOffset: i,
|
|
1657
1657
|
fit: e.fit,
|
|
1658
1658
|
cover: e.cover,
|
|
1659
1659
|
maxHeight: e.maxHeight,
|
|
@@ -1662,7 +1662,7 @@ const Jn = be({
|
|
|
1662
1662
|
}
|
|
1663
1663
|
function N() {
|
|
1664
1664
|
return h(
|
|
1665
|
-
|
|
1665
|
+
bt,
|
|
1666
1666
|
E.value,
|
|
1667
1667
|
() => C.value === !0 ? h("div", {
|
|
1668
1668
|
role: "menu",
|
|
@@ -1684,7 +1684,7 @@ const Jn = be({
|
|
|
1684
1684
|
return ce(p), Object.assign(g, { focus: M, updatePosition: z }), A;
|
|
1685
1685
|
}
|
|
1686
1686
|
});
|
|
1687
|
-
function
|
|
1687
|
+
function Jn(e, t, l) {
|
|
1688
1688
|
function o() {
|
|
1689
1689
|
}
|
|
1690
1690
|
return ce(() => {
|
|
@@ -1695,40 +1695,40 @@ function eu(e, t, l) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
};
|
|
1697
1697
|
}
|
|
1698
|
-
let Ye = 0,
|
|
1699
|
-
function
|
|
1700
|
-
|
|
1698
|
+
let Ye = 0, Lt, Ot, Ze, It = !1, ql, Vl, _l, Ee = null;
|
|
1699
|
+
function ei(e) {
|
|
1700
|
+
ti(e) && ae(e);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function ti(e) {
|
|
1703
1703
|
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop"))
|
|
1704
1704
|
return !0;
|
|
1705
1705
|
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;
|
|
1706
|
-
for (let
|
|
1707
|
-
const
|
|
1708
|
-
if (
|
|
1709
|
-
return o ? a < 0 &&
|
|
1706
|
+
for (let i = 0; i < t.length; i++) {
|
|
1707
|
+
const u = t[i];
|
|
1708
|
+
if (Wn(u, o))
|
|
1709
|
+
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;
|
|
1710
1710
|
}
|
|
1711
1711
|
return !0;
|
|
1712
1712
|
}
|
|
1713
|
-
function
|
|
1713
|
+
function El(e) {
|
|
1714
1714
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1717
|
-
|
|
1718
|
-
|
|
1716
|
+
function ht(e) {
|
|
1717
|
+
It !== !0 && (It = !0, requestAnimationFrame(() => {
|
|
1718
|
+
It = !1;
|
|
1719
1719
|
const { height: t } = e.target, { clientHeight: l, scrollTop: o } = document.scrollingElement;
|
|
1720
1720
|
(Ze === void 0 || t !== window.innerHeight) && (Ze = l - t, document.scrollingElement.scrollTop = o), o > Ze && (document.scrollingElement.scrollTop -= Math.ceil((o - Ze) / 8));
|
|
1721
1721
|
}));
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function Bl(e) {
|
|
1724
1724
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
1725
1725
|
if (e === "add") {
|
|
1726
1726
|
const { overflowY: o, overflowX: a } = window.getComputedStyle(t);
|
|
1727
|
-
|
|
1727
|
+
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));
|
|
1728
1728
|
}
|
|
1729
|
-
we.is.desktop === !0 && we.is.mac === !0 && window[`${e}EventListener`]("wheel",
|
|
1729
|
+
we.is.desktop === !0 && we.is.mac === !0 && window[`${e}EventListener`]("wheel", 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);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function li(e) {
|
|
1732
1732
|
let t = "add";
|
|
1733
1733
|
if (e === !0) {
|
|
1734
1734
|
if (Ye++, Ee !== null) {
|
|
@@ -1742,40 +1742,40 @@ function ou(e) {
|
|
|
1742
1742
|
return;
|
|
1743
1743
|
if (t = "remove", we.is.ios === !0 && we.is.nativeMobile === !0) {
|
|
1744
1744
|
Ee !== null && clearTimeout(Ee), Ee = setTimeout(() => {
|
|
1745
|
-
|
|
1745
|
+
Bl(t), Ee = null;
|
|
1746
1746
|
}, 100);
|
|
1747
1747
|
return;
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
|
-
|
|
1750
|
+
Bl(t);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function oi() {
|
|
1753
1753
|
let e;
|
|
1754
1754
|
return {
|
|
1755
1755
|
preventBodyScroll(t) {
|
|
1756
|
-
t !== e && (e !== void 0 || t === !0) && (e = t,
|
|
1756
|
+
t !== e && (e !== void 0 || t === !0) && (e = t, li(t));
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
}
|
|
1760
|
-
let
|
|
1761
|
-
const
|
|
1760
|
+
let gt = 0;
|
|
1761
|
+
const ni = {
|
|
1762
1762
|
standard: "fixed-full flex-center",
|
|
1763
1763
|
top: "fixed-top justify-center",
|
|
1764
1764
|
bottom: "fixed-bottom justify-center",
|
|
1765
1765
|
right: "fixed-right items-center",
|
|
1766
1766
|
left: "fixed-left items-center"
|
|
1767
|
-
},
|
|
1767
|
+
}, Al = {
|
|
1768
1768
|
standard: ["scale", "scale"],
|
|
1769
1769
|
top: ["slide-down", "slide-up"],
|
|
1770
1770
|
bottom: ["slide-up", "slide-down"],
|
|
1771
1771
|
right: ["slide-left", "slide-right"],
|
|
1772
1772
|
left: ["slide-right", "slide-left"]
|
|
1773
|
-
},
|
|
1773
|
+
}, ii = be({
|
|
1774
1774
|
name: "QDialog",
|
|
1775
1775
|
inheritAttrs: !1,
|
|
1776
1776
|
props: {
|
|
1777
|
-
...
|
|
1778
|
-
...
|
|
1777
|
+
...Zl,
|
|
1778
|
+
...lo,
|
|
1779
1779
|
transitionShow: String,
|
|
1780
1780
|
// override useTransitionProps
|
|
1781
1781
|
transitionHide: String,
|
|
@@ -1802,43 +1802,43 @@ const uu = {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
},
|
|
1804
1804
|
emits: [
|
|
1805
|
-
...
|
|
1805
|
+
...Jl,
|
|
1806
1806
|
"shake",
|
|
1807
1807
|
"click",
|
|
1808
1808
|
"escapeKey"
|
|
1809
1809
|
],
|
|
1810
1810
|
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
1811
|
-
const a = le(),
|
|
1811
|
+
const a = le(), i = T(null), u = T(!1), d = T(!1);
|
|
1812
1812
|
let m = null, g = null, c, y;
|
|
1813
1813
|
const C = f(
|
|
1814
1814
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
1815
|
-
), { preventBodyScroll: r } =
|
|
1815
|
+
), { preventBodyScroll: r } = oi(), { registerTimeout: v } = io(), { registerTick: _, removeTick: S } = no(), { transitionProps: P, transitionStyle: E } = oo(
|
|
1816
1816
|
e,
|
|
1817
|
-
() =>
|
|
1818
|
-
() =>
|
|
1819
|
-
), q = f(() => E.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: R, hidePortal: D, portalIsAccessible: B, renderPortal: L } =
|
|
1817
|
+
() => Al[e.position][0],
|
|
1818
|
+
() => Al[e.position][1]
|
|
1819
|
+
), q = f(() => E.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: R, hidePortal: D, portalIsAccessible: B, renderPortal: L } = to(
|
|
1820
1820
|
a,
|
|
1821
|
-
|
|
1821
|
+
i,
|
|
1822
1822
|
O,
|
|
1823
1823
|
"dialog"
|
|
1824
|
-
), { hide: H } =
|
|
1825
|
-
showing:
|
|
1824
|
+
), { hide: H } = eo({
|
|
1825
|
+
showing: u,
|
|
1826
1826
|
hideOnRouteChange: C,
|
|
1827
1827
|
handleShow: U,
|
|
1828
1828
|
handleHide: ne,
|
|
1829
1829
|
processOnMount: !0
|
|
1830
1830
|
});
|
|
1831
|
-
|
|
1831
|
+
Jn(u);
|
|
1832
1832
|
const Q = f(
|
|
1833
|
-
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${
|
|
1834
|
-
), G = f(() =>
|
|
1833
|
+
() => `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" : "")
|
|
1834
|
+
), G = f(() => u.value === !0 && e.seamless !== !0), oe = f(() => e.autoClose === !0 ? { onClick: se } : {}), A = f(() => [
|
|
1835
1835
|
`q-dialog fullscreen no-pointer-events q-dialog--${G.value === !0 ? "modal" : "seamless"}`,
|
|
1836
1836
|
o.class
|
|
1837
1837
|
]);
|
|
1838
1838
|
K(() => e.maximized, (V) => {
|
|
1839
|
-
|
|
1839
|
+
u.value === !0 && M(V);
|
|
1840
1840
|
}), K(G, (V) => {
|
|
1841
|
-
r(V), V === !0 ? (
|
|
1841
|
+
r(V), V === !0 ? (Wl(p), ao(re)) : (Pt(p), yt(re));
|
|
1842
1842
|
});
|
|
1843
1843
|
function U(V) {
|
|
1844
1844
|
g = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, M(e.maximized), R(), d.value = !0, e.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), _(te)) : S(), v(() => {
|
|
@@ -1850,7 +1850,7 @@ const uu = {
|
|
|
1850
1850
|
F >= z ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + F - N / 2)
|
|
1851
1851
|
)), document.activeElement.scrollIntoView();
|
|
1852
1852
|
}
|
|
1853
|
-
y = !0,
|
|
1853
|
+
y = !0, i.value.click(), y = !1;
|
|
1854
1854
|
}
|
|
1855
1855
|
R(!0), d.value = !1, l("show", V);
|
|
1856
1856
|
}, e.transitionDuration);
|
|
@@ -1861,8 +1861,8 @@ const uu = {
|
|
|
1861
1861
|
}, e.transitionDuration);
|
|
1862
1862
|
}
|
|
1863
1863
|
function te(V) {
|
|
1864
|
-
|
|
1865
|
-
let I =
|
|
1864
|
+
Nt(() => {
|
|
1865
|
+
let I = i.value;
|
|
1866
1866
|
if (I !== null) {
|
|
1867
1867
|
if (V !== void 0) {
|
|
1868
1868
|
const F = I.querySelector(V);
|
|
@@ -1877,19 +1877,19 @@ const uu = {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
function X(V) {
|
|
1879
1879
|
V && typeof V.focus == "function" ? V.focus({ preventScroll: !0 }) : te(), l("shake");
|
|
1880
|
-
const I =
|
|
1880
|
+
const I = i.value;
|
|
1881
1881
|
I !== null && (I.classList.remove("q-animate--scale"), I.classList.add("q-animate--scale"), m !== null && clearTimeout(m), m = setTimeout(() => {
|
|
1882
|
-
m = null,
|
|
1882
|
+
m = null, i.value !== null && (I.classList.remove("q-animate--scale"), te());
|
|
1883
1883
|
}, 170));
|
|
1884
1884
|
}
|
|
1885
1885
|
function re() {
|
|
1886
1886
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && X() : (l("escapeKey"), H()));
|
|
1887
1887
|
}
|
|
1888
1888
|
function k(V) {
|
|
1889
|
-
m !== null && (clearTimeout(m), m = null), (V === !0 ||
|
|
1889
|
+
m !== null && (clearTimeout(m), m = null), (V === !0 || u.value === !0) && (M(!1), e.seamless !== !0 && (r(!1), Pt(p), yt(re))), V !== !0 && (g = null);
|
|
1890
1890
|
}
|
|
1891
1891
|
function M(V) {
|
|
1892
|
-
V === !0 ? c !== !0 && (
|
|
1892
|
+
V === !0 ? c !== !0 && (gt < 1 && document.body.classList.add("q-body--dialog"), gt++, c = !0) : c === !0 && (gt < 2 && document.body.classList.remove("q-body--dialog"), gt--, c = !1);
|
|
1893
1893
|
}
|
|
1894
1894
|
function se(V) {
|
|
1895
1895
|
y !== !0 && (H(V), l("click", V));
|
|
@@ -1898,7 +1898,7 @@ const uu = {
|
|
|
1898
1898
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? H(V) : e.noShake !== !0 && X();
|
|
1899
1899
|
}
|
|
1900
1900
|
function p(V) {
|
|
1901
|
-
e.allowFocusOutside !== !0 && B.value === !0 &&
|
|
1901
|
+
e.allowFocusOutside !== !0 && B.value === !0 && Pl(i.value, V.target) !== !0 && te('[tabindex]:not([tabindex="-1"])');
|
|
1902
1902
|
}
|
|
1903
1903
|
Object.assign(a.proxy, {
|
|
1904
1904
|
// expose public methods
|
|
@@ -1916,7 +1916,7 @@ const uu = {
|
|
|
1916
1916
|
...o,
|
|
1917
1917
|
class: A.value
|
|
1918
1918
|
}, [
|
|
1919
|
-
h(
|
|
1919
|
+
h(bt, {
|
|
1920
1920
|
name: "q-transition--fade",
|
|
1921
1921
|
appear: !0
|
|
1922
1922
|
}, () => G.value === !0 ? h("div", {
|
|
@@ -1927,10 +1927,10 @@ const uu = {
|
|
|
1927
1927
|
onClick: s
|
|
1928
1928
|
}) : null),
|
|
1929
1929
|
h(
|
|
1930
|
-
|
|
1930
|
+
bt,
|
|
1931
1931
|
P.value,
|
|
1932
|
-
() =>
|
|
1933
|
-
ref:
|
|
1932
|
+
() => u.value === !0 ? h("div", {
|
|
1933
|
+
ref: i,
|
|
1934
1934
|
class: Q.value,
|
|
1935
1935
|
style: E.value,
|
|
1936
1936
|
tabindex: -1,
|
|
@@ -1942,7 +1942,7 @@ const uu = {
|
|
|
1942
1942
|
return L;
|
|
1943
1943
|
}
|
|
1944
1944
|
});
|
|
1945
|
-
let
|
|
1945
|
+
let xt = !1;
|
|
1946
1946
|
{
|
|
1947
1947
|
const e = document.createElement("div");
|
|
1948
1948
|
e.setAttribute("dir", "rtl"), Object.assign(e.style, {
|
|
@@ -1954,22 +1954,22 @@ let Ct = !1;
|
|
|
1954
1954
|
Object.assign(t.style, {
|
|
1955
1955
|
width: "1000px",
|
|
1956
1956
|
height: "1px"
|
|
1957
|
-
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3,
|
|
1957
|
+
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, xt = e.scrollLeft >= 0, e.remove();
|
|
1958
1958
|
}
|
|
1959
|
-
const fe = 1e3,
|
|
1959
|
+
const fe = 1e3, ui = [
|
|
1960
1960
|
"start",
|
|
1961
1961
|
"center",
|
|
1962
1962
|
"end",
|
|
1963
1963
|
"start-force",
|
|
1964
1964
|
"center-force",
|
|
1965
1965
|
"end-force"
|
|
1966
|
-
],
|
|
1966
|
+
], so = Array.prototype.filter, ai = window.getComputedStyle(document.body).overflowAnchor === void 0 ? Uo : function(e, t) {
|
|
1967
1967
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
1968
1968
|
if (e === null)
|
|
1969
1969
|
return;
|
|
1970
1970
|
e._qOverflowAnimationFrame = void 0;
|
|
1971
1971
|
const l = e.children || [];
|
|
1972
|
-
|
|
1972
|
+
so.call(l, (a) => a.dataset && a.dataset.qVsAnchor !== void 0).forEach((a) => {
|
|
1973
1973
|
delete a.dataset.qVsAnchor;
|
|
1974
1974
|
});
|
|
1975
1975
|
const o = l[t];
|
|
@@ -1979,15 +1979,15 @@ const fe = 1e3, au = [
|
|
|
1979
1979
|
function We(e, t) {
|
|
1980
1980
|
return e + t;
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function Ht(e, t, l, o, a, i, u, d) {
|
|
1983
1983
|
const m = e === window ? document.scrollingElement || document.documentElement : e, g = a === !0 ? "offsetWidth" : "offsetHeight", c = {
|
|
1984
1984
|
scrollStart: 0,
|
|
1985
|
-
scrollViewSize: -
|
|
1985
|
+
scrollViewSize: -u - d,
|
|
1986
1986
|
scrollMaxSize: 0,
|
|
1987
|
-
offsetStart: -
|
|
1987
|
+
offsetStart: -u,
|
|
1988
1988
|
offsetEnd: -d
|
|
1989
1989
|
};
|
|
1990
|
-
if (a === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = m.scrollLeft, c.scrollViewSize += m.clientWidth), c.scrollMaxSize = m.scrollWidth,
|
|
1990
|
+
if (a === !0 ? (e === window ? (c.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, c.scrollViewSize += document.documentElement.clientWidth) : (c.scrollStart = m.scrollLeft, c.scrollViewSize += m.clientWidth), c.scrollMaxSize = m.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 = m.scrollTop, c.scrollViewSize += m.clientHeight), c.scrollMaxSize = m.scrollHeight), l !== null)
|
|
1991
1991
|
for (let y = l.previousElementSibling; y !== null; y = y.previousElementSibling)
|
|
1992
1992
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (c.offsetStart += y[g]);
|
|
1993
1993
|
if (o !== null)
|
|
@@ -1999,17 +1999,17 @@ function $t(e, t, l, o, a, u, i, d) {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
return c;
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (o === !0 && (t = (
|
|
2002
|
+
function Tl(e, t, l, o) {
|
|
2003
|
+
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;
|
|
2004
2004
|
}
|
|
2005
2005
|
function Ge(e, t, l, o) {
|
|
2006
2006
|
if (l >= o)
|
|
2007
2007
|
return 0;
|
|
2008
|
-
const a = t.length,
|
|
2009
|
-
let d = e.slice(
|
|
2010
|
-
return l % fe !== 0 && (d -= t.slice(
|
|
2008
|
+
const a = t.length, i = Math.floor(l / fe), u = Math.floor((o - 1) / fe) + 1;
|
|
2009
|
+
let d = e.slice(i, u).reduce(We, 0);
|
|
2010
|
+
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;
|
|
2011
2011
|
}
|
|
2012
|
-
const
|
|
2012
|
+
const ri = {
|
|
2013
2013
|
virtualScrollSliceSize: {
|
|
2014
2014
|
type: [Number, String],
|
|
2015
2015
|
default: 10
|
|
@@ -2035,24 +2035,24 @@ const su = {
|
|
|
2035
2035
|
default: 0
|
|
2036
2036
|
},
|
|
2037
2037
|
tableColspan: [Number, String]
|
|
2038
|
-
},
|
|
2038
|
+
}, Rl = {
|
|
2039
2039
|
virtualScrollHorizontal: Boolean,
|
|
2040
2040
|
onVirtualScroll: Function,
|
|
2041
|
-
...
|
|
2041
|
+
...ri
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2043
|
+
function si({
|
|
2044
2044
|
virtualScrollLength: e,
|
|
2045
2045
|
getVirtualScrollTarget: t,
|
|
2046
2046
|
getVirtualScrollEl: l,
|
|
2047
2047
|
virtualScrollItemSizeComputed: o
|
|
2048
2048
|
// optional
|
|
2049
2049
|
}) {
|
|
2050
|
-
const a = le(), { props:
|
|
2050
|
+
const a = le(), { props: i, emit: u, proxy: d } = a, { $q: m } = d;
|
|
2051
2051
|
let g, c, y, C = [], r;
|
|
2052
|
-
const v = T(0), _ = T(0), S = T({}), P = T(null), E = T(null), q = T(null), R = T({ from: 0, to: 0 }), D = f(() =>
|
|
2053
|
-
o === void 0 && (o = f(() =>
|
|
2054
|
-
const B = f(() => o.value + ";" +
|
|
2055
|
-
() => B.value + ";" +
|
|
2052
|
+
const v = 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);
|
|
2053
|
+
o === void 0 && (o = f(() => i.virtualScrollItemSize));
|
|
2054
|
+
const B = f(() => o.value + ";" + i.virtualScrollHorizontal), L = f(
|
|
2055
|
+
() => B.value + ";" + i.virtualScrollSliceRatioBefore + ";" + i.virtualScrollSliceRatioAfter
|
|
2056
2056
|
);
|
|
2057
2057
|
K(L, () => {
|
|
2058
2058
|
X();
|
|
@@ -2067,37 +2067,37 @@ function cu({
|
|
|
2067
2067
|
const O = t();
|
|
2068
2068
|
if (O == null || O.nodeType === 8)
|
|
2069
2069
|
return;
|
|
2070
|
-
const V =
|
|
2070
|
+
const V = Ht(
|
|
2071
2071
|
O,
|
|
2072
2072
|
l(),
|
|
2073
2073
|
P.value,
|
|
2074
2074
|
E.value,
|
|
2075
|
-
|
|
2075
|
+
i.virtualScrollHorizontal,
|
|
2076
2076
|
m.lang.rtl,
|
|
2077
|
-
|
|
2078
|
-
|
|
2077
|
+
i.virtualScrollStickySizeStart,
|
|
2078
|
+
i.virtualScrollStickySizeEnd
|
|
2079
2079
|
);
|
|
2080
2080
|
y !== V.scrollViewSize && X(V.scrollViewSize), A(
|
|
2081
2081
|
O,
|
|
2082
2082
|
V,
|
|
2083
2083
|
Math.min(e.value - 1, Math.max(0, parseInt(s, 10) || 0)),
|
|
2084
2084
|
0,
|
|
2085
|
-
|
|
2085
|
+
ui.indexOf(p) !== -1 ? p : c !== -1 && s > c ? "end" : "start"
|
|
2086
2086
|
);
|
|
2087
2087
|
}
|
|
2088
2088
|
function oe() {
|
|
2089
2089
|
const s = t();
|
|
2090
2090
|
if (s == null || s.nodeType === 8)
|
|
2091
2091
|
return;
|
|
2092
|
-
const p =
|
|
2092
|
+
const p = Ht(
|
|
2093
2093
|
s,
|
|
2094
2094
|
l(),
|
|
2095
2095
|
P.value,
|
|
2096
2096
|
E.value,
|
|
2097
|
-
|
|
2097
|
+
i.virtualScrollHorizontal,
|
|
2098
2098
|
m.lang.rtl,
|
|
2099
|
-
|
|
2100
|
-
|
|
2099
|
+
i.virtualScrollStickySizeStart,
|
|
2100
|
+
i.virtualScrollStickySizeEnd
|
|
2101
2101
|
), O = e.value - 1, V = p.scrollMaxSize - p.offsetStart - p.offsetEnd - _.value;
|
|
2102
2102
|
if (g === p.scrollStart)
|
|
2103
2103
|
return;
|
|
@@ -2143,7 +2143,7 @@ function cu({
|
|
|
2143
2143
|
const { activeElement: ze } = document, me = q.value;
|
|
2144
2144
|
ve === !0 && me !== null && me !== ze && me.contains(ze) === !0 && (me.addEventListener("focusout", ne), setTimeout(() => {
|
|
2145
2145
|
me !== null && me.removeEventListener("focusout", ne);
|
|
2146
|
-
})),
|
|
2146
|
+
})), ai(me, O - b);
|
|
2147
2147
|
const nt = z !== void 0 ? r.slice(b, O).reduce(We, 0) : 0;
|
|
2148
2148
|
if (ve === !0) {
|
|
2149
2149
|
const ke = Z >= R.value.from && b <= R.value.to ? R.value.to : Z;
|
|
@@ -2155,16 +2155,16 @@ function cu({
|
|
|
2155
2155
|
if (g !== p.scrollStart)
|
|
2156
2156
|
return;
|
|
2157
2157
|
ve === !0 && U(b);
|
|
2158
|
-
const ke = r.slice(b, O).reduce(We, 0), qe = ke + p.offsetStart + v.value,
|
|
2158
|
+
const ke = r.slice(b, O).reduce(We, 0), qe = ke + p.offsetStart + v.value, it = qe + r[O];
|
|
2159
2159
|
let Ne = qe + V;
|
|
2160
2160
|
if (z !== void 0) {
|
|
2161
|
-
const
|
|
2162
|
-
Ne = F !== !0 && Ke < qe &&
|
|
2161
|
+
const qt = ke - nt, Ke = p.scrollStart + qt;
|
|
2162
|
+
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));
|
|
2163
2163
|
}
|
|
2164
|
-
g = Ne,
|
|
2164
|
+
g = Ne, Tl(
|
|
2165
2165
|
s,
|
|
2166
2166
|
Ne,
|
|
2167
|
-
|
|
2167
|
+
i.virtualScrollHorizontal,
|
|
2168
2168
|
m.lang.rtl
|
|
2169
2169
|
), k(O);
|
|
2170
2170
|
});
|
|
@@ -2172,10 +2172,10 @@ function cu({
|
|
|
2172
2172
|
function U(s) {
|
|
2173
2173
|
const p = q.value;
|
|
2174
2174
|
if (p) {
|
|
2175
|
-
const O =
|
|
2175
|
+
const O = so.call(
|
|
2176
2176
|
p.children,
|
|
2177
2177
|
(b) => b.classList && b.classList.contains("q-virtual-scroll--skip") === !1
|
|
2178
|
-
), V = O.length, I =
|
|
2178
|
+
), V = O.length, I = i.virtualScrollHorizontal === !0 ? (b) => b.getBoundingClientRect().width : (b) => b.offsetHeight;
|
|
2179
2179
|
let F = s, z, N;
|
|
2180
2180
|
for (let b = 0; b < V; ) {
|
|
2181
2181
|
for (z = I(O[b]), b++; b < V && O[b].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
@@ -2203,29 +2203,29 @@ function cu({
|
|
|
2203
2203
|
z += r[b];
|
|
2204
2204
|
C.push(z);
|
|
2205
2205
|
}
|
|
2206
|
-
c = -1, g = void 0, v.value = Ge(C, r, 0, R.value.from), _.value = Ge(C, r, R.value.to, e.value), s >= 0 ? (U(R.value.from),
|
|
2206
|
+
c = -1, g = void 0, v.value = Ge(C, r, 0, R.value.from), _.value = Ge(C, r, R.value.to, e.value), s >= 0 ? (U(R.value.from), ue(() => {
|
|
2207
2207
|
G(s);
|
|
2208
2208
|
})) : M();
|
|
2209
2209
|
}
|
|
2210
2210
|
function X(s) {
|
|
2211
2211
|
if (s === void 0 && typeof window < "u") {
|
|
2212
2212
|
const z = t();
|
|
2213
|
-
z != null && z.nodeType !== 8 && (s =
|
|
2213
|
+
z != null && z.nodeType !== 8 && (s = Ht(
|
|
2214
2214
|
z,
|
|
2215
2215
|
l(),
|
|
2216
2216
|
P.value,
|
|
2217
2217
|
E.value,
|
|
2218
|
-
|
|
2218
|
+
i.virtualScrollHorizontal,
|
|
2219
2219
|
m.lang.rtl,
|
|
2220
|
-
|
|
2221
|
-
|
|
2220
|
+
i.virtualScrollStickySizeStart,
|
|
2221
|
+
i.virtualScrollStickySizeEnd
|
|
2222
2222
|
).scrollViewSize);
|
|
2223
2223
|
}
|
|
2224
2224
|
y = s;
|
|
2225
|
-
const p = parseFloat(
|
|
2225
|
+
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(
|
|
2226
2226
|
1,
|
|
2227
2227
|
I,
|
|
2228
|
-
Math.ceil((
|
|
2228
|
+
Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / V)
|
|
2229
2229
|
);
|
|
2230
2230
|
S.value = {
|
|
2231
2231
|
total: Math.ceil(F * V),
|
|
@@ -2236,7 +2236,7 @@ function cu({
|
|
|
2236
2236
|
};
|
|
2237
2237
|
}
|
|
2238
2238
|
function re(s, p) {
|
|
2239
|
-
const O =
|
|
2239
|
+
const O = i.virtualScrollHorizontal === !0 ? "width" : "height", V = {
|
|
2240
2240
|
["--q-virtual-scroll-item-" + O]: o.value + "px"
|
|
2241
2241
|
};
|
|
2242
2242
|
return [
|
|
@@ -2283,7 +2283,7 @@ function cu({
|
|
|
2283
2283
|
];
|
|
2284
2284
|
}
|
|
2285
2285
|
function k(s) {
|
|
2286
|
-
c !== s && (
|
|
2286
|
+
c !== s && (i.onVirtualScroll !== void 0 && u("virtualScroll", {
|
|
2287
2287
|
index: s,
|
|
2288
2288
|
from: R.value.from,
|
|
2289
2289
|
to: R.value.to - 1,
|
|
@@ -2292,23 +2292,23 @@ function cu({
|
|
|
2292
2292
|
}), c = s);
|
|
2293
2293
|
}
|
|
2294
2294
|
X();
|
|
2295
|
-
const M =
|
|
2295
|
+
const M = Ql(
|
|
2296
2296
|
oe,
|
|
2297
2297
|
m.platform.is.ios === !0 ? 120 : 35
|
|
2298
2298
|
);
|
|
2299
|
-
|
|
2299
|
+
Ao(() => {
|
|
2300
2300
|
X();
|
|
2301
2301
|
});
|
|
2302
2302
|
let se = !1;
|
|
2303
|
-
return
|
|
2303
|
+
return Ct(() => {
|
|
2304
2304
|
se = !0;
|
|
2305
|
-
}),
|
|
2305
|
+
}), Ll(() => {
|
|
2306
2306
|
if (se !== !0) return;
|
|
2307
2307
|
const s = t();
|
|
2308
|
-
g !== void 0 && s !== void 0 && s !== null && s.nodeType !== 8 ?
|
|
2308
|
+
g !== void 0 && s !== void 0 && s !== null && s.nodeType !== 8 ? Tl(
|
|
2309
2309
|
s,
|
|
2310
2310
|
g,
|
|
2311
|
-
|
|
2311
|
+
i.virtualScrollHorizontal,
|
|
2312
2312
|
m.lang.rtl
|
|
2313
2313
|
) : G(c);
|
|
2314
2314
|
}), ce(() => {
|
|
@@ -2325,13 +2325,13 @@ function cu({
|
|
|
2325
2325
|
refresh: Q
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
const
|
|
2329
|
-
function
|
|
2328
|
+
const ci = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, di = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, fi = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, vi = /[a-z0-9_ -]$/i;
|
|
2329
|
+
function mi(e) {
|
|
2330
2330
|
return function(l) {
|
|
2331
2331
|
if (l.type === "compositionend" || l.type === "change") {
|
|
2332
2332
|
if (l.target.qComposing !== !0) return;
|
|
2333
2333
|
l.target.qComposing = !1, e(l);
|
|
2334
|
-
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (we.is.firefox === !0 ?
|
|
2334
|
+
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (we.is.firefox === !0 ? vi.test(l.data) === !1 : ci.test(l.data) === !0 || di.test(l.data) === !0 || fi.test(l.data) === !0) === !0 && (l.target.qComposing = !0);
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
2337
|
function Ce(e, t) {
|
|
@@ -2352,27 +2352,27 @@ function Ce(e, t) {
|
|
|
2352
2352
|
if (e.constructor === Map) {
|
|
2353
2353
|
if (e.size !== t.size)
|
|
2354
2354
|
return !1;
|
|
2355
|
-
let
|
|
2356
|
-
for (o =
|
|
2355
|
+
let i = e.entries();
|
|
2356
|
+
for (o = i.next(); o.done !== !0; ) {
|
|
2357
2357
|
if (t.has(o.value[0]) !== !0)
|
|
2358
2358
|
return !1;
|
|
2359
|
-
o =
|
|
2359
|
+
o = i.next();
|
|
2360
2360
|
}
|
|
2361
|
-
for (
|
|
2361
|
+
for (i = e.entries(), o = i.next(); o.done !== !0; ) {
|
|
2362
2362
|
if (Ce(o.value[1], t.get(o.value[0])) !== !0)
|
|
2363
2363
|
return !1;
|
|
2364
|
-
o =
|
|
2364
|
+
o = i.next();
|
|
2365
2365
|
}
|
|
2366
2366
|
return !0;
|
|
2367
2367
|
}
|
|
2368
2368
|
if (e.constructor === Set) {
|
|
2369
2369
|
if (e.size !== t.size)
|
|
2370
2370
|
return !1;
|
|
2371
|
-
const
|
|
2372
|
-
for (o =
|
|
2371
|
+
const i = e.entries();
|
|
2372
|
+
for (o = i.next(); o.done !== !0; ) {
|
|
2373
2373
|
if (t.has(o.value[0]) !== !0)
|
|
2374
2374
|
return !1;
|
|
2375
|
-
o =
|
|
2375
|
+
o = i.next();
|
|
2376
2376
|
}
|
|
2377
2377
|
return !0;
|
|
2378
2378
|
}
|
|
@@ -2390,38 +2390,38 @@ function Ce(e, t) {
|
|
|
2390
2390
|
return e.valueOf() === t.valueOf();
|
|
2391
2391
|
if (e.toString !== Object.prototype.toString)
|
|
2392
2392
|
return e.toString() === t.toString();
|
|
2393
|
-
const a = Object.keys(e).filter((
|
|
2394
|
-
if (l = a.length, l !== Object.keys(t).filter((
|
|
2393
|
+
const a = Object.keys(e).filter((i) => e[i] !== void 0);
|
|
2394
|
+
if (l = a.length, l !== Object.keys(t).filter((i) => t[i] !== void 0).length)
|
|
2395
2395
|
return !1;
|
|
2396
2396
|
for (o = l; o-- !== 0; ) {
|
|
2397
|
-
const
|
|
2398
|
-
if (Ce(e[
|
|
2397
|
+
const i = a[o];
|
|
2398
|
+
if (Ce(e[i], t[i]) !== !0)
|
|
2399
2399
|
return !1;
|
|
2400
2400
|
}
|
|
2401
2401
|
return !0;
|
|
2402
2402
|
}
|
|
2403
2403
|
return e !== e && t !== t;
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function zl(e, t, l) {
|
|
2406
2406
|
if (l <= t)
|
|
2407
2407
|
return t;
|
|
2408
2408
|
const o = l - t + 1;
|
|
2409
2409
|
let a = t + (e - t) % o;
|
|
2410
2410
|
return a < t && (a = o + a), a === 0 ? 0 : a;
|
|
2411
2411
|
}
|
|
2412
|
-
const
|
|
2413
|
-
function
|
|
2412
|
+
const Fl = (e) => ["add", "add-unique", "toggle"].includes(e), hi = ".*+?^${}()|[]\\", gi = Object.keys(Kt);
|
|
2413
|
+
function $t(e, t) {
|
|
2414
2414
|
if (typeof e == "function") return e;
|
|
2415
2415
|
const l = e !== void 0 ? e : t;
|
|
2416
2416
|
return (o) => o !== null && typeof o == "object" && l in o ? o[l] : o;
|
|
2417
2417
|
}
|
|
2418
|
-
const
|
|
2418
|
+
const pi = be({
|
|
2419
2419
|
name: "QSelect",
|
|
2420
2420
|
inheritAttrs: !1,
|
|
2421
2421
|
props: {
|
|
2422
|
-
...
|
|
2423
|
-
...
|
|
2424
|
-
...
|
|
2422
|
+
...Rl,
|
|
2423
|
+
...jl,
|
|
2424
|
+
...Kt,
|
|
2425
2425
|
// override of useFieldProps > modelValue
|
|
2426
2426
|
modelValue: {
|
|
2427
2427
|
required: !0
|
|
@@ -2460,7 +2460,7 @@ const bu = be({
|
|
|
2460
2460
|
useChips: Boolean,
|
|
2461
2461
|
newValueMode: {
|
|
2462
2462
|
type: String,
|
|
2463
|
-
validator:
|
|
2463
|
+
validator: Fl
|
|
2464
2464
|
},
|
|
2465
2465
|
mapOptions: Boolean,
|
|
2466
2466
|
emitValue: Boolean,
|
|
@@ -2485,12 +2485,12 @@ const bu = be({
|
|
|
2485
2485
|
default: "default"
|
|
2486
2486
|
},
|
|
2487
2487
|
// override of useVirtualScrollProps > virtualScrollItemSize (no default)
|
|
2488
|
-
virtualScrollItemSize:
|
|
2488
|
+
virtualScrollItemSize: Rl.virtualScrollItemSize.type,
|
|
2489
2489
|
onNewValue: Function,
|
|
2490
2490
|
onFilter: Function
|
|
2491
2491
|
},
|
|
2492
2492
|
emits: [
|
|
2493
|
-
...
|
|
2493
|
+
...Xl,
|
|
2494
2494
|
"add",
|
|
2495
2495
|
"remove",
|
|
2496
2496
|
"inputValue",
|
|
@@ -2502,9 +2502,9 @@ const bu = be({
|
|
|
2502
2502
|
"filterAbort"
|
|
2503
2503
|
],
|
|
2504
2504
|
setup(e, { slots: t, emit: l }) {
|
|
2505
|
-
const { proxy: o } = le(), { $q: a } = o,
|
|
2505
|
+
const { proxy: o } = le(), { $q: a } = o, i = T(!1), u = T(!1), d = T(-1), m = T(""), g = T(!1), c = T(!1);
|
|
2506
2506
|
let y = null, C = null, r, v, _, S = null, P, E, q, R;
|
|
2507
|
-
const D = T(null), B = T(null), L = T(null), H = T(null), Q = T(null), G =
|
|
2507
|
+
const D = T(null), B = T(null), L = T(null), H = T(null), Q = T(null), G = 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), {
|
|
2508
2508
|
virtualScrollSliceRange: ne,
|
|
2509
2509
|
virtualScrollSliceSizeComputed: te,
|
|
2510
2510
|
localResetVirtualScroll: X,
|
|
@@ -2512,31 +2512,31 @@ const bu = be({
|
|
|
2512
2512
|
onVirtualScrollEvt: k,
|
|
2513
2513
|
scrollTo: M,
|
|
2514
2514
|
setVirtualScrollSize: se
|
|
2515
|
-
} =
|
|
2515
|
+
} = si({
|
|
2516
2516
|
virtualScrollLength: A,
|
|
2517
|
-
getVirtualScrollTarget:
|
|
2518
|
-
getVirtualScrollEl:
|
|
2517
|
+
getVirtualScrollTarget: mo,
|
|
2518
|
+
getVirtualScrollEl: el,
|
|
2519
2519
|
virtualScrollItemSizeComputed: U
|
|
2520
|
-
}), s =
|
|
2520
|
+
}), s = Yl(), p = f(() => {
|
|
2521
2521
|
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] : [];
|
|
2522
2522
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
2523
|
-
const x = e.mapOptions === !0 && r !== void 0 ? r : [], $ = w.map((j) =>
|
|
2523
|
+
const x = e.mapOptions === !0 && r !== void 0 ? r : [], $ = w.map((j) => vo(j, x));
|
|
2524
2524
|
return e.modelValue === null && n === !0 ? $.filter((j) => j !== null) : $;
|
|
2525
2525
|
}
|
|
2526
2526
|
return w;
|
|
2527
2527
|
}), O = f(() => {
|
|
2528
2528
|
const n = {};
|
|
2529
|
-
return
|
|
2529
|
+
return gi.forEach((w) => {
|
|
2530
2530
|
const x = e[w];
|
|
2531
2531
|
x !== void 0 && (n[w] = x);
|
|
2532
2532
|
}), n;
|
|
2533
|
-
}), V = f(() => e.optionsDark === null ? s.isDark.value : e.optionsDark), I = f(() =>
|
|
2533
|
+
}), V = f(() => e.optionsDark === null ? s.isDark.value : e.optionsDark), I = f(() => Wt(p.value)), F = f(() => {
|
|
2534
2534
|
let n = "q-field__input q-placeholder col";
|
|
2535
2535
|
return e.hideSelected === !0 || p.value.length === 0 ? [n, e.inputClass] : (n += " q-field__input--padding", e.inputClass === void 0 ? n : [n, e.inputClass]);
|
|
2536
2536
|
}), z = f(
|
|
2537
2537
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
2538
2538
|
), N = f(() => A.value === 0), b = f(
|
|
2539
|
-
() => p.value.map((n) =>
|
|
2539
|
+
() => p.value.map((n) => ie.value(n)).join(", ")
|
|
2540
2540
|
), 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(() => {
|
|
2541
2541
|
const n = {
|
|
2542
2542
|
tabindex: e.tabindex,
|
|
@@ -2544,7 +2544,7 @@ const bu = be({
|
|
|
2544
2544
|
"aria-label": e.label,
|
|
2545
2545
|
"aria-readonly": e.readonly === !0 ? "true" : "false",
|
|
2546
2546
|
"aria-autocomplete": e.useInput === !0 ? "list" : "none",
|
|
2547
|
-
"aria-expanded":
|
|
2547
|
+
"aria-expanded": i.value === !0 ? "true" : "false",
|
|
2548
2548
|
"aria-controls": `${s.targetUid.value}_lb`
|
|
2549
2549
|
};
|
|
2550
2550
|
return d.value >= 0 && (n["aria-activedescendant"] = `${s.targetUid.value}_${d.value}`), n;
|
|
@@ -2557,15 +2557,15 @@ const bu = be({
|
|
|
2557
2557
|
opt: n,
|
|
2558
2558
|
html: ve.value(n),
|
|
2559
2559
|
selected: !0,
|
|
2560
|
-
removeAtIndex:
|
|
2560
|
+
removeAtIndex: fo,
|
|
2561
2561
|
toggleOption: Ve,
|
|
2562
2562
|
tabindex: me.value
|
|
2563
|
-
}))),
|
|
2563
|
+
}))), it = f(() => {
|
|
2564
2564
|
if (A.value === 0)
|
|
2565
2565
|
return [];
|
|
2566
2566
|
const { from: n, to: w } = ne.value;
|
|
2567
2567
|
return e.options.slice(n, w).map((x, $) => {
|
|
2568
|
-
const j = Fe.value(x) === !0, W =
|
|
2568
|
+
const j = Fe.value(x) === !0, W = _t(x) === !0, J = n + $, Y = {
|
|
2569
2569
|
clickable: !0,
|
|
2570
2570
|
active: W,
|
|
2571
2571
|
activeClass: Ke.value,
|
|
@@ -2583,12 +2583,12 @@ const bu = be({
|
|
|
2583
2583
|
}
|
|
2584
2584
|
};
|
|
2585
2585
|
return j !== !0 && (d.value === J && (Y.focused = !0), a.platform.is.desktop === !0 && (Y.onMousemove = () => {
|
|
2586
|
-
|
|
2586
|
+
i.value === !0 && Me(J);
|
|
2587
2587
|
})), {
|
|
2588
2588
|
index: J,
|
|
2589
2589
|
opt: x,
|
|
2590
2590
|
html: ve.value(x),
|
|
2591
|
-
label:
|
|
2591
|
+
label: ie.value(x),
|
|
2592
2592
|
selected: Y.active,
|
|
2593
2593
|
focused: Y.focused,
|
|
2594
2594
|
toggleOption: Ve,
|
|
@@ -2596,20 +2596,20 @@ const bu = be({
|
|
|
2596
2596
|
itemProps: Y
|
|
2597
2597
|
};
|
|
2598
2598
|
});
|
|
2599
|
-
}), Ne = f(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown),
|
|
2599
|
+
}), Ne = f(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown), qt = f(
|
|
2600
2600
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
2601
|
-
), Ke = f(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), he = f(() =>
|
|
2601
|
+
), Ke = f(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), he = f(() => $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(() => {
|
|
2602
2602
|
const n = {
|
|
2603
|
-
onInput:
|
|
2603
|
+
onInput: ll,
|
|
2604
2604
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
2605
2605
|
// switching focus before confirming composition choice
|
|
2606
2606
|
// this also fixes the issue where some browsers e.g. iOS Chrome
|
|
2607
2607
|
// fires "change" instead of "input" on autocomplete.
|
|
2608
2608
|
onChange: oe,
|
|
2609
|
-
onKeydown:
|
|
2610
|
-
onKeyup:
|
|
2611
|
-
onKeypress:
|
|
2612
|
-
onFocus:
|
|
2609
|
+
onKeydown: Jt,
|
|
2610
|
+
onKeyup: Gt,
|
|
2611
|
+
onKeypress: Zt,
|
|
2612
|
+
onFocus: Xt,
|
|
2613
2613
|
onClick(w) {
|
|
2614
2614
|
v === !0 && De(w);
|
|
2615
2615
|
}
|
|
@@ -2617,12 +2617,12 @@ const bu = be({
|
|
|
2617
2617
|
return n.onCompositionstart = n.onCompositionupdate = n.onCompositionend = oe, n;
|
|
2618
2618
|
});
|
|
2619
2619
|
K(p, (n) => {
|
|
2620
|
-
r = n, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && s.innerLoading.value !== !0 && (
|
|
2621
|
-
}, { immediate: !0 }), K(() => e.fillInput, He), K(
|
|
2622
|
-
function
|
|
2620
|
+
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(""));
|
|
2621
|
+
}, { immediate: !0 }), K(() => e.fillInput, He), K(i, Et), K(A, Vo);
|
|
2622
|
+
function Qt(n) {
|
|
2623
2623
|
return e.emitValue === !0 ? he.value(n) : n;
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function Vt(n) {
|
|
2626
2626
|
if (n !== -1 && n < p.value.length)
|
|
2627
2627
|
if (e.multiple === !0) {
|
|
2628
2628
|
const w = e.modelValue.slice();
|
|
@@ -2630,14 +2630,14 @@ const bu = be({
|
|
|
2630
2630
|
} else
|
|
2631
2631
|
l("update:modelValue", null);
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2634
|
-
|
|
2633
|
+
function fo(n) {
|
|
2634
|
+
Vt(n), s.focus();
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
const x =
|
|
2636
|
+
function Ut(n, w) {
|
|
2637
|
+
const x = Qt(n);
|
|
2638
2638
|
if (e.multiple !== !0) {
|
|
2639
2639
|
e.fillInput === !0 && Qe(
|
|
2640
|
-
|
|
2640
|
+
ie.value(n),
|
|
2641
2641
|
!0,
|
|
2642
2642
|
!0
|
|
2643
2643
|
), l("update:modelValue", x);
|
|
@@ -2647,7 +2647,7 @@ const bu = be({
|
|
|
2647
2647
|
l("add", { index: 0, value: x }), l("update:modelValue", e.multiple === !0 ? [x] : x);
|
|
2648
2648
|
return;
|
|
2649
2649
|
}
|
|
2650
|
-
if (w === !0 &&
|
|
2650
|
+
if (w === !0 && _t(n) === !0 || e.maxValues !== void 0 && e.modelValue.length >= e.maxValues)
|
|
2651
2651
|
return;
|
|
2652
2652
|
const $ = e.modelValue.slice();
|
|
2653
2653
|
l("add", { index: $.length, value: x }), $.push(x), l("update:modelValue", $);
|
|
@@ -2658,18 +2658,18 @@ const bu = be({
|
|
|
2658
2658
|
const x = he.value(n);
|
|
2659
2659
|
if (e.multiple !== !0) {
|
|
2660
2660
|
w !== !0 && (Qe(
|
|
2661
|
-
e.fillInput === !0 ?
|
|
2661
|
+
e.fillInput === !0 ? ie.value(n) : "",
|
|
2662
2662
|
!0,
|
|
2663
2663
|
!0
|
|
2664
2664
|
), _e()), B.value !== null && B.value.focus(), (p.value.length === 0 || Ce(he.value(p.value[0]), x) !== !0) && l("update:modelValue", e.emitValue === !0 ? x : n);
|
|
2665
2665
|
return;
|
|
2666
2666
|
}
|
|
2667
|
-
if ((v !== !0 || g.value === !0) && s.focus(),
|
|
2667
|
+
if ((v !== !0 || g.value === !0) && s.focus(), Xt(), p.value.length === 0) {
|
|
2668
2668
|
const W = e.emitValue === !0 ? x : n;
|
|
2669
2669
|
l("add", { index: 0, value: W }), l("update:modelValue", e.multiple === !0 ? [W] : W);
|
|
2670
2670
|
return;
|
|
2671
2671
|
}
|
|
2672
|
-
const $ = e.modelValue.slice(), j =
|
|
2672
|
+
const $ = e.modelValue.slice(), j = ut.value.findIndex((W) => Ce(W, x));
|
|
2673
2673
|
if (j !== -1)
|
|
2674
2674
|
l("remove", { index: j, value: $.splice(j, 1)[0] });
|
|
2675
2675
|
else {
|
|
@@ -2686,39 +2686,39 @@ const bu = be({
|
|
|
2686
2686
|
d.value !== w && (d.value = w);
|
|
2687
2687
|
}
|
|
2688
2688
|
function at(n = 1, w) {
|
|
2689
|
-
if (
|
|
2689
|
+
if (i.value === !0) {
|
|
2690
2690
|
let x = d.value;
|
|
2691
2691
|
do
|
|
2692
|
-
x =
|
|
2692
|
+
x = zl(
|
|
2693
2693
|
x + n,
|
|
2694
2694
|
-1,
|
|
2695
2695
|
A.value - 1
|
|
2696
2696
|
);
|
|
2697
2697
|
while (x !== -1 && x !== d.value && Fe.value(e.options[x]) === !0);
|
|
2698
2698
|
d.value !== x && (Me(x), M(x), w !== !0 && e.useInput === !0 && e.fillInput === !0 && rt(
|
|
2699
|
-
x >= 0 ?
|
|
2699
|
+
x >= 0 ? ie.value(e.options[x]) : P,
|
|
2700
2700
|
!0
|
|
2701
2701
|
));
|
|
2702
2702
|
}
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function vo(n, w) {
|
|
2705
2705
|
const x = ($) => Ce(he.value($), n);
|
|
2706
2706
|
return e.options.find(x) || w.find(x) || n;
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function _t(n) {
|
|
2709
2709
|
const w = he.value(n);
|
|
2710
|
-
return
|
|
2710
|
+
return ut.value.find((x) => Ce(x, w)) !== void 0;
|
|
2711
2711
|
}
|
|
2712
|
-
function
|
|
2712
|
+
function Xt(n) {
|
|
2713
2713
|
e.useInput === !0 && B.value !== null && (n === void 0 || B.value === n.target && n.target.value === b.value) && B.value.select();
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2716
|
-
|
|
2715
|
+
function Yt(n) {
|
|
2716
|
+
kt(n, 27) === !0 && i.value === !0 && (De(n), _e(), He()), l("keyup", n);
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2718
|
+
function Gt(n) {
|
|
2719
2719
|
const { value: w } = n.target;
|
|
2720
2720
|
if (n.keyCode !== void 0) {
|
|
2721
|
-
|
|
2721
|
+
Yt(n);
|
|
2722
2722
|
return;
|
|
2723
2723
|
}
|
|
2724
2724
|
if (n.target.value = "", y !== null && (clearTimeout(y), y = null), C !== null && (clearTimeout(C), C = null), He(), typeof w == "string" && w.length !== 0) {
|
|
@@ -2726,16 +2726,16 @@ const bu = be({
|
|
|
2726
2726
|
const J = e.options.find((Y) => String(W.value(Y)).toLocaleLowerCase() === x);
|
|
2727
2727
|
return J === void 0 ? !1 : (p.value.indexOf(J) === -1 ? Ve(J) : _e(), !0);
|
|
2728
2728
|
}, j = (W) => {
|
|
2729
|
-
$(he) !== !0 && W !== !0 && $(
|
|
2729
|
+
$(he) !== !0 && W !== !0 && $(ie) !== !0 && Le(w, !0, () => j(!0));
|
|
2730
2730
|
};
|
|
2731
2731
|
j();
|
|
2732
2732
|
} else
|
|
2733
2733
|
s.clearValue(n);
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function Zt(n) {
|
|
2736
2736
|
l("keypress", n);
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function Jt(n) {
|
|
2739
2739
|
if (l("keydown", n), Xo(n) === !0)
|
|
2740
2740
|
return;
|
|
2741
2741
|
const w = m.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);
|
|
@@ -2748,12 +2748,12 @@ const bu = be({
|
|
|
2748
2748
|
return;
|
|
2749
2749
|
}
|
|
2750
2750
|
if (n.target === void 0 || n.target.id !== s.targetUid.value || s.editable.value !== !0) return;
|
|
2751
|
-
if (n.keyCode === 40 && s.innerLoading.value !== !0 &&
|
|
2751
|
+
if (n.keyCode === 40 && s.innerLoading.value !== !0 && i.value === !1) {
|
|
2752
2752
|
ae(n), Ie();
|
|
2753
2753
|
return;
|
|
2754
2754
|
}
|
|
2755
2755
|
if (n.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && m.value.length === 0) {
|
|
2756
|
-
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ?
|
|
2756
|
+
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? Vt(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
2757
2757
|
return;
|
|
2758
2758
|
}
|
|
2759
2759
|
(n.keyCode === 35 || n.keyCode === 36) && (typeof m.value != "string" || m.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(
|
|
@@ -2765,17 +2765,17 @@ const bu = be({
|
|
|
2765
2765
|
), at(n.keyCode === 33 ? 1 : -1, e.multiple)), (n.keyCode === 38 || n.keyCode === 40) && (ae(n), at(n.keyCode === 38 ? -1 : 1, e.multiple));
|
|
2766
2766
|
const $ = A.value;
|
|
2767
2767
|
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)) {
|
|
2768
|
-
|
|
2768
|
+
i.value !== !0 && Ie(n);
|
|
2769
2769
|
const j = n.key.toLocaleLowerCase(), W = q.length === 1 && q[0] === j;
|
|
2770
2770
|
R = Date.now() + 1500, W === !1 && (ae(n), q += j);
|
|
2771
|
-
const J = new RegExp("^" + q.split("").map((
|
|
2771
|
+
const J = new RegExp("^" + q.split("").map((Bt) => hi.indexOf(Bt) !== -1 ? "\\" + Bt : Bt).join(".*"), "i");
|
|
2772
2772
|
let Y = d.value;
|
|
2773
|
-
if (W === !0 || Y < 0 || J.test(
|
|
2773
|
+
if (W === !0 || Y < 0 || J.test(ie.value(e.options[Y])) !== !0)
|
|
2774
2774
|
do
|
|
2775
|
-
Y =
|
|
2776
|
-
while (Y !== d.value && (Fe.value(e.options[Y]) === !0 || J.test(
|
|
2777
|
-
d.value !== Y &&
|
|
2778
|
-
Me(Y), M(Y), Y >= 0 && e.useInput === !0 && e.fillInput === !0 && rt(
|
|
2775
|
+
Y = zl(Y + 1, -1, $ - 1);
|
|
2776
|
+
while (Y !== d.value && (Fe.value(e.options[Y]) === !0 || J.test(ie.value(e.options[Y])) !== !0));
|
|
2777
|
+
d.value !== Y && ue(() => {
|
|
2778
|
+
Me(Y), M(Y), Y >= 0 && e.useInput === !0 && e.fillInput === !0 && rt(ie.value(e.options[Y]), !0);
|
|
2779
2779
|
});
|
|
2780
2780
|
return;
|
|
2781
2781
|
}
|
|
@@ -2787,28 +2787,28 @@ const bu = be({
|
|
|
2787
2787
|
if (w === !0) {
|
|
2788
2788
|
const j = (W, J) => {
|
|
2789
2789
|
if (J) {
|
|
2790
|
-
if (
|
|
2790
|
+
if (Fl(J) !== !0)
|
|
2791
2791
|
return;
|
|
2792
2792
|
} else
|
|
2793
2793
|
J = e.newValueMode;
|
|
2794
2794
|
if (Qe("", e.multiple !== !0, !0), W == null)
|
|
2795
2795
|
return;
|
|
2796
|
-
(J === "toggle" ? Ve :
|
|
2796
|
+
(J === "toggle" ? Ve : Ut)(W, J === "add-unique"), e.multiple !== !0 && (B.value !== null && B.value.focus(), _e());
|
|
2797
2797
|
};
|
|
2798
2798
|
if (e.onNewValue !== void 0 ? l("newValue", m.value, j) : j(m.value), e.multiple !== !0)
|
|
2799
2799
|
return;
|
|
2800
2800
|
}
|
|
2801
|
-
|
|
2801
|
+
i.value === !0 ? Oe() : s.innerLoading.value !== !0 && Ie();
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2804
|
+
function el() {
|
|
2805
2805
|
return v === !0 ? Q.value : L.value !== null && L.value.contentEl !== null ? L.value.contentEl : void 0;
|
|
2806
2806
|
}
|
|
2807
|
-
function
|
|
2808
|
-
return
|
|
2807
|
+
function mo() {
|
|
2808
|
+
return el();
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2811
|
-
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(
|
|
2810
|
+
function ho() {
|
|
2811
|
+
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, {
|
|
2812
2812
|
key: "option-" + w,
|
|
2813
2813
|
removable: s.editable.value === !0 && Fe.value(n.opt) !== !0,
|
|
2814
2814
|
dense: !0,
|
|
@@ -2819,32 +2819,32 @@ const bu = be({
|
|
|
2819
2819
|
}
|
|
2820
2820
|
}, () => h("span", {
|
|
2821
2821
|
class: "ellipsis",
|
|
2822
|
-
[n.html === !0 ? "innerHTML" : "textContent"]:
|
|
2822
|
+
[n.html === !0 ? "innerHTML" : "textContent"]: ie.value(n.opt)
|
|
2823
2823
|
}))) : [
|
|
2824
2824
|
h("span", {
|
|
2825
2825
|
[ze.value === !0 ? "innerHTML" : "textContent"]: Z.value
|
|
2826
2826
|
})
|
|
2827
2827
|
];
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function tl() {
|
|
2830
2830
|
if (N.value === !0)
|
|
2831
2831
|
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: m.value }) : void 0;
|
|
2832
|
-
const n = t.option !== void 0 ? t.option : (x) => h(
|
|
2832
|
+
const n = t.option !== void 0 ? t.option : (x) => h(Kl, {
|
|
2833
2833
|
key: x.index,
|
|
2834
2834
|
...x.itemProps
|
|
2835
2835
|
}, () => h(
|
|
2836
|
-
|
|
2836
|
+
pt,
|
|
2837
2837
|
() => h(
|
|
2838
|
-
|
|
2838
|
+
Nl,
|
|
2839
2839
|
() => h("span", {
|
|
2840
2840
|
[x.html === !0 ? "innerHTML" : "textContent"]: x.label
|
|
2841
2841
|
})
|
|
2842
2842
|
)
|
|
2843
2843
|
));
|
|
2844
|
-
let w = re("div",
|
|
2845
|
-
return t["before-options"] !== void 0 && (w = t["before-options"]().concat(w)),
|
|
2844
|
+
let w = re("div", it.value.map(n));
|
|
2845
|
+
return t["before-options"] !== void 0 && (w = t["before-options"]().concat(w)), Il(t["after-options"], w);
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function go(n, w) {
|
|
2848
2848
|
const x = w === !0 ? { ...nt.value, ...s.splitAttrs.attributes.value } : void 0, $ = {
|
|
2849
2849
|
ref: w === !0 ? B : void 0,
|
|
2850
2850
|
key: "i_t",
|
|
@@ -2860,11 +2860,11 @@ const bu = be({
|
|
|
2860
2860
|
"data-autofocus": n === !0 || e.autofocus === !0 || void 0,
|
|
2861
2861
|
disabled: e.disable === !0,
|
|
2862
2862
|
readonly: e.readonly === !0,
|
|
2863
|
-
...
|
|
2863
|
+
...co.value
|
|
2864
2864
|
};
|
|
2865
2865
|
return n !== !0 && v === !0 && (Array.isArray($.class) === !0 ? $.class = [...$.class, "no-pointer-events"] : $.class += " no-pointer-events"), h("input", $);
|
|
2866
2866
|
}
|
|
2867
|
-
function
|
|
2867
|
+
function ll(n) {
|
|
2868
2868
|
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 = m.value, s.focused.value !== !0 && (v !== !0 || g.value === !0) && s.focus(), e.onFilter !== void 0 && (y = setTimeout(() => {
|
|
2869
2869
|
y = null, Le(m.value);
|
|
2870
2870
|
}, e.inputDebounce)));
|
|
@@ -2880,33 +2880,33 @@ const bu = be({
|
|
|
2880
2880
|
function Le(n, w, x) {
|
|
2881
2881
|
if (e.onFilter === void 0 || w !== !0 && s.focused.value !== !0)
|
|
2882
2882
|
return;
|
|
2883
|
-
s.innerLoading.value === !0 ? l("filterAbort") : (s.innerLoading.value = !0, c.value = !0), n !== "" && e.multiple !== !0 && p.value.length !== 0 && _ !== !0 && n ===
|
|
2883
|
+
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 = "");
|
|
2884
2884
|
const $ = setTimeout(() => {
|
|
2885
|
-
|
|
2885
|
+
i.value === !0 && (i.value = !1);
|
|
2886
2886
|
}, 10);
|
|
2887
2887
|
S !== null && clearTimeout(S), S = $, l(
|
|
2888
2888
|
"filter",
|
|
2889
2889
|
n,
|
|
2890
2890
|
(j, W) => {
|
|
2891
|
-
(w === !0 || s.focused.value === !0) && S === $ && (clearTimeout(S), typeof j == "function" && j(), c.value = !1,
|
|
2892
|
-
s.innerLoading.value = !1, s.editable.value === !0 && (w === !0 ?
|
|
2891
|
+
(w === !0 || s.focused.value === !0) && S === $ && (clearTimeout(S), typeof j == "function" && j(), c.value = !1, ue(() => {
|
|
2892
|
+
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(() => {
|
|
2893
2893
|
W(o);
|
|
2894
|
-
}), typeof x == "function" &&
|
|
2894
|
+
}), typeof x == "function" && ue(() => {
|
|
2895
2895
|
x(o);
|
|
2896
2896
|
});
|
|
2897
2897
|
}));
|
|
2898
2898
|
},
|
|
2899
2899
|
() => {
|
|
2900
|
-
s.focused.value === !0 && S === $ && (clearTimeout(S), s.innerLoading.value = !1, c.value = !1),
|
|
2900
|
+
s.focused.value === !0 && S === $ && (clearTimeout(S), s.innerLoading.value = !1, c.value = !1), i.value === !0 && (i.value = !1);
|
|
2901
2901
|
}
|
|
2902
2902
|
);
|
|
2903
2903
|
}
|
|
2904
|
-
function
|
|
2905
|
-
return h(
|
|
2904
|
+
function po() {
|
|
2905
|
+
return h(Zn, {
|
|
2906
2906
|
ref: L,
|
|
2907
2907
|
class: z.value,
|
|
2908
2908
|
style: e.popupContentStyle,
|
|
2909
|
-
modelValue:
|
|
2909
|
+
modelValue: i.value,
|
|
2910
2910
|
fit: e.menuShrink !== !0,
|
|
2911
2911
|
cover: e.optionsCover === !0 && N.value !== !0 && e.useInput !== !0,
|
|
2912
2912
|
anchor: e.menuAnchor,
|
|
@@ -2917,35 +2917,35 @@ const bu = be({
|
|
|
2917
2917
|
noRefocus: !0,
|
|
2918
2918
|
noFocus: !0,
|
|
2919
2919
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
2920
|
-
square:
|
|
2920
|
+
square: qt.value,
|
|
2921
2921
|
transitionShow: e.transitionShow,
|
|
2922
2922
|
transitionHide: e.transitionHide,
|
|
2923
2923
|
transitionDuration: e.transitionDuration,
|
|
2924
2924
|
separateClosePopup: !0,
|
|
2925
2925
|
...ke.value,
|
|
2926
2926
|
onScrollPassive: k,
|
|
2927
|
-
onBeforeShow:
|
|
2928
|
-
onBeforeHide:
|
|
2929
|
-
onShow:
|
|
2930
|
-
},
|
|
2927
|
+
onBeforeShow: nl,
|
|
2928
|
+
onBeforeHide: bo,
|
|
2929
|
+
onShow: yo
|
|
2930
|
+
}, tl);
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2932
|
+
function bo(n) {
|
|
2933
2933
|
il(n), Oe();
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function yo() {
|
|
2936
2936
|
se();
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function So(n) {
|
|
2939
2939
|
De(n), B.value !== null && B.value.focus(), g.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2942
|
-
De(n),
|
|
2941
|
+
function wo(n) {
|
|
2942
|
+
De(n), ue(() => {
|
|
2943
2943
|
g.value = !1;
|
|
2944
2944
|
});
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function xo() {
|
|
2947
2947
|
const n = [
|
|
2948
|
-
h(
|
|
2948
|
+
h(xn, {
|
|
2949
2949
|
class: `col-auto ${s.fieldClass.value}`,
|
|
2950
2950
|
...O.value,
|
|
2951
2951
|
for: s.targetUid.value,
|
|
@@ -2956,8 +2956,8 @@ const bu = be({
|
|
|
2956
2956
|
filled: !0,
|
|
2957
2957
|
stackLabel: m.value.length !== 0,
|
|
2958
2958
|
...s.splitAttrs.listeners.value,
|
|
2959
|
-
onFocus:
|
|
2960
|
-
onBlur:
|
|
2959
|
+
onFocus: So,
|
|
2960
|
+
onBlur: wo
|
|
2961
2961
|
}, {
|
|
2962
2962
|
...t,
|
|
2963
2963
|
rawControl: () => s.getControl(!0),
|
|
@@ -2965,7 +2965,7 @@ const bu = be({
|
|
|
2965
2965
|
after: void 0
|
|
2966
2966
|
})
|
|
2967
2967
|
];
|
|
2968
|
-
return
|
|
2968
|
+
return i.value === !0 && n.push(
|
|
2969
2969
|
h("div", {
|
|
2970
2970
|
ref: Q,
|
|
2971
2971
|
class: z.value + " scroll",
|
|
@@ -2973,54 +2973,54 @@ const bu = be({
|
|
|
2973
2973
|
...ke.value,
|
|
2974
2974
|
onClick: pe,
|
|
2975
2975
|
onScrollPassive: k
|
|
2976
|
-
},
|
|
2977
|
-
), h(
|
|
2976
|
+
}, tl())
|
|
2977
|
+
), h(ii, {
|
|
2978
2978
|
ref: H,
|
|
2979
|
-
modelValue:
|
|
2979
|
+
modelValue: u.value,
|
|
2980
2980
|
position: e.useInput === !0 ? "top" : void 0,
|
|
2981
2981
|
transitionShow: E,
|
|
2982
2982
|
transitionHide: e.transitionHide,
|
|
2983
2983
|
transitionDuration: e.transitionDuration,
|
|
2984
2984
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
2985
|
-
onBeforeShow:
|
|
2986
|
-
onBeforeHide:
|
|
2987
|
-
onHide:
|
|
2988
|
-
onShow:
|
|
2985
|
+
onBeforeShow: nl,
|
|
2986
|
+
onBeforeHide: Co,
|
|
2987
|
+
onHide: ko,
|
|
2988
|
+
onShow: qo
|
|
2989
2989
|
}, () => h("div", {
|
|
2990
2990
|
class: "q-select__dialog" + (V.value === !0 ? " q-select__dialog--dark q-dark" : "") + (g.value === !0 ? " q-select__dialog--focused" : "")
|
|
2991
2991
|
}, n));
|
|
2992
2992
|
}
|
|
2993
|
-
function
|
|
2993
|
+
function Co(n) {
|
|
2994
2994
|
il(n), H.value !== null && H.value.__updateRefocusTarget(
|
|
2995
2995
|
s.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
2996
2996
|
), s.focused.value = !1;
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function ko(n) {
|
|
2999
2999
|
_e(), s.focused.value === !1 && l("blur", n), He();
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function qo() {
|
|
3002
3002
|
const n = document.activeElement;
|
|
3003
3003
|
(n === null || n.id !== s.targetUid.value) && B.value !== null && B.value !== n && B.value.focus(), se();
|
|
3004
3004
|
}
|
|
3005
3005
|
function Oe() {
|
|
3006
|
-
|
|
3006
|
+
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)));
|
|
3007
3007
|
}
|
|
3008
3008
|
function Ie(n) {
|
|
3009
|
-
s.editable.value === !0 && (v === !0 ? (s.onControlFocusin(n),
|
|
3009
|
+
s.editable.value === !0 && (v === !0 ? (s.onControlFocusin(n), u.value = !0, ue(() => {
|
|
3010
3010
|
s.focus();
|
|
3011
|
-
})) : s.focus(), e.onFilter !== void 0 ? Le(m.value) : (N.value !== !0 || t["no-option"] !== void 0) && (
|
|
3011
|
+
})) : s.focus(), e.onFilter !== void 0 ? Le(m.value) : (N.value !== !0 || t["no-option"] !== void 0) && (i.value = !0));
|
|
3012
3012
|
}
|
|
3013
3013
|
function _e() {
|
|
3014
|
-
|
|
3014
|
+
u.value = !1, Oe();
|
|
3015
3015
|
}
|
|
3016
3016
|
function He() {
|
|
3017
3017
|
e.useInput === !0 && Qe(
|
|
3018
|
-
e.multiple !== !0 && e.fillInput === !0 && p.value.length !== 0 &&
|
|
3018
|
+
e.multiple !== !0 && e.fillInput === !0 && p.value.length !== 0 && ie.value(p.value[0]) || "",
|
|
3019
3019
|
!0,
|
|
3020
3020
|
!0
|
|
3021
3021
|
);
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3023
|
+
function Et(n) {
|
|
3024
3024
|
let w = -1;
|
|
3025
3025
|
if (n === !0) {
|
|
3026
3026
|
if (p.value.length !== 0) {
|
|
@@ -3031,42 +3031,42 @@ const bu = be({
|
|
|
3031
3031
|
}
|
|
3032
3032
|
Me(w);
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3035
|
-
|
|
3036
|
-
|
|
3034
|
+
function Vo(n, w) {
|
|
3035
|
+
i.value === !0 && s.innerLoading.value === !1 && (X(-1, !0), ue(() => {
|
|
3036
|
+
i.value === !0 && s.innerLoading.value === !1 && (n > w ? X() : Et(!0));
|
|
3037
3037
|
}));
|
|
3038
3038
|
}
|
|
3039
|
-
function
|
|
3040
|
-
|
|
3039
|
+
function ol() {
|
|
3040
|
+
u.value === !1 && L.value !== null && L.value.updatePosition();
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function nl(n) {
|
|
3043
3043
|
n !== void 0 && De(n), l("popupShow", n), s.hasPopupOpen = !0, s.onControlFocusin(n);
|
|
3044
3044
|
}
|
|
3045
3045
|
function il(n) {
|
|
3046
3046
|
n !== void 0 && De(n), l("popupHide", n), s.hasPopupOpen = !1, s.onControlFocusout(n);
|
|
3047
3047
|
}
|
|
3048
|
-
function
|
|
3048
|
+
function ul() {
|
|
3049
3049
|
v = 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 && v === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
3050
3050
|
}
|
|
3051
|
-
return
|
|
3051
|
+
return Ml(ul), To(ol), ul(), ce(() => {
|
|
3052
3052
|
y !== null && clearTimeout(y), C !== null && clearTimeout(C);
|
|
3053
3053
|
}), Object.assign(o, {
|
|
3054
3054
|
showPopup: Ie,
|
|
3055
3055
|
hidePopup: _e,
|
|
3056
|
-
removeAtIndex:
|
|
3057
|
-
add:
|
|
3056
|
+
removeAtIndex: Vt,
|
|
3057
|
+
add: Ut,
|
|
3058
3058
|
toggleOption: Ve,
|
|
3059
3059
|
getOptionIndex: () => d.value,
|
|
3060
3060
|
setOptionIndex: Me,
|
|
3061
3061
|
moveOptionSelection: at,
|
|
3062
3062
|
filter: Le,
|
|
3063
|
-
updateMenuPosition:
|
|
3063
|
+
updateMenuPosition: ol,
|
|
3064
3064
|
updateInputValue: Qe,
|
|
3065
|
-
isOptionSelected:
|
|
3066
|
-
getEmittingOptionValue:
|
|
3065
|
+
isOptionSelected: _t,
|
|
3066
|
+
getEmittingOptionValue: Qt,
|
|
3067
3067
|
isOptionDisabled: (...n) => Fe.value.apply(null, n) === !0,
|
|
3068
3068
|
getOptionValue: (...n) => he.value.apply(null, n),
|
|
3069
|
-
getOptionLabel: (...n) =>
|
|
3069
|
+
getOptionLabel: (...n) => ie.value.apply(null, n)
|
|
3070
3070
|
}), Object.assign(s, {
|
|
3071
3071
|
innerValue: p,
|
|
3072
3072
|
fieldClass: f(
|
|
@@ -3077,11 +3077,11 @@ const bu = be({
|
|
|
3077
3077
|
hasValue: I,
|
|
3078
3078
|
showPopup: Ie,
|
|
3079
3079
|
floatingLabel: f(
|
|
3080
|
-
() => e.hideSelected !== !0 && I.value === !0 || typeof m.value == "number" || m.value.length !== 0 ||
|
|
3080
|
+
() => e.hideSelected !== !0 && I.value === !0 || typeof m.value == "number" || m.value.length !== 0 || Wt(e.displayValue)
|
|
3081
3081
|
),
|
|
3082
3082
|
getControlChild: () => {
|
|
3083
|
-
if (s.editable.value !== !1 && (
|
|
3084
|
-
return v === !0 ?
|
|
3083
|
+
if (s.editable.value !== !1 && (u.value === !0 || N.value !== !0 || t["no-option"] !== void 0))
|
|
3084
|
+
return v === !0 ? xo() : po();
|
|
3085
3085
|
s.hasPopupOpen === !0 && (s.hasPopupOpen = !1);
|
|
3086
3086
|
},
|
|
3087
3087
|
controlEvents: {
|
|
@@ -3094,7 +3094,7 @@ const bu = be({
|
|
|
3094
3094
|
});
|
|
3095
3095
|
},
|
|
3096
3096
|
onClick(n) {
|
|
3097
|
-
if (pe(n), v !== !0 &&
|
|
3097
|
+
if (pe(n), v !== !0 && i.value === !0) {
|
|
3098
3098
|
Oe(), B.value !== null && B.value.focus();
|
|
3099
3099
|
return;
|
|
3100
3100
|
}
|
|
@@ -3102,9 +3102,9 @@ const bu = be({
|
|
|
3102
3102
|
}
|
|
3103
3103
|
},
|
|
3104
3104
|
getControl: (n) => {
|
|
3105
|
-
const w =
|
|
3105
|
+
const w = ho(), x = n === !0 || u.value !== !0 || v !== !0;
|
|
3106
3106
|
if (e.useInput === !0)
|
|
3107
|
-
w.push(
|
|
3107
|
+
w.push(go(n, x));
|
|
3108
3108
|
else if (s.editable.value === !0) {
|
|
3109
3109
|
const j = x === !0 ? nt.value : void 0;
|
|
3110
3110
|
w.push(
|
|
@@ -3117,21 +3117,21 @@ const bu = be({
|
|
|
3117
3117
|
readonly: !0,
|
|
3118
3118
|
"data-autofocus": n === !0 || e.autofocus === !0 || void 0,
|
|
3119
3119
|
...j,
|
|
3120
|
-
onKeydown:
|
|
3121
|
-
onKeyup:
|
|
3122
|
-
onKeypress:
|
|
3120
|
+
onKeydown: Jt,
|
|
3121
|
+
onKeyup: Yt,
|
|
3122
|
+
onKeypress: Zt
|
|
3123
3123
|
})
|
|
3124
3124
|
), x === !0 && typeof e.autocomplete == "string" && e.autocomplete.length !== 0 && w.push(
|
|
3125
3125
|
h("input", {
|
|
3126
3126
|
class: "q-select__autocomplete-input",
|
|
3127
3127
|
autocomplete: e.autocomplete,
|
|
3128
3128
|
tabindex: -1,
|
|
3129
|
-
onKeyup:
|
|
3129
|
+
onKeyup: Gt
|
|
3130
3130
|
})
|
|
3131
3131
|
);
|
|
3132
3132
|
}
|
|
3133
|
-
if (G.value !== void 0 && e.disable !== !0 &&
|
|
3134
|
-
const j =
|
|
3133
|
+
if (G.value !== void 0 && e.disable !== !0 && ut.value.length !== 0) {
|
|
3134
|
+
const j = ut.value.map((W) => h("option", { value: W, selected: !0 }));
|
|
3135
3135
|
w.push(
|
|
3136
3136
|
h("select", {
|
|
3137
3137
|
class: "hidden",
|
|
@@ -3149,13 +3149,13 @@ const bu = be({
|
|
|
3149
3149
|
},
|
|
3150
3150
|
getInnerAppend: () => e.loading !== !0 && c.value !== !0 && e.hideDropdownIcon !== !0 ? [
|
|
3151
3151
|
h(Ae, {
|
|
3152
|
-
class: "q-select__dropdown-icon" + (
|
|
3152
|
+
class: "q-select__dropdown-icon" + (i.value === !0 ? " rotate-180" : ""),
|
|
3153
3153
|
name: Ne.value
|
|
3154
3154
|
})
|
|
3155
3155
|
] : null
|
|
3156
|
-
}),
|
|
3156
|
+
}), Gl(s);
|
|
3157
3157
|
}
|
|
3158
|
-
}),
|
|
3158
|
+
}), bi = { class: "app-select__amount" }, yi = /* @__PURE__ */ Ro({
|
|
3159
3159
|
__name: "AppSelect",
|
|
3160
3160
|
props: {
|
|
3161
3161
|
modelValue: {},
|
|
@@ -3176,7 +3176,7 @@ const bu = be({
|
|
|
3176
3176
|
},
|
|
3177
3177
|
emits: ["update:modelValue"],
|
|
3178
3178
|
setup(e, { emit: t }) {
|
|
3179
|
-
const l = e, o = t, a = T(!1),
|
|
3179
|
+
const l = e, o = t, a = T(!1), i = T(""), u = f({
|
|
3180
3180
|
get() {
|
|
3181
3181
|
if (l.modelValue) {
|
|
3182
3182
|
if (l.multiple && Array.isArray(l.modelValue))
|
|
@@ -3201,148 +3201,143 @@ const bu = be({
|
|
|
3201
3201
|
}
|
|
3202
3202
|
}), d = f(() => {
|
|
3203
3203
|
var r;
|
|
3204
|
-
if (Array.isArray(
|
|
3205
|
-
if (l.multiple &&
|
|
3204
|
+
if (Array.isArray(u.value)) {
|
|
3205
|
+
if (l.multiple && u.value.length == 0)
|
|
3206
3206
|
return l.placeholder;
|
|
3207
|
-
} else return ((r =
|
|
3207
|
+
} else return ((r = u.value) == null ? void 0 : r.label) || l.placeholder || "";
|
|
3208
3208
|
return "";
|
|
3209
|
-
}), m = f(() => !(!l.clearable || !l.modelValue || l.modelValue && Array.isArray(l.modelValue) && !l.modelValue.length)), g = f(() =>
|
|
3210
|
-
(r) => r.label.toLowerCase().includes(
|
|
3209
|
+
}), m = f(() => !(!l.clearable || !l.modelValue || l.modelValue && Array.isArray(l.modelValue) && !l.modelValue.length)), g = f(() => i.value ? l.options.filter(
|
|
3210
|
+
(r) => r.label.toLowerCase().includes(i.value.toLowerCase())
|
|
3211
3211
|
) : l.options), c = f(() => {
|
|
3212
3212
|
if (l.rules)
|
|
3213
|
-
return l.required ? [...l.rules,
|
|
3213
|
+
return l.required ? [...l.rules, cl] : l.rules;
|
|
3214
3214
|
if (l.required)
|
|
3215
|
-
return [
|
|
3215
|
+
return [cl];
|
|
3216
3216
|
}), y = () => {
|
|
3217
|
-
|
|
3217
|
+
u.value = void 0;
|
|
3218
3218
|
}, C = (r, v) => {
|
|
3219
3219
|
v(() => {
|
|
3220
|
-
|
|
3220
|
+
i.value = r;
|
|
3221
3221
|
});
|
|
3222
3222
|
};
|
|
3223
|
-
return (r, v) => (de(),
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3223
|
+
return (r, v) => (de(), ye("div", {
|
|
3224
|
+
class: st(["app-select", [{ "app-select_opened": a.value }, `app-select_${r.size}`]])
|
|
3225
|
+
}, [
|
|
3226
|
+
r.label ? (de(), ye("label", {
|
|
3227
|
+
key: 0,
|
|
3228
|
+
class: st(["app-select__label", { "app-select__label_bold": r.required }])
|
|
3229
|
+
}, Ue(r.required ? `${r.label} *` : r.label), 3)) : Pe("", !0),
|
|
3230
|
+
Xe(zo(pi), {
|
|
3231
|
+
standout: "",
|
|
3232
|
+
"hide-bottom-space": "",
|
|
3233
|
+
"hide-dropdown-icon": "",
|
|
3234
|
+
"no-error-icon": "",
|
|
3235
|
+
behavior: "menu",
|
|
3236
|
+
"popup-content-class": `app-select-menu app-select-menu_${r.size} ${r.menuClass}`,
|
|
3237
|
+
placeholder: r.filtering && "Почніть вводити",
|
|
3238
|
+
"input-debounce": "50",
|
|
3239
|
+
modelValue: u.value,
|
|
3240
|
+
"onUpdate:modelValue": v[0] || (v[0] = (_) => u.value = _),
|
|
3241
|
+
options: g.value,
|
|
3242
|
+
multiple: r.multiple,
|
|
3243
|
+
"use-input": r.filtering && (Array.isArray(u.value) || !u.value),
|
|
3244
|
+
rules: c.value,
|
|
3245
|
+
"lazy-rules": r.lazyRules,
|
|
3246
|
+
autofocus: r.autofocus,
|
|
3247
|
+
disable: r.disabled,
|
|
3248
|
+
loading: r.loading,
|
|
3249
|
+
onFilter: C,
|
|
3250
|
+
onPopupShow: v[1] || (v[1] = (_) => a.value = !0),
|
|
3251
|
+
onPopupHide: v[2] || (v[2] = (_) => a.value = !1)
|
|
3252
|
+
}, {
|
|
3253
|
+
append: xe(() => [
|
|
3254
|
+
m.value ? (de(), ye("i", {
|
|
3229
3255
|
key: 0,
|
|
3230
|
-
class:
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
"input-debounce": "50",
|
|
3241
|
-
modelValue: i.value,
|
|
3242
|
-
"onUpdate:modelValue": v[0] || (v[0] = (_) => i.value = _),
|
|
3243
|
-
options: g.value,
|
|
3244
|
-
multiple: r.multiple,
|
|
3245
|
-
"use-input": r.filtering && (Array.isArray(i.value) || !i.value),
|
|
3246
|
-
rules: c.value,
|
|
3247
|
-
"lazy-rules": r.lazyRules,
|
|
3248
|
-
autofocus: r.autofocus,
|
|
3249
|
-
disable: r.disabled,
|
|
3250
|
-
loading: r.loading,
|
|
3251
|
-
onFilter: C,
|
|
3252
|
-
onPopupShow: v[1] || (v[1] = (_) => a.value = !0),
|
|
3253
|
-
onPopupHide: v[2] || (v[2] = (_) => a.value = !1)
|
|
3254
|
-
}, {
|
|
3255
|
-
append: ye(() => [
|
|
3256
|
-
m.value ? (de(), xe("i", {
|
|
3256
|
+
class: "icon-kl icon-kl-close app-select__clear",
|
|
3257
|
+
onClick: Mo(y, ["stop", "prevent"])
|
|
3258
|
+
})) : Pe("", !0),
|
|
3259
|
+
v[3] || (v[3] = At("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
|
|
3260
|
+
]),
|
|
3261
|
+
selected: xe(() => {
|
|
3262
|
+
var _, S;
|
|
3263
|
+
return [
|
|
3264
|
+
Array.isArray(u.value) ? (de(), ye(ct, { key: 0 }, [
|
|
3265
|
+
!r.filtering || u.value.length ? (de(), ye("span", {
|
|
3257
3266
|
key: 0,
|
|
3258
|
-
class:
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
"app-select__selected",
|
|
3271
|
-
{
|
|
3272
|
-
"app-select__placeholder": !((_ = i.value) != null && _.length) && r.placeholder
|
|
3273
|
-
}
|
|
3274
|
-
])
|
|
3275
|
-
}, [
|
|
3276
|
-
(S = i.value) != null && S.length ? (de(), xe(dt, { key: 0 }, [
|
|
3277
|
-
v[4] || (v[4] = Rt(" Вибрано ")),
|
|
3278
|
-
st("span", yu, Ue(i.value.length), 1)
|
|
3279
|
-
], 64)) : (de(), xe(dt, { key: 1 }, [
|
|
3280
|
-
Rt(Ue(l.placeholder), 1)
|
|
3281
|
-
], 64))
|
|
3282
|
-
], 2)) : Pe("", !0)
|
|
3283
|
-
], 64)) : (de(), xe(dt, { key: 1 }, [
|
|
3284
|
-
!r.filtering || i.value ? (de(), xe("span", {
|
|
3285
|
-
key: 0,
|
|
3286
|
-
class: ct([
|
|
3287
|
-
"app-select__selected",
|
|
3288
|
-
{ "app-select__placeholder": !i.value && r.placeholder }
|
|
3289
|
-
])
|
|
3290
|
-
}, Ue(d.value), 3)) : Pe("", !0)
|
|
3267
|
+
class: st([
|
|
3268
|
+
"app-select__selected",
|
|
3269
|
+
{
|
|
3270
|
+
"app-select__placeholder": !((_ = u.value) != null && _.length) && r.placeholder
|
|
3271
|
+
}
|
|
3272
|
+
])
|
|
3273
|
+
}, [
|
|
3274
|
+
(S = u.value) != null && S.length ? (de(), ye(ct, { key: 0 }, [
|
|
3275
|
+
v[4] || (v[4] = Tt(" Вибрано ")),
|
|
3276
|
+
At("span", bi, Ue(u.value.length), 1)
|
|
3277
|
+
], 64)) : (de(), ye(ct, { key: 1 }, [
|
|
3278
|
+
Tt(Ue(l.placeholder), 1)
|
|
3291
3279
|
], 64))
|
|
3292
|
-
]
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
class: [
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3280
|
+
], 2)) : Pe("", !0)
|
|
3281
|
+
], 64)) : (de(), ye(ct, { key: 1 }, [
|
|
3282
|
+
!r.filtering || u.value ? (de(), ye("span", {
|
|
3283
|
+
key: 0,
|
|
3284
|
+
class: st([
|
|
3285
|
+
"app-select__selected",
|
|
3286
|
+
{ "app-select__placeholder": !u.value && r.placeholder }
|
|
3287
|
+
])
|
|
3288
|
+
}, Ue(d.value), 3)) : Pe("", !0)
|
|
3289
|
+
], 64))
|
|
3290
|
+
];
|
|
3291
|
+
}),
|
|
3292
|
+
option: xe((_) => [
|
|
3293
|
+
Xe(Kl, Fo({
|
|
3294
|
+
class: ["app-select__option", { "app-select__option_selected": _.selected }]
|
|
3295
|
+
}, _.itemProps), {
|
|
3296
|
+
default: xe(() => [
|
|
3297
|
+
l.multiple ? (de(), al(pt, {
|
|
3298
|
+
key: 0,
|
|
3299
|
+
class: "option-multiple",
|
|
3300
|
+
avatar: ""
|
|
3301
|
+
}, {
|
|
3302
|
+
default: xe(() => [
|
|
3303
|
+
Xe(sn, {
|
|
3304
|
+
size: "30px",
|
|
3305
|
+
"model-value": _.selected,
|
|
3306
|
+
"onUpdate:modelValue": () => _.toggleOption(_.opt)
|
|
3307
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
3308
|
+
]),
|
|
3309
|
+
_: 2
|
|
3310
|
+
}, 1024)) : Pe("", !0),
|
|
3311
|
+
_.opt.done ? (de(), al(pt, {
|
|
3312
|
+
key: 1,
|
|
3313
|
+
class: "option-done",
|
|
3314
|
+
avatar: ""
|
|
3315
|
+
}, {
|
|
3316
|
+
default: xe(() => v[5] || (v[5] = [
|
|
3317
|
+
At("i", { class: "icon-kl icon-kl-check option-done__icon" }, null, -1)
|
|
3318
|
+
])),
|
|
3319
|
+
_: 1
|
|
3320
|
+
})) : Pe("", !0),
|
|
3321
|
+
Xe(pt, null, {
|
|
3322
|
+
default: xe(() => [
|
|
3323
|
+
Xe(Nl, null, {
|
|
3324
|
+
default: xe(() => [
|
|
3325
|
+
Tt(Ue(_.opt.label), 1)
|
|
3331
3326
|
]),
|
|
3332
3327
|
_: 2
|
|
3333
3328
|
}, 1024)
|
|
3334
3329
|
]),
|
|
3335
3330
|
_: 2
|
|
3336
|
-
},
|
|
3331
|
+
}, 1024)
|
|
3337
3332
|
]),
|
|
3338
|
-
_:
|
|
3339
|
-
},
|
|
3340
|
-
],
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
}
|
|
3345
|
-
}),
|
|
3333
|
+
_: 2
|
|
3334
|
+
}, 1040, ["class"])
|
|
3335
|
+
]),
|
|
3336
|
+
_: 1
|
|
3337
|
+
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
3338
|
+
], 2));
|
|
3339
|
+
}
|
|
3340
|
+
}), Ci = /* @__PURE__ */ Go(yi, [["__scopeId", "data-v-2b484766"]]);
|
|
3346
3341
|
export {
|
|
3347
|
-
|
|
3342
|
+
Ci as default
|
|
3348
3343
|
};
|