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