@quidgest/ui 0.14.6 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.css +0 -6
- package/dist/ui.esm.js +1179 -1073
- package/dist/ui.js +43 -6
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +185 -174
- package/dist/ui.scss +1 -6
- package/esm/components/QAccordion/QAccordion.d.ts +7 -6
- package/esm/components/QAccordion/QAccordion.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.d.ts +3 -2
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +11 -11
- package/esm/components/QButton/QButton.d.ts +3 -2
- package/esm/components/QButton/QButton.d.ts.map +1 -1
- package/esm/components/QButton/QButton.vue.js +14 -14
- package/esm/components/QButtonGroup/QButtonGroup.d.ts +3 -2
- package/esm/components/QButtonGroup/QButtonGroup.d.ts.map +1 -1
- package/esm/components/QButtonGroup/QButtonGroup.vue.js +3 -3
- package/esm/components/QButtonToggle/QButtonToggle.d.ts +7 -6
- package/esm/components/QButtonToggle/QButtonToggle.d.ts.map +1 -1
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +6 -6
- package/esm/components/QCard/QCard.d.ts +2 -1
- package/esm/components/QCard/QCard.d.ts.map +1 -1
- package/esm/components/QCard/QCard.vue.js +30 -30
- package/esm/components/QCheckbox/QCheckbox.d.ts +4 -4
- package/esm/components/QCheckbox/QCheckbox.d.ts.map +1 -1
- package/esm/components/QCheckbox/QCheckbox.vue.js +4 -4
- package/esm/components/QCollapsible/QCollapsible.d.ts +6 -5
- package/esm/components/QCollapsible/QCollapsible.d.ts.map +1 -1
- package/esm/components/QCollapsible/QCollapsible.vue.js +25 -25
- package/esm/components/QCombobox/QCombobox.d.ts +31 -30
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/QCombobox.vue.js +80 -80
- package/esm/components/QDialog/QDialog.d.ts +6 -5
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +7 -7
- package/esm/components/QField/QField.d.ts +2 -1
- package/esm/components/QField/QField.d.ts.map +1 -1
- package/esm/components/QField/QField.vue.js +9 -9
- package/esm/components/QIcon/InlineSvg.d.ts +1 -1
- package/esm/components/QIcon/QIcon.d.ts.map +1 -1
- package/esm/components/QIcon/QIcon.vue.js +9 -9
- package/esm/components/QIcon/QIconFont.d.ts +1 -1
- package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
- package/esm/components/QIcon/QIconFont.vue.js +5 -5
- package/esm/components/QIcon/QIconImg.d.ts +1 -1
- package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconImg.vue.js +5 -5
- package/esm/components/QIcon/QIconSvg.d.ts +2 -2
- package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
- package/esm/components/QIcon/QIconSvg.vue.js +17 -17
- package/esm/components/QInputGroup/QInputGroup.d.ts +2 -1
- package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
- package/esm/components/QInputGroup/QInputGroup.vue.js +24 -24
- package/esm/components/QLineLoader/QLineLoader.d.ts +1 -1
- package/esm/components/QLineLoader/QLineLoader.d.ts.map +1 -1
- package/esm/components/QLineLoader/QLineLoader.vue.js +4 -4
- package/esm/components/QList/QList.d.ts +6 -5
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +1 -1
- package/esm/components/QList/QListItem.d.ts +3 -2
- package/esm/components/QList/QListItem.d.ts.map +1 -1
- package/esm/components/QList/QListItem.vue.js +18 -18
- package/esm/components/QList/QListItemGroup.d.ts +3 -2
- package/esm/components/QList/QListItemGroup.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.d.ts +6 -5
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +148 -138
- package/esm/components/QPopover/QPopover.d.ts +6 -5
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyList.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyList.vue.js +22 -22
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts +1 -1
- package/esm/components/QPropertyList/QPropertyListGroup.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyListPanel.d.ts.map +1 -1
- package/esm/components/QPropertyList/QPropertyListPanel.vue.js +4 -4
- package/esm/components/QPropertyList/QPropertyListRow.d.ts +3 -2
- package/esm/components/QPropertyList/QPropertyListRow.d.ts.map +1 -1
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts +24 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue.js +72 -0
- package/esm/components/QRemoveScrollBar/QRemoveScrollBar.vue2.js +4 -0
- package/esm/components/QRemoveScrollBar/constants.d.ts +10 -0
- package/esm/components/QRemoveScrollBar/constants.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/constants.js +8 -0
- package/esm/components/QRemoveScrollBar/index.d.ts +4 -0
- package/esm/components/QRemoveScrollBar/index.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/index.js +6 -0
- package/esm/components/QRemoveScrollBar/types.d.ts +18 -0
- package/esm/components/QRemoveScrollBar/types.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts +15 -0
- package/esm/components/QRemoveScrollBar/utils/gap.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/gap.js +23 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts +5 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.d.ts.map +1 -0
- package/esm/components/QRemoveScrollBar/utils/stylesheet.js +24 -0
- package/esm/components/QSelect/QSelect.d.ts +11 -10
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +33 -33
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/QSkeletonLoader.vue.js +11 -11
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/QSpinnerLoader.vue.js +6 -6
- package/esm/components/QTextField/QTextField.d.ts +6 -5
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +15 -15
- package/esm/components/QThemeProvider/QThemeProvider.d.ts +3 -2
- package/esm/components/QThemeProvider/QThemeProvider.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.d.ts +6 -5
- package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
- package/esm/components/QTooltip/QTooltip.vue.js +15 -15
- package/esm/composables/defaults.js +5 -5
- package/esm/composables/group.js +8 -8
- package/esm/composables/overlay.js +11 -11
- package/esm/framework.js +2 -2
- package/esm/utils/color.js +6 -6
- package/package.json +31 -30
package/dist/ui.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Ze, computed as y, ref as A, provide as De, inject as ze, watch as ee, defineComponent as C, mergeModels as G, toRef as Ve, useModel as X, openBlock as r, createElementBlock as f, renderSlot as p, normalizeClass as T, normalizeStyle as pe, withModifiers as fe, createVNode as D, unref as m, createCommentVNode as b, createElementVNode as q, Fragment as U, createTextVNode as de, toDisplayString as Q, createBlock as B, resolveDynamicComponent as Se, h as He, withCtx as k, normalizeProps as Y, guardReactiveProps as oe, renderList as ve, useAttrs as vt, withKeys as Ae, mergeProps as H, onMounted as Me, onUnmounted as bt, reactive as je, nextTick as le, onBeforeUnmount as gt, Teleport as _t, Transition as $t, createSlots as Be, withDirectives as kt, vModelDynamic as wt } from "vue";
|
|
2
2
|
/*!
|
|
3
|
-
* Quidgest UI v0.14.
|
|
3
|
+
* Quidgest UI v0.14.7
|
|
4
4
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
|
-
const
|
|
7
|
+
const Ee = {
|
|
8
8
|
primary: "#008ad2",
|
|
9
9
|
primaryLight: "#cde5ff",
|
|
10
10
|
primaryDark: "#006398",
|
|
@@ -35,7 +35,7 @@ const Ce = {
|
|
|
35
35
|
onWarning: "#fff",
|
|
36
36
|
onDanger: "#fff",
|
|
37
37
|
onInfo: "#fff"
|
|
38
|
-
},
|
|
38
|
+
}, Je = {
|
|
39
39
|
primary: "#009ff5",
|
|
40
40
|
primaryLight: "#ade2ff",
|
|
41
41
|
primaryDark: "#164965",
|
|
@@ -66,26 +66,26 @@ const Ce = {
|
|
|
66
66
|
onWarning: "#fff",
|
|
67
67
|
onDanger: "#fff",
|
|
68
68
|
onInfo: "#fff"
|
|
69
|
-
},
|
|
69
|
+
}, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
70
70
|
__proto__: null,
|
|
71
|
-
defaultDarkColorScheme:
|
|
72
|
-
defaultLightColorScheme:
|
|
71
|
+
defaultDarkColorScheme: Je,
|
|
72
|
+
defaultLightColorScheme: Ee
|
|
73
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function Qe(n) {
|
|
75
|
+
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return
|
|
77
|
+
function Ke(n) {
|
|
78
|
+
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Fe(n = {}, t = {}) {
|
|
81
81
|
const e = {};
|
|
82
|
-
for (const l in
|
|
83
|
-
e[l] =
|
|
82
|
+
for (const l in n)
|
|
83
|
+
e[l] = n[l];
|
|
84
84
|
for (const l in t) {
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
e[l] =
|
|
88
|
-
|
|
85
|
+
const o = n[l], s = t[l];
|
|
86
|
+
if (Ke(o) && Ke(s)) {
|
|
87
|
+
e[l] = Fe(
|
|
88
|
+
o,
|
|
89
89
|
s
|
|
90
90
|
);
|
|
91
91
|
continue;
|
|
@@ -94,57 +94,57 @@ function Ee(o = {}, t = {}) {
|
|
|
94
94
|
}
|
|
95
95
|
return e;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
function
|
|
97
|
+
const Oe = "q-defaults";
|
|
98
|
+
function qt() {
|
|
99
99
|
var s, d;
|
|
100
|
-
const
|
|
101
|
-
if (!
|
|
100
|
+
const n = Ze();
|
|
101
|
+
if (!n)
|
|
102
102
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
103
|
-
const t =
|
|
103
|
+
const t = n.type.name ?? n.type.__name;
|
|
104
104
|
if (!t) throw new Error("[Quidgest UI] Could not determine component name");
|
|
105
|
-
const e =
|
|
106
|
-
return
|
|
105
|
+
const e = et(), l = (s = e.value) == null ? void 0 : s.Global, o = (d = e.value) == null ? void 0 : d[t];
|
|
106
|
+
return y(() => Fe(l, o));
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
110
|
-
const t =
|
|
111
|
-
|
|
108
|
+
function Pe(n) {
|
|
109
|
+
if (Qe(n)) return;
|
|
110
|
+
const t = et(), e = A(n), l = y(() => Qe(e.value) ? t.value : Fe(t.value, e.value));
|
|
111
|
+
De(Oe, l);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
116
|
-
return
|
|
113
|
+
function et() {
|
|
114
|
+
const n = ze(Oe, void 0);
|
|
115
|
+
if (!n) throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
116
|
+
return n;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
118
|
+
const tt = "q-group";
|
|
119
|
+
function xt(n) {
|
|
120
120
|
var e, l;
|
|
121
121
|
const t = {
|
|
122
|
-
active: A(((e =
|
|
123
|
-
multiple:
|
|
124
|
-
var
|
|
125
|
-
return ((
|
|
122
|
+
active: A(((e = n.active) == null ? void 0 : e.value) ?? ((l = n.multiple) == null ? void 0 : l.value) ? [] : null),
|
|
123
|
+
multiple: y(() => {
|
|
124
|
+
var o;
|
|
125
|
+
return ((o = n.multiple) == null ? void 0 : o.value) || !1;
|
|
126
126
|
})
|
|
127
127
|
};
|
|
128
128
|
return ee(
|
|
129
129
|
() => t.multiple.value,
|
|
130
|
-
(
|
|
131
|
-
|
|
130
|
+
(o) => {
|
|
131
|
+
o && t.active.value ? t.active.value = [t.active.value] : o ? t.active.value = [] : Array.isArray(t.active.value) && t.active.value.length === 1 ? t.active.value = t.active.value[0] : t.active.value = null;
|
|
132
132
|
}
|
|
133
|
-
),
|
|
133
|
+
), De(tt, t), t;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const t =
|
|
135
|
+
function St(n) {
|
|
136
|
+
const t = ze(tt, void 0);
|
|
137
137
|
if (!t) return;
|
|
138
|
-
const e =
|
|
139
|
-
var
|
|
140
|
-
return Array.isArray(t.active.value) ? (
|
|
138
|
+
const e = y(() => {
|
|
139
|
+
var o;
|
|
140
|
+
return Array.isArray(t.active.value) ? (o = t.active.value) == null ? void 0 : o.includes(n) : t.active.value === n;
|
|
141
141
|
});
|
|
142
142
|
return { isActive: e, toggle: () => {
|
|
143
|
-
var
|
|
144
|
-
Array.isArray(t.active.value) ? e.value ? t.active.value = (
|
|
143
|
+
var o;
|
|
144
|
+
Array.isArray(t.active.value) ? e.value ? t.active.value = (o = t.active.value) == null ? void 0 : o.filter((s) => s !== n) : t.active.value.push(n) : t.active.value = n;
|
|
145
145
|
} };
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Bt = { class: "q-accordion" }, Lt = /* @__PURE__ */ C({
|
|
148
148
|
__name: "QAccordion",
|
|
149
149
|
props: /* @__PURE__ */ G({
|
|
150
150
|
variant: {}
|
|
@@ -153,62 +153,62 @@ const $t = { class: "q-accordion" }, wt = /* @__PURE__ */ I({
|
|
|
153
153
|
modelModifiers: {}
|
|
154
154
|
}),
|
|
155
155
|
emits: ["update:modelValue"],
|
|
156
|
-
setup(
|
|
157
|
-
|
|
156
|
+
setup(n) {
|
|
157
|
+
Pe({
|
|
158
158
|
QCollapsible: {
|
|
159
|
-
variant:
|
|
159
|
+
variant: Ve(n, "variant")
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
const e = X(
|
|
163
|
-
return
|
|
162
|
+
const e = X(n, "modelValue");
|
|
163
|
+
return xt({ active: e }), (l, o) => (r(), f("div", Bt, [
|
|
164
164
|
p(l.$slots, "default")
|
|
165
165
|
]));
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
function
|
|
169
|
-
return
|
|
168
|
+
function nt(n) {
|
|
169
|
+
return n.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();
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ct(n, t) {
|
|
172
172
|
var l;
|
|
173
|
-
const e =
|
|
174
|
-
return e ? typeof ((l =
|
|
173
|
+
const e = nt(t);
|
|
174
|
+
return e ? typeof ((l = n.props) == null ? void 0 : l[e]) < "u" : !1;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const t =
|
|
178
|
-
return t && (
|
|
179
|
-
const
|
|
180
|
-
if (
|
|
181
|
-
const s =
|
|
176
|
+
function I(n) {
|
|
177
|
+
const t = n.setup;
|
|
178
|
+
return t && (n.setup = (e, l) => {
|
|
179
|
+
const o = qt();
|
|
180
|
+
if (Qe(o.value)) return t(e, l);
|
|
181
|
+
const s = Ze();
|
|
182
182
|
if (s === null) return t(e, l);
|
|
183
183
|
const d = new Proxy(e, {
|
|
184
184
|
get(a, i) {
|
|
185
|
-
var
|
|
186
|
-
const
|
|
187
|
-
return typeof i == "string" && !
|
|
185
|
+
var w;
|
|
186
|
+
const u = Reflect.get(a, i), _ = (w = o.value) == null ? void 0 : w[i];
|
|
187
|
+
return typeof i == "string" && !Ct(s.vnode, i) ? _ ?? u : u;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
return t(d, l);
|
|
191
|
-
}),
|
|
191
|
+
}), n;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const It = I(Lt), Tt = /* @__PURE__ */ C({
|
|
194
194
|
__name: "QSpinnerLoader",
|
|
195
195
|
props: {
|
|
196
196
|
size: { default: 48 },
|
|
197
197
|
class: { default: void 0 }
|
|
198
198
|
},
|
|
199
|
-
setup(
|
|
200
|
-
const t =
|
|
199
|
+
setup(n) {
|
|
200
|
+
const t = n, e = y(() => ({
|
|
201
201
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
202
202
|
}));
|
|
203
|
-
return (l,
|
|
204
|
-
class:
|
|
203
|
+
return (l, o) => (r(), f("div", {
|
|
204
|
+
class: T(["q-spinner-loader", t.class]),
|
|
205
205
|
style: pe(e.value)
|
|
206
206
|
}, null, 6));
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), $e = I(Tt), Vt = ["disabled"], At = {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "q-btn__spinner"
|
|
211
|
-
},
|
|
211
|
+
}, Et = { class: "q-btn__content" }, Qt = /* @__PURE__ */ C({
|
|
212
212
|
__name: "QButton",
|
|
213
213
|
props: {
|
|
214
214
|
active: { type: Boolean },
|
|
@@ -224,12 +224,12 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
224
224
|
class: { default: void 0 }
|
|
225
225
|
},
|
|
226
226
|
emits: ["click"],
|
|
227
|
-
setup(
|
|
228
|
-
const e =
|
|
227
|
+
setup(n, { emit: t }) {
|
|
228
|
+
const e = n, l = t, o = y(() => e.disabled || e.loading);
|
|
229
229
|
function s(a) {
|
|
230
|
-
|
|
230
|
+
o.value || l("click", a);
|
|
231
231
|
}
|
|
232
|
-
const d =
|
|
232
|
+
const d = y(() => {
|
|
233
233
|
const a = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
234
234
|
return [
|
|
235
235
|
"q-btn",
|
|
@@ -247,25 +247,25 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
247
247
|
});
|
|
248
248
|
return (a, i) => (r(), f("button", {
|
|
249
249
|
type: "button",
|
|
250
|
-
class:
|
|
251
|
-
disabled:
|
|
250
|
+
class: T(d.value),
|
|
251
|
+
disabled: o.value,
|
|
252
252
|
onClick: fe(s, ["stop", "prevent"])
|
|
253
253
|
}, [
|
|
254
|
-
a.loading ? (r(), f("div",
|
|
255
|
-
|
|
254
|
+
a.loading ? (r(), f("div", At, [
|
|
255
|
+
D(m($e), { size: 20 })
|
|
256
256
|
])) : b("", !0),
|
|
257
|
-
|
|
258
|
-
a.iconOnRight ? (r(), f(
|
|
259
|
-
de(
|
|
257
|
+
q("span", Et, [
|
|
258
|
+
a.iconOnRight ? (r(), f(U, { key: 0 }, [
|
|
259
|
+
de(Q(e.label), 1)
|
|
260
260
|
], 64)) : b("", !0),
|
|
261
261
|
p(a.$slots, "default"),
|
|
262
|
-
a.iconOnRight ? b("", !0) : (r(), f(
|
|
263
|
-
de(
|
|
262
|
+
a.iconOnRight ? b("", !0) : (r(), f(U, { key: 1 }, [
|
|
263
|
+
de(Q(e.label), 1)
|
|
264
264
|
], 64))
|
|
265
265
|
])
|
|
266
|
-
], 10,
|
|
266
|
+
], 10, Vt));
|
|
267
267
|
}
|
|
268
|
-
}), se =
|
|
268
|
+
}), se = I(Qt), Dt = /* @__PURE__ */ C({
|
|
269
269
|
__name: "QIcon",
|
|
270
270
|
props: {
|
|
271
271
|
icon: {},
|
|
@@ -273,26 +273,26 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
273
273
|
class: { default: void 0 },
|
|
274
274
|
type: { default: "svg" }
|
|
275
275
|
},
|
|
276
|
-
setup(
|
|
277
|
-
const t =
|
|
276
|
+
setup(n) {
|
|
277
|
+
const t = n, e = y(() => {
|
|
278
278
|
switch (t.type) {
|
|
279
279
|
case "svg":
|
|
280
|
-
return
|
|
280
|
+
return st;
|
|
281
281
|
case "font":
|
|
282
|
-
return
|
|
282
|
+
return lt;
|
|
283
283
|
case "img":
|
|
284
|
-
return
|
|
284
|
+
return ot;
|
|
285
285
|
default:
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
return (l,
|
|
290
|
-
class:
|
|
289
|
+
return (l, o) => (r(), B(Se(e.value), {
|
|
290
|
+
class: T(t.class),
|
|
291
291
|
icon: t.icon,
|
|
292
292
|
size: t.size
|
|
293
293
|
}, null, 8, ["class", "icon", "size"]));
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
295
|
+
}), zt = /* @__PURE__ */ C({
|
|
296
296
|
__name: "QIconFont",
|
|
297
297
|
props: {
|
|
298
298
|
icon: {},
|
|
@@ -301,46 +301,46 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
301
301
|
library: { default: "" },
|
|
302
302
|
variant: { default: "" }
|
|
303
303
|
},
|
|
304
|
-
setup(
|
|
305
|
-
const t =
|
|
304
|
+
setup(n) {
|
|
305
|
+
const t = n, e = y(() => t.variant ? `${t.library}-${t.variant}` : t.library), l = y(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), o = y(() => ({
|
|
306
306
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
307
307
|
}));
|
|
308
308
|
return (s, d) => (r(), f("i", {
|
|
309
|
-
class:
|
|
310
|
-
style: pe(
|
|
309
|
+
class: T(["q-icon", "q-icon__font", e.value, l.value, t.class]),
|
|
310
|
+
style: pe(o.value)
|
|
311
311
|
}, null, 6));
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), Mt = ["src"], Ft = /* @__PURE__ */ C({
|
|
314
314
|
__name: "QIconImg",
|
|
315
315
|
props: {
|
|
316
316
|
icon: {},
|
|
317
317
|
size: {},
|
|
318
318
|
class: {}
|
|
319
319
|
},
|
|
320
|
-
setup(
|
|
321
|
-
const t =
|
|
320
|
+
setup(n) {
|
|
321
|
+
const t = n, e = y(() => ({
|
|
322
322
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
323
323
|
}));
|
|
324
|
-
return (l,
|
|
324
|
+
return (l, o) => (r(), f("img", {
|
|
325
325
|
src: t.icon,
|
|
326
|
-
class:
|
|
326
|
+
class: T(["q-icon", "q-icon__img", t.class]),
|
|
327
327
|
style: pe(e.value)
|
|
328
|
-
}, null, 14,
|
|
328
|
+
}, null, 14, Mt));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), ge = {}, Ot = C({
|
|
331
331
|
name: "InlineSvg",
|
|
332
332
|
emits: {
|
|
333
|
-
loaded: (
|
|
333
|
+
loaded: (n) => typeof n == "object",
|
|
334
334
|
unloaded: () => !0,
|
|
335
|
-
error: (
|
|
335
|
+
error: (n) => typeof n == "object"
|
|
336
336
|
},
|
|
337
337
|
inheritAttrs: !1,
|
|
338
338
|
render() {
|
|
339
339
|
if (!this.svgElSource) return null;
|
|
340
|
-
const
|
|
341
|
-
if (!
|
|
340
|
+
const n = this.getSvgContent(this.svgElSource);
|
|
341
|
+
if (!n) return He("div", this.$attrs);
|
|
342
342
|
const t = {};
|
|
343
|
-
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t,
|
|
343
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, He("svg", t);
|
|
344
344
|
},
|
|
345
345
|
props: {
|
|
346
346
|
/**
|
|
@@ -391,28 +391,28 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
391
391
|
await this.getSource(this.src);
|
|
392
392
|
},
|
|
393
393
|
methods: {
|
|
394
|
-
copySvgAttrs(
|
|
394
|
+
copySvgAttrs(n, t) {
|
|
395
395
|
const e = t.attributes;
|
|
396
|
-
if (e) for (const l of e)
|
|
396
|
+
if (e) for (const l of e) n[l.name] = l.value;
|
|
397
397
|
},
|
|
398
|
-
copyComponentAttrs(
|
|
398
|
+
copyComponentAttrs(n, t) {
|
|
399
399
|
for (const [e, l] of Object.entries(t))
|
|
400
|
-
l !== !1 && l !== null && l !== void 0 && (
|
|
400
|
+
l !== !1 && l !== null && l !== void 0 && (n[e] = l);
|
|
401
401
|
},
|
|
402
|
-
getSvgContent(
|
|
403
|
-
return this.symbol && (
|
|
402
|
+
getSvgContent(n) {
|
|
403
|
+
return this.symbol && (n = n.getElementById(this.symbol), !n) ? null : (this.transformSource && (n = n.cloneNode(!0), n = this.transformSource(n)), this.title && (this.transformSource || (n = n.cloneNode(!0)), Pt(n, this.title)), n);
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
406
|
* Get svgElSource
|
|
407
407
|
* @param {string} src
|
|
408
408
|
*/
|
|
409
|
-
async getSource(
|
|
409
|
+
async getSource(n) {
|
|
410
410
|
try {
|
|
411
|
-
|
|
412
|
-
const t = await
|
|
411
|
+
ge[n] || (ge[n] = Ut(this.download(n))), this.svgElSource && ge[n].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
412
|
+
const t = await ge[n];
|
|
413
413
|
this.svgElSource = t, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
414
414
|
} catch (t) {
|
|
415
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
415
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ge[n], this.$emit("error", t);
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
/**
|
|
@@ -420,8 +420,8 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
420
420
|
* @param {string} url
|
|
421
421
|
* @returns {PromiseWithState<Element>}
|
|
422
422
|
*/
|
|
423
|
-
async download(
|
|
424
|
-
const t = await fetch(
|
|
423
|
+
async download(n) {
|
|
424
|
+
const t = await fetch(n);
|
|
425
425
|
if (!t.ok) throw new Error("Error loading SVG");
|
|
426
426
|
const e = await t.text(), s = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("svg")[0];
|
|
427
427
|
if (!s) throw new Error("Loaded file is not a valid SVG");
|
|
@@ -429,25 +429,25 @@ const Lt = S(wt), xt = /* @__PURE__ */ I({
|
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
431
|
watch: {
|
|
432
|
-
src(
|
|
433
|
-
this.getSource(
|
|
432
|
+
src(n) {
|
|
433
|
+
this.getSource(n);
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
436
|
expose: []
|
|
437
437
|
});
|
|
438
|
-
function
|
|
439
|
-
const e =
|
|
438
|
+
function Pt(n, t) {
|
|
439
|
+
const e = n.getElementsByTagName("title");
|
|
440
440
|
if (e.length)
|
|
441
441
|
e[0].textContent = t;
|
|
442
442
|
else {
|
|
443
443
|
const l = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
444
|
-
l.textContent = t,
|
|
444
|
+
l.textContent = t, n.insertBefore(l, n.firstChild);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
if (
|
|
447
|
+
function Ut(n) {
|
|
448
|
+
if (n.getIsPending) return n;
|
|
449
449
|
let t = !0;
|
|
450
|
-
const e =
|
|
450
|
+
const e = n.then(
|
|
451
451
|
(l) => (t = !1, l),
|
|
452
452
|
(l) => {
|
|
453
453
|
throw t = !1, l;
|
|
@@ -455,7 +455,7 @@ function Mt(o) {
|
|
|
455
455
|
);
|
|
456
456
|
return e.getIsPending = () => t, e;
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const Nt = /* @__PURE__ */ C({
|
|
459
459
|
__name: "QIconSvg",
|
|
460
460
|
props: {
|
|
461
461
|
icon: {},
|
|
@@ -464,8 +464,8 @@ const zt = /* @__PURE__ */ I({
|
|
|
464
464
|
bundle: { default: "" }
|
|
465
465
|
},
|
|
466
466
|
emits: ["loaded", "unloaded"],
|
|
467
|
-
setup(
|
|
468
|
-
const e =
|
|
467
|
+
setup(n, { emit: t }) {
|
|
468
|
+
const e = n, l = t, o = y(() => ({
|
|
469
469
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
470
470
|
}));
|
|
471
471
|
function s(a) {
|
|
@@ -474,58 +474,58 @@ const zt = /* @__PURE__ */ I({
|
|
|
474
474
|
function d() {
|
|
475
475
|
l("unloaded");
|
|
476
476
|
}
|
|
477
|
-
return (a, i) => (r(), B(
|
|
478
|
-
class:
|
|
477
|
+
return (a, i) => (r(), B(m(Ot), {
|
|
478
|
+
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
479
479
|
src: e.bundle,
|
|
480
480
|
symbol: e.icon,
|
|
481
|
-
style: pe(
|
|
481
|
+
style: pe(o.value),
|
|
482
482
|
onLoaded: s,
|
|
483
483
|
onUnloaded: d
|
|
484
484
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
485
485
|
}
|
|
486
|
-
}), O =
|
|
486
|
+
}), O = I(Dt), lt = I(zt), ot = I(Ft), st = I(Nt), Rt = {
|
|
487
487
|
remove: {
|
|
488
488
|
icon: "close"
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
function
|
|
492
|
-
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(
|
|
491
|
+
function Gt(n) {
|
|
492
|
+
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n);
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
const t =
|
|
494
|
+
function Ht(n) {
|
|
495
|
+
const t = n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
496
496
|
if (t) {
|
|
497
|
-
const e = parseInt(t[1], 10), l = parseInt(t[2], 10),
|
|
498
|
-
return { r: e, g: l, b:
|
|
497
|
+
const e = parseInt(t[1], 10), l = parseInt(t[2], 10), o = parseInt(t[3], 10);
|
|
498
|
+
return { r: e, g: l, b: o };
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
-
const t = parseInt(
|
|
501
|
+
function at(n) {
|
|
502
|
+
if (Gt(n)) {
|
|
503
|
+
n.length === 4 && (n = "#" + n[1] + n[1] + n[2] + n[2] + n[3] + n[3]);
|
|
504
|
+
const t = parseInt(n.slice(1, 3), 16), e = parseInt(n.slice(3, 5), 16), l = parseInt(n.slice(5, 7), 16);
|
|
505
505
|
return { r: t, g: e, b: l };
|
|
506
506
|
} else {
|
|
507
|
-
const t =
|
|
507
|
+
const t = Ht(n);
|
|
508
508
|
if (t) return t;
|
|
509
509
|
}
|
|
510
510
|
throw new Error("Invalid color format");
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
const t =
|
|
512
|
+
function jt(n) {
|
|
513
|
+
const t = n.r / 255, e = n.g / 255, l = n.b / 255, o = Math.max(t, e, l), s = Math.min(t, e, l);
|
|
514
514
|
let d = 0, a;
|
|
515
|
-
const i = (
|
|
516
|
-
if (
|
|
515
|
+
const i = (o + s) / 2;
|
|
516
|
+
if (o === s)
|
|
517
517
|
d = a = 0;
|
|
518
518
|
else {
|
|
519
|
-
const
|
|
520
|
-
switch (a = i > 0.5 ?
|
|
519
|
+
const u = o - s;
|
|
520
|
+
switch (a = i > 0.5 ? u / (2 - o - s) : u / (o + s), o) {
|
|
521
521
|
case t:
|
|
522
|
-
d = (e - l) /
|
|
522
|
+
d = (e - l) / u + (e < l ? 6 : 0);
|
|
523
523
|
break;
|
|
524
524
|
case e:
|
|
525
|
-
d = (l - t) /
|
|
525
|
+
d = (l - t) / u + 2;
|
|
526
526
|
break;
|
|
527
527
|
case l:
|
|
528
|
-
d = (t - e) /
|
|
528
|
+
d = (t - e) / u + 4;
|
|
529
529
|
break;
|
|
530
530
|
}
|
|
531
531
|
d /= 6;
|
|
@@ -536,51 +536,51 @@ function Ut(o) {
|
|
|
536
536
|
l: Math.round(i * 100)
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
return
|
|
539
|
+
function Kt(n) {
|
|
540
|
+
return n > 50 ? "#000" : "#fff";
|
|
541
541
|
}
|
|
542
|
-
const
|
|
542
|
+
const Wt = { class: "q-badge__content" }, Xt = /* @__PURE__ */ C({
|
|
543
543
|
__name: "QBadge",
|
|
544
544
|
props: {
|
|
545
545
|
color: { default: "primary" },
|
|
546
546
|
variant: { default: "tonal" },
|
|
547
547
|
removable: { type: Boolean },
|
|
548
548
|
pill: { type: Boolean },
|
|
549
|
-
icons: { default: () =>
|
|
549
|
+
icons: { default: () => Rt }
|
|
550
550
|
},
|
|
551
551
|
emits: ["click:remove"],
|
|
552
|
-
setup(
|
|
553
|
-
const e =
|
|
552
|
+
setup(n, { emit: t }) {
|
|
553
|
+
const e = n, l = t, o = y(
|
|
554
554
|
() => ["primary", "info", "success", "warning", "danger"].includes(e.color)
|
|
555
|
-
), s =
|
|
556
|
-
const i =
|
|
555
|
+
), s = y(() => {
|
|
556
|
+
const i = o.value ? `q-badge--${e.color}` : void 0;
|
|
557
557
|
return ["q-badge", `q-badge--${e.variant}`, i, { "q-badge--pill": e.pill }];
|
|
558
|
-
}), d =
|
|
559
|
-
let i,
|
|
560
|
-
if (!
|
|
558
|
+
}), d = y(() => {
|
|
559
|
+
let i, u;
|
|
560
|
+
if (!o.value)
|
|
561
561
|
if (i = e.color, e.variant === "tonal")
|
|
562
|
-
|
|
562
|
+
u = e.color;
|
|
563
563
|
else {
|
|
564
|
-
const
|
|
565
|
-
|
|
564
|
+
const _ = at(i), w = jt(_);
|
|
565
|
+
u = Kt(w.l);
|
|
566
566
|
}
|
|
567
567
|
return {
|
|
568
568
|
"--q-badge-color": i,
|
|
569
|
-
"--q-badge-text-color":
|
|
569
|
+
"--q-badge-text-color": u
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
572
|
function a() {
|
|
573
573
|
l("click:remove");
|
|
574
574
|
}
|
|
575
|
-
return (i,
|
|
576
|
-
class:
|
|
575
|
+
return (i, u) => (r(), f("span", {
|
|
576
|
+
class: T(s.value),
|
|
577
577
|
role: "presentation",
|
|
578
578
|
style: pe(d.value)
|
|
579
579
|
}, [
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
u[0] || (u[0] = q("div", { class: "q-badge__underlay" }, null, -1)),
|
|
581
|
+
q("div", Wt, [
|
|
582
582
|
p(i.$slots, "default"),
|
|
583
|
-
e.removable ? (r(), B(
|
|
583
|
+
e.removable ? (r(), B(m(se), {
|
|
584
584
|
key: 0,
|
|
585
585
|
class: "q-badge__remove",
|
|
586
586
|
borderless: "",
|
|
@@ -588,14 +588,14 @@ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
|
|
|
588
588
|
onClick: a
|
|
589
589
|
}, {
|
|
590
590
|
default: k(() => [
|
|
591
|
-
|
|
591
|
+
D(m(O), Y(oe(e.icons.remove)), null, 16)
|
|
592
592
|
]),
|
|
593
593
|
_: 1
|
|
594
594
|
})) : b("", !0)
|
|
595
595
|
])
|
|
596
596
|
], 6));
|
|
597
597
|
}
|
|
598
|
-
}),
|
|
598
|
+
}), Yt = I(Xt), Zt = /* @__PURE__ */ C({
|
|
599
599
|
__name: "QButtonGroup",
|
|
600
600
|
props: {
|
|
601
601
|
disabled: { type: Boolean },
|
|
@@ -603,17 +603,17 @@ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
|
|
|
603
603
|
elevated: { type: Boolean },
|
|
604
604
|
class: { default: void 0 }
|
|
605
605
|
},
|
|
606
|
-
setup(
|
|
607
|
-
const t =
|
|
608
|
-
return
|
|
606
|
+
setup(n) {
|
|
607
|
+
const t = n;
|
|
608
|
+
return Pe({
|
|
609
609
|
QButton: {
|
|
610
610
|
bStyle: "secondary",
|
|
611
|
-
disabled:
|
|
612
|
-
borderless:
|
|
611
|
+
disabled: Ve(t, "disabled"),
|
|
612
|
+
borderless: Ve(t, "borderless"),
|
|
613
613
|
elevated: !1
|
|
614
614
|
}
|
|
615
615
|
}), (e, l) => (r(), f("div", {
|
|
616
|
-
class:
|
|
616
|
+
class: T([
|
|
617
617
|
"q-btn-group",
|
|
618
618
|
{
|
|
619
619
|
"q-btn-group--elevated": t.elevated
|
|
@@ -624,7 +624,7 @@ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
|
|
|
624
624
|
p(e.$slots, "default")
|
|
625
625
|
], 2));
|
|
626
626
|
}
|
|
627
|
-
}),
|
|
627
|
+
}), it = I(Zt), Jt = /* @__PURE__ */ C({
|
|
628
628
|
__name: "QButtonToggle",
|
|
629
629
|
props: /* @__PURE__ */ G({
|
|
630
630
|
options: {},
|
|
@@ -638,21 +638,21 @@ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
|
|
|
638
638
|
modelModifiers: {}
|
|
639
639
|
}),
|
|
640
640
|
emits: ["update:modelValue"],
|
|
641
|
-
setup(
|
|
642
|
-
const t =
|
|
643
|
-
function l(
|
|
644
|
-
e.value ===
|
|
641
|
+
setup(n) {
|
|
642
|
+
const t = n, e = X(n, "modelValue");
|
|
643
|
+
function l(o) {
|
|
644
|
+
e.value === o.key && !t.required ? e.value = void 0 : e.value = o.key;
|
|
645
645
|
}
|
|
646
|
-
return (
|
|
646
|
+
return (o, s) => (r(), B(m(it), {
|
|
647
647
|
"b-style": "secondary",
|
|
648
|
-
class:
|
|
648
|
+
class: T(t.class),
|
|
649
649
|
disabled: t.disabled,
|
|
650
650
|
borderless: t.borderless,
|
|
651
651
|
elevated: t.elevated,
|
|
652
652
|
role: "listbox"
|
|
653
653
|
}, {
|
|
654
654
|
default: k(() => [
|
|
655
|
-
(r(!0), f(
|
|
655
|
+
(r(!0), f(U, null, ve(t.options, (d) => (r(), B(m(se), {
|
|
656
656
|
key: d.key,
|
|
657
657
|
title: d.title,
|
|
658
658
|
label: d.label,
|
|
@@ -662,7 +662,7 @@ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
|
|
|
662
662
|
onClick: () => l(d)
|
|
663
663
|
}, {
|
|
664
664
|
default: k(() => [
|
|
665
|
-
p(
|
|
665
|
+
p(o.$slots, d.key)
|
|
666
666
|
]),
|
|
667
667
|
_: 2
|
|
668
668
|
}, 1032, ["title", "label", "active", "aria-selected", "onClick"]))), 128))
|
|
@@ -670,26 +670,26 @@ const Rt = { class: "q-badge__content" }, Gt = /* @__PURE__ */ I({
|
|
|
670
670
|
_: 3
|
|
671
671
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
672
672
|
}
|
|
673
|
-
}),
|
|
674
|
-
let
|
|
675
|
-
function
|
|
676
|
-
return
|
|
673
|
+
}), en = I(Jt);
|
|
674
|
+
let tn = 0;
|
|
675
|
+
function ue(n) {
|
|
676
|
+
return n || `uid-${++tn}`;
|
|
677
677
|
}
|
|
678
|
-
const
|
|
678
|
+
const nn = { class: "q-card__header" }, ln = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "q-card__header-content"
|
|
681
|
-
},
|
|
681
|
+
}, on = { class: "q-card__header-text" }, sn = {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "q-card__title",
|
|
684
684
|
role: "cell"
|
|
685
|
-
},
|
|
685
|
+
}, an = {
|
|
686
686
|
key: 1,
|
|
687
687
|
class: "q-card__subtitle",
|
|
688
688
|
role: "cell"
|
|
689
|
-
},
|
|
689
|
+
}, rn = { class: "q-card__content" }, dn = {
|
|
690
690
|
key: 0,
|
|
691
691
|
class: "q-card__footer"
|
|
692
|
-
},
|
|
692
|
+
}, un = /* @__PURE__ */ C({
|
|
693
693
|
__name: "QCard",
|
|
694
694
|
props: {
|
|
695
695
|
id: { default: void 0 },
|
|
@@ -703,14 +703,14 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
703
703
|
elevation: { default: "none" },
|
|
704
704
|
width: { default: void 0 }
|
|
705
705
|
},
|
|
706
|
-
setup(
|
|
707
|
-
const t =
|
|
708
|
-
const i = t.width ? `q-card--${t.width}` : void 0,
|
|
706
|
+
setup(n) {
|
|
707
|
+
const t = n, e = vt(), l = ue(t.id), o = y(() => {
|
|
708
|
+
const i = t.width ? `q-card--${t.width}` : void 0, u = t.variant && t.variant !== "default" ? `q-card--${t.variant}` : void 0, _ = t.elevation && t.elevation !== "none" ? `q-card--elevation-${t.elevation}` : void 0;
|
|
709
709
|
return [
|
|
710
710
|
"q-card",
|
|
711
711
|
i,
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
u,
|
|
713
|
+
_,
|
|
714
714
|
{
|
|
715
715
|
"q-card--clickable": s.value,
|
|
716
716
|
"q-card--loading": t.loading,
|
|
@@ -718,34 +718,34 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
718
718
|
"q-card--disabled": t.disabled
|
|
719
719
|
}
|
|
720
720
|
];
|
|
721
|
-
}), s =
|
|
721
|
+
}), s = y(() => !!e.onClick || t.href), d = y(() => t.disabled || t.loading), a = (i) => {
|
|
722
722
|
d.value && i.stopImmediatePropagation();
|
|
723
723
|
};
|
|
724
|
-
return (i,
|
|
725
|
-
id:
|
|
726
|
-
class:
|
|
724
|
+
return (i, u) => (r(), B(Se(t.href ? "a" : "div"), {
|
|
725
|
+
id: m(l),
|
|
726
|
+
class: T([...o.value, i.$attrs.class]),
|
|
727
727
|
href: t.href && !d.value ? t.href : void 0,
|
|
728
728
|
onClick: a
|
|
729
729
|
}, {
|
|
730
730
|
default: k(() => [
|
|
731
|
-
t.loading ? (r(), B(
|
|
731
|
+
t.loading ? (r(), B(m($e), {
|
|
732
732
|
key: 0,
|
|
733
733
|
size: 36
|
|
734
|
-
})) : (r(), f(
|
|
735
|
-
|
|
734
|
+
})) : (r(), f(U, { key: 1 }, [
|
|
735
|
+
q("div", nn, [
|
|
736
736
|
p(i.$slots, "header", {}, () => [
|
|
737
737
|
p(i.$slots, "header.prepend"),
|
|
738
|
-
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), f("div",
|
|
738
|
+
i.$slots.title || t.title || i.$slots.subtitle || t.subtitle ? (r(), f("div", ln, [
|
|
739
739
|
p(i.$slots, "header.content.prepend"),
|
|
740
|
-
|
|
741
|
-
i.$slots.title || t.title ? (r(), f("p",
|
|
742
|
-
i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (r(), f(
|
|
743
|
-
de(
|
|
740
|
+
q("div", on, [
|
|
741
|
+
i.$slots.title || t.title ? (r(), f("p", sn, [
|
|
742
|
+
i.$slots.title ? p(i.$slots, "title", { key: 0 }) : (r(), f(U, { key: 1 }, [
|
|
743
|
+
de(Q(i.$props.title), 1)
|
|
744
744
|
], 64))
|
|
745
745
|
])) : b("", !0),
|
|
746
|
-
i.$slots.subtitle || t.subtitle ? (r(), f("p",
|
|
747
|
-
i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (r(), f(
|
|
748
|
-
de(
|
|
746
|
+
i.$slots.subtitle || t.subtitle ? (r(), f("p", an, [
|
|
747
|
+
i.$slots.subtitle ? p(i.$slots, "subtitle", { key: 0 }) : (r(), f(U, { key: 1 }, [
|
|
748
|
+
de(Q(i.$props.subtitle), 1)
|
|
749
749
|
], 64))
|
|
750
750
|
])) : b("", !0)
|
|
751
751
|
]),
|
|
@@ -754,10 +754,10 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
754
754
|
p(i.$slots, "header.append")
|
|
755
755
|
])
|
|
756
756
|
]),
|
|
757
|
-
|
|
757
|
+
q("div", rn, [
|
|
758
758
|
p(i.$slots, "default")
|
|
759
759
|
]),
|
|
760
|
-
i.$slots.footer ? (r(), f("div",
|
|
760
|
+
i.$slots.footer ? (r(), f("div", dn, [
|
|
761
761
|
p(i.$slots, "footer")
|
|
762
762
|
])) : b("", !0)
|
|
763
763
|
], 64))
|
|
@@ -765,14 +765,14 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
765
765
|
_: 3
|
|
766
766
|
}, 8, ["id", "class", "href"]));
|
|
767
767
|
}
|
|
768
|
-
}),
|
|
768
|
+
}), rt = I(un), cn = {
|
|
769
769
|
checked: {
|
|
770
770
|
icon: "check"
|
|
771
771
|
},
|
|
772
772
|
indeterminate: {
|
|
773
773
|
icon: "minus"
|
|
774
774
|
}
|
|
775
|
-
},
|
|
775
|
+
}, fn = { key: 0 }, pn = ["id", "aria-checked", "disabled", "onKeydown"], mn = { key: 1 }, hn = ["checked", "disabled"], yn = /* @__PURE__ */ C({
|
|
776
776
|
__name: "QCheckbox",
|
|
777
777
|
props: /* @__PURE__ */ G({
|
|
778
778
|
id: { default: void 0 },
|
|
@@ -784,14 +784,14 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
784
784
|
color: { default: "primary" },
|
|
785
785
|
size: { default: "regular" },
|
|
786
786
|
class: { default: void 0 },
|
|
787
|
-
icons: { default: () =>
|
|
787
|
+
icons: { default: () => cn }
|
|
788
788
|
}, {
|
|
789
789
|
modelValue: { type: Boolean },
|
|
790
790
|
modelModifiers: {}
|
|
791
791
|
}),
|
|
792
792
|
emits: ["update:modelValue"],
|
|
793
|
-
setup(
|
|
794
|
-
const t =
|
|
793
|
+
setup(n) {
|
|
794
|
+
const t = n, e = X(n, "modelValue"), l = ue(t.id), o = y(() => [
|
|
795
795
|
"q-checkbox",
|
|
796
796
|
`q-checkbox--${t.size}`,
|
|
797
797
|
`q-checkbox--${t.color}`,
|
|
@@ -806,13 +806,13 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
806
806
|
function s() {
|
|
807
807
|
!t.disabled && !t.readonly && (e.value = !e.value);
|
|
808
808
|
}
|
|
809
|
-
return (d, a) => (r(), f(
|
|
810
|
-
|
|
811
|
-
class:
|
|
809
|
+
return (d, a) => (r(), f(U, null, [
|
|
810
|
+
q("label", {
|
|
811
|
+
class: T(o.value)
|
|
812
812
|
}, [
|
|
813
|
-
t.labelPlacement !== "right" ? (r(), f("span",
|
|
814
|
-
|
|
815
|
-
id:
|
|
813
|
+
t.labelPlacement !== "right" ? (r(), f("span", fn, Q(t.label), 1)) : b("", !0),
|
|
814
|
+
q("button", {
|
|
815
|
+
id: m(l),
|
|
816
816
|
role: "checkbox",
|
|
817
817
|
type: "button",
|
|
818
818
|
"aria-checked": t.indeterminate ? "mixed" : e.value,
|
|
@@ -820,39 +820,39 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
820
820
|
class: "q-checkbox__input",
|
|
821
821
|
onClick: fe(s, ["prevent"]),
|
|
822
822
|
onKeydown: [
|
|
823
|
-
|
|
824
|
-
a[0] || (a[0] =
|
|
823
|
+
Ae(fe(s, ["prevent"]), ["space"]),
|
|
824
|
+
a[0] || (a[0] = Ae(fe(() => {
|
|
825
825
|
}, ["prevent"]), ["enter"]))
|
|
826
826
|
]
|
|
827
827
|
}, [
|
|
828
|
-
e.value || d.indeterminate ? (r(), B(
|
|
829
|
-
], 40,
|
|
830
|
-
t.labelPlacement === "right" ? (r(), f("span",
|
|
828
|
+
e.value || d.indeterminate ? (r(), B(m(O), H({ key: 0 }, e.value ? t.icons.checked : t.icons.indeterminate, { class: "q-checkbox__input-icon" }), null, 16)) : b("", !0)
|
|
829
|
+
], 40, pn),
|
|
830
|
+
t.labelPlacement === "right" ? (r(), f("span", mn, Q(t.label), 1)) : b("", !0)
|
|
831
831
|
], 2),
|
|
832
|
-
|
|
832
|
+
q("input", {
|
|
833
833
|
type: "checkbox",
|
|
834
834
|
tabindex: "-1",
|
|
835
835
|
"aria-hidden": "true",
|
|
836
836
|
class: "q-checkbox__native-input",
|
|
837
837
|
checked: !!e.value,
|
|
838
838
|
disabled: t.disabled || t.readonly
|
|
839
|
-
}, null, 8,
|
|
839
|
+
}, null, 8, hn)
|
|
840
840
|
], 64));
|
|
841
841
|
}
|
|
842
|
-
}),
|
|
842
|
+
}), vn = I(yn), bn = {
|
|
843
843
|
chevron: {
|
|
844
844
|
icon: "chevron-down"
|
|
845
845
|
}
|
|
846
|
-
},
|
|
846
|
+
}, gn = {
|
|
847
847
|
key: 0,
|
|
848
848
|
class: "q-collapsible__header"
|
|
849
|
-
},
|
|
849
|
+
}, _n = { class: "q-collapsible__title" }, $n = { class: "q-collapsible__title-text" }, kn = {
|
|
850
850
|
key: 1,
|
|
851
851
|
class: "q-collapsible--required"
|
|
852
|
-
},
|
|
852
|
+
}, wn = {
|
|
853
853
|
key: 0,
|
|
854
854
|
class: "q-collapsible__subtitle"
|
|
855
|
-
},
|
|
855
|
+
}, qn = { class: "q-collapsible__content-inner" }, xn = { class: "q-collapsible__content" }, Sn = /* @__PURE__ */ C({
|
|
856
856
|
__name: "QCollapsible",
|
|
857
857
|
props: /* @__PURE__ */ G({
|
|
858
858
|
id: { default: void 0 },
|
|
@@ -863,63 +863,63 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
863
863
|
spacing: {},
|
|
864
864
|
variant: {},
|
|
865
865
|
iconRight: { type: Boolean },
|
|
866
|
-
icons: { default: () =>
|
|
866
|
+
icons: { default: () => bn }
|
|
867
867
|
}, {
|
|
868
868
|
modelValue: { type: Boolean },
|
|
869
869
|
modelModifiers: {}
|
|
870
870
|
}),
|
|
871
871
|
emits: ["update:modelValue"],
|
|
872
|
-
setup(
|
|
873
|
-
const t =
|
|
874
|
-
const
|
|
872
|
+
setup(n) {
|
|
873
|
+
const t = n, e = X(n, "modelValue"), l = ue(t.id), o = St(l), s = y(() => t.width === "block" ? "block" : void 0), d = y(() => {
|
|
874
|
+
const u = t.spacing && t.spacing !== "comfortable" ? `q-collapsible--${t.spacing}` : void 0, _ = t.variant && t.variant !== "default" ? `q-collapsible--${t.variant}` : void 0;
|
|
875
875
|
return [
|
|
876
876
|
"q-collapsible",
|
|
877
|
-
|
|
878
|
-
|
|
877
|
+
u,
|
|
878
|
+
_,
|
|
879
879
|
{
|
|
880
880
|
"q-collapsible--icon-right": t.iconRight,
|
|
881
881
|
"q-collapsible--expanded": e.value
|
|
882
882
|
}
|
|
883
883
|
];
|
|
884
|
-
}), a =
|
|
884
|
+
}), a = y(() => [
|
|
885
885
|
"q-collapsible__content-wrapper",
|
|
886
886
|
{
|
|
887
887
|
"q-collapsible__content-show": e.value
|
|
888
888
|
}
|
|
889
889
|
]), i = () => {
|
|
890
|
-
e.value = !e.value,
|
|
890
|
+
e.value = !e.value, o == null || o.toggle();
|
|
891
891
|
};
|
|
892
892
|
return ee(
|
|
893
|
-
() =>
|
|
894
|
-
() => e.value =
|
|
895
|
-
), (
|
|
896
|
-
id:
|
|
897
|
-
class:
|
|
893
|
+
() => o == null ? void 0 : o.isActive.value,
|
|
894
|
+
() => e.value = o == null ? void 0 : o.isActive.value
|
|
895
|
+
), (u, _) => (r(), B(m(rt), {
|
|
896
|
+
id: m(l),
|
|
897
|
+
class: T(d.value),
|
|
898
898
|
width: s.value
|
|
899
899
|
}, {
|
|
900
900
|
header: k(() => [
|
|
901
|
-
|
|
902
|
-
|
|
901
|
+
u.title ? (r(), f("div", gn, [
|
|
902
|
+
D(m(se), {
|
|
903
903
|
"b-style": "tertiary",
|
|
904
904
|
class: "q-collapsible__btn",
|
|
905
905
|
onClick: i
|
|
906
906
|
}, {
|
|
907
907
|
default: k(() => [
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
908
|
+
q("div", _n, [
|
|
909
|
+
u.iconRight ? b("", !0) : p(u.$slots, "icon", { key: 0 }, () => [
|
|
910
|
+
D(m(O), H({ class: "q-collapsible__chevron" }, t.icons.chevron), null, 16)
|
|
911
911
|
]),
|
|
912
|
-
p(
|
|
913
|
-
|
|
914
|
-
t.required ? (r(), f("span",
|
|
915
|
-
p(
|
|
916
|
-
|
|
917
|
-
|
|
912
|
+
p(u.$slots, "title.prepend"),
|
|
913
|
+
q("h4", $n, Q(u.title), 1),
|
|
914
|
+
t.required ? (r(), f("span", kn, " * ")) : b("", !0),
|
|
915
|
+
p(u.$slots, "title.append"),
|
|
916
|
+
u.iconRight ? p(u.$slots, "icon", { key: 2 }, () => [
|
|
917
|
+
D(m(O), H({ class: "q-collapsible__chevron q-collapsible__chevron-right" }, t.icons.chevron), null, 16)
|
|
918
918
|
]) : b("", !0)
|
|
919
919
|
]),
|
|
920
|
-
|
|
921
|
-
p(
|
|
922
|
-
de(
|
|
920
|
+
u.$slots.subtitle || u.subtitle ? (r(), f("div", wn, [
|
|
921
|
+
p(u.$slots, "subtitle", {}, () => [
|
|
922
|
+
de(Q(u.subtitle), 1)
|
|
923
923
|
])
|
|
924
924
|
])) : b("", !0)
|
|
925
925
|
]),
|
|
@@ -928,12 +928,12 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
928
928
|
])) : b("", !0)
|
|
929
929
|
]),
|
|
930
930
|
default: k(() => [
|
|
931
|
-
|
|
932
|
-
class:
|
|
931
|
+
q("div", {
|
|
932
|
+
class: T(a.value)
|
|
933
933
|
}, [
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
p(
|
|
934
|
+
q("div", qn, [
|
|
935
|
+
q("div", xn, [
|
|
936
|
+
p(u.$slots, "default")
|
|
937
937
|
])
|
|
938
938
|
])
|
|
939
939
|
], 2)
|
|
@@ -941,7 +941,7 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
941
941
|
_: 3
|
|
942
942
|
}, 8, ["id", "class", "width"]));
|
|
943
943
|
}
|
|
944
|
-
}),
|
|
944
|
+
}), Bn = I(Sn), Ln = /* @__PURE__ */ C({
|
|
945
945
|
__name: "QList",
|
|
946
946
|
props: /* @__PURE__ */ G({
|
|
947
947
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -959,143 +959,143 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
959
959
|
modelModifiers: {}
|
|
960
960
|
}),
|
|
961
961
|
emits: ["update:modelValue"],
|
|
962
|
-
setup(
|
|
963
|
-
const e =
|
|
964
|
-
(
|
|
962
|
+
setup(n, { expose: t }) {
|
|
963
|
+
const e = n, l = X(n, "modelValue"), o = A(!1), s = y(() => d.value.length > 1 ? "div" : "ul"), d = y(() => e.groups.length ? e.groups.filter(
|
|
964
|
+
(v) => e.items.some((S) => S.group === v.id)
|
|
965
965
|
) : [{ id: "", title: "" }]), a = A(null);
|
|
966
|
-
function i(
|
|
967
|
-
l.value =
|
|
966
|
+
function i(v) {
|
|
967
|
+
l.value = v;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
969
|
+
function u() {
|
|
970
|
+
o.value = !0;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
973
|
-
|
|
972
|
+
function _() {
|
|
973
|
+
o.value = !1;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
976
|
-
var
|
|
977
|
-
if ((
|
|
975
|
+
function w(v) {
|
|
976
|
+
var $;
|
|
977
|
+
if (($ = a.value) != null && $.contains(v.relatedTarget))
|
|
978
978
|
return;
|
|
979
|
-
let
|
|
980
|
-
l.value ?
|
|
981
|
-
const
|
|
982
|
-
|
|
979
|
+
let S;
|
|
980
|
+
l.value ? S = e.items.findIndex((K) => K[e.itemValue] === l.value) : S = M();
|
|
981
|
+
const h = o.value;
|
|
982
|
+
V(S, h);
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
984
|
+
function N(v) {
|
|
985
|
+
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(v.key) && v.preventDefault(), v.key) {
|
|
986
986
|
case "ArrowDown":
|
|
987
|
-
|
|
987
|
+
z("next");
|
|
988
988
|
break;
|
|
989
989
|
case "ArrowUp":
|
|
990
|
-
|
|
990
|
+
z("prev");
|
|
991
991
|
break;
|
|
992
992
|
case "Home":
|
|
993
|
-
|
|
993
|
+
z("first");
|
|
994
994
|
break;
|
|
995
995
|
case "End":
|
|
996
|
-
|
|
996
|
+
z("last");
|
|
997
997
|
break;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
switch (
|
|
1000
|
+
function z(v) {
|
|
1001
|
+
switch (v) {
|
|
1002
1002
|
case "next":
|
|
1003
1003
|
case "prev":
|
|
1004
|
-
|
|
1004
|
+
V(Z(v));
|
|
1005
1005
|
break;
|
|
1006
1006
|
case "first":
|
|
1007
|
-
|
|
1007
|
+
V(M());
|
|
1008
1008
|
break;
|
|
1009
1009
|
case "last":
|
|
1010
|
-
|
|
1010
|
+
V(j());
|
|
1011
1011
|
break;
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
var
|
|
1016
|
-
(
|
|
1014
|
+
function V(v, S = !1) {
|
|
1015
|
+
var $;
|
|
1016
|
+
($ = g()[v]) == null || $.focus({ preventScroll: S });
|
|
1017
1017
|
}
|
|
1018
1018
|
function g() {
|
|
1019
|
-
var
|
|
1020
|
-
const
|
|
1021
|
-
return
|
|
1019
|
+
var S;
|
|
1020
|
+
const v = (S = a.value) == null ? void 0 : S.querySelectorAll("li");
|
|
1021
|
+
return v ? Array.from(v) : [];
|
|
1022
1022
|
}
|
|
1023
|
-
function E(
|
|
1024
|
-
return g()[
|
|
1023
|
+
function E(v) {
|
|
1024
|
+
return g()[v];
|
|
1025
1025
|
}
|
|
1026
1026
|
function P() {
|
|
1027
1027
|
return g().indexOf(document.activeElement);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1029
|
+
function M() {
|
|
1030
|
+
const v = g(), S = v.find((h) => R(h));
|
|
1031
|
+
return S ? v.indexOf(S) : -1;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const
|
|
1035
|
-
return
|
|
1036
|
-
}
|
|
1037
|
-
function ae(
|
|
1038
|
-
return
|
|
1039
|
-
}
|
|
1040
|
-
function Z(
|
|
1041
|
-
const
|
|
1042
|
-
return ie(
|
|
1043
|
-
}
|
|
1044
|
-
function ie(
|
|
1045
|
-
const
|
|
1046
|
-
if (ae(
|
|
1047
|
-
return
|
|
1048
|
-
let
|
|
1049
|
-
for (; !R(
|
|
1050
|
-
if (ae(
|
|
1051
|
-
return
|
|
1052
|
-
|
|
1033
|
+
function j() {
|
|
1034
|
+
const v = g(), S = [...v].reverse().find((h) => R(h));
|
|
1035
|
+
return S ? v.indexOf(S) : -1;
|
|
1036
|
+
}
|
|
1037
|
+
function ae(v, S, h) {
|
|
1038
|
+
return S === "prev" && v === 0 || S === "next" && v === h.length - 1;
|
|
1039
|
+
}
|
|
1040
|
+
function Z(v) {
|
|
1041
|
+
const S = P();
|
|
1042
|
+
return ie(S, v);
|
|
1043
|
+
}
|
|
1044
|
+
function ie(v, S) {
|
|
1045
|
+
const h = g();
|
|
1046
|
+
if (ae(v, S, h))
|
|
1047
|
+
return v;
|
|
1048
|
+
let $ = v + (S === "next" ? 1 : -1);
|
|
1049
|
+
for (; !R(h[$]); ) {
|
|
1050
|
+
if (ae($, S, h))
|
|
1051
|
+
return v;
|
|
1052
|
+
$ += S === "next" ? 1 : -1;
|
|
1053
1053
|
}
|
|
1054
|
-
return
|
|
1054
|
+
return $;
|
|
1055
1055
|
}
|
|
1056
|
-
function R(
|
|
1057
|
-
return
|
|
1056
|
+
function R(v) {
|
|
1057
|
+
return v.tabIndex === -2;
|
|
1058
1058
|
}
|
|
1059
|
-
function te(
|
|
1060
|
-
return
|
|
1059
|
+
function te(v) {
|
|
1060
|
+
return v ? e.items.filter((S) => S.group === v) : e.items;
|
|
1061
1061
|
}
|
|
1062
1062
|
return t({
|
|
1063
|
-
focusItem:
|
|
1063
|
+
focusItem: V,
|
|
1064
1064
|
getItem: E,
|
|
1065
1065
|
getAdjacentItemIndex: ie,
|
|
1066
|
-
getFirstFocusableItemIndex:
|
|
1067
|
-
getLastFocusableItemIndex:
|
|
1068
|
-
}), (
|
|
1066
|
+
getFirstFocusableItemIndex: M,
|
|
1067
|
+
getLastFocusableItemIndex: j
|
|
1068
|
+
}), (v, S) => (r(), B(Se(s.value), {
|
|
1069
1069
|
ref_key: "listRef",
|
|
1070
1070
|
ref: a,
|
|
1071
|
-
class:
|
|
1071
|
+
class: T(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
1072
1072
|
role: "listbox",
|
|
1073
1073
|
tabindex: e.disabled ? -1 : 0,
|
|
1074
|
-
onFocus:
|
|
1075
|
-
onMousedown:
|
|
1076
|
-
onMouseup:
|
|
1077
|
-
onKeydown:
|
|
1074
|
+
onFocus: w,
|
|
1075
|
+
onMousedown: u,
|
|
1076
|
+
onMouseup: _,
|
|
1077
|
+
onKeydown: N
|
|
1078
1078
|
}, {
|
|
1079
1079
|
default: k(() => [
|
|
1080
|
-
(r(!0), f(
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
title: d.value.length === 1 ? void 0 :
|
|
1080
|
+
(r(!0), f(U, null, ve(d.value, (h) => (r(), B(m(ut), {
|
|
1081
|
+
id: h.id,
|
|
1082
|
+
key: h.id,
|
|
1083
|
+
title: d.value.length === 1 ? void 0 : h.title
|
|
1084
1084
|
}, {
|
|
1085
1085
|
default: k(() => [
|
|
1086
|
-
(r(!0), f(
|
|
1087
|
-
key:
|
|
1088
|
-
value:
|
|
1089
|
-
label:
|
|
1090
|
-
description:
|
|
1091
|
-
icon:
|
|
1092
|
-
disabled: e.disabled ||
|
|
1093
|
-
highlighted: e.highlighted ===
|
|
1094
|
-
selected:
|
|
1086
|
+
(r(!0), f(U, null, ve(te(h.id), ($) => (r(), B(m(dt), {
|
|
1087
|
+
key: $[e.itemValue],
|
|
1088
|
+
value: $[e.itemValue],
|
|
1089
|
+
label: $[e.itemLabel],
|
|
1090
|
+
description: $.description,
|
|
1091
|
+
icon: $.icon,
|
|
1092
|
+
disabled: e.disabled || h.disabled || $.disabled,
|
|
1093
|
+
highlighted: e.highlighted === $[e.itemValue],
|
|
1094
|
+
selected: v.selectable && l.value === $[e.itemValue],
|
|
1095
1095
|
onSelect: i
|
|
1096
1096
|
}, {
|
|
1097
1097
|
default: k(() => [
|
|
1098
|
-
p(
|
|
1098
|
+
p(v.$slots, "item", { item: $ })
|
|
1099
1099
|
]),
|
|
1100
1100
|
_: 2
|
|
1101
1101
|
}, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -1106,17 +1106,17 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
1106
1106
|
_: 3
|
|
1107
1107
|
}, 40, ["class", "tabindex"]));
|
|
1108
1108
|
}
|
|
1109
|
-
}),
|
|
1109
|
+
}), Cn = {
|
|
1110
1110
|
check: {
|
|
1111
1111
|
icon: "check"
|
|
1112
1112
|
},
|
|
1113
1113
|
description: {
|
|
1114
1114
|
icon: "information-outline"
|
|
1115
1115
|
}
|
|
1116
|
-
},
|
|
1116
|
+
}, In = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Tn = { class: "q-list-item__container" }, Vn = { class: "q-list-item__content" }, An = {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
class: "q-list-item__description"
|
|
1119
|
-
},
|
|
1119
|
+
}, En = { class: "q-list-item__check-container" }, Qn = /* @__PURE__ */ C({
|
|
1120
1120
|
__name: "QListItem",
|
|
1121
1121
|
props: {
|
|
1122
1122
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -1126,11 +1126,11 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
1126
1126
|
highlighted: { type: Boolean },
|
|
1127
1127
|
disabled: { type: Boolean },
|
|
1128
1128
|
description: { default: void 0 },
|
|
1129
|
-
icons: { default: () =>
|
|
1129
|
+
icons: { default: () => Cn }
|
|
1130
1130
|
},
|
|
1131
1131
|
emits: ["select"],
|
|
1132
|
-
setup(
|
|
1133
|
-
const e =
|
|
1132
|
+
setup(n, { emit: t }) {
|
|
1133
|
+
const e = n, l = t, o = ue();
|
|
1134
1134
|
function s() {
|
|
1135
1135
|
e.disabled || l("select", e.value);
|
|
1136
1136
|
}
|
|
@@ -1138,11 +1138,11 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
1138
1138
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
1139
1139
|
}
|
|
1140
1140
|
return (a, i) => (r(), f("li", {
|
|
1141
|
-
id:
|
|
1141
|
+
id: m(o),
|
|
1142
1142
|
"data-key": e.value,
|
|
1143
1143
|
role: "option",
|
|
1144
1144
|
tabindex: e.disabled ? void 0 : -2,
|
|
1145
|
-
class:
|
|
1145
|
+
class: T([
|
|
1146
1146
|
"q-list-item",
|
|
1147
1147
|
{
|
|
1148
1148
|
"q-list-item--disabled": e.disabled,
|
|
@@ -1155,184 +1155,287 @@ const Yt = { class: "q-card__header" }, Zt = {
|
|
|
1155
1155
|
onKeydown: d,
|
|
1156
1156
|
onClick: fe(s, ["stop", "prevent"])
|
|
1157
1157
|
}, [
|
|
1158
|
-
|
|
1159
|
-
|
|
1158
|
+
q("div", Tn, [
|
|
1159
|
+
q("div", Vn, [
|
|
1160
1160
|
p(a.$slots, "default", {}, () => [
|
|
1161
|
-
e.icon ? (r(), B(
|
|
1162
|
-
de(" " +
|
|
1161
|
+
e.icon ? (r(), B(m(O), Y(H({ key: 0 }, e.icon)), null, 16)) : b("", !0),
|
|
1162
|
+
de(" " + Q(e.label), 1)
|
|
1163
1163
|
])
|
|
1164
1164
|
]),
|
|
1165
|
-
e.description ? (r(), f("div",
|
|
1166
|
-
|
|
1167
|
-
|
|
1165
|
+
e.description ? (r(), f("div", An, [
|
|
1166
|
+
D(m(O), Y(oe(e.icons.description)), null, 16),
|
|
1167
|
+
q("span", null, Q(e.description), 1)
|
|
1168
1168
|
])) : b("", !0)
|
|
1169
1169
|
]),
|
|
1170
|
-
|
|
1171
|
-
e.selected ? (r(), B(
|
|
1170
|
+
q("div", En, [
|
|
1171
|
+
e.selected ? (r(), B(m(O), H({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
|
|
1172
1172
|
])
|
|
1173
|
-
], 42,
|
|
1173
|
+
], 42, In));
|
|
1174
1174
|
}
|
|
1175
|
-
}),
|
|
1175
|
+
}), Dn = ["data-key", "aria-labelledby"], zn = ["id"], Mn = /* @__PURE__ */ C({
|
|
1176
1176
|
__name: "QListItemGroup",
|
|
1177
1177
|
props: {
|
|
1178
1178
|
id: {},
|
|
1179
1179
|
title: { default: "" }
|
|
1180
1180
|
},
|
|
1181
|
-
setup(
|
|
1182
|
-
const t =
|
|
1183
|
-
return (l,
|
|
1181
|
+
setup(n) {
|
|
1182
|
+
const t = n, e = ue();
|
|
1183
|
+
return (l, o) => (r(), f("ul", {
|
|
1184
1184
|
class: "q-list-item-group",
|
|
1185
1185
|
role: "group",
|
|
1186
1186
|
"data-key": t.id,
|
|
1187
|
-
"aria-labelledby": t.title ?
|
|
1187
|
+
"aria-labelledby": t.title ? m(e) : void 0
|
|
1188
1188
|
}, [
|
|
1189
1189
|
t.title ? (r(), f("li", {
|
|
1190
1190
|
key: 0,
|
|
1191
|
-
id:
|
|
1191
|
+
id: m(e),
|
|
1192
1192
|
class: "q-list-item-group__title",
|
|
1193
1193
|
role: "presentation"
|
|
1194
|
-
},
|
|
1194
|
+
}, Q(t.title), 9, zn)) : b("", !0),
|
|
1195
1195
|
p(l.$slots, "default")
|
|
1196
|
-
], 8,
|
|
1196
|
+
], 8, Dn));
|
|
1197
|
+
}
|
|
1198
|
+
}), Ue = I(Ln), dt = I(Qn), ut = I(Mn), ye = "data-scroll-locked", Ce = "right-scroll-bar-position", Ie = "width-before-scroll-bar", Fn = "with-scroll-bars-hidden", On = "--removed-body-scroll-bar-size", Pn = {
|
|
1199
|
+
left: 0,
|
|
1200
|
+
top: 0,
|
|
1201
|
+
right: 0,
|
|
1202
|
+
gap: 0
|
|
1203
|
+
}, Te = (n) => parseInt(n || "", 10) || 0, Un = (n) => {
|
|
1204
|
+
const t = window.getComputedStyle(document.body), e = t[n === "padding" ? "paddingLeft" : "marginLeft"], l = t[n === "padding" ? "paddingTop" : "marginTop"], o = t[n === "padding" ? "paddingRight" : "marginRight"];
|
|
1205
|
+
return [Te(e), Te(l), Te(o)];
|
|
1206
|
+
}, Nn = (n = "margin") => {
|
|
1207
|
+
if (typeof window > "u")
|
|
1208
|
+
return Pn;
|
|
1209
|
+
const t = Un(n), e = document.documentElement.clientWidth, l = window.innerWidth;
|
|
1210
|
+
return {
|
|
1211
|
+
left: t[0],
|
|
1212
|
+
top: t[1],
|
|
1213
|
+
right: t[2],
|
|
1214
|
+
gap: Math.max(0, l - e + t[2] - t[0])
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
function Rn() {
|
|
1218
|
+
return document ? document.createElement("style") : null;
|
|
1219
|
+
}
|
|
1220
|
+
function Gn(n, t) {
|
|
1221
|
+
n.appendChild(document.createTextNode(t));
|
|
1222
|
+
}
|
|
1223
|
+
function Hn(n) {
|
|
1224
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(n);
|
|
1225
|
+
}
|
|
1226
|
+
const jn = () => {
|
|
1227
|
+
let n = 0, t = null;
|
|
1228
|
+
return {
|
|
1229
|
+
add: (e) => {
|
|
1230
|
+
n === 0 && (t = Rn()) && (Gn(t, e), Hn(t)), n++;
|
|
1231
|
+
},
|
|
1232
|
+
remove: () => {
|
|
1233
|
+
var e;
|
|
1234
|
+
n--, !n && t && ((e = t.parentNode) == null || e.removeChild(t), t = null);
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1237
|
+
}, Kn = /* @__PURE__ */ C({
|
|
1238
|
+
__name: "QRemoveScrollBar",
|
|
1239
|
+
props: {
|
|
1240
|
+
noRelative: { type: Boolean, default: !1 },
|
|
1241
|
+
noImportant: { type: Boolean, default: !1 },
|
|
1242
|
+
gapMode: { default: "margin" }
|
|
1243
|
+
},
|
|
1244
|
+
setup(n) {
|
|
1245
|
+
const t = n, e = jn(), l = () => {
|
|
1246
|
+
const s = parseInt(document.body.getAttribute(ye) || "0", 10);
|
|
1247
|
+
return isFinite(s) ? s : 0;
|
|
1248
|
+
}, o = ({ left: s, top: d, right: a, gap: i }, u, _ = "margin", w) => `
|
|
1249
|
+
.${Fn} {
|
|
1250
|
+
overflow: hidden ${w};
|
|
1251
|
+
padding-right: ${i}px ${w};
|
|
1252
|
+
}
|
|
1253
|
+
body[${ye}] {
|
|
1254
|
+
overflow: hidden ${w};
|
|
1255
|
+
overscroll-behavior: contain;
|
|
1256
|
+
${[
|
|
1257
|
+
u && `position: relative ${w};`,
|
|
1258
|
+
_ === "margin" && `
|
|
1259
|
+
padding-left: ${s}px;
|
|
1260
|
+
padding-top: ${d}px;
|
|
1261
|
+
padding-right: ${a}px;
|
|
1262
|
+
margin-left:0;
|
|
1263
|
+
margin-top:0;
|
|
1264
|
+
margin-right: ${i}px ${w};
|
|
1265
|
+
`,
|
|
1266
|
+
_ === "padding" && `padding-right: ${i}px ${w};`
|
|
1267
|
+
].filter(Boolean).join("")}
|
|
1197
1268
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1269
|
+
|
|
1270
|
+
.${Ce} {
|
|
1271
|
+
right: ${i}px ${w};
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.${Ie} {
|
|
1275
|
+
margin-right: ${i}px ${w};
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.${Ce} .${Ce} {
|
|
1279
|
+
right: 0 ${w};
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
.${Ie} .${Ie} {
|
|
1283
|
+
margin-right: 0 ${w};
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
body[${ye}] {
|
|
1287
|
+
${On}: ${i}px;
|
|
1288
|
+
}
|
|
1289
|
+
`;
|
|
1290
|
+
return Me(() => {
|
|
1291
|
+
document.body.setAttribute(ye, (l() + 1).toString());
|
|
1292
|
+
const s = Nn(t.gapMode);
|
|
1293
|
+
e.add(
|
|
1294
|
+
o(s, !t.noRelative, t.gapMode, t.noImportant ? "" : "!important")
|
|
1295
|
+
);
|
|
1296
|
+
}), bt(() => {
|
|
1297
|
+
const s = l() - 1;
|
|
1298
|
+
s <= 0 ? document.body.removeAttribute(ye) : document.body.setAttribute(ye, s.toString()), e.remove();
|
|
1299
|
+
}), (s, d) => p(s.$slots, "default");
|
|
1300
|
+
}
|
|
1301
|
+
}), Wn = I(Kn), qe = 8;
|
|
1302
|
+
function Xn(n, t, e, l) {
|
|
1303
|
+
const o = (l == null ? void 0 : l.offset) ?? 0, s = (l == null ? void 0 : l.placement) ?? "bottom", d = n.getBoundingClientRect(), a = t.getBoundingClientRect(), i = e == null ? void 0 : e.getBoundingClientRect(), u = Yn(d, a, s, o), _ = tl(d, a, u), w = Jn(_, u, o), N = Zn(w, a, u);
|
|
1304
|
+
let z;
|
|
1202
1305
|
if (l != null && l.arrow) {
|
|
1203
1306
|
if (!i)
|
|
1204
1307
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
1205
|
-
|
|
1308
|
+
z = el(N, d, a, i, u);
|
|
1206
1309
|
}
|
|
1207
|
-
return { overlayCoords:
|
|
1310
|
+
return { overlayCoords: N, arrowCoords: z, placement: u };
|
|
1208
1311
|
}
|
|
1209
|
-
function
|
|
1210
|
-
const
|
|
1211
|
-
if (
|
|
1312
|
+
function Yn(n, t, e, l) {
|
|
1313
|
+
const o = We(n, t, e, l);
|
|
1314
|
+
if (Xe(o)) {
|
|
1212
1315
|
const s = ke(e), a = {
|
|
1213
1316
|
top: "bottom",
|
|
1214
1317
|
bottom: "top",
|
|
1215
1318
|
left: "right",
|
|
1216
1319
|
right: "left"
|
|
1217
|
-
}[s], i =
|
|
1218
|
-
|
|
1320
|
+
}[s], i = We(
|
|
1321
|
+
n,
|
|
1219
1322
|
t,
|
|
1220
1323
|
a,
|
|
1221
1324
|
l
|
|
1222
1325
|
);
|
|
1223
|
-
if (
|
|
1326
|
+
if (Xe(i))
|
|
1224
1327
|
return e;
|
|
1225
|
-
const
|
|
1226
|
-
return
|
|
1328
|
+
const u = ol(e);
|
|
1329
|
+
return u ? `${a}-${u}` : a;
|
|
1227
1330
|
}
|
|
1228
1331
|
return e;
|
|
1229
1332
|
}
|
|
1230
|
-
function
|
|
1231
|
-
const l =
|
|
1232
|
-
return l === "x" ? s.x = n
|
|
1333
|
+
function Zn(n, t, e) {
|
|
1334
|
+
const l = xe(e), o = (d, a, i) => Math.min(Math.max(d, a), i), s = { ...n };
|
|
1335
|
+
return l === "x" ? s.x = o(n.x, qe, window.innerWidth - t.width - qe) : s.y = o(n.y, qe, window.innerHeight - t.height - qe), s;
|
|
1233
1336
|
}
|
|
1234
|
-
function
|
|
1337
|
+
function Jn(n, t, e) {
|
|
1235
1338
|
const l = ke(t);
|
|
1236
1339
|
return {
|
|
1237
|
-
x:
|
|
1238
|
-
y:
|
|
1340
|
+
x: n.x + (l === "left" ? -e : l === "right" ? e : 0),
|
|
1341
|
+
y: n.y + (l === "top" ? -e : l === "bottom" ? e : 0)
|
|
1239
1342
|
};
|
|
1240
1343
|
}
|
|
1241
|
-
function
|
|
1242
|
-
if (
|
|
1243
|
-
const d = t.top + t.height / 2, a =
|
|
1244
|
-
if (
|
|
1344
|
+
function el(n, t, e, l, o) {
|
|
1345
|
+
if (xe(o) === "y") {
|
|
1346
|
+
const d = t.top + t.height / 2, a = n.y + e.height / 2, i = a - d, u = e.height / 2 - i - l.height / 2 + 2;
|
|
1347
|
+
if (u > 0 && u < e.height - l.height)
|
|
1245
1348
|
return {
|
|
1246
|
-
y:
|
|
1349
|
+
y: u
|
|
1247
1350
|
};
|
|
1248
1351
|
} else {
|
|
1249
|
-
const d = t.left + t.width / 2, a =
|
|
1250
|
-
if (
|
|
1352
|
+
const d = t.left + t.width / 2, a = n.x + e.width / 2, i = a - d, u = e.width / 2 - i - l.width / 2 + 2;
|
|
1353
|
+
if (u > 0 && u < e.width - l.width)
|
|
1251
1354
|
return {
|
|
1252
|
-
x:
|
|
1355
|
+
x: u
|
|
1253
1356
|
};
|
|
1254
1357
|
}
|
|
1255
1358
|
}
|
|
1256
|
-
function
|
|
1257
|
-
const [l,
|
|
1359
|
+
function tl(n, t, e) {
|
|
1360
|
+
const [l, o] = e.split("-"), s = n.x + n.width / 2 - t.width / 2, d = n.y + n.height / 2 - t.height / 2;
|
|
1258
1361
|
let a;
|
|
1259
1362
|
switch (l) {
|
|
1260
1363
|
case "top":
|
|
1261
|
-
a = { x: s, y:
|
|
1364
|
+
a = { x: s, y: n.y - t.height };
|
|
1262
1365
|
break;
|
|
1263
1366
|
case "bottom":
|
|
1264
|
-
a = { x: s, y:
|
|
1367
|
+
a = { x: s, y: n.y + n.height };
|
|
1265
1368
|
break;
|
|
1266
1369
|
case "left":
|
|
1267
|
-
a = { x:
|
|
1370
|
+
a = { x: n.x - t.width, y: d };
|
|
1268
1371
|
break;
|
|
1269
1372
|
case "right":
|
|
1270
|
-
a = { x:
|
|
1373
|
+
a = { x: n.x + n.width, y: d };
|
|
1271
1374
|
break;
|
|
1272
1375
|
default:
|
|
1273
1376
|
throw new Error(`[Quidgest UI] Invalid placement value: ${e}`);
|
|
1274
1377
|
}
|
|
1275
|
-
if (!
|
|
1378
|
+
if (!o)
|
|
1276
1379
|
return a;
|
|
1277
|
-
const
|
|
1278
|
-
switch (
|
|
1380
|
+
const u = xe(e) === "y" ? "height" : "width", _ = xe(e), w = n[u] / 2 - t[u] / 2;
|
|
1381
|
+
switch (o) {
|
|
1279
1382
|
case "start":
|
|
1280
|
-
a[
|
|
1383
|
+
a[_] -= w;
|
|
1281
1384
|
break;
|
|
1282
1385
|
case "end":
|
|
1283
|
-
a[
|
|
1386
|
+
a[_] += w;
|
|
1284
1387
|
break;
|
|
1285
1388
|
default:
|
|
1286
|
-
throw new Error(`[Quidgest UI] Invalid alignment value: ${
|
|
1389
|
+
throw new Error(`[Quidgest UI] Invalid alignment value: ${o}`);
|
|
1287
1390
|
}
|
|
1288
1391
|
return a;
|
|
1289
1392
|
}
|
|
1290
|
-
function
|
|
1291
|
-
const
|
|
1393
|
+
function We(n, t, e, l) {
|
|
1394
|
+
const o = ke(e);
|
|
1292
1395
|
let s = 0;
|
|
1293
|
-
switch (
|
|
1396
|
+
switch (o) {
|
|
1294
1397
|
case "top":
|
|
1295
|
-
s =
|
|
1398
|
+
s = n.top - (t.height + l);
|
|
1296
1399
|
break;
|
|
1297
1400
|
case "bottom":
|
|
1298
|
-
s = window.innerHeight -
|
|
1401
|
+
s = window.innerHeight - n.bottom - (t.height + l);
|
|
1299
1402
|
break;
|
|
1300
1403
|
case "left":
|
|
1301
|
-
s =
|
|
1404
|
+
s = n.left - (t.width + l);
|
|
1302
1405
|
break;
|
|
1303
1406
|
case "right":
|
|
1304
|
-
s = window.innerWidth -
|
|
1407
|
+
s = window.innerWidth - n.right - (t.width + l);
|
|
1305
1408
|
break;
|
|
1306
1409
|
default:
|
|
1307
|
-
throw new Error(`[Quidgest UI] Invalid side value: ${
|
|
1410
|
+
throw new Error(`[Quidgest UI] Invalid side value: ${o}`);
|
|
1308
1411
|
}
|
|
1309
1412
|
return s;
|
|
1310
1413
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return
|
|
1414
|
+
function nl(n) {
|
|
1415
|
+
return n === "x" ? "y" : "x";
|
|
1313
1416
|
}
|
|
1314
|
-
function
|
|
1315
|
-
const t = ke(
|
|
1417
|
+
function ll(n) {
|
|
1418
|
+
const t = ke(n);
|
|
1316
1419
|
return ["left", "right"].includes(t) ? "x" : "y";
|
|
1317
1420
|
}
|
|
1318
|
-
function
|
|
1319
|
-
return
|
|
1421
|
+
function xe(n) {
|
|
1422
|
+
return nl(ll(n));
|
|
1320
1423
|
}
|
|
1321
|
-
function ke(
|
|
1322
|
-
const [t] =
|
|
1424
|
+
function ke(n) {
|
|
1425
|
+
const [t] = n.split("-");
|
|
1323
1426
|
return t;
|
|
1324
1427
|
}
|
|
1325
|
-
function
|
|
1326
|
-
const [, t] =
|
|
1428
|
+
function ol(n) {
|
|
1429
|
+
const [, t] = n.split("-");
|
|
1327
1430
|
return t;
|
|
1328
1431
|
}
|
|
1329
|
-
function
|
|
1330
|
-
return
|
|
1432
|
+
function Xe(n) {
|
|
1433
|
+
return n < 0;
|
|
1331
1434
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return typeof
|
|
1435
|
+
function sl(n) {
|
|
1436
|
+
return typeof n == "string" ? document.querySelector(n) : n;
|
|
1334
1437
|
}
|
|
1335
|
-
const
|
|
1438
|
+
const al = ["role"], il = /* @__PURE__ */ C({
|
|
1336
1439
|
inheritAttrs: !1,
|
|
1337
1440
|
__name: "QOverlay",
|
|
1338
1441
|
props: /* @__PURE__ */ G({
|
|
@@ -1359,8 +1462,8 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1359
1462
|
modelModifiers: {}
|
|
1360
1463
|
}),
|
|
1361
1464
|
emits: /* @__PURE__ */ G(["enter", "leave"], ["update:modelValue"]),
|
|
1362
|
-
setup(
|
|
1363
|
-
const e =
|
|
1465
|
+
setup(n, { emit: t }) {
|
|
1466
|
+
const e = n, l = t, o = X(n, "modelValue"), s = y(() => [
|
|
1364
1467
|
"q-overlay",
|
|
1365
1468
|
`q-overlay--${ke(a.placement)}`,
|
|
1366
1469
|
{
|
|
@@ -1368,74 +1471,74 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1368
1471
|
"q-overlay--inverted": e.appearance === "inverted"
|
|
1369
1472
|
},
|
|
1370
1473
|
e.class
|
|
1371
|
-
]), d =
|
|
1474
|
+
]), d = y(() => (o.value || a.animating) && !e.nonModal), a = je({
|
|
1372
1475
|
animating: !1,
|
|
1373
1476
|
top: 0,
|
|
1374
1477
|
left: 0,
|
|
1375
1478
|
width: 0,
|
|
1376
1479
|
placement: e.placement
|
|
1377
|
-
}), i =
|
|
1480
|
+
}), i = je({
|
|
1378
1481
|
top: void 0,
|
|
1379
1482
|
left: void 0,
|
|
1380
1483
|
hidden: !0
|
|
1381
|
-
}),
|
|
1382
|
-
ee(
|
|
1383
|
-
const
|
|
1484
|
+
}), u = y(() => a.top !== 0 && a.left !== 0);
|
|
1485
|
+
ee(o, () => a.animating = !0);
|
|
1486
|
+
const _ = y(() => {
|
|
1384
1487
|
if (e.anchor === void 0) return;
|
|
1385
|
-
const
|
|
1488
|
+
const x = R(), me = e.width === "anchor", J = me ? x == null ? void 0 : x.getBoundingClientRect().width : void 0;
|
|
1386
1489
|
return {
|
|
1387
1490
|
top: `${a.top}px`,
|
|
1388
1491
|
left: `${a.left}px`,
|
|
1389
1492
|
width: J !== void 0 ? `${J}px` : void 0
|
|
1390
1493
|
};
|
|
1391
|
-
}),
|
|
1494
|
+
}), w = y(() => {
|
|
1392
1495
|
if (e.arrow)
|
|
1393
1496
|
return {
|
|
1394
1497
|
top: i.top !== void 0 ? `${i.top}px` : void 0,
|
|
1395
1498
|
left: i.left !== void 0 ? `${i.left}px` : void 0,
|
|
1396
1499
|
opacity: i.hidden ? 0 : 1
|
|
1397
1500
|
};
|
|
1398
|
-
}),
|
|
1399
|
-
function
|
|
1400
|
-
const
|
|
1401
|
-
if (!
|
|
1501
|
+
}), N = A(null), z = A(null);
|
|
1502
|
+
function V() {
|
|
1503
|
+
const x = R();
|
|
1504
|
+
if (!x || !z.value)
|
|
1402
1505
|
return;
|
|
1403
|
-
const
|
|
1506
|
+
const me = {
|
|
1404
1507
|
placement: e.placement,
|
|
1405
1508
|
width: e.width,
|
|
1406
1509
|
offset: e.offset,
|
|
1407
1510
|
arrow: e.arrow
|
|
1408
|
-
}, J =
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
(
|
|
1412
|
-
|
|
1511
|
+
}, J = Xn(
|
|
1512
|
+
x,
|
|
1513
|
+
z.value,
|
|
1514
|
+
(N == null ? void 0 : N.value) ?? void 0,
|
|
1515
|
+
me
|
|
1413
1516
|
);
|
|
1414
1517
|
a.left = J.overlayCoords.x, a.top = J.overlayCoords.y, a.placement = J.placement, i.hidden = J.arrowCoords === void 0, J.arrowCoords && (i.top = J.arrowCoords.y, i.left = J.arrowCoords.x);
|
|
1415
1518
|
}
|
|
1416
1519
|
ee(
|
|
1417
1520
|
() => e.placement,
|
|
1418
|
-
() => le(
|
|
1521
|
+
() => le(V)
|
|
1419
1522
|
);
|
|
1420
1523
|
let g;
|
|
1421
1524
|
function E() {
|
|
1422
|
-
|
|
1525
|
+
M(0);
|
|
1423
1526
|
}
|
|
1424
1527
|
function P() {
|
|
1425
|
-
|
|
1528
|
+
M(e.delay);
|
|
1426
1529
|
}
|
|
1427
|
-
function
|
|
1530
|
+
function M(x) {
|
|
1428
1531
|
g || (g = window.setTimeout(() => {
|
|
1429
|
-
|
|
1430
|
-
},
|
|
1532
|
+
o.value = !0;
|
|
1533
|
+
}, x));
|
|
1431
1534
|
}
|
|
1432
|
-
function
|
|
1433
|
-
if (clearTimeout(g), g = void 0,
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1535
|
+
function j() {
|
|
1536
|
+
if (clearTimeout(g), g = void 0, o.value = !1, e.anchor && e.trigger === "click") {
|
|
1537
|
+
const x = R();
|
|
1538
|
+
x == null || x.focus();
|
|
1436
1539
|
}
|
|
1437
1540
|
}
|
|
1438
|
-
ee(
|
|
1541
|
+
ee(u, () => le(ae));
|
|
1439
1542
|
function ae() {
|
|
1440
1543
|
l("enter");
|
|
1441
1544
|
}
|
|
@@ -1444,132 +1547,135 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1444
1547
|
window.clearTimeout(Z), Z = window.setTimeout(() => a.animating = !1, 200), l("leave");
|
|
1445
1548
|
}
|
|
1446
1549
|
function R() {
|
|
1447
|
-
return e.anchor ?
|
|
1550
|
+
return e.anchor ? sl(e.anchor) : null;
|
|
1448
1551
|
}
|
|
1449
1552
|
let te;
|
|
1450
|
-
function
|
|
1451
|
-
const
|
|
1452
|
-
if (
|
|
1453
|
-
switch (te = new MutationObserver(
|
|
1553
|
+
function v() {
|
|
1554
|
+
const x = R();
|
|
1555
|
+
if (x)
|
|
1556
|
+
switch (te = new MutationObserver(V), te.observe(x, {
|
|
1454
1557
|
attributes: !1,
|
|
1455
1558
|
childList: !0,
|
|
1456
1559
|
characterData: !0,
|
|
1457
1560
|
subtree: !0
|
|
1458
1561
|
}), e.trigger) {
|
|
1459
1562
|
case "click":
|
|
1460
|
-
|
|
1563
|
+
x.addEventListener("click", E);
|
|
1461
1564
|
break;
|
|
1462
1565
|
case "hover":
|
|
1463
|
-
|
|
1566
|
+
x.addEventListener("mouseenter", P), x.addEventListener("mouseleave", j), x.addEventListener("focusin", E), x.addEventListener("focusout", j);
|
|
1464
1567
|
break;
|
|
1465
1568
|
}
|
|
1466
1569
|
}
|
|
1467
|
-
function
|
|
1468
|
-
const
|
|
1469
|
-
if (
|
|
1570
|
+
function S() {
|
|
1571
|
+
const x = R();
|
|
1572
|
+
if (x)
|
|
1470
1573
|
switch (te == null || te.disconnect(), e.trigger) {
|
|
1471
1574
|
case "click":
|
|
1472
|
-
|
|
1575
|
+
x.removeEventListener("click", E);
|
|
1473
1576
|
break;
|
|
1474
1577
|
case "hover":
|
|
1475
|
-
|
|
1578
|
+
x.removeEventListener("mouseenter", P), x.removeEventListener("mouseleave", j), x.removeEventListener("focusin", E), x.removeEventListener("focusout", j);
|
|
1476
1579
|
break;
|
|
1477
1580
|
}
|
|
1478
1581
|
}
|
|
1479
|
-
function
|
|
1480
|
-
window.addEventListener("resize",
|
|
1582
|
+
function h() {
|
|
1583
|
+
window.addEventListener("resize", V), e.scrollLock || window.addEventListener("scroll", V);
|
|
1481
1584
|
}
|
|
1482
|
-
function
|
|
1483
|
-
window.removeEventListener("resize",
|
|
1585
|
+
function $() {
|
|
1586
|
+
window.removeEventListener("resize", V), e.scrollLock || window.removeEventListener("scroll", V);
|
|
1484
1587
|
}
|
|
1485
|
-
let
|
|
1588
|
+
let K;
|
|
1486
1589
|
function re() {
|
|
1487
|
-
R() ? (
|
|
1590
|
+
R() ? (V(), K = window.setTimeout(re, 100)) : j();
|
|
1488
1591
|
}
|
|
1489
|
-
function
|
|
1490
|
-
|
|
1491
|
-
var
|
|
1492
|
-
return (
|
|
1592
|
+
function ne() {
|
|
1593
|
+
h(), e.spy ? re() : V(), (e.anchor === void 0 || e.trigger === "click") && le(() => {
|
|
1594
|
+
var x;
|
|
1595
|
+
return (x = z.value) == null ? void 0 : x.focus();
|
|
1493
1596
|
});
|
|
1494
1597
|
}
|
|
1495
|
-
function
|
|
1496
|
-
|
|
1598
|
+
function ce() {
|
|
1599
|
+
$(), e.spy && (clearTimeout(K), K = void 0), a.top = 0, a.left = 0;
|
|
1497
1600
|
}
|
|
1498
|
-
function
|
|
1499
|
-
e.persistent ||
|
|
1601
|
+
function we() {
|
|
1602
|
+
e.persistent || j();
|
|
1500
1603
|
}
|
|
1501
|
-
return
|
|
1502
|
-
le(
|
|
1503
|
-
}),
|
|
1504
|
-
|
|
1604
|
+
return Me(() => {
|
|
1605
|
+
le(v);
|
|
1606
|
+
}), gt(() => {
|
|
1607
|
+
S(), ce();
|
|
1505
1608
|
}), ee(
|
|
1506
|
-
|
|
1507
|
-
(
|
|
1508
|
-
le(() =>
|
|
1609
|
+
o,
|
|
1610
|
+
(x) => {
|
|
1611
|
+
le(() => x ? ne() : ce());
|
|
1509
1612
|
},
|
|
1510
1613
|
{ immediate: !0 }
|
|
1511
|
-
), (
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1614
|
+
), (x, me) => (r(), f(U, null, [
|
|
1615
|
+
(r(), B(_t, {
|
|
1616
|
+
disabled: !o.value && !a.animating || e.inline,
|
|
1617
|
+
to: e.attach
|
|
1618
|
+
}, [
|
|
1619
|
+
d.value ? (r(), f("div", {
|
|
1620
|
+
key: 0,
|
|
1621
|
+
class: T([
|
|
1622
|
+
e.backdropClass,
|
|
1623
|
+
"q-overlay__underlay",
|
|
1624
|
+
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1625
|
+
])
|
|
1626
|
+
}, null, 2)) : b("", !0),
|
|
1627
|
+
D($t, {
|
|
1628
|
+
name: e.transition,
|
|
1629
|
+
appear: "",
|
|
1630
|
+
onLeave: ie
|
|
1631
|
+
}, {
|
|
1632
|
+
default: k(() => [
|
|
1633
|
+
o.value ? (r(), f("div", {
|
|
1634
|
+
key: 0,
|
|
1635
|
+
class: T(s.value),
|
|
1636
|
+
style: pe(_.value)
|
|
1637
|
+
}, [
|
|
1638
|
+
q("div", H({
|
|
1639
|
+
ref_key: "overlayRef",
|
|
1640
|
+
ref: z,
|
|
1641
|
+
class: "q-overlay__content",
|
|
1642
|
+
tabindex: "-1",
|
|
1643
|
+
role: d.value ? "dialog" : void 0
|
|
1644
|
+
}, x.$attrs, {
|
|
1645
|
+
onKeydown: Ae(we, ["escape"]),
|
|
1646
|
+
onBlur: we
|
|
1647
|
+
}), [
|
|
1648
|
+
e.arrow ? (r(), f("div", {
|
|
1649
|
+
key: 0,
|
|
1650
|
+
ref_key: "arrowRef",
|
|
1651
|
+
ref: N,
|
|
1652
|
+
role: "presentation",
|
|
1653
|
+
class: "q-overlay__arrow",
|
|
1654
|
+
style: pe(w.value)
|
|
1655
|
+
}, null, 4)) : b("", !0),
|
|
1656
|
+
p(x.$slots, "default")
|
|
1657
|
+
], 16, al)
|
|
1658
|
+
], 6)) : b("", !0)
|
|
1659
|
+
]),
|
|
1660
|
+
_: 3
|
|
1661
|
+
}, 8, ["name"])
|
|
1662
|
+
], 8, ["disabled", "to"])),
|
|
1663
|
+
e.scrollLock && o.value ? (r(), B(m(Wn), { key: 0 })) : b("", !0)
|
|
1664
|
+
], 64));
|
|
1559
1665
|
}
|
|
1560
|
-
}),
|
|
1666
|
+
}), be = I(il), rl = ["id"], dl = {
|
|
1561
1667
|
key: 0,
|
|
1562
1668
|
class: "q-field__label"
|
|
1563
|
-
},
|
|
1669
|
+
}, ul = ["for"], cl = {
|
|
1564
1670
|
key: 0,
|
|
1565
1671
|
class: "q-field__prepend"
|
|
1566
|
-
},
|
|
1672
|
+
}, fl = {
|
|
1567
1673
|
key: 1,
|
|
1568
1674
|
class: "q-field__append"
|
|
1569
|
-
},
|
|
1675
|
+
}, pl = {
|
|
1570
1676
|
key: 1,
|
|
1571
1677
|
class: "q-field__extras"
|
|
1572
|
-
},
|
|
1678
|
+
}, ml = /* @__PURE__ */ C({
|
|
1573
1679
|
inheritAttrs: !1,
|
|
1574
1680
|
__name: "QField",
|
|
1575
1681
|
props: {
|
|
@@ -1582,13 +1688,13 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1582
1688
|
required: { type: Boolean },
|
|
1583
1689
|
class: { default: void 0 }
|
|
1584
1690
|
},
|
|
1585
|
-
setup(
|
|
1586
|
-
const e =
|
|
1691
|
+
setup(n, { expose: t }) {
|
|
1692
|
+
const e = n, l = ue(e.id), o = A(null), s = y(() => e.required && !e.readonly && !e.disabled);
|
|
1587
1693
|
return t({
|
|
1588
|
-
fieldRef:
|
|
1694
|
+
fieldRef: o
|
|
1589
1695
|
}), (d, a) => (r(), f("div", {
|
|
1590
|
-
id:
|
|
1591
|
-
class:
|
|
1696
|
+
id: m(l),
|
|
1697
|
+
class: T([
|
|
1592
1698
|
"q-field",
|
|
1593
1699
|
`q-field--${e.size}`,
|
|
1594
1700
|
{
|
|
@@ -1599,34 +1705,34 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1599
1705
|
e.class
|
|
1600
1706
|
])
|
|
1601
1707
|
}, [
|
|
1602
|
-
e.label ? (r(), f("div",
|
|
1708
|
+
e.label ? (r(), f("div", dl, [
|
|
1603
1709
|
p(d.$slots, "label.prepend"),
|
|
1604
|
-
|
|
1710
|
+
q("label", {
|
|
1605
1711
|
for: e.for
|
|
1606
|
-
},
|
|
1712
|
+
}, Q(e.label), 9, ul),
|
|
1607
1713
|
p(d.$slots, "label.append")
|
|
1608
1714
|
])) : b("", !0),
|
|
1609
1715
|
p(d.$slots, "control", {}, () => [
|
|
1610
|
-
|
|
1611
|
-
class: "q-field__control",
|
|
1716
|
+
q("div", H({
|
|
1612
1717
|
ref_key: "fieldRef",
|
|
1613
|
-
ref:
|
|
1718
|
+
ref: o,
|
|
1719
|
+
class: "q-field__control"
|
|
1614
1720
|
}, d.$attrs), [
|
|
1615
|
-
d.$slots.prepend ? (r(), f("div",
|
|
1721
|
+
d.$slots.prepend ? (r(), f("div", cl, [
|
|
1616
1722
|
p(d.$slots, "prepend")
|
|
1617
1723
|
])) : b("", !0),
|
|
1618
1724
|
p(d.$slots, "default"),
|
|
1619
|
-
d.$slots.append ? (r(), f("div",
|
|
1725
|
+
d.$slots.append ? (r(), f("div", fl, [
|
|
1620
1726
|
p(d.$slots, "append")
|
|
1621
1727
|
])) : b("", !0)
|
|
1622
1728
|
], 16)
|
|
1623
1729
|
]),
|
|
1624
|
-
d.$slots.extras ? (r(), f("div",
|
|
1730
|
+
d.$slots.extras ? (r(), f("div", pl, [
|
|
1625
1731
|
p(d.$slots, "extras")
|
|
1626
1732
|
])) : b("", !0)
|
|
1627
|
-
], 10,
|
|
1733
|
+
], 10, rl));
|
|
1628
1734
|
}
|
|
1629
|
-
}),
|
|
1735
|
+
}), Le = I(ml), hl = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yl = /* @__PURE__ */ C({
|
|
1630
1736
|
inheritAttrs: !1,
|
|
1631
1737
|
__name: "QTextField",
|
|
1632
1738
|
props: /* @__PURE__ */ G({
|
|
@@ -1646,27 +1752,27 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1646
1752
|
modelModifiers: {}
|
|
1647
1753
|
}),
|
|
1648
1754
|
emits: ["update:modelValue"],
|
|
1649
|
-
setup(
|
|
1650
|
-
const e =
|
|
1755
|
+
setup(n, { expose: t }) {
|
|
1756
|
+
const e = n, l = X(n, "modelValue"), o = ue(e.id), s = A(null), d = A(null), a = y(
|
|
1651
1757
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1652
1758
|
);
|
|
1653
1759
|
return t({
|
|
1654
|
-
fieldRef:
|
|
1760
|
+
fieldRef: y(() => {
|
|
1655
1761
|
var i;
|
|
1656
1762
|
return (i = s.value) == null ? void 0 : i.fieldRef;
|
|
1657
1763
|
}),
|
|
1658
1764
|
inputRef: d
|
|
1659
|
-
}), (i,
|
|
1765
|
+
}), (i, u) => (r(), B(m(Le), {
|
|
1660
1766
|
ref_key: "fieldRef",
|
|
1661
1767
|
ref: s,
|
|
1662
|
-
class:
|
|
1663
|
-
for:
|
|
1768
|
+
class: T(["q-text-field", e.class]),
|
|
1769
|
+
for: m(o),
|
|
1664
1770
|
label: e.label,
|
|
1665
1771
|
size: e.size,
|
|
1666
1772
|
readonly: e.readonly,
|
|
1667
1773
|
disabled: e.disabled,
|
|
1668
1774
|
required: e.required
|
|
1669
|
-
},
|
|
1775
|
+
}, Be({
|
|
1670
1776
|
"label.prepend": k(() => [
|
|
1671
1777
|
p(i.$slots, "label.prepend")
|
|
1672
1778
|
]),
|
|
@@ -1674,11 +1780,11 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1674
1780
|
p(i.$slots, "label.append")
|
|
1675
1781
|
]),
|
|
1676
1782
|
default: k(() => [
|
|
1677
|
-
|
|
1678
|
-
|
|
1783
|
+
kt(q("input", H({
|
|
1784
|
+
id: m(o),
|
|
1679
1785
|
ref_key: "inputRef",
|
|
1680
1786
|
ref: d,
|
|
1681
|
-
|
|
1787
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => l.value = _),
|
|
1682
1788
|
class: "q-text-field__input",
|
|
1683
1789
|
type: e.type,
|
|
1684
1790
|
role: e.role,
|
|
@@ -1687,8 +1793,8 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1687
1793
|
readonly: e.readonly,
|
|
1688
1794
|
disabled: e.disabled,
|
|
1689
1795
|
maxlength: e.maxLength
|
|
1690
|
-
}, i.$attrs), null, 16,
|
|
1691
|
-
[
|
|
1796
|
+
}, i.$attrs), null, 16, hl), [
|
|
1797
|
+
[wt, l.value]
|
|
1692
1798
|
])
|
|
1693
1799
|
]),
|
|
1694
1800
|
_: 2
|
|
@@ -1716,24 +1822,24 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1716
1822
|
} : void 0
|
|
1717
1823
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1718
1824
|
}
|
|
1719
|
-
}),
|
|
1825
|
+
}), ct = I(yl), vl = {
|
|
1720
1826
|
noData: "No data available",
|
|
1721
1827
|
clearValue: "Clear value",
|
|
1722
1828
|
showOptions: "Show options"
|
|
1723
|
-
},
|
|
1829
|
+
}, bl = {
|
|
1724
1830
|
chevron: {
|
|
1725
1831
|
icon: "chevron-down"
|
|
1726
1832
|
},
|
|
1727
1833
|
clear: {
|
|
1728
1834
|
icon: "close"
|
|
1729
1835
|
}
|
|
1730
|
-
},
|
|
1836
|
+
}, gl = ["data-key"], _l = {
|
|
1731
1837
|
key: 0,
|
|
1732
1838
|
class: "q-select__loader"
|
|
1733
|
-
},
|
|
1839
|
+
}, $l = {
|
|
1734
1840
|
key: 2,
|
|
1735
1841
|
class: "q-select__loader"
|
|
1736
|
-
},
|
|
1842
|
+
}, kl = /* @__PURE__ */ C({
|
|
1737
1843
|
inheritAttrs: !1,
|
|
1738
1844
|
__name: "QCombobox",
|
|
1739
1845
|
props: /* @__PURE__ */ G({
|
|
@@ -1754,8 +1860,8 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1754
1860
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1755
1861
|
size: { default: void 0 },
|
|
1756
1862
|
class: { default: void 0 },
|
|
1757
|
-
icons: { default: () =>
|
|
1758
|
-
texts: { default: () =>
|
|
1863
|
+
icons: { default: () => bl },
|
|
1864
|
+
texts: { default: () => vl }
|
|
1759
1865
|
}, {
|
|
1760
1866
|
modelValue: {
|
|
1761
1867
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -1767,155 +1873,155 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1767
1873
|
searchModifiers: {}
|
|
1768
1874
|
}),
|
|
1769
1875
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1770
|
-
setup(
|
|
1771
|
-
const l =
|
|
1772
|
-
|
|
1773
|
-
const
|
|
1774
|
-
var
|
|
1775
|
-
return l.filterMode === "manual" || !
|
|
1776
|
-
(
|
|
1876
|
+
setup(n, { expose: t, emit: e }) {
|
|
1877
|
+
const l = n, o = e, s = X(n, "modelValue"), d = X(n, "open"), a = X(n, "search"), i = A(void 0), u = A(null), _ = A(null), w = A(null), N = A(null);
|
|
1878
|
+
Me(Z);
|
|
1879
|
+
const z = y(() => l.clearable && !l.readonly && !l.disabled), V = y(() => {
|
|
1880
|
+
var c;
|
|
1881
|
+
return l.filterMode === "manual" || !j.value ? l.items : (c = l.items) == null ? void 0 : c.filter(
|
|
1882
|
+
(L) => L[l.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1777
1883
|
);
|
|
1778
|
-
}), g =
|
|
1779
|
-
var
|
|
1780
|
-
return (
|
|
1781
|
-
}), E =
|
|
1782
|
-
const
|
|
1783
|
-
if (
|
|
1784
|
-
return
|
|
1785
|
-
}),
|
|
1786
|
-
var
|
|
1884
|
+
}), g = y(() => {
|
|
1885
|
+
var c;
|
|
1886
|
+
return (c = l.items) == null ? void 0 : c.find((L) => L[l.itemValue] === s.value);
|
|
1887
|
+
}), E = y(() => g.value === void 0), P = y(() => {
|
|
1888
|
+
const c = i.value;
|
|
1889
|
+
if (c !== void 0 && V.value[c])
|
|
1890
|
+
return V.value[c];
|
|
1891
|
+
}), M = y(() => {
|
|
1892
|
+
var L;
|
|
1787
1893
|
if (i.value === void 0)
|
|
1788
1894
|
return;
|
|
1789
|
-
const
|
|
1790
|
-
return
|
|
1791
|
-
}),
|
|
1792
|
-
var
|
|
1793
|
-
return a.value.length > 0 && a.value !== ((
|
|
1895
|
+
const c = (L = _.value) == null ? void 0 : L.getItem(i.value);
|
|
1896
|
+
return c == null ? void 0 : c.id;
|
|
1897
|
+
}), j = y(() => {
|
|
1898
|
+
var c;
|
|
1899
|
+
return a.value.length > 0 && a.value !== ((c = g.value) == null ? void 0 : c[l.itemLabel]);
|
|
1794
1900
|
});
|
|
1795
|
-
function ae(
|
|
1796
|
-
s.value =
|
|
1901
|
+
function ae(c) {
|
|
1902
|
+
s.value = c, R();
|
|
1797
1903
|
}
|
|
1798
1904
|
function Z() {
|
|
1799
|
-
var
|
|
1800
|
-
const
|
|
1801
|
-
a.value !==
|
|
1905
|
+
var L;
|
|
1906
|
+
const c = ((L = g.value) == null ? void 0 : L[l.itemLabel]) || "";
|
|
1907
|
+
a.value !== c && (a.value = c);
|
|
1802
1908
|
}
|
|
1803
1909
|
function ie() {
|
|
1804
|
-
d.value || l.readonly || l.disabled || (
|
|
1910
|
+
d.value || l.readonly || l.disabled || (o("before-show"), d.value = !0, ce());
|
|
1805
1911
|
}
|
|
1806
1912
|
function R() {
|
|
1807
|
-
d.value && (
|
|
1913
|
+
d.value && (o("before-hide"), d.value = !1, i.value = void 0);
|
|
1808
1914
|
}
|
|
1809
1915
|
function te() {
|
|
1810
|
-
d.value ? R() :
|
|
1916
|
+
d.value ? R() : S();
|
|
1811
1917
|
}
|
|
1812
|
-
function
|
|
1813
|
-
|
|
1918
|
+
function v() {
|
|
1919
|
+
z.value && (s.value = l.emptyValue, i.value = void 0, ce());
|
|
1814
1920
|
}
|
|
1815
|
-
function
|
|
1921
|
+
function S() {
|
|
1816
1922
|
if (ie(), g.value !== void 0) {
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1923
|
+
const c = V.value.indexOf(g.value);
|
|
1924
|
+
c !== -1 && le(() => J(c));
|
|
1819
1925
|
}
|
|
1820
1926
|
}
|
|
1821
|
-
function
|
|
1822
|
-
var
|
|
1823
|
-
if (!(!
|
|
1824
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1927
|
+
function h(c) {
|
|
1928
|
+
var L, F;
|
|
1929
|
+
if (!(!c.key || l.readonly || l.disabled))
|
|
1930
|
+
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), c.key === "Escape")
|
|
1825
1931
|
Z(), d.value && R();
|
|
1826
|
-
else if (["ArrowDown", "ArrowUp"].includes(
|
|
1932
|
+
else if (["ArrowDown", "ArrowUp"].includes(c.key))
|
|
1827
1933
|
d.value ? le(() => {
|
|
1828
1934
|
if (i.value === void 0)
|
|
1829
|
-
|
|
1935
|
+
$();
|
|
1830
1936
|
else {
|
|
1831
|
-
const W =
|
|
1937
|
+
const W = c.key === "ArrowDown" ? "next" : "prev";
|
|
1832
1938
|
re(i.value, W);
|
|
1833
1939
|
}
|
|
1834
1940
|
}) : (ie(), le(() => {
|
|
1835
|
-
|
|
1941
|
+
c.key === "ArrowDown" ? $() : K();
|
|
1836
1942
|
}));
|
|
1837
|
-
else if (
|
|
1943
|
+
else if (c.key === "Enter") {
|
|
1838
1944
|
if (P.value === void 0) return;
|
|
1839
1945
|
ae(P.value[l.itemValue]);
|
|
1840
|
-
} else
|
|
1946
|
+
} else c.key === "Home" ? i.value = (L = _.value) == null ? void 0 : L.getFirstFocusableItemIndex() : c.key === "End" ? i.value = (F = _.value) == null ? void 0 : F.getLastFocusableItemIndex() : (/^[a-z]$/i.test(c.key) || c.key === "Backspace") && ie();
|
|
1841
1947
|
}
|
|
1842
|
-
function
|
|
1843
|
-
var
|
|
1948
|
+
function $() {
|
|
1949
|
+
var c, L;
|
|
1844
1950
|
if (E.value)
|
|
1845
|
-
i.value = (
|
|
1951
|
+
i.value = (L = _.value) == null ? void 0 : L.getFirstFocusableItemIndex();
|
|
1846
1952
|
else {
|
|
1847
|
-
const F =
|
|
1953
|
+
const F = V.value.findIndex(
|
|
1848
1954
|
(W) => W[l.itemValue] === s.value
|
|
1849
1955
|
);
|
|
1850
|
-
F === -1 ? i.value = (
|
|
1956
|
+
F === -1 ? i.value = (c = _.value) == null ? void 0 : c.getFirstFocusableItemIndex() : i.value = F;
|
|
1851
1957
|
}
|
|
1852
1958
|
}
|
|
1853
|
-
function
|
|
1854
|
-
var
|
|
1855
|
-
i.value = (
|
|
1959
|
+
function K() {
|
|
1960
|
+
var c;
|
|
1961
|
+
i.value = (c = _.value) == null ? void 0 : c.getLastFocusableItemIndex();
|
|
1856
1962
|
}
|
|
1857
|
-
function re(
|
|
1963
|
+
function re(c, L) {
|
|
1858
1964
|
var F;
|
|
1859
|
-
i.value = (F =
|
|
1965
|
+
i.value = (F = _.value) == null ? void 0 : F.getAdjacentItemIndex(c, L);
|
|
1860
1966
|
}
|
|
1861
|
-
function
|
|
1862
|
-
var
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
|
|
1967
|
+
function ne(c) {
|
|
1968
|
+
var he, Ne, Re, Ge;
|
|
1969
|
+
const L = ((he = w == null ? void 0 : w.value) == null ? void 0 : he.$el) === c.relatedTarget, F = (Re = (Ne = u == null ? void 0 : u.value) == null ? void 0 : Ne.$el) == null ? void 0 : Re.contains(c.relatedTarget), W = (Ge = N == null ? void 0 : N.value) == null ? void 0 : Ge.contains(c.relatedTarget);
|
|
1970
|
+
if (L || W || F) {
|
|
1971
|
+
c.preventDefault(), c.stopPropagation();
|
|
1866
1972
|
return;
|
|
1867
1973
|
}
|
|
1868
|
-
R(),
|
|
1974
|
+
R(), z.value && !a.value && (s.value = l.emptyValue), Z();
|
|
1869
1975
|
}
|
|
1870
|
-
function
|
|
1871
|
-
var
|
|
1872
|
-
(
|
|
1976
|
+
function ce() {
|
|
1977
|
+
var c, L;
|
|
1978
|
+
(L = (c = u.value) == null ? void 0 : c.inputRef) == null || L.focus();
|
|
1873
1979
|
}
|
|
1874
|
-
function
|
|
1875
|
-
|
|
1980
|
+
function we() {
|
|
1981
|
+
ce();
|
|
1876
1982
|
}
|
|
1877
|
-
function
|
|
1878
|
-
|
|
1983
|
+
function x() {
|
|
1984
|
+
o("show");
|
|
1879
1985
|
}
|
|
1880
|
-
function
|
|
1881
|
-
|
|
1986
|
+
function me() {
|
|
1987
|
+
o("hide");
|
|
1882
1988
|
}
|
|
1883
|
-
function J(
|
|
1989
|
+
function J(c) {
|
|
1884
1990
|
var F;
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1991
|
+
const L = (F = _.value) == null ? void 0 : F.getItem(c);
|
|
1992
|
+
_.value && (_.value.$el.scrollTop = L == null ? void 0 : L.offsetTop);
|
|
1887
1993
|
}
|
|
1888
1994
|
return ee(s, Z), ee(
|
|
1889
1995
|
() => l.items,
|
|
1890
|
-
(
|
|
1996
|
+
(c, L) => {
|
|
1891
1997
|
if (!E.value) {
|
|
1892
|
-
const F =
|
|
1998
|
+
const F = L.find((W) => W[l.itemValue] === s.value);
|
|
1893
1999
|
a.value === (F == null ? void 0 : F[l.itemLabel]) && Z();
|
|
1894
2000
|
}
|
|
1895
2001
|
},
|
|
1896
2002
|
{ deep: !0 }
|
|
1897
|
-
), ee(i, (
|
|
1898
|
-
|
|
1899
|
-
}), ee(a, (
|
|
1900
|
-
|
|
2003
|
+
), ee(i, (c) => {
|
|
2004
|
+
c !== void 0 && J(c);
|
|
2005
|
+
}), ee(a, (c) => {
|
|
2006
|
+
c && d.value && l.selectionMode === "automatic" && le($);
|
|
1901
2007
|
}), ee(
|
|
1902
2008
|
() => l.loading,
|
|
1903
|
-
(
|
|
1904
|
-
!
|
|
2009
|
+
(c) => {
|
|
2010
|
+
!c && d.value && le($);
|
|
1905
2011
|
}
|
|
1906
2012
|
), t({
|
|
1907
|
-
triggerEl:
|
|
1908
|
-
}), (
|
|
2013
|
+
triggerEl: u
|
|
2014
|
+
}), (c, L) => {
|
|
1909
2015
|
var F;
|
|
1910
|
-
return r(), f(
|
|
1911
|
-
|
|
1912
|
-
modelValue: a.value,
|
|
1913
|
-
"onUpdate:modelValue": x[0] || (x[0] = (W) => a.value = W),
|
|
2016
|
+
return r(), f(U, null, [
|
|
2017
|
+
D(m(ct), H({
|
|
1914
2018
|
id: l.id,
|
|
2019
|
+
ref_key: "triggerEl",
|
|
2020
|
+
ref: u,
|
|
2021
|
+
modelValue: a.value,
|
|
2022
|
+
"onUpdate:modelValue": L[0] || (L[0] = (W) => a.value = W),
|
|
1915
2023
|
label: l.label,
|
|
1916
2024
|
required: l.required,
|
|
1917
|
-
ref_key: "triggerEl",
|
|
1918
|
-
ref: c,
|
|
1919
2025
|
role: "combobox",
|
|
1920
2026
|
placeholder: l.placeholder,
|
|
1921
2027
|
class: [
|
|
@@ -1934,39 +2040,39 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1934
2040
|
"aria-expanded": d.value,
|
|
1935
2041
|
"aria-haspopup": "listbox",
|
|
1936
2042
|
"aria-autocomplete": "list",
|
|
1937
|
-
"aria-activedescendant":
|
|
2043
|
+
"aria-activedescendant": M.value,
|
|
1938
2044
|
size: l.size
|
|
1939
|
-
},
|
|
1940
|
-
onClick:
|
|
1941
|
-
onFocusout:
|
|
1942
|
-
onKeydown: fe(
|
|
1943
|
-
}),
|
|
2045
|
+
}, c.$attrs, {
|
|
2046
|
+
onClick: S,
|
|
2047
|
+
onFocusout: ne,
|
|
2048
|
+
onKeydown: fe(h, ["stop"])
|
|
2049
|
+
}), Be({
|
|
1944
2050
|
"label.prepend": k(() => [
|
|
1945
|
-
p(
|
|
2051
|
+
p(c.$slots, "label.prepend")
|
|
1946
2052
|
]),
|
|
1947
2053
|
"label.append": k(() => [
|
|
1948
|
-
p(
|
|
2054
|
+
p(c.$slots, "label.append")
|
|
1949
2055
|
]),
|
|
1950
2056
|
append: k(() => [
|
|
1951
|
-
p(
|
|
1952
|
-
|
|
2057
|
+
p(c.$slots, "append"),
|
|
2058
|
+
z.value && a.value ? (r(), B(m(se), {
|
|
1953
2059
|
key: 0,
|
|
1954
2060
|
class: "q-combobox__clear",
|
|
1955
2061
|
"aria-label": l.texts.clearValue,
|
|
1956
2062
|
"b-style": "plain",
|
|
1957
2063
|
borderless: "",
|
|
1958
2064
|
tabindex: "-1",
|
|
1959
|
-
onClick:
|
|
2065
|
+
onClick: v
|
|
1960
2066
|
}, {
|
|
1961
2067
|
default: k(() => [
|
|
1962
|
-
|
|
2068
|
+
D(m(O), Y(oe(l.icons.clear)), null, 16)
|
|
1963
2069
|
]),
|
|
1964
2070
|
_: 1
|
|
1965
2071
|
}, 8, ["aria-label"])) : b("", !0),
|
|
1966
|
-
l.readonly ? b("", !0) : (r(), B(
|
|
2072
|
+
l.readonly ? b("", !0) : (r(), B(m(se), {
|
|
1967
2073
|
key: 1,
|
|
1968
2074
|
ref_key: "toggleRef",
|
|
1969
|
-
ref:
|
|
2075
|
+
ref: w,
|
|
1970
2076
|
class: "q-combobox__chevron",
|
|
1971
2077
|
"aria-label": l.texts.showOptions,
|
|
1972
2078
|
"b-style": "plain",
|
|
@@ -1976,80 +2082,80 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
1976
2082
|
onMousedown: fe(te, ["stop", "prevent"])
|
|
1977
2083
|
}, {
|
|
1978
2084
|
default: k(() => [
|
|
1979
|
-
|
|
2085
|
+
D(m(O), Y(oe(l.icons.chevron)), null, 16)
|
|
1980
2086
|
]),
|
|
1981
2087
|
_: 1
|
|
1982
2088
|
}, 8, ["aria-label", "disabled"]))
|
|
1983
2089
|
]),
|
|
1984
2090
|
_: 2
|
|
1985
2091
|
}, [
|
|
1986
|
-
|
|
2092
|
+
c.$slots.prepend ? {
|
|
1987
2093
|
name: "prepend",
|
|
1988
2094
|
fn: k(() => [
|
|
1989
|
-
p(
|
|
2095
|
+
p(c.$slots, "prepend")
|
|
1990
2096
|
]),
|
|
1991
2097
|
key: "0"
|
|
1992
2098
|
} : void 0,
|
|
1993
|
-
|
|
2099
|
+
c.$slots.extras ? {
|
|
1994
2100
|
name: "extras",
|
|
1995
2101
|
fn: k(() => [
|
|
1996
|
-
p(
|
|
2102
|
+
p(c.$slots, "extras")
|
|
1997
2103
|
]),
|
|
1998
2104
|
key: "1"
|
|
1999
2105
|
} : void 0
|
|
2000
|
-
]), 1040, ["
|
|
2001
|
-
|
|
2106
|
+
]), 1040, ["id", "modelValue", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
2107
|
+
D(m(be), {
|
|
2002
2108
|
modelValue: d.value,
|
|
2003
|
-
"onUpdate:modelValue":
|
|
2109
|
+
"onUpdate:modelValue": L[2] || (L[2] = (W) => d.value = W),
|
|
2004
2110
|
spy: "",
|
|
2005
2111
|
"non-modal": "",
|
|
2006
2112
|
trigger: "manual",
|
|
2007
2113
|
placement: "bottom-start",
|
|
2008
2114
|
width: "anchor",
|
|
2009
2115
|
offset: 4,
|
|
2010
|
-
anchor: (F =
|
|
2011
|
-
onEnter:
|
|
2012
|
-
onLeave:
|
|
2116
|
+
anchor: (F = u.value) == null ? void 0 : F.$el,
|
|
2117
|
+
onEnter: x,
|
|
2118
|
+
onLeave: me
|
|
2013
2119
|
}, {
|
|
2014
2120
|
default: k(() => {
|
|
2015
2121
|
var W;
|
|
2016
2122
|
return [
|
|
2017
|
-
|
|
2123
|
+
q("div", {
|
|
2018
2124
|
ref_key: "contentRef",
|
|
2019
|
-
ref:
|
|
2125
|
+
ref: N,
|
|
2020
2126
|
class: "q-select__body",
|
|
2021
2127
|
"data-testid": "combobox-dropdown",
|
|
2022
2128
|
"data-key": l.id,
|
|
2023
|
-
onFocusout:
|
|
2129
|
+
onFocusout: ne
|
|
2024
2130
|
}, [
|
|
2025
|
-
p(
|
|
2026
|
-
l.loading ? (r(), f("div",
|
|
2027
|
-
|
|
2028
|
-
])) :
|
|
2131
|
+
p(c.$slots, "body.prepend"),
|
|
2132
|
+
l.loading ? (r(), f("div", _l, [
|
|
2133
|
+
D(m($e), { size: 24 })
|
|
2134
|
+
])) : V.value.length ? (r(), B(m(Ue), {
|
|
2029
2135
|
key: 1,
|
|
2030
2136
|
ref_key: "listRef",
|
|
2031
|
-
ref:
|
|
2032
|
-
class: "q-select__items",
|
|
2033
|
-
selectable: "",
|
|
2137
|
+
ref: _,
|
|
2034
2138
|
modelValue: s.value,
|
|
2035
2139
|
"onUpdate:modelValue": [
|
|
2036
|
-
|
|
2140
|
+
L[1] || (L[1] = (he) => s.value = he),
|
|
2037
2141
|
ae
|
|
2038
2142
|
],
|
|
2143
|
+
class: "q-select__items",
|
|
2144
|
+
selectable: "",
|
|
2039
2145
|
highlighted: (W = P.value) == null ? void 0 : W[l.itemValue],
|
|
2040
|
-
items:
|
|
2041
|
-
groups:
|
|
2146
|
+
items: V.value,
|
|
2147
|
+
groups: c.groups,
|
|
2042
2148
|
"item-label": l.itemLabel,
|
|
2043
2149
|
"item-value": l.itemValue,
|
|
2044
|
-
onMouseup:
|
|
2150
|
+
onMouseup: we
|
|
2045
2151
|
}, {
|
|
2046
|
-
item: k(({ item:
|
|
2047
|
-
p(
|
|
2152
|
+
item: k(({ item: he }) => [
|
|
2153
|
+
p(c.$slots, "item", { item: he })
|
|
2048
2154
|
]),
|
|
2049
2155
|
_: 3
|
|
2050
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), f("div",
|
|
2051
|
-
p(
|
|
2052
|
-
], 40,
|
|
2156
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (r(), f("div", $l, Q(l.texts.noData), 1)),
|
|
2157
|
+
p(c.$slots, "body.append")
|
|
2158
|
+
], 40, gl)
|
|
2053
2159
|
];
|
|
2054
2160
|
}),
|
|
2055
2161
|
_: 3
|
|
@@ -2057,7 +2163,7 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2057
2163
|
], 64);
|
|
2058
2164
|
};
|
|
2059
2165
|
}
|
|
2060
|
-
}),
|
|
2166
|
+
}), wl = I(kl), ql = [
|
|
2061
2167
|
{
|
|
2062
2168
|
id: "button",
|
|
2063
2169
|
icon: {
|
|
@@ -2068,37 +2174,37 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2068
2174
|
label: "Ok"
|
|
2069
2175
|
}
|
|
2070
2176
|
}
|
|
2071
|
-
],
|
|
2177
|
+
], xl = {
|
|
2072
2178
|
icon: "check-circle-outline"
|
|
2073
|
-
},
|
|
2179
|
+
}, Sl = {
|
|
2074
2180
|
close: {
|
|
2075
2181
|
icon: "close"
|
|
2076
2182
|
}
|
|
2077
|
-
},
|
|
2183
|
+
}, Bl = { class: "q-dialog__header" }, Ll = { class: "q-dialog__header-title" }, Cl = { class: "q-dialog__body" }, Il = {
|
|
2078
2184
|
key: 0,
|
|
2079
2185
|
class: "q-dialog__body-icon"
|
|
2080
|
-
},
|
|
2186
|
+
}, Tl = { class: "q-dialog__body-text" }, Vl = ["innerHTML"], Al = { key: 1 }, El = { class: "q-dialog__body-actions" }, Ql = /* @__PURE__ */ C({
|
|
2081
2187
|
__name: "QDialog",
|
|
2082
2188
|
props: /* @__PURE__ */ G({
|
|
2083
2189
|
text: { default: "" },
|
|
2084
2190
|
attach: { default: "body" },
|
|
2085
2191
|
inline: { type: Boolean },
|
|
2086
2192
|
backdropBlur: { type: Boolean, default: !0 },
|
|
2087
|
-
buttons: { default: () =>
|
|
2193
|
+
buttons: { default: () => ql },
|
|
2088
2194
|
dismissible: { type: Boolean },
|
|
2089
2195
|
html: { type: Boolean, default: !0 },
|
|
2090
|
-
icon: { default: () =>
|
|
2196
|
+
icon: { default: () => xl },
|
|
2091
2197
|
id: { default: void 0 },
|
|
2092
2198
|
title: { default: "" },
|
|
2093
2199
|
class: { default: void 0 },
|
|
2094
|
-
icons: { default: () =>
|
|
2200
|
+
icons: { default: () => Sl }
|
|
2095
2201
|
}, {
|
|
2096
2202
|
modelValue: { type: Boolean },
|
|
2097
2203
|
modelModifiers: {}
|
|
2098
2204
|
}),
|
|
2099
2205
|
emits: ["update:modelValue"],
|
|
2100
|
-
setup(
|
|
2101
|
-
const t =
|
|
2206
|
+
setup(n) {
|
|
2207
|
+
const t = n, e = X(n, "modelValue"), l = ue(t.id), o = y(() => ["q-dialog", t.class]);
|
|
2102
2208
|
function s() {
|
|
2103
2209
|
e.value = !1;
|
|
2104
2210
|
}
|
|
@@ -2106,9 +2212,9 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2106
2212
|
var i;
|
|
2107
2213
|
(i = a.action) == null || i.call(a), s();
|
|
2108
2214
|
}
|
|
2109
|
-
return (a, i) => (r(), B(
|
|
2215
|
+
return (a, i) => (r(), B(m(be), {
|
|
2216
|
+
id: m(l),
|
|
2110
2217
|
"model-value": e.value,
|
|
2111
|
-
id: v(l),
|
|
2112
2218
|
inline: t.inline,
|
|
2113
2219
|
attach: t.attach,
|
|
2114
2220
|
"backdrop-blur": t.backdropBlur,
|
|
@@ -2117,48 +2223,48 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2117
2223
|
persistent: ""
|
|
2118
2224
|
}, {
|
|
2119
2225
|
default: k(() => [
|
|
2120
|
-
|
|
2121
|
-
class:
|
|
2226
|
+
q("div", {
|
|
2227
|
+
class: T(o.value)
|
|
2122
2228
|
}, [
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
t.dismissible ? (r(), B(
|
|
2229
|
+
q("div", Bl, [
|
|
2230
|
+
q("span", Ll, Q(t.title), 1),
|
|
2231
|
+
t.dismissible ? (r(), B(m(se), {
|
|
2126
2232
|
key: 0,
|
|
2127
2233
|
"b-style": "tertiary",
|
|
2128
2234
|
onClick: s
|
|
2129
2235
|
}, {
|
|
2130
2236
|
default: k(() => [
|
|
2131
|
-
|
|
2237
|
+
D(m(O), Y(oe(t.icons.close)), null, 16)
|
|
2132
2238
|
]),
|
|
2133
2239
|
_: 1
|
|
2134
2240
|
})) : b("", !0)
|
|
2135
2241
|
]),
|
|
2136
2242
|
p(a.$slots, "body.content", {}, () => [
|
|
2137
|
-
|
|
2243
|
+
q("div", Cl, [
|
|
2138
2244
|
p(a.$slots, "body.icon", {}, () => [
|
|
2139
|
-
t.icon ? (r(), f("span",
|
|
2140
|
-
|
|
2245
|
+
t.icon ? (r(), f("span", Il, [
|
|
2246
|
+
D(m(O), Y(oe(t.icon)), null, 16)
|
|
2141
2247
|
])) : b("", !0)
|
|
2142
2248
|
]),
|
|
2143
|
-
|
|
2249
|
+
q("div", Tl, [
|
|
2144
2250
|
t.html ? (r(), f("span", {
|
|
2145
2251
|
key: 0,
|
|
2146
2252
|
innerHTML: t.text
|
|
2147
|
-
}, null, 8,
|
|
2253
|
+
}, null, 8, Vl)) : (r(), f("span", Al, Q(t.text), 1))
|
|
2148
2254
|
]),
|
|
2149
2255
|
p(a.$slots, "body.append")
|
|
2150
2256
|
])
|
|
2151
2257
|
]),
|
|
2152
|
-
|
|
2153
|
-
(r(!0), f(
|
|
2154
|
-
key:
|
|
2155
|
-
onClick: () => d(
|
|
2258
|
+
q("div", El, [
|
|
2259
|
+
(r(!0), f(U, null, ve(t.buttons, (u) => (r(), B(m(se), H({ ref_for: !0 }, u.props, {
|
|
2260
|
+
key: u.id,
|
|
2261
|
+
onClick: () => d(u)
|
|
2156
2262
|
}), {
|
|
2157
2263
|
default: k(() => [
|
|
2158
|
-
|
|
2264
|
+
u.icon ? (r(), B(m(O), H({
|
|
2159
2265
|
key: 0,
|
|
2160
2266
|
ref_for: !0
|
|
2161
|
-
},
|
|
2267
|
+
}, u.icon), null, 16)) : b("", !0)
|
|
2162
2268
|
]),
|
|
2163
2269
|
_: 2
|
|
2164
2270
|
}, 1040, ["onClick"]))), 128))
|
|
@@ -2166,15 +2272,15 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2166
2272
|
], 2)
|
|
2167
2273
|
]),
|
|
2168
2274
|
_: 3
|
|
2169
|
-
}, 8, ["
|
|
2275
|
+
}, 8, ["id", "model-value", "inline", "attach", "backdrop-blur"]));
|
|
2170
2276
|
}
|
|
2171
|
-
}),
|
|
2277
|
+
}), Dl = I(Ql), zl = {
|
|
2172
2278
|
key: 0,
|
|
2173
2279
|
class: "q-input-group__prepend"
|
|
2174
|
-
},
|
|
2280
|
+
}, Ml = { key: 0 }, Fl = {
|
|
2175
2281
|
key: 1,
|
|
2176
2282
|
class: "q-input-group__append"
|
|
2177
|
-
},
|
|
2283
|
+
}, Ol = { key: 0 }, Pl = /* @__PURE__ */ C({
|
|
2178
2284
|
__name: "QInputGroup",
|
|
2179
2285
|
props: {
|
|
2180
2286
|
id: { default: void 0 },
|
|
@@ -2185,30 +2291,30 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2185
2291
|
size: { default: "large" },
|
|
2186
2292
|
class: { default: void 0 }
|
|
2187
2293
|
},
|
|
2188
|
-
setup(
|
|
2189
|
-
const t =
|
|
2190
|
-
return
|
|
2294
|
+
setup(n) {
|
|
2295
|
+
const t = n;
|
|
2296
|
+
return Pe({
|
|
2191
2297
|
QField: {
|
|
2192
2298
|
size: "block"
|
|
2193
2299
|
}
|
|
2194
|
-
}), (e, l) => (r(), B(
|
|
2300
|
+
}), (e, l) => (r(), B(m(Le), {
|
|
2195
2301
|
id: t.id,
|
|
2196
|
-
class:
|
|
2302
|
+
class: T(["q-input-group", t.class]),
|
|
2197
2303
|
label: t.label,
|
|
2198
2304
|
required: t.required,
|
|
2199
2305
|
size: t.size
|
|
2200
|
-
},
|
|
2306
|
+
}, Be({
|
|
2201
2307
|
default: k(() => [
|
|
2202
|
-
e.$slots.prepend || t.prependIcon ? (r(), f("div",
|
|
2203
|
-
t.prependIcon ? (r(), f("span",
|
|
2204
|
-
|
|
2308
|
+
e.$slots.prepend || t.prependIcon ? (r(), f("div", zl, [
|
|
2309
|
+
t.prependIcon ? (r(), f("span", Ml, [
|
|
2310
|
+
D(m(O), Y(oe(t.prependIcon)), null, 16)
|
|
2205
2311
|
])) : b("", !0),
|
|
2206
2312
|
p(e.$slots, "prepend")
|
|
2207
2313
|
])) : b("", !0),
|
|
2208
2314
|
p(e.$slots, "default"),
|
|
2209
|
-
e.$slots.append || t.appendIcon ? (r(), f("div",
|
|
2210
|
-
t.appendIcon ? (r(), f("span",
|
|
2211
|
-
|
|
2315
|
+
e.$slots.append || t.appendIcon ? (r(), f("div", Fl, [
|
|
2316
|
+
t.appendIcon ? (r(), f("span", Ol, [
|
|
2317
|
+
D(m(O), Y(oe(t.appendIcon)), null, 16)
|
|
2212
2318
|
])) : b("", !0),
|
|
2213
2319
|
p(e.$slots, "append")
|
|
2214
2320
|
])) : b("", !0)
|
|
@@ -2224,24 +2330,24 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2224
2330
|
} : void 0
|
|
2225
2331
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
2226
2332
|
}
|
|
2227
|
-
}),
|
|
2333
|
+
}), Ul = I(Pl), Nl = /* @__PURE__ */ C({
|
|
2228
2334
|
__name: "QLineLoader",
|
|
2229
2335
|
props: {
|
|
2230
2336
|
class: { default: void 0 }
|
|
2231
2337
|
},
|
|
2232
|
-
setup(
|
|
2233
|
-
const t =
|
|
2338
|
+
setup(n) {
|
|
2339
|
+
const t = n;
|
|
2234
2340
|
return (e, l) => (r(), f("div", {
|
|
2235
|
-
class:
|
|
2341
|
+
class: T(["q-line-loader", t.class])
|
|
2236
2342
|
}, null, 2));
|
|
2237
2343
|
}
|
|
2238
|
-
}),
|
|
2344
|
+
}), Rl = I(Nl), Gl = {
|
|
2239
2345
|
key: 0,
|
|
2240
2346
|
class: "q-popover__header"
|
|
2241
|
-
},
|
|
2347
|
+
}, Hl = {
|
|
2242
2348
|
key: 1,
|
|
2243
2349
|
class: "q-popover__body"
|
|
2244
|
-
},
|
|
2350
|
+
}, jl = ["innerHTML"], Kl = { key: 1 }, Wl = /* @__PURE__ */ C({
|
|
2245
2351
|
inheritAttrs: !1,
|
|
2246
2352
|
__name: "QPopover",
|
|
2247
2353
|
props: /* @__PURE__ */ G({
|
|
@@ -2259,11 +2365,11 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2259
2365
|
modelModifiers: {}
|
|
2260
2366
|
}),
|
|
2261
2367
|
emits: ["update:modelValue"],
|
|
2262
|
-
setup(
|
|
2263
|
-
const t =
|
|
2264
|
-
return (l,
|
|
2368
|
+
setup(n) {
|
|
2369
|
+
const t = n, e = X(n, "modelValue");
|
|
2370
|
+
return (l, o) => (r(), B(m(be), {
|
|
2265
2371
|
modelValue: e.value,
|
|
2266
|
-
"onUpdate:modelValue":
|
|
2372
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s),
|
|
2267
2373
|
class: "q-popover",
|
|
2268
2374
|
trigger: "click",
|
|
2269
2375
|
anchor: t.anchor,
|
|
@@ -2274,31 +2380,31 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2274
2380
|
placement: t.placement
|
|
2275
2381
|
}, {
|
|
2276
2382
|
default: k(() => [
|
|
2277
|
-
t.title || l.$slots.header ? (r(), f("h3",
|
|
2278
|
-
de(
|
|
2383
|
+
t.title || l.$slots.header ? (r(), f("h3", Gl, [
|
|
2384
|
+
de(Q(t.title) + " ", 1),
|
|
2279
2385
|
p(l.$slots, "header")
|
|
2280
2386
|
])) : b("", !0),
|
|
2281
|
-
t.text || l.$slots.body ? (r(), f("div",
|
|
2387
|
+
t.text || l.$slots.body ? (r(), f("div", Hl, [
|
|
2282
2388
|
t.html ? (r(), f("span", {
|
|
2283
2389
|
key: 0,
|
|
2284
2390
|
innerHTML: t.text
|
|
2285
|
-
}, null, 8,
|
|
2391
|
+
}, null, 8, jl)) : (r(), f("span", Kl, Q(t.text), 1)),
|
|
2286
2392
|
p(l.$slots, "body")
|
|
2287
2393
|
])) : b("", !0)
|
|
2288
2394
|
]),
|
|
2289
2395
|
_: 3
|
|
2290
2396
|
}, 8, ["modelValue", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
|
|
2291
2397
|
}
|
|
2292
|
-
}),
|
|
2398
|
+
}), Xl = I(Wl), ft = {
|
|
2293
2399
|
emptyMessage: "Select a field to view details."
|
|
2294
|
-
},
|
|
2400
|
+
}, pt = {
|
|
2295
2401
|
open: {
|
|
2296
2402
|
icon: "minus-box"
|
|
2297
2403
|
},
|
|
2298
2404
|
close: {
|
|
2299
2405
|
icon: "plus-box"
|
|
2300
2406
|
}
|
|
2301
|
-
},
|
|
2407
|
+
}, Yl = { class: "q-property-list__table" }, Zl = /* @__PURE__ */ C({
|
|
2302
2408
|
__name: "QPropertyList",
|
|
2303
2409
|
props: {
|
|
2304
2410
|
fields: { default: () => [] },
|
|
@@ -2308,33 +2414,33 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2308
2414
|
groups: { default: () => [] },
|
|
2309
2415
|
readonly: { type: Boolean },
|
|
2310
2416
|
class: { default: void 0 },
|
|
2311
|
-
icons: { default: () =>
|
|
2312
|
-
texts: { default: () =>
|
|
2417
|
+
icons: { default: () => pt },
|
|
2418
|
+
texts: { default: () => ft }
|
|
2313
2419
|
},
|
|
2314
2420
|
emits: ["field-change"],
|
|
2315
|
-
setup(
|
|
2316
|
-
const e =
|
|
2421
|
+
setup(n, { emit: t }) {
|
|
2422
|
+
const e = n, l = t, o = A(e.groups.map((g) => g.id)), s = A(void 0), d = A(null), a = y(() => e.groups.length ? e.groups.filter(
|
|
2317
2423
|
(g) => e.fields.some((E) => E.group === g.id)
|
|
2318
|
-
) : [{ id: "", title: "" }]), i =
|
|
2424
|
+
) : [{ id: "", title: "" }]), i = y(() => [
|
|
2319
2425
|
e.class,
|
|
2320
2426
|
{
|
|
2321
2427
|
"q-property-list--side-panel": e.panelPosition === "right"
|
|
2322
2428
|
}
|
|
2323
2429
|
]);
|
|
2324
|
-
function
|
|
2430
|
+
function u() {
|
|
2325
2431
|
var g;
|
|
2326
2432
|
(g = d.value) != null && g.contains(document.activeElement) || (s.value = void 0);
|
|
2327
2433
|
}
|
|
2328
|
-
function
|
|
2434
|
+
function _(g) {
|
|
2329
2435
|
return g ? e.fields.filter((E) => E.group === g) : e.fields;
|
|
2330
2436
|
}
|
|
2331
|
-
function
|
|
2332
|
-
const E =
|
|
2333
|
-
E === -1 ?
|
|
2437
|
+
function w(g) {
|
|
2438
|
+
const E = o.value.indexOf(g);
|
|
2439
|
+
E === -1 ? o.value.push(g) : o.value.splice(E, 1);
|
|
2334
2440
|
}
|
|
2335
|
-
function
|
|
2336
|
-
var
|
|
2337
|
-
const E = g.group && !
|
|
2441
|
+
function N(g) {
|
|
2442
|
+
var M;
|
|
2443
|
+
const E = g.group && !o.value.includes(g.group), P = ((M = s.value) == null ? void 0 : M.id) === g.id;
|
|
2338
2444
|
return [
|
|
2339
2445
|
{
|
|
2340
2446
|
"q-property-list__row--closed": E,
|
|
@@ -2342,54 +2448,54 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2342
2448
|
}
|
|
2343
2449
|
];
|
|
2344
2450
|
}
|
|
2345
|
-
function
|
|
2451
|
+
function z(g) {
|
|
2346
2452
|
s.value = g;
|
|
2347
2453
|
}
|
|
2348
|
-
function
|
|
2454
|
+
function V(g, E) {
|
|
2349
2455
|
e.readonly || (g.props.readonly ?? !1) || (g.props.modelValue = E, l("field-change", g));
|
|
2350
2456
|
}
|
|
2351
2457
|
return (g, E) => (r(), f("div", {
|
|
2352
|
-
tabindex: "0",
|
|
2353
|
-
class: V(["q-property-list", i.value]),
|
|
2354
2458
|
ref_key: "componentRoot",
|
|
2355
2459
|
ref: d,
|
|
2356
|
-
|
|
2460
|
+
tabindex: "0",
|
|
2461
|
+
class: T(["q-property-list", i.value]),
|
|
2462
|
+
onFocusout: u
|
|
2357
2463
|
}, [
|
|
2358
|
-
|
|
2359
|
-
E[0] || (E[0] =
|
|
2360
|
-
|
|
2361
|
-
|
|
2464
|
+
q("table", Yl, [
|
|
2465
|
+
E[0] || (E[0] = q("thead", { class: "q-property-list__header" }, [
|
|
2466
|
+
q("tr", null, [
|
|
2467
|
+
q("th", { colspan: "2" })
|
|
2362
2468
|
])
|
|
2363
2469
|
], -1)),
|
|
2364
|
-
|
|
2365
|
-
(r(!0), f(
|
|
2470
|
+
q("tbody", null, [
|
|
2471
|
+
(r(!0), f(U, null, ve(a.value, (P) => (r(), f(U, {
|
|
2366
2472
|
key: P.id
|
|
2367
2473
|
}, [
|
|
2368
|
-
P.title ? (r(), B(
|
|
2474
|
+
P.title ? (r(), B(m(ht), {
|
|
2369
2475
|
key: 0,
|
|
2370
2476
|
id: P.id,
|
|
2371
2477
|
title: P.title,
|
|
2372
2478
|
icons: e.icons,
|
|
2373
2479
|
"no-toggle": e.noToggle,
|
|
2374
|
-
onToggleGroup:
|
|
2480
|
+
onToggleGroup: w
|
|
2375
2481
|
}, null, 8, ["id", "title", "icons", "no-toggle"])) : b("", !0),
|
|
2376
|
-
(r(!0), f(
|
|
2377
|
-
key:
|
|
2378
|
-
class:
|
|
2379
|
-
field:
|
|
2482
|
+
(r(!0), f(U, null, ve(_(P.id), (M) => (r(), B(m(mt), {
|
|
2483
|
+
key: M.id,
|
|
2484
|
+
class: T(N(M)),
|
|
2485
|
+
field: M,
|
|
2380
2486
|
readonly: e.readonly,
|
|
2381
|
-
onFocus:
|
|
2382
|
-
onFieldChange:
|
|
2487
|
+
onFocus: z,
|
|
2488
|
+
onFieldChange: V
|
|
2383
2489
|
}, {
|
|
2384
2490
|
default: k(() => [
|
|
2385
|
-
p(g.$slots,
|
|
2491
|
+
p(g.$slots, M.id, { field: M })
|
|
2386
2492
|
]),
|
|
2387
2493
|
_: 2
|
|
2388
2494
|
}, 1032, ["class", "field", "readonly"]))), 128))
|
|
2389
2495
|
], 64))), 128))
|
|
2390
2496
|
])
|
|
2391
2497
|
]),
|
|
2392
|
-
e.noPanel ? b("", !0) : (r(), B(
|
|
2498
|
+
e.noPanel ? b("", !0) : (r(), B(m(yt), {
|
|
2393
2499
|
key: 0,
|
|
2394
2500
|
field: s.value,
|
|
2395
2501
|
texts: e.texts
|
|
@@ -2404,10 +2510,10 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2404
2510
|
}, 8, ["field", "texts"]))
|
|
2405
2511
|
], 34));
|
|
2406
2512
|
}
|
|
2407
|
-
}),
|
|
2513
|
+
}), Jl = {
|
|
2408
2514
|
key: 0,
|
|
2409
2515
|
class: "q-property-list-field__container"
|
|
2410
|
-
},
|
|
2516
|
+
}, eo = /* @__PURE__ */ C({
|
|
2411
2517
|
__name: "QPropertyListRow",
|
|
2412
2518
|
props: {
|
|
2413
2519
|
field: {},
|
|
@@ -2415,37 +2521,37 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2415
2521
|
readonly: { type: Boolean }
|
|
2416
2522
|
},
|
|
2417
2523
|
emits: ["focus", "field-change"],
|
|
2418
|
-
setup(
|
|
2419
|
-
const e =
|
|
2420
|
-
var
|
|
2421
|
-
const
|
|
2422
|
-
return (
|
|
2423
|
-
}), d =
|
|
2524
|
+
setup(n, { emit: t }) {
|
|
2525
|
+
const e = n, l = t, o = y(() => ["q-property-list__row", e.class]), s = y(() => {
|
|
2526
|
+
var w;
|
|
2527
|
+
const _ = ["q-property-list__cell", "q-property-list__cell--label"];
|
|
2528
|
+
return (w = e.field.props) != null && w.required && _.push("q-property-list__cell--required"), _;
|
|
2529
|
+
}), d = y(() => e.readonly || (e.field.props.readonly ?? !1));
|
|
2424
2530
|
function a() {
|
|
2425
2531
|
l("focus", e.field);
|
|
2426
2532
|
}
|
|
2427
|
-
function i(
|
|
2428
|
-
l("field-change", e.field,
|
|
2533
|
+
function i(_) {
|
|
2534
|
+
l("field-change", e.field, _);
|
|
2429
2535
|
}
|
|
2430
|
-
const
|
|
2536
|
+
const u = y(() => ({
|
|
2431
2537
|
...e.field.props,
|
|
2432
2538
|
readonly: d.value
|
|
2433
2539
|
}));
|
|
2434
|
-
return (
|
|
2435
|
-
class:
|
|
2540
|
+
return (_, w) => (r(), f("tr", {
|
|
2541
|
+
class: T(o.value),
|
|
2436
2542
|
onFocusin: a
|
|
2437
2543
|
}, [
|
|
2438
|
-
|
|
2439
|
-
class:
|
|
2544
|
+
q("td", {
|
|
2545
|
+
class: T(s.value),
|
|
2440
2546
|
onClick: a
|
|
2441
|
-
},
|
|
2442
|
-
|
|
2547
|
+
}, Q(e.field.label), 3),
|
|
2548
|
+
q("td", {
|
|
2443
2549
|
class: "q-property-list__cell",
|
|
2444
2550
|
onClick: a
|
|
2445
2551
|
}, [
|
|
2446
|
-
p(
|
|
2447
|
-
e.field.component ? (r(), f("div",
|
|
2448
|
-
(r(), B(
|
|
2552
|
+
p(_.$slots, "default", {}, () => [
|
|
2553
|
+
e.field.component ? (r(), f("div", Jl, [
|
|
2554
|
+
(r(), B(Se(e.field.component), H(u.value, {
|
|
2449
2555
|
"model-value": e.field.props.modelValue,
|
|
2450
2556
|
"onUpdate:modelValue": i
|
|
2451
2557
|
}), null, 16, ["model-value"]))
|
|
@@ -2454,94 +2560,94 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2454
2560
|
])
|
|
2455
2561
|
], 34));
|
|
2456
2562
|
}
|
|
2457
|
-
}),
|
|
2563
|
+
}), to = ["data-key", "aria-labelledby"], no = ["id"], lo = { class: "q-property-list-group__content" }, oo = /* @__PURE__ */ C({
|
|
2458
2564
|
__name: "QPropertyListGroup",
|
|
2459
2565
|
props: {
|
|
2460
2566
|
id: {},
|
|
2461
2567
|
title: {},
|
|
2462
2568
|
noToggle: { type: Boolean, default: !1 },
|
|
2463
|
-
icons: { default: () =>
|
|
2569
|
+
icons: { default: () => pt },
|
|
2464
2570
|
texts: {}
|
|
2465
2571
|
},
|
|
2466
2572
|
emits: ["toggle-group"],
|
|
2467
|
-
setup(
|
|
2468
|
-
const e =
|
|
2573
|
+
setup(n, { emit: t }) {
|
|
2574
|
+
const e = n, l = t, o = A(!0), s = ue(), d = y(() => o.value ? e.icons.open : e.icons.close), a = y(() => [
|
|
2469
2575
|
"q-property-list-group",
|
|
2470
2576
|
{
|
|
2471
2577
|
"q-property-list-group--no-toggle": e.noToggle
|
|
2472
2578
|
}
|
|
2473
2579
|
]);
|
|
2474
2580
|
function i() {
|
|
2475
|
-
e.noToggle || (
|
|
2581
|
+
e.noToggle || (o.value = !o.value, l("toggle-group", e.id));
|
|
2476
2582
|
}
|
|
2477
|
-
return (
|
|
2478
|
-
class:
|
|
2583
|
+
return (u, _) => (r(), f("tr", {
|
|
2584
|
+
class: T(a.value),
|
|
2479
2585
|
role: "group",
|
|
2480
2586
|
"data-key": e.id,
|
|
2481
|
-
"aria-labelledby":
|
|
2587
|
+
"aria-labelledby": m(s),
|
|
2482
2588
|
onClick: i
|
|
2483
2589
|
}, [
|
|
2484
|
-
|
|
2485
|
-
id:
|
|
2590
|
+
q("td", {
|
|
2591
|
+
id: m(s),
|
|
2486
2592
|
colspan: "2"
|
|
2487
2593
|
}, [
|
|
2488
|
-
|
|
2489
|
-
e.noToggle ? b("", !0) : (r(), B(
|
|
2594
|
+
q("div", lo, [
|
|
2595
|
+
e.noToggle ? b("", !0) : (r(), B(m(se), {
|
|
2490
2596
|
key: 0,
|
|
2491
2597
|
"b-style": "tertiary",
|
|
2492
2598
|
borderless: "",
|
|
2493
2599
|
onClick: i
|
|
2494
2600
|
}, {
|
|
2495
2601
|
default: k(() => [
|
|
2496
|
-
|
|
2602
|
+
D(m(O), Y(oe(d.value)), null, 16)
|
|
2497
2603
|
]),
|
|
2498
2604
|
_: 1
|
|
2499
2605
|
})),
|
|
2500
|
-
de(" " +
|
|
2606
|
+
de(" " + Q(e.title), 1)
|
|
2501
2607
|
])
|
|
2502
|
-
], 8,
|
|
2503
|
-
], 10,
|
|
2608
|
+
], 8, no)
|
|
2609
|
+
], 10, to));
|
|
2504
2610
|
}
|
|
2505
|
-
}),
|
|
2611
|
+
}), so = { class: "q-property-list-panel__container" }, ao = { class: "q-property-list-panel__label" }, io = { class: "q-property-list-panel__description" }, ro = {
|
|
2506
2612
|
key: 1,
|
|
2507
2613
|
class: "q-property-list-panel__empty"
|
|
2508
|
-
},
|
|
2614
|
+
}, uo = /* @__PURE__ */ C({
|
|
2509
2615
|
__name: "QPropertyListPanel",
|
|
2510
2616
|
props: {
|
|
2511
2617
|
field: { default: void 0 },
|
|
2512
2618
|
icons: {},
|
|
2513
|
-
texts: { default: () =>
|
|
2619
|
+
texts: { default: () => ft }
|
|
2514
2620
|
},
|
|
2515
|
-
setup(
|
|
2516
|
-
const t =
|
|
2517
|
-
return (e, l) => (r(), f("div",
|
|
2621
|
+
setup(n) {
|
|
2622
|
+
const t = n;
|
|
2623
|
+
return (e, l) => (r(), f("div", so, [
|
|
2518
2624
|
t.field ? p(e.$slots, "default", { key: 0 }, () => [
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
]) : (r(), f("div",
|
|
2625
|
+
q("div", ao, Q(t.field.label), 1),
|
|
2626
|
+
q("div", io, Q(t.field.description), 1)
|
|
2627
|
+
]) : (r(), f("div", ro, Q(t.texts.emptyMessage), 1))
|
|
2522
2628
|
]));
|
|
2523
2629
|
}
|
|
2524
|
-
}),
|
|
2630
|
+
}), co = I(Zl), mt = I(eo), ht = I(oo), yt = I(uo), fo = {
|
|
2525
2631
|
placeholder: "Choose...",
|
|
2526
2632
|
clearValue: "Clear value",
|
|
2527
2633
|
showOptions: "Show options"
|
|
2528
|
-
},
|
|
2634
|
+
}, po = {
|
|
2529
2635
|
chevron: {
|
|
2530
2636
|
icon: "chevron-down"
|
|
2531
2637
|
},
|
|
2532
2638
|
clear: {
|
|
2533
2639
|
icon: "close"
|
|
2534
2640
|
}
|
|
2535
|
-
},
|
|
2641
|
+
}, mo = {
|
|
2536
2642
|
key: 0,
|
|
2537
2643
|
class: "q-select__value"
|
|
2538
|
-
},
|
|
2644
|
+
}, ho = {
|
|
2539
2645
|
key: 1,
|
|
2540
2646
|
class: "q-select__placeholder"
|
|
2541
|
-
},
|
|
2647
|
+
}, yo = ["data-key"], vo = {
|
|
2542
2648
|
key: 0,
|
|
2543
2649
|
class: "q-select__loader"
|
|
2544
|
-
},
|
|
2650
|
+
}, bo = /* @__PURE__ */ C({
|
|
2545
2651
|
inheritAttrs: !1,
|
|
2546
2652
|
__name: "QSelect",
|
|
2547
2653
|
props: /* @__PURE__ */ G({
|
|
@@ -2559,8 +2665,8 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2559
2665
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
2560
2666
|
size: { default: void 0 },
|
|
2561
2667
|
class: { default: "" },
|
|
2562
|
-
icons: { default: () =>
|
|
2563
|
-
texts: { default: () =>
|
|
2668
|
+
icons: { default: () => po },
|
|
2669
|
+
texts: { default: () => fo }
|
|
2564
2670
|
}, {
|
|
2565
2671
|
modelValue: {
|
|
2566
2672
|
type: [String, Number, Boolean, Symbol]
|
|
@@ -2568,44 +2674,44 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2568
2674
|
modelModifiers: {}
|
|
2569
2675
|
}),
|
|
2570
2676
|
emits: /* @__PURE__ */ G(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
2571
|
-
setup(
|
|
2572
|
-
const e =
|
|
2677
|
+
setup(n, { emit: t }) {
|
|
2678
|
+
const e = n, l = t, o = X(n, "modelValue"), s = A(!1), d = A(""), a = A(null), i = A(null), u = A(null), _ = y(() => w.value === void 0), w = y(
|
|
2573
2679
|
() => {
|
|
2574
|
-
var
|
|
2575
|
-
return (
|
|
2680
|
+
var h;
|
|
2681
|
+
return (h = e.items) == null ? void 0 : h.find(($) => $[e.itemValue] === o.value);
|
|
2576
2682
|
}
|
|
2577
|
-
),
|
|
2578
|
-
() =>
|
|
2579
|
-
),
|
|
2683
|
+
), N = y(
|
|
2684
|
+
() => w.value ? w.value[e.itemLabel] : ""
|
|
2685
|
+
), z = y(
|
|
2580
2686
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
2581
2687
|
);
|
|
2582
|
-
function
|
|
2583
|
-
|
|
2688
|
+
function V(h) {
|
|
2689
|
+
o.value = h, M();
|
|
2584
2690
|
}
|
|
2585
2691
|
function g() {
|
|
2586
|
-
|
|
2692
|
+
z.value && (V(e.emptyValue), te());
|
|
2587
2693
|
}
|
|
2588
|
-
function E(
|
|
2589
|
-
var
|
|
2590
|
-
!((
|
|
2694
|
+
function E(h) {
|
|
2695
|
+
var $, K, re;
|
|
2696
|
+
!(($ = u.value) != null && $.contains(h.relatedTarget)) && !((re = (K = a.value) == null ? void 0 : K.fieldRef) != null && re.contains(h.relatedTarget)) && M();
|
|
2591
2697
|
}
|
|
2592
2698
|
function P() {
|
|
2593
2699
|
s.value || (l("before-show"), s.value = !0);
|
|
2594
2700
|
}
|
|
2595
|
-
function
|
|
2701
|
+
function M() {
|
|
2596
2702
|
s.value && (l("before-hide"), s.value = !1);
|
|
2597
2703
|
}
|
|
2598
|
-
function
|
|
2599
|
-
e.readonly || e.disabled || (s.value ?
|
|
2704
|
+
function j() {
|
|
2705
|
+
e.readonly || e.disabled || (s.value ? M() : P());
|
|
2600
2706
|
}
|
|
2601
2707
|
let ae;
|
|
2602
|
-
function Z(
|
|
2603
|
-
if (!(!
|
|
2604
|
-
if (window.clearTimeout(ae), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
2605
|
-
d.value +=
|
|
2606
|
-
for (let
|
|
2607
|
-
if (e.items[
|
|
2608
|
-
|
|
2708
|
+
function Z(h) {
|
|
2709
|
+
if (!(!h.key || e.readonly || e.disabled)) {
|
|
2710
|
+
if (window.clearTimeout(ae), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(h.key) && (h.preventDefault(), h.stopPropagation()), ["Enter", " "].includes(h.key) && (s.value = !0), ["Escape", "Tab"].includes(h.key) && (s.value ? s.value = !1 : z.value && h.key === "Escape" && g()), h.key === "Delete" && e.clearable && g(), /^[a-z]$/i.test(h.key)) {
|
|
2711
|
+
d.value += h.key.toLowerCase();
|
|
2712
|
+
for (let $ = 0; $ < e.items.length; $++)
|
|
2713
|
+
if (e.items[$][e.itemLabel].toLowerCase().startsWith(d.value)) {
|
|
2714
|
+
S($);
|
|
2609
2715
|
break;
|
|
2610
2716
|
}
|
|
2611
2717
|
}
|
|
@@ -2615,38 +2721,38 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2615
2721
|
}
|
|
2616
2722
|
}
|
|
2617
2723
|
function ie() {
|
|
2618
|
-
var
|
|
2619
|
-
e.loading ? (
|
|
2724
|
+
var h;
|
|
2725
|
+
e.loading ? (h = u.value) == null || h.focus() : v(), l("show");
|
|
2620
2726
|
}
|
|
2621
2727
|
function R() {
|
|
2622
2728
|
te(), l("hide");
|
|
2623
2729
|
}
|
|
2624
2730
|
function te() {
|
|
2625
|
-
var
|
|
2626
|
-
(
|
|
2731
|
+
var h, $;
|
|
2732
|
+
($ = (h = a.value) == null ? void 0 : h.fieldRef) == null || $.focus();
|
|
2627
2733
|
}
|
|
2628
|
-
function
|
|
2629
|
-
var
|
|
2630
|
-
(
|
|
2734
|
+
function v() {
|
|
2735
|
+
var h;
|
|
2736
|
+
(h = i.value) == null || h.$el.focus();
|
|
2631
2737
|
}
|
|
2632
|
-
function
|
|
2633
|
-
var
|
|
2634
|
-
(
|
|
2738
|
+
function S(h) {
|
|
2739
|
+
var $;
|
|
2740
|
+
($ = i.value) == null || $.focusItem(h);
|
|
2635
2741
|
}
|
|
2636
2742
|
return ee(
|
|
2637
2743
|
() => e.loading,
|
|
2638
|
-
(
|
|
2639
|
-
!
|
|
2744
|
+
(h) => {
|
|
2745
|
+
!h && s.value && le(v);
|
|
2640
2746
|
}
|
|
2641
|
-
), (
|
|
2642
|
-
var
|
|
2643
|
-
return r(), f(
|
|
2644
|
-
|
|
2747
|
+
), (h, $) => {
|
|
2748
|
+
var K, re;
|
|
2749
|
+
return r(), f(U, null, [
|
|
2750
|
+
D(m(Le), H({
|
|
2645
2751
|
id: e.id,
|
|
2646
|
-
label: e.label,
|
|
2647
|
-
required: e.required,
|
|
2648
2752
|
ref_key: "triggerEl",
|
|
2649
2753
|
ref: a,
|
|
2754
|
+
label: e.label,
|
|
2755
|
+
required: e.required,
|
|
2650
2756
|
role: "combobox",
|
|
2651
2757
|
tabindex: e.disabled ? -1 : 0,
|
|
2652
2758
|
class: [
|
|
@@ -2664,13 +2770,13 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2664
2770
|
"aria-expanded": s.value,
|
|
2665
2771
|
"aria-haspopup": "listbox",
|
|
2666
2772
|
size: e.size
|
|
2667
|
-
},
|
|
2668
|
-
onClick:
|
|
2773
|
+
}, h.$attrs, {
|
|
2774
|
+
onClick: j,
|
|
2669
2775
|
onKeydown: fe(Z, ["stop"])
|
|
2670
|
-
}),
|
|
2776
|
+
}), Be({
|
|
2671
2777
|
append: k(() => [
|
|
2672
|
-
p(
|
|
2673
|
-
|
|
2778
|
+
p(h.$slots, "append"),
|
|
2779
|
+
z.value && o.value ? (r(), B(m(se), {
|
|
2674
2780
|
key: 0,
|
|
2675
2781
|
class: "q-select__clear",
|
|
2676
2782
|
"aria-label": e.texts.clearValue,
|
|
@@ -2680,11 +2786,11 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2680
2786
|
onClick: g
|
|
2681
2787
|
}, {
|
|
2682
2788
|
default: k(() => [
|
|
2683
|
-
|
|
2789
|
+
D(m(O), Y(oe(e.icons.clear)), null, 16)
|
|
2684
2790
|
]),
|
|
2685
2791
|
_: 1
|
|
2686
2792
|
}, 8, ["aria-label"])) : b("", !0),
|
|
2687
|
-
e.readonly ? b("", !0) : (r(), B(
|
|
2793
|
+
e.readonly ? b("", !0) : (r(), B(m(se), {
|
|
2688
2794
|
key: 1,
|
|
2689
2795
|
class: "q-select__chevron",
|
|
2690
2796
|
"aria-label": e.texts.showOptions,
|
|
@@ -2692,45 +2798,45 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2692
2798
|
borderless: "",
|
|
2693
2799
|
tabindex: "-1",
|
|
2694
2800
|
disabled: e.disabled,
|
|
2695
|
-
onClick:
|
|
2801
|
+
onClick: j
|
|
2696
2802
|
}, {
|
|
2697
2803
|
default: k(() => [
|
|
2698
|
-
|
|
2804
|
+
D(m(O), Y(oe(e.icons.chevron)), null, 16)
|
|
2699
2805
|
]),
|
|
2700
2806
|
_: 1
|
|
2701
2807
|
}, 8, ["aria-label", "disabled"]))
|
|
2702
2808
|
]),
|
|
2703
2809
|
default: k(() => [
|
|
2704
|
-
|
|
2705
|
-
!e.readonly && !e.disabled ? (r(), f(
|
|
2706
|
-
de(
|
|
2810
|
+
_.value ? (r(), f("span", ho, [
|
|
2811
|
+
!e.readonly && !e.disabled ? (r(), f(U, { key: 0 }, [
|
|
2812
|
+
de(Q(e.texts.placeholder), 1)
|
|
2707
2813
|
], 64)) : b("", !0)
|
|
2708
|
-
])) : (r(), f("span",
|
|
2814
|
+
])) : (r(), f("span", mo, Q(N.value), 1))
|
|
2709
2815
|
]),
|
|
2710
2816
|
_: 2
|
|
2711
2817
|
}, [
|
|
2712
|
-
(
|
|
2818
|
+
(K = w.value) != null && K.icon || h.$slots.prepend ? {
|
|
2713
2819
|
name: "prepend",
|
|
2714
2820
|
fn: k(() => {
|
|
2715
|
-
var
|
|
2821
|
+
var ne, ce;
|
|
2716
2822
|
return [
|
|
2717
|
-
p(
|
|
2718
|
-
(
|
|
2823
|
+
p(h.$slots, "prepend"),
|
|
2824
|
+
(ne = w.value) != null && ne.icon ? (r(), B(m(O), Y(H({ key: 0 }, (ce = w.value) == null ? void 0 : ce.icon)), null, 16)) : b("", !0)
|
|
2719
2825
|
];
|
|
2720
2826
|
}),
|
|
2721
2827
|
key: "0"
|
|
2722
2828
|
} : void 0,
|
|
2723
|
-
|
|
2829
|
+
h.$slots.extras ? {
|
|
2724
2830
|
name: "extras",
|
|
2725
2831
|
fn: k(() => [
|
|
2726
|
-
p(
|
|
2832
|
+
p(h.$slots, "extras")
|
|
2727
2833
|
]),
|
|
2728
2834
|
key: "1"
|
|
2729
2835
|
} : void 0
|
|
2730
2836
|
]), 1040, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
|
|
2731
|
-
|
|
2837
|
+
D(m(be), {
|
|
2732
2838
|
modelValue: s.value,
|
|
2733
|
-
"onUpdate:modelValue":
|
|
2839
|
+
"onUpdate:modelValue": $[0] || ($[0] = (ne) => s.value = ne),
|
|
2734
2840
|
spy: "",
|
|
2735
2841
|
trigger: "manual",
|
|
2736
2842
|
placement: "bottom-start",
|
|
@@ -2742,9 +2848,9 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2742
2848
|
onLeave: R
|
|
2743
2849
|
}, {
|
|
2744
2850
|
default: k(() => [
|
|
2745
|
-
|
|
2851
|
+
q("div", {
|
|
2746
2852
|
ref_key: "contentRef",
|
|
2747
|
-
ref:
|
|
2853
|
+
ref: u,
|
|
2748
2854
|
"data-testid": "combobox-dropdown",
|
|
2749
2855
|
"data-key": e.id,
|
|
2750
2856
|
class: "q-select__body",
|
|
@@ -2752,71 +2858,71 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2752
2858
|
onFocusout: E,
|
|
2753
2859
|
onKeydown: fe(Z, ["stop"])
|
|
2754
2860
|
}, [
|
|
2755
|
-
p(
|
|
2756
|
-
e.loading ? (r(), f("div",
|
|
2757
|
-
|
|
2758
|
-
])) : (r(), B(
|
|
2861
|
+
p(h.$slots, "body.prepend"),
|
|
2862
|
+
e.loading ? (r(), f("div", vo, [
|
|
2863
|
+
D(m($e), { size: 24 })
|
|
2864
|
+
])) : (r(), B(m(Ue), {
|
|
2759
2865
|
key: 1,
|
|
2760
2866
|
ref_key: "listRef",
|
|
2761
2867
|
ref: i,
|
|
2762
2868
|
class: "q-select__items",
|
|
2763
2869
|
selectable: "",
|
|
2764
|
-
"model-value":
|
|
2870
|
+
"model-value": o.value,
|
|
2765
2871
|
items: e.items,
|
|
2766
|
-
groups:
|
|
2872
|
+
groups: h.groups,
|
|
2767
2873
|
"item-label": e.itemLabel,
|
|
2768
2874
|
"item-value": e.itemValue,
|
|
2769
|
-
"onUpdate:modelValue":
|
|
2875
|
+
"onUpdate:modelValue": V
|
|
2770
2876
|
}, {
|
|
2771
|
-
item: k(({ item:
|
|
2772
|
-
p(
|
|
2877
|
+
item: k(({ item: ne }) => [
|
|
2878
|
+
p(h.$slots, "item", { item: ne })
|
|
2773
2879
|
]),
|
|
2774
2880
|
_: 3
|
|
2775
2881
|
}, 8, ["model-value", "items", "groups", "item-label", "item-value"])),
|
|
2776
|
-
p(
|
|
2777
|
-
], 40,
|
|
2882
|
+
p(h.$slots, "body.append")
|
|
2883
|
+
], 40, yo)
|
|
2778
2884
|
]),
|
|
2779
2885
|
_: 3
|
|
2780
2886
|
}, 8, ["modelValue", "anchor"])
|
|
2781
2887
|
], 64);
|
|
2782
2888
|
};
|
|
2783
2889
|
}
|
|
2784
|
-
}),
|
|
2890
|
+
}), go = I(bo), _o = /* @__PURE__ */ C({
|
|
2785
2891
|
__name: "QSkeletonLoader",
|
|
2786
2892
|
props: {
|
|
2787
2893
|
type: { default: void 0 },
|
|
2788
2894
|
width: { default: void 0 },
|
|
2789
2895
|
height: { default: void 0 }
|
|
2790
2896
|
},
|
|
2791
|
-
setup(
|
|
2792
|
-
const t =
|
|
2793
|
-
const
|
|
2897
|
+
setup(n) {
|
|
2898
|
+
const t = n, e = y(() => t.type ? `q-skeleton-loader--${t.type}` : void 0), l = y(() => {
|
|
2899
|
+
const o = typeof t.width == "number" ? `${t.width}px` : t.width, s = typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
2794
2900
|
return {
|
|
2795
|
-
width:
|
|
2901
|
+
width: o,
|
|
2796
2902
|
height: s
|
|
2797
2903
|
};
|
|
2798
2904
|
});
|
|
2799
|
-
return (
|
|
2800
|
-
class:
|
|
2905
|
+
return (o, s) => (r(), f("div", {
|
|
2906
|
+
class: T(["q-skeleton-loader", e.value]),
|
|
2801
2907
|
style: pe(l.value)
|
|
2802
2908
|
}, s[0] || (s[0] = [
|
|
2803
|
-
|
|
2909
|
+
q("div", { class: "q-skeleton-loader__bone" }, null, -1)
|
|
2804
2910
|
]), 6));
|
|
2805
2911
|
}
|
|
2806
|
-
}),
|
|
2912
|
+
}), $o = I(_o), ko = /* @__PURE__ */ C({
|
|
2807
2913
|
__name: "QThemeProvider",
|
|
2808
2914
|
props: {
|
|
2809
2915
|
theme: {}
|
|
2810
2916
|
},
|
|
2811
|
-
setup(
|
|
2812
|
-
const t =
|
|
2917
|
+
setup(n) {
|
|
2918
|
+
const t = n;
|
|
2813
2919
|
return (e, l) => (r(), f("div", {
|
|
2814
|
-
class:
|
|
2920
|
+
class: T(["q-theme-provider", `q-theme--${t.theme}`])
|
|
2815
2921
|
}, [
|
|
2816
2922
|
p(e.$slots, "default")
|
|
2817
2923
|
], 2));
|
|
2818
2924
|
}
|
|
2819
|
-
}),
|
|
2925
|
+
}), wo = I(ko), qo = ["innerHTML"], xo = /* @__PURE__ */ C({
|
|
2820
2926
|
__name: "QTooltip",
|
|
2821
2927
|
props: /* @__PURE__ */ G({
|
|
2822
2928
|
id: { default: void 0 },
|
|
@@ -2838,167 +2944,167 @@ const Ro = ["role"], Go = /* @__PURE__ */ I({
|
|
|
2838
2944
|
modelModifiers: {}
|
|
2839
2945
|
}),
|
|
2840
2946
|
emits: ["update:modelValue"],
|
|
2841
|
-
setup(
|
|
2842
|
-
const t =
|
|
2843
|
-
return (
|
|
2844
|
-
p(
|
|
2845
|
-
props: { "aria-describedby":
|
|
2947
|
+
setup(n) {
|
|
2948
|
+
const t = n, e = X(n, "modelValue"), l = ue(t.id);
|
|
2949
|
+
return (o, s) => (r(), f(U, null, [
|
|
2950
|
+
p(o.$slots, "anchor", {
|
|
2951
|
+
props: { "aria-describedby": m(l) }
|
|
2846
2952
|
}),
|
|
2847
|
-
|
|
2953
|
+
D(m(be), {
|
|
2954
|
+
id: m(l),
|
|
2848
2955
|
"model-value": e.value,
|
|
2849
2956
|
anchor: t.anchor,
|
|
2850
2957
|
role: "tooltip",
|
|
2851
2958
|
"non-modal": "",
|
|
2852
|
-
id: v(l),
|
|
2853
2959
|
appearance: t.appearance,
|
|
2854
2960
|
arrow: t.arrow,
|
|
2855
2961
|
attach: t.attach,
|
|
2856
2962
|
inline: t.inline,
|
|
2857
|
-
class:
|
|
2963
|
+
class: T(["q-tooltip", t.class]),
|
|
2858
2964
|
delay: t.delay,
|
|
2859
2965
|
disabled: t.disabled,
|
|
2860
2966
|
placement: t.placement,
|
|
2861
2967
|
trigger: t.trigger
|
|
2862
2968
|
}, {
|
|
2863
2969
|
default: k(() => [
|
|
2864
|
-
p(
|
|
2865
|
-
t.icon ? (r(), B(
|
|
2970
|
+
p(o.$slots, "default", {}, () => [
|
|
2971
|
+
t.icon ? (r(), B(m(O), Y(H({ key: 0 }, t.icon)), null, 16)) : b("", !0),
|
|
2866
2972
|
t.html ? (r(), f("span", {
|
|
2867
2973
|
key: 1,
|
|
2868
2974
|
innerHTML: t.text
|
|
2869
|
-
}, null, 8,
|
|
2870
|
-
de(
|
|
2975
|
+
}, null, 8, qo)) : (r(), f(U, { key: 2 }, [
|
|
2976
|
+
de(Q(t.text), 1)
|
|
2871
2977
|
], 64))
|
|
2872
2978
|
])
|
|
2873
2979
|
]),
|
|
2874
2980
|
_: 3
|
|
2875
|
-
}, 8, ["model-value", "anchor", "
|
|
2981
|
+
}, 8, ["id", "model-value", "anchor", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
|
|
2876
2982
|
], 64));
|
|
2877
2983
|
}
|
|
2878
|
-
}),
|
|
2984
|
+
}), So = I(xo), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2879
2985
|
__proto__: null,
|
|
2880
|
-
QAccordion:
|
|
2881
|
-
QBadge:
|
|
2986
|
+
QAccordion: It,
|
|
2987
|
+
QBadge: Yt,
|
|
2882
2988
|
QButton: se,
|
|
2883
|
-
QButtonGroup:
|
|
2884
|
-
QButtonToggle:
|
|
2885
|
-
QCard:
|
|
2886
|
-
QCheckbox:
|
|
2887
|
-
QCollapsible:
|
|
2888
|
-
QCombobox:
|
|
2889
|
-
QDialog:
|
|
2890
|
-
QField:
|
|
2989
|
+
QButtonGroup: it,
|
|
2990
|
+
QButtonToggle: en,
|
|
2991
|
+
QCard: rt,
|
|
2992
|
+
QCheckbox: vn,
|
|
2993
|
+
QCollapsible: Bn,
|
|
2994
|
+
QCombobox: wl,
|
|
2995
|
+
QDialog: Dl,
|
|
2996
|
+
QField: Le,
|
|
2891
2997
|
QIcon: O,
|
|
2892
|
-
QIconFont:
|
|
2893
|
-
QIconImg:
|
|
2894
|
-
QIconSvg:
|
|
2895
|
-
QInputGroup:
|
|
2896
|
-
QLineLoader:
|
|
2897
|
-
QList:
|
|
2898
|
-
QListItem:
|
|
2899
|
-
QListItemGroup:
|
|
2900
|
-
QOverlay:
|
|
2901
|
-
QPopover:
|
|
2902
|
-
QPropertyList:
|
|
2903
|
-
QPropertyListGroup:
|
|
2904
|
-
QPropertyListPanel:
|
|
2905
|
-
QPropertyListRow:
|
|
2906
|
-
QSelect:
|
|
2907
|
-
QSkeletonLoader:
|
|
2908
|
-
QSpinnerLoader:
|
|
2909
|
-
QTextField:
|
|
2910
|
-
QThemeProvider:
|
|
2911
|
-
QTooltip:
|
|
2912
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2913
|
-
function
|
|
2914
|
-
const
|
|
2915
|
-
if (!
|
|
2998
|
+
QIconFont: lt,
|
|
2999
|
+
QIconImg: ot,
|
|
3000
|
+
QIconSvg: st,
|
|
3001
|
+
QInputGroup: Ul,
|
|
3002
|
+
QLineLoader: Rl,
|
|
3003
|
+
QList: Ue,
|
|
3004
|
+
QListItem: dt,
|
|
3005
|
+
QListItemGroup: ut,
|
|
3006
|
+
QOverlay: be,
|
|
3007
|
+
QPopover: Xl,
|
|
3008
|
+
QPropertyList: co,
|
|
3009
|
+
QPropertyListGroup: ht,
|
|
3010
|
+
QPropertyListPanel: yt,
|
|
3011
|
+
QPropertyListRow: mt,
|
|
3012
|
+
QSelect: go,
|
|
3013
|
+
QSkeletonLoader: $o,
|
|
3014
|
+
QSpinnerLoader: $e,
|
|
3015
|
+
QTextField: ct,
|
|
3016
|
+
QThemeProvider: wo,
|
|
3017
|
+
QTooltip: So
|
|
3018
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = "q-theme";
|
|
3019
|
+
function Lo() {
|
|
3020
|
+
const n = ze(_e);
|
|
3021
|
+
if (!n)
|
|
2916
3022
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
2917
|
-
return
|
|
3023
|
+
return n;
|
|
2918
3024
|
}
|
|
2919
|
-
function
|
|
2920
|
-
const t =
|
|
2921
|
-
activeTheme: A(
|
|
3025
|
+
function Do(n) {
|
|
3026
|
+
const t = Lo(), e = {
|
|
3027
|
+
activeTheme: A(n),
|
|
2922
3028
|
themes: t.themes
|
|
2923
3029
|
};
|
|
2924
|
-
return
|
|
3030
|
+
return De(_e, e), e;
|
|
2925
3031
|
}
|
|
2926
|
-
function
|
|
2927
|
-
let
|
|
2928
|
-
|
|
3032
|
+
function Co() {
|
|
3033
|
+
let n = document.getElementById(
|
|
3034
|
+
_e
|
|
2929
3035
|
);
|
|
2930
|
-
return
|
|
3036
|
+
return n || (n = document.createElement("style"), n.id = _e, document.head.appendChild(n)), n;
|
|
2931
3037
|
}
|
|
2932
|
-
function
|
|
3038
|
+
function Io(n) {
|
|
2933
3039
|
let t = "";
|
|
2934
|
-
for (const l of
|
|
3040
|
+
for (const l of n) {
|
|
2935
3041
|
t += `.q-theme--${l.name} {
|
|
2936
3042
|
`;
|
|
2937
|
-
const
|
|
3043
|
+
const o = l.scheme;
|
|
2938
3044
|
let s;
|
|
2939
|
-
for (s in
|
|
2940
|
-
const d =
|
|
3045
|
+
for (s in o) {
|
|
3046
|
+
const d = o[s];
|
|
2941
3047
|
if (d) {
|
|
2942
|
-
t += ` ${
|
|
3048
|
+
t += ` ${Ye(s)}: ${d};
|
|
2943
3049
|
`;
|
|
2944
|
-
const a =
|
|
2945
|
-
t += ` ${
|
|
3050
|
+
const a = at(d);
|
|
3051
|
+
t += ` ${Ye(s)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
2946
3052
|
`;
|
|
2947
3053
|
}
|
|
2948
3054
|
}
|
|
2949
3055
|
t += `}
|
|
2950
3056
|
`;
|
|
2951
3057
|
}
|
|
2952
|
-
const e =
|
|
3058
|
+
const e = Co();
|
|
2953
3059
|
e.textContent = t;
|
|
2954
3060
|
}
|
|
2955
|
-
function
|
|
2956
|
-
return
|
|
3061
|
+
function Ye(n) {
|
|
3062
|
+
return n ? `--q-theme-${nt(n)}` : "";
|
|
2957
3063
|
}
|
|
2958
|
-
function
|
|
3064
|
+
function To(n = {}) {
|
|
2959
3065
|
return { install: (e) => {
|
|
2960
|
-
const l =
|
|
3066
|
+
const l = n.components || {};
|
|
2961
3067
|
for (const s in l)
|
|
2962
3068
|
e.component(s, l[s]);
|
|
2963
|
-
const
|
|
2964
|
-
e.provide(
|
|
3069
|
+
const o = n.defaults || {};
|
|
3070
|
+
e.provide(Oe, A(o)), Vo(e, n.themes);
|
|
2965
3071
|
} };
|
|
2966
3072
|
}
|
|
2967
|
-
function
|
|
3073
|
+
function Vo(n, t) {
|
|
2968
3074
|
const e = [];
|
|
2969
3075
|
let l;
|
|
2970
3076
|
if (!t)
|
|
2971
3077
|
l = "default", e.push({
|
|
2972
3078
|
name: l,
|
|
2973
3079
|
mode: "light",
|
|
2974
|
-
scheme:
|
|
3080
|
+
scheme: Ee
|
|
2975
3081
|
});
|
|
2976
3082
|
else
|
|
2977
|
-
for (const
|
|
2978
|
-
const d = { ...
|
|
3083
|
+
for (const o of t.themes) {
|
|
3084
|
+
const d = { ...o.mode === "light" ? Ee : Je, ...o.colors };
|
|
2979
3085
|
e.push({
|
|
2980
|
-
name:
|
|
2981
|
-
mode:
|
|
3086
|
+
name: o.name,
|
|
3087
|
+
mode: o.mode,
|
|
2982
3088
|
scheme: d
|
|
2983
|
-
}),
|
|
3089
|
+
}), o.name === t.defaultTheme && (l = o.name);
|
|
2984
3090
|
}
|
|
2985
3091
|
if (l) {
|
|
2986
|
-
const
|
|
3092
|
+
const o = {
|
|
2987
3093
|
activeTheme: A(l),
|
|
2988
3094
|
themes: e
|
|
2989
3095
|
};
|
|
2990
|
-
|
|
3096
|
+
Io(e), ee(o.activeTheme, Ao, { immediate: !0 }), n.provide(_e, o);
|
|
2991
3097
|
}
|
|
2992
3098
|
}
|
|
2993
|
-
function
|
|
2994
|
-
const t = document.documentElement, l = Array.from(t.classList).filter((
|
|
2995
|
-
t.className = l.join(" "), t.classList.add(`q-theme--${
|
|
3099
|
+
function Ao(n) {
|
|
3100
|
+
const t = document.documentElement, l = Array.from(t.classList).filter((o) => !o.startsWith("q-theme"));
|
|
3101
|
+
t.className = l.join(" "), t.classList.add(`q-theme--${n}`);
|
|
2996
3102
|
}
|
|
2997
|
-
const
|
|
3103
|
+
const zo = (n = {}) => To({ components: Bo, ...n });
|
|
2998
3104
|
export {
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3105
|
+
Bo as components,
|
|
3106
|
+
zo as createFramework,
|
|
3107
|
+
Do as provideTheme,
|
|
3108
|
+
Qo as templates,
|
|
3109
|
+
Lo as useTheme
|
|
3004
3110
|
};
|