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