@quidgest/ui 0.14.7 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.css +1 -0
- package/dist/ui.esm.js +479 -443
- package/dist/ui.js +8 -8
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +55 -54
- package/dist/ui.scss +2 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts +17 -1
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +62 -45
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts +21 -0
- package/esm/components/QCheckbox/QCheckboxLabel.d.ts.map +1 -0
- package/esm/components/QCheckbox/QCheckboxLabel.vue.js +31 -0
- package/esm/components/QCheckbox/QCheckboxLabel.vue2.js +4 -0
- package/esm/components/QCheckbox/types.d.ts +7 -5
- package/esm/components/QCheckbox/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Je, computed as y, ref as A, provide as De, inject as ze, watch as ee, defineComponent as C, mergeModels as G, toRef as Ve, useModel as X, openBlock as r, createElementBlock as f, renderSlot as p, normalizeClass as T, normalizeStyle as pe, withModifiers as fe, createVNode as D, unref as m, createCommentVNode as b, createElementVNode as w, Fragment as U, createTextVNode as de, toDisplayString as Q, createBlock as S, resolveDynamicComponent as Be, h as He, withCtx as k, normalizeProps as Y, guardReactiveProps as oe, renderList as ve, useAttrs as bt, createSlots as be, withKeys as Ae, mergeProps as H, onMounted as Me, onUnmounted as gt, reactive as je, nextTick as le, onBeforeUnmount as _t, Teleport as $t, Transition as kt, withDirectives as wt, vModelDynamic as qt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.8
|
|
4
4
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -35,7 +35,7 @@ const Ee = {
|
|
|
35
35
|
onWarning: "#fff",
|
|
36
36
|
onDanger: "#fff",
|
|
37
37
|
onInfo: "#fff"
|
|
38
|
-
},
|
|
38
|
+
}, et = {
|
|
39
39
|
primary: "#009ff5",
|
|
40
40
|
primaryLight: "#ade2ff",
|
|
41
41
|
primaryDark: "#164965",
|
|
@@ -66,9 +66,9 @@ const Ee = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
|
-
defaultDarkColorScheme:
|
|
71
|
+
defaultDarkColorScheme: et,
|
|
72
72
|
defaultLightColorScheme: Ee
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
74
|
function Qe(n) {
|
|
@@ -95,28 +95,28 @@ function Fe(n = {}, t = {}) {
|
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
97
|
const Oe = "q-defaults";
|
|
98
|
-
function
|
|
98
|
+
function xt() {
|
|
99
99
|
var s, d;
|
|
100
|
-
const n =
|
|
100
|
+
const n = Je();
|
|
101
101
|
if (!n)
|
|
102
102
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
103
103
|
const t = n.type.name ?? n.type.__name;
|
|
104
104
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
105
|
-
const e =
|
|
105
|
+
const e = tt(), l = (s = e.value) == null ? void 0 : s.Global, o = (d = e.value) == null ? void 0 : d[t];
|
|
106
106
|
return y(() => Fe(l, o));
|
|
107
107
|
}
|
|
108
108
|
function Pe(n) {
|
|
109
109
|
if (Qe(n)) return;
|
|
110
|
-
const t =
|
|
110
|
+
const t = tt(), e = A(n), l = y(() => Qe(e.value) ? t.value : Fe(t.value, e.value));
|
|
111
111
|
De(Oe, l);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function tt() {
|
|
114
114
|
const n = ze(Oe, void 0);
|
|
115
115
|
if (!n) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
116
116
|
return n;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
118
|
+
const nt = "q-group";
|
|
119
|
+
function St(n) {
|
|
120
120
|
var e, l;
|
|
121
121
|
const t = {
|
|
122
122
|
active: A(((e = n.active) == null ? void 0 : e.value) ?? ((l = n.multiple) == null ? void 0 : l.value) ? [] : null),
|
|
@@ -130,10 +130,10 @@ function xt(n) {
|
|
|
130
130
|
(o) => {
|
|
131
131
|
o && t.active.value ? t.active.value = [t.active.value] : o ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
|
|
132
132
|
}
|
|
133
|
-
), De(
|
|
133
|
+
), De(nt, t), t;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const t = ze(
|
|
135
|
+
function Bt(n) {
|
|
136
|
+
const t = ze(nt, void 0);
|
|
137
137
|
if (!t) return;
|
|
138
138
|
const e = y(() => {
|
|
139
139
|
var o;
|
|
@@ -144,7 +144,7 @@ function St(n) {
|
|
|
144
144
|
Array.isArray(t.active.value) ? e.value ? t.active.value = (o = t.active.value) == null ? void 0 : o.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
|
|
145
145
|
} };
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Lt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
|
|
148
148
|
__name: "QAccordion",
|
|
149
149
|
props: /* @__PURE__ */ G({
|
|
150
150
|
variant: {}
|
|
@@ -160,37 +160,37 @@ const Bt = { class: "q-accordion" }, Lt = /* @__PURE__ */ C({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
const e = X(n, "modelValue");
|
|
163
|
-
return
|
|
163
|
+
return St({ active: e }), (l, o) => (r(), f("div", Lt, [
|
|
164
164
|
p(l.$slots, "default")
|
|
165
165
|
]));
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
function
|
|
168
|
+
function lt(n) {
|
|
169
169
|
return n.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();
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function It(n, t) {
|
|
172
172
|
var l;
|
|
173
|
-
const e =
|
|
173
|
+
const e = lt(t);
|
|
174
174
|
return e ? typeof ((l = n.props) == null ? void 0 : l[e]) < "u" : !1;
|
|
175
175
|
}
|
|
176
176
|
function I(n) {
|
|
177
177
|
const t = n.setup;
|
|
178
178
|
return t && (n.setup = (e, l) => {
|
|
179
|
-
const o =
|
|
179
|
+
const o = xt();
|
|
180
180
|
if (Qe(o.value)) return t(e, l);
|
|
181
|
-
const s =
|
|
181
|
+
const s = Je();
|
|
182
182
|
if (s === null) return t(e, l);
|
|
183
183
|
const d = new Proxy(e, {
|
|
184
184
|
get(a, i) {
|
|
185
|
-
var
|
|
186
|
-
const u = Reflect.get(a, i), _ = (
|
|
187
|
-
return typeof i == "string" && !
|
|
185
|
+
var q;
|
|
186
|
+
const u = Reflect.get(a, i), _ = (q = o.value) == null ? void 0 : q[i];
|
|
187
|
+
return typeof i == "string" && !It(s.vnode, i) ? _ ?? u : u;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
return t(d, l);
|
|
191
191
|
}), n;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
194
194
|
__name: "QSpinnerLoader",
|
|
195
195
|
props: {
|
|
196
196
|
size: { default: 48 },
|
|
@@ -205,10 +205,10 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
205
205
|
style: pe(e.value)
|
|
206
206
|
}, null, 6));
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), ke = I(Vt), At = ["disabled"], Et = {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "q-btn__spinner"
|
|
211
|
-
},
|
|
211
|
+
}, Qt = { class: "q-btn__content" }, Dt = /* @__PURE__ */ C({
|
|
212
212
|
__name: "QButton",
|
|
213
213
|
props: {
|
|
214
214
|
active: { type: Boolean },
|
|
@@ -251,10 +251,10 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
251
251
|
disabled: o.value,
|
|
252
252
|
onClick: fe(s, ["stop", "prevent"])
|
|
253
253
|
}, [
|
|
254
|
-
a.loading ? (r(), f("div",
|
|
255
|
-
D(m(
|
|
254
|
+
a.loading ? (r(), f("div", Et, [
|
|
255
|
+
D(m(ke), { size: 20 })
|
|
256
256
|
])) : b("", !0),
|
|
257
|
-
|
|
257
|
+
w("span", Qt, [
|
|
258
258
|
a.iconOnRight ? (r(), f(U, { key: 0 }, [
|
|
259
259
|
de(Q(e.label), 1)
|
|
260
260
|
], 64)) : b("", !0),
|
|
@@ -263,9 +263,9 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
263
263
|
de(Q(e.label), 1)
|
|
264
264
|
], 64))
|
|
265
265
|
])
|
|
266
|
-
], 10,
|
|
266
|
+
], 10, At));
|
|
267
267
|
}
|
|
268
|
-
}), se = I(
|
|
268
|
+
}), se = I(Dt), zt = /* @__PURE__ */ C({
|
|
269
269
|
__name: "QIcon",
|
|
270
270
|
props: {
|
|
271
271
|
icon: {},
|
|
@@ -277,22 +277,22 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
277
277
|
const t = n, e = y(() => {
|
|
278
278
|
switch (t.type) {
|
|
279
279
|
case "svg":
|
|
280
|
-
return
|
|
280
|
+
return at;
|
|
281
281
|
case "font":
|
|
282
|
-
return lt;
|
|
283
|
-
case "img":
|
|
284
282
|
return ot;
|
|
283
|
+
case "img":
|
|
284
|
+
return st;
|
|
285
285
|
default:
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
return (l, o) => (r(),
|
|
289
|
+
return (l, o) => (r(), S(Be(e.value), {
|
|
290
290
|
class: T(t.class),
|
|
291
291
|
icon: t.icon,
|
|
292
292
|
size: t.size
|
|
293
293
|
}, null, 8, ["class", "icon", "size"]));
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
295
|
+
}), Mt = /* @__PURE__ */ C({
|
|
296
296
|
__name: "QIconFont",
|
|
297
297
|
props: {
|
|
298
298
|
icon: {},
|
|
@@ -310,7 +310,7 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
310
310
|
style: pe(o.value)
|
|
311
311
|
}, null, 6));
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), Ft = ["src"], Ot = /* @__PURE__ */ C({
|
|
314
314
|
__name: "QIconImg",
|
|
315
315
|
props: {
|
|
316
316
|
icon: {},
|
|
@@ -325,9 +325,9 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
325
325
|
src: t.icon,
|
|
326
326
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
327
327
|
style: pe(e.value)
|
|
328
|
-
}, null, 14,
|
|
328
|
+
}, null, 14, Ft));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), _e = {}, Pt = C({
|
|
331
331
|
name: "InlineSvg",
|
|
332
332
|
emits: {
|
|
333
333
|
loaded: (n) => typeof n == "object",
|
|
@@ -400,7 +400,7 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
400
400
|
l !== !1 && l !== null && l !== void 0 && (n[e] = l);
|
|
401
401
|
},
|
|
402
402
|
getSvgContent(n) {
|
|
403
|
-
return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)),
|
|
403
|
+
return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), Ut(n, this.title)), n);
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
406
|
* Get svgElSource
|
|
@@ -408,11 +408,11 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
408
408
|
*/
|
|
409
409
|
async getSource(n) {
|
|
410
410
|
try {
|
|
411
|
-
|
|
412
|
-
const t = await
|
|
411
|
+
_e[n] || (_e[n] = Nt(this.download(n))), this.svgElSource && _e[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
412
|
+
const t = await _e[n];
|
|
413
413
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
414
414
|
} catch (t) {
|
|
415
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
415
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete _e[n], this.$emit("error", t);
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
@@ -435,7 +435,7 @@ const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
|
435
435
|
},
|
|
436
436
|
expose: []
|
|
437
437
|
});
|
|
438
|
-
function
|
|
438
|
+
function Ut(n, t) {
|
|
439
439
|
const e = n.getElementsByTagName("title");
|
|
440
440
|
if (e.length)
|
|
441
441
|
e[0].textContent = t;
|
|
@@ -444,7 +444,7 @@ function Pt(n, t) {
|
|
|
444
444
|
l.textContent = t, n.insertBefore(l, n.firstChild);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Nt(n) {
|
|
448
448
|
if (n.getIsPending) return n;
|
|
449
449
|
let t = !0;
|
|
450
450
|
const e = n.then(
|
|
@@ -455,7 +455,7 @@ function Ut(n) {
|
|
|
455
455
|
);
|
|
456
456
|
return e.getIsPending = () => t, e;
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const Rt = /* @__PURE__ */ C({
|
|
459
459
|
__name: "QIconSvg",
|
|
460
460
|
props: {
|
|
461
461
|
icon: {},
|
|
@@ -474,7 +474,7 @@ const Nt = /* @__PURE__ */ C({
|
|
|
474
474
|
function d() {
|
|
475
475
|
l("unloaded");
|
|
476
476
|
}
|
|
477
|
-
return (a, i) => (r(),
|
|
477
|
+
return (a, i) => (r(), S(m(Pt), {
|
|
478
478
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
479
479
|
src: e.bundle,
|
|
480
480
|
symbol: e.icon,
|
|
@@ -483,33 +483,33 @@ const Nt = /* @__PURE__ */ C({
|
|
|
483
483
|
onUnloaded: d
|
|
484
484
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
485
485
|
}
|
|
486
|
-
}), O = I(
|
|
486
|
+
}), O = I(zt), ot = I(Mt), st = I(Ot), at = I(Rt), Gt = {
|
|
487
487
|
remove: {
|
|
488
488
|
icon: "close"
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
function
|
|
491
|
+
function Ht(n) {
|
|
492
492
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function jt(n) {
|
|
495
495
|
const t = n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
496
496
|
if (t) {
|
|
497
497
|
const e = parseInt(t[1], 10), l = parseInt(t[2], 10), o = parseInt(t[3], 10);
|
|
498
498
|
return { r: e, g: l, b: o };
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
if (
|
|
501
|
+
function it(n) {
|
|
502
|
+
if (Ht(n)) {
|
|
503
503
|
n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
|
|
504
504
|
const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16), l = parseInt(n.slice(5, 7), 16);
|
|
505
505
|
return { r: t, g: e, b: l };
|
|
506
506
|
} else {
|
|
507
|
-
const t =
|
|
507
|
+
const t = jt(n);
|
|
508
508
|
if (t) return t;
|
|
509
509
|
}
|
|
510
510
|
throw new Error("Invalid color format");
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Kt(n) {
|
|
513
513
|
const t = n.r / 255, e = n.g / 255, l = n.b / 255, o = Math.max(t, e, l), s = Math.min(t, e, l);
|
|
514
514
|
let d = 0, a;
|
|
515
515
|
const i = (o + s) / 2;
|
|
@@ -536,17 +536,17 @@ function jt(n) {
|
|
|
536
536
|
l: Math.round(i * 100)
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Wt(n) {
|
|
540
540
|
return n > 50 ? "#000" : "#fff";
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
543
543
|
__name: "QBadge",
|
|
544
544
|
props: {
|
|
545
545
|
color: { default: "primary" },
|
|
546
546
|
variant: { default: "tonal" },
|
|
547
547
|
removable: { type: Boolean },
|
|
548
548
|
pill: { type: Boolean },
|
|
549
|
-
icons: { default: () =>
|
|
549
|
+
icons: { default: () => Gt }
|
|
550
550
|
},
|
|
551
551
|
emits: ["click:remove"],
|
|
552
552
|
setup(n, { emit: t }) {
|
|
@@ -561,8 +561,8 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
561
561
|
if (i = e.color, e.variant === "tonal")
|
|
562
562
|
u = e.color;
|
|
563
563
|
else {
|
|
564
|
-
const _ =
|
|
565
|
-
u =
|
|
564
|
+
const _ = it(i), q = Kt(_);
|
|
565
|
+
u = Wt(q.l);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
568
|
"--q-badge-color": i,
|
|
@@ -577,10 +577,10 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
577
577
|
role: "presentation",
|
|
578
578
|
style: pe(d.value)
|
|
579
579
|
}, [
|
|
580
|
-
u[0] || (u[0] =
|
|
581
|
-
|
|
580
|
+
u[0] || (u[0] = w("div", { class: "q-badge__underlay" }, null, -1)),
|
|
581
|
+
w("div", Xt, [
|
|
582
582
|
p(i.$slots, "default"),
|
|
583
|
-
e.removable ? (r(),
|
|
583
|
+
e.removable ? (r(), S(m(se), {
|
|
584
584
|
key: 0,
|
|
585
585
|
class: "q-badge__remove",
|
|
586
586
|
borderless: "",
|
|
@@ -595,7 +595,7 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
595
595
|
])
|
|
596
596
|
], 6));
|
|
597
597
|
}
|
|
598
|
-
}),
|
|
598
|
+
}), Zt = I(Yt), Jt = /* @__PURE__ */ C({
|
|
599
599
|
__name: "QButtonGroup",
|
|
600
600
|
props: {
|
|
601
601
|
disabled: { type: Boolean },
|
|
@@ -624,7 +624,7 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
624
624
|
p(e.$slots, "default")
|
|
625
625
|
], 2));
|
|
626
626
|
}
|
|
627
|
-
}),
|
|
627
|
+
}), rt = I(Jt), en = /* @__PURE__ */ C({
|
|
628
628
|
__name: "QButtonToggle",
|
|
629
629
|
props: /* @__PURE__ */ G({
|
|
630
630
|
options: {},
|
|
@@ -643,7 +643,7 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
643
643
|
function l(o) {
|
|
644
644
|
e.value === o.key && !t.required ? e.value = void 0 : e.value = o.key;
|
|
645
645
|
}
|
|
646
|
-
return (o, s) => (r(),
|
|
646
|
+
return (o, s) => (r(), S(m(rt), {
|
|
647
647
|
"b-style": "secondary",
|
|
648
648
|
class: T(t.class),
|
|
649
649
|
disabled: t.disabled,
|
|
@@ -652,7 +652,7 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
652
652
|
role: "listbox"
|
|
653
653
|
}, {
|
|
654
654
|
default: k(() => [
|
|
655
|
-
(r(!0), f(U, null, ve(t.options, (d) => (r(),
|
|
655
|
+
(r(!0), f(U, null, ve(t.options, (d) => (r(), S(m(se), {
|
|
656
656
|
key: d.key,
|
|
657
657
|
title: d.title,
|
|
658
658
|
label: d.label,
|
|
@@ -670,26 +670,26 @@ const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
|
670
670
|
_: 3
|
|
671
671
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
672
672
|
}
|
|
673
|
-
}),
|
|
674
|
-
let
|
|
673
|
+
}), tn = I(en);
|
|
674
|
+
let nn = 0;
|
|
675
675
|
function ue(n) {
|
|
676
|
-
return n || `uid-${++
|
|
676
|
+
return n || `uid-${++nn}`;
|
|
677
677
|
}
|
|
678
|
-
const
|
|
678
|
+
const ln = { class: "q-card__header" }, on = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "q-card__header-content"
|
|
681
|
-
},
|
|
681
|
+
}, sn = { class: "q-card__header-text" }, an = {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "q-card__title",
|
|
684
684
|
role: "cell"
|
|
685
|
-
},
|
|
685
|
+
}, rn = {
|
|
686
686
|
key: 1,
|
|
687
687
|
class: "q-card__subtitle",
|
|
688
688
|
role: "cell"
|
|
689
|
-
},
|
|
689
|
+
}, dn = { class: "q-card__content" }, un = {
|
|
690
690
|
key: 0,
|
|
691
691
|
class: "q-card__footer"
|
|
692
|
-
},
|
|
692
|
+
}, cn = /* @__PURE__ */ C({
|
|
693
693
|
__name: "QCard",
|
|
694
694
|
props: {
|
|
695
695
|
id: { default: void 0 },
|
|
@@ -704,7 +704,7 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
704
704
|
width: { default: void 0 }
|
|
705
705
|
},
|
|
706
706
|
setup(n) {
|
|
707
|
-
const t = n, e =
|
|
707
|
+
const t = n, e = bt(), l = ue(t.id), o = y(() => {
|
|
708
708
|
const i = t.width ? `q-card--${t.width}` : void 0, u = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, _ = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
|
|
709
709
|
return [
|
|
710
710
|
"q-card",
|
|
@@ -721,29 +721,29 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
721
721
|
}), s = y(() => !!e.onClick || t.href), d = y(() => t.disabled || t.loading), a = (i) => {
|
|
722
722
|
d.value && i.stopImmediatePropagation();
|
|
723
723
|
};
|
|
724
|
-
return (i, u) => (r(),
|
|
724
|
+
return (i, u) => (r(), S(Be(t.href ? "a" : "div"), {
|
|
725
725
|
id: m(l),
|
|
726
726
|
class: T([...o.value, i.$attrs.class]),
|
|
727
727
|
href: t.href && !d.value ? t.href : void 0,
|
|
728
728
|
onClick: a
|
|
729
729
|
}, {
|
|
730
730
|
default: k(() => [
|
|
731
|
-
t.loading ? (r(),
|
|
731
|
+
t.loading ? (r(), S(m(ke), {
|
|
732
732
|
key: 0,
|
|
733
733
|
size: 36
|
|
734
734
|
})) : (r(), f(U, { key: 1 }, [
|
|
735
|
-
|
|
735
|
+
w("div", ln, [
|
|
736
736
|
p(i.$slots, "header", {}, () => [
|
|
737
737
|
p(i.$slots, "header.prepend"),
|
|
738
|
-
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), f("div",
|
|
738
|
+
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), f("div", on, [
|
|
739
739
|
p(i.$slots, "header.content.prepend"),
|
|
740
|
-
|
|
741
|
-
i.$slots.title || t.title ? (r(), f("p",
|
|
740
|
+
w("div", sn, [
|
|
741
|
+
i.$slots.title || t.title ? (r(), f("p", an, [
|
|
742
742
|
i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (r(), f(U, { key: 1 }, [
|
|
743
743
|
de(Q(i.$props.title), 1)
|
|
744
744
|
], 64))
|
|
745
745
|
])) : b("", !0),
|
|
746
|
-
i.$slots.subtitle || t.subtitle ? (r(), f("p",
|
|
746
|
+
i.$slots.subtitle || t.subtitle ? (r(), f("p", rn, [
|
|
747
747
|
i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (r(), f(U, { key: 1 }, [
|
|
748
748
|
de(Q(i.$props.subtitle), 1)
|
|
749
749
|
], 64))
|
|
@@ -754,10 +754,10 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
754
754
|
p(i.$slots, "header.append")
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
|
-
|
|
757
|
+
w("div", dn, [
|
|
758
758
|
p(i.$slots, "default")
|
|
759
759
|
]),
|
|
760
|
-
i.$slots.footer ? (r(), f("div",
|
|
760
|
+
i.$slots.footer ? (r(), f("div", un, [
|
|
761
761
|
p(i.$slots, "footer")
|
|
762
762
|
])) : b("", !0)
|
|
763
763
|
], 64))
|
|
@@ -765,18 +765,32 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
765
765
|
_: 3
|
|
766
766
|
}, 8, ["id", "class", "href"]));
|
|
767
767
|
}
|
|
768
|
-
}),
|
|
768
|
+
}), dt = I(cn), fn = { key: 0 }, pn = { class: "q-field__extras" }, mn = { key: 1 }, We = /* @__PURE__ */ C({
|
|
769
|
+
__name: "QCheckboxLabel",
|
|
770
|
+
props: {
|
|
771
|
+
label: { default: "" }
|
|
772
|
+
},
|
|
773
|
+
setup(n) {
|
|
774
|
+
const t = n;
|
|
775
|
+
return (e, l) => e.$slots.extras ? (r(), f("div", fn, [
|
|
776
|
+
w("span", null, Q(t.label), 1),
|
|
777
|
+
w("div", pn, [
|
|
778
|
+
p(e.$slots, "extras")
|
|
779
|
+
])
|
|
780
|
+
])) : (r(), f("span", mn, Q(t.label), 1));
|
|
781
|
+
}
|
|
782
|
+
}), hn = {
|
|
769
783
|
checked: {
|
|
770
784
|
icon: "check"
|
|
771
785
|
},
|
|
772
786
|
indeterminate: {
|
|
773
787
|
icon: "minus"
|
|
774
788
|
}
|
|
775
|
-
},
|
|
789
|
+
}, yn = ["id", "aria-checked", "disabled", "onKeydown"], vn = ["checked", "disabled"], bn = /* @__PURE__ */ C({
|
|
776
790
|
__name: "QCheckbox",
|
|
777
791
|
props: /* @__PURE__ */ G({
|
|
778
|
-
id: { default: void 0 },
|
|
779
792
|
label: { default: "" },
|
|
793
|
+
id: { default: void 0 },
|
|
780
794
|
labelPlacement: { default: "right" },
|
|
781
795
|
disabled: { type: Boolean },
|
|
782
796
|
readonly: { type: Boolean },
|
|
@@ -784,7 +798,7 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
784
798
|
color: { default: "primary" },
|
|
785
799
|
size: { default: "regular" },
|
|
786
800
|
class: { default: void 0 },
|
|
787
|
-
icons: { default: () =>
|
|
801
|
+
icons: { default: () => hn }
|
|
788
802
|
}, {
|
|
789
803
|
modelValue: { type: Boolean },
|
|
790
804
|
modelModifiers: {}
|
|
@@ -807,11 +821,22 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
807
821
|
!t.disabled && !t.readonly && (e.value = !e.value);
|
|
808
822
|
}
|
|
809
823
|
return (d, a) => (r(), f(U, null, [
|
|
810
|
-
|
|
824
|
+
w("label", {
|
|
811
825
|
class: T(o.value)
|
|
812
826
|
}, [
|
|
813
|
-
t.labelPlacement !== "right" ? (r(),
|
|
814
|
-
|
|
827
|
+
t.labelPlacement !== "right" ? (r(), S(We, {
|
|
828
|
+
key: 0,
|
|
829
|
+
label: t.label
|
|
830
|
+
}, be({ _: 2 }, [
|
|
831
|
+
d.$slots.extras ? {
|
|
832
|
+
name: "extras",
|
|
833
|
+
fn: k(() => [
|
|
834
|
+
p(d.$slots, "extras")
|
|
835
|
+
]),
|
|
836
|
+
key: "0"
|
|
837
|
+
} : void 0
|
|
838
|
+
]), 1032, ["label"])) : b("", !0),
|
|
839
|
+
w("button", {
|
|
815
840
|
id: m(l),
|
|
816
841
|
role: "checkbox",
|
|
817
842
|
type: "button",
|
|
@@ -825,34 +850,45 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
825
850
|
}, ["prevent"]), ["enter"]))
|
|
826
851
|
]
|
|
827
852
|
}, [
|
|
828
|
-
e.value || d.indeterminate ? (r(),
|
|
829
|
-
], 40,
|
|
830
|
-
t.labelPlacement === "right" ? (r(),
|
|
853
|
+
e.value || d.indeterminate ? (r(), S(m(O), H({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : b("", !0)
|
|
854
|
+
], 40, yn),
|
|
855
|
+
t.labelPlacement === "right" ? (r(), S(We, {
|
|
856
|
+
key: 1,
|
|
857
|
+
label: t.label
|
|
858
|
+
}, be({ _: 2 }, [
|
|
859
|
+
d.$slots.extras ? {
|
|
860
|
+
name: "extras",
|
|
861
|
+
fn: k(() => [
|
|
862
|
+
p(d.$slots, "extras")
|
|
863
|
+
]),
|
|
864
|
+
key: "0"
|
|
865
|
+
} : void 0
|
|
866
|
+
]), 1032, ["label"])) : b("", !0)
|
|
831
867
|
], 2),
|
|
832
|
-
|
|
868
|
+
w("input", {
|
|
833
869
|
type: "checkbox",
|
|
834
870
|
tabindex: "-1",
|
|
835
871
|
"aria-hidden": "true",
|
|
836
872
|
class: "q-checkbox__native-input",
|
|
837
873
|
checked: !!e.value,
|
|
838
874
|
disabled: t.disabled || t.readonly
|
|
839
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, vn)
|
|
840
876
|
], 64));
|
|
841
877
|
}
|
|
842
|
-
}),
|
|
878
|
+
}), gn = I(bn), _n = {
|
|
843
879
|
chevron: {
|
|
844
880
|
icon: "chevron-down"
|
|
845
881
|
}
|
|
846
|
-
},
|
|
882
|
+
}, $n = {
|
|
847
883
|
key: 0,
|
|
848
884
|
class: "q-collapsible__header"
|
|
849
|
-
},
|
|
885
|
+
}, kn = { class: "q-collapsible__title" }, wn = { class: "q-collapsible__title-text" }, qn = {
|
|
850
886
|
key: 1,
|
|
851
887
|
class: "q-collapsible--required"
|
|
852
|
-
},
|
|
888
|
+
}, xn = {
|
|
853
889
|
key: 0,
|
|
854
890
|
class: "q-collapsible__subtitle"
|
|
855
|
-
},
|
|
891
|
+
}, Sn = { class: "q-collapsible__content-inner" }, Bn = { class: "q-collapsible__content" }, Ln = /* @__PURE__ */ C({
|
|
856
892
|
__name: "QCollapsible",
|
|
857
893
|
props: /* @__PURE__ */ G({
|
|
858
894
|
id: { default: void 0 },
|
|
@@ -863,14 +899,14 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
863
899
|
spacing: {},
|
|
864
900
|
variant: {},
|
|
865
901
|
iconRight: { type: Boolean },
|
|
866
|
-
icons: { default: () =>
|
|
902
|
+
icons: { default: () => _n }
|
|
867
903
|
}, {
|
|
868
904
|
modelValue: { type: Boolean },
|
|
869
905
|
modelModifiers: {}
|
|
870
906
|
}),
|
|
871
907
|
emits: ["update:modelValue"],
|
|
872
908
|
setup(n) {
|
|
873
|
-
const t = n, e = X(n, "modelValue"), l = ue(t.id), o =
|
|
909
|
+
const t = n, e = X(n, "modelValue"), l = ue(t.id), o = Bt(l), s = y(() => t.width === "block" ? "block" : void 0), d = y(() => {
|
|
874
910
|
const u = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, _ = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
|
|
875
911
|
return [
|
|
876
912
|
"q-collapsible",
|
|
@@ -892,32 +928,32 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
892
928
|
return ee(
|
|
893
929
|
() => o == null ? void 0 : o.isActive.value,
|
|
894
930
|
() => e.value = o == null ? void 0 : o.isActive.value
|
|
895
|
-
), (u, _) => (r(),
|
|
931
|
+
), (u, _) => (r(), S(m(dt), {
|
|
896
932
|
id: m(l),
|
|
897
933
|
class: T(d.value),
|
|
898
934
|
width: s.value
|
|
899
935
|
}, {
|
|
900
936
|
header: k(() => [
|
|
901
|
-
u.title ? (r(), f("div",
|
|
937
|
+
u.title ? (r(), f("div", $n, [
|
|
902
938
|
D(m(se), {
|
|
903
939
|
"b-style": "tertiary",
|
|
904
940
|
class: "q-collapsible__btn",
|
|
905
941
|
onClick: i
|
|
906
942
|
}, {
|
|
907
943
|
default: k(() => [
|
|
908
|
-
|
|
944
|
+
w("div", kn, [
|
|
909
945
|
u.iconRight ? b("", !0) : p(u.$slots, "icon", { key: 0 }, () => [
|
|
910
946
|
D(m(O), H({ class: "q-collapsible__chevron" }, t.icons.chevron), null, 16)
|
|
911
947
|
]),
|
|
912
948
|
p(u.$slots, "title.prepend"),
|
|
913
|
-
|
|
914
|
-
t.required ? (r(), f("span",
|
|
949
|
+
w("h4", wn, Q(u.title), 1),
|
|
950
|
+
t.required ? (r(), f("span", qn, " * ")) : b("", !0),
|
|
915
951
|
p(u.$slots, "title.append"),
|
|
916
952
|
u.iconRight ? p(u.$slots, "icon", { key: 2 }, () => [
|
|
917
953
|
D(m(O), H({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, t.icons.chevron), null, 16)
|
|
918
954
|
]) : b("", !0)
|
|
919
955
|
]),
|
|
920
|
-
u.$slots.subtitle || u.subtitle ? (r(), f("div",
|
|
956
|
+
u.$slots.subtitle || u.subtitle ? (r(), f("div", xn, [
|
|
921
957
|
p(u.$slots, "subtitle", {}, () => [
|
|
922
958
|
de(Q(u.subtitle), 1)
|
|
923
959
|
])
|
|
@@ -928,11 +964,11 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
928
964
|
])) : b("", !0)
|
|
929
965
|
]),
|
|
930
966
|
default: k(() => [
|
|
931
|
-
|
|
967
|
+
w("div", {
|
|
932
968
|
class: T(a.value)
|
|
933
969
|
}, [
|
|
934
|
-
|
|
935
|
-
|
|
970
|
+
w("div", Sn, [
|
|
971
|
+
w("div", Bn, [
|
|
936
972
|
p(u.$slots, "default")
|
|
937
973
|
])
|
|
938
974
|
])
|
|
@@ -941,7 +977,7 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
941
977
|
_: 3
|
|
942
978
|
}, 8, ["id", "class", "width"]));
|
|
943
979
|
}
|
|
944
|
-
}),
|
|
980
|
+
}), Cn = I(Ln), In = /* @__PURE__ */ C({
|
|
945
981
|
__name: "QList",
|
|
946
982
|
props: /* @__PURE__ */ G({
|
|
947
983
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -961,7 +997,7 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
961
997
|
emits: ["update:modelValue"],
|
|
962
998
|
setup(n, { expose: t }) {
|
|
963
999
|
const e = n, l = X(n, "modelValue"), o = A(!1), s = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => e.groups.length ? e.groups.filter(
|
|
964
|
-
(v) => e.items.some((
|
|
1000
|
+
(v) => e.items.some((B) => B.group === v.id)
|
|
965
1001
|
) : [{ id: "", title: "" }]), a = A(null);
|
|
966
1002
|
function i(v) {
|
|
967
1003
|
l.value = v;
|
|
@@ -972,14 +1008,14 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
972
1008
|
function _() {
|
|
973
1009
|
o.value = !1;
|
|
974
1010
|
}
|
|
975
|
-
function
|
|
1011
|
+
function q(v) {
|
|
976
1012
|
var $;
|
|
977
1013
|
if (($ = a.value) != null && $.contains(v.relatedTarget))
|
|
978
1014
|
return;
|
|
979
|
-
let
|
|
980
|
-
l.value ?
|
|
1015
|
+
let B;
|
|
1016
|
+
l.value ? B = e.items.findIndex((K) => K[e.itemValue] === l.value) : B = M();
|
|
981
1017
|
const h = o.value;
|
|
982
|
-
V(
|
|
1018
|
+
V(B, h);
|
|
983
1019
|
}
|
|
984
1020
|
function N(v) {
|
|
985
1021
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
|
|
@@ -1011,13 +1047,13 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1011
1047
|
break;
|
|
1012
1048
|
}
|
|
1013
1049
|
}
|
|
1014
|
-
function V(v,
|
|
1050
|
+
function V(v, B = !1) {
|
|
1015
1051
|
var $;
|
|
1016
|
-
($ = g()[v]) == null || $.focus({ preventScroll:
|
|
1052
|
+
($ = g()[v]) == null || $.focus({ preventScroll: B });
|
|
1017
1053
|
}
|
|
1018
1054
|
function g() {
|
|
1019
|
-
var
|
|
1020
|
-
const v = (
|
|
1055
|
+
var B;
|
|
1056
|
+
const v = (B = a.value) == null ? void 0 : B.querySelectorAll("li");
|
|
1021
1057
|
return v ? Array.from(v) : [];
|
|
1022
1058
|
}
|
|
1023
1059
|
function E(v) {
|
|
@@ -1027,29 +1063,29 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1027
1063
|
return g().indexOf(document.activeElement);
|
|
1028
1064
|
}
|
|
1029
1065
|
function M() {
|
|
1030
|
-
const v = g(),
|
|
1031
|
-
return
|
|
1066
|
+
const v = g(), B = v.find((h) => R(h));
|
|
1067
|
+
return B ? v.indexOf(B) : -1;
|
|
1032
1068
|
}
|
|
1033
1069
|
function j() {
|
|
1034
|
-
const v = g(),
|
|
1035
|
-
return
|
|
1070
|
+
const v = g(), B = [...v].reverse().find((h) => R(h));
|
|
1071
|
+
return B ? v.indexOf(B) : -1;
|
|
1036
1072
|
}
|
|
1037
|
-
function ae(v,
|
|
1038
|
-
return
|
|
1073
|
+
function ae(v, B, h) {
|
|
1074
|
+
return B === "prev" && v === 0 || B === "next" && v === h.length - 1;
|
|
1039
1075
|
}
|
|
1040
1076
|
function Z(v) {
|
|
1041
|
-
const
|
|
1042
|
-
return ie(
|
|
1077
|
+
const B = P();
|
|
1078
|
+
return ie(B, v);
|
|
1043
1079
|
}
|
|
1044
|
-
function ie(v,
|
|
1080
|
+
function ie(v, B) {
|
|
1045
1081
|
const h = g();
|
|
1046
|
-
if (ae(v,
|
|
1082
|
+
if (ae(v, B, h))
|
|
1047
1083
|
return v;
|
|
1048
|
-
let $ = v + (
|
|
1084
|
+
let $ = v + (B === "next" ? 1 : -1);
|
|
1049
1085
|
for (; !R(h[$]); ) {
|
|
1050
|
-
if (ae($,
|
|
1086
|
+
if (ae($, B, h))
|
|
1051
1087
|
return v;
|
|
1052
|
-
$ +=
|
|
1088
|
+
$ += B === "next" ? 1 : -1;
|
|
1053
1089
|
}
|
|
1054
1090
|
return $;
|
|
1055
1091
|
}
|
|
@@ -1057,7 +1093,7 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1057
1093
|
return v.tabIndex === -2;
|
|
1058
1094
|
}
|
|
1059
1095
|
function te(v) {
|
|
1060
|
-
return v ? e.items.filter((
|
|
1096
|
+
return v ? e.items.filter((B) => B.group === v) : e.items;
|
|
1061
1097
|
}
|
|
1062
1098
|
return t({
|
|
1063
1099
|
focusItem: V,
|
|
@@ -1065,25 +1101,25 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1065
1101
|
getAdjacentItemIndex: ie,
|
|
1066
1102
|
getFirstFocusableItemIndex: M,
|
|
1067
1103
|
getLastFocusableItemIndex: j
|
|
1068
|
-
}), (v,
|
|
1104
|
+
}), (v, B) => (r(), S(Be(s.value), {
|
|
1069
1105
|
ref_key: "listRef",
|
|
1070
1106
|
ref: a,
|
|
1071
1107
|
class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
1072
1108
|
role: "listbox",
|
|
1073
1109
|
tabindex: e.disabled ? -1 : 0,
|
|
1074
|
-
onFocus:
|
|
1110
|
+
onFocus: q,
|
|
1075
1111
|
onMousedown: u,
|
|
1076
1112
|
onMouseup: _,
|
|
1077
1113
|
onKeydown: N
|
|
1078
1114
|
}, {
|
|
1079
1115
|
default: k(() => [
|
|
1080
|
-
(r(!0), f(U, null, ve(d.value, (h) => (r(),
|
|
1116
|
+
(r(!0), f(U, null, ve(d.value, (h) => (r(), S(m(ct), {
|
|
1081
1117
|
id: h.id,
|
|
1082
1118
|
key: h.id,
|
|
1083
1119
|
title: d.value.length === 1 ? void 0 : h.title
|
|
1084
1120
|
}, {
|
|
1085
1121
|
default: k(() => [
|
|
1086
|
-
(r(!0), f(U, null, ve(te(h.id), ($) => (r(),
|
|
1122
|
+
(r(!0), f(U, null, ve(te(h.id), ($) => (r(), S(m(ut), {
|
|
1087
1123
|
key: $[e.itemValue],
|
|
1088
1124
|
value: $[e.itemValue],
|
|
1089
1125
|
label: $[e.itemLabel],
|
|
@@ -1106,17 +1142,17 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1106
1142
|
_: 3
|
|
1107
1143
|
}, 40, ["class", "tabindex"]));
|
|
1108
1144
|
}
|
|
1109
|
-
}),
|
|
1145
|
+
}), Tn = {
|
|
1110
1146
|
check: {
|
|
1111
1147
|
icon: "check"
|
|
1112
1148
|
},
|
|
1113
1149
|
description: {
|
|
1114
1150
|
icon: "information-outline"
|
|
1115
1151
|
}
|
|
1116
|
-
},
|
|
1152
|
+
}, Vn = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], An = { class: "q-list-item__container" }, En = { class: "q-list-item__content" }, Qn = {
|
|
1117
1153
|
key: 0,
|
|
1118
1154
|
class: "q-list-item__description"
|
|
1119
|
-
},
|
|
1155
|
+
}, Dn = { class: "q-list-item__check-container" }, zn = /* @__PURE__ */ C({
|
|
1120
1156
|
__name: "QListItem",
|
|
1121
1157
|
props: {
|
|
1122
1158
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -1126,7 +1162,7 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1126
1162
|
highlighted: { type: Boolean },
|
|
1127
1163
|
disabled: { type: Boolean },
|
|
1128
1164
|
description: { default: void 0 },
|
|
1129
|
-
icons: { default: () =>
|
|
1165
|
+
icons: { default: () => Tn }
|
|
1130
1166
|
},
|
|
1131
1167
|
emits: ["select"],
|
|
1132
1168
|
setup(n, { emit: t }) {
|
|
@@ -1155,24 +1191,24 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1155
1191
|
onKeydown: d,
|
|
1156
1192
|
onClick: fe(s, ["stop", "prevent"])
|
|
1157
1193
|
}, [
|
|
1158
|
-
|
|
1159
|
-
|
|
1194
|
+
w("div", An, [
|
|
1195
|
+
w("div", En, [
|
|
1160
1196
|
p(a.$slots, "default", {}, () => [
|
|
1161
|
-
e.icon ? (r(),
|
|
1197
|
+
e.icon ? (r(), S(m(O), Y(H({ key: 0 }, e.icon)), null, 16)) : b("", !0),
|
|
1162
1198
|
de(" " + Q(e.label), 1)
|
|
1163
1199
|
])
|
|
1164
1200
|
]),
|
|
1165
|
-
e.description ? (r(), f("div",
|
|
1201
|
+
e.description ? (r(), f("div", Qn, [
|
|
1166
1202
|
D(m(O), Y(oe(e.icons.description)), null, 16),
|
|
1167
|
-
|
|
1203
|
+
w("span", null, Q(e.description), 1)
|
|
1168
1204
|
])) : b("", !0)
|
|
1169
1205
|
]),
|
|
1170
|
-
|
|
1171
|
-
e.selected ? (r(),
|
|
1206
|
+
w("div", Dn, [
|
|
1207
|
+
e.selected ? (r(), S(m(O), H({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
|
|
1172
1208
|
])
|
|
1173
|
-
], 42,
|
|
1209
|
+
], 42, Vn));
|
|
1174
1210
|
}
|
|
1175
|
-
}),
|
|
1211
|
+
}), Mn = ["data-key", "aria-labelledby"], Fn = ["id"], On = /* @__PURE__ */ C({
|
|
1176
1212
|
__name: "QListItemGroup",
|
|
1177
1213
|
props: {
|
|
1178
1214
|
id: {},
|
|
@@ -1191,22 +1227,22 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1191
1227
|
id: m(e),
|
|
1192
1228
|
class: "q-list-item-group__title",
|
|
1193
1229
|
role: "presentation"
|
|
1194
|
-
}, Q(t.title), 9,
|
|
1230
|
+
}, Q(t.title), 9, Fn)) : b("", !0),
|
|
1195
1231
|
p(l.$slots, "default")
|
|
1196
|
-
], 8,
|
|
1232
|
+
], 8, Mn));
|
|
1197
1233
|
}
|
|
1198
|
-
}), Ue = I(
|
|
1234
|
+
}), Ue = I(In), ut = I(zn), ct = I(On), ye = "data-scroll-locked", Ce = "right-scroll-bar-position", Ie = "width-before-scroll-bar", Pn = "with-scroll-bars-hidden", Un = "--removed-body-scroll-bar-size", Nn = {
|
|
1199
1235
|
left: 0,
|
|
1200
1236
|
top: 0,
|
|
1201
1237
|
right: 0,
|
|
1202
1238
|
gap: 0
|
|
1203
|
-
}, Te = (n) => parseInt(n || "", 10) || 0,
|
|
1239
|
+
}, Te = (n) => parseInt(n || "", 10) || 0, Rn = (n) => {
|
|
1204
1240
|
const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"], l = t[n === "padding" ? "paddingTop" : "marginTop"], o = t[n === "padding" ? "paddingRight" : "marginRight"];
|
|
1205
1241
|
return [Te(e), Te(l), Te(o)];
|
|
1206
|
-
},
|
|
1242
|
+
}, Gn = (n = "margin") => {
|
|
1207
1243
|
if (typeof window > "u")
|
|
1208
|
-
return
|
|
1209
|
-
const t =
|
|
1244
|
+
return Nn;
|
|
1245
|
+
const t = Rn(n), e = document.documentElement.clientWidth, l = window.innerWidth;
|
|
1210
1246
|
return {
|
|
1211
1247
|
left: t[0],
|
|
1212
1248
|
top: t[1],
|
|
@@ -1214,27 +1250,27 @@ const nn = { class: "q-card__header" }, ln = {
|
|
|
1214
1250
|
gap: Math.max(0, l - e + t[2] - t[0])
|
|
1215
1251
|
};
|
|
1216
1252
|
};
|
|
1217
|
-
function
|
|
1253
|
+
function Hn() {
|
|
1218
1254
|
return document ? document.createElement("style") : null;
|
|
1219
1255
|
}
|
|
1220
|
-
function
|
|
1256
|
+
function jn(n, t) {
|
|
1221
1257
|
n.appendChild(document.createTextNode(t));
|
|
1222
1258
|
}
|
|
1223
|
-
function
|
|
1259
|
+
function Kn(n) {
|
|
1224
1260
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(n);
|
|
1225
1261
|
}
|
|
1226
|
-
const
|
|
1262
|
+
const Wn = () => {
|
|
1227
1263
|
let n = 0, t = null;
|
|
1228
1264
|
return {
|
|
1229
1265
|
add: (e) => {
|
|
1230
|
-
n === 0 && (t =
|
|
1266
|
+
n === 0 && (t = Hn()) && (jn(t, e), Kn(t)), n++;
|
|
1231
1267
|
},
|
|
1232
1268
|
remove: () => {
|
|
1233
1269
|
var e;
|
|
1234
1270
|
n--, !n && t && ((e = t.parentNode) == null || e.removeChild(t), t = null);
|
|
1235
1271
|
}
|
|
1236
1272
|
};
|
|
1237
|
-
},
|
|
1273
|
+
}, Xn = /* @__PURE__ */ C({
|
|
1238
1274
|
__name: "QRemoveScrollBar",
|
|
1239
1275
|
props: {
|
|
1240
1276
|
noRelative: { type: Boolean, default: !1 },
|
|
@@ -1242,107 +1278,107 @@ const jn = () => {
|
|
|
1242
1278
|
gapMode: { default: "margin" }
|
|
1243
1279
|
},
|
|
1244
1280
|
setup(n) {
|
|
1245
|
-
const t = n, e =
|
|
1281
|
+
const t = n, e = Wn(), l = () => {
|
|
1246
1282
|
const s = parseInt(document.body.getAttribute(ye) || "0", 10);
|
|
1247
1283
|
return isFinite(s) ? s : 0;
|
|
1248
|
-
}, o = ({ left: s, top: d, right: a, gap: i }, u, _ = "margin",
|
|
1249
|
-
.${
|
|
1250
|
-
overflow: hidden ${
|
|
1251
|
-
padding-right: ${i}px ${
|
|
1284
|
+
}, o = ({ left: s, top: d, right: a, gap: i }, u, _ = "margin", q) => `
|
|
1285
|
+
.${Pn} {
|
|
1286
|
+
overflow: hidden ${q};
|
|
1287
|
+
padding-right: ${i}px ${q};
|
|
1252
1288
|
}
|
|
1253
1289
|
body[${ye}] {
|
|
1254
|
-
overflow: hidden ${
|
|
1290
|
+
overflow: hidden ${q};
|
|
1255
1291
|
overscroll-behavior: contain;
|
|
1256
1292
|
${[
|
|
1257
|
-
u && `position: relative ${
|
|
1293
|
+
u && `position: relative ${q};`,
|
|
1258
1294
|
_ === "margin" && `
|
|
1259
1295
|
padding-left: ${s}px;
|
|
1260
1296
|
padding-top: ${d}px;
|
|
1261
1297
|
padding-right: ${a}px;
|
|
1262
1298
|
margin-left:0;
|
|
1263
1299
|
margin-top:0;
|
|
1264
|
-
margin-right: ${i}px ${
|
|
1300
|
+
margin-right: ${i}px ${q};
|
|
1265
1301
|
`,
|
|
1266
|
-
_ === "padding" && `padding-right: ${i}px ${
|
|
1302
|
+
_ === "padding" && `padding-right: ${i}px ${q};`
|
|
1267
1303
|
].filter(Boolean).join("")}
|
|
1268
1304
|
}
|
|
1269
1305
|
|
|
1270
1306
|
.${Ce} {
|
|
1271
|
-
right: ${i}px ${
|
|
1307
|
+
right: ${i}px ${q};
|
|
1272
1308
|
}
|
|
1273
1309
|
|
|
1274
1310
|
.${Ie} {
|
|
1275
|
-
margin-right: ${i}px ${
|
|
1311
|
+
margin-right: ${i}px ${q};
|
|
1276
1312
|
}
|
|
1277
1313
|
|
|
1278
1314
|
.${Ce} .${Ce} {
|
|
1279
|
-
right: 0 ${
|
|
1315
|
+
right: 0 ${q};
|
|
1280
1316
|
}
|
|
1281
1317
|
|
|
1282
1318
|
.${Ie} .${Ie} {
|
|
1283
|
-
margin-right: 0 ${
|
|
1319
|
+
margin-right: 0 ${q};
|
|
1284
1320
|
}
|
|
1285
1321
|
|
|
1286
1322
|
body[${ye}] {
|
|
1287
|
-
${
|
|
1323
|
+
${Un}: ${i}px;
|
|
1288
1324
|
}
|
|
1289
1325
|
`;
|
|
1290
1326
|
return Me(() => {
|
|
1291
1327
|
document.body.setAttribute(ye, (l() + 1).toString());
|
|
1292
|
-
const s =
|
|
1328
|
+
const s = Gn(t.gapMode);
|
|
1293
1329
|
e.add(
|
|
1294
1330
|
o(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
1295
1331
|
);
|
|
1296
|
-
}),
|
|
1332
|
+
}), gt(() => {
|
|
1297
1333
|
const s = l() - 1;
|
|
1298
1334
|
s <= 0 ? document.body.removeAttribute(ye) : document.body.setAttribute(ye, s.toString()), e.remove();
|
|
1299
1335
|
}), (s, d) => p(s.$slots, "default");
|
|
1300
1336
|
}
|
|
1301
|
-
}),
|
|
1302
|
-
function
|
|
1303
|
-
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", d = n.getBoundingClientRect(), a = t.getBoundingClientRect(), i = e == null ? void 0 : e.getBoundingClientRect(), u =
|
|
1337
|
+
}), Yn = I(Xn), xe = 8;
|
|
1338
|
+
function Zn(n, t, e, l) {
|
|
1339
|
+
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", d = n.getBoundingClientRect(), a = t.getBoundingClientRect(), i = e == null ? void 0 : e.getBoundingClientRect(), u = Jn(d, a, s, o), _ = ll(d, a, u), q = tl(_, u, o), N = el(q, a, u);
|
|
1304
1340
|
let z;
|
|
1305
1341
|
if (l != null && l.arrow) {
|
|
1306
1342
|
if (!i)
|
|
1307
1343
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
1308
|
-
z =
|
|
1344
|
+
z = nl(N, d, a, i, u);
|
|
1309
1345
|
}
|
|
1310
1346
|
return { overlayCoords: N, arrowCoords: z, placement: u };
|
|
1311
1347
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const o =
|
|
1314
|
-
if (
|
|
1315
|
-
const s =
|
|
1348
|
+
function Jn(n, t, e, l) {
|
|
1349
|
+
const o = Xe(n, t, e, l);
|
|
1350
|
+
if (Ye(o)) {
|
|
1351
|
+
const s = we(e), a = {
|
|
1316
1352
|
top: "bottom",
|
|
1317
1353
|
bottom: "top",
|
|
1318
1354
|
left: "right",
|
|
1319
1355
|
right: "left"
|
|
1320
|
-
}[s], i =
|
|
1356
|
+
}[s], i = Xe(
|
|
1321
1357
|
n,
|
|
1322
1358
|
t,
|
|
1323
1359
|
a,
|
|
1324
1360
|
l
|
|
1325
1361
|
);
|
|
1326
|
-
if (
|
|
1362
|
+
if (Ye(i))
|
|
1327
1363
|
return e;
|
|
1328
|
-
const u =
|
|
1364
|
+
const u = al(e);
|
|
1329
1365
|
return u ? `${a}-${u}` : a;
|
|
1330
1366
|
}
|
|
1331
1367
|
return e;
|
|
1332
1368
|
}
|
|
1333
|
-
function
|
|
1334
|
-
const l =
|
|
1335
|
-
return l === "x" ? s.x = o(n.x,
|
|
1369
|
+
function el(n, t, e) {
|
|
1370
|
+
const l = Se(e), o = (d, a, i) => Math.min(Math.max(d, a), i), s = { ...n };
|
|
1371
|
+
return l === "x" ? s.x = o(n.x, xe, window.innerWidth - t.width - xe) : s.y = o(n.y, xe, window.innerHeight - t.height - xe), s;
|
|
1336
1372
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const l =
|
|
1373
|
+
function tl(n, t, e) {
|
|
1374
|
+
const l = we(t);
|
|
1339
1375
|
return {
|
|
1340
1376
|
x: n.x + (l === "left" ? -e : l === "right" ? e : 0),
|
|
1341
1377
|
y: n.y + (l === "top" ? -e : l === "bottom" ? e : 0)
|
|
1342
1378
|
};
|
|
1343
1379
|
}
|
|
1344
|
-
function
|
|
1345
|
-
if (
|
|
1380
|
+
function nl(n, t, e, l, o) {
|
|
1381
|
+
if (Se(o) === "y") {
|
|
1346
1382
|
const d = t.top + t.height / 2, a = n.y + e.height / 2, i = a - d, u = e.height / 2 - i - l.height / 2 + 2;
|
|
1347
1383
|
if (u > 0 && u < e.height - l.height)
|
|
1348
1384
|
return {
|
|
@@ -1356,7 +1392,7 @@ function el(n, t, e, l, o) {
|
|
|
1356
1392
|
};
|
|
1357
1393
|
}
|
|
1358
1394
|
}
|
|
1359
|
-
function
|
|
1395
|
+
function ll(n, t, e) {
|
|
1360
1396
|
const [l, o] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, d = n.y + n.height / 2 - t.height / 2;
|
|
1361
1397
|
let a;
|
|
1362
1398
|
switch (l) {
|
|
@@ -1377,21 +1413,21 @@ function tl(n, t, e) {
|
|
|
1377
1413
|
}
|
|
1378
1414
|
if (!o)
|
|
1379
1415
|
return a;
|
|
1380
|
-
const u =
|
|
1416
|
+
const u = Se(e) === "y" ? "height" : "width", _ = Se(e), q = n[u] / 2 - t[u] / 2;
|
|
1381
1417
|
switch (o) {
|
|
1382
1418
|
case "start":
|
|
1383
|
-
a[_] -=
|
|
1419
|
+
a[_] -= q;
|
|
1384
1420
|
break;
|
|
1385
1421
|
case "end":
|
|
1386
|
-
a[_] +=
|
|
1422
|
+
a[_] += q;
|
|
1387
1423
|
break;
|
|
1388
1424
|
default:
|
|
1389
1425
|
throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
|
|
1390
1426
|
}
|
|
1391
1427
|
return a;
|
|
1392
1428
|
}
|
|
1393
|
-
function
|
|
1394
|
-
const o =
|
|
1429
|
+
function Xe(n, t, e, l) {
|
|
1430
|
+
const o = we(e);
|
|
1395
1431
|
let s = 0;
|
|
1396
1432
|
switch (o) {
|
|
1397
1433
|
case "top":
|
|
@@ -1411,31 +1447,31 @@ function We(n, t, e, l) {
|
|
|
1411
1447
|
}
|
|
1412
1448
|
return s;
|
|
1413
1449
|
}
|
|
1414
|
-
function
|
|
1450
|
+
function ol(n) {
|
|
1415
1451
|
return n === "x" ? "y" : "x";
|
|
1416
1452
|
}
|
|
1417
|
-
function
|
|
1418
|
-
const t =
|
|
1453
|
+
function sl(n) {
|
|
1454
|
+
const t = we(n);
|
|
1419
1455
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1420
1456
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return
|
|
1457
|
+
function Se(n) {
|
|
1458
|
+
return ol(sl(n));
|
|
1423
1459
|
}
|
|
1424
|
-
function
|
|
1460
|
+
function we(n) {
|
|
1425
1461
|
const [t] = n.split("-");
|
|
1426
1462
|
return t;
|
|
1427
1463
|
}
|
|
1428
|
-
function
|
|
1464
|
+
function al(n) {
|
|
1429
1465
|
const [, t] = n.split("-");
|
|
1430
1466
|
return t;
|
|
1431
1467
|
}
|
|
1432
|
-
function
|
|
1468
|
+
function Ye(n) {
|
|
1433
1469
|
return n < 0;
|
|
1434
1470
|
}
|
|
1435
|
-
function
|
|
1471
|
+
function il(n) {
|
|
1436
1472
|
return typeof n == "string" ? document.querySelector(n) : n;
|
|
1437
1473
|
}
|
|
1438
|
-
const
|
|
1474
|
+
const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
1439
1475
|
inheritAttrs: !1,
|
|
1440
1476
|
__name: "QOverlay",
|
|
1441
1477
|
props: /* @__PURE__ */ G({
|
|
@@ -1465,7 +1501,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1465
1501
|
setup(n, { emit: t }) {
|
|
1466
1502
|
const e = n, l = t, o = X(n, "modelValue"), s = y(() => [
|
|
1467
1503
|
"q-overlay",
|
|
1468
|
-
`q-overlay--${
|
|
1504
|
+
`q-overlay--${we(a.placement)}`,
|
|
1469
1505
|
{
|
|
1470
1506
|
"q-overlay--independent": e.anchor === void 0,
|
|
1471
1507
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
@@ -1491,7 +1527,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1491
1527
|
left: `${a.left}px`,
|
|
1492
1528
|
width: J !== void 0 ? `${J}px` : void 0
|
|
1493
1529
|
};
|
|
1494
|
-
}),
|
|
1530
|
+
}), q = y(() => {
|
|
1495
1531
|
if (e.arrow)
|
|
1496
1532
|
return {
|
|
1497
1533
|
top: i.top !== void 0 ? `${i.top}px` : void 0,
|
|
@@ -1508,7 +1544,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1508
1544
|
width: e.width,
|
|
1509
1545
|
offset: e.offset,
|
|
1510
1546
|
arrow: e.arrow
|
|
1511
|
-
}, J =
|
|
1547
|
+
}, J = Zn(
|
|
1512
1548
|
x,
|
|
1513
1549
|
z.value,
|
|
1514
1550
|
(N == null ? void 0 : N.value) ?? void 0,
|
|
@@ -1547,7 +1583,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1547
1583
|
window.clearTimeout(Z), Z = window.setTimeout(() => a.animating = !1, 200), l("leave");
|
|
1548
1584
|
}
|
|
1549
1585
|
function R() {
|
|
1550
|
-
return e.anchor ?
|
|
1586
|
+
return e.anchor ? il(e.anchor) : null;
|
|
1551
1587
|
}
|
|
1552
1588
|
let te;
|
|
1553
1589
|
function v() {
|
|
@@ -1567,7 +1603,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1567
1603
|
break;
|
|
1568
1604
|
}
|
|
1569
1605
|
}
|
|
1570
|
-
function
|
|
1606
|
+
function B() {
|
|
1571
1607
|
const x = R();
|
|
1572
1608
|
if (x)
|
|
1573
1609
|
switch (te == null || te.disconnect(), e.trigger) {
|
|
@@ -1598,13 +1634,13 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1598
1634
|
function ce() {
|
|
1599
1635
|
$(), e.spy && (clearTimeout(K), K = void 0), a.top = 0, a.left = 0;
|
|
1600
1636
|
}
|
|
1601
|
-
function
|
|
1637
|
+
function qe() {
|
|
1602
1638
|
e.persistent || j();
|
|
1603
1639
|
}
|
|
1604
1640
|
return Me(() => {
|
|
1605
1641
|
le(v);
|
|
1606
|
-
}),
|
|
1607
|
-
|
|
1642
|
+
}), _t(() => {
|
|
1643
|
+
B(), ce();
|
|
1608
1644
|
}), ee(
|
|
1609
1645
|
o,
|
|
1610
1646
|
(x) => {
|
|
@@ -1612,7 +1648,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1612
1648
|
},
|
|
1613
1649
|
{ immediate: !0 }
|
|
1614
1650
|
), (x, me) => (r(), f(U, null, [
|
|
1615
|
-
(r(),
|
|
1651
|
+
(r(), S($t, {
|
|
1616
1652
|
disabled: !o.value && !a.animating || e.inline,
|
|
1617
1653
|
to: e.attach
|
|
1618
1654
|
}, [
|
|
@@ -1624,7 +1660,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1624
1660
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1625
1661
|
])
|
|
1626
1662
|
}, null, 2)) : b("", !0),
|
|
1627
|
-
D(
|
|
1663
|
+
D(kt, {
|
|
1628
1664
|
name: e.transition,
|
|
1629
1665
|
appear: "",
|
|
1630
1666
|
onLeave: ie
|
|
@@ -1635,15 +1671,15 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1635
1671
|
class: T(s.value),
|
|
1636
1672
|
style: pe(_.value)
|
|
1637
1673
|
}, [
|
|
1638
|
-
|
|
1674
|
+
w("div", H({
|
|
1639
1675
|
ref_key: "overlayRef",
|
|
1640
1676
|
ref: z,
|
|
1641
1677
|
class: "q-overlay__content",
|
|
1642
1678
|
tabindex: "-1",
|
|
1643
1679
|
role: d.value ? "dialog" : void 0
|
|
1644
1680
|
}, x.$attrs, {
|
|
1645
|
-
onKeydown: Ae(
|
|
1646
|
-
onBlur:
|
|
1681
|
+
onKeydown: Ae(qe, ["escape"]),
|
|
1682
|
+
onBlur: qe
|
|
1647
1683
|
}), [
|
|
1648
1684
|
e.arrow ? (r(), f("div", {
|
|
1649
1685
|
key: 0,
|
|
@@ -1651,31 +1687,31 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1651
1687
|
ref: N,
|
|
1652
1688
|
role: "presentation",
|
|
1653
1689
|
class: "q-overlay__arrow",
|
|
1654
|
-
style: pe(
|
|
1690
|
+
style: pe(q.value)
|
|
1655
1691
|
}, null, 4)) : b("", !0),
|
|
1656
1692
|
p(x.$slots, "default")
|
|
1657
|
-
], 16,
|
|
1693
|
+
], 16, rl)
|
|
1658
1694
|
], 6)) : b("", !0)
|
|
1659
1695
|
]),
|
|
1660
1696
|
_: 3
|
|
1661
1697
|
}, 8, ["name"])
|
|
1662
1698
|
], 8, ["disabled", "to"])),
|
|
1663
|
-
e.scrollLock && o.value ? (r(),
|
|
1699
|
+
e.scrollLock && o.value ? (r(), S(m(Yn), { key: 0 })) : b("", !0)
|
|
1664
1700
|
], 64));
|
|
1665
1701
|
}
|
|
1666
|
-
}),
|
|
1702
|
+
}), ge = I(dl), ul = ["id"], cl = {
|
|
1667
1703
|
key: 0,
|
|
1668
1704
|
class: "q-field__label"
|
|
1669
|
-
},
|
|
1705
|
+
}, fl = ["for"], pl = {
|
|
1670
1706
|
key: 0,
|
|
1671
1707
|
class: "q-field__prepend"
|
|
1672
|
-
},
|
|
1708
|
+
}, ml = {
|
|
1673
1709
|
key: 1,
|
|
1674
1710
|
class: "q-field__append"
|
|
1675
|
-
},
|
|
1711
|
+
}, hl = {
|
|
1676
1712
|
key: 1,
|
|
1677
1713
|
class: "q-field__extras"
|
|
1678
|
-
},
|
|
1714
|
+
}, yl = /* @__PURE__ */ C({
|
|
1679
1715
|
inheritAttrs: !1,
|
|
1680
1716
|
__name: "QField",
|
|
1681
1717
|
props: {
|
|
@@ -1705,34 +1741,34 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1705
1741
|
e.class
|
|
1706
1742
|
])
|
|
1707
1743
|
}, [
|
|
1708
|
-
e.label ? (r(), f("div",
|
|
1744
|
+
e.label ? (r(), f("div", cl, [
|
|
1709
1745
|
p(d.$slots, "label.prepend"),
|
|
1710
|
-
|
|
1746
|
+
w("label", {
|
|
1711
1747
|
for: e.for
|
|
1712
|
-
}, Q(e.label), 9,
|
|
1748
|
+
}, Q(e.label), 9, fl),
|
|
1713
1749
|
p(d.$slots, "label.append")
|
|
1714
1750
|
])) : b("", !0),
|
|
1715
1751
|
p(d.$slots, "control", {}, () => [
|
|
1716
|
-
|
|
1752
|
+
w("div", H({
|
|
1717
1753
|
ref_key: "fieldRef",
|
|
1718
1754
|
ref: o,
|
|
1719
1755
|
class: "q-field__control"
|
|
1720
1756
|
}, d.$attrs), [
|
|
1721
|
-
d.$slots.prepend ? (r(), f("div",
|
|
1757
|
+
d.$slots.prepend ? (r(), f("div", pl, [
|
|
1722
1758
|
p(d.$slots, "prepend")
|
|
1723
1759
|
])) : b("", !0),
|
|
1724
1760
|
p(d.$slots, "default"),
|
|
1725
|
-
d.$slots.append ? (r(), f("div",
|
|
1761
|
+
d.$slots.append ? (r(), f("div", ml, [
|
|
1726
1762
|
p(d.$slots, "append")
|
|
1727
1763
|
])) : b("", !0)
|
|
1728
1764
|
], 16)
|
|
1729
1765
|
]),
|
|
1730
|
-
d.$slots.extras ? (r(), f("div",
|
|
1766
|
+
d.$slots.extras ? (r(), f("div", hl, [
|
|
1731
1767
|
p(d.$slots, "extras")
|
|
1732
1768
|
])) : b("", !0)
|
|
1733
|
-
], 10,
|
|
1769
|
+
], 10, ul));
|
|
1734
1770
|
}
|
|
1735
|
-
}), Le = I(
|
|
1771
|
+
}), Le = I(yl), vl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], bl = /* @__PURE__ */ C({
|
|
1736
1772
|
inheritAttrs: !1,
|
|
1737
1773
|
__name: "QTextField",
|
|
1738
1774
|
props: /* @__PURE__ */ G({
|
|
@@ -1762,7 +1798,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1762
1798
|
return (i = s.value) == null ? void 0 : i.fieldRef;
|
|
1763
1799
|
}),
|
|
1764
1800
|
inputRef: d
|
|
1765
|
-
}), (i, u) => (r(),
|
|
1801
|
+
}), (i, u) => (r(), S(m(Le), {
|
|
1766
1802
|
ref_key: "fieldRef",
|
|
1767
1803
|
ref: s,
|
|
1768
1804
|
class: T(["q-text-field", e.class]),
|
|
@@ -1772,7 +1808,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1772
1808
|
readonly: e.readonly,
|
|
1773
1809
|
disabled: e.disabled,
|
|
1774
1810
|
required: e.required
|
|
1775
|
-
},
|
|
1811
|
+
}, be({
|
|
1776
1812
|
"label.prepend": k(() => [
|
|
1777
1813
|
p(i.$slots, "label.prepend")
|
|
1778
1814
|
]),
|
|
@@ -1780,7 +1816,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1780
1816
|
p(i.$slots, "label.append")
|
|
1781
1817
|
]),
|
|
1782
1818
|
default: k(() => [
|
|
1783
|
-
|
|
1819
|
+
wt(w("input", H({
|
|
1784
1820
|
id: m(o),
|
|
1785
1821
|
ref_key: "inputRef",
|
|
1786
1822
|
ref: d,
|
|
@@ -1793,8 +1829,8 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1793
1829
|
readonly: e.readonly,
|
|
1794
1830
|
disabled: e.disabled,
|
|
1795
1831
|
maxlength: e.maxLength
|
|
1796
|
-
}, i.$attrs), null, 16,
|
|
1797
|
-
[
|
|
1832
|
+
}, i.$attrs), null, 16, vl), [
|
|
1833
|
+
[qt, l.value]
|
|
1798
1834
|
])
|
|
1799
1835
|
]),
|
|
1800
1836
|
_: 2
|
|
@@ -1822,24 +1858,24 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1822
1858
|
} : void 0
|
|
1823
1859
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1824
1860
|
}
|
|
1825
|
-
}),
|
|
1861
|
+
}), ft = I(bl), gl = {
|
|
1826
1862
|
noData: "No data available",
|
|
1827
1863
|
clearValue: "Clear value",
|
|
1828
1864
|
showOptions: "Show options"
|
|
1829
|
-
},
|
|
1865
|
+
}, _l = {
|
|
1830
1866
|
chevron: {
|
|
1831
1867
|
icon: "chevron-down"
|
|
1832
1868
|
},
|
|
1833
1869
|
clear: {
|
|
1834
1870
|
icon: "close"
|
|
1835
1871
|
}
|
|
1836
|
-
},
|
|
1872
|
+
}, $l = ["data-key"], kl = {
|
|
1837
1873
|
key: 0,
|
|
1838
1874
|
class: "q-select__loader"
|
|
1839
|
-
},
|
|
1875
|
+
}, wl = {
|
|
1840
1876
|
key: 2,
|
|
1841
1877
|
class: "q-select__loader"
|
|
1842
|
-
},
|
|
1878
|
+
}, ql = /* @__PURE__ */ C({
|
|
1843
1879
|
inheritAttrs: !1,
|
|
1844
1880
|
__name: "QCombobox",
|
|
1845
1881
|
props: /* @__PURE__ */ G({
|
|
@@ -1860,8 +1896,8 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1860
1896
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1861
1897
|
size: { default: void 0 },
|
|
1862
1898
|
class: { default: void 0 },
|
|
1863
|
-
icons: { default: () =>
|
|
1864
|
-
texts: { default: () =>
|
|
1899
|
+
icons: { default: () => _l },
|
|
1900
|
+
texts: { default: () => gl }
|
|
1865
1901
|
}, {
|
|
1866
1902
|
modelValue: {
|
|
1867
1903
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1874,7 +1910,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1874
1910
|
}),
|
|
1875
1911
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1876
1912
|
setup(n, { expose: t, emit: e }) {
|
|
1877
|
-
const l = n, o = e, s = X(n, "modelValue"), d = X(n, "open"), a = X(n, "search"), i = A(void 0), u = A(null), _ = A(null),
|
|
1913
|
+
const l = n, o = e, s = X(n, "modelValue"), d = X(n, "open"), a = X(n, "search"), i = A(void 0), u = A(null), _ = A(null), q = A(null), N = A(null);
|
|
1878
1914
|
Me(Z);
|
|
1879
1915
|
const z = y(() => l.clearable && !l.readonly && !l.disabled), V = y(() => {
|
|
1880
1916
|
var c;
|
|
@@ -1913,12 +1949,12 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1913
1949
|
d.value && (o("before-hide"), d.value = !1, i.value = void 0);
|
|
1914
1950
|
}
|
|
1915
1951
|
function te() {
|
|
1916
|
-
d.value ? R() :
|
|
1952
|
+
d.value ? R() : B();
|
|
1917
1953
|
}
|
|
1918
1954
|
function v() {
|
|
1919
1955
|
z.value && (s.value = l.emptyValue, i.value = void 0, ce());
|
|
1920
1956
|
}
|
|
1921
|
-
function
|
|
1957
|
+
function B() {
|
|
1922
1958
|
if (ie(), g.value !== void 0) {
|
|
1923
1959
|
const c = V.value.indexOf(g.value);
|
|
1924
1960
|
c !== -1 && le(() => J(c));
|
|
@@ -1966,7 +2002,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1966
2002
|
}
|
|
1967
2003
|
function ne(c) {
|
|
1968
2004
|
var he, Ne, Re, Ge;
|
|
1969
|
-
const L = ((he =
|
|
2005
|
+
const L = ((he = q == null ? void 0 : q.value) == null ? void 0 : he.$el) === c.relatedTarget, F = (Re = (Ne = u == null ? void 0 : u.value) == null ? void 0 : Ne.$el) == null ? void 0 : Re.contains(c.relatedTarget), W = (Ge = N == null ? void 0 : N.value) == null ? void 0 : Ge.contains(c.relatedTarget);
|
|
1970
2006
|
if (L || W || F) {
|
|
1971
2007
|
c.preventDefault(), c.stopPropagation();
|
|
1972
2008
|
return;
|
|
@@ -1977,7 +2013,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
1977
2013
|
var c, L;
|
|
1978
2014
|
(L = (c = u.value) == null ? void 0 : c.inputRef) == null || L.focus();
|
|
1979
2015
|
}
|
|
1980
|
-
function
|
|
2016
|
+
function qe() {
|
|
1981
2017
|
ce();
|
|
1982
2018
|
}
|
|
1983
2019
|
function x() {
|
|
@@ -2014,7 +2050,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2014
2050
|
}), (c, L) => {
|
|
2015
2051
|
var F;
|
|
2016
2052
|
return r(), f(U, null, [
|
|
2017
|
-
D(m(
|
|
2053
|
+
D(m(ft), H({
|
|
2018
2054
|
id: l.id,
|
|
2019
2055
|
ref_key: "triggerEl",
|
|
2020
2056
|
ref: u,
|
|
@@ -2043,10 +2079,10 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2043
2079
|
"aria-activedescendant": M.value,
|
|
2044
2080
|
size: l.size
|
|
2045
2081
|
}, c.$attrs, {
|
|
2046
|
-
onClick:
|
|
2082
|
+
onClick: B,
|
|
2047
2083
|
onFocusout: ne,
|
|
2048
2084
|
onKeydown: fe(h, ["stop"])
|
|
2049
|
-
}),
|
|
2085
|
+
}), be({
|
|
2050
2086
|
"label.prepend": k(() => [
|
|
2051
2087
|
p(c.$slots, "label.prepend")
|
|
2052
2088
|
]),
|
|
@@ -2055,7 +2091,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2055
2091
|
]),
|
|
2056
2092
|
append: k(() => [
|
|
2057
2093
|
p(c.$slots, "append"),
|
|
2058
|
-
z.value && a.value ? (r(),
|
|
2094
|
+
z.value && a.value ? (r(), S(m(se), {
|
|
2059
2095
|
key: 0,
|
|
2060
2096
|
class: "q-combobox__clear",
|
|
2061
2097
|
"aria-label": l.texts.clearValue,
|
|
@@ -2069,10 +2105,10 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2069
2105
|
]),
|
|
2070
2106
|
_: 1
|
|
2071
2107
|
}, 8, ["aria-label"])) : b("", !0),
|
|
2072
|
-
l.readonly ? b("", !0) : (r(),
|
|
2108
|
+
l.readonly ? b("", !0) : (r(), S(m(se), {
|
|
2073
2109
|
key: 1,
|
|
2074
2110
|
ref_key: "toggleRef",
|
|
2075
|
-
ref:
|
|
2111
|
+
ref: q,
|
|
2076
2112
|
class: "q-combobox__chevron",
|
|
2077
2113
|
"aria-label": l.texts.showOptions,
|
|
2078
2114
|
"b-style": "plain",
|
|
@@ -2104,7 +2140,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2104
2140
|
key: "1"
|
|
2105
2141
|
} : void 0
|
|
2106
2142
|
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
2107
|
-
D(m(
|
|
2143
|
+
D(m(ge), {
|
|
2108
2144
|
modelValue: d.value,
|
|
2109
2145
|
"onUpdate:modelValue": L[2] || (L[2] = (W) => d.value = W),
|
|
2110
2146
|
spy: "",
|
|
@@ -2120,7 +2156,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2120
2156
|
default: k(() => {
|
|
2121
2157
|
var W;
|
|
2122
2158
|
return [
|
|
2123
|
-
|
|
2159
|
+
w("div", {
|
|
2124
2160
|
ref_key: "contentRef",
|
|
2125
2161
|
ref: N,
|
|
2126
2162
|
class: "q-select__body",
|
|
@@ -2129,9 +2165,9 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2129
2165
|
onFocusout: ne
|
|
2130
2166
|
}, [
|
|
2131
2167
|
p(c.$slots, "body.prepend"),
|
|
2132
|
-
l.loading ? (r(), f("div",
|
|
2133
|
-
D(m(
|
|
2134
|
-
])) : V.value.length ? (r(),
|
|
2168
|
+
l.loading ? (r(), f("div", kl, [
|
|
2169
|
+
D(m(ke), { size: 24 })
|
|
2170
|
+
])) : V.value.length ? (r(), S(m(Ue), {
|
|
2135
2171
|
key: 1,
|
|
2136
2172
|
ref_key: "listRef",
|
|
2137
2173
|
ref: _,
|
|
@@ -2147,15 +2183,15 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2147
2183
|
groups: c.groups,
|
|
2148
2184
|
"item-label": l.itemLabel,
|
|
2149
2185
|
"item-value": l.itemValue,
|
|
2150
|
-
onMouseup:
|
|
2186
|
+
onMouseup: qe
|
|
2151
2187
|
}, {
|
|
2152
2188
|
item: k(({ item: he }) => [
|
|
2153
2189
|
p(c.$slots, "item", { item: he })
|
|
2154
2190
|
]),
|
|
2155
2191
|
_: 3
|
|
2156
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), f("div",
|
|
2192
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), f("div", wl, Q(l.texts.noData), 1)),
|
|
2157
2193
|
p(c.$slots, "body.append")
|
|
2158
|
-
], 40,
|
|
2194
|
+
], 40, $l)
|
|
2159
2195
|
];
|
|
2160
2196
|
}),
|
|
2161
2197
|
_: 3
|
|
@@ -2163,7 +2199,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2163
2199
|
], 64);
|
|
2164
2200
|
};
|
|
2165
2201
|
}
|
|
2166
|
-
}),
|
|
2202
|
+
}), xl = I(ql), Sl = [
|
|
2167
2203
|
{
|
|
2168
2204
|
id: "button",
|
|
2169
2205
|
icon: {
|
|
@@ -2174,30 +2210,30 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2174
2210
|
label: "Ok"
|
|
2175
2211
|
}
|
|
2176
2212
|
}
|
|
2177
|
-
],
|
|
2213
|
+
], Bl = {
|
|
2178
2214
|
icon: "check-circle-outline"
|
|
2179
|
-
},
|
|
2215
|
+
}, Ll = {
|
|
2180
2216
|
close: {
|
|
2181
2217
|
icon: "close"
|
|
2182
2218
|
}
|
|
2183
|
-
},
|
|
2219
|
+
}, Cl = { class: "q-dialog__header" }, Il = { class: "q-dialog__header-title" }, Tl = { class: "q-dialog__body" }, Vl = {
|
|
2184
2220
|
key: 0,
|
|
2185
2221
|
class: "q-dialog__body-icon"
|
|
2186
|
-
},
|
|
2222
|
+
}, Al = { class: "q-dialog__body-text" }, El = ["innerHTML"], Ql = { key: 1 }, Dl = { class: "q-dialog__body-actions" }, zl = /* @__PURE__ */ C({
|
|
2187
2223
|
__name: "QDialog",
|
|
2188
2224
|
props: /* @__PURE__ */ G({
|
|
2189
2225
|
text: { default: "" },
|
|
2190
2226
|
attach: { default: "body" },
|
|
2191
2227
|
inline: { type: Boolean },
|
|
2192
2228
|
backdropBlur: { type: Boolean, default: !0 },
|
|
2193
|
-
buttons: { default: () =>
|
|
2229
|
+
buttons: { default: () => Sl },
|
|
2194
2230
|
dismissible: { type: Boolean },
|
|
2195
2231
|
html: { type: Boolean, default: !0 },
|
|
2196
|
-
icon: { default: () =>
|
|
2232
|
+
icon: { default: () => Bl },
|
|
2197
2233
|
id: { default: void 0 },
|
|
2198
2234
|
title: { default: "" },
|
|
2199
2235
|
class: { default: void 0 },
|
|
2200
|
-
icons: { default: () =>
|
|
2236
|
+
icons: { default: () => Ll }
|
|
2201
2237
|
}, {
|
|
2202
2238
|
modelValue: { type: Boolean },
|
|
2203
2239
|
modelModifiers: {}
|
|
@@ -2212,7 +2248,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2212
2248
|
var i;
|
|
2213
2249
|
(i = a.action) == null || i.call(a), s();
|
|
2214
2250
|
}
|
|
2215
|
-
return (a, i) => (r(),
|
|
2251
|
+
return (a, i) => (r(), S(m(ge), {
|
|
2216
2252
|
id: m(l),
|
|
2217
2253
|
"model-value": e.value,
|
|
2218
2254
|
inline: t.inline,
|
|
@@ -2223,12 +2259,12 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2223
2259
|
persistent: ""
|
|
2224
2260
|
}, {
|
|
2225
2261
|
default: k(() => [
|
|
2226
|
-
|
|
2262
|
+
w("div", {
|
|
2227
2263
|
class: T(o.value)
|
|
2228
2264
|
}, [
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
t.dismissible ? (r(),
|
|
2265
|
+
w("div", Cl, [
|
|
2266
|
+
w("span", Il, Q(t.title), 1),
|
|
2267
|
+
t.dismissible ? (r(), S(m(se), {
|
|
2232
2268
|
key: 0,
|
|
2233
2269
|
"b-style": "tertiary",
|
|
2234
2270
|
onClick: s
|
|
@@ -2240,28 +2276,28 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2240
2276
|
})) : b("", !0)
|
|
2241
2277
|
]),
|
|
2242
2278
|
p(a.$slots, "body.content", {}, () => [
|
|
2243
|
-
|
|
2279
|
+
w("div", Tl, [
|
|
2244
2280
|
p(a.$slots, "body.icon", {}, () => [
|
|
2245
|
-
t.icon ? (r(), f("span",
|
|
2281
|
+
t.icon ? (r(), f("span", Vl, [
|
|
2246
2282
|
D(m(O), Y(oe(t.icon)), null, 16)
|
|
2247
2283
|
])) : b("", !0)
|
|
2248
2284
|
]),
|
|
2249
|
-
|
|
2285
|
+
w("div", Al, [
|
|
2250
2286
|
t.html ? (r(), f("span", {
|
|
2251
2287
|
key: 0,
|
|
2252
2288
|
innerHTML: t.text
|
|
2253
|
-
}, null, 8,
|
|
2289
|
+
}, null, 8, El)) : (r(), f("span", Ql, Q(t.text), 1))
|
|
2254
2290
|
]),
|
|
2255
2291
|
p(a.$slots, "body.append")
|
|
2256
2292
|
])
|
|
2257
2293
|
]),
|
|
2258
|
-
|
|
2259
|
-
(r(!0), f(U, null, ve(t.buttons, (u) => (r(),
|
|
2294
|
+
w("div", Dl, [
|
|
2295
|
+
(r(!0), f(U, null, ve(t.buttons, (u) => (r(), S(m(se), H({ ref_for: !0 }, u.props, {
|
|
2260
2296
|
key: u.id,
|
|
2261
2297
|
onClick: () => d(u)
|
|
2262
2298
|
}), {
|
|
2263
2299
|
default: k(() => [
|
|
2264
|
-
u.icon ? (r(),
|
|
2300
|
+
u.icon ? (r(), S(m(O), H({
|
|
2265
2301
|
key: 0,
|
|
2266
2302
|
ref_for: !0
|
|
2267
2303
|
}, u.icon), null, 16)) : b("", !0)
|
|
@@ -2274,13 +2310,13 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2274
2310
|
_: 3
|
|
2275
2311
|
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
|
|
2276
2312
|
}
|
|
2277
|
-
}),
|
|
2313
|
+
}), Ml = I(zl), Fl = {
|
|
2278
2314
|
key: 0,
|
|
2279
2315
|
class: "q-input-group__prepend"
|
|
2280
|
-
},
|
|
2316
|
+
}, Ol = { key: 0 }, Pl = {
|
|
2281
2317
|
key: 1,
|
|
2282
2318
|
class: "q-input-group__append"
|
|
2283
|
-
},
|
|
2319
|
+
}, Ul = { key: 0 }, Nl = /* @__PURE__ */ C({
|
|
2284
2320
|
__name: "QInputGroup",
|
|
2285
2321
|
props: {
|
|
2286
2322
|
id: { default: void 0 },
|
|
@@ -2297,23 +2333,23 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2297
2333
|
QField: {
|
|
2298
2334
|
size: "block"
|
|
2299
2335
|
}
|
|
2300
|
-
}), (e, l) => (r(),
|
|
2336
|
+
}), (e, l) => (r(), S(m(Le), {
|
|
2301
2337
|
id: t.id,
|
|
2302
2338
|
class: T(["q-input-group", t.class]),
|
|
2303
2339
|
label: t.label,
|
|
2304
2340
|
required: t.required,
|
|
2305
2341
|
size: t.size
|
|
2306
|
-
},
|
|
2342
|
+
}, be({
|
|
2307
2343
|
default: k(() => [
|
|
2308
|
-
e.$slots.prepend || t.prependIcon ? (r(), f("div",
|
|
2309
|
-
t.prependIcon ? (r(), f("span",
|
|
2344
|
+
e.$slots.prepend || t.prependIcon ? (r(), f("div", Fl, [
|
|
2345
|
+
t.prependIcon ? (r(), f("span", Ol, [
|
|
2310
2346
|
D(m(O), Y(oe(t.prependIcon)), null, 16)
|
|
2311
2347
|
])) : b("", !0),
|
|
2312
2348
|
p(e.$slots, "prepend")
|
|
2313
2349
|
])) : b("", !0),
|
|
2314
2350
|
p(e.$slots, "default"),
|
|
2315
|
-
e.$slots.append || t.appendIcon ? (r(), f("div",
|
|
2316
|
-
t.appendIcon ? (r(), f("span",
|
|
2351
|
+
e.$slots.append || t.appendIcon ? (r(), f("div", Pl, [
|
|
2352
|
+
t.appendIcon ? (r(), f("span", Ul, [
|
|
2317
2353
|
D(m(O), Y(oe(t.appendIcon)), null, 16)
|
|
2318
2354
|
])) : b("", !0),
|
|
2319
2355
|
p(e.$slots, "append")
|
|
@@ -2330,7 +2366,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2330
2366
|
} : void 0
|
|
2331
2367
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2332
2368
|
}
|
|
2333
|
-
}),
|
|
2369
|
+
}), Rl = I(Nl), Gl = /* @__PURE__ */ C({
|
|
2334
2370
|
__name: "QLineLoader",
|
|
2335
2371
|
props: {
|
|
2336
2372
|
class: { default: void 0 }
|
|
@@ -2341,13 +2377,13 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2341
2377
|
class: T(["q-line-loader", t.class])
|
|
2342
2378
|
}, null, 2));
|
|
2343
2379
|
}
|
|
2344
|
-
}),
|
|
2380
|
+
}), Hl = I(Gl), jl = {
|
|
2345
2381
|
key: 0,
|
|
2346
2382
|
class: "q-popover__header"
|
|
2347
|
-
},
|
|
2383
|
+
}, Kl = {
|
|
2348
2384
|
key: 1,
|
|
2349
2385
|
class: "q-popover__body"
|
|
2350
|
-
},
|
|
2386
|
+
}, Wl = ["innerHTML"], Xl = { key: 1 }, Yl = /* @__PURE__ */ C({
|
|
2351
2387
|
inheritAttrs: !1,
|
|
2352
2388
|
__name: "QPopover",
|
|
2353
2389
|
props: /* @__PURE__ */ G({
|
|
@@ -2367,7 +2403,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2367
2403
|
emits: ["update:modelValue"],
|
|
2368
2404
|
setup(n) {
|
|
2369
2405
|
const t = n, e = X(n, "modelValue");
|
|
2370
|
-
return (l, o) => (r(),
|
|
2406
|
+
return (l, o) => (r(), S(m(ge), {
|
|
2371
2407
|
modelValue: e.value,
|
|
2372
2408
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s),
|
|
2373
2409
|
class: "q-popover",
|
|
@@ -2380,31 +2416,31 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2380
2416
|
placement: t.placement
|
|
2381
2417
|
}, {
|
|
2382
2418
|
default: k(() => [
|
|
2383
|
-
t.title || l.$slots.header ? (r(), f("h3",
|
|
2419
|
+
t.title || l.$slots.header ? (r(), f("h3", jl, [
|
|
2384
2420
|
de(Q(t.title) + " ", 1),
|
|
2385
2421
|
p(l.$slots, "header")
|
|
2386
2422
|
])) : b("", !0),
|
|
2387
|
-
t.text || l.$slots.body ? (r(), f("div",
|
|
2423
|
+
t.text || l.$slots.body ? (r(), f("div", Kl, [
|
|
2388
2424
|
t.html ? (r(), f("span", {
|
|
2389
2425
|
key: 0,
|
|
2390
2426
|
innerHTML: t.text
|
|
2391
|
-
}, null, 8,
|
|
2427
|
+
}, null, 8, Wl)) : (r(), f("span", Xl, Q(t.text), 1)),
|
|
2392
2428
|
p(l.$slots, "body")
|
|
2393
2429
|
])) : b("", !0)
|
|
2394
2430
|
]),
|
|
2395
2431
|
_: 3
|
|
2396
2432
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
2397
2433
|
}
|
|
2398
|
-
}),
|
|
2434
|
+
}), Zl = I(Yl), pt = {
|
|
2399
2435
|
emptyMessage: "Select a field to view details."
|
|
2400
|
-
},
|
|
2436
|
+
}, mt = {
|
|
2401
2437
|
open: {
|
|
2402
2438
|
icon: "minus-box"
|
|
2403
2439
|
},
|
|
2404
2440
|
close: {
|
|
2405
2441
|
icon: "plus-box"
|
|
2406
2442
|
}
|
|
2407
|
-
},
|
|
2443
|
+
}, Jl = { class: "q-property-list__table" }, eo = /* @__PURE__ */ C({
|
|
2408
2444
|
__name: "QPropertyList",
|
|
2409
2445
|
props: {
|
|
2410
2446
|
fields: { default: () => [] },
|
|
@@ -2414,8 +2450,8 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2414
2450
|
groups: { default: () => [] },
|
|
2415
2451
|
readonly: { type: Boolean },
|
|
2416
2452
|
class: { default: void 0 },
|
|
2417
|
-
icons: { default: () =>
|
|
2418
|
-
texts: { default: () =>
|
|
2453
|
+
icons: { default: () => mt },
|
|
2454
|
+
texts: { default: () => pt }
|
|
2419
2455
|
},
|
|
2420
2456
|
emits: ["field-change"],
|
|
2421
2457
|
setup(n, { emit: t }) {
|
|
@@ -2434,7 +2470,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2434
2470
|
function _(g) {
|
|
2435
2471
|
return g ? e.fields.filter((E) => E.group === g) : e.fields;
|
|
2436
2472
|
}
|
|
2437
|
-
function
|
|
2473
|
+
function q(g) {
|
|
2438
2474
|
const E = o.value.indexOf(g);
|
|
2439
2475
|
E === -1 ? o.value.push(g) : o.value.splice(E, 1);
|
|
2440
2476
|
}
|
|
@@ -2461,25 +2497,25 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2461
2497
|
class: T(["q-property-list", i.value]),
|
|
2462
2498
|
onFocusout: u
|
|
2463
2499
|
}, [
|
|
2464
|
-
|
|
2465
|
-
E[0] || (E[0] =
|
|
2466
|
-
|
|
2467
|
-
|
|
2500
|
+
w("table", Jl, [
|
|
2501
|
+
E[0] || (E[0] = w("thead", { class: "q-property-list__header" }, [
|
|
2502
|
+
w("tr", null, [
|
|
2503
|
+
w("th", { colspan: "2" })
|
|
2468
2504
|
])
|
|
2469
2505
|
], -1)),
|
|
2470
|
-
|
|
2506
|
+
w("tbody", null, [
|
|
2471
2507
|
(r(!0), f(U, null, ve(a.value, (P) => (r(), f(U, {
|
|
2472
2508
|
key: P.id
|
|
2473
2509
|
}, [
|
|
2474
|
-
P.title ? (r(),
|
|
2510
|
+
P.title ? (r(), S(m(yt), {
|
|
2475
2511
|
key: 0,
|
|
2476
2512
|
id: P.id,
|
|
2477
2513
|
title: P.title,
|
|
2478
2514
|
icons: e.icons,
|
|
2479
2515
|
"no-toggle": e.noToggle,
|
|
2480
|
-
onToggleGroup:
|
|
2516
|
+
onToggleGroup: q
|
|
2481
2517
|
}, null, 8, ["id", "title", "icons", "no-toggle"])) : b("", !0),
|
|
2482
|
-
(r(!0), f(U, null, ve(_(P.id), (M) => (r(),
|
|
2518
|
+
(r(!0), f(U, null, ve(_(P.id), (M) => (r(), S(m(ht), {
|
|
2483
2519
|
key: M.id,
|
|
2484
2520
|
class: T(N(M)),
|
|
2485
2521
|
field: M,
|
|
@@ -2495,7 +2531,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2495
2531
|
], 64))), 128))
|
|
2496
2532
|
])
|
|
2497
2533
|
]),
|
|
2498
|
-
e.noPanel ? b("", !0) : (r(),
|
|
2534
|
+
e.noPanel ? b("", !0) : (r(), S(m(vt), {
|
|
2499
2535
|
key: 0,
|
|
2500
2536
|
field: s.value,
|
|
2501
2537
|
texts: e.texts
|
|
@@ -2510,10 +2546,10 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2510
2546
|
}, 8, ["field", "texts"]))
|
|
2511
2547
|
], 34));
|
|
2512
2548
|
}
|
|
2513
|
-
}),
|
|
2549
|
+
}), to = {
|
|
2514
2550
|
key: 0,
|
|
2515
2551
|
class: "q-property-list-field__container"
|
|
2516
|
-
},
|
|
2552
|
+
}, no = /* @__PURE__ */ C({
|
|
2517
2553
|
__name: "QPropertyListRow",
|
|
2518
2554
|
props: {
|
|
2519
2555
|
field: {},
|
|
@@ -2523,9 +2559,9 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2523
2559
|
emits: ["focus", "field-change"],
|
|
2524
2560
|
setup(n, { emit: t }) {
|
|
2525
2561
|
const e = n, l = t, o = y(() => ["q-property-list__row", e.class]), s = y(() => {
|
|
2526
|
-
var
|
|
2562
|
+
var q;
|
|
2527
2563
|
const _ = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
2528
|
-
return (
|
|
2564
|
+
return (q = e.field.props) != null && q.required && _.push("q-property-list__cell--required"), _;
|
|
2529
2565
|
}), d = y(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
2530
2566
|
function a() {
|
|
2531
2567
|
l("focus", e.field);
|
|
@@ -2537,21 +2573,21 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2537
2573
|
...e.field.props,
|
|
2538
2574
|
readonly: d.value
|
|
2539
2575
|
}));
|
|
2540
|
-
return (_,
|
|
2576
|
+
return (_, q) => (r(), f("tr", {
|
|
2541
2577
|
class: T(o.value),
|
|
2542
2578
|
onFocusin: a
|
|
2543
2579
|
}, [
|
|
2544
|
-
|
|
2580
|
+
w("td", {
|
|
2545
2581
|
class: T(s.value),
|
|
2546
2582
|
onClick: a
|
|
2547
2583
|
}, Q(e.field.label), 3),
|
|
2548
|
-
|
|
2584
|
+
w("td", {
|
|
2549
2585
|
class: "q-property-list__cell",
|
|
2550
2586
|
onClick: a
|
|
2551
2587
|
}, [
|
|
2552
2588
|
p(_.$slots, "default", {}, () => [
|
|
2553
|
-
e.field.component ? (r(), f("div",
|
|
2554
|
-
(r(),
|
|
2589
|
+
e.field.component ? (r(), f("div", to, [
|
|
2590
|
+
(r(), S(Be(e.field.component), H(u.value, {
|
|
2555
2591
|
"model-value": e.field.props.modelValue,
|
|
2556
2592
|
"onUpdate:modelValue": i
|
|
2557
2593
|
}), null, 16, ["model-value"]))
|
|
@@ -2560,13 +2596,13 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2560
2596
|
])
|
|
2561
2597
|
], 34));
|
|
2562
2598
|
}
|
|
2563
|
-
}),
|
|
2599
|
+
}), lo = ["data-key", "aria-labelledby"], oo = ["id"], so = { class: "q-property-list-group__content" }, ao = /* @__PURE__ */ C({
|
|
2564
2600
|
__name: "QPropertyListGroup",
|
|
2565
2601
|
props: {
|
|
2566
2602
|
id: {},
|
|
2567
2603
|
title: {},
|
|
2568
2604
|
noToggle: { type: Boolean, default: !1 },
|
|
2569
|
-
icons: { default: () =>
|
|
2605
|
+
icons: { default: () => mt },
|
|
2570
2606
|
texts: {}
|
|
2571
2607
|
},
|
|
2572
2608
|
emits: ["toggle-group"],
|
|
@@ -2587,12 +2623,12 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2587
2623
|
"aria-labelledby": m(s),
|
|
2588
2624
|
onClick: i
|
|
2589
2625
|
}, [
|
|
2590
|
-
|
|
2626
|
+
w("td", {
|
|
2591
2627
|
id: m(s),
|
|
2592
2628
|
colspan: "2"
|
|
2593
2629
|
}, [
|
|
2594
|
-
|
|
2595
|
-
e.noToggle ? b("", !0) : (r(),
|
|
2630
|
+
w("div", so, [
|
|
2631
|
+
e.noToggle ? b("", !0) : (r(), S(m(se), {
|
|
2596
2632
|
key: 0,
|
|
2597
2633
|
"b-style": "tertiary",
|
|
2598
2634
|
borderless: "",
|
|
@@ -2605,49 +2641,49 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2605
2641
|
})),
|
|
2606
2642
|
de(" " + Q(e.title), 1)
|
|
2607
2643
|
])
|
|
2608
|
-
], 8,
|
|
2609
|
-
], 10,
|
|
2644
|
+
], 8, oo)
|
|
2645
|
+
], 10, lo));
|
|
2610
2646
|
}
|
|
2611
|
-
}),
|
|
2647
|
+
}), io = { class: "q-property-list-panel__container" }, ro = { class: "q-property-list-panel__label" }, uo = { class: "q-property-list-panel__description" }, co = {
|
|
2612
2648
|
key: 1,
|
|
2613
2649
|
class: "q-property-list-panel__empty"
|
|
2614
|
-
},
|
|
2650
|
+
}, fo = /* @__PURE__ */ C({
|
|
2615
2651
|
__name: "QPropertyListPanel",
|
|
2616
2652
|
props: {
|
|
2617
2653
|
field: { default: void 0 },
|
|
2618
2654
|
icons: {},
|
|
2619
|
-
texts: { default: () =>
|
|
2655
|
+
texts: { default: () => pt }
|
|
2620
2656
|
},
|
|
2621
2657
|
setup(n) {
|
|
2622
2658
|
const t = n;
|
|
2623
|
-
return (e, l) => (r(), f("div",
|
|
2659
|
+
return (e, l) => (r(), f("div", io, [
|
|
2624
2660
|
t.field ? p(e.$slots, "default", { key: 0 }, () => [
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
]) : (r(), f("div",
|
|
2661
|
+
w("div", ro, Q(t.field.label), 1),
|
|
2662
|
+
w("div", uo, Q(t.field.description), 1)
|
|
2663
|
+
]) : (r(), f("div", co, Q(t.texts.emptyMessage), 1))
|
|
2628
2664
|
]));
|
|
2629
2665
|
}
|
|
2630
|
-
}),
|
|
2666
|
+
}), po = I(eo), ht = I(no), yt = I(ao), vt = I(fo), mo = {
|
|
2631
2667
|
placeholder: "Choose...",
|
|
2632
2668
|
clearValue: "Clear value",
|
|
2633
2669
|
showOptions: "Show options"
|
|
2634
|
-
},
|
|
2670
|
+
}, ho = {
|
|
2635
2671
|
chevron: {
|
|
2636
2672
|
icon: "chevron-down"
|
|
2637
2673
|
},
|
|
2638
2674
|
clear: {
|
|
2639
2675
|
icon: "close"
|
|
2640
2676
|
}
|
|
2641
|
-
},
|
|
2677
|
+
}, yo = {
|
|
2642
2678
|
key: 0,
|
|
2643
2679
|
class: "q-select__value"
|
|
2644
|
-
},
|
|
2680
|
+
}, vo = {
|
|
2645
2681
|
key: 1,
|
|
2646
2682
|
class: "q-select__placeholder"
|
|
2647
|
-
},
|
|
2683
|
+
}, bo = ["data-key"], go = {
|
|
2648
2684
|
key: 0,
|
|
2649
2685
|
class: "q-select__loader"
|
|
2650
|
-
},
|
|
2686
|
+
}, _o = /* @__PURE__ */ C({
|
|
2651
2687
|
inheritAttrs: !1,
|
|
2652
2688
|
__name: "QSelect",
|
|
2653
2689
|
props: /* @__PURE__ */ G({
|
|
@@ -2665,8 +2701,8 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2665
2701
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
2666
2702
|
size: { default: void 0 },
|
|
2667
2703
|
class: { default: "" },
|
|
2668
|
-
icons: { default: () =>
|
|
2669
|
-
texts: { default: () =>
|
|
2704
|
+
icons: { default: () => ho },
|
|
2705
|
+
texts: { default: () => mo }
|
|
2670
2706
|
}, {
|
|
2671
2707
|
modelValue: {
|
|
2672
2708
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2675,13 +2711,13 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2675
2711
|
}),
|
|
2676
2712
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2677
2713
|
setup(n, { emit: t }) {
|
|
2678
|
-
const e = n, l = t, o = X(n, "modelValue"), s = A(!1), d = A(""), a = A(null), i = A(null), u = A(null), _ = y(() =>
|
|
2714
|
+
const e = n, l = t, o = X(n, "modelValue"), s = A(!1), d = A(""), a = A(null), i = A(null), u = A(null), _ = y(() => q.value === void 0), q = y(
|
|
2679
2715
|
() => {
|
|
2680
2716
|
var h;
|
|
2681
2717
|
return (h = e.items) == null ? void 0 : h.find(($) => $[e.itemValue] === o.value);
|
|
2682
2718
|
}
|
|
2683
2719
|
), N = y(
|
|
2684
|
-
() =>
|
|
2720
|
+
() => q.value ? q.value[e.itemLabel] : ""
|
|
2685
2721
|
), z = y(
|
|
2686
2722
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2687
2723
|
);
|
|
@@ -2711,7 +2747,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2711
2747
|
d.value += h.key.toLowerCase();
|
|
2712
2748
|
for (let $ = 0; $ < e.items.length; $++)
|
|
2713
2749
|
if (e.items[$][e.itemLabel].toLowerCase().startsWith(d.value)) {
|
|
2714
|
-
|
|
2750
|
+
B($);
|
|
2715
2751
|
break;
|
|
2716
2752
|
}
|
|
2717
2753
|
}
|
|
@@ -2735,7 +2771,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2735
2771
|
var h;
|
|
2736
2772
|
(h = i.value) == null || h.$el.focus();
|
|
2737
2773
|
}
|
|
2738
|
-
function
|
|
2774
|
+
function B(h) {
|
|
2739
2775
|
var $;
|
|
2740
2776
|
($ = i.value) == null || $.focusItem(h);
|
|
2741
2777
|
}
|
|
@@ -2773,10 +2809,10 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2773
2809
|
}, h.$attrs, {
|
|
2774
2810
|
onClick: j,
|
|
2775
2811
|
onKeydown: fe(Z, ["stop"])
|
|
2776
|
-
}),
|
|
2812
|
+
}), be({
|
|
2777
2813
|
append: k(() => [
|
|
2778
2814
|
p(h.$slots, "append"),
|
|
2779
|
-
z.value && o.value ? (r(),
|
|
2815
|
+
z.value && o.value ? (r(), S(m(se), {
|
|
2780
2816
|
key: 0,
|
|
2781
2817
|
class: "q-select__clear",
|
|
2782
2818
|
"aria-label": e.texts.clearValue,
|
|
@@ -2790,7 +2826,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2790
2826
|
]),
|
|
2791
2827
|
_: 1
|
|
2792
2828
|
}, 8, ["aria-label"])) : b("", !0),
|
|
2793
|
-
e.readonly ? b("", !0) : (r(),
|
|
2829
|
+
e.readonly ? b("", !0) : (r(), S(m(se), {
|
|
2794
2830
|
key: 1,
|
|
2795
2831
|
class: "q-select__chevron",
|
|
2796
2832
|
"aria-label": e.texts.showOptions,
|
|
@@ -2807,21 +2843,21 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2807
2843
|
}, 8, ["aria-label", "disabled"]))
|
|
2808
2844
|
]),
|
|
2809
2845
|
default: k(() => [
|
|
2810
|
-
_.value ? (r(), f("span",
|
|
2846
|
+
_.value ? (r(), f("span", vo, [
|
|
2811
2847
|
!e.readonly && !e.disabled ? (r(), f(U, { key: 0 }, [
|
|
2812
2848
|
de(Q(e.texts.placeholder), 1)
|
|
2813
2849
|
], 64)) : b("", !0)
|
|
2814
|
-
])) : (r(), f("span",
|
|
2850
|
+
])) : (r(), f("span", yo, Q(N.value), 1))
|
|
2815
2851
|
]),
|
|
2816
2852
|
_: 2
|
|
2817
2853
|
}, [
|
|
2818
|
-
(K =
|
|
2854
|
+
(K = q.value) != null && K.icon || h.$slots.prepend ? {
|
|
2819
2855
|
name: "prepend",
|
|
2820
2856
|
fn: k(() => {
|
|
2821
2857
|
var ne, ce;
|
|
2822
2858
|
return [
|
|
2823
2859
|
p(h.$slots, "prepend"),
|
|
2824
|
-
(ne =
|
|
2860
|
+
(ne = q.value) != null && ne.icon ? (r(), S(m(O), Y(H({ key: 0 }, (ce = q.value) == null ? void 0 : ce.icon)), null, 16)) : b("", !0)
|
|
2825
2861
|
];
|
|
2826
2862
|
}),
|
|
2827
2863
|
key: "0"
|
|
@@ -2834,7 +2870,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2834
2870
|
key: "1"
|
|
2835
2871
|
} : void 0
|
|
2836
2872
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2837
|
-
D(m(
|
|
2873
|
+
D(m(ge), {
|
|
2838
2874
|
modelValue: s.value,
|
|
2839
2875
|
"onUpdate:modelValue": $[0] || ($[0] = (ne) => s.value = ne),
|
|
2840
2876
|
spy: "",
|
|
@@ -2848,7 +2884,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2848
2884
|
onLeave: R
|
|
2849
2885
|
}, {
|
|
2850
2886
|
default: k(() => [
|
|
2851
|
-
|
|
2887
|
+
w("div", {
|
|
2852
2888
|
ref_key: "contentRef",
|
|
2853
2889
|
ref: u,
|
|
2854
2890
|
"data-testid": "combobox-dropdown",
|
|
@@ -2859,9 +2895,9 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2859
2895
|
onKeydown: fe(Z, ["stop"])
|
|
2860
2896
|
}, [
|
|
2861
2897
|
p(h.$slots, "body.prepend"),
|
|
2862
|
-
e.loading ? (r(), f("div",
|
|
2863
|
-
D(m(
|
|
2864
|
-
])) : (r(),
|
|
2898
|
+
e.loading ? (r(), f("div", go, [
|
|
2899
|
+
D(m(ke), { size: 24 })
|
|
2900
|
+
])) : (r(), S(m(Ue), {
|
|
2865
2901
|
key: 1,
|
|
2866
2902
|
ref_key: "listRef",
|
|
2867
2903
|
ref: i,
|
|
@@ -2880,14 +2916,14 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2880
2916
|
_: 3
|
|
2881
2917
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
2882
2918
|
p(h.$slots, "body.append")
|
|
2883
|
-
], 40,
|
|
2919
|
+
], 40, bo)
|
|
2884
2920
|
]),
|
|
2885
2921
|
_: 3
|
|
2886
2922
|
}, 8, ["modelValue", "anchor"])
|
|
2887
2923
|
], 64);
|
|
2888
2924
|
};
|
|
2889
2925
|
}
|
|
2890
|
-
}),
|
|
2926
|
+
}), $o = I(_o), ko = /* @__PURE__ */ C({
|
|
2891
2927
|
__name: "QSkeletonLoader",
|
|
2892
2928
|
props: {
|
|
2893
2929
|
type: { default: void 0 },
|
|
@@ -2906,10 +2942,10 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2906
2942
|
class: T(["q-skeleton-loader", e.value]),
|
|
2907
2943
|
style: pe(l.value)
|
|
2908
2944
|
}, s[0] || (s[0] = [
|
|
2909
|
-
|
|
2945
|
+
w("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2910
2946
|
]), 6));
|
|
2911
2947
|
}
|
|
2912
|
-
}),
|
|
2948
|
+
}), wo = I(ko), qo = /* @__PURE__ */ C({
|
|
2913
2949
|
__name: "QThemeProvider",
|
|
2914
2950
|
props: {
|
|
2915
2951
|
theme: {}
|
|
@@ -2922,7 +2958,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2922
2958
|
p(e.$slots, "default")
|
|
2923
2959
|
], 2));
|
|
2924
2960
|
}
|
|
2925
|
-
}),
|
|
2961
|
+
}), xo = I(qo), So = ["innerHTML"], Bo = /* @__PURE__ */ C({
|
|
2926
2962
|
__name: "QTooltip",
|
|
2927
2963
|
props: /* @__PURE__ */ G({
|
|
2928
2964
|
id: { default: void 0 },
|
|
@@ -2950,7 +2986,7 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2950
2986
|
p(o.$slots, "anchor", {
|
|
2951
2987
|
props: { "aria-describedby": m(l) }
|
|
2952
2988
|
}),
|
|
2953
|
-
D(m(
|
|
2989
|
+
D(m(ge), {
|
|
2954
2990
|
id: m(l),
|
|
2955
2991
|
"model-value": e.value,
|
|
2956
2992
|
anchor: t.anchor,
|
|
@@ -2968,11 +3004,11 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2968
3004
|
}, {
|
|
2969
3005
|
default: k(() => [
|
|
2970
3006
|
p(o.$slots, "default", {}, () => [
|
|
2971
|
-
t.icon ? (r(),
|
|
3007
|
+
t.icon ? (r(), S(m(O), Y(H({ key: 0 }, t.icon)), null, 16)) : b("", !0),
|
|
2972
3008
|
t.html ? (r(), f("span", {
|
|
2973
3009
|
key: 1,
|
|
2974
3010
|
innerHTML: t.text
|
|
2975
|
-
}, null, 8,
|
|
3011
|
+
}, null, 8, So)) : (r(), f(U, { key: 2 }, [
|
|
2976
3012
|
de(Q(t.text), 1)
|
|
2977
3013
|
], 64))
|
|
2978
3014
|
])
|
|
@@ -2981,61 +3017,61 @@ const al = ["role"], il = /* @__PURE__ */ C({
|
|
|
2981
3017
|
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2982
3018
|
], 64));
|
|
2983
3019
|
}
|
|
2984
|
-
}),
|
|
3020
|
+
}), Lo = I(Bo), Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2985
3021
|
__proto__: null,
|
|
2986
|
-
QAccordion:
|
|
2987
|
-
QBadge:
|
|
3022
|
+
QAccordion: Tt,
|
|
3023
|
+
QBadge: Zt,
|
|
2988
3024
|
QButton: se,
|
|
2989
|
-
QButtonGroup:
|
|
2990
|
-
QButtonToggle:
|
|
2991
|
-
QCard:
|
|
2992
|
-
QCheckbox:
|
|
2993
|
-
QCollapsible:
|
|
2994
|
-
QCombobox:
|
|
2995
|
-
QDialog:
|
|
3025
|
+
QButtonGroup: rt,
|
|
3026
|
+
QButtonToggle: tn,
|
|
3027
|
+
QCard: dt,
|
|
3028
|
+
QCheckbox: gn,
|
|
3029
|
+
QCollapsible: Cn,
|
|
3030
|
+
QCombobox: xl,
|
|
3031
|
+
QDialog: Ml,
|
|
2996
3032
|
QField: Le,
|
|
2997
3033
|
QIcon: O,
|
|
2998
|
-
QIconFont:
|
|
2999
|
-
QIconImg:
|
|
3000
|
-
QIconSvg:
|
|
3001
|
-
QInputGroup:
|
|
3002
|
-
QLineLoader:
|
|
3034
|
+
QIconFont: ot,
|
|
3035
|
+
QIconImg: st,
|
|
3036
|
+
QIconSvg: at,
|
|
3037
|
+
QInputGroup: Rl,
|
|
3038
|
+
QLineLoader: Hl,
|
|
3003
3039
|
QList: Ue,
|
|
3004
|
-
QListItem:
|
|
3005
|
-
QListItemGroup:
|
|
3006
|
-
QOverlay:
|
|
3007
|
-
QPopover:
|
|
3008
|
-
QPropertyList:
|
|
3009
|
-
QPropertyListGroup:
|
|
3010
|
-
QPropertyListPanel:
|
|
3011
|
-
QPropertyListRow:
|
|
3012
|
-
QSelect:
|
|
3013
|
-
QSkeletonLoader:
|
|
3014
|
-
QSpinnerLoader:
|
|
3015
|
-
QTextField:
|
|
3016
|
-
QThemeProvider:
|
|
3017
|
-
QTooltip:
|
|
3018
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3019
|
-
function
|
|
3020
|
-
const n = ze(
|
|
3040
|
+
QListItem: ut,
|
|
3041
|
+
QListItemGroup: ct,
|
|
3042
|
+
QOverlay: ge,
|
|
3043
|
+
QPopover: Zl,
|
|
3044
|
+
QPropertyList: po,
|
|
3045
|
+
QPropertyListGroup: yt,
|
|
3046
|
+
QPropertyListPanel: vt,
|
|
3047
|
+
QPropertyListRow: ht,
|
|
3048
|
+
QSelect: $o,
|
|
3049
|
+
QSkeletonLoader: wo,
|
|
3050
|
+
QSpinnerLoader: ke,
|
|
3051
|
+
QTextField: ft,
|
|
3052
|
+
QThemeProvider: xo,
|
|
3053
|
+
QTooltip: Lo
|
|
3054
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = "q-theme";
|
|
3055
|
+
function Io() {
|
|
3056
|
+
const n = ze($e);
|
|
3021
3057
|
if (!n)
|
|
3022
3058
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
3023
3059
|
return n;
|
|
3024
3060
|
}
|
|
3025
|
-
function
|
|
3026
|
-
const t =
|
|
3061
|
+
function Mo(n) {
|
|
3062
|
+
const t = Io(), e = {
|
|
3027
3063
|
activeTheme: A(n),
|
|
3028
3064
|
themes: t.themes
|
|
3029
3065
|
};
|
|
3030
|
-
return De(
|
|
3066
|
+
return De($e, e), e;
|
|
3031
3067
|
}
|
|
3032
|
-
function
|
|
3068
|
+
function To() {
|
|
3033
3069
|
let n = document.getElementById(
|
|
3034
|
-
|
|
3070
|
+
$e
|
|
3035
3071
|
);
|
|
3036
|
-
return n || (n = document.createElement("style"), n.id =
|
|
3072
|
+
return n || (n = document.createElement("style"), n.id = $e, document.head.appendChild(n)), n;
|
|
3037
3073
|
}
|
|
3038
|
-
function
|
|
3074
|
+
function Vo(n) {
|
|
3039
3075
|
let t = "";
|
|
3040
3076
|
for (const l of n) {
|
|
3041
3077
|
t += `.q-theme--${l.name} {
|
|
@@ -3045,32 +3081,32 @@ function Io(n) {
|
|
|
3045
3081
|
for (s in o) {
|
|
3046
3082
|
const d = o[s];
|
|
3047
3083
|
if (d) {
|
|
3048
|
-
t += ` ${
|
|
3084
|
+
t += ` ${Ze(s)}: ${d};
|
|
3049
3085
|
`;
|
|
3050
|
-
const a =
|
|
3051
|
-
t += ` ${
|
|
3086
|
+
const a = it(d);
|
|
3087
|
+
t += ` ${Ze(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
3052
3088
|
`;
|
|
3053
3089
|
}
|
|
3054
3090
|
}
|
|
3055
3091
|
t += `}
|
|
3056
3092
|
`;
|
|
3057
3093
|
}
|
|
3058
|
-
const e =
|
|
3094
|
+
const e = To();
|
|
3059
3095
|
e.textContent = t;
|
|
3060
3096
|
}
|
|
3061
|
-
function
|
|
3062
|
-
return n ? `--q-theme-${
|
|
3097
|
+
function Ze(n) {
|
|
3098
|
+
return n ? `--q-theme-${lt(n)}` : "";
|
|
3063
3099
|
}
|
|
3064
|
-
function
|
|
3100
|
+
function Ao(n = {}) {
|
|
3065
3101
|
return { install: (e) => {
|
|
3066
3102
|
const l = n.components || {};
|
|
3067
3103
|
for (const s in l)
|
|
3068
3104
|
e.component(s, l[s]);
|
|
3069
3105
|
const o = n.defaults || {};
|
|
3070
|
-
e.provide(Oe, A(o)),
|
|
3106
|
+
e.provide(Oe, A(o)), Eo(e, n.themes);
|
|
3071
3107
|
} };
|
|
3072
3108
|
}
|
|
3073
|
-
function
|
|
3109
|
+
function Eo(n, t) {
|
|
3074
3110
|
const e = [];
|
|
3075
3111
|
let l;
|
|
3076
3112
|
if (!t)
|
|
@@ -3081,7 +3117,7 @@ function Vo(n, t) {
|
|
|
3081
3117
|
});
|
|
3082
3118
|
else
|
|
3083
3119
|
for (const o of t.themes) {
|
|
3084
|
-
const d = { ...o.mode === "light" ? Ee :
|
|
3120
|
+
const d = { ...o.mode === "light" ? Ee : et, ...o.colors };
|
|
3085
3121
|
e.push({
|
|
3086
3122
|
name: o.name,
|
|
3087
3123
|
mode: o.mode,
|
|
@@ -3093,18 +3129,18 @@ function Vo(n, t) {
|
|
|
3093
3129
|
activeTheme: A(l),
|
|
3094
3130
|
themes: e
|
|
3095
3131
|
};
|
|
3096
|
-
|
|
3132
|
+
Vo(e), ee(o.activeTheme, Qo, { immediate: !0 }), n.provide($e, o);
|
|
3097
3133
|
}
|
|
3098
3134
|
}
|
|
3099
|
-
function
|
|
3135
|
+
function Qo(n) {
|
|
3100
3136
|
const t = document.documentElement, l = Array.from(t.classList).filter((o) => !o.startsWith("q-theme"));
|
|
3101
3137
|
t.className = l.join(" "), t.classList.add(`q-theme--${n}`);
|
|
3102
3138
|
}
|
|
3103
|
-
const
|
|
3139
|
+
const Fo = (n = {}) => Ao({ components: Co, ...n });
|
|
3104
3140
|
export {
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3141
|
+
Co as components,
|
|
3142
|
+
Fo as createFramework,
|
|
3143
|
+
Mo as provideTheme,
|
|
3144
|
+
zo as templates,
|
|
3145
|
+
Io as useTheme
|
|
3110
3146
|
};
|