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