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