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