@quidgest/ui 0.14.4 → 0.14.5
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/README.md +4 -4
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +132 -0
- package/dist/ui.esm.js +1025 -934
- package/dist/ui.js +5 -5
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +85 -84
- package/dist/ui.scss +139 -1
- package/esm/components/QCard/QCard.d.ts +34 -0
- package/esm/components/QCard/QCard.d.ts.map +1 -0
- package/esm/components/QCard/QCard.vue.js +132 -0
- package/esm/components/QCard/QCard.vue2.js +4 -0
- package/esm/components/QCard/index.d.ts +6 -0
- package/esm/components/QCard/index.d.ts.map +1 -0
- package/esm/components/QCard/index.js +6 -0
- package/esm/components/QCard/types.d.ts +44 -0
- package/esm/components/QCard/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +42 -40
- package/esm/index.d.ts +1 -0
- package/package.json +27 -27
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as S, computed as y, openBlock as r, createElementBlock as u, normalizeClass as T, normalizeStyle as pe, getCurrentInstance as He, ref as D, provide as Ge, inject as Re, withModifiers as ce, createVNode as M, unref as m, createCommentVNode as _, createElementVNode as x, Fragment as U, createTextVNode as ue, toDisplayString as A, renderSlot as v, createBlock as I, resolveDynamicComponent as xe, h as ze, withCtx as k, normalizeProps as j, guardReactiveProps as ne, toRef as Fe, mergeModels as Y, useModel as ee, renderList as he, useAttrs as ut, withKeys as Be, mergeProps as Z, reactive as Me, watch as oe, nextTick as le, onMounted as Ke, onBeforeUnmount as ft, Teleport as pt, Transition as mt, createSlots as Le, withDirectives as vt, vModelDynamic as ht } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.5
|
|
4
4
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -66,27 +66,27 @@ const Se = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
71
|
defaultDarkColorScheme: je,
|
|
72
72
|
defaultLightColorScheme: Se
|
|
73
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
73
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = /* @__PURE__ */ S({
|
|
74
74
|
__name: "QSpinnerLoader",
|
|
75
75
|
props: {
|
|
76
76
|
size: { default: 48 },
|
|
77
77
|
class: { default: void 0 }
|
|
78
78
|
},
|
|
79
79
|
setup(o) {
|
|
80
|
-
const t = o, e =
|
|
80
|
+
const t = o, e = y(() => ({
|
|
81
81
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
82
82
|
}));
|
|
83
|
-
return (
|
|
83
|
+
return (l, n) => (r(), u("div", {
|
|
84
84
|
class: T(["q-spinner-loader", t.class]),
|
|
85
|
-
style:
|
|
85
|
+
style: pe(e.value)
|
|
86
86
|
}, null, 6));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function Ce(o) {
|
|
90
90
|
return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
|
|
91
91
|
}
|
|
92
92
|
function Pe(o) {
|
|
@@ -94,36 +94,36 @@ function Pe(o) {
|
|
|
94
94
|
}
|
|
95
95
|
function Te(o = {}, t = {}) {
|
|
96
96
|
const e = {};
|
|
97
|
-
for (const
|
|
98
|
-
e[
|
|
99
|
-
for (const
|
|
100
|
-
const
|
|
101
|
-
if (Pe(
|
|
102
|
-
e[
|
|
103
|
-
|
|
97
|
+
for (const l in o)
|
|
98
|
+
e[l] = o[l];
|
|
99
|
+
for (const l in t) {
|
|
100
|
+
const n = o[l], s = t[l];
|
|
101
|
+
if (Pe(n) && Pe(s)) {
|
|
102
|
+
e[l] = Te(
|
|
103
|
+
n,
|
|
104
104
|
s
|
|
105
105
|
);
|
|
106
106
|
continue;
|
|
107
107
|
}
|
|
108
|
-
e[
|
|
108
|
+
e[l] = s;
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
112
|
const Ve = "q-defaults";
|
|
113
|
-
function
|
|
114
|
-
var s,
|
|
113
|
+
function bt() {
|
|
114
|
+
var s, d;
|
|
115
115
|
const o = He();
|
|
116
116
|
if (!o)
|
|
117
117
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
118
118
|
const t = o.type.name ?? o.type.__name;
|
|
119
119
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
120
|
-
const e = Xe(),
|
|
121
|
-
return
|
|
120
|
+
const e = Xe(), l = (s = e.value) == null ? void 0 : s.Global, n = (d = e.value) == null ? void 0 : d[t];
|
|
121
|
+
return y(() => Te(l, n));
|
|
122
122
|
}
|
|
123
123
|
function We(o) {
|
|
124
|
-
if (
|
|
125
|
-
const t = Xe(), e = D(o),
|
|
126
|
-
Ge(Ve,
|
|
124
|
+
if (Ce(o)) return;
|
|
125
|
+
const t = Xe(), e = D(o), l = y(() => Ce(e.value) ? t.value : Te(t.value, e.value));
|
|
126
|
+
Ge(Ve, l);
|
|
127
127
|
}
|
|
128
128
|
function Xe() {
|
|
129
129
|
const o = Re(Ve, void 0);
|
|
@@ -133,32 +133,32 @@ function Xe() {
|
|
|
133
133
|
function Ye(o) {
|
|
134
134
|
return o.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();
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
var
|
|
136
|
+
function gt(o, t) {
|
|
137
|
+
var l;
|
|
138
138
|
const e = Ye(t);
|
|
139
|
-
return e ? typeof ((
|
|
139
|
+
return e ? typeof ((l = o.props) == null ? void 0 : l[e]) < "u" : !1;
|
|
140
140
|
}
|
|
141
141
|
function C(o) {
|
|
142
142
|
const t = o.setup;
|
|
143
|
-
return t && (o.setup = (e,
|
|
144
|
-
const
|
|
145
|
-
if (
|
|
143
|
+
return t && (o.setup = (e, l) => {
|
|
144
|
+
const n = bt();
|
|
145
|
+
if (Ce(n.value)) return t(e, l);
|
|
146
146
|
const s = He();
|
|
147
|
-
if (s === null) return t(e,
|
|
148
|
-
const
|
|
149
|
-
get(a,
|
|
150
|
-
var
|
|
151
|
-
const
|
|
152
|
-
return typeof
|
|
147
|
+
if (s === null) return t(e, l);
|
|
148
|
+
const d = new Proxy(e, {
|
|
149
|
+
get(a, i) {
|
|
150
|
+
var B;
|
|
151
|
+
const f = Reflect.get(a, i), $ = (B = n.value) == null ? void 0 : B[i];
|
|
152
|
+
return typeof i == "string" && !gt(s.vnode, i) ? $ ?? f : f;
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
return t(
|
|
155
|
+
return t(d, l);
|
|
156
156
|
}), o;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const _e = C(yt), _t = ["disabled"], kt = {
|
|
159
159
|
key: 0,
|
|
160
160
|
class: "q-btn__spinner"
|
|
161
|
-
},
|
|
161
|
+
}, $t = { class: "q-btn__content" }, wt = /* @__PURE__ */ S({
|
|
162
162
|
__name: "QButton",
|
|
163
163
|
props: {
|
|
164
164
|
active: { type: Boolean },
|
|
@@ -175,11 +175,11 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
175
175
|
},
|
|
176
176
|
emits: ["click"],
|
|
177
177
|
setup(o, { emit: t }) {
|
|
178
|
-
const e = o,
|
|
178
|
+
const e = o, l = t, n = y(() => e.disabled || e.loading);
|
|
179
179
|
function s(a) {
|
|
180
|
-
|
|
180
|
+
n.value || l("click", a);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const d = y(() => {
|
|
183
183
|
const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
184
184
|
return [
|
|
185
185
|
"q-btn",
|
|
@@ -195,27 +195,27 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
195
195
|
e.class
|
|
196
196
|
];
|
|
197
197
|
});
|
|
198
|
-
return (a,
|
|
198
|
+
return (a, i) => (r(), u("button", {
|
|
199
199
|
type: "button",
|
|
200
|
-
class: T(
|
|
201
|
-
disabled:
|
|
200
|
+
class: T(d.value),
|
|
201
|
+
disabled: n.value,
|
|
202
202
|
onClick: ce(s, ["stop", "prevent"])
|
|
203
203
|
}, [
|
|
204
|
-
a.loading ? (r(),
|
|
205
|
-
M(m(
|
|
206
|
-
])) :
|
|
207
|
-
|
|
208
|
-
a.iconOnRight ? (r(),
|
|
209
|
-
|
|
210
|
-
], 64)) :
|
|
211
|
-
|
|
212
|
-
a.iconOnRight ?
|
|
213
|
-
|
|
204
|
+
a.loading ? (r(), u("div", kt, [
|
|
205
|
+
M(m(_e), { size: 20 })
|
|
206
|
+
])) : _("", !0),
|
|
207
|
+
x("span", $t, [
|
|
208
|
+
a.iconOnRight ? (r(), u(U, { key: 0 }, [
|
|
209
|
+
ue(A(e.label), 1)
|
|
210
|
+
], 64)) : _("", !0),
|
|
211
|
+
v(a.$slots, "default"),
|
|
212
|
+
a.iconOnRight ? _("", !0) : (r(), u(U, { key: 1 }, [
|
|
213
|
+
ue(A(e.label), 1)
|
|
214
214
|
], 64))
|
|
215
215
|
])
|
|
216
|
-
], 10,
|
|
216
|
+
], 10, _t));
|
|
217
217
|
}
|
|
218
|
-
}), re = C(
|
|
218
|
+
}), re = C(wt), qt = /* @__PURE__ */ S({
|
|
219
219
|
__name: "QIcon",
|
|
220
220
|
props: {
|
|
221
221
|
icon: {},
|
|
@@ -224,7 +224,7 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
224
224
|
type: { default: "svg" }
|
|
225
225
|
},
|
|
226
226
|
setup(o) {
|
|
227
|
-
const t = o, e =
|
|
227
|
+
const t = o, e = y(() => {
|
|
228
228
|
switch (t.type) {
|
|
229
229
|
case "svg":
|
|
230
230
|
return et;
|
|
@@ -236,13 +236,13 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
return (
|
|
239
|
+
return (l, n) => (r(), I(xe(e.value), {
|
|
240
240
|
class: T(t.class),
|
|
241
241
|
icon: t.icon,
|
|
242
242
|
size: t.size
|
|
243
243
|
}, null, 8, ["class", "icon", "size"]));
|
|
244
244
|
}
|
|
245
|
-
}),
|
|
245
|
+
}), xt = /* @__PURE__ */ S({
|
|
246
246
|
__name: "QIconFont",
|
|
247
247
|
props: {
|
|
248
248
|
icon: {},
|
|
@@ -252,15 +252,15 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
252
252
|
variant: { default: "" }
|
|
253
253
|
},
|
|
254
254
|
setup(o) {
|
|
255
|
-
const t = o, e =
|
|
255
|
+
const t = o, e = y(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = y(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), n = y(() => ({
|
|
256
256
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
257
257
|
}));
|
|
258
|
-
return (s,
|
|
259
|
-
class: T(["q-icon", "q-icon__font", e.value,
|
|
260
|
-
style:
|
|
258
|
+
return (s, d) => (r(), u("i", {
|
|
259
|
+
class: T(["q-icon", "q-icon__font", e.value, l.value, t.class]),
|
|
260
|
+
style: pe(n.value)
|
|
261
261
|
}, null, 6));
|
|
262
262
|
}
|
|
263
|
-
}),
|
|
263
|
+
}), Lt = ["src"], It = /* @__PURE__ */ S({
|
|
264
264
|
__name: "QIconImg",
|
|
265
265
|
props: {
|
|
266
266
|
icon: {},
|
|
@@ -268,16 +268,16 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
268
268
|
class: {}
|
|
269
269
|
},
|
|
270
270
|
setup(o) {
|
|
271
|
-
const t = o, e =
|
|
271
|
+
const t = o, e = y(() => ({
|
|
272
272
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
273
273
|
}));
|
|
274
|
-
return (
|
|
274
|
+
return (l, n) => (r(), u("img", {
|
|
275
275
|
src: t.icon,
|
|
276
276
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
277
|
-
style:
|
|
278
|
-
}, null, 14,
|
|
277
|
+
style: pe(e.value)
|
|
278
|
+
}, null, 14, Lt));
|
|
279
279
|
}
|
|
280
|
-
}), be = {},
|
|
280
|
+
}), be = {}, Bt = S({
|
|
281
281
|
name: "InlineSvg",
|
|
282
282
|
emits: {
|
|
283
283
|
loaded: (o) => typeof o == "object",
|
|
@@ -343,11 +343,11 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
343
343
|
methods: {
|
|
344
344
|
copySvgAttrs(o, t) {
|
|
345
345
|
const e = t.attributes;
|
|
346
|
-
if (e) for (const
|
|
346
|
+
if (e) for (const l of e) o[l.name] = l.value;
|
|
347
347
|
},
|
|
348
348
|
copyComponentAttrs(o, t) {
|
|
349
|
-
for (const [e,
|
|
350
|
-
|
|
349
|
+
for (const [e, l] of Object.entries(t))
|
|
350
|
+
l !== !1 && l !== null && l !== void 0 && (o[e] = l);
|
|
351
351
|
},
|
|
352
352
|
getSvgContent(o) {
|
|
353
353
|
return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), St(o, this.title)), o);
|
|
@@ -358,7 +358,7 @@ const xe = C(ht), gt = ["disabled"], _t = {
|
|
|
358
358
|
*/
|
|
359
359
|
async getSource(o) {
|
|
360
360
|
try {
|
|
361
|
-
be[o] || (be[o] =
|
|
361
|
+
be[o] || (be[o] = Ct(this.download(o))), this.svgElSource && be[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
362
362
|
const t = await be[o];
|
|
363
363
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
364
364
|
} catch (t) {
|
|
@@ -390,22 +390,22 @@ function St(o, t) {
|
|
|
390
390
|
if (e.length)
|
|
391
391
|
e[0].textContent = t;
|
|
392
392
|
else {
|
|
393
|
-
const
|
|
394
|
-
|
|
393
|
+
const l = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
394
|
+
l.textContent = t, o.insertBefore(l, o.firstChild);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ct(o) {
|
|
398
398
|
if (o.getIsPending) return o;
|
|
399
399
|
let t = !0;
|
|
400
400
|
const e = o.then(
|
|
401
|
-
(
|
|
402
|
-
(
|
|
403
|
-
throw t = !1,
|
|
401
|
+
(l) => (t = !1, l),
|
|
402
|
+
(l) => {
|
|
403
|
+
throw t = !1, l;
|
|
404
404
|
}
|
|
405
405
|
);
|
|
406
406
|
return e.getIsPending = () => t, e;
|
|
407
407
|
}
|
|
408
|
-
const
|
|
408
|
+
const Tt = /* @__PURE__ */ S({
|
|
409
409
|
__name: "QIconSvg",
|
|
410
410
|
props: {
|
|
411
411
|
icon: {},
|
|
@@ -415,121 +415,121 @@ const Ct = /* @__PURE__ */ B({
|
|
|
415
415
|
},
|
|
416
416
|
emits: ["loaded", "unloaded"],
|
|
417
417
|
setup(o, { emit: t }) {
|
|
418
|
-
const e = o,
|
|
418
|
+
const e = o, l = t, n = y(() => ({
|
|
419
419
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
420
420
|
}));
|
|
421
421
|
function s(a) {
|
|
422
|
-
|
|
422
|
+
l("loaded", a);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
|
|
424
|
+
function d() {
|
|
425
|
+
l("unloaded");
|
|
426
426
|
}
|
|
427
|
-
return (a,
|
|
427
|
+
return (a, i) => (r(), I(m(Bt), {
|
|
428
428
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
429
429
|
src: e.bundle,
|
|
430
430
|
symbol: e.icon,
|
|
431
|
-
style:
|
|
431
|
+
style: pe(n.value),
|
|
432
432
|
onLoaded: s,
|
|
433
|
-
onUnloaded:
|
|
433
|
+
onUnloaded: d
|
|
434
434
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
435
435
|
}
|
|
436
|
-
}),
|
|
436
|
+
}), N = C(qt), Ze = C(xt), Je = C(It), et = C(Tt), Vt = {
|
|
437
437
|
remove: {
|
|
438
438
|
icon: "close"
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
function
|
|
441
|
+
function Et(o) {
|
|
442
442
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(o);
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Dt(o) {
|
|
445
445
|
const t = o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
446
446
|
if (t) {
|
|
447
|
-
const e = parseInt(t[1], 10),
|
|
448
|
-
return { r: e, g:
|
|
447
|
+
const e = parseInt(t[1], 10), l = parseInt(t[2], 10), n = parseInt(t[3], 10);
|
|
448
|
+
return { r: e, g: l, b: n };
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
function tt(o) {
|
|
452
|
-
if (
|
|
452
|
+
if (Et(o)) {
|
|
453
453
|
o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
|
|
454
|
-
const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16),
|
|
455
|
-
return { r: t, g: e, b:
|
|
454
|
+
const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), l = parseInt(o.slice(5, 7), 16);
|
|
455
|
+
return { r: t, g: e, b: l };
|
|
456
456
|
} else {
|
|
457
|
-
const t =
|
|
457
|
+
const t = Dt(o);
|
|
458
458
|
if (t) return t;
|
|
459
459
|
}
|
|
460
460
|
throw new Error("Invalid color format");
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
const t = o.r / 255, e = o.g / 255,
|
|
464
|
-
let
|
|
465
|
-
const
|
|
466
|
-
if (
|
|
467
|
-
|
|
462
|
+
function At(o) {
|
|
463
|
+
const t = o.r / 255, e = o.g / 255, l = o.b / 255, n = Math.max(t, e, l), s = Math.min(t, e, l);
|
|
464
|
+
let d = 0, a;
|
|
465
|
+
const i = (n + s) / 2;
|
|
466
|
+
if (n === s)
|
|
467
|
+
d = a = 0;
|
|
468
468
|
else {
|
|
469
|
-
const
|
|
470
|
-
switch (a =
|
|
469
|
+
const f = n - s;
|
|
470
|
+
switch (a = i > 0.5 ? f / (2 - n - s) : f / (n + s), n) {
|
|
471
471
|
case t:
|
|
472
|
-
|
|
472
|
+
d = (e - l) / f + (e < l ? 6 : 0);
|
|
473
473
|
break;
|
|
474
474
|
case e:
|
|
475
|
-
|
|
475
|
+
d = (l - t) / f + 2;
|
|
476
476
|
break;
|
|
477
|
-
case
|
|
478
|
-
|
|
477
|
+
case l:
|
|
478
|
+
d = (t - e) / f + 4;
|
|
479
479
|
break;
|
|
480
480
|
}
|
|
481
|
-
|
|
481
|
+
d /= 6;
|
|
482
482
|
}
|
|
483
483
|
return {
|
|
484
|
-
h: Math.round(
|
|
484
|
+
h: Math.round(d * 360),
|
|
485
485
|
s: Math.round(a * 100),
|
|
486
|
-
l: Math.round(
|
|
486
|
+
l: Math.round(i * 100)
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Qt(o) {
|
|
490
490
|
return o > 50 ? "#000" : "#fff";
|
|
491
491
|
}
|
|
492
|
-
const
|
|
492
|
+
const zt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ S({
|
|
493
493
|
__name: "QBadge",
|
|
494
494
|
props: {
|
|
495
495
|
color: { default: "primary" },
|
|
496
496
|
variant: { default: "tonal" },
|
|
497
497
|
removable: { type: Boolean },
|
|
498
498
|
pill: { type: Boolean },
|
|
499
|
-
icons: { default: () =>
|
|
499
|
+
icons: { default: () => Vt }
|
|
500
500
|
},
|
|
501
501
|
emits: ["click:remove"],
|
|
502
502
|
setup(o, { emit: t }) {
|
|
503
|
-
const e = o,
|
|
503
|
+
const e = o, l = t, n = y(
|
|
504
504
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
505
|
-
), s =
|
|
506
|
-
const
|
|
507
|
-
return ["q-badge", `q-badge--${e.variant}`,
|
|
508
|
-
}),
|
|
509
|
-
let
|
|
510
|
-
if (!
|
|
511
|
-
if (
|
|
512
|
-
|
|
505
|
+
), s = y(() => {
|
|
506
|
+
const i = n.value ? `q-badge--${e.color}` : void 0;
|
|
507
|
+
return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
|
|
508
|
+
}), d = y(() => {
|
|
509
|
+
let i, f;
|
|
510
|
+
if (!n.value)
|
|
511
|
+
if (i = e.color, e.variant === "tonal")
|
|
512
|
+
f = e.color;
|
|
513
513
|
else {
|
|
514
|
-
const
|
|
515
|
-
|
|
514
|
+
const $ = tt(i), B = At($);
|
|
515
|
+
f = Qt(B.l);
|
|
516
516
|
}
|
|
517
517
|
return {
|
|
518
|
-
"--q-badge-color":
|
|
519
|
-
"--q-badge-text-color":
|
|
518
|
+
"--q-badge-color": i,
|
|
519
|
+
"--q-badge-text-color": f
|
|
520
520
|
};
|
|
521
521
|
});
|
|
522
522
|
function a() {
|
|
523
|
-
|
|
523
|
+
l("click:remove");
|
|
524
524
|
}
|
|
525
|
-
return (
|
|
525
|
+
return (i, f) => (r(), u("span", {
|
|
526
526
|
class: T(s.value),
|
|
527
527
|
role: "presentation",
|
|
528
|
-
style:
|
|
528
|
+
style: pe(d.value)
|
|
529
529
|
}, [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
530
|
+
f[0] || (f[0] = x("div", { class: "q-badge__underlay" }, null, -1)),
|
|
531
|
+
x("div", zt, [
|
|
532
|
+
v(i.$slots, "default"),
|
|
533
533
|
e.removable ? (r(), I(m(re), {
|
|
534
534
|
key: 0,
|
|
535
535
|
class: "q-badge__remove",
|
|
@@ -537,15 +537,15 @@ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
|
|
|
537
537
|
tabindex: "0",
|
|
538
538
|
onClick: a
|
|
539
539
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
M(m(
|
|
540
|
+
default: k(() => [
|
|
541
|
+
M(m(N), j(ne(e.icons.remove)), null, 16)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
|
-
})) :
|
|
544
|
+
})) : _("", !0)
|
|
545
545
|
])
|
|
546
546
|
], 6));
|
|
547
547
|
}
|
|
548
|
-
}),
|
|
548
|
+
}), Mt = C(Ft), Pt = /* @__PURE__ */ S({
|
|
549
549
|
__name: "QButtonGroup",
|
|
550
550
|
props: {
|
|
551
551
|
disabled: { type: Boolean },
|
|
@@ -562,7 +562,7 @@ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
|
|
|
562
562
|
borderless: Fe(t, "borderless"),
|
|
563
563
|
elevated: !1
|
|
564
564
|
}
|
|
565
|
-
}), (e,
|
|
565
|
+
}), (e, l) => (r(), u("div", {
|
|
566
566
|
class: T([
|
|
567
567
|
"q-btn-group",
|
|
568
568
|
{
|
|
@@ -571,10 +571,10 @@ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
|
|
|
571
571
|
t.class
|
|
572
572
|
])
|
|
573
573
|
}, [
|
|
574
|
-
|
|
574
|
+
v(e.$slots, "default")
|
|
575
575
|
], 2));
|
|
576
576
|
}
|
|
577
|
-
}), ot = C(
|
|
577
|
+
}), ot = C(Pt), Ot = /* @__PURE__ */ S({
|
|
578
578
|
__name: "QButtonToggle",
|
|
579
579
|
props: /* @__PURE__ */ Y({
|
|
580
580
|
options: {},
|
|
@@ -590,10 +590,10 @@ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
|
|
|
590
590
|
emits: ["update:modelValue"],
|
|
591
591
|
setup(o) {
|
|
592
592
|
const t = o, e = ee(o, "modelValue");
|
|
593
|
-
function n
|
|
594
|
-
e.value ===
|
|
593
|
+
function l(n) {
|
|
594
|
+
e.value === n.key && !t.required ? e.value = void 0 : e.value = n.key;
|
|
595
595
|
}
|
|
596
|
-
return (
|
|
596
|
+
return (n, s) => (r(), I(m(ot), {
|
|
597
597
|
"b-style": "secondary",
|
|
598
598
|
class: T(t.class),
|
|
599
599
|
disabled: t.disabled,
|
|
@@ -601,18 +601,18 @@ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
|
|
|
601
601
|
elevated: t.elevated,
|
|
602
602
|
role: "listbox"
|
|
603
603
|
}, {
|
|
604
|
-
default:
|
|
605
|
-
(r(!0),
|
|
606
|
-
key:
|
|
607
|
-
title:
|
|
608
|
-
label:
|
|
609
|
-
active: e.value ===
|
|
604
|
+
default: k(() => [
|
|
605
|
+
(r(!0), u(U, null, he(t.options, (d) => (r(), I(m(re), {
|
|
606
|
+
key: d.key,
|
|
607
|
+
title: d.title,
|
|
608
|
+
label: d.label,
|
|
609
|
+
active: e.value === d.key,
|
|
610
610
|
role: "option",
|
|
611
|
-
"aria-selected": e.value ===
|
|
612
|
-
onClick: () =>
|
|
611
|
+
"aria-selected": e.value === d.key,
|
|
612
|
+
onClick: () => l(d)
|
|
613
613
|
}, {
|
|
614
|
-
default:
|
|
615
|
-
|
|
614
|
+
default: k(() => [
|
|
615
|
+
v(n.$slots, d.key)
|
|
616
616
|
]),
|
|
617
617
|
_: 2
|
|
618
618
|
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
|
|
@@ -620,19 +620,109 @@ const Qt = { class: "q-badge__content" }, zt = /* @__PURE__ */ B({
|
|
|
620
620
|
_: 3
|
|
621
621
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
622
622
|
}
|
|
623
|
-
}),
|
|
624
|
-
let
|
|
623
|
+
}), Ut = C(Ot);
|
|
624
|
+
let Nt = 0;
|
|
625
625
|
function fe(o) {
|
|
626
|
-
return o || `uid-${++
|
|
626
|
+
return o || `uid-${++Nt}`;
|
|
627
627
|
}
|
|
628
|
-
const
|
|
628
|
+
const Ht = { class: "q-card__header" }, Gt = {
|
|
629
|
+
key: 0,
|
|
630
|
+
class: "q-card__header-content"
|
|
631
|
+
}, Rt = { class: "q-card__header-text" }, Kt = {
|
|
632
|
+
key: 0,
|
|
633
|
+
class: "q-card__title",
|
|
634
|
+
role: "cell"
|
|
635
|
+
}, jt = {
|
|
636
|
+
key: 1,
|
|
637
|
+
class: "q-card__subtitle",
|
|
638
|
+
role: "cell"
|
|
639
|
+
}, Wt = { class: "q-card__content" }, Xt = {
|
|
640
|
+
key: 0,
|
|
641
|
+
class: "q-card__footer"
|
|
642
|
+
}, Yt = /* @__PURE__ */ S({
|
|
643
|
+
__name: "QCard",
|
|
644
|
+
props: {
|
|
645
|
+
id: { default: void 0 },
|
|
646
|
+
title: { default: void 0 },
|
|
647
|
+
subtitle: { default: void 0 },
|
|
648
|
+
href: { default: void 0 },
|
|
649
|
+
disabled: { type: Boolean },
|
|
650
|
+
loading: { type: Boolean },
|
|
651
|
+
borderless: { type: Boolean },
|
|
652
|
+
variant: { default: "default" },
|
|
653
|
+
elevation: { default: "none" },
|
|
654
|
+
width: { default: void 0 }
|
|
655
|
+
},
|
|
656
|
+
setup(o) {
|
|
657
|
+
const t = o, e = ut(), l = fe(t.id), n = y(() => {
|
|
658
|
+
const i = t.width ? `q-card--${t.width}` : void 0, f = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, $ = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
|
|
659
|
+
return [
|
|
660
|
+
"q-card",
|
|
661
|
+
i,
|
|
662
|
+
f,
|
|
663
|
+
$,
|
|
664
|
+
{
|
|
665
|
+
"q-card--clickable": s.value,
|
|
666
|
+
"q-card--loading": t.loading,
|
|
667
|
+
"q-card--borderless": t.borderless,
|
|
668
|
+
"q-card--disabled": t.disabled
|
|
669
|
+
}
|
|
670
|
+
];
|
|
671
|
+
}), s = y(() => !!e.onClick || t.href), d = y(() => t.disabled || t.loading), a = (i) => {
|
|
672
|
+
d.value && i.stopImmediatePropagation();
|
|
673
|
+
};
|
|
674
|
+
return (i, f) => (r(), I(xe(t.href ? "a" : "div"), {
|
|
675
|
+
id: m(l),
|
|
676
|
+
class: T([...n.value, i.$attrs.class]),
|
|
677
|
+
href: t.href && !d.value ? t.href : void 0,
|
|
678
|
+
onClick: a
|
|
679
|
+
}, {
|
|
680
|
+
default: k(() => [
|
|
681
|
+
t.loading ? (r(), I(m(_e), {
|
|
682
|
+
key: 0,
|
|
683
|
+
size: 36
|
|
684
|
+
})) : (r(), u(U, { key: 1 }, [
|
|
685
|
+
x("div", Ht, [
|
|
686
|
+
v(i.$slots, "header", {}, () => [
|
|
687
|
+
v(i.$slots, "header.prepend"),
|
|
688
|
+
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), u("div", Gt, [
|
|
689
|
+
v(i.$slots, "header.content.prepend"),
|
|
690
|
+
x("div", Rt, [
|
|
691
|
+
i.$slots.title || t.title ? (r(), u("p", Kt, [
|
|
692
|
+
i.$slots.title ? v(i.$slots, "title", { key: 0 }) : (r(), u(U, { key: 1 }, [
|
|
693
|
+
ue(A(i.$props.title), 1)
|
|
694
|
+
], 64))
|
|
695
|
+
])) : _("", !0),
|
|
696
|
+
i.$slots.subtitle || t.subtitle ? (r(), u("p", jt, [
|
|
697
|
+
i.$slots.subtitle ? v(i.$slots, "subtitle", { key: 0 }) : (r(), u(U, { key: 1 }, [
|
|
698
|
+
ue(A(i.$props.subtitle), 1)
|
|
699
|
+
], 64))
|
|
700
|
+
])) : _("", !0)
|
|
701
|
+
]),
|
|
702
|
+
v(i.$slots, "header.content.append")
|
|
703
|
+
])) : _("", !0),
|
|
704
|
+
v(i.$slots, "header.append")
|
|
705
|
+
])
|
|
706
|
+
]),
|
|
707
|
+
x("div", Wt, [
|
|
708
|
+
v(i.$slots, "default")
|
|
709
|
+
]),
|
|
710
|
+
i.$slots.footer ? (r(), u("div", Xt, [
|
|
711
|
+
v(i.$slots, "footer")
|
|
712
|
+
])) : _("", !0)
|
|
713
|
+
], 64))
|
|
714
|
+
]),
|
|
715
|
+
_: 3
|
|
716
|
+
}, 8, ["id", "class", "href"]));
|
|
717
|
+
}
|
|
718
|
+
}), Zt = C(Yt), Jt = {
|
|
629
719
|
checked: {
|
|
630
720
|
icon: "check"
|
|
631
721
|
},
|
|
632
722
|
indeterminate: {
|
|
633
723
|
icon: "minus"
|
|
634
724
|
}
|
|
635
|
-
},
|
|
725
|
+
}, eo = { key: 0 }, to = ["id", "aria-checked", "disabled", "onKeydown"], oo = { key: 1 }, lo = ["checked", "disabled"], no = /* @__PURE__ */ S({
|
|
636
726
|
__name: "QCheckbox",
|
|
637
727
|
props: /* @__PURE__ */ Y({
|
|
638
728
|
id: { default: void 0 },
|
|
@@ -644,14 +734,14 @@ const Nt = {
|
|
|
644
734
|
color: { default: "primary" },
|
|
645
735
|
size: { default: "regular" },
|
|
646
736
|
class: { default: void 0 },
|
|
647
|
-
icons: { default: () =>
|
|
737
|
+
icons: { default: () => Jt }
|
|
648
738
|
}, {
|
|
649
739
|
modelValue: { type: Boolean },
|
|
650
740
|
modelModifiers: {}
|
|
651
741
|
}),
|
|
652
742
|
emits: ["update:modelValue"],
|
|
653
743
|
setup(o) {
|
|
654
|
-
const t = o, e = ee(o, "modelValue"),
|
|
744
|
+
const t = o, e = ee(o, "modelValue"), l = fe(t.id), n = y(() => [
|
|
655
745
|
"q-checkbox",
|
|
656
746
|
`q-checkbox--${t.size}`,
|
|
657
747
|
`q-checkbox--${t.color}`,
|
|
@@ -666,13 +756,13 @@ const Nt = {
|
|
|
666
756
|
function s() {
|
|
667
757
|
!t.disabled && !t.readonly && (e.value = !e.value);
|
|
668
758
|
}
|
|
669
|
-
return (
|
|
670
|
-
|
|
671
|
-
class: T(
|
|
759
|
+
return (d, a) => (r(), u(U, null, [
|
|
760
|
+
x("label", {
|
|
761
|
+
class: T(n.value)
|
|
672
762
|
}, [
|
|
673
|
-
t.labelPlacement !== "right" ? (r(),
|
|
674
|
-
|
|
675
|
-
id: m(
|
|
763
|
+
t.labelPlacement !== "right" ? (r(), u("span", eo, A(t.label), 1)) : _("", !0),
|
|
764
|
+
x("button", {
|
|
765
|
+
id: m(l),
|
|
676
766
|
role: "checkbox",
|
|
677
767
|
type: "button",
|
|
678
768
|
"aria-checked": t.indeterminate ? "mixed" : e.value,
|
|
@@ -680,26 +770,26 @@ const Nt = {
|
|
|
680
770
|
class: "q-checkbox__input",
|
|
681
771
|
onClick: ce(s, ["prevent"]),
|
|
682
772
|
onKeydown: [
|
|
683
|
-
|
|
684
|
-
a[0] || (a[0] =
|
|
773
|
+
Be(ce(s, ["prevent"]), ["space"]),
|
|
774
|
+
a[0] || (a[0] = Be(ce(() => {
|
|
685
775
|
}, ["prevent"]), ["enter"]))
|
|
686
776
|
]
|
|
687
777
|
}, [
|
|
688
|
-
e.value ||
|
|
689
|
-
], 40,
|
|
690
|
-
t.labelPlacement === "right" ? (r(),
|
|
778
|
+
e.value || d.indeterminate ? (r(), I(m(N), Z({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : _("", !0)
|
|
779
|
+
], 40, to),
|
|
780
|
+
t.labelPlacement === "right" ? (r(), u("span", oo, A(t.label), 1)) : _("", !0)
|
|
691
781
|
], 2),
|
|
692
|
-
|
|
782
|
+
x("input", {
|
|
693
783
|
type: "checkbox",
|
|
694
784
|
tabindex: "-1",
|
|
695
785
|
"aria-hidden": "true",
|
|
696
786
|
class: "q-checkbox__native-input",
|
|
697
787
|
checked: !!e.value,
|
|
698
788
|
disabled: t.disabled || t.readonly
|
|
699
|
-
}, null, 8,
|
|
789
|
+
}, null, 8, lo)
|
|
700
790
|
], 64));
|
|
701
791
|
}
|
|
702
|
-
}),
|
|
792
|
+
}), so = C(no), ao = /* @__PURE__ */ S({
|
|
703
793
|
__name: "QList",
|
|
704
794
|
props: /* @__PURE__ */ Y({
|
|
705
795
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -718,142 +808,142 @@ const Nt = {
|
|
|
718
808
|
}),
|
|
719
809
|
emits: ["update:modelValue"],
|
|
720
810
|
setup(o, { expose: t }) {
|
|
721
|
-
const e = o,
|
|
722
|
-
(
|
|
811
|
+
const e = o, l = ee(o, "modelValue"), n = D(!1), s = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => e.groups.length ? e.groups.filter(
|
|
812
|
+
(h) => e.items.some((q) => q.group === h.id)
|
|
723
813
|
) : [{ id: "", title: "" }]), a = D(null);
|
|
724
|
-
function
|
|
725
|
-
|
|
814
|
+
function i(h) {
|
|
815
|
+
l.value = h;
|
|
726
816
|
}
|
|
727
|
-
function
|
|
728
|
-
|
|
817
|
+
function f() {
|
|
818
|
+
n.value = !0;
|
|
729
819
|
}
|
|
730
|
-
function
|
|
731
|
-
|
|
820
|
+
function $() {
|
|
821
|
+
n.value = !1;
|
|
732
822
|
}
|
|
733
|
-
function
|
|
823
|
+
function B(h) {
|
|
734
824
|
var g;
|
|
735
|
-
if ((g = a.value) != null && g.contains(
|
|
825
|
+
if ((g = a.value) != null && g.contains(h.relatedTarget))
|
|
736
826
|
return;
|
|
737
827
|
let q;
|
|
738
|
-
|
|
739
|
-
const
|
|
740
|
-
V(q,
|
|
828
|
+
l.value ? q = e.items.findIndex((R) => R[e.itemValue] === l.value) : q = z();
|
|
829
|
+
const p = n.value;
|
|
830
|
+
V(q, p);
|
|
741
831
|
}
|
|
742
|
-
function O(
|
|
743
|
-
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
832
|
+
function O(h) {
|
|
833
|
+
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(h.key) && h.preventDefault(), h.key) {
|
|
744
834
|
case "ArrowDown":
|
|
745
|
-
|
|
835
|
+
Q("next");
|
|
746
836
|
break;
|
|
747
837
|
case "ArrowUp":
|
|
748
|
-
|
|
838
|
+
Q("prev");
|
|
749
839
|
break;
|
|
750
840
|
case "Home":
|
|
751
|
-
|
|
841
|
+
Q("first");
|
|
752
842
|
break;
|
|
753
843
|
case "End":
|
|
754
|
-
|
|
844
|
+
Q("last");
|
|
755
845
|
break;
|
|
756
846
|
}
|
|
757
847
|
}
|
|
758
|
-
function
|
|
759
|
-
switch (
|
|
848
|
+
function Q(h) {
|
|
849
|
+
switch (h) {
|
|
760
850
|
case "next":
|
|
761
851
|
case "prev":
|
|
762
|
-
V(W(
|
|
852
|
+
V(W(h));
|
|
763
853
|
break;
|
|
764
854
|
case "first":
|
|
765
|
-
V(
|
|
855
|
+
V(z());
|
|
766
856
|
break;
|
|
767
857
|
case "last":
|
|
768
858
|
V(G());
|
|
769
859
|
break;
|
|
770
860
|
}
|
|
771
861
|
}
|
|
772
|
-
function V(
|
|
862
|
+
function V(h, q = !1) {
|
|
773
863
|
var g;
|
|
774
|
-
(g =
|
|
864
|
+
(g = b()[h]) == null || g.focus({ preventScroll: q });
|
|
775
865
|
}
|
|
776
|
-
function
|
|
866
|
+
function b() {
|
|
777
867
|
var q;
|
|
778
|
-
const
|
|
779
|
-
return
|
|
868
|
+
const h = (q = a.value) == null ? void 0 : q.querySelectorAll("li");
|
|
869
|
+
return h ? Array.from(h) : [];
|
|
780
870
|
}
|
|
781
|
-
function E(
|
|
782
|
-
return
|
|
871
|
+
function E(h) {
|
|
872
|
+
return b()[h];
|
|
783
873
|
}
|
|
784
874
|
function P() {
|
|
785
|
-
return
|
|
875
|
+
return b().indexOf(document.activeElement);
|
|
786
876
|
}
|
|
787
|
-
function
|
|
788
|
-
const
|
|
789
|
-
return q ?
|
|
877
|
+
function z() {
|
|
878
|
+
const h = b(), q = h.find((p) => H(p));
|
|
879
|
+
return q ? h.indexOf(q) : -1;
|
|
790
880
|
}
|
|
791
881
|
function G() {
|
|
792
|
-
const
|
|
793
|
-
return q ?
|
|
882
|
+
const h = b(), q = [...h].reverse().find((p) => H(p));
|
|
883
|
+
return q ? h.indexOf(q) : -1;
|
|
794
884
|
}
|
|
795
|
-
function se(
|
|
796
|
-
return q === "prev" &&
|
|
885
|
+
function se(h, q, p) {
|
|
886
|
+
return q === "prev" && h === 0 || q === "next" && h === p.length - 1;
|
|
797
887
|
}
|
|
798
|
-
function W(
|
|
888
|
+
function W(h) {
|
|
799
889
|
const q = P();
|
|
800
|
-
return ae(q,
|
|
801
|
-
}
|
|
802
|
-
function ae(
|
|
803
|
-
const
|
|
804
|
-
if (se(
|
|
805
|
-
return
|
|
806
|
-
let g =
|
|
807
|
-
for (; !
|
|
808
|
-
if (se(g, q,
|
|
809
|
-
return
|
|
890
|
+
return ae(q, h);
|
|
891
|
+
}
|
|
892
|
+
function ae(h, q) {
|
|
893
|
+
const p = b();
|
|
894
|
+
if (se(h, q, p))
|
|
895
|
+
return h;
|
|
896
|
+
let g = h + (q === "next" ? 1 : -1);
|
|
897
|
+
for (; !H(p[g]); ) {
|
|
898
|
+
if (se(g, q, p))
|
|
899
|
+
return h;
|
|
810
900
|
g += q === "next" ? 1 : -1;
|
|
811
901
|
}
|
|
812
902
|
return g;
|
|
813
903
|
}
|
|
814
|
-
function
|
|
815
|
-
return
|
|
904
|
+
function H(h) {
|
|
905
|
+
return h.tabIndex === -2;
|
|
816
906
|
}
|
|
817
|
-
function J(
|
|
818
|
-
return
|
|
907
|
+
function J(h) {
|
|
908
|
+
return h ? e.items.filter((q) => q.group === h) : e.items;
|
|
819
909
|
}
|
|
820
910
|
return t({
|
|
821
911
|
focusItem: V,
|
|
822
912
|
getItem: E,
|
|
823
913
|
getAdjacentItemIndex: ae,
|
|
824
|
-
getFirstFocusableItemIndex:
|
|
914
|
+
getFirstFocusableItemIndex: z,
|
|
825
915
|
getLastFocusableItemIndex: G
|
|
826
|
-
}), (
|
|
916
|
+
}), (h, q) => (r(), I(xe(s.value), {
|
|
827
917
|
ref_key: "listRef",
|
|
828
918
|
ref: a,
|
|
829
919
|
class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
830
920
|
role: "listbox",
|
|
831
921
|
tabindex: e.disabled ? -1 : 0,
|
|
832
|
-
onFocus:
|
|
833
|
-
onMousedown:
|
|
834
|
-
onMouseup:
|
|
922
|
+
onFocus: B,
|
|
923
|
+
onMousedown: f,
|
|
924
|
+
onMouseup: $,
|
|
835
925
|
onKeydown: O
|
|
836
926
|
}, {
|
|
837
|
-
default:
|
|
838
|
-
(r(!0),
|
|
839
|
-
key:
|
|
840
|
-
id:
|
|
841
|
-
title:
|
|
927
|
+
default: k(() => [
|
|
928
|
+
(r(!0), u(U, null, he(d.value, (p) => (r(), I(m(nt), {
|
|
929
|
+
key: p.id,
|
|
930
|
+
id: p.id,
|
|
931
|
+
title: d.value.length === 1 ? void 0 : p.title
|
|
842
932
|
}, {
|
|
843
|
-
default:
|
|
844
|
-
(r(!0),
|
|
933
|
+
default: k(() => [
|
|
934
|
+
(r(!0), u(U, null, he(J(p.id), (g) => (r(), I(m(lt), {
|
|
845
935
|
key: g[e.itemValue],
|
|
846
936
|
value: g[e.itemValue],
|
|
847
937
|
label: g[e.itemLabel],
|
|
848
938
|
description: g.description,
|
|
849
939
|
icon: g.icon,
|
|
850
|
-
disabled: e.disabled ||
|
|
940
|
+
disabled: e.disabled || p.disabled || g.disabled,
|
|
851
941
|
highlighted: e.highlighted === g[e.itemValue],
|
|
852
|
-
selected:
|
|
853
|
-
onSelect:
|
|
942
|
+
selected: h.selectable && l.value === g[e.itemValue],
|
|
943
|
+
onSelect: i
|
|
854
944
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
h
|
|
945
|
+
default: k(() => [
|
|
946
|
+
v(h.$slots, "item", { item: g })
|
|
857
947
|
]),
|
|
858
948
|
_: 2
|
|
859
949
|
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -864,17 +954,17 @@ const Nt = {
|
|
|
864
954
|
_: 3
|
|
865
955
|
}, 40, ["class", "tabindex"]));
|
|
866
956
|
}
|
|
867
|
-
}),
|
|
957
|
+
}), io = {
|
|
868
958
|
check: {
|
|
869
959
|
icon: "check"
|
|
870
960
|
},
|
|
871
961
|
description: {
|
|
872
962
|
icon: "information-outline"
|
|
873
963
|
}
|
|
874
|
-
},
|
|
964
|
+
}, ro = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], co = { class: "q-list-item__container" }, uo = { class: "q-list-item__content" }, fo = {
|
|
875
965
|
key: 0,
|
|
876
966
|
class: "q-list-item__description"
|
|
877
|
-
},
|
|
967
|
+
}, po = { class: "q-list-item__check-container" }, mo = /* @__PURE__ */ S({
|
|
878
968
|
__name: "QListItem",
|
|
879
969
|
props: {
|
|
880
970
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -884,19 +974,19 @@ const Nt = {
|
|
|
884
974
|
highlighted: { type: Boolean },
|
|
885
975
|
disabled: { type: Boolean },
|
|
886
976
|
description: { default: void 0 },
|
|
887
|
-
icons: { default: () =>
|
|
977
|
+
icons: { default: () => io }
|
|
888
978
|
},
|
|
889
979
|
emits: ["select"],
|
|
890
980
|
setup(o, { emit: t }) {
|
|
891
|
-
const e = o,
|
|
981
|
+
const e = o, l = t, n = fe();
|
|
892
982
|
function s() {
|
|
893
|
-
e.disabled ||
|
|
983
|
+
e.disabled || l("select", e.value);
|
|
894
984
|
}
|
|
895
|
-
function
|
|
985
|
+
function d(a) {
|
|
896
986
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
897
987
|
}
|
|
898
|
-
return (a,
|
|
899
|
-
id: m(
|
|
988
|
+
return (a, i) => (r(), u("li", {
|
|
989
|
+
id: m(n),
|
|
900
990
|
"data-key": e.value,
|
|
901
991
|
role: "option",
|
|
902
992
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -910,27 +1000,27 @@ const Nt = {
|
|
|
910
1000
|
]),
|
|
911
1001
|
"aria-label": e.label,
|
|
912
1002
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
913
|
-
onKeydown:
|
|
1003
|
+
onKeydown: d,
|
|
914
1004
|
onClick: ce(s, ["stop", "prevent"])
|
|
915
1005
|
}, [
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
e.icon ? (r(), I(m(
|
|
920
|
-
|
|
1006
|
+
x("div", co, [
|
|
1007
|
+
x("div", uo, [
|
|
1008
|
+
v(a.$slots, "default", {}, () => [
|
|
1009
|
+
e.icon ? (r(), I(m(N), j(Z({ key: 0 }, e.icon)), null, 16)) : _("", !0),
|
|
1010
|
+
ue(" " + A(e.label), 1)
|
|
921
1011
|
])
|
|
922
1012
|
]),
|
|
923
|
-
e.description ? (r(),
|
|
924
|
-
M(m(
|
|
925
|
-
|
|
926
|
-
])) :
|
|
1013
|
+
e.description ? (r(), u("div", fo, [
|
|
1014
|
+
M(m(N), j(ne(e.icons.description)), null, 16),
|
|
1015
|
+
x("span", null, A(e.description), 1)
|
|
1016
|
+
])) : _("", !0)
|
|
927
1017
|
]),
|
|
928
|
-
|
|
929
|
-
e.selected ? (r(), I(m(
|
|
1018
|
+
x("div", po, [
|
|
1019
|
+
e.selected ? (r(), I(m(N), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : _("", !0)
|
|
930
1020
|
])
|
|
931
|
-
], 42,
|
|
1021
|
+
], 42, ro));
|
|
932
1022
|
}
|
|
933
|
-
}),
|
|
1023
|
+
}), vo = ["data-key", "aria-labelledby"], ho = ["id"], yo = /* @__PURE__ */ S({
|
|
934
1024
|
__name: "QListItemGroup",
|
|
935
1025
|
props: {
|
|
936
1026
|
id: {},
|
|
@@ -938,83 +1028,83 @@ const Nt = {
|
|
|
938
1028
|
},
|
|
939
1029
|
setup(o) {
|
|
940
1030
|
const t = o, e = fe();
|
|
941
|
-
return (
|
|
1031
|
+
return (l, n) => (r(), u("ul", {
|
|
942
1032
|
class: "q-list-item-group",
|
|
943
1033
|
role: "group",
|
|
944
1034
|
"data-key": t.id,
|
|
945
1035
|
"aria-labelledby": t.title ? m(e) : void 0
|
|
946
1036
|
}, [
|
|
947
|
-
t.title ? (r(),
|
|
1037
|
+
t.title ? (r(), u("li", {
|
|
948
1038
|
key: 0,
|
|
949
1039
|
id: m(e),
|
|
950
1040
|
class: "q-list-item-group__title",
|
|
951
1041
|
role: "presentation"
|
|
952
|
-
},
|
|
953
|
-
|
|
954
|
-
], 8,
|
|
1042
|
+
}, A(t.title), 9, ho)) : _("", !0),
|
|
1043
|
+
v(l.$slots, "default")
|
|
1044
|
+
], 8, vo));
|
|
955
1045
|
}
|
|
956
|
-
}), Ee = C(
|
|
957
|
-
function
|
|
958
|
-
const
|
|
959
|
-
let
|
|
960
|
-
if (
|
|
961
|
-
if (!
|
|
1046
|
+
}), Ee = C(ao), lt = C(mo), nt = C(yo), we = 8;
|
|
1047
|
+
function bo(o, t, e, l) {
|
|
1048
|
+
const n = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", d = o.getBoundingClientRect(), a = t.getBoundingClientRect(), i = e == null ? void 0 : e.getBoundingClientRect(), f = go(d, a, s, n), $ = wo(d, a, f), B = ko($, f, n), O = _o(B, a, f);
|
|
1049
|
+
let Q;
|
|
1050
|
+
if (l != null && l.arrow) {
|
|
1051
|
+
if (!i)
|
|
962
1052
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
963
|
-
|
|
1053
|
+
Q = $o(O, d, a, i, f);
|
|
964
1054
|
}
|
|
965
|
-
return { overlayCoords: O, arrowCoords:
|
|
1055
|
+
return { overlayCoords: O, arrowCoords: Q, placement: f };
|
|
966
1056
|
}
|
|
967
|
-
function
|
|
968
|
-
const
|
|
969
|
-
if (Ue(
|
|
970
|
-
const s =
|
|
1057
|
+
function go(o, t, e, l) {
|
|
1058
|
+
const n = Oe(o, t, e, l);
|
|
1059
|
+
if (Ue(n)) {
|
|
1060
|
+
const s = ke(e), a = {
|
|
971
1061
|
top: "bottom",
|
|
972
1062
|
bottom: "top",
|
|
973
1063
|
left: "right",
|
|
974
1064
|
right: "left"
|
|
975
|
-
}[s],
|
|
1065
|
+
}[s], i = Oe(
|
|
976
1066
|
o,
|
|
977
1067
|
t,
|
|
978
1068
|
a,
|
|
979
|
-
|
|
1069
|
+
l
|
|
980
1070
|
);
|
|
981
|
-
if (Ue(
|
|
1071
|
+
if (Ue(i))
|
|
982
1072
|
return e;
|
|
983
|
-
const
|
|
984
|
-
return
|
|
1073
|
+
const f = Lo(e);
|
|
1074
|
+
return f ? `${a}-${f}` : a;
|
|
985
1075
|
}
|
|
986
1076
|
return e;
|
|
987
1077
|
}
|
|
988
|
-
function
|
|
989
|
-
const
|
|
990
|
-
return
|
|
1078
|
+
function _o(o, t, e) {
|
|
1079
|
+
const l = qe(e), n = (d, a, i) => Math.min(Math.max(d, a), i), s = { ...o };
|
|
1080
|
+
return l === "x" ? s.x = n(o.x, we, window.innerWidth - t.width - we) : s.y = n(o.y, we, window.innerHeight - t.height - we), s;
|
|
991
1081
|
}
|
|
992
|
-
function
|
|
993
|
-
const
|
|
1082
|
+
function ko(o, t, e) {
|
|
1083
|
+
const l = ke(t);
|
|
994
1084
|
return {
|
|
995
|
-
x: o.x + (
|
|
996
|
-
y: o.y + (
|
|
1085
|
+
x: o.x + (l === "left" ? -e : l === "right" ? e : 0),
|
|
1086
|
+
y: o.y + (l === "top" ? -e : l === "bottom" ? e : 0)
|
|
997
1087
|
};
|
|
998
1088
|
}
|
|
999
|
-
function
|
|
1000
|
-
if (
|
|
1001
|
-
const
|
|
1002
|
-
if (
|
|
1089
|
+
function $o(o, t, e, l, n) {
|
|
1090
|
+
if (qe(n) === "y") {
|
|
1091
|
+
const d = t.top + t.height / 2, a = o.y + e.height / 2, i = a - d, f = e.height / 2 - i - l.height / 2 + 2;
|
|
1092
|
+
if (f > 0 && f < e.height - l.height)
|
|
1003
1093
|
return {
|
|
1004
|
-
y:
|
|
1094
|
+
y: f
|
|
1005
1095
|
};
|
|
1006
1096
|
} else {
|
|
1007
|
-
const
|
|
1008
|
-
if (
|
|
1097
|
+
const d = t.left + t.width / 2, a = o.x + e.width / 2, i = a - d, f = e.width / 2 - i - l.width / 2 + 2;
|
|
1098
|
+
if (f > 0 && f < e.width - l.width)
|
|
1009
1099
|
return {
|
|
1010
|
-
x:
|
|
1100
|
+
x: f
|
|
1011
1101
|
};
|
|
1012
1102
|
}
|
|
1013
1103
|
}
|
|
1014
|
-
function
|
|
1015
|
-
const [
|
|
1104
|
+
function wo(o, t, e) {
|
|
1105
|
+
const [l, n] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, d = o.y + o.height / 2 - t.height / 2;
|
|
1016
1106
|
let a;
|
|
1017
|
-
switch (
|
|
1107
|
+
switch (l) {
|
|
1018
1108
|
case "top":
|
|
1019
1109
|
a = { x: s, y: o.y - t.height };
|
|
1020
1110
|
break;
|
|
@@ -1022,75 +1112,75 @@ function po(o, t, e) {
|
|
|
1022
1112
|
a = { x: s, y: o.y + o.height };
|
|
1023
1113
|
break;
|
|
1024
1114
|
case "left":
|
|
1025
|
-
a = { x: o.x - t.width, y:
|
|
1115
|
+
a = { x: o.x - t.width, y: d };
|
|
1026
1116
|
break;
|
|
1027
1117
|
case "right":
|
|
1028
|
-
a = { x: o.x + o.width, y:
|
|
1118
|
+
a = { x: o.x + o.width, y: d };
|
|
1029
1119
|
break;
|
|
1030
1120
|
default:
|
|
1031
1121
|
throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
|
|
1032
1122
|
}
|
|
1033
|
-
if (!
|
|
1123
|
+
if (!n)
|
|
1034
1124
|
return a;
|
|
1035
|
-
const
|
|
1036
|
-
switch (
|
|
1125
|
+
const f = qe(e) === "y" ? "height" : "width", $ = qe(e), B = o[f] / 2 - t[f] / 2;
|
|
1126
|
+
switch (n) {
|
|
1037
1127
|
case "start":
|
|
1038
|
-
a[
|
|
1128
|
+
a[$] -= B;
|
|
1039
1129
|
break;
|
|
1040
1130
|
case "end":
|
|
1041
|
-
a[
|
|
1131
|
+
a[$] += B;
|
|
1042
1132
|
break;
|
|
1043
1133
|
default:
|
|
1044
|
-
throw new Error(`[Quidgest UI] Invalid alignment value: ${
|
|
1134
|
+
throw new Error(`[Quidgest UI] Invalid alignment value: ${n}`);
|
|
1045
1135
|
}
|
|
1046
1136
|
return a;
|
|
1047
1137
|
}
|
|
1048
|
-
function Oe(o, t, e,
|
|
1049
|
-
const
|
|
1138
|
+
function Oe(o, t, e, l) {
|
|
1139
|
+
const n = ke(e);
|
|
1050
1140
|
let s = 0;
|
|
1051
|
-
switch (
|
|
1141
|
+
switch (n) {
|
|
1052
1142
|
case "top":
|
|
1053
|
-
s = o.top - (t.height +
|
|
1143
|
+
s = o.top - (t.height + l);
|
|
1054
1144
|
break;
|
|
1055
1145
|
case "bottom":
|
|
1056
|
-
s = window.innerHeight - o.bottom - (t.height +
|
|
1146
|
+
s = window.innerHeight - o.bottom - (t.height + l);
|
|
1057
1147
|
break;
|
|
1058
1148
|
case "left":
|
|
1059
|
-
s = o.left - (t.width +
|
|
1149
|
+
s = o.left - (t.width + l);
|
|
1060
1150
|
break;
|
|
1061
1151
|
case "right":
|
|
1062
|
-
s = window.innerWidth - o.right - (t.width +
|
|
1152
|
+
s = window.innerWidth - o.right - (t.width + l);
|
|
1063
1153
|
break;
|
|
1064
1154
|
default:
|
|
1065
|
-
throw new Error(`[Quidgest UI] Invalid side value: ${
|
|
1155
|
+
throw new Error(`[Quidgest UI] Invalid side value: ${n}`);
|
|
1066
1156
|
}
|
|
1067
1157
|
return s;
|
|
1068
1158
|
}
|
|
1069
|
-
function
|
|
1159
|
+
function qo(o) {
|
|
1070
1160
|
return o === "x" ? "y" : "x";
|
|
1071
1161
|
}
|
|
1072
|
-
function
|
|
1073
|
-
const t =
|
|
1162
|
+
function xo(o) {
|
|
1163
|
+
const t = ke(o);
|
|
1074
1164
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1075
1165
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return
|
|
1166
|
+
function qe(o) {
|
|
1167
|
+
return qo(xo(o));
|
|
1078
1168
|
}
|
|
1079
|
-
function
|
|
1169
|
+
function ke(o) {
|
|
1080
1170
|
const [t] = o.split("-");
|
|
1081
1171
|
return t;
|
|
1082
1172
|
}
|
|
1083
|
-
function
|
|
1173
|
+
function Lo(o) {
|
|
1084
1174
|
const [, t] = o.split("-");
|
|
1085
1175
|
return t;
|
|
1086
1176
|
}
|
|
1087
1177
|
function Ue(o) {
|
|
1088
1178
|
return o < 0;
|
|
1089
1179
|
}
|
|
1090
|
-
function
|
|
1180
|
+
function Io(o) {
|
|
1091
1181
|
return typeof o == "string" ? document.querySelector(o) : o;
|
|
1092
1182
|
}
|
|
1093
|
-
const
|
|
1183
|
+
const Bo = ["role"], So = /* @__PURE__ */ S({
|
|
1094
1184
|
inheritAttrs: !1,
|
|
1095
1185
|
__name: "QOverlay",
|
|
1096
1186
|
props: /* @__PURE__ */ Y({
|
|
@@ -1118,123 +1208,123 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1118
1208
|
}),
|
|
1119
1209
|
emits: /* @__PURE__ */ Y(["enter", "leave"], ["update:modelValue"]),
|
|
1120
1210
|
setup(o, { emit: t }) {
|
|
1121
|
-
const e = o,
|
|
1211
|
+
const e = o, l = t, n = ee(o, "modelValue"), s = y(() => [
|
|
1122
1212
|
"q-overlay",
|
|
1123
|
-
`q-overlay--${
|
|
1213
|
+
`q-overlay--${ke(a.placement)}`,
|
|
1124
1214
|
{
|
|
1125
1215
|
"q-overlay--independent": e.anchor === void 0,
|
|
1126
1216
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1127
1217
|
},
|
|
1128
1218
|
e.class
|
|
1129
|
-
]),
|
|
1219
|
+
]), d = y(() => (n.value || a.animating) && !e.nonModal), a = Me({
|
|
1130
1220
|
animating: !1,
|
|
1131
1221
|
top: 0,
|
|
1132
1222
|
left: 0,
|
|
1133
1223
|
width: 0,
|
|
1134
1224
|
placement: e.placement
|
|
1135
|
-
}),
|
|
1225
|
+
}), i = Me({
|
|
1136
1226
|
top: void 0,
|
|
1137
1227
|
left: void 0,
|
|
1138
1228
|
hidden: !0
|
|
1139
|
-
}),
|
|
1140
|
-
oe(
|
|
1141
|
-
const
|
|
1229
|
+
}), f = y(() => a.top !== 0 && a.left !== 0);
|
|
1230
|
+
oe(n, () => a.animating = !0);
|
|
1231
|
+
const $ = y(() => {
|
|
1142
1232
|
if (e.anchor === void 0) return;
|
|
1143
|
-
const
|
|
1233
|
+
const w = H(), me = e.width === "anchor", X = me ? w == null ? void 0 : w.getBoundingClientRect().width : void 0;
|
|
1144
1234
|
return {
|
|
1145
1235
|
top: `${a.top}px`,
|
|
1146
1236
|
left: `${a.left}px`,
|
|
1147
1237
|
width: X !== void 0 ? `${X}px` : void 0
|
|
1148
1238
|
};
|
|
1149
|
-
}),
|
|
1239
|
+
}), B = y(() => {
|
|
1150
1240
|
if (e.arrow)
|
|
1151
1241
|
return {
|
|
1152
|
-
top:
|
|
1153
|
-
left:
|
|
1154
|
-
opacity:
|
|
1242
|
+
top: i.top !== void 0 ? `${i.top}px` : void 0,
|
|
1243
|
+
left: i.left !== void 0 ? `${i.left}px` : void 0,
|
|
1244
|
+
opacity: i.hidden ? 0 : 1
|
|
1155
1245
|
};
|
|
1156
|
-
}), O = D(null),
|
|
1246
|
+
}), O = D(null), Q = D(null);
|
|
1157
1247
|
function V() {
|
|
1158
|
-
const
|
|
1159
|
-
if (!
|
|
1248
|
+
const w = H();
|
|
1249
|
+
if (!w || !Q.value)
|
|
1160
1250
|
return;
|
|
1161
1251
|
const me = {
|
|
1162
1252
|
placement: e.placement,
|
|
1163
1253
|
width: e.width,
|
|
1164
1254
|
offset: e.offset,
|
|
1165
1255
|
arrow: e.arrow
|
|
1166
|
-
}, X =
|
|
1167
|
-
|
|
1168
|
-
|
|
1256
|
+
}, X = bo(
|
|
1257
|
+
w,
|
|
1258
|
+
Q.value,
|
|
1169
1259
|
(O == null ? void 0 : O.value) ?? void 0,
|
|
1170
1260
|
me
|
|
1171
1261
|
);
|
|
1172
|
-
a.left = X.overlayCoords.x, a.top = X.overlayCoords.y, a.placement = X.placement,
|
|
1262
|
+
a.left = X.overlayCoords.x, a.top = X.overlayCoords.y, a.placement = X.placement, i.hidden = X.arrowCoords === void 0, X.arrowCoords && (i.top = X.arrowCoords.y, i.left = X.arrowCoords.x);
|
|
1173
1263
|
}
|
|
1174
1264
|
oe(
|
|
1175
1265
|
() => e.placement,
|
|
1176
|
-
() =>
|
|
1266
|
+
() => le(V)
|
|
1177
1267
|
);
|
|
1178
|
-
let
|
|
1268
|
+
let b;
|
|
1179
1269
|
function E() {
|
|
1180
|
-
|
|
1270
|
+
z(0);
|
|
1181
1271
|
}
|
|
1182
1272
|
function P() {
|
|
1183
|
-
|
|
1273
|
+
z(e.delay);
|
|
1184
1274
|
}
|
|
1185
|
-
function
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
},
|
|
1275
|
+
function z(w) {
|
|
1276
|
+
b || (b = window.setTimeout(() => {
|
|
1277
|
+
n.value = !0;
|
|
1278
|
+
}, w));
|
|
1189
1279
|
}
|
|
1190
1280
|
function G() {
|
|
1191
|
-
if (clearTimeout(
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1281
|
+
if (clearTimeout(b), b = void 0, n.value = !1, e.anchor && e.trigger === "click") {
|
|
1282
|
+
const w = H();
|
|
1283
|
+
w == null || w.focus();
|
|
1194
1284
|
}
|
|
1195
1285
|
}
|
|
1196
|
-
oe(
|
|
1286
|
+
oe(f, () => le(se));
|
|
1197
1287
|
function se() {
|
|
1198
|
-
|
|
1288
|
+
l("enter");
|
|
1199
1289
|
}
|
|
1200
1290
|
let W;
|
|
1201
1291
|
function ae() {
|
|
1202
|
-
window.clearTimeout(W), W = window.setTimeout(() => a.animating = !1, 200),
|
|
1292
|
+
window.clearTimeout(W), W = window.setTimeout(() => a.animating = !1, 200), l("leave");
|
|
1203
1293
|
}
|
|
1204
|
-
function
|
|
1205
|
-
return e.anchor ?
|
|
1294
|
+
function H() {
|
|
1295
|
+
return e.anchor ? Io(e.anchor) : null;
|
|
1206
1296
|
}
|
|
1207
1297
|
let J;
|
|
1208
|
-
function
|
|
1209
|
-
const
|
|
1210
|
-
if (
|
|
1211
|
-
switch (J = new MutationObserver(V), J.observe(
|
|
1298
|
+
function h() {
|
|
1299
|
+
const w = H();
|
|
1300
|
+
if (w)
|
|
1301
|
+
switch (J = new MutationObserver(V), J.observe(w, {
|
|
1212
1302
|
attributes: !1,
|
|
1213
1303
|
childList: !0,
|
|
1214
1304
|
characterData: !0,
|
|
1215
1305
|
subtree: !0
|
|
1216
1306
|
}), e.trigger) {
|
|
1217
1307
|
case "click":
|
|
1218
|
-
|
|
1308
|
+
w.addEventListener("click", E);
|
|
1219
1309
|
break;
|
|
1220
1310
|
case "hover":
|
|
1221
|
-
|
|
1311
|
+
w.addEventListener("mouseenter", P), w.addEventListener("mouseleave", G), w.addEventListener("focusin", E), w.addEventListener("focusout", G);
|
|
1222
1312
|
break;
|
|
1223
1313
|
}
|
|
1224
1314
|
}
|
|
1225
1315
|
function q() {
|
|
1226
|
-
const
|
|
1227
|
-
if (
|
|
1316
|
+
const w = H();
|
|
1317
|
+
if (w)
|
|
1228
1318
|
switch (J == null || J.disconnect(), e.trigger) {
|
|
1229
1319
|
case "click":
|
|
1230
|
-
|
|
1320
|
+
w.removeEventListener("click", E);
|
|
1231
1321
|
break;
|
|
1232
1322
|
case "hover":
|
|
1233
|
-
|
|
1323
|
+
w.removeEventListener("mouseenter", P), w.removeEventListener("mouseleave", G), w.removeEventListener("focusin", E), w.removeEventListener("focusout", G);
|
|
1234
1324
|
break;
|
|
1235
1325
|
}
|
|
1236
1326
|
}
|
|
1237
|
-
function
|
|
1327
|
+
function p() {
|
|
1238
1328
|
window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
|
|
1239
1329
|
}
|
|
1240
1330
|
function g() {
|
|
@@ -1242,92 +1332,92 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1242
1332
|
}
|
|
1243
1333
|
let R;
|
|
1244
1334
|
function ie() {
|
|
1245
|
-
|
|
1335
|
+
H() ? (V(), R = window.setTimeout(ie, 100)) : G();
|
|
1246
1336
|
}
|
|
1247
1337
|
function te() {
|
|
1248
|
-
|
|
1249
|
-
var
|
|
1250
|
-
return (
|
|
1338
|
+
p(), e.spy ? ie() : V(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && le(() => {
|
|
1339
|
+
var w;
|
|
1340
|
+
return (w = Q.value) == null ? void 0 : w.focus();
|
|
1251
1341
|
});
|
|
1252
1342
|
}
|
|
1253
1343
|
function de() {
|
|
1254
1344
|
g(), e.spy && (clearTimeout(R), R = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
|
|
1255
1345
|
}
|
|
1256
|
-
function
|
|
1346
|
+
function $e() {
|
|
1257
1347
|
e.persistent || G();
|
|
1258
1348
|
}
|
|
1259
1349
|
return Ke(() => {
|
|
1260
|
-
|
|
1261
|
-
}),
|
|
1350
|
+
le(h);
|
|
1351
|
+
}), ft(() => {
|
|
1262
1352
|
q(), de();
|
|
1263
1353
|
}), oe(
|
|
1264
|
-
|
|
1265
|
-
(
|
|
1266
|
-
|
|
1354
|
+
n,
|
|
1355
|
+
(w) => {
|
|
1356
|
+
le(() => w ? te() : de());
|
|
1267
1357
|
},
|
|
1268
1358
|
{ immediate: !0 }
|
|
1269
|
-
), (
|
|
1270
|
-
disabled: !
|
|
1359
|
+
), (w, me) => (r(), I(pt, {
|
|
1360
|
+
disabled: !n.value && !a.animating || e.inline,
|
|
1271
1361
|
to: e.attach
|
|
1272
1362
|
}, [
|
|
1273
|
-
|
|
1363
|
+
d.value ? (r(), u("div", {
|
|
1274
1364
|
key: 0,
|
|
1275
1365
|
class: T([
|
|
1276
1366
|
e.backdropClass,
|
|
1277
1367
|
"q-overlay__underlay",
|
|
1278
1368
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1279
1369
|
])
|
|
1280
|
-
}, null, 2)) :
|
|
1281
|
-
M(
|
|
1370
|
+
}, null, 2)) : _("", !0),
|
|
1371
|
+
M(mt, {
|
|
1282
1372
|
name: e.transition,
|
|
1283
1373
|
appear: "",
|
|
1284
1374
|
onLeave: ae
|
|
1285
1375
|
}, {
|
|
1286
|
-
default:
|
|
1287
|
-
|
|
1376
|
+
default: k(() => [
|
|
1377
|
+
n.value ? (r(), u("div", {
|
|
1288
1378
|
key: 0,
|
|
1289
1379
|
class: T(s.value),
|
|
1290
|
-
style:
|
|
1380
|
+
style: pe($.value)
|
|
1291
1381
|
}, [
|
|
1292
|
-
|
|
1382
|
+
x("div", Z({
|
|
1293
1383
|
class: "q-overlay__content",
|
|
1294
1384
|
ref_key: "overlayRef",
|
|
1295
|
-
ref:
|
|
1385
|
+
ref: Q,
|
|
1296
1386
|
tabindex: "-1",
|
|
1297
|
-
role:
|
|
1298
|
-
},
|
|
1299
|
-
onKeydown:
|
|
1300
|
-
onBlur:
|
|
1387
|
+
role: d.value ? "dialog" : void 0
|
|
1388
|
+
}, w.$attrs, {
|
|
1389
|
+
onKeydown: Be($e, ["escape"]),
|
|
1390
|
+
onBlur: $e
|
|
1301
1391
|
}), [
|
|
1302
|
-
e.arrow ? (r(),
|
|
1392
|
+
e.arrow ? (r(), u("div", {
|
|
1303
1393
|
key: 0,
|
|
1304
1394
|
ref_key: "arrowRef",
|
|
1305
1395
|
ref: O,
|
|
1306
1396
|
role: "presentation",
|
|
1307
1397
|
class: "q-overlay__arrow",
|
|
1308
|
-
style:
|
|
1309
|
-
}, null, 4)) :
|
|
1310
|
-
|
|
1311
|
-
], 16,
|
|
1312
|
-
], 6)) :
|
|
1398
|
+
style: pe(B.value)
|
|
1399
|
+
}, null, 4)) : _("", !0),
|
|
1400
|
+
v(w.$slots, "default")
|
|
1401
|
+
], 16, Bo)
|
|
1402
|
+
], 6)) : _("", !0)
|
|
1313
1403
|
]),
|
|
1314
1404
|
_: 3
|
|
1315
1405
|
}, 8, ["name"])
|
|
1316
1406
|
], 8, ["disabled", "to"]));
|
|
1317
1407
|
}
|
|
1318
|
-
}), ye = C(
|
|
1408
|
+
}), ye = C(So), Co = ["id"], To = {
|
|
1319
1409
|
key: 0,
|
|
1320
1410
|
class: "q-field__label"
|
|
1321
|
-
},
|
|
1411
|
+
}, Vo = ["for"], Eo = {
|
|
1322
1412
|
key: 0,
|
|
1323
1413
|
class: "q-field__prepend"
|
|
1324
|
-
},
|
|
1414
|
+
}, Do = {
|
|
1325
1415
|
key: 1,
|
|
1326
1416
|
class: "q-field__append"
|
|
1327
|
-
},
|
|
1417
|
+
}, Ao = {
|
|
1328
1418
|
key: 1,
|
|
1329
1419
|
class: "q-field__extras"
|
|
1330
|
-
},
|
|
1420
|
+
}, Qo = /* @__PURE__ */ S({
|
|
1331
1421
|
inheritAttrs: !1,
|
|
1332
1422
|
__name: "QField",
|
|
1333
1423
|
props: {
|
|
@@ -1341,11 +1431,11 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1341
1431
|
class: { default: void 0 }
|
|
1342
1432
|
},
|
|
1343
1433
|
setup(o, { expose: t }) {
|
|
1344
|
-
const e = o,
|
|
1434
|
+
const e = o, l = fe(e.id), n = D(null), s = y(() => e.required && !e.readonly && !e.disabled);
|
|
1345
1435
|
return t({
|
|
1346
|
-
fieldRef:
|
|
1347
|
-
}), (
|
|
1348
|
-
id: m(
|
|
1436
|
+
fieldRef: n
|
|
1437
|
+
}), (d, a) => (r(), u("div", {
|
|
1438
|
+
id: m(l),
|
|
1349
1439
|
class: T([
|
|
1350
1440
|
"q-field",
|
|
1351
1441
|
`q-field--${e.size}`,
|
|
@@ -1357,34 +1447,34 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1357
1447
|
e.class
|
|
1358
1448
|
])
|
|
1359
1449
|
}, [
|
|
1360
|
-
e.label ? (r(),
|
|
1361
|
-
|
|
1362
|
-
|
|
1450
|
+
e.label ? (r(), u("div", To, [
|
|
1451
|
+
v(d.$slots, "label.prepend"),
|
|
1452
|
+
x("label", {
|
|
1363
1453
|
for: e.for
|
|
1364
|
-
},
|
|
1365
|
-
|
|
1366
|
-
])) :
|
|
1367
|
-
|
|
1368
|
-
|
|
1454
|
+
}, A(e.label), 9, Vo),
|
|
1455
|
+
v(d.$slots, "label.append")
|
|
1456
|
+
])) : _("", !0),
|
|
1457
|
+
v(d.$slots, "control", {}, () => [
|
|
1458
|
+
x("div", Z({
|
|
1369
1459
|
class: "q-field__control",
|
|
1370
1460
|
ref_key: "fieldRef",
|
|
1371
|
-
ref:
|
|
1372
|
-
},
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
])) :
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
])) :
|
|
1461
|
+
ref: n
|
|
1462
|
+
}, d.$attrs), [
|
|
1463
|
+
d.$slots.prepend ? (r(), u("div", Eo, [
|
|
1464
|
+
v(d.$slots, "prepend")
|
|
1465
|
+
])) : _("", !0),
|
|
1466
|
+
v(d.$slots, "default"),
|
|
1467
|
+
d.$slots.append ? (r(), u("div", Do, [
|
|
1468
|
+
v(d.$slots, "append")
|
|
1469
|
+
])) : _("", !0)
|
|
1380
1470
|
], 16)
|
|
1381
1471
|
]),
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
])) :
|
|
1385
|
-
], 10,
|
|
1472
|
+
d.$slots.extras ? (r(), u("div", Ao, [
|
|
1473
|
+
v(d.$slots, "extras")
|
|
1474
|
+
])) : _("", !0)
|
|
1475
|
+
], 10, Co));
|
|
1386
1476
|
}
|
|
1387
|
-
}),
|
|
1477
|
+
}), Ie = C(Qo), zo = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Fo = /* @__PURE__ */ S({
|
|
1388
1478
|
inheritAttrs: !1,
|
|
1389
1479
|
__name: "QTextField",
|
|
1390
1480
|
props: /* @__PURE__ */ Y({
|
|
@@ -1405,38 +1495,38 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1405
1495
|
}),
|
|
1406
1496
|
emits: ["update:modelValue"],
|
|
1407
1497
|
setup(o, { expose: t }) {
|
|
1408
|
-
const e = o,
|
|
1498
|
+
const e = o, l = ee(o, "modelValue"), n = fe(e.id), s = D(null), d = D(null), a = y(
|
|
1409
1499
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1410
1500
|
);
|
|
1411
1501
|
return t({
|
|
1412
|
-
fieldRef:
|
|
1413
|
-
var
|
|
1414
|
-
return (
|
|
1502
|
+
fieldRef: y(() => {
|
|
1503
|
+
var i;
|
|
1504
|
+
return (i = s.value) == null ? void 0 : i.fieldRef;
|
|
1415
1505
|
}),
|
|
1416
|
-
inputRef:
|
|
1417
|
-
}), (
|
|
1506
|
+
inputRef: d
|
|
1507
|
+
}), (i, f) => (r(), I(m(Ie), {
|
|
1418
1508
|
ref_key: "fieldRef",
|
|
1419
1509
|
ref: s,
|
|
1420
1510
|
class: T(["q-text-field", e.class]),
|
|
1421
|
-
for: m(
|
|
1511
|
+
for: m(n),
|
|
1422
1512
|
label: e.label,
|
|
1423
1513
|
size: e.size,
|
|
1424
1514
|
readonly: e.readonly,
|
|
1425
1515
|
disabled: e.disabled,
|
|
1426
1516
|
required: e.required
|
|
1427
|
-
},
|
|
1428
|
-
"label.prepend":
|
|
1429
|
-
|
|
1517
|
+
}, Le({
|
|
1518
|
+
"label.prepend": k(() => [
|
|
1519
|
+
v(i.$slots, "label.prepend")
|
|
1430
1520
|
]),
|
|
1431
|
-
"label.append":
|
|
1432
|
-
|
|
1521
|
+
"label.append": k(() => [
|
|
1522
|
+
v(i.$slots, "label.append")
|
|
1433
1523
|
]),
|
|
1434
|
-
default:
|
|
1435
|
-
|
|
1436
|
-
"onUpdate:modelValue":
|
|
1524
|
+
default: k(() => [
|
|
1525
|
+
vt(x("input", Z({
|
|
1526
|
+
"onUpdate:modelValue": f[0] || (f[0] = ($) => l.value = $),
|
|
1437
1527
|
ref_key: "inputRef",
|
|
1438
|
-
ref:
|
|
1439
|
-
id: m(
|
|
1528
|
+
ref: d,
|
|
1529
|
+
id: m(n),
|
|
1440
1530
|
class: "q-text-field__input",
|
|
1441
1531
|
type: e.type,
|
|
1442
1532
|
role: e.role,
|
|
@@ -1445,53 +1535,53 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1445
1535
|
readonly: e.readonly,
|
|
1446
1536
|
disabled: e.disabled,
|
|
1447
1537
|
maxlength: e.maxLength
|
|
1448
|
-
},
|
|
1449
|
-
[
|
|
1538
|
+
}, i.$attrs), null, 16, zo), [
|
|
1539
|
+
[ht, l.value]
|
|
1450
1540
|
])
|
|
1451
1541
|
]),
|
|
1452
1542
|
_: 2
|
|
1453
1543
|
}, [
|
|
1454
|
-
|
|
1544
|
+
i.$slots.prepend ? {
|
|
1455
1545
|
name: "prepend",
|
|
1456
|
-
fn:
|
|
1457
|
-
|
|
1546
|
+
fn: k(() => [
|
|
1547
|
+
v(i.$slots, "prepend")
|
|
1458
1548
|
]),
|
|
1459
1549
|
key: "0"
|
|
1460
1550
|
} : void 0,
|
|
1461
|
-
|
|
1551
|
+
i.$slots.append ? {
|
|
1462
1552
|
name: "append",
|
|
1463
|
-
fn:
|
|
1464
|
-
|
|
1553
|
+
fn: k(() => [
|
|
1554
|
+
v(i.$slots, "append")
|
|
1465
1555
|
]),
|
|
1466
1556
|
key: "1"
|
|
1467
1557
|
} : void 0,
|
|
1468
|
-
|
|
1558
|
+
i.$slots.extras ? {
|
|
1469
1559
|
name: "extras",
|
|
1470
|
-
fn:
|
|
1471
|
-
|
|
1560
|
+
fn: k(() => [
|
|
1561
|
+
v(i.$slots, "extras")
|
|
1472
1562
|
]),
|
|
1473
1563
|
key: "2"
|
|
1474
1564
|
} : void 0
|
|
1475
1565
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1476
1566
|
}
|
|
1477
|
-
}), st = C(
|
|
1567
|
+
}), st = C(Fo), Mo = {
|
|
1478
1568
|
noData: "No data available",
|
|
1479
1569
|
clearValue: "Clear value",
|
|
1480
1570
|
showOptions: "Show options"
|
|
1481
|
-
},
|
|
1571
|
+
}, Po = {
|
|
1482
1572
|
chevron: {
|
|
1483
1573
|
icon: "chevron-down"
|
|
1484
1574
|
},
|
|
1485
1575
|
clear: {
|
|
1486
1576
|
icon: "close"
|
|
1487
1577
|
}
|
|
1488
|
-
},
|
|
1578
|
+
}, Oo = ["data-key"], Uo = {
|
|
1489
1579
|
key: 0,
|
|
1490
1580
|
class: "q-select__loader"
|
|
1491
|
-
},
|
|
1581
|
+
}, No = {
|
|
1492
1582
|
key: 2,
|
|
1493
1583
|
class: "q-select__loader"
|
|
1494
|
-
},
|
|
1584
|
+
}, Ho = /* @__PURE__ */ S({
|
|
1495
1585
|
inheritAttrs: !1,
|
|
1496
1586
|
__name: "QCombobox",
|
|
1497
1587
|
props: /* @__PURE__ */ Y({
|
|
@@ -1512,8 +1602,8 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1512
1602
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1513
1603
|
size: { default: void 0 },
|
|
1514
1604
|
class: { default: void 0 },
|
|
1515
|
-
icons: { default: () =>
|
|
1516
|
-
texts: { default: () =>
|
|
1605
|
+
icons: { default: () => Po },
|
|
1606
|
+
texts: { default: () => Mo }
|
|
1517
1607
|
}, {
|
|
1518
1608
|
modelValue: {
|
|
1519
1609
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1526,215 +1616,215 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1526
1616
|
}),
|
|
1527
1617
|
emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1528
1618
|
setup(o, { expose: t, emit: e }) {
|
|
1529
|
-
const
|
|
1619
|
+
const l = o, n = e, s = ee(o, "modelValue"), d = ee(o, "open"), a = ee(o, "search"), i = D(void 0), f = D(null), $ = D(null), B = D(null), O = D(null);
|
|
1530
1620
|
Ke(W);
|
|
1531
|
-
const
|
|
1621
|
+
const Q = y(() => l.clearable && !l.readonly && !l.disabled), V = y(() => {
|
|
1532
1622
|
var c;
|
|
1533
|
-
return
|
|
1534
|
-
(
|
|
1623
|
+
return l.filterMode === "manual" || !G.value ? l.items : (c = l.items) == null ? void 0 : c.filter(
|
|
1624
|
+
(L) => L[l.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1535
1625
|
);
|
|
1536
|
-
}),
|
|
1626
|
+
}), b = y(() => {
|
|
1537
1627
|
var c;
|
|
1538
|
-
return (c =
|
|
1539
|
-
}), E =
|
|
1540
|
-
const c =
|
|
1628
|
+
return (c = l.items) == null ? void 0 : c.find((L) => L[l.itemValue] === s.value);
|
|
1629
|
+
}), E = y(() => b.value === void 0), P = y(() => {
|
|
1630
|
+
const c = i.value;
|
|
1541
1631
|
if (c !== void 0 && V.value[c])
|
|
1542
1632
|
return V.value[c];
|
|
1543
|
-
}),
|
|
1544
|
-
var
|
|
1545
|
-
if (
|
|
1633
|
+
}), z = y(() => {
|
|
1634
|
+
var L;
|
|
1635
|
+
if (i.value === void 0)
|
|
1546
1636
|
return;
|
|
1547
|
-
const c = (
|
|
1637
|
+
const c = (L = $.value) == null ? void 0 : L.getItem(i.value);
|
|
1548
1638
|
return c == null ? void 0 : c.id;
|
|
1549
|
-
}), G =
|
|
1639
|
+
}), G = y(() => {
|
|
1550
1640
|
var c;
|
|
1551
|
-
return a.value.length > 0 && a.value !== ((c =
|
|
1641
|
+
return a.value.length > 0 && a.value !== ((c = b.value) == null ? void 0 : c[l.itemLabel]);
|
|
1552
1642
|
});
|
|
1553
1643
|
function se(c) {
|
|
1554
|
-
s.value = c,
|
|
1644
|
+
s.value = c, H();
|
|
1555
1645
|
}
|
|
1556
1646
|
function W() {
|
|
1557
|
-
var
|
|
1558
|
-
const c = ((
|
|
1647
|
+
var L;
|
|
1648
|
+
const c = ((L = b.value) == null ? void 0 : L[l.itemLabel]) || "";
|
|
1559
1649
|
a.value !== c && (a.value = c);
|
|
1560
1650
|
}
|
|
1561
1651
|
function ae() {
|
|
1562
|
-
|
|
1652
|
+
d.value || l.readonly || l.disabled || (n("before-show"), d.value = !0, de());
|
|
1563
1653
|
}
|
|
1564
|
-
function
|
|
1565
|
-
|
|
1654
|
+
function H() {
|
|
1655
|
+
d.value && (n("before-hide"), d.value = !1, i.value = void 0);
|
|
1566
1656
|
}
|
|
1567
1657
|
function J() {
|
|
1568
|
-
|
|
1658
|
+
d.value ? H() : q();
|
|
1569
1659
|
}
|
|
1570
|
-
function
|
|
1571
|
-
|
|
1660
|
+
function h() {
|
|
1661
|
+
Q.value && (s.value = l.emptyValue, i.value = void 0, de());
|
|
1572
1662
|
}
|
|
1573
1663
|
function q() {
|
|
1574
|
-
if (ae(),
|
|
1575
|
-
const c = V.value.indexOf(
|
|
1576
|
-
c !== -1 &&
|
|
1664
|
+
if (ae(), b.value !== void 0) {
|
|
1665
|
+
const c = V.value.indexOf(b.value);
|
|
1666
|
+
c !== -1 && le(() => X(c));
|
|
1577
1667
|
}
|
|
1578
1668
|
}
|
|
1579
|
-
function
|
|
1580
|
-
var
|
|
1581
|
-
if (!(!c.key ||
|
|
1669
|
+
function p(c) {
|
|
1670
|
+
var L, F;
|
|
1671
|
+
if (!(!c.key || l.readonly || l.disabled))
|
|
1582
1672
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
|
|
1583
|
-
W(),
|
|
1673
|
+
W(), d.value && H();
|
|
1584
1674
|
else if (["ArrowDown", "ArrowUp"].includes(c.key))
|
|
1585
|
-
|
|
1586
|
-
if (
|
|
1675
|
+
d.value ? le(() => {
|
|
1676
|
+
if (i.value === void 0)
|
|
1587
1677
|
g();
|
|
1588
1678
|
else {
|
|
1589
1679
|
const K = c.key === "ArrowDown" ? "next" : "prev";
|
|
1590
|
-
ie(
|
|
1680
|
+
ie(i.value, K);
|
|
1591
1681
|
}
|
|
1592
|
-
}) : (ae(),
|
|
1682
|
+
}) : (ae(), le(() => {
|
|
1593
1683
|
c.key === "ArrowDown" ? g() : R();
|
|
1594
1684
|
}));
|
|
1595
1685
|
else if (c.key === "Enter") {
|
|
1596
1686
|
if (P.value === void 0) return;
|
|
1597
|
-
se(P.value[
|
|
1598
|
-
} else c.key === "Home" ?
|
|
1687
|
+
se(P.value[l.itemValue]);
|
|
1688
|
+
} else c.key === "Home" ? i.value = (L = $.value) == null ? void 0 : L.getFirstFocusableItemIndex() : c.key === "End" ? i.value = (F = $.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && ae();
|
|
1599
1689
|
}
|
|
1600
1690
|
function g() {
|
|
1601
|
-
var c,
|
|
1691
|
+
var c, L;
|
|
1602
1692
|
if (E.value)
|
|
1603
|
-
|
|
1693
|
+
i.value = (L = $.value) == null ? void 0 : L.getFirstFocusableItemIndex();
|
|
1604
1694
|
else {
|
|
1605
1695
|
const F = V.value.findIndex(
|
|
1606
|
-
(K) => K[
|
|
1696
|
+
(K) => K[l.itemValue] === s.value
|
|
1607
1697
|
);
|
|
1608
|
-
F === -1 ?
|
|
1698
|
+
F === -1 ? i.value = (c = $.value) == null ? void 0 : c.getFirstFocusableItemIndex() : i.value = F;
|
|
1609
1699
|
}
|
|
1610
1700
|
}
|
|
1611
1701
|
function R() {
|
|
1612
1702
|
var c;
|
|
1613
|
-
|
|
1703
|
+
i.value = (c = $.value) == null ? void 0 : c.getLastFocusableItemIndex();
|
|
1614
1704
|
}
|
|
1615
|
-
function ie(c,
|
|
1705
|
+
function ie(c, L) {
|
|
1616
1706
|
var F;
|
|
1617
|
-
|
|
1707
|
+
i.value = (F = $.value) == null ? void 0 : F.getAdjacentItemIndex(c, L);
|
|
1618
1708
|
}
|
|
1619
1709
|
function te(c) {
|
|
1620
1710
|
var ve, De, Ae, Qe;
|
|
1621
|
-
const
|
|
1622
|
-
if (
|
|
1711
|
+
const L = ((ve = B == null ? void 0 : B.value) == null ? void 0 : ve.$el) === c.relatedTarget, F = (Ae = (De = f == null ? void 0 : f.value) == null ? void 0 : De.$el) == null ? void 0 : Ae.contains(c.relatedTarget), K = (Qe = O == null ? void 0 : O.value) == null ? void 0 : Qe.contains(c.relatedTarget);
|
|
1712
|
+
if (L || K || F) {
|
|
1623
1713
|
c.preventDefault(), c.stopPropagation();
|
|
1624
1714
|
return;
|
|
1625
1715
|
}
|
|
1626
|
-
|
|
1716
|
+
H(), Q.value && !a.value && (s.value = l.emptyValue), W();
|
|
1627
1717
|
}
|
|
1628
1718
|
function de() {
|
|
1629
|
-
var c,
|
|
1630
|
-
(
|
|
1719
|
+
var c, L;
|
|
1720
|
+
(L = (c = f.value) == null ? void 0 : c.inputRef) == null || L.focus();
|
|
1631
1721
|
}
|
|
1632
|
-
function
|
|
1722
|
+
function $e() {
|
|
1633
1723
|
de();
|
|
1634
1724
|
}
|
|
1635
|
-
function
|
|
1636
|
-
|
|
1725
|
+
function w() {
|
|
1726
|
+
n("show");
|
|
1637
1727
|
}
|
|
1638
1728
|
function me() {
|
|
1639
|
-
|
|
1729
|
+
n("hide");
|
|
1640
1730
|
}
|
|
1641
1731
|
function X(c) {
|
|
1642
1732
|
var F;
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1733
|
+
const L = (F = $.value) == null ? void 0 : F.getItem(c);
|
|
1734
|
+
$.value && ($.value.$el.scrollTop = L == null ? void 0 : L.offsetTop);
|
|
1645
1735
|
}
|
|
1646
1736
|
return oe(s, W), oe(
|
|
1647
|
-
() =>
|
|
1648
|
-
(c,
|
|
1737
|
+
() => l.items,
|
|
1738
|
+
(c, L) => {
|
|
1649
1739
|
if (!E.value) {
|
|
1650
|
-
const F =
|
|
1651
|
-
a.value === (F == null ? void 0 : F[
|
|
1740
|
+
const F = L.find((K) => K[l.itemValue] === s.value);
|
|
1741
|
+
a.value === (F == null ? void 0 : F[l.itemLabel]) && W();
|
|
1652
1742
|
}
|
|
1653
1743
|
},
|
|
1654
1744
|
{ deep: !0 }
|
|
1655
|
-
), oe(
|
|
1745
|
+
), oe(i, (c) => {
|
|
1656
1746
|
c !== void 0 && X(c);
|
|
1657
1747
|
}), oe(a, (c) => {
|
|
1658
|
-
c &&
|
|
1748
|
+
c && d.value && l.selectionMode === "automatic" && le(g);
|
|
1659
1749
|
}), oe(
|
|
1660
|
-
() =>
|
|
1750
|
+
() => l.loading,
|
|
1661
1751
|
(c) => {
|
|
1662
|
-
!c &&
|
|
1752
|
+
!c && d.value && le(g);
|
|
1663
1753
|
}
|
|
1664
1754
|
), t({
|
|
1665
|
-
triggerEl:
|
|
1666
|
-
}), (c,
|
|
1755
|
+
triggerEl: f
|
|
1756
|
+
}), (c, L) => {
|
|
1667
1757
|
var F;
|
|
1668
|
-
return r(),
|
|
1758
|
+
return r(), u(U, null, [
|
|
1669
1759
|
M(m(st), Z({
|
|
1670
1760
|
modelValue: a.value,
|
|
1671
|
-
"onUpdate:modelValue":
|
|
1672
|
-
id:
|
|
1673
|
-
label:
|
|
1674
|
-
required:
|
|
1761
|
+
"onUpdate:modelValue": L[0] || (L[0] = (K) => a.value = K),
|
|
1762
|
+
id: l.id,
|
|
1763
|
+
label: l.label,
|
|
1764
|
+
required: l.required,
|
|
1675
1765
|
ref_key: "triggerEl",
|
|
1676
|
-
ref:
|
|
1766
|
+
ref: f,
|
|
1677
1767
|
role: "combobox",
|
|
1678
|
-
placeholder:
|
|
1768
|
+
placeholder: l.placeholder,
|
|
1679
1769
|
class: [
|
|
1680
1770
|
"q-combobox",
|
|
1681
1771
|
{
|
|
1682
|
-
"q-combobox--readonly":
|
|
1683
|
-
"q-combobox--disabled":
|
|
1684
|
-
"q-combobox--expanded":
|
|
1772
|
+
"q-combobox--readonly": l.readonly,
|
|
1773
|
+
"q-combobox--disabled": l.disabled,
|
|
1774
|
+
"q-combobox--expanded": d.value
|
|
1685
1775
|
},
|
|
1686
|
-
|
|
1776
|
+
l.class
|
|
1687
1777
|
],
|
|
1688
|
-
readonly:
|
|
1689
|
-
disabled:
|
|
1690
|
-
"data-loading":
|
|
1778
|
+
readonly: l.readonly,
|
|
1779
|
+
disabled: l.disabled,
|
|
1780
|
+
"data-loading": l.loading,
|
|
1691
1781
|
autocomplete: "off",
|
|
1692
|
-
"aria-expanded":
|
|
1782
|
+
"aria-expanded": d.value,
|
|
1693
1783
|
"aria-haspopup": "listbox",
|
|
1694
1784
|
"aria-autocomplete": "list",
|
|
1695
|
-
"aria-activedescendant":
|
|
1696
|
-
size:
|
|
1785
|
+
"aria-activedescendant": z.value,
|
|
1786
|
+
size: l.size
|
|
1697
1787
|
}, c.$attrs, {
|
|
1698
1788
|
onClick: q,
|
|
1699
1789
|
onFocusout: te,
|
|
1700
|
-
onKeydown: ce(
|
|
1701
|
-
}),
|
|
1702
|
-
"label.prepend":
|
|
1703
|
-
|
|
1790
|
+
onKeydown: ce(p, ["stop"])
|
|
1791
|
+
}), Le({
|
|
1792
|
+
"label.prepend": k(() => [
|
|
1793
|
+
v(c.$slots, "label.prepend")
|
|
1704
1794
|
]),
|
|
1705
|
-
"label.append":
|
|
1706
|
-
|
|
1795
|
+
"label.append": k(() => [
|
|
1796
|
+
v(c.$slots, "label.append")
|
|
1707
1797
|
]),
|
|
1708
|
-
append:
|
|
1709
|
-
|
|
1710
|
-
|
|
1798
|
+
append: k(() => [
|
|
1799
|
+
v(c.$slots, "append"),
|
|
1800
|
+
Q.value && a.value ? (r(), I(m(re), {
|
|
1711
1801
|
key: 0,
|
|
1712
1802
|
class: "q-combobox__clear",
|
|
1713
|
-
"aria-label":
|
|
1803
|
+
"aria-label": l.texts.clearValue,
|
|
1714
1804
|
"b-style": "plain",
|
|
1715
1805
|
borderless: "",
|
|
1716
1806
|
tabindex: "-1",
|
|
1717
|
-
onClick:
|
|
1807
|
+
onClick: h
|
|
1718
1808
|
}, {
|
|
1719
|
-
default:
|
|
1720
|
-
M(m(
|
|
1809
|
+
default: k(() => [
|
|
1810
|
+
M(m(N), j(ne(l.icons.clear)), null, 16)
|
|
1721
1811
|
]),
|
|
1722
1812
|
_: 1
|
|
1723
|
-
}, 8, ["aria-label"])) :
|
|
1724
|
-
|
|
1813
|
+
}, 8, ["aria-label"])) : _("", !0),
|
|
1814
|
+
l.readonly ? _("", !0) : (r(), I(m(re), {
|
|
1725
1815
|
key: 1,
|
|
1726
1816
|
ref_key: "toggleRef",
|
|
1727
|
-
ref:
|
|
1817
|
+
ref: B,
|
|
1728
1818
|
class: "q-combobox__chevron",
|
|
1729
|
-
"aria-label":
|
|
1819
|
+
"aria-label": l.texts.showOptions,
|
|
1730
1820
|
"b-style": "plain",
|
|
1731
1821
|
borderless: "",
|
|
1732
1822
|
tabindex: "-1",
|
|
1733
|
-
disabled:
|
|
1823
|
+
disabled: l.disabled,
|
|
1734
1824
|
onMousedown: ce(J, ["stop", "prevent"])
|
|
1735
1825
|
}, {
|
|
1736
|
-
default:
|
|
1737
|
-
M(m(
|
|
1826
|
+
default: k(() => [
|
|
1827
|
+
M(m(N), j(ne(l.icons.chevron)), null, 16)
|
|
1738
1828
|
]),
|
|
1739
1829
|
_: 1
|
|
1740
1830
|
}, 8, ["aria-label", "disabled"]))
|
|
@@ -1743,71 +1833,71 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1743
1833
|
}, [
|
|
1744
1834
|
c.$slots.prepend ? {
|
|
1745
1835
|
name: "prepend",
|
|
1746
|
-
fn:
|
|
1747
|
-
|
|
1836
|
+
fn: k(() => [
|
|
1837
|
+
v(c.$slots, "prepend")
|
|
1748
1838
|
]),
|
|
1749
1839
|
key: "0"
|
|
1750
1840
|
} : void 0,
|
|
1751
1841
|
c.$slots.extras ? {
|
|
1752
1842
|
name: "extras",
|
|
1753
|
-
fn:
|
|
1754
|
-
|
|
1843
|
+
fn: k(() => [
|
|
1844
|
+
v(c.$slots, "extras")
|
|
1755
1845
|
]),
|
|
1756
1846
|
key: "1"
|
|
1757
1847
|
} : void 0
|
|
1758
1848
|
]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1759
1849
|
M(m(ye), {
|
|
1760
|
-
modelValue:
|
|
1761
|
-
"onUpdate:modelValue":
|
|
1850
|
+
modelValue: d.value,
|
|
1851
|
+
"onUpdate:modelValue": L[2] || (L[2] = (K) => d.value = K),
|
|
1762
1852
|
spy: "",
|
|
1763
1853
|
"non-modal": "",
|
|
1764
1854
|
trigger: "manual",
|
|
1765
1855
|
placement: "bottom-start",
|
|
1766
1856
|
width: "anchor",
|
|
1767
1857
|
offset: 4,
|
|
1768
|
-
anchor: (F =
|
|
1769
|
-
onEnter:
|
|
1858
|
+
anchor: (F = f.value) == null ? void 0 : F.$el,
|
|
1859
|
+
onEnter: w,
|
|
1770
1860
|
onLeave: me
|
|
1771
1861
|
}, {
|
|
1772
|
-
default:
|
|
1862
|
+
default: k(() => {
|
|
1773
1863
|
var K;
|
|
1774
1864
|
return [
|
|
1775
|
-
|
|
1865
|
+
x("div", {
|
|
1776
1866
|
ref_key: "contentRef",
|
|
1777
1867
|
ref: O,
|
|
1778
1868
|
class: "q-select__body",
|
|
1779
1869
|
"data-testid": "combobox-dropdown",
|
|
1780
|
-
"data-key":
|
|
1870
|
+
"data-key": l.id,
|
|
1781
1871
|
onFocusout: te
|
|
1782
1872
|
}, [
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
M(m(
|
|
1873
|
+
v(c.$slots, "body.prepend"),
|
|
1874
|
+
l.loading ? (r(), u("div", Uo, [
|
|
1875
|
+
M(m(_e), { size: 24 })
|
|
1786
1876
|
])) : V.value.length ? (r(), I(m(Ee), {
|
|
1787
1877
|
key: 1,
|
|
1788
1878
|
ref_key: "listRef",
|
|
1789
|
-
ref:
|
|
1879
|
+
ref: $,
|
|
1790
1880
|
class: "q-select__items",
|
|
1791
1881
|
selectable: "",
|
|
1792
1882
|
modelValue: s.value,
|
|
1793
1883
|
"onUpdate:modelValue": [
|
|
1794
|
-
|
|
1884
|
+
L[1] || (L[1] = (ve) => s.value = ve),
|
|
1795
1885
|
se
|
|
1796
1886
|
],
|
|
1797
|
-
highlighted: (K = P.value) == null ? void 0 : K[
|
|
1887
|
+
highlighted: (K = P.value) == null ? void 0 : K[l.itemValue],
|
|
1798
1888
|
items: V.value,
|
|
1799
1889
|
groups: c.groups,
|
|
1800
|
-
"item-label":
|
|
1801
|
-
"item-value":
|
|
1802
|
-
onMouseup:
|
|
1890
|
+
"item-label": l.itemLabel,
|
|
1891
|
+
"item-value": l.itemValue,
|
|
1892
|
+
onMouseup: $e
|
|
1803
1893
|
}, {
|
|
1804
|
-
item:
|
|
1805
|
-
|
|
1894
|
+
item: k(({ item: ve }) => [
|
|
1895
|
+
v(c.$slots, "item", { item: ve })
|
|
1806
1896
|
]),
|
|
1807
1897
|
_: 3
|
|
1808
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(),
|
|
1809
|
-
|
|
1810
|
-
], 40,
|
|
1898
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), u("div", No, A(l.texts.noData), 1)),
|
|
1899
|
+
v(c.$slots, "body.append")
|
|
1900
|
+
], 40, Oo)
|
|
1811
1901
|
];
|
|
1812
1902
|
}),
|
|
1813
1903
|
_: 3
|
|
@@ -1815,7 +1905,7 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1815
1905
|
], 64);
|
|
1816
1906
|
};
|
|
1817
1907
|
}
|
|
1818
|
-
}),
|
|
1908
|
+
}), Go = C(Ho), Ro = [
|
|
1819
1909
|
{
|
|
1820
1910
|
id: "button",
|
|
1821
1911
|
icon: {
|
|
@@ -1826,47 +1916,47 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1826
1916
|
label: "Ok"
|
|
1827
1917
|
}
|
|
1828
1918
|
}
|
|
1829
|
-
],
|
|
1919
|
+
], Ko = {
|
|
1830
1920
|
icon: "check-circle-outline"
|
|
1831
|
-
},
|
|
1921
|
+
}, jo = {
|
|
1832
1922
|
close: {
|
|
1833
1923
|
icon: "close"
|
|
1834
1924
|
}
|
|
1835
|
-
},
|
|
1925
|
+
}, Wo = { class: "q-dialog__header" }, Xo = { class: "q-dialog__header-title" }, Yo = { class: "q-dialog__body" }, Zo = {
|
|
1836
1926
|
key: 0,
|
|
1837
1927
|
class: "q-dialog__body-icon"
|
|
1838
|
-
},
|
|
1928
|
+
}, Jo = { class: "q-dialog__body-text" }, el = ["innerHTML"], tl = { key: 1 }, ol = { class: "q-dialog__body-actions" }, ll = /* @__PURE__ */ S({
|
|
1839
1929
|
__name: "QDialog",
|
|
1840
1930
|
props: /* @__PURE__ */ Y({
|
|
1841
1931
|
text: { default: "" },
|
|
1842
1932
|
attach: { default: "body" },
|
|
1843
1933
|
inline: { type: Boolean },
|
|
1844
1934
|
backdropBlur: { type: Boolean, default: !0 },
|
|
1845
|
-
buttons: { default: () =>
|
|
1935
|
+
buttons: { default: () => Ro },
|
|
1846
1936
|
dismissible: { type: Boolean },
|
|
1847
1937
|
html: { type: Boolean, default: !0 },
|
|
1848
|
-
icon: { default: () =>
|
|
1938
|
+
icon: { default: () => Ko },
|
|
1849
1939
|
id: { default: void 0 },
|
|
1850
1940
|
title: { default: "" },
|
|
1851
1941
|
class: { default: void 0 },
|
|
1852
|
-
icons: { default: () =>
|
|
1942
|
+
icons: { default: () => jo }
|
|
1853
1943
|
}, {
|
|
1854
1944
|
modelValue: { type: Boolean },
|
|
1855
1945
|
modelModifiers: {}
|
|
1856
1946
|
}),
|
|
1857
1947
|
emits: ["update:modelValue"],
|
|
1858
1948
|
setup(o) {
|
|
1859
|
-
const t = o, e = ee(o, "modelValue"),
|
|
1949
|
+
const t = o, e = ee(o, "modelValue"), l = fe(t.id), n = y(() => ["q-dialog", t.class]);
|
|
1860
1950
|
function s() {
|
|
1861
1951
|
e.value = !1;
|
|
1862
1952
|
}
|
|
1863
|
-
function
|
|
1864
|
-
var
|
|
1865
|
-
(
|
|
1953
|
+
function d(a) {
|
|
1954
|
+
var i;
|
|
1955
|
+
(i = a.action) == null || i.call(a), s();
|
|
1866
1956
|
}
|
|
1867
|
-
return (a,
|
|
1957
|
+
return (a, i) => (r(), I(m(ye), {
|
|
1868
1958
|
"model-value": e.value,
|
|
1869
|
-
id: m(
|
|
1959
|
+
id: m(l),
|
|
1870
1960
|
inline: t.inline,
|
|
1871
1961
|
attach: t.attach,
|
|
1872
1962
|
"backdrop-blur": t.backdropBlur,
|
|
@@ -1874,49 +1964,49 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1874
1964
|
"scroll-lock": "",
|
|
1875
1965
|
persistent: ""
|
|
1876
1966
|
}, {
|
|
1877
|
-
default:
|
|
1878
|
-
|
|
1879
|
-
class: T(
|
|
1967
|
+
default: k(() => [
|
|
1968
|
+
x("div", {
|
|
1969
|
+
class: T(n.value)
|
|
1880
1970
|
}, [
|
|
1881
|
-
|
|
1882
|
-
|
|
1971
|
+
x("div", Wo, [
|
|
1972
|
+
x("span", Xo, A(t.title), 1),
|
|
1883
1973
|
t.dismissible ? (r(), I(m(re), {
|
|
1884
1974
|
key: 0,
|
|
1885
1975
|
"b-style": "tertiary",
|
|
1886
1976
|
onClick: s
|
|
1887
1977
|
}, {
|
|
1888
|
-
default:
|
|
1889
|
-
M(m(
|
|
1978
|
+
default: k(() => [
|
|
1979
|
+
M(m(N), j(ne(t.icons.close)), null, 16)
|
|
1890
1980
|
]),
|
|
1891
1981
|
_: 1
|
|
1892
|
-
})) :
|
|
1982
|
+
})) : _("", !0)
|
|
1893
1983
|
]),
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
t.icon ? (r(),
|
|
1898
|
-
M(m(
|
|
1899
|
-
])) :
|
|
1984
|
+
v(a.$slots, "body.content", {}, () => [
|
|
1985
|
+
x("div", Yo, [
|
|
1986
|
+
v(a.$slots, "body.icon", {}, () => [
|
|
1987
|
+
t.icon ? (r(), u("span", Zo, [
|
|
1988
|
+
M(m(N), j(ne(t.icon)), null, 16)
|
|
1989
|
+
])) : _("", !0)
|
|
1900
1990
|
]),
|
|
1901
|
-
|
|
1902
|
-
t.html ? (r(),
|
|
1991
|
+
x("div", Jo, [
|
|
1992
|
+
t.html ? (r(), u("span", {
|
|
1903
1993
|
key: 0,
|
|
1904
1994
|
innerHTML: t.text
|
|
1905
|
-
}, null, 8,
|
|
1995
|
+
}, null, 8, el)) : (r(), u("span", tl, A(t.text), 1))
|
|
1906
1996
|
]),
|
|
1907
|
-
|
|
1997
|
+
v(a.$slots, "body.append")
|
|
1908
1998
|
])
|
|
1909
1999
|
]),
|
|
1910
|
-
|
|
1911
|
-
(r(!0),
|
|
1912
|
-
key:
|
|
1913
|
-
onClick: () =>
|
|
2000
|
+
x("div", ol, [
|
|
2001
|
+
(r(!0), u(U, null, he(t.buttons, (f) => (r(), I(m(re), Z({ ref_for: !0 }, f.props, {
|
|
2002
|
+
key: f.id,
|
|
2003
|
+
onClick: () => d(f)
|
|
1914
2004
|
}), {
|
|
1915
|
-
default:
|
|
1916
|
-
|
|
2005
|
+
default: k(() => [
|
|
2006
|
+
f.icon ? (r(), I(m(N), Z({
|
|
1917
2007
|
key: 0,
|
|
1918
2008
|
ref_for: !0
|
|
1919
|
-
},
|
|
2009
|
+
}, f.icon), null, 16)) : _("", !0)
|
|
1920
2010
|
]),
|
|
1921
2011
|
_: 2
|
|
1922
2012
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -1926,13 +2016,13 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1926
2016
|
_: 3
|
|
1927
2017
|
}, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
|
|
1928
2018
|
}
|
|
1929
|
-
}),
|
|
2019
|
+
}), nl = C(ll), sl = {
|
|
1930
2020
|
key: 0,
|
|
1931
2021
|
class: "q-input-group__prepend"
|
|
1932
|
-
},
|
|
2022
|
+
}, al = { key: 0 }, il = {
|
|
1933
2023
|
key: 1,
|
|
1934
2024
|
class: "q-input-group__append"
|
|
1935
|
-
},
|
|
2025
|
+
}, rl = { key: 0 }, dl = /* @__PURE__ */ S({
|
|
1936
2026
|
__name: "QInputGroup",
|
|
1937
2027
|
props: {
|
|
1938
2028
|
id: { default: void 0 },
|
|
@@ -1949,57 +2039,57 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
1949
2039
|
QField: {
|
|
1950
2040
|
size: "block"
|
|
1951
2041
|
}
|
|
1952
|
-
}), (e,
|
|
2042
|
+
}), (e, l) => (r(), I(m(Ie), {
|
|
1953
2043
|
id: t.id,
|
|
1954
2044
|
class: T(["q-input-group", t.class]),
|
|
1955
2045
|
label: t.label,
|
|
1956
2046
|
required: t.required,
|
|
1957
2047
|
size: t.size
|
|
1958
|
-
},
|
|
1959
|
-
default:
|
|
1960
|
-
e.$slots.prepend || t.prependIcon ? (r(),
|
|
1961
|
-
t.prependIcon ? (r(),
|
|
1962
|
-
M(m(
|
|
1963
|
-
])) :
|
|
1964
|
-
|
|
1965
|
-
])) :
|
|
1966
|
-
|
|
1967
|
-
e.$slots.append || t.appendIcon ? (r(),
|
|
1968
|
-
t.appendIcon ? (r(),
|
|
1969
|
-
M(m(
|
|
1970
|
-
])) :
|
|
1971
|
-
|
|
1972
|
-
])) :
|
|
2048
|
+
}, Le({
|
|
2049
|
+
default: k(() => [
|
|
2050
|
+
e.$slots.prepend || t.prependIcon ? (r(), u("div", sl, [
|
|
2051
|
+
t.prependIcon ? (r(), u("span", al, [
|
|
2052
|
+
M(m(N), j(ne(t.prependIcon)), null, 16)
|
|
2053
|
+
])) : _("", !0),
|
|
2054
|
+
v(e.$slots, "prepend")
|
|
2055
|
+
])) : _("", !0),
|
|
2056
|
+
v(e.$slots, "default"),
|
|
2057
|
+
e.$slots.append || t.appendIcon ? (r(), u("div", il, [
|
|
2058
|
+
t.appendIcon ? (r(), u("span", rl, [
|
|
2059
|
+
M(m(N), j(ne(t.appendIcon)), null, 16)
|
|
2060
|
+
])) : _("", !0),
|
|
2061
|
+
v(e.$slots, "append")
|
|
2062
|
+
])) : _("", !0)
|
|
1973
2063
|
]),
|
|
1974
2064
|
_: 2
|
|
1975
2065
|
}, [
|
|
1976
2066
|
e.$slots.extras ? {
|
|
1977
2067
|
name: "extras",
|
|
1978
|
-
fn:
|
|
1979
|
-
|
|
2068
|
+
fn: k(() => [
|
|
2069
|
+
v(e.$slots, "extras")
|
|
1980
2070
|
]),
|
|
1981
2071
|
key: "0"
|
|
1982
2072
|
} : void 0
|
|
1983
2073
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
1984
2074
|
}
|
|
1985
|
-
}),
|
|
2075
|
+
}), cl = C(dl), ul = /* @__PURE__ */ S({
|
|
1986
2076
|
__name: "QLineLoader",
|
|
1987
2077
|
props: {
|
|
1988
2078
|
class: { default: void 0 }
|
|
1989
2079
|
},
|
|
1990
2080
|
setup(o) {
|
|
1991
2081
|
const t = o;
|
|
1992
|
-
return (e,
|
|
2082
|
+
return (e, l) => (r(), u("div", {
|
|
1993
2083
|
class: T(["q-line-loader", t.class])
|
|
1994
2084
|
}, null, 2));
|
|
1995
2085
|
}
|
|
1996
|
-
}),
|
|
2086
|
+
}), fl = C(ul), pl = {
|
|
1997
2087
|
key: 0,
|
|
1998
2088
|
class: "q-popover__header"
|
|
1999
|
-
},
|
|
2089
|
+
}, ml = {
|
|
2000
2090
|
key: 1,
|
|
2001
2091
|
class: "q-popover__body"
|
|
2002
|
-
},
|
|
2092
|
+
}, vl = ["innerHTML"], hl = { key: 1 }, yl = /* @__PURE__ */ S({
|
|
2003
2093
|
inheritAttrs: !1,
|
|
2004
2094
|
__name: "QPopover",
|
|
2005
2095
|
props: /* @__PURE__ */ Y({
|
|
@@ -2019,9 +2109,9 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2019
2109
|
emits: ["update:modelValue"],
|
|
2020
2110
|
setup(o) {
|
|
2021
2111
|
const t = o, e = ee(o, "modelValue");
|
|
2022
|
-
return (
|
|
2112
|
+
return (l, n) => (r(), I(m(ye), {
|
|
2023
2113
|
modelValue: e.value,
|
|
2024
|
-
"onUpdate:modelValue":
|
|
2114
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => e.value = s),
|
|
2025
2115
|
class: "q-popover",
|
|
2026
2116
|
trigger: "click",
|
|
2027
2117
|
anchor: t.anchor,
|
|
@@ -2031,23 +2121,23 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2031
2121
|
disabled: t.disabled,
|
|
2032
2122
|
placement: t.placement
|
|
2033
2123
|
}, {
|
|
2034
|
-
default:
|
|
2035
|
-
t.title ||
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
])) :
|
|
2039
|
-
t.text ||
|
|
2040
|
-
t.html ? (r(),
|
|
2124
|
+
default: k(() => [
|
|
2125
|
+
t.title || l.$slots.header ? (r(), u("h3", pl, [
|
|
2126
|
+
ue(A(t.title) + " ", 1),
|
|
2127
|
+
v(l.$slots, "header")
|
|
2128
|
+
])) : _("", !0),
|
|
2129
|
+
t.text || l.$slots.body ? (r(), u("div", ml, [
|
|
2130
|
+
t.html ? (r(), u("span", {
|
|
2041
2131
|
key: 0,
|
|
2042
2132
|
innerHTML: t.text
|
|
2043
|
-
}, null, 8,
|
|
2044
|
-
|
|
2045
|
-
])) :
|
|
2133
|
+
}, null, 8, vl)) : (r(), u("span", hl, A(t.text), 1)),
|
|
2134
|
+
v(l.$slots, "body")
|
|
2135
|
+
])) : _("", !0)
|
|
2046
2136
|
]),
|
|
2047
2137
|
_: 3
|
|
2048
2138
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
2049
2139
|
}
|
|
2050
|
-
}),
|
|
2140
|
+
}), bl = C(yl), at = {
|
|
2051
2141
|
emptyMessage: "Select a field to view details."
|
|
2052
2142
|
}, it = {
|
|
2053
2143
|
open: {
|
|
@@ -2056,7 +2146,7 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2056
2146
|
close: {
|
|
2057
2147
|
icon: "plus-box"
|
|
2058
2148
|
}
|
|
2059
|
-
},
|
|
2149
|
+
}, gl = { class: "q-property-list__table" }, _l = /* @__PURE__ */ S({
|
|
2060
2150
|
__name: "QPropertyList",
|
|
2061
2151
|
props: {
|
|
2062
2152
|
fields: { default: () => [] },
|
|
@@ -2071,28 +2161,28 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2071
2161
|
},
|
|
2072
2162
|
emits: ["field-change"],
|
|
2073
2163
|
setup(o, { emit: t }) {
|
|
2074
|
-
const e = o,
|
|
2075
|
-
(
|
|
2076
|
-
) : [{ id: "", title: "" }]),
|
|
2164
|
+
const e = o, l = t, n = D(e.groups.map((b) => b.id)), s = D(void 0), d = D(null), a = y(() => e.groups.length ? e.groups.filter(
|
|
2165
|
+
(b) => e.fields.some((E) => E.group === b.id)
|
|
2166
|
+
) : [{ id: "", title: "" }]), i = y(() => [
|
|
2077
2167
|
e.class,
|
|
2078
2168
|
{
|
|
2079
2169
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2080
2170
|
}
|
|
2081
2171
|
]);
|
|
2082
|
-
function
|
|
2083
|
-
var
|
|
2084
|
-
(
|
|
2172
|
+
function f() {
|
|
2173
|
+
var b;
|
|
2174
|
+
(b = d.value) != null && b.contains(document.activeElement) || (s.value = void 0);
|
|
2085
2175
|
}
|
|
2086
|
-
function
|
|
2087
|
-
return
|
|
2176
|
+
function $(b) {
|
|
2177
|
+
return b ? e.fields.filter((E) => E.group === b) : e.fields;
|
|
2088
2178
|
}
|
|
2089
|
-
function
|
|
2090
|
-
const E =
|
|
2091
|
-
E === -1 ?
|
|
2179
|
+
function B(b) {
|
|
2180
|
+
const E = n.value.indexOf(b);
|
|
2181
|
+
E === -1 ? n.value.push(b) : n.value.splice(E, 1);
|
|
2092
2182
|
}
|
|
2093
|
-
function O(
|
|
2094
|
-
var
|
|
2095
|
-
const E =
|
|
2183
|
+
function O(b) {
|
|
2184
|
+
var z;
|
|
2185
|
+
const E = b.group && !n.value.includes(b.group), P = ((z = s.value) == null ? void 0 : z.id) === b.id;
|
|
2096
2186
|
return [
|
|
2097
2187
|
{
|
|
2098
2188
|
"q-property-list__row--closed": E,
|
|
@@ -2100,27 +2190,27 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2100
2190
|
}
|
|
2101
2191
|
];
|
|
2102
2192
|
}
|
|
2103
|
-
function
|
|
2104
|
-
s.value =
|
|
2193
|
+
function Q(b) {
|
|
2194
|
+
s.value = b;
|
|
2105
2195
|
}
|
|
2106
|
-
function V(
|
|
2107
|
-
e.readonly || (
|
|
2196
|
+
function V(b, E) {
|
|
2197
|
+
e.readonly || (b.props.readonly ?? !1) || (b.props.modelValue = E, l("field-change", b));
|
|
2108
2198
|
}
|
|
2109
|
-
return (
|
|
2199
|
+
return (b, E) => (r(), u("div", {
|
|
2110
2200
|
tabindex: "0",
|
|
2111
|
-
class: T(["q-property-list",
|
|
2201
|
+
class: T(["q-property-list", i.value]),
|
|
2112
2202
|
ref_key: "componentRoot",
|
|
2113
|
-
ref:
|
|
2114
|
-
onFocusout:
|
|
2203
|
+
ref: d,
|
|
2204
|
+
onFocusout: f
|
|
2115
2205
|
}, [
|
|
2116
|
-
|
|
2117
|
-
E[0] || (E[0] =
|
|
2118
|
-
|
|
2119
|
-
|
|
2206
|
+
x("table", gl, [
|
|
2207
|
+
E[0] || (E[0] = x("thead", { class: "q-property-list__header" }, [
|
|
2208
|
+
x("tr", null, [
|
|
2209
|
+
x("th", { colspan: "2" })
|
|
2120
2210
|
])
|
|
2121
2211
|
], -1)),
|
|
2122
|
-
|
|
2123
|
-
(r(!0),
|
|
2212
|
+
x("tbody", null, [
|
|
2213
|
+
(r(!0), u(U, null, he(a.value, (P) => (r(), u(U, {
|
|
2124
2214
|
key: P.id
|
|
2125
2215
|
}, [
|
|
2126
2216
|
P.title ? (r(), I(m(dt), {
|
|
@@ -2129,43 +2219,43 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2129
2219
|
title: P.title,
|
|
2130
2220
|
icons: e.icons,
|
|
2131
2221
|
"no-toggle": e.noToggle,
|
|
2132
|
-
onToggleGroup:
|
|
2133
|
-
}, null, 8, ["id", "title", "icons", "no-toggle"])) :
|
|
2134
|
-
(r(!0),
|
|
2135
|
-
key:
|
|
2136
|
-
class: T(O(
|
|
2137
|
-
field:
|
|
2222
|
+
onToggleGroup: B
|
|
2223
|
+
}, null, 8, ["id", "title", "icons", "no-toggle"])) : _("", !0),
|
|
2224
|
+
(r(!0), u(U, null, he($(P.id), (z) => (r(), I(m(rt), {
|
|
2225
|
+
key: z.id,
|
|
2226
|
+
class: T(O(z)),
|
|
2227
|
+
field: z,
|
|
2138
2228
|
readonly: e.readonly,
|
|
2139
|
-
onFocus:
|
|
2229
|
+
onFocus: Q,
|
|
2140
2230
|
onFieldChange: V
|
|
2141
2231
|
}, {
|
|
2142
|
-
default:
|
|
2143
|
-
|
|
2232
|
+
default: k(() => [
|
|
2233
|
+
v(b.$slots, z.id, { field: z })
|
|
2144
2234
|
]),
|
|
2145
2235
|
_: 2
|
|
2146
2236
|
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2147
2237
|
], 64))), 128))
|
|
2148
2238
|
])
|
|
2149
2239
|
]),
|
|
2150
|
-
e.noPanel ?
|
|
2240
|
+
e.noPanel ? _("", !0) : (r(), I(m(ct), {
|
|
2151
2241
|
key: 0,
|
|
2152
2242
|
field: s.value,
|
|
2153
2243
|
texts: e.texts
|
|
2154
2244
|
}, {
|
|
2155
|
-
default:
|
|
2156
|
-
s.value ?
|
|
2245
|
+
default: k(() => [
|
|
2246
|
+
s.value ? v(b.$slots, "panel", {
|
|
2157
2247
|
key: 0,
|
|
2158
2248
|
field: s.value
|
|
2159
|
-
}) :
|
|
2249
|
+
}) : _("", !0)
|
|
2160
2250
|
]),
|
|
2161
2251
|
_: 3
|
|
2162
2252
|
}, 8, ["field", "texts"]))
|
|
2163
2253
|
], 34));
|
|
2164
2254
|
}
|
|
2165
|
-
}),
|
|
2255
|
+
}), kl = {
|
|
2166
2256
|
key: 0,
|
|
2167
2257
|
class: "q-property-list-field__container"
|
|
2168
|
-
},
|
|
2258
|
+
}, $l = /* @__PURE__ */ S({
|
|
2169
2259
|
__name: "QPropertyListRow",
|
|
2170
2260
|
props: {
|
|
2171
2261
|
field: {},
|
|
@@ -2174,45 +2264,45 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2174
2264
|
},
|
|
2175
2265
|
emits: ["focus", "field-change"],
|
|
2176
2266
|
setup(o, { emit: t }) {
|
|
2177
|
-
const e = o,
|
|
2178
|
-
var
|
|
2179
|
-
const
|
|
2180
|
-
return (
|
|
2181
|
-
}),
|
|
2267
|
+
const e = o, l = t, n = y(() => ["q-property-list__row", e.class]), s = y(() => {
|
|
2268
|
+
var B;
|
|
2269
|
+
const $ = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
2270
|
+
return (B = e.field.props) != null && B.required && $.push("q-property-list__cell--required"), $;
|
|
2271
|
+
}), d = y(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
2182
2272
|
function a() {
|
|
2183
|
-
|
|
2273
|
+
l("focus", e.field);
|
|
2184
2274
|
}
|
|
2185
|
-
function
|
|
2186
|
-
|
|
2275
|
+
function i($) {
|
|
2276
|
+
l("field-change", e.field, $);
|
|
2187
2277
|
}
|
|
2188
|
-
const
|
|
2278
|
+
const f = y(() => ({
|
|
2189
2279
|
...e.field.props,
|
|
2190
|
-
readonly:
|
|
2280
|
+
readonly: d.value
|
|
2191
2281
|
}));
|
|
2192
|
-
return (
|
|
2193
|
-
class: T(
|
|
2282
|
+
return ($, B) => (r(), u("tr", {
|
|
2283
|
+
class: T(n.value),
|
|
2194
2284
|
onFocusin: a
|
|
2195
2285
|
}, [
|
|
2196
|
-
|
|
2286
|
+
x("td", {
|
|
2197
2287
|
class: T(s.value),
|
|
2198
2288
|
onClick: a
|
|
2199
|
-
},
|
|
2200
|
-
|
|
2289
|
+
}, A(e.field.label), 3),
|
|
2290
|
+
x("td", {
|
|
2201
2291
|
class: "q-property-list__cell",
|
|
2202
2292
|
onClick: a
|
|
2203
2293
|
}, [
|
|
2204
|
-
|
|
2205
|
-
e.field.component ? (r(),
|
|
2206
|
-
(r(), I(
|
|
2294
|
+
v($.$slots, "default", {}, () => [
|
|
2295
|
+
e.field.component ? (r(), u("div", kl, [
|
|
2296
|
+
(r(), I(xe(e.field.component), Z(f.value, {
|
|
2207
2297
|
"model-value": e.field.props.modelValue,
|
|
2208
|
-
"onUpdate:modelValue":
|
|
2298
|
+
"onUpdate:modelValue": i
|
|
2209
2299
|
}), null, 16, ["model-value"]))
|
|
2210
|
-
])) :
|
|
2300
|
+
])) : _("", !0)
|
|
2211
2301
|
])
|
|
2212
2302
|
])
|
|
2213
2303
|
], 34));
|
|
2214
2304
|
}
|
|
2215
|
-
}),
|
|
2305
|
+
}), wl = ["data-key", "aria-labelledby"], ql = ["id"], xl = { class: "q-property-list-group__content" }, Ll = /* @__PURE__ */ S({
|
|
2216
2306
|
__name: "QPropertyListGroup",
|
|
2217
2307
|
props: {
|
|
2218
2308
|
id: {},
|
|
@@ -2223,47 +2313,47 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2223
2313
|
},
|
|
2224
2314
|
emits: ["toggle-group"],
|
|
2225
2315
|
setup(o, { emit: t }) {
|
|
2226
|
-
const e = o,
|
|
2316
|
+
const e = o, l = t, n = D(!0), s = fe(), d = y(() => n.value ? e.icons.open : e.icons.close), a = y(() => [
|
|
2227
2317
|
"q-property-list-group",
|
|
2228
2318
|
{
|
|
2229
2319
|
"q-property-list-group--no-toggle": e.noToggle
|
|
2230
2320
|
}
|
|
2231
2321
|
]);
|
|
2232
|
-
function
|
|
2233
|
-
e.noToggle || (
|
|
2322
|
+
function i() {
|
|
2323
|
+
e.noToggle || (n.value = !n.value, l("toggle-group", e.id));
|
|
2234
2324
|
}
|
|
2235
|
-
return (
|
|
2325
|
+
return (f, $) => (r(), u("tr", {
|
|
2236
2326
|
class: T(a.value),
|
|
2237
2327
|
role: "group",
|
|
2238
2328
|
"data-key": e.id,
|
|
2239
2329
|
"aria-labelledby": m(s),
|
|
2240
|
-
onClick:
|
|
2330
|
+
onClick: i
|
|
2241
2331
|
}, [
|
|
2242
|
-
|
|
2332
|
+
x("td", {
|
|
2243
2333
|
id: m(s),
|
|
2244
2334
|
colspan: "2"
|
|
2245
2335
|
}, [
|
|
2246
|
-
|
|
2247
|
-
e.noToggle ?
|
|
2336
|
+
x("div", xl, [
|
|
2337
|
+
e.noToggle ? _("", !0) : (r(), I(m(re), {
|
|
2248
2338
|
key: 0,
|
|
2249
2339
|
"b-style": "tertiary",
|
|
2250
2340
|
borderless: "",
|
|
2251
|
-
onClick:
|
|
2341
|
+
onClick: i
|
|
2252
2342
|
}, {
|
|
2253
|
-
default:
|
|
2254
|
-
M(m(
|
|
2343
|
+
default: k(() => [
|
|
2344
|
+
M(m(N), j(ne(d.value)), null, 16)
|
|
2255
2345
|
]),
|
|
2256
2346
|
_: 1
|
|
2257
2347
|
})),
|
|
2258
|
-
|
|
2348
|
+
ue(" " + A(e.title), 1)
|
|
2259
2349
|
])
|
|
2260
|
-
], 8,
|
|
2261
|
-
], 10,
|
|
2350
|
+
], 8, ql)
|
|
2351
|
+
], 10, wl));
|
|
2262
2352
|
}
|
|
2263
|
-
}),
|
|
2353
|
+
}), Il = { class: "q-property-list-panel__container" }, Bl = { class: "q-property-list-panel__label" }, Sl = { class: "q-property-list-panel__description" }, Cl = {
|
|
2264
2354
|
key: 1,
|
|
2265
2355
|
class: "q-property-list-panel__empty"
|
|
2266
|
-
},
|
|
2356
|
+
}, Tl = /* @__PURE__ */ S({
|
|
2267
2357
|
__name: "QPropertyListPanel",
|
|
2268
2358
|
props: {
|
|
2269
2359
|
field: { default: void 0 },
|
|
@@ -2272,34 +2362,34 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2272
2362
|
},
|
|
2273
2363
|
setup(o) {
|
|
2274
2364
|
const t = o;
|
|
2275
|
-
return (e,
|
|
2276
|
-
t.field ?
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
]) : (r(),
|
|
2365
|
+
return (e, l) => (r(), u("div", Il, [
|
|
2366
|
+
t.field ? v(e.$slots, "default", { key: 0 }, () => [
|
|
2367
|
+
x("div", Bl, A(t.field.label), 1),
|
|
2368
|
+
x("div", Sl, A(t.field.description), 1)
|
|
2369
|
+
]) : (r(), u("div", Cl, A(t.texts.emptyMessage), 1))
|
|
2280
2370
|
]));
|
|
2281
2371
|
}
|
|
2282
|
-
}),
|
|
2372
|
+
}), Vl = C(_l), rt = C($l), dt = C(Ll), ct = C(Tl), El = {
|
|
2283
2373
|
placeholder: "Choose...",
|
|
2284
2374
|
clearValue: "Clear value",
|
|
2285
2375
|
showOptions: "Show options"
|
|
2286
|
-
},
|
|
2376
|
+
}, Dl = {
|
|
2287
2377
|
chevron: {
|
|
2288
2378
|
icon: "chevron-down"
|
|
2289
2379
|
},
|
|
2290
2380
|
clear: {
|
|
2291
2381
|
icon: "close"
|
|
2292
2382
|
}
|
|
2293
|
-
},
|
|
2383
|
+
}, Al = {
|
|
2294
2384
|
key: 0,
|
|
2295
2385
|
class: "q-select__value"
|
|
2296
|
-
},
|
|
2386
|
+
}, Ql = {
|
|
2297
2387
|
key: 1,
|
|
2298
2388
|
class: "q-select__placeholder"
|
|
2299
|
-
},
|
|
2389
|
+
}, zl = ["data-key"], Fl = {
|
|
2300
2390
|
key: 0,
|
|
2301
2391
|
class: "q-select__loader"
|
|
2302
|
-
},
|
|
2392
|
+
}, Ml = /* @__PURE__ */ S({
|
|
2303
2393
|
inheritAttrs: !1,
|
|
2304
2394
|
__name: "QSelect",
|
|
2305
2395
|
props: /* @__PURE__ */ Y({
|
|
@@ -2317,8 +2407,8 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2317
2407
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
2318
2408
|
size: { default: void 0 },
|
|
2319
2409
|
class: { default: "" },
|
|
2320
|
-
icons: { default: () =>
|
|
2321
|
-
texts: { default: () =>
|
|
2410
|
+
icons: { default: () => Dl },
|
|
2411
|
+
texts: { default: () => El }
|
|
2322
2412
|
}, {
|
|
2323
2413
|
modelValue: {
|
|
2324
2414
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2327,79 +2417,79 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2327
2417
|
}),
|
|
2328
2418
|
emits: /* @__PURE__ */ Y(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2329
2419
|
setup(o, { emit: t }) {
|
|
2330
|
-
const e = o,
|
|
2420
|
+
const e = o, l = t, n = ee(o, "modelValue"), s = D(!1), d = D(""), a = D(null), i = D(null), f = D(null), $ = y(() => B.value === void 0), B = y(
|
|
2331
2421
|
() => {
|
|
2332
|
-
var
|
|
2333
|
-
return (
|
|
2422
|
+
var p;
|
|
2423
|
+
return (p = e.items) == null ? void 0 : p.find((g) => g[e.itemValue] === n.value);
|
|
2334
2424
|
}
|
|
2335
|
-
), O =
|
|
2336
|
-
() =>
|
|
2337
|
-
),
|
|
2425
|
+
), O = y(
|
|
2426
|
+
() => B.value ? B.value[e.itemLabel] : ""
|
|
2427
|
+
), Q = y(
|
|
2338
2428
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2339
2429
|
);
|
|
2340
|
-
function V(
|
|
2341
|
-
|
|
2430
|
+
function V(p) {
|
|
2431
|
+
n.value = p, z();
|
|
2342
2432
|
}
|
|
2343
|
-
function
|
|
2344
|
-
|
|
2433
|
+
function b() {
|
|
2434
|
+
Q.value && (V(e.emptyValue), J());
|
|
2345
2435
|
}
|
|
2346
|
-
function E(
|
|
2436
|
+
function E(p) {
|
|
2347
2437
|
var g, R, ie;
|
|
2348
|
-
!((g =
|
|
2438
|
+
!((g = f.value) != null && g.contains(p.relatedTarget)) && !((ie = (R = a.value) == null ? void 0 : R.fieldRef) != null && ie.contains(p.relatedTarget)) && z();
|
|
2349
2439
|
}
|
|
2350
2440
|
function P() {
|
|
2351
|
-
s.value || (
|
|
2441
|
+
s.value || (l("before-show"), s.value = !0);
|
|
2352
2442
|
}
|
|
2353
|
-
function
|
|
2354
|
-
s.value && (
|
|
2443
|
+
function z() {
|
|
2444
|
+
s.value && (l("before-hide"), s.value = !1);
|
|
2355
2445
|
}
|
|
2356
2446
|
function G() {
|
|
2357
|
-
e.readonly || e.disabled || (s.value ?
|
|
2447
|
+
e.readonly || e.disabled || (s.value ? z() : P());
|
|
2358
2448
|
}
|
|
2359
2449
|
let se;
|
|
2360
|
-
function W(
|
|
2361
|
-
if (!(!
|
|
2362
|
-
if (window.clearTimeout(se), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
2363
|
-
|
|
2450
|
+
function W(p) {
|
|
2451
|
+
if (!(!p.key || e.readonly || e.disabled)) {
|
|
2452
|
+
if (window.clearTimeout(se), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && (p.preventDefault(), p.stopPropagation()), ["Enter", " "].includes(p.key) && (s.value = !0), ["Escape", "Tab"].includes(p.key) && (s.value ? s.value = !1 : Q.value && p.key === "Escape" && b()), p.key === "Delete" && e.clearable && b(), /^[a-z]$/i.test(p.key)) {
|
|
2453
|
+
d.value += p.key.toLowerCase();
|
|
2364
2454
|
for (let g = 0; g < e.items.length; g++)
|
|
2365
|
-
if (e.items[g][e.itemLabel].toLowerCase().startsWith(
|
|
2455
|
+
if (e.items[g][e.itemLabel].toLowerCase().startsWith(d.value)) {
|
|
2366
2456
|
q(g);
|
|
2367
2457
|
break;
|
|
2368
2458
|
}
|
|
2369
2459
|
}
|
|
2370
2460
|
se = window.setTimeout(function() {
|
|
2371
|
-
|
|
2461
|
+
d.value = "";
|
|
2372
2462
|
}, 500);
|
|
2373
2463
|
}
|
|
2374
2464
|
}
|
|
2375
2465
|
function ae() {
|
|
2376
|
-
var
|
|
2377
|
-
e.loading ? (
|
|
2466
|
+
var p;
|
|
2467
|
+
e.loading ? (p = f.value) == null || p.focus() : h(), l("show");
|
|
2378
2468
|
}
|
|
2379
|
-
function
|
|
2380
|
-
J(),
|
|
2469
|
+
function H() {
|
|
2470
|
+
J(), l("hide");
|
|
2381
2471
|
}
|
|
2382
2472
|
function J() {
|
|
2383
|
-
var
|
|
2384
|
-
(g = (
|
|
2473
|
+
var p, g;
|
|
2474
|
+
(g = (p = a.value) == null ? void 0 : p.fieldRef) == null || g.focus();
|
|
2385
2475
|
}
|
|
2386
|
-
function
|
|
2387
|
-
var
|
|
2388
|
-
(
|
|
2476
|
+
function h() {
|
|
2477
|
+
var p;
|
|
2478
|
+
(p = i.value) == null || p.$el.focus();
|
|
2389
2479
|
}
|
|
2390
|
-
function q(
|
|
2480
|
+
function q(p) {
|
|
2391
2481
|
var g;
|
|
2392
|
-
(g =
|
|
2482
|
+
(g = i.value) == null || g.focusItem(p);
|
|
2393
2483
|
}
|
|
2394
2484
|
return oe(
|
|
2395
2485
|
() => e.loading,
|
|
2396
|
-
(
|
|
2397
|
-
!
|
|
2486
|
+
(p) => {
|
|
2487
|
+
!p && s.value && le(h);
|
|
2398
2488
|
}
|
|
2399
|
-
), (
|
|
2489
|
+
), (p, g) => {
|
|
2400
2490
|
var R, ie;
|
|
2401
|
-
return r(),
|
|
2402
|
-
M(m(
|
|
2491
|
+
return r(), u(U, null, [
|
|
2492
|
+
M(m(Ie), Z({
|
|
2403
2493
|
id: e.id,
|
|
2404
2494
|
label: e.label,
|
|
2405
2495
|
required: e.required,
|
|
@@ -2422,27 +2512,27 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2422
2512
|
"aria-expanded": s.value,
|
|
2423
2513
|
"aria-haspopup": "listbox",
|
|
2424
2514
|
size: e.size
|
|
2425
|
-
},
|
|
2515
|
+
}, p.$attrs, {
|
|
2426
2516
|
onClick: G,
|
|
2427
2517
|
onKeydown: ce(W, ["stop"])
|
|
2428
|
-
}),
|
|
2429
|
-
append:
|
|
2430
|
-
|
|
2431
|
-
|
|
2518
|
+
}), Le({
|
|
2519
|
+
append: k(() => [
|
|
2520
|
+
v(p.$slots, "append"),
|
|
2521
|
+
Q.value && n.value ? (r(), I(m(re), {
|
|
2432
2522
|
key: 0,
|
|
2433
2523
|
class: "q-select__clear",
|
|
2434
2524
|
"aria-label": e.texts.clearValue,
|
|
2435
2525
|
"b-style": "plain",
|
|
2436
2526
|
borderless: "",
|
|
2437
2527
|
tabindex: "-1",
|
|
2438
|
-
onClick:
|
|
2528
|
+
onClick: b
|
|
2439
2529
|
}, {
|
|
2440
|
-
default:
|
|
2441
|
-
M(m(
|
|
2530
|
+
default: k(() => [
|
|
2531
|
+
M(m(N), j(ne(e.icons.clear)), null, 16)
|
|
2442
2532
|
]),
|
|
2443
2533
|
_: 1
|
|
2444
|
-
}, 8, ["aria-label"])) :
|
|
2445
|
-
e.readonly ?
|
|
2534
|
+
}, 8, ["aria-label"])) : _("", !0),
|
|
2535
|
+
e.readonly ? _("", !0) : (r(), I(m(re), {
|
|
2446
2536
|
key: 1,
|
|
2447
2537
|
class: "q-select__chevron",
|
|
2448
2538
|
"aria-label": e.texts.showOptions,
|
|
@@ -2452,36 +2542,36 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2452
2542
|
disabled: e.disabled,
|
|
2453
2543
|
onClick: G
|
|
2454
2544
|
}, {
|
|
2455
|
-
default:
|
|
2456
|
-
M(m(
|
|
2545
|
+
default: k(() => [
|
|
2546
|
+
M(m(N), j(ne(e.icons.chevron)), null, 16)
|
|
2457
2547
|
]),
|
|
2458
2548
|
_: 1
|
|
2459
2549
|
}, 8, ["aria-label", "disabled"]))
|
|
2460
2550
|
]),
|
|
2461
|
-
default:
|
|
2462
|
-
|
|
2463
|
-
!e.readonly && !e.disabled ? (r(),
|
|
2464
|
-
|
|
2465
|
-
], 64)) :
|
|
2466
|
-
])) : (r(),
|
|
2551
|
+
default: k(() => [
|
|
2552
|
+
$.value ? (r(), u("span", Ql, [
|
|
2553
|
+
!e.readonly && !e.disabled ? (r(), u(U, { key: 0 }, [
|
|
2554
|
+
ue(A(e.texts.placeholder), 1)
|
|
2555
|
+
], 64)) : _("", !0)
|
|
2556
|
+
])) : (r(), u("span", Al, A(O.value), 1))
|
|
2467
2557
|
]),
|
|
2468
2558
|
_: 2
|
|
2469
2559
|
}, [
|
|
2470
|
-
(R =
|
|
2560
|
+
(R = B.value) != null && R.icon || p.$slots.prepend ? {
|
|
2471
2561
|
name: "prepend",
|
|
2472
|
-
fn:
|
|
2562
|
+
fn: k(() => {
|
|
2473
2563
|
var te, de;
|
|
2474
2564
|
return [
|
|
2475
|
-
|
|
2476
|
-
(te =
|
|
2565
|
+
v(p.$slots, "prepend"),
|
|
2566
|
+
(te = B.value) != null && te.icon ? (r(), I(m(N), j(Z({ key: 0 }, (de = B.value) == null ? void 0 : de.icon)), null, 16)) : _("", !0)
|
|
2477
2567
|
];
|
|
2478
2568
|
}),
|
|
2479
2569
|
key: "0"
|
|
2480
2570
|
} : void 0,
|
|
2481
|
-
|
|
2571
|
+
p.$slots.extras ? {
|
|
2482
2572
|
name: "extras",
|
|
2483
|
-
fn:
|
|
2484
|
-
|
|
2573
|
+
fn: k(() => [
|
|
2574
|
+
v(p.$slots, "extras")
|
|
2485
2575
|
]),
|
|
2486
2576
|
key: "1"
|
|
2487
2577
|
} : void 0
|
|
@@ -2497,12 +2587,12 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2497
2587
|
anchor: (ie = a.value) == null ? void 0 : ie.$el,
|
|
2498
2588
|
offset: 2,
|
|
2499
2589
|
onEnter: ae,
|
|
2500
|
-
onLeave:
|
|
2590
|
+
onLeave: H
|
|
2501
2591
|
}, {
|
|
2502
|
-
default:
|
|
2503
|
-
|
|
2592
|
+
default: k(() => [
|
|
2593
|
+
x("div", {
|
|
2504
2594
|
ref_key: "contentRef",
|
|
2505
|
-
ref:
|
|
2595
|
+
ref: f,
|
|
2506
2596
|
"data-testid": "combobox-dropdown",
|
|
2507
2597
|
"data-key": e.id,
|
|
2508
2598
|
class: "q-select__body",
|
|
@@ -2510,36 +2600,36 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2510
2600
|
onFocusout: E,
|
|
2511
2601
|
onKeydown: ce(W, ["stop"])
|
|
2512
2602
|
}, [
|
|
2513
|
-
|
|
2514
|
-
e.loading ? (r(),
|
|
2515
|
-
M(m(
|
|
2603
|
+
v(p.$slots, "body.prepend"),
|
|
2604
|
+
e.loading ? (r(), u("div", Fl, [
|
|
2605
|
+
M(m(_e), { size: 24 })
|
|
2516
2606
|
])) : (r(), I(m(Ee), {
|
|
2517
2607
|
key: 1,
|
|
2518
2608
|
ref_key: "listRef",
|
|
2519
|
-
ref:
|
|
2609
|
+
ref: i,
|
|
2520
2610
|
class: "q-select__items",
|
|
2521
2611
|
selectable: "",
|
|
2522
|
-
"model-value":
|
|
2612
|
+
"model-value": n.value,
|
|
2523
2613
|
items: e.items,
|
|
2524
|
-
groups:
|
|
2614
|
+
groups: p.groups,
|
|
2525
2615
|
"item-label": e.itemLabel,
|
|
2526
2616
|
"item-value": e.itemValue,
|
|
2527
2617
|
"onUpdate:modelValue": V
|
|
2528
2618
|
}, {
|
|
2529
|
-
item:
|
|
2530
|
-
|
|
2619
|
+
item: k(({ item: te }) => [
|
|
2620
|
+
v(p.$slots, "item", { item: te })
|
|
2531
2621
|
]),
|
|
2532
2622
|
_: 3
|
|
2533
2623
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
2534
|
-
|
|
2535
|
-
], 40,
|
|
2624
|
+
v(p.$slots, "body.append")
|
|
2625
|
+
], 40, zl)
|
|
2536
2626
|
]),
|
|
2537
2627
|
_: 3
|
|
2538
2628
|
}, 8, ["modelValue", "anchor"])
|
|
2539
2629
|
], 64);
|
|
2540
2630
|
};
|
|
2541
2631
|
}
|
|
2542
|
-
}),
|
|
2632
|
+
}), Pl = C(Ml), Ol = /* @__PURE__ */ S({
|
|
2543
2633
|
__name: "QSkeletonLoader",
|
|
2544
2634
|
props: {
|
|
2545
2635
|
type: { default: void 0 },
|
|
@@ -2547,34 +2637,34 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2547
2637
|
height: { default: void 0 }
|
|
2548
2638
|
},
|
|
2549
2639
|
setup(o) {
|
|
2550
|
-
const t = o, e =
|
|
2551
|
-
const
|
|
2640
|
+
const t = o, e = y(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), l = y(() => {
|
|
2641
|
+
const n = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
2552
2642
|
return {
|
|
2553
|
-
width:
|
|
2643
|
+
width: n,
|
|
2554
2644
|
height: s
|
|
2555
2645
|
};
|
|
2556
2646
|
});
|
|
2557
|
-
return (
|
|
2647
|
+
return (n, s) => (r(), u("div", {
|
|
2558
2648
|
class: T(["q-skeleton-loader", e.value]),
|
|
2559
|
-
style:
|
|
2649
|
+
style: pe(l.value)
|
|
2560
2650
|
}, s[0] || (s[0] = [
|
|
2561
|
-
|
|
2651
|
+
x("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2562
2652
|
]), 6));
|
|
2563
2653
|
}
|
|
2564
|
-
}),
|
|
2654
|
+
}), Ul = C(Ol), Nl = /* @__PURE__ */ S({
|
|
2565
2655
|
__name: "QThemeProvider",
|
|
2566
2656
|
props: {
|
|
2567
2657
|
theme: {}
|
|
2568
2658
|
},
|
|
2569
2659
|
setup(o) {
|
|
2570
2660
|
const t = o;
|
|
2571
|
-
return (e,
|
|
2661
|
+
return (e, l) => (r(), u("div", {
|
|
2572
2662
|
class: T(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2573
2663
|
}, [
|
|
2574
|
-
|
|
2664
|
+
v(e.$slots, "default")
|
|
2575
2665
|
], 2));
|
|
2576
2666
|
}
|
|
2577
|
-
}),
|
|
2667
|
+
}), Hl = C(Nl), Gl = ["innerHTML"], Rl = /* @__PURE__ */ S({
|
|
2578
2668
|
__name: "QTooltip",
|
|
2579
2669
|
props: /* @__PURE__ */ Y({
|
|
2580
2670
|
id: { default: void 0 },
|
|
@@ -2597,17 +2687,17 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2597
2687
|
}),
|
|
2598
2688
|
emits: ["update:modelValue"],
|
|
2599
2689
|
setup(o) {
|
|
2600
|
-
const t = o, e = ee(o, "modelValue"),
|
|
2601
|
-
return (
|
|
2602
|
-
|
|
2603
|
-
props: { "aria-describedby": m(
|
|
2690
|
+
const t = o, e = ee(o, "modelValue"), l = fe(t.id);
|
|
2691
|
+
return (n, s) => (r(), u(U, null, [
|
|
2692
|
+
v(n.$slots, "anchor", {
|
|
2693
|
+
props: { "aria-describedby": m(l) }
|
|
2604
2694
|
}),
|
|
2605
2695
|
M(m(ye), {
|
|
2606
2696
|
"model-value": e.value,
|
|
2607
2697
|
anchor: t.anchor,
|
|
2608
2698
|
role: "tooltip",
|
|
2609
2699
|
"non-modal": "",
|
|
2610
|
-
id: m(
|
|
2700
|
+
id: m(l),
|
|
2611
2701
|
appearance: t.appearance,
|
|
2612
2702
|
arrow: t.arrow,
|
|
2613
2703
|
attach: t.attach,
|
|
@@ -2618,14 +2708,14 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2618
2708
|
placement: t.placement,
|
|
2619
2709
|
trigger: t.trigger
|
|
2620
2710
|
}, {
|
|
2621
|
-
default:
|
|
2622
|
-
|
|
2623
|
-
t.icon ? (r(), I(m(
|
|
2624
|
-
t.html ? (r(),
|
|
2711
|
+
default: k(() => [
|
|
2712
|
+
v(n.$slots, "default", {}, () => [
|
|
2713
|
+
t.icon ? (r(), I(m(N), j(Z({ key: 0 }, t.icon)), null, 16)) : _("", !0),
|
|
2714
|
+
t.html ? (r(), u("span", {
|
|
2625
2715
|
key: 1,
|
|
2626
2716
|
innerHTML: t.text
|
|
2627
|
-
}, null, 8,
|
|
2628
|
-
|
|
2717
|
+
}, null, 8, Gl)) : (r(), u(U, { key: 2 }, [
|
|
2718
|
+
ue(A(t.text), 1)
|
|
2629
2719
|
], 64))
|
|
2630
2720
|
])
|
|
2631
2721
|
]),
|
|
@@ -2633,70 +2723,71 @@ const bo = ["role"], go = /* @__PURE__ */ B({
|
|
|
2633
2723
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2634
2724
|
], 64));
|
|
2635
2725
|
}
|
|
2636
|
-
}),
|
|
2726
|
+
}), Kl = C(Rl), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2637
2727
|
__proto__: null,
|
|
2638
|
-
QBadge:
|
|
2728
|
+
QBadge: Mt,
|
|
2639
2729
|
QButton: re,
|
|
2640
2730
|
QButtonGroup: ot,
|
|
2641
|
-
QButtonToggle:
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2731
|
+
QButtonToggle: Ut,
|
|
2732
|
+
QCard: Zt,
|
|
2733
|
+
QCheckbox: so,
|
|
2734
|
+
QCombobox: Go,
|
|
2735
|
+
QDialog: nl,
|
|
2736
|
+
QField: Ie,
|
|
2737
|
+
QIcon: N,
|
|
2647
2738
|
QIconFont: Ze,
|
|
2648
2739
|
QIconImg: Je,
|
|
2649
2740
|
QIconSvg: et,
|
|
2650
|
-
QInputGroup:
|
|
2651
|
-
QLineLoader:
|
|
2741
|
+
QInputGroup: cl,
|
|
2742
|
+
QLineLoader: fl,
|
|
2652
2743
|
QList: Ee,
|
|
2653
|
-
QListItem:
|
|
2654
|
-
QListItemGroup:
|
|
2744
|
+
QListItem: lt,
|
|
2745
|
+
QListItemGroup: nt,
|
|
2655
2746
|
QOverlay: ye,
|
|
2656
|
-
QPopover:
|
|
2657
|
-
QPropertyList:
|
|
2747
|
+
QPopover: bl,
|
|
2748
|
+
QPropertyList: Vl,
|
|
2658
2749
|
QPropertyListGroup: dt,
|
|
2659
2750
|
QPropertyListPanel: ct,
|
|
2660
2751
|
QPropertyListRow: rt,
|
|
2661
|
-
QSelect:
|
|
2662
|
-
QSkeletonLoader:
|
|
2663
|
-
QSpinnerLoader:
|
|
2752
|
+
QSelect: Pl,
|
|
2753
|
+
QSkeletonLoader: Ul,
|
|
2754
|
+
QSpinnerLoader: _e,
|
|
2664
2755
|
QTextField: st,
|
|
2665
|
-
QThemeProvider:
|
|
2666
|
-
QTooltip:
|
|
2756
|
+
QThemeProvider: Hl,
|
|
2757
|
+
QTooltip: Kl
|
|
2667
2758
|
}, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
|
|
2668
|
-
function
|
|
2759
|
+
function Wl() {
|
|
2669
2760
|
const o = Re(ge);
|
|
2670
2761
|
if (!o)
|
|
2671
2762
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2672
2763
|
return o;
|
|
2673
2764
|
}
|
|
2674
|
-
function
|
|
2675
|
-
const t =
|
|
2765
|
+
function ln(o) {
|
|
2766
|
+
const t = Wl(), e = {
|
|
2676
2767
|
activeTheme: D(o),
|
|
2677
2768
|
themes: t.themes
|
|
2678
2769
|
};
|
|
2679
2770
|
return Ge(ge, e), e;
|
|
2680
2771
|
}
|
|
2681
|
-
function
|
|
2772
|
+
function Xl() {
|
|
2682
2773
|
let o = document.getElementById(
|
|
2683
2774
|
ge
|
|
2684
2775
|
);
|
|
2685
2776
|
return o || (o = document.createElement("style"), o.id = ge, document.head.appendChild(o)), o;
|
|
2686
2777
|
}
|
|
2687
|
-
function
|
|
2778
|
+
function Yl(o) {
|
|
2688
2779
|
let t = "";
|
|
2689
|
-
for (const
|
|
2690
|
-
t += `.q-theme--${
|
|
2780
|
+
for (const l of o) {
|
|
2781
|
+
t += `.q-theme--${l.name} {
|
|
2691
2782
|
`;
|
|
2692
|
-
const
|
|
2783
|
+
const n = l.scheme;
|
|
2693
2784
|
let s;
|
|
2694
|
-
for (s in
|
|
2695
|
-
const
|
|
2696
|
-
if (
|
|
2697
|
-
t += ` ${Ne(s)}: ${
|
|
2785
|
+
for (s in n) {
|
|
2786
|
+
const d = n[s];
|
|
2787
|
+
if (d) {
|
|
2788
|
+
t += ` ${Ne(s)}: ${d};
|
|
2698
2789
|
`;
|
|
2699
|
-
const a = tt(
|
|
2790
|
+
const a = tt(d);
|
|
2700
2791
|
t += ` ${Ne(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
2701
2792
|
`;
|
|
2702
2793
|
}
|
|
@@ -2704,56 +2795,56 @@ function Un(o) {
|
|
|
2704
2795
|
t += `}
|
|
2705
2796
|
`;
|
|
2706
2797
|
}
|
|
2707
|
-
const e =
|
|
2798
|
+
const e = Xl();
|
|
2708
2799
|
e.textContent = t;
|
|
2709
2800
|
}
|
|
2710
2801
|
function Ne(o) {
|
|
2711
2802
|
return o ? `--q-theme-${Ye(o)}` : "";
|
|
2712
2803
|
}
|
|
2713
|
-
function
|
|
2804
|
+
function Zl(o = {}) {
|
|
2714
2805
|
return { install: (e) => {
|
|
2715
|
-
const
|
|
2716
|
-
for (const s in
|
|
2717
|
-
e.component(s,
|
|
2718
|
-
const
|
|
2719
|
-
e.provide(Ve, D(
|
|
2806
|
+
const l = o.components || {};
|
|
2807
|
+
for (const s in l)
|
|
2808
|
+
e.component(s, l[s]);
|
|
2809
|
+
const n = o.defaults || {};
|
|
2810
|
+
e.provide(Ve, D(n)), Jl(e, o.themes);
|
|
2720
2811
|
} };
|
|
2721
2812
|
}
|
|
2722
|
-
function
|
|
2813
|
+
function Jl(o, t) {
|
|
2723
2814
|
const e = [];
|
|
2724
|
-
let
|
|
2815
|
+
let l;
|
|
2725
2816
|
if (!t)
|
|
2726
|
-
|
|
2727
|
-
name:
|
|
2817
|
+
l = "default", e.push({
|
|
2818
|
+
name: l,
|
|
2728
2819
|
mode: "light",
|
|
2729
2820
|
scheme: Se
|
|
2730
2821
|
});
|
|
2731
2822
|
else
|
|
2732
|
-
for (const
|
|
2733
|
-
const
|
|
2823
|
+
for (const n of t.themes) {
|
|
2824
|
+
const d = { ...n.mode === "light" ? Se : je, ...n.colors };
|
|
2734
2825
|
e.push({
|
|
2735
|
-
name:
|
|
2736
|
-
mode:
|
|
2737
|
-
scheme:
|
|
2738
|
-
}),
|
|
2739
|
-
}
|
|
2740
|
-
if (
|
|
2741
|
-
const
|
|
2742
|
-
activeTheme: D(
|
|
2826
|
+
name: n.name,
|
|
2827
|
+
mode: n.mode,
|
|
2828
|
+
scheme: d
|
|
2829
|
+
}), n.name === t.defaultTheme && (l = n.name);
|
|
2830
|
+
}
|
|
2831
|
+
if (l) {
|
|
2832
|
+
const n = {
|
|
2833
|
+
activeTheme: D(l),
|
|
2743
2834
|
themes: e
|
|
2744
2835
|
};
|
|
2745
|
-
|
|
2836
|
+
Yl(e), oe(n.activeTheme, en, { immediate: !0 }), o.provide(ge, n);
|
|
2746
2837
|
}
|
|
2747
2838
|
}
|
|
2748
|
-
function
|
|
2749
|
-
const t = document.documentElement,
|
|
2750
|
-
t.className =
|
|
2839
|
+
function en(o) {
|
|
2840
|
+
const t = document.documentElement, l = Array.from(t.classList).filter((n) => !n.startsWith("q-theme"));
|
|
2841
|
+
t.className = l.join(" "), t.classList.add(`q-theme--${o}`);
|
|
2751
2842
|
}
|
|
2752
|
-
const
|
|
2843
|
+
const nn = (o = {}) => Zl({ components: jl, ...o });
|
|
2753
2844
|
export {
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2845
|
+
jl as components,
|
|
2846
|
+
nn as createFramework,
|
|
2847
|
+
ln as provideTheme,
|
|
2848
|
+
on as templates,
|
|
2849
|
+
Wl as useTheme
|
|
2759
2850
|
};
|