shared-ritm 1.0.4 → 1.0.6
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/shared-ritm.es.js +1742 -0
- package/dist/shared-ritm.umd.js +1 -126
- package/dist/style.css +1 -0
- package/package.json +28 -18
- package/dist/demo.html +0 -1
- package/dist/shared-ritm.common.js +0 -126
- package/dist/shared-ritm.common.js.map +0 -1
- package/dist/shared-ritm.umd.js.map +0 -1
- package/dist/shared-ritm.umd.min.js +0 -2
- package/dist/shared-ritm.umd.min.js.map +0 -1
|
@@ -0,0 +1,1742 @@
|
|
|
1
|
+
import { markRaw as Qe, defineComponent as ce, computed as g, h as w, ref as R, reactive as gt, getCurrentInstance as O, nextTick as ne, watch as H, onMounted as Ue, onBeforeUnmount as D, onUnmounted as pt, Teleport as bt, onDeactivated as Xe, unref as yt, Transition as Ye, withDirectives as wt, openBlock as Y, createBlock as te, mergeProps as xt, withCtx as fe, renderSlot as kt, createTextVNode as Te, toDisplayString as Be, createCommentVNode as qe, createElementBlock as St, createVNode as Et } from "vue";
|
|
2
|
+
function Ge(e, t, l, o) {
|
|
3
|
+
return Object.defineProperty(e, t, {
|
|
4
|
+
get: l,
|
|
5
|
+
set: o,
|
|
6
|
+
enumerable: !0
|
|
7
|
+
}), e;
|
|
8
|
+
}
|
|
9
|
+
function X(e) {
|
|
10
|
+
return Qe(ce(e));
|
|
11
|
+
}
|
|
12
|
+
function Tt(e) {
|
|
13
|
+
return Qe(e);
|
|
14
|
+
}
|
|
15
|
+
function Je(e, t) {
|
|
16
|
+
return e !== void 0 && e() || t;
|
|
17
|
+
}
|
|
18
|
+
function U(e, t) {
|
|
19
|
+
return e !== void 0 ? t.concat(e()) : t;
|
|
20
|
+
}
|
|
21
|
+
const Bt = ["top", "middle", "bottom"], qt = X({
|
|
22
|
+
name: "QBadge",
|
|
23
|
+
props: {
|
|
24
|
+
color: String,
|
|
25
|
+
textColor: String,
|
|
26
|
+
floating: Boolean,
|
|
27
|
+
transparent: Boolean,
|
|
28
|
+
multiLine: Boolean,
|
|
29
|
+
outline: Boolean,
|
|
30
|
+
rounded: Boolean,
|
|
31
|
+
label: [Number, String],
|
|
32
|
+
align: {
|
|
33
|
+
type: String,
|
|
34
|
+
validator: (e) => Bt.includes(e)
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(e, { slots: t }) {
|
|
38
|
+
const l = g(() => e.align !== void 0 ? { verticalAlign: e.align } : null), o = g(() => {
|
|
39
|
+
const n = e.outline === !0 && e.color || e.textColor;
|
|
40
|
+
return `q-badge flex inline items-center no-wrap q-badge--${e.multiLine === !0 ? "multi" : "single"}-line` + (e.outline === !0 ? " q-badge--outline" : e.color !== void 0 ? ` bg-${e.color}` : "") + (n !== void 0 ? ` text-${n}` : "") + (e.floating === !0 ? " q-badge--floating" : "") + (e.rounded === !0 ? " q-badge--rounded" : "") + (e.transparent === !0 ? " q-badge--transparent" : "");
|
|
41
|
+
});
|
|
42
|
+
return () => w("div", {
|
|
43
|
+
class: o.value,
|
|
44
|
+
style: l.value,
|
|
45
|
+
role: "status",
|
|
46
|
+
"aria-label": e.label
|
|
47
|
+
}, U(t.default, e.label !== void 0 ? [e.label] : []));
|
|
48
|
+
}
|
|
49
|
+
}), oe = R(
|
|
50
|
+
!1
|
|
51
|
+
);
|
|
52
|
+
let ge;
|
|
53
|
+
function Ct(e, t) {
|
|
54
|
+
const l = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
|
|
55
|
+
return {
|
|
56
|
+
browser: l[5] || l[3] || l[1] || "",
|
|
57
|
+
version: l[4] || l[2] || "0",
|
|
58
|
+
platform: t[0] || ""
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function $t(e) {
|
|
62
|
+
return /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(silk)/.exec(e) || /(android)/.exec(e) || /(win)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || /(playbook)/.exec(e) || /(bb)/.exec(e) || /(blackberry)/.exec(e) || [];
|
|
63
|
+
}
|
|
64
|
+
const Ze = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
65
|
+
function _t(e) {
|
|
66
|
+
const t = e.toLowerCase(), l = $t(t), o = Ct(t, l), n = {
|
|
67
|
+
mobile: !1,
|
|
68
|
+
desktop: !1,
|
|
69
|
+
cordova: !1,
|
|
70
|
+
capacitor: !1,
|
|
71
|
+
nativeMobile: !1,
|
|
72
|
+
// nativeMobileWrapper: void 0,
|
|
73
|
+
electron: !1,
|
|
74
|
+
bex: !1,
|
|
75
|
+
linux: !1,
|
|
76
|
+
mac: !1,
|
|
77
|
+
win: !1,
|
|
78
|
+
cros: !1,
|
|
79
|
+
chrome: !1,
|
|
80
|
+
firefox: !1,
|
|
81
|
+
opera: !1,
|
|
82
|
+
safari: !1,
|
|
83
|
+
vivaldi: !1,
|
|
84
|
+
edge: !1,
|
|
85
|
+
edgeChromium: !1,
|
|
86
|
+
ie: !1,
|
|
87
|
+
webkit: !1,
|
|
88
|
+
android: !1,
|
|
89
|
+
ios: !1,
|
|
90
|
+
ipad: !1,
|
|
91
|
+
iphone: !1,
|
|
92
|
+
ipod: !1,
|
|
93
|
+
kindle: !1,
|
|
94
|
+
winphone: !1,
|
|
95
|
+
blackberry: !1,
|
|
96
|
+
playbook: !1,
|
|
97
|
+
silk: !1
|
|
98
|
+
};
|
|
99
|
+
o.browser && (n[o.browser] = !0, n.version = o.version, n.versionNumber = parseInt(o.version, 10)), o.platform && (n[o.platform] = !0);
|
|
100
|
+
const r = n.android || n.ios || n.bb || n.blackberry || n.ipad || n.iphone || n.ipod || n.kindle || n.playbook || n.silk || n["windows phone"];
|
|
101
|
+
if (r === !0 || t.indexOf("mobile") !== -1 ? n.mobile = !0 : n.desktop = !0, n["windows phone"] && (n.winphone = !0, delete n["windows phone"]), n.edga || n.edgios || n.edg ? (n.edge = !0, o.browser = "edge") : n.crios ? (n.chrome = !0, o.browser = "chrome") : n.fxios && (n.firefox = !0, o.browser = "firefox"), (n.ipod || n.ipad || n.iphone) && (n.ios = !0), n.vivaldi && (o.browser = "vivaldi", n.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
|
|
102
|
+
(n.chrome || n.opr || n.safari || n.vivaldi || n.mobile === !0 && n.ios !== !0 && r !== !0) && (n.webkit = !0), n.opr && (o.browser = "opera", n.opera = !0), n.safari && (n.blackberry || n.bb ? (o.browser = "blackberry", n.blackberry = !0) : n.playbook ? (o.browser = "playbook", n.playbook = !0) : n.android ? (o.browser = "android", n.android = !0) : n.kindle ? (o.browser = "kindle", n.kindle = !0) : n.silk && (o.browser = "silk", n.silk = !0)), n.name = o.browser, n.platform = o.platform, t.indexOf("electron") !== -1)
|
|
103
|
+
n.electron = !0;
|
|
104
|
+
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
105
|
+
n.bex = !0;
|
|
106
|
+
else {
|
|
107
|
+
if (window.Capacitor !== void 0 ? (n.capacitor = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (n.cordova = !0, n.nativeMobile = !0, n.nativeMobileWrapper = "cordova"), oe.value === !0 && (ge = { is: { ...n } }), Ze === !0 && n.mac === !0 && (n.desktop === !0 && n.safari === !0 || n.nativeMobile === !0 && n.android !== !0 && n.ios !== !0 && n.ipad !== !0)) {
|
|
108
|
+
delete n.mac, delete n.desktop;
|
|
109
|
+
const a = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
110
|
+
Object.assign(n, {
|
|
111
|
+
mobile: !0,
|
|
112
|
+
ios: !0,
|
|
113
|
+
platform: a,
|
|
114
|
+
[a]: !0
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
n.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete n.desktop, n.mobile = !0);
|
|
118
|
+
}
|
|
119
|
+
return n;
|
|
120
|
+
}
|
|
121
|
+
const Ce = navigator.userAgent || navigator.vendor || window.opera, Pt = {
|
|
122
|
+
has: {
|
|
123
|
+
touch: !1,
|
|
124
|
+
webStorage: !1
|
|
125
|
+
},
|
|
126
|
+
within: { iframe: !1 }
|
|
127
|
+
}, le = {
|
|
128
|
+
userAgent: Ce,
|
|
129
|
+
is: _t(Ce),
|
|
130
|
+
has: {
|
|
131
|
+
touch: Ze
|
|
132
|
+
},
|
|
133
|
+
within: {
|
|
134
|
+
iframe: window.self !== window.top
|
|
135
|
+
}
|
|
136
|
+
}, pe = {
|
|
137
|
+
install(e) {
|
|
138
|
+
const { $q: t } = e;
|
|
139
|
+
oe.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
140
|
+
Object.assign(t.platform, le), oe.value = !1;
|
|
141
|
+
}), t.platform = gt(this)) : t.platform = this;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
{
|
|
145
|
+
let e;
|
|
146
|
+
Ge(le.has, "webStorage", () => {
|
|
147
|
+
if (e !== void 0)
|
|
148
|
+
return e;
|
|
149
|
+
try {
|
|
150
|
+
if (window.localStorage)
|
|
151
|
+
return e = !0, !0;
|
|
152
|
+
} catch {
|
|
153
|
+
}
|
|
154
|
+
return e = !1, !1;
|
|
155
|
+
}), Object.assign(pe, le), oe.value === !0 && (Object.assign(pe, ge, Pt), ge = null);
|
|
156
|
+
}
|
|
157
|
+
function be() {
|
|
158
|
+
if (window.getSelection !== void 0) {
|
|
159
|
+
const e = window.getSelection();
|
|
160
|
+
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), pe.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
161
|
+
} else document.selection !== void 0 && document.selection.empty();
|
|
162
|
+
}
|
|
163
|
+
const I = {
|
|
164
|
+
hasPassive: !1,
|
|
165
|
+
passiveCapture: !0,
|
|
166
|
+
notPassiveCapture: !0
|
|
167
|
+
};
|
|
168
|
+
try {
|
|
169
|
+
const e = Object.defineProperty({}, "passive", {
|
|
170
|
+
get() {
|
|
171
|
+
Object.assign(I, {
|
|
172
|
+
hasPassive: !0,
|
|
173
|
+
passive: { passive: !0 },
|
|
174
|
+
notPassive: { passive: !1 },
|
|
175
|
+
passiveCapture: { passive: !0, capture: !0 },
|
|
176
|
+
notPassiveCapture: { passive: !1, capture: !0 }
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
181
|
+
} catch {
|
|
182
|
+
}
|
|
183
|
+
function Lt(e) {
|
|
184
|
+
return e.touches && e.touches[0] ? e = e.touches[0] : e.changedTouches && e.changedTouches[0] ? e = e.changedTouches[0] : e.targetTouches && e.targetTouches[0] && (e = e.targetTouches[0]), {
|
|
185
|
+
top: e.clientY,
|
|
186
|
+
left: e.clientX
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function et(e) {
|
|
190
|
+
e.stopPropagation();
|
|
191
|
+
}
|
|
192
|
+
function ye(e) {
|
|
193
|
+
e.cancelable !== !1 && e.preventDefault();
|
|
194
|
+
}
|
|
195
|
+
function V(e) {
|
|
196
|
+
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
197
|
+
}
|
|
198
|
+
function J(e, t, l) {
|
|
199
|
+
const o = `__q_${t}_evt`;
|
|
200
|
+
e[o] = e[o] !== void 0 ? e[o].concat(l) : l, l.forEach((n) => {
|
|
201
|
+
n[0].addEventListener(n[1], e[n[2]], I[n[3]]);
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function ie(e, t) {
|
|
205
|
+
const l = `__q_${t}_evt`;
|
|
206
|
+
e[l] !== void 0 && (e[l].forEach((o) => {
|
|
207
|
+
o[0].removeEventListener(o[1], e[o[2]], I[o[3]]);
|
|
208
|
+
}), e[l] = void 0);
|
|
209
|
+
}
|
|
210
|
+
function Mt(e) {
|
|
211
|
+
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
212
|
+
}
|
|
213
|
+
function ae(e, t) {
|
|
214
|
+
return Mt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
215
|
+
}
|
|
216
|
+
const Rt = {
|
|
217
|
+
/* SSR does not know about Element */
|
|
218
|
+
target: {
|
|
219
|
+
type: [Boolean, String, Element],
|
|
220
|
+
default: !0
|
|
221
|
+
},
|
|
222
|
+
noParentEvent: Boolean
|
|
223
|
+
};
|
|
224
|
+
function Ht({
|
|
225
|
+
showing: e,
|
|
226
|
+
avoidEmit: t,
|
|
227
|
+
// required for QPopupProxy (true)
|
|
228
|
+
configureAnchorEl: l
|
|
229
|
+
// optional
|
|
230
|
+
}) {
|
|
231
|
+
const { props: o, proxy: n, emit: r } = O(), a = R(null);
|
|
232
|
+
let i = null;
|
|
233
|
+
function m(s) {
|
|
234
|
+
return a.value === null ? !1 : s === void 0 || s.touches === void 0 || s.touches.length <= 1;
|
|
235
|
+
}
|
|
236
|
+
const d = {};
|
|
237
|
+
l === void 0 && (Object.assign(d, {
|
|
238
|
+
hide(s) {
|
|
239
|
+
n.hide(s);
|
|
240
|
+
},
|
|
241
|
+
toggle(s) {
|
|
242
|
+
n.toggle(s), s.qAnchorHandled = !0;
|
|
243
|
+
},
|
|
244
|
+
toggleKey(s) {
|
|
245
|
+
ae(s, 13) === !0 && d.toggle(s);
|
|
246
|
+
},
|
|
247
|
+
contextClick(s) {
|
|
248
|
+
n.hide(s), ye(s), ne(() => {
|
|
249
|
+
n.show(s), s.qAnchorHandled = !0;
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
prevent: ye,
|
|
253
|
+
mobileTouch(s) {
|
|
254
|
+
if (d.mobileCleanup(s), m(s) !== !0)
|
|
255
|
+
return;
|
|
256
|
+
n.hide(s), a.value.classList.add("non-selectable");
|
|
257
|
+
const f = s.target;
|
|
258
|
+
J(d, "anchor", [
|
|
259
|
+
[f, "touchmove", "mobileCleanup", "passive"],
|
|
260
|
+
[f, "touchend", "mobileCleanup", "passive"],
|
|
261
|
+
[f, "touchcancel", "mobileCleanup", "passive"],
|
|
262
|
+
[a.value, "contextmenu", "prevent", "notPassive"]
|
|
263
|
+
]), i = setTimeout(() => {
|
|
264
|
+
i = null, n.show(s), s.qAnchorHandled = !0;
|
|
265
|
+
}, 300);
|
|
266
|
+
},
|
|
267
|
+
mobileCleanup(s) {
|
|
268
|
+
a.value.classList.remove("non-selectable"), i !== null && (clearTimeout(i), i = null), e.value === !0 && s !== void 0 && be();
|
|
269
|
+
}
|
|
270
|
+
}), l = function(s = o.contextMenu) {
|
|
271
|
+
if (o.noParentEvent === !0 || a.value === null) return;
|
|
272
|
+
let f;
|
|
273
|
+
s === !0 ? n.$q.platform.is.mobile === !0 ? f = [
|
|
274
|
+
[a.value, "touchstart", "mobileTouch", "passive"]
|
|
275
|
+
] : f = [
|
|
276
|
+
[a.value, "mousedown", "hide", "passive"],
|
|
277
|
+
[a.value, "contextmenu", "contextClick", "notPassive"]
|
|
278
|
+
] : f = [
|
|
279
|
+
[a.value, "click", "toggle", "passive"],
|
|
280
|
+
[a.value, "keyup", "toggleKey", "passive"]
|
|
281
|
+
], J(d, "anchor", f);
|
|
282
|
+
});
|
|
283
|
+
function u() {
|
|
284
|
+
ie(d, "anchor");
|
|
285
|
+
}
|
|
286
|
+
function x(s) {
|
|
287
|
+
for (a.value = s; a.value.classList.contains("q-anchor--skip"); )
|
|
288
|
+
a.value = a.value.parentNode;
|
|
289
|
+
l();
|
|
290
|
+
}
|
|
291
|
+
function c() {
|
|
292
|
+
if (o.target === !1 || o.target === "" || n.$el.parentNode === null)
|
|
293
|
+
a.value = null;
|
|
294
|
+
else if (o.target === !0)
|
|
295
|
+
x(n.$el.parentNode);
|
|
296
|
+
else {
|
|
297
|
+
let s = o.target;
|
|
298
|
+
if (typeof o.target == "string")
|
|
299
|
+
try {
|
|
300
|
+
s = document.querySelector(o.target);
|
|
301
|
+
} catch {
|
|
302
|
+
s = void 0;
|
|
303
|
+
}
|
|
304
|
+
s != null ? (a.value = s.$el || s, l()) : (a.value = null, console.error(`Anchor: target "${o.target}" not found`));
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return H(() => o.contextMenu, (s) => {
|
|
308
|
+
a.value !== null && (u(), l(s));
|
|
309
|
+
}), H(() => o.target, () => {
|
|
310
|
+
a.value !== null && u(), c();
|
|
311
|
+
}), H(() => o.noParentEvent, (s) => {
|
|
312
|
+
a.value !== null && (s === !0 ? u() : l());
|
|
313
|
+
}), Ue(() => {
|
|
314
|
+
c(), t !== !0 && o.modelValue === !0 && a.value === null && r("update:modelValue", !1);
|
|
315
|
+
}), D(() => {
|
|
316
|
+
i !== null && clearTimeout(i), u();
|
|
317
|
+
}), {
|
|
318
|
+
anchorEl: a,
|
|
319
|
+
canShow: m,
|
|
320
|
+
anchorEvents: d
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function Ot(e, t) {
|
|
324
|
+
const l = R(null);
|
|
325
|
+
let o;
|
|
326
|
+
function n(i, m) {
|
|
327
|
+
const d = `${m !== void 0 ? "add" : "remove"}EventListener`, u = m !== void 0 ? m : o;
|
|
328
|
+
i !== window && i[d]("scroll", u, I.passive), window[d]("scroll", u, I.passive), o = m;
|
|
329
|
+
}
|
|
330
|
+
function r() {
|
|
331
|
+
l.value !== null && (n(l.value), l.value = null);
|
|
332
|
+
}
|
|
333
|
+
const a = H(() => e.noParentEvent, () => {
|
|
334
|
+
l.value !== null && (r(), t());
|
|
335
|
+
});
|
|
336
|
+
return D(a), {
|
|
337
|
+
localScrollTarget: l,
|
|
338
|
+
unconfigureScrollTarget: r,
|
|
339
|
+
changeScrollEvent: n
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function tt(e) {
|
|
343
|
+
return e.appContext.config.globalProperties.$router !== void 0;
|
|
344
|
+
}
|
|
345
|
+
function nt(e) {
|
|
346
|
+
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
347
|
+
}
|
|
348
|
+
const Wt = {
|
|
349
|
+
modelValue: {
|
|
350
|
+
type: Boolean,
|
|
351
|
+
default: null
|
|
352
|
+
},
|
|
353
|
+
"onUpdate:modelValue": [Function, Array]
|
|
354
|
+
}, jt = [
|
|
355
|
+
"beforeShow",
|
|
356
|
+
"show",
|
|
357
|
+
"beforeHide",
|
|
358
|
+
"hide"
|
|
359
|
+
];
|
|
360
|
+
function zt({
|
|
361
|
+
showing: e,
|
|
362
|
+
canShow: t,
|
|
363
|
+
// optional
|
|
364
|
+
hideOnRouteChange: l,
|
|
365
|
+
// optional
|
|
366
|
+
handleShow: o,
|
|
367
|
+
// optional
|
|
368
|
+
handleHide: n,
|
|
369
|
+
// optional
|
|
370
|
+
processOnMount: r
|
|
371
|
+
// optional
|
|
372
|
+
}) {
|
|
373
|
+
const a = O(), { props: i, emit: m, proxy: d } = a;
|
|
374
|
+
let u;
|
|
375
|
+
function x(b) {
|
|
376
|
+
e.value === !0 ? f(b) : c(b);
|
|
377
|
+
}
|
|
378
|
+
function c(b) {
|
|
379
|
+
if (i.disable === !0 || b !== void 0 && b.qAnchorHandled === !0 || t !== void 0 && t(b) !== !0)
|
|
380
|
+
return;
|
|
381
|
+
const y = i["onUpdate:modelValue"] !== void 0;
|
|
382
|
+
y === !0 && (m("update:modelValue", !0), u = b, ne(() => {
|
|
383
|
+
u === b && (u = void 0);
|
|
384
|
+
})), (i.modelValue === null || y === !1) && s(b);
|
|
385
|
+
}
|
|
386
|
+
function s(b) {
|
|
387
|
+
e.value !== !0 && (e.value = !0, m("beforeShow", b), o !== void 0 ? o(b) : m("show", b));
|
|
388
|
+
}
|
|
389
|
+
function f(b) {
|
|
390
|
+
if (i.disable === !0)
|
|
391
|
+
return;
|
|
392
|
+
const y = i["onUpdate:modelValue"] !== void 0;
|
|
393
|
+
y === !0 && (m("update:modelValue", !1), u = b, ne(() => {
|
|
394
|
+
u === b && (u = void 0);
|
|
395
|
+
})), (i.modelValue === null || y === !1) && k(b);
|
|
396
|
+
}
|
|
397
|
+
function k(b) {
|
|
398
|
+
e.value !== !1 && (e.value = !1, m("beforeHide", b), n !== void 0 ? n(b) : m("hide", b));
|
|
399
|
+
}
|
|
400
|
+
function p(b) {
|
|
401
|
+
i.disable === !0 && b === !0 ? i["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : b === !0 !== e.value && (b === !0 ? s : k)(u);
|
|
402
|
+
}
|
|
403
|
+
H(() => i.modelValue, p), l !== void 0 && tt(a) === !0 && H(() => d.$route.fullPath, () => {
|
|
404
|
+
l.value === !0 && e.value === !0 && f();
|
|
405
|
+
}), r === !0 && Ue(() => {
|
|
406
|
+
p(i.modelValue);
|
|
407
|
+
});
|
|
408
|
+
const T = { show: c, hide: f, toggle: x };
|
|
409
|
+
return Object.assign(d, T), T;
|
|
410
|
+
}
|
|
411
|
+
let Z = [], re = [];
|
|
412
|
+
function ot(e) {
|
|
413
|
+
re = re.filter((t) => t !== e);
|
|
414
|
+
}
|
|
415
|
+
function At(e) {
|
|
416
|
+
ot(e), re.push(e);
|
|
417
|
+
}
|
|
418
|
+
function $e(e) {
|
|
419
|
+
ot(e), re.length === 0 && Z.length !== 0 && (Z[Z.length - 1](), Z = []);
|
|
420
|
+
}
|
|
421
|
+
const _e = {};
|
|
422
|
+
let Vt = 1, Nt = document.body;
|
|
423
|
+
function Dt(e, t) {
|
|
424
|
+
const l = document.createElement("div");
|
|
425
|
+
if (l.id = `q-portal--${t}--${Vt++}`, _e.globalNodes !== void 0) {
|
|
426
|
+
const o = _e.globalNodes.class;
|
|
427
|
+
o !== void 0 && (l.className = o);
|
|
428
|
+
}
|
|
429
|
+
return Nt.appendChild(l), l;
|
|
430
|
+
}
|
|
431
|
+
function It(e) {
|
|
432
|
+
e.remove();
|
|
433
|
+
}
|
|
434
|
+
const G = [], Ft = X({
|
|
435
|
+
name: "QPortal",
|
|
436
|
+
setup(e, { slots: t }) {
|
|
437
|
+
return () => t.default();
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
function Kt(e, t, l, o) {
|
|
441
|
+
const n = R(!1), r = R(!1);
|
|
442
|
+
let a = null;
|
|
443
|
+
const i = {};
|
|
444
|
+
function m(u) {
|
|
445
|
+
if (u === !0) {
|
|
446
|
+
$e(i), r.value = !0;
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
r.value = !1, n.value === !1 && (a === null && (a = Dt(!1, o)), n.value = !0, G.push(e.proxy), At(i));
|
|
450
|
+
}
|
|
451
|
+
function d(u) {
|
|
452
|
+
if (r.value = !1, u !== !0) return;
|
|
453
|
+
$e(i), n.value = !1;
|
|
454
|
+
const x = G.indexOf(e.proxy);
|
|
455
|
+
x !== -1 && G.splice(x, 1), a !== null && (It(a), a = null);
|
|
456
|
+
}
|
|
457
|
+
return pt(() => {
|
|
458
|
+
d(!0);
|
|
459
|
+
}), e.proxy.__qPortal = !0, Ge(e.proxy, "contentEl", () => t.value), {
|
|
460
|
+
showPortal: m,
|
|
461
|
+
hidePortal: d,
|
|
462
|
+
portalIsActive: n,
|
|
463
|
+
portalIsAccessible: r,
|
|
464
|
+
renderPortal: () => n.value === !0 ? [w(bt, { to: a }, w(Ft, l))] : void 0
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
const ve = {
|
|
468
|
+
transitionShow: {
|
|
469
|
+
type: String,
|
|
470
|
+
default: "fade"
|
|
471
|
+
},
|
|
472
|
+
transitionHide: {
|
|
473
|
+
type: String,
|
|
474
|
+
default: "fade"
|
|
475
|
+
},
|
|
476
|
+
transitionDuration: {
|
|
477
|
+
type: [String, Number],
|
|
478
|
+
default: 300
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
function Qt(e, t = () => {
|
|
482
|
+
}, l = () => {
|
|
483
|
+
}) {
|
|
484
|
+
return {
|
|
485
|
+
transitionProps: g(() => {
|
|
486
|
+
const o = `q-transition--${e.transitionShow || t()}`, n = `q-transition--${e.transitionHide || l()}`;
|
|
487
|
+
return {
|
|
488
|
+
appear: !0,
|
|
489
|
+
enterFromClass: `${o}-enter-from`,
|
|
490
|
+
enterActiveClass: `${o}-enter-active`,
|
|
491
|
+
enterToClass: `${o}-enter-to`,
|
|
492
|
+
leaveFromClass: `${n}-leave-from`,
|
|
493
|
+
leaveActiveClass: `${n}-leave-active`,
|
|
494
|
+
leaveToClass: `${n}-leave-to`
|
|
495
|
+
};
|
|
496
|
+
}),
|
|
497
|
+
transitionStyle: g(() => `--q-transition-duration: ${e.transitionDuration}ms`)
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
function Ut() {
|
|
501
|
+
let e;
|
|
502
|
+
const t = O();
|
|
503
|
+
function l() {
|
|
504
|
+
e = void 0;
|
|
505
|
+
}
|
|
506
|
+
return Xe(l), D(l), {
|
|
507
|
+
removeTick: l,
|
|
508
|
+
registerTick(o) {
|
|
509
|
+
e = o, ne(() => {
|
|
510
|
+
e === o && (nt(t) === !1 && e(), e = void 0);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
function Xt() {
|
|
516
|
+
let e = null;
|
|
517
|
+
const t = O();
|
|
518
|
+
function l() {
|
|
519
|
+
e !== null && (clearTimeout(e), e = null);
|
|
520
|
+
}
|
|
521
|
+
return Xe(l), D(l), {
|
|
522
|
+
removeTimeout: l,
|
|
523
|
+
registerTimeout(o, n) {
|
|
524
|
+
l(), nt(t) === !1 && (e = setTimeout(() => {
|
|
525
|
+
e = null, o();
|
|
526
|
+
}, n));
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
function we(e, t) {
|
|
531
|
+
const l = e.style;
|
|
532
|
+
for (const o in t)
|
|
533
|
+
l[o] = t[o];
|
|
534
|
+
}
|
|
535
|
+
function Yt(e) {
|
|
536
|
+
if (e == null)
|
|
537
|
+
return;
|
|
538
|
+
if (typeof e == "string")
|
|
539
|
+
try {
|
|
540
|
+
return document.querySelector(e) || void 0;
|
|
541
|
+
} catch {
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
const t = yt(e);
|
|
545
|
+
if (t)
|
|
546
|
+
return t.$el || t;
|
|
547
|
+
}
|
|
548
|
+
const Gt = [Element, String], Jt = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
549
|
+
function Zt(e, t) {
|
|
550
|
+
let l = Yt(t);
|
|
551
|
+
if (l === void 0) {
|
|
552
|
+
if (e == null)
|
|
553
|
+
return window;
|
|
554
|
+
l = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
555
|
+
}
|
|
556
|
+
return Jt.includes(l) ? window : l;
|
|
557
|
+
}
|
|
558
|
+
let ee;
|
|
559
|
+
function en() {
|
|
560
|
+
if (ee !== void 0)
|
|
561
|
+
return ee;
|
|
562
|
+
const e = document.createElement("p"), t = document.createElement("div");
|
|
563
|
+
we(e, {
|
|
564
|
+
width: "100%",
|
|
565
|
+
height: "200px"
|
|
566
|
+
}), we(t, {
|
|
567
|
+
position: "absolute",
|
|
568
|
+
top: "0px",
|
|
569
|
+
left: "0px",
|
|
570
|
+
visibility: "hidden",
|
|
571
|
+
width: "200px",
|
|
572
|
+
height: "150px",
|
|
573
|
+
overflow: "hidden"
|
|
574
|
+
}), t.appendChild(e), document.body.appendChild(t);
|
|
575
|
+
const l = e.offsetWidth;
|
|
576
|
+
t.style.overflow = "scroll";
|
|
577
|
+
let o = e.offsetWidth;
|
|
578
|
+
return l === o && (o = t.clientWidth), t.remove(), ee = l - o, ee;
|
|
579
|
+
}
|
|
580
|
+
const { notPassiveCapture: ue } = I, N = [];
|
|
581
|
+
function se(e) {
|
|
582
|
+
const t = e.target;
|
|
583
|
+
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
584
|
+
return;
|
|
585
|
+
let l = G.length - 1;
|
|
586
|
+
for (; l >= 0; ) {
|
|
587
|
+
const o = G[l].$;
|
|
588
|
+
if (o.type.name === "QTooltip") {
|
|
589
|
+
l--;
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
if (o.type.name !== "QDialog")
|
|
593
|
+
break;
|
|
594
|
+
if (o.props.seamless !== !0)
|
|
595
|
+
return;
|
|
596
|
+
l--;
|
|
597
|
+
}
|
|
598
|
+
for (let o = N.length - 1; o >= 0; o--) {
|
|
599
|
+
const n = N[o];
|
|
600
|
+
if ((n.anchorEl.value === null || n.anchorEl.value.contains(t) === !1) && (t === document.body || n.innerRef.value !== null && n.innerRef.value.contains(t) === !1))
|
|
601
|
+
e.qClickOutside = !0, n.onClickOutside(e);
|
|
602
|
+
else
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
function tn(e) {
|
|
607
|
+
N.push(e), N.length === 1 && (document.addEventListener("mousedown", se, ue), document.addEventListener("touchstart", se, ue));
|
|
608
|
+
}
|
|
609
|
+
function Pe(e) {
|
|
610
|
+
const t = N.findIndex((l) => l === e);
|
|
611
|
+
t !== -1 && (N.splice(t, 1), N.length === 0 && (document.removeEventListener("mousedown", se, ue), document.removeEventListener("touchstart", se, ue)));
|
|
612
|
+
}
|
|
613
|
+
let Le, Me;
|
|
614
|
+
function Re(e) {
|
|
615
|
+
const t = e.split(" ");
|
|
616
|
+
return t.length !== 2 ? !1 : ["top", "center", "bottom"].includes(t[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(t[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
617
|
+
}
|
|
618
|
+
function nn(e) {
|
|
619
|
+
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
620
|
+
}
|
|
621
|
+
const xe = {
|
|
622
|
+
"start#ltr": "left",
|
|
623
|
+
"start#rtl": "right",
|
|
624
|
+
"end#ltr": "right",
|
|
625
|
+
"end#rtl": "left"
|
|
626
|
+
};
|
|
627
|
+
["left", "middle", "right"].forEach((e) => {
|
|
628
|
+
xe[`${e}#ltr`] = e, xe[`${e}#rtl`] = e;
|
|
629
|
+
});
|
|
630
|
+
function He(e, t) {
|
|
631
|
+
const l = e.split(" ");
|
|
632
|
+
return {
|
|
633
|
+
vertical: l[0],
|
|
634
|
+
horizontal: xe[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
function on(e, t) {
|
|
638
|
+
let { top: l, left: o, right: n, bottom: r, width: a, height: i } = e.getBoundingClientRect();
|
|
639
|
+
return t !== void 0 && (l -= t[1], o -= t[0], r += t[1], n += t[0], a += t[0], i += t[1]), {
|
|
640
|
+
top: l,
|
|
641
|
+
bottom: r,
|
|
642
|
+
height: i,
|
|
643
|
+
left: o,
|
|
644
|
+
right: n,
|
|
645
|
+
width: a,
|
|
646
|
+
middle: o + (n - o) / 2,
|
|
647
|
+
center: l + (r - l) / 2
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
function ln(e, t, l) {
|
|
651
|
+
let { top: o, left: n } = e.getBoundingClientRect();
|
|
652
|
+
return o += t.top, n += t.left, l !== void 0 && (o += l[1], n += l[0]), {
|
|
653
|
+
top: o,
|
|
654
|
+
bottom: o + 1,
|
|
655
|
+
height: 1,
|
|
656
|
+
left: n,
|
|
657
|
+
right: n + 1,
|
|
658
|
+
width: 1,
|
|
659
|
+
middle: n,
|
|
660
|
+
center: o
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
function an(e, t) {
|
|
664
|
+
return {
|
|
665
|
+
top: 0,
|
|
666
|
+
center: t / 2,
|
|
667
|
+
bottom: t,
|
|
668
|
+
left: 0,
|
|
669
|
+
middle: e / 2,
|
|
670
|
+
right: e
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
function Oe(e, t, l, o) {
|
|
674
|
+
return {
|
|
675
|
+
top: e[l.vertical] - t[o.vertical],
|
|
676
|
+
left: e[l.horizontal] - t[o.horizontal]
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function lt(e, t = 0) {
|
|
680
|
+
if (e.targetEl === null || e.anchorEl === null || t > 5)
|
|
681
|
+
return;
|
|
682
|
+
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
683
|
+
setTimeout(() => {
|
|
684
|
+
lt(e, t + 1);
|
|
685
|
+
}, 10);
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
const {
|
|
689
|
+
targetEl: l,
|
|
690
|
+
offset: o,
|
|
691
|
+
anchorEl: n,
|
|
692
|
+
anchorOrigin: r,
|
|
693
|
+
selfOrigin: a,
|
|
694
|
+
absoluteOffset: i,
|
|
695
|
+
fit: m,
|
|
696
|
+
cover: d,
|
|
697
|
+
maxHeight: u,
|
|
698
|
+
maxWidth: x
|
|
699
|
+
} = e;
|
|
700
|
+
if (le.is.ios === !0 && window.visualViewport !== void 0) {
|
|
701
|
+
const B = document.body.style, { offsetLeft: E, offsetTop: q } = window.visualViewport;
|
|
702
|
+
E !== Le && (B.setProperty("--q-pe-left", E + "px"), Le = E), q !== Me && (B.setProperty("--q-pe-top", q + "px"), Me = q);
|
|
703
|
+
}
|
|
704
|
+
const { scrollLeft: c, scrollTop: s } = l, f = i === void 0 ? on(n, d === !0 ? [0, 0] : o) : ln(n, i, o);
|
|
705
|
+
Object.assign(l.style, {
|
|
706
|
+
top: 0,
|
|
707
|
+
left: 0,
|
|
708
|
+
minWidth: null,
|
|
709
|
+
minHeight: null,
|
|
710
|
+
maxWidth: x,
|
|
711
|
+
maxHeight: u,
|
|
712
|
+
visibility: "visible"
|
|
713
|
+
});
|
|
714
|
+
const { offsetWidth: k, offsetHeight: p } = l, { elWidth: T, elHeight: b } = m === !0 || d === !0 ? { elWidth: Math.max(f.width, k), elHeight: d === !0 ? Math.max(f.height, p) : p } : { elWidth: k, elHeight: p };
|
|
715
|
+
let y = { maxWidth: x, maxHeight: u };
|
|
716
|
+
(m === !0 || d === !0) && (y.minWidth = f.width + "px", d === !0 && (y.minHeight = f.height + "px")), Object.assign(l.style, y);
|
|
717
|
+
const $ = an(T, b);
|
|
718
|
+
let h = Oe(f, $, r, a);
|
|
719
|
+
if (i === void 0 || o === void 0)
|
|
720
|
+
me(h, f, $, r, a);
|
|
721
|
+
else {
|
|
722
|
+
const { top: B, left: E } = h;
|
|
723
|
+
me(h, f, $, r, a);
|
|
724
|
+
let q = !1;
|
|
725
|
+
if (h.top !== B) {
|
|
726
|
+
q = !0;
|
|
727
|
+
const C = 2 * o[1];
|
|
728
|
+
f.center = f.top -= C, f.bottom -= C + 2;
|
|
729
|
+
}
|
|
730
|
+
if (h.left !== E) {
|
|
731
|
+
q = !0;
|
|
732
|
+
const C = 2 * o[0];
|
|
733
|
+
f.middle = f.left -= C, f.right -= C + 2;
|
|
734
|
+
}
|
|
735
|
+
q === !0 && (h = Oe(f, $, r, a), me(h, f, $, r, a));
|
|
736
|
+
}
|
|
737
|
+
y = {
|
|
738
|
+
top: h.top + "px",
|
|
739
|
+
left: h.left + "px"
|
|
740
|
+
}, h.maxHeight !== void 0 && (y.maxHeight = h.maxHeight + "px", f.height > h.maxHeight && (y.minHeight = y.maxHeight)), h.maxWidth !== void 0 && (y.maxWidth = h.maxWidth + "px", f.width > h.maxWidth && (y.minWidth = y.maxWidth)), Object.assign(l.style, y), l.scrollTop !== s && (l.scrollTop = s), l.scrollLeft !== c && (l.scrollLeft = c);
|
|
741
|
+
}
|
|
742
|
+
function me(e, t, l, o, n) {
|
|
743
|
+
const r = l.bottom, a = l.right, i = en(), m = window.innerHeight - i, d = document.body.clientWidth;
|
|
744
|
+
if (e.top < 0 || e.top + r > m)
|
|
745
|
+
if (n.vertical === "center")
|
|
746
|
+
e.top = t[o.vertical] > m / 2 ? Math.max(0, m - r) : 0, e.maxHeight = Math.min(r, m);
|
|
747
|
+
else if (t[o.vertical] > m / 2) {
|
|
748
|
+
const u = Math.min(
|
|
749
|
+
m,
|
|
750
|
+
o.vertical === "center" ? t.center : o.vertical === n.vertical ? t.bottom : t.top
|
|
751
|
+
);
|
|
752
|
+
e.maxHeight = Math.min(r, u), e.top = Math.max(0, u - r);
|
|
753
|
+
} else
|
|
754
|
+
e.top = Math.max(
|
|
755
|
+
0,
|
|
756
|
+
o.vertical === "center" ? t.center : o.vertical === n.vertical ? t.top : t.bottom
|
|
757
|
+
), e.maxHeight = Math.min(r, m - e.top);
|
|
758
|
+
if (e.left < 0 || e.left + a > d)
|
|
759
|
+
if (e.maxWidth = Math.min(a, d), n.horizontal === "middle")
|
|
760
|
+
e.left = t[o.horizontal] > d / 2 ? Math.max(0, d - a) : 0;
|
|
761
|
+
else if (t[o.horizontal] > d / 2) {
|
|
762
|
+
const u = Math.min(
|
|
763
|
+
d,
|
|
764
|
+
o.horizontal === "middle" ? t.middle : o.horizontal === n.horizontal ? t.right : t.left
|
|
765
|
+
);
|
|
766
|
+
e.maxWidth = Math.min(a, u), e.left = Math.max(0, u - e.maxWidth);
|
|
767
|
+
} else
|
|
768
|
+
e.left = Math.max(
|
|
769
|
+
0,
|
|
770
|
+
o.horizontal === "middle" ? t.middle : o.horizontal === n.horizontal ? t.left : t.right
|
|
771
|
+
), e.maxWidth = Math.min(a, d - e.left);
|
|
772
|
+
}
|
|
773
|
+
const rn = X({
|
|
774
|
+
name: "QTooltip",
|
|
775
|
+
inheritAttrs: !1,
|
|
776
|
+
props: {
|
|
777
|
+
...Rt,
|
|
778
|
+
...Wt,
|
|
779
|
+
...ve,
|
|
780
|
+
maxHeight: {
|
|
781
|
+
type: String,
|
|
782
|
+
default: null
|
|
783
|
+
},
|
|
784
|
+
maxWidth: {
|
|
785
|
+
type: String,
|
|
786
|
+
default: null
|
|
787
|
+
},
|
|
788
|
+
transitionShow: {
|
|
789
|
+
...ve.transitionShow,
|
|
790
|
+
default: "jump-down"
|
|
791
|
+
},
|
|
792
|
+
transitionHide: {
|
|
793
|
+
...ve.transitionHide,
|
|
794
|
+
default: "jump-up"
|
|
795
|
+
},
|
|
796
|
+
anchor: {
|
|
797
|
+
type: String,
|
|
798
|
+
default: "bottom middle",
|
|
799
|
+
validator: Re
|
|
800
|
+
},
|
|
801
|
+
self: {
|
|
802
|
+
type: String,
|
|
803
|
+
default: "top middle",
|
|
804
|
+
validator: Re
|
|
805
|
+
},
|
|
806
|
+
offset: {
|
|
807
|
+
type: Array,
|
|
808
|
+
default: () => [14, 14],
|
|
809
|
+
validator: nn
|
|
810
|
+
},
|
|
811
|
+
scrollTarget: Gt,
|
|
812
|
+
delay: {
|
|
813
|
+
type: Number,
|
|
814
|
+
default: 0
|
|
815
|
+
},
|
|
816
|
+
hideDelay: {
|
|
817
|
+
type: Number,
|
|
818
|
+
default: 0
|
|
819
|
+
},
|
|
820
|
+
persistent: Boolean
|
|
821
|
+
},
|
|
822
|
+
emits: [
|
|
823
|
+
...jt
|
|
824
|
+
],
|
|
825
|
+
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
826
|
+
let n, r;
|
|
827
|
+
const a = O(), { proxy: { $q: i } } = a, m = R(null), d = R(!1), u = g(() => He(e.anchor, i.lang.rtl)), x = g(() => He(e.self, i.lang.rtl)), c = g(() => e.persistent !== !0), { registerTick: s, removeTick: f } = Ut(), { registerTimeout: k } = Xt(), { transitionProps: p, transitionStyle: T } = Qt(e), { localScrollTarget: b, changeScrollEvent: y, unconfigureScrollTarget: $ } = Ot(e, Se), { anchorEl: h, canShow: B, anchorEvents: E } = Ht({ showing: d, configureAnchorEl: vt }), { show: q, hide: C } = zt({
|
|
828
|
+
showing: d,
|
|
829
|
+
canShow: B,
|
|
830
|
+
handleShow: z,
|
|
831
|
+
handleHide: v,
|
|
832
|
+
hideOnRouteChange: c,
|
|
833
|
+
processOnMount: !0
|
|
834
|
+
});
|
|
835
|
+
Object.assign(E, { delayShow: dt, delayHide: ft });
|
|
836
|
+
const { showPortal: W, hidePortal: P, renderPortal: j } = Kt(a, m, ht, "tooltip");
|
|
837
|
+
if (i.platform.is.mobile === !0) {
|
|
838
|
+
const _ = {
|
|
839
|
+
anchorEl: h,
|
|
840
|
+
innerRef: m,
|
|
841
|
+
onClickOutside(A) {
|
|
842
|
+
return C(A), A.target.classList.contains("q-dialog__backdrop") && V(A), !0;
|
|
843
|
+
}
|
|
844
|
+
}, de = g(
|
|
845
|
+
() => (
|
|
846
|
+
// it doesn't has external model
|
|
847
|
+
// (null is the default value)
|
|
848
|
+
e.modelValue === null && e.persistent !== !0 && d.value === !0
|
|
849
|
+
)
|
|
850
|
+
);
|
|
851
|
+
H(de, (A) => {
|
|
852
|
+
(A === !0 ? tn : Pe)(_);
|
|
853
|
+
}), D(() => {
|
|
854
|
+
Pe(_);
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
function z(_) {
|
|
858
|
+
W(), s(() => {
|
|
859
|
+
r = new MutationObserver(() => M()), r.observe(m.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), M(), Se();
|
|
860
|
+
}), n === void 0 && (n = H(
|
|
861
|
+
() => i.screen.width + "|" + i.screen.height + "|" + e.self + "|" + e.anchor + "|" + i.lang.rtl,
|
|
862
|
+
M
|
|
863
|
+
)), k(() => {
|
|
864
|
+
W(!0), l("show", _);
|
|
865
|
+
}, e.transitionDuration);
|
|
866
|
+
}
|
|
867
|
+
function v(_) {
|
|
868
|
+
f(), P(), S(), k(() => {
|
|
869
|
+
P(!0), l("hide", _);
|
|
870
|
+
}, e.transitionDuration);
|
|
871
|
+
}
|
|
872
|
+
function S() {
|
|
873
|
+
r !== void 0 && (r.disconnect(), r = void 0), n !== void 0 && (n(), n = void 0), $(), ie(E, "tooltipTemp");
|
|
874
|
+
}
|
|
875
|
+
function M() {
|
|
876
|
+
lt({
|
|
877
|
+
targetEl: m.value,
|
|
878
|
+
offset: e.offset,
|
|
879
|
+
anchorEl: h.value,
|
|
880
|
+
anchorOrigin: u.value,
|
|
881
|
+
selfOrigin: x.value,
|
|
882
|
+
maxHeight: e.maxHeight,
|
|
883
|
+
maxWidth: e.maxWidth
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
function dt(_) {
|
|
887
|
+
if (i.platform.is.mobile === !0) {
|
|
888
|
+
be(), document.body.classList.add("non-selectable");
|
|
889
|
+
const de = h.value, A = ["touchmove", "touchcancel", "touchend", "click"].map((Ee) => [de, Ee, "delayHide", "passiveCapture"]);
|
|
890
|
+
J(E, "tooltipTemp", A);
|
|
891
|
+
}
|
|
892
|
+
k(() => {
|
|
893
|
+
q(_);
|
|
894
|
+
}, e.delay);
|
|
895
|
+
}
|
|
896
|
+
function ft(_) {
|
|
897
|
+
i.platform.is.mobile === !0 && (ie(E, "tooltipTemp"), be(), setTimeout(() => {
|
|
898
|
+
document.body.classList.remove("non-selectable");
|
|
899
|
+
}, 10)), k(() => {
|
|
900
|
+
C(_);
|
|
901
|
+
}, e.hideDelay);
|
|
902
|
+
}
|
|
903
|
+
function vt() {
|
|
904
|
+
if (e.noParentEvent === !0 || h.value === null) return;
|
|
905
|
+
const _ = i.platform.is.mobile === !0 ? [
|
|
906
|
+
[h.value, "touchstart", "delayShow", "passive"]
|
|
907
|
+
] : [
|
|
908
|
+
[h.value, "mouseenter", "delayShow", "passive"],
|
|
909
|
+
[h.value, "mouseleave", "delayHide", "passive"]
|
|
910
|
+
];
|
|
911
|
+
J(E, "anchor", _);
|
|
912
|
+
}
|
|
913
|
+
function Se() {
|
|
914
|
+
if (h.value !== null || e.scrollTarget !== void 0) {
|
|
915
|
+
b.value = Zt(h.value, e.scrollTarget);
|
|
916
|
+
const _ = e.noParentEvent === !0 ? M : C;
|
|
917
|
+
y(b.value, _);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
function mt() {
|
|
921
|
+
return d.value === !0 ? w("div", {
|
|
922
|
+
...o,
|
|
923
|
+
ref: m,
|
|
924
|
+
class: [
|
|
925
|
+
"q-tooltip q-tooltip--style q-position-engine no-pointer-events",
|
|
926
|
+
o.class
|
|
927
|
+
],
|
|
928
|
+
style: [
|
|
929
|
+
o.style,
|
|
930
|
+
T.value
|
|
931
|
+
],
|
|
932
|
+
role: "tooltip"
|
|
933
|
+
}, Je(t.default)) : null;
|
|
934
|
+
}
|
|
935
|
+
function ht() {
|
|
936
|
+
return w(Ye, p.value, mt);
|
|
937
|
+
}
|
|
938
|
+
return D(S), Object.assign(a.proxy, { updatePosition: M }), j;
|
|
939
|
+
}
|
|
940
|
+
}), ke = {
|
|
941
|
+
xs: 18,
|
|
942
|
+
sm: 24,
|
|
943
|
+
md: 32,
|
|
944
|
+
lg: 38,
|
|
945
|
+
xl: 46
|
|
946
|
+
}, it = {
|
|
947
|
+
size: String
|
|
948
|
+
};
|
|
949
|
+
function at(e, t = ke) {
|
|
950
|
+
return g(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
951
|
+
}
|
|
952
|
+
const We = "0 0 24 24", je = (e) => e, he = (e) => `ionicons ${e}`, rt = {
|
|
953
|
+
"mdi-": (e) => `mdi ${e}`,
|
|
954
|
+
"icon-": je,
|
|
955
|
+
// fontawesome equiv
|
|
956
|
+
"bt-": (e) => `bt ${e}`,
|
|
957
|
+
"eva-": (e) => `eva ${e}`,
|
|
958
|
+
"ion-md": he,
|
|
959
|
+
"ion-ios": he,
|
|
960
|
+
"ion-logo": he,
|
|
961
|
+
"iconfont ": je,
|
|
962
|
+
"ti-": (e) => `themify-icon ${e}`,
|
|
963
|
+
"bi-": (e) => `bootstrap-icons ${e}`
|
|
964
|
+
}, ut = {
|
|
965
|
+
o_: "-outlined",
|
|
966
|
+
r_: "-round",
|
|
967
|
+
s_: "-sharp"
|
|
968
|
+
}, st = {
|
|
969
|
+
sym_o_: "-outlined",
|
|
970
|
+
sym_r_: "-rounded",
|
|
971
|
+
sym_s_: "-sharp"
|
|
972
|
+
}, un = new RegExp("^(" + Object.keys(rt).join("|") + ")"), sn = new RegExp("^(" + Object.keys(ut).join("|") + ")"), ze = new RegExp("^(" + Object.keys(st).join("|") + ")"), cn = /^[Mm]\s?[-+]?\.?\d/, dn = /^img:/, fn = /^svguse:/, vn = /^ion-/, mn = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, Ae = X({
|
|
973
|
+
name: "QIcon",
|
|
974
|
+
props: {
|
|
975
|
+
...it,
|
|
976
|
+
tag: {
|
|
977
|
+
type: String,
|
|
978
|
+
default: "i"
|
|
979
|
+
},
|
|
980
|
+
name: String,
|
|
981
|
+
color: String,
|
|
982
|
+
left: Boolean,
|
|
983
|
+
right: Boolean
|
|
984
|
+
},
|
|
985
|
+
setup(e, { slots: t }) {
|
|
986
|
+
const { proxy: { $q: l } } = O(), o = at(e), n = g(
|
|
987
|
+
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
988
|
+
), r = g(() => {
|
|
989
|
+
let a, i = e.name;
|
|
990
|
+
if (i === "none" || !i)
|
|
991
|
+
return { none: !0 };
|
|
992
|
+
if (l.iconMapFn !== null) {
|
|
993
|
+
const u = l.iconMapFn(i);
|
|
994
|
+
if (u !== void 0)
|
|
995
|
+
if (u.icon !== void 0) {
|
|
996
|
+
if (i = u.icon, i === "none" || !i)
|
|
997
|
+
return { none: !0 };
|
|
998
|
+
} else
|
|
999
|
+
return {
|
|
1000
|
+
cls: u.cls,
|
|
1001
|
+
content: u.content !== void 0 ? u.content : " "
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
if (cn.test(i) === !0) {
|
|
1005
|
+
const [u, x = We] = i.split("|");
|
|
1006
|
+
return {
|
|
1007
|
+
svg: !0,
|
|
1008
|
+
viewBox: x,
|
|
1009
|
+
nodes: u.split("&&").map((c) => {
|
|
1010
|
+
const [s, f, k] = c.split("@@");
|
|
1011
|
+
return w("path", { style: f, d: s, transform: k });
|
|
1012
|
+
})
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
if (dn.test(i) === !0)
|
|
1016
|
+
return {
|
|
1017
|
+
img: !0,
|
|
1018
|
+
src: i.substring(4)
|
|
1019
|
+
};
|
|
1020
|
+
if (fn.test(i) === !0) {
|
|
1021
|
+
const [u, x = We] = i.split("|");
|
|
1022
|
+
return {
|
|
1023
|
+
svguse: !0,
|
|
1024
|
+
src: u.substring(7),
|
|
1025
|
+
viewBox: x
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
1028
|
+
let m = " ";
|
|
1029
|
+
const d = i.match(un);
|
|
1030
|
+
if (d !== null)
|
|
1031
|
+
a = rt[d[1]](i);
|
|
1032
|
+
else if (mn.test(i) === !0)
|
|
1033
|
+
a = i;
|
|
1034
|
+
else if (vn.test(i) === !0)
|
|
1035
|
+
a = `ionicons ion-${l.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
|
|
1036
|
+
else if (ze.test(i) === !0) {
|
|
1037
|
+
a = "notranslate material-symbols";
|
|
1038
|
+
const u = i.match(ze);
|
|
1039
|
+
u !== null && (i = i.substring(6), a += st[u[1]]), m = i;
|
|
1040
|
+
} else {
|
|
1041
|
+
a = "notranslate material-icons";
|
|
1042
|
+
const u = i.match(sn);
|
|
1043
|
+
u !== null && (i = i.substring(2), a += ut[u[1]]), m = i;
|
|
1044
|
+
}
|
|
1045
|
+
return {
|
|
1046
|
+
cls: a,
|
|
1047
|
+
content: m
|
|
1048
|
+
};
|
|
1049
|
+
});
|
|
1050
|
+
return () => {
|
|
1051
|
+
const a = {
|
|
1052
|
+
class: n.value,
|
|
1053
|
+
style: o.value,
|
|
1054
|
+
"aria-hidden": "true",
|
|
1055
|
+
role: "presentation"
|
|
1056
|
+
};
|
|
1057
|
+
return r.value.none === !0 ? w(e.tag, a, Je(t.default)) : r.value.img === !0 ? w(e.tag, a, U(t.default, [
|
|
1058
|
+
w("img", { src: r.value.src })
|
|
1059
|
+
])) : r.value.svg === !0 ? w(e.tag, a, U(t.default, [
|
|
1060
|
+
w("svg", {
|
|
1061
|
+
viewBox: r.value.viewBox || "0 0 24 24"
|
|
1062
|
+
}, r.value.nodes)
|
|
1063
|
+
])) : r.value.svguse === !0 ? w(e.tag, a, U(t.default, [
|
|
1064
|
+
w("svg", {
|
|
1065
|
+
viewBox: r.value.viewBox
|
|
1066
|
+
}, [
|
|
1067
|
+
w("use", { "xlink:href": r.value.src })
|
|
1068
|
+
])
|
|
1069
|
+
])) : (r.value.cls !== void 0 && (a.class += " " + r.value.cls), w(e.tag, a, U(t.default, [
|
|
1070
|
+
r.value.content
|
|
1071
|
+
])));
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
}), hn = {
|
|
1075
|
+
size: {
|
|
1076
|
+
type: [String, Number],
|
|
1077
|
+
default: "1em"
|
|
1078
|
+
},
|
|
1079
|
+
color: String
|
|
1080
|
+
};
|
|
1081
|
+
function gn(e) {
|
|
1082
|
+
return {
|
|
1083
|
+
cSize: g(() => e.size in ke ? `${ke[e.size]}px` : e.size),
|
|
1084
|
+
classes: g(
|
|
1085
|
+
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
1086
|
+
)
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
const pn = X({
|
|
1090
|
+
name: "QSpinner",
|
|
1091
|
+
props: {
|
|
1092
|
+
...hn,
|
|
1093
|
+
thickness: {
|
|
1094
|
+
type: Number,
|
|
1095
|
+
default: 5
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
setup(e) {
|
|
1099
|
+
const { cSize: t, classes: l } = gn(e);
|
|
1100
|
+
return () => w("svg", {
|
|
1101
|
+
class: l.value + " q-spinner-mat",
|
|
1102
|
+
width: t.value,
|
|
1103
|
+
height: t.value,
|
|
1104
|
+
viewBox: "25 25 50 50"
|
|
1105
|
+
}, [
|
|
1106
|
+
w("circle", {
|
|
1107
|
+
class: "path",
|
|
1108
|
+
cx: "50",
|
|
1109
|
+
cy: "50",
|
|
1110
|
+
r: "20",
|
|
1111
|
+
fill: "none",
|
|
1112
|
+
stroke: "currentColor",
|
|
1113
|
+
"stroke-width": e.thickness,
|
|
1114
|
+
"stroke-miterlimit": "10"
|
|
1115
|
+
})
|
|
1116
|
+
]);
|
|
1117
|
+
}
|
|
1118
|
+
});
|
|
1119
|
+
function bn(e, t = 250) {
|
|
1120
|
+
let l = !1, o;
|
|
1121
|
+
return function() {
|
|
1122
|
+
return l === !1 && (l = !0, setTimeout(() => {
|
|
1123
|
+
l = !1;
|
|
1124
|
+
}, t), o = e.apply(this, arguments)), o;
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
function Ve(e, t, l, o) {
|
|
1128
|
+
l.modifiers.stop === !0 && et(e);
|
|
1129
|
+
const n = l.modifiers.color;
|
|
1130
|
+
let r = l.modifiers.center;
|
|
1131
|
+
r = r === !0 || o === !0;
|
|
1132
|
+
const a = document.createElement("span"), i = document.createElement("span"), m = Lt(e), { left: d, top: u, width: x, height: c } = t.getBoundingClientRect(), s = Math.sqrt(x * x + c * c), f = s / 2, k = `${(x - s) / 2}px`, p = r ? k : `${m.left - d - f}px`, T = `${(c - s) / 2}px`, b = r ? T : `${m.top - u - f}px`;
|
|
1133
|
+
i.className = "q-ripple__inner", we(i, {
|
|
1134
|
+
height: `${s}px`,
|
|
1135
|
+
width: `${s}px`,
|
|
1136
|
+
transform: `translate3d(${p},${b},0) scale3d(.2,.2,1)`,
|
|
1137
|
+
opacity: 0
|
|
1138
|
+
}), a.className = `q-ripple${n ? " text-" + n : ""}`, a.setAttribute("dir", "ltr"), a.appendChild(i), t.appendChild(a);
|
|
1139
|
+
const y = () => {
|
|
1140
|
+
a.remove(), clearTimeout($);
|
|
1141
|
+
};
|
|
1142
|
+
l.abort.push(y);
|
|
1143
|
+
let $ = setTimeout(() => {
|
|
1144
|
+
i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${k},${T},0) scale3d(1,1,1)`, i.style.opacity = 0.2, $ = setTimeout(() => {
|
|
1145
|
+
i.classList.remove("q-ripple__inner--enter"), i.classList.add("q-ripple__inner--leave"), i.style.opacity = 0, $ = setTimeout(() => {
|
|
1146
|
+
a.remove(), l.abort.splice(l.abort.indexOf(y), 1);
|
|
1147
|
+
}, 275);
|
|
1148
|
+
}, 250);
|
|
1149
|
+
}, 50);
|
|
1150
|
+
}
|
|
1151
|
+
function Ne(e, { modifiers: t, value: l, arg: o }) {
|
|
1152
|
+
const n = Object.assign({}, e.cfg.ripple, t, l);
|
|
1153
|
+
e.modifiers = {
|
|
1154
|
+
early: n.early === !0,
|
|
1155
|
+
stop: n.stop === !0,
|
|
1156
|
+
center: n.center === !0,
|
|
1157
|
+
color: n.color || o,
|
|
1158
|
+
keyCodes: [].concat(n.keyCodes || 13)
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
const yn = Tt(
|
|
1162
|
+
{
|
|
1163
|
+
name: "ripple",
|
|
1164
|
+
beforeMount(e, t) {
|
|
1165
|
+
const l = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
1166
|
+
if (l.ripple === !1)
|
|
1167
|
+
return;
|
|
1168
|
+
const o = {
|
|
1169
|
+
cfg: l,
|
|
1170
|
+
enabled: t.value !== !1,
|
|
1171
|
+
modifiers: {},
|
|
1172
|
+
abort: [],
|
|
1173
|
+
start(n) {
|
|
1174
|
+
o.enabled === !0 && n.qSkipRipple !== !0 && n.type === (o.modifiers.early === !0 ? "pointerdown" : "click") && Ve(n, e, o, n.qKeyEvent === !0);
|
|
1175
|
+
},
|
|
1176
|
+
keystart: bn((n) => {
|
|
1177
|
+
o.enabled === !0 && n.qSkipRipple !== !0 && ae(n, o.modifiers.keyCodes) === !0 && n.type === `key${o.modifiers.early === !0 ? "down" : "up"}` && Ve(n, e, o, !0);
|
|
1178
|
+
}, 300)
|
|
1179
|
+
};
|
|
1180
|
+
Ne(o, t), e.__qripple = o, J(o, "main", [
|
|
1181
|
+
[e, "pointerdown", "start", "passive"],
|
|
1182
|
+
[e, "click", "start", "passive"],
|
|
1183
|
+
[e, "keydown", "keystart", "passive"],
|
|
1184
|
+
[e, "keyup", "keystart", "passive"]
|
|
1185
|
+
]);
|
|
1186
|
+
},
|
|
1187
|
+
updated(e, t) {
|
|
1188
|
+
if (t.oldValue !== t.value) {
|
|
1189
|
+
const l = e.__qripple;
|
|
1190
|
+
l !== void 0 && (l.enabled = t.value !== !1, l.enabled === !0 && Object(t.value) === t.value && Ne(l, t));
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
beforeUnmount(e) {
|
|
1194
|
+
const t = e.__qripple;
|
|
1195
|
+
t !== void 0 && (t.abort.forEach((l) => {
|
|
1196
|
+
l();
|
|
1197
|
+
}), ie(t, "main"), delete e._qripple);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
), ct = {
|
|
1201
|
+
left: "start",
|
|
1202
|
+
center: "center",
|
|
1203
|
+
right: "end",
|
|
1204
|
+
between: "between",
|
|
1205
|
+
around: "around",
|
|
1206
|
+
evenly: "evenly",
|
|
1207
|
+
stretch: "stretch"
|
|
1208
|
+
}, wn = Object.keys(ct), xn = {
|
|
1209
|
+
align: {
|
|
1210
|
+
type: String,
|
|
1211
|
+
validator: (e) => wn.includes(e)
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
function kn(e) {
|
|
1215
|
+
return g(() => {
|
|
1216
|
+
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
1217
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${ct[t]}`;
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
function De(e) {
|
|
1221
|
+
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
1222
|
+
}
|
|
1223
|
+
function Ie(e, t) {
|
|
1224
|
+
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
1225
|
+
}
|
|
1226
|
+
function Sn(e, t) {
|
|
1227
|
+
for (const l in t) {
|
|
1228
|
+
const o = t[l], n = e[l];
|
|
1229
|
+
if (typeof o == "string") {
|
|
1230
|
+
if (o !== n)
|
|
1231
|
+
return !1;
|
|
1232
|
+
} else if (Array.isArray(n) === !1 || n.length !== o.length || o.some((r, a) => r !== n[a]))
|
|
1233
|
+
return !1;
|
|
1234
|
+
}
|
|
1235
|
+
return !0;
|
|
1236
|
+
}
|
|
1237
|
+
function Fe(e, t) {
|
|
1238
|
+
return Array.isArray(t) === !0 ? e.length === t.length && e.every((l, o) => l === t[o]) : e.length === 1 && e[0] === t;
|
|
1239
|
+
}
|
|
1240
|
+
function En(e, t) {
|
|
1241
|
+
return Array.isArray(e) === !0 ? Fe(e, t) : Array.isArray(t) === !0 ? Fe(t, e) : e === t;
|
|
1242
|
+
}
|
|
1243
|
+
function Tn(e, t) {
|
|
1244
|
+
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1245
|
+
return !1;
|
|
1246
|
+
for (const l in e)
|
|
1247
|
+
if (En(e[l], t[l]) === !1)
|
|
1248
|
+
return !1;
|
|
1249
|
+
return !0;
|
|
1250
|
+
}
|
|
1251
|
+
const Bn = {
|
|
1252
|
+
// router-link
|
|
1253
|
+
to: [String, Object],
|
|
1254
|
+
replace: Boolean,
|
|
1255
|
+
// regular <a> link
|
|
1256
|
+
href: String,
|
|
1257
|
+
target: String,
|
|
1258
|
+
// state
|
|
1259
|
+
disable: Boolean
|
|
1260
|
+
};
|
|
1261
|
+
function qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
1262
|
+
const l = O(), { props: o, proxy: n, emit: r } = l, a = tt(l), i = g(() => o.disable !== !0 && o.href !== void 0), m = t === !0 ? g(
|
|
1263
|
+
() => a === !0 && o.disable !== !0 && i.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
1264
|
+
) : g(
|
|
1265
|
+
() => a === !0 && i.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
1266
|
+
), d = g(() => m.value === !0 ? b(o.to) : null), u = g(() => d.value !== null), x = g(() => i.value === !0 || u.value === !0), c = g(() => o.type === "a" || x.value === !0 ? "a" : o.tag || e || "div"), s = g(() => i.value === !0 ? {
|
|
1267
|
+
href: o.href,
|
|
1268
|
+
target: o.target
|
|
1269
|
+
} : u.value === !0 ? {
|
|
1270
|
+
href: d.value.href,
|
|
1271
|
+
target: o.target
|
|
1272
|
+
} : {}), f = g(() => {
|
|
1273
|
+
if (u.value === !1)
|
|
1274
|
+
return -1;
|
|
1275
|
+
const { matched: h } = d.value, { length: B } = h, E = h[B - 1];
|
|
1276
|
+
if (E === void 0)
|
|
1277
|
+
return -1;
|
|
1278
|
+
const q = n.$route.matched;
|
|
1279
|
+
if (q.length === 0)
|
|
1280
|
+
return -1;
|
|
1281
|
+
const C = q.findIndex(
|
|
1282
|
+
Ie.bind(null, E)
|
|
1283
|
+
);
|
|
1284
|
+
if (C !== -1)
|
|
1285
|
+
return C;
|
|
1286
|
+
const W = De(h[B - 2]);
|
|
1287
|
+
return (
|
|
1288
|
+
// we are dealing with nested routes
|
|
1289
|
+
B > 1 && De(E) === W && q[q.length - 1].path !== W ? q.findIndex(
|
|
1290
|
+
Ie.bind(null, h[B - 2])
|
|
1291
|
+
) : C
|
|
1292
|
+
);
|
|
1293
|
+
}), k = g(
|
|
1294
|
+
() => u.value === !0 && f.value !== -1 && Sn(n.$route.params, d.value.params)
|
|
1295
|
+
), p = g(
|
|
1296
|
+
() => k.value === !0 && f.value === n.$route.matched.length - 1 && Tn(n.$route.params, d.value.params)
|
|
1297
|
+
), T = g(() => u.value === !0 ? p.value === !0 ? ` ${o.exactActiveClass} ${o.activeClass}` : o.exact === !0 ? "" : k.value === !0 ? ` ${o.activeClass}` : "" : "");
|
|
1298
|
+
function b(h) {
|
|
1299
|
+
try {
|
|
1300
|
+
return n.$router.resolve(h);
|
|
1301
|
+
} catch {
|
|
1302
|
+
}
|
|
1303
|
+
return null;
|
|
1304
|
+
}
|
|
1305
|
+
function y(h, { returnRouterError: B, to: E = o.to, replace: q = o.replace } = {}) {
|
|
1306
|
+
if (o.disable === !0)
|
|
1307
|
+
return h.preventDefault(), Promise.resolve(!1);
|
|
1308
|
+
if (
|
|
1309
|
+
// don't redirect with control keys;
|
|
1310
|
+
// should match RouterLink from Vue Router
|
|
1311
|
+
h.metaKey || h.altKey || h.ctrlKey || h.shiftKey || h.button !== void 0 && h.button !== 0 || o.target === "_blank"
|
|
1312
|
+
)
|
|
1313
|
+
return Promise.resolve(!1);
|
|
1314
|
+
h.preventDefault();
|
|
1315
|
+
const C = n.$router[q === !0 ? "replace" : "push"](E);
|
|
1316
|
+
return B === !0 ? C : C.then(() => {
|
|
1317
|
+
}).catch(() => {
|
|
1318
|
+
});
|
|
1319
|
+
}
|
|
1320
|
+
function $(h) {
|
|
1321
|
+
if (u.value === !0) {
|
|
1322
|
+
const B = (E) => y(h, E);
|
|
1323
|
+
r("click", h, B), h.defaultPrevented !== !0 && B();
|
|
1324
|
+
} else
|
|
1325
|
+
r("click", h);
|
|
1326
|
+
}
|
|
1327
|
+
return {
|
|
1328
|
+
hasRouterLink: u,
|
|
1329
|
+
hasHrefLink: i,
|
|
1330
|
+
hasLink: x,
|
|
1331
|
+
linkTag: c,
|
|
1332
|
+
resolvedLink: d,
|
|
1333
|
+
linkIsActive: k,
|
|
1334
|
+
linkIsExactActive: p,
|
|
1335
|
+
linkClass: T,
|
|
1336
|
+
linkAttrs: s,
|
|
1337
|
+
getLink: b,
|
|
1338
|
+
navigateToRouterLink: y,
|
|
1339
|
+
navigateOnClick: $
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
const Ke = {
|
|
1343
|
+
none: 0,
|
|
1344
|
+
xs: 4,
|
|
1345
|
+
sm: 8,
|
|
1346
|
+
md: 16,
|
|
1347
|
+
lg: 24,
|
|
1348
|
+
xl: 32
|
|
1349
|
+
}, Cn = {
|
|
1350
|
+
xs: 8,
|
|
1351
|
+
sm: 10,
|
|
1352
|
+
md: 14,
|
|
1353
|
+
lg: 20,
|
|
1354
|
+
xl: 24
|
|
1355
|
+
}, $n = ["button", "submit", "reset"], _n = /[^\s]\/[^\s]/, Pn = ["flat", "outline", "push", "unelevated"];
|
|
1356
|
+
function Ln(e, t) {
|
|
1357
|
+
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
1358
|
+
}
|
|
1359
|
+
const Mn = {
|
|
1360
|
+
...it,
|
|
1361
|
+
...Bn,
|
|
1362
|
+
type: {
|
|
1363
|
+
type: String,
|
|
1364
|
+
default: "button"
|
|
1365
|
+
},
|
|
1366
|
+
label: [Number, String],
|
|
1367
|
+
icon: String,
|
|
1368
|
+
iconRight: String,
|
|
1369
|
+
...Pn.reduce(
|
|
1370
|
+
(e, t) => (e[t] = Boolean) && e,
|
|
1371
|
+
{}
|
|
1372
|
+
),
|
|
1373
|
+
square: Boolean,
|
|
1374
|
+
rounded: Boolean,
|
|
1375
|
+
glossy: Boolean,
|
|
1376
|
+
size: String,
|
|
1377
|
+
fab: Boolean,
|
|
1378
|
+
fabMini: Boolean,
|
|
1379
|
+
padding: String,
|
|
1380
|
+
color: String,
|
|
1381
|
+
textColor: String,
|
|
1382
|
+
noCaps: Boolean,
|
|
1383
|
+
noWrap: Boolean,
|
|
1384
|
+
dense: Boolean,
|
|
1385
|
+
tabindex: [Number, String],
|
|
1386
|
+
ripple: {
|
|
1387
|
+
type: [Boolean, Object],
|
|
1388
|
+
default: !0
|
|
1389
|
+
},
|
|
1390
|
+
align: {
|
|
1391
|
+
...xn.align,
|
|
1392
|
+
default: "center"
|
|
1393
|
+
},
|
|
1394
|
+
stack: Boolean,
|
|
1395
|
+
stretch: Boolean,
|
|
1396
|
+
loading: {
|
|
1397
|
+
type: Boolean,
|
|
1398
|
+
default: null
|
|
1399
|
+
},
|
|
1400
|
+
disable: Boolean
|
|
1401
|
+
}, Rn = {
|
|
1402
|
+
...Mn,
|
|
1403
|
+
round: Boolean
|
|
1404
|
+
};
|
|
1405
|
+
function Hn(e) {
|
|
1406
|
+
const t = at(e, Cn), l = kn(e), { hasRouterLink: o, hasLink: n, linkTag: r, linkAttrs: a, navigateOnClick: i } = qn({
|
|
1407
|
+
fallbackTag: "button"
|
|
1408
|
+
}), m = g(() => {
|
|
1409
|
+
const p = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
1410
|
+
return e.padding !== void 0 ? Object.assign({}, p, {
|
|
1411
|
+
padding: e.padding.split(/\s+/).map((T) => T in Ke ? Ke[T] + "px" : T).join(" "),
|
|
1412
|
+
minWidth: "0",
|
|
1413
|
+
minHeight: "0"
|
|
1414
|
+
}) : p;
|
|
1415
|
+
}), d = g(
|
|
1416
|
+
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
1417
|
+
), u = g(
|
|
1418
|
+
() => e.disable !== !0 && e.loading !== !0
|
|
1419
|
+
), x = g(() => u.value === !0 ? e.tabindex || 0 : -1), c = g(() => Ln(e, "standard")), s = g(() => {
|
|
1420
|
+
const p = { tabindex: x.value };
|
|
1421
|
+
return n.value === !0 ? Object.assign(p, a.value) : $n.includes(e.type) === !0 && (p.type = e.type), r.value === "a" ? (e.disable === !0 ? p["aria-disabled"] = "true" : p.href === void 0 && (p.role = "button"), o.value !== !0 && _n.test(e.type) === !0 && (p.type = e.type)) : e.disable === !0 && (p.disabled = "", p["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(p, {
|
|
1422
|
+
role: "progressbar",
|
|
1423
|
+
"aria-valuemin": 0,
|
|
1424
|
+
"aria-valuemax": 100,
|
|
1425
|
+
"aria-valuenow": e.percentage
|
|
1426
|
+
}), p;
|
|
1427
|
+
}), f = g(() => {
|
|
1428
|
+
let p;
|
|
1429
|
+
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? p = `text-${e.textColor || e.color}` : p = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (p = `text-${e.textColor}`);
|
|
1430
|
+
const T = e.round === !0 ? "round" : `rectangle${d.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
1431
|
+
return `q-btn--${c.value} q-btn--${T}` + (p !== void 0 ? " " + p : "") + (u.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
1432
|
+
}), k = g(
|
|
1433
|
+
() => l.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
1434
|
+
);
|
|
1435
|
+
return {
|
|
1436
|
+
classes: f,
|
|
1437
|
+
style: m,
|
|
1438
|
+
innerClasses: k,
|
|
1439
|
+
attributes: s,
|
|
1440
|
+
hasLink: n,
|
|
1441
|
+
linkTag: r,
|
|
1442
|
+
navigateOnClick: i,
|
|
1443
|
+
isActionable: u
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
const { passiveCapture: L } = I;
|
|
1447
|
+
let F = null, K = null, Q = null;
|
|
1448
|
+
const On = X({
|
|
1449
|
+
name: "QBtn",
|
|
1450
|
+
props: {
|
|
1451
|
+
...Rn,
|
|
1452
|
+
percentage: Number,
|
|
1453
|
+
darkPercentage: Boolean,
|
|
1454
|
+
onTouchstart: [Function, Array]
|
|
1455
|
+
},
|
|
1456
|
+
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
1457
|
+
setup(e, { slots: t, emit: l }) {
|
|
1458
|
+
const { proxy: o } = O(), {
|
|
1459
|
+
classes: n,
|
|
1460
|
+
style: r,
|
|
1461
|
+
innerClasses: a,
|
|
1462
|
+
attributes: i,
|
|
1463
|
+
hasLink: m,
|
|
1464
|
+
linkTag: d,
|
|
1465
|
+
navigateOnClick: u,
|
|
1466
|
+
isActionable: x
|
|
1467
|
+
} = Hn(e), c = R(null), s = R(null);
|
|
1468
|
+
let f = null, k, p = null;
|
|
1469
|
+
const T = g(
|
|
1470
|
+
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
1471
|
+
), b = g(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
1472
|
+
keyCodes: m.value === !0 ? [13, 32] : [13],
|
|
1473
|
+
...e.ripple === !0 ? {} : e.ripple
|
|
1474
|
+
}), y = g(() => ({ center: e.round })), $ = g(() => {
|
|
1475
|
+
const v = Math.max(0, Math.min(100, e.percentage));
|
|
1476
|
+
return v > 0 ? { transition: "transform 0.6s", transform: `translateX(${v - 100}%)` } : {};
|
|
1477
|
+
}), h = g(() => {
|
|
1478
|
+
if (e.loading === !0)
|
|
1479
|
+
return {
|
|
1480
|
+
onMousedown: z,
|
|
1481
|
+
onTouchstart: z,
|
|
1482
|
+
onClick: z,
|
|
1483
|
+
onKeydown: z,
|
|
1484
|
+
onKeyup: z
|
|
1485
|
+
};
|
|
1486
|
+
if (x.value === !0) {
|
|
1487
|
+
const v = {
|
|
1488
|
+
onClick: E,
|
|
1489
|
+
onKeydown: q,
|
|
1490
|
+
onMousedown: W
|
|
1491
|
+
};
|
|
1492
|
+
if (o.$q.platform.has.touch === !0) {
|
|
1493
|
+
const S = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
1494
|
+
v[`onTouchstart${S}`] = C;
|
|
1495
|
+
}
|
|
1496
|
+
return v;
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
// needed; especially for disabled <a> tags
|
|
1500
|
+
onClick: V
|
|
1501
|
+
};
|
|
1502
|
+
}), B = g(() => ({
|
|
1503
|
+
ref: c,
|
|
1504
|
+
class: "q-btn q-btn-item non-selectable no-outline " + n.value,
|
|
1505
|
+
style: r.value,
|
|
1506
|
+
...i.value,
|
|
1507
|
+
...h.value
|
|
1508
|
+
}));
|
|
1509
|
+
function E(v) {
|
|
1510
|
+
if (c.value !== null) {
|
|
1511
|
+
if (v !== void 0) {
|
|
1512
|
+
if (v.defaultPrevented === !0)
|
|
1513
|
+
return;
|
|
1514
|
+
const S = document.activeElement;
|
|
1515
|
+
if (e.type === "submit" && S !== document.body && c.value.contains(S) === !1 && S.contains(c.value) === !1) {
|
|
1516
|
+
c.value.focus();
|
|
1517
|
+
const M = () => {
|
|
1518
|
+
document.removeEventListener("keydown", V, !0), document.removeEventListener("keyup", M, L), c.value !== null && c.value.removeEventListener("blur", M, L);
|
|
1519
|
+
};
|
|
1520
|
+
document.addEventListener("keydown", V, !0), document.addEventListener("keyup", M, L), c.value.addEventListener("blur", M, L);
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
u(v);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
function q(v) {
|
|
1527
|
+
c.value !== null && (l("keydown", v), ae(v, [13, 32]) === !0 && K !== c.value && (K !== null && j(), v.defaultPrevented !== !0 && (c.value.focus(), K = c.value, c.value.classList.add("q-btn--active"), document.addEventListener("keyup", P, !0), c.value.addEventListener("blur", P, L)), V(v)));
|
|
1528
|
+
}
|
|
1529
|
+
function C(v) {
|
|
1530
|
+
c.value !== null && (l("touchstart", v), v.defaultPrevented !== !0 && (F !== c.value && (F !== null && j(), F = c.value, f = v.target, f.addEventListener("touchcancel", P, L), f.addEventListener("touchend", P, L)), k = !0, p !== null && clearTimeout(p), p = setTimeout(() => {
|
|
1531
|
+
p = null, k = !1;
|
|
1532
|
+
}, 200)));
|
|
1533
|
+
}
|
|
1534
|
+
function W(v) {
|
|
1535
|
+
c.value !== null && (v.qSkipRipple = k === !0, l("mousedown", v), v.defaultPrevented !== !0 && Q !== c.value && (Q !== null && j(), Q = c.value, c.value.classList.add("q-btn--active"), document.addEventListener("mouseup", P, L)));
|
|
1536
|
+
}
|
|
1537
|
+
function P(v) {
|
|
1538
|
+
if (c.value !== null && !(v !== void 0 && v.type === "blur" && document.activeElement === c.value)) {
|
|
1539
|
+
if (v !== void 0 && v.type === "keyup") {
|
|
1540
|
+
if (K === c.value && ae(v, [13, 32]) === !0) {
|
|
1541
|
+
const S = new MouseEvent("click", v);
|
|
1542
|
+
S.qKeyEvent = !0, v.defaultPrevented === !0 && ye(S), v.cancelBubble === !0 && et(S), c.value.dispatchEvent(S), V(v), v.qKeyEvent = !0;
|
|
1543
|
+
}
|
|
1544
|
+
l("keyup", v);
|
|
1545
|
+
}
|
|
1546
|
+
j();
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
function j(v) {
|
|
1550
|
+
const S = s.value;
|
|
1551
|
+
v !== !0 && (F === c.value || Q === c.value) && S !== null && S !== document.activeElement && (S.setAttribute("tabindex", -1), S.focus()), F === c.value && (f !== null && (f.removeEventListener("touchcancel", P, L), f.removeEventListener("touchend", P, L)), F = f = null), Q === c.value && (document.removeEventListener("mouseup", P, L), Q = null), K === c.value && (document.removeEventListener("keyup", P, !0), c.value !== null && c.value.removeEventListener("blur", P, L), K = null), c.value !== null && c.value.classList.remove("q-btn--active");
|
|
1552
|
+
}
|
|
1553
|
+
function z(v) {
|
|
1554
|
+
V(v), v.qSkipRipple = !0;
|
|
1555
|
+
}
|
|
1556
|
+
return D(() => {
|
|
1557
|
+
j(!0);
|
|
1558
|
+
}), Object.assign(o, {
|
|
1559
|
+
click: (v) => {
|
|
1560
|
+
x.value === !0 && E(v);
|
|
1561
|
+
}
|
|
1562
|
+
}), () => {
|
|
1563
|
+
let v = [];
|
|
1564
|
+
e.icon !== void 0 && v.push(
|
|
1565
|
+
w(Ae, {
|
|
1566
|
+
name: e.icon,
|
|
1567
|
+
left: e.stack !== !0 && T.value === !0,
|
|
1568
|
+
role: "img"
|
|
1569
|
+
})
|
|
1570
|
+
), T.value === !0 && v.push(
|
|
1571
|
+
w("span", { class: "block" }, [e.label])
|
|
1572
|
+
), v = U(t.default, v), e.iconRight !== void 0 && e.round === !1 && v.push(
|
|
1573
|
+
w(Ae, {
|
|
1574
|
+
name: e.iconRight,
|
|
1575
|
+
right: e.stack !== !0 && T.value === !0,
|
|
1576
|
+
role: "img"
|
|
1577
|
+
})
|
|
1578
|
+
);
|
|
1579
|
+
const S = [
|
|
1580
|
+
w("span", {
|
|
1581
|
+
class: "q-focus-helper",
|
|
1582
|
+
ref: s
|
|
1583
|
+
})
|
|
1584
|
+
];
|
|
1585
|
+
return e.loading === !0 && e.percentage !== void 0 && S.push(
|
|
1586
|
+
w("span", {
|
|
1587
|
+
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
1588
|
+
}, [
|
|
1589
|
+
w("span", {
|
|
1590
|
+
class: "q-btn__progress-indicator fit block",
|
|
1591
|
+
style: $.value
|
|
1592
|
+
})
|
|
1593
|
+
])
|
|
1594
|
+
), S.push(
|
|
1595
|
+
w("span", {
|
|
1596
|
+
class: "q-btn__content text-center col items-center q-anchor--skip " + a.value
|
|
1597
|
+
}, v)
|
|
1598
|
+
), e.loading !== null && S.push(
|
|
1599
|
+
w(Ye, {
|
|
1600
|
+
name: "q-transition--fade"
|
|
1601
|
+
}, () => e.loading === !0 ? [
|
|
1602
|
+
w("span", {
|
|
1603
|
+
key: "loading",
|
|
1604
|
+
class: "absolute-full flex flex-center"
|
|
1605
|
+
}, t.loading !== void 0 ? t.loading() : [w(pn)])
|
|
1606
|
+
] : null)
|
|
1607
|
+
), wt(
|
|
1608
|
+
w(
|
|
1609
|
+
d.value,
|
|
1610
|
+
B.value,
|
|
1611
|
+
S
|
|
1612
|
+
),
|
|
1613
|
+
[[
|
|
1614
|
+
yn,
|
|
1615
|
+
b.value,
|
|
1616
|
+
void 0,
|
|
1617
|
+
y.value
|
|
1618
|
+
]]
|
|
1619
|
+
);
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
}), Wn = /* @__PURE__ */ ce({
|
|
1623
|
+
__name: "AppButton",
|
|
1624
|
+
props: {
|
|
1625
|
+
disable: { type: [Boolean, Function] },
|
|
1626
|
+
tooltip: {},
|
|
1627
|
+
uppercase: { type: Boolean },
|
|
1628
|
+
xSmall: { type: Boolean },
|
|
1629
|
+
small: { type: Boolean },
|
|
1630
|
+
large: { type: Boolean },
|
|
1631
|
+
fullWidth: { type: Boolean },
|
|
1632
|
+
wrap: { type: Boolean },
|
|
1633
|
+
largeIcon: { type: Boolean },
|
|
1634
|
+
modelValue: { type: Boolean },
|
|
1635
|
+
badge: { type: [String, Boolean, Number] },
|
|
1636
|
+
badgeColor: {},
|
|
1637
|
+
badgeInline: { type: Boolean },
|
|
1638
|
+
link: { type: Boolean },
|
|
1639
|
+
size: {},
|
|
1640
|
+
type: {},
|
|
1641
|
+
to: {},
|
|
1642
|
+
replace: { type: Boolean },
|
|
1643
|
+
href: {},
|
|
1644
|
+
target: {},
|
|
1645
|
+
label: {},
|
|
1646
|
+
icon: {},
|
|
1647
|
+
iconRight: {},
|
|
1648
|
+
outline: { type: Boolean },
|
|
1649
|
+
flat: { type: Boolean },
|
|
1650
|
+
unelevated: { type: Boolean },
|
|
1651
|
+
rounded: { type: Boolean },
|
|
1652
|
+
push: { type: Boolean },
|
|
1653
|
+
square: { type: Boolean },
|
|
1654
|
+
glossy: { type: Boolean },
|
|
1655
|
+
fab: { type: Boolean },
|
|
1656
|
+
fabMini: { type: Boolean },
|
|
1657
|
+
padding: {},
|
|
1658
|
+
color: {},
|
|
1659
|
+
textColor: {},
|
|
1660
|
+
noCaps: { type: Boolean },
|
|
1661
|
+
noWrap: { type: Boolean },
|
|
1662
|
+
dense: { type: Boolean },
|
|
1663
|
+
ripple: { type: Boolean },
|
|
1664
|
+
tabindex: {},
|
|
1665
|
+
align: {},
|
|
1666
|
+
stack: { type: Boolean },
|
|
1667
|
+
stretch: { type: Boolean },
|
|
1668
|
+
loading: { type: Boolean },
|
|
1669
|
+
round: { type: Boolean },
|
|
1670
|
+
percentage: {},
|
|
1671
|
+
darkPercentage: { type: Boolean }
|
|
1672
|
+
},
|
|
1673
|
+
emits: ["update:modelValue", "click"],
|
|
1674
|
+
setup(e, { emit: t }) {
|
|
1675
|
+
const l = e, o = t;
|
|
1676
|
+
function n(i) {
|
|
1677
|
+
o("click", i), o("update:modelValue", !l.modelValue);
|
|
1678
|
+
}
|
|
1679
|
+
const r = g(() => l.badge === void 0 || l.badge === !1 || l.badge === !0 || l.badge === "" ? "" : l.badge), a = g(() => typeof l.disable == "function" ? l.disable() : l.disable);
|
|
1680
|
+
return (i, m) => (Y(), te(On, xt(i.$props, {
|
|
1681
|
+
class: [[i.$style.wrapper], "hover-bg-secondary hover-text-black"],
|
|
1682
|
+
disable: a.value,
|
|
1683
|
+
"no-caps": !i.uppercase,
|
|
1684
|
+
"no-wrap": !i.wrap,
|
|
1685
|
+
onClick: n
|
|
1686
|
+
}), {
|
|
1687
|
+
default: fe(() => [
|
|
1688
|
+
kt(i.$slots, "default"),
|
|
1689
|
+
i.badge ? (Y(), te(qt, {
|
|
1690
|
+
key: 0,
|
|
1691
|
+
style: { padding: "6px", top: "-10px", right: "-10px", "font-size": "12px" },
|
|
1692
|
+
color: i.badgeColor,
|
|
1693
|
+
floating: !i.badgeInline,
|
|
1694
|
+
rounded: !0
|
|
1695
|
+
}, {
|
|
1696
|
+
default: fe(() => [
|
|
1697
|
+
Te(Be(r.value), 1)
|
|
1698
|
+
]),
|
|
1699
|
+
_: 1
|
|
1700
|
+
}, 8, ["color", "floating"])) : qe("", !0),
|
|
1701
|
+
i.tooltip ? (Y(), te(rn, {
|
|
1702
|
+
key: 1,
|
|
1703
|
+
class: "text-body2",
|
|
1704
|
+
delay: 400
|
|
1705
|
+
}, {
|
|
1706
|
+
default: fe(() => [
|
|
1707
|
+
Te(Be(i.tooltip), 1)
|
|
1708
|
+
]),
|
|
1709
|
+
_: 1
|
|
1710
|
+
})) : qe("", !0)
|
|
1711
|
+
]),
|
|
1712
|
+
_: 3
|
|
1713
|
+
}, 16, ["class", "disable", "no-caps", "no-wrap"]));
|
|
1714
|
+
}
|
|
1715
|
+
}), jn = "_wrapper_1g76t_1", zn = {
|
|
1716
|
+
wrapper: jn
|
|
1717
|
+
}, An = (e, t) => {
|
|
1718
|
+
const l = e.__vccOpts || e;
|
|
1719
|
+
for (const [o, n] of t)
|
|
1720
|
+
l[o] = n;
|
|
1721
|
+
return l;
|
|
1722
|
+
}, Vn = {
|
|
1723
|
+
$style: zn
|
|
1724
|
+
}, Nn = /* @__PURE__ */ An(Wn, [["__cssModules", Vn]]), Dn = /* @__PURE__ */ ce({
|
|
1725
|
+
__name: "App",
|
|
1726
|
+
setup(e) {
|
|
1727
|
+
return (t, l) => (Y(), te(Nn, {
|
|
1728
|
+
label: "asad",
|
|
1729
|
+
color: "primary"
|
|
1730
|
+
}));
|
|
1731
|
+
}
|
|
1732
|
+
}), Fn = /* @__PURE__ */ ce({
|
|
1733
|
+
__name: "AppTestButton",
|
|
1734
|
+
setup(e) {
|
|
1735
|
+
return (t, l) => (Y(), St("div", null, [
|
|
1736
|
+
Et(Dn)
|
|
1737
|
+
]));
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1740
|
+
export {
|
|
1741
|
+
Fn as AppTestButton
|
|
1742
|
+
};
|