@quidgest/ui 0.12.2 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest/components.json +2 -0
- package/dist/ui.css +166 -1
- package/dist/ui.esm.js +1045 -830
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +111 -93
- package/dist/ui.scss +122 -2
- package/esm/components/QBadge/QBadge.d.ts +72 -0
- package/esm/components/QBadge/QBadge.d.ts.map +1 -0
- package/esm/components/QBadge/QBadge.vue.js +87 -0
- package/esm/components/QBadge/QBadge.vue2.js +4 -0
- package/esm/components/QBadge/index.d.ts +119 -0
- package/esm/components/QBadge/index.d.ts.map +1 -0
- package/esm/components/QBadge/index.js +6 -0
- package/esm/components/QButton/index.d.ts +3 -0
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +10 -10
- package/esm/components/QCombobox/index.d.ts +30 -30
- package/esm/components/QDialog/QDialog.d.ts +184 -0
- package/esm/components/QDialog/QDialog.d.ts.map +1 -0
- package/esm/components/QDialog/QDialog.vue.js +146 -0
- package/esm/components/QDialog/QDialog.vue2.js +4 -0
- package/esm/components/QDialog/index.d.ts +237 -0
- package/esm/components/QDialog/index.d.ts.map +1 -0
- package/esm/components/QDialog/index.js +6 -0
- package/esm/components/QList/index.d.ts +16 -16
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +34 -34
- package/esm/components/QTextField/QTextField.d.ts +5 -5
- package/esm/components/QTextField/index.d.ts +11 -11
- package/esm/components/QTooltip/QTooltip.d.ts +15 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +44 -27
- package/esm/components/QTooltip/index.d.ts +20 -0
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +43 -39
- package/esm/index.d.ts +2 -0
- package/esm/utils/color.d.ts +7 -1
- package/esm/utils/color.d.ts.map +1 -1
- package/esm/utils/color.js +54 -9
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as L, computed as k, openBlock as u, createElementBlock as
|
|
1
|
+
import { defineComponent as L, computed as k, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as x, resolveDynamicComponent as Ke, h as Ae, withCtx as _, normalizeProps as W, guardReactiveProps as ie, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.
|
|
3
|
+
* Quidgest UI v0.13.1
|
|
4
4
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -66,11 +66,11 @@ const Le = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
71
|
defaultDarkColorScheme: Ge,
|
|
72
72
|
defaultLightColorScheme: Le
|
|
73
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
73
|
+
}, Symbol.toStringTag, { value: "Module" })), ct = /* @__PURE__ */ L({
|
|
74
74
|
__name: "QSpinnerLoader",
|
|
75
75
|
props: {
|
|
76
76
|
size: { default: 48 },
|
|
@@ -80,9 +80,9 @@ const Le = {
|
|
|
80
80
|
const o = t, e = k(() => ({
|
|
81
81
|
"font-size": o.size !== 48 ? `${o.size}px` : void 0
|
|
82
82
|
}));
|
|
83
|
-
return (n, l) => (u(),
|
|
83
|
+
return (n, l) => (u(), v("div", {
|
|
84
84
|
class: C(["q-spinner-loader", o.class]),
|
|
85
|
-
style:
|
|
85
|
+
style: ue(e.value)
|
|
86
86
|
}, null, 6));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -109,26 +109,26 @@ function Be(t = {}, o = {}) {
|
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
112
|
+
const Ce = "q-defaults";
|
|
113
|
+
function ft() {
|
|
114
114
|
var s, i;
|
|
115
|
-
const t =
|
|
115
|
+
const t = Pe();
|
|
116
116
|
if (!t)
|
|
117
117
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
118
118
|
const o = t.type.name ?? t.type.__name;
|
|
119
119
|
if (!o)
|
|
120
120
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
121
|
-
const e =
|
|
121
|
+
const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[o];
|
|
122
122
|
return k(() => Be(n, l));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Re(t) {
|
|
125
125
|
if (Se(t))
|
|
126
126
|
return;
|
|
127
|
-
const o =
|
|
128
|
-
Ne(
|
|
127
|
+
const o = We(), e = V(t), n = k(() => Se(e.value) ? o.value : Be(o.value, e.value));
|
|
128
|
+
Ne(Ce, n);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const t = He(
|
|
130
|
+
function We() {
|
|
131
|
+
const t = He(Ce, void 0);
|
|
132
132
|
if (!t)
|
|
133
133
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
134
134
|
return t;
|
|
@@ -136,34 +136,34 @@ function Re() {
|
|
|
136
136
|
function Xe(t) {
|
|
137
137
|
return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function pt(t, o) {
|
|
140
140
|
var n;
|
|
141
141
|
const e = Xe(o);
|
|
142
142
|
return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function B(t) {
|
|
145
145
|
const o = t.setup;
|
|
146
146
|
return o && (t.setup = (e, n) => {
|
|
147
|
-
const l =
|
|
147
|
+
const l = ft();
|
|
148
148
|
if (Se(l.value))
|
|
149
149
|
return o(e, n);
|
|
150
|
-
const s =
|
|
150
|
+
const s = Pe();
|
|
151
151
|
if (s === null)
|
|
152
152
|
return o(e, n);
|
|
153
153
|
const i = new Proxy(e, {
|
|
154
|
-
get(a,
|
|
155
|
-
var
|
|
156
|
-
const
|
|
157
|
-
return typeof
|
|
154
|
+
get(a, r) {
|
|
155
|
+
var I;
|
|
156
|
+
const f = Reflect.get(a, r), q = (I = l.value) == null ? void 0 : I[r];
|
|
157
|
+
return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
return o(i, n);
|
|
161
161
|
}), t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const xe = B(ct), mt = ["disabled"], vt = {
|
|
164
164
|
key: 0,
|
|
165
165
|
class: "q-btn__spinner"
|
|
166
|
-
},
|
|
166
|
+
}, ht = { class: "q-btn__content" }, yt = /* @__PURE__ */ L({
|
|
167
167
|
__name: "QButton",
|
|
168
168
|
props: {
|
|
169
169
|
active: { type: Boolean },
|
|
@@ -200,99 +200,27 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
200
200
|
e.class
|
|
201
201
|
];
|
|
202
202
|
});
|
|
203
|
-
return (a,
|
|
203
|
+
return (a, r) => (u(), v("button", {
|
|
204
204
|
type: "button",
|
|
205
205
|
class: C(i.value),
|
|
206
206
|
disabled: l.value,
|
|
207
|
-
onClick:
|
|
207
|
+
onClick: pe(s, ["stop", "prevent"])
|
|
208
208
|
}, [
|
|
209
|
-
a.loading ? (u(),
|
|
210
|
-
|
|
211
|
-
])) :
|
|
212
|
-
|
|
213
|
-
a.iconOnRight ? (u(),
|
|
214
|
-
|
|
215
|
-
], 64)) :
|
|
216
|
-
|
|
217
|
-
a.iconOnRight ?
|
|
218
|
-
|
|
209
|
+
a.loading ? (u(), v("div", vt, [
|
|
210
|
+
z(m(xe), { size: 20 })
|
|
211
|
+
])) : $("", !0),
|
|
212
|
+
A("span", ht, [
|
|
213
|
+
a.iconOnRight ? (u(), v(te, { key: 0 }, [
|
|
214
|
+
me(N(e.label), 1)
|
|
215
|
+
], 64)) : $("", !0),
|
|
216
|
+
y(a.$slots, "default"),
|
|
217
|
+
a.iconOnRight ? $("", !0) : (u(), v(te, { key: 1 }, [
|
|
218
|
+
me(N(e.label), 1)
|
|
219
219
|
], 64))
|
|
220
220
|
])
|
|
221
|
-
], 10,
|
|
221
|
+
], 10, mt));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
224
|
-
__name: "QButtonGroup",
|
|
225
|
-
props: {
|
|
226
|
-
disabled: { type: Boolean },
|
|
227
|
-
borderless: { type: Boolean },
|
|
228
|
-
elevated: { type: Boolean },
|
|
229
|
-
class: { default: void 0 }
|
|
230
|
-
},
|
|
231
|
-
setup(t) {
|
|
232
|
-
const o = t;
|
|
233
|
-
return We({
|
|
234
|
-
QButton: {
|
|
235
|
-
bStyle: "secondary",
|
|
236
|
-
disabled: Ae(o, "disabled"),
|
|
237
|
-
borderless: Ae(o, "borderless"),
|
|
238
|
-
elevated: !1
|
|
239
|
-
}
|
|
240
|
-
}), (e, n) => (u(), m("div", {
|
|
241
|
-
class: C([
|
|
242
|
-
"q-btn-group",
|
|
243
|
-
{
|
|
244
|
-
"q-btn-group--elevated": o.elevated
|
|
245
|
-
},
|
|
246
|
-
o.class
|
|
247
|
-
])
|
|
248
|
-
}, [
|
|
249
|
-
h(e.$slots, "default")
|
|
250
|
-
], 2));
|
|
251
|
-
}
|
|
252
|
-
}), Ye = S(yt), bt = /* @__PURE__ */ L({
|
|
253
|
-
__name: "QButtonToggle",
|
|
254
|
-
props: /* @__PURE__ */ Z({
|
|
255
|
-
options: {},
|
|
256
|
-
disabled: { type: Boolean },
|
|
257
|
-
borderless: { type: Boolean },
|
|
258
|
-
elevated: { type: Boolean },
|
|
259
|
-
required: { type: Boolean },
|
|
260
|
-
class: {}
|
|
261
|
-
}, {
|
|
262
|
-
modelValue: {},
|
|
263
|
-
modelModifiers: {}
|
|
264
|
-
}),
|
|
265
|
-
emits: ["update:modelValue"],
|
|
266
|
-
setup(t) {
|
|
267
|
-
const o = t, e = ne(t, "modelValue");
|
|
268
|
-
function n(l) {
|
|
269
|
-
e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
|
|
270
|
-
}
|
|
271
|
-
return (l, s) => (u(), D(y(Ye), {
|
|
272
|
-
"b-style": "secondary",
|
|
273
|
-
class: C(o.class),
|
|
274
|
-
disabled: o.disabled,
|
|
275
|
-
borderless: o.borderless,
|
|
276
|
-
elevated: o.elevated
|
|
277
|
-
}, {
|
|
278
|
-
default: w(() => [
|
|
279
|
-
(u(!0), m(se, null, xe(o.options, (i) => (u(), D(y(pe), {
|
|
280
|
-
key: i.key,
|
|
281
|
-
title: i.title,
|
|
282
|
-
label: i.label,
|
|
283
|
-
active: e.value === i.key,
|
|
284
|
-
onClick: () => n(i)
|
|
285
|
-
}, {
|
|
286
|
-
default: w(() => [
|
|
287
|
-
h(l.$slots, i.key)
|
|
288
|
-
]),
|
|
289
|
-
_: 2
|
|
290
|
-
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
291
|
-
]),
|
|
292
|
-
_: 3
|
|
293
|
-
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
294
|
-
}
|
|
295
|
-
}), gt = S(bt), _t = /* @__PURE__ */ L({
|
|
223
|
+
}), de = B(yt), bt = /* @__PURE__ */ L({
|
|
296
224
|
__name: "QIcon",
|
|
297
225
|
props: {
|
|
298
226
|
icon: {},
|
|
@@ -304,22 +232,22 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
304
232
|
const o = t, e = k(() => {
|
|
305
233
|
switch (o.type) {
|
|
306
234
|
case "svg":
|
|
307
|
-
return
|
|
235
|
+
return Je;
|
|
308
236
|
case "font":
|
|
309
|
-
return
|
|
237
|
+
return Ye;
|
|
310
238
|
case "img":
|
|
311
|
-
return
|
|
239
|
+
return Ze;
|
|
312
240
|
default:
|
|
313
241
|
return;
|
|
314
242
|
}
|
|
315
243
|
});
|
|
316
|
-
return (n, l) => (u(),
|
|
244
|
+
return (n, l) => (u(), x(Ke(e.value), {
|
|
317
245
|
class: C(o.class),
|
|
318
246
|
icon: o.icon,
|
|
319
247
|
size: o.size
|
|
320
248
|
}, null, 8, ["class", "icon", "size"]));
|
|
321
249
|
}
|
|
322
|
-
}),
|
|
250
|
+
}), gt = /* @__PURE__ */ L({
|
|
323
251
|
__name: "QIconFont",
|
|
324
252
|
props: {
|
|
325
253
|
icon: {},
|
|
@@ -332,12 +260,12 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
332
260
|
const o = t, e = k(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = k(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = k(() => ({
|
|
333
261
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
334
262
|
}));
|
|
335
|
-
return (s, i) => (u(),
|
|
263
|
+
return (s, i) => (u(), v("i", {
|
|
336
264
|
class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
|
|
337
|
-
style:
|
|
265
|
+
style: ue(l.value)
|
|
338
266
|
}, null, 6));
|
|
339
267
|
}
|
|
340
|
-
}),
|
|
268
|
+
}), _t = ["src"], kt = /* @__PURE__ */ L({
|
|
341
269
|
__name: "QIconImg",
|
|
342
270
|
props: {
|
|
343
271
|
icon: {},
|
|
@@ -348,13 +276,13 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
348
276
|
const o = t, e = k(() => ({
|
|
349
277
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
350
278
|
}));
|
|
351
|
-
return (n, l) => (u(),
|
|
279
|
+
return (n, l) => (u(), v("img", {
|
|
352
280
|
src: o.icon,
|
|
353
281
|
class: C(["q-icon", "q-icon__img", o.class]),
|
|
354
|
-
style:
|
|
355
|
-
}, null, 14,
|
|
282
|
+
style: ue(e.value)
|
|
283
|
+
}, null, 14, _t));
|
|
356
284
|
}
|
|
357
|
-
}),
|
|
285
|
+
}), ye = {}, wt = L({
|
|
358
286
|
name: "InlineSvg",
|
|
359
287
|
emits: {
|
|
360
288
|
loaded: (t) => typeof t == "object",
|
|
@@ -367,9 +295,9 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
367
295
|
return null;
|
|
368
296
|
const t = this.getSvgContent(this.svgElSource);
|
|
369
297
|
if (!t)
|
|
370
|
-
return
|
|
298
|
+
return Ae("div", this.$attrs);
|
|
371
299
|
const o = {};
|
|
372
|
-
return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML,
|
|
300
|
+
return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, Ae("svg", o);
|
|
373
301
|
},
|
|
374
302
|
props: {
|
|
375
303
|
/**
|
|
@@ -431,7 +359,7 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
431
359
|
n !== !1 && n !== null && n !== void 0 && (t[e] = n);
|
|
432
360
|
},
|
|
433
361
|
getSvgContent(t) {
|
|
434
|
-
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)),
|
|
362
|
+
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), $t(t, this.title)), t);
|
|
435
363
|
},
|
|
436
364
|
/**
|
|
437
365
|
* Get svgElSource
|
|
@@ -439,11 +367,11 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
439
367
|
*/
|
|
440
368
|
async getSource(t) {
|
|
441
369
|
try {
|
|
442
|
-
|
|
443
|
-
const o = await
|
|
370
|
+
ye[t] || (ye[t] = qt(this.download(t))), this.svgElSource && ye[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
371
|
+
const o = await ye[t];
|
|
444
372
|
this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
445
373
|
} catch (o) {
|
|
446
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
374
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[t], this.$emit("error", o);
|
|
447
375
|
}
|
|
448
376
|
},
|
|
449
377
|
/**
|
|
@@ -468,7 +396,7 @@ const qe = S(ut), pt = ["disabled"], mt = {
|
|
|
468
396
|
},
|
|
469
397
|
expose: []
|
|
470
398
|
});
|
|
471
|
-
function
|
|
399
|
+
function $t(t, o) {
|
|
472
400
|
const e = t.getElementsByTagName("title");
|
|
473
401
|
if (e.length)
|
|
474
402
|
e[0].textContent = o;
|
|
@@ -477,7 +405,7 @@ function It(t, o) {
|
|
|
477
405
|
n.textContent = o, t.insertBefore(n, t.firstChild);
|
|
478
406
|
}
|
|
479
407
|
}
|
|
480
|
-
function
|
|
408
|
+
function qt(t) {
|
|
481
409
|
if (t.getIsPending)
|
|
482
410
|
return t;
|
|
483
411
|
let o = !0;
|
|
@@ -489,7 +417,7 @@ function xt(t) {
|
|
|
489
417
|
);
|
|
490
418
|
return e.getIsPending = () => o, e;
|
|
491
419
|
}
|
|
492
|
-
const
|
|
420
|
+
const xt = /* @__PURE__ */ L({
|
|
493
421
|
__name: "QIconSvg",
|
|
494
422
|
props: {
|
|
495
423
|
icon: {},
|
|
@@ -508,18 +436,203 @@ const Lt = /* @__PURE__ */ L({
|
|
|
508
436
|
function i() {
|
|
509
437
|
n("unloaded");
|
|
510
438
|
}
|
|
511
|
-
return (a,
|
|
439
|
+
return (a, r) => (u(), x(m(wt), {
|
|
512
440
|
class: C(["q-icon", "q-icon__svg", e.class]),
|
|
513
441
|
src: e.bundle,
|
|
514
442
|
symbol: e.icon,
|
|
515
|
-
style:
|
|
443
|
+
style: ue(l.value),
|
|
516
444
|
onLoaded: s,
|
|
517
445
|
onUnloaded: i
|
|
518
446
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
519
447
|
}
|
|
520
|
-
}),
|
|
448
|
+
}), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(xt);
|
|
449
|
+
function It(t) {
|
|
450
|
+
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
451
|
+
}
|
|
452
|
+
function Lt(t) {
|
|
453
|
+
const o = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
454
|
+
if (o) {
|
|
455
|
+
const e = parseInt(o[1], 10), n = parseInt(o[2], 10), l = parseInt(o[3], 10);
|
|
456
|
+
return { r: e, g: n, b: l };
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
function et(t) {
|
|
460
|
+
if (It(t)) {
|
|
461
|
+
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
462
|
+
const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
|
|
463
|
+
return { r: o, g: e, b: n };
|
|
464
|
+
} else {
|
|
465
|
+
const o = Lt(t);
|
|
466
|
+
if (o)
|
|
467
|
+
return o;
|
|
468
|
+
}
|
|
469
|
+
throw new Error("Invalid color format");
|
|
470
|
+
}
|
|
471
|
+
function St(t) {
|
|
472
|
+
const o = t.r / 255, e = t.g / 255, n = t.b / 255, l = Math.max(o, e, n), s = Math.min(o, e, n);
|
|
473
|
+
let i = 0, a;
|
|
474
|
+
const r = (l + s) / 2;
|
|
475
|
+
if (l === s)
|
|
476
|
+
i = a = 0;
|
|
477
|
+
else {
|
|
478
|
+
const f = l - s;
|
|
479
|
+
switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
|
|
480
|
+
case o:
|
|
481
|
+
i = (e - n) / f + (e < n ? 6 : 0);
|
|
482
|
+
break;
|
|
483
|
+
case e:
|
|
484
|
+
i = (n - o) / f + 2;
|
|
485
|
+
break;
|
|
486
|
+
case n:
|
|
487
|
+
i = (o - e) / f + 4;
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
i /= 6;
|
|
491
|
+
}
|
|
492
|
+
return {
|
|
493
|
+
h: Math.round(i * 360),
|
|
494
|
+
s: Math.round(a * 100),
|
|
495
|
+
l: Math.round(r * 100)
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
function Bt(t) {
|
|
499
|
+
return t > 50 ? "#000" : "#fff";
|
|
500
|
+
}
|
|
501
|
+
const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Tt = { class: "q-badge__content" }, Vt = {
|
|
502
|
+
remove: {
|
|
503
|
+
icon: "close"
|
|
504
|
+
}
|
|
505
|
+
}, Et = /* @__PURE__ */ L({
|
|
506
|
+
__name: "QBadge",
|
|
507
|
+
props: {
|
|
508
|
+
color: { default: "primary" },
|
|
509
|
+
variant: { default: "tonal" },
|
|
510
|
+
removable: { type: Boolean },
|
|
511
|
+
pill: { type: Boolean },
|
|
512
|
+
icons: { default: () => Vt }
|
|
513
|
+
},
|
|
514
|
+
emits: ["click:remove"],
|
|
515
|
+
setup(t, { emit: o }) {
|
|
516
|
+
const e = t, n = o, l = k(
|
|
517
|
+
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
518
|
+
), s = k(() => {
|
|
519
|
+
const r = l.value ? `q-badge--${e.color}` : void 0;
|
|
520
|
+
return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
|
|
521
|
+
}), i = k(() => {
|
|
522
|
+
let r, f;
|
|
523
|
+
if (!l.value)
|
|
524
|
+
if (r = e.color, e.variant === "tonal")
|
|
525
|
+
f = e.color;
|
|
526
|
+
else {
|
|
527
|
+
const q = et(r), I = St(q);
|
|
528
|
+
f = Bt(I.l);
|
|
529
|
+
}
|
|
530
|
+
return {
|
|
531
|
+
"--q-badge-color": r,
|
|
532
|
+
"--q-badge-text-color": f
|
|
533
|
+
};
|
|
534
|
+
});
|
|
535
|
+
function a() {
|
|
536
|
+
n("click:remove");
|
|
537
|
+
}
|
|
538
|
+
return (r, f) => (u(), v("span", {
|
|
539
|
+
class: C(s.value),
|
|
540
|
+
role: "presentation",
|
|
541
|
+
style: ue(i.value)
|
|
542
|
+
}, [
|
|
543
|
+
Ct,
|
|
544
|
+
A("div", Tt, [
|
|
545
|
+
y(r.$slots, "default"),
|
|
546
|
+
e.removable ? (u(), x(m(de), {
|
|
547
|
+
key: 0,
|
|
548
|
+
class: "q-badge__remove",
|
|
549
|
+
borderless: "",
|
|
550
|
+
tabindex: "0",
|
|
551
|
+
onClick: a
|
|
552
|
+
}, {
|
|
553
|
+
default: _(() => [
|
|
554
|
+
z(m(F), W(ie(e.icons.remove)), null, 16)
|
|
555
|
+
]),
|
|
556
|
+
_: 1
|
|
557
|
+
})) : $("", !0)
|
|
558
|
+
])
|
|
559
|
+
], 6));
|
|
560
|
+
}
|
|
561
|
+
}), Dt = B(Et), At = /* @__PURE__ */ L({
|
|
562
|
+
__name: "QButtonGroup",
|
|
563
|
+
props: {
|
|
564
|
+
disabled: { type: Boolean },
|
|
565
|
+
borderless: { type: Boolean },
|
|
566
|
+
elevated: { type: Boolean },
|
|
567
|
+
class: { default: void 0 }
|
|
568
|
+
},
|
|
569
|
+
setup(t) {
|
|
570
|
+
const o = t;
|
|
571
|
+
return Re({
|
|
572
|
+
QButton: {
|
|
573
|
+
bStyle: "secondary",
|
|
574
|
+
disabled: ze(o, "disabled"),
|
|
575
|
+
borderless: ze(o, "borderless"),
|
|
576
|
+
elevated: !1
|
|
577
|
+
}
|
|
578
|
+
}), (e, n) => (u(), v("div", {
|
|
579
|
+
class: C([
|
|
580
|
+
"q-btn-group",
|
|
581
|
+
{
|
|
582
|
+
"q-btn-group--elevated": o.elevated
|
|
583
|
+
},
|
|
584
|
+
o.class
|
|
585
|
+
])
|
|
586
|
+
}, [
|
|
587
|
+
y(e.$slots, "default")
|
|
588
|
+
], 2));
|
|
589
|
+
}
|
|
590
|
+
}), tt = B(At), zt = /* @__PURE__ */ L({
|
|
591
|
+
__name: "QButtonToggle",
|
|
592
|
+
props: /* @__PURE__ */ X({
|
|
593
|
+
options: {},
|
|
594
|
+
disabled: { type: Boolean },
|
|
595
|
+
borderless: { type: Boolean },
|
|
596
|
+
elevated: { type: Boolean },
|
|
597
|
+
required: { type: Boolean },
|
|
598
|
+
class: {}
|
|
599
|
+
}, {
|
|
600
|
+
modelValue: {},
|
|
601
|
+
modelModifiers: {}
|
|
602
|
+
}),
|
|
603
|
+
emits: ["update:modelValue"],
|
|
604
|
+
setup(t) {
|
|
605
|
+
const o = t, e = ee(t, "modelValue");
|
|
606
|
+
function n(l) {
|
|
607
|
+
e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
|
|
608
|
+
}
|
|
609
|
+
return (l, s) => (u(), x(m(tt), {
|
|
610
|
+
"b-style": "secondary",
|
|
611
|
+
class: C(o.class),
|
|
612
|
+
disabled: o.disabled,
|
|
613
|
+
borderless: o.borderless,
|
|
614
|
+
elevated: o.elevated
|
|
615
|
+
}, {
|
|
616
|
+
default: _(() => [
|
|
617
|
+
(u(!0), v(te, null, we(o.options, (i) => (u(), x(m(de), {
|
|
618
|
+
key: i.key,
|
|
619
|
+
title: i.title,
|
|
620
|
+
label: i.label,
|
|
621
|
+
active: e.value === i.key,
|
|
622
|
+
onClick: () => n(i)
|
|
623
|
+
}, {
|
|
624
|
+
default: _(() => [
|
|
625
|
+
y(l.$slots, i.key)
|
|
626
|
+
]),
|
|
627
|
+
_: 2
|
|
628
|
+
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
629
|
+
]),
|
|
630
|
+
_: 3
|
|
631
|
+
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
632
|
+
}
|
|
633
|
+
}), Qt = B(zt), Mt = /* @__PURE__ */ L({
|
|
521
634
|
__name: "QList",
|
|
522
|
-
props: /* @__PURE__ */
|
|
635
|
+
props: /* @__PURE__ */ X({
|
|
523
636
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
524
637
|
items: {},
|
|
525
638
|
groups: { default: () => [] },
|
|
@@ -535,142 +648,142 @@ const Lt = /* @__PURE__ */ L({
|
|
|
535
648
|
}),
|
|
536
649
|
emits: ["update:modelValue"],
|
|
537
650
|
setup(t, { expose: o }) {
|
|
538
|
-
const e = t, n =
|
|
539
|
-
(
|
|
651
|
+
const e = t, n = ee(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
|
|
652
|
+
(p) => e.items.some((g) => g.group === p.id)
|
|
540
653
|
) : [{ id: "", title: "" }]), a = V(null);
|
|
541
|
-
function
|
|
542
|
-
n.value =
|
|
654
|
+
function r(p) {
|
|
655
|
+
n.value = p;
|
|
543
656
|
}
|
|
544
|
-
function
|
|
657
|
+
function f() {
|
|
545
658
|
l.value = !0;
|
|
546
659
|
}
|
|
547
|
-
function
|
|
660
|
+
function q() {
|
|
548
661
|
l.value = !1;
|
|
549
662
|
}
|
|
550
|
-
function
|
|
551
|
-
var
|
|
552
|
-
if ((
|
|
663
|
+
function I(p) {
|
|
664
|
+
var h;
|
|
665
|
+
if ((h = a.value) != null && h.contains(p.relatedTarget))
|
|
553
666
|
return;
|
|
554
667
|
let g;
|
|
555
|
-
n.value ? g = e.items.findIndex((
|
|
556
|
-
const
|
|
557
|
-
|
|
668
|
+
n.value ? g = e.items.findIndex((U) => U[e.itemValue] === n.value) : g = G();
|
|
669
|
+
const c = l.value;
|
|
670
|
+
S(g, c);
|
|
558
671
|
}
|
|
559
|
-
function
|
|
560
|
-
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
672
|
+
function M(p) {
|
|
673
|
+
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
|
|
561
674
|
case "ArrowDown":
|
|
562
|
-
|
|
675
|
+
E("next");
|
|
563
676
|
break;
|
|
564
677
|
case "ArrowUp":
|
|
565
|
-
|
|
678
|
+
E("prev");
|
|
566
679
|
break;
|
|
567
680
|
case "Home":
|
|
568
|
-
|
|
681
|
+
E("first");
|
|
569
682
|
break;
|
|
570
683
|
case "End":
|
|
571
|
-
|
|
684
|
+
E("last");
|
|
572
685
|
break;
|
|
573
686
|
}
|
|
574
687
|
}
|
|
575
|
-
function
|
|
576
|
-
switch (
|
|
688
|
+
function E(p) {
|
|
689
|
+
switch (p) {
|
|
577
690
|
case "next":
|
|
578
691
|
case "prev":
|
|
579
|
-
|
|
692
|
+
S(H(p));
|
|
580
693
|
break;
|
|
581
694
|
case "first":
|
|
582
|
-
|
|
695
|
+
S(G());
|
|
583
696
|
break;
|
|
584
697
|
case "last":
|
|
585
|
-
|
|
698
|
+
S(O());
|
|
586
699
|
break;
|
|
587
700
|
}
|
|
588
701
|
}
|
|
589
|
-
function
|
|
590
|
-
var
|
|
591
|
-
(
|
|
702
|
+
function S(p, g = !1) {
|
|
703
|
+
var h;
|
|
704
|
+
(h = T()[p]) == null || h.focus({ preventScroll: g });
|
|
592
705
|
}
|
|
593
|
-
function
|
|
706
|
+
function T() {
|
|
594
707
|
var g;
|
|
595
|
-
const
|
|
596
|
-
return
|
|
708
|
+
const p = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
|
|
709
|
+
return p ? Array.from(p) : [];
|
|
597
710
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
711
|
+
function Y(p) {
|
|
712
|
+
return T()[p];
|
|
600
713
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
714
|
+
function oe() {
|
|
715
|
+
return T().indexOf(document.activeElement);
|
|
603
716
|
}
|
|
604
|
-
function
|
|
605
|
-
const
|
|
606
|
-
return g ?
|
|
607
|
-
}
|
|
608
|
-
function
|
|
609
|
-
const
|
|
610
|
-
return g ?
|
|
611
|
-
}
|
|
612
|
-
function
|
|
613
|
-
return g === "prev" &&
|
|
614
|
-
}
|
|
615
|
-
function
|
|
616
|
-
const g =
|
|
617
|
-
return
|
|
618
|
-
}
|
|
619
|
-
function
|
|
620
|
-
const
|
|
621
|
-
if (
|
|
622
|
-
return
|
|
623
|
-
let
|
|
624
|
-
for (; !
|
|
625
|
-
if (
|
|
626
|
-
return
|
|
627
|
-
|
|
717
|
+
function G() {
|
|
718
|
+
const p = T(), g = p.find((c) => Q(c));
|
|
719
|
+
return g ? p.indexOf(g) : -1;
|
|
720
|
+
}
|
|
721
|
+
function O() {
|
|
722
|
+
const p = T(), g = [...p].reverse().find((c) => Q(c));
|
|
723
|
+
return g ? p.indexOf(g) : -1;
|
|
724
|
+
}
|
|
725
|
+
function ne(p, g, c) {
|
|
726
|
+
return g === "prev" && p === 0 || g === "next" && p === c.length - 1;
|
|
727
|
+
}
|
|
728
|
+
function H(p) {
|
|
729
|
+
const g = oe();
|
|
730
|
+
return le(g, p);
|
|
731
|
+
}
|
|
732
|
+
function le(p, g) {
|
|
733
|
+
const c = T();
|
|
734
|
+
if (ne(p, g, c))
|
|
735
|
+
return p;
|
|
736
|
+
let h = p + (g === "next" ? 1 : -1);
|
|
737
|
+
for (; !Q(c[h]); ) {
|
|
738
|
+
if (ne(h, g, c))
|
|
739
|
+
return p;
|
|
740
|
+
h += g === "next" ? 1 : -1;
|
|
628
741
|
}
|
|
629
|
-
return
|
|
742
|
+
return h;
|
|
630
743
|
}
|
|
631
|
-
function
|
|
632
|
-
return
|
|
744
|
+
function Q(p) {
|
|
745
|
+
return p.tabIndex === -2;
|
|
633
746
|
}
|
|
634
|
-
function
|
|
635
|
-
return
|
|
747
|
+
function R(p) {
|
|
748
|
+
return p ? e.items.filter((g) => g.group === p) : e.items;
|
|
636
749
|
}
|
|
637
750
|
return o({
|
|
638
|
-
focusItem:
|
|
639
|
-
getItem:
|
|
640
|
-
getAdjacentItemIndex:
|
|
641
|
-
getFirstFocusableItemIndex:
|
|
642
|
-
getLastFocusableItemIndex:
|
|
643
|
-
}), (
|
|
751
|
+
focusItem: S,
|
|
752
|
+
getItem: Y,
|
|
753
|
+
getAdjacentItemIndex: le,
|
|
754
|
+
getFirstFocusableItemIndex: G,
|
|
755
|
+
getLastFocusableItemIndex: O
|
|
756
|
+
}), (p, g) => (u(), x(Ke(s.value), {
|
|
644
757
|
ref_key: "listRef",
|
|
645
758
|
ref: a,
|
|
646
759
|
class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
647
760
|
role: "listbox",
|
|
648
761
|
tabindex: e.disabled ? -1 : 0,
|
|
649
|
-
onFocus:
|
|
650
|
-
onMousedown:
|
|
651
|
-
onMouseup:
|
|
652
|
-
onKeydown:
|
|
762
|
+
onFocus: I,
|
|
763
|
+
onMousedown: f,
|
|
764
|
+
onMouseup: q,
|
|
765
|
+
onKeydown: M
|
|
653
766
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
(u(!0),
|
|
656
|
-
key:
|
|
657
|
-
id:
|
|
658
|
-
title: i.value.length === 1 ? void 0 :
|
|
767
|
+
default: _(() => [
|
|
768
|
+
(u(!0), v(te, null, we(i.value, (c) => (u(), x(m(nt), {
|
|
769
|
+
key: c.id,
|
|
770
|
+
id: c.id,
|
|
771
|
+
title: i.value.length === 1 ? void 0 : c.title
|
|
659
772
|
}, {
|
|
660
|
-
default:
|
|
661
|
-
(u(!0),
|
|
662
|
-
key:
|
|
663
|
-
value:
|
|
664
|
-
label:
|
|
665
|
-
description:
|
|
666
|
-
icon:
|
|
667
|
-
disabled: e.disabled ||
|
|
668
|
-
highlighted: e.highlighted ===
|
|
669
|
-
selected: n.value ===
|
|
670
|
-
onSelect:
|
|
773
|
+
default: _(() => [
|
|
774
|
+
(u(!0), v(te, null, we(R(c.id), (h) => (u(), x(m(ot), {
|
|
775
|
+
key: h[e.itemValue],
|
|
776
|
+
value: h[e.itemValue],
|
|
777
|
+
label: h[e.itemLabel],
|
|
778
|
+
description: h.description,
|
|
779
|
+
icon: h.icon,
|
|
780
|
+
disabled: e.disabled || c.disabled || h.disabled,
|
|
781
|
+
highlighted: e.highlighted === h[e.itemValue],
|
|
782
|
+
selected: n.value === h[e.itemValue],
|
|
783
|
+
onSelect: r
|
|
671
784
|
}, {
|
|
672
|
-
default:
|
|
673
|
-
|
|
785
|
+
default: _(() => [
|
|
786
|
+
y(p.$slots, "item", { item: h })
|
|
674
787
|
]),
|
|
675
788
|
_: 2
|
|
676
789
|
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -682,21 +795,21 @@ const Lt = /* @__PURE__ */ L({
|
|
|
682
795
|
}, 40, ["class", "tabindex"]));
|
|
683
796
|
}
|
|
684
797
|
});
|
|
685
|
-
let
|
|
686
|
-
function
|
|
687
|
-
return t || `uid-${++
|
|
798
|
+
let Ft = 0;
|
|
799
|
+
function ve(t) {
|
|
800
|
+
return t || `uid-${++Ft}`;
|
|
688
801
|
}
|
|
689
|
-
const
|
|
802
|
+
const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
|
|
690
803
|
key: 0,
|
|
691
804
|
class: "q-list-item__description"
|
|
692
|
-
},
|
|
805
|
+
}, Ht = { class: "q-list-item__check-container" }, Kt = {
|
|
693
806
|
check: {
|
|
694
807
|
icon: "check"
|
|
695
808
|
},
|
|
696
809
|
description: {
|
|
697
810
|
icon: "information-outline"
|
|
698
811
|
}
|
|
699
|
-
},
|
|
812
|
+
}, jt = /* @__PURE__ */ L({
|
|
700
813
|
__name: "QListItem",
|
|
701
814
|
props: {
|
|
702
815
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -704,21 +817,21 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ct = {
|
|
|
704
817
|
icon: { default: void 0 },
|
|
705
818
|
selected: { type: Boolean },
|
|
706
819
|
highlighted: { type: Boolean },
|
|
707
|
-
icons: { default: () =>
|
|
820
|
+
icons: { default: () => Kt },
|
|
708
821
|
disabled: { type: Boolean },
|
|
709
822
|
description: { default: void 0 }
|
|
710
823
|
},
|
|
711
824
|
emits: ["select"],
|
|
712
825
|
setup(t, { emit: o }) {
|
|
713
|
-
const e = t, n = o, l =
|
|
826
|
+
const e = t, n = o, l = ve();
|
|
714
827
|
function s() {
|
|
715
828
|
e.disabled || n("select", e.value);
|
|
716
829
|
}
|
|
717
830
|
function i(a) {
|
|
718
831
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
719
832
|
}
|
|
720
|
-
return (a,
|
|
721
|
-
id:
|
|
833
|
+
return (a, r) => (u(), v("li", {
|
|
834
|
+
id: m(l),
|
|
722
835
|
"data-key": e.value,
|
|
723
836
|
role: "option",
|
|
724
837
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -733,107 +846,107 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ct = {
|
|
|
733
846
|
"aria-label": e.label,
|
|
734
847
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
735
848
|
onKeydown: i,
|
|
736
|
-
onClick:
|
|
849
|
+
onClick: pe(s, ["stop", "prevent"])
|
|
737
850
|
}, [
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
e.icon ? (u(),
|
|
742
|
-
|
|
851
|
+
A("div", Ut, [
|
|
852
|
+
A("div", Pt, [
|
|
853
|
+
y(a.$slots, "default", {}, () => [
|
|
854
|
+
e.icon ? (u(), x(m(F), W(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
|
|
855
|
+
me(" " + N(e.label), 1)
|
|
743
856
|
])
|
|
744
857
|
]),
|
|
745
|
-
e.description ? (u(),
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
])) :
|
|
858
|
+
e.description ? (u(), v("div", Nt, [
|
|
859
|
+
z(m(F), W(ie(e.icons.description)), null, 16),
|
|
860
|
+
A("span", null, N(e.description), 1)
|
|
861
|
+
])) : $("", !0)
|
|
749
862
|
]),
|
|
750
|
-
|
|
751
|
-
e.selected ? (u(),
|
|
863
|
+
A("div", Ht, [
|
|
864
|
+
e.selected ? (u(), x(m(F), re({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
|
|
752
865
|
])
|
|
753
|
-
], 42,
|
|
866
|
+
], 42, Ot));
|
|
754
867
|
}
|
|
755
|
-
}),
|
|
868
|
+
}), Gt = ["data-key", "aria-labelledby"], Rt = ["id"], Wt = /* @__PURE__ */ L({
|
|
756
869
|
__name: "QListItemGroup",
|
|
757
870
|
props: {
|
|
758
871
|
id: {},
|
|
759
872
|
title: { default: "" }
|
|
760
873
|
},
|
|
761
874
|
setup(t) {
|
|
762
|
-
const o = t, e =
|
|
763
|
-
return (n, l) => (u(),
|
|
875
|
+
const o = t, e = ve();
|
|
876
|
+
return (n, l) => (u(), v("ul", {
|
|
764
877
|
class: "q-list-item-group",
|
|
765
878
|
role: "group",
|
|
766
879
|
"data-key": o.id,
|
|
767
|
-
"aria-labelledby": o.title ?
|
|
880
|
+
"aria-labelledby": o.title ? m(e) : void 0
|
|
768
881
|
}, [
|
|
769
|
-
o.title ? (u(),
|
|
882
|
+
o.title ? (u(), v("li", {
|
|
770
883
|
key: 0,
|
|
771
|
-
id:
|
|
884
|
+
id: m(e),
|
|
772
885
|
class: "q-list-item-group__title",
|
|
773
886
|
role: "presentation"
|
|
774
|
-
},
|
|
775
|
-
|
|
776
|
-
], 8,
|
|
887
|
+
}, N(o.title), 9, Rt)) : $("", !0),
|
|
888
|
+
y(n.$slots, "default")
|
|
889
|
+
], 8, Gt));
|
|
777
890
|
}
|
|
778
|
-
}),
|
|
779
|
-
function
|
|
780
|
-
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(),
|
|
781
|
-
let
|
|
891
|
+
}), Te = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
|
|
892
|
+
function Xt(t, o, e, n) {
|
|
893
|
+
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), I = Jt(q, f, l), M = Zt(I, a, f);
|
|
894
|
+
let E;
|
|
782
895
|
if (n != null && n.arrow) {
|
|
783
|
-
if (!
|
|
896
|
+
if (!r)
|
|
784
897
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
785
|
-
|
|
898
|
+
E = eo(M, i, a, r, f);
|
|
786
899
|
}
|
|
787
|
-
return { overlayCoords:
|
|
900
|
+
return { overlayCoords: M, arrowCoords: E, placement: f };
|
|
788
901
|
}
|
|
789
|
-
function
|
|
902
|
+
function Yt(t, o, e, n) {
|
|
790
903
|
const l = Fe(t, o, e, n);
|
|
791
904
|
if (Oe(l)) {
|
|
792
|
-
const s =
|
|
905
|
+
const s = ge(e), a = {
|
|
793
906
|
top: "bottom",
|
|
794
907
|
bottom: "top",
|
|
795
908
|
left: "right",
|
|
796
909
|
right: "left"
|
|
797
|
-
}[s],
|
|
910
|
+
}[s], r = Fe(
|
|
798
911
|
t,
|
|
799
912
|
o,
|
|
800
913
|
a,
|
|
801
914
|
n
|
|
802
915
|
);
|
|
803
|
-
if (Oe(
|
|
916
|
+
if (Oe(r))
|
|
804
917
|
return e;
|
|
805
|
-
const
|
|
806
|
-
return
|
|
918
|
+
const f = lo(e);
|
|
919
|
+
return f ? `${a}-${f}` : a;
|
|
807
920
|
}
|
|
808
921
|
return e;
|
|
809
922
|
}
|
|
810
|
-
function
|
|
811
|
-
const n =
|
|
923
|
+
function Zt(t, o, e) {
|
|
924
|
+
const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...t };
|
|
812
925
|
return n === "x" ? s.x = l(t.x, ke, window.innerWidth - o.width - ke) : s.y = l(t.y, ke, window.innerHeight - o.height - ke), s;
|
|
813
926
|
}
|
|
814
|
-
function
|
|
815
|
-
const n =
|
|
927
|
+
function Jt(t, o, e) {
|
|
928
|
+
const n = ge(o);
|
|
816
929
|
return {
|
|
817
930
|
x: t.x + (n === "left" ? -e : n === "right" ? e : 0),
|
|
818
931
|
y: t.y + (n === "top" ? -e : n === "bottom" ? e : 0)
|
|
819
932
|
};
|
|
820
933
|
}
|
|
821
|
-
function
|
|
822
|
-
if (
|
|
823
|
-
const i = o.top + o.height / 2, a = t.y + e.height / 2,
|
|
824
|
-
if (
|
|
934
|
+
function eo(t, o, e, n, l) {
|
|
935
|
+
if ($e(l) === "y") {
|
|
936
|
+
const i = o.top + o.height / 2, a = t.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
|
|
937
|
+
if (f > 0 && f < e.height - n.height)
|
|
825
938
|
return {
|
|
826
|
-
y:
|
|
939
|
+
y: f
|
|
827
940
|
};
|
|
828
941
|
} else {
|
|
829
|
-
const i = o.left + o.width / 2, a = t.x + e.width / 2,
|
|
830
|
-
if (
|
|
942
|
+
const i = o.left + o.width / 2, a = t.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
|
|
943
|
+
if (f > 0 && f < e.width - n.width)
|
|
831
944
|
return {
|
|
832
|
-
x:
|
|
945
|
+
x: f
|
|
833
946
|
};
|
|
834
947
|
}
|
|
835
948
|
}
|
|
836
|
-
function
|
|
949
|
+
function to(t, o, e) {
|
|
837
950
|
const [n, l] = e.split("-"), s = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2;
|
|
838
951
|
let a;
|
|
839
952
|
switch (n) {
|
|
@@ -854,13 +967,13 @@ function Kt(t, o, e) {
|
|
|
854
967
|
}
|
|
855
968
|
if (!l)
|
|
856
969
|
return a;
|
|
857
|
-
const
|
|
970
|
+
const f = $e(e) === "y" ? "height" : "width", q = $e(e), I = t[f] / 2 - o[f] / 2;
|
|
858
971
|
switch (l) {
|
|
859
972
|
case "start":
|
|
860
|
-
a[
|
|
973
|
+
a[q] -= I;
|
|
861
974
|
break;
|
|
862
975
|
case "end":
|
|
863
|
-
a[
|
|
976
|
+
a[q] += I;
|
|
864
977
|
break;
|
|
865
978
|
default:
|
|
866
979
|
throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
|
|
@@ -868,7 +981,7 @@ function Kt(t, o, e) {
|
|
|
868
981
|
return a;
|
|
869
982
|
}
|
|
870
983
|
function Fe(t, o, e, n) {
|
|
871
|
-
const l =
|
|
984
|
+
const l = ge(e);
|
|
872
985
|
let s = 0;
|
|
873
986
|
switch (l) {
|
|
874
987
|
case "top":
|
|
@@ -888,34 +1001,34 @@ function Fe(t, o, e, n) {
|
|
|
888
1001
|
}
|
|
889
1002
|
return s;
|
|
890
1003
|
}
|
|
891
|
-
function
|
|
1004
|
+
function oo(t) {
|
|
892
1005
|
return t === "x" ? "y" : "x";
|
|
893
1006
|
}
|
|
894
|
-
function
|
|
895
|
-
const o =
|
|
1007
|
+
function no(t) {
|
|
1008
|
+
const o = ge(t);
|
|
896
1009
|
return ["left", "right"].includes(o) ? "x" : "y";
|
|
897
1010
|
}
|
|
898
|
-
function
|
|
899
|
-
return
|
|
1011
|
+
function $e(t) {
|
|
1012
|
+
return oo(no(t));
|
|
900
1013
|
}
|
|
901
|
-
function
|
|
1014
|
+
function ge(t) {
|
|
902
1015
|
const [o] = t.split("-");
|
|
903
1016
|
return o;
|
|
904
1017
|
}
|
|
905
|
-
function
|
|
1018
|
+
function lo(t) {
|
|
906
1019
|
const [, o] = t.split("-");
|
|
907
1020
|
return o;
|
|
908
1021
|
}
|
|
909
1022
|
function Oe(t) {
|
|
910
1023
|
return t < 0;
|
|
911
1024
|
}
|
|
912
|
-
function
|
|
1025
|
+
function ao(t) {
|
|
913
1026
|
return typeof t == "string" ? document.querySelector(t) : t;
|
|
914
1027
|
}
|
|
915
|
-
const
|
|
1028
|
+
const so = ["role"], io = /* @__PURE__ */ L({
|
|
916
1029
|
inheritAttrs: !1,
|
|
917
1030
|
__name: "QOverlay",
|
|
918
|
-
props: /* @__PURE__ */
|
|
1031
|
+
props: /* @__PURE__ */ X({
|
|
919
1032
|
anchor: { default: void 0 },
|
|
920
1033
|
appearance: { default: "regular" },
|
|
921
1034
|
arrow: { type: Boolean },
|
|
@@ -937,11 +1050,11 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
937
1050
|
modelValue: { type: Boolean },
|
|
938
1051
|
modelModifiers: {}
|
|
939
1052
|
}),
|
|
940
|
-
emits: /* @__PURE__ */
|
|
1053
|
+
emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
|
|
941
1054
|
setup(t, { emit: o }) {
|
|
942
|
-
const e = t, n = o, l =
|
|
1055
|
+
const e = t, n = o, l = ee(t, "modelValue"), s = k(() => [
|
|
943
1056
|
"q-overlay",
|
|
944
|
-
`q-overlay--${
|
|
1057
|
+
`q-overlay--${ge(a.placement)}`,
|
|
945
1058
|
{
|
|
946
1059
|
"q-overlay--independent": e.anchor === void 0,
|
|
947
1060
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
@@ -953,202 +1066,202 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
953
1066
|
left: 0,
|
|
954
1067
|
width: 0,
|
|
955
1068
|
placement: e.placement
|
|
956
|
-
}),
|
|
1069
|
+
}), r = Qe({
|
|
957
1070
|
top: void 0,
|
|
958
1071
|
left: void 0,
|
|
959
1072
|
hidden: !0
|
|
960
|
-
}),
|
|
961
|
-
|
|
962
|
-
const
|
|
1073
|
+
}), f = k(() => a.top !== 0 && a.left !== 0);
|
|
1074
|
+
Z(l, () => a.animating = !0);
|
|
1075
|
+
const q = k(() => {
|
|
963
1076
|
if (e.anchor === void 0)
|
|
964
1077
|
return;
|
|
965
|
-
const b =
|
|
1078
|
+
const b = Q(), ce = e.width === "anchor", j = ce ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
|
|
966
1079
|
return {
|
|
967
1080
|
top: `${a.top}px`,
|
|
968
1081
|
left: `${a.left}px`,
|
|
969
|
-
width:
|
|
1082
|
+
width: j !== void 0 ? `${j}px` : void 0
|
|
970
1083
|
};
|
|
971
|
-
}),
|
|
1084
|
+
}), I = k(() => {
|
|
972
1085
|
if (e.arrow)
|
|
973
1086
|
return {
|
|
974
|
-
top:
|
|
975
|
-
left:
|
|
976
|
-
opacity:
|
|
1087
|
+
top: r.top !== void 0 ? `${r.top}px` : void 0,
|
|
1088
|
+
left: r.left !== void 0 ? `${r.left}px` : void 0,
|
|
1089
|
+
opacity: r.hidden ? 0 : 1
|
|
977
1090
|
};
|
|
978
|
-
}),
|
|
979
|
-
function
|
|
980
|
-
const b =
|
|
981
|
-
if (!b || !
|
|
1091
|
+
}), M = V(null), E = V(null);
|
|
1092
|
+
function S() {
|
|
1093
|
+
const b = Q();
|
|
1094
|
+
if (!b || !E.value)
|
|
982
1095
|
return;
|
|
983
|
-
const
|
|
1096
|
+
const ce = {
|
|
984
1097
|
placement: e.placement,
|
|
985
1098
|
width: e.width,
|
|
986
1099
|
offset: e.offset,
|
|
987
1100
|
arrow: e.arrow
|
|
988
|
-
},
|
|
1101
|
+
}, j = Xt(
|
|
989
1102
|
b,
|
|
990
|
-
|
|
991
|
-
(
|
|
992
|
-
|
|
1103
|
+
E.value,
|
|
1104
|
+
(M == null ? void 0 : M.value) ?? void 0,
|
|
1105
|
+
ce
|
|
993
1106
|
);
|
|
994
|
-
a.left =
|
|
1107
|
+
a.left = j.overlayCoords.x, a.top = j.overlayCoords.y, a.placement = j.placement, r.hidden = j.arrowCoords === void 0, j.arrowCoords && (r.top = j.arrowCoords.y, r.left = j.arrowCoords.x);
|
|
995
1108
|
}
|
|
996
|
-
|
|
1109
|
+
Z(
|
|
997
1110
|
() => e.placement,
|
|
998
|
-
() =>
|
|
1111
|
+
() => J(S)
|
|
999
1112
|
);
|
|
1000
|
-
let
|
|
1001
|
-
function
|
|
1002
|
-
|
|
1113
|
+
let T;
|
|
1114
|
+
function Y() {
|
|
1115
|
+
G(0);
|
|
1003
1116
|
}
|
|
1004
|
-
function
|
|
1005
|
-
|
|
1117
|
+
function oe() {
|
|
1118
|
+
G(e.delay);
|
|
1006
1119
|
}
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1120
|
+
function G(b) {
|
|
1121
|
+
T || (T = window.setTimeout(() => {
|
|
1009
1122
|
l.value = !0;
|
|
1010
1123
|
}, b));
|
|
1011
1124
|
}
|
|
1012
|
-
function
|
|
1013
|
-
if (clearTimeout(
|
|
1014
|
-
const b =
|
|
1125
|
+
function O() {
|
|
1126
|
+
if (clearTimeout(T), T = void 0, l.value = !1, e.anchor && e.trigger === "click") {
|
|
1127
|
+
const b = Q();
|
|
1015
1128
|
b == null || b.focus();
|
|
1016
1129
|
}
|
|
1017
1130
|
}
|
|
1018
|
-
|
|
1019
|
-
function
|
|
1131
|
+
Z(f, () => J(ne));
|
|
1132
|
+
function ne() {
|
|
1020
1133
|
n("enter");
|
|
1021
1134
|
}
|
|
1022
|
-
let
|
|
1023
|
-
function
|
|
1024
|
-
window.clearTimeout(
|
|
1135
|
+
let H;
|
|
1136
|
+
function le() {
|
|
1137
|
+
window.clearTimeout(H), H = window.setTimeout(() => a.animating = !1, 200), n("leave");
|
|
1025
1138
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return e.anchor ?
|
|
1139
|
+
function Q() {
|
|
1140
|
+
return e.anchor ? ao(e.anchor) : null;
|
|
1028
1141
|
}
|
|
1029
|
-
let
|
|
1030
|
-
function
|
|
1031
|
-
const b =
|
|
1142
|
+
let R;
|
|
1143
|
+
function p() {
|
|
1144
|
+
const b = Q();
|
|
1032
1145
|
if (b)
|
|
1033
|
-
switch (
|
|
1146
|
+
switch (R = new MutationObserver(S), R.observe(b, {
|
|
1034
1147
|
attributes: !1,
|
|
1035
1148
|
childList: !0,
|
|
1036
1149
|
characterData: !0,
|
|
1037
1150
|
subtree: !0
|
|
1038
1151
|
}), e.trigger) {
|
|
1039
1152
|
case "click":
|
|
1040
|
-
b.addEventListener("click",
|
|
1153
|
+
b.addEventListener("click", Y);
|
|
1041
1154
|
break;
|
|
1042
1155
|
case "hover":
|
|
1043
|
-
b.addEventListener("mouseenter",
|
|
1156
|
+
b.addEventListener("mouseenter", oe), b.addEventListener("mouseleave", O), b.addEventListener("focusin", Y), b.addEventListener("focusout", O);
|
|
1044
1157
|
break;
|
|
1045
1158
|
}
|
|
1046
1159
|
}
|
|
1047
1160
|
function g() {
|
|
1048
|
-
const b =
|
|
1161
|
+
const b = Q();
|
|
1049
1162
|
if (b)
|
|
1050
|
-
switch (
|
|
1163
|
+
switch (R == null || R.disconnect(), e.trigger) {
|
|
1051
1164
|
case "click":
|
|
1052
|
-
b.removeEventListener("click",
|
|
1165
|
+
b.removeEventListener("click", Y);
|
|
1053
1166
|
break;
|
|
1054
1167
|
case "hover":
|
|
1055
|
-
b.removeEventListener("mouseenter",
|
|
1168
|
+
b.removeEventListener("mouseenter", oe), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", Y), b.removeEventListener("focusout", O);
|
|
1056
1169
|
break;
|
|
1057
1170
|
}
|
|
1058
1171
|
}
|
|
1059
|
-
function
|
|
1060
|
-
window.addEventListener("resize",
|
|
1172
|
+
function c() {
|
|
1173
|
+
window.addEventListener("resize", S), e.scrollLock || window.addEventListener("scroll", S);
|
|
1061
1174
|
}
|
|
1062
|
-
function
|
|
1063
|
-
window.removeEventListener("resize",
|
|
1175
|
+
function h() {
|
|
1176
|
+
window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
|
|
1064
1177
|
}
|
|
1065
|
-
let
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1178
|
+
let U;
|
|
1179
|
+
function ae() {
|
|
1180
|
+
Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
|
|
1068
1181
|
}
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1182
|
+
function K() {
|
|
1183
|
+
c(), e.spy ? ae() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && J(() => {
|
|
1071
1184
|
var b;
|
|
1072
|
-
return (b =
|
|
1185
|
+
return (b = E.value) == null ? void 0 : b.focus();
|
|
1073
1186
|
});
|
|
1074
1187
|
}
|
|
1075
|
-
function
|
|
1076
|
-
|
|
1188
|
+
function se() {
|
|
1189
|
+
h(), e.spy && (clearTimeout(U), U = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
|
|
1077
1190
|
}
|
|
1078
1191
|
function _e() {
|
|
1079
|
-
e.persistent ||
|
|
1192
|
+
e.persistent || O();
|
|
1080
1193
|
}
|
|
1081
1194
|
return je(() => {
|
|
1082
|
-
|
|
1083
|
-
}),
|
|
1084
|
-
g(),
|
|
1085
|
-
}),
|
|
1195
|
+
J(p);
|
|
1196
|
+
}), at(() => {
|
|
1197
|
+
g(), se();
|
|
1198
|
+
}), Z(
|
|
1086
1199
|
l,
|
|
1087
1200
|
(b) => {
|
|
1088
|
-
|
|
1201
|
+
J(() => b ? K() : se());
|
|
1089
1202
|
},
|
|
1090
1203
|
{ immediate: !0 }
|
|
1091
|
-
), (b,
|
|
1204
|
+
), (b, ce) => (u(), x(st, {
|
|
1092
1205
|
disabled: !l.value && !a.animating || e.inline,
|
|
1093
1206
|
to: e.attach
|
|
1094
1207
|
}, [
|
|
1095
|
-
i.value ? (u(),
|
|
1208
|
+
i.value ? (u(), v("div", {
|
|
1096
1209
|
key: 0,
|
|
1097
1210
|
class: C([
|
|
1098
1211
|
"q-overlay__underlay",
|
|
1099
1212
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1100
1213
|
])
|
|
1101
|
-
}, null, 2)) :
|
|
1102
|
-
|
|
1214
|
+
}, null, 2)) : $("", !0),
|
|
1215
|
+
z(it, {
|
|
1103
1216
|
name: e.transition,
|
|
1104
1217
|
appear: "",
|
|
1105
|
-
onLeave:
|
|
1218
|
+
onLeave: le
|
|
1106
1219
|
}, {
|
|
1107
|
-
default:
|
|
1108
|
-
l.value ? (u(),
|
|
1220
|
+
default: _(() => [
|
|
1221
|
+
l.value ? (u(), v("div", {
|
|
1109
1222
|
key: 0,
|
|
1110
1223
|
class: C(s.value),
|
|
1111
|
-
style:
|
|
1224
|
+
style: ue(q.value)
|
|
1112
1225
|
}, [
|
|
1113
|
-
|
|
1226
|
+
A("div", re({
|
|
1114
1227
|
class: "q-overlay__content",
|
|
1115
1228
|
ref_key: "overlayRef",
|
|
1116
|
-
ref:
|
|
1229
|
+
ref: E,
|
|
1117
1230
|
tabindex: "-1",
|
|
1118
1231
|
role: i.value ? "dialog" : void 0
|
|
1119
1232
|
}, b.$attrs, {
|
|
1120
|
-
onKeydown:
|
|
1233
|
+
onKeydown: rt(_e, ["escape"]),
|
|
1121
1234
|
onBlur: _e
|
|
1122
1235
|
}), [
|
|
1123
|
-
e.arrow ? (u(),
|
|
1236
|
+
e.arrow ? (u(), v("div", {
|
|
1124
1237
|
key: 0,
|
|
1125
1238
|
ref_key: "arrowRef",
|
|
1126
|
-
ref:
|
|
1239
|
+
ref: M,
|
|
1127
1240
|
role: "presentation",
|
|
1128
1241
|
class: "q-overlay__arrow",
|
|
1129
|
-
style:
|
|
1130
|
-
}, null, 4)) :
|
|
1131
|
-
|
|
1132
|
-
], 16,
|
|
1133
|
-
], 6)) :
|
|
1242
|
+
style: ue(I.value)
|
|
1243
|
+
}, null, 4)) : $("", !0),
|
|
1244
|
+
y(b.$slots, "default")
|
|
1245
|
+
], 16, so)
|
|
1246
|
+
], 6)) : $("", !0)
|
|
1134
1247
|
]),
|
|
1135
1248
|
_: 3
|
|
1136
1249
|
}, 8, ["name"])
|
|
1137
1250
|
], 8, ["disabled", "to"]));
|
|
1138
1251
|
}
|
|
1139
|
-
}),
|
|
1252
|
+
}), he = B(io), ro = ["id"], uo = {
|
|
1140
1253
|
key: 0,
|
|
1141
1254
|
class: "q-field__label"
|
|
1142
|
-
},
|
|
1255
|
+
}, co = ["for"], fo = {
|
|
1143
1256
|
key: 0,
|
|
1144
1257
|
class: "q-field__prepend"
|
|
1145
|
-
},
|
|
1258
|
+
}, po = {
|
|
1146
1259
|
key: 1,
|
|
1147
1260
|
class: "q-field__append"
|
|
1148
|
-
},
|
|
1261
|
+
}, mo = {
|
|
1149
1262
|
key: 1,
|
|
1150
1263
|
class: "q-field__extras"
|
|
1151
|
-
},
|
|
1264
|
+
}, vo = /* @__PURE__ */ L({
|
|
1152
1265
|
inheritAttrs: !1,
|
|
1153
1266
|
__name: "QField",
|
|
1154
1267
|
props: {
|
|
@@ -1162,11 +1275,11 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1162
1275
|
class: { default: void 0 }
|
|
1163
1276
|
},
|
|
1164
1277
|
setup(t, { expose: o }) {
|
|
1165
|
-
const e = t, n =
|
|
1278
|
+
const e = t, n = ve(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
|
|
1166
1279
|
return o({
|
|
1167
1280
|
fieldRef: l
|
|
1168
|
-
}), (i, a) => (u(),
|
|
1169
|
-
id:
|
|
1281
|
+
}), (i, a) => (u(), v("div", {
|
|
1282
|
+
id: m(n),
|
|
1170
1283
|
class: C([
|
|
1171
1284
|
"q-field",
|
|
1172
1285
|
`q-field--${e.size}`,
|
|
@@ -1178,37 +1291,37 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1178
1291
|
e.class
|
|
1179
1292
|
])
|
|
1180
1293
|
}, [
|
|
1181
|
-
e.label ? (u(),
|
|
1182
|
-
|
|
1183
|
-
|
|
1294
|
+
e.label ? (u(), v("div", uo, [
|
|
1295
|
+
y(i.$slots, "label.prepend"),
|
|
1296
|
+
A("label", {
|
|
1184
1297
|
for: e.for
|
|
1185
|
-
},
|
|
1186
|
-
|
|
1187
|
-
])) :
|
|
1188
|
-
|
|
1189
|
-
|
|
1298
|
+
}, N(e.label), 9, co),
|
|
1299
|
+
y(i.$slots, "label.append")
|
|
1300
|
+
])) : $("", !0),
|
|
1301
|
+
y(i.$slots, "control", {}, () => [
|
|
1302
|
+
A("div", re({
|
|
1190
1303
|
class: "q-field__control",
|
|
1191
1304
|
ref_key: "fieldRef",
|
|
1192
1305
|
ref: l
|
|
1193
1306
|
}, i.$attrs), [
|
|
1194
|
-
i.$slots.prepend ? (u(),
|
|
1195
|
-
|
|
1196
|
-
])) :
|
|
1197
|
-
|
|
1198
|
-
i.$slots.append ? (u(),
|
|
1199
|
-
|
|
1200
|
-
])) :
|
|
1307
|
+
i.$slots.prepend ? (u(), v("div", fo, [
|
|
1308
|
+
y(i.$slots, "prepend")
|
|
1309
|
+
])) : $("", !0),
|
|
1310
|
+
y(i.$slots, "default"),
|
|
1311
|
+
i.$slots.append ? (u(), v("div", po, [
|
|
1312
|
+
y(i.$slots, "append")
|
|
1313
|
+
])) : $("", !0)
|
|
1201
1314
|
], 16)
|
|
1202
1315
|
]),
|
|
1203
|
-
i.$slots.extras ? (u(),
|
|
1204
|
-
|
|
1205
|
-
])) :
|
|
1206
|
-
], 10,
|
|
1316
|
+
i.$slots.extras ? (u(), v("div", mo, [
|
|
1317
|
+
y(i.$slots, "extras")
|
|
1318
|
+
])) : $("", !0)
|
|
1319
|
+
], 10, ro));
|
|
1207
1320
|
}
|
|
1208
|
-
}), Ie =
|
|
1321
|
+
}), Ie = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
|
|
1209
1322
|
inheritAttrs: !1,
|
|
1210
1323
|
__name: "QTextField",
|
|
1211
|
-
props: /* @__PURE__ */
|
|
1324
|
+
props: /* @__PURE__ */ X({
|
|
1212
1325
|
id: { default: void 0 },
|
|
1213
1326
|
placeholder: { default: "" },
|
|
1214
1327
|
label: { default: "" },
|
|
@@ -1226,38 +1339,38 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1226
1339
|
}),
|
|
1227
1340
|
emits: ["update:modelValue"],
|
|
1228
1341
|
setup(t, { expose: o }) {
|
|
1229
|
-
const e = t, n =
|
|
1342
|
+
const e = t, n = ee(t, "modelValue"), l = ve(e.id), s = V(null), i = V(null), a = k(
|
|
1230
1343
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1231
1344
|
);
|
|
1232
1345
|
return o({
|
|
1233
1346
|
fieldRef: k(() => {
|
|
1234
|
-
var
|
|
1235
|
-
return (
|
|
1347
|
+
var r;
|
|
1348
|
+
return (r = s.value) == null ? void 0 : r.fieldRef;
|
|
1236
1349
|
}),
|
|
1237
1350
|
inputRef: i
|
|
1238
|
-
}), (
|
|
1351
|
+
}), (r, f) => (u(), x(m(Ie), {
|
|
1239
1352
|
ref_key: "fieldRef",
|
|
1240
1353
|
ref: s,
|
|
1241
1354
|
class: C(["q-text-field", e.class]),
|
|
1242
|
-
for:
|
|
1355
|
+
for: m(l),
|
|
1243
1356
|
label: e.label,
|
|
1244
1357
|
size: e.size,
|
|
1245
1358
|
readonly: e.readonly,
|
|
1246
1359
|
disabled: e.disabled,
|
|
1247
1360
|
required: e.required
|
|
1248
|
-
},
|
|
1249
|
-
"label.prepend":
|
|
1250
|
-
|
|
1361
|
+
}, qe({
|
|
1362
|
+
"label.prepend": _(() => [
|
|
1363
|
+
y(r.$slots, "label.prepend")
|
|
1251
1364
|
]),
|
|
1252
|
-
"label.append":
|
|
1253
|
-
|
|
1365
|
+
"label.append": _(() => [
|
|
1366
|
+
y(r.$slots, "label.append")
|
|
1254
1367
|
]),
|
|
1255
|
-
default:
|
|
1256
|
-
|
|
1257
|
-
"onUpdate:modelValue":
|
|
1368
|
+
default: _(() => [
|
|
1369
|
+
dt(A("input", re({
|
|
1370
|
+
"onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
|
|
1258
1371
|
ref_key: "inputRef",
|
|
1259
1372
|
ref: i,
|
|
1260
|
-
id:
|
|
1373
|
+
id: m(l),
|
|
1261
1374
|
class: "q-text-field__input",
|
|
1262
1375
|
type: e.type,
|
|
1263
1376
|
role: e.role,
|
|
@@ -1266,53 +1379,53 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1266
1379
|
readonly: e.readonly,
|
|
1267
1380
|
disabled: e.disabled,
|
|
1268
1381
|
maxlength: e.maxLength
|
|
1269
|
-
},
|
|
1270
|
-
[
|
|
1382
|
+
}, r.$attrs), null, 16, ho), [
|
|
1383
|
+
[ut, n.value]
|
|
1271
1384
|
])
|
|
1272
1385
|
]),
|
|
1273
1386
|
_: 2
|
|
1274
1387
|
}, [
|
|
1275
|
-
|
|
1388
|
+
r.$slots.prepend ? {
|
|
1276
1389
|
name: "prepend",
|
|
1277
|
-
fn:
|
|
1278
|
-
|
|
1390
|
+
fn: _(() => [
|
|
1391
|
+
y(r.$slots, "prepend")
|
|
1279
1392
|
]),
|
|
1280
1393
|
key: "0"
|
|
1281
1394
|
} : void 0,
|
|
1282
|
-
|
|
1395
|
+
r.$slots.append ? {
|
|
1283
1396
|
name: "append",
|
|
1284
|
-
fn:
|
|
1285
|
-
|
|
1397
|
+
fn: _(() => [
|
|
1398
|
+
y(r.$slots, "append")
|
|
1286
1399
|
]),
|
|
1287
1400
|
key: "1"
|
|
1288
1401
|
} : void 0,
|
|
1289
|
-
|
|
1402
|
+
r.$slots.extras ? {
|
|
1290
1403
|
name: "extras",
|
|
1291
|
-
fn:
|
|
1292
|
-
|
|
1404
|
+
fn: _(() => [
|
|
1405
|
+
y(r.$slots, "extras")
|
|
1293
1406
|
]),
|
|
1294
1407
|
key: "2"
|
|
1295
1408
|
} : void 0
|
|
1296
1409
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1297
1410
|
}
|
|
1298
|
-
}),
|
|
1411
|
+
}), lt = B(yo), bo = ["data-key"], go = {
|
|
1299
1412
|
key: 0,
|
|
1300
1413
|
class: "q-select__loader"
|
|
1301
|
-
},
|
|
1414
|
+
}, _o = {
|
|
1302
1415
|
key: 2,
|
|
1303
1416
|
class: "q-select__loader"
|
|
1304
|
-
},
|
|
1417
|
+
}, ko = {
|
|
1305
1418
|
noData: "No data available"
|
|
1306
|
-
},
|
|
1419
|
+
}, wo = {
|
|
1307
1420
|
chevron: {
|
|
1308
1421
|
icon: "chevron-down"
|
|
1309
1422
|
},
|
|
1310
1423
|
clear: {
|
|
1311
1424
|
icon: "close"
|
|
1312
1425
|
}
|
|
1313
|
-
},
|
|
1426
|
+
}, $o = /* @__PURE__ */ L({
|
|
1314
1427
|
__name: "QCombobox",
|
|
1315
|
-
props: /* @__PURE__ */
|
|
1428
|
+
props: /* @__PURE__ */ X({
|
|
1316
1429
|
id: { default: void 0 },
|
|
1317
1430
|
placeholder: { default: "" },
|
|
1318
1431
|
selectionMode: { default: "automatic" },
|
|
@@ -1329,8 +1442,8 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1329
1442
|
itemLabel: { default: "label" },
|
|
1330
1443
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1331
1444
|
size: { default: void 0 },
|
|
1332
|
-
texts: { default: () =>
|
|
1333
|
-
icons: { default: () =>
|
|
1445
|
+
texts: { default: () => ko },
|
|
1446
|
+
icons: { default: () => wo },
|
|
1334
1447
|
class: { default: void 0 }
|
|
1335
1448
|
}, {
|
|
1336
1449
|
modelValue: {
|
|
@@ -1342,158 +1455,158 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1342
1455
|
search: { default: "" },
|
|
1343
1456
|
searchModifiers: {}
|
|
1344
1457
|
}),
|
|
1345
|
-
emits: /* @__PURE__ */
|
|
1458
|
+
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1346
1459
|
setup(t, { expose: o, emit: e }) {
|
|
1347
|
-
const n = t, l = e, s =
|
|
1348
|
-
je(
|
|
1349
|
-
const
|
|
1350
|
-
var
|
|
1351
|
-
return n.filterMode === "manual" || !
|
|
1352
|
-
(
|
|
1460
|
+
const n = t, l = e, s = ee(t, "modelValue"), i = ee(t, "open"), a = ee(t, "search"), r = V(void 0), f = V(null), q = V(null), I = V(null), M = V(null);
|
|
1461
|
+
je(H);
|
|
1462
|
+
const E = k(() => n.clearable && !n.readonly && !n.disabled), S = k(() => {
|
|
1463
|
+
var d;
|
|
1464
|
+
return n.filterMode === "manual" || !O.value ? n.items : (d = n.items) == null ? void 0 : d.filter(
|
|
1465
|
+
(w) => w[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1353
1466
|
);
|
|
1354
|
-
}),
|
|
1355
|
-
var
|
|
1356
|
-
return (
|
|
1357
|
-
}),
|
|
1358
|
-
const
|
|
1359
|
-
if (
|
|
1360
|
-
return
|
|
1361
|
-
}),
|
|
1362
|
-
var
|
|
1363
|
-
if (
|
|
1467
|
+
}), T = k(() => {
|
|
1468
|
+
var d;
|
|
1469
|
+
return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
|
|
1470
|
+
}), Y = k(() => T.value === void 0), oe = k(() => {
|
|
1471
|
+
const d = r.value;
|
|
1472
|
+
if (d !== void 0 && S.value[d])
|
|
1473
|
+
return S.value[d];
|
|
1474
|
+
}), G = k(() => {
|
|
1475
|
+
var w;
|
|
1476
|
+
if (r.value === void 0)
|
|
1364
1477
|
return;
|
|
1365
|
-
const
|
|
1366
|
-
return
|
|
1367
|
-
}),
|
|
1368
|
-
var
|
|
1369
|
-
return a.value.length > 0 && a.value !== ((
|
|
1478
|
+
const d = (w = q.value) == null ? void 0 : w.getItem(r.value);
|
|
1479
|
+
return d == null ? void 0 : d.id;
|
|
1480
|
+
}), O = k(() => {
|
|
1481
|
+
var d;
|
|
1482
|
+
return a.value.length > 0 && a.value !== ((d = T.value) == null ? void 0 : d[n.itemLabel]);
|
|
1370
1483
|
});
|
|
1371
|
-
function
|
|
1372
|
-
s.value =
|
|
1484
|
+
function ne(d) {
|
|
1485
|
+
s.value = d, Q();
|
|
1373
1486
|
}
|
|
1374
|
-
function
|
|
1375
|
-
var
|
|
1376
|
-
const
|
|
1377
|
-
a.value !==
|
|
1487
|
+
function H() {
|
|
1488
|
+
var w;
|
|
1489
|
+
const d = ((w = T.value) == null ? void 0 : w[n.itemLabel]) || "";
|
|
1490
|
+
a.value !== d && (a.value = d);
|
|
1378
1491
|
}
|
|
1379
|
-
function
|
|
1380
|
-
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0,
|
|
1492
|
+
function le() {
|
|
1493
|
+
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, se());
|
|
1381
1494
|
}
|
|
1382
|
-
function
|
|
1383
|
-
i.value && (l("before-hide"), i.value = !1,
|
|
1495
|
+
function Q() {
|
|
1496
|
+
i.value && (l("before-hide"), i.value = !1, r.value = void 0);
|
|
1384
1497
|
}
|
|
1385
|
-
function
|
|
1386
|
-
i.value ?
|
|
1498
|
+
function R() {
|
|
1499
|
+
i.value ? Q() : g();
|
|
1387
1500
|
}
|
|
1388
|
-
function
|
|
1389
|
-
|
|
1501
|
+
function p() {
|
|
1502
|
+
E.value && (s.value = n.emptyValue, r.value = void 0, se());
|
|
1390
1503
|
}
|
|
1391
1504
|
function g() {
|
|
1392
|
-
if (
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1505
|
+
if (le(), T.value !== void 0) {
|
|
1506
|
+
const d = S.value.indexOf(T.value);
|
|
1507
|
+
d !== -1 && J(() => j(d));
|
|
1395
1508
|
}
|
|
1396
1509
|
}
|
|
1397
|
-
function d
|
|
1398
|
-
var
|
|
1399
|
-
if (!(!
|
|
1400
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1401
|
-
|
|
1402
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
1403
|
-
i.value ?
|
|
1404
|
-
if (
|
|
1405
|
-
|
|
1510
|
+
function c(d) {
|
|
1511
|
+
var w, D;
|
|
1512
|
+
if (!(!d.key || n.readonly || n.disabled))
|
|
1513
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), d.key === "Escape")
|
|
1514
|
+
H(), i.value && Q();
|
|
1515
|
+
else if (["ArrowDown", "ArrowUp"].includes(d.key))
|
|
1516
|
+
i.value ? J(() => {
|
|
1517
|
+
if (r.value === void 0)
|
|
1518
|
+
h();
|
|
1406
1519
|
else {
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1520
|
+
const P = d.key === "ArrowDown" ? "next" : "prev";
|
|
1521
|
+
ae(r.value, P);
|
|
1409
1522
|
}
|
|
1410
|
-
}) : (
|
|
1411
|
-
|
|
1523
|
+
}) : (le(), J(() => {
|
|
1524
|
+
d.key === "ArrowDown" ? h() : U();
|
|
1412
1525
|
}));
|
|
1413
|
-
else if (
|
|
1414
|
-
if (
|
|
1526
|
+
else if (d.key === "Enter") {
|
|
1527
|
+
if (oe.value === void 0)
|
|
1415
1528
|
return;
|
|
1416
|
-
|
|
1529
|
+
ne(oe.value[n.itemValue]);
|
|
1417
1530
|
} else
|
|
1418
|
-
|
|
1531
|
+
d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && le();
|
|
1419
1532
|
}
|
|
1420
|
-
function
|
|
1421
|
-
var
|
|
1422
|
-
if (
|
|
1423
|
-
|
|
1533
|
+
function h() {
|
|
1534
|
+
var d, w;
|
|
1535
|
+
if (Y.value)
|
|
1536
|
+
r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1424
1537
|
else {
|
|
1425
|
-
const
|
|
1426
|
-
(
|
|
1538
|
+
const D = S.value.findIndex(
|
|
1539
|
+
(P) => P[n.itemValue] === s.value
|
|
1427
1540
|
);
|
|
1428
|
-
|
|
1541
|
+
D === -1 ? r.value = (d = q.value) == null ? void 0 : d.getFirstFocusableItemIndex() : r.value = D;
|
|
1429
1542
|
}
|
|
1430
1543
|
}
|
|
1431
|
-
function
|
|
1432
|
-
var
|
|
1433
|
-
|
|
1544
|
+
function U() {
|
|
1545
|
+
var d;
|
|
1546
|
+
r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
|
|
1434
1547
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var
|
|
1437
|
-
|
|
1548
|
+
function ae(d, w) {
|
|
1549
|
+
var D;
|
|
1550
|
+
r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
|
|
1438
1551
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var
|
|
1441
|
-
const
|
|
1442
|
-
if (
|
|
1443
|
-
|
|
1552
|
+
function K(d) {
|
|
1553
|
+
var fe, Ve, Ee, De;
|
|
1554
|
+
const w = ((fe = I == null ? void 0 : I.value) == null ? void 0 : fe.$el) === d.relatedTarget, D = (Ee = (Ve = f == null ? void 0 : f.value) == null ? void 0 : Ve.$el) == null ? void 0 : Ee.contains(d.relatedTarget), P = (De = M == null ? void 0 : M.value) == null ? void 0 : De.contains(d.relatedTarget);
|
|
1555
|
+
if (w || P || D) {
|
|
1556
|
+
d.preventDefault(), d.stopPropagation();
|
|
1444
1557
|
return;
|
|
1445
1558
|
}
|
|
1446
|
-
|
|
1559
|
+
Q(), E.value && !a.value && (s.value = n.emptyValue), H();
|
|
1447
1560
|
}
|
|
1448
|
-
function
|
|
1449
|
-
var
|
|
1450
|
-
(
|
|
1561
|
+
function se() {
|
|
1562
|
+
var d, w;
|
|
1563
|
+
(w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
|
|
1451
1564
|
}
|
|
1452
1565
|
function _e() {
|
|
1453
|
-
|
|
1566
|
+
se();
|
|
1454
1567
|
}
|
|
1455
1568
|
function b() {
|
|
1456
1569
|
l("show");
|
|
1457
1570
|
}
|
|
1458
|
-
function
|
|
1571
|
+
function ce() {
|
|
1459
1572
|
l("hide");
|
|
1460
1573
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var
|
|
1463
|
-
const
|
|
1464
|
-
|
|
1574
|
+
function j(d) {
|
|
1575
|
+
var D;
|
|
1576
|
+
const w = (D = q.value) == null ? void 0 : D.getItem(d);
|
|
1577
|
+
q.value && (q.value.$el.scrollTop = w == null ? void 0 : w.offsetTop);
|
|
1465
1578
|
}
|
|
1466
|
-
return
|
|
1579
|
+
return Z(s, H), Z(
|
|
1467
1580
|
() => n.items,
|
|
1468
|
-
(
|
|
1469
|
-
if (!
|
|
1470
|
-
const
|
|
1471
|
-
a.value === (
|
|
1581
|
+
(d, w) => {
|
|
1582
|
+
if (!Y.value) {
|
|
1583
|
+
const D = w.find((P) => P[n.itemValue] === s.value);
|
|
1584
|
+
a.value === (D == null ? void 0 : D[n.itemLabel]) && H();
|
|
1472
1585
|
}
|
|
1473
1586
|
},
|
|
1474
1587
|
{ deep: !0 }
|
|
1475
|
-
),
|
|
1476
|
-
|
|
1477
|
-
}),
|
|
1478
|
-
|
|
1479
|
-
}),
|
|
1588
|
+
), Z(r, (d) => {
|
|
1589
|
+
d !== void 0 && j(d);
|
|
1590
|
+
}), Z(a, (d) => {
|
|
1591
|
+
d && i.value && n.selectionMode === "automatic" && J(h);
|
|
1592
|
+
}), Z(
|
|
1480
1593
|
() => n.loading,
|
|
1481
|
-
(
|
|
1482
|
-
!
|
|
1594
|
+
(d) => {
|
|
1595
|
+
!d && i.value && J(h);
|
|
1483
1596
|
}
|
|
1484
1597
|
), o({
|
|
1485
|
-
triggerEl:
|
|
1486
|
-
}), (
|
|
1487
|
-
var
|
|
1488
|
-
return u(),
|
|
1489
|
-
|
|
1598
|
+
triggerEl: f
|
|
1599
|
+
}), (d, w) => {
|
|
1600
|
+
var D;
|
|
1601
|
+
return u(), v(te, null, [
|
|
1602
|
+
z(m(lt), {
|
|
1490
1603
|
modelValue: a.value,
|
|
1491
|
-
"onUpdate:modelValue":
|
|
1604
|
+
"onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
|
|
1492
1605
|
id: n.id,
|
|
1493
1606
|
label: n.label,
|
|
1494
1607
|
required: n.required,
|
|
1495
1608
|
ref_key: "triggerEl",
|
|
1496
|
-
ref:
|
|
1609
|
+
ref: f,
|
|
1497
1610
|
role: "combobox",
|
|
1498
1611
|
placeholder: n.placeholder,
|
|
1499
1612
|
class: C([
|
|
@@ -1512,118 +1625,118 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1512
1625
|
"aria-expanded": i.value,
|
|
1513
1626
|
"aria-haspopup": "listbox",
|
|
1514
1627
|
"aria-autocomplete": "list",
|
|
1515
|
-
"aria-activedescendant":
|
|
1628
|
+
"aria-activedescendant": G.value,
|
|
1516
1629
|
size: n.size,
|
|
1517
1630
|
onClick: g,
|
|
1518
|
-
onFocusout:
|
|
1519
|
-
onKeydown:
|
|
1520
|
-
},
|
|
1521
|
-
"label.prepend":
|
|
1522
|
-
|
|
1631
|
+
onFocusout: K,
|
|
1632
|
+
onKeydown: pe(c, ["stop"])
|
|
1633
|
+
}, qe({
|
|
1634
|
+
"label.prepend": _(() => [
|
|
1635
|
+
y(d.$slots, "label.prepend")
|
|
1523
1636
|
]),
|
|
1524
|
-
"label.append":
|
|
1525
|
-
|
|
1637
|
+
"label.append": _(() => [
|
|
1638
|
+
y(d.$slots, "label.append")
|
|
1526
1639
|
]),
|
|
1527
|
-
append:
|
|
1528
|
-
|
|
1529
|
-
|
|
1640
|
+
append: _(() => [
|
|
1641
|
+
y(d.$slots, "append"),
|
|
1642
|
+
E.value && a.value ? (u(), x(m(de), {
|
|
1530
1643
|
key: 0,
|
|
1531
1644
|
class: "q-combobox__clear",
|
|
1532
1645
|
"b-style": "plain",
|
|
1533
1646
|
borderless: "",
|
|
1534
1647
|
tabindex: "-1",
|
|
1535
|
-
onClick:
|
|
1648
|
+
onClick: p
|
|
1536
1649
|
}, {
|
|
1537
|
-
default:
|
|
1538
|
-
|
|
1650
|
+
default: _(() => [
|
|
1651
|
+
z(m(F), W(ie(n.icons.clear)), null, 16)
|
|
1539
1652
|
]),
|
|
1540
1653
|
_: 1
|
|
1541
|
-
})) :
|
|
1542
|
-
n.readonly ?
|
|
1654
|
+
})) : $("", !0),
|
|
1655
|
+
n.readonly ? $("", !0) : (u(), x(m(de), {
|
|
1543
1656
|
key: 1,
|
|
1544
1657
|
ref_key: "toggleRef",
|
|
1545
|
-
ref:
|
|
1658
|
+
ref: I,
|
|
1546
1659
|
class: "q-combobox__chevron",
|
|
1547
1660
|
"b-style": "plain",
|
|
1548
1661
|
borderless: "",
|
|
1549
1662
|
tabindex: "-1",
|
|
1550
1663
|
disabled: n.disabled,
|
|
1551
|
-
onMousedown:
|
|
1664
|
+
onMousedown: pe(R, ["stop", "prevent"])
|
|
1552
1665
|
}, {
|
|
1553
|
-
default:
|
|
1554
|
-
|
|
1666
|
+
default: _(() => [
|
|
1667
|
+
z(m(F), W(ie(n.icons.chevron)), null, 16)
|
|
1555
1668
|
]),
|
|
1556
1669
|
_: 1
|
|
1557
1670
|
}, 8, ["disabled"]))
|
|
1558
1671
|
]),
|
|
1559
1672
|
_: 2
|
|
1560
1673
|
}, [
|
|
1561
|
-
|
|
1674
|
+
d.$slots.prepend ? {
|
|
1562
1675
|
name: "prepend",
|
|
1563
|
-
fn:
|
|
1564
|
-
|
|
1676
|
+
fn: _(() => [
|
|
1677
|
+
y(d.$slots, "prepend")
|
|
1565
1678
|
]),
|
|
1566
1679
|
key: "0"
|
|
1567
1680
|
} : void 0,
|
|
1568
|
-
|
|
1681
|
+
d.$slots.extras ? {
|
|
1569
1682
|
name: "extras",
|
|
1570
|
-
fn:
|
|
1571
|
-
|
|
1683
|
+
fn: _(() => [
|
|
1684
|
+
y(d.$slots, "extras")
|
|
1572
1685
|
]),
|
|
1573
1686
|
key: "1"
|
|
1574
1687
|
} : void 0
|
|
1575
1688
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1576
|
-
|
|
1689
|
+
z(m(he), {
|
|
1577
1690
|
modelValue: i.value,
|
|
1578
|
-
"onUpdate:modelValue":
|
|
1691
|
+
"onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
|
|
1579
1692
|
spy: "",
|
|
1580
1693
|
"non-modal": "",
|
|
1581
1694
|
trigger: "manual",
|
|
1582
1695
|
placement: "bottom-start",
|
|
1583
1696
|
width: "anchor",
|
|
1584
1697
|
offset: 4,
|
|
1585
|
-
anchor: (
|
|
1698
|
+
anchor: (D = f.value) == null ? void 0 : D.$el,
|
|
1586
1699
|
onEnter: b,
|
|
1587
|
-
onLeave:
|
|
1700
|
+
onLeave: ce
|
|
1588
1701
|
}, {
|
|
1589
|
-
default:
|
|
1590
|
-
var
|
|
1702
|
+
default: _(() => {
|
|
1703
|
+
var P;
|
|
1591
1704
|
return [
|
|
1592
|
-
|
|
1705
|
+
A("div", {
|
|
1593
1706
|
ref_key: "contentRef",
|
|
1594
|
-
ref:
|
|
1707
|
+
ref: M,
|
|
1595
1708
|
class: "q-select__body",
|
|
1596
1709
|
"data-testid": "combobox-dropdown",
|
|
1597
1710
|
"data-key": n.id,
|
|
1598
|
-
onFocusout:
|
|
1711
|
+
onFocusout: K
|
|
1599
1712
|
}, [
|
|
1600
|
-
|
|
1601
|
-
n.loading ? (u(),
|
|
1602
|
-
|
|
1603
|
-
])) :
|
|
1713
|
+
y(d.$slots, "body.prepend"),
|
|
1714
|
+
n.loading ? (u(), v("div", go, [
|
|
1715
|
+
z(m(xe), { size: 24 })
|
|
1716
|
+
])) : S.value.length ? (u(), x(m(Te), {
|
|
1604
1717
|
key: 1,
|
|
1605
1718
|
ref_key: "listRef",
|
|
1606
|
-
ref:
|
|
1719
|
+
ref: q,
|
|
1607
1720
|
class: "q-select__items",
|
|
1608
1721
|
modelValue: s.value,
|
|
1609
1722
|
"onUpdate:modelValue": [
|
|
1610
|
-
|
|
1611
|
-
|
|
1723
|
+
w[1] || (w[1] = (fe) => s.value = fe),
|
|
1724
|
+
ne
|
|
1612
1725
|
],
|
|
1613
|
-
highlighted: (
|
|
1614
|
-
items:
|
|
1615
|
-
groups:
|
|
1726
|
+
highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
|
|
1727
|
+
items: S.value,
|
|
1728
|
+
groups: d.groups,
|
|
1616
1729
|
"item-label": n.itemLabel,
|
|
1617
1730
|
"item-value": n.itemValue,
|
|
1618
1731
|
onMouseup: _e
|
|
1619
1732
|
}, {
|
|
1620
|
-
item:
|
|
1621
|
-
|
|
1733
|
+
item: _(({ item: fe }) => [
|
|
1734
|
+
y(d.$slots, "item", { item: fe })
|
|
1622
1735
|
]),
|
|
1623
1736
|
_: 3
|
|
1624
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(),
|
|
1625
|
-
|
|
1626
|
-
], 40,
|
|
1737
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.texts.noData), 1)),
|
|
1738
|
+
y(d.$slots, "body.append")
|
|
1739
|
+
], 40, bo)
|
|
1627
1740
|
];
|
|
1628
1741
|
}),
|
|
1629
1742
|
_: 3
|
|
@@ -1631,13 +1744,117 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1631
1744
|
], 64);
|
|
1632
1745
|
};
|
|
1633
1746
|
}
|
|
1634
|
-
}),
|
|
1747
|
+
}), qo = B($o), xo = { class: "q-dialog" }, Io = { class: "q-dialog__header" }, Lo = { class: "q-dialog__header-title" }, So = { class: "q-dialog__body" }, Bo = {
|
|
1748
|
+
key: 0,
|
|
1749
|
+
class: "q-dialog__body-icon"
|
|
1750
|
+
}, Co = { class: "q-dialog__body-text" }, To = ["innerHTML"], Vo = { key: 1 }, Eo = { class: "q-dialog__body-actions" }, Do = [
|
|
1751
|
+
{
|
|
1752
|
+
id: "button",
|
|
1753
|
+
icon: {
|
|
1754
|
+
icon: "check"
|
|
1755
|
+
},
|
|
1756
|
+
props: {
|
|
1757
|
+
bStyle: "primary",
|
|
1758
|
+
label: "Ok"
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
], Ao = {
|
|
1762
|
+
icon: "check-circle-outline",
|
|
1763
|
+
type: "svg"
|
|
1764
|
+
}, zo = /* @__PURE__ */ L({
|
|
1765
|
+
__name: "QDialog",
|
|
1766
|
+
props: /* @__PURE__ */ X({
|
|
1767
|
+
text: { default: "" },
|
|
1768
|
+
attach: { default: "body" },
|
|
1769
|
+
inline: { type: Boolean },
|
|
1770
|
+
backdropBlur: { type: Boolean, default: !0 },
|
|
1771
|
+
buttons: { default: () => Do },
|
|
1772
|
+
dismissible: { type: Boolean, default: !1 },
|
|
1773
|
+
html: { type: Boolean, default: !0 },
|
|
1774
|
+
icon: { default: () => Ao },
|
|
1775
|
+
id: { default: void 0 },
|
|
1776
|
+
title: { default: "" },
|
|
1777
|
+
class: { default: void 0 }
|
|
1778
|
+
}, {
|
|
1779
|
+
modelValue: { type: Boolean },
|
|
1780
|
+
modelModifiers: {}
|
|
1781
|
+
}),
|
|
1782
|
+
emits: ["update:modelValue"],
|
|
1783
|
+
setup(t) {
|
|
1784
|
+
const o = t, e = ee(t, "modelValue"), n = ve(o.id);
|
|
1785
|
+
function l() {
|
|
1786
|
+
e.value = !1;
|
|
1787
|
+
}
|
|
1788
|
+
function s(i) {
|
|
1789
|
+
var a;
|
|
1790
|
+
(a = i.action) == null || a.call(i), l();
|
|
1791
|
+
}
|
|
1792
|
+
return (i, a) => (u(), x(m(he), {
|
|
1793
|
+
"model-value": e.value,
|
|
1794
|
+
id: m(n),
|
|
1795
|
+
inline: o.inline,
|
|
1796
|
+
attach: o.attach,
|
|
1797
|
+
"backdrop-blur": o.backdropBlur,
|
|
1798
|
+
"scroll-lock": "",
|
|
1799
|
+
persistent: ""
|
|
1800
|
+
}, {
|
|
1801
|
+
default: _(() => [
|
|
1802
|
+
A("div", xo, [
|
|
1803
|
+
A("div", Io, [
|
|
1804
|
+
A("span", Lo, N(o.title), 1),
|
|
1805
|
+
o.dismissible ? (u(), x(m(de), {
|
|
1806
|
+
key: 0,
|
|
1807
|
+
"b-style": "tertiary",
|
|
1808
|
+
onClick: l
|
|
1809
|
+
}, {
|
|
1810
|
+
default: _(() => [
|
|
1811
|
+
z(m(F), { icon: "close" })
|
|
1812
|
+
]),
|
|
1813
|
+
_: 1
|
|
1814
|
+
})) : $("", !0)
|
|
1815
|
+
]),
|
|
1816
|
+
y(i.$slots, "body.content", {}, () => [
|
|
1817
|
+
A("div", So, [
|
|
1818
|
+
y(i.$slots, "body.icon", {}, () => [
|
|
1819
|
+
o.icon ? (u(), v("span", Bo, [
|
|
1820
|
+
z(m(F), W(ie(o.icon)), null, 16)
|
|
1821
|
+
])) : $("", !0)
|
|
1822
|
+
]),
|
|
1823
|
+
A("div", Co, [
|
|
1824
|
+
o.html ? (u(), v("span", {
|
|
1825
|
+
key: 0,
|
|
1826
|
+
innerHTML: o.text
|
|
1827
|
+
}, null, 8, To)) : (u(), v("span", Vo, N(o.text), 1))
|
|
1828
|
+
]),
|
|
1829
|
+
y(i.$slots, "body.append")
|
|
1830
|
+
])
|
|
1831
|
+
]),
|
|
1832
|
+
A("div", Eo, [
|
|
1833
|
+
(u(!0), v(te, null, we(o.buttons, (r) => (u(), x(m(de), re({ ref_for: !0 }, r.props, {
|
|
1834
|
+
key: r.id,
|
|
1835
|
+
onClick: () => s(r)
|
|
1836
|
+
}), {
|
|
1837
|
+
default: _(() => [
|
|
1838
|
+
r.icon ? (u(), x(m(F), re({
|
|
1839
|
+
key: 0,
|
|
1840
|
+
ref_for: !0
|
|
1841
|
+
}, r.icon), null, 16)) : $("", !0)
|
|
1842
|
+
]),
|
|
1843
|
+
_: 2
|
|
1844
|
+
}, 1040, ["onClick"]))), 128))
|
|
1845
|
+
])
|
|
1846
|
+
])
|
|
1847
|
+
]),
|
|
1848
|
+
_: 3
|
|
1849
|
+
}, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
|
|
1850
|
+
}
|
|
1851
|
+
}), Qo = B(zo), Mo = {
|
|
1635
1852
|
key: 0,
|
|
1636
1853
|
class: "q-input-group__prepend"
|
|
1637
|
-
},
|
|
1854
|
+
}, Fo = { key: 0 }, Oo = {
|
|
1638
1855
|
key: 1,
|
|
1639
1856
|
class: "q-input-group__append"
|
|
1640
|
-
},
|
|
1857
|
+
}, Uo = { key: 0 }, Po = /* @__PURE__ */ L({
|
|
1641
1858
|
__name: "QInputGroup",
|
|
1642
1859
|
props: {
|
|
1643
1860
|
id: { default: void 0 },
|
|
@@ -1650,64 +1867,64 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1650
1867
|
},
|
|
1651
1868
|
setup(t) {
|
|
1652
1869
|
const o = t;
|
|
1653
|
-
return
|
|
1870
|
+
return Re({
|
|
1654
1871
|
QField: {
|
|
1655
1872
|
size: "block"
|
|
1656
1873
|
}
|
|
1657
|
-
}), (e, n) => (u(),
|
|
1874
|
+
}), (e, n) => (u(), x(m(Ie), {
|
|
1658
1875
|
id: o.id,
|
|
1659
1876
|
class: C(["q-input-group", o.class]),
|
|
1660
1877
|
label: o.label,
|
|
1661
1878
|
required: o.required,
|
|
1662
1879
|
size: o.size
|
|
1663
|
-
},
|
|
1664
|
-
default:
|
|
1665
|
-
e.$slots.prepend || o.prependIcon ? (u(),
|
|
1666
|
-
o.prependIcon ? (u(),
|
|
1667
|
-
|
|
1668
|
-
])) :
|
|
1669
|
-
|
|
1670
|
-
])) :
|
|
1671
|
-
|
|
1672
|
-
e.$slots.append || o.appendIcon ? (u(),
|
|
1673
|
-
o.appendIcon ? (u(),
|
|
1674
|
-
|
|
1675
|
-
])) :
|
|
1676
|
-
|
|
1677
|
-
])) :
|
|
1880
|
+
}, qe({
|
|
1881
|
+
default: _(() => [
|
|
1882
|
+
e.$slots.prepend || o.prependIcon ? (u(), v("div", Mo, [
|
|
1883
|
+
o.prependIcon ? (u(), v("span", Fo, [
|
|
1884
|
+
z(m(F), W(ie(o.prependIcon)), null, 16)
|
|
1885
|
+
])) : $("", !0),
|
|
1886
|
+
y(e.$slots, "prepend")
|
|
1887
|
+
])) : $("", !0),
|
|
1888
|
+
y(e.$slots, "default"),
|
|
1889
|
+
e.$slots.append || o.appendIcon ? (u(), v("div", Oo, [
|
|
1890
|
+
o.appendIcon ? (u(), v("span", Uo, [
|
|
1891
|
+
z(m(F), W(ie(o.appendIcon)), null, 16)
|
|
1892
|
+
])) : $("", !0),
|
|
1893
|
+
y(e.$slots, "append")
|
|
1894
|
+
])) : $("", !0)
|
|
1678
1895
|
]),
|
|
1679
1896
|
_: 2
|
|
1680
1897
|
}, [
|
|
1681
1898
|
e.$slots.extras ? {
|
|
1682
1899
|
name: "extras",
|
|
1683
|
-
fn:
|
|
1684
|
-
|
|
1900
|
+
fn: _(() => [
|
|
1901
|
+
y(e.$slots, "extras")
|
|
1685
1902
|
]),
|
|
1686
1903
|
key: "0"
|
|
1687
1904
|
} : void 0
|
|
1688
1905
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
1689
1906
|
}
|
|
1690
|
-
}),
|
|
1907
|
+
}), No = B(Po), Ho = /* @__PURE__ */ L({
|
|
1691
1908
|
__name: "QLineLoader",
|
|
1692
1909
|
props: {
|
|
1693
1910
|
class: { default: void 0 }
|
|
1694
1911
|
},
|
|
1695
1912
|
setup(t) {
|
|
1696
1913
|
const o = t;
|
|
1697
|
-
return (e, n) => (u(),
|
|
1914
|
+
return (e, n) => (u(), v("div", {
|
|
1698
1915
|
class: C(["q-line-loader", o.class])
|
|
1699
1916
|
}, null, 2));
|
|
1700
1917
|
}
|
|
1701
|
-
}),
|
|
1918
|
+
}), Ko = B(Ho), jo = {
|
|
1702
1919
|
key: 0,
|
|
1703
1920
|
class: "q-popover__header"
|
|
1704
|
-
},
|
|
1921
|
+
}, Go = {
|
|
1705
1922
|
key: 1,
|
|
1706
1923
|
class: "q-popover__body"
|
|
1707
|
-
},
|
|
1924
|
+
}, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
|
|
1708
1925
|
inheritAttrs: !1,
|
|
1709
1926
|
__name: "QPopover",
|
|
1710
|
-
props: /* @__PURE__ */
|
|
1927
|
+
props: /* @__PURE__ */ X({
|
|
1711
1928
|
anchor: {},
|
|
1712
1929
|
arrow: { type: Boolean, default: !0 },
|
|
1713
1930
|
attach: { default: "body" },
|
|
@@ -1723,8 +1940,8 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1723
1940
|
}),
|
|
1724
1941
|
emits: ["update:modelValue"],
|
|
1725
1942
|
setup(t) {
|
|
1726
|
-
const o = t, e =
|
|
1727
|
-
return (n, l) => (u(),
|
|
1943
|
+
const o = t, e = ee(t, "modelValue");
|
|
1944
|
+
return (n, l) => (u(), x(m(he), {
|
|
1728
1945
|
"model-value": e.value,
|
|
1729
1946
|
class: "q-popover",
|
|
1730
1947
|
trigger: "click",
|
|
@@ -1735,43 +1952,43 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1735
1952
|
disabled: o.disabled,
|
|
1736
1953
|
placement: o.placement
|
|
1737
1954
|
}, {
|
|
1738
|
-
default:
|
|
1739
|
-
o.title || n.$slots.header ? (u(),
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
])) :
|
|
1743
|
-
o.text || n.$slots.body ? (u(),
|
|
1744
|
-
o.html ? (u(),
|
|
1955
|
+
default: _(() => [
|
|
1956
|
+
o.title || n.$slots.header ? (u(), v("h3", jo, [
|
|
1957
|
+
me(N(o.title) + " ", 1),
|
|
1958
|
+
y(n.$slots, "header")
|
|
1959
|
+
])) : $("", !0),
|
|
1960
|
+
o.text || n.$slots.body ? (u(), v("div", Go, [
|
|
1961
|
+
o.html ? (u(), v("span", {
|
|
1745
1962
|
key: 0,
|
|
1746
1963
|
innerHTML: o.text
|
|
1747
|
-
}, null, 8,
|
|
1748
|
-
|
|
1749
|
-
])) :
|
|
1964
|
+
}, null, 8, Ro)) : (u(), v("span", Wo, N(o.text), 1)),
|
|
1965
|
+
y(n.$slots, "body")
|
|
1966
|
+
])) : $("", !0)
|
|
1750
1967
|
]),
|
|
1751
1968
|
_: 3
|
|
1752
1969
|
}, 8, ["model-value", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
1753
1970
|
}
|
|
1754
|
-
}),
|
|
1971
|
+
}), Yo = B(Xo), Zo = {
|
|
1755
1972
|
key: 0,
|
|
1756
1973
|
class: "q-select__value"
|
|
1757
|
-
},
|
|
1974
|
+
}, Jo = {
|
|
1758
1975
|
key: 1,
|
|
1759
1976
|
class: "q-select__placeholder"
|
|
1760
|
-
},
|
|
1977
|
+
}, en = ["data-key"], tn = {
|
|
1761
1978
|
key: 0,
|
|
1762
1979
|
class: "q-select__loader"
|
|
1763
|
-
},
|
|
1980
|
+
}, on = {
|
|
1764
1981
|
placeholder: "Choose..."
|
|
1765
|
-
},
|
|
1982
|
+
}, nn = {
|
|
1766
1983
|
chevron: {
|
|
1767
1984
|
icon: "chevron-down"
|
|
1768
1985
|
},
|
|
1769
1986
|
clear: {
|
|
1770
1987
|
icon: "close"
|
|
1771
1988
|
}
|
|
1772
|
-
},
|
|
1989
|
+
}, ln = /* @__PURE__ */ L({
|
|
1773
1990
|
__name: "QSelect",
|
|
1774
|
-
props: /* @__PURE__ */
|
|
1991
|
+
props: /* @__PURE__ */ X({
|
|
1775
1992
|
id: { default: void 0 },
|
|
1776
1993
|
label: { default: "" },
|
|
1777
1994
|
clearable: { type: Boolean },
|
|
@@ -1779,14 +1996,14 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1779
1996
|
disabled: { type: Boolean },
|
|
1780
1997
|
required: { type: Boolean },
|
|
1781
1998
|
loading: { type: Boolean },
|
|
1782
|
-
icons: { default: () =>
|
|
1999
|
+
icons: { default: () => nn },
|
|
1783
2000
|
items: {},
|
|
1784
2001
|
groups: { default: () => [] },
|
|
1785
2002
|
itemValue: { default: "key" },
|
|
1786
2003
|
itemLabel: { default: "label" },
|
|
1787
2004
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1788
2005
|
size: { default: void 0 },
|
|
1789
|
-
texts: { default: () =>
|
|
2006
|
+
texts: { default: () => on },
|
|
1790
2007
|
class: { default: "" }
|
|
1791
2008
|
}, {
|
|
1792
2009
|
modelValue: {
|
|
@@ -1794,81 +2011,81 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1794
2011
|
},
|
|
1795
2012
|
modelModifiers: {}
|
|
1796
2013
|
}),
|
|
1797
|
-
emits: /* @__PURE__ */
|
|
2014
|
+
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
1798
2015
|
setup(t, { emit: o }) {
|
|
1799
|
-
const e = t, n = o, l =
|
|
2016
|
+
const e = t, n = o, l = ee(t, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = k(() => I.value === void 0), I = k(
|
|
1800
2017
|
() => {
|
|
1801
|
-
var
|
|
1802
|
-
return (
|
|
2018
|
+
var c;
|
|
2019
|
+
return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
|
|
1803
2020
|
}
|
|
1804
|
-
),
|
|
1805
|
-
() =>
|
|
1806
|
-
),
|
|
2021
|
+
), M = k(
|
|
2022
|
+
() => I.value ? I.value[e.itemLabel] : ""
|
|
2023
|
+
), E = k(
|
|
1807
2024
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1808
2025
|
);
|
|
1809
|
-
function
|
|
1810
|
-
l.value =
|
|
2026
|
+
function S(c) {
|
|
2027
|
+
l.value = c, G();
|
|
1811
2028
|
}
|
|
1812
|
-
function
|
|
1813
|
-
|
|
2029
|
+
function T() {
|
|
2030
|
+
E.value && (S(e.emptyValue), R());
|
|
1814
2031
|
}
|
|
1815
|
-
function
|
|
1816
|
-
var
|
|
1817
|
-
!((
|
|
2032
|
+
function Y(c) {
|
|
2033
|
+
var h, U, ae;
|
|
2034
|
+
!((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && G();
|
|
1818
2035
|
}
|
|
1819
|
-
function
|
|
2036
|
+
function oe() {
|
|
1820
2037
|
s.value || (n("before-show"), s.value = !0);
|
|
1821
2038
|
}
|
|
1822
|
-
function
|
|
2039
|
+
function G() {
|
|
1823
2040
|
s.value && (n("before-hide"), s.value = !1);
|
|
1824
2041
|
}
|
|
1825
|
-
function
|
|
1826
|
-
e.readonly || e.disabled || (s.value ?
|
|
1827
|
-
}
|
|
1828
|
-
let
|
|
1829
|
-
function
|
|
1830
|
-
if (!(!
|
|
1831
|
-
if (window.clearTimeout(
|
|
1832
|
-
i.value +=
|
|
1833
|
-
for (let
|
|
1834
|
-
if (e.items[
|
|
1835
|
-
g(
|
|
2042
|
+
function O() {
|
|
2043
|
+
e.readonly || e.disabled || (s.value ? G() : oe());
|
|
2044
|
+
}
|
|
2045
|
+
let ne;
|
|
2046
|
+
function H(c) {
|
|
2047
|
+
if (!(!c.key || e.readonly || e.disabled)) {
|
|
2048
|
+
if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
|
|
2049
|
+
i.value += c.key.toLowerCase();
|
|
2050
|
+
for (let h = 0; h < e.items.length; h++)
|
|
2051
|
+
if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
|
|
2052
|
+
g(h);
|
|
1836
2053
|
break;
|
|
1837
2054
|
}
|
|
1838
2055
|
}
|
|
1839
|
-
|
|
2056
|
+
ne = window.setTimeout(function() {
|
|
1840
2057
|
i.value = "";
|
|
1841
2058
|
}, 500);
|
|
1842
2059
|
}
|
|
1843
2060
|
}
|
|
1844
|
-
function
|
|
1845
|
-
var
|
|
1846
|
-
e.loading ? (
|
|
2061
|
+
function le() {
|
|
2062
|
+
var c;
|
|
2063
|
+
e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
|
|
1847
2064
|
}
|
|
1848
|
-
function
|
|
1849
|
-
|
|
2065
|
+
function Q() {
|
|
2066
|
+
R(), n("hide");
|
|
1850
2067
|
}
|
|
1851
|
-
function
|
|
1852
|
-
var
|
|
1853
|
-
(
|
|
2068
|
+
function R() {
|
|
2069
|
+
var c, h;
|
|
2070
|
+
(h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
|
|
1854
2071
|
}
|
|
1855
|
-
function
|
|
1856
|
-
var
|
|
1857
|
-
(
|
|
2072
|
+
function p() {
|
|
2073
|
+
var c;
|
|
2074
|
+
(c = r.value) == null || c.$el.focus();
|
|
1858
2075
|
}
|
|
1859
|
-
function g(
|
|
1860
|
-
var
|
|
1861
|
-
(
|
|
2076
|
+
function g(c) {
|
|
2077
|
+
var h;
|
|
2078
|
+
(h = r.value) == null || h.focusItem(c);
|
|
1862
2079
|
}
|
|
1863
|
-
return
|
|
2080
|
+
return Z(
|
|
1864
2081
|
() => e.loading,
|
|
1865
|
-
(
|
|
1866
|
-
!
|
|
2082
|
+
(c) => {
|
|
2083
|
+
!c && s.value && J(p);
|
|
1867
2084
|
}
|
|
1868
|
-
), (
|
|
1869
|
-
var
|
|
1870
|
-
return u(),
|
|
1871
|
-
|
|
2085
|
+
), (c, h) => {
|
|
2086
|
+
var U, ae;
|
|
2087
|
+
return u(), v(te, null, [
|
|
2088
|
+
z(m(Ie), {
|
|
1872
2089
|
id: e.id,
|
|
1873
2090
|
label: e.label,
|
|
1874
2091
|
required: e.required,
|
|
@@ -1891,125 +2108,125 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
1891
2108
|
"aria-expanded": s.value,
|
|
1892
2109
|
"aria-haspopup": "listbox",
|
|
1893
2110
|
size: e.size,
|
|
1894
|
-
onClick:
|
|
1895
|
-
onKeydown:
|
|
1896
|
-
},
|
|
1897
|
-
append:
|
|
1898
|
-
|
|
1899
|
-
|
|
2111
|
+
onClick: O,
|
|
2112
|
+
onKeydown: pe(H, ["stop"])
|
|
2113
|
+
}, qe({
|
|
2114
|
+
append: _(() => [
|
|
2115
|
+
y(c.$slots, "append"),
|
|
2116
|
+
E.value && l.value ? (u(), x(m(de), {
|
|
1900
2117
|
key: 0,
|
|
1901
2118
|
class: "q-select__clear",
|
|
1902
2119
|
"b-style": "plain",
|
|
1903
2120
|
borderless: "",
|
|
1904
2121
|
tabindex: "-1",
|
|
1905
|
-
onClick:
|
|
2122
|
+
onClick: T
|
|
1906
2123
|
}, {
|
|
1907
|
-
default:
|
|
1908
|
-
|
|
2124
|
+
default: _(() => [
|
|
2125
|
+
z(m(F), W(ie(e.icons.clear)), null, 16)
|
|
1909
2126
|
]),
|
|
1910
2127
|
_: 1
|
|
1911
|
-
})) :
|
|
1912
|
-
e.readonly ?
|
|
2128
|
+
})) : $("", !0),
|
|
2129
|
+
e.readonly ? $("", !0) : (u(), x(m(de), {
|
|
1913
2130
|
key: 1,
|
|
1914
2131
|
class: "q-select__chevron",
|
|
1915
2132
|
"b-style": "plain",
|
|
1916
2133
|
borderless: "",
|
|
1917
2134
|
tabindex: "-1",
|
|
1918
2135
|
disabled: e.disabled,
|
|
1919
|
-
onClick:
|
|
2136
|
+
onClick: O
|
|
1920
2137
|
}, {
|
|
1921
|
-
default:
|
|
1922
|
-
|
|
2138
|
+
default: _(() => [
|
|
2139
|
+
z(m(F), W(ie(e.icons.chevron)), null, 16)
|
|
1923
2140
|
]),
|
|
1924
2141
|
_: 1
|
|
1925
2142
|
}, 8, ["disabled"]))
|
|
1926
2143
|
]),
|
|
1927
|
-
default:
|
|
1928
|
-
|
|
1929
|
-
!e.readonly && !e.disabled ? (u(),
|
|
1930
|
-
|
|
1931
|
-
], 64)) :
|
|
1932
|
-
])) : (u(),
|
|
2144
|
+
default: _(() => [
|
|
2145
|
+
q.value ? (u(), v("span", Jo, [
|
|
2146
|
+
!e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
|
|
2147
|
+
me(N(c.texts.placeholder), 1)
|
|
2148
|
+
], 64)) : $("", !0)
|
|
2149
|
+
])) : (u(), v("span", Zo, N(M.value), 1))
|
|
1933
2150
|
]),
|
|
1934
2151
|
_: 2
|
|
1935
2152
|
}, [
|
|
1936
|
-
(
|
|
2153
|
+
(U = I.value) != null && U.icon || c.$slots.prepend ? {
|
|
1937
2154
|
name: "prepend",
|
|
1938
|
-
fn:
|
|
1939
|
-
var
|
|
2155
|
+
fn: _(() => {
|
|
2156
|
+
var K, se;
|
|
1940
2157
|
return [
|
|
1941
|
-
|
|
1942
|
-
(
|
|
2158
|
+
y(c.$slots, "prepend"),
|
|
2159
|
+
(K = I.value) != null && K.icon ? (u(), x(m(F), W(re({ key: 0 }, (se = I.value) == null ? void 0 : se.icon)), null, 16)) : $("", !0)
|
|
1943
2160
|
];
|
|
1944
2161
|
}),
|
|
1945
2162
|
key: "0"
|
|
1946
2163
|
} : void 0,
|
|
1947
|
-
|
|
2164
|
+
c.$slots.extras ? {
|
|
1948
2165
|
name: "extras",
|
|
1949
|
-
fn:
|
|
1950
|
-
|
|
2166
|
+
fn: _(() => [
|
|
2167
|
+
y(c.$slots, "extras")
|
|
1951
2168
|
]),
|
|
1952
2169
|
key: "1"
|
|
1953
2170
|
} : void 0
|
|
1954
2171
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
1955
|
-
|
|
2172
|
+
z(m(he), {
|
|
1956
2173
|
modelValue: s.value,
|
|
1957
|
-
"onUpdate:modelValue":
|
|
2174
|
+
"onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
|
|
1958
2175
|
spy: "",
|
|
1959
2176
|
trigger: "manual",
|
|
1960
2177
|
placement: "bottom-start",
|
|
1961
2178
|
width: "anchor",
|
|
1962
2179
|
"scroll-lock": "",
|
|
1963
|
-
anchor: (
|
|
2180
|
+
anchor: (ae = a.value) == null ? void 0 : ae.$el,
|
|
1964
2181
|
offset: 2,
|
|
1965
|
-
onEnter:
|
|
1966
|
-
onLeave:
|
|
2182
|
+
onEnter: le,
|
|
2183
|
+
onLeave: Q
|
|
1967
2184
|
}, {
|
|
1968
|
-
default:
|
|
1969
|
-
|
|
2185
|
+
default: _(() => [
|
|
2186
|
+
A("div", {
|
|
1970
2187
|
ref_key: "contentRef",
|
|
1971
|
-
ref:
|
|
2188
|
+
ref: f,
|
|
1972
2189
|
"data-testid": "combobox-dropdown",
|
|
1973
2190
|
"data-key": e.id,
|
|
1974
2191
|
class: "q-select__body",
|
|
1975
2192
|
tabindex: "-1",
|
|
1976
|
-
onFocusout:
|
|
1977
|
-
onKeydown:
|
|
2193
|
+
onFocusout: Y,
|
|
2194
|
+
onKeydown: pe(H, ["stop"])
|
|
1978
2195
|
}, [
|
|
1979
|
-
|
|
1980
|
-
e.loading ? (u(),
|
|
1981
|
-
|
|
1982
|
-
])) : (u(),
|
|
2196
|
+
y(c.$slots, "body.prepend"),
|
|
2197
|
+
e.loading ? (u(), v("div", tn, [
|
|
2198
|
+
z(m(xe), { size: 24 })
|
|
2199
|
+
])) : (u(), x(m(Te), {
|
|
1983
2200
|
key: 1,
|
|
1984
2201
|
ref_key: "listRef",
|
|
1985
|
-
ref:
|
|
2202
|
+
ref: r,
|
|
1986
2203
|
class: "q-select__items",
|
|
1987
2204
|
modelValue: l.value,
|
|
1988
2205
|
"onUpdate:modelValue": [
|
|
1989
|
-
|
|
1990
|
-
|
|
2206
|
+
h[0] || (h[0] = (K) => l.value = K),
|
|
2207
|
+
S
|
|
1991
2208
|
],
|
|
1992
2209
|
items: e.items,
|
|
1993
|
-
groups:
|
|
2210
|
+
groups: c.groups,
|
|
1994
2211
|
"item-label": e.itemLabel,
|
|
1995
2212
|
"item-value": e.itemValue
|
|
1996
2213
|
}, {
|
|
1997
|
-
item:
|
|
1998
|
-
|
|
2214
|
+
item: _(({ item: K }) => [
|
|
2215
|
+
y(c.$slots, "item", { item: K })
|
|
1999
2216
|
]),
|
|
2000
2217
|
_: 3
|
|
2001
2218
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
2002
|
-
|
|
2003
|
-
], 40,
|
|
2219
|
+
y(c.$slots, "body.append")
|
|
2220
|
+
], 40, en)
|
|
2004
2221
|
]),
|
|
2005
2222
|
_: 3
|
|
2006
2223
|
}, 8, ["modelValue", "anchor"])
|
|
2007
2224
|
], 64);
|
|
2008
2225
|
};
|
|
2009
2226
|
}
|
|
2010
|
-
}),
|
|
2011
|
-
|
|
2012
|
-
],
|
|
2227
|
+
}), an = B(ln), sn = /* @__PURE__ */ A("div", { class: "q-skeleton-loader__bone" }, null, -1), rn = [
|
|
2228
|
+
sn
|
|
2229
|
+
], dn = /* @__PURE__ */ L({
|
|
2013
2230
|
__name: "QSkeletonLoader",
|
|
2014
2231
|
props: {
|
|
2015
2232
|
type: { default: void 0 },
|
|
@@ -2024,27 +2241,27 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
2024
2241
|
height: s
|
|
2025
2242
|
};
|
|
2026
2243
|
});
|
|
2027
|
-
return (l, s) => (u(),
|
|
2244
|
+
return (l, s) => (u(), v("div", {
|
|
2028
2245
|
class: C(["q-skeleton-loader", e.value]),
|
|
2029
|
-
style:
|
|
2030
|
-
},
|
|
2246
|
+
style: ue(n.value)
|
|
2247
|
+
}, rn, 6));
|
|
2031
2248
|
}
|
|
2032
|
-
}),
|
|
2249
|
+
}), un = B(dn), cn = /* @__PURE__ */ L({
|
|
2033
2250
|
__name: "QThemeProvider",
|
|
2034
2251
|
props: {
|
|
2035
2252
|
theme: {}
|
|
2036
2253
|
},
|
|
2037
2254
|
setup(t) {
|
|
2038
2255
|
const o = t;
|
|
2039
|
-
return (e, n) => (u(),
|
|
2256
|
+
return (e, n) => (u(), v("div", {
|
|
2040
2257
|
class: C(["q-theme-provider", `q-theme--${o.theme}`])
|
|
2041
2258
|
}, [
|
|
2042
|
-
|
|
2259
|
+
y(e.$slots, "default")
|
|
2043
2260
|
], 2));
|
|
2044
2261
|
}
|
|
2045
|
-
}),
|
|
2262
|
+
}), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
|
|
2046
2263
|
__name: "QTooltip",
|
|
2047
|
-
props: /* @__PURE__ */
|
|
2264
|
+
props: /* @__PURE__ */ X({
|
|
2048
2265
|
id: { default: void 0 },
|
|
2049
2266
|
anchor: {},
|
|
2050
2267
|
appearance: { default: "inverted" },
|
|
@@ -2056,6 +2273,7 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
2056
2273
|
html: { type: Boolean, default: !0 },
|
|
2057
2274
|
placement: { default: "right" },
|
|
2058
2275
|
text: {},
|
|
2276
|
+
icon: { default: void 0 },
|
|
2059
2277
|
trigger: { default: "hover" },
|
|
2060
2278
|
class: { default: void 0 }
|
|
2061
2279
|
}, {
|
|
@@ -2064,17 +2282,17 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
2064
2282
|
}),
|
|
2065
2283
|
emits: ["update:modelValue"],
|
|
2066
2284
|
setup(t) {
|
|
2067
|
-
const o = t, e =
|
|
2068
|
-
return (l, s) => (u(),
|
|
2069
|
-
|
|
2070
|
-
props: { "aria-describedby":
|
|
2285
|
+
const o = t, e = ee(t, "modelValue"), n = ve(o.id);
|
|
2286
|
+
return (l, s) => (u(), v(te, null, [
|
|
2287
|
+
y(l.$slots, "anchor", {
|
|
2288
|
+
props: { "aria-describedby": m(n) }
|
|
2071
2289
|
}),
|
|
2072
|
-
|
|
2290
|
+
z(m(he), {
|
|
2073
2291
|
"model-value": e.value,
|
|
2074
2292
|
anchor: o.anchor,
|
|
2075
2293
|
role: "tooltip",
|
|
2076
2294
|
"non-modal": "",
|
|
2077
|
-
id:
|
|
2295
|
+
id: m(n),
|
|
2078
2296
|
appearance: o.appearance,
|
|
2079
2297
|
arrow: o.arrow,
|
|
2080
2298
|
attach: o.attach,
|
|
@@ -2085,71 +2303,68 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
|
2085
2303
|
placement: o.placement,
|
|
2086
2304
|
trigger: o.trigger
|
|
2087
2305
|
}, {
|
|
2088
|
-
default:
|
|
2089
|
-
|
|
2090
|
-
key: 0,
|
|
2091
|
-
|
|
2092
|
-
|
|
2306
|
+
default: _(() => [
|
|
2307
|
+
y(l.$slots, "default", {}, () => [
|
|
2308
|
+
o.icon ? (u(), x(m(F), W(re({ key: 0 }, o.icon)), null, 16)) : $("", !0),
|
|
2309
|
+
o.html ? (u(), v("span", {
|
|
2310
|
+
key: 1,
|
|
2311
|
+
innerHTML: o.text
|
|
2312
|
+
}, null, 8, pn)) : (u(), v(te, { key: 2 }, [
|
|
2313
|
+
me(N(o.text), 1)
|
|
2314
|
+
], 64))
|
|
2315
|
+
])
|
|
2093
2316
|
]),
|
|
2094
|
-
_:
|
|
2317
|
+
_: 3
|
|
2095
2318
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2096
2319
|
], 64));
|
|
2097
2320
|
}
|
|
2098
|
-
}),
|
|
2321
|
+
}), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2099
2322
|
__proto__: null,
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2323
|
+
QBadge: Dt,
|
|
2324
|
+
QButton: de,
|
|
2325
|
+
QButtonGroup: tt,
|
|
2326
|
+
QButtonToggle: Qt,
|
|
2327
|
+
QCombobox: qo,
|
|
2328
|
+
QDialog: Qo,
|
|
2104
2329
|
QField: Ie,
|
|
2105
|
-
QIcon:
|
|
2106
|
-
QIconFont:
|
|
2107
|
-
QIconImg:
|
|
2108
|
-
QIconSvg:
|
|
2109
|
-
QInputGroup:
|
|
2110
|
-
QLineLoader:
|
|
2111
|
-
QList:
|
|
2112
|
-
QListItem:
|
|
2113
|
-
QListItemGroup:
|
|
2114
|
-
QOverlay:
|
|
2115
|
-
QPopover:
|
|
2116
|
-
QSelect:
|
|
2117
|
-
QSkeletonLoader:
|
|
2118
|
-
QSpinnerLoader:
|
|
2119
|
-
QTextField:
|
|
2120
|
-
QThemeProvider:
|
|
2121
|
-
QTooltip:
|
|
2122
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2123
|
-
function
|
|
2124
|
-
const t = He(
|
|
2330
|
+
QIcon: F,
|
|
2331
|
+
QIconFont: Ye,
|
|
2332
|
+
QIconImg: Ze,
|
|
2333
|
+
QIconSvg: Je,
|
|
2334
|
+
QInputGroup: No,
|
|
2335
|
+
QLineLoader: Ko,
|
|
2336
|
+
QList: Te,
|
|
2337
|
+
QListItem: ot,
|
|
2338
|
+
QListItemGroup: nt,
|
|
2339
|
+
QOverlay: he,
|
|
2340
|
+
QPopover: Yo,
|
|
2341
|
+
QSelect: an,
|
|
2342
|
+
QSkeletonLoader: un,
|
|
2343
|
+
QSpinnerLoader: xe,
|
|
2344
|
+
QTextField: lt,
|
|
2345
|
+
QThemeProvider: fn,
|
|
2346
|
+
QTooltip: vn
|
|
2347
|
+
}, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
|
|
2348
|
+
function yn() {
|
|
2349
|
+
const t = He(be);
|
|
2125
2350
|
if (!t)
|
|
2126
2351
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2127
2352
|
return t;
|
|
2128
2353
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const o =
|
|
2354
|
+
function xn(t) {
|
|
2355
|
+
const o = yn(), e = {
|
|
2131
2356
|
activeTheme: V(t),
|
|
2132
2357
|
themes: o.themes
|
|
2133
2358
|
};
|
|
2134
|
-
return Ne(
|
|
2135
|
-
}
|
|
2136
|
-
function Ro(t) {
|
|
2137
|
-
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
2138
|
-
}
|
|
2139
|
-
function Xo(t) {
|
|
2140
|
-
if (!Ro(t))
|
|
2141
|
-
throw new Error("Invalid color format");
|
|
2142
|
-
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
2143
|
-
const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
|
|
2144
|
-
return { r: o, g: e, b: n };
|
|
2359
|
+
return Ne(be, e), e;
|
|
2145
2360
|
}
|
|
2146
|
-
function
|
|
2361
|
+
function bn() {
|
|
2147
2362
|
let t = document.getElementById(
|
|
2148
|
-
|
|
2363
|
+
be
|
|
2149
2364
|
);
|
|
2150
|
-
return t || (t = document.createElement("style"), t.id =
|
|
2365
|
+
return t || (t = document.createElement("style"), t.id = be, document.head.appendChild(t)), t;
|
|
2151
2366
|
}
|
|
2152
|
-
function
|
|
2367
|
+
function gn(t) {
|
|
2153
2368
|
let o = "";
|
|
2154
2369
|
for (const n of t) {
|
|
2155
2370
|
o += `.q-theme--${n.name} {
|
|
@@ -2159,32 +2374,32 @@ function Zo(t) {
|
|
|
2159
2374
|
for (s in l) {
|
|
2160
2375
|
const i = l[s];
|
|
2161
2376
|
if (i) {
|
|
2162
|
-
o += ` ${
|
|
2377
|
+
o += ` ${Ue(s)}: ${i};
|
|
2163
2378
|
`;
|
|
2164
|
-
const a =
|
|
2165
|
-
o += ` ${
|
|
2379
|
+
const a = et(i);
|
|
2380
|
+
o += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
2166
2381
|
`;
|
|
2167
2382
|
}
|
|
2168
2383
|
}
|
|
2169
2384
|
o += `}
|
|
2170
2385
|
`;
|
|
2171
2386
|
}
|
|
2172
|
-
const e =
|
|
2387
|
+
const e = bn();
|
|
2173
2388
|
e.textContent = o;
|
|
2174
2389
|
}
|
|
2175
|
-
function
|
|
2390
|
+
function Ue(t) {
|
|
2176
2391
|
return t ? `--q-theme-${Xe(t)}` : "";
|
|
2177
2392
|
}
|
|
2178
|
-
function
|
|
2393
|
+
function _n(t = {}) {
|
|
2179
2394
|
return { install: (e) => {
|
|
2180
2395
|
const n = t.components || {};
|
|
2181
2396
|
for (const s in n)
|
|
2182
2397
|
e.component(s, n[s]);
|
|
2183
2398
|
const l = t.defaults || {};
|
|
2184
|
-
e.provide(
|
|
2399
|
+
e.provide(Ce, V(l)), kn(e, t.themes);
|
|
2185
2400
|
} };
|
|
2186
2401
|
}
|
|
2187
|
-
function
|
|
2402
|
+
function kn(t, o) {
|
|
2188
2403
|
const e = [];
|
|
2189
2404
|
let n;
|
|
2190
2405
|
if (!o)
|
|
@@ -2207,18 +2422,18 @@ function en(t, o) {
|
|
|
2207
2422
|
activeTheme: V(n),
|
|
2208
2423
|
themes: e
|
|
2209
2424
|
};
|
|
2210
|
-
|
|
2425
|
+
gn(e), Z(l.activeTheme, wn, { immediate: !0 }), t.provide(be, l);
|
|
2211
2426
|
}
|
|
2212
2427
|
}
|
|
2213
|
-
function
|
|
2428
|
+
function wn(t) {
|
|
2214
2429
|
const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
|
|
2215
2430
|
o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
|
|
2216
2431
|
}
|
|
2217
|
-
const
|
|
2432
|
+
const In = (t = {}) => _n({ components: hn, ...t });
|
|
2218
2433
|
export {
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2434
|
+
hn as components,
|
|
2435
|
+
In as createFramework,
|
|
2436
|
+
xn as provideTheme,
|
|
2437
|
+
qn as templates,
|
|
2438
|
+
yn as useTheme
|
|
2224
2439
|
};
|