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