@quidgest/ui 0.8.0 → 0.8.1
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/ui.esm.js +208 -204
- 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 +57 -56
- 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 V, normalizeStyle as se, createElementVNode as P, withModifiers as te, createVNode as j, unref as y, createCommentVNode as L, Fragment as J, createTextVNode as oe, toDisplayString as M, renderSlot as b, toRef as ge, createBlock as x, 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 W, 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 wn(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 $n(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 },
|
|
@@ -230,17 +233,18 @@ const Je = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
|
|
|
230
233
|
return (e, l) => (u(), v("div", {
|
|
231
234
|
class: V(["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 },
|
|
@@ -302,10 +306,10 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
302
306
|
disabled: l.value,
|
|
303
307
|
onClick: te(r, ["stop", "prevent"])
|
|
304
308
|
}, [
|
|
305
|
-
d.loading ? (u(), v("div",
|
|
309
|
+
d.loading ? (u(), v("div", at, [
|
|
306
310
|
j(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
314
|
oe(M(e.label), 1)
|
|
311
315
|
], 64)) : L("", !0),
|
|
@@ -314,9 +318,9 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
314
318
|
oe(M(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 },
|
|
@@ -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,7 +378,7 @@ 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(), x(y(
|
|
381
|
+
return (d, m) => (u(), x(y(ut), {
|
|
378
382
|
"b-style": "secondary",
|
|
379
383
|
class: V(e.class),
|
|
380
384
|
disabled: e.disabled,
|
|
@@ -382,7 +386,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
382
386
|
elevated: e.elevated
|
|
383
387
|
}, {
|
|
384
388
|
default: $(() => [
|
|
385
|
-
(u(!0), v(J, null, ce(e.options, (h) => (u(), x(y(
|
|
389
|
+
(u(!0), v(J, null, ce(e.options, (h) => (u(), x(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
|
+
}), qn = S(ct), ft = /* @__PURE__ */ B({
|
|
402
406
|
__name: "QIcon",
|
|
403
407
|
props: {
|
|
404
408
|
icon: {},
|
|
@@ -410,11 +414,11 @@ 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
|
}
|
|
@@ -425,7 +429,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
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: {},
|
|
@@ -443,7 +447,7 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
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: {},
|
|
@@ -458,9 +462,9 @@ const he = S(tt), lt = ["disabled"], ot = {
|
|
|
458
462
|
src: n.icon,
|
|
459
463
|
class: V(["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,7 +596,7 @@ const yt = /* @__PURE__ */ B({
|
|
|
592
596
|
function s() {
|
|
593
597
|
o("unloaded");
|
|
594
598
|
}
|
|
595
|
-
return (d, m) => (u(), x(y(
|
|
599
|
+
return (d, m) => (u(), x(y(ht), {
|
|
596
600
|
class: V(["q-icon", "q-icon__svg", e.class]),
|
|
597
601
|
src: e.bundle,
|
|
598
602
|
symbol: e.icon,
|
|
@@ -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,7 +661,7 @@ 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
667
|
O(N());
|
|
@@ -673,13 +677,13 @@ 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
|
}
|
|
@@ -712,16 +716,16 @@ 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:
|
|
726
|
+
getItem: C,
|
|
723
727
|
getAdjacentItemIndex: K,
|
|
724
|
-
getFirstFocusableItemIndex:
|
|
728
|
+
getFirstFocusableItemIndex: A,
|
|
725
729
|
getLastFocusableItemIndex: N
|
|
726
730
|
}), (a, f) => (u(), x(Ve(d.value), {
|
|
727
731
|
ref_key: "listRef",
|
|
@@ -731,17 +735,17 @@ const yt = /* @__PURE__ */ B({
|
|
|
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(), x(y(
|
|
742
|
+
(u(!0), v(J, null, ce(m.value, (g) => (u(), x(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(), x(y(
|
|
748
|
+
(u(!0), v(J, null, ce(c(g.id), (I) => (u(), x(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"],
|
|
@@ -813,12 +817,12 @@ const qt = ["id", "tabindex", "aria-label", "aria-selected"], It = { class: "q-l
|
|
|
813
817
|
e.icon ? (u(), x(y(ee), re(Z({ key: 0 }, e.icon)), null, 16)) : L("", !0),
|
|
814
818
|
oe(" " + M(e.label), 1)
|
|
815
819
|
]),
|
|
816
|
-
P("div",
|
|
820
|
+
P("div", Lt, [
|
|
817
821
|
e.selected ? (u(), x(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
|
-
}, M(n.title), 9,
|
|
843
|
+
}, M(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,12 +988,12 @@ 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) {
|
|
@@ -1015,7 +1019,7 @@ 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
|
W(() => {
|
|
1021
1025
|
if (!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
|
|
1039
|
+
function A() {
|
|
1036
1040
|
W(() => {
|
|
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,
|
|
@@ -1055,12 +1059,12 @@ 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
1066
|
function H() {
|
|
1063
|
-
window.removeEventListener("scroll", h), window.removeEventListener("resize", h),
|
|
1067
|
+
window.removeEventListener("scroll", h), window.removeEventListener("resize", h), C == null || C.disconnect();
|
|
1064
1068
|
}
|
|
1065
1069
|
let U;
|
|
1066
1070
|
function K() {
|
|
@@ -1069,24 +1073,24 @@ const zt = ["role"], Qt = {
|
|
|
1069
1073
|
ne(e.anchor) ? (h(), U = window.setTimeout(K, 100)) : D();
|
|
1070
1074
|
}
|
|
1071
1075
|
function Y() {
|
|
1072
|
-
|
|
1076
|
+
A(), e.spy && K();
|
|
1073
1077
|
}
|
|
1074
1078
|
function c() {
|
|
1075
1079
|
H(), e.spy && (clearTimeout(U), U = void 0);
|
|
1076
1080
|
}
|
|
1077
|
-
return
|
|
1081
|
+
return Re(() => {
|
|
1078
1082
|
N(), c();
|
|
1079
1083
|
}), Ee(() => {
|
|
1080
1084
|
W(() => {
|
|
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(), x(
|
|
1093
|
+
), (a, f) => (u(), x(Oe, {
|
|
1090
1094
|
disabled: !s.visible && !s.animating || !e.attach,
|
|
1091
1095
|
to: e.attach
|
|
1092
1096
|
}, [
|
|
@@ -1097,7 +1101,7 @@ const zt = ["role"], Qt = {
|
|
|
1097
1101
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1098
1102
|
])
|
|
1099
1103
|
}, null, 2)) : L("", !0),
|
|
1100
|
-
j(
|
|
1104
|
+
j(Ue, {
|
|
1101
1105
|
name: e.transition,
|
|
1102
1106
|
appear: "",
|
|
1103
1107
|
onEnter: O,
|
|
@@ -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: {
|
|
@@ -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
|
-
}, M(o.label), 9,
|
|
1181
|
+
}, M(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,7 +1239,7 @@ 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(), x(y(be), {
|
|
1239
1243
|
ref_key: "fieldRef",
|
|
1240
1244
|
ref: d,
|
|
1241
1245
|
class: V(["q-text-field", l.class]),
|
|
@@ -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,16 @@ 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 = {
|
|
1299
1303
|
key: 2,
|
|
1300
1304
|
class: "q-select__loader"
|
|
1301
|
-
}, Pt = {
|
|
1302
|
-
noData: "No data available"
|
|
1303
1305
|
}, Xt = {
|
|
1306
|
+
noData: "No data available"
|
|
1307
|
+
}, Yt = {
|
|
1304
1308
|
clear: {
|
|
1305
1309
|
icon: "close"
|
|
1306
1310
|
}
|
|
1307
|
-
},
|
|
1311
|
+
}, Zt = /* @__PURE__ */ B({
|
|
1308
1312
|
__name: "QCombobox",
|
|
1309
1313
|
props: {
|
|
1310
1314
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1323,15 +1327,15 @@ const zt = ["role"], Qt = {
|
|
|
1323
1327
|
itemValue: { default: "key" },
|
|
1324
1328
|
itemLabel: { default: "label" },
|
|
1325
1329
|
size: { default: void 0 },
|
|
1326
|
-
texts: { default: () =>
|
|
1327
|
-
icons: { default: () =>
|
|
1330
|
+
texts: { default: () => Xt },
|
|
1331
|
+
icons: { default: () => Yt },
|
|
1328
1332
|
class: { default: void 0 }
|
|
1329
1333
|
},
|
|
1330
1334
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1331
1335
|
setup(t, { expose: n, emit: o }) {
|
|
1332
1336
|
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
|
|
1337
|
+
Ee(A);
|
|
1338
|
+
const z = k(
|
|
1335
1339
|
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
1336
1340
|
), T = k(() => {
|
|
1337
1341
|
var i;
|
|
@@ -1355,13 +1359,13 @@ const zt = ["role"], Qt = {
|
|
|
1355
1359
|
var i;
|
|
1356
1360
|
return d.value.length > 0 && d.value !== ((i = D.value) == null ? void 0 : i[l.itemLabel]);
|
|
1357
1361
|
});
|
|
1358
|
-
function
|
|
1359
|
-
r.value = i,
|
|
1362
|
+
function C(i) {
|
|
1363
|
+
r.value = i, A(), e("update:modelValue", i);
|
|
1360
1364
|
}
|
|
1361
1365
|
function X(i) {
|
|
1362
|
-
|
|
1366
|
+
C(i), H();
|
|
1363
1367
|
}
|
|
1364
|
-
function
|
|
1368
|
+
function A() {
|
|
1365
1369
|
var i;
|
|
1366
1370
|
d.value = ((i = D.value) == null ? void 0 : i[l.itemLabel]) || "";
|
|
1367
1371
|
}
|
|
@@ -1372,7 +1376,7 @@ const zt = ["role"], Qt = {
|
|
|
1372
1376
|
s.value && (e("before-hide"), s.value = !1, m.value = void 0);
|
|
1373
1377
|
}
|
|
1374
1378
|
function U() {
|
|
1375
|
-
|
|
1379
|
+
C(void 0), m.value = void 0;
|
|
1376
1380
|
}
|
|
1377
1381
|
function K() {
|
|
1378
1382
|
if (N(), D.value !== void 0) {
|
|
@@ -1423,7 +1427,7 @@ const zt = ["role"], Qt = {
|
|
|
1423
1427
|
}
|
|
1424
1428
|
function g(i) {
|
|
1425
1429
|
var w, E, G;
|
|
1426
|
-
!((w = p.value) != null && w.contains(i.relatedTarget)) && !((G = (E = h.value) == null ? void 0 : E.fieldRef) != null && G.contains(i.relatedTarget)) ? (H(),
|
|
1430
|
+
!((w = p.value) != null && w.contains(i.relatedTarget)) && !((G = (E = h.value) == null ? void 0 : E.fieldRef) != null && G.contains(i.relatedTarget)) ? (H(), A()) : (i.preventDefault(), i.stopPropagation());
|
|
1427
1431
|
}
|
|
1428
1432
|
function I() {
|
|
1429
1433
|
var i, w;
|
|
@@ -1432,7 +1436,7 @@ const zt = ["role"], Qt = {
|
|
|
1432
1436
|
function ue() {
|
|
1433
1437
|
e("show");
|
|
1434
1438
|
}
|
|
1435
|
-
function
|
|
1439
|
+
function Ae() {
|
|
1436
1440
|
e("hide");
|
|
1437
1441
|
}
|
|
1438
1442
|
function ye(i) {
|
|
@@ -1440,19 +1444,19 @@ const zt = ["role"], Qt = {
|
|
|
1440
1444
|
const w = (E = _.value) == null ? void 0 : E.getItem(i);
|
|
1441
1445
|
w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1442
1446
|
}
|
|
1443
|
-
return
|
|
1447
|
+
return F(
|
|
1444
1448
|
() => l.modelValue,
|
|
1445
1449
|
(i) => {
|
|
1446
|
-
r.value = i,
|
|
1450
|
+
r.value = i, A();
|
|
1447
1451
|
}
|
|
1448
|
-
),
|
|
1452
|
+
), F(m, (i) => {
|
|
1449
1453
|
i !== void 0 && ye(i);
|
|
1450
|
-
}),
|
|
1451
|
-
!i &&
|
|
1454
|
+
}), F(d, (i) => {
|
|
1455
|
+
!i && z.value ? U() : s.value && l.selectionMode === "automatic" && W(c), e("update:inputValue", i);
|
|
1452
1456
|
}), n({
|
|
1453
1457
|
triggerEl: h
|
|
1454
1458
|
}), (i, w) => (u(), v(J, null, [
|
|
1455
|
-
j(y(
|
|
1459
|
+
j(y(jt), {
|
|
1456
1460
|
modelValue: d.value,
|
|
1457
1461
|
"onUpdate:modelValue": w[0] || (w[0] = (E) => d.value = E),
|
|
1458
1462
|
id: l.id,
|
|
@@ -1489,10 +1493,10 @@ const zt = ["role"], Qt = {
|
|
|
1489
1493
|
]),
|
|
1490
1494
|
key: "0"
|
|
1491
1495
|
} : void 0,
|
|
1492
|
-
|
|
1496
|
+
z.value && d.value || i.$slots.append ? {
|
|
1493
1497
|
name: "append",
|
|
1494
1498
|
fn: $(() => [
|
|
1495
|
-
|
|
1499
|
+
z.value && d.value ? (u(), x(y(ee), Z({ key: 0 }, l.icons.clear, {
|
|
1496
1500
|
class: "q-combobox__clear",
|
|
1497
1501
|
onClick: te(U, ["stop", "prevent"])
|
|
1498
1502
|
}), null, 16)) : L("", !0),
|
|
@@ -1517,7 +1521,7 @@ const zt = ["role"], Qt = {
|
|
|
1517
1521
|
offset: 4,
|
|
1518
1522
|
anchor: h.value,
|
|
1519
1523
|
onEnter: ue,
|
|
1520
|
-
onLeave:
|
|
1524
|
+
onLeave: Ae
|
|
1521
1525
|
}, {
|
|
1522
1526
|
default: $(() => {
|
|
1523
1527
|
var E;
|
|
@@ -1554,7 +1558,7 @@ const zt = ["role"], Qt = {
|
|
|
1554
1558
|
b(i.$slots, "item", { item: G })
|
|
1555
1559
|
]),
|
|
1556
1560
|
_: 3
|
|
1557
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div",
|
|
1561
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Pt, M(i.texts.noData), 1)),
|
|
1558
1562
|
b(i.$slots, "body.append")
|
|
1559
1563
|
], 544)
|
|
1560
1564
|
];
|
|
@@ -1563,13 +1567,13 @@ const zt = ["role"], Qt = {
|
|
|
1563
1567
|
}, 8, ["model-value", "anchor"])
|
|
1564
1568
|
], 64));
|
|
1565
1569
|
}
|
|
1566
|
-
}),
|
|
1570
|
+
}), In = S(Zt), Jt = {
|
|
1567
1571
|
key: 0,
|
|
1568
1572
|
class: "q-input-group__prepend"
|
|
1569
|
-
},
|
|
1573
|
+
}, en = { key: 0 }, tn = {
|
|
1570
1574
|
key: 1,
|
|
1571
1575
|
class: "q-input-group__append"
|
|
1572
|
-
},
|
|
1576
|
+
}, nn = { key: 0 }, ln = /* @__PURE__ */ B({
|
|
1573
1577
|
__name: "QInputGroup",
|
|
1574
1578
|
props: {
|
|
1575
1579
|
id: { default: void 0 },
|
|
@@ -1594,15 +1598,15 @@ const zt = ["role"], Qt = {
|
|
|
1594
1598
|
size: n.size
|
|
1595
1599
|
}, {
|
|
1596
1600
|
default: $(() => [
|
|
1597
|
-
o.$slots.prepend || n.prependIcon ? (u(), v("div",
|
|
1598
|
-
n.prependIcon ? (u(), v("span",
|
|
1601
|
+
o.$slots.prepend || n.prependIcon ? (u(), v("div", Jt, [
|
|
1602
|
+
n.prependIcon ? (u(), v("span", en, [
|
|
1599
1603
|
j(y(ee), re(ke(n.prependIcon)), null, 16)
|
|
1600
1604
|
])) : L("", !0),
|
|
1601
1605
|
b(o.$slots, "prepend")
|
|
1602
1606
|
])) : L("", !0),
|
|
1603
1607
|
b(o.$slots, "default"),
|
|
1604
|
-
o.$slots.append || n.appendIcon ? (u(), v("div",
|
|
1605
|
-
n.appendIcon ? (u(), v("span",
|
|
1608
|
+
o.$slots.append || n.appendIcon ? (u(), v("div", tn, [
|
|
1609
|
+
n.appendIcon ? (u(), v("span", nn, [
|
|
1606
1610
|
j(y(ee), re(ke(n.appendIcon)), null, 16)
|
|
1607
1611
|
])) : L("", !0),
|
|
1608
1612
|
b(o.$slots, "append")
|
|
@@ -1611,7 +1615,7 @@ const zt = ["role"], Qt = {
|
|
|
1611
1615
|
_: 3
|
|
1612
1616
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1613
1617
|
}
|
|
1614
|
-
}),
|
|
1618
|
+
}), Ln = S(ln), on = /* @__PURE__ */ B({
|
|
1615
1619
|
__name: "QLineLoader",
|
|
1616
1620
|
props: {
|
|
1617
1621
|
class: { default: void 0 }
|
|
@@ -1622,13 +1626,13 @@ const zt = ["role"], Qt = {
|
|
|
1622
1626
|
class: V(["q-line-loader", n.class])
|
|
1623
1627
|
}, null, 2));
|
|
1624
1628
|
}
|
|
1625
|
-
}),
|
|
1629
|
+
}), Bn = S(on), an = {
|
|
1626
1630
|
key: 0,
|
|
1627
1631
|
class: "q-popover__header"
|
|
1628
|
-
},
|
|
1632
|
+
}, sn = {
|
|
1629
1633
|
key: 1,
|
|
1630
1634
|
class: "q-popover__body"
|
|
1631
|
-
},
|
|
1635
|
+
}, rn = ["innerHTML"], dn = { key: 1 }, un = /* @__PURE__ */ B({
|
|
1632
1636
|
inheritAttrs: !1,
|
|
1633
1637
|
__name: "QPopover",
|
|
1634
1638
|
props: {
|
|
@@ -1655,40 +1659,40 @@ const zt = ["role"], Qt = {
|
|
|
1655
1659
|
placement: n.placement
|
|
1656
1660
|
}, {
|
|
1657
1661
|
default: $(() => [
|
|
1658
|
-
n.title || o.$slots.header ? (u(), v("h3",
|
|
1662
|
+
n.title || o.$slots.header ? (u(), v("h3", an, [
|
|
1659
1663
|
oe(M(n.title) + " ", 1),
|
|
1660
1664
|
b(o.$slots, "header")
|
|
1661
1665
|
])) : L("", !0),
|
|
1662
|
-
n.text || o.$slots.body ? (u(), v("div",
|
|
1666
|
+
n.text || o.$slots.body ? (u(), v("div", sn, [
|
|
1663
1667
|
n.html ? (u(), v("span", {
|
|
1664
1668
|
key: 0,
|
|
1665
1669
|
innerHTML: n.text
|
|
1666
|
-
}, null, 8,
|
|
1670
|
+
}, null, 8, rn)) : (u(), v("span", dn, M(n.text), 1)),
|
|
1667
1671
|
b(o.$slots, "body")
|
|
1668
1672
|
])) : L("", !0)
|
|
1669
1673
|
]),
|
|
1670
1674
|
_: 3
|
|
1671
1675
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
1672
1676
|
}
|
|
1673
|
-
}),
|
|
1677
|
+
}), Sn = S(un), cn = {
|
|
1674
1678
|
key: 0,
|
|
1675
1679
|
class: "q-select__value"
|
|
1676
|
-
},
|
|
1680
|
+
}, fn = {
|
|
1677
1681
|
key: 1,
|
|
1678
1682
|
class: "q-select__placeholder"
|
|
1679
|
-
},
|
|
1683
|
+
}, pn = {
|
|
1680
1684
|
key: 0,
|
|
1681
1685
|
class: "q-select__loader"
|
|
1682
|
-
}, pn = {
|
|
1683
|
-
placeholder: "Choose..."
|
|
1684
1686
|
}, mn = {
|
|
1687
|
+
placeholder: "Choose..."
|
|
1688
|
+
}, vn = {
|
|
1685
1689
|
chevron: {
|
|
1686
1690
|
icon: "chevron-down"
|
|
1687
1691
|
},
|
|
1688
1692
|
clear: {
|
|
1689
1693
|
icon: "close"
|
|
1690
1694
|
}
|
|
1691
|
-
},
|
|
1695
|
+
}, hn = /* @__PURE__ */ B({
|
|
1692
1696
|
__name: "QSelect",
|
|
1693
1697
|
props: {
|
|
1694
1698
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1699,13 +1703,13 @@ const zt = ["role"], Qt = {
|
|
|
1699
1703
|
disabled: { type: Boolean },
|
|
1700
1704
|
required: { type: Boolean },
|
|
1701
1705
|
loading: { type: Boolean },
|
|
1702
|
-
icons: { default: () =>
|
|
1706
|
+
icons: { default: () => vn },
|
|
1703
1707
|
items: {},
|
|
1704
1708
|
groups: { default: () => [] },
|
|
1705
1709
|
itemValue: { default: "key" },
|
|
1706
1710
|
itemLabel: { default: "label" },
|
|
1707
1711
|
size: { default: void 0 },
|
|
1708
|
-
texts: { default: () =>
|
|
1712
|
+
texts: { default: () => mn },
|
|
1709
1713
|
class: { default: "" }
|
|
1710
1714
|
},
|
|
1711
1715
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
@@ -1717,30 +1721,30 @@ const zt = ["role"], Qt = {
|
|
|
1717
1721
|
}
|
|
1718
1722
|
), p = k(
|
|
1719
1723
|
() => _.value ? _.value[e.itemLabel] : ""
|
|
1720
|
-
),
|
|
1724
|
+
), z = k(
|
|
1721
1725
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1722
1726
|
);
|
|
1723
1727
|
function T(c) {
|
|
1724
|
-
l.value = c, o("update:modelValue", c),
|
|
1728
|
+
l.value = c, o("update:modelValue", c), C();
|
|
1725
1729
|
}
|
|
1726
1730
|
function D() {
|
|
1727
|
-
|
|
1731
|
+
z.value && T(void 0);
|
|
1728
1732
|
}
|
|
1729
1733
|
function Q() {
|
|
1730
|
-
e.readonly || e.disabled || (r.value ?
|
|
1734
|
+
e.readonly || e.disabled || (r.value ? C() : R());
|
|
1731
1735
|
}
|
|
1732
1736
|
function O(c) {
|
|
1733
1737
|
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)) &&
|
|
1738
|
+
!((a = h.value) != null && a.contains(c.relatedTarget)) && !((g = (f = d.value) == null ? void 0 : f.fieldRef) != null && g.contains(c.relatedTarget)) && C();
|
|
1735
1739
|
}
|
|
1736
1740
|
function R() {
|
|
1737
1741
|
r.value || (o("before-show"), r.value = !0);
|
|
1738
1742
|
}
|
|
1739
|
-
function
|
|
1743
|
+
function C() {
|
|
1740
1744
|
r.value && (o("before-hide"), r.value = !1);
|
|
1741
1745
|
}
|
|
1742
1746
|
let X;
|
|
1743
|
-
function
|
|
1747
|
+
function A(c) {
|
|
1744
1748
|
if (!(!c.key || e.readonly || e.disabled)) {
|
|
1745
1749
|
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
1750
|
s.value += c.key.toLowerCase();
|
|
@@ -1774,12 +1778,12 @@ const zt = ["role"], Qt = {
|
|
|
1774
1778
|
var a;
|
|
1775
1779
|
(a = m.value) == null || a.focusItem(c);
|
|
1776
1780
|
}
|
|
1777
|
-
return
|
|
1781
|
+
return F(
|
|
1778
1782
|
() => e.modelValue,
|
|
1779
1783
|
(c) => {
|
|
1780
1784
|
l.value = c;
|
|
1781
1785
|
}
|
|
1782
|
-
),
|
|
1786
|
+
), F(
|
|
1783
1787
|
() => e.loading,
|
|
1784
1788
|
(c) => {
|
|
1785
1789
|
!c && r.value && W(K);
|
|
@@ -1810,18 +1814,18 @@ const zt = ["role"], Qt = {
|
|
|
1810
1814
|
"aria-haspopup": "listbox",
|
|
1811
1815
|
size: e.size,
|
|
1812
1816
|
onClick: Q,
|
|
1813
|
-
onKeydown: te(
|
|
1817
|
+
onKeydown: te(A, ["stop"])
|
|
1814
1818
|
}, pe({
|
|
1815
1819
|
append: $(() => [
|
|
1816
1820
|
b(c.$slots, "append"),
|
|
1817
|
-
|
|
1821
|
+
z.value && l.value ? (u(), x(y(ee), Z({ key: 0 }, e.icons.clear, {
|
|
1818
1822
|
class: "q-select__clear",
|
|
1819
1823
|
onClick: te(D, ["stop", "prevent"])
|
|
1820
1824
|
}), null, 16)) : L("", !0),
|
|
1821
1825
|
e.readonly ? L("", !0) : (u(), x(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1822
1826
|
]),
|
|
1823
1827
|
default: $(() => [
|
|
1824
|
-
l.value !== void 0 ? (u(), v("span",
|
|
1828
|
+
l.value !== void 0 ? (u(), v("span", cn, M(p.value), 1)) : (u(), v("span", fn, [
|
|
1825
1829
|
!e.readonly && !e.disabled ? (u(), v(J, { key: 0 }, [
|
|
1826
1830
|
oe(M(c.texts.placeholder), 1)
|
|
1827
1831
|
], 64)) : L("", !0)
|
|
@@ -1866,10 +1870,10 @@ const zt = ["role"], Qt = {
|
|
|
1866
1870
|
class: "q-select__body",
|
|
1867
1871
|
tabindex: "-1",
|
|
1868
1872
|
onFocusout: O,
|
|
1869
|
-
onKeydown: te(
|
|
1873
|
+
onKeydown: te(A, ["stop"])
|
|
1870
1874
|
}, [
|
|
1871
1875
|
b(c.$slots, "body.prepend"),
|
|
1872
|
-
e.loading ? (u(), v("div",
|
|
1876
|
+
e.loading ? (u(), v("div", pn, [
|
|
1873
1877
|
j(y(he), { size: 24 })
|
|
1874
1878
|
])) : (u(), x(y(Ce), {
|
|
1875
1879
|
key: 1,
|
|
@@ -1899,7 +1903,7 @@ const zt = ["role"], Qt = {
|
|
|
1899
1903
|
], 64);
|
|
1900
1904
|
};
|
|
1901
1905
|
}
|
|
1902
|
-
}),
|
|
1906
|
+
}), xn = S(hn), bn = /* @__PURE__ */ B({
|
|
1903
1907
|
__name: "QThemeProvider",
|
|
1904
1908
|
props: {
|
|
1905
1909
|
theme: {}
|
|
@@ -1912,7 +1916,7 @@ const zt = ["role"], Qt = {
|
|
|
1912
1916
|
b(o.$slots, "default")
|
|
1913
1917
|
], 2));
|
|
1914
1918
|
}
|
|
1915
|
-
}),
|
|
1919
|
+
}), Vn = S(bn), yn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ B({
|
|
1916
1920
|
__name: "QTooltip",
|
|
1917
1921
|
props: {
|
|
1918
1922
|
modelValue: { type: Boolean },
|
|
@@ -1953,39 +1957,39 @@ const zt = ["role"], Qt = {
|
|
|
1953
1957
|
n.html ? (u(), v("span", {
|
|
1954
1958
|
key: 0,
|
|
1955
1959
|
innerHTML: n.text
|
|
1956
|
-
}, null, 8,
|
|
1960
|
+
}, null, 8, yn)) : (u(), v("span", gn, M(n.text), 1))
|
|
1957
1961
|
]),
|
|
1958
1962
|
_: 1
|
|
1959
1963
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
1960
1964
|
], 64));
|
|
1961
1965
|
}
|
|
1962
|
-
}),
|
|
1966
|
+
}), En = S(_n);
|
|
1963
1967
|
export {
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
+
rt as QButton,
|
|
1969
|
+
ut as QButtonGroup,
|
|
1970
|
+
qn as QButtonToggle,
|
|
1971
|
+
In as QCombobox,
|
|
1968
1972
|
be as QField,
|
|
1969
1973
|
ee as QIcon,
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1974
|
+
_t as QIconFont,
|
|
1975
|
+
kt as QIconImg,
|
|
1976
|
+
wt as QIconSvg,
|
|
1977
|
+
Ln as QInputGroup,
|
|
1978
|
+
Bn as QLineLoader,
|
|
1975
1979
|
Ce as QList,
|
|
1976
|
-
|
|
1977
|
-
|
|
1980
|
+
Dt as QListItem,
|
|
1981
|
+
Tt as QListItemGroup,
|
|
1978
1982
|
de as QOverlay,
|
|
1979
|
-
|
|
1980
|
-
|
|
1983
|
+
Sn as QPopover,
|
|
1984
|
+
xn as QSelect,
|
|
1981
1985
|
he as QSpinnerLoader,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1986
|
+
jt as QTextField,
|
|
1987
|
+
Vn as QThemeProvider,
|
|
1988
|
+
En as QTooltip,
|
|
1989
|
+
$n as createFramework,
|
|
1990
|
+
We as defaultDarkColorScheme,
|
|
1987
1991
|
$e as defaultLightColorScheme,
|
|
1988
|
-
|
|
1989
|
-
|
|
1992
|
+
wn as provideTheme,
|
|
1993
|
+
Ge as useTheme
|
|
1990
1994
|
};
|
|
1991
1995
|
//# sourceMappingURL=ui.esm.js.map
|