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