@quidgest/ui 0.5.13 → 0.5.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/README.md +5 -3
- package/dist/index.d.ts +139 -55
- package/dist/ui.css +17 -10
- package/dist/ui.esm.js +397 -383
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +60 -58
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +17 -10
- package/package.json +2 -2
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as me, computed as y, ref as
|
|
1
|
+
import { getCurrentInstance as me, computed as y, ref as D, provide as Le, inject as he, watch as A, defineComponent as k, openBlock as r, createElementBlock as f, normalizeStyle as W, createElementVNode as K, normalizeClass as T, withModifiers as H, createVNode as U, unref as g, createCommentVNode as b, Fragment as Q, createTextVNode as X, toDisplayString as V, renderSlot as q, toRef as P, createBlock as S, withCtx as C, renderList as te, resolveDynamicComponent as ye, h as le, normalizeProps as ve, mergeProps as Z, reactive as xe, onBeforeUnmount as qe, onMounted as De, Teleport as Ie, Transition as Ee, nextTick as re, useAttrs as Ce, createSlots as Te, guardReactiveProps as Ve, withDirectives as Ae } from "vue";
|
|
2
2
|
function ne(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -10,20 +10,20 @@ function ge(t = {}, n = {}) {
|
|
|
10
10
|
for (const o in t)
|
|
11
11
|
e[o] = t[o];
|
|
12
12
|
for (const o in n) {
|
|
13
|
-
const
|
|
14
|
-
if (ie(
|
|
13
|
+
const s = t[o], a = n[o];
|
|
14
|
+
if (ie(s) && ie(a)) {
|
|
15
15
|
e[o] = ge(
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
s,
|
|
17
|
+
a
|
|
18
18
|
);
|
|
19
19
|
continue;
|
|
20
20
|
}
|
|
21
|
-
e[o] =
|
|
21
|
+
e[o] = a;
|
|
22
22
|
}
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
25
|
const oe = "q-defaults";
|
|
26
|
-
function
|
|
26
|
+
function ze() {
|
|
27
27
|
const t = me();
|
|
28
28
|
if (!t)
|
|
29
29
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
@@ -36,11 +36,11 @@ function Ve() {
|
|
|
36
36
|
return (o = e.value) == null ? void 0 : o[n];
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Qe(t) {
|
|
40
40
|
if (ne(t))
|
|
41
41
|
return;
|
|
42
|
-
const n = be(), e =
|
|
43
|
-
|
|
42
|
+
const n = be(), e = D(t), o = y(() => ne(e.value) ? n.value : ge(n.value, e.value));
|
|
43
|
+
Le(oe, o);
|
|
44
44
|
}
|
|
45
45
|
function be() {
|
|
46
46
|
const t = he(oe, void 0);
|
|
@@ -78,7 +78,7 @@ const ce = {
|
|
|
78
78
|
onWarning: "#fff",
|
|
79
79
|
onDanger: "#fff",
|
|
80
80
|
onInfo: "#fff"
|
|
81
|
-
},
|
|
81
|
+
}, Oe = {
|
|
82
82
|
primary: "#018BD2",
|
|
83
83
|
primaryLight: "#cce7f6",
|
|
84
84
|
primaryDark: "#006fac",
|
|
@@ -116,7 +116,7 @@ function _e(t) {
|
|
|
116
116
|
const n = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), o = parseInt(t.slice(5, 7), 16);
|
|
117
117
|
return { r: n, g: e, b: o };
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Fe(t, n) {
|
|
120
120
|
if (n < 0 || n > 100)
|
|
121
121
|
throw new Error("Amount must be in the range [0, 100]");
|
|
122
122
|
if (n === 0)
|
|
@@ -124,7 +124,7 @@ function Ae(t, n) {
|
|
|
124
124
|
const e = ke(t), o = n / 100;
|
|
125
125
|
return e.l = e.l + o * (100 - e.l), we(e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Me(t, n) {
|
|
128
128
|
if (n < 0 || n > 100)
|
|
129
129
|
throw new Error("Amount must be in the range [0, 100]");
|
|
130
130
|
if (n === 0)
|
|
@@ -137,22 +137,22 @@ function ue(t) {
|
|
|
137
137
|
return `#${n}${e}${o}`;
|
|
138
138
|
}
|
|
139
139
|
function ke(t) {
|
|
140
|
-
const n = t.r / 255, e = t.g / 255, o = t.b / 255,
|
|
140
|
+
const n = t.r / 255, e = t.g / 255, o = t.b / 255, s = Math.max(n, e, o), a = Math.min(n, e, o);
|
|
141
141
|
let l = 0, c;
|
|
142
|
-
const i = (
|
|
143
|
-
if (
|
|
142
|
+
const i = (s + a) / 2;
|
|
143
|
+
if (s === a)
|
|
144
144
|
l = c = 0;
|
|
145
145
|
else {
|
|
146
|
-
const
|
|
147
|
-
switch (c = i > 0.5 ?
|
|
146
|
+
const h = s - a;
|
|
147
|
+
switch (c = i > 0.5 ? h / (2 - s - a) : h / (s + a), s) {
|
|
148
148
|
case n:
|
|
149
|
-
l = (e - o) /
|
|
149
|
+
l = (e - o) / h + (e < o ? 6 : 0);
|
|
150
150
|
break;
|
|
151
151
|
case e:
|
|
152
|
-
l = (o - n) /
|
|
152
|
+
l = (o - n) / h + 2;
|
|
153
153
|
break;
|
|
154
154
|
case o:
|
|
155
|
-
l = (n - e) /
|
|
155
|
+
l = (n - e) / h + 4;
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
158
|
l /= 6;
|
|
@@ -165,16 +165,16 @@ function ke(t) {
|
|
|
165
165
|
}
|
|
166
166
|
function we(t) {
|
|
167
167
|
const n = t.h / 360, e = t.s / 100, o = t.l / 100;
|
|
168
|
-
let
|
|
168
|
+
let s, a, l;
|
|
169
169
|
if (e === 0)
|
|
170
|
-
|
|
170
|
+
s = a = l = o;
|
|
171
171
|
else {
|
|
172
172
|
const c = o < 0.5 ? o * (1 + e) : o + e - o * e, i = 2 * o - c;
|
|
173
|
-
|
|
173
|
+
s = ee(i, c, n + 1 / 3), a = ee(i, c, n), l = ee(i, c, n - 1 / 3);
|
|
174
174
|
}
|
|
175
175
|
return {
|
|
176
|
-
r: Math.round(
|
|
177
|
-
g: Math.round(
|
|
176
|
+
r: Math.round(s * 255),
|
|
177
|
+
g: Math.round(a * 255),
|
|
178
178
|
b: Math.round(l * 255)
|
|
179
179
|
};
|
|
180
180
|
}
|
|
@@ -182,28 +182,28 @@ function ee(t, n, e) {
|
|
|
182
182
|
return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? t + (n - t) * 6 * e : e < 1 / 2 ? n : e < 2 / 3 ? t + (n - t) * (2 / 3 - e) * 6 : t;
|
|
183
183
|
}
|
|
184
184
|
const j = "q-theme";
|
|
185
|
-
function
|
|
185
|
+
function tn() {
|
|
186
186
|
const t = he(j);
|
|
187
187
|
if (!t)
|
|
188
188
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
189
189
|
return t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Re(t, n) {
|
|
192
192
|
let e = null;
|
|
193
193
|
if (n)
|
|
194
194
|
for (const o of n.themes) {
|
|
195
|
-
const
|
|
195
|
+
const s = o.mode === "light" ? ce : Oe;
|
|
196
196
|
if (o.colors) {
|
|
197
|
-
let
|
|
198
|
-
for (
|
|
199
|
-
const l = o.colors[
|
|
200
|
-
if (l && !
|
|
201
|
-
const c = _e(l), i = `${
|
|
202
|
-
i in o.colors || (o.colors[i] = ue(
|
|
197
|
+
let a;
|
|
198
|
+
for (a in o.colors) {
|
|
199
|
+
const l = o.colors[a];
|
|
200
|
+
if (l && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
|
|
201
|
+
const c = _e(l), i = `${a}Light`, h = `${a}Dark`;
|
|
202
|
+
i in o.colors || (o.colors[i] = ue(Fe(c, 85))), h in o.colors || (o.colors[h] = ue(Me(c, 25)));
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
o.colors =
|
|
206
|
+
o.colors = He(s, o.colors), o.name === n.defaultTheme && (e = o);
|
|
207
207
|
}
|
|
208
208
|
else {
|
|
209
209
|
const o = "default";
|
|
@@ -217,24 +217,24 @@ function Fe(t, n) {
|
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
if (e) {
|
|
220
|
-
const o =
|
|
220
|
+
const o = D({
|
|
221
221
|
activeTheme: e.name,
|
|
222
222
|
themes: n.themes
|
|
223
223
|
});
|
|
224
|
-
|
|
224
|
+
A(
|
|
225
225
|
() => o.value.activeTheme,
|
|
226
|
-
(
|
|
227
|
-
const
|
|
228
|
-
|
|
226
|
+
(s) => {
|
|
227
|
+
const a = o.value.themes.find((l) => l.name === s);
|
|
228
|
+
a && Ue(a.colors);
|
|
229
229
|
},
|
|
230
230
|
{ immediate: !0 }
|
|
231
231
|
), t.provide(j, o);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function He(t, n = {}) {
|
|
235
235
|
return { ...t, ...n };
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ue(t) {
|
|
238
238
|
let n = document.getElementById(
|
|
239
239
|
j
|
|
240
240
|
);
|
|
@@ -242,12 +242,12 @@ function Re(t) {
|
|
|
242
242
|
let e = `:root {
|
|
243
243
|
`, o;
|
|
244
244
|
for (o in t) {
|
|
245
|
-
const
|
|
246
|
-
if (
|
|
247
|
-
e += ` ${de(o)}: ${
|
|
245
|
+
const s = t[o];
|
|
246
|
+
if (s) {
|
|
247
|
+
e += ` ${de(o)}: ${s};
|
|
248
248
|
`;
|
|
249
|
-
const
|
|
250
|
-
e += ` ${de(o)}-rgb: ${
|
|
249
|
+
const a = _e(s);
|
|
250
|
+
e += ` ${de(o)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
251
251
|
`;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -256,20 +256,20 @@ function Re(t) {
|
|
|
256
256
|
function de(t) {
|
|
257
257
|
return t ? `--q-theme-${t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function nn(t = {}) {
|
|
260
260
|
return { install: (e) => {
|
|
261
261
|
const o = t.components || {};
|
|
262
262
|
for (const l in o)
|
|
263
263
|
e.component(l, o[l]);
|
|
264
|
-
const
|
|
265
|
-
for (const l in
|
|
266
|
-
e.directive(l,
|
|
267
|
-
const
|
|
268
|
-
e.provide(oe,
|
|
264
|
+
const s = t.directives || {};
|
|
265
|
+
for (const l in s)
|
|
266
|
+
e.directive(l, s[l]);
|
|
267
|
+
const a = t.defaults || {};
|
|
268
|
+
e.provide(oe, D(a)), Re(e, t.themes);
|
|
269
269
|
} };
|
|
270
270
|
}
|
|
271
|
-
const
|
|
272
|
-
/* @__PURE__ */
|
|
271
|
+
const Ne = /* @__PURE__ */ K("svg", { viewBox: "25 25 50 50" }, [
|
|
272
|
+
/* @__PURE__ */ K("circle", {
|
|
273
273
|
class: "path",
|
|
274
274
|
cx: "50",
|
|
275
275
|
cy: "50",
|
|
@@ -279,9 +279,9 @@ const He = /* @__PURE__ */ Z("svg", { viewBox: "25 25 50 50" }, [
|
|
|
279
279
|
"stroke-width": "5",
|
|
280
280
|
"stroke-miterlimit": "10"
|
|
281
281
|
})
|
|
282
|
-
], -1),
|
|
283
|
-
|
|
284
|
-
],
|
|
282
|
+
], -1), Ke = [
|
|
283
|
+
Ne
|
|
284
|
+
], We = /* @__PURE__ */ k({
|
|
285
285
|
__name: "QSpinnerLoader",
|
|
286
286
|
props: {
|
|
287
287
|
size: { default: 48 }
|
|
@@ -290,39 +290,39 @@ const He = /* @__PURE__ */ Z("svg", { viewBox: "25 25 50 50" }, [
|
|
|
290
290
|
const n = t, e = y(() => ({
|
|
291
291
|
"font-size": n.size !== 48 ? `${n.size}px` : void 0
|
|
292
292
|
}));
|
|
293
|
-
return (o,
|
|
293
|
+
return (o, s) => (r(), f("div", {
|
|
294
294
|
class: "q-spinner-loader",
|
|
295
|
-
style:
|
|
296
|
-
},
|
|
295
|
+
style: W(e.value)
|
|
296
|
+
}, Ke, 4));
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
|
-
function
|
|
299
|
+
function Ge(t, n) {
|
|
300
300
|
var e;
|
|
301
301
|
return typeof ((e = t.props) == null ? void 0 : e[n]) < "u";
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function w(t) {
|
|
304
304
|
const n = t.setup;
|
|
305
305
|
return n && (t.setup = (e, o) => {
|
|
306
|
-
const
|
|
307
|
-
if (ne(
|
|
306
|
+
const s = ze();
|
|
307
|
+
if (ne(s.value))
|
|
308
308
|
return n(e, o);
|
|
309
|
-
const
|
|
310
|
-
if (
|
|
309
|
+
const a = me();
|
|
310
|
+
if (a === null)
|
|
311
311
|
return n(e, o);
|
|
312
312
|
const l = new Proxy(e, {
|
|
313
313
|
get(c, i) {
|
|
314
|
-
var
|
|
315
|
-
const
|
|
316
|
-
return
|
|
314
|
+
var p;
|
|
315
|
+
const h = Reflect.get(c, i), _ = (p = s.value) == null ? void 0 : p[i];
|
|
316
|
+
return typeof i == "string" && !Ge(a.vnode, i) ? _ ?? h : h;
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
return n(l, o);
|
|
320
320
|
}), t;
|
|
321
321
|
}
|
|
322
|
-
const $e =
|
|
322
|
+
const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
|
|
323
323
|
key: 0,
|
|
324
324
|
class: "q-btn__spinner"
|
|
325
|
-
},
|
|
325
|
+
}, Ze = { class: "q-btn__content" }, je = /* @__PURE__ */ k({
|
|
326
326
|
__name: "QButton",
|
|
327
327
|
props: {
|
|
328
328
|
active: { type: Boolean },
|
|
@@ -339,10 +339,10 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
339
339
|
emits: ["click"],
|
|
340
340
|
setup(t, { emit: n }) {
|
|
341
341
|
const e = t, o = y(() => e.disabled || e.loading);
|
|
342
|
-
function
|
|
342
|
+
function s(l) {
|
|
343
343
|
o.value || n("click", l);
|
|
344
344
|
}
|
|
345
|
-
const
|
|
345
|
+
const a = y(() => {
|
|
346
346
|
const l = y(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), c = y(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
|
|
347
347
|
return [
|
|
348
348
|
"q-btn",
|
|
@@ -359,25 +359,25 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
359
359
|
});
|
|
360
360
|
return (l, c) => (r(), f("button", {
|
|
361
361
|
type: "button",
|
|
362
|
-
class: T(
|
|
362
|
+
class: T(a.value),
|
|
363
363
|
disabled: o.value,
|
|
364
|
-
onClick: H(
|
|
364
|
+
onClick: H(s, ["stop", "prevent"])
|
|
365
365
|
}, [
|
|
366
|
-
l.loading ? (r(), f("div",
|
|
366
|
+
l.loading ? (r(), f("div", Xe, [
|
|
367
367
|
U(g($e), { size: 23 })
|
|
368
368
|
])) : b("", !0),
|
|
369
|
-
|
|
369
|
+
K("span", Ze, [
|
|
370
370
|
l.iconOnRight ? (r(), f(Q, { key: 0 }, [
|
|
371
|
-
|
|
371
|
+
X(V(e.label), 1)
|
|
372
372
|
], 64)) : b("", !0),
|
|
373
|
-
|
|
373
|
+
q(l.$slots, "default"),
|
|
374
374
|
l.iconOnRight ? b("", !0) : (r(), f(Q, { key: 1 }, [
|
|
375
|
-
|
|
375
|
+
X(V(e.label), 1)
|
|
376
376
|
], 64))
|
|
377
377
|
])
|
|
378
|
-
], 10,
|
|
378
|
+
], 10, Ye));
|
|
379
379
|
}
|
|
380
|
-
}),
|
|
380
|
+
}), Je = w(je), Pe = /* @__PURE__ */ k({
|
|
381
381
|
__name: "QButtonGroup",
|
|
382
382
|
props: {
|
|
383
383
|
bStyle: {},
|
|
@@ -387,7 +387,7 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
387
387
|
},
|
|
388
388
|
setup(t) {
|
|
389
389
|
const n = t;
|
|
390
|
-
|
|
390
|
+
Qe({
|
|
391
391
|
QButton: {
|
|
392
392
|
bStyle: P(n, "bStyle"),
|
|
393
393
|
disabled: P(n, "disabled"),
|
|
@@ -401,13 +401,13 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
401
401
|
"q-btn-group--elevated": n.elevated
|
|
402
402
|
}
|
|
403
403
|
]);
|
|
404
|
-
return (o,
|
|
404
|
+
return (o, s) => (r(), f("div", {
|
|
405
405
|
class: T(e.value)
|
|
406
406
|
}, [
|
|
407
|
-
|
|
407
|
+
q(o.$slots, "default")
|
|
408
408
|
], 2));
|
|
409
409
|
}
|
|
410
|
-
}),
|
|
410
|
+
}), et = w(Pe), tt = /* @__PURE__ */ k({
|
|
411
411
|
__name: "QButtonToggle",
|
|
412
412
|
props: {
|
|
413
413
|
modelValue: {},
|
|
@@ -419,12 +419,12 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
419
419
|
},
|
|
420
420
|
emits: ["update:modelValue"],
|
|
421
421
|
setup(t, { emit: n }) {
|
|
422
|
-
const e = t, o =
|
|
423
|
-
|
|
422
|
+
const e = t, o = D(e.modelValue);
|
|
423
|
+
A(
|
|
424
424
|
() => e.modelValue,
|
|
425
425
|
(l) => o.value = l
|
|
426
426
|
);
|
|
427
|
-
const
|
|
427
|
+
const s = y({
|
|
428
428
|
get() {
|
|
429
429
|
return o.value;
|
|
430
430
|
},
|
|
@@ -432,25 +432,25 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
432
432
|
o.value = l, n("update:modelValue", l);
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
|
-
function
|
|
436
|
-
|
|
435
|
+
function a(l) {
|
|
436
|
+
s.value === l.key && !e.mandatory ? s.value = void 0 : s.value = l.key;
|
|
437
437
|
}
|
|
438
|
-
return (l, c) => (r(),
|
|
438
|
+
return (l, c) => (r(), S(g(et), {
|
|
439
439
|
"b-style": "secondary",
|
|
440
440
|
disabled: e.disabled,
|
|
441
441
|
borderless: e.borderless,
|
|
442
442
|
elevated: e.elevated
|
|
443
443
|
}, {
|
|
444
444
|
default: C(() => [
|
|
445
|
-
(r(!0), f(Q, null, te(e.options, (i) => (r(),
|
|
445
|
+
(r(!0), f(Q, null, te(e.options, (i) => (r(), S(g(Je), {
|
|
446
446
|
key: i.key,
|
|
447
447
|
title: i.title,
|
|
448
448
|
label: i.label,
|
|
449
|
-
active:
|
|
450
|
-
onClick: (
|
|
449
|
+
active: s.value === i.key,
|
|
450
|
+
onClick: (h) => a(i)
|
|
451
451
|
}, {
|
|
452
452
|
default: C(() => [
|
|
453
|
-
|
|
453
|
+
q(l.$slots, i.key)
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
456
|
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
@@ -458,7 +458,7 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
458
458
|
_: 3
|
|
459
459
|
}, 8, ["disabled", "borderless", "elevated"]));
|
|
460
460
|
}
|
|
461
|
-
}),
|
|
461
|
+
}), on = w(tt), nt = /* @__PURE__ */ k({
|
|
462
462
|
__name: "QIcon",
|
|
463
463
|
props: {
|
|
464
464
|
icon: {},
|
|
@@ -469,22 +469,22 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
469
469
|
const n = t, e = y(() => {
|
|
470
470
|
switch (n.type) {
|
|
471
471
|
case "svg":
|
|
472
|
-
return
|
|
472
|
+
return ft;
|
|
473
473
|
case "font":
|
|
474
|
-
return
|
|
474
|
+
return ut;
|
|
475
475
|
case "img":
|
|
476
|
-
return
|
|
476
|
+
return dt;
|
|
477
477
|
default:
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
|
-
return (o,
|
|
481
|
+
return (o, s) => n.icon ? (r(), S(ye(e.value), {
|
|
482
482
|
key: 0,
|
|
483
483
|
icon: n.icon,
|
|
484
484
|
size: n.size
|
|
485
485
|
}, null, 8, ["icon", "size"])) : b("", !0);
|
|
486
486
|
}
|
|
487
|
-
}),
|
|
487
|
+
}), ot = /* @__PURE__ */ k({
|
|
488
488
|
__name: "QIconFont",
|
|
489
489
|
props: {
|
|
490
490
|
icon: {},
|
|
@@ -493,16 +493,16 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
493
493
|
size: { default: void 0 }
|
|
494
494
|
},
|
|
495
495
|
setup(t) {
|
|
496
|
-
const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon),
|
|
496
|
+
const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), s = y(() => ({
|
|
497
497
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
498
498
|
}));
|
|
499
|
-
return (
|
|
499
|
+
return (a, l) => o.value ? (r(), f("i", {
|
|
500
500
|
key: 0,
|
|
501
501
|
class: T(["q-icon", "q-icon__font", e.value, o.value]),
|
|
502
|
-
style:
|
|
502
|
+
style: W(s.value)
|
|
503
503
|
}, null, 6)) : b("", !0);
|
|
504
504
|
}
|
|
505
|
-
}),
|
|
505
|
+
}), st = ["src"], at = /* @__PURE__ */ k({
|
|
506
506
|
__name: "QIconImg",
|
|
507
507
|
props: {
|
|
508
508
|
icon: {},
|
|
@@ -512,14 +512,14 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
512
512
|
const n = t, e = y(() => ({
|
|
513
513
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
514
514
|
}));
|
|
515
|
-
return (o,
|
|
515
|
+
return (o, s) => n.icon ? (r(), f("img", {
|
|
516
516
|
key: 0,
|
|
517
517
|
src: n.icon,
|
|
518
518
|
class: "q-icon",
|
|
519
|
-
style:
|
|
520
|
-
}, null, 12,
|
|
519
|
+
style: W(e.value)
|
|
520
|
+
}, null, 12, st)) : b("", !0);
|
|
521
521
|
}
|
|
522
|
-
}), R = {},
|
|
522
|
+
}), R = {}, lt = k({
|
|
523
523
|
name: "InlineSvg",
|
|
524
524
|
emits: ["loaded", "unloaded", "error"],
|
|
525
525
|
inheritAttrs: !1,
|
|
@@ -575,7 +575,7 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
575
575
|
o !== !1 && o !== null && o !== void 0 && (t[e] = o);
|
|
576
576
|
},
|
|
577
577
|
getSvgContent(t) {
|
|
578
|
-
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)),
|
|
578
|
+
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), rt(t, this.title)), t);
|
|
579
579
|
},
|
|
580
580
|
/**
|
|
581
581
|
* Get svgElSource
|
|
@@ -583,7 +583,7 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
583
583
|
*/
|
|
584
584
|
async getSource(t) {
|
|
585
585
|
try {
|
|
586
|
-
R[t] || (R[t] =
|
|
586
|
+
R[t] || (R[t] = it(this.download(t))), this.svgElSource && R[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
587
587
|
const n = await R[t];
|
|
588
588
|
this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
589
589
|
} catch (n) {
|
|
@@ -599,10 +599,10 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
599
599
|
const n = await fetch(t);
|
|
600
600
|
if (!n.ok)
|
|
601
601
|
throw new Error("Error loading SVG");
|
|
602
|
-
const e = await n.text(),
|
|
603
|
-
if (!
|
|
602
|
+
const e = await n.text(), a = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
|
|
603
|
+
if (!a)
|
|
604
604
|
throw new Error("Loaded file is not a valid SVG");
|
|
605
|
-
return
|
|
605
|
+
return a;
|
|
606
606
|
}
|
|
607
607
|
},
|
|
608
608
|
watch: {
|
|
@@ -611,7 +611,7 @@ const $e = k(Ne), We = ["disabled", "onClick"], Ge = {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
});
|
|
614
|
-
function
|
|
614
|
+
function rt(t, n) {
|
|
615
615
|
const e = t.getElementsByTagName("title");
|
|
616
616
|
if (e.length)
|
|
617
617
|
e[0].textContent = n;
|
|
@@ -620,7 +620,7 @@ function st(t, n) {
|
|
|
620
620
|
o.textContent = n, t.insertBefore(o, t.firstChild);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function it(t) {
|
|
624
624
|
if (t.getIsPending)
|
|
625
625
|
return t;
|
|
626
626
|
let n = !0;
|
|
@@ -632,7 +632,7 @@ function lt(t) {
|
|
|
632
632
|
);
|
|
633
633
|
return e.getIsPending = () => n, e;
|
|
634
634
|
}
|
|
635
|
-
const
|
|
635
|
+
const ct = /* @__PURE__ */ k({
|
|
636
636
|
__name: "QIconSvg",
|
|
637
637
|
props: {
|
|
638
638
|
icon: {},
|
|
@@ -644,23 +644,23 @@ const rt = /* @__PURE__ */ _({
|
|
|
644
644
|
const e = t, o = y(() => ({
|
|
645
645
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
646
646
|
}));
|
|
647
|
-
return (
|
|
647
|
+
return (s, a) => e.icon ? (r(), S(g(lt), {
|
|
648
648
|
key: 0,
|
|
649
649
|
class: "q-icon q-icon__svg",
|
|
650
650
|
src: e.bundle,
|
|
651
651
|
symbol: e.icon,
|
|
652
|
-
style:
|
|
653
|
-
onLoaded:
|
|
654
|
-
onUnloaded:
|
|
652
|
+
style: W(o.value),
|
|
653
|
+
onLoaded: a[0] || (a[0] = (l) => n("loaded", l)),
|
|
654
|
+
onUnloaded: a[1] || (a[1] = (l) => n("unloaded", l))
|
|
655
655
|
}, null, 8, ["src", "symbol", "style"])) : b("", !0);
|
|
656
656
|
}
|
|
657
|
-
}), N =
|
|
657
|
+
}), N = w(nt), ut = w(ot), dt = w(at), ft = w(ct), pt = {
|
|
658
658
|
key: 0,
|
|
659
659
|
class: "q-input__prepend"
|
|
660
|
-
},
|
|
660
|
+
}, mt = {
|
|
661
661
|
key: 1,
|
|
662
662
|
class: "q-input__append"
|
|
663
|
-
},
|
|
663
|
+
}, ht = /* @__PURE__ */ k({
|
|
664
664
|
__name: "QInput",
|
|
665
665
|
props: {
|
|
666
666
|
size: { default: "medium" },
|
|
@@ -676,25 +676,25 @@ const rt = /* @__PURE__ */ _({
|
|
|
676
676
|
{ "q-input--readonly": n.readonly, "q-input--disabled": n.disabled }
|
|
677
677
|
])
|
|
678
678
|
}, [
|
|
679
|
-
e.$slots.prepend ? (r(), f("div",
|
|
680
|
-
|
|
679
|
+
e.$slots.prepend ? (r(), f("div", pt, [
|
|
680
|
+
q(e.$slots, "prepend")
|
|
681
681
|
])) : b("", !0),
|
|
682
|
-
|
|
683
|
-
e.$slots.append ? (r(), f("div",
|
|
684
|
-
|
|
682
|
+
q(e.$slots, "default"),
|
|
683
|
+
e.$slots.append ? (r(), f("div", mt, [
|
|
684
|
+
q(e.$slots, "append")
|
|
685
685
|
])) : b("", !0)
|
|
686
686
|
], 2));
|
|
687
687
|
}
|
|
688
|
-
}),
|
|
688
|
+
}), yt = w(ht), vt = (t, n) => {
|
|
689
689
|
const e = t.__vccOpts || t;
|
|
690
|
-
for (const [o,
|
|
691
|
-
e[o] =
|
|
690
|
+
for (const [o, s] of n)
|
|
691
|
+
e[o] = s;
|
|
692
692
|
return e;
|
|
693
|
-
},
|
|
694
|
-
function
|
|
695
|
-
return r(), f("div",
|
|
693
|
+
}, gt = {}, bt = { class: "q-line-loader" };
|
|
694
|
+
function _t(t, n) {
|
|
695
|
+
return r(), f("div", bt);
|
|
696
696
|
}
|
|
697
|
-
const
|
|
697
|
+
const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE__ */ k({
|
|
698
698
|
__name: "QList",
|
|
699
699
|
props: {
|
|
700
700
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -706,103 +706,105 @@ const bt = /* @__PURE__ */ ht(yt, [["render", gt]]), Pt = k(bt), _t = /* @__PURE
|
|
|
706
706
|
},
|
|
707
707
|
emits: ["update:modelValue"],
|
|
708
708
|
setup(t, { expose: n, emit: e }) {
|
|
709
|
-
const o = t,
|
|
709
|
+
const o = t, s = D(o.modelValue), a = y(() => l.value.length > 1 ? "div" : "ul"), l = y(() => o.groups.length ? o.groups : [{ title: "" }]), c = D(null);
|
|
710
710
|
function i(u) {
|
|
711
|
-
|
|
711
|
+
s.value = u, e("update:modelValue", u);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function h() {
|
|
714
714
|
let u = 0;
|
|
715
|
-
|
|
715
|
+
s.value && (u = o.items.findIndex(($) => $[o.itemValue] === s.value)), I(u);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function _(u) {
|
|
718
718
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && u.preventDefault(), u.key) {
|
|
719
719
|
case "ArrowDown":
|
|
720
|
-
|
|
720
|
+
p("next");
|
|
721
721
|
break;
|
|
722
722
|
case "ArrowUp":
|
|
723
|
-
|
|
723
|
+
p("prev");
|
|
724
724
|
break;
|
|
725
725
|
case "Home":
|
|
726
|
-
|
|
726
|
+
p("first");
|
|
727
727
|
break;
|
|
728
728
|
case "End":
|
|
729
|
-
|
|
729
|
+
p("last");
|
|
730
730
|
break;
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function p(u) {
|
|
734
734
|
switch (u) {
|
|
735
735
|
case "next":
|
|
736
736
|
case "prev":
|
|
737
|
-
|
|
737
|
+
I(F(u));
|
|
738
738
|
break;
|
|
739
739
|
case "first":
|
|
740
|
-
|
|
740
|
+
I(0);
|
|
741
741
|
break;
|
|
742
742
|
case "last":
|
|
743
|
-
|
|
743
|
+
I(-1);
|
|
744
744
|
break;
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function I(u) {
|
|
748
748
|
var v;
|
|
749
749
|
(v = E().at(u)) == null || v.focus();
|
|
750
750
|
}
|
|
751
751
|
function E() {
|
|
752
752
|
var v;
|
|
753
753
|
const u = (v = c.value) == null ? void 0 : v.querySelectorAll("li");
|
|
754
|
-
return u ? Array.from(u).filter((
|
|
754
|
+
return u ? Array.from(u).filter((x) => x.tabIndex !== -1) : [];
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function z(u) {
|
|
757
757
|
return u.indexOf(document.activeElement);
|
|
758
758
|
}
|
|
759
759
|
function F(u) {
|
|
760
|
-
const
|
|
761
|
-
return u === "next" ? v ===
|
|
760
|
+
const $ = E(), v = z($);
|
|
761
|
+
return u === "next" ? v === $.length - 1 ? v : v + 1 : v === 0 ? 0 : v - 1;
|
|
762
762
|
}
|
|
763
763
|
function M(u) {
|
|
764
|
-
return u ? o.items.filter((
|
|
764
|
+
return u ? o.items.filter(($) => $.group === u) : o.items;
|
|
765
765
|
}
|
|
766
|
-
return
|
|
766
|
+
return A(
|
|
767
767
|
() => o.modelValue,
|
|
768
768
|
(u) => {
|
|
769
|
-
|
|
769
|
+
s.value = u;
|
|
770
770
|
}
|
|
771
|
-
), n({ focusItem:
|
|
771
|
+
), n({ focusItem: I }), (u, $) => (r(), S(ye(a.value), {
|
|
772
772
|
ref_key: "listRef",
|
|
773
773
|
ref: c,
|
|
774
774
|
class: T(["q-list", { "q-list--disabled": o.disabled }]),
|
|
775
775
|
role: "listbox",
|
|
776
776
|
tabindex: o.disabled ? -1 : 0,
|
|
777
|
-
onFocus:
|
|
778
|
-
onKeydown:
|
|
777
|
+
onFocus: h,
|
|
778
|
+
onKeydown: _
|
|
779
779
|
}, {
|
|
780
780
|
default: C(() => [
|
|
781
|
-
(r(!0), f(Q, null, te(l.value, (v) => (r(),
|
|
782
|
-
key: v.
|
|
783
|
-
|
|
781
|
+
(r(!0), f(Q, null, te(l.value, (v) => (r(), S(g(Vt), {
|
|
782
|
+
key: v.id,
|
|
783
|
+
title: v.title,
|
|
784
|
+
disabled: v.disabled
|
|
785
|
+
}, {
|
|
784
786
|
default: C(() => [
|
|
785
|
-
(r(!0), f(Q, null, te(M(v.id), (
|
|
786
|
-
key:
|
|
787
|
-
value:
|
|
788
|
-
label:
|
|
789
|
-
icon:
|
|
790
|
-
disabled: o.disabled ||
|
|
791
|
-
selected:
|
|
787
|
+
(r(!0), f(Q, null, te(M(v.id), (x) => (r(), S(g(Tt), {
|
|
788
|
+
key: x[o.itemValue],
|
|
789
|
+
value: x[o.itemValue],
|
|
790
|
+
label: x[o.itemLabel],
|
|
791
|
+
icon: x.icon,
|
|
792
|
+
disabled: o.disabled || x.disabled,
|
|
793
|
+
selected: s.value === x[o.itemValue],
|
|
792
794
|
onSelect: i
|
|
793
795
|
}, null, 8, ["value", "label", "icon", "disabled", "selected"]))), 128))
|
|
794
796
|
]),
|
|
795
797
|
_: 2
|
|
796
|
-
},
|
|
798
|
+
}, 1032, ["title", "disabled"]))), 128))
|
|
797
799
|
]),
|
|
798
800
|
_: 1
|
|
799
801
|
}, 40, ["class", "tabindex"]));
|
|
800
802
|
}
|
|
801
|
-
}),
|
|
803
|
+
}), $t = ["tabindex", "aria-label", "aria-selected", "onClick"], St = { class: "q-list-item__check-container" }, Bt = {
|
|
802
804
|
check: {
|
|
803
805
|
icon: "check"
|
|
804
806
|
}
|
|
805
|
-
},
|
|
807
|
+
}, Lt = /* @__PURE__ */ k({
|
|
806
808
|
__name: "QListItem",
|
|
807
809
|
props: {
|
|
808
810
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -810,7 +812,7 @@ const bt = /* @__PURE__ */ ht(yt, [["render", gt]]), Pt = k(bt), _t = /* @__PURE
|
|
|
810
812
|
icon: { default: void 0 },
|
|
811
813
|
selected: { type: Boolean, default: !1 },
|
|
812
814
|
highlighted: { type: Boolean, default: !1 },
|
|
813
|
-
icons: { default: () =>
|
|
815
|
+
icons: { default: () => Bt },
|
|
814
816
|
disabled: { type: Boolean, default: !1 }
|
|
815
817
|
},
|
|
816
818
|
emits: ["select"],
|
|
@@ -819,10 +821,10 @@ const bt = /* @__PURE__ */ ht(yt, [["render", gt]]), Pt = k(bt), _t = /* @__PURE
|
|
|
819
821
|
function o() {
|
|
820
822
|
e.disabled || n("select", e.value);
|
|
821
823
|
}
|
|
822
|
-
function a
|
|
823
|
-
|
|
824
|
+
function s(a) {
|
|
825
|
+
a.key === "Tab" && o(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), o());
|
|
824
826
|
}
|
|
825
|
-
return (
|
|
827
|
+
return (a, l) => (r(), f("li", {
|
|
826
828
|
role: "option",
|
|
827
829
|
tabindex: e.disabled ? void 0 : -2,
|
|
828
830
|
class: T([
|
|
@@ -835,82 +837,83 @@ const bt = /* @__PURE__ */ ht(yt, [["render", gt]]), Pt = k(bt), _t = /* @__PURE
|
|
|
835
837
|
]),
|
|
836
838
|
"aria-label": e.label,
|
|
837
839
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
838
|
-
onKeydown:
|
|
840
|
+
onKeydown: s,
|
|
839
841
|
onClick: H(o, ["stop", "prevent"])
|
|
840
842
|
}, [
|
|
841
|
-
e.icon ? (r(),
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
e.icon ? (r(), S(g(N), ve(Z({ key: 0 }, e.icon)), null, 16)) : b("", !0),
|
|
844
|
+
X(" " + V(e.label) + " ", 1),
|
|
845
|
+
K("div", St, [
|
|
846
|
+
e.selected ? (r(), S(g(N), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
|
|
847
|
+
])
|
|
848
|
+
], 42, $t));
|
|
845
849
|
}
|
|
846
850
|
});
|
|
847
|
-
let
|
|
848
|
-
function
|
|
849
|
-
return `uid-${++
|
|
851
|
+
let xt = 0;
|
|
852
|
+
function qt() {
|
|
853
|
+
return `uid-${++xt}`;
|
|
850
854
|
}
|
|
851
|
-
const
|
|
855
|
+
const Dt = ["aria-labelledby"], It = ["id"], Et = /* @__PURE__ */ k({
|
|
852
856
|
__name: "QListItemGroup",
|
|
853
857
|
props: {
|
|
854
|
-
id: { default: () => Bt() },
|
|
855
858
|
title: { default: "" },
|
|
856
859
|
disabled: { type: Boolean, default: !1 }
|
|
857
860
|
},
|
|
858
861
|
setup(t) {
|
|
859
|
-
const n = t;
|
|
860
|
-
return (
|
|
862
|
+
const n = t, e = qt();
|
|
863
|
+
return (o, s) => n.title ? (r(), f("ul", {
|
|
861
864
|
key: 1,
|
|
862
865
|
class: "q-list-item-group",
|
|
863
866
|
role: "group",
|
|
864
|
-
"aria-labelledby":
|
|
867
|
+
"aria-labelledby": g(e)
|
|
865
868
|
}, [
|
|
866
869
|
n.title ? (r(), f("li", {
|
|
867
870
|
key: 0,
|
|
868
|
-
id:
|
|
871
|
+
id: g(e),
|
|
869
872
|
class: "q-list-item-group__title",
|
|
870
873
|
role: "presentation"
|
|
871
|
-
}, V(n.title), 9,
|
|
872
|
-
|
|
873
|
-
], 8,
|
|
874
|
+
}, V(n.title), 9, It)) : b("", !0),
|
|
875
|
+
q(o.$slots, "default")
|
|
876
|
+
], 8, Dt)) : q(o.$slots, "default", { key: 0 });
|
|
874
877
|
}
|
|
875
|
-
}),
|
|
876
|
-
function
|
|
877
|
-
const
|
|
878
|
-
let
|
|
879
|
-
c && !Se(
|
|
880
|
-
const
|
|
881
|
-
switch (
|
|
878
|
+
}), Ct = w(wt), Tt = w(Lt), Vt = w(Et);
|
|
879
|
+
function At(t, n, e = "right", o) {
|
|
880
|
+
const s = t.getBoundingClientRect(), a = s.x + window.scrollX, l = s.y + window.scrollY, c = n == null ? void 0 : n.getBoundingClientRect(), i = (c == null ? void 0 : c.width) ?? 0, h = (c == null ? void 0 : c.height) ?? 0;
|
|
881
|
+
let _ = e;
|
|
882
|
+
c && !Se(s, c, _) && (_ = zt(s, c, _));
|
|
883
|
+
const p = { x: 0, y: 0, placement: _ };
|
|
884
|
+
switch (_) {
|
|
882
885
|
case "top":
|
|
883
|
-
o === "anchor" ?
|
|
886
|
+
o === "anchor" ? p.x = a : p.x = a + (s.width - i) / 2, p.y = l - h;
|
|
884
887
|
break;
|
|
885
888
|
case "bottom":
|
|
886
|
-
o === "anchor" ?
|
|
889
|
+
o === "anchor" ? p.x = a : p.x = a + (s.width - i) / 2, p.y = l + s.height;
|
|
887
890
|
break;
|
|
888
891
|
case "left":
|
|
889
|
-
|
|
892
|
+
p.x = a - i, p.y = l + s.height / 2 - h / 2;
|
|
890
893
|
break;
|
|
891
894
|
case "right":
|
|
892
|
-
|
|
895
|
+
p.x = a + s.width, p.y = l + s.height / 2 - h / 2;
|
|
893
896
|
break;
|
|
894
897
|
}
|
|
895
|
-
return o === "anchor" && (
|
|
898
|
+
return o === "anchor" && s.width >= i && (p.width = s.width), p;
|
|
896
899
|
}
|
|
897
900
|
function Se(t, n, e) {
|
|
898
|
-
let o = !1,
|
|
901
|
+
let o = !1, s = !1;
|
|
899
902
|
switch (e) {
|
|
900
903
|
case "top":
|
|
901
|
-
o = pe(t, n),
|
|
904
|
+
o = pe(t, n), s = t.top > n.height;
|
|
902
905
|
break;
|
|
903
906
|
case "bottom":
|
|
904
|
-
o = pe(t, n),
|
|
907
|
+
o = pe(t, n), s = window.innerHeight - t.top - t.height > n.height;
|
|
905
908
|
break;
|
|
906
909
|
case "left":
|
|
907
|
-
o = t.left > n.width,
|
|
910
|
+
o = t.left > n.width, s = fe(t, n);
|
|
908
911
|
break;
|
|
909
912
|
case "right":
|
|
910
|
-
o = window.innerWidth - t.left - t.width > n.width,
|
|
913
|
+
o = window.innerWidth - t.left - t.width > n.width, s = fe(t, n);
|
|
911
914
|
break;
|
|
912
915
|
}
|
|
913
|
-
return o &&
|
|
916
|
+
return o && s;
|
|
914
917
|
}
|
|
915
918
|
function fe(t, n) {
|
|
916
919
|
return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
|
|
@@ -918,25 +921,26 @@ function fe(t, n) {
|
|
|
918
921
|
function pe(t, n) {
|
|
919
922
|
return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
|
|
920
923
|
}
|
|
921
|
-
function
|
|
924
|
+
function zt(t, n, e) {
|
|
922
925
|
const o = {
|
|
923
926
|
top: ["bottom", "left", "right"],
|
|
924
927
|
bottom: ["top", "left", "right"],
|
|
925
928
|
left: ["right", "top", "bottom"],
|
|
926
929
|
right: ["left", "top", "bottom"]
|
|
927
930
|
};
|
|
928
|
-
for (const
|
|
929
|
-
if (Se(t, n,
|
|
930
|
-
return
|
|
931
|
+
for (const s of o[e])
|
|
932
|
+
if (Se(t, n, s))
|
|
933
|
+
return s;
|
|
931
934
|
return e;
|
|
932
935
|
}
|
|
933
|
-
function
|
|
936
|
+
function Y(t) {
|
|
934
937
|
return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
|
|
935
938
|
}
|
|
936
|
-
const
|
|
939
|
+
const Qt = {
|
|
937
940
|
key: 0,
|
|
938
941
|
class: "q-overlay__arrow"
|
|
939
|
-
},
|
|
942
|
+
}, Ot = /* @__PURE__ */ k({
|
|
943
|
+
inheritAttrs: !1,
|
|
940
944
|
__name: "QOverlay",
|
|
941
945
|
props: {
|
|
942
946
|
modelValue: { type: Boolean },
|
|
@@ -958,23 +962,23 @@ const Vt = {
|
|
|
958
962
|
setup(t, { emit: n }) {
|
|
959
963
|
const e = t, o = y(() => [
|
|
960
964
|
"q-overlay",
|
|
961
|
-
`q-overlay--${
|
|
965
|
+
`q-overlay--${s.placement}`,
|
|
962
966
|
{ "q-overlay--inverted": e.appearance === "inverted" },
|
|
963
967
|
...e.contentClasses
|
|
964
|
-
]),
|
|
968
|
+
]), s = xe({
|
|
965
969
|
visible: e.modelValue,
|
|
966
970
|
top: 0,
|
|
967
971
|
left: 0,
|
|
968
972
|
width: 0,
|
|
969
973
|
placement: e.placement
|
|
970
|
-
}),
|
|
971
|
-
|
|
974
|
+
}), a = y(() => s.visible && !e.disabled);
|
|
975
|
+
A(
|
|
972
976
|
() => e.modelValue,
|
|
973
|
-
() =>
|
|
977
|
+
() => s.visible = e.modelValue
|
|
974
978
|
);
|
|
975
979
|
const l = y(() => {
|
|
976
|
-
let
|
|
977
|
-
switch (
|
|
980
|
+
let m = 0, B = 0;
|
|
981
|
+
switch (s.placement) {
|
|
978
982
|
case "top":
|
|
979
983
|
B = -(e.offset || 0);
|
|
980
984
|
break;
|
|
@@ -982,56 +986,56 @@ const Vt = {
|
|
|
982
986
|
B = e.offset || 0;
|
|
983
987
|
break;
|
|
984
988
|
case "left":
|
|
985
|
-
|
|
989
|
+
m = -(e.offset || 0);
|
|
986
990
|
break;
|
|
987
991
|
case "right":
|
|
988
|
-
|
|
992
|
+
m = e.offset || 0;
|
|
989
993
|
break;
|
|
990
994
|
}
|
|
991
|
-
const
|
|
992
|
-
top: `${
|
|
993
|
-
left: `${
|
|
995
|
+
const O = {
|
|
996
|
+
top: `${s.top + B}px`,
|
|
997
|
+
left: `${s.left + m}px`
|
|
994
998
|
};
|
|
995
|
-
return
|
|
996
|
-
}), c =
|
|
999
|
+
return s.width !== void 0 && ["top", "bottom"].includes(s.placement) && (O.width = `${s.width}px`), O;
|
|
1000
|
+
}), c = D(null);
|
|
997
1001
|
function i() {
|
|
998
|
-
const
|
|
999
|
-
if (
|
|
1000
|
-
const B =
|
|
1001
|
-
|
|
1002
|
+
const m = Y(e.anchor);
|
|
1003
|
+
if (m) {
|
|
1004
|
+
const B = At(m, c.value, e.placement, e.width);
|
|
1005
|
+
s.left = B.x, s.top = B.y, s.width = B.width, s.placement = B.placement;
|
|
1002
1006
|
}
|
|
1003
1007
|
}
|
|
1004
|
-
|
|
1005
|
-
let
|
|
1006
|
-
function
|
|
1007
|
-
const
|
|
1008
|
-
|
|
1008
|
+
A([() => a.value, () => e.placement], i);
|
|
1009
|
+
let h;
|
|
1010
|
+
function _() {
|
|
1011
|
+
const m = e.trigger === "hover" ? e.delay : 0;
|
|
1012
|
+
h || (h = window.setTimeout(() => s.visible = !0, m));
|
|
1009
1013
|
}
|
|
1010
|
-
function
|
|
1011
|
-
clearTimeout(
|
|
1014
|
+
function p() {
|
|
1015
|
+
clearTimeout(h), h = void 0, s.visible = !1;
|
|
1012
1016
|
}
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1017
|
+
function I() {
|
|
1018
|
+
a.value ? p() : _();
|
|
1015
1019
|
}
|
|
1016
1020
|
let E;
|
|
1017
|
-
function
|
|
1021
|
+
function z() {
|
|
1018
1022
|
re(() => {
|
|
1019
|
-
const
|
|
1020
|
-
if (
|
|
1023
|
+
const m = Y(e.anchor);
|
|
1024
|
+
if (m)
|
|
1021
1025
|
switch (e.trigger) {
|
|
1022
1026
|
case "click":
|
|
1023
|
-
|
|
1027
|
+
m.addEventListener("click", I);
|
|
1024
1028
|
break;
|
|
1025
1029
|
case "hover":
|
|
1026
|
-
|
|
1030
|
+
m.addEventListener("mouseenter", _), m.addEventListener("mouseleave", p);
|
|
1027
1031
|
break;
|
|
1028
1032
|
}
|
|
1029
1033
|
});
|
|
1030
1034
|
}
|
|
1031
1035
|
function F() {
|
|
1032
1036
|
re(() => {
|
|
1033
|
-
const
|
|
1034
|
-
|
|
1037
|
+
const m = Y(e.anchor);
|
|
1038
|
+
m && (window.addEventListener("scroll", i), window.addEventListener("resize", i), E = new MutationObserver(i), E.observe(m, {
|
|
1035
1039
|
attributes: !1,
|
|
1036
1040
|
childList: !0,
|
|
1037
1041
|
characterData: !0,
|
|
@@ -1043,51 +1047,51 @@ const Vt = {
|
|
|
1043
1047
|
window.removeEventListener("scroll", i), window.removeEventListener("resize", i), E == null || E.disconnect();
|
|
1044
1048
|
}
|
|
1045
1049
|
let u;
|
|
1046
|
-
function
|
|
1047
|
-
|
|
1050
|
+
function $() {
|
|
1051
|
+
Y(e.anchor) ? (i(), u = window.setTimeout($, 100)) : p();
|
|
1048
1052
|
}
|
|
1049
1053
|
function v() {
|
|
1050
|
-
F(), e.spy &&
|
|
1054
|
+
F(), e.spy && $();
|
|
1051
1055
|
}
|
|
1052
|
-
function
|
|
1056
|
+
function x() {
|
|
1053
1057
|
M(), e.spy && (clearTimeout(u), u = void 0);
|
|
1054
1058
|
}
|
|
1055
|
-
return
|
|
1059
|
+
return qe(x), De(i), A(
|
|
1056
1060
|
() => e.disabled,
|
|
1057
|
-
(
|
|
1058
|
-
|
|
1061
|
+
(m) => {
|
|
1062
|
+
m || z();
|
|
1059
1063
|
},
|
|
1060
1064
|
{ immediate: !0 }
|
|
1061
|
-
),
|
|
1062
|
-
() =>
|
|
1063
|
-
(
|
|
1064
|
-
|
|
1065
|
+
), A(
|
|
1066
|
+
() => a.value,
|
|
1067
|
+
(m) => {
|
|
1068
|
+
m ? v() : x();
|
|
1065
1069
|
},
|
|
1066
1070
|
{ immediate: !0 }
|
|
1067
|
-
), (
|
|
1068
|
-
|
|
1069
|
-
(r(),
|
|
1071
|
+
), (m, B) => (r(), f(Q, null, [
|
|
1072
|
+
q(m.$slots, "trigger", { open: a.value }),
|
|
1073
|
+
(r(), S(Ie, {
|
|
1070
1074
|
to: e.attach
|
|
1071
1075
|
}, [
|
|
1072
|
-
U(
|
|
1076
|
+
U(Ee, {
|
|
1073
1077
|
name: e.transition,
|
|
1074
1078
|
appear: "",
|
|
1075
|
-
onEnter: B[0] || (B[0] = (
|
|
1076
|
-
onLeave: B[1] || (B[1] = (
|
|
1079
|
+
onEnter: B[0] || (B[0] = (O) => n("enter")),
|
|
1080
|
+
onLeave: B[1] || (B[1] = (O) => n("leave"))
|
|
1077
1081
|
}, {
|
|
1078
1082
|
default: C(() => [
|
|
1079
|
-
|
|
1083
|
+
a.value ? (r(), f("div", {
|
|
1080
1084
|
key: 0,
|
|
1081
1085
|
class: T(o.value),
|
|
1082
|
-
style:
|
|
1086
|
+
style: W(l.value)
|
|
1083
1087
|
}, [
|
|
1084
|
-
|
|
1088
|
+
K("div", {
|
|
1085
1089
|
class: T(["q-overlay__content"]),
|
|
1086
1090
|
ref_key: "overlay",
|
|
1087
1091
|
ref: c
|
|
1088
1092
|
}, [
|
|
1089
|
-
e.arrow ? (r(), f("div",
|
|
1090
|
-
|
|
1093
|
+
e.arrow ? (r(), f("div", Qt)) : b("", !0),
|
|
1094
|
+
q(m.$slots, "default")
|
|
1091
1095
|
], 512)
|
|
1092
1096
|
], 6)) : b("", !0)
|
|
1093
1097
|
]),
|
|
@@ -1096,13 +1100,14 @@ const Vt = {
|
|
|
1096
1100
|
], 8, ["to"]))
|
|
1097
1101
|
], 64));
|
|
1098
1102
|
}
|
|
1099
|
-
}),
|
|
1103
|
+
}), se = w(Ot), Ft = {
|
|
1100
1104
|
key: 0,
|
|
1101
1105
|
class: "q-popover__header"
|
|
1102
|
-
},
|
|
1106
|
+
}, Mt = {
|
|
1103
1107
|
key: 1,
|
|
1104
1108
|
class: "q-popover__body"
|
|
1105
|
-
},
|
|
1109
|
+
}, Rt = ["innerHTML"], Ht = { key: 1 }, Ut = /* @__PURE__ */ k({
|
|
1110
|
+
inheritAttrs: !1,
|
|
1106
1111
|
__name: "QPopover",
|
|
1107
1112
|
props: {
|
|
1108
1113
|
modelValue: { type: Boolean },
|
|
@@ -1118,7 +1123,7 @@ const Vt = {
|
|
|
1118
1123
|
},
|
|
1119
1124
|
setup(t) {
|
|
1120
1125
|
const n = t;
|
|
1121
|
-
return (e, o) => (r(),
|
|
1126
|
+
return (e, o) => (r(), S(g(se), {
|
|
1122
1127
|
"model-value": n.modelValue,
|
|
1123
1128
|
trigger: "click",
|
|
1124
1129
|
anchor: n.anchor,
|
|
@@ -1130,22 +1135,27 @@ const Vt = {
|
|
|
1130
1135
|
spy: n.spy
|
|
1131
1136
|
}, {
|
|
1132
1137
|
default: C(() => [
|
|
1133
|
-
n.title || e.$slots.header ? (r(), f("h3",
|
|
1134
|
-
|
|
1135
|
-
|
|
1138
|
+
n.title || e.$slots.header ? (r(), f("h3", Ft, [
|
|
1139
|
+
X(V(n.title) + " ", 1),
|
|
1140
|
+
q(e.$slots, "header")
|
|
1136
1141
|
])) : b("", !0),
|
|
1137
|
-
n.text || e.$slots.body ? (r(), f("div",
|
|
1142
|
+
n.text || e.$slots.body ? (r(), f("div", Mt, [
|
|
1138
1143
|
n.html ? (r(), f("span", {
|
|
1139
1144
|
key: 0,
|
|
1140
1145
|
innerHTML: n.text
|
|
1141
|
-
}, null, 8,
|
|
1142
|
-
|
|
1146
|
+
}, null, 8, Rt)) : (r(), f("span", Ht, V(n.text), 1)),
|
|
1147
|
+
q(e.$slots, "body")
|
|
1143
1148
|
])) : b("", !0)
|
|
1144
1149
|
]),
|
|
1145
1150
|
_: 3
|
|
1146
1151
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
1147
1152
|
}
|
|
1148
|
-
}),
|
|
1153
|
+
}), an = w(Ut);
|
|
1154
|
+
function Nt() {
|
|
1155
|
+
const t = Ce(), n = {};
|
|
1156
|
+
return typeof t.class == "string" ? n.class = t.class.split(" ") : Array.isArray(t.class) ? n.class = t.class : n.class = [], n;
|
|
1157
|
+
}
|
|
1158
|
+
const Kt = {
|
|
1149
1159
|
mounted(t, n) {
|
|
1150
1160
|
t.clickOutsideEvent = function(e) {
|
|
1151
1161
|
const o = e.target;
|
|
@@ -1155,19 +1165,23 @@ const Vt = {
|
|
|
1155
1165
|
unmounted(t) {
|
|
1156
1166
|
document.removeEventListener("click", t.clickOutsideEvent);
|
|
1157
1167
|
}
|
|
1158
|
-
},
|
|
1168
|
+
}, Wt = {
|
|
1169
|
+
key: 0,
|
|
1170
|
+
class: "q-select__value"
|
|
1171
|
+
}, Gt = {
|
|
1159
1172
|
key: 1,
|
|
1160
1173
|
class: "q-select__placeholder"
|
|
1161
|
-
},
|
|
1174
|
+
}, Yt = {
|
|
1162
1175
|
placeholder: "Choose..."
|
|
1163
|
-
},
|
|
1176
|
+
}, Xt = {
|
|
1164
1177
|
chevron: {
|
|
1165
1178
|
icon: "chevron-down"
|
|
1166
1179
|
},
|
|
1167
1180
|
clear: {
|
|
1168
1181
|
icon: "close"
|
|
1169
1182
|
}
|
|
1170
|
-
},
|
|
1183
|
+
}, Zt = /* @__PURE__ */ k({
|
|
1184
|
+
inheritAttrs: !1,
|
|
1171
1185
|
__name: "QSelect",
|
|
1172
1186
|
props: {
|
|
1173
1187
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1175,87 +1189,87 @@ const Vt = {
|
|
|
1175
1189
|
readonly: { type: Boolean },
|
|
1176
1190
|
disabled: { type: Boolean, default: !1 },
|
|
1177
1191
|
loading: { type: Boolean, default: !1 },
|
|
1178
|
-
icons: { default: () =>
|
|
1192
|
+
icons: { default: () => Xt },
|
|
1179
1193
|
items: {},
|
|
1180
1194
|
groups: { default: () => [] },
|
|
1181
1195
|
itemValue: { default: "key" },
|
|
1182
1196
|
itemLabel: { default: "label" },
|
|
1183
1197
|
size: { default: "medium" },
|
|
1184
|
-
texts: { default: () =>
|
|
1198
|
+
texts: { default: () => Yt }
|
|
1185
1199
|
},
|
|
1186
1200
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1187
1201
|
setup(t, { emit: n }) {
|
|
1188
|
-
const e = t, o =
|
|
1202
|
+
const e = t, o = Nt(), s = D(e.modelValue), a = D(!1), l = D(""), c = D(null), i = D(null), h = D(null), _ = y(
|
|
1189
1203
|
() => {
|
|
1190
1204
|
var d;
|
|
1191
|
-
return (d = e.items) == null ? void 0 : d.find((L) => L[e.itemValue] ===
|
|
1205
|
+
return (d = e.items) == null ? void 0 : d.find((L) => L[e.itemValue] === s.value);
|
|
1192
1206
|
}
|
|
1193
|
-
),
|
|
1194
|
-
() =>
|
|
1195
|
-
),
|
|
1207
|
+
), p = y(
|
|
1208
|
+
() => _.value ? _.value[e.itemLabel] : ""
|
|
1209
|
+
), I = y(
|
|
1196
1210
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1197
1211
|
);
|
|
1198
|
-
function
|
|
1199
|
-
|
|
1212
|
+
function E(d) {
|
|
1213
|
+
s.value = d, n("update:modelValue", d), $();
|
|
1200
1214
|
}
|
|
1201
|
-
function
|
|
1202
|
-
|
|
1215
|
+
function z() {
|
|
1216
|
+
I.value && E(void 0);
|
|
1203
1217
|
}
|
|
1204
|
-
function
|
|
1205
|
-
e.readonly || e.disabled || (a.value ?
|
|
1218
|
+
function F() {
|
|
1219
|
+
e.readonly || e.disabled || (a.value ? $() : u());
|
|
1206
1220
|
}
|
|
1207
|
-
function
|
|
1221
|
+
function M(d) {
|
|
1208
1222
|
var L;
|
|
1209
|
-
(L =
|
|
1223
|
+
(L = c.value) != null && L.$el.contains(d.target) || $();
|
|
1210
1224
|
}
|
|
1211
|
-
function
|
|
1225
|
+
function u() {
|
|
1212
1226
|
a.value || (n("before-show"), a.value = !0);
|
|
1213
1227
|
}
|
|
1214
|
-
function
|
|
1228
|
+
function $() {
|
|
1215
1229
|
a.value && (n("before-hide"), a.value = !1);
|
|
1216
1230
|
}
|
|
1217
|
-
let
|
|
1218
|
-
function
|
|
1231
|
+
let v;
|
|
1232
|
+
function x(d) {
|
|
1219
1233
|
if (!(!d.key || e.readonly || e.disabled)) {
|
|
1220
|
-
if (window.clearTimeout(
|
|
1221
|
-
|
|
1234
|
+
if (window.clearTimeout(v), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (a.value = !0), ["Escape", "Tab"].includes(d.key) && (a.value ? a.value = !1 : e.clearable && d.key === "Escape" && z()), d.key === "Delete" && e.clearable && z(), /^[a-z]$/i.test(d.key)) {
|
|
1235
|
+
l.value += d.key.toLowerCase();
|
|
1222
1236
|
for (let L = 0; L < e.items.length; L++)
|
|
1223
|
-
if (e.items[L][e.itemLabel].toLowerCase().startsWith(
|
|
1224
|
-
|
|
1237
|
+
if (e.items[L][e.itemLabel].toLowerCase().startsWith(l.value)) {
|
|
1238
|
+
Be(L);
|
|
1225
1239
|
break;
|
|
1226
1240
|
}
|
|
1227
1241
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1242
|
+
v = window.setTimeout(function() {
|
|
1243
|
+
l.value = "";
|
|
1230
1244
|
}, 500);
|
|
1231
1245
|
}
|
|
1232
1246
|
}
|
|
1233
|
-
function
|
|
1247
|
+
function m() {
|
|
1234
1248
|
var d;
|
|
1235
|
-
(d =
|
|
1236
|
-
}
|
|
1237
|
-
function h() {
|
|
1238
|
-
B(), n("hide");
|
|
1249
|
+
(d = i.value) == null || d.$el.focus(), n("show");
|
|
1239
1250
|
}
|
|
1240
1251
|
function B() {
|
|
1252
|
+
O(), n("hide");
|
|
1253
|
+
}
|
|
1254
|
+
function O() {
|
|
1241
1255
|
var d;
|
|
1242
|
-
(d =
|
|
1256
|
+
(d = c.value) == null || d.$el.focus();
|
|
1243
1257
|
}
|
|
1244
|
-
function
|
|
1258
|
+
function Be(d) {
|
|
1245
1259
|
var L;
|
|
1246
|
-
(L =
|
|
1260
|
+
(L = i.value) == null || L.focusItem(d);
|
|
1247
1261
|
}
|
|
1248
|
-
return
|
|
1262
|
+
return A(
|
|
1249
1263
|
() => e.modelValue,
|
|
1250
1264
|
(d) => {
|
|
1251
|
-
|
|
1265
|
+
s.value = d;
|
|
1252
1266
|
}
|
|
1253
1267
|
), (d, L) => {
|
|
1254
|
-
var J,
|
|
1268
|
+
var J, ae;
|
|
1255
1269
|
return r(), f(Q, null, [
|
|
1256
|
-
U(g(
|
|
1270
|
+
U(g(yt), {
|
|
1257
1271
|
ref_key: "inputRef",
|
|
1258
|
-
ref:
|
|
1272
|
+
ref: c,
|
|
1259
1273
|
role: "combobox",
|
|
1260
1274
|
tabindex: "0",
|
|
1261
1275
|
class: T([
|
|
@@ -1264,82 +1278,81 @@ const Vt = {
|
|
|
1264
1278
|
"q-select--readonly": e.readonly,
|
|
1265
1279
|
"q-select--disabled": e.disabled,
|
|
1266
1280
|
"q-select--expanded": a.value
|
|
1267
|
-
}
|
|
1281
|
+
},
|
|
1282
|
+
...g(o).class
|
|
1268
1283
|
]),
|
|
1269
1284
|
readonly: "",
|
|
1270
1285
|
disabled: e.disabled,
|
|
1271
1286
|
"aria-expanded": a.value,
|
|
1272
1287
|
"aria-haspopup": "listbox",
|
|
1273
1288
|
size: e.size,
|
|
1274
|
-
onClick:
|
|
1275
|
-
onKeydown: H(
|
|
1276
|
-
},
|
|
1289
|
+
onClick: F,
|
|
1290
|
+
onKeydown: H(x, ["stop"])
|
|
1291
|
+
}, Te({
|
|
1277
1292
|
append: C(() => [
|
|
1278
|
-
|
|
1293
|
+
I.value && s.value ? (r(), S(g(N), Z({ key: 0 }, e.icons.clear, {
|
|
1279
1294
|
class: "q-select__clear",
|
|
1280
|
-
onClick: H(
|
|
1295
|
+
onClick: H(z, ["stop", "prevent"])
|
|
1281
1296
|
}), null, 16, ["onClick"])) : b("", !0),
|
|
1282
|
-
!e.readonly && !e.disabled ? (r(),
|
|
1297
|
+
!e.readonly && !e.disabled ? (r(), S(g(N), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : b("", !0)
|
|
1283
1298
|
]),
|
|
1284
1299
|
default: C(() => [
|
|
1285
|
-
|
|
1286
|
-
K(V($.value), 1)
|
|
1287
|
-
], 64)) : (r(), f("span", Ht, V(d.texts.placeholder), 1))
|
|
1300
|
+
s.value ? (r(), f("span", Wt, V(p.value), 1)) : (r(), f("span", Gt, V(d.texts.placeholder), 1))
|
|
1288
1301
|
]),
|
|
1289
1302
|
_: 2
|
|
1290
1303
|
}, [
|
|
1291
|
-
(J =
|
|
1304
|
+
(J = _.value) != null && J.icon ? {
|
|
1292
1305
|
name: "prepend",
|
|
1293
1306
|
fn: C(() => {
|
|
1294
|
-
var
|
|
1307
|
+
var G;
|
|
1295
1308
|
return [
|
|
1296
|
-
U(g(N), ve(
|
|
1309
|
+
U(g(N), ve(Ve((G = _.value) == null ? void 0 : G.icon)), null, 16)
|
|
1297
1310
|
];
|
|
1298
1311
|
}),
|
|
1299
1312
|
key: "0"
|
|
1300
1313
|
} : void 0
|
|
1301
1314
|
]), 1032, ["class", "disabled", "aria-expanded", "size", "onKeydown"]),
|
|
1302
|
-
U(g(
|
|
1315
|
+
U(g(se), {
|
|
1303
1316
|
"model-value": a.value,
|
|
1304
1317
|
spy: "",
|
|
1305
1318
|
trigger: "manual",
|
|
1306
1319
|
placement: "bottom",
|
|
1307
1320
|
width: "anchor",
|
|
1308
1321
|
offset: 2,
|
|
1309
|
-
anchor: (
|
|
1310
|
-
onEnter:
|
|
1311
|
-
onLeave:
|
|
1322
|
+
anchor: (ae = c.value) == null ? void 0 : ae.$el,
|
|
1323
|
+
onEnter: m,
|
|
1324
|
+
onLeave: B
|
|
1312
1325
|
}, {
|
|
1313
1326
|
default: C(() => [
|
|
1314
|
-
|
|
1327
|
+
Ae((r(), f("div", {
|
|
1315
1328
|
ref_key: "contentRef",
|
|
1316
|
-
ref:
|
|
1329
|
+
ref: h,
|
|
1317
1330
|
class: "q-select__body"
|
|
1318
1331
|
}, [
|
|
1319
|
-
|
|
1320
|
-
e.loading ? (r(),
|
|
1332
|
+
q(d.$slots, "body.prepend"),
|
|
1333
|
+
e.loading ? (r(), S(g($e), {
|
|
1321
1334
|
key: 0,
|
|
1322
1335
|
class: "q-select__loader",
|
|
1323
1336
|
size: 24
|
|
1324
|
-
})) : (r(),
|
|
1337
|
+
})) : (r(), S(g(Ct), {
|
|
1325
1338
|
key: 1,
|
|
1326
1339
|
ref_key: "listRef",
|
|
1327
|
-
ref:
|
|
1340
|
+
ref: i,
|
|
1328
1341
|
class: "q-select__items",
|
|
1329
|
-
modelValue:
|
|
1342
|
+
modelValue: s.value,
|
|
1330
1343
|
"onUpdate:modelValue": [
|
|
1331
|
-
L[0] || (L[0] = (
|
|
1332
|
-
|
|
1344
|
+
L[0] || (L[0] = (G) => s.value = G),
|
|
1345
|
+
E
|
|
1333
1346
|
],
|
|
1334
1347
|
items: e.items,
|
|
1335
1348
|
groups: d.groups,
|
|
1336
1349
|
"item-label": e.itemLabel,
|
|
1337
1350
|
"item-value": e.itemValue,
|
|
1338
|
-
onKeydown: H(
|
|
1351
|
+
onKeydown: H(x, ["stop"])
|
|
1339
1352
|
}, null, 8, ["modelValue", "items", "groups", "item-label", "item-value", "onKeydown"])),
|
|
1340
|
-
|
|
1353
|
+
q(d.$slots, "body.append")
|
|
1341
1354
|
])), [
|
|
1342
|
-
[g(
|
|
1355
|
+
[g(Kt), M]
|
|
1343
1356
|
])
|
|
1344
1357
|
]),
|
|
1345
1358
|
_: 3
|
|
@@ -1347,7 +1360,8 @@ const Vt = {
|
|
|
1347
1360
|
], 64);
|
|
1348
1361
|
};
|
|
1349
1362
|
}
|
|
1350
|
-
}),
|
|
1363
|
+
}), ln = w(Zt), jt = ["innerHTML"], Jt = { key: 1 }, Pt = /* @__PURE__ */ k({
|
|
1364
|
+
inheritAttrs: !1,
|
|
1351
1365
|
__name: "QTooltip",
|
|
1352
1366
|
props: {
|
|
1353
1367
|
modelValue: { type: Boolean },
|
|
@@ -1364,7 +1378,7 @@ const Vt = {
|
|
|
1364
1378
|
},
|
|
1365
1379
|
setup(t) {
|
|
1366
1380
|
const n = t;
|
|
1367
|
-
return (e, o) => (r(),
|
|
1381
|
+
return (e, o) => (r(), S(g(se), {
|
|
1368
1382
|
"model-value": n.modelValue,
|
|
1369
1383
|
anchor: n.anchor,
|
|
1370
1384
|
appearance: n.appearance,
|
|
@@ -1380,34 +1394,34 @@ const Vt = {
|
|
|
1380
1394
|
n.html ? (r(), f("span", {
|
|
1381
1395
|
key: 0,
|
|
1382
1396
|
innerHTML: n.text
|
|
1383
|
-
}, null, 8,
|
|
1397
|
+
}, null, 8, jt)) : (r(), f("span", Jt, V(n.text), 1))
|
|
1384
1398
|
]),
|
|
1385
1399
|
_: 1
|
|
1386
1400
|
}, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
|
|
1387
1401
|
}
|
|
1388
|
-
}),
|
|
1402
|
+
}), rn = w(Pt);
|
|
1389
1403
|
export {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1404
|
+
Je as QButton,
|
|
1405
|
+
et as QButtonGroup,
|
|
1406
|
+
on as QButtonToggle,
|
|
1393
1407
|
N as QIcon,
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1408
|
+
ut as QIconFont,
|
|
1409
|
+
dt as QIconImg,
|
|
1410
|
+
ft as QIconSvg,
|
|
1411
|
+
yt as QInput,
|
|
1412
|
+
sn as QLineLoader,
|
|
1413
|
+
Ct as QList,
|
|
1414
|
+
Tt as QListItem,
|
|
1415
|
+
Vt as QListItemGroup,
|
|
1416
|
+
se as QOverlay,
|
|
1417
|
+
an as QPopover,
|
|
1418
|
+
ln as QSelect,
|
|
1405
1419
|
$e as QSpinnerLoader,
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1420
|
+
rn as QTooltip,
|
|
1421
|
+
Kt as clickOutside,
|
|
1422
|
+
nn as createFramework,
|
|
1423
|
+
Oe as defaultDarkColorScheme,
|
|
1410
1424
|
ce as defaultLightColorScheme,
|
|
1411
|
-
|
|
1425
|
+
tn as useTheme
|
|
1412
1426
|
};
|
|
1413
1427
|
//# sourceMappingURL=ui.esm.js.map
|