@quidgest/ui 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +32 -8
- package/dist/ui.css +12 -0
- package/dist/ui.esm.js +782 -773
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +4 -4
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +52 -54
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +12 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getCurrentInstance as De, computed as w, ref as
|
|
2
|
-
function
|
|
1
|
+
import { getCurrentInstance as De, computed as w, ref as D, provide as ze, inject as Ce, watch as Y, defineComponent as x, openBlock as u, createElementBlock as m, normalizeClass as T, normalizeStyle as pe, createElementVNode as J, withModifiers as de, createVNode as F, unref as h, createCommentVNode as I, Fragment as te, createTextVNode as ue, toDisplayString as K, renderSlot as v, toRef as Ie, mergeModels as G, useModel as Z, createBlock as E, withCtx as k, renderList as be, resolveDynamicComponent as Ae, h as xe, normalizeProps as ne, mergeProps as se, reactive as Ne, onBeforeUnmount as He, onMounted as Qe, nextTick as H, Teleport as Ke, Transition as Ge, withKeys as We, createSlots as _e, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as ie } from "vue";
|
|
2
|
+
function ye(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Be(t) {
|
|
6
6
|
return t !== null && typeof t == "object" && !Array.isArray(t);
|
|
7
7
|
}
|
|
8
8
|
function ke(t = {}, o = {}) {
|
|
@@ -10,37 +10,37 @@ function ke(t = {}, o = {}) {
|
|
|
10
10
|
for (const n in t)
|
|
11
11
|
e[n] = t[n];
|
|
12
12
|
for (const n in o) {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
13
|
+
const l = t[n], s = o[n];
|
|
14
|
+
if (Be(l) && Be(s)) {
|
|
15
15
|
e[n] = ke(
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
l,
|
|
17
|
+
s
|
|
18
18
|
);
|
|
19
19
|
continue;
|
|
20
20
|
}
|
|
21
|
-
e[n] =
|
|
21
|
+
e[n] = s;
|
|
22
22
|
}
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
25
|
const we = "q-defaults";
|
|
26
26
|
function Ye() {
|
|
27
|
-
var
|
|
27
|
+
var s, r;
|
|
28
28
|
const t = De();
|
|
29
29
|
if (!t)
|
|
30
30
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
31
31
|
const o = t.type.name ?? t.type.__name;
|
|
32
32
|
if (!o)
|
|
33
33
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
34
|
-
const e =
|
|
35
|
-
return w(() => ke(n,
|
|
34
|
+
const e = Oe(), n = (s = e.value) == null ? void 0 : s.Global, l = (r = e.value) == null ? void 0 : r[o];
|
|
35
|
+
return w(() => ke(n, l));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
if (
|
|
37
|
+
function Me(t) {
|
|
38
|
+
if (ye(t))
|
|
39
39
|
return;
|
|
40
|
-
const o =
|
|
40
|
+
const o = Oe(), e = D(t), n = w(() => ye(e.value) ? o.value : ke(o.value, e.value));
|
|
41
41
|
ze(we, n);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Oe() {
|
|
44
44
|
const t = Ce(we, void 0);
|
|
45
45
|
if (!t)
|
|
46
46
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
@@ -55,12 +55,12 @@ function Ze() {
|
|
|
55
55
|
}
|
|
56
56
|
function Vo(t) {
|
|
57
57
|
const o = Ze(), e = {
|
|
58
|
-
activeTheme:
|
|
58
|
+
activeTheme: D(t),
|
|
59
59
|
themes: o.themes
|
|
60
60
|
};
|
|
61
61
|
return ze(ce, e), e;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const Se = {
|
|
64
64
|
primary: "#008ad2",
|
|
65
65
|
primaryLight: "#cde5ff",
|
|
66
66
|
primaryDark: "#006398",
|
|
@@ -123,92 +123,92 @@ const Be = {
|
|
|
123
123
|
onDanger: "#fff",
|
|
124
124
|
onInfo: "#fff"
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function Pe(t) {
|
|
127
127
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function et(t) {
|
|
130
|
+
if (!Pe(t))
|
|
131
131
|
throw new Error("Invalid color format");
|
|
132
132
|
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
133
133
|
const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
|
|
134
134
|
return { r: o, g: e, b: n };
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Fe(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 tt() {
|
|
140
140
|
let t = document.getElementById(
|
|
141
141
|
ce
|
|
142
142
|
);
|
|
143
143
|
return t || (t = document.createElement("style"), t.id = ce, document.head.appendChild(t)), t;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ot(t) {
|
|
146
146
|
let o = "";
|
|
147
147
|
for (const n of t) {
|
|
148
148
|
o += `.q-theme--${n.name} {
|
|
149
149
|
`;
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
for (
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
155
|
-
o += ` ${Ve(
|
|
150
|
+
const l = n.scheme;
|
|
151
|
+
let s;
|
|
152
|
+
for (s in l) {
|
|
153
|
+
const r = l[s];
|
|
154
|
+
if (r) {
|
|
155
|
+
o += ` ${Ve(s)}: ${r};
|
|
156
156
|
`;
|
|
157
|
-
const i =
|
|
158
|
-
o += ` ${Ve(
|
|
157
|
+
const i = et(r);
|
|
158
|
+
o += ` ${Ve(s)}-rgb: ${i.r} ${i.g} ${i.b};
|
|
159
159
|
`;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
o += `}
|
|
163
163
|
`;
|
|
164
164
|
}
|
|
165
|
-
const e =
|
|
165
|
+
const e = tt();
|
|
166
166
|
e.textContent = o;
|
|
167
167
|
}
|
|
168
168
|
function Ve(t) {
|
|
169
|
-
return t ? `--q-theme-${
|
|
169
|
+
return t ? `--q-theme-${Fe(t)}` : "";
|
|
170
170
|
}
|
|
171
171
|
function Eo(t = {}) {
|
|
172
172
|
return { install: (e) => {
|
|
173
173
|
const n = t.components || {};
|
|
174
|
-
for (const
|
|
175
|
-
e.component(
|
|
176
|
-
const
|
|
177
|
-
e.provide(we,
|
|
174
|
+
for (const s in n)
|
|
175
|
+
e.component(s, n[s]);
|
|
176
|
+
const l = t.defaults || {};
|
|
177
|
+
e.provide(we, D(l)), nt(e, t.themes);
|
|
178
178
|
} };
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function nt(t, o) {
|
|
181
181
|
const e = [];
|
|
182
182
|
let n;
|
|
183
183
|
if (!o)
|
|
184
184
|
n = "default", e.push({
|
|
185
185
|
name: n,
|
|
186
186
|
mode: "light",
|
|
187
|
-
scheme:
|
|
187
|
+
scheme: Se
|
|
188
188
|
});
|
|
189
189
|
else
|
|
190
|
-
for (const
|
|
191
|
-
const
|
|
190
|
+
for (const l of o.themes) {
|
|
191
|
+
const r = { ...l.mode === "light" ? Se : Je, ...l.colors };
|
|
192
192
|
e.push({
|
|
193
|
-
name:
|
|
194
|
-
mode:
|
|
195
|
-
scheme:
|
|
196
|
-
}),
|
|
193
|
+
name: l.name,
|
|
194
|
+
mode: l.mode,
|
|
195
|
+
scheme: r
|
|
196
|
+
}), l.name === o.defaultTheme && (n = l.name);
|
|
197
197
|
}
|
|
198
198
|
if (n) {
|
|
199
|
-
const
|
|
200
|
-
activeTheme:
|
|
199
|
+
const l = {
|
|
200
|
+
activeTheme: D(n),
|
|
201
201
|
themes: e
|
|
202
202
|
};
|
|
203
|
-
|
|
203
|
+
ot(e), Y(l.activeTheme, lt, { immediate: !0 }), t.provide(ce, l);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const o = document.documentElement, n = Array.from(o.classList).filter((
|
|
206
|
+
function lt(t) {
|
|
207
|
+
const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
|
|
208
208
|
o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
/* @__PURE__ */
|
|
210
|
+
const at = /* @__PURE__ */ J("svg", { viewBox: "25 25 50 50" }, [
|
|
211
|
+
/* @__PURE__ */ J("circle", {
|
|
212
212
|
class: "path",
|
|
213
213
|
cx: "50",
|
|
214
214
|
cy: "50",
|
|
@@ -218,9 +218,9 @@ const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
|
|
|
218
218
|
"stroke-width": "5",
|
|
219
219
|
"stroke-miterlimit": "10"
|
|
220
220
|
})
|
|
221
|
-
], -1),
|
|
222
|
-
|
|
223
|
-
],
|
|
221
|
+
], -1), st = [
|
|
222
|
+
at
|
|
223
|
+
], it = /* @__PURE__ */ x({
|
|
224
224
|
__name: "QSpinnerLoader",
|
|
225
225
|
props: {
|
|
226
226
|
size: { default: 48 },
|
|
@@ -230,40 +230,40 @@ const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
|
|
|
230
230
|
const o = t, e = w(() => ({
|
|
231
231
|
"font-size": o.size !== 48 ? `${o.size}px` : void 0
|
|
232
232
|
}));
|
|
233
|
-
return (n,
|
|
234
|
-
class:
|
|
233
|
+
return (n, l) => (u(), m("div", {
|
|
234
|
+
class: T(["q-spinner-loader", o.class]),
|
|
235
235
|
style: pe(e.value)
|
|
236
|
-
},
|
|
236
|
+
}, st, 6));
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
function
|
|
239
|
+
function rt(t, o) {
|
|
240
240
|
var n;
|
|
241
|
-
const e =
|
|
241
|
+
const e = Fe(o);
|
|
242
242
|
return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function S(t) {
|
|
245
245
|
const o = t.setup;
|
|
246
246
|
return o && (t.setup = (e, n) => {
|
|
247
|
-
const
|
|
248
|
-
if (
|
|
247
|
+
const l = Ye();
|
|
248
|
+
if (ye(l.value))
|
|
249
249
|
return o(e, n);
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
250
|
+
const s = De();
|
|
251
|
+
if (s === null)
|
|
252
252
|
return o(e, n);
|
|
253
|
-
const
|
|
254
|
-
get(i,
|
|
255
|
-
var
|
|
256
|
-
const
|
|
257
|
-
return typeof
|
|
253
|
+
const r = new Proxy(e, {
|
|
254
|
+
get(i, f) {
|
|
255
|
+
var y;
|
|
256
|
+
const L = Reflect.get(i, f), _ = (y = l.value) == null ? void 0 : y[f];
|
|
257
|
+
return typeof f == "string" && !rt(s.vnode, f) ? _ ?? L : L;
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
|
-
return o(
|
|
260
|
+
return o(r, n);
|
|
261
261
|
}), t;
|
|
262
262
|
}
|
|
263
|
-
const $e =
|
|
263
|
+
const $e = S(it), dt = ["disabled"], ut = {
|
|
264
264
|
key: 0,
|
|
265
265
|
class: "q-btn__spinner"
|
|
266
|
-
},
|
|
266
|
+
}, ct = { class: "q-btn__content" }, ft = /* @__PURE__ */ x({
|
|
267
267
|
__name: "QButton",
|
|
268
268
|
props: {
|
|
269
269
|
active: { type: Boolean },
|
|
@@ -280,11 +280,11 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
280
280
|
},
|
|
281
281
|
emits: ["click"],
|
|
282
282
|
setup(t, { emit: o }) {
|
|
283
|
-
const e = t, n = o,
|
|
284
|
-
function
|
|
285
|
-
|
|
283
|
+
const e = t, n = o, l = w(() => e.disabled || e.loading);
|
|
284
|
+
function s(i) {
|
|
285
|
+
l.value || n("click", i);
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const r = w(() => {
|
|
288
288
|
const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
289
289
|
return [
|
|
290
290
|
"q-btn",
|
|
@@ -300,27 +300,27 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
300
300
|
e.class
|
|
301
301
|
];
|
|
302
302
|
});
|
|
303
|
-
return (i,
|
|
303
|
+
return (i, f) => (u(), m("button", {
|
|
304
304
|
type: "button",
|
|
305
|
-
class:
|
|
306
|
-
disabled:
|
|
307
|
-
onClick: de(
|
|
305
|
+
class: T(r.value),
|
|
306
|
+
disabled: l.value,
|
|
307
|
+
onClick: de(s, ["stop", "prevent"])
|
|
308
308
|
}, [
|
|
309
|
-
i.loading ? (u(),
|
|
310
|
-
|
|
309
|
+
i.loading ? (u(), m("div", ut, [
|
|
310
|
+
F(h($e), { size: 20 })
|
|
311
311
|
])) : I("", !0),
|
|
312
|
-
|
|
313
|
-
i.iconOnRight ? (u(),
|
|
314
|
-
ue(
|
|
312
|
+
J("span", ct, [
|
|
313
|
+
i.iconOnRight ? (u(), m(te, { key: 0 }, [
|
|
314
|
+
ue(K(e.label), 1)
|
|
315
315
|
], 64)) : I("", !0),
|
|
316
|
-
|
|
317
|
-
i.iconOnRight ? I("", !0) : (u(),
|
|
318
|
-
ue(
|
|
316
|
+
v(i.$slots, "default"),
|
|
317
|
+
i.iconOnRight ? I("", !0) : (u(), m(te, { key: 1 }, [
|
|
318
|
+
ue(K(e.label), 1)
|
|
319
319
|
], 64))
|
|
320
320
|
])
|
|
321
|
-
], 10,
|
|
321
|
+
], 10, dt));
|
|
322
322
|
}
|
|
323
|
-
}), fe =
|
|
323
|
+
}), fe = S(ft), pt = /* @__PURE__ */ x({
|
|
324
324
|
__name: "QButtonGroup",
|
|
325
325
|
props: {
|
|
326
326
|
disabled: { type: Boolean },
|
|
@@ -330,15 +330,15 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
330
330
|
},
|
|
331
331
|
setup(t) {
|
|
332
332
|
const o = t;
|
|
333
|
-
return
|
|
333
|
+
return Me({
|
|
334
334
|
QButton: {
|
|
335
335
|
bStyle: "secondary",
|
|
336
|
-
disabled:
|
|
337
|
-
borderless:
|
|
336
|
+
disabled: Ie(o, "disabled"),
|
|
337
|
+
borderless: Ie(o, "borderless"),
|
|
338
338
|
elevated: !1
|
|
339
339
|
}
|
|
340
|
-
}), (e, n) => (u(),
|
|
341
|
-
class:
|
|
340
|
+
}), (e, n) => (u(), m("div", {
|
|
341
|
+
class: T([
|
|
342
342
|
"q-btn-group",
|
|
343
343
|
{
|
|
344
344
|
"q-btn-group--elevated": o.elevated
|
|
@@ -346,12 +346,12 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
346
346
|
o.class
|
|
347
347
|
])
|
|
348
348
|
}, [
|
|
349
|
-
|
|
349
|
+
v(e.$slots, "default")
|
|
350
350
|
], 2));
|
|
351
351
|
}
|
|
352
|
-
}),
|
|
352
|
+
}), mt = S(pt), vt = /* @__PURE__ */ x({
|
|
353
353
|
__name: "QButtonToggle",
|
|
354
|
-
props: /* @__PURE__ */
|
|
354
|
+
props: /* @__PURE__ */ G({
|
|
355
355
|
options: {},
|
|
356
356
|
disabled: { type: Boolean },
|
|
357
357
|
borderless: { type: Boolean },
|
|
@@ -364,27 +364,27 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
364
364
|
}),
|
|
365
365
|
emits: ["update:modelValue"],
|
|
366
366
|
setup(t) {
|
|
367
|
-
const o = t, e =
|
|
368
|
-
function n(
|
|
369
|
-
e.value ===
|
|
367
|
+
const o = t, e = Z(t, "modelValue");
|
|
368
|
+
function n(l) {
|
|
369
|
+
e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
|
|
370
370
|
}
|
|
371
|
-
return (
|
|
371
|
+
return (l, s) => (u(), E(h(mt), {
|
|
372
372
|
"b-style": "secondary",
|
|
373
|
-
class:
|
|
373
|
+
class: T(o.class),
|
|
374
374
|
disabled: o.disabled,
|
|
375
375
|
borderless: o.borderless,
|
|
376
376
|
elevated: o.elevated
|
|
377
377
|
}, {
|
|
378
378
|
default: k(() => [
|
|
379
|
-
(u(!0),
|
|
380
|
-
key:
|
|
381
|
-
title:
|
|
382
|
-
label:
|
|
383
|
-
active: e.value ===
|
|
384
|
-
onClick: () => n(
|
|
379
|
+
(u(!0), m(te, null, be(o.options, (r) => (u(), E(h(fe), {
|
|
380
|
+
key: r.key,
|
|
381
|
+
title: r.title,
|
|
382
|
+
label: r.label,
|
|
383
|
+
active: e.value === r.key,
|
|
384
|
+
onClick: () => n(r)
|
|
385
385
|
}, {
|
|
386
386
|
default: k(() => [
|
|
387
|
-
|
|
387
|
+
v(l.$slots, r.key)
|
|
388
388
|
]),
|
|
389
389
|
_: 2
|
|
390
390
|
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
@@ -392,7 +392,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
392
392
|
_: 3
|
|
393
393
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
394
394
|
}
|
|
395
|
-
}), To =
|
|
395
|
+
}), To = S(vt), ht = /* @__PURE__ */ x({
|
|
396
396
|
__name: "QIcon",
|
|
397
397
|
props: {
|
|
398
398
|
icon: {},
|
|
@@ -404,22 +404,22 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
404
404
|
const o = t, e = w(() => {
|
|
405
405
|
switch (o.type) {
|
|
406
406
|
case "svg":
|
|
407
|
-
return St;
|
|
408
|
-
case "font":
|
|
409
407
|
return It;
|
|
408
|
+
case "font":
|
|
409
|
+
return qt;
|
|
410
410
|
case "img":
|
|
411
411
|
return Lt;
|
|
412
412
|
default:
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
return (n,
|
|
417
|
-
class:
|
|
416
|
+
return (n, l) => (u(), E(Ae(e.value), {
|
|
417
|
+
class: T(o.class),
|
|
418
418
|
icon: o.icon,
|
|
419
419
|
size: o.size
|
|
420
420
|
}, null, 8, ["class", "icon", "size"]));
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), bt = /* @__PURE__ */ x({
|
|
423
423
|
__name: "QIconFont",
|
|
424
424
|
props: {
|
|
425
425
|
icon: {},
|
|
@@ -429,15 +429,15 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
429
429
|
class: { default: void 0 }
|
|
430
430
|
},
|
|
431
431
|
setup(t) {
|
|
432
|
-
const o = t, e = w(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = w(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon),
|
|
432
|
+
const o = t, e = w(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = w(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = w(() => ({
|
|
433
433
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
434
434
|
}));
|
|
435
|
-
return (
|
|
436
|
-
class:
|
|
437
|
-
style: pe(
|
|
435
|
+
return (s, r) => (u(), m("i", {
|
|
436
|
+
class: T(["q-icon", "q-icon__font", e.value, n.value, o.class]),
|
|
437
|
+
style: pe(l.value)
|
|
438
438
|
}, null, 6));
|
|
439
439
|
}
|
|
440
|
-
}),
|
|
440
|
+
}), yt = ["src"], gt = /* @__PURE__ */ x({
|
|
441
441
|
__name: "QIconImg",
|
|
442
442
|
props: {
|
|
443
443
|
icon: {},
|
|
@@ -448,13 +448,13 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
448
448
|
const o = t, e = w(() => ({
|
|
449
449
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
450
450
|
}));
|
|
451
|
-
return (n,
|
|
451
|
+
return (n, l) => (u(), m("img", {
|
|
452
452
|
src: o.icon,
|
|
453
|
-
class:
|
|
453
|
+
class: T(["q-icon", "q-icon__img", o.class]),
|
|
454
454
|
style: pe(e.value)
|
|
455
|
-
}, null, 14,
|
|
455
|
+
}, null, 14, yt));
|
|
456
456
|
}
|
|
457
|
-
}), re = {},
|
|
457
|
+
}), re = {}, _t = x({
|
|
458
458
|
name: "InlineSvg",
|
|
459
459
|
emits: {
|
|
460
460
|
loaded: (t) => typeof t == "object",
|
|
@@ -467,9 +467,9 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
467
467
|
return null;
|
|
468
468
|
const t = this.getSvgContent(this.svgElSource);
|
|
469
469
|
if (!t)
|
|
470
|
-
return
|
|
470
|
+
return xe("div", this.$attrs);
|
|
471
471
|
const o = {};
|
|
472
|
-
return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML,
|
|
472
|
+
return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, xe("svg", o);
|
|
473
473
|
},
|
|
474
474
|
props: {
|
|
475
475
|
/**
|
|
@@ -531,7 +531,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
531
531
|
n !== !1 && n !== null && n !== void 0 && (t[e] = n);
|
|
532
532
|
},
|
|
533
533
|
getSvgContent(t) {
|
|
534
|
-
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)),
|
|
534
|
+
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)), kt(t, this.title)), t);
|
|
535
535
|
},
|
|
536
536
|
/**
|
|
537
537
|
* Get svgElSource
|
|
@@ -539,7 +539,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
539
539
|
*/
|
|
540
540
|
async getSource(t) {
|
|
541
541
|
try {
|
|
542
|
-
re[t] || (re[t] =
|
|
542
|
+
re[t] || (re[t] = wt(this.download(t))), this.svgElSource && re[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
543
543
|
const o = await re[t];
|
|
544
544
|
this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
545
545
|
} catch (o) {
|
|
@@ -555,10 +555,10 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
555
555
|
const o = await fetch(t);
|
|
556
556
|
if (!o.ok)
|
|
557
557
|
throw new Error("Error loading SVG");
|
|
558
|
-
const e = await o.text(),
|
|
559
|
-
if (!
|
|
558
|
+
const e = await o.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
|
|
559
|
+
if (!s)
|
|
560
560
|
throw new Error("Loaded file is not a valid SVG");
|
|
561
|
-
return
|
|
561
|
+
return s;
|
|
562
562
|
}
|
|
563
563
|
},
|
|
564
564
|
watch: {
|
|
@@ -568,7 +568,7 @@ const $e = B(rt), ut = ["disabled"], ct = {
|
|
|
568
568
|
},
|
|
569
569
|
expose: []
|
|
570
570
|
});
|
|
571
|
-
function
|
|
571
|
+
function kt(t, o) {
|
|
572
572
|
const e = t.getElementsByTagName("title");
|
|
573
573
|
if (e.length)
|
|
574
574
|
e[0].textContent = o;
|
|
@@ -577,7 +577,7 @@ function wt(t, o) {
|
|
|
577
577
|
n.textContent = o, t.insertBefore(n, t.firstChild);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function wt(t) {
|
|
581
581
|
if (t.getIsPending)
|
|
582
582
|
return t;
|
|
583
583
|
let o = !0;
|
|
@@ -589,7 +589,7 @@ function $t(t) {
|
|
|
589
589
|
);
|
|
590
590
|
return e.getIsPending = () => o, e;
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const $t = /* @__PURE__ */ x({
|
|
593
593
|
__name: "QIconSvg",
|
|
594
594
|
props: {
|
|
595
595
|
icon: {},
|
|
@@ -599,27 +599,27 @@ const qt = /* @__PURE__ */ S({
|
|
|
599
599
|
},
|
|
600
600
|
emits: ["loaded", "unloaded"],
|
|
601
601
|
setup(t, { emit: o }) {
|
|
602
|
-
const e = t, n = o,
|
|
602
|
+
const e = t, n = o, l = w(() => ({
|
|
603
603
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
604
604
|
}));
|
|
605
|
-
function
|
|
605
|
+
function s(i) {
|
|
606
606
|
n("loaded", i);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function r() {
|
|
609
609
|
n("unloaded");
|
|
610
610
|
}
|
|
611
|
-
return (i,
|
|
612
|
-
class:
|
|
611
|
+
return (i, f) => (u(), E(h(_t), {
|
|
612
|
+
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
613
613
|
src: e.bundle,
|
|
614
614
|
symbol: e.icon,
|
|
615
|
-
style: pe(
|
|
616
|
-
onLoaded:
|
|
617
|
-
onUnloaded:
|
|
615
|
+
style: pe(l.value),
|
|
616
|
+
onLoaded: s,
|
|
617
|
+
onUnloaded: r
|
|
618
618
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
619
619
|
}
|
|
620
|
-
}),
|
|
620
|
+
}), ee = S(ht), qt = S(bt), Lt = S(gt), It = S($t), xt = /* @__PURE__ */ x({
|
|
621
621
|
__name: "QList",
|
|
622
|
-
props: /* @__PURE__ */
|
|
622
|
+
props: /* @__PURE__ */ G({
|
|
623
623
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
624
624
|
items: {},
|
|
625
625
|
groups: { default: () => [] },
|
|
@@ -635,139 +635,141 @@ const qt = /* @__PURE__ */ S({
|
|
|
635
635
|
}),
|
|
636
636
|
emits: ["update:modelValue"],
|
|
637
637
|
setup(t, { expose: o }) {
|
|
638
|
-
const e = t, n =
|
|
639
|
-
|
|
640
|
-
|
|
638
|
+
const e = t, n = Z(t, "modelValue"), l = D(!1), s = w(() => r.value.length > 1 ? "div" : "ul"), r = w(() => e.groups.length ? e.groups.filter(
|
|
639
|
+
(c) => e.items.some((b) => b.group === c.id)
|
|
640
|
+
) : [{ id: "", title: "" }]), i = D(null);
|
|
641
|
+
function f(c) {
|
|
642
|
+
n.value = c;
|
|
641
643
|
}
|
|
642
|
-
function
|
|
643
|
-
|
|
644
|
+
function L() {
|
|
645
|
+
l.value = !0;
|
|
644
646
|
}
|
|
645
|
-
function
|
|
646
|
-
|
|
647
|
+
function _() {
|
|
648
|
+
l.value = !1;
|
|
647
649
|
}
|
|
648
|
-
function
|
|
649
|
-
var
|
|
650
|
-
if ((
|
|
650
|
+
function y(c) {
|
|
651
|
+
var d;
|
|
652
|
+
if ((d = i.value) != null && d.contains(c.relatedTarget))
|
|
651
653
|
return;
|
|
652
|
-
let
|
|
653
|
-
n.value ?
|
|
654
|
-
const
|
|
655
|
-
|
|
654
|
+
let b;
|
|
655
|
+
n.value ? b = e.items.findIndex(($) => $[e.itemValue] === n.value) : b = j();
|
|
656
|
+
const q = l.value;
|
|
657
|
+
C(b, q);
|
|
656
658
|
}
|
|
657
|
-
function
|
|
658
|
-
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
659
|
+
function U(c) {
|
|
660
|
+
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && c.preventDefault(), c.key) {
|
|
659
661
|
case "ArrowDown":
|
|
660
|
-
|
|
662
|
+
z("next");
|
|
661
663
|
break;
|
|
662
664
|
case "ArrowUp":
|
|
663
|
-
|
|
665
|
+
z("prev");
|
|
664
666
|
break;
|
|
665
667
|
case "Home":
|
|
666
|
-
|
|
668
|
+
z("first");
|
|
667
669
|
break;
|
|
668
670
|
case "End":
|
|
669
|
-
|
|
671
|
+
z("last");
|
|
670
672
|
break;
|
|
671
673
|
}
|
|
672
674
|
}
|
|
673
|
-
function
|
|
674
|
-
switch (
|
|
675
|
+
function z(c) {
|
|
676
|
+
switch (c) {
|
|
675
677
|
case "next":
|
|
676
678
|
case "prev":
|
|
677
|
-
|
|
679
|
+
C(X(c));
|
|
678
680
|
break;
|
|
679
681
|
case "first":
|
|
680
|
-
|
|
682
|
+
C(j());
|
|
681
683
|
break;
|
|
682
684
|
case "last":
|
|
683
|
-
|
|
685
|
+
C(A());
|
|
684
686
|
break;
|
|
685
687
|
}
|
|
686
688
|
}
|
|
687
|
-
function
|
|
688
|
-
var
|
|
689
|
-
(
|
|
689
|
+
function C(c, b = !1) {
|
|
690
|
+
var d;
|
|
691
|
+
(d = V()[c]) == null || d.focus({ preventScroll: b });
|
|
690
692
|
}
|
|
691
|
-
function
|
|
692
|
-
var
|
|
693
|
-
const
|
|
694
|
-
return
|
|
693
|
+
function V() {
|
|
694
|
+
var b;
|
|
695
|
+
const c = (b = i.value) == null ? void 0 : b.querySelectorAll("li");
|
|
696
|
+
return c ? Array.from(c) : [];
|
|
695
697
|
}
|
|
696
|
-
function
|
|
697
|
-
return
|
|
698
|
+
function W(c) {
|
|
699
|
+
return V()[c];
|
|
698
700
|
}
|
|
699
701
|
function le() {
|
|
700
|
-
return
|
|
701
|
-
}
|
|
702
|
-
function
|
|
703
|
-
const
|
|
704
|
-
return
|
|
705
|
-
}
|
|
706
|
-
function
|
|
707
|
-
const
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
712
|
-
}
|
|
713
|
-
function
|
|
714
|
-
const
|
|
715
|
-
return
|
|
716
|
-
}
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
if (
|
|
720
|
-
return
|
|
721
|
-
let
|
|
722
|
-
for (; !
|
|
723
|
-
if (
|
|
724
|
-
return
|
|
725
|
-
|
|
702
|
+
return V().indexOf(document.activeElement);
|
|
703
|
+
}
|
|
704
|
+
function j() {
|
|
705
|
+
const c = V(), b = c.find((q) => P(q));
|
|
706
|
+
return b ? c.indexOf(b) : -1;
|
|
707
|
+
}
|
|
708
|
+
function A() {
|
|
709
|
+
const c = V(), b = [...c].reverse().find((q) => P(q));
|
|
710
|
+
return b ? c.indexOf(b) : -1;
|
|
711
|
+
}
|
|
712
|
+
function Q(c, b, q) {
|
|
713
|
+
return b === "prev" && c === 0 || b === "next" && c === q.length - 1;
|
|
714
|
+
}
|
|
715
|
+
function X(c) {
|
|
716
|
+
const b = le();
|
|
717
|
+
return N(b, c);
|
|
718
|
+
}
|
|
719
|
+
function N(c, b) {
|
|
720
|
+
const q = V();
|
|
721
|
+
if (Q(c, b, q))
|
|
722
|
+
return c;
|
|
723
|
+
let d = c + (b === "next" ? 1 : -1);
|
|
724
|
+
for (; !P(q[d]); ) {
|
|
725
|
+
if (Q(d, b, q))
|
|
726
|
+
return c;
|
|
727
|
+
d += b === "next" ? 1 : -1;
|
|
726
728
|
}
|
|
727
|
-
return
|
|
729
|
+
return d;
|
|
728
730
|
}
|
|
729
|
-
function
|
|
730
|
-
return
|
|
731
|
+
function P(c) {
|
|
732
|
+
return c.tabIndex === -2;
|
|
731
733
|
}
|
|
732
|
-
function
|
|
733
|
-
return
|
|
734
|
+
function ae(c) {
|
|
735
|
+
return c ? e.items.filter((b) => b.group === c) : e.items;
|
|
734
736
|
}
|
|
735
737
|
return o({
|
|
736
|
-
focusItem:
|
|
737
|
-
getItem:
|
|
738
|
-
getAdjacentItemIndex:
|
|
739
|
-
getFirstFocusableItemIndex:
|
|
740
|
-
getLastFocusableItemIndex:
|
|
741
|
-
}), (
|
|
738
|
+
focusItem: C,
|
|
739
|
+
getItem: W,
|
|
740
|
+
getAdjacentItemIndex: N,
|
|
741
|
+
getFirstFocusableItemIndex: j,
|
|
742
|
+
getLastFocusableItemIndex: A
|
|
743
|
+
}), (c, b) => (u(), E(Ae(s.value), {
|
|
742
744
|
ref_key: "listRef",
|
|
743
745
|
ref: i,
|
|
744
|
-
class:
|
|
746
|
+
class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
745
747
|
role: "listbox",
|
|
746
748
|
tabindex: e.disabled ? -1 : 0,
|
|
747
|
-
onFocus:
|
|
748
|
-
onMousedown:
|
|
749
|
-
onMouseup:
|
|
750
|
-
onKeydown:
|
|
749
|
+
onFocus: y,
|
|
750
|
+
onMousedown: L,
|
|
751
|
+
onMouseup: _,
|
|
752
|
+
onKeydown: U
|
|
751
753
|
}, {
|
|
752
754
|
default: k(() => [
|
|
753
|
-
(u(!0),
|
|
754
|
-
key:
|
|
755
|
-
title:
|
|
756
|
-
disabled:
|
|
755
|
+
(u(!0), m(te, null, be(r.value, (q) => (u(), E(h(Qt), {
|
|
756
|
+
key: q.id,
|
|
757
|
+
title: r.value.length === 1 ? void 0 : q.title,
|
|
758
|
+
disabled: q.disabled
|
|
757
759
|
}, {
|
|
758
760
|
default: k(() => [
|
|
759
|
-
(u(!0),
|
|
760
|
-
key:
|
|
761
|
-
value:
|
|
762
|
-
label:
|
|
763
|
-
icon:
|
|
764
|
-
disabled: e.disabled ||
|
|
765
|
-
highlighted: e.highlighted ===
|
|
766
|
-
selected: n.value ===
|
|
767
|
-
onSelect:
|
|
761
|
+
(u(!0), m(te, null, be(ae(q.id), (d) => (u(), E(h(At), {
|
|
762
|
+
key: d[e.itemValue],
|
|
763
|
+
value: d[e.itemValue],
|
|
764
|
+
label: d[e.itemLabel],
|
|
765
|
+
icon: d.icon,
|
|
766
|
+
disabled: e.disabled || d.disabled,
|
|
767
|
+
highlighted: e.highlighted === d[e.itemValue],
|
|
768
|
+
selected: n.value === d[e.itemValue],
|
|
769
|
+
onSelect: f
|
|
768
770
|
}, {
|
|
769
771
|
default: k(() => [
|
|
770
|
-
|
|
772
|
+
v(c.$slots, "item", { item: d })
|
|
771
773
|
]),
|
|
772
774
|
_: 2
|
|
773
775
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -783,11 +785,11 @@ let Bt = 0;
|
|
|
783
785
|
function me(t) {
|
|
784
786
|
return t || `uid-${++Bt}`;
|
|
785
787
|
}
|
|
786
|
-
const
|
|
788
|
+
const St = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-list-item__check-container" }, Et = {
|
|
787
789
|
check: {
|
|
788
790
|
icon: "check"
|
|
789
791
|
}
|
|
790
|
-
},
|
|
792
|
+
}, Tt = /* @__PURE__ */ x({
|
|
791
793
|
__name: "QListItem",
|
|
792
794
|
props: {
|
|
793
795
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -795,24 +797,24 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
|
|
|
795
797
|
icon: { default: void 0 },
|
|
796
798
|
selected: { type: Boolean },
|
|
797
799
|
highlighted: { type: Boolean },
|
|
798
|
-
icons: { default: () =>
|
|
800
|
+
icons: { default: () => Et },
|
|
799
801
|
disabled: { type: Boolean }
|
|
800
802
|
},
|
|
801
803
|
emits: ["select"],
|
|
802
804
|
setup(t, { emit: o }) {
|
|
803
|
-
const e = t, n = o,
|
|
804
|
-
function
|
|
805
|
+
const e = t, n = o, l = me();
|
|
806
|
+
function s() {
|
|
805
807
|
e.disabled || n("select", e.value);
|
|
806
808
|
}
|
|
807
|
-
function
|
|
808
|
-
i.key === "Tab" &&
|
|
809
|
+
function r(i) {
|
|
810
|
+
i.key === "Tab" && s(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), s());
|
|
809
811
|
}
|
|
810
|
-
return (i,
|
|
811
|
-
id:
|
|
812
|
+
return (i, f) => (u(), m("li", {
|
|
813
|
+
id: h(l),
|
|
812
814
|
"data-key": e.value,
|
|
813
815
|
role: "option",
|
|
814
816
|
tabindex: e.disabled ? void 0 : -2,
|
|
815
|
-
class:
|
|
817
|
+
class: T([
|
|
816
818
|
"q-list-item",
|
|
817
819
|
{
|
|
818
820
|
"q-list-item--disabled": e.disabled,
|
|
@@ -822,19 +824,19 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
|
|
|
822
824
|
]),
|
|
823
825
|
"aria-label": e.label,
|
|
824
826
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
825
|
-
onKeydown:
|
|
826
|
-
onClick: de(
|
|
827
|
+
onKeydown: r,
|
|
828
|
+
onClick: de(s, ["stop", "prevent"])
|
|
827
829
|
}, [
|
|
828
|
-
|
|
829
|
-
e.icon ? (u(),
|
|
830
|
-
ue(" " +
|
|
830
|
+
v(i.$slots, "default", {}, () => [
|
|
831
|
+
e.icon ? (u(), E(h(ee), ne(se({ key: 0 }, e.icon)), null, 16)) : I("", !0),
|
|
832
|
+
ue(" " + K(e.label), 1)
|
|
831
833
|
]),
|
|
832
|
-
|
|
833
|
-
e.selected ? (u(),
|
|
834
|
+
J("div", Vt, [
|
|
835
|
+
e.selected ? (u(), E(h(ee), se({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
|
|
834
836
|
])
|
|
835
|
-
], 42,
|
|
837
|
+
], 42, St));
|
|
836
838
|
}
|
|
837
|
-
}),
|
|
839
|
+
}), Dt = ["aria-labelledby"], zt = ["id"], Ct = /* @__PURE__ */ x({
|
|
838
840
|
__name: "QListItemGroup",
|
|
839
841
|
props: {
|
|
840
842
|
title: { default: "" },
|
|
@@ -842,96 +844,106 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Et = {
|
|
|
842
844
|
},
|
|
843
845
|
setup(t) {
|
|
844
846
|
const o = t, e = me();
|
|
845
|
-
return (n,
|
|
847
|
+
return (n, l) => (u(), m("ul", {
|
|
846
848
|
class: "q-list-item-group",
|
|
847
849
|
role: "group",
|
|
848
|
-
"aria-labelledby": o.title ?
|
|
850
|
+
"aria-labelledby": o.title ? h(e) : void 0
|
|
849
851
|
}, [
|
|
850
|
-
o.title ? (u(),
|
|
852
|
+
o.title ? (u(), m("li", {
|
|
851
853
|
key: 0,
|
|
852
|
-
id:
|
|
854
|
+
id: h(e),
|
|
853
855
|
class: "q-list-item-group__title",
|
|
854
856
|
role: "presentation"
|
|
855
|
-
},
|
|
856
|
-
|
|
857
|
-
], 8,
|
|
857
|
+
}, K(o.title), 9, zt)) : I("", !0),
|
|
858
|
+
v(n.$slots, "default")
|
|
859
|
+
], 8, Dt));
|
|
858
860
|
}
|
|
859
|
-
}),
|
|
861
|
+
}), Re = S(xt), At = S(Tt), Qt = S(Ct);
|
|
860
862
|
function Mt(t, o, e = "right", n) {
|
|
861
|
-
const
|
|
862
|
-
let
|
|
863
|
-
i &&
|
|
864
|
-
const
|
|
865
|
-
switch (
|
|
863
|
+
const l = t.getBoundingClientRect(), s = l.x + window.scrollX, r = l.y + window.scrollY, i = o == null ? void 0 : o.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, L = (i == null ? void 0 : i.height) ?? 0;
|
|
864
|
+
let _ = e;
|
|
865
|
+
i && ge(l, i, _) !== 0 && (_ = Ot(l, i, _));
|
|
866
|
+
const y = { x: 0, y: 0, placement: _ };
|
|
867
|
+
switch (_) {
|
|
866
868
|
case "top":
|
|
867
|
-
n === "anchor" ?
|
|
869
|
+
n === "anchor" ? y.x = s : y.x = s + (l.width - f) / 2, y.y = r - L;
|
|
868
870
|
break;
|
|
869
871
|
case "bottom":
|
|
870
|
-
n === "anchor" ?
|
|
872
|
+
n === "anchor" ? y.x = s : y.x = s + (l.width - f) / 2, y.y = r + l.height;
|
|
871
873
|
break;
|
|
872
874
|
case "left":
|
|
873
|
-
|
|
875
|
+
y.x = s - f, y.y = r + l.height / 2 - L / 2;
|
|
874
876
|
break;
|
|
875
877
|
case "right":
|
|
876
|
-
|
|
878
|
+
y.x = s + l.width, y.y = r + l.height / 2 - L / 2;
|
|
877
879
|
break;
|
|
878
880
|
}
|
|
879
|
-
return n === "anchor" &&
|
|
881
|
+
return y.x = Math.max(0, y.x), y.y = Math.max(0, y.y), n === "anchor" && l.width >= f && (y.width = l.width), y;
|
|
880
882
|
}
|
|
881
|
-
function
|
|
882
|
-
let n =
|
|
883
|
+
function ge(t, o, e) {
|
|
884
|
+
let n = 0, l = 0;
|
|
883
885
|
switch (e) {
|
|
884
886
|
case "top":
|
|
885
|
-
n = Te(t, o),
|
|
887
|
+
n = Te(t, o), l = t.top - o.height;
|
|
886
888
|
break;
|
|
887
889
|
case "bottom":
|
|
888
|
-
n = Te(t, o),
|
|
890
|
+
n = Te(t, o), l = window.innerHeight - t.top - t.height - o.height;
|
|
889
891
|
break;
|
|
890
892
|
case "left":
|
|
891
|
-
n = t.left
|
|
893
|
+
n = t.left - o.width, l = Ee(t, o);
|
|
892
894
|
break;
|
|
893
895
|
case "right":
|
|
894
|
-
n = window.innerWidth - t.left - t.width
|
|
896
|
+
n = window.innerWidth - t.left - t.width - o.width, l = Ee(t, o);
|
|
895
897
|
break;
|
|
896
898
|
}
|
|
897
|
-
return n
|
|
899
|
+
return Math.min(0, Math.min(n, l));
|
|
898
900
|
}
|
|
899
901
|
function Ee(t, o) {
|
|
900
|
-
return
|
|
902
|
+
return Math.min(
|
|
903
|
+
window.innerHeight - t.top - t.height / 2 - o.height / 2,
|
|
904
|
+
t.top + t.height / 2 - o.height / 2
|
|
905
|
+
);
|
|
901
906
|
}
|
|
902
907
|
function Te(t, o) {
|
|
903
|
-
return
|
|
908
|
+
return Math.min(
|
|
909
|
+
window.innerWidth - t.left - t.width / 2 - o.width / 2,
|
|
910
|
+
t.left + t.width / 2 - o.width / 2
|
|
911
|
+
);
|
|
904
912
|
}
|
|
905
|
-
function
|
|
913
|
+
function Ot(t, o, e) {
|
|
906
914
|
const n = {
|
|
907
915
|
top: ["bottom", "left", "right"],
|
|
908
916
|
bottom: ["top", "left", "right"],
|
|
909
917
|
left: ["right", "top", "bottom"],
|
|
910
918
|
right: ["left", "top", "bottom"]
|
|
911
919
|
};
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
920
|
+
let l = e, s = ge(t, o, e);
|
|
921
|
+
for (const r of n[e]) {
|
|
922
|
+
const i = ge(t, o, r);
|
|
923
|
+
i > s && (s = i, l = r);
|
|
924
|
+
}
|
|
925
|
+
return l;
|
|
916
926
|
}
|
|
917
|
-
function
|
|
927
|
+
function Ft(t) {
|
|
918
928
|
return typeof t == "string" ? document.querySelector(t) : t;
|
|
919
929
|
}
|
|
920
|
-
const
|
|
930
|
+
const Rt = ["role"], Ut = {
|
|
921
931
|
key: 0,
|
|
922
932
|
role: "presentation",
|
|
923
933
|
class: "q-overlay__arrow"
|
|
924
|
-
}, Nt = /* @__PURE__ */
|
|
934
|
+
}, Nt = /* @__PURE__ */ x({
|
|
925
935
|
inheritAttrs: !1,
|
|
926
936
|
__name: "QOverlay",
|
|
927
|
-
props: /* @__PURE__ */
|
|
937
|
+
props: /* @__PURE__ */ G({
|
|
928
938
|
anchor: { default: void 0 },
|
|
929
939
|
appearance: { default: "regular" },
|
|
930
940
|
arrow: { type: Boolean },
|
|
931
941
|
attach: { default: "body" },
|
|
932
942
|
backdropBlur: { type: Boolean },
|
|
933
943
|
delay: { default: 500 },
|
|
944
|
+
scrollLock: { type: Boolean },
|
|
934
945
|
offset: { default: 8 },
|
|
946
|
+
persistent: { type: Boolean },
|
|
935
947
|
placement: { default: "right" },
|
|
936
948
|
spy: { type: Boolean },
|
|
937
949
|
transition: { default: "fade" },
|
|
@@ -942,204 +954,200 @@ const Ot = ["role"], Ut = {
|
|
|
942
954
|
modelValue: { type: Boolean },
|
|
943
955
|
modelModifiers: {}
|
|
944
956
|
}),
|
|
945
|
-
emits: /* @__PURE__ */
|
|
957
|
+
emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
|
|
946
958
|
setup(t, { emit: o }) {
|
|
947
|
-
const e = t, n = o,
|
|
959
|
+
const e = t, n = o, l = Z(t, "modelValue"), s = w(() => [
|
|
948
960
|
"q-overlay",
|
|
949
961
|
`q-overlay--${i.placement}`,
|
|
950
|
-
{
|
|
962
|
+
{
|
|
963
|
+
"q-overlay--independent": e.anchor === void 0,
|
|
964
|
+
"q-overlay--inverted": e.appearance === "inverted"
|
|
965
|
+
},
|
|
951
966
|
e.class
|
|
952
|
-
]),
|
|
953
|
-
() => (
|
|
954
|
-
), i =
|
|
967
|
+
]), r = w(
|
|
968
|
+
() => (l.value || i.animating) && (e.anchor === void 0 || e.trigger === "click")
|
|
969
|
+
), i = Ne({
|
|
955
970
|
animating: !1,
|
|
956
971
|
top: 0,
|
|
957
972
|
left: 0,
|
|
958
973
|
width: 0,
|
|
959
974
|
placement: e.placement
|
|
960
975
|
});
|
|
961
|
-
|
|
962
|
-
const
|
|
963
|
-
|
|
964
|
-
|
|
976
|
+
Y(l, () => i.animating = !0);
|
|
977
|
+
const f = w(() => {
|
|
978
|
+
if (e.anchor === void 0)
|
|
979
|
+
return;
|
|
980
|
+
const p = ["top", "bottom"].includes(i.placement) ? i.width : void 0;
|
|
981
|
+
return {
|
|
982
|
+
top: `${i.top}px`,
|
|
983
|
+
left: `${i.left}px`,
|
|
984
|
+
width: p !== void 0 ? `${p}px` : void 0
|
|
985
|
+
};
|
|
986
|
+
}), L = D(null);
|
|
987
|
+
function _() {
|
|
988
|
+
const p = A();
|
|
989
|
+
if (!p)
|
|
990
|
+
return;
|
|
991
|
+
const M = Mt(p, L.value, e.placement, e.width);
|
|
992
|
+
let R = 0, oe = 0;
|
|
993
|
+
switch (M.placement) {
|
|
965
994
|
case "top":
|
|
966
|
-
|
|
995
|
+
oe = -(e.offset || 0);
|
|
967
996
|
break;
|
|
968
997
|
case "bottom":
|
|
969
|
-
|
|
998
|
+
oe = e.offset || 0;
|
|
970
999
|
break;
|
|
971
1000
|
case "left":
|
|
972
|
-
|
|
1001
|
+
R = -(e.offset || 0);
|
|
973
1002
|
break;
|
|
974
1003
|
case "right":
|
|
975
|
-
|
|
1004
|
+
R = e.offset || 0;
|
|
976
1005
|
break;
|
|
977
1006
|
}
|
|
978
|
-
|
|
979
|
-
top: `${i.top + h}px`,
|
|
980
|
-
left: `${i.left + l}px`
|
|
981
|
-
};
|
|
982
|
-
return i.width !== void 0 && ["top", "bottom"].includes(i.placement) && (O.width = `${i.width}px`), O;
|
|
983
|
-
}), q = T(null);
|
|
984
|
-
function g() {
|
|
985
|
-
if (e.anchor) {
|
|
986
|
-
const l = ae(e.anchor);
|
|
987
|
-
if (l) {
|
|
988
|
-
const h = Mt(
|
|
989
|
-
l,
|
|
990
|
-
q.value,
|
|
991
|
-
e.placement,
|
|
992
|
-
e.width
|
|
993
|
-
);
|
|
994
|
-
i.left = h.x, i.top = h.y, i.width = h.width, i.placement = h.placement;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
1007
|
+
i.left = M.x + R, i.top = M.y + oe, i.width = M.width, i.placement = M.placement;
|
|
997
1008
|
}
|
|
998
|
-
|
|
999
|
-
let
|
|
1000
|
-
function
|
|
1001
|
-
|
|
1009
|
+
Y([l, () => e.placement], _);
|
|
1010
|
+
let y;
|
|
1011
|
+
function U() {
|
|
1012
|
+
C(0);
|
|
1002
1013
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1014
|
+
function z() {
|
|
1015
|
+
C(e.delay);
|
|
1005
1016
|
}
|
|
1006
|
-
function
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
e.trigger === "click" && ((h = q.value) == null || h.focus());
|
|
1011
|
-
});
|
|
1012
|
-
}, l));
|
|
1017
|
+
function C(p) {
|
|
1018
|
+
y || (y = window.setTimeout(() => {
|
|
1019
|
+
l.value = !0;
|
|
1020
|
+
}, p));
|
|
1013
1021
|
}
|
|
1014
|
-
function
|
|
1015
|
-
clearTimeout(
|
|
1022
|
+
function V() {
|
|
1023
|
+
clearTimeout(y), y = void 0, l.value = !1, H(() => {
|
|
1016
1024
|
if (e.anchor && e.trigger === "click") {
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1025
|
+
const p = A();
|
|
1026
|
+
p == null || p.focus();
|
|
1019
1027
|
}
|
|
1020
1028
|
});
|
|
1021
1029
|
}
|
|
1022
|
-
let
|
|
1030
|
+
let W;
|
|
1023
1031
|
function le() {
|
|
1024
1032
|
n("enter");
|
|
1025
1033
|
}
|
|
1026
|
-
function
|
|
1027
|
-
window.clearTimeout(
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1034
|
+
function j() {
|
|
1035
|
+
window.clearTimeout(W), W = window.setTimeout(() => i.animating = !1, 200), n("leave");
|
|
1036
|
+
}
|
|
1037
|
+
function A() {
|
|
1038
|
+
return e.anchor ? Ft(e.anchor) : null;
|
|
1039
|
+
}
|
|
1040
|
+
let Q;
|
|
1041
|
+
function X() {
|
|
1042
|
+
H(() => {
|
|
1043
|
+
const p = A();
|
|
1044
|
+
if (p)
|
|
1045
|
+
switch (Q = new MutationObserver(_), Q.observe(p, {
|
|
1046
|
+
attributes: !1,
|
|
1047
|
+
childList: !0,
|
|
1048
|
+
characterData: !0,
|
|
1049
|
+
subtree: !0
|
|
1050
|
+
}), e.trigger) {
|
|
1037
1051
|
case "click":
|
|
1038
|
-
|
|
1052
|
+
p.addEventListener("click", U);
|
|
1039
1053
|
break;
|
|
1040
1054
|
case "hover":
|
|
1041
|
-
|
|
1055
|
+
p.addEventListener("mouseenter", z), p.addEventListener("mouseleave", V), p.addEventListener("focusin", U), p.addEventListener("focusout", V);
|
|
1042
1056
|
break;
|
|
1043
1057
|
}
|
|
1044
1058
|
});
|
|
1045
1059
|
}
|
|
1046
|
-
function
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
const l = ae(e.anchor);
|
|
1051
|
-
l && (window.addEventListener("resize", g), C = new MutationObserver(g), C.observe(l, {
|
|
1052
|
-
attributes: !1,
|
|
1053
|
-
childList: !0,
|
|
1054
|
-
characterData: !0,
|
|
1055
|
-
subtree: !0
|
|
1056
|
-
}), g());
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
function R() {
|
|
1060
|
-
if (!e.anchor)
|
|
1061
|
-
return;
|
|
1062
|
-
const l = ae(e.anchor);
|
|
1063
|
-
if (l)
|
|
1064
|
-
switch (e.trigger) {
|
|
1060
|
+
function N() {
|
|
1061
|
+
const p = A();
|
|
1062
|
+
if (p)
|
|
1063
|
+
switch (Q == null || Q.disconnect(), e.trigger) {
|
|
1065
1064
|
case "click":
|
|
1066
|
-
|
|
1065
|
+
p.removeEventListener("click", U);
|
|
1067
1066
|
break;
|
|
1068
1067
|
case "hover":
|
|
1069
|
-
|
|
1068
|
+
p.removeEventListener("mouseenter", z), p.removeEventListener("mouseleave", V), p.removeEventListener("focusin", U), p.removeEventListener("focusout", V);
|
|
1070
1069
|
break;
|
|
1071
1070
|
}
|
|
1072
1071
|
}
|
|
1073
|
-
function
|
|
1074
|
-
|
|
1072
|
+
function P() {
|
|
1073
|
+
H(() => {
|
|
1074
|
+
window.addEventListener("resize", _), e.scrollLock || window.addEventListener("scroll", _), _();
|
|
1075
|
+
});
|
|
1075
1076
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1077
|
+
function ae() {
|
|
1078
|
+
window.removeEventListener("resize", _), e.scrollLock || window.removeEventListener("scroll", _);
|
|
1079
|
+
}
|
|
1080
|
+
let c;
|
|
1081
|
+
function b() {
|
|
1082
|
+
A() ? (_(), c = window.setTimeout(b, 100)) : V();
|
|
1083
|
+
}
|
|
1084
|
+
function q() {
|
|
1085
|
+
P(), e.spy && b(), e.scrollLock && document.body.classList.add("no-scroll"), H(() => {
|
|
1086
|
+
var p;
|
|
1087
|
+
(e.anchor === void 0 || e.trigger === "click") && ((p = L.value) == null || p.focus());
|
|
1088
|
+
});
|
|
1081
1089
|
}
|
|
1082
|
-
function
|
|
1083
|
-
|
|
1090
|
+
function d() {
|
|
1091
|
+
ae(), e.spy && (clearTimeout(c), c = void 0), e.scrollLock && document.body.classList.remove("no-scroll");
|
|
1084
1092
|
}
|
|
1085
1093
|
function $() {
|
|
1086
|
-
|
|
1094
|
+
e.persistent || V();
|
|
1087
1095
|
}
|
|
1088
|
-
return
|
|
1089
|
-
|
|
1090
|
-
}),
|
|
1091
|
-
|
|
1092
|
-
|
|
1096
|
+
return He(() => {
|
|
1097
|
+
N(), d();
|
|
1098
|
+
}), Qe(() => {
|
|
1099
|
+
H(() => {
|
|
1100
|
+
X(), _();
|
|
1093
1101
|
});
|
|
1094
|
-
}),
|
|
1095
|
-
|
|
1096
|
-
(
|
|
1097
|
-
|
|
1102
|
+
}), Y(
|
|
1103
|
+
l,
|
|
1104
|
+
(p) => {
|
|
1105
|
+
p ? q() : d();
|
|
1098
1106
|
},
|
|
1099
1107
|
{ immediate: !0 }
|
|
1100
|
-
), (
|
|
1101
|
-
disabled: !
|
|
1108
|
+
), (p, M) => (u(), E(Ke, {
|
|
1109
|
+
disabled: !l.value && !i.animating || !e.attach,
|
|
1102
1110
|
to: e.attach
|
|
1103
1111
|
}, [
|
|
1104
|
-
|
|
1112
|
+
r.value ? (u(), m("div", {
|
|
1105
1113
|
key: 0,
|
|
1106
|
-
class:
|
|
1114
|
+
class: T([
|
|
1107
1115
|
"q-overlay__underlay",
|
|
1108
1116
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1109
1117
|
])
|
|
1110
1118
|
}, null, 2)) : I("", !0),
|
|
1111
|
-
|
|
1119
|
+
F(Ge, {
|
|
1112
1120
|
name: e.transition,
|
|
1113
1121
|
appear: "",
|
|
1114
1122
|
onEnter: le,
|
|
1115
|
-
onLeave:
|
|
1123
|
+
onLeave: j
|
|
1116
1124
|
}, {
|
|
1117
1125
|
default: k(() => [
|
|
1118
|
-
|
|
1126
|
+
l.value ? (u(), m("div", {
|
|
1119
1127
|
key: 0,
|
|
1120
|
-
class:
|
|
1121
|
-
style: pe(
|
|
1128
|
+
class: T(s.value),
|
|
1129
|
+
style: pe(f.value)
|
|
1122
1130
|
}, [
|
|
1123
|
-
|
|
1131
|
+
J("div", se({
|
|
1124
1132
|
class: "q-overlay__content",
|
|
1125
1133
|
ref_key: "overlayRef",
|
|
1126
|
-
ref:
|
|
1134
|
+
ref: L,
|
|
1127
1135
|
tabindex: "-1",
|
|
1128
|
-
role:
|
|
1129
|
-
},
|
|
1130
|
-
onKeydown:
|
|
1131
|
-
onBlur:
|
|
1136
|
+
role: r.value ? "dialog" : void 0
|
|
1137
|
+
}, p.$attrs, {
|
|
1138
|
+
onKeydown: We($, ["escape"]),
|
|
1139
|
+
onBlur: $
|
|
1132
1140
|
}), [
|
|
1133
|
-
e.arrow ? (u(),
|
|
1134
|
-
|
|
1135
|
-
], 16,
|
|
1141
|
+
e.arrow ? (u(), m("div", Ut)) : I("", !0),
|
|
1142
|
+
v(p.$slots, "default")
|
|
1143
|
+
], 16, Rt)
|
|
1136
1144
|
], 6)) : I("", !0)
|
|
1137
1145
|
]),
|
|
1138
1146
|
_: 3
|
|
1139
1147
|
}, 8, ["name"])
|
|
1140
1148
|
], 8, ["disabled", "to"]));
|
|
1141
1149
|
}
|
|
1142
|
-
}),
|
|
1150
|
+
}), ve = S(Nt), Ht = ["id"], Kt = {
|
|
1143
1151
|
key: 0,
|
|
1144
1152
|
class: "q-field__label"
|
|
1145
1153
|
}, Gt = ["for"], Wt = {
|
|
@@ -1148,10 +1156,10 @@ const Ot = ["role"], Ut = {
|
|
|
1148
1156
|
}, jt = {
|
|
1149
1157
|
key: 1,
|
|
1150
1158
|
class: "q-field__append"
|
|
1151
|
-
},
|
|
1159
|
+
}, Xt = {
|
|
1152
1160
|
key: 1,
|
|
1153
1161
|
class: "q-field__extras"
|
|
1154
|
-
},
|
|
1162
|
+
}, Yt = /* @__PURE__ */ x({
|
|
1155
1163
|
inheritAttrs: !1,
|
|
1156
1164
|
__name: "QField",
|
|
1157
1165
|
props: {
|
|
@@ -1165,53 +1173,53 @@ const Ot = ["role"], Ut = {
|
|
|
1165
1173
|
class: { default: void 0 }
|
|
1166
1174
|
},
|
|
1167
1175
|
setup(t, { expose: o }) {
|
|
1168
|
-
const e = t, n = me(e.id),
|
|
1176
|
+
const e = t, n = me(e.id), l = D(null), s = w(() => e.required && !e.readonly && !e.disabled);
|
|
1169
1177
|
return o({
|
|
1170
|
-
fieldRef:
|
|
1171
|
-
}), (
|
|
1172
|
-
id:
|
|
1173
|
-
class:
|
|
1178
|
+
fieldRef: l
|
|
1179
|
+
}), (r, i) => (u(), m("div", {
|
|
1180
|
+
id: h(n),
|
|
1181
|
+
class: T([
|
|
1174
1182
|
"q-field",
|
|
1175
1183
|
`q-field--${e.size}`,
|
|
1176
1184
|
{
|
|
1177
1185
|
"q-field--readonly": e.readonly,
|
|
1178
1186
|
"q-field--disabled": e.disabled,
|
|
1179
|
-
"q-field--required":
|
|
1187
|
+
"q-field--required": s.value
|
|
1180
1188
|
},
|
|
1181
1189
|
e.class
|
|
1182
1190
|
])
|
|
1183
1191
|
}, [
|
|
1184
|
-
e.label ? (u(),
|
|
1185
|
-
|
|
1186
|
-
|
|
1192
|
+
e.label ? (u(), m("div", Kt, [
|
|
1193
|
+
v(r.$slots, "label.prepend"),
|
|
1194
|
+
J("label", {
|
|
1187
1195
|
for: e.for
|
|
1188
|
-
},
|
|
1189
|
-
|
|
1196
|
+
}, K(e.label), 9, Gt),
|
|
1197
|
+
v(r.$slots, "label.append")
|
|
1190
1198
|
])) : I("", !0),
|
|
1191
|
-
|
|
1192
|
-
|
|
1199
|
+
v(r.$slots, "control", {}, () => [
|
|
1200
|
+
J("div", se({
|
|
1193
1201
|
class: "q-field__control",
|
|
1194
1202
|
ref_key: "fieldRef",
|
|
1195
|
-
ref:
|
|
1196
|
-
},
|
|
1197
|
-
|
|
1198
|
-
|
|
1203
|
+
ref: l
|
|
1204
|
+
}, r.$attrs), [
|
|
1205
|
+
r.$slots.prepend ? (u(), m("div", Wt, [
|
|
1206
|
+
v(r.$slots, "prepend")
|
|
1199
1207
|
])) : I("", !0),
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1208
|
+
v(r.$slots, "default"),
|
|
1209
|
+
r.$slots.append ? (u(), m("div", jt, [
|
|
1210
|
+
v(r.$slots, "append")
|
|
1203
1211
|
])) : I("", !0)
|
|
1204
1212
|
], 16)
|
|
1205
1213
|
]),
|
|
1206
|
-
|
|
1207
|
-
|
|
1214
|
+
r.$slots.extras ? (u(), m("div", Xt, [
|
|
1215
|
+
v(r.$slots, "extras")
|
|
1208
1216
|
])) : I("", !0)
|
|
1209
1217
|
], 10, Ht));
|
|
1210
1218
|
}
|
|
1211
|
-
}), qe =
|
|
1219
|
+
}), qe = S(Yt), Zt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Jt = /* @__PURE__ */ x({
|
|
1212
1220
|
inheritAttrs: !1,
|
|
1213
1221
|
__name: "QTextField",
|
|
1214
|
-
props: /* @__PURE__ */
|
|
1222
|
+
props: /* @__PURE__ */ G({
|
|
1215
1223
|
id: { default: void 0 },
|
|
1216
1224
|
placeholder: { default: "" },
|
|
1217
1225
|
label: { default: "" },
|
|
@@ -1229,20 +1237,20 @@ const Ot = ["role"], Ut = {
|
|
|
1229
1237
|
}),
|
|
1230
1238
|
emits: ["update:modelValue"],
|
|
1231
1239
|
setup(t, { expose: o }) {
|
|
1232
|
-
const e = t, n =
|
|
1240
|
+
const e = t, n = Z(t, "modelValue"), l = me(e.id), s = D(null), r = D(null), i = w(
|
|
1233
1241
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1234
1242
|
);
|
|
1235
1243
|
return o({
|
|
1236
1244
|
fieldRef: w(() => {
|
|
1237
|
-
var
|
|
1238
|
-
return (
|
|
1245
|
+
var f;
|
|
1246
|
+
return (f = s.value) == null ? void 0 : f.fieldRef;
|
|
1239
1247
|
}),
|
|
1240
|
-
inputRef:
|
|
1241
|
-
}), (
|
|
1248
|
+
inputRef: r
|
|
1249
|
+
}), (f, L) => (u(), E(h(qe), {
|
|
1242
1250
|
ref_key: "fieldRef",
|
|
1243
|
-
ref:
|
|
1244
|
-
class:
|
|
1245
|
-
for:
|
|
1251
|
+
ref: s,
|
|
1252
|
+
class: T(["q-text-field", e.class]),
|
|
1253
|
+
for: h(l),
|
|
1246
1254
|
label: e.label,
|
|
1247
1255
|
size: e.size,
|
|
1248
1256
|
readonly: e.readonly,
|
|
@@ -1250,17 +1258,17 @@ const Ot = ["role"], Ut = {
|
|
|
1250
1258
|
required: e.required
|
|
1251
1259
|
}, _e({
|
|
1252
1260
|
"label.prepend": k(() => [
|
|
1253
|
-
|
|
1261
|
+
v(f.$slots, "label.prepend")
|
|
1254
1262
|
]),
|
|
1255
1263
|
"label.append": k(() => [
|
|
1256
|
-
|
|
1264
|
+
v(f.$slots, "label.append")
|
|
1257
1265
|
]),
|
|
1258
1266
|
default: k(() => [
|
|
1259
|
-
|
|
1260
|
-
"onUpdate:modelValue":
|
|
1267
|
+
je(J("input", se({
|
|
1268
|
+
"onUpdate:modelValue": L[0] || (L[0] = (_) => n.value = _),
|
|
1261
1269
|
ref_key: "inputRef",
|
|
1262
|
-
ref:
|
|
1263
|
-
id:
|
|
1270
|
+
ref: r,
|
|
1271
|
+
id: h(l),
|
|
1264
1272
|
class: "q-text-field__input",
|
|
1265
1273
|
type: e.type,
|
|
1266
1274
|
role: e.role,
|
|
@@ -1269,36 +1277,36 @@ const Ot = ["role"], Ut = {
|
|
|
1269
1277
|
readonly: e.readonly,
|
|
1270
1278
|
disabled: e.disabled,
|
|
1271
1279
|
maxlength: e.maxLength
|
|
1272
|
-
},
|
|
1280
|
+
}, f.$attrs), null, 16, Zt), [
|
|
1273
1281
|
[Xe, n.value]
|
|
1274
1282
|
])
|
|
1275
1283
|
]),
|
|
1276
1284
|
_: 2
|
|
1277
1285
|
}, [
|
|
1278
|
-
|
|
1286
|
+
f.$slots.prepend ? {
|
|
1279
1287
|
name: "prepend",
|
|
1280
1288
|
fn: k(() => [
|
|
1281
|
-
|
|
1289
|
+
v(f.$slots, "prepend")
|
|
1282
1290
|
]),
|
|
1283
1291
|
key: "0"
|
|
1284
1292
|
} : void 0,
|
|
1285
|
-
|
|
1293
|
+
f.$slots.append ? {
|
|
1286
1294
|
name: "append",
|
|
1287
1295
|
fn: k(() => [
|
|
1288
|
-
|
|
1296
|
+
v(f.$slots, "append")
|
|
1289
1297
|
]),
|
|
1290
1298
|
key: "1"
|
|
1291
1299
|
} : void 0,
|
|
1292
|
-
|
|
1300
|
+
f.$slots.extras ? {
|
|
1293
1301
|
name: "extras",
|
|
1294
1302
|
fn: k(() => [
|
|
1295
|
-
|
|
1303
|
+
v(f.$slots, "extras")
|
|
1296
1304
|
]),
|
|
1297
1305
|
key: "2"
|
|
1298
1306
|
} : void 0
|
|
1299
1307
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1300
1308
|
}
|
|
1301
|
-
}),
|
|
1309
|
+
}), Pt = S(Jt), eo = ["data-key"], to = {
|
|
1302
1310
|
key: 0,
|
|
1303
1311
|
class: "q-select__loader"
|
|
1304
1312
|
}, oo = {
|
|
@@ -1313,9 +1321,9 @@ const Ot = ["role"], Ut = {
|
|
|
1313
1321
|
clear: {
|
|
1314
1322
|
icon: "close"
|
|
1315
1323
|
}
|
|
1316
|
-
}, ao = /* @__PURE__ */
|
|
1324
|
+
}, ao = /* @__PURE__ */ x({
|
|
1317
1325
|
__name: "QCombobox",
|
|
1318
|
-
props: /* @__PURE__ */
|
|
1326
|
+
props: /* @__PURE__ */ G({
|
|
1319
1327
|
id: { default: void 0 },
|
|
1320
1328
|
placeholder: { default: "" },
|
|
1321
1329
|
selectionMode: { default: "automatic" },
|
|
@@ -1345,161 +1353,161 @@ const Ot = ["role"], Ut = {
|
|
|
1345
1353
|
search: { default: "" },
|
|
1346
1354
|
searchModifiers: {}
|
|
1347
1355
|
}),
|
|
1348
|
-
emits: /* @__PURE__ */
|
|
1356
|
+
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1349
1357
|
setup(t, { expose: o, emit: e }) {
|
|
1350
|
-
const n = t,
|
|
1351
|
-
|
|
1352
|
-
const
|
|
1353
|
-
var
|
|
1354
|
-
return n.filterMode === "manual" || !
|
|
1355
|
-
(
|
|
1358
|
+
const n = t, l = e, s = Z(t, "modelValue"), r = Z(t, "open"), i = Z(t, "search"), f = D(void 0), L = D(null), _ = D(null), y = D(null);
|
|
1359
|
+
Qe(Q);
|
|
1360
|
+
const U = w(() => n.clearable && !n.readonly && !n.disabled), z = w(() => {
|
|
1361
|
+
var a;
|
|
1362
|
+
return n.filterMode === "manual" || !j.value ? n.items : (a = n.items) == null ? void 0 : a.filter(
|
|
1363
|
+
(g) => g[n.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
|
|
1356
1364
|
);
|
|
1357
|
-
}),
|
|
1358
|
-
var
|
|
1359
|
-
return (
|
|
1360
|
-
}),
|
|
1361
|
-
const
|
|
1362
|
-
if (
|
|
1363
|
-
return
|
|
1365
|
+
}), C = w(() => {
|
|
1366
|
+
var a;
|
|
1367
|
+
return (a = n.items) == null ? void 0 : a.find((g) => g[n.itemValue] === s.value);
|
|
1368
|
+
}), V = w(() => C.value === void 0), W = w(() => {
|
|
1369
|
+
const a = f.value;
|
|
1370
|
+
if (a !== void 0 && z.value[a])
|
|
1371
|
+
return z.value[a];
|
|
1364
1372
|
}), le = w(() => {
|
|
1365
|
-
var
|
|
1366
|
-
if (
|
|
1373
|
+
var g;
|
|
1374
|
+
if (f.value === void 0)
|
|
1367
1375
|
return;
|
|
1368
|
-
const
|
|
1369
|
-
return
|
|
1370
|
-
}),
|
|
1371
|
-
var
|
|
1372
|
-
return i.value.length > 0 && i.value !== ((
|
|
1376
|
+
const a = (g = _.value) == null ? void 0 : g.getItem(f.value);
|
|
1377
|
+
return a == null ? void 0 : a.id;
|
|
1378
|
+
}), j = w(() => {
|
|
1379
|
+
var a;
|
|
1380
|
+
return i.value.length > 0 && i.value !== ((a = C.value) == null ? void 0 : a[n.itemLabel]);
|
|
1373
1381
|
});
|
|
1374
|
-
function
|
|
1375
|
-
|
|
1382
|
+
function A(a) {
|
|
1383
|
+
s.value = a, N();
|
|
1376
1384
|
}
|
|
1377
|
-
function
|
|
1378
|
-
var
|
|
1379
|
-
const
|
|
1380
|
-
i.value !==
|
|
1385
|
+
function Q() {
|
|
1386
|
+
var g;
|
|
1387
|
+
const a = ((g = C.value) == null ? void 0 : g[n.itemLabel]) || "";
|
|
1388
|
+
i.value !== a && (i.value = a);
|
|
1381
1389
|
}
|
|
1382
|
-
function
|
|
1383
|
-
|
|
1390
|
+
function X() {
|
|
1391
|
+
r.value || n.readonly || n.disabled || (l("before-show"), r.value = !0, M());
|
|
1384
1392
|
}
|
|
1385
|
-
function
|
|
1386
|
-
|
|
1393
|
+
function N() {
|
|
1394
|
+
r.value && (l("before-hide"), r.value = !1, f.value = void 0);
|
|
1387
1395
|
}
|
|
1388
|
-
function
|
|
1389
|
-
|
|
1396
|
+
function P() {
|
|
1397
|
+
r.value ? N() : c();
|
|
1390
1398
|
}
|
|
1391
|
-
function
|
|
1392
|
-
|
|
1399
|
+
function ae() {
|
|
1400
|
+
U.value && (s.value = n.emptyValue, f.value = void 0, M());
|
|
1393
1401
|
}
|
|
1394
|
-
function
|
|
1395
|
-
if (
|
|
1396
|
-
const
|
|
1397
|
-
|
|
1402
|
+
function c() {
|
|
1403
|
+
if (X(), C.value !== void 0) {
|
|
1404
|
+
const a = z.value.indexOf(C.value);
|
|
1405
|
+
a !== -1 && H(() => Le(a));
|
|
1398
1406
|
}
|
|
1399
1407
|
}
|
|
1400
|
-
function
|
|
1401
|
-
var
|
|
1402
|
-
if (!(!
|
|
1403
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1404
|
-
|
|
1405
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
1406
|
-
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1408
|
+
function b(a) {
|
|
1409
|
+
var g, B;
|
|
1410
|
+
if (!(!a.key || n.readonly || n.disabled))
|
|
1411
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), a.key === "Escape")
|
|
1412
|
+
Q(), r.value && N();
|
|
1413
|
+
else if (["ArrowDown", "ArrowUp"].includes(a.key))
|
|
1414
|
+
r.value ? H(() => {
|
|
1415
|
+
if (f.value === void 0)
|
|
1416
|
+
q();
|
|
1409
1417
|
else {
|
|
1410
|
-
const
|
|
1411
|
-
|
|
1418
|
+
const O = a.key === "ArrowDown" ? "next" : "prev";
|
|
1419
|
+
$(f.value, O);
|
|
1412
1420
|
}
|
|
1413
|
-
}) : (
|
|
1414
|
-
|
|
1421
|
+
}) : (X(), H(() => {
|
|
1422
|
+
a.key === "ArrowDown" ? q() : d();
|
|
1415
1423
|
}));
|
|
1416
|
-
else if (
|
|
1417
|
-
if (
|
|
1424
|
+
else if (a.key === "Enter") {
|
|
1425
|
+
if (W.value === void 0)
|
|
1418
1426
|
return;
|
|
1419
|
-
|
|
1427
|
+
A(W.value[n.itemValue]);
|
|
1420
1428
|
} else
|
|
1421
|
-
|
|
1429
|
+
a.key === "Home" ? f.value = (g = _.value) == null ? void 0 : g.getFirstFocusableItemIndex() : a.key === "End" ? f.value = (B = _.value) == null ? void 0 : B.getLastFocusableItemIndex() : (/^[a-z]$/i.test(a.key) || a.key === "Backspace") && X();
|
|
1422
1430
|
}
|
|
1423
|
-
function
|
|
1424
|
-
var
|
|
1425
|
-
if (
|
|
1426
|
-
|
|
1431
|
+
function q() {
|
|
1432
|
+
var a, g;
|
|
1433
|
+
if (V.value)
|
|
1434
|
+
f.value = (g = _.value) == null ? void 0 : g.getFirstFocusableItemIndex();
|
|
1427
1435
|
else {
|
|
1428
|
-
const
|
|
1429
|
-
(
|
|
1436
|
+
const B = z.value.findIndex(
|
|
1437
|
+
(O) => O[n.itemValue] === s.value
|
|
1430
1438
|
);
|
|
1431
|
-
|
|
1439
|
+
B === -1 ? f.value = (a = _.value) == null ? void 0 : a.getFirstFocusableItemIndex() : f.value = B;
|
|
1432
1440
|
}
|
|
1433
1441
|
}
|
|
1434
|
-
function
|
|
1435
|
-
var
|
|
1436
|
-
|
|
1442
|
+
function d() {
|
|
1443
|
+
var a;
|
|
1444
|
+
f.value = (a = _.value) == null ? void 0 : a.getLastFocusableItemIndex();
|
|
1437
1445
|
}
|
|
1438
|
-
function
|
|
1439
|
-
var
|
|
1440
|
-
|
|
1446
|
+
function $(a, g) {
|
|
1447
|
+
var B;
|
|
1448
|
+
f.value = (B = _.value) == null ? void 0 : B.getAdjacentItemIndex(a, g);
|
|
1441
1449
|
}
|
|
1442
|
-
function
|
|
1443
|
-
var
|
|
1444
|
-
!((
|
|
1450
|
+
function p(a) {
|
|
1451
|
+
var g, B, O;
|
|
1452
|
+
!((g = y.value) != null && g.contains(a.relatedTarget)) && !((O = (B = L.value) == null ? void 0 : B.fieldRef) != null && O.contains(a.relatedTarget)) ? (N(), U.value && !i.value && (s.value = n.emptyValue), Q()) : (a.preventDefault(), a.stopPropagation());
|
|
1445
1453
|
}
|
|
1446
|
-
function
|
|
1447
|
-
var
|
|
1448
|
-
(
|
|
1454
|
+
function M() {
|
|
1455
|
+
var a, g;
|
|
1456
|
+
(g = (a = L.value) == null ? void 0 : a.inputRef) == null || g.focus();
|
|
1449
1457
|
}
|
|
1450
|
-
function
|
|
1451
|
-
|
|
1458
|
+
function R() {
|
|
1459
|
+
M();
|
|
1452
1460
|
}
|
|
1453
|
-
function
|
|
1454
|
-
|
|
1461
|
+
function oe() {
|
|
1462
|
+
l("show");
|
|
1455
1463
|
}
|
|
1456
|
-
function
|
|
1457
|
-
|
|
1464
|
+
function Ue() {
|
|
1465
|
+
l("hide");
|
|
1458
1466
|
}
|
|
1459
|
-
function
|
|
1460
|
-
var
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1467
|
+
function Le(a) {
|
|
1468
|
+
var B;
|
|
1469
|
+
const g = (B = _.value) == null ? void 0 : B.getItem(a);
|
|
1470
|
+
_.value && (_.value.$el.scrollTop = g == null ? void 0 : g.offsetTop);
|
|
1463
1471
|
}
|
|
1464
|
-
return
|
|
1472
|
+
return Y(s, Q), Y(
|
|
1465
1473
|
() => n.items,
|
|
1466
|
-
(
|
|
1467
|
-
if (!
|
|
1468
|
-
const
|
|
1469
|
-
i.value === (
|
|
1474
|
+
(a, g) => {
|
|
1475
|
+
if (!V.value) {
|
|
1476
|
+
const B = g.find((O) => O[n.itemValue] === s.value);
|
|
1477
|
+
i.value === (B == null ? void 0 : B[n.itemLabel]) && Q();
|
|
1470
1478
|
}
|
|
1471
1479
|
},
|
|
1472
1480
|
{ deep: !0 }
|
|
1473
|
-
),
|
|
1474
|
-
|
|
1475
|
-
}),
|
|
1476
|
-
|
|
1477
|
-
}),
|
|
1481
|
+
), Y(f, (a) => {
|
|
1482
|
+
a !== void 0 && Le(a);
|
|
1483
|
+
}), Y(i, (a) => {
|
|
1484
|
+
a && r.value && n.selectionMode === "automatic" && H(q);
|
|
1485
|
+
}), Y(
|
|
1478
1486
|
() => n.loading,
|
|
1479
|
-
(
|
|
1480
|
-
!
|
|
1487
|
+
(a) => {
|
|
1488
|
+
!a && r.value && H(q);
|
|
1481
1489
|
}
|
|
1482
1490
|
), o({
|
|
1483
|
-
triggerEl:
|
|
1484
|
-
}), (
|
|
1485
|
-
var
|
|
1486
|
-
return u(),
|
|
1487
|
-
|
|
1491
|
+
triggerEl: L
|
|
1492
|
+
}), (a, g) => {
|
|
1493
|
+
var B;
|
|
1494
|
+
return u(), m(te, null, [
|
|
1495
|
+
F(h(Pt), {
|
|
1488
1496
|
modelValue: i.value,
|
|
1489
|
-
"onUpdate:modelValue":
|
|
1497
|
+
"onUpdate:modelValue": g[0] || (g[0] = (O) => i.value = O),
|
|
1490
1498
|
id: n.id,
|
|
1491
1499
|
label: n.label,
|
|
1492
1500
|
required: n.required,
|
|
1493
1501
|
ref_key: "triggerEl",
|
|
1494
|
-
ref:
|
|
1502
|
+
ref: L,
|
|
1495
1503
|
role: "combobox",
|
|
1496
1504
|
placeholder: n.placeholder,
|
|
1497
|
-
class:
|
|
1505
|
+
class: T([
|
|
1498
1506
|
"q-combobox",
|
|
1499
1507
|
{
|
|
1500
1508
|
"q-combobox--readonly": n.readonly,
|
|
1501
1509
|
"q-combobox--disabled": n.disabled,
|
|
1502
|
-
"q-combobox--expanded":
|
|
1510
|
+
"q-combobox--expanded": r.value
|
|
1503
1511
|
},
|
|
1504
1512
|
n.class
|
|
1505
1513
|
]),
|
|
@@ -1507,117 +1515,117 @@ const Ot = ["role"], Ut = {
|
|
|
1507
1515
|
disabled: n.disabled,
|
|
1508
1516
|
"data-loading": n.loading,
|
|
1509
1517
|
autocomplete: "off",
|
|
1510
|
-
"aria-expanded":
|
|
1518
|
+
"aria-expanded": r.value,
|
|
1511
1519
|
"aria-haspopup": "listbox",
|
|
1512
1520
|
"aria-autocomplete": "list",
|
|
1513
1521
|
"aria-activedescendant": le.value,
|
|
1514
1522
|
size: n.size,
|
|
1515
|
-
onClick:
|
|
1516
|
-
onFocusout:
|
|
1517
|
-
onKeydown: de(
|
|
1523
|
+
onClick: c,
|
|
1524
|
+
onFocusout: p,
|
|
1525
|
+
onKeydown: de(b, ["stop"])
|
|
1518
1526
|
}, _e({
|
|
1519
1527
|
"label.prepend": k(() => [
|
|
1520
|
-
|
|
1528
|
+
v(a.$slots, "label.prepend")
|
|
1521
1529
|
]),
|
|
1522
1530
|
"label.append": k(() => [
|
|
1523
|
-
|
|
1531
|
+
v(a.$slots, "label.append")
|
|
1524
1532
|
]),
|
|
1525
1533
|
append: k(() => [
|
|
1526
|
-
|
|
1527
|
-
|
|
1534
|
+
v(a.$slots, "append"),
|
|
1535
|
+
U.value && i.value ? (u(), E(h(fe), {
|
|
1528
1536
|
key: 0,
|
|
1529
1537
|
class: "q-combobox__clear",
|
|
1530
1538
|
"b-style": "plain",
|
|
1531
1539
|
borderless: "",
|
|
1532
1540
|
tabindex: "-1",
|
|
1533
|
-
onClick:
|
|
1541
|
+
onClick: ae
|
|
1534
1542
|
}, {
|
|
1535
1543
|
default: k(() => [
|
|
1536
|
-
|
|
1544
|
+
F(h(ee), ne(ie(n.icons.clear)), null, 16)
|
|
1537
1545
|
]),
|
|
1538
1546
|
_: 1
|
|
1539
1547
|
})) : I("", !0),
|
|
1540
|
-
n.readonly ? I("", !0) : (u(),
|
|
1548
|
+
n.readonly ? I("", !0) : (u(), E(h(fe), {
|
|
1541
1549
|
key: 1,
|
|
1542
1550
|
class: "q-combobox__chevron",
|
|
1543
1551
|
"b-style": "plain",
|
|
1544
1552
|
borderless: "",
|
|
1545
1553
|
tabindex: "-1",
|
|
1546
1554
|
disabled: n.disabled,
|
|
1547
|
-
onClick:
|
|
1555
|
+
onClick: P
|
|
1548
1556
|
}, {
|
|
1549
1557
|
default: k(() => [
|
|
1550
|
-
|
|
1558
|
+
F(h(ee), ne(ie(n.icons.chevron)), null, 16)
|
|
1551
1559
|
]),
|
|
1552
1560
|
_: 1
|
|
1553
1561
|
}, 8, ["disabled"]))
|
|
1554
1562
|
]),
|
|
1555
1563
|
_: 2
|
|
1556
1564
|
}, [
|
|
1557
|
-
|
|
1565
|
+
a.$slots.prepend ? {
|
|
1558
1566
|
name: "prepend",
|
|
1559
1567
|
fn: k(() => [
|
|
1560
|
-
|
|
1568
|
+
v(a.$slots, "prepend")
|
|
1561
1569
|
]),
|
|
1562
1570
|
key: "0"
|
|
1563
1571
|
} : void 0,
|
|
1564
|
-
|
|
1572
|
+
a.$slots.extras ? {
|
|
1565
1573
|
name: "extras",
|
|
1566
1574
|
fn: k(() => [
|
|
1567
|
-
|
|
1575
|
+
v(a.$slots, "extras")
|
|
1568
1576
|
]),
|
|
1569
1577
|
key: "1"
|
|
1570
1578
|
} : void 0
|
|
1571
1579
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1572
|
-
|
|
1573
|
-
modelValue:
|
|
1574
|
-
"onUpdate:modelValue":
|
|
1580
|
+
F(h(ve), {
|
|
1581
|
+
modelValue: r.value,
|
|
1582
|
+
"onUpdate:modelValue": g[2] || (g[2] = (O) => r.value = O),
|
|
1575
1583
|
spy: "",
|
|
1576
1584
|
trigger: "manual",
|
|
1577
1585
|
placement: "bottom",
|
|
1578
1586
|
width: "anchor",
|
|
1579
1587
|
offset: 4,
|
|
1580
|
-
anchor: (
|
|
1581
|
-
onEnter:
|
|
1582
|
-
onLeave:
|
|
1588
|
+
anchor: (B = L.value) == null ? void 0 : B.$el,
|
|
1589
|
+
onEnter: oe,
|
|
1590
|
+
onLeave: Ue
|
|
1583
1591
|
}, {
|
|
1584
1592
|
default: k(() => {
|
|
1585
|
-
var
|
|
1593
|
+
var O;
|
|
1586
1594
|
return [
|
|
1587
|
-
|
|
1595
|
+
J("div", {
|
|
1588
1596
|
ref_key: "contentRef",
|
|
1589
|
-
ref:
|
|
1597
|
+
ref: y,
|
|
1590
1598
|
"data-testid": "combobox-dropdown",
|
|
1591
1599
|
"data-key": n.id,
|
|
1592
1600
|
class: "q-select__body",
|
|
1593
|
-
onFocusout:
|
|
1601
|
+
onFocusout: p
|
|
1594
1602
|
}, [
|
|
1595
|
-
|
|
1596
|
-
n.loading ? (u(),
|
|
1597
|
-
|
|
1598
|
-
])) :
|
|
1603
|
+
v(a.$slots, "body.prepend"),
|
|
1604
|
+
n.loading ? (u(), m("div", to, [
|
|
1605
|
+
F(h($e), { size: 24 })
|
|
1606
|
+
])) : z.value.length ? (u(), E(h(Re), {
|
|
1599
1607
|
key: 1,
|
|
1600
1608
|
ref_key: "listRef",
|
|
1601
|
-
ref:
|
|
1609
|
+
ref: _,
|
|
1602
1610
|
class: "q-select__items",
|
|
1603
|
-
modelValue:
|
|
1611
|
+
modelValue: s.value,
|
|
1604
1612
|
"onUpdate:modelValue": [
|
|
1605
|
-
|
|
1606
|
-
|
|
1613
|
+
g[1] || (g[1] = (he) => s.value = he),
|
|
1614
|
+
A
|
|
1607
1615
|
],
|
|
1608
|
-
highlighted: (
|
|
1609
|
-
items:
|
|
1610
|
-
groups:
|
|
1616
|
+
highlighted: (O = W.value) == null ? void 0 : O[n.itemValue],
|
|
1617
|
+
items: z.value,
|
|
1618
|
+
groups: a.groups,
|
|
1611
1619
|
"item-label": n.itemLabel,
|
|
1612
1620
|
"item-value": n.itemValue,
|
|
1613
|
-
onMouseup:
|
|
1621
|
+
onMouseup: R
|
|
1614
1622
|
}, {
|
|
1615
|
-
item: k(({ item:
|
|
1616
|
-
|
|
1623
|
+
item: k(({ item: he }) => [
|
|
1624
|
+
v(a.$slots, "item", { item: he })
|
|
1617
1625
|
]),
|
|
1618
1626
|
_: 3
|
|
1619
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(),
|
|
1620
|
-
|
|
1627
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", oo, K(a.texts.noData), 1)),
|
|
1628
|
+
v(a.$slots, "body.append")
|
|
1621
1629
|
], 40, eo)
|
|
1622
1630
|
];
|
|
1623
1631
|
}),
|
|
@@ -1626,13 +1634,13 @@ const Ot = ["role"], Ut = {
|
|
|
1626
1634
|
], 64);
|
|
1627
1635
|
};
|
|
1628
1636
|
}
|
|
1629
|
-
}), Do =
|
|
1637
|
+
}), Do = S(ao), so = {
|
|
1630
1638
|
key: 0,
|
|
1631
1639
|
class: "q-input-group__prepend"
|
|
1632
1640
|
}, io = { key: 0 }, ro = {
|
|
1633
1641
|
key: 1,
|
|
1634
1642
|
class: "q-input-group__append"
|
|
1635
|
-
}, uo = { key: 0 }, co = /* @__PURE__ */
|
|
1643
|
+
}, uo = { key: 0 }, co = /* @__PURE__ */ x({
|
|
1636
1644
|
__name: "QInputGroup",
|
|
1637
1645
|
props: {
|
|
1638
1646
|
id: { default: void 0 },
|
|
@@ -1645,56 +1653,56 @@ const Ot = ["role"], Ut = {
|
|
|
1645
1653
|
},
|
|
1646
1654
|
setup(t) {
|
|
1647
1655
|
const o = t;
|
|
1648
|
-
return
|
|
1656
|
+
return Me({
|
|
1649
1657
|
QField: {
|
|
1650
1658
|
size: "block"
|
|
1651
1659
|
}
|
|
1652
|
-
}), (e, n) => (u(),
|
|
1660
|
+
}), (e, n) => (u(), E(h(qe), {
|
|
1653
1661
|
id: o.id,
|
|
1654
|
-
class:
|
|
1662
|
+
class: T(["q-input-group", o.class]),
|
|
1655
1663
|
label: o.label,
|
|
1656
1664
|
required: o.required,
|
|
1657
1665
|
size: o.size
|
|
1658
1666
|
}, {
|
|
1659
1667
|
default: k(() => [
|
|
1660
|
-
e.$slots.prepend || o.prependIcon ? (u(),
|
|
1661
|
-
o.prependIcon ? (u(),
|
|
1662
|
-
|
|
1668
|
+
e.$slots.prepend || o.prependIcon ? (u(), m("div", so, [
|
|
1669
|
+
o.prependIcon ? (u(), m("span", io, [
|
|
1670
|
+
F(h(ee), ne(ie(o.prependIcon)), null, 16)
|
|
1663
1671
|
])) : I("", !0),
|
|
1664
|
-
|
|
1672
|
+
v(e.$slots, "prepend")
|
|
1665
1673
|
])) : I("", !0),
|
|
1666
|
-
|
|
1667
|
-
e.$slots.append || o.appendIcon ? (u(),
|
|
1668
|
-
o.appendIcon ? (u(),
|
|
1669
|
-
|
|
1674
|
+
v(e.$slots, "default"),
|
|
1675
|
+
e.$slots.append || o.appendIcon ? (u(), m("div", ro, [
|
|
1676
|
+
o.appendIcon ? (u(), m("span", uo, [
|
|
1677
|
+
F(h(ee), ne(ie(o.appendIcon)), null, 16)
|
|
1670
1678
|
])) : I("", !0),
|
|
1671
|
-
|
|
1679
|
+
v(e.$slots, "append")
|
|
1672
1680
|
])) : I("", !0)
|
|
1673
1681
|
]),
|
|
1674
1682
|
_: 3
|
|
1675
1683
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1676
1684
|
}
|
|
1677
|
-
}), zo =
|
|
1685
|
+
}), zo = S(co), fo = /* @__PURE__ */ x({
|
|
1678
1686
|
__name: "QLineLoader",
|
|
1679
1687
|
props: {
|
|
1680
1688
|
class: { default: void 0 }
|
|
1681
1689
|
},
|
|
1682
1690
|
setup(t) {
|
|
1683
1691
|
const o = t;
|
|
1684
|
-
return (e, n) => (u(),
|
|
1685
|
-
class:
|
|
1692
|
+
return (e, n) => (u(), m("div", {
|
|
1693
|
+
class: T(["q-line-loader", o.class])
|
|
1686
1694
|
}, null, 2));
|
|
1687
1695
|
}
|
|
1688
|
-
}), Co =
|
|
1696
|
+
}), Co = S(fo), po = {
|
|
1689
1697
|
key: 0,
|
|
1690
1698
|
class: "q-popover__header"
|
|
1691
1699
|
}, mo = {
|
|
1692
1700
|
key: 1,
|
|
1693
1701
|
class: "q-popover__body"
|
|
1694
|
-
}, vo = ["innerHTML"], ho = { key: 1 }, bo = /* @__PURE__ */
|
|
1702
|
+
}, vo = ["innerHTML"], ho = { key: 1 }, bo = /* @__PURE__ */ x({
|
|
1695
1703
|
inheritAttrs: !1,
|
|
1696
1704
|
__name: "QPopover",
|
|
1697
|
-
props: /* @__PURE__ */
|
|
1705
|
+
props: /* @__PURE__ */ G({
|
|
1698
1706
|
anchor: {},
|
|
1699
1707
|
arrow: { type: Boolean, default: !0 },
|
|
1700
1708
|
attach: { default: "body" },
|
|
@@ -1709,8 +1717,8 @@ const Ot = ["role"], Ut = {
|
|
|
1709
1717
|
}),
|
|
1710
1718
|
emits: ["update:modelValue"],
|
|
1711
1719
|
setup(t) {
|
|
1712
|
-
const o = t, e =
|
|
1713
|
-
return (n,
|
|
1720
|
+
const o = t, e = Z(t, "modelValue");
|
|
1721
|
+
return (n, l) => (u(), E(h(ve), {
|
|
1714
1722
|
"model-value": e.value,
|
|
1715
1723
|
class: "q-popover",
|
|
1716
1724
|
trigger: "click",
|
|
@@ -1721,22 +1729,22 @@ const Ot = ["role"], Ut = {
|
|
|
1721
1729
|
placement: o.placement
|
|
1722
1730
|
}, {
|
|
1723
1731
|
default: k(() => [
|
|
1724
|
-
o.title || n.$slots.header ? (u(),
|
|
1725
|
-
ue(
|
|
1726
|
-
|
|
1732
|
+
o.title || n.$slots.header ? (u(), m("h3", po, [
|
|
1733
|
+
ue(K(o.title) + " ", 1),
|
|
1734
|
+
v(n.$slots, "header")
|
|
1727
1735
|
])) : I("", !0),
|
|
1728
|
-
o.text || n.$slots.body ? (u(),
|
|
1729
|
-
o.html ? (u(),
|
|
1736
|
+
o.text || n.$slots.body ? (u(), m("div", mo, [
|
|
1737
|
+
o.html ? (u(), m("span", {
|
|
1730
1738
|
key: 0,
|
|
1731
1739
|
innerHTML: o.text
|
|
1732
|
-
}, null, 8, vo)) : (u(),
|
|
1733
|
-
|
|
1740
|
+
}, null, 8, vo)) : (u(), m("span", ho, K(o.text), 1)),
|
|
1741
|
+
v(n.$slots, "body")
|
|
1734
1742
|
])) : I("", !0)
|
|
1735
1743
|
]),
|
|
1736
1744
|
_: 3
|
|
1737
1745
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
1738
1746
|
}
|
|
1739
|
-
}),
|
|
1747
|
+
}), Ao = S(bo), yo = {
|
|
1740
1748
|
key: 0,
|
|
1741
1749
|
class: "q-select__value"
|
|
1742
1750
|
}, go = {
|
|
@@ -1754,9 +1762,9 @@ const Ot = ["role"], Ut = {
|
|
|
1754
1762
|
clear: {
|
|
1755
1763
|
icon: "close"
|
|
1756
1764
|
}
|
|
1757
|
-
}, qo = /* @__PURE__ */
|
|
1765
|
+
}, qo = /* @__PURE__ */ x({
|
|
1758
1766
|
__name: "QSelect",
|
|
1759
|
-
props: /* @__PURE__ */
|
|
1767
|
+
props: /* @__PURE__ */ G({
|
|
1760
1768
|
id: { default: void 0 },
|
|
1761
1769
|
label: { default: "" },
|
|
1762
1770
|
clearable: { type: Boolean },
|
|
@@ -1779,84 +1787,84 @@ const Ot = ["role"], Ut = {
|
|
|
1779
1787
|
},
|
|
1780
1788
|
modelModifiers: {}
|
|
1781
1789
|
}),
|
|
1782
|
-
emits: /* @__PURE__ */
|
|
1790
|
+
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
1783
1791
|
setup(t, { emit: o }) {
|
|
1784
|
-
const e = t, n = o,
|
|
1792
|
+
const e = t, n = o, l = Z(t, "modelValue"), s = D(!1), r = D(""), i = D(null), f = D(null), L = D(null), _ = w(() => y.value === void 0), y = w(
|
|
1785
1793
|
() => {
|
|
1786
|
-
var
|
|
1787
|
-
return (
|
|
1794
|
+
var d;
|
|
1795
|
+
return (d = e.items) == null ? void 0 : d.find(($) => $[e.itemValue] === l.value);
|
|
1788
1796
|
}
|
|
1789
|
-
),
|
|
1790
|
-
() =>
|
|
1791
|
-
),
|
|
1797
|
+
), U = w(
|
|
1798
|
+
() => y.value ? y.value[e.itemLabel] : ""
|
|
1799
|
+
), z = w(
|
|
1792
1800
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1793
1801
|
);
|
|
1794
|
-
function
|
|
1795
|
-
|
|
1796
|
-
}
|
|
1797
|
-
function L() {
|
|
1798
|
-
D.value && z(e.emptyValue);
|
|
1802
|
+
function C(d) {
|
|
1803
|
+
l.value = d, A();
|
|
1799
1804
|
}
|
|
1800
|
-
function
|
|
1801
|
-
|
|
1805
|
+
function V() {
|
|
1806
|
+
z.value && C(e.emptyValue);
|
|
1802
1807
|
}
|
|
1803
|
-
function
|
|
1804
|
-
|
|
1805
|
-
!((h = q.value) != null && h.contains(l.relatedTarget)) && !((ee = (O = i.value) == null ? void 0 : O.fieldRef) != null && ee.contains(l.relatedTarget)) && C();
|
|
1806
|
-
}
|
|
1807
|
-
function G() {
|
|
1808
|
-
r.value || (n("before-show"), r.value = !0);
|
|
1809
|
-
}
|
|
1810
|
-
function C() {
|
|
1811
|
-
r.value && (n("before-hide"), r.value = !1);
|
|
1808
|
+
function W() {
|
|
1809
|
+
e.readonly || e.disabled || (s.value ? A() : j());
|
|
1812
1810
|
}
|
|
1813
|
-
function
|
|
1814
|
-
|
|
1811
|
+
function le(d) {
|
|
1812
|
+
var $, p, M;
|
|
1813
|
+
!(($ = L.value) != null && $.contains(d.relatedTarget)) && !((M = (p = i.value) == null ? void 0 : p.fieldRef) != null && M.contains(d.relatedTarget)) && A();
|
|
1815
1814
|
}
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1815
|
+
function j() {
|
|
1816
|
+
s.value || (n("before-show"), s.value = !0);
|
|
1817
|
+
}
|
|
1818
|
+
function A() {
|
|
1819
|
+
s.value && (n("before-hide"), s.value = !1);
|
|
1820
|
+
}
|
|
1821
|
+
function Q() {
|
|
1822
|
+
s.value ? A() : j();
|
|
1823
|
+
}
|
|
1824
|
+
let X;
|
|
1825
|
+
function N(d) {
|
|
1826
|
+
if (!(!d.key || e.readonly || e.disabled)) {
|
|
1827
|
+
if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : z.value && d.key === "Escape" && V()), d.key === "Delete" && e.clearable && V(), /^[a-z]$/i.test(d.key)) {
|
|
1828
|
+
r.value += d.key.toLowerCase();
|
|
1829
|
+
for (let $ = 0; $ < e.items.length; $++)
|
|
1830
|
+
if (e.items[$][e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
1831
|
+
q($);
|
|
1824
1832
|
break;
|
|
1825
1833
|
}
|
|
1826
1834
|
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1835
|
+
X = window.setTimeout(function() {
|
|
1836
|
+
r.value = "";
|
|
1829
1837
|
}, 500);
|
|
1830
1838
|
}
|
|
1831
1839
|
}
|
|
1832
|
-
function
|
|
1833
|
-
var
|
|
1834
|
-
e.loading ? (
|
|
1840
|
+
function P() {
|
|
1841
|
+
var d;
|
|
1842
|
+
e.loading ? (d = L.value) == null || d.focus() : b(), n("show");
|
|
1835
1843
|
}
|
|
1836
|
-
function
|
|
1837
|
-
|
|
1844
|
+
function ae() {
|
|
1845
|
+
c(), n("hide");
|
|
1838
1846
|
}
|
|
1839
|
-
function
|
|
1840
|
-
var
|
|
1841
|
-
(
|
|
1847
|
+
function c() {
|
|
1848
|
+
var d, $;
|
|
1849
|
+
($ = (d = i.value) == null ? void 0 : d.fieldRef) == null || $.focus();
|
|
1842
1850
|
}
|
|
1843
|
-
function
|
|
1844
|
-
var
|
|
1845
|
-
(
|
|
1851
|
+
function b() {
|
|
1852
|
+
var d;
|
|
1853
|
+
(d = f.value) == null || d.$el.focus();
|
|
1846
1854
|
}
|
|
1847
|
-
function
|
|
1848
|
-
var
|
|
1849
|
-
(
|
|
1855
|
+
function q(d) {
|
|
1856
|
+
var $;
|
|
1857
|
+
($ = f.value) == null || $.focusItem(d);
|
|
1850
1858
|
}
|
|
1851
|
-
return
|
|
1859
|
+
return Y(
|
|
1852
1860
|
() => e.loading,
|
|
1853
|
-
(
|
|
1854
|
-
!
|
|
1861
|
+
(d) => {
|
|
1862
|
+
!d && s.value && H(b);
|
|
1855
1863
|
}
|
|
1856
|
-
), (
|
|
1857
|
-
var
|
|
1858
|
-
return u(),
|
|
1859
|
-
|
|
1864
|
+
), (d, $) => {
|
|
1865
|
+
var p, M;
|
|
1866
|
+
return u(), m(te, null, [
|
|
1867
|
+
F(h(qe), {
|
|
1860
1868
|
id: e.id,
|
|
1861
1869
|
label: e.label,
|
|
1862
1870
|
required: e.required,
|
|
@@ -1864,129 +1872,130 @@ const Ot = ["role"], Ut = {
|
|
|
1864
1872
|
ref: i,
|
|
1865
1873
|
role: "combobox",
|
|
1866
1874
|
tabindex: e.disabled ? -1 : 0,
|
|
1867
|
-
class:
|
|
1875
|
+
class: T([
|
|
1868
1876
|
"q-select",
|
|
1869
1877
|
{
|
|
1870
1878
|
"q-select--readonly": e.readonly,
|
|
1871
1879
|
"q-select--disabled": e.disabled,
|
|
1872
|
-
"q-select--expanded":
|
|
1880
|
+
"q-select--expanded": s.value
|
|
1873
1881
|
},
|
|
1874
1882
|
e.class
|
|
1875
1883
|
]),
|
|
1876
1884
|
readonly: e.readonly,
|
|
1877
1885
|
disabled: e.disabled,
|
|
1878
1886
|
"data-loading": e.loading,
|
|
1879
|
-
"aria-expanded":
|
|
1887
|
+
"aria-expanded": s.value,
|
|
1880
1888
|
"aria-haspopup": "listbox",
|
|
1881
1889
|
size: e.size,
|
|
1882
|
-
onClick:
|
|
1883
|
-
onKeydown: de(
|
|
1890
|
+
onClick: W,
|
|
1891
|
+
onKeydown: de(N, ["stop"])
|
|
1884
1892
|
}, _e({
|
|
1885
1893
|
append: k(() => [
|
|
1886
|
-
|
|
1887
|
-
|
|
1894
|
+
v(d.$slots, "append"),
|
|
1895
|
+
z.value && l.value ? (u(), E(h(fe), {
|
|
1888
1896
|
key: 0,
|
|
1889
1897
|
class: "q-select__clear",
|
|
1890
1898
|
"b-style": "plain",
|
|
1891
1899
|
borderless: "",
|
|
1892
1900
|
tabindex: "-1",
|
|
1893
|
-
onClick:
|
|
1901
|
+
onClick: V
|
|
1894
1902
|
}, {
|
|
1895
1903
|
default: k(() => [
|
|
1896
|
-
|
|
1904
|
+
F(h(ee), ne(ie(e.icons.clear)), null, 16)
|
|
1897
1905
|
]),
|
|
1898
1906
|
_: 1
|
|
1899
1907
|
})) : I("", !0),
|
|
1900
|
-
e.readonly ? I("", !0) : (u(),
|
|
1908
|
+
e.readonly ? I("", !0) : (u(), E(h(fe), {
|
|
1901
1909
|
key: 1,
|
|
1902
1910
|
class: "q-select__chevron",
|
|
1903
1911
|
"b-style": "plain",
|
|
1904
1912
|
borderless: "",
|
|
1905
1913
|
tabindex: "-1",
|
|
1906
1914
|
disabled: e.disabled,
|
|
1907
|
-
onClick:
|
|
1915
|
+
onClick: Q
|
|
1908
1916
|
}, {
|
|
1909
1917
|
default: k(() => [
|
|
1910
|
-
|
|
1918
|
+
F(h(ee), ne(ie(e.icons.chevron)), null, 16)
|
|
1911
1919
|
]),
|
|
1912
1920
|
_: 1
|
|
1913
1921
|
}, 8, ["disabled"]))
|
|
1914
1922
|
]),
|
|
1915
1923
|
default: k(() => [
|
|
1916
|
-
|
|
1917
|
-
!e.readonly && !e.disabled ? (u(),
|
|
1918
|
-
ue(
|
|
1924
|
+
_.value ? (u(), m("span", go, [
|
|
1925
|
+
!e.readonly && !e.disabled ? (u(), m(te, { key: 0 }, [
|
|
1926
|
+
ue(K(d.texts.placeholder), 1)
|
|
1919
1927
|
], 64)) : I("", !0)
|
|
1920
|
-
])) : (u(),
|
|
1928
|
+
])) : (u(), m("span", yo, K(U.value), 1))
|
|
1921
1929
|
]),
|
|
1922
1930
|
_: 2
|
|
1923
1931
|
}, [
|
|
1924
|
-
(
|
|
1932
|
+
(p = y.value) != null && p.icon || d.$slots.prepend ? {
|
|
1925
1933
|
name: "prepend",
|
|
1926
1934
|
fn: k(() => {
|
|
1927
|
-
var
|
|
1935
|
+
var R, oe;
|
|
1928
1936
|
return [
|
|
1929
|
-
|
|
1930
|
-
(
|
|
1937
|
+
v(d.$slots, "prepend"),
|
|
1938
|
+
(R = y.value) != null && R.icon ? (u(), E(h(ee), ne(se({ key: 0 }, (oe = y.value) == null ? void 0 : oe.icon)), null, 16)) : I("", !0)
|
|
1931
1939
|
];
|
|
1932
1940
|
}),
|
|
1933
1941
|
key: "0"
|
|
1934
1942
|
} : void 0,
|
|
1935
|
-
|
|
1943
|
+
d.$slots.extras ? {
|
|
1936
1944
|
name: "extras",
|
|
1937
1945
|
fn: k(() => [
|
|
1938
|
-
|
|
1946
|
+
v(d.$slots, "extras")
|
|
1939
1947
|
]),
|
|
1940
1948
|
key: "1"
|
|
1941
1949
|
} : void 0
|
|
1942
1950
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
1943
|
-
|
|
1944
|
-
modelValue:
|
|
1945
|
-
"onUpdate:modelValue":
|
|
1951
|
+
F(h(ve), {
|
|
1952
|
+
modelValue: s.value,
|
|
1953
|
+
"onUpdate:modelValue": $[1] || ($[1] = (R) => s.value = R),
|
|
1946
1954
|
spy: "",
|
|
1947
1955
|
trigger: "manual",
|
|
1948
1956
|
placement: "bottom",
|
|
1949
1957
|
width: "anchor",
|
|
1950
|
-
|
|
1958
|
+
"scroll-lock": "",
|
|
1959
|
+
anchor: (M = i.value) == null ? void 0 : M.$el,
|
|
1951
1960
|
offset: 2,
|
|
1952
|
-
onEnter:
|
|
1953
|
-
onLeave:
|
|
1961
|
+
onEnter: P,
|
|
1962
|
+
onLeave: ae
|
|
1954
1963
|
}, {
|
|
1955
1964
|
default: k(() => [
|
|
1956
|
-
|
|
1965
|
+
J("div", {
|
|
1957
1966
|
ref_key: "contentRef",
|
|
1958
|
-
ref:
|
|
1967
|
+
ref: L,
|
|
1959
1968
|
"data-testid": "combobox-dropdown",
|
|
1960
1969
|
"data-key": e.id,
|
|
1961
1970
|
class: "q-select__body",
|
|
1962
1971
|
tabindex: "-1",
|
|
1963
1972
|
onFocusout: le,
|
|
1964
|
-
onKeydown: de(
|
|
1973
|
+
onKeydown: de(N, ["stop"])
|
|
1965
1974
|
}, [
|
|
1966
|
-
|
|
1967
|
-
e.loading ? (u(),
|
|
1968
|
-
|
|
1969
|
-
])) : (u(),
|
|
1975
|
+
v(d.$slots, "body.prepend"),
|
|
1976
|
+
e.loading ? (u(), m("div", ko, [
|
|
1977
|
+
F(h($e), { size: 24 })
|
|
1978
|
+
])) : (u(), E(h(Re), {
|
|
1970
1979
|
key: 1,
|
|
1971
1980
|
ref_key: "listRef",
|
|
1972
|
-
ref:
|
|
1981
|
+
ref: f,
|
|
1973
1982
|
class: "q-select__items",
|
|
1974
|
-
modelValue:
|
|
1983
|
+
modelValue: l.value,
|
|
1975
1984
|
"onUpdate:modelValue": [
|
|
1976
|
-
|
|
1977
|
-
|
|
1985
|
+
$[0] || ($[0] = (R) => l.value = R),
|
|
1986
|
+
C
|
|
1978
1987
|
],
|
|
1979
1988
|
items: e.items,
|
|
1980
|
-
groups:
|
|
1989
|
+
groups: d.groups,
|
|
1981
1990
|
"item-label": e.itemLabel,
|
|
1982
1991
|
"item-value": e.itemValue
|
|
1983
1992
|
}, {
|
|
1984
|
-
item: k(({ item:
|
|
1985
|
-
|
|
1993
|
+
item: k(({ item: R }) => [
|
|
1994
|
+
v(d.$slots, "item", { item: R })
|
|
1986
1995
|
]),
|
|
1987
1996
|
_: 3
|
|
1988
1997
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
1989
|
-
|
|
1998
|
+
v(d.$slots, "body.append")
|
|
1990
1999
|
], 40, _o)
|
|
1991
2000
|
]),
|
|
1992
2001
|
_: 3
|
|
@@ -1994,22 +2003,22 @@ const Ot = ["role"], Ut = {
|
|
|
1994
2003
|
], 64);
|
|
1995
2004
|
};
|
|
1996
2005
|
}
|
|
1997
|
-
}),
|
|
2006
|
+
}), Qo = S(qo), Lo = /* @__PURE__ */ x({
|
|
1998
2007
|
__name: "QThemeProvider",
|
|
1999
2008
|
props: {
|
|
2000
2009
|
theme: {}
|
|
2001
2010
|
},
|
|
2002
2011
|
setup(t) {
|
|
2003
2012
|
const o = t;
|
|
2004
|
-
return (e, n) => (u(),
|
|
2005
|
-
class:
|
|
2013
|
+
return (e, n) => (u(), m("div", {
|
|
2014
|
+
class: T(["q-theme-provider", `q-theme--${o.theme}`])
|
|
2006
2015
|
}, [
|
|
2007
|
-
|
|
2016
|
+
v(e.$slots, "default")
|
|
2008
2017
|
], 2));
|
|
2009
2018
|
}
|
|
2010
|
-
}),
|
|
2019
|
+
}), Mo = S(Lo), Io = ["innerHTML"], xo = { key: 1 }, Bo = /* @__PURE__ */ x({
|
|
2011
2020
|
__name: "QTooltip",
|
|
2012
|
-
props: /* @__PURE__ */
|
|
2021
|
+
props: /* @__PURE__ */ G({
|
|
2013
2022
|
id: { default: void 0 },
|
|
2014
2023
|
anchor: {},
|
|
2015
2024
|
appearance: { default: "inverted" },
|
|
@@ -2028,61 +2037,61 @@ const Ot = ["role"], Ut = {
|
|
|
2028
2037
|
}),
|
|
2029
2038
|
emits: ["update:modelValue"],
|
|
2030
2039
|
setup(t) {
|
|
2031
|
-
const o = t, e =
|
|
2032
|
-
return (
|
|
2033
|
-
|
|
2034
|
-
props: { "aria-describedby":
|
|
2040
|
+
const o = t, e = Z(t, "modelValue"), n = me(o.id);
|
|
2041
|
+
return (l, s) => (u(), m(te, null, [
|
|
2042
|
+
v(l.$slots, "anchor", {
|
|
2043
|
+
props: { "aria-describedby": h(n) }
|
|
2035
2044
|
}),
|
|
2036
|
-
|
|
2045
|
+
F(h(ve), {
|
|
2037
2046
|
"model-value": e.value,
|
|
2038
2047
|
anchor: o.anchor,
|
|
2039
2048
|
role: "tooltip",
|
|
2040
|
-
id:
|
|
2049
|
+
id: h(n),
|
|
2041
2050
|
appearance: o.appearance,
|
|
2042
2051
|
arrow: o.arrow,
|
|
2043
2052
|
attach: o.attach,
|
|
2044
|
-
class:
|
|
2053
|
+
class: T(["q-tooltip", o.class]),
|
|
2045
2054
|
delay: o.delay,
|
|
2046
2055
|
disabled: o.disabled,
|
|
2047
2056
|
placement: o.placement,
|
|
2048
2057
|
trigger: o.trigger
|
|
2049
2058
|
}, {
|
|
2050
2059
|
default: k(() => [
|
|
2051
|
-
o.html ? (u(),
|
|
2060
|
+
o.html ? (u(), m("span", {
|
|
2052
2061
|
key: 0,
|
|
2053
2062
|
innerHTML: o.text
|
|
2054
|
-
}, null, 8,
|
|
2063
|
+
}, null, 8, Io)) : (u(), m("span", xo, K(o.text), 1))
|
|
2055
2064
|
]),
|
|
2056
2065
|
_: 1
|
|
2057
2066
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
2058
2067
|
], 64));
|
|
2059
2068
|
}
|
|
2060
|
-
}),
|
|
2069
|
+
}), Oo = S(Bo);
|
|
2061
2070
|
export {
|
|
2062
2071
|
fe as QButton,
|
|
2063
|
-
|
|
2072
|
+
mt as QButtonGroup,
|
|
2064
2073
|
To as QButtonToggle,
|
|
2065
2074
|
Do as QCombobox,
|
|
2066
2075
|
qe as QField,
|
|
2067
|
-
|
|
2068
|
-
|
|
2076
|
+
ee as QIcon,
|
|
2077
|
+
qt as QIconFont,
|
|
2069
2078
|
Lt as QIconImg,
|
|
2070
|
-
|
|
2079
|
+
It as QIconSvg,
|
|
2071
2080
|
zo as QInputGroup,
|
|
2072
2081
|
Co as QLineLoader,
|
|
2073
|
-
|
|
2082
|
+
Re as QList,
|
|
2074
2083
|
At as QListItem,
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2084
|
+
Qt as QListItemGroup,
|
|
2085
|
+
ve as QOverlay,
|
|
2086
|
+
Ao as QPopover,
|
|
2087
|
+
Qo as QSelect,
|
|
2079
2088
|
$e as QSpinnerLoader,
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2089
|
+
Pt as QTextField,
|
|
2090
|
+
Mo as QThemeProvider,
|
|
2091
|
+
Oo as QTooltip,
|
|
2083
2092
|
Eo as createFramework,
|
|
2084
2093
|
Je as defaultDarkColorScheme,
|
|
2085
|
-
|
|
2094
|
+
Se as defaultLightColorScheme,
|
|
2086
2095
|
Vo as provideTheme,
|
|
2087
2096
|
Ze as useTheme
|
|
2088
2097
|
};
|