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