@quidgest/ui 0.14.9 → 0.14.11
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/manifest/components.json +1 -0
- package/dist/ui.css +30 -4
- package/dist/ui.esm.js +1228 -1028
- package/dist/ui.js +22 -22
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +90 -74
- package/dist/ui.scss +30 -5
- package/esm/components/QCombobox/QCombobox.d.ts +5 -0
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts +16 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.vue.js +38 -0
- package/esm/components/QDropdownMenu/QDropdownMenu.vue2.js +4 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +148 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +153 -0
- package/esm/components/QDropdownMenu/QDropdownMenuContent.vue2.js +4 -0
- package/esm/components/QDropdownMenu/index.d.ts +4 -0
- package/esm/components/QDropdownMenu/index.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/index.js +6 -0
- package/esm/components/QDropdownMenu/types.d.ts +95 -0
- package/esm/components/QDropdownMenu/types.d.ts.map +1 -0
- package/esm/components/QDropdownMenu/types.js +8 -0
- package/esm/components/QList/QList.d.ts +74 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +118 -100
- package/esm/components/QList/QListItem.d.ts +2 -0
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +32 -30
- package/esm/components/QList/types.d.ts +0 -7
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +1 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +87 -82
- package/esm/components/QOverlay/types.d.ts +4 -0
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +5 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +44 -42
- package/esm/composables/overlay.d.ts +4 -0
- package/esm/composables/overlay.d.ts.map +1 -1
- package/esm/composables/overlay.js +69 -62
- package/esm/index.d.ts +1 -0
- package/package.json +2 -33
- /package/{LICENSE.md → LICENSE} +0 -0
package/dist/ui.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getCurrentInstance as Je, computed as y, ref as
|
|
1
|
+
import { getCurrentInstance as Je, computed as y, ref as V, provide as Me, inject as ze, watch as ne, defineComponent as S, mergeModels as G, toRef as Ae, useModel as j, openBlock as u, createElementBlock as m, renderSlot as p, normalizeClass as A, normalizeStyle as fe, withModifiers as re, createVNode as O, unref as h, createCommentVNode as $, createElementVNode as w, Fragment as R, createTextVNode as de, toDisplayString as Q, createBlock as I, resolveDynamicComponent as Le, h as He, withCtx as _, normalizeProps as J, guardReactiveProps as se, renderList as ve, useAttrs as bt, createSlots as ye, withKeys as Ee, mergeProps as X, onMounted as Oe, onUnmounted as gt, reactive as Ke, nextTick as oe, onBeforeUnmount as _t, Teleport as $t, Transition as kt, withDirectives as wt, vModelDynamic as qt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.11
|
|
4
4
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const De = {
|
|
8
8
|
primary: "#008ad2",
|
|
9
9
|
primaryLight: "#cde5ff",
|
|
10
10
|
primaryDark: "#006398",
|
|
@@ -66,15 +66,15 @@ const Ee = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
71
|
defaultDarkColorScheme: et,
|
|
72
|
-
defaultLightColorScheme:
|
|
72
|
+
defaultLightColorScheme: De
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
74
|
function Qe(n) {
|
|
75
75
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function We(n) {
|
|
78
78
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
79
79
|
}
|
|
80
80
|
function Fe(n = {}, t = {}) {
|
|
@@ -83,7 +83,7 @@ function Fe(n = {}, t = {}) {
|
|
|
83
83
|
e[l] = n[l];
|
|
84
84
|
for (const l in t) {
|
|
85
85
|
const o = n[l], s = t[l];
|
|
86
|
-
if (
|
|
86
|
+
if (We(o) && We(s)) {
|
|
87
87
|
e[l] = Fe(
|
|
88
88
|
o,
|
|
89
89
|
s
|
|
@@ -94,7 +94,7 @@ function Fe(n = {}, t = {}) {
|
|
|
94
94
|
}
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const Pe = "q-defaults";
|
|
98
98
|
function xt() {
|
|
99
99
|
var s, a;
|
|
100
100
|
const n = Je();
|
|
@@ -105,34 +105,34 @@ function xt() {
|
|
|
105
105
|
const e = tt(), l = (s = e.value) == null ? void 0 : s.Global, o = (a = e.value) == null ? void 0 : a[t];
|
|
106
106
|
return y(() => Fe(l, o));
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ue(n) {
|
|
109
109
|
if (Qe(n)) return;
|
|
110
|
-
const t = tt(), e =
|
|
111
|
-
|
|
110
|
+
const t = tt(), e = V(n), l = y(() => Qe(e.value) ? t.value : Fe(t.value, e.value));
|
|
111
|
+
Me(Pe, l);
|
|
112
112
|
}
|
|
113
113
|
function tt() {
|
|
114
|
-
const n = ze(
|
|
114
|
+
const n = ze(Pe, void 0);
|
|
115
115
|
if (!n) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
116
116
|
return n;
|
|
117
117
|
}
|
|
118
118
|
const nt = "q-group";
|
|
119
|
-
function
|
|
119
|
+
function Lt(n) {
|
|
120
120
|
var e, l;
|
|
121
121
|
const t = {
|
|
122
|
-
active:
|
|
122
|
+
active: V(((e = n.active) == null ? void 0 : e.value) ?? ((l = n.multiple) == null ? void 0 : l.value) ? [] : null),
|
|
123
123
|
multiple: y(() => {
|
|
124
124
|
var o;
|
|
125
125
|
return ((o = n.multiple) == null ? void 0 : o.value) || !1;
|
|
126
126
|
})
|
|
127
127
|
};
|
|
128
|
-
return
|
|
128
|
+
return ne(
|
|
129
129
|
() => t.multiple.value,
|
|
130
130
|
(o) => {
|
|
131
131
|
o && t.active.value ? t.active.value = [t.active.value] : o ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
|
|
132
132
|
}
|
|
133
|
-
),
|
|
133
|
+
), Me(nt, t), t;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function It(n) {
|
|
136
136
|
const t = ze(nt, void 0);
|
|
137
137
|
if (!t) return;
|
|
138
138
|
const e = y(() => {
|
|
@@ -144,7 +144,7 @@ function Lt(n) {
|
|
|
144
144
|
Array.isArray(t.active.value) ? e.value ? t.active.value = (o = t.active.value) == null ? void 0 : o.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
|
|
145
145
|
} };
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const St = { class: "q-accordion" }, Bt = /* @__PURE__ */ S({
|
|
148
148
|
__name: "QAccordion",
|
|
149
149
|
props: /* @__PURE__ */ G({
|
|
150
150
|
variant: {}
|
|
@@ -154,13 +154,13 @@ const Bt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
|
|
|
154
154
|
}),
|
|
155
155
|
emits: ["update:modelValue"],
|
|
156
156
|
setup(n) {
|
|
157
|
-
|
|
157
|
+
Ue({
|
|
158
158
|
QCollapsible: {
|
|
159
|
-
variant:
|
|
159
|
+
variant: Ae(n, "variant")
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
const e =
|
|
163
|
-
return
|
|
162
|
+
const e = j(n, "modelValue");
|
|
163
|
+
return Lt({ active: e }), (l, o) => (u(), m("div", St, [
|
|
164
164
|
p(l.$slots, "default")
|
|
165
165
|
]));
|
|
166
166
|
}
|
|
@@ -168,12 +168,12 @@ const Bt = { class: "q-accordion" }, Ct = /* @__PURE__ */ C({
|
|
|
168
168
|
function lt(n) {
|
|
169
169
|
return n.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();
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ct(n, t) {
|
|
172
172
|
var l;
|
|
173
173
|
const e = lt(t);
|
|
174
174
|
return e ? typeof ((l = n.props) == null ? void 0 : l[e]) < "u" : !1;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function C(n) {
|
|
177
177
|
const t = n.setup;
|
|
178
178
|
return t && (n.setup = (e, l) => {
|
|
179
179
|
const o = xt();
|
|
@@ -181,16 +181,16 @@ function I(n) {
|
|
|
181
181
|
const s = Je();
|
|
182
182
|
if (s === null) return t(e, l);
|
|
183
183
|
const a = new Proxy(e, {
|
|
184
|
-
get(d,
|
|
185
|
-
var
|
|
186
|
-
const
|
|
187
|
-
return typeof
|
|
184
|
+
get(d, i) {
|
|
185
|
+
var k;
|
|
186
|
+
const c = Reflect.get(d, i), v = (k = o.value) == null ? void 0 : k[i];
|
|
187
|
+
return typeof i == "string" && !Ct(s.vnode, i) ? v ?? c : c;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
return t(a, l);
|
|
191
191
|
}), n;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const Vt = C(Bt), Tt = /* @__PURE__ */ S({
|
|
194
194
|
__name: "QSpinnerLoader",
|
|
195
195
|
props: {
|
|
196
196
|
size: { default: 48 },
|
|
@@ -200,15 +200,15 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
200
200
|
const t = n, e = y(() => ({
|
|
201
201
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
202
202
|
}));
|
|
203
|
-
return (l, o) => (
|
|
204
|
-
class:
|
|
203
|
+
return (l, o) => (u(), m("div", {
|
|
204
|
+
class: A(["q-spinner-loader", t.class]),
|
|
205
205
|
style: fe(e.value)
|
|
206
206
|
}, null, 6));
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), ke = C(Tt), At = ["disabled"], Et = {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "q-btn__spinner"
|
|
211
|
-
},
|
|
211
|
+
}, Dt = { class: "q-btn__content" }, Qt = /* @__PURE__ */ S({
|
|
212
212
|
__name: "QButton",
|
|
213
213
|
props: {
|
|
214
214
|
active: { type: Boolean },
|
|
@@ -245,27 +245,27 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
245
245
|
e.class
|
|
246
246
|
];
|
|
247
247
|
});
|
|
248
|
-
return (d,
|
|
248
|
+
return (d, i) => (u(), m("button", {
|
|
249
249
|
type: "button",
|
|
250
|
-
class:
|
|
250
|
+
class: A(a.value),
|
|
251
251
|
disabled: o.value,
|
|
252
|
-
onClick:
|
|
252
|
+
onClick: re(s, ["stop", "prevent"])
|
|
253
253
|
}, [
|
|
254
|
-
d.loading ? (
|
|
255
|
-
|
|
256
|
-
])) :
|
|
257
|
-
|
|
258
|
-
d.iconOnRight ? (
|
|
259
|
-
|
|
260
|
-
], 64)) :
|
|
254
|
+
d.loading ? (u(), m("div", Et, [
|
|
255
|
+
O(h(ke), { size: 20 })
|
|
256
|
+
])) : $("", !0),
|
|
257
|
+
w("span", Dt, [
|
|
258
|
+
d.iconOnRight ? (u(), m(R, { key: 0 }, [
|
|
259
|
+
de(Q(e.label), 1)
|
|
260
|
+
], 64)) : $("", !0),
|
|
261
261
|
p(d.$slots, "default"),
|
|
262
|
-
d.iconOnRight ?
|
|
263
|
-
|
|
262
|
+
d.iconOnRight ? $("", !0) : (u(), m(R, { key: 1 }, [
|
|
263
|
+
de(Q(e.label), 1)
|
|
264
264
|
], 64))
|
|
265
265
|
])
|
|
266
266
|
], 10, At));
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), ae = C(Qt), Mt = /* @__PURE__ */ S({
|
|
269
269
|
__name: "QIcon",
|
|
270
270
|
props: {
|
|
271
271
|
icon: {},
|
|
@@ -286,13 +286,13 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
return (l, o) => (
|
|
290
|
-
class:
|
|
289
|
+
return (l, o) => (u(), I(Le(e.value), {
|
|
290
|
+
class: A(t.class),
|
|
291
291
|
icon: t.icon,
|
|
292
292
|
size: t.size
|
|
293
293
|
}, null, 8, ["class", "icon", "size"]));
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
295
|
+
}), zt = /* @__PURE__ */ S({
|
|
296
296
|
__name: "QIconFont",
|
|
297
297
|
props: {
|
|
298
298
|
icon: {},
|
|
@@ -305,12 +305,12 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
305
305
|
const t = n, e = y(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = y(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), o = y(() => ({
|
|
306
306
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
307
307
|
}));
|
|
308
|
-
return (s, a) => (
|
|
309
|
-
class:
|
|
308
|
+
return (s, a) => (u(), m("i", {
|
|
309
|
+
class: A(["q-icon", "q-icon__font", e.value, l.value, t.class]),
|
|
310
310
|
style: fe(o.value)
|
|
311
311
|
}, null, 6));
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), Ot = ["src"], Ft = /* @__PURE__ */ S({
|
|
314
314
|
__name: "QIconImg",
|
|
315
315
|
props: {
|
|
316
316
|
icon: {},
|
|
@@ -321,13 +321,13 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
321
321
|
const t = n, e = y(() => ({
|
|
322
322
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
323
323
|
}));
|
|
324
|
-
return (l, o) => (
|
|
324
|
+
return (l, o) => (u(), m("img", {
|
|
325
325
|
src: t.icon,
|
|
326
|
-
class:
|
|
326
|
+
class: A(["q-icon", "q-icon__img", t.class]),
|
|
327
327
|
style: fe(e.value)
|
|
328
|
-
}, null, 14,
|
|
328
|
+
}, null, 14, Ot));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), _e = {}, Pt = S({
|
|
331
331
|
name: "InlineSvg",
|
|
332
332
|
emits: {
|
|
333
333
|
loaded: (n) => typeof n == "object",
|
|
@@ -408,11 +408,11 @@ const Tt = I(Ct), Vt = /* @__PURE__ */ C({
|
|
|
408
408
|
*/
|
|
409
409
|
async getSource(n) {
|
|
410
410
|
try {
|
|
411
|
-
|
|
412
|
-
const t = await
|
|
411
|
+
_e[n] || (_e[n] = Nt(this.download(n))), this.svgElSource && _e[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
412
|
+
const t = await _e[n];
|
|
413
413
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
414
414
|
} catch (t) {
|
|
415
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
415
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete _e[n], this.$emit("error", t);
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
@@ -455,7 +455,7 @@ function Nt(n) {
|
|
|
455
455
|
);
|
|
456
456
|
return e.getIsPending = () => t, e;
|
|
457
457
|
}
|
|
458
|
-
const Rt = /* @__PURE__ */
|
|
458
|
+
const Rt = /* @__PURE__ */ S({
|
|
459
459
|
__name: "QIconSvg",
|
|
460
460
|
props: {
|
|
461
461
|
icon: {},
|
|
@@ -474,8 +474,8 @@ const Rt = /* @__PURE__ */ C({
|
|
|
474
474
|
function a() {
|
|
475
475
|
l("unloaded");
|
|
476
476
|
}
|
|
477
|
-
return (d,
|
|
478
|
-
class:
|
|
477
|
+
return (d, i) => (u(), I(h(Pt), {
|
|
478
|
+
class: A(["q-icon", "q-icon__svg", e.class]),
|
|
479
479
|
src: e.bundle,
|
|
480
480
|
symbol: e.icon,
|
|
481
481
|
style: fe(o.value),
|
|
@@ -483,7 +483,7 @@ const Rt = /* @__PURE__ */ C({
|
|
|
483
483
|
onUnloaded: a
|
|
484
484
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
485
485
|
}
|
|
486
|
-
}),
|
|
486
|
+
}), N = C(Mt), ot = C(zt), st = C(Ft), at = C(Rt), Gt = {
|
|
487
487
|
remove: {
|
|
488
488
|
icon: "close"
|
|
489
489
|
}
|
|
@@ -491,7 +491,7 @@ const Rt = /* @__PURE__ */ C({
|
|
|
491
491
|
function Ht(n) {
|
|
492
492
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Kt(n) {
|
|
495
495
|
const t = n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
496
496
|
if (t) {
|
|
497
497
|
const e = parseInt(t[1], 10), l = parseInt(t[2], 10), o = parseInt(t[3], 10);
|
|
@@ -504,28 +504,28 @@ function it(n) {
|
|
|
504
504
|
const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16), l = parseInt(n.slice(5, 7), 16);
|
|
505
505
|
return { r: t, g: e, b: l };
|
|
506
506
|
} else {
|
|
507
|
-
const t =
|
|
507
|
+
const t = Kt(n);
|
|
508
508
|
if (t) return t;
|
|
509
509
|
}
|
|
510
510
|
throw new Error("Invalid color format");
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Wt(n) {
|
|
513
513
|
const t = n.r / 255, e = n.g / 255, l = n.b / 255, o = Math.max(t, e, l), s = Math.min(t, e, l);
|
|
514
514
|
let a = 0, d;
|
|
515
|
-
const
|
|
515
|
+
const i = (o + s) / 2;
|
|
516
516
|
if (o === s)
|
|
517
517
|
a = d = 0;
|
|
518
518
|
else {
|
|
519
|
-
const
|
|
520
|
-
switch (d =
|
|
519
|
+
const c = o - s;
|
|
520
|
+
switch (d = i > 0.5 ? c / (2 - o - s) : c / (o + s), o) {
|
|
521
521
|
case t:
|
|
522
|
-
a = (e - l) /
|
|
522
|
+
a = (e - l) / c + (e < l ? 6 : 0);
|
|
523
523
|
break;
|
|
524
524
|
case e:
|
|
525
|
-
a = (l - t) /
|
|
525
|
+
a = (l - t) / c + 2;
|
|
526
526
|
break;
|
|
527
527
|
case l:
|
|
528
|
-
a = (t - e) /
|
|
528
|
+
a = (t - e) / c + 4;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
a /= 6;
|
|
@@ -533,13 +533,13 @@ function Kt(n) {
|
|
|
533
533
|
return {
|
|
534
534
|
h: Math.round(a * 360),
|
|
535
535
|
s: Math.round(d * 100),
|
|
536
|
-
l: Math.round(
|
|
536
|
+
l: Math.round(i * 100)
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function jt(n) {
|
|
540
540
|
return n > 50 ? "#000" : "#fff";
|
|
541
541
|
}
|
|
542
|
-
const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */
|
|
542
|
+
const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ S({
|
|
543
543
|
__name: "QBadge",
|
|
544
544
|
props: {
|
|
545
545
|
color: { default: "primary" },
|
|
@@ -553,49 +553,49 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
553
553
|
const e = n, l = t, o = y(
|
|
554
554
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
555
555
|
), s = y(() => {
|
|
556
|
-
const
|
|
557
|
-
return ["q-badge", `q-badge--${e.variant}`,
|
|
556
|
+
const i = o.value ? `q-badge--${e.color}` : void 0;
|
|
557
|
+
return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
|
|
558
558
|
}), a = y(() => {
|
|
559
|
-
let
|
|
559
|
+
let i, c;
|
|
560
560
|
if (!o.value)
|
|
561
|
-
if (
|
|
562
|
-
|
|
561
|
+
if (i = e.color, e.variant === "tonal")
|
|
562
|
+
c = e.color;
|
|
563
563
|
else {
|
|
564
|
-
const
|
|
565
|
-
|
|
564
|
+
const v = it(i), k = Wt(v);
|
|
565
|
+
c = jt(k.l);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
|
-
"--q-badge-color":
|
|
569
|
-
"--q-badge-text-color":
|
|
568
|
+
"--q-badge-color": i,
|
|
569
|
+
"--q-badge-text-color": c
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
572
|
function d() {
|
|
573
573
|
l("click:remove");
|
|
574
574
|
}
|
|
575
|
-
return (
|
|
576
|
-
class:
|
|
575
|
+
return (i, c) => (u(), m("span", {
|
|
576
|
+
class: A(s.value),
|
|
577
577
|
role: "presentation",
|
|
578
578
|
style: fe(a.value)
|
|
579
579
|
}, [
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
p(
|
|
583
|
-
e.removable ? (
|
|
580
|
+
c[0] || (c[0] = w("div", { class: "q-badge__underlay" }, null, -1)),
|
|
581
|
+
w("div", Xt, [
|
|
582
|
+
p(i.$slots, "default"),
|
|
583
|
+
e.removable ? (u(), I(h(ae), {
|
|
584
584
|
key: 0,
|
|
585
585
|
class: "q-badge__remove",
|
|
586
586
|
borderless: "",
|
|
587
587
|
tabindex: "0",
|
|
588
588
|
onClick: d
|
|
589
589
|
}, {
|
|
590
|
-
default:
|
|
591
|
-
|
|
590
|
+
default: _(() => [
|
|
591
|
+
O(h(N), J(se(e.icons.remove)), null, 16)
|
|
592
592
|
]),
|
|
593
593
|
_: 1
|
|
594
|
-
})) :
|
|
594
|
+
})) : $("", !0)
|
|
595
595
|
])
|
|
596
596
|
], 6));
|
|
597
597
|
}
|
|
598
|
-
}), Zt =
|
|
598
|
+
}), Zt = C(Yt), Jt = /* @__PURE__ */ S({
|
|
599
599
|
__name: "QButtonGroup",
|
|
600
600
|
props: {
|
|
601
601
|
disabled: { type: Boolean },
|
|
@@ -605,15 +605,15 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
605
605
|
},
|
|
606
606
|
setup(n) {
|
|
607
607
|
const t = n;
|
|
608
|
-
return
|
|
608
|
+
return Ue({
|
|
609
609
|
QButton: {
|
|
610
610
|
bStyle: "secondary",
|
|
611
|
-
disabled:
|
|
612
|
-
borderless:
|
|
611
|
+
disabled: Ae(t, "disabled"),
|
|
612
|
+
borderless: Ae(t, "borderless"),
|
|
613
613
|
elevated: !1
|
|
614
614
|
}
|
|
615
|
-
}), (e, l) => (
|
|
616
|
-
class:
|
|
615
|
+
}), (e, l) => (u(), m("div", {
|
|
616
|
+
class: A([
|
|
617
617
|
"q-btn-group",
|
|
618
618
|
{
|
|
619
619
|
"q-btn-group--elevated": t.elevated
|
|
@@ -624,7 +624,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
624
624
|
p(e.$slots, "default")
|
|
625
625
|
], 2));
|
|
626
626
|
}
|
|
627
|
-
}), rt =
|
|
627
|
+
}), rt = C(Jt), en = /* @__PURE__ */ S({
|
|
628
628
|
__name: "QButtonToggle",
|
|
629
629
|
props: /* @__PURE__ */ G({
|
|
630
630
|
options: {},
|
|
@@ -639,20 +639,20 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
639
639
|
}),
|
|
640
640
|
emits: ["update:modelValue"],
|
|
641
641
|
setup(n) {
|
|
642
|
-
const t = n, e =
|
|
642
|
+
const t = n, e = j(n, "modelValue");
|
|
643
643
|
function l(o) {
|
|
644
644
|
e.value === o.key && !t.required ? e.value = void 0 : e.value = o.key;
|
|
645
645
|
}
|
|
646
|
-
return (o, s) => (
|
|
646
|
+
return (o, s) => (u(), I(h(rt), {
|
|
647
647
|
"b-style": "secondary",
|
|
648
|
-
class:
|
|
648
|
+
class: A(t.class),
|
|
649
649
|
disabled: t.disabled,
|
|
650
650
|
borderless: t.borderless,
|
|
651
651
|
elevated: t.elevated,
|
|
652
652
|
role: "listbox"
|
|
653
653
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
(
|
|
654
|
+
default: _(() => [
|
|
655
|
+
(u(!0), m(R, null, ve(t.options, (a) => (u(), I(h(ae), {
|
|
656
656
|
key: a.key,
|
|
657
657
|
title: a.title,
|
|
658
658
|
label: a.label,
|
|
@@ -661,7 +661,7 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
661
661
|
"aria-selected": e.value === a.key,
|
|
662
662
|
onClick: () => l(a)
|
|
663
663
|
}, {
|
|
664
|
-
default:
|
|
664
|
+
default: _(() => [
|
|
665
665
|
p(o.$slots, a.key)
|
|
666
666
|
]),
|
|
667
667
|
_: 2
|
|
@@ -670,9 +670,9 @@ const Xt = { class: "q-badge__content" }, Yt = /* @__PURE__ */ C({
|
|
|
670
670
|
_: 3
|
|
671
671
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
672
672
|
}
|
|
673
|
-
}), tn =
|
|
673
|
+
}), tn = C(en);
|
|
674
674
|
let nn = 0;
|
|
675
|
-
function
|
|
675
|
+
function ue(n) {
|
|
676
676
|
return n || `uid-${++nn}`;
|
|
677
677
|
}
|
|
678
678
|
const ln = { class: "q-card__header" }, on = {
|
|
@@ -689,7 +689,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
689
689
|
}, dn = { class: "q-card__content" }, un = {
|
|
690
690
|
key: 0,
|
|
691
691
|
class: "q-card__footer"
|
|
692
|
-
}, cn = /* @__PURE__ */
|
|
692
|
+
}, cn = /* @__PURE__ */ S({
|
|
693
693
|
__name: "QCard",
|
|
694
694
|
props: {
|
|
695
695
|
id: { default: void 0 },
|
|
@@ -704,13 +704,13 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
704
704
|
width: { default: void 0 }
|
|
705
705
|
},
|
|
706
706
|
setup(n) {
|
|
707
|
-
const t = n, e = bt(), l =
|
|
708
|
-
const
|
|
707
|
+
const t = n, e = bt(), l = ue(t.id), o = y(() => {
|
|
708
|
+
const i = t.width ? `q-card--${t.width}` : void 0, c = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, v = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
|
|
709
709
|
return [
|
|
710
710
|
"q-card",
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
711
|
+
i,
|
|
712
|
+
c,
|
|
713
|
+
v,
|
|
714
714
|
{
|
|
715
715
|
"q-card--clickable": s.value,
|
|
716
716
|
"q-card--loading": t.loading,
|
|
@@ -718,66 +718,66 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
718
718
|
"q-card--disabled": t.disabled
|
|
719
719
|
}
|
|
720
720
|
];
|
|
721
|
-
}), s = y(() => !!e.onClick || t.href), a = y(() => t.disabled || t.loading), d = (
|
|
722
|
-
a.value &&
|
|
721
|
+
}), s = y(() => !!e.onClick || t.href), a = y(() => t.disabled || t.loading), d = (i) => {
|
|
722
|
+
a.value && i.stopImmediatePropagation();
|
|
723
723
|
};
|
|
724
|
-
return (
|
|
725
|
-
id:
|
|
726
|
-
class:
|
|
724
|
+
return (i, c) => (u(), I(Le(t.href ? "a" : "div"), {
|
|
725
|
+
id: h(l),
|
|
726
|
+
class: A([...o.value, i.$attrs.class]),
|
|
727
727
|
href: t.href && !a.value ? t.href : void 0,
|
|
728
728
|
onClick: d
|
|
729
729
|
}, {
|
|
730
|
-
default:
|
|
731
|
-
t.loading ? (
|
|
730
|
+
default: _(() => [
|
|
731
|
+
t.loading ? (u(), I(h(ke), {
|
|
732
732
|
key: 0,
|
|
733
733
|
size: 36
|
|
734
|
-
})) : (
|
|
735
|
-
|
|
736
|
-
p(
|
|
737
|
-
p(
|
|
738
|
-
|
|
739
|
-
p(
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
734
|
+
})) : (u(), m(R, { key: 1 }, [
|
|
735
|
+
w("div", ln, [
|
|
736
|
+
p(i.$slots, "header", {}, () => [
|
|
737
|
+
p(i.$slots, "header.prepend"),
|
|
738
|
+
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (u(), m("div", on, [
|
|
739
|
+
p(i.$slots, "header.content.prepend"),
|
|
740
|
+
w("div", sn, [
|
|
741
|
+
i.$slots.title || t.title ? (u(), m("p", an, [
|
|
742
|
+
i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (u(), m(R, { key: 1 }, [
|
|
743
|
+
de(Q(i.$props.title), 1)
|
|
744
744
|
], 64))
|
|
745
|
-
])) :
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
745
|
+
])) : $("", !0),
|
|
746
|
+
i.$slots.subtitle || t.subtitle ? (u(), m("p", rn, [
|
|
747
|
+
i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (u(), m(R, { key: 1 }, [
|
|
748
|
+
de(Q(i.$props.subtitle), 1)
|
|
749
749
|
], 64))
|
|
750
|
-
])) :
|
|
750
|
+
])) : $("", !0)
|
|
751
751
|
]),
|
|
752
|
-
p(
|
|
753
|
-
])) :
|
|
754
|
-
p(
|
|
752
|
+
p(i.$slots, "header.content.append")
|
|
753
|
+
])) : $("", !0),
|
|
754
|
+
p(i.$slots, "header.append")
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
|
-
|
|
758
|
-
p(
|
|
757
|
+
w("div", dn, [
|
|
758
|
+
p(i.$slots, "default")
|
|
759
759
|
]),
|
|
760
|
-
|
|
761
|
-
p(
|
|
762
|
-
])) :
|
|
760
|
+
i.$slots.footer ? (u(), m("div", un, [
|
|
761
|
+
p(i.$slots, "footer")
|
|
762
|
+
])) : $("", !0)
|
|
763
763
|
], 64))
|
|
764
764
|
]),
|
|
765
765
|
_: 3
|
|
766
766
|
}, 8, ["id", "class", "href"]));
|
|
767
767
|
}
|
|
768
|
-
}), dt =
|
|
768
|
+
}), dt = C(cn), fn = { key: 0 }, pn = { class: "q-field__extras" }, mn = { key: 1 }, je = /* @__PURE__ */ S({
|
|
769
769
|
__name: "QCheckboxLabel",
|
|
770
770
|
props: {
|
|
771
771
|
label: { default: "" }
|
|
772
772
|
},
|
|
773
773
|
setup(n) {
|
|
774
774
|
const t = n;
|
|
775
|
-
return (e, l) => e.$slots.extras ? (
|
|
776
|
-
|
|
777
|
-
|
|
775
|
+
return (e, l) => e.$slots.extras ? (u(), m("div", fn, [
|
|
776
|
+
w("span", null, Q(t.label), 1),
|
|
777
|
+
w("div", pn, [
|
|
778
778
|
p(e.$slots, "extras")
|
|
779
779
|
])
|
|
780
|
-
])) : (
|
|
780
|
+
])) : (u(), m("span", mn, Q(t.label), 1));
|
|
781
781
|
}
|
|
782
782
|
}), hn = {
|
|
783
783
|
checked: {
|
|
@@ -786,7 +786,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
786
786
|
indeterminate: {
|
|
787
787
|
icon: "minus"
|
|
788
788
|
}
|
|
789
|
-
},
|
|
789
|
+
}, vn = ["id", "aria-checked", "disabled", "onKeydown"], yn = ["checked", "disabled"], bn = /* @__PURE__ */ S({
|
|
790
790
|
__name: "QCheckbox",
|
|
791
791
|
props: /* @__PURE__ */ G({
|
|
792
792
|
label: { default: "" },
|
|
@@ -805,7 +805,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
805
805
|
}),
|
|
806
806
|
emits: ["update:modelValue"],
|
|
807
807
|
setup(n) {
|
|
808
|
-
const t = n, e =
|
|
808
|
+
const t = n, e = j(n, "modelValue"), l = ue(t.id), o = y(() => [
|
|
809
809
|
"q-checkbox",
|
|
810
810
|
`q-checkbox--${t.size}`,
|
|
811
811
|
`q-checkbox--${t.color}`,
|
|
@@ -820,62 +820,62 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
820
820
|
function s() {
|
|
821
821
|
!t.disabled && !t.readonly && (e.value = !e.value);
|
|
822
822
|
}
|
|
823
|
-
return (a, d) => (
|
|
824
|
-
|
|
825
|
-
class:
|
|
823
|
+
return (a, d) => (u(), m(R, null, [
|
|
824
|
+
w("label", {
|
|
825
|
+
class: A(o.value)
|
|
826
826
|
}, [
|
|
827
|
-
t.labelPlacement !== "right" ? (
|
|
827
|
+
t.labelPlacement !== "right" ? (u(), I(je, {
|
|
828
828
|
key: 0,
|
|
829
829
|
label: t.label
|
|
830
830
|
}, ye({ _: 2 }, [
|
|
831
831
|
a.$slots.extras ? {
|
|
832
832
|
name: "extras",
|
|
833
|
-
fn:
|
|
833
|
+
fn: _(() => [
|
|
834
834
|
p(a.$slots, "extras")
|
|
835
835
|
]),
|
|
836
836
|
key: "0"
|
|
837
837
|
} : void 0
|
|
838
|
-
]), 1032, ["label"])) :
|
|
839
|
-
|
|
840
|
-
id:
|
|
838
|
+
]), 1032, ["label"])) : $("", !0),
|
|
839
|
+
w("button", {
|
|
840
|
+
id: h(l),
|
|
841
841
|
role: "checkbox",
|
|
842
842
|
type: "button",
|
|
843
843
|
"aria-checked": t.indeterminate ? "mixed" : e.value,
|
|
844
844
|
disabled: t.disabled || t.readonly,
|
|
845
845
|
class: "q-checkbox__input",
|
|
846
|
-
onClick:
|
|
846
|
+
onClick: re(s, ["prevent"]),
|
|
847
847
|
onKeydown: [
|
|
848
|
-
|
|
849
|
-
d[0] || (d[0] =
|
|
848
|
+
Ee(re(s, ["prevent"]), ["space"]),
|
|
849
|
+
d[0] || (d[0] = Ee(re(() => {
|
|
850
850
|
}, ["prevent"]), ["enter"]))
|
|
851
851
|
]
|
|
852
852
|
}, [
|
|
853
|
-
e.value || a.indeterminate ? (
|
|
854
|
-
], 40,
|
|
855
|
-
t.labelPlacement === "right" ? (
|
|
853
|
+
e.value || a.indeterminate ? (u(), I(h(N), X({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : $("", !0)
|
|
854
|
+
], 40, vn),
|
|
855
|
+
t.labelPlacement === "right" ? (u(), I(je, {
|
|
856
856
|
key: 1,
|
|
857
857
|
label: t.label
|
|
858
858
|
}, ye({ _: 2 }, [
|
|
859
859
|
a.$slots.extras ? {
|
|
860
860
|
name: "extras",
|
|
861
|
-
fn:
|
|
861
|
+
fn: _(() => [
|
|
862
862
|
p(a.$slots, "extras")
|
|
863
863
|
]),
|
|
864
864
|
key: "0"
|
|
865
865
|
} : void 0
|
|
866
|
-
]), 1032, ["label"])) :
|
|
866
|
+
]), 1032, ["label"])) : $("", !0)
|
|
867
867
|
], 2),
|
|
868
|
-
|
|
868
|
+
w("input", {
|
|
869
869
|
type: "checkbox",
|
|
870
870
|
tabindex: "-1",
|
|
871
871
|
"aria-hidden": "true",
|
|
872
872
|
class: "q-checkbox__native-input",
|
|
873
873
|
checked: !!e.value,
|
|
874
874
|
disabled: t.disabled || t.readonly
|
|
875
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, yn)
|
|
876
876
|
], 64));
|
|
877
877
|
}
|
|
878
|
-
}), gn =
|
|
878
|
+
}), gn = C(bn), _n = {
|
|
879
879
|
chevron: {
|
|
880
880
|
icon: "chevron-down"
|
|
881
881
|
}
|
|
@@ -888,7 +888,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
888
888
|
}, xn = {
|
|
889
889
|
key: 0,
|
|
890
890
|
class: "q-collapsible__subtitle"
|
|
891
|
-
},
|
|
891
|
+
}, Ln = { class: "q-collapsible__content-inner" }, In = { class: "q-collapsible__content" }, Sn = /* @__PURE__ */ S({
|
|
892
892
|
__name: "QCollapsible",
|
|
893
893
|
props: /* @__PURE__ */ G({
|
|
894
894
|
id: { default: void 0 },
|
|
@@ -906,12 +906,12 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
906
906
|
}),
|
|
907
907
|
emits: ["update:modelValue"],
|
|
908
908
|
setup(n) {
|
|
909
|
-
const t = n, e =
|
|
910
|
-
const
|
|
909
|
+
const t = n, e = j(n, "modelValue"), l = ue(t.id), o = It(l), s = y(() => t.width === "block" ? "block" : void 0), a = y(() => {
|
|
910
|
+
const c = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, v = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
|
|
911
911
|
return [
|
|
912
912
|
"q-collapsible",
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
c,
|
|
914
|
+
v,
|
|
915
915
|
{
|
|
916
916
|
"q-collapsible--icon-right": t.iconRight,
|
|
917
917
|
"q-collapsible--expanded": e.value
|
|
@@ -922,54 +922,54 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
922
922
|
{
|
|
923
923
|
"q-collapsible__content-show": e.value
|
|
924
924
|
}
|
|
925
|
-
]),
|
|
925
|
+
]), i = () => {
|
|
926
926
|
e.value = !e.value, o == null || o.toggle();
|
|
927
927
|
};
|
|
928
|
-
return
|
|
928
|
+
return ne(
|
|
929
929
|
() => o == null ? void 0 : o.isActive.value,
|
|
930
930
|
() => e.value = o == null ? void 0 : o.isActive.value
|
|
931
|
-
), (
|
|
932
|
-
id:
|
|
933
|
-
class:
|
|
931
|
+
), (c, v) => (u(), I(h(dt), {
|
|
932
|
+
id: h(l),
|
|
933
|
+
class: A(a.value),
|
|
934
934
|
width: s.value
|
|
935
935
|
}, {
|
|
936
|
-
header:
|
|
937
|
-
|
|
938
|
-
|
|
936
|
+
header: _(() => [
|
|
937
|
+
c.title ? (u(), m("div", $n, [
|
|
938
|
+
O(h(ae), {
|
|
939
939
|
"b-style": "tertiary",
|
|
940
940
|
class: "q-collapsible__btn",
|
|
941
|
-
onClick:
|
|
941
|
+
onClick: i
|
|
942
942
|
}, {
|
|
943
|
-
default:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
943
|
+
default: _(() => [
|
|
944
|
+
w("div", kn, [
|
|
945
|
+
c.iconRight ? $("", !0) : p(c.$slots, "icon", { key: 0 }, () => [
|
|
946
|
+
O(h(N), X({ class: "q-collapsible__chevron" }, t.icons.chevron), null, 16)
|
|
947
947
|
]),
|
|
948
|
-
p(
|
|
949
|
-
|
|
950
|
-
t.required ? (
|
|
951
|
-
p(
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
]) :
|
|
948
|
+
p(c.$slots, "title.prepend"),
|
|
949
|
+
w("h4", wn, Q(c.title), 1),
|
|
950
|
+
t.required ? (u(), m("span", qn, " * ")) : $("", !0),
|
|
951
|
+
p(c.$slots, "title.append"),
|
|
952
|
+
c.iconRight ? p(c.$slots, "icon", { key: 2 }, () => [
|
|
953
|
+
O(h(N), X({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, t.icons.chevron), null, 16)
|
|
954
|
+
]) : $("", !0)
|
|
955
955
|
]),
|
|
956
|
-
|
|
957
|
-
p(
|
|
958
|
-
|
|
956
|
+
c.$slots.subtitle || c.subtitle ? (u(), m("div", xn, [
|
|
957
|
+
p(c.$slots, "subtitle", {}, () => [
|
|
958
|
+
de(Q(c.subtitle), 1)
|
|
959
959
|
])
|
|
960
|
-
])) :
|
|
960
|
+
])) : $("", !0)
|
|
961
961
|
]),
|
|
962
962
|
_: 3
|
|
963
963
|
})
|
|
964
|
-
])) :
|
|
964
|
+
])) : $("", !0)
|
|
965
965
|
]),
|
|
966
|
-
default:
|
|
967
|
-
|
|
968
|
-
class:
|
|
966
|
+
default: _(() => [
|
|
967
|
+
w("div", {
|
|
968
|
+
class: A(d.value)
|
|
969
969
|
}, [
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
p(
|
|
970
|
+
w("div", Ln, [
|
|
971
|
+
w("div", In, [
|
|
972
|
+
p(c.$slots, "default")
|
|
973
973
|
])
|
|
974
974
|
])
|
|
975
975
|
], 2)
|
|
@@ -977,7 +977,7 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
977
977
|
_: 3
|
|
978
978
|
}, 8, ["id", "class", "width"]));
|
|
979
979
|
}
|
|
980
|
-
}),
|
|
980
|
+
}), Bn = C(Sn), Cn = /* @__PURE__ */ S({
|
|
981
981
|
__name: "QList",
|
|
982
982
|
props: /* @__PURE__ */ G({
|
|
983
983
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -996,143 +996,161 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
996
996
|
}),
|
|
997
997
|
emits: ["update:modelValue"],
|
|
998
998
|
setup(n, { expose: t }) {
|
|
999
|
-
const e = n, l =
|
|
1000
|
-
(
|
|
1001
|
-
) : [{ id: "", title: "" }]), d =
|
|
1002
|
-
function
|
|
1003
|
-
l.value =
|
|
999
|
+
const e = n, l = j(n, "modelValue"), o = V(!1), s = y(() => a.value.length > 1 ? "div" : "ul"), a = y(() => e.groups.length ? e.groups.filter(
|
|
1000
|
+
(b) => e.items.some((f) => f.group === b.id)
|
|
1001
|
+
) : [{ id: "", title: "" }]), d = V(null), i = V(null);
|
|
1002
|
+
function c(b) {
|
|
1003
|
+
l.value = b;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function v() {
|
|
1006
1006
|
o.value = !0;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function k() {
|
|
1009
1009
|
o.value = !1;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
var
|
|
1013
|
-
if ((
|
|
1011
|
+
function H(b) {
|
|
1012
|
+
var z;
|
|
1013
|
+
if ((z = d.value) != null && z.contains(b.relatedTarget))
|
|
1014
1014
|
return;
|
|
1015
|
-
let
|
|
1016
|
-
l.value ?
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1015
|
+
let f;
|
|
1016
|
+
l.value ? f = e.items.findIndex((U) => U[e.itemValue] === l.value) : f = ee();
|
|
1017
|
+
const q = o.value;
|
|
1018
|
+
g(f, q);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1020
|
+
function K(b) {
|
|
1021
|
+
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(b.key) && b.preventDefault(), b.key) {
|
|
1022
1022
|
case "ArrowDown":
|
|
1023
|
-
|
|
1023
|
+
D("next");
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "ArrowUp":
|
|
1026
|
-
|
|
1026
|
+
D("prev");
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "Home":
|
|
1029
|
-
|
|
1029
|
+
D("first");
|
|
1030
1030
|
break;
|
|
1031
1031
|
case "End":
|
|
1032
|
-
|
|
1032
|
+
D("last");
|
|
1033
1033
|
break;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
switch (
|
|
1036
|
+
function D(b) {
|
|
1037
|
+
switch (b) {
|
|
1038
1038
|
case "next":
|
|
1039
1039
|
case "prev":
|
|
1040
|
-
|
|
1040
|
+
g(E(b));
|
|
1041
1041
|
break;
|
|
1042
1042
|
case "first":
|
|
1043
|
-
|
|
1043
|
+
g(ee());
|
|
1044
1044
|
break;
|
|
1045
1045
|
case "last":
|
|
1046
|
-
|
|
1046
|
+
g(te());
|
|
1047
1047
|
break;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
var
|
|
1052
|
-
(
|
|
1053
|
-
}
|
|
1054
|
-
function
|
|
1055
|
-
var
|
|
1056
|
-
const
|
|
1057
|
-
return
|
|
1058
|
-
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1061
|
-
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1064
|
-
}
|
|
1065
|
-
function
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1068
|
-
}
|
|
1069
|
-
function
|
|
1070
|
-
const
|
|
1071
|
-
return
|
|
1072
|
-
}
|
|
1073
|
-
function
|
|
1074
|
-
return
|
|
1075
|
-
}
|
|
1076
|
-
function
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1079
|
-
}
|
|
1080
|
-
function
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1083
|
-
return
|
|
1084
|
-
let
|
|
1085
|
-
for (; !
|
|
1086
|
-
if (
|
|
1087
|
-
return
|
|
1088
|
-
|
|
1050
|
+
function g(b, f = !1) {
|
|
1051
|
+
var z;
|
|
1052
|
+
(z = B()[b]) == null || z.focus({ preventScroll: f });
|
|
1053
|
+
}
|
|
1054
|
+
function B() {
|
|
1055
|
+
var f;
|
|
1056
|
+
const b = (f = d.value) == null ? void 0 : f.querySelectorAll("li");
|
|
1057
|
+
return b ? Array.from(b) : [];
|
|
1058
|
+
}
|
|
1059
|
+
function M(b) {
|
|
1060
|
+
return B()[b];
|
|
1061
|
+
}
|
|
1062
|
+
function F() {
|
|
1063
|
+
return B().indexOf(document.activeElement);
|
|
1064
|
+
}
|
|
1065
|
+
function ee() {
|
|
1066
|
+
const b = B(), f = b.find((q) => le(q));
|
|
1067
|
+
return f ? b.indexOf(f) : -1;
|
|
1068
|
+
}
|
|
1069
|
+
function te() {
|
|
1070
|
+
const b = B(), f = [...b].reverse().find((q) => le(q));
|
|
1071
|
+
return f ? b.indexOf(f) : -1;
|
|
1072
|
+
}
|
|
1073
|
+
function x(b, f, q) {
|
|
1074
|
+
return f === "prev" && b <= 0 || f === "next" && b === q.length - 1;
|
|
1075
|
+
}
|
|
1076
|
+
function E(b) {
|
|
1077
|
+
const f = F();
|
|
1078
|
+
return P(f, b);
|
|
1079
|
+
}
|
|
1080
|
+
function P(b, f) {
|
|
1081
|
+
const q = B();
|
|
1082
|
+
if (x(b, f, q))
|
|
1083
|
+
return b;
|
|
1084
|
+
let z = b + (f === "next" ? 1 : -1);
|
|
1085
|
+
for (; !le(q[z]); ) {
|
|
1086
|
+
if (x(z, f, q))
|
|
1087
|
+
return b;
|
|
1088
|
+
z += f === "next" ? 1 : -1;
|
|
1089
1089
|
}
|
|
1090
|
-
return
|
|
1090
|
+
return z;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1092
|
+
function le(b) {
|
|
1093
|
+
return b.tabIndex === -2;
|
|
1094
1094
|
}
|
|
1095
|
-
function ce(
|
|
1096
|
-
return
|
|
1095
|
+
function ce(b) {
|
|
1096
|
+
return b ? e.items.filter((f) => f.group === b) : e.items;
|
|
1097
1097
|
}
|
|
1098
1098
|
return t({
|
|
1099
|
-
focusItem:
|
|
1100
|
-
getItem:
|
|
1101
|
-
getAdjacentItemIndex:
|
|
1102
|
-
getFirstFocusableItemIndex:
|
|
1103
|
-
getLastFocusableItemIndex:
|
|
1104
|
-
}), (
|
|
1099
|
+
focusItem: g,
|
|
1100
|
+
getItem: M,
|
|
1101
|
+
getAdjacentItemIndex: P,
|
|
1102
|
+
getFirstFocusableItemIndex: ee,
|
|
1103
|
+
getLastFocusableItemIndex: te
|
|
1104
|
+
}), (b, f) => (u(), I(Le(s.value), {
|
|
1105
1105
|
ref_key: "listRef",
|
|
1106
1106
|
ref: d,
|
|
1107
|
-
class:
|
|
1107
|
+
class: A(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
1108
1108
|
role: "listbox",
|
|
1109
1109
|
tabindex: e.disabled ? -1 : 0,
|
|
1110
|
-
onFocus:
|
|
1111
|
-
onMousedown:
|
|
1112
|
-
onMouseup:
|
|
1113
|
-
onKeydown:
|
|
1110
|
+
onFocus: H,
|
|
1111
|
+
onMousedown: v,
|
|
1112
|
+
onMouseup: k,
|
|
1113
|
+
onKeydown: K
|
|
1114
1114
|
}, {
|
|
1115
|
-
default:
|
|
1116
|
-
(
|
|
1117
|
-
id:
|
|
1118
|
-
key:
|
|
1119
|
-
title: a.value.length === 1 ? void 0 :
|
|
1115
|
+
default: _(() => [
|
|
1116
|
+
(u(!0), m(R, null, ve(a.value, (q, z) => (u(), I(h(ct), {
|
|
1117
|
+
id: q.id,
|
|
1118
|
+
key: q.id,
|
|
1119
|
+
title: a.value.length === 1 ? void 0 : q.title
|
|
1120
1120
|
}, {
|
|
1121
|
-
default:
|
|
1122
|
-
(
|
|
1123
|
-
key:
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1121
|
+
default: _(() => [
|
|
1122
|
+
(u(!0), m(R, null, ve(ce(q.id), (U, Y) => (u(), I(h(ut), {
|
|
1123
|
+
key: U[e.itemValue],
|
|
1124
|
+
ref_for: !0,
|
|
1125
|
+
ref_key: "listItemsRef",
|
|
1126
|
+
ref: i,
|
|
1127
|
+
value: U[e.itemValue],
|
|
1128
|
+
label: U[e.itemLabel],
|
|
1129
|
+
description: U.description,
|
|
1130
|
+
icon: U.icon,
|
|
1131
|
+
disabled: e.disabled || q.disabled || U.disabled,
|
|
1132
|
+
highlighted: e.highlighted === U[e.itemValue],
|
|
1133
|
+
selected: b.selectable && l.value === U[e.itemValue],
|
|
1134
|
+
onSelect: c
|
|
1132
1135
|
}, {
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
+
append: _(() => {
|
|
1137
|
+
var W, ie;
|
|
1138
|
+
return [
|
|
1139
|
+
p(b.$slots, "item.append", {
|
|
1140
|
+
item: U,
|
|
1141
|
+
element: (ie = (W = i.value) == null ? void 0 : W[Y + z * a.value.length]) == null ? void 0 : ie.$el
|
|
1142
|
+
})
|
|
1143
|
+
];
|
|
1144
|
+
}),
|
|
1145
|
+
default: _(() => {
|
|
1146
|
+
var W, ie;
|
|
1147
|
+
return [
|
|
1148
|
+
p(b.$slots, "item", {
|
|
1149
|
+
item: U,
|
|
1150
|
+
element: (ie = (W = i.value) == null ? void 0 : W[Y + z * a.value.length]) == null ? void 0 : ie.$el
|
|
1151
|
+
})
|
|
1152
|
+
];
|
|
1153
|
+
}),
|
|
1136
1154
|
_: 2
|
|
1137
1155
|
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
1138
1156
|
]),
|
|
@@ -1142,17 +1160,17 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1142
1160
|
_: 3
|
|
1143
1161
|
}, 40, ["class", "tabindex"]));
|
|
1144
1162
|
}
|
|
1145
|
-
}),
|
|
1163
|
+
}), Vn = {
|
|
1146
1164
|
check: {
|
|
1147
1165
|
icon: "check"
|
|
1148
1166
|
},
|
|
1149
1167
|
description: {
|
|
1150
1168
|
icon: "information-outline"
|
|
1151
1169
|
}
|
|
1152
|
-
},
|
|
1170
|
+
}, Tn = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], An = { class: "q-list-item__container" }, En = { class: "q-list-item__content" }, Dn = {
|
|
1153
1171
|
key: 0,
|
|
1154
1172
|
class: "q-list-item__description"
|
|
1155
|
-
},
|
|
1173
|
+
}, Qn = { class: "q-list-item__check-container" }, Mn = /* @__PURE__ */ S({
|
|
1156
1174
|
__name: "QListItem",
|
|
1157
1175
|
props: {
|
|
1158
1176
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -1162,23 +1180,23 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1162
1180
|
highlighted: { type: Boolean },
|
|
1163
1181
|
disabled: { type: Boolean },
|
|
1164
1182
|
description: { default: void 0 },
|
|
1165
|
-
icons: { default: () =>
|
|
1183
|
+
icons: { default: () => Vn }
|
|
1166
1184
|
},
|
|
1167
1185
|
emits: ["select"],
|
|
1168
1186
|
setup(n, { emit: t }) {
|
|
1169
|
-
const e = n, l = t, o =
|
|
1187
|
+
const e = n, l = t, o = ue();
|
|
1170
1188
|
function s() {
|
|
1171
1189
|
e.disabled || l("select", e.value);
|
|
1172
1190
|
}
|
|
1173
1191
|
function a(d) {
|
|
1174
1192
|
d.key === "Tab" && s(), (d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), s());
|
|
1175
1193
|
}
|
|
1176
|
-
return (d,
|
|
1177
|
-
id:
|
|
1194
|
+
return (d, i) => (u(), m("li", {
|
|
1195
|
+
id: h(o),
|
|
1178
1196
|
"data-key": e.value,
|
|
1179
1197
|
role: "option",
|
|
1180
1198
|
tabindex: e.disabled ? void 0 : -2,
|
|
1181
|
-
class:
|
|
1199
|
+
class: A([
|
|
1182
1200
|
"q-list-item",
|
|
1183
1201
|
{
|
|
1184
1202
|
"q-list-item--disabled": e.disabled,
|
|
@@ -1189,49 +1207,51 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1189
1207
|
"aria-label": e.label,
|
|
1190
1208
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
1191
1209
|
onKeydown: a,
|
|
1192
|
-
onClick:
|
|
1210
|
+
onClick: re(s, ["stop", "prevent"])
|
|
1193
1211
|
}, [
|
|
1194
|
-
|
|
1195
|
-
|
|
1212
|
+
p(d.$slots, "prepend"),
|
|
1213
|
+
w("div", An, [
|
|
1214
|
+
w("div", En, [
|
|
1196
1215
|
p(d.$slots, "default", {}, () => [
|
|
1197
|
-
e.icon ? (
|
|
1198
|
-
|
|
1216
|
+
e.icon ? (u(), I(h(N), J(X({ key: 0 }, e.icon)), null, 16)) : $("", !0),
|
|
1217
|
+
de(" " + Q(e.label), 1)
|
|
1199
1218
|
])
|
|
1200
1219
|
]),
|
|
1201
|
-
e.description ? (
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
])) :
|
|
1220
|
+
e.description ? (u(), m("div", Dn, [
|
|
1221
|
+
O(h(N), J(se(e.icons.description)), null, 16),
|
|
1222
|
+
w("span", null, Q(e.description), 1)
|
|
1223
|
+
])) : $("", !0)
|
|
1205
1224
|
]),
|
|
1206
|
-
|
|
1207
|
-
|
|
1225
|
+
p(d.$slots, "append"),
|
|
1226
|
+
w("div", Qn, [
|
|
1227
|
+
e.selected ? (u(), I(h(N), X({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
|
|
1208
1228
|
])
|
|
1209
|
-
], 42,
|
|
1229
|
+
], 42, Tn));
|
|
1210
1230
|
}
|
|
1211
|
-
}),
|
|
1231
|
+
}), zn = ["data-key", "aria-labelledby"], On = ["id"], Fn = /* @__PURE__ */ S({
|
|
1212
1232
|
__name: "QListItemGroup",
|
|
1213
1233
|
props: {
|
|
1214
1234
|
id: {},
|
|
1215
1235
|
title: { default: "" }
|
|
1216
1236
|
},
|
|
1217
1237
|
setup(n) {
|
|
1218
|
-
const t = n, e =
|
|
1219
|
-
return (l, o) => (
|
|
1238
|
+
const t = n, e = ue();
|
|
1239
|
+
return (l, o) => (u(), m("ul", {
|
|
1220
1240
|
class: "q-list-item-group",
|
|
1221
1241
|
role: "group",
|
|
1222
1242
|
"data-key": t.id,
|
|
1223
|
-
"aria-labelledby": t.title ?
|
|
1243
|
+
"aria-labelledby": t.title ? h(e) : void 0
|
|
1224
1244
|
}, [
|
|
1225
|
-
t.title ? (
|
|
1245
|
+
t.title ? (u(), m("li", {
|
|
1226
1246
|
key: 0,
|
|
1227
|
-
id:
|
|
1247
|
+
id: h(e),
|
|
1228
1248
|
class: "q-list-item-group__title",
|
|
1229
1249
|
role: "presentation"
|
|
1230
|
-
},
|
|
1250
|
+
}, Q(t.title), 9, On)) : $("", !0),
|
|
1231
1251
|
p(l.$slots, "default")
|
|
1232
|
-
], 8,
|
|
1252
|
+
], 8, zn));
|
|
1233
1253
|
}
|
|
1234
|
-
}),
|
|
1254
|
+
}), Ie = C(Cn), ut = C(Mn), ct = C(Fn), he = "data-scroll-locked", Ce = "right-scroll-bar-position", Ve = "width-before-scroll-bar", Pn = "with-scroll-bars-hidden", Un = "--removed-body-scroll-bar-size", Nn = {
|
|
1235
1255
|
left: 0,
|
|
1236
1256
|
top: 0,
|
|
1237
1257
|
right: 0,
|
|
@@ -1253,24 +1273,24 @@ const ln = { class: "q-card__header" }, on = {
|
|
|
1253
1273
|
function Hn() {
|
|
1254
1274
|
return document ? document.createElement("style") : null;
|
|
1255
1275
|
}
|
|
1256
|
-
function
|
|
1276
|
+
function Kn(n, t) {
|
|
1257
1277
|
n.appendChild(document.createTextNode(t));
|
|
1258
1278
|
}
|
|
1259
|
-
function
|
|
1279
|
+
function Wn(n) {
|
|
1260
1280
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(n);
|
|
1261
1281
|
}
|
|
1262
|
-
const
|
|
1282
|
+
const jn = () => {
|
|
1263
1283
|
let n = 0, t = null;
|
|
1264
1284
|
return {
|
|
1265
1285
|
add: (e) => {
|
|
1266
|
-
n === 0 && (t = Hn()) && (
|
|
1286
|
+
n === 0 && (t = Hn()) && (Kn(t, e), Wn(t)), n++;
|
|
1267
1287
|
},
|
|
1268
1288
|
remove: () => {
|
|
1269
1289
|
var e;
|
|
1270
1290
|
n--, !n && t && ((e = t.parentNode) == null || e.removeChild(t), t = null);
|
|
1271
1291
|
}
|
|
1272
1292
|
};
|
|
1273
|
-
}, Xn = /* @__PURE__ */
|
|
1293
|
+
}, Xn = /* @__PURE__ */ S({
|
|
1274
1294
|
__name: "QRemoveScrollBar",
|
|
1275
1295
|
props: {
|
|
1276
1296
|
noRelative: { type: Boolean, default: !1 },
|
|
@@ -1278,121 +1298,128 @@ const Wn = () => {
|
|
|
1278
1298
|
gapMode: { default: "margin" }
|
|
1279
1299
|
},
|
|
1280
1300
|
setup(n) {
|
|
1281
|
-
const t = n, e =
|
|
1282
|
-
const s = parseInt(document.body.getAttribute(
|
|
1301
|
+
const t = n, e = jn(), l = () => {
|
|
1302
|
+
const s = parseInt(document.body.getAttribute(he) || "0", 10);
|
|
1283
1303
|
return isFinite(s) ? s : 0;
|
|
1284
|
-
}, o = ({ left: s, top: a, right: d, gap:
|
|
1304
|
+
}, o = ({ left: s, top: a, right: d, gap: i }, c, v = "margin", k) => `
|
|
1285
1305
|
.${Pn} {
|
|
1286
|
-
overflow: hidden ${
|
|
1287
|
-
padding-right: ${
|
|
1306
|
+
overflow: hidden ${k};
|
|
1307
|
+
padding-right: ${i}px ${k};
|
|
1288
1308
|
}
|
|
1289
|
-
body[${
|
|
1290
|
-
overflow: hidden ${
|
|
1309
|
+
body[${he}] {
|
|
1310
|
+
overflow: hidden ${k};
|
|
1291
1311
|
overscroll-behavior: contain;
|
|
1292
1312
|
${[
|
|
1293
|
-
|
|
1294
|
-
|
|
1313
|
+
c && `position: relative ${k};`,
|
|
1314
|
+
v === "margin" && `
|
|
1295
1315
|
padding-left: ${s}px;
|
|
1296
1316
|
padding-top: ${a}px;
|
|
1297
1317
|
padding-right: ${d}px;
|
|
1298
1318
|
margin-left:0;
|
|
1299
1319
|
margin-top:0;
|
|
1300
|
-
margin-right: ${
|
|
1320
|
+
margin-right: ${i}px ${k};
|
|
1301
1321
|
`,
|
|
1302
|
-
|
|
1322
|
+
v === "padding" && `padding-right: ${i}px ${k};`
|
|
1303
1323
|
].filter(Boolean).join("")}
|
|
1304
1324
|
}
|
|
1305
1325
|
|
|
1306
1326
|
.${Ce} {
|
|
1307
|
-
right: ${
|
|
1327
|
+
right: ${i}px ${k};
|
|
1308
1328
|
}
|
|
1309
1329
|
|
|
1310
|
-
.${
|
|
1311
|
-
margin-right: ${
|
|
1330
|
+
.${Ve} {
|
|
1331
|
+
margin-right: ${i}px ${k};
|
|
1312
1332
|
}
|
|
1313
1333
|
|
|
1314
1334
|
.${Ce} .${Ce} {
|
|
1315
|
-
right: 0 ${
|
|
1335
|
+
right: 0 ${k};
|
|
1316
1336
|
}
|
|
1317
1337
|
|
|
1318
|
-
.${
|
|
1319
|
-
margin-right: 0 ${
|
|
1338
|
+
.${Ve} .${Ve} {
|
|
1339
|
+
margin-right: 0 ${k};
|
|
1320
1340
|
}
|
|
1321
1341
|
|
|
1322
|
-
body[${
|
|
1323
|
-
${Un}: ${
|
|
1342
|
+
body[${he}] {
|
|
1343
|
+
${Un}: ${i}px;
|
|
1324
1344
|
}
|
|
1325
1345
|
`;
|
|
1326
|
-
return
|
|
1327
|
-
document.body.setAttribute(
|
|
1346
|
+
return Oe(() => {
|
|
1347
|
+
document.body.setAttribute(he, (l() + 1).toString());
|
|
1328
1348
|
const s = Gn(t.gapMode);
|
|
1329
1349
|
e.add(
|
|
1330
1350
|
o(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
1331
1351
|
);
|
|
1332
1352
|
}), gt(() => {
|
|
1333
1353
|
const s = l() - 1;
|
|
1334
|
-
s <= 0 ? document.body.removeAttribute(
|
|
1354
|
+
s <= 0 ? document.body.removeAttribute(he) : document.body.setAttribute(he, s.toString()), e.remove();
|
|
1335
1355
|
}), (s, a) => p(s.$slots, "default");
|
|
1336
1356
|
}
|
|
1337
|
-
}), Yn =
|
|
1357
|
+
}), Yn = C(Xn), qe = 8;
|
|
1338
1358
|
function Zn(n, t, e, l) {
|
|
1339
|
-
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom",
|
|
1340
|
-
let
|
|
1359
|
+
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.crossOffset) ?? 0, a = (l == null ? void 0 : l.placement) ?? "bottom", d = n.getBoundingClientRect(), i = t.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Jn(d, i, a, o), k = ol(d, i, v), H = tl(k, v, o), K = nl(H, v, s), D = el(K, i, v);
|
|
1360
|
+
let g;
|
|
1341
1361
|
if (l != null && l.arrow) {
|
|
1342
|
-
if (!
|
|
1362
|
+
if (!c)
|
|
1343
1363
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
1344
|
-
|
|
1364
|
+
g = ll(D, d, i, c, v);
|
|
1345
1365
|
}
|
|
1346
|
-
return { overlayCoords:
|
|
1366
|
+
return { overlayCoords: D, arrowCoords: g, placement: v };
|
|
1347
1367
|
}
|
|
1348
1368
|
function Jn(n, t, e, l) {
|
|
1349
1369
|
const o = Xe(n, t, e, l);
|
|
1350
1370
|
if (Ye(o)) {
|
|
1351
|
-
const s =
|
|
1371
|
+
const s = be(e), d = {
|
|
1352
1372
|
top: "bottom",
|
|
1353
1373
|
bottom: "top",
|
|
1354
1374
|
left: "right",
|
|
1355
1375
|
right: "left"
|
|
1356
|
-
}[s],
|
|
1376
|
+
}[s], i = Xe(
|
|
1357
1377
|
n,
|
|
1358
1378
|
t,
|
|
1359
1379
|
d,
|
|
1360
1380
|
l
|
|
1361
1381
|
);
|
|
1362
|
-
if (Ye(
|
|
1382
|
+
if (Ye(i))
|
|
1363
1383
|
return e;
|
|
1364
|
-
const
|
|
1365
|
-
return
|
|
1384
|
+
const c = il(e);
|
|
1385
|
+
return c ? `${d}-${c}` : d;
|
|
1366
1386
|
}
|
|
1367
1387
|
return e;
|
|
1368
1388
|
}
|
|
1369
1389
|
function el(n, t, e) {
|
|
1370
|
-
const l = xe(e), o = (a, d,
|
|
1390
|
+
const l = xe(e), o = (a, d, i) => Math.min(Math.max(a, d), i), s = { ...n };
|
|
1371
1391
|
return l === "x" ? s.x = o(n.x, qe, window.innerWidth - t.width - qe) : s.y = o(n.y, qe, window.innerHeight - t.height - qe), s;
|
|
1372
1392
|
}
|
|
1373
1393
|
function tl(n, t, e) {
|
|
1374
|
-
const l =
|
|
1394
|
+
const l = be(t);
|
|
1375
1395
|
return {
|
|
1376
1396
|
x: n.x + (l === "left" ? -e : l === "right" ? e : 0),
|
|
1377
1397
|
y: n.y + (l === "top" ? -e : l === "bottom" ? e : 0)
|
|
1378
1398
|
};
|
|
1379
1399
|
}
|
|
1380
|
-
function nl(n, t, e
|
|
1400
|
+
function nl(n, t, e) {
|
|
1401
|
+
const l = be(t);
|
|
1402
|
+
return {
|
|
1403
|
+
x: n.x + (l === "top" || l === "bottom" ? e : 0),
|
|
1404
|
+
y: n.y + (l === "right" || l === "left" ? e : 0)
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
function ll(n, t, e, l, o) {
|
|
1381
1408
|
if (xe(o) === "y") {
|
|
1382
|
-
const a = t.top + t.height / 2, d = n.y + e.height / 2,
|
|
1383
|
-
if (
|
|
1409
|
+
const a = t.top + t.height / 2, d = n.y + e.height / 2, i = d - a, c = e.height / 2 - i - l.height / 2 + 2;
|
|
1410
|
+
if (c > 0 && c < e.height - l.height)
|
|
1384
1411
|
return {
|
|
1385
|
-
y:
|
|
1412
|
+
y: c
|
|
1386
1413
|
};
|
|
1387
1414
|
} else {
|
|
1388
|
-
const a = t.left + t.width / 2, d = n.x + e.width / 2,
|
|
1389
|
-
if (
|
|
1415
|
+
const a = t.left + t.width / 2, d = n.x + e.width / 2, i = d - a, c = e.width / 2 - i - l.width / 2 + 2;
|
|
1416
|
+
if (c > 0 && c < e.width - l.width)
|
|
1390
1417
|
return {
|
|
1391
|
-
x:
|
|
1418
|
+
x: c
|
|
1392
1419
|
};
|
|
1393
1420
|
}
|
|
1394
1421
|
}
|
|
1395
|
-
function
|
|
1422
|
+
function ol(n, t, e) {
|
|
1396
1423
|
const [l, o] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, a = n.y + n.height / 2 - t.height / 2;
|
|
1397
1424
|
let d;
|
|
1398
1425
|
switch (l) {
|
|
@@ -1413,13 +1440,13 @@ function ll(n, t, e) {
|
|
|
1413
1440
|
}
|
|
1414
1441
|
if (!o)
|
|
1415
1442
|
return d;
|
|
1416
|
-
const
|
|
1443
|
+
const c = xe(e) === "y" ? "height" : "width", v = xe(e), k = n[c] / 2 - t[c] / 2;
|
|
1417
1444
|
switch (o) {
|
|
1418
1445
|
case "start":
|
|
1419
|
-
d[
|
|
1446
|
+
d[v] -= k;
|
|
1420
1447
|
break;
|
|
1421
1448
|
case "end":
|
|
1422
|
-
d[
|
|
1449
|
+
d[v] += k;
|
|
1423
1450
|
break;
|
|
1424
1451
|
default:
|
|
1425
1452
|
throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
|
|
@@ -1427,7 +1454,7 @@ function ll(n, t, e) {
|
|
|
1427
1454
|
return d;
|
|
1428
1455
|
}
|
|
1429
1456
|
function Xe(n, t, e, l) {
|
|
1430
|
-
const o =
|
|
1457
|
+
const o = be(e);
|
|
1431
1458
|
let s = 0;
|
|
1432
1459
|
switch (o) {
|
|
1433
1460
|
case "top":
|
|
@@ -1447,31 +1474,31 @@ function Xe(n, t, e, l) {
|
|
|
1447
1474
|
}
|
|
1448
1475
|
return s;
|
|
1449
1476
|
}
|
|
1450
|
-
function
|
|
1477
|
+
function sl(n) {
|
|
1451
1478
|
return n === "x" ? "y" : "x";
|
|
1452
1479
|
}
|
|
1453
|
-
function
|
|
1454
|
-
const t =
|
|
1480
|
+
function al(n) {
|
|
1481
|
+
const t = be(n);
|
|
1455
1482
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1456
1483
|
}
|
|
1457
1484
|
function xe(n) {
|
|
1458
|
-
return
|
|
1485
|
+
return sl(al(n));
|
|
1459
1486
|
}
|
|
1460
|
-
function
|
|
1487
|
+
function be(n) {
|
|
1461
1488
|
const [t] = n.split("-");
|
|
1462
1489
|
return t;
|
|
1463
1490
|
}
|
|
1464
|
-
function
|
|
1491
|
+
function il(n) {
|
|
1465
1492
|
const [, t] = n.split("-");
|
|
1466
1493
|
return t;
|
|
1467
1494
|
}
|
|
1468
1495
|
function Ye(n) {
|
|
1469
1496
|
return n < 0;
|
|
1470
1497
|
}
|
|
1471
|
-
function
|
|
1498
|
+
function rl(n) {
|
|
1472
1499
|
return typeof n == "string" ? document.querySelector(n) : n;
|
|
1473
1500
|
}
|
|
1474
|
-
const
|
|
1501
|
+
const dl = ["role"], ul = /* @__PURE__ */ S({
|
|
1475
1502
|
inheritAttrs: !1,
|
|
1476
1503
|
__name: "QOverlay",
|
|
1477
1504
|
props: /* @__PURE__ */ G({
|
|
@@ -1486,6 +1513,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1486
1513
|
nonModal: { type: Boolean },
|
|
1487
1514
|
scrollLock: { type: Boolean },
|
|
1488
1515
|
offset: { default: 8 },
|
|
1516
|
+
crossOffset: { default: 0 },
|
|
1489
1517
|
persistent: { type: Boolean },
|
|
1490
1518
|
placement: { default: "right" },
|
|
1491
1519
|
spy: { type: Boolean },
|
|
@@ -1499,219 +1527,223 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1499
1527
|
}),
|
|
1500
1528
|
emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
|
|
1501
1529
|
setup(n, { emit: t }) {
|
|
1502
|
-
const e = n, l = t, o =
|
|
1530
|
+
const e = n, l = t, o = j(n, "modelValue"), s = y(() => [
|
|
1503
1531
|
"q-overlay",
|
|
1504
|
-
`q-overlay--${
|
|
1532
|
+
`q-overlay--${be(c.placement)}`,
|
|
1505
1533
|
{
|
|
1506
1534
|
"q-overlay--independent": a.value,
|
|
1507
1535
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1508
1536
|
},
|
|
1509
1537
|
e.class
|
|
1510
|
-
]), a = y(() => e.anchor === void 0), d = y(() => (o.value ||
|
|
1538
|
+
]), a = y(() => e.anchor === void 0), d = y(() => (o.value || c.animating) && !e.nonModal), i = y(() => (o.value || c.animating) && e.scrollLock), c = Ke({
|
|
1511
1539
|
animating: !1,
|
|
1512
1540
|
top: 0,
|
|
1513
1541
|
left: 0,
|
|
1514
1542
|
width: 0,
|
|
1515
1543
|
placement: e.placement
|
|
1516
|
-
}),
|
|
1544
|
+
}), v = Ke({
|
|
1517
1545
|
top: void 0,
|
|
1518
1546
|
left: void 0,
|
|
1519
1547
|
hidden: !0
|
|
1520
|
-
}),
|
|
1521
|
-
|
|
1522
|
-
const
|
|
1548
|
+
}), k = y(() => c.top !== 0 && c.left !== 0);
|
|
1549
|
+
ne(o, () => c.animating = !0);
|
|
1550
|
+
const H = y(() => {
|
|
1523
1551
|
if (a.value) return;
|
|
1524
|
-
const
|
|
1552
|
+
const r = b(), L = e.width === "anchor", T = L ? r == null ? void 0 : r.getBoundingClientRect().width : void 0;
|
|
1525
1553
|
return {
|
|
1526
|
-
top: `${
|
|
1527
|
-
left: `${
|
|
1528
|
-
width:
|
|
1554
|
+
top: `${c.top}px`,
|
|
1555
|
+
left: `${c.left}px`,
|
|
1556
|
+
width: T !== void 0 ? `${T}px` : void 0
|
|
1529
1557
|
};
|
|
1530
|
-
}),
|
|
1558
|
+
}), K = y(() => {
|
|
1531
1559
|
if (e.arrow)
|
|
1532
1560
|
return {
|
|
1533
|
-
top:
|
|
1534
|
-
left:
|
|
1535
|
-
opacity:
|
|
1561
|
+
top: v.top !== void 0 ? `${v.top}px` : void 0,
|
|
1562
|
+
left: v.left !== void 0 ? `${v.left}px` : void 0,
|
|
1563
|
+
opacity: v.hidden ? 0 : 1
|
|
1536
1564
|
};
|
|
1537
|
-
}),
|
|
1538
|
-
function
|
|
1539
|
-
const
|
|
1540
|
-
if (!
|
|
1565
|
+
}), D = V(null), g = V(null);
|
|
1566
|
+
function B() {
|
|
1567
|
+
const r = b();
|
|
1568
|
+
if (!r || !g.value)
|
|
1541
1569
|
return;
|
|
1542
|
-
const
|
|
1570
|
+
const L = {
|
|
1543
1571
|
placement: e.placement,
|
|
1544
1572
|
width: e.width,
|
|
1545
1573
|
offset: e.offset,
|
|
1574
|
+
crossOffset: e.crossOffset,
|
|
1546
1575
|
arrow: e.arrow
|
|
1547
|
-
},
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
(
|
|
1551
|
-
|
|
1576
|
+
}, T = Zn(
|
|
1577
|
+
r,
|
|
1578
|
+
g.value,
|
|
1579
|
+
(D == null ? void 0 : D.value) ?? void 0,
|
|
1580
|
+
L
|
|
1552
1581
|
);
|
|
1553
|
-
|
|
1582
|
+
c.left = T.overlayCoords.x, c.top = T.overlayCoords.y, c.placement = T.placement, v.hidden = T.arrowCoords === void 0, T.arrowCoords && (v.top = T.arrowCoords.y, v.left = T.arrowCoords.x);
|
|
1554
1583
|
}
|
|
1555
|
-
|
|
1584
|
+
ne(
|
|
1556
1585
|
() => e.placement,
|
|
1557
|
-
() =>
|
|
1586
|
+
() => oe(B)
|
|
1558
1587
|
);
|
|
1559
1588
|
let M;
|
|
1560
|
-
function
|
|
1561
|
-
|
|
1589
|
+
function F() {
|
|
1590
|
+
te(0);
|
|
1562
1591
|
}
|
|
1563
|
-
function
|
|
1564
|
-
|
|
1592
|
+
function ee() {
|
|
1593
|
+
te(e.delay);
|
|
1565
1594
|
}
|
|
1566
|
-
function
|
|
1567
|
-
M
|
|
1595
|
+
function te(r) {
|
|
1596
|
+
M && E(), M = window.setTimeout(() => {
|
|
1568
1597
|
o.value = !0;
|
|
1569
|
-
},
|
|
1598
|
+
}, r);
|
|
1570
1599
|
}
|
|
1571
|
-
function
|
|
1572
|
-
if (
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1600
|
+
function x() {
|
|
1601
|
+
if (M && E(), o.value = !1, e.anchor && e.trigger === "click") {
|
|
1602
|
+
const r = b();
|
|
1603
|
+
r == null || r.focus();
|
|
1575
1604
|
}
|
|
1576
1605
|
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1606
|
+
function E() {
|
|
1607
|
+
clearTimeout(M), M = void 0;
|
|
1608
|
+
}
|
|
1609
|
+
ne(k, () => oe(P));
|
|
1610
|
+
function P() {
|
|
1579
1611
|
l("enter");
|
|
1580
1612
|
}
|
|
1581
|
-
let
|
|
1613
|
+
let le;
|
|
1582
1614
|
function ce() {
|
|
1583
|
-
window.clearTimeout(
|
|
1615
|
+
window.clearTimeout(le), le = window.setTimeout(() => c.animating = !1, 200), l("leave");
|
|
1584
1616
|
}
|
|
1585
|
-
function
|
|
1586
|
-
return e.anchor ?
|
|
1617
|
+
function b() {
|
|
1618
|
+
return e.anchor ? rl(e.anchor) : null;
|
|
1587
1619
|
}
|
|
1588
|
-
let
|
|
1589
|
-
function
|
|
1590
|
-
const
|
|
1591
|
-
if (
|
|
1592
|
-
switch (
|
|
1620
|
+
let f;
|
|
1621
|
+
function q() {
|
|
1622
|
+
const r = b();
|
|
1623
|
+
if (r)
|
|
1624
|
+
switch (f = new MutationObserver(B), f.observe(r, {
|
|
1593
1625
|
attributes: !1,
|
|
1594
1626
|
childList: !0,
|
|
1595
1627
|
characterData: !0,
|
|
1596
1628
|
subtree: !0
|
|
1597
1629
|
}), e.trigger) {
|
|
1598
1630
|
case "click":
|
|
1599
|
-
|
|
1631
|
+
r.addEventListener("click", F);
|
|
1600
1632
|
break;
|
|
1601
1633
|
case "hover":
|
|
1602
|
-
|
|
1634
|
+
r.addEventListener("mouseenter", ee), r.addEventListener("mouseleave", x), r.addEventListener("focusin", F), r.addEventListener("focusout", x);
|
|
1603
1635
|
break;
|
|
1604
1636
|
}
|
|
1605
1637
|
}
|
|
1606
|
-
function
|
|
1607
|
-
const
|
|
1608
|
-
if (
|
|
1609
|
-
switch (
|
|
1638
|
+
function z() {
|
|
1639
|
+
const r = b();
|
|
1640
|
+
if (r)
|
|
1641
|
+
switch (f == null || f.disconnect(), e.trigger) {
|
|
1610
1642
|
case "click":
|
|
1611
|
-
|
|
1643
|
+
r.removeEventListener("click", F);
|
|
1612
1644
|
break;
|
|
1613
1645
|
case "hover":
|
|
1614
|
-
|
|
1646
|
+
r.removeEventListener("mouseenter", ee), r.removeEventListener("mouseleave", x), r.removeEventListener("focusin", F), r.removeEventListener("focusout", x);
|
|
1615
1647
|
break;
|
|
1616
1648
|
}
|
|
1617
1649
|
}
|
|
1618
|
-
function
|
|
1619
|
-
window.addEventListener("resize",
|
|
1650
|
+
function U() {
|
|
1651
|
+
window.addEventListener("resize", B), e.scrollLock || window.addEventListener("scroll", B);
|
|
1620
1652
|
}
|
|
1621
|
-
function
|
|
1622
|
-
window.removeEventListener("resize",
|
|
1653
|
+
function Y() {
|
|
1654
|
+
window.removeEventListener("resize", B), e.scrollLock || window.removeEventListener("scroll", B);
|
|
1623
1655
|
}
|
|
1624
|
-
let
|
|
1625
|
-
function
|
|
1626
|
-
|
|
1656
|
+
let W;
|
|
1657
|
+
function ie() {
|
|
1658
|
+
b() ? (B(), W = window.setTimeout(ie, 100)) : x();
|
|
1627
1659
|
}
|
|
1628
1660
|
function Be() {
|
|
1629
|
-
a.value || (
|
|
1630
|
-
var
|
|
1631
|
-
return (
|
|
1661
|
+
a.value || (U(), e.spy ? ie() : B()), (a.value || e.trigger === "click") && oe(() => {
|
|
1662
|
+
var r;
|
|
1663
|
+
return (r = g.value) == null ? void 0 : r.focus();
|
|
1632
1664
|
});
|
|
1633
1665
|
}
|
|
1634
|
-
function ke() {
|
|
1635
|
-
a.value || re(), e.spy && (clearTimeout(Y), Y = void 0), u.top = 0, u.left = 0;
|
|
1636
|
-
}
|
|
1637
1666
|
function we() {
|
|
1638
|
-
|
|
1667
|
+
a.value || Y(), e.spy && (clearTimeout(W), W = void 0), c.top = 0, c.left = 0;
|
|
1639
1668
|
}
|
|
1640
|
-
|
|
1641
|
-
|
|
1669
|
+
function ge() {
|
|
1670
|
+
e.persistent || x();
|
|
1671
|
+
}
|
|
1672
|
+
return Oe(() => {
|
|
1673
|
+
oe(q);
|
|
1642
1674
|
}), _t(() => {
|
|
1643
|
-
|
|
1644
|
-
}),
|
|
1675
|
+
z(), we();
|
|
1676
|
+
}), ne(
|
|
1645
1677
|
o,
|
|
1646
|
-
(
|
|
1647
|
-
|
|
1678
|
+
(r) => {
|
|
1679
|
+
oe(() => r ? Be() : we());
|
|
1648
1680
|
},
|
|
1649
1681
|
{ immediate: !0 }
|
|
1650
|
-
), (
|
|
1651
|
-
(
|
|
1652
|
-
disabled: !o.value && !
|
|
1682
|
+
), (r, L) => (u(), m(R, null, [
|
|
1683
|
+
(u(), I($t, {
|
|
1684
|
+
disabled: !o.value && !c.animating || e.inline,
|
|
1653
1685
|
to: e.attach
|
|
1654
1686
|
}, [
|
|
1655
|
-
d.value ? (
|
|
1687
|
+
d.value ? (u(), m("div", {
|
|
1656
1688
|
key: 0,
|
|
1657
|
-
class:
|
|
1689
|
+
class: A([
|
|
1658
1690
|
e.backdropClass,
|
|
1659
1691
|
"q-overlay__underlay",
|
|
1660
1692
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1661
1693
|
])
|
|
1662
|
-
}, null, 2)) :
|
|
1663
|
-
|
|
1694
|
+
}, null, 2)) : $("", !0),
|
|
1695
|
+
O(kt, {
|
|
1664
1696
|
name: e.transition,
|
|
1665
1697
|
appear: "",
|
|
1666
1698
|
onLeave: ce
|
|
1667
1699
|
}, {
|
|
1668
|
-
default:
|
|
1669
|
-
o.value ? (
|
|
1700
|
+
default: _(() => [
|
|
1701
|
+
o.value ? (u(), m("div", {
|
|
1670
1702
|
key: 0,
|
|
1671
|
-
class:
|
|
1672
|
-
style: fe(
|
|
1703
|
+
class: A(s.value),
|
|
1704
|
+
style: fe(H.value)
|
|
1673
1705
|
}, [
|
|
1674
|
-
|
|
1706
|
+
w("div", X({
|
|
1675
1707
|
ref_key: "overlayRef",
|
|
1676
|
-
ref:
|
|
1708
|
+
ref: g,
|
|
1677
1709
|
class: "q-overlay__content",
|
|
1678
1710
|
tabindex: "-1",
|
|
1679
1711
|
role: d.value ? "dialog" : void 0
|
|
1680
|
-
},
|
|
1681
|
-
onKeydown:
|
|
1682
|
-
onBlur:
|
|
1712
|
+
}, r.$attrs, {
|
|
1713
|
+
onKeydown: Ee(ge, ["escape"]),
|
|
1714
|
+
onBlur: ge
|
|
1683
1715
|
}), [
|
|
1684
|
-
e.arrow ? (
|
|
1716
|
+
e.arrow ? (u(), m("div", {
|
|
1685
1717
|
key: 0,
|
|
1686
1718
|
ref_key: "arrowRef",
|
|
1687
|
-
ref:
|
|
1719
|
+
ref: D,
|
|
1688
1720
|
role: "presentation",
|
|
1689
1721
|
class: "q-overlay__arrow",
|
|
1690
|
-
style: fe(
|
|
1691
|
-
}, null, 4)) :
|
|
1692
|
-
p(
|
|
1693
|
-
], 16,
|
|
1694
|
-
], 6)) :
|
|
1722
|
+
style: fe(K.value)
|
|
1723
|
+
}, null, 4)) : $("", !0),
|
|
1724
|
+
p(r.$slots, "default")
|
|
1725
|
+
], 16, dl)
|
|
1726
|
+
], 6)) : $("", !0)
|
|
1695
1727
|
]),
|
|
1696
1728
|
_: 3
|
|
1697
1729
|
}, 8, ["name"])
|
|
1698
1730
|
], 8, ["disabled", "to"])),
|
|
1699
|
-
|
|
1731
|
+
i.value ? (u(), I(h(Yn), { key: 0 })) : $("", !0)
|
|
1700
1732
|
], 64));
|
|
1701
1733
|
}
|
|
1702
|
-
}),
|
|
1734
|
+
}), pe = C(ul), cl = ["id"], fl = {
|
|
1703
1735
|
key: 0,
|
|
1704
1736
|
class: "q-field__label"
|
|
1705
|
-
},
|
|
1737
|
+
}, pl = ["for"], ml = {
|
|
1706
1738
|
key: 0,
|
|
1707
1739
|
class: "q-field__prepend"
|
|
1708
|
-
},
|
|
1740
|
+
}, hl = {
|
|
1709
1741
|
key: 1,
|
|
1710
1742
|
class: "q-field__append"
|
|
1711
|
-
},
|
|
1743
|
+
}, vl = {
|
|
1712
1744
|
key: 1,
|
|
1713
1745
|
class: "q-field__extras"
|
|
1714
|
-
}, yl = /* @__PURE__ */
|
|
1746
|
+
}, yl = /* @__PURE__ */ S({
|
|
1715
1747
|
inheritAttrs: !1,
|
|
1716
1748
|
__name: "QField",
|
|
1717
1749
|
props: {
|
|
@@ -1725,12 +1757,12 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1725
1757
|
class: { default: void 0 }
|
|
1726
1758
|
},
|
|
1727
1759
|
setup(n, { expose: t }) {
|
|
1728
|
-
const e = n, l =
|
|
1760
|
+
const e = n, l = ue(e.id), o = V(null), s = y(() => e.required && !e.readonly && !e.disabled);
|
|
1729
1761
|
return t({
|
|
1730
1762
|
fieldRef: o
|
|
1731
|
-
}), (a, d) => (
|
|
1732
|
-
id:
|
|
1733
|
-
class:
|
|
1763
|
+
}), (a, d) => (u(), m("div", {
|
|
1764
|
+
id: h(l),
|
|
1765
|
+
class: A([
|
|
1734
1766
|
"q-field",
|
|
1735
1767
|
`q-field--${e.size}`,
|
|
1736
1768
|
{
|
|
@@ -1741,34 +1773,34 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1741
1773
|
e.class
|
|
1742
1774
|
])
|
|
1743
1775
|
}, [
|
|
1744
|
-
e.label ? (
|
|
1776
|
+
e.label ? (u(), m("div", fl, [
|
|
1745
1777
|
p(a.$slots, "label.prepend"),
|
|
1746
|
-
|
|
1778
|
+
w("label", {
|
|
1747
1779
|
for: e.for
|
|
1748
|
-
},
|
|
1780
|
+
}, Q(e.label), 9, pl),
|
|
1749
1781
|
p(a.$slots, "label.append")
|
|
1750
|
-
])) :
|
|
1782
|
+
])) : $("", !0),
|
|
1751
1783
|
p(a.$slots, "control", {}, () => [
|
|
1752
|
-
|
|
1784
|
+
w("div", X({
|
|
1753
1785
|
ref_key: "fieldRef",
|
|
1754
1786
|
ref: o,
|
|
1755
1787
|
class: "q-field__control"
|
|
1756
1788
|
}, a.$attrs), [
|
|
1757
|
-
a.$slots.prepend ? (
|
|
1789
|
+
a.$slots.prepend ? (u(), m("div", ml, [
|
|
1758
1790
|
p(a.$slots, "prepend")
|
|
1759
|
-
])) :
|
|
1791
|
+
])) : $("", !0),
|
|
1760
1792
|
p(a.$slots, "default"),
|
|
1761
|
-
a.$slots.append ? (
|
|
1793
|
+
a.$slots.append ? (u(), m("div", hl, [
|
|
1762
1794
|
p(a.$slots, "append")
|
|
1763
|
-
])) :
|
|
1795
|
+
])) : $("", !0)
|
|
1764
1796
|
], 16)
|
|
1765
1797
|
]),
|
|
1766
|
-
a.$slots.extras ? (
|
|
1798
|
+
a.$slots.extras ? (u(), m("div", vl, [
|
|
1767
1799
|
p(a.$slots, "extras")
|
|
1768
|
-
])) :
|
|
1769
|
-
], 10,
|
|
1800
|
+
])) : $("", !0)
|
|
1801
|
+
], 10, cl));
|
|
1770
1802
|
}
|
|
1771
|
-
}),
|
|
1803
|
+
}), Se = C(yl), bl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], gl = /* @__PURE__ */ S({
|
|
1772
1804
|
inheritAttrs: !1,
|
|
1773
1805
|
__name: "QTextField",
|
|
1774
1806
|
props: /* @__PURE__ */ G({
|
|
@@ -1789,38 +1821,38 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1789
1821
|
}),
|
|
1790
1822
|
emits: ["update:modelValue"],
|
|
1791
1823
|
setup(n, { expose: t }) {
|
|
1792
|
-
const e = n, l =
|
|
1824
|
+
const e = n, l = j(n, "modelValue"), o = ue(e.id), s = V(null), a = V(null), d = y(
|
|
1793
1825
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1794
1826
|
);
|
|
1795
1827
|
return t({
|
|
1796
1828
|
fieldRef: y(() => {
|
|
1797
|
-
var
|
|
1798
|
-
return (
|
|
1829
|
+
var i;
|
|
1830
|
+
return (i = s.value) == null ? void 0 : i.fieldRef;
|
|
1799
1831
|
}),
|
|
1800
1832
|
inputRef: a
|
|
1801
|
-
}), (
|
|
1833
|
+
}), (i, c) => (u(), I(h(Se), {
|
|
1802
1834
|
ref_key: "fieldRef",
|
|
1803
1835
|
ref: s,
|
|
1804
|
-
class:
|
|
1805
|
-
for:
|
|
1836
|
+
class: A(["q-text-field", e.class]),
|
|
1837
|
+
for: h(o),
|
|
1806
1838
|
label: e.label,
|
|
1807
1839
|
size: e.size,
|
|
1808
1840
|
readonly: e.readonly,
|
|
1809
1841
|
disabled: e.disabled,
|
|
1810
1842
|
required: e.required
|
|
1811
1843
|
}, ye({
|
|
1812
|
-
"label.prepend":
|
|
1813
|
-
p(
|
|
1844
|
+
"label.prepend": _(() => [
|
|
1845
|
+
p(i.$slots, "label.prepend")
|
|
1814
1846
|
]),
|
|
1815
|
-
"label.append":
|
|
1816
|
-
p(
|
|
1847
|
+
"label.append": _(() => [
|
|
1848
|
+
p(i.$slots, "label.append")
|
|
1817
1849
|
]),
|
|
1818
|
-
default:
|
|
1819
|
-
wt(
|
|
1820
|
-
id:
|
|
1850
|
+
default: _(() => [
|
|
1851
|
+
wt(w("input", X({
|
|
1852
|
+
id: h(o),
|
|
1821
1853
|
ref_key: "inputRef",
|
|
1822
1854
|
ref: a,
|
|
1823
|
-
"onUpdate:modelValue":
|
|
1855
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => l.value = v),
|
|
1824
1856
|
class: "q-text-field__input",
|
|
1825
1857
|
type: e.type,
|
|
1826
1858
|
role: e.role,
|
|
@@ -1829,53 +1861,53 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1829
1861
|
readonly: e.readonly,
|
|
1830
1862
|
disabled: e.disabled,
|
|
1831
1863
|
maxlength: e.maxLength
|
|
1832
|
-
},
|
|
1864
|
+
}, i.$attrs), null, 16, bl), [
|
|
1833
1865
|
[qt, l.value]
|
|
1834
1866
|
])
|
|
1835
1867
|
]),
|
|
1836
1868
|
_: 2
|
|
1837
1869
|
}, [
|
|
1838
|
-
|
|
1870
|
+
i.$slots.prepend ? {
|
|
1839
1871
|
name: "prepend",
|
|
1840
|
-
fn:
|
|
1841
|
-
p(
|
|
1872
|
+
fn: _(() => [
|
|
1873
|
+
p(i.$slots, "prepend")
|
|
1842
1874
|
]),
|
|
1843
1875
|
key: "0"
|
|
1844
1876
|
} : void 0,
|
|
1845
|
-
|
|
1877
|
+
i.$slots.append ? {
|
|
1846
1878
|
name: "append",
|
|
1847
|
-
fn:
|
|
1848
|
-
p(
|
|
1879
|
+
fn: _(() => [
|
|
1880
|
+
p(i.$slots, "append")
|
|
1849
1881
|
]),
|
|
1850
1882
|
key: "1"
|
|
1851
1883
|
} : void 0,
|
|
1852
|
-
|
|
1884
|
+
i.$slots.extras ? {
|
|
1853
1885
|
name: "extras",
|
|
1854
|
-
fn:
|
|
1855
|
-
p(
|
|
1886
|
+
fn: _(() => [
|
|
1887
|
+
p(i.$slots, "extras")
|
|
1856
1888
|
]),
|
|
1857
1889
|
key: "2"
|
|
1858
1890
|
} : void 0
|
|
1859
1891
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1860
1892
|
}
|
|
1861
|
-
}), ft =
|
|
1893
|
+
}), ft = C(gl), _l = {
|
|
1862
1894
|
noData: "No data available",
|
|
1863
1895
|
clearValue: "Clear value",
|
|
1864
1896
|
showOptions: "Show options"
|
|
1865
|
-
},
|
|
1897
|
+
}, $l = {
|
|
1866
1898
|
chevron: {
|
|
1867
1899
|
icon: "chevron-down"
|
|
1868
1900
|
},
|
|
1869
1901
|
clear: {
|
|
1870
1902
|
icon: "close"
|
|
1871
1903
|
}
|
|
1872
|
-
},
|
|
1904
|
+
}, kl = ["data-key"], wl = {
|
|
1873
1905
|
key: 0,
|
|
1874
1906
|
class: "q-select__loader"
|
|
1875
|
-
},
|
|
1907
|
+
}, ql = {
|
|
1876
1908
|
key: 2,
|
|
1877
1909
|
class: "q-select__loader"
|
|
1878
|
-
},
|
|
1910
|
+
}, xl = /* @__PURE__ */ S({
|
|
1879
1911
|
inheritAttrs: !1,
|
|
1880
1912
|
__name: "QCombobox",
|
|
1881
1913
|
props: /* @__PURE__ */ G({
|
|
@@ -1896,8 +1928,8 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1896
1928
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1897
1929
|
size: { default: void 0 },
|
|
1898
1930
|
class: { default: void 0 },
|
|
1899
|
-
icons: { default: () =>
|
|
1900
|
-
texts: { default: () =>
|
|
1931
|
+
icons: { default: () => $l },
|
|
1932
|
+
texts: { default: () => _l }
|
|
1901
1933
|
}, {
|
|
1902
1934
|
modelValue: {
|
|
1903
1935
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1910,152 +1942,152 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
1910
1942
|
}),
|
|
1911
1943
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1912
1944
|
setup(n, { expose: t, emit: e }) {
|
|
1913
|
-
const l = n, o = e, s =
|
|
1914
|
-
|
|
1915
|
-
const
|
|
1916
|
-
var
|
|
1917
|
-
return l.filterMode === "manual" || !
|
|
1918
|
-
(
|
|
1945
|
+
const l = n, o = e, s = j(n, "modelValue"), a = j(n, "open"), d = j(n, "search"), i = V(void 0), c = V(null), v = V(null), k = V(null), H = V(null);
|
|
1946
|
+
Oe(x);
|
|
1947
|
+
const K = y(() => l.clearable && !l.readonly && !l.disabled), D = y(() => {
|
|
1948
|
+
var r;
|
|
1949
|
+
return l.filterMode === "manual" || !ee.value ? l.items : (r = l.items) == null ? void 0 : r.filter(
|
|
1950
|
+
(L) => L[l.itemLabel].toLowerCase().startsWith(d.value.toLowerCase())
|
|
1919
1951
|
);
|
|
1920
|
-
}),
|
|
1921
|
-
var
|
|
1922
|
-
return (
|
|
1923
|
-
}),
|
|
1924
|
-
const
|
|
1925
|
-
if (
|
|
1926
|
-
return
|
|
1927
|
-
}),
|
|
1928
|
-
var
|
|
1929
|
-
if (
|
|
1952
|
+
}), g = y(() => {
|
|
1953
|
+
var r;
|
|
1954
|
+
return (r = l.items) == null ? void 0 : r.find((L) => L[l.itemValue] === s.value);
|
|
1955
|
+
}), B = y(() => g.value === void 0), M = y(() => {
|
|
1956
|
+
const r = i.value;
|
|
1957
|
+
if (r !== void 0 && D.value[r])
|
|
1958
|
+
return D.value[r];
|
|
1959
|
+
}), F = y(() => {
|
|
1960
|
+
var L;
|
|
1961
|
+
if (i.value === void 0)
|
|
1930
1962
|
return;
|
|
1931
|
-
const
|
|
1932
|
-
return
|
|
1933
|
-
}),
|
|
1934
|
-
var
|
|
1935
|
-
return d.value.length > 0 && d.value !== ((
|
|
1963
|
+
const r = (L = v.value) == null ? void 0 : L.getItem(i.value);
|
|
1964
|
+
return r == null ? void 0 : r.id;
|
|
1965
|
+
}), ee = y(() => {
|
|
1966
|
+
var r;
|
|
1967
|
+
return d.value.length > 0 && d.value !== ((r = g.value) == null ? void 0 : r[l.itemLabel]);
|
|
1936
1968
|
});
|
|
1937
|
-
function
|
|
1938
|
-
s.value =
|
|
1969
|
+
function te(r) {
|
|
1970
|
+
s.value = r, P();
|
|
1939
1971
|
}
|
|
1940
|
-
function
|
|
1941
|
-
var
|
|
1942
|
-
const
|
|
1943
|
-
d.value !==
|
|
1972
|
+
function x() {
|
|
1973
|
+
var L;
|
|
1974
|
+
const r = ((L = g.value) == null ? void 0 : L[l.itemLabel]) || "";
|
|
1975
|
+
d.value !== r && (d.value = r);
|
|
1944
1976
|
}
|
|
1945
|
-
function
|
|
1946
|
-
a.value || l.readonly || l.disabled || (o("before-show"), a.value = !0,
|
|
1977
|
+
function E() {
|
|
1978
|
+
a.value || l.readonly || l.disabled || (o("before-show"), a.value = !0, W());
|
|
1947
1979
|
}
|
|
1948
|
-
function
|
|
1949
|
-
a.value && (o("before-hide"), a.value = !1,
|
|
1980
|
+
function P() {
|
|
1981
|
+
a.value && (o("before-hide"), a.value = !1, i.value = void 0);
|
|
1950
1982
|
}
|
|
1951
|
-
function
|
|
1952
|
-
a.value ?
|
|
1983
|
+
function le() {
|
|
1984
|
+
a.value ? P() : b();
|
|
1953
1985
|
}
|
|
1954
|
-
function
|
|
1955
|
-
|
|
1986
|
+
function ce() {
|
|
1987
|
+
K.value && (s.value = l.emptyValue, i.value = void 0, W());
|
|
1956
1988
|
}
|
|
1957
|
-
function
|
|
1958
|
-
if (
|
|
1959
|
-
const
|
|
1960
|
-
|
|
1989
|
+
function b() {
|
|
1990
|
+
if (E(), g.value !== void 0) {
|
|
1991
|
+
const r = D.value.indexOf(g.value);
|
|
1992
|
+
r !== -1 && oe(() => ge(r));
|
|
1961
1993
|
}
|
|
1962
1994
|
}
|
|
1963
|
-
function
|
|
1964
|
-
var
|
|
1965
|
-
if (!(!
|
|
1966
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1967
|
-
|
|
1968
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
1969
|
-
a.value ?
|
|
1970
|
-
if (
|
|
1971
|
-
|
|
1995
|
+
function f(r) {
|
|
1996
|
+
var L, T;
|
|
1997
|
+
if (!(!r.key || l.readonly || l.disabled))
|
|
1998
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
|
|
1999
|
+
x(), a.value && P();
|
|
2000
|
+
else if (["ArrowDown", "ArrowUp"].includes(r.key))
|
|
2001
|
+
a.value ? oe(() => {
|
|
2002
|
+
if (i.value === void 0)
|
|
2003
|
+
q();
|
|
1972
2004
|
else {
|
|
1973
|
-
const
|
|
1974
|
-
|
|
2005
|
+
const Z = r.key === "ArrowDown" ? "next" : "prev";
|
|
2006
|
+
U(i.value, Z);
|
|
1975
2007
|
}
|
|
1976
|
-
}) : (
|
|
1977
|
-
|
|
2008
|
+
}) : (E(), oe(() => {
|
|
2009
|
+
r.key === "ArrowDown" ? q() : z();
|
|
1978
2010
|
}));
|
|
1979
|
-
else if (
|
|
2011
|
+
else if (r.key === "Enter") {
|
|
1980
2012
|
if (M.value === void 0) return;
|
|
1981
|
-
|
|
1982
|
-
} else
|
|
2013
|
+
te(M.value[l.itemValue]);
|
|
2014
|
+
} else r.key === "Home" ? i.value = (L = v.value) == null ? void 0 : L.getFirstFocusableItemIndex() : r.key === "End" ? i.value = (T = v.value) == null ? void 0 : T.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && E();
|
|
1983
2015
|
}
|
|
1984
|
-
function
|
|
1985
|
-
var
|
|
1986
|
-
if (
|
|
1987
|
-
|
|
2016
|
+
function q() {
|
|
2017
|
+
var r, L;
|
|
2018
|
+
if (B.value)
|
|
2019
|
+
i.value = (L = v.value) == null ? void 0 : L.getFirstFocusableItemIndex();
|
|
1988
2020
|
else {
|
|
1989
|
-
const
|
|
1990
|
-
(
|
|
2021
|
+
const T = D.value.findIndex(
|
|
2022
|
+
(Z) => Z[l.itemValue] === s.value
|
|
1991
2023
|
);
|
|
1992
|
-
|
|
2024
|
+
T === -1 ? i.value = (r = v.value) == null ? void 0 : r.getFirstFocusableItemIndex() : i.value = T;
|
|
1993
2025
|
}
|
|
1994
2026
|
}
|
|
1995
|
-
function
|
|
1996
|
-
var
|
|
1997
|
-
|
|
2027
|
+
function z() {
|
|
2028
|
+
var r;
|
|
2029
|
+
i.value = (r = v.value) == null ? void 0 : r.getLastFocusableItemIndex();
|
|
1998
2030
|
}
|
|
1999
|
-
function
|
|
2000
|
-
var
|
|
2001
|
-
|
|
2031
|
+
function U(r, L) {
|
|
2032
|
+
var T;
|
|
2033
|
+
i.value = (T = v.value) == null ? void 0 : T.getAdjacentItemIndex(r, L);
|
|
2002
2034
|
}
|
|
2003
|
-
function Y(
|
|
2004
|
-
var
|
|
2005
|
-
const
|
|
2006
|
-
if (
|
|
2007
|
-
|
|
2035
|
+
function Y(r) {
|
|
2036
|
+
var me, Ne, Re, Ge;
|
|
2037
|
+
const L = ((me = k == null ? void 0 : k.value) == null ? void 0 : me.$el) === r.relatedTarget, T = (Re = (Ne = c == null ? void 0 : c.value) == null ? void 0 : Ne.$el) == null ? void 0 : Re.contains(r.relatedTarget), Z = (Ge = H == null ? void 0 : H.value) == null ? void 0 : Ge.contains(r.relatedTarget);
|
|
2038
|
+
if (L || Z || T) {
|
|
2039
|
+
r.preventDefault(), r.stopPropagation();
|
|
2008
2040
|
return;
|
|
2009
2041
|
}
|
|
2010
|
-
|
|
2042
|
+
P(), K.value && !d.value && (s.value = l.emptyValue), x();
|
|
2011
2043
|
}
|
|
2012
|
-
function
|
|
2013
|
-
var
|
|
2014
|
-
(
|
|
2044
|
+
function W() {
|
|
2045
|
+
var r, L;
|
|
2046
|
+
(L = (r = c.value) == null ? void 0 : r.inputRef) == null || L.focus();
|
|
2015
2047
|
}
|
|
2016
|
-
function
|
|
2017
|
-
|
|
2048
|
+
function ie() {
|
|
2049
|
+
W();
|
|
2018
2050
|
}
|
|
2019
|
-
function
|
|
2051
|
+
function Be() {
|
|
2020
2052
|
o("show");
|
|
2021
2053
|
}
|
|
2022
2054
|
function we() {
|
|
2023
2055
|
o("hide");
|
|
2024
2056
|
}
|
|
2025
|
-
function
|
|
2026
|
-
var
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2057
|
+
function ge(r) {
|
|
2058
|
+
var T;
|
|
2059
|
+
const L = (T = v.value) == null ? void 0 : T.getItem(r);
|
|
2060
|
+
v.value && (v.value.$el.scrollTop = L == null ? void 0 : L.offsetTop);
|
|
2029
2061
|
}
|
|
2030
|
-
return
|
|
2062
|
+
return ne(s, x), ne(
|
|
2031
2063
|
() => l.items,
|
|
2032
|
-
(
|
|
2033
|
-
if (!
|
|
2034
|
-
const
|
|
2035
|
-
d.value === (
|
|
2064
|
+
(r, L) => {
|
|
2065
|
+
if (!B.value) {
|
|
2066
|
+
const T = L.find((Z) => Z[l.itemValue] === s.value);
|
|
2067
|
+
d.value === (T == null ? void 0 : T[l.itemLabel]) && x();
|
|
2036
2068
|
}
|
|
2037
2069
|
},
|
|
2038
2070
|
{ deep: !0 }
|
|
2039
|
-
),
|
|
2040
|
-
|
|
2041
|
-
}),
|
|
2042
|
-
|
|
2043
|
-
}),
|
|
2071
|
+
), ne(i, (r) => {
|
|
2072
|
+
r !== void 0 && ge(r);
|
|
2073
|
+
}), ne(d, (r) => {
|
|
2074
|
+
r && a.value && l.selectionMode === "automatic" && oe(q);
|
|
2075
|
+
}), ne(
|
|
2044
2076
|
() => l.loading,
|
|
2045
|
-
(
|
|
2046
|
-
!
|
|
2077
|
+
(r) => {
|
|
2078
|
+
!r && a.value && oe(q);
|
|
2047
2079
|
}
|
|
2048
2080
|
), t({
|
|
2049
|
-
triggerEl:
|
|
2050
|
-
}), (
|
|
2051
|
-
var
|
|
2052
|
-
return
|
|
2053
|
-
|
|
2081
|
+
triggerEl: c
|
|
2082
|
+
}), (r, L) => {
|
|
2083
|
+
var T;
|
|
2084
|
+
return u(), m(R, null, [
|
|
2085
|
+
O(h(ft), X({
|
|
2054
2086
|
id: l.id,
|
|
2055
2087
|
ref_key: "triggerEl",
|
|
2056
|
-
ref:
|
|
2088
|
+
ref: c,
|
|
2057
2089
|
modelValue: d.value,
|
|
2058
|
-
"onUpdate:modelValue":
|
|
2090
|
+
"onUpdate:modelValue": L[0] || (L[0] = (Z) => d.value = Z),
|
|
2059
2091
|
label: l.label,
|
|
2060
2092
|
required: l.required,
|
|
2061
2093
|
role: "combobox",
|
|
@@ -2076,122 +2108,122 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2076
2108
|
"aria-expanded": a.value,
|
|
2077
2109
|
"aria-haspopup": "listbox",
|
|
2078
2110
|
"aria-autocomplete": "list",
|
|
2079
|
-
"aria-activedescendant":
|
|
2111
|
+
"aria-activedescendant": F.value,
|
|
2080
2112
|
size: l.size
|
|
2081
|
-
},
|
|
2082
|
-
onClick:
|
|
2113
|
+
}, r.$attrs, {
|
|
2114
|
+
onClick: b,
|
|
2083
2115
|
onFocusout: Y,
|
|
2084
|
-
onKeydown:
|
|
2116
|
+
onKeydown: re(f, ["stop"])
|
|
2085
2117
|
}), ye({
|
|
2086
|
-
"label.prepend":
|
|
2087
|
-
p(
|
|
2118
|
+
"label.prepend": _(() => [
|
|
2119
|
+
p(r.$slots, "label.prepend")
|
|
2088
2120
|
]),
|
|
2089
|
-
"label.append":
|
|
2090
|
-
p(
|
|
2121
|
+
"label.append": _(() => [
|
|
2122
|
+
p(r.$slots, "label.append")
|
|
2091
2123
|
]),
|
|
2092
|
-
append:
|
|
2093
|
-
p(
|
|
2094
|
-
|
|
2124
|
+
append: _(() => [
|
|
2125
|
+
p(r.$slots, "append"),
|
|
2126
|
+
K.value && d.value ? (u(), I(h(ae), {
|
|
2095
2127
|
key: 0,
|
|
2096
2128
|
class: "q-combobox__clear",
|
|
2097
2129
|
"aria-label": l.texts.clearValue,
|
|
2098
2130
|
"b-style": "plain",
|
|
2099
2131
|
borderless: "",
|
|
2100
2132
|
tabindex: "-1",
|
|
2101
|
-
onClick:
|
|
2133
|
+
onClick: ce
|
|
2102
2134
|
}, {
|
|
2103
|
-
default:
|
|
2104
|
-
|
|
2135
|
+
default: _(() => [
|
|
2136
|
+
O(h(N), J(se(l.icons.clear)), null, 16)
|
|
2105
2137
|
]),
|
|
2106
2138
|
_: 1
|
|
2107
|
-
}, 8, ["aria-label"])) :
|
|
2108
|
-
l.readonly ?
|
|
2139
|
+
}, 8, ["aria-label"])) : $("", !0),
|
|
2140
|
+
l.readonly ? $("", !0) : (u(), I(h(ae), {
|
|
2109
2141
|
key: 1,
|
|
2110
2142
|
ref_key: "toggleRef",
|
|
2111
|
-
ref:
|
|
2143
|
+
ref: k,
|
|
2112
2144
|
class: "q-combobox__chevron",
|
|
2113
2145
|
"aria-label": l.texts.showOptions,
|
|
2114
2146
|
"b-style": "plain",
|
|
2115
2147
|
borderless: "",
|
|
2116
2148
|
tabindex: "-1",
|
|
2117
2149
|
disabled: l.disabled,
|
|
2118
|
-
onMousedown:
|
|
2150
|
+
onMousedown: re(le, ["stop", "prevent"])
|
|
2119
2151
|
}, {
|
|
2120
|
-
default:
|
|
2121
|
-
|
|
2152
|
+
default: _(() => [
|
|
2153
|
+
O(h(N), J(se(l.icons.chevron)), null, 16)
|
|
2122
2154
|
]),
|
|
2123
2155
|
_: 1
|
|
2124
2156
|
}, 8, ["aria-label", "disabled"]))
|
|
2125
2157
|
]),
|
|
2126
2158
|
_: 2
|
|
2127
2159
|
}, [
|
|
2128
|
-
|
|
2160
|
+
r.$slots.prepend ? {
|
|
2129
2161
|
name: "prepend",
|
|
2130
|
-
fn:
|
|
2131
|
-
p(
|
|
2162
|
+
fn: _(() => [
|
|
2163
|
+
p(r.$slots, "prepend")
|
|
2132
2164
|
]),
|
|
2133
2165
|
key: "0"
|
|
2134
2166
|
} : void 0,
|
|
2135
|
-
|
|
2167
|
+
r.$slots.extras ? {
|
|
2136
2168
|
name: "extras",
|
|
2137
|
-
fn:
|
|
2138
|
-
p(
|
|
2169
|
+
fn: _(() => [
|
|
2170
|
+
p(r.$slots, "extras")
|
|
2139
2171
|
]),
|
|
2140
2172
|
key: "1"
|
|
2141
2173
|
} : void 0
|
|
2142
2174
|
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
2143
|
-
|
|
2175
|
+
O(h(pe), {
|
|
2144
2176
|
modelValue: a.value,
|
|
2145
|
-
"onUpdate:modelValue":
|
|
2177
|
+
"onUpdate:modelValue": L[2] || (L[2] = (Z) => a.value = Z),
|
|
2146
2178
|
spy: "",
|
|
2147
2179
|
"non-modal": "",
|
|
2148
2180
|
trigger: "manual",
|
|
2149
2181
|
placement: "bottom-start",
|
|
2150
2182
|
width: "anchor",
|
|
2151
2183
|
offset: 4,
|
|
2152
|
-
anchor: (
|
|
2153
|
-
onEnter:
|
|
2184
|
+
anchor: (T = c.value) == null ? void 0 : T.$el,
|
|
2185
|
+
onEnter: Be,
|
|
2154
2186
|
onLeave: we
|
|
2155
2187
|
}, {
|
|
2156
|
-
default:
|
|
2157
|
-
var
|
|
2188
|
+
default: _(() => {
|
|
2189
|
+
var Z;
|
|
2158
2190
|
return [
|
|
2159
|
-
|
|
2191
|
+
w("div", {
|
|
2160
2192
|
ref_key: "contentRef",
|
|
2161
|
-
ref:
|
|
2193
|
+
ref: H,
|
|
2162
2194
|
class: "q-select__body",
|
|
2163
2195
|
"data-testid": "combobox-dropdown",
|
|
2164
2196
|
"data-key": l.id,
|
|
2165
2197
|
onFocusout: Y
|
|
2166
2198
|
}, [
|
|
2167
|
-
p(
|
|
2168
|
-
l.loading ? (
|
|
2169
|
-
|
|
2170
|
-
])) :
|
|
2199
|
+
p(r.$slots, "body.prepend"),
|
|
2200
|
+
l.loading ? (u(), m("div", wl, [
|
|
2201
|
+
O(h(ke), { size: 24 })
|
|
2202
|
+
])) : D.value.length ? (u(), I(h(Ie), {
|
|
2171
2203
|
key: 1,
|
|
2172
2204
|
ref_key: "listRef",
|
|
2173
|
-
ref:
|
|
2205
|
+
ref: v,
|
|
2174
2206
|
modelValue: s.value,
|
|
2175
2207
|
"onUpdate:modelValue": [
|
|
2176
|
-
|
|
2177
|
-
|
|
2208
|
+
L[1] || (L[1] = (me) => s.value = me),
|
|
2209
|
+
te
|
|
2178
2210
|
],
|
|
2179
2211
|
class: "q-select__items",
|
|
2180
2212
|
selectable: "",
|
|
2181
|
-
highlighted: (
|
|
2182
|
-
items:
|
|
2183
|
-
groups:
|
|
2213
|
+
highlighted: (Z = M.value) == null ? void 0 : Z[l.itemValue],
|
|
2214
|
+
items: D.value,
|
|
2215
|
+
groups: r.groups,
|
|
2184
2216
|
"item-label": l.itemLabel,
|
|
2185
2217
|
"item-value": l.itemValue,
|
|
2186
|
-
onMouseup:
|
|
2218
|
+
onMouseup: ie
|
|
2187
2219
|
}, {
|
|
2188
|
-
item:
|
|
2189
|
-
p(
|
|
2220
|
+
item: _(({ item: me }) => [
|
|
2221
|
+
p(r.$slots, "item", { item: me })
|
|
2190
2222
|
]),
|
|
2191
2223
|
_: 3
|
|
2192
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
2193
|
-
p(
|
|
2194
|
-
], 40,
|
|
2224
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", ql, Q(l.texts.noData), 1)),
|
|
2225
|
+
p(r.$slots, "body.append")
|
|
2226
|
+
], 40, kl)
|
|
2195
2227
|
];
|
|
2196
2228
|
}),
|
|
2197
2229
|
_: 3
|
|
@@ -2199,7 +2231,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2199
2231
|
], 64);
|
|
2200
2232
|
};
|
|
2201
2233
|
}
|
|
2202
|
-
}),
|
|
2234
|
+
}), Ll = C(xl), Il = [
|
|
2203
2235
|
{
|
|
2204
2236
|
id: "button",
|
|
2205
2237
|
icon: {
|
|
@@ -2210,26 +2242,26 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2210
2242
|
label: "Ok"
|
|
2211
2243
|
}
|
|
2212
2244
|
}
|
|
2213
|
-
],
|
|
2245
|
+
], Sl = {
|
|
2214
2246
|
icon: "check-circle-outline"
|
|
2215
2247
|
}, Bl = {
|
|
2216
2248
|
close: {
|
|
2217
2249
|
icon: "close"
|
|
2218
2250
|
}
|
|
2219
|
-
}, Cl = { class: "q-dialog__header" },
|
|
2251
|
+
}, Cl = { class: "q-dialog__header" }, Vl = { class: "q-dialog__header-title" }, Tl = { class: "q-dialog__body" }, Al = {
|
|
2220
2252
|
key: 0,
|
|
2221
2253
|
class: "q-dialog__body-icon"
|
|
2222
|
-
},
|
|
2254
|
+
}, El = { class: "q-dialog__body-text" }, Dl = ["innerHTML"], Ql = { key: 1 }, Ml = { class: "q-dialog__body-actions" }, zl = /* @__PURE__ */ S({
|
|
2223
2255
|
__name: "QDialog",
|
|
2224
2256
|
props: /* @__PURE__ */ G({
|
|
2225
2257
|
text: { default: "" },
|
|
2226
2258
|
attach: { default: "body" },
|
|
2227
2259
|
inline: { type: Boolean },
|
|
2228
2260
|
backdropBlur: { type: Boolean, default: !0 },
|
|
2229
|
-
buttons: { default: () =>
|
|
2261
|
+
buttons: { default: () => Il },
|
|
2230
2262
|
dismissible: { type: Boolean },
|
|
2231
2263
|
html: { type: Boolean, default: !0 },
|
|
2232
|
-
icon: { default: () =>
|
|
2264
|
+
icon: { default: () => Sl },
|
|
2233
2265
|
id: { default: void 0 },
|
|
2234
2266
|
title: { default: "" },
|
|
2235
2267
|
class: { default: void 0 },
|
|
@@ -2240,16 +2272,16 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2240
2272
|
}),
|
|
2241
2273
|
emits: ["update:modelValue"],
|
|
2242
2274
|
setup(n) {
|
|
2243
|
-
const t = n, e =
|
|
2275
|
+
const t = n, e = j(n, "modelValue"), l = ue(t.id), o = y(() => ["q-dialog", t.class]);
|
|
2244
2276
|
function s() {
|
|
2245
2277
|
e.value = !1;
|
|
2246
2278
|
}
|
|
2247
2279
|
function a(d) {
|
|
2248
|
-
var
|
|
2249
|
-
(
|
|
2280
|
+
var i;
|
|
2281
|
+
(i = d.action) == null || i.call(d), s();
|
|
2250
2282
|
}
|
|
2251
|
-
return (d,
|
|
2252
|
-
id:
|
|
2283
|
+
return (d, i) => (u(), I(h(pe), {
|
|
2284
|
+
id: h(l),
|
|
2253
2285
|
"model-value": e.value,
|
|
2254
2286
|
inline: t.inline,
|
|
2255
2287
|
attach: t.attach,
|
|
@@ -2258,49 +2290,49 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2258
2290
|
"scroll-lock": "",
|
|
2259
2291
|
persistent: ""
|
|
2260
2292
|
}, {
|
|
2261
|
-
default:
|
|
2262
|
-
|
|
2263
|
-
class:
|
|
2293
|
+
default: _(() => [
|
|
2294
|
+
w("div", {
|
|
2295
|
+
class: A(o.value)
|
|
2264
2296
|
}, [
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
t.dismissible ? (
|
|
2297
|
+
w("div", Cl, [
|
|
2298
|
+
w("span", Vl, Q(t.title), 1),
|
|
2299
|
+
t.dismissible ? (u(), I(h(ae), {
|
|
2268
2300
|
key: 0,
|
|
2269
2301
|
"b-style": "tertiary",
|
|
2270
2302
|
onClick: s
|
|
2271
2303
|
}, {
|
|
2272
|
-
default:
|
|
2273
|
-
|
|
2304
|
+
default: _(() => [
|
|
2305
|
+
O(h(N), J(se(t.icons.close)), null, 16)
|
|
2274
2306
|
]),
|
|
2275
2307
|
_: 1
|
|
2276
|
-
})) :
|
|
2308
|
+
})) : $("", !0)
|
|
2277
2309
|
]),
|
|
2278
2310
|
p(d.$slots, "body.content", {}, () => [
|
|
2279
|
-
|
|
2311
|
+
w("div", Tl, [
|
|
2280
2312
|
p(d.$slots, "body.icon", {}, () => [
|
|
2281
|
-
t.icon ? (
|
|
2282
|
-
|
|
2283
|
-
])) :
|
|
2313
|
+
t.icon ? (u(), m("span", Al, [
|
|
2314
|
+
O(h(N), J(se(t.icon)), null, 16)
|
|
2315
|
+
])) : $("", !0)
|
|
2284
2316
|
]),
|
|
2285
|
-
|
|
2286
|
-
t.html ? (
|
|
2317
|
+
w("div", El, [
|
|
2318
|
+
t.html ? (u(), m("span", {
|
|
2287
2319
|
key: 0,
|
|
2288
2320
|
innerHTML: t.text
|
|
2289
|
-
}, null, 8,
|
|
2321
|
+
}, null, 8, Dl)) : (u(), m("span", Ql, Q(t.text), 1))
|
|
2290
2322
|
]),
|
|
2291
2323
|
p(d.$slots, "body.append")
|
|
2292
2324
|
])
|
|
2293
2325
|
]),
|
|
2294
|
-
|
|
2295
|
-
(
|
|
2296
|
-
key:
|
|
2297
|
-
onClick: () => a(
|
|
2326
|
+
w("div", Ml, [
|
|
2327
|
+
(u(!0), m(R, null, ve(t.buttons, (c) => (u(), I(h(ae), X({ ref_for: !0 }, c.props, {
|
|
2328
|
+
key: c.id,
|
|
2329
|
+
onClick: () => a(c)
|
|
2298
2330
|
}), {
|
|
2299
|
-
default:
|
|
2300
|
-
|
|
2331
|
+
default: _(() => [
|
|
2332
|
+
c.icon ? (u(), I(h(N), X({
|
|
2301
2333
|
key: 0,
|
|
2302
2334
|
ref_for: !0
|
|
2303
|
-
},
|
|
2335
|
+
}, c.icon), null, 16)) : $("", !0)
|
|
2304
2336
|
]),
|
|
2305
2337
|
_: 2
|
|
2306
2338
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -2310,13 +2342,180 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2310
2342
|
_: 3
|
|
2311
2343
|
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
|
|
2312
2344
|
}
|
|
2313
|
-
}),
|
|
2345
|
+
}), Ol = C(zl), Fl = {
|
|
2346
|
+
expand: {
|
|
2347
|
+
icon: "chevron-right"
|
|
2348
|
+
}
|
|
2349
|
+
}, Pl = {
|
|
2350
|
+
key: 0,
|
|
2351
|
+
class: "q-dropdown-menu__extra"
|
|
2352
|
+
}, Ul = /* @__PURE__ */ S({
|
|
2353
|
+
__name: "QDropdownMenuContent",
|
|
2354
|
+
props: /* @__PURE__ */ G({
|
|
2355
|
+
activator: { default: void 0 },
|
|
2356
|
+
appearance: { default: "regular" },
|
|
2357
|
+
inline: { type: Boolean },
|
|
2358
|
+
delay: { default: 500 },
|
|
2359
|
+
placement: { default: "right-start" },
|
|
2360
|
+
transition: { default: "fade" },
|
|
2361
|
+
class: { default: void 0 },
|
|
2362
|
+
items: {},
|
|
2363
|
+
groups: { default: () => [] },
|
|
2364
|
+
itemValue: { default: "key" },
|
|
2365
|
+
itemLabel: { default: "label" },
|
|
2366
|
+
icons: { default: () => Fl },
|
|
2367
|
+
trigger: { default: "click" },
|
|
2368
|
+
offset: { default: 0 },
|
|
2369
|
+
crossOffset: { default: -5 },
|
|
2370
|
+
depth: { default: 0 }
|
|
2371
|
+
}, {
|
|
2372
|
+
modelValue: { type: Boolean },
|
|
2373
|
+
modelModifiers: {}
|
|
2374
|
+
}),
|
|
2375
|
+
emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
|
|
2376
|
+
setup(n, { emit: t }) {
|
|
2377
|
+
const e = n, l = t, o = j(n, "modelValue"), s = V(void 0), a = V([]), d = V(""), i = y(() => e.depth !== 0 ? e.offset : 4), c = y(() => e.depth !== 0 ? e.crossOffset : void 0);
|
|
2378
|
+
let v;
|
|
2379
|
+
const k = V(null), H = V(null);
|
|
2380
|
+
function K(x) {
|
|
2381
|
+
s.value = x;
|
|
2382
|
+
const E = e.items.find((P) => P[e.itemValue] === x);
|
|
2383
|
+
E && (a.value = (E == null ? void 0 : E.items) ?? []), a.value.length || (l("select", x), s.value = void 0, g());
|
|
2384
|
+
}
|
|
2385
|
+
function D() {
|
|
2386
|
+
o.value || (o.value = !0);
|
|
2387
|
+
}
|
|
2388
|
+
function g() {
|
|
2389
|
+
o.value && (o.value = !1);
|
|
2390
|
+
}
|
|
2391
|
+
function B() {
|
|
2392
|
+
o.value ? g() : D();
|
|
2393
|
+
}
|
|
2394
|
+
function M(x) {
|
|
2395
|
+
if (x.key) {
|
|
2396
|
+
if (window.clearTimeout(v), ["Escape", "Tab", "Delete"].includes(x.key)) {
|
|
2397
|
+
g();
|
|
2398
|
+
return;
|
|
2399
|
+
}
|
|
2400
|
+
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(x.key) && (x.preventDefault(), x.stopPropagation()), /^[a-z]$/i.test(x.key)) {
|
|
2401
|
+
d.value += x.key.toLowerCase();
|
|
2402
|
+
for (let E = 0; E < e.items.length; E++) {
|
|
2403
|
+
const P = e.items[E];
|
|
2404
|
+
if (P[e.itemLabel] && P[e.itemLabel].toLowerCase().startsWith(d.value)) {
|
|
2405
|
+
te(E);
|
|
2406
|
+
break;
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
v = window.setTimeout(function() {
|
|
2411
|
+
d.value = "";
|
|
2412
|
+
}, 500);
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
function F(x) {
|
|
2416
|
+
var E;
|
|
2417
|
+
(E = H.value) != null && E.contains(x.relatedTarget) || g();
|
|
2418
|
+
}
|
|
2419
|
+
function ee() {
|
|
2420
|
+
var x;
|
|
2421
|
+
(x = k.value) == null || x.$el.focus();
|
|
2422
|
+
}
|
|
2423
|
+
function te(x) {
|
|
2424
|
+
var E;
|
|
2425
|
+
(E = k.value) == null || E.focusItem(x);
|
|
2426
|
+
}
|
|
2427
|
+
return (x, E) => (u(), I(h(pe), {
|
|
2428
|
+
"model-value": o.value,
|
|
2429
|
+
anchor: e.activator,
|
|
2430
|
+
appearance: e.appearance,
|
|
2431
|
+
inline: e.inline,
|
|
2432
|
+
delay: e.delay,
|
|
2433
|
+
offset: i.value,
|
|
2434
|
+
"cross-offset": c.value,
|
|
2435
|
+
placement: e.placement,
|
|
2436
|
+
transition: e.transition,
|
|
2437
|
+
class: A(e.class),
|
|
2438
|
+
trigger: e.trigger,
|
|
2439
|
+
"non-modal": "",
|
|
2440
|
+
"scroll-lock": "",
|
|
2441
|
+
persistent: "",
|
|
2442
|
+
"onUpdate:modelValue": B,
|
|
2443
|
+
onEnter: ee
|
|
2444
|
+
}, {
|
|
2445
|
+
default: _(() => [
|
|
2446
|
+
w("div", {
|
|
2447
|
+
ref_key: "contentRef",
|
|
2448
|
+
ref: H,
|
|
2449
|
+
"data-testid": "dropdown-content",
|
|
2450
|
+
tabindex: "-1",
|
|
2451
|
+
onFocusout: F,
|
|
2452
|
+
onKeydown: re(M, ["stop"])
|
|
2453
|
+
}, [
|
|
2454
|
+
O(h(Ie), {
|
|
2455
|
+
ref_key: "listRef",
|
|
2456
|
+
ref: k,
|
|
2457
|
+
class: "q-dropdown-menu__items",
|
|
2458
|
+
highlighted: s.value,
|
|
2459
|
+
items: e.items,
|
|
2460
|
+
groups: e.groups,
|
|
2461
|
+
"item-label": e.itemLabel,
|
|
2462
|
+
"item-value": e.itemValue,
|
|
2463
|
+
"onUpdate:modelValue": K
|
|
2464
|
+
}, {
|
|
2465
|
+
item: _(({ item: P }) => [
|
|
2466
|
+
p(x.$slots, "item", { item: P })
|
|
2467
|
+
]),
|
|
2468
|
+
"item.append": _(({ item: P }) => [
|
|
2469
|
+
p(x.$slots, "item.append", { item: P }, () => [
|
|
2470
|
+
P.extraInfo ? (u(), m("span", Pl, Q(P.extraInfo), 1)) : $("", !0)
|
|
2471
|
+
])
|
|
2472
|
+
]),
|
|
2473
|
+
_: 3
|
|
2474
|
+
}, 8, ["highlighted", "items", "groups", "item-label", "item-value"])
|
|
2475
|
+
], 544)
|
|
2476
|
+
]),
|
|
2477
|
+
_: 3
|
|
2478
|
+
}, 8, ["model-value", "anchor", "appearance", "inline", "delay", "offset", "cross-offset", "placement", "transition", "class", "trigger"]));
|
|
2479
|
+
}
|
|
2480
|
+
}), Nl = /* @__PURE__ */ S({
|
|
2481
|
+
inheritAttrs: !1,
|
|
2482
|
+
__name: "QDropdownMenu",
|
|
2483
|
+
props: /* @__PURE__ */ G({
|
|
2484
|
+
activator: {},
|
|
2485
|
+
appearance: {},
|
|
2486
|
+
inline: { type: Boolean },
|
|
2487
|
+
delay: {},
|
|
2488
|
+
placement: {},
|
|
2489
|
+
transition: {},
|
|
2490
|
+
class: {},
|
|
2491
|
+
items: {},
|
|
2492
|
+
groups: {},
|
|
2493
|
+
itemValue: {},
|
|
2494
|
+
itemLabel: {},
|
|
2495
|
+
icons: {}
|
|
2496
|
+
}, {
|
|
2497
|
+
modelValue: { type: Boolean },
|
|
2498
|
+
modelModifiers: {}
|
|
2499
|
+
}),
|
|
2500
|
+
emits: /* @__PURE__ */ G(["select"], ["update:modelValue"]),
|
|
2501
|
+
setup(n, { emit: t }) {
|
|
2502
|
+
const e = n, l = t, o = j(n, "modelValue");
|
|
2503
|
+
function s(a) {
|
|
2504
|
+
l("select", a);
|
|
2505
|
+
}
|
|
2506
|
+
return (a, d) => (u(), I(Ul, X(e, {
|
|
2507
|
+
modelValue: o.value,
|
|
2508
|
+
"onUpdate:modelValue": d[0] || (d[0] = (i) => o.value = i),
|
|
2509
|
+
onSelect: s
|
|
2510
|
+
}), null, 16, ["modelValue"]));
|
|
2511
|
+
}
|
|
2512
|
+
}), Rl = C(Nl), Gl = {
|
|
2314
2513
|
key: 0,
|
|
2315
2514
|
class: "q-input-group__prepend"
|
|
2316
|
-
},
|
|
2515
|
+
}, Hl = { key: 0 }, Kl = {
|
|
2317
2516
|
key: 1,
|
|
2318
2517
|
class: "q-input-group__append"
|
|
2319
|
-
},
|
|
2518
|
+
}, Wl = { key: 0 }, jl = /* @__PURE__ */ S({
|
|
2320
2519
|
__name: "QInputGroup",
|
|
2321
2520
|
props: {
|
|
2322
2521
|
id: { default: void 0 },
|
|
@@ -2329,61 +2528,61 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2329
2528
|
},
|
|
2330
2529
|
setup(n) {
|
|
2331
2530
|
const t = n;
|
|
2332
|
-
return
|
|
2531
|
+
return Ue({
|
|
2333
2532
|
QField: {
|
|
2334
2533
|
size: "block"
|
|
2335
2534
|
}
|
|
2336
|
-
}), (e, l) => (
|
|
2535
|
+
}), (e, l) => (u(), I(h(Se), {
|
|
2337
2536
|
id: t.id,
|
|
2338
|
-
class:
|
|
2537
|
+
class: A(["q-input-group", t.class]),
|
|
2339
2538
|
label: t.label,
|
|
2340
2539
|
required: t.required,
|
|
2341
2540
|
size: t.size
|
|
2342
2541
|
}, ye({
|
|
2343
|
-
default:
|
|
2344
|
-
e.$slots.prepend || t.prependIcon ? (
|
|
2345
|
-
t.prependIcon ? (
|
|
2346
|
-
|
|
2347
|
-
])) :
|
|
2542
|
+
default: _(() => [
|
|
2543
|
+
e.$slots.prepend || t.prependIcon ? (u(), m("div", Gl, [
|
|
2544
|
+
t.prependIcon ? (u(), m("span", Hl, [
|
|
2545
|
+
O(h(N), J(se(t.prependIcon)), null, 16)
|
|
2546
|
+
])) : $("", !0),
|
|
2348
2547
|
p(e.$slots, "prepend")
|
|
2349
|
-
])) :
|
|
2548
|
+
])) : $("", !0),
|
|
2350
2549
|
p(e.$slots, "default"),
|
|
2351
|
-
e.$slots.append || t.appendIcon ? (
|
|
2352
|
-
t.appendIcon ? (
|
|
2353
|
-
|
|
2354
|
-
])) :
|
|
2550
|
+
e.$slots.append || t.appendIcon ? (u(), m("div", Kl, [
|
|
2551
|
+
t.appendIcon ? (u(), m("span", Wl, [
|
|
2552
|
+
O(h(N), J(se(t.appendIcon)), null, 16)
|
|
2553
|
+
])) : $("", !0),
|
|
2355
2554
|
p(e.$slots, "append")
|
|
2356
|
-
])) :
|
|
2555
|
+
])) : $("", !0)
|
|
2357
2556
|
]),
|
|
2358
2557
|
_: 2
|
|
2359
2558
|
}, [
|
|
2360
2559
|
e.$slots.extras ? {
|
|
2361
2560
|
name: "extras",
|
|
2362
|
-
fn:
|
|
2561
|
+
fn: _(() => [
|
|
2363
2562
|
p(e.$slots, "extras")
|
|
2364
2563
|
]),
|
|
2365
2564
|
key: "0"
|
|
2366
2565
|
} : void 0
|
|
2367
2566
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2368
2567
|
}
|
|
2369
|
-
}),
|
|
2568
|
+
}), Xl = C(jl), Yl = /* @__PURE__ */ S({
|
|
2370
2569
|
__name: "QLineLoader",
|
|
2371
2570
|
props: {
|
|
2372
2571
|
class: { default: void 0 }
|
|
2373
2572
|
},
|
|
2374
2573
|
setup(n) {
|
|
2375
2574
|
const t = n;
|
|
2376
|
-
return (e, l) => (
|
|
2377
|
-
class:
|
|
2575
|
+
return (e, l) => (u(), m("div", {
|
|
2576
|
+
class: A(["q-line-loader", t.class])
|
|
2378
2577
|
}, null, 2));
|
|
2379
2578
|
}
|
|
2380
|
-
}),
|
|
2579
|
+
}), Zl = C(Yl), Jl = {
|
|
2381
2580
|
key: 0,
|
|
2382
2581
|
class: "q-popover__header"
|
|
2383
|
-
},
|
|
2582
|
+
}, eo = {
|
|
2384
2583
|
key: 1,
|
|
2385
2584
|
class: "q-popover__body"
|
|
2386
|
-
},
|
|
2585
|
+
}, to = ["innerHTML"], no = { key: 1 }, lo = /* @__PURE__ */ S({
|
|
2387
2586
|
inheritAttrs: !1,
|
|
2388
2587
|
__name: "QPopover",
|
|
2389
2588
|
props: /* @__PURE__ */ G({
|
|
@@ -2402,8 +2601,8 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2402
2601
|
}),
|
|
2403
2602
|
emits: ["update:modelValue"],
|
|
2404
2603
|
setup(n) {
|
|
2405
|
-
const t = n, e =
|
|
2406
|
-
return (l, o) => (
|
|
2604
|
+
const t = n, e = j(n, "modelValue");
|
|
2605
|
+
return (l, o) => (u(), I(h(pe), {
|
|
2407
2606
|
modelValue: e.value,
|
|
2408
2607
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s),
|
|
2409
2608
|
class: "q-popover",
|
|
@@ -2415,23 +2614,23 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2415
2614
|
disabled: t.disabled,
|
|
2416
2615
|
placement: t.placement
|
|
2417
2616
|
}, {
|
|
2418
|
-
default:
|
|
2419
|
-
t.title || l.$slots.header ? (
|
|
2420
|
-
|
|
2617
|
+
default: _(() => [
|
|
2618
|
+
t.title || l.$slots.header ? (u(), m("h3", Jl, [
|
|
2619
|
+
de(Q(t.title) + " ", 1),
|
|
2421
2620
|
p(l.$slots, "header")
|
|
2422
|
-
])) :
|
|
2423
|
-
t.text || l.$slots.body ? (
|
|
2424
|
-
t.html ? (
|
|
2621
|
+
])) : $("", !0),
|
|
2622
|
+
t.text || l.$slots.body ? (u(), m("div", eo, [
|
|
2623
|
+
t.html ? (u(), m("span", {
|
|
2425
2624
|
key: 0,
|
|
2426
2625
|
innerHTML: t.text
|
|
2427
|
-
}, null, 8,
|
|
2626
|
+
}, null, 8, to)) : (u(), m("span", no, Q(t.text), 1)),
|
|
2428
2627
|
p(l.$slots, "body")
|
|
2429
|
-
])) :
|
|
2628
|
+
])) : $("", !0)
|
|
2430
2629
|
]),
|
|
2431
2630
|
_: 3
|
|
2432
2631
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
2433
2632
|
}
|
|
2434
|
-
}),
|
|
2633
|
+
}), oo = C(lo), pt = {
|
|
2435
2634
|
emptyMessage: "Select a field to view details."
|
|
2436
2635
|
}, mt = {
|
|
2437
2636
|
open: {
|
|
@@ -2440,7 +2639,7 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2440
2639
|
close: {
|
|
2441
2640
|
icon: "plus-box"
|
|
2442
2641
|
}
|
|
2443
|
-
},
|
|
2642
|
+
}, so = { class: "q-property-list__table" }, ao = /* @__PURE__ */ S({
|
|
2444
2643
|
__name: "QPropertyList",
|
|
2445
2644
|
props: {
|
|
2446
2645
|
fields: { default: () => [] },
|
|
@@ -2455,101 +2654,101 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2455
2654
|
},
|
|
2456
2655
|
emits: ["field-change"],
|
|
2457
2656
|
setup(n, { emit: t }) {
|
|
2458
|
-
const e = n, l = t, o =
|
|
2459
|
-
(
|
|
2460
|
-
) : [{ id: "", title: "" }]),
|
|
2657
|
+
const e = n, l = t, o = V(e.groups.map((g) => g.id)), s = V(void 0), a = V(null), d = y(() => e.groups.length ? e.groups.filter(
|
|
2658
|
+
(g) => e.fields.some((B) => B.group === g.id)
|
|
2659
|
+
) : [{ id: "", title: "" }]), i = y(() => [
|
|
2461
2660
|
e.class,
|
|
2462
2661
|
{
|
|
2463
2662
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2464
2663
|
}
|
|
2465
2664
|
]);
|
|
2466
|
-
function
|
|
2467
|
-
var
|
|
2468
|
-
(
|
|
2665
|
+
function c() {
|
|
2666
|
+
var g;
|
|
2667
|
+
(g = a.value) != null && g.contains(document.activeElement) || (s.value = void 0);
|
|
2469
2668
|
}
|
|
2470
|
-
function
|
|
2471
|
-
return
|
|
2669
|
+
function v(g) {
|
|
2670
|
+
return g ? e.fields.filter((B) => B.group === g) : e.fields;
|
|
2472
2671
|
}
|
|
2473
|
-
function
|
|
2474
|
-
const
|
|
2475
|
-
|
|
2672
|
+
function k(g) {
|
|
2673
|
+
const B = o.value.indexOf(g);
|
|
2674
|
+
B === -1 ? o.value.push(g) : o.value.splice(B, 1);
|
|
2476
2675
|
}
|
|
2477
|
-
function
|
|
2478
|
-
var
|
|
2479
|
-
const
|
|
2676
|
+
function H(g) {
|
|
2677
|
+
var F;
|
|
2678
|
+
const B = g.group && !o.value.includes(g.group), M = ((F = s.value) == null ? void 0 : F.id) === g.id;
|
|
2480
2679
|
return [
|
|
2481
2680
|
{
|
|
2482
|
-
"q-property-list__row--closed":
|
|
2681
|
+
"q-property-list__row--closed": B,
|
|
2483
2682
|
"q-property-list__row--selected": M
|
|
2484
2683
|
}
|
|
2485
2684
|
];
|
|
2486
2685
|
}
|
|
2487
|
-
function
|
|
2488
|
-
s.value =
|
|
2686
|
+
function K(g) {
|
|
2687
|
+
s.value = g;
|
|
2489
2688
|
}
|
|
2490
|
-
function
|
|
2491
|
-
e.readonly || (
|
|
2689
|
+
function D(g, B) {
|
|
2690
|
+
e.readonly || (g.props.readonly ?? !1) || (g.props.modelValue = B, l("field-change", g));
|
|
2492
2691
|
}
|
|
2493
|
-
return (
|
|
2692
|
+
return (g, B) => (u(), m("div", {
|
|
2494
2693
|
ref_key: "componentRoot",
|
|
2495
2694
|
ref: a,
|
|
2496
2695
|
tabindex: "0",
|
|
2497
|
-
class:
|
|
2498
|
-
onFocusout:
|
|
2696
|
+
class: A(["q-property-list", i.value]),
|
|
2697
|
+
onFocusout: c
|
|
2499
2698
|
}, [
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2699
|
+
w("table", so, [
|
|
2700
|
+
B[0] || (B[0] = w("thead", { class: "q-property-list__header" }, [
|
|
2701
|
+
w("tr", null, [
|
|
2702
|
+
w("th", { colspan: "2" })
|
|
2504
2703
|
])
|
|
2505
2704
|
], -1)),
|
|
2506
|
-
|
|
2507
|
-
(
|
|
2705
|
+
w("tbody", null, [
|
|
2706
|
+
(u(!0), m(R, null, ve(d.value, (M) => (u(), m(R, {
|
|
2508
2707
|
key: M.id
|
|
2509
2708
|
}, [
|
|
2510
|
-
M.title ? (
|
|
2709
|
+
M.title ? (u(), I(h(vt), {
|
|
2511
2710
|
key: 0,
|
|
2512
2711
|
id: M.id,
|
|
2513
2712
|
title: M.title,
|
|
2514
2713
|
icons: e.icons,
|
|
2515
2714
|
"no-toggle": e.noToggle,
|
|
2516
|
-
onToggleGroup:
|
|
2517
|
-
}, null, 8, ["id", "title", "icons", "no-toggle"])) :
|
|
2518
|
-
(
|
|
2519
|
-
key:
|
|
2520
|
-
class:
|
|
2521
|
-
field:
|
|
2715
|
+
onToggleGroup: k
|
|
2716
|
+
}, null, 8, ["id", "title", "icons", "no-toggle"])) : $("", !0),
|
|
2717
|
+
(u(!0), m(R, null, ve(v(M.id), (F) => (u(), I(h(ht), {
|
|
2718
|
+
key: F.id,
|
|
2719
|
+
class: A(H(F)),
|
|
2720
|
+
field: F,
|
|
2522
2721
|
readonly: e.readonly,
|
|
2523
|
-
onFocus:
|
|
2524
|
-
onFieldChange:
|
|
2722
|
+
onFocus: K,
|
|
2723
|
+
onFieldChange: D
|
|
2525
2724
|
}, {
|
|
2526
|
-
default:
|
|
2527
|
-
p(
|
|
2725
|
+
default: _(() => [
|
|
2726
|
+
p(g.$slots, F.id, { field: F })
|
|
2528
2727
|
]),
|
|
2529
2728
|
_: 2
|
|
2530
2729
|
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2531
2730
|
], 64))), 128))
|
|
2532
2731
|
])
|
|
2533
2732
|
]),
|
|
2534
|
-
e.noPanel ?
|
|
2733
|
+
e.noPanel ? $("", !0) : (u(), I(h(yt), {
|
|
2535
2734
|
key: 0,
|
|
2536
2735
|
field: s.value,
|
|
2537
2736
|
texts: e.texts
|
|
2538
2737
|
}, {
|
|
2539
|
-
default:
|
|
2540
|
-
s.value ? p(
|
|
2738
|
+
default: _(() => [
|
|
2739
|
+
s.value ? p(g.$slots, "panel", {
|
|
2541
2740
|
key: 0,
|
|
2542
2741
|
field: s.value
|
|
2543
|
-
}) :
|
|
2742
|
+
}) : $("", !0)
|
|
2544
2743
|
]),
|
|
2545
2744
|
_: 3
|
|
2546
2745
|
}, 8, ["field", "texts"]))
|
|
2547
2746
|
], 34));
|
|
2548
2747
|
}
|
|
2549
|
-
}),
|
|
2748
|
+
}), io = {
|
|
2550
2749
|
key: 0,
|
|
2551
2750
|
class: "q-property-list-field__container"
|
|
2552
|
-
},
|
|
2751
|
+
}, ro = /* @__PURE__ */ S({
|
|
2553
2752
|
__name: "QPropertyListRow",
|
|
2554
2753
|
props: {
|
|
2555
2754
|
field: {},
|
|
@@ -2559,44 +2758,44 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2559
2758
|
emits: ["focus", "field-change"],
|
|
2560
2759
|
setup(n, { emit: t }) {
|
|
2561
2760
|
const e = n, l = t, o = y(() => ["q-property-list__row", e.class]), s = y(() => {
|
|
2562
|
-
var
|
|
2563
|
-
const
|
|
2564
|
-
return (
|
|
2761
|
+
var k;
|
|
2762
|
+
const v = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
2763
|
+
return (k = e.field.props) != null && k.required && v.push("q-property-list__cell--required"), v;
|
|
2565
2764
|
}), a = y(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
2566
2765
|
function d() {
|
|
2567
2766
|
l("focus", e.field);
|
|
2568
2767
|
}
|
|
2569
|
-
function
|
|
2570
|
-
l("field-change", e.field,
|
|
2768
|
+
function i(v) {
|
|
2769
|
+
l("field-change", e.field, v);
|
|
2571
2770
|
}
|
|
2572
|
-
const
|
|
2771
|
+
const c = y(() => ({
|
|
2573
2772
|
...e.field.props,
|
|
2574
2773
|
readonly: a.value
|
|
2575
2774
|
}));
|
|
2576
|
-
return (
|
|
2577
|
-
class:
|
|
2775
|
+
return (v, k) => (u(), m("tr", {
|
|
2776
|
+
class: A(o.value),
|
|
2578
2777
|
onFocusin: d
|
|
2579
2778
|
}, [
|
|
2580
|
-
|
|
2581
|
-
class:
|
|
2779
|
+
w("td", {
|
|
2780
|
+
class: A(s.value),
|
|
2582
2781
|
onClick: d
|
|
2583
|
-
},
|
|
2584
|
-
|
|
2782
|
+
}, Q(e.field.label), 3),
|
|
2783
|
+
w("td", {
|
|
2585
2784
|
class: "q-property-list__cell",
|
|
2586
2785
|
onClick: d
|
|
2587
2786
|
}, [
|
|
2588
|
-
p(
|
|
2589
|
-
e.field.component ? (
|
|
2590
|
-
(
|
|
2787
|
+
p(v.$slots, "default", {}, () => [
|
|
2788
|
+
e.field.component ? (u(), m("div", io, [
|
|
2789
|
+
(u(), I(Le(e.field.component), X(c.value, {
|
|
2591
2790
|
"model-value": e.field.props.modelValue,
|
|
2592
|
-
"onUpdate:modelValue":
|
|
2791
|
+
"onUpdate:modelValue": i
|
|
2593
2792
|
}), null, 16, ["model-value"]))
|
|
2594
|
-
])) :
|
|
2793
|
+
])) : $("", !0)
|
|
2595
2794
|
])
|
|
2596
2795
|
])
|
|
2597
2796
|
], 34));
|
|
2598
2797
|
}
|
|
2599
|
-
}),
|
|
2798
|
+
}), uo = ["data-key", "aria-labelledby"], co = ["id"], fo = { class: "q-property-list-group__content" }, po = /* @__PURE__ */ S({
|
|
2600
2799
|
__name: "QPropertyListGroup",
|
|
2601
2800
|
props: {
|
|
2602
2801
|
id: {},
|
|
@@ -2607,47 +2806,47 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2607
2806
|
},
|
|
2608
2807
|
emits: ["toggle-group"],
|
|
2609
2808
|
setup(n, { emit: t }) {
|
|
2610
|
-
const e = n, l = t, o =
|
|
2809
|
+
const e = n, l = t, o = V(!0), s = ue(), a = y(() => o.value ? e.icons.open : e.icons.close), d = y(() => [
|
|
2611
2810
|
"q-property-list-group",
|
|
2612
2811
|
{
|
|
2613
2812
|
"q-property-list-group--no-toggle": e.noToggle
|
|
2614
2813
|
}
|
|
2615
2814
|
]);
|
|
2616
|
-
function
|
|
2815
|
+
function i() {
|
|
2617
2816
|
e.noToggle || (o.value = !o.value, l("toggle-group", e.id));
|
|
2618
2817
|
}
|
|
2619
|
-
return (
|
|
2620
|
-
class:
|
|
2818
|
+
return (c, v) => (u(), m("tr", {
|
|
2819
|
+
class: A(d.value),
|
|
2621
2820
|
role: "group",
|
|
2622
2821
|
"data-key": e.id,
|
|
2623
|
-
"aria-labelledby":
|
|
2624
|
-
onClick:
|
|
2822
|
+
"aria-labelledby": h(s),
|
|
2823
|
+
onClick: i
|
|
2625
2824
|
}, [
|
|
2626
|
-
|
|
2627
|
-
id:
|
|
2825
|
+
w("td", {
|
|
2826
|
+
id: h(s),
|
|
2628
2827
|
colspan: "2"
|
|
2629
2828
|
}, [
|
|
2630
|
-
|
|
2631
|
-
e.noToggle ?
|
|
2829
|
+
w("div", fo, [
|
|
2830
|
+
e.noToggle ? $("", !0) : (u(), I(h(ae), {
|
|
2632
2831
|
key: 0,
|
|
2633
2832
|
"b-style": "tertiary",
|
|
2634
2833
|
borderless: "",
|
|
2635
|
-
onClick:
|
|
2834
|
+
onClick: i
|
|
2636
2835
|
}, {
|
|
2637
|
-
default:
|
|
2638
|
-
|
|
2836
|
+
default: _(() => [
|
|
2837
|
+
O(h(N), J(se(a.value)), null, 16)
|
|
2639
2838
|
]),
|
|
2640
2839
|
_: 1
|
|
2641
2840
|
})),
|
|
2642
|
-
|
|
2841
|
+
de(" " + Q(e.title), 1)
|
|
2643
2842
|
])
|
|
2644
|
-
], 8,
|
|
2645
|
-
], 10,
|
|
2843
|
+
], 8, co)
|
|
2844
|
+
], 10, uo));
|
|
2646
2845
|
}
|
|
2647
|
-
}),
|
|
2846
|
+
}), mo = { class: "q-property-list-panel__container" }, ho = { class: "q-property-list-panel__label" }, vo = { class: "q-property-list-panel__description" }, yo = {
|
|
2648
2847
|
key: 1,
|
|
2649
2848
|
class: "q-property-list-panel__empty"
|
|
2650
|
-
},
|
|
2849
|
+
}, bo = /* @__PURE__ */ S({
|
|
2651
2850
|
__name: "QPropertyListPanel",
|
|
2652
2851
|
props: {
|
|
2653
2852
|
field: { default: void 0 },
|
|
@@ -2656,34 +2855,34 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2656
2855
|
},
|
|
2657
2856
|
setup(n) {
|
|
2658
2857
|
const t = n;
|
|
2659
|
-
return (e, l) => (
|
|
2858
|
+
return (e, l) => (u(), m("div", mo, [
|
|
2660
2859
|
t.field ? p(e.$slots, "default", { key: 0 }, () => [
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
]) : (
|
|
2860
|
+
w("div", ho, Q(t.field.label), 1),
|
|
2861
|
+
w("div", vo, Q(t.field.description), 1)
|
|
2862
|
+
]) : (u(), m("div", yo, Q(t.texts.emptyMessage), 1))
|
|
2664
2863
|
]));
|
|
2665
2864
|
}
|
|
2666
|
-
}),
|
|
2865
|
+
}), go = C(ao), ht = C(ro), vt = C(po), yt = C(bo), _o = {
|
|
2667
2866
|
placeholder: "Choose...",
|
|
2668
2867
|
clearValue: "Clear value",
|
|
2669
2868
|
showOptions: "Show options"
|
|
2670
|
-
},
|
|
2869
|
+
}, $o = {
|
|
2671
2870
|
chevron: {
|
|
2672
2871
|
icon: "chevron-down"
|
|
2673
2872
|
},
|
|
2674
2873
|
clear: {
|
|
2675
2874
|
icon: "close"
|
|
2676
2875
|
}
|
|
2677
|
-
},
|
|
2876
|
+
}, ko = {
|
|
2678
2877
|
key: 0,
|
|
2679
2878
|
class: "q-select__value"
|
|
2680
|
-
},
|
|
2879
|
+
}, wo = {
|
|
2681
2880
|
key: 1,
|
|
2682
2881
|
class: "q-select__placeholder"
|
|
2683
|
-
},
|
|
2882
|
+
}, qo = ["data-key"], xo = {
|
|
2684
2883
|
key: 0,
|
|
2685
2884
|
class: "q-select__loader"
|
|
2686
|
-
},
|
|
2885
|
+
}, Lo = /* @__PURE__ */ S({
|
|
2687
2886
|
inheritAttrs: !1,
|
|
2688
2887
|
__name: "QSelect",
|
|
2689
2888
|
props: /* @__PURE__ */ G({
|
|
@@ -2701,8 +2900,8 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2701
2900
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
2702
2901
|
size: { default: void 0 },
|
|
2703
2902
|
class: { default: "" },
|
|
2704
|
-
icons: { default: () =>
|
|
2705
|
-
texts: { default: () =>
|
|
2903
|
+
icons: { default: () => $o },
|
|
2904
|
+
texts: { default: () => _o }
|
|
2706
2905
|
}, {
|
|
2707
2906
|
modelValue: {
|
|
2708
2907
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2711,79 +2910,79 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2711
2910
|
}),
|
|
2712
2911
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2713
2912
|
setup(n, { emit: t }) {
|
|
2714
|
-
const e = n, l = t, o =
|
|
2913
|
+
const e = n, l = t, o = j(n, "modelValue"), s = V(!1), a = V(""), d = V(null), i = V(null), c = V(null), v = y(() => k.value === void 0), k = y(
|
|
2715
2914
|
() => {
|
|
2716
|
-
var
|
|
2717
|
-
return (
|
|
2915
|
+
var f;
|
|
2916
|
+
return (f = e.items) == null ? void 0 : f.find((q) => q[e.itemValue] === o.value);
|
|
2718
2917
|
}
|
|
2719
|
-
),
|
|
2720
|
-
() =>
|
|
2721
|
-
),
|
|
2918
|
+
), H = y(
|
|
2919
|
+
() => k.value ? k.value[e.itemLabel] : ""
|
|
2920
|
+
), K = y(
|
|
2722
2921
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2723
2922
|
);
|
|
2724
|
-
function
|
|
2725
|
-
o.value =
|
|
2923
|
+
function D(f) {
|
|
2924
|
+
o.value = f, F();
|
|
2726
2925
|
}
|
|
2727
|
-
function
|
|
2728
|
-
|
|
2926
|
+
function g() {
|
|
2927
|
+
K.value && (D(e.emptyValue), le());
|
|
2729
2928
|
}
|
|
2730
|
-
function
|
|
2731
|
-
var
|
|
2732
|
-
!((
|
|
2929
|
+
function B(f) {
|
|
2930
|
+
var q, z, U;
|
|
2931
|
+
!((q = c.value) != null && q.contains(f.relatedTarget)) && !((U = (z = d.value) == null ? void 0 : z.fieldRef) != null && U.contains(f.relatedTarget)) && F();
|
|
2733
2932
|
}
|
|
2734
2933
|
function M() {
|
|
2735
2934
|
s.value || (l("before-show"), s.value = !0);
|
|
2736
2935
|
}
|
|
2737
|
-
function
|
|
2936
|
+
function F() {
|
|
2738
2937
|
s.value && (l("before-hide"), s.value = !1);
|
|
2739
2938
|
}
|
|
2740
|
-
function
|
|
2741
|
-
e.readonly || e.disabled || (s.value ?
|
|
2742
|
-
}
|
|
2743
|
-
let
|
|
2744
|
-
function
|
|
2745
|
-
if (!(!
|
|
2746
|
-
if (window.clearTimeout(
|
|
2747
|
-
a.value +=
|
|
2748
|
-
for (let
|
|
2749
|
-
if (e.items[
|
|
2750
|
-
|
|
2939
|
+
function ee() {
|
|
2940
|
+
e.readonly || e.disabled || (s.value ? F() : M());
|
|
2941
|
+
}
|
|
2942
|
+
let te;
|
|
2943
|
+
function x(f) {
|
|
2944
|
+
if (!(!f.key || e.readonly || e.disabled)) {
|
|
2945
|
+
if (window.clearTimeout(te), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), ["Enter", " "].includes(f.key) && (s.value = !0), ["Escape", "Tab"].includes(f.key) && (s.value ? s.value = !1 : K.value && f.key === "Escape" && g()), f.key === "Delete" && e.clearable && g(), /^[a-z]$/i.test(f.key)) {
|
|
2946
|
+
a.value += f.key.toLowerCase();
|
|
2947
|
+
for (let q = 0; q < e.items.length; q++)
|
|
2948
|
+
if (e.items[q][e.itemLabel].toLowerCase().startsWith(a.value)) {
|
|
2949
|
+
b(q);
|
|
2751
2950
|
break;
|
|
2752
2951
|
}
|
|
2753
2952
|
}
|
|
2754
|
-
|
|
2953
|
+
te = window.setTimeout(function() {
|
|
2755
2954
|
a.value = "";
|
|
2756
2955
|
}, 500);
|
|
2757
2956
|
}
|
|
2758
2957
|
}
|
|
2759
|
-
function
|
|
2760
|
-
var
|
|
2761
|
-
e.loading ? (
|
|
2958
|
+
function E() {
|
|
2959
|
+
var f;
|
|
2960
|
+
e.loading ? (f = c.value) == null || f.focus() : ce(), l("show");
|
|
2762
2961
|
}
|
|
2763
|
-
function
|
|
2764
|
-
|
|
2962
|
+
function P() {
|
|
2963
|
+
le(), l("hide");
|
|
2765
2964
|
}
|
|
2766
|
-
function
|
|
2767
|
-
var
|
|
2768
|
-
(
|
|
2965
|
+
function le() {
|
|
2966
|
+
var f, q;
|
|
2967
|
+
(q = (f = d.value) == null ? void 0 : f.fieldRef) == null || q.focus();
|
|
2769
2968
|
}
|
|
2770
|
-
function
|
|
2771
|
-
var
|
|
2772
|
-
(
|
|
2969
|
+
function ce() {
|
|
2970
|
+
var f;
|
|
2971
|
+
(f = i.value) == null || f.$el.focus();
|
|
2773
2972
|
}
|
|
2774
|
-
function
|
|
2775
|
-
var
|
|
2776
|
-
(
|
|
2973
|
+
function b(f) {
|
|
2974
|
+
var q;
|
|
2975
|
+
(q = i.value) == null || q.focusItem(f);
|
|
2777
2976
|
}
|
|
2778
|
-
return
|
|
2977
|
+
return ne(
|
|
2779
2978
|
() => e.loading,
|
|
2780
|
-
(
|
|
2781
|
-
!
|
|
2979
|
+
(f) => {
|
|
2980
|
+
!f && s.value && oe(ce);
|
|
2782
2981
|
}
|
|
2783
|
-
), (
|
|
2784
|
-
var
|
|
2785
|
-
return
|
|
2786
|
-
|
|
2982
|
+
), (f, q) => {
|
|
2983
|
+
var z, U;
|
|
2984
|
+
return u(), m(R, null, [
|
|
2985
|
+
O(h(Se), X({
|
|
2787
2986
|
id: e.id,
|
|
2788
2987
|
ref_key: "triggerEl",
|
|
2789
2988
|
ref: d,
|
|
@@ -2806,27 +3005,27 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2806
3005
|
"aria-expanded": s.value,
|
|
2807
3006
|
"aria-haspopup": "listbox",
|
|
2808
3007
|
size: e.size
|
|
2809
|
-
},
|
|
2810
|
-
onClick:
|
|
2811
|
-
onKeydown:
|
|
3008
|
+
}, f.$attrs, {
|
|
3009
|
+
onClick: ee,
|
|
3010
|
+
onKeydown: re(x, ["stop"])
|
|
2812
3011
|
}), ye({
|
|
2813
|
-
append:
|
|
2814
|
-
p(
|
|
2815
|
-
|
|
3012
|
+
append: _(() => [
|
|
3013
|
+
p(f.$slots, "append"),
|
|
3014
|
+
K.value && o.value ? (u(), I(h(ae), {
|
|
2816
3015
|
key: 0,
|
|
2817
3016
|
class: "q-select__clear",
|
|
2818
3017
|
"aria-label": e.texts.clearValue,
|
|
2819
3018
|
"b-style": "plain",
|
|
2820
3019
|
borderless: "",
|
|
2821
3020
|
tabindex: "-1",
|
|
2822
|
-
onClick:
|
|
3021
|
+
onClick: g
|
|
2823
3022
|
}, {
|
|
2824
|
-
default:
|
|
2825
|
-
|
|
3023
|
+
default: _(() => [
|
|
3024
|
+
O(h(N), J(se(e.icons.clear)), null, 16)
|
|
2826
3025
|
]),
|
|
2827
3026
|
_: 1
|
|
2828
|
-
}, 8, ["aria-label"])) :
|
|
2829
|
-
e.readonly ?
|
|
3027
|
+
}, 8, ["aria-label"])) : $("", !0),
|
|
3028
|
+
e.readonly ? $("", !0) : (u(), I(h(ae), {
|
|
2830
3029
|
key: 1,
|
|
2831
3030
|
class: "q-select__chevron",
|
|
2832
3031
|
"aria-label": e.texts.showOptions,
|
|
@@ -2834,96 +3033,96 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2834
3033
|
borderless: "",
|
|
2835
3034
|
tabindex: "-1",
|
|
2836
3035
|
disabled: e.disabled,
|
|
2837
|
-
onClick:
|
|
3036
|
+
onClick: ee
|
|
2838
3037
|
}, {
|
|
2839
|
-
default:
|
|
2840
|
-
|
|
3038
|
+
default: _(() => [
|
|
3039
|
+
O(h(N), J(se(e.icons.chevron)), null, 16)
|
|
2841
3040
|
]),
|
|
2842
3041
|
_: 1
|
|
2843
3042
|
}, 8, ["aria-label", "disabled"]))
|
|
2844
3043
|
]),
|
|
2845
|
-
default:
|
|
2846
|
-
|
|
2847
|
-
!e.readonly && !e.disabled ? (
|
|
2848
|
-
|
|
2849
|
-
], 64)) :
|
|
2850
|
-
])) : (
|
|
3044
|
+
default: _(() => [
|
|
3045
|
+
v.value ? (u(), m("span", wo, [
|
|
3046
|
+
!e.readonly && !e.disabled ? (u(), m(R, { key: 0 }, [
|
|
3047
|
+
de(Q(e.texts.placeholder), 1)
|
|
3048
|
+
], 64)) : $("", !0)
|
|
3049
|
+
])) : (u(), m("span", ko, Q(H.value), 1))
|
|
2851
3050
|
]),
|
|
2852
3051
|
_: 2
|
|
2853
3052
|
}, [
|
|
2854
|
-
(
|
|
3053
|
+
(z = k.value) != null && z.icon || f.$slots.prepend ? {
|
|
2855
3054
|
name: "prepend",
|
|
2856
|
-
fn:
|
|
2857
|
-
var Y,
|
|
3055
|
+
fn: _(() => {
|
|
3056
|
+
var Y, W;
|
|
2858
3057
|
return [
|
|
2859
|
-
p(
|
|
2860
|
-
(Y =
|
|
3058
|
+
p(f.$slots, "prepend"),
|
|
3059
|
+
(Y = k.value) != null && Y.icon ? (u(), I(h(N), J(X({ key: 0 }, (W = k.value) == null ? void 0 : W.icon)), null, 16)) : $("", !0)
|
|
2861
3060
|
];
|
|
2862
3061
|
}),
|
|
2863
3062
|
key: "0"
|
|
2864
3063
|
} : void 0,
|
|
2865
|
-
|
|
3064
|
+
f.$slots.extras ? {
|
|
2866
3065
|
name: "extras",
|
|
2867
|
-
fn:
|
|
2868
|
-
p(
|
|
3066
|
+
fn: _(() => [
|
|
3067
|
+
p(f.$slots, "extras")
|
|
2869
3068
|
]),
|
|
2870
3069
|
key: "1"
|
|
2871
3070
|
} : void 0
|
|
2872
3071
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2873
|
-
|
|
3072
|
+
O(h(pe), {
|
|
2874
3073
|
modelValue: s.value,
|
|
2875
|
-
"onUpdate:modelValue":
|
|
3074
|
+
"onUpdate:modelValue": q[0] || (q[0] = (Y) => s.value = Y),
|
|
2876
3075
|
spy: "",
|
|
2877
3076
|
trigger: "manual",
|
|
2878
3077
|
placement: "bottom-start",
|
|
2879
3078
|
width: "anchor",
|
|
2880
3079
|
"scroll-lock": "",
|
|
2881
|
-
anchor: (
|
|
3080
|
+
anchor: (U = d.value) == null ? void 0 : U.$el,
|
|
2882
3081
|
offset: 2,
|
|
2883
|
-
onEnter:
|
|
2884
|
-
onLeave:
|
|
3082
|
+
onEnter: E,
|
|
3083
|
+
onLeave: P
|
|
2885
3084
|
}, {
|
|
2886
|
-
default:
|
|
2887
|
-
|
|
3085
|
+
default: _(() => [
|
|
3086
|
+
w("div", {
|
|
2888
3087
|
ref_key: "contentRef",
|
|
2889
|
-
ref:
|
|
3088
|
+
ref: c,
|
|
2890
3089
|
"data-testid": "combobox-dropdown",
|
|
2891
3090
|
"data-key": e.id,
|
|
2892
3091
|
class: "q-select__body",
|
|
2893
3092
|
tabindex: "-1",
|
|
2894
|
-
onFocusout:
|
|
2895
|
-
onKeydown:
|
|
3093
|
+
onFocusout: B,
|
|
3094
|
+
onKeydown: re(x, ["stop"])
|
|
2896
3095
|
}, [
|
|
2897
|
-
p(
|
|
2898
|
-
e.loading ? (
|
|
2899
|
-
|
|
2900
|
-
])) : (
|
|
3096
|
+
p(f.$slots, "body.prepend"),
|
|
3097
|
+
e.loading ? (u(), m("div", xo, [
|
|
3098
|
+
O(h(ke), { size: 24 })
|
|
3099
|
+
])) : (u(), I(h(Ie), {
|
|
2901
3100
|
key: 1,
|
|
2902
3101
|
ref_key: "listRef",
|
|
2903
|
-
ref:
|
|
3102
|
+
ref: i,
|
|
2904
3103
|
class: "q-select__items",
|
|
2905
3104
|
selectable: "",
|
|
2906
3105
|
"model-value": o.value,
|
|
2907
3106
|
items: e.items,
|
|
2908
|
-
groups:
|
|
3107
|
+
groups: f.groups,
|
|
2909
3108
|
"item-label": e.itemLabel,
|
|
2910
3109
|
"item-value": e.itemValue,
|
|
2911
|
-
"onUpdate:modelValue":
|
|
3110
|
+
"onUpdate:modelValue": D
|
|
2912
3111
|
}, {
|
|
2913
|
-
item:
|
|
2914
|
-
p(
|
|
3112
|
+
item: _(({ item: Y }) => [
|
|
3113
|
+
p(f.$slots, "item", { item: Y })
|
|
2915
3114
|
]),
|
|
2916
3115
|
_: 3
|
|
2917
3116
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
2918
|
-
p(
|
|
2919
|
-
], 40,
|
|
3117
|
+
p(f.$slots, "body.append")
|
|
3118
|
+
], 40, qo)
|
|
2920
3119
|
]),
|
|
2921
3120
|
_: 3
|
|
2922
3121
|
}, 8, ["modelValue", "anchor"])
|
|
2923
3122
|
], 64);
|
|
2924
3123
|
};
|
|
2925
3124
|
}
|
|
2926
|
-
}),
|
|
3125
|
+
}), Io = C(Lo), So = /* @__PURE__ */ S({
|
|
2927
3126
|
__name: "QSkeletonLoader",
|
|
2928
3127
|
props: {
|
|
2929
3128
|
type: { default: void 0 },
|
|
@@ -2938,27 +3137,27 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2938
3137
|
height: s
|
|
2939
3138
|
};
|
|
2940
3139
|
});
|
|
2941
|
-
return (o, s) => (
|
|
2942
|
-
class:
|
|
3140
|
+
return (o, s) => (u(), m("div", {
|
|
3141
|
+
class: A(["q-skeleton-loader", e.value]),
|
|
2943
3142
|
style: fe(l.value)
|
|
2944
3143
|
}, s[0] || (s[0] = [
|
|
2945
|
-
|
|
3144
|
+
w("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2946
3145
|
]), 6));
|
|
2947
3146
|
}
|
|
2948
|
-
}),
|
|
3147
|
+
}), Bo = C(So), Co = /* @__PURE__ */ S({
|
|
2949
3148
|
__name: "QThemeProvider",
|
|
2950
3149
|
props: {
|
|
2951
3150
|
theme: {}
|
|
2952
3151
|
},
|
|
2953
3152
|
setup(n) {
|
|
2954
3153
|
const t = n;
|
|
2955
|
-
return (e, l) => (
|
|
2956
|
-
class:
|
|
3154
|
+
return (e, l) => (u(), m("div", {
|
|
3155
|
+
class: A(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2957
3156
|
}, [
|
|
2958
3157
|
p(e.$slots, "default")
|
|
2959
3158
|
], 2));
|
|
2960
3159
|
}
|
|
2961
|
-
}),
|
|
3160
|
+
}), Vo = C(Co), To = ["innerHTML"], Ao = /* @__PURE__ */ S({
|
|
2962
3161
|
__name: "QTooltip",
|
|
2963
3162
|
props: /* @__PURE__ */ G({
|
|
2964
3163
|
id: { default: void 0 },
|
|
@@ -2981,13 +3180,13 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2981
3180
|
}),
|
|
2982
3181
|
emits: ["update:modelValue"],
|
|
2983
3182
|
setup(n) {
|
|
2984
|
-
const t = n, e =
|
|
2985
|
-
return (o, s) => (
|
|
3183
|
+
const t = n, e = j(n, "modelValue"), l = ue(t.id);
|
|
3184
|
+
return (o, s) => (u(), m(R, null, [
|
|
2986
3185
|
p(o.$slots, "anchor", {
|
|
2987
|
-
props: { "aria-describedby":
|
|
3186
|
+
props: { "aria-describedby": h(l) }
|
|
2988
3187
|
}),
|
|
2989
|
-
|
|
2990
|
-
id:
|
|
3188
|
+
O(h(pe), {
|
|
3189
|
+
id: h(l),
|
|
2991
3190
|
"model-value": e.value,
|
|
2992
3191
|
anchor: t.anchor,
|
|
2993
3192
|
role: "tooltip",
|
|
@@ -2996,20 +3195,20 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
2996
3195
|
arrow: t.arrow,
|
|
2997
3196
|
attach: t.attach,
|
|
2998
3197
|
inline: t.inline,
|
|
2999
|
-
class:
|
|
3198
|
+
class: A(["q-tooltip", t.class]),
|
|
3000
3199
|
delay: t.delay,
|
|
3001
3200
|
disabled: t.disabled,
|
|
3002
3201
|
placement: t.placement,
|
|
3003
3202
|
trigger: t.trigger
|
|
3004
3203
|
}, {
|
|
3005
|
-
default:
|
|
3204
|
+
default: _(() => [
|
|
3006
3205
|
p(o.$slots, "default", {}, () => [
|
|
3007
|
-
t.icon ? (
|
|
3008
|
-
t.html ? (
|
|
3206
|
+
t.icon ? (u(), I(h(N), J(X({ key: 0 }, t.icon)), null, 16)) : $("", !0),
|
|
3207
|
+
t.html ? (u(), m("span", {
|
|
3009
3208
|
key: 1,
|
|
3010
3209
|
innerHTML: t.text
|
|
3011
|
-
}, null, 8,
|
|
3012
|
-
|
|
3210
|
+
}, null, 8, To)) : (u(), m(R, { key: 2 }, [
|
|
3211
|
+
de(Q(t.text), 1)
|
|
3013
3212
|
], 64))
|
|
3014
3213
|
])
|
|
3015
3214
|
]),
|
|
@@ -3017,61 +3216,62 @@ const rl = ["role"], dl = /* @__PURE__ */ C({
|
|
|
3017
3216
|
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
3018
3217
|
], 64));
|
|
3019
3218
|
}
|
|
3020
|
-
}),
|
|
3219
|
+
}), Eo = C(Ao), Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3021
3220
|
__proto__: null,
|
|
3022
|
-
QAccordion:
|
|
3221
|
+
QAccordion: Vt,
|
|
3023
3222
|
QBadge: Zt,
|
|
3024
|
-
QButton:
|
|
3223
|
+
QButton: ae,
|
|
3025
3224
|
QButtonGroup: rt,
|
|
3026
3225
|
QButtonToggle: tn,
|
|
3027
3226
|
QCard: dt,
|
|
3028
3227
|
QCheckbox: gn,
|
|
3029
|
-
QCollapsible:
|
|
3030
|
-
QCombobox:
|
|
3031
|
-
QDialog:
|
|
3032
|
-
|
|
3033
|
-
|
|
3228
|
+
QCollapsible: Bn,
|
|
3229
|
+
QCombobox: Ll,
|
|
3230
|
+
QDialog: Ol,
|
|
3231
|
+
QDropdownMenu: Rl,
|
|
3232
|
+
QField: Se,
|
|
3233
|
+
QIcon: N,
|
|
3034
3234
|
QIconFont: ot,
|
|
3035
3235
|
QIconImg: st,
|
|
3036
3236
|
QIconSvg: at,
|
|
3037
|
-
QInputGroup:
|
|
3038
|
-
QLineLoader:
|
|
3039
|
-
QList:
|
|
3237
|
+
QInputGroup: Xl,
|
|
3238
|
+
QLineLoader: Zl,
|
|
3239
|
+
QList: Ie,
|
|
3040
3240
|
QListItem: ut,
|
|
3041
3241
|
QListItemGroup: ct,
|
|
3042
|
-
QOverlay:
|
|
3043
|
-
QPopover:
|
|
3044
|
-
QPropertyList:
|
|
3045
|
-
QPropertyListGroup:
|
|
3046
|
-
QPropertyListPanel:
|
|
3242
|
+
QOverlay: pe,
|
|
3243
|
+
QPopover: oo,
|
|
3244
|
+
QPropertyList: go,
|
|
3245
|
+
QPropertyListGroup: vt,
|
|
3246
|
+
QPropertyListPanel: yt,
|
|
3047
3247
|
QPropertyListRow: ht,
|
|
3048
|
-
QSelect:
|
|
3049
|
-
QSkeletonLoader:
|
|
3050
|
-
QSpinnerLoader:
|
|
3248
|
+
QSelect: Io,
|
|
3249
|
+
QSkeletonLoader: Bo,
|
|
3250
|
+
QSpinnerLoader: ke,
|
|
3051
3251
|
QTextField: ft,
|
|
3052
|
-
QThemeProvider:
|
|
3053
|
-
QTooltip:
|
|
3054
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3055
|
-
function
|
|
3056
|
-
const n = ze(
|
|
3252
|
+
QThemeProvider: Vo,
|
|
3253
|
+
QTooltip: Eo
|
|
3254
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = "q-theme";
|
|
3255
|
+
function Qo() {
|
|
3256
|
+
const n = ze($e);
|
|
3057
3257
|
if (!n)
|
|
3058
3258
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
3059
3259
|
return n;
|
|
3060
3260
|
}
|
|
3061
|
-
function
|
|
3062
|
-
const t =
|
|
3063
|
-
activeTheme:
|
|
3261
|
+
function Ro(n) {
|
|
3262
|
+
const t = Qo(), e = {
|
|
3263
|
+
activeTheme: V(n),
|
|
3064
3264
|
themes: t.themes
|
|
3065
3265
|
};
|
|
3066
|
-
return
|
|
3266
|
+
return Me($e, e), e;
|
|
3067
3267
|
}
|
|
3068
|
-
function
|
|
3268
|
+
function Mo() {
|
|
3069
3269
|
let n = document.getElementById(
|
|
3070
|
-
|
|
3270
|
+
$e
|
|
3071
3271
|
);
|
|
3072
|
-
return n || (n = document.createElement("style"), n.id =
|
|
3272
|
+
return n || (n = document.createElement("style"), n.id = $e, document.head.appendChild(n)), n;
|
|
3073
3273
|
}
|
|
3074
|
-
function
|
|
3274
|
+
function zo(n) {
|
|
3075
3275
|
let t = "";
|
|
3076
3276
|
for (const l of n) {
|
|
3077
3277
|
t += `.q-theme--${l.name} {
|
|
@@ -3091,33 +3291,33 @@ function Vo(n) {
|
|
|
3091
3291
|
t += `}
|
|
3092
3292
|
`;
|
|
3093
3293
|
}
|
|
3094
|
-
const e =
|
|
3294
|
+
const e = Mo();
|
|
3095
3295
|
e.textContent = t;
|
|
3096
3296
|
}
|
|
3097
3297
|
function Ze(n) {
|
|
3098
3298
|
return n ? `--q-theme-${lt(n)}` : "";
|
|
3099
3299
|
}
|
|
3100
|
-
function
|
|
3300
|
+
function Oo(n = {}) {
|
|
3101
3301
|
return { install: (e) => {
|
|
3102
3302
|
const l = n.components || {};
|
|
3103
3303
|
for (const s in l)
|
|
3104
3304
|
e.component(s, l[s]);
|
|
3105
3305
|
const o = n.defaults || {};
|
|
3106
|
-
e.provide(
|
|
3306
|
+
e.provide(Pe, V(o)), Fo(e, n.themes);
|
|
3107
3307
|
} };
|
|
3108
3308
|
}
|
|
3109
|
-
function
|
|
3309
|
+
function Fo(n, t) {
|
|
3110
3310
|
const e = [];
|
|
3111
3311
|
let l;
|
|
3112
3312
|
if (!t)
|
|
3113
3313
|
l = "default", e.push({
|
|
3114
3314
|
name: l,
|
|
3115
3315
|
mode: "light",
|
|
3116
|
-
scheme:
|
|
3316
|
+
scheme: De
|
|
3117
3317
|
});
|
|
3118
3318
|
else
|
|
3119
3319
|
for (const o of t.themes) {
|
|
3120
|
-
const a = { ...o.mode === "light" ?
|
|
3320
|
+
const a = { ...o.mode === "light" ? De : et, ...o.colors };
|
|
3121
3321
|
e.push({
|
|
3122
3322
|
name: o.name,
|
|
3123
3323
|
mode: o.mode,
|
|
@@ -3126,21 +3326,21 @@ function Eo(n, t) {
|
|
|
3126
3326
|
}
|
|
3127
3327
|
if (l) {
|
|
3128
3328
|
const o = {
|
|
3129
|
-
activeTheme:
|
|
3329
|
+
activeTheme: V(l),
|
|
3130
3330
|
themes: e
|
|
3131
3331
|
};
|
|
3132
|
-
|
|
3332
|
+
zo(e), ne(o.activeTheme, Po, { immediate: !0 }), n.provide($e, o);
|
|
3133
3333
|
}
|
|
3134
3334
|
}
|
|
3135
|
-
function
|
|
3335
|
+
function Po(n) {
|
|
3136
3336
|
const t = document.documentElement, l = Array.from(t.classList).filter((o) => !o.startsWith("q-theme"));
|
|
3137
3337
|
t.className = l.join(" "), t.classList.add(`q-theme--${n}`);
|
|
3138
3338
|
}
|
|
3139
|
-
const
|
|
3339
|
+
const Go = (n = {}) => Oo({ components: Do, ...n });
|
|
3140
3340
|
export {
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3341
|
+
Do as components,
|
|
3342
|
+
Go as createFramework,
|
|
3343
|
+
Ro as provideTheme,
|
|
3344
|
+
No as templates,
|
|
3345
|
+
Qo as useTheme
|
|
3146
3346
|
};
|