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