@validol4ik/uikit 0.3.1 → 0.3.3
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/{index-DNtrLcgh.js → index-0R6r0Ppp.js} +1 -1
- package/dist/{index-NqUac_wO.js → index-CA-sZ-Zx.js} +145 -145
- package/dist/index-CZlaUwuY.cjs +1 -0
- package/dist/{index-CIRM8l-I.cjs → index-CrrrDDws.cjs} +1 -1
- package/dist/index.css +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-pgLl9453.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as d, markRaw as cn, defineComponent as Mt, h, withDirectives as dn, getCurrentInstance as ne, unref as
|
|
1
|
+
import { computed as d, markRaw as cn, defineComponent as Mt, h, withDirectives as dn, getCurrentInstance as ne, unref as st, ref as z, onBeforeUnmount as me, Transition as dt, openBlock as ue, createBlock as el, normalizeClass as Be, withCtx as xe, createElementBlock as de, createCommentVNode as Ce, renderSlot as mo, Fragment as at, createTextVNode as Vt, toDisplayString as Ze, toRaw as Ue, reactive as go, onMounted as mt, watch as Z, onBeforeUpdate as fn, inject as ho, nextTick as fe, onDeactivated as At, onActivated as vn, onUnmounted as po, Teleport as bo, onBeforeMount as yo, onUpdated as wo, createVNode as ot, mergeProps as So, createElementVNode as jt, withModifiers as ko, normalizeStyle as xo, defineAsyncComponent as Co } from "vue";
|
|
2
2
|
const qo = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
@@ -238,7 +238,7 @@ function Io(e) {
|
|
|
238
238
|
} catch {
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
const t =
|
|
241
|
+
const t = st(e);
|
|
242
242
|
if (t)
|
|
243
243
|
return t.$el || t;
|
|
244
244
|
}
|
|
@@ -826,7 +826,7 @@ const ii = ge({
|
|
|
826
826
|
class: "q-btn__content text-center col items-center q-anchor--skip " + a.value
|
|
827
827
|
}, V)
|
|
828
828
|
), e.loading !== null && D.push(
|
|
829
|
-
h(
|
|
829
|
+
h(dt, {
|
|
830
830
|
name: "q-transition--fade"
|
|
831
831
|
}, () => e.loading === !0 ? [
|
|
832
832
|
h("span", {
|
|
@@ -887,11 +887,11 @@ const ii = ge({
|
|
|
887
887
|
},
|
|
888
888
|
`app-btn_${t.color}`
|
|
889
889
|
]);
|
|
890
|
-
return (n, o) => (ue(), el(
|
|
890
|
+
return (n, o) => (ue(), el(st(ii), {
|
|
891
891
|
"no-caps": "",
|
|
892
892
|
unelevated: "",
|
|
893
893
|
class: Be(l.value),
|
|
894
|
-
padding:
|
|
894
|
+
padding: st(_o)[n.size || st(qe).MD],
|
|
895
895
|
loading: n.loading,
|
|
896
896
|
disable: n.disabled || void 0,
|
|
897
897
|
to: n.to,
|
|
@@ -933,13 +933,13 @@ const ii = ge({
|
|
|
933
933
|
for (const [n, o] of t)
|
|
934
934
|
l[n] = o;
|
|
935
935
|
return l;
|
|
936
|
-
}, Ru = /* @__PURE__ */ dl(ui, [["__scopeId", "data-v-ac94630a"]]),
|
|
936
|
+
}, Ru = /* @__PURE__ */ dl(ui, [["__scopeId", "data-v-ac94630a"]]), gt = {
|
|
937
937
|
dark: {
|
|
938
938
|
type: Boolean,
|
|
939
939
|
default: null
|
|
940
940
|
}
|
|
941
941
|
};
|
|
942
|
-
function
|
|
942
|
+
function ht(e, t) {
|
|
943
943
|
return d(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
944
944
|
}
|
|
945
945
|
function ai(e, t) {
|
|
@@ -980,7 +980,7 @@ const ci = {
|
|
|
980
980
|
lg: 50,
|
|
981
981
|
xl: 60
|
|
982
982
|
}, di = {
|
|
983
|
-
...
|
|
983
|
+
...gt,
|
|
984
984
|
...Ot,
|
|
985
985
|
...Vn,
|
|
986
986
|
modelValue: {
|
|
@@ -1008,7 +1008,7 @@ const ci = {
|
|
|
1008
1008
|
tabindex: [String, Number]
|
|
1009
1009
|
}, fi = ["update:modelValue"];
|
|
1010
1010
|
function vi(e, t) {
|
|
1011
|
-
const { props: l, slots: n, emit: o, proxy: u } = ne(), { $q: a } = u, r =
|
|
1011
|
+
const { props: l, slots: n, emit: o, proxy: u } = ne(), { $q: a } = u, r = ht(l, a), g = z(null), { refocusTargetEl: b, refocusTarget: s } = ai(l, g), y = zt(l, ci), v = d(
|
|
1012
1012
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
1013
1013
|
), c = d(() => {
|
|
1014
1014
|
const L = Ue(l.val);
|
|
@@ -1178,7 +1178,7 @@ const mi = () => h("div", {
|
|
|
1178
1178
|
}), Tn = ge({
|
|
1179
1179
|
name: "QItem",
|
|
1180
1180
|
props: {
|
|
1181
|
-
...
|
|
1181
|
+
...gt,
|
|
1182
1182
|
...Yo,
|
|
1183
1183
|
tag: {
|
|
1184
1184
|
type: String,
|
|
@@ -1197,7 +1197,7 @@ const mi = () => h("div", {
|
|
|
1197
1197
|
},
|
|
1198
1198
|
emits: ["click", "keyup"],
|
|
1199
1199
|
setup(e, { slots: t, emit: l }) {
|
|
1200
|
-
const { proxy: { $q: n } } = ne(), o =
|
|
1200
|
+
const { proxy: { $q: n } } = ne(), o = ht(e, n), { hasLink: u, linkAttrs: a, linkClass: r, linkTag: g, navigateOnClick: b } = En(), s = z(null), y = z(null), v = d(
|
|
1201
1201
|
() => e.clickable === !0 || u.value === !0 || e.tag === "label"
|
|
1202
1202
|
), c = d(
|
|
1203
1203
|
() => e.disable !== !0 && v.value === !0
|
|
@@ -1239,8 +1239,8 @@ const mi = () => h("div", {
|
|
|
1239
1239
|
);
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
|
-
});
|
|
1243
|
-
let Kt,
|
|
1242
|
+
}), zl = (e) => e ? !0 : "Обовʼязкове поле";
|
|
1243
|
+
let Kt, kt = 0;
|
|
1244
1244
|
const ie = new Array(256);
|
|
1245
1245
|
for (let e = 0; e < 256; e++)
|
|
1246
1246
|
ie[e] = (e + 256).toString(16).substring(1);
|
|
@@ -1261,13 +1261,13 @@ const hi = (() => {
|
|
|
1261
1261
|
l.push(Math.floor(Math.random() * 256));
|
|
1262
1262
|
return l;
|
|
1263
1263
|
};
|
|
1264
|
-
})(),
|
|
1264
|
+
})(), Pl = 4096;
|
|
1265
1265
|
function ol() {
|
|
1266
|
-
(Kt === void 0 ||
|
|
1267
|
-
const e = Array.prototype.slice.call(Kt,
|
|
1266
|
+
(Kt === void 0 || kt + 16 > Pl) && (kt = 0, Kt = hi(Pl));
|
|
1267
|
+
const e = Array.prototype.slice.call(Kt, kt, kt += 16);
|
|
1268
1268
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, ie[e[0]] + ie[e[1]] + ie[e[2]] + ie[e[3]] + "-" + ie[e[4]] + ie[e[5]] + "-" + ie[e[6]] + ie[e[7]] + "-" + ie[e[8]] + ie[e[9]] + "-" + ie[e[10]] + ie[e[11]] + ie[e[12]] + ie[e[13]] + ie[e[14]] + ie[e[15]];
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1270
|
+
const ft = z(
|
|
1271
1271
|
!1
|
|
1272
1272
|
);
|
|
1273
1273
|
let il;
|
|
@@ -1325,7 +1325,7 @@ function yi(e) {
|
|
|
1325
1325
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
1326
1326
|
o.bex = !0;
|
|
1327
1327
|
else {
|
|
1328
|
-
if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"),
|
|
1328
|
+
if (window.Capacitor !== void 0 ? (o.capacitor = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (o.cordova = !0, o.nativeMobile = !0, o.nativeMobileWrapper = "cordova"), ft.value === !0 && (il = { is: { ...o } }), $n === !0 && o.mac === !0 && (o.desktop === !0 && o.safari === !0 || o.nativeMobile === !0 && o.android !== !0 && o.ios !== !0 && o.ipad !== !0)) {
|
|
1329
1329
|
delete o.mac, delete o.desktop;
|
|
1330
1330
|
const a = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
1331
1331
|
Object.assign(o, {
|
|
@@ -1339,15 +1339,15 @@ function yi(e) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
return o;
|
|
1341
1341
|
}
|
|
1342
|
-
const
|
|
1342
|
+
const Fl = navigator.userAgent || navigator.vendor || window.opera, wi = {
|
|
1343
1343
|
has: {
|
|
1344
1344
|
touch: !1,
|
|
1345
1345
|
webStorage: !1
|
|
1346
1346
|
},
|
|
1347
1347
|
within: { iframe: !1 }
|
|
1348
1348
|
}, ve = {
|
|
1349
|
-
userAgent:
|
|
1350
|
-
is: yi(
|
|
1349
|
+
userAgent: Fl,
|
|
1350
|
+
is: yi(Fl),
|
|
1351
1351
|
has: {
|
|
1352
1352
|
touch: $n
|
|
1353
1353
|
},
|
|
@@ -1357,8 +1357,8 @@ const Pl = navigator.userAgent || navigator.vendor || window.opera, wi = {
|
|
|
1357
1357
|
}, ul = {
|
|
1358
1358
|
install(e) {
|
|
1359
1359
|
const { $q: t } = e;
|
|
1360
|
-
|
|
1361
|
-
Object.assign(t.platform, ve),
|
|
1360
|
+
ft.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
1361
|
+
Object.assign(t.platform, ve), ft.value = !1;
|
|
1362
1362
|
}), t.platform = go(this)) : t.platform = this;
|
|
1363
1363
|
}
|
|
1364
1364
|
};
|
|
@@ -1373,26 +1373,26 @@ const Pl = navigator.userAgent || navigator.vendor || window.opera, wi = {
|
|
|
1373
1373
|
} catch {
|
|
1374
1374
|
}
|
|
1375
1375
|
return e = !1, !1;
|
|
1376
|
-
}), Object.assign(ul, ve),
|
|
1376
|
+
}), Object.assign(ul, ve), ft.value === !0 && (Object.assign(ul, il, wi), il = null);
|
|
1377
1377
|
}
|
|
1378
1378
|
function Si(e) {
|
|
1379
1379
|
return e ?? null;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Il(e, t) {
|
|
1382
1382
|
return e ?? (t === !0 ? `f_${ol()}` : null);
|
|
1383
1383
|
}
|
|
1384
1384
|
function ki({ getValue: e, required: t = !0 } = {}) {
|
|
1385
|
-
if (
|
|
1385
|
+
if (ft.value === !0) {
|
|
1386
1386
|
const l = e !== void 0 ? z(Si(e())) : z(null);
|
|
1387
|
-
return t === !0 && l.value === null &&
|
|
1387
|
+
return t === !0 && l.value === null && mt(() => {
|
|
1388
1388
|
l.value = `f_${ol()}`;
|
|
1389
1389
|
}), e !== void 0 && Z(e, (n) => {
|
|
1390
|
-
l.value =
|
|
1390
|
+
l.value = Il(n, t);
|
|
1391
1391
|
}), l;
|
|
1392
1392
|
}
|
|
1393
|
-
return e !== void 0 ? d(() =>
|
|
1393
|
+
return e !== void 0 ? d(() => Il(e(), t)) : z(`f_${ol()}`);
|
|
1394
1394
|
}
|
|
1395
|
-
const
|
|
1395
|
+
const Hl = /^on[A-Z]/;
|
|
1396
1396
|
function xi() {
|
|
1397
1397
|
const { attrs: e, vnode: t } = ne(), l = {
|
|
1398
1398
|
listeners: z({}),
|
|
@@ -1401,9 +1401,9 @@ function xi() {
|
|
|
1401
1401
|
function n() {
|
|
1402
1402
|
const o = {}, u = {};
|
|
1403
1403
|
for (const a in e)
|
|
1404
|
-
a !== "class" && a !== "style" &&
|
|
1404
|
+
a !== "class" && a !== "style" && Hl.test(a) === !1 && (o[a] = e[a]);
|
|
1405
1405
|
for (const a in t.props)
|
|
1406
|
-
|
|
1406
|
+
Hl.test(a) === !0 && (u[a] = t.props[a]);
|
|
1407
1407
|
l.attributes.value = o, l.listeners.value = u;
|
|
1408
1408
|
}
|
|
1409
1409
|
return fn(n), n(), l;
|
|
@@ -1415,14 +1415,14 @@ function qi({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
|
1415
1415
|
const { props: o, proxy: u } = ne();
|
|
1416
1416
|
Object.assign(u, { validate: e, resetValidation: t }), Z(() => o.disable, (a) => {
|
|
1417
1417
|
a === !0 ? (typeof t == "function" && t(), n.unbindComponent(u)) : n.bindComponent(u);
|
|
1418
|
-
}),
|
|
1418
|
+
}), mt(() => {
|
|
1419
1419
|
o.disable !== !0 && n.bindComponent(u);
|
|
1420
1420
|
}), me(() => {
|
|
1421
1421
|
o.disable !== !0 && n.unbindComponent(u);
|
|
1422
1422
|
});
|
|
1423
1423
|
} else l === !0 && console.error("Parent QForm not found on useFormChild()!");
|
|
1424
1424
|
}
|
|
1425
|
-
const
|
|
1425
|
+
const Dl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, jl = /^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/, Wl = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, xt = /^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])\)$/, Ct = /^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|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/, Qt = {
|
|
1426
1426
|
date: (e) => /^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),
|
|
1427
1427
|
time: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),
|
|
1428
1428
|
fulltime: (e) => /^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),
|
|
@@ -1434,15 +1434,15 @@ const Hl = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/, Dl = /^#[0-9a-fA-F]{4}([0-9a-fA
|
|
|
1434
1434
|
// We won't be accepting PRs to enhance the one below because of the reason above.
|
|
1435
1435
|
// eslint-disable-next-line
|
|
1436
1436
|
email: (e) => /^(([^<>()\[\]\\.,;:\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,}))$/.test(e),
|
|
1437
|
-
hexColor: (e) =>
|
|
1438
|
-
hexaColor: (e) =>
|
|
1439
|
-
hexOrHexaColor: (e) =>
|
|
1440
|
-
rgbColor: (e) =>
|
|
1441
|
-
rgbaColor: (e) =>
|
|
1442
|
-
rgbOrRgbaColor: (e) =>
|
|
1443
|
-
hexOrRgbColor: (e) =>
|
|
1444
|
-
hexaOrRgbaColor: (e) =>
|
|
1445
|
-
anyColor: (e) =>
|
|
1437
|
+
hexColor: (e) => Dl.test(e),
|
|
1438
|
+
hexaColor: (e) => jl.test(e),
|
|
1439
|
+
hexOrHexaColor: (e) => Wl.test(e),
|
|
1440
|
+
rgbColor: (e) => xt.test(e),
|
|
1441
|
+
rgbaColor: (e) => Ct.test(e),
|
|
1442
|
+
rgbOrRgbaColor: (e) => xt.test(e) || Ct.test(e),
|
|
1443
|
+
hexOrRgbColor: (e) => Dl.test(e) || xt.test(e),
|
|
1444
|
+
hexaOrRgbaColor: (e) => jl.test(e) || Ct.test(e),
|
|
1445
|
+
anyColor: (e) => Wl.test(e) || xt.test(e) || Ct.test(e)
|
|
1446
1446
|
};
|
|
1447
1447
|
function Rn(e, t = 250, l) {
|
|
1448
1448
|
let n = null;
|
|
@@ -1534,18 +1534,18 @@ function Vi(e, t) {
|
|
|
1534
1534
|
resetValidation: m
|
|
1535
1535
|
};
|
|
1536
1536
|
}
|
|
1537
|
-
let Oe = [],
|
|
1537
|
+
let Oe = [], vt = [];
|
|
1538
1538
|
function Ln(e) {
|
|
1539
|
-
|
|
1539
|
+
vt = vt.filter((t) => t !== e);
|
|
1540
1540
|
}
|
|
1541
1541
|
function Bi(e) {
|
|
1542
|
-
Ln(e),
|
|
1542
|
+
Ln(e), vt.push(e);
|
|
1543
1543
|
}
|
|
1544
|
-
function
|
|
1545
|
-
Ln(e),
|
|
1544
|
+
function Nl(e) {
|
|
1545
|
+
Ln(e), vt.length === 0 && Oe.length !== 0 && (Oe[Oe.length - 1](), Oe = []);
|
|
1546
1546
|
}
|
|
1547
1547
|
function fl(e) {
|
|
1548
|
-
|
|
1548
|
+
vt.length === 0 ? e() : Oe.push(e);
|
|
1549
1549
|
}
|
|
1550
1550
|
function Ti(e) {
|
|
1551
1551
|
Oe = Oe.filter((t) => t !== e);
|
|
@@ -1554,7 +1554,7 @@ function al(e) {
|
|
|
1554
1554
|
return e != null && ("" + e).length !== 0;
|
|
1555
1555
|
}
|
|
1556
1556
|
const $i = {
|
|
1557
|
-
...
|
|
1557
|
+
...gt,
|
|
1558
1558
|
...Ei,
|
|
1559
1559
|
label: String,
|
|
1560
1560
|
stackLabel: Boolean,
|
|
@@ -1589,7 +1589,7 @@ const $i = {
|
|
|
1589
1589
|
maxlength: [Number, String]
|
|
1590
1590
|
}, Mn = ["update:modelValue", "clear", "focus", "blur"];
|
|
1591
1591
|
function An({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
1592
|
-
const { props: n, proxy: o } = ne(), u =
|
|
1592
|
+
const { props: n, proxy: o } = ne(), u = ht(n, o.$q), a = ki({
|
|
1593
1593
|
required: e,
|
|
1594
1594
|
getValue: () => n.for
|
|
1595
1595
|
});
|
|
@@ -1791,7 +1791,7 @@ function On(e) {
|
|
|
1791
1791
|
class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
1792
1792
|
onClick: be
|
|
1793
1793
|
}, [
|
|
1794
|
-
t.hideBottomSpace === !0 ? f : h(
|
|
1794
|
+
t.hideBottomSpace === !0 ? f : h(dt, { name: "q-transition--field-message" }, () => f),
|
|
1795
1795
|
se === !0 ? h("div", {
|
|
1796
1796
|
class: "q-field__counter"
|
|
1797
1797
|
}, n.counter !== void 0 ? n.counter() : e.computedCounter.value) : null
|
|
@@ -1808,7 +1808,7 @@ function On(e) {
|
|
|
1808
1808
|
ae = !0;
|
|
1809
1809
|
}), vn(() => {
|
|
1810
1810
|
ae === !0 && t.autofocus === !0 && u.focus();
|
|
1811
|
-
}), t.autofocus === !0 &&
|
|
1811
|
+
}), t.autofocus === !0 && mt(() => {
|
|
1812
1812
|
u.focus();
|
|
1813
1813
|
}), me(() => {
|
|
1814
1814
|
r !== null && clearTimeout(r);
|
|
@@ -1874,7 +1874,7 @@ const Ri = ge({
|
|
|
1874
1874
|
}, Mi = ge({
|
|
1875
1875
|
name: "QChip",
|
|
1876
1876
|
props: {
|
|
1877
|
-
...
|
|
1877
|
+
...gt,
|
|
1878
1878
|
...Ot,
|
|
1879
1879
|
dense: Boolean,
|
|
1880
1880
|
icon: String,
|
|
@@ -1906,7 +1906,7 @@ const Ri = ge({
|
|
|
1906
1906
|
},
|
|
1907
1907
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
1908
1908
|
setup(e, { slots: t, emit: l }) {
|
|
1909
|
-
const { proxy: { $q: n } } = ne(), o =
|
|
1909
|
+
const { proxy: { $q: n } } = ne(), o = ht(e, n), u = zt(e, Li), a = d(() => e.selected === !0 || e.icon !== void 0), r = d(() => e.selected === !0 ? e.iconSelected || n.iconSet.chip.selected : e.icon), g = d(() => e.iconRemove || n.iconSet.chip.remove), b = d(
|
|
1910
1910
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
1911
1911
|
), s = d(() => {
|
|
1912
1912
|
const p = e.outline === !0 && e.color || e.textColor;
|
|
@@ -2086,7 +2086,7 @@ function Pi({
|
|
|
2086
2086
|
a.value !== null && s(), v();
|
|
2087
2087
|
}), Z(() => n.noParentEvent, (c) => {
|
|
2088
2088
|
a.value !== null && (c === !0 ? s() : l());
|
|
2089
|
-
}),
|
|
2089
|
+
}), mt(() => {
|
|
2090
2090
|
v(), t !== !0 && n.modelValue === !0 && a.value === null && u("update:modelValue", !1);
|
|
2091
2091
|
}), me(() => {
|
|
2092
2092
|
r !== null && clearTimeout(r), s();
|
|
@@ -2172,18 +2172,18 @@ function Fn({
|
|
|
2172
2172
|
}
|
|
2173
2173
|
Z(() => r.modelValue, p), l !== void 0 && Cn(a) === !0 && Z(() => b.$route.fullPath, () => {
|
|
2174
2174
|
l.value === !0 && e.value === !0 && m();
|
|
2175
|
-
}),
|
|
2175
|
+
}), mt(() => {
|
|
2176
2176
|
p(r.modelValue);
|
|
2177
2177
|
});
|
|
2178
2178
|
const O = { show: v, hide: m, toggle: y };
|
|
2179
2179
|
return Object.assign(b, O), O;
|
|
2180
2180
|
}
|
|
2181
|
-
const
|
|
2181
|
+
const Kl = {};
|
|
2182
2182
|
let Ii = 1, Hi = document.body;
|
|
2183
2183
|
function Di(e, t) {
|
|
2184
2184
|
const l = document.createElement("div");
|
|
2185
|
-
if (l.id = t !== void 0 ? `q-portal--${t}--${Ii++}` : e,
|
|
2186
|
-
const n =
|
|
2185
|
+
if (l.id = t !== void 0 ? `q-portal--${t}--${Ii++}` : e, Kl.globalNodes !== void 0) {
|
|
2186
|
+
const n = Kl.globalNodes.class;
|
|
2187
2187
|
n !== void 0 && (l.className = n);
|
|
2188
2188
|
}
|
|
2189
2189
|
return Hi.appendChild(l), l;
|
|
@@ -2191,7 +2191,7 @@ function Di(e, t) {
|
|
|
2191
2191
|
function ji(e) {
|
|
2192
2192
|
e.remove();
|
|
2193
2193
|
}
|
|
2194
|
-
const
|
|
2194
|
+
const ct = [];
|
|
2195
2195
|
function Wi(e, t) {
|
|
2196
2196
|
do {
|
|
2197
2197
|
if (e.$options.name === "QMenu") {
|
|
@@ -2226,16 +2226,16 @@ function In(e, t, l, n) {
|
|
|
2226
2226
|
const r = {}, g = n === "dialog" && Ki(e);
|
|
2227
2227
|
function b(y) {
|
|
2228
2228
|
if (y === !0) {
|
|
2229
|
-
|
|
2229
|
+
Nl(r), u.value = !0;
|
|
2230
2230
|
return;
|
|
2231
2231
|
}
|
|
2232
|
-
u.value = !1, o.value === !1 && (g === !1 && a === null && (a = Di(!1, n)), o.value = !0,
|
|
2232
|
+
u.value = !1, o.value === !1 && (g === !1 && a === null && (a = Di(!1, n)), o.value = !0, ct.push(e.proxy), Bi(r));
|
|
2233
2233
|
}
|
|
2234
2234
|
function s(y) {
|
|
2235
2235
|
if (u.value = !1, y !== !0) return;
|
|
2236
|
-
|
|
2237
|
-
const v =
|
|
2238
|
-
v !== -1 &&
|
|
2236
|
+
Nl(r), o.value = !1;
|
|
2237
|
+
const v = ct.indexOf(e.proxy);
|
|
2238
|
+
v !== -1 && ct.splice(v, 1), a !== null && (ji(a), a = null);
|
|
2239
2239
|
}
|
|
2240
2240
|
return po(() => {
|
|
2241
2241
|
s(!0);
|
|
@@ -2326,10 +2326,10 @@ function Yi(e) {
|
|
|
2326
2326
|
function Gi(e) {
|
|
2327
2327
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
2328
2328
|
}
|
|
2329
|
-
let
|
|
2329
|
+
let qt;
|
|
2330
2330
|
function Zi() {
|
|
2331
|
-
if (
|
|
2332
|
-
return
|
|
2331
|
+
if (qt !== void 0)
|
|
2332
|
+
return qt;
|
|
2333
2333
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
2334
2334
|
ll(e, {
|
|
2335
2335
|
width: "100%",
|
|
@@ -2346,7 +2346,7 @@ function Zi() {
|
|
|
2346
2346
|
const l = e.offsetWidth;
|
|
2347
2347
|
t.style.overflow = "scroll";
|
|
2348
2348
|
let n = e.offsetWidth;
|
|
2349
|
-
return l === n && (n = t.clientWidth), t.remove(),
|
|
2349
|
+
return l === n && (n = t.clientWidth), t.remove(), qt = l - n, qt;
|
|
2350
2350
|
}
|
|
2351
2351
|
function Ji(e, t = !0) {
|
|
2352
2352
|
return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
|
|
@@ -2388,9 +2388,9 @@ function Rt(e) {
|
|
|
2388
2388
|
const t = e.target;
|
|
2389
2389
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
2390
2390
|
return;
|
|
2391
|
-
let l =
|
|
2391
|
+
let l = ct.length - 1;
|
|
2392
2392
|
for (; l >= 0; ) {
|
|
2393
|
-
const n =
|
|
2393
|
+
const n = ct[l].$;
|
|
2394
2394
|
if (n.type.name === "QTooltip") {
|
|
2395
2395
|
l--;
|
|
2396
2396
|
continue;
|
|
@@ -2412,12 +2412,12 @@ function Rt(e) {
|
|
|
2412
2412
|
function nu(e) {
|
|
2413
2413
|
Fe.push(e), Fe.length === 1 && (document.addEventListener("mousedown", Rt, $t), document.addEventListener("touchstart", Rt, $t));
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function Ql(e) {
|
|
2416
2416
|
const t = Fe.findIndex((l) => l === e);
|
|
2417
2417
|
t !== -1 && (Fe.splice(t, 1), Fe.length === 0 && (document.removeEventListener("mousedown", Rt, $t), document.removeEventListener("touchstart", Rt, $t)));
|
|
2418
2418
|
}
|
|
2419
|
-
let
|
|
2420
|
-
function
|
|
2419
|
+
let Ul, Xl;
|
|
2420
|
+
function Yl(e) {
|
|
2421
2421
|
const t = e.split(" ");
|
|
2422
2422
|
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;
|
|
2423
2423
|
}
|
|
@@ -2433,7 +2433,7 @@ const sl = {
|
|
|
2433
2433
|
["left", "middle", "right"].forEach((e) => {
|
|
2434
2434
|
sl[`${e}#ltr`] = e, sl[`${e}#rtl`] = e;
|
|
2435
2435
|
});
|
|
2436
|
-
function
|
|
2436
|
+
function Gl(e, t) {
|
|
2437
2437
|
const l = e.split(" ");
|
|
2438
2438
|
return {
|
|
2439
2439
|
vertical: l[0],
|
|
@@ -2476,7 +2476,7 @@ function au(e, t) {
|
|
|
2476
2476
|
right: e
|
|
2477
2477
|
};
|
|
2478
2478
|
}
|
|
2479
|
-
function
|
|
2479
|
+
function Zl(e, t, l, n) {
|
|
2480
2480
|
return {
|
|
2481
2481
|
top: e[l.vertical] - t[n.vertical],
|
|
2482
2482
|
left: e[l.horizontal] - t[n.horizontal]
|
|
@@ -2505,7 +2505,7 @@ function Xn(e, t = 0) {
|
|
|
2505
2505
|
} = e;
|
|
2506
2506
|
if (ve.is.ios === !0 && window.visualViewport !== void 0) {
|
|
2507
2507
|
const B = document.body.style, { offsetLeft: A, offsetTop: P } = window.visualViewport;
|
|
2508
|
-
A !==
|
|
2508
|
+
A !== Ul && (B.setProperty("--q-pe-left", A + "px"), Ul = A), P !== Xl && (B.setProperty("--q-pe-top", P + "px"), Xl = P);
|
|
2509
2509
|
}
|
|
2510
2510
|
const { scrollLeft: v, scrollTop: c } = l, m = r === void 0 ? iu(o, b === !0 ? [0, 0] : n) : uu(o, r, n);
|
|
2511
2511
|
Object.assign(l.style, {
|
|
@@ -2521,7 +2521,7 @@ function Xn(e, t = 0) {
|
|
|
2521
2521
|
let k = { maxWidth: y, maxHeight: s };
|
|
2522
2522
|
(g === !0 || b === !0) && (k.minWidth = m.width + "px", b === !0 && (k.minHeight = m.height + "px")), Object.assign(l.style, k);
|
|
2523
2523
|
const M = au(O, T);
|
|
2524
|
-
let R =
|
|
2524
|
+
let R = Zl(m, M, u, a);
|
|
2525
2525
|
if (r === void 0 || n === void 0)
|
|
2526
2526
|
Ut(R, m, M, u, a);
|
|
2527
2527
|
else {
|
|
@@ -2538,7 +2538,7 @@ function Xn(e, t = 0) {
|
|
|
2538
2538
|
const W = 2 * n[0];
|
|
2539
2539
|
m.middle = m.left -= W, m.right -= W + 2;
|
|
2540
2540
|
}
|
|
2541
|
-
P === !0 && (R =
|
|
2541
|
+
P === !0 && (R = Zl(m, M, u, a), Ut(R, m, M, u, a));
|
|
2542
2542
|
}
|
|
2543
2543
|
k = {
|
|
2544
2544
|
top: R.top + "px",
|
|
@@ -2582,7 +2582,7 @@ const ru = ge({
|
|
|
2582
2582
|
props: {
|
|
2583
2583
|
...zi,
|
|
2584
2584
|
...zn,
|
|
2585
|
-
...
|
|
2585
|
+
...gt,
|
|
2586
2586
|
...Hn,
|
|
2587
2587
|
persistent: Boolean,
|
|
2588
2588
|
autoClose: Boolean,
|
|
@@ -2595,11 +2595,11 @@ const ru = ge({
|
|
|
2595
2595
|
square: Boolean,
|
|
2596
2596
|
anchor: {
|
|
2597
2597
|
type: String,
|
|
2598
|
-
validator:
|
|
2598
|
+
validator: Yl
|
|
2599
2599
|
},
|
|
2600
2600
|
self: {
|
|
2601
2601
|
type: String,
|
|
2602
|
-
validator:
|
|
2602
|
+
validator: Yl
|
|
2603
2603
|
},
|
|
2604
2604
|
offset: {
|
|
2605
2605
|
type: Array,
|
|
@@ -2625,7 +2625,7 @@ const ru = ge({
|
|
|
2625
2625
|
let o = null, u, a, r;
|
|
2626
2626
|
const g = ne(), { proxy: b } = g, { $q: s } = b, y = z(null), v = z(!1), c = d(
|
|
2627
2627
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
2628
|
-
), m =
|
|
2628
|
+
), m = ht(e, s), { registerTick: C, removeTick: p } = jn(), { registerTimeout: O } = Wn(), { transitionProps: T, transitionStyle: k } = Dn(e), { localScrollTarget: M, changeScrollEvent: R, unconfigureScrollTarget: B } = Fi(e, I), { anchorEl: A, canShow: P } = Pi({ showing: v }), { hide: W } = Fn({
|
|
2629
2629
|
showing: v,
|
|
2630
2630
|
canShow: P,
|
|
2631
2631
|
handleShow: se,
|
|
@@ -2641,17 +2641,17 @@ const ru = ge({
|
|
|
2641
2641
|
(w.type === "touchstart" || w.target.classList.contains("q-dialog__backdrop")) && le(w), !0;
|
|
2642
2642
|
}
|
|
2643
2643
|
}, V = d(
|
|
2644
|
-
() =>
|
|
2644
|
+
() => Gl(
|
|
2645
2645
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
2646
2646
|
s.lang.rtl
|
|
2647
2647
|
)
|
|
2648
|
-
), D = d(() => e.cover === !0 ? V.value :
|
|
2648
|
+
), D = d(() => e.cover === !0 ? V.value : Gl(e.self || "top start", s.lang.rtl)), Y = d(
|
|
2649
2649
|
() => (e.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
2650
2650
|
), ae = d(() => e.autoClose === !0 ? { onClick: j } : {}), E = d(
|
|
2651
2651
|
() => v.value === !0 && e.persistent !== !0
|
|
2652
2652
|
);
|
|
2653
2653
|
Z(E, (w) => {
|
|
2654
|
-
w === !0 ? (Kn(x), nu(K)) : (Tt(x),
|
|
2654
|
+
w === !0 ? (Kn(x), nu(K)) : (Tt(x), Ql(K));
|
|
2655
2655
|
});
|
|
2656
2656
|
function F() {
|
|
2657
2657
|
fl(() => {
|
|
@@ -2683,7 +2683,7 @@ const ru = ge({
|
|
|
2683
2683
|
}, e.transitionDuration);
|
|
2684
2684
|
}
|
|
2685
2685
|
function S(w) {
|
|
2686
|
-
u = void 0, a !== void 0 && (a(), a = void 0), (w === !0 || v.value === !0) && (rl(G), B(),
|
|
2686
|
+
u = void 0, a !== void 0 && (a(), a = void 0), (w === !0 || v.value === !0) && (rl(G), B(), Ql(K), Tt(x)), w !== !0 && (o = null);
|
|
2687
2687
|
}
|
|
2688
2688
|
function I() {
|
|
2689
2689
|
(A.value !== null || e.scrollTarget !== void 0) && (M.value = Xi(A.value, e.scrollTarget), R(M.value, $));
|
|
@@ -2713,7 +2713,7 @@ const ru = ge({
|
|
|
2713
2713
|
}
|
|
2714
2714
|
function N() {
|
|
2715
2715
|
return h(
|
|
2716
|
-
|
|
2716
|
+
dt,
|
|
2717
2717
|
T.value,
|
|
2718
2718
|
() => v.value === !0 ? h("div", {
|
|
2719
2719
|
role: "menu",
|
|
@@ -2746,7 +2746,7 @@ function su(e, t, l) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
};
|
|
2748
2748
|
}
|
|
2749
|
-
let it = 0, Xt, Yt, rt, Gt = !1,
|
|
2749
|
+
let it = 0, Xt, Yt, rt, Gt = !1, Jl, en, tn, Me = null;
|
|
2750
2750
|
function cu(e) {
|
|
2751
2751
|
du(e) && le(e);
|
|
2752
2752
|
}
|
|
@@ -2761,23 +2761,23 @@ function du(e) {
|
|
|
2761
2761
|
}
|
|
2762
2762
|
return !0;
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function ln(e) {
|
|
2765
2765
|
e.target === document && (document.scrollingElement.scrollTop = document.scrollingElement.scrollTop);
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function _t(e) {
|
|
2768
2768
|
Gt !== !0 && (Gt = !0, requestAnimationFrame(() => {
|
|
2769
2769
|
Gt = !1;
|
|
2770
2770
|
const { height: t } = e.target, { clientHeight: l, scrollTop: n } = document.scrollingElement;
|
|
2771
2771
|
(rt === void 0 || t !== window.innerHeight) && (rt = l - t, document.scrollingElement.scrollTop = n), n > rt && (document.scrollingElement.scrollTop -= Math.ceil((n - rt) / 8));
|
|
2772
2772
|
}));
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function nn(e) {
|
|
2775
2775
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
2776
2776
|
if (e === "add") {
|
|
2777
2777
|
const { overflowY: n, overflowX: o } = window.getComputedStyle(t);
|
|
2778
|
-
Xt = Gi(window), Yt = Yi(window),
|
|
2778
|
+
Xt = Gi(window), Yt = Yi(window), Jl = t.style.left, en = t.style.top, tn = window.location.href, t.style.left = `-${Xt}px`, t.style.top = `-${Yt}px`, o !== "hidden" && (o === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, ve.is.ios === !0 && (l === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", _t, re.passiveCapture), window.visualViewport.addEventListener("scroll", _t, re.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", ln, re.passiveCapture));
|
|
2779
2779
|
}
|
|
2780
|
-
ve.is.desktop === !0 && ve.is.mac === !0 && window[`${e}EventListener`]("wheel", cu, re.notPassive), e === "remove" && (ve.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize",
|
|
2780
|
+
ve.is.desktop === !0 && ve.is.mac === !0 && window[`${e}EventListener`]("wheel", cu, re.notPassive), e === "remove" && (ve.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", _t, re.passiveCapture), window.visualViewport.removeEventListener("scroll", _t, re.passiveCapture)) : window.removeEventListener("scroll", ln, re.passiveCapture)), t.classList.remove("q-body--prevent-scroll"), t.classList.remove("q-body--force-scrollbar-x"), t.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, t.style.left = Jl, t.style.top = en, window.location.href === tn && window.scrollTo(Xt, Yt), rt = void 0);
|
|
2781
2781
|
}
|
|
2782
2782
|
function fu(e) {
|
|
2783
2783
|
let t = "add";
|
|
@@ -2793,12 +2793,12 @@ function fu(e) {
|
|
|
2793
2793
|
return;
|
|
2794
2794
|
if (t = "remove", ve.is.ios === !0 && ve.is.nativeMobile === !0) {
|
|
2795
2795
|
Me !== null && clearTimeout(Me), Me = setTimeout(() => {
|
|
2796
|
-
|
|
2796
|
+
nn(t), Me = null;
|
|
2797
2797
|
}, 100);
|
|
2798
2798
|
return;
|
|
2799
2799
|
}
|
|
2800
2800
|
}
|
|
2801
|
-
|
|
2801
|
+
nn(t);
|
|
2802
2802
|
}
|
|
2803
2803
|
function vu() {
|
|
2804
2804
|
let e;
|
|
@@ -2808,14 +2808,14 @@ function vu() {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
};
|
|
2810
2810
|
}
|
|
2811
|
-
let
|
|
2811
|
+
let Et = 0;
|
|
2812
2812
|
const mu = {
|
|
2813
2813
|
standard: "fixed-full flex-center",
|
|
2814
2814
|
top: "fixed-top justify-center",
|
|
2815
2815
|
bottom: "fixed-bottom justify-center",
|
|
2816
2816
|
right: "fixed-right items-center",
|
|
2817
2817
|
left: "fixed-left items-center"
|
|
2818
|
-
},
|
|
2818
|
+
}, on = {
|
|
2819
2819
|
standard: ["scale", "scale"],
|
|
2820
2820
|
top: ["slide-down", "slide-up"],
|
|
2821
2821
|
bottom: ["slide-up", "slide-down"],
|
|
@@ -2865,8 +2865,8 @@ const mu = {
|
|
|
2865
2865
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
2866
2866
|
), { preventBodyScroll: c } = vu(), { registerTimeout: m } = Wn(), { registerTick: C, removeTick: p } = jn(), { transitionProps: O, transitionStyle: T } = Dn(
|
|
2867
2867
|
e,
|
|
2868
|
-
() =>
|
|
2869
|
-
() =>
|
|
2868
|
+
() => on[e.position][0],
|
|
2869
|
+
() => on[e.position][1]
|
|
2870
2870
|
), k = d(() => T.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: M, hidePortal: R, portalIsAccessible: B, renderPortal: A } = In(
|
|
2871
2871
|
o,
|
|
2872
2872
|
u,
|
|
@@ -2938,7 +2938,7 @@ const mu = {
|
|
|
2938
2938
|
g !== null && (clearTimeout(g), g = null), (x === !0 || a.value === !0) && (f(!1), e.seamless !== !0 && (c(!1), rl(j), Tt(F))), x !== !0 && (b = null);
|
|
2939
2939
|
}
|
|
2940
2940
|
function f(x) {
|
|
2941
|
-
x === !0 ? s !== !0 && (
|
|
2941
|
+
x === !0 ? s !== !0 && (Et < 1 && document.body.classList.add("q-body--dialog"), Et++, s = !0) : s === !0 && (Et < 2 && document.body.classList.remove("q-body--dialog"), Et--, s = !1);
|
|
2942
2942
|
}
|
|
2943
2943
|
function S(x) {
|
|
2944
2944
|
y !== !0 && (P(x), l("click", x));
|
|
@@ -2965,7 +2965,7 @@ const mu = {
|
|
|
2965
2965
|
...n,
|
|
2966
2966
|
class: V.value
|
|
2967
2967
|
}, [
|
|
2968
|
-
h(
|
|
2968
|
+
h(dt, {
|
|
2969
2969
|
name: "q-transition--fade",
|
|
2970
2970
|
appear: !0
|
|
2971
2971
|
}, () => L.value === !0 ? h("div", {
|
|
@@ -2976,7 +2976,7 @@ const mu = {
|
|
|
2976
2976
|
onClick: I
|
|
2977
2977
|
}) : null),
|
|
2978
2978
|
h(
|
|
2979
|
-
|
|
2979
|
+
dt,
|
|
2980
2980
|
O.value,
|
|
2981
2981
|
() => a.value === !0 ? h("div", {
|
|
2982
2982
|
ref: u,
|
|
@@ -3048,7 +3048,7 @@ function Zt(e, t, l, n, o, u, a, r) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
return s;
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function un(e, t, l, n) {
|
|
3052
3052
|
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (Lt === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - t), window.scrollTo(t, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, t) : l === !0 ? (n === !0 && (t = (Lt === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
3053
3053
|
}
|
|
3054
3054
|
function ut(e, t, l, n) {
|
|
@@ -3084,7 +3084,7 @@ const bu = {
|
|
|
3084
3084
|
default: 0
|
|
3085
3085
|
},
|
|
3086
3086
|
tableColspan: [Number, String]
|
|
3087
|
-
},
|
|
3087
|
+
}, an = {
|
|
3088
3088
|
virtualScrollHorizontal: Boolean,
|
|
3089
3089
|
onVirtualScroll: Function,
|
|
3090
3090
|
...bu
|
|
@@ -3193,7 +3193,7 @@ function yu({
|
|
|
3193
3193
|
ye === !0 && we !== null && we !== He && we.contains(He) === !0 && (we.addEventListener("focusout", V), setTimeout(() => {
|
|
3194
3194
|
we !== null && we.removeEventListener("focusout", V);
|
|
3195
3195
|
})), pu(we, I - w);
|
|
3196
|
-
const
|
|
3196
|
+
const pt = $ !== void 0 ? c.slice(w, I).reduce(Je, 0) : 0;
|
|
3197
3197
|
if (ye === !0) {
|
|
3198
3198
|
const Te = ee >= M.value.from && w <= M.value.to ? M.value.to : ee;
|
|
3199
3199
|
M.value = { from: w, to: Te }, m.value = ut(v, c, 0, w), C.value = ut(v, c, ee, e.value), requestAnimationFrame(() => {
|
|
@@ -3204,13 +3204,13 @@ function yu({
|
|
|
3204
3204
|
if (b !== S.scrollStart)
|
|
3205
3205
|
return;
|
|
3206
3206
|
ye === !0 && K(w);
|
|
3207
|
-
const Te = c.slice(w, I).reduce(Je, 0), $e = Te + S.offsetStart + m.value,
|
|
3207
|
+
const Te = c.slice(w, I).reduce(Je, 0), $e = Te + S.offsetStart + m.value, bt = $e + c[I];
|
|
3208
3208
|
let tt = $e + j;
|
|
3209
3209
|
if ($ !== void 0) {
|
|
3210
|
-
const Pt = Te -
|
|
3211
|
-
tt = x !== !0 && lt < $e &&
|
|
3210
|
+
const Pt = Te - pt, lt = S.scrollStart + Pt;
|
|
3211
|
+
tt = x !== !0 && lt < $e && bt < lt + S.scrollViewSize ? lt : $ === "end" ? bt - S.scrollViewSize : $e - ($ === "start" ? 0 : Math.round((S.scrollViewSize - c[I]) / 2));
|
|
3212
3212
|
}
|
|
3213
|
-
b = tt,
|
|
3213
|
+
b = tt, un(
|
|
3214
3214
|
f,
|
|
3215
3215
|
tt,
|
|
3216
3216
|
u.virtualScrollHorizontal,
|
|
@@ -3354,7 +3354,7 @@ function yu({
|
|
|
3354
3354
|
}), vn(() => {
|
|
3355
3355
|
if (se !== !0) return;
|
|
3356
3356
|
const f = t();
|
|
3357
|
-
b !== void 0 && f !== void 0 && f !== null && f.nodeType !== 8 ?
|
|
3357
|
+
b !== void 0 && f !== void 0 && f !== null && f.nodeType !== 8 ? un(
|
|
3358
3358
|
f,
|
|
3359
3359
|
b,
|
|
3360
3360
|
u.virtualScrollHorizontal,
|
|
@@ -3451,14 +3451,14 @@ function Ve(e, t) {
|
|
|
3451
3451
|
}
|
|
3452
3452
|
return e !== e && t !== t;
|
|
3453
3453
|
}
|
|
3454
|
-
function
|
|
3454
|
+
function rn(e, t, l) {
|
|
3455
3455
|
if (l <= t)
|
|
3456
3456
|
return t;
|
|
3457
3457
|
const n = l - t + 1;
|
|
3458
3458
|
let o = t + (e - t) % n;
|
|
3459
3459
|
return o < t && (o = n + o), o === 0 ? 0 : o;
|
|
3460
3460
|
}
|
|
3461
|
-
const
|
|
3461
|
+
const sn = (e) => ["add", "add-unique", "toggle"].includes(e), qu = ".*+?^${}()|[]\\", _u = Object.keys(vl);
|
|
3462
3462
|
function Jt(e, t) {
|
|
3463
3463
|
if (typeof e == "function") return e;
|
|
3464
3464
|
const l = e !== void 0 ? e : t;
|
|
@@ -3468,7 +3468,7 @@ const Eu = ge({
|
|
|
3468
3468
|
name: "QSelect",
|
|
3469
3469
|
inheritAttrs: !1,
|
|
3470
3470
|
props: {
|
|
3471
|
-
...
|
|
3471
|
+
...an,
|
|
3472
3472
|
...Vn,
|
|
3473
3473
|
...vl,
|
|
3474
3474
|
// override of useFieldProps > modelValue
|
|
@@ -3509,7 +3509,7 @@ const Eu = ge({
|
|
|
3509
3509
|
useChips: Boolean,
|
|
3510
3510
|
newValueMode: {
|
|
3511
3511
|
type: String,
|
|
3512
|
-
validator:
|
|
3512
|
+
validator: sn
|
|
3513
3513
|
},
|
|
3514
3514
|
mapOptions: Boolean,
|
|
3515
3515
|
emitValue: Boolean,
|
|
@@ -3534,7 +3534,7 @@ const Eu = ge({
|
|
|
3534
3534
|
default: "default"
|
|
3535
3535
|
},
|
|
3536
3536
|
// override of useVirtualScrollProps > virtualScrollItemSize (no default)
|
|
3537
|
-
virtualScrollItemSize:
|
|
3537
|
+
virtualScrollItemSize: an.virtualScrollItemSize.type,
|
|
3538
3538
|
onNewValue: Function,
|
|
3539
3539
|
onFilter: Function
|
|
3540
3540
|
},
|
|
@@ -3586,7 +3586,7 @@ const Eu = ge({
|
|
|
3586
3586
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
3587
3587
|
), N = d(() => L.value === 0), w = d(
|
|
3588
3588
|
() => S.value.map((i) => ce.value(i)).join(", ")
|
|
3589
|
-
), ee = d(() => e.displayValue !== void 0 ? e.displayValue : w.value), ye = d(() => e.optionsHtml === !0 ? () => !0 : (i) => i != null && i.html === !0), He = d(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || S.value.some(ye.value))), we = d(() => f.focused.value === !0 ? e.tabindex : -1),
|
|
3589
|
+
), ee = d(() => e.displayValue !== void 0 ? e.displayValue : w.value), ye = d(() => e.optionsHtml === !0 ? () => !0 : (i) => i != null && i.html === !0), He = d(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || S.value.some(ye.value))), we = d(() => f.focused.value === !0 ? e.tabindex : -1), pt = d(() => {
|
|
3590
3590
|
const i = {
|
|
3591
3591
|
tabindex: e.tabindex,
|
|
3592
3592
|
role: "combobox",
|
|
@@ -3609,7 +3609,7 @@ const Eu = ge({
|
|
|
3609
3609
|
removeAtIndex: Zn,
|
|
3610
3610
|
toggleOption: Re,
|
|
3611
3611
|
tabindex: we.value
|
|
3612
|
-
}))),
|
|
3612
|
+
}))), bt = d(() => {
|
|
3613
3613
|
if (L.value === 0)
|
|
3614
3614
|
return [];
|
|
3615
3615
|
const { from: i, to: q } = V.value;
|
|
@@ -3647,7 +3647,7 @@ const Eu = ge({
|
|
|
3647
3647
|
});
|
|
3648
3648
|
}), tt = d(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown), Pt = d(
|
|
3649
3649
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
3650
|
-
), lt = d(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Se = d(() => Jt(e.optionValue, "value")), ce = d(() => Jt(e.optionLabel, "label")), De = d(() => Jt(e.optionDisable, "disable")),
|
|
3650
|
+
), lt = d(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Se = d(() => Jt(e.optionValue, "value")), ce = d(() => Jt(e.optionLabel, "label")), De = d(() => Jt(e.optionDisable, "disable")), yt = d(() => S.value.map(Se.value)), Gn = d(() => {
|
|
3651
3651
|
const i = {
|
|
3652
3652
|
onInput: xl,
|
|
3653
3653
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -3718,7 +3718,7 @@ const Eu = ge({
|
|
|
3718
3718
|
l("add", { index: 0, value: Q }), l("update:modelValue", e.multiple === !0 ? [Q] : Q);
|
|
3719
3719
|
return;
|
|
3720
3720
|
}
|
|
3721
|
-
const H = e.modelValue.slice(), X =
|
|
3721
|
+
const H = e.modelValue.slice(), X = yt.value.findIndex((Q) => Ve(Q, _));
|
|
3722
3722
|
if (X !== -1)
|
|
3723
3723
|
l("remove", { index: X, value: H.splice(X, 1)[0] });
|
|
3724
3724
|
else {
|
|
@@ -3734,17 +3734,17 @@ const Eu = ge({
|
|
|
3734
3734
|
const q = i !== -1 && i < L.value ? i : -1;
|
|
3735
3735
|
r.value !== q && (r.value = q);
|
|
3736
3736
|
}
|
|
3737
|
-
function
|
|
3737
|
+
function wt(i = 1, q) {
|
|
3738
3738
|
if (u.value === !0) {
|
|
3739
3739
|
let _ = r.value;
|
|
3740
3740
|
do
|
|
3741
|
-
_ =
|
|
3741
|
+
_ = rn(
|
|
3742
3742
|
_ + i,
|
|
3743
3743
|
-1,
|
|
3744
3744
|
L.value - 1
|
|
3745
3745
|
);
|
|
3746
3746
|
while (_ !== -1 && _ !== r.value && De.value(e.options[_]) === !0);
|
|
3747
|
-
r.value !== _ && (je(_), F(_), q !== !0 && e.useInput === !0 && e.fillInput === !0 &&
|
|
3747
|
+
r.value !== _ && (je(_), F(_), q !== !0 && e.useInput === !0 && e.fillInput === !0 && St(
|
|
3748
3748
|
_ >= 0 ? ce.value(e.options[_]) : O,
|
|
3749
3749
|
!0
|
|
3750
3750
|
));
|
|
@@ -3756,7 +3756,7 @@ const Eu = ge({
|
|
|
3756
3756
|
}
|
|
3757
3757
|
function It(i) {
|
|
3758
3758
|
const q = Se.value(i);
|
|
3759
|
-
return
|
|
3759
|
+
return yt.value.find((_) => Ve(_, q)) !== void 0;
|
|
3760
3760
|
}
|
|
3761
3761
|
function hl(i) {
|
|
3762
3762
|
e.useInput === !0 && B.value !== null && (i === void 0 || B.value === i.target && i.target.value === w.value) && B.value.select();
|
|
@@ -3805,13 +3805,13 @@ const Eu = ge({
|
|
|
3805
3805
|
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? Ft(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
3806
3806
|
return;
|
|
3807
3807
|
}
|
|
3808
|
-
(i.keyCode === 35 || i.keyCode === 36) && (typeof g.value != "string" || g.value.length === 0) && (le(i), r.value = -1,
|
|
3808
|
+
(i.keyCode === 35 || i.keyCode === 36) && (typeof g.value != "string" || g.value.length === 0) && (le(i), r.value = -1, wt(i.keyCode === 36 ? 1 : -1, e.multiple)), (i.keyCode === 33 || i.keyCode === 34) && D.value !== void 0 && (le(i), r.value = Math.max(
|
|
3809
3809
|
-1,
|
|
3810
3810
|
Math.min(
|
|
3811
3811
|
L.value,
|
|
3812
3812
|
r.value + (i.keyCode === 33 ? -1 : 1) * D.value.view
|
|
3813
3813
|
)
|
|
3814
|
-
),
|
|
3814
|
+
), wt(i.keyCode === 33 ? 1 : -1, e.multiple)), (i.keyCode === 38 || i.keyCode === 40) && (le(i), wt(i.keyCode === 38 ? -1 : 1, e.multiple));
|
|
3815
3815
|
const H = L.value;
|
|
3816
3816
|
if ((k === void 0 || M < Date.now()) && (k = ""), H > 0 && e.useInput !== !0 && i.key !== void 0 && i.key.length === 1 && i.altKey === !1 && i.ctrlKey === !1 && i.metaKey === !1 && (i.keyCode !== 32 || k.length !== 0)) {
|
|
3817
3817
|
u.value !== !0 && Ke(i);
|
|
@@ -3821,10 +3821,10 @@ const Eu = ge({
|
|
|
3821
3821
|
let te = r.value;
|
|
3822
3822
|
if (Q === !0 || te < 0 || oe.test(ce.value(e.options[te])) !== !0)
|
|
3823
3823
|
do
|
|
3824
|
-
te =
|
|
3824
|
+
te = rn(te + 1, -1, H - 1);
|
|
3825
3825
|
while (te !== r.value && (De.value(e.options[te]) === !0 || oe.test(ce.value(e.options[te])) !== !0));
|
|
3826
3826
|
r.value !== te && fe(() => {
|
|
3827
|
-
je(te), F(te), te >= 0 && e.useInput === !0 && e.fillInput === !0 &&
|
|
3827
|
+
je(te), F(te), te >= 0 && e.useInput === !0 && e.fillInput === !0 && St(ce.value(e.options[te]), !0);
|
|
3828
3828
|
});
|
|
3829
3829
|
return;
|
|
3830
3830
|
}
|
|
@@ -3836,7 +3836,7 @@ const Eu = ge({
|
|
|
3836
3836
|
if (q === !0) {
|
|
3837
3837
|
const X = (Q, oe) => {
|
|
3838
3838
|
if (oe) {
|
|
3839
|
-
if (
|
|
3839
|
+
if (sn(oe) !== !0)
|
|
3840
3840
|
return;
|
|
3841
3841
|
} else
|
|
3842
3842
|
oe = e.newValueMode;
|
|
@@ -3890,11 +3890,11 @@ const Eu = ge({
|
|
|
3890
3890
|
})
|
|
3891
3891
|
)
|
|
3892
3892
|
));
|
|
3893
|
-
let q = ae("div",
|
|
3893
|
+
let q = ae("div", bt.value.map(i));
|
|
3894
3894
|
return t["before-options"] !== void 0 && (q = t["before-options"]().concat(q)), Ae(t["after-options"], q);
|
|
3895
3895
|
}
|
|
3896
3896
|
function lo(i, q) {
|
|
3897
|
-
const _ = q === !0 ? { ...
|
|
3897
|
+
const _ = q === !0 ? { ...pt.value, ...f.splitAttrs.attributes.value } : void 0, H = {
|
|
3898
3898
|
ref: q === !0 ? B : void 0,
|
|
3899
3899
|
key: "i_t",
|
|
3900
3900
|
class: x.value,
|
|
@@ -3914,17 +3914,17 @@ const Eu = ge({
|
|
|
3914
3914
|
return i !== !0 && m === !0 && (Array.isArray(H.class) === !0 ? H.class = [...H.class, "no-pointer-events"] : H.class += " no-pointer-events"), h("input", H);
|
|
3915
3915
|
}
|
|
3916
3916
|
function xl(i) {
|
|
3917
|
-
y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), !(i && i.target && i.target.qComposing === !0) && (
|
|
3917
|
+
y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), !(i && i.target && i.target.qComposing === !0) && (St(i.target.value || ""), C = !0, O = g.value, f.focused.value !== !0 && (m !== !0 || b.value === !0) && f.focus(), e.onFilter !== void 0 && (y = setTimeout(() => {
|
|
3918
3918
|
y = null, We(g.value);
|
|
3919
3919
|
}, e.inputDebounce)));
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function St(i, q) {
|
|
3922
3922
|
g.value !== i && (g.value = i, q === !0 || e.inputDebounce === 0 || e.inputDebounce === "0" ? l("inputValue", i) : v = setTimeout(() => {
|
|
3923
3923
|
v = null, l("inputValue", i);
|
|
3924
3924
|
}, e.inputDebounce));
|
|
3925
3925
|
}
|
|
3926
3926
|
function nt(i, q, _) {
|
|
3927
|
-
C = _ !== !0, e.useInput === !0 && (
|
|
3927
|
+
C = _ !== !0, e.useInput === !0 && (St(i, !0), (q === !0 || _ !== !0) && (O = i), q !== !0 && We(i));
|
|
3928
3928
|
}
|
|
3929
3929
|
function We(i, q, _) {
|
|
3930
3930
|
if (e.onFilter === void 0 || q !== !0 && f.focused.value !== !0)
|
|
@@ -4107,7 +4107,7 @@ const Eu = ge({
|
|
|
4107
4107
|
toggleOption: Re,
|
|
4108
4108
|
getOptionIndex: () => r.value,
|
|
4109
4109
|
setOptionIndex: je,
|
|
4110
|
-
moveOptionSelection:
|
|
4110
|
+
moveOptionSelection: wt,
|
|
4111
4111
|
filter: We,
|
|
4112
4112
|
updateMenuPosition: Cl,
|
|
4113
4113
|
updateInputValue: nt,
|
|
@@ -4155,7 +4155,7 @@ const Eu = ge({
|
|
|
4155
4155
|
if (e.useInput === !0)
|
|
4156
4156
|
q.push(lo(i, _));
|
|
4157
4157
|
else if (f.editable.value === !0) {
|
|
4158
|
-
const X = _ === !0 ?
|
|
4158
|
+
const X = _ === !0 ? pt.value : void 0;
|
|
4159
4159
|
q.push(
|
|
4160
4160
|
h("input", {
|
|
4161
4161
|
ref: _ === !0 ? B : void 0,
|
|
@@ -4179,8 +4179,8 @@ const Eu = ge({
|
|
|
4179
4179
|
})
|
|
4180
4180
|
);
|
|
4181
4181
|
}
|
|
4182
|
-
if (J.value !== void 0 && e.disable !== !0 &&
|
|
4183
|
-
const X =
|
|
4182
|
+
if (J.value !== void 0 && e.disable !== !0 && yt.value.length !== 0) {
|
|
4183
|
+
const X = yt.value.map((Q) => h("option", { value: Q, selected: !0 }));
|
|
4184
4184
|
q.push(
|
|
4185
4185
|
h("select", {
|
|
4186
4186
|
class: "hidden",
|
|
@@ -4204,7 +4204,7 @@ const Eu = ge({
|
|
|
4204
4204
|
] : null
|
|
4205
4205
|
}), On(f);
|
|
4206
4206
|
}
|
|
4207
|
-
}),
|
|
4207
|
+
}), Vu = { class: "app-select__amount" }, Bu = /* @__PURE__ */ Mt({
|
|
4208
4208
|
__name: "index",
|
|
4209
4209
|
props: {
|
|
4210
4210
|
modelValue: {},
|
|
@@ -4242,9 +4242,9 @@ const Eu = ge({
|
|
|
4242
4242
|
(c) => c.label.toLowerCase().includes(u.value.toLowerCase())
|
|
4243
4243
|
) : l.options), s = d(() => {
|
|
4244
4244
|
if (l.rules)
|
|
4245
|
-
return l.required ? [...l.rules,
|
|
4245
|
+
return l.required ? [...l.rules, zl] : l.rules;
|
|
4246
4246
|
if (l.required)
|
|
4247
|
-
return [
|
|
4247
|
+
return [zl];
|
|
4248
4248
|
}), y = () => {
|
|
4249
4249
|
a.value = void 0;
|
|
4250
4250
|
}, v = (c, m) => {
|
|
@@ -4259,7 +4259,7 @@ const Eu = ge({
|
|
|
4259
4259
|
key: 0,
|
|
4260
4260
|
class: Be(["app-select__label", { "app-select__label_bold": c.required }])
|
|
4261
4261
|
}, Ze(c.required ? `${c.label} *` : c.label), 3)) : Ce("", !0),
|
|
4262
|
-
ot(Eu, {
|
|
4262
|
+
ot(st(Eu), {
|
|
4263
4263
|
standout: "",
|
|
4264
4264
|
"hide-bottom-space": "",
|
|
4265
4265
|
"hide-dropdown-icon": "",
|
|
@@ -4369,7 +4369,7 @@ const Eu = ge({
|
|
|
4369
4369
|
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
4370
4370
|
], 2));
|
|
4371
4371
|
}
|
|
4372
|
-
}), Lu = /* @__PURE__ */ dl(Bu, [["__scopeId", "data-v-
|
|
4372
|
+
}), Lu = /* @__PURE__ */ dl(Bu, [["__scopeId", "data-v-4f110a60"]]), Tu = /* @__PURE__ */ Mt({
|
|
4373
4373
|
__name: "index",
|
|
4374
4374
|
props: {
|
|
4375
4375
|
name: {},
|
|
@@ -4383,7 +4383,7 @@ const Eu = ge({
|
|
|
4383
4383
|
}, null, 6));
|
|
4384
4384
|
}
|
|
4385
4385
|
}), Mu = /* @__PURE__ */ dl(Tu, [["__scopeId", "data-v-73419357"]]), Au = Co(
|
|
4386
|
-
() => import("./index-
|
|
4386
|
+
() => import("./index-0R6r0Ppp.js")
|
|
4387
4387
|
);
|
|
4388
4388
|
export {
|
|
4389
4389
|
Ru as A,
|