@quidgest/ui 0.7.13 → 0.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +243 -3
- package/dist/ui.css +4 -5
- package/dist/ui.esm.js +513 -511
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +4 -4
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +3 -3
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +9 -7
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Ve, computed as
|
|
1
|
+
import { getCurrentInstance as Ve, computed as g, ref as q, provide as Ne, inject as De, watch as C, defineComponent as x, openBlock as d, createElementBlock as v, normalizeClass as D, normalizeStyle as ae, createElementVNode as N, withModifiers as ee, createVNode as te, unref as k, createCommentVNode as S, Fragment as Z, createTextVNode as re, toDisplayString as H, renderSlot as y, toRef as pe, createBlock as B, withCtx as $, renderList as ve, resolveDynamicComponent as Te, h as $e, normalizeProps as de, mergeProps as ne, reactive as He, onBeforeUnmount as Ke, onMounted as Ee, Teleport as We, Transition as Ge, nextTick as J, createSlots as be, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as he } from "vue";
|
|
2
2
|
function ye(n) {
|
|
3
3
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -6,21 +6,21 @@ function Ie(n) {
|
|
|
6
6
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
7
7
|
}
|
|
8
8
|
function ze(n = {}, t = {}) {
|
|
9
|
-
const
|
|
9
|
+
const o = {};
|
|
10
10
|
for (const e in n)
|
|
11
|
-
|
|
11
|
+
o[e] = n[e];
|
|
12
12
|
for (const e in t) {
|
|
13
|
-
const
|
|
14
|
-
if (Ie(
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const l = n[e], a = t[e];
|
|
14
|
+
if (Ie(l) && Ie(a)) {
|
|
15
|
+
o[e] = ze(
|
|
16
|
+
l,
|
|
17
17
|
a
|
|
18
18
|
);
|
|
19
19
|
continue;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
o[e] = a;
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return o;
|
|
24
24
|
}
|
|
25
25
|
const ge = "q-defaults";
|
|
26
26
|
function Ye() {
|
|
@@ -30,16 +30,16 @@ function Ye() {
|
|
|
30
30
|
const t = n.type.name ?? n.type.__name;
|
|
31
31
|
if (!t)
|
|
32
32
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
33
|
-
const
|
|
34
|
-
return
|
|
33
|
+
const o = Fe();
|
|
34
|
+
return g(() => {
|
|
35
35
|
var e;
|
|
36
|
-
return (e =
|
|
36
|
+
return (e = o.value) == null ? void 0 : e[t];
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function Ce(n) {
|
|
40
40
|
if (ye(n))
|
|
41
41
|
return;
|
|
42
|
-
const t = Fe(),
|
|
42
|
+
const t = Fe(), o = q(n), e = g(() => ye(o.value) ? t.value : ze(t.value, o.value));
|
|
43
43
|
Ne(ge, e);
|
|
44
44
|
}
|
|
45
45
|
function Fe() {
|
|
@@ -113,73 +113,73 @@ function Ae(n) {
|
|
|
113
113
|
if (!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n))
|
|
114
114
|
throw new Error("Invalid color format");
|
|
115
115
|
n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
|
|
116
|
-
const t = parseInt(n.slice(1, 3), 16),
|
|
117
|
-
return { r: t, g:
|
|
116
|
+
const t = parseInt(n.slice(1, 3), 16), o = parseInt(n.slice(3, 5), 16), e = parseInt(n.slice(5, 7), 16);
|
|
117
|
+
return { r: t, g: o, b: e };
|
|
118
118
|
}
|
|
119
119
|
function Ze(n, t) {
|
|
120
120
|
if (t < 0 || t > 100)
|
|
121
121
|
throw new Error("Amount must be in the range [0, 100]");
|
|
122
122
|
if (t === 0)
|
|
123
123
|
return n;
|
|
124
|
-
const
|
|
125
|
-
return
|
|
124
|
+
const o = Qe(n), e = t / 100;
|
|
125
|
+
return o.l = o.l + e * (100 - o.l), Re(o);
|
|
126
126
|
}
|
|
127
127
|
function Je(n, t) {
|
|
128
128
|
if (t < 0 || t > 100)
|
|
129
129
|
throw new Error("Amount must be in the range [0, 100]");
|
|
130
130
|
if (t === 0)
|
|
131
131
|
return n;
|
|
132
|
-
const
|
|
133
|
-
return
|
|
132
|
+
const o = Qe(n), e = t / 100;
|
|
133
|
+
return o.l = o.l - e * o.l, Re(o);
|
|
134
134
|
}
|
|
135
135
|
function Se(n) {
|
|
136
|
-
const t = n.r.toString(16).padStart(2, "0"),
|
|
137
|
-
return `#${t}${
|
|
136
|
+
const t = n.r.toString(16).padStart(2, "0"), o = n.g.toString(16).padStart(2, "0"), e = n.b.toString(16).padStart(2, "0");
|
|
137
|
+
return `#${t}${o}${e}`;
|
|
138
138
|
}
|
|
139
139
|
function Qe(n) {
|
|
140
|
-
const t = n.r / 255,
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
|
|
140
|
+
const t = n.r / 255, o = n.g / 255, e = n.b / 255, l = Math.max(t, o, e), a = Math.min(t, o, e);
|
|
141
|
+
let u = 0, i;
|
|
142
|
+
const f = (l + a) / 2;
|
|
143
|
+
if (l === a)
|
|
144
|
+
u = i = 0;
|
|
145
145
|
else {
|
|
146
|
-
const
|
|
147
|
-
switch (i =
|
|
146
|
+
const p = l - a;
|
|
147
|
+
switch (i = f > 0.5 ? p / (2 - l - a) : p / (l + a), l) {
|
|
148
148
|
case t:
|
|
149
|
-
|
|
149
|
+
u = (o - e) / p + (o < e ? 6 : 0);
|
|
150
150
|
break;
|
|
151
|
-
case
|
|
152
|
-
|
|
151
|
+
case o:
|
|
152
|
+
u = (e - t) / p + 2;
|
|
153
153
|
break;
|
|
154
154
|
case e:
|
|
155
|
-
|
|
155
|
+
u = (t - o) / p + 4;
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
u /= 6;
|
|
159
159
|
}
|
|
160
160
|
return {
|
|
161
|
-
h: Math.round(
|
|
161
|
+
h: Math.round(u * 360),
|
|
162
162
|
s: Math.round(i * 100),
|
|
163
|
-
l: Math.round(
|
|
163
|
+
l: Math.round(f * 100)
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
function Re(n) {
|
|
167
|
-
const t = n.h / 360,
|
|
168
|
-
let
|
|
169
|
-
if (
|
|
170
|
-
|
|
167
|
+
const t = n.h / 360, o = n.s / 100, e = n.l / 100;
|
|
168
|
+
let l, a, u;
|
|
169
|
+
if (o === 0)
|
|
170
|
+
l = a = u = e;
|
|
171
171
|
else {
|
|
172
|
-
const i = e < 0.5 ? e * (1 +
|
|
173
|
-
|
|
172
|
+
const i = e < 0.5 ? e * (1 + o) : e + o - e * o, f = 2 * e - i;
|
|
173
|
+
l = me(f, i, t + 1 / 3), a = me(f, i, t), u = me(f, i, t - 1 / 3);
|
|
174
174
|
}
|
|
175
175
|
return {
|
|
176
|
-
r: Math.round(
|
|
176
|
+
r: Math.round(l * 255),
|
|
177
177
|
g: Math.round(a * 255),
|
|
178
|
-
b: Math.round(
|
|
178
|
+
b: Math.round(u * 255)
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function me(n, t,
|
|
182
|
-
return
|
|
181
|
+
function me(n, t, o) {
|
|
182
|
+
return o < 0 && (o += 1), o > 1 && (o -= 1), o < 1 / 6 ? n + (t - n) * 6 * o : o < 1 / 2 ? t : o < 2 / 3 ? n + (t - n) * (2 / 3 - o) * 6 : n;
|
|
183
183
|
}
|
|
184
184
|
const ue = "q-theme";
|
|
185
185
|
function $n() {
|
|
@@ -189,42 +189,42 @@ function $n() {
|
|
|
189
189
|
return n;
|
|
190
190
|
}
|
|
191
191
|
function et(n, t) {
|
|
192
|
-
let
|
|
192
|
+
let o = null;
|
|
193
193
|
if (t)
|
|
194
194
|
for (const e of t.themes) {
|
|
195
|
-
const
|
|
195
|
+
const l = e.mode === "light" ? qe : Pe;
|
|
196
196
|
if (e.colors) {
|
|
197
197
|
let a;
|
|
198
198
|
for (a in e.colors) {
|
|
199
|
-
const
|
|
200
|
-
if (
|
|
201
|
-
const i = Ae(
|
|
202
|
-
|
|
199
|
+
const u = e.colors[a];
|
|
200
|
+
if (u && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
|
|
201
|
+
const i = Ae(u), f = `${a}Light`, p = `${a}Dark`;
|
|
202
|
+
f in e.colors || (e.colors[f] = Se(Ze(i, 85))), p in e.colors || (e.colors[p] = Se(Je(i, 25)));
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
e.colors = tt(
|
|
206
|
+
e.colors = tt(l, e.colors), e.name === t.defaultTheme && (o = e);
|
|
207
207
|
}
|
|
208
208
|
else {
|
|
209
209
|
const e = "default";
|
|
210
|
-
|
|
210
|
+
o = {
|
|
211
211
|
name: e,
|
|
212
212
|
mode: "light",
|
|
213
213
|
colors: qe
|
|
214
214
|
}, t = {
|
|
215
215
|
defaultTheme: e,
|
|
216
|
-
themes: [
|
|
216
|
+
themes: [o]
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
219
|
+
if (o) {
|
|
220
220
|
const e = q({
|
|
221
|
-
activeTheme:
|
|
221
|
+
activeTheme: o.name,
|
|
222
222
|
themes: t.themes
|
|
223
223
|
});
|
|
224
|
-
|
|
224
|
+
C(
|
|
225
225
|
() => e.value.activeTheme,
|
|
226
|
-
(
|
|
227
|
-
const a = e.value.themes.find((
|
|
226
|
+
(l) => {
|
|
227
|
+
const a = e.value.themes.find((u) => u.name === l);
|
|
228
228
|
a && nt(a.colors);
|
|
229
229
|
},
|
|
230
230
|
{ immediate: !0 }
|
|
@@ -239,30 +239,30 @@ function nt(n) {
|
|
|
239
239
|
ue
|
|
240
240
|
);
|
|
241
241
|
t || (t = document.createElement("style"), t.type = "text/css", t.id = ue, document.head.appendChild(t));
|
|
242
|
-
let
|
|
242
|
+
let o = `:root {
|
|
243
243
|
`, e;
|
|
244
244
|
for (e in n) {
|
|
245
|
-
const
|
|
246
|
-
if (
|
|
247
|
-
|
|
245
|
+
const l = n[e];
|
|
246
|
+
if (l) {
|
|
247
|
+
o += ` ${Le(e)}: ${l};
|
|
248
248
|
`;
|
|
249
|
-
const a = Ae(
|
|
250
|
-
|
|
249
|
+
const a = Ae(l);
|
|
250
|
+
o += ` ${Le(e)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
251
251
|
`;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
o += "}", t.textContent = o;
|
|
255
255
|
}
|
|
256
256
|
function Le(n) {
|
|
257
257
|
return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
258
|
}
|
|
259
259
|
function In(n = {}) {
|
|
260
|
-
return { install: (
|
|
260
|
+
return { install: (o) => {
|
|
261
261
|
const e = n.components || {};
|
|
262
262
|
for (const a in e)
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
|
|
263
|
+
o.component(a, e[a]);
|
|
264
|
+
const l = n.defaults || {};
|
|
265
|
+
o.provide(ge, q(l)), et(o, n.themes);
|
|
266
266
|
} };
|
|
267
267
|
}
|
|
268
268
|
const lt = /* @__PURE__ */ N("svg", { viewBox: "25 25 50 50" }, [
|
|
@@ -285,36 +285,36 @@ const lt = /* @__PURE__ */ N("svg", { viewBox: "25 25 50 50" }, [
|
|
|
285
285
|
class: { default: void 0 }
|
|
286
286
|
},
|
|
287
287
|
setup(n) {
|
|
288
|
-
const t = n,
|
|
288
|
+
const t = n, o = g(() => ({
|
|
289
289
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
290
290
|
}));
|
|
291
|
-
return (e,
|
|
291
|
+
return (e, l) => (d(), v("div", {
|
|
292
292
|
class: D(["q-spinner-loader", t.class]),
|
|
293
|
-
style: ae(
|
|
293
|
+
style: ae(o.value)
|
|
294
294
|
}, ot, 6));
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
function st(n, t) {
|
|
298
|
-
var
|
|
299
|
-
return typeof ((
|
|
298
|
+
var o;
|
|
299
|
+
return typeof ((o = n.props) == null ? void 0 : o[t]) < "u";
|
|
300
300
|
}
|
|
301
301
|
function V(n) {
|
|
302
302
|
const t = n.setup;
|
|
303
|
-
return t && (n.setup = (
|
|
304
|
-
const
|
|
305
|
-
if (ye(
|
|
306
|
-
return t(
|
|
303
|
+
return t && (n.setup = (o, e) => {
|
|
304
|
+
const l = Ye();
|
|
305
|
+
if (ye(l.value))
|
|
306
|
+
return t(o, e);
|
|
307
307
|
const a = Ve();
|
|
308
308
|
if (a === null)
|
|
309
|
-
return t(
|
|
310
|
-
const
|
|
311
|
-
get(i,
|
|
309
|
+
return t(o, e);
|
|
310
|
+
const u = new Proxy(o, {
|
|
311
|
+
get(i, f) {
|
|
312
312
|
var w;
|
|
313
|
-
const
|
|
314
|
-
return typeof
|
|
313
|
+
const p = Reflect.get(i, f), m = (w = l.value) == null ? void 0 : w[f];
|
|
314
|
+
return typeof f == "string" && !st(a.vnode, f) ? m ?? p : p;
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
|
-
return t(
|
|
317
|
+
return t(u, e);
|
|
318
318
|
}), n;
|
|
319
319
|
}
|
|
320
320
|
const _e = V(at), it = ["disabled"], rt = {
|
|
@@ -337,11 +337,11 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
337
337
|
},
|
|
338
338
|
emits: ["click"],
|
|
339
339
|
setup(n, { emit: t }) {
|
|
340
|
-
const
|
|
340
|
+
const o = t, e = n, l = g(() => e.disabled || e.loading);
|
|
341
341
|
function a(i) {
|
|
342
|
-
|
|
342
|
+
l.value || o("click", i);
|
|
343
343
|
}
|
|
344
|
-
const
|
|
344
|
+
const u = g(() => {
|
|
345
345
|
const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
346
346
|
return [
|
|
347
347
|
"q-btn",
|
|
@@ -357,21 +357,21 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
357
357
|
e.class
|
|
358
358
|
];
|
|
359
359
|
});
|
|
360
|
-
return (i,
|
|
360
|
+
return (i, f) => (d(), v("button", {
|
|
361
361
|
type: "button",
|
|
362
|
-
class: D(
|
|
363
|
-
disabled:
|
|
362
|
+
class: D(u.value),
|
|
363
|
+
disabled: l.value,
|
|
364
364
|
onClick: ee(a, ["stop", "prevent"])
|
|
365
365
|
}, [
|
|
366
|
-
i.loading ? (
|
|
367
|
-
te(
|
|
368
|
-
])) :
|
|
366
|
+
i.loading ? (d(), v("div", rt, [
|
|
367
|
+
te(k(_e), { size: 23 })
|
|
368
|
+
])) : S("", !0),
|
|
369
369
|
N("span", dt, [
|
|
370
|
-
i.iconOnRight ? (
|
|
370
|
+
i.iconOnRight ? (d(), v(Z, { key: 0 }, [
|
|
371
371
|
re(H(e.label), 1)
|
|
372
|
-
], 64)) :
|
|
373
|
-
|
|
374
|
-
i.iconOnRight ?
|
|
372
|
+
], 64)) : S("", !0),
|
|
373
|
+
y(i.$slots, "default"),
|
|
374
|
+
i.iconOnRight ? S("", !0) : (d(), v(Z, { key: 1 }, [
|
|
375
375
|
re(H(e.label), 1)
|
|
376
376
|
], 64))
|
|
377
377
|
])
|
|
@@ -395,7 +395,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
395
395
|
borderless: pe(t, "borderless"),
|
|
396
396
|
elevated: !1
|
|
397
397
|
}
|
|
398
|
-
}), (
|
|
398
|
+
}), (o, e) => (d(), v("div", {
|
|
399
399
|
class: D([
|
|
400
400
|
"q-btn-group",
|
|
401
401
|
{
|
|
@@ -404,7 +404,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
404
404
|
t.class
|
|
405
405
|
])
|
|
406
406
|
}, [
|
|
407
|
-
|
|
407
|
+
y(o.$slots, "default")
|
|
408
408
|
], 2));
|
|
409
409
|
}
|
|
410
410
|
}), pt = V(ft), mt = /* @__PURE__ */ x({
|
|
@@ -420,23 +420,23 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: ["update:modelValue"],
|
|
422
422
|
setup(n, { emit: t }) {
|
|
423
|
-
const
|
|
424
|
-
|
|
423
|
+
const o = t, e = n, l = q(e.modelValue);
|
|
424
|
+
C(
|
|
425
425
|
() => e.modelValue,
|
|
426
|
-
(i) =>
|
|
426
|
+
(i) => l.value = i
|
|
427
427
|
);
|
|
428
|
-
const a =
|
|
428
|
+
const a = g({
|
|
429
429
|
get() {
|
|
430
|
-
return
|
|
430
|
+
return l.value;
|
|
431
431
|
},
|
|
432
432
|
set(i) {
|
|
433
|
-
|
|
433
|
+
l.value = i, o("update:modelValue", i);
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
|
-
function
|
|
436
|
+
function u(i) {
|
|
437
437
|
a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
|
|
438
438
|
}
|
|
439
|
-
return (i,
|
|
439
|
+
return (i, f) => (d(), B(k(pt), {
|
|
440
440
|
"b-style": "secondary",
|
|
441
441
|
class: D(e.class),
|
|
442
442
|
disabled: e.disabled,
|
|
@@ -444,15 +444,15 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
444
444
|
elevated: e.elevated
|
|
445
445
|
}, {
|
|
446
446
|
default: $(() => [
|
|
447
|
-
(
|
|
448
|
-
key:
|
|
449
|
-
title:
|
|
450
|
-
label:
|
|
451
|
-
active: a.value ===
|
|
452
|
-
onClick: () =>
|
|
447
|
+
(d(!0), v(Z, null, ve(e.options, (p) => (d(), B(k(ct), {
|
|
448
|
+
key: p.key,
|
|
449
|
+
title: p.title,
|
|
450
|
+
label: p.label,
|
|
451
|
+
active: a.value === p.key,
|
|
452
|
+
onClick: () => u(p)
|
|
453
453
|
}, {
|
|
454
454
|
default: $(() => [
|
|
455
|
-
|
|
455
|
+
y(i.$slots, p.key)
|
|
456
456
|
]),
|
|
457
457
|
_: 2
|
|
458
458
|
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
@@ -469,7 +469,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
469
469
|
class: { default: void 0 }
|
|
470
470
|
},
|
|
471
471
|
setup(n) {
|
|
472
|
-
const t = n,
|
|
472
|
+
const t = n, o = g(() => {
|
|
473
473
|
switch (t.type) {
|
|
474
474
|
case "svg":
|
|
475
475
|
return qt;
|
|
@@ -481,7 +481,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
return (e,
|
|
484
|
+
return (e, l) => (d(), B(Te(o.value), {
|
|
485
485
|
class: D(t.class),
|
|
486
486
|
icon: t.icon,
|
|
487
487
|
size: t.size
|
|
@@ -497,12 +497,12 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
497
497
|
class: { default: void 0 }
|
|
498
498
|
},
|
|
499
499
|
setup(n) {
|
|
500
|
-
const t = n,
|
|
500
|
+
const t = n, o = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), e = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
|
|
501
501
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
502
502
|
}));
|
|
503
|
-
return (a,
|
|
504
|
-
class: D(["q-icon", "q-icon__font",
|
|
505
|
-
style: ae(
|
|
503
|
+
return (a, u) => (d(), v("i", {
|
|
504
|
+
class: D(["q-icon", "q-icon__font", o.value, e.value, t.class]),
|
|
505
|
+
style: ae(l.value)
|
|
506
506
|
}, null, 6));
|
|
507
507
|
}
|
|
508
508
|
}), yt = ["src"], bt = /* @__PURE__ */ x({
|
|
@@ -513,13 +513,13 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
513
513
|
class: {}
|
|
514
514
|
},
|
|
515
515
|
setup(n) {
|
|
516
|
-
const t = n,
|
|
516
|
+
const t = n, o = g(() => ({
|
|
517
517
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
518
518
|
}));
|
|
519
|
-
return (e,
|
|
519
|
+
return (e, l) => (d(), v("img", {
|
|
520
520
|
src: t.icon,
|
|
521
521
|
class: D(["q-icon", "q-icon__img", t.class]),
|
|
522
|
-
style: ae(
|
|
522
|
+
style: ae(o.value)
|
|
523
523
|
}, null, 14, yt));
|
|
524
524
|
}
|
|
525
525
|
}), oe = {}, gt = x({
|
|
@@ -568,14 +568,14 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
568
568
|
},
|
|
569
569
|
methods: {
|
|
570
570
|
copySvgAttrs(n, t) {
|
|
571
|
-
const
|
|
572
|
-
if (
|
|
573
|
-
for (const e of
|
|
571
|
+
const o = t.attributes;
|
|
572
|
+
if (o)
|
|
573
|
+
for (const e of o)
|
|
574
574
|
n[e.name] = e.value;
|
|
575
575
|
},
|
|
576
576
|
copyComponentAttrs(n, t) {
|
|
577
|
-
for (const [
|
|
578
|
-
e !== !1 && e !== null && e !== void 0 && (n[
|
|
577
|
+
for (const [o, e] of Object.entries(t))
|
|
578
|
+
e !== !1 && e !== null && e !== void 0 && (n[o] = e);
|
|
579
579
|
},
|
|
580
580
|
getSvgContent(n) {
|
|
581
581
|
return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), _t(n, this.title)), n);
|
|
@@ -602,7 +602,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
602
602
|
const t = await fetch(n);
|
|
603
603
|
if (!t.ok)
|
|
604
604
|
throw new Error("Error loading SVG");
|
|
605
|
-
const
|
|
605
|
+
const o = await t.text(), a = new DOMParser().parseFromString(o, "text/xml").getElementsByTagName("svg")[0];
|
|
606
606
|
if (!a)
|
|
607
607
|
throw new Error("Loaded file is not a valid SVG");
|
|
608
608
|
return a;
|
|
@@ -615,9 +615,9 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
function _t(n, t) {
|
|
618
|
-
const
|
|
619
|
-
if (
|
|
620
|
-
|
|
618
|
+
const o = n.getElementsByTagName("title");
|
|
619
|
+
if (o.length)
|
|
620
|
+
o[0].textContent = t;
|
|
621
621
|
else {
|
|
622
622
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
623
623
|
e.textContent = t, n.insertBefore(e, n.firstChild);
|
|
@@ -627,13 +627,13 @@ function kt(n) {
|
|
|
627
627
|
if (n.getIsPending)
|
|
628
628
|
return n;
|
|
629
629
|
let t = !0;
|
|
630
|
-
const
|
|
630
|
+
const o = n.then(
|
|
631
631
|
(e) => (t = !1, e),
|
|
632
632
|
(e) => {
|
|
633
633
|
throw t = !1, e;
|
|
634
634
|
}
|
|
635
635
|
);
|
|
636
|
-
return
|
|
636
|
+
return o.getIsPending = () => t, o;
|
|
637
637
|
}
|
|
638
638
|
const wt = /* @__PURE__ */ x({
|
|
639
639
|
__name: "QIconSvg",
|
|
@@ -645,22 +645,22 @@ const wt = /* @__PURE__ */ x({
|
|
|
645
645
|
},
|
|
646
646
|
emits: ["loaded", "unloaded"],
|
|
647
647
|
setup(n, { emit: t }) {
|
|
648
|
-
const
|
|
648
|
+
const o = t, e = n, l = g(() => ({
|
|
649
649
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
650
650
|
}));
|
|
651
651
|
function a(i) {
|
|
652
|
-
|
|
652
|
+
o("loaded", i);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
|
|
654
|
+
function u() {
|
|
655
|
+
o("unloaded");
|
|
656
656
|
}
|
|
657
|
-
return (i,
|
|
657
|
+
return (i, f) => (d(), B(k(gt), {
|
|
658
658
|
class: D(["q-icon", "q-icon__svg", e.class]),
|
|
659
659
|
src: e.bundle,
|
|
660
660
|
symbol: e.icon,
|
|
661
|
-
style: ae(
|
|
661
|
+
style: ae(l.value),
|
|
662
662
|
onLoaded: a,
|
|
663
|
-
onUnloaded:
|
|
663
|
+
onUnloaded: u
|
|
664
664
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
665
665
|
}
|
|
666
666
|
}), P = V(vt), $t = V(ht), It = V(bt), qt = V(wt), St = /* @__PURE__ */ x({
|
|
@@ -676,25 +676,25 @@ const wt = /* @__PURE__ */ x({
|
|
|
676
676
|
class: { default: void 0 }
|
|
677
677
|
},
|
|
678
678
|
emits: ["update:modelValue"],
|
|
679
|
-
setup(n, { expose: t, emit:
|
|
680
|
-
const e =
|
|
681
|
-
function
|
|
679
|
+
setup(n, { expose: t, emit: o }) {
|
|
680
|
+
const e = o, l = n, a = q(l.modelValue), u = q(!1), i = g(() => f.value.length > 1 ? "div" : "ul"), f = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), p = q(null);
|
|
681
|
+
function m(r) {
|
|
682
682
|
a.value = r, e("update:modelValue", r);
|
|
683
683
|
}
|
|
684
684
|
function w() {
|
|
685
|
-
|
|
685
|
+
u.value = !0;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
|
|
687
|
+
function z() {
|
|
688
|
+
u.value = !1;
|
|
689
689
|
}
|
|
690
690
|
function F(r) {
|
|
691
|
-
var
|
|
692
|
-
if ((
|
|
691
|
+
var L;
|
|
692
|
+
if ((L = p.value) != null && L.contains(r.relatedTarget))
|
|
693
693
|
return;
|
|
694
|
-
let
|
|
695
|
-
a.value ?
|
|
696
|
-
const I =
|
|
697
|
-
O(
|
|
694
|
+
let h;
|
|
695
|
+
a.value ? h = l.items.findIndex((G) => G[l.itemValue] === a.value) : h = Q();
|
|
696
|
+
const I = u.value;
|
|
697
|
+
O(h, I);
|
|
698
698
|
}
|
|
699
699
|
function A(r) {
|
|
700
700
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && r.preventDefault(), r.key) {
|
|
@@ -726,13 +726,13 @@ const wt = /* @__PURE__ */ x({
|
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
function O(r,
|
|
730
|
-
var
|
|
731
|
-
(
|
|
729
|
+
function O(r, h = !1) {
|
|
730
|
+
var L;
|
|
731
|
+
(L = E()[r]) == null || L.focus({ preventScroll: h });
|
|
732
732
|
}
|
|
733
733
|
function E() {
|
|
734
|
-
var
|
|
735
|
-
const r = (
|
|
734
|
+
var h;
|
|
735
|
+
const r = (h = p.value) == null ? void 0 : h.querySelectorAll("li");
|
|
736
736
|
return r ? Array.from(r) : [];
|
|
737
737
|
}
|
|
738
738
|
function K(r) {
|
|
@@ -742,40 +742,40 @@ const wt = /* @__PURE__ */ x({
|
|
|
742
742
|
return E().indexOf(document.activeElement);
|
|
743
743
|
}
|
|
744
744
|
function Q() {
|
|
745
|
-
const r = E(),
|
|
746
|
-
return
|
|
745
|
+
const r = E(), h = r.find((I) => b(I));
|
|
746
|
+
return h ? r.indexOf(h) : -1;
|
|
747
747
|
}
|
|
748
748
|
function M() {
|
|
749
|
-
const r = E(),
|
|
750
|
-
return
|
|
749
|
+
const r = E(), h = [...r].reverse().find((I) => b(I));
|
|
750
|
+
return h ? r.indexOf(h) : -1;
|
|
751
751
|
}
|
|
752
|
-
function U(r,
|
|
753
|
-
return
|
|
752
|
+
function U(r, h, I) {
|
|
753
|
+
return h === "prev" && r === 0 || h === "next" && r === I.length - 1;
|
|
754
754
|
}
|
|
755
755
|
function X(r) {
|
|
756
|
-
const
|
|
757
|
-
return W(
|
|
756
|
+
const h = j();
|
|
757
|
+
return W(h, r);
|
|
758
758
|
}
|
|
759
|
-
function W(r,
|
|
759
|
+
function W(r, h) {
|
|
760
760
|
const I = E();
|
|
761
|
-
if (U(r,
|
|
761
|
+
if (U(r, h, I))
|
|
762
762
|
return r;
|
|
763
|
-
let
|
|
764
|
-
for (; !b(I[
|
|
765
|
-
if (U(
|
|
763
|
+
let L = r + (h === "next" ? 1 : -1);
|
|
764
|
+
for (; !b(I[L]); ) {
|
|
765
|
+
if (U(L, h, I))
|
|
766
766
|
return r;
|
|
767
|
-
|
|
767
|
+
L += h === "next" ? 1 : -1;
|
|
768
768
|
}
|
|
769
|
-
return
|
|
769
|
+
return L;
|
|
770
770
|
}
|
|
771
771
|
function b(r) {
|
|
772
772
|
return r.tabIndex === -2;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
return r ?
|
|
774
|
+
function c(r) {
|
|
775
|
+
return r ? l.items.filter((h) => h.group === r) : l.items;
|
|
776
776
|
}
|
|
777
|
-
return
|
|
778
|
-
() =>
|
|
777
|
+
return C(
|
|
778
|
+
() => l.modelValue,
|
|
779
779
|
(r) => {
|
|
780
780
|
a.value = r;
|
|
781
781
|
}
|
|
@@ -785,36 +785,36 @@ const wt = /* @__PURE__ */ x({
|
|
|
785
785
|
getAdjacentItemIndex: W,
|
|
786
786
|
getFirstFocusableItemIndex: Q,
|
|
787
787
|
getLastFocusableItemIndex: M
|
|
788
|
-
}), (r,
|
|
788
|
+
}), (r, h) => (d(), B(Te(i.value), {
|
|
789
789
|
ref_key: "listRef",
|
|
790
|
-
ref:
|
|
791
|
-
class: D(["q-list", { "q-list--disabled":
|
|
790
|
+
ref: p,
|
|
791
|
+
class: D(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
792
792
|
role: "listbox",
|
|
793
|
-
tabindex:
|
|
793
|
+
tabindex: l.disabled ? -1 : 0,
|
|
794
794
|
onFocus: F,
|
|
795
795
|
onMousedown: w,
|
|
796
|
-
onMouseup:
|
|
796
|
+
onMouseup: z,
|
|
797
797
|
onKeydown: A
|
|
798
798
|
}, {
|
|
799
799
|
default: $(() => [
|
|
800
|
-
(
|
|
800
|
+
(d(!0), v(Z, null, ve(f.value, (I) => (d(), B(k(Ft), {
|
|
801
801
|
key: I.id,
|
|
802
802
|
title: I.title,
|
|
803
803
|
disabled: I.disabled
|
|
804
804
|
}, {
|
|
805
805
|
default: $(() => [
|
|
806
|
-
(
|
|
807
|
-
key:
|
|
808
|
-
value:
|
|
809
|
-
label:
|
|
810
|
-
icon:
|
|
811
|
-
disabled:
|
|
812
|
-
highlighted:
|
|
813
|
-
selected: a.value ===
|
|
814
|
-
onSelect:
|
|
806
|
+
(d(!0), v(Z, null, ve(c(I.id), (L) => (d(), B(k(Ct), {
|
|
807
|
+
key: L[l.itemValue],
|
|
808
|
+
value: L[l.itemValue],
|
|
809
|
+
label: L[l.itemLabel],
|
|
810
|
+
icon: L.icon,
|
|
811
|
+
disabled: l.disabled || L.disabled,
|
|
812
|
+
highlighted: l.highlighted === L[l.itemValue],
|
|
813
|
+
selected: a.value === L[l.itemValue],
|
|
814
|
+
onSelect: m
|
|
815
815
|
}, {
|
|
816
816
|
default: $(() => [
|
|
817
|
-
|
|
817
|
+
y(r.$slots, "item", { item: L })
|
|
818
818
|
]),
|
|
819
819
|
_: 2
|
|
820
820
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -847,15 +847,15 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
847
847
|
},
|
|
848
848
|
emits: ["select"],
|
|
849
849
|
setup(n, { emit: t }) {
|
|
850
|
-
const
|
|
850
|
+
const o = t, e = n, l = le();
|
|
851
851
|
function a() {
|
|
852
|
-
e.disabled ||
|
|
852
|
+
e.disabled || o("select", e.value);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function u(i) {
|
|
855
855
|
i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
|
|
856
856
|
}
|
|
857
|
-
return (i,
|
|
858
|
-
id:
|
|
857
|
+
return (i, f) => (d(), v("li", {
|
|
858
|
+
id: k(l),
|
|
859
859
|
role: "option",
|
|
860
860
|
tabindex: e.disabled ? void 0 : -2,
|
|
861
861
|
class: D([
|
|
@@ -868,15 +868,15 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
868
868
|
]),
|
|
869
869
|
"aria-label": e.label,
|
|
870
870
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
871
|
-
onKeydown:
|
|
871
|
+
onKeydown: u,
|
|
872
872
|
onClick: ee(a, ["stop", "prevent"])
|
|
873
873
|
}, [
|
|
874
|
-
|
|
875
|
-
e.icon ? (
|
|
874
|
+
y(i.$slots, "default", {}, () => [
|
|
875
|
+
e.icon ? (d(), B(k(P), de(ne({ key: 0 }, e.icon)), null, 16)) : S("", !0),
|
|
876
876
|
re(" " + H(e.label), 1)
|
|
877
877
|
]),
|
|
878
878
|
N("div", xt, [
|
|
879
|
-
e.selected ? (
|
|
879
|
+
e.selected ? (d(), B(k(P), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
|
|
880
880
|
])
|
|
881
881
|
], 42, Bt));
|
|
882
882
|
}
|
|
@@ -887,60 +887,60 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
887
887
|
disabled: { type: Boolean }
|
|
888
888
|
},
|
|
889
889
|
setup(n) {
|
|
890
|
-
const t = n,
|
|
891
|
-
return (e,
|
|
890
|
+
const t = n, o = le();
|
|
891
|
+
return (e, l) => (d(), v("ul", {
|
|
892
892
|
class: "q-list-item-group",
|
|
893
893
|
role: "group",
|
|
894
|
-
"aria-labelledby": t.title ?
|
|
894
|
+
"aria-labelledby": t.title ? k(o) : void 0
|
|
895
895
|
}, [
|
|
896
|
-
t.title ? (
|
|
896
|
+
t.title ? (d(), v("li", {
|
|
897
897
|
key: 0,
|
|
898
|
-
id:
|
|
898
|
+
id: k(o),
|
|
899
899
|
class: "q-list-item-group__title",
|
|
900
900
|
role: "presentation"
|
|
901
|
-
}, H(t.title), 9, Et)) :
|
|
902
|
-
|
|
901
|
+
}, H(t.title), 9, Et)) : S("", !0),
|
|
902
|
+
y(e.$slots, "default")
|
|
903
903
|
], 8, Tt));
|
|
904
904
|
}
|
|
905
905
|
}), Me = V(St), Ct = V(Dt), Ft = V(zt);
|
|
906
|
-
function At(n, t,
|
|
907
|
-
const
|
|
908
|
-
let
|
|
909
|
-
i && !Oe(
|
|
910
|
-
const w = { x: 0, y: 0, placement:
|
|
911
|
-
switch (
|
|
906
|
+
function At(n, t, o = "right", e) {
|
|
907
|
+
const l = n.getBoundingClientRect(), a = l.x + window.scrollX, u = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, p = (i == null ? void 0 : i.height) ?? 0;
|
|
908
|
+
let m = o;
|
|
909
|
+
i && !Oe(l, i, m) && (m = Qt(l, i, m));
|
|
910
|
+
const w = { x: 0, y: 0, placement: m };
|
|
911
|
+
switch (m) {
|
|
912
912
|
case "top":
|
|
913
|
-
e === "anchor" ? w.x = a : w.x = a + (
|
|
913
|
+
e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u - p;
|
|
914
914
|
break;
|
|
915
915
|
case "bottom":
|
|
916
|
-
e === "anchor" ? w.x = a : w.x = a + (
|
|
916
|
+
e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u + l.height;
|
|
917
917
|
break;
|
|
918
918
|
case "left":
|
|
919
|
-
w.x = a -
|
|
919
|
+
w.x = a - f, w.y = u + l.height / 2 - p / 2;
|
|
920
920
|
break;
|
|
921
921
|
case "right":
|
|
922
|
-
w.x = a +
|
|
922
|
+
w.x = a + l.width, w.y = u + l.height / 2 - p / 2;
|
|
923
923
|
break;
|
|
924
924
|
}
|
|
925
|
-
return e === "anchor" &&
|
|
925
|
+
return e === "anchor" && l.width >= f && (w.width = l.width), w;
|
|
926
926
|
}
|
|
927
|
-
function Oe(n, t,
|
|
928
|
-
let e = !1,
|
|
929
|
-
switch (
|
|
927
|
+
function Oe(n, t, o) {
|
|
928
|
+
let e = !1, l = !1;
|
|
929
|
+
switch (o) {
|
|
930
930
|
case "top":
|
|
931
|
-
e = xe(n, t),
|
|
931
|
+
e = xe(n, t), l = n.top > t.height;
|
|
932
932
|
break;
|
|
933
933
|
case "bottom":
|
|
934
|
-
e = xe(n, t),
|
|
934
|
+
e = xe(n, t), l = window.innerHeight - n.top - n.height > t.height;
|
|
935
935
|
break;
|
|
936
936
|
case "left":
|
|
937
|
-
e = n.left > t.width,
|
|
937
|
+
e = n.left > t.width, l = Be(n, t);
|
|
938
938
|
break;
|
|
939
939
|
case "right":
|
|
940
|
-
e = window.innerWidth - n.left - n.width > t.width,
|
|
940
|
+
e = window.innerWidth - n.left - n.width > t.width, l = Be(n, t);
|
|
941
941
|
break;
|
|
942
942
|
}
|
|
943
|
-
return e &&
|
|
943
|
+
return e && l;
|
|
944
944
|
}
|
|
945
945
|
function Be(n, t) {
|
|
946
946
|
return window.innerHeight - n.top - n.height / 2 > t.height / 2 && n.top + n.height / 2 > t.height / 2;
|
|
@@ -948,17 +948,17 @@ function Be(n, t) {
|
|
|
948
948
|
function xe(n, t) {
|
|
949
949
|
return window.innerWidth - n.left - n.width / 2 > t.width / 2 && n.left + n.width / 2 > t.width / 2;
|
|
950
950
|
}
|
|
951
|
-
function Qt(n, t,
|
|
951
|
+
function Qt(n, t, o) {
|
|
952
952
|
const e = {
|
|
953
953
|
top: ["bottom", "left", "right"],
|
|
954
954
|
bottom: ["top", "left", "right"],
|
|
955
955
|
left: ["right", "top", "bottom"],
|
|
956
956
|
right: ["left", "top", "bottom"]
|
|
957
957
|
};
|
|
958
|
-
for (const
|
|
959
|
-
if (Oe(n, t,
|
|
960
|
-
return
|
|
961
|
-
return
|
|
958
|
+
for (const l of e[o])
|
|
959
|
+
if (Oe(n, t, l))
|
|
960
|
+
return l;
|
|
961
|
+
return o;
|
|
962
962
|
}
|
|
963
963
|
function ie(n) {
|
|
964
964
|
return typeof n == "string" ? document.querySelector(n) : n && "$el" in n ? n.$el : n;
|
|
@@ -987,7 +987,7 @@ const Rt = {
|
|
|
987
987
|
},
|
|
988
988
|
emits: ["enter", "leave"],
|
|
989
989
|
setup(n, { emit: t }) {
|
|
990
|
-
const
|
|
990
|
+
const o = t, e = n, l = g(() => [
|
|
991
991
|
"q-overlay",
|
|
992
992
|
`q-overlay--${a.placement}`,
|
|
993
993
|
{ "q-overlay--inverted": e.appearance === "inverted" },
|
|
@@ -999,22 +999,22 @@ const Rt = {
|
|
|
999
999
|
left: 0,
|
|
1000
1000
|
width: 0,
|
|
1001
1001
|
placement: e.placement
|
|
1002
|
-
}),
|
|
1003
|
-
|
|
1002
|
+
}), u = g(() => a.visible && !e.disabled);
|
|
1003
|
+
C(
|
|
1004
1004
|
() => e.modelValue,
|
|
1005
1005
|
() => a.visible = e.modelValue
|
|
1006
|
-
),
|
|
1006
|
+
), C(
|
|
1007
1007
|
() => a.visible,
|
|
1008
1008
|
() => a.animating = !0
|
|
1009
1009
|
);
|
|
1010
|
-
const i =
|
|
1011
|
-
let b = 0,
|
|
1010
|
+
const i = g(() => {
|
|
1011
|
+
let b = 0, c = 0;
|
|
1012
1012
|
switch (a.placement) {
|
|
1013
1013
|
case "top":
|
|
1014
|
-
|
|
1014
|
+
c = -(e.offset || 0);
|
|
1015
1015
|
break;
|
|
1016
1016
|
case "bottom":
|
|
1017
|
-
|
|
1017
|
+
c = e.offset || 0;
|
|
1018
1018
|
break;
|
|
1019
1019
|
case "left":
|
|
1020
1020
|
b = -(e.offset || 0);
|
|
@@ -1024,36 +1024,36 @@ const Rt = {
|
|
|
1024
1024
|
break;
|
|
1025
1025
|
}
|
|
1026
1026
|
const r = {
|
|
1027
|
-
top: `${a.top +
|
|
1027
|
+
top: `${a.top + c}px`,
|
|
1028
1028
|
left: `${a.left + b}px`
|
|
1029
1029
|
};
|
|
1030
1030
|
return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (r.width = `${a.width}px`), r;
|
|
1031
|
-
}),
|
|
1032
|
-
function
|
|
1031
|
+
}), f = q(null);
|
|
1032
|
+
function p() {
|
|
1033
1033
|
const b = ie(e.anchor);
|
|
1034
1034
|
if (b) {
|
|
1035
|
-
const
|
|
1036
|
-
a.left =
|
|
1035
|
+
const c = At(b, f.value, e.placement, e.width);
|
|
1036
|
+
a.left = c.x, a.top = c.y, a.width = c.width, a.placement = c.placement;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1040
|
-
let
|
|
1039
|
+
C([() => u.value, () => e.placement], p);
|
|
1040
|
+
let m;
|
|
1041
1041
|
function w() {
|
|
1042
1042
|
const b = e.trigger === "hover" ? e.delay : 0;
|
|
1043
|
-
|
|
1043
|
+
m || (m = window.setTimeout(() => a.visible = !0, b));
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1046
|
-
clearTimeout(
|
|
1045
|
+
function z() {
|
|
1046
|
+
clearTimeout(m), m = void 0, a.visible = !1;
|
|
1047
1047
|
}
|
|
1048
1048
|
function F() {
|
|
1049
|
-
|
|
1049
|
+
u.value ? z() : w();
|
|
1050
1050
|
}
|
|
1051
1051
|
let A;
|
|
1052
1052
|
function R() {
|
|
1053
|
-
|
|
1053
|
+
o("enter");
|
|
1054
1054
|
}
|
|
1055
1055
|
function O() {
|
|
1056
|
-
window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200),
|
|
1056
|
+
window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), o("leave");
|
|
1057
1057
|
}
|
|
1058
1058
|
let E;
|
|
1059
1059
|
function K() {
|
|
@@ -1065,7 +1065,7 @@ const Rt = {
|
|
|
1065
1065
|
b.addEventListener("click", F);
|
|
1066
1066
|
break;
|
|
1067
1067
|
case "hover":
|
|
1068
|
-
b.addEventListener("mouseenter", w), b.addEventListener("mouseleave",
|
|
1068
|
+
b.addEventListener("mouseenter", w), b.addEventListener("mouseleave", z);
|
|
1069
1069
|
break;
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
@@ -1073,20 +1073,20 @@ const Rt = {
|
|
|
1073
1073
|
function j() {
|
|
1074
1074
|
J(() => {
|
|
1075
1075
|
const b = ie(e.anchor);
|
|
1076
|
-
b && (window.addEventListener("scroll",
|
|
1076
|
+
b && (window.addEventListener("scroll", p), window.addEventListener("resize", p), E = new MutationObserver(p), E.observe(b, {
|
|
1077
1077
|
attributes: !1,
|
|
1078
1078
|
childList: !0,
|
|
1079
1079
|
characterData: !0,
|
|
1080
1080
|
subtree: !0
|
|
1081
|
-
}),
|
|
1081
|
+
}), p());
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
1084
1084
|
function Q() {
|
|
1085
|
-
window.removeEventListener("scroll",
|
|
1085
|
+
window.removeEventListener("scroll", p), window.removeEventListener("resize", p), E == null || E.disconnect();
|
|
1086
1086
|
}
|
|
1087
1087
|
let M;
|
|
1088
1088
|
function U() {
|
|
1089
|
-
ie(e.anchor) ? (
|
|
1089
|
+
ie(e.anchor) ? (p(), M = window.setTimeout(U, 100)) : z();
|
|
1090
1090
|
}
|
|
1091
1091
|
function X() {
|
|
1092
1092
|
j(), e.spy && U();
|
|
@@ -1094,21 +1094,21 @@ const Rt = {
|
|
|
1094
1094
|
function W() {
|
|
1095
1095
|
Q(), e.spy && (clearTimeout(M), M = void 0);
|
|
1096
1096
|
}
|
|
1097
|
-
return Ke(W), Ee(
|
|
1097
|
+
return Ke(W), Ee(p), C(
|
|
1098
1098
|
() => e.disabled,
|
|
1099
1099
|
(b) => {
|
|
1100
1100
|
b || K();
|
|
1101
1101
|
},
|
|
1102
1102
|
{ immediate: !0 }
|
|
1103
|
-
),
|
|
1104
|
-
() =>
|
|
1103
|
+
), C(
|
|
1104
|
+
() => u.value,
|
|
1105
1105
|
(b) => {
|
|
1106
1106
|
b ? X() : W();
|
|
1107
1107
|
},
|
|
1108
1108
|
{ immediate: !0 }
|
|
1109
|
-
), (b,
|
|
1110
|
-
|
|
1111
|
-
|
|
1109
|
+
), (b, c) => (d(), v(Z, null, [
|
|
1110
|
+
y(b.$slots, "trigger", { open: u.value }),
|
|
1111
|
+
u.value || a.animating ? (d(), B(We, {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
disabled: !e.attach,
|
|
1114
1114
|
to: e.attach
|
|
@@ -1120,24 +1120,24 @@ const Rt = {
|
|
|
1120
1120
|
onLeave: O
|
|
1121
1121
|
}, {
|
|
1122
1122
|
default: $(() => [
|
|
1123
|
-
|
|
1123
|
+
u.value ? (d(), v("div", {
|
|
1124
1124
|
key: 0,
|
|
1125
|
-
class: D(
|
|
1125
|
+
class: D(l.value),
|
|
1126
1126
|
style: ae(i.value)
|
|
1127
1127
|
}, [
|
|
1128
1128
|
N("div", {
|
|
1129
1129
|
class: "q-overlay__content",
|
|
1130
1130
|
ref_key: "overlay",
|
|
1131
|
-
ref:
|
|
1131
|
+
ref: f
|
|
1132
1132
|
}, [
|
|
1133
|
-
e.arrow ? (
|
|
1134
|
-
|
|
1133
|
+
e.arrow ? (d(), v("div", Rt)) : S("", !0),
|
|
1134
|
+
y(b.$slots, "default")
|
|
1135
1135
|
], 512)
|
|
1136
|
-
], 6)) :
|
|
1136
|
+
], 6)) : S("", !0)
|
|
1137
1137
|
]),
|
|
1138
1138
|
_: 3
|
|
1139
1139
|
}, 8, ["name"])
|
|
1140
|
-
], 8, ["disabled", "to"])) :
|
|
1140
|
+
], 8, ["disabled", "to"])) : S("", !0)
|
|
1141
1141
|
], 64));
|
|
1142
1142
|
}
|
|
1143
1143
|
}), ce = V(Mt), Ot = ["id"], Ut = {
|
|
@@ -1165,47 +1165,47 @@ const Rt = {
|
|
|
1165
1165
|
class: { default: void 0 }
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(n, { expose: t }) {
|
|
1168
|
-
const
|
|
1168
|
+
const o = n, e = q(null), l = g(() => o.required && !o.readonly && !o.disabled);
|
|
1169
1169
|
return t({
|
|
1170
1170
|
fieldRef: e
|
|
1171
|
-
}), (a,
|
|
1172
|
-
id:
|
|
1171
|
+
}), (a, u) => (d(), v("div", {
|
|
1172
|
+
id: o.id,
|
|
1173
1173
|
class: D([
|
|
1174
1174
|
"q-field",
|
|
1175
|
-
`q-field--${
|
|
1175
|
+
`q-field--${o.size}`,
|
|
1176
1176
|
{
|
|
1177
|
-
"q-field--readonly":
|
|
1178
|
-
"q-field--disabled":
|
|
1179
|
-
"q-field--required":
|
|
1177
|
+
"q-field--readonly": o.readonly,
|
|
1178
|
+
"q-field--disabled": o.disabled,
|
|
1179
|
+
"q-field--required": l.value
|
|
1180
1180
|
},
|
|
1181
|
-
|
|
1181
|
+
o.class
|
|
1182
1182
|
])
|
|
1183
1183
|
}, [
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
o.label ? (d(), v("div", Ut, [
|
|
1185
|
+
y(a.$slots, "label.prepend"),
|
|
1186
1186
|
N("label", {
|
|
1187
|
-
for:
|
|
1188
|
-
}, H(
|
|
1189
|
-
|
|
1190
|
-
])) :
|
|
1191
|
-
|
|
1187
|
+
for: o.id
|
|
1188
|
+
}, H(o.label), 9, Nt),
|
|
1189
|
+
y(a.$slots, "label.append")
|
|
1190
|
+
])) : S("", !0),
|
|
1191
|
+
y(a.$slots, "control", {}, () => [
|
|
1192
1192
|
N("div", ne({
|
|
1193
1193
|
class: "q-field__control",
|
|
1194
1194
|
ref_key: "fieldRef",
|
|
1195
1195
|
ref: e
|
|
1196
1196
|
}, a.$attrs), [
|
|
1197
|
-
a.$slots.prepend ? (
|
|
1198
|
-
|
|
1199
|
-
])) :
|
|
1200
|
-
|
|
1201
|
-
a.$slots.append ? (
|
|
1202
|
-
|
|
1203
|
-
])) :
|
|
1197
|
+
a.$slots.prepend ? (d(), v("div", Ht, [
|
|
1198
|
+
y(a.$slots, "prepend")
|
|
1199
|
+
])) : S("", !0),
|
|
1200
|
+
y(a.$slots, "default"),
|
|
1201
|
+
a.$slots.append ? (d(), v("div", Kt, [
|
|
1202
|
+
y(a.$slots, "append")
|
|
1203
|
+
])) : S("", !0)
|
|
1204
1204
|
], 16)
|
|
1205
1205
|
]),
|
|
1206
|
-
a.$slots.extras ? (
|
|
1207
|
-
|
|
1208
|
-
])) :
|
|
1206
|
+
a.$slots.extras ? (d(), v("div", Wt, [
|
|
1207
|
+
y(a.$slots, "extras")
|
|
1208
|
+
])) : S("", !0)
|
|
1209
1209
|
], 10, Ot));
|
|
1210
1210
|
}
|
|
1211
1211
|
}), ke = V(Gt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ x({
|
|
@@ -1226,78 +1226,80 @@ const Rt = {
|
|
|
1226
1226
|
class: { default: void 0 }
|
|
1227
1227
|
},
|
|
1228
1228
|
emits: ["update:modelValue"],
|
|
1229
|
-
setup(n, { expose: t, emit:
|
|
1230
|
-
const e =
|
|
1229
|
+
setup(n, { expose: t, emit: o }) {
|
|
1230
|
+
const e = o, l = n, a = q(l.modelValue), u = q(null), i = q(null), f = g({
|
|
1231
1231
|
get() {
|
|
1232
1232
|
return a.value;
|
|
1233
1233
|
},
|
|
1234
|
-
set(
|
|
1235
|
-
a.value =
|
|
1234
|
+
set(m) {
|
|
1235
|
+
a.value = m, e("update:modelValue", m);
|
|
1236
1236
|
}
|
|
1237
|
-
})
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1237
|
+
}), p = g(
|
|
1238
|
+
() => l.readonly || l.disabled ? "" : l.placeholder
|
|
1239
|
+
);
|
|
1240
|
+
return C(
|
|
1241
|
+
() => l.modelValue,
|
|
1242
|
+
(m) => a.value = m
|
|
1241
1243
|
), t({
|
|
1242
|
-
fieldRef:
|
|
1243
|
-
var
|
|
1244
|
-
return (
|
|
1244
|
+
fieldRef: g(() => {
|
|
1245
|
+
var m;
|
|
1246
|
+
return (m = u.value) == null ? void 0 : m.fieldRef;
|
|
1245
1247
|
}),
|
|
1246
1248
|
inputRef: i
|
|
1247
|
-
}), (
|
|
1249
|
+
}), (m, w) => (d(), B(k(ke), {
|
|
1248
1250
|
ref_key: "fieldRef",
|
|
1249
|
-
ref:
|
|
1250
|
-
class: D(["q-text-field",
|
|
1251
|
-
id:
|
|
1252
|
-
label:
|
|
1253
|
-
size:
|
|
1254
|
-
readonly:
|
|
1255
|
-
disabled:
|
|
1256
|
-
required:
|
|
1251
|
+
ref: u,
|
|
1252
|
+
class: D(["q-text-field", l.class]),
|
|
1253
|
+
id: l.id,
|
|
1254
|
+
label: l.label,
|
|
1255
|
+
size: l.size,
|
|
1256
|
+
readonly: l.readonly,
|
|
1257
|
+
disabled: l.disabled,
|
|
1258
|
+
required: l.required
|
|
1257
1259
|
}, be({
|
|
1258
1260
|
"label.prepend": $(() => [
|
|
1259
|
-
|
|
1261
|
+
y(m.$slots, "label.prepend")
|
|
1260
1262
|
]),
|
|
1261
1263
|
"label.append": $(() => [
|
|
1262
|
-
|
|
1264
|
+
y(m.$slots, "label.append")
|
|
1263
1265
|
]),
|
|
1264
1266
|
default: $(() => [
|
|
1265
1267
|
je(N("input", ne({
|
|
1266
|
-
"onUpdate:modelValue":
|
|
1268
|
+
"onUpdate:modelValue": w[0] || (w[0] = (z) => f.value = z),
|
|
1267
1269
|
ref_key: "inputRef",
|
|
1268
1270
|
ref: i,
|
|
1269
1271
|
class: "q-text-field__input",
|
|
1270
|
-
type:
|
|
1271
|
-
role:
|
|
1272
|
-
required:
|
|
1273
|
-
placeholder:
|
|
1274
|
-
readonly:
|
|
1275
|
-
disabled:
|
|
1276
|
-
maxlength:
|
|
1277
|
-
},
|
|
1278
|
-
[Xe,
|
|
1272
|
+
type: l.type,
|
|
1273
|
+
role: l.role,
|
|
1274
|
+
required: l.required,
|
|
1275
|
+
placeholder: p.value,
|
|
1276
|
+
readonly: l.readonly,
|
|
1277
|
+
disabled: l.disabled,
|
|
1278
|
+
maxlength: l.maxLength
|
|
1279
|
+
}, m.$attrs), null, 16, jt), [
|
|
1280
|
+
[Xe, f.value]
|
|
1279
1281
|
])
|
|
1280
1282
|
]),
|
|
1281
1283
|
_: 2
|
|
1282
1284
|
}, [
|
|
1283
|
-
|
|
1285
|
+
m.$slots.prepend ? {
|
|
1284
1286
|
name: "prepend",
|
|
1285
1287
|
fn: $(() => [
|
|
1286
|
-
|
|
1288
|
+
y(m.$slots, "prepend")
|
|
1287
1289
|
]),
|
|
1288
1290
|
key: "0"
|
|
1289
1291
|
} : void 0,
|
|
1290
|
-
|
|
1292
|
+
m.$slots.append ? {
|
|
1291
1293
|
name: "append",
|
|
1292
1294
|
fn: $(() => [
|
|
1293
|
-
|
|
1295
|
+
y(m.$slots, "append")
|
|
1294
1296
|
]),
|
|
1295
1297
|
key: "1"
|
|
1296
1298
|
} : void 0,
|
|
1297
|
-
|
|
1299
|
+
m.$slots.extras ? {
|
|
1298
1300
|
name: "extras",
|
|
1299
1301
|
fn: $(() => [
|
|
1300
|
-
|
|
1302
|
+
y(m.$slots, "extras")
|
|
1301
1303
|
]),
|
|
1302
1304
|
key: "2"
|
|
1303
1305
|
} : void 0
|
|
@@ -1336,32 +1338,32 @@ const Rt = {
|
|
|
1336
1338
|
class: { default: void 0 }
|
|
1337
1339
|
},
|
|
1338
1340
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1339
|
-
setup(n, { expose: t, emit:
|
|
1340
|
-
const e =
|
|
1341
|
+
setup(n, { expose: t, emit: o }) {
|
|
1342
|
+
const e = o, l = n, a = q(l.modelValue), u = q(!1), i = q(""), f = q(void 0), p = q(null), m = q(null), w = q(null);
|
|
1341
1343
|
Ee(Q);
|
|
1342
|
-
const
|
|
1343
|
-
() =>
|
|
1344
|
-
), F =
|
|
1344
|
+
const z = g(
|
|
1345
|
+
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
1346
|
+
), F = g(() => {
|
|
1345
1347
|
var s;
|
|
1346
|
-
return
|
|
1347
|
-
(
|
|
1348
|
+
return l.filterMode === "manual" || !E.value ? l.items : (s = l.items) == null ? void 0 : s.filter(
|
|
1349
|
+
(_) => _[l.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
|
|
1348
1350
|
);
|
|
1349
|
-
}), A =
|
|
1351
|
+
}), A = g(() => {
|
|
1350
1352
|
var s;
|
|
1351
|
-
return (s =
|
|
1352
|
-
}), R =
|
|
1353
|
-
const s =
|
|
1353
|
+
return (s = l.items) == null ? void 0 : s.find((_) => _[l.itemValue] === a.value);
|
|
1354
|
+
}), R = g(() => {
|
|
1355
|
+
const s = f.value;
|
|
1354
1356
|
if (s !== void 0 && F.value[s])
|
|
1355
1357
|
return F.value[s];
|
|
1356
|
-
}), O =
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1358
|
+
}), O = g(() => {
|
|
1359
|
+
var _;
|
|
1360
|
+
if (f.value === void 0)
|
|
1359
1361
|
return;
|
|
1360
|
-
const s = (
|
|
1362
|
+
const s = (_ = m.value) == null ? void 0 : _.getItem(f.value);
|
|
1361
1363
|
return s == null ? void 0 : s.id;
|
|
1362
|
-
}), E =
|
|
1364
|
+
}), E = g(() => {
|
|
1363
1365
|
var s;
|
|
1364
|
-
return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[
|
|
1366
|
+
return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[l.itemLabel]);
|
|
1365
1367
|
});
|
|
1366
1368
|
function K(s) {
|
|
1367
1369
|
a.value = s, Q(), e("update:modelValue", s);
|
|
@@ -1371,16 +1373,16 @@ const Rt = {
|
|
|
1371
1373
|
}
|
|
1372
1374
|
function Q() {
|
|
1373
1375
|
var s;
|
|
1374
|
-
i.value = ((s = A.value) == null ? void 0 : s[
|
|
1376
|
+
i.value = ((s = A.value) == null ? void 0 : s[l.itemLabel]) || "";
|
|
1375
1377
|
}
|
|
1376
1378
|
function M() {
|
|
1377
|
-
|
|
1379
|
+
u.value || l.readonly || l.disabled || (e("before-show"), u.value = !0);
|
|
1378
1380
|
}
|
|
1379
1381
|
function U() {
|
|
1380
|
-
|
|
1382
|
+
u.value && (e("before-hide"), u.value = !1, f.value = void 0);
|
|
1381
1383
|
}
|
|
1382
1384
|
function X() {
|
|
1383
|
-
K(void 0),
|
|
1385
|
+
K(void 0), f.value = void 0;
|
|
1384
1386
|
}
|
|
1385
1387
|
function W() {
|
|
1386
1388
|
if (M(), A.value !== void 0) {
|
|
@@ -1389,53 +1391,53 @@ const Rt = {
|
|
|
1389
1391
|
}
|
|
1390
1392
|
}
|
|
1391
1393
|
function b(s) {
|
|
1392
|
-
var
|
|
1393
|
-
if (!(!s.key ||
|
|
1394
|
+
var _, T;
|
|
1395
|
+
if (!(!s.key || l.readonly || l.disabled))
|
|
1394
1396
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
|
|
1395
|
-
|
|
1397
|
+
u.value ? U() : X();
|
|
1396
1398
|
else if (["ArrowDown", "ArrowUp"].includes(s.key))
|
|
1397
|
-
|
|
1398
|
-
if (
|
|
1399
|
-
|
|
1399
|
+
u.value ? J(() => {
|
|
1400
|
+
if (f.value === void 0)
|
|
1401
|
+
c();
|
|
1400
1402
|
else {
|
|
1401
1403
|
const Y = s.key === "ArrowDown" ? "next" : "prev";
|
|
1402
|
-
|
|
1404
|
+
h(f.value, Y);
|
|
1403
1405
|
}
|
|
1404
1406
|
}) : (M(), J(() => {
|
|
1405
|
-
s.key === "ArrowDown" ?
|
|
1407
|
+
s.key === "ArrowDown" ? c() : r();
|
|
1406
1408
|
}));
|
|
1407
1409
|
else if (s.key === "Enter") {
|
|
1408
1410
|
if (R.value === void 0)
|
|
1409
1411
|
return;
|
|
1410
|
-
j(R.value[
|
|
1412
|
+
j(R.value[l.itemValue]);
|
|
1411
1413
|
} else
|
|
1412
|
-
s.key === "Home" ?
|
|
1414
|
+
s.key === "Home" ? f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex() : s.key === "End" ? f.value = (T = m.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
|
|
1413
1415
|
}
|
|
1414
|
-
function
|
|
1415
|
-
var s,
|
|
1416
|
+
function c() {
|
|
1417
|
+
var s, _;
|
|
1416
1418
|
if (a.value !== void 0) {
|
|
1417
1419
|
const T = F.value.findIndex(
|
|
1418
|
-
(Y) => Y[
|
|
1420
|
+
(Y) => Y[l.itemValue] === a.value
|
|
1419
1421
|
);
|
|
1420
|
-
T === -1 ?
|
|
1422
|
+
T === -1 ? f.value = (s = m.value) == null ? void 0 : s.getFirstFocusableItemIndex() : f.value = T;
|
|
1421
1423
|
} else
|
|
1422
|
-
|
|
1424
|
+
f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex();
|
|
1423
1425
|
}
|
|
1424
1426
|
function r() {
|
|
1425
1427
|
var s;
|
|
1426
|
-
|
|
1428
|
+
f.value = (s = m.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1427
1429
|
}
|
|
1428
|
-
function
|
|
1430
|
+
function h(s, _) {
|
|
1429
1431
|
var T;
|
|
1430
|
-
|
|
1432
|
+
f.value = (T = m.value) == null ? void 0 : T.getAdjacentItemIndex(s, _);
|
|
1431
1433
|
}
|
|
1432
1434
|
function I(s) {
|
|
1433
|
-
var
|
|
1434
|
-
!((
|
|
1435
|
+
var _, T, Y;
|
|
1436
|
+
!((_ = w.value) != null && _.contains(s.relatedTarget)) && !((Y = (T = p.value) == null ? void 0 : T.fieldRef) != null && Y.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
|
|
1435
1437
|
}
|
|
1436
|
-
function
|
|
1437
|
-
var s,
|
|
1438
|
-
(
|
|
1438
|
+
function L() {
|
|
1439
|
+
var s, _;
|
|
1440
|
+
(_ = (s = p.value) == null ? void 0 : s.inputRef) == null || _.focus();
|
|
1439
1441
|
}
|
|
1440
1442
|
function G() {
|
|
1441
1443
|
e("show");
|
|
@@ -1445,88 +1447,88 @@ const Rt = {
|
|
|
1445
1447
|
}
|
|
1446
1448
|
function we(s) {
|
|
1447
1449
|
var T;
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1450
|
+
const _ = (T = m.value) == null ? void 0 : T.getItem(s);
|
|
1451
|
+
_ == null || _.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1450
1452
|
}
|
|
1451
|
-
return
|
|
1452
|
-
() =>
|
|
1453
|
+
return C(
|
|
1454
|
+
() => l.modelValue,
|
|
1453
1455
|
(s) => {
|
|
1454
1456
|
a.value = s, Q();
|
|
1455
1457
|
}
|
|
1456
|
-
),
|
|
1458
|
+
), C(f, (s) => {
|
|
1457
1459
|
s !== void 0 && we(s);
|
|
1458
|
-
}),
|
|
1459
|
-
!s &&
|
|
1460
|
+
}), C(i, (s) => {
|
|
1461
|
+
!s && z.value ? X() : u.value && l.selectionMode === "automatic" && J(c), e("update:inputValue", s);
|
|
1460
1462
|
}), t({
|
|
1461
|
-
triggerEl:
|
|
1462
|
-
}), (s,
|
|
1463
|
+
triggerEl: p
|
|
1464
|
+
}), (s, _) => {
|
|
1463
1465
|
var T, Y;
|
|
1464
|
-
return
|
|
1465
|
-
te(
|
|
1466
|
+
return d(), v(Z, null, [
|
|
1467
|
+
te(k(Yt), {
|
|
1466
1468
|
modelValue: i.value,
|
|
1467
|
-
"onUpdate:modelValue":
|
|
1468
|
-
id:
|
|
1469
|
-
label:
|
|
1470
|
-
required:
|
|
1469
|
+
"onUpdate:modelValue": _[0] || (_[0] = (se) => i.value = se),
|
|
1470
|
+
id: l.id,
|
|
1471
|
+
label: l.label,
|
|
1472
|
+
required: l.required,
|
|
1471
1473
|
ref_key: "triggerEl",
|
|
1472
|
-
ref:
|
|
1474
|
+
ref: p,
|
|
1473
1475
|
role: "combobox",
|
|
1474
|
-
placeholder:
|
|
1475
|
-
class: D(["q-combobox",
|
|
1476
|
-
readonly:
|
|
1477
|
-
disabled:
|
|
1478
|
-
"aria-expanded":
|
|
1476
|
+
placeholder: l.placeholder,
|
|
1477
|
+
class: D(["q-combobox", l.class]),
|
|
1478
|
+
readonly: l.readonly,
|
|
1479
|
+
disabled: l.disabled,
|
|
1480
|
+
"aria-expanded": u.value,
|
|
1479
1481
|
"aria-haspopup": "listbox",
|
|
1480
1482
|
"aria-autocomplete": "list",
|
|
1481
1483
|
"aria-activedescendant": O.value,
|
|
1482
|
-
size:
|
|
1484
|
+
size: l.size,
|
|
1483
1485
|
onClick: W,
|
|
1484
1486
|
onFocusout: I,
|
|
1485
1487
|
onKeydown: ee(b, ["stop"])
|
|
1486
1488
|
}, be({
|
|
1487
1489
|
"label.prepend": $(() => [
|
|
1488
|
-
|
|
1490
|
+
y(s.$slots, "label.prepend")
|
|
1489
1491
|
]),
|
|
1490
1492
|
"label.append": $(() => [
|
|
1491
|
-
|
|
1493
|
+
y(s.$slots, "label.append")
|
|
1492
1494
|
]),
|
|
1493
1495
|
_: 2
|
|
1494
1496
|
}, [
|
|
1495
1497
|
s.$slots.prepend ? {
|
|
1496
1498
|
name: "prepend",
|
|
1497
1499
|
fn: $(() => [
|
|
1498
|
-
|
|
1500
|
+
y(s.$slots, "prepend")
|
|
1499
1501
|
]),
|
|
1500
1502
|
key: "0"
|
|
1501
1503
|
} : void 0,
|
|
1502
|
-
|
|
1504
|
+
z.value && i.value || s.$slots.append ? {
|
|
1503
1505
|
name: "append",
|
|
1504
1506
|
fn: $(() => [
|
|
1505
|
-
|
|
1507
|
+
z.value && i.value ? (d(), B(k(P), ne({ key: 0 }, l.icons.clear, {
|
|
1506
1508
|
class: "q-combobox__clear",
|
|
1507
1509
|
onClick: ee(X, ["stop", "prevent"])
|
|
1508
|
-
}), null, 16)) :
|
|
1509
|
-
|
|
1510
|
+
}), null, 16)) : S("", !0),
|
|
1511
|
+
y(s.$slots, "append")
|
|
1510
1512
|
]),
|
|
1511
1513
|
key: "1"
|
|
1512
1514
|
} : void 0,
|
|
1513
1515
|
s.$slots.extras ? {
|
|
1514
1516
|
name: "extras",
|
|
1515
1517
|
fn: $(() => [
|
|
1516
|
-
|
|
1518
|
+
y(s.$slots, "extras")
|
|
1517
1519
|
]),
|
|
1518
1520
|
key: "2"
|
|
1519
1521
|
} : void 0
|
|
1520
1522
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1521
|
-
(T =
|
|
1523
|
+
(T = p.value) != null && T.fieldRef ? (d(), B(k(ce), {
|
|
1522
1524
|
key: 0,
|
|
1523
|
-
"model-value":
|
|
1525
|
+
"model-value": u.value,
|
|
1524
1526
|
spy: "",
|
|
1525
1527
|
trigger: "manual",
|
|
1526
1528
|
placement: "bottom",
|
|
1527
1529
|
width: "anchor",
|
|
1528
1530
|
offset: 4,
|
|
1529
|
-
anchor: (Y =
|
|
1531
|
+
anchor: (Y = p.value) == null ? void 0 : Y.fieldRef,
|
|
1530
1532
|
onEnter: G,
|
|
1531
1533
|
onLeave: Ue
|
|
1532
1534
|
}, {
|
|
@@ -1539,39 +1541,39 @@ const Rt = {
|
|
|
1539
1541
|
class: "q-select__body",
|
|
1540
1542
|
onFocusout: I
|
|
1541
1543
|
}, [
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
+
y(s.$slots, "body.prepend"),
|
|
1545
|
+
l.loading ? (d(), B(k(_e), {
|
|
1544
1546
|
key: 0,
|
|
1545
1547
|
class: "q-select__loader",
|
|
1546
1548
|
size: 24
|
|
1547
|
-
})) : F.value.length ? (
|
|
1549
|
+
})) : F.value.length ? (d(), B(k(Me), {
|
|
1548
1550
|
key: 1,
|
|
1549
1551
|
ref_key: "listRef",
|
|
1550
|
-
ref:
|
|
1552
|
+
ref: m,
|
|
1551
1553
|
class: "q-select__items",
|
|
1552
1554
|
modelValue: a.value,
|
|
1553
1555
|
"onUpdate:modelValue": [
|
|
1554
|
-
|
|
1556
|
+
_[1] || (_[1] = (fe) => a.value = fe),
|
|
1555
1557
|
j
|
|
1556
1558
|
],
|
|
1557
|
-
highlighted: (se = R.value) == null ? void 0 : se[
|
|
1559
|
+
highlighted: (se = R.value) == null ? void 0 : se[l.itemValue],
|
|
1558
1560
|
items: F.value,
|
|
1559
1561
|
groups: s.groups,
|
|
1560
|
-
"item-label":
|
|
1561
|
-
"item-value":
|
|
1562
|
-
onMouseup:
|
|
1562
|
+
"item-label": l.itemLabel,
|
|
1563
|
+
"item-value": l.itemValue,
|
|
1564
|
+
onMouseup: L
|
|
1563
1565
|
}, {
|
|
1564
1566
|
item: $(({ item: fe }) => [
|
|
1565
|
-
|
|
1567
|
+
y(s.$slots, "item", { item: fe })
|
|
1566
1568
|
]),
|
|
1567
1569
|
_: 3
|
|
1568
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
1569
|
-
|
|
1570
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), v("div", Pt, H(s.texts.noData), 1)),
|
|
1571
|
+
y(s.$slots, "body.append")
|
|
1570
1572
|
], 544)
|
|
1571
1573
|
];
|
|
1572
1574
|
}),
|
|
1573
1575
|
_: 3
|
|
1574
|
-
}, 8, ["model-value", "anchor"])) :
|
|
1576
|
+
}, 8, ["model-value", "anchor"])) : S("", !0)
|
|
1575
1577
|
], 64);
|
|
1576
1578
|
};
|
|
1577
1579
|
}
|
|
@@ -1600,7 +1602,7 @@ const Rt = {
|
|
|
1600
1602
|
QField: {
|
|
1601
1603
|
size: "block"
|
|
1602
1604
|
}
|
|
1603
|
-
}), (
|
|
1605
|
+
}), (o, e) => (d(), B(k(ke), {
|
|
1604
1606
|
id: t.id,
|
|
1605
1607
|
class: D(t.class),
|
|
1606
1608
|
label: t.label,
|
|
@@ -1611,19 +1613,19 @@ const Rt = {
|
|
|
1611
1613
|
}, {
|
|
1612
1614
|
control: $(() => [
|
|
1613
1615
|
N("div", tn, [
|
|
1614
|
-
|
|
1615
|
-
t.prependIcon ? (
|
|
1616
|
-
te(
|
|
1617
|
-
])) :
|
|
1618
|
-
|
|
1619
|
-
])) :
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
t.appendIcon ? (
|
|
1623
|
-
te(
|
|
1624
|
-
])) :
|
|
1625
|
-
|
|
1626
|
-
])) :
|
|
1616
|
+
o.$slots.prepend || t.prependIcon ? (d(), v("div", nn, [
|
|
1617
|
+
t.prependIcon ? (d(), v("span", ln, [
|
|
1618
|
+
te(k(P), de(he(t.prependIcon)), null, 16)
|
|
1619
|
+
])) : S("", !0),
|
|
1620
|
+
y(o.$slots, "prepend")
|
|
1621
|
+
])) : S("", !0),
|
|
1622
|
+
y(o.$slots, "default"),
|
|
1623
|
+
o.$slots.append || t.appendIcon ? (d(), v("div", on, [
|
|
1624
|
+
t.appendIcon ? (d(), v("span", an, [
|
|
1625
|
+
te(k(P), de(he(t.appendIcon)), null, 16)
|
|
1626
|
+
])) : S("", !0),
|
|
1627
|
+
y(o.$slots, "append")
|
|
1628
|
+
])) : S("", !0)
|
|
1627
1629
|
])
|
|
1628
1630
|
]),
|
|
1629
1631
|
_: 3
|
|
@@ -1636,7 +1638,7 @@ const Rt = {
|
|
|
1636
1638
|
},
|
|
1637
1639
|
setup(n) {
|
|
1638
1640
|
const t = n;
|
|
1639
|
-
return (
|
|
1641
|
+
return (o, e) => (d(), v("div", {
|
|
1640
1642
|
class: D(["q-line-loader", t.class])
|
|
1641
1643
|
}, null, 2));
|
|
1642
1644
|
}
|
|
@@ -1663,7 +1665,7 @@ const Rt = {
|
|
|
1663
1665
|
},
|
|
1664
1666
|
setup(n) {
|
|
1665
1667
|
const t = n;
|
|
1666
|
-
return (
|
|
1668
|
+
return (o, e) => (d(), B(k(ce), {
|
|
1667
1669
|
"model-value": t.modelValue,
|
|
1668
1670
|
class: "q-popover",
|
|
1669
1671
|
trigger: "click",
|
|
@@ -1675,17 +1677,17 @@ const Rt = {
|
|
|
1675
1677
|
spy: t.spy
|
|
1676
1678
|
}, {
|
|
1677
1679
|
default: $(() => [
|
|
1678
|
-
t.title ||
|
|
1680
|
+
t.title || o.$slots.header ? (d(), v("h3", dn, [
|
|
1679
1681
|
re(H(t.title) + " ", 1),
|
|
1680
|
-
|
|
1681
|
-
])) :
|
|
1682
|
-
t.text ||
|
|
1683
|
-
t.html ? (
|
|
1682
|
+
y(o.$slots, "header")
|
|
1683
|
+
])) : S("", !0),
|
|
1684
|
+
t.text || o.$slots.body ? (d(), v("div", un, [
|
|
1685
|
+
t.html ? (d(), v("span", {
|
|
1684
1686
|
key: 0,
|
|
1685
1687
|
innerHTML: t.text
|
|
1686
|
-
}, null, 8, cn)) : (
|
|
1687
|
-
|
|
1688
|
-
])) :
|
|
1688
|
+
}, null, 8, cn)) : (d(), v("span", fn, H(t.text), 1)),
|
|
1689
|
+
y(o.$slots, "body")
|
|
1690
|
+
])) : S("", !0)
|
|
1689
1691
|
]),
|
|
1690
1692
|
_: 3
|
|
1691
1693
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
@@ -1727,84 +1729,84 @@ const Rt = {
|
|
|
1727
1729
|
},
|
|
1728
1730
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1729
1731
|
setup(n, { emit: t }) {
|
|
1730
|
-
const
|
|
1732
|
+
const o = t, e = n, l = q(e.modelValue), a = q(!1), u = q(""), i = q(null), f = q(null), p = q(null), m = g(
|
|
1731
1733
|
() => {
|
|
1732
|
-
var
|
|
1733
|
-
return (
|
|
1734
|
+
var c;
|
|
1735
|
+
return (c = e.items) == null ? void 0 : c.find((r) => r[e.itemValue] === l.value);
|
|
1734
1736
|
}
|
|
1735
|
-
), w =
|
|
1736
|
-
() =>
|
|
1737
|
-
),
|
|
1737
|
+
), w = g(
|
|
1738
|
+
() => m.value ? m.value[e.itemLabel] : ""
|
|
1739
|
+
), z = g(
|
|
1738
1740
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1739
1741
|
);
|
|
1740
|
-
function F(
|
|
1741
|
-
|
|
1742
|
+
function F(c) {
|
|
1743
|
+
l.value = c, o("update:modelValue", c), K();
|
|
1742
1744
|
}
|
|
1743
1745
|
function A() {
|
|
1744
|
-
|
|
1746
|
+
z.value && F(void 0);
|
|
1745
1747
|
}
|
|
1746
1748
|
function R() {
|
|
1747
1749
|
e.readonly || e.disabled || (a.value ? K() : E());
|
|
1748
1750
|
}
|
|
1749
|
-
function O(
|
|
1750
|
-
var r,
|
|
1751
|
-
!((r =
|
|
1751
|
+
function O(c) {
|
|
1752
|
+
var r, h, I;
|
|
1753
|
+
!((r = p.value) != null && r.contains(c.relatedTarget)) && !((I = (h = i.value) == null ? void 0 : h.fieldRef) != null && I.contains(c.relatedTarget)) && K();
|
|
1752
1754
|
}
|
|
1753
1755
|
function E() {
|
|
1754
|
-
a.value || (
|
|
1756
|
+
a.value || (o("before-show"), a.value = !0);
|
|
1755
1757
|
}
|
|
1756
1758
|
function K() {
|
|
1757
|
-
a.value && (
|
|
1759
|
+
a.value && (o("before-hide"), a.value = !1);
|
|
1758
1760
|
}
|
|
1759
1761
|
let j;
|
|
1760
|
-
function Q(
|
|
1761
|
-
if (!(!
|
|
1762
|
-
if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1763
|
-
|
|
1762
|
+
function Q(c) {
|
|
1763
|
+
if (!(!c.key || e.readonly || e.disabled)) {
|
|
1764
|
+
if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (a.value = !0), ["Escape", "Tab"].includes(c.key) && (a.value ? a.value = !1 : e.clearable && c.key === "Escape" && A()), c.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(c.key)) {
|
|
1765
|
+
u.value += c.key.toLowerCase();
|
|
1764
1766
|
for (let r = 0; r < e.items.length; r++)
|
|
1765
|
-
if (e.items[r][e.itemLabel].toLowerCase().startsWith(
|
|
1767
|
+
if (e.items[r][e.itemLabel].toLowerCase().startsWith(u.value)) {
|
|
1766
1768
|
b(r);
|
|
1767
1769
|
break;
|
|
1768
1770
|
}
|
|
1769
1771
|
}
|
|
1770
1772
|
j = window.setTimeout(function() {
|
|
1771
|
-
|
|
1773
|
+
u.value = "";
|
|
1772
1774
|
}, 500);
|
|
1773
1775
|
}
|
|
1774
1776
|
}
|
|
1775
1777
|
function M() {
|
|
1776
|
-
var
|
|
1777
|
-
e.loading ? (
|
|
1778
|
+
var c;
|
|
1779
|
+
e.loading ? (c = p.value) == null || c.focus() : W(), o("show");
|
|
1778
1780
|
}
|
|
1779
1781
|
function U() {
|
|
1780
|
-
X(),
|
|
1782
|
+
X(), o("hide");
|
|
1781
1783
|
}
|
|
1782
1784
|
function X() {
|
|
1783
|
-
var
|
|
1784
|
-
(r = (
|
|
1785
|
+
var c, r;
|
|
1786
|
+
(r = (c = i.value) == null ? void 0 : c.fieldRef) == null || r.focus();
|
|
1785
1787
|
}
|
|
1786
1788
|
function W() {
|
|
1787
|
-
var
|
|
1788
|
-
(
|
|
1789
|
+
var c;
|
|
1790
|
+
(c = f.value) == null || c.$el.focus();
|
|
1789
1791
|
}
|
|
1790
|
-
function b(
|
|
1792
|
+
function b(c) {
|
|
1791
1793
|
var r;
|
|
1792
|
-
(r =
|
|
1794
|
+
(r = f.value) == null || r.focusItem(c);
|
|
1793
1795
|
}
|
|
1794
|
-
return
|
|
1796
|
+
return C(
|
|
1795
1797
|
() => e.modelValue,
|
|
1796
|
-
(
|
|
1797
|
-
|
|
1798
|
+
(c) => {
|
|
1799
|
+
l.value = c;
|
|
1798
1800
|
}
|
|
1799
|
-
),
|
|
1801
|
+
), C(
|
|
1800
1802
|
() => e.loading,
|
|
1801
|
-
(
|
|
1802
|
-
!
|
|
1803
|
+
(c) => {
|
|
1804
|
+
!c && a.value && J(W);
|
|
1803
1805
|
}
|
|
1804
|
-
), (
|
|
1805
|
-
var
|
|
1806
|
-
return
|
|
1807
|
-
te(
|
|
1806
|
+
), (c, r) => {
|
|
1807
|
+
var h, I, L;
|
|
1808
|
+
return d(), v(Z, null, [
|
|
1809
|
+
te(k(ke), {
|
|
1808
1810
|
id: e.id,
|
|
1809
1811
|
label: e.label,
|
|
1810
1812
|
required: e.required,
|
|
@@ -1830,29 +1832,29 @@ const Rt = {
|
|
|
1830
1832
|
onKeydown: ee(Q, ["stop"])
|
|
1831
1833
|
}, be({
|
|
1832
1834
|
append: $(() => [
|
|
1833
|
-
|
|
1835
|
+
z.value && l.value ? (d(), B(k(P), ne({ key: 0 }, e.icons.clear, {
|
|
1834
1836
|
class: "q-select__clear",
|
|
1835
1837
|
onClick: ee(A, ["stop", "prevent"])
|
|
1836
|
-
}), null, 16)) :
|
|
1837
|
-
|
|
1838
|
+
}), null, 16)) : S("", !0),
|
|
1839
|
+
e.readonly ? S("", !0) : (d(), B(k(P), ne({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1838
1840
|
]),
|
|
1839
1841
|
default: $(() => [
|
|
1840
|
-
|
|
1842
|
+
l.value ? (d(), v("span", mn, H(w.value), 1)) : !e.readonly && !e.disabled ? (d(), v("span", vn, H(c.texts.placeholder), 1)) : S("", !0)
|
|
1841
1843
|
]),
|
|
1842
1844
|
_: 2
|
|
1843
1845
|
}, [
|
|
1844
|
-
(
|
|
1846
|
+
(h = m.value) != null && h.icon ? {
|
|
1845
1847
|
name: "prepend",
|
|
1846
1848
|
fn: $(() => {
|
|
1847
1849
|
var G;
|
|
1848
1850
|
return [
|
|
1849
|
-
te(
|
|
1851
|
+
te(k(P), de(he((G = m.value) == null ? void 0 : G.icon)), null, 16)
|
|
1850
1852
|
];
|
|
1851
1853
|
}),
|
|
1852
1854
|
key: "0"
|
|
1853
1855
|
} : void 0
|
|
1854
1856
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1855
|
-
(I = i.value) != null && I.fieldRef ? (
|
|
1857
|
+
(I = i.value) != null && I.fieldRef ? (d(), B(k(ce), {
|
|
1856
1858
|
key: 0,
|
|
1857
1859
|
"model-value": a.value,
|
|
1858
1860
|
spy: "",
|
|
@@ -1860,49 +1862,49 @@ const Rt = {
|
|
|
1860
1862
|
placement: "bottom",
|
|
1861
1863
|
width: "anchor",
|
|
1862
1864
|
offset: 2,
|
|
1863
|
-
anchor: (
|
|
1865
|
+
anchor: (L = i.value) == null ? void 0 : L.fieldRef,
|
|
1864
1866
|
onEnter: M,
|
|
1865
1867
|
onLeave: U
|
|
1866
1868
|
}, {
|
|
1867
1869
|
default: $(() => [
|
|
1868
1870
|
N("div", {
|
|
1869
1871
|
ref_key: "contentRef",
|
|
1870
|
-
ref:
|
|
1872
|
+
ref: p,
|
|
1871
1873
|
class: "q-select__body",
|
|
1872
1874
|
tabindex: "-1",
|
|
1873
1875
|
onFocusout: O,
|
|
1874
1876
|
onKeydown: ee(Q, ["stop"])
|
|
1875
1877
|
}, [
|
|
1876
|
-
|
|
1877
|
-
e.loading ? (
|
|
1878
|
+
y(c.$slots, "body.prepend"),
|
|
1879
|
+
e.loading ? (d(), B(k(_e), {
|
|
1878
1880
|
key: 0,
|
|
1879
1881
|
class: "q-select__loader",
|
|
1880
1882
|
size: 24
|
|
1881
|
-
})) : (
|
|
1883
|
+
})) : (d(), B(k(Me), {
|
|
1882
1884
|
key: 1,
|
|
1883
1885
|
ref_key: "listRef",
|
|
1884
|
-
ref:
|
|
1886
|
+
ref: f,
|
|
1885
1887
|
class: "q-select__items",
|
|
1886
|
-
modelValue:
|
|
1888
|
+
modelValue: l.value,
|
|
1887
1889
|
"onUpdate:modelValue": [
|
|
1888
|
-
r[0] || (r[0] = (G) =>
|
|
1890
|
+
r[0] || (r[0] = (G) => l.value = G),
|
|
1889
1891
|
F
|
|
1890
1892
|
],
|
|
1891
1893
|
items: e.items,
|
|
1892
|
-
groups:
|
|
1894
|
+
groups: c.groups,
|
|
1893
1895
|
"item-label": e.itemLabel,
|
|
1894
1896
|
"item-value": e.itemValue
|
|
1895
1897
|
}, {
|
|
1896
1898
|
item: $(({ item: G }) => [
|
|
1897
|
-
|
|
1899
|
+
y(c.$slots, "item", { item: G })
|
|
1898
1900
|
]),
|
|
1899
1901
|
_: 3
|
|
1900
1902
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
1901
|
-
|
|
1903
|
+
y(c.$slots, "body.append")
|
|
1902
1904
|
], 544)
|
|
1903
1905
|
]),
|
|
1904
1906
|
_: 3
|
|
1905
|
-
}, 8, ["model-value", "anchor"])) :
|
|
1907
|
+
}, 8, ["model-value", "anchor"])) : S("", !0)
|
|
1906
1908
|
], 64);
|
|
1907
1909
|
};
|
|
1908
1910
|
}
|
|
@@ -1924,7 +1926,7 @@ const Rt = {
|
|
|
1924
1926
|
},
|
|
1925
1927
|
setup(n) {
|
|
1926
1928
|
const t = n;
|
|
1927
|
-
return (
|
|
1929
|
+
return (o, e) => (d(), B(k(ce), {
|
|
1928
1930
|
"model-value": t.modelValue,
|
|
1929
1931
|
anchor: t.anchor,
|
|
1930
1932
|
appearance: t.appearance,
|
|
@@ -1937,10 +1939,10 @@ const Rt = {
|
|
|
1937
1939
|
trigger: t.trigger
|
|
1938
1940
|
}, {
|
|
1939
1941
|
default: $(() => [
|
|
1940
|
-
t.html ? (
|
|
1942
|
+
t.html ? (d(), v("span", {
|
|
1941
1943
|
key: 0,
|
|
1942
1944
|
innerHTML: t.text
|
|
1943
|
-
}, null, 8, gn)) : (
|
|
1945
|
+
}, null, 8, gn)) : (d(), v("span", _n, H(t.text), 1))
|
|
1944
1946
|
]),
|
|
1945
1947
|
_: 1
|
|
1946
1948
|
}, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"]));
|