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