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