@quidgest/ui 0.12.0 → 0.12.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 +22 -0
- package/dist/ui.esm.js +575 -575
- package/dist/ui.js +6 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +97 -108
- package/dist/ui.scss +23 -1
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +14 -15
- package/esm/components/QButton/index.d.ts +196 -2
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/index.js +6 -0
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +79 -2
- package/esm/components/QButtonGroup/index.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.js +6 -0
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +17 -17
- package/esm/components/QButtonToggle/index.d.ts +115 -2
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/index.js +6 -0
- package/esm/components/QCombobox/QCombobox.d.ts +4 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +106 -111
- package/esm/components/QCombobox/index.d.ts +1083 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/index.js +6 -0
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +168 -1
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QField/index.js +2 -2
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -12
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/index.d.ts +156 -4
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QIcon/index.js +8 -11
- package/esm/components/QInputGroup/QInputGroup.d.ts +1 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +25 -27
- package/esm/components/QInputGroup/index.d.ts +153 -2
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.js +6 -0
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +13 -2
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.js +6 -0
- package/esm/components/QList/QList.d.ts +1 -1
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +48 -49
- package/esm/components/QList/QListItem.d.ts +8 -1
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +63 -37
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +418 -3
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/index.js +8 -10
- package/esm/components/QOverlay/QOverlay.d.ts +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/index.d.ts +320 -2
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/index.js +4 -4
- package/esm/components/QPopover/QPopover.d.ts +1 -1
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +11 -12
- package/esm/components/QPopover/index.d.ts +180 -2
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/index.js +6 -0
- package/esm/components/QSelect/QSelect.d.ts +3 -3
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +68 -73
- package/esm/components/QSelect/index.d.ts +377 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/index.js +6 -0
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/index.d.ts +31 -2
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/index.js +6 -0
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.d.ts +22 -2
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.js +4 -4
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +7 -8
- package/esm/components/QTextField/index.d.ts +229 -2
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/index.js +2 -2
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +37 -2
- package/esm/components/QThemeProvider/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.js +6 -0
- package/esm/components/QTooltip/QTooltip.d.ts +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +8 -9
- package/esm/components/QTooltip/index.d.ts +259 -2
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/QTooltip/index.js +6 -0
- package/esm/components/index.js +39 -44
- package/esm/composables/defaults.js +5 -5
- package/esm/framework.d.ts +2 -2
- package/package.json +16 -15
package/dist/ui.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as L, computed as k, openBlock as u, createElementBlock as m, normalizeClass as
|
|
1
|
+
import { defineComponent as L, computed as k, openBlock as u, createElementBlock as m, normalizeClass as C, normalizeStyle as ie, getCurrentInstance as Ue, ref as V, provide as Ne, inject as He, withModifiers as ce, createVNode as Q, unref as y, createCommentVNode as q, createElementVNode as K, Fragment as se, createTextVNode as ve, toDisplayString as j, renderSlot as h, toRef as Ae, mergeModels as Z, useModel as ne, createBlock as D, withCtx as w, renderList as xe, resolveDynamicComponent as Ke, h as ze, normalizeProps as ae, mergeProps as fe, guardReactiveProps as re, reactive as Qe, watch as R, nextTick as X, onMounted as je, onBeforeUnmount as lt, Teleport as at, Transition as st, withKeys as it, createSlots as $e, withDirectives as rt, vModelDynamic as dt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.12.
|
|
3
|
+
* Quidgest UI v0.12.2
|
|
4
4
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const Le = {
|
|
8
8
|
primary: "#008ad2",
|
|
9
9
|
primaryLight: "#cde5ff",
|
|
10
10
|
primaryDark: "#006398",
|
|
@@ -35,7 +35,7 @@ const Se = {
|
|
|
35
35
|
onWarning: "#fff",
|
|
36
36
|
onDanger: "#fff",
|
|
37
37
|
onInfo: "#fff"
|
|
38
|
-
},
|
|
38
|
+
}, Ge = {
|
|
39
39
|
primary: "#009ff5",
|
|
40
40
|
primaryLight: "#ade2ff",
|
|
41
41
|
primaryDark: "#164965",
|
|
@@ -66,11 +66,11 @@ const Se = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
|
-
defaultDarkColorScheme:
|
|
72
|
-
defaultLightColorScheme:
|
|
73
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
71
|
+
defaultDarkColorScheme: Ge,
|
|
72
|
+
defaultLightColorScheme: Le
|
|
73
|
+
}, Symbol.toStringTag, { value: "Module" })), ut = /* @__PURE__ */ L({
|
|
74
74
|
__name: "QSpinnerLoader",
|
|
75
75
|
props: {
|
|
76
76
|
size: { default: 48 },
|
|
@@ -81,25 +81,25 @@ const Se = {
|
|
|
81
81
|
"font-size": o.size !== 48 ? `${o.size}px` : void 0
|
|
82
82
|
}));
|
|
83
83
|
return (n, l) => (u(), m("div", {
|
|
84
|
-
class:
|
|
84
|
+
class: C(["q-spinner-loader", o.class]),
|
|
85
85
|
style: ie(e.value)
|
|
86
86
|
}, null, 6));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function Se(t) {
|
|
90
90
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Me(t) {
|
|
93
93
|
return t !== null && typeof t == "object" && !Array.isArray(t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Be(t = {}, o = {}) {
|
|
96
96
|
const e = {};
|
|
97
97
|
for (const n in t)
|
|
98
98
|
e[n] = t[n];
|
|
99
99
|
for (const n in o) {
|
|
100
100
|
const l = t[n], s = o[n];
|
|
101
|
-
if (
|
|
102
|
-
e[n] =
|
|
101
|
+
if (Me(l) && Me(s)) {
|
|
102
|
+
e[n] = Be(
|
|
103
103
|
l,
|
|
104
104
|
s
|
|
105
105
|
);
|
|
@@ -109,62 +109,61 @@ function Ve(t = {}, o = {}) {
|
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
112
|
+
const Ve = "q-defaults";
|
|
113
|
+
function ct() {
|
|
114
114
|
var s, i;
|
|
115
|
-
const t =
|
|
115
|
+
const t = Ue();
|
|
116
116
|
if (!t)
|
|
117
117
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
118
118
|
const o = t.type.name ?? t.type.__name;
|
|
119
119
|
if (!o)
|
|
120
120
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
121
|
-
const e =
|
|
122
|
-
return k(() =>
|
|
121
|
+
const e = Re(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[o];
|
|
122
|
+
return k(() => Be(n, l));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
124
|
+
function We(t) {
|
|
125
|
+
if (Se(t))
|
|
126
126
|
return;
|
|
127
|
-
const o =
|
|
128
|
-
|
|
127
|
+
const o = Re(), e = V(t), n = k(() => Se(e.value) ? o.value : Be(o.value, e.value));
|
|
128
|
+
Ne(Ve, n);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
const t =
|
|
130
|
+
function Re() {
|
|
131
|
+
const t = He(Ve, void 0);
|
|
132
132
|
if (!t)
|
|
133
133
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Xe(t) {
|
|
137
137
|
return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function ft(t, o) {
|
|
140
140
|
var n;
|
|
141
|
-
const e =
|
|
141
|
+
const e = Xe(o);
|
|
142
142
|
return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function S(t) {
|
|
145
145
|
const o = t.setup;
|
|
146
146
|
return o && (t.setup = (e, n) => {
|
|
147
|
-
const l =
|
|
148
|
-
if (
|
|
147
|
+
const l = ct();
|
|
148
|
+
if (Se(l.value))
|
|
149
149
|
return o(e, n);
|
|
150
|
-
const s =
|
|
150
|
+
const s = Ue();
|
|
151
151
|
if (s === null)
|
|
152
152
|
return o(e, n);
|
|
153
153
|
const i = new Proxy(e, {
|
|
154
154
|
get(a, c) {
|
|
155
155
|
var x;
|
|
156
156
|
const v = Reflect.get(a, c), $ = (x = l.value) == null ? void 0 : x[c];
|
|
157
|
-
return typeof c == "string" && !
|
|
157
|
+
return typeof c == "string" && !ft(s.vnode, c) ? $ ?? v : v;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
return o(i, n);
|
|
161
161
|
}), t;
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
const ft = ["disabled"], pt = {
|
|
163
|
+
const qe = S(ut), pt = ["disabled"], mt = {
|
|
165
164
|
key: 0,
|
|
166
165
|
class: "q-btn__spinner"
|
|
167
|
-
},
|
|
166
|
+
}, vt = { class: "q-btn__content" }, ht = /* @__PURE__ */ L({
|
|
168
167
|
__name: "QButton",
|
|
169
168
|
props: {
|
|
170
169
|
active: { type: Boolean },
|
|
@@ -203,25 +202,25 @@ const ft = ["disabled"], pt = {
|
|
|
203
202
|
});
|
|
204
203
|
return (a, c) => (u(), m("button", {
|
|
205
204
|
type: "button",
|
|
206
|
-
class:
|
|
205
|
+
class: C(i.value),
|
|
207
206
|
disabled: l.value,
|
|
208
|
-
onClick:
|
|
207
|
+
onClick: ce(s, ["stop", "prevent"])
|
|
209
208
|
}, [
|
|
210
|
-
a.loading ? (u(), m("div",
|
|
211
|
-
|
|
209
|
+
a.loading ? (u(), m("div", mt, [
|
|
210
|
+
Q(y(qe), { size: 20 })
|
|
212
211
|
])) : q("", !0),
|
|
213
|
-
|
|
214
|
-
a.iconOnRight ? (u(), m(
|
|
215
|
-
|
|
212
|
+
K("span", vt, [
|
|
213
|
+
a.iconOnRight ? (u(), m(se, { key: 0 }, [
|
|
214
|
+
ve(j(e.label), 1)
|
|
216
215
|
], 64)) : q("", !0),
|
|
217
216
|
h(a.$slots, "default"),
|
|
218
|
-
a.iconOnRight ? q("", !0) : (u(), m(
|
|
219
|
-
|
|
217
|
+
a.iconOnRight ? q("", !0) : (u(), m(se, { key: 1 }, [
|
|
218
|
+
ve(j(e.label), 1)
|
|
220
219
|
], 64))
|
|
221
220
|
])
|
|
222
|
-
], 10,
|
|
221
|
+
], 10, pt));
|
|
223
222
|
}
|
|
224
|
-
}),
|
|
223
|
+
}), pe = S(ht), yt = /* @__PURE__ */ L({
|
|
225
224
|
__name: "QButtonGroup",
|
|
226
225
|
props: {
|
|
227
226
|
disabled: { type: Boolean },
|
|
@@ -231,15 +230,15 @@ const ft = ["disabled"], pt = {
|
|
|
231
230
|
},
|
|
232
231
|
setup(t) {
|
|
233
232
|
const o = t;
|
|
234
|
-
return
|
|
233
|
+
return We({
|
|
235
234
|
QButton: {
|
|
236
235
|
bStyle: "secondary",
|
|
237
|
-
disabled:
|
|
238
|
-
borderless:
|
|
236
|
+
disabled: Ae(o, "disabled"),
|
|
237
|
+
borderless: Ae(o, "borderless"),
|
|
239
238
|
elevated: !1
|
|
240
239
|
}
|
|
241
240
|
}), (e, n) => (u(), m("div", {
|
|
242
|
-
class:
|
|
241
|
+
class: C([
|
|
243
242
|
"q-btn-group",
|
|
244
243
|
{
|
|
245
244
|
"q-btn-group--elevated": o.elevated
|
|
@@ -250,9 +249,9 @@ const ft = ["disabled"], pt = {
|
|
|
250
249
|
h(e.$slots, "default")
|
|
251
250
|
], 2));
|
|
252
251
|
}
|
|
253
|
-
}),
|
|
252
|
+
}), Ye = S(yt), bt = /* @__PURE__ */ L({
|
|
254
253
|
__name: "QButtonToggle",
|
|
255
|
-
props: /* @__PURE__ */
|
|
254
|
+
props: /* @__PURE__ */ Z({
|
|
256
255
|
options: {},
|
|
257
256
|
disabled: { type: Boolean },
|
|
258
257
|
borderless: { type: Boolean },
|
|
@@ -265,19 +264,19 @@ const ft = ["disabled"], pt = {
|
|
|
265
264
|
}),
|
|
266
265
|
emits: ["update:modelValue"],
|
|
267
266
|
setup(t) {
|
|
268
|
-
const o = t, e =
|
|
267
|
+
const o = t, e = ne(t, "modelValue");
|
|
269
268
|
function n(l) {
|
|
270
269
|
e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
|
|
271
270
|
}
|
|
272
|
-
return (l, s) => (u(),
|
|
271
|
+
return (l, s) => (u(), D(y(Ye), {
|
|
273
272
|
"b-style": "secondary",
|
|
274
|
-
class:
|
|
273
|
+
class: C(o.class),
|
|
275
274
|
disabled: o.disabled,
|
|
276
275
|
borderless: o.borderless,
|
|
277
276
|
elevated: o.elevated
|
|
278
277
|
}, {
|
|
279
278
|
default: w(() => [
|
|
280
|
-
(u(!0), m(
|
|
279
|
+
(u(!0), m(se, null, xe(o.options, (i) => (u(), D(y(pe), {
|
|
281
280
|
key: i.key,
|
|
282
281
|
title: i.title,
|
|
283
282
|
label: i.label,
|
|
@@ -293,7 +292,7 @@ const ft = ["disabled"], pt = {
|
|
|
293
292
|
_: 3
|
|
294
293
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
295
294
|
}
|
|
296
|
-
}),
|
|
295
|
+
}), gt = S(bt), _t = /* @__PURE__ */ L({
|
|
297
296
|
__name: "QIcon",
|
|
298
297
|
props: {
|
|
299
298
|
icon: {},
|
|
@@ -305,22 +304,22 @@ const ft = ["disabled"], pt = {
|
|
|
305
304
|
const o = t, e = k(() => {
|
|
306
305
|
switch (o.type) {
|
|
307
306
|
case "svg":
|
|
308
|
-
return
|
|
307
|
+
return et;
|
|
309
308
|
case "font":
|
|
310
|
-
return
|
|
309
|
+
return Ze;
|
|
311
310
|
case "img":
|
|
312
|
-
return
|
|
311
|
+
return Je;
|
|
313
312
|
default:
|
|
314
313
|
return;
|
|
315
314
|
}
|
|
316
315
|
});
|
|
317
|
-
return (n, l) => (u(),
|
|
318
|
-
class:
|
|
316
|
+
return (n, l) => (u(), D(Ke(e.value), {
|
|
317
|
+
class: C(o.class),
|
|
319
318
|
icon: o.icon,
|
|
320
319
|
size: o.size
|
|
321
320
|
}, null, 8, ["class", "icon", "size"]));
|
|
322
321
|
}
|
|
323
|
-
}),
|
|
322
|
+
}), kt = /* @__PURE__ */ L({
|
|
324
323
|
__name: "QIconFont",
|
|
325
324
|
props: {
|
|
326
325
|
icon: {},
|
|
@@ -334,11 +333,11 @@ const ft = ["disabled"], pt = {
|
|
|
334
333
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
335
334
|
}));
|
|
336
335
|
return (s, i) => (u(), m("i", {
|
|
337
|
-
class:
|
|
336
|
+
class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
|
|
338
337
|
style: ie(l.value)
|
|
339
338
|
}, null, 6));
|
|
340
339
|
}
|
|
341
|
-
}),
|
|
340
|
+
}), wt = ["src"], $t = /* @__PURE__ */ L({
|
|
342
341
|
__name: "QIconImg",
|
|
343
342
|
props: {
|
|
344
343
|
icon: {},
|
|
@@ -351,11 +350,11 @@ const ft = ["disabled"], pt = {
|
|
|
351
350
|
}));
|
|
352
351
|
return (n, l) => (u(), m("img", {
|
|
353
352
|
src: o.icon,
|
|
354
|
-
class:
|
|
353
|
+
class: C(["q-icon", "q-icon__img", o.class]),
|
|
355
354
|
style: ie(e.value)
|
|
356
|
-
}, null, 14,
|
|
355
|
+
}, null, 14, wt));
|
|
357
356
|
}
|
|
358
|
-
}),
|
|
357
|
+
}), me = {}, qt = L({
|
|
359
358
|
name: "InlineSvg",
|
|
360
359
|
emits: {
|
|
361
360
|
loaded: (t) => typeof t == "object",
|
|
@@ -368,9 +367,9 @@ const ft = ["disabled"], pt = {
|
|
|
368
367
|
return null;
|
|
369
368
|
const t = this.getSvgContent(this.svgElSource);
|
|
370
369
|
if (!t)
|
|
371
|
-
return
|
|
370
|
+
return ze("div", this.$attrs);
|
|
372
371
|
const o = {};
|
|
373
|
-
return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML,
|
|
372
|
+
return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, ze("svg", o);
|
|
374
373
|
},
|
|
375
374
|
props: {
|
|
376
375
|
/**
|
|
@@ -432,7 +431,7 @@ const ft = ["disabled"], pt = {
|
|
|
432
431
|
n !== !1 && n !== null && n !== void 0 && (t[e] = n);
|
|
433
432
|
},
|
|
434
433
|
getSvgContent(t) {
|
|
435
|
-
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)),
|
|
434
|
+
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), It(t, this.title)), t);
|
|
436
435
|
},
|
|
437
436
|
/**
|
|
438
437
|
* Get svgElSource
|
|
@@ -440,11 +439,11 @@ const ft = ["disabled"], pt = {
|
|
|
440
439
|
*/
|
|
441
440
|
async getSource(t) {
|
|
442
441
|
try {
|
|
443
|
-
|
|
444
|
-
const o = await
|
|
442
|
+
me[t] || (me[t] = xt(this.download(t))), this.svgElSource && me[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
443
|
+
const o = await me[t];
|
|
445
444
|
this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
446
445
|
} catch (o) {
|
|
447
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
446
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete me[t], this.$emit("error", o);
|
|
448
447
|
}
|
|
449
448
|
},
|
|
450
449
|
/**
|
|
@@ -469,7 +468,7 @@ const ft = ["disabled"], pt = {
|
|
|
469
468
|
},
|
|
470
469
|
expose: []
|
|
471
470
|
});
|
|
472
|
-
function
|
|
471
|
+
function It(t, o) {
|
|
473
472
|
const e = t.getElementsByTagName("title");
|
|
474
473
|
if (e.length)
|
|
475
474
|
e[0].textContent = o;
|
|
@@ -478,7 +477,7 @@ function bt(t, o) {
|
|
|
478
477
|
n.textContent = o, t.insertBefore(n, t.firstChild);
|
|
479
478
|
}
|
|
480
479
|
}
|
|
481
|
-
function
|
|
480
|
+
function xt(t) {
|
|
482
481
|
if (t.getIsPending)
|
|
483
482
|
return t;
|
|
484
483
|
let o = !0;
|
|
@@ -490,7 +489,7 @@ function gt(t) {
|
|
|
490
489
|
);
|
|
491
490
|
return e.getIsPending = () => o, e;
|
|
492
491
|
}
|
|
493
|
-
const
|
|
492
|
+
const Lt = /* @__PURE__ */ L({
|
|
494
493
|
__name: "QIconSvg",
|
|
495
494
|
props: {
|
|
496
495
|
icon: {},
|
|
@@ -509,8 +508,8 @@ const De = /* @__PURE__ */ L({
|
|
|
509
508
|
function i() {
|
|
510
509
|
n("unloaded");
|
|
511
510
|
}
|
|
512
|
-
return (a, c) => (u(),
|
|
513
|
-
class:
|
|
511
|
+
return (a, c) => (u(), D(y(qt), {
|
|
512
|
+
class: C(["q-icon", "q-icon__svg", e.class]),
|
|
514
513
|
src: e.bundle,
|
|
515
514
|
symbol: e.icon,
|
|
516
515
|
style: ie(l.value),
|
|
@@ -518,14 +517,9 @@ const De = /* @__PURE__ */ L({
|
|
|
518
517
|
onUnloaded: i
|
|
519
518
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
520
519
|
}
|
|
521
|
-
})
|
|
522
|
-
Y(W);
|
|
523
|
-
Y(Te);
|
|
524
|
-
Y(Ee);
|
|
525
|
-
Y(De);
|
|
526
|
-
const xe = /* @__PURE__ */ L({
|
|
520
|
+
}), Y = S(_t), Ze = S(kt), Je = S($t), et = S(Lt), St = /* @__PURE__ */ L({
|
|
527
521
|
__name: "QList",
|
|
528
|
-
props: /* @__PURE__ */
|
|
522
|
+
props: /* @__PURE__ */ Z({
|
|
529
523
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
530
524
|
items: {},
|
|
531
525
|
groups: { default: () => [] },
|
|
@@ -541,9 +535,9 @@ const xe = /* @__PURE__ */ L({
|
|
|
541
535
|
}),
|
|
542
536
|
emits: ["update:modelValue"],
|
|
543
537
|
setup(t, { expose: o }) {
|
|
544
|
-
const e = t, n =
|
|
538
|
+
const e = t, n = ne(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
|
|
545
539
|
(f) => e.items.some((g) => g.group === f.id)
|
|
546
|
-
) : [{ id: "", title: "" }]), a =
|
|
540
|
+
) : [{ id: "", title: "" }]), a = V(null);
|
|
547
541
|
function c(f) {
|
|
548
542
|
n.value = f;
|
|
549
543
|
}
|
|
@@ -558,116 +552,117 @@ const xe = /* @__PURE__ */ L({
|
|
|
558
552
|
if ((p = a.value) != null && p.contains(f.relatedTarget))
|
|
559
553
|
return;
|
|
560
554
|
let g;
|
|
561
|
-
n.value ? g = e.items.findIndex((
|
|
555
|
+
n.value ? g = e.items.findIndex((F) => F[e.itemValue] === n.value) : g = H();
|
|
562
556
|
const d = l.value;
|
|
563
557
|
I(g, d);
|
|
564
558
|
}
|
|
565
|
-
function
|
|
559
|
+
function z(f) {
|
|
566
560
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
|
|
567
561
|
case "ArrowDown":
|
|
568
|
-
|
|
562
|
+
T("next");
|
|
569
563
|
break;
|
|
570
564
|
case "ArrowUp":
|
|
571
|
-
|
|
565
|
+
T("prev");
|
|
572
566
|
break;
|
|
573
567
|
case "Home":
|
|
574
|
-
|
|
568
|
+
T("first");
|
|
575
569
|
break;
|
|
576
570
|
case "End":
|
|
577
|
-
|
|
571
|
+
T("last");
|
|
578
572
|
break;
|
|
579
573
|
}
|
|
580
574
|
}
|
|
581
|
-
function
|
|
575
|
+
function T(f) {
|
|
582
576
|
switch (f) {
|
|
583
577
|
case "next":
|
|
584
578
|
case "prev":
|
|
585
|
-
I(
|
|
579
|
+
I(P(f));
|
|
586
580
|
break;
|
|
587
581
|
case "first":
|
|
588
|
-
I(
|
|
582
|
+
I(H());
|
|
589
583
|
break;
|
|
590
584
|
case "last":
|
|
591
|
-
I(
|
|
585
|
+
I(M());
|
|
592
586
|
break;
|
|
593
587
|
}
|
|
594
588
|
}
|
|
595
589
|
function I(f, g = !1) {
|
|
596
590
|
var p;
|
|
597
|
-
(p =
|
|
591
|
+
(p = B()[f]) == null || p.focus({ preventScroll: g });
|
|
598
592
|
}
|
|
599
|
-
function
|
|
593
|
+
function B() {
|
|
600
594
|
var g;
|
|
601
595
|
const f = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
|
|
602
596
|
return f ? Array.from(f) : [];
|
|
603
597
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
598
|
+
function G(f) {
|
|
599
|
+
return B()[f];
|
|
606
600
|
}
|
|
607
|
-
function
|
|
608
|
-
return
|
|
601
|
+
function J() {
|
|
602
|
+
return B().indexOf(document.activeElement);
|
|
609
603
|
}
|
|
610
|
-
function
|
|
611
|
-
const f =
|
|
604
|
+
function H() {
|
|
605
|
+
const f = B(), g = f.find((d) => A(d));
|
|
612
606
|
return g ? f.indexOf(g) : -1;
|
|
613
607
|
}
|
|
614
|
-
function
|
|
615
|
-
const f =
|
|
608
|
+
function M() {
|
|
609
|
+
const f = B(), g = [...f].reverse().find((d) => A(d));
|
|
616
610
|
return g ? f.indexOf(g) : -1;
|
|
617
611
|
}
|
|
618
|
-
function
|
|
612
|
+
function ee(f, g, d) {
|
|
619
613
|
return g === "prev" && f === 0 || g === "next" && f === d.length - 1;
|
|
620
614
|
}
|
|
621
|
-
function
|
|
622
|
-
const g =
|
|
623
|
-
return
|
|
615
|
+
function P(f) {
|
|
616
|
+
const g = J();
|
|
617
|
+
return te(g, f);
|
|
624
618
|
}
|
|
625
|
-
function
|
|
626
|
-
const d =
|
|
627
|
-
if (
|
|
619
|
+
function te(f, g) {
|
|
620
|
+
const d = B();
|
|
621
|
+
if (ee(f, g, d))
|
|
628
622
|
return f;
|
|
629
623
|
let p = f + (g === "next" ? 1 : -1);
|
|
630
|
-
for (; !
|
|
631
|
-
if (
|
|
624
|
+
for (; !A(d[p]); ) {
|
|
625
|
+
if (ee(p, g, d))
|
|
632
626
|
return f;
|
|
633
627
|
p += g === "next" ? 1 : -1;
|
|
634
628
|
}
|
|
635
629
|
return p;
|
|
636
630
|
}
|
|
637
|
-
function
|
|
631
|
+
function A(f) {
|
|
638
632
|
return f.tabIndex === -2;
|
|
639
633
|
}
|
|
640
|
-
function
|
|
634
|
+
function W(f) {
|
|
641
635
|
return f ? e.items.filter((g) => g.group === f) : e.items;
|
|
642
636
|
}
|
|
643
637
|
return o({
|
|
644
638
|
focusItem: I,
|
|
645
|
-
getItem:
|
|
646
|
-
getAdjacentItemIndex:
|
|
647
|
-
getFirstFocusableItemIndex:
|
|
648
|
-
getLastFocusableItemIndex:
|
|
649
|
-
}), (f, g) => (u(),
|
|
639
|
+
getItem: G,
|
|
640
|
+
getAdjacentItemIndex: te,
|
|
641
|
+
getFirstFocusableItemIndex: H,
|
|
642
|
+
getLastFocusableItemIndex: M
|
|
643
|
+
}), (f, g) => (u(), D(Ke(s.value), {
|
|
650
644
|
ref_key: "listRef",
|
|
651
645
|
ref: a,
|
|
652
|
-
class:
|
|
646
|
+
class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
653
647
|
role: "listbox",
|
|
654
648
|
tabindex: e.disabled ? -1 : 0,
|
|
655
649
|
onFocus: x,
|
|
656
650
|
onMousedown: v,
|
|
657
651
|
onMouseup: $,
|
|
658
|
-
onKeydown:
|
|
652
|
+
onKeydown: z
|
|
659
653
|
}, {
|
|
660
654
|
default: w(() => [
|
|
661
|
-
(u(!0), m(
|
|
655
|
+
(u(!0), m(se, null, xe(i.value, (d) => (u(), D(y(ot), {
|
|
662
656
|
key: d.id,
|
|
663
657
|
id: d.id,
|
|
664
658
|
title: i.value.length === 1 ? void 0 : d.title
|
|
665
659
|
}, {
|
|
666
660
|
default: w(() => [
|
|
667
|
-
(u(!0), m(
|
|
661
|
+
(u(!0), m(se, null, xe(W(d.id), (p) => (u(), D(y(tt), {
|
|
668
662
|
key: p[e.itemValue],
|
|
669
663
|
value: p[e.itemValue],
|
|
670
664
|
label: p[e.itemLabel],
|
|
665
|
+
description: p.description,
|
|
671
666
|
icon: p.icon,
|
|
672
667
|
disabled: e.disabled || d.disabled || p.disabled,
|
|
673
668
|
highlighted: e.highlighted === p[e.itemValue],
|
|
@@ -678,7 +673,7 @@ const xe = /* @__PURE__ */ L({
|
|
|
678
673
|
h(f.$slots, "item", { item: p })
|
|
679
674
|
]),
|
|
680
675
|
_: 2
|
|
681
|
-
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
676
|
+
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
682
677
|
]),
|
|
683
678
|
_: 2
|
|
684
679
|
}, 1032, ["id", "title"]))), 128))
|
|
@@ -687,15 +682,21 @@ const xe = /* @__PURE__ */ L({
|
|
|
687
682
|
}, 40, ["class", "tabindex"]));
|
|
688
683
|
}
|
|
689
684
|
});
|
|
690
|
-
let
|
|
691
|
-
function
|
|
692
|
-
return t || `uid-${++
|
|
685
|
+
let Bt = 0;
|
|
686
|
+
function ye(t) {
|
|
687
|
+
return t || `uid-${++Bt}`;
|
|
693
688
|
}
|
|
694
|
-
const
|
|
689
|
+
const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ct = { class: "q-list-item__container" }, Tt = { class: "q-list-item__content" }, Et = {
|
|
690
|
+
key: 0,
|
|
691
|
+
class: "q-list-item__description"
|
|
692
|
+
}, Dt = { class: "q-list-item__check-container" }, At = {
|
|
695
693
|
check: {
|
|
696
694
|
icon: "check"
|
|
695
|
+
},
|
|
696
|
+
description: {
|
|
697
|
+
icon: "information-outline"
|
|
697
698
|
}
|
|
698
|
-
},
|
|
699
|
+
}, zt = /* @__PURE__ */ L({
|
|
699
700
|
__name: "QListItem",
|
|
700
701
|
props: {
|
|
701
702
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -703,12 +704,13 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
|
|
|
703
704
|
icon: { default: void 0 },
|
|
704
705
|
selected: { type: Boolean },
|
|
705
706
|
highlighted: { type: Boolean },
|
|
706
|
-
icons: { default: () =>
|
|
707
|
-
disabled: { type: Boolean }
|
|
707
|
+
icons: { default: () => At },
|
|
708
|
+
disabled: { type: Boolean },
|
|
709
|
+
description: { default: void 0 }
|
|
708
710
|
},
|
|
709
711
|
emits: ["select"],
|
|
710
712
|
setup(t, { emit: o }) {
|
|
711
|
-
const e = t, n = o, l =
|
|
713
|
+
const e = t, n = o, l = ye();
|
|
712
714
|
function s() {
|
|
713
715
|
e.disabled || n("select", e.value);
|
|
714
716
|
}
|
|
@@ -716,11 +718,11 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
|
|
|
716
718
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
717
719
|
}
|
|
718
720
|
return (a, c) => (u(), m("li", {
|
|
719
|
-
id:
|
|
721
|
+
id: y(l),
|
|
720
722
|
"data-key": e.value,
|
|
721
723
|
role: "option",
|
|
722
724
|
tabindex: e.disabled ? void 0 : -2,
|
|
723
|
-
class:
|
|
725
|
+
class: C([
|
|
724
726
|
"q-list-item",
|
|
725
727
|
{
|
|
726
728
|
"q-list-item--disabled": e.disabled,
|
|
@@ -731,89 +733,93 @@ const kt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], wt = {
|
|
|
731
733
|
"aria-label": e.label,
|
|
732
734
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
733
735
|
onKeydown: i,
|
|
734
|
-
onClick:
|
|
736
|
+
onClick: ce(s, ["stop", "prevent"])
|
|
735
737
|
}, [
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
738
|
+
K("div", Ct, [
|
|
739
|
+
K("div", Tt, [
|
|
740
|
+
h(a.$slots, "default", {}, () => [
|
|
741
|
+
e.icon ? (u(), D(y(Y), ae(fe({ key: 0 }, e.icon)), null, 16)) : q("", !0),
|
|
742
|
+
ve(" " + j(e.label), 1)
|
|
743
|
+
])
|
|
744
|
+
]),
|
|
745
|
+
e.description ? (u(), m("div", Et, [
|
|
746
|
+
Q(y(Y), ae(re(e.icons.description)), null, 16),
|
|
747
|
+
K("span", null, j(e.description), 1)
|
|
748
|
+
])) : q("", !0)
|
|
739
749
|
]),
|
|
740
|
-
|
|
741
|
-
e.selected ? (u(),
|
|
750
|
+
K("div", Dt, [
|
|
751
|
+
e.selected ? (u(), D(y(Y), fe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
|
|
742
752
|
])
|
|
743
|
-
], 42,
|
|
753
|
+
], 42, Vt));
|
|
744
754
|
}
|
|
745
|
-
}),
|
|
755
|
+
}), Qt = ["data-key", "aria-labelledby"], Mt = ["id"], Ft = /* @__PURE__ */ L({
|
|
746
756
|
__name: "QListItemGroup",
|
|
747
757
|
props: {
|
|
748
758
|
id: {},
|
|
749
759
|
title: { default: "" }
|
|
750
760
|
},
|
|
751
761
|
setup(t) {
|
|
752
|
-
const o = t, e =
|
|
762
|
+
const o = t, e = ye();
|
|
753
763
|
return (n, l) => (u(), m("ul", {
|
|
754
764
|
class: "q-list-item-group",
|
|
755
765
|
role: "group",
|
|
756
766
|
"data-key": o.id,
|
|
757
|
-
"aria-labelledby": o.title ?
|
|
767
|
+
"aria-labelledby": o.title ? y(e) : void 0
|
|
758
768
|
}, [
|
|
759
769
|
o.title ? (u(), m("li", {
|
|
760
770
|
key: 0,
|
|
761
|
-
id:
|
|
771
|
+
id: y(e),
|
|
762
772
|
class: "q-list-item-group__title",
|
|
763
773
|
role: "presentation"
|
|
764
|
-
},
|
|
774
|
+
}, j(o.title), 9, Mt)) : q("", !0),
|
|
765
775
|
h(n.$slots, "default")
|
|
766
|
-
], 8,
|
|
776
|
+
], 8, Qt));
|
|
767
777
|
}
|
|
768
|
-
});
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
const $e = 8;
|
|
773
|
-
function xt(t, o, e, n) {
|
|
774
|
-
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Lt(i, a, s, l), $ = Ct(i, a, v), x = Bt($, v, l), A = St(x, a, v);
|
|
775
|
-
let C;
|
|
778
|
+
}), Ce = S(St), tt = S(zt), ot = S(Ft), ke = 8;
|
|
779
|
+
function Ot(t, o, e, n) {
|
|
780
|
+
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Pt(i, a, s, l), $ = Kt(i, a, v), x = Nt($, v, l), z = Ut(x, a, v);
|
|
781
|
+
let T;
|
|
776
782
|
if (n != null && n.arrow) {
|
|
777
783
|
if (!c)
|
|
778
784
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
779
|
-
|
|
785
|
+
T = Ht(z, i, a, c, v);
|
|
780
786
|
}
|
|
781
|
-
return { overlayCoords:
|
|
787
|
+
return { overlayCoords: z, arrowCoords: T, placement: v };
|
|
782
788
|
}
|
|
783
|
-
function
|
|
784
|
-
const l =
|
|
785
|
-
if (
|
|
786
|
-
const s =
|
|
789
|
+
function Pt(t, o, e, n) {
|
|
790
|
+
const l = Fe(t, o, e, n);
|
|
791
|
+
if (Oe(l)) {
|
|
792
|
+
const s = be(e), a = {
|
|
787
793
|
top: "bottom",
|
|
788
794
|
bottom: "top",
|
|
789
795
|
left: "right",
|
|
790
796
|
right: "left"
|
|
791
|
-
}[s], c =
|
|
797
|
+
}[s], c = Fe(
|
|
792
798
|
t,
|
|
793
799
|
o,
|
|
794
800
|
a,
|
|
795
801
|
n
|
|
796
802
|
);
|
|
797
|
-
if (
|
|
803
|
+
if (Oe(c))
|
|
798
804
|
return e;
|
|
799
|
-
const v =
|
|
805
|
+
const v = Wt(e);
|
|
800
806
|
return v ? `${a}-${v}` : a;
|
|
801
807
|
}
|
|
802
808
|
return e;
|
|
803
809
|
}
|
|
804
|
-
function
|
|
805
|
-
const n =
|
|
806
|
-
return n === "x" ? s.x = l(t.x,
|
|
810
|
+
function Ut(t, o, e) {
|
|
811
|
+
const n = we(e), l = (i, a, c) => Math.min(Math.max(i, a), c), s = { ...t };
|
|
812
|
+
return n === "x" ? s.x = l(t.x, ke, window.innerWidth - o.width - ke) : s.y = l(t.y, ke, window.innerHeight - o.height - ke), s;
|
|
807
813
|
}
|
|
808
|
-
function
|
|
809
|
-
const n =
|
|
814
|
+
function Nt(t, o, e) {
|
|
815
|
+
const n = be(o);
|
|
810
816
|
return {
|
|
811
817
|
x: t.x + (n === "left" ? -e : n === "right" ? e : 0),
|
|
812
818
|
y: t.y + (n === "top" ? -e : n === "bottom" ? e : 0)
|
|
813
819
|
};
|
|
814
820
|
}
|
|
815
|
-
function
|
|
816
|
-
if (
|
|
821
|
+
function Ht(t, o, e, n, l) {
|
|
822
|
+
if (we(l) === "y") {
|
|
817
823
|
const i = o.top + o.height / 2, a = t.y + e.height / 2, c = a - i, v = e.height / 2 - c - n.height / 2 + 2;
|
|
818
824
|
if (v > 0 && v < e.height - n.height)
|
|
819
825
|
return {
|
|
@@ -827,7 +833,7 @@ function Vt(t, o, e, n, l) {
|
|
|
827
833
|
};
|
|
828
834
|
}
|
|
829
835
|
}
|
|
830
|
-
function
|
|
836
|
+
function Kt(t, o, e) {
|
|
831
837
|
const [n, l] = e.split("-"), s = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2;
|
|
832
838
|
let a;
|
|
833
839
|
switch (n) {
|
|
@@ -848,7 +854,7 @@ function Ct(t, o, e) {
|
|
|
848
854
|
}
|
|
849
855
|
if (!l)
|
|
850
856
|
return a;
|
|
851
|
-
const v =
|
|
857
|
+
const v = we(e) === "y" ? "height" : "width", $ = we(e), x = t[v] / 2 - o[v] / 2;
|
|
852
858
|
switch (l) {
|
|
853
859
|
case "start":
|
|
854
860
|
a[$] -= x;
|
|
@@ -861,8 +867,8 @@ function Ct(t, o, e) {
|
|
|
861
867
|
}
|
|
862
868
|
return a;
|
|
863
869
|
}
|
|
864
|
-
function
|
|
865
|
-
const l =
|
|
870
|
+
function Fe(t, o, e, n) {
|
|
871
|
+
const l = be(e);
|
|
866
872
|
let s = 0;
|
|
867
873
|
switch (l) {
|
|
868
874
|
case "top":
|
|
@@ -882,34 +888,34 @@ function Ke(t, o, e, n) {
|
|
|
882
888
|
}
|
|
883
889
|
return s;
|
|
884
890
|
}
|
|
885
|
-
function
|
|
891
|
+
function jt(t) {
|
|
886
892
|
return t === "x" ? "y" : "x";
|
|
887
893
|
}
|
|
888
|
-
function
|
|
889
|
-
const o =
|
|
894
|
+
function Gt(t) {
|
|
895
|
+
const o = be(t);
|
|
890
896
|
return ["left", "right"].includes(o) ? "x" : "y";
|
|
891
897
|
}
|
|
892
|
-
function
|
|
893
|
-
return
|
|
898
|
+
function we(t) {
|
|
899
|
+
return jt(Gt(t));
|
|
894
900
|
}
|
|
895
|
-
function
|
|
901
|
+
function be(t) {
|
|
896
902
|
const [o] = t.split("-");
|
|
897
903
|
return o;
|
|
898
904
|
}
|
|
899
|
-
function
|
|
905
|
+
function Wt(t) {
|
|
900
906
|
const [, o] = t.split("-");
|
|
901
907
|
return o;
|
|
902
908
|
}
|
|
903
|
-
function
|
|
909
|
+
function Oe(t) {
|
|
904
910
|
return t < 0;
|
|
905
911
|
}
|
|
906
|
-
function
|
|
912
|
+
function Rt(t) {
|
|
907
913
|
return typeof t == "string" ? document.querySelector(t) : t;
|
|
908
914
|
}
|
|
909
|
-
const
|
|
915
|
+
const Xt = ["role"], Yt = /* @__PURE__ */ L({
|
|
910
916
|
inheritAttrs: !1,
|
|
911
917
|
__name: "QOverlay",
|
|
912
|
-
props: /* @__PURE__ */
|
|
918
|
+
props: /* @__PURE__ */ Z({
|
|
913
919
|
anchor: { default: void 0 },
|
|
914
920
|
appearance: { default: "regular" },
|
|
915
921
|
arrow: { type: Boolean },
|
|
@@ -931,36 +937,36 @@ const zt = ["role"], me = /* @__PURE__ */ L({
|
|
|
931
937
|
modelValue: { type: Boolean },
|
|
932
938
|
modelModifiers: {}
|
|
933
939
|
}),
|
|
934
|
-
emits: /* @__PURE__ */
|
|
940
|
+
emits: /* @__PURE__ */ Z(["enter", "leave"], ["update:modelValue"]),
|
|
935
941
|
setup(t, { emit: o }) {
|
|
936
|
-
const e = t, n = o, l =
|
|
942
|
+
const e = t, n = o, l = ne(t, "modelValue"), s = k(() => [
|
|
937
943
|
"q-overlay",
|
|
938
|
-
`q-overlay--${
|
|
944
|
+
`q-overlay--${be(a.placement)}`,
|
|
939
945
|
{
|
|
940
946
|
"q-overlay--independent": e.anchor === void 0,
|
|
941
947
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
942
948
|
},
|
|
943
949
|
e.class
|
|
944
|
-
]), i = k(() => (l.value || a.animating) && !e.nonModal), a =
|
|
950
|
+
]), i = k(() => (l.value || a.animating) && !e.nonModal), a = Qe({
|
|
945
951
|
animating: !1,
|
|
946
952
|
top: 0,
|
|
947
953
|
left: 0,
|
|
948
954
|
width: 0,
|
|
949
955
|
placement: e.placement
|
|
950
|
-
}), c =
|
|
956
|
+
}), c = Qe({
|
|
951
957
|
top: void 0,
|
|
952
958
|
left: void 0,
|
|
953
959
|
hidden: !0
|
|
954
960
|
}), v = k(() => a.top !== 0 && a.left !== 0);
|
|
955
|
-
|
|
961
|
+
R(l, () => a.animating = !0);
|
|
956
962
|
const $ = k(() => {
|
|
957
963
|
if (e.anchor === void 0)
|
|
958
964
|
return;
|
|
959
|
-
const
|
|
965
|
+
const b = A(), de = e.width === "anchor", N = de ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
|
|
960
966
|
return {
|
|
961
967
|
top: `${a.top}px`,
|
|
962
968
|
left: `${a.left}px`,
|
|
963
|
-
width:
|
|
969
|
+
width: N !== void 0 ? `${N}px` : void 0
|
|
964
970
|
};
|
|
965
971
|
}), x = k(() => {
|
|
966
972
|
if (e.arrow)
|
|
@@ -969,84 +975,84 @@ const zt = ["role"], me = /* @__PURE__ */ L({
|
|
|
969
975
|
left: c.left !== void 0 ? `${c.left}px` : void 0,
|
|
970
976
|
opacity: c.hidden ? 0 : 1
|
|
971
977
|
};
|
|
972
|
-
}),
|
|
978
|
+
}), z = V(null), T = V(null);
|
|
973
979
|
function I() {
|
|
974
|
-
const
|
|
975
|
-
if (!
|
|
980
|
+
const b = A();
|
|
981
|
+
if (!b || !T.value)
|
|
976
982
|
return;
|
|
977
|
-
const
|
|
983
|
+
const de = {
|
|
978
984
|
placement: e.placement,
|
|
979
985
|
width: e.width,
|
|
980
986
|
offset: e.offset,
|
|
981
987
|
arrow: e.arrow
|
|
982
|
-
},
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
(
|
|
986
|
-
|
|
988
|
+
}, N = Ot(
|
|
989
|
+
b,
|
|
990
|
+
T.value,
|
|
991
|
+
(z == null ? void 0 : z.value) ?? void 0,
|
|
992
|
+
de
|
|
987
993
|
);
|
|
988
|
-
a.left =
|
|
994
|
+
a.left = N.overlayCoords.x, a.top = N.overlayCoords.y, a.placement = N.placement, c.hidden = N.arrowCoords === void 0, N.arrowCoords && (c.top = N.arrowCoords.y, c.left = N.arrowCoords.x);
|
|
989
995
|
}
|
|
990
|
-
|
|
996
|
+
R(
|
|
991
997
|
() => e.placement,
|
|
992
|
-
() =>
|
|
998
|
+
() => X(I)
|
|
993
999
|
);
|
|
994
|
-
let
|
|
995
|
-
function
|
|
996
|
-
|
|
1000
|
+
let B;
|
|
1001
|
+
function G() {
|
|
1002
|
+
H(0);
|
|
997
1003
|
}
|
|
998
|
-
function
|
|
999
|
-
|
|
1004
|
+
function J() {
|
|
1005
|
+
H(e.delay);
|
|
1000
1006
|
}
|
|
1001
|
-
function
|
|
1002
|
-
|
|
1007
|
+
function H(b) {
|
|
1008
|
+
B || (B = window.setTimeout(() => {
|
|
1003
1009
|
l.value = !0;
|
|
1004
|
-
},
|
|
1010
|
+
}, b));
|
|
1005
1011
|
}
|
|
1006
|
-
function
|
|
1007
|
-
if (clearTimeout(
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1012
|
+
function M() {
|
|
1013
|
+
if (clearTimeout(B), B = void 0, l.value = !1, e.anchor && e.trigger === "click") {
|
|
1014
|
+
const b = A();
|
|
1015
|
+
b == null || b.focus();
|
|
1010
1016
|
}
|
|
1011
1017
|
}
|
|
1012
|
-
|
|
1013
|
-
function
|
|
1018
|
+
R(v, () => X(ee));
|
|
1019
|
+
function ee() {
|
|
1014
1020
|
n("enter");
|
|
1015
1021
|
}
|
|
1016
|
-
let
|
|
1017
|
-
function
|
|
1018
|
-
window.clearTimeout(
|
|
1022
|
+
let P;
|
|
1023
|
+
function te() {
|
|
1024
|
+
window.clearTimeout(P), P = window.setTimeout(() => a.animating = !1, 200), n("leave");
|
|
1019
1025
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return e.anchor ?
|
|
1026
|
+
function A() {
|
|
1027
|
+
return e.anchor ? Rt(e.anchor) : null;
|
|
1022
1028
|
}
|
|
1023
|
-
let
|
|
1029
|
+
let W;
|
|
1024
1030
|
function f() {
|
|
1025
|
-
const
|
|
1026
|
-
if (
|
|
1027
|
-
switch (
|
|
1031
|
+
const b = A();
|
|
1032
|
+
if (b)
|
|
1033
|
+
switch (W = new MutationObserver(I), W.observe(b, {
|
|
1028
1034
|
attributes: !1,
|
|
1029
1035
|
childList: !0,
|
|
1030
1036
|
characterData: !0,
|
|
1031
1037
|
subtree: !0
|
|
1032
1038
|
}), e.trigger) {
|
|
1033
1039
|
case "click":
|
|
1034
|
-
|
|
1040
|
+
b.addEventListener("click", G);
|
|
1035
1041
|
break;
|
|
1036
1042
|
case "hover":
|
|
1037
|
-
|
|
1043
|
+
b.addEventListener("mouseenter", J), b.addEventListener("mouseleave", M), b.addEventListener("focusin", G), b.addEventListener("focusout", M);
|
|
1038
1044
|
break;
|
|
1039
1045
|
}
|
|
1040
1046
|
}
|
|
1041
1047
|
function g() {
|
|
1042
|
-
const
|
|
1043
|
-
if (
|
|
1044
|
-
switch (
|
|
1048
|
+
const b = A();
|
|
1049
|
+
if (b)
|
|
1050
|
+
switch (W == null || W.disconnect(), e.trigger) {
|
|
1045
1051
|
case "click":
|
|
1046
|
-
|
|
1052
|
+
b.removeEventListener("click", G);
|
|
1047
1053
|
break;
|
|
1048
1054
|
case "hover":
|
|
1049
|
-
|
|
1055
|
+
b.removeEventListener("mouseenter", J), b.removeEventListener("mouseleave", M), b.removeEventListener("focusin", G), b.removeEventListener("focusout", M);
|
|
1050
1056
|
break;
|
|
1051
1057
|
}
|
|
1052
1058
|
}
|
|
@@ -1056,95 +1062,93 @@ const zt = ["role"], me = /* @__PURE__ */ L({
|
|
|
1056
1062
|
function p() {
|
|
1057
1063
|
window.removeEventListener("resize", I), e.scrollLock || window.removeEventListener("scroll", I);
|
|
1058
1064
|
}
|
|
1059
|
-
let
|
|
1060
|
-
function
|
|
1061
|
-
|
|
1065
|
+
let F;
|
|
1066
|
+
function oe() {
|
|
1067
|
+
A() ? (I(), F = window.setTimeout(oe, 100)) : M();
|
|
1062
1068
|
}
|
|
1063
|
-
function
|
|
1064
|
-
d(), e.spy ?
|
|
1065
|
-
var
|
|
1066
|
-
return (
|
|
1069
|
+
function U() {
|
|
1070
|
+
d(), e.spy ? oe() : I(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && X(() => {
|
|
1071
|
+
var b;
|
|
1072
|
+
return (b = T.value) == null ? void 0 : b.focus();
|
|
1067
1073
|
});
|
|
1068
1074
|
}
|
|
1069
|
-
function
|
|
1070
|
-
p(), e.spy && (clearTimeout(
|
|
1075
|
+
function le() {
|
|
1076
|
+
p(), e.spy && (clearTimeout(F), F = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
|
|
1071
1077
|
}
|
|
1072
|
-
function
|
|
1073
|
-
e.persistent ||
|
|
1078
|
+
function _e() {
|
|
1079
|
+
e.persistent || M();
|
|
1074
1080
|
}
|
|
1075
|
-
return
|
|
1076
|
-
|
|
1081
|
+
return je(() => {
|
|
1082
|
+
X(f);
|
|
1077
1083
|
}), lt(() => {
|
|
1078
|
-
g(),
|
|
1079
|
-
}),
|
|
1084
|
+
g(), le();
|
|
1085
|
+
}), R(
|
|
1080
1086
|
l,
|
|
1081
|
-
(
|
|
1082
|
-
|
|
1087
|
+
(b) => {
|
|
1088
|
+
X(() => b ? U() : le());
|
|
1083
1089
|
},
|
|
1084
1090
|
{ immediate: !0 }
|
|
1085
|
-
), (
|
|
1091
|
+
), (b, de) => (u(), D(at, {
|
|
1086
1092
|
disabled: !l.value && !a.animating || e.inline,
|
|
1087
1093
|
to: e.attach
|
|
1088
1094
|
}, [
|
|
1089
1095
|
i.value ? (u(), m("div", {
|
|
1090
1096
|
key: 0,
|
|
1091
|
-
class:
|
|
1097
|
+
class: C([
|
|
1092
1098
|
"q-overlay__underlay",
|
|
1093
1099
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1094
1100
|
])
|
|
1095
1101
|
}, null, 2)) : q("", !0),
|
|
1096
|
-
|
|
1102
|
+
Q(st, {
|
|
1097
1103
|
name: e.transition,
|
|
1098
1104
|
appear: "",
|
|
1099
|
-
onLeave:
|
|
1105
|
+
onLeave: te
|
|
1100
1106
|
}, {
|
|
1101
1107
|
default: w(() => [
|
|
1102
1108
|
l.value ? (u(), m("div", {
|
|
1103
1109
|
key: 0,
|
|
1104
|
-
class:
|
|
1110
|
+
class: C(s.value),
|
|
1105
1111
|
style: ie($.value)
|
|
1106
1112
|
}, [
|
|
1107
|
-
|
|
1113
|
+
K("div", fe({
|
|
1108
1114
|
class: "q-overlay__content",
|
|
1109
1115
|
ref_key: "overlayRef",
|
|
1110
|
-
ref:
|
|
1116
|
+
ref: T,
|
|
1111
1117
|
tabindex: "-1",
|
|
1112
1118
|
role: i.value ? "dialog" : void 0
|
|
1113
|
-
},
|
|
1114
|
-
onKeydown: it(
|
|
1115
|
-
onBlur:
|
|
1119
|
+
}, b.$attrs, {
|
|
1120
|
+
onKeydown: it(_e, ["escape"]),
|
|
1121
|
+
onBlur: _e
|
|
1116
1122
|
}), [
|
|
1117
1123
|
e.arrow ? (u(), m("div", {
|
|
1118
1124
|
key: 0,
|
|
1119
1125
|
ref_key: "arrowRef",
|
|
1120
|
-
ref:
|
|
1126
|
+
ref: z,
|
|
1121
1127
|
role: "presentation",
|
|
1122
1128
|
class: "q-overlay__arrow",
|
|
1123
1129
|
style: ie(x.value)
|
|
1124
1130
|
}, null, 4)) : q("", !0),
|
|
1125
|
-
h(
|
|
1126
|
-
], 16,
|
|
1131
|
+
h(b.$slots, "default")
|
|
1132
|
+
], 16, Xt)
|
|
1127
1133
|
], 6)) : q("", !0)
|
|
1128
1134
|
]),
|
|
1129
1135
|
_: 3
|
|
1130
1136
|
}, 8, ["name"])
|
|
1131
1137
|
], 8, ["disabled", "to"]));
|
|
1132
1138
|
}
|
|
1133
|
-
})
|
|
1134
|
-
Y(me);
|
|
1135
|
-
const Qt = ["id"], Mt = {
|
|
1139
|
+
}), ge = S(Yt), Zt = ["id"], Jt = {
|
|
1136
1140
|
key: 0,
|
|
1137
1141
|
class: "q-field__label"
|
|
1138
|
-
},
|
|
1142
|
+
}, eo = ["for"], to = {
|
|
1139
1143
|
key: 0,
|
|
1140
1144
|
class: "q-field__prepend"
|
|
1141
|
-
},
|
|
1145
|
+
}, oo = {
|
|
1142
1146
|
key: 1,
|
|
1143
1147
|
class: "q-field__append"
|
|
1144
|
-
},
|
|
1148
|
+
}, no = {
|
|
1145
1149
|
key: 1,
|
|
1146
1150
|
class: "q-field__extras"
|
|
1147
|
-
},
|
|
1151
|
+
}, lo = /* @__PURE__ */ L({
|
|
1148
1152
|
inheritAttrs: !1,
|
|
1149
1153
|
__name: "QField",
|
|
1150
1154
|
props: {
|
|
@@ -1158,12 +1162,12 @@ const Qt = ["id"], Mt = {
|
|
|
1158
1162
|
class: { default: void 0 }
|
|
1159
1163
|
},
|
|
1160
1164
|
setup(t, { expose: o }) {
|
|
1161
|
-
const e = t, n =
|
|
1165
|
+
const e = t, n = ye(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
|
|
1162
1166
|
return o({
|
|
1163
1167
|
fieldRef: l
|
|
1164
1168
|
}), (i, a) => (u(), m("div", {
|
|
1165
|
-
id:
|
|
1166
|
-
class:
|
|
1169
|
+
id: y(n),
|
|
1170
|
+
class: C([
|
|
1167
1171
|
"q-field",
|
|
1168
1172
|
`q-field--${e.size}`,
|
|
1169
1173
|
{
|
|
@@ -1174,39 +1178,37 @@ const Qt = ["id"], Mt = {
|
|
|
1174
1178
|
e.class
|
|
1175
1179
|
])
|
|
1176
1180
|
}, [
|
|
1177
|
-
e.label ? (u(), m("div",
|
|
1181
|
+
e.label ? (u(), m("div", Jt, [
|
|
1178
1182
|
h(i.$slots, "label.prepend"),
|
|
1179
|
-
|
|
1183
|
+
K("label", {
|
|
1180
1184
|
for: e.for
|
|
1181
|
-
},
|
|
1185
|
+
}, j(e.label), 9, eo),
|
|
1182
1186
|
h(i.$slots, "label.append")
|
|
1183
1187
|
])) : q("", !0),
|
|
1184
1188
|
h(i.$slots, "control", {}, () => [
|
|
1185
|
-
|
|
1189
|
+
K("div", fe({
|
|
1186
1190
|
class: "q-field__control",
|
|
1187
1191
|
ref_key: "fieldRef",
|
|
1188
1192
|
ref: l
|
|
1189
1193
|
}, i.$attrs), [
|
|
1190
|
-
i.$slots.prepend ? (u(), m("div",
|
|
1194
|
+
i.$slots.prepend ? (u(), m("div", to, [
|
|
1191
1195
|
h(i.$slots, "prepend")
|
|
1192
1196
|
])) : q("", !0),
|
|
1193
1197
|
h(i.$slots, "default"),
|
|
1194
|
-
i.$slots.append ? (u(), m("div",
|
|
1198
|
+
i.$slots.append ? (u(), m("div", oo, [
|
|
1195
1199
|
h(i.$slots, "append")
|
|
1196
1200
|
])) : q("", !0)
|
|
1197
1201
|
], 16)
|
|
1198
1202
|
]),
|
|
1199
|
-
i.$slots.extras ? (u(), m("div",
|
|
1203
|
+
i.$slots.extras ? (u(), m("div", no, [
|
|
1200
1204
|
h(i.$slots, "extras")
|
|
1201
1205
|
])) : q("", !0)
|
|
1202
|
-
], 10,
|
|
1206
|
+
], 10, Zt));
|
|
1203
1207
|
}
|
|
1204
|
-
})
|
|
1205
|
-
Y(ke);
|
|
1206
|
-
const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Qe = /* @__PURE__ */ L({
|
|
1208
|
+
}), Ie = S(lo), ao = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], so = /* @__PURE__ */ L({
|
|
1207
1209
|
inheritAttrs: !1,
|
|
1208
1210
|
__name: "QTextField",
|
|
1209
|
-
props: /* @__PURE__ */
|
|
1211
|
+
props: /* @__PURE__ */ Z({
|
|
1210
1212
|
id: { default: void 0 },
|
|
1211
1213
|
placeholder: { default: "" },
|
|
1212
1214
|
label: { default: "" },
|
|
@@ -1224,7 +1226,7 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
|
|
|
1224
1226
|
}),
|
|
1225
1227
|
emits: ["update:modelValue"],
|
|
1226
1228
|
setup(t, { expose: o }) {
|
|
1227
|
-
const e = t, n =
|
|
1229
|
+
const e = t, n = ne(t, "modelValue"), l = ye(e.id), s = V(null), i = V(null), a = k(
|
|
1228
1230
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1229
1231
|
);
|
|
1230
1232
|
return o({
|
|
@@ -1233,17 +1235,17 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
|
|
|
1233
1235
|
return (c = s.value) == null ? void 0 : c.fieldRef;
|
|
1234
1236
|
}),
|
|
1235
1237
|
inputRef: i
|
|
1236
|
-
}), (c, v) => (u(),
|
|
1238
|
+
}), (c, v) => (u(), D(y(Ie), {
|
|
1237
1239
|
ref_key: "fieldRef",
|
|
1238
1240
|
ref: s,
|
|
1239
|
-
class:
|
|
1240
|
-
for:
|
|
1241
|
+
class: C(["q-text-field", e.class]),
|
|
1242
|
+
for: y(l),
|
|
1241
1243
|
label: e.label,
|
|
1242
1244
|
size: e.size,
|
|
1243
1245
|
readonly: e.readonly,
|
|
1244
1246
|
disabled: e.disabled,
|
|
1245
1247
|
required: e.required
|
|
1246
|
-
},
|
|
1248
|
+
}, $e({
|
|
1247
1249
|
"label.prepend": w(() => [
|
|
1248
1250
|
h(c.$slots, "label.prepend")
|
|
1249
1251
|
]),
|
|
@@ -1251,11 +1253,11 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
|
|
|
1251
1253
|
h(c.$slots, "label.append")
|
|
1252
1254
|
]),
|
|
1253
1255
|
default: w(() => [
|
|
1254
|
-
rt(
|
|
1256
|
+
rt(K("input", fe({
|
|
1255
1257
|
"onUpdate:modelValue": v[0] || (v[0] = ($) => n.value = $),
|
|
1256
1258
|
ref_key: "inputRef",
|
|
1257
1259
|
ref: i,
|
|
1258
|
-
id:
|
|
1260
|
+
id: y(l),
|
|
1259
1261
|
class: "q-text-field__input",
|
|
1260
1262
|
type: e.type,
|
|
1261
1263
|
role: e.role,
|
|
@@ -1264,7 +1266,7 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
|
|
|
1264
1266
|
readonly: e.readonly,
|
|
1265
1267
|
disabled: e.disabled,
|
|
1266
1268
|
maxlength: e.maxLength
|
|
1267
|
-
}, c.$attrs), null, 16,
|
|
1269
|
+
}, c.$attrs), null, 16, ao), [
|
|
1268
1270
|
[dt, n.value]
|
|
1269
1271
|
])
|
|
1270
1272
|
]),
|
|
@@ -1293,26 +1295,24 @@ const Nt = ["id", "type", "role", "required", "placeholder", "readonly", "disabl
|
|
|
1293
1295
|
} : void 0
|
|
1294
1296
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1295
1297
|
}
|
|
1296
|
-
})
|
|
1297
|
-
Y(Qe);
|
|
1298
|
-
const Ht = ["data-key"], Kt = {
|
|
1298
|
+
}), nt = S(so), io = ["data-key"], ro = {
|
|
1299
1299
|
key: 0,
|
|
1300
1300
|
class: "q-select__loader"
|
|
1301
|
-
},
|
|
1301
|
+
}, uo = {
|
|
1302
1302
|
key: 2,
|
|
1303
1303
|
class: "q-select__loader"
|
|
1304
|
-
},
|
|
1304
|
+
}, co = {
|
|
1305
1305
|
noData: "No data available"
|
|
1306
|
-
},
|
|
1306
|
+
}, fo = {
|
|
1307
1307
|
chevron: {
|
|
1308
1308
|
icon: "chevron-down"
|
|
1309
1309
|
},
|
|
1310
1310
|
clear: {
|
|
1311
1311
|
icon: "close"
|
|
1312
1312
|
}
|
|
1313
|
-
},
|
|
1313
|
+
}, po = /* @__PURE__ */ L({
|
|
1314
1314
|
__name: "QCombobox",
|
|
1315
|
-
props: /* @__PURE__ */
|
|
1315
|
+
props: /* @__PURE__ */ Z({
|
|
1316
1316
|
id: { default: void 0 },
|
|
1317
1317
|
placeholder: { default: "" },
|
|
1318
1318
|
selectionMode: { default: "automatic" },
|
|
@@ -1329,8 +1329,8 @@ const Ht = ["data-key"], Kt = {
|
|
|
1329
1329
|
itemLabel: { default: "label" },
|
|
1330
1330
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1331
1331
|
size: { default: void 0 },
|
|
1332
|
-
texts: { default: () =>
|
|
1333
|
-
icons: { default: () =>
|
|
1332
|
+
texts: { default: () => co },
|
|
1333
|
+
icons: { default: () => fo },
|
|
1334
1334
|
class: { default: void 0 }
|
|
1335
1335
|
}, {
|
|
1336
1336
|
modelValue: {
|
|
@@ -1342,153 +1342,153 @@ const Ht = ["data-key"], Kt = {
|
|
|
1342
1342
|
search: { default: "" },
|
|
1343
1343
|
searchModifiers: {}
|
|
1344
1344
|
}),
|
|
1345
|
-
emits: /* @__PURE__ */
|
|
1345
|
+
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1346
1346
|
setup(t, { expose: o, emit: e }) {
|
|
1347
|
-
const n = t, l = e, s =
|
|
1348
|
-
|
|
1349
|
-
const
|
|
1347
|
+
const n = t, l = e, s = ne(t, "modelValue"), i = ne(t, "open"), a = ne(t, "search"), c = V(void 0), v = V(null), $ = V(null), x = V(null), z = V(null);
|
|
1348
|
+
je(P);
|
|
1349
|
+
const T = k(() => n.clearable && !n.readonly && !n.disabled), I = k(() => {
|
|
1350
1350
|
var r;
|
|
1351
|
-
return n.filterMode === "manual" || !
|
|
1351
|
+
return n.filterMode === "manual" || !M.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
|
|
1352
1352
|
(_) => _[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1353
1353
|
);
|
|
1354
|
-
}),
|
|
1354
|
+
}), B = k(() => {
|
|
1355
1355
|
var r;
|
|
1356
1356
|
return (r = n.items) == null ? void 0 : r.find((_) => _[n.itemValue] === s.value);
|
|
1357
|
-
}),
|
|
1357
|
+
}), G = k(() => B.value === void 0), J = k(() => {
|
|
1358
1358
|
const r = c.value;
|
|
1359
1359
|
if (r !== void 0 && I.value[r])
|
|
1360
1360
|
return I.value[r];
|
|
1361
|
-
}),
|
|
1361
|
+
}), H = k(() => {
|
|
1362
1362
|
var _;
|
|
1363
1363
|
if (c.value === void 0)
|
|
1364
1364
|
return;
|
|
1365
1365
|
const r = (_ = $.value) == null ? void 0 : _.getItem(c.value);
|
|
1366
1366
|
return r == null ? void 0 : r.id;
|
|
1367
|
-
}),
|
|
1367
|
+
}), M = k(() => {
|
|
1368
1368
|
var r;
|
|
1369
|
-
return a.value.length > 0 && a.value !== ((r =
|
|
1369
|
+
return a.value.length > 0 && a.value !== ((r = B.value) == null ? void 0 : r[n.itemLabel]);
|
|
1370
1370
|
});
|
|
1371
|
-
function
|
|
1372
|
-
s.value = r,
|
|
1371
|
+
function ee(r) {
|
|
1372
|
+
s.value = r, A();
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1374
|
+
function P() {
|
|
1375
1375
|
var _;
|
|
1376
|
-
const r = ((_ =
|
|
1376
|
+
const r = ((_ = B.value) == null ? void 0 : _[n.itemLabel]) || "";
|
|
1377
1377
|
a.value !== r && (a.value = r);
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0,
|
|
1379
|
+
function te() {
|
|
1380
|
+
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, le());
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function A() {
|
|
1383
1383
|
i.value && (l("before-hide"), i.value = !1, c.value = void 0);
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
i.value ?
|
|
1385
|
+
function W() {
|
|
1386
|
+
i.value ? A() : g();
|
|
1387
1387
|
}
|
|
1388
1388
|
function f() {
|
|
1389
|
-
|
|
1389
|
+
T.value && (s.value = n.emptyValue, c.value = void 0, le());
|
|
1390
1390
|
}
|
|
1391
1391
|
function g() {
|
|
1392
|
-
if (
|
|
1393
|
-
const r = I.value.indexOf(
|
|
1394
|
-
r !== -1 &&
|
|
1392
|
+
if (te(), B.value !== void 0) {
|
|
1393
|
+
const r = I.value.indexOf(B.value);
|
|
1394
|
+
r !== -1 && X(() => N(r));
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
function d(r) {
|
|
1398
|
-
var _,
|
|
1398
|
+
var _, E;
|
|
1399
1399
|
if (!(!r.key || n.readonly || n.disabled))
|
|
1400
1400
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
|
|
1401
|
-
|
|
1401
|
+
P(), i.value && A();
|
|
1402
1402
|
else if (["ArrowDown", "ArrowUp"].includes(r.key))
|
|
1403
|
-
i.value ?
|
|
1403
|
+
i.value ? X(() => {
|
|
1404
1404
|
if (c.value === void 0)
|
|
1405
1405
|
p();
|
|
1406
1406
|
else {
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1407
|
+
const O = r.key === "ArrowDown" ? "next" : "prev";
|
|
1408
|
+
oe(c.value, O);
|
|
1409
1409
|
}
|
|
1410
|
-
}) : (
|
|
1411
|
-
r.key === "ArrowDown" ? p() :
|
|
1410
|
+
}) : (te(), X(() => {
|
|
1411
|
+
r.key === "ArrowDown" ? p() : F();
|
|
1412
1412
|
}));
|
|
1413
1413
|
else if (r.key === "Enter") {
|
|
1414
|
-
if (
|
|
1414
|
+
if (J.value === void 0)
|
|
1415
1415
|
return;
|
|
1416
|
-
J
|
|
1416
|
+
ee(J.value[n.itemValue]);
|
|
1417
1417
|
} else
|
|
1418
|
-
r.key === "Home" ? c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex() : r.key === "End" ? c.value = (
|
|
1418
|
+
r.key === "Home" ? c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex() : r.key === "End" ? c.value = (E = $.value) == null ? void 0 : E.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && te();
|
|
1419
1419
|
}
|
|
1420
1420
|
function p() {
|
|
1421
1421
|
var r, _;
|
|
1422
|
-
if (
|
|
1422
|
+
if (G.value)
|
|
1423
1423
|
c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex();
|
|
1424
1424
|
else {
|
|
1425
|
-
const
|
|
1426
|
-
(
|
|
1425
|
+
const E = I.value.findIndex(
|
|
1426
|
+
(O) => O[n.itemValue] === s.value
|
|
1427
1427
|
);
|
|
1428
|
-
|
|
1428
|
+
E === -1 ? c.value = (r = $.value) == null ? void 0 : r.getFirstFocusableItemIndex() : c.value = E;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function F() {
|
|
1432
1432
|
var r;
|
|
1433
1433
|
c.value = (r = $.value) == null ? void 0 : r.getLastFocusableItemIndex();
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var
|
|
1437
|
-
c.value = (
|
|
1435
|
+
function oe(r, _) {
|
|
1436
|
+
var E;
|
|
1437
|
+
c.value = (E = $.value) == null ? void 0 : E.getAdjacentItemIndex(r, _);
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var
|
|
1441
|
-
const _ = ((
|
|
1442
|
-
if (_ ||
|
|
1439
|
+
function U(r) {
|
|
1440
|
+
var ue, Te, Ee, De;
|
|
1441
|
+
const _ = ((ue = x == null ? void 0 : x.value) == null ? void 0 : ue.$el) === r.relatedTarget, E = (Ee = (Te = v == null ? void 0 : v.value) == null ? void 0 : Te.$el) == null ? void 0 : Ee.contains(r.relatedTarget), O = (De = z == null ? void 0 : z.value) == null ? void 0 : De.contains(r.relatedTarget);
|
|
1442
|
+
if (_ || O || E) {
|
|
1443
1443
|
r.preventDefault(), r.stopPropagation();
|
|
1444
1444
|
return;
|
|
1445
1445
|
}
|
|
1446
|
-
|
|
1446
|
+
A(), T.value && !a.value && (s.value = n.emptyValue), P();
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function le() {
|
|
1449
1449
|
var r, _;
|
|
1450
1450
|
(_ = (r = v.value) == null ? void 0 : r.inputRef) == null || _.focus();
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
|
|
1452
|
+
function _e() {
|
|
1453
|
+
le();
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function b() {
|
|
1456
1456
|
l("show");
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function de() {
|
|
1459
1459
|
l("hide");
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var
|
|
1463
|
-
const _ = (
|
|
1461
|
+
function N(r) {
|
|
1462
|
+
var E;
|
|
1463
|
+
const _ = (E = $.value) == null ? void 0 : E.getItem(r);
|
|
1464
1464
|
$.value && ($.value.$el.scrollTop = _ == null ? void 0 : _.offsetTop);
|
|
1465
1465
|
}
|
|
1466
|
-
return
|
|
1466
|
+
return R(s, P), R(
|
|
1467
1467
|
() => n.items,
|
|
1468
1468
|
(r, _) => {
|
|
1469
|
-
if (!
|
|
1470
|
-
const
|
|
1471
|
-
a.value === (
|
|
1469
|
+
if (!G.value) {
|
|
1470
|
+
const E = _.find((O) => O[n.itemValue] === s.value);
|
|
1471
|
+
a.value === (E == null ? void 0 : E[n.itemLabel]) && P();
|
|
1472
1472
|
}
|
|
1473
1473
|
},
|
|
1474
1474
|
{ deep: !0 }
|
|
1475
|
-
),
|
|
1476
|
-
r !== void 0 &&
|
|
1477
|
-
}),
|
|
1478
|
-
r && i.value && n.selectionMode === "automatic" &&
|
|
1479
|
-
}),
|
|
1475
|
+
), R(c, (r) => {
|
|
1476
|
+
r !== void 0 && N(r);
|
|
1477
|
+
}), R(a, (r) => {
|
|
1478
|
+
r && i.value && n.selectionMode === "automatic" && X(p);
|
|
1479
|
+
}), R(
|
|
1480
1480
|
() => n.loading,
|
|
1481
1481
|
(r) => {
|
|
1482
|
-
!r && i.value &&
|
|
1482
|
+
!r && i.value && X(p);
|
|
1483
1483
|
}
|
|
1484
1484
|
), o({
|
|
1485
1485
|
triggerEl: v
|
|
1486
1486
|
}), (r, _) => {
|
|
1487
|
-
var
|
|
1488
|
-
return u(), m(
|
|
1489
|
-
|
|
1487
|
+
var E;
|
|
1488
|
+
return u(), m(se, null, [
|
|
1489
|
+
Q(y(nt), {
|
|
1490
1490
|
modelValue: a.value,
|
|
1491
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
1491
|
+
"onUpdate:modelValue": _[0] || (_[0] = (O) => a.value = O),
|
|
1492
1492
|
id: n.id,
|
|
1493
1493
|
label: n.label,
|
|
1494
1494
|
required: n.required,
|
|
@@ -1496,7 +1496,7 @@ const Ht = ["data-key"], Kt = {
|
|
|
1496
1496
|
ref: v,
|
|
1497
1497
|
role: "combobox",
|
|
1498
1498
|
placeholder: n.placeholder,
|
|
1499
|
-
class:
|
|
1499
|
+
class: C([
|
|
1500
1500
|
"q-combobox",
|
|
1501
1501
|
{
|
|
1502
1502
|
"q-combobox--readonly": n.readonly,
|
|
@@ -1512,12 +1512,12 @@ const Ht = ["data-key"], Kt = {
|
|
|
1512
1512
|
"aria-expanded": i.value,
|
|
1513
1513
|
"aria-haspopup": "listbox",
|
|
1514
1514
|
"aria-autocomplete": "list",
|
|
1515
|
-
"aria-activedescendant":
|
|
1515
|
+
"aria-activedescendant": H.value,
|
|
1516
1516
|
size: n.size,
|
|
1517
1517
|
onClick: g,
|
|
1518
|
-
onFocusout:
|
|
1519
|
-
onKeydown:
|
|
1520
|
-
},
|
|
1518
|
+
onFocusout: U,
|
|
1519
|
+
onKeydown: ce(d, ["stop"])
|
|
1520
|
+
}, $e({
|
|
1521
1521
|
"label.prepend": w(() => [
|
|
1522
1522
|
h(r.$slots, "label.prepend")
|
|
1523
1523
|
]),
|
|
@@ -1526,7 +1526,7 @@ const Ht = ["data-key"], Kt = {
|
|
|
1526
1526
|
]),
|
|
1527
1527
|
append: w(() => [
|
|
1528
1528
|
h(r.$slots, "append"),
|
|
1529
|
-
|
|
1529
|
+
T.value && a.value ? (u(), D(y(pe), {
|
|
1530
1530
|
key: 0,
|
|
1531
1531
|
class: "q-combobox__clear",
|
|
1532
1532
|
"b-style": "plain",
|
|
@@ -1535,11 +1535,11 @@ const Ht = ["data-key"], Kt = {
|
|
|
1535
1535
|
onClick: f
|
|
1536
1536
|
}, {
|
|
1537
1537
|
default: w(() => [
|
|
1538
|
-
|
|
1538
|
+
Q(y(Y), ae(re(n.icons.clear)), null, 16)
|
|
1539
1539
|
]),
|
|
1540
1540
|
_: 1
|
|
1541
1541
|
})) : q("", !0),
|
|
1542
|
-
n.readonly ? q("", !0) : (u(),
|
|
1542
|
+
n.readonly ? q("", !0) : (u(), D(y(pe), {
|
|
1543
1543
|
key: 1,
|
|
1544
1544
|
ref_key: "toggleRef",
|
|
1545
1545
|
ref: x,
|
|
@@ -1548,10 +1548,10 @@ const Ht = ["data-key"], Kt = {
|
|
|
1548
1548
|
borderless: "",
|
|
1549
1549
|
tabindex: "-1",
|
|
1550
1550
|
disabled: n.disabled,
|
|
1551
|
-
onMousedown:
|
|
1551
|
+
onMousedown: ce(W, ["stop", "prevent"])
|
|
1552
1552
|
}, {
|
|
1553
1553
|
default: w(() => [
|
|
1554
|
-
|
|
1554
|
+
Q(y(Y), ae(re(n.icons.chevron)), null, 16)
|
|
1555
1555
|
]),
|
|
1556
1556
|
_: 1
|
|
1557
1557
|
}, 8, ["disabled"]))
|
|
@@ -1573,57 +1573,57 @@ const Ht = ["data-key"], Kt = {
|
|
|
1573
1573
|
key: "1"
|
|
1574
1574
|
} : void 0
|
|
1575
1575
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1576
|
-
|
|
1576
|
+
Q(y(ge), {
|
|
1577
1577
|
modelValue: i.value,
|
|
1578
|
-
"onUpdate:modelValue": _[2] || (_[2] = (
|
|
1578
|
+
"onUpdate:modelValue": _[2] || (_[2] = (O) => i.value = O),
|
|
1579
1579
|
spy: "",
|
|
1580
1580
|
"non-modal": "",
|
|
1581
1581
|
trigger: "manual",
|
|
1582
1582
|
placement: "bottom-start",
|
|
1583
1583
|
width: "anchor",
|
|
1584
1584
|
offset: 4,
|
|
1585
|
-
anchor: (
|
|
1586
|
-
onEnter:
|
|
1587
|
-
onLeave:
|
|
1585
|
+
anchor: (E = v.value) == null ? void 0 : E.$el,
|
|
1586
|
+
onEnter: b,
|
|
1587
|
+
onLeave: de
|
|
1588
1588
|
}, {
|
|
1589
1589
|
default: w(() => {
|
|
1590
|
-
var
|
|
1590
|
+
var O;
|
|
1591
1591
|
return [
|
|
1592
|
-
|
|
1592
|
+
K("div", {
|
|
1593
1593
|
ref_key: "contentRef",
|
|
1594
|
-
ref:
|
|
1594
|
+
ref: z,
|
|
1595
1595
|
class: "q-select__body",
|
|
1596
1596
|
"data-testid": "combobox-dropdown",
|
|
1597
1597
|
"data-key": n.id,
|
|
1598
|
-
onFocusout:
|
|
1598
|
+
onFocusout: U
|
|
1599
1599
|
}, [
|
|
1600
1600
|
h(r.$slots, "body.prepend"),
|
|
1601
|
-
n.loading ? (u(), m("div",
|
|
1602
|
-
|
|
1603
|
-
])) : I.value.length ? (u(),
|
|
1601
|
+
n.loading ? (u(), m("div", ro, [
|
|
1602
|
+
Q(y(qe), { size: 24 })
|
|
1603
|
+
])) : I.value.length ? (u(), D(y(Ce), {
|
|
1604
1604
|
key: 1,
|
|
1605
1605
|
ref_key: "listRef",
|
|
1606
1606
|
ref: $,
|
|
1607
1607
|
class: "q-select__items",
|
|
1608
1608
|
modelValue: s.value,
|
|
1609
1609
|
"onUpdate:modelValue": [
|
|
1610
|
-
_[1] || (_[1] = (
|
|
1611
|
-
|
|
1610
|
+
_[1] || (_[1] = (ue) => s.value = ue),
|
|
1611
|
+
ee
|
|
1612
1612
|
],
|
|
1613
|
-
highlighted: (
|
|
1613
|
+
highlighted: (O = J.value) == null ? void 0 : O[n.itemValue],
|
|
1614
1614
|
items: I.value,
|
|
1615
1615
|
groups: r.groups,
|
|
1616
1616
|
"item-label": n.itemLabel,
|
|
1617
1617
|
"item-value": n.itemValue,
|
|
1618
|
-
onMouseup:
|
|
1618
|
+
onMouseup: _e
|
|
1619
1619
|
}, {
|
|
1620
|
-
item: w(({ item:
|
|
1621
|
-
h(r.$slots, "item", { item:
|
|
1620
|
+
item: w(({ item: ue }) => [
|
|
1621
|
+
h(r.$slots, "item", { item: ue })
|
|
1622
1622
|
]),
|
|
1623
1623
|
_: 3
|
|
1624
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div",
|
|
1624
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", uo, j(r.texts.noData), 1)),
|
|
1625
1625
|
h(r.$slots, "body.append")
|
|
1626
|
-
], 40,
|
|
1626
|
+
], 40, io)
|
|
1627
1627
|
];
|
|
1628
1628
|
}),
|
|
1629
1629
|
_: 3
|
|
@@ -1631,13 +1631,13 @@ const Ht = ["data-key"], Kt = {
|
|
|
1631
1631
|
], 64);
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
|
-
}),
|
|
1634
|
+
}), mo = S(po), vo = {
|
|
1635
1635
|
key: 0,
|
|
1636
1636
|
class: "q-input-group__prepend"
|
|
1637
|
-
},
|
|
1637
|
+
}, ho = { key: 0 }, yo = {
|
|
1638
1638
|
key: 1,
|
|
1639
1639
|
class: "q-input-group__append"
|
|
1640
|
-
},
|
|
1640
|
+
}, bo = { key: 0 }, go = /* @__PURE__ */ L({
|
|
1641
1641
|
__name: "QInputGroup",
|
|
1642
1642
|
props: {
|
|
1643
1643
|
id: { default: void 0 },
|
|
@@ -1650,28 +1650,28 @@ const Ht = ["data-key"], Kt = {
|
|
|
1650
1650
|
},
|
|
1651
1651
|
setup(t) {
|
|
1652
1652
|
const o = t;
|
|
1653
|
-
return
|
|
1653
|
+
return We({
|
|
1654
1654
|
QField: {
|
|
1655
1655
|
size: "block"
|
|
1656
1656
|
}
|
|
1657
|
-
}), (e, n) => (u(),
|
|
1657
|
+
}), (e, n) => (u(), D(y(Ie), {
|
|
1658
1658
|
id: o.id,
|
|
1659
|
-
class:
|
|
1659
|
+
class: C(["q-input-group", o.class]),
|
|
1660
1660
|
label: o.label,
|
|
1661
1661
|
required: o.required,
|
|
1662
1662
|
size: o.size
|
|
1663
|
-
},
|
|
1663
|
+
}, $e({
|
|
1664
1664
|
default: w(() => [
|
|
1665
|
-
e.$slots.prepend || o.prependIcon ? (u(), m("div",
|
|
1666
|
-
o.prependIcon ? (u(), m("span",
|
|
1667
|
-
|
|
1665
|
+
e.$slots.prepend || o.prependIcon ? (u(), m("div", vo, [
|
|
1666
|
+
o.prependIcon ? (u(), m("span", ho, [
|
|
1667
|
+
Q(y(Y), ae(re(o.prependIcon)), null, 16)
|
|
1668
1668
|
])) : q("", !0),
|
|
1669
1669
|
h(e.$slots, "prepend")
|
|
1670
1670
|
])) : q("", !0),
|
|
1671
1671
|
h(e.$slots, "default"),
|
|
1672
|
-
e.$slots.append || o.appendIcon ? (u(), m("div",
|
|
1673
|
-
o.appendIcon ? (u(), m("span",
|
|
1674
|
-
|
|
1672
|
+
e.$slots.append || o.appendIcon ? (u(), m("div", yo, [
|
|
1673
|
+
o.appendIcon ? (u(), m("span", bo, [
|
|
1674
|
+
Q(y(Y), ae(re(o.appendIcon)), null, 16)
|
|
1675
1675
|
])) : q("", !0),
|
|
1676
1676
|
h(e.$slots, "append")
|
|
1677
1677
|
])) : q("", !0)
|
|
@@ -1687,7 +1687,7 @@ const Ht = ["data-key"], Kt = {
|
|
|
1687
1687
|
} : void 0
|
|
1688
1688
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
1689
1689
|
}
|
|
1690
|
-
}),
|
|
1690
|
+
}), _o = S(go), ko = /* @__PURE__ */ L({
|
|
1691
1691
|
__name: "QLineLoader",
|
|
1692
1692
|
props: {
|
|
1693
1693
|
class: { default: void 0 }
|
|
@@ -1695,19 +1695,19 @@ const Ht = ["data-key"], Kt = {
|
|
|
1695
1695
|
setup(t) {
|
|
1696
1696
|
const o = t;
|
|
1697
1697
|
return (e, n) => (u(), m("div", {
|
|
1698
|
-
class:
|
|
1698
|
+
class: C(["q-line-loader", o.class])
|
|
1699
1699
|
}, null, 2));
|
|
1700
1700
|
}
|
|
1701
|
-
}),
|
|
1701
|
+
}), wo = S(ko), $o = {
|
|
1702
1702
|
key: 0,
|
|
1703
1703
|
class: "q-popover__header"
|
|
1704
|
-
},
|
|
1704
|
+
}, qo = {
|
|
1705
1705
|
key: 1,
|
|
1706
1706
|
class: "q-popover__body"
|
|
1707
|
-
},
|
|
1707
|
+
}, Io = ["innerHTML"], xo = { key: 1 }, Lo = /* @__PURE__ */ L({
|
|
1708
1708
|
inheritAttrs: !1,
|
|
1709
1709
|
__name: "QPopover",
|
|
1710
|
-
props: /* @__PURE__ */
|
|
1710
|
+
props: /* @__PURE__ */ Z({
|
|
1711
1711
|
anchor: {},
|
|
1712
1712
|
arrow: { type: Boolean, default: !0 },
|
|
1713
1713
|
attach: { default: "body" },
|
|
@@ -1723,8 +1723,8 @@ const Ht = ["data-key"], Kt = {
|
|
|
1723
1723
|
}),
|
|
1724
1724
|
emits: ["update:modelValue"],
|
|
1725
1725
|
setup(t) {
|
|
1726
|
-
const o = t, e =
|
|
1727
|
-
return (n, l) => (u(),
|
|
1726
|
+
const o = t, e = ne(t, "modelValue");
|
|
1727
|
+
return (n, l) => (u(), D(y(ge), {
|
|
1728
1728
|
"model-value": e.value,
|
|
1729
1729
|
class: "q-popover",
|
|
1730
1730
|
trigger: "click",
|
|
@@ -1736,42 +1736,42 @@ const Ht = ["data-key"], Kt = {
|
|
|
1736
1736
|
placement: o.placement
|
|
1737
1737
|
}, {
|
|
1738
1738
|
default: w(() => [
|
|
1739
|
-
o.title || n.$slots.header ? (u(), m("h3",
|
|
1740
|
-
|
|
1739
|
+
o.title || n.$slots.header ? (u(), m("h3", $o, [
|
|
1740
|
+
ve(j(o.title) + " ", 1),
|
|
1741
1741
|
h(n.$slots, "header")
|
|
1742
1742
|
])) : q("", !0),
|
|
1743
|
-
o.text || n.$slots.body ? (u(), m("div",
|
|
1743
|
+
o.text || n.$slots.body ? (u(), m("div", qo, [
|
|
1744
1744
|
o.html ? (u(), m("span", {
|
|
1745
1745
|
key: 0,
|
|
1746
1746
|
innerHTML: o.text
|
|
1747
|
-
}, null, 8,
|
|
1747
|
+
}, null, 8, Io)) : (u(), m("span", xo, j(o.text), 1)),
|
|
1748
1748
|
h(n.$slots, "body")
|
|
1749
1749
|
])) : q("", !0)
|
|
1750
1750
|
]),
|
|
1751
1751
|
_: 3
|
|
1752
1752
|
}, 8, ["model-value", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
1753
1753
|
}
|
|
1754
|
-
}),
|
|
1754
|
+
}), So = S(Lo), Bo = {
|
|
1755
1755
|
key: 0,
|
|
1756
1756
|
class: "q-select__value"
|
|
1757
|
-
},
|
|
1757
|
+
}, Vo = {
|
|
1758
1758
|
key: 1,
|
|
1759
1759
|
class: "q-select__placeholder"
|
|
1760
|
-
},
|
|
1760
|
+
}, Co = ["data-key"], To = {
|
|
1761
1761
|
key: 0,
|
|
1762
1762
|
class: "q-select__loader"
|
|
1763
|
-
},
|
|
1763
|
+
}, Eo = {
|
|
1764
1764
|
placeholder: "Choose..."
|
|
1765
|
-
},
|
|
1765
|
+
}, Do = {
|
|
1766
1766
|
chevron: {
|
|
1767
1767
|
icon: "chevron-down"
|
|
1768
1768
|
},
|
|
1769
1769
|
clear: {
|
|
1770
1770
|
icon: "close"
|
|
1771
1771
|
}
|
|
1772
|
-
},
|
|
1772
|
+
}, Ao = /* @__PURE__ */ L({
|
|
1773
1773
|
__name: "QSelect",
|
|
1774
|
-
props: /* @__PURE__ */
|
|
1774
|
+
props: /* @__PURE__ */ Z({
|
|
1775
1775
|
id: { default: void 0 },
|
|
1776
1776
|
label: { default: "" },
|
|
1777
1777
|
clearable: { type: Boolean },
|
|
@@ -1779,14 +1779,14 @@ const Ht = ["data-key"], Kt = {
|
|
|
1779
1779
|
disabled: { type: Boolean },
|
|
1780
1780
|
required: { type: Boolean },
|
|
1781
1781
|
loading: { type: Boolean },
|
|
1782
|
-
icons: { default: () =>
|
|
1782
|
+
icons: { default: () => Do },
|
|
1783
1783
|
items: {},
|
|
1784
1784
|
groups: { default: () => [] },
|
|
1785
1785
|
itemValue: { default: "key" },
|
|
1786
1786
|
itemLabel: { default: "label" },
|
|
1787
1787
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1788
1788
|
size: { default: void 0 },
|
|
1789
|
-
texts: { default: () =>
|
|
1789
|
+
texts: { default: () => Eo },
|
|
1790
1790
|
class: { default: "" }
|
|
1791
1791
|
}, {
|
|
1792
1792
|
modelValue: {
|
|
@@ -1794,41 +1794,41 @@ const Ht = ["data-key"], Kt = {
|
|
|
1794
1794
|
},
|
|
1795
1795
|
modelModifiers: {}
|
|
1796
1796
|
}),
|
|
1797
|
-
emits: /* @__PURE__ */
|
|
1797
|
+
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
1798
1798
|
setup(t, { emit: o }) {
|
|
1799
|
-
const e = t, n = o, l =
|
|
1799
|
+
const e = t, n = o, l = ne(t, "modelValue"), s = V(!1), i = V(""), a = V(null), c = V(null), v = V(null), $ = k(() => x.value === void 0), x = k(
|
|
1800
1800
|
() => {
|
|
1801
1801
|
var d;
|
|
1802
1802
|
return (d = e.items) == null ? void 0 : d.find((p) => p[e.itemValue] === l.value);
|
|
1803
1803
|
}
|
|
1804
|
-
),
|
|
1804
|
+
), z = k(
|
|
1805
1805
|
() => x.value ? x.value[e.itemLabel] : ""
|
|
1806
|
-
),
|
|
1806
|
+
), T = k(
|
|
1807
1807
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1808
1808
|
);
|
|
1809
1809
|
function I(d) {
|
|
1810
|
-
l.value = d,
|
|
1810
|
+
l.value = d, H();
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1813
|
-
|
|
1812
|
+
function B() {
|
|
1813
|
+
T.value && I(e.emptyValue);
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
var p,
|
|
1817
|
-
!((p = v.value) != null && p.contains(d.relatedTarget)) && !((
|
|
1815
|
+
function G(d) {
|
|
1816
|
+
var p, F, oe;
|
|
1817
|
+
!((p = v.value) != null && p.contains(d.relatedTarget)) && !((oe = (F = a.value) == null ? void 0 : F.fieldRef) != null && oe.contains(d.relatedTarget)) && H();
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function J() {
|
|
1820
1820
|
s.value || (n("before-show"), s.value = !0);
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function H() {
|
|
1823
1823
|
s.value && (n("before-hide"), s.value = !1);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1826
|
-
e.readonly || e.disabled || (s.value ?
|
|
1825
|
+
function M() {
|
|
1826
|
+
e.readonly || e.disabled || (s.value ? H() : J());
|
|
1827
1827
|
}
|
|
1828
|
-
let
|
|
1829
|
-
function
|
|
1828
|
+
let ee;
|
|
1829
|
+
function P(d) {
|
|
1830
1830
|
if (!(!d.key || e.readonly || e.disabled)) {
|
|
1831
|
-
if (window.clearTimeout(
|
|
1831
|
+
if (window.clearTimeout(ee), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : T.value && d.key === "Escape" && B()), d.key === "Delete" && e.clearable && B(), /^[a-z]$/i.test(d.key)) {
|
|
1832
1832
|
i.value += d.key.toLowerCase();
|
|
1833
1833
|
for (let p = 0; p < e.items.length; p++)
|
|
1834
1834
|
if (e.items[p][e.itemLabel].toLowerCase().startsWith(i.value)) {
|
|
@@ -1836,19 +1836,19 @@ const Ht = ["data-key"], Kt = {
|
|
|
1836
1836
|
break;
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
|
-
|
|
1839
|
+
ee = window.setTimeout(function() {
|
|
1840
1840
|
i.value = "";
|
|
1841
1841
|
}, 500);
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1844
|
+
function te() {
|
|
1845
1845
|
var d;
|
|
1846
1846
|
e.loading ? (d = v.value) == null || d.focus() : f(), n("show");
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1849
|
-
|
|
1848
|
+
function A() {
|
|
1849
|
+
W(), n("hide");
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1851
|
+
function W() {
|
|
1852
1852
|
var d, p;
|
|
1853
1853
|
(p = (d = a.value) == null ? void 0 : d.fieldRef) == null || p.focus();
|
|
1854
1854
|
}
|
|
@@ -1860,15 +1860,15 @@ const Ht = ["data-key"], Kt = {
|
|
|
1860
1860
|
var p;
|
|
1861
1861
|
(p = c.value) == null || p.focusItem(d);
|
|
1862
1862
|
}
|
|
1863
|
-
return
|
|
1863
|
+
return R(
|
|
1864
1864
|
() => e.loading,
|
|
1865
1865
|
(d) => {
|
|
1866
|
-
!d && s.value &&
|
|
1866
|
+
!d && s.value && X(f);
|
|
1867
1867
|
}
|
|
1868
1868
|
), (d, p) => {
|
|
1869
|
-
var
|
|
1870
|
-
return u(), m(
|
|
1871
|
-
|
|
1869
|
+
var F, oe;
|
|
1870
|
+
return u(), m(se, null, [
|
|
1871
|
+
Q(y(Ie), {
|
|
1872
1872
|
id: e.id,
|
|
1873
1873
|
label: e.label,
|
|
1874
1874
|
required: e.required,
|
|
@@ -1876,7 +1876,7 @@ const Ht = ["data-key"], Kt = {
|
|
|
1876
1876
|
ref: a,
|
|
1877
1877
|
role: "combobox",
|
|
1878
1878
|
tabindex: e.disabled ? -1 : 0,
|
|
1879
|
-
class:
|
|
1879
|
+
class: C([
|
|
1880
1880
|
"q-select",
|
|
1881
1881
|
{
|
|
1882
1882
|
"q-select--readonly": e.readonly,
|
|
@@ -1891,55 +1891,55 @@ const Ht = ["data-key"], Kt = {
|
|
|
1891
1891
|
"aria-expanded": s.value,
|
|
1892
1892
|
"aria-haspopup": "listbox",
|
|
1893
1893
|
size: e.size,
|
|
1894
|
-
onClick:
|
|
1895
|
-
onKeydown:
|
|
1896
|
-
},
|
|
1894
|
+
onClick: M,
|
|
1895
|
+
onKeydown: ce(P, ["stop"])
|
|
1896
|
+
}, $e({
|
|
1897
1897
|
append: w(() => [
|
|
1898
1898
|
h(d.$slots, "append"),
|
|
1899
|
-
|
|
1899
|
+
T.value && l.value ? (u(), D(y(pe), {
|
|
1900
1900
|
key: 0,
|
|
1901
1901
|
class: "q-select__clear",
|
|
1902
1902
|
"b-style": "plain",
|
|
1903
1903
|
borderless: "",
|
|
1904
1904
|
tabindex: "-1",
|
|
1905
|
-
onClick:
|
|
1905
|
+
onClick: B
|
|
1906
1906
|
}, {
|
|
1907
1907
|
default: w(() => [
|
|
1908
|
-
|
|
1908
|
+
Q(y(Y), ae(re(e.icons.clear)), null, 16)
|
|
1909
1909
|
]),
|
|
1910
1910
|
_: 1
|
|
1911
1911
|
})) : q("", !0),
|
|
1912
|
-
e.readonly ? q("", !0) : (u(),
|
|
1912
|
+
e.readonly ? q("", !0) : (u(), D(y(pe), {
|
|
1913
1913
|
key: 1,
|
|
1914
1914
|
class: "q-select__chevron",
|
|
1915
1915
|
"b-style": "plain",
|
|
1916
1916
|
borderless: "",
|
|
1917
1917
|
tabindex: "-1",
|
|
1918
1918
|
disabled: e.disabled,
|
|
1919
|
-
onClick:
|
|
1919
|
+
onClick: M
|
|
1920
1920
|
}, {
|
|
1921
1921
|
default: w(() => [
|
|
1922
|
-
|
|
1922
|
+
Q(y(Y), ae(re(e.icons.chevron)), null, 16)
|
|
1923
1923
|
]),
|
|
1924
1924
|
_: 1
|
|
1925
1925
|
}, 8, ["disabled"]))
|
|
1926
1926
|
]),
|
|
1927
1927
|
default: w(() => [
|
|
1928
|
-
$.value ? (u(), m("span",
|
|
1929
|
-
!e.readonly && !e.disabled ? (u(), m(
|
|
1930
|
-
|
|
1928
|
+
$.value ? (u(), m("span", Vo, [
|
|
1929
|
+
!e.readonly && !e.disabled ? (u(), m(se, { key: 0 }, [
|
|
1930
|
+
ve(j(d.texts.placeholder), 1)
|
|
1931
1931
|
], 64)) : q("", !0)
|
|
1932
|
-
])) : (u(), m("span",
|
|
1932
|
+
])) : (u(), m("span", Bo, j(z.value), 1))
|
|
1933
1933
|
]),
|
|
1934
1934
|
_: 2
|
|
1935
1935
|
}, [
|
|
1936
|
-
(
|
|
1936
|
+
(F = x.value) != null && F.icon || d.$slots.prepend ? {
|
|
1937
1937
|
name: "prepend",
|
|
1938
1938
|
fn: w(() => {
|
|
1939
|
-
var
|
|
1939
|
+
var U, le;
|
|
1940
1940
|
return [
|
|
1941
1941
|
h(d.$slots, "prepend"),
|
|
1942
|
-
(
|
|
1942
|
+
(U = x.value) != null && U.icon ? (u(), D(y(Y), ae(fe({ key: 0 }, (le = x.value) == null ? void 0 : le.icon)), null, 16)) : q("", !0)
|
|
1943
1943
|
];
|
|
1944
1944
|
}),
|
|
1945
1945
|
key: "0"
|
|
@@ -1952,41 +1952,41 @@ const Ht = ["data-key"], Kt = {
|
|
|
1952
1952
|
key: "1"
|
|
1953
1953
|
} : void 0
|
|
1954
1954
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
1955
|
-
|
|
1955
|
+
Q(y(ge), {
|
|
1956
1956
|
modelValue: s.value,
|
|
1957
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
1957
|
+
"onUpdate:modelValue": p[1] || (p[1] = (U) => s.value = U),
|
|
1958
1958
|
spy: "",
|
|
1959
1959
|
trigger: "manual",
|
|
1960
1960
|
placement: "bottom-start",
|
|
1961
1961
|
width: "anchor",
|
|
1962
1962
|
"scroll-lock": "",
|
|
1963
|
-
anchor: (
|
|
1963
|
+
anchor: (oe = a.value) == null ? void 0 : oe.$el,
|
|
1964
1964
|
offset: 2,
|
|
1965
|
-
onEnter:
|
|
1966
|
-
onLeave:
|
|
1965
|
+
onEnter: te,
|
|
1966
|
+
onLeave: A
|
|
1967
1967
|
}, {
|
|
1968
1968
|
default: w(() => [
|
|
1969
|
-
|
|
1969
|
+
K("div", {
|
|
1970
1970
|
ref_key: "contentRef",
|
|
1971
1971
|
ref: v,
|
|
1972
1972
|
"data-testid": "combobox-dropdown",
|
|
1973
1973
|
"data-key": e.id,
|
|
1974
1974
|
class: "q-select__body",
|
|
1975
1975
|
tabindex: "-1",
|
|
1976
|
-
onFocusout:
|
|
1977
|
-
onKeydown:
|
|
1976
|
+
onFocusout: G,
|
|
1977
|
+
onKeydown: ce(P, ["stop"])
|
|
1978
1978
|
}, [
|
|
1979
1979
|
h(d.$slots, "body.prepend"),
|
|
1980
|
-
e.loading ? (u(), m("div",
|
|
1981
|
-
|
|
1982
|
-
])) : (u(),
|
|
1980
|
+
e.loading ? (u(), m("div", To, [
|
|
1981
|
+
Q(y(qe), { size: 24 })
|
|
1982
|
+
])) : (u(), D(y(Ce), {
|
|
1983
1983
|
key: 1,
|
|
1984
1984
|
ref_key: "listRef",
|
|
1985
1985
|
ref: c,
|
|
1986
1986
|
class: "q-select__items",
|
|
1987
1987
|
modelValue: l.value,
|
|
1988
1988
|
"onUpdate:modelValue": [
|
|
1989
|
-
p[0] || (p[0] = (
|
|
1989
|
+
p[0] || (p[0] = (U) => l.value = U),
|
|
1990
1990
|
I
|
|
1991
1991
|
],
|
|
1992
1992
|
items: e.items,
|
|
@@ -1994,22 +1994,22 @@ const Ht = ["data-key"], Kt = {
|
|
|
1994
1994
|
"item-label": e.itemLabel,
|
|
1995
1995
|
"item-value": e.itemValue
|
|
1996
1996
|
}, {
|
|
1997
|
-
item: w(({ item:
|
|
1998
|
-
h(d.$slots, "item", { item:
|
|
1997
|
+
item: w(({ item: U }) => [
|
|
1998
|
+
h(d.$slots, "item", { item: U })
|
|
1999
1999
|
]),
|
|
2000
2000
|
_: 3
|
|
2001
2001
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
2002
2002
|
h(d.$slots, "body.append")
|
|
2003
|
-
], 40,
|
|
2003
|
+
], 40, Co)
|
|
2004
2004
|
]),
|
|
2005
2005
|
_: 3
|
|
2006
2006
|
}, 8, ["modelValue", "anchor"])
|
|
2007
2007
|
], 64);
|
|
2008
2008
|
};
|
|
2009
2009
|
}
|
|
2010
|
-
}),
|
|
2011
|
-
|
|
2012
|
-
],
|
|
2010
|
+
}), zo = S(Ao), Qo = /* @__PURE__ */ K("div", { class: "q-skeleton-loader__bone" }, null, -1), Mo = [
|
|
2011
|
+
Qo
|
|
2012
|
+
], Fo = /* @__PURE__ */ L({
|
|
2013
2013
|
__name: "QSkeletonLoader",
|
|
2014
2014
|
props: {
|
|
2015
2015
|
type: { default: void 0 },
|
|
@@ -2025,11 +2025,11 @@ const Ht = ["data-key"], Kt = {
|
|
|
2025
2025
|
};
|
|
2026
2026
|
});
|
|
2027
2027
|
return (l, s) => (u(), m("div", {
|
|
2028
|
-
class:
|
|
2028
|
+
class: C(["q-skeleton-loader", e.value]),
|
|
2029
2029
|
style: ie(n.value)
|
|
2030
|
-
},
|
|
2030
|
+
}, Mo, 6));
|
|
2031
2031
|
}
|
|
2032
|
-
}),
|
|
2032
|
+
}), Oo = S(Fo), Po = /* @__PURE__ */ L({
|
|
2033
2033
|
__name: "QThemeProvider",
|
|
2034
2034
|
props: {
|
|
2035
2035
|
theme: {}
|
|
@@ -2037,14 +2037,14 @@ const Ht = ["data-key"], Kt = {
|
|
|
2037
2037
|
setup(t) {
|
|
2038
2038
|
const o = t;
|
|
2039
2039
|
return (e, n) => (u(), m("div", {
|
|
2040
|
-
class:
|
|
2040
|
+
class: C(["q-theme-provider", `q-theme--${o.theme}`])
|
|
2041
2041
|
}, [
|
|
2042
2042
|
h(e.$slots, "default")
|
|
2043
2043
|
], 2));
|
|
2044
2044
|
}
|
|
2045
|
-
}),
|
|
2045
|
+
}), Uo = S(Po), No = ["innerHTML"], Ho = { key: 1 }, Ko = /* @__PURE__ */ L({
|
|
2046
2046
|
__name: "QTooltip",
|
|
2047
|
-
props: /* @__PURE__ */
|
|
2047
|
+
props: /* @__PURE__ */ Z({
|
|
2048
2048
|
id: { default: void 0 },
|
|
2049
2049
|
anchor: {},
|
|
2050
2050
|
appearance: { default: "inverted" },
|
|
@@ -2064,22 +2064,22 @@ const Ht = ["data-key"], Kt = {
|
|
|
2064
2064
|
}),
|
|
2065
2065
|
emits: ["update:modelValue"],
|
|
2066
2066
|
setup(t) {
|
|
2067
|
-
const o = t, e =
|
|
2068
|
-
return (l, s) => (u(), m(
|
|
2067
|
+
const o = t, e = ne(t, "modelValue"), n = ye(o.id);
|
|
2068
|
+
return (l, s) => (u(), m(se, null, [
|
|
2069
2069
|
h(l.$slots, "anchor", {
|
|
2070
|
-
props: { "aria-describedby":
|
|
2070
|
+
props: { "aria-describedby": y(n) }
|
|
2071
2071
|
}),
|
|
2072
|
-
|
|
2072
|
+
Q(y(ge), {
|
|
2073
2073
|
"model-value": e.value,
|
|
2074
2074
|
anchor: o.anchor,
|
|
2075
2075
|
role: "tooltip",
|
|
2076
2076
|
"non-modal": "",
|
|
2077
|
-
id:
|
|
2077
|
+
id: y(n),
|
|
2078
2078
|
appearance: o.appearance,
|
|
2079
2079
|
arrow: o.arrow,
|
|
2080
2080
|
attach: o.attach,
|
|
2081
2081
|
inline: o.inline,
|
|
2082
|
-
class:
|
|
2082
|
+
class: C(["q-tooltip", o.class]),
|
|
2083
2083
|
delay: o.delay,
|
|
2084
2084
|
disabled: o.disabled,
|
|
2085
2085
|
placement: o.placement,
|
|
@@ -2089,67 +2089,67 @@ const Ht = ["data-key"], Kt = {
|
|
|
2089
2089
|
o.html ? (u(), m("span", {
|
|
2090
2090
|
key: 0,
|
|
2091
2091
|
innerHTML: o.text
|
|
2092
|
-
}, null, 8,
|
|
2092
|
+
}, null, 8, No)) : (u(), m("span", Ho, j(o.text), 1))
|
|
2093
2093
|
]),
|
|
2094
2094
|
_: 1
|
|
2095
2095
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2096
2096
|
], 64));
|
|
2097
2097
|
}
|
|
2098
|
-
}),
|
|
2098
|
+
}), jo = S(Ko), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2099
2099
|
__proto__: null,
|
|
2100
2100
|
QButton: pe,
|
|
2101
|
-
QButtonGroup:
|
|
2102
|
-
QButtonToggle:
|
|
2103
|
-
QCombobox:
|
|
2104
|
-
QField:
|
|
2105
|
-
QIcon:
|
|
2106
|
-
QIconFont:
|
|
2107
|
-
QIconImg:
|
|
2108
|
-
QIconSvg:
|
|
2109
|
-
QInputGroup:
|
|
2110
|
-
QLineLoader:
|
|
2111
|
-
QList:
|
|
2112
|
-
QListItem:
|
|
2113
|
-
QListItemGroup:
|
|
2114
|
-
QOverlay:
|
|
2115
|
-
QPopover:
|
|
2116
|
-
QSelect:
|
|
2117
|
-
QSkeletonLoader:
|
|
2118
|
-
QSpinnerLoader:
|
|
2119
|
-
QTextField:
|
|
2120
|
-
QThemeProvider:
|
|
2121
|
-
QTooltip:
|
|
2122
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2123
|
-
function
|
|
2124
|
-
const t =
|
|
2101
|
+
QButtonGroup: Ye,
|
|
2102
|
+
QButtonToggle: gt,
|
|
2103
|
+
QCombobox: mo,
|
|
2104
|
+
QField: Ie,
|
|
2105
|
+
QIcon: Y,
|
|
2106
|
+
QIconFont: Ze,
|
|
2107
|
+
QIconImg: Je,
|
|
2108
|
+
QIconSvg: et,
|
|
2109
|
+
QInputGroup: _o,
|
|
2110
|
+
QLineLoader: wo,
|
|
2111
|
+
QList: Ce,
|
|
2112
|
+
QListItem: tt,
|
|
2113
|
+
QListItemGroup: ot,
|
|
2114
|
+
QOverlay: ge,
|
|
2115
|
+
QPopover: So,
|
|
2116
|
+
QSelect: zo,
|
|
2117
|
+
QSkeletonLoader: Oo,
|
|
2118
|
+
QSpinnerLoader: qe,
|
|
2119
|
+
QTextField: nt,
|
|
2120
|
+
QThemeProvider: Uo,
|
|
2121
|
+
QTooltip: jo
|
|
2122
|
+
}, Symbol.toStringTag, { value: "Module" })), he = "q-theme";
|
|
2123
|
+
function Wo() {
|
|
2124
|
+
const t = He(he);
|
|
2125
2125
|
if (!t)
|
|
2126
2126
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2127
2127
|
return t;
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2130
|
-
const o =
|
|
2131
|
-
activeTheme:
|
|
2129
|
+
function ln(t) {
|
|
2130
|
+
const o = Wo(), e = {
|
|
2131
|
+
activeTheme: V(t),
|
|
2132
2132
|
themes: o.themes
|
|
2133
2133
|
};
|
|
2134
|
-
return
|
|
2134
|
+
return Ne(he, e), e;
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function Ro(t) {
|
|
2137
2137
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2140
|
-
if (!
|
|
2139
|
+
function Xo(t) {
|
|
2140
|
+
if (!Ro(t))
|
|
2141
2141
|
throw new Error("Invalid color format");
|
|
2142
2142
|
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
2143
2143
|
const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
|
|
2144
2144
|
return { r: o, g: e, b: n };
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Yo() {
|
|
2147
2147
|
let t = document.getElementById(
|
|
2148
|
-
|
|
2148
|
+
he
|
|
2149
2149
|
);
|
|
2150
|
-
return t || (t = document.createElement("style"), t.id =
|
|
2150
|
+
return t || (t = document.createElement("style"), t.id = he, document.head.appendChild(t)), t;
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2152
|
+
function Zo(t) {
|
|
2153
2153
|
let o = "";
|
|
2154
2154
|
for (const n of t) {
|
|
2155
2155
|
o += `.q-theme--${n.name} {
|
|
@@ -2159,43 +2159,43 @@ function Lo(t) {
|
|
|
2159
2159
|
for (s in l) {
|
|
2160
2160
|
const i = l[s];
|
|
2161
2161
|
if (i) {
|
|
2162
|
-
o += ` ${
|
|
2162
|
+
o += ` ${Pe(s)}: ${i};
|
|
2163
2163
|
`;
|
|
2164
|
-
const a =
|
|
2165
|
-
o += ` ${
|
|
2164
|
+
const a = Xo(i);
|
|
2165
|
+
o += ` ${Pe(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
2166
2166
|
`;
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
o += `}
|
|
2170
2170
|
`;
|
|
2171
2171
|
}
|
|
2172
|
-
const e =
|
|
2172
|
+
const e = Yo();
|
|
2173
2173
|
e.textContent = o;
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2176
|
-
return t ? `--q-theme-${
|
|
2175
|
+
function Pe(t) {
|
|
2176
|
+
return t ? `--q-theme-${Xe(t)}` : "";
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function Jo(t = {}) {
|
|
2179
2179
|
return { install: (e) => {
|
|
2180
2180
|
const n = t.components || {};
|
|
2181
2181
|
for (const s in n)
|
|
2182
2182
|
e.component(s, n[s]);
|
|
2183
2183
|
const l = t.defaults || {};
|
|
2184
|
-
e.provide(
|
|
2184
|
+
e.provide(Ve, V(l)), en(e, t.themes);
|
|
2185
2185
|
} };
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function en(t, o) {
|
|
2188
2188
|
const e = [];
|
|
2189
2189
|
let n;
|
|
2190
2190
|
if (!o)
|
|
2191
2191
|
n = "default", e.push({
|
|
2192
2192
|
name: n,
|
|
2193
2193
|
mode: "light",
|
|
2194
|
-
scheme:
|
|
2194
|
+
scheme: Le
|
|
2195
2195
|
});
|
|
2196
2196
|
else
|
|
2197
2197
|
for (const l of o.themes) {
|
|
2198
|
-
const i = { ...l.mode === "light" ?
|
|
2198
|
+
const i = { ...l.mode === "light" ? Le : Ge, ...l.colors };
|
|
2199
2199
|
e.push({
|
|
2200
2200
|
name: l.name,
|
|
2201
2201
|
mode: l.mode,
|
|
@@ -2204,21 +2204,21 @@ function Bo(t, o) {
|
|
|
2204
2204
|
}
|
|
2205
2205
|
if (n) {
|
|
2206
2206
|
const l = {
|
|
2207
|
-
activeTheme:
|
|
2207
|
+
activeTheme: V(n),
|
|
2208
2208
|
themes: e
|
|
2209
2209
|
};
|
|
2210
|
-
|
|
2210
|
+
Zo(e), R(l.activeTheme, tn, { immediate: !0 }), t.provide(he, l);
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function tn(t) {
|
|
2214
2214
|
const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
|
|
2215
2215
|
o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
|
|
2216
2216
|
}
|
|
2217
|
-
const
|
|
2217
|
+
const an = (t = {}) => Jo({ components: Go, ...t });
|
|
2218
2218
|
export {
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2219
|
+
Go as components,
|
|
2220
|
+
an as createFramework,
|
|
2221
|
+
ln as provideTheme,
|
|
2222
|
+
nn as templates,
|
|
2223
|
+
Wo as useTheme
|
|
2224
2224
|
};
|