@c3labsbr/vuetify-elements 1.4.0 → 1.4.1
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/molecules/AdjustColumnsDialog.vue.d.ts +1 -1
- package/dist/components/molecules/AdjustColumnsDialog.vue.d.ts.map +1 -1
- package/dist/components/organisms/GenericTableHeader.vue.d.ts +1 -1
- package/dist/components/organisms/GenericTableHeader.vue.d.ts.map +1 -1
- package/dist/vuetify-elements.cjs.js +3 -3
- package/dist/vuetify-elements.css +1 -1
- package/dist/vuetify-elements.es.js +533 -527
- package/package.json +7 -5
|
@@ -398,11 +398,11 @@ function Wa(e) {
|
|
|
398
398
|
l = a.slice(7, -1).split(/, /), o = +l[0], r = +l[3], i = +l[4], s = +l[5];
|
|
399
399
|
else
|
|
400
400
|
return new xt(t);
|
|
401
|
-
const c = n.transformOrigin, u = t.x - i - (1 - o) * parseFloat(c),
|
|
401
|
+
const c = n.transformOrigin, u = t.x - i - (1 - o) * parseFloat(c), v = t.y - s - (1 - r) * parseFloat(c.slice(c.indexOf(" ") + 1)), f = o ? t.width / o : e.offsetWidth + 1, y = r ? t.height / r : e.offsetHeight + 1;
|
|
402
402
|
return new xt({
|
|
403
403
|
x: u,
|
|
404
|
-
y:
|
|
405
|
-
width:
|
|
404
|
+
y: v,
|
|
405
|
+
width: f,
|
|
406
406
|
height: y
|
|
407
407
|
});
|
|
408
408
|
} else
|
|
@@ -464,11 +464,11 @@ function Bl(e, t) {
|
|
|
464
464
|
if (s <= xn && (s += (xn - s) ** Dl), c <= xn && (c += (xn - c) ** Dl), Math.abs(c - s) < ws) return 0;
|
|
465
465
|
let u;
|
|
466
466
|
if (c > s) {
|
|
467
|
-
const
|
|
468
|
-
u =
|
|
467
|
+
const v = (c ** ps - s ** bs) * ks;
|
|
468
|
+
u = v < El ? 0 : v < Al ? v - v * Tl * Pn : v - Pn;
|
|
469
469
|
} else {
|
|
470
|
-
const
|
|
471
|
-
u =
|
|
470
|
+
const v = (c ** Cs - s ** Ss) * xs;
|
|
471
|
+
u = v > -El ? 0 : v > -Al ? v - v * Tl * Pn : v + Pn;
|
|
472
472
|
}
|
|
473
473
|
return u * 100;
|
|
474
474
|
}
|
|
@@ -673,7 +673,7 @@ function it(e, t) {
|
|
|
673
673
|
if (r) return c;
|
|
674
674
|
if (i || s) {
|
|
675
675
|
const u = Number(i || 1 / 0);
|
|
676
|
-
for (let
|
|
676
|
+
for (let v = 0; v <= u && !(!c || !("prev" in c)); v++)
|
|
677
677
|
c = c.prev;
|
|
678
678
|
return c && typeof s == "string" && s in c && (c = ot(ot(c, {
|
|
679
679
|
prev: c
|
|
@@ -694,7 +694,7 @@ function Fs() {
|
|
|
694
694
|
const l = p(() => n.value?.[e._as ?? t]), o = new Proxy(e, {
|
|
695
695
|
get(s, c) {
|
|
696
696
|
const u = Reflect.get(s, c);
|
|
697
|
-
return c === "class" || c === "style" ? [l.value?.[c], u].filter((
|
|
697
|
+
return c === "class" || c === "style" ? [l.value?.[c], u].filter((v) => v != null) : typeof c == "string" && !Bs(a.vnode, c) ? l.value?.[c] !== void 0 ? l.value?.[c] : n.value?.global?.[c] !== void 0 ? n.value?.global?.[c] : u : u;
|
|
698
698
|
}
|
|
699
699
|
}), r = te();
|
|
700
700
|
Qe(() => {
|
|
@@ -1056,21 +1056,21 @@ function Dt(e, t) {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
1058
|
function ue(e, t, n) {
|
|
1059
|
-
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : (
|
|
1059
|
+
let a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : (v) => v, l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : (v) => v;
|
|
1060
1060
|
const o = me("useProxiedModel"), r = _(e[t] !== void 0 ? e[t] : n), i = kt(t), c = i !== t ? p(() => (e[t], !!((o.vnode.props?.hasOwnProperty(t) || o.vnode.props?.hasOwnProperty(i)) && (o.vnode.props?.hasOwnProperty(`onUpdate:${t}`) || o.vnode.props?.hasOwnProperty(`onUpdate:${i}`))))) : p(() => (e[t], !!(o.vnode.props?.hasOwnProperty(t) && o.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));
|
|
1061
1061
|
Dt(() => !c.value, () => {
|
|
1062
|
-
U(() => e[t], (
|
|
1063
|
-
r.value =
|
|
1062
|
+
U(() => e[t], (v) => {
|
|
1063
|
+
r.value = v;
|
|
1064
1064
|
});
|
|
1065
1065
|
});
|
|
1066
1066
|
const u = p({
|
|
1067
1067
|
get() {
|
|
1068
|
-
const
|
|
1069
|
-
return a(c.value ?
|
|
1068
|
+
const v = e[t];
|
|
1069
|
+
return a(c.value ? v : r.value);
|
|
1070
1070
|
},
|
|
1071
|
-
set(
|
|
1072
|
-
const
|
|
1073
|
-
y ===
|
|
1071
|
+
set(v) {
|
|
1072
|
+
const f = l(v), y = be(c.value ? e[t] : r.value);
|
|
1073
|
+
y === f || a(y) === v || (r.value = f, o?.emit(`update:${t}`, f));
|
|
1074
1074
|
}
|
|
1075
1075
|
});
|
|
1076
1076
|
return Object.defineProperty(u, "externalValue", {
|
|
@@ -1112,10 +1112,10 @@ function _o(e, t) {
|
|
|
1112
1112
|
}, a), qe(() => {
|
|
1113
1113
|
o.unregister(l);
|
|
1114
1114
|
});
|
|
1115
|
-
const s = p(() => o.isSelected(l)), c = p(() => o.items.value[0].id === l), u = p(() => o.items.value[o.items.value.length - 1].id === l),
|
|
1116
|
-
return U(s, (
|
|
1115
|
+
const s = p(() => o.isSelected(l)), c = p(() => o.items.value[0].id === l), u = p(() => o.items.value[o.items.value.length - 1].id === l), v = p(() => s.value && [o.selectedClass.value, e.selectedClass]);
|
|
1116
|
+
return U(s, (f) => {
|
|
1117
1117
|
a.emit("group:selected", {
|
|
1118
|
-
value:
|
|
1118
|
+
value: f
|
|
1119
1119
|
});
|
|
1120
1120
|
}, {
|
|
1121
1121
|
flush: "sync"
|
|
@@ -1125,8 +1125,8 @@ function _o(e, t) {
|
|
|
1125
1125
|
isFirst: c,
|
|
1126
1126
|
isLast: u,
|
|
1127
1127
|
toggle: () => o.select(l, !s.value),
|
|
1128
|
-
select: (
|
|
1129
|
-
selectedClass:
|
|
1128
|
+
select: (f) => o.select(l, f),
|
|
1129
|
+
selectedClass: v,
|
|
1130
1130
|
value: r,
|
|
1131
1131
|
disabled: i,
|
|
1132
1132
|
group: o
|
|
@@ -1134,51 +1134,51 @@ function _o(e, t) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
function Qa(e, t) {
|
|
1136
1136
|
let n = !1;
|
|
1137
|
-
const a = Vt([]), l = ue(e, "modelValue", [], (
|
|
1138
|
-
const y = zs(a,
|
|
1137
|
+
const a = Vt([]), l = ue(e, "modelValue", [], (f) => f == null ? [] : Oo(a, Ee(f)), (f) => {
|
|
1138
|
+
const y = zs(a, f);
|
|
1139
1139
|
return e.multiple ? y : y[0];
|
|
1140
1140
|
}), o = me("useGroup");
|
|
1141
|
-
function r(
|
|
1142
|
-
const g =
|
|
1141
|
+
function r(f, y) {
|
|
1142
|
+
const g = f, h = Symbol.for(`${t.description}:id`), b = nn(h, o?.vnode).indexOf(y);
|
|
1143
1143
|
re(g.value) == null && (g.value = b, g.useIndexAsValue = !0), b > -1 ? a.splice(b, 0, g) : a.push(g);
|
|
1144
1144
|
}
|
|
1145
|
-
function i(
|
|
1145
|
+
function i(f) {
|
|
1146
1146
|
if (n) return;
|
|
1147
1147
|
s();
|
|
1148
|
-
const y = a.findIndex((g) => g.id ===
|
|
1148
|
+
const y = a.findIndex((g) => g.id === f);
|
|
1149
1149
|
a.splice(y, 1);
|
|
1150
1150
|
}
|
|
1151
1151
|
function s() {
|
|
1152
|
-
const
|
|
1153
|
-
|
|
1152
|
+
const f = a.find((y) => !y.disabled);
|
|
1153
|
+
f && e.mandatory === "force" && !l.value.length && (l.value = [f.id]);
|
|
1154
1154
|
}
|
|
1155
1155
|
yt(() => {
|
|
1156
1156
|
s();
|
|
1157
1157
|
}), qe(() => {
|
|
1158
1158
|
n = !0;
|
|
1159
1159
|
}), Ui(() => {
|
|
1160
|
-
for (let
|
|
1161
|
-
a[
|
|
1160
|
+
for (let f = 0; f < a.length; f++)
|
|
1161
|
+
a[f].useIndexAsValue && (a[f].value = f);
|
|
1162
1162
|
});
|
|
1163
|
-
function c(
|
|
1164
|
-
const g = a.find((h) => h.id ===
|
|
1163
|
+
function c(f, y) {
|
|
1164
|
+
const g = a.find((h) => h.id === f);
|
|
1165
1165
|
if (!(y && g?.disabled))
|
|
1166
1166
|
if (e.multiple) {
|
|
1167
|
-
const h = l.value.slice(), m = h.findIndex((C) => C ===
|
|
1167
|
+
const h = l.value.slice(), m = h.findIndex((C) => C === f), b = ~m;
|
|
1168
1168
|
if (y = y ?? !b, b && e.mandatory && h.length <= 1 || !b && e.max != null && h.length + 1 > e.max) return;
|
|
1169
|
-
m < 0 && y ? h.push(
|
|
1169
|
+
m < 0 && y ? h.push(f) : m >= 0 && !y && h.splice(m, 1), l.value = h;
|
|
1170
1170
|
} else {
|
|
1171
|
-
const h = l.value.includes(
|
|
1171
|
+
const h = l.value.includes(f);
|
|
1172
1172
|
if (e.mandatory && h) return;
|
|
1173
|
-
l.value = y ?? !h ? [
|
|
1173
|
+
l.value = y ?? !h ? [f] : [];
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
function u(
|
|
1176
|
+
function u(f) {
|
|
1177
1177
|
if (e.multiple && ft('This method is not supported when using "multiple" prop'), l.value.length) {
|
|
1178
1178
|
const y = l.value[0], g = a.findIndex((b) => b.id === y);
|
|
1179
|
-
let h = (g +
|
|
1179
|
+
let h = (g + f) % a.length, m = a[h];
|
|
1180
1180
|
for (; m.disabled && h !== g; )
|
|
1181
|
-
h = (h +
|
|
1181
|
+
h = (h + f) % a.length, m = a[h];
|
|
1182
1182
|
if (m.disabled) return;
|
|
1183
1183
|
l.value = [a[h].id];
|
|
1184
1184
|
} else {
|
|
@@ -1186,7 +1186,7 @@ function Qa(e, t) {
|
|
|
1186
1186
|
y && (l.value = [y.id]);
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
const
|
|
1189
|
+
const v = {
|
|
1190
1190
|
register: r,
|
|
1191
1191
|
unregister: i,
|
|
1192
1192
|
selected: l,
|
|
@@ -1194,12 +1194,12 @@ function Qa(e, t) {
|
|
|
1194
1194
|
disabled: M(e, "disabled"),
|
|
1195
1195
|
prev: () => u(a.length - 1),
|
|
1196
1196
|
next: () => u(1),
|
|
1197
|
-
isSelected: (
|
|
1197
|
+
isSelected: (f) => l.value.includes(f),
|
|
1198
1198
|
selectedClass: p(() => e.selectedClass),
|
|
1199
1199
|
items: p(() => a),
|
|
1200
|
-
getItemIndex: (
|
|
1200
|
+
getItemIndex: (f) => Hs(a, f)
|
|
1201
1201
|
};
|
|
1202
|
-
return Ce(t,
|
|
1202
|
+
return Ce(t, v), v;
|
|
1203
1203
|
}
|
|
1204
1204
|
function Hs(e, t) {
|
|
1205
1205
|
const n = Oo(e, [t]);
|
|
@@ -1439,13 +1439,13 @@ const Xs = A({
|
|
|
1439
1439
|
} = st(M(e, "color"));
|
|
1440
1440
|
return X(() => {
|
|
1441
1441
|
const u = a.default?.();
|
|
1442
|
-
u && (l.value = Po(u).filter((
|
|
1443
|
-
const
|
|
1442
|
+
u && (l.value = Po(u).filter((f) => f.type === Ki && f.children && typeof f.children == "string")[0]?.children);
|
|
1443
|
+
const v = !!(n.onClick || n.onClickOnce);
|
|
1444
1444
|
return d(r.value.component, {
|
|
1445
1445
|
tag: e.tag,
|
|
1446
1446
|
icon: r.value.icon,
|
|
1447
1447
|
class: ["v-icon", "notranslate", o.value, i.value, s.value, {
|
|
1448
|
-
"v-icon--clickable":
|
|
1448
|
+
"v-icon--clickable": v,
|
|
1449
1449
|
"v-icon--disabled": e.disabled,
|
|
1450
1450
|
"v-icon--start": e.start,
|
|
1451
1451
|
"v-icon--end": e.end
|
|
@@ -1455,9 +1455,9 @@ const Xs = A({
|
|
|
1455
1455
|
height: G(e.size),
|
|
1456
1456
|
width: G(e.size)
|
|
1457
1457
|
}, c.value, e.style],
|
|
1458
|
-
role:
|
|
1459
|
-
"aria-hidden": !
|
|
1460
|
-
tabindex:
|
|
1458
|
+
role: v ? "button" : void 0,
|
|
1459
|
+
"aria-hidden": !v,
|
|
1460
|
+
tabindex: v ? e.disabled ? -1 : 0 : void 0
|
|
1461
1461
|
}, {
|
|
1462
1462
|
default: () => [u]
|
|
1463
1463
|
});
|
|
@@ -1541,8 +1541,8 @@ const Ys = A({
|
|
|
1541
1541
|
textColorClasses: c,
|
|
1542
1542
|
textColorStyles: u
|
|
1543
1543
|
} = st(M(e, "color")), {
|
|
1544
|
-
textColorClasses:
|
|
1545
|
-
textColorStyles:
|
|
1544
|
+
textColorClasses: v,
|
|
1545
|
+
textColorStyles: f
|
|
1546
1546
|
} = st(M(e, "bgColor")), {
|
|
1547
1547
|
intersectionRef: y,
|
|
1548
1548
|
isIntersecting: g
|
|
@@ -1572,8 +1572,8 @@ const Ys = A({
|
|
|
1572
1572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1573
1573
|
viewBox: `0 0 ${x.value} ${x.value}`
|
|
1574
1574
|
}, [d("circle", {
|
|
1575
|
-
class: ["v-progress-circular__underlay",
|
|
1576
|
-
style:
|
|
1575
|
+
class: ["v-progress-circular__underlay", v.value],
|
|
1576
|
+
style: f.value,
|
|
1577
1577
|
fill: "transparent",
|
|
1578
1578
|
cx: "50%",
|
|
1579
1579
|
cy: "50%",
|
|
@@ -1730,9 +1730,9 @@ const Zs = A({
|
|
|
1730
1730
|
textColorStyles: c
|
|
1731
1731
|
} = st(e, "color"), {
|
|
1732
1732
|
backgroundColorClasses: u,
|
|
1733
|
-
backgroundColorStyles:
|
|
1733
|
+
backgroundColorStyles: v
|
|
1734
1734
|
} = rt(p(() => e.bgColor || e.color)), {
|
|
1735
|
-
backgroundColorClasses:
|
|
1735
|
+
backgroundColorClasses: f,
|
|
1736
1736
|
backgroundColorStyles: y
|
|
1737
1737
|
} = rt(p(() => e.bufferColor || e.bgColor || e.color)), {
|
|
1738
1738
|
backgroundColorClasses: g,
|
|
@@ -1790,12 +1790,12 @@ const Zs = A({
|
|
|
1790
1790
|
}
|
|
1791
1791
|
}, null), d("div", {
|
|
1792
1792
|
class: ["v-progress-linear__background", P ? void 0 : u.value],
|
|
1793
|
-
style: [
|
|
1793
|
+
style: [v.value, {
|
|
1794
1794
|
opacity: parseFloat(e.bgOpacity),
|
|
1795
1795
|
width: e.stream ? 0 : void 0
|
|
1796
1796
|
}]
|
|
1797
1797
|
}, null), d("div", {
|
|
1798
|
-
class: ["v-progress-linear__buffer", P ? void 0 :
|
|
1798
|
+
class: ["v-progress-linear__buffer", P ? void 0 : f.value],
|
|
1799
1799
|
style: [y.value, {
|
|
1800
1800
|
opacity: parseFloat(e.bufferOpacity),
|
|
1801
1801
|
width: G(T.value, "%")
|
|
@@ -1876,13 +1876,13 @@ function tu() {
|
|
|
1876
1876
|
function Gn(e, t) {
|
|
1877
1877
|
const n = Xi("RouterLink"), a = p(() => !!(e.href || e.to)), l = p(() => a?.value || bl(t, "click") || bl(e, "click"));
|
|
1878
1878
|
if (typeof n == "string" || !("useLink" in n)) {
|
|
1879
|
-
const
|
|
1879
|
+
const v = M(e, "href");
|
|
1880
1880
|
return {
|
|
1881
1881
|
isLink: a,
|
|
1882
1882
|
isClickable: l,
|
|
1883
|
-
href:
|
|
1883
|
+
href: v,
|
|
1884
1884
|
linkProps: Vt({
|
|
1885
|
-
href:
|
|
1885
|
+
href: v
|
|
1886
1886
|
})
|
|
1887
1887
|
};
|
|
1888
1888
|
}
|
|
@@ -1947,8 +1947,8 @@ function Wo(e) {
|
|
|
1947
1947
|
const ou = function(e, t) {
|
|
1948
1948
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = 0, l = 0;
|
|
1949
1949
|
if (!Wo(e)) {
|
|
1950
|
-
const
|
|
1951
|
-
a =
|
|
1950
|
+
const v = t.getBoundingClientRect(), f = Pa(e) ? e.touches[e.touches.length - 1] : e;
|
|
1951
|
+
a = f.clientX - v.left, l = f.clientY - v.top;
|
|
1952
1952
|
}
|
|
1953
1953
|
let o = 0, r = 0.3;
|
|
1954
1954
|
t._ripple?.circle ? (r = 0.15, o = t.clientWidth / 2, o = n.center ? o : o + Math.sqrt((a - o) ** 2 + (l - o) ** 2) / 4) : o = Math.sqrt(t.clientWidth ** 2 + t.clientHeight ** 2) / 2;
|
|
@@ -1976,10 +1976,10 @@ const ou = function(e, t) {
|
|
|
1976
1976
|
y: s,
|
|
1977
1977
|
centerX: c,
|
|
1978
1978
|
centerY: u
|
|
1979
|
-
} = ou(e, t, n),
|
|
1980
|
-
l.className = "v-ripple__animation", l.style.width =
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1979
|
+
} = ou(e, t, n), v = `${o * 2}px`;
|
|
1980
|
+
l.className = "v-ripple__animation", l.style.width = v, l.style.height = v, t.appendChild(a);
|
|
1981
|
+
const f = window.getComputedStyle(t);
|
|
1982
|
+
f && f.position === "static" && (t.style.position = "relative", t.dataset.previousPosition = "static"), l.classList.add("v-ripple__animation--enter"), l.classList.add("v-ripple__animation--visible"), Ml(l, `translate(${i}, ${s}) scale3d(${r},${r},${r})`), l.dataset.activated = String(performance.now()), setTimeout(() => {
|
|
1983
1983
|
l.classList.remove("v-ripple__animation--enter"), l.classList.add("v-ripple__animation--in"), Ml(l, `translate(${c}, ${u}) scale3d(1,1,1)`);
|
|
1984
1984
|
}, 0);
|
|
1985
1985
|
},
|
|
@@ -2160,9 +2160,9 @@ const Sn = {
|
|
|
2160
2160
|
} = Wn(e), {
|
|
2161
2161
|
locationStyles: u
|
|
2162
2162
|
} = el(e), {
|
|
2163
|
-
positionClasses:
|
|
2163
|
+
positionClasses: v
|
|
2164
2164
|
} = qo(e), {
|
|
2165
|
-
roundedClasses:
|
|
2165
|
+
roundedClasses: f
|
|
2166
2166
|
} = lt(e), {
|
|
2167
2167
|
sizeClasses: y,
|
|
2168
2168
|
sizeStyles: g
|
|
@@ -2195,7 +2195,7 @@ const Sn = {
|
|
|
2195
2195
|
"v-btn--readonly": e.readonly,
|
|
2196
2196
|
"v-btn--slim": e.slim,
|
|
2197
2197
|
"v-btn--stacked": e.stacked
|
|
2198
|
-
}, l.value, o.value, x.value, r.value, s.value, c.value,
|
|
2198
|
+
}, l.value, o.value, x.value, r.value, s.value, c.value, v.value, f.value, y.value, $.value, e.class],
|
|
2199
2199
|
style: [T.value, i.value, u.value, g.value, e.style],
|
|
2200
2200
|
"aria-busy": e.loading ? !0 : void 0,
|
|
2201
2201
|
disabled: V.value || void 0,
|
|
@@ -2374,20 +2374,20 @@ function mu(e, t, n) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
return typeof t.offset == "number" ? [t.offset, 0] : [0, 0];
|
|
2376
2376
|
});
|
|
2377
|
-
let
|
|
2378
|
-
const
|
|
2379
|
-
|
|
2377
|
+
let v = !1;
|
|
2378
|
+
const f = new ResizeObserver(() => {
|
|
2379
|
+
v && y();
|
|
2380
2380
|
});
|
|
2381
2381
|
U([e.target, e.contentEl], (g, h) => {
|
|
2382
2382
|
let [m, b] = g, [C, k] = h;
|
|
2383
|
-
C && !Array.isArray(C) &&
|
|
2383
|
+
C && !Array.isArray(C) && f.unobserve(C), m && !Array.isArray(m) && f.observe(m), k && f.unobserve(k), b && f.observe(b);
|
|
2384
2384
|
}, {
|
|
2385
2385
|
immediate: !0
|
|
2386
2386
|
}), Oe(() => {
|
|
2387
|
-
|
|
2387
|
+
f.disconnect();
|
|
2388
2388
|
});
|
|
2389
2389
|
function y() {
|
|
2390
|
-
if (
|
|
2390
|
+
if (v = !1, requestAnimationFrame(() => v = !0), !e.target.value || !e.contentEl.value) return;
|
|
2391
2391
|
const g = To(e.target.value), h = gu(e.contentEl.value, e.isRtl.value), m = Ln(e.contentEl.value), b = 12;
|
|
2392
2392
|
m.length || (m.push(document.documentElement), e.contentEl.value.style.top && e.contentEl.value.style.left || (h.x -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x") || 0), h.y -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y") || 0)));
|
|
2393
2393
|
const C = m.reduce((F, E) => {
|
|
@@ -2676,8 +2676,8 @@ function ku(e, t) {
|
|
|
2676
2676
|
} = t;
|
|
2677
2677
|
const o = me("useActivator"), r = _();
|
|
2678
2678
|
let i = !1, s = !1, c = !0;
|
|
2679
|
-
const u = p(() => e.openOnFocus || e.openOnFocus == null && e.openOnHover),
|
|
2680
|
-
runOpenDelay:
|
|
2679
|
+
const u = p(() => e.openOnFocus || e.openOnFocus == null && e.openOnHover), v = p(() => e.openOnClick || e.openOnClick == null && !e.openOnHover && !u.value), {
|
|
2680
|
+
runOpenDelay: f,
|
|
2681
2681
|
runCloseDelay: y
|
|
2682
2682
|
} = ar(e, (S) => {
|
|
2683
2683
|
S === (e.openOnHover && i || u.value && s) && !(e.openOnHover && n.value && !a.value) && (n.value !== S && (c = !0), n.value = S);
|
|
@@ -2686,28 +2686,28 @@ function ku(e, t) {
|
|
|
2686
2686
|
S.stopPropagation(), r.value = S.currentTarget || S.target, n.value || (g.value = [S.clientX, S.clientY]), n.value = !n.value;
|
|
2687
2687
|
},
|
|
2688
2688
|
onMouseenter: (S) => {
|
|
2689
|
-
S.sourceCapabilities?.firesTouchEvents || (i = !0, r.value = S.currentTarget || S.target,
|
|
2689
|
+
S.sourceCapabilities?.firesTouchEvents || (i = !0, r.value = S.currentTarget || S.target, f());
|
|
2690
2690
|
},
|
|
2691
2691
|
onMouseleave: (S) => {
|
|
2692
2692
|
i = !1, y();
|
|
2693
2693
|
},
|
|
2694
2694
|
onFocus: (S) => {
|
|
2695
|
-
Bn(S.target, ":focus-visible") !== !1 && (s = !0, S.stopPropagation(), r.value = S.currentTarget || S.target,
|
|
2695
|
+
Bn(S.target, ":focus-visible") !== !1 && (s = !0, S.stopPropagation(), r.value = S.currentTarget || S.target, f());
|
|
2696
2696
|
},
|
|
2697
2697
|
onBlur: (S) => {
|
|
2698
2698
|
s = !1, S.stopPropagation(), y();
|
|
2699
2699
|
}
|
|
2700
2700
|
}, m = p(() => {
|
|
2701
2701
|
const S = {};
|
|
2702
|
-
return
|
|
2702
|
+
return v.value && (S.onClick = h.onClick), e.openOnHover && (S.onMouseenter = h.onMouseenter, S.onMouseleave = h.onMouseleave), u.value && (S.onFocus = h.onFocus, S.onBlur = h.onBlur), S;
|
|
2703
2703
|
}), b = p(() => {
|
|
2704
2704
|
const S = {};
|
|
2705
2705
|
if (e.openOnHover && (S.onMouseenter = () => {
|
|
2706
|
-
i = !0,
|
|
2706
|
+
i = !0, f();
|
|
2707
2707
|
}, S.onMouseleave = () => {
|
|
2708
2708
|
i = !1, y();
|
|
2709
2709
|
}), u.value && (S.onFocusin = () => {
|
|
2710
|
-
s = !0,
|
|
2710
|
+
s = !0, f();
|
|
2711
2711
|
}, S.onFocusout = () => {
|
|
2712
2712
|
s = !1, y();
|
|
2713
2713
|
}), e.closeOnContentClick) {
|
|
@@ -2720,7 +2720,7 @@ function ku(e, t) {
|
|
|
2720
2720
|
}), C = p(() => {
|
|
2721
2721
|
const S = {};
|
|
2722
2722
|
return e.openOnHover && (S.onMouseenter = () => {
|
|
2723
|
-
c && (i = !0, c = !1,
|
|
2723
|
+
c && (i = !0, c = !1, f());
|
|
2724
2724
|
}, S.onMouseleave = () => {
|
|
2725
2725
|
i = !1, y();
|
|
2726
2726
|
}), S;
|
|
@@ -2880,8 +2880,8 @@ function Au(e, t, n) {
|
|
|
2880
2880
|
const u = tn.at(-1)?.[1];
|
|
2881
2881
|
i.value = u ? u + 10 : +t.value, l && tn.push([a.uid, i.value]), o?.activeChildren.add(a.uid), Oe(() => {
|
|
2882
2882
|
if (l) {
|
|
2883
|
-
const
|
|
2884
|
-
tn.splice(
|
|
2883
|
+
const v = be(tn).findIndex((f) => f[0] === a.uid);
|
|
2884
|
+
tn.splice(v, 1);
|
|
2885
2885
|
}
|
|
2886
2886
|
o?.activeChildren.delete(a.uid);
|
|
2887
2887
|
});
|
|
@@ -2940,8 +2940,8 @@ const Cn = A({
|
|
|
2940
2940
|
disabled: l,
|
|
2941
2941
|
group: o
|
|
2942
2942
|
}).filter((c) => {
|
|
2943
|
-
let [u,
|
|
2944
|
-
return
|
|
2943
|
+
let [u, v] = c;
|
|
2944
|
+
return v !== void 0;
|
|
2945
2945
|
})), r), n);
|
|
2946
2946
|
};
|
|
2947
2947
|
function Eu() {
|
|
@@ -3072,9 +3072,9 @@ const Zn = A({
|
|
|
3072
3072
|
q && e.disabled || (c.value = q);
|
|
3073
3073
|
}
|
|
3074
3074
|
}), {
|
|
3075
|
-
themeClasses:
|
|
3075
|
+
themeClasses: v
|
|
3076
3076
|
} = Te(e), {
|
|
3077
|
-
rtlClasses:
|
|
3077
|
+
rtlClasses: f,
|
|
3078
3078
|
isRtl: y
|
|
3079
3079
|
} = ct(), {
|
|
3080
3080
|
hasContent: g,
|
|
@@ -3190,7 +3190,7 @@ const Zn = A({
|
|
|
3190
3190
|
"v-overlay--absolute": e.absolute || e.contained,
|
|
3191
3191
|
"v-overlay--active": u.value,
|
|
3192
3192
|
"v-overlay--contained": e.contained
|
|
3193
|
-
},
|
|
3193
|
+
}, v.value, f.value, e.class],
|
|
3194
3194
|
style: [k.value, {
|
|
3195
3195
|
"--v-overlay-opacity": e.opacity,
|
|
3196
3196
|
top: G(K.value)
|
|
@@ -3287,10 +3287,10 @@ function Qt(e) {
|
|
|
3287
3287
|
if (!s) continue;
|
|
3288
3288
|
const c = s.slice();
|
|
3289
3289
|
for (; c.length; ) {
|
|
3290
|
-
const u = c.shift(),
|
|
3291
|
-
if (
|
|
3292
|
-
const
|
|
3293
|
-
|
|
3290
|
+
const u = c.shift(), v = ya(u.value, o);
|
|
3291
|
+
if (v) return v;
|
|
3292
|
+
const f = u.value && u.value[ma];
|
|
3293
|
+
f && c.push(...f);
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
}
|
|
@@ -3326,17 +3326,17 @@ const Lu = A({
|
|
|
3326
3326
|
} = t;
|
|
3327
3327
|
const a = ue(e, "modelValue"), {
|
|
3328
3328
|
scopeId: l
|
|
3329
|
-
} = Yn(), o = nt(), r = p(() => e.id || `v-tooltip-${o}`), i = _(), s = p(() => e.location.split(" ").length > 1 ? e.location : e.location + " center"), c = p(() => e.origin === "auto" || e.origin === "overlap" || e.origin.split(" ").length > 1 || e.location.split(" ").length > 1 ? e.origin : e.origin + " center"), u = p(() => e.transition ? e.transition : a.value ? "scale-transition" : "fade-transition"),
|
|
3329
|
+
} = Yn(), o = nt(), r = p(() => e.id || `v-tooltip-${o}`), i = _(), s = p(() => e.location.split(" ").length > 1 ? e.location : e.location + " center"), c = p(() => e.origin === "auto" || e.origin === "overlap" || e.origin.split(" ").length > 1 || e.location.split(" ").length > 1 ? e.origin : e.origin + " center"), u = p(() => e.transition ? e.transition : a.value ? "scale-transition" : "fade-transition"), v = p(() => z({
|
|
3330
3330
|
"aria-describedby": r.value
|
|
3331
3331
|
}, e.activatorProps));
|
|
3332
3332
|
return X(() => {
|
|
3333
|
-
const
|
|
3333
|
+
const f = Wt.filterProps(e);
|
|
3334
3334
|
return d(Wt, z({
|
|
3335
3335
|
ref: i,
|
|
3336
3336
|
class: ["v-tooltip", e.class],
|
|
3337
3337
|
style: e.style,
|
|
3338
3338
|
id: r.value
|
|
3339
|
-
},
|
|
3339
|
+
}, f, {
|
|
3340
3340
|
modelValue: a.value,
|
|
3341
3341
|
"onUpdate:modelValue": (y) => a.value = y,
|
|
3342
3342
|
transition: u.value,
|
|
@@ -3345,7 +3345,7 @@ const Lu = A({
|
|
|
3345
3345
|
origin: c.value,
|
|
3346
3346
|
persistent: !0,
|
|
3347
3347
|
role: "tooltip",
|
|
3348
|
-
activatorProps:
|
|
3348
|
+
activatorProps: v.value,
|
|
3349
3349
|
_disableGlobalStack: !0
|
|
3350
3350
|
}, l), {
|
|
3351
3351
|
activator: n.activator,
|
|
@@ -3458,7 +3458,7 @@ function _u(e, t) {
|
|
|
3458
3458
|
);
|
|
3459
3459
|
});
|
|
3460
3460
|
for (const c of e) {
|
|
3461
|
-
const u = t.filter((
|
|
3461
|
+
const u = t.filter((v) => v.isVisible && v.value !== "actions").map((v) => sr(c, v.value));
|
|
3462
3462
|
a.addRow(u);
|
|
3463
3463
|
}
|
|
3464
3464
|
const s = a.addRow([`Exportado em: ${o}`]);
|
|
@@ -3471,8 +3471,8 @@ function _u(e, t) {
|
|
|
3471
3471
|
), n.xlsx.writeBuffer().then((c) => {
|
|
3472
3472
|
const u = new Blob([c], {
|
|
3473
3473
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
3474
|
-
}),
|
|
3475
|
-
|
|
3474
|
+
}), v = document.createElement("a");
|
|
3475
|
+
v.href = URL.createObjectURL(u), v.download = "relatorio.xlsx", v.click();
|
|
3476
3476
|
});
|
|
3477
3477
|
}
|
|
3478
3478
|
function sr(e, t) {
|
|
@@ -3741,7 +3741,7 @@ function je(e, t, n) {
|
|
|
3741
3741
|
offsetTop: s,
|
|
3742
3742
|
offsetLeft: c,
|
|
3743
3743
|
offsetWidth: u,
|
|
3744
|
-
offsetHeight:
|
|
3744
|
+
offsetHeight: v
|
|
3745
3745
|
} = i;
|
|
3746
3746
|
i._transitionInitialStyles = {
|
|
3747
3747
|
position: i.style.position,
|
|
@@ -3749,7 +3749,7 @@ function je(e, t, n) {
|
|
|
3749
3749
|
left: i.style.left,
|
|
3750
3750
|
width: i.style.width,
|
|
3751
3751
|
height: i.style.height
|
|
3752
|
-
}, i.style.position = "absolute", i.style.top = `${s}px`, i.style.left = `${c}px`, i.style.width = `${u}px`, i.style.height = `${
|
|
3752
|
+
}, i.style.position = "absolute", i.style.top = `${s}px`, i.style.left = `${c}px`, i.style.width = `${u}px`, i.style.height = `${v}px`;
|
|
3753
3753
|
}
|
|
3754
3754
|
a.hideOnLeave && i.style.setProperty("display", "none", "important");
|
|
3755
3755
|
},
|
|
@@ -3759,10 +3759,10 @@ function je(e, t, n) {
|
|
|
3759
3759
|
position: s,
|
|
3760
3760
|
top: c,
|
|
3761
3761
|
left: u,
|
|
3762
|
-
width:
|
|
3763
|
-
height:
|
|
3762
|
+
width: v,
|
|
3763
|
+
height: f
|
|
3764
3764
|
} = i._transitionInitialStyles;
|
|
3765
|
-
delete i._transitionInitialStyles, i.style.position = s || "", i.style.top = c || "", i.style.left = u || "", i.style.width =
|
|
3765
|
+
delete i._transitionInitialStyles, i.style.position = s || "", i.style.top = c || "", i.style.left = u || "", i.style.width = v || "", i.style.height = f || "";
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
3768
3768
|
};
|
|
@@ -3859,22 +3859,22 @@ const Yu = A({
|
|
|
3859
3859
|
l.style.pointerEvents = "none", l.style.visibility = "hidden";
|
|
3860
3860
|
},
|
|
3861
3861
|
async onEnter(l, o) {
|
|
3862
|
-
await new Promise((
|
|
3862
|
+
await new Promise((f) => requestAnimationFrame(f)), await new Promise((f) => requestAnimationFrame(f)), l.style.visibility = "";
|
|
3863
3863
|
const {
|
|
3864
3864
|
x: r,
|
|
3865
3865
|
y: i,
|
|
3866
3866
|
sx: s,
|
|
3867
3867
|
sy: c,
|
|
3868
3868
|
speed: u
|
|
3869
|
-
} = Yl(e.target, l),
|
|
3869
|
+
} = Yl(e.target, l), v = Ht(l, [{
|
|
3870
3870
|
transform: `translate(${r}px, ${i}px) scale(${s}, ${c})`,
|
|
3871
3871
|
opacity: 0
|
|
3872
3872
|
}, {}], {
|
|
3873
3873
|
duration: 225 * u,
|
|
3874
3874
|
easing: Ls
|
|
3875
3875
|
});
|
|
3876
|
-
Xl(l)?.forEach((
|
|
3877
|
-
Ht(
|
|
3876
|
+
Xl(l)?.forEach((f) => {
|
|
3877
|
+
Ht(f, [{
|
|
3878
3878
|
opacity: 0
|
|
3879
3879
|
}, {
|
|
3880
3880
|
opacity: 0,
|
|
@@ -3883,7 +3883,7 @@ const Yu = A({
|
|
|
3883
3883
|
duration: 450 * u,
|
|
3884
3884
|
easing: $n
|
|
3885
3885
|
});
|
|
3886
|
-
}),
|
|
3886
|
+
}), v.finished.then(() => o());
|
|
3887
3887
|
},
|
|
3888
3888
|
onAfterEnter(l) {
|
|
3889
3889
|
l.style.removeProperty("pointer-events");
|
|
@@ -3892,7 +3892,7 @@ const Yu = A({
|
|
|
3892
3892
|
l.style.pointerEvents = "none";
|
|
3893
3893
|
},
|
|
3894
3894
|
async onLeave(l, o) {
|
|
3895
|
-
await new Promise((
|
|
3895
|
+
await new Promise((f) => requestAnimationFrame(f));
|
|
3896
3896
|
const {
|
|
3897
3897
|
x: r,
|
|
3898
3898
|
y: i,
|
|
@@ -3906,8 +3906,8 @@ const Yu = A({
|
|
|
3906
3906
|
}], {
|
|
3907
3907
|
duration: 125 * u,
|
|
3908
3908
|
easing: Ns
|
|
3909
|
-
}).finished.then(() => o()), Xl(l)?.forEach((
|
|
3910
|
-
Ht(
|
|
3909
|
+
}).finished.then(() => o()), Xl(l)?.forEach((f) => {
|
|
3910
|
+
Ht(f, [{}, {
|
|
3911
3911
|
opacity: 0,
|
|
3912
3912
|
offset: 0.2
|
|
3913
3913
|
}, {
|
|
@@ -3941,7 +3941,7 @@ function Yl(e, t) {
|
|
|
3941
3941
|
r === "left" || i === "left" ? s -= n.width / 2 : (r === "right" || i === "right") && (s += n.width / 2);
|
|
3942
3942
|
let c = n.top + n.height / 2;
|
|
3943
3943
|
r === "top" || i === "top" ? c -= n.height / 2 : (r === "bottom" || i === "bottom") && (c += n.height / 2);
|
|
3944
|
-
const u = n.width / a.width,
|
|
3944
|
+
const u = n.width / a.width, v = n.height / a.height, f = Math.max(1, u, v), y = u / f || 0, g = v / f || 0, h = a.width * a.height / (window.innerWidth * window.innerHeight), m = h > 0.12 ? Math.min(1.5, (h - 0.12) * 10 + 1) : 1;
|
|
3945
3945
|
return {
|
|
3946
3946
|
x: s - (l + a.left),
|
|
3947
3947
|
y: c - (o + a.top),
|
|
@@ -4237,17 +4237,17 @@ const rl = (e) => {
|
|
|
4237
4237
|
a = be(a);
|
|
4238
4238
|
const s = new Map(o), c = [a];
|
|
4239
4239
|
for (; c.length; ) {
|
|
4240
|
-
const
|
|
4241
|
-
o.set(be(
|
|
4240
|
+
const v = c.shift();
|
|
4241
|
+
o.set(be(v), l ? "on" : "off"), r.has(v) && c.push(...r.get(v));
|
|
4242
4242
|
}
|
|
4243
4243
|
let u = be(i.get(a));
|
|
4244
4244
|
for (; u; ) {
|
|
4245
|
-
const
|
|
4246
|
-
o.set(u,
|
|
4245
|
+
const v = r.get(u), f = v.every((g) => o.get(be(g)) === "on"), y = v.every((g) => !o.has(be(g)) || o.get(be(g)) === "off");
|
|
4246
|
+
o.set(u, f ? "on" : y ? "off" : "indeterminate"), u = be(i.get(u));
|
|
4247
4247
|
}
|
|
4248
|
-
return e && !l && Array.from(o.entries()).reduce((
|
|
4248
|
+
return e && !l && Array.from(o.entries()).reduce((f, y) => {
|
|
4249
4249
|
let [g, h] = y;
|
|
4250
|
-
return h === "on" &&
|
|
4250
|
+
return h === "on" && f.push(g), f;
|
|
4251
4251
|
}, []).length === 0 ? s : o;
|
|
4252
4252
|
},
|
|
4253
4253
|
in: (n, a, l) => {
|
|
@@ -4353,7 +4353,7 @@ const rl = (e) => {
|
|
|
4353
4353
|
h.unshift(m), m = a.value.get(m);
|
|
4354
4354
|
return h;
|
|
4355
4355
|
}
|
|
4356
|
-
const
|
|
4356
|
+
const v = me("nested"), f = /* @__PURE__ */ new Set(), y = {
|
|
4357
4357
|
id: te(),
|
|
4358
4358
|
root: {
|
|
4359
4359
|
opened: l,
|
|
@@ -4368,19 +4368,19 @@ const rl = (e) => {
|
|
|
4368
4368
|
return g;
|
|
4369
4369
|
}),
|
|
4370
4370
|
register: (g, h, m) => {
|
|
4371
|
-
if (
|
|
4371
|
+
if (f.has(g)) {
|
|
4372
4372
|
const b = u(g).map(String).join(" -> "), C = u(h).concat(g).map(String).join(" -> ");
|
|
4373
4373
|
Ga(`Multiple nodes with the same ID
|
|
4374
4374
|
${b}
|
|
4375
4375
|
${C}`);
|
|
4376
4376
|
return;
|
|
4377
4377
|
} else
|
|
4378
|
-
|
|
4378
|
+
f.add(g);
|
|
4379
4379
|
h && g !== h && a.value.set(g, h), m && n.value.set(g, []), h != null && n.value.set(h, [...n.value.get(h) || [], g]);
|
|
4380
4380
|
},
|
|
4381
4381
|
unregister: (g) => {
|
|
4382
4382
|
if (t) return;
|
|
4383
|
-
|
|
4383
|
+
f.delete(g), n.value.delete(g);
|
|
4384
4384
|
const h = a.value.get(g);
|
|
4385
4385
|
if (h) {
|
|
4386
4386
|
const m = n.value.get(h) ?? [];
|
|
@@ -4389,7 +4389,7 @@ const rl = (e) => {
|
|
|
4389
4389
|
a.value.delete(g);
|
|
4390
4390
|
},
|
|
4391
4391
|
open: (g, h, m) => {
|
|
4392
|
-
|
|
4392
|
+
v.emit("click:open", {
|
|
4393
4393
|
id: g,
|
|
4394
4394
|
value: h,
|
|
4395
4395
|
path: u(g),
|
|
@@ -4418,7 +4418,7 @@ const rl = (e) => {
|
|
|
4418
4418
|
b && (l.value = b);
|
|
4419
4419
|
},
|
|
4420
4420
|
select: (g, h, m) => {
|
|
4421
|
-
|
|
4421
|
+
v.emit("click:select", {
|
|
4422
4422
|
id: g,
|
|
4423
4423
|
value: h,
|
|
4424
4424
|
path: u(g),
|
|
@@ -4437,7 +4437,7 @@ const rl = (e) => {
|
|
|
4437
4437
|
activate: (g, h, m) => {
|
|
4438
4438
|
if (!e.activatable)
|
|
4439
4439
|
return y.root.select(g, !0, m);
|
|
4440
|
-
|
|
4440
|
+
v.emit("click:activate", {
|
|
4441
4441
|
id: g,
|
|
4442
4442
|
value: h,
|
|
4443
4443
|
path: u(g),
|
|
@@ -4548,14 +4548,14 @@ const cc = yn({
|
|
|
4548
4548
|
onClick: c,
|
|
4549
4549
|
class: "v-list-group__header",
|
|
4550
4550
|
id: r.value
|
|
4551
|
-
})),
|
|
4551
|
+
})), v = p(() => a.value ? e.collapseIcon : e.expandIcon), f = p(() => ({
|
|
4552
4552
|
VListItem: {
|
|
4553
4553
|
active: a.value,
|
|
4554
4554
|
activeColor: e.activeColor,
|
|
4555
4555
|
baseColor: e.baseColor,
|
|
4556
4556
|
color: e.color,
|
|
4557
|
-
prependIcon: e.prependIcon || e.subgroup &&
|
|
4558
|
-
appendIcon: e.appendIcon || !e.subgroup &&
|
|
4557
|
+
prependIcon: e.prependIcon || e.subgroup && v.value,
|
|
4558
|
+
appendIcon: e.appendIcon || !e.subgroup && v.value,
|
|
4559
4559
|
title: e.title,
|
|
4560
4560
|
value: e.value
|
|
4561
4561
|
}
|
|
@@ -4570,7 +4570,7 @@ const cc = yn({
|
|
|
4570
4570
|
style: e.style
|
|
4571
4571
|
}, {
|
|
4572
4572
|
default: () => [n.activator && d(Pe, {
|
|
4573
|
-
defaults:
|
|
4573
|
+
defaults: f.value
|
|
4574
4574
|
}, {
|
|
4575
4575
|
default: () => [d(cc, null, {
|
|
4576
4576
|
default: () => [n.activator({
|
|
@@ -4666,7 +4666,7 @@ function mc(e, t) {
|
|
|
4666
4666
|
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], s = arguments.length > 1 ? arguments[1] : void 0;
|
|
4667
4667
|
const c = e._observe?.[t.instance.$.uid];
|
|
4668
4668
|
if (!c) return;
|
|
4669
|
-
const u = i.some((
|
|
4669
|
+
const u = i.some((v) => v.isIntersecting);
|
|
4670
4670
|
l && (!n.quiet || c.init) && (!n.once || u || c.init) && l(u, i, s), u && n.once ? Fr(e, t) : c.init = !0;
|
|
4671
4671
|
}, o);
|
|
4672
4672
|
e._observe = Object(e._observe), e._observe[t.instance.$.uid] = {
|
|
@@ -4737,7 +4737,7 @@ const $r = {
|
|
|
4737
4737
|
backgroundColorStyles: o
|
|
4738
4738
|
} = rt(M(e, "color")), {
|
|
4739
4739
|
roundedClasses: r
|
|
4740
|
-
} = lt(e), i = me("VImg"), s = te(""), c = _(), u = te(e.eager ? "loading" : "idle"),
|
|
4740
|
+
} = lt(e), i = me("VImg"), s = te(""), c = _(), u = te(e.eager ? "loading" : "idle"), v = te(), f = te(), y = p(() => e.src && typeof e.src == "object" ? {
|
|
4741
4741
|
src: e.src.src,
|
|
4742
4742
|
srcset: e.srcset || e.src.srcset,
|
|
4743
4743
|
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
@@ -4747,7 +4747,7 @@ const $r = {
|
|
|
4747
4747
|
srcset: e.srcset,
|
|
4748
4748
|
lazySrc: e.lazySrc,
|
|
4749
4749
|
aspect: Number(e.aspectRatio || 0)
|
|
4750
|
-
}), g = p(() => y.value.aspect ||
|
|
4750
|
+
}), g = p(() => y.value.aspect || v.value / f.value || 0);
|
|
4751
4751
|
U(() => e.src, () => {
|
|
4752
4752
|
h(u.value !== "idle");
|
|
4753
4753
|
}), U(g, (E, B) => {
|
|
@@ -4793,7 +4793,7 @@ const $r = {
|
|
|
4793
4793
|
naturalHeight: W,
|
|
4794
4794
|
naturalWidth: J
|
|
4795
4795
|
} = E;
|
|
4796
|
-
W || J ? (
|
|
4796
|
+
W || J ? (v.value = J, f.value = W) : !E.complete && u.value === "loading" && B != null ? k = window.setTimeout(O, B) : (E.currentSrc.endsWith(".svg") || E.currentSrc.startsWith("data:image/svg+xml")) && (v.value = 1, f.value = 1);
|
|
4797
4797
|
};
|
|
4798
4798
|
O();
|
|
4799
4799
|
}
|
|
@@ -4877,7 +4877,7 @@ const $r = {
|
|
|
4877
4877
|
"v-img--booting": !F.value
|
|
4878
4878
|
}, l.value, r.value, e.class],
|
|
4879
4879
|
style: [{
|
|
4880
|
-
width: G(e.width === "auto" ?
|
|
4880
|
+
width: G(e.width === "auto" ? v.value : e.width)
|
|
4881
4881
|
}, o.value, e.style]
|
|
4882
4882
|
}, E, {
|
|
4883
4883
|
aspectRatio: g.value,
|
|
@@ -4896,8 +4896,8 @@ const $r = {
|
|
|
4896
4896
|
currentSrc: s,
|
|
4897
4897
|
image: c,
|
|
4898
4898
|
state: u,
|
|
4899
|
-
naturalWidth:
|
|
4900
|
-
naturalHeight:
|
|
4899
|
+
naturalWidth: v,
|
|
4900
|
+
naturalHeight: f
|
|
4901
4901
|
};
|
|
4902
4902
|
}
|
|
4903
4903
|
}), hc = A({
|
|
@@ -4937,14 +4937,14 @@ const $r = {
|
|
|
4937
4937
|
roundedClasses: c
|
|
4938
4938
|
} = lt(e), {
|
|
4939
4939
|
sizeClasses: u,
|
|
4940
|
-
sizeStyles:
|
|
4940
|
+
sizeStyles: v
|
|
4941
4941
|
} = bn(e);
|
|
4942
4942
|
return X(() => d(e.tag, {
|
|
4943
4943
|
class: ["v-avatar", {
|
|
4944
4944
|
"v-avatar--start": e.start,
|
|
4945
4945
|
"v-avatar--end": e.end
|
|
4946
4946
|
}, a.value, l.value, o.value, s.value, c.value, u.value, i.value, e.class],
|
|
4947
|
-
style: [r.value,
|
|
4947
|
+
style: [r.value, v.value, e.style]
|
|
4948
4948
|
}, {
|
|
4949
4949
|
default: () => [n.default ? d(Pe, {
|
|
4950
4950
|
key: "content-defaults",
|
|
@@ -5032,14 +5032,14 @@ const $r = {
|
|
|
5032
5032
|
isActivated: s,
|
|
5033
5033
|
select: c,
|
|
5034
5034
|
isOpen: u,
|
|
5035
|
-
isSelected:
|
|
5036
|
-
isIndeterminate:
|
|
5035
|
+
isSelected: v,
|
|
5036
|
+
isIndeterminate: f,
|
|
5037
5037
|
isGroupActivator: y,
|
|
5038
5038
|
root: g,
|
|
5039
5039
|
parent: h,
|
|
5040
5040
|
openOnSelect: m,
|
|
5041
5041
|
id: b
|
|
5042
|
-
} = Er(r, !1), C = Vr(), k = p(() => e.active !== !1 && (e.active || o.isActive?.value || (g.activatable.value ? s.value :
|
|
5042
|
+
} = Er(r, !1), C = Vr(), k = p(() => e.active !== !1 && (e.active || o.isActive?.value || (g.activatable.value ? s.value : v.value))), x = p(() => e.link !== !1 && o.isLink.value), T = p(() => !!C && (g.selectable.value || g.activatable.value || e.value != null)), $ = p(() => !e.disabled && e.link !== !1 && (e.link || o.isClickable.value || T.value)), V = p(() => e.rounded || e.nav), S = p(() => e.color ?? e.activeColor), P = p(() => ({
|
|
5043
5043
|
color: k.value ? S.value ?? e.baseColor : e.baseColor,
|
|
5044
5044
|
variant: e.variant
|
|
5045
5045
|
}));
|
|
@@ -5068,11 +5068,11 @@ const $r = {
|
|
|
5068
5068
|
isActive: k.value,
|
|
5069
5069
|
select: c,
|
|
5070
5070
|
isOpen: u.value,
|
|
5071
|
-
isSelected:
|
|
5072
|
-
isIndeterminate:
|
|
5071
|
+
isSelected: v.value,
|
|
5072
|
+
isIndeterminate: f.value
|
|
5073
5073
|
}));
|
|
5074
5074
|
function N(Z) {
|
|
5075
|
-
l("click", Z), $.value && (o.navigate?.(Z), !y && (g.activatable.value ? i(!s.value, Z) : (g.selectable.value || e.value != null) && c(!
|
|
5075
|
+
l("click", Z), $.value && (o.navigate?.(Z), !y && (g.activatable.value ? i(!s.value, Z) : (g.selectable.value || e.value != null) && c(!v.value, Z)));
|
|
5076
5076
|
}
|
|
5077
5077
|
function K(Z) {
|
|
5078
5078
|
(Z.key === "Enter" || Z.key === " ") && (Z.preventDefault(), Z.target.dispatchEvent(new MouseEvent("click", Z)));
|
|
@@ -5091,7 +5091,7 @@ const $r = {
|
|
|
5091
5091
|
}, R.value, F.value, E.value, W.value, ie.value, I.value, ne.value, O.value, e.class],
|
|
5092
5092
|
style: [B.value, J.value, e.style],
|
|
5093
5093
|
tabindex: $.value ? C ? -2 : 0 : void 0,
|
|
5094
|
-
"aria-selected": T.value ? g.activatable.value ? s.value : g.selectable.value ?
|
|
5094
|
+
"aria-selected": T.value ? g.activatable.value ? s.value : g.selectable.value ? v.value : k.value : void 0,
|
|
5095
5095
|
onClick: N,
|
|
5096
5096
|
onKeydown: $.value && !x.value && K
|
|
5097
5097
|
}, o.linkProps), {
|
|
@@ -5178,7 +5178,7 @@ const $r = {
|
|
|
5178
5178
|
activate: i,
|
|
5179
5179
|
isActivated: s,
|
|
5180
5180
|
isGroupActivator: y,
|
|
5181
|
-
isSelected:
|
|
5181
|
+
isSelected: v,
|
|
5182
5182
|
list: C,
|
|
5183
5183
|
select: c,
|
|
5184
5184
|
root: g,
|
|
@@ -5268,16 +5268,16 @@ const $r = {
|
|
|
5268
5268
|
}, c), {
|
|
5269
5269
|
activator: (u) => {
|
|
5270
5270
|
let {
|
|
5271
|
-
props:
|
|
5271
|
+
props: v
|
|
5272
5272
|
} = u;
|
|
5273
|
-
const
|
|
5273
|
+
const f = {
|
|
5274
5274
|
...o,
|
|
5275
|
-
...
|
|
5275
|
+
...v,
|
|
5276
5276
|
value: e.returnObject ? i : o.value
|
|
5277
5277
|
};
|
|
5278
5278
|
return n.header ? n.header({
|
|
5279
|
-
props:
|
|
5280
|
-
}) : d(Ze,
|
|
5279
|
+
props: f
|
|
5280
|
+
}) : d(Ze, f, s);
|
|
5281
5281
|
},
|
|
5282
5282
|
default: () => d(Nr, {
|
|
5283
5283
|
items: l,
|
|
@@ -5459,9 +5459,9 @@ const Vc = A({
|
|
|
5459
5459
|
} = St(e), {
|
|
5460
5460
|
elevationClasses: u
|
|
5461
5461
|
} = Yt(e), {
|
|
5462
|
-
roundedClasses:
|
|
5462
|
+
roundedClasses: v
|
|
5463
5463
|
} = lt(e), {
|
|
5464
|
-
children:
|
|
5464
|
+
children: f,
|
|
5465
5465
|
open: y,
|
|
5466
5466
|
parents: g,
|
|
5467
5467
|
select: h,
|
|
@@ -5527,7 +5527,7 @@ const Vc = A({
|
|
|
5527
5527
|
"v-list--disabled": e.disabled,
|
|
5528
5528
|
"v-list--nav": e.nav,
|
|
5529
5529
|
"v-list--slim": e.slim
|
|
5530
|
-
}, l.value, o.value, i.value, s.value, u.value, b.value,
|
|
5530
|
+
}, l.value, o.value, i.value, s.value, u.value, b.value, v.value, e.class],
|
|
5531
5531
|
style: [r.value, c.value, e.style],
|
|
5532
5532
|
tabindex: e.disabled || T.value ? -1 : 0,
|
|
5533
5533
|
role: "listbox",
|
|
@@ -5546,7 +5546,7 @@ const Vc = A({
|
|
|
5546
5546
|
open: y,
|
|
5547
5547
|
select: h,
|
|
5548
5548
|
focus: E,
|
|
5549
|
-
children:
|
|
5549
|
+
children: f,
|
|
5550
5550
|
parents: g,
|
|
5551
5551
|
getPath: m
|
|
5552
5552
|
};
|
|
@@ -5596,9 +5596,9 @@ const Vc = A({
|
|
|
5596
5596
|
}, 40);
|
|
5597
5597
|
}
|
|
5598
5598
|
}), qe(() => {
|
|
5599
|
-
c?.unregister(), document.removeEventListener("focusin",
|
|
5599
|
+
c?.unregister(), document.removeEventListener("focusin", v);
|
|
5600
5600
|
}), Zi(() => a.value = !1);
|
|
5601
|
-
async function
|
|
5601
|
+
async function v(m) {
|
|
5602
5602
|
const b = m.relatedTarget, C = m.target;
|
|
5603
5603
|
await Se(), a.value && b !== C && s.value?.contentEl && // We're the topmost menu
|
|
5604
5604
|
s.value?.globalTop && // It isn't the document or the menu body
|
|
@@ -5606,13 +5606,13 @@ const Vc = A({
|
|
|
5606
5606
|
!s.value.contentEl.contains(C) && rn(s.value.contentEl)[0]?.focus();
|
|
5607
5607
|
}
|
|
5608
5608
|
U(a, (m) => {
|
|
5609
|
-
m ? (c?.register(), ge && document.addEventListener("focusin",
|
|
5609
|
+
m ? (c?.register(), ge && document.addEventListener("focusin", v, {
|
|
5610
5610
|
once: !0
|
|
5611
|
-
})) : (c?.unregister(), ge && document.removeEventListener("focusin",
|
|
5611
|
+
})) : (c?.unregister(), ge && document.removeEventListener("focusin", v));
|
|
5612
5612
|
}, {
|
|
5613
5613
|
immediate: !0
|
|
5614
5614
|
});
|
|
5615
|
-
function
|
|
5615
|
+
function f(m) {
|
|
5616
5616
|
c?.closeParents(m);
|
|
5617
5617
|
}
|
|
5618
5618
|
function y(m) {
|
|
@@ -5646,7 +5646,7 @@ const Vc = A({
|
|
|
5646
5646
|
absolute: !0,
|
|
5647
5647
|
activatorProps: h.value,
|
|
5648
5648
|
location: e.location ?? (e.submenu ? "end" : "bottom"),
|
|
5649
|
-
"onClick:outside":
|
|
5649
|
+
"onClick:outside": f,
|
|
5650
5650
|
onKeydown: y
|
|
5651
5651
|
}, l), {
|
|
5652
5652
|
activator: n.activator,
|
|
@@ -5714,11 +5714,11 @@ async function eo(e, t, n, a) {
|
|
|
5714
5714
|
g && (u -= parseInt(g, 10));
|
|
5715
5715
|
}
|
|
5716
5716
|
u += o.offset, u = Bc(s, u, !!r, !!n);
|
|
5717
|
-
const
|
|
5718
|
-
if (u ===
|
|
5719
|
-
const
|
|
5717
|
+
const v = s[l] ?? 0;
|
|
5718
|
+
if (u === v) return Promise.resolve(u);
|
|
5719
|
+
const f = performance.now();
|
|
5720
5720
|
return new Promise((y) => requestAnimationFrame(function g(h) {
|
|
5721
|
-
const b = (h -
|
|
5721
|
+
const b = (h - f) / o.duration, C = Math.floor(v + (u - v) * c(Ue(b, 0, 1)));
|
|
5722
5722
|
if (s[l] = C, b >= 1 && Math.abs(C - s[l]) < 10)
|
|
5723
5723
|
return y(u);
|
|
5724
5724
|
if (b > 2)
|
|
@@ -5869,7 +5869,7 @@ const $c = A({
|
|
|
5869
5869
|
scoped: !0
|
|
5870
5870
|
});
|
|
5871
5871
|
const {
|
|
5872
|
-
resizeRef:
|
|
5872
|
+
resizeRef: v
|
|
5873
5873
|
} = qt((S) => {
|
|
5874
5874
|
if (!S.length) return;
|
|
5875
5875
|
const {
|
|
@@ -5879,7 +5879,7 @@ const $c = A({
|
|
|
5879
5879
|
if (!F) return;
|
|
5880
5880
|
const E = R.width, B = F.offsetWidth + parseFloat(getComputedStyle(F).marginRight) * 2;
|
|
5881
5881
|
u.value = h(E, B);
|
|
5882
|
-
}),
|
|
5882
|
+
}), f = p(() => parseInt(e.length, 10)), y = p(() => parseInt(e.start, 10)), g = p(() => e.totalVisible != null ? parseInt(e.totalVisible, 10) : u.value >= 0 ? u.value : h(c.value, 58));
|
|
5883
5883
|
function h(S, P) {
|
|
5884
5884
|
const R = e.showFirstLastPage ? 5 : 3;
|
|
5885
5885
|
return Math.max(0, Math.floor(
|
|
@@ -5888,20 +5888,20 @@ const $c = A({
|
|
|
5888
5888
|
));
|
|
5889
5889
|
}
|
|
5890
5890
|
const m = p(() => {
|
|
5891
|
-
if (
|
|
5891
|
+
if (f.value <= 0 || isNaN(f.value) || f.value > Number.MAX_SAFE_INTEGER) return [];
|
|
5892
5892
|
if (g.value <= 0) return [];
|
|
5893
5893
|
if (g.value === 1) return [l.value];
|
|
5894
|
-
if (
|
|
5895
|
-
return wn(
|
|
5896
|
-
const S = g.value % 2 === 0, P = S ? g.value / 2 : Math.floor(g.value / 2), R = S ? P : P + 1, F =
|
|
5894
|
+
if (f.value <= g.value)
|
|
5895
|
+
return wn(f.value, y.value);
|
|
5896
|
+
const S = g.value % 2 === 0, P = S ? g.value / 2 : Math.floor(g.value / 2), R = S ? P : P + 1, F = f.value - P;
|
|
5897
5897
|
if (R - l.value >= 0)
|
|
5898
|
-
return [...wn(Math.max(1, g.value - 1), y.value), e.ellipsis,
|
|
5898
|
+
return [...wn(Math.max(1, g.value - 1), y.value), e.ellipsis, f.value];
|
|
5899
5899
|
if (l.value - F >= (S ? 1 : 0)) {
|
|
5900
|
-
const E = g.value - 1, B =
|
|
5900
|
+
const E = g.value - 1, B = f.value - E + y.value;
|
|
5901
5901
|
return [y.value, e.ellipsis, ...wn(E, B)];
|
|
5902
5902
|
} else {
|
|
5903
5903
|
const E = Math.max(1, g.value - 3), B = E === 1 ? l.value : l.value - Math.ceil(E / 2) + y.value;
|
|
5904
|
-
return [y.value, e.ellipsis, ...wn(E, B), e.ellipsis,
|
|
5904
|
+
return [y.value, e.ellipsis, ...wn(E, B), e.ellipsis, f.value];
|
|
5905
5905
|
}
|
|
5906
5906
|
});
|
|
5907
5907
|
function b(S, P, R) {
|
|
@@ -5955,7 +5955,7 @@ const $c = A({
|
|
|
5955
5955
|
};
|
|
5956
5956
|
}
|
|
5957
5957
|
})), T = p(() => {
|
|
5958
|
-
const S = !!e.disabled || l.value <= y.value, P = !!e.disabled || l.value >= y.value +
|
|
5958
|
+
const S = !!e.disabled || l.value <= y.value, P = !!e.disabled || l.value >= y.value + f.value - 1;
|
|
5959
5959
|
return {
|
|
5960
5960
|
first: e.showFirstLastPage ? {
|
|
5961
5961
|
icon: i.value ? e.lastIcon : e.firstIcon,
|
|
@@ -5980,7 +5980,7 @@ const $c = A({
|
|
|
5980
5980
|
},
|
|
5981
5981
|
last: e.showFirstLastPage ? {
|
|
5982
5982
|
icon: i.value ? e.firstIcon : e.lastIcon,
|
|
5983
|
-
onClick: (R) => b(R, y.value +
|
|
5983
|
+
onClick: (R) => b(R, y.value + f.value - 1, "last"),
|
|
5984
5984
|
disabled: P,
|
|
5985
5985
|
"aria-label": o(e.lastAriaLabel),
|
|
5986
5986
|
"aria-disabled": P
|
|
@@ -5992,10 +5992,10 @@ const $c = A({
|
|
|
5992
5992
|
C.value[S]?.$el.focus();
|
|
5993
5993
|
}
|
|
5994
5994
|
function V(S) {
|
|
5995
|
-
S.key === yl.left && !e.disabled && l.value > +e.start ? (l.value = l.value - 1, Se($)) : S.key === yl.right && !e.disabled && l.value < y.value +
|
|
5995
|
+
S.key === yl.left && !e.disabled && l.value > +e.start ? (l.value = l.value - 1, Se($)) : S.key === yl.right && !e.disabled && l.value < y.value + f.value - 1 && (l.value = l.value + 1, Se($));
|
|
5996
5996
|
}
|
|
5997
5997
|
return X(() => d(e.tag, {
|
|
5998
|
-
ref:
|
|
5998
|
+
ref: v,
|
|
5999
5999
|
class: ["v-pagination", s.value, e.class],
|
|
6000
6000
|
style: e.style,
|
|
6001
6001
|
role: "navigation",
|
|
@@ -6179,8 +6179,8 @@ function _c(e) {
|
|
|
6179
6179
|
return i.value ? e.color : e.baseColor;
|
|
6180
6180
|
})), {
|
|
6181
6181
|
backgroundColorClasses: u,
|
|
6182
|
-
backgroundColorStyles:
|
|
6183
|
-
} = rt(p(() => i.value && !e.error && !e.disabled ? e.color : e.baseColor)),
|
|
6182
|
+
backgroundColorStyles: v
|
|
6183
|
+
} = rt(p(() => i.value && !e.error && !e.disabled ? e.color : e.baseColor)), f = p(() => i.value ? e.trueIcon : e.falseIcon);
|
|
6184
6184
|
return {
|
|
6185
6185
|
group: t,
|
|
6186
6186
|
densityClasses: n,
|
|
@@ -6190,8 +6190,8 @@ function _c(e) {
|
|
|
6190
6190
|
textColorClasses: s,
|
|
6191
6191
|
textColorStyles: c,
|
|
6192
6192
|
backgroundColorClasses: u,
|
|
6193
|
-
backgroundColorStyles:
|
|
6194
|
-
icon:
|
|
6193
|
+
backgroundColorStyles: v,
|
|
6194
|
+
icon: f
|
|
6195
6195
|
};
|
|
6196
6196
|
}
|
|
6197
6197
|
const to = j()({
|
|
@@ -6217,8 +6217,8 @@ const to = j()({
|
|
|
6217
6217
|
textColorClasses: s,
|
|
6218
6218
|
textColorStyles: c,
|
|
6219
6219
|
backgroundColorClasses: u,
|
|
6220
|
-
backgroundColorStyles:
|
|
6221
|
-
trueValue:
|
|
6220
|
+
backgroundColorStyles: v,
|
|
6221
|
+
trueValue: f
|
|
6222
6222
|
} = _c(e), y = nt(), g = te(!1), h = te(!1), m = _(), b = p(() => e.id || `input-${y}`), C = p(() => !e.disabled && !e.readonly);
|
|
6223
6223
|
l?.onForceUpdate(() => {
|
|
6224
6224
|
m.value && (m.value.checked = i.value);
|
|
@@ -6256,7 +6256,7 @@ const to = j()({
|
|
|
6256
6256
|
"aria-disabled": !!e.disabled,
|
|
6257
6257
|
"aria-label": e.label,
|
|
6258
6258
|
type: e.type,
|
|
6259
|
-
value:
|
|
6259
|
+
value: f.value,
|
|
6260
6260
|
name: e.name,
|
|
6261
6261
|
"aria-checked": e.type === "checkbox" ? i.value : void 0
|
|
6262
6262
|
}, P), null);
|
|
@@ -6276,7 +6276,7 @@ const to = j()({
|
|
|
6276
6276
|
style: c.value
|
|
6277
6277
|
}, [a.default?.({
|
|
6278
6278
|
backgroundColorClasses: u,
|
|
6279
|
-
backgroundColorStyles:
|
|
6279
|
+
backgroundColorStyles: v
|
|
6280
6280
|
}), Be(d("div", {
|
|
6281
6281
|
class: ["v-selection-control__input"]
|
|
6282
6282
|
}, [a.input?.({
|
|
@@ -6284,7 +6284,7 @@ const to = j()({
|
|
|
6284
6284
|
textColorClasses: s,
|
|
6285
6285
|
textColorStyles: c,
|
|
6286
6286
|
backgroundColorClasses: u,
|
|
6287
|
-
backgroundColorStyles:
|
|
6287
|
+
backgroundColorStyles: v,
|
|
6288
6288
|
inputNode: R,
|
|
6289
6289
|
icon: r.value,
|
|
6290
6290
|
props: {
|
|
@@ -6453,17 +6453,17 @@ function zc(e) {
|
|
|
6453
6453
|
const t = ue(e, "modelValue"), n = p(() => e.disabled), a = p(() => e.readonly), l = te(!1), o = _([]), r = _([]);
|
|
6454
6454
|
async function i() {
|
|
6455
6455
|
const u = [];
|
|
6456
|
-
let
|
|
6456
|
+
let v = !0;
|
|
6457
6457
|
r.value = [], l.value = !0;
|
|
6458
|
-
for (const
|
|
6459
|
-
const y = await
|
|
6460
|
-
if (y.length > 0 && (
|
|
6461
|
-
id:
|
|
6458
|
+
for (const f of o.value) {
|
|
6459
|
+
const y = await f.validate();
|
|
6460
|
+
if (y.length > 0 && (v = !1, u.push({
|
|
6461
|
+
id: f.id,
|
|
6462
6462
|
errorMessages: y
|
|
6463
|
-
})), !
|
|
6463
|
+
})), !v && e.fastFail) break;
|
|
6464
6464
|
}
|
|
6465
6465
|
return r.value = u, l.value = !1, {
|
|
6466
|
-
valid:
|
|
6466
|
+
valid: v,
|
|
6467
6467
|
errors: r.value
|
|
6468
6468
|
};
|
|
6469
6469
|
}
|
|
@@ -6474,42 +6474,42 @@ function zc(e) {
|
|
|
6474
6474
|
o.value.forEach((u) => u.resetValidation());
|
|
6475
6475
|
}
|
|
6476
6476
|
return U(o, () => {
|
|
6477
|
-
let u = 0,
|
|
6478
|
-
const
|
|
6477
|
+
let u = 0, v = 0;
|
|
6478
|
+
const f = [];
|
|
6479
6479
|
for (const y of o.value)
|
|
6480
|
-
y.isValid === !1 ? (
|
|
6480
|
+
y.isValid === !1 ? (v++, f.push({
|
|
6481
6481
|
id: y.id,
|
|
6482
6482
|
errorMessages: y.errorMessages
|
|
6483
6483
|
})) : y.isValid === !0 && u++;
|
|
6484
|
-
r.value =
|
|
6484
|
+
r.value = f, t.value = v > 0 ? !1 : u === o.value.length ? !0 : null;
|
|
6485
6485
|
}, {
|
|
6486
6486
|
deep: !0,
|
|
6487
6487
|
flush: "post"
|
|
6488
6488
|
}), Ce(Kr, {
|
|
6489
6489
|
register: (u) => {
|
|
6490
6490
|
let {
|
|
6491
|
-
id:
|
|
6492
|
-
vm:
|
|
6491
|
+
id: v,
|
|
6492
|
+
vm: f,
|
|
6493
6493
|
validate: y,
|
|
6494
6494
|
reset: g,
|
|
6495
6495
|
resetValidation: h
|
|
6496
6496
|
} = u;
|
|
6497
|
-
o.value.some((m) => m.id ===
|
|
6498
|
-
id:
|
|
6497
|
+
o.value.some((m) => m.id === v) && ft(`Duplicate input name "${v}"`), o.value.push({
|
|
6498
|
+
id: v,
|
|
6499
6499
|
validate: y,
|
|
6500
6500
|
reset: g,
|
|
6501
6501
|
resetValidation: h,
|
|
6502
|
-
vm: Ji(
|
|
6502
|
+
vm: Ji(f),
|
|
6503
6503
|
isValid: null,
|
|
6504
6504
|
errorMessages: []
|
|
6505
6505
|
});
|
|
6506
6506
|
},
|
|
6507
6507
|
unregister: (u) => {
|
|
6508
|
-
o.value = o.value.filter((
|
|
6508
|
+
o.value = o.value.filter((v) => v.id !== u);
|
|
6509
6509
|
},
|
|
6510
|
-
update: (u,
|
|
6510
|
+
update: (u, v, f) => {
|
|
6511
6511
|
const y = o.value.find((g) => g.id === u);
|
|
6512
|
-
y && (y.isValid =
|
|
6512
|
+
y && (y.isValid = v, y.errorMessages = f);
|
|
6513
6513
|
},
|
|
6514
6514
|
isDisabled: n,
|
|
6515
6515
|
isReadonly: a,
|
|
@@ -6579,8 +6579,8 @@ function qc(e) {
|
|
|
6579
6579
|
lazy: x.has("lazy"),
|
|
6580
6580
|
eager: x.has("eager")
|
|
6581
6581
|
};
|
|
6582
|
-
}),
|
|
6583
|
-
[`${t}--error`]:
|
|
6582
|
+
}), v = p(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? i.value ? r.value.length || u.value.lazy ? null : !0 : !r.value.length : !0), f = te(!1), y = p(() => ({
|
|
6583
|
+
[`${t}--error`]: v.value === !1,
|
|
6584
6584
|
[`${t}--dirty`]: s.value,
|
|
6585
6585
|
[`${t}--disabled`]: o.isDisabled.value,
|
|
6586
6586
|
[`${t}--readonly`]: o.isReadonly.value
|
|
@@ -6596,8 +6596,8 @@ function qc(e) {
|
|
|
6596
6596
|
}), qe(() => {
|
|
6597
6597
|
o.unregister?.(h.value);
|
|
6598
6598
|
}), yt(async () => {
|
|
6599
|
-
u.value.lazy || await C(!u.value.eager), o.update?.(h.value,
|
|
6600
|
-
}), Dt(() => u.value.input || u.value.invalidInput &&
|
|
6599
|
+
u.value.lazy || await C(!u.value.eager), o.update?.(h.value, v.value, c.value);
|
|
6600
|
+
}), Dt(() => u.value.input || u.value.invalidInput && v.value === !1, () => {
|
|
6601
6601
|
U(l, () => {
|
|
6602
6602
|
if (l.value != null)
|
|
6603
6603
|
C();
|
|
@@ -6611,8 +6611,8 @@ function qc(e) {
|
|
|
6611
6611
|
U(() => e.focused, (k) => {
|
|
6612
6612
|
k || C();
|
|
6613
6613
|
});
|
|
6614
|
-
}), U([
|
|
6615
|
-
o.update?.(h.value,
|
|
6614
|
+
}), U([v, c], () => {
|
|
6615
|
+
o.update?.(h.value, v.value, c.value);
|
|
6616
6616
|
});
|
|
6617
6617
|
async function m() {
|
|
6618
6618
|
a.value = null, await Se(), await b();
|
|
@@ -6623,7 +6623,7 @@ function qc(e) {
|
|
|
6623
6623
|
async function C() {
|
|
6624
6624
|
let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
6625
6625
|
const x = [];
|
|
6626
|
-
|
|
6626
|
+
f.value = !0;
|
|
6627
6627
|
for (const T of e.rules) {
|
|
6628
6628
|
if (x.length >= +(e.maxErrors ?? 1))
|
|
6629
6629
|
break;
|
|
@@ -6636,7 +6636,7 @@ function qc(e) {
|
|
|
6636
6636
|
x.push(V || "");
|
|
6637
6637
|
}
|
|
6638
6638
|
}
|
|
6639
|
-
return r.value = x,
|
|
6639
|
+
return r.value = x, f.value = !1, i.value = k, r.value;
|
|
6640
6640
|
}
|
|
6641
6641
|
return {
|
|
6642
6642
|
errorMessages: c,
|
|
@@ -6644,8 +6644,8 @@ function qc(e) {
|
|
|
6644
6644
|
isDisabled: o.isDisabled,
|
|
6645
6645
|
isReadonly: o.isReadonly,
|
|
6646
6646
|
isPristine: i,
|
|
6647
|
-
isValid:
|
|
6648
|
-
isValidating:
|
|
6647
|
+
isValid: v,
|
|
6648
|
+
isValidating: f,
|
|
6649
6649
|
reset: m,
|
|
6650
6650
|
resetValidation: b,
|
|
6651
6651
|
validate: C,
|
|
@@ -6704,7 +6704,7 @@ const Yr = A({
|
|
|
6704
6704
|
rtlClasses: s
|
|
6705
6705
|
} = ct(), {
|
|
6706
6706
|
InputIcon: c
|
|
6707
|
-
} = Wr(e), u = nt(),
|
|
6707
|
+
} = Wr(e), u = nt(), v = p(() => e.id || `input-${u}`), f = p(() => `${v.value}-messages`), {
|
|
6708
6708
|
errorMessages: y,
|
|
6709
6709
|
isDirty: g,
|
|
6710
6710
|
isDisabled: h,
|
|
@@ -6716,9 +6716,9 @@ const Yr = A({
|
|
|
6716
6716
|
resetValidation: T,
|
|
6717
6717
|
validate: $,
|
|
6718
6718
|
validationClasses: V
|
|
6719
|
-
} = qc(e, "v-input",
|
|
6720
|
-
id:
|
|
6721
|
-
messagesId:
|
|
6719
|
+
} = qc(e, "v-input", v), S = p(() => ({
|
|
6720
|
+
id: v,
|
|
6721
|
+
messagesId: f,
|
|
6722
6722
|
isDirty: g,
|
|
6723
6723
|
isDisabled: h,
|
|
6724
6724
|
isReadonly: m,
|
|
@@ -6754,7 +6754,7 @@ const Yr = A({
|
|
|
6754
6754
|
}, null), a.append?.(S.value)]), B && d("div", {
|
|
6755
6755
|
class: "v-input__details"
|
|
6756
6756
|
}, [d(Mc, {
|
|
6757
|
-
id:
|
|
6757
|
+
id: f.value,
|
|
6758
6758
|
active: E,
|
|
6759
6759
|
messages: P.value
|
|
6760
6760
|
}, {
|
|
@@ -6855,23 +6855,23 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6855
6855
|
} = ct(), {
|
|
6856
6856
|
displayClasses: l,
|
|
6857
6857
|
mobile: o
|
|
6858
|
-
} = _t(e), r = Qa(e, e.symbol), i = te(!1), s = te(0), c = te(0), u = te(0),
|
|
6859
|
-
resizeRef:
|
|
6858
|
+
} = _t(e), r = Qa(e, e.symbol), i = te(!1), s = te(0), c = te(0), u = te(0), v = p(() => e.direction === "horizontal"), {
|
|
6859
|
+
resizeRef: f,
|
|
6860
6860
|
contentRect: y
|
|
6861
6861
|
} = qt(), {
|
|
6862
6862
|
resizeRef: g,
|
|
6863
6863
|
contentRect: h
|
|
6864
6864
|
} = qt(), m = Ec(), b = p(() => ({
|
|
6865
|
-
container:
|
|
6865
|
+
container: f.el,
|
|
6866
6866
|
duration: 200,
|
|
6867
6867
|
easing: "easeOutQuart"
|
|
6868
6868
|
})), C = p(() => r.selected.value.length ? r.items.value.findIndex((D) => D.id === r.selected.value[0]) : -1), k = p(() => r.selected.value.length ? r.items.value.findIndex((D) => D.id === r.selected.value[r.selected.value.length - 1]) : -1);
|
|
6869
6869
|
if (ge) {
|
|
6870
6870
|
let D = -1;
|
|
6871
|
-
U(() => [r.selected.value, y.value, h.value,
|
|
6871
|
+
U(() => [r.selected.value, y.value, h.value, v.value], () => {
|
|
6872
6872
|
cancelAnimationFrame(D), D = requestAnimationFrame(() => {
|
|
6873
6873
|
if (y.value && h.value) {
|
|
6874
|
-
const N =
|
|
6874
|
+
const N = v.value ? "width" : "height";
|
|
6875
6875
|
c.value = y.value[N], u.value = h.value[N], i.value = c.value + 1 < u.value;
|
|
6876
6876
|
}
|
|
6877
6877
|
if (C.value >= 0 && g.el) {
|
|
@@ -6885,29 +6885,29 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6885
6885
|
function T(D, N) {
|
|
6886
6886
|
let K = 0;
|
|
6887
6887
|
N ? K = Gc({
|
|
6888
|
-
containerElement:
|
|
6889
|
-
isHorizontal:
|
|
6888
|
+
containerElement: f.el,
|
|
6889
|
+
isHorizontal: v.value,
|
|
6890
6890
|
selectedElement: D
|
|
6891
6891
|
}) : K = Wc({
|
|
6892
|
-
containerElement:
|
|
6893
|
-
isHorizontal:
|
|
6892
|
+
containerElement: f.el,
|
|
6893
|
+
isHorizontal: v.value,
|
|
6894
6894
|
isRtl: a.value,
|
|
6895
6895
|
selectedElement: D
|
|
6896
6896
|
}), $(K);
|
|
6897
6897
|
}
|
|
6898
6898
|
function $(D) {
|
|
6899
|
-
if (!ge || !
|
|
6900
|
-
const N = fn(
|
|
6901
|
-
if (!(ao(
|
|
6899
|
+
if (!ge || !f.el) return;
|
|
6900
|
+
const N = fn(v.value, f.el), K = Zr(v.value, a.value, f.el);
|
|
6901
|
+
if (!(ao(v.value, f.el) <= N || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
6902
6902
|
Math.abs(D - K) < 16)) {
|
|
6903
|
-
if (
|
|
6903
|
+
if (v.value && a.value && f.el) {
|
|
6904
6904
|
const {
|
|
6905
6905
|
scrollWidth: ee,
|
|
6906
6906
|
offsetWidth: se
|
|
6907
|
-
} =
|
|
6907
|
+
} = f.el;
|
|
6908
6908
|
D = ee - se - D;
|
|
6909
6909
|
}
|
|
6910
|
-
|
|
6910
|
+
v.value ? m.horizontal(D, b.value) : m(D, b.value);
|
|
6911
6911
|
}
|
|
6912
6912
|
}
|
|
6913
6913
|
function V(D) {
|
|
@@ -6915,7 +6915,7 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6915
6915
|
scrollTop: N,
|
|
6916
6916
|
scrollLeft: K
|
|
6917
6917
|
} = D.target;
|
|
6918
|
-
s.value =
|
|
6918
|
+
s.value = v.value ? K : N;
|
|
6919
6919
|
}
|
|
6920
6920
|
function S(D) {
|
|
6921
6921
|
if (x.value = !0, !(!i.value || !g.el)) {
|
|
@@ -6942,7 +6942,7 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6942
6942
|
function N(K) {
|
|
6943
6943
|
D.preventDefault(), O(K);
|
|
6944
6944
|
}
|
|
6945
|
-
|
|
6945
|
+
v.value ? D.key === "ArrowRight" ? N(a.value ? "prev" : "next") : D.key === "ArrowLeft" && N(a.value ? "next" : "prev") : D.key === "ArrowDown" ? N("next") : D.key === "ArrowUp" && N("prev"), D.key === "Home" ? N("first") : D.key === "End" && N("last");
|
|
6946
6946
|
}
|
|
6947
6947
|
function O(D) {
|
|
6948
6948
|
if (!g.el) return;
|
|
@@ -6959,13 +6959,13 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6959
6959
|
});
|
|
6960
6960
|
}
|
|
6961
6961
|
function W(D) {
|
|
6962
|
-
const N =
|
|
6962
|
+
const N = v.value && a.value ? -1 : 1, K = (D === "prev" ? -N : N) * c.value;
|
|
6963
6963
|
let Z = s.value + K;
|
|
6964
|
-
if (
|
|
6964
|
+
if (v.value && a.value && f.el) {
|
|
6965
6965
|
const {
|
|
6966
6966
|
scrollWidth: ee,
|
|
6967
6967
|
offsetWidth: se
|
|
6968
|
-
} =
|
|
6968
|
+
} = f.el;
|
|
6969
6969
|
Z += ee - se;
|
|
6970
6970
|
}
|
|
6971
6971
|
$(Z);
|
|
@@ -6997,13 +6997,13 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6997
6997
|
return !o.value && (i.value || Math.abs(s.value) > 0);
|
|
6998
6998
|
}
|
|
6999
6999
|
}), ne = p(() => Math.abs(s.value) > 1), I = p(() => {
|
|
7000
|
-
if (!
|
|
7001
|
-
const D = ao(
|
|
7000
|
+
if (!f.value) return !1;
|
|
7001
|
+
const D = ao(v.value, f.el), N = Uc(v.value, f.el);
|
|
7002
7002
|
return D - N - Math.abs(s.value) > 1;
|
|
7003
7003
|
});
|
|
7004
7004
|
return X(() => d(e.tag, {
|
|
7005
7005
|
class: ["v-slide-group", {
|
|
7006
|
-
"v-slide-group--vertical": !
|
|
7006
|
+
"v-slide-group--vertical": !v.value,
|
|
7007
7007
|
"v-slide-group--has-affixes": ie.value,
|
|
7008
7008
|
"v-slide-group--is-overflowing": i.value
|
|
7009
7009
|
}, l.value, e.class],
|
|
@@ -7024,7 +7024,7 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
7024
7024
|
}, null)]
|
|
7025
7025
|
})]), d("div", {
|
|
7026
7026
|
key: "container",
|
|
7027
|
-
ref:
|
|
7027
|
+
ref: f,
|
|
7028
7028
|
class: "v-slide-group__container",
|
|
7029
7029
|
onScroll: V
|
|
7030
7030
|
}, [d("div", {
|
|
@@ -7199,9 +7199,9 @@ const Yc = A({
|
|
|
7199
7199
|
} = pn(e), {
|
|
7200
7200
|
densityClasses: u
|
|
7201
7201
|
} = at(e), {
|
|
7202
|
-
elevationClasses:
|
|
7202
|
+
elevationClasses: v
|
|
7203
7203
|
} = Yt(e), {
|
|
7204
|
-
roundedClasses:
|
|
7204
|
+
roundedClasses: f
|
|
7205
7205
|
} = lt(e), {
|
|
7206
7206
|
sizeClasses: y
|
|
7207
7207
|
} = bn(e), {
|
|
@@ -7228,7 +7228,7 @@ const Yc = A({
|
|
|
7228
7228
|
"v-chip--filter": F,
|
|
7229
7229
|
"v-chip--pill": e.pill,
|
|
7230
7230
|
[`${e.activeClass}`]: e.activeClass && b.isActive?.value
|
|
7231
|
-
}, g.value, r.value, O ? i.value : void 0, u.value,
|
|
7231
|
+
}, g.value, r.value, O ? i.value : void 0, u.value, v.value, f.value, y.value, c.value, m?.selectedClass.value, e.class],
|
|
7232
7232
|
style: [O ? s.value : void 0, e.style],
|
|
7233
7233
|
disabled: e.disabled || void 0,
|
|
7234
7234
|
draggable: e.draggable,
|
|
@@ -7455,9 +7455,9 @@ const Yc = A({
|
|
|
7455
7455
|
focus: c,
|
|
7456
7456
|
blur: u
|
|
7457
7457
|
} = Ur(e), {
|
|
7458
|
-
InputIcon:
|
|
7458
|
+
InputIcon: v
|
|
7459
7459
|
} = Wr(e), {
|
|
7460
|
-
roundedClasses:
|
|
7460
|
+
roundedClasses: f
|
|
7461
7461
|
} = lt(e), {
|
|
7462
7462
|
rtlClasses: y
|
|
7463
7463
|
} = ct(), g = p(() => e.dirty || e.active), h = p(() => !e.singleLine && !!(e.label || l.label)), m = nt(), b = p(() => e.id || `input-${m}`), C = p(() => `${b.value}-messages`), k = _(), x = _(), T = _(), $ = p(() => ["plain", "underlined"].includes(e.variant)), {
|
|
@@ -7527,7 +7527,7 @@ const Yc = A({
|
|
|
7527
7527
|
"v-field--single-line": e.singleLine,
|
|
7528
7528
|
"v-field--no-label": !ne(),
|
|
7529
7529
|
[`v-field--variant-${e.variant}`]: !0
|
|
7530
|
-
}, o.value, V.value, i.value, r.value,
|
|
7530
|
+
}, o.value, V.value, i.value, r.value, f.value, y.value, e.class],
|
|
7531
7531
|
style: [S.value, e.style],
|
|
7532
7532
|
onClick: E
|
|
7533
7533
|
}, n), [d("div", {
|
|
@@ -7541,7 +7541,7 @@ const Yc = A({
|
|
|
7541
7541
|
}), W && d("div", {
|
|
7542
7542
|
key: "prepend",
|
|
7543
7543
|
class: "v-field__prepend-inner"
|
|
7544
|
-
}, [e.prependInnerIcon && d(
|
|
7544
|
+
}, [e.prependInnerIcon && d(v, {
|
|
7545
7545
|
key: "prepend-icon",
|
|
7546
7546
|
name: "prependInner"
|
|
7547
7547
|
}, null), l["prepend-inner"]?.(F.value)]), d("div", {
|
|
@@ -7594,7 +7594,7 @@ const Yc = A({
|
|
|
7594
7594
|
onBlur: u,
|
|
7595
7595
|
onClick: e["onClick:clear"]
|
|
7596
7596
|
}
|
|
7597
|
-
}) : d(
|
|
7597
|
+
}) : d(v, {
|
|
7598
7598
|
name: "clear",
|
|
7599
7599
|
onKeydown: B,
|
|
7600
7600
|
onFocus: c,
|
|
@@ -7604,7 +7604,7 @@ const Yc = A({
|
|
|
7604
7604
|
}), ie && d("div", {
|
|
7605
7605
|
key: "append",
|
|
7606
7606
|
class: "v-field__append-inner"
|
|
7607
|
-
}, [l["append-inner"]?.(F.value), e.appendInnerIcon && d(
|
|
7607
|
+
}, [l["append-inner"]?.(F.value), e.appendInnerIcon && d(v, {
|
|
7608
7608
|
key: "append-icon",
|
|
7609
7609
|
name: "appendInner"
|
|
7610
7610
|
}, null)]), d("div", {
|
|
@@ -7682,8 +7682,8 @@ const nd = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
7682
7682
|
if (n.maxlength) return n.maxlength;
|
|
7683
7683
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
7684
7684
|
return e.counter;
|
|
7685
|
-
}),
|
|
7686
|
-
function
|
|
7685
|
+
}), v = p(() => ["plain", "underlined"].includes(e.variant));
|
|
7686
|
+
function f($, V) {
|
|
7687
7687
|
!e.autofocus || !$ || V[0].target?.focus?.();
|
|
7688
7688
|
}
|
|
7689
7689
|
const y = _(), g = _(), h = _(), m = p(() => nd.includes(e.type) || e.persistentPlaceholder || r.value || e.active);
|
|
@@ -7722,11 +7722,11 @@ const nd = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
7722
7722
|
class: ["v-text-field", {
|
|
7723
7723
|
"v-text-field--prefixed": e.prefix,
|
|
7724
7724
|
"v-text-field--suffixed": e.suffix,
|
|
7725
|
-
"v-input--plain-underlined":
|
|
7725
|
+
"v-input--plain-underlined": v.value
|
|
7726
7726
|
}, e.class],
|
|
7727
7727
|
style: e.style
|
|
7728
7728
|
}, S, F, {
|
|
7729
|
-
centerAffix: !
|
|
7729
|
+
centerAffix: !v.value,
|
|
7730
7730
|
focused: r.value
|
|
7731
7731
|
}), {
|
|
7732
7732
|
...l,
|
|
@@ -7776,7 +7776,7 @@ const nd = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
7776
7776
|
onFocus: b,
|
|
7777
7777
|
onBlur: s
|
|
7778
7778
|
}, N, P), null), [[Bt("intersect"), {
|
|
7779
|
-
handler:
|
|
7779
|
+
handler: f
|
|
7780
7780
|
}, null, {
|
|
7781
7781
|
once: !0
|
|
7782
7782
|
}]]);
|
|
@@ -7857,13 +7857,13 @@ function sd(e, t) {
|
|
|
7857
7857
|
) || 1), r = te(0), i = te(0), s = _(), c = _();
|
|
7858
7858
|
let u = 0;
|
|
7859
7859
|
const {
|
|
7860
|
-
resizeRef:
|
|
7861
|
-
contentRect:
|
|
7860
|
+
resizeRef: v,
|
|
7861
|
+
contentRect: f
|
|
7862
7862
|
} = qt();
|
|
7863
7863
|
Qe(() => {
|
|
7864
|
-
|
|
7864
|
+
v.value = s.value;
|
|
7865
7865
|
});
|
|
7866
|
-
const y = p(() => s.value === document.documentElement ? n.height.value :
|
|
7866
|
+
const y = p(() => s.value === document.documentElement ? n.height.value : f.value?.height || parseInt(e.height) || 0), g = p(() => !!(s.value && c.value && y.value && a.value));
|
|
7867
7867
|
let h = Array.from({
|
|
7868
7868
|
length: t.value.length
|
|
7869
7869
|
}), m = Array.from({
|
|
@@ -7998,8 +7998,8 @@ const cd = A({
|
|
|
7998
7998
|
handleScroll: s,
|
|
7999
7999
|
handleScrollend: c,
|
|
8000
8000
|
handleItemResize: u,
|
|
8001
|
-
scrollToIndex:
|
|
8002
|
-
paddingTop:
|
|
8001
|
+
scrollToIndex: v,
|
|
8002
|
+
paddingTop: f,
|
|
8003
8003
|
paddingBottom: y,
|
|
8004
8004
|
computedItems: g
|
|
8005
8005
|
} = sd(e, M(e, "items"));
|
|
@@ -8031,7 +8031,7 @@ const cd = A({
|
|
|
8031
8031
|
ref: i,
|
|
8032
8032
|
class: "v-virtual-scroll__spacer",
|
|
8033
8033
|
style: {
|
|
8034
|
-
paddingTop: G(
|
|
8034
|
+
paddingTop: G(f.value)
|
|
8035
8035
|
}
|
|
8036
8036
|
}, null), h, d("div", {
|
|
8037
8037
|
class: "v-virtual-scroll__spacer",
|
|
@@ -8048,13 +8048,13 @@ const cd = A({
|
|
|
8048
8048
|
ref: i,
|
|
8049
8049
|
class: "v-virtual-scroll__container",
|
|
8050
8050
|
style: {
|
|
8051
|
-
paddingTop: G(
|
|
8051
|
+
paddingTop: G(f.value),
|
|
8052
8052
|
paddingBottom: G(y.value)
|
|
8053
8053
|
}
|
|
8054
8054
|
}, [h])]);
|
|
8055
8055
|
}), {
|
|
8056
8056
|
calculateVisibleItems: o,
|
|
8057
|
-
scrollToIndex:
|
|
8057
|
+
scrollToIndex: v
|
|
8058
8058
|
};
|
|
8059
8059
|
}
|
|
8060
8060
|
});
|
|
@@ -8088,16 +8088,16 @@ function fd(e, t) {
|
|
|
8088
8088
|
const c = s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
|
|
8089
8089
|
if (i.key === "PageDown" || i.key === "Home") {
|
|
8090
8090
|
const u = s.getBoundingClientRect().top;
|
|
8091
|
-
for (const
|
|
8092
|
-
if (
|
|
8093
|
-
|
|
8091
|
+
for (const v of c)
|
|
8092
|
+
if (v.getBoundingClientRect().top >= u) {
|
|
8093
|
+
v.focus();
|
|
8094
8094
|
break;
|
|
8095
8095
|
}
|
|
8096
8096
|
} else {
|
|
8097
8097
|
const u = s.getBoundingClientRect().bottom;
|
|
8098
|
-
for (const
|
|
8099
|
-
if (
|
|
8100
|
-
|
|
8098
|
+
for (const v of [...c].reverse())
|
|
8099
|
+
if (v.getBoundingClientRect().bottom <= u) {
|
|
8100
|
+
v.focus();
|
|
8101
8101
|
break;
|
|
8102
8102
|
}
|
|
8103
8103
|
}
|
|
@@ -8175,13 +8175,13 @@ const vd = A({
|
|
|
8175
8175
|
}), {
|
|
8176
8176
|
items: c,
|
|
8177
8177
|
transformIn: u,
|
|
8178
|
-
transformOut:
|
|
8179
|
-
} = wc(e),
|
|
8180
|
-
const D =
|
|
8178
|
+
transformOut: v
|
|
8179
|
+
} = wc(e), f = ue(e, "modelValue", [], (I) => u(I === null ? [null] : Ee(I)), (I) => {
|
|
8180
|
+
const D = v(I);
|
|
8181
8181
|
return e.multiple ? D : D[0] ?? null;
|
|
8182
|
-
}), y = p(() => typeof e.counterValue == "function" ? e.counterValue(
|
|
8182
|
+
}), y = p(() => typeof e.counterValue == "function" ? e.counterValue(f.value) : typeof e.counterValue == "number" ? e.counterValue : f.value.length), g = Xr(e), h = p(() => f.value.map((I) => I.value)), m = te(!1), b = p(() => s.value ? e.closeText : e.openText);
|
|
8183
8183
|
let C = "", k;
|
|
8184
|
-
const x = p(() => e.hideSelected ? c.value.filter((I) => !
|
|
8184
|
+
const x = p(() => e.hideSelected ? c.value.filter((I) => !f.value.some((D) => e.valueComparator(D, I))) : c.value), T = p(() => e.hideNoData && !x.value.length || g.isReadonly.value || g.isDisabled.value), $ = p(() => ({
|
|
8185
8185
|
...e.menuProps,
|
|
8186
8186
|
activatorProps: {
|
|
8187
8187
|
...e.menuProps?.activatorProps || {},
|
|
@@ -8207,7 +8207,7 @@ const vd = A({
|
|
|
8207
8207
|
N - k > D && (C = ""), C += I.key.toLowerCase(), k = N;
|
|
8208
8208
|
const K = c.value.find((Z) => Z.title.toLowerCase().startsWith(C));
|
|
8209
8209
|
if (K !== void 0) {
|
|
8210
|
-
|
|
8210
|
+
f.value = [K];
|
|
8211
8211
|
const Z = x.value.indexOf(K);
|
|
8212
8212
|
ge && window.requestAnimationFrame(() => {
|
|
8213
8213
|
Z >= 0 && r.value?.scrollToIndex(Z);
|
|
@@ -8218,14 +8218,14 @@ const vd = A({
|
|
|
8218
8218
|
let D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
8219
8219
|
if (!I.props.disabled)
|
|
8220
8220
|
if (e.multiple) {
|
|
8221
|
-
const N =
|
|
8221
|
+
const N = f.value.findIndex((Z) => e.valueComparator(Z.value, I.value)), K = D ?? !~N;
|
|
8222
8222
|
if (~N) {
|
|
8223
|
-
const Z = K ? [...
|
|
8224
|
-
Z.splice(N, 1),
|
|
8225
|
-
} else K && (
|
|
8223
|
+
const Z = K ? [...f.value, I] : [...f.value];
|
|
8224
|
+
Z.splice(N, 1), f.value = Z;
|
|
8225
|
+
} else K && (f.value = [...f.value, I]);
|
|
8226
8226
|
} else {
|
|
8227
8227
|
const N = D !== !1;
|
|
8228
|
-
|
|
8228
|
+
f.value = N ? [I] : [], Se(() => {
|
|
8229
8229
|
s.value = !1;
|
|
8230
8230
|
});
|
|
8231
8231
|
}
|
|
@@ -8243,15 +8243,15 @@ const vd = A({
|
|
|
8243
8243
|
m.value = !0;
|
|
8244
8244
|
}
|
|
8245
8245
|
function ne(I) {
|
|
8246
|
-
if (I == null)
|
|
8246
|
+
if (I == null) f.value = [];
|
|
8247
8247
|
else if (Bn(l.value, ":autofill") || Bn(l.value, ":-webkit-autofill")) {
|
|
8248
8248
|
const D = c.value.find((N) => N.title === I);
|
|
8249
8249
|
D && B(D);
|
|
8250
8250
|
} else l.value && (l.value.value = "");
|
|
8251
8251
|
}
|
|
8252
8252
|
return U(s, () => {
|
|
8253
|
-
if (!e.hideSelected && s.value &&
|
|
8254
|
-
const I = x.value.findIndex((D) =>
|
|
8253
|
+
if (!e.hideSelected && s.value && f.value.length) {
|
|
8254
|
+
const I = x.value.findIndex((D) => f.value.some((N) => e.valueComparator(N.value, D.value)));
|
|
8255
8255
|
ge && window.requestAnimationFrame(() => {
|
|
8256
8256
|
I >= 0 && r.value?.scrollToIndex(I);
|
|
8257
8257
|
});
|
|
@@ -8259,22 +8259,22 @@ const vd = A({
|
|
|
8259
8259
|
}), U(() => e.items, (I, D) => {
|
|
8260
8260
|
s.value || m.value && !D.length && I.length && (s.value = !0);
|
|
8261
8261
|
}), X(() => {
|
|
8262
|
-
const I = !!(e.chips || n.chip), D = !!(!e.hideNoData || x.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]), N =
|
|
8262
|
+
const I = !!(e.chips || n.chip), D = !!(!e.hideNoData || x.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]), N = f.value.length > 0, K = vn.filterProps(e), Z = N || !m.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
|
|
8263
8263
|
return d(vn, z({
|
|
8264
8264
|
ref: l
|
|
8265
8265
|
}, K, {
|
|
8266
|
-
modelValue:
|
|
8266
|
+
modelValue: f.value.map((ee) => ee.props.value).join(", "),
|
|
8267
8267
|
"onUpdate:modelValue": ne,
|
|
8268
8268
|
focused: m.value,
|
|
8269
8269
|
"onUpdate:focused": (ee) => m.value = ee,
|
|
8270
|
-
validationValue:
|
|
8270
|
+
validationValue: f.externalValue,
|
|
8271
8271
|
counterValue: y.value,
|
|
8272
8272
|
dirty: N,
|
|
8273
8273
|
class: ["v-select", {
|
|
8274
8274
|
"v-select--active-menu": s.value,
|
|
8275
8275
|
"v-select--chips": !!e.chips,
|
|
8276
8276
|
[`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
|
|
8277
|
-
"v-select--selected":
|
|
8277
|
+
"v-select--selected": f.value.length,
|
|
8278
8278
|
"v-select--selection-slot": !!n.selection
|
|
8279
8279
|
}, e.class],
|
|
8280
8280
|
style: e.style,
|
|
@@ -8358,7 +8358,7 @@ const vd = A({
|
|
|
8358
8358
|
}
|
|
8359
8359
|
}), n["append-item"]?.()]
|
|
8360
8360
|
})]
|
|
8361
|
-
}),
|
|
8361
|
+
}), f.value.map((ee, se) => {
|
|
8362
8362
|
function q($e) {
|
|
8363
8363
|
$e.stopPropagation(), $e.preventDefault(), B(ee, !1);
|
|
8364
8364
|
}
|
|
@@ -8403,7 +8403,7 @@ const vd = A({
|
|
|
8403
8403
|
disabled: ee.props.disabled
|
|
8404
8404
|
}, ce), null) : Ge ?? d("span", {
|
|
8405
8405
|
class: "v-select__selection-text"
|
|
8406
|
-
}, [ee.title, e.multiple && se <
|
|
8406
|
+
}, [ee.title, e.multiple && se < f.value.length - 1 && d("span", {
|
|
8407
8407
|
class: "v-select__selection-comma"
|
|
8408
8408
|
}, [Ve(",")])])]);
|
|
8409
8409
|
})]),
|
|
@@ -8586,27 +8586,27 @@ function Sd(e, t, n) {
|
|
|
8586
8586
|
const a = [], l = n?.default ?? pd, o = n?.filterKeys ? Ee(n.filterKeys) : !1, r = Object.keys(n?.customKeyFilter ?? {}).length;
|
|
8587
8587
|
if (!e?.length) return a;
|
|
8588
8588
|
e: for (let i = 0; i < e.length; i++) {
|
|
8589
|
-
const [s, c = s] = Ee(e[i]), u = {},
|
|
8590
|
-
let
|
|
8589
|
+
const [s, c = s] = Ee(e[i]), u = {}, v = {};
|
|
8590
|
+
let f = -1;
|
|
8591
8591
|
if ((t || r > 0) && !n?.noFilter) {
|
|
8592
8592
|
if (typeof s == "object") {
|
|
8593
8593
|
const h = o || Object.keys(c);
|
|
8594
8594
|
for (const m of h) {
|
|
8595
8595
|
const b = _e(c, m), C = n?.customKeyFilter?.[m];
|
|
8596
|
-
if (
|
|
8597
|
-
C ? u[m] =
|
|
8596
|
+
if (f = C ? C(b, t, s) : l(b, t, s), f !== -1 && f !== !1)
|
|
8597
|
+
C ? u[m] = f : v[m] = f;
|
|
8598
8598
|
else if (n?.filterMode === "every")
|
|
8599
8599
|
continue e;
|
|
8600
8600
|
}
|
|
8601
8601
|
} else
|
|
8602
|
-
|
|
8603
|
-
const y = Object.keys(
|
|
8602
|
+
f = l(s, t, s), f !== -1 && f !== !1 && (v.title = f);
|
|
8603
|
+
const y = Object.keys(v).length, g = Object.keys(u).length;
|
|
8604
8604
|
if (!y && !g || n?.filterMode === "union" && g !== r && !y || n?.filterMode === "intersection" && (g !== r || !y)) continue;
|
|
8605
8605
|
}
|
|
8606
8606
|
a.push({
|
|
8607
8607
|
index: i,
|
|
8608
8608
|
matches: {
|
|
8609
|
-
...
|
|
8609
|
+
...v,
|
|
8610
8610
|
...u
|
|
8611
8611
|
}
|
|
8612
8612
|
});
|
|
@@ -8625,15 +8625,15 @@ function Cd(e, t, n, a) {
|
|
|
8625
8625
|
filterKeys: e.filterKeys,
|
|
8626
8626
|
filterMode: e.filterMode,
|
|
8627
8627
|
noFilter: e.noFilter
|
|
8628
|
-
}),
|
|
8628
|
+
}), v = re(t), f = [], y = /* @__PURE__ */ new Map();
|
|
8629
8629
|
u.forEach((g) => {
|
|
8630
8630
|
let {
|
|
8631
8631
|
index: h,
|
|
8632
8632
|
matches: m
|
|
8633
8633
|
} = g;
|
|
8634
|
-
const b =
|
|
8635
|
-
|
|
8636
|
-
}), l.value =
|
|
8634
|
+
const b = v[h];
|
|
8635
|
+
f.push(b), y.set(b.value, m);
|
|
8636
|
+
}), l.value = f, o.value = y;
|
|
8637
8637
|
});
|
|
8638
8638
|
function i(s) {
|
|
8639
8639
|
return o.value.get(s.value);
|
|
@@ -8676,15 +8676,15 @@ const wd = A({
|
|
|
8676
8676
|
scopeId: o
|
|
8677
8677
|
} = Yn(), r = _();
|
|
8678
8678
|
function i(u) {
|
|
8679
|
-
const
|
|
8680
|
-
if (
|
|
8679
|
+
const v = u.relatedTarget, f = u.target;
|
|
8680
|
+
if (v !== f && r.value?.contentEl && // We're the topmost dialog
|
|
8681
8681
|
r.value?.globalTop && // It isn't the document or the dialog body
|
|
8682
|
-
![document, r.value.contentEl].includes(
|
|
8683
|
-
!r.value.contentEl.contains(
|
|
8682
|
+
![document, r.value.contentEl].includes(f) && // It isn't inside the dialog body
|
|
8683
|
+
!r.value.contentEl.contains(f)) {
|
|
8684
8684
|
const y = rn(r.value.contentEl);
|
|
8685
8685
|
if (!y.length) return;
|
|
8686
8686
|
const g = y[0], h = y[y.length - 1];
|
|
8687
|
-
|
|
8687
|
+
v === g ? h.focus() : g.focus();
|
|
8688
8688
|
}
|
|
8689
8689
|
}
|
|
8690
8690
|
qe(() => {
|
|
@@ -8707,9 +8707,9 @@ const wd = A({
|
|
|
8707
8707
|
preventScroll: !0
|
|
8708
8708
|
}));
|
|
8709
8709
|
}), X(() => {
|
|
8710
|
-
const u = Wt.filterProps(e),
|
|
8710
|
+
const u = Wt.filterProps(e), v = z({
|
|
8711
8711
|
"aria-haspopup": "dialog"
|
|
8712
|
-
}, e.activatorProps),
|
|
8712
|
+
}, e.activatorProps), f = z({
|
|
8713
8713
|
tabindex: -1
|
|
8714
8714
|
}, e.contentProps);
|
|
8715
8715
|
return d(Wt, z({
|
|
@@ -8723,8 +8723,8 @@ const wd = A({
|
|
|
8723
8723
|
modelValue: l.value,
|
|
8724
8724
|
"onUpdate:modelValue": (y) => l.value = y,
|
|
8725
8725
|
"aria-modal": "true",
|
|
8726
|
-
activatorProps:
|
|
8727
|
-
contentProps:
|
|
8726
|
+
activatorProps: v,
|
|
8727
|
+
contentProps: f,
|
|
8728
8728
|
height: e.fullscreen ? void 0 : e.height,
|
|
8729
8729
|
width: e.fullscreen ? void 0 : e.width,
|
|
8730
8730
|
maxHeight: e.fullscreen ? void 0 : e.maxHeight,
|
|
@@ -8940,9 +8940,9 @@ const wd = A({
|
|
|
8940
8940
|
} = at(e), {
|
|
8941
8941
|
dimensionStyles: u
|
|
8942
8942
|
} = St(e), {
|
|
8943
|
-
elevationClasses:
|
|
8943
|
+
elevationClasses: v
|
|
8944
8944
|
} = Yt(e), {
|
|
8945
|
-
loaderClasses:
|
|
8945
|
+
loaderClasses: f
|
|
8946
8946
|
} = Wn(e), {
|
|
8947
8947
|
locationStyles: y
|
|
8948
8948
|
} = el(e), {
|
|
@@ -8958,7 +8958,7 @@ const wd = A({
|
|
|
8958
8958
|
"v-card--flat": e.flat,
|
|
8959
8959
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
8960
8960
|
"v-card--link": C.value
|
|
8961
|
-
}, l.value, o.value, r.value, c.value,
|
|
8961
|
+
}, l.value, o.value, r.value, c.value, v.value, f.value, g.value, h.value, s.value, e.class],
|
|
8962
8962
|
style: [i.value, u.value, y.value, e.style],
|
|
8963
8963
|
onClick: C.value && m.navigate,
|
|
8964
8964
|
tabindex: e.disabled ? -1 : void 0
|
|
@@ -9067,17 +9067,17 @@ function $d(e) {
|
|
|
9067
9067
|
return l.value.has(u.id);
|
|
9068
9068
|
}
|
|
9069
9069
|
function i(u) {
|
|
9070
|
-
const
|
|
9071
|
-
r(u) ?
|
|
9070
|
+
const v = new Set(l.value);
|
|
9071
|
+
r(u) ? v.delete(u.id) : v.add(u.id), l.value = v;
|
|
9072
9072
|
}
|
|
9073
9073
|
function s(u) {
|
|
9074
|
-
function f
|
|
9074
|
+
function v(f) {
|
|
9075
9075
|
const y = [];
|
|
9076
|
-
for (const g of
|
|
9077
|
-
"type" in g && g.type === "group" ? y.push(...
|
|
9076
|
+
for (const g of f.items)
|
|
9077
|
+
"type" in g && g.type === "group" ? y.push(...v(g)) : y.push(g);
|
|
9078
9078
|
return y;
|
|
9079
9079
|
}
|
|
9080
|
-
return
|
|
9080
|
+
return v({
|
|
9081
9081
|
items: u
|
|
9082
9082
|
});
|
|
9083
9083
|
}
|
|
@@ -9185,8 +9185,8 @@ function Md(e) {
|
|
|
9185
9185
|
U([t, r], () => {
|
|
9186
9186
|
t.value > r.value && (t.value = r.value);
|
|
9187
9187
|
});
|
|
9188
|
-
function i(
|
|
9189
|
-
n.value =
|
|
9188
|
+
function i(f) {
|
|
9189
|
+
n.value = f, t.value = 1;
|
|
9190
9190
|
}
|
|
9191
9191
|
function s() {
|
|
9192
9192
|
t.value = Ue(t.value + 1, 1, r.value);
|
|
@@ -9194,10 +9194,10 @@ function Md(e) {
|
|
|
9194
9194
|
function c() {
|
|
9195
9195
|
t.value = Ue(t.value - 1, 1, r.value);
|
|
9196
9196
|
}
|
|
9197
|
-
function u(
|
|
9198
|
-
t.value = Ue(
|
|
9197
|
+
function u(f) {
|
|
9198
|
+
t.value = Ue(f, 1, r.value);
|
|
9199
9199
|
}
|
|
9200
|
-
const
|
|
9200
|
+
const v = {
|
|
9201
9201
|
page: t,
|
|
9202
9202
|
itemsPerPage: n,
|
|
9203
9203
|
startIndex: l,
|
|
@@ -9209,7 +9209,7 @@ function Md(e) {
|
|
|
9209
9209
|
setPage: u,
|
|
9210
9210
|
setItemsPerPage: i
|
|
9211
9211
|
};
|
|
9212
|
-
return Ce(vi,
|
|
9212
|
+
return Ce(vi, v), v;
|
|
9213
9213
|
}
|
|
9214
9214
|
function Hd() {
|
|
9215
9215
|
const e = de(vi);
|
|
@@ -9351,10 +9351,10 @@ function Wd(e, t) {
|
|
|
9351
9351
|
});
|
|
9352
9352
|
l.value = k;
|
|
9353
9353
|
}
|
|
9354
|
-
function
|
|
9354
|
+
function v(b) {
|
|
9355
9355
|
u([b], !s([b]));
|
|
9356
9356
|
}
|
|
9357
|
-
function
|
|
9357
|
+
function f(b) {
|
|
9358
9358
|
const C = i.value.selectAll({
|
|
9359
9359
|
value: b,
|
|
9360
9360
|
allItems: o.value,
|
|
@@ -9370,9 +9370,9 @@ function Wd(e, t) {
|
|
|
9370
9370
|
});
|
|
9371
9371
|
return !!b.length && s(b);
|
|
9372
9372
|
}), h = p(() => i.value.showSelectAll), m = {
|
|
9373
|
-
toggleSelect:
|
|
9373
|
+
toggleSelect: v,
|
|
9374
9374
|
select: u,
|
|
9375
|
-
selectAll:
|
|
9375
|
+
selectAll: f,
|
|
9376
9376
|
isSelected: s,
|
|
9377
9377
|
isSomeSelected: c,
|
|
9378
9378
|
someSelected: y,
|
|
@@ -9411,11 +9411,11 @@ function Kd(e) {
|
|
|
9411
9411
|
page: l
|
|
9412
9412
|
} = e, o = (s) => {
|
|
9413
9413
|
if (s.key == null) return;
|
|
9414
|
-
let c = t.value.map((
|
|
9415
|
-
...
|
|
9414
|
+
let c = t.value.map((v) => ({
|
|
9415
|
+
...v
|
|
9416
9416
|
})) ?? [];
|
|
9417
|
-
const u = c.find((
|
|
9418
|
-
u ? u.order === "desc" ? n.value ? u.order = "asc" : c = c.filter((
|
|
9417
|
+
const u = c.find((v) => v.key === s.key);
|
|
9418
|
+
u ? u.order === "desc" ? n.value ? u.order = "asc" : c = c.filter((v) => v.key !== s.key) : u.order = "desc" : a.value ? c = [...c, {
|
|
9419
9419
|
key: s.key,
|
|
9420
9420
|
order: "asc"
|
|
9421
9421
|
}] : c = [{
|
|
@@ -9459,24 +9459,24 @@ function Yd(e, t, n, a) {
|
|
|
9459
9459
|
return e.map((r) => [r, a?.transform ? a.transform(r) : r]).sort((r, i) => {
|
|
9460
9460
|
for (let s = 0; s < t.length; s++) {
|
|
9461
9461
|
let c = !1;
|
|
9462
|
-
const u = t[s].key,
|
|
9463
|
-
if (
|
|
9464
|
-
let
|
|
9465
|
-
if (
|
|
9462
|
+
const u = t[s].key, v = t[s].order ?? "asc";
|
|
9463
|
+
if (v === !1) continue;
|
|
9464
|
+
let f = on(r[1], u), y = on(i[1], u), g = r[0].raw, h = i[0].raw;
|
|
9465
|
+
if (v === "desc" && ([f, y] = [y, f], [g, h] = [h, g]), a?.sortRawFunctions?.[u]) {
|
|
9466
9466
|
const m = a.sortRawFunctions[u](g, h);
|
|
9467
9467
|
if (m == null) continue;
|
|
9468
9468
|
if (c = !0, m) return m;
|
|
9469
9469
|
}
|
|
9470
9470
|
if (a?.sortFunctions?.[u]) {
|
|
9471
|
-
const m = a.sortFunctions[u](
|
|
9471
|
+
const m = a.sortFunctions[u](f, y);
|
|
9472
9472
|
if (m == null) continue;
|
|
9473
9473
|
if (c = !0, m) return m;
|
|
9474
9474
|
}
|
|
9475
9475
|
if (!c) {
|
|
9476
|
-
if (
|
|
9477
|
-
return
|
|
9478
|
-
if ([
|
|
9479
|
-
return kn(
|
|
9476
|
+
if (f instanceof Date && y instanceof Date)
|
|
9477
|
+
return f.getTime() - y.getTime();
|
|
9478
|
+
if ([f, y] = [f, y].map((m) => m != null ? m.toString().toLocaleLowerCase() : m), f !== y)
|
|
9479
|
+
return kn(f) && kn(y) ? 0 : kn(f) ? -1 : kn(y) ? 1 : !isNaN(f) && !isNaN(y) ? Number(f) - Number(y) : l.compare(f, y);
|
|
9480
9480
|
}
|
|
9481
9481
|
}
|
|
9482
9482
|
return 0;
|
|
@@ -9563,21 +9563,21 @@ const bi = A({
|
|
|
9563
9563
|
itemsLength: s,
|
|
9564
9564
|
itemsPerPage: c,
|
|
9565
9565
|
setItemsPerPage: u
|
|
9566
|
-
} = Hd(),
|
|
9567
|
-
value:
|
|
9568
|
-
title:
|
|
9566
|
+
} = Hd(), v = p(() => e.itemsPerPageOptions.map((f) => typeof f == "number" ? {
|
|
9567
|
+
value: f,
|
|
9568
|
+
title: f === -1 ? a("$vuetify.dataFooter.itemsPerPageAll") : String(f)
|
|
9569
9569
|
} : {
|
|
9570
|
-
...
|
|
9571
|
-
title: isNaN(Number(
|
|
9570
|
+
...f,
|
|
9571
|
+
title: isNaN(Number(f.title)) ? a(f.title) : f.title
|
|
9572
9572
|
}));
|
|
9573
9573
|
return X(() => {
|
|
9574
|
-
const
|
|
9574
|
+
const f = Ba.filterProps(e);
|
|
9575
9575
|
return d("div", {
|
|
9576
9576
|
class: "v-data-table-footer"
|
|
9577
9577
|
}, [n.prepend?.(), d("div", {
|
|
9578
9578
|
class: "v-data-table-footer__items-per-page"
|
|
9579
9579
|
}, [d("span", null, [a(e.itemsPerPageText)]), d(ta, {
|
|
9580
|
-
items:
|
|
9580
|
+
items: v.value,
|
|
9581
9581
|
modelValue: c.value,
|
|
9582
9582
|
"onUpdate:modelValue": (y) => u(Number(y)),
|
|
9583
9583
|
density: "compact",
|
|
@@ -9600,7 +9600,7 @@ const bi = A({
|
|
|
9600
9600
|
"show-first-last-page": !0,
|
|
9601
9601
|
"total-visible": e.showCurrentPage ? 1 : 0,
|
|
9602
9602
|
variant: "plain"
|
|
9603
|
-
},
|
|
9603
|
+
}, f), null)])]);
|
|
9604
9604
|
}), {};
|
|
9605
9605
|
}
|
|
9606
9606
|
}), On = $s({
|
|
@@ -9750,15 +9750,15 @@ function nf(e, t) {
|
|
|
9750
9750
|
const {
|
|
9751
9751
|
element: c,
|
|
9752
9752
|
priority: u
|
|
9753
|
-
} = l.dequeue(),
|
|
9753
|
+
} = l.dequeue(), v = t - a - ul(c);
|
|
9754
9754
|
if (i.push({
|
|
9755
9755
|
...c,
|
|
9756
|
-
rowspan:
|
|
9756
|
+
rowspan: v ?? 1,
|
|
9757
9757
|
colspan: c.children ? Fa(c).length : 1
|
|
9758
9758
|
}), c.children)
|
|
9759
|
-
for (const
|
|
9759
|
+
for (const f of c.children) {
|
|
9760
9760
|
const y = u % 1 + s / Math.pow(10, a + 2);
|
|
9761
|
-
l.enqueue(
|
|
9761
|
+
l.enqueue(f, a + v + y);
|
|
9762
9762
|
}
|
|
9763
9763
|
s += 1, r -= 1;
|
|
9764
9764
|
}
|
|
@@ -9801,9 +9801,9 @@ function af(e, t) {
|
|
|
9801
9801
|
}), t?.showExpand?.value && !u.has("data-table-expand") && c.push({
|
|
9802
9802
|
key: "data-table-expand"
|
|
9803
9803
|
});
|
|
9804
|
-
const
|
|
9805
|
-
tf(
|
|
9806
|
-
const
|
|
9804
|
+
const v = ki(c);
|
|
9805
|
+
tf(v);
|
|
9806
|
+
const f = Math.max(...v.map((h) => ul(h))) + 1, y = nf(v, f);
|
|
9807
9807
|
n.value = y.headers, a.value = y.columns;
|
|
9808
9808
|
const g = y.headers.flat(1);
|
|
9809
9809
|
for (const h of g)
|
|
@@ -9860,8 +9860,8 @@ const xi = A({
|
|
|
9860
9860
|
selectAll: c,
|
|
9861
9861
|
showSelectAll: u
|
|
9862
9862
|
} = na(), {
|
|
9863
|
-
columns:
|
|
9864
|
-
headers:
|
|
9863
|
+
columns: v,
|
|
9864
|
+
headers: f
|
|
9865
9865
|
} = aa(), {
|
|
9866
9866
|
loaderClasses: y
|
|
9867
9867
|
} = Wn(e);
|
|
@@ -9884,8 +9884,8 @@ const xi = A({
|
|
|
9884
9884
|
displayClasses: C,
|
|
9885
9885
|
mobile: k
|
|
9886
9886
|
} = _t(e), x = p(() => ({
|
|
9887
|
-
headers:
|
|
9888
|
-
columns:
|
|
9887
|
+
headers: f.value,
|
|
9888
|
+
columns: v.value,
|
|
9889
9889
|
toggleSort: l,
|
|
9890
9890
|
isSorted: r,
|
|
9891
9891
|
sortBy: o.value,
|
|
@@ -9953,14 +9953,14 @@ const xi = A({
|
|
|
9953
9953
|
}
|
|
9954
9954
|
});
|
|
9955
9955
|
}, V = () => {
|
|
9956
|
-
const S = z(e.headerProps ?? {} ?? {}), P = p(() =>
|
|
9957
|
-
if (
|
|
9956
|
+
const S = z(e.headerProps ?? {} ?? {}), P = p(() => v.value.filter((F) => F?.sortable && !e.disableSort)), R = p(() => {
|
|
9957
|
+
if (v.value.find((E) => E.key === "data-table-select") != null)
|
|
9958
9958
|
return s.value ? "$checkboxOn" : i.value ? "$checkboxIndeterminate" : "$checkboxOff";
|
|
9959
9959
|
});
|
|
9960
9960
|
return d(On, z({
|
|
9961
9961
|
tag: "th",
|
|
9962
9962
|
class: [...T.value],
|
|
9963
|
-
colspan:
|
|
9963
|
+
colspan: f.value.length + 1
|
|
9964
9964
|
}, S), {
|
|
9965
9965
|
default: () => [d("div", {
|
|
9966
9966
|
class: "v-data-table-header__content"
|
|
@@ -9993,14 +9993,14 @@ const xi = A({
|
|
|
9993
9993
|
})])]
|
|
9994
9994
|
});
|
|
9995
9995
|
};
|
|
9996
|
-
X(() => k.value ? d("tr", null, [d(V, null, null)]) : d(oe, null, [n.headers ? n.headers(x.value) :
|
|
9996
|
+
X(() => k.value ? d("tr", null, [d(V, null, null)]) : d(oe, null, [n.headers ? n.headers(x.value) : f.value.map((S, P) => d("tr", null, [S.map((R, F) => d($, {
|
|
9997
9997
|
column: R,
|
|
9998
9998
|
x: F,
|
|
9999
9999
|
y: P
|
|
10000
10000
|
}, null))])), e.loading && d("tr", {
|
|
10001
10001
|
class: "v-data-table-progress"
|
|
10002
10002
|
}, [d("th", {
|
|
10003
|
-
colspan:
|
|
10003
|
+
colspan: v.value.length
|
|
10004
10004
|
}, [d(tl, {
|
|
10005
10005
|
name: "v-data-table-progress",
|
|
10006
10006
|
absolute: !0,
|
|
@@ -10039,14 +10039,14 @@ const xi = A({
|
|
|
10039
10039
|
style: {
|
|
10040
10040
|
"--v-data-table-group-header-row-depth": e.item.depth
|
|
10041
10041
|
}
|
|
10042
|
-
}, [c.value.map((
|
|
10043
|
-
if (
|
|
10044
|
-
const
|
|
10042
|
+
}, [c.value.map((v) => {
|
|
10043
|
+
if (v.key === "data-table-group") {
|
|
10044
|
+
const f = a(e.item) ? "$expand" : "$next", y = () => l(e.item);
|
|
10045
10045
|
return n["data-table-group"]?.({
|
|
10046
10046
|
item: e.item,
|
|
10047
10047
|
count: u.value.length,
|
|
10048
10048
|
props: {
|
|
10049
|
-
icon:
|
|
10049
|
+
icon: f,
|
|
10050
10050
|
onClick: y
|
|
10051
10051
|
}
|
|
10052
10052
|
}) ?? d(On, {
|
|
@@ -10055,21 +10055,21 @@ const xi = A({
|
|
|
10055
10055
|
default: () => [d(Ie, {
|
|
10056
10056
|
size: "small",
|
|
10057
10057
|
variant: "text",
|
|
10058
|
-
icon:
|
|
10058
|
+
icon: f,
|
|
10059
10059
|
onClick: y
|
|
10060
10060
|
}, null), d("span", null, [e.item.value]), d("span", null, [Ve("("), u.value.length, Ve(")")])]
|
|
10061
10061
|
});
|
|
10062
10062
|
}
|
|
10063
|
-
if (
|
|
10064
|
-
const
|
|
10063
|
+
if (v.key === "data-table-select") {
|
|
10064
|
+
const f = r(u.value), y = i(u.value) && !f, g = (h) => s(u.value, h);
|
|
10065
10065
|
return n["data-table-select"]?.({
|
|
10066
10066
|
props: {
|
|
10067
|
-
modelValue:
|
|
10067
|
+
modelValue: f,
|
|
10068
10068
|
indeterminate: y,
|
|
10069
10069
|
"onUpdate:modelValue": g
|
|
10070
10070
|
}
|
|
10071
10071
|
}) ?? d("td", null, [d(ea, {
|
|
10072
|
-
modelValue:
|
|
10072
|
+
modelValue: f,
|
|
10073
10073
|
indeterminate: y,
|
|
10074
10074
|
"onUpdate:modelValue": g
|
|
10075
10075
|
}, null)]);
|
|
@@ -10103,9 +10103,9 @@ const xi = A({
|
|
|
10103
10103
|
selectAll: c
|
|
10104
10104
|
} = na(), {
|
|
10105
10105
|
isExpanded: u,
|
|
10106
|
-
toggleExpand:
|
|
10106
|
+
toggleExpand: v
|
|
10107
10107
|
} = si(), {
|
|
10108
|
-
toggleSort:
|
|
10108
|
+
toggleSort: f,
|
|
10109
10109
|
sortBy: y,
|
|
10110
10110
|
isSorted: g
|
|
10111
10111
|
} = pi(), {
|
|
@@ -10128,12 +10128,12 @@ const xi = A({
|
|
|
10128
10128
|
isSelected: o,
|
|
10129
10129
|
toggleSelect: r,
|
|
10130
10130
|
isExpanded: u,
|
|
10131
|
-
toggleExpand:
|
|
10131
|
+
toggleExpand: v
|
|
10132
10132
|
}, $ = {
|
|
10133
10133
|
column: m,
|
|
10134
10134
|
selectAll: c,
|
|
10135
10135
|
isSorted: g,
|
|
10136
|
-
toggleSort:
|
|
10136
|
+
toggleSort: f,
|
|
10137
10137
|
sortBy: y.value,
|
|
10138
10138
|
someSelected: i.value,
|
|
10139
10139
|
allSelected: s.value,
|
|
@@ -10177,7 +10177,7 @@ const xi = A({
|
|
|
10177
10177
|
icon: u(C) ? "$collapse" : "$expand",
|
|
10178
10178
|
size: "small",
|
|
10179
10179
|
variant: "text",
|
|
10180
|
-
onClick: Sa(() =>
|
|
10180
|
+
onClick: Sa(() => v(C), ["stop"])
|
|
10181
10181
|
}, null);
|
|
10182
10182
|
const P = xe(T.value);
|
|
10183
10183
|
return l.value ? d(oe, null, [d("div", {
|
|
@@ -10227,9 +10227,9 @@ const xi = A({
|
|
|
10227
10227
|
toggleSelect: c
|
|
10228
10228
|
} = na(), {
|
|
10229
10229
|
toggleGroup: u,
|
|
10230
|
-
isGroupOpen:
|
|
10230
|
+
isGroupOpen: v
|
|
10231
10231
|
} = ci(), {
|
|
10232
|
-
t:
|
|
10232
|
+
t: f
|
|
10233
10233
|
} = Ct(), {
|
|
10234
10234
|
mobile: y
|
|
10235
10235
|
} = _t(e);
|
|
@@ -10238,12 +10238,12 @@ const xi = A({
|
|
|
10238
10238
|
key: "loading"
|
|
10239
10239
|
}, [d("td", {
|
|
10240
10240
|
colspan: l.value.length
|
|
10241
|
-
}, [a.loading?.() ??
|
|
10241
|
+
}, [a.loading?.() ?? f(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? d("tr", {
|
|
10242
10242
|
class: "v-data-table-rows-no-data",
|
|
10243
10243
|
key: "no-data"
|
|
10244
10244
|
}, [d("td", {
|
|
10245
10245
|
colspan: l.value.length
|
|
10246
|
-
}, [a["no-data"]?.() ??
|
|
10246
|
+
}, [a["no-data"]?.() ?? f(e.noDataText)])]) : d(oe, null, [e.items.map((g, h) => {
|
|
10247
10247
|
if (g.type === "group") {
|
|
10248
10248
|
const C = {
|
|
10249
10249
|
index: h,
|
|
@@ -10254,7 +10254,7 @@ const xi = A({
|
|
|
10254
10254
|
isSelected: s,
|
|
10255
10255
|
toggleSelect: c,
|
|
10256
10256
|
toggleGroup: u,
|
|
10257
|
-
isGroupOpen:
|
|
10257
|
+
isGroupOpen: v
|
|
10258
10258
|
};
|
|
10259
10259
|
return a["group-header"] ? a["group-header"](C) : d(of, z({
|
|
10260
10260
|
key: `group-header_${g.id}`,
|
|
@@ -10420,8 +10420,8 @@ const vf = A({
|
|
|
10420
10420
|
} = Rd(e), {
|
|
10421
10421
|
disableSort: u
|
|
10422
10422
|
} = _a(e), {
|
|
10423
|
-
columns:
|
|
10424
|
-
headers:
|
|
10423
|
+
columns: v,
|
|
10424
|
+
headers: f,
|
|
10425
10425
|
sortFunctions: y,
|
|
10426
10426
|
sortRawFunctions: g,
|
|
10427
10427
|
filterFunctions: h
|
|
@@ -10431,7 +10431,7 @@ const vf = A({
|
|
|
10431
10431
|
showExpand: M(e, "showExpand")
|
|
10432
10432
|
}), {
|
|
10433
10433
|
items: m
|
|
10434
|
-
} = ff(e,
|
|
10434
|
+
} = ff(e, v), b = M(e, "search"), {
|
|
10435
10435
|
filteredItems: C
|
|
10436
10436
|
} = Cd(e, m, b, {
|
|
10437
10437
|
transform: (ce) => ce.columns,
|
|
@@ -10528,8 +10528,8 @@ const vf = A({
|
|
|
10528
10528
|
items: ie.value.map((ce) => ce.raw),
|
|
10529
10529
|
internalItems: ie.value,
|
|
10530
10530
|
groupedItems: J.value,
|
|
10531
|
-
columns:
|
|
10532
|
-
headers:
|
|
10531
|
+
columns: v.value,
|
|
10532
|
+
headers: f.value
|
|
10533
10533
|
}));
|
|
10534
10534
|
return X(() => {
|
|
10535
10535
|
const ce = oo.filterProps(e), Xe = ro.filterProps(e), Ge = io.filterProps(e), $e = so.filterProps(e);
|
|
@@ -10573,11 +10573,11 @@ const vf = A({
|
|
|
10573
10573
|
}
|
|
10574
10574
|
function i(s) {
|
|
10575
10575
|
const c = s, u = l.validate();
|
|
10576
|
-
c.then = u.then.bind(u), c.catch = u.catch.bind(u), c.finally = u.finally.bind(u), a("submit", c), c.defaultPrevented || u.then((
|
|
10576
|
+
c.then = u.then.bind(u), c.catch = u.catch.bind(u), c.finally = u.finally.bind(u), a("submit", c), c.defaultPrevented || u.then((v) => {
|
|
10577
10577
|
let {
|
|
10578
|
-
valid:
|
|
10579
|
-
} =
|
|
10580
|
-
|
|
10578
|
+
valid: f
|
|
10579
|
+
} = v;
|
|
10580
|
+
f && o.value?.submit();
|
|
10581
10581
|
}), c.preventDefault();
|
|
10582
10582
|
}
|
|
10583
10583
|
return X(() => d("form", {
|
|
@@ -10634,7 +10634,11 @@ const vf = A({
|
|
|
10634
10634
|
search: {},
|
|
10635
10635
|
searchModifiers: {}
|
|
10636
10636
|
}),
|
|
10637
|
-
emits: /* @__PURE__ */ pe([
|
|
10637
|
+
emits: /* @__PURE__ */ pe([
|
|
10638
|
+
"createItem",
|
|
10639
|
+
"update:search",
|
|
10640
|
+
"showAdjustColumns"
|
|
10641
|
+
], ["update:search"]),
|
|
10638
10642
|
setup(e, { emit: t }) {
|
|
10639
10643
|
const n = Ot(), l = e.hideSearch || !1, o = t, r = Le(e, "search"), i = Vt([
|
|
10640
10644
|
{
|
|
@@ -10667,7 +10671,7 @@ const vf = A({
|
|
|
10667
10671
|
color: "grey-600"
|
|
10668
10672
|
}, {
|
|
10669
10673
|
default: L(() => [
|
|
10670
|
-
Ve("ri-search-line")
|
|
10674
|
+
Ve(" ri-search-line ")
|
|
10671
10675
|
]),
|
|
10672
10676
|
_: 1
|
|
10673
10677
|
}),
|
|
@@ -10687,7 +10691,7 @@ const vf = A({
|
|
|
10687
10691
|
onClick: c[1] || (c[1] = (u) => r.value = "")
|
|
10688
10692
|
}, {
|
|
10689
10693
|
default: L(() => [
|
|
10690
|
-
Ve(" ri-close-line")
|
|
10694
|
+
Ve(" ri-close-line ")
|
|
10691
10695
|
]),
|
|
10692
10696
|
_: 1
|
|
10693
10697
|
}, 512), [
|
|
@@ -10726,7 +10730,7 @@ const vf = A({
|
|
|
10726
10730
|
default: L(() => [
|
|
10727
10731
|
d(le, null, {
|
|
10728
10732
|
default: L(() => [
|
|
10729
|
-
Ve("
|
|
10733
|
+
Ve("ri-add-line")
|
|
10730
10734
|
]),
|
|
10731
10735
|
_: 1
|
|
10732
10736
|
}),
|
|
@@ -10745,7 +10749,7 @@ const vf = A({
|
|
|
10745
10749
|
Je(s.$slots, "custom-header", {}, void 0, !0)
|
|
10746
10750
|
], 64));
|
|
10747
10751
|
}
|
|
10748
|
-
}), xf = /* @__PURE__ */ Jt(kf, [["__scopeId", "data-v-
|
|
10752
|
+
}), xf = /* @__PURE__ */ Jt(kf, [["__scopeId", "data-v-e6fb5b32"]]);
|
|
10749
10753
|
function Ne(e) {
|
|
10750
10754
|
e.preventDefault();
|
|
10751
10755
|
}
|
|
@@ -10852,15 +10856,15 @@ function Vf(e = {}) {
|
|
|
10852
10856
|
return;
|
|
10853
10857
|
const c = i.node.el.getBoundingClientRect(), u = w.affectedNodes.findIndex(
|
|
10854
10858
|
(g) => g.data.value === i.node.data.value
|
|
10855
|
-
),
|
|
10859
|
+
), f = w.draggedNode.data.index >= w.targetIndex;
|
|
10856
10860
|
let y;
|
|
10857
|
-
if (
|
|
10861
|
+
if (f ? y = w.affectedNodes[u + 1] ? w.affectedNodes[u + 1] : w.affectedNodes[u - 1] : y = w.affectedNodes[u - 1] ? w.affectedNodes[u - 1] : w.affectedNodes[u + 1], y) {
|
|
10858
10862
|
const g = Math.abs(
|
|
10859
10863
|
c.x - y.el.getBoundingClientRect().x
|
|
10860
10864
|
), h = Math.abs(
|
|
10861
10865
|
c.y - y.el.getBoundingClientRect().y
|
|
10862
10866
|
);
|
|
10863
|
-
g > h &&
|
|
10867
|
+
g > h && f ? Ye(i.node.el, l, s) : g > h && !f && Ye(i.node.el, a, s);
|
|
10864
10868
|
} else
|
|
10865
10869
|
switch (w.incomingDirection) {
|
|
10866
10870
|
case "below":
|
|
@@ -11210,18 +11214,18 @@ function Of({
|
|
|
11210
11214
|
state: r
|
|
11211
11215
|
}) {
|
|
11212
11216
|
la(n.el);
|
|
11213
|
-
const i = a.map((
|
|
11217
|
+
const i = a.map((f) => f.data.value), s = [
|
|
11214
11218
|
...Ut(e.el, e.data).filter(
|
|
11215
|
-
(
|
|
11219
|
+
(f) => !i.some((y) => mn(f, y))
|
|
11216
11220
|
)
|
|
11217
11221
|
], c = Ut(t.el, t.data), u = n.el === t.el && t.data.config.sortable === !1;
|
|
11218
|
-
let
|
|
11219
|
-
o.length ? (u ?
|
|
11222
|
+
let v;
|
|
11223
|
+
o.length ? (u ? v = l : t.data.config.sortable === !1 ? v = t.data.enabledNodes.length : v = o[0].data.index, c.splice(v, 0, ...i)) : (v = u ? l : t.data.enabledNodes.length, c.splice(v, 0, ...i)), $a(e.el, e.data, s), $a(t.el, t.data, c), t.data.config.onTransfer && t.data.config.onTransfer({
|
|
11220
11224
|
sourceParent: e,
|
|
11221
11225
|
targetParent: t,
|
|
11222
11226
|
initialParent: n,
|
|
11223
11227
|
draggedNodes: a,
|
|
11224
|
-
targetIndex:
|
|
11228
|
+
targetIndex: v,
|
|
11225
11229
|
state: r,
|
|
11226
11230
|
targetNodes: o
|
|
11227
11231
|
}), e.data.config.onTransfer && e.data.config.onTransfer({
|
|
@@ -11229,7 +11233,7 @@ function Of({
|
|
|
11229
11233
|
targetParent: t,
|
|
11230
11234
|
initialParent: n,
|
|
11231
11235
|
draggedNodes: a,
|
|
11232
|
-
targetIndex:
|
|
11236
|
+
targetIndex: v,
|
|
11233
11237
|
state: r,
|
|
11234
11238
|
targetNodes: o || []
|
|
11235
11239
|
});
|
|
@@ -11403,10 +11407,10 @@ function la(e, t) {
|
|
|
11403
11407
|
w
|
|
11404
11408
|
), Fe(w) && mn(w.draggedNode.data.value, u.value)) {
|
|
11405
11409
|
w.draggedNode.data = u, w.draggedNode.el = s;
|
|
11406
|
-
const
|
|
11407
|
-
(
|
|
11410
|
+
const v = w.draggedNodes.find(
|
|
11411
|
+
(f) => f.data.value === u.value
|
|
11408
11412
|
);
|
|
11409
|
-
|
|
11413
|
+
v && (v.el = s);
|
|
11410
11414
|
}
|
|
11411
11415
|
r.push({
|
|
11412
11416
|
el: s,
|
|
@@ -11758,7 +11762,7 @@ function uv(e, t, n, a, l, o) {
|
|
|
11758
11762
|
c.forEach((b) => {
|
|
11759
11763
|
h.style[b] = m[b];
|
|
11760
11764
|
});
|
|
11761
|
-
},
|
|
11765
|
+
}, v = (g, h = {}) => {
|
|
11762
11766
|
Object.assign(g.style, {
|
|
11763
11767
|
position: "absolute",
|
|
11764
11768
|
zIndex: "9999",
|
|
@@ -11773,9 +11777,9 @@ function uv(e, t, n, a, l, o) {
|
|
|
11773
11777
|
});
|
|
11774
11778
|
};
|
|
11775
11779
|
if (r.synthDragImage)
|
|
11776
|
-
s = r.synthDragImage(e, t, n, l), i = s.dragImage, i.setAttribute("popover", "manual"),
|
|
11780
|
+
s = r.synthDragImage(e, t, n, l), i = s.dragImage, i.setAttribute("popover", "manual"), v(i);
|
|
11777
11781
|
else if (!r.multiDrag || l.length === 1)
|
|
11778
|
-
i = e.el.cloneNode(!0), u(e.el, i), i.setAttribute("popover", "manual"),
|
|
11782
|
+
i = e.el.cloneNode(!0), u(e.el, i), i.setAttribute("popover", "manual"), v(i);
|
|
11779
11783
|
else {
|
|
11780
11784
|
const g = document.createElement("div");
|
|
11781
11785
|
g.setAttribute("popover", "manual"), l.forEach((h) => {
|
|
@@ -11784,7 +11788,7 @@ function uv(e, t, n, a, l, o) {
|
|
|
11784
11788
|
}), g.style.display = "flex", g.style.flexDirection = "column", g.style.padding = "0", g.style.margin = "0", g.style.position = "absolute", g.style.zIndex = "9999", g.style.pointerEvents = "none", i = g;
|
|
11785
11789
|
}
|
|
11786
11790
|
i.id = "dnd-dragged-node-clone", t.el.appendChild(i), i.showPopover();
|
|
11787
|
-
const
|
|
11791
|
+
const f = {
|
|
11788
11792
|
clonedDraggedEls: [],
|
|
11789
11793
|
clonedDraggedNode: i,
|
|
11790
11794
|
synthDragScrolling: !1,
|
|
@@ -11801,7 +11805,7 @@ function uv(e, t, n, a, l, o) {
|
|
|
11801
11805
|
s?.offsetX,
|
|
11802
11806
|
s?.offsetY
|
|
11803
11807
|
),
|
|
11804
|
-
...
|
|
11808
|
+
...f
|
|
11805
11809
|
});
|
|
11806
11810
|
}
|
|
11807
11811
|
function cv(e, t, n) {
|
|
@@ -12047,25 +12051,25 @@ function vt(e, t) {
|
|
|
12047
12051
|
}
|
|
12048
12052
|
}
|
|
12049
12053
|
function fo(e, t, n, a, l) {
|
|
12050
|
-
const r = l.axis === "x", i = e === document.scrollingElement, s = r ? "scrollLeft" : "scrollTop", c = r ? "clientWidth" : "clientHeight", u = r ? "offsetWidth" : "offsetHeight",
|
|
12054
|
+
const r = l.axis === "x", i = e === document.scrollingElement, s = r ? "scrollLeft" : "scrollTop", c = r ? "clientWidth" : "clientHeight", u = r ? "offsetWidth" : "offsetHeight", v = r ? "scrollWidth" : "scrollHeight", f = r ? t.clientX : t.clientY, y = r ? a.left : a.top, g = r ? n.overflowX : n.overflowY;
|
|
12051
12055
|
if (i) {
|
|
12052
|
-
const h = e[s], m = e[c], b = h > 0, C = h + m < (r ? l.state.rootScrollWidth || 0 : e[
|
|
12056
|
+
const h = e[s], m = e[c], b = h > 0, C = h + m < (r ? l.state.rootScrollWidth || 0 : e[v]);
|
|
12053
12057
|
return r ? {
|
|
12054
|
-
left: b &&
|
|
12055
|
-
right: C &&
|
|
12058
|
+
left: b && f < m * 0.075,
|
|
12059
|
+
right: C && f > m * (1 - 0.075)
|
|
12056
12060
|
} : {
|
|
12057
|
-
up: b &&
|
|
12058
|
-
down: C &&
|
|
12061
|
+
up: b && f < m * 0.075,
|
|
12062
|
+
down: C && f > m * (1 - 0.075)
|
|
12059
12063
|
};
|
|
12060
12064
|
}
|
|
12061
12065
|
if ((g === "auto" || g === "scroll") && e !== document.body && e !== document.documentElement) {
|
|
12062
|
-
const h = e[
|
|
12066
|
+
const h = e[v], m = e[u], b = e[s], C = b > 0, k = b < h - m;
|
|
12063
12067
|
return r ? {
|
|
12064
|
-
left: C &&
|
|
12065
|
-
right: k &&
|
|
12068
|
+
left: C && f < y + m * 0.075,
|
|
12069
|
+
right: k && f > y + m * (1 - 0.075)
|
|
12066
12070
|
} : {
|
|
12067
|
-
up: C &&
|
|
12068
|
-
down: k &&
|
|
12071
|
+
up: C && f < y + m * 0.075,
|
|
12072
|
+
down: k && f > y + m * (1 - 0.075)
|
|
12069
12073
|
};
|
|
12070
12074
|
}
|
|
12071
12075
|
return r ? { left: !1, right: !1 } : { up: !1, down: !1 };
|
|
@@ -12081,7 +12085,7 @@ function bv(e, t, n, a) {
|
|
|
12081
12085
|
n[s] !== void 0 && (cancelAnimationFrame(n[s]), n[s] = void 0);
|
|
12082
12086
|
return;
|
|
12083
12087
|
}
|
|
12084
|
-
const u = l ? "scrollLeft" : "scrollTop",
|
|
12088
|
+
const u = l ? "scrollLeft" : "scrollTop", v = l ? "clientWidth" : "clientHeight", f = l ? "scrollWidth" : "scrollHeight", y = e[u], g = e[v], h = e[f];
|
|
12085
12089
|
if (!(o > 0 ? y + g < h : y > 0)) {
|
|
12086
12090
|
n[s] = void 0, n[i] = void 0;
|
|
12087
12091
|
return;
|
|
@@ -12103,11 +12107,11 @@ function ra(e, t, n) {
|
|
|
12103
12107
|
const r = (s, c, u) => {
|
|
12104
12108
|
bv(u, t, n, { axis: s, direction: c }), o = !0;
|
|
12105
12109
|
}, i = (s) => {
|
|
12106
|
-
const c = window.getComputedStyle(s), u = s.getBoundingClientRect(),
|
|
12110
|
+
const c = window.getComputedStyle(s), u = s.getBoundingClientRect(), v = fo(s, t, c, u, {
|
|
12107
12111
|
axis: "x",
|
|
12108
12112
|
state: n
|
|
12109
|
-
}),
|
|
12110
|
-
(
|
|
12113
|
+
}), f = fo(s, t, c, u, { axis: "y" });
|
|
12114
|
+
(v.left || v.right) && (n.lastScrollContainerX = s, r("x", v.right ? "positive" : "negative", s)), (f.up || f.down) && (n.lastScrollContainerY = s, r("y", f.down ? "positive" : "negative", s));
|
|
12111
12115
|
};
|
|
12112
12116
|
if (n.lastScrollContainerX && vo(n.lastScrollContainerX, a, l) && i(n.lastScrollContainerX), !o && n.lastScrollContainerY && vo(n.lastScrollContainerY, a, l) && i(n.lastScrollContainerY), !o) {
|
|
12113
12117
|
let s = document.elementFromPoint(a, l);
|
|
@@ -12227,36 +12231,38 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12227
12231
|
}),
|
|
12228
12232
|
emits: /* @__PURE__ */ pe(["update:showAdjustColumns"], ["update:sortedHeaders"]),
|
|
12229
12233
|
setup(e, { emit: t }) {
|
|
12230
|
-
const n = Ot(), a = t, l = e, o = Le(e, "sortedHeaders"), r = _(), i = (
|
|
12231
|
-
a("update:showAdjustColumns",
|
|
12232
|
-
};
|
|
12233
|
-
U(
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
|
|
12248
|
-
|
|
12249
|
-
|
|
12234
|
+
const n = Ot(), a = t, l = e, o = Le(e, "sortedHeaders"), r = _(), i = (u) => {
|
|
12235
|
+
a("update:showAdjustColumns", u);
|
|
12236
|
+
}, s = _(o.value);
|
|
12237
|
+
U(
|
|
12238
|
+
() => l.showAdjustColumns,
|
|
12239
|
+
(u) => {
|
|
12240
|
+
u && setTimeout(() => {
|
|
12241
|
+
xv({
|
|
12242
|
+
parent: r,
|
|
12243
|
+
values: s,
|
|
12244
|
+
draggable: (v) => v.classList.contains("kanban-card"),
|
|
12245
|
+
plugins: [Vf()],
|
|
12246
|
+
handleEnd: (v) => {
|
|
12247
|
+
Ni(v), c(v);
|
|
12248
|
+
}
|
|
12249
|
+
});
|
|
12250
|
+
}, 100);
|
|
12251
|
+
}
|
|
12252
|
+
);
|
|
12253
|
+
const c = (u) => {
|
|
12254
|
+
const v = o.value.find(
|
|
12255
|
+
(f) => f.sequence === u.initialIndex
|
|
12250
12256
|
);
|
|
12251
|
-
if (
|
|
12257
|
+
if (u.initialIndex < u.targetIndex)
|
|
12252
12258
|
for (const f of o.value)
|
|
12253
|
-
f.sequence >
|
|
12259
|
+
f.sequence > u.initialIndex && f.sequence <= u.targetIndex && f.sequence--;
|
|
12254
12260
|
else
|
|
12255
12261
|
for (const f of o.value)
|
|
12256
|
-
f.sequence <
|
|
12257
|
-
|
|
12262
|
+
f.sequence < u.initialIndex && f.sequence >= u.targetIndex && f.sequence++;
|
|
12263
|
+
v && (v.sequence = u.targetIndex);
|
|
12258
12264
|
};
|
|
12259
|
-
return (
|
|
12265
|
+
return (u, v) => (H(), Y(oi, {
|
|
12260
12266
|
"model-value": l.showAdjustColumns,
|
|
12261
12267
|
"onUpdate:modelValue": i,
|
|
12262
12268
|
width: "500"
|
|
@@ -12273,7 +12279,7 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12273
12279
|
ref: r,
|
|
12274
12280
|
class: "kanban-board-drop-zone mb-4 rounded d-flex flex-column gap-4"
|
|
12275
12281
|
}, [
|
|
12276
|
-
(H(!0), he(oe, null, Ft(
|
|
12282
|
+
(H(!0), he(oe, null, Ft(s.value, (f) => (H(), he(oe, {
|
|
12277
12283
|
key: f.sequence
|
|
12278
12284
|
}, [
|
|
12279
12285
|
f ? (H(), Y(gt, {
|
|
@@ -12297,7 +12303,7 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12297
12303
|
Ve(" " + xe(f.title), 1)
|
|
12298
12304
|
]),
|
|
12299
12305
|
d(le, {
|
|
12300
|
-
onClick: (
|
|
12306
|
+
onClick: (y) => f.isVisible = !f.isVisible,
|
|
12301
12307
|
class: "drag-handler",
|
|
12302
12308
|
size: "18",
|
|
12303
12309
|
icon: f.isVisible ? "ri-eye-fill" : "ri-eye-off-fill"
|
|
@@ -12322,7 +12328,7 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12322
12328
|
_: 1
|
|
12323
12329
|
}, 8, ["model-value"]));
|
|
12324
12330
|
}
|
|
12325
|
-
}), Tv = /* @__PURE__ */ Jt(Av, [["__scopeId", "data-v-
|
|
12331
|
+
}), Tv = /* @__PURE__ */ Jt(Av, [["__scopeId", "data-v-922cacda"]]);
|
|
12326
12332
|
function Ev({
|
|
12327
12333
|
tableRef: e,
|
|
12328
12334
|
props: t,
|
|
@@ -12331,7 +12337,7 @@ function Ev({
|
|
|
12331
12337
|
hysteresis: l = 8
|
|
12332
12338
|
}) {
|
|
12333
12339
|
const o = _(void 0), r = _(!0), i = _(!1), s = _(null), c = _(null), u = _(null);
|
|
12334
|
-
let
|
|
12340
|
+
let v = null, f = null, y = null;
|
|
12335
12341
|
const g = () => {
|
|
12336
12342
|
s.value = e.value?.$el ?? e.value ?? null, c.value = s.value?.querySelector(".v-table__wrapper") ?? null, u.value = c.value?.querySelector(".v-table__wrapper tbody") ?? c.value?.querySelector(".v-table__wrapper table") ?? s.value?.querySelector("tbody") ?? null;
|
|
12337
12343
|
}, h = () => u.value?.getBoundingClientRect().height ?? null, m = () => window.innerHeight * (a / 100), b = (x) => {
|
|
@@ -12355,9 +12361,9 @@ function Ev({
|
|
|
12355
12361
|
await Se(), g();
|
|
12356
12362
|
const x = c.value;
|
|
12357
12363
|
if (!x) return;
|
|
12358
|
-
|
|
12364
|
+
v = new ResizeObserver(() => k()), v.observe(x);
|
|
12359
12365
|
const T = u.value;
|
|
12360
|
-
T && (
|
|
12366
|
+
T && (f = new MutationObserver(() => k()), f.observe(T, { childList: !0, subtree: !0 })), window.addEventListener("resize", k, { passive: !0 }), U(
|
|
12361
12367
|
[
|
|
12362
12368
|
() => t.items.length,
|
|
12363
12369
|
() => n.value.pageSize,
|
|
@@ -12373,7 +12379,7 @@ function Ev({
|
|
|
12373
12379
|
{ deep: !0, flush: "post" }
|
|
12374
12380
|
), k();
|
|
12375
12381
|
}), qe(() => {
|
|
12376
|
-
|
|
12382
|
+
v?.disconnect(), f?.disconnect(), y != null && cancelAnimationFrame(y), window.removeEventListener("resize", k), v = f = null, y = null;
|
|
12377
12383
|
}), { tableHeight: o, tableHideOverflow: r };
|
|
12378
12384
|
}
|
|
12379
12385
|
const Bv = /* @__PURE__ */ ve({
|
|
@@ -12404,9 +12410,9 @@ const Bv = /* @__PURE__ */ ve({
|
|
|
12404
12410
|
}, i = (c) => {
|
|
12405
12411
|
if (l.value[c] = !1, a.value[c] = o.value, (a.value[c] === "" || a.value[c] == null) && delete a.value[c], n.filterFn) {
|
|
12406
12412
|
const u = Object.keys(a.value).map(
|
|
12407
|
-
(
|
|
12408
|
-
field:
|
|
12409
|
-
value: a.value[
|
|
12413
|
+
(v) => ({
|
|
12414
|
+
field: v,
|
|
12415
|
+
value: a.value[v]
|
|
12410
12416
|
})
|
|
12411
12417
|
);
|
|
12412
12418
|
n.filterFn(u);
|
|
@@ -12425,10 +12431,10 @@ const Bv = /* @__PURE__ */ ve({
|
|
|
12425
12431
|
"offset-y": "",
|
|
12426
12432
|
"offset-x": "",
|
|
12427
12433
|
modelValue: l.value[c.column.value],
|
|
12428
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
12434
|
+
"onUpdate:modelValue": u[3] || (u[3] = (v) => l.value[c.column.value] = v)
|
|
12429
12435
|
}, {
|
|
12430
|
-
activator: L(({ props:
|
|
12431
|
-
d(le, z(
|
|
12436
|
+
activator: L(({ props: v }) => [
|
|
12437
|
+
d(le, z(v, {
|
|
12432
12438
|
icon: "ri-filter-line",
|
|
12433
12439
|
color: a.value[c.column.value] ? "success" : "medium-emphasis",
|
|
12434
12440
|
size: "small",
|
|
@@ -12451,7 +12457,7 @@ const Bv = /* @__PURE__ */ ve({
|
|
|
12451
12457
|
default: L(() => [
|
|
12452
12458
|
d(vn, {
|
|
12453
12459
|
modelValue: o.value,
|
|
12454
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
12460
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => o.value = v),
|
|
12455
12461
|
label: re(t)("filterBy"),
|
|
12456
12462
|
density: "compact",
|
|
12457
12463
|
variant: "outlined",
|
|
@@ -12463,7 +12469,7 @@ const Bv = /* @__PURE__ */ ve({
|
|
|
12463
12469
|
variant: "text",
|
|
12464
12470
|
size: "small",
|
|
12465
12471
|
color: "grey",
|
|
12466
|
-
onClick: u[1] || (u[1] = (
|
|
12472
|
+
onClick: u[1] || (u[1] = (v) => s(c.column.value))
|
|
12467
12473
|
}, {
|
|
12468
12474
|
default: L(() => [
|
|
12469
12475
|
Ve(xe(re(t)("cancel")), 1)
|
|
@@ -12475,7 +12481,7 @@ const Bv = /* @__PURE__ */ ve({
|
|
|
12475
12481
|
size: "small",
|
|
12476
12482
|
color: "primary",
|
|
12477
12483
|
class: "ml-2",
|
|
12478
|
-
onClick: u[2] || (u[2] = (
|
|
12484
|
+
onClick: u[2] || (u[2] = (v) => i(c.column.value))
|
|
12479
12485
|
}, {
|
|
12480
12486
|
default: L(() => [
|
|
12481
12487
|
Ve(xe(re(t)("ok")), 1)
|
|
@@ -12688,9 +12694,9 @@ const ag = /* @__PURE__ */ ve({
|
|
|
12688
12694
|
n.item[n.header.value] = a.value, n.header.editFn ? n.header.editFn(n.item.id, n.header.value, a.value) : h();
|
|
12689
12695
|
}, c = r(s, 1e3), u = async () => {
|
|
12690
12696
|
l.value = !1, i(), s();
|
|
12691
|
-
},
|
|
12697
|
+
}, v = async () => {
|
|
12692
12698
|
c();
|
|
12693
|
-
},
|
|
12699
|
+
}, f = () => {
|
|
12694
12700
|
try {
|
|
12695
12701
|
const m = n.header.value, b = m.split(".");
|
|
12696
12702
|
if (b.length == 1)
|
|
@@ -12725,7 +12731,7 @@ const ag = /* @__PURE__ */ ve({
|
|
|
12725
12731
|
ref: o,
|
|
12726
12732
|
"onUpdate:modelValue": b[1] || (b[1] = (x) => a.value = x),
|
|
12727
12733
|
onBlur: b[2] || (b[2] = (x) => u()),
|
|
12728
|
-
onInput: b[3] || (b[3] = (x) =>
|
|
12734
|
+
onInput: b[3] || (b[3] = (x) => v()),
|
|
12729
12735
|
style: { "font-size": "inherit", padding: "0", margin: "0", border: "none", background: "transparent", outline: "none" },
|
|
12730
12736
|
class: "ma-0 w-100",
|
|
12731
12737
|
autofocus: ""
|
|
@@ -12737,10 +12743,10 @@ const ag = /* @__PURE__ */ ve({
|
|
|
12737
12743
|
style: { "max-width": "240px", "vertical-align": "middle", padding: "0", margin: "0" },
|
|
12738
12744
|
onClick: b[0] || (b[0] = (x) => m.header.editable && g())
|
|
12739
12745
|
}, [
|
|
12740
|
-
Ve(xe(
|
|
12746
|
+
Ve(xe(f()) + " ", 1),
|
|
12741
12747
|
d(nl, {
|
|
12742
12748
|
activator: "parent",
|
|
12743
|
-
text:
|
|
12749
|
+
text: f(),
|
|
12744
12750
|
location: "top"
|
|
12745
12751
|
}, null, 8, ["text"])
|
|
12746
12752
|
]))
|
|
@@ -12812,12 +12818,12 @@ const ag = /* @__PURE__ */ ve({
|
|
|
12812
12818
|
height: re(o),
|
|
12813
12819
|
class: Ha({ "hide-overflow-y": re(r) })
|
|
12814
12820
|
}, za({
|
|
12815
|
-
headers: L(({ columns: c, isSorted: u, getSortIcon:
|
|
12821
|
+
headers: L(({ columns: c, isSorted: u, getSortIcon: v, toggleSort: f }) => [
|
|
12816
12822
|
d(jv, {
|
|
12817
12823
|
columns: c,
|
|
12818
12824
|
isSorted: u,
|
|
12819
|
-
getSortIcon:
|
|
12820
|
-
toggleSort:
|
|
12825
|
+
getSortIcon: v,
|
|
12826
|
+
toggleSort: f,
|
|
12821
12827
|
filterFn: i.filterFn,
|
|
12822
12828
|
sortedHeaders: t.value,
|
|
12823
12829
|
"onUpdate:sortedHeaders": s[0] || (s[0] = (y) => t.value = y)
|
|
@@ -12876,11 +12882,11 @@ const ag = /* @__PURE__ */ ve({
|
|
|
12876
12882
|
emits: /* @__PURE__ */ pe(["createItem", "update:options", "update:search"], ["update:search", "update:headers", "update:items", "update:pagination"]),
|
|
12877
12883
|
setup(e, { emit: t }) {
|
|
12878
12884
|
const n = ns(), a = Object.keys(n), l = Le(e, "search"), o = Le(e, "headers"), r = Le(e, "items"), i = Le(e, "pagination"), s = _(!1), c = p(
|
|
12879
|
-
() => [...o.value].sort((u,
|
|
12885
|
+
() => [...o.value].sort((u, v) => u.sequence - v.sequence)
|
|
12880
12886
|
);
|
|
12881
12887
|
return yt(() => {
|
|
12882
12888
|
i.value.page = 1;
|
|
12883
|
-
}), (u,
|
|
12889
|
+
}), (u, v) => (H(), he(oe, null, [
|
|
12884
12890
|
d(gt, {
|
|
12885
12891
|
variant: u.variant ?? "elevated",
|
|
12886
12892
|
class: "py-0"
|
|
@@ -12891,55 +12897,55 @@ const ag = /* @__PURE__ */ ve({
|
|
|
12891
12897
|
keyWord: u.keyWord,
|
|
12892
12898
|
search: l.value,
|
|
12893
12899
|
"onUpdate:search": [
|
|
12894
|
-
|
|
12895
|
-
|
|
12900
|
+
v[0] || (v[0] = (f) => l.value = f),
|
|
12901
|
+
v[2] || (v[2] = (f) => l.value = f)
|
|
12896
12902
|
],
|
|
12897
12903
|
hideCreate: u.hideCreate,
|
|
12898
12904
|
hideSearch: u.hideSearch,
|
|
12899
12905
|
hideSortHeader: u.hideSortHeader,
|
|
12900
|
-
onCreateItem:
|
|
12901
|
-
onShowAdjustColumns:
|
|
12906
|
+
onCreateItem: v[1] || (v[1] = (f) => u.$emit("createItem")),
|
|
12907
|
+
onShowAdjustColumns: v[3] || (v[3] = (f) => s.value = !0)
|
|
12902
12908
|
}, {
|
|
12903
|
-
"custom-btn": L((
|
|
12904
|
-
Je(u.$slots, "custom-btn", fl(vl(
|
|
12909
|
+
"custom-btn": L((f) => [
|
|
12910
|
+
Je(u.$slots, "custom-btn", fl(vl(f)), void 0, !0)
|
|
12905
12911
|
]),
|
|
12906
12912
|
_: 3
|
|
12907
12913
|
}, 8, ["keyWord", "search", "hideCreate", "hideSearch", "hideSortHeader"])),
|
|
12908
12914
|
d(og, z({
|
|
12909
12915
|
loading: u.loading,
|
|
12910
12916
|
pagination: i.value,
|
|
12911
|
-
"onUpdate:pagination":
|
|
12917
|
+
"onUpdate:pagination": v[4] || (v[4] = (f) => i.value = f),
|
|
12912
12918
|
items: r.value,
|
|
12913
|
-
headers: c.value.filter((
|
|
12919
|
+
headers: c.value.filter((f) => f.isVisible),
|
|
12914
12920
|
sortedHeaders: c.value,
|
|
12915
|
-
"onUpdate:sortedHeaders":
|
|
12921
|
+
"onUpdate:sortedHeaders": v[5] || (v[5] = (f) => c.value = f),
|
|
12916
12922
|
filterFn: u.filterFn,
|
|
12917
12923
|
noItemsText: u.noItemsText
|
|
12918
12924
|
}, u.$slots), za({ _: 2 }, [
|
|
12919
|
-
Ft(re(a), (
|
|
12920
|
-
name:
|
|
12925
|
+
Ft(re(a), (f) => ({
|
|
12926
|
+
name: f,
|
|
12921
12927
|
fn: L((y) => [
|
|
12922
|
-
Je(u.$slots,
|
|
12928
|
+
Je(u.$slots, f, fl(vl(y)), void 0, !0)
|
|
12923
12929
|
])
|
|
12924
12930
|
}))
|
|
12925
12931
|
]), 1040, ["loading", "pagination", "items", "headers", "sortedHeaders", "filterFn", "noItemsText"]),
|
|
12926
12932
|
i.value?.total > 0 ? (H(), Y(hd, {
|
|
12927
12933
|
key: 1,
|
|
12928
12934
|
pagination: i.value,
|
|
12929
|
-
"onUpdate:pagination":
|
|
12935
|
+
"onUpdate:pagination": v[6] || (v[6] = (f) => i.value = f),
|
|
12930
12936
|
headers: o.value,
|
|
12931
12937
|
data: r.value,
|
|
12932
12938
|
"hide-pagination": u.hidePagination,
|
|
12933
|
-
"onUpdate:options":
|
|
12939
|
+
"onUpdate:options": v[7] || (v[7] = (f) => u.$emit("update:options"))
|
|
12934
12940
|
}, null, 8, ["pagination", "headers", "data", "hide-pagination"])) : fe("", !0)
|
|
12935
12941
|
]),
|
|
12936
12942
|
_: 3
|
|
12937
12943
|
}, 8, ["variant"]),
|
|
12938
12944
|
d(Tv, {
|
|
12939
12945
|
showAdjustColumns: s.value,
|
|
12940
|
-
"onUpdate:showAdjustColumns":
|
|
12946
|
+
"onUpdate:showAdjustColumns": v[8] || (v[8] = (f) => s.value = f),
|
|
12941
12947
|
sortedHeaders: c.value,
|
|
12942
|
-
"onUpdate:sortedHeaders":
|
|
12948
|
+
"onUpdate:sortedHeaders": v[9] || (v[9] = (f) => c.value = f)
|
|
12943
12949
|
}, null, 8, ["showAdjustColumns", "sortedHeaders"])
|
|
12944
12950
|
], 64));
|
|
12945
12951
|
}
|
|
@@ -13685,7 +13691,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13685
13691
|
class: Ha(["ma-0", s.noPadding ? "pa-0" : "pa-5"])
|
|
13686
13692
|
}, {
|
|
13687
13693
|
default: L(() => [
|
|
13688
|
-
(H(!0), he(oe, null, Ft(s.fields, (u,
|
|
13694
|
+
(H(!0), he(oe, null, Ft(s.fields, (u, v) => (H(), he(oe, { key: v }, [
|
|
13689
13695
|
l.value[u.model] ? (H(), Y(He, {
|
|
13690
13696
|
key: 0,
|
|
13691
13697
|
cols: re(mo)(u),
|
|
@@ -13707,7 +13713,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13707
13713
|
u.type === "password" ? (H(), Y(yo, {
|
|
13708
13714
|
key: 0,
|
|
13709
13715
|
modelValue: u.value,
|
|
13710
|
-
"onUpdate:modelValue": (
|
|
13716
|
+
"onUpdate:modelValue": (f) => u.value = f,
|
|
13711
13717
|
type: "password",
|
|
13712
13718
|
label: u.label,
|
|
13713
13719
|
autofocus: u.autofocus,
|
|
@@ -13716,7 +13722,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13716
13722
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "autofocus", "placeholder", "error-messages"])) : (H(), Y(yo, {
|
|
13717
13723
|
key: 1,
|
|
13718
13724
|
modelValue: u.value,
|
|
13719
|
-
"onUpdate:modelValue": (
|
|
13725
|
+
"onUpdate:modelValue": (f) => u.value = f,
|
|
13720
13726
|
label: u.label,
|
|
13721
13727
|
placeholder: u.placeholder,
|
|
13722
13728
|
"error-messages": u.error,
|
|
@@ -13770,8 +13776,8 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13770
13776
|
onClick: () => {
|
|
13771
13777
|
if (u.count) {
|
|
13772
13778
|
u.hasCountBtn = !1;
|
|
13773
|
-
const
|
|
13774
|
-
a("addCount", [u,
|
|
13779
|
+
const f = u.count + 1;
|
|
13780
|
+
a("addCount", [u, f]);
|
|
13775
13781
|
}
|
|
13776
13782
|
},
|
|
13777
13783
|
icon: ""
|
|
@@ -13820,23 +13826,23 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13820
13826
|
setup(e, { emit: t }) {
|
|
13821
13827
|
const n = e, a = t;
|
|
13822
13828
|
Le(e, "modelValue");
|
|
13823
|
-
const l = (u,
|
|
13824
|
-
u.search =
|
|
13829
|
+
const l = (u, v) => {
|
|
13830
|
+
u.search = v, a("updateSearch", { field: u.model, value: v });
|
|
13825
13831
|
}, o = (u) => {
|
|
13826
|
-
let
|
|
13827
|
-
return u && u.forEach((
|
|
13828
|
-
|
|
13829
|
-
}),
|
|
13832
|
+
let v = !0;
|
|
13833
|
+
return u && u.forEach((f) => {
|
|
13834
|
+
v = f();
|
|
13835
|
+
}), v;
|
|
13830
13836
|
}, r = p(() => {
|
|
13831
13837
|
const u = {};
|
|
13832
|
-
return n.fields.forEach((
|
|
13833
|
-
u[
|
|
13838
|
+
return n.fields.forEach((v) => {
|
|
13839
|
+
u[v.model] = v.condition ? o(v.condition) : v.type !== "hidden";
|
|
13834
13840
|
}), u;
|
|
13835
13841
|
}), i = () => {
|
|
13836
13842
|
if (n.loading) return;
|
|
13837
13843
|
const u = {};
|
|
13838
|
-
n.fields.forEach((
|
|
13839
|
-
u[
|
|
13844
|
+
n.fields.forEach((v) => {
|
|
13845
|
+
u[v.model] = v.value;
|
|
13840
13846
|
}), a("submit", u);
|
|
13841
13847
|
};
|
|
13842
13848
|
yt(() => {
|
|
@@ -13846,13 +13852,13 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13846
13852
|
}), U(
|
|
13847
13853
|
() => n.initialData,
|
|
13848
13854
|
(u) => {
|
|
13849
|
-
n.fields.forEach((
|
|
13850
|
-
|
|
13855
|
+
n.fields.forEach((v) => {
|
|
13856
|
+
v.value = u ? u[v.model] : null;
|
|
13851
13857
|
});
|
|
13852
13858
|
}
|
|
13853
13859
|
);
|
|
13854
13860
|
const s = p(() => n.fields.filter((u) => r.value[u.model])), c = _(!1);
|
|
13855
|
-
return (u,
|
|
13861
|
+
return (u, v) => (H(), Y(gt, { variant: "text" }, {
|
|
13856
13862
|
default: L(() => [
|
|
13857
13863
|
n.title ? (H(), Y(mg, {
|
|
13858
13864
|
key: 0,
|
|
@@ -13865,7 +13871,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13865
13871
|
disabled: n.disabled,
|
|
13866
13872
|
ref: "form",
|
|
13867
13873
|
modelValue: c.value,
|
|
13868
|
-
"onUpdate:modelValue":
|
|
13874
|
+
"onUpdate:modelValue": v[1] || (v[1] = (f) => c.value = f)
|
|
13869
13875
|
}, {
|
|
13870
13876
|
default: L(() => [
|
|
13871
13877
|
d(kg, {
|
|
@@ -13879,7 +13885,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13879
13885
|
"hide-cancel-button": e.hideCancelButton ?? !1,
|
|
13880
13886
|
"add-btn-text": u.addBtnText,
|
|
13881
13887
|
loading: u.loading ?? !1,
|
|
13882
|
-
onCancel:
|
|
13888
|
+
onCancel: v[0] || (v[0] = (f) => a("cancel")),
|
|
13883
13889
|
onSubmit: i
|
|
13884
13890
|
}, null, 8, ["disable-add-button", "hide-cancel-button", "add-btn-text", "loading"]))
|
|
13885
13891
|
]),
|