@verdnatura/vn-front-lib 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-DYhCRzkD.cjs +1 -0
- package/dist/components-DyCtjyed.js +2392 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/composables.cjs +1 -1
- package/dist/stores.cjs +1 -1
- package/dist/{useRequired-BqsSq8Mw.cjs → useRequired-BviE2qpV.cjs} +1 -1
- package/dist/useValidationsStore-BZZg24ZP.cjs +1 -0
- package/dist/vn-front-lib.cjs +1 -1
- package/dist/vn-front-lib.js +720 -723
- package/lib/components/inputs/VnInput.vue +2 -1
- package/lib/main.js +0 -3
- package/package.json +1 -2
- package/dist/components-CIN_fGVX.cjs +0 -1
- package/dist/components-DrW3NFA9.js +0 -2525
- package/dist/useValidationsStore-8JX1-oLO.cjs +0 -1
- package/lib/utils/defaults/qInput.js +0 -4
- package/lib/utils/defaults/qSelect.js +0 -4
- package/lib/utils/index.js +0 -1
- package/lib/utils/setDefault.js +0 -18
package/dist/vn-front-lib.js
CHANGED
|
@@ -1,112 +1,110 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as
|
|
2
|
-
import { n as
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as ee, Y as w, Z as T, _ as E, a as te, at as ne, b as D, c as O, ct as k, d as re, et as A, f as ie, g as ae, h as j, i as oe, it as M, j as se, k as N, l as P, lt as F, m as I, n as L, nt as ce, o as le, ot as ue, p as R, q as de, r as fe, rt as z, s as pe, st as B, t as me, tt as he, u as ge, v as _e, w as ve, x as V, y as ye, z as be } from "./components-DyCtjyed.js";
|
|
2
|
+
import { n as xe, t as Se } from "./useRequired-CTxBp3qy.js";
|
|
3
3
|
import "./composables.js";
|
|
4
|
-
import { t as
|
|
4
|
+
import { t as Ce } from "./utils-DEjhADAQ.js";
|
|
5
5
|
import { Transition as we, computed as H, getCurrentInstance as Te, h as U, nextTick as W, onActivated as Ee, onBeforeMount as G, onBeforeUnmount as De, onBeforeUpdate as Oe, onDeactivated as K, onUpdated as ke, ref as q, watch as J } from "vue";
|
|
6
6
|
//#region lib/utils/defaults/qInput.js
|
|
7
|
-
|
|
7
|
+
Ce(fe, "dense", !0);
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
10
|
-
var Ae =
|
|
9
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/field/QField.js
|
|
10
|
+
var Ae = x({
|
|
11
11
|
name: "QField",
|
|
12
12
|
inheritAttrs: !1,
|
|
13
13
|
props: {
|
|
14
|
-
...
|
|
14
|
+
...P,
|
|
15
15
|
tag: {
|
|
16
16
|
type: String,
|
|
17
17
|
default: "label"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
emits:
|
|
20
|
+
emits: O,
|
|
21
21
|
setup() {
|
|
22
|
-
return
|
|
22
|
+
return re(ge({ tagProp: !0 }));
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
26
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/throttle/throttle.js
|
|
27
27
|
function je(e, t = 250) {
|
|
28
28
|
let n = !1, r;
|
|
29
|
-
return function(
|
|
30
|
-
return n
|
|
29
|
+
return function() {
|
|
30
|
+
return n === !1 && (n = !0, setTimeout(() => {
|
|
31
31
|
n = !1;
|
|
32
|
-
}, t), r = e.apply(this,
|
|
32
|
+
}, t), r = e.apply(this, arguments)), r;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
36
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/directives/ripple/Ripple.js
|
|
37
37
|
function Me(e, t, n, r) {
|
|
38
|
-
n.modifiers.stop &&
|
|
39
|
-
let i = n.modifiers.color, a = n.modifiers.center
|
|
40
|
-
|
|
38
|
+
n.modifiers.stop === !0 && B(e);
|
|
39
|
+
let i = n.modifiers.color, a = n.modifiers.center;
|
|
40
|
+
a = a === !0 || r === !0;
|
|
41
|
+
let s = document.createElement("span"), c = document.createElement("span"), l = ne(e), { left: u, top: d, width: f, height: p } = t.getBoundingClientRect(), m = Math.sqrt(f * f + p * p), h = m / 2, g = `${(f - m) / 2}px`, _ = a ? g : `${l.left - u - h}px`, v = `${(p - m) / 2}px`, y = a ? v : `${l.top - d - h}px`;
|
|
42
|
+
c.className = "q-ripple__inner", o(c, {
|
|
41
43
|
height: `${m}px`,
|
|
42
44
|
width: `${m}px`,
|
|
43
45
|
transform: `translate3d(${_},${y},0) scale3d(.2,.2,1)`,
|
|
44
46
|
opacity: 0
|
|
45
|
-
}),
|
|
47
|
+
}), s.className = `q-ripple${i ? " text-" + i : ""}`, s.setAttribute("dir", "ltr"), s.appendChild(c), t.appendChild(s);
|
|
46
48
|
let b = () => {
|
|
47
|
-
|
|
49
|
+
s.remove(), clearTimeout(x);
|
|
48
50
|
};
|
|
49
51
|
n.abort.push(b);
|
|
50
52
|
let x = setTimeout(() => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
c.classList.add("q-ripple__inner--enter"), c.style.transform = `translate3d(${g},${v},0) scale3d(1,1,1)`, c.style.opacity = .2, x = setTimeout(() => {
|
|
54
|
+
c.classList.remove("q-ripple__inner--enter"), c.classList.add("q-ripple__inner--leave"), c.style.opacity = 0, x = setTimeout(() => {
|
|
55
|
+
s.remove(), n.abort.splice(n.abort.indexOf(b), 1);
|
|
54
56
|
}, 275);
|
|
55
57
|
}, 250);
|
|
56
58
|
}, 50);
|
|
57
59
|
}
|
|
58
60
|
function Ne(e, { modifiers: t, value: n, arg: r }) {
|
|
59
|
-
let i = {
|
|
60
|
-
...e.cfg.ripple,
|
|
61
|
-
...t,
|
|
62
|
-
...n
|
|
63
|
-
};
|
|
61
|
+
let i = Object.assign({}, e.cfg.ripple, t, n);
|
|
64
62
|
e.modifiers = {
|
|
65
63
|
early: i.early === !0,
|
|
66
64
|
stop: i.stop === !0,
|
|
67
65
|
center: i.center === !0,
|
|
68
66
|
color: i.color || r,
|
|
69
|
-
keyCodes: [i.keyCodes || 13
|
|
67
|
+
keyCodes: [].concat(i.keyCodes || 13)
|
|
70
68
|
};
|
|
71
69
|
}
|
|
72
|
-
var Pe =
|
|
70
|
+
var Pe = C({
|
|
73
71
|
name: "ripple",
|
|
74
|
-
beforeMount(
|
|
75
|
-
let
|
|
76
|
-
if (
|
|
77
|
-
let
|
|
78
|
-
cfg:
|
|
79
|
-
enabled:
|
|
72
|
+
beforeMount(e, t) {
|
|
73
|
+
let n = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
74
|
+
if (n.ripple === !1) return;
|
|
75
|
+
let r = {
|
|
76
|
+
cfg: n,
|
|
77
|
+
enabled: t.value !== !1,
|
|
80
78
|
modifiers: {},
|
|
81
79
|
abort: [],
|
|
82
|
-
start(
|
|
83
|
-
|
|
80
|
+
start(t) {
|
|
81
|
+
r.enabled === !0 && t.qSkipRipple !== !0 && t.type === (r.modifiers.early === !0 ? "pointerdown" : "click") && Me(t, e, r, t.qKeyEvent === !0);
|
|
84
82
|
},
|
|
85
|
-
keystart: je((
|
|
86
|
-
|
|
83
|
+
keystart: je((t) => {
|
|
84
|
+
r.enabled === !0 && t.qSkipRipple !== !0 && _(t, r.modifiers.keyCodes) === !0 && t.type === `key${r.modifiers.early === !0 ? "down" : "up"}` && Me(t, e, r, !0);
|
|
87
85
|
}, 300)
|
|
88
86
|
};
|
|
89
|
-
Ne(
|
|
87
|
+
Ne(r, t), e.__qripple = r, A(r, "main", [
|
|
90
88
|
[
|
|
91
|
-
|
|
89
|
+
e,
|
|
92
90
|
"pointerdown",
|
|
93
91
|
"start",
|
|
94
92
|
"passive"
|
|
95
93
|
],
|
|
96
94
|
[
|
|
97
|
-
|
|
95
|
+
e,
|
|
98
96
|
"click",
|
|
99
97
|
"start",
|
|
100
98
|
"passive"
|
|
101
99
|
],
|
|
102
100
|
[
|
|
103
|
-
|
|
101
|
+
e,
|
|
104
102
|
"keydown",
|
|
105
103
|
"keystart",
|
|
106
104
|
"passive"
|
|
107
105
|
],
|
|
108
106
|
[
|
|
109
|
-
|
|
107
|
+
e,
|
|
110
108
|
"keyup",
|
|
111
109
|
"keystart",
|
|
112
110
|
"passive"
|
|
@@ -116,32 +114,26 @@ var Pe = s({
|
|
|
116
114
|
updated(e, t) {
|
|
117
115
|
if (t.oldValue !== t.value) {
|
|
118
116
|
let n = e.__qripple;
|
|
119
|
-
n !== void 0 && (n.enabled = t.value !== !1, n.enabled && Object(t.value) === t.value && Ne(n, t));
|
|
117
|
+
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && Ne(n, t));
|
|
120
118
|
}
|
|
121
119
|
},
|
|
122
120
|
beforeUnmount(e) {
|
|
123
121
|
let t = e.__qripple;
|
|
124
122
|
t !== void 0 && (t.abort.forEach((e) => {
|
|
125
123
|
e();
|
|
126
|
-
}),
|
|
124
|
+
}), he(t, "main"), delete e._qripple);
|
|
127
125
|
}
|
|
128
|
-
})
|
|
129
|
-
//#endregion
|
|
130
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/chip/QChip.js
|
|
131
|
-
function Fe(e) {
|
|
132
|
-
e.keyCode === 32 && k(e);
|
|
133
|
-
}
|
|
134
|
-
var Ie = {
|
|
126
|
+
}), Fe = {
|
|
135
127
|
xs: 8,
|
|
136
128
|
sm: 10,
|
|
137
129
|
md: 14,
|
|
138
130
|
lg: 20,
|
|
139
131
|
xl: 24
|
|
140
|
-
},
|
|
132
|
+
}, Ie = x({
|
|
141
133
|
name: "QChip",
|
|
142
134
|
props: {
|
|
143
|
-
...
|
|
144
|
-
...
|
|
135
|
+
...R,
|
|
136
|
+
...ae,
|
|
145
137
|
dense: Boolean,
|
|
146
138
|
icon: String,
|
|
147
139
|
iconRight: String,
|
|
@@ -177,18 +169,14 @@ var Ie = {
|
|
|
177
169
|
"click"
|
|
178
170
|
],
|
|
179
171
|
setup(e, { slots: t, emit: n }) {
|
|
180
|
-
let { proxy: { $q: r } } = Te(), i =
|
|
181
|
-
let t = e.outline && e.color || e.textColor;
|
|
182
|
-
return "q-chip row inline no-wrap items-center" + (
|
|
172
|
+
let { proxy: { $q: r } } = Te(), i = I(e, r), o = E(e, Fe), s = H(() => e.selected === !0 || e.icon !== void 0), c = H(() => e.selected === !0 ? e.iconSelected || r.iconSet.chip.selected : e.icon), l = H(() => e.iconRemove || r.iconSet.chip.remove), u = H(() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)), d = H(() => {
|
|
173
|
+
let t = e.outline === !0 && e.color || e.textColor;
|
|
174
|
+
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (t ? ` text-${t} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (u.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (i.value === !0 ? " q-chip--dark q-dark" : "");
|
|
183
175
|
}), f = H(() => {
|
|
184
|
-
let t = e.disable ? {
|
|
176
|
+
let t = e.disable === !0 ? {
|
|
185
177
|
tabindex: -1,
|
|
186
178
|
"aria-disabled": "true"
|
|
187
|
-
} : {
|
|
188
|
-
tabindex: e.tabindex || 0,
|
|
189
|
-
role: "button",
|
|
190
|
-
"aria-pressed": e.selected ? "true" : "false"
|
|
191
|
-
};
|
|
179
|
+
} : { tabindex: e.tabindex || 0 };
|
|
192
180
|
return {
|
|
193
181
|
chip: t,
|
|
194
182
|
remove: {
|
|
@@ -200,53 +188,51 @@ var Ie = {
|
|
|
200
188
|
};
|
|
201
189
|
});
|
|
202
190
|
function p(e) {
|
|
203
|
-
|
|
191
|
+
e.keyCode === 13 && m(e);
|
|
204
192
|
}
|
|
205
193
|
function m(t) {
|
|
206
194
|
e.disable || (n("update:selected", !e.selected), n("click", t));
|
|
207
195
|
}
|
|
208
196
|
function h(t) {
|
|
209
|
-
(t.keyCode === void 0 ||
|
|
197
|
+
(t.keyCode === void 0 || t.keyCode === 13) && (k(t), e.disable === !1 && (n("update:modelValue", !1), n("remove")));
|
|
210
198
|
}
|
|
211
199
|
function g() {
|
|
212
200
|
let n = [];
|
|
213
|
-
u.value && n.push(U("div", { class: "q-focus-helper" })), s.value && n.push(U(
|
|
201
|
+
u.value === !0 && n.push(U("div", { class: "q-focus-helper" })), s.value === !0 && n.push(U(j, {
|
|
214
202
|
class: "q-chip__icon q-chip__icon--left",
|
|
215
203
|
name: c.value
|
|
216
204
|
}));
|
|
217
205
|
let r = e.label === void 0 ? void 0 : [U("div", { class: "ellipsis" }, [e.label])];
|
|
218
|
-
return n.push(U("div", { class: "q-chip__content col row no-wrap items-center q-anchor--skip" }, a(t.default, r))), e.iconRight && n.push(U(
|
|
206
|
+
return n.push(U("div", { class: "q-chip__content col row no-wrap items-center q-anchor--skip" }, a(t.default, r))), e.iconRight && n.push(U(j, {
|
|
219
207
|
class: "q-chip__icon q-chip__icon--right",
|
|
220
208
|
name: e.iconRight
|
|
221
|
-
})), e.removable && n.push(U(
|
|
209
|
+
})), e.removable === !0 && n.push(U(j, {
|
|
222
210
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
223
211
|
name: l.value,
|
|
224
212
|
...f.value.remove,
|
|
225
213
|
onClick: h,
|
|
226
|
-
onKeydown: Fe,
|
|
227
214
|
onKeyup: h
|
|
228
215
|
})), n;
|
|
229
216
|
}
|
|
230
217
|
return () => {
|
|
231
|
-
if (
|
|
218
|
+
if (e.modelValue === !1) return;
|
|
232
219
|
let t = {
|
|
233
220
|
class: d.value,
|
|
234
221
|
style: o.value
|
|
235
222
|
};
|
|
236
|
-
return u.value && Object.assign(t, f.value.chip, {
|
|
223
|
+
return u.value === !0 && Object.assign(t, f.value.chip, {
|
|
237
224
|
onClick: m,
|
|
238
|
-
onKeydown: Fe,
|
|
239
225
|
onKeyup: p
|
|
240
|
-
}), ve("div", t, g(), "ripple", e.ripple !== !1 &&
|
|
226
|
+
}), ve("div", t, g(), "ripple", e.ripple !== !1 && e.disable !== !0, () => [[Pe, e.ripple]]);
|
|
241
227
|
};
|
|
242
228
|
}
|
|
243
229
|
});
|
|
244
230
|
//#endregion
|
|
245
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
246
|
-
function
|
|
231
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/composables/private.use-router-link/use-router-link.js
|
|
232
|
+
function Le(e) {
|
|
247
233
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
248
234
|
}
|
|
249
|
-
function
|
|
235
|
+
function Re(e, t) {
|
|
250
236
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
251
237
|
}
|
|
252
238
|
function ze(e, t) {
|
|
@@ -254,19 +240,19 @@ function ze(e, t) {
|
|
|
254
240
|
let r = t[n], i = e[n];
|
|
255
241
|
if (typeof r == "string") {
|
|
256
242
|
if (r !== i) return !1;
|
|
257
|
-
} else if (
|
|
243
|
+
} else if (Array.isArray(i) === !1 || i.length !== r.length || r.some((e, t) => e !== i[t])) return !1;
|
|
258
244
|
}
|
|
259
245
|
return !0;
|
|
260
246
|
}
|
|
261
247
|
function Be(e, t) {
|
|
262
|
-
return Array.isArray(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
|
|
248
|
+
return Array.isArray(t) === !0 ? e.length === t.length && e.every((e, n) => e === t[n]) : e.length === 1 && e[0] === t;
|
|
263
249
|
}
|
|
264
250
|
function Ve(e, t) {
|
|
265
|
-
return Array.isArray(e) ? Be(e, t) : Array.isArray(t) ? Be(t, e) : e === t;
|
|
251
|
+
return Array.isArray(e) === !0 ? Be(e, t) : Array.isArray(t) === !0 ? Be(t, e) : e === t;
|
|
266
252
|
}
|
|
267
253
|
function He(e, t) {
|
|
268
254
|
if (Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
269
|
-
for (let n in e) if (
|
|
255
|
+
for (let n in e) if (Ve(e[n], t[n]) === !1) return !1;
|
|
270
256
|
return !0;
|
|
271
257
|
}
|
|
272
258
|
var Ue = {
|
|
@@ -286,63 +272,63 @@ var Ue = {
|
|
|
286
272
|
}
|
|
287
273
|
};
|
|
288
274
|
function We({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
289
|
-
let n = Te(), { props: r, proxy: i, emit: a } = n, o =
|
|
275
|
+
let n = Te(), { props: r, proxy: i, emit: a } = n, o = u(n), s = H(() => r.disable !== !0 && r.href !== void 0), c = H(t === !0 ? () => o === !0 && r.disable !== !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== "" : () => o === !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""), l = H(() => c.value === !0 ? y(r.to) : null), d = H(() => l.value !== null), f = H(() => s.value === !0 || d.value === !0), p = H(() => r.type === "a" || f.value === !0 ? "a" : r.tag || e || "div"), m = H(() => s.value === !0 ? {
|
|
290
276
|
href: r.href,
|
|
291
277
|
target: r.target
|
|
292
|
-
} :
|
|
278
|
+
} : d.value === !0 ? {
|
|
293
279
|
href: l.value.href,
|
|
294
280
|
target: r.target
|
|
295
|
-
} : {}),
|
|
296
|
-
if (
|
|
281
|
+
} : {}), h = H(() => {
|
|
282
|
+
if (d.value === !1) return -1;
|
|
297
283
|
let { matched: e } = l.value, { length: t } = e, n = e[t - 1];
|
|
298
284
|
if (n === void 0) return -1;
|
|
299
285
|
let r = i.$route.matched;
|
|
300
286
|
if (r.length === 0) return -1;
|
|
301
|
-
let a = r.findIndex(
|
|
287
|
+
let a = r.findIndex(Re.bind(null, n));
|
|
302
288
|
if (a !== -1) return a;
|
|
303
|
-
let o =
|
|
304
|
-
return t > 1 &&
|
|
305
|
-
}),
|
|
306
|
-
function
|
|
289
|
+
let o = Le(e[t - 2]);
|
|
290
|
+
return t > 1 && Le(n) === o && r[r.length - 1].path !== o ? r.findIndex(Re.bind(null, e[t - 2])) : a;
|
|
291
|
+
}), g = H(() => d.value === !0 && h.value !== -1 && ze(i.$route.params, l.value.params)), _ = H(() => g.value === !0 && h.value === i.$route.matched.length - 1 && He(i.$route.params, l.value.params)), v = H(() => d.value === !0 ? _.value === !0 ? ` ${r.exactActiveClass} ${r.activeClass}` : r.exact === !0 ? "" : g.value === !0 ? ` ${r.activeClass}` : "" : "");
|
|
292
|
+
function y(e) {
|
|
307
293
|
try {
|
|
308
294
|
return i.$router.resolve(e);
|
|
309
295
|
} catch {}
|
|
310
296
|
return null;
|
|
311
297
|
}
|
|
312
|
-
function
|
|
313
|
-
if (r.disable) return e.preventDefault(), Promise.resolve(!1);
|
|
298
|
+
function b(e, { returnRouterError: t, to: n = r.to, replace: a = r.replace } = {}) {
|
|
299
|
+
if (r.disable === !0) return e.preventDefault(), Promise.resolve(!1);
|
|
314
300
|
if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey || e.button !== void 0 && e.button !== 0 || r.target === "_blank") return Promise.resolve(!1);
|
|
315
301
|
e.preventDefault();
|
|
316
|
-
let o = i.$router[a ? "replace" : "push"](n);
|
|
317
|
-
return t ? o : o.then(() => {}).catch(() => {});
|
|
302
|
+
let o = i.$router[a === !0 ? "replace" : "push"](n);
|
|
303
|
+
return t === !0 ? o : o.then(() => {}).catch(() => {});
|
|
318
304
|
}
|
|
319
|
-
function
|
|
320
|
-
if (
|
|
321
|
-
let t = (t) =>
|
|
322
|
-
a("click", e, t), e.defaultPrevented
|
|
305
|
+
function x(e) {
|
|
306
|
+
if (d.value === !0) {
|
|
307
|
+
let t = (t) => b(e, t);
|
|
308
|
+
a("click", e, t), e.defaultPrevented !== !0 && t();
|
|
323
309
|
} else a("click", e);
|
|
324
310
|
}
|
|
325
311
|
return {
|
|
326
|
-
hasRouterLink:
|
|
312
|
+
hasRouterLink: d,
|
|
327
313
|
hasHrefLink: s,
|
|
328
|
-
hasLink:
|
|
329
|
-
linkTag:
|
|
314
|
+
hasLink: f,
|
|
315
|
+
linkTag: p,
|
|
330
316
|
resolvedLink: l,
|
|
331
|
-
linkIsActive:
|
|
332
|
-
linkIsExactActive:
|
|
333
|
-
linkClass:
|
|
334
|
-
linkAttrs:
|
|
335
|
-
getLink:
|
|
336
|
-
navigateToRouterLink:
|
|
337
|
-
navigateOnClick:
|
|
317
|
+
linkIsActive: g,
|
|
318
|
+
linkIsExactActive: _,
|
|
319
|
+
linkClass: v,
|
|
320
|
+
linkAttrs: m,
|
|
321
|
+
getLink: y,
|
|
322
|
+
navigateToRouterLink: b,
|
|
323
|
+
navigateOnClick: x
|
|
338
324
|
};
|
|
339
325
|
}
|
|
340
326
|
//#endregion
|
|
341
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
342
|
-
var Ge =
|
|
327
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/item/QItem.js
|
|
328
|
+
var Ge = x({
|
|
343
329
|
name: "QItem",
|
|
344
330
|
props: {
|
|
345
|
-
...
|
|
331
|
+
...R,
|
|
346
332
|
...Ue,
|
|
347
333
|
tag: {
|
|
348
334
|
type: String,
|
|
@@ -360,44 +346,40 @@ var Ge = C({
|
|
|
360
346
|
manualFocus: Boolean
|
|
361
347
|
},
|
|
362
348
|
emits: ["click", "keyup"],
|
|
363
|
-
setup(
|
|
364
|
-
let { proxy: { $q:
|
|
349
|
+
setup(e, { slots: t, emit: n }) {
|
|
350
|
+
let { proxy: { $q: r } } = Te(), i = I(e, r), { hasLink: a, linkAttrs: o, linkClass: s, linkTag: c, navigateOnClick: l } = We(), u = q(null), d = q(null), f = H(() => e.clickable === !0 || a.value === !0 || e.tag === "label"), p = H(() => e.disable !== !0 && f.value === !0), m = H(() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (i.value === !0 ? " q-item--dark" : "") + (a.value === !0 && e.active === null ? s.value : e.active === !0 ? ` q-item--active${e.activeClass === void 0 ? "" : ` ${e.activeClass}`}` : "") + (e.disable === !0 ? " disabled" : "") + (p.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" : "") : "")), g = H(() => e.insetLevel === void 0 ? null : { ["padding" + (r.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px" });
|
|
365
351
|
function v(e) {
|
|
366
|
-
|
|
352
|
+
p.value === !0 && (d.value !== null && e.qAvoidFocus !== !0 && (e.qKeyEvent !== !0 && document.activeElement === u.value ? d.value.focus() : document.activeElement === d.value && u.value.focus()), l(e));
|
|
367
353
|
}
|
|
368
|
-
function y(
|
|
369
|
-
if (
|
|
370
|
-
k(
|
|
371
|
-
let
|
|
372
|
-
|
|
354
|
+
function y(e) {
|
|
355
|
+
if (p.value === !0 && _(e, [13, 32]) === !0) {
|
|
356
|
+
k(e), e.qKeyEvent = !0;
|
|
357
|
+
let t = new MouseEvent("click", e);
|
|
358
|
+
t.qKeyEvent = !0, u.value.dispatchEvent(t);
|
|
373
359
|
}
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
function b(e) {
|
|
377
|
-
m.value && e.keyCode === 32 && k(e);
|
|
360
|
+
n("keyup", e);
|
|
378
361
|
}
|
|
379
|
-
function
|
|
380
|
-
let e = h(
|
|
381
|
-
return
|
|
362
|
+
function b() {
|
|
363
|
+
let e = h(t.default, []);
|
|
364
|
+
return p.value === !0 && e.unshift(U("div", {
|
|
382
365
|
class: "q-focus-helper",
|
|
383
366
|
tabindex: -1,
|
|
384
|
-
ref:
|
|
367
|
+
ref: d
|
|
385
368
|
})), e;
|
|
386
369
|
}
|
|
387
370
|
return () => {
|
|
388
|
-
let
|
|
389
|
-
ref:
|
|
390
|
-
class:
|
|
391
|
-
style:
|
|
392
|
-
role:
|
|
371
|
+
let t = {
|
|
372
|
+
ref: u,
|
|
373
|
+
class: m.value,
|
|
374
|
+
style: g.value,
|
|
375
|
+
role: "listitem",
|
|
393
376
|
onClick: v,
|
|
394
|
-
onKeydown: b,
|
|
395
377
|
onKeyup: y
|
|
396
378
|
};
|
|
397
|
-
return
|
|
379
|
+
return p.value === !0 ? (t.tabindex = e.tabindex || "0", Object.assign(t, o.value)) : f.value === !0 && (t["aria-disabled"] = "true"), U(c.value, t, b());
|
|
398
380
|
};
|
|
399
381
|
}
|
|
400
|
-
}), Ke =
|
|
382
|
+
}), Ke = x({
|
|
401
383
|
name: "QItemSection",
|
|
402
384
|
props: {
|
|
403
385
|
avatar: Boolean,
|
|
@@ -407,10 +389,10 @@ var Ge = C({
|
|
|
407
389
|
noWrap: Boolean
|
|
408
390
|
},
|
|
409
391
|
setup(e, { slots: t }) {
|
|
410
|
-
let n = H(() => `q-item__section column q-item__section--${e.avatar || e.side || e.thumbnail ? "side" : "main"}` + (e.top ? " q-item__section--top justify-start" : " justify-center") + (e.avatar ? " q-item__section--avatar" : "") + (e.thumbnail ? " q-item__section--thumbnail" : "") + (e.noWrap ? " q-item__section--nowrap" : ""));
|
|
392
|
+
let n = H(() => `q-item__section column q-item__section--${e.avatar === !0 || e.side === !0 || e.thumbnail === !0 ? "side" : "main"}` + (e.top === !0 ? " q-item__section--top justify-start" : " justify-center") + (e.avatar === !0 ? " q-item__section--avatar" : "") + (e.thumbnail === !0 ? " q-item__section--thumbnail" : "") + (e.noWrap === !0 ? " q-item__section--nowrap" : ""));
|
|
411
393
|
return () => U("div", { class: n.value }, i(t.default));
|
|
412
394
|
}
|
|
413
|
-
}), qe =
|
|
395
|
+
}), qe = x({
|
|
414
396
|
name: "QItemLabel",
|
|
415
397
|
props: {
|
|
416
398
|
overline: Boolean,
|
|
@@ -419,7 +401,7 @@ var Ge = C({
|
|
|
419
401
|
lines: [Number, String]
|
|
420
402
|
},
|
|
421
403
|
setup(e, { slots: t }) {
|
|
422
|
-
let n = H(() =>
|
|
404
|
+
let n = H(() => parseInt(e.lines, 10)), r = H(() => "q-item__label" + (e.overline === !0 ? " q-item__label--overline text-overline" : "") + (e.caption === !0 ? " q-item__label--caption text-caption" : "") + (e.header === !0 ? " q-item__label--header" : "") + (n.value === 1 ? " ellipsis" : "")), a = H(() => e.lines !== void 0 && n.value > 1 ? {
|
|
423
405
|
overflow: "hidden",
|
|
424
406
|
display: "-webkit-box",
|
|
425
407
|
"-webkit-box-orient": "vertical",
|
|
@@ -430,27 +412,49 @@ var Ge = C({
|
|
|
430
412
|
class: r.value
|
|
431
413
|
}, i(t.default));
|
|
432
414
|
}
|
|
433
|
-
}),
|
|
415
|
+
}), Y = [], Je;
|
|
434
416
|
function Ye(e) {
|
|
435
|
-
Je.
|
|
417
|
+
Je = e.keyCode === 27;
|
|
436
418
|
}
|
|
437
|
-
function Xe(
|
|
438
|
-
|
|
419
|
+
function Xe() {
|
|
420
|
+
Je === !0 && (Je = !1);
|
|
439
421
|
}
|
|
440
422
|
function Ze(e) {
|
|
441
|
-
|
|
442
|
-
|
|
423
|
+
Je === !0 && (Je = !1, _(e, 27) === !0 && Y[Y.length - 1](e));
|
|
424
|
+
}
|
|
425
|
+
function Qe(e) {
|
|
426
|
+
window[e]("keydown", Ye), window[e]("blur", Xe), window[e]("keyup", Ze), Je = !1;
|
|
427
|
+
}
|
|
428
|
+
function $e(e) {
|
|
429
|
+
F.is.desktop === !0 && (Y.push(e), Y.length === 1 && Qe("addEventListener"));
|
|
430
|
+
}
|
|
431
|
+
function et(e) {
|
|
432
|
+
let t = Y.indexOf(e);
|
|
433
|
+
t !== -1 && (Y.splice(t, 1), Y.length === 0 && Qe("removeEventListener"));
|
|
443
434
|
}
|
|
444
435
|
//#endregion
|
|
445
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
446
|
-
var
|
|
436
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/private.focus/focusout.js
|
|
437
|
+
var tt = [];
|
|
438
|
+
function nt(e) {
|
|
439
|
+
tt[tt.length - 1](e);
|
|
440
|
+
}
|
|
441
|
+
function rt(e) {
|
|
442
|
+
F.is.desktop === !0 && (tt.push(e), tt.length === 1 && document.body.addEventListener("focusin", nt));
|
|
443
|
+
}
|
|
444
|
+
function it(e) {
|
|
445
|
+
let t = tt.indexOf(e);
|
|
446
|
+
t !== -1 && (tt.splice(t, 1), tt.length === 0 && document.body.removeEventListener("focusin", nt));
|
|
447
|
+
}
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/menu/QMenu.js
|
|
450
|
+
var at = x({
|
|
447
451
|
name: "QMenu",
|
|
448
452
|
inheritAttrs: !1,
|
|
449
453
|
props: {
|
|
450
|
-
...
|
|
451
|
-
...
|
|
452
|
-
...
|
|
453
|
-
...
|
|
454
|
+
...ee,
|
|
455
|
+
...d,
|
|
456
|
+
...R,
|
|
457
|
+
...v,
|
|
454
458
|
persistent: Boolean,
|
|
455
459
|
autoClose: Boolean,
|
|
456
460
|
separateClosePopup: Boolean,
|
|
@@ -463,17 +467,17 @@ var Qe = C({
|
|
|
463
467
|
square: Boolean,
|
|
464
468
|
anchor: {
|
|
465
469
|
type: String,
|
|
466
|
-
validator:
|
|
470
|
+
validator: V
|
|
467
471
|
},
|
|
468
472
|
self: {
|
|
469
473
|
type: String,
|
|
470
|
-
validator:
|
|
474
|
+
validator: V
|
|
471
475
|
},
|
|
472
476
|
offset: {
|
|
473
477
|
type: Array,
|
|
474
|
-
validator:
|
|
478
|
+
validator: D
|
|
475
479
|
},
|
|
476
|
-
scrollTarget:
|
|
480
|
+
scrollTarget: m,
|
|
477
481
|
touchPosition: Boolean,
|
|
478
482
|
maxHeight: {
|
|
479
483
|
type: String,
|
|
@@ -485,242 +489,240 @@ var Qe = C({
|
|
|
485
489
|
}
|
|
486
490
|
},
|
|
487
491
|
emits: [
|
|
488
|
-
...
|
|
492
|
+
...s,
|
|
489
493
|
"click",
|
|
490
494
|
"escapeKey"
|
|
491
495
|
],
|
|
492
|
-
setup(e, { slots:
|
|
493
|
-
let
|
|
494
|
-
showing:
|
|
495
|
-
canShow:
|
|
496
|
+
setup(e, { slots: a, emit: o, attrs: s }) {
|
|
497
|
+
let u = null, d, p, m, h = Te(), { proxy: _ } = h, { $q: v } = _, b = q(null), x = q(!1), C = H(() => e.persistent !== !0 && e.noRouteDismiss !== !0), ee = I(e, v), { registerTick: E, removeTick: te } = f(), { registerTimeout: D } = l(), { transitionProps: O, transitionStyle: re } = be(e), { localScrollTarget: A, changeScrollEvent: ie, unconfigureScrollTarget: ae } = w(e, me), { anchorEl: j, canShow: oe } = T({ showing: x }), { hide: M } = de({
|
|
498
|
+
showing: x,
|
|
499
|
+
canShow: oe,
|
|
496
500
|
handleShow: z,
|
|
497
|
-
handleHide:
|
|
498
|
-
|
|
499
|
-
hideOnRouteChange: ee,
|
|
501
|
+
handleHide: pe,
|
|
502
|
+
hideOnRouteChange: C,
|
|
500
503
|
processOnMount: !0
|
|
501
|
-
}), { showPortal:
|
|
502
|
-
anchorEl:
|
|
503
|
-
innerRef:
|
|
504
|
+
}), { showPortal: se, hidePortal: N, renderPortal: P } = n(h, b, xe, "menu"), F = {
|
|
505
|
+
anchorEl: j,
|
|
506
|
+
innerRef: b,
|
|
504
507
|
onClickOutside(t) {
|
|
505
|
-
if (
|
|
508
|
+
if (e.persistent !== !0 && x.value === !0) return M(t), (t.type === "touchstart" || t.target.classList.contains("q-dialog__backdrop")) && k(t), !0;
|
|
506
509
|
}
|
|
507
|
-
},
|
|
510
|
+
}, L = H(() => _e(e.anchor || (e.cover === !0 ? "center middle" : "bottom start"), v.lang.rtl)), ce = H(() => e.cover === !0 ? L.value : _e(e.self || "top start", v.lang.rtl)), le = H(() => (e.square === !0 ? " q-menu--square" : "") + (ee.value === !0 ? " q-menu--dark q-dark" : "")), ue = H(() => e.autoClose === !0 ? { onClick: he } : {}), R = H(() => x.value === !0 && e.persistent !== !0);
|
|
508
511
|
J(R, (e) => {
|
|
509
|
-
e ? (
|
|
512
|
+
e === !0 ? ($e(ve), y(F)) : (et(ve), r(F));
|
|
510
513
|
});
|
|
511
|
-
function
|
|
514
|
+
function fe() {
|
|
512
515
|
c(() => {
|
|
513
|
-
let e =
|
|
514
|
-
e &&
|
|
516
|
+
let e = b.value;
|
|
517
|
+
e && e.contains(document.activeElement) !== !0 && (e = e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || e.querySelector("[autofocus], [data-autofocus]") || e, e.focus({ preventScroll: !0 }));
|
|
515
518
|
});
|
|
516
519
|
}
|
|
517
520
|
function z(t) {
|
|
518
|
-
if (
|
|
519
|
-
let e =
|
|
521
|
+
if (u = e.noRefocus === !1 ? document.activeElement : null, rt(ge), se(), me(), d = void 0, t !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
522
|
+
let e = ne(t);
|
|
520
523
|
if (e.left !== void 0) {
|
|
521
|
-
let { top: t, left: n } =
|
|
522
|
-
|
|
524
|
+
let { top: t, left: n } = j.value.getBoundingClientRect();
|
|
525
|
+
d = {
|
|
523
526
|
left: e.left - n,
|
|
524
527
|
top: e.top - t
|
|
525
528
|
};
|
|
526
529
|
}
|
|
527
530
|
}
|
|
528
|
-
|
|
529
|
-
V(), e.noFocus
|
|
530
|
-
}),
|
|
531
|
-
|
|
531
|
+
p === void 0 && (p = J(() => v.screen.width + "|" + v.screen.height + "|" + e.self + "|" + e.anchor + "|" + v.lang.rtl, V)), e.noFocus !== !0 && document.activeElement.blur(), E(() => {
|
|
532
|
+
V(), e.noFocus !== !0 && fe();
|
|
533
|
+
}), D(() => {
|
|
534
|
+
v.platform.is.ios === !0 && (m = e.autoClose, b.value.click()), V(), se(!0), o("show", t);
|
|
532
535
|
}, e.transitionDuration);
|
|
533
536
|
}
|
|
534
|
-
function
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
l = null, c(() => {
|
|
538
|
-
e.isConnected && e.focus();
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
A(() => {
|
|
542
|
-
P(!0), a("hide", t);
|
|
537
|
+
function pe(t) {
|
|
538
|
+
te(), N(), B(!0), u !== null && (t === void 0 || t.qClickOutside !== !0) && (((t?.type.indexOf("key") === 0 ? u.closest("[tabindex]:not([tabindex^=\"-\"])") : void 0) || u).focus(), u = null), D(() => {
|
|
539
|
+
N(!0), o("hide", t);
|
|
543
540
|
}, e.transitionDuration);
|
|
544
541
|
}
|
|
545
|
-
function
|
|
546
|
-
|
|
542
|
+
function B(e) {
|
|
543
|
+
d = void 0, p !== void 0 && (p(), p = void 0), (e === !0 || x.value === !0) && (it(ge), ae(), r(F), et(ve)), e !== !0 && (u = null);
|
|
547
544
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
function ve() {
|
|
552
|
-
(M.value !== null || e.scrollTarget !== void 0) && (ie.value = p(M.value, e.scrollTarget), ae(ie.value, V));
|
|
545
|
+
function me() {
|
|
546
|
+
(j.value !== null || e.scrollTarget !== void 0) && (A.value = t(j.value, e.scrollTarget), ie(A.value, V));
|
|
553
547
|
}
|
|
554
|
-
function
|
|
555
|
-
|
|
548
|
+
function he(e) {
|
|
549
|
+
m === !0 ? m = !1 : (S(_, e), o("click", e));
|
|
556
550
|
}
|
|
557
|
-
function
|
|
558
|
-
R.value &&
|
|
551
|
+
function ge(t) {
|
|
552
|
+
R.value === !0 && e.noFocus !== !0 && g(b.value, t.target) !== !0 && fe();
|
|
559
553
|
}
|
|
560
|
-
function
|
|
561
|
-
e.noEscDismiss
|
|
554
|
+
function ve(t) {
|
|
555
|
+
e.noEscDismiss !== !0 && (o("escapeKey"), M(t));
|
|
562
556
|
}
|
|
563
557
|
function V() {
|
|
564
|
-
|
|
565
|
-
targetEl:
|
|
558
|
+
ye({
|
|
559
|
+
targetEl: b.value,
|
|
566
560
|
offset: e.offset,
|
|
567
|
-
anchorEl:
|
|
568
|
-
anchorOrigin:
|
|
569
|
-
selfOrigin:
|
|
570
|
-
absoluteOffset:
|
|
561
|
+
anchorEl: j.value,
|
|
562
|
+
anchorOrigin: L.value,
|
|
563
|
+
selfOrigin: ce.value,
|
|
564
|
+
absoluteOffset: d,
|
|
571
565
|
fit: e.fit,
|
|
572
566
|
cover: e.cover,
|
|
573
567
|
maxHeight: e.maxHeight,
|
|
574
568
|
maxWidth: e.maxWidth
|
|
575
569
|
});
|
|
576
570
|
}
|
|
577
|
-
function
|
|
578
|
-
return U(we,
|
|
571
|
+
function xe() {
|
|
572
|
+
return U(we, O.value, () => x.value === !0 ? U("div", {
|
|
579
573
|
role: "menu",
|
|
580
574
|
...s,
|
|
581
|
-
ref:
|
|
575
|
+
ref: b,
|
|
582
576
|
tabindex: -1,
|
|
583
|
-
class: ["q-menu q-position-engine scroll" +
|
|
584
|
-
style: [s.style,
|
|
585
|
-
...
|
|
586
|
-
}, i(
|
|
587
|
-
}
|
|
588
|
-
return De(
|
|
589
|
-
|
|
590
|
-
}), Object.assign(_, {
|
|
591
|
-
focus: me,
|
|
577
|
+
class: ["q-menu q-position-engine scroll" + le.value, s.class],
|
|
578
|
+
style: [s.style, re.value],
|
|
579
|
+
...ue.value
|
|
580
|
+
}, i(a.default)) : null);
|
|
581
|
+
}
|
|
582
|
+
return De(B), Object.assign(_, {
|
|
583
|
+
focus: fe,
|
|
592
584
|
updatePosition: V
|
|
593
|
-
}),
|
|
585
|
+
}), P;
|
|
594
586
|
}
|
|
595
|
-
}),
|
|
596
|
-
function
|
|
587
|
+
}), ot = () => !0;
|
|
588
|
+
function st(e) {
|
|
597
589
|
return typeof e == "string" && e !== "" && e !== "/" && e !== "#/";
|
|
598
590
|
}
|
|
599
|
-
function
|
|
600
|
-
return e.startsWith("#") && (e = e.
|
|
591
|
+
function ct(e) {
|
|
592
|
+
return e.startsWith("#") === !0 && (e = e.substring(1)), e.startsWith("/") === !1 && (e = "/" + e), e.endsWith("/") === !0 && (e = e.substring(0, e.length - 1)), "#" + e;
|
|
601
593
|
}
|
|
602
|
-
function
|
|
594
|
+
function lt(e) {
|
|
603
595
|
if (e.backButtonExit === !1) return () => !1;
|
|
604
|
-
if (e.backButtonExit === "*") return
|
|
596
|
+
if (e.backButtonExit === "*") return ot;
|
|
605
597
|
let t = ["#/"];
|
|
606
|
-
return Array.isArray(e.backButtonExit) && t.push(...e.backButtonExit.filter(
|
|
598
|
+
return Array.isArray(e.backButtonExit) === !0 && t.push(...e.backButtonExit.filter(st).map(ct)), () => t.includes(window.location.hash);
|
|
607
599
|
}
|
|
608
|
-
var
|
|
600
|
+
var ut = {
|
|
609
601
|
__history: [],
|
|
610
602
|
add: M,
|
|
611
603
|
remove: M,
|
|
612
604
|
install({ $q: e }) {
|
|
613
|
-
if (this.__installed) return;
|
|
614
|
-
let { cordova: t, capacitor: n } =
|
|
615
|
-
if (
|
|
616
|
-
let r = e.config[t ? "cordova" : "capacitor"];
|
|
617
|
-
if (r?.backButton === !1 || n && (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)) return;
|
|
605
|
+
if (this.__installed === !0) return;
|
|
606
|
+
let { cordova: t, capacitor: n } = F.is;
|
|
607
|
+
if (t !== !0 && n !== !0) return;
|
|
608
|
+
let r = e.config[t === !0 ? "cordova" : "capacitor"];
|
|
609
|
+
if (r?.backButton === !1 || n === !0 && (window.Capacitor === void 0 || window.Capacitor.Plugins.App === void 0)) return;
|
|
618
610
|
this.add = (e) => {
|
|
619
|
-
e.condition === void 0 && (e.condition =
|
|
611
|
+
e.condition === void 0 && (e.condition = ot), this.__history.push(e);
|
|
620
612
|
}, this.remove = (e) => {
|
|
621
613
|
let t = this.__history.indexOf(e);
|
|
622
|
-
t
|
|
614
|
+
t >= 0 && this.__history.splice(t, 1);
|
|
623
615
|
};
|
|
624
|
-
let i =
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
let e = this.__history.at(-1);
|
|
630
|
-
e.condition() && (this.__history.pop(), e.handler());
|
|
631
|
-
} else i() ? navigator.app.exitApp() : window.history.back();
|
|
616
|
+
let i = lt(Object.assign({ backButtonExit: !0 }, r)), a = () => {
|
|
617
|
+
if (this.__history.length) {
|
|
618
|
+
let e = this.__history[this.__history.length - 1];
|
|
619
|
+
e.condition() === !0 && (this.__history.pop(), e.handler());
|
|
620
|
+
} else i() === !0 ? navigator.app.exitApp() : window.history.back();
|
|
632
621
|
};
|
|
633
|
-
t ? document.addEventListener("deviceready", () => {
|
|
622
|
+
t === !0 ? document.addEventListener("deviceready", () => {
|
|
634
623
|
document.addEventListener("backbutton", a, !1);
|
|
635
624
|
}) : window.Capacitor.Plugins.App.addListener("backButton", a);
|
|
636
625
|
}
|
|
637
626
|
};
|
|
638
627
|
//#endregion
|
|
639
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
640
|
-
function
|
|
628
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/composables/private.use-history/use-history.js
|
|
629
|
+
function dt(e, t, n) {
|
|
641
630
|
let r;
|
|
642
631
|
function i() {
|
|
643
|
-
r !== void 0 && (
|
|
632
|
+
r !== void 0 && (ut.remove(r), r = void 0);
|
|
644
633
|
}
|
|
645
634
|
return De(() => {
|
|
646
|
-
e.value && i();
|
|
635
|
+
e.value === !0 && i();
|
|
647
636
|
}), {
|
|
648
637
|
removeFromHistory: i,
|
|
649
638
|
addToHistory() {
|
|
650
639
|
r = {
|
|
651
|
-
condition: () => n.value,
|
|
640
|
+
condition: () => n.value === !0,
|
|
652
641
|
handler: t
|
|
653
|
-
},
|
|
642
|
+
}, ut.add(r);
|
|
654
643
|
}
|
|
655
644
|
};
|
|
656
645
|
}
|
|
657
646
|
//#endregion
|
|
658
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
659
|
-
var
|
|
660
|
-
function
|
|
647
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/scroll/prevent-scroll.js
|
|
648
|
+
var ft = 0, pt, mt, ht, X = !1, gt, Z, _t, Q = null;
|
|
649
|
+
function vt(e) {
|
|
650
|
+
yt(e) && k(e);
|
|
651
|
+
}
|
|
652
|
+
function yt(e) {
|
|
653
|
+
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop")) return !0;
|
|
654
|
+
let t = ce(e), n = e.shiftKey && !e.deltaX, r = !n && Math.abs(e.deltaX) <= Math.abs(e.deltaY), i = n || r ? e.deltaY : e.deltaX;
|
|
655
|
+
for (let e = 0; e < t.length; e++) {
|
|
656
|
+
let n = t[e];
|
|
657
|
+
if (p(n, r)) return r ? i < 0 && n.scrollTop === 0 || i > 0 && n.scrollTop + n.clientHeight === n.scrollHeight : i < 0 && n.scrollLeft === 0 || i > 0 && n.scrollLeft + n.clientWidth === n.scrollWidth;
|
|
658
|
+
}
|
|
659
|
+
return !0;
|
|
660
|
+
}
|
|
661
|
+
function bt(e) {
|
|
661
662
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
function xt(e) {
|
|
665
|
+
X !== !0 && (X = !0, requestAnimationFrame(() => {
|
|
666
|
+
X = !1;
|
|
666
667
|
let { height: t } = e.target, { clientHeight: n, scrollTop: r } = document.scrollingElement;
|
|
667
|
-
(
|
|
668
|
+
(ht === void 0 || t !== window.innerHeight) && (ht = n - t, document.scrollingElement.scrollTop = r), r > ht && (document.scrollingElement.scrollTop -= Math.ceil((r - ht) / 8));
|
|
668
669
|
}));
|
|
669
670
|
}
|
|
670
|
-
function
|
|
671
|
+
function St(e) {
|
|
671
672
|
let t = document.body, n = window.visualViewport !== void 0;
|
|
672
673
|
if (e === "add") {
|
|
673
674
|
let { overflowY: e, overflowX: r } = window.getComputedStyle(t);
|
|
674
|
-
|
|
675
|
-
}
|
|
675
|
+
pt = N(window), mt = se(window), gt = t.style.left, Z = t.style.top, _t = window.location.href, t.style.left = `-${pt}px`, t.style.top = `-${mt}px`, r !== "hidden" && (r === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), e !== "hidden" && (e === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, F.is.ios === !0 && (n === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", xt, z.passiveCapture), window.visualViewport.addEventListener("scroll", xt, z.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", bt, z.passiveCapture));
|
|
676
|
+
}
|
|
677
|
+
F.is.desktop === !0 && F.is.mac === !0 && window[`${e}EventListener`]("wheel", vt, z.notPassive), e === "remove" && (F.is.ios === !0 && (n === !0 ? (window.visualViewport.removeEventListener("resize", xt, z.passiveCapture), window.visualViewport.removeEventListener("scroll", xt, z.passiveCapture)) : window.removeEventListener("scroll", bt, z.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 = gt, t.style.top = Z, window.location.href === _t && window.scrollTo(pt, mt), ht = void 0);
|
|
676
678
|
}
|
|
677
|
-
function
|
|
679
|
+
function Ct(e) {
|
|
678
680
|
let t = "add";
|
|
679
681
|
if (e === !0) {
|
|
680
|
-
if (
|
|
681
|
-
clearTimeout(
|
|
682
|
+
if (ft++, Q !== null) {
|
|
683
|
+
clearTimeout(Q), Q = null;
|
|
682
684
|
return;
|
|
683
685
|
}
|
|
684
|
-
if (
|
|
686
|
+
if (ft > 1) return;
|
|
685
687
|
} else {
|
|
686
|
-
if (
|
|
687
|
-
if (t = "remove",
|
|
688
|
-
|
|
689
|
-
|
|
688
|
+
if (ft === 0 || (ft--, ft > 0)) return;
|
|
689
|
+
if (t = "remove", F.is.ios === !0 && F.is.nativeMobile === !0) {
|
|
690
|
+
Q !== null && clearTimeout(Q), Q = setTimeout(() => {
|
|
691
|
+
St(t), Q = null;
|
|
690
692
|
}, 100);
|
|
691
693
|
return;
|
|
692
694
|
}
|
|
693
695
|
}
|
|
694
|
-
|
|
696
|
+
St(t);
|
|
695
697
|
}
|
|
696
698
|
//#endregion
|
|
697
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
698
|
-
function
|
|
699
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/composables/private.use-prevent-scroll/use-prevent-scroll.js
|
|
700
|
+
function wt() {
|
|
699
701
|
let e;
|
|
700
702
|
return { preventBodyScroll(t) {
|
|
701
|
-
t !== e && (e !== void 0 || t) && (e = t,
|
|
703
|
+
t !== e && (e !== void 0 || t === !0) && (e = t, Ct(t));
|
|
702
704
|
} };
|
|
703
705
|
}
|
|
704
706
|
//#endregion
|
|
705
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
706
|
-
var
|
|
707
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/dialog/QDialog.js
|
|
708
|
+
var Tt = 0, Et = {
|
|
707
709
|
standard: "fixed-full flex-center",
|
|
708
710
|
top: "fixed-top justify-center",
|
|
709
711
|
bottom: "fixed-bottom justify-center",
|
|
710
712
|
right: "fixed-right items-center",
|
|
711
713
|
left: "fixed-left items-center"
|
|
712
|
-
},
|
|
714
|
+
}, Dt = {
|
|
713
715
|
standard: ["scale", "scale"],
|
|
714
716
|
top: ["slide-down", "slide-up"],
|
|
715
717
|
bottom: ["slide-up", "slide-down"],
|
|
716
718
|
right: ["slide-left", "slide-right"],
|
|
717
719
|
left: ["slide-right", "slide-left"]
|
|
718
|
-
},
|
|
720
|
+
}, Ot = x({
|
|
719
721
|
name: "QDialog",
|
|
720
722
|
inheritAttrs: !1,
|
|
721
723
|
props: {
|
|
722
|
-
...
|
|
723
|
-
...
|
|
724
|
+
...d,
|
|
725
|
+
...v,
|
|
724
726
|
transitionShow: String,
|
|
725
727
|
transitionHide: String,
|
|
726
728
|
persistent: Boolean,
|
|
@@ -751,54 +753,44 @@ var Q = 0, _t = {
|
|
|
751
753
|
}
|
|
752
754
|
},
|
|
753
755
|
emits: [
|
|
754
|
-
...
|
|
756
|
+
...s,
|
|
755
757
|
"shake",
|
|
756
758
|
"click",
|
|
757
759
|
"escapeKey"
|
|
758
760
|
],
|
|
759
|
-
setup(e, { slots:
|
|
760
|
-
let
|
|
761
|
+
setup(e, { slots: t, emit: r, attrs: a }) {
|
|
762
|
+
let o = Te(), s = q(null), u = q(!1), d = q(!1), p = null, m = null, h, _, v = H(() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0), { preventBodyScroll: y } = wt(), { registerTimeout: b } = l(), { registerTick: x, removeTick: S } = f(), { transitionProps: C, transitionStyle: ee } = be(e, () => Dt[e.position][0], () => Dt[e.position][1]), w = H(() => ee.value + (e.backdropFilter === void 0 ? "" : `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)), { showPortal: T, hidePortal: E, portalIsAccessible: te, renderPortal: ne } = n(o, s, le, "dialog"), { hide: D } = de({
|
|
761
763
|
showing: u,
|
|
762
|
-
hideOnRouteChange:
|
|
763
|
-
handleShow:
|
|
764
|
-
handleHide:
|
|
765
|
-
handleRouteChange: le,
|
|
764
|
+
hideOnRouteChange: v,
|
|
765
|
+
handleShow: j,
|
|
766
|
+
handleHide: oe,
|
|
766
767
|
processOnMount: !0
|
|
767
|
-
}), { addToHistory:
|
|
768
|
+
}), { addToHistory: O, removeFromHistory: k } = dt(u, D, v), re = H(() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${Et[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" : "")), A = H(() => u.value === !0 && e.seamless !== !0), ie = H(() => e.autoClose === !0 ? { onClick: I } : {}), ae = H(() => [`q-dialog fullscreen no-pointer-events q-dialog--${A.value === !0 ? "modal" : "seamless"}`, a.class]);
|
|
768
769
|
J(() => e.maximized, (e) => {
|
|
769
|
-
u.value &&
|
|
770
|
-
}), J(
|
|
771
|
-
|
|
770
|
+
u.value === !0 && F(e);
|
|
771
|
+
}), J(A, (e) => {
|
|
772
|
+
y(e), e === !0 ? (rt(ce), $e(N)) : (it(ce), et(N));
|
|
772
773
|
});
|
|
773
|
-
function
|
|
774
|
-
|
|
775
|
-
if (
|
|
776
|
-
if (
|
|
774
|
+
function j(t) {
|
|
775
|
+
O(), m = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, F(e.maximized), T(), d.value = !0, e.noFocus === !0 ? S() : (document.activeElement?.blur(), x(M)), b(() => {
|
|
776
|
+
if (o.proxy.$q.platform.is.ios === !0) {
|
|
777
|
+
if (e.seamless !== !0 && document.activeElement) {
|
|
777
778
|
let { top: e, bottom: t } = document.activeElement.getBoundingClientRect(), { innerHeight: n } = window, r = window.visualViewport === void 0 ? n : window.visualViewport.height;
|
|
778
779
|
e > 0 && t > r / 2 && (document.scrollingElement.scrollTop = Math.min(document.scrollingElement.scrollHeight - r, t >= n ? Infinity : Math.ceil(document.scrollingElement.scrollTop + t - r / 2))), document.activeElement.scrollIntoView();
|
|
779
780
|
}
|
|
780
|
-
_ = !0,
|
|
781
|
+
_ = !0, s.value.click(), _ = !1;
|
|
781
782
|
}
|
|
782
|
-
|
|
783
|
+
T(!0), d.value = !1, r("show", t);
|
|
783
784
|
}, e.transitionDuration);
|
|
784
785
|
}
|
|
785
|
-
function
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
h = null, c(() => {
|
|
789
|
-
e.isConnected && e.focus();
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
x(() => {
|
|
793
|
-
D(!0), p.value = !1, r("hide", t);
|
|
786
|
+
function oe(t) {
|
|
787
|
+
S(), k(), P(!0), d.value = !0, E(), m !== null && (((t?.type.indexOf("key") === 0 ? m.closest("[tabindex]:not([tabindex^=\"-\"])") : void 0) || m).focus(), m = null), b(() => {
|
|
788
|
+
E(!0), d.value = !1, r("hide", t);
|
|
794
789
|
}, e.transitionDuration);
|
|
795
790
|
}
|
|
796
|
-
function
|
|
797
|
-
h = null;
|
|
798
|
-
}
|
|
799
|
-
function N(e) {
|
|
791
|
+
function M(e) {
|
|
800
792
|
c(() => {
|
|
801
|
-
let t =
|
|
793
|
+
let t = s.value;
|
|
802
794
|
if (t !== null) {
|
|
803
795
|
if (e !== void 0) {
|
|
804
796
|
let n = t.querySelector(e);
|
|
@@ -807,67 +799,68 @@ var Q = 0, _t = {
|
|
|
807
799
|
return;
|
|
808
800
|
}
|
|
809
801
|
}
|
|
810
|
-
t.contains(document.activeElement)
|
|
802
|
+
t.contains(document.activeElement) !== !0 && (t = t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || t.querySelector("[autofocus], [data-autofocus]") || t, t.focus({ preventScroll: !0 }));
|
|
811
803
|
}
|
|
812
804
|
});
|
|
813
805
|
}
|
|
814
|
-
function
|
|
815
|
-
e && typeof e.focus == "function" ? e.focus({ preventScroll: !0 }) :
|
|
816
|
-
let t =
|
|
817
|
-
t !== null && (t.classList.remove("q-animate--scale"), t.classList.add("q-animate--scale"),
|
|
818
|
-
|
|
806
|
+
function se(e) {
|
|
807
|
+
e && typeof e.focus == "function" ? e.focus({ preventScroll: !0 }) : M(), r("shake");
|
|
808
|
+
let t = s.value;
|
|
809
|
+
t !== null && (t.classList.remove("q-animate--scale"), t.classList.add("q-animate--scale"), p !== null && clearTimeout(p), p = setTimeout(() => {
|
|
810
|
+
p = null, s.value !== null && (t.classList.remove("q-animate--scale"), M());
|
|
819
811
|
}, 170));
|
|
820
812
|
}
|
|
821
|
-
function
|
|
822
|
-
e.seamless
|
|
813
|
+
function N() {
|
|
814
|
+
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && se() : (r("escapeKey"), D()));
|
|
823
815
|
}
|
|
824
|
-
function
|
|
825
|
-
|
|
816
|
+
function P(t) {
|
|
817
|
+
p !== null && (clearTimeout(p), p = null), (t === !0 || u.value === !0) && (F(!1), e.seamless !== !0 && (y(!1), it(ce), et(N))), t !== !0 && (m = null);
|
|
826
818
|
}
|
|
827
|
-
function
|
|
828
|
-
e ?
|
|
819
|
+
function F(e) {
|
|
820
|
+
e === !0 ? h !== !0 && (Tt < 1 && document.body.classList.add("q-body--dialog"), Tt++, h = !0) : h === !0 && (Tt < 2 && document.body.classList.remove("q-body--dialog"), Tt--, h = !1);
|
|
829
821
|
}
|
|
830
|
-
function
|
|
831
|
-
_
|
|
832
|
-
}
|
|
833
|
-
function fe(t) {
|
|
834
|
-
!e.persistent && !e.noBackdropDismiss ? k(t) : e.noShake || P();
|
|
822
|
+
function I(e) {
|
|
823
|
+
_ !== !0 && (D(e), r("click", e));
|
|
835
824
|
}
|
|
836
825
|
function L(t) {
|
|
837
|
-
|
|
826
|
+
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? D(t) : e.noShake !== !0 && se();
|
|
827
|
+
}
|
|
828
|
+
function ce(t) {
|
|
829
|
+
e.allowFocusOutside !== !0 && te.value === !0 && g(s.value, t.target) !== !0 && M("[tabindex]:not([tabindex=\"-1\"])");
|
|
838
830
|
}
|
|
839
|
-
Object.assign(
|
|
840
|
-
focus:
|
|
841
|
-
shake:
|
|
831
|
+
Object.assign(o.proxy, {
|
|
832
|
+
focus: M,
|
|
833
|
+
shake: se,
|
|
842
834
|
__updateRefocusTarget(e) {
|
|
843
|
-
|
|
835
|
+
m = e || null;
|
|
844
836
|
}
|
|
845
|
-
}), De(
|
|
846
|
-
function
|
|
837
|
+
}), De(P);
|
|
838
|
+
function le() {
|
|
847
839
|
return U("div", {
|
|
848
840
|
role: "dialog",
|
|
849
|
-
"aria-modal":
|
|
841
|
+
"aria-modal": A.value === !0 ? "true" : "false",
|
|
850
842
|
...a,
|
|
851
|
-
class:
|
|
843
|
+
class: ae.value
|
|
852
844
|
}, [U(we, {
|
|
853
845
|
name: "q-transition--fade",
|
|
854
846
|
appear: !0
|
|
855
|
-
}, () =>
|
|
847
|
+
}, () => A.value === !0 ? U("div", {
|
|
856
848
|
class: "q-dialog__backdrop fixed-full",
|
|
857
|
-
style:
|
|
849
|
+
style: w.value,
|
|
858
850
|
"aria-hidden": "true",
|
|
859
|
-
onClick: fe
|
|
860
|
-
}) : null), U(we, T.value, () => u.value ? U("div", {
|
|
861
|
-
ref: l,
|
|
862
|
-
class: j.value,
|
|
863
|
-
style: E.value,
|
|
864
851
|
tabindex: -1,
|
|
865
|
-
|
|
866
|
-
},
|
|
852
|
+
onClick: L
|
|
853
|
+
}) : null), U(we, C.value, () => u.value === !0 ? U("div", {
|
|
854
|
+
ref: s,
|
|
855
|
+
class: re.value,
|
|
856
|
+
style: ee.value,
|
|
857
|
+
tabindex: -1,
|
|
858
|
+
...ie.value
|
|
859
|
+
}, i(t.default)) : null)]);
|
|
867
860
|
}
|
|
868
861
|
return ne;
|
|
869
862
|
}
|
|
870
|
-
}),
|
|
863
|
+
}), kt = !1;
|
|
871
864
|
{
|
|
872
865
|
let e = document.createElement("div");
|
|
873
866
|
e.setAttribute("dir", "rtl"), Object.assign(e.style, {
|
|
@@ -879,57 +872,57 @@ var Q = 0, _t = {
|
|
|
879
872
|
Object.assign(t.style, {
|
|
880
873
|
width: "1000px",
|
|
881
874
|
height: "1px"
|
|
882
|
-
}), document.body.
|
|
875
|
+
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, kt = e.scrollLeft >= 0, e.remove();
|
|
883
876
|
}
|
|
884
877
|
//#endregion
|
|
885
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
886
|
-
var $ = 1e3,
|
|
878
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/virtual-scroll/use-virtual-scroll.js
|
|
879
|
+
var $ = 1e3, At = [
|
|
887
880
|
"start",
|
|
888
881
|
"center",
|
|
889
882
|
"end",
|
|
890
883
|
"start-force",
|
|
891
884
|
"center-force",
|
|
892
885
|
"end-force"
|
|
893
|
-
],
|
|
886
|
+
], jt = Array.prototype.filter, Mt = window.getComputedStyle(document.body).overflowAnchor === void 0 ? M : function(e, t) {
|
|
894
887
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
895
888
|
if (e === null) return;
|
|
896
889
|
e._qOverflowAnimationFrame = void 0;
|
|
897
890
|
let n = e.children || [];
|
|
898
|
-
|
|
891
|
+
jt.call(n, (e) => e.dataset && e.dataset.qVsAnchor !== void 0).forEach((e) => {
|
|
899
892
|
delete e.dataset.qVsAnchor;
|
|
900
893
|
});
|
|
901
894
|
let r = n[t];
|
|
902
895
|
r?.dataset && (r.dataset.qVsAnchor = "");
|
|
903
896
|
}));
|
|
904
897
|
};
|
|
905
|
-
function
|
|
898
|
+
function Nt(e, t) {
|
|
906
899
|
return e + t;
|
|
907
900
|
}
|
|
908
|
-
function
|
|
909
|
-
let c = e === window ? document.scrollingElement || document.documentElement : e, l = i ? "offsetWidth" : "offsetHeight", u = {
|
|
901
|
+
function Pt(e, t, n, r, i, a, o, s) {
|
|
902
|
+
let c = e === window ? document.scrollingElement || document.documentElement : e, l = i === !0 ? "offsetWidth" : "offsetHeight", u = {
|
|
910
903
|
scrollStart: 0,
|
|
911
904
|
scrollViewSize: -o - s,
|
|
912
905
|
scrollMaxSize: 0,
|
|
913
906
|
offsetStart: -o,
|
|
914
907
|
offsetEnd: -s
|
|
915
908
|
};
|
|
916
|
-
if (i ? (e === window ? (u.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, u.scrollViewSize += document.documentElement.clientWidth) : (u.scrollStart = c.scrollLeft, u.scrollViewSize += c.clientWidth), u.scrollMaxSize = c.scrollWidth, a && (u.scrollStart = (
|
|
917
|
-
if (r !== null) for (let e = r.nextElementSibling; e !== null; e = e.nextElementSibling) e.classList.contains("q-virtual-scroll--skip")
|
|
909
|
+
if (i === !0 ? (e === window ? (u.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, u.scrollViewSize += document.documentElement.clientWidth) : (u.scrollStart = c.scrollLeft, u.scrollViewSize += c.clientWidth), u.scrollMaxSize = c.scrollWidth, a === !0 && (u.scrollStart = (kt === !0 ? u.scrollMaxSize - u.scrollViewSize : 0) - u.scrollStart)) : (e === window ? (u.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, u.scrollViewSize += document.documentElement.clientHeight) : (u.scrollStart = c.scrollTop, u.scrollViewSize += c.clientHeight), u.scrollMaxSize = c.scrollHeight), n !== null) for (let e = n.previousElementSibling; e !== null; e = e.previousElementSibling) e.classList.contains("q-virtual-scroll--skip") === !1 && (u.offsetStart += e[l]);
|
|
910
|
+
if (r !== null) for (let e = r.nextElementSibling; e !== null; e = e.nextElementSibling) e.classList.contains("q-virtual-scroll--skip") === !1 && (u.offsetEnd += e[l]);
|
|
918
911
|
if (t !== e) {
|
|
919
912
|
let n = c.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
920
|
-
i ? (u.offsetStart += r.left - n.left, u.offsetEnd -= r.width) : (u.offsetStart += r.top - n.top, u.offsetEnd -= r.height), e !== window && (u.offsetStart += u.scrollStart), u.offsetEnd += u.scrollMaxSize - u.offsetStart;
|
|
913
|
+
i === !0 ? (u.offsetStart += r.left - n.left, u.offsetEnd -= r.width) : (u.offsetStart += r.top - n.top, u.offsetEnd -= r.height), e !== window && (u.offsetStart += u.scrollStart), u.offsetEnd += u.scrollMaxSize - u.offsetStart;
|
|
921
914
|
}
|
|
922
915
|
return u;
|
|
923
916
|
}
|
|
924
|
-
function
|
|
925
|
-
t === "end" && (t = (e === window ? document.body : e)[n ? "scrollWidth" : "scrollHeight"]), e === window ? n ? (r && (t = (
|
|
917
|
+
function Ft(e, t, n, r) {
|
|
918
|
+
t === "end" && (t = (e === window ? document.body : e)[n === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? n === !0 ? (r === !0 && (t = (kt === !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) : n === !0 ? (r === !0 && (t = (kt === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
926
919
|
}
|
|
927
|
-
function
|
|
920
|
+
function It(e, t, n, r) {
|
|
928
921
|
if (n >= r) return 0;
|
|
929
|
-
let i = t.length, a = Math.floor(n / $), o = Math.floor((r - 1) / $) + 1, s = e.slice(a, o).reduce(
|
|
930
|
-
return n % $ !== 0 && (s -= t.slice(a * $, n).reduce(
|
|
922
|
+
let i = t.length, a = Math.floor(n / $), o = Math.floor((r - 1) / $) + 1, s = e.slice(a, o).reduce(Nt, 0);
|
|
923
|
+
return n % $ !== 0 && (s -= t.slice(a * $, n).reduce(Nt, 0)), r % $ !== 0 && r !== i && (s -= t.slice(r, o * $).reduce(Nt, 0)), s;
|
|
931
924
|
}
|
|
932
|
-
var
|
|
925
|
+
var Lt = {
|
|
933
926
|
virtualScrollSliceSize: {
|
|
934
927
|
type: [Number, String],
|
|
935
928
|
default: 10
|
|
@@ -956,47 +949,47 @@ var Ot = {
|
|
|
956
949
|
},
|
|
957
950
|
tableColspan: [Number, String]
|
|
958
951
|
};
|
|
959
|
-
Object.keys(
|
|
960
|
-
var
|
|
952
|
+
Object.keys(Lt);
|
|
953
|
+
var Rt = {
|
|
961
954
|
virtualScrollHorizontal: Boolean,
|
|
962
955
|
onVirtualScroll: Function,
|
|
963
|
-
...
|
|
956
|
+
...Lt
|
|
964
957
|
};
|
|
965
|
-
function
|
|
958
|
+
function zt({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrollEl: n, virtualScrollItemSizeComputed: r }) {
|
|
966
959
|
let { props: i, emit: a, proxy: o } = Te(), { $q: s } = o, c, l, u, d = [], f, p = q(0), m = q(0), h = q({}), g = q(null), _ = q(null), v = q(null), y = q({
|
|
967
960
|
from: 0,
|
|
968
961
|
to: 0
|
|
969
962
|
}), b = H(() => i.tableColspan === void 0 ? 100 : i.tableColspan);
|
|
970
963
|
r === void 0 && (r = H(() => i.virtualScrollItemSize));
|
|
971
|
-
let x = H(() => r.value + ";" + i.virtualScrollHorizontal);
|
|
972
|
-
J(
|
|
964
|
+
let x = H(() => r.value + ";" + i.virtualScrollHorizontal), S = H(() => x.value + ";" + i.virtualScrollSliceRatioBefore + ";" + i.virtualScrollSliceRatioAfter);
|
|
965
|
+
J(S, () => {
|
|
973
966
|
O();
|
|
974
|
-
}), J(x,
|
|
975
|
-
function
|
|
967
|
+
}), J(x, C);
|
|
968
|
+
function C() {
|
|
976
969
|
D(l, !0);
|
|
977
970
|
}
|
|
978
|
-
function
|
|
971
|
+
function ee(e) {
|
|
979
972
|
D(e === void 0 ? l : e);
|
|
980
973
|
}
|
|
981
974
|
function w(r, a) {
|
|
982
975
|
let o = t();
|
|
983
976
|
if (o == null || o.nodeType === 8) return;
|
|
984
|
-
let c =
|
|
985
|
-
u !== c.scrollViewSize && O(c.scrollViewSize), E(o, c, Math.min(e.value - 1, Math.max(0,
|
|
977
|
+
let c = Pt(o, n(), g.value, _.value, i.virtualScrollHorizontal, s.lang.rtl, i.virtualScrollStickySizeStart, i.virtualScrollStickySizeEnd);
|
|
978
|
+
u !== c.scrollViewSize && O(c.scrollViewSize), E(o, c, Math.min(e.value - 1, Math.max(0, parseInt(r, 10) || 0)), 0, At.indexOf(a) === -1 ? l !== -1 && r > l ? "end" : "start" : a);
|
|
986
979
|
}
|
|
987
980
|
function T() {
|
|
988
981
|
let r = t();
|
|
989
982
|
if (r == null || r.nodeType === 8) return;
|
|
990
|
-
let a =
|
|
983
|
+
let a = Pt(r, n(), g.value, _.value, i.virtualScrollHorizontal, s.lang.rtl, i.virtualScrollStickySizeStart, i.virtualScrollStickySizeEnd), o = e.value - 1, l = a.scrollMaxSize - a.offsetStart - a.offsetEnd - m.value;
|
|
991
984
|
if (c === a.scrollStart) return;
|
|
992
985
|
if (a.scrollMaxSize <= 0) {
|
|
993
986
|
E(r, a, 0, 0);
|
|
994
987
|
return;
|
|
995
988
|
}
|
|
996
|
-
u !== a.scrollViewSize && O(a.scrollViewSize),
|
|
989
|
+
u !== a.scrollViewSize && O(a.scrollViewSize), te(y.value.from);
|
|
997
990
|
let h = Math.floor(a.scrollMaxSize - Math.max(a.scrollViewSize, a.offsetEnd) - Math.min(f[o], a.scrollViewSize / 2));
|
|
998
991
|
if (h > 0 && Math.ceil(a.scrollStart) >= h) {
|
|
999
|
-
E(r, a, o, a.scrollMaxSize - a.offsetEnd - d.reduce(
|
|
992
|
+
E(r, a, o, a.scrollMaxSize - a.offsetEnd - d.reduce(Nt, 0));
|
|
1000
993
|
return;
|
|
1001
994
|
}
|
|
1002
995
|
let v = 0, b = a.scrollStart - a.offsetStart, x = b;
|
|
@@ -1006,57 +999,57 @@ function At({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
1006
999
|
E(r, a, v, x);
|
|
1007
1000
|
}
|
|
1008
1001
|
function E(t, n, r, a, o) {
|
|
1009
|
-
let l = typeof o == "string" && o.
|
|
1002
|
+
let l = typeof o == "string" && o.indexOf("-force") !== -1, u = l === !0 ? o.replace("-force", "") : o, g = u === void 0 ? "start" : u, _ = Math.max(0, r - h.value[g]), b = _ + h.value.total;
|
|
1010
1003
|
b > e.value && (b = e.value, _ = Math.max(0, b - h.value.total)), c = n.scrollStart;
|
|
1011
1004
|
let x = _ !== y.value.from || b !== y.value.to;
|
|
1012
|
-
if (
|
|
1013
|
-
|
|
1005
|
+
if (x === !1 && u === void 0) {
|
|
1006
|
+
re(r);
|
|
1014
1007
|
return;
|
|
1015
1008
|
}
|
|
1016
1009
|
let { activeElement: S } = document, C = v.value;
|
|
1017
|
-
x && C !== null && C !== S && C.contains(S) && (C.addEventListener("focusout",
|
|
1018
|
-
C?.removeEventListener("focusout",
|
|
1019
|
-
}
|
|
1020
|
-
let
|
|
1021
|
-
if (x) {
|
|
1010
|
+
x === !0 && C !== null && C !== S && C.contains(S) === !0 && (C.addEventListener("focusout", ne), setTimeout(() => {
|
|
1011
|
+
C?.removeEventListener("focusout", ne);
|
|
1012
|
+
})), Mt(C, r - _);
|
|
1013
|
+
let ee = u === void 0 ? 0 : f.slice(_, r).reduce(Nt, 0);
|
|
1014
|
+
if (x === !0) {
|
|
1022
1015
|
let t = b >= y.value.from && _ <= y.value.to ? y.value.to : b;
|
|
1023
1016
|
y.value = {
|
|
1024
1017
|
from: _,
|
|
1025
1018
|
to: t
|
|
1026
|
-
}, p.value =
|
|
1019
|
+
}, p.value = It(d, f, 0, _), m.value = It(d, f, b, e.value), requestAnimationFrame(() => {
|
|
1027
1020
|
y.value.to !== b && c === n.scrollStart && (y.value = {
|
|
1028
1021
|
from: y.value.from,
|
|
1029
1022
|
to: b
|
|
1030
|
-
}, m.value =
|
|
1023
|
+
}, m.value = It(d, f, b, e.value));
|
|
1031
1024
|
});
|
|
1032
1025
|
}
|
|
1033
1026
|
requestAnimationFrame(() => {
|
|
1034
1027
|
if (c !== n.scrollStart) return;
|
|
1035
|
-
x &&
|
|
1036
|
-
let e = f.slice(_, r).reduce(
|
|
1028
|
+
x === !0 && te(_);
|
|
1029
|
+
let e = f.slice(_, r).reduce(Nt, 0), o = e + n.offsetStart + p.value, d = o + f[r], m = o + a;
|
|
1037
1030
|
if (u !== void 0) {
|
|
1038
|
-
let t = e -
|
|
1039
|
-
m =
|
|
1031
|
+
let t = e - ee, i = n.scrollStart + t;
|
|
1032
|
+
m = l !== !0 && i < o && d < i + n.scrollViewSize ? i : u === "end" ? d - n.scrollViewSize : o - (u === "start" ? 0 : Math.round((n.scrollViewSize - f[r]) / 2));
|
|
1040
1033
|
}
|
|
1041
|
-
c = m,
|
|
1034
|
+
c = m, Ft(t, m, i.virtualScrollHorizontal, s.lang.rtl), re(r);
|
|
1042
1035
|
});
|
|
1043
1036
|
}
|
|
1044
|
-
function
|
|
1037
|
+
function te(e) {
|
|
1045
1038
|
let t = v.value;
|
|
1046
1039
|
if (t) {
|
|
1047
|
-
let n =
|
|
1040
|
+
let n = jt.call(t.children, (e) => e.classList && e.classList.contains("q-virtual-scroll--skip") === !1), r = n.length, a = i.virtualScrollHorizontal === !0 ? (e) => e.getBoundingClientRect().width : (e) => e.offsetHeight, o = e, s, c;
|
|
1048
1041
|
for (let e = 0; e < r;) {
|
|
1049
|
-
for (s = a(n[e]), e++; e < r && n[e].classList.contains("q-virtual-scroll--with-prev");) s += a(n[e]), e++;
|
|
1042
|
+
for (s = a(n[e]), e++; e < r && n[e].classList.contains("q-virtual-scroll--with-prev") === !0;) s += a(n[e]), e++;
|
|
1050
1043
|
c = s - f[o], c !== 0 && (f[o] += c, d[Math.floor(o / $)] += c), o++;
|
|
1051
1044
|
}
|
|
1052
1045
|
}
|
|
1053
1046
|
}
|
|
1054
|
-
function
|
|
1047
|
+
function ne() {
|
|
1055
1048
|
v.value?.focus();
|
|
1056
1049
|
}
|
|
1057
1050
|
function D(t, n) {
|
|
1058
|
-
let i =
|
|
1059
|
-
(n ||
|
|
1051
|
+
let i = 1 * r.value;
|
|
1052
|
+
(n === !0 || Array.isArray(f) === !1) && (f = []);
|
|
1060
1053
|
let a = f.length;
|
|
1061
1054
|
f.length = e.value;
|
|
1062
1055
|
for (let t = e.value - 1; t >= a; t--) f[t] = i;
|
|
@@ -1067,17 +1060,17 @@ function At({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
1067
1060
|
for (let e = t * $; e < r; e++) n += f[e];
|
|
1068
1061
|
d.push(n);
|
|
1069
1062
|
}
|
|
1070
|
-
l = -1, c = void 0, p.value =
|
|
1063
|
+
l = -1, c = void 0, p.value = It(d, f, 0, y.value.from), m.value = It(d, f, y.value.to, e.value), t >= 0 ? (te(y.value.from), W(() => {
|
|
1071
1064
|
w(t);
|
|
1072
1065
|
})) : A();
|
|
1073
1066
|
}
|
|
1074
1067
|
function O(e) {
|
|
1075
1068
|
if (e === void 0 && typeof window < "u") {
|
|
1076
1069
|
let r = t();
|
|
1077
|
-
r != null && r.nodeType !== 8 && (e =
|
|
1070
|
+
r != null && r.nodeType !== 8 && (e = Pt(r, n(), g.value, _.value, i.virtualScrollHorizontal, s.lang.rtl, i.virtualScrollStickySizeStart, i.virtualScrollStickySizeEnd).scrollViewSize);
|
|
1078
1071
|
}
|
|
1079
1072
|
u = e;
|
|
1080
|
-
let a =
|
|
1073
|
+
let a = parseFloat(i.virtualScrollSliceRatioBefore) || 0, o = parseFloat(i.virtualScrollSliceRatioAfter) || 0, c = 1 + a + o, l = e === void 0 || e <= 0 ? 1 : Math.ceil(e / r.value), d = Math.max(1, l, Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / c));
|
|
1081
1074
|
h.value = {
|
|
1082
1075
|
total: Math.ceil(d * c),
|
|
1083
1076
|
start: Math.ceil(d * a),
|
|
@@ -1086,8 +1079,8 @@ function At({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
1086
1079
|
view: l
|
|
1087
1080
|
};
|
|
1088
1081
|
}
|
|
1089
|
-
function
|
|
1090
|
-
let n = i.virtualScrollHorizontal ? "width" : "height", a = { ["--q-virtual-scroll-item-" + n]: r.value + "px" };
|
|
1082
|
+
function k(e, t) {
|
|
1083
|
+
let n = i.virtualScrollHorizontal === !0 ? "width" : "height", a = { ["--q-virtual-scroll-item-" + n]: r.value + "px" };
|
|
1091
1084
|
return [
|
|
1092
1085
|
e === "tbody" ? U(e, {
|
|
1093
1086
|
class: "q-virtual-scroll__padding",
|
|
@@ -1135,7 +1128,7 @@ function At({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
1135
1128
|
})
|
|
1136
1129
|
];
|
|
1137
1130
|
}
|
|
1138
|
-
function
|
|
1131
|
+
function re(e) {
|
|
1139
1132
|
l !== e && (i.onVirtualScroll !== void 0 && a("virtualScroll", {
|
|
1140
1133
|
index: e,
|
|
1141
1134
|
from: y.value.from,
|
|
@@ -1145,56 +1138,56 @@ function At({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
1145
1138
|
}), l = e);
|
|
1146
1139
|
}
|
|
1147
1140
|
O();
|
|
1148
|
-
let A =
|
|
1141
|
+
let A = ie(T, s.platform.is.ios === !0 ? 120 : 35);
|
|
1149
1142
|
G(() => {
|
|
1150
1143
|
O();
|
|
1151
1144
|
});
|
|
1152
|
-
let
|
|
1145
|
+
let ae = !1;
|
|
1153
1146
|
return K(() => {
|
|
1154
|
-
|
|
1147
|
+
ae = !0;
|
|
1155
1148
|
}), Ee(() => {
|
|
1156
|
-
if (!
|
|
1149
|
+
if (ae !== !0) return;
|
|
1157
1150
|
let e = t();
|
|
1158
|
-
c !== void 0 && e != null && e.nodeType !== 8 ?
|
|
1151
|
+
c !== void 0 && e != null && e.nodeType !== 8 ? Ft(e, c, i.virtualScrollHorizontal, s.lang.rtl) : w(l);
|
|
1159
1152
|
}), De(() => {
|
|
1160
1153
|
A.cancel();
|
|
1161
1154
|
}), Object.assign(o, {
|
|
1162
1155
|
scrollTo: w,
|
|
1163
|
-
reset:
|
|
1164
|
-
refresh:
|
|
1156
|
+
reset: C,
|
|
1157
|
+
refresh: ee
|
|
1165
1158
|
}), {
|
|
1166
1159
|
virtualScrollSliceRange: y,
|
|
1167
1160
|
virtualScrollSliceSizeComputed: h,
|
|
1168
1161
|
setVirtualScrollSize: O,
|
|
1169
1162
|
onVirtualScrollEvt: A,
|
|
1170
1163
|
localResetVirtualScroll: D,
|
|
1171
|
-
padVirtualScroll:
|
|
1164
|
+
padVirtualScroll: k,
|
|
1172
1165
|
scrollTo: w,
|
|
1173
|
-
reset:
|
|
1174
|
-
refresh:
|
|
1166
|
+
reset: C,
|
|
1167
|
+
refresh: ee
|
|
1175
1168
|
};
|
|
1176
1169
|
}
|
|
1177
1170
|
//#endregion
|
|
1178
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
1179
|
-
function
|
|
1171
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/is/is.js
|
|
1172
|
+
function Bt(e, t) {
|
|
1180
1173
|
if (e === t) return !0;
|
|
1181
1174
|
if (e !== null && t !== null && typeof e == "object" && typeof t == "object") {
|
|
1182
1175
|
if (e.constructor !== t.constructor) return !1;
|
|
1183
1176
|
let n, r;
|
|
1184
1177
|
if (e.constructor === Array) {
|
|
1185
1178
|
if (n = e.length, n !== t.length) return !1;
|
|
1186
|
-
for (r = n; r-- !== 0;) if (
|
|
1179
|
+
for (r = n; r-- !== 0;) if (Bt(e[r], t[r]) !== !0) return !1;
|
|
1187
1180
|
return !0;
|
|
1188
1181
|
}
|
|
1189
1182
|
if (e.constructor === Map) {
|
|
1190
1183
|
if (e.size !== t.size) return !1;
|
|
1191
1184
|
let n = e.entries();
|
|
1192
|
-
for (r = n.next();
|
|
1193
|
-
if (
|
|
1185
|
+
for (r = n.next(); r.done !== !0;) {
|
|
1186
|
+
if (t.has(r.value[0]) !== !0) return !1;
|
|
1194
1187
|
r = n.next();
|
|
1195
1188
|
}
|
|
1196
|
-
for (n = e.entries(), r = n.next();
|
|
1197
|
-
if (
|
|
1189
|
+
for (n = e.entries(), r = n.next(); r.done !== !0;) {
|
|
1190
|
+
if (Bt(r.value[1], t.get(r.value[0])) !== !0) return !1;
|
|
1198
1191
|
r = n.next();
|
|
1199
1192
|
}
|
|
1200
1193
|
return !0;
|
|
@@ -1202,8 +1195,8 @@ function jt(e, t) {
|
|
|
1202
1195
|
if (e.constructor === Set) {
|
|
1203
1196
|
if (e.size !== t.size) return !1;
|
|
1204
1197
|
let n = e.entries();
|
|
1205
|
-
for (r = n.next();
|
|
1206
|
-
if (
|
|
1198
|
+
for (r = n.next(); r.done !== !0;) {
|
|
1199
|
+
if (t.has(r.value[0]) !== !0) return !1;
|
|
1207
1200
|
r = n.next();
|
|
1208
1201
|
}
|
|
1209
1202
|
return !0;
|
|
@@ -1220,40 +1213,38 @@ function jt(e, t) {
|
|
|
1220
1213
|
if (n = i.length, n !== Object.keys(t).filter((e) => t[e] !== void 0).length) return !1;
|
|
1221
1214
|
for (r = n; r-- !== 0;) {
|
|
1222
1215
|
let n = i[r];
|
|
1223
|
-
if (
|
|
1216
|
+
if (Bt(e[n], t[n]) !== !0) return !1;
|
|
1224
1217
|
}
|
|
1225
1218
|
return !0;
|
|
1226
1219
|
}
|
|
1227
1220
|
return e !== e && t !== t;
|
|
1228
1221
|
}
|
|
1229
1222
|
//#endregion
|
|
1230
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
1231
|
-
function
|
|
1223
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/utils/format/format.js
|
|
1224
|
+
function Vt(e, t, n) {
|
|
1232
1225
|
if (n <= t) return t;
|
|
1233
1226
|
let r = n - t + 1, i = t + (e - t) % r;
|
|
1234
1227
|
return i < t && (i = r + i), i === 0 ? 0 : i;
|
|
1235
1228
|
}
|
|
1236
1229
|
//#endregion
|
|
1237
|
-
//#region node_modules/.pnpm/quasar@2.
|
|
1238
|
-
var
|
|
1230
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.18.1/node_modules/quasar/src/components/select/QSelect.js
|
|
1231
|
+
var Ht = (e) => [
|
|
1239
1232
|
"add",
|
|
1240
1233
|
"add-unique",
|
|
1241
1234
|
"toggle"
|
|
1242
|
-
].includes(e),
|
|
1243
|
-
function
|
|
1235
|
+
].includes(e), Ut = ".*+?^${}()|[]\\", Wt = Object.keys(P);
|
|
1236
|
+
function Gt(e, t) {
|
|
1244
1237
|
if (typeof e == "function") return e;
|
|
1245
1238
|
let n = e === void 0 ? t : e;
|
|
1246
1239
|
return (e) => typeof e == "object" && e && n in e ? e[n] : e;
|
|
1247
1240
|
}
|
|
1248
|
-
|
|
1249
|
-
//#region lib/utils/defaults/qSelect.js
|
|
1250
|
-
V(C({
|
|
1241
|
+
var Kt = x({
|
|
1251
1242
|
name: "QSelect",
|
|
1252
1243
|
inheritAttrs: !1,
|
|
1253
1244
|
props: {
|
|
1254
|
-
...
|
|
1255
|
-
...
|
|
1256
|
-
...
|
|
1245
|
+
...Rt,
|
|
1246
|
+
...le,
|
|
1247
|
+
...P,
|
|
1257
1248
|
modelValue: { required: !0 },
|
|
1258
1249
|
multiple: Boolean,
|
|
1259
1250
|
displayValue: [String, Number],
|
|
@@ -1293,7 +1284,7 @@ V(C({
|
|
|
1293
1284
|
useChips: Boolean,
|
|
1294
1285
|
newValueMode: {
|
|
1295
1286
|
type: String,
|
|
1296
|
-
validator:
|
|
1287
|
+
validator: Ht
|
|
1297
1288
|
},
|
|
1298
1289
|
mapOptions: Boolean,
|
|
1299
1290
|
emitValue: Boolean,
|
|
@@ -1329,12 +1320,12 @@ V(C({
|
|
|
1329
1320
|
].includes(e),
|
|
1330
1321
|
default: "default"
|
|
1331
1322
|
},
|
|
1332
|
-
virtualScrollItemSize:
|
|
1323
|
+
virtualScrollItemSize: Rt.virtualScrollItemSize.type,
|
|
1333
1324
|
onNewValue: Function,
|
|
1334
1325
|
onFilter: Function
|
|
1335
1326
|
},
|
|
1336
1327
|
emits: [
|
|
1337
|
-
...
|
|
1328
|
+
...O,
|
|
1338
1329
|
"add",
|
|
1339
1330
|
"remove",
|
|
1340
1331
|
"inputValue",
|
|
@@ -1346,55 +1337,55 @@ V(C({
|
|
|
1346
1337
|
"filterAbort"
|
|
1347
1338
|
],
|
|
1348
1339
|
setup(t, { slots: n, emit: r }) {
|
|
1349
|
-
let { proxy: i } = Te(), { $q: a } = i, o = q(!1), s = q(!1), c = q(-1), l = q(""), u = q(!1), d = q(!1), f = null, p = null, m, h, g,
|
|
1350
|
-
virtualScrollLength:
|
|
1351
|
-
getVirtualScrollTarget:
|
|
1340
|
+
let { proxy: i } = Te(), { $q: a } = i, o = q(!1), s = q(!1), c = q(-1), l = q(""), u = q(!1), d = q(!1), f = null, p = null, m, h, g, v = null, y, x, S, C, ee = q(null), w = q(null), T = q(null), E = q(null), ne = q(null), D = te(t), O = oe(nt), A = H(() => Array.isArray(t.options) ? t.options.length : 0), { virtualScrollSliceRange: ie, virtualScrollSliceSizeComputed: ae, localResetVirtualScroll: M, padVirtualScroll: se, onVirtualScrollEvt: N, scrollTo: P, setVirtualScrollSize: F } = zt({
|
|
1341
|
+
virtualScrollLength: A,
|
|
1342
|
+
getVirtualScrollTarget: Qe,
|
|
1352
1343
|
getVirtualScrollEl: Ze,
|
|
1353
|
-
virtualScrollItemSizeComputed: H(() => t.virtualScrollItemSize === void 0 ? t.optionsDense ? 24 : 48 : t.virtualScrollItemSize)
|
|
1354
|
-
}),
|
|
1355
|
-
let e = t.mapOptions &&
|
|
1356
|
-
if (t.mapOptions && Array.isArray(t.options)) {
|
|
1357
|
-
let r = t.mapOptions && m !== void 0 ? m : [], i = n.map((e) =>
|
|
1358
|
-
return t.modelValue === null && e ? i.filter((e) => e !== null) : i;
|
|
1344
|
+
virtualScrollItemSizeComputed: H(() => t.virtualScrollItemSize === void 0 ? t.optionsDense === !0 ? 24 : 48 : t.virtualScrollItemSize)
|
|
1345
|
+
}), I = ge(), L = H(() => {
|
|
1346
|
+
let e = t.mapOptions === !0 && t.multiple !== !0, n = t.modelValue !== void 0 && (t.modelValue !== null || e === !0) ? t.multiple === !0 && Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue] : [];
|
|
1347
|
+
if (t.mapOptions === !0 && Array.isArray(t.options) === !0) {
|
|
1348
|
+
let r = t.mapOptions === !0 && m !== void 0 ? m : [], i = n.map((e) => He(e, r));
|
|
1349
|
+
return t.modelValue === null && e === !0 ? i.filter((e) => e !== null) : i;
|
|
1359
1350
|
}
|
|
1360
1351
|
return n;
|
|
1361
|
-
}),
|
|
1352
|
+
}), ce = H(() => {
|
|
1362
1353
|
let e = {};
|
|
1363
|
-
return
|
|
1354
|
+
return Wt.forEach((n) => {
|
|
1364
1355
|
let r = t[n];
|
|
1365
1356
|
r !== void 0 && (e[n] = r);
|
|
1366
1357
|
}), e;
|
|
1367
|
-
}),
|
|
1358
|
+
}), le = H(() => t.optionsDark === null ? I.isDark.value : t.optionsDark), R = H(() => pe(L.value)), de = H(() => {
|
|
1368
1359
|
let e = "q-field__input q-placeholder col";
|
|
1369
|
-
return t.hideSelected ||
|
|
1370
|
-
}),
|
|
1360
|
+
return t.hideSelected === !0 || L.value.length === 0 ? [e, t.inputClass] : (e += " q-field__input--padding", t.inputClass === void 0 ? e : [e, t.inputClass]);
|
|
1361
|
+
}), fe = H(() => (t.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (t.popupContentClass ? " " + t.popupContentClass : "")), z = H(() => A.value === 0), me = H(() => L.value.map((e) => K.value(e)).join(", ")), he = H(() => t.displayValue === void 0 ? me.value : t.displayValue), _e = H(() => t.optionsHtml === !0 ? () => !0 : (e) => e?.html === !0), ve = H(() => t.displayValueHtml === !0 || t.displayValue === void 0 && (t.optionsHtml === !0 || L.value.some(_e.value))), V = H(() => I.focused.value === !0 ? t.tabindex : -1), ye = H(() => {
|
|
1371
1362
|
let e = {
|
|
1372
1363
|
tabindex: t.tabindex,
|
|
1373
1364
|
role: "combobox",
|
|
1374
1365
|
"aria-label": t.label,
|
|
1375
|
-
"aria-readonly": t.readonly ? "true" : "false",
|
|
1376
|
-
"aria-autocomplete": t.useInput ? "list" : "none",
|
|
1377
|
-
"aria-expanded": o.value ? "true" : "false",
|
|
1378
|
-
"aria-controls": `${
|
|
1366
|
+
"aria-readonly": t.readonly === !0 ? "true" : "false",
|
|
1367
|
+
"aria-autocomplete": t.useInput === !0 ? "list" : "none",
|
|
1368
|
+
"aria-expanded": o.value === !0 ? "true" : "false",
|
|
1369
|
+
"aria-controls": `${I.targetUid.value}_lb`
|
|
1379
1370
|
};
|
|
1380
|
-
return c.value >= 0 && (e["aria-activedescendant"] = `${
|
|
1381
|
-
}),
|
|
1382
|
-
id: `${
|
|
1371
|
+
return c.value >= 0 && (e["aria-activedescendant"] = `${I.targetUid.value}_${c.value}`), e;
|
|
1372
|
+
}), be = H(() => ({
|
|
1373
|
+
id: `${I.targetUid.value}_lb`,
|
|
1383
1374
|
role: "listbox",
|
|
1384
|
-
"aria-multiselectable": t.multiple ? "true" : "false"
|
|
1385
|
-
})),
|
|
1375
|
+
"aria-multiselectable": t.multiple === !0 ? "true" : "false"
|
|
1376
|
+
})), xe = H(() => L.value.map((e, t) => ({
|
|
1386
1377
|
index: t,
|
|
1387
1378
|
opt: e,
|
|
1388
1379
|
html: _e.value(e),
|
|
1389
1380
|
selected: !0,
|
|
1390
|
-
removeAtIndex:
|
|
1391
|
-
toggleOption:
|
|
1392
|
-
tabindex:
|
|
1393
|
-
}))),
|
|
1394
|
-
if (
|
|
1381
|
+
removeAtIndex: Le,
|
|
1382
|
+
toggleOption: ze,
|
|
1383
|
+
tabindex: V.value
|
|
1384
|
+
}))), Se = H(() => {
|
|
1385
|
+
if (A.value === 0) return [];
|
|
1395
1386
|
let { from: e, to: n } = ie.value;
|
|
1396
1387
|
return t.options.slice(e, n).map((n, r) => {
|
|
1397
|
-
let i = je.value(n) === !0, s =
|
|
1388
|
+
let i = je.value(n) === !0, s = Ue(n) === !0, l = e + r, u = {
|
|
1398
1389
|
clickable: !0,
|
|
1399
1390
|
active: s,
|
|
1400
1391
|
activeClass: Ee.value,
|
|
@@ -1403,16 +1394,16 @@ V(C({
|
|
|
1403
1394
|
disable: i,
|
|
1404
1395
|
tabindex: -1,
|
|
1405
1396
|
dense: t.optionsDense,
|
|
1406
|
-
dark:
|
|
1397
|
+
dark: le.value,
|
|
1407
1398
|
role: "option",
|
|
1408
|
-
"aria-selected": s ? "true" : "false",
|
|
1409
|
-
id: `${
|
|
1399
|
+
"aria-selected": s === !0 ? "true" : "false",
|
|
1400
|
+
id: `${I.targetUid.value}_${l}`,
|
|
1410
1401
|
onClick: () => {
|
|
1411
|
-
|
|
1402
|
+
ze(n);
|
|
1412
1403
|
}
|
|
1413
1404
|
};
|
|
1414
|
-
return i
|
|
1415
|
-
o.value &&
|
|
1405
|
+
return i !== !0 && (c.value === l && (u.focused = !0), a.platform.is.desktop === !0 && (u.onMousemove = () => {
|
|
1406
|
+
o.value === !0 && Be(l);
|
|
1416
1407
|
})), {
|
|
1417
1408
|
index: l,
|
|
1418
1409
|
opt: n,
|
|
@@ -1420,86 +1411,88 @@ V(C({
|
|
|
1420
1411
|
label: K.value(n),
|
|
1421
1412
|
selected: u.active,
|
|
1422
1413
|
focused: u.focused,
|
|
1423
|
-
toggleOption:
|
|
1424
|
-
setOptionIndex:
|
|
1414
|
+
toggleOption: ze,
|
|
1415
|
+
setOptionIndex: Be,
|
|
1425
1416
|
itemProps: u
|
|
1426
1417
|
};
|
|
1427
1418
|
});
|
|
1428
|
-
}),
|
|
1419
|
+
}), Ce = H(() => t.dropdownIcon === void 0 ? a.iconSet.arrow.dropdown : t.dropdownIcon), we = H(() => t.optionsCover === !1 && t.outlined !== !0 && t.standout !== !0 && t.borderless !== !0 && t.rounded !== !0), Ee = H(() => t.optionsSelectedClass === void 0 ? t.color === void 0 ? "" : `text-${t.color}` : t.optionsSelectedClass), G = H(() => Gt(t.optionValue, "value")), K = H(() => Gt(t.optionLabel, "label")), je = H(() => Gt(t.optionDisable, "disable")), Me = H(() => L.value.map(G.value)), Ne = H(() => {
|
|
1429
1420
|
let e = {
|
|
1430
|
-
onInput:
|
|
1421
|
+
onInput: nt,
|
|
1431
1422
|
onChange: O,
|
|
1432
1423
|
onKeydown: Xe,
|
|
1433
1424
|
onKeyup: Je,
|
|
1434
1425
|
onKeypress: Ye,
|
|
1435
|
-
onFocus:
|
|
1426
|
+
onFocus: We,
|
|
1436
1427
|
onClick(e) {
|
|
1437
|
-
h &&
|
|
1428
|
+
h === !0 && B(e);
|
|
1438
1429
|
}
|
|
1439
1430
|
};
|
|
1440
1431
|
return e.onCompositionstart = e.onCompositionupdate = e.onCompositionend = O, e;
|
|
1441
1432
|
});
|
|
1442
|
-
J(
|
|
1443
|
-
m = e, t.useInput && t.fillInput &&
|
|
1444
|
-
}, { immediate: !0 }), J(() => t.fillInput,
|
|
1433
|
+
J(L, (e) => {
|
|
1434
|
+
m = e, t.useInput === !0 && t.fillInput === !0 && t.multiple !== !0 && I.innerLoading.value !== !0 && (s.value !== !0 && o.value !== !0 || R.value !== !0) && (g !== !0 && _t(), (s.value === !0 || o.value === !0) && ot(""));
|
|
1435
|
+
}, { immediate: !0 }), J(() => t.fillInput, _t), J(o, Q), J(A, vt);
|
|
1445
1436
|
function Pe(e) {
|
|
1446
|
-
return t.emitValue ? G.value(e) : e;
|
|
1437
|
+
return t.emitValue === !0 ? G.value(e) : e;
|
|
1447
1438
|
}
|
|
1448
1439
|
function Fe(e) {
|
|
1449
|
-
if (e !== -1 && e <
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1440
|
+
if (e !== -1 && e < L.value.length) {
|
|
1441
|
+
if (t.multiple === !0) {
|
|
1442
|
+
let n = t.modelValue.slice();
|
|
1443
|
+
r("remove", {
|
|
1444
|
+
index: e,
|
|
1445
|
+
value: n.splice(e, 1)[0]
|
|
1446
|
+
}), r("update:modelValue", n);
|
|
1447
|
+
} else r("update:modelValue", null);
|
|
1448
|
+
}
|
|
1456
1449
|
}
|
|
1457
|
-
function
|
|
1458
|
-
Fe(e),
|
|
1450
|
+
function Le(e) {
|
|
1451
|
+
Fe(e), I.focus();
|
|
1459
1452
|
}
|
|
1460
1453
|
function Re(e, n) {
|
|
1461
1454
|
let i = Pe(e);
|
|
1462
|
-
if (
|
|
1463
|
-
t.fillInput &&
|
|
1455
|
+
if (t.multiple !== !0) {
|
|
1456
|
+
t.fillInput === !0 && it(K.value(e), !0, !0), r("update:modelValue", i);
|
|
1464
1457
|
return;
|
|
1465
1458
|
}
|
|
1466
|
-
if (
|
|
1459
|
+
if (L.value.length === 0) {
|
|
1467
1460
|
r("add", {
|
|
1468
1461
|
index: 0,
|
|
1469
1462
|
value: i
|
|
1470
|
-
}), r("update:modelValue", t.multiple ? [i] : i);
|
|
1463
|
+
}), r("update:modelValue", t.multiple === !0 ? [i] : i);
|
|
1471
1464
|
return;
|
|
1472
1465
|
}
|
|
1473
|
-
if (n &&
|
|
1474
|
-
let a =
|
|
1466
|
+
if (n === !0 && Ue(e) === !0 || t.maxValues !== void 0 && t.modelValue.length >= t.maxValues) return;
|
|
1467
|
+
let a = t.modelValue.slice();
|
|
1475
1468
|
r("add", {
|
|
1476
1469
|
index: a.length,
|
|
1477
1470
|
value: i
|
|
1478
1471
|
}), a.push(i), r("update:modelValue", a);
|
|
1479
1472
|
}
|
|
1480
|
-
function
|
|
1481
|
-
if (
|
|
1473
|
+
function ze(e, n) {
|
|
1474
|
+
if (I.editable.value !== !0 || e === void 0 || je.value(e) === !0) return;
|
|
1482
1475
|
let i = G.value(e);
|
|
1483
|
-
if (
|
|
1484
|
-
n
|
|
1476
|
+
if (t.multiple !== !0) {
|
|
1477
|
+
n !== !0 && (it(t.fillInput === !0 ? K.value(e) : "", !0, !0), Z()), w.value?.focus(), (L.value.length === 0 || Bt(G.value(L.value[0]), i) !== !0) && r("update:modelValue", t.emitValue === !0 ? i : e);
|
|
1485
1478
|
return;
|
|
1486
1479
|
}
|
|
1487
|
-
if ((
|
|
1488
|
-
let n = t.emitValue ? i : e;
|
|
1480
|
+
if ((h !== !0 || u.value === !0) && I.focus(), We(), L.value.length === 0) {
|
|
1481
|
+
let n = t.emitValue === !0 ? i : e;
|
|
1489
1482
|
r("add", {
|
|
1490
1483
|
index: 0,
|
|
1491
1484
|
value: n
|
|
1492
|
-
}), r("update:modelValue", t.multiple ? [n] : n);
|
|
1485
|
+
}), r("update:modelValue", t.multiple === !0 ? [n] : n);
|
|
1493
1486
|
return;
|
|
1494
1487
|
}
|
|
1495
|
-
let a =
|
|
1488
|
+
let a = t.modelValue.slice(), o = Me.value.findIndex((e) => Bt(e, i));
|
|
1496
1489
|
if (o !== -1) r("remove", {
|
|
1497
1490
|
index: o,
|
|
1498
1491
|
value: a.splice(o, 1)[0]
|
|
1499
1492
|
});
|
|
1500
1493
|
else {
|
|
1501
1494
|
if (t.maxValues !== void 0 && a.length >= t.maxValues) return;
|
|
1502
|
-
let n = t.emitValue ? i : e;
|
|
1495
|
+
let n = t.emitValue === !0 ? i : e;
|
|
1503
1496
|
r("add", {
|
|
1504
1497
|
index: a.length,
|
|
1505
1498
|
value: n
|
|
@@ -1507,202 +1500,202 @@ V(C({
|
|
|
1507
1500
|
}
|
|
1508
1501
|
r("update:modelValue", a);
|
|
1509
1502
|
}
|
|
1510
|
-
function
|
|
1511
|
-
if (
|
|
1512
|
-
let t = e !== -1 && e <
|
|
1503
|
+
function Be(e) {
|
|
1504
|
+
if (a.platform.is.desktop !== !0) return;
|
|
1505
|
+
let t = e !== -1 && e < A.value ? e : -1;
|
|
1513
1506
|
c.value !== t && (c.value = t);
|
|
1514
1507
|
}
|
|
1515
|
-
function
|
|
1516
|
-
if (o.value) {
|
|
1508
|
+
function Ve(e = 1, n) {
|
|
1509
|
+
if (o.value === !0) {
|
|
1517
1510
|
let r = c.value;
|
|
1518
1511
|
do
|
|
1519
|
-
r =
|
|
1512
|
+
r = Vt(r + e, -1, A.value - 1);
|
|
1520
1513
|
while (r !== -1 && r !== c.value && je.value(t.options[r]) === !0);
|
|
1521
|
-
c.value !== r && (
|
|
1514
|
+
c.value !== r && (Be(r), P(r), n !== !0 && t.useInput === !0 && t.fillInput === !0 && rt(r >= 0 ? K.value(t.options[r]) : y, !0));
|
|
1522
1515
|
}
|
|
1523
1516
|
}
|
|
1524
|
-
function
|
|
1525
|
-
let r = (t) =>
|
|
1517
|
+
function He(e, n) {
|
|
1518
|
+
let r = (t) => Bt(G.value(t), e);
|
|
1526
1519
|
return t.options.find(r) || n.find(r) || e;
|
|
1527
1520
|
}
|
|
1528
|
-
function
|
|
1521
|
+
function Ue(e) {
|
|
1529
1522
|
let t = G.value(e);
|
|
1530
|
-
return Me.value.find((e) =>
|
|
1523
|
+
return Me.value.find((e) => Bt(e, t)) !== void 0;
|
|
1531
1524
|
}
|
|
1532
|
-
function
|
|
1533
|
-
t.useInput && w.value !== null && (e === void 0 || w.value === e.target && e.target.value ===
|
|
1525
|
+
function We(e) {
|
|
1526
|
+
t.useInput === !0 && w.value !== null && (e === void 0 || w.value === e.target && e.target.value === me.value) && w.value.select();
|
|
1534
1527
|
}
|
|
1535
|
-
function
|
|
1536
|
-
e
|
|
1528
|
+
function Y(e) {
|
|
1529
|
+
_(e, 27) === !0 && o.value === !0 && (B(e), Z(), _t()), r("keyup", e);
|
|
1537
1530
|
}
|
|
1538
1531
|
function Je(e) {
|
|
1539
1532
|
let { value: n } = e.target;
|
|
1540
1533
|
if (e.keyCode !== void 0) {
|
|
1541
|
-
|
|
1534
|
+
Y(e);
|
|
1542
1535
|
return;
|
|
1543
1536
|
}
|
|
1544
|
-
if (e.target.value = "", f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null),
|
|
1537
|
+
if (e.target.value = "", f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null), _t(), typeof n == "string" && n.length !== 0) {
|
|
1545
1538
|
let e = n.toLocaleLowerCase(), r = (n) => {
|
|
1546
1539
|
let r = t.options.find((t) => String(n.value(t)).toLocaleLowerCase() === e);
|
|
1547
|
-
return r
|
|
1540
|
+
return r !== void 0 && (L.value.indexOf(r) === -1 ? ze(r) : Z(), !0);
|
|
1548
1541
|
}, i = (e) => {
|
|
1549
|
-
|
|
1542
|
+
r(G) !== !0 && e !== !0 && r(K) !== !0 && ot(n, !0, () => i(!0));
|
|
1550
1543
|
};
|
|
1551
1544
|
i();
|
|
1552
|
-
} else
|
|
1545
|
+
} else I.clearValue(e);
|
|
1553
1546
|
}
|
|
1554
1547
|
function Ye(e) {
|
|
1555
1548
|
r("keypress", e);
|
|
1556
1549
|
}
|
|
1557
|
-
function Xe(
|
|
1558
|
-
if (r("keydown",
|
|
1559
|
-
let
|
|
1560
|
-
if (
|
|
1561
|
-
|
|
1550
|
+
function Xe(n) {
|
|
1551
|
+
if (r("keydown", n), e(n) === !0) return;
|
|
1552
|
+
let i = l.value.length !== 0 && (t.newValueMode !== void 0 || t.onNewValue !== void 0), a = n.shiftKey !== !0 && t.disableTabSelection !== !0 && t.multiple !== !0 && (c.value !== -1 || i === !0);
|
|
1553
|
+
if (n.keyCode === 27) {
|
|
1554
|
+
ue(n);
|
|
1562
1555
|
return;
|
|
1563
1556
|
}
|
|
1564
|
-
if (
|
|
1565
|
-
|
|
1557
|
+
if (n.keyCode === 9 && a === !1) {
|
|
1558
|
+
X();
|
|
1566
1559
|
return;
|
|
1567
1560
|
}
|
|
1568
|
-
if (
|
|
1569
|
-
if (
|
|
1570
|
-
k(
|
|
1561
|
+
if (n.target === void 0 || n.target.id !== I.targetUid.value || I.editable.value !== !0) return;
|
|
1562
|
+
if (n.keyCode === 40 && I.innerLoading.value !== !0 && o.value === !1) {
|
|
1563
|
+
k(n), gt();
|
|
1571
1564
|
return;
|
|
1572
1565
|
}
|
|
1573
|
-
if (
|
|
1574
|
-
t.multiple && Array.isArray(t.modelValue) ? Fe(t.modelValue.length - 1) :
|
|
1566
|
+
if (n.keyCode === 8 && (t.useChips === !0 || t.clearable === !0) && t.hideSelected !== !0 && l.value.length === 0) {
|
|
1567
|
+
t.multiple === !0 && Array.isArray(t.modelValue) === !0 ? Fe(t.modelValue.length - 1) : t.multiple !== !0 && t.modelValue !== null && r("update:modelValue", null);
|
|
1575
1568
|
return;
|
|
1576
1569
|
}
|
|
1577
|
-
(
|
|
1578
|
-
let
|
|
1579
|
-
if ((
|
|
1580
|
-
o.value
|
|
1581
|
-
let
|
|
1582
|
-
|
|
1583
|
-
let i = RegExp("^" +
|
|
1584
|
-
if (r ||
|
|
1585
|
-
|
|
1586
|
-
while (
|
|
1587
|
-
c.value !==
|
|
1588
|
-
|
|
1570
|
+
(n.keyCode === 35 || n.keyCode === 36) && (typeof l.value != "string" || l.value.length === 0) && (k(n), c.value = -1, Ve(n.keyCode === 36 ? 1 : -1, t.multiple)), (n.keyCode === 33 || n.keyCode === 34) && ae.value !== void 0 && (k(n), c.value = Math.max(-1, Math.min(A.value, c.value + (n.keyCode === 33 ? -1 : 1) * ae.value.view)), Ve(n.keyCode === 33 ? 1 : -1, t.multiple)), (n.keyCode === 38 || n.keyCode === 40) && (k(n), Ve(n.keyCode === 38 ? -1 : 1, t.multiple));
|
|
1571
|
+
let s = A.value;
|
|
1572
|
+
if ((S === void 0 || C < Date.now()) && (S = ""), s > 0 && t.useInput !== !0 && n.key !== void 0 && n.key.length === 1 && n.altKey === !1 && n.ctrlKey === !1 && n.metaKey === !1 && (n.keyCode !== 32 || S.length !== 0)) {
|
|
1573
|
+
o.value !== !0 && gt(n);
|
|
1574
|
+
let e = n.key.toLocaleLowerCase(), r = S.length === 1 && S[0] === e;
|
|
1575
|
+
C = Date.now() + 1500, r === !1 && (k(n), S += e);
|
|
1576
|
+
let i = RegExp("^" + S.split("").map((e) => Ut.indexOf(e) === -1 ? e : "\\" + e).join(".*"), "i"), a = c.value;
|
|
1577
|
+
if (r === !0 || a < 0 || i.test(K.value(t.options[a])) !== !0) do
|
|
1578
|
+
a = Vt(a + 1, -1, s - 1);
|
|
1579
|
+
while (a !== c.value && (je.value(t.options[a]) === !0 || i.test(K.value(t.options[a])) !== !0));
|
|
1580
|
+
c.value !== a && W(() => {
|
|
1581
|
+
Be(a), P(a), a >= 0 && t.useInput === !0 && t.fillInput === !0 && rt(K.value(t.options[a]), !0);
|
|
1589
1582
|
});
|
|
1590
1583
|
return;
|
|
1591
1584
|
}
|
|
1592
|
-
if (
|
|
1593
|
-
if (
|
|
1594
|
-
|
|
1585
|
+
if (n.keyCode === 13 || n.keyCode === 32 && t.useInput !== !0 && S === "" || n.keyCode === 9 && a !== !1) {
|
|
1586
|
+
if (n.keyCode !== 9 && k(n), c.value !== -1 && c.value < s) {
|
|
1587
|
+
ze(t.options[c.value]);
|
|
1595
1588
|
return;
|
|
1596
1589
|
}
|
|
1597
|
-
if (
|
|
1590
|
+
if (i === !0) {
|
|
1598
1591
|
let e = (e, n) => {
|
|
1599
1592
|
if (n) {
|
|
1600
|
-
if (
|
|
1593
|
+
if (Ht(n) !== !0) return;
|
|
1601
1594
|
} else n = t.newValueMode;
|
|
1602
|
-
|
|
1595
|
+
it("", t.multiple !== !0, !0), e != null && ((n === "toggle" ? ze : Re)(e, n === "add-unique"), t.multiple !== !0 && (w.value?.focus(), Z()));
|
|
1603
1596
|
};
|
|
1604
|
-
if (t.onNewValue === void 0 ? e(l.value) : r("newValue", l.value, e),
|
|
1597
|
+
if (t.onNewValue === void 0 ? e(l.value) : r("newValue", l.value, e), t.multiple !== !0) return;
|
|
1605
1598
|
}
|
|
1606
|
-
o.value ?
|
|
1599
|
+
o.value === !0 ? X() : I.innerLoading.value !== !0 && gt();
|
|
1607
1600
|
}
|
|
1608
1601
|
}
|
|
1609
1602
|
function Ze() {
|
|
1610
|
-
return h ?
|
|
1603
|
+
return h === !0 ? ne.value : T.value !== null && T.value.contentEl !== null ? T.value.contentEl : void 0;
|
|
1611
1604
|
}
|
|
1612
|
-
function
|
|
1605
|
+
function Qe() {
|
|
1613
1606
|
return Ze();
|
|
1614
1607
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return t.hideSelected ? [] : n["selected-item"] === void 0 ? n.selected === void 0 ? t.useChips ?
|
|
1608
|
+
function $e() {
|
|
1609
|
+
return t.hideSelected === !0 ? [] : n["selected-item"] === void 0 ? n.selected === void 0 ? t.useChips === !0 ? xe.value.map((e, n) => U(Ie, {
|
|
1617
1610
|
key: "option-" + n,
|
|
1618
|
-
removable:
|
|
1611
|
+
removable: I.editable.value === !0 && je.value(e.opt) !== !0,
|
|
1619
1612
|
dense: !0,
|
|
1620
1613
|
textColor: t.color,
|
|
1621
|
-
tabindex:
|
|
1614
|
+
tabindex: V.value,
|
|
1622
1615
|
onRemove() {
|
|
1623
1616
|
e.removeAtIndex(n);
|
|
1624
1617
|
}
|
|
1625
1618
|
}, () => U("span", {
|
|
1626
1619
|
class: "ellipsis",
|
|
1627
|
-
[e.html ? "innerHTML" : "textContent"]: K.value(e.opt)
|
|
1620
|
+
[e.html === !0 ? "innerHTML" : "textContent"]: K.value(e.opt)
|
|
1628
1621
|
}))) : [U("span", {
|
|
1629
1622
|
class: "ellipsis",
|
|
1630
|
-
[ve.value ? "innerHTML" : "textContent"]:
|
|
1631
|
-
})] : [n.selected()
|
|
1623
|
+
[ve.value === !0 ? "innerHTML" : "textContent"]: he.value
|
|
1624
|
+
})] : [].concat(n.selected()) : xe.value.map((e) => n["selected-item"](e)).slice();
|
|
1632
1625
|
}
|
|
1633
|
-
function
|
|
1634
|
-
if (
|
|
1626
|
+
function et() {
|
|
1627
|
+
if (z.value === !0) return n["no-option"] === void 0 ? void 0 : n["no-option"]({ inputValue: l.value });
|
|
1635
1628
|
let e = n.option === void 0 ? (e) => U(Ge, {
|
|
1636
1629
|
key: e.index,
|
|
1637
1630
|
...e.itemProps
|
|
1638
|
-
}, () => U(Ke, () => U(qe, () => U("span", { [e.html ? "innerHTML" : "textContent"]: e.label })))) : n.option, t =
|
|
1639
|
-
return n["before-options"] !== void 0 && (t =
|
|
1631
|
+
}, () => U(Ke, () => U(qe, () => U("span", { [e.html === !0 ? "innerHTML" : "textContent"]: e.label })))) : n.option, t = se("div", Se.value.map(e));
|
|
1632
|
+
return n["before-options"] !== void 0 && (t = n["before-options"]().concat(t)), b(n["after-options"], t);
|
|
1640
1633
|
}
|
|
1641
|
-
function
|
|
1642
|
-
let r = n ? {
|
|
1643
|
-
...
|
|
1644
|
-
...
|
|
1634
|
+
function tt(e, n) {
|
|
1635
|
+
let r = n === !0 ? {
|
|
1636
|
+
...ye.value,
|
|
1637
|
+
...I.splitAttrs.attributes.value
|
|
1645
1638
|
} : void 0, i = {
|
|
1646
|
-
ref: n ? w : void 0,
|
|
1639
|
+
ref: n === !0 ? w : void 0,
|
|
1647
1640
|
key: "i_t",
|
|
1648
|
-
class:
|
|
1641
|
+
class: de.value,
|
|
1649
1642
|
style: t.inputStyle,
|
|
1650
1643
|
value: l.value === void 0 ? "" : l.value,
|
|
1651
1644
|
type: "search",
|
|
1652
1645
|
...r,
|
|
1653
|
-
id: n ?
|
|
1646
|
+
id: n === !0 ? I.targetUid.value : void 0,
|
|
1654
1647
|
maxlength: t.maxlength,
|
|
1655
1648
|
autocomplete: t.autocomplete,
|
|
1656
|
-
"data-autofocus": e === !0 || t.autofocus || void 0,
|
|
1657
|
-
disabled: t.disable,
|
|
1658
|
-
readonly: t.readonly,
|
|
1649
|
+
"data-autofocus": e === !0 || t.autofocus === !0 || void 0,
|
|
1650
|
+
disabled: t.disable === !0,
|
|
1651
|
+
readonly: t.readonly === !0,
|
|
1659
1652
|
...Ne.value
|
|
1660
1653
|
};
|
|
1661
|
-
return
|
|
1654
|
+
return e !== !0 && h === !0 && (Array.isArray(i.class) === !0 ? i.class = [...i.class, "no-pointer-events"] : i.class += " no-pointer-events"), U("input", i);
|
|
1662
1655
|
}
|
|
1663
|
-
function
|
|
1664
|
-
f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null), !e
|
|
1665
|
-
f = null,
|
|
1656
|
+
function nt(e) {
|
|
1657
|
+
f !== null && (clearTimeout(f), f = null), p !== null && (clearTimeout(p), p = null), !(e && e.target && e.target.qComposing === !0) && (rt(e.target.value || ""), g = !0, y = l.value, I.focused.value !== !0 && (h !== !0 || u.value === !0) && I.focus(), t.onFilter !== void 0 && (f = setTimeout(() => {
|
|
1658
|
+
f = null, ot(l.value);
|
|
1666
1659
|
}, t.inputDebounce)));
|
|
1667
1660
|
}
|
|
1668
|
-
function
|
|
1669
|
-
l.value !== e && (
|
|
1661
|
+
function rt(e, n) {
|
|
1662
|
+
l.value !== e && (l.value = e, n === !0 || t.inputDebounce === 0 || t.inputDebounce === "0" ? r("inputValue", e) : p = setTimeout(() => {
|
|
1670
1663
|
p = null, r("inputValue", e);
|
|
1671
1664
|
}, t.inputDebounce));
|
|
1672
1665
|
}
|
|
1673
|
-
function
|
|
1674
|
-
g = r !== !0, t.useInput && (
|
|
1666
|
+
function it(e, n, r) {
|
|
1667
|
+
g = r !== !0, t.useInput === !0 && (rt(e, !0), (n === !0 || r !== !0) && (y = e), n !== !0 && ot(e));
|
|
1675
1668
|
}
|
|
1676
|
-
function
|
|
1677
|
-
if (t.onFilter === void 0 ||
|
|
1678
|
-
|
|
1669
|
+
function ot(e, n, a) {
|
|
1670
|
+
if (t.onFilter === void 0 || n !== !0 && I.focused.value !== !0) return;
|
|
1671
|
+
I.innerLoading.value === !0 ? r("filterAbort") : (I.innerLoading.value = !0, d.value = !0), e !== "" && t.multiple !== !0 && L.value.length !== 0 && g !== !0 && e === K.value(L.value[0]) && (e = "");
|
|
1679
1672
|
let s = setTimeout(() => {
|
|
1680
|
-
o.value
|
|
1673
|
+
o.value === !0 && (o.value = !1);
|
|
1681
1674
|
}, 10);
|
|
1682
|
-
|
|
1683
|
-
(n ||
|
|
1684
|
-
|
|
1675
|
+
v !== null && clearTimeout(v), v = s, r("filter", e, (e, t) => {
|
|
1676
|
+
(n === !0 || I.focused.value === !0) && v === s && (clearTimeout(v), typeof e == "function" && e(), d.value = !1, W(() => {
|
|
1677
|
+
I.innerLoading.value = !1, I.editable.value === !0 && (n === !0 ? o.value === !0 && Z() : o.value === !0 ? Q(!0) : o.value = !0), typeof t == "function" && W(() => {
|
|
1685
1678
|
t(i);
|
|
1686
1679
|
}), typeof a == "function" && W(() => {
|
|
1687
1680
|
a(i);
|
|
1688
1681
|
});
|
|
1689
1682
|
}));
|
|
1690
1683
|
}, () => {
|
|
1691
|
-
|
|
1684
|
+
I.focused.value === !0 && v === s && (clearTimeout(v), I.innerLoading.value = !1, d.value = !1), o.value === !0 && (o.value = !1);
|
|
1692
1685
|
});
|
|
1693
1686
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return U(
|
|
1687
|
+
function st() {
|
|
1688
|
+
return U(at, {
|
|
1696
1689
|
ref: T,
|
|
1697
|
-
class:
|
|
1690
|
+
class: fe.value,
|
|
1698
1691
|
style: t.popupContentStyle,
|
|
1699
1692
|
modelValue: o.value,
|
|
1700
|
-
fit:
|
|
1701
|
-
cover: t.optionsCover &&
|
|
1693
|
+
fit: t.menuShrink !== !0,
|
|
1694
|
+
cover: t.optionsCover === !0 && z.value !== !0 && t.useInput !== !0,
|
|
1702
1695
|
anchor: t.menuAnchor,
|
|
1703
1696
|
self: t.menuSelf,
|
|
1704
1697
|
offset: t.menuOffset,
|
|
1705
|
-
dark:
|
|
1698
|
+
dark: le.value,
|
|
1706
1699
|
noParentEvent: !0,
|
|
1707
1700
|
noRefocus: !0,
|
|
1708
1701
|
noFocus: !0,
|
|
@@ -1712,193 +1705,193 @@ V(C({
|
|
|
1712
1705
|
transitionHide: t.transitionHide,
|
|
1713
1706
|
transitionDuration: t.transitionDuration,
|
|
1714
1707
|
separateClosePopup: !0,
|
|
1715
|
-
...
|
|
1716
|
-
onScrollPassive:
|
|
1717
|
-
onBeforeShow:
|
|
1718
|
-
onBeforeHide:
|
|
1719
|
-
onShow:
|
|
1720
|
-
},
|
|
1708
|
+
...be.value,
|
|
1709
|
+
onScrollPassive: N,
|
|
1710
|
+
onBeforeShow: bt,
|
|
1711
|
+
onBeforeHide: ct,
|
|
1712
|
+
onShow: lt
|
|
1713
|
+
}, et);
|
|
1721
1714
|
}
|
|
1722
|
-
function
|
|
1723
|
-
xt(e),
|
|
1715
|
+
function ct(e) {
|
|
1716
|
+
xt(e), X();
|
|
1724
1717
|
}
|
|
1725
|
-
function
|
|
1726
|
-
|
|
1718
|
+
function lt() {
|
|
1719
|
+
F();
|
|
1727
1720
|
}
|
|
1728
|
-
function
|
|
1729
|
-
|
|
1721
|
+
function ut(e) {
|
|
1722
|
+
B(e), w.value?.focus(), u.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
1730
1723
|
}
|
|
1731
|
-
function
|
|
1732
|
-
|
|
1724
|
+
function dt(e) {
|
|
1725
|
+
B(e), W(() => {
|
|
1733
1726
|
u.value = !1;
|
|
1734
1727
|
});
|
|
1735
1728
|
}
|
|
1736
|
-
function
|
|
1729
|
+
function ft() {
|
|
1737
1730
|
let e = [U(Ae, {
|
|
1738
|
-
class: `col-auto ${
|
|
1739
|
-
...
|
|
1740
|
-
for:
|
|
1741
|
-
dark:
|
|
1731
|
+
class: `col-auto ${I.fieldClass.value}`,
|
|
1732
|
+
...ce.value,
|
|
1733
|
+
for: I.targetUid.value,
|
|
1734
|
+
dark: le.value,
|
|
1742
1735
|
square: !0,
|
|
1743
1736
|
loading: d.value,
|
|
1744
1737
|
itemAligned: !1,
|
|
1745
1738
|
filled: !0,
|
|
1746
1739
|
stackLabel: l.value.length !== 0,
|
|
1747
|
-
...
|
|
1748
|
-
onFocus:
|
|
1749
|
-
onBlur:
|
|
1740
|
+
...I.splitAttrs.listeners.value,
|
|
1741
|
+
onFocus: ut,
|
|
1742
|
+
onBlur: dt
|
|
1750
1743
|
}, {
|
|
1751
1744
|
...n,
|
|
1752
|
-
rawControl: () =>
|
|
1745
|
+
rawControl: () => I.getControl(!0),
|
|
1753
1746
|
before: void 0,
|
|
1754
1747
|
after: void 0
|
|
1755
1748
|
})];
|
|
1756
|
-
return o.value && e.push(U("div", {
|
|
1757
|
-
ref:
|
|
1758
|
-
class:
|
|
1749
|
+
return o.value === !0 && e.push(U("div", {
|
|
1750
|
+
ref: ne,
|
|
1751
|
+
class: fe.value + " scroll",
|
|
1759
1752
|
style: t.popupContentStyle,
|
|
1760
|
-
...
|
|
1761
|
-
onClick:
|
|
1762
|
-
onScrollPassive:
|
|
1763
|
-
},
|
|
1753
|
+
...be.value,
|
|
1754
|
+
onClick: ue,
|
|
1755
|
+
onScrollPassive: N
|
|
1756
|
+
}, et())), U(Ot, {
|
|
1764
1757
|
ref: E,
|
|
1765
1758
|
modelValue: s.value,
|
|
1766
|
-
position: t.useInput ? "top" : void 0,
|
|
1767
|
-
transitionShow:
|
|
1759
|
+
position: t.useInput === !0 ? "top" : void 0,
|
|
1760
|
+
transitionShow: x,
|
|
1768
1761
|
transitionHide: t.transitionHide,
|
|
1769
1762
|
transitionDuration: t.transitionDuration,
|
|
1770
1763
|
noRouteDismiss: t.popupNoRouteDismiss,
|
|
1771
|
-
onBeforeShow:
|
|
1772
|
-
onBeforeHide:
|
|
1773
|
-
onHide:
|
|
1774
|
-
onShow:
|
|
1775
|
-
}, () => U("div", { class: "q-select__dialog" + (
|
|
1764
|
+
onBeforeShow: bt,
|
|
1765
|
+
onBeforeHide: pt,
|
|
1766
|
+
onHide: mt,
|
|
1767
|
+
onShow: ht
|
|
1768
|
+
}, () => U("div", { class: "q-select__dialog" + (le.value === !0 ? " q-select__dialog--dark q-dark" : "") + (u.value === !0 ? " q-select__dialog--focused" : "") }, e));
|
|
1776
1769
|
}
|
|
1777
|
-
function
|
|
1778
|
-
xt(e), E.value !== null && E.value.__updateRefocusTarget(
|
|
1770
|
+
function pt(e) {
|
|
1771
|
+
xt(e), E.value !== null && E.value.__updateRefocusTarget(I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")), I.focused.value = !1;
|
|
1779
1772
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1773
|
+
function mt(e) {
|
|
1774
|
+
Z(), I.focused.value === !1 && r("blur", e), _t();
|
|
1782
1775
|
}
|
|
1783
|
-
function
|
|
1776
|
+
function ht() {
|
|
1784
1777
|
let e = document.activeElement;
|
|
1785
|
-
(e === null || e.id !==
|
|
1778
|
+
(e === null || e.id !== I.targetUid.value) && w.value !== null && w.value !== e && w.value.focus(), F();
|
|
1786
1779
|
}
|
|
1787
|
-
function
|
|
1788
|
-
s.value
|
|
1780
|
+
function X() {
|
|
1781
|
+
s.value !== !0 && (c.value = -1, o.value === !0 && (o.value = !1), I.focused.value === !1 && (v !== null && (clearTimeout(v), v = null), I.innerLoading.value === !0 && (r("filterAbort"), I.innerLoading.value = !1, d.value = !1)));
|
|
1789
1782
|
}
|
|
1790
|
-
function
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
})) :
|
|
1783
|
+
function gt(e) {
|
|
1784
|
+
I.editable.value === !0 && (h === !0 ? (I.onControlFocusin(e), s.value = !0, W(() => {
|
|
1785
|
+
I.focus();
|
|
1786
|
+
})) : I.focus(), t.onFilter === void 0 ? (z.value !== !0 || n["no-option"] !== void 0) && (o.value = !0) : ot(l.value));
|
|
1794
1787
|
}
|
|
1795
|
-
function
|
|
1796
|
-
s.value = !1,
|
|
1788
|
+
function Z() {
|
|
1789
|
+
s.value = !1, X();
|
|
1797
1790
|
}
|
|
1798
|
-
function
|
|
1799
|
-
t.useInput &&
|
|
1791
|
+
function _t() {
|
|
1792
|
+
t.useInput === !0 && it(t.multiple !== !0 && t.fillInput === !0 && L.value.length !== 0 && K.value(L.value[0]) || "", !0, !0);
|
|
1800
1793
|
}
|
|
1801
|
-
function
|
|
1794
|
+
function Q(e) {
|
|
1802
1795
|
let n = -1;
|
|
1803
|
-
if (e) {
|
|
1804
|
-
if (
|
|
1805
|
-
let e = G.value(
|
|
1806
|
-
n = t.options.findIndex((t) =>
|
|
1796
|
+
if (e === !0) {
|
|
1797
|
+
if (L.value.length !== 0) {
|
|
1798
|
+
let e = G.value(L.value[0]);
|
|
1799
|
+
n = t.options.findIndex((t) => Bt(G.value(t), e));
|
|
1807
1800
|
}
|
|
1808
|
-
|
|
1801
|
+
M(n);
|
|
1809
1802
|
}
|
|
1810
|
-
|
|
1803
|
+
Be(n);
|
|
1811
1804
|
}
|
|
1812
1805
|
function vt(e, t) {
|
|
1813
|
-
o.value &&
|
|
1814
|
-
o.value &&
|
|
1806
|
+
o.value === !0 && I.innerLoading.value === !1 && (M(-1, !0), W(() => {
|
|
1807
|
+
o.value === !0 && I.innerLoading.value === !1 && (e > t ? M() : Q(!0));
|
|
1815
1808
|
}));
|
|
1816
1809
|
}
|
|
1817
|
-
function
|
|
1818
|
-
s.value
|
|
1810
|
+
function yt() {
|
|
1811
|
+
s.value === !1 && T.value !== null && T.value.updatePosition();
|
|
1819
1812
|
}
|
|
1820
|
-
function
|
|
1821
|
-
e !== void 0 &&
|
|
1813
|
+
function bt(e) {
|
|
1814
|
+
e !== void 0 && B(e), r("popupShow", e), I.hasPopupOpen = !0, I.onControlFocusin(e);
|
|
1822
1815
|
}
|
|
1823
1816
|
function xt(e) {
|
|
1824
|
-
e !== void 0 &&
|
|
1817
|
+
e !== void 0 && B(e), r("popupHide", e), I.hasPopupOpen = !1, I.onControlFocusout(e);
|
|
1825
1818
|
}
|
|
1826
1819
|
function St() {
|
|
1827
|
-
h =
|
|
1820
|
+
h = a.platform.is.mobile !== !0 && t.behavior !== "dialog" ? !1 : t.behavior !== "menu" && (t.useInput !== !0 || n["no-option"] !== void 0 || t.onFilter !== void 0 || z.value === !1), x = a.platform.is.ios === !0 && h === !0 && t.useInput === !0 ? "fade" : t.transitionShow;
|
|
1828
1821
|
}
|
|
1829
|
-
return Oe(St), ke(
|
|
1822
|
+
return Oe(St), ke(yt), St(), De(() => {
|
|
1830
1823
|
f !== null && clearTimeout(f), p !== null && clearTimeout(p);
|
|
1831
1824
|
}), Object.assign(i, {
|
|
1832
|
-
showPopup:
|
|
1833
|
-
hidePopup:
|
|
1825
|
+
showPopup: gt,
|
|
1826
|
+
hidePopup: Z,
|
|
1834
1827
|
removeAtIndex: Fe,
|
|
1835
1828
|
add: Re,
|
|
1836
|
-
toggleOption:
|
|
1829
|
+
toggleOption: ze,
|
|
1837
1830
|
getOptionIndex: () => c.value,
|
|
1838
|
-
setOptionIndex:
|
|
1839
|
-
moveOptionSelection:
|
|
1840
|
-
filter:
|
|
1841
|
-
updateMenuPosition:
|
|
1842
|
-
updateInputValue:
|
|
1843
|
-
isOptionSelected:
|
|
1831
|
+
setOptionIndex: Be,
|
|
1832
|
+
moveOptionSelection: Ve,
|
|
1833
|
+
filter: ot,
|
|
1834
|
+
updateMenuPosition: yt,
|
|
1835
|
+
updateInputValue: it,
|
|
1836
|
+
isOptionSelected: Ue,
|
|
1844
1837
|
getEmittingOptionValue: Pe,
|
|
1845
|
-
isOptionDisabled: (...e) => je.value(
|
|
1846
|
-
getOptionValue: (...e) => G.value(
|
|
1847
|
-
getOptionLabel: (...e) => K.value(
|
|
1848
|
-
}), Object.assign(
|
|
1849
|
-
innerValue:
|
|
1850
|
-
fieldClass: H(() => `q-select q-field--auto-height q-select--with${t.useInput ? "" : "out"}-input q-select--with${t.useChips ? "" : "out"}-chips q-select--${t.multiple ? "multiple" : "single"}`),
|
|
1851
|
-
inputRef:
|
|
1838
|
+
isOptionDisabled: (...e) => je.value.apply(null, e) === !0,
|
|
1839
|
+
getOptionValue: (...e) => G.value.apply(null, e),
|
|
1840
|
+
getOptionLabel: (...e) => K.value.apply(null, e)
|
|
1841
|
+
}), Object.assign(I, {
|
|
1842
|
+
innerValue: L,
|
|
1843
|
+
fieldClass: H(() => `q-select q-field--auto-height q-select--with${t.useInput === !0 ? "" : "out"}-input q-select--with${t.useChips === !0 ? "" : "out"}-chips q-select--${t.multiple === !0 ? "multiple" : "single"}`),
|
|
1844
|
+
inputRef: ee,
|
|
1852
1845
|
targetRef: w,
|
|
1853
|
-
hasValue:
|
|
1854
|
-
showPopup:
|
|
1855
|
-
floatingLabel: H(() =>
|
|
1846
|
+
hasValue: R,
|
|
1847
|
+
showPopup: gt,
|
|
1848
|
+
floatingLabel: H(() => t.hideSelected !== !0 && R.value === !0 || typeof l.value == "number" || l.value.length !== 0 || pe(t.displayValue)),
|
|
1856
1849
|
getControlChild: () => {
|
|
1857
|
-
if (
|
|
1858
|
-
|
|
1850
|
+
if (I.editable.value !== !1 && (s.value === !0 || z.value !== !0 || n["no-option"] !== void 0)) return h === !0 ? ft() : st();
|
|
1851
|
+
I.hasPopupOpen === !0 && (I.hasPopupOpen = !1);
|
|
1859
1852
|
},
|
|
1860
1853
|
controlEvents: {
|
|
1861
1854
|
onFocusin(e) {
|
|
1862
|
-
|
|
1855
|
+
I.onControlFocusin(e);
|
|
1863
1856
|
},
|
|
1864
1857
|
onFocusout(e) {
|
|
1865
|
-
|
|
1866
|
-
|
|
1858
|
+
I.onControlFocusout(e, () => {
|
|
1859
|
+
_t(), X();
|
|
1867
1860
|
});
|
|
1868
1861
|
},
|
|
1869
1862
|
onClick(e) {
|
|
1870
|
-
if (
|
|
1871
|
-
|
|
1863
|
+
if (ue(e), h !== !0 && o.value === !0) {
|
|
1864
|
+
X(), w.value?.focus();
|
|
1872
1865
|
return;
|
|
1873
1866
|
}
|
|
1874
|
-
|
|
1867
|
+
gt(e);
|
|
1875
1868
|
}
|
|
1876
1869
|
},
|
|
1877
1870
|
getControl: (e) => {
|
|
1878
|
-
let n =
|
|
1879
|
-
if (t.useInput) n.push(
|
|
1880
|
-
else if (
|
|
1881
|
-
let i = r ?
|
|
1871
|
+
let n = $e(), r = e === !0 || s.value !== !0 || h !== !0;
|
|
1872
|
+
if (t.useInput === !0) n.push(tt(e, r));
|
|
1873
|
+
else if (I.editable.value === !0) {
|
|
1874
|
+
let i = r === !0 ? ye.value : void 0;
|
|
1882
1875
|
n.push(U("input", {
|
|
1883
|
-
ref: r ? w : void 0,
|
|
1876
|
+
ref: r === !0 ? w : void 0,
|
|
1884
1877
|
key: "d_t",
|
|
1885
1878
|
class: "q-select__focus-target",
|
|
1886
|
-
id: r ?
|
|
1887
|
-
value:
|
|
1879
|
+
id: r === !0 ? I.targetUid.value : void 0,
|
|
1880
|
+
value: he.value,
|
|
1888
1881
|
readonly: !0,
|
|
1889
|
-
"data-autofocus": e === !0 || t.autofocus || void 0,
|
|
1882
|
+
"data-autofocus": e === !0 || t.autofocus === !0 || void 0,
|
|
1890
1883
|
...i,
|
|
1891
1884
|
onKeydown: Xe,
|
|
1892
|
-
onKeyup:
|
|
1885
|
+
onKeyup: Y,
|
|
1893
1886
|
onKeypress: Ye
|
|
1894
|
-
})), r && typeof t.autocomplete == "string" && t.autocomplete.length !== 0 && n.push(U("input", {
|
|
1887
|
+
})), r === !0 && typeof t.autocomplete == "string" && t.autocomplete.length !== 0 && n.push(U("input", {
|
|
1895
1888
|
class: "q-select__autocomplete-input",
|
|
1896
1889
|
autocomplete: t.autocomplete,
|
|
1897
1890
|
tabindex: -1,
|
|
1898
1891
|
onKeyup: Je
|
|
1899
1892
|
}));
|
|
1900
1893
|
}
|
|
1901
|
-
if (D.value !== void 0 &&
|
|
1894
|
+
if (D.value !== void 0 && t.disable !== !0 && Me.value.length !== 0) {
|
|
1902
1895
|
let e = Me.value.map((e) => U("option", {
|
|
1903
1896
|
value: e,
|
|
1904
1897
|
selected: !0
|
|
@@ -1909,24 +1902,28 @@ V(C({
|
|
|
1909
1902
|
multiple: t.multiple
|
|
1910
1903
|
}, e));
|
|
1911
1904
|
}
|
|
1905
|
+
let i = t.useInput === !0 || r !== !0 ? void 0 : I.splitAttrs.attributes.value;
|
|
1912
1906
|
return U("div", {
|
|
1913
1907
|
class: "q-field__native row items-center",
|
|
1914
|
-
...
|
|
1915
|
-
...
|
|
1908
|
+
...i,
|
|
1909
|
+
...I.splitAttrs.listeners.value
|
|
1916
1910
|
}, n);
|
|
1917
1911
|
},
|
|
1918
|
-
getInnerAppend: () =>
|
|
1919
|
-
class: "q-select__dropdown-icon" + (o.value ? " rotate-180" : ""),
|
|
1920
|
-
name:
|
|
1912
|
+
getInnerAppend: () => t.loading !== !0 && d.value !== !0 && t.hideDropdownIcon !== !0 ? [U(j, {
|
|
1913
|
+
class: "q-select__dropdown-icon" + (o.value === !0 ? " rotate-180" : ""),
|
|
1914
|
+
name: Ce.value
|
|
1921
1915
|
})] : null
|
|
1922
|
-
}),
|
|
1916
|
+
}), re(I);
|
|
1923
1917
|
}
|
|
1924
|
-
})
|
|
1918
|
+
});
|
|
1919
|
+
//#endregion
|
|
1920
|
+
//#region lib/utils/defaults/qSelect.js
|
|
1921
|
+
Ce(Kt, "dense", !0);
|
|
1925
1922
|
//#endregion
|
|
1926
1923
|
//#region lib/main.js
|
|
1927
|
-
function
|
|
1928
|
-
for (let t in
|
|
1924
|
+
function qt(e) {
|
|
1925
|
+
for (let t in me) e.component(t, me[t]);
|
|
1929
1926
|
}
|
|
1930
|
-
var
|
|
1927
|
+
var Jt = { install: qt };
|
|
1931
1928
|
//#endregion
|
|
1932
|
-
export {
|
|
1929
|
+
export { L as VnInput, Jt as default, Ce as setDefault, Se as useRequired, xe as useValidator };
|