@quidgest/ui 0.7.13 → 0.7.15
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 +243 -3
- package/dist/ui.css +18 -19
- package/dist/ui.esm.js +575 -575
- 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 +10 -10
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +32 -28
- package/package.json +2 -2
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Ve, computed as
|
|
1
|
+
import { getCurrentInstance as Ve, computed as g, ref as q, provide as Ne, inject as De, watch as C, defineComponent as x, openBlock as d, createElementBlock as v, normalizeClass as D, normalizeStyle as ae, createElementVNode as G, withModifiers as ee, createVNode as te, unref as k, createCommentVNode as S, Fragment as Z, createTextVNode as re, toDisplayString as N, renderSlot as y, toRef as pe, createBlock as B, withCtx as $, renderList as ve, resolveDynamicComponent as Te, h as $e, normalizeProps as de, mergeProps as ne, reactive as He, onBeforeUnmount as Ke, onMounted as Ee, Teleport as We, Transition as Ge, nextTick as J, createSlots as be, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as he } from "vue";
|
|
2
2
|
function ye(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
|
}
|
|
@@ -6,21 +6,21 @@ function Ie(n) {
|
|
|
6
6
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
7
7
|
}
|
|
8
8
|
function ze(n = {}, t = {}) {
|
|
9
|
-
const
|
|
9
|
+
const o = {};
|
|
10
10
|
for (const e in n)
|
|
11
|
-
|
|
11
|
+
o[e] = n[e];
|
|
12
12
|
for (const e in t) {
|
|
13
|
-
const
|
|
14
|
-
if (Ie(
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const l = n[e], a = t[e];
|
|
14
|
+
if (Ie(l) && Ie(a)) {
|
|
15
|
+
o[e] = ze(
|
|
16
|
+
l,
|
|
17
17
|
a
|
|
18
18
|
);
|
|
19
19
|
continue;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
o[e] = a;
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return o;
|
|
24
24
|
}
|
|
25
25
|
const ge = "q-defaults";
|
|
26
26
|
function Ye() {
|
|
@@ -30,16 +30,16 @@ function Ye() {
|
|
|
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
|
|
34
|
-
return
|
|
33
|
+
const o = Fe();
|
|
34
|
+
return g(() => {
|
|
35
35
|
var e;
|
|
36
|
-
return (e =
|
|
36
|
+
return (e = o.value) == null ? void 0 : e[t];
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function Ce(n) {
|
|
40
40
|
if (ye(n))
|
|
41
41
|
return;
|
|
42
|
-
const t = Fe(),
|
|
42
|
+
const t = Fe(), o = q(n), e = g(() => ye(o.value) ? t.value : ze(t.value, o.value));
|
|
43
43
|
Ne(ge, e);
|
|
44
44
|
}
|
|
45
45
|
function Fe() {
|
|
@@ -113,118 +113,118 @@ function Ae(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
|
-
const t = parseInt(n.slice(1, 3), 16),
|
|
117
|
-
return { r: t, g:
|
|
116
|
+
const t = parseInt(n.slice(1, 3), 16), o = parseInt(n.slice(3, 5), 16), e = parseInt(n.slice(5, 7), 16);
|
|
117
|
+
return { r: t, g: o, b: e };
|
|
118
118
|
}
|
|
119
119
|
function Ze(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
|
|
125
|
-
return
|
|
124
|
+
const o = Qe(n), e = t / 100;
|
|
125
|
+
return o.l = o.l + e * (100 - o.l), Re(o);
|
|
126
126
|
}
|
|
127
127
|
function Je(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
|
|
133
|
-
return
|
|
132
|
+
const o = Qe(n), e = t / 100;
|
|
133
|
+
return o.l = o.l - e * o.l, Re(o);
|
|
134
134
|
}
|
|
135
135
|
function Se(n) {
|
|
136
|
-
const t = n.r.toString(16).padStart(2, "0"),
|
|
137
|
-
return `#${t}${
|
|
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
|
+
return `#${t}${o}${e}`;
|
|
138
138
|
}
|
|
139
139
|
function Qe(n) {
|
|
140
|
-
const t = n.r / 255,
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
|
|
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 u = 0, i;
|
|
142
|
+
const f = (l + a) / 2;
|
|
143
|
+
if (l === a)
|
|
144
|
+
u = i = 0;
|
|
145
145
|
else {
|
|
146
|
-
const
|
|
147
|
-
switch (i =
|
|
146
|
+
const p = l - a;
|
|
147
|
+
switch (i = f > 0.5 ? p / (2 - l - a) : p / (l + a), l) {
|
|
148
148
|
case t:
|
|
149
|
-
|
|
149
|
+
u = (o - e) / p + (o < e ? 6 : 0);
|
|
150
150
|
break;
|
|
151
|
-
case
|
|
152
|
-
|
|
151
|
+
case o:
|
|
152
|
+
u = (e - t) / p + 2;
|
|
153
153
|
break;
|
|
154
154
|
case e:
|
|
155
|
-
|
|
155
|
+
u = (t - o) / p + 4;
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
u /= 6;
|
|
159
159
|
}
|
|
160
160
|
return {
|
|
161
|
-
h: Math.round(
|
|
161
|
+
h: Math.round(u * 360),
|
|
162
162
|
s: Math.round(i * 100),
|
|
163
|
-
l: Math.round(
|
|
163
|
+
l: Math.round(f * 100)
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
function Re(n) {
|
|
167
|
-
const t = n.h / 360,
|
|
168
|
-
let
|
|
169
|
-
if (
|
|
170
|
-
|
|
167
|
+
const t = n.h / 360, o = n.s / 100, e = n.l / 100;
|
|
168
|
+
let l, a, u;
|
|
169
|
+
if (o === 0)
|
|
170
|
+
l = a = u = e;
|
|
171
171
|
else {
|
|
172
|
-
const i = e < 0.5 ? e * (1 +
|
|
173
|
-
|
|
172
|
+
const i = e < 0.5 ? e * (1 + o) : e + o - e * o, f = 2 * e - i;
|
|
173
|
+
l = me(f, i, t + 1 / 3), a = me(f, i, t), u = me(f, i, t - 1 / 3);
|
|
174
174
|
}
|
|
175
175
|
return {
|
|
176
|
-
r: Math.round(
|
|
176
|
+
r: Math.round(l * 255),
|
|
177
177
|
g: Math.round(a * 255),
|
|
178
|
-
b: Math.round(
|
|
178
|
+
b: Math.round(u * 255)
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function me(n, t,
|
|
182
|
-
return
|
|
181
|
+
function me(n, t, o) {
|
|
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
184
|
const ue = "q-theme";
|
|
185
|
-
function
|
|
185
|
+
function wn() {
|
|
186
186
|
const n = De(ue);
|
|
187
187
|
if (!n)
|
|
188
188
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
189
189
|
return n;
|
|
190
190
|
}
|
|
191
191
|
function et(n, t) {
|
|
192
|
-
let
|
|
192
|
+
let o = null;
|
|
193
193
|
if (t)
|
|
194
194
|
for (const e of t.themes) {
|
|
195
|
-
const
|
|
195
|
+
const l = e.mode === "light" ? qe : Pe;
|
|
196
196
|
if (e.colors) {
|
|
197
197
|
let a;
|
|
198
198
|
for (a in e.colors) {
|
|
199
|
-
const
|
|
200
|
-
if (
|
|
201
|
-
const i = Ae(
|
|
202
|
-
|
|
199
|
+
const u = e.colors[a];
|
|
200
|
+
if (u && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
|
|
201
|
+
const i = Ae(u), f = `${a}Light`, p = `${a}Dark`;
|
|
202
|
+
f in e.colors || (e.colors[f] = Se(Ze(i, 85))), p in e.colors || (e.colors[p] = Se(Je(i, 25)));
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
e.colors = tt(
|
|
206
|
+
e.colors = tt(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
213
|
colors: qe
|
|
214
214
|
}, t = {
|
|
215
215
|
defaultTheme: e,
|
|
216
|
-
themes: [
|
|
216
|
+
themes: [o]
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
219
|
+
if (o) {
|
|
220
220
|
const e = q({
|
|
221
|
-
activeTheme:
|
|
221
|
+
activeTheme: o.name,
|
|
222
222
|
themes: t.themes
|
|
223
223
|
});
|
|
224
|
-
|
|
224
|
+
C(
|
|
225
225
|
() => e.value.activeTheme,
|
|
226
|
-
(
|
|
227
|
-
const a = e.value.themes.find((
|
|
226
|
+
(l) => {
|
|
227
|
+
const a = e.value.themes.find((u) => u.name === l);
|
|
228
228
|
a && nt(a.colors);
|
|
229
229
|
},
|
|
230
230
|
{ immediate: !0 }
|
|
@@ -239,34 +239,34 @@ function nt(n) {
|
|
|
239
239
|
ue
|
|
240
240
|
);
|
|
241
241
|
t || (t = document.createElement("style"), t.type = "text/css", t.id = ue, document.head.appendChild(t));
|
|
242
|
-
let
|
|
242
|
+
let o = `:root {
|
|
243
243
|
`, e;
|
|
244
244
|
for (e in n) {
|
|
245
|
-
const
|
|
246
|
-
if (
|
|
247
|
-
|
|
245
|
+
const l = n[e];
|
|
246
|
+
if (l) {
|
|
247
|
+
o += ` ${Le(e)}: ${l};
|
|
248
248
|
`;
|
|
249
|
-
const a = Ae(
|
|
250
|
-
|
|
249
|
+
const a = Ae(l);
|
|
250
|
+
o += ` ${Le(e)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
251
251
|
`;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
o += "}", t.textContent = o;
|
|
255
255
|
}
|
|
256
256
|
function Le(n) {
|
|
257
257
|
return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
return { install: (
|
|
259
|
+
function $n(n = {}) {
|
|
260
|
+
return { install: (o) => {
|
|
261
261
|
const e = n.components || {};
|
|
262
262
|
for (const a in e)
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
|
|
263
|
+
o.component(a, e[a]);
|
|
264
|
+
const l = n.defaults || {};
|
|
265
|
+
o.provide(ge, q(l)), et(o, n.themes);
|
|
266
266
|
} };
|
|
267
267
|
}
|
|
268
|
-
const lt = /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
268
|
+
const lt = /* @__PURE__ */ G("svg", { viewBox: "25 25 50 50" }, [
|
|
269
|
+
/* @__PURE__ */ G("circle", {
|
|
270
270
|
class: "path",
|
|
271
271
|
cx: "50",
|
|
272
272
|
cy: "50",
|
|
@@ -285,36 +285,36 @@ const lt = /* @__PURE__ */ N("svg", { viewBox: "25 25 50 50" }, [
|
|
|
285
285
|
class: { default: void 0 }
|
|
286
286
|
},
|
|
287
287
|
setup(n) {
|
|
288
|
-
const t = n,
|
|
288
|
+
const t = n, o = g(() => ({
|
|
289
289
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
290
290
|
}));
|
|
291
|
-
return (e,
|
|
291
|
+
return (e, l) => (d(), v("div", {
|
|
292
292
|
class: D(["q-spinner-loader", t.class]),
|
|
293
|
-
style: ae(
|
|
293
|
+
style: ae(o.value)
|
|
294
294
|
}, ot, 6));
|
|
295
295
|
}
|
|
296
296
|
});
|
|
297
297
|
function st(n, t) {
|
|
298
|
-
var
|
|
299
|
-
return typeof ((
|
|
298
|
+
var o;
|
|
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
|
-
return t && (n.setup = (
|
|
304
|
-
const
|
|
305
|
-
if (ye(
|
|
306
|
-
return t(
|
|
303
|
+
return t && (n.setup = (o, e) => {
|
|
304
|
+
const l = Ye();
|
|
305
|
+
if (ye(l.value))
|
|
306
|
+
return t(o, e);
|
|
307
307
|
const a = Ve();
|
|
308
308
|
if (a === null)
|
|
309
|
-
return t(
|
|
310
|
-
const
|
|
311
|
-
get(i,
|
|
309
|
+
return t(o, e);
|
|
310
|
+
const u = new Proxy(o, {
|
|
311
|
+
get(i, f) {
|
|
312
312
|
var w;
|
|
313
|
-
const
|
|
314
|
-
return typeof
|
|
313
|
+
const p = Reflect.get(i, f), m = (w = l.value) == null ? void 0 : w[f];
|
|
314
|
+
return typeof f == "string" && !st(a.vnode, f) ? m ?? p : p;
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
|
-
return t(
|
|
317
|
+
return t(u, e);
|
|
318
318
|
}), n;
|
|
319
319
|
}
|
|
320
320
|
const _e = V(at), it = ["disabled"], rt = {
|
|
@@ -337,11 +337,11 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
337
337
|
},
|
|
338
338
|
emits: ["click"],
|
|
339
339
|
setup(n, { emit: t }) {
|
|
340
|
-
const
|
|
340
|
+
const o = t, e = n, l = g(() => e.disabled || e.loading);
|
|
341
341
|
function a(i) {
|
|
342
|
-
|
|
342
|
+
l.value || o("click", i);
|
|
343
343
|
}
|
|
344
|
-
const
|
|
344
|
+
const u = g(() => {
|
|
345
345
|
const i = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
346
346
|
return [
|
|
347
347
|
"q-btn",
|
|
@@ -357,22 +357,22 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
357
357
|
e.class
|
|
358
358
|
];
|
|
359
359
|
});
|
|
360
|
-
return (i,
|
|
360
|
+
return (i, f) => (d(), v("button", {
|
|
361
361
|
type: "button",
|
|
362
|
-
class: D(
|
|
363
|
-
disabled:
|
|
362
|
+
class: D(u.value),
|
|
363
|
+
disabled: l.value,
|
|
364
364
|
onClick: ee(a, ["stop", "prevent"])
|
|
365
365
|
}, [
|
|
366
|
-
i.loading ? (
|
|
367
|
-
te(
|
|
368
|
-
])) :
|
|
369
|
-
|
|
370
|
-
i.iconOnRight ? (
|
|
371
|
-
re(
|
|
372
|
-
], 64)) :
|
|
373
|
-
|
|
374
|
-
i.iconOnRight ?
|
|
375
|
-
re(
|
|
366
|
+
i.loading ? (d(), v("div", rt, [
|
|
367
|
+
te(k(_e), { size: 23 })
|
|
368
|
+
])) : S("", !0),
|
|
369
|
+
G("span", dt, [
|
|
370
|
+
i.iconOnRight ? (d(), v(Z, { key: 0 }, [
|
|
371
|
+
re(N(e.label), 1)
|
|
372
|
+
], 64)) : S("", !0),
|
|
373
|
+
y(i.$slots, "default"),
|
|
374
|
+
i.iconOnRight ? S("", !0) : (d(), v(Z, { key: 1 }, [
|
|
375
|
+
re(N(e.label), 1)
|
|
376
376
|
], 64))
|
|
377
377
|
])
|
|
378
378
|
], 10, it));
|
|
@@ -395,7 +395,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
395
395
|
borderless: pe(t, "borderless"),
|
|
396
396
|
elevated: !1
|
|
397
397
|
}
|
|
398
|
-
}), (
|
|
398
|
+
}), (o, e) => (d(), v("div", {
|
|
399
399
|
class: D([
|
|
400
400
|
"q-btn-group",
|
|
401
401
|
{
|
|
@@ -404,7 +404,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
404
404
|
t.class
|
|
405
405
|
])
|
|
406
406
|
}, [
|
|
407
|
-
|
|
407
|
+
y(o.$slots, "default")
|
|
408
408
|
], 2));
|
|
409
409
|
}
|
|
410
410
|
}), pt = V(ft), mt = /* @__PURE__ */ x({
|
|
@@ -420,23 +420,23 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
420
420
|
},
|
|
421
421
|
emits: ["update:modelValue"],
|
|
422
422
|
setup(n, { emit: t }) {
|
|
423
|
-
const
|
|
424
|
-
|
|
423
|
+
const o = t, e = n, l = q(e.modelValue);
|
|
424
|
+
C(
|
|
425
425
|
() => e.modelValue,
|
|
426
|
-
(i) =>
|
|
426
|
+
(i) => l.value = i
|
|
427
427
|
);
|
|
428
|
-
const a =
|
|
428
|
+
const a = g({
|
|
429
429
|
get() {
|
|
430
|
-
return
|
|
430
|
+
return l.value;
|
|
431
431
|
},
|
|
432
432
|
set(i) {
|
|
433
|
-
|
|
433
|
+
l.value = i, o("update:modelValue", i);
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
|
-
function
|
|
436
|
+
function u(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, f) => (d(), B(k(pt), {
|
|
440
440
|
"b-style": "secondary",
|
|
441
441
|
class: D(e.class),
|
|
442
442
|
disabled: e.disabled,
|
|
@@ -444,15 +444,15 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
444
444
|
elevated: e.elevated
|
|
445
445
|
}, {
|
|
446
446
|
default: $(() => [
|
|
447
|
-
(
|
|
448
|
-
key:
|
|
449
|
-
title:
|
|
450
|
-
label:
|
|
451
|
-
active: a.value ===
|
|
452
|
-
onClick: () =>
|
|
447
|
+
(d(!0), v(Z, null, ve(e.options, (p) => (d(), B(k(ct), {
|
|
448
|
+
key: p.key,
|
|
449
|
+
title: p.title,
|
|
450
|
+
label: p.label,
|
|
451
|
+
active: a.value === p.key,
|
|
452
|
+
onClick: () => u(p)
|
|
453
453
|
}, {
|
|
454
454
|
default: $(() => [
|
|
455
|
-
|
|
455
|
+
y(i.$slots, p.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
|
-
}),
|
|
463
|
+
}), In = V(mt), vt = /* @__PURE__ */ x({
|
|
464
464
|
__name: "QIcon",
|
|
465
465
|
props: {
|
|
466
466
|
icon: {},
|
|
@@ -469,7 +469,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
469
469
|
class: { default: void 0 }
|
|
470
470
|
},
|
|
471
471
|
setup(n) {
|
|
472
|
-
const t = n,
|
|
472
|
+
const t = n, o = g(() => {
|
|
473
473
|
switch (t.type) {
|
|
474
474
|
case "svg":
|
|
475
475
|
return qt;
|
|
@@ -481,7 +481,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
481
481
|
return;
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
|
-
return (e,
|
|
484
|
+
return (e, l) => (d(), B(Te(o.value), {
|
|
485
485
|
class: D(t.class),
|
|
486
486
|
icon: t.icon,
|
|
487
487
|
size: t.size
|
|
@@ -497,12 +497,12 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
497
497
|
class: { default: void 0 }
|
|
498
498
|
},
|
|
499
499
|
setup(n) {
|
|
500
|
-
const t = n,
|
|
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: D(["q-icon", "q-icon__font",
|
|
505
|
-
style: ae(
|
|
503
|
+
return (a, u) => (d(), v("i", {
|
|
504
|
+
class: D(["q-icon", "q-icon__font", o.value, e.value, t.class]),
|
|
505
|
+
style: ae(l.value)
|
|
506
506
|
}, null, 6));
|
|
507
507
|
}
|
|
508
508
|
}), yt = ["src"], bt = /* @__PURE__ */ x({
|
|
@@ -513,13 +513,13 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
513
513
|
class: {}
|
|
514
514
|
},
|
|
515
515
|
setup(n) {
|
|
516
|
-
const t = n,
|
|
516
|
+
const t = n, o = g(() => ({
|
|
517
517
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
518
518
|
}));
|
|
519
|
-
return (e,
|
|
519
|
+
return (e, l) => (d(), v("img", {
|
|
520
520
|
src: t.icon,
|
|
521
521
|
class: D(["q-icon", "q-icon__img", t.class]),
|
|
522
|
-
style: ae(
|
|
522
|
+
style: ae(o.value)
|
|
523
523
|
}, null, 14, yt));
|
|
524
524
|
}
|
|
525
525
|
}), oe = {}, gt = x({
|
|
@@ -568,14 +568,14 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
568
568
|
},
|
|
569
569
|
methods: {
|
|
570
570
|
copySvgAttrs(n, t) {
|
|
571
|
-
const
|
|
572
|
-
if (
|
|
573
|
-
for (const e of
|
|
571
|
+
const o = t.attributes;
|
|
572
|
+
if (o)
|
|
573
|
+
for (const e of o)
|
|
574
574
|
n[e.name] = e.value;
|
|
575
575
|
},
|
|
576
576
|
copyComponentAttrs(n, t) {
|
|
577
|
-
for (const [
|
|
578
|
-
e !== !1 && e !== null && e !== void 0 && (n[
|
|
577
|
+
for (const [o, e] of Object.entries(t))
|
|
578
|
+
e !== !1 && e !== null && e !== void 0 && (n[o] = e);
|
|
579
579
|
},
|
|
580
580
|
getSvgContent(n) {
|
|
581
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)), _t(n, this.title)), n);
|
|
@@ -602,7 +602,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
602
602
|
const t = await fetch(n);
|
|
603
603
|
if (!t.ok)
|
|
604
604
|
throw new Error("Error loading SVG");
|
|
605
|
-
const
|
|
605
|
+
const o = await t.text(), a = new DOMParser().parseFromString(o, "text/xml").getElementsByTagName("svg")[0];
|
|
606
606
|
if (!a)
|
|
607
607
|
throw new Error("Loaded file is not a valid SVG");
|
|
608
608
|
return a;
|
|
@@ -615,9 +615,9 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
function _t(n, t) {
|
|
618
|
-
const
|
|
619
|
-
if (
|
|
620
|
-
|
|
618
|
+
const o = n.getElementsByTagName("title");
|
|
619
|
+
if (o.length)
|
|
620
|
+
o[0].textContent = t;
|
|
621
621
|
else {
|
|
622
622
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
623
623
|
e.textContent = t, n.insertBefore(e, n.firstChild);
|
|
@@ -627,13 +627,13 @@ function kt(n) {
|
|
|
627
627
|
if (n.getIsPending)
|
|
628
628
|
return n;
|
|
629
629
|
let t = !0;
|
|
630
|
-
const
|
|
630
|
+
const o = n.then(
|
|
631
631
|
(e) => (t = !1, e),
|
|
632
632
|
(e) => {
|
|
633
633
|
throw t = !1, e;
|
|
634
634
|
}
|
|
635
635
|
);
|
|
636
|
-
return
|
|
636
|
+
return o.getIsPending = () => t, o;
|
|
637
637
|
}
|
|
638
638
|
const wt = /* @__PURE__ */ x({
|
|
639
639
|
__name: "QIconSvg",
|
|
@@ -645,22 +645,22 @@ const wt = /* @__PURE__ */ x({
|
|
|
645
645
|
},
|
|
646
646
|
emits: ["loaded", "unloaded"],
|
|
647
647
|
setup(n, { emit: t }) {
|
|
648
|
-
const
|
|
648
|
+
const o = t, e = n, l = g(() => ({
|
|
649
649
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
650
650
|
}));
|
|
651
651
|
function a(i) {
|
|
652
|
-
|
|
652
|
+
o("loaded", i);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
655
|
-
|
|
654
|
+
function u() {
|
|
655
|
+
o("unloaded");
|
|
656
656
|
}
|
|
657
|
-
return (i,
|
|
657
|
+
return (i, f) => (d(), B(k(gt), {
|
|
658
658
|
class: D(["q-icon", "q-icon__svg", e.class]),
|
|
659
659
|
src: e.bundle,
|
|
660
660
|
symbol: e.icon,
|
|
661
|
-
style: ae(
|
|
661
|
+
style: ae(l.value),
|
|
662
662
|
onLoaded: a,
|
|
663
|
-
onUnloaded:
|
|
663
|
+
onUnloaded: u
|
|
664
664
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
665
665
|
}
|
|
666
666
|
}), P = V(vt), $t = V(ht), It = V(bt), qt = V(wt), St = /* @__PURE__ */ x({
|
|
@@ -676,25 +676,25 @@ const wt = /* @__PURE__ */ x({
|
|
|
676
676
|
class: { default: void 0 }
|
|
677
677
|
},
|
|
678
678
|
emits: ["update:modelValue"],
|
|
679
|
-
setup(n, { expose: t, emit:
|
|
680
|
-
const e =
|
|
681
|
-
function
|
|
679
|
+
setup(n, { expose: t, emit: o }) {
|
|
680
|
+
const e = o, l = n, a = q(l.modelValue), u = q(!1), i = g(() => f.value.length > 1 ? "div" : "ul"), f = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), p = q(null);
|
|
681
|
+
function m(r) {
|
|
682
682
|
a.value = r, e("update:modelValue", r);
|
|
683
683
|
}
|
|
684
684
|
function w() {
|
|
685
|
-
|
|
685
|
+
u.value = !0;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
|
|
687
|
+
function z() {
|
|
688
|
+
u.value = !1;
|
|
689
689
|
}
|
|
690
690
|
function F(r) {
|
|
691
|
-
var
|
|
692
|
-
if ((
|
|
691
|
+
var L;
|
|
692
|
+
if ((L = p.value) != null && L.contains(r.relatedTarget))
|
|
693
693
|
return;
|
|
694
|
-
let
|
|
695
|
-
a.value ?
|
|
696
|
-
const I =
|
|
697
|
-
O(
|
|
694
|
+
let h;
|
|
695
|
+
a.value ? h = l.items.findIndex((W) => W[l.itemValue] === a.value) : h = Q();
|
|
696
|
+
const I = u.value;
|
|
697
|
+
O(h, I);
|
|
698
698
|
}
|
|
699
699
|
function A(r) {
|
|
700
700
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && r.preventDefault(), r.key) {
|
|
@@ -726,95 +726,95 @@ const wt = /* @__PURE__ */ x({
|
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
function O(r,
|
|
730
|
-
var
|
|
731
|
-
(
|
|
729
|
+
function O(r, h = !1) {
|
|
730
|
+
var L;
|
|
731
|
+
(L = E()[r]) == null || L.focus({ preventScroll: h });
|
|
732
732
|
}
|
|
733
733
|
function E() {
|
|
734
|
-
var
|
|
735
|
-
const r = (
|
|
734
|
+
var h;
|
|
735
|
+
const r = (h = p.value) == null ? void 0 : h.querySelectorAll("li");
|
|
736
736
|
return r ? Array.from(r) : [];
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function H(r) {
|
|
739
739
|
return E()[r];
|
|
740
740
|
}
|
|
741
741
|
function j() {
|
|
742
742
|
return E().indexOf(document.activeElement);
|
|
743
743
|
}
|
|
744
744
|
function Q() {
|
|
745
|
-
const r = E(),
|
|
746
|
-
return
|
|
745
|
+
const r = E(), h = r.find((I) => b(I));
|
|
746
|
+
return h ? r.indexOf(h) : -1;
|
|
747
747
|
}
|
|
748
748
|
function M() {
|
|
749
|
-
const r = E(),
|
|
750
|
-
return
|
|
749
|
+
const r = E(), h = [...r].reverse().find((I) => b(I));
|
|
750
|
+
return h ? r.indexOf(h) : -1;
|
|
751
751
|
}
|
|
752
|
-
function U(r,
|
|
753
|
-
return
|
|
752
|
+
function U(r, h, I) {
|
|
753
|
+
return h === "prev" && r === 0 || h === "next" && r === I.length - 1;
|
|
754
754
|
}
|
|
755
755
|
function X(r) {
|
|
756
|
-
const
|
|
757
|
-
return
|
|
756
|
+
const h = j();
|
|
757
|
+
return K(h, r);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function K(r, h) {
|
|
760
760
|
const I = E();
|
|
761
|
-
if (U(r,
|
|
761
|
+
if (U(r, h, I))
|
|
762
762
|
return r;
|
|
763
|
-
let
|
|
764
|
-
for (; !b(I[
|
|
765
|
-
if (U(
|
|
763
|
+
let L = r + (h === "next" ? 1 : -1);
|
|
764
|
+
for (; !b(I[L]); ) {
|
|
765
|
+
if (U(L, h, I))
|
|
766
766
|
return r;
|
|
767
|
-
|
|
767
|
+
L += h === "next" ? 1 : -1;
|
|
768
768
|
}
|
|
769
|
-
return
|
|
769
|
+
return L;
|
|
770
770
|
}
|
|
771
771
|
function b(r) {
|
|
772
772
|
return r.tabIndex === -2;
|
|
773
773
|
}
|
|
774
|
-
function
|
|
775
|
-
return r ?
|
|
774
|
+
function c(r) {
|
|
775
|
+
return r ? l.items.filter((h) => h.group === r) : l.items;
|
|
776
776
|
}
|
|
777
|
-
return
|
|
778
|
-
() =>
|
|
777
|
+
return C(
|
|
778
|
+
() => l.modelValue,
|
|
779
779
|
(r) => {
|
|
780
780
|
a.value = r;
|
|
781
781
|
}
|
|
782
782
|
), t({
|
|
783
783
|
focusItem: O,
|
|
784
|
-
getItem:
|
|
785
|
-
getAdjacentItemIndex:
|
|
784
|
+
getItem: H,
|
|
785
|
+
getAdjacentItemIndex: K,
|
|
786
786
|
getFirstFocusableItemIndex: Q,
|
|
787
787
|
getLastFocusableItemIndex: M
|
|
788
|
-
}), (r,
|
|
788
|
+
}), (r, h) => (d(), B(Te(i.value), {
|
|
789
789
|
ref_key: "listRef",
|
|
790
|
-
ref:
|
|
791
|
-
class: D(["q-list", { "q-list--disabled":
|
|
790
|
+
ref: p,
|
|
791
|
+
class: D(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
792
792
|
role: "listbox",
|
|
793
|
-
tabindex:
|
|
793
|
+
tabindex: l.disabled ? -1 : 0,
|
|
794
794
|
onFocus: F,
|
|
795
795
|
onMousedown: w,
|
|
796
|
-
onMouseup:
|
|
796
|
+
onMouseup: z,
|
|
797
797
|
onKeydown: A
|
|
798
798
|
}, {
|
|
799
799
|
default: $(() => [
|
|
800
|
-
(
|
|
800
|
+
(d(!0), v(Z, null, ve(f.value, (I) => (d(), B(k(Ft), {
|
|
801
801
|
key: I.id,
|
|
802
802
|
title: I.title,
|
|
803
803
|
disabled: I.disabled
|
|
804
804
|
}, {
|
|
805
805
|
default: $(() => [
|
|
806
|
-
(
|
|
807
|
-
key:
|
|
808
|
-
value:
|
|
809
|
-
label:
|
|
810
|
-
icon:
|
|
811
|
-
disabled:
|
|
812
|
-
highlighted:
|
|
813
|
-
selected: a.value ===
|
|
814
|
-
onSelect:
|
|
806
|
+
(d(!0), v(Z, null, ve(c(I.id), (L) => (d(), B(k(Ct), {
|
|
807
|
+
key: L[l.itemValue],
|
|
808
|
+
value: L[l.itemValue],
|
|
809
|
+
label: L[l.itemLabel],
|
|
810
|
+
icon: L.icon,
|
|
811
|
+
disabled: l.disabled || L.disabled,
|
|
812
|
+
highlighted: l.highlighted === L[l.itemValue],
|
|
813
|
+
selected: a.value === L[l.itemValue],
|
|
814
|
+
onSelect: m
|
|
815
815
|
}, {
|
|
816
816
|
default: $(() => [
|
|
817
|
-
|
|
817
|
+
y(r.$slots, "item", { item: L })
|
|
818
818
|
]),
|
|
819
819
|
_: 2
|
|
820
820
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -847,15 +847,15 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
847
847
|
},
|
|
848
848
|
emits: ["select"],
|
|
849
849
|
setup(n, { emit: t }) {
|
|
850
|
-
const
|
|
850
|
+
const o = t, e = n, l = le();
|
|
851
851
|
function a() {
|
|
852
|
-
e.disabled ||
|
|
852
|
+
e.disabled || o("select", e.value);
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function u(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, f) => (d(), v("li", {
|
|
858
|
+
id: k(l),
|
|
859
859
|
role: "option",
|
|
860
860
|
tabindex: e.disabled ? void 0 : -2,
|
|
861
861
|
class: D([
|
|
@@ -868,15 +868,15 @@ 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:
|
|
871
|
+
onKeydown: u,
|
|
872
872
|
onClick: ee(a, ["stop", "prevent"])
|
|
873
873
|
}, [
|
|
874
|
-
|
|
875
|
-
e.icon ? (
|
|
876
|
-
re(" " +
|
|
874
|
+
y(i.$slots, "default", {}, () => [
|
|
875
|
+
e.icon ? (d(), B(k(P), de(ne({ key: 0 }, e.icon)), null, 16)) : S("", !0),
|
|
876
|
+
re(" " + N(e.label), 1)
|
|
877
877
|
]),
|
|
878
|
-
|
|
879
|
-
e.selected ? (
|
|
878
|
+
G("div", xt, [
|
|
879
|
+
e.selected ? (d(), B(k(P), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
|
|
880
880
|
])
|
|
881
881
|
], 42, Bt));
|
|
882
882
|
}
|
|
@@ -887,60 +887,60 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
887
887
|
disabled: { type: Boolean }
|
|
888
888
|
},
|
|
889
889
|
setup(n) {
|
|
890
|
-
const t = n,
|
|
891
|
-
return (e,
|
|
890
|
+
const t = n, o = le();
|
|
891
|
+
return (e, l) => (d(), v("ul", {
|
|
892
892
|
class: "q-list-item-group",
|
|
893
893
|
role: "group",
|
|
894
|
-
"aria-labelledby": t.title ?
|
|
894
|
+
"aria-labelledby": t.title ? k(o) : void 0
|
|
895
895
|
}, [
|
|
896
|
-
t.title ? (
|
|
896
|
+
t.title ? (d(), v("li", {
|
|
897
897
|
key: 0,
|
|
898
|
-
id:
|
|
898
|
+
id: k(o),
|
|
899
899
|
class: "q-list-item-group__title",
|
|
900
900
|
role: "presentation"
|
|
901
|
-
},
|
|
902
|
-
|
|
901
|
+
}, N(t.title), 9, Et)) : S("", !0),
|
|
902
|
+
y(e.$slots, "default")
|
|
903
903
|
], 8, Tt));
|
|
904
904
|
}
|
|
905
905
|
}), Me = V(St), Ct = V(Dt), Ft = V(zt);
|
|
906
|
-
function At(n, t,
|
|
907
|
-
const
|
|
908
|
-
let
|
|
909
|
-
i && !Oe(
|
|
910
|
-
const w = { x: 0, y: 0, placement:
|
|
911
|
-
switch (
|
|
906
|
+
function At(n, t, o = "right", e) {
|
|
907
|
+
const l = n.getBoundingClientRect(), a = l.x + window.scrollX, u = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), f = (i == null ? void 0 : i.width) ?? 0, p = (i == null ? void 0 : i.height) ?? 0;
|
|
908
|
+
let m = o;
|
|
909
|
+
i && !Oe(l, i, m) && (m = Qt(l, i, m));
|
|
910
|
+
const w = { x: 0, y: 0, placement: m };
|
|
911
|
+
switch (m) {
|
|
912
912
|
case "top":
|
|
913
|
-
e === "anchor" ? w.x = a : w.x = a + (
|
|
913
|
+
e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u - p;
|
|
914
914
|
break;
|
|
915
915
|
case "bottom":
|
|
916
|
-
e === "anchor" ? w.x = a : w.x = a + (
|
|
916
|
+
e === "anchor" ? w.x = a : w.x = a + (l.width - f) / 2, w.y = u + l.height;
|
|
917
917
|
break;
|
|
918
918
|
case "left":
|
|
919
|
-
w.x = a -
|
|
919
|
+
w.x = a - f, w.y = u + l.height / 2 - p / 2;
|
|
920
920
|
break;
|
|
921
921
|
case "right":
|
|
922
|
-
w.x = a +
|
|
922
|
+
w.x = a + l.width, w.y = u + l.height / 2 - p / 2;
|
|
923
923
|
break;
|
|
924
924
|
}
|
|
925
|
-
return e === "anchor" &&
|
|
925
|
+
return e === "anchor" && l.width >= f && (w.width = l.width), w;
|
|
926
926
|
}
|
|
927
|
-
function Oe(n, t,
|
|
928
|
-
let e = !1,
|
|
929
|
-
switch (
|
|
927
|
+
function Oe(n, t, o) {
|
|
928
|
+
let e = !1, l = !1;
|
|
929
|
+
switch (o) {
|
|
930
930
|
case "top":
|
|
931
|
-
e = xe(n, t),
|
|
931
|
+
e = xe(n, t), l = n.top > t.height;
|
|
932
932
|
break;
|
|
933
933
|
case "bottom":
|
|
934
|
-
e = xe(n, t),
|
|
934
|
+
e = xe(n, t), l = window.innerHeight - n.top - n.height > t.height;
|
|
935
935
|
break;
|
|
936
936
|
case "left":
|
|
937
|
-
e = n.left > t.width,
|
|
937
|
+
e = n.left > t.width, l = Be(n, t);
|
|
938
938
|
break;
|
|
939
939
|
case "right":
|
|
940
|
-
e = window.innerWidth - n.left - n.width > t.width,
|
|
940
|
+
e = window.innerWidth - n.left - n.width > t.width, l = Be(n, t);
|
|
941
941
|
break;
|
|
942
942
|
}
|
|
943
|
-
return e &&
|
|
943
|
+
return e && l;
|
|
944
944
|
}
|
|
945
945
|
function Be(n, t) {
|
|
946
946
|
return window.innerHeight - n.top - n.height / 2 > t.height / 2 && n.top + n.height / 2 > t.height / 2;
|
|
@@ -948,17 +948,17 @@ function Be(n, t) {
|
|
|
948
948
|
function xe(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 Qt(n, t,
|
|
951
|
+
function Qt(n, t, o) {
|
|
952
952
|
const e = {
|
|
953
953
|
top: ["bottom", "left", "right"],
|
|
954
954
|
bottom: ["top", "left", "right"],
|
|
955
955
|
left: ["right", "top", "bottom"],
|
|
956
956
|
right: ["left", "top", "bottom"]
|
|
957
957
|
};
|
|
958
|
-
for (const
|
|
959
|
-
if (Oe(n, t,
|
|
960
|
-
return
|
|
961
|
-
return
|
|
958
|
+
for (const l of e[o])
|
|
959
|
+
if (Oe(n, t, l))
|
|
960
|
+
return l;
|
|
961
|
+
return o;
|
|
962
962
|
}
|
|
963
963
|
function ie(n) {
|
|
964
964
|
return typeof n == "string" ? document.querySelector(n) : n && "$el" in n ? n.$el : n;
|
|
@@ -987,7 +987,7 @@ const Rt = {
|
|
|
987
987
|
},
|
|
988
988
|
emits: ["enter", "leave"],
|
|
989
989
|
setup(n, { emit: t }) {
|
|
990
|
-
const
|
|
990
|
+
const o = t, e = n, l = g(() => [
|
|
991
991
|
"q-overlay",
|
|
992
992
|
`q-overlay--${a.placement}`,
|
|
993
993
|
{ "q-overlay--inverted": e.appearance === "inverted" },
|
|
@@ -999,22 +999,22 @@ const Rt = {
|
|
|
999
999
|
left: 0,
|
|
1000
1000
|
width: 0,
|
|
1001
1001
|
placement: e.placement
|
|
1002
|
-
}),
|
|
1003
|
-
|
|
1002
|
+
}), u = g(() => a.visible && !e.disabled);
|
|
1003
|
+
C(
|
|
1004
1004
|
() => e.modelValue,
|
|
1005
1005
|
() => a.visible = e.modelValue
|
|
1006
|
-
),
|
|
1006
|
+
), C(
|
|
1007
1007
|
() => a.visible,
|
|
1008
1008
|
() => a.animating = !0
|
|
1009
1009
|
);
|
|
1010
|
-
const i =
|
|
1011
|
-
let b = 0,
|
|
1010
|
+
const i = g(() => {
|
|
1011
|
+
let b = 0, c = 0;
|
|
1012
1012
|
switch (a.placement) {
|
|
1013
1013
|
case "top":
|
|
1014
|
-
|
|
1014
|
+
c = -(e.offset || 0);
|
|
1015
1015
|
break;
|
|
1016
1016
|
case "bottom":
|
|
1017
|
-
|
|
1017
|
+
c = e.offset || 0;
|
|
1018
1018
|
break;
|
|
1019
1019
|
case "left":
|
|
1020
1020
|
b = -(e.offset || 0);
|
|
@@ -1024,39 +1024,39 @@ const Rt = {
|
|
|
1024
1024
|
break;
|
|
1025
1025
|
}
|
|
1026
1026
|
const r = {
|
|
1027
|
-
top: `${a.top +
|
|
1027
|
+
top: `${a.top + c}px`,
|
|
1028
1028
|
left: `${a.left + b}px`
|
|
1029
1029
|
};
|
|
1030
1030
|
return a.width !== void 0 && ["top", "bottom"].includes(a.placement) && (r.width = `${a.width}px`), r;
|
|
1031
|
-
}),
|
|
1032
|
-
function
|
|
1031
|
+
}), f = q(null);
|
|
1032
|
+
function p() {
|
|
1033
1033
|
const b = ie(e.anchor);
|
|
1034
1034
|
if (b) {
|
|
1035
|
-
const
|
|
1036
|
-
a.left =
|
|
1035
|
+
const c = At(b, f.value, e.placement, e.width);
|
|
1036
|
+
a.left = c.x, a.top = c.y, a.width = c.width, a.placement = c.placement;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
|
|
1040
|
-
let
|
|
1039
|
+
C([() => u.value, () => e.placement], p);
|
|
1040
|
+
let m;
|
|
1041
1041
|
function w() {
|
|
1042
1042
|
const b = e.trigger === "hover" ? e.delay : 0;
|
|
1043
|
-
|
|
1043
|
+
m || (m = window.setTimeout(() => a.visible = !0, b));
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1046
|
-
clearTimeout(
|
|
1045
|
+
function z() {
|
|
1046
|
+
clearTimeout(m), m = void 0, a.visible = !1;
|
|
1047
1047
|
}
|
|
1048
1048
|
function F() {
|
|
1049
|
-
|
|
1049
|
+
u.value ? z() : w();
|
|
1050
1050
|
}
|
|
1051
1051
|
let A;
|
|
1052
1052
|
function R() {
|
|
1053
|
-
|
|
1053
|
+
o("enter");
|
|
1054
1054
|
}
|
|
1055
1055
|
function O() {
|
|
1056
|
-
window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200),
|
|
1056
|
+
window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), o("leave");
|
|
1057
1057
|
}
|
|
1058
1058
|
let E;
|
|
1059
|
-
function
|
|
1059
|
+
function H() {
|
|
1060
1060
|
J(() => {
|
|
1061
1061
|
const b = ie(e.anchor);
|
|
1062
1062
|
if (b)
|
|
@@ -1065,7 +1065,7 @@ const Rt = {
|
|
|
1065
1065
|
b.addEventListener("click", F);
|
|
1066
1066
|
break;
|
|
1067
1067
|
case "hover":
|
|
1068
|
-
b.addEventListener("mouseenter", w), b.addEventListener("mouseleave",
|
|
1068
|
+
b.addEventListener("mouseenter", w), b.addEventListener("mouseleave", z);
|
|
1069
1069
|
break;
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
@@ -1073,42 +1073,42 @@ const Rt = {
|
|
|
1073
1073
|
function j() {
|
|
1074
1074
|
J(() => {
|
|
1075
1075
|
const b = ie(e.anchor);
|
|
1076
|
-
b && (window.addEventListener("scroll",
|
|
1076
|
+
b && (window.addEventListener("scroll", p), window.addEventListener("resize", p), E = new MutationObserver(p), E.observe(b, {
|
|
1077
1077
|
attributes: !1,
|
|
1078
1078
|
childList: !0,
|
|
1079
1079
|
characterData: !0,
|
|
1080
1080
|
subtree: !0
|
|
1081
|
-
}),
|
|
1081
|
+
}), p());
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
1084
1084
|
function Q() {
|
|
1085
|
-
window.removeEventListener("scroll",
|
|
1085
|
+
window.removeEventListener("scroll", p), window.removeEventListener("resize", p), E == null || E.disconnect();
|
|
1086
1086
|
}
|
|
1087
1087
|
let M;
|
|
1088
1088
|
function U() {
|
|
1089
|
-
ie(e.anchor) ? (
|
|
1089
|
+
ie(e.anchor) ? (p(), M = window.setTimeout(U, 100)) : z();
|
|
1090
1090
|
}
|
|
1091
1091
|
function X() {
|
|
1092
1092
|
j(), e.spy && U();
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function K() {
|
|
1095
1095
|
Q(), e.spy && (clearTimeout(M), M = void 0);
|
|
1096
1096
|
}
|
|
1097
|
-
return Ke(
|
|
1097
|
+
return Ke(K), Ee(p), C(
|
|
1098
1098
|
() => e.disabled,
|
|
1099
1099
|
(b) => {
|
|
1100
|
-
b ||
|
|
1100
|
+
b || H();
|
|
1101
1101
|
},
|
|
1102
1102
|
{ immediate: !0 }
|
|
1103
|
-
),
|
|
1104
|
-
() =>
|
|
1103
|
+
), C(
|
|
1104
|
+
() => u.value,
|
|
1105
1105
|
(b) => {
|
|
1106
|
-
b ? X() :
|
|
1106
|
+
b ? X() : K();
|
|
1107
1107
|
},
|
|
1108
1108
|
{ immediate: !0 }
|
|
1109
|
-
), (b,
|
|
1110
|
-
|
|
1111
|
-
|
|
1109
|
+
), (b, c) => (d(), v(Z, null, [
|
|
1110
|
+
y(b.$slots, "trigger", { open: u.value }),
|
|
1111
|
+
u.value || a.animating ? (d(), B(We, {
|
|
1112
1112
|
key: 0,
|
|
1113
1113
|
disabled: !e.attach,
|
|
1114
1114
|
to: e.attach
|
|
@@ -1120,24 +1120,24 @@ const Rt = {
|
|
|
1120
1120
|
onLeave: O
|
|
1121
1121
|
}, {
|
|
1122
1122
|
default: $(() => [
|
|
1123
|
-
|
|
1123
|
+
u.value ? (d(), v("div", {
|
|
1124
1124
|
key: 0,
|
|
1125
|
-
class: D(
|
|
1125
|
+
class: D(l.value),
|
|
1126
1126
|
style: ae(i.value)
|
|
1127
1127
|
}, [
|
|
1128
|
-
|
|
1128
|
+
G("div", {
|
|
1129
1129
|
class: "q-overlay__content",
|
|
1130
1130
|
ref_key: "overlay",
|
|
1131
|
-
ref:
|
|
1131
|
+
ref: f
|
|
1132
1132
|
}, [
|
|
1133
|
-
e.arrow ? (
|
|
1134
|
-
|
|
1133
|
+
e.arrow ? (d(), v("div", Rt)) : S("", !0),
|
|
1134
|
+
y(b.$slots, "default")
|
|
1135
1135
|
], 512)
|
|
1136
|
-
], 6)) :
|
|
1136
|
+
], 6)) : S("", !0)
|
|
1137
1137
|
]),
|
|
1138
1138
|
_: 3
|
|
1139
1139
|
}, 8, ["name"])
|
|
1140
|
-
], 8, ["disabled", "to"])) :
|
|
1140
|
+
], 8, ["disabled", "to"])) : S("", !0)
|
|
1141
1141
|
], 64));
|
|
1142
1142
|
}
|
|
1143
1143
|
}), ce = V(Mt), Ot = ["id"], Ut = {
|
|
@@ -1165,47 +1165,47 @@ const Rt = {
|
|
|
1165
1165
|
class: { default: void 0 }
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(n, { expose: t }) {
|
|
1168
|
-
const
|
|
1168
|
+
const o = n, e = q(null), l = g(() => o.required && !o.readonly && !o.disabled);
|
|
1169
1169
|
return t({
|
|
1170
1170
|
fieldRef: e
|
|
1171
|
-
}), (a,
|
|
1172
|
-
id:
|
|
1171
|
+
}), (a, u) => (d(), v("div", {
|
|
1172
|
+
id: o.id,
|
|
1173
1173
|
class: D([
|
|
1174
1174
|
"q-field",
|
|
1175
|
-
`q-field--${
|
|
1175
|
+
`q-field--${o.size}`,
|
|
1176
1176
|
{
|
|
1177
|
-
"q-field--readonly":
|
|
1178
|
-
"q-field--disabled":
|
|
1179
|
-
"q-field--required":
|
|
1177
|
+
"q-field--readonly": o.readonly,
|
|
1178
|
+
"q-field--disabled": o.disabled,
|
|
1179
|
+
"q-field--required": l.value
|
|
1180
1180
|
},
|
|
1181
|
-
|
|
1181
|
+
o.class
|
|
1182
1182
|
])
|
|
1183
1183
|
}, [
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
for:
|
|
1188
|
-
},
|
|
1189
|
-
|
|
1190
|
-
])) :
|
|
1191
|
-
|
|
1192
|
-
|
|
1184
|
+
o.label ? (d(), v("div", Ut, [
|
|
1185
|
+
y(a.$slots, "label.prepend"),
|
|
1186
|
+
G("label", {
|
|
1187
|
+
for: o.id
|
|
1188
|
+
}, N(o.label), 9, Nt),
|
|
1189
|
+
y(a.$slots, "label.append")
|
|
1190
|
+
])) : S("", !0),
|
|
1191
|
+
y(a.$slots, "control", {}, () => [
|
|
1192
|
+
G("div", ne({
|
|
1193
1193
|
class: "q-field__control",
|
|
1194
1194
|
ref_key: "fieldRef",
|
|
1195
1195
|
ref: e
|
|
1196
1196
|
}, a.$attrs), [
|
|
1197
|
-
a.$slots.prepend ? (
|
|
1198
|
-
|
|
1199
|
-
])) :
|
|
1200
|
-
|
|
1201
|
-
a.$slots.append ? (
|
|
1202
|
-
|
|
1203
|
-
])) :
|
|
1197
|
+
a.$slots.prepend ? (d(), v("div", Ht, [
|
|
1198
|
+
y(a.$slots, "prepend")
|
|
1199
|
+
])) : S("", !0),
|
|
1200
|
+
y(a.$slots, "default"),
|
|
1201
|
+
a.$slots.append ? (d(), v("div", Kt, [
|
|
1202
|
+
y(a.$slots, "append")
|
|
1203
|
+
])) : S("", !0)
|
|
1204
1204
|
], 16)
|
|
1205
1205
|
]),
|
|
1206
|
-
a.$slots.extras ? (
|
|
1207
|
-
|
|
1208
|
-
])) :
|
|
1206
|
+
a.$slots.extras ? (d(), v("div", Wt, [
|
|
1207
|
+
y(a.$slots, "extras")
|
|
1208
|
+
])) : S("", !0)
|
|
1209
1209
|
], 10, Ot));
|
|
1210
1210
|
}
|
|
1211
1211
|
}), ke = V(Gt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ x({
|
|
@@ -1226,78 +1226,80 @@ const Rt = {
|
|
|
1226
1226
|
class: { default: void 0 }
|
|
1227
1227
|
},
|
|
1228
1228
|
emits: ["update:modelValue"],
|
|
1229
|
-
setup(n, { expose: t, emit:
|
|
1230
|
-
const e =
|
|
1229
|
+
setup(n, { expose: t, emit: o }) {
|
|
1230
|
+
const e = o, l = n, a = q(l.modelValue), u = q(null), i = q(null), f = g({
|
|
1231
1231
|
get() {
|
|
1232
1232
|
return a.value;
|
|
1233
1233
|
},
|
|
1234
|
-
set(
|
|
1235
|
-
a.value =
|
|
1234
|
+
set(m) {
|
|
1235
|
+
a.value = m, e("update:modelValue", m);
|
|
1236
1236
|
}
|
|
1237
|
-
})
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1237
|
+
}), p = g(
|
|
1238
|
+
() => l.readonly || l.disabled ? "" : l.placeholder
|
|
1239
|
+
);
|
|
1240
|
+
return C(
|
|
1241
|
+
() => l.modelValue,
|
|
1242
|
+
(m) => a.value = m
|
|
1241
1243
|
), t({
|
|
1242
|
-
fieldRef:
|
|
1243
|
-
var
|
|
1244
|
-
return (
|
|
1244
|
+
fieldRef: g(() => {
|
|
1245
|
+
var m;
|
|
1246
|
+
return (m = u.value) == null ? void 0 : m.fieldRef;
|
|
1245
1247
|
}),
|
|
1246
1248
|
inputRef: i
|
|
1247
|
-
}), (
|
|
1249
|
+
}), (m, w) => (d(), B(k(ke), {
|
|
1248
1250
|
ref_key: "fieldRef",
|
|
1249
|
-
ref:
|
|
1250
|
-
class: D(["q-text-field",
|
|
1251
|
-
id:
|
|
1252
|
-
label:
|
|
1253
|
-
size:
|
|
1254
|
-
readonly:
|
|
1255
|
-
disabled:
|
|
1256
|
-
required:
|
|
1251
|
+
ref: u,
|
|
1252
|
+
class: D(["q-text-field", l.class]),
|
|
1253
|
+
id: l.id,
|
|
1254
|
+
label: l.label,
|
|
1255
|
+
size: l.size,
|
|
1256
|
+
readonly: l.readonly,
|
|
1257
|
+
disabled: l.disabled,
|
|
1258
|
+
required: l.required
|
|
1257
1259
|
}, be({
|
|
1258
1260
|
"label.prepend": $(() => [
|
|
1259
|
-
|
|
1261
|
+
y(m.$slots, "label.prepend")
|
|
1260
1262
|
]),
|
|
1261
1263
|
"label.append": $(() => [
|
|
1262
|
-
|
|
1264
|
+
y(m.$slots, "label.append")
|
|
1263
1265
|
]),
|
|
1264
1266
|
default: $(() => [
|
|
1265
|
-
je(
|
|
1266
|
-
"onUpdate:modelValue":
|
|
1267
|
+
je(G("input", ne({
|
|
1268
|
+
"onUpdate:modelValue": w[0] || (w[0] = (z) => f.value = z),
|
|
1267
1269
|
ref_key: "inputRef",
|
|
1268
1270
|
ref: i,
|
|
1269
1271
|
class: "q-text-field__input",
|
|
1270
|
-
type:
|
|
1271
|
-
role:
|
|
1272
|
-
required:
|
|
1273
|
-
placeholder:
|
|
1274
|
-
readonly:
|
|
1275
|
-
disabled:
|
|
1276
|
-
maxlength:
|
|
1277
|
-
},
|
|
1278
|
-
[Xe,
|
|
1272
|
+
type: l.type,
|
|
1273
|
+
role: l.role,
|
|
1274
|
+
required: l.required,
|
|
1275
|
+
placeholder: p.value,
|
|
1276
|
+
readonly: l.readonly,
|
|
1277
|
+
disabled: l.disabled,
|
|
1278
|
+
maxlength: l.maxLength
|
|
1279
|
+
}, m.$attrs), null, 16, jt), [
|
|
1280
|
+
[Xe, f.value]
|
|
1279
1281
|
])
|
|
1280
1282
|
]),
|
|
1281
1283
|
_: 2
|
|
1282
1284
|
}, [
|
|
1283
|
-
|
|
1285
|
+
m.$slots.prepend ? {
|
|
1284
1286
|
name: "prepend",
|
|
1285
1287
|
fn: $(() => [
|
|
1286
|
-
|
|
1288
|
+
y(m.$slots, "prepend")
|
|
1287
1289
|
]),
|
|
1288
1290
|
key: "0"
|
|
1289
1291
|
} : void 0,
|
|
1290
|
-
|
|
1292
|
+
m.$slots.append ? {
|
|
1291
1293
|
name: "append",
|
|
1292
1294
|
fn: $(() => [
|
|
1293
|
-
|
|
1295
|
+
y(m.$slots, "append")
|
|
1294
1296
|
]),
|
|
1295
1297
|
key: "1"
|
|
1296
1298
|
} : void 0,
|
|
1297
|
-
|
|
1299
|
+
m.$slots.extras ? {
|
|
1298
1300
|
name: "extras",
|
|
1299
1301
|
fn: $(() => [
|
|
1300
|
-
|
|
1302
|
+
y(m.$slots, "extras")
|
|
1301
1303
|
]),
|
|
1302
1304
|
key: "2"
|
|
1303
1305
|
} : void 0
|
|
@@ -1336,108 +1338,108 @@ const Rt = {
|
|
|
1336
1338
|
class: { default: void 0 }
|
|
1337
1339
|
},
|
|
1338
1340
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1339
|
-
setup(n, { expose: t, emit:
|
|
1340
|
-
const e =
|
|
1341
|
+
setup(n, { expose: t, emit: o }) {
|
|
1342
|
+
const e = o, l = n, a = q(l.modelValue), u = q(!1), i = q(""), f = q(void 0), p = q(null), m = q(null), w = q(null);
|
|
1341
1343
|
Ee(Q);
|
|
1342
|
-
const
|
|
1343
|
-
() =>
|
|
1344
|
-
), F =
|
|
1344
|
+
const z = g(
|
|
1345
|
+
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
1346
|
+
), F = g(() => {
|
|
1345
1347
|
var s;
|
|
1346
|
-
return
|
|
1347
|
-
(
|
|
1348
|
+
return l.filterMode === "manual" || !E.value ? l.items : (s = l.items) == null ? void 0 : s.filter(
|
|
1349
|
+
(_) => _[l.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
|
|
1348
1350
|
);
|
|
1349
|
-
}), A =
|
|
1351
|
+
}), A = g(() => {
|
|
1350
1352
|
var s;
|
|
1351
|
-
return (s =
|
|
1352
|
-
}), R =
|
|
1353
|
-
const s =
|
|
1353
|
+
return (s = l.items) == null ? void 0 : s.find((_) => _[l.itemValue] === a.value);
|
|
1354
|
+
}), R = g(() => {
|
|
1355
|
+
const s = f.value;
|
|
1354
1356
|
if (s !== void 0 && F.value[s])
|
|
1355
1357
|
return F.value[s];
|
|
1356
|
-
}), O =
|
|
1357
|
-
var
|
|
1358
|
-
if (
|
|
1358
|
+
}), O = g(() => {
|
|
1359
|
+
var _;
|
|
1360
|
+
if (f.value === void 0)
|
|
1359
1361
|
return;
|
|
1360
|
-
const s = (
|
|
1362
|
+
const s = (_ = m.value) == null ? void 0 : _.getItem(f.value);
|
|
1361
1363
|
return s == null ? void 0 : s.id;
|
|
1362
|
-
}), E =
|
|
1364
|
+
}), E = g(() => {
|
|
1363
1365
|
var s;
|
|
1364
|
-
return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[
|
|
1366
|
+
return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[l.itemLabel]);
|
|
1365
1367
|
});
|
|
1366
|
-
function
|
|
1368
|
+
function H(s) {
|
|
1367
1369
|
a.value = s, Q(), e("update:modelValue", s);
|
|
1368
1370
|
}
|
|
1369
1371
|
function j(s) {
|
|
1370
|
-
|
|
1372
|
+
H(s), U();
|
|
1371
1373
|
}
|
|
1372
1374
|
function Q() {
|
|
1373
1375
|
var s;
|
|
1374
|
-
i.value = ((s = A.value) == null ? void 0 : s[
|
|
1376
|
+
i.value = ((s = A.value) == null ? void 0 : s[l.itemLabel]) || "";
|
|
1375
1377
|
}
|
|
1376
1378
|
function M() {
|
|
1377
|
-
|
|
1379
|
+
u.value || l.readonly || l.disabled || (e("before-show"), u.value = !0);
|
|
1378
1380
|
}
|
|
1379
1381
|
function U() {
|
|
1380
|
-
|
|
1382
|
+
u.value && (e("before-hide"), u.value = !1, f.value = void 0);
|
|
1381
1383
|
}
|
|
1382
1384
|
function X() {
|
|
1383
|
-
|
|
1385
|
+
H(void 0), f.value = void 0;
|
|
1384
1386
|
}
|
|
1385
|
-
function
|
|
1387
|
+
function K() {
|
|
1386
1388
|
if (M(), A.value !== void 0) {
|
|
1387
1389
|
const s = F.value.indexOf(A.value);
|
|
1388
1390
|
s !== -1 && J(() => we(s));
|
|
1389
1391
|
}
|
|
1390
1392
|
}
|
|
1391
1393
|
function b(s) {
|
|
1392
|
-
var
|
|
1393
|
-
if (!(!s.key ||
|
|
1394
|
+
var _, T;
|
|
1395
|
+
if (!(!s.key || l.readonly || l.disabled))
|
|
1394
1396
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
|
|
1395
|
-
|
|
1397
|
+
u.value ? U() : X();
|
|
1396
1398
|
else if (["ArrowDown", "ArrowUp"].includes(s.key))
|
|
1397
|
-
|
|
1398
|
-
if (
|
|
1399
|
-
|
|
1399
|
+
u.value ? J(() => {
|
|
1400
|
+
if (f.value === void 0)
|
|
1401
|
+
c();
|
|
1400
1402
|
else {
|
|
1401
1403
|
const Y = s.key === "ArrowDown" ? "next" : "prev";
|
|
1402
|
-
|
|
1404
|
+
h(f.value, Y);
|
|
1403
1405
|
}
|
|
1404
1406
|
}) : (M(), J(() => {
|
|
1405
|
-
s.key === "ArrowDown" ?
|
|
1407
|
+
s.key === "ArrowDown" ? c() : r();
|
|
1406
1408
|
}));
|
|
1407
1409
|
else if (s.key === "Enter") {
|
|
1408
1410
|
if (R.value === void 0)
|
|
1409
1411
|
return;
|
|
1410
|
-
j(R.value[
|
|
1412
|
+
j(R.value[l.itemValue]);
|
|
1411
1413
|
} else
|
|
1412
|
-
s.key === "Home" ?
|
|
1414
|
+
s.key === "Home" ? f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex() : s.key === "End" ? f.value = (T = m.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
|
|
1413
1415
|
}
|
|
1414
|
-
function
|
|
1415
|
-
var s,
|
|
1416
|
+
function c() {
|
|
1417
|
+
var s, _;
|
|
1416
1418
|
if (a.value !== void 0) {
|
|
1417
1419
|
const T = F.value.findIndex(
|
|
1418
|
-
(Y) => Y[
|
|
1420
|
+
(Y) => Y[l.itemValue] === a.value
|
|
1419
1421
|
);
|
|
1420
|
-
T === -1 ?
|
|
1422
|
+
T === -1 ? f.value = (s = m.value) == null ? void 0 : s.getFirstFocusableItemIndex() : f.value = T;
|
|
1421
1423
|
} else
|
|
1422
|
-
|
|
1424
|
+
f.value = (_ = m.value) == null ? void 0 : _.getFirstFocusableItemIndex();
|
|
1423
1425
|
}
|
|
1424
1426
|
function r() {
|
|
1425
1427
|
var s;
|
|
1426
|
-
|
|
1428
|
+
f.value = (s = m.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1427
1429
|
}
|
|
1428
|
-
function
|
|
1430
|
+
function h(s, _) {
|
|
1429
1431
|
var T;
|
|
1430
|
-
|
|
1432
|
+
f.value = (T = m.value) == null ? void 0 : T.getAdjacentItemIndex(s, _);
|
|
1431
1433
|
}
|
|
1432
1434
|
function I(s) {
|
|
1433
|
-
var
|
|
1434
|
-
!((
|
|
1435
|
+
var _, T, Y;
|
|
1436
|
+
!((_ = w.value) != null && _.contains(s.relatedTarget)) && !((Y = (T = p.value) == null ? void 0 : T.fieldRef) != null && Y.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
|
|
1435
1437
|
}
|
|
1436
|
-
function
|
|
1437
|
-
var s,
|
|
1438
|
-
(
|
|
1438
|
+
function L() {
|
|
1439
|
+
var s, _;
|
|
1440
|
+
(_ = (s = p.value) == null ? void 0 : s.inputRef) == null || _.focus();
|
|
1439
1441
|
}
|
|
1440
|
-
function
|
|
1442
|
+
function W() {
|
|
1441
1443
|
e("show");
|
|
1442
1444
|
}
|
|
1443
1445
|
function Ue() {
|
|
@@ -1445,143 +1447,143 @@ const Rt = {
|
|
|
1445
1447
|
}
|
|
1446
1448
|
function we(s) {
|
|
1447
1449
|
var T;
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1450
|
+
const _ = (T = m.value) == null ? void 0 : T.getItem(s);
|
|
1451
|
+
_ == null || _.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1450
1452
|
}
|
|
1451
|
-
return
|
|
1452
|
-
() =>
|
|
1453
|
+
return C(
|
|
1454
|
+
() => l.modelValue,
|
|
1453
1455
|
(s) => {
|
|
1454
1456
|
a.value = s, Q();
|
|
1455
1457
|
}
|
|
1456
|
-
),
|
|
1458
|
+
), C(f, (s) => {
|
|
1457
1459
|
s !== void 0 && we(s);
|
|
1458
|
-
}),
|
|
1459
|
-
!s &&
|
|
1460
|
+
}), C(i, (s) => {
|
|
1461
|
+
!s && z.value ? X() : u.value && l.selectionMode === "automatic" && J(c), e("update:inputValue", s);
|
|
1460
1462
|
}), t({
|
|
1461
|
-
triggerEl:
|
|
1462
|
-
}), (s,
|
|
1463
|
+
triggerEl: p
|
|
1464
|
+
}), (s, _) => {
|
|
1463
1465
|
var T, Y;
|
|
1464
|
-
return
|
|
1465
|
-
te(
|
|
1466
|
+
return d(), v(Z, null, [
|
|
1467
|
+
te(k(Yt), {
|
|
1466
1468
|
modelValue: i.value,
|
|
1467
|
-
"onUpdate:modelValue":
|
|
1468
|
-
id:
|
|
1469
|
-
label:
|
|
1470
|
-
required:
|
|
1469
|
+
"onUpdate:modelValue": _[0] || (_[0] = (se) => i.value = se),
|
|
1470
|
+
id: l.id,
|
|
1471
|
+
label: l.label,
|
|
1472
|
+
required: l.required,
|
|
1471
1473
|
ref_key: "triggerEl",
|
|
1472
|
-
ref:
|
|
1474
|
+
ref: p,
|
|
1473
1475
|
role: "combobox",
|
|
1474
|
-
placeholder:
|
|
1475
|
-
class: D(["q-combobox",
|
|
1476
|
-
readonly:
|
|
1477
|
-
disabled:
|
|
1478
|
-
"aria-expanded":
|
|
1476
|
+
placeholder: l.placeholder,
|
|
1477
|
+
class: D(["q-combobox", l.class]),
|
|
1478
|
+
readonly: l.readonly,
|
|
1479
|
+
disabled: l.disabled,
|
|
1480
|
+
"aria-expanded": u.value,
|
|
1479
1481
|
"aria-haspopup": "listbox",
|
|
1480
1482
|
"aria-autocomplete": "list",
|
|
1481
1483
|
"aria-activedescendant": O.value,
|
|
1482
|
-
size:
|
|
1483
|
-
onClick:
|
|
1484
|
+
size: l.size,
|
|
1485
|
+
onClick: K,
|
|
1484
1486
|
onFocusout: I,
|
|
1485
1487
|
onKeydown: ee(b, ["stop"])
|
|
1486
1488
|
}, be({
|
|
1487
1489
|
"label.prepend": $(() => [
|
|
1488
|
-
|
|
1490
|
+
y(s.$slots, "label.prepend")
|
|
1489
1491
|
]),
|
|
1490
1492
|
"label.append": $(() => [
|
|
1491
|
-
|
|
1493
|
+
y(s.$slots, "label.append")
|
|
1492
1494
|
]),
|
|
1493
1495
|
_: 2
|
|
1494
1496
|
}, [
|
|
1495
1497
|
s.$slots.prepend ? {
|
|
1496
1498
|
name: "prepend",
|
|
1497
1499
|
fn: $(() => [
|
|
1498
|
-
|
|
1500
|
+
y(s.$slots, "prepend")
|
|
1499
1501
|
]),
|
|
1500
1502
|
key: "0"
|
|
1501
1503
|
} : void 0,
|
|
1502
|
-
|
|
1504
|
+
z.value && i.value || s.$slots.append ? {
|
|
1503
1505
|
name: "append",
|
|
1504
1506
|
fn: $(() => [
|
|
1505
|
-
|
|
1507
|
+
z.value && i.value ? (d(), B(k(P), ne({ key: 0 }, l.icons.clear, {
|
|
1506
1508
|
class: "q-combobox__clear",
|
|
1507
1509
|
onClick: ee(X, ["stop", "prevent"])
|
|
1508
|
-
}), null, 16)) :
|
|
1509
|
-
|
|
1510
|
+
}), null, 16)) : S("", !0),
|
|
1511
|
+
y(s.$slots, "append")
|
|
1510
1512
|
]),
|
|
1511
1513
|
key: "1"
|
|
1512
1514
|
} : void 0,
|
|
1513
1515
|
s.$slots.extras ? {
|
|
1514
1516
|
name: "extras",
|
|
1515
1517
|
fn: $(() => [
|
|
1516
|
-
|
|
1518
|
+
y(s.$slots, "extras")
|
|
1517
1519
|
]),
|
|
1518
1520
|
key: "2"
|
|
1519
1521
|
} : void 0
|
|
1520
1522
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1521
|
-
(T =
|
|
1523
|
+
(T = p.value) != null && T.fieldRef ? (d(), B(k(ce), {
|
|
1522
1524
|
key: 0,
|
|
1523
|
-
"model-value":
|
|
1525
|
+
"model-value": u.value,
|
|
1524
1526
|
spy: "",
|
|
1525
1527
|
trigger: "manual",
|
|
1526
1528
|
placement: "bottom",
|
|
1527
1529
|
width: "anchor",
|
|
1528
1530
|
offset: 4,
|
|
1529
|
-
anchor: (Y =
|
|
1530
|
-
onEnter:
|
|
1531
|
+
anchor: (Y = p.value) == null ? void 0 : Y.fieldRef,
|
|
1532
|
+
onEnter: W,
|
|
1531
1533
|
onLeave: Ue
|
|
1532
1534
|
}, {
|
|
1533
1535
|
default: $(() => {
|
|
1534
1536
|
var se;
|
|
1535
1537
|
return [
|
|
1536
|
-
|
|
1538
|
+
G("div", {
|
|
1537
1539
|
ref_key: "contentRef",
|
|
1538
1540
|
ref: w,
|
|
1539
1541
|
class: "q-select__body",
|
|
1540
1542
|
onFocusout: I
|
|
1541
1543
|
}, [
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
+
y(s.$slots, "body.prepend"),
|
|
1545
|
+
l.loading ? (d(), B(k(_e), {
|
|
1544
1546
|
key: 0,
|
|
1545
1547
|
class: "q-select__loader",
|
|
1546
1548
|
size: 24
|
|
1547
|
-
})) : F.value.length ? (
|
|
1549
|
+
})) : F.value.length ? (d(), B(k(Me), {
|
|
1548
1550
|
key: 1,
|
|
1549
1551
|
ref_key: "listRef",
|
|
1550
|
-
ref:
|
|
1552
|
+
ref: m,
|
|
1551
1553
|
class: "q-select__items",
|
|
1552
1554
|
modelValue: a.value,
|
|
1553
1555
|
"onUpdate:modelValue": [
|
|
1554
|
-
|
|
1556
|
+
_[1] || (_[1] = (fe) => a.value = fe),
|
|
1555
1557
|
j
|
|
1556
1558
|
],
|
|
1557
|
-
highlighted: (se = R.value) == null ? void 0 : se[
|
|
1559
|
+
highlighted: (se = R.value) == null ? void 0 : se[l.itemValue],
|
|
1558
1560
|
items: F.value,
|
|
1559
1561
|
groups: s.groups,
|
|
1560
|
-
"item-label":
|
|
1561
|
-
"item-value":
|
|
1562
|
-
onMouseup:
|
|
1562
|
+
"item-label": l.itemLabel,
|
|
1563
|
+
"item-value": l.itemValue,
|
|
1564
|
+
onMouseup: L
|
|
1563
1565
|
}, {
|
|
1564
1566
|
item: $(({ item: fe }) => [
|
|
1565
|
-
|
|
1567
|
+
y(s.$slots, "item", { item: fe })
|
|
1566
1568
|
]),
|
|
1567
1569
|
_: 3
|
|
1568
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
1569
|
-
|
|
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")
|
|
1570
1572
|
], 544)
|
|
1571
1573
|
];
|
|
1572
1574
|
}),
|
|
1573
1575
|
_: 3
|
|
1574
|
-
}, 8, ["model-value", "anchor"])) :
|
|
1576
|
+
}, 8, ["model-value", "anchor"])) : S("", !0)
|
|
1575
1577
|
], 64);
|
|
1576
1578
|
};
|
|
1577
1579
|
}
|
|
1578
|
-
}),
|
|
1580
|
+
}), qn = V(en), tn = {
|
|
1579
1581
|
key: 0,
|
|
1580
1582
|
class: "q-input-group__prepend"
|
|
1581
|
-
},
|
|
1583
|
+
}, nn = { key: 0 }, ln = {
|
|
1582
1584
|
key: 1,
|
|
1583
1585
|
class: "q-input-group__append"
|
|
1584
|
-
},
|
|
1586
|
+
}, on = { key: 0 }, an = /* @__PURE__ */ x({
|
|
1585
1587
|
__name: "QInputGroup",
|
|
1586
1588
|
props: {
|
|
1587
1589
|
id: { default: () => le() },
|
|
@@ -1600,53 +1602,51 @@ const Rt = {
|
|
|
1600
1602
|
QField: {
|
|
1601
1603
|
size: "block"
|
|
1602
1604
|
}
|
|
1603
|
-
}), (
|
|
1605
|
+
}), (o, e) => (d(), B(k(ke), {
|
|
1604
1606
|
id: t.id,
|
|
1605
|
-
class: D(t.class),
|
|
1607
|
+
class: D(["q-input-group", t.class]),
|
|
1606
1608
|
label: t.label,
|
|
1607
1609
|
readonly: t.readonly,
|
|
1608
1610
|
disabled: t.disabled,
|
|
1609
1611
|
required: t.required,
|
|
1610
1612
|
size: t.size
|
|
1611
1613
|
}, {
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
])) : L("", !0)
|
|
1627
|
-
])
|
|
1614
|
+
default: $(() => [
|
|
1615
|
+
o.$slots.prepend || t.prependIcon ? (d(), v("div", tn, [
|
|
1616
|
+
t.prependIcon ? (d(), v("span", nn, [
|
|
1617
|
+
te(k(P), de(he(t.prependIcon)), null, 16)
|
|
1618
|
+
])) : S("", !0),
|
|
1619
|
+
y(o.$slots, "prepend")
|
|
1620
|
+
])) : S("", !0),
|
|
1621
|
+
y(o.$slots, "default"),
|
|
1622
|
+
o.$slots.append || t.appendIcon ? (d(), v("div", ln, [
|
|
1623
|
+
t.appendIcon ? (d(), v("span", on, [
|
|
1624
|
+
te(k(P), de(he(t.appendIcon)), null, 16)
|
|
1625
|
+
])) : S("", !0),
|
|
1626
|
+
y(o.$slots, "append")
|
|
1627
|
+
])) : S("", !0)
|
|
1628
1628
|
]),
|
|
1629
1629
|
_: 3
|
|
1630
1630
|
}, 8, ["id", "class", "label", "readonly", "disabled", "required", "size"]));
|
|
1631
1631
|
}
|
|
1632
|
-
}),
|
|
1632
|
+
}), Sn = V(an), sn = /* @__PURE__ */ x({
|
|
1633
1633
|
__name: "QLineLoader",
|
|
1634
1634
|
props: {
|
|
1635
1635
|
class: { default: void 0 }
|
|
1636
1636
|
},
|
|
1637
1637
|
setup(n) {
|
|
1638
1638
|
const t = n;
|
|
1639
|
-
return (
|
|
1639
|
+
return (o, e) => (d(), v("div", {
|
|
1640
1640
|
class: D(["q-line-loader", t.class])
|
|
1641
1641
|
}, null, 2));
|
|
1642
1642
|
}
|
|
1643
|
-
}),
|
|
1643
|
+
}), Ln = V(sn), rn = {
|
|
1644
1644
|
key: 0,
|
|
1645
1645
|
class: "q-popover__header"
|
|
1646
|
-
},
|
|
1646
|
+
}, dn = {
|
|
1647
1647
|
key: 1,
|
|
1648
1648
|
class: "q-popover__body"
|
|
1649
|
-
},
|
|
1649
|
+
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ x({
|
|
1650
1650
|
inheritAttrs: !1,
|
|
1651
1651
|
__name: "QPopover",
|
|
1652
1652
|
props: {
|
|
@@ -1663,7 +1663,7 @@ const Rt = {
|
|
|
1663
1663
|
},
|
|
1664
1664
|
setup(n) {
|
|
1665
1665
|
const t = n;
|
|
1666
|
-
return (
|
|
1666
|
+
return (o, e) => (d(), B(k(ce), {
|
|
1667
1667
|
"model-value": t.modelValue,
|
|
1668
1668
|
class: "q-popover",
|
|
1669
1669
|
trigger: "click",
|
|
@@ -1675,37 +1675,37 @@ const Rt = {
|
|
|
1675
1675
|
spy: t.spy
|
|
1676
1676
|
}, {
|
|
1677
1677
|
default: $(() => [
|
|
1678
|
-
t.title ||
|
|
1679
|
-
re(
|
|
1680
|
-
|
|
1681
|
-
])) :
|
|
1682
|
-
t.text ||
|
|
1683
|
-
t.html ? (
|
|
1678
|
+
t.title || o.$slots.header ? (d(), v("h3", rn, [
|
|
1679
|
+
re(N(t.title) + " ", 1),
|
|
1680
|
+
y(o.$slots, "header")
|
|
1681
|
+
])) : S("", !0),
|
|
1682
|
+
t.text || o.$slots.body ? (d(), v("div", dn, [
|
|
1683
|
+
t.html ? (d(), v("span", {
|
|
1684
1684
|
key: 0,
|
|
1685
1685
|
innerHTML: t.text
|
|
1686
|
-
}, null, 8,
|
|
1687
|
-
|
|
1688
|
-
])) :
|
|
1686
|
+
}, null, 8, un)) : (d(), v("span", cn, N(t.text), 1)),
|
|
1687
|
+
y(o.$slots, "body")
|
|
1688
|
+
])) : S("", !0)
|
|
1689
1689
|
]),
|
|
1690
1690
|
_: 3
|
|
1691
1691
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
1692
1692
|
}
|
|
1693
|
-
}),
|
|
1693
|
+
}), Bn = V(fn), pn = {
|
|
1694
1694
|
key: 0,
|
|
1695
1695
|
class: "q-select__value"
|
|
1696
|
-
},
|
|
1696
|
+
}, mn = {
|
|
1697
1697
|
key: 1,
|
|
1698
1698
|
class: "q-select__placeholder"
|
|
1699
|
-
},
|
|
1699
|
+
}, vn = {
|
|
1700
1700
|
placeholder: "Choose..."
|
|
1701
|
-
},
|
|
1701
|
+
}, hn = {
|
|
1702
1702
|
chevron: {
|
|
1703
1703
|
icon: "chevron-down"
|
|
1704
1704
|
},
|
|
1705
1705
|
clear: {
|
|
1706
1706
|
icon: "close"
|
|
1707
1707
|
}
|
|
1708
|
-
},
|
|
1708
|
+
}, yn = /* @__PURE__ */ x({
|
|
1709
1709
|
__name: "QSelect",
|
|
1710
1710
|
props: {
|
|
1711
1711
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1716,95 +1716,95 @@ const Rt = {
|
|
|
1716
1716
|
disabled: { type: Boolean },
|
|
1717
1717
|
required: { type: Boolean },
|
|
1718
1718
|
loading: { type: Boolean },
|
|
1719
|
-
icons: { default: () =>
|
|
1719
|
+
icons: { default: () => hn },
|
|
1720
1720
|
items: {},
|
|
1721
1721
|
groups: { default: () => [] },
|
|
1722
1722
|
itemValue: { default: "key" },
|
|
1723
1723
|
itemLabel: { default: "label" },
|
|
1724
1724
|
size: { default: void 0 },
|
|
1725
|
-
texts: { default: () =>
|
|
1725
|
+
texts: { default: () => vn },
|
|
1726
1726
|
class: { default: "" }
|
|
1727
1727
|
},
|
|
1728
1728
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1729
1729
|
setup(n, { emit: t }) {
|
|
1730
|
-
const
|
|
1730
|
+
const o = t, e = n, l = q(e.modelValue), a = q(!1), u = q(""), i = q(null), f = q(null), p = q(null), m = g(
|
|
1731
1731
|
() => {
|
|
1732
|
-
var
|
|
1733
|
-
return (
|
|
1732
|
+
var c;
|
|
1733
|
+
return (c = e.items) == null ? void 0 : c.find((r) => r[e.itemValue] === l.value);
|
|
1734
1734
|
}
|
|
1735
|
-
), w =
|
|
1736
|
-
() =>
|
|
1737
|
-
),
|
|
1735
|
+
), w = g(
|
|
1736
|
+
() => m.value ? m.value[e.itemLabel] : ""
|
|
1737
|
+
), z = g(
|
|
1738
1738
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1739
1739
|
);
|
|
1740
|
-
function F(
|
|
1741
|
-
|
|
1740
|
+
function F(c) {
|
|
1741
|
+
l.value = c, o("update:modelValue", c), H();
|
|
1742
1742
|
}
|
|
1743
1743
|
function A() {
|
|
1744
|
-
|
|
1744
|
+
z.value && F(void 0);
|
|
1745
1745
|
}
|
|
1746
1746
|
function R() {
|
|
1747
|
-
e.readonly || e.disabled || (a.value ?
|
|
1747
|
+
e.readonly || e.disabled || (a.value ? H() : E());
|
|
1748
1748
|
}
|
|
1749
|
-
function O(
|
|
1750
|
-
var r,
|
|
1751
|
-
!((r =
|
|
1749
|
+
function O(c) {
|
|
1750
|
+
var r, h, I;
|
|
1751
|
+
!((r = p.value) != null && r.contains(c.relatedTarget)) && !((I = (h = i.value) == null ? void 0 : h.fieldRef) != null && I.contains(c.relatedTarget)) && H();
|
|
1752
1752
|
}
|
|
1753
1753
|
function E() {
|
|
1754
|
-
a.value || (
|
|
1754
|
+
a.value || (o("before-show"), a.value = !0);
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1757
|
-
a.value && (
|
|
1756
|
+
function H() {
|
|
1757
|
+
a.value && (o("before-hide"), a.value = !1);
|
|
1758
1758
|
}
|
|
1759
1759
|
let j;
|
|
1760
|
-
function Q(
|
|
1761
|
-
if (!(!
|
|
1762
|
-
if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1763
|
-
|
|
1760
|
+
function Q(c) {
|
|
1761
|
+
if (!(!c.key || e.readonly || e.disabled)) {
|
|
1762
|
+
if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (a.value = !0), ["Escape", "Tab"].includes(c.key) && (a.value ? a.value = !1 : e.clearable && c.key === "Escape" && A()), c.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(c.key)) {
|
|
1763
|
+
u.value += c.key.toLowerCase();
|
|
1764
1764
|
for (let r = 0; r < e.items.length; r++)
|
|
1765
|
-
if (e.items[r][e.itemLabel].toLowerCase().startsWith(
|
|
1765
|
+
if (e.items[r][e.itemLabel].toLowerCase().startsWith(u.value)) {
|
|
1766
1766
|
b(r);
|
|
1767
1767
|
break;
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
1770
|
j = window.setTimeout(function() {
|
|
1771
|
-
|
|
1771
|
+
u.value = "";
|
|
1772
1772
|
}, 500);
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
function M() {
|
|
1776
|
-
var
|
|
1777
|
-
e.loading ? (
|
|
1776
|
+
var c;
|
|
1777
|
+
e.loading ? (c = p.value) == null || c.focus() : K(), o("show");
|
|
1778
1778
|
}
|
|
1779
1779
|
function U() {
|
|
1780
|
-
X(),
|
|
1780
|
+
X(), o("hide");
|
|
1781
1781
|
}
|
|
1782
1782
|
function X() {
|
|
1783
|
-
var
|
|
1784
|
-
(r = (
|
|
1783
|
+
var c, r;
|
|
1784
|
+
(r = (c = i.value) == null ? void 0 : c.fieldRef) == null || r.focus();
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
var
|
|
1788
|
-
(
|
|
1786
|
+
function K() {
|
|
1787
|
+
var c;
|
|
1788
|
+
(c = f.value) == null || c.$el.focus();
|
|
1789
1789
|
}
|
|
1790
|
-
function b(
|
|
1790
|
+
function b(c) {
|
|
1791
1791
|
var r;
|
|
1792
|
-
(r =
|
|
1792
|
+
(r = f.value) == null || r.focusItem(c);
|
|
1793
1793
|
}
|
|
1794
|
-
return
|
|
1794
|
+
return C(
|
|
1795
1795
|
() => e.modelValue,
|
|
1796
|
-
(
|
|
1797
|
-
|
|
1796
|
+
(c) => {
|
|
1797
|
+
l.value = c;
|
|
1798
1798
|
}
|
|
1799
|
-
),
|
|
1799
|
+
), C(
|
|
1800
1800
|
() => e.loading,
|
|
1801
|
-
(
|
|
1802
|
-
!
|
|
1801
|
+
(c) => {
|
|
1802
|
+
!c && a.value && J(K);
|
|
1803
1803
|
}
|
|
1804
|
-
), (
|
|
1805
|
-
var
|
|
1806
|
-
return
|
|
1807
|
-
te(
|
|
1804
|
+
), (c, r) => {
|
|
1805
|
+
var h, I, L;
|
|
1806
|
+
return d(), v(Z, null, [
|
|
1807
|
+
te(k(ke), {
|
|
1808
1808
|
id: e.id,
|
|
1809
1809
|
label: e.label,
|
|
1810
1810
|
required: e.required,
|
|
@@ -1830,29 +1830,29 @@ const Rt = {
|
|
|
1830
1830
|
onKeydown: ee(Q, ["stop"])
|
|
1831
1831
|
}, be({
|
|
1832
1832
|
append: $(() => [
|
|
1833
|
-
|
|
1833
|
+
z.value && l.value ? (d(), B(k(P), ne({ key: 0 }, e.icons.clear, {
|
|
1834
1834
|
class: "q-select__clear",
|
|
1835
1835
|
onClick: ee(A, ["stop", "prevent"])
|
|
1836
|
-
}), null, 16)) :
|
|
1837
|
-
|
|
1836
|
+
}), null, 16)) : S("", !0),
|
|
1837
|
+
e.readonly ? S("", !0) : (d(), B(k(P), ne({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1838
1838
|
]),
|
|
1839
1839
|
default: $(() => [
|
|
1840
|
-
|
|
1840
|
+
l.value ? (d(), v("span", pn, N(w.value), 1)) : !e.readonly && !e.disabled ? (d(), v("span", mn, N(c.texts.placeholder), 1)) : S("", !0)
|
|
1841
1841
|
]),
|
|
1842
1842
|
_: 2
|
|
1843
1843
|
}, [
|
|
1844
|
-
(
|
|
1844
|
+
(h = m.value) != null && h.icon ? {
|
|
1845
1845
|
name: "prepend",
|
|
1846
1846
|
fn: $(() => {
|
|
1847
|
-
var
|
|
1847
|
+
var W;
|
|
1848
1848
|
return [
|
|
1849
|
-
te(
|
|
1849
|
+
te(k(P), de(he((W = m.value) == null ? void 0 : W.icon)), null, 16)
|
|
1850
1850
|
];
|
|
1851
1851
|
}),
|
|
1852
1852
|
key: "0"
|
|
1853
1853
|
} : void 0
|
|
1854
1854
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1855
|
-
(I = i.value) != null && I.fieldRef ? (
|
|
1855
|
+
(I = i.value) != null && I.fieldRef ? (d(), B(k(ce), {
|
|
1856
1856
|
key: 0,
|
|
1857
1857
|
"model-value": a.value,
|
|
1858
1858
|
spy: "",
|
|
@@ -1860,53 +1860,53 @@ const Rt = {
|
|
|
1860
1860
|
placement: "bottom",
|
|
1861
1861
|
width: "anchor",
|
|
1862
1862
|
offset: 2,
|
|
1863
|
-
anchor: (
|
|
1863
|
+
anchor: (L = i.value) == null ? void 0 : L.fieldRef,
|
|
1864
1864
|
onEnter: M,
|
|
1865
1865
|
onLeave: U
|
|
1866
1866
|
}, {
|
|
1867
1867
|
default: $(() => [
|
|
1868
|
-
|
|
1868
|
+
G("div", {
|
|
1869
1869
|
ref_key: "contentRef",
|
|
1870
|
-
ref:
|
|
1870
|
+
ref: p,
|
|
1871
1871
|
class: "q-select__body",
|
|
1872
1872
|
tabindex: "-1",
|
|
1873
1873
|
onFocusout: O,
|
|
1874
1874
|
onKeydown: ee(Q, ["stop"])
|
|
1875
1875
|
}, [
|
|
1876
|
-
|
|
1877
|
-
e.loading ? (
|
|
1876
|
+
y(c.$slots, "body.prepend"),
|
|
1877
|
+
e.loading ? (d(), B(k(_e), {
|
|
1878
1878
|
key: 0,
|
|
1879
1879
|
class: "q-select__loader",
|
|
1880
1880
|
size: 24
|
|
1881
|
-
})) : (
|
|
1881
|
+
})) : (d(), B(k(Me), {
|
|
1882
1882
|
key: 1,
|
|
1883
1883
|
ref_key: "listRef",
|
|
1884
|
-
ref:
|
|
1884
|
+
ref: f,
|
|
1885
1885
|
class: "q-select__items",
|
|
1886
|
-
modelValue:
|
|
1886
|
+
modelValue: l.value,
|
|
1887
1887
|
"onUpdate:modelValue": [
|
|
1888
|
-
r[0] || (r[0] = (
|
|
1888
|
+
r[0] || (r[0] = (W) => l.value = W),
|
|
1889
1889
|
F
|
|
1890
1890
|
],
|
|
1891
1891
|
items: e.items,
|
|
1892
|
-
groups:
|
|
1892
|
+
groups: c.groups,
|
|
1893
1893
|
"item-label": e.itemLabel,
|
|
1894
1894
|
"item-value": e.itemValue
|
|
1895
1895
|
}, {
|
|
1896
|
-
item: $(({ item:
|
|
1897
|
-
|
|
1896
|
+
item: $(({ item: W }) => [
|
|
1897
|
+
y(c.$slots, "item", { item: W })
|
|
1898
1898
|
]),
|
|
1899
1899
|
_: 3
|
|
1900
1900
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
1901
|
-
|
|
1901
|
+
y(c.$slots, "body.append")
|
|
1902
1902
|
], 544)
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 3
|
|
1905
|
-
}, 8, ["model-value", "anchor"])) :
|
|
1905
|
+
}, 8, ["model-value", "anchor"])) : S("", !0)
|
|
1906
1906
|
], 64);
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
|
-
}),
|
|
1909
|
+
}), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ x({
|
|
1910
1910
|
__name: "QTooltip",
|
|
1911
1911
|
props: {
|
|
1912
1912
|
modelValue: { type: Boolean },
|
|
@@ -1924,7 +1924,7 @@ const Rt = {
|
|
|
1924
1924
|
},
|
|
1925
1925
|
setup(n) {
|
|
1926
1926
|
const t = n;
|
|
1927
|
-
return (
|
|
1927
|
+
return (o, e) => (d(), B(k(ce), {
|
|
1928
1928
|
"model-value": t.modelValue,
|
|
1929
1929
|
anchor: t.anchor,
|
|
1930
1930
|
appearance: t.appearance,
|
|
@@ -1937,39 +1937,39 @@ const Rt = {
|
|
|
1937
1937
|
trigger: t.trigger
|
|
1938
1938
|
}, {
|
|
1939
1939
|
default: $(() => [
|
|
1940
|
-
t.html ? (
|
|
1940
|
+
t.html ? (d(), v("span", {
|
|
1941
1941
|
key: 0,
|
|
1942
1942
|
innerHTML: t.text
|
|
1943
|
-
}, null, 8,
|
|
1943
|
+
}, null, 8, bn)) : (d(), v("span", gn, N(t.text), 1))
|
|
1944
1944
|
]),
|
|
1945
1945
|
_: 1
|
|
1946
1946
|
}, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"]));
|
|
1947
1947
|
}
|
|
1948
|
-
}),
|
|
1948
|
+
}), Vn = V(_n);
|
|
1949
1949
|
export {
|
|
1950
1950
|
ct as QButton,
|
|
1951
1951
|
pt as QButtonGroup,
|
|
1952
|
-
|
|
1953
|
-
|
|
1952
|
+
In as QButtonToggle,
|
|
1953
|
+
qn as QCombobox,
|
|
1954
1954
|
ke as QField,
|
|
1955
1955
|
P as QIcon,
|
|
1956
1956
|
$t as QIconFont,
|
|
1957
1957
|
It as QIconImg,
|
|
1958
1958
|
qt as QIconSvg,
|
|
1959
|
-
|
|
1960
|
-
|
|
1959
|
+
Sn as QInputGroup,
|
|
1960
|
+
Ln as QLineLoader,
|
|
1961
1961
|
Me as QList,
|
|
1962
1962
|
Ct as QListItem,
|
|
1963
1963
|
Ft as QListItemGroup,
|
|
1964
1964
|
ce as QOverlay,
|
|
1965
|
-
|
|
1966
|
-
|
|
1965
|
+
Bn as QPopover,
|
|
1966
|
+
xn as QSelect,
|
|
1967
1967
|
_e as QSpinnerLoader,
|
|
1968
1968
|
Yt as QTextField,
|
|
1969
|
-
|
|
1970
|
-
|
|
1969
|
+
Vn as QTooltip,
|
|
1970
|
+
$n as createFramework,
|
|
1971
1971
|
Pe as defaultDarkColorScheme,
|
|
1972
1972
|
qe as defaultLightColorScheme,
|
|
1973
|
-
|
|
1973
|
+
wn as useTheme
|
|
1974
1974
|
};
|
|
1975
1975
|
//# sourceMappingURL=ui.esm.js.map
|