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