@c3labsbr/vuetify-elements 1.3.3 → 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/components/organisms/GenericTablePagination.vue.d.ts +7 -0
- package/dist/components/organisms/GenericTablePagination.vue.d.ts.map +1 -1
- package/dist/components/templates/GenericTable.vue.d.ts +6 -5
- package/dist/components/templates/GenericTable.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 +646 -634
- package/package.json +7 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Vt, computed as p, watchEffect as Qe, toRefs as _a, capitalize as Kt, shallowRef as te, Fragment as oe, isVNode as qi, Comment as Wi, unref as re, warn as Hn, getCurrentInstance as Gi, ref as _, provide as Ce, inject as de, defineComponent as
|
|
1
|
+
import { reactive as Vt, computed as p, watchEffect as Qe, toRefs as _a, capitalize as Kt, shallowRef as te, Fragment as oe, isVNode as qi, Comment as Wi, unref as re, warn as Hn, getCurrentInstance as Gi, ref as _, provide as Ce, inject as de, defineComponent as ve, h as Xt, camelize as ho, isRef as jt, createVNode as d, toRef as M, watch as U, onScopeDispose as Oe, effectScope as Oa, toRaw as be, onBeforeUnmount as qe, onMounted as yt, onUpdated as Ui, mergeProps as z, Text as Ki, readonly as Ra, Transition as It, resolveDynamicComponent as Xi, nextTick as Se, withDirectives as Be, TransitionGroup as Ma, Teleport as Yi, vShow as Et, resolveDirective as Bt, createBlock as Y, openBlock as H, withCtx as L, createCommentVNode as fe, createTextVNode as Ve, toDisplayString as xe, onBeforeMount as po, onDeactivated as Zi, onBeforeUpdate as Qi, markRaw as Ji, cloneVNode as es, mergeModels as pe, useModel as Le, createElementBlock as he, withModifiers as Sa, onUnmounted as ts, renderSlot as Je, createElementVNode as ke, vModelText as bo, renderList as Ft, normalizeClass as Ha, createSlots as za, useSlots as ns, normalizeProps as fl, guardReactiveProps as vl, resolveComponent as as } from "vue";
|
|
2
2
|
import ls from "jspdf";
|
|
3
3
|
import os from "jspdf-autotable";
|
|
4
4
|
import rs from "exceljs";
|
|
@@ -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(() => {
|
|
@@ -738,7 +738,7 @@ function yn(e) {
|
|
|
738
738
|
}
|
|
739
739
|
function j() {
|
|
740
740
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
741
|
-
return (t) => (e ? yn :
|
|
741
|
+
return (t) => (e ? yn : ve)(t);
|
|
742
742
|
}
|
|
743
743
|
function $s(e, t) {
|
|
744
744
|
return t.props = e, t;
|
|
@@ -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,
|
|
@@ -3128,7 +3128,7 @@ const Zn = A({
|
|
|
3128
3128
|
updateLocation: ie
|
|
3129
3129
|
});
|
|
3130
3130
|
function ne(q) {
|
|
3131
|
-
l("click:outside", q), e.persistent ?
|
|
3131
|
+
l("click:outside", q), e.persistent ? Z() : u.value = !1;
|
|
3132
3132
|
}
|
|
3133
3133
|
function I(q) {
|
|
3134
3134
|
return u.value && b.value && // If using scrim, only close if clicking on it rather than anything opened on top
|
|
@@ -3142,12 +3142,12 @@ const Zn = A({
|
|
|
3142
3142
|
ge && window.removeEventListener("keydown", D);
|
|
3143
3143
|
});
|
|
3144
3144
|
function D(q) {
|
|
3145
|
-
q.key === "Escape" && b.value && (e.persistent ?
|
|
3145
|
+
q.key === "Escape" && b.value && (e.persistent ? Z() : (u.value = !1, s.value?.contains(document.activeElement) && x.value?.focus()));
|
|
3146
3146
|
}
|
|
3147
3147
|
const N = tu();
|
|
3148
3148
|
Dt(() => e.closeOnBack, () => {
|
|
3149
3149
|
nu(N, (q) => {
|
|
3150
|
-
b.value && u.value ? (q(!1), e.persistent ?
|
|
3150
|
+
b.value && u.value ? (q(!1), e.persistent ? Z() : u.value = !1) : q();
|
|
3151
3151
|
});
|
|
3152
3152
|
});
|
|
3153
3153
|
const K = _();
|
|
@@ -3157,7 +3157,7 @@ const Zn = A({
|
|
|
3157
3157
|
ce && ce !== document.scrollingElement && (K.value = ce.scrollTop);
|
|
3158
3158
|
}
|
|
3159
3159
|
});
|
|
3160
|
-
function
|
|
3160
|
+
function Z() {
|
|
3161
3161
|
e.noClickAnimation || s.value && Ht(s.value, [{
|
|
3162
3162
|
transformOrigin: "center"
|
|
3163
3163
|
}, {
|
|
@@ -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)
|
|
@@ -3224,7 +3224,7 @@ const Zn = A({
|
|
|
3224
3224
|
activatorEl: x,
|
|
3225
3225
|
scrimEl: i,
|
|
3226
3226
|
target: $,
|
|
3227
|
-
animateClick:
|
|
3227
|
+
animateClick: Z,
|
|
3228
3228
|
contentEl: s,
|
|
3229
3229
|
globalTop: b,
|
|
3230
3230
|
localTop: C,
|
|
@@ -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,
|
|
@@ -3357,7 +3357,7 @@ const Lu = A({
|
|
|
3357
3357
|
});
|
|
3358
3358
|
}), Qt({}, i);
|
|
3359
3359
|
}
|
|
3360
|
-
}), ir = /* @__PURE__ */
|
|
3360
|
+
}), ir = /* @__PURE__ */ ve({
|
|
3361
3361
|
__name: "ActionBtn",
|
|
3362
3362
|
props: {
|
|
3363
3363
|
icon: {},
|
|
@@ -3368,7 +3368,7 @@ const Lu = A({
|
|
|
3368
3368
|
color: { default: "grey-600" }
|
|
3369
3369
|
},
|
|
3370
3370
|
setup(e) {
|
|
3371
|
-
return (t, n) => (H(),
|
|
3371
|
+
return (t, n) => (H(), Y(Ie, {
|
|
3372
3372
|
size: t.size,
|
|
3373
3373
|
onClick: n[0] || (n[0] = (a) => t.$emit("action")),
|
|
3374
3374
|
variant: t.variant,
|
|
@@ -3382,7 +3382,7 @@ const Lu = A({
|
|
|
3382
3382
|
]),
|
|
3383
3383
|
_: 1
|
|
3384
3384
|
}),
|
|
3385
|
-
t.tooltip ? (H(),
|
|
3385
|
+
t.tooltip ? (H(), Y(nl, {
|
|
3386
3386
|
key: 0,
|
|
3387
3387
|
activator: "parent",
|
|
3388
3388
|
location: t.location
|
|
@@ -3391,7 +3391,7 @@ const Lu = A({
|
|
|
3391
3391
|
Ve(xe(t.tooltip), 1)
|
|
3392
3392
|
]),
|
|
3393
3393
|
_: 1
|
|
3394
|
-
}, 8, ["location"])) :
|
|
3394
|
+
}, 8, ["location"])) : fe("", !0)
|
|
3395
3395
|
]),
|
|
3396
3396
|
_: 1
|
|
3397
3397
|
}, 8, ["size", "variant", "color"]));
|
|
@@ -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,19 +5032,19 @@ 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
|
}));
|
|
5046
|
-
U(() => o.isActive?.value, (
|
|
5047
|
-
|
|
5046
|
+
U(() => o.isActive?.value, (Z) => {
|
|
5047
|
+
Z && h.value != null && g.open(h.value, !0), Z && m(Z);
|
|
5048
5048
|
}, {
|
|
5049
5049
|
immediate: !0
|
|
5050
5050
|
});
|
|
@@ -5068,18 +5068,18 @@ 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
|
-
function N(
|
|
5075
|
-
l("click",
|
|
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(!v.value, Z)));
|
|
5076
5076
|
}
|
|
5077
|
-
function K(
|
|
5078
|
-
(
|
|
5077
|
+
function K(Z) {
|
|
5078
|
+
(Z.key === "Enter" || Z.key === " ") && (Z.preventDefault(), Z.target.dispatchEvent(new MouseEvent("click", Z)));
|
|
5079
5079
|
}
|
|
5080
5080
|
return X(() => {
|
|
5081
|
-
const
|
|
5082
|
-
return C?.updateHasPrepend(Ge), e.activeColor && Ps("active-color", ["color", "base-color"]), Be(d(
|
|
5081
|
+
const Z = x.value ? "a" : e.tag, ee = a.title || e.title != null, se = a.subtitle || e.subtitle != null, q = !!(e.appendAvatar || e.appendIcon), ce = !!(q || a.append), Xe = !!(e.prependAvatar || e.prependIcon), Ge = !!(Xe || a.prepend);
|
|
5082
|
+
return C?.updateHasPrepend(Ge), e.activeColor && Ps("active-color", ["color", "base-color"]), Be(d(Z, z({
|
|
5083
5083
|
class: ["v-list-item", {
|
|
5084
5084
|
"v-list-item--active": k.value,
|
|
5085
5085
|
"v-list-item--disabled": e.disabled,
|
|
@@ -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,16 +6959,16 @@ const Kc = Symbol.for("vuetify:v-slide-group"), Jr = A({
|
|
|
6959
6959
|
});
|
|
6960
6960
|
}
|
|
6961
6961
|
function W(D) {
|
|
6962
|
-
const N =
|
|
6963
|
-
let
|
|
6964
|
-
if (
|
|
6962
|
+
const N = v.value && a.value ? -1 : 1, K = (D === "prev" ? -N : N) * c.value;
|
|
6963
|
+
let Z = s.value + K;
|
|
6964
|
+
if (v.value && a.value && f.el) {
|
|
6965
6965
|
const {
|
|
6966
6966
|
scrollWidth: ee,
|
|
6967
6967
|
offsetWidth: se
|
|
6968
|
-
} =
|
|
6969
|
-
|
|
6968
|
+
} = f.el;
|
|
6969
|
+
Z += ee - se;
|
|
6970
6970
|
}
|
|
6971
|
-
$(
|
|
6971
|
+
$(Z);
|
|
6972
6972
|
}
|
|
6973
6973
|
const J = p(() => ({
|
|
6974
6974
|
next: r.next,
|
|
@@ -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)), {
|
|
@@ -7473,7 +7473,7 @@ const Yc = A({
|
|
|
7473
7473
|
requestAnimationFrame(() => {
|
|
7474
7474
|
const ie = Wa(W), ne = J.getBoundingClientRect(), I = ne.x - ie.x, D = ne.y - ie.y - (ie.height / 2 - ne.height / 2), N = ne.width / 0.75, K = Math.abs(N - ie.width) > 1 ? {
|
|
7475
7475
|
maxWidth: G(N)
|
|
7476
|
-
} : void 0,
|
|
7476
|
+
} : void 0, Z = getComputedStyle(W), ee = getComputedStyle(J), se = parseFloat(Z.transitionDuration) * 1e3 || 150, q = parseFloat(ee.getPropertyValue("--v-field-label-scale")), ce = ee.getPropertyValue("color");
|
|
7477
7477
|
W.style.visibility = "visible", J.style.visibility = "hidden", Ht(W, {
|
|
7478
7478
|
transform: `translate(${I}px, ${D}px) scale(${q})`,
|
|
7479
7479
|
color: ce,
|
|
@@ -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({
|
|
@@ -7921,7 +7921,7 @@ function sd(e, t) {
|
|
|
7921
7921
|
}
|
|
7922
7922
|
function J() {
|
|
7923
7923
|
if (!s.value || !y.value) return;
|
|
7924
|
-
const I = P - u, D = Math.sign(R), N = Math.max(0, I - pa), K = Ue(S(N), 0, t.value.length),
|
|
7924
|
+
const I = P - u, D = Math.sign(R), N = Math.max(0, I - pa), K = Ue(S(N), 0, t.value.length), Z = I + y.value + pa, ee = Ue(S(Z) + 1, K + 1, t.value.length);
|
|
7925
7925
|
if (
|
|
7926
7926
|
// Only update the side we're scrolling towards,
|
|
7927
7927
|
// the other side will be updated incidentally
|
|
@@ -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 || {},
|
|
@@ -8205,12 +8205,12 @@ const vd = A({
|
|
|
8205
8205
|
if (e.multiple || !Sl(I)) return;
|
|
8206
8206
|
const N = performance.now();
|
|
8207
8207
|
N - k > D && (C = ""), C += I.key.toLowerCase(), k = N;
|
|
8208
|
-
const K = c.value.find((
|
|
8208
|
+
const K = c.value.find((Z) => Z.title.toLowerCase().startsWith(C));
|
|
8209
8209
|
if (K !== void 0) {
|
|
8210
|
-
|
|
8211
|
-
const
|
|
8210
|
+
f.value = [K];
|
|
8211
|
+
const Z = x.value.indexOf(K);
|
|
8212
8212
|
ge && window.requestAnimationFrame(() => {
|
|
8213
|
-
|
|
8213
|
+
Z >= 0 && r.value?.scrollToIndex(Z);
|
|
8214
8214
|
});
|
|
8215
8215
|
}
|
|
8216
8216
|
}
|
|
@@ -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
|
|
8224
|
-
|
|
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,27 +8259,27 @@ 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,
|
|
8281
8281
|
inputmode: "none",
|
|
8282
|
-
placeholder:
|
|
8282
|
+
placeholder: Z,
|
|
8283
8283
|
"onClick:clear": P,
|
|
8284
8284
|
"onMousedown:control": R,
|
|
8285
8285
|
onBlur: O,
|
|
@@ -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
|
})]),
|
|
@@ -8422,13 +8422,16 @@ const vd = A({
|
|
|
8422
8422
|
select: B
|
|
8423
8423
|
}, l);
|
|
8424
8424
|
}
|
|
8425
|
-
}), md = { key: 0 }, yd = /* @__PURE__ */
|
|
8425
|
+
}), md = { key: 0 }, yd = /* @__PURE__ */ ve({
|
|
8426
8426
|
__name: "GenericTablePagination",
|
|
8427
8427
|
props: /* @__PURE__ */ pe({
|
|
8428
8428
|
headers: Array,
|
|
8429
8429
|
data: Array,
|
|
8430
8430
|
hideExport: {
|
|
8431
8431
|
default: !1
|
|
8432
|
+
},
|
|
8433
|
+
hidePagination: {
|
|
8434
|
+
default: !1
|
|
8432
8435
|
}
|
|
8433
8436
|
}, {
|
|
8434
8437
|
pagination: {
|
|
@@ -8461,7 +8464,7 @@ const vd = A({
|
|
|
8461
8464
|
class: "order-2 order-md-1"
|
|
8462
8465
|
}, {
|
|
8463
8466
|
default: L(() => [
|
|
8464
|
-
t.hideExport ?
|
|
8467
|
+
t.hideExport ? fe("", !0) : (H(), he("div", md, [
|
|
8465
8468
|
d(Jn, null, {
|
|
8466
8469
|
activator: L(({ props: i }) => [
|
|
8467
8470
|
d(Ie, z({
|
|
@@ -8517,7 +8520,8 @@ const vd = A({
|
|
|
8517
8520
|
]),
|
|
8518
8521
|
_: 1
|
|
8519
8522
|
}),
|
|
8520
|
-
|
|
8523
|
+
t.hidePagination ? fe("", !0) : (H(), Y(He, {
|
|
8524
|
+
key: 0,
|
|
8521
8525
|
cols: "12",
|
|
8522
8526
|
md: "10",
|
|
8523
8527
|
class: "order-1 order-md-2 d-flex align-center justify-end justify-md-end flex-wrap ga-2"
|
|
@@ -8557,7 +8561,7 @@ const vd = A({
|
|
|
8557
8561
|
}, null, 8, ["modelValue", "total-visible", "length"])
|
|
8558
8562
|
]),
|
|
8559
8563
|
_: 1
|
|
8560
|
-
})
|
|
8564
|
+
}))
|
|
8561
8565
|
]),
|
|
8562
8566
|
_: 1
|
|
8563
8567
|
})
|
|
@@ -8568,7 +8572,7 @@ const vd = A({
|
|
|
8568
8572
|
for (const [a, l] of t)
|
|
8569
8573
|
n[a] = l;
|
|
8570
8574
|
return n;
|
|
8571
|
-
}, hd = /* @__PURE__ */ Jt(yd, [["__scopeId", "data-v-
|
|
8575
|
+
}, hd = /* @__PURE__ */ Jt(yd, [["__scopeId", "data-v-0f7eb688"]]), pd = (e, t, n) => e == null || t == null ? -1 : e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()), bd = A({
|
|
8572
8576
|
customFilter: Function,
|
|
8573
8577
|
customKeyFilter: Object,
|
|
8574
8578
|
filterKeys: [Array, String],
|
|
@@ -8582,27 +8586,27 @@ function Sd(e, t, n) {
|
|
|
8582
8586
|
const a = [], l = n?.default ?? pd, o = n?.filterKeys ? Ee(n.filterKeys) : !1, r = Object.keys(n?.customKeyFilter ?? {}).length;
|
|
8583
8587
|
if (!e?.length) return a;
|
|
8584
8588
|
e: for (let i = 0; i < e.length; i++) {
|
|
8585
|
-
const [s, c = s] = Ee(e[i]), u = {},
|
|
8586
|
-
let
|
|
8589
|
+
const [s, c = s] = Ee(e[i]), u = {}, v = {};
|
|
8590
|
+
let f = -1;
|
|
8587
8591
|
if ((t || r > 0) && !n?.noFilter) {
|
|
8588
8592
|
if (typeof s == "object") {
|
|
8589
8593
|
const h = o || Object.keys(c);
|
|
8590
8594
|
for (const m of h) {
|
|
8591
8595
|
const b = _e(c, m), C = n?.customKeyFilter?.[m];
|
|
8592
|
-
if (
|
|
8593
|
-
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;
|
|
8594
8598
|
else if (n?.filterMode === "every")
|
|
8595
8599
|
continue e;
|
|
8596
8600
|
}
|
|
8597
8601
|
} else
|
|
8598
|
-
|
|
8599
|
-
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;
|
|
8600
8604
|
if (!y && !g || n?.filterMode === "union" && g !== r && !y || n?.filterMode === "intersection" && (g !== r || !y)) continue;
|
|
8601
8605
|
}
|
|
8602
8606
|
a.push({
|
|
8603
8607
|
index: i,
|
|
8604
8608
|
matches: {
|
|
8605
|
-
...
|
|
8609
|
+
...v,
|
|
8606
8610
|
...u
|
|
8607
8611
|
}
|
|
8608
8612
|
});
|
|
@@ -8621,15 +8625,15 @@ function Cd(e, t, n, a) {
|
|
|
8621
8625
|
filterKeys: e.filterKeys,
|
|
8622
8626
|
filterMode: e.filterMode,
|
|
8623
8627
|
noFilter: e.noFilter
|
|
8624
|
-
}),
|
|
8628
|
+
}), v = re(t), f = [], y = /* @__PURE__ */ new Map();
|
|
8625
8629
|
u.forEach((g) => {
|
|
8626
8630
|
let {
|
|
8627
8631
|
index: h,
|
|
8628
8632
|
matches: m
|
|
8629
8633
|
} = g;
|
|
8630
|
-
const b =
|
|
8631
|
-
|
|
8632
|
-
}), l.value =
|
|
8634
|
+
const b = v[h];
|
|
8635
|
+
f.push(b), y.set(b.value, m);
|
|
8636
|
+
}), l.value = f, o.value = y;
|
|
8633
8637
|
});
|
|
8634
8638
|
function i(s) {
|
|
8635
8639
|
return o.value.get(s.value);
|
|
@@ -8672,15 +8676,15 @@ const wd = A({
|
|
|
8672
8676
|
scopeId: o
|
|
8673
8677
|
} = Yn(), r = _();
|
|
8674
8678
|
function i(u) {
|
|
8675
|
-
const
|
|
8676
|
-
if (
|
|
8679
|
+
const v = u.relatedTarget, f = u.target;
|
|
8680
|
+
if (v !== f && r.value?.contentEl && // We're the topmost dialog
|
|
8677
8681
|
r.value?.globalTop && // It isn't the document or the dialog body
|
|
8678
|
-
![document, r.value.contentEl].includes(
|
|
8679
|
-
!r.value.contentEl.contains(
|
|
8682
|
+
![document, r.value.contentEl].includes(f) && // It isn't inside the dialog body
|
|
8683
|
+
!r.value.contentEl.contains(f)) {
|
|
8680
8684
|
const y = rn(r.value.contentEl);
|
|
8681
8685
|
if (!y.length) return;
|
|
8682
8686
|
const g = y[0], h = y[y.length - 1];
|
|
8683
|
-
|
|
8687
|
+
v === g ? h.focus() : g.focus();
|
|
8684
8688
|
}
|
|
8685
8689
|
}
|
|
8686
8690
|
qe(() => {
|
|
@@ -8703,9 +8707,9 @@ const wd = A({
|
|
|
8703
8707
|
preventScroll: !0
|
|
8704
8708
|
}));
|
|
8705
8709
|
}), X(() => {
|
|
8706
|
-
const u = Wt.filterProps(e),
|
|
8710
|
+
const u = Wt.filterProps(e), v = z({
|
|
8707
8711
|
"aria-haspopup": "dialog"
|
|
8708
|
-
}, e.activatorProps),
|
|
8712
|
+
}, e.activatorProps), f = z({
|
|
8709
8713
|
tabindex: -1
|
|
8710
8714
|
}, e.contentProps);
|
|
8711
8715
|
return d(Wt, z({
|
|
@@ -8719,8 +8723,8 @@ const wd = A({
|
|
|
8719
8723
|
modelValue: l.value,
|
|
8720
8724
|
"onUpdate:modelValue": (y) => l.value = y,
|
|
8721
8725
|
"aria-modal": "true",
|
|
8722
|
-
activatorProps:
|
|
8723
|
-
contentProps:
|
|
8726
|
+
activatorProps: v,
|
|
8727
|
+
contentProps: f,
|
|
8724
8728
|
height: e.fullscreen ? void 0 : e.height,
|
|
8725
8729
|
width: e.fullscreen ? void 0 : e.width,
|
|
8726
8730
|
maxHeight: e.fullscreen ? void 0 : e.maxHeight,
|
|
@@ -8936,9 +8940,9 @@ const wd = A({
|
|
|
8936
8940
|
} = at(e), {
|
|
8937
8941
|
dimensionStyles: u
|
|
8938
8942
|
} = St(e), {
|
|
8939
|
-
elevationClasses:
|
|
8943
|
+
elevationClasses: v
|
|
8940
8944
|
} = Yt(e), {
|
|
8941
|
-
loaderClasses:
|
|
8945
|
+
loaderClasses: f
|
|
8942
8946
|
} = Wn(e), {
|
|
8943
8947
|
locationStyles: y
|
|
8944
8948
|
} = el(e), {
|
|
@@ -8954,7 +8958,7 @@ const wd = A({
|
|
|
8954
8958
|
"v-card--flat": e.flat,
|
|
8955
8959
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
8956
8960
|
"v-card--link": C.value
|
|
8957
|
-
}, 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],
|
|
8958
8962
|
style: [i.value, u.value, y.value, e.style],
|
|
8959
8963
|
onClick: C.value && m.navigate,
|
|
8960
8964
|
tabindex: e.disabled ? -1 : void 0
|
|
@@ -9063,17 +9067,17 @@ function $d(e) {
|
|
|
9063
9067
|
return l.value.has(u.id);
|
|
9064
9068
|
}
|
|
9065
9069
|
function i(u) {
|
|
9066
|
-
const
|
|
9067
|
-
r(u) ?
|
|
9070
|
+
const v = new Set(l.value);
|
|
9071
|
+
r(u) ? v.delete(u.id) : v.add(u.id), l.value = v;
|
|
9068
9072
|
}
|
|
9069
9073
|
function s(u) {
|
|
9070
|
-
function f
|
|
9074
|
+
function v(f) {
|
|
9071
9075
|
const y = [];
|
|
9072
|
-
for (const g of
|
|
9073
|
-
"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);
|
|
9074
9078
|
return y;
|
|
9075
9079
|
}
|
|
9076
|
-
return
|
|
9080
|
+
return v({
|
|
9077
9081
|
items: u
|
|
9078
9082
|
});
|
|
9079
9083
|
}
|
|
@@ -9181,8 +9185,8 @@ function Md(e) {
|
|
|
9181
9185
|
U([t, r], () => {
|
|
9182
9186
|
t.value > r.value && (t.value = r.value);
|
|
9183
9187
|
});
|
|
9184
|
-
function i(
|
|
9185
|
-
n.value =
|
|
9188
|
+
function i(f) {
|
|
9189
|
+
n.value = f, t.value = 1;
|
|
9186
9190
|
}
|
|
9187
9191
|
function s() {
|
|
9188
9192
|
t.value = Ue(t.value + 1, 1, r.value);
|
|
@@ -9190,10 +9194,10 @@ function Md(e) {
|
|
|
9190
9194
|
function c() {
|
|
9191
9195
|
t.value = Ue(t.value - 1, 1, r.value);
|
|
9192
9196
|
}
|
|
9193
|
-
function u(
|
|
9194
|
-
t.value = Ue(
|
|
9197
|
+
function u(f) {
|
|
9198
|
+
t.value = Ue(f, 1, r.value);
|
|
9195
9199
|
}
|
|
9196
|
-
const
|
|
9200
|
+
const v = {
|
|
9197
9201
|
page: t,
|
|
9198
9202
|
itemsPerPage: n,
|
|
9199
9203
|
startIndex: l,
|
|
@@ -9205,7 +9209,7 @@ function Md(e) {
|
|
|
9205
9209
|
setPage: u,
|
|
9206
9210
|
setItemsPerPage: i
|
|
9207
9211
|
};
|
|
9208
|
-
return Ce(vi,
|
|
9212
|
+
return Ce(vi, v), v;
|
|
9209
9213
|
}
|
|
9210
9214
|
function Hd() {
|
|
9211
9215
|
const e = de(vi);
|
|
@@ -9347,10 +9351,10 @@ function Wd(e, t) {
|
|
|
9347
9351
|
});
|
|
9348
9352
|
l.value = k;
|
|
9349
9353
|
}
|
|
9350
|
-
function
|
|
9354
|
+
function v(b) {
|
|
9351
9355
|
u([b], !s([b]));
|
|
9352
9356
|
}
|
|
9353
|
-
function
|
|
9357
|
+
function f(b) {
|
|
9354
9358
|
const C = i.value.selectAll({
|
|
9355
9359
|
value: b,
|
|
9356
9360
|
allItems: o.value,
|
|
@@ -9366,9 +9370,9 @@ function Wd(e, t) {
|
|
|
9366
9370
|
});
|
|
9367
9371
|
return !!b.length && s(b);
|
|
9368
9372
|
}), h = p(() => i.value.showSelectAll), m = {
|
|
9369
|
-
toggleSelect:
|
|
9373
|
+
toggleSelect: v,
|
|
9370
9374
|
select: u,
|
|
9371
|
-
selectAll:
|
|
9375
|
+
selectAll: f,
|
|
9372
9376
|
isSelected: s,
|
|
9373
9377
|
isSomeSelected: c,
|
|
9374
9378
|
someSelected: y,
|
|
@@ -9407,11 +9411,11 @@ function Kd(e) {
|
|
|
9407
9411
|
page: l
|
|
9408
9412
|
} = e, o = (s) => {
|
|
9409
9413
|
if (s.key == null) return;
|
|
9410
|
-
let c = t.value.map((
|
|
9411
|
-
...
|
|
9414
|
+
let c = t.value.map((v) => ({
|
|
9415
|
+
...v
|
|
9412
9416
|
})) ?? [];
|
|
9413
|
-
const u = c.find((
|
|
9414
|
-
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, {
|
|
9415
9419
|
key: s.key,
|
|
9416
9420
|
order: "asc"
|
|
9417
9421
|
}] : c = [{
|
|
@@ -9455,24 +9459,24 @@ function Yd(e, t, n, a) {
|
|
|
9455
9459
|
return e.map((r) => [r, a?.transform ? a.transform(r) : r]).sort((r, i) => {
|
|
9456
9460
|
for (let s = 0; s < t.length; s++) {
|
|
9457
9461
|
let c = !1;
|
|
9458
|
-
const u = t[s].key,
|
|
9459
|
-
if (
|
|
9460
|
-
let
|
|
9461
|
-
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]) {
|
|
9462
9466
|
const m = a.sortRawFunctions[u](g, h);
|
|
9463
9467
|
if (m == null) continue;
|
|
9464
9468
|
if (c = !0, m) return m;
|
|
9465
9469
|
}
|
|
9466
9470
|
if (a?.sortFunctions?.[u]) {
|
|
9467
|
-
const m = a.sortFunctions[u](
|
|
9471
|
+
const m = a.sortFunctions[u](f, y);
|
|
9468
9472
|
if (m == null) continue;
|
|
9469
9473
|
if (c = !0, m) return m;
|
|
9470
9474
|
}
|
|
9471
9475
|
if (!c) {
|
|
9472
|
-
if (
|
|
9473
|
-
return
|
|
9474
|
-
if ([
|
|
9475
|
-
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);
|
|
9476
9480
|
}
|
|
9477
9481
|
}
|
|
9478
9482
|
return 0;
|
|
@@ -9559,21 +9563,21 @@ const bi = A({
|
|
|
9559
9563
|
itemsLength: s,
|
|
9560
9564
|
itemsPerPage: c,
|
|
9561
9565
|
setItemsPerPage: u
|
|
9562
|
-
} = Hd(),
|
|
9563
|
-
value:
|
|
9564
|
-
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)
|
|
9565
9569
|
} : {
|
|
9566
|
-
...
|
|
9567
|
-
title: isNaN(Number(
|
|
9570
|
+
...f,
|
|
9571
|
+
title: isNaN(Number(f.title)) ? a(f.title) : f.title
|
|
9568
9572
|
}));
|
|
9569
9573
|
return X(() => {
|
|
9570
|
-
const
|
|
9574
|
+
const f = Ba.filterProps(e);
|
|
9571
9575
|
return d("div", {
|
|
9572
9576
|
class: "v-data-table-footer"
|
|
9573
9577
|
}, [n.prepend?.(), d("div", {
|
|
9574
9578
|
class: "v-data-table-footer__items-per-page"
|
|
9575
9579
|
}, [d("span", null, [a(e.itemsPerPageText)]), d(ta, {
|
|
9576
|
-
items:
|
|
9580
|
+
items: v.value,
|
|
9577
9581
|
modelValue: c.value,
|
|
9578
9582
|
"onUpdate:modelValue": (y) => u(Number(y)),
|
|
9579
9583
|
density: "compact",
|
|
@@ -9596,7 +9600,7 @@ const bi = A({
|
|
|
9596
9600
|
"show-first-last-page": !0,
|
|
9597
9601
|
"total-visible": e.showCurrentPage ? 1 : 0,
|
|
9598
9602
|
variant: "plain"
|
|
9599
|
-
},
|
|
9603
|
+
}, f), null)])]);
|
|
9600
9604
|
}), {};
|
|
9601
9605
|
}
|
|
9602
9606
|
}), On = $s({
|
|
@@ -9746,15 +9750,15 @@ function nf(e, t) {
|
|
|
9746
9750
|
const {
|
|
9747
9751
|
element: c,
|
|
9748
9752
|
priority: u
|
|
9749
|
-
} = l.dequeue(),
|
|
9753
|
+
} = l.dequeue(), v = t - a - ul(c);
|
|
9750
9754
|
if (i.push({
|
|
9751
9755
|
...c,
|
|
9752
|
-
rowspan:
|
|
9756
|
+
rowspan: v ?? 1,
|
|
9753
9757
|
colspan: c.children ? Fa(c).length : 1
|
|
9754
9758
|
}), c.children)
|
|
9755
|
-
for (const
|
|
9759
|
+
for (const f of c.children) {
|
|
9756
9760
|
const y = u % 1 + s / Math.pow(10, a + 2);
|
|
9757
|
-
l.enqueue(
|
|
9761
|
+
l.enqueue(f, a + v + y);
|
|
9758
9762
|
}
|
|
9759
9763
|
s += 1, r -= 1;
|
|
9760
9764
|
}
|
|
@@ -9797,9 +9801,9 @@ function af(e, t) {
|
|
|
9797
9801
|
}), t?.showExpand?.value && !u.has("data-table-expand") && c.push({
|
|
9798
9802
|
key: "data-table-expand"
|
|
9799
9803
|
});
|
|
9800
|
-
const
|
|
9801
|
-
tf(
|
|
9802
|
-
const
|
|
9804
|
+
const v = ki(c);
|
|
9805
|
+
tf(v);
|
|
9806
|
+
const f = Math.max(...v.map((h) => ul(h))) + 1, y = nf(v, f);
|
|
9803
9807
|
n.value = y.headers, a.value = y.columns;
|
|
9804
9808
|
const g = y.headers.flat(1);
|
|
9805
9809
|
for (const h of g)
|
|
@@ -9856,8 +9860,8 @@ const xi = A({
|
|
|
9856
9860
|
selectAll: c,
|
|
9857
9861
|
showSelectAll: u
|
|
9858
9862
|
} = na(), {
|
|
9859
|
-
columns:
|
|
9860
|
-
headers:
|
|
9863
|
+
columns: v,
|
|
9864
|
+
headers: f
|
|
9861
9865
|
} = aa(), {
|
|
9862
9866
|
loaderClasses: y
|
|
9863
9867
|
} = Wn(e);
|
|
@@ -9880,8 +9884,8 @@ const xi = A({
|
|
|
9880
9884
|
displayClasses: C,
|
|
9881
9885
|
mobile: k
|
|
9882
9886
|
} = _t(e), x = p(() => ({
|
|
9883
|
-
headers:
|
|
9884
|
-
columns:
|
|
9887
|
+
headers: f.value,
|
|
9888
|
+
columns: v.value,
|
|
9885
9889
|
toggleSort: l,
|
|
9886
9890
|
isSorted: r,
|
|
9887
9891
|
sortBy: o.value,
|
|
@@ -9949,14 +9953,14 @@ const xi = A({
|
|
|
9949
9953
|
}
|
|
9950
9954
|
});
|
|
9951
9955
|
}, V = () => {
|
|
9952
|
-
const S = z(e.headerProps ?? {} ?? {}), P = p(() =>
|
|
9953
|
-
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)
|
|
9954
9958
|
return s.value ? "$checkboxOn" : i.value ? "$checkboxIndeterminate" : "$checkboxOff";
|
|
9955
9959
|
});
|
|
9956
9960
|
return d(On, z({
|
|
9957
9961
|
tag: "th",
|
|
9958
9962
|
class: [...T.value],
|
|
9959
|
-
colspan:
|
|
9963
|
+
colspan: f.value.length + 1
|
|
9960
9964
|
}, S), {
|
|
9961
9965
|
default: () => [d("div", {
|
|
9962
9966
|
class: "v-data-table-header__content"
|
|
@@ -9989,14 +9993,14 @@ const xi = A({
|
|
|
9989
9993
|
})])]
|
|
9990
9994
|
});
|
|
9991
9995
|
};
|
|
9992
|
-
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($, {
|
|
9993
9997
|
column: R,
|
|
9994
9998
|
x: F,
|
|
9995
9999
|
y: P
|
|
9996
10000
|
}, null))])), e.loading && d("tr", {
|
|
9997
10001
|
class: "v-data-table-progress"
|
|
9998
10002
|
}, [d("th", {
|
|
9999
|
-
colspan:
|
|
10003
|
+
colspan: v.value.length
|
|
10000
10004
|
}, [d(tl, {
|
|
10001
10005
|
name: "v-data-table-progress",
|
|
10002
10006
|
absolute: !0,
|
|
@@ -10035,14 +10039,14 @@ const xi = A({
|
|
|
10035
10039
|
style: {
|
|
10036
10040
|
"--v-data-table-group-header-row-depth": e.item.depth
|
|
10037
10041
|
}
|
|
10038
|
-
}, [c.value.map((
|
|
10039
|
-
if (
|
|
10040
|
-
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);
|
|
10041
10045
|
return n["data-table-group"]?.({
|
|
10042
10046
|
item: e.item,
|
|
10043
10047
|
count: u.value.length,
|
|
10044
10048
|
props: {
|
|
10045
|
-
icon:
|
|
10049
|
+
icon: f,
|
|
10046
10050
|
onClick: y
|
|
10047
10051
|
}
|
|
10048
10052
|
}) ?? d(On, {
|
|
@@ -10051,21 +10055,21 @@ const xi = A({
|
|
|
10051
10055
|
default: () => [d(Ie, {
|
|
10052
10056
|
size: "small",
|
|
10053
10057
|
variant: "text",
|
|
10054
|
-
icon:
|
|
10058
|
+
icon: f,
|
|
10055
10059
|
onClick: y
|
|
10056
10060
|
}, null), d("span", null, [e.item.value]), d("span", null, [Ve("("), u.value.length, Ve(")")])]
|
|
10057
10061
|
});
|
|
10058
10062
|
}
|
|
10059
|
-
if (
|
|
10060
|
-
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);
|
|
10061
10065
|
return n["data-table-select"]?.({
|
|
10062
10066
|
props: {
|
|
10063
|
-
modelValue:
|
|
10067
|
+
modelValue: f,
|
|
10064
10068
|
indeterminate: y,
|
|
10065
10069
|
"onUpdate:modelValue": g
|
|
10066
10070
|
}
|
|
10067
10071
|
}) ?? d("td", null, [d(ea, {
|
|
10068
|
-
modelValue:
|
|
10072
|
+
modelValue: f,
|
|
10069
10073
|
indeterminate: y,
|
|
10070
10074
|
"onUpdate:modelValue": g
|
|
10071
10075
|
}, null)]);
|
|
@@ -10099,9 +10103,9 @@ const xi = A({
|
|
|
10099
10103
|
selectAll: c
|
|
10100
10104
|
} = na(), {
|
|
10101
10105
|
isExpanded: u,
|
|
10102
|
-
toggleExpand:
|
|
10106
|
+
toggleExpand: v
|
|
10103
10107
|
} = si(), {
|
|
10104
|
-
toggleSort:
|
|
10108
|
+
toggleSort: f,
|
|
10105
10109
|
sortBy: y,
|
|
10106
10110
|
isSorted: g
|
|
10107
10111
|
} = pi(), {
|
|
@@ -10124,12 +10128,12 @@ const xi = A({
|
|
|
10124
10128
|
isSelected: o,
|
|
10125
10129
|
toggleSelect: r,
|
|
10126
10130
|
isExpanded: u,
|
|
10127
|
-
toggleExpand:
|
|
10131
|
+
toggleExpand: v
|
|
10128
10132
|
}, $ = {
|
|
10129
10133
|
column: m,
|
|
10130
10134
|
selectAll: c,
|
|
10131
10135
|
isSorted: g,
|
|
10132
|
-
toggleSort:
|
|
10136
|
+
toggleSort: f,
|
|
10133
10137
|
sortBy: y.value,
|
|
10134
10138
|
someSelected: i.value,
|
|
10135
10139
|
allSelected: s.value,
|
|
@@ -10173,7 +10177,7 @@ const xi = A({
|
|
|
10173
10177
|
icon: u(C) ? "$collapse" : "$expand",
|
|
10174
10178
|
size: "small",
|
|
10175
10179
|
variant: "text",
|
|
10176
|
-
onClick: Sa(() =>
|
|
10180
|
+
onClick: Sa(() => v(C), ["stop"])
|
|
10177
10181
|
}, null);
|
|
10178
10182
|
const P = xe(T.value);
|
|
10179
10183
|
return l.value ? d(oe, null, [d("div", {
|
|
@@ -10223,9 +10227,9 @@ const xi = A({
|
|
|
10223
10227
|
toggleSelect: c
|
|
10224
10228
|
} = na(), {
|
|
10225
10229
|
toggleGroup: u,
|
|
10226
|
-
isGroupOpen:
|
|
10230
|
+
isGroupOpen: v
|
|
10227
10231
|
} = ci(), {
|
|
10228
|
-
t:
|
|
10232
|
+
t: f
|
|
10229
10233
|
} = Ct(), {
|
|
10230
10234
|
mobile: y
|
|
10231
10235
|
} = _t(e);
|
|
@@ -10234,12 +10238,12 @@ const xi = A({
|
|
|
10234
10238
|
key: "loading"
|
|
10235
10239
|
}, [d("td", {
|
|
10236
10240
|
colspan: l.value.length
|
|
10237
|
-
}, [a.loading?.() ??
|
|
10241
|
+
}, [a.loading?.() ?? f(e.loadingText)])]) : !e.loading && !e.items.length && !e.hideNoData ? d("tr", {
|
|
10238
10242
|
class: "v-data-table-rows-no-data",
|
|
10239
10243
|
key: "no-data"
|
|
10240
10244
|
}, [d("td", {
|
|
10241
10245
|
colspan: l.value.length
|
|
10242
|
-
}, [a["no-data"]?.() ??
|
|
10246
|
+
}, [a["no-data"]?.() ?? f(e.noDataText)])]) : d(oe, null, [e.items.map((g, h) => {
|
|
10243
10247
|
if (g.type === "group") {
|
|
10244
10248
|
const C = {
|
|
10245
10249
|
index: h,
|
|
@@ -10250,7 +10254,7 @@ const xi = A({
|
|
|
10250
10254
|
isSelected: s,
|
|
10251
10255
|
toggleSelect: c,
|
|
10252
10256
|
toggleGroup: u,
|
|
10253
|
-
isGroupOpen:
|
|
10257
|
+
isGroupOpen: v
|
|
10254
10258
|
};
|
|
10255
10259
|
return a["group-header"] ? a["group-header"](C) : d(of, z({
|
|
10256
10260
|
key: `group-header_${g.id}`,
|
|
@@ -10416,8 +10420,8 @@ const vf = A({
|
|
|
10416
10420
|
} = Rd(e), {
|
|
10417
10421
|
disableSort: u
|
|
10418
10422
|
} = _a(e), {
|
|
10419
|
-
columns:
|
|
10420
|
-
headers:
|
|
10423
|
+
columns: v,
|
|
10424
|
+
headers: f,
|
|
10421
10425
|
sortFunctions: y,
|
|
10422
10426
|
sortRawFunctions: g,
|
|
10423
10427
|
filterFunctions: h
|
|
@@ -10427,7 +10431,7 @@ const vf = A({
|
|
|
10427
10431
|
showExpand: M(e, "showExpand")
|
|
10428
10432
|
}), {
|
|
10429
10433
|
items: m
|
|
10430
|
-
} = ff(e,
|
|
10434
|
+
} = ff(e, v), b = M(e, "search"), {
|
|
10431
10435
|
filteredItems: C
|
|
10432
10436
|
} = Cd(e, m, b, {
|
|
10433
10437
|
transform: (ce) => ce.columns,
|
|
@@ -10482,7 +10486,7 @@ const vf = A({
|
|
|
10482
10486
|
selectAll: D,
|
|
10483
10487
|
toggleSelect: N,
|
|
10484
10488
|
someSelected: K,
|
|
10485
|
-
allSelected:
|
|
10489
|
+
allSelected: Z
|
|
10486
10490
|
} = Wd(e, {
|
|
10487
10491
|
allItems: m,
|
|
10488
10492
|
currentPage: ie
|
|
@@ -10512,7 +10516,7 @@ const vf = A({
|
|
|
10512
10516
|
toggleSort: k,
|
|
10513
10517
|
setItemsPerPage: W,
|
|
10514
10518
|
someSelected: K.value,
|
|
10515
|
-
allSelected:
|
|
10519
|
+
allSelected: Z.value,
|
|
10516
10520
|
isSelected: ne,
|
|
10517
10521
|
select: I,
|
|
10518
10522
|
selectAll: D,
|
|
@@ -10524,8 +10528,8 @@ const vf = A({
|
|
|
10524
10528
|
items: ie.value.map((ce) => ce.raw),
|
|
10525
10529
|
internalItems: ie.value,
|
|
10526
10530
|
groupedItems: J.value,
|
|
10527
|
-
columns:
|
|
10528
|
-
headers:
|
|
10531
|
+
columns: v.value,
|
|
10532
|
+
headers: f.value
|
|
10529
10533
|
}));
|
|
10530
10534
|
return X(() => {
|
|
10531
10535
|
const ce = oo.filterProps(e), Xe = ro.filterProps(e), Ge = io.filterProps(e), $e = so.filterProps(e);
|
|
@@ -10569,11 +10573,11 @@ const vf = A({
|
|
|
10569
10573
|
}
|
|
10570
10574
|
function i(s) {
|
|
10571
10575
|
const c = s, u = l.validate();
|
|
10572
|
-
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) => {
|
|
10573
10577
|
let {
|
|
10574
|
-
valid:
|
|
10575
|
-
} =
|
|
10576
|
-
|
|
10578
|
+
valid: f
|
|
10579
|
+
} = v;
|
|
10580
|
+
f && o.value?.submit();
|
|
10577
10581
|
}), c.preventDefault();
|
|
10578
10582
|
}
|
|
10579
10583
|
return X(() => d("form", {
|
|
@@ -10617,7 +10621,7 @@ const vf = A({
|
|
|
10617
10621
|
}), Sf = { class: "ve-search-input" }, Cf = {
|
|
10618
10622
|
key: 0,
|
|
10619
10623
|
class: "d-flex ga-2 justify-end"
|
|
10620
|
-
}, wf = { class: "mx-2" }, kf = /* @__PURE__ */
|
|
10624
|
+
}, wf = { class: "mx-2" }, kf = /* @__PURE__ */ ve({
|
|
10621
10625
|
__name: "GenericTableHeader",
|
|
10622
10626
|
props: /* @__PURE__ */ pe({
|
|
10623
10627
|
keyWord: {},
|
|
@@ -10630,7 +10634,11 @@ const vf = A({
|
|
|
10630
10634
|
search: {},
|
|
10631
10635
|
searchModifiers: {}
|
|
10632
10636
|
}),
|
|
10633
|
-
emits: /* @__PURE__ */ pe([
|
|
10637
|
+
emits: /* @__PURE__ */ pe([
|
|
10638
|
+
"createItem",
|
|
10639
|
+
"update:search",
|
|
10640
|
+
"showAdjustColumns"
|
|
10641
|
+
], ["update:search"]),
|
|
10634
10642
|
setup(e, { emit: t }) {
|
|
10635
10643
|
const n = Ot(), l = e.hideSearch || !1, o = t, r = Le(e, "search"), i = Vt([
|
|
10636
10644
|
{
|
|
@@ -10645,13 +10653,13 @@ const vf = A({
|
|
|
10645
10653
|
return ts(() => {
|
|
10646
10654
|
r.value = "";
|
|
10647
10655
|
}), (s, c) => (H(), he(oe, null, [
|
|
10648
|
-
s.hideHeader ?
|
|
10656
|
+
s.hideHeader ? fe("", !0) : (H(), Y(Gt, {
|
|
10649
10657
|
key: 0,
|
|
10650
10658
|
class: "pa-2",
|
|
10651
10659
|
cols: "12"
|
|
10652
10660
|
}, {
|
|
10653
10661
|
default: L(() => [
|
|
10654
|
-
re(l) ?
|
|
10662
|
+
re(l) ? fe("", !0) : (H(), Y(He, {
|
|
10655
10663
|
key: 0,
|
|
10656
10664
|
cols: 12,
|
|
10657
10665
|
md: 4
|
|
@@ -10663,7 +10671,7 @@ const vf = A({
|
|
|
10663
10671
|
color: "grey-600"
|
|
10664
10672
|
}, {
|
|
10665
10673
|
default: L(() => [
|
|
10666
|
-
Ve("ri-search-line")
|
|
10674
|
+
Ve(" ri-search-line ")
|
|
10667
10675
|
]),
|
|
10668
10676
|
_: 1
|
|
10669
10677
|
}),
|
|
@@ -10683,7 +10691,7 @@ const vf = A({
|
|
|
10683
10691
|
onClick: c[1] || (c[1] = (u) => r.value = "")
|
|
10684
10692
|
}, {
|
|
10685
10693
|
default: L(() => [
|
|
10686
|
-
Ve(" ri-close-line")
|
|
10694
|
+
Ve(" ri-close-line ")
|
|
10687
10695
|
]),
|
|
10688
10696
|
_: 1
|
|
10689
10697
|
}, 512), [
|
|
@@ -10702,8 +10710,8 @@ const vf = A({
|
|
|
10702
10710
|
md: 6
|
|
10703
10711
|
}, {
|
|
10704
10712
|
default: L(() => [
|
|
10705
|
-
s.hideActions ?
|
|
10706
|
-
s.hideSortHeader ?
|
|
10713
|
+
s.hideActions ? fe("", !0) : (H(), he("div", Cf, [
|
|
10714
|
+
s.hideSortHeader ? fe("", !0) : (H(!0), he(oe, { key: 0 }, Ft(i, (u) => (H(), Y(ir, {
|
|
10707
10715
|
key: u.key,
|
|
10708
10716
|
icon: u.icon,
|
|
10709
10717
|
tooltip: u.text,
|
|
@@ -10713,7 +10721,7 @@ const vf = A({
|
|
|
10713
10721
|
onAction: u.action,
|
|
10714
10722
|
class: "no-border-rd"
|
|
10715
10723
|
}, null, 8, ["icon", "tooltip", "color", "onAction"]))), 128)),
|
|
10716
|
-
s.hideCreate ?
|
|
10724
|
+
s.hideCreate ? fe("", !0) : (H(), Y(Ie, {
|
|
10717
10725
|
key: 1,
|
|
10718
10726
|
onClick: c[2] || (c[2] = (u) => s.$emit("createItem")),
|
|
10719
10727
|
class: "d-flex",
|
|
@@ -10722,7 +10730,7 @@ const vf = A({
|
|
|
10722
10730
|
default: L(() => [
|
|
10723
10731
|
d(le, null, {
|
|
10724
10732
|
default: L(() => [
|
|
10725
|
-
Ve("
|
|
10733
|
+
Ve("ri-add-line")
|
|
10726
10734
|
]),
|
|
10727
10735
|
_: 1
|
|
10728
10736
|
}),
|
|
@@ -10741,7 +10749,7 @@ const vf = A({
|
|
|
10741
10749
|
Je(s.$slots, "custom-header", {}, void 0, !0)
|
|
10742
10750
|
], 64));
|
|
10743
10751
|
}
|
|
10744
|
-
}), xf = /* @__PURE__ */ Jt(kf, [["__scopeId", "data-v-
|
|
10752
|
+
}), xf = /* @__PURE__ */ Jt(kf, [["__scopeId", "data-v-e6fb5b32"]]);
|
|
10745
10753
|
function Ne(e) {
|
|
10746
10754
|
e.preventDefault();
|
|
10747
10755
|
}
|
|
@@ -10848,15 +10856,15 @@ function Vf(e = {}) {
|
|
|
10848
10856
|
return;
|
|
10849
10857
|
const c = i.node.el.getBoundingClientRect(), u = w.affectedNodes.findIndex(
|
|
10850
10858
|
(g) => g.data.value === i.node.data.value
|
|
10851
|
-
),
|
|
10859
|
+
), f = w.draggedNode.data.index >= w.targetIndex;
|
|
10852
10860
|
let y;
|
|
10853
|
-
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) {
|
|
10854
10862
|
const g = Math.abs(
|
|
10855
10863
|
c.x - y.el.getBoundingClientRect().x
|
|
10856
10864
|
), h = Math.abs(
|
|
10857
10865
|
c.y - y.el.getBoundingClientRect().y
|
|
10858
10866
|
);
|
|
10859
|
-
g > h &&
|
|
10867
|
+
g > h && f ? Ye(i.node.el, l, s) : g > h && !f && Ye(i.node.el, a, s);
|
|
10860
10868
|
} else
|
|
10861
10869
|
switch (w.incomingDirection) {
|
|
10862
10870
|
case "below":
|
|
@@ -11206,18 +11214,18 @@ function Of({
|
|
|
11206
11214
|
state: r
|
|
11207
11215
|
}) {
|
|
11208
11216
|
la(n.el);
|
|
11209
|
-
const i = a.map((
|
|
11217
|
+
const i = a.map((f) => f.data.value), s = [
|
|
11210
11218
|
...Ut(e.el, e.data).filter(
|
|
11211
|
-
(
|
|
11219
|
+
(f) => !i.some((y) => mn(f, y))
|
|
11212
11220
|
)
|
|
11213
11221
|
], c = Ut(t.el, t.data), u = n.el === t.el && t.data.config.sortable === !1;
|
|
11214
|
-
let
|
|
11215
|
-
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({
|
|
11216
11224
|
sourceParent: e,
|
|
11217
11225
|
targetParent: t,
|
|
11218
11226
|
initialParent: n,
|
|
11219
11227
|
draggedNodes: a,
|
|
11220
|
-
targetIndex:
|
|
11228
|
+
targetIndex: v,
|
|
11221
11229
|
state: r,
|
|
11222
11230
|
targetNodes: o
|
|
11223
11231
|
}), e.data.config.onTransfer && e.data.config.onTransfer({
|
|
@@ -11225,7 +11233,7 @@ function Of({
|
|
|
11225
11233
|
targetParent: t,
|
|
11226
11234
|
initialParent: n,
|
|
11227
11235
|
draggedNodes: a,
|
|
11228
|
-
targetIndex:
|
|
11236
|
+
targetIndex: v,
|
|
11229
11237
|
state: r,
|
|
11230
11238
|
targetNodes: o || []
|
|
11231
11239
|
});
|
|
@@ -11399,10 +11407,10 @@ function la(e, t) {
|
|
|
11399
11407
|
w
|
|
11400
11408
|
), Fe(w) && mn(w.draggedNode.data.value, u.value)) {
|
|
11401
11409
|
w.draggedNode.data = u, w.draggedNode.el = s;
|
|
11402
|
-
const
|
|
11403
|
-
(
|
|
11410
|
+
const v = w.draggedNodes.find(
|
|
11411
|
+
(f) => f.data.value === u.value
|
|
11404
11412
|
);
|
|
11405
|
-
|
|
11413
|
+
v && (v.el = s);
|
|
11406
11414
|
}
|
|
11407
11415
|
r.push({
|
|
11408
11416
|
el: s,
|
|
@@ -11754,7 +11762,7 @@ function uv(e, t, n, a, l, o) {
|
|
|
11754
11762
|
c.forEach((b) => {
|
|
11755
11763
|
h.style[b] = m[b];
|
|
11756
11764
|
});
|
|
11757
|
-
},
|
|
11765
|
+
}, v = (g, h = {}) => {
|
|
11758
11766
|
Object.assign(g.style, {
|
|
11759
11767
|
position: "absolute",
|
|
11760
11768
|
zIndex: "9999",
|
|
@@ -11769,9 +11777,9 @@ function uv(e, t, n, a, l, o) {
|
|
|
11769
11777
|
});
|
|
11770
11778
|
};
|
|
11771
11779
|
if (r.synthDragImage)
|
|
11772
|
-
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);
|
|
11773
11781
|
else if (!r.multiDrag || l.length === 1)
|
|
11774
|
-
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);
|
|
11775
11783
|
else {
|
|
11776
11784
|
const g = document.createElement("div");
|
|
11777
11785
|
g.setAttribute("popover", "manual"), l.forEach((h) => {
|
|
@@ -11780,7 +11788,7 @@ function uv(e, t, n, a, l, o) {
|
|
|
11780
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;
|
|
11781
11789
|
}
|
|
11782
11790
|
i.id = "dnd-dragged-node-clone", t.el.appendChild(i), i.showPopover();
|
|
11783
|
-
const
|
|
11791
|
+
const f = {
|
|
11784
11792
|
clonedDraggedEls: [],
|
|
11785
11793
|
clonedDraggedNode: i,
|
|
11786
11794
|
synthDragScrolling: !1,
|
|
@@ -11797,7 +11805,7 @@ function uv(e, t, n, a, l, o) {
|
|
|
11797
11805
|
s?.offsetX,
|
|
11798
11806
|
s?.offsetY
|
|
11799
11807
|
),
|
|
11800
|
-
...
|
|
11808
|
+
...f
|
|
11801
11809
|
});
|
|
11802
11810
|
}
|
|
11803
11811
|
function cv(e, t, n) {
|
|
@@ -12043,25 +12051,25 @@ function vt(e, t) {
|
|
|
12043
12051
|
}
|
|
12044
12052
|
}
|
|
12045
12053
|
function fo(e, t, n, a, l) {
|
|
12046
|
-
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;
|
|
12047
12055
|
if (i) {
|
|
12048
|
-
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]);
|
|
12049
12057
|
return r ? {
|
|
12050
|
-
left: b &&
|
|
12051
|
-
right: C &&
|
|
12058
|
+
left: b && f < m * 0.075,
|
|
12059
|
+
right: C && f > m * (1 - 0.075)
|
|
12052
12060
|
} : {
|
|
12053
|
-
up: b &&
|
|
12054
|
-
down: C &&
|
|
12061
|
+
up: b && f < m * 0.075,
|
|
12062
|
+
down: C && f > m * (1 - 0.075)
|
|
12055
12063
|
};
|
|
12056
12064
|
}
|
|
12057
12065
|
if ((g === "auto" || g === "scroll") && e !== document.body && e !== document.documentElement) {
|
|
12058
|
-
const h = e[
|
|
12066
|
+
const h = e[v], m = e[u], b = e[s], C = b > 0, k = b < h - m;
|
|
12059
12067
|
return r ? {
|
|
12060
|
-
left: C &&
|
|
12061
|
-
right: k &&
|
|
12068
|
+
left: C && f < y + m * 0.075,
|
|
12069
|
+
right: k && f > y + m * (1 - 0.075)
|
|
12062
12070
|
} : {
|
|
12063
|
-
up: C &&
|
|
12064
|
-
down: k &&
|
|
12071
|
+
up: C && f < y + m * 0.075,
|
|
12072
|
+
down: k && f > y + m * (1 - 0.075)
|
|
12065
12073
|
};
|
|
12066
12074
|
}
|
|
12067
12075
|
return r ? { left: !1, right: !1 } : { up: !1, down: !1 };
|
|
@@ -12077,7 +12085,7 @@ function bv(e, t, n, a) {
|
|
|
12077
12085
|
n[s] !== void 0 && (cancelAnimationFrame(n[s]), n[s] = void 0);
|
|
12078
12086
|
return;
|
|
12079
12087
|
}
|
|
12080
|
-
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];
|
|
12081
12089
|
if (!(o > 0 ? y + g < h : y > 0)) {
|
|
12082
12090
|
n[s] = void 0, n[i] = void 0;
|
|
12083
12091
|
return;
|
|
@@ -12099,11 +12107,11 @@ function ra(e, t, n) {
|
|
|
12099
12107
|
const r = (s, c, u) => {
|
|
12100
12108
|
bv(u, t, n, { axis: s, direction: c }), o = !0;
|
|
12101
12109
|
}, i = (s) => {
|
|
12102
|
-
const c = window.getComputedStyle(s), u = s.getBoundingClientRect(),
|
|
12110
|
+
const c = window.getComputedStyle(s), u = s.getBoundingClientRect(), v = fo(s, t, c, u, {
|
|
12103
12111
|
axis: "x",
|
|
12104
12112
|
state: n
|
|
12105
|
-
}),
|
|
12106
|
-
(
|
|
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));
|
|
12107
12115
|
};
|
|
12108
12116
|
if (n.lastScrollContainerX && vo(n.lastScrollContainerX, a, l) && i(n.lastScrollContainerX), !o && n.lastScrollContainerY && vo(n.lastScrollContainerY, a, l) && i(n.lastScrollContainerY), !o) {
|
|
12109
12117
|
let s = document.elementFromPoint(a, l);
|
|
@@ -12211,7 +12219,7 @@ function Pv(e, t) {
|
|
|
12211
12219
|
});
|
|
12212
12220
|
};
|
|
12213
12221
|
}
|
|
12214
|
-
const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex justify-space-between" }, Dv = { class: "d-flex justify-center" }, Av = /* @__PURE__ */
|
|
12222
|
+
const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex justify-space-between" }, Dv = { class: "d-flex justify-center" }, Av = /* @__PURE__ */ ve({
|
|
12215
12223
|
__name: "AdjustColumnsDialog",
|
|
12216
12224
|
props: /* @__PURE__ */ pe({
|
|
12217
12225
|
showAdjustColumns: { type: Boolean }
|
|
@@ -12223,36 +12231,38 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12223
12231
|
}),
|
|
12224
12232
|
emits: /* @__PURE__ */ pe(["update:showAdjustColumns"], ["update:sortedHeaders"]),
|
|
12225
12233
|
setup(e, { emit: t }) {
|
|
12226
|
-
const n = Ot(), a = t, l = e, o = Le(e, "sortedHeaders"), r = _(), i = (
|
|
12227
|
-
a("update:showAdjustColumns",
|
|
12228
|
-
};
|
|
12229
|
-
U(
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
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
|
|
12246
12256
|
);
|
|
12247
|
-
if (
|
|
12257
|
+
if (u.initialIndex < u.targetIndex)
|
|
12248
12258
|
for (const f of o.value)
|
|
12249
|
-
f.sequence >
|
|
12259
|
+
f.sequence > u.initialIndex && f.sequence <= u.targetIndex && f.sequence--;
|
|
12250
12260
|
else
|
|
12251
12261
|
for (const f of o.value)
|
|
12252
|
-
f.sequence <
|
|
12253
|
-
|
|
12262
|
+
f.sequence < u.initialIndex && f.sequence >= u.targetIndex && f.sequence++;
|
|
12263
|
+
v && (v.sequence = u.targetIndex);
|
|
12254
12264
|
};
|
|
12255
|
-
return (
|
|
12265
|
+
return (u, v) => (H(), Y(oi, {
|
|
12256
12266
|
"model-value": l.showAdjustColumns,
|
|
12257
12267
|
"onUpdate:modelValue": i,
|
|
12258
12268
|
width: "500"
|
|
@@ -12269,10 +12279,10 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12269
12279
|
ref: r,
|
|
12270
12280
|
class: "kanban-board-drop-zone mb-4 rounded d-flex flex-column gap-4"
|
|
12271
12281
|
}, [
|
|
12272
|
-
(H(!0), he(oe, null, Ft(
|
|
12282
|
+
(H(!0), he(oe, null, Ft(s.value, (f) => (H(), he(oe, {
|
|
12273
12283
|
key: f.sequence
|
|
12274
12284
|
}, [
|
|
12275
|
-
f ? (H(),
|
|
12285
|
+
f ? (H(), Y(gt, {
|
|
12276
12286
|
key: 0,
|
|
12277
12287
|
variant: "outlined",
|
|
12278
12288
|
ripple: !1,
|
|
@@ -12293,7 +12303,7 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12293
12303
|
Ve(" " + xe(f.title), 1)
|
|
12294
12304
|
]),
|
|
12295
12305
|
d(le, {
|
|
12296
|
-
onClick: (
|
|
12306
|
+
onClick: (y) => f.isVisible = !f.isVisible,
|
|
12297
12307
|
class: "drag-handler",
|
|
12298
12308
|
size: "18",
|
|
12299
12309
|
icon: f.isVisible ? "ri-eye-fill" : "ri-eye-off-fill"
|
|
@@ -12305,7 +12315,7 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12305
12315
|
}, 1024)
|
|
12306
12316
|
]),
|
|
12307
12317
|
_: 2
|
|
12308
|
-
}, 1024)) :
|
|
12318
|
+
}, 1024)) : fe("", !0)
|
|
12309
12319
|
], 64))), 128))
|
|
12310
12320
|
], 512)
|
|
12311
12321
|
]),
|
|
@@ -12318,7 +12328,7 @@ const Vv = { class: "text-base text-high-emphasis mb-0" }, Iv = { class: "d-flex
|
|
|
12318
12328
|
_: 1
|
|
12319
12329
|
}, 8, ["model-value"]));
|
|
12320
12330
|
}
|
|
12321
|
-
}), Tv = /* @__PURE__ */ Jt(Av, [["__scopeId", "data-v-
|
|
12331
|
+
}), Tv = /* @__PURE__ */ Jt(Av, [["__scopeId", "data-v-922cacda"]]);
|
|
12322
12332
|
function Ev({
|
|
12323
12333
|
tableRef: e,
|
|
12324
12334
|
props: t,
|
|
@@ -12327,7 +12337,7 @@ function Ev({
|
|
|
12327
12337
|
hysteresis: l = 8
|
|
12328
12338
|
}) {
|
|
12329
12339
|
const o = _(void 0), r = _(!0), i = _(!1), s = _(null), c = _(null), u = _(null);
|
|
12330
|
-
let
|
|
12340
|
+
let v = null, f = null, y = null;
|
|
12331
12341
|
const g = () => {
|
|
12332
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;
|
|
12333
12343
|
}, h = () => u.value?.getBoundingClientRect().height ?? null, m = () => window.innerHeight * (a / 100), b = (x) => {
|
|
@@ -12351,9 +12361,9 @@ function Ev({
|
|
|
12351
12361
|
await Se(), g();
|
|
12352
12362
|
const x = c.value;
|
|
12353
12363
|
if (!x) return;
|
|
12354
|
-
|
|
12364
|
+
v = new ResizeObserver(() => k()), v.observe(x);
|
|
12355
12365
|
const T = u.value;
|
|
12356
|
-
T && (
|
|
12366
|
+
T && (f = new MutationObserver(() => k()), f.observe(T, { childList: !0, subtree: !0 })), window.addEventListener("resize", k, { passive: !0 }), U(
|
|
12357
12367
|
[
|
|
12358
12368
|
() => t.items.length,
|
|
12359
12369
|
() => n.value.pageSize,
|
|
@@ -12369,10 +12379,10 @@ function Ev({
|
|
|
12369
12379
|
{ deep: !0, flush: "post" }
|
|
12370
12380
|
), k();
|
|
12371
12381
|
}), qe(() => {
|
|
12372
|
-
|
|
12382
|
+
v?.disconnect(), f?.disconnect(), y != null && cancelAnimationFrame(y), window.removeEventListener("resize", k), v = f = null, y = null;
|
|
12373
12383
|
}), { tableHeight: o, tableHideOverflow: r };
|
|
12374
12384
|
}
|
|
12375
|
-
const Bv = /* @__PURE__ */
|
|
12385
|
+
const Bv = /* @__PURE__ */ ve({
|
|
12376
12386
|
__name: "GenericItemActions",
|
|
12377
12387
|
props: {
|
|
12378
12388
|
headers: {}
|
|
@@ -12388,7 +12398,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12388
12398
|
Je(a.$slots, "default")
|
|
12389
12399
|
], 2));
|
|
12390
12400
|
}
|
|
12391
|
-
}), Fv = { class: "d-flex justify-end mt-3" }, $v = /* @__PURE__ */
|
|
12401
|
+
}), Fv = { class: "d-flex justify-end mt-3" }, $v = /* @__PURE__ */ ve({
|
|
12392
12402
|
__name: "TableColumnFilterMenu",
|
|
12393
12403
|
props: {
|
|
12394
12404
|
column: {},
|
|
@@ -12400,9 +12410,9 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12400
12410
|
}, i = (c) => {
|
|
12401
12411
|
if (l.value[c] = !1, a.value[c] = o.value, (a.value[c] === "" || a.value[c] == null) && delete a.value[c], n.filterFn) {
|
|
12402
12412
|
const u = Object.keys(a.value).map(
|
|
12403
|
-
(
|
|
12404
|
-
field:
|
|
12405
|
-
value: a.value[
|
|
12413
|
+
(v) => ({
|
|
12414
|
+
field: v,
|
|
12415
|
+
value: a.value[v]
|
|
12406
12416
|
})
|
|
12407
12417
|
);
|
|
12408
12418
|
n.filterFn(u);
|
|
@@ -12416,15 +12426,15 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12416
12426
|
(c) => {
|
|
12417
12427
|
c && (o.value = a.value[n.column.value]);
|
|
12418
12428
|
}
|
|
12419
|
-
), (c, u) => (H(),
|
|
12429
|
+
), (c, u) => (H(), Y(Jn, {
|
|
12420
12430
|
"close-on-content-click": !1,
|
|
12421
12431
|
"offset-y": "",
|
|
12422
12432
|
"offset-x": "",
|
|
12423
12433
|
modelValue: l.value[c.column.value],
|
|
12424
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
12434
|
+
"onUpdate:modelValue": u[3] || (u[3] = (v) => l.value[c.column.value] = v)
|
|
12425
12435
|
}, {
|
|
12426
|
-
activator: L(({ props:
|
|
12427
|
-
d(le, z(
|
|
12436
|
+
activator: L(({ props: v }) => [
|
|
12437
|
+
d(le, z(v, {
|
|
12428
12438
|
icon: "ri-filter-line",
|
|
12429
12439
|
color: a.value[c.column.value] ? "success" : "medium-emphasis",
|
|
12430
12440
|
size: "small",
|
|
@@ -12447,7 +12457,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12447
12457
|
default: L(() => [
|
|
12448
12458
|
d(vn, {
|
|
12449
12459
|
modelValue: o.value,
|
|
12450
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
12460
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => o.value = v),
|
|
12451
12461
|
label: re(t)("filterBy"),
|
|
12452
12462
|
density: "compact",
|
|
12453
12463
|
variant: "outlined",
|
|
@@ -12459,7 +12469,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12459
12469
|
variant: "text",
|
|
12460
12470
|
size: "small",
|
|
12461
12471
|
color: "grey",
|
|
12462
|
-
onClick: u[1] || (u[1] = (
|
|
12472
|
+
onClick: u[1] || (u[1] = (v) => s(c.column.value))
|
|
12463
12473
|
}, {
|
|
12464
12474
|
default: L(() => [
|
|
12465
12475
|
Ve(xe(re(t)("cancel")), 1)
|
|
@@ -12471,7 +12481,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12471
12481
|
size: "small",
|
|
12472
12482
|
color: "primary",
|
|
12473
12483
|
class: "ml-2",
|
|
12474
|
-
onClick: u[2] || (u[2] = (
|
|
12484
|
+
onClick: u[2] || (u[2] = (v) => i(c.column.value))
|
|
12475
12485
|
}, {
|
|
12476
12486
|
default: L(() => [
|
|
12477
12487
|
Ve(xe(re(t)("ok")), 1)
|
|
@@ -12486,7 +12496,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12486
12496
|
_: 1
|
|
12487
12497
|
}, 8, ["modelValue"]));
|
|
12488
12498
|
}
|
|
12489
|
-
}), Lv = ["textContent"], Nv = { class: "ms-2" }, _v = { class: "ms-2" }, Ov = { class: "ms-2" }, Rv = { class: "ms-2" }, Mv = /* @__PURE__ */
|
|
12499
|
+
}), Lv = ["textContent"], Nv = { class: "ms-2" }, _v = { class: "ms-2" }, Ov = { class: "ms-2" }, Rv = { class: "ms-2" }, Mv = /* @__PURE__ */ ve({
|
|
12490
12500
|
__name: "TableColumnActionsMenu",
|
|
12491
12501
|
props: {
|
|
12492
12502
|
column: {},
|
|
@@ -12498,7 +12508,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12498
12508
|
emits: ["hideColumn", "moveLeft", "moveRight"],
|
|
12499
12509
|
setup(e, { emit: t }) {
|
|
12500
12510
|
const n = Ot(), a = t, l = _({});
|
|
12501
|
-
return (o, r) => (H(),
|
|
12511
|
+
return (o, r) => (H(), Y(Jn, {
|
|
12502
12512
|
"close-on-content-click": !1,
|
|
12503
12513
|
"offset-y": "",
|
|
12504
12514
|
"offset-x": "",
|
|
@@ -12512,12 +12522,12 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12512
12522
|
ke("span", {
|
|
12513
12523
|
textContent: xe(o.column.title)
|
|
12514
12524
|
}, null, 8, Lv),
|
|
12515
|
-
o.isSorted(o.column) ? (H(),
|
|
12525
|
+
o.isSorted(o.column) ? (H(), Y(le, {
|
|
12516
12526
|
key: 0,
|
|
12517
12527
|
onClick: r[0] || (r[0] = (s) => o.toggleSort(o.column)),
|
|
12518
12528
|
icon: o.getSortIcon(o.column),
|
|
12519
12529
|
color: "medium-emphasis"
|
|
12520
|
-
}, null, 8, ["icon"])) :
|
|
12530
|
+
}, null, 8, ["icon"])) : fe("", !0)
|
|
12521
12531
|
], 16)
|
|
12522
12532
|
]),
|
|
12523
12533
|
default: L(() => [
|
|
@@ -12526,7 +12536,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12526
12536
|
class: "pa-3"
|
|
12527
12537
|
}, {
|
|
12528
12538
|
default: L(() => [
|
|
12529
|
-
o.column.sortable ? (H(),
|
|
12539
|
+
o.column.sortable ? (H(), Y(Ze, {
|
|
12530
12540
|
key: 0,
|
|
12531
12541
|
onClick: r[1] || (r[1] = (i) => (o.toggleSort(o.column), l.value[o.column.value] = !1))
|
|
12532
12542
|
}, {
|
|
@@ -12535,7 +12545,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12535
12545
|
ke("span", Nv, xe(re(n)("classify")), 1)
|
|
12536
12546
|
]),
|
|
12537
12547
|
_: 1
|
|
12538
|
-
})) :
|
|
12548
|
+
})) : fe("", !0),
|
|
12539
12549
|
d(Ze, {
|
|
12540
12550
|
onClick: r[2] || (r[2] = (i) => (a("hideColumn", o.column), l.value[o.column.value] = !1))
|
|
12541
12551
|
}, {
|
|
@@ -12570,7 +12580,7 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12570
12580
|
_: 1
|
|
12571
12581
|
}, 8, ["modelValue"]));
|
|
12572
12582
|
}
|
|
12573
|
-
}), Hv = { class: "position-sticky top-0" }, zv = { class: "d-flex justify-space-between align-center" }, jv = /* @__PURE__ */
|
|
12583
|
+
}), Hv = { class: "position-sticky top-0" }, zv = { class: "d-flex justify-space-between align-center" }, jv = /* @__PURE__ */ ve({
|
|
12574
12584
|
__name: "TableHeader",
|
|
12575
12585
|
props: /* @__PURE__ */ pe({
|
|
12576
12586
|
columns: {},
|
|
@@ -12616,11 +12626,11 @@ const Bv = /* @__PURE__ */ fe({
|
|
|
12616
12626
|
onMoveLeft: a,
|
|
12617
12627
|
onMoveRight: l
|
|
12618
12628
|
}, null, 8, ["column", "getSortIcon", "isSorted", "toggleSort"]),
|
|
12619
|
-
o(s) ? (H(),
|
|
12629
|
+
o(s) ? (H(), Y($v, {
|
|
12620
12630
|
key: 0,
|
|
12621
12631
|
column: s,
|
|
12622
12632
|
filterFn: r.filterFn
|
|
12623
|
-
}, null, 8, ["column", "filterFn"])) :
|
|
12633
|
+
}, null, 8, ["column", "filterFn"])) : fe("", !0)
|
|
12624
12634
|
])
|
|
12625
12635
|
]))), 128))
|
|
12626
12636
|
]));
|
|
@@ -12673,7 +12683,7 @@ function ng() {
|
|
|
12673
12683
|
}
|
|
12674
12684
|
return { debounce: t, clearDebounce: n };
|
|
12675
12685
|
}
|
|
12676
|
-
const ag = /* @__PURE__ */
|
|
12686
|
+
const ag = /* @__PURE__ */ ve({
|
|
12677
12687
|
__name: "TableCell",
|
|
12678
12688
|
props: {
|
|
12679
12689
|
header: {},
|
|
@@ -12684,9 +12694,9 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12684
12694
|
n.item[n.header.value] = a.value, n.header.editFn ? n.header.editFn(n.item.id, n.header.value, a.value) : h();
|
|
12685
12695
|
}, c = r(s, 1e3), u = async () => {
|
|
12686
12696
|
l.value = !1, i(), s();
|
|
12687
|
-
},
|
|
12697
|
+
}, v = async () => {
|
|
12688
12698
|
c();
|
|
12689
|
-
},
|
|
12699
|
+
}, f = () => {
|
|
12690
12700
|
try {
|
|
12691
12701
|
const m = n.header.value, b = m.split(".");
|
|
12692
12702
|
if (b.length == 1)
|
|
@@ -12707,7 +12717,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12707
12717
|
}, h = () => {
|
|
12708
12718
|
console.warn(t("editFnNotDefined"));
|
|
12709
12719
|
};
|
|
12710
|
-
return (m, b) => (H(),
|
|
12720
|
+
return (m, b) => (H(), Y(bf, null, {
|
|
12711
12721
|
default: L(({ isHovering: C, props: k }) => [
|
|
12712
12722
|
d(Gt, z({ class: "d-flex justify-space-between position-relative align-center" }, k), {
|
|
12713
12723
|
default: L(() => [
|
|
@@ -12721,7 +12731,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12721
12731
|
ref: o,
|
|
12722
12732
|
"onUpdate:modelValue": b[1] || (b[1] = (x) => a.value = x),
|
|
12723
12733
|
onBlur: b[2] || (b[2] = (x) => u()),
|
|
12724
|
-
onInput: b[3] || (b[3] = (x) =>
|
|
12734
|
+
onInput: b[3] || (b[3] = (x) => v()),
|
|
12725
12735
|
style: { "font-size": "inherit", padding: "0", margin: "0", border: "none", background: "transparent", outline: "none" },
|
|
12726
12736
|
class: "ma-0 w-100",
|
|
12727
12737
|
autofocus: ""
|
|
@@ -12733,17 +12743,17 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12733
12743
|
style: { "max-width": "240px", "vertical-align": "middle", padding: "0", margin: "0" },
|
|
12734
12744
|
onClick: b[0] || (b[0] = (x) => m.header.editable && g())
|
|
12735
12745
|
}, [
|
|
12736
|
-
Ve(xe(
|
|
12746
|
+
Ve(xe(f()) + " ", 1),
|
|
12737
12747
|
d(nl, {
|
|
12738
12748
|
activator: "parent",
|
|
12739
|
-
text:
|
|
12749
|
+
text: f(),
|
|
12740
12750
|
location: "top"
|
|
12741
12751
|
}, null, 8, ["text"])
|
|
12742
12752
|
]))
|
|
12743
12753
|
]),
|
|
12744
12754
|
_: 1
|
|
12745
12755
|
}, 8, ["cols"]),
|
|
12746
|
-
C && m.header?.editable && !y() ? (H(),
|
|
12756
|
+
C && m.header?.editable && !y() ? (H(), Y(le, {
|
|
12747
12757
|
key: 0,
|
|
12748
12758
|
class: "cursor-pointer position-absolute right-0",
|
|
12749
12759
|
onClick: b[4] || (b[4] = (x) => g()),
|
|
@@ -12753,7 +12763,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12753
12763
|
Ve(" ri-pencil-line ")
|
|
12754
12764
|
]),
|
|
12755
12765
|
_: 1
|
|
12756
|
-
})) :
|
|
12766
|
+
})) : fe("", !0)
|
|
12757
12767
|
]),
|
|
12758
12768
|
_: 2
|
|
12759
12769
|
}, 1040)
|
|
@@ -12764,7 +12774,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12764
12774
|
}), lg = {
|
|
12765
12775
|
key: 0,
|
|
12766
12776
|
class: "card-content"
|
|
12767
|
-
}, og = /* @__PURE__ */
|
|
12777
|
+
}, og = /* @__PURE__ */ ve({
|
|
12768
12778
|
__name: "GenericDataTable",
|
|
12769
12779
|
props: /* @__PURE__ */ pe({
|
|
12770
12780
|
items: {},
|
|
@@ -12792,7 +12802,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12792
12802
|
maxHeightVH: 75,
|
|
12793
12803
|
hysteresis: 8
|
|
12794
12804
|
});
|
|
12795
|
-
return (i, s) => (H(),
|
|
12805
|
+
return (i, s) => (H(), Y(mf, {
|
|
12796
12806
|
loading: i.loading,
|
|
12797
12807
|
"items-per-page": n.value.pageSize,
|
|
12798
12808
|
page: n.value.page,
|
|
@@ -12808,12 +12818,12 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12808
12818
|
height: re(o),
|
|
12809
12819
|
class: Ha({ "hide-overflow-y": re(r) })
|
|
12810
12820
|
}, za({
|
|
12811
|
-
headers: L(({ columns: c, isSorted: u, getSortIcon:
|
|
12821
|
+
headers: L(({ columns: c, isSorted: u, getSortIcon: v, toggleSort: f }) => [
|
|
12812
12822
|
d(jv, {
|
|
12813
12823
|
columns: c,
|
|
12814
12824
|
isSorted: u,
|
|
12815
|
-
getSortIcon:
|
|
12816
|
-
toggleSort:
|
|
12825
|
+
getSortIcon: v,
|
|
12826
|
+
toggleSort: f,
|
|
12817
12827
|
filterFn: i.filterFn,
|
|
12818
12828
|
sortedHeaders: t.value,
|
|
12819
12829
|
"onUpdate:sortedHeaders": s[0] || (s[0] = (y) => t.value = y)
|
|
@@ -12835,7 +12845,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12835
12845
|
fn: L(({ item: u }) => [
|
|
12836
12846
|
i.$slots[c.value] ? (H(), he("div", lg, [
|
|
12837
12847
|
Je(i.$slots, c.value, { item: u })
|
|
12838
|
-
])) : (H(),
|
|
12848
|
+
])) : (H(), Y(ag, {
|
|
12839
12849
|
key: 1,
|
|
12840
12850
|
header: c,
|
|
12841
12851
|
item: u
|
|
@@ -12844,7 +12854,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12844
12854
|
}))
|
|
12845
12855
|
]), 1032, ["loading", "items-per-page", "page", "items", "headers", "no-data-text", "v-bind", "height", "class"]));
|
|
12846
12856
|
}
|
|
12847
|
-
}), rg = /* @__PURE__ */
|
|
12857
|
+
}), rg = /* @__PURE__ */ ve({
|
|
12848
12858
|
__name: "GenericTable",
|
|
12849
12859
|
props: /* @__PURE__ */ pe({
|
|
12850
12860
|
keyWord: {},
|
|
@@ -12852,6 +12862,7 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12852
12862
|
hideCreate: { type: Boolean },
|
|
12853
12863
|
hideSearch: { type: Boolean },
|
|
12854
12864
|
hideHeader: { type: Boolean },
|
|
12865
|
+
hidePagination: { type: Boolean },
|
|
12855
12866
|
hideSortHeader: { type: Boolean },
|
|
12856
12867
|
loading: { type: Boolean },
|
|
12857
12868
|
filterFn: { type: Function },
|
|
@@ -12871,75 +12882,76 @@ const ag = /* @__PURE__ */ fe({
|
|
|
12871
12882
|
emits: /* @__PURE__ */ pe(["createItem", "update:options", "update:search"], ["update:search", "update:headers", "update:items", "update:pagination"]),
|
|
12872
12883
|
setup(e, { emit: t }) {
|
|
12873
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(
|
|
12874
|
-
() => [...o.value].sort((u,
|
|
12885
|
+
() => [...o.value].sort((u, v) => u.sequence - v.sequence)
|
|
12875
12886
|
);
|
|
12876
12887
|
return yt(() => {
|
|
12877
12888
|
i.value.page = 1;
|
|
12878
|
-
}), (u,
|
|
12889
|
+
}), (u, v) => (H(), he(oe, null, [
|
|
12879
12890
|
d(gt, {
|
|
12880
12891
|
variant: u.variant ?? "elevated",
|
|
12881
12892
|
class: "py-0"
|
|
12882
12893
|
}, {
|
|
12883
12894
|
default: L(() => [
|
|
12884
|
-
u.hideHeader ?
|
|
12895
|
+
u.hideHeader ? fe("", !0) : (H(), Y(xf, {
|
|
12885
12896
|
key: 0,
|
|
12886
12897
|
keyWord: u.keyWord,
|
|
12887
12898
|
search: l.value,
|
|
12888
12899
|
"onUpdate:search": [
|
|
12889
|
-
|
|
12890
|
-
|
|
12900
|
+
v[0] || (v[0] = (f) => l.value = f),
|
|
12901
|
+
v[2] || (v[2] = (f) => l.value = f)
|
|
12891
12902
|
],
|
|
12892
12903
|
hideCreate: u.hideCreate,
|
|
12893
12904
|
hideSearch: u.hideSearch,
|
|
12894
12905
|
hideSortHeader: u.hideSortHeader,
|
|
12895
|
-
onCreateItem:
|
|
12896
|
-
onShowAdjustColumns:
|
|
12906
|
+
onCreateItem: v[1] || (v[1] = (f) => u.$emit("createItem")),
|
|
12907
|
+
onShowAdjustColumns: v[3] || (v[3] = (f) => s.value = !0)
|
|
12897
12908
|
}, {
|
|
12898
|
-
"custom-btn": L((
|
|
12899
|
-
Je(u.$slots, "custom-btn", fl(vl(
|
|
12909
|
+
"custom-btn": L((f) => [
|
|
12910
|
+
Je(u.$slots, "custom-btn", fl(vl(f)), void 0, !0)
|
|
12900
12911
|
]),
|
|
12901
12912
|
_: 3
|
|
12902
12913
|
}, 8, ["keyWord", "search", "hideCreate", "hideSearch", "hideSortHeader"])),
|
|
12903
12914
|
d(og, z({
|
|
12904
12915
|
loading: u.loading,
|
|
12905
12916
|
pagination: i.value,
|
|
12906
|
-
"onUpdate:pagination":
|
|
12917
|
+
"onUpdate:pagination": v[4] || (v[4] = (f) => i.value = f),
|
|
12907
12918
|
items: r.value,
|
|
12908
|
-
headers: c.value.filter((
|
|
12919
|
+
headers: c.value.filter((f) => f.isVisible),
|
|
12909
12920
|
sortedHeaders: c.value,
|
|
12910
|
-
"onUpdate:sortedHeaders":
|
|
12921
|
+
"onUpdate:sortedHeaders": v[5] || (v[5] = (f) => c.value = f),
|
|
12911
12922
|
filterFn: u.filterFn,
|
|
12912
12923
|
noItemsText: u.noItemsText
|
|
12913
12924
|
}, u.$slots), za({ _: 2 }, [
|
|
12914
|
-
Ft(re(a), (
|
|
12915
|
-
name:
|
|
12925
|
+
Ft(re(a), (f) => ({
|
|
12926
|
+
name: f,
|
|
12916
12927
|
fn: L((y) => [
|
|
12917
|
-
Je(u.$slots,
|
|
12928
|
+
Je(u.$slots, f, fl(vl(y)), void 0, !0)
|
|
12918
12929
|
])
|
|
12919
12930
|
}))
|
|
12920
12931
|
]), 1040, ["loading", "pagination", "items", "headers", "sortedHeaders", "filterFn", "noItemsText"]),
|
|
12921
|
-
i.value?.total > 0 ? (H(),
|
|
12932
|
+
i.value?.total > 0 ? (H(), Y(hd, {
|
|
12922
12933
|
key: 1,
|
|
12923
12934
|
pagination: i.value,
|
|
12924
|
-
"onUpdate:pagination":
|
|
12935
|
+
"onUpdate:pagination": v[6] || (v[6] = (f) => i.value = f),
|
|
12925
12936
|
headers: o.value,
|
|
12926
12937
|
data: r.value,
|
|
12927
|
-
"
|
|
12928
|
-
|
|
12938
|
+
"hide-pagination": u.hidePagination,
|
|
12939
|
+
"onUpdate:options": v[7] || (v[7] = (f) => u.$emit("update:options"))
|
|
12940
|
+
}, null, 8, ["pagination", "headers", "data", "hide-pagination"])) : fe("", !0)
|
|
12929
12941
|
]),
|
|
12930
12942
|
_: 3
|
|
12931
12943
|
}, 8, ["variant"]),
|
|
12932
12944
|
d(Tv, {
|
|
12933
12945
|
showAdjustColumns: s.value,
|
|
12934
|
-
"onUpdate:showAdjustColumns":
|
|
12946
|
+
"onUpdate:showAdjustColumns": v[8] || (v[8] = (f) => s.value = f),
|
|
12935
12947
|
sortedHeaders: c.value,
|
|
12936
|
-
"onUpdate:sortedHeaders":
|
|
12948
|
+
"onUpdate:sortedHeaders": v[9] || (v[9] = (f) => c.value = f)
|
|
12937
12949
|
}, null, 8, ["showAdjustColumns", "sortedHeaders"])
|
|
12938
12950
|
], 64));
|
|
12939
12951
|
}
|
|
12940
|
-
}), ig = /* @__PURE__ */ Jt(rg, [["__scopeId", "data-v-
|
|
12952
|
+
}), ig = /* @__PURE__ */ Jt(rg, [["__scopeId", "data-v-ad0a09da"]]), sg = {};
|
|
12941
12953
|
function ug(e, t) {
|
|
12942
|
-
return H(),
|
|
12954
|
+
return H(), Y(gt, {
|
|
12943
12955
|
class: "d-flex align-center justify-center h-100 w-100 position-absolute top-0 left-0 bg-surface",
|
|
12944
12956
|
style: { "z-index": "2" }
|
|
12945
12957
|
}, {
|
|
@@ -12953,7 +12965,7 @@ function ug(e, t) {
|
|
|
12953
12965
|
_: 1
|
|
12954
12966
|
});
|
|
12955
12967
|
}
|
|
12956
|
-
const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex align-center" }, fg = { class: "text-h5" }, vg = /* @__PURE__ */
|
|
12968
|
+
const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex align-center" }, fg = { class: "text-h5" }, vg = /* @__PURE__ */ ve({
|
|
12957
12969
|
__name: "FormTitle",
|
|
12958
12970
|
props: {
|
|
12959
12971
|
title: {}
|
|
@@ -13079,13 +13091,13 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13079
13091
|
default: !1
|
|
13080
13092
|
}
|
|
13081
13093
|
}
|
|
13082
|
-
}, gg = { class: "pa-0" }, mg = /* @__PURE__ */
|
|
13094
|
+
}, gg = { class: "pa-0" }, mg = /* @__PURE__ */ ve({
|
|
13083
13095
|
__name: "FormCardTitle",
|
|
13084
13096
|
props: {
|
|
13085
13097
|
title: {}
|
|
13086
13098
|
},
|
|
13087
13099
|
setup(e) {
|
|
13088
|
-
return (t, n) => t.title ? (H(),
|
|
13100
|
+
return (t, n) => t.title ? (H(), Y(ri, {
|
|
13089
13101
|
key: 0,
|
|
13090
13102
|
class: "text-center mb-6"
|
|
13091
13103
|
}, {
|
|
@@ -13093,9 +13105,9 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13093
13105
|
ke("p", gg, xe(t.title), 1)
|
|
13094
13106
|
]),
|
|
13095
13107
|
_: 1
|
|
13096
|
-
})) :
|
|
13108
|
+
})) : fe("", !0);
|
|
13097
13109
|
}
|
|
13098
|
-
}), yg = /* @__PURE__ */
|
|
13110
|
+
}), yg = /* @__PURE__ */ ve({
|
|
13099
13111
|
__name: "FormActionsButtons",
|
|
13100
13112
|
props: {
|
|
13101
13113
|
hideCancelButton: { type: Boolean },
|
|
@@ -13106,9 +13118,9 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13106
13118
|
emits: ["cancel", "submit"],
|
|
13107
13119
|
setup(e, { emit: t }) {
|
|
13108
13120
|
const n = t, a = Ot();
|
|
13109
|
-
return (l, o) => (H(),
|
|
13121
|
+
return (l, o) => (H(), Y(Gt, { class: "ma-0 gap-4 pa-5" }, {
|
|
13110
13122
|
default: L(() => [
|
|
13111
|
-
l.hideCancelButton ?
|
|
13123
|
+
l.hideCancelButton ? fe("", !0) : (H(), Y(He, {
|
|
13112
13124
|
key: 0,
|
|
13113
13125
|
class: "pa-0"
|
|
13114
13126
|
}, {
|
|
@@ -13154,7 +13166,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13154
13166
|
e.prependComponent ? -1 : 0
|
|
13155
13167
|
].reduce((r, i) => r + i, 0);
|
|
13156
13168
|
return Math.max(a + o, 2);
|
|
13157
|
-
}, pg = { class: "d-flex align-center bg-background rounded border-thin" }, bg = /* @__PURE__ */
|
|
13169
|
+
}, pg = { class: "d-flex align-center bg-background rounded border-thin" }, bg = /* @__PURE__ */ ve({
|
|
13158
13170
|
__name: "FormButtonOptionsField",
|
|
13159
13171
|
props: {
|
|
13160
13172
|
field: {}
|
|
@@ -13165,13 +13177,13 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13165
13177
|
() => n.field.options && n.field.options.length ? 12 / n.field.options.length : 12
|
|
13166
13178
|
), o = (r) => n.field.value == r.text || n.field.value == r.value ? "flat" : "text";
|
|
13167
13179
|
return (r, i) => (H(), he("div", pg, [
|
|
13168
|
-
(H(!0), he(oe, null, Ft(r.field.options || [], (s, c) => (H(),
|
|
13180
|
+
(H(!0), he(oe, null, Ft(r.field.options || [], (s, c) => (H(), Y(He, {
|
|
13169
13181
|
key: c,
|
|
13170
13182
|
cols: l.value,
|
|
13171
13183
|
class: "pa-0"
|
|
13172
13184
|
}, {
|
|
13173
13185
|
default: L(() => [
|
|
13174
|
-
(H(),
|
|
13186
|
+
(H(), Y(Ie, {
|
|
13175
13187
|
block: "",
|
|
13176
13188
|
key: s.text,
|
|
13177
13189
|
text: s.text,
|
|
@@ -13426,7 +13438,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13426
13438
|
default: !1
|
|
13427
13439
|
}
|
|
13428
13440
|
}
|
|
13429
|
-
}, Sg = /* @__PURE__ */
|
|
13441
|
+
}, Sg = /* @__PURE__ */ ve({
|
|
13430
13442
|
__name: "CInputText",
|
|
13431
13443
|
props: /* @__PURE__ */ pe({
|
|
13432
13444
|
...sa.props
|
|
@@ -13442,7 +13454,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13442
13454
|
], ["update:modelValue"]),
|
|
13443
13455
|
setup(e, { emit: t }) {
|
|
13444
13456
|
const n = t, a = _(null), l = Le(e, "modelValue");
|
|
13445
|
-
return (o, r) => (H(),
|
|
13457
|
+
return (o, r) => (H(), Y(vn, {
|
|
13446
13458
|
ref_key: "input",
|
|
13447
13459
|
ref: a,
|
|
13448
13460
|
modelValue: l.value,
|
|
@@ -13465,7 +13477,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13465
13477
|
"onClick:append": r[4] || (r[4] = (i) => n("click:append"))
|
|
13466
13478
|
}, null, 8, ["modelValue", "autofocus", "label", "placeholder", "error-messages", "rules", "maxLength", "minLength", "prefix", "suffix", "disabled", "counter"]));
|
|
13467
13479
|
}
|
|
13468
|
-
}), Cg = /* @__PURE__ */
|
|
13480
|
+
}), Cg = /* @__PURE__ */ ve({
|
|
13469
13481
|
__name: "CInputNumber",
|
|
13470
13482
|
props: /* @__PURE__ */ pe({
|
|
13471
13483
|
...sa.props
|
|
@@ -13481,7 +13493,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13481
13493
|
], ["update:modelValue"]),
|
|
13482
13494
|
setup(e, { emit: t }) {
|
|
13483
13495
|
const n = t, a = _(null), l = Le(e, "modelValue");
|
|
13484
|
-
return (o, r) => (H(),
|
|
13496
|
+
return (o, r) => (H(), Y(vn, {
|
|
13485
13497
|
ref_key: "input",
|
|
13486
13498
|
ref: a,
|
|
13487
13499
|
modelValue: l.value,
|
|
@@ -13504,7 +13516,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13504
13516
|
"onClick:append": r[4] || (r[4] = (i) => n("click:append"))
|
|
13505
13517
|
}, null, 8, ["modelValue", "autofocus", "label", "placeholder", "error-messages", "rules", "maxLength", "minLength", "prefix", "suffix", "disabled", "counter"]));
|
|
13506
13518
|
}
|
|
13507
|
-
}), wg = /* @__PURE__ */
|
|
13519
|
+
}), wg = /* @__PURE__ */ ve({
|
|
13508
13520
|
__name: "CInputSelect",
|
|
13509
13521
|
props: /* @__PURE__ */ pe({
|
|
13510
13522
|
...sa.props,
|
|
@@ -13522,7 +13534,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13522
13534
|
], ["update:modelValue"]),
|
|
13523
13535
|
setup(e, { emit: t }) {
|
|
13524
13536
|
const n = t, a = _(null), l = Le(e, "modelValue");
|
|
13525
|
-
return (o, r) => (H(),
|
|
13537
|
+
return (o, r) => (H(), Y(ta, {
|
|
13526
13538
|
ref_key: "input",
|
|
13527
13539
|
ref: a,
|
|
13528
13540
|
modelValue: l.value,
|
|
@@ -13555,7 +13567,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13555
13567
|
"onClick:append": r[4] || (r[4] = (i) => n("click:append"))
|
|
13556
13568
|
}, null, 8, ["modelValue", "autofocus", "label", "disabled", "readonly", "error-messages", "prepend-icon", "prepend-inner-icon", "append-icon", "append-inner-icon", "suffix", "prefix", "hint", "loading", "placeholder", "append-outer-icon", "counter", "items", "multiple", "chips", "item-title", "item-value", "persistent-hint"]));
|
|
13557
13569
|
}
|
|
13558
|
-
}), yo = /* @__PURE__ */
|
|
13570
|
+
}), yo = /* @__PURE__ */ ve({
|
|
13559
13571
|
__name: "CInput",
|
|
13560
13572
|
props: /* @__PURE__ */ pe({
|
|
13561
13573
|
...sa.props,
|
|
@@ -13582,7 +13594,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13582
13594
|
], ["update:modelValue"]),
|
|
13583
13595
|
setup(e, { emit: t }) {
|
|
13584
13596
|
const n = t, a = Le(e, "modelValue");
|
|
13585
|
-
return (l, o) => e.type === "select" ? (H(),
|
|
13597
|
+
return (l, o) => e.type === "select" ? (H(), Y(wg, {
|
|
13586
13598
|
key: 0,
|
|
13587
13599
|
ref: "input",
|
|
13588
13600
|
modelValue: a.value,
|
|
@@ -13610,7 +13622,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13610
13622
|
"onClick:clear": o[2] || (o[2] = (r) => n("click:clear")),
|
|
13611
13623
|
"onClick:prepend": o[3] || (o[3] = (r) => n("click:prepend")),
|
|
13612
13624
|
"onClick:append": o[4] || (o[4] = (r) => n("click:append"))
|
|
13613
|
-
}, null, 8, ["modelValue", "autofocus", "label", "loading", "disabled", "readonly", "error-messages", "prefix-icon", "suffix-icon", "suffix", "prefix", "placeholder", "suffix-outer-icon", "counter", "items", "multiple", "chips", "item-title", "item-value", "persistent-hint"])) : e.type === "number" ? (H(),
|
|
13625
|
+
}, null, 8, ["modelValue", "autofocus", "label", "loading", "disabled", "readonly", "error-messages", "prefix-icon", "suffix-icon", "suffix", "prefix", "placeholder", "suffix-outer-icon", "counter", "items", "multiple", "chips", "item-title", "item-value", "persistent-hint"])) : e.type === "number" ? (H(), Y(Cg, {
|
|
13614
13626
|
key: 1,
|
|
13615
13627
|
ref: "input",
|
|
13616
13628
|
modelValue: a.value,
|
|
@@ -13633,7 +13645,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13633
13645
|
"onClick:clear": o[7] || (o[7] = (r) => n("click:clear")),
|
|
13634
13646
|
"onClick:prepend": o[8] || (o[8] = (r) => n("click:prepend")),
|
|
13635
13647
|
"onClick:append": o[9] || (o[9] = (r) => n("click:append"))
|
|
13636
|
-
}, null, 8, ["modelValue", "autofocus", "label", "loading", "disabled", "readonly", "error-messages", "prefix-icon", "suffix-icon", "suffix", "prefix", "placeholder", "suffix-outer-icon", "counter", "maxLength"])) : (H(),
|
|
13648
|
+
}, null, 8, ["modelValue", "autofocus", "label", "loading", "disabled", "readonly", "error-messages", "prefix-icon", "suffix-icon", "suffix", "prefix", "placeholder", "suffix-outer-icon", "counter", "maxLength"])) : (H(), Y(Sg, {
|
|
13637
13649
|
key: 2,
|
|
13638
13650
|
ref: "input",
|
|
13639
13651
|
modelValue: a.value,
|
|
@@ -13659,7 +13671,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13659
13671
|
"onClick:append": o[14] || (o[14] = (r) => n("click:append"))
|
|
13660
13672
|
}, null, 8, ["modelValue", "autofocus", "label", "loading", "disabled", "readonly", "error-messages", "prefix-icon", "suffix-icon", "suffix", "prefix", "placeholder", "rules", "suffix-outer-icon", "counter", "maxLength"]));
|
|
13661
13673
|
}
|
|
13662
|
-
}), kg = /* @__PURE__ */
|
|
13674
|
+
}), kg = /* @__PURE__ */ ve({
|
|
13663
13675
|
__name: "FormFields",
|
|
13664
13676
|
props: {
|
|
13665
13677
|
noPadding: { type: Boolean },
|
|
@@ -13675,12 +13687,12 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13675
13687
|
}, i = (s, c) => {
|
|
13676
13688
|
r(s, c);
|
|
13677
13689
|
};
|
|
13678
|
-
return (s, c) => (H(),
|
|
13690
|
+
return (s, c) => (H(), Y(Gt, {
|
|
13679
13691
|
class: Ha(["ma-0", s.noPadding ? "pa-0" : "pa-5"])
|
|
13680
13692
|
}, {
|
|
13681
13693
|
default: L(() => [
|
|
13682
|
-
(H(!0), he(oe, null, Ft(s.fields, (u,
|
|
13683
|
-
l.value[u.model] ? (H(),
|
|
13694
|
+
(H(!0), he(oe, null, Ft(s.fields, (u, v) => (H(), he(oe, { key: v }, [
|
|
13695
|
+
l.value[u.model] ? (H(), Y(He, {
|
|
13684
13696
|
key: 0,
|
|
13685
13697
|
cols: re(mo)(u),
|
|
13686
13698
|
class: "pa-2",
|
|
@@ -13688,29 +13700,29 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13688
13700
|
sm: "12"
|
|
13689
13701
|
}, {
|
|
13690
13702
|
default: L(() => [
|
|
13691
|
-
u.type === "button-options" ? (H(),
|
|
13703
|
+
u.type === "button-options" ? (H(), Y(bg, {
|
|
13692
13704
|
key: 0,
|
|
13693
13705
|
field: u,
|
|
13694
13706
|
onOnSelectedButtonChange: i
|
|
13695
|
-
}, null, 8, ["field"])) : (H(),
|
|
13707
|
+
}, null, 8, ["field"])) : (H(), Y(Gt, { key: 1 }, {
|
|
13696
13708
|
default: L(() => [
|
|
13697
13709
|
d(He, {
|
|
13698
13710
|
cols: re(mo)(u)
|
|
13699
13711
|
}, {
|
|
13700
13712
|
default: L(() => [
|
|
13701
|
-
u.type === "password" ? (H(),
|
|
13713
|
+
u.type === "password" ? (H(), Y(yo, {
|
|
13702
13714
|
key: 0,
|
|
13703
13715
|
modelValue: u.value,
|
|
13704
|
-
"onUpdate:modelValue": (
|
|
13716
|
+
"onUpdate:modelValue": (f) => u.value = f,
|
|
13705
13717
|
type: "password",
|
|
13706
13718
|
label: u.label,
|
|
13707
13719
|
autofocus: u.autofocus,
|
|
13708
13720
|
placeholder: u.placeholder,
|
|
13709
13721
|
"error-messages": u.error
|
|
13710
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "autofocus", "placeholder", "error-messages"])) : (H(),
|
|
13722
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "autofocus", "placeholder", "error-messages"])) : (H(), Y(yo, {
|
|
13711
13723
|
key: 1,
|
|
13712
13724
|
modelValue: u.value,
|
|
13713
|
-
"onUpdate:modelValue": (
|
|
13725
|
+
"onUpdate:modelValue": (f) => u.value = f,
|
|
13714
13726
|
label: u.label,
|
|
13715
13727
|
placeholder: u.placeholder,
|
|
13716
13728
|
"error-messages": u.error,
|
|
@@ -13724,7 +13736,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13724
13736
|
]),
|
|
13725
13737
|
_: 2
|
|
13726
13738
|
}, 1032, ["cols"]),
|
|
13727
|
-
u.count && !u.disabled ? (H(),
|
|
13739
|
+
u.count && !u.disabled ? (H(), Y(He, {
|
|
13728
13740
|
key: 0,
|
|
13729
13741
|
cols: "1",
|
|
13730
13742
|
class: "d-flex align-center justify-center"
|
|
@@ -13744,14 +13756,14 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13744
13756
|
}, 1032, ["onClick"])
|
|
13745
13757
|
]),
|
|
13746
13758
|
_: 2
|
|
13747
|
-
}, 1024)) :
|
|
13759
|
+
}, 1024)) : fe("", !0)
|
|
13748
13760
|
]),
|
|
13749
13761
|
_: 2
|
|
13750
13762
|
}, 1024))
|
|
13751
13763
|
]),
|
|
13752
13764
|
_: 2
|
|
13753
|
-
}, 1032, ["cols", "md"])) :
|
|
13754
|
-
u.hasCountBtn && !u.disabled ? (H(),
|
|
13765
|
+
}, 1032, ["cols", "md"])) : fe("", !0),
|
|
13766
|
+
u.hasCountBtn && !u.disabled ? (H(), Y(He, {
|
|
13755
13767
|
key: 1,
|
|
13756
13768
|
cols: "12",
|
|
13757
13769
|
class: "d-flex align-start justify-center pa-0"
|
|
@@ -13764,8 +13776,8 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13764
13776
|
onClick: () => {
|
|
13765
13777
|
if (u.count) {
|
|
13766
13778
|
u.hasCountBtn = !1;
|
|
13767
|
-
const
|
|
13768
|
-
a("addCount", [u,
|
|
13779
|
+
const f = u.count + 1;
|
|
13780
|
+
a("addCount", [u, f]);
|
|
13769
13781
|
}
|
|
13770
13782
|
},
|
|
13771
13783
|
icon: ""
|
|
@@ -13777,7 +13789,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13777
13789
|
}, 1032, ["onClick"])
|
|
13778
13790
|
]),
|
|
13779
13791
|
_: 2
|
|
13780
|
-
}, 1024)) :
|
|
13792
|
+
}, 1024)) : fe("", !0)
|
|
13781
13793
|
], 64))), 128)),
|
|
13782
13794
|
d(He, {
|
|
13783
13795
|
cols: "12",
|
|
@@ -13792,7 +13804,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13792
13804
|
_: 3
|
|
13793
13805
|
}, 8, ["class"]));
|
|
13794
13806
|
}
|
|
13795
|
-
}), xg = /* @__PURE__ */
|
|
13807
|
+
}), xg = /* @__PURE__ */ ve({
|
|
13796
13808
|
__name: "GenericFormFlat",
|
|
13797
13809
|
props: /* @__PURE__ */ pe({
|
|
13798
13810
|
...Mi.props,
|
|
@@ -13814,23 +13826,23 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13814
13826
|
setup(e, { emit: t }) {
|
|
13815
13827
|
const n = e, a = t;
|
|
13816
13828
|
Le(e, "modelValue");
|
|
13817
|
-
const l = (u,
|
|
13818
|
-
u.search =
|
|
13829
|
+
const l = (u, v) => {
|
|
13830
|
+
u.search = v, a("updateSearch", { field: u.model, value: v });
|
|
13819
13831
|
}, o = (u) => {
|
|
13820
|
-
let
|
|
13821
|
-
return u && u.forEach((
|
|
13822
|
-
|
|
13823
|
-
}),
|
|
13832
|
+
let v = !0;
|
|
13833
|
+
return u && u.forEach((f) => {
|
|
13834
|
+
v = f();
|
|
13835
|
+
}), v;
|
|
13824
13836
|
}, r = p(() => {
|
|
13825
13837
|
const u = {};
|
|
13826
|
-
return n.fields.forEach((
|
|
13827
|
-
u[
|
|
13838
|
+
return n.fields.forEach((v) => {
|
|
13839
|
+
u[v.model] = v.condition ? o(v.condition) : v.type !== "hidden";
|
|
13828
13840
|
}), u;
|
|
13829
13841
|
}), i = () => {
|
|
13830
13842
|
if (n.loading) return;
|
|
13831
13843
|
const u = {};
|
|
13832
|
-
n.fields.forEach((
|
|
13833
|
-
u[
|
|
13844
|
+
n.fields.forEach((v) => {
|
|
13845
|
+
u[v.model] = v.value;
|
|
13834
13846
|
}), a("submit", u);
|
|
13835
13847
|
};
|
|
13836
13848
|
yt(() => {
|
|
@@ -13840,18 +13852,18 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13840
13852
|
}), U(
|
|
13841
13853
|
() => n.initialData,
|
|
13842
13854
|
(u) => {
|
|
13843
|
-
n.fields.forEach((
|
|
13844
|
-
|
|
13855
|
+
n.fields.forEach((v) => {
|
|
13856
|
+
v.value = u ? u[v.model] : null;
|
|
13845
13857
|
});
|
|
13846
13858
|
}
|
|
13847
13859
|
);
|
|
13848
13860
|
const s = p(() => n.fields.filter((u) => r.value[u.model])), c = _(!1);
|
|
13849
|
-
return (u,
|
|
13861
|
+
return (u, v) => (H(), Y(gt, { variant: "text" }, {
|
|
13850
13862
|
default: L(() => [
|
|
13851
|
-
n.title ? (H(),
|
|
13863
|
+
n.title ? (H(), Y(mg, {
|
|
13852
13864
|
key: 0,
|
|
13853
13865
|
title: n.title
|
|
13854
|
-
}, null, 8, ["title"])) :
|
|
13866
|
+
}, null, 8, ["title"])) : fe("", !0),
|
|
13855
13867
|
d(gn, { class: "pa-0" }, {
|
|
13856
13868
|
default: L(() => [
|
|
13857
13869
|
d(hf, {
|
|
@@ -13859,7 +13871,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13859
13871
|
disabled: n.disabled,
|
|
13860
13872
|
ref: "form",
|
|
13861
13873
|
modelValue: c.value,
|
|
13862
|
-
"onUpdate:modelValue":
|
|
13874
|
+
"onUpdate:modelValue": v[1] || (v[1] = (f) => c.value = f)
|
|
13863
13875
|
}, {
|
|
13864
13876
|
default: L(() => [
|
|
13865
13877
|
d(kg, {
|
|
@@ -13867,13 +13879,13 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13867
13879
|
disabled: n.disabled,
|
|
13868
13880
|
onUpdateSearch: l
|
|
13869
13881
|
}, null, 8, ["fields", "disabled"]),
|
|
13870
|
-
e.noActionButtons ?
|
|
13882
|
+
e.noActionButtons ? fe("", !0) : (H(), Y(yg, {
|
|
13871
13883
|
key: 0,
|
|
13872
13884
|
"disable-add-button": !c.value,
|
|
13873
13885
|
"hide-cancel-button": e.hideCancelButton ?? !1,
|
|
13874
13886
|
"add-btn-text": u.addBtnText,
|
|
13875
13887
|
loading: u.loading ?? !1,
|
|
13876
|
-
onCancel:
|
|
13888
|
+
onCancel: v[0] || (v[0] = (f) => a("cancel")),
|
|
13877
13889
|
onSubmit: i
|
|
13878
13890
|
}, null, 8, ["disable-add-button", "hide-cancel-button", "add-btn-text", "loading"]))
|
|
13879
13891
|
]),
|
|
@@ -13886,7 +13898,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13886
13898
|
_: 1
|
|
13887
13899
|
}));
|
|
13888
13900
|
}
|
|
13889
|
-
}), zi = /* @__PURE__ */ Jt(xg, [["__scopeId", "data-v-2fb1243e"]]), Pg = /* @__PURE__ */
|
|
13901
|
+
}), zi = /* @__PURE__ */ Jt(xg, [["__scopeId", "data-v-2fb1243e"]]), Pg = /* @__PURE__ */ ve({
|
|
13890
13902
|
__name: "GenericForm",
|
|
13891
13903
|
props: {
|
|
13892
13904
|
...Mi.props
|
|
@@ -13900,7 +13912,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13900
13912
|
}, r = (i) => {
|
|
13901
13913
|
a("update:isDialogVisible", i);
|
|
13902
13914
|
};
|
|
13903
|
-
return (i, s) => (H(),
|
|
13915
|
+
return (i, s) => (H(), Y(oi, {
|
|
13904
13916
|
"model-value": n.isDialogVisible,
|
|
13905
13917
|
"onUpdate:modelValue": r,
|
|
13906
13918
|
width: n.width ?? "600",
|
|
@@ -13909,7 +13921,7 @@ const cg = /* @__PURE__ */ Jt(sg, [["render", ug]]), dg = { class: "pa-5 d-flex
|
|
|
13909
13921
|
default: L(() => [
|
|
13910
13922
|
d(gt, { class: "position-relative" }, {
|
|
13911
13923
|
default: L(() => [
|
|
13912
|
-
n.loading ? (H(),
|
|
13924
|
+
n.loading ? (H(), Y(cg, { key: 0 })) : fe("", !0),
|
|
13913
13925
|
d(vg, {
|
|
13914
13926
|
title: n.title,
|
|
13915
13927
|
onClose: s[0] || (s[0] = (c) => r(!1))
|