@quidgest/ui 0.13.0 → 0.13.2
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/ui.css +10 -2
- package/dist/ui.esm.js +645 -629
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +35 -35
- package/dist/ui.scss +10 -3
- package/esm/components/QBadge/QBadge.d.ts +12 -6
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +6 -6
- package/esm/components/QBadge/index.d.ts +37 -15
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.d.ts +22 -39
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +29 -29
- package/esm/components/QCombobox/index.d.ts +48 -56
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.d.ts +29 -7
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +121 -102
- package/esm/components/QDialog/index.d.ts +41 -7
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QList/QList.d.ts +10 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +23 -22
- package/esm/components/QList/QListItem.d.ts +14 -8
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +17 -17
- package/esm/components/QList/index.d.ts +49 -15
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +13 -0
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +2 -0
- package/esm/components/QOverlay/index.d.ts +19 -0
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +22 -39
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +37 -37
- package/esm/components/QSelect/index.d.ts +48 -56
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +15 -0
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +44 -27
- package/esm/components/QTooltip/index.d.ts +20 -0
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as L, computed as
|
|
1
|
+
import { defineComponent as L, computed as g, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as I, resolveDynamicComponent as Ke, h as Ae, withCtx as k, normalizeProps as G, guardReactiveProps as se, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.13.
|
|
3
|
+
* Quidgest UI v0.13.2
|
|
4
4
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -66,7 +66,7 @@ const Le = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
71
|
defaultDarkColorScheme: Ge,
|
|
72
72
|
defaultLightColorScheme: Le
|
|
@@ -76,28 +76,28 @@ const Le = {
|
|
|
76
76
|
size: { default: 48 },
|
|
77
77
|
class: { default: void 0 }
|
|
78
78
|
},
|
|
79
|
-
setup(
|
|
80
|
-
const
|
|
81
|
-
"font-size":
|
|
79
|
+
setup(o) {
|
|
80
|
+
const t = o, e = g(() => ({
|
|
81
|
+
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
82
82
|
}));
|
|
83
|
-
return (n, l) => (u(),
|
|
84
|
-
class: C(["q-spinner-loader",
|
|
85
|
-
style:
|
|
83
|
+
return (n, l) => (u(), v("div", {
|
|
84
|
+
class: C(["q-spinner-loader", t.class]),
|
|
85
|
+
style: ue(e.value)
|
|
86
86
|
}, null, 6));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
function Se(
|
|
90
|
-
return
|
|
89
|
+
function Se(o) {
|
|
90
|
+
return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
|
|
91
91
|
}
|
|
92
|
-
function Me(
|
|
93
|
-
return
|
|
92
|
+
function Me(o) {
|
|
93
|
+
return o !== null && typeof o == "object" && !Array.isArray(o);
|
|
94
94
|
}
|
|
95
|
-
function Be(
|
|
95
|
+
function Be(o = {}, t = {}) {
|
|
96
96
|
const e = {};
|
|
97
|
-
for (const n in
|
|
98
|
-
e[n] =
|
|
99
|
-
for (const n in
|
|
100
|
-
const l =
|
|
97
|
+
for (const n in o)
|
|
98
|
+
e[n] = o[n];
|
|
99
|
+
for (const n in t) {
|
|
100
|
+
const l = o[n], s = t[n];
|
|
101
101
|
if (Me(l) && Me(s)) {
|
|
102
102
|
e[n] = Be(
|
|
103
103
|
l,
|
|
@@ -112,44 +112,44 @@ function Be(t = {}, o = {}) {
|
|
|
112
112
|
const Ce = "q-defaults";
|
|
113
113
|
function ft() {
|
|
114
114
|
var s, i;
|
|
115
|
-
const
|
|
116
|
-
if (!t)
|
|
117
|
-
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
118
|
-
const o = t.type.name ?? t.type.__name;
|
|
115
|
+
const o = Pe();
|
|
119
116
|
if (!o)
|
|
117
|
+
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
118
|
+
const t = o.type.name ?? o.type.__name;
|
|
119
|
+
if (!t)
|
|
120
120
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
121
|
-
const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[
|
|
122
|
-
return
|
|
121
|
+
const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
|
|
122
|
+
return g(() => Be(n, l));
|
|
123
123
|
}
|
|
124
|
-
function Re(
|
|
125
|
-
if (Se(
|
|
124
|
+
function Re(o) {
|
|
125
|
+
if (Se(o))
|
|
126
126
|
return;
|
|
127
|
-
const
|
|
127
|
+
const t = We(), e = V(o), n = g(() => Se(e.value) ? t.value : Be(t.value, e.value));
|
|
128
128
|
Ne(Ce, n);
|
|
129
129
|
}
|
|
130
130
|
function We() {
|
|
131
|
-
const
|
|
132
|
-
if (!
|
|
131
|
+
const o = He(Ce, void 0);
|
|
132
|
+
if (!o)
|
|
133
133
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
134
|
-
return
|
|
134
|
+
return o;
|
|
135
135
|
}
|
|
136
|
-
function Xe(
|
|
137
|
-
return
|
|
136
|
+
function Xe(o) {
|
|
137
|
+
return o.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
138
138
|
}
|
|
139
|
-
function pt(
|
|
139
|
+
function pt(o, t) {
|
|
140
140
|
var n;
|
|
141
|
-
const e = Xe(
|
|
142
|
-
return e ? typeof ((n =
|
|
141
|
+
const e = Xe(t);
|
|
142
|
+
return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
|
|
143
143
|
}
|
|
144
|
-
function B(
|
|
145
|
-
const
|
|
146
|
-
return
|
|
144
|
+
function B(o) {
|
|
145
|
+
const t = o.setup;
|
|
146
|
+
return t && (o.setup = (e, n) => {
|
|
147
147
|
const l = ft();
|
|
148
148
|
if (Se(l.value))
|
|
149
|
-
return
|
|
149
|
+
return t(e, n);
|
|
150
150
|
const s = Pe();
|
|
151
151
|
if (s === null)
|
|
152
|
-
return
|
|
152
|
+
return t(e, n);
|
|
153
153
|
const i = new Proxy(e, {
|
|
154
154
|
get(a, r) {
|
|
155
155
|
var x;
|
|
@@ -157,10 +157,10 @@ function B(t) {
|
|
|
157
157
|
return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
return
|
|
161
|
-
}),
|
|
160
|
+
return t(i, n);
|
|
161
|
+
}), o;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const Ie = B(ct), mt = ["disabled"], vt = {
|
|
164
164
|
key: 0,
|
|
165
165
|
class: "q-btn__spinner"
|
|
166
166
|
}, ht = { class: "q-btn__content" }, yt = /* @__PURE__ */ L({
|
|
@@ -179,12 +179,12 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
179
179
|
class: { default: void 0 }
|
|
180
180
|
},
|
|
181
181
|
emits: ["click"],
|
|
182
|
-
setup(
|
|
183
|
-
const e =
|
|
182
|
+
setup(o, { emit: t }) {
|
|
183
|
+
const e = o, n = t, l = g(() => e.disabled || e.loading);
|
|
184
184
|
function s(a) {
|
|
185
185
|
l.value || n("click", a);
|
|
186
186
|
}
|
|
187
|
-
const i =
|
|
187
|
+
const i = g(() => {
|
|
188
188
|
const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
189
189
|
return [
|
|
190
190
|
"q-btn",
|
|
@@ -200,27 +200,27 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
200
200
|
e.class
|
|
201
201
|
];
|
|
202
202
|
});
|
|
203
|
-
return (a, r) => (u(),
|
|
203
|
+
return (a, r) => (u(), v("button", {
|
|
204
204
|
type: "button",
|
|
205
205
|
class: C(i.value),
|
|
206
206
|
disabled: l.value,
|
|
207
207
|
onClick: pe(s, ["stop", "prevent"])
|
|
208
208
|
}, [
|
|
209
|
-
a.loading ? (u(),
|
|
210
|
-
z(
|
|
209
|
+
a.loading ? (u(), v("div", vt, [
|
|
210
|
+
z(m(Ie), { size: 20 })
|
|
211
211
|
])) : $("", !0),
|
|
212
212
|
A("span", ht, [
|
|
213
|
-
a.iconOnRight ? (u(),
|
|
214
|
-
|
|
213
|
+
a.iconOnRight ? (u(), v(te, { key: 0 }, [
|
|
214
|
+
me(N(e.label), 1)
|
|
215
215
|
], 64)) : $("", !0),
|
|
216
216
|
y(a.$slots, "default"),
|
|
217
|
-
a.iconOnRight ? $("", !0) : (u(),
|
|
218
|
-
|
|
217
|
+
a.iconOnRight ? $("", !0) : (u(), v(te, { key: 1 }, [
|
|
218
|
+
me(N(e.label), 1)
|
|
219
219
|
], 64))
|
|
220
220
|
])
|
|
221
221
|
], 10, mt));
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), de = B(yt), bt = /* @__PURE__ */ L({
|
|
224
224
|
__name: "QIcon",
|
|
225
225
|
props: {
|
|
226
226
|
icon: {},
|
|
@@ -228,9 +228,9 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
228
228
|
size: { default: void 0 },
|
|
229
229
|
class: { default: void 0 }
|
|
230
230
|
},
|
|
231
|
-
setup(
|
|
232
|
-
const
|
|
233
|
-
switch (
|
|
231
|
+
setup(o) {
|
|
232
|
+
const t = o, e = g(() => {
|
|
233
|
+
switch (t.type) {
|
|
234
234
|
case "svg":
|
|
235
235
|
return Je;
|
|
236
236
|
case "font":
|
|
@@ -242,9 +242,9 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
return (n, l) => (u(), I(Ke(e.value), {
|
|
245
|
-
class: C(
|
|
246
|
-
icon:
|
|
247
|
-
size:
|
|
245
|
+
class: C(t.class),
|
|
246
|
+
icon: t.icon,
|
|
247
|
+
size: t.size
|
|
248
248
|
}, null, 8, ["class", "icon", "size"]));
|
|
249
249
|
}
|
|
250
250
|
}), gt = /* @__PURE__ */ L({
|
|
@@ -256,13 +256,13 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
256
256
|
size: { default: void 0 },
|
|
257
257
|
class: { default: void 0 }
|
|
258
258
|
},
|
|
259
|
-
setup(
|
|
260
|
-
const
|
|
261
|
-
"font-size":
|
|
259
|
+
setup(o) {
|
|
260
|
+
const t = o, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
|
|
261
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
262
262
|
}));
|
|
263
|
-
return (s, i) => (u(),
|
|
264
|
-
class: C(["q-icon", "q-icon__font", e.value, n.value,
|
|
265
|
-
style:
|
|
263
|
+
return (s, i) => (u(), v("i", {
|
|
264
|
+
class: C(["q-icon", "q-icon__font", e.value, n.value, t.class]),
|
|
265
|
+
style: ue(l.value)
|
|
266
266
|
}, null, 6));
|
|
267
267
|
}
|
|
268
268
|
}), _t = ["src"], kt = /* @__PURE__ */ L({
|
|
@@ -272,32 +272,32 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
272
272
|
size: {},
|
|
273
273
|
class: {}
|
|
274
274
|
},
|
|
275
|
-
setup(
|
|
276
|
-
const
|
|
277
|
-
"font-size":
|
|
275
|
+
setup(o) {
|
|
276
|
+
const t = o, e = g(() => ({
|
|
277
|
+
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
278
278
|
}));
|
|
279
|
-
return (n, l) => (u(),
|
|
280
|
-
src:
|
|
281
|
-
class: C(["q-icon", "q-icon__img",
|
|
282
|
-
style:
|
|
279
|
+
return (n, l) => (u(), v("img", {
|
|
280
|
+
src: t.icon,
|
|
281
|
+
class: C(["q-icon", "q-icon__img", t.class]),
|
|
282
|
+
style: ue(e.value)
|
|
283
283
|
}, null, 14, _t));
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), ye = {}, wt = L({
|
|
286
286
|
name: "InlineSvg",
|
|
287
287
|
emits: {
|
|
288
|
-
loaded: (
|
|
288
|
+
loaded: (o) => typeof o == "object",
|
|
289
289
|
unloaded: () => !0,
|
|
290
|
-
error: (
|
|
290
|
+
error: (o) => typeof o == "object"
|
|
291
291
|
},
|
|
292
292
|
inheritAttrs: !1,
|
|
293
293
|
render() {
|
|
294
294
|
if (!this.svgElSource)
|
|
295
295
|
return null;
|
|
296
|
-
const
|
|
297
|
-
if (!
|
|
296
|
+
const o = this.getSvgContent(this.svgElSource);
|
|
297
|
+
if (!o)
|
|
298
298
|
return Ae("div", this.$attrs);
|
|
299
|
-
const
|
|
300
|
-
return this.copySvgAttrs(
|
|
299
|
+
const t = {};
|
|
300
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Ae("svg", t);
|
|
301
301
|
},
|
|
302
302
|
props: {
|
|
303
303
|
/**
|
|
@@ -348,30 +348,30 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
348
348
|
await this.getSource(this.src);
|
|
349
349
|
},
|
|
350
350
|
methods: {
|
|
351
|
-
copySvgAttrs(
|
|
352
|
-
const e =
|
|
351
|
+
copySvgAttrs(o, t) {
|
|
352
|
+
const e = t.attributes;
|
|
353
353
|
if (e)
|
|
354
354
|
for (const n of e)
|
|
355
|
-
|
|
355
|
+
o[n.name] = n.value;
|
|
356
356
|
},
|
|
357
|
-
copyComponentAttrs(
|
|
358
|
-
for (const [e, n] of Object.entries(
|
|
359
|
-
n !== !1 && n !== null && n !== void 0 && (
|
|
357
|
+
copyComponentAttrs(o, t) {
|
|
358
|
+
for (const [e, n] of Object.entries(t))
|
|
359
|
+
n !== !1 && n !== null && n !== void 0 && (o[e] = n);
|
|
360
360
|
},
|
|
361
|
-
getSvgContent(
|
|
362
|
-
return this.symbol && (
|
|
361
|
+
getSvgContent(o) {
|
|
362
|
+
return this.symbol && (o = o.getElementById(this.symbol), !o) ? null : (this.transformSource && (o = o.cloneNode(!0), o = this.transformSource(o)), this.title && (this.transformSource || (o = o.cloneNode(!0)), $t(o, this.title)), o);
|
|
363
363
|
},
|
|
364
364
|
/**
|
|
365
365
|
* Get svgElSource
|
|
366
366
|
* @param {string} src
|
|
367
367
|
*/
|
|
368
|
-
async getSource(
|
|
368
|
+
async getSource(o) {
|
|
369
369
|
try {
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
this.svgElSource =
|
|
373
|
-
} catch (
|
|
374
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
370
|
+
ye[o] || (ye[o] = qt(this.download(o))), this.svgElSource && ye[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
371
|
+
const t = await ye[o];
|
|
372
|
+
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
373
|
+
} catch (t) {
|
|
374
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[o], this.$emit("error", t);
|
|
375
375
|
}
|
|
376
376
|
},
|
|
377
377
|
/**
|
|
@@ -379,45 +379,45 @@ const xe = B(ct), mt = ["disabled"], vt = {
|
|
|
379
379
|
* @param {string} url
|
|
380
380
|
* @returns {PromiseWithState<Element>}
|
|
381
381
|
*/
|
|
382
|
-
async download(
|
|
383
|
-
const
|
|
384
|
-
if (!
|
|
382
|
+
async download(o) {
|
|
383
|
+
const t = await fetch(o);
|
|
384
|
+
if (!t.ok)
|
|
385
385
|
throw new Error("Error loading SVG");
|
|
386
|
-
const e = await
|
|
386
|
+
const e = await t.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
|
|
387
387
|
if (!s)
|
|
388
388
|
throw new Error("Loaded file is not a valid SVG");
|
|
389
389
|
return s;
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
392
|
watch: {
|
|
393
|
-
src(
|
|
394
|
-
this.getSource(
|
|
393
|
+
src(o) {
|
|
394
|
+
this.getSource(o);
|
|
395
395
|
}
|
|
396
396
|
},
|
|
397
397
|
expose: []
|
|
398
398
|
});
|
|
399
|
-
function $t(
|
|
400
|
-
const e =
|
|
399
|
+
function $t(o, t) {
|
|
400
|
+
const e = o.getElementsByTagName("title");
|
|
401
401
|
if (e.length)
|
|
402
|
-
e[0].textContent =
|
|
402
|
+
e[0].textContent = t;
|
|
403
403
|
else {
|
|
404
404
|
const n = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
405
|
-
n.textContent =
|
|
405
|
+
n.textContent = t, o.insertBefore(n, o.firstChild);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function qt(
|
|
409
|
-
if (
|
|
410
|
-
return
|
|
411
|
-
let
|
|
412
|
-
const e =
|
|
413
|
-
(n) => (
|
|
408
|
+
function qt(o) {
|
|
409
|
+
if (o.getIsPending)
|
|
410
|
+
return o;
|
|
411
|
+
let t = !0;
|
|
412
|
+
const e = o.then(
|
|
413
|
+
(n) => (t = !1, n),
|
|
414
414
|
(n) => {
|
|
415
|
-
throw
|
|
415
|
+
throw t = !1, n;
|
|
416
416
|
}
|
|
417
417
|
);
|
|
418
|
-
return e.getIsPending = () =>
|
|
418
|
+
return e.getIsPending = () => t, e;
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const It = /* @__PURE__ */ L({
|
|
421
421
|
__name: "QIconSvg",
|
|
422
422
|
props: {
|
|
423
423
|
icon: {},
|
|
@@ -426,8 +426,8 @@ const xt = /* @__PURE__ */ L({
|
|
|
426
426
|
class: { default: void 0 }
|
|
427
427
|
},
|
|
428
428
|
emits: ["loaded", "unloaded"],
|
|
429
|
-
setup(
|
|
430
|
-
const e =
|
|
429
|
+
setup(o, { emit: t }) {
|
|
430
|
+
const e = o, n = t, l = g(() => ({
|
|
431
431
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
432
432
|
}));
|
|
433
433
|
function s(a) {
|
|
@@ -436,40 +436,40 @@ const xt = /* @__PURE__ */ L({
|
|
|
436
436
|
function i() {
|
|
437
437
|
n("unloaded");
|
|
438
438
|
}
|
|
439
|
-
return (a, r) => (u(), I(
|
|
439
|
+
return (a, r) => (u(), I(m(wt), {
|
|
440
440
|
class: C(["q-icon", "q-icon__svg", e.class]),
|
|
441
441
|
src: e.bundle,
|
|
442
442
|
symbol: e.icon,
|
|
443
|
-
style:
|
|
443
|
+
style: ue(l.value),
|
|
444
444
|
onLoaded: s,
|
|
445
445
|
onUnloaded: i
|
|
446
446
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
447
447
|
}
|
|
448
|
-
}), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(
|
|
449
|
-
function
|
|
450
|
-
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(
|
|
448
|
+
}), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(It);
|
|
449
|
+
function xt(o) {
|
|
450
|
+
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(o);
|
|
451
451
|
}
|
|
452
|
-
function Lt(
|
|
453
|
-
const
|
|
454
|
-
if (
|
|
455
|
-
const e = parseInt(
|
|
452
|
+
function Lt(o) {
|
|
453
|
+
const t = o.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
454
|
+
if (t) {
|
|
455
|
+
const e = parseInt(t[1], 10), n = parseInt(t[2], 10), l = parseInt(t[3], 10);
|
|
456
456
|
return { r: e, g: n, b: l };
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
function et(
|
|
460
|
-
if (
|
|
461
|
-
|
|
462
|
-
const
|
|
463
|
-
return { r:
|
|
459
|
+
function et(o) {
|
|
460
|
+
if (xt(o)) {
|
|
461
|
+
o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
|
|
462
|
+
const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), n = parseInt(o.slice(5, 7), 16);
|
|
463
|
+
return { r: t, g: e, b: n };
|
|
464
464
|
} else {
|
|
465
|
-
const
|
|
466
|
-
if (
|
|
467
|
-
return
|
|
465
|
+
const t = Lt(o);
|
|
466
|
+
if (t)
|
|
467
|
+
return t;
|
|
468
468
|
}
|
|
469
469
|
throw new Error("Invalid color format");
|
|
470
470
|
}
|
|
471
|
-
function St(
|
|
472
|
-
const
|
|
471
|
+
function St(o) {
|
|
472
|
+
const t = o.r / 255, e = o.g / 255, n = o.b / 255, l = Math.max(t, e, n), s = Math.min(t, e, n);
|
|
473
473
|
let i = 0, a;
|
|
474
474
|
const r = (l + s) / 2;
|
|
475
475
|
if (l === s)
|
|
@@ -477,14 +477,14 @@ function St(t) {
|
|
|
477
477
|
else {
|
|
478
478
|
const f = l - s;
|
|
479
479
|
switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
|
|
480
|
-
case
|
|
480
|
+
case t:
|
|
481
481
|
i = (e - n) / f + (e < n ? 6 : 0);
|
|
482
482
|
break;
|
|
483
483
|
case e:
|
|
484
|
-
i = (n -
|
|
484
|
+
i = (n - t) / f + 2;
|
|
485
485
|
break;
|
|
486
486
|
case n:
|
|
487
|
-
i = (
|
|
487
|
+
i = (t - e) / f + 4;
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
i /= 6;
|
|
@@ -495,8 +495,8 @@ function St(t) {
|
|
|
495
495
|
l: Math.round(r * 100)
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function Bt(
|
|
499
|
-
return
|
|
498
|
+
function Bt(o) {
|
|
499
|
+
return o > 50 ? "#000" : "#fff";
|
|
500
500
|
}
|
|
501
501
|
const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Tt = { class: "q-badge__content" }, Vt = {
|
|
502
502
|
remove: {
|
|
@@ -509,16 +509,16 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
509
509
|
variant: { default: "tonal" },
|
|
510
510
|
removable: { type: Boolean },
|
|
511
511
|
pill: { type: Boolean },
|
|
512
|
-
|
|
512
|
+
internals: { default: () => ({ icons: Vt }) }
|
|
513
513
|
},
|
|
514
514
|
emits: ["click:remove"],
|
|
515
|
-
setup(
|
|
516
|
-
const e =
|
|
515
|
+
setup(o, { emit: t }) {
|
|
516
|
+
const e = o, n = t, l = g(
|
|
517
517
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
518
|
-
), s =
|
|
518
|
+
), s = g(() => {
|
|
519
519
|
const r = l.value ? `q-badge--${e.color}` : void 0;
|
|
520
520
|
return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
|
|
521
|
-
}), i =
|
|
521
|
+
}), i = g(() => {
|
|
522
522
|
let r, f;
|
|
523
523
|
if (!l.value)
|
|
524
524
|
if (r = e.color, e.variant === "tonal")
|
|
@@ -535,23 +535,23 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
535
535
|
function a() {
|
|
536
536
|
n("click:remove");
|
|
537
537
|
}
|
|
538
|
-
return (r, f) => (u(),
|
|
538
|
+
return (r, f) => (u(), v("span", {
|
|
539
539
|
class: C(s.value),
|
|
540
540
|
role: "presentation",
|
|
541
|
-
style:
|
|
541
|
+
style: ue(i.value)
|
|
542
542
|
}, [
|
|
543
543
|
Ct,
|
|
544
544
|
A("div", Tt, [
|
|
545
545
|
y(r.$slots, "default"),
|
|
546
|
-
e.removable ? (u(), I(
|
|
546
|
+
e.removable ? (u(), I(m(de), {
|
|
547
547
|
key: 0,
|
|
548
548
|
class: "q-badge__remove",
|
|
549
549
|
borderless: "",
|
|
550
550
|
tabindex: "0",
|
|
551
551
|
onClick: a
|
|
552
552
|
}, {
|
|
553
|
-
default:
|
|
554
|
-
z(
|
|
553
|
+
default: k(() => [
|
|
554
|
+
z(m(F), G(se(e.internals.icons.remove)), null, 16)
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
})) : $("", !0)
|
|
@@ -566,22 +566,22 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
566
566
|
elevated: { type: Boolean },
|
|
567
567
|
class: { default: void 0 }
|
|
568
568
|
},
|
|
569
|
-
setup(
|
|
570
|
-
const
|
|
569
|
+
setup(o) {
|
|
570
|
+
const t = o;
|
|
571
571
|
return Re({
|
|
572
572
|
QButton: {
|
|
573
573
|
bStyle: "secondary",
|
|
574
|
-
disabled: ze(
|
|
575
|
-
borderless: ze(
|
|
574
|
+
disabled: ze(t, "disabled"),
|
|
575
|
+
borderless: ze(t, "borderless"),
|
|
576
576
|
elevated: !1
|
|
577
577
|
}
|
|
578
|
-
}), (e, n) => (u(),
|
|
578
|
+
}), (e, n) => (u(), v("div", {
|
|
579
579
|
class: C([
|
|
580
580
|
"q-btn-group",
|
|
581
581
|
{
|
|
582
|
-
"q-btn-group--elevated":
|
|
582
|
+
"q-btn-group--elevated": t.elevated
|
|
583
583
|
},
|
|
584
|
-
|
|
584
|
+
t.class
|
|
585
585
|
])
|
|
586
586
|
}, [
|
|
587
587
|
y(e.$slots, "default")
|
|
@@ -589,7 +589,7 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
589
589
|
}
|
|
590
590
|
}), tt = B(At), zt = /* @__PURE__ */ L({
|
|
591
591
|
__name: "QButtonToggle",
|
|
592
|
-
props: /* @__PURE__ */
|
|
592
|
+
props: /* @__PURE__ */ X({
|
|
593
593
|
options: {},
|
|
594
594
|
disabled: { type: Boolean },
|
|
595
595
|
borderless: { type: Boolean },
|
|
@@ -601,27 +601,27 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
601
601
|
modelModifiers: {}
|
|
602
602
|
}),
|
|
603
603
|
emits: ["update:modelValue"],
|
|
604
|
-
setup(
|
|
605
|
-
const
|
|
604
|
+
setup(o) {
|
|
605
|
+
const t = o, e = ee(o, "modelValue");
|
|
606
606
|
function n(l) {
|
|
607
|
-
e.value === l.key && !
|
|
607
|
+
e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
|
|
608
608
|
}
|
|
609
|
-
return (l, s) => (u(), I(
|
|
609
|
+
return (l, s) => (u(), I(m(tt), {
|
|
610
610
|
"b-style": "secondary",
|
|
611
|
-
class: C(
|
|
612
|
-
disabled:
|
|
613
|
-
borderless:
|
|
614
|
-
elevated:
|
|
611
|
+
class: C(t.class),
|
|
612
|
+
disabled: t.disabled,
|
|
613
|
+
borderless: t.borderless,
|
|
614
|
+
elevated: t.elevated
|
|
615
615
|
}, {
|
|
616
|
-
default:
|
|
617
|
-
(u(!0),
|
|
616
|
+
default: k(() => [
|
|
617
|
+
(u(!0), v(te, null, we(t.options, (i) => (u(), I(m(de), {
|
|
618
618
|
key: i.key,
|
|
619
619
|
title: i.title,
|
|
620
620
|
label: i.label,
|
|
621
621
|
active: e.value === i.key,
|
|
622
622
|
onClick: () => n(i)
|
|
623
623
|
}, {
|
|
624
|
-
default:
|
|
624
|
+
default: k(() => [
|
|
625
625
|
y(l.$slots, i.key)
|
|
626
626
|
]),
|
|
627
627
|
_: 2
|
|
@@ -632,14 +632,15 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
632
632
|
}
|
|
633
633
|
}), Qt = B(zt), Mt = /* @__PURE__ */ L({
|
|
634
634
|
__name: "QList",
|
|
635
|
-
props: /* @__PURE__ */
|
|
635
|
+
props: /* @__PURE__ */ X({
|
|
636
636
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
637
637
|
items: {},
|
|
638
638
|
groups: { default: () => [] },
|
|
639
639
|
itemValue: { default: "key" },
|
|
640
640
|
itemLabel: { default: "label" },
|
|
641
641
|
disabled: { type: Boolean },
|
|
642
|
-
class: { default: void 0 }
|
|
642
|
+
class: { default: void 0 },
|
|
643
|
+
selectable: { type: Boolean }
|
|
643
644
|
}, {
|
|
644
645
|
modelValue: {
|
|
645
646
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -647,9 +648,9 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
647
648
|
modelModifiers: {}
|
|
648
649
|
}),
|
|
649
650
|
emits: ["update:modelValue"],
|
|
650
|
-
setup(
|
|
651
|
-
const e =
|
|
652
|
-
(p) => e.items.some((
|
|
651
|
+
setup(o, { expose: t }) {
|
|
652
|
+
const e = o, n = ee(o, "modelValue"), l = V(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
|
|
653
|
+
(p) => e.items.some((_) => _.group === p.id)
|
|
653
654
|
) : [{ id: "", title: "" }]), a = V(null);
|
|
654
655
|
function r(p) {
|
|
655
656
|
n.value = p;
|
|
@@ -664,10 +665,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
664
665
|
var h;
|
|
665
666
|
if ((h = a.value) != null && h.contains(p.relatedTarget))
|
|
666
667
|
return;
|
|
667
|
-
let
|
|
668
|
-
n.value ?
|
|
668
|
+
let _;
|
|
669
|
+
n.value ? _ = e.items.findIndex((U) => U[e.itemValue] === n.value) : _ = R();
|
|
669
670
|
const c = l.value;
|
|
670
|
-
S(
|
|
671
|
+
S(_, c);
|
|
671
672
|
}
|
|
672
673
|
function M(p) {
|
|
673
674
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
|
|
@@ -692,68 +693,68 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
692
693
|
S(H(p));
|
|
693
694
|
break;
|
|
694
695
|
case "first":
|
|
695
|
-
S(
|
|
696
|
+
S(R());
|
|
696
697
|
break;
|
|
697
698
|
case "last":
|
|
698
699
|
S(O());
|
|
699
700
|
break;
|
|
700
701
|
}
|
|
701
702
|
}
|
|
702
|
-
function S(p,
|
|
703
|
+
function S(p, _ = !1) {
|
|
703
704
|
var h;
|
|
704
|
-
(h = T()[p]) == null || h.focus({ preventScroll:
|
|
705
|
+
(h = T()[p]) == null || h.focus({ preventScroll: _ });
|
|
705
706
|
}
|
|
706
707
|
function T() {
|
|
707
|
-
var
|
|
708
|
-
const p = (
|
|
708
|
+
var _;
|
|
709
|
+
const p = (_ = a.value) == null ? void 0 : _.querySelectorAll("li");
|
|
709
710
|
return p ? Array.from(p) : [];
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
+
function Y(p) {
|
|
712
713
|
return T()[p];
|
|
713
714
|
}
|
|
714
|
-
function
|
|
715
|
+
function oe() {
|
|
715
716
|
return T().indexOf(document.activeElement);
|
|
716
717
|
}
|
|
717
|
-
function
|
|
718
|
-
const p = T(),
|
|
719
|
-
return
|
|
718
|
+
function R() {
|
|
719
|
+
const p = T(), _ = p.find((c) => Q(c));
|
|
720
|
+
return _ ? p.indexOf(_) : -1;
|
|
720
721
|
}
|
|
721
722
|
function O() {
|
|
722
|
-
const p = T(),
|
|
723
|
-
return
|
|
723
|
+
const p = T(), _ = [...p].reverse().find((c) => Q(c));
|
|
724
|
+
return _ ? p.indexOf(_) : -1;
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
726
|
+
function ne(p, _, c) {
|
|
727
|
+
return _ === "prev" && p === 0 || _ === "next" && p === c.length - 1;
|
|
727
728
|
}
|
|
728
729
|
function H(p) {
|
|
729
|
-
const
|
|
730
|
-
return
|
|
730
|
+
const _ = oe();
|
|
731
|
+
return le(_, p);
|
|
731
732
|
}
|
|
732
|
-
function
|
|
733
|
+
function le(p, _) {
|
|
733
734
|
const c = T();
|
|
734
|
-
if (
|
|
735
|
+
if (ne(p, _, c))
|
|
735
736
|
return p;
|
|
736
|
-
let h = p + (
|
|
737
|
+
let h = p + (_ === "next" ? 1 : -1);
|
|
737
738
|
for (; !Q(c[h]); ) {
|
|
738
|
-
if (
|
|
739
|
+
if (ne(h, _, c))
|
|
739
740
|
return p;
|
|
740
|
-
h +=
|
|
741
|
+
h += _ === "next" ? 1 : -1;
|
|
741
742
|
}
|
|
742
743
|
return h;
|
|
743
744
|
}
|
|
744
745
|
function Q(p) {
|
|
745
746
|
return p.tabIndex === -2;
|
|
746
747
|
}
|
|
747
|
-
function
|
|
748
|
-
return p ? e.items.filter((
|
|
748
|
+
function W(p) {
|
|
749
|
+
return p ? e.items.filter((_) => _.group === p) : e.items;
|
|
749
750
|
}
|
|
750
|
-
return
|
|
751
|
+
return t({
|
|
751
752
|
focusItem: S,
|
|
752
|
-
getItem:
|
|
753
|
-
getAdjacentItemIndex:
|
|
754
|
-
getFirstFocusableItemIndex:
|
|
753
|
+
getItem: Y,
|
|
754
|
+
getAdjacentItemIndex: le,
|
|
755
|
+
getFirstFocusableItemIndex: R,
|
|
755
756
|
getLastFocusableItemIndex: O
|
|
756
|
-
}), (p,
|
|
757
|
+
}), (p, _) => (u(), I(Ke(s.value), {
|
|
757
758
|
ref_key: "listRef",
|
|
758
759
|
ref: a,
|
|
759
760
|
class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
@@ -764,14 +765,14 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
764
765
|
onMouseup: q,
|
|
765
766
|
onKeydown: M
|
|
766
767
|
}, {
|
|
767
|
-
default:
|
|
768
|
-
(u(!0),
|
|
768
|
+
default: k(() => [
|
|
769
|
+
(u(!0), v(te, null, we(i.value, (c) => (u(), I(m(nt), {
|
|
769
770
|
key: c.id,
|
|
770
771
|
id: c.id,
|
|
771
772
|
title: i.value.length === 1 ? void 0 : c.title
|
|
772
773
|
}, {
|
|
773
|
-
default:
|
|
774
|
-
(u(!0),
|
|
774
|
+
default: k(() => [
|
|
775
|
+
(u(!0), v(te, null, we(W(c.id), (h) => (u(), I(m(ot), {
|
|
775
776
|
key: h[e.itemValue],
|
|
776
777
|
value: h[e.itemValue],
|
|
777
778
|
label: h[e.itemLabel],
|
|
@@ -779,10 +780,10 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
779
780
|
icon: h.icon,
|
|
780
781
|
disabled: e.disabled || c.disabled || h.disabled,
|
|
781
782
|
highlighted: e.highlighted === h[e.itemValue],
|
|
782
|
-
selected: n.value === h[e.itemValue],
|
|
783
|
+
selected: p.selectable && n.value === h[e.itemValue],
|
|
783
784
|
onSelect: r
|
|
784
785
|
}, {
|
|
785
|
-
default:
|
|
786
|
+
default: k(() => [
|
|
786
787
|
y(p.$slots, "item", { item: h })
|
|
787
788
|
]),
|
|
788
789
|
_: 2
|
|
@@ -796,8 +797,8 @@ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), T
|
|
|
796
797
|
}
|
|
797
798
|
});
|
|
798
799
|
let Ft = 0;
|
|
799
|
-
function
|
|
800
|
-
return
|
|
800
|
+
function ve(o) {
|
|
801
|
+
return o || `uid-${++Ft}`;
|
|
801
802
|
}
|
|
802
803
|
const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
|
|
803
804
|
key: 0,
|
|
@@ -817,21 +818,21 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
817
818
|
icon: { default: void 0 },
|
|
818
819
|
selected: { type: Boolean },
|
|
819
820
|
highlighted: { type: Boolean },
|
|
820
|
-
icons: { default: () => Kt },
|
|
821
821
|
disabled: { type: Boolean },
|
|
822
|
-
description: { default: void 0 }
|
|
822
|
+
description: { default: void 0 },
|
|
823
|
+
internals: { default: () => ({ icons: Kt }) }
|
|
823
824
|
},
|
|
824
825
|
emits: ["select"],
|
|
825
|
-
setup(
|
|
826
|
-
const e =
|
|
826
|
+
setup(o, { emit: t }) {
|
|
827
|
+
const e = o, n = t, l = ve();
|
|
827
828
|
function s() {
|
|
828
829
|
e.disabled || n("select", e.value);
|
|
829
830
|
}
|
|
830
831
|
function i(a) {
|
|
831
832
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
832
833
|
}
|
|
833
|
-
return (a, r) => (u(),
|
|
834
|
-
id:
|
|
834
|
+
return (a, r) => (u(), v("li", {
|
|
835
|
+
id: m(l),
|
|
835
836
|
"data-key": e.value,
|
|
836
837
|
role: "option",
|
|
837
838
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -851,17 +852,17 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
851
852
|
A("div", Ut, [
|
|
852
853
|
A("div", Pt, [
|
|
853
854
|
y(a.$slots, "default", {}, () => [
|
|
854
|
-
e.icon ? (u(), I(
|
|
855
|
-
|
|
855
|
+
e.icon ? (u(), I(m(F), G(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
|
|
856
|
+
me(" " + N(e.label), 1)
|
|
856
857
|
])
|
|
857
858
|
]),
|
|
858
|
-
e.description ? (u(),
|
|
859
|
-
z(
|
|
859
|
+
e.description ? (u(), v("div", Nt, [
|
|
860
|
+
z(m(F), G(se(e.internals.icons.description)), null, 16),
|
|
860
861
|
A("span", null, N(e.description), 1)
|
|
861
862
|
])) : $("", !0)
|
|
862
863
|
]),
|
|
863
864
|
A("div", Ht, [
|
|
864
|
-
e.selected ? (u(), I(
|
|
865
|
+
e.selected ? (u(), I(m(F), re({ key: 0 }, e.internals.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
|
|
865
866
|
])
|
|
866
867
|
], 42, Ot));
|
|
867
868
|
}
|
|
@@ -871,26 +872,26 @@ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = {
|
|
|
871
872
|
id: {},
|
|
872
873
|
title: { default: "" }
|
|
873
874
|
},
|
|
874
|
-
setup(
|
|
875
|
-
const
|
|
876
|
-
return (n, l) => (u(),
|
|
875
|
+
setup(o) {
|
|
876
|
+
const t = o, e = ve();
|
|
877
|
+
return (n, l) => (u(), v("ul", {
|
|
877
878
|
class: "q-list-item-group",
|
|
878
879
|
role: "group",
|
|
879
|
-
"data-key":
|
|
880
|
-
"aria-labelledby":
|
|
880
|
+
"data-key": t.id,
|
|
881
|
+
"aria-labelledby": t.title ? m(e) : void 0
|
|
881
882
|
}, [
|
|
882
|
-
|
|
883
|
+
t.title ? (u(), v("li", {
|
|
883
884
|
key: 0,
|
|
884
|
-
id:
|
|
885
|
+
id: m(e),
|
|
885
886
|
class: "q-list-item-group__title",
|
|
886
887
|
role: "presentation"
|
|
887
|
-
}, N(
|
|
888
|
+
}, N(t.title), 9, Rt)) : $("", !0),
|
|
888
889
|
y(n.$slots, "default")
|
|
889
890
|
], 8, Gt));
|
|
890
891
|
}
|
|
891
892
|
}), Te = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
|
|
892
|
-
function Xt(
|
|
893
|
-
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i =
|
|
893
|
+
function Xt(o, t, e, n) {
|
|
894
|
+
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), x = Jt(q, f, l), M = Zt(x, a, f);
|
|
894
895
|
let E;
|
|
895
896
|
if (n != null && n.arrow) {
|
|
896
897
|
if (!r)
|
|
@@ -899,8 +900,8 @@ function Xt(t, o, e, n) {
|
|
|
899
900
|
}
|
|
900
901
|
return { overlayCoords: M, arrowCoords: E, placement: f };
|
|
901
902
|
}
|
|
902
|
-
function Yt(
|
|
903
|
-
const l = Fe(
|
|
903
|
+
function Yt(o, t, e, n) {
|
|
904
|
+
const l = Fe(o, t, e, n);
|
|
904
905
|
if (Oe(l)) {
|
|
905
906
|
const s = ge(e), a = {
|
|
906
907
|
top: "bottom",
|
|
@@ -908,8 +909,8 @@ function Yt(t, o, e, n) {
|
|
|
908
909
|
left: "right",
|
|
909
910
|
right: "left"
|
|
910
911
|
}[s], r = Fe(
|
|
911
|
-
t,
|
|
912
912
|
o,
|
|
913
|
+
t,
|
|
913
914
|
a,
|
|
914
915
|
n
|
|
915
916
|
);
|
|
@@ -920,54 +921,54 @@ function Yt(t, o, e, n) {
|
|
|
920
921
|
}
|
|
921
922
|
return e;
|
|
922
923
|
}
|
|
923
|
-
function Zt(
|
|
924
|
-
const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...
|
|
925
|
-
return n === "x" ? s.x = l(
|
|
924
|
+
function Zt(o, t, e) {
|
|
925
|
+
const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...o };
|
|
926
|
+
return n === "x" ? s.x = l(o.x, ke, window.innerWidth - t.width - ke) : s.y = l(o.y, ke, window.innerHeight - t.height - ke), s;
|
|
926
927
|
}
|
|
927
|
-
function Jt(
|
|
928
|
-
const n = ge(
|
|
928
|
+
function Jt(o, t, e) {
|
|
929
|
+
const n = ge(t);
|
|
929
930
|
return {
|
|
930
|
-
x:
|
|
931
|
-
y:
|
|
931
|
+
x: o.x + (n === "left" ? -e : n === "right" ? e : 0),
|
|
932
|
+
y: o.y + (n === "top" ? -e : n === "bottom" ? e : 0)
|
|
932
933
|
};
|
|
933
934
|
}
|
|
934
|
-
function eo(
|
|
935
|
+
function eo(o, t, e, n, l) {
|
|
935
936
|
if ($e(l) === "y") {
|
|
936
|
-
const i =
|
|
937
|
+
const i = t.top + t.height / 2, a = o.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
|
|
937
938
|
if (f > 0 && f < e.height - n.height)
|
|
938
939
|
return {
|
|
939
940
|
y: f
|
|
940
941
|
};
|
|
941
942
|
} else {
|
|
942
|
-
const i =
|
|
943
|
+
const i = t.left + t.width / 2, a = o.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
|
|
943
944
|
if (f > 0 && f < e.width - n.width)
|
|
944
945
|
return {
|
|
945
946
|
x: f
|
|
946
947
|
};
|
|
947
948
|
}
|
|
948
949
|
}
|
|
949
|
-
function to(
|
|
950
|
-
const [n, l] = e.split("-"), s =
|
|
950
|
+
function to(o, t, e) {
|
|
951
|
+
const [n, l] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, i = o.y + o.height / 2 - t.height / 2;
|
|
951
952
|
let a;
|
|
952
953
|
switch (n) {
|
|
953
954
|
case "top":
|
|
954
|
-
a = { x: s, y:
|
|
955
|
+
a = { x: s, y: o.y - t.height };
|
|
955
956
|
break;
|
|
956
957
|
case "bottom":
|
|
957
|
-
a = { x: s, y:
|
|
958
|
+
a = { x: s, y: o.y + o.height };
|
|
958
959
|
break;
|
|
959
960
|
case "left":
|
|
960
|
-
a = { x:
|
|
961
|
+
a = { x: o.x - t.width, y: i };
|
|
961
962
|
break;
|
|
962
963
|
case "right":
|
|
963
|
-
a = { x:
|
|
964
|
+
a = { x: o.x + o.width, y: i };
|
|
964
965
|
break;
|
|
965
966
|
default:
|
|
966
967
|
throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
|
|
967
968
|
}
|
|
968
969
|
if (!l)
|
|
969
970
|
return a;
|
|
970
|
-
const f = $e(e) === "y" ? "height" : "width", q = $e(e), x =
|
|
971
|
+
const f = $e(e) === "y" ? "height" : "width", q = $e(e), x = o[f] / 2 - t[f] / 2;
|
|
971
972
|
switch (l) {
|
|
972
973
|
case "start":
|
|
973
974
|
a[q] -= x;
|
|
@@ -980,61 +981,62 @@ function to(t, o, e) {
|
|
|
980
981
|
}
|
|
981
982
|
return a;
|
|
982
983
|
}
|
|
983
|
-
function Fe(
|
|
984
|
+
function Fe(o, t, e, n) {
|
|
984
985
|
const l = ge(e);
|
|
985
986
|
let s = 0;
|
|
986
987
|
switch (l) {
|
|
987
988
|
case "top":
|
|
988
|
-
s =
|
|
989
|
+
s = o.top - (t.height + n);
|
|
989
990
|
break;
|
|
990
991
|
case "bottom":
|
|
991
|
-
s = window.innerHeight -
|
|
992
|
+
s = window.innerHeight - o.bottom - (t.height + n);
|
|
992
993
|
break;
|
|
993
994
|
case "left":
|
|
994
|
-
s =
|
|
995
|
+
s = o.left - (t.width + n);
|
|
995
996
|
break;
|
|
996
997
|
case "right":
|
|
997
|
-
s = window.innerWidth -
|
|
998
|
+
s = window.innerWidth - o.right - (t.width + n);
|
|
998
999
|
break;
|
|
999
1000
|
default:
|
|
1000
1001
|
throw new Error(`[Quidgest UI] Invalid side value: ${l}`);
|
|
1001
1002
|
}
|
|
1002
1003
|
return s;
|
|
1003
1004
|
}
|
|
1004
|
-
function oo(
|
|
1005
|
-
return
|
|
1005
|
+
function oo(o) {
|
|
1006
|
+
return o === "x" ? "y" : "x";
|
|
1006
1007
|
}
|
|
1007
|
-
function no(
|
|
1008
|
-
const
|
|
1009
|
-
return ["left", "right"].includes(
|
|
1008
|
+
function no(o) {
|
|
1009
|
+
const t = ge(o);
|
|
1010
|
+
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1010
1011
|
}
|
|
1011
|
-
function $e(
|
|
1012
|
-
return oo(no(
|
|
1012
|
+
function $e(o) {
|
|
1013
|
+
return oo(no(o));
|
|
1013
1014
|
}
|
|
1014
|
-
function ge(
|
|
1015
|
-
const [
|
|
1016
|
-
return
|
|
1015
|
+
function ge(o) {
|
|
1016
|
+
const [t] = o.split("-");
|
|
1017
|
+
return t;
|
|
1017
1018
|
}
|
|
1018
|
-
function lo(
|
|
1019
|
-
const [,
|
|
1020
|
-
return
|
|
1019
|
+
function lo(o) {
|
|
1020
|
+
const [, t] = o.split("-");
|
|
1021
|
+
return t;
|
|
1021
1022
|
}
|
|
1022
|
-
function Oe(
|
|
1023
|
-
return
|
|
1023
|
+
function Oe(o) {
|
|
1024
|
+
return o < 0;
|
|
1024
1025
|
}
|
|
1025
|
-
function ao(
|
|
1026
|
-
return typeof
|
|
1026
|
+
function ao(o) {
|
|
1027
|
+
return typeof o == "string" ? document.querySelector(o) : o;
|
|
1027
1028
|
}
|
|
1028
1029
|
const so = ["role"], io = /* @__PURE__ */ L({
|
|
1029
1030
|
inheritAttrs: !1,
|
|
1030
1031
|
__name: "QOverlay",
|
|
1031
|
-
props: /* @__PURE__ */
|
|
1032
|
+
props: /* @__PURE__ */ X({
|
|
1032
1033
|
anchor: { default: void 0 },
|
|
1033
1034
|
appearance: { default: "regular" },
|
|
1034
1035
|
arrow: { type: Boolean },
|
|
1035
1036
|
attach: { default: "body" },
|
|
1036
1037
|
inline: { type: Boolean },
|
|
1037
1038
|
backdropBlur: { type: Boolean },
|
|
1039
|
+
backdropClass: { default: void 0 },
|
|
1038
1040
|
delay: { default: 500 },
|
|
1039
1041
|
nonModal: { type: Boolean },
|
|
1040
1042
|
scrollLock: { type: Boolean },
|
|
@@ -1050,9 +1052,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1050
1052
|
modelValue: { type: Boolean },
|
|
1051
1053
|
modelModifiers: {}
|
|
1052
1054
|
}),
|
|
1053
|
-
emits: /* @__PURE__ */
|
|
1054
|
-
setup(
|
|
1055
|
-
const e =
|
|
1055
|
+
emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
|
|
1056
|
+
setup(o, { emit: t }) {
|
|
1057
|
+
const e = o, n = t, l = ee(o, "modelValue"), s = g(() => [
|
|
1056
1058
|
"q-overlay",
|
|
1057
1059
|
`q-overlay--${ge(a.placement)}`,
|
|
1058
1060
|
{
|
|
@@ -1060,7 +1062,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1060
1062
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1061
1063
|
},
|
|
1062
1064
|
e.class
|
|
1063
|
-
]), i =
|
|
1065
|
+
]), i = g(() => (l.value || a.animating) && !e.nonModal), a = Qe({
|
|
1064
1066
|
animating: !1,
|
|
1065
1067
|
top: 0,
|
|
1066
1068
|
left: 0,
|
|
@@ -1070,9 +1072,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1070
1072
|
top: void 0,
|
|
1071
1073
|
left: void 0,
|
|
1072
1074
|
hidden: !0
|
|
1073
|
-
}), f =
|
|
1074
|
-
|
|
1075
|
-
const q =
|
|
1075
|
+
}), f = g(() => a.top !== 0 && a.left !== 0);
|
|
1076
|
+
Z(l, () => a.animating = !0);
|
|
1077
|
+
const q = g(() => {
|
|
1076
1078
|
if (e.anchor === void 0)
|
|
1077
1079
|
return;
|
|
1078
1080
|
const b = Q(), ce = e.width === "anchor", j = ce ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
|
|
@@ -1081,7 +1083,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1081
1083
|
left: `${a.left}px`,
|
|
1082
1084
|
width: j !== void 0 ? `${j}px` : void 0
|
|
1083
1085
|
};
|
|
1084
|
-
}), x =
|
|
1086
|
+
}), x = g(() => {
|
|
1085
1087
|
if (e.arrow)
|
|
1086
1088
|
return {
|
|
1087
1089
|
top: r.top !== void 0 ? `${r.top}px` : void 0,
|
|
@@ -1106,18 +1108,18 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1106
1108
|
);
|
|
1107
1109
|
a.left = j.overlayCoords.x, a.top = j.overlayCoords.y, a.placement = j.placement, r.hidden = j.arrowCoords === void 0, j.arrowCoords && (r.top = j.arrowCoords.y, r.left = j.arrowCoords.x);
|
|
1108
1110
|
}
|
|
1109
|
-
|
|
1111
|
+
Z(
|
|
1110
1112
|
() => e.placement,
|
|
1111
|
-
() =>
|
|
1113
|
+
() => J(S)
|
|
1112
1114
|
);
|
|
1113
1115
|
let T;
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1116
|
+
function Y() {
|
|
1117
|
+
R(0);
|
|
1116
1118
|
}
|
|
1117
|
-
function
|
|
1118
|
-
|
|
1119
|
+
function oe() {
|
|
1120
|
+
R(e.delay);
|
|
1119
1121
|
}
|
|
1120
|
-
function
|
|
1122
|
+
function R(b) {
|
|
1121
1123
|
T || (T = window.setTimeout(() => {
|
|
1122
1124
|
l.value = !0;
|
|
1123
1125
|
}, b));
|
|
@@ -1128,44 +1130,44 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1128
1130
|
b == null || b.focus();
|
|
1129
1131
|
}
|
|
1130
1132
|
}
|
|
1131
|
-
|
|
1132
|
-
function
|
|
1133
|
+
Z(f, () => J(ne));
|
|
1134
|
+
function ne() {
|
|
1133
1135
|
n("enter");
|
|
1134
1136
|
}
|
|
1135
1137
|
let H;
|
|
1136
|
-
function
|
|
1138
|
+
function le() {
|
|
1137
1139
|
window.clearTimeout(H), H = window.setTimeout(() => a.animating = !1, 200), n("leave");
|
|
1138
1140
|
}
|
|
1139
1141
|
function Q() {
|
|
1140
1142
|
return e.anchor ? ao(e.anchor) : null;
|
|
1141
1143
|
}
|
|
1142
|
-
let
|
|
1144
|
+
let W;
|
|
1143
1145
|
function p() {
|
|
1144
1146
|
const b = Q();
|
|
1145
1147
|
if (b)
|
|
1146
|
-
switch (
|
|
1148
|
+
switch (W = new MutationObserver(S), W.observe(b, {
|
|
1147
1149
|
attributes: !1,
|
|
1148
1150
|
childList: !0,
|
|
1149
1151
|
characterData: !0,
|
|
1150
1152
|
subtree: !0
|
|
1151
1153
|
}), e.trigger) {
|
|
1152
1154
|
case "click":
|
|
1153
|
-
b.addEventListener("click",
|
|
1155
|
+
b.addEventListener("click", Y);
|
|
1154
1156
|
break;
|
|
1155
1157
|
case "hover":
|
|
1156
|
-
b.addEventListener("mouseenter",
|
|
1158
|
+
b.addEventListener("mouseenter", oe), b.addEventListener("mouseleave", O), b.addEventListener("focusin", Y), b.addEventListener("focusout", O);
|
|
1157
1159
|
break;
|
|
1158
1160
|
}
|
|
1159
1161
|
}
|
|
1160
|
-
function
|
|
1162
|
+
function _() {
|
|
1161
1163
|
const b = Q();
|
|
1162
1164
|
if (b)
|
|
1163
|
-
switch (
|
|
1165
|
+
switch (W == null || W.disconnect(), e.trigger) {
|
|
1164
1166
|
case "click":
|
|
1165
|
-
b.removeEventListener("click",
|
|
1167
|
+
b.removeEventListener("click", Y);
|
|
1166
1168
|
break;
|
|
1167
1169
|
case "hover":
|
|
1168
|
-
b.removeEventListener("mouseenter",
|
|
1170
|
+
b.removeEventListener("mouseenter", oe), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", Y), b.removeEventListener("focusout", O);
|
|
1169
1171
|
break;
|
|
1170
1172
|
}
|
|
1171
1173
|
}
|
|
@@ -1176,38 +1178,39 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1176
1178
|
window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
|
|
1177
1179
|
}
|
|
1178
1180
|
let U;
|
|
1179
|
-
function
|
|
1180
|
-
Q() ? (S(), U = window.setTimeout(
|
|
1181
|
+
function ae() {
|
|
1182
|
+
Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
|
|
1181
1183
|
}
|
|
1182
1184
|
function K() {
|
|
1183
|
-
c(), e.spy ?
|
|
1185
|
+
c(), e.spy ? ae() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && J(() => {
|
|
1184
1186
|
var b;
|
|
1185
1187
|
return (b = E.value) == null ? void 0 : b.focus();
|
|
1186
1188
|
});
|
|
1187
1189
|
}
|
|
1188
|
-
function
|
|
1190
|
+
function ie() {
|
|
1189
1191
|
h(), e.spy && (clearTimeout(U), U = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
|
|
1190
1192
|
}
|
|
1191
1193
|
function _e() {
|
|
1192
1194
|
e.persistent || O();
|
|
1193
1195
|
}
|
|
1194
1196
|
return je(() => {
|
|
1195
|
-
|
|
1197
|
+
J(p);
|
|
1196
1198
|
}), at(() => {
|
|
1197
|
-
|
|
1198
|
-
}),
|
|
1199
|
+
_(), ie();
|
|
1200
|
+
}), Z(
|
|
1199
1201
|
l,
|
|
1200
1202
|
(b) => {
|
|
1201
|
-
|
|
1203
|
+
J(() => b ? K() : ie());
|
|
1202
1204
|
},
|
|
1203
1205
|
{ immediate: !0 }
|
|
1204
1206
|
), (b, ce) => (u(), I(st, {
|
|
1205
1207
|
disabled: !l.value && !a.animating || e.inline,
|
|
1206
1208
|
to: e.attach
|
|
1207
1209
|
}, [
|
|
1208
|
-
i.value ? (u(),
|
|
1210
|
+
i.value ? (u(), v("div", {
|
|
1209
1211
|
key: 0,
|
|
1210
1212
|
class: C([
|
|
1213
|
+
e.backdropClass,
|
|
1211
1214
|
"q-overlay__underlay",
|
|
1212
1215
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1213
1216
|
])
|
|
@@ -1215,15 +1218,15 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1215
1218
|
z(it, {
|
|
1216
1219
|
name: e.transition,
|
|
1217
1220
|
appear: "",
|
|
1218
|
-
onLeave:
|
|
1221
|
+
onLeave: le
|
|
1219
1222
|
}, {
|
|
1220
|
-
default:
|
|
1221
|
-
l.value ? (u(),
|
|
1223
|
+
default: k(() => [
|
|
1224
|
+
l.value ? (u(), v("div", {
|
|
1222
1225
|
key: 0,
|
|
1223
1226
|
class: C(s.value),
|
|
1224
|
-
style:
|
|
1227
|
+
style: ue(q.value)
|
|
1225
1228
|
}, [
|
|
1226
|
-
A("div",
|
|
1229
|
+
A("div", re({
|
|
1227
1230
|
class: "q-overlay__content",
|
|
1228
1231
|
ref_key: "overlayRef",
|
|
1229
1232
|
ref: E,
|
|
@@ -1233,13 +1236,13 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1233
1236
|
onKeydown: rt(_e, ["escape"]),
|
|
1234
1237
|
onBlur: _e
|
|
1235
1238
|
}), [
|
|
1236
|
-
e.arrow ? (u(),
|
|
1239
|
+
e.arrow ? (u(), v("div", {
|
|
1237
1240
|
key: 0,
|
|
1238
1241
|
ref_key: "arrowRef",
|
|
1239
1242
|
ref: M,
|
|
1240
1243
|
role: "presentation",
|
|
1241
1244
|
class: "q-overlay__arrow",
|
|
1242
|
-
style:
|
|
1245
|
+
style: ue(x.value)
|
|
1243
1246
|
}, null, 4)) : $("", !0),
|
|
1244
1247
|
y(b.$slots, "default")
|
|
1245
1248
|
], 16, so)
|
|
@@ -1249,7 +1252,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1249
1252
|
}, 8, ["name"])
|
|
1250
1253
|
], 8, ["disabled", "to"]));
|
|
1251
1254
|
}
|
|
1252
|
-
}),
|
|
1255
|
+
}), he = B(io), ro = ["id"], uo = {
|
|
1253
1256
|
key: 0,
|
|
1254
1257
|
class: "q-field__label"
|
|
1255
1258
|
}, co = ["for"], fo = {
|
|
@@ -1274,12 +1277,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1274
1277
|
required: { type: Boolean },
|
|
1275
1278
|
class: { default: void 0 }
|
|
1276
1279
|
},
|
|
1277
|
-
setup(
|
|
1278
|
-
const e =
|
|
1279
|
-
return
|
|
1280
|
+
setup(o, { expose: t }) {
|
|
1281
|
+
const e = o, n = ve(e.id), l = V(null), s = g(() => e.required && !e.readonly && !e.disabled);
|
|
1282
|
+
return t({
|
|
1280
1283
|
fieldRef: l
|
|
1281
|
-
}), (i, a) => (u(),
|
|
1282
|
-
id:
|
|
1284
|
+
}), (i, a) => (u(), v("div", {
|
|
1285
|
+
id: m(n),
|
|
1283
1286
|
class: C([
|
|
1284
1287
|
"q-field",
|
|
1285
1288
|
`q-field--${e.size}`,
|
|
@@ -1291,7 +1294,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1291
1294
|
e.class
|
|
1292
1295
|
])
|
|
1293
1296
|
}, [
|
|
1294
|
-
e.label ? (u(),
|
|
1297
|
+
e.label ? (u(), v("div", uo, [
|
|
1295
1298
|
y(i.$slots, "label.prepend"),
|
|
1296
1299
|
A("label", {
|
|
1297
1300
|
for: e.for
|
|
@@ -1299,29 +1302,29 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1299
1302
|
y(i.$slots, "label.append")
|
|
1300
1303
|
])) : $("", !0),
|
|
1301
1304
|
y(i.$slots, "control", {}, () => [
|
|
1302
|
-
A("div",
|
|
1305
|
+
A("div", re({
|
|
1303
1306
|
class: "q-field__control",
|
|
1304
1307
|
ref_key: "fieldRef",
|
|
1305
1308
|
ref: l
|
|
1306
1309
|
}, i.$attrs), [
|
|
1307
|
-
i.$slots.prepend ? (u(),
|
|
1310
|
+
i.$slots.prepend ? (u(), v("div", fo, [
|
|
1308
1311
|
y(i.$slots, "prepend")
|
|
1309
1312
|
])) : $("", !0),
|
|
1310
1313
|
y(i.$slots, "default"),
|
|
1311
|
-
i.$slots.append ? (u(),
|
|
1314
|
+
i.$slots.append ? (u(), v("div", po, [
|
|
1312
1315
|
y(i.$slots, "append")
|
|
1313
1316
|
])) : $("", !0)
|
|
1314
1317
|
], 16)
|
|
1315
1318
|
]),
|
|
1316
|
-
i.$slots.extras ? (u(),
|
|
1319
|
+
i.$slots.extras ? (u(), v("div", mo, [
|
|
1317
1320
|
y(i.$slots, "extras")
|
|
1318
1321
|
])) : $("", !0)
|
|
1319
1322
|
], 10, ro));
|
|
1320
1323
|
}
|
|
1321
|
-
}),
|
|
1324
|
+
}), xe = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
|
|
1322
1325
|
inheritAttrs: !1,
|
|
1323
1326
|
__name: "QTextField",
|
|
1324
|
-
props: /* @__PURE__ */
|
|
1327
|
+
props: /* @__PURE__ */ X({
|
|
1325
1328
|
id: { default: void 0 },
|
|
1326
1329
|
placeholder: { default: "" },
|
|
1327
1330
|
label: { default: "" },
|
|
@@ -1338,39 +1341,39 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1338
1341
|
modelModifiers: {}
|
|
1339
1342
|
}),
|
|
1340
1343
|
emits: ["update:modelValue"],
|
|
1341
|
-
setup(
|
|
1342
|
-
const e =
|
|
1344
|
+
setup(o, { expose: t }) {
|
|
1345
|
+
const e = o, n = ee(o, "modelValue"), l = ve(e.id), s = V(null), i = V(null), a = g(
|
|
1343
1346
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1344
1347
|
);
|
|
1345
|
-
return
|
|
1346
|
-
fieldRef:
|
|
1348
|
+
return t({
|
|
1349
|
+
fieldRef: g(() => {
|
|
1347
1350
|
var r;
|
|
1348
1351
|
return (r = s.value) == null ? void 0 : r.fieldRef;
|
|
1349
1352
|
}),
|
|
1350
1353
|
inputRef: i
|
|
1351
|
-
}), (r, f) => (u(), I(
|
|
1354
|
+
}), (r, f) => (u(), I(m(xe), {
|
|
1352
1355
|
ref_key: "fieldRef",
|
|
1353
1356
|
ref: s,
|
|
1354
1357
|
class: C(["q-text-field", e.class]),
|
|
1355
|
-
for:
|
|
1358
|
+
for: m(l),
|
|
1356
1359
|
label: e.label,
|
|
1357
1360
|
size: e.size,
|
|
1358
1361
|
readonly: e.readonly,
|
|
1359
1362
|
disabled: e.disabled,
|
|
1360
1363
|
required: e.required
|
|
1361
1364
|
}, qe({
|
|
1362
|
-
"label.prepend":
|
|
1365
|
+
"label.prepend": k(() => [
|
|
1363
1366
|
y(r.$slots, "label.prepend")
|
|
1364
1367
|
]),
|
|
1365
|
-
"label.append":
|
|
1368
|
+
"label.append": k(() => [
|
|
1366
1369
|
y(r.$slots, "label.append")
|
|
1367
1370
|
]),
|
|
1368
|
-
default:
|
|
1369
|
-
dt(A("input",
|
|
1371
|
+
default: k(() => [
|
|
1372
|
+
dt(A("input", re({
|
|
1370
1373
|
"onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
|
|
1371
1374
|
ref_key: "inputRef",
|
|
1372
1375
|
ref: i,
|
|
1373
|
-
id:
|
|
1376
|
+
id: m(l),
|
|
1374
1377
|
class: "q-text-field__input",
|
|
1375
1378
|
type: e.type,
|
|
1376
1379
|
role: e.role,
|
|
@@ -1387,21 +1390,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1387
1390
|
}, [
|
|
1388
1391
|
r.$slots.prepend ? {
|
|
1389
1392
|
name: "prepend",
|
|
1390
|
-
fn:
|
|
1393
|
+
fn: k(() => [
|
|
1391
1394
|
y(r.$slots, "prepend")
|
|
1392
1395
|
]),
|
|
1393
1396
|
key: "0"
|
|
1394
1397
|
} : void 0,
|
|
1395
1398
|
r.$slots.append ? {
|
|
1396
1399
|
name: "append",
|
|
1397
|
-
fn:
|
|
1400
|
+
fn: k(() => [
|
|
1398
1401
|
y(r.$slots, "append")
|
|
1399
1402
|
]),
|
|
1400
1403
|
key: "1"
|
|
1401
1404
|
} : void 0,
|
|
1402
1405
|
r.$slots.extras ? {
|
|
1403
1406
|
name: "extras",
|
|
1404
|
-
fn:
|
|
1407
|
+
fn: k(() => [
|
|
1405
1408
|
y(r.$slots, "extras")
|
|
1406
1409
|
]),
|
|
1407
1410
|
key: "2"
|
|
@@ -1425,7 +1428,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1425
1428
|
}
|
|
1426
1429
|
}, $o = /* @__PURE__ */ L({
|
|
1427
1430
|
__name: "QCombobox",
|
|
1428
|
-
props: /* @__PURE__ */
|
|
1431
|
+
props: /* @__PURE__ */ X({
|
|
1429
1432
|
id: { default: void 0 },
|
|
1430
1433
|
placeholder: { default: "" },
|
|
1431
1434
|
selectionMode: { default: "automatic" },
|
|
@@ -1442,9 +1445,8 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1442
1445
|
itemLabel: { default: "label" },
|
|
1443
1446
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1444
1447
|
size: { default: void 0 },
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
class: { default: void 0 }
|
|
1448
|
+
class: { default: void 0 },
|
|
1449
|
+
internals: { default: () => ({ icons: wo, texts: ko }) }
|
|
1448
1450
|
}, {
|
|
1449
1451
|
modelValue: {
|
|
1450
1452
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1455,33 +1457,33 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1455
1457
|
search: { default: "" },
|
|
1456
1458
|
searchModifiers: {}
|
|
1457
1459
|
}),
|
|
1458
|
-
emits: /* @__PURE__ */
|
|
1459
|
-
setup(
|
|
1460
|
-
const n =
|
|
1460
|
+
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1461
|
+
setup(o, { expose: t, emit: e }) {
|
|
1462
|
+
const n = o, l = e, s = ee(o, "modelValue"), i = ee(o, "open"), a = ee(o, "search"), r = V(void 0), f = V(null), q = V(null), x = V(null), M = V(null);
|
|
1461
1463
|
je(H);
|
|
1462
|
-
const E =
|
|
1464
|
+
const E = g(() => n.clearable && !n.readonly && !n.disabled), S = g(() => {
|
|
1463
1465
|
var d;
|
|
1464
1466
|
return n.filterMode === "manual" || !O.value ? n.items : (d = n.items) == null ? void 0 : d.filter(
|
|
1465
1467
|
(w) => w[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1466
1468
|
);
|
|
1467
|
-
}), T =
|
|
1469
|
+
}), T = g(() => {
|
|
1468
1470
|
var d;
|
|
1469
1471
|
return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
|
|
1470
|
-
}),
|
|
1472
|
+
}), Y = g(() => T.value === void 0), oe = g(() => {
|
|
1471
1473
|
const d = r.value;
|
|
1472
1474
|
if (d !== void 0 && S.value[d])
|
|
1473
1475
|
return S.value[d];
|
|
1474
|
-
}),
|
|
1476
|
+
}), R = g(() => {
|
|
1475
1477
|
var w;
|
|
1476
1478
|
if (r.value === void 0)
|
|
1477
1479
|
return;
|
|
1478
1480
|
const d = (w = q.value) == null ? void 0 : w.getItem(r.value);
|
|
1479
1481
|
return d == null ? void 0 : d.id;
|
|
1480
|
-
}), O =
|
|
1482
|
+
}), O = g(() => {
|
|
1481
1483
|
var d;
|
|
1482
1484
|
return a.value.length > 0 && a.value !== ((d = T.value) == null ? void 0 : d[n.itemLabel]);
|
|
1483
1485
|
});
|
|
1484
|
-
function
|
|
1486
|
+
function ne(d) {
|
|
1485
1487
|
s.value = d, Q();
|
|
1486
1488
|
}
|
|
1487
1489
|
function H() {
|
|
@@ -1489,22 +1491,22 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1489
1491
|
const d = ((w = T.value) == null ? void 0 : w[n.itemLabel]) || "";
|
|
1490
1492
|
a.value !== d && (a.value = d);
|
|
1491
1493
|
}
|
|
1492
|
-
function
|
|
1493
|
-
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0,
|
|
1494
|
+
function le() {
|
|
1495
|
+
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, ie());
|
|
1494
1496
|
}
|
|
1495
1497
|
function Q() {
|
|
1496
1498
|
i.value && (l("before-hide"), i.value = !1, r.value = void 0);
|
|
1497
1499
|
}
|
|
1498
|
-
function
|
|
1499
|
-
i.value ? Q() :
|
|
1500
|
+
function W() {
|
|
1501
|
+
i.value ? Q() : _();
|
|
1500
1502
|
}
|
|
1501
1503
|
function p() {
|
|
1502
|
-
E.value && (s.value = n.emptyValue, r.value = void 0,
|
|
1504
|
+
E.value && (s.value = n.emptyValue, r.value = void 0, ie());
|
|
1503
1505
|
}
|
|
1504
|
-
function
|
|
1505
|
-
if (
|
|
1506
|
+
function _() {
|
|
1507
|
+
if (le(), T.value !== void 0) {
|
|
1506
1508
|
const d = S.value.indexOf(T.value);
|
|
1507
|
-
d !== -1 &&
|
|
1509
|
+
d !== -1 && J(() => j(d));
|
|
1508
1510
|
}
|
|
1509
1511
|
}
|
|
1510
1512
|
function c(d) {
|
|
@@ -1513,26 +1515,26 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1513
1515
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), d.key === "Escape")
|
|
1514
1516
|
H(), i.value && Q();
|
|
1515
1517
|
else if (["ArrowDown", "ArrowUp"].includes(d.key))
|
|
1516
|
-
i.value ?
|
|
1518
|
+
i.value ? J(() => {
|
|
1517
1519
|
if (r.value === void 0)
|
|
1518
1520
|
h();
|
|
1519
1521
|
else {
|
|
1520
1522
|
const P = d.key === "ArrowDown" ? "next" : "prev";
|
|
1521
|
-
|
|
1523
|
+
ae(r.value, P);
|
|
1522
1524
|
}
|
|
1523
|
-
}) : (
|
|
1525
|
+
}) : (le(), J(() => {
|
|
1524
1526
|
d.key === "ArrowDown" ? h() : U();
|
|
1525
1527
|
}));
|
|
1526
1528
|
else if (d.key === "Enter") {
|
|
1527
|
-
if (
|
|
1529
|
+
if (oe.value === void 0)
|
|
1528
1530
|
return;
|
|
1529
|
-
oe
|
|
1531
|
+
ne(oe.value[n.itemValue]);
|
|
1530
1532
|
} else
|
|
1531
|
-
d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") &&
|
|
1533
|
+
d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && le();
|
|
1532
1534
|
}
|
|
1533
1535
|
function h() {
|
|
1534
1536
|
var d, w;
|
|
1535
|
-
if (
|
|
1537
|
+
if (Y.value)
|
|
1536
1538
|
r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1537
1539
|
else {
|
|
1538
1540
|
const D = S.value.findIndex(
|
|
@@ -1545,7 +1547,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1545
1547
|
var d;
|
|
1546
1548
|
r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
|
|
1547
1549
|
}
|
|
1548
|
-
function
|
|
1550
|
+
function ae(d, w) {
|
|
1549
1551
|
var D;
|
|
1550
1552
|
r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
|
|
1551
1553
|
}
|
|
@@ -1558,12 +1560,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1558
1560
|
}
|
|
1559
1561
|
Q(), E.value && !a.value && (s.value = n.emptyValue), H();
|
|
1560
1562
|
}
|
|
1561
|
-
function
|
|
1563
|
+
function ie() {
|
|
1562
1564
|
var d, w;
|
|
1563
1565
|
(w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
|
|
1564
1566
|
}
|
|
1565
1567
|
function _e() {
|
|
1566
|
-
|
|
1568
|
+
ie();
|
|
1567
1569
|
}
|
|
1568
1570
|
function b() {
|
|
1569
1571
|
l("show");
|
|
@@ -1576,30 +1578,30 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1576
1578
|
const w = (D = q.value) == null ? void 0 : D.getItem(d);
|
|
1577
1579
|
q.value && (q.value.$el.scrollTop = w == null ? void 0 : w.offsetTop);
|
|
1578
1580
|
}
|
|
1579
|
-
return
|
|
1581
|
+
return Z(s, H), Z(
|
|
1580
1582
|
() => n.items,
|
|
1581
1583
|
(d, w) => {
|
|
1582
|
-
if (!
|
|
1584
|
+
if (!Y.value) {
|
|
1583
1585
|
const D = w.find((P) => P[n.itemValue] === s.value);
|
|
1584
1586
|
a.value === (D == null ? void 0 : D[n.itemLabel]) && H();
|
|
1585
1587
|
}
|
|
1586
1588
|
},
|
|
1587
1589
|
{ deep: !0 }
|
|
1588
|
-
),
|
|
1590
|
+
), Z(r, (d) => {
|
|
1589
1591
|
d !== void 0 && j(d);
|
|
1590
|
-
}),
|
|
1591
|
-
d && i.value && n.selectionMode === "automatic" &&
|
|
1592
|
-
}),
|
|
1592
|
+
}), Z(a, (d) => {
|
|
1593
|
+
d && i.value && n.selectionMode === "automatic" && J(h);
|
|
1594
|
+
}), Z(
|
|
1593
1595
|
() => n.loading,
|
|
1594
1596
|
(d) => {
|
|
1595
|
-
!d && i.value &&
|
|
1597
|
+
!d && i.value && J(h);
|
|
1596
1598
|
}
|
|
1597
|
-
),
|
|
1599
|
+
), t({
|
|
1598
1600
|
triggerEl: f
|
|
1599
1601
|
}), (d, w) => {
|
|
1600
1602
|
var D;
|
|
1601
|
-
return u(),
|
|
1602
|
-
z(
|
|
1603
|
+
return u(), v(te, null, [
|
|
1604
|
+
z(m(lt), {
|
|
1603
1605
|
modelValue: a.value,
|
|
1604
1606
|
"onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
|
|
1605
1607
|
id: n.id,
|
|
@@ -1625,21 +1627,21 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1625
1627
|
"aria-expanded": i.value,
|
|
1626
1628
|
"aria-haspopup": "listbox",
|
|
1627
1629
|
"aria-autocomplete": "list",
|
|
1628
|
-
"aria-activedescendant":
|
|
1630
|
+
"aria-activedescendant": R.value,
|
|
1629
1631
|
size: n.size,
|
|
1630
|
-
onClick:
|
|
1632
|
+
onClick: _,
|
|
1631
1633
|
onFocusout: K,
|
|
1632
1634
|
onKeydown: pe(c, ["stop"])
|
|
1633
1635
|
}, qe({
|
|
1634
|
-
"label.prepend":
|
|
1636
|
+
"label.prepend": k(() => [
|
|
1635
1637
|
y(d.$slots, "label.prepend")
|
|
1636
1638
|
]),
|
|
1637
|
-
"label.append":
|
|
1639
|
+
"label.append": k(() => [
|
|
1638
1640
|
y(d.$slots, "label.append")
|
|
1639
1641
|
]),
|
|
1640
|
-
append:
|
|
1642
|
+
append: k(() => [
|
|
1641
1643
|
y(d.$slots, "append"),
|
|
1642
|
-
E.value && a.value ? (u(), I(
|
|
1644
|
+
E.value && a.value ? (u(), I(m(de), {
|
|
1643
1645
|
key: 0,
|
|
1644
1646
|
class: "q-combobox__clear",
|
|
1645
1647
|
"b-style": "plain",
|
|
@@ -1647,12 +1649,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1647
1649
|
tabindex: "-1",
|
|
1648
1650
|
onClick: p
|
|
1649
1651
|
}, {
|
|
1650
|
-
default:
|
|
1651
|
-
z(
|
|
1652
|
+
default: k(() => [
|
|
1653
|
+
z(m(F), G(se(n.internals.icons.clear)), null, 16)
|
|
1652
1654
|
]),
|
|
1653
1655
|
_: 1
|
|
1654
1656
|
})) : $("", !0),
|
|
1655
|
-
n.readonly ? $("", !0) : (u(), I(
|
|
1657
|
+
n.readonly ? $("", !0) : (u(), I(m(de), {
|
|
1656
1658
|
key: 1,
|
|
1657
1659
|
ref_key: "toggleRef",
|
|
1658
1660
|
ref: x,
|
|
@@ -1661,10 +1663,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1661
1663
|
borderless: "",
|
|
1662
1664
|
tabindex: "-1",
|
|
1663
1665
|
disabled: n.disabled,
|
|
1664
|
-
onMousedown: pe(
|
|
1666
|
+
onMousedown: pe(W, ["stop", "prevent"])
|
|
1665
1667
|
}, {
|
|
1666
|
-
default:
|
|
1667
|
-
z(
|
|
1668
|
+
default: k(() => [
|
|
1669
|
+
z(m(F), G(se(n.internals.icons.chevron)), null, 16)
|
|
1668
1670
|
]),
|
|
1669
1671
|
_: 1
|
|
1670
1672
|
}, 8, ["disabled"]))
|
|
@@ -1673,20 +1675,20 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1673
1675
|
}, [
|
|
1674
1676
|
d.$slots.prepend ? {
|
|
1675
1677
|
name: "prepend",
|
|
1676
|
-
fn:
|
|
1678
|
+
fn: k(() => [
|
|
1677
1679
|
y(d.$slots, "prepend")
|
|
1678
1680
|
]),
|
|
1679
1681
|
key: "0"
|
|
1680
1682
|
} : void 0,
|
|
1681
1683
|
d.$slots.extras ? {
|
|
1682
1684
|
name: "extras",
|
|
1683
|
-
fn:
|
|
1685
|
+
fn: k(() => [
|
|
1684
1686
|
y(d.$slots, "extras")
|
|
1685
1687
|
]),
|
|
1686
1688
|
key: "1"
|
|
1687
1689
|
} : void 0
|
|
1688
1690
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1689
|
-
z(
|
|
1691
|
+
z(m(he), {
|
|
1690
1692
|
modelValue: i.value,
|
|
1691
1693
|
"onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
|
|
1692
1694
|
spy: "",
|
|
@@ -1699,7 +1701,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1699
1701
|
onEnter: b,
|
|
1700
1702
|
onLeave: ce
|
|
1701
1703
|
}, {
|
|
1702
|
-
default:
|
|
1704
|
+
default: k(() => {
|
|
1703
1705
|
var P;
|
|
1704
1706
|
return [
|
|
1705
1707
|
A("div", {
|
|
@@ -1711,30 +1713,31 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1711
1713
|
onFocusout: K
|
|
1712
1714
|
}, [
|
|
1713
1715
|
y(d.$slots, "body.prepend"),
|
|
1714
|
-
n.loading ? (u(),
|
|
1715
|
-
z(
|
|
1716
|
-
])) : S.value.length ? (u(), I(
|
|
1716
|
+
n.loading ? (u(), v("div", go, [
|
|
1717
|
+
z(m(Ie), { size: 24 })
|
|
1718
|
+
])) : S.value.length ? (u(), I(m(Te), {
|
|
1717
1719
|
key: 1,
|
|
1718
1720
|
ref_key: "listRef",
|
|
1719
1721
|
ref: q,
|
|
1720
1722
|
class: "q-select__items",
|
|
1723
|
+
selectable: "",
|
|
1721
1724
|
modelValue: s.value,
|
|
1722
1725
|
"onUpdate:modelValue": [
|
|
1723
1726
|
w[1] || (w[1] = (fe) => s.value = fe),
|
|
1724
|
-
|
|
1727
|
+
ne
|
|
1725
1728
|
],
|
|
1726
|
-
highlighted: (P =
|
|
1729
|
+
highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
|
|
1727
1730
|
items: S.value,
|
|
1728
1731
|
groups: d.groups,
|
|
1729
1732
|
"item-label": n.itemLabel,
|
|
1730
1733
|
"item-value": n.itemValue,
|
|
1731
1734
|
onMouseup: _e
|
|
1732
1735
|
}, {
|
|
1733
|
-
item:
|
|
1736
|
+
item: k(({ item: fe }) => [
|
|
1734
1737
|
y(d.$slots, "item", { item: fe })
|
|
1735
1738
|
]),
|
|
1736
1739
|
_: 3
|
|
1737
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(),
|
|
1740
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.internals.texts.noData), 1)),
|
|
1738
1741
|
y(d.$slots, "body.append")
|
|
1739
1742
|
], 40, bo)
|
|
1740
1743
|
];
|
|
@@ -1744,106 +1747,113 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1744
1747
|
], 64);
|
|
1745
1748
|
};
|
|
1746
1749
|
}
|
|
1747
|
-
}), qo = B($o),
|
|
1750
|
+
}), qo = B($o), Io = { class: "q-dialog__header" }, xo = { class: "q-dialog__header-title" }, Lo = { class: "q-dialog__body" }, So = {
|
|
1748
1751
|
key: 0,
|
|
1749
1752
|
class: "q-dialog__body-icon"
|
|
1750
|
-
},
|
|
1753
|
+
}, Bo = { class: "q-dialog__body-text" }, Co = ["innerHTML"], To = { key: 1 }, Vo = { class: "q-dialog__body-actions" }, Eo = [
|
|
1751
1754
|
{
|
|
1752
1755
|
id: "button",
|
|
1753
|
-
bStyle: "primary",
|
|
1754
|
-
label: "Ok",
|
|
1755
1756
|
icon: {
|
|
1756
1757
|
icon: "check"
|
|
1757
1758
|
},
|
|
1758
|
-
|
|
1759
|
-
|
|
1759
|
+
props: {
|
|
1760
|
+
bStyle: "primary",
|
|
1761
|
+
label: "Ok"
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
], Do = {
|
|
1765
|
+
icon: "check-circle-outline"
|
|
1766
|
+
}, Ao = {
|
|
1767
|
+
close: {
|
|
1768
|
+
icon: "close"
|
|
1760
1769
|
}
|
|
1761
|
-
], Ao = {
|
|
1762
|
-
icon: "check-circle-outline",
|
|
1763
|
-
type: "svg"
|
|
1764
1770
|
}, zo = /* @__PURE__ */ L({
|
|
1765
1771
|
__name: "QDialog",
|
|
1766
|
-
props: /* @__PURE__ */
|
|
1772
|
+
props: /* @__PURE__ */ X({
|
|
1767
1773
|
text: { default: "" },
|
|
1768
1774
|
attach: { default: "body" },
|
|
1769
1775
|
inline: { type: Boolean },
|
|
1770
1776
|
backdropBlur: { type: Boolean, default: !0 },
|
|
1771
|
-
buttons: { default: () =>
|
|
1772
|
-
dismissible: { type: Boolean
|
|
1777
|
+
buttons: { default: () => Eo },
|
|
1778
|
+
dismissible: { type: Boolean },
|
|
1773
1779
|
html: { type: Boolean, default: !0 },
|
|
1774
|
-
icon: { default: () =>
|
|
1780
|
+
icon: { default: () => Do },
|
|
1775
1781
|
id: { default: void 0 },
|
|
1776
1782
|
title: { default: "" },
|
|
1777
|
-
class: { default: void 0 }
|
|
1783
|
+
class: { default: void 0 },
|
|
1784
|
+
internals: { default: () => ({ icons: Ao }) }
|
|
1778
1785
|
}, {
|
|
1779
1786
|
modelValue: { type: Boolean },
|
|
1780
1787
|
modelModifiers: {}
|
|
1781
1788
|
}),
|
|
1782
1789
|
emits: ["update:modelValue"],
|
|
1783
|
-
setup(
|
|
1784
|
-
const
|
|
1785
|
-
function
|
|
1790
|
+
setup(o) {
|
|
1791
|
+
const t = o, e = ee(o, "modelValue"), n = ve(t.id), l = g(() => ["q-dialog", t.class]);
|
|
1792
|
+
function s() {
|
|
1786
1793
|
e.value = !1;
|
|
1787
1794
|
}
|
|
1788
|
-
function
|
|
1789
|
-
var
|
|
1790
|
-
(
|
|
1795
|
+
function i(a) {
|
|
1796
|
+
var r;
|
|
1797
|
+
(r = a.action) == null || r.call(a), s();
|
|
1791
1798
|
}
|
|
1792
|
-
return (
|
|
1799
|
+
return (a, r) => (u(), I(m(he), {
|
|
1793
1800
|
"model-value": e.value,
|
|
1794
|
-
id:
|
|
1795
|
-
inline:
|
|
1796
|
-
attach:
|
|
1797
|
-
"backdrop-blur":
|
|
1801
|
+
id: m(n),
|
|
1802
|
+
inline: t.inline,
|
|
1803
|
+
attach: t.attach,
|
|
1804
|
+
"backdrop-blur": t.backdropBlur,
|
|
1805
|
+
"backdrop-class": "q-dialog__underlay",
|
|
1798
1806
|
"scroll-lock": "",
|
|
1799
1807
|
persistent: ""
|
|
1800
1808
|
}, {
|
|
1801
|
-
default:
|
|
1802
|
-
A("div",
|
|
1809
|
+
default: k(() => [
|
|
1810
|
+
A("div", {
|
|
1811
|
+
class: C(l.value)
|
|
1812
|
+
}, [
|
|
1803
1813
|
A("div", Io, [
|
|
1804
|
-
A("span",
|
|
1805
|
-
|
|
1814
|
+
A("span", xo, N(t.title), 1),
|
|
1815
|
+
t.dismissible ? (u(), I(m(de), {
|
|
1806
1816
|
key: 0,
|
|
1807
1817
|
"b-style": "tertiary",
|
|
1808
|
-
onClick:
|
|
1818
|
+
onClick: s
|
|
1809
1819
|
}, {
|
|
1810
|
-
default:
|
|
1811
|
-
z(
|
|
1820
|
+
default: k(() => [
|
|
1821
|
+
z(m(F), G(se(t.internals.icons.close)), null, 16)
|
|
1812
1822
|
]),
|
|
1813
1823
|
_: 1
|
|
1814
1824
|
})) : $("", !0)
|
|
1815
1825
|
]),
|
|
1816
|
-
y(
|
|
1817
|
-
A("div",
|
|
1818
|
-
y(
|
|
1819
|
-
|
|
1820
|
-
z(
|
|
1826
|
+
y(a.$slots, "body.content", {}, () => [
|
|
1827
|
+
A("div", Lo, [
|
|
1828
|
+
y(a.$slots, "body.icon", {}, () => [
|
|
1829
|
+
t.icon ? (u(), v("span", So, [
|
|
1830
|
+
z(m(F), G(se(t.icon)), null, 16)
|
|
1821
1831
|
])) : $("", !0)
|
|
1822
1832
|
]),
|
|
1823
|
-
A("div",
|
|
1824
|
-
|
|
1833
|
+
A("div", Bo, [
|
|
1834
|
+
t.html ? (u(), v("span", {
|
|
1825
1835
|
key: 0,
|
|
1826
|
-
innerHTML:
|
|
1827
|
-
}, null, 8,
|
|
1836
|
+
innerHTML: t.text
|
|
1837
|
+
}, null, 8, Co)) : (u(), v("span", To, N(t.text), 1))
|
|
1828
1838
|
]),
|
|
1829
|
-
y(
|
|
1839
|
+
y(a.$slots, "body.append")
|
|
1830
1840
|
])
|
|
1831
1841
|
]),
|
|
1832
|
-
A("div",
|
|
1833
|
-
(u(!0),
|
|
1834
|
-
key:
|
|
1835
|
-
onClick: () =>
|
|
1842
|
+
A("div", Vo, [
|
|
1843
|
+
(u(!0), v(te, null, we(t.buttons, (f) => (u(), I(m(de), re({ ref_for: !0 }, f.props, {
|
|
1844
|
+
key: f.id,
|
|
1845
|
+
onClick: () => i(f)
|
|
1836
1846
|
}), {
|
|
1837
|
-
default:
|
|
1838
|
-
|
|
1847
|
+
default: k(() => [
|
|
1848
|
+
f.icon ? (u(), I(m(F), re({
|
|
1839
1849
|
key: 0,
|
|
1840
1850
|
ref_for: !0
|
|
1841
|
-
},
|
|
1851
|
+
}, f.icon), null, 16)) : $("", !0)
|
|
1842
1852
|
]),
|
|
1843
1853
|
_: 2
|
|
1844
1854
|
}, 1040, ["onClick"]))), 128))
|
|
1845
1855
|
])
|
|
1846
|
-
])
|
|
1856
|
+
], 2)
|
|
1847
1857
|
]),
|
|
1848
1858
|
_: 3
|
|
1849
1859
|
}, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
|
|
@@ -1865,30 +1875,30 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1865
1875
|
size: { default: "large" },
|
|
1866
1876
|
class: { default: void 0 }
|
|
1867
1877
|
},
|
|
1868
|
-
setup(
|
|
1869
|
-
const
|
|
1878
|
+
setup(o) {
|
|
1879
|
+
const t = o;
|
|
1870
1880
|
return Re({
|
|
1871
1881
|
QField: {
|
|
1872
1882
|
size: "block"
|
|
1873
1883
|
}
|
|
1874
|
-
}), (e, n) => (u(), I(
|
|
1875
|
-
id:
|
|
1876
|
-
class: C(["q-input-group",
|
|
1877
|
-
label:
|
|
1878
|
-
required:
|
|
1879
|
-
size:
|
|
1884
|
+
}), (e, n) => (u(), I(m(xe), {
|
|
1885
|
+
id: t.id,
|
|
1886
|
+
class: C(["q-input-group", t.class]),
|
|
1887
|
+
label: t.label,
|
|
1888
|
+
required: t.required,
|
|
1889
|
+
size: t.size
|
|
1880
1890
|
}, qe({
|
|
1881
|
-
default:
|
|
1882
|
-
e.$slots.prepend ||
|
|
1883
|
-
|
|
1884
|
-
z(
|
|
1891
|
+
default: k(() => [
|
|
1892
|
+
e.$slots.prepend || t.prependIcon ? (u(), v("div", Mo, [
|
|
1893
|
+
t.prependIcon ? (u(), v("span", Fo, [
|
|
1894
|
+
z(m(F), G(se(t.prependIcon)), null, 16)
|
|
1885
1895
|
])) : $("", !0),
|
|
1886
1896
|
y(e.$slots, "prepend")
|
|
1887
1897
|
])) : $("", !0),
|
|
1888
1898
|
y(e.$slots, "default"),
|
|
1889
|
-
e.$slots.append ||
|
|
1890
|
-
|
|
1891
|
-
z(
|
|
1899
|
+
e.$slots.append || t.appendIcon ? (u(), v("div", Oo, [
|
|
1900
|
+
t.appendIcon ? (u(), v("span", Uo, [
|
|
1901
|
+
z(m(F), G(se(t.appendIcon)), null, 16)
|
|
1892
1902
|
])) : $("", !0),
|
|
1893
1903
|
y(e.$slots, "append")
|
|
1894
1904
|
])) : $("", !0)
|
|
@@ -1897,7 +1907,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1897
1907
|
}, [
|
|
1898
1908
|
e.$slots.extras ? {
|
|
1899
1909
|
name: "extras",
|
|
1900
|
-
fn:
|
|
1910
|
+
fn: k(() => [
|
|
1901
1911
|
y(e.$slots, "extras")
|
|
1902
1912
|
]),
|
|
1903
1913
|
key: "0"
|
|
@@ -1909,10 +1919,10 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1909
1919
|
props: {
|
|
1910
1920
|
class: { default: void 0 }
|
|
1911
1921
|
},
|
|
1912
|
-
setup(
|
|
1913
|
-
const
|
|
1914
|
-
return (e, n) => (u(),
|
|
1915
|
-
class: C(["q-line-loader",
|
|
1922
|
+
setup(o) {
|
|
1923
|
+
const t = o;
|
|
1924
|
+
return (e, n) => (u(), v("div", {
|
|
1925
|
+
class: C(["q-line-loader", t.class])
|
|
1916
1926
|
}, null, 2));
|
|
1917
1927
|
}
|
|
1918
1928
|
}), Ko = B(Ho), jo = {
|
|
@@ -1924,7 +1934,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1924
1934
|
}, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
|
|
1925
1935
|
inheritAttrs: !1,
|
|
1926
1936
|
__name: "QPopover",
|
|
1927
|
-
props: /* @__PURE__ */
|
|
1937
|
+
props: /* @__PURE__ */ X({
|
|
1928
1938
|
anchor: {},
|
|
1929
1939
|
arrow: { type: Boolean, default: !0 },
|
|
1930
1940
|
attach: { default: "body" },
|
|
@@ -1939,29 +1949,29 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1939
1949
|
modelModifiers: {}
|
|
1940
1950
|
}),
|
|
1941
1951
|
emits: ["update:modelValue"],
|
|
1942
|
-
setup(
|
|
1943
|
-
const
|
|
1944
|
-
return (n, l) => (u(), I(
|
|
1952
|
+
setup(o) {
|
|
1953
|
+
const t = o, e = ee(o, "modelValue");
|
|
1954
|
+
return (n, l) => (u(), I(m(he), {
|
|
1945
1955
|
"model-value": e.value,
|
|
1946
1956
|
class: "q-popover",
|
|
1947
1957
|
trigger: "click",
|
|
1948
|
-
anchor:
|
|
1949
|
-
arrow:
|
|
1950
|
-
attach:
|
|
1951
|
-
inline:
|
|
1952
|
-
disabled:
|
|
1953
|
-
placement:
|
|
1958
|
+
anchor: t.anchor,
|
|
1959
|
+
arrow: t.arrow,
|
|
1960
|
+
attach: t.attach,
|
|
1961
|
+
inline: t.inline,
|
|
1962
|
+
disabled: t.disabled,
|
|
1963
|
+
placement: t.placement
|
|
1954
1964
|
}, {
|
|
1955
|
-
default:
|
|
1956
|
-
|
|
1957
|
-
|
|
1965
|
+
default: k(() => [
|
|
1966
|
+
t.title || n.$slots.header ? (u(), v("h3", jo, [
|
|
1967
|
+
me(N(t.title) + " ", 1),
|
|
1958
1968
|
y(n.$slots, "header")
|
|
1959
1969
|
])) : $("", !0),
|
|
1960
|
-
|
|
1961
|
-
|
|
1970
|
+
t.text || n.$slots.body ? (u(), v("div", Go, [
|
|
1971
|
+
t.html ? (u(), v("span", {
|
|
1962
1972
|
key: 0,
|
|
1963
|
-
innerHTML:
|
|
1964
|
-
}, null, 8, Ro)) : (u(),
|
|
1973
|
+
innerHTML: t.text
|
|
1974
|
+
}, null, 8, Ro)) : (u(), v("span", Wo, N(t.text), 1)),
|
|
1965
1975
|
y(n.$slots, "body")
|
|
1966
1976
|
])) : $("", !0)
|
|
1967
1977
|
]),
|
|
@@ -1988,7 +1998,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1988
1998
|
}
|
|
1989
1999
|
}, ln = /* @__PURE__ */ L({
|
|
1990
2000
|
__name: "QSelect",
|
|
1991
|
-
props: /* @__PURE__ */
|
|
2001
|
+
props: /* @__PURE__ */ X({
|
|
1992
2002
|
id: { default: void 0 },
|
|
1993
2003
|
label: { default: "" },
|
|
1994
2004
|
clearable: { type: Boolean },
|
|
@@ -1996,76 +2006,75 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
1996
2006
|
disabled: { type: Boolean },
|
|
1997
2007
|
required: { type: Boolean },
|
|
1998
2008
|
loading: { type: Boolean },
|
|
1999
|
-
icons: { default: () => nn },
|
|
2000
2009
|
items: {},
|
|
2001
2010
|
groups: { default: () => [] },
|
|
2002
2011
|
itemValue: { default: "key" },
|
|
2003
2012
|
itemLabel: { default: "label" },
|
|
2004
2013
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
2005
2014
|
size: { default: void 0 },
|
|
2006
|
-
|
|
2007
|
-
|
|
2015
|
+
class: { default: "" },
|
|
2016
|
+
internals: { default: () => ({ icons: nn, texts: on }) }
|
|
2008
2017
|
}, {
|
|
2009
2018
|
modelValue: {
|
|
2010
2019
|
type: [String, Number, Boolean, Symbol]
|
|
2011
2020
|
},
|
|
2012
2021
|
modelModifiers: {}
|
|
2013
2022
|
}),
|
|
2014
|
-
emits: /* @__PURE__ */
|
|
2015
|
-
setup(
|
|
2016
|
-
const e =
|
|
2023
|
+
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2024
|
+
setup(o, { emit: t }) {
|
|
2025
|
+
const e = o, n = t, l = ee(o, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = g(() => x.value === void 0), x = g(
|
|
2017
2026
|
() => {
|
|
2018
2027
|
var c;
|
|
2019
2028
|
return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
|
|
2020
2029
|
}
|
|
2021
|
-
), M =
|
|
2030
|
+
), M = g(
|
|
2022
2031
|
() => x.value ? x.value[e.itemLabel] : ""
|
|
2023
|
-
), E =
|
|
2032
|
+
), E = g(
|
|
2024
2033
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2025
2034
|
);
|
|
2026
2035
|
function S(c) {
|
|
2027
|
-
l.value = c,
|
|
2036
|
+
l.value = c, R();
|
|
2028
2037
|
}
|
|
2029
2038
|
function T() {
|
|
2030
|
-
E.value && S(e.emptyValue);
|
|
2039
|
+
E.value && (S(e.emptyValue), W());
|
|
2031
2040
|
}
|
|
2032
|
-
function
|
|
2033
|
-
var h, U,
|
|
2034
|
-
!((h = f.value) != null && h.contains(c.relatedTarget)) && !((
|
|
2041
|
+
function Y(c) {
|
|
2042
|
+
var h, U, ae;
|
|
2043
|
+
!((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && R();
|
|
2035
2044
|
}
|
|
2036
|
-
function
|
|
2045
|
+
function oe() {
|
|
2037
2046
|
s.value || (n("before-show"), s.value = !0);
|
|
2038
2047
|
}
|
|
2039
|
-
function
|
|
2048
|
+
function R() {
|
|
2040
2049
|
s.value && (n("before-hide"), s.value = !1);
|
|
2041
2050
|
}
|
|
2042
2051
|
function O() {
|
|
2043
|
-
e.readonly || e.disabled || (s.value ?
|
|
2052
|
+
e.readonly || e.disabled || (s.value ? R() : oe());
|
|
2044
2053
|
}
|
|
2045
|
-
let
|
|
2054
|
+
let ne;
|
|
2046
2055
|
function H(c) {
|
|
2047
2056
|
if (!(!c.key || e.readonly || e.disabled)) {
|
|
2048
|
-
if (window.clearTimeout(
|
|
2057
|
+
if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
|
|
2049
2058
|
i.value += c.key.toLowerCase();
|
|
2050
2059
|
for (let h = 0; h < e.items.length; h++)
|
|
2051
2060
|
if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
|
|
2052
|
-
|
|
2061
|
+
_(h);
|
|
2053
2062
|
break;
|
|
2054
2063
|
}
|
|
2055
2064
|
}
|
|
2056
|
-
|
|
2065
|
+
ne = window.setTimeout(function() {
|
|
2057
2066
|
i.value = "";
|
|
2058
2067
|
}, 500);
|
|
2059
2068
|
}
|
|
2060
2069
|
}
|
|
2061
|
-
function
|
|
2070
|
+
function le() {
|
|
2062
2071
|
var c;
|
|
2063
2072
|
e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
|
|
2064
2073
|
}
|
|
2065
2074
|
function Q() {
|
|
2066
|
-
|
|
2075
|
+
W(), n("hide");
|
|
2067
2076
|
}
|
|
2068
|
-
function
|
|
2077
|
+
function W() {
|
|
2069
2078
|
var c, h;
|
|
2070
2079
|
(h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
|
|
2071
2080
|
}
|
|
@@ -2073,19 +2082,19 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2073
2082
|
var c;
|
|
2074
2083
|
(c = r.value) == null || c.$el.focus();
|
|
2075
2084
|
}
|
|
2076
|
-
function
|
|
2085
|
+
function _(c) {
|
|
2077
2086
|
var h;
|
|
2078
2087
|
(h = r.value) == null || h.focusItem(c);
|
|
2079
2088
|
}
|
|
2080
|
-
return
|
|
2089
|
+
return Z(
|
|
2081
2090
|
() => e.loading,
|
|
2082
2091
|
(c) => {
|
|
2083
|
-
!c && s.value &&
|
|
2092
|
+
!c && s.value && J(p);
|
|
2084
2093
|
}
|
|
2085
2094
|
), (c, h) => {
|
|
2086
|
-
var U,
|
|
2087
|
-
return u(),
|
|
2088
|
-
z(
|
|
2095
|
+
var U, ae;
|
|
2096
|
+
return u(), v(te, null, [
|
|
2097
|
+
z(m(xe), {
|
|
2089
2098
|
id: e.id,
|
|
2090
2099
|
label: e.label,
|
|
2091
2100
|
required: e.required,
|
|
@@ -2111,9 +2120,9 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2111
2120
|
onClick: O,
|
|
2112
2121
|
onKeydown: pe(H, ["stop"])
|
|
2113
2122
|
}, qe({
|
|
2114
|
-
append:
|
|
2123
|
+
append: k(() => [
|
|
2115
2124
|
y(c.$slots, "append"),
|
|
2116
|
-
E.value && l.value ? (u(), I(
|
|
2125
|
+
E.value && l.value ? (u(), I(m(de), {
|
|
2117
2126
|
key: 0,
|
|
2118
2127
|
class: "q-select__clear",
|
|
2119
2128
|
"b-style": "plain",
|
|
@@ -2121,12 +2130,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2121
2130
|
tabindex: "-1",
|
|
2122
2131
|
onClick: T
|
|
2123
2132
|
}, {
|
|
2124
|
-
default:
|
|
2125
|
-
z(
|
|
2133
|
+
default: k(() => [
|
|
2134
|
+
z(m(F), G(se(e.internals.icons.clear)), null, 16)
|
|
2126
2135
|
]),
|
|
2127
2136
|
_: 1
|
|
2128
2137
|
})) : $("", !0),
|
|
2129
|
-
e.readonly ? $("", !0) : (u(), I(
|
|
2138
|
+
e.readonly ? $("", !0) : (u(), I(m(de), {
|
|
2130
2139
|
key: 1,
|
|
2131
2140
|
class: "q-select__chevron",
|
|
2132
2141
|
"b-style": "plain",
|
|
@@ -2135,41 +2144,41 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2135
2144
|
disabled: e.disabled,
|
|
2136
2145
|
onClick: O
|
|
2137
2146
|
}, {
|
|
2138
|
-
default:
|
|
2139
|
-
z(
|
|
2147
|
+
default: k(() => [
|
|
2148
|
+
z(m(F), G(se(e.internals.icons.chevron)), null, 16)
|
|
2140
2149
|
]),
|
|
2141
2150
|
_: 1
|
|
2142
2151
|
}, 8, ["disabled"]))
|
|
2143
2152
|
]),
|
|
2144
|
-
default:
|
|
2145
|
-
q.value ? (u(),
|
|
2146
|
-
!e.readonly && !e.disabled ? (u(),
|
|
2147
|
-
|
|
2153
|
+
default: k(() => [
|
|
2154
|
+
q.value ? (u(), v("span", Jo, [
|
|
2155
|
+
!e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
|
|
2156
|
+
me(N(c.internals.texts.placeholder), 1)
|
|
2148
2157
|
], 64)) : $("", !0)
|
|
2149
|
-
])) : (u(),
|
|
2158
|
+
])) : (u(), v("span", Zo, N(M.value), 1))
|
|
2150
2159
|
]),
|
|
2151
2160
|
_: 2
|
|
2152
2161
|
}, [
|
|
2153
2162
|
(U = x.value) != null && U.icon || c.$slots.prepend ? {
|
|
2154
2163
|
name: "prepend",
|
|
2155
|
-
fn:
|
|
2156
|
-
var K,
|
|
2164
|
+
fn: k(() => {
|
|
2165
|
+
var K, ie;
|
|
2157
2166
|
return [
|
|
2158
2167
|
y(c.$slots, "prepend"),
|
|
2159
|
-
(K = x.value) != null && K.icon ? (u(), I(
|
|
2168
|
+
(K = x.value) != null && K.icon ? (u(), I(m(F), G(re({ key: 0 }, (ie = x.value) == null ? void 0 : ie.icon)), null, 16)) : $("", !0)
|
|
2160
2169
|
];
|
|
2161
2170
|
}),
|
|
2162
2171
|
key: "0"
|
|
2163
2172
|
} : void 0,
|
|
2164
2173
|
c.$slots.extras ? {
|
|
2165
2174
|
name: "extras",
|
|
2166
|
-
fn:
|
|
2175
|
+
fn: k(() => [
|
|
2167
2176
|
y(c.$slots, "extras")
|
|
2168
2177
|
]),
|
|
2169
2178
|
key: "1"
|
|
2170
2179
|
} : void 0
|
|
2171
2180
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2172
|
-
z(
|
|
2181
|
+
z(m(he), {
|
|
2173
2182
|
modelValue: s.value,
|
|
2174
2183
|
"onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
|
|
2175
2184
|
spy: "",
|
|
@@ -2177,12 +2186,12 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2177
2186
|
placement: "bottom-start",
|
|
2178
2187
|
width: "anchor",
|
|
2179
2188
|
"scroll-lock": "",
|
|
2180
|
-
anchor: (
|
|
2189
|
+
anchor: (ae = a.value) == null ? void 0 : ae.$el,
|
|
2181
2190
|
offset: 2,
|
|
2182
|
-
onEnter:
|
|
2191
|
+
onEnter: le,
|
|
2183
2192
|
onLeave: Q
|
|
2184
2193
|
}, {
|
|
2185
|
-
default:
|
|
2194
|
+
default: k(() => [
|
|
2186
2195
|
A("div", {
|
|
2187
2196
|
ref_key: "contentRef",
|
|
2188
2197
|
ref: f,
|
|
@@ -2190,17 +2199,18 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2190
2199
|
"data-key": e.id,
|
|
2191
2200
|
class: "q-select__body",
|
|
2192
2201
|
tabindex: "-1",
|
|
2193
|
-
onFocusout:
|
|
2202
|
+
onFocusout: Y,
|
|
2194
2203
|
onKeydown: pe(H, ["stop"])
|
|
2195
2204
|
}, [
|
|
2196
2205
|
y(c.$slots, "body.prepend"),
|
|
2197
|
-
e.loading ? (u(),
|
|
2198
|
-
z(
|
|
2199
|
-
])) : (u(), I(
|
|
2206
|
+
e.loading ? (u(), v("div", tn, [
|
|
2207
|
+
z(m(Ie), { size: 24 })
|
|
2208
|
+
])) : (u(), I(m(Te), {
|
|
2200
2209
|
key: 1,
|
|
2201
2210
|
ref_key: "listRef",
|
|
2202
2211
|
ref: r,
|
|
2203
2212
|
class: "q-select__items",
|
|
2213
|
+
selectable: "",
|
|
2204
2214
|
modelValue: l.value,
|
|
2205
2215
|
"onUpdate:modelValue": [
|
|
2206
2216
|
h[0] || (h[0] = (K) => l.value = K),
|
|
@@ -2211,7 +2221,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2211
2221
|
"item-label": e.itemLabel,
|
|
2212
2222
|
"item-value": e.itemValue
|
|
2213
2223
|
}, {
|
|
2214
|
-
item:
|
|
2224
|
+
item: k(({ item: K }) => [
|
|
2215
2225
|
y(c.$slots, "item", { item: K })
|
|
2216
2226
|
]),
|
|
2217
2227
|
_: 3
|
|
@@ -2233,17 +2243,17 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2233
2243
|
width: { default: void 0 },
|
|
2234
2244
|
height: { default: void 0 }
|
|
2235
2245
|
},
|
|
2236
|
-
setup(
|
|
2237
|
-
const
|
|
2238
|
-
const l = typeof
|
|
2246
|
+
setup(o) {
|
|
2247
|
+
const t = o, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = g(() => {
|
|
2248
|
+
const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
2239
2249
|
return {
|
|
2240
2250
|
width: l,
|
|
2241
2251
|
height: s
|
|
2242
2252
|
};
|
|
2243
2253
|
});
|
|
2244
|
-
return (l, s) => (u(),
|
|
2254
|
+
return (l, s) => (u(), v("div", {
|
|
2245
2255
|
class: C(["q-skeleton-loader", e.value]),
|
|
2246
|
-
style:
|
|
2256
|
+
style: ue(n.value)
|
|
2247
2257
|
}, rn, 6));
|
|
2248
2258
|
}
|
|
2249
2259
|
}), un = B(dn), cn = /* @__PURE__ */ L({
|
|
@@ -2251,17 +2261,17 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2251
2261
|
props: {
|
|
2252
2262
|
theme: {}
|
|
2253
2263
|
},
|
|
2254
|
-
setup(
|
|
2255
|
-
const
|
|
2256
|
-
return (e, n) => (u(),
|
|
2257
|
-
class: C(["q-theme-provider", `q-theme--${
|
|
2264
|
+
setup(o) {
|
|
2265
|
+
const t = o;
|
|
2266
|
+
return (e, n) => (u(), v("div", {
|
|
2267
|
+
class: C(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2258
2268
|
}, [
|
|
2259
2269
|
y(e.$slots, "default")
|
|
2260
2270
|
], 2));
|
|
2261
2271
|
}
|
|
2262
|
-
}), fn = B(cn), pn = ["innerHTML"], mn =
|
|
2272
|
+
}), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
|
|
2263
2273
|
__name: "QTooltip",
|
|
2264
|
-
props: /* @__PURE__ */
|
|
2274
|
+
props: /* @__PURE__ */ X({
|
|
2265
2275
|
id: { default: void 0 },
|
|
2266
2276
|
anchor: {},
|
|
2267
2277
|
appearance: { default: "inverted" },
|
|
@@ -2273,6 +2283,7 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2273
2283
|
html: { type: Boolean, default: !0 },
|
|
2274
2284
|
placement: { default: "right" },
|
|
2275
2285
|
text: {},
|
|
2286
|
+
icon: { default: void 0 },
|
|
2276
2287
|
trigger: { default: "hover" },
|
|
2277
2288
|
class: { default: void 0 }
|
|
2278
2289
|
}, {
|
|
@@ -2280,47 +2291,52 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2280
2291
|
modelModifiers: {}
|
|
2281
2292
|
}),
|
|
2282
2293
|
emits: ["update:modelValue"],
|
|
2283
|
-
setup(
|
|
2284
|
-
const
|
|
2285
|
-
return (l, s) => (u(),
|
|
2294
|
+
setup(o) {
|
|
2295
|
+
const t = o, e = ee(o, "modelValue"), n = ve(t.id);
|
|
2296
|
+
return (l, s) => (u(), v(te, null, [
|
|
2286
2297
|
y(l.$slots, "anchor", {
|
|
2287
|
-
props: { "aria-describedby":
|
|
2298
|
+
props: { "aria-describedby": m(n) }
|
|
2288
2299
|
}),
|
|
2289
|
-
z(
|
|
2300
|
+
z(m(he), {
|
|
2290
2301
|
"model-value": e.value,
|
|
2291
|
-
anchor:
|
|
2302
|
+
anchor: t.anchor,
|
|
2292
2303
|
role: "tooltip",
|
|
2293
2304
|
"non-modal": "",
|
|
2294
|
-
id:
|
|
2295
|
-
appearance:
|
|
2296
|
-
arrow:
|
|
2297
|
-
attach:
|
|
2298
|
-
inline:
|
|
2299
|
-
class: C(["q-tooltip",
|
|
2300
|
-
delay:
|
|
2301
|
-
disabled:
|
|
2302
|
-
placement:
|
|
2303
|
-
trigger:
|
|
2305
|
+
id: m(n),
|
|
2306
|
+
appearance: t.appearance,
|
|
2307
|
+
arrow: t.arrow,
|
|
2308
|
+
attach: t.attach,
|
|
2309
|
+
inline: t.inline,
|
|
2310
|
+
class: C(["q-tooltip", t.class]),
|
|
2311
|
+
delay: t.delay,
|
|
2312
|
+
disabled: t.disabled,
|
|
2313
|
+
placement: t.placement,
|
|
2314
|
+
trigger: t.trigger
|
|
2304
2315
|
}, {
|
|
2305
|
-
default:
|
|
2306
|
-
|
|
2307
|
-
key: 0,
|
|
2308
|
-
|
|
2309
|
-
|
|
2316
|
+
default: k(() => [
|
|
2317
|
+
y(l.$slots, "default", {}, () => [
|
|
2318
|
+
t.icon ? (u(), I(m(F), G(re({ key: 0 }, t.icon)), null, 16)) : $("", !0),
|
|
2319
|
+
t.html ? (u(), v("span", {
|
|
2320
|
+
key: 1,
|
|
2321
|
+
innerHTML: t.text
|
|
2322
|
+
}, null, 8, pn)) : (u(), v(te, { key: 2 }, [
|
|
2323
|
+
me(N(t.text), 1)
|
|
2324
|
+
], 64))
|
|
2325
|
+
])
|
|
2310
2326
|
]),
|
|
2311
|
-
_:
|
|
2327
|
+
_: 3
|
|
2312
2328
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2313
2329
|
], 64));
|
|
2314
2330
|
}
|
|
2315
|
-
}),
|
|
2331
|
+
}), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2316
2332
|
__proto__: null,
|
|
2317
2333
|
QBadge: Dt,
|
|
2318
|
-
QButton:
|
|
2334
|
+
QButton: de,
|
|
2319
2335
|
QButtonGroup: tt,
|
|
2320
2336
|
QButtonToggle: Qt,
|
|
2321
2337
|
QCombobox: qo,
|
|
2322
2338
|
QDialog: Qo,
|
|
2323
|
-
QField:
|
|
2339
|
+
QField: xe,
|
|
2324
2340
|
QIcon: F,
|
|
2325
2341
|
QIconFont: Ye,
|
|
2326
2342
|
QIconImg: Ze,
|
|
@@ -2330,104 +2346,104 @@ const so = ["role"], io = /* @__PURE__ */ L({
|
|
|
2330
2346
|
QList: Te,
|
|
2331
2347
|
QListItem: ot,
|
|
2332
2348
|
QListItemGroup: nt,
|
|
2333
|
-
QOverlay:
|
|
2349
|
+
QOverlay: he,
|
|
2334
2350
|
QPopover: Yo,
|
|
2335
2351
|
QSelect: an,
|
|
2336
2352
|
QSkeletonLoader: un,
|
|
2337
|
-
QSpinnerLoader:
|
|
2353
|
+
QSpinnerLoader: Ie,
|
|
2338
2354
|
QTextField: lt,
|
|
2339
2355
|
QThemeProvider: fn,
|
|
2340
|
-
QTooltip:
|
|
2356
|
+
QTooltip: vn
|
|
2341
2357
|
}, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
|
|
2342
|
-
function
|
|
2343
|
-
const
|
|
2344
|
-
if (!
|
|
2358
|
+
function yn() {
|
|
2359
|
+
const o = He(be);
|
|
2360
|
+
if (!o)
|
|
2345
2361
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2346
|
-
return
|
|
2362
|
+
return o;
|
|
2347
2363
|
}
|
|
2348
|
-
function In(
|
|
2349
|
-
const
|
|
2350
|
-
activeTheme: V(
|
|
2351
|
-
themes:
|
|
2364
|
+
function In(o) {
|
|
2365
|
+
const t = yn(), e = {
|
|
2366
|
+
activeTheme: V(o),
|
|
2367
|
+
themes: t.themes
|
|
2352
2368
|
};
|
|
2353
2369
|
return Ne(be, e), e;
|
|
2354
2370
|
}
|
|
2355
|
-
function
|
|
2356
|
-
let
|
|
2371
|
+
function bn() {
|
|
2372
|
+
let o = document.getElementById(
|
|
2357
2373
|
be
|
|
2358
2374
|
);
|
|
2359
|
-
return
|
|
2375
|
+
return o || (o = document.createElement("style"), o.id = be, document.head.appendChild(o)), o;
|
|
2360
2376
|
}
|
|
2361
|
-
function
|
|
2362
|
-
let
|
|
2363
|
-
for (const n of
|
|
2364
|
-
|
|
2377
|
+
function gn(o) {
|
|
2378
|
+
let t = "";
|
|
2379
|
+
for (const n of o) {
|
|
2380
|
+
t += `.q-theme--${n.name} {
|
|
2365
2381
|
`;
|
|
2366
2382
|
const l = n.scheme;
|
|
2367
2383
|
let s;
|
|
2368
2384
|
for (s in l) {
|
|
2369
2385
|
const i = l[s];
|
|
2370
2386
|
if (i) {
|
|
2371
|
-
|
|
2387
|
+
t += ` ${Ue(s)}: ${i};
|
|
2372
2388
|
`;
|
|
2373
2389
|
const a = et(i);
|
|
2374
|
-
|
|
2390
|
+
t += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
2375
2391
|
`;
|
|
2376
2392
|
}
|
|
2377
2393
|
}
|
|
2378
|
-
|
|
2394
|
+
t += `}
|
|
2379
2395
|
`;
|
|
2380
2396
|
}
|
|
2381
|
-
const e =
|
|
2382
|
-
e.textContent =
|
|
2397
|
+
const e = bn();
|
|
2398
|
+
e.textContent = t;
|
|
2383
2399
|
}
|
|
2384
|
-
function Ue(
|
|
2385
|
-
return
|
|
2400
|
+
function Ue(o) {
|
|
2401
|
+
return o ? `--q-theme-${Xe(o)}` : "";
|
|
2386
2402
|
}
|
|
2387
|
-
function
|
|
2403
|
+
function _n(o = {}) {
|
|
2388
2404
|
return { install: (e) => {
|
|
2389
|
-
const n =
|
|
2405
|
+
const n = o.components || {};
|
|
2390
2406
|
for (const s in n)
|
|
2391
2407
|
e.component(s, n[s]);
|
|
2392
|
-
const l =
|
|
2393
|
-
e.provide(Ce, V(l)),
|
|
2408
|
+
const l = o.defaults || {};
|
|
2409
|
+
e.provide(Ce, V(l)), kn(e, o.themes);
|
|
2394
2410
|
} };
|
|
2395
2411
|
}
|
|
2396
|
-
function
|
|
2412
|
+
function kn(o, t) {
|
|
2397
2413
|
const e = [];
|
|
2398
2414
|
let n;
|
|
2399
|
-
if (!
|
|
2415
|
+
if (!t)
|
|
2400
2416
|
n = "default", e.push({
|
|
2401
2417
|
name: n,
|
|
2402
2418
|
mode: "light",
|
|
2403
2419
|
scheme: Le
|
|
2404
2420
|
});
|
|
2405
2421
|
else
|
|
2406
|
-
for (const l of
|
|
2422
|
+
for (const l of t.themes) {
|
|
2407
2423
|
const i = { ...l.mode === "light" ? Le : Ge, ...l.colors };
|
|
2408
2424
|
e.push({
|
|
2409
2425
|
name: l.name,
|
|
2410
2426
|
mode: l.mode,
|
|
2411
2427
|
scheme: i
|
|
2412
|
-
}), l.name ===
|
|
2428
|
+
}), l.name === t.defaultTheme && (n = l.name);
|
|
2413
2429
|
}
|
|
2414
2430
|
if (n) {
|
|
2415
2431
|
const l = {
|
|
2416
2432
|
activeTheme: V(n),
|
|
2417
2433
|
themes: e
|
|
2418
2434
|
};
|
|
2419
|
-
|
|
2435
|
+
gn(e), Z(l.activeTheme, wn, { immediate: !0 }), o.provide(be, l);
|
|
2420
2436
|
}
|
|
2421
2437
|
}
|
|
2422
|
-
function
|
|
2423
|
-
const
|
|
2424
|
-
|
|
2438
|
+
function wn(o) {
|
|
2439
|
+
const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
|
|
2440
|
+
t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
|
|
2425
2441
|
}
|
|
2426
|
-
const
|
|
2442
|
+
const xn = (o = {}) => _n({ components: hn, ...o });
|
|
2427
2443
|
export {
|
|
2428
|
-
|
|
2429
|
-
|
|
2444
|
+
hn as components,
|
|
2445
|
+
xn as createFramework,
|
|
2430
2446
|
In as provideTheme,
|
|
2431
|
-
|
|
2432
|
-
|
|
2447
|
+
qn as templates,
|
|
2448
|
+
yn as useTheme
|
|
2433
2449
|
};
|