shared-ritm 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared-ritm.es.js +289 -304
- package/dist/shared-ritm.umd.js +1 -1
- package/dist/types/Api/ApiService.d.ts +24 -0
- package/dist/types/Api/GanttService.d.ts +7 -0
- package/dist/types/Api/MetricsService.d.ts +21 -0
- package/dist/types/Api/ProjectsService.d.ts +7 -0
- package/dist/types/Api/RepairsService.d.ts +15 -0
- package/dist/types/Api/TasksService.d.ts +7 -0
- package/dist/types/Api/types/Api_Metrics.d.ts +0 -0
- package/dist/types/Api/types/Api_Repairs.d.ts +49 -0
- package/dist/types/Api/types/Api_Tasks.d.ts +93 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/main.d.ts +3 -0
- package/dist/types/quasar-user-options.d.ts +14 -0
- package/package.json +4 -3
package/dist/shared-ritm.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { markRaw as
|
|
1
|
+
import { markRaw as Ke, defineComponent as Qe, computed as g, h as w, ref as R, reactive as gt, getCurrentInstance as O, nextTick as ee, 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 se, createBlock as ce, mergeProps as xt, withCtx as de, renderSlot as kt, createTextVNode as Ee, toDisplayString as Te, createCommentVNode as qe } from "vue";
|
|
2
2
|
function Ge(e, t, l, o) {
|
|
3
3
|
return Object.defineProperty(e, t, {
|
|
4
4
|
get: l,
|
|
@@ -7,10 +7,10 @@ function Ge(e, t, l, o) {
|
|
|
7
7
|
}), e;
|
|
8
8
|
}
|
|
9
9
|
function X(e) {
|
|
10
|
-
return Qe(
|
|
10
|
+
return Ke(Qe(e));
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function St(e) {
|
|
13
|
+
return Ke(e);
|
|
14
14
|
}
|
|
15
15
|
function Je(e, t) {
|
|
16
16
|
return e !== void 0 && e() || t;
|
|
@@ -18,7 +18,7 @@ function Je(e, t) {
|
|
|
18
18
|
function U(e, t) {
|
|
19
19
|
return e !== void 0 ? t.concat(e()) : t;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const Et = ["top", "middle", "bottom"], Tt = X({
|
|
22
22
|
name: "QBadge",
|
|
23
23
|
props: {
|
|
24
24
|
color: String,
|
|
@@ -31,7 +31,7 @@ const Bt = ["top", "middle", "bottom"], qt = X({
|
|
|
31
31
|
label: [Number, String],
|
|
32
32
|
align: {
|
|
33
33
|
type: String,
|
|
34
|
-
validator: (e) =>
|
|
34
|
+
validator: (e) => Et.includes(e)
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
setup(e, { slots: t }) {
|
|
@@ -46,11 +46,11 @@ const Bt = ["top", "middle", "bottom"], qt = X({
|
|
|
46
46
|
"aria-label": e.label
|
|
47
47
|
}, U(t.default, e.label !== void 0 ? [e.label] : []));
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
49
|
+
}), te = R(
|
|
50
50
|
!1
|
|
51
51
|
);
|
|
52
|
-
let
|
|
53
|
-
function
|
|
52
|
+
let he;
|
|
53
|
+
function qt(e, t) {
|
|
54
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
55
|
return {
|
|
56
56
|
browser: l[5] || l[3] || l[1] || "",
|
|
@@ -58,12 +58,12 @@ function Ct(e, t) {
|
|
|
58
58
|
platform: t[0] || ""
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ct(e) {
|
|
62
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
63
|
}
|
|
64
64
|
const Ze = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
65
|
-
function
|
|
66
|
-
const t = e.toLowerCase(), l =
|
|
65
|
+
function Bt(e) {
|
|
66
|
+
const t = e.toLowerCase(), l = Ct(t), o = qt(t, l), n = {
|
|
67
67
|
mobile: !1,
|
|
68
68
|
desktop: !1,
|
|
69
69
|
cordova: !1,
|
|
@@ -104,7 +104,7 @@ function _t(e) {
|
|
|
104
104
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
105
105
|
n.bex = !0;
|
|
106
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"),
|
|
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"), te.value === !0 && (he = { 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
108
|
delete n.mac, delete n.desktop;
|
|
109
109
|
const a = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
110
110
|
Object.assign(n, {
|
|
@@ -118,32 +118,32 @@ function _t(e) {
|
|
|
118
118
|
}
|
|
119
119
|
return n;
|
|
120
120
|
}
|
|
121
|
-
const Ce = navigator.userAgent || navigator.vendor || window.opera,
|
|
121
|
+
const Ce = navigator.userAgent || navigator.vendor || window.opera, $t = {
|
|
122
122
|
has: {
|
|
123
123
|
touch: !1,
|
|
124
124
|
webStorage: !1
|
|
125
125
|
},
|
|
126
126
|
within: { iframe: !1 }
|
|
127
|
-
},
|
|
127
|
+
}, ne = {
|
|
128
128
|
userAgent: Ce,
|
|
129
|
-
is:
|
|
129
|
+
is: Bt(Ce),
|
|
130
130
|
has: {
|
|
131
131
|
touch: Ze
|
|
132
132
|
},
|
|
133
133
|
within: {
|
|
134
134
|
iframe: window.self !== window.top
|
|
135
135
|
}
|
|
136
|
-
},
|
|
136
|
+
}, ge = {
|
|
137
137
|
install(e) {
|
|
138
138
|
const { $q: t } = e;
|
|
139
|
-
|
|
140
|
-
Object.assign(t.platform,
|
|
139
|
+
te.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
140
|
+
Object.assign(t.platform, ne), te.value = !1;
|
|
141
141
|
}), t.platform = gt(this)) : t.platform = this;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
{
|
|
145
145
|
let e;
|
|
146
|
-
Ge(
|
|
146
|
+
Ge(ne.has, "webStorage", () => {
|
|
147
147
|
if (e !== void 0)
|
|
148
148
|
return e;
|
|
149
149
|
try {
|
|
@@ -152,12 +152,12 @@ const Ce = navigator.userAgent || navigator.vendor || window.opera, Pt = {
|
|
|
152
152
|
} catch {
|
|
153
153
|
}
|
|
154
154
|
return e = !1, !1;
|
|
155
|
-
}), Object.assign(
|
|
155
|
+
}), Object.assign(ge, ne), te.value === !0 && (Object.assign(ge, he, $t), he = null);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function pe() {
|
|
158
158
|
if (window.getSelection !== void 0) {
|
|
159
159
|
const e = window.getSelection();
|
|
160
|
-
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(),
|
|
160
|
+
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), ge.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
161
161
|
} else document.selection !== void 0 && document.selection.empty();
|
|
162
162
|
}
|
|
163
163
|
const I = {
|
|
@@ -180,7 +180,7 @@ try {
|
|
|
180
180
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
181
181
|
} catch {
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Pt(e) {
|
|
184
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
185
|
top: e.clientY,
|
|
186
186
|
left: e.clientX
|
|
@@ -189,31 +189,31 @@ function Lt(e) {
|
|
|
189
189
|
function et(e) {
|
|
190
190
|
e.stopPropagation();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function be(e) {
|
|
193
193
|
e.cancelable !== !1 && e.preventDefault();
|
|
194
194
|
}
|
|
195
195
|
function V(e) {
|
|
196
196
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function G(e, t, l) {
|
|
199
199
|
const o = `__q_${t}_evt`;
|
|
200
200
|
e[o] = e[o] !== void 0 ? e[o].concat(l) : l, l.forEach((n) => {
|
|
201
201
|
n[0].addEventListener(n[1], e[n[2]], I[n[3]]);
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function oe(e, t) {
|
|
205
205
|
const l = `__q_${t}_evt`;
|
|
206
206
|
e[l] !== void 0 && (e[l].forEach((o) => {
|
|
207
207
|
o[0].removeEventListener(o[1], e[o[2]], I[o[3]]);
|
|
208
208
|
}), e[l] = void 0);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Lt(e) {
|
|
211
211
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function le(e, t) {
|
|
214
|
+
return Lt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const Mt = {
|
|
217
217
|
/* SSR does not know about Element */
|
|
218
218
|
target: {
|
|
219
219
|
type: [Boolean, String, Element],
|
|
@@ -221,7 +221,7 @@ const Rt = {
|
|
|
221
221
|
},
|
|
222
222
|
noParentEvent: Boolean
|
|
223
223
|
};
|
|
224
|
-
function
|
|
224
|
+
function _t({
|
|
225
225
|
showing: e,
|
|
226
226
|
avoidEmit: t,
|
|
227
227
|
// required for QPopupProxy (true)
|
|
@@ -242,20 +242,20 @@ function Ht({
|
|
|
242
242
|
n.toggle(s), s.qAnchorHandled = !0;
|
|
243
243
|
},
|
|
244
244
|
toggleKey(s) {
|
|
245
|
-
|
|
245
|
+
le(s, 13) === !0 && d.toggle(s);
|
|
246
246
|
},
|
|
247
247
|
contextClick(s) {
|
|
248
|
-
n.hide(s),
|
|
248
|
+
n.hide(s), be(s), ee(() => {
|
|
249
249
|
n.show(s), s.qAnchorHandled = !0;
|
|
250
250
|
});
|
|
251
251
|
},
|
|
252
|
-
prevent:
|
|
252
|
+
prevent: be,
|
|
253
253
|
mobileTouch(s) {
|
|
254
254
|
if (d.mobileCleanup(s), m(s) !== !0)
|
|
255
255
|
return;
|
|
256
256
|
n.hide(s), a.value.classList.add("non-selectable");
|
|
257
257
|
const f = s.target;
|
|
258
|
-
|
|
258
|
+
G(d, "anchor", [
|
|
259
259
|
[f, "touchmove", "mobileCleanup", "passive"],
|
|
260
260
|
[f, "touchend", "mobileCleanup", "passive"],
|
|
261
261
|
[f, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -265,7 +265,7 @@ function Ht({
|
|
|
265
265
|
}, 300);
|
|
266
266
|
},
|
|
267
267
|
mobileCleanup(s) {
|
|
268
|
-
a.value.classList.remove("non-selectable"), i !== null && (clearTimeout(i), i = null), e.value === !0 && s !== void 0 &&
|
|
268
|
+
a.value.classList.remove("non-selectable"), i !== null && (clearTimeout(i), i = null), e.value === !0 && s !== void 0 && pe();
|
|
269
269
|
}
|
|
270
270
|
}), l = function(s = o.contextMenu) {
|
|
271
271
|
if (o.noParentEvent === !0 || a.value === null) return;
|
|
@@ -278,10 +278,10 @@ function Ht({
|
|
|
278
278
|
] : f = [
|
|
279
279
|
[a.value, "click", "toggle", "passive"],
|
|
280
280
|
[a.value, "keyup", "toggleKey", "passive"]
|
|
281
|
-
],
|
|
281
|
+
], G(d, "anchor", f);
|
|
282
282
|
});
|
|
283
283
|
function u() {
|
|
284
|
-
|
|
284
|
+
oe(d, "anchor");
|
|
285
285
|
}
|
|
286
286
|
function x(s) {
|
|
287
287
|
for (a.value = s; a.value.classList.contains("q-anchor--skip"); )
|
|
@@ -320,7 +320,7 @@ function Ht({
|
|
|
320
320
|
anchorEvents: d
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function Rt(e, t) {
|
|
324
324
|
const l = R(null);
|
|
325
325
|
let o;
|
|
326
326
|
function n(i, m) {
|
|
@@ -345,19 +345,19 @@ function tt(e) {
|
|
|
345
345
|
function nt(e) {
|
|
346
346
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
347
347
|
}
|
|
348
|
-
const
|
|
348
|
+
const Ht = {
|
|
349
349
|
modelValue: {
|
|
350
350
|
type: Boolean,
|
|
351
351
|
default: null
|
|
352
352
|
},
|
|
353
353
|
"onUpdate:modelValue": [Function, Array]
|
|
354
|
-
},
|
|
354
|
+
}, Ot = [
|
|
355
355
|
"beforeShow",
|
|
356
356
|
"show",
|
|
357
357
|
"beforeHide",
|
|
358
358
|
"hide"
|
|
359
359
|
];
|
|
360
|
-
function
|
|
360
|
+
function Wt({
|
|
361
361
|
showing: e,
|
|
362
362
|
canShow: t,
|
|
363
363
|
// optional
|
|
@@ -379,7 +379,7 @@ function zt({
|
|
|
379
379
|
if (i.disable === !0 || b !== void 0 && b.qAnchorHandled === !0 || t !== void 0 && t(b) !== !0)
|
|
380
380
|
return;
|
|
381
381
|
const y = i["onUpdate:modelValue"] !== void 0;
|
|
382
|
-
y === !0 && (m("update:modelValue", !0), u = b,
|
|
382
|
+
y === !0 && (m("update:modelValue", !0), u = b, ee(() => {
|
|
383
383
|
u === b && (u = void 0);
|
|
384
384
|
})), (i.modelValue === null || y === !1) && s(b);
|
|
385
385
|
}
|
|
@@ -390,7 +390,7 @@ function zt({
|
|
|
390
390
|
if (i.disable === !0)
|
|
391
391
|
return;
|
|
392
392
|
const y = i["onUpdate:modelValue"] !== void 0;
|
|
393
|
-
y === !0 && (m("update:modelValue", !1), u = b,
|
|
393
|
+
y === !0 && (m("update:modelValue", !1), u = b, ee(() => {
|
|
394
394
|
u === b && (u = void 0);
|
|
395
395
|
})), (i.modelValue === null || y === !1) && k(b);
|
|
396
396
|
}
|
|
@@ -408,51 +408,51 @@ function zt({
|
|
|
408
408
|
const T = { show: c, hide: f, toggle: x };
|
|
409
409
|
return Object.assign(d, T), T;
|
|
410
410
|
}
|
|
411
|
-
let
|
|
411
|
+
let J = [], ie = [];
|
|
412
412
|
function ot(e) {
|
|
413
|
-
|
|
413
|
+
ie = ie.filter((t) => t !== e);
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
ot(e),
|
|
415
|
+
function jt(e) {
|
|
416
|
+
ot(e), ie.push(e);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
ot(e),
|
|
418
|
+
function Be(e) {
|
|
419
|
+
ot(e), ie.length === 0 && J.length !== 0 && (J[J.length - 1](), J = []);
|
|
420
420
|
}
|
|
421
|
-
const
|
|
422
|
-
let
|
|
423
|
-
function
|
|
421
|
+
const $e = {};
|
|
422
|
+
let zt = 1, At = document.body;
|
|
423
|
+
function Vt(e, t) {
|
|
424
424
|
const l = document.createElement("div");
|
|
425
|
-
if (l.id = `q-portal--${t}--${
|
|
426
|
-
const o =
|
|
425
|
+
if (l.id = `q-portal--${t}--${zt++}`, $e.globalNodes !== void 0) {
|
|
426
|
+
const o = $e.globalNodes.class;
|
|
427
427
|
o !== void 0 && (l.className = o);
|
|
428
428
|
}
|
|
429
|
-
return
|
|
429
|
+
return At.appendChild(l), l;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Nt(e) {
|
|
432
432
|
e.remove();
|
|
433
433
|
}
|
|
434
|
-
const
|
|
434
|
+
const Y = [], Dt = X({
|
|
435
435
|
name: "QPortal",
|
|
436
436
|
setup(e, { slots: t }) {
|
|
437
437
|
return () => t.default();
|
|
438
438
|
}
|
|
439
439
|
});
|
|
440
|
-
function
|
|
440
|
+
function It(e, t, l, o) {
|
|
441
441
|
const n = R(!1), r = R(!1);
|
|
442
442
|
let a = null;
|
|
443
443
|
const i = {};
|
|
444
444
|
function m(u) {
|
|
445
445
|
if (u === !0) {
|
|
446
|
-
|
|
446
|
+
Be(i), r.value = !0;
|
|
447
447
|
return;
|
|
448
448
|
}
|
|
449
|
-
r.value = !1, n.value === !1 && (a === null && (a =
|
|
449
|
+
r.value = !1, n.value === !1 && (a === null && (a = Vt(!1, o)), n.value = !0, Y.push(e.proxy), jt(i));
|
|
450
450
|
}
|
|
451
451
|
function d(u) {
|
|
452
452
|
if (r.value = !1, u !== !0) return;
|
|
453
|
-
|
|
454
|
-
const x =
|
|
455
|
-
x !== -1 &&
|
|
453
|
+
Be(i), n.value = !1;
|
|
454
|
+
const x = Y.indexOf(e.proxy);
|
|
455
|
+
x !== -1 && Y.splice(x, 1), a !== null && (Nt(a), a = null);
|
|
456
456
|
}
|
|
457
457
|
return pt(() => {
|
|
458
458
|
d(!0);
|
|
@@ -461,10 +461,10 @@ function Kt(e, t, l, o) {
|
|
|
461
461
|
hidePortal: d,
|
|
462
462
|
portalIsActive: n,
|
|
463
463
|
portalIsAccessible: r,
|
|
464
|
-
renderPortal: () => n.value === !0 ? [w(bt, { to: a }, w(
|
|
464
|
+
renderPortal: () => n.value === !0 ? [w(bt, { to: a }, w(Dt, l))] : void 0
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
const
|
|
467
|
+
const fe = {
|
|
468
468
|
transitionShow: {
|
|
469
469
|
type: String,
|
|
470
470
|
default: "fade"
|
|
@@ -478,7 +478,7 @@ const ve = {
|
|
|
478
478
|
default: 300
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
function
|
|
481
|
+
function Ft(e, t = () => {
|
|
482
482
|
}, l = () => {
|
|
483
483
|
}) {
|
|
484
484
|
return {
|
|
@@ -497,7 +497,7 @@ function Qt(e, t = () => {
|
|
|
497
497
|
transitionStyle: g(() => `--q-transition-duration: ${e.transitionDuration}ms`)
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Kt() {
|
|
501
501
|
let e;
|
|
502
502
|
const t = O();
|
|
503
503
|
function l() {
|
|
@@ -506,13 +506,13 @@ function Ut() {
|
|
|
506
506
|
return Xe(l), D(l), {
|
|
507
507
|
removeTick: l,
|
|
508
508
|
registerTick(o) {
|
|
509
|
-
e = o,
|
|
509
|
+
e = o, ee(() => {
|
|
510
510
|
e === o && (nt(t) === !1 && e(), e = void 0);
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Qt() {
|
|
516
516
|
let e = null;
|
|
517
517
|
const t = O();
|
|
518
518
|
function l() {
|
|
@@ -527,12 +527,12 @@ function Xt() {
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ye(e, t) {
|
|
531
531
|
const l = e.style;
|
|
532
532
|
for (const o in t)
|
|
533
533
|
l[o] = t[o];
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Ut(e) {
|
|
536
536
|
if (e == null)
|
|
537
537
|
return;
|
|
538
538
|
if (typeof e == "string")
|
|
@@ -545,25 +545,25 @@ function Yt(e) {
|
|
|
545
545
|
if (t)
|
|
546
546
|
return t.$el || t;
|
|
547
547
|
}
|
|
548
|
-
const
|
|
549
|
-
function
|
|
550
|
-
let l =
|
|
548
|
+
const Xt = [Element, String], Yt = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
549
|
+
function Gt(e, t) {
|
|
550
|
+
let l = Ut(t);
|
|
551
551
|
if (l === void 0) {
|
|
552
552
|
if (e == null)
|
|
553
553
|
return window;
|
|
554
554
|
l = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return Yt.includes(l) ? window : l;
|
|
557
557
|
}
|
|
558
|
-
let
|
|
559
|
-
function
|
|
560
|
-
if (
|
|
561
|
-
return
|
|
558
|
+
let Z;
|
|
559
|
+
function Jt() {
|
|
560
|
+
if (Z !== void 0)
|
|
561
|
+
return Z;
|
|
562
562
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
563
|
-
|
|
563
|
+
ye(e, {
|
|
564
564
|
width: "100%",
|
|
565
565
|
height: "200px"
|
|
566
|
-
}),
|
|
566
|
+
}), ye(t, {
|
|
567
567
|
position: "absolute",
|
|
568
568
|
top: "0px",
|
|
569
569
|
left: "0px",
|
|
@@ -575,16 +575,16 @@ function en() {
|
|
|
575
575
|
const l = e.offsetWidth;
|
|
576
576
|
t.style.overflow = "scroll";
|
|
577
577
|
let o = e.offsetWidth;
|
|
578
|
-
return l === o && (o = t.clientWidth), t.remove(),
|
|
578
|
+
return l === o && (o = t.clientWidth), t.remove(), Z = l - o, Z;
|
|
579
579
|
}
|
|
580
|
-
const { notPassiveCapture:
|
|
581
|
-
function
|
|
580
|
+
const { notPassiveCapture: ae } = I, N = [];
|
|
581
|
+
function re(e) {
|
|
582
582
|
const t = e.target;
|
|
583
583
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
584
584
|
return;
|
|
585
|
-
let l =
|
|
585
|
+
let l = Y.length - 1;
|
|
586
586
|
for (; l >= 0; ) {
|
|
587
|
-
const o =
|
|
587
|
+
const o = Y[l].$;
|
|
588
588
|
if (o.type.name === "QTooltip") {
|
|
589
589
|
l--;
|
|
590
590
|
continue;
|
|
@@ -603,38 +603,38 @@ function se(e) {
|
|
|
603
603
|
return;
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
N.push(e), N.length === 1 && (document.addEventListener("mousedown",
|
|
606
|
+
function Zt(e) {
|
|
607
|
+
N.push(e), N.length === 1 && (document.addEventListener("mousedown", re, ae), document.addEventListener("touchstart", re, ae));
|
|
608
608
|
}
|
|
609
609
|
function Pe(e) {
|
|
610
610
|
const t = N.findIndex((l) => l === e);
|
|
611
|
-
t !== -1 && (N.splice(t, 1), N.length === 0 && (document.removeEventListener("mousedown",
|
|
611
|
+
t !== -1 && (N.splice(t, 1), N.length === 0 && (document.removeEventListener("mousedown", re, ae), document.removeEventListener("touchstart", re, ae)));
|
|
612
612
|
}
|
|
613
613
|
let Le, Me;
|
|
614
|
-
function
|
|
614
|
+
function _e(e) {
|
|
615
615
|
const t = e.split(" ");
|
|
616
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
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function en(e) {
|
|
619
619
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
620
620
|
}
|
|
621
|
-
const
|
|
621
|
+
const we = {
|
|
622
622
|
"start#ltr": "left",
|
|
623
623
|
"start#rtl": "right",
|
|
624
624
|
"end#ltr": "right",
|
|
625
625
|
"end#rtl": "left"
|
|
626
626
|
};
|
|
627
627
|
["left", "middle", "right"].forEach((e) => {
|
|
628
|
-
|
|
628
|
+
we[`${e}#ltr`] = e, we[`${e}#rtl`] = e;
|
|
629
629
|
});
|
|
630
|
-
function
|
|
630
|
+
function Re(e, t) {
|
|
631
631
|
const l = e.split(" ");
|
|
632
632
|
return {
|
|
633
633
|
vertical: l[0],
|
|
634
|
-
horizontal:
|
|
634
|
+
horizontal: we[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function tn(e, t) {
|
|
638
638
|
let { top: l, left: o, right: n, bottom: r, width: a, height: i } = e.getBoundingClientRect();
|
|
639
639
|
return t !== void 0 && (l -= t[1], o -= t[0], r += t[1], n += t[0], a += t[0], i += t[1]), {
|
|
640
640
|
top: l,
|
|
@@ -647,7 +647,7 @@ function on(e, t) {
|
|
|
647
647
|
center: l + (r - l) / 2
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function nn(e, t, l) {
|
|
651
651
|
let { top: o, left: n } = e.getBoundingClientRect();
|
|
652
652
|
return o += t.top, n += t.left, l !== void 0 && (o += l[1], n += l[0]), {
|
|
653
653
|
top: o,
|
|
@@ -660,7 +660,7 @@ function ln(e, t, l) {
|
|
|
660
660
|
center: o
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function on(e, t) {
|
|
664
664
|
return {
|
|
665
665
|
top: 0,
|
|
666
666
|
center: t / 2,
|
|
@@ -670,7 +670,7 @@ function an(e, t) {
|
|
|
670
670
|
right: e
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function He(e, t, l, o) {
|
|
674
674
|
return {
|
|
675
675
|
top: e[l.vertical] - t[o.vertical],
|
|
676
676
|
left: e[l.horizontal] - t[o.horizontal]
|
|
@@ -697,11 +697,11 @@ function lt(e, t = 0) {
|
|
|
697
697
|
maxHeight: u,
|
|
698
698
|
maxWidth: x
|
|
699
699
|
} = e;
|
|
700
|
-
if (
|
|
701
|
-
const
|
|
702
|
-
E !== Le && (
|
|
700
|
+
if (ne.is.ios === !0 && window.visualViewport !== void 0) {
|
|
701
|
+
const q = document.body.style, { offsetLeft: E, offsetTop: C } = window.visualViewport;
|
|
702
|
+
E !== Le && (q.setProperty("--q-pe-left", E + "px"), Le = E), C !== Me && (q.setProperty("--q-pe-top", C + "px"), Me = C);
|
|
703
703
|
}
|
|
704
|
-
const { scrollLeft: c, scrollTop: s } = l, f = i === void 0 ?
|
|
704
|
+
const { scrollLeft: c, scrollTop: s } = l, f = i === void 0 ? tn(n, d === !0 ? [0, 0] : o) : nn(n, i, o);
|
|
705
705
|
Object.assign(l.style, {
|
|
706
706
|
top: 0,
|
|
707
707
|
left: 0,
|
|
@@ -714,33 +714,33 @@ function lt(e, t = 0) {
|
|
|
714
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
715
|
let y = { maxWidth: x, maxHeight: u };
|
|
716
716
|
(m === !0 || d === !0) && (y.minWidth = f.width + "px", d === !0 && (y.minHeight = f.height + "px")), Object.assign(l.style, y);
|
|
717
|
-
const $ =
|
|
718
|
-
let h =
|
|
717
|
+
const $ = on(T, b);
|
|
718
|
+
let h = He(f, $, r, a);
|
|
719
719
|
if (i === void 0 || o === void 0)
|
|
720
|
-
|
|
720
|
+
ve(h, f, $, r, a);
|
|
721
721
|
else {
|
|
722
|
-
const { top:
|
|
723
|
-
|
|
724
|
-
let
|
|
725
|
-
if (h.top !==
|
|
726
|
-
|
|
727
|
-
const
|
|
728
|
-
f.center = f.top -=
|
|
722
|
+
const { top: q, left: E } = h;
|
|
723
|
+
ve(h, f, $, r, a);
|
|
724
|
+
let C = !1;
|
|
725
|
+
if (h.top !== q) {
|
|
726
|
+
C = !0;
|
|
727
|
+
const B = 2 * o[1];
|
|
728
|
+
f.center = f.top -= B, f.bottom -= B + 2;
|
|
729
729
|
}
|
|
730
730
|
if (h.left !== E) {
|
|
731
|
-
|
|
732
|
-
const
|
|
733
|
-
f.middle = f.left -=
|
|
731
|
+
C = !0;
|
|
732
|
+
const B = 2 * o[0];
|
|
733
|
+
f.middle = f.left -= B, f.right -= B + 2;
|
|
734
734
|
}
|
|
735
|
-
|
|
735
|
+
C === !0 && (h = He(f, $, r, a), ve(h, f, $, r, a));
|
|
736
736
|
}
|
|
737
737
|
y = {
|
|
738
738
|
top: h.top + "px",
|
|
739
739
|
left: h.left + "px"
|
|
740
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
741
|
}
|
|
742
|
-
function
|
|
743
|
-
const r = l.bottom, a = l.right, i =
|
|
742
|
+
function ve(e, t, l, o, n) {
|
|
743
|
+
const r = l.bottom, a = l.right, i = Jt(), m = window.innerHeight - i, d = document.body.clientWidth;
|
|
744
744
|
if (e.top < 0 || e.top + r > m)
|
|
745
745
|
if (n.vertical === "center")
|
|
746
746
|
e.top = t[o.vertical] > m / 2 ? Math.max(0, m - r) : 0, e.maxHeight = Math.min(r, m);
|
|
@@ -770,13 +770,13 @@ function me(e, t, l, o, n) {
|
|
|
770
770
|
o.horizontal === "middle" ? t.middle : o.horizontal === n.horizontal ? t.left : t.right
|
|
771
771
|
), e.maxWidth = Math.min(a, d - e.left);
|
|
772
772
|
}
|
|
773
|
-
const
|
|
773
|
+
const ln = X({
|
|
774
774
|
name: "QTooltip",
|
|
775
775
|
inheritAttrs: !1,
|
|
776
776
|
props: {
|
|
777
|
-
...
|
|
778
|
-
...
|
|
779
|
-
...
|
|
777
|
+
...Mt,
|
|
778
|
+
...Ht,
|
|
779
|
+
...fe,
|
|
780
780
|
maxHeight: {
|
|
781
781
|
type: String,
|
|
782
782
|
default: null
|
|
@@ -786,29 +786,29 @@ const rn = X({
|
|
|
786
786
|
default: null
|
|
787
787
|
},
|
|
788
788
|
transitionShow: {
|
|
789
|
-
...
|
|
789
|
+
...fe.transitionShow,
|
|
790
790
|
default: "jump-down"
|
|
791
791
|
},
|
|
792
792
|
transitionHide: {
|
|
793
|
-
...
|
|
793
|
+
...fe.transitionHide,
|
|
794
794
|
default: "jump-up"
|
|
795
795
|
},
|
|
796
796
|
anchor: {
|
|
797
797
|
type: String,
|
|
798
798
|
default: "bottom middle",
|
|
799
|
-
validator:
|
|
799
|
+
validator: _e
|
|
800
800
|
},
|
|
801
801
|
self: {
|
|
802
802
|
type: String,
|
|
803
803
|
default: "top middle",
|
|
804
|
-
validator:
|
|
804
|
+
validator: _e
|
|
805
805
|
},
|
|
806
806
|
offset: {
|
|
807
807
|
type: Array,
|
|
808
808
|
default: () => [14, 14],
|
|
809
|
-
validator:
|
|
809
|
+
validator: en
|
|
810
810
|
},
|
|
811
|
-
scrollTarget:
|
|
811
|
+
scrollTarget: Xt,
|
|
812
812
|
delay: {
|
|
813
813
|
type: Number,
|
|
814
814
|
default: 0
|
|
@@ -820,59 +820,59 @@ const rn = X({
|
|
|
820
820
|
persistent: Boolean
|
|
821
821
|
},
|
|
822
822
|
emits: [
|
|
823
|
-
...
|
|
823
|
+
...Ot
|
|
824
824
|
],
|
|
825
825
|
setup(e, { slots: t, emit: l, attrs: o }) {
|
|
826
826
|
let n, r;
|
|
827
|
-
const a = O(), { proxy: { $q: i } } = a, m = R(null), d = R(!1), u = g(() =>
|
|
827
|
+
const a = O(), { proxy: { $q: i } } = a, m = R(null), d = R(!1), u = g(() => Re(e.anchor, i.lang.rtl)), x = g(() => Re(e.self, i.lang.rtl)), c = g(() => e.persistent !== !0), { registerTick: s, removeTick: f } = Kt(), { registerTimeout: k } = Qt(), { transitionProps: p, transitionStyle: T } = Ft(e), { localScrollTarget: b, changeScrollEvent: y, unconfigureScrollTarget: $ } = Rt(e, ke), { anchorEl: h, canShow: q, anchorEvents: E } = _t({ showing: d, configureAnchorEl: vt }), { show: C, hide: B } = Wt({
|
|
828
828
|
showing: d,
|
|
829
|
-
canShow:
|
|
829
|
+
canShow: q,
|
|
830
830
|
handleShow: z,
|
|
831
831
|
handleHide: v,
|
|
832
832
|
hideOnRouteChange: c,
|
|
833
833
|
processOnMount: !0
|
|
834
834
|
});
|
|
835
835
|
Object.assign(E, { delayShow: dt, delayHide: ft });
|
|
836
|
-
const { showPortal: W, hidePortal:
|
|
836
|
+
const { showPortal: W, hidePortal: L, renderPortal: j } = It(a, m, ht, "tooltip");
|
|
837
837
|
if (i.platform.is.mobile === !0) {
|
|
838
|
-
const
|
|
838
|
+
const P = {
|
|
839
839
|
anchorEl: h,
|
|
840
840
|
innerRef: m,
|
|
841
841
|
onClickOutside(A) {
|
|
842
|
-
return
|
|
842
|
+
return B(A), A.target.classList.contains("q-dialog__backdrop") && V(A), !0;
|
|
843
843
|
}
|
|
844
|
-
},
|
|
844
|
+
}, ue = g(
|
|
845
845
|
() => (
|
|
846
846
|
// it doesn't has external model
|
|
847
847
|
// (null is the default value)
|
|
848
848
|
e.modelValue === null && e.persistent !== !0 && d.value === !0
|
|
849
849
|
)
|
|
850
850
|
);
|
|
851
|
-
H(
|
|
852
|
-
(A === !0 ?
|
|
851
|
+
H(ue, (A) => {
|
|
852
|
+
(A === !0 ? Zt : Pe)(P);
|
|
853
853
|
}), D(() => {
|
|
854
|
-
Pe(
|
|
854
|
+
Pe(P);
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function z(
|
|
857
|
+
function z(P) {
|
|
858
858
|
W(), s(() => {
|
|
859
|
-
r = new MutationObserver(() =>
|
|
859
|
+
r = new MutationObserver(() => _()), r.observe(m.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), _(), ke();
|
|
860
860
|
}), n === void 0 && (n = H(
|
|
861
861
|
() => i.screen.width + "|" + i.screen.height + "|" + e.self + "|" + e.anchor + "|" + i.lang.rtl,
|
|
862
|
-
|
|
862
|
+
_
|
|
863
863
|
)), k(() => {
|
|
864
|
-
W(!0), l("show",
|
|
864
|
+
W(!0), l("show", P);
|
|
865
865
|
}, e.transitionDuration);
|
|
866
866
|
}
|
|
867
|
-
function v(
|
|
868
|
-
f(),
|
|
869
|
-
|
|
867
|
+
function v(P) {
|
|
868
|
+
f(), L(), S(), k(() => {
|
|
869
|
+
L(!0), l("hide", P);
|
|
870
870
|
}, e.transitionDuration);
|
|
871
871
|
}
|
|
872
872
|
function S() {
|
|
873
|
-
r !== void 0 && (r.disconnect(), r = void 0), n !== void 0 && (n(), n = void 0), $(),
|
|
873
|
+
r !== void 0 && (r.disconnect(), r = void 0), n !== void 0 && (n(), n = void 0), $(), oe(E, "tooltipTemp");
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function _() {
|
|
876
876
|
lt({
|
|
877
877
|
targetEl: m.value,
|
|
878
878
|
offset: e.offset,
|
|
@@ -883,38 +883,38 @@ const rn = X({
|
|
|
883
883
|
maxWidth: e.maxWidth
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
-
function dt(
|
|
886
|
+
function dt(P) {
|
|
887
887
|
if (i.platform.is.mobile === !0) {
|
|
888
|
-
|
|
889
|
-
const
|
|
890
|
-
|
|
888
|
+
pe(), document.body.classList.add("non-selectable");
|
|
889
|
+
const ue = h.value, A = ["touchmove", "touchcancel", "touchend", "click"].map((Se) => [ue, Se, "delayHide", "passiveCapture"]);
|
|
890
|
+
G(E, "tooltipTemp", A);
|
|
891
891
|
}
|
|
892
892
|
k(() => {
|
|
893
|
-
|
|
893
|
+
C(P);
|
|
894
894
|
}, e.delay);
|
|
895
895
|
}
|
|
896
|
-
function ft(
|
|
897
|
-
i.platform.is.mobile === !0 && (
|
|
896
|
+
function ft(P) {
|
|
897
|
+
i.platform.is.mobile === !0 && (oe(E, "tooltipTemp"), pe(), setTimeout(() => {
|
|
898
898
|
document.body.classList.remove("non-selectable");
|
|
899
899
|
}, 10)), k(() => {
|
|
900
|
-
|
|
900
|
+
B(P);
|
|
901
901
|
}, e.hideDelay);
|
|
902
902
|
}
|
|
903
903
|
function vt() {
|
|
904
904
|
if (e.noParentEvent === !0 || h.value === null) return;
|
|
905
|
-
const
|
|
905
|
+
const P = i.platform.is.mobile === !0 ? [
|
|
906
906
|
[h.value, "touchstart", "delayShow", "passive"]
|
|
907
907
|
] : [
|
|
908
908
|
[h.value, "mouseenter", "delayShow", "passive"],
|
|
909
909
|
[h.value, "mouseleave", "delayHide", "passive"]
|
|
910
910
|
];
|
|
911
|
-
|
|
911
|
+
G(E, "anchor", P);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function ke() {
|
|
914
914
|
if (h.value !== null || e.scrollTarget !== void 0) {
|
|
915
|
-
b.value =
|
|
916
|
-
const
|
|
917
|
-
y(b.value,
|
|
915
|
+
b.value = Gt(h.value, e.scrollTarget);
|
|
916
|
+
const P = e.noParentEvent === !0 ? _ : B;
|
|
917
|
+
y(b.value, P);
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
function mt() {
|
|
@@ -935,9 +935,9 @@ const rn = X({
|
|
|
935
935
|
function ht() {
|
|
936
936
|
return w(Ye, p.value, mt);
|
|
937
937
|
}
|
|
938
|
-
return D(S), Object.assign(a.proxy, { updatePosition:
|
|
938
|
+
return D(S), Object.assign(a.proxy, { updatePosition: _ }), j;
|
|
939
939
|
}
|
|
940
|
-
}),
|
|
940
|
+
}), xe = {
|
|
941
941
|
xs: 18,
|
|
942
942
|
sm: 24,
|
|
943
943
|
md: 32,
|
|
@@ -946,19 +946,19 @@ const rn = X({
|
|
|
946
946
|
}, it = {
|
|
947
947
|
size: String
|
|
948
948
|
};
|
|
949
|
-
function at(e, t =
|
|
949
|
+
function at(e, t = xe) {
|
|
950
950
|
return g(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const Oe = "0 0 24 24", We = (e) => e, me = (e) => `ionicons ${e}`, rt = {
|
|
953
953
|
"mdi-": (e) => `mdi ${e}`,
|
|
954
|
-
"icon-":
|
|
954
|
+
"icon-": We,
|
|
955
955
|
// fontawesome equiv
|
|
956
956
|
"bt-": (e) => `bt ${e}`,
|
|
957
957
|
"eva-": (e) => `eva ${e}`,
|
|
958
|
-
"ion-md":
|
|
959
|
-
"ion-ios":
|
|
960
|
-
"ion-logo":
|
|
961
|
-
"iconfont ":
|
|
958
|
+
"ion-md": me,
|
|
959
|
+
"ion-ios": me,
|
|
960
|
+
"ion-logo": me,
|
|
961
|
+
"iconfont ": We,
|
|
962
962
|
"ti-": (e) => `themify-icon ${e}`,
|
|
963
963
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
964
964
|
}, ut = {
|
|
@@ -969,7 +969,7 @@ const We = "0 0 24 24", je = (e) => e, he = (e) => `ionicons ${e}`, rt = {
|
|
|
969
969
|
sym_o_: "-outlined",
|
|
970
970
|
sym_r_: "-rounded",
|
|
971
971
|
sym_s_: "-sharp"
|
|
972
|
-
},
|
|
972
|
+
}, an = new RegExp("^(" + Object.keys(rt).join("|") + ")"), rn = new RegExp("^(" + Object.keys(ut).join("|") + ")"), je = new RegExp("^(" + Object.keys(st).join("|") + ")"), un = /^[Mm]\s?[-+]?\.?\d/, sn = /^img:/, cn = /^svguse:/, dn = /^ion-/, fn = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, ze = X({
|
|
973
973
|
name: "QIcon",
|
|
974
974
|
props: {
|
|
975
975
|
...it,
|
|
@@ -1001,8 +1001,8 @@ const We = "0 0 24 24", je = (e) => e, he = (e) => `ionicons ${e}`, rt = {
|
|
|
1001
1001
|
content: u.content !== void 0 ? u.content : " "
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
|
-
if (
|
|
1005
|
-
const [u, x =
|
|
1004
|
+
if (un.test(i) === !0) {
|
|
1005
|
+
const [u, x = Oe] = i.split("|");
|
|
1006
1006
|
return {
|
|
1007
1007
|
svg: !0,
|
|
1008
1008
|
viewBox: x,
|
|
@@ -1012,13 +1012,13 @@ const We = "0 0 24 24", je = (e) => e, he = (e) => `ionicons ${e}`, rt = {
|
|
|
1012
1012
|
})
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
if (
|
|
1015
|
+
if (sn.test(i) === !0)
|
|
1016
1016
|
return {
|
|
1017
1017
|
img: !0,
|
|
1018
1018
|
src: i.substring(4)
|
|
1019
1019
|
};
|
|
1020
|
-
if (
|
|
1021
|
-
const [u, x =
|
|
1020
|
+
if (cn.test(i) === !0) {
|
|
1021
|
+
const [u, x = Oe] = i.split("|");
|
|
1022
1022
|
return {
|
|
1023
1023
|
svguse: !0,
|
|
1024
1024
|
src: u.substring(7),
|
|
@@ -1026,20 +1026,20 @@ const We = "0 0 24 24", je = (e) => e, he = (e) => `ionicons ${e}`, rt = {
|
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
let m = " ";
|
|
1029
|
-
const d = i.match(
|
|
1029
|
+
const d = i.match(an);
|
|
1030
1030
|
if (d !== null)
|
|
1031
1031
|
a = rt[d[1]](i);
|
|
1032
|
-
else if (
|
|
1032
|
+
else if (fn.test(i) === !0)
|
|
1033
1033
|
a = i;
|
|
1034
|
-
else if (
|
|
1034
|
+
else if (dn.test(i) === !0)
|
|
1035
1035
|
a = `ionicons ion-${l.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
|
|
1036
|
-
else if (
|
|
1036
|
+
else if (je.test(i) === !0) {
|
|
1037
1037
|
a = "notranslate material-symbols";
|
|
1038
|
-
const u = i.match(
|
|
1038
|
+
const u = i.match(je);
|
|
1039
1039
|
u !== null && (i = i.substring(6), a += st[u[1]]), m = i;
|
|
1040
1040
|
} else {
|
|
1041
1041
|
a = "notranslate material-icons";
|
|
1042
|
-
const u = i.match(
|
|
1042
|
+
const u = i.match(rn);
|
|
1043
1043
|
u !== null && (i = i.substring(2), a += ut[u[1]]), m = i;
|
|
1044
1044
|
}
|
|
1045
1045
|
return {
|
|
@@ -1071,32 +1071,32 @@ const We = "0 0 24 24", je = (e) => e, he = (e) => `ionicons ${e}`, rt = {
|
|
|
1071
1071
|
])));
|
|
1072
1072
|
};
|
|
1073
1073
|
}
|
|
1074
|
-
}),
|
|
1074
|
+
}), vn = {
|
|
1075
1075
|
size: {
|
|
1076
1076
|
type: [String, Number],
|
|
1077
1077
|
default: "1em"
|
|
1078
1078
|
},
|
|
1079
1079
|
color: String
|
|
1080
1080
|
};
|
|
1081
|
-
function
|
|
1081
|
+
function mn(e) {
|
|
1082
1082
|
return {
|
|
1083
|
-
cSize: g(() => e.size in
|
|
1083
|
+
cSize: g(() => e.size in xe ? `${xe[e.size]}px` : e.size),
|
|
1084
1084
|
classes: g(
|
|
1085
1085
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
1086
1086
|
)
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
|
-
const
|
|
1089
|
+
const hn = X({
|
|
1090
1090
|
name: "QSpinner",
|
|
1091
1091
|
props: {
|
|
1092
|
-
...
|
|
1092
|
+
...vn,
|
|
1093
1093
|
thickness: {
|
|
1094
1094
|
type: Number,
|
|
1095
1095
|
default: 5
|
|
1096
1096
|
}
|
|
1097
1097
|
},
|
|
1098
1098
|
setup(e) {
|
|
1099
|
-
const { cSize: t, classes: l } =
|
|
1099
|
+
const { cSize: t, classes: l } = mn(e);
|
|
1100
1100
|
return () => w("svg", {
|
|
1101
1101
|
class: l.value + " q-spinner-mat",
|
|
1102
1102
|
width: t.value,
|
|
@@ -1116,7 +1116,7 @@ const pn = X({
|
|
|
1116
1116
|
]);
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
1119
|
-
function
|
|
1119
|
+
function gn(e, t = 250) {
|
|
1120
1120
|
let l = !1, o;
|
|
1121
1121
|
return function() {
|
|
1122
1122
|
return l === !1 && (l = !0, setTimeout(() => {
|
|
@@ -1124,13 +1124,13 @@ function bn(e, t = 250) {
|
|
|
1124
1124
|
}, t), o = e.apply(this, arguments)), o;
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function Ae(e, t, l, o) {
|
|
1128
1128
|
l.modifiers.stop === !0 && et(e);
|
|
1129
1129
|
const n = l.modifiers.color;
|
|
1130
1130
|
let r = l.modifiers.center;
|
|
1131
1131
|
r = r === !0 || o === !0;
|
|
1132
|
-
const a = document.createElement("span"), i = document.createElement("span"), m =
|
|
1133
|
-
i.className = "q-ripple__inner",
|
|
1132
|
+
const a = document.createElement("span"), i = document.createElement("span"), m = Pt(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", ye(i, {
|
|
1134
1134
|
height: `${s}px`,
|
|
1135
1135
|
width: `${s}px`,
|
|
1136
1136
|
transform: `translate3d(${p},${b},0) scale3d(.2,.2,1)`,
|
|
@@ -1148,7 +1148,7 @@ function Ve(e, t, l, o) {
|
|
|
1148
1148
|
}, 250);
|
|
1149
1149
|
}, 50);
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function Ve(e, { modifiers: t, value: l, arg: o }) {
|
|
1152
1152
|
const n = Object.assign({}, e.cfg.ripple, t, l);
|
|
1153
1153
|
e.modifiers = {
|
|
1154
1154
|
early: n.early === !0,
|
|
@@ -1158,7 +1158,7 @@ function Ne(e, { modifiers: t, value: l, arg: o }) {
|
|
|
1158
1158
|
keyCodes: [].concat(n.keyCodes || 13)
|
|
1159
1159
|
};
|
|
1160
1160
|
}
|
|
1161
|
-
const
|
|
1161
|
+
const pn = St(
|
|
1162
1162
|
{
|
|
1163
1163
|
name: "ripple",
|
|
1164
1164
|
beforeMount(e, t) {
|
|
@@ -1171,13 +1171,13 @@ const yn = Tt(
|
|
|
1171
1171
|
modifiers: {},
|
|
1172
1172
|
abort: [],
|
|
1173
1173
|
start(n) {
|
|
1174
|
-
o.enabled === !0 && n.qSkipRipple !== !0 && n.type === (o.modifiers.early === !0 ? "pointerdown" : "click") &&
|
|
1174
|
+
o.enabled === !0 && n.qSkipRipple !== !0 && n.type === (o.modifiers.early === !0 ? "pointerdown" : "click") && Ae(n, e, o, n.qKeyEvent === !0);
|
|
1175
1175
|
},
|
|
1176
|
-
keystart:
|
|
1177
|
-
o.enabled === !0 && n.qSkipRipple !== !0 &&
|
|
1176
|
+
keystart: gn((n) => {
|
|
1177
|
+
o.enabled === !0 && n.qSkipRipple !== !0 && le(n, o.modifiers.keyCodes) === !0 && n.type === `key${o.modifiers.early === !0 ? "down" : "up"}` && Ae(n, e, o, !0);
|
|
1178
1178
|
}, 300)
|
|
1179
1179
|
};
|
|
1180
|
-
|
|
1180
|
+
Ve(o, t), e.__qripple = o, G(o, "main", [
|
|
1181
1181
|
[e, "pointerdown", "start", "passive"],
|
|
1182
1182
|
[e, "click", "start", "passive"],
|
|
1183
1183
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -1187,14 +1187,14 @@ const yn = Tt(
|
|
|
1187
1187
|
updated(e, t) {
|
|
1188
1188
|
if (t.oldValue !== t.value) {
|
|
1189
1189
|
const l = e.__qripple;
|
|
1190
|
-
l !== void 0 && (l.enabled = t.value !== !1, l.enabled === !0 && Object(t.value) === t.value &&
|
|
1190
|
+
l !== void 0 && (l.enabled = t.value !== !1, l.enabled === !0 && Object(t.value) === t.value && Ve(l, t));
|
|
1191
1191
|
}
|
|
1192
1192
|
},
|
|
1193
1193
|
beforeUnmount(e) {
|
|
1194
1194
|
const t = e.__qripple;
|
|
1195
1195
|
t !== void 0 && (t.abort.forEach((l) => {
|
|
1196
1196
|
l();
|
|
1197
|
-
}),
|
|
1197
|
+
}), oe(t, "main"), delete e._qripple);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
), ct = {
|
|
@@ -1205,25 +1205,25 @@ const yn = Tt(
|
|
|
1205
1205
|
around: "around",
|
|
1206
1206
|
evenly: "evenly",
|
|
1207
1207
|
stretch: "stretch"
|
|
1208
|
-
},
|
|
1208
|
+
}, bn = Object.keys(ct), yn = {
|
|
1209
1209
|
align: {
|
|
1210
1210
|
type: String,
|
|
1211
|
-
validator: (e) =>
|
|
1211
|
+
validator: (e) => bn.includes(e)
|
|
1212
1212
|
}
|
|
1213
1213
|
};
|
|
1214
|
-
function
|
|
1214
|
+
function wn(e) {
|
|
1215
1215
|
return g(() => {
|
|
1216
1216
|
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
1217
1217
|
return `${e.vertical === !0 ? "items" : "justify"}-${ct[t]}`;
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function Ne(e) {
|
|
1221
1221
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function De(e, t) {
|
|
1224
1224
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function xn(e, t) {
|
|
1227
1227
|
for (const l in t) {
|
|
1228
1228
|
const o = t[l], n = e[l];
|
|
1229
1229
|
if (typeof o == "string") {
|
|
@@ -1234,21 +1234,21 @@ function Sn(e, t) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return !0;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ie(e, t) {
|
|
1238
1238
|
return Array.isArray(t) === !0 ? e.length === t.length && e.every((l, o) => l === t[o]) : e.length === 1 && e[0] === t;
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1241
|
-
return Array.isArray(e) === !0 ?
|
|
1240
|
+
function kn(e, t) {
|
|
1241
|
+
return Array.isArray(e) === !0 ? Ie(e, t) : Array.isArray(t) === !0 ? Ie(t, e) : e === t;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Sn(e, t) {
|
|
1244
1244
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1245
1245
|
return !1;
|
|
1246
1246
|
for (const l in e)
|
|
1247
|
-
if (
|
|
1247
|
+
if (kn(e[l], t[l]) === !1)
|
|
1248
1248
|
return !1;
|
|
1249
1249
|
return !0;
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1251
|
+
const En = {
|
|
1252
1252
|
// router-link
|
|
1253
1253
|
to: [String, Object],
|
|
1254
1254
|
replace: Boolean,
|
|
@@ -1258,7 +1258,7 @@ const Bn = {
|
|
|
1258
1258
|
// state
|
|
1259
1259
|
disable: Boolean
|
|
1260
1260
|
};
|
|
1261
|
-
function
|
|
1261
|
+
function Tn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
1262
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
1263
|
() => a === !0 && o.disable !== !0 && i.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
1264
1264
|
) : g(
|
|
@@ -1272,28 +1272,28 @@ function qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
1272
1272
|
} : {}), f = g(() => {
|
|
1273
1273
|
if (u.value === !1)
|
|
1274
1274
|
return -1;
|
|
1275
|
-
const { matched: h } = d.value, { length:
|
|
1275
|
+
const { matched: h } = d.value, { length: q } = h, E = h[q - 1];
|
|
1276
1276
|
if (E === void 0)
|
|
1277
1277
|
return -1;
|
|
1278
|
-
const
|
|
1279
|
-
if (
|
|
1278
|
+
const C = n.$route.matched;
|
|
1279
|
+
if (C.length === 0)
|
|
1280
1280
|
return -1;
|
|
1281
|
-
const
|
|
1282
|
-
|
|
1281
|
+
const B = C.findIndex(
|
|
1282
|
+
De.bind(null, E)
|
|
1283
1283
|
);
|
|
1284
|
-
if (
|
|
1285
|
-
return
|
|
1286
|
-
const W =
|
|
1284
|
+
if (B !== -1)
|
|
1285
|
+
return B;
|
|
1286
|
+
const W = Ne(h[q - 2]);
|
|
1287
1287
|
return (
|
|
1288
1288
|
// we are dealing with nested routes
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
) :
|
|
1289
|
+
q > 1 && Ne(E) === W && C[C.length - 1].path !== W ? C.findIndex(
|
|
1290
|
+
De.bind(null, h[q - 2])
|
|
1291
|
+
) : B
|
|
1292
1292
|
);
|
|
1293
1293
|
}), k = g(
|
|
1294
|
-
() => u.value === !0 && f.value !== -1 &&
|
|
1294
|
+
() => u.value === !0 && f.value !== -1 && xn(n.$route.params, d.value.params)
|
|
1295
1295
|
), p = g(
|
|
1296
|
-
() => k.value === !0 && f.value === n.$route.matched.length - 1 &&
|
|
1296
|
+
() => k.value === !0 && f.value === n.$route.matched.length - 1 && Sn(n.$route.params, d.value.params)
|
|
1297
1297
|
), T = g(() => u.value === !0 ? p.value === !0 ? ` ${o.exactActiveClass} ${o.activeClass}` : o.exact === !0 ? "" : k.value === !0 ? ` ${o.activeClass}` : "" : "");
|
|
1298
1298
|
function b(h) {
|
|
1299
1299
|
try {
|
|
@@ -1302,7 +1302,7 @@ function qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
1305
|
-
function y(h, { returnRouterError:
|
|
1305
|
+
function y(h, { returnRouterError: q, to: E = o.to, replace: C = o.replace } = {}) {
|
|
1306
1306
|
if (o.disable === !0)
|
|
1307
1307
|
return h.preventDefault(), Promise.resolve(!1);
|
|
1308
1308
|
if (
|
|
@@ -1312,15 +1312,15 @@ function qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
1312
1312
|
)
|
|
1313
1313
|
return Promise.resolve(!1);
|
|
1314
1314
|
h.preventDefault();
|
|
1315
|
-
const
|
|
1316
|
-
return
|
|
1315
|
+
const B = n.$router[C === !0 ? "replace" : "push"](E);
|
|
1316
|
+
return q === !0 ? B : B.then(() => {
|
|
1317
1317
|
}).catch(() => {
|
|
1318
1318
|
});
|
|
1319
1319
|
}
|
|
1320
1320
|
function $(h) {
|
|
1321
1321
|
if (u.value === !0) {
|
|
1322
|
-
const
|
|
1323
|
-
r("click", h,
|
|
1322
|
+
const q = (E) => y(h, E);
|
|
1323
|
+
r("click", h, q), h.defaultPrevented !== !0 && q();
|
|
1324
1324
|
} else
|
|
1325
1325
|
r("click", h);
|
|
1326
1326
|
}
|
|
@@ -1339,26 +1339,26 @@ function qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
1339
1339
|
navigateOnClick: $
|
|
1340
1340
|
};
|
|
1341
1341
|
}
|
|
1342
|
-
const
|
|
1342
|
+
const Fe = {
|
|
1343
1343
|
none: 0,
|
|
1344
1344
|
xs: 4,
|
|
1345
1345
|
sm: 8,
|
|
1346
1346
|
md: 16,
|
|
1347
1347
|
lg: 24,
|
|
1348
1348
|
xl: 32
|
|
1349
|
-
},
|
|
1349
|
+
}, qn = {
|
|
1350
1350
|
xs: 8,
|
|
1351
1351
|
sm: 10,
|
|
1352
1352
|
md: 14,
|
|
1353
1353
|
lg: 20,
|
|
1354
1354
|
xl: 24
|
|
1355
|
-
},
|
|
1356
|
-
function
|
|
1355
|
+
}, Cn = ["button", "submit", "reset"], Bn = /[^\s]\/[^\s]/, $n = ["flat", "outline", "push", "unelevated"];
|
|
1356
|
+
function Pn(e, t) {
|
|
1357
1357
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1359
|
+
const Ln = {
|
|
1360
1360
|
...it,
|
|
1361
|
-
...
|
|
1361
|
+
...En,
|
|
1362
1362
|
type: {
|
|
1363
1363
|
type: String,
|
|
1364
1364
|
default: "button"
|
|
@@ -1366,7 +1366,7 @@ const Mn = {
|
|
|
1366
1366
|
label: [Number, String],
|
|
1367
1367
|
icon: String,
|
|
1368
1368
|
iconRight: String,
|
|
1369
|
-
|
|
1369
|
+
...$n.reduce(
|
|
1370
1370
|
(e, t) => (e[t] = Boolean) && e,
|
|
1371
1371
|
{}
|
|
1372
1372
|
),
|
|
@@ -1388,7 +1388,7 @@ const Mn = {
|
|
|
1388
1388
|
default: !0
|
|
1389
1389
|
},
|
|
1390
1390
|
align: {
|
|
1391
|
-
...
|
|
1391
|
+
...yn.align,
|
|
1392
1392
|
default: "center"
|
|
1393
1393
|
},
|
|
1394
1394
|
stack: Boolean,
|
|
@@ -1398,17 +1398,17 @@ const Mn = {
|
|
|
1398
1398
|
default: null
|
|
1399
1399
|
},
|
|
1400
1400
|
disable: Boolean
|
|
1401
|
-
},
|
|
1402
|
-
...
|
|
1401
|
+
}, Mn = {
|
|
1402
|
+
...Ln,
|
|
1403
1403
|
round: Boolean
|
|
1404
1404
|
};
|
|
1405
|
-
function
|
|
1406
|
-
const t = at(e,
|
|
1405
|
+
function _n(e) {
|
|
1406
|
+
const t = at(e, qn), l = wn(e), { hasRouterLink: o, hasLink: n, linkTag: r, linkAttrs: a, navigateOnClick: i } = Tn({
|
|
1407
1407
|
fallbackTag: "button"
|
|
1408
1408
|
}), m = g(() => {
|
|
1409
1409
|
const p = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
1410
1410
|
return e.padding !== void 0 ? Object.assign({}, p, {
|
|
1411
|
-
padding: e.padding.split(/\s+/).map((T) => T in
|
|
1411
|
+
padding: e.padding.split(/\s+/).map((T) => T in Fe ? Fe[T] + "px" : T).join(" "),
|
|
1412
1412
|
minWidth: "0",
|
|
1413
1413
|
minHeight: "0"
|
|
1414
1414
|
}) : p;
|
|
@@ -1416,9 +1416,9 @@ function Hn(e) {
|
|
|
1416
1416
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
1417
1417
|
), u = g(
|
|
1418
1418
|
() => e.disable !== !0 && e.loading !== !0
|
|
1419
|
-
), x = g(() => u.value === !0 ? e.tabindex || 0 : -1), c = g(() =>
|
|
1419
|
+
), x = g(() => u.value === !0 ? e.tabindex || 0 : -1), c = g(() => Pn(e, "standard")), s = g(() => {
|
|
1420
1420
|
const p = { tabindex: x.value };
|
|
1421
|
-
return n.value === !0 ? Object.assign(p, a.value) :
|
|
1421
|
+
return n.value === !0 ? Object.assign(p, a.value) : Cn.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 && Bn.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
1422
|
role: "progressbar",
|
|
1423
1423
|
"aria-valuemin": 0,
|
|
1424
1424
|
"aria-valuemax": 100,
|
|
@@ -1443,12 +1443,12 @@ function Hn(e) {
|
|
|
1443
1443
|
isActionable: u
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
const { passiveCapture:
|
|
1446
|
+
const { passiveCapture: M } = I;
|
|
1447
1447
|
let F = null, K = null, Q = null;
|
|
1448
|
-
const
|
|
1448
|
+
const Rn = X({
|
|
1449
1449
|
name: "QBtn",
|
|
1450
1450
|
props: {
|
|
1451
|
-
...
|
|
1451
|
+
...Mn,
|
|
1452
1452
|
percentage: Number,
|
|
1453
1453
|
darkPercentage: Boolean,
|
|
1454
1454
|
onTouchstart: [Function, Array]
|
|
@@ -1464,7 +1464,7 @@ const On = X({
|
|
|
1464
1464
|
linkTag: d,
|
|
1465
1465
|
navigateOnClick: u,
|
|
1466
1466
|
isActionable: x
|
|
1467
|
-
} =
|
|
1467
|
+
} = _n(e), c = R(null), s = R(null);
|
|
1468
1468
|
let f = null, k, p = null;
|
|
1469
1469
|
const T = g(
|
|
1470
1470
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
@@ -1486,12 +1486,12 @@ const On = X({
|
|
|
1486
1486
|
if (x.value === !0) {
|
|
1487
1487
|
const v = {
|
|
1488
1488
|
onClick: E,
|
|
1489
|
-
onKeydown:
|
|
1489
|
+
onKeydown: C,
|
|
1490
1490
|
onMousedown: W
|
|
1491
1491
|
};
|
|
1492
1492
|
if (o.$q.platform.has.touch === !0) {
|
|
1493
1493
|
const S = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
1494
|
-
v[`onTouchstart${S}`] =
|
|
1494
|
+
v[`onTouchstart${S}`] = B;
|
|
1495
1495
|
}
|
|
1496
1496
|
return v;
|
|
1497
1497
|
}
|
|
@@ -1499,7 +1499,7 @@ const On = X({
|
|
|
1499
1499
|
// needed; especially for disabled <a> tags
|
|
1500
1500
|
onClick: V
|
|
1501
1501
|
};
|
|
1502
|
-
}),
|
|
1502
|
+
}), q = g(() => ({
|
|
1503
1503
|
ref: c,
|
|
1504
1504
|
class: "q-btn q-btn-item non-selectable no-outline " + n.value,
|
|
1505
1505
|
style: r.value,
|
|
@@ -1514,32 +1514,32 @@ const On = X({
|
|
|
1514
1514
|
const S = document.activeElement;
|
|
1515
1515
|
if (e.type === "submit" && S !== document.body && c.value.contains(S) === !1 && S.contains(c.value) === !1) {
|
|
1516
1516
|
c.value.focus();
|
|
1517
|
-
const
|
|
1518
|
-
document.removeEventListener("keydown", V, !0), document.removeEventListener("keyup",
|
|
1517
|
+
const _ = () => {
|
|
1518
|
+
document.removeEventListener("keydown", V, !0), document.removeEventListener("keyup", _, M), c.value !== null && c.value.removeEventListener("blur", _, M);
|
|
1519
1519
|
};
|
|
1520
|
-
document.addEventListener("keydown", V, !0), document.addEventListener("keyup",
|
|
1520
|
+
document.addEventListener("keydown", V, !0), document.addEventListener("keyup", _, M), c.value.addEventListener("blur", _, M);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
u(v);
|
|
1524
1524
|
}
|
|
1525
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
1526
|
function C(v) {
|
|
1530
|
-
c.value !== null && (l("
|
|
1527
|
+
c.value !== null && (l("keydown", v), le(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", L, !0), c.value.addEventListener("blur", L, M)), V(v)));
|
|
1528
|
+
}
|
|
1529
|
+
function B(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", L, M), f.addEventListener("touchend", L, M)), k = !0, p !== null && clearTimeout(p), p = setTimeout(() => {
|
|
1531
1531
|
p = null, k = !1;
|
|
1532
1532
|
}, 200)));
|
|
1533
1533
|
}
|
|
1534
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",
|
|
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", L, M)));
|
|
1536
1536
|
}
|
|
1537
|
-
function
|
|
1537
|
+
function L(v) {
|
|
1538
1538
|
if (c.value !== null && !(v !== void 0 && v.type === "blur" && document.activeElement === c.value)) {
|
|
1539
1539
|
if (v !== void 0 && v.type === "keyup") {
|
|
1540
|
-
if (K === c.value &&
|
|
1540
|
+
if (K === c.value && le(v, [13, 32]) === !0) {
|
|
1541
1541
|
const S = new MouseEvent("click", v);
|
|
1542
|
-
S.qKeyEvent = !0, v.defaultPrevented === !0 &&
|
|
1542
|
+
S.qKeyEvent = !0, v.defaultPrevented === !0 && be(S), v.cancelBubble === !0 && et(S), c.value.dispatchEvent(S), V(v), v.qKeyEvent = !0;
|
|
1543
1543
|
}
|
|
1544
1544
|
l("keyup", v);
|
|
1545
1545
|
}
|
|
@@ -1548,7 +1548,7 @@ const On = X({
|
|
|
1548
1548
|
}
|
|
1549
1549
|
function j(v) {
|
|
1550
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",
|
|
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", L, M), f.removeEventListener("touchend", L, M)), F = f = null), Q === c.value && (document.removeEventListener("mouseup", L, M), Q = null), K === c.value && (document.removeEventListener("keyup", L, !0), c.value !== null && c.value.removeEventListener("blur", L, M), K = null), c.value !== null && c.value.classList.remove("q-btn--active");
|
|
1552
1552
|
}
|
|
1553
1553
|
function z(v) {
|
|
1554
1554
|
V(v), v.qSkipRipple = !0;
|
|
@@ -1562,7 +1562,7 @@ const On = X({
|
|
|
1562
1562
|
}), () => {
|
|
1563
1563
|
let v = [];
|
|
1564
1564
|
e.icon !== void 0 && v.push(
|
|
1565
|
-
w(
|
|
1565
|
+
w(ze, {
|
|
1566
1566
|
name: e.icon,
|
|
1567
1567
|
left: e.stack !== !0 && T.value === !0,
|
|
1568
1568
|
role: "img"
|
|
@@ -1570,7 +1570,7 @@ const On = X({
|
|
|
1570
1570
|
), T.value === !0 && v.push(
|
|
1571
1571
|
w("span", { class: "block" }, [e.label])
|
|
1572
1572
|
), v = U(t.default, v), e.iconRight !== void 0 && e.round === !1 && v.push(
|
|
1573
|
-
w(
|
|
1573
|
+
w(ze, {
|
|
1574
1574
|
name: e.iconRight,
|
|
1575
1575
|
right: e.stack !== !0 && T.value === !0,
|
|
1576
1576
|
role: "img"
|
|
@@ -1602,16 +1602,16 @@ const On = X({
|
|
|
1602
1602
|
w("span", {
|
|
1603
1603
|
key: "loading",
|
|
1604
1604
|
class: "absolute-full flex flex-center"
|
|
1605
|
-
}, t.loading !== void 0 ? t.loading() : [w(
|
|
1605
|
+
}, t.loading !== void 0 ? t.loading() : [w(hn)])
|
|
1606
1606
|
] : null)
|
|
1607
1607
|
), wt(
|
|
1608
1608
|
w(
|
|
1609
1609
|
d.value,
|
|
1610
|
-
|
|
1610
|
+
q.value,
|
|
1611
1611
|
S
|
|
1612
1612
|
),
|
|
1613
1613
|
[[
|
|
1614
|
-
|
|
1614
|
+
pn,
|
|
1615
1615
|
b.value,
|
|
1616
1616
|
void 0,
|
|
1617
1617
|
y.value
|
|
@@ -1619,7 +1619,7 @@ const On = X({
|
|
|
1619
1619
|
);
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
1622
|
-
}),
|
|
1622
|
+
}), Hn = /* @__PURE__ */ Qe({
|
|
1623
1623
|
__name: "AppButton",
|
|
1624
1624
|
props: {
|
|
1625
1625
|
disable: { type: [Boolean, Function] },
|
|
@@ -1677,34 +1677,34 @@ const On = X({
|
|
|
1677
1677
|
o("click", i), o("update:modelValue", !l.modelValue);
|
|
1678
1678
|
}
|
|
1679
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) => (
|
|
1680
|
+
return (i, m) => (se(), ce(Rn, xt(i.$props, {
|
|
1681
1681
|
class: [[i.$style.wrapper], "hover-bg-secondary hover-text-black"],
|
|
1682
1682
|
disable: a.value,
|
|
1683
1683
|
"no-caps": !i.uppercase,
|
|
1684
1684
|
"no-wrap": !i.wrap,
|
|
1685
1685
|
onClick: n
|
|
1686
1686
|
}), {
|
|
1687
|
-
default:
|
|
1687
|
+
default: de(() => [
|
|
1688
1688
|
kt(i.$slots, "default"),
|
|
1689
|
-
i.badge ? (
|
|
1689
|
+
i.badge ? (se(), ce(Tt, {
|
|
1690
1690
|
key: 0,
|
|
1691
1691
|
style: { padding: "6px", top: "-10px", right: "-10px", "font-size": "12px" },
|
|
1692
1692
|
color: i.badgeColor,
|
|
1693
1693
|
floating: !i.badgeInline,
|
|
1694
1694
|
rounded: !0
|
|
1695
1695
|
}, {
|
|
1696
|
-
default:
|
|
1697
|
-
Te(
|
|
1696
|
+
default: de(() => [
|
|
1697
|
+
Ee(Te(r.value), 1)
|
|
1698
1698
|
]),
|
|
1699
1699
|
_: 1
|
|
1700
1700
|
}, 8, ["color", "floating"])) : qe("", !0),
|
|
1701
|
-
i.tooltip ? (
|
|
1701
|
+
i.tooltip ? (se(), ce(ln, {
|
|
1702
1702
|
key: 1,
|
|
1703
1703
|
class: "text-body2",
|
|
1704
1704
|
delay: 400
|
|
1705
1705
|
}, {
|
|
1706
|
-
default:
|
|
1707
|
-
Te(
|
|
1706
|
+
default: de(() => [
|
|
1707
|
+
Ee(Te(i.tooltip), 1)
|
|
1708
1708
|
]),
|
|
1709
1709
|
_: 1
|
|
1710
1710
|
})) : qe("", !0)
|
|
@@ -1712,31 +1712,16 @@ const On = X({
|
|
|
1712
1712
|
_: 3
|
|
1713
1713
|
}, 16, ["class", "disable", "no-caps", "no-wrap"]));
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1716
|
-
wrapper:
|
|
1717
|
-
},
|
|
1715
|
+
}), On = "_wrapper_1g76t_1", Wn = {
|
|
1716
|
+
wrapper: On
|
|
1717
|
+
}, jn = (e, t) => {
|
|
1718
1718
|
const l = e.__vccOpts || e;
|
|
1719
1719
|
for (const [o, n] of t)
|
|
1720
1720
|
l[o] = n;
|
|
1721
1721
|
return l;
|
|
1722
|
-
},
|
|
1723
|
-
$style:
|
|
1724
|
-
},
|
|
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
|
-
});
|
|
1722
|
+
}, zn = {
|
|
1723
|
+
$style: Wn
|
|
1724
|
+
}, Vn = /* @__PURE__ */ jn(Hn, [["__cssModules", zn]]);
|
|
1740
1725
|
export {
|
|
1741
|
-
|
|
1726
|
+
Vn as AppButton
|
|
1742
1727
|
};
|