@verdnatura/vn-front-lib 0.0.9 → 0.0.10
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/components-bhz_GJoK.cjs +1 -0
- package/dist/{components-Dl-Ieazh.js → components-vVkogsiW.js} +455 -389
- package/dist/components.cjs +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.cjs +1 -1
- package/dist/stores.cjs +1 -1
- package/dist/{useRequired-BqsSq8Mw.cjs → useRequired-BviE2qpV.cjs} +1 -1
- package/dist/useValidationsStore-BZZg24ZP.cjs +1 -0
- package/dist/vn-front-lib.cjs +1 -1
- package/dist/vn-front-lib.js +6 -6
- package/lib/components/index.js +1 -0
- package/lib/components/models/VnFetch.vue +65 -0
- package/package.json +1 -1
- package/dist/components-BLui5eyq.cjs +0 -1
- package/dist/useValidationsStore-8JX1-oLO.cjs +0 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./useRequired-CTxBp3qy.js";
|
|
2
2
|
import { Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, inject as p, markRaw as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeStyle as v, onActivated as y, onBeforeUnmount as b, onBeforeUpdate as x, onDeactivated as S, onMounted as C, onUnmounted as w, openBlock as T, reactive as E, ref as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as ee, useModel as j, watch as M, withCtx as N } from "vue";
|
|
3
3
|
import { useI18n as P } from "vue-i18n";
|
|
4
|
+
import F from "axios";
|
|
4
5
|
//#region \0rolldown/runtime.js
|
|
5
|
-
var
|
|
6
|
+
var I = Object.defineProperty, L = (e, t) => {
|
|
6
7
|
let n = {};
|
|
7
|
-
for (var r in e)
|
|
8
|
+
for (var r in e) I(n, r, {
|
|
8
9
|
get: e[r],
|
|
9
10
|
enumerable: !0
|
|
10
11
|
});
|
|
11
|
-
return t ||
|
|
12
|
+
return t || I(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
13
|
};
|
|
13
14
|
//#endregion
|
|
14
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.inject-obj-prop/inject-obj-prop.js
|
|
15
|
-
function
|
|
15
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.inject-obj-prop/inject-obj-prop.js
|
|
16
|
+
function R(e, t, n, r) {
|
|
16
17
|
return Object.defineProperty(e, t, {
|
|
17
18
|
get: n,
|
|
18
19
|
set: r,
|
|
@@ -20,38 +21,38 @@ function L(e, t, n, r) {
|
|
|
20
21
|
}), e;
|
|
21
22
|
}
|
|
22
23
|
//#endregion
|
|
23
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/platform/Platform.js
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return typeof e == "string" ? e.slice(0,
|
|
27
|
-
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
let t =
|
|
31
|
-
return t !== null &&
|
|
24
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/plugins/platform/Platform.js
|
|
25
|
+
var z = D(!1), B, te = 512;
|
|
26
|
+
function V(e) {
|
|
27
|
+
return typeof e == "string" ? e.slice(0, te).toLowerCase() : "";
|
|
28
|
+
}
|
|
29
|
+
var H = /(?:^|\s)version\/([\w.]+)/, ne = /(?:^|\s)applewebkit\/[\w.]+/, U = /(?:^|\s)safari\/[\w.]+/;
|
|
30
|
+
function re(e) {
|
|
31
|
+
let t = H.exec(e);
|
|
32
|
+
return t !== null && ne.test(e) && U.test(e) ? {
|
|
32
33
|
browser: "safari",
|
|
33
34
|
version: t[1]
|
|
34
35
|
} : null;
|
|
35
36
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
let t =
|
|
37
|
+
var ie = /(?:^|\s)opera\/([\w.]+)/, ae = /(?:^|\s)version\/([\w.]+)/;
|
|
38
|
+
function oe(e) {
|
|
39
|
+
let t = ie.exec(e);
|
|
39
40
|
return t === null ? null : {
|
|
40
41
|
browser: "opera",
|
|
41
|
-
version:
|
|
42
|
+
version: ae.exec(e)?.[1] || t[1]
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
let n =
|
|
45
|
+
var se = /(edg|edge|edga|edgios)\/([\w.]+)/, ce = /(opr)[\/]([\w.]+)/, le = /(vivaldi)[\/]([\w.]+)/, ue = /(chrome|crios)[\/]([\w.]+)/, de = /(firefox|fxios)[\/]([\w.]+)/, fe = /(webkit)[\/]([\w.]+)/;
|
|
46
|
+
function pe(e, t) {
|
|
47
|
+
let n = se.exec(e) || ce.exec(e) || le.exec(e) || ue.exec(e);
|
|
47
48
|
if (n === null) {
|
|
48
|
-
let r =
|
|
49
|
+
let r = re(e);
|
|
49
50
|
if (r !== null) return {
|
|
50
51
|
...r,
|
|
51
52
|
platform: t[0] || ""
|
|
52
53
|
};
|
|
53
|
-
if (n =
|
|
54
|
-
let r =
|
|
54
|
+
if (n = de.exec(e) || fe.exec(e), n === null) {
|
|
55
|
+
let r = oe(e);
|
|
55
56
|
if (r !== null) return {
|
|
56
57
|
...r,
|
|
57
58
|
platform: t[0] || ""
|
|
@@ -65,13 +66,13 @@ function fe(e, t) {
|
|
|
65
66
|
platform: t[0] || ""
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
var
|
|
69
|
-
function
|
|
70
|
-
return
|
|
69
|
+
var me = /(ipad)/, he = /(ipod)/, ge = /(iphone)/, _e = /(windows phone)/, ve = /(kindle)/, ye = /(silk)/, be = /(android)/, xe = /(win)/, Se = /(mac)/, Ce = /(linux)/, we = /(cros)/;
|
|
70
|
+
function Te(e) {
|
|
71
|
+
return me.exec(e) || he.exec(e) || _e.exec(e) || ge.exec(e) || ve.exec(e) || ye.exec(e) || be.exec(e) || xe.exec(e) || Se.exec(e) || Ce.exec(e) || we.exec(e) || [];
|
|
71
72
|
}
|
|
72
|
-
var
|
|
73
|
-
function
|
|
74
|
-
let t =
|
|
73
|
+
var Ee = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
74
|
+
function De(e) {
|
|
75
|
+
let t = V(e), n = pe(t, Te(t)), r = {
|
|
75
76
|
mobile: !1,
|
|
76
77
|
desktop: !1,
|
|
77
78
|
cordova: !1,
|
|
@@ -106,7 +107,7 @@ function Ee(e) {
|
|
|
106
107
|
if (i === !0 || t.includes("mobile") ? r.mobile = !0 : r.desktop = !0, r.edga || r.edgios || r.edg ? (r.edge = !0, n.browser = "edge") : r.crios ? (r.chrome = !0, n.browser = "chrome") : r.fxios && (r.firefox = !0, n.browser = "firefox"), (r.ipod || r.ipad || r.iphone) && (r.ios = !0), r.vivaldi &&= (n.browser = "vivaldi", !0), (r.chrome || r.opr || r.safari || r.vivaldi || r.mobile && !r.ios && !i) && (r.webkit = !0), r.opr && (n.browser = "opera", r.opera = !0), r.safari && (r.android ? (n.browser = "android", r.android = !0) : r.kindle ? (n.browser = "kindle", r.kindle = !0) : r.silk &&= (n.browser = "silk", !0)), r.name = n.browser, r.platform = n.platform, t.includes("electron")) r.electron = !0;
|
|
107
108
|
else if (document.location.href.includes("-extension://")) r.bex = !0;
|
|
108
109
|
else {
|
|
109
|
-
if (window.Capacitor === void 0 ? (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova") : (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor"),
|
|
110
|
+
if (window.Capacitor === void 0 ? (window._cordovaNative !== void 0 || window.cordova !== void 0) && (r.cordova = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "cordova") : (r.capacitor = !0, r.nativeMobile = !0, r.nativeMobileWrapper = "capacitor"), z.value && (B = { is: { ...r } }), Ee && r.mac && (r.desktop && r.safari || r.nativeMobile && !r.android && !r.ios && !r.ipad)) {
|
|
110
111
|
delete r.mac, delete r.desktop;
|
|
111
112
|
let e = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
112
113
|
Object.assign(r, {
|
|
@@ -120,43 +121,43 @@ function Ee(e) {
|
|
|
120
121
|
}
|
|
121
122
|
return r;
|
|
122
123
|
}
|
|
123
|
-
var
|
|
124
|
+
var Oe = navigator.userAgent || navigator.vendor || window.opera, ke = {
|
|
124
125
|
has: {
|
|
125
126
|
touch: !1,
|
|
126
127
|
webStorage: !1
|
|
127
128
|
},
|
|
128
129
|
within: { iframe: !1 }
|
|
129
130
|
}, W = {
|
|
130
|
-
userAgent:
|
|
131
|
-
is:
|
|
132
|
-
has: { touch:
|
|
131
|
+
userAgent: Oe,
|
|
132
|
+
is: De(Oe),
|
|
133
|
+
has: { touch: Ee },
|
|
133
134
|
within: { iframe: window.self !== window.top }
|
|
134
|
-
},
|
|
135
|
+
}, Ae = { install(e) {
|
|
135
136
|
let { $q: t } = e;
|
|
136
|
-
|
|
137
|
-
Object.assign(t.platform, W),
|
|
137
|
+
z.value ? (e.onSSRHydrated.push(() => {
|
|
138
|
+
Object.assign(t.platform, W), z.value = !1;
|
|
138
139
|
}), t.platform = E(this)) : t.platform = this;
|
|
139
140
|
} };
|
|
140
141
|
{
|
|
141
142
|
let e;
|
|
142
|
-
|
|
143
|
+
R(W.has, "webStorage", () => {
|
|
143
144
|
if (e !== void 0) return e;
|
|
144
145
|
try {
|
|
145
146
|
if (window.localStorage) return e = !0, !0;
|
|
146
147
|
} catch {}
|
|
147
148
|
return e = !1, !1;
|
|
148
|
-
}), Object.assign(
|
|
149
|
+
}), Object.assign(Ae, W), z.value && (Object.assign(Ae, B, ke), B = null);
|
|
149
150
|
}
|
|
150
151
|
//#endregion
|
|
151
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.selection/selection.js
|
|
152
|
-
function
|
|
152
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.selection/selection.js
|
|
153
|
+
function je() {
|
|
153
154
|
if (window.getSelection !== void 0) {
|
|
154
155
|
let e = window.getSelection();
|
|
155
|
-
e.empty === void 0 ? e.removeAllRanges !== void 0 && (e.removeAllRanges(),
|
|
156
|
+
e.empty === void 0 ? e.removeAllRanges !== void 0 && (e.removeAllRanges(), Ae.is.mobile || e.addRange(document.createRange())) : e.empty();
|
|
156
157
|
} else document.selection !== void 0 && document.selection.empty();
|
|
157
158
|
}
|
|
158
159
|
//#endregion
|
|
159
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/event/event.js
|
|
160
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/event/event.js
|
|
160
161
|
var G = {
|
|
161
162
|
hasPassive: !1,
|
|
162
163
|
passiveCapture: !0,
|
|
@@ -180,39 +181,39 @@ try {
|
|
|
180
181
|
} });
|
|
181
182
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
182
183
|
} catch {}
|
|
183
|
-
function
|
|
184
|
+
function Me(e) {
|
|
184
185
|
e.stopPropagation();
|
|
185
186
|
}
|
|
186
187
|
function K(e) {
|
|
187
188
|
e.cancelable !== !1 && e.preventDefault();
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
+
function Ne(e) {
|
|
190
191
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
191
192
|
}
|
|
192
|
-
function
|
|
193
|
+
function Pe(e, t, n) {
|
|
193
194
|
let r = `__q_${t}_evt`;
|
|
194
195
|
e[r] = [...e[r] ?? [], ...n], n.forEach((t) => {
|
|
195
196
|
t[0].addEventListener(t[1], e[t[2]], G[t[3]]);
|
|
196
197
|
});
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
+
function Fe(e, t) {
|
|
199
200
|
let n = `__q_${t}_evt`;
|
|
200
201
|
e[n] !== void 0 && (e[n].forEach((t) => {
|
|
201
202
|
t[0].removeEventListener(t[1], e[t[2]], G[t[3]]);
|
|
202
203
|
}), e[n] = void 0);
|
|
203
204
|
}
|
|
204
205
|
//#endregion
|
|
205
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/key-composition.js
|
|
206
|
-
var
|
|
207
|
-
function
|
|
208
|
-
return
|
|
206
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/key-composition.js
|
|
207
|
+
var Ie = !1;
|
|
208
|
+
function Le(e) {
|
|
209
|
+
return Ie || e !== Object(e) || e.isComposing || e.qKeyEvent;
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
-
return !
|
|
211
|
+
function Re(e, t) {
|
|
212
|
+
return !Le(e) && [t].flat().includes(e.keyCode);
|
|
212
213
|
}
|
|
213
214
|
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js
|
|
215
|
-
var
|
|
215
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js
|
|
216
|
+
var ze = {
|
|
216
217
|
target: {
|
|
217
218
|
type: [
|
|
218
219
|
Boolean,
|
|
@@ -223,8 +224,8 @@ var Re = {
|
|
|
223
224
|
},
|
|
224
225
|
noParentEvent: Boolean
|
|
225
226
|
};
|
|
226
|
-
({ ...
|
|
227
|
-
function
|
|
227
|
+
({ ...ze });
|
|
228
|
+
function Be({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
228
229
|
let { props: r, proxy: i, emit: a } = d(), o = D(null), s = null;
|
|
229
230
|
function c(e) {
|
|
230
231
|
return o.value === null ? !1 : e === void 0 || e.touches === void 0 || e.touches.length <= 1;
|
|
@@ -238,7 +239,7 @@ function ze({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
238
239
|
i.toggle(e), e.qAnchorHandled = !0;
|
|
239
240
|
},
|
|
240
241
|
toggleKey(e) {
|
|
241
|
-
|
|
242
|
+
Re(e, 13) && l.toggle(e);
|
|
242
243
|
},
|
|
243
244
|
contextClick(e) {
|
|
244
245
|
i.hide(e), K(e), _(() => {
|
|
@@ -250,7 +251,7 @@ function ze({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
250
251
|
if (l.mobileCleanup(e), !c(e)) return;
|
|
251
252
|
i.hide(e), o.value.classList.add("non-selectable");
|
|
252
253
|
let t = e.target;
|
|
253
|
-
|
|
254
|
+
Pe(l, "anchor", [
|
|
254
255
|
[
|
|
255
256
|
t,
|
|
256
257
|
"touchmove",
|
|
@@ -280,7 +281,7 @@ function ze({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
280
281
|
}, 300);
|
|
281
282
|
},
|
|
282
283
|
mobileCleanup(t) {
|
|
283
|
-
o.value.classList.remove("non-selectable"), s !== null && (clearTimeout(s), s = null), e.value && t !== void 0 &&
|
|
284
|
+
o.value.classList.remove("non-selectable"), s !== null && (clearTimeout(s), s = null), e.value && t !== void 0 && je();
|
|
284
285
|
}
|
|
285
286
|
}), n = function(e = r.contextMenu) {
|
|
286
287
|
if (r.noParentEvent || o.value === null) return;
|
|
@@ -310,10 +311,10 @@ function ze({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
310
311
|
"toggleKey",
|
|
311
312
|
"passive"
|
|
312
313
|
]];
|
|
313
|
-
|
|
314
|
+
Pe(l, "anchor", t);
|
|
314
315
|
});
|
|
315
316
|
function u() {
|
|
316
|
-
|
|
317
|
+
Fe(l, "anchor");
|
|
317
318
|
}
|
|
318
319
|
function f(e) {
|
|
319
320
|
for (o.value = e; o.value.classList.contains("q-anchor--skip");) o.value = o.value.parentNode;
|
|
@@ -349,8 +350,8 @@ function ze({ showing: e, avoidEmit: t, configureAnchorEl: n }) {
|
|
|
349
350
|
};
|
|
350
351
|
}
|
|
351
352
|
//#endregion
|
|
352
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-scroll-target/use-scroll-target.js
|
|
353
|
-
function
|
|
353
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-scroll-target/use-scroll-target.js
|
|
354
|
+
function Ve(e, t) {
|
|
354
355
|
let n = D(null), r;
|
|
355
356
|
function i(e, t) {
|
|
356
357
|
let n = `${t === void 0 ? "remove" : "add"}EventListener`, i = t === void 0 ? r : t;
|
|
@@ -359,37 +360,38 @@ function Be(e, t) {
|
|
|
359
360
|
function a() {
|
|
360
361
|
n.value !== null && (i(n.value), n.value = null);
|
|
361
362
|
}
|
|
362
|
-
|
|
363
|
+
let o = M(() => e.noParentEvent, () => {
|
|
363
364
|
n.value !== null && (a(), t());
|
|
364
|
-
})
|
|
365
|
+
});
|
|
366
|
+
return b(o), {
|
|
365
367
|
localScrollTarget: n,
|
|
366
368
|
unconfigureScrollTarget: a,
|
|
367
369
|
changeScrollEvent: i
|
|
368
370
|
};
|
|
369
371
|
}
|
|
370
372
|
//#endregion
|
|
371
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.vm/vm.js
|
|
372
|
-
function
|
|
373
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.vm/vm.js
|
|
374
|
+
function He(e) {
|
|
373
375
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
374
376
|
}
|
|
375
|
-
function
|
|
377
|
+
function Ue(e) {
|
|
376
378
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
377
379
|
}
|
|
378
380
|
//#endregion
|
|
379
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js
|
|
380
|
-
var
|
|
381
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js
|
|
382
|
+
var We = {
|
|
381
383
|
modelValue: {
|
|
382
384
|
type: Boolean,
|
|
383
385
|
default: null
|
|
384
386
|
},
|
|
385
387
|
"onUpdate:modelValue": [Function, Array]
|
|
386
|
-
},
|
|
388
|
+
}, Ge = [
|
|
387
389
|
"beforeShow",
|
|
388
390
|
"show",
|
|
389
391
|
"beforeHide",
|
|
390
392
|
"hide"
|
|
391
393
|
];
|
|
392
|
-
function
|
|
394
|
+
function Ke({ showing: e, canShow: t, hideOnRouteChange: n, handleShow: r, handleHide: i, handleRouteChange: a, processOnMount: o }) {
|
|
393
395
|
let s = d(), { props: c, emit: l, proxy: u } = s, f;
|
|
394
396
|
function p(t) {
|
|
395
397
|
e.value ? g(t) : m(t);
|
|
@@ -417,7 +419,7 @@ function Ge({ showing: e, canShow: t, hideOnRouteChange: n, handleShow: r, handl
|
|
|
417
419
|
function y(t) {
|
|
418
420
|
c.disable && t ? c["onUpdate:modelValue"] !== void 0 && l("update:modelValue", !1) : t === !0 !== e.value && (t ? h : v)(f);
|
|
419
421
|
}
|
|
420
|
-
M(() => c.modelValue, y), n !== void 0 &&
|
|
422
|
+
M(() => c.modelValue, y), n !== void 0 && He(s) && M(() => u.$route.fullPath, () => {
|
|
421
423
|
n.value && e.value && (a?.(), g());
|
|
422
424
|
}), o && C(() => {
|
|
423
425
|
y(c.modelValue);
|
|
@@ -430,52 +432,52 @@ function Ge({ showing: e, canShow: t, hideOnRouteChange: n, handleShow: r, handl
|
|
|
430
432
|
return Object.assign(u, b), b;
|
|
431
433
|
}
|
|
432
434
|
//#endregion
|
|
433
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.create/create.js
|
|
434
|
-
function
|
|
435
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.create/create.js
|
|
436
|
+
function qe(e) {
|
|
435
437
|
return m(u(e));
|
|
436
438
|
}
|
|
437
439
|
//#endregion
|
|
438
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.portal/portal.js
|
|
439
|
-
var q = [], J = [],
|
|
440
|
-
function Je(e) {
|
|
441
|
-
qe = qe.filter((t) => t !== e);
|
|
442
|
-
}
|
|
440
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.portal/portal.js
|
|
441
|
+
var q = [], J = [], Je = [];
|
|
443
442
|
function Ye(e) {
|
|
444
|
-
Je(
|
|
443
|
+
Je = Je.filter((t) => t !== e);
|
|
445
444
|
}
|
|
446
445
|
function Xe(e) {
|
|
447
|
-
|
|
446
|
+
Ye(e), Je.push(e);
|
|
448
447
|
}
|
|
449
448
|
function Ze(e) {
|
|
450
|
-
|
|
449
|
+
Ye(e), Je.length === 0 && J.length !== 0 && (J.at(-1)(), J = []);
|
|
451
450
|
}
|
|
452
451
|
function Qe(e) {
|
|
452
|
+
Je.length === 0 ? e() : J.push(e);
|
|
453
|
+
}
|
|
454
|
+
function $e(e) {
|
|
453
455
|
J = J.filter((t) => t !== e);
|
|
454
456
|
}
|
|
455
457
|
//#endregion
|
|
456
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.config/instance-config.js
|
|
457
|
-
var
|
|
458
|
-
function
|
|
458
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.config/instance-config.js
|
|
459
|
+
var et = {}, tt = [], nt = [], rt = 1, it = document.body;
|
|
460
|
+
function at(e, t) {
|
|
459
461
|
let n = document.createElement("div");
|
|
460
|
-
if (n.id = t === void 0 ? e : `q-portal--${t}--${
|
|
461
|
-
let e =
|
|
462
|
+
if (n.id = t === void 0 ? e : `q-portal--${t}--${rt++}`, et.globalNodes !== void 0) {
|
|
463
|
+
let e = et.globalNodes.class;
|
|
462
464
|
e !== void 0 && (n.className = e);
|
|
463
465
|
}
|
|
464
|
-
return
|
|
466
|
+
return it.append(n), tt.push(n), nt.push(t), n;
|
|
465
467
|
}
|
|
466
|
-
function
|
|
467
|
-
let t =
|
|
468
|
-
t !== -1 && (
|
|
468
|
+
function ot(e) {
|
|
469
|
+
let t = tt.indexOf(e);
|
|
470
|
+
t !== -1 && (tt.splice(t, 1), nt.splice(t, 1)), e.remove();
|
|
469
471
|
}
|
|
470
472
|
//#endregion
|
|
471
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-portal/use-portal.js
|
|
472
|
-
var
|
|
473
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-portal/use-portal.js
|
|
474
|
+
var st = qe({
|
|
473
475
|
name: "QPortal",
|
|
474
476
|
setup(e, { slots: t }) {
|
|
475
477
|
return () => t.default();
|
|
476
478
|
}
|
|
477
479
|
});
|
|
478
|
-
function
|
|
480
|
+
function ct(e) {
|
|
479
481
|
for (e = e.parent; e != null;) {
|
|
480
482
|
if (e.type.name === "QGlobalDialog") return !0;
|
|
481
483
|
if (e.type.name === "QDialog" || e.type.name === "QMenu") return !1;
|
|
@@ -483,34 +485,34 @@ function st(e) {
|
|
|
483
485
|
}
|
|
484
486
|
return !1;
|
|
485
487
|
}
|
|
486
|
-
function
|
|
487
|
-
let a = D(!1), o = D(!1), s = null, c = {}, l = i === "dialog" &&
|
|
488
|
+
function lt(e, n, r, i) {
|
|
489
|
+
let a = D(!1), o = D(!1), s = null, c = {}, l = i === "dialog" && ct(e);
|
|
488
490
|
function u(t) {
|
|
489
491
|
if (t) {
|
|
490
|
-
|
|
492
|
+
Ze(c), o.value = !0;
|
|
491
493
|
return;
|
|
492
494
|
}
|
|
493
|
-
o.value = !1, a.value || (!l && s === null && (s =
|
|
495
|
+
o.value = !1, a.value || (!l && s === null && (s = at(!1, i)), a.value = !0, q.push(e.proxy), Xe(c));
|
|
494
496
|
}
|
|
495
497
|
function d(t) {
|
|
496
498
|
if (o.value = !1, !t) return;
|
|
497
|
-
|
|
499
|
+
Ze(c), a.value = !1;
|
|
498
500
|
let n = q.indexOf(e.proxy);
|
|
499
|
-
n !== -1 && q.splice(n, 1), s !== null && (
|
|
501
|
+
n !== -1 && q.splice(n, 1), s !== null && (ot(s), s = null);
|
|
500
502
|
}
|
|
501
503
|
return w(() => {
|
|
502
504
|
d(!0);
|
|
503
|
-
}), e.proxy.__qPortal = !0,
|
|
505
|
+
}), e.proxy.__qPortal = !0, R(e.proxy, "contentEl", () => n.value), {
|
|
504
506
|
showPortal: u,
|
|
505
507
|
hidePortal: d,
|
|
506
508
|
portalIsActive: a,
|
|
507
509
|
portalIsAccessible: o,
|
|
508
|
-
renderPortal: () => l ? r() : a.value ? [f(t, { to: s }, f(
|
|
510
|
+
renderPortal: () => l ? r() : a.value ? [f(t, { to: s }, f(st, r))] : void 0
|
|
509
511
|
};
|
|
510
512
|
}
|
|
511
513
|
//#endregion
|
|
512
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-transition/use-transition.js
|
|
513
|
-
var
|
|
514
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-transition/use-transition.js
|
|
515
|
+
var ut = {
|
|
514
516
|
transitionShow: {
|
|
515
517
|
type: String,
|
|
516
518
|
default: "fade"
|
|
@@ -524,7 +526,7 @@ var lt = {
|
|
|
524
526
|
default: 300
|
|
525
527
|
}
|
|
526
528
|
};
|
|
527
|
-
function
|
|
529
|
+
function dt(e, t = () => {}, n = () => {}) {
|
|
528
530
|
return {
|
|
529
531
|
transitionProps: r(() => {
|
|
530
532
|
let r = `q-transition--${e.transitionShow || t()}`, i = `q-transition--${e.transitionHide || n()}`;
|
|
@@ -542,8 +544,8 @@ function ut(e, t = () => {}, n = () => {}) {
|
|
|
542
544
|
};
|
|
543
545
|
}
|
|
544
546
|
//#endregion
|
|
545
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-tick/use-tick.js
|
|
546
|
-
function
|
|
547
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-tick/use-tick.js
|
|
548
|
+
function ft() {
|
|
547
549
|
let e, t = d();
|
|
548
550
|
function n() {
|
|
549
551
|
e = void 0;
|
|
@@ -552,14 +554,14 @@ function dt() {
|
|
|
552
554
|
removeTick: n,
|
|
553
555
|
registerTick(n) {
|
|
554
556
|
e = n, _(() => {
|
|
555
|
-
e === n && (
|
|
557
|
+
e === n && (Ue(t) || e(), e = void 0);
|
|
556
558
|
});
|
|
557
559
|
}
|
|
558
560
|
};
|
|
559
561
|
}
|
|
560
562
|
//#endregion
|
|
561
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-timeout/use-timeout.js
|
|
562
|
-
function
|
|
563
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-timeout/use-timeout.js
|
|
564
|
+
function pt() {
|
|
563
565
|
let e = null, t = d();
|
|
564
566
|
function n() {
|
|
565
567
|
e !== null && (clearTimeout(e), e = null);
|
|
@@ -567,15 +569,15 @@ function ft() {
|
|
|
567
569
|
return S(n), b(n), {
|
|
568
570
|
removeTimeout: n,
|
|
569
571
|
registerTimeout(r, i) {
|
|
570
|
-
n(),
|
|
572
|
+
n(), Ue(t) || (e = setTimeout(() => {
|
|
571
573
|
e = null, r();
|
|
572
574
|
}, i));
|
|
573
575
|
}
|
|
574
576
|
};
|
|
575
577
|
}
|
|
576
578
|
//#endregion
|
|
577
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/uid/uid.js
|
|
578
|
-
function
|
|
579
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/uid/uid.js
|
|
580
|
+
function mt() {
|
|
579
581
|
if (typeof crypto > "u") return () => {
|
|
580
582
|
throw Error("[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.");
|
|
581
583
|
};
|
|
@@ -587,33 +589,33 @@ function pt() {
|
|
|
587
589
|
return n += 16, t[r + 6] = t[r + 6] & 15 | 64, t[r + 8] = t[r + 8] & 63 | 128, e[t[r]] + e[t[r + 1]] + e[t[r + 2]] + e[t[r + 3]] + "-" + e[t[r + 4]] + e[t[r + 5]] + "-" + e[t[r + 6]] + e[t[r + 7]] + "-" + e[t[r + 8]] + e[t[r + 9]] + "-" + e[t[r + 10]] + e[t[r + 11]] + e[t[r + 12]] + e[t[r + 13]] + e[t[r + 14]] + e[t[r + 15]];
|
|
588
590
|
};
|
|
589
591
|
}
|
|
590
|
-
var
|
|
592
|
+
var ht = mt();
|
|
591
593
|
//#endregion
|
|
592
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-id/use-id.js
|
|
593
|
-
function
|
|
594
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-id/use-id.js
|
|
595
|
+
function gt(e) {
|
|
594
596
|
return e ?? null;
|
|
595
597
|
}
|
|
596
|
-
function
|
|
597
|
-
return e ?? (t ? `f_${
|
|
598
|
+
function _t(e, t) {
|
|
599
|
+
return e ?? (t ? `f_${ht()}` : null);
|
|
598
600
|
}
|
|
599
|
-
function
|
|
600
|
-
if (
|
|
601
|
-
let n = D(e === void 0 ? null :
|
|
601
|
+
function vt({ getValue: e, required: t = !0 } = {}) {
|
|
602
|
+
if (z.value) {
|
|
603
|
+
let n = D(e === void 0 ? null : gt(e()));
|
|
602
604
|
return t && n.value === null && C(() => {
|
|
603
|
-
n.value = `f_${
|
|
605
|
+
n.value = `f_${ht()}`;
|
|
604
606
|
}), e !== void 0 && M(e, (e) => {
|
|
605
|
-
n.value =
|
|
607
|
+
n.value = _t(e, t);
|
|
606
608
|
}), n;
|
|
607
609
|
}
|
|
608
|
-
return e === void 0 ? D(`f_${
|
|
610
|
+
return e === void 0 ? D(`f_${ht()}`) : r(() => _t(e(), t));
|
|
609
611
|
}
|
|
610
612
|
//#endregion
|
|
611
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/dom/dom.js
|
|
612
|
-
function
|
|
613
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/dom/dom.js
|
|
614
|
+
function yt(e, t) {
|
|
613
615
|
let n = e.style;
|
|
614
616
|
for (let e in t) n[e] = t[e];
|
|
615
617
|
}
|
|
616
|
-
function
|
|
618
|
+
function bt(e) {
|
|
617
619
|
if (e == null) return;
|
|
618
620
|
if (typeof e == "string") try {
|
|
619
621
|
return document.querySelector(e) || void 0;
|
|
@@ -624,30 +626,30 @@ function yt(e) {
|
|
|
624
626
|
if (t) return t.$el || t;
|
|
625
627
|
}
|
|
626
628
|
//#endregion
|
|
627
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/scroll.js
|
|
628
|
-
var
|
|
629
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/scroll/scroll.js
|
|
630
|
+
var xt = [Element, String], St = [
|
|
629
631
|
null,
|
|
630
632
|
document,
|
|
631
633
|
document.body,
|
|
632
634
|
document.scrollingElement,
|
|
633
635
|
document.documentElement
|
|
634
636
|
];
|
|
635
|
-
function
|
|
636
|
-
let n =
|
|
637
|
+
function Ct(e, t) {
|
|
638
|
+
let n = bt(t);
|
|
637
639
|
if (n === void 0) {
|
|
638
640
|
if (e == null) return window;
|
|
639
641
|
n = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
640
642
|
}
|
|
641
|
-
return
|
|
643
|
+
return St.includes(n) ? window : n;
|
|
642
644
|
}
|
|
643
|
-
var
|
|
644
|
-
function
|
|
645
|
-
if (
|
|
645
|
+
var wt;
|
|
646
|
+
function Tt() {
|
|
647
|
+
if (wt !== void 0) return wt;
|
|
646
648
|
let e = document.createElement("p"), t = document.createElement("div");
|
|
647
|
-
|
|
649
|
+
yt(e, {
|
|
648
650
|
width: "100%",
|
|
649
651
|
height: "200px"
|
|
650
|
-
}),
|
|
652
|
+
}), yt(t, {
|
|
651
653
|
position: "absolute",
|
|
652
654
|
top: "0px",
|
|
653
655
|
left: "0px",
|
|
@@ -659,42 +661,42 @@ function wt() {
|
|
|
659
661
|
let n = e.offsetWidth;
|
|
660
662
|
t.style.overflow = "scroll";
|
|
661
663
|
let r = e.offsetWidth;
|
|
662
|
-
return n === r && (r = t.clientWidth), t.remove(),
|
|
664
|
+
return n === r && (r = t.clientWidth), t.remove(), wt = n - r, wt;
|
|
663
665
|
}
|
|
664
666
|
//#endregion
|
|
665
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/escape-key.js
|
|
666
|
-
var Y = [],
|
|
667
|
-
function
|
|
668
|
-
e.keyCode === 27 && (
|
|
667
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.keyboard/escape-key.js
|
|
668
|
+
var Y = [], Et;
|
|
669
|
+
function Dt(e) {
|
|
670
|
+
e.keyCode === 27 && (Et = !0);
|
|
669
671
|
}
|
|
670
|
-
function
|
|
671
|
-
|
|
672
|
-
}
|
|
673
|
-
function Ot(e) {
|
|
674
|
-
Tt && Le(e, 27) && (Tt = !1, Y.at(-1)(e));
|
|
672
|
+
function Ot() {
|
|
673
|
+
Et &&= !1;
|
|
675
674
|
}
|
|
676
675
|
function kt(e) {
|
|
677
|
-
|
|
676
|
+
Et && Re(e, 27) && (Et = !1, Y.at(-1)(e));
|
|
678
677
|
}
|
|
679
678
|
function At(e) {
|
|
680
|
-
|
|
679
|
+
window[e]("keydown", Dt), window[e]("blur", Ot), window[e]("keyup", kt), Et = !1;
|
|
681
680
|
}
|
|
682
681
|
function jt(e) {
|
|
682
|
+
W.is.desktop && (Y.push(e), Y.length === 1 && At("addEventListener"));
|
|
683
|
+
}
|
|
684
|
+
function Mt(e) {
|
|
683
685
|
let t = Y.indexOf(e);
|
|
684
|
-
t !== -1 && (Y.splice(t, 1), Y.length === 0 &&
|
|
686
|
+
t !== -1 && (Y.splice(t, 1), Y.length === 0 && At("removeEventListener"));
|
|
685
687
|
}
|
|
686
688
|
//#endregion
|
|
687
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.render/render.js
|
|
689
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.render/render.js
|
|
688
690
|
function X(e, t) {
|
|
689
691
|
return e === void 0 ? t : e() || t;
|
|
690
692
|
}
|
|
691
|
-
function
|
|
693
|
+
function Nt(e, t) {
|
|
692
694
|
return e === void 0 ? t : t.concat(e());
|
|
693
695
|
}
|
|
694
696
|
//#endregion
|
|
695
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.click-outside/click-outside.js
|
|
696
|
-
var Z = null, { notPassiveCapture:
|
|
697
|
-
function
|
|
697
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.click-outside/click-outside.js
|
|
698
|
+
var Z = null, { notPassiveCapture: Pt } = G, Q = [];
|
|
699
|
+
function Ft(e) {
|
|
698
700
|
Z !== null && (clearTimeout(Z), Z = null);
|
|
699
701
|
let t = e.target;
|
|
700
702
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events")) return;
|
|
@@ -720,34 +722,34 @@ function Pt(e) {
|
|
|
720
722
|
else return;
|
|
721
723
|
}
|
|
722
724
|
}
|
|
723
|
-
function Ft(e) {
|
|
724
|
-
Q.push(e), Q.length === 1 && (document.addEventListener("mousedown", Pt, Nt), document.addEventListener("touchstart", Pt, Nt));
|
|
725
|
-
}
|
|
726
725
|
function It(e) {
|
|
726
|
+
Q.push(e), Q.length === 1 && (document.addEventListener("mousedown", Ft, Pt), document.addEventListener("touchstart", Ft, Pt));
|
|
727
|
+
}
|
|
728
|
+
function Lt(e) {
|
|
727
729
|
let t = Q.indexOf(e);
|
|
728
|
-
t !== -1 && (Q.splice(t, 1), Q.length === 0 && (Z !== null && (clearTimeout(Z), Z = null), document.removeEventListener("mousedown",
|
|
730
|
+
t !== -1 && (Q.splice(t, 1), Q.length === 0 && (Z !== null && (clearTimeout(Z), Z = null), document.removeEventListener("mousedown", Ft, Pt), document.removeEventListener("touchstart", Ft, Pt)));
|
|
729
731
|
}
|
|
730
732
|
//#endregion
|
|
731
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.position-engine/position-engine.js
|
|
732
|
-
var
|
|
733
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.position-engine/position-engine.js
|
|
734
|
+
var Rt, zt, Bt = [
|
|
733
735
|
"top",
|
|
734
736
|
"center",
|
|
735
737
|
"bottom"
|
|
736
|
-
],
|
|
738
|
+
], Vt = [
|
|
737
739
|
"left",
|
|
738
740
|
"middle",
|
|
739
741
|
"right",
|
|
740
742
|
"start",
|
|
741
743
|
"end"
|
|
742
744
|
];
|
|
743
|
-
function
|
|
745
|
+
function Ht(e) {
|
|
744
746
|
let t = e.split(" ");
|
|
745
|
-
return t.length === 2 ?
|
|
747
|
+
return t.length === 2 ? Bt.includes(t[0]) ? Vt.includes(t[1]) ? !0 : (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : !1;
|
|
746
748
|
}
|
|
747
|
-
function
|
|
748
|
-
return !e ||
|
|
749
|
+
function Ut(e) {
|
|
750
|
+
return !e || e.length === 2 && typeof e[0] == "number" && typeof e[1] == "number";
|
|
749
751
|
}
|
|
750
|
-
var
|
|
752
|
+
var Wt = {
|
|
751
753
|
"start#ltr": "left",
|
|
752
754
|
"start#rtl": "right",
|
|
753
755
|
"end#ltr": "right",
|
|
@@ -758,16 +760,16 @@ var Ut = {
|
|
|
758
760
|
"middle",
|
|
759
761
|
"right"
|
|
760
762
|
].forEach((e) => {
|
|
761
|
-
|
|
763
|
+
Wt[`${e}#ltr`] = e, Wt[`${e}#rtl`] = e;
|
|
762
764
|
});
|
|
763
|
-
function
|
|
765
|
+
function Gt(e, t) {
|
|
764
766
|
let n = e.split(" ");
|
|
765
767
|
return {
|
|
766
768
|
vertical: n[0],
|
|
767
|
-
horizontal:
|
|
769
|
+
horizontal: Wt[`${n[1]}#${t ? "rtl" : "ltr"}`]
|
|
768
770
|
};
|
|
769
771
|
}
|
|
770
|
-
function
|
|
772
|
+
function Kt(e, t) {
|
|
771
773
|
let { top: n, left: r, right: i, bottom: a, width: o, height: s } = e.getBoundingClientRect();
|
|
772
774
|
return t !== void 0 && (n -= t[1], r -= t[0], a += t[1], i += t[0], o += t[0], s += t[1]), {
|
|
773
775
|
top: n,
|
|
@@ -780,7 +782,7 @@ function Gt(e, t) {
|
|
|
780
782
|
center: n + (a - n) / 2
|
|
781
783
|
};
|
|
782
784
|
}
|
|
783
|
-
function
|
|
785
|
+
function qt(e, t, n) {
|
|
784
786
|
let { top: r, left: i } = e.getBoundingClientRect();
|
|
785
787
|
return r += t.top, i += t.left, n !== void 0 && (r += n[1], i += n[0]), {
|
|
786
788
|
top: r,
|
|
@@ -793,7 +795,7 @@ function Kt(e, t, n) {
|
|
|
793
795
|
center: r
|
|
794
796
|
};
|
|
795
797
|
}
|
|
796
|
-
function
|
|
798
|
+
function Jt(e, t) {
|
|
797
799
|
return {
|
|
798
800
|
top: 0,
|
|
799
801
|
center: t / 2,
|
|
@@ -803,26 +805,26 @@ function qt(e, t) {
|
|
|
803
805
|
right: e
|
|
804
806
|
};
|
|
805
807
|
}
|
|
806
|
-
function
|
|
808
|
+
function Yt(e, t, n, r) {
|
|
807
809
|
return {
|
|
808
810
|
top: e[n.vertical] - t[r.vertical],
|
|
809
811
|
left: e[n.horizontal] - t[r.horizontal]
|
|
810
812
|
};
|
|
811
813
|
}
|
|
812
|
-
function
|
|
814
|
+
function Xt(e, t = 0) {
|
|
813
815
|
if (e.targetEl === null || e.anchorEl === null || t > 5) return;
|
|
814
816
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
815
817
|
setTimeout(() => {
|
|
816
|
-
|
|
818
|
+
Xt(e, t + 1);
|
|
817
819
|
}, 10);
|
|
818
820
|
return;
|
|
819
821
|
}
|
|
820
822
|
let { targetEl: n, offset: r, anchorEl: i, anchorOrigin: a, selfOrigin: o, absoluteOffset: s, fit: c, cover: l, maxHeight: u, maxWidth: d } = e;
|
|
821
823
|
if (W.is.ios && window.visualViewport !== void 0) {
|
|
822
824
|
let e = document.body.style, { offsetLeft: t, offsetTop: n } = window.visualViewport;
|
|
823
|
-
t !==
|
|
825
|
+
t !== Rt && (e.setProperty("--q-pe-left", t + "px"), Rt = t), n !== zt && (e.setProperty("--q-pe-top", n + "px"), zt = n);
|
|
824
826
|
}
|
|
825
|
-
let { scrollLeft: f, scrollTop: p } = n, m = s === void 0 ?
|
|
827
|
+
let { scrollLeft: f, scrollTop: p } = n, m = s === void 0 ? Kt(i, l ? [0, 0] : r) : qt(i, s, r);
|
|
826
828
|
Object.assign(n.style, {
|
|
827
829
|
top: 0,
|
|
828
830
|
left: 0,
|
|
@@ -843,11 +845,11 @@ function Yt(e, t = 0) {
|
|
|
843
845
|
maxHeight: u
|
|
844
846
|
};
|
|
845
847
|
(c || l) && (y.minWidth = m.width + "px", l && (y.minHeight = m.height + "px")), Object.assign(n.style, y);
|
|
846
|
-
let b =
|
|
847
|
-
if (s === void 0 || r === void 0)
|
|
848
|
+
let b = Jt(_, v), x = Yt(m, b, a, o);
|
|
849
|
+
if (s === void 0 || r === void 0) Zt(x, m, b, a, o);
|
|
848
850
|
else {
|
|
849
851
|
let { top: e, left: t } = x;
|
|
850
|
-
|
|
852
|
+
Zt(x, m, b, a, o);
|
|
851
853
|
let n = !1;
|
|
852
854
|
if (x.top !== e) {
|
|
853
855
|
n = !0;
|
|
@@ -859,35 +861,39 @@ function Yt(e, t = 0) {
|
|
|
859
861
|
let e = 2 * r[0];
|
|
860
862
|
m.middle = m.left -= e, m.right -= e + 2;
|
|
861
863
|
}
|
|
862
|
-
n && (x =
|
|
864
|
+
n && (x = Yt(m, b, a, o), Zt(x, m, b, a, o));
|
|
863
865
|
}
|
|
864
866
|
y = {
|
|
865
867
|
top: x.top + "px",
|
|
866
868
|
left: x.left + "px"
|
|
867
869
|
}, x.maxHeight !== void 0 && (y.maxHeight = x.maxHeight + "px", m.height > x.maxHeight && (y.minHeight = y.maxHeight)), x.maxWidth !== void 0 && (y.maxWidth = x.maxWidth + "px", m.width > x.maxWidth && (y.minWidth = y.maxWidth)), Object.assign(n.style, y), n.scrollTop !== p && (n.scrollTop = p), n.scrollLeft !== f && (n.scrollLeft = f);
|
|
868
870
|
}
|
|
869
|
-
function
|
|
870
|
-
let a = n.bottom, o = n.right, s =
|
|
871
|
-
if (e.top < 0 || e.top + a > c)
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
e.maxWidth = Math.min(o,
|
|
880
|
-
|
|
871
|
+
function Zt(e, t, n, r, i) {
|
|
872
|
+
let a = n.bottom, o = n.right, s = Tt(), c = window.innerHeight - s, l = document.body.clientWidth;
|
|
873
|
+
if (e.top < 0 || e.top + a > c) {
|
|
874
|
+
if (i.vertical === "center") e.top = t[r.vertical] > c / 2 ? Math.max(0, c - a) : 0, e.maxHeight = Math.min(a, c);
|
|
875
|
+
else if (t[r.vertical] > c / 2) {
|
|
876
|
+
let n = Math.min(c, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.bottom : t.top);
|
|
877
|
+
e.maxHeight = Math.min(a, n), e.top = Math.max(0, n - a);
|
|
878
|
+
} else e.top = Math.max(0, r.vertical === "center" ? t.center : r.vertical === i.vertical ? t.top : t.bottom), e.maxHeight = Math.min(a, c - e.top);
|
|
879
|
+
}
|
|
880
|
+
if (e.left < 0 || e.left + o > l) {
|
|
881
|
+
if (e.maxWidth = Math.min(o, l), i.horizontal === "middle") e.left = t[r.horizontal] > l / 2 ? Math.max(0, l - o) : 0;
|
|
882
|
+
else if (t[r.horizontal] > l / 2) {
|
|
883
|
+
let n = Math.min(l, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.right : t.left);
|
|
884
|
+
e.maxWidth = Math.min(o, n), e.left = Math.max(0, n - e.maxWidth);
|
|
885
|
+
} else e.left = Math.max(0, r.horizontal === "middle" ? t.middle : r.horizontal === i.horizontal ? t.left : t.right), e.maxWidth = Math.min(o, l - e.left);
|
|
886
|
+
}
|
|
881
887
|
}
|
|
882
888
|
//#endregion
|
|
883
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/tooltip/QTooltip.js
|
|
884
|
-
var
|
|
889
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/tooltip/QTooltip.js
|
|
890
|
+
var Qt = 0, $t = qe({
|
|
885
891
|
name: "QTooltip",
|
|
886
892
|
inheritAttrs: !1,
|
|
887
893
|
props: {
|
|
888
|
-
...
|
|
889
|
-
...
|
|
890
|
-
...
|
|
894
|
+
...ze,
|
|
895
|
+
...We,
|
|
896
|
+
...ut,
|
|
891
897
|
maxHeight: {
|
|
892
898
|
type: String,
|
|
893
899
|
default: null
|
|
@@ -897,29 +903,29 @@ var Zt = 0, Qt = Ke({
|
|
|
897
903
|
default: null
|
|
898
904
|
},
|
|
899
905
|
transitionShow: {
|
|
900
|
-
...
|
|
906
|
+
...ut.transitionShow,
|
|
901
907
|
default: "jump-down"
|
|
902
908
|
},
|
|
903
909
|
transitionHide: {
|
|
904
|
-
...
|
|
910
|
+
...ut.transitionHide,
|
|
905
911
|
default: "jump-up"
|
|
906
912
|
},
|
|
907
913
|
anchor: {
|
|
908
914
|
type: String,
|
|
909
915
|
default: "bottom middle",
|
|
910
|
-
validator:
|
|
916
|
+
validator: Ht
|
|
911
917
|
},
|
|
912
918
|
self: {
|
|
913
919
|
type: String,
|
|
914
920
|
default: "top middle",
|
|
915
|
-
validator:
|
|
921
|
+
validator: Ht
|
|
916
922
|
},
|
|
917
923
|
offset: {
|
|
918
924
|
type: Array,
|
|
919
925
|
default: () => [14, 14],
|
|
920
|
-
validator:
|
|
926
|
+
validator: Ut
|
|
921
927
|
},
|
|
922
|
-
scrollTarget:
|
|
928
|
+
scrollTarget: xt,
|
|
923
929
|
delay: {
|
|
924
930
|
type: Number,
|
|
925
931
|
default: 0
|
|
@@ -930,12 +936,12 @@ var Zt = 0, Qt = Ke({
|
|
|
930
936
|
},
|
|
931
937
|
persistent: Boolean
|
|
932
938
|
},
|
|
933
|
-
emits: [...
|
|
939
|
+
emits: [...Ge],
|
|
934
940
|
setup(e, { slots: t, emit: i, attrs: a }) {
|
|
935
|
-
let o, s, c, l = !1, u, p = d(), { proxy: { $q: m } } = p, h = D(null), g = D(!1), _ =
|
|
941
|
+
let o, s, c, l = !1, u, p = d(), { proxy: { $q: m } } = p, h = D(null), g = D(!1), _ = vt(), v = r(() => a.id || _.value), y = r(() => Gt(e.anchor, m.lang.rtl)), x = r(() => Gt(e.self, m.lang.rtl)), S = r(() => !e.persistent), { registerTick: C, removeTick: w } = ft(), { registerTimeout: T } = pt(), { transitionProps: E, transitionStyle: O } = dt(e), { localScrollTarget: k, changeScrollEvent: A, unconfigureScrollTarget: ee } = Ve(e, le), { anchorEl: j, canShow: N, anchorEvents: P } = Be({
|
|
936
942
|
showing: g,
|
|
937
943
|
configureAnchorEl: ae
|
|
938
|
-
}), { show: F, hide: I } =
|
|
944
|
+
}), { show: F, hide: I } = Ke({
|
|
939
945
|
showing: g,
|
|
940
946
|
canShow: N,
|
|
941
947
|
handleShow: B,
|
|
@@ -948,22 +954,22 @@ var Zt = 0, Qt = Ke({
|
|
|
948
954
|
delayHide: U,
|
|
949
955
|
onFocusin: re
|
|
950
956
|
});
|
|
951
|
-
let { showPortal: L, hidePortal: R, renderPortal: z } =
|
|
957
|
+
let { showPortal: L, hidePortal: R, renderPortal: z } = lt(p, h, de, "tooltip");
|
|
952
958
|
if (m.platform.is.mobile) {
|
|
953
959
|
let t = {
|
|
954
960
|
anchorEl: j,
|
|
955
961
|
innerRef: h,
|
|
956
962
|
onClickOutside(e) {
|
|
957
|
-
return I(e), e.target.classList.contains("q-dialog__backdrop") &&
|
|
963
|
+
return I(e), e.target.classList.contains("q-dialog__backdrop") && Ne(e), !0;
|
|
958
964
|
}
|
|
959
|
-
};
|
|
960
|
-
M(
|
|
961
|
-
(e ?
|
|
965
|
+
}, n = r(() => e.modelValue === null && !e.persistent && g.value);
|
|
966
|
+
M(n, (e) => {
|
|
967
|
+
(e ? It : Lt)(t);
|
|
962
968
|
}), b(() => {
|
|
963
|
-
|
|
969
|
+
Lt(t);
|
|
964
970
|
});
|
|
965
971
|
} else M(() => (e.modelValue === null || e["onUpdate:modelValue"]) && g.value === !0 && e.persistent !== !0, (e) => {
|
|
966
|
-
(e === !0 ?
|
|
972
|
+
(e === !0 ? jt : Mt)(ie);
|
|
967
973
|
});
|
|
968
974
|
function B(t) {
|
|
969
975
|
L(), se(), C(() => {
|
|
@@ -987,10 +993,10 @@ var Zt = 0, Qt = Ke({
|
|
|
987
993
|
}, e.transitionDuration);
|
|
988
994
|
}
|
|
989
995
|
function V() {
|
|
990
|
-
s !== void 0 && (s.disconnect(), s = void 0), o !== void 0 && (o(), o = void 0), ee(),
|
|
996
|
+
s !== void 0 && (s.disconnect(), s = void 0), o !== void 0 && (o(), o = void 0), ee(), Mt(ie), Fe(P, "tooltipTemp"), ce(), oe(!1);
|
|
991
997
|
}
|
|
992
998
|
function H() {
|
|
993
|
-
|
|
999
|
+
Xt({
|
|
994
1000
|
targetEl: h.value,
|
|
995
1001
|
offset: e.offset,
|
|
996
1002
|
anchorEl: j.value,
|
|
@@ -1002,7 +1008,7 @@ var Zt = 0, Qt = Ke({
|
|
|
1002
1008
|
}
|
|
1003
1009
|
function ne(t) {
|
|
1004
1010
|
if (m.platform.is.mobile) {
|
|
1005
|
-
c !== void 0 && (clearTimeout(c), c = void 0),
|
|
1011
|
+
c !== void 0 && (clearTimeout(c), c = void 0), je(), oe(!0);
|
|
1006
1012
|
let e = j.value, t = [
|
|
1007
1013
|
"touchmove",
|
|
1008
1014
|
"touchcancel",
|
|
@@ -1014,14 +1020,14 @@ var Zt = 0, Qt = Ke({
|
|
|
1014
1020
|
"delayHide",
|
|
1015
1021
|
"passiveCapture"
|
|
1016
1022
|
]);
|
|
1017
|
-
|
|
1023
|
+
Pe(P, "tooltipTemp", t);
|
|
1018
1024
|
}
|
|
1019
1025
|
T(() => {
|
|
1020
1026
|
F(t);
|
|
1021
1027
|
}, e.delay);
|
|
1022
1028
|
}
|
|
1023
1029
|
function U(t) {
|
|
1024
|
-
m.platform.is.mobile && (
|
|
1030
|
+
m.platform.is.mobile && (Fe(P, "tooltipTemp"), je(), c = setTimeout(() => {
|
|
1025
1031
|
c = void 0, oe(!1);
|
|
1026
1032
|
}, 10)), T(() => {
|
|
1027
1033
|
I(t);
|
|
@@ -1072,10 +1078,10 @@ var Zt = 0, Qt = Ke({
|
|
|
1072
1078
|
"passive"
|
|
1073
1079
|
]
|
|
1074
1080
|
];
|
|
1075
|
-
|
|
1081
|
+
Pe(P, "anchor", t);
|
|
1076
1082
|
}
|
|
1077
1083
|
function oe(e) {
|
|
1078
|
-
l !== e && (l = e,
|
|
1084
|
+
l !== e && (l = e, Qt += e ? 1 : -1, document.body.classList.toggle("non-selectable", Qt > 0), !e && c !== void 0 && (clearTimeout(c), c = void 0));
|
|
1079
1085
|
}
|
|
1080
1086
|
function se() {
|
|
1081
1087
|
let e = j.value, t = v.value;
|
|
@@ -1096,7 +1102,7 @@ var Zt = 0, Qt = Ke({
|
|
|
1096
1102
|
}
|
|
1097
1103
|
function le() {
|
|
1098
1104
|
if (j.value !== null || e.scrollTarget !== void 0) {
|
|
1099
|
-
k.value =
|
|
1105
|
+
k.value = Ct(j.value, e.scrollTarget);
|
|
1100
1106
|
let t = e.noParentEvent ? H : I;
|
|
1101
1107
|
A(k.value, t);
|
|
1102
1108
|
}
|
|
@@ -1116,42 +1122,42 @@ var Zt = 0, Qt = Ke({
|
|
|
1116
1122
|
}
|
|
1117
1123
|
return b(V), Object.assign(p.proxy, { updatePosition: H }), z;
|
|
1118
1124
|
}
|
|
1119
|
-
}),
|
|
1125
|
+
}), en = {
|
|
1120
1126
|
xs: 18,
|
|
1121
1127
|
sm: 24,
|
|
1122
1128
|
md: 32,
|
|
1123
1129
|
lg: 38,
|
|
1124
1130
|
xl: 46
|
|
1125
|
-
},
|
|
1126
|
-
function
|
|
1131
|
+
}, tn = { size: String };
|
|
1132
|
+
function nn(e, t = en) {
|
|
1127
1133
|
return r(() => e.size === void 0 ? null : { fontSize: e.size in t ? `${t[e.size]}px` : e.size });
|
|
1128
1134
|
}
|
|
1129
1135
|
//#endregion
|
|
1130
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/icon/QIcon.js
|
|
1131
|
-
var
|
|
1136
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/icon/QIcon.js
|
|
1137
|
+
var rn = "0 0 24 24", an = (e) => e, on = (e) => `ionicons ${e}`, sn = {
|
|
1132
1138
|
"mdi-": (e) => `mdi ${e}`,
|
|
1133
|
-
"icon-":
|
|
1139
|
+
"icon-": an,
|
|
1134
1140
|
"bt-": (e) => `bt ${e}`,
|
|
1135
1141
|
"eva-": (e) => `eva ${e}`,
|
|
1136
|
-
"ion-md":
|
|
1137
|
-
"ion-ios":
|
|
1138
|
-
"ion-logo":
|
|
1139
|
-
"iconfont ":
|
|
1142
|
+
"ion-md": on,
|
|
1143
|
+
"ion-ios": on,
|
|
1144
|
+
"ion-logo": on,
|
|
1145
|
+
"iconfont ": an,
|
|
1140
1146
|
"ti-": (e) => `themify-icon ${e}`,
|
|
1141
1147
|
"bi-": (e) => `bootstrap-icons ${e}`,
|
|
1142
|
-
"i-":
|
|
1143
|
-
},
|
|
1148
|
+
"i-": an
|
|
1149
|
+
}, cn = {
|
|
1144
1150
|
o_: "-outlined",
|
|
1145
1151
|
r_: "-round",
|
|
1146
1152
|
s_: "-sharp"
|
|
1147
|
-
},
|
|
1153
|
+
}, ln = {
|
|
1148
1154
|
sym_o_: "-outlined",
|
|
1149
1155
|
sym_r_: "-rounded",
|
|
1150
1156
|
sym_s_: "-sharp"
|
|
1151
|
-
},
|
|
1157
|
+
}, un = RegExp("^(" + Object.keys(sn).join("|") + ")"), dn = RegExp("^(" + Object.keys(cn).join("|") + ")"), fn = RegExp("^(" + Object.keys(ln).join("|") + ")"), pn = /^[Mm]\s?[-+]?\.?\d/, mn = /^img:/, hn = /^svguse:/, gn = /^ion-/, _n = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, vn = qe({
|
|
1152
1158
|
name: "QIcon",
|
|
1153
1159
|
props: {
|
|
1154
|
-
...
|
|
1160
|
+
...tn,
|
|
1155
1161
|
tag: {
|
|
1156
1162
|
type: String,
|
|
1157
1163
|
default: "i"
|
|
@@ -1162,20 +1168,22 @@ var nn = "0 0 24 24", rn = (e) => e, an = (e) => `ionicons ${e}`, on = {
|
|
|
1162
1168
|
right: Boolean
|
|
1163
1169
|
},
|
|
1164
1170
|
setup(e, { slots: t }) {
|
|
1165
|
-
let { proxy: { $q: n } } = d(), i =
|
|
1171
|
+
let { proxy: { $q: n } } = d(), i = nn(e), a = r(() => "q-icon" + (e.left ? " on-left" : "") + (e.right ? " on-right" : "") + (e.color === void 0 ? "" : ` text-${e.color}`)), o = r(() => {
|
|
1166
1172
|
let t, r = e.name;
|
|
1167
1173
|
if (r === "none" || !r) return { none: !0 };
|
|
1168
1174
|
if (n.iconMapFn !== null) {
|
|
1169
1175
|
let e = n.iconMapFn(r);
|
|
1170
|
-
if (e !== void 0)
|
|
1171
|
-
if (
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
+
if (e !== void 0) {
|
|
1177
|
+
if (e.icon !== void 0) {
|
|
1178
|
+
if (r = e.icon, r === "none" || !r) return { none: !0 };
|
|
1179
|
+
} else return {
|
|
1180
|
+
cls: e.cls,
|
|
1181
|
+
content: e.content === void 0 ? " " : e.content
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1176
1184
|
}
|
|
1177
|
-
if (
|
|
1178
|
-
let [e, t =
|
|
1185
|
+
if (pn.test(r)) {
|
|
1186
|
+
let [e, t = rn] = r.split("|");
|
|
1179
1187
|
return {
|
|
1180
1188
|
svg: !0,
|
|
1181
1189
|
viewBox: t,
|
|
@@ -1189,30 +1197,30 @@ var nn = "0 0 24 24", rn = (e) => e, an = (e) => `ionicons ${e}`, on = {
|
|
|
1189
1197
|
})
|
|
1190
1198
|
};
|
|
1191
1199
|
}
|
|
1192
|
-
if (
|
|
1200
|
+
if (mn.test(r)) return {
|
|
1193
1201
|
img: !0,
|
|
1194
1202
|
src: r.slice(4)
|
|
1195
1203
|
};
|
|
1196
|
-
if (
|
|
1197
|
-
let [e, t =
|
|
1204
|
+
if (hn.test(r)) {
|
|
1205
|
+
let [e, t = rn] = r.split("|");
|
|
1198
1206
|
return {
|
|
1199
1207
|
svguse: !0,
|
|
1200
1208
|
src: e.slice(7),
|
|
1201
1209
|
viewBox: t
|
|
1202
1210
|
};
|
|
1203
1211
|
}
|
|
1204
|
-
let i = " ", a = r.match(
|
|
1205
|
-
if (a !== null) t =
|
|
1206
|
-
else if (
|
|
1207
|
-
else if (
|
|
1208
|
-
else if (
|
|
1212
|
+
let i = " ", a = r.match(un);
|
|
1213
|
+
if (a !== null) t = sn[a[1]](r);
|
|
1214
|
+
else if (_n.test(r)) t = r;
|
|
1215
|
+
else if (gn.test(r)) t = `ionicons ion-${n.platform.is.ios ? "ios" : "md"}${r.slice(3)}`;
|
|
1216
|
+
else if (fn.test(r)) {
|
|
1209
1217
|
t = "notranslate material-symbols";
|
|
1210
|
-
let e = r.match(
|
|
1211
|
-
e !== null && (r = r.slice(6), t +=
|
|
1218
|
+
let e = r.match(fn);
|
|
1219
|
+
e !== null && (r = r.slice(6), t += ln[e[1]]), i = r;
|
|
1212
1220
|
} else {
|
|
1213
1221
|
t = "notranslate material-icons";
|
|
1214
|
-
let e = r.match(
|
|
1215
|
-
e !== null && (r = r.slice(2), t +=
|
|
1222
|
+
let e = r.match(dn);
|
|
1223
|
+
e !== null && (r = r.slice(2), t += cn[e[1]]), i = r;
|
|
1216
1224
|
}
|
|
1217
1225
|
return {
|
|
1218
1226
|
cls: t,
|
|
@@ -1225,35 +1233,35 @@ var nn = "0 0 24 24", rn = (e) => e, an = (e) => `ionicons ${e}`, on = {
|
|
|
1225
1233
|
style: i.value,
|
|
1226
1234
|
"aria-hidden": "true"
|
|
1227
1235
|
};
|
|
1228
|
-
return o.value.none ? f(e.tag, n, X(t.default)) : o.value.img ? f(e.tag, n,
|
|
1236
|
+
return o.value.none ? f(e.tag, n, X(t.default)) : o.value.img ? f(e.tag, n, Nt(t.default, [f("img", { src: o.value.src })])) : o.value.svg ? f(e.tag, n, Nt(t.default, [f("svg", { viewBox: o.value.viewBox || "0 0 24 24" }, o.value.nodes)])) : o.value.svguse ? f(e.tag, n, Nt(t.default, [f("svg", { viewBox: o.value.viewBox }, [f("use", { "xlink:href": o.value.src })])])) : (o.value.cls !== void 0 && (n.class += " " + o.value.cls), f(e.tag, n, Nt(t.default, [o.value.content])));
|
|
1229
1237
|
};
|
|
1230
1238
|
}
|
|
1231
|
-
}),
|
|
1239
|
+
}), yn = {
|
|
1232
1240
|
size: {
|
|
1233
1241
|
type: [String, Number],
|
|
1234
1242
|
default: "1em"
|
|
1235
1243
|
},
|
|
1236
1244
|
color: String
|
|
1237
1245
|
};
|
|
1238
|
-
function
|
|
1246
|
+
function bn(e) {
|
|
1239
1247
|
return {
|
|
1240
|
-
cSize: r(() => e.size in
|
|
1248
|
+
cSize: r(() => e.size in en ? `${en[e.size]}px` : e.size),
|
|
1241
1249
|
classes: r(() => "q-spinner" + (e.color ? ` text-${e.color}` : ""))
|
|
1242
1250
|
};
|
|
1243
1251
|
}
|
|
1244
1252
|
//#endregion
|
|
1245
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/spinner/QSpinner.js
|
|
1246
|
-
var
|
|
1253
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/spinner/QSpinner.js
|
|
1254
|
+
var xn = qe({
|
|
1247
1255
|
name: "QSpinner",
|
|
1248
1256
|
props: {
|
|
1249
|
-
...
|
|
1257
|
+
...yn,
|
|
1250
1258
|
thickness: {
|
|
1251
1259
|
type: Number,
|
|
1252
1260
|
default: 5
|
|
1253
1261
|
}
|
|
1254
1262
|
},
|
|
1255
1263
|
setup(e) {
|
|
1256
|
-
let { cSize: t, classes: n } =
|
|
1264
|
+
let { cSize: t, classes: n } = bn(e);
|
|
1257
1265
|
return () => f("svg", {
|
|
1258
1266
|
class: n.value + " q-spinner-mat",
|
|
1259
1267
|
width: t.value,
|
|
@@ -1270,36 +1278,36 @@ var bn = Ke({
|
|
|
1270
1278
|
"stroke-miterlimit": "10"
|
|
1271
1279
|
})]);
|
|
1272
1280
|
}
|
|
1273
|
-
}),
|
|
1274
|
-
function
|
|
1281
|
+
}), Sn = /^on[A-Z]/;
|
|
1282
|
+
function Cn() {
|
|
1275
1283
|
let e = d(), { attrs: t } = e, n = {
|
|
1276
1284
|
listeners: D({}),
|
|
1277
1285
|
attributes: D({})
|
|
1278
1286
|
};
|
|
1279
1287
|
function r() {
|
|
1280
1288
|
let r = {}, i = {};
|
|
1281
|
-
for (let e in t) e !== "class" && e !== "style" && !
|
|
1282
|
-
for (let t in e.vnode.props)
|
|
1289
|
+
for (let e in t) e !== "class" && e !== "style" && !Sn.test(e) && (r[e] = t[e]);
|
|
1290
|
+
for (let t in e.vnode.props) Sn.test(t) && (i[t] = e.vnode.props[t]);
|
|
1283
1291
|
n.attributes.value = r, n.listeners.value = i;
|
|
1284
1292
|
}
|
|
1285
1293
|
return x(r), r(), n;
|
|
1286
1294
|
}
|
|
1287
1295
|
//#endregion
|
|
1288
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-dark/use-dark.js
|
|
1289
|
-
var
|
|
1296
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-dark/use-dark.js
|
|
1297
|
+
var wn = { dark: {
|
|
1290
1298
|
type: Boolean,
|
|
1291
1299
|
default: null
|
|
1292
1300
|
} };
|
|
1293
|
-
function
|
|
1301
|
+
function Tn(e, t) {
|
|
1294
1302
|
return r(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1295
1303
|
}
|
|
1296
1304
|
//#endregion
|
|
1297
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.symbols/symbols.js
|
|
1298
|
-
var
|
|
1305
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/private.symbols/symbols.js
|
|
1306
|
+
var En = "_q_fo_";
|
|
1299
1307
|
//#endregion
|
|
1300
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/use-form-child.js
|
|
1301
|
-
function
|
|
1302
|
-
let r = p(
|
|
1308
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/use-form-child.js
|
|
1309
|
+
function Dn({ validate: e, resetValidation: t, requiresQForm: n }) {
|
|
1310
|
+
let r = p(En, !1);
|
|
1303
1311
|
if (r !== !1) {
|
|
1304
1312
|
let { props: n, proxy: i } = d();
|
|
1305
1313
|
Object.assign(i, {
|
|
@@ -1315,26 +1323,26 @@ function En({ validate: e, resetValidation: t, requiresQForm: n }) {
|
|
|
1315
1323
|
} else n && console.error("Parent QForm not found on useFormChild()!");
|
|
1316
1324
|
}
|
|
1317
1325
|
//#endregion
|
|
1318
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/patterns/patterns.js
|
|
1319
|
-
var
|
|
1320
|
-
date: (e) =>
|
|
1321
|
-
time: (e) =>
|
|
1322
|
-
fulltime: (e) =>
|
|
1323
|
-
timeOrFulltime: (e) =>
|
|
1324
|
-
email: (e) =>
|
|
1325
|
-
hexColor: (e) =>
|
|
1326
|
-
hexaColor: (e) =>
|
|
1327
|
-
hexOrHexaColor: (e) =>
|
|
1328
|
-
rgbColor: (e) =>
|
|
1329
|
-
rgbaColor: (e) =>
|
|
1330
|
-
rgbOrRgbaColor: (e) =>
|
|
1331
|
-
hexOrRgbColor: (e) =>
|
|
1332
|
-
hexaOrRgbaColor: (e) =>
|
|
1333
|
-
anyColor: (e) =>
|
|
1326
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/patterns/patterns.js
|
|
1327
|
+
var On = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, kn = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, An = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, jn = /^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/, Mn = /^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0(\.[\d]+)?|1(\.0+)?)\)$/, Nn = /^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/, Pn = /^([0-1]?\d|2[0-3]):[0-5]\d$/, Fn = /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/, In = /^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/, Ln = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Rn = {
|
|
1328
|
+
date: (e) => Nn.test(e),
|
|
1329
|
+
time: (e) => Pn.test(e),
|
|
1330
|
+
fulltime: (e) => Fn.test(e),
|
|
1331
|
+
timeOrFulltime: (e) => In.test(e),
|
|
1332
|
+
email: (e) => Ln.test(e),
|
|
1333
|
+
hexColor: (e) => On.test(e),
|
|
1334
|
+
hexaColor: (e) => kn.test(e),
|
|
1335
|
+
hexOrHexaColor: (e) => An.test(e),
|
|
1336
|
+
rgbColor: (e) => jn.test(e),
|
|
1337
|
+
rgbaColor: (e) => Mn.test(e),
|
|
1338
|
+
rgbOrRgbaColor: (e) => jn.test(e) || Mn.test(e),
|
|
1339
|
+
hexOrRgbColor: (e) => On.test(e) || jn.test(e),
|
|
1340
|
+
hexaOrRgbaColor: (e) => kn.test(e) || Mn.test(e),
|
|
1341
|
+
anyColor: (e) => An.test(e) || jn.test(e) || Mn.test(e)
|
|
1334
1342
|
};
|
|
1335
1343
|
//#endregion
|
|
1336
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/debounce/debounce.js
|
|
1337
|
-
function
|
|
1344
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/utils/debounce/debounce.js
|
|
1345
|
+
function zn(e, t = 250, n) {
|
|
1338
1346
|
let r = null;
|
|
1339
1347
|
function i(...i) {
|
|
1340
1348
|
r === null ? n && e.apply(this, i) : clearTimeout(r), r = setTimeout(() => {
|
|
@@ -1346,12 +1354,12 @@ function Rn(e, t = 250, n) {
|
|
|
1346
1354
|
}, i;
|
|
1347
1355
|
}
|
|
1348
1356
|
//#endregion
|
|
1349
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-validate/use-validate.js
|
|
1350
|
-
var
|
|
1357
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-validate/use-validate.js
|
|
1358
|
+
var Bn = [
|
|
1351
1359
|
!0,
|
|
1352
1360
|
!1,
|
|
1353
1361
|
"ondemand"
|
|
1354
|
-
],
|
|
1362
|
+
], Vn = {
|
|
1355
1363
|
modelValue: {},
|
|
1356
1364
|
error: {
|
|
1357
1365
|
type: Boolean,
|
|
@@ -1364,12 +1372,12 @@ var zn = [
|
|
|
1364
1372
|
lazyRules: {
|
|
1365
1373
|
type: [Boolean, String],
|
|
1366
1374
|
default: !1,
|
|
1367
|
-
validator: (e) =>
|
|
1375
|
+
validator: (e) => Bn.includes(e)
|
|
1368
1376
|
}
|
|
1369
1377
|
};
|
|
1370
|
-
function
|
|
1378
|
+
function Hn(e, t) {
|
|
1371
1379
|
let { props: n, proxy: i } = d(), a = D(!1), o = D(null), s = D(!1);
|
|
1372
|
-
|
|
1380
|
+
Dn({
|
|
1373
1381
|
validate: _,
|
|
1374
1382
|
resetValidation: g
|
|
1375
1383
|
});
|
|
@@ -1400,7 +1408,7 @@ function Vn(e, t) {
|
|
|
1400
1408
|
}, d = [];
|
|
1401
1409
|
for (let t = 0; t < n.rules.length; t++) {
|
|
1402
1410
|
let r = n.rules[t], i;
|
|
1403
|
-
if (typeof r == "function" ? i = r(e,
|
|
1411
|
+
if (typeof r == "function" ? i = r(e, Rn) : typeof r == "string" && Rn[r] !== void 0 && (i = Rn[r](e)), i === !1 || typeof i == "string") return l(!0, i), !1;
|
|
1404
1412
|
i !== !0 && i !== void 0 && d.push(i);
|
|
1405
1413
|
}
|
|
1406
1414
|
return d.length === 0 ? (l(!1), !0) : (t.value = !0, Promise.all(d).then((e) => {
|
|
@@ -1409,13 +1417,13 @@ function Vn(e, t) {
|
|
|
1409
1417
|
return r === c && l(t !== void 0, t), t === void 0;
|
|
1410
1418
|
}, (e) => (r === c && (console.error(e), l(!0)), !1)));
|
|
1411
1419
|
}
|
|
1412
|
-
let v =
|
|
1420
|
+
let v = zn(_, 0);
|
|
1413
1421
|
return b(() => {
|
|
1414
1422
|
l?.(), v.cancel();
|
|
1415
1423
|
}), Object.assign(i, {
|
|
1416
1424
|
resetValidation: g,
|
|
1417
1425
|
validate: _
|
|
1418
|
-
}),
|
|
1426
|
+
}), R(i, "hasError", () => p.value), {
|
|
1419
1427
|
isDirtyModel: s,
|
|
1420
1428
|
hasRules: u,
|
|
1421
1429
|
hasError: p,
|
|
@@ -1425,13 +1433,13 @@ function Vn(e, t) {
|
|
|
1425
1433
|
};
|
|
1426
1434
|
}
|
|
1427
1435
|
//#endregion
|
|
1428
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-field/use-field.js
|
|
1429
|
-
function
|
|
1436
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-field/use-field.js
|
|
1437
|
+
function Un(e) {
|
|
1430
1438
|
return e != null && String(e).length !== 0;
|
|
1431
1439
|
}
|
|
1432
|
-
var
|
|
1433
|
-
...
|
|
1434
|
-
...
|
|
1440
|
+
var Wn = {
|
|
1441
|
+
...wn,
|
|
1442
|
+
...Vn,
|
|
1435
1443
|
label: String,
|
|
1436
1444
|
stackLabel: Boolean,
|
|
1437
1445
|
hint: String,
|
|
@@ -1461,14 +1469,14 @@ var Un = {
|
|
|
1461
1469
|
autofocus: Boolean,
|
|
1462
1470
|
for: String,
|
|
1463
1471
|
maxlength: [Number, String]
|
|
1464
|
-
},
|
|
1472
|
+
}, Gn = [
|
|
1465
1473
|
"update:modelValue",
|
|
1466
1474
|
"clear",
|
|
1467
1475
|
"focus",
|
|
1468
1476
|
"blur"
|
|
1469
1477
|
];
|
|
1470
|
-
function
|
|
1471
|
-
let { props: i, proxy: a } = d(), o =
|
|
1478
|
+
function Kn({ requiredForAttr: e = !0, tagProp: t, changeEvent: n = !1 } = {}) {
|
|
1479
|
+
let { props: i, proxy: a } = d(), o = Tn(i, a.$q), s = vt({
|
|
1472
1480
|
required: e,
|
|
1473
1481
|
getValue: () => i.for
|
|
1474
1482
|
});
|
|
@@ -1481,22 +1489,22 @@ function Gn({ requiredForAttr: e = !0, tagProp: t, changeEvent: n = !1 } = {}) {
|
|
|
1481
1489
|
innerLoading: D(!1),
|
|
1482
1490
|
focused: D(!1),
|
|
1483
1491
|
hasPopupOpen: !1,
|
|
1484
|
-
splitAttrs:
|
|
1492
|
+
splitAttrs: Cn(),
|
|
1485
1493
|
targetUid: s,
|
|
1486
1494
|
rootRef: D(null),
|
|
1487
1495
|
targetRef: D(null),
|
|
1488
1496
|
controlRef: D(null)
|
|
1489
1497
|
};
|
|
1490
1498
|
}
|
|
1491
|
-
function
|
|
1499
|
+
function qn(e, t) {
|
|
1492
1500
|
return t === null ? null : f("div", {
|
|
1493
1501
|
key: e,
|
|
1494
1502
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
1495
1503
|
}, t);
|
|
1496
1504
|
}
|
|
1497
|
-
function
|
|
1505
|
+
function Jn(e) {
|
|
1498
1506
|
let { props: t, emit: i, slots: a, attrs: o, proxy: s } = d(), { $q: c } = s, l = null;
|
|
1499
|
-
e.hasValue === void 0 && (e.hasValue = r(() =>
|
|
1507
|
+
e.hasValue === void 0 && (e.hasValue = r(() => Un(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (e) => {
|
|
1500
1508
|
i("update:modelValue", e);
|
|
1501
1509
|
}), e.controlEvents === void 0 && (e.controlEvents = {
|
|
1502
1510
|
onFocusin: N,
|
|
@@ -1512,7 +1520,7 @@ function qn(e) {
|
|
|
1512
1520
|
return e + (n === void 0 ? "" : " / " + n);
|
|
1513
1521
|
}
|
|
1514
1522
|
}));
|
|
1515
|
-
let { isDirtyModel: u, hasRules: p, hasError: m, errorMessage: h, resetValidation: g } =
|
|
1523
|
+
let { isDirtyModel: u, hasRules: p, hasError: m, errorMessage: h, resetValidation: g } = Hn(e.focused, e.innerLoading), v = e.floatingLabel === void 0 ? r(() => t.stackLabel || e.focused.value || e.hasValue.value) : r(() => t.stackLabel || e.focused.value || e.floatingLabel.value), x = r(() => t.bottomSlots || t.hint !== void 0 || p.value || t.counter || t.error !== null), w = r(() => t.filled ? "filled" : t.outlined ? "outlined" : t.borderless ? "borderless" : t.standout ? "standout" : "standard"), T = r(() => `q-field row no-wrap items-start q-field--${w.value}` + (e.fieldClass === void 0 ? "" : ` ${e.fieldClass.value}`) + (t.rounded ? " q-field--rounded" : "") + (t.square ? " q-field--square" : "") + (v.value ? " q-field--float" : "") + (D.value ? " q-field--labeled" : "") + (t.dense ? " q-field--dense" : "") + (t.itemAligned ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value ? " q-field--focused" : "") + (m.value ? " q-field--error" : "") + (m.value || e.focused.value ? " q-field--highlighted" : "") + (!t.hideBottomSpace && x.value ? " q-field--with-bottom" : "") + (t.disable ? " q-field--disabled" : t.readonly ? " q-field--readonly" : "")), E = r(() => "q-field__control relative-position row no-wrap" + (t.bgColor === void 0 ? "" : ` bg-${t.bgColor}`) + (m.value ? " text-negative" : typeof t.standout == "string" && t.standout.length !== 0 && e.focused.value ? ` ${t.standout}` : t.color === void 0 ? "" : ` text-${t.color}`)), D = r(() => t.labelSlot || t.label !== void 0), O = r(() => "q-field__label no-pointer-events absolute ellipsis" + (t.labelColor !== void 0 && !m.value ? ` text-${t.labelColor}` : "")), k = r(() => ({
|
|
1516
1524
|
id: e.targetUid.value,
|
|
1517
1525
|
editable: e.editable.value,
|
|
1518
1526
|
focused: e.focused.value,
|
|
@@ -1528,10 +1536,10 @@ function qn(e) {
|
|
|
1528
1536
|
n && (t === null || t.id !== e.targetUid.value) && (n.hasAttribute("tabindex") || (n = n.querySelector("[tabindex]")), n !== t && n?.focus({ preventScroll: !0 }));
|
|
1529
1537
|
}
|
|
1530
1538
|
function j() {
|
|
1531
|
-
|
|
1539
|
+
Qe(ee);
|
|
1532
1540
|
}
|
|
1533
1541
|
function M() {
|
|
1534
|
-
|
|
1542
|
+
$e(ee);
|
|
1535
1543
|
let t = document.activeElement;
|
|
1536
1544
|
t !== null && e.rootRef.value.contains(t) && t.blur();
|
|
1537
1545
|
}
|
|
@@ -1544,7 +1552,7 @@ function qn(e) {
|
|
|
1544
1552
|
}, 0);
|
|
1545
1553
|
}
|
|
1546
1554
|
function F(n) {
|
|
1547
|
-
|
|
1555
|
+
Ne(n), c.platform.is.mobile ? e.rootRef.value.contains(document.activeElement) && document.activeElement.blur() : (e.targetRef?.value || e.rootRef.value).focus(), t.type === "file" && (e.inputRef.value.value = null), e.onClear?.(), i("update:modelValue", null), e.changeEvent && i("change", null), i("clear", t.modelValue), _(() => {
|
|
1548
1556
|
let e = u.value;
|
|
1549
1557
|
g(), u.value = e;
|
|
1550
1558
|
});
|
|
@@ -1558,10 +1566,10 @@ function qn(e) {
|
|
|
1558
1566
|
class: "q-field__prepend q-field__marginal row no-wrap items-center",
|
|
1559
1567
|
key: "prepend",
|
|
1560
1568
|
onClick: K
|
|
1561
|
-
}, a.prepend())), n.push(f("div", { class: "q-field__control-container col relative-position row no-wrap q-anchor--skip" }, R())), m.value && !t.noErrorIcon && n.push(
|
|
1569
|
+
}, a.prepend())), n.push(f("div", { class: "q-field__control-container col relative-position row no-wrap q-anchor--skip" }, R())), m.value && !t.noErrorIcon && n.push(qn("error", [f(vn, {
|
|
1562
1570
|
name: c.iconSet.field.error,
|
|
1563
1571
|
color: "negative"
|
|
1564
|
-
})])), t.loading || e.innerLoading.value ? n.push(
|
|
1572
|
+
})])), t.loading || e.innerLoading.value ? n.push(qn("inner-loading-append", a.loading === void 0 ? [f(xn, { color: t.color })] : a.loading())) : t.clearable && e.hasValue.value && e.editable.value && n.push(qn("inner-clearable-append", [f(vn, {
|
|
1565
1573
|
class: "q-field__focusable-action",
|
|
1566
1574
|
name: t.clearIcon || c.iconSet.field.clear,
|
|
1567
1575
|
tabindex: 0,
|
|
@@ -1574,7 +1582,7 @@ function qn(e) {
|
|
|
1574
1582
|
class: "q-field__append q-field__marginal row no-wrap items-center",
|
|
1575
1583
|
key: "append",
|
|
1576
1584
|
onClick: K
|
|
1577
|
-
}, a.append())), e.getInnerAppend !== void 0 && n.push(
|
|
1585
|
+
}, a.append())), e.getInnerAppend !== void 0 && n.push(qn("inner-append", e.getInnerAppend())), e.getControlChild !== void 0 && n.push(e.getControlChild()), n;
|
|
1578
1586
|
}
|
|
1579
1587
|
function R() {
|
|
1580
1588
|
let n = [];
|
|
@@ -1642,15 +1650,15 @@ function qn(e) {
|
|
|
1642
1650
|
};
|
|
1643
1651
|
}
|
|
1644
1652
|
//#endregion
|
|
1645
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/use-mask.js
|
|
1646
|
-
var
|
|
1653
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/use-mask.js
|
|
1654
|
+
var Yn = {
|
|
1647
1655
|
date: "####/##/##",
|
|
1648
1656
|
datetime: "####/##/## ##:##",
|
|
1649
1657
|
time: "##:##",
|
|
1650
1658
|
fulltime: "##:##:##",
|
|
1651
1659
|
phone: "(###) ### - ####",
|
|
1652
1660
|
card: "#### #### #### ####"
|
|
1653
|
-
}, { tokenMap:
|
|
1661
|
+
}, { tokenMap: Xn, tokenKeys: Zn } = Qn({
|
|
1654
1662
|
"#": {
|
|
1655
1663
|
pattern: "[\\d]",
|
|
1656
1664
|
negate: "[^\\d]"
|
|
@@ -1684,7 +1692,7 @@ var Jn = {
|
|
|
1684
1692
|
transform: (e) => e.toLocaleLowerCase()
|
|
1685
1693
|
}
|
|
1686
1694
|
});
|
|
1687
|
-
function
|
|
1695
|
+
function Qn(e) {
|
|
1688
1696
|
let t = Object.keys(e), n = {};
|
|
1689
1697
|
return t.forEach((t) => {
|
|
1690
1698
|
let r = e[t];
|
|
@@ -1697,29 +1705,29 @@ function Zn(e) {
|
|
|
1697
1705
|
tokenKeys: t
|
|
1698
1706
|
};
|
|
1699
1707
|
}
|
|
1700
|
-
function
|
|
1708
|
+
function $n(e) {
|
|
1701
1709
|
return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + e.join("") + "])|(.)", "g");
|
|
1702
1710
|
}
|
|
1703
|
-
var
|
|
1711
|
+
var er = /[.*+?^${}()|[\]\\]/g, tr = $n(Zn), $ = String.fromCodePoint(1), nr = {
|
|
1704
1712
|
mask: String,
|
|
1705
1713
|
reverseFillMask: Boolean,
|
|
1706
1714
|
fillMask: [Boolean, String],
|
|
1707
1715
|
unmaskedValue: Boolean,
|
|
1708
1716
|
maskTokens: Object
|
|
1709
1717
|
};
|
|
1710
|
-
function
|
|
1718
|
+
function rr(e, t, n, i) {
|
|
1711
1719
|
let a, o, s, c, l, u, d = r(() => {
|
|
1712
1720
|
if (e.maskTokens === void 0 || e.maskTokens === null) return {
|
|
1713
|
-
tokenMap:
|
|
1714
|
-
tokenRegexMask:
|
|
1721
|
+
tokenMap: Xn,
|
|
1722
|
+
tokenRegexMask: tr
|
|
1715
1723
|
};
|
|
1716
|
-
let { tokenMap: t } =
|
|
1717
|
-
...
|
|
1724
|
+
let { tokenMap: t } = Qn(e.maskTokens), n = {
|
|
1725
|
+
...Xn,
|
|
1718
1726
|
...t
|
|
1719
1727
|
};
|
|
1720
1728
|
return {
|
|
1721
1729
|
tokenMap: n,
|
|
1722
|
-
tokenRegexMask:
|
|
1730
|
+
tokenRegexMask: $n(Object.keys(n))
|
|
1723
1731
|
};
|
|
1724
1732
|
}), f = D(null), p = D(h());
|
|
1725
1733
|
function m() {
|
|
@@ -1766,7 +1774,7 @@ function nr(e, t, n, i) {
|
|
|
1766
1774
|
c = void 0, a = "", o = "";
|
|
1767
1775
|
return;
|
|
1768
1776
|
}
|
|
1769
|
-
let t =
|
|
1777
|
+
let t = Yn[e.mask] === void 0 ? e.mask : Yn[e.mask], n = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", r = n.replace(er, String.raw`\$&`), i = [], l = [], u = [], p = e.reverseFillMask, h = "", g = "";
|
|
1770
1778
|
t.replace(d.value.tokenRegexMask, (e, t, n, r, a) => {
|
|
1771
1779
|
if (r !== void 0) {
|
|
1772
1780
|
let e = d.value.tokenMap[r];
|
|
@@ -1776,7 +1784,7 @@ function nr(e, t, n, i) {
|
|
|
1776
1784
|
if (n !== void 0) h = "\\" + (n === "\\" ? "" : n), u.push(n);
|
|
1777
1785
|
else {
|
|
1778
1786
|
let e = t === void 0 ? a : t;
|
|
1779
|
-
h = e === "\\" ? String.raw`\\\\` : e.replace(
|
|
1787
|
+
h = e === "\\" ? String.raw`\\\\` : e.replace(er, String.raw`\\$&`), u.push(e);
|
|
1780
1788
|
}
|
|
1781
1789
|
i.push("([^" + h + "]+)?" + h + "?");
|
|
1782
1790
|
});
|
|
@@ -1814,14 +1822,15 @@ function nr(e, t, n, i) {
|
|
|
1814
1822
|
c.setSelectionRange(t, t, "forward");
|
|
1815
1823
|
return;
|
|
1816
1824
|
}
|
|
1817
|
-
if (e.reverseFillMask)
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
+
if (e.reverseFillMask) {
|
|
1826
|
+
if (g) {
|
|
1827
|
+
let e = Math.max(0, h.length - (h === o ? 0 : Math.min(m.length, d + 1)));
|
|
1828
|
+
e === 1 && u === 1 ? c.setSelectionRange(e, e, "forward") : x.rightReverse(c, e);
|
|
1829
|
+
} else {
|
|
1830
|
+
let e = h.length - d;
|
|
1831
|
+
c.setSelectionRange(e, e, "backward");
|
|
1832
|
+
}
|
|
1833
|
+
} else if (g) {
|
|
1825
1834
|
let e = Math.max(0, a.indexOf($), Math.min(m.length, u) - 1);
|
|
1826
1835
|
x.right(c, e);
|
|
1827
1836
|
} else {
|
|
@@ -1878,7 +1887,7 @@ function nr(e, t, n, i) {
|
|
|
1878
1887
|
t("click", e), u = void 0;
|
|
1879
1888
|
}
|
|
1880
1889
|
function C(n) {
|
|
1881
|
-
if (t("keydown", n),
|
|
1890
|
+
if (t("keydown", n), Le(n) || n.altKey) return;
|
|
1882
1891
|
let r = i.value, a = r.selectionStart, o = r.selectionEnd;
|
|
1883
1892
|
if (n.shiftKey || (u = void 0), n.keyCode === 37 || n.keyCode === 39) {
|
|
1884
1893
|
n.shiftKey && u === void 0 && (u = r.selectionDirection === "forward" ? a : o);
|
|
@@ -1929,14 +1938,14 @@ function nr(e, t, n, i) {
|
|
|
1929
1938
|
};
|
|
1930
1939
|
}
|
|
1931
1940
|
//#endregion
|
|
1932
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/private.use-form.js
|
|
1933
|
-
var
|
|
1934
|
-
function
|
|
1941
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-form/private.use-form.js
|
|
1942
|
+
var ir = { name: String };
|
|
1943
|
+
function ar(e) {
|
|
1935
1944
|
return r(() => e.name || e.for);
|
|
1936
1945
|
}
|
|
1937
1946
|
//#endregion
|
|
1938
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js
|
|
1939
|
-
function
|
|
1947
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js
|
|
1948
|
+
function or(e, t) {
|
|
1940
1949
|
function n() {
|
|
1941
1950
|
let t = e.modelValue;
|
|
1942
1951
|
try {
|
|
@@ -1953,25 +1962,25 @@ function ar(e, t) {
|
|
|
1953
1962
|
} : n);
|
|
1954
1963
|
}
|
|
1955
1964
|
//#endregion
|
|
1956
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-key-composition/use-key-composition.js
|
|
1957
|
-
var
|
|
1958
|
-
function
|
|
1965
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/private.use-key-composition/use-key-composition.js
|
|
1966
|
+
var sr = /[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/, cr = /[\u4E00-\u9FFF\u3400-\u4DBF\u{20000}-\u{2A6DF}\u{2A700}-\u{2B73F}\u{2B740}-\u{2B81F}\u{2B820}-\u{2CEAF}\uF900-\uFAFF\u3300-\u33FF\uFE30-\uFE4F\uF900-\uFAFF\u{2F800}-\u{2FA1F}]/u, lr = /[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/, ur = /[a-z0-9_ -]$/i;
|
|
1967
|
+
function dr(e) {
|
|
1959
1968
|
return function(t) {
|
|
1960
1969
|
if (t.type === "compositionend" || t.type === "change") {
|
|
1961
1970
|
if (!t.target.qComposing) return;
|
|
1962
1971
|
t.target.qComposing = !1, e(t);
|
|
1963
|
-
} else t.type === "compositionupdate" && !t.target.qComposing && typeof t.data == "string" && (W.is.firefox ? !
|
|
1972
|
+
} else t.type === "compositionupdate" && !t.target.qComposing && typeof t.data == "string" && (W.is.firefox ? !ur.test(t.data) : sr.test(t.data) || cr.test(t.data) || lr.test(t.data)) && (t.target.qComposing = !0);
|
|
1964
1973
|
};
|
|
1965
1974
|
}
|
|
1966
1975
|
//#endregion
|
|
1967
|
-
//#region node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/QInput.js
|
|
1968
|
-
var
|
|
1976
|
+
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/components/input/QInput.js
|
|
1977
|
+
var fr = qe({
|
|
1969
1978
|
name: "QInput",
|
|
1970
1979
|
inheritAttrs: !1,
|
|
1971
1980
|
props: {
|
|
1972
|
-
...
|
|
1973
|
-
...
|
|
1974
|
-
...
|
|
1981
|
+
...Wn,
|
|
1982
|
+
...nr,
|
|
1983
|
+
...ir,
|
|
1975
1984
|
modelValue: [
|
|
1976
1985
|
String,
|
|
1977
1986
|
Number,
|
|
@@ -1997,7 +2006,7 @@ var dr = Ke({
|
|
|
1997
2006
|
]
|
|
1998
2007
|
},
|
|
1999
2008
|
emits: [
|
|
2000
|
-
...
|
|
2009
|
+
...Gn,
|
|
2001
2010
|
"paste",
|
|
2002
2011
|
"change",
|
|
2003
2012
|
"keydown",
|
|
@@ -2005,7 +2014,7 @@ var dr = Ke({
|
|
|
2005
2014
|
"animationend"
|
|
2006
2015
|
],
|
|
2007
2016
|
setup(e, { emit: t, attrs: n }) {
|
|
2008
|
-
let { proxy: i } = d(), { $q: a } = i, o = {}, s = NaN, c = !1, l = !1, u = null, p, m = D(null), h =
|
|
2017
|
+
let { proxy: i } = d(), { $q: a } = i, o = {}, s = NaN, c = !1, l = !1, u = null, p, m = D(null), h = ar(e), { innerValue: g, hasMask: v, moveCursorForPaste: y, updateMaskValue: x, onMaskedKeydown: S, onMaskedClick: w } = rr(e, t, V, m), T = or(e, !0), E = r(() => Un(g.value)), O = dr(B), k = Kn({ changeEvent: !0 }), A = r(() => e.type === "textarea" || e.autogrow), ee = r(() => A.value || [
|
|
2009
2018
|
"text",
|
|
2010
2019
|
"search",
|
|
2011
2020
|
"url",
|
|
@@ -2018,7 +2027,7 @@ var dr = Ke({
|
|
|
2018
2027
|
onPaste: z,
|
|
2019
2028
|
onChange: re,
|
|
2020
2029
|
onBlur: ie,
|
|
2021
|
-
onFocus:
|
|
2030
|
+
onFocus: Me
|
|
2022
2031
|
};
|
|
2023
2032
|
return t.onCompositionstart = t.onCompositionupdate = t.onCompositionend = O, v.value && (t.onKeydown = S, t.onClick = w), e.autogrow && (t.onAnimationend = te), t;
|
|
2024
2033
|
}), N = r(() => {
|
|
@@ -2054,14 +2063,14 @@ var dr = Ke({
|
|
|
2054
2063
|
m.value !== null && m.value !== e && (e === null || e.id !== k.targetUid.value) && m.value.focus({ preventScroll: !0 });
|
|
2055
2064
|
}
|
|
2056
2065
|
function F() {
|
|
2057
|
-
|
|
2066
|
+
Qe(P);
|
|
2058
2067
|
}
|
|
2059
2068
|
function I() {
|
|
2060
|
-
|
|
2069
|
+
$e(P);
|
|
2061
2070
|
let e = document.activeElement;
|
|
2062
2071
|
e !== null && k.rootRef.value.contains(e) && e.blur();
|
|
2063
2072
|
}
|
|
2064
|
-
function
|
|
2073
|
+
function L() {
|
|
2065
2074
|
m.value?.select();
|
|
2066
2075
|
}
|
|
2067
2076
|
function z(n) {
|
|
@@ -2120,7 +2129,7 @@ var dr = Ke({
|
|
|
2120
2129
|
O(e), u !== null && (clearTimeout(u), u = null), p?.(), t("change", e.target.value);
|
|
2121
2130
|
}
|
|
2122
2131
|
function ie(t) {
|
|
2123
|
-
t !== void 0 &&
|
|
2132
|
+
t !== void 0 && Me(t), u !== null && (clearTimeout(u), u = null), p?.(), c = !1, l = !1, delete o.value, e.type !== "file" && setTimeout(() => {
|
|
2124
2133
|
m.value !== null && (m.value.value = g.value === void 0 ? "" : g.value);
|
|
2125
2134
|
}, 0);
|
|
2126
2135
|
}
|
|
@@ -2139,7 +2148,7 @@ var dr = Ke({
|
|
|
2139
2148
|
emitValue: V,
|
|
2140
2149
|
onClear: ne,
|
|
2141
2150
|
hasValue: E,
|
|
2142
|
-
floatingLabel: r(() => E.value && (e.type !== "number" || Number.isFinite(Number(g.value))) ||
|
|
2151
|
+
floatingLabel: r(() => E.value && (e.type !== "number" || Number.isFinite(Number(g.value))) || Un(e.displayValue)),
|
|
2143
2152
|
getControl: () => f(A.value ? "textarea" : "input", {
|
|
2144
2153
|
ref: m,
|
|
2145
2154
|
class: ["q-field__native q-placeholder", e.inputClass],
|
|
@@ -2150,18 +2159,18 @@ var dr = Ke({
|
|
|
2150
2159
|
}),
|
|
2151
2160
|
getShadowControl: () => f("div", { class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (A.value ? "" : " text-no-wrap") }, [f("span", { class: "invisible" }, ae()), f("span", e.shadowText)])
|
|
2152
2161
|
});
|
|
2153
|
-
let oe =
|
|
2162
|
+
let oe = Jn(k);
|
|
2154
2163
|
return Object.assign(i, {
|
|
2155
2164
|
focus: F,
|
|
2156
2165
|
blur: I,
|
|
2157
|
-
select:
|
|
2166
|
+
select: L,
|
|
2158
2167
|
getNativeElement: () => m.value
|
|
2159
|
-
}),
|
|
2168
|
+
}), R(i, "nativeEl", () => m.value), oe;
|
|
2160
2169
|
}
|
|
2161
2170
|
});
|
|
2162
2171
|
//#endregion
|
|
2163
2172
|
//#region lib/components/inputs/VnInput.vue?vue&type=i18n&index=0&lang.i18n
|
|
2164
|
-
function
|
|
2173
|
+
function pr(e) {
|
|
2165
2174
|
let t = e;
|
|
2166
2175
|
t.__i18n = t.__i18n || [], t.__i18n.push({
|
|
2167
2176
|
locale: "",
|
|
@@ -2283,7 +2292,7 @@ function fr(e) {
|
|
|
2283
2292
|
}
|
|
2284
2293
|
//#endregion
|
|
2285
2294
|
//#region lib/components/inputs/VnInput.vue
|
|
2286
|
-
var
|
|
2295
|
+
var mr = {
|
|
2287
2296
|
__name: "VnInput",
|
|
2288
2297
|
props: /*@__PURE__*/ h({
|
|
2289
2298
|
isOutlined: {
|
|
@@ -2381,7 +2390,7 @@ var pr = {
|
|
|
2381
2390
|
}), (e, n) => (T(), o("div", {
|
|
2382
2391
|
onMouseover: n[1] ||= (e) => E.value = !0,
|
|
2383
2392
|
onMouseleave: n[2] ||= (e) => E.value = !1
|
|
2384
|
-
}, [l(
|
|
2393
|
+
}, [l(fr, g({
|
|
2385
2394
|
ref_key: "vnInputRef",
|
|
2386
2395
|
ref: w,
|
|
2387
2396
|
"model-value": A(b),
|
|
@@ -2401,7 +2410,7 @@ var pr = {
|
|
|
2401
2410
|
dense: ""
|
|
2402
2411
|
}), s({
|
|
2403
2412
|
append: N(() => [
|
|
2404
|
-
l(
|
|
2413
|
+
l(vn, {
|
|
2405
2414
|
name: "close",
|
|
2406
2415
|
size: "xs",
|
|
2407
2416
|
class: "cursor-pointer",
|
|
@@ -2410,31 +2419,31 @@ var pr = {
|
|
|
2410
2419
|
S(null), w.value?.focus(), h("remove");
|
|
2411
2420
|
}
|
|
2412
2421
|
}, {
|
|
2413
|
-
default: N(() => [l(
|
|
2422
|
+
default: N(() => [l($t, null, {
|
|
2414
2423
|
default: N(() => [c(k(A(m)("Remove")), 1)]),
|
|
2415
2424
|
_: 1
|
|
2416
2425
|
})]),
|
|
2417
2426
|
_: 1
|
|
2418
2427
|
}, 8, ["style"]),
|
|
2419
|
-
!A(d).disabled && !A(d).readonly && y.uppercase ? (T(), i(
|
|
2428
|
+
!A(d).disabled && !A(d).readonly && y.uppercase ? (T(), i(vn, {
|
|
2420
2429
|
key: 0,
|
|
2421
2430
|
name: "match_case",
|
|
2422
2431
|
size: "xs",
|
|
2423
2432
|
onClick: B,
|
|
2424
2433
|
class: "uppercase-icon"
|
|
2425
2434
|
}, {
|
|
2426
|
-
default: N(() => [l(
|
|
2435
|
+
default: N(() => [l($t, null, {
|
|
2427
2436
|
default: N(() => [c(k(A(m)("Convert to uppercase")), 1)]),
|
|
2428
2437
|
_: 1
|
|
2429
2438
|
})]),
|
|
2430
2439
|
_: 1
|
|
2431
2440
|
})) : a("", !0),
|
|
2432
2441
|
e.$slots.append && !A(d).disabled ? O(e.$slots, "append", {}, void 0, void 0, 1) : a("", !0),
|
|
2433
|
-
t.info ? (T(), i(
|
|
2442
|
+
t.info ? (T(), i(vn, {
|
|
2434
2443
|
key: 2,
|
|
2435
2444
|
name: "info"
|
|
2436
2445
|
}, {
|
|
2437
|
-
default: N(() => [l(
|
|
2446
|
+
default: N(() => [l($t, { "max-width": "350px" }, {
|
|
2438
2447
|
default: N(() => [c(k(t.info), 1)]),
|
|
2439
2448
|
_: 1
|
|
2440
2449
|
})]),
|
|
@@ -2458,9 +2467,66 @@ var pr = {
|
|
|
2458
2467
|
])], 32));
|
|
2459
2468
|
}
|
|
2460
2469
|
};
|
|
2461
|
-
typeof
|
|
2470
|
+
typeof pr == "function" && pr(mr);
|
|
2462
2471
|
//#endregion
|
|
2463
|
-
//#region lib/components/
|
|
2464
|
-
var
|
|
2472
|
+
//#region lib/components/models/VnFetch.vue
|
|
2473
|
+
var hr = {
|
|
2474
|
+
__name: "VnFetch",
|
|
2475
|
+
props: {
|
|
2476
|
+
autoLoad: {
|
|
2477
|
+
type: Boolean,
|
|
2478
|
+
default: !1
|
|
2479
|
+
},
|
|
2480
|
+
url: {
|
|
2481
|
+
type: String,
|
|
2482
|
+
default: ""
|
|
2483
|
+
},
|
|
2484
|
+
filter: {
|
|
2485
|
+
type: Object,
|
|
2486
|
+
default: null
|
|
2487
|
+
},
|
|
2488
|
+
where: {
|
|
2489
|
+
type: Object,
|
|
2490
|
+
default: null
|
|
2491
|
+
},
|
|
2492
|
+
sortBy: {
|
|
2493
|
+
type: String,
|
|
2494
|
+
default: ""
|
|
2495
|
+
},
|
|
2496
|
+
limit: {
|
|
2497
|
+
type: [String, Number],
|
|
2498
|
+
default: ""
|
|
2499
|
+
},
|
|
2500
|
+
params: {
|
|
2501
|
+
type: Object,
|
|
2502
|
+
default: null
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
emits: ["onFetch"],
|
|
2506
|
+
setup(e, { expose: t, emit: n }) {
|
|
2507
|
+
let r = e, i = n;
|
|
2508
|
+
t({ fetch: a }), C(async () => {
|
|
2509
|
+
r.autoLoad && await a();
|
|
2510
|
+
});
|
|
2511
|
+
async function a(e = {}) {
|
|
2512
|
+
try {
|
|
2513
|
+
let t = {
|
|
2514
|
+
...e,
|
|
2515
|
+
...r.filter
|
|
2516
|
+
};
|
|
2517
|
+
r.where && !e.where && (t.where = r.where), r.sortBy && (t.order = r.sortBy), r.limit && (t.limit = r.limit);
|
|
2518
|
+
let { data: n } = await F.get(r.url, { params: {
|
|
2519
|
+
filter: JSON.stringify(t),
|
|
2520
|
+
...r.params
|
|
2521
|
+
} });
|
|
2522
|
+
return i("onFetch", n), n;
|
|
2523
|
+
} catch {}
|
|
2524
|
+
}
|
|
2525
|
+
return (e, t) => (T(), o("template"));
|
|
2526
|
+
}
|
|
2527
|
+
}, gr = /* @__PURE__ */ L({
|
|
2528
|
+
VnFetch: () => hr,
|
|
2529
|
+
VnInput: () => mr
|
|
2530
|
+
});
|
|
2465
2531
|
//#endregion
|
|
2466
|
-
export {
|
|
2532
|
+
export { hr as n, mr as r, gr as t };
|