@quidgest/ui 0.14.0 → 0.14.2
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/ui.css +4 -0
- package/dist/ui.esm.js +752 -739
- package/dist/ui.js +4 -4
- package/dist/ui.min.js +51 -51
- package/dist/ui.scss +1053 -1049
- package/esm/components/QBadge/QBadge.d.ts +14 -41
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +33 -33
- package/esm/components/QBadge/index.d.ts +0 -1
- package/esm/components/QBadge/types.d.ts +6 -7
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QButton/QButton.d.ts +12 -35
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/index.d.ts +0 -1
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +9 -26
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.d.ts +0 -1
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +17 -47
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +26 -23
- package/esm/components/QButtonToggle/index.d.ts +0 -1
- package/esm/components/QCombobox/QCombobox.d.ts +373 -485
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +92 -87
- package/esm/components/QCombobox/index.d.ts +0 -1
- package/esm/components/QCombobox/types.d.ts +9 -8
- package/esm/components/QCombobox/types.d.ts.map +1 -1
- package/esm/components/QCombobox/types.js +3 -1
- package/esm/components/QDialog/QDialog.d.ts +21 -109
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +16 -16
- package/esm/components/QDialog/index.d.ts +0 -1
- package/esm/components/QDialog/types.d.ts +6 -8
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QField/QField.d.ts +18 -41
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/index.d.ts +0 -1
- package/esm/components/QIcon/InlineSvg.d.ts +6 -6
- package/esm/components/QIcon/QIcon.d.ts +2 -28
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.d.ts +2 -30
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.d.ts +1 -11
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.d.ts +6 -32
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/index.d.ts +0 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts +12 -39
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.d.ts +0 -1
- package/esm/components/QInputGroup/types.d.ts +0 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts +2 -24
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.d.ts +0 -1
- package/esm/components/QList/QList.d.ts +22 -72
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QListItem.d.ts +14 -39
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +5 -5
- package/esm/components/QList/QListItemGroup.d.ts +9 -26
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QList/index.d.ts +0 -1
- package/esm/components/QList/types.d.ts +5 -7
- package/esm/components/QList/types.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +23 -141
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/index.d.ts +0 -1
- package/esm/components/QOverlay/types.d.ts +0 -1
- package/esm/components/QPopover/QPopover.d.ts +19 -77
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/index.d.ts +0 -1
- package/esm/components/QPopover/types.d.ts +0 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +28 -56
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +61 -62
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +7 -44
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.vue.js +22 -26
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +11 -43
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +14 -16
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +12 -17
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListRow.vue.js +28 -25
- package/esm/components/QPropertyList/index.d.ts +0 -1
- package/esm/components/QPropertyList/types.d.ts +66 -34
- package/esm/components/QPropertyList/types.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.d.ts +199 -147
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +130 -125
- package/esm/components/QSelect/index.d.ts +0 -1
- package/esm/components/QSelect/types.d.ts +9 -8
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QSelect/types.js +5 -3
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +2 -28
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +19 -19
- package/esm/components/QSkeletonLoader/index.d.ts +0 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +2 -26
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.d.ts +0 -1
- package/esm/components/QTextField/QTextField.d.ts +100 -96
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/index.d.ts +0 -1
- package/esm/components/QTextField/types.d.ts +0 -1
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +8 -13
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.d.ts +0 -1
- package/esm/components/QTooltip/QTooltip.d.ts +24 -121
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +1 -1
- package/esm/components/QTooltip/index.d.ts +0 -1
- package/esm/components/QTooltip/types.d.ts +1 -2
- package/esm/components/QTooltip/types.d.ts.map +1 -1
- package/esm/composables/defaults.d.ts +0 -1
- package/esm/composables/theme.d.ts +0 -1
- package/esm/framework.d.ts +0 -1
- package/esm/templates/theme.d.ts +0 -1
- package/esm/utils/setupPropsProxy.d.ts +0 -1
- package/esm/utils/theme.d.ts +0 -1
- package/package.json +35 -33
package/dist/ui.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as B, computed as
|
|
1
|
+
import { defineComponent as B, computed as g, openBlock as r, createElementBlock as p, normalizeClass as V, normalizeStyle as ue, getCurrentInstance as Ne, ref as D, provide as He, inject as Ge, withModifiers as ve, createVNode as z, unref as m, createCommentVNode as q, createElementVNode as I, Fragment as K, createTextVNode as ce, toDisplayString as O, renderSlot as h, createBlock as S, resolveDynamicComponent as Be, h as Qe, withCtx as _, normalizeProps as j, guardReactiveProps as le, toRef as Fe, mergeModels as Z, useModel as ne, renderList as he, mergeProps as J, reactive as ze, watch as te, nextTick as oe, onMounted as Re, onBeforeUnmount as ut, Teleport as ct, Transition as ft, withKeys as pt, createSlots as qe, withDirectives as mt, vModelDynamic as vt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.2
|
|
4
4
|
* (c) 2024 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
@@ -35,7 +35,7 @@ const Ie = {
|
|
|
35
35
|
onWarning: "#fff",
|
|
36
36
|
onDanger: "#fff",
|
|
37
37
|
onInfo: "#fff"
|
|
38
|
-
},
|
|
38
|
+
}, Ke = {
|
|
39
39
|
primary: "#009ff5",
|
|
40
40
|
primaryLight: "#ade2ff",
|
|
41
41
|
primaryDark: "#164965",
|
|
@@ -66,9 +66,9 @@ const Ie = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
|
-
defaultDarkColorScheme:
|
|
71
|
+
defaultDarkColorScheme: Ke,
|
|
72
72
|
defaultLightColorScheme: Ie
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" })), ht = /* @__PURE__ */ B({
|
|
74
74
|
__name: "QSpinnerLoader",
|
|
@@ -77,19 +77,19 @@ const Ie = {
|
|
|
77
77
|
class: { default: void 0 }
|
|
78
78
|
},
|
|
79
79
|
setup(o) {
|
|
80
|
-
const t = o, e =
|
|
80
|
+
const t = o, e = g(() => ({
|
|
81
81
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
82
82
|
}));
|
|
83
83
|
return (n, l) => (r(), p("div", {
|
|
84
|
-
class:
|
|
85
|
-
style:
|
|
84
|
+
class: V(["q-spinner-loader", t.class]),
|
|
85
|
+
style: ue(e.value)
|
|
86
86
|
}, null, 6));
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
function Se(o) {
|
|
90
90
|
return o == null ? !0 : typeof o == "string" || Array.isArray(o) ? o.length === 0 : typeof o == "object" ? Object.keys(o).length === 0 : !1;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Me(o) {
|
|
93
93
|
return o !== null && typeof o == "object" && !Array.isArray(o);
|
|
94
94
|
}
|
|
95
95
|
function Ce(o = {}, t = {}) {
|
|
@@ -98,7 +98,7 @@ function Ce(o = {}, t = {}) {
|
|
|
98
98
|
e[n] = o[n];
|
|
99
99
|
for (const n in t) {
|
|
100
100
|
const l = o[n], s = t[n];
|
|
101
|
-
if (
|
|
101
|
+
if (Me(l) && Me(s)) {
|
|
102
102
|
e[n] = Ce(
|
|
103
103
|
l,
|
|
104
104
|
s
|
|
@@ -112,53 +112,53 @@ function Ce(o = {}, t = {}) {
|
|
|
112
112
|
const Te = "q-defaults";
|
|
113
113
|
function yt() {
|
|
114
114
|
var s, i;
|
|
115
|
-
const o =
|
|
115
|
+
const o = Ne();
|
|
116
116
|
if (!o)
|
|
117
117
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
118
118
|
const t = o.type.name ?? o.type.__name;
|
|
119
119
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
120
|
-
const e =
|
|
121
|
-
return
|
|
120
|
+
const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[t];
|
|
121
|
+
return g(() => Ce(n, l));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function je(o) {
|
|
124
124
|
if (Se(o)) return;
|
|
125
|
-
const t =
|
|
126
|
-
|
|
125
|
+
const t = We(), e = D(o), n = g(() => Se(e.value) ? t.value : Ce(t.value, e.value));
|
|
126
|
+
He(Te, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
const o =
|
|
128
|
+
function We() {
|
|
129
|
+
const o = Ge(Te, void 0);
|
|
130
130
|
if (!o) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
131
131
|
return o;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Xe(o) {
|
|
134
134
|
return o.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function bt(o, t) {
|
|
137
137
|
var n;
|
|
138
|
-
const e =
|
|
138
|
+
const e = Xe(t);
|
|
139
139
|
return e ? typeof ((n = o.props) == null ? void 0 : n[e]) < "u" : !1;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function C(o) {
|
|
142
142
|
const t = o.setup;
|
|
143
143
|
return t && (o.setup = (e, n) => {
|
|
144
144
|
const l = yt();
|
|
145
145
|
if (Se(l.value)) return t(e, n);
|
|
146
|
-
const s =
|
|
146
|
+
const s = Ne();
|
|
147
147
|
if (s === null) return t(e, n);
|
|
148
148
|
const i = new Proxy(e, {
|
|
149
149
|
get(a, d) {
|
|
150
|
-
var
|
|
151
|
-
const
|
|
152
|
-
return typeof d == "string" && !
|
|
150
|
+
var L;
|
|
151
|
+
const c = Reflect.get(a, d), w = (L = l.value) == null ? void 0 : L[d];
|
|
152
|
+
return typeof d == "string" && !bt(s.vnode, d) ? w ?? c : c;
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
return t(i, n);
|
|
156
156
|
}), o;
|
|
157
157
|
}
|
|
158
|
-
const xe =
|
|
158
|
+
const xe = C(ht), gt = ["disabled"], _t = {
|
|
159
159
|
key: 0,
|
|
160
160
|
class: "q-btn__spinner"
|
|
161
|
-
}, kt = { class: "q-btn__content" },
|
|
161
|
+
}, kt = { class: "q-btn__content" }, wt = /* @__PURE__ */ B({
|
|
162
162
|
__name: "QButton",
|
|
163
163
|
props: {
|
|
164
164
|
active: { type: Boolean },
|
|
@@ -175,11 +175,11 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
175
175
|
},
|
|
176
176
|
emits: ["click"],
|
|
177
177
|
setup(o, { emit: t }) {
|
|
178
|
-
const e = o, n = t, l =
|
|
178
|
+
const e = o, n = t, l = g(() => e.disabled || e.loading);
|
|
179
179
|
function s(a) {
|
|
180
180
|
l.value || n("click", a);
|
|
181
181
|
}
|
|
182
|
-
const i =
|
|
182
|
+
const i = g(() => {
|
|
183
183
|
const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
184
184
|
return [
|
|
185
185
|
"q-btn",
|
|
@@ -197,25 +197,25 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
197
197
|
});
|
|
198
198
|
return (a, d) => (r(), p("button", {
|
|
199
199
|
type: "button",
|
|
200
|
-
class:
|
|
200
|
+
class: V(i.value),
|
|
201
201
|
disabled: l.value,
|
|
202
202
|
onClick: ve(s, ["stop", "prevent"])
|
|
203
203
|
}, [
|
|
204
204
|
a.loading ? (r(), p("div", _t, [
|
|
205
|
-
|
|
206
|
-
])) :
|
|
207
|
-
|
|
205
|
+
z(m(xe), { size: 20 })
|
|
206
|
+
])) : q("", !0),
|
|
207
|
+
I("span", kt, [
|
|
208
208
|
a.iconOnRight ? (r(), p(K, { key: 0 }, [
|
|
209
|
-
|
|
210
|
-
], 64)) :
|
|
209
|
+
ce(O(e.label), 1)
|
|
210
|
+
], 64)) : q("", !0),
|
|
211
211
|
h(a.$slots, "default"),
|
|
212
|
-
a.iconOnRight ?
|
|
213
|
-
|
|
212
|
+
a.iconOnRight ? q("", !0) : (r(), p(K, { key: 1 }, [
|
|
213
|
+
ce(O(e.label), 1)
|
|
214
214
|
], 64))
|
|
215
215
|
])
|
|
216
|
-
], 10,
|
|
216
|
+
], 10, gt));
|
|
217
217
|
}
|
|
218
|
-
}), re =
|
|
218
|
+
}), re = C(wt), $t = /* @__PURE__ */ B({
|
|
219
219
|
__name: "QIcon",
|
|
220
220
|
props: {
|
|
221
221
|
icon: {},
|
|
@@ -224,20 +224,20 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
224
224
|
type: { default: "svg" }
|
|
225
225
|
},
|
|
226
226
|
setup(o) {
|
|
227
|
-
const t = o, e =
|
|
227
|
+
const t = o, e = g(() => {
|
|
228
228
|
switch (t.type) {
|
|
229
229
|
case "svg":
|
|
230
|
-
return tt;
|
|
231
|
-
case "font":
|
|
232
230
|
return Je;
|
|
231
|
+
case "font":
|
|
232
|
+
return Ye;
|
|
233
233
|
case "img":
|
|
234
|
-
return
|
|
234
|
+
return Ze;
|
|
235
235
|
default:
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
return (n, l) => (r(), S(Be(e.value), {
|
|
240
|
-
class:
|
|
240
|
+
class: V(t.class),
|
|
241
241
|
icon: t.icon,
|
|
242
242
|
size: t.size
|
|
243
243
|
}, null, 8, ["class", "icon", "size"]));
|
|
@@ -252,12 +252,12 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
252
252
|
variant: { default: "" }
|
|
253
253
|
},
|
|
254
254
|
setup(o) {
|
|
255
|
-
const t = o, e =
|
|
255
|
+
const t = o, e = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), n = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
|
|
256
256
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
257
257
|
}));
|
|
258
258
|
return (s, i) => (r(), p("i", {
|
|
259
|
-
class:
|
|
260
|
-
style:
|
|
259
|
+
class: V(["q-icon", "q-icon__font", e.value, n.value, t.class]),
|
|
260
|
+
style: ue(l.value)
|
|
261
261
|
}, null, 6));
|
|
262
262
|
}
|
|
263
263
|
}), xt = ["src"], Lt = /* @__PURE__ */ B({
|
|
@@ -268,16 +268,16 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
268
268
|
class: {}
|
|
269
269
|
},
|
|
270
270
|
setup(o) {
|
|
271
|
-
const t = o, e =
|
|
271
|
+
const t = o, e = g(() => ({
|
|
272
272
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
273
273
|
}));
|
|
274
274
|
return (n, l) => (r(), p("img", {
|
|
275
275
|
src: t.icon,
|
|
276
|
-
class:
|
|
277
|
-
style:
|
|
276
|
+
class: V(["q-icon", "q-icon__img", t.class]),
|
|
277
|
+
style: ue(e.value)
|
|
278
278
|
}, null, 14, xt));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), be = {}, It = B({
|
|
281
281
|
name: "InlineSvg",
|
|
282
282
|
emits: {
|
|
283
283
|
loaded: (o) => typeof o == "object",
|
|
@@ -288,9 +288,9 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
288
288
|
render() {
|
|
289
289
|
if (!this.svgElSource) return null;
|
|
290
290
|
const o = this.getSvgContent(this.svgElSource);
|
|
291
|
-
if (!o) return
|
|
291
|
+
if (!o) return Qe("div", this.$attrs);
|
|
292
292
|
const t = {};
|
|
293
|
-
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML,
|
|
293
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, o), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = o.innerHTML, Qe("svg", t);
|
|
294
294
|
},
|
|
295
295
|
props: {
|
|
296
296
|
/**
|
|
@@ -358,11 +358,11 @@ const xe = T(ht), bt = ["disabled"], _t = {
|
|
|
358
358
|
*/
|
|
359
359
|
async getSource(o) {
|
|
360
360
|
try {
|
|
361
|
-
|
|
362
|
-
const t = await
|
|
361
|
+
be[o] || (be[o] = Bt(this.download(o))), this.svgElSource && be[o].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
362
|
+
const t = await be[o];
|
|
363
363
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
364
364
|
} catch (t) {
|
|
365
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
365
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete be[o], this.$emit("error", t);
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
/**
|
|
@@ -415,7 +415,7 @@ const Ct = /* @__PURE__ */ B({
|
|
|
415
415
|
},
|
|
416
416
|
emits: ["loaded", "unloaded"],
|
|
417
417
|
setup(o, { emit: t }) {
|
|
418
|
-
const e = o, n = t, l =
|
|
418
|
+
const e = o, n = t, l = g(() => ({
|
|
419
419
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
420
420
|
}));
|
|
421
421
|
function s(a) {
|
|
@@ -425,15 +425,15 @@ const Ct = /* @__PURE__ */ B({
|
|
|
425
425
|
n("unloaded");
|
|
426
426
|
}
|
|
427
427
|
return (a, d) => (r(), S(m(It), {
|
|
428
|
-
class:
|
|
428
|
+
class: V(["q-icon", "q-icon__svg", e.class]),
|
|
429
429
|
src: e.bundle,
|
|
430
430
|
symbol: e.icon,
|
|
431
|
-
style:
|
|
431
|
+
style: ue(l.value),
|
|
432
432
|
onLoaded: s,
|
|
433
433
|
onUnloaded: i
|
|
434
434
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
435
435
|
}
|
|
436
|
-
}), N =
|
|
436
|
+
}), N = C($t), Ye = C(qt), Ze = C(Lt), Je = C(Ct), Tt = {
|
|
437
437
|
remove: {
|
|
438
438
|
icon: "close"
|
|
439
439
|
}
|
|
@@ -448,7 +448,7 @@ function Et(o) {
|
|
|
448
448
|
return { r: e, g: n, b: l };
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function et(o) {
|
|
452
452
|
if (Vt(o)) {
|
|
453
453
|
o.length === 4 && (o = "#" + o[1] + o[1] + o[2] + o[2] + o[3] + o[3]);
|
|
454
454
|
const t = parseInt(o.slice(1, 3), 16), e = parseInt(o.slice(3, 5), 16), n = parseInt(o.slice(5, 7), 16);
|
|
@@ -466,16 +466,16 @@ function Dt(o) {
|
|
|
466
466
|
if (l === s)
|
|
467
467
|
i = a = 0;
|
|
468
468
|
else {
|
|
469
|
-
const
|
|
470
|
-
switch (a = d > 0.5 ?
|
|
469
|
+
const c = l - s;
|
|
470
|
+
switch (a = d > 0.5 ? c / (2 - l - s) : c / (l + s), l) {
|
|
471
471
|
case t:
|
|
472
|
-
i = (e - n) /
|
|
472
|
+
i = (e - n) / c + (e < n ? 6 : 0);
|
|
473
473
|
break;
|
|
474
474
|
case e:
|
|
475
|
-
i = (n - t) /
|
|
475
|
+
i = (n - t) / c + 2;
|
|
476
476
|
break;
|
|
477
477
|
case n:
|
|
478
|
-
i = (t - e) /
|
|
478
|
+
i = (t - e) / c + 4;
|
|
479
479
|
break;
|
|
480
480
|
}
|
|
481
481
|
i /= 6;
|
|
@@ -489,46 +489,46 @@ function Dt(o) {
|
|
|
489
489
|
function At(o) {
|
|
490
490
|
return o > 50 ? "#000" : "#fff";
|
|
491
491
|
}
|
|
492
|
-
const Qt =
|
|
492
|
+
const Qt = { class: "q-badge__content" }, Ft = /* @__PURE__ */ B({
|
|
493
493
|
__name: "QBadge",
|
|
494
494
|
props: {
|
|
495
495
|
color: { default: "primary" },
|
|
496
496
|
variant: { default: "tonal" },
|
|
497
497
|
removable: { type: Boolean },
|
|
498
498
|
pill: { type: Boolean },
|
|
499
|
-
|
|
499
|
+
icons: { default: () => Tt }
|
|
500
500
|
},
|
|
501
501
|
emits: ["click:remove"],
|
|
502
502
|
setup(o, { emit: t }) {
|
|
503
|
-
const e = o, n = t, l =
|
|
503
|
+
const e = o, n = t, l = g(
|
|
504
504
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
505
|
-
), s =
|
|
505
|
+
), s = g(() => {
|
|
506
506
|
const d = l.value ? `q-badge--${e.color}` : void 0;
|
|
507
507
|
return ["q-badge", `q-badge--${e.variant}`, d, { "q-badge--pill": e.pill }];
|
|
508
|
-
}), i =
|
|
509
|
-
let d,
|
|
508
|
+
}), i = g(() => {
|
|
509
|
+
let d, c;
|
|
510
510
|
if (!l.value)
|
|
511
511
|
if (d = e.color, e.variant === "tonal")
|
|
512
|
-
|
|
512
|
+
c = e.color;
|
|
513
513
|
else {
|
|
514
|
-
const
|
|
515
|
-
|
|
514
|
+
const w = et(d), L = Dt(w);
|
|
515
|
+
c = At(L.l);
|
|
516
516
|
}
|
|
517
517
|
return {
|
|
518
518
|
"--q-badge-color": d,
|
|
519
|
-
"--q-badge-text-color":
|
|
519
|
+
"--q-badge-text-color": c
|
|
520
520
|
};
|
|
521
521
|
});
|
|
522
522
|
function a() {
|
|
523
523
|
n("click:remove");
|
|
524
524
|
}
|
|
525
|
-
return (d,
|
|
526
|
-
class:
|
|
525
|
+
return (d, c) => (r(), p("span", {
|
|
526
|
+
class: V(s.value),
|
|
527
527
|
role: "presentation",
|
|
528
|
-
style:
|
|
528
|
+
style: ue(i.value)
|
|
529
529
|
}, [
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
c[0] || (c[0] = I("div", { class: "q-badge__underlay" }, null, -1)),
|
|
531
|
+
I("div", Qt, [
|
|
532
532
|
h(d.$slots, "default"),
|
|
533
533
|
e.removable ? (r(), S(m(re), {
|
|
534
534
|
key: 0,
|
|
@@ -538,14 +538,14 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
538
538
|
onClick: a
|
|
539
539
|
}, {
|
|
540
540
|
default: _(() => [
|
|
541
|
-
|
|
541
|
+
z(m(N), j(le(e.icons.remove)), null, 16)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
|
-
})) :
|
|
544
|
+
})) : q("", !0)
|
|
545
545
|
])
|
|
546
546
|
], 6));
|
|
547
547
|
}
|
|
548
|
-
}),
|
|
548
|
+
}), zt = C(Ft), Mt = /* @__PURE__ */ B({
|
|
549
549
|
__name: "QButtonGroup",
|
|
550
550
|
props: {
|
|
551
551
|
disabled: { type: Boolean },
|
|
@@ -555,15 +555,15 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
555
555
|
},
|
|
556
556
|
setup(o) {
|
|
557
557
|
const t = o;
|
|
558
|
-
return
|
|
558
|
+
return je({
|
|
559
559
|
QButton: {
|
|
560
560
|
bStyle: "secondary",
|
|
561
|
-
disabled:
|
|
562
|
-
borderless:
|
|
561
|
+
disabled: Fe(t, "disabled"),
|
|
562
|
+
borderless: Fe(t, "borderless"),
|
|
563
563
|
elevated: !1
|
|
564
564
|
}
|
|
565
565
|
}), (e, n) => (r(), p("div", {
|
|
566
|
-
class:
|
|
566
|
+
class: V([
|
|
567
567
|
"q-btn-group",
|
|
568
568
|
{
|
|
569
569
|
"q-btn-group--elevated": t.elevated
|
|
@@ -574,7 +574,7 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
574
574
|
h(e.$slots, "default")
|
|
575
575
|
], 2));
|
|
576
576
|
}
|
|
577
|
-
}),
|
|
577
|
+
}), tt = C(Mt), Ot = /* @__PURE__ */ B({
|
|
578
578
|
__name: "QButtonToggle",
|
|
579
579
|
props: /* @__PURE__ */ Z({
|
|
580
580
|
options: {},
|
|
@@ -589,16 +589,17 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
589
589
|
}),
|
|
590
590
|
emits: ["update:modelValue"],
|
|
591
591
|
setup(o) {
|
|
592
|
-
const t = o, e =
|
|
592
|
+
const t = o, e = ne(o, "modelValue");
|
|
593
593
|
function n(l) {
|
|
594
594
|
e.value === l.key && !t.required ? e.value = void 0 : e.value = l.key;
|
|
595
595
|
}
|
|
596
|
-
return (l, s) => (r(), S(m(
|
|
596
|
+
return (l, s) => (r(), S(m(tt), {
|
|
597
597
|
"b-style": "secondary",
|
|
598
|
-
class:
|
|
598
|
+
class: V(t.class),
|
|
599
599
|
disabled: t.disabled,
|
|
600
600
|
borderless: t.borderless,
|
|
601
|
-
elevated: t.elevated
|
|
601
|
+
elevated: t.elevated,
|
|
602
|
+
role: "listbox"
|
|
602
603
|
}, {
|
|
603
604
|
default: _(() => [
|
|
604
605
|
(r(!0), p(K, null, he(t.options, (i) => (r(), S(m(re), {
|
|
@@ -606,18 +607,20 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
606
607
|
title: i.title,
|
|
607
608
|
label: i.label,
|
|
608
609
|
active: e.value === i.key,
|
|
610
|
+
role: "option",
|
|
611
|
+
"aria-selected": e.value === i.key,
|
|
609
612
|
onClick: () => n(i)
|
|
610
613
|
}, {
|
|
611
614
|
default: _(() => [
|
|
612
615
|
h(l.$slots, i.key)
|
|
613
616
|
]),
|
|
614
617
|
_: 2
|
|
615
|
-
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
618
|
+
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
|
|
616
619
|
]),
|
|
617
620
|
_: 3
|
|
618
621
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
619
622
|
}
|
|
620
|
-
}),
|
|
623
|
+
}), Pt = C(Ot), Ut = /* @__PURE__ */ B({
|
|
621
624
|
__name: "QList",
|
|
622
625
|
props: /* @__PURE__ */ Z({
|
|
623
626
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -636,28 +639,28 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
636
639
|
}),
|
|
637
640
|
emits: ["update:modelValue"],
|
|
638
641
|
setup(o, { expose: t }) {
|
|
639
|
-
const e = o, n =
|
|
640
|
-
(v) => e.items.some((
|
|
641
|
-
) : [{ id: "", title: "" }]), a =
|
|
642
|
+
const e = o, n = ne(o, "modelValue"), l = D(!1), s = g(() => i.value.length > 1 ? "div" : "ul"), i = g(() => e.groups.length ? e.groups.filter(
|
|
643
|
+
(v) => e.items.some(($) => $.group === v.id)
|
|
644
|
+
) : [{ id: "", title: "" }]), a = D(null);
|
|
642
645
|
function d(v) {
|
|
643
646
|
n.value = v;
|
|
644
647
|
}
|
|
645
|
-
function
|
|
648
|
+
function c() {
|
|
646
649
|
l.value = !0;
|
|
647
650
|
}
|
|
648
|
-
function
|
|
651
|
+
function w() {
|
|
649
652
|
l.value = !1;
|
|
650
653
|
}
|
|
651
|
-
function
|
|
652
|
-
var
|
|
653
|
-
if ((
|
|
654
|
+
function L(v) {
|
|
655
|
+
var b;
|
|
656
|
+
if ((b = a.value) != null && b.contains(v.relatedTarget))
|
|
654
657
|
return;
|
|
655
|
-
let
|
|
656
|
-
n.value ?
|
|
657
|
-
const
|
|
658
|
-
|
|
658
|
+
let $;
|
|
659
|
+
n.value ? $ = e.items.findIndex((G) => G[e.itemValue] === n.value) : $ = Q();
|
|
660
|
+
const f = l.value;
|
|
661
|
+
T($, f);
|
|
659
662
|
}
|
|
660
|
-
function
|
|
663
|
+
function P(v) {
|
|
661
664
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
|
|
662
665
|
case "ArrowDown":
|
|
663
666
|
A("next");
|
|
@@ -677,101 +680,101 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
677
680
|
switch (v) {
|
|
678
681
|
case "next":
|
|
679
682
|
case "prev":
|
|
680
|
-
|
|
683
|
+
T(W(v));
|
|
681
684
|
break;
|
|
682
685
|
case "first":
|
|
683
|
-
|
|
686
|
+
T(Q());
|
|
684
687
|
break;
|
|
685
688
|
case "last":
|
|
686
|
-
|
|
689
|
+
T(H());
|
|
687
690
|
break;
|
|
688
691
|
}
|
|
689
692
|
}
|
|
690
|
-
function
|
|
691
|
-
var
|
|
692
|
-
(
|
|
693
|
+
function T(v, $ = !1) {
|
|
694
|
+
var b;
|
|
695
|
+
(b = y()[v]) == null || b.focus({ preventScroll: $ });
|
|
693
696
|
}
|
|
694
697
|
function y() {
|
|
695
|
-
var
|
|
696
|
-
const v = (
|
|
698
|
+
var $;
|
|
699
|
+
const v = ($ = a.value) == null ? void 0 : $.querySelectorAll("li");
|
|
697
700
|
return v ? Array.from(v) : [];
|
|
698
701
|
}
|
|
699
|
-
function
|
|
702
|
+
function E(v) {
|
|
700
703
|
return y()[v];
|
|
701
704
|
}
|
|
702
|
-
function
|
|
705
|
+
function M() {
|
|
703
706
|
return y().indexOf(document.activeElement);
|
|
704
707
|
}
|
|
705
|
-
function
|
|
706
|
-
const v = y(),
|
|
707
|
-
return
|
|
708
|
+
function Q() {
|
|
709
|
+
const v = y(), $ = v.find((f) => U(f));
|
|
710
|
+
return $ ? v.indexOf($) : -1;
|
|
708
711
|
}
|
|
709
712
|
function H() {
|
|
710
|
-
const v = y(),
|
|
711
|
-
return
|
|
713
|
+
const v = y(), $ = [...v].reverse().find((f) => U(f));
|
|
714
|
+
return $ ? v.indexOf($) : -1;
|
|
712
715
|
}
|
|
713
|
-
function
|
|
714
|
-
return
|
|
716
|
+
function se(v, $, f) {
|
|
717
|
+
return $ === "prev" && v === 0 || $ === "next" && v === f.length - 1;
|
|
715
718
|
}
|
|
716
719
|
function W(v) {
|
|
717
|
-
const
|
|
718
|
-
return
|
|
720
|
+
const $ = M();
|
|
721
|
+
return ae($, v);
|
|
719
722
|
}
|
|
720
|
-
function
|
|
721
|
-
const
|
|
722
|
-
if (
|
|
723
|
+
function ae(v, $) {
|
|
724
|
+
const f = y();
|
|
725
|
+
if (se(v, $, f))
|
|
723
726
|
return v;
|
|
724
|
-
let
|
|
725
|
-
for (; !U(
|
|
726
|
-
if (
|
|
727
|
+
let b = v + ($ === "next" ? 1 : -1);
|
|
728
|
+
for (; !U(f[b]); ) {
|
|
729
|
+
if (se(b, $, f))
|
|
727
730
|
return v;
|
|
728
|
-
|
|
731
|
+
b += $ === "next" ? 1 : -1;
|
|
729
732
|
}
|
|
730
|
-
return
|
|
733
|
+
return b;
|
|
731
734
|
}
|
|
732
735
|
function U(v) {
|
|
733
736
|
return v.tabIndex === -2;
|
|
734
737
|
}
|
|
735
738
|
function Y(v) {
|
|
736
|
-
return v ? e.items.filter((
|
|
739
|
+
return v ? e.items.filter(($) => $.group === v) : e.items;
|
|
737
740
|
}
|
|
738
741
|
return t({
|
|
739
|
-
focusItem:
|
|
740
|
-
getItem:
|
|
741
|
-
getAdjacentItemIndex:
|
|
742
|
-
getFirstFocusableItemIndex:
|
|
742
|
+
focusItem: T,
|
|
743
|
+
getItem: E,
|
|
744
|
+
getAdjacentItemIndex: ae,
|
|
745
|
+
getFirstFocusableItemIndex: Q,
|
|
743
746
|
getLastFocusableItemIndex: H
|
|
744
|
-
}), (v,
|
|
747
|
+
}), (v, $) => (r(), S(Be(s.value), {
|
|
745
748
|
ref_key: "listRef",
|
|
746
749
|
ref: a,
|
|
747
|
-
class:
|
|
750
|
+
class: V(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
748
751
|
role: "listbox",
|
|
749
752
|
tabindex: e.disabled ? -1 : 0,
|
|
750
|
-
onFocus:
|
|
751
|
-
onMousedown:
|
|
752
|
-
onMouseup:
|
|
753
|
-
onKeydown:
|
|
753
|
+
onFocus: L,
|
|
754
|
+
onMousedown: c,
|
|
755
|
+
onMouseup: w,
|
|
756
|
+
onKeydown: P
|
|
754
757
|
}, {
|
|
755
758
|
default: _(() => [
|
|
756
|
-
(r(!0), p(K, null, he(i.value, (
|
|
757
|
-
key:
|
|
758
|
-
id:
|
|
759
|
-
title: i.value.length === 1 ? void 0 :
|
|
759
|
+
(r(!0), p(K, null, he(i.value, (f) => (r(), S(m(nt), {
|
|
760
|
+
key: f.id,
|
|
761
|
+
id: f.id,
|
|
762
|
+
title: i.value.length === 1 ? void 0 : f.title
|
|
760
763
|
}, {
|
|
761
764
|
default: _(() => [
|
|
762
|
-
(r(!0), p(K, null, he(Y(
|
|
763
|
-
key:
|
|
764
|
-
value:
|
|
765
|
-
label:
|
|
766
|
-
description:
|
|
767
|
-
icon:
|
|
768
|
-
disabled: e.disabled ||
|
|
769
|
-
highlighted: e.highlighted ===
|
|
770
|
-
selected: v.selectable && n.value ===
|
|
765
|
+
(r(!0), p(K, null, he(Y(f.id), (b) => (r(), S(m(ot), {
|
|
766
|
+
key: b[e.itemValue],
|
|
767
|
+
value: b[e.itemValue],
|
|
768
|
+
label: b[e.itemLabel],
|
|
769
|
+
description: b.description,
|
|
770
|
+
icon: b.icon,
|
|
771
|
+
disabled: e.disabled || f.disabled || b.disabled,
|
|
772
|
+
highlighted: e.highlighted === b[e.itemValue],
|
|
773
|
+
selected: v.selectable && n.value === b[e.itemValue],
|
|
771
774
|
onSelect: d
|
|
772
775
|
}, {
|
|
773
776
|
default: _(() => [
|
|
774
|
-
h(v.$slots, "item", { item:
|
|
777
|
+
h(v.$slots, "item", { item: b })
|
|
775
778
|
]),
|
|
776
779
|
_: 2
|
|
777
780
|
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -782,7 +785,7 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
782
785
|
_: 3
|
|
783
786
|
}, 40, ["class", "tabindex"]));
|
|
784
787
|
}
|
|
785
|
-
}),
|
|
788
|
+
}), Nt = {
|
|
786
789
|
check: {
|
|
787
790
|
icon: "check"
|
|
788
791
|
},
|
|
@@ -790,14 +793,14 @@ const Qt = /* @__PURE__ */ L("div", { class: "q-badge__underlay" }, null, -1), F
|
|
|
790
793
|
icon: "information-outline"
|
|
791
794
|
}
|
|
792
795
|
};
|
|
793
|
-
let
|
|
796
|
+
let Ht = 0;
|
|
794
797
|
function fe(o) {
|
|
795
|
-
return o || `uid-${++
|
|
798
|
+
return o || `uid-${++Ht}`;
|
|
796
799
|
}
|
|
797
|
-
const
|
|
800
|
+
const Gt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Rt = { class: "q-list-item__container" }, Kt = { class: "q-list-item__content" }, jt = {
|
|
798
801
|
key: 0,
|
|
799
802
|
class: "q-list-item__description"
|
|
800
|
-
},
|
|
803
|
+
}, Wt = { class: "q-list-item__check-container" }, Xt = /* @__PURE__ */ B({
|
|
801
804
|
__name: "QListItem",
|
|
802
805
|
props: {
|
|
803
806
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -807,7 +810,7 @@ const Rt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Kt = {
|
|
|
807
810
|
highlighted: { type: Boolean },
|
|
808
811
|
disabled: { type: Boolean },
|
|
809
812
|
description: { default: void 0 },
|
|
810
|
-
|
|
813
|
+
icons: { default: () => Nt }
|
|
811
814
|
},
|
|
812
815
|
emits: ["select"],
|
|
813
816
|
setup(o, { emit: t }) {
|
|
@@ -823,7 +826,7 @@ const Rt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Kt = {
|
|
|
823
826
|
"data-key": e.value,
|
|
824
827
|
role: "option",
|
|
825
828
|
tabindex: e.disabled ? void 0 : -2,
|
|
826
|
-
class:
|
|
829
|
+
class: V([
|
|
827
830
|
"q-list-item",
|
|
828
831
|
{
|
|
829
832
|
"q-list-item--disabled": e.disabled,
|
|
@@ -836,24 +839,24 @@ const Rt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Kt = {
|
|
|
836
839
|
onKeydown: i,
|
|
837
840
|
onClick: ve(s, ["stop", "prevent"])
|
|
838
841
|
}, [
|
|
839
|
-
|
|
840
|
-
|
|
842
|
+
I("div", Rt, [
|
|
843
|
+
I("div", Kt, [
|
|
841
844
|
h(a.$slots, "default", {}, () => [
|
|
842
|
-
e.icon ? (r(), S(m(N), j(
|
|
843
|
-
|
|
845
|
+
e.icon ? (r(), S(m(N), j(J({ key: 0 }, e.icon)), null, 16)) : q("", !0),
|
|
846
|
+
ce(" " + O(e.label), 1)
|
|
844
847
|
])
|
|
845
848
|
]),
|
|
846
|
-
e.description ? (r(), p("div",
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
])) :
|
|
849
|
+
e.description ? (r(), p("div", jt, [
|
|
850
|
+
z(m(N), j(le(e.icons.description)), null, 16),
|
|
851
|
+
I("span", null, O(e.description), 1)
|
|
852
|
+
])) : q("", !0)
|
|
850
853
|
]),
|
|
851
|
-
|
|
852
|
-
e.selected ? (r(), S(m(N),
|
|
854
|
+
I("div", Wt, [
|
|
855
|
+
e.selected ? (r(), S(m(N), J({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
|
|
853
856
|
])
|
|
854
|
-
], 42,
|
|
857
|
+
], 42, Gt));
|
|
855
858
|
}
|
|
856
|
-
}),
|
|
859
|
+
}), Yt = ["data-key", "aria-labelledby"], Zt = ["id"], Jt = /* @__PURE__ */ B({
|
|
857
860
|
__name: "QListItemGroup",
|
|
858
861
|
props: {
|
|
859
862
|
id: {},
|
|
@@ -872,69 +875,69 @@ const Rt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Kt = {
|
|
|
872
875
|
id: m(e),
|
|
873
876
|
class: "q-list-item-group__title",
|
|
874
877
|
role: "presentation"
|
|
875
|
-
},
|
|
878
|
+
}, O(t.title), 9, Zt)) : q("", !0),
|
|
876
879
|
h(n.$slots, "default")
|
|
877
|
-
], 8,
|
|
880
|
+
], 8, Yt));
|
|
878
881
|
}
|
|
879
|
-
}), Ve =
|
|
880
|
-
function
|
|
881
|
-
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), d = e == null ? void 0 : e.getBoundingClientRect(),
|
|
882
|
+
}), Ve = C(Ut), ot = C(Xt), nt = C(Jt), we = 8;
|
|
883
|
+
function eo(o, t, e, n) {
|
|
884
|
+
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = o.getBoundingClientRect(), a = t.getBoundingClientRect(), d = e == null ? void 0 : e.getBoundingClientRect(), c = to(i, a, s, l), w = so(i, a, c), L = no(w, c, l), P = oo(L, a, c);
|
|
882
885
|
let A;
|
|
883
886
|
if (n != null && n.arrow) {
|
|
884
887
|
if (!d)
|
|
885
888
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
886
|
-
A =
|
|
889
|
+
A = lo(P, i, a, d, c);
|
|
887
890
|
}
|
|
888
|
-
return { overlayCoords:
|
|
891
|
+
return { overlayCoords: P, arrowCoords: A, placement: c };
|
|
889
892
|
}
|
|
890
|
-
function
|
|
891
|
-
const l =
|
|
892
|
-
if (
|
|
893
|
+
function to(o, t, e, n) {
|
|
894
|
+
const l = Oe(o, t, e, n);
|
|
895
|
+
if (Pe(l)) {
|
|
893
896
|
const s = _e(e), a = {
|
|
894
897
|
top: "bottom",
|
|
895
898
|
bottom: "top",
|
|
896
899
|
left: "right",
|
|
897
900
|
right: "left"
|
|
898
|
-
}[s], d =
|
|
901
|
+
}[s], d = Oe(
|
|
899
902
|
o,
|
|
900
903
|
t,
|
|
901
904
|
a,
|
|
902
905
|
n
|
|
903
906
|
);
|
|
904
|
-
if (
|
|
907
|
+
if (Pe(d))
|
|
905
908
|
return e;
|
|
906
|
-
const
|
|
907
|
-
return
|
|
909
|
+
const c = ro(e);
|
|
910
|
+
return c ? `${a}-${c}` : a;
|
|
908
911
|
}
|
|
909
912
|
return e;
|
|
910
913
|
}
|
|
911
|
-
function
|
|
912
|
-
const n =
|
|
913
|
-
return n === "x" ? s.x = l(o.x,
|
|
914
|
+
function oo(o, t, e) {
|
|
915
|
+
const n = $e(e), l = (i, a, d) => Math.min(Math.max(i, a), d), s = { ...o };
|
|
916
|
+
return n === "x" ? s.x = l(o.x, we, window.innerWidth - t.width - we) : s.y = l(o.y, we, window.innerHeight - t.height - we), s;
|
|
914
917
|
}
|
|
915
|
-
function
|
|
918
|
+
function no(o, t, e) {
|
|
916
919
|
const n = _e(t);
|
|
917
920
|
return {
|
|
918
921
|
x: o.x + (n === "left" ? -e : n === "right" ? e : 0),
|
|
919
922
|
y: o.y + (n === "top" ? -e : n === "bottom" ? e : 0)
|
|
920
923
|
};
|
|
921
924
|
}
|
|
922
|
-
function
|
|
923
|
-
if (
|
|
924
|
-
const i = t.top + t.height / 2, a = o.y + e.height / 2, d = a - i,
|
|
925
|
-
if (
|
|
925
|
+
function lo(o, t, e, n, l) {
|
|
926
|
+
if ($e(l) === "y") {
|
|
927
|
+
const i = t.top + t.height / 2, a = o.y + e.height / 2, d = a - i, c = e.height / 2 - d - n.height / 2 + 2;
|
|
928
|
+
if (c > 0 && c < e.height - n.height)
|
|
926
929
|
return {
|
|
927
|
-
y:
|
|
930
|
+
y: c
|
|
928
931
|
};
|
|
929
932
|
} else {
|
|
930
|
-
const i = t.left + t.width / 2, a = o.x + e.width / 2, d = a - i,
|
|
931
|
-
if (
|
|
933
|
+
const i = t.left + t.width / 2, a = o.x + e.width / 2, d = a - i, c = e.width / 2 - d - n.width / 2 + 2;
|
|
934
|
+
if (c > 0 && c < e.width - n.width)
|
|
932
935
|
return {
|
|
933
|
-
x:
|
|
936
|
+
x: c
|
|
934
937
|
};
|
|
935
938
|
}
|
|
936
939
|
}
|
|
937
|
-
function
|
|
940
|
+
function so(o, t, e) {
|
|
938
941
|
const [n, l] = e.split("-"), s = o.x + o.width / 2 - t.width / 2, i = o.y + o.height / 2 - t.height / 2;
|
|
939
942
|
let a;
|
|
940
943
|
switch (n) {
|
|
@@ -955,20 +958,20 @@ function ao(o, t, e) {
|
|
|
955
958
|
}
|
|
956
959
|
if (!l)
|
|
957
960
|
return a;
|
|
958
|
-
const
|
|
961
|
+
const c = $e(e) === "y" ? "height" : "width", w = $e(e), L = o[c] / 2 - t[c] / 2;
|
|
959
962
|
switch (l) {
|
|
960
963
|
case "start":
|
|
961
|
-
a[
|
|
964
|
+
a[w] -= L;
|
|
962
965
|
break;
|
|
963
966
|
case "end":
|
|
964
|
-
a[
|
|
967
|
+
a[w] += L;
|
|
965
968
|
break;
|
|
966
969
|
default:
|
|
967
970
|
throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
|
|
968
971
|
}
|
|
969
972
|
return a;
|
|
970
973
|
}
|
|
971
|
-
function
|
|
974
|
+
function Oe(o, t, e, n) {
|
|
972
975
|
const l = _e(e);
|
|
973
976
|
let s = 0;
|
|
974
977
|
switch (l) {
|
|
@@ -989,31 +992,31 @@ function Ue(o, t, e, n) {
|
|
|
989
992
|
}
|
|
990
993
|
return s;
|
|
991
994
|
}
|
|
992
|
-
function
|
|
995
|
+
function ao(o) {
|
|
993
996
|
return o === "x" ? "y" : "x";
|
|
994
997
|
}
|
|
995
|
-
function
|
|
998
|
+
function io(o) {
|
|
996
999
|
const t = _e(o);
|
|
997
1000
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
998
1001
|
}
|
|
999
|
-
function
|
|
1000
|
-
return io(
|
|
1002
|
+
function $e(o) {
|
|
1003
|
+
return ao(io(o));
|
|
1001
1004
|
}
|
|
1002
1005
|
function _e(o) {
|
|
1003
1006
|
const [t] = o.split("-");
|
|
1004
1007
|
return t;
|
|
1005
1008
|
}
|
|
1006
|
-
function
|
|
1009
|
+
function ro(o) {
|
|
1007
1010
|
const [, t] = o.split("-");
|
|
1008
1011
|
return t;
|
|
1009
1012
|
}
|
|
1010
|
-
function
|
|
1013
|
+
function Pe(o) {
|
|
1011
1014
|
return o < 0;
|
|
1012
1015
|
}
|
|
1013
1016
|
function uo(o) {
|
|
1014
1017
|
return typeof o == "string" ? document.querySelector(o) : o;
|
|
1015
1018
|
}
|
|
1016
|
-
const
|
|
1019
|
+
const co = ["role"], fo = /* @__PURE__ */ B({
|
|
1017
1020
|
inheritAttrs: !1,
|
|
1018
1021
|
__name: "QOverlay",
|
|
1019
1022
|
props: /* @__PURE__ */ Z({
|
|
@@ -1041,7 +1044,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1041
1044
|
}),
|
|
1042
1045
|
emits: /* @__PURE__ */ Z(["enter", "leave"], ["update:modelValue"]),
|
|
1043
1046
|
setup(o, { emit: t }) {
|
|
1044
|
-
const e = o, n = t, l =
|
|
1047
|
+
const e = o, n = t, l = ne(o, "modelValue"), s = g(() => [
|
|
1045
1048
|
"q-overlay",
|
|
1046
1049
|
`q-overlay--${_e(a.placement)}`,
|
|
1047
1050
|
{
|
|
@@ -1049,19 +1052,19 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1049
1052
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1050
1053
|
},
|
|
1051
1054
|
e.class
|
|
1052
|
-
]), i =
|
|
1055
|
+
]), i = g(() => (l.value || a.animating) && !e.nonModal), a = ze({
|
|
1053
1056
|
animating: !1,
|
|
1054
1057
|
top: 0,
|
|
1055
1058
|
left: 0,
|
|
1056
1059
|
width: 0,
|
|
1057
1060
|
placement: e.placement
|
|
1058
|
-
}), d =
|
|
1061
|
+
}), d = ze({
|
|
1059
1062
|
top: void 0,
|
|
1060
1063
|
left: void 0,
|
|
1061
1064
|
hidden: !0
|
|
1062
|
-
}),
|
|
1063
|
-
|
|
1064
|
-
const
|
|
1065
|
+
}), c = g(() => a.top !== 0 && a.left !== 0);
|
|
1066
|
+
te(l, () => a.animating = !0);
|
|
1067
|
+
const w = g(() => {
|
|
1065
1068
|
if (e.anchor === void 0) return;
|
|
1066
1069
|
const k = U(), pe = e.width === "anchor", X = pe ? k == null ? void 0 : k.getBoundingClientRect().width : void 0;
|
|
1067
1070
|
return {
|
|
@@ -1069,15 +1072,15 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1069
1072
|
left: `${a.left}px`,
|
|
1070
1073
|
width: X !== void 0 ? `${X}px` : void 0
|
|
1071
1074
|
};
|
|
1072
|
-
}),
|
|
1075
|
+
}), L = g(() => {
|
|
1073
1076
|
if (e.arrow)
|
|
1074
1077
|
return {
|
|
1075
1078
|
top: d.top !== void 0 ? `${d.top}px` : void 0,
|
|
1076
1079
|
left: d.left !== void 0 ? `${d.left}px` : void 0,
|
|
1077
1080
|
opacity: d.hidden ? 0 : 1
|
|
1078
1081
|
};
|
|
1079
|
-
}),
|
|
1080
|
-
function
|
|
1082
|
+
}), P = D(null), A = D(null);
|
|
1083
|
+
function T() {
|
|
1081
1084
|
const k = U();
|
|
1082
1085
|
if (!k || !A.value)
|
|
1083
1086
|
return;
|
|
@@ -1086,26 +1089,26 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1086
1089
|
width: e.width,
|
|
1087
1090
|
offset: e.offset,
|
|
1088
1091
|
arrow: e.arrow
|
|
1089
|
-
}, X =
|
|
1092
|
+
}, X = eo(
|
|
1090
1093
|
k,
|
|
1091
1094
|
A.value,
|
|
1092
|
-
(
|
|
1095
|
+
(P == null ? void 0 : P.value) ?? void 0,
|
|
1093
1096
|
pe
|
|
1094
1097
|
);
|
|
1095
1098
|
a.left = X.overlayCoords.x, a.top = X.overlayCoords.y, a.placement = X.placement, d.hidden = X.arrowCoords === void 0, X.arrowCoords && (d.top = X.arrowCoords.y, d.left = X.arrowCoords.x);
|
|
1096
1099
|
}
|
|
1097
|
-
|
|
1100
|
+
te(
|
|
1098
1101
|
() => e.placement,
|
|
1099
|
-
() =>
|
|
1102
|
+
() => oe(T)
|
|
1100
1103
|
);
|
|
1101
1104
|
let y;
|
|
1102
|
-
function
|
|
1103
|
-
|
|
1105
|
+
function E() {
|
|
1106
|
+
Q(0);
|
|
1104
1107
|
}
|
|
1105
|
-
function
|
|
1106
|
-
|
|
1108
|
+
function M() {
|
|
1109
|
+
Q(e.delay);
|
|
1107
1110
|
}
|
|
1108
|
-
function
|
|
1111
|
+
function Q(k) {
|
|
1109
1112
|
y || (y = window.setTimeout(() => {
|
|
1110
1113
|
l.value = !0;
|
|
1111
1114
|
}, k));
|
|
@@ -1116,12 +1119,12 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1116
1119
|
k == null || k.focus();
|
|
1117
1120
|
}
|
|
1118
1121
|
}
|
|
1119
|
-
|
|
1120
|
-
function
|
|
1122
|
+
te(c, () => oe(se));
|
|
1123
|
+
function se() {
|
|
1121
1124
|
n("enter");
|
|
1122
1125
|
}
|
|
1123
1126
|
let W;
|
|
1124
|
-
function
|
|
1127
|
+
function ae() {
|
|
1125
1128
|
window.clearTimeout(W), W = window.setTimeout(() => a.animating = !1, 200), n("leave");
|
|
1126
1129
|
}
|
|
1127
1130
|
function U() {
|
|
@@ -1131,88 +1134,88 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1131
1134
|
function v() {
|
|
1132
1135
|
const k = U();
|
|
1133
1136
|
if (k)
|
|
1134
|
-
switch (Y = new MutationObserver(
|
|
1137
|
+
switch (Y = new MutationObserver(T), Y.observe(k, {
|
|
1135
1138
|
attributes: !1,
|
|
1136
1139
|
childList: !0,
|
|
1137
1140
|
characterData: !0,
|
|
1138
1141
|
subtree: !0
|
|
1139
1142
|
}), e.trigger) {
|
|
1140
1143
|
case "click":
|
|
1141
|
-
k.addEventListener("click",
|
|
1144
|
+
k.addEventListener("click", E);
|
|
1142
1145
|
break;
|
|
1143
1146
|
case "hover":
|
|
1144
|
-
k.addEventListener("mouseenter",
|
|
1147
|
+
k.addEventListener("mouseenter", M), k.addEventListener("mouseleave", H), k.addEventListener("focusin", E), k.addEventListener("focusout", H);
|
|
1145
1148
|
break;
|
|
1146
1149
|
}
|
|
1147
1150
|
}
|
|
1148
|
-
function
|
|
1151
|
+
function $() {
|
|
1149
1152
|
const k = U();
|
|
1150
1153
|
if (k)
|
|
1151
1154
|
switch (Y == null || Y.disconnect(), e.trigger) {
|
|
1152
1155
|
case "click":
|
|
1153
|
-
k.removeEventListener("click",
|
|
1156
|
+
k.removeEventListener("click", E);
|
|
1154
1157
|
break;
|
|
1155
1158
|
case "hover":
|
|
1156
|
-
k.removeEventListener("mouseenter",
|
|
1159
|
+
k.removeEventListener("mouseenter", M), k.removeEventListener("mouseleave", H), k.removeEventListener("focusin", E), k.removeEventListener("focusout", H);
|
|
1157
1160
|
break;
|
|
1158
1161
|
}
|
|
1159
1162
|
}
|
|
1160
|
-
function
|
|
1161
|
-
window.addEventListener("resize",
|
|
1163
|
+
function f() {
|
|
1164
|
+
window.addEventListener("resize", T), e.scrollLock || window.addEventListener("scroll", T);
|
|
1162
1165
|
}
|
|
1163
|
-
function
|
|
1164
|
-
window.removeEventListener("resize",
|
|
1166
|
+
function b() {
|
|
1167
|
+
window.removeEventListener("resize", T), e.scrollLock || window.removeEventListener("scroll", T);
|
|
1165
1168
|
}
|
|
1166
1169
|
let G;
|
|
1167
|
-
function
|
|
1168
|
-
U() ? (
|
|
1170
|
+
function ie() {
|
|
1171
|
+
U() ? (T(), G = window.setTimeout(ie, 100)) : H();
|
|
1169
1172
|
}
|
|
1170
|
-
function
|
|
1171
|
-
|
|
1173
|
+
function ee() {
|
|
1174
|
+
f(), e.spy ? ie() : T(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && oe(() => {
|
|
1172
1175
|
var k;
|
|
1173
1176
|
return (k = A.value) == null ? void 0 : k.focus();
|
|
1174
1177
|
});
|
|
1175
1178
|
}
|
|
1176
1179
|
function de() {
|
|
1177
|
-
|
|
1180
|
+
b(), e.spy && (clearTimeout(G), G = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
|
|
1178
1181
|
}
|
|
1179
1182
|
function ke() {
|
|
1180
1183
|
e.persistent || H();
|
|
1181
1184
|
}
|
|
1182
|
-
return
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
|
|
1186
|
-
}),
|
|
1185
|
+
return Re(() => {
|
|
1186
|
+
oe(v);
|
|
1187
|
+
}), ut(() => {
|
|
1188
|
+
$(), de();
|
|
1189
|
+
}), te(
|
|
1187
1190
|
l,
|
|
1188
1191
|
(k) => {
|
|
1189
|
-
|
|
1192
|
+
oe(() => k ? ee() : de());
|
|
1190
1193
|
},
|
|
1191
1194
|
{ immediate: !0 }
|
|
1192
|
-
), (k, pe) => (r(), S(
|
|
1195
|
+
), (k, pe) => (r(), S(ct, {
|
|
1193
1196
|
disabled: !l.value && !a.animating || e.inline,
|
|
1194
1197
|
to: e.attach
|
|
1195
1198
|
}, [
|
|
1196
1199
|
i.value ? (r(), p("div", {
|
|
1197
1200
|
key: 0,
|
|
1198
|
-
class:
|
|
1201
|
+
class: V([
|
|
1199
1202
|
e.backdropClass,
|
|
1200
1203
|
"q-overlay__underlay",
|
|
1201
1204
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1202
1205
|
])
|
|
1203
|
-
}, null, 2)) :
|
|
1204
|
-
|
|
1206
|
+
}, null, 2)) : q("", !0),
|
|
1207
|
+
z(ft, {
|
|
1205
1208
|
name: e.transition,
|
|
1206
1209
|
appear: "",
|
|
1207
|
-
onLeave:
|
|
1210
|
+
onLeave: ae
|
|
1208
1211
|
}, {
|
|
1209
1212
|
default: _(() => [
|
|
1210
1213
|
l.value ? (r(), p("div", {
|
|
1211
1214
|
key: 0,
|
|
1212
|
-
class:
|
|
1213
|
-
style:
|
|
1215
|
+
class: V(s.value),
|
|
1216
|
+
style: ue(w.value)
|
|
1214
1217
|
}, [
|
|
1215
|
-
|
|
1218
|
+
I("div", J({
|
|
1216
1219
|
class: "q-overlay__content",
|
|
1217
1220
|
ref_key: "overlayRef",
|
|
1218
1221
|
ref: A,
|
|
@@ -1225,32 +1228,32 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1225
1228
|
e.arrow ? (r(), p("div", {
|
|
1226
1229
|
key: 0,
|
|
1227
1230
|
ref_key: "arrowRef",
|
|
1228
|
-
ref:
|
|
1231
|
+
ref: P,
|
|
1229
1232
|
role: "presentation",
|
|
1230
1233
|
class: "q-overlay__arrow",
|
|
1231
|
-
style:
|
|
1232
|
-
}, null, 4)) :
|
|
1234
|
+
style: ue(L.value)
|
|
1235
|
+
}, null, 4)) : q("", !0),
|
|
1233
1236
|
h(k.$slots, "default")
|
|
1234
|
-
], 16,
|
|
1235
|
-
], 6)) :
|
|
1237
|
+
], 16, co)
|
|
1238
|
+
], 6)) : q("", !0)
|
|
1236
1239
|
]),
|
|
1237
1240
|
_: 3
|
|
1238
1241
|
}, 8, ["name"])
|
|
1239
1242
|
], 8, ["disabled", "to"]));
|
|
1240
1243
|
}
|
|
1241
|
-
}), ye =
|
|
1244
|
+
}), ye = C(fo), po = ["id"], mo = {
|
|
1242
1245
|
key: 0,
|
|
1243
1246
|
class: "q-field__label"
|
|
1244
|
-
},
|
|
1247
|
+
}, vo = ["for"], ho = {
|
|
1245
1248
|
key: 0,
|
|
1246
1249
|
class: "q-field__prepend"
|
|
1247
|
-
},
|
|
1250
|
+
}, yo = {
|
|
1248
1251
|
key: 1,
|
|
1249
1252
|
class: "q-field__append"
|
|
1250
1253
|
}, bo = {
|
|
1251
1254
|
key: 1,
|
|
1252
1255
|
class: "q-field__extras"
|
|
1253
|
-
},
|
|
1256
|
+
}, go = /* @__PURE__ */ B({
|
|
1254
1257
|
inheritAttrs: !1,
|
|
1255
1258
|
__name: "QField",
|
|
1256
1259
|
props: {
|
|
@@ -1264,12 +1267,12 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1264
1267
|
class: { default: void 0 }
|
|
1265
1268
|
},
|
|
1266
1269
|
setup(o, { expose: t }) {
|
|
1267
|
-
const e = o, n = fe(e.id), l =
|
|
1270
|
+
const e = o, n = fe(e.id), l = D(null), s = g(() => e.required && !e.readonly && !e.disabled);
|
|
1268
1271
|
return t({
|
|
1269
1272
|
fieldRef: l
|
|
1270
1273
|
}), (i, a) => (r(), p("div", {
|
|
1271
1274
|
id: m(n),
|
|
1272
|
-
class:
|
|
1275
|
+
class: V([
|
|
1273
1276
|
"q-field",
|
|
1274
1277
|
`q-field--${e.size}`,
|
|
1275
1278
|
{
|
|
@@ -1280,34 +1283,34 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1280
1283
|
e.class
|
|
1281
1284
|
])
|
|
1282
1285
|
}, [
|
|
1283
|
-
e.label ? (r(), p("div",
|
|
1286
|
+
e.label ? (r(), p("div", mo, [
|
|
1284
1287
|
h(i.$slots, "label.prepend"),
|
|
1285
|
-
|
|
1288
|
+
I("label", {
|
|
1286
1289
|
for: e.for
|
|
1287
|
-
},
|
|
1290
|
+
}, O(e.label), 9, vo),
|
|
1288
1291
|
h(i.$slots, "label.append")
|
|
1289
|
-
])) :
|
|
1292
|
+
])) : q("", !0),
|
|
1290
1293
|
h(i.$slots, "control", {}, () => [
|
|
1291
|
-
|
|
1294
|
+
I("div", J({
|
|
1292
1295
|
class: "q-field__control",
|
|
1293
1296
|
ref_key: "fieldRef",
|
|
1294
1297
|
ref: l
|
|
1295
1298
|
}, i.$attrs), [
|
|
1296
|
-
i.$slots.prepend ? (r(), p("div",
|
|
1299
|
+
i.$slots.prepend ? (r(), p("div", ho, [
|
|
1297
1300
|
h(i.$slots, "prepend")
|
|
1298
|
-
])) :
|
|
1301
|
+
])) : q("", !0),
|
|
1299
1302
|
h(i.$slots, "default"),
|
|
1300
|
-
i.$slots.append ? (r(), p("div",
|
|
1303
|
+
i.$slots.append ? (r(), p("div", yo, [
|
|
1301
1304
|
h(i.$slots, "append")
|
|
1302
|
-
])) :
|
|
1305
|
+
])) : q("", !0)
|
|
1303
1306
|
], 16)
|
|
1304
1307
|
]),
|
|
1305
1308
|
i.$slots.extras ? (r(), p("div", bo, [
|
|
1306
1309
|
h(i.$slots, "extras")
|
|
1307
|
-
])) :
|
|
1308
|
-
], 10,
|
|
1310
|
+
])) : q("", !0)
|
|
1311
|
+
], 10, po));
|
|
1309
1312
|
}
|
|
1310
|
-
}), Le =
|
|
1313
|
+
}), Le = C(go), _o = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], ko = /* @__PURE__ */ B({
|
|
1311
1314
|
inheritAttrs: !1,
|
|
1312
1315
|
__name: "QTextField",
|
|
1313
1316
|
props: /* @__PURE__ */ Z({
|
|
@@ -1328,19 +1331,19 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1328
1331
|
}),
|
|
1329
1332
|
emits: ["update:modelValue"],
|
|
1330
1333
|
setup(o, { expose: t }) {
|
|
1331
|
-
const e = o, n =
|
|
1334
|
+
const e = o, n = ne(o, "modelValue"), l = fe(e.id), s = D(null), i = D(null), a = g(
|
|
1332
1335
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1333
1336
|
);
|
|
1334
1337
|
return t({
|
|
1335
|
-
fieldRef:
|
|
1338
|
+
fieldRef: g(() => {
|
|
1336
1339
|
var d;
|
|
1337
1340
|
return (d = s.value) == null ? void 0 : d.fieldRef;
|
|
1338
1341
|
}),
|
|
1339
1342
|
inputRef: i
|
|
1340
|
-
}), (d,
|
|
1343
|
+
}), (d, c) => (r(), S(m(Le), {
|
|
1341
1344
|
ref_key: "fieldRef",
|
|
1342
1345
|
ref: s,
|
|
1343
|
-
class:
|
|
1346
|
+
class: V(["q-text-field", e.class]),
|
|
1344
1347
|
for: m(l),
|
|
1345
1348
|
label: e.label,
|
|
1346
1349
|
size: e.size,
|
|
@@ -1355,8 +1358,8 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1355
1358
|
h(d.$slots, "label.append")
|
|
1356
1359
|
]),
|
|
1357
1360
|
default: _(() => [
|
|
1358
|
-
mt(
|
|
1359
|
-
"onUpdate:modelValue":
|
|
1361
|
+
mt(I("input", J({
|
|
1362
|
+
"onUpdate:modelValue": c[0] || (c[0] = (w) => n.value = w),
|
|
1360
1363
|
ref_key: "inputRef",
|
|
1361
1364
|
ref: i,
|
|
1362
1365
|
id: m(l),
|
|
@@ -1368,7 +1371,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1368
1371
|
readonly: e.readonly,
|
|
1369
1372
|
disabled: e.disabled,
|
|
1370
1373
|
maxlength: e.maxLength
|
|
1371
|
-
}, d.$attrs), null, 16,
|
|
1374
|
+
}, d.$attrs), null, 16, _o), [
|
|
1372
1375
|
[vt, n.value]
|
|
1373
1376
|
])
|
|
1374
1377
|
]),
|
|
@@ -1397,22 +1400,25 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1397
1400
|
} : void 0
|
|
1398
1401
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1399
1402
|
}
|
|
1400
|
-
}),
|
|
1401
|
-
noData: "No data available"
|
|
1402
|
-
|
|
1403
|
+
}), lt = C(ko), wo = {
|
|
1404
|
+
noData: "No data available",
|
|
1405
|
+
clearValue: "Clear value",
|
|
1406
|
+
showOptions: "Show options"
|
|
1407
|
+
}, $o = {
|
|
1403
1408
|
chevron: {
|
|
1404
1409
|
icon: "chevron-down"
|
|
1405
1410
|
},
|
|
1406
1411
|
clear: {
|
|
1407
1412
|
icon: "close"
|
|
1408
1413
|
}
|
|
1409
|
-
},
|
|
1414
|
+
}, qo = ["data-key"], xo = {
|
|
1410
1415
|
key: 0,
|
|
1411
1416
|
class: "q-select__loader"
|
|
1412
|
-
},
|
|
1417
|
+
}, Lo = {
|
|
1413
1418
|
key: 2,
|
|
1414
1419
|
class: "q-select__loader"
|
|
1415
|
-
},
|
|
1420
|
+
}, Io = /* @__PURE__ */ B({
|
|
1421
|
+
inheritAttrs: !1,
|
|
1416
1422
|
__name: "QCombobox",
|
|
1417
1423
|
props: /* @__PURE__ */ Z({
|
|
1418
1424
|
id: { default: void 0 },
|
|
@@ -1432,7 +1438,8 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1432
1438
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1433
1439
|
size: { default: void 0 },
|
|
1434
1440
|
class: { default: void 0 },
|
|
1435
|
-
|
|
1441
|
+
icons: { default: () => $o },
|
|
1442
|
+
texts: { default: () => wo }
|
|
1436
1443
|
}, {
|
|
1437
1444
|
modelValue: {
|
|
1438
1445
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1445,108 +1452,108 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1445
1452
|
}),
|
|
1446
1453
|
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1447
1454
|
setup(o, { expose: t, emit: e }) {
|
|
1448
|
-
const n = o, l = e, s =
|
|
1449
|
-
|
|
1450
|
-
const A =
|
|
1451
|
-
var
|
|
1452
|
-
return n.filterMode === "manual" || !H.value ? n.items : (
|
|
1453
|
-
(
|
|
1455
|
+
const n = o, l = e, s = ne(o, "modelValue"), i = ne(o, "open"), a = ne(o, "search"), d = D(void 0), c = D(null), w = D(null), L = D(null), P = D(null);
|
|
1456
|
+
Re(W);
|
|
1457
|
+
const A = g(() => n.clearable && !n.readonly && !n.disabled), T = g(() => {
|
|
1458
|
+
var u;
|
|
1459
|
+
return n.filterMode === "manual" || !H.value ? n.items : (u = n.items) == null ? void 0 : u.filter(
|
|
1460
|
+
(x) => x[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1454
1461
|
);
|
|
1455
|
-
}), y =
|
|
1456
|
-
var
|
|
1457
|
-
return (
|
|
1458
|
-
}),
|
|
1459
|
-
const
|
|
1460
|
-
if (
|
|
1461
|
-
return
|
|
1462
|
-
}),
|
|
1463
|
-
var
|
|
1462
|
+
}), y = g(() => {
|
|
1463
|
+
var u;
|
|
1464
|
+
return (u = n.items) == null ? void 0 : u.find((x) => x[n.itemValue] === s.value);
|
|
1465
|
+
}), E = g(() => y.value === void 0), M = g(() => {
|
|
1466
|
+
const u = d.value;
|
|
1467
|
+
if (u !== void 0 && T.value[u])
|
|
1468
|
+
return T.value[u];
|
|
1469
|
+
}), Q = g(() => {
|
|
1470
|
+
var x;
|
|
1464
1471
|
if (d.value === void 0)
|
|
1465
1472
|
return;
|
|
1466
|
-
const
|
|
1467
|
-
return
|
|
1468
|
-
}), H =
|
|
1469
|
-
var
|
|
1470
|
-
return a.value.length > 0 && a.value !== ((
|
|
1473
|
+
const u = (x = w.value) == null ? void 0 : x.getItem(d.value);
|
|
1474
|
+
return u == null ? void 0 : u.id;
|
|
1475
|
+
}), H = g(() => {
|
|
1476
|
+
var u;
|
|
1477
|
+
return a.value.length > 0 && a.value !== ((u = y.value) == null ? void 0 : u[n.itemLabel]);
|
|
1471
1478
|
});
|
|
1472
|
-
function
|
|
1473
|
-
s.value =
|
|
1479
|
+
function se(u) {
|
|
1480
|
+
s.value = u, U();
|
|
1474
1481
|
}
|
|
1475
1482
|
function W() {
|
|
1476
|
-
var
|
|
1477
|
-
const
|
|
1478
|
-
a.value !==
|
|
1483
|
+
var x;
|
|
1484
|
+
const u = ((x = y.value) == null ? void 0 : x[n.itemLabel]) || "";
|
|
1485
|
+
a.value !== u && (a.value = u);
|
|
1479
1486
|
}
|
|
1480
|
-
function
|
|
1487
|
+
function ae() {
|
|
1481
1488
|
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, de());
|
|
1482
1489
|
}
|
|
1483
1490
|
function U() {
|
|
1484
1491
|
i.value && (l("before-hide"), i.value = !1, d.value = void 0);
|
|
1485
1492
|
}
|
|
1486
1493
|
function Y() {
|
|
1487
|
-
i.value ? U() :
|
|
1494
|
+
i.value ? U() : $();
|
|
1488
1495
|
}
|
|
1489
1496
|
function v() {
|
|
1490
1497
|
A.value && (s.value = n.emptyValue, d.value = void 0, de());
|
|
1491
1498
|
}
|
|
1492
|
-
function
|
|
1493
|
-
if (
|
|
1494
|
-
const
|
|
1495
|
-
|
|
1499
|
+
function $() {
|
|
1500
|
+
if (ae(), y.value !== void 0) {
|
|
1501
|
+
const u = T.value.indexOf(y.value);
|
|
1502
|
+
u !== -1 && oe(() => X(u));
|
|
1496
1503
|
}
|
|
1497
1504
|
}
|
|
1498
|
-
function u
|
|
1499
|
-
var
|
|
1500
|
-
if (!(!
|
|
1501
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1505
|
+
function f(u) {
|
|
1506
|
+
var x, F;
|
|
1507
|
+
if (!(!u.key || n.readonly || n.disabled))
|
|
1508
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), u.key === "Escape")
|
|
1502
1509
|
W(), i.value && U();
|
|
1503
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
1504
|
-
i.value ?
|
|
1510
|
+
else if (["ArrowDown", "ArrowUp"].includes(u.key))
|
|
1511
|
+
i.value ? oe(() => {
|
|
1505
1512
|
if (d.value === void 0)
|
|
1506
|
-
|
|
1513
|
+
b();
|
|
1507
1514
|
else {
|
|
1508
|
-
const R =
|
|
1509
|
-
|
|
1515
|
+
const R = u.key === "ArrowDown" ? "next" : "prev";
|
|
1516
|
+
ie(d.value, R);
|
|
1510
1517
|
}
|
|
1511
|
-
}) : (
|
|
1512
|
-
|
|
1518
|
+
}) : (ae(), oe(() => {
|
|
1519
|
+
u.key === "ArrowDown" ? b() : G();
|
|
1513
1520
|
}));
|
|
1514
|
-
else if (
|
|
1515
|
-
if (
|
|
1516
|
-
|
|
1517
|
-
} else
|
|
1518
|
-
}
|
|
1519
|
-
function
|
|
1520
|
-
var
|
|
1521
|
-
if (
|
|
1522
|
-
d.value = (
|
|
1521
|
+
else if (u.key === "Enter") {
|
|
1522
|
+
if (M.value === void 0) return;
|
|
1523
|
+
se(M.value[n.itemValue]);
|
|
1524
|
+
} else u.key === "Home" ? d.value = (x = w.value) == null ? void 0 : x.getFirstFocusableItemIndex() : u.key === "End" ? d.value = (F = w.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(u.key) || u.key === "Backspace") && ae();
|
|
1525
|
+
}
|
|
1526
|
+
function b() {
|
|
1527
|
+
var u, x;
|
|
1528
|
+
if (E.value)
|
|
1529
|
+
d.value = (x = w.value) == null ? void 0 : x.getFirstFocusableItemIndex();
|
|
1523
1530
|
else {
|
|
1524
|
-
const
|
|
1531
|
+
const F = T.value.findIndex(
|
|
1525
1532
|
(R) => R[n.itemValue] === s.value
|
|
1526
1533
|
);
|
|
1527
|
-
|
|
1534
|
+
F === -1 ? d.value = (u = w.value) == null ? void 0 : u.getFirstFocusableItemIndex() : d.value = F;
|
|
1528
1535
|
}
|
|
1529
1536
|
}
|
|
1530
1537
|
function G() {
|
|
1531
|
-
var
|
|
1532
|
-
d.value = (
|
|
1538
|
+
var u;
|
|
1539
|
+
d.value = (u = w.value) == null ? void 0 : u.getLastFocusableItemIndex();
|
|
1533
1540
|
}
|
|
1534
|
-
function
|
|
1535
|
-
var
|
|
1536
|
-
d.value = (
|
|
1541
|
+
function ie(u, x) {
|
|
1542
|
+
var F;
|
|
1543
|
+
d.value = (F = w.value) == null ? void 0 : F.getAdjacentItemIndex(u, x);
|
|
1537
1544
|
}
|
|
1538
|
-
function
|
|
1539
|
-
var me,
|
|
1540
|
-
const
|
|
1541
|
-
if (
|
|
1542
|
-
|
|
1545
|
+
function ee(u) {
|
|
1546
|
+
var me, Ee, De, Ae;
|
|
1547
|
+
const x = ((me = L == null ? void 0 : L.value) == null ? void 0 : me.$el) === u.relatedTarget, F = (De = (Ee = c == null ? void 0 : c.value) == null ? void 0 : Ee.$el) == null ? void 0 : De.contains(u.relatedTarget), R = (Ae = P == null ? void 0 : P.value) == null ? void 0 : Ae.contains(u.relatedTarget);
|
|
1548
|
+
if (x || R || F) {
|
|
1549
|
+
u.preventDefault(), u.stopPropagation();
|
|
1543
1550
|
return;
|
|
1544
1551
|
}
|
|
1545
1552
|
U(), A.value && !a.value && (s.value = n.emptyValue), W();
|
|
1546
1553
|
}
|
|
1547
1554
|
function de() {
|
|
1548
|
-
var
|
|
1549
|
-
(
|
|
1555
|
+
var u, x;
|
|
1556
|
+
(x = (u = c.value) == null ? void 0 : u.inputRef) == null || x.focus();
|
|
1550
1557
|
}
|
|
1551
1558
|
function ke() {
|
|
1552
1559
|
de();
|
|
@@ -1557,45 +1564,45 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1557
1564
|
function pe() {
|
|
1558
1565
|
l("hide");
|
|
1559
1566
|
}
|
|
1560
|
-
function X(
|
|
1561
|
-
var
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1567
|
+
function X(u) {
|
|
1568
|
+
var F;
|
|
1569
|
+
const x = (F = w.value) == null ? void 0 : F.getItem(u);
|
|
1570
|
+
w.value && (w.value.$el.scrollTop = x == null ? void 0 : x.offsetTop);
|
|
1564
1571
|
}
|
|
1565
|
-
return
|
|
1572
|
+
return te(s, W), te(
|
|
1566
1573
|
() => n.items,
|
|
1567
|
-
(
|
|
1568
|
-
if (!
|
|
1569
|
-
const
|
|
1570
|
-
a.value === (
|
|
1574
|
+
(u, x) => {
|
|
1575
|
+
if (!E.value) {
|
|
1576
|
+
const F = x.find((R) => R[n.itemValue] === s.value);
|
|
1577
|
+
a.value === (F == null ? void 0 : F[n.itemLabel]) && W();
|
|
1571
1578
|
}
|
|
1572
1579
|
},
|
|
1573
1580
|
{ deep: !0 }
|
|
1574
|
-
),
|
|
1575
|
-
|
|
1576
|
-
}),
|
|
1577
|
-
|
|
1578
|
-
}),
|
|
1581
|
+
), te(d, (u) => {
|
|
1582
|
+
u !== void 0 && X(u);
|
|
1583
|
+
}), te(a, (u) => {
|
|
1584
|
+
u && i.value && n.selectionMode === "automatic" && oe(b);
|
|
1585
|
+
}), te(
|
|
1579
1586
|
() => n.loading,
|
|
1580
|
-
(
|
|
1581
|
-
!
|
|
1587
|
+
(u) => {
|
|
1588
|
+
!u && i.value && oe(b);
|
|
1582
1589
|
}
|
|
1583
1590
|
), t({
|
|
1584
|
-
triggerEl:
|
|
1585
|
-
}), (
|
|
1586
|
-
var
|
|
1591
|
+
triggerEl: c
|
|
1592
|
+
}), (u, x) => {
|
|
1593
|
+
var F;
|
|
1587
1594
|
return r(), p(K, null, [
|
|
1588
|
-
|
|
1595
|
+
z(m(lt), J({
|
|
1589
1596
|
modelValue: a.value,
|
|
1590
|
-
"onUpdate:modelValue":
|
|
1597
|
+
"onUpdate:modelValue": x[0] || (x[0] = (R) => a.value = R),
|
|
1591
1598
|
id: n.id,
|
|
1592
1599
|
label: n.label,
|
|
1593
1600
|
required: n.required,
|
|
1594
1601
|
ref_key: "triggerEl",
|
|
1595
|
-
ref:
|
|
1602
|
+
ref: c,
|
|
1596
1603
|
role: "combobox",
|
|
1597
1604
|
placeholder: n.placeholder,
|
|
1598
|
-
class:
|
|
1605
|
+
class: [
|
|
1599
1606
|
"q-combobox",
|
|
1600
1607
|
{
|
|
1601
1608
|
"q-combobox--readonly": n.readonly,
|
|
@@ -1603,7 +1610,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1603
1610
|
"q-combobox--expanded": i.value
|
|
1604
1611
|
},
|
|
1605
1612
|
n.class
|
|
1606
|
-
]
|
|
1613
|
+
],
|
|
1607
1614
|
readonly: n.readonly,
|
|
1608
1615
|
disabled: n.disabled,
|
|
1609
1616
|
"data-loading": n.loading,
|
|
@@ -1611,38 +1618,41 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1611
1618
|
"aria-expanded": i.value,
|
|
1612
1619
|
"aria-haspopup": "listbox",
|
|
1613
1620
|
"aria-autocomplete": "list",
|
|
1614
|
-
"aria-activedescendant":
|
|
1615
|
-
size: n.size
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1621
|
+
"aria-activedescendant": Q.value,
|
|
1622
|
+
size: n.size
|
|
1623
|
+
}, u.$attrs, {
|
|
1624
|
+
onClick: $,
|
|
1625
|
+
onFocusout: ee,
|
|
1626
|
+
onKeydown: ve(f, ["stop"])
|
|
1627
|
+
}), qe({
|
|
1620
1628
|
"label.prepend": _(() => [
|
|
1621
|
-
h(
|
|
1629
|
+
h(u.$slots, "label.prepend")
|
|
1622
1630
|
]),
|
|
1623
1631
|
"label.append": _(() => [
|
|
1624
|
-
h(
|
|
1632
|
+
h(u.$slots, "label.append")
|
|
1625
1633
|
]),
|
|
1626
1634
|
append: _(() => [
|
|
1627
|
-
h(
|
|
1635
|
+
h(u.$slots, "append"),
|
|
1628
1636
|
A.value && a.value ? (r(), S(m(re), {
|
|
1629
1637
|
key: 0,
|
|
1630
1638
|
class: "q-combobox__clear",
|
|
1639
|
+
"aria-label": n.texts.clearValue,
|
|
1631
1640
|
"b-style": "plain",
|
|
1632
1641
|
borderless: "",
|
|
1633
1642
|
tabindex: "-1",
|
|
1634
1643
|
onClick: v
|
|
1635
1644
|
}, {
|
|
1636
1645
|
default: _(() => [
|
|
1637
|
-
|
|
1646
|
+
z(m(N), j(le(n.icons.clear)), null, 16)
|
|
1638
1647
|
]),
|
|
1639
1648
|
_: 1
|
|
1640
|
-
})) :
|
|
1641
|
-
n.readonly ?
|
|
1649
|
+
}, 8, ["aria-label"])) : q("", !0),
|
|
1650
|
+
n.readonly ? q("", !0) : (r(), S(m(re), {
|
|
1642
1651
|
key: 1,
|
|
1643
1652
|
ref_key: "toggleRef",
|
|
1644
|
-
ref:
|
|
1653
|
+
ref: L,
|
|
1645
1654
|
class: "q-combobox__chevron",
|
|
1655
|
+
"aria-label": n.texts.showOptions,
|
|
1646
1656
|
"b-style": "plain",
|
|
1647
1657
|
borderless: "",
|
|
1648
1658
|
tabindex: "-1",
|
|
@@ -1650,80 +1660,80 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1650
1660
|
onMousedown: ve(Y, ["stop", "prevent"])
|
|
1651
1661
|
}, {
|
|
1652
1662
|
default: _(() => [
|
|
1653
|
-
|
|
1663
|
+
z(m(N), j(le(n.icons.chevron)), null, 16)
|
|
1654
1664
|
]),
|
|
1655
1665
|
_: 1
|
|
1656
|
-
}, 8, ["disabled"]))
|
|
1666
|
+
}, 8, ["aria-label", "disabled"]))
|
|
1657
1667
|
]),
|
|
1658
1668
|
_: 2
|
|
1659
1669
|
}, [
|
|
1660
|
-
|
|
1670
|
+
u.$slots.prepend ? {
|
|
1661
1671
|
name: "prepend",
|
|
1662
1672
|
fn: _(() => [
|
|
1663
|
-
h(
|
|
1673
|
+
h(u.$slots, "prepend")
|
|
1664
1674
|
]),
|
|
1665
1675
|
key: "0"
|
|
1666
1676
|
} : void 0,
|
|
1667
|
-
|
|
1677
|
+
u.$slots.extras ? {
|
|
1668
1678
|
name: "extras",
|
|
1669
1679
|
fn: _(() => [
|
|
1670
|
-
h(
|
|
1680
|
+
h(u.$slots, "extras")
|
|
1671
1681
|
]),
|
|
1672
1682
|
key: "1"
|
|
1673
1683
|
} : void 0
|
|
1674
|
-
]),
|
|
1675
|
-
|
|
1684
|
+
]), 1040, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1685
|
+
z(m(ye), {
|
|
1676
1686
|
modelValue: i.value,
|
|
1677
|
-
"onUpdate:modelValue":
|
|
1687
|
+
"onUpdate:modelValue": x[2] || (x[2] = (R) => i.value = R),
|
|
1678
1688
|
spy: "",
|
|
1679
1689
|
"non-modal": "",
|
|
1680
1690
|
trigger: "manual",
|
|
1681
1691
|
placement: "bottom-start",
|
|
1682
1692
|
width: "anchor",
|
|
1683
1693
|
offset: 4,
|
|
1684
|
-
anchor: (
|
|
1694
|
+
anchor: (F = c.value) == null ? void 0 : F.$el,
|
|
1685
1695
|
onEnter: k,
|
|
1686
1696
|
onLeave: pe
|
|
1687
1697
|
}, {
|
|
1688
1698
|
default: _(() => {
|
|
1689
1699
|
var R;
|
|
1690
1700
|
return [
|
|
1691
|
-
|
|
1701
|
+
I("div", {
|
|
1692
1702
|
ref_key: "contentRef",
|
|
1693
|
-
ref:
|
|
1703
|
+
ref: P,
|
|
1694
1704
|
class: "q-select__body",
|
|
1695
1705
|
"data-testid": "combobox-dropdown",
|
|
1696
1706
|
"data-key": n.id,
|
|
1697
|
-
onFocusout:
|
|
1707
|
+
onFocusout: ee
|
|
1698
1708
|
}, [
|
|
1699
|
-
h(
|
|
1700
|
-
n.loading ? (r(), p("div",
|
|
1701
|
-
|
|
1702
|
-
])) :
|
|
1709
|
+
h(u.$slots, "body.prepend"),
|
|
1710
|
+
n.loading ? (r(), p("div", xo, [
|
|
1711
|
+
z(m(xe), { size: 24 })
|
|
1712
|
+
])) : T.value.length ? (r(), S(m(Ve), {
|
|
1703
1713
|
key: 1,
|
|
1704
1714
|
ref_key: "listRef",
|
|
1705
|
-
ref:
|
|
1715
|
+
ref: w,
|
|
1706
1716
|
class: "q-select__items",
|
|
1707
1717
|
selectable: "",
|
|
1708
1718
|
modelValue: s.value,
|
|
1709
1719
|
"onUpdate:modelValue": [
|
|
1710
|
-
|
|
1711
|
-
|
|
1720
|
+
x[1] || (x[1] = (me) => s.value = me),
|
|
1721
|
+
se
|
|
1712
1722
|
],
|
|
1713
|
-
highlighted: (R =
|
|
1714
|
-
items:
|
|
1715
|
-
groups:
|
|
1723
|
+
highlighted: (R = M.value) == null ? void 0 : R[n.itemValue],
|
|
1724
|
+
items: T.value,
|
|
1725
|
+
groups: u.groups,
|
|
1716
1726
|
"item-label": n.itemLabel,
|
|
1717
1727
|
"item-value": n.itemValue,
|
|
1718
1728
|
onMouseup: ke
|
|
1719
1729
|
}, {
|
|
1720
1730
|
item: _(({ item: me }) => [
|
|
1721
|
-
h(
|
|
1731
|
+
h(u.$slots, "item", { item: me })
|
|
1722
1732
|
]),
|
|
1723
1733
|
_: 3
|
|
1724
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), p("div",
|
|
1725
|
-
h(
|
|
1726
|
-
], 40,
|
|
1734
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), p("div", Lo, O(n.texts.noData), 1)),
|
|
1735
|
+
h(u.$slots, "body.append")
|
|
1736
|
+
], 40, qo)
|
|
1727
1737
|
];
|
|
1728
1738
|
}),
|
|
1729
1739
|
_: 3
|
|
@@ -1731,7 +1741,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1731
1741
|
], 64);
|
|
1732
1742
|
};
|
|
1733
1743
|
}
|
|
1734
|
-
}),
|
|
1744
|
+
}), So = C(Io), Bo = [
|
|
1735
1745
|
{
|
|
1736
1746
|
id: "button",
|
|
1737
1747
|
icon: {
|
|
@@ -1742,37 +1752,37 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1742
1752
|
label: "Ok"
|
|
1743
1753
|
}
|
|
1744
1754
|
}
|
|
1745
|
-
],
|
|
1755
|
+
], Co = {
|
|
1746
1756
|
icon: "check-circle-outline"
|
|
1747
|
-
},
|
|
1757
|
+
}, To = {
|
|
1748
1758
|
close: {
|
|
1749
1759
|
icon: "close"
|
|
1750
1760
|
}
|
|
1751
|
-
},
|
|
1761
|
+
}, Vo = { class: "q-dialog__header" }, Eo = { class: "q-dialog__header-title" }, Do = { class: "q-dialog__body" }, Ao = {
|
|
1752
1762
|
key: 0,
|
|
1753
1763
|
class: "q-dialog__body-icon"
|
|
1754
|
-
},
|
|
1764
|
+
}, Qo = { class: "q-dialog__body-text" }, Fo = ["innerHTML"], zo = { key: 1 }, Mo = { class: "q-dialog__body-actions" }, Oo = /* @__PURE__ */ B({
|
|
1755
1765
|
__name: "QDialog",
|
|
1756
1766
|
props: /* @__PURE__ */ Z({
|
|
1757
1767
|
text: { default: "" },
|
|
1758
1768
|
attach: { default: "body" },
|
|
1759
1769
|
inline: { type: Boolean },
|
|
1760
1770
|
backdropBlur: { type: Boolean, default: !0 },
|
|
1761
|
-
buttons: { default: () =>
|
|
1771
|
+
buttons: { default: () => Bo },
|
|
1762
1772
|
dismissible: { type: Boolean },
|
|
1763
1773
|
html: { type: Boolean, default: !0 },
|
|
1764
|
-
icon: { default: () =>
|
|
1774
|
+
icon: { default: () => Co },
|
|
1765
1775
|
id: { default: void 0 },
|
|
1766
1776
|
title: { default: "" },
|
|
1767
1777
|
class: { default: void 0 },
|
|
1768
|
-
|
|
1778
|
+
icons: { default: () => To }
|
|
1769
1779
|
}, {
|
|
1770
1780
|
modelValue: { type: Boolean },
|
|
1771
1781
|
modelModifiers: {}
|
|
1772
1782
|
}),
|
|
1773
1783
|
emits: ["update:modelValue"],
|
|
1774
1784
|
setup(o) {
|
|
1775
|
-
const t = o, e =
|
|
1785
|
+
const t = o, e = ne(o, "modelValue"), n = fe(t.id), l = g(() => ["q-dialog", t.class]);
|
|
1776
1786
|
function s() {
|
|
1777
1787
|
e.value = !1;
|
|
1778
1788
|
}
|
|
@@ -1791,48 +1801,48 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1791
1801
|
persistent: ""
|
|
1792
1802
|
}, {
|
|
1793
1803
|
default: _(() => [
|
|
1794
|
-
|
|
1795
|
-
class:
|
|
1804
|
+
I("div", {
|
|
1805
|
+
class: V(l.value)
|
|
1796
1806
|
}, [
|
|
1797
|
-
|
|
1798
|
-
|
|
1807
|
+
I("div", Vo, [
|
|
1808
|
+
I("span", Eo, O(t.title), 1),
|
|
1799
1809
|
t.dismissible ? (r(), S(m(re), {
|
|
1800
1810
|
key: 0,
|
|
1801
1811
|
"b-style": "tertiary",
|
|
1802
1812
|
onClick: s
|
|
1803
1813
|
}, {
|
|
1804
1814
|
default: _(() => [
|
|
1805
|
-
|
|
1815
|
+
z(m(N), j(le(t.icons.close)), null, 16)
|
|
1806
1816
|
]),
|
|
1807
1817
|
_: 1
|
|
1808
|
-
})) :
|
|
1818
|
+
})) : q("", !0)
|
|
1809
1819
|
]),
|
|
1810
1820
|
h(a.$slots, "body.content", {}, () => [
|
|
1811
|
-
|
|
1821
|
+
I("div", Do, [
|
|
1812
1822
|
h(a.$slots, "body.icon", {}, () => [
|
|
1813
|
-
t.icon ? (r(), p("span",
|
|
1814
|
-
|
|
1815
|
-
])) :
|
|
1823
|
+
t.icon ? (r(), p("span", Ao, [
|
|
1824
|
+
z(m(N), j(le(t.icon)), null, 16)
|
|
1825
|
+
])) : q("", !0)
|
|
1816
1826
|
]),
|
|
1817
|
-
|
|
1827
|
+
I("div", Qo, [
|
|
1818
1828
|
t.html ? (r(), p("span", {
|
|
1819
1829
|
key: 0,
|
|
1820
1830
|
innerHTML: t.text
|
|
1821
|
-
}, null, 8,
|
|
1831
|
+
}, null, 8, Fo)) : (r(), p("span", zo, O(t.text), 1))
|
|
1822
1832
|
]),
|
|
1823
1833
|
h(a.$slots, "body.append")
|
|
1824
1834
|
])
|
|
1825
1835
|
]),
|
|
1826
|
-
|
|
1827
|
-
(r(!0), p(K, null, he(t.buttons, (
|
|
1828
|
-
key:
|
|
1829
|
-
onClick: () => i(
|
|
1836
|
+
I("div", Mo, [
|
|
1837
|
+
(r(!0), p(K, null, he(t.buttons, (c) => (r(), S(m(re), J({ ref_for: !0 }, c.props, {
|
|
1838
|
+
key: c.id,
|
|
1839
|
+
onClick: () => i(c)
|
|
1830
1840
|
}), {
|
|
1831
1841
|
default: _(() => [
|
|
1832
|
-
|
|
1842
|
+
c.icon ? (r(), S(m(N), J({
|
|
1833
1843
|
key: 0,
|
|
1834
1844
|
ref_for: !0
|
|
1835
|
-
},
|
|
1845
|
+
}, c.icon), null, 16)) : q("", !0)
|
|
1836
1846
|
]),
|
|
1837
1847
|
_: 2
|
|
1838
1848
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -1842,13 +1852,13 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1842
1852
|
_: 3
|
|
1843
1853
|
}, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
|
|
1844
1854
|
}
|
|
1845
|
-
}),
|
|
1855
|
+
}), Po = C(Oo), Uo = {
|
|
1846
1856
|
key: 0,
|
|
1847
1857
|
class: "q-input-group__prepend"
|
|
1848
|
-
},
|
|
1858
|
+
}, No = { key: 0 }, Ho = {
|
|
1849
1859
|
key: 1,
|
|
1850
1860
|
class: "q-input-group__append"
|
|
1851
|
-
},
|
|
1861
|
+
}, Go = { key: 0 }, Ro = /* @__PURE__ */ B({
|
|
1852
1862
|
__name: "QInputGroup",
|
|
1853
1863
|
props: {
|
|
1854
1864
|
id: { default: void 0 },
|
|
@@ -1861,31 +1871,31 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1861
1871
|
},
|
|
1862
1872
|
setup(o) {
|
|
1863
1873
|
const t = o;
|
|
1864
|
-
return
|
|
1874
|
+
return je({
|
|
1865
1875
|
QField: {
|
|
1866
1876
|
size: "block"
|
|
1867
1877
|
}
|
|
1868
1878
|
}), (e, n) => (r(), S(m(Le), {
|
|
1869
1879
|
id: t.id,
|
|
1870
|
-
class:
|
|
1880
|
+
class: V(["q-input-group", t.class]),
|
|
1871
1881
|
label: t.label,
|
|
1872
1882
|
required: t.required,
|
|
1873
1883
|
size: t.size
|
|
1874
1884
|
}, qe({
|
|
1875
1885
|
default: _(() => [
|
|
1876
|
-
e.$slots.prepend || t.prependIcon ? (r(), p("div",
|
|
1877
|
-
t.prependIcon ? (r(), p("span",
|
|
1878
|
-
|
|
1879
|
-
])) :
|
|
1886
|
+
e.$slots.prepend || t.prependIcon ? (r(), p("div", Uo, [
|
|
1887
|
+
t.prependIcon ? (r(), p("span", No, [
|
|
1888
|
+
z(m(N), j(le(t.prependIcon)), null, 16)
|
|
1889
|
+
])) : q("", !0),
|
|
1880
1890
|
h(e.$slots, "prepend")
|
|
1881
|
-
])) :
|
|
1891
|
+
])) : q("", !0),
|
|
1882
1892
|
h(e.$slots, "default"),
|
|
1883
|
-
e.$slots.append || t.appendIcon ? (r(), p("div",
|
|
1884
|
-
t.appendIcon ? (r(), p("span",
|
|
1885
|
-
|
|
1886
|
-
])) :
|
|
1893
|
+
e.$slots.append || t.appendIcon ? (r(), p("div", Ho, [
|
|
1894
|
+
t.appendIcon ? (r(), p("span", Go, [
|
|
1895
|
+
z(m(N), j(le(t.appendIcon)), null, 16)
|
|
1896
|
+
])) : q("", !0),
|
|
1887
1897
|
h(e.$slots, "append")
|
|
1888
|
-
])) :
|
|
1898
|
+
])) : q("", !0)
|
|
1889
1899
|
]),
|
|
1890
1900
|
_: 2
|
|
1891
1901
|
}, [
|
|
@@ -1898,7 +1908,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1898
1908
|
} : void 0
|
|
1899
1909
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
1900
1910
|
}
|
|
1901
|
-
}),
|
|
1911
|
+
}), Ko = C(Ro), jo = /* @__PURE__ */ B({
|
|
1902
1912
|
__name: "QLineLoader",
|
|
1903
1913
|
props: {
|
|
1904
1914
|
class: { default: void 0 }
|
|
@@ -1906,16 +1916,16 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1906
1916
|
setup(o) {
|
|
1907
1917
|
const t = o;
|
|
1908
1918
|
return (e, n) => (r(), p("div", {
|
|
1909
|
-
class:
|
|
1919
|
+
class: V(["q-line-loader", t.class])
|
|
1910
1920
|
}, null, 2));
|
|
1911
1921
|
}
|
|
1912
|
-
}),
|
|
1922
|
+
}), Wo = C(jo), Xo = {
|
|
1913
1923
|
key: 0,
|
|
1914
1924
|
class: "q-popover__header"
|
|
1915
|
-
},
|
|
1925
|
+
}, Yo = {
|
|
1916
1926
|
key: 1,
|
|
1917
1927
|
class: "q-popover__body"
|
|
1918
|
-
},
|
|
1928
|
+
}, Zo = ["innerHTML"], Jo = { key: 1 }, en = /* @__PURE__ */ B({
|
|
1919
1929
|
inheritAttrs: !1,
|
|
1920
1930
|
__name: "QPopover",
|
|
1921
1931
|
props: /* @__PURE__ */ Z({
|
|
@@ -1934,7 +1944,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1934
1944
|
}),
|
|
1935
1945
|
emits: ["update:modelValue"],
|
|
1936
1946
|
setup(o) {
|
|
1937
|
-
const t = o, e =
|
|
1947
|
+
const t = o, e = ne(o, "modelValue");
|
|
1938
1948
|
return (n, l) => (r(), S(m(ye), {
|
|
1939
1949
|
modelValue: e.value,
|
|
1940
1950
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.value = s),
|
|
@@ -1948,35 +1958,31 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1948
1958
|
placement: t.placement
|
|
1949
1959
|
}, {
|
|
1950
1960
|
default: _(() => [
|
|
1951
|
-
t.title || n.$slots.header ? (r(), p("h3",
|
|
1952
|
-
|
|
1961
|
+
t.title || n.$slots.header ? (r(), p("h3", Xo, [
|
|
1962
|
+
ce(O(t.title) + " ", 1),
|
|
1953
1963
|
h(n.$slots, "header")
|
|
1954
|
-
])) :
|
|
1955
|
-
t.text || n.$slots.body ? (r(), p("div",
|
|
1964
|
+
])) : q("", !0),
|
|
1965
|
+
t.text || n.$slots.body ? (r(), p("div", Yo, [
|
|
1956
1966
|
t.html ? (r(), p("span", {
|
|
1957
1967
|
key: 0,
|
|
1958
1968
|
innerHTML: t.text
|
|
1959
|
-
}, null, 8,
|
|
1969
|
+
}, null, 8, Zo)) : (r(), p("span", Jo, O(t.text), 1)),
|
|
1960
1970
|
h(n.$slots, "body")
|
|
1961
|
-
])) :
|
|
1971
|
+
])) : q("", !0)
|
|
1962
1972
|
]),
|
|
1963
1973
|
_: 3
|
|
1964
1974
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
1965
1975
|
}
|
|
1966
|
-
}),
|
|
1976
|
+
}), tn = C(en), st = {
|
|
1967
1977
|
emptyMessage: "Select a field to view details."
|
|
1968
|
-
},
|
|
1978
|
+
}, at = {
|
|
1969
1979
|
open: {
|
|
1970
1980
|
icon: "minus-box"
|
|
1971
1981
|
},
|
|
1972
1982
|
close: {
|
|
1973
1983
|
icon: "plus-box"
|
|
1974
1984
|
}
|
|
1975
|
-
},
|
|
1976
|
-
/* @__PURE__ */ L("tr", null, [
|
|
1977
|
-
/* @__PURE__ */ L("th", { colspan: "2" })
|
|
1978
|
-
])
|
|
1979
|
-
], -1), sn = /* @__PURE__ */ B({
|
|
1985
|
+
}, on = { class: "q-property-list__table" }, nn = /* @__PURE__ */ B({
|
|
1980
1986
|
__name: "QPropertyList",
|
|
1981
1987
|
props: {
|
|
1982
1988
|
fields: { default: () => [] },
|
|
@@ -1984,102 +1990,108 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
1984
1990
|
noToggle: { type: Boolean },
|
|
1985
1991
|
panelPosition: { default: "bottom" },
|
|
1986
1992
|
groups: { default: () => [] },
|
|
1993
|
+
readonly: { type: Boolean },
|
|
1987
1994
|
class: { default: void 0 },
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
texts: Ee
|
|
1991
|
-
}) },
|
|
1992
|
-
readonly: { type: Boolean }
|
|
1995
|
+
icons: { default: () => at },
|
|
1996
|
+
texts: { default: () => st }
|
|
1993
1997
|
},
|
|
1994
1998
|
emits: ["field-change"],
|
|
1995
1999
|
setup(o, { emit: t }) {
|
|
1996
|
-
const e = o, n = t, l =
|
|
1997
|
-
(y) => e.fields.some((
|
|
1998
|
-
) : [{ id: "", title: "" }]), d =
|
|
2000
|
+
const e = o, n = t, l = D(e.groups.map((y) => y.id)), s = D(void 0), i = D(null), a = g(() => e.groups.length ? e.groups.filter(
|
|
2001
|
+
(y) => e.fields.some((E) => E.group === y.id)
|
|
2002
|
+
) : [{ id: "", title: "" }]), d = g(() => [
|
|
1999
2003
|
e.class,
|
|
2000
2004
|
{
|
|
2001
2005
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2002
2006
|
}
|
|
2003
2007
|
]);
|
|
2004
|
-
function
|
|
2008
|
+
function c() {
|
|
2005
2009
|
var y;
|
|
2006
2010
|
(y = i.value) != null && y.contains(document.activeElement) || (s.value = void 0);
|
|
2007
2011
|
}
|
|
2008
|
-
function
|
|
2009
|
-
return y ? e.fields.filter((
|
|
2012
|
+
function w(y) {
|
|
2013
|
+
return y ? e.fields.filter((E) => E.group === y) : e.fields;
|
|
2010
2014
|
}
|
|
2011
|
-
function
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2015
|
+
function L(y) {
|
|
2016
|
+
const E = l.value.indexOf(y);
|
|
2017
|
+
E === -1 ? l.value.push(y) : l.value.splice(E, 1);
|
|
2014
2018
|
}
|
|
2015
|
-
function
|
|
2016
|
-
var
|
|
2019
|
+
function P(y) {
|
|
2020
|
+
var Q;
|
|
2021
|
+
const E = y.group && !l.value.includes(y.group), M = ((Q = s.value) == null ? void 0 : Q.id) === y.id;
|
|
2017
2022
|
return [
|
|
2018
2023
|
{
|
|
2019
|
-
"q-property-list__row--closed":
|
|
2020
|
-
"q-property-list__row--selected":
|
|
2024
|
+
"q-property-list__row--closed": E,
|
|
2025
|
+
"q-property-list__row--selected": M
|
|
2021
2026
|
}
|
|
2022
2027
|
];
|
|
2023
2028
|
}
|
|
2024
2029
|
function A(y) {
|
|
2025
2030
|
s.value = y;
|
|
2026
2031
|
}
|
|
2027
|
-
function
|
|
2028
|
-
e.readonly || (y.props.readonly ?? !1) || (y.props.modelValue =
|
|
2032
|
+
function T(y, E) {
|
|
2033
|
+
e.readonly || (y.props.readonly ?? !1) || (y.props.modelValue = E, n("field-change", y));
|
|
2029
2034
|
}
|
|
2030
|
-
return (y,
|
|
2035
|
+
return (y, E) => (r(), p("div", {
|
|
2031
2036
|
tabindex: "0",
|
|
2032
|
-
class:
|
|
2037
|
+
class: V(["q-property-list", d.value]),
|
|
2033
2038
|
ref_key: "componentRoot",
|
|
2034
2039
|
ref: i,
|
|
2035
|
-
onFocusout:
|
|
2040
|
+
onFocusout: c
|
|
2036
2041
|
}, [
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
+
I("table", on, [
|
|
2043
|
+
E[0] || (E[0] = I("thead", { class: "q-property-list__header" }, [
|
|
2044
|
+
I("tr", null, [
|
|
2045
|
+
I("th", { colspan: "2" })
|
|
2046
|
+
])
|
|
2047
|
+
], -1)),
|
|
2048
|
+
I("tbody", null, [
|
|
2049
|
+
(r(!0), p(K, null, he(a.value, (M) => (r(), p(K, {
|
|
2050
|
+
key: M.id
|
|
2042
2051
|
}, [
|
|
2043
|
-
|
|
2052
|
+
M.title ? (r(), S(m(rt), {
|
|
2044
2053
|
key: 0,
|
|
2045
|
-
id:
|
|
2046
|
-
title:
|
|
2047
|
-
|
|
2054
|
+
id: M.id,
|
|
2055
|
+
title: M.title,
|
|
2056
|
+
icons: e.icons,
|
|
2048
2057
|
"no-toggle": e.noToggle,
|
|
2049
|
-
onToggleGroup:
|
|
2050
|
-
}, null, 8, ["id", "title", "
|
|
2051
|
-
(r(!0), p(K, null, he(
|
|
2052
|
-
key:
|
|
2053
|
-
class:
|
|
2054
|
-
field:
|
|
2058
|
+
onToggleGroup: L
|
|
2059
|
+
}, null, 8, ["id", "title", "icons", "no-toggle"])) : q("", !0),
|
|
2060
|
+
(r(!0), p(K, null, he(w(M.id), (Q) => (r(), S(m(it), {
|
|
2061
|
+
key: Q.id,
|
|
2062
|
+
class: V(P(Q)),
|
|
2063
|
+
field: Q,
|
|
2055
2064
|
readonly: e.readonly,
|
|
2056
2065
|
onFocus: A,
|
|
2057
|
-
onFieldChange:
|
|
2066
|
+
onFieldChange: T
|
|
2058
2067
|
}, {
|
|
2059
2068
|
default: _(() => [
|
|
2060
|
-
h(y.$slots,
|
|
2069
|
+
h(y.$slots, Q.id, { field: Q })
|
|
2061
2070
|
]),
|
|
2062
2071
|
_: 2
|
|
2063
2072
|
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2064
2073
|
], 64))), 128))
|
|
2065
2074
|
])
|
|
2066
2075
|
]),
|
|
2067
|
-
e.noPanel ?
|
|
2076
|
+
e.noPanel ? q("", !0) : (r(), S(m(dt), {
|
|
2068
2077
|
key: 0,
|
|
2069
|
-
|
|
2070
|
-
|
|
2078
|
+
field: s.value,
|
|
2079
|
+
texts: e.texts
|
|
2071
2080
|
}, {
|
|
2072
2081
|
default: _(() => [
|
|
2073
2082
|
s.value ? h(y.$slots, "panel", {
|
|
2074
2083
|
key: 0,
|
|
2075
2084
|
field: s.value
|
|
2076
|
-
}) :
|
|
2085
|
+
}) : q("", !0)
|
|
2077
2086
|
]),
|
|
2078
2087
|
_: 3
|
|
2079
|
-
}, 8, ["
|
|
2088
|
+
}, 8, ["field", "texts"]))
|
|
2080
2089
|
], 34));
|
|
2081
2090
|
}
|
|
2082
|
-
}),
|
|
2091
|
+
}), ln = {
|
|
2092
|
+
key: 0,
|
|
2093
|
+
class: "q-property-list-field__container"
|
|
2094
|
+
}, sn = /* @__PURE__ */ B({
|
|
2083
2095
|
__name: "QPropertyListRow",
|
|
2084
2096
|
props: {
|
|
2085
2097
|
field: {},
|
|
@@ -2088,60 +2100,56 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2088
2100
|
},
|
|
2089
2101
|
emits: ["focus", "field-change"],
|
|
2090
2102
|
setup(o, { emit: t }) {
|
|
2091
|
-
const e = o, n = t, l =
|
|
2092
|
-
var
|
|
2093
|
-
const
|
|
2094
|
-
return (
|
|
2095
|
-
}), i =
|
|
2103
|
+
const e = o, n = t, l = g(() => ["q-property-list__row", e.class]), s = g(() => {
|
|
2104
|
+
var L;
|
|
2105
|
+
const w = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
2106
|
+
return (L = e.field.props) != null && L.required && w.push("q-property-list__cell--required"), w;
|
|
2107
|
+
}), i = g(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
2096
2108
|
function a() {
|
|
2097
2109
|
n("focus", e.field);
|
|
2098
2110
|
}
|
|
2099
|
-
function d(
|
|
2100
|
-
n("field-change", e.field,
|
|
2111
|
+
function d(w) {
|
|
2112
|
+
n("field-change", e.field, w);
|
|
2101
2113
|
}
|
|
2102
|
-
const
|
|
2114
|
+
const c = g(() => ({
|
|
2103
2115
|
...e.field.props,
|
|
2104
2116
|
readonly: i.value
|
|
2105
2117
|
}));
|
|
2106
|
-
return (
|
|
2107
|
-
class:
|
|
2118
|
+
return (w, L) => (r(), p("tr", {
|
|
2119
|
+
class: V(l.value),
|
|
2108
2120
|
onFocusin: a
|
|
2109
2121
|
}, [
|
|
2110
|
-
|
|
2111
|
-
class:
|
|
2122
|
+
I("td", {
|
|
2123
|
+
class: V(s.value),
|
|
2112
2124
|
onClick: a
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2125
|
+
}, O(e.field.label), 3),
|
|
2126
|
+
I("td", {
|
|
2115
2127
|
class: "q-property-list__cell",
|
|
2116
2128
|
onClick: a
|
|
2117
2129
|
}, [
|
|
2118
|
-
h(
|
|
2119
|
-
|
|
2120
|
-
(r(), S(Be(e.field.component),
|
|
2130
|
+
h(w.$slots, "default", {}, () => [
|
|
2131
|
+
e.field.component ? (r(), p("div", ln, [
|
|
2132
|
+
(r(), S(Be(e.field.component), J(c.value, {
|
|
2121
2133
|
"model-value": e.field.props.modelValue,
|
|
2122
2134
|
"onUpdate:modelValue": d
|
|
2123
2135
|
}), null, 16, ["model-value"]))
|
|
2124
|
-
])
|
|
2136
|
+
])) : q("", !0)
|
|
2125
2137
|
])
|
|
2126
2138
|
])
|
|
2127
2139
|
], 34));
|
|
2128
2140
|
}
|
|
2129
|
-
}),
|
|
2141
|
+
}), an = ["data-key", "aria-labelledby"], rn = ["id"], dn = { class: "q-property-list-group__content" }, un = /* @__PURE__ */ B({
|
|
2130
2142
|
__name: "QPropertyListGroup",
|
|
2131
2143
|
props: {
|
|
2132
2144
|
id: {},
|
|
2133
2145
|
title: {},
|
|
2134
2146
|
noToggle: { type: Boolean, default: !1 },
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
texts: Ee
|
|
2138
|
-
}) }
|
|
2147
|
+
icons: { default: () => at },
|
|
2148
|
+
texts: {}
|
|
2139
2149
|
},
|
|
2140
2150
|
emits: ["toggle-group"],
|
|
2141
2151
|
setup(o, { emit: t }) {
|
|
2142
|
-
const e = o, n = t, l =
|
|
2143
|
-
() => l.value ? e.internals.icons.open : e.internals.icons.close
|
|
2144
|
-
), a = b(() => [
|
|
2152
|
+
const e = o, n = t, l = D(!0), s = fe(), i = g(() => l.value ? e.icons.open : e.icons.close), a = g(() => [
|
|
2145
2153
|
"q-property-list-group",
|
|
2146
2154
|
{
|
|
2147
2155
|
"q-property-list-group--no-toggle": e.noToggle
|
|
@@ -2150,74 +2158,75 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2150
2158
|
function d() {
|
|
2151
2159
|
e.noToggle || (l.value = !l.value, n("toggle-group", e.id));
|
|
2152
2160
|
}
|
|
2153
|
-
return (
|
|
2154
|
-
class:
|
|
2161
|
+
return (c, w) => (r(), p("tr", {
|
|
2162
|
+
class: V(a.value),
|
|
2155
2163
|
role: "group",
|
|
2156
2164
|
"data-key": e.id,
|
|
2157
2165
|
"aria-labelledby": m(s),
|
|
2158
2166
|
onClick: d
|
|
2159
2167
|
}, [
|
|
2160
|
-
|
|
2168
|
+
I("td", {
|
|
2161
2169
|
id: m(s),
|
|
2162
2170
|
colspan: "2"
|
|
2163
2171
|
}, [
|
|
2164
|
-
|
|
2165
|
-
e.noToggle ?
|
|
2172
|
+
I("div", dn, [
|
|
2173
|
+
e.noToggle ? q("", !0) : (r(), S(m(re), {
|
|
2166
2174
|
key: 0,
|
|
2167
2175
|
"b-style": "tertiary",
|
|
2168
2176
|
borderless: "",
|
|
2169
2177
|
onClick: d
|
|
2170
2178
|
}, {
|
|
2171
2179
|
default: _(() => [
|
|
2172
|
-
|
|
2180
|
+
z(m(N), j(le(i.value)), null, 16)
|
|
2173
2181
|
]),
|
|
2174
2182
|
_: 1
|
|
2175
2183
|
})),
|
|
2176
|
-
|
|
2184
|
+
ce(" " + O(e.title), 1)
|
|
2177
2185
|
])
|
|
2178
|
-
], 8,
|
|
2179
|
-
], 10,
|
|
2186
|
+
], 8, rn)
|
|
2187
|
+
], 10, an));
|
|
2180
2188
|
}
|
|
2181
|
-
}),
|
|
2189
|
+
}), cn = { class: "q-property-list-panel__container" }, fn = { class: "q-property-list-panel__label" }, pn = { class: "q-property-list-panel__description" }, mn = {
|
|
2182
2190
|
key: 1,
|
|
2183
2191
|
class: "q-property-list-panel__empty"
|
|
2184
|
-
},
|
|
2192
|
+
}, vn = /* @__PURE__ */ B({
|
|
2185
2193
|
__name: "QPropertyListPanel",
|
|
2186
2194
|
props: {
|
|
2187
2195
|
field: { default: void 0 },
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
texts: Ee
|
|
2191
|
-
}) }
|
|
2196
|
+
icons: {},
|
|
2197
|
+
texts: { default: () => st }
|
|
2192
2198
|
},
|
|
2193
2199
|
setup(o) {
|
|
2194
2200
|
const t = o;
|
|
2195
|
-
return (e, n) => (r(), p("div",
|
|
2201
|
+
return (e, n) => (r(), p("div", cn, [
|
|
2196
2202
|
t.field ? h(e.$slots, "default", { key: 0 }, () => [
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
]) : (r(), p("div",
|
|
2203
|
+
I("div", fn, O(t.field.label), 1),
|
|
2204
|
+
I("div", pn, O(t.field.description), 1)
|
|
2205
|
+
]) : (r(), p("div", mn, O(t.texts.emptyMessage), 1))
|
|
2200
2206
|
]));
|
|
2201
2207
|
}
|
|
2202
|
-
}),
|
|
2203
|
-
placeholder: "Choose..."
|
|
2204
|
-
|
|
2208
|
+
}), hn = C(nn), it = C(sn), rt = C(un), dt = C(vn), yn = {
|
|
2209
|
+
placeholder: "Choose...",
|
|
2210
|
+
clearValue: "Clear value",
|
|
2211
|
+
showOptions: "Show options"
|
|
2212
|
+
}, bn = {
|
|
2205
2213
|
chevron: {
|
|
2206
2214
|
icon: "chevron-down"
|
|
2207
2215
|
},
|
|
2208
2216
|
clear: {
|
|
2209
2217
|
icon: "close"
|
|
2210
2218
|
}
|
|
2211
|
-
},
|
|
2219
|
+
}, gn = {
|
|
2212
2220
|
key: 0,
|
|
2213
2221
|
class: "q-select__value"
|
|
2214
|
-
},
|
|
2222
|
+
}, _n = {
|
|
2215
2223
|
key: 1,
|
|
2216
2224
|
class: "q-select__placeholder"
|
|
2217
|
-
},
|
|
2225
|
+
}, kn = ["data-key"], wn = {
|
|
2218
2226
|
key: 0,
|
|
2219
2227
|
class: "q-select__loader"
|
|
2220
|
-
},
|
|
2228
|
+
}, $n = /* @__PURE__ */ B({
|
|
2229
|
+
inheritAttrs: !1,
|
|
2221
2230
|
__name: "QSelect",
|
|
2222
2231
|
props: /* @__PURE__ */ Z({
|
|
2223
2232
|
id: { default: void 0 },
|
|
@@ -2234,7 +2243,8 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2234
2243
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
2235
2244
|
size: { default: void 0 },
|
|
2236
2245
|
class: { default: "" },
|
|
2237
|
-
|
|
2246
|
+
icons: { default: () => bn },
|
|
2247
|
+
texts: { default: () => yn }
|
|
2238
2248
|
}, {
|
|
2239
2249
|
modelValue: {
|
|
2240
2250
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2243,79 +2253,79 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2243
2253
|
}),
|
|
2244
2254
|
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2245
2255
|
setup(o, { emit: t }) {
|
|
2246
|
-
const e = o, n = t, l =
|
|
2256
|
+
const e = o, n = t, l = ne(o, "modelValue"), s = D(!1), i = D(""), a = D(null), d = D(null), c = D(null), w = g(() => L.value === void 0), L = g(
|
|
2247
2257
|
() => {
|
|
2248
|
-
var
|
|
2249
|
-
return (
|
|
2258
|
+
var f;
|
|
2259
|
+
return (f = e.items) == null ? void 0 : f.find((b) => b[e.itemValue] === l.value);
|
|
2250
2260
|
}
|
|
2251
|
-
),
|
|
2252
|
-
() =>
|
|
2253
|
-
), A =
|
|
2261
|
+
), P = g(
|
|
2262
|
+
() => L.value ? L.value[e.itemLabel] : ""
|
|
2263
|
+
), A = g(
|
|
2254
2264
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2255
2265
|
);
|
|
2256
|
-
function
|
|
2257
|
-
l.value =
|
|
2266
|
+
function T(f) {
|
|
2267
|
+
l.value = f, Q();
|
|
2258
2268
|
}
|
|
2259
2269
|
function y() {
|
|
2260
|
-
A.value && (
|
|
2270
|
+
A.value && (T(e.emptyValue), Y());
|
|
2261
2271
|
}
|
|
2262
|
-
function
|
|
2263
|
-
var
|
|
2264
|
-
!((
|
|
2272
|
+
function E(f) {
|
|
2273
|
+
var b, G, ie;
|
|
2274
|
+
!((b = c.value) != null && b.contains(f.relatedTarget)) && !((ie = (G = a.value) == null ? void 0 : G.fieldRef) != null && ie.contains(f.relatedTarget)) && Q();
|
|
2265
2275
|
}
|
|
2266
|
-
function
|
|
2276
|
+
function M() {
|
|
2267
2277
|
s.value || (n("before-show"), s.value = !0);
|
|
2268
2278
|
}
|
|
2269
|
-
function
|
|
2279
|
+
function Q() {
|
|
2270
2280
|
s.value && (n("before-hide"), s.value = !1);
|
|
2271
2281
|
}
|
|
2272
2282
|
function H() {
|
|
2273
|
-
e.readonly || e.disabled || (s.value ?
|
|
2274
|
-
}
|
|
2275
|
-
let
|
|
2276
|
-
function W(
|
|
2277
|
-
if (!(!
|
|
2278
|
-
if (window.clearTimeout(
|
|
2279
|
-
i.value +=
|
|
2280
|
-
for (let
|
|
2281
|
-
if (e.items[
|
|
2282
|
-
|
|
2283
|
+
e.readonly || e.disabled || (s.value ? Q() : M());
|
|
2284
|
+
}
|
|
2285
|
+
let se;
|
|
2286
|
+
function W(f) {
|
|
2287
|
+
if (!(!f.key || e.readonly || e.disabled)) {
|
|
2288
|
+
if (window.clearTimeout(se), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && (f.preventDefault(), f.stopPropagation()), ["Enter", " "].includes(f.key) && (s.value = !0), ["Escape", "Tab"].includes(f.key) && (s.value ? s.value = !1 : A.value && f.key === "Escape" && y()), f.key === "Delete" && e.clearable && y(), /^[a-z]$/i.test(f.key)) {
|
|
2289
|
+
i.value += f.key.toLowerCase();
|
|
2290
|
+
for (let b = 0; b < e.items.length; b++)
|
|
2291
|
+
if (e.items[b][e.itemLabel].toLowerCase().startsWith(i.value)) {
|
|
2292
|
+
$(b);
|
|
2283
2293
|
break;
|
|
2284
2294
|
}
|
|
2285
2295
|
}
|
|
2286
|
-
|
|
2296
|
+
se = window.setTimeout(function() {
|
|
2287
2297
|
i.value = "";
|
|
2288
2298
|
}, 500);
|
|
2289
2299
|
}
|
|
2290
2300
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2293
|
-
e.loading ? (
|
|
2301
|
+
function ae() {
|
|
2302
|
+
var f;
|
|
2303
|
+
e.loading ? (f = c.value) == null || f.focus() : v(), n("show");
|
|
2294
2304
|
}
|
|
2295
2305
|
function U() {
|
|
2296
2306
|
Y(), n("hide");
|
|
2297
2307
|
}
|
|
2298
2308
|
function Y() {
|
|
2299
|
-
var
|
|
2300
|
-
(
|
|
2309
|
+
var f, b;
|
|
2310
|
+
(b = (f = a.value) == null ? void 0 : f.fieldRef) == null || b.focus();
|
|
2301
2311
|
}
|
|
2302
2312
|
function v() {
|
|
2303
|
-
var
|
|
2304
|
-
(
|
|
2313
|
+
var f;
|
|
2314
|
+
(f = d.value) == null || f.$el.focus();
|
|
2305
2315
|
}
|
|
2306
|
-
function
|
|
2307
|
-
var
|
|
2308
|
-
(
|
|
2316
|
+
function $(f) {
|
|
2317
|
+
var b;
|
|
2318
|
+
(b = d.value) == null || b.focusItem(f);
|
|
2309
2319
|
}
|
|
2310
|
-
return
|
|
2320
|
+
return te(
|
|
2311
2321
|
() => e.loading,
|
|
2312
|
-
(
|
|
2313
|
-
!
|
|
2322
|
+
(f) => {
|
|
2323
|
+
!f && s.value && oe(v);
|
|
2314
2324
|
}
|
|
2315
|
-
), (
|
|
2316
|
-
var G,
|
|
2325
|
+
), (f, b) => {
|
|
2326
|
+
var G, ie;
|
|
2317
2327
|
return r(), p(K, null, [
|
|
2318
|
-
|
|
2328
|
+
z(m(Le), J({
|
|
2319
2329
|
id: e.id,
|
|
2320
2330
|
label: e.label,
|
|
2321
2331
|
required: e.required,
|
|
@@ -2323,7 +2333,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2323
2333
|
ref: a,
|
|
2324
2334
|
role: "combobox",
|
|
2325
2335
|
tabindex: e.disabled ? -1 : 0,
|
|
2326
|
-
class:
|
|
2336
|
+
class: [
|
|
2327
2337
|
"q-select",
|
|
2328
2338
|
{
|
|
2329
2339
|
"q-select--readonly": e.readonly,
|
|
@@ -2331,34 +2341,37 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2331
2341
|
"q-select--expanded": s.value
|
|
2332
2342
|
},
|
|
2333
2343
|
e.class
|
|
2334
|
-
]
|
|
2344
|
+
],
|
|
2335
2345
|
readonly: e.readonly,
|
|
2336
2346
|
disabled: e.disabled,
|
|
2337
2347
|
"data-loading": e.loading,
|
|
2338
2348
|
"aria-expanded": s.value,
|
|
2339
2349
|
"aria-haspopup": "listbox",
|
|
2340
|
-
size: e.size
|
|
2350
|
+
size: e.size
|
|
2351
|
+
}, f.$attrs, {
|
|
2341
2352
|
onClick: H,
|
|
2342
2353
|
onKeydown: ve(W, ["stop"])
|
|
2343
|
-
}, qe({
|
|
2354
|
+
}), qe({
|
|
2344
2355
|
append: _(() => [
|
|
2345
|
-
h(
|
|
2356
|
+
h(f.$slots, "append"),
|
|
2346
2357
|
A.value && l.value ? (r(), S(m(re), {
|
|
2347
2358
|
key: 0,
|
|
2348
2359
|
class: "q-select__clear",
|
|
2360
|
+
"aria-label": e.texts.clearValue,
|
|
2349
2361
|
"b-style": "plain",
|
|
2350
2362
|
borderless: "",
|
|
2351
2363
|
tabindex: "-1",
|
|
2352
2364
|
onClick: y
|
|
2353
2365
|
}, {
|
|
2354
2366
|
default: _(() => [
|
|
2355
|
-
|
|
2367
|
+
z(m(N), j(le(e.icons.clear)), null, 16)
|
|
2356
2368
|
]),
|
|
2357
2369
|
_: 1
|
|
2358
|
-
})) :
|
|
2359
|
-
e.readonly ?
|
|
2370
|
+
}, 8, ["aria-label"])) : q("", !0),
|
|
2371
|
+
e.readonly ? q("", !0) : (r(), S(m(re), {
|
|
2360
2372
|
key: 1,
|
|
2361
2373
|
class: "q-select__chevron",
|
|
2374
|
+
"aria-label": e.texts.showOptions,
|
|
2362
2375
|
"b-style": "plain",
|
|
2363
2376
|
borderless: "",
|
|
2364
2377
|
tabindex: "-1",
|
|
@@ -2366,66 +2379,66 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2366
2379
|
onClick: H
|
|
2367
2380
|
}, {
|
|
2368
2381
|
default: _(() => [
|
|
2369
|
-
|
|
2382
|
+
z(m(N), j(le(e.icons.chevron)), null, 16)
|
|
2370
2383
|
]),
|
|
2371
2384
|
_: 1
|
|
2372
|
-
}, 8, ["disabled"]))
|
|
2385
|
+
}, 8, ["aria-label", "disabled"]))
|
|
2373
2386
|
]),
|
|
2374
2387
|
default: _(() => [
|
|
2375
|
-
|
|
2388
|
+
w.value ? (r(), p("span", _n, [
|
|
2376
2389
|
!e.readonly && !e.disabled ? (r(), p(K, { key: 0 }, [
|
|
2377
|
-
|
|
2378
|
-
], 64)) :
|
|
2379
|
-
])) : (r(), p("span",
|
|
2390
|
+
ce(O(e.texts.placeholder), 1)
|
|
2391
|
+
], 64)) : q("", !0)
|
|
2392
|
+
])) : (r(), p("span", gn, O(P.value), 1))
|
|
2380
2393
|
]),
|
|
2381
2394
|
_: 2
|
|
2382
2395
|
}, [
|
|
2383
|
-
(G =
|
|
2396
|
+
(G = L.value) != null && G.icon || f.$slots.prepend ? {
|
|
2384
2397
|
name: "prepend",
|
|
2385
2398
|
fn: _(() => {
|
|
2386
|
-
var
|
|
2399
|
+
var ee, de;
|
|
2387
2400
|
return [
|
|
2388
|
-
h(
|
|
2389
|
-
(
|
|
2401
|
+
h(f.$slots, "prepend"),
|
|
2402
|
+
(ee = L.value) != null && ee.icon ? (r(), S(m(N), j(J({ key: 0 }, (de = L.value) == null ? void 0 : de.icon)), null, 16)) : q("", !0)
|
|
2390
2403
|
];
|
|
2391
2404
|
}),
|
|
2392
2405
|
key: "0"
|
|
2393
2406
|
} : void 0,
|
|
2394
|
-
|
|
2407
|
+
f.$slots.extras ? {
|
|
2395
2408
|
name: "extras",
|
|
2396
2409
|
fn: _(() => [
|
|
2397
|
-
h(
|
|
2410
|
+
h(f.$slots, "extras")
|
|
2398
2411
|
]),
|
|
2399
2412
|
key: "1"
|
|
2400
2413
|
} : void 0
|
|
2401
|
-
]),
|
|
2402
|
-
|
|
2414
|
+
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2415
|
+
z(m(ye), {
|
|
2403
2416
|
modelValue: s.value,
|
|
2404
|
-
"onUpdate:modelValue":
|
|
2417
|
+
"onUpdate:modelValue": b[0] || (b[0] = (ee) => s.value = ee),
|
|
2405
2418
|
spy: "",
|
|
2406
2419
|
trigger: "manual",
|
|
2407
2420
|
placement: "bottom-start",
|
|
2408
2421
|
width: "anchor",
|
|
2409
2422
|
"scroll-lock": "",
|
|
2410
|
-
anchor: (
|
|
2423
|
+
anchor: (ie = a.value) == null ? void 0 : ie.$el,
|
|
2411
2424
|
offset: 2,
|
|
2412
|
-
onEnter:
|
|
2425
|
+
onEnter: ae,
|
|
2413
2426
|
onLeave: U
|
|
2414
2427
|
}, {
|
|
2415
2428
|
default: _(() => [
|
|
2416
|
-
|
|
2429
|
+
I("div", {
|
|
2417
2430
|
ref_key: "contentRef",
|
|
2418
|
-
ref:
|
|
2431
|
+
ref: c,
|
|
2419
2432
|
"data-testid": "combobox-dropdown",
|
|
2420
2433
|
"data-key": e.id,
|
|
2421
2434
|
class: "q-select__body",
|
|
2422
2435
|
tabindex: "-1",
|
|
2423
|
-
onFocusout:
|
|
2436
|
+
onFocusout: E,
|
|
2424
2437
|
onKeydown: ve(W, ["stop"])
|
|
2425
2438
|
}, [
|
|
2426
|
-
h(
|
|
2427
|
-
e.loading ? (r(), p("div",
|
|
2428
|
-
|
|
2439
|
+
h(f.$slots, "body.prepend"),
|
|
2440
|
+
e.loading ? (r(), p("div", wn, [
|
|
2441
|
+
z(m(xe), { size: 24 })
|
|
2429
2442
|
])) : (r(), S(m(Ve), {
|
|
2430
2443
|
key: 1,
|
|
2431
2444
|
ref_key: "listRef",
|
|
@@ -2434,27 +2447,25 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2434
2447
|
selectable: "",
|
|
2435
2448
|
"model-value": l.value,
|
|
2436
2449
|
items: e.items,
|
|
2437
|
-
groups:
|
|
2450
|
+
groups: f.groups,
|
|
2438
2451
|
"item-label": e.itemLabel,
|
|
2439
2452
|
"item-value": e.itemValue,
|
|
2440
|
-
"onUpdate:modelValue":
|
|
2453
|
+
"onUpdate:modelValue": T
|
|
2441
2454
|
}, {
|
|
2442
|
-
item: _(({ item:
|
|
2443
|
-
h(
|
|
2455
|
+
item: _(({ item: ee }) => [
|
|
2456
|
+
h(f.$slots, "item", { item: ee })
|
|
2444
2457
|
]),
|
|
2445
2458
|
_: 3
|
|
2446
2459
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
2447
|
-
h(
|
|
2448
|
-
], 40,
|
|
2460
|
+
h(f.$slots, "body.append")
|
|
2461
|
+
], 40, kn)
|
|
2449
2462
|
]),
|
|
2450
2463
|
_: 3
|
|
2451
2464
|
}, 8, ["modelValue", "anchor"])
|
|
2452
2465
|
], 64);
|
|
2453
2466
|
};
|
|
2454
2467
|
}
|
|
2455
|
-
}),
|
|
2456
|
-
In
|
|
2457
|
-
], Bn = /* @__PURE__ */ B({
|
|
2468
|
+
}), qn = C($n), xn = /* @__PURE__ */ B({
|
|
2458
2469
|
__name: "QSkeletonLoader",
|
|
2459
2470
|
props: {
|
|
2460
2471
|
type: { default: void 0 },
|
|
@@ -2462,7 +2473,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2462
2473
|
height: { default: void 0 }
|
|
2463
2474
|
},
|
|
2464
2475
|
setup(o) {
|
|
2465
|
-
const t = o, e =
|
|
2476
|
+
const t = o, e = g(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), n = g(() => {
|
|
2466
2477
|
const l = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
2467
2478
|
return {
|
|
2468
2479
|
width: l,
|
|
@@ -2470,11 +2481,13 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2470
2481
|
};
|
|
2471
2482
|
});
|
|
2472
2483
|
return (l, s) => (r(), p("div", {
|
|
2473
|
-
class:
|
|
2474
|
-
style:
|
|
2475
|
-
},
|
|
2484
|
+
class: V(["q-skeleton-loader", e.value]),
|
|
2485
|
+
style: ue(n.value)
|
|
2486
|
+
}, s[0] || (s[0] = [
|
|
2487
|
+
I("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2488
|
+
]), 6));
|
|
2476
2489
|
}
|
|
2477
|
-
}),
|
|
2490
|
+
}), Ln = C(xn), In = /* @__PURE__ */ B({
|
|
2478
2491
|
__name: "QThemeProvider",
|
|
2479
2492
|
props: {
|
|
2480
2493
|
theme: {}
|
|
@@ -2482,16 +2495,16 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2482
2495
|
setup(o) {
|
|
2483
2496
|
const t = o;
|
|
2484
2497
|
return (e, n) => (r(), p("div", {
|
|
2485
|
-
class:
|
|
2498
|
+
class: V(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2486
2499
|
}, [
|
|
2487
2500
|
h(e.$slots, "default")
|
|
2488
2501
|
], 2));
|
|
2489
2502
|
}
|
|
2490
|
-
}),
|
|
2503
|
+
}), Sn = C(In), Bn = ["innerHTML"], Cn = /* @__PURE__ */ B({
|
|
2491
2504
|
__name: "QTooltip",
|
|
2492
2505
|
props: /* @__PURE__ */ Z({
|
|
2493
2506
|
id: { default: void 0 },
|
|
2494
|
-
anchor: {},
|
|
2507
|
+
anchor: { default: void 0 },
|
|
2495
2508
|
appearance: { default: "inverted" },
|
|
2496
2509
|
arrow: { type: Boolean, default: !0 },
|
|
2497
2510
|
attach: { default: "body" },
|
|
@@ -2510,12 +2523,12 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2510
2523
|
}),
|
|
2511
2524
|
emits: ["update:modelValue"],
|
|
2512
2525
|
setup(o) {
|
|
2513
|
-
const t = o, e =
|
|
2526
|
+
const t = o, e = ne(o, "modelValue"), n = fe(t.id);
|
|
2514
2527
|
return (l, s) => (r(), p(K, null, [
|
|
2515
2528
|
h(l.$slots, "anchor", {
|
|
2516
2529
|
props: { "aria-describedby": m(n) }
|
|
2517
2530
|
}),
|
|
2518
|
-
|
|
2531
|
+
z(m(ye), {
|
|
2519
2532
|
"model-value": e.value,
|
|
2520
2533
|
anchor: t.anchor,
|
|
2521
2534
|
role: "tooltip",
|
|
@@ -2525,7 +2538,7 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2525
2538
|
arrow: t.arrow,
|
|
2526
2539
|
attach: t.attach,
|
|
2527
2540
|
inline: t.inline,
|
|
2528
|
-
class:
|
|
2541
|
+
class: V(["q-tooltip", t.class]),
|
|
2529
2542
|
delay: t.delay,
|
|
2530
2543
|
disabled: t.disabled,
|
|
2531
2544
|
placement: t.placement,
|
|
@@ -2533,12 +2546,12 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2533
2546
|
}, {
|
|
2534
2547
|
default: _(() => [
|
|
2535
2548
|
h(l.$slots, "default", {}, () => [
|
|
2536
|
-
t.icon ? (r(), S(m(N), j(
|
|
2549
|
+
t.icon ? (r(), S(m(N), j(J({ key: 0 }, t.icon)), null, 16)) : q("", !0),
|
|
2537
2550
|
t.html ? (r(), p("span", {
|
|
2538
2551
|
key: 1,
|
|
2539
2552
|
innerHTML: t.text
|
|
2540
|
-
}, null, 8,
|
|
2541
|
-
|
|
2553
|
+
}, null, 8, Bn)) : (r(), p(K, { key: 2 }, [
|
|
2554
|
+
ce(O(t.text), 1)
|
|
2542
2555
|
], 64))
|
|
2543
2556
|
])
|
|
2544
2557
|
]),
|
|
@@ -2546,57 +2559,57 @@ const fo = ["role"], po = /* @__PURE__ */ B({
|
|
|
2546
2559
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2547
2560
|
], 64));
|
|
2548
2561
|
}
|
|
2549
|
-
}),
|
|
2562
|
+
}), Tn = C(Cn), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2550
2563
|
__proto__: null,
|
|
2551
|
-
QBadge:
|
|
2564
|
+
QBadge: zt,
|
|
2552
2565
|
QButton: re,
|
|
2553
|
-
QButtonGroup:
|
|
2554
|
-
QButtonToggle:
|
|
2555
|
-
QCombobox:
|
|
2556
|
-
QDialog:
|
|
2566
|
+
QButtonGroup: tt,
|
|
2567
|
+
QButtonToggle: Pt,
|
|
2568
|
+
QCombobox: So,
|
|
2569
|
+
QDialog: Po,
|
|
2557
2570
|
QField: Le,
|
|
2558
2571
|
QIcon: N,
|
|
2559
|
-
QIconFont:
|
|
2560
|
-
QIconImg:
|
|
2561
|
-
QIconSvg:
|
|
2562
|
-
QInputGroup:
|
|
2563
|
-
QLineLoader:
|
|
2572
|
+
QIconFont: Ye,
|
|
2573
|
+
QIconImg: Ze,
|
|
2574
|
+
QIconSvg: Je,
|
|
2575
|
+
QInputGroup: Ko,
|
|
2576
|
+
QLineLoader: Wo,
|
|
2564
2577
|
QList: Ve,
|
|
2565
|
-
QListItem:
|
|
2566
|
-
QListItemGroup:
|
|
2578
|
+
QListItem: ot,
|
|
2579
|
+
QListItemGroup: nt,
|
|
2567
2580
|
QOverlay: ye,
|
|
2568
|
-
QPopover:
|
|
2569
|
-
QPropertyList:
|
|
2581
|
+
QPopover: tn,
|
|
2582
|
+
QPropertyList: hn,
|
|
2570
2583
|
QPropertyListGroup: rt,
|
|
2571
2584
|
QPropertyListPanel: dt,
|
|
2572
2585
|
QPropertyListRow: it,
|
|
2573
|
-
QSelect:
|
|
2574
|
-
QSkeletonLoader:
|
|
2586
|
+
QSelect: qn,
|
|
2587
|
+
QSkeletonLoader: Ln,
|
|
2575
2588
|
QSpinnerLoader: xe,
|
|
2576
|
-
QTextField:
|
|
2577
|
-
QThemeProvider:
|
|
2578
|
-
QTooltip:
|
|
2579
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2580
|
-
function
|
|
2581
|
-
const o =
|
|
2589
|
+
QTextField: lt,
|
|
2590
|
+
QThemeProvider: Sn,
|
|
2591
|
+
QTooltip: Tn
|
|
2592
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = "q-theme";
|
|
2593
|
+
function En() {
|
|
2594
|
+
const o = Ge(ge);
|
|
2582
2595
|
if (!o)
|
|
2583
2596
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2584
2597
|
return o;
|
|
2585
2598
|
}
|
|
2586
|
-
function
|
|
2587
|
-
const t =
|
|
2588
|
-
activeTheme:
|
|
2599
|
+
function Pn(o) {
|
|
2600
|
+
const t = En(), e = {
|
|
2601
|
+
activeTheme: D(o),
|
|
2589
2602
|
themes: t.themes
|
|
2590
2603
|
};
|
|
2591
|
-
return
|
|
2604
|
+
return He(ge, e), e;
|
|
2592
2605
|
}
|
|
2593
|
-
function
|
|
2606
|
+
function Dn() {
|
|
2594
2607
|
let o = document.getElementById(
|
|
2595
|
-
|
|
2608
|
+
ge
|
|
2596
2609
|
);
|
|
2597
|
-
return o || (o = document.createElement("style"), o.id =
|
|
2610
|
+
return o || (o = document.createElement("style"), o.id = ge, document.head.appendChild(o)), o;
|
|
2598
2611
|
}
|
|
2599
|
-
function
|
|
2612
|
+
function An(o) {
|
|
2600
2613
|
let t = "";
|
|
2601
2614
|
for (const n of o) {
|
|
2602
2615
|
t += `.q-theme--${n.name} {
|
|
@@ -2606,32 +2619,32 @@ function Mn(o) {
|
|
|
2606
2619
|
for (s in l) {
|
|
2607
2620
|
const i = l[s];
|
|
2608
2621
|
if (i) {
|
|
2609
|
-
t += ` ${
|
|
2622
|
+
t += ` ${Ue(s)}: ${i};
|
|
2610
2623
|
`;
|
|
2611
|
-
const a =
|
|
2612
|
-
t += ` ${
|
|
2624
|
+
const a = et(i);
|
|
2625
|
+
t += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
2613
2626
|
`;
|
|
2614
2627
|
}
|
|
2615
2628
|
}
|
|
2616
2629
|
t += `}
|
|
2617
2630
|
`;
|
|
2618
2631
|
}
|
|
2619
|
-
const e =
|
|
2632
|
+
const e = Dn();
|
|
2620
2633
|
e.textContent = t;
|
|
2621
2634
|
}
|
|
2622
|
-
function
|
|
2623
|
-
return o ? `--q-theme-${
|
|
2635
|
+
function Ue(o) {
|
|
2636
|
+
return o ? `--q-theme-${Xe(o)}` : "";
|
|
2624
2637
|
}
|
|
2625
|
-
function
|
|
2638
|
+
function Qn(o = {}) {
|
|
2626
2639
|
return { install: (e) => {
|
|
2627
2640
|
const n = o.components || {};
|
|
2628
2641
|
for (const s in n)
|
|
2629
2642
|
e.component(s, n[s]);
|
|
2630
2643
|
const l = o.defaults || {};
|
|
2631
|
-
e.provide(Te,
|
|
2644
|
+
e.provide(Te, D(l)), Fn(e, o.themes);
|
|
2632
2645
|
} };
|
|
2633
2646
|
}
|
|
2634
|
-
function
|
|
2647
|
+
function Fn(o, t) {
|
|
2635
2648
|
const e = [];
|
|
2636
2649
|
let n;
|
|
2637
2650
|
if (!t)
|
|
@@ -2642,7 +2655,7 @@ function On(o, t) {
|
|
|
2642
2655
|
});
|
|
2643
2656
|
else
|
|
2644
2657
|
for (const l of t.themes) {
|
|
2645
|
-
const i = { ...l.mode === "light" ? Ie :
|
|
2658
|
+
const i = { ...l.mode === "light" ? Ie : Ke, ...l.colors };
|
|
2646
2659
|
e.push({
|
|
2647
2660
|
name: l.name,
|
|
2648
2661
|
mode: l.mode,
|
|
@@ -2651,21 +2664,21 @@ function On(o, t) {
|
|
|
2651
2664
|
}
|
|
2652
2665
|
if (n) {
|
|
2653
2666
|
const l = {
|
|
2654
|
-
activeTheme:
|
|
2667
|
+
activeTheme: D(n),
|
|
2655
2668
|
themes: e
|
|
2656
2669
|
};
|
|
2657
|
-
|
|
2670
|
+
An(e), te(l.activeTheme, zn, { immediate: !0 }), o.provide(ge, l);
|
|
2658
2671
|
}
|
|
2659
2672
|
}
|
|
2660
|
-
function
|
|
2673
|
+
function zn(o) {
|
|
2661
2674
|
const t = document.documentElement, n = Array.from(t.classList).filter((l) => !l.startsWith("q-theme"));
|
|
2662
2675
|
t.className = n.join(" "), t.classList.add(`q-theme--${o}`);
|
|
2663
2676
|
}
|
|
2664
|
-
const
|
|
2677
|
+
const Un = (o = {}) => Qn({ components: Vn, ...o });
|
|
2665
2678
|
export {
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2679
|
+
Vn as components,
|
|
2680
|
+
Un as createFramework,
|
|
2681
|
+
Pn as provideTheme,
|
|
2682
|
+
On as templates,
|
|
2683
|
+
En as useTheme
|
|
2671
2684
|
};
|