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