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