@quidgest/ui 0.8.0 → 0.8.2
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 +3 -6
- package/dist/ui.esm.js +310 -305
- 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.js +61 -60
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Be, computed as k, ref as q, provide as Se, inject as xe, watch as
|
|
1
|
+
import { getCurrentInstance as Be, computed as k, ref as q, provide as Se, inject as xe, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as x, normalizeStyle as se, createElementVNode as P, withModifiers as te, createVNode as M, unref as y, createCommentVNode as L, Fragment as J, createTextVNode as oe, toDisplayString as N, renderSlot as b, toRef as ge, createBlock as E, withCtx as $, renderList as ce, resolveDynamicComponent as Ve, h as _e, normalizeProps as re, mergeProps as Z, reactive as Fe, onBeforeUnmount as Re, onMounted as Ee, nextTick as j, Teleport as Oe, Transition as Ue, withKeys as Me, createSlots as pe, withDirectives as Ne, vModelDynamic as He, guardReactiveProps as ke } from "vue";
|
|
2
2
|
function fe(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -23,7 +23,7 @@ function me(t = {}, n = {}) {
|
|
|
23
23
|
return o;
|
|
24
24
|
}
|
|
25
25
|
const ve = "q-defaults";
|
|
26
|
-
function
|
|
26
|
+
function Ke() {
|
|
27
27
|
var r, s;
|
|
28
28
|
const t = Be();
|
|
29
29
|
if (!t)
|
|
@@ -47,14 +47,14 @@ function Te() {
|
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
49
|
const ae = "q-theme";
|
|
50
|
-
function
|
|
50
|
+
function Ge() {
|
|
51
51
|
const t = xe(ae);
|
|
52
52
|
if (!t)
|
|
53
53
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
const n =
|
|
56
|
+
function $n(t) {
|
|
57
|
+
const n = Ge(), o = {
|
|
58
58
|
activeTheme: q(t),
|
|
59
59
|
themes: n.themes
|
|
60
60
|
};
|
|
@@ -91,7 +91,7 @@ const $e = {
|
|
|
91
91
|
onWarning: "#fff",
|
|
92
92
|
onDanger: "#fff",
|
|
93
93
|
onInfo: "#fff"
|
|
94
|
-
},
|
|
94
|
+
}, We = {
|
|
95
95
|
primary: "#018BD2",
|
|
96
96
|
primaryLight: "#cce7f6",
|
|
97
97
|
primaryDark: "#006fac",
|
|
@@ -123,23 +123,26 @@ const $e = {
|
|
|
123
123
|
onDanger: "#fff",
|
|
124
124
|
onInfo: "#fff"
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function je(t) {
|
|
127
127
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function Pe(t) {
|
|
130
|
+
if (!je(t))
|
|
131
131
|
throw new Error("Invalid color format");
|
|
132
132
|
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
133
133
|
const n = parseInt(t.slice(1, 3), 16), o = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
|
|
134
134
|
return { r: n, g: o, b: e };
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ze(t) {
|
|
137
|
+
return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
138
|
+
}
|
|
139
|
+
function Xe() {
|
|
137
140
|
let t = document.getElementById(
|
|
138
141
|
ae
|
|
139
142
|
);
|
|
140
143
|
return t || (t = document.createElement("style"), t.id = ae, document.head.appendChild(t)), t;
|
|
141
144
|
}
|
|
142
|
-
function
|
|
145
|
+
function Ye(t) {
|
|
143
146
|
let n = "";
|
|
144
147
|
for (const e of t) {
|
|
145
148
|
n += `.q-theme--${e.name} {
|
|
@@ -151,7 +154,7 @@ function Xe(t) {
|
|
|
151
154
|
if (s) {
|
|
152
155
|
n += ` ${qe(r)}: ${s};
|
|
153
156
|
`;
|
|
154
|
-
const d =
|
|
157
|
+
const d = Pe(s);
|
|
155
158
|
n += ` ${qe(r)}-rgb: ${d.r} ${d.g} ${d.b};
|
|
156
159
|
`;
|
|
157
160
|
}
|
|
@@ -159,22 +162,22 @@ function Xe(t) {
|
|
|
159
162
|
n += `}
|
|
160
163
|
`;
|
|
161
164
|
}
|
|
162
|
-
const o =
|
|
165
|
+
const o = Xe();
|
|
163
166
|
o.textContent = n;
|
|
164
167
|
}
|
|
165
168
|
function qe(t) {
|
|
166
|
-
return t ? `--q-theme-${t
|
|
169
|
+
return t ? `--q-theme-${ze(t)}` : "";
|
|
167
170
|
}
|
|
168
|
-
function
|
|
171
|
+
function qn(t = {}) {
|
|
169
172
|
return { install: (o) => {
|
|
170
173
|
const e = t.components || {};
|
|
171
174
|
for (const r in e)
|
|
172
175
|
o.component(r, e[r]);
|
|
173
176
|
const l = t.defaults || {};
|
|
174
|
-
o.provide(ve, q(l)),
|
|
177
|
+
o.provide(ve, q(l)), Ze(o, t.themes);
|
|
175
178
|
} };
|
|
176
179
|
}
|
|
177
|
-
function
|
|
180
|
+
function Ze(t, n) {
|
|
178
181
|
const o = [];
|
|
179
182
|
let e;
|
|
180
183
|
if (!n)
|
|
@@ -185,7 +188,7 @@ function Ye(t, n) {
|
|
|
185
188
|
});
|
|
186
189
|
else
|
|
187
190
|
for (const l of n.themes) {
|
|
188
|
-
const s = { ...l.mode === "light" ? $e :
|
|
191
|
+
const s = { ...l.mode === "light" ? $e : We, ...l.colors };
|
|
189
192
|
o.push({
|
|
190
193
|
name: l.name,
|
|
191
194
|
mode: l.mode,
|
|
@@ -197,14 +200,14 @@ function Ye(t, n) {
|
|
|
197
200
|
activeTheme: q(e),
|
|
198
201
|
themes: o
|
|
199
202
|
};
|
|
200
|
-
|
|
203
|
+
Ye(o), F(l.activeTheme, Je, { immediate: !0 }), t.provide(ae, l);
|
|
201
204
|
}
|
|
202
205
|
}
|
|
203
|
-
function
|
|
206
|
+
function Je(t) {
|
|
204
207
|
const n = document.documentElement, e = Array.from(n.classList).filter((l) => !l.startsWith("q-theme"));
|
|
205
208
|
n.className = e.join(" "), n.classList.add(`q-theme--${t}`);
|
|
206
209
|
}
|
|
207
|
-
const
|
|
210
|
+
const et = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
|
|
208
211
|
/* @__PURE__ */ P("circle", {
|
|
209
212
|
class: "path",
|
|
210
213
|
cx: "50",
|
|
@@ -215,9 +218,9 @@ const Je = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
|
|
|
215
218
|
"stroke-width": "5",
|
|
216
219
|
"stroke-miterlimit": "10"
|
|
217
220
|
})
|
|
218
|
-
], -1),
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
+
], -1), tt = [
|
|
222
|
+
et
|
|
223
|
+
], nt = /* @__PURE__ */ B({
|
|
221
224
|
__name: "QSpinnerLoader",
|
|
222
225
|
props: {
|
|
223
226
|
size: { default: 48 },
|
|
@@ -228,19 +231,20 @@ const Je = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
|
|
|
228
231
|
"font-size": n.size !== 48 ? `${n.size}px` : void 0
|
|
229
232
|
}));
|
|
230
233
|
return (e, l) => (u(), v("div", {
|
|
231
|
-
class:
|
|
234
|
+
class: x(["q-spinner-loader", n.class]),
|
|
232
235
|
style: se(o.value)
|
|
233
|
-
},
|
|
236
|
+
}, tt, 6));
|
|
234
237
|
}
|
|
235
238
|
});
|
|
236
|
-
function
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
+
function lt(t, n) {
|
|
240
|
+
var e;
|
|
241
|
+
const o = ze(n);
|
|
242
|
+
return o ? typeof ((e = t.props) == null ? void 0 : e[o]) < "u" : !1;
|
|
239
243
|
}
|
|
240
244
|
function S(t) {
|
|
241
245
|
const n = t.setup;
|
|
242
246
|
return n && (t.setup = (o, e) => {
|
|
243
|
-
const l =
|
|
247
|
+
const l = Ke();
|
|
244
248
|
if (fe(l.value))
|
|
245
249
|
return n(o, e);
|
|
246
250
|
const r = Be();
|
|
@@ -250,16 +254,16 @@ function S(t) {
|
|
|
250
254
|
get(d, m) {
|
|
251
255
|
var p;
|
|
252
256
|
const h = Reflect.get(d, m), _ = (p = l.value) == null ? void 0 : p[m];
|
|
253
|
-
return typeof m == "string" && !
|
|
257
|
+
return typeof m == "string" && !lt(r.vnode, m) ? _ ?? h : h;
|
|
254
258
|
}
|
|
255
259
|
});
|
|
256
260
|
return n(s, e);
|
|
257
261
|
}), t;
|
|
258
262
|
}
|
|
259
|
-
const he = S(
|
|
263
|
+
const he = S(nt), ot = ["disabled"], at = {
|
|
260
264
|
key: 0,
|
|
261
265
|
class: "q-btn__spinner"
|
|
262
|
-
},
|
|
266
|
+
}, st = { class: "q-btn__content" }, it = /* @__PURE__ */ B({
|
|
263
267
|
__name: "QButton",
|
|
264
268
|
props: {
|
|
265
269
|
active: { type: Boolean },
|
|
@@ -298,25 +302,25 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
298
302
|
});
|
|
299
303
|
return (d, m) => (u(), v("button", {
|
|
300
304
|
type: "button",
|
|
301
|
-
class:
|
|
305
|
+
class: x(s.value),
|
|
302
306
|
disabled: l.value,
|
|
303
307
|
onClick: te(r, ["stop", "prevent"])
|
|
304
308
|
}, [
|
|
305
|
-
d.loading ? (u(), v("div",
|
|
306
|
-
|
|
309
|
+
d.loading ? (u(), v("div", at, [
|
|
310
|
+
M(y(he), { size: 20 })
|
|
307
311
|
])) : L("", !0),
|
|
308
|
-
P("span",
|
|
312
|
+
P("span", st, [
|
|
309
313
|
d.iconOnRight ? (u(), v(J, { key: 0 }, [
|
|
310
|
-
oe(
|
|
314
|
+
oe(N(e.label), 1)
|
|
311
315
|
], 64)) : L("", !0),
|
|
312
316
|
b(d.$slots, "default"),
|
|
313
317
|
d.iconOnRight ? L("", !0) : (u(), v(J, { key: 1 }, [
|
|
314
|
-
oe(
|
|
318
|
+
oe(N(e.label), 1)
|
|
315
319
|
], 64))
|
|
316
320
|
])
|
|
317
|
-
], 10,
|
|
321
|
+
], 10, ot));
|
|
318
322
|
}
|
|
319
|
-
}),
|
|
323
|
+
}), rt = S(it), dt = /* @__PURE__ */ B({
|
|
320
324
|
__name: "QButtonGroup",
|
|
321
325
|
props: {
|
|
322
326
|
disabled: { type: Boolean },
|
|
@@ -334,7 +338,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
334
338
|
elevated: !1
|
|
335
339
|
}
|
|
336
340
|
}), (o, e) => (u(), v("div", {
|
|
337
|
-
class:
|
|
341
|
+
class: x([
|
|
338
342
|
"q-btn-group",
|
|
339
343
|
{
|
|
340
344
|
"q-btn-group--elevated": n.elevated
|
|
@@ -345,7 +349,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
345
349
|
b(o.$slots, "default")
|
|
346
350
|
], 2));
|
|
347
351
|
}
|
|
348
|
-
}),
|
|
352
|
+
}), ut = S(dt), ct = /* @__PURE__ */ B({
|
|
349
353
|
__name: "QButtonToggle",
|
|
350
354
|
props: {
|
|
351
355
|
modelValue: {},
|
|
@@ -359,7 +363,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
359
363
|
emits: ["update:modelValue"],
|
|
360
364
|
setup(t, { emit: n }) {
|
|
361
365
|
const o = n, e = t, l = q(e.modelValue);
|
|
362
|
-
|
|
366
|
+
F(
|
|
363
367
|
() => e.modelValue,
|
|
364
368
|
(d) => l.value = d
|
|
365
369
|
);
|
|
@@ -374,15 +378,15 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
374
378
|
function s(d) {
|
|
375
379
|
r.value === d.key && !e.required ? r.value = void 0 : r.value = d.key;
|
|
376
380
|
}
|
|
377
|
-
return (d, m) => (u(),
|
|
381
|
+
return (d, m) => (u(), E(y(ut), {
|
|
378
382
|
"b-style": "secondary",
|
|
379
|
-
class:
|
|
383
|
+
class: x(e.class),
|
|
380
384
|
disabled: e.disabled,
|
|
381
385
|
borderless: e.borderless,
|
|
382
386
|
elevated: e.elevated
|
|
383
387
|
}, {
|
|
384
388
|
default: $(() => [
|
|
385
|
-
(u(!0), v(J, null, ce(e.options, (h) => (u(),
|
|
389
|
+
(u(!0), v(J, null, ce(e.options, (h) => (u(), E(y(rt), {
|
|
386
390
|
key: h.key,
|
|
387
391
|
title: h.title,
|
|
388
392
|
label: h.label,
|
|
@@ -398,7 +402,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
398
402
|
_: 3
|
|
399
403
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
400
404
|
}
|
|
401
|
-
}),
|
|
405
|
+
}), In = S(ct), ft = /* @__PURE__ */ B({
|
|
402
406
|
__name: "QIcon",
|
|
403
407
|
props: {
|
|
404
408
|
icon: {},
|
|
@@ -410,22 +414,22 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
410
414
|
const n = t, o = k(() => {
|
|
411
415
|
switch (n.type) {
|
|
412
416
|
case "svg":
|
|
413
|
-
return
|
|
417
|
+
return wt;
|
|
414
418
|
case "font":
|
|
415
|
-
return gt;
|
|
416
|
-
case "img":
|
|
417
419
|
return _t;
|
|
420
|
+
case "img":
|
|
421
|
+
return kt;
|
|
418
422
|
default:
|
|
419
423
|
return;
|
|
420
424
|
}
|
|
421
425
|
});
|
|
422
|
-
return (e, l) => (u(),
|
|
423
|
-
class:
|
|
426
|
+
return (e, l) => (u(), E(Ve(o.value), {
|
|
427
|
+
class: x(n.class),
|
|
424
428
|
icon: n.icon,
|
|
425
429
|
size: n.size
|
|
426
430
|
}, null, 8, ["class", "icon", "size"]));
|
|
427
431
|
}
|
|
428
|
-
}),
|
|
432
|
+
}), pt = /* @__PURE__ */ B({
|
|
429
433
|
__name: "QIconFont",
|
|
430
434
|
props: {
|
|
431
435
|
icon: {},
|
|
@@ -439,11 +443,11 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
439
443
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
440
444
|
}));
|
|
441
445
|
return (r, s) => (u(), v("i", {
|
|
442
|
-
class:
|
|
446
|
+
class: x(["q-icon", "q-icon__font", o.value, e.value, n.class]),
|
|
443
447
|
style: se(l.value)
|
|
444
448
|
}, null, 6));
|
|
445
449
|
}
|
|
446
|
-
}),
|
|
450
|
+
}), mt = ["src"], vt = /* @__PURE__ */ B({
|
|
447
451
|
__name: "QIconImg",
|
|
448
452
|
props: {
|
|
449
453
|
icon: {},
|
|
@@ -456,11 +460,11 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
456
460
|
}));
|
|
457
461
|
return (e, l) => (u(), v("img", {
|
|
458
462
|
src: n.icon,
|
|
459
|
-
class:
|
|
463
|
+
class: x(["q-icon", "q-icon__img", n.class]),
|
|
460
464
|
style: se(o.value)
|
|
461
|
-
}, null, 14,
|
|
465
|
+
}, null, 14, mt));
|
|
462
466
|
}
|
|
463
|
-
}), le = {},
|
|
467
|
+
}), le = {}, ht = B({
|
|
464
468
|
name: "InlineSvg",
|
|
465
469
|
emits: ["loaded", "unloaded", "error"],
|
|
466
470
|
inheritAttrs: !1,
|
|
@@ -516,7 +520,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
516
520
|
e !== !1 && e !== null && e !== void 0 && (t[o] = e);
|
|
517
521
|
},
|
|
518
522
|
getSvgContent(t) {
|
|
519
|
-
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)),
|
|
523
|
+
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), bt(t, this.title)), t);
|
|
520
524
|
},
|
|
521
525
|
/**
|
|
522
526
|
* Get svgElSource
|
|
@@ -524,7 +528,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
524
528
|
*/
|
|
525
529
|
async getSource(t) {
|
|
526
530
|
try {
|
|
527
|
-
le[t] || (le[t] =
|
|
531
|
+
le[t] || (le[t] = yt(this.download(t))), this.svgElSource && le[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
528
532
|
const n = await le[t];
|
|
529
533
|
this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
530
534
|
} catch (n) {
|
|
@@ -552,7 +556,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
552
556
|
}
|
|
553
557
|
}
|
|
554
558
|
});
|
|
555
|
-
function
|
|
559
|
+
function bt(t, n) {
|
|
556
560
|
const o = t.getElementsByTagName("title");
|
|
557
561
|
if (o.length)
|
|
558
562
|
o[0].textContent = n;
|
|
@@ -561,7 +565,7 @@ function ht(t, n) {
|
|
|
561
565
|
e.textContent = n, t.insertBefore(e, t.firstChild);
|
|
562
566
|
}
|
|
563
567
|
}
|
|
564
|
-
function
|
|
568
|
+
function yt(t) {
|
|
565
569
|
if (t.getIsPending)
|
|
566
570
|
return t;
|
|
567
571
|
let n = !0;
|
|
@@ -573,7 +577,7 @@ function bt(t) {
|
|
|
573
577
|
);
|
|
574
578
|
return o.getIsPending = () => n, o;
|
|
575
579
|
}
|
|
576
|
-
const
|
|
580
|
+
const gt = /* @__PURE__ */ B({
|
|
577
581
|
__name: "QIconSvg",
|
|
578
582
|
props: {
|
|
579
583
|
icon: {},
|
|
@@ -592,8 +596,8 @@ const yt = /* @__PURE__ */ B({
|
|
|
592
596
|
function s() {
|
|
593
597
|
o("unloaded");
|
|
594
598
|
}
|
|
595
|
-
return (d, m) => (u(),
|
|
596
|
-
class:
|
|
599
|
+
return (d, m) => (u(), E(y(ht), {
|
|
600
|
+
class: x(["q-icon", "q-icon__svg", e.class]),
|
|
597
601
|
src: e.bundle,
|
|
598
602
|
symbol: e.icon,
|
|
599
603
|
style: se(l.value),
|
|
@@ -601,7 +605,7 @@ const yt = /* @__PURE__ */ B({
|
|
|
601
605
|
onUnloaded: s
|
|
602
606
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
603
607
|
}
|
|
604
|
-
}), ee = S(
|
|
608
|
+
}), ee = S(ft), _t = S(pt), kt = S(vt), wt = S(gt), $t = /* @__PURE__ */ B({
|
|
605
609
|
__name: "QList",
|
|
606
610
|
props: {
|
|
607
611
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -622,7 +626,7 @@ const yt = /* @__PURE__ */ B({
|
|
|
622
626
|
function p() {
|
|
623
627
|
s.value = !0;
|
|
624
628
|
}
|
|
625
|
-
function
|
|
629
|
+
function z() {
|
|
626
630
|
s.value = !1;
|
|
627
631
|
}
|
|
628
632
|
function T(a) {
|
|
@@ -630,7 +634,7 @@ const yt = /* @__PURE__ */ B({
|
|
|
630
634
|
if ((I = h.value) != null && I.contains(a.relatedTarget))
|
|
631
635
|
return;
|
|
632
636
|
let f;
|
|
633
|
-
r.value ? f = l.items.findIndex((ue) => ue[l.itemValue] === r.value) : f =
|
|
637
|
+
r.value ? f = l.items.findIndex((ue) => ue[l.itemValue] === r.value) : f = A();
|
|
634
638
|
const g = s.value;
|
|
635
639
|
O(f, g);
|
|
636
640
|
}
|
|
@@ -657,10 +661,10 @@ const yt = /* @__PURE__ */ B({
|
|
|
657
661
|
O(U(a));
|
|
658
662
|
break;
|
|
659
663
|
case "first":
|
|
660
|
-
O(
|
|
664
|
+
O(A());
|
|
661
665
|
break;
|
|
662
666
|
case "last":
|
|
663
|
-
O(
|
|
667
|
+
O(H());
|
|
664
668
|
break;
|
|
665
669
|
}
|
|
666
670
|
}
|
|
@@ -673,34 +677,34 @@ const yt = /* @__PURE__ */ B({
|
|
|
673
677
|
const a = (f = h.value) == null ? void 0 : f.querySelectorAll("li");
|
|
674
678
|
return a ? Array.from(a) : [];
|
|
675
679
|
}
|
|
676
|
-
function
|
|
680
|
+
function C(a) {
|
|
677
681
|
return R()[a];
|
|
678
682
|
}
|
|
679
683
|
function X() {
|
|
680
684
|
return R().indexOf(document.activeElement);
|
|
681
685
|
}
|
|
682
|
-
function
|
|
686
|
+
function A() {
|
|
683
687
|
const a = R(), f = a.find((g) => Y(g));
|
|
684
688
|
return f ? a.indexOf(f) : -1;
|
|
685
689
|
}
|
|
686
|
-
function
|
|
690
|
+
function H() {
|
|
687
691
|
const a = R(), f = [...a].reverse().find((g) => Y(g));
|
|
688
692
|
return f ? a.indexOf(f) : -1;
|
|
689
693
|
}
|
|
690
|
-
function
|
|
694
|
+
function K(a, f, g) {
|
|
691
695
|
return f === "prev" && a === 0 || f === "next" && a === g.length - 1;
|
|
692
696
|
}
|
|
693
697
|
function U(a) {
|
|
694
698
|
const f = X();
|
|
695
|
-
return
|
|
699
|
+
return G(f, a);
|
|
696
700
|
}
|
|
697
|
-
function
|
|
701
|
+
function G(a, f) {
|
|
698
702
|
const g = R();
|
|
699
|
-
if (
|
|
703
|
+
if (K(a, f, g))
|
|
700
704
|
return a;
|
|
701
705
|
let I = a + (f === "next" ? 1 : -1);
|
|
702
706
|
for (; !Y(g[I]); ) {
|
|
703
|
-
if (
|
|
707
|
+
if (K(I, f, g))
|
|
704
708
|
return a;
|
|
705
709
|
I += f === "next" ? 1 : -1;
|
|
706
710
|
}
|
|
@@ -712,36 +716,36 @@ const yt = /* @__PURE__ */ B({
|
|
|
712
716
|
function c(a) {
|
|
713
717
|
return a ? l.items.filter((f) => f.group === a) : l.items;
|
|
714
718
|
}
|
|
715
|
-
return
|
|
719
|
+
return F(
|
|
716
720
|
() => l.modelValue,
|
|
717
721
|
(a) => {
|
|
718
722
|
r.value = a;
|
|
719
723
|
}
|
|
720
724
|
), n({
|
|
721
725
|
focusItem: O,
|
|
722
|
-
getItem:
|
|
723
|
-
getAdjacentItemIndex:
|
|
724
|
-
getFirstFocusableItemIndex:
|
|
725
|
-
getLastFocusableItemIndex:
|
|
726
|
-
}), (a, f) => (u(),
|
|
726
|
+
getItem: C,
|
|
727
|
+
getAdjacentItemIndex: G,
|
|
728
|
+
getFirstFocusableItemIndex: A,
|
|
729
|
+
getLastFocusableItemIndex: H
|
|
730
|
+
}), (a, f) => (u(), E(Ve(d.value), {
|
|
727
731
|
ref_key: "listRef",
|
|
728
732
|
ref: h,
|
|
729
|
-
class:
|
|
733
|
+
class: x(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
730
734
|
role: "listbox",
|
|
731
735
|
tabindex: l.disabled ? -1 : 0,
|
|
732
736
|
onFocus: T,
|
|
733
737
|
onMousedown: p,
|
|
734
|
-
onMouseup:
|
|
738
|
+
onMouseup: z,
|
|
735
739
|
onKeydown: D
|
|
736
740
|
}, {
|
|
737
741
|
default: $(() => [
|
|
738
|
-
(u(!0), v(J, null, ce(m.value, (g) => (u(),
|
|
742
|
+
(u(!0), v(J, null, ce(m.value, (g) => (u(), E(y(Tt), {
|
|
739
743
|
key: g.id,
|
|
740
744
|
title: m.value.length === 1 ? void 0 : g.title,
|
|
741
745
|
disabled: g.disabled
|
|
742
746
|
}, {
|
|
743
747
|
default: $(() => [
|
|
744
|
-
(u(!0), v(J, null, ce(c(g.id), (I) => (u(),
|
|
748
|
+
(u(!0), v(J, null, ce(c(g.id), (I) => (u(), E(y(Dt), {
|
|
745
749
|
key: I[l.itemValue],
|
|
746
750
|
value: I[l.itemValue],
|
|
747
751
|
label: I[l.itemLabel],
|
|
@@ -764,15 +768,15 @@ const yt = /* @__PURE__ */ B({
|
|
|
764
768
|
}, 40, ["class", "tabindex"]));
|
|
765
769
|
}
|
|
766
770
|
});
|
|
767
|
-
let
|
|
771
|
+
let qt = 0;
|
|
768
772
|
function ie(t) {
|
|
769
|
-
return t || `uid-${
|
|
773
|
+
return t || `uid-${++qt}`;
|
|
770
774
|
}
|
|
771
|
-
const
|
|
775
|
+
const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-list-item__check-container" }, Bt = {
|
|
772
776
|
check: {
|
|
773
777
|
icon: "check"
|
|
774
778
|
}
|
|
775
|
-
},
|
|
779
|
+
}, St = /* @__PURE__ */ B({
|
|
776
780
|
__name: "QListItem",
|
|
777
781
|
props: {
|
|
778
782
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -780,7 +784,7 @@ const qt = ["id", "tabindex", "aria-label", "aria-selected"], It = { class: "q-l
|
|
|
780
784
|
icon: { default: void 0 },
|
|
781
785
|
selected: { type: Boolean },
|
|
782
786
|
highlighted: { type: Boolean },
|
|
783
|
-
icons: { default: () =>
|
|
787
|
+
icons: { default: () => Bt },
|
|
784
788
|
disabled: { type: Boolean }
|
|
785
789
|
},
|
|
786
790
|
emits: ["select"],
|
|
@@ -796,7 +800,7 @@ const qt = ["id", "tabindex", "aria-label", "aria-selected"], It = { class: "q-l
|
|
|
796
800
|
id: y(l),
|
|
797
801
|
role: "option",
|
|
798
802
|
tabindex: e.disabled ? void 0 : -2,
|
|
799
|
-
class:
|
|
803
|
+
class: x([
|
|
800
804
|
"q-list-item",
|
|
801
805
|
{
|
|
802
806
|
"q-list-item--disabled": e.disabled,
|
|
@@ -810,15 +814,15 @@ const qt = ["id", "tabindex", "aria-label", "aria-selected"], It = { class: "q-l
|
|
|
810
814
|
onClick: te(r, ["stop", "prevent"])
|
|
811
815
|
}, [
|
|
812
816
|
b(d.$slots, "default", {}, () => [
|
|
813
|
-
e.icon ? (u(),
|
|
814
|
-
oe(" " +
|
|
817
|
+
e.icon ? (u(), E(y(ee), re(Z({ key: 0 }, e.icon)), null, 16)) : L("", !0),
|
|
818
|
+
oe(" " + N(e.label), 1)
|
|
815
819
|
]),
|
|
816
|
-
P("div",
|
|
817
|
-
e.selected ? (u(),
|
|
820
|
+
P("div", Lt, [
|
|
821
|
+
e.selected ? (u(), E(y(ee), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
|
|
818
822
|
])
|
|
819
|
-
], 42,
|
|
823
|
+
], 42, It));
|
|
820
824
|
}
|
|
821
|
-
}),
|
|
825
|
+
}), xt = ["aria-labelledby"], Vt = ["id"], Et = /* @__PURE__ */ B({
|
|
822
826
|
__name: "QListItemGroup",
|
|
823
827
|
props: {
|
|
824
828
|
title: { default: "" },
|
|
@@ -836,15 +840,15 @@ const qt = ["id", "tabindex", "aria-label", "aria-selected"], It = { class: "q-l
|
|
|
836
840
|
id: y(o),
|
|
837
841
|
class: "q-list-item-group__title",
|
|
838
842
|
role: "presentation"
|
|
839
|
-
},
|
|
843
|
+
}, N(n.title), 9, Vt)) : L("", !0),
|
|
840
844
|
b(e.$slots, "default")
|
|
841
|
-
], 8,
|
|
845
|
+
], 8, xt));
|
|
842
846
|
}
|
|
843
|
-
}), Ce = S(
|
|
844
|
-
function
|
|
847
|
+
}), Ce = S($t), Dt = S(St), Tt = S(Et);
|
|
848
|
+
function zt(t, n, o = "right", e) {
|
|
845
849
|
const l = t.getBoundingClientRect(), r = l.x + window.scrollX, s = l.y + window.scrollY, d = n == null ? void 0 : n.getBoundingClientRect(), m = (d == null ? void 0 : d.width) ?? 0, h = (d == null ? void 0 : d.height) ?? 0;
|
|
846
850
|
let _ = o;
|
|
847
|
-
d && !
|
|
851
|
+
d && !Qe(l, d, _) && (_ = Ct(l, d, _));
|
|
848
852
|
const p = { x: 0, y: 0, placement: _ };
|
|
849
853
|
switch (_) {
|
|
850
854
|
case "top":
|
|
@@ -862,7 +866,7 @@ function Tt(t, n, o = "right", e) {
|
|
|
862
866
|
}
|
|
863
867
|
return e === "anchor" && l.width >= m && (p.width = l.width), p;
|
|
864
868
|
}
|
|
865
|
-
function
|
|
869
|
+
function Qe(t, n, o) {
|
|
866
870
|
let e = !1, l = !1;
|
|
867
871
|
switch (o) {
|
|
868
872
|
case "top":
|
|
@@ -894,14 +898,14 @@ function Ct(t, n, o) {
|
|
|
894
898
|
right: ["left", "top", "bottom"]
|
|
895
899
|
};
|
|
896
900
|
for (const l of e[o])
|
|
897
|
-
if (
|
|
901
|
+
if (Qe(t, n, l))
|
|
898
902
|
return l;
|
|
899
903
|
return o;
|
|
900
904
|
}
|
|
901
905
|
function ne(t) {
|
|
902
906
|
return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
|
|
903
907
|
}
|
|
904
|
-
const
|
|
908
|
+
const Qt = ["role"], At = {
|
|
905
909
|
key: 0,
|
|
906
910
|
role: "presentation",
|
|
907
911
|
class: "q-overlay__arrow"
|
|
@@ -941,10 +945,10 @@ const zt = ["role"], Qt = {
|
|
|
941
945
|
width: 0,
|
|
942
946
|
placement: e.placement
|
|
943
947
|
});
|
|
944
|
-
|
|
948
|
+
F(
|
|
945
949
|
() => e.modelValue,
|
|
946
950
|
() => s.visible = e.modelValue
|
|
947
|
-
),
|
|
951
|
+
), F(
|
|
948
952
|
() => s.visible,
|
|
949
953
|
() => s.animating = !0
|
|
950
954
|
);
|
|
@@ -974,7 +978,7 @@ const zt = ["role"], Qt = {
|
|
|
974
978
|
if (e.anchor) {
|
|
975
979
|
const a = ne(e.anchor);
|
|
976
980
|
if (a) {
|
|
977
|
-
const f =
|
|
981
|
+
const f = zt(
|
|
978
982
|
a,
|
|
979
983
|
m.value,
|
|
980
984
|
e.placement,
|
|
@@ -984,24 +988,24 @@ const zt = ["role"], Qt = {
|
|
|
984
988
|
}
|
|
985
989
|
}
|
|
986
990
|
}
|
|
987
|
-
|
|
991
|
+
F([() => s.visible, () => e.placement], h);
|
|
988
992
|
let _;
|
|
989
993
|
function p() {
|
|
990
994
|
T(0);
|
|
991
995
|
}
|
|
992
|
-
function
|
|
996
|
+
function z() {
|
|
993
997
|
T(e.delay);
|
|
994
998
|
}
|
|
995
999
|
function T(a) {
|
|
996
1000
|
_ || (_ = window.setTimeout(() => {
|
|
997
|
-
s.visible = !0,
|
|
1001
|
+
s.visible = !0, j(() => {
|
|
998
1002
|
var f;
|
|
999
1003
|
e.trigger === "click" && ((f = m.value) == null || f.focus());
|
|
1000
1004
|
});
|
|
1001
1005
|
}, a));
|
|
1002
1006
|
}
|
|
1003
1007
|
function D() {
|
|
1004
|
-
clearTimeout(_), _ = void 0, s.visible = !1,
|
|
1008
|
+
clearTimeout(_), _ = void 0, s.visible = !1, j(() => {
|
|
1005
1009
|
if (e.anchor && e.trigger === "click") {
|
|
1006
1010
|
const a = ne(e.anchor);
|
|
1007
1011
|
a == null || a.focus();
|
|
@@ -1015,9 +1019,9 @@ const zt = ["role"], Qt = {
|
|
|
1015
1019
|
function R() {
|
|
1016
1020
|
window.clearTimeout(Q), Q = window.setTimeout(() => s.animating = !1, 200), o("leave");
|
|
1017
1021
|
}
|
|
1018
|
-
let
|
|
1022
|
+
let C;
|
|
1019
1023
|
function X() {
|
|
1020
|
-
|
|
1024
|
+
j(() => {
|
|
1021
1025
|
if (!e.anchor)
|
|
1022
1026
|
return;
|
|
1023
1027
|
const a = ne(e.anchor);
|
|
@@ -1027,17 +1031,17 @@ const zt = ["role"], Qt = {
|
|
|
1027
1031
|
a.addEventListener("click", p);
|
|
1028
1032
|
break;
|
|
1029
1033
|
case "hover":
|
|
1030
|
-
a.addEventListener("mouseenter",
|
|
1034
|
+
a.addEventListener("mouseenter", z), a.addEventListener("mouseleave", D), a.addEventListener("focusin", p), a.addEventListener("focusout", D);
|
|
1031
1035
|
break;
|
|
1032
1036
|
}
|
|
1033
1037
|
});
|
|
1034
1038
|
}
|
|
1035
|
-
function
|
|
1036
|
-
|
|
1039
|
+
function A() {
|
|
1040
|
+
j(() => {
|
|
1037
1041
|
if (!e.anchor)
|
|
1038
1042
|
return;
|
|
1039
1043
|
const a = ne(e.anchor);
|
|
1040
|
-
a && (window.addEventListener("scroll", h), window.addEventListener("resize", h),
|
|
1044
|
+
a && (window.addEventListener("scroll", h), window.addEventListener("resize", h), C = new MutationObserver(h), C.observe(a, {
|
|
1041
1045
|
attributes: !1,
|
|
1042
1046
|
childList: !0,
|
|
1043
1047
|
characterData: !0,
|
|
@@ -1045,7 +1049,7 @@ const zt = ["role"], Qt = {
|
|
|
1045
1049
|
}), h());
|
|
1046
1050
|
});
|
|
1047
1051
|
}
|
|
1048
|
-
function
|
|
1052
|
+
function H() {
|
|
1049
1053
|
if (!e.anchor)
|
|
1050
1054
|
return;
|
|
1051
1055
|
const a = ne(e.anchor);
|
|
@@ -1055,49 +1059,49 @@ const zt = ["role"], Qt = {
|
|
|
1055
1059
|
a.removeEventListener("click", p);
|
|
1056
1060
|
break;
|
|
1057
1061
|
case "hover":
|
|
1058
|
-
a.removeEventListener("mouseenter",
|
|
1062
|
+
a.removeEventListener("mouseenter", z), a.removeEventListener("mouseleave", D), a.removeEventListener("focusin", p), a.removeEventListener("focusout", D);
|
|
1059
1063
|
break;
|
|
1060
1064
|
}
|
|
1061
1065
|
}
|
|
1062
|
-
function
|
|
1063
|
-
window.removeEventListener("scroll", h), window.removeEventListener("resize", h),
|
|
1066
|
+
function K() {
|
|
1067
|
+
window.removeEventListener("scroll", h), window.removeEventListener("resize", h), C == null || C.disconnect();
|
|
1064
1068
|
}
|
|
1065
1069
|
let U;
|
|
1066
|
-
function
|
|
1070
|
+
function G() {
|
|
1067
1071
|
if (!e.anchor)
|
|
1068
1072
|
return;
|
|
1069
|
-
ne(e.anchor) ? (h(), U = window.setTimeout(
|
|
1073
|
+
ne(e.anchor) ? (h(), U = window.setTimeout(G, 100)) : D();
|
|
1070
1074
|
}
|
|
1071
1075
|
function Y() {
|
|
1072
|
-
|
|
1076
|
+
A(), e.spy && G();
|
|
1073
1077
|
}
|
|
1074
1078
|
function c() {
|
|
1075
|
-
|
|
1079
|
+
K(), e.spy && (clearTimeout(U), U = void 0);
|
|
1076
1080
|
}
|
|
1077
|
-
return
|
|
1078
|
-
|
|
1081
|
+
return Re(() => {
|
|
1082
|
+
H(), c();
|
|
1079
1083
|
}), Ee(() => {
|
|
1080
|
-
|
|
1084
|
+
j(() => {
|
|
1081
1085
|
X(), h();
|
|
1082
1086
|
});
|
|
1083
|
-
}),
|
|
1087
|
+
}), F(
|
|
1084
1088
|
() => s.visible,
|
|
1085
1089
|
(a) => {
|
|
1086
1090
|
a ? Y() : c();
|
|
1087
1091
|
},
|
|
1088
1092
|
{ immediate: !0 }
|
|
1089
|
-
), (a, f) => (u(),
|
|
1093
|
+
), (a, f) => (u(), E(Oe, {
|
|
1090
1094
|
disabled: !s.visible && !s.animating || !e.attach,
|
|
1091
1095
|
to: e.attach
|
|
1092
1096
|
}, [
|
|
1093
1097
|
r.value ? (u(), v("div", {
|
|
1094
1098
|
key: 0,
|
|
1095
|
-
class:
|
|
1099
|
+
class: x([
|
|
1096
1100
|
"q-overlay__underlay",
|
|
1097
1101
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1098
1102
|
])
|
|
1099
1103
|
}, null, 2)) : L("", !0),
|
|
1100
|
-
|
|
1104
|
+
M(Ue, {
|
|
1101
1105
|
name: e.transition,
|
|
1102
1106
|
appear: "",
|
|
1103
1107
|
onEnter: O,
|
|
@@ -1106,7 +1110,7 @@ const zt = ["role"], Qt = {
|
|
|
1106
1110
|
default: $(() => [
|
|
1107
1111
|
s.visible ? (u(), v("div", {
|
|
1108
1112
|
key: 0,
|
|
1109
|
-
class:
|
|
1113
|
+
class: x(l.value),
|
|
1110
1114
|
style: se(d.value)
|
|
1111
1115
|
}, [
|
|
1112
1116
|
P("div", Z({
|
|
@@ -1116,31 +1120,31 @@ const zt = ["role"], Qt = {
|
|
|
1116
1120
|
tabindex: "-1",
|
|
1117
1121
|
role: r.value ? "dialog" : void 0
|
|
1118
1122
|
}, a.$attrs, {
|
|
1119
|
-
onKeydown:
|
|
1123
|
+
onKeydown: Me(D, ["escape"]),
|
|
1120
1124
|
onBlur: D
|
|
1121
1125
|
}), [
|
|
1122
|
-
e.arrow ? (u(), v("div",
|
|
1126
|
+
e.arrow ? (u(), v("div", At)) : L("", !0),
|
|
1123
1127
|
b(a.$slots, "default")
|
|
1124
|
-
], 16,
|
|
1128
|
+
], 16, Qt)
|
|
1125
1129
|
], 6)) : L("", !0)
|
|
1126
1130
|
]),
|
|
1127
1131
|
_: 3
|
|
1128
1132
|
}, 8, ["name"])
|
|
1129
1133
|
], 8, ["disabled", "to"]));
|
|
1130
1134
|
}
|
|
1131
|
-
}), de = S(Ft),
|
|
1135
|
+
}), de = S(Ft), Rt = ["id"], Ot = {
|
|
1132
1136
|
key: 0,
|
|
1133
1137
|
class: "q-field__label"
|
|
1134
|
-
},
|
|
1138
|
+
}, Ut = ["for"], Mt = {
|
|
1135
1139
|
key: 0,
|
|
1136
1140
|
class: "q-field__prepend"
|
|
1137
|
-
},
|
|
1141
|
+
}, Nt = {
|
|
1138
1142
|
key: 1,
|
|
1139
1143
|
class: "q-field__append"
|
|
1140
|
-
},
|
|
1144
|
+
}, Ht = {
|
|
1141
1145
|
key: 1,
|
|
1142
1146
|
class: "q-field__extras"
|
|
1143
|
-
},
|
|
1147
|
+
}, Kt = /* @__PURE__ */ B({
|
|
1144
1148
|
inheritAttrs: !1,
|
|
1145
1149
|
__name: "QField",
|
|
1146
1150
|
props: {
|
|
@@ -1159,7 +1163,7 @@ const zt = ["role"], Qt = {
|
|
|
1159
1163
|
fieldRef: l
|
|
1160
1164
|
}), (s, d) => (u(), v("div", {
|
|
1161
1165
|
id: y(e),
|
|
1162
|
-
class:
|
|
1166
|
+
class: x([
|
|
1163
1167
|
"q-field",
|
|
1164
1168
|
`q-field--${o.size}`,
|
|
1165
1169
|
{
|
|
@@ -1170,11 +1174,11 @@ const zt = ["role"], Qt = {
|
|
|
1170
1174
|
o.class
|
|
1171
1175
|
])
|
|
1172
1176
|
}, [
|
|
1173
|
-
o.label ? (u(), v("div",
|
|
1177
|
+
o.label ? (u(), v("div", Ot, [
|
|
1174
1178
|
b(s.$slots, "label.prepend"),
|
|
1175
1179
|
P("label", {
|
|
1176
1180
|
for: o.for
|
|
1177
|
-
},
|
|
1181
|
+
}, N(o.label), 9, Ut),
|
|
1178
1182
|
b(s.$slots, "label.append")
|
|
1179
1183
|
])) : L("", !0),
|
|
1180
1184
|
b(s.$slots, "control", {}, () => [
|
|
@@ -1183,21 +1187,21 @@ const zt = ["role"], Qt = {
|
|
|
1183
1187
|
ref_key: "fieldRef",
|
|
1184
1188
|
ref: l
|
|
1185
1189
|
}, s.$attrs), [
|
|
1186
|
-
s.$slots.prepend ? (u(), v("div",
|
|
1190
|
+
s.$slots.prepend ? (u(), v("div", Mt, [
|
|
1187
1191
|
b(s.$slots, "prepend")
|
|
1188
1192
|
])) : L("", !0),
|
|
1189
1193
|
b(s.$slots, "default"),
|
|
1190
|
-
s.$slots.append ? (u(), v("div",
|
|
1194
|
+
s.$slots.append ? (u(), v("div", Nt, [
|
|
1191
1195
|
b(s.$slots, "append")
|
|
1192
1196
|
])) : L("", !0)
|
|
1193
1197
|
], 16)
|
|
1194
1198
|
]),
|
|
1195
|
-
s.$slots.extras ? (u(), v("div",
|
|
1199
|
+
s.$slots.extras ? (u(), v("div", Ht, [
|
|
1196
1200
|
b(s.$slots, "extras")
|
|
1197
1201
|
])) : L("", !0)
|
|
1198
|
-
], 10,
|
|
1202
|
+
], 10, Rt));
|
|
1199
1203
|
}
|
|
1200
|
-
}), be = S(
|
|
1204
|
+
}), be = S(Kt), Gt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Wt = /* @__PURE__ */ B({
|
|
1201
1205
|
inheritAttrs: !1,
|
|
1202
1206
|
__name: "QTextField",
|
|
1203
1207
|
props: {
|
|
@@ -1226,7 +1230,7 @@ const zt = ["role"], Qt = {
|
|
|
1226
1230
|
}), _ = k(
|
|
1227
1231
|
() => l.readonly || l.disabled ? "" : l.placeholder
|
|
1228
1232
|
);
|
|
1229
|
-
return
|
|
1233
|
+
return F(
|
|
1230
1234
|
() => l.modelValue,
|
|
1231
1235
|
(p) => s.value = p
|
|
1232
1236
|
), n({
|
|
@@ -1235,10 +1239,10 @@ const zt = ["role"], Qt = {
|
|
|
1235
1239
|
return (p = d.value) == null ? void 0 : p.fieldRef;
|
|
1236
1240
|
}),
|
|
1237
1241
|
inputRef: m
|
|
1238
|
-
}), (p,
|
|
1242
|
+
}), (p, z) => (u(), E(y(be), {
|
|
1239
1243
|
ref_key: "fieldRef",
|
|
1240
1244
|
ref: d,
|
|
1241
|
-
class:
|
|
1245
|
+
class: x(["q-text-field", l.class]),
|
|
1242
1246
|
for: y(r),
|
|
1243
1247
|
label: l.label,
|
|
1244
1248
|
size: l.size,
|
|
@@ -1253,8 +1257,8 @@ const zt = ["role"], Qt = {
|
|
|
1253
1257
|
b(p.$slots, "label.append")
|
|
1254
1258
|
]),
|
|
1255
1259
|
default: $(() => [
|
|
1256
|
-
|
|
1257
|
-
"onUpdate:modelValue":
|
|
1260
|
+
Ne(P("input", Z({
|
|
1261
|
+
"onUpdate:modelValue": z[0] || (z[0] = (T) => h.value = T),
|
|
1258
1262
|
ref_key: "inputRef",
|
|
1259
1263
|
ref: m,
|
|
1260
1264
|
id: y(r),
|
|
@@ -1266,8 +1270,8 @@ const zt = ["role"], Qt = {
|
|
|
1266
1270
|
readonly: l.readonly,
|
|
1267
1271
|
disabled: l.disabled,
|
|
1268
1272
|
maxlength: l.maxLength
|
|
1269
|
-
}, p.$attrs), null, 16,
|
|
1270
|
-
[
|
|
1273
|
+
}, p.$attrs), null, 16, Gt), [
|
|
1274
|
+
[He, h.value]
|
|
1271
1275
|
])
|
|
1272
1276
|
]),
|
|
1273
1277
|
_: 2
|
|
@@ -1295,16 +1299,19 @@ const zt = ["role"], Qt = {
|
|
|
1295
1299
|
} : void 0
|
|
1296
1300
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1297
1301
|
}
|
|
1298
|
-
}),
|
|
1302
|
+
}), jt = S(Wt), Pt = {
|
|
1303
|
+
key: 0,
|
|
1304
|
+
class: "q-select__loader"
|
|
1305
|
+
}, Xt = {
|
|
1299
1306
|
key: 2,
|
|
1300
1307
|
class: "q-select__loader"
|
|
1301
|
-
},
|
|
1308
|
+
}, Yt = {
|
|
1302
1309
|
noData: "No data available"
|
|
1303
|
-
},
|
|
1310
|
+
}, Zt = {
|
|
1304
1311
|
clear: {
|
|
1305
1312
|
icon: "close"
|
|
1306
1313
|
}
|
|
1307
|
-
},
|
|
1314
|
+
}, Jt = /* @__PURE__ */ B({
|
|
1308
1315
|
__name: "QCombobox",
|
|
1309
1316
|
props: {
|
|
1310
1317
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1323,15 +1330,15 @@ const zt = ["role"], Qt = {
|
|
|
1323
1330
|
itemValue: { default: "key" },
|
|
1324
1331
|
itemLabel: { default: "label" },
|
|
1325
1332
|
size: { default: void 0 },
|
|
1326
|
-
texts: { default: () =>
|
|
1327
|
-
icons: { default: () =>
|
|
1333
|
+
texts: { default: () => Yt },
|
|
1334
|
+
icons: { default: () => Zt },
|
|
1328
1335
|
class: { default: void 0 }
|
|
1329
1336
|
},
|
|
1330
1337
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1331
1338
|
setup(t, { expose: n, emit: o }) {
|
|
1332
1339
|
const e = o, l = t, r = q(l.modelValue), s = q(!1), d = q(""), m = q(void 0), h = q(null), _ = q(null), p = q(null);
|
|
1333
|
-
Ee(
|
|
1334
|
-
const
|
|
1340
|
+
Ee(A);
|
|
1341
|
+
const z = k(
|
|
1335
1342
|
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
1336
1343
|
), T = k(() => {
|
|
1337
1344
|
var i;
|
|
@@ -1355,45 +1362,45 @@ const zt = ["role"], Qt = {
|
|
|
1355
1362
|
var i;
|
|
1356
1363
|
return d.value.length > 0 && d.value !== ((i = D.value) == null ? void 0 : i[l.itemLabel]);
|
|
1357
1364
|
});
|
|
1358
|
-
function
|
|
1359
|
-
r.value = i,
|
|
1365
|
+
function C(i) {
|
|
1366
|
+
r.value = i, A(), e("update:modelValue", i);
|
|
1360
1367
|
}
|
|
1361
1368
|
function X(i) {
|
|
1362
|
-
|
|
1369
|
+
C(i), K();
|
|
1363
1370
|
}
|
|
1364
|
-
function
|
|
1371
|
+
function A() {
|
|
1365
1372
|
var i;
|
|
1366
1373
|
d.value = ((i = D.value) == null ? void 0 : i[l.itemLabel]) || "";
|
|
1367
1374
|
}
|
|
1368
|
-
function
|
|
1375
|
+
function H() {
|
|
1369
1376
|
s.value || l.readonly || l.disabled || (e("before-show"), s.value = !0);
|
|
1370
1377
|
}
|
|
1371
|
-
function
|
|
1378
|
+
function K() {
|
|
1372
1379
|
s.value && (e("before-hide"), s.value = !1, m.value = void 0);
|
|
1373
1380
|
}
|
|
1374
1381
|
function U() {
|
|
1375
|
-
|
|
1382
|
+
C(void 0), m.value = void 0;
|
|
1376
1383
|
}
|
|
1377
|
-
function
|
|
1378
|
-
if (
|
|
1384
|
+
function G() {
|
|
1385
|
+
if (H(), D.value !== void 0) {
|
|
1379
1386
|
const i = T.value.indexOf(D.value);
|
|
1380
|
-
i !== -1 &&
|
|
1387
|
+
i !== -1 && j(() => ye(i));
|
|
1381
1388
|
}
|
|
1382
1389
|
}
|
|
1383
1390
|
function Y(i) {
|
|
1384
|
-
var w,
|
|
1391
|
+
var w, V;
|
|
1385
1392
|
if (!(!i.key || l.readonly || l.disabled))
|
|
1386
1393
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && (i.preventDefault(), i.stopPropagation()), i.key === "Escape")
|
|
1387
|
-
s.value ?
|
|
1394
|
+
s.value ? K() : U();
|
|
1388
1395
|
else if (["ArrowDown", "ArrowUp"].includes(i.key))
|
|
1389
|
-
s.value ?
|
|
1396
|
+
s.value ? j(() => {
|
|
1390
1397
|
if (m.value === void 0)
|
|
1391
1398
|
c();
|
|
1392
1399
|
else {
|
|
1393
|
-
const
|
|
1394
|
-
f(m.value,
|
|
1400
|
+
const W = i.key === "ArrowDown" ? "next" : "prev";
|
|
1401
|
+
f(m.value, W);
|
|
1395
1402
|
}
|
|
1396
|
-
}) : (
|
|
1403
|
+
}) : (H(), j(() => {
|
|
1397
1404
|
i.key === "ArrowDown" ? c() : a();
|
|
1398
1405
|
}));
|
|
1399
1406
|
else if (i.key === "Enter") {
|
|
@@ -1401,15 +1408,15 @@ const zt = ["role"], Qt = {
|
|
|
1401
1408
|
return;
|
|
1402
1409
|
X(Q.value[l.itemValue]);
|
|
1403
1410
|
} else
|
|
1404
|
-
i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (
|
|
1411
|
+
i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (V = _.value) == null ? void 0 : V.getLastFocusableItemIndex() : (/^[a-z]$/i.test(i.key) || i.key === "Backspace") && H();
|
|
1405
1412
|
}
|
|
1406
1413
|
function c() {
|
|
1407
1414
|
var i, w;
|
|
1408
1415
|
if (r.value !== void 0) {
|
|
1409
|
-
const
|
|
1410
|
-
(
|
|
1416
|
+
const V = T.value.findIndex(
|
|
1417
|
+
(W) => W[l.itemValue] === r.value
|
|
1411
1418
|
);
|
|
1412
|
-
|
|
1419
|
+
V === -1 ? m.value = (i = _.value) == null ? void 0 : i.getFirstFocusableItemIndex() : m.value = V;
|
|
1413
1420
|
} else
|
|
1414
1421
|
m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1415
1422
|
}
|
|
@@ -1418,12 +1425,12 @@ const zt = ["role"], Qt = {
|
|
|
1418
1425
|
m.value = (i = _.value) == null ? void 0 : i.getLastFocusableItemIndex();
|
|
1419
1426
|
}
|
|
1420
1427
|
function f(i, w) {
|
|
1421
|
-
var
|
|
1422
|
-
m.value = (
|
|
1428
|
+
var V;
|
|
1429
|
+
m.value = (V = _.value) == null ? void 0 : V.getAdjacentItemIndex(i, w);
|
|
1423
1430
|
}
|
|
1424
1431
|
function g(i) {
|
|
1425
|
-
var w,
|
|
1426
|
-
!((w = p.value) != null && w.contains(i.relatedTarget)) && !((
|
|
1432
|
+
var w, V, W;
|
|
1433
|
+
!((w = p.value) != null && w.contains(i.relatedTarget)) && !((W = (V = h.value) == null ? void 0 : V.fieldRef) != null && W.contains(i.relatedTarget)) ? (K(), A()) : (i.preventDefault(), i.stopPropagation());
|
|
1427
1434
|
}
|
|
1428
1435
|
function I() {
|
|
1429
1436
|
var i, w;
|
|
@@ -1432,29 +1439,29 @@ const zt = ["role"], Qt = {
|
|
|
1432
1439
|
function ue() {
|
|
1433
1440
|
e("show");
|
|
1434
1441
|
}
|
|
1435
|
-
function
|
|
1442
|
+
function Ae() {
|
|
1436
1443
|
e("hide");
|
|
1437
1444
|
}
|
|
1438
1445
|
function ye(i) {
|
|
1439
|
-
var
|
|
1440
|
-
const w = (
|
|
1446
|
+
var V;
|
|
1447
|
+
const w = (V = _.value) == null ? void 0 : V.getItem(i);
|
|
1441
1448
|
w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1442
1449
|
}
|
|
1443
|
-
return
|
|
1450
|
+
return F(
|
|
1444
1451
|
() => l.modelValue,
|
|
1445
1452
|
(i) => {
|
|
1446
|
-
r.value = i,
|
|
1453
|
+
r.value = i, A();
|
|
1447
1454
|
}
|
|
1448
|
-
),
|
|
1455
|
+
), F(m, (i) => {
|
|
1449
1456
|
i !== void 0 && ye(i);
|
|
1450
|
-
}),
|
|
1451
|
-
!i &&
|
|
1457
|
+
}), F(d, (i) => {
|
|
1458
|
+
!i && z.value ? U() : s.value && l.selectionMode === "automatic" && j(c), e("update:inputValue", i);
|
|
1452
1459
|
}), n({
|
|
1453
1460
|
triggerEl: h
|
|
1454
1461
|
}), (i, w) => (u(), v(J, null, [
|
|
1455
|
-
|
|
1462
|
+
M(y(jt), {
|
|
1456
1463
|
modelValue: d.value,
|
|
1457
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1464
|
+
"onUpdate:modelValue": w[0] || (w[0] = (V) => d.value = V),
|
|
1458
1465
|
id: l.id,
|
|
1459
1466
|
label: l.label,
|
|
1460
1467
|
required: l.required,
|
|
@@ -1462,7 +1469,7 @@ const zt = ["role"], Qt = {
|
|
|
1462
1469
|
ref: h,
|
|
1463
1470
|
role: "combobox",
|
|
1464
1471
|
placeholder: l.placeholder,
|
|
1465
|
-
class:
|
|
1472
|
+
class: x(["q-combobox", l.class]),
|
|
1466
1473
|
readonly: l.readonly,
|
|
1467
1474
|
disabled: l.disabled,
|
|
1468
1475
|
"aria-expanded": s.value,
|
|
@@ -1470,7 +1477,7 @@ const zt = ["role"], Qt = {
|
|
|
1470
1477
|
"aria-autocomplete": "list",
|
|
1471
1478
|
"aria-activedescendant": O.value,
|
|
1472
1479
|
size: l.size,
|
|
1473
|
-
onClick:
|
|
1480
|
+
onClick: G,
|
|
1474
1481
|
onFocusout: g,
|
|
1475
1482
|
onKeydown: te(Y, ["stop"])
|
|
1476
1483
|
}, pe({
|
|
@@ -1489,10 +1496,10 @@ const zt = ["role"], Qt = {
|
|
|
1489
1496
|
]),
|
|
1490
1497
|
key: "0"
|
|
1491
1498
|
} : void 0,
|
|
1492
|
-
|
|
1499
|
+
z.value && d.value || i.$slots.append ? {
|
|
1493
1500
|
name: "append",
|
|
1494
1501
|
fn: $(() => [
|
|
1495
|
-
|
|
1502
|
+
z.value && d.value ? (u(), E(y(ee), Z({ key: 0 }, l.icons.clear, {
|
|
1496
1503
|
class: "q-combobox__clear",
|
|
1497
1504
|
onClick: te(U, ["stop", "prevent"])
|
|
1498
1505
|
}), null, 16)) : L("", !0),
|
|
@@ -1508,7 +1515,7 @@ const zt = ["role"], Qt = {
|
|
|
1508
1515
|
key: "2"
|
|
1509
1516
|
} : void 0
|
|
1510
1517
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1511
|
-
|
|
1518
|
+
M(y(de), {
|
|
1512
1519
|
"model-value": s.value,
|
|
1513
1520
|
spy: "",
|
|
1514
1521
|
trigger: "manual",
|
|
@@ -1517,10 +1524,10 @@ const zt = ["role"], Qt = {
|
|
|
1517
1524
|
offset: 4,
|
|
1518
1525
|
anchor: h.value,
|
|
1519
1526
|
onEnter: ue,
|
|
1520
|
-
onLeave:
|
|
1527
|
+
onLeave: Ae
|
|
1521
1528
|
}, {
|
|
1522
1529
|
default: $(() => {
|
|
1523
|
-
var
|
|
1530
|
+
var V;
|
|
1524
1531
|
return [
|
|
1525
1532
|
P("div", {
|
|
1526
1533
|
ref_key: "contentRef",
|
|
@@ -1529,32 +1536,30 @@ const zt = ["role"], Qt = {
|
|
|
1529
1536
|
onFocusout: g
|
|
1530
1537
|
}, [
|
|
1531
1538
|
b(i.$slots, "body.prepend"),
|
|
1532
|
-
l.loading ? (u(),
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
size: 24
|
|
1536
|
-
})) : T.value.length ? (u(), x(y(Ce), {
|
|
1539
|
+
l.loading ? (u(), v("div", Pt, [
|
|
1540
|
+
M(y(he), { size: 24 })
|
|
1541
|
+
])) : T.value.length ? (u(), E(y(Ce), {
|
|
1537
1542
|
key: 1,
|
|
1538
1543
|
ref_key: "listRef",
|
|
1539
1544
|
ref: _,
|
|
1540
1545
|
class: "q-select__items",
|
|
1541
1546
|
modelValue: r.value,
|
|
1542
1547
|
"onUpdate:modelValue": [
|
|
1543
|
-
w[1] || (w[1] = (
|
|
1548
|
+
w[1] || (w[1] = (W) => r.value = W),
|
|
1544
1549
|
X
|
|
1545
1550
|
],
|
|
1546
|
-
highlighted: (
|
|
1551
|
+
highlighted: (V = Q.value) == null ? void 0 : V[l.itemValue],
|
|
1547
1552
|
items: T.value,
|
|
1548
1553
|
groups: i.groups,
|
|
1549
1554
|
"item-label": l.itemLabel,
|
|
1550
1555
|
"item-value": l.itemValue,
|
|
1551
1556
|
onMouseup: I
|
|
1552
1557
|
}, {
|
|
1553
|
-
item: $(({ item:
|
|
1554
|
-
b(i.$slots, "item", { item:
|
|
1558
|
+
item: $(({ item: W }) => [
|
|
1559
|
+
b(i.$slots, "item", { item: W })
|
|
1555
1560
|
]),
|
|
1556
1561
|
_: 3
|
|
1557
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div",
|
|
1562
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Xt, N(i.texts.noData), 1)),
|
|
1558
1563
|
b(i.$slots, "body.append")
|
|
1559
1564
|
], 544)
|
|
1560
1565
|
];
|
|
@@ -1563,13 +1568,13 @@ const zt = ["role"], Qt = {
|
|
|
1563
1568
|
}, 8, ["model-value", "anchor"])
|
|
1564
1569
|
], 64));
|
|
1565
1570
|
}
|
|
1566
|
-
}),
|
|
1571
|
+
}), Ln = S(Jt), en = {
|
|
1567
1572
|
key: 0,
|
|
1568
1573
|
class: "q-input-group__prepend"
|
|
1569
|
-
},
|
|
1574
|
+
}, tn = { key: 0 }, nn = {
|
|
1570
1575
|
key: 1,
|
|
1571
1576
|
class: "q-input-group__append"
|
|
1572
|
-
},
|
|
1577
|
+
}, ln = { key: 0 }, on = /* @__PURE__ */ B({
|
|
1573
1578
|
__name: "QInputGroup",
|
|
1574
1579
|
props: {
|
|
1575
1580
|
id: { default: void 0 },
|
|
@@ -1586,24 +1591,24 @@ const zt = ["role"], Qt = {
|
|
|
1586
1591
|
QField: {
|
|
1587
1592
|
size: "block"
|
|
1588
1593
|
}
|
|
1589
|
-
}), (o, e) => (u(),
|
|
1594
|
+
}), (o, e) => (u(), E(y(be), {
|
|
1590
1595
|
id: n.id,
|
|
1591
|
-
class:
|
|
1596
|
+
class: x(["q-input-group", n.class]),
|
|
1592
1597
|
label: n.label,
|
|
1593
1598
|
required: n.required,
|
|
1594
1599
|
size: n.size
|
|
1595
1600
|
}, {
|
|
1596
1601
|
default: $(() => [
|
|
1597
|
-
o.$slots.prepend || n.prependIcon ? (u(), v("div",
|
|
1598
|
-
n.prependIcon ? (u(), v("span",
|
|
1599
|
-
|
|
1602
|
+
o.$slots.prepend || n.prependIcon ? (u(), v("div", en, [
|
|
1603
|
+
n.prependIcon ? (u(), v("span", tn, [
|
|
1604
|
+
M(y(ee), re(ke(n.prependIcon)), null, 16)
|
|
1600
1605
|
])) : L("", !0),
|
|
1601
1606
|
b(o.$slots, "prepend")
|
|
1602
1607
|
])) : L("", !0),
|
|
1603
1608
|
b(o.$slots, "default"),
|
|
1604
|
-
o.$slots.append || n.appendIcon ? (u(), v("div",
|
|
1605
|
-
n.appendIcon ? (u(), v("span",
|
|
1606
|
-
|
|
1609
|
+
o.$slots.append || n.appendIcon ? (u(), v("div", nn, [
|
|
1610
|
+
n.appendIcon ? (u(), v("span", ln, [
|
|
1611
|
+
M(y(ee), re(ke(n.appendIcon)), null, 16)
|
|
1607
1612
|
])) : L("", !0),
|
|
1608
1613
|
b(o.$slots, "append")
|
|
1609
1614
|
])) : L("", !0)
|
|
@@ -1611,7 +1616,7 @@ const zt = ["role"], Qt = {
|
|
|
1611
1616
|
_: 3
|
|
1612
1617
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1613
1618
|
}
|
|
1614
|
-
}),
|
|
1619
|
+
}), Bn = S(on), an = /* @__PURE__ */ B({
|
|
1615
1620
|
__name: "QLineLoader",
|
|
1616
1621
|
props: {
|
|
1617
1622
|
class: { default: void 0 }
|
|
@@ -1619,16 +1624,16 @@ const zt = ["role"], Qt = {
|
|
|
1619
1624
|
setup(t) {
|
|
1620
1625
|
const n = t;
|
|
1621
1626
|
return (o, e) => (u(), v("div", {
|
|
1622
|
-
class:
|
|
1627
|
+
class: x(["q-line-loader", n.class])
|
|
1623
1628
|
}, null, 2));
|
|
1624
1629
|
}
|
|
1625
|
-
}),
|
|
1630
|
+
}), Sn = S(an), sn = {
|
|
1626
1631
|
key: 0,
|
|
1627
1632
|
class: "q-popover__header"
|
|
1628
|
-
},
|
|
1633
|
+
}, rn = {
|
|
1629
1634
|
key: 1,
|
|
1630
1635
|
class: "q-popover__body"
|
|
1631
|
-
},
|
|
1636
|
+
}, dn = ["innerHTML"], un = { key: 1 }, cn = /* @__PURE__ */ B({
|
|
1632
1637
|
inheritAttrs: !1,
|
|
1633
1638
|
__name: "QPopover",
|
|
1634
1639
|
props: {
|
|
@@ -1644,7 +1649,7 @@ const zt = ["role"], Qt = {
|
|
|
1644
1649
|
},
|
|
1645
1650
|
setup(t) {
|
|
1646
1651
|
const n = t;
|
|
1647
|
-
return (o, e) => (u(),
|
|
1652
|
+
return (o, e) => (u(), E(y(de), {
|
|
1648
1653
|
"model-value": n.modelValue,
|
|
1649
1654
|
class: "q-popover",
|
|
1650
1655
|
trigger: "click",
|
|
@@ -1655,40 +1660,40 @@ const zt = ["role"], Qt = {
|
|
|
1655
1660
|
placement: n.placement
|
|
1656
1661
|
}, {
|
|
1657
1662
|
default: $(() => [
|
|
1658
|
-
n.title || o.$slots.header ? (u(), v("h3",
|
|
1659
|
-
oe(
|
|
1663
|
+
n.title || o.$slots.header ? (u(), v("h3", sn, [
|
|
1664
|
+
oe(N(n.title) + " ", 1),
|
|
1660
1665
|
b(o.$slots, "header")
|
|
1661
1666
|
])) : L("", !0),
|
|
1662
|
-
n.text || o.$slots.body ? (u(), v("div",
|
|
1667
|
+
n.text || o.$slots.body ? (u(), v("div", rn, [
|
|
1663
1668
|
n.html ? (u(), v("span", {
|
|
1664
1669
|
key: 0,
|
|
1665
1670
|
innerHTML: n.text
|
|
1666
|
-
}, null, 8,
|
|
1671
|
+
}, null, 8, dn)) : (u(), v("span", un, N(n.text), 1)),
|
|
1667
1672
|
b(o.$slots, "body")
|
|
1668
1673
|
])) : L("", !0)
|
|
1669
1674
|
]),
|
|
1670
1675
|
_: 3
|
|
1671
1676
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
1672
1677
|
}
|
|
1673
|
-
}),
|
|
1678
|
+
}), xn = S(cn), fn = {
|
|
1674
1679
|
key: 0,
|
|
1675
1680
|
class: "q-select__value"
|
|
1676
|
-
},
|
|
1681
|
+
}, pn = {
|
|
1677
1682
|
key: 1,
|
|
1678
1683
|
class: "q-select__placeholder"
|
|
1679
|
-
},
|
|
1684
|
+
}, mn = {
|
|
1680
1685
|
key: 0,
|
|
1681
1686
|
class: "q-select__loader"
|
|
1682
|
-
},
|
|
1687
|
+
}, vn = {
|
|
1683
1688
|
placeholder: "Choose..."
|
|
1684
|
-
},
|
|
1689
|
+
}, hn = {
|
|
1685
1690
|
chevron: {
|
|
1686
1691
|
icon: "chevron-down"
|
|
1687
1692
|
},
|
|
1688
1693
|
clear: {
|
|
1689
1694
|
icon: "close"
|
|
1690
1695
|
}
|
|
1691
|
-
},
|
|
1696
|
+
}, bn = /* @__PURE__ */ B({
|
|
1692
1697
|
__name: "QSelect",
|
|
1693
1698
|
props: {
|
|
1694
1699
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1699,13 +1704,13 @@ const zt = ["role"], Qt = {
|
|
|
1699
1704
|
disabled: { type: Boolean },
|
|
1700
1705
|
required: { type: Boolean },
|
|
1701
1706
|
loading: { type: Boolean },
|
|
1702
|
-
icons: { default: () =>
|
|
1707
|
+
icons: { default: () => hn },
|
|
1703
1708
|
items: {},
|
|
1704
1709
|
groups: { default: () => [] },
|
|
1705
1710
|
itemValue: { default: "key" },
|
|
1706
1711
|
itemLabel: { default: "label" },
|
|
1707
1712
|
size: { default: void 0 },
|
|
1708
|
-
texts: { default: () =>
|
|
1713
|
+
texts: { default: () => vn },
|
|
1709
1714
|
class: { default: "" }
|
|
1710
1715
|
},
|
|
1711
1716
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
@@ -1717,30 +1722,30 @@ const zt = ["role"], Qt = {
|
|
|
1717
1722
|
}
|
|
1718
1723
|
), p = k(
|
|
1719
1724
|
() => _.value ? _.value[e.itemLabel] : ""
|
|
1720
|
-
),
|
|
1725
|
+
), z = k(
|
|
1721
1726
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1722
1727
|
);
|
|
1723
1728
|
function T(c) {
|
|
1724
|
-
l.value = c, o("update:modelValue", c),
|
|
1729
|
+
l.value = c, o("update:modelValue", c), C();
|
|
1725
1730
|
}
|
|
1726
1731
|
function D() {
|
|
1727
|
-
|
|
1732
|
+
z.value && T(void 0);
|
|
1728
1733
|
}
|
|
1729
1734
|
function Q() {
|
|
1730
|
-
e.readonly || e.disabled || (r.value ?
|
|
1735
|
+
e.readonly || e.disabled || (r.value ? C() : R());
|
|
1731
1736
|
}
|
|
1732
1737
|
function O(c) {
|
|
1733
1738
|
var a, f, g;
|
|
1734
|
-
!((a = h.value) != null && a.contains(c.relatedTarget)) && !((g = (f = d.value) == null ? void 0 : f.fieldRef) != null && g.contains(c.relatedTarget)) &&
|
|
1739
|
+
!((a = h.value) != null && a.contains(c.relatedTarget)) && !((g = (f = d.value) == null ? void 0 : f.fieldRef) != null && g.contains(c.relatedTarget)) && C();
|
|
1735
1740
|
}
|
|
1736
1741
|
function R() {
|
|
1737
1742
|
r.value || (o("before-show"), r.value = !0);
|
|
1738
1743
|
}
|
|
1739
|
-
function
|
|
1744
|
+
function C() {
|
|
1740
1745
|
r.value && (o("before-hide"), r.value = !1);
|
|
1741
1746
|
}
|
|
1742
1747
|
let X;
|
|
1743
|
-
function
|
|
1748
|
+
function A(c) {
|
|
1744
1749
|
if (!(!c.key || e.readonly || e.disabled)) {
|
|
1745
1750
|
if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (r.value = !0), ["Escape", "Tab"].includes(c.key) && (r.value ? r.value = !1 : e.clearable && c.key === "Escape" && D()), c.key === "Delete" && e.clearable && D(), /^[a-z]$/i.test(c.key)) {
|
|
1746
1751
|
s.value += c.key.toLowerCase();
|
|
@@ -1755,18 +1760,18 @@ const zt = ["role"], Qt = {
|
|
|
1755
1760
|
}, 500);
|
|
1756
1761
|
}
|
|
1757
1762
|
}
|
|
1758
|
-
function
|
|
1763
|
+
function H() {
|
|
1759
1764
|
var c;
|
|
1760
|
-
e.loading ? (c = h.value) == null || c.focus() :
|
|
1765
|
+
e.loading ? (c = h.value) == null || c.focus() : G(), o("show");
|
|
1761
1766
|
}
|
|
1762
|
-
function
|
|
1767
|
+
function K() {
|
|
1763
1768
|
U(), o("hide");
|
|
1764
1769
|
}
|
|
1765
1770
|
function U() {
|
|
1766
1771
|
var c, a;
|
|
1767
1772
|
(a = (c = d.value) == null ? void 0 : c.fieldRef) == null || a.focus();
|
|
1768
1773
|
}
|
|
1769
|
-
function
|
|
1774
|
+
function G() {
|
|
1770
1775
|
var c;
|
|
1771
1776
|
(c = m.value) == null || c.$el.focus();
|
|
1772
1777
|
}
|
|
@@ -1774,20 +1779,20 @@ const zt = ["role"], Qt = {
|
|
|
1774
1779
|
var a;
|
|
1775
1780
|
(a = m.value) == null || a.focusItem(c);
|
|
1776
1781
|
}
|
|
1777
|
-
return
|
|
1782
|
+
return F(
|
|
1778
1783
|
() => e.modelValue,
|
|
1779
1784
|
(c) => {
|
|
1780
1785
|
l.value = c;
|
|
1781
1786
|
}
|
|
1782
|
-
),
|
|
1787
|
+
), F(
|
|
1783
1788
|
() => e.loading,
|
|
1784
1789
|
(c) => {
|
|
1785
|
-
!c && r.value &&
|
|
1790
|
+
!c && r.value && j(G);
|
|
1786
1791
|
}
|
|
1787
1792
|
), (c, a) => {
|
|
1788
1793
|
var f;
|
|
1789
1794
|
return u(), v(J, null, [
|
|
1790
|
-
|
|
1795
|
+
M(y(be), {
|
|
1791
1796
|
id: e.id,
|
|
1792
1797
|
label: e.label,
|
|
1793
1798
|
required: e.required,
|
|
@@ -1795,7 +1800,7 @@ const zt = ["role"], Qt = {
|
|
|
1795
1800
|
ref: d,
|
|
1796
1801
|
role: "combobox",
|
|
1797
1802
|
tabindex: e.disabled ? -1 : 0,
|
|
1798
|
-
class:
|
|
1803
|
+
class: x([
|
|
1799
1804
|
"q-select",
|
|
1800
1805
|
{
|
|
1801
1806
|
"q-select--readonly": e.readonly,
|
|
@@ -1810,20 +1815,20 @@ const zt = ["role"], Qt = {
|
|
|
1810
1815
|
"aria-haspopup": "listbox",
|
|
1811
1816
|
size: e.size,
|
|
1812
1817
|
onClick: Q,
|
|
1813
|
-
onKeydown: te(
|
|
1818
|
+
onKeydown: te(A, ["stop"])
|
|
1814
1819
|
}, pe({
|
|
1815
1820
|
append: $(() => [
|
|
1816
1821
|
b(c.$slots, "append"),
|
|
1817
|
-
|
|
1822
|
+
z.value && l.value ? (u(), E(y(ee), Z({ key: 0 }, e.icons.clear, {
|
|
1818
1823
|
class: "q-select__clear",
|
|
1819
1824
|
onClick: te(D, ["stop", "prevent"])
|
|
1820
1825
|
}), null, 16)) : L("", !0),
|
|
1821
|
-
e.readonly ? L("", !0) : (u(),
|
|
1826
|
+
e.readonly ? L("", !0) : (u(), E(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1822
1827
|
]),
|
|
1823
1828
|
default: $(() => [
|
|
1824
|
-
l.value !== void 0 ? (u(), v("span",
|
|
1829
|
+
l.value !== void 0 ? (u(), v("span", fn, N(p.value), 1)) : (u(), v("span", pn, [
|
|
1825
1830
|
!e.readonly && !e.disabled ? (u(), v(J, { key: 0 }, [
|
|
1826
|
-
oe(
|
|
1831
|
+
oe(N(c.texts.placeholder), 1)
|
|
1827
1832
|
], 64)) : L("", !0)
|
|
1828
1833
|
]))
|
|
1829
1834
|
]),
|
|
@@ -1835,7 +1840,7 @@ const zt = ["role"], Qt = {
|
|
|
1835
1840
|
var g, I;
|
|
1836
1841
|
return [
|
|
1837
1842
|
b(c.$slots, "prepend"),
|
|
1838
|
-
(g = _.value) != null && g.icon ? (u(),
|
|
1843
|
+
(g = _.value) != null && g.icon ? (u(), E(y(ee), re(Z({ key: 0 }, (I = _.value) == null ? void 0 : I.icon)), null, 16)) : L("", !0)
|
|
1839
1844
|
];
|
|
1840
1845
|
}),
|
|
1841
1846
|
key: "0"
|
|
@@ -1848,7 +1853,7 @@ const zt = ["role"], Qt = {
|
|
|
1848
1853
|
key: "1"
|
|
1849
1854
|
} : void 0
|
|
1850
1855
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1851
|
-
|
|
1856
|
+
M(y(de), {
|
|
1852
1857
|
"model-value": r.value,
|
|
1853
1858
|
spy: "",
|
|
1854
1859
|
trigger: "manual",
|
|
@@ -1856,8 +1861,8 @@ const zt = ["role"], Qt = {
|
|
|
1856
1861
|
width: "anchor",
|
|
1857
1862
|
anchor: d.value,
|
|
1858
1863
|
offset: 2,
|
|
1859
|
-
onEnter:
|
|
1860
|
-
onLeave:
|
|
1864
|
+
onEnter: H,
|
|
1865
|
+
onLeave: K
|
|
1861
1866
|
}, {
|
|
1862
1867
|
default: $(() => [
|
|
1863
1868
|
P("div", {
|
|
@@ -1866,12 +1871,12 @@ const zt = ["role"], Qt = {
|
|
|
1866
1871
|
class: "q-select__body",
|
|
1867
1872
|
tabindex: "-1",
|
|
1868
1873
|
onFocusout: O,
|
|
1869
|
-
onKeydown: te(
|
|
1874
|
+
onKeydown: te(A, ["stop"])
|
|
1870
1875
|
}, [
|
|
1871
1876
|
b(c.$slots, "body.prepend"),
|
|
1872
|
-
e.loading ? (u(), v("div",
|
|
1873
|
-
|
|
1874
|
-
])) : (u(),
|
|
1877
|
+
e.loading ? (u(), v("div", mn, [
|
|
1878
|
+
M(y(he), { size: 24 })
|
|
1879
|
+
])) : (u(), E(y(Ce), {
|
|
1875
1880
|
key: 1,
|
|
1876
1881
|
ref_key: "listRef",
|
|
1877
1882
|
ref: m,
|
|
@@ -1899,7 +1904,7 @@ const zt = ["role"], Qt = {
|
|
|
1899
1904
|
], 64);
|
|
1900
1905
|
};
|
|
1901
1906
|
}
|
|
1902
|
-
}),
|
|
1907
|
+
}), Vn = S(bn), yn = /* @__PURE__ */ B({
|
|
1903
1908
|
__name: "QThemeProvider",
|
|
1904
1909
|
props: {
|
|
1905
1910
|
theme: {}
|
|
@@ -1907,12 +1912,12 @@ const zt = ["role"], Qt = {
|
|
|
1907
1912
|
setup(t) {
|
|
1908
1913
|
const n = t;
|
|
1909
1914
|
return (o, e) => (u(), v("div", {
|
|
1910
|
-
class:
|
|
1915
|
+
class: x(["q-theme-provider", `q-theme--${n.theme}`])
|
|
1911
1916
|
}, [
|
|
1912
1917
|
b(o.$slots, "default")
|
|
1913
1918
|
], 2));
|
|
1914
1919
|
}
|
|
1915
|
-
}),
|
|
1920
|
+
}), En = S(yn), gn = ["innerHTML"], _n = { key: 1 }, kn = /* @__PURE__ */ B({
|
|
1916
1921
|
__name: "QTooltip",
|
|
1917
1922
|
props: {
|
|
1918
1923
|
modelValue: { type: Boolean },
|
|
@@ -1935,7 +1940,7 @@ const zt = ["role"], Qt = {
|
|
|
1935
1940
|
b(e.$slots, "anchor", {
|
|
1936
1941
|
props: { "aria-describedby": y(o) }
|
|
1937
1942
|
}),
|
|
1938
|
-
|
|
1943
|
+
M(y(de), {
|
|
1939
1944
|
"model-value": n.modelValue,
|
|
1940
1945
|
anchor: n.anchor,
|
|
1941
1946
|
role: "tooltip",
|
|
@@ -1943,7 +1948,7 @@ const zt = ["role"], Qt = {
|
|
|
1943
1948
|
appearance: n.appearance,
|
|
1944
1949
|
arrow: n.arrow,
|
|
1945
1950
|
attach: n.attach,
|
|
1946
|
-
class:
|
|
1951
|
+
class: x(["q-tooltip", n.class]),
|
|
1947
1952
|
delay: n.delay,
|
|
1948
1953
|
disabled: n.disabled,
|
|
1949
1954
|
placement: n.placement,
|
|
@@ -1953,39 +1958,39 @@ const zt = ["role"], Qt = {
|
|
|
1953
1958
|
n.html ? (u(), v("span", {
|
|
1954
1959
|
key: 0,
|
|
1955
1960
|
innerHTML: n.text
|
|
1956
|
-
}, null, 8,
|
|
1961
|
+
}, null, 8, gn)) : (u(), v("span", _n, N(n.text), 1))
|
|
1957
1962
|
]),
|
|
1958
1963
|
_: 1
|
|
1959
1964
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
1960
1965
|
], 64));
|
|
1961
1966
|
}
|
|
1962
|
-
}),
|
|
1967
|
+
}), Dn = S(kn);
|
|
1963
1968
|
export {
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1969
|
+
rt as QButton,
|
|
1970
|
+
ut as QButtonGroup,
|
|
1971
|
+
In as QButtonToggle,
|
|
1972
|
+
Ln as QCombobox,
|
|
1968
1973
|
be as QField,
|
|
1969
1974
|
ee as QIcon,
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
+
_t as QIconFont,
|
|
1976
|
+
kt as QIconImg,
|
|
1977
|
+
wt as QIconSvg,
|
|
1978
|
+
Bn as QInputGroup,
|
|
1979
|
+
Sn as QLineLoader,
|
|
1975
1980
|
Ce as QList,
|
|
1976
|
-
|
|
1977
|
-
|
|
1981
|
+
Dt as QListItem,
|
|
1982
|
+
Tt as QListItemGroup,
|
|
1978
1983
|
de as QOverlay,
|
|
1979
|
-
|
|
1980
|
-
|
|
1984
|
+
xn as QPopover,
|
|
1985
|
+
Vn as QSelect,
|
|
1981
1986
|
he as QSpinnerLoader,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
+
jt as QTextField,
|
|
1988
|
+
En as QThemeProvider,
|
|
1989
|
+
Dn as QTooltip,
|
|
1990
|
+
qn as createFramework,
|
|
1991
|
+
We as defaultDarkColorScheme,
|
|
1987
1992
|
$e as defaultLightColorScheme,
|
|
1988
|
-
|
|
1989
|
-
|
|
1993
|
+
$n as provideTheme,
|
|
1994
|
+
Ge as useTheme
|
|
1990
1995
|
};
|
|
1991
1996
|
//# sourceMappingURL=ui.esm.js.map
|