@c3labsbr/vuetify-elements 1.9.0 → 1.10.0
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.map +1 -1
- package/dist/utils/export.d.ts +1 -0
- package/dist/utils/export.d.ts.map +1 -1
- package/dist/vuetify-elements.cjs.js +2 -2
- package/dist/vuetify-elements.css +1 -1
- package/dist/vuetify-elements.es.js +338 -320
- package/package.json +1 -1
|
@@ -1279,8 +1279,8 @@ function pl(e, t) {
|
|
|
1279
1279
|
return e.multiple ? v : v[0];
|
|
1280
1280
|
}), o = Ie("useGroup");
|
|
1281
1281
|
function i(f, v) {
|
|
1282
|
-
const g = f, m = Symbol.for(`${t.description}:id`),
|
|
1283
|
-
fe(g.value) === void 0 && (g.value =
|
|
1282
|
+
const g = f, m = Symbol.for(`${t.description}:id`), p = Sn(m, o?.vnode).indexOf(v);
|
|
1283
|
+
fe(g.value) === void 0 && (g.value = p, g.useIndexAsValue = !0), p > -1 ? a.splice(p, 0, g) : a.push(g);
|
|
1284
1284
|
}
|
|
1285
1285
|
function r(f) {
|
|
1286
1286
|
if (n) return;
|
|
@@ -1304,8 +1304,8 @@ function pl(e, t) {
|
|
|
1304
1304
|
const g = a.find((m) => m.id === f);
|
|
1305
1305
|
if (!(v && g?.disabled))
|
|
1306
1306
|
if (e.multiple) {
|
|
1307
|
-
const m = l.value.slice(), h = m.findIndex((b) => b === f),
|
|
1308
|
-
if (v = v ?? !
|
|
1307
|
+
const m = l.value.slice(), h = m.findIndex((b) => b === f), p = ~h;
|
|
1308
|
+
if (v = v ?? !p, p && e.mandatory && m.length <= 1 || !p && e.max != null && m.length + 1 > e.max) return;
|
|
1309
1309
|
h < 0 && v ? m.push(f) : h >= 0 && !v && m.splice(h, 1), l.value = m;
|
|
1310
1310
|
} else {
|
|
1311
1311
|
const m = l.value.includes(f);
|
|
@@ -1315,7 +1315,7 @@ function pl(e, t) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
function u(f) {
|
|
1317
1317
|
if (e.multiple && It('This method is not supported when using "multiple" prop'), l.value.length) {
|
|
1318
|
-
const v = l.value[0], g = a.findIndex((
|
|
1318
|
+
const v = l.value[0], g = a.findIndex((p) => p.id === v);
|
|
1319
1319
|
let m = (g + f) % a.length, h = a[m];
|
|
1320
1320
|
for (; h.disabled && m !== g; )
|
|
1321
1321
|
m = (m + f) % a.length, h = a[m];
|
|
@@ -1694,9 +1694,9 @@ const Fu = F({
|
|
|
1694
1694
|
} = ci(), {
|
|
1695
1695
|
resizeRef: m,
|
|
1696
1696
|
contentRect: h
|
|
1697
|
-
} = qt(),
|
|
1698
|
-
const C = (100 -
|
|
1699
|
-
return e.rounded &&
|
|
1697
|
+
} = qt(), p = V(() => Ue(parseFloat(e.modelValue), 0, 100)), b = V(() => Number(e.width)), S = V(() => s.value ? Number(e.size) : h.value ? h.value.width : Math.max(b.value, 32)), k = V(() => a / (1 - b.value / S.value) * 2), P = V(() => b.value / S.value * k.value), A = V(() => {
|
|
1698
|
+
const C = (100 - p.value) / 100 * l;
|
|
1699
|
+
return e.rounded && p.value > 0 && p.value < 100 ? U(Math.min(l - 0.01, C + P.value)) : U(C);
|
|
1700
1700
|
}), T = x(() => {
|
|
1701
1701
|
const C = Number(e.rotate);
|
|
1702
1702
|
return e.rounded ? C + P.value / 2 / l * 360 : C;
|
|
@@ -1714,7 +1714,7 @@ const Fu = F({
|
|
|
1714
1714
|
role: "progressbar",
|
|
1715
1715
|
"aria-valuemin": "0",
|
|
1716
1716
|
"aria-valuemax": "100",
|
|
1717
|
-
"aria-valuenow": e.indeterminate ? void 0 :
|
|
1717
|
+
"aria-valuenow": e.indeterminate ? void 0 : p.value
|
|
1718
1718
|
}, {
|
|
1719
1719
|
default: () => [w("svg", {
|
|
1720
1720
|
style: {
|
|
@@ -1745,7 +1745,7 @@ const Fu = F({
|
|
|
1745
1745
|
}, null)]), n.default && w("div", {
|
|
1746
1746
|
class: "v-progress-circular__content"
|
|
1747
1747
|
}, [n.default({
|
|
1748
|
-
value:
|
|
1748
|
+
value: p.value
|
|
1749
1749
|
})])]
|
|
1750
1750
|
})), {};
|
|
1751
1751
|
}
|
|
@@ -1937,10 +1937,10 @@ const Nu = F({
|
|
|
1937
1937
|
backgroundColorClasses: m,
|
|
1938
1938
|
backgroundColorStyles: h
|
|
1939
1939
|
} = bt(() => e.color), {
|
|
1940
|
-
roundedClasses:
|
|
1940
|
+
roundedClasses: p
|
|
1941
1941
|
} = mt(e), {
|
|
1942
1942
|
intersectionRef: b,
|
|
1943
|
-
isIntersecting:
|
|
1943
|
+
isIntersecting: S
|
|
1944
1944
|
} = ci(), k = x(() => parseFloat(e.max)), P = x(() => parseFloat(e.height)), A = x(() => Ue(parseFloat(e.bufferValue) / k.value * 100, 0, 100)), T = x(() => Ue(parseFloat(l.value) / k.value * 100, 0, 100)), C = x(() => o.value !== e.reverse), E = x(() => e.indeterminate ? "fade-transition" : "slide-x-transition"), I = Q(0), {
|
|
1945
1945
|
hasChunks: N,
|
|
1946
1946
|
chunksMaskStyles: $,
|
|
@@ -1968,13 +1968,13 @@ const Nu = F({
|
|
|
1968
1968
|
ref: a,
|
|
1969
1969
|
class: X(["v-progress-linear", {
|
|
1970
1970
|
"v-progress-linear--absolute": e.absolute,
|
|
1971
|
-
"v-progress-linear--active": e.active &&
|
|
1971
|
+
"v-progress-linear--active": e.active && S.value,
|
|
1972
1972
|
"v-progress-linear--reverse": C.value,
|
|
1973
1973
|
"v-progress-linear--rounded": e.rounded,
|
|
1974
1974
|
"v-progress-linear--rounded-bar": e.roundedBar,
|
|
1975
1975
|
"v-progress-linear--striped": e.striped,
|
|
1976
1976
|
"v-progress-linear--clickable": e.clickable
|
|
1977
|
-
},
|
|
1977
|
+
}, p.value, r.value, i.value, e.class]),
|
|
1978
1978
|
style: ue([{
|
|
1979
1979
|
bottom: e.location === "bottom" ? 0 : void 0,
|
|
1980
1980
|
top: e.location === "top" ? 0 : void 0,
|
|
@@ -2393,14 +2393,14 @@ const wt = {
|
|
|
2393
2393
|
} = mt(e), {
|
|
2394
2394
|
sizeClasses: v,
|
|
2395
2395
|
sizeStyles: g
|
|
2396
|
-
} = Ln(e), m = ja(e, e.symbol, !1), h = ca(e, n),
|
|
2396
|
+
} = Ln(e), m = ja(e, e.symbol, !1), h = ca(e, n), p = x(() => e.active !== void 0 ? e.active : h.isRouterLink.value ? h.isActive?.value : m?.isSelected.value), b = V(() => p.value ? e.activeColor ?? e.color : e.color), S = x(() => ({
|
|
2397
2397
|
color: m?.isSelected.value && (!h.isLink.value || h.isActive?.value) || !m || h.isActive?.value ? b.value ?? e.baseColor : e.baseColor,
|
|
2398
2398
|
variant: e.variant
|
|
2399
2399
|
})), {
|
|
2400
2400
|
colorClasses: k,
|
|
2401
2401
|
colorStyles: P,
|
|
2402
2402
|
variantClasses: A
|
|
2403
|
-
} = Nn(
|
|
2403
|
+
} = Nn(S), T = x(() => m?.disabled.value || e.disabled), C = V(() => e.variant === "elevated" && !(e.disabled || e.flat || e.border)), E = x(() => {
|
|
2404
2404
|
if (!(e.value === void 0 || typeof e.value == "symbol"))
|
|
2405
2405
|
return Object(e.value) === e.value ? JSON.stringify(e.value, null, 0) : e.value;
|
|
2406
2406
|
});
|
|
@@ -2412,7 +2412,7 @@ const wt = {
|
|
|
2412
2412
|
return He(y(N, W(h.linkProps, {
|
|
2413
2413
|
type: N === "a" ? void 0 : "button",
|
|
2414
2414
|
class: ["v-btn", m?.selectedClass.value, {
|
|
2415
|
-
"v-btn--active":
|
|
2415
|
+
"v-btn--active": p.value,
|
|
2416
2416
|
"v-btn--block": e.block,
|
|
2417
2417
|
"v-btn--disabled": T.value,
|
|
2418
2418
|
"v-btn--elevated": C.value,
|
|
@@ -2596,23 +2596,23 @@ function Ju(e, t, n) {
|
|
|
2596
2596
|
preferredAnchor: l,
|
|
2597
2597
|
preferredOrigin: o
|
|
2598
2598
|
} = dl(() => {
|
|
2599
|
-
const
|
|
2600
|
-
return
|
|
2601
|
-
preferredAnchor: ql(
|
|
2599
|
+
const p = _a(t.location, e.isRtl.value), b = t.origin === "overlap" ? p : t.origin === "auto" ? Va(p) : _a(t.origin, e.isRtl.value);
|
|
2600
|
+
return p.side === b.side && p.align === Ia(b).align ? {
|
|
2601
|
+
preferredAnchor: ql(p),
|
|
2602
2602
|
preferredOrigin: ql(b)
|
|
2603
2603
|
} : {
|
|
2604
|
-
preferredAnchor:
|
|
2604
|
+
preferredAnchor: p,
|
|
2605
2605
|
preferredOrigin: b
|
|
2606
2606
|
};
|
|
2607
|
-
}), [i, r, s, c] = ["minWidth", "minHeight", "maxWidth", "maxHeight"].map((
|
|
2608
|
-
const b = parseFloat(t[
|
|
2607
|
+
}), [i, r, s, c] = ["minWidth", "minHeight", "maxWidth", "maxHeight"].map((p) => x(() => {
|
|
2608
|
+
const b = parseFloat(t[p]);
|
|
2609
2609
|
return isNaN(b) ? 1 / 0 : b;
|
|
2610
2610
|
})), u = x(() => {
|
|
2611
2611
|
if (Array.isArray(t.offset))
|
|
2612
2612
|
return t.offset;
|
|
2613
2613
|
if (typeof t.offset == "string") {
|
|
2614
|
-
const
|
|
2615
|
-
return
|
|
2614
|
+
const p = t.offset.split(" ").map(parseFloat);
|
|
2615
|
+
return p.length < 2 && p.push(0), p;
|
|
2616
2616
|
}
|
|
2617
2617
|
return typeof t.offset == "number" ? [t.offset, 0] : [0, 0];
|
|
2618
2618
|
});
|
|
@@ -2620,16 +2620,16 @@ function Ju(e, t, n) {
|
|
|
2620
2620
|
const v = new zs(4), g = new ResizeObserver(() => {
|
|
2621
2621
|
if (!d) return;
|
|
2622
2622
|
if (requestAnimationFrame((b) => {
|
|
2623
|
-
b !== f && v.clear(), requestAnimationFrame((
|
|
2624
|
-
f =
|
|
2623
|
+
b !== f && v.clear(), requestAnimationFrame((S) => {
|
|
2624
|
+
f = S;
|
|
2625
2625
|
});
|
|
2626
2626
|
}), v.isFull) {
|
|
2627
2627
|
const b = v.values();
|
|
2628
2628
|
if (Ke(b.at(-1), b.at(-3)) && !Ke(b.at(-1), b.at(-2)))
|
|
2629
2629
|
return;
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2631
|
+
const p = h();
|
|
2632
|
+
p && v.push(p.flipped);
|
|
2633
2633
|
});
|
|
2634
2634
|
let m = new at({
|
|
2635
2635
|
x: 0,
|
|
@@ -2637,12 +2637,12 @@ function Ju(e, t, n) {
|
|
|
2637
2637
|
width: 0,
|
|
2638
2638
|
height: 0
|
|
2639
2639
|
});
|
|
2640
|
-
Z(e.target, (
|
|
2641
|
-
b && !Array.isArray(b) && g.unobserve(b), Array.isArray(
|
|
2640
|
+
Z(e.target, (p, b) => {
|
|
2641
|
+
b && !Array.isArray(b) && g.unobserve(b), Array.isArray(p) ? Ke(p, b) || h() : p && g.observe(p);
|
|
2642
2642
|
}, {
|
|
2643
2643
|
immediate: !0
|
|
2644
|
-
}), Z(e.contentEl, (
|
|
2645
|
-
b && g.unobserve(b),
|
|
2644
|
+
}), Z(e.contentEl, (p, b) => {
|
|
2645
|
+
b && g.unobserve(b), p && g.observe(p);
|
|
2646
2646
|
}, {
|
|
2647
2647
|
immediate: !0
|
|
2648
2648
|
}), qe(() => {
|
|
@@ -2651,8 +2651,8 @@ function Ju(e, t, n) {
|
|
|
2651
2651
|
function h() {
|
|
2652
2652
|
if (d = !1, requestAnimationFrame(() => d = !0), !e.target.value || !e.contentEl.value) return;
|
|
2653
2653
|
(Array.isArray(e.target.value) || e.target.value.offsetParent || e.target.value.getClientRects().length) && (m = ni(e.target.value));
|
|
2654
|
-
const
|
|
2655
|
-
b.length || (b.push(document.documentElement), e.contentEl.value.style.top && e.contentEl.value.style.left || (
|
|
2654
|
+
const p = Qu(e.contentEl.value, e.isRtl.value), b = Qn(e.contentEl.value), S = Number(t.viewportMargin);
|
|
2655
|
+
b.length || (b.push(document.documentElement), e.contentEl.value.style.top && e.contentEl.value.style.left || (p.x -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x") || 0), p.y -= parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y") || 0)));
|
|
2656
2656
|
const k = b.reduce((_, R) => {
|
|
2657
2657
|
const G = Ks(R);
|
|
2658
2658
|
return _ ? new at({
|
|
@@ -2662,13 +2662,13 @@ function Ju(e, t, n) {
|
|
|
2662
2662
|
height: Math.min(_.bottom, G.bottom) - Math.max(_.top, G.top)
|
|
2663
2663
|
}) : G;
|
|
2664
2664
|
}, void 0);
|
|
2665
|
-
t.stickToTarget ? (k.x += Math.min(
|
|
2665
|
+
t.stickToTarget ? (k.x += Math.min(S, m.x), k.y += Math.min(S, m.y), k.width = Math.max(k.width - S * 2, m.x + m.width - S), k.height = Math.max(k.height - S * 2, m.y + m.height - S)) : (k.x += S, k.y += S, k.width -= S * 2, k.height -= S * 2);
|
|
2666
2666
|
let P = {
|
|
2667
2667
|
anchor: l.value,
|
|
2668
2668
|
origin: o.value
|
|
2669
2669
|
};
|
|
2670
2670
|
function A(_) {
|
|
2671
|
-
const R = new at(
|
|
2671
|
+
const R = new at(p), G = mo(_.anchor, m), Y = mo(_.origin, R);
|
|
2672
2672
|
let {
|
|
2673
2673
|
x: ee,
|
|
2674
2674
|
y: ae
|
|
@@ -2726,7 +2726,7 @@ function Ju(e, t, n) {
|
|
|
2726
2726
|
y: R,
|
|
2727
2727
|
overflows: G
|
|
2728
2728
|
} = A(P);
|
|
2729
|
-
T += _, C += R,
|
|
2729
|
+
T += _, C += R, p.x += _, p.y += R;
|
|
2730
2730
|
{
|
|
2731
2731
|
const Y = Gl(P.anchor), ee = G.x.before || G.x.after, ae = G.y.before || G.y.after;
|
|
2732
2732
|
let me = !1;
|
|
@@ -2748,10 +2748,10 @@ function Ju(e, t, n) {
|
|
|
2748
2748
|
}
|
|
2749
2749
|
}), me) continue;
|
|
2750
2750
|
}
|
|
2751
|
-
G.x.before && (T += G.x.before,
|
|
2751
|
+
G.x.before && (T += G.x.before, p.x += G.x.before), G.x.after && (T -= G.x.after, p.x -= G.x.after), G.y.before && (C += G.y.before, p.y += G.y.before), G.y.after && (C -= G.y.after, p.y -= G.y.after);
|
|
2752
2752
|
{
|
|
2753
|
-
const Y = Ul(
|
|
2754
|
-
E.x = k.width - Y.x.before - Y.x.after, E.y = k.height - Y.y.before - Y.y.after, T += Y.x.before,
|
|
2753
|
+
const Y = Ul(p, k);
|
|
2754
|
+
E.x = k.width - Y.x.before - Y.x.after, E.y = k.height - Y.y.before - Y.y.after, T += Y.x.before, p.x += Y.x.before, C += Y.y.before, p.y += Y.y.before;
|
|
2755
2755
|
}
|
|
2756
2756
|
break;
|
|
2757
2757
|
}
|
|
@@ -2768,18 +2768,18 @@ function Ju(e, t, n) {
|
|
|
2768
2768
|
maxHeight: U(go(Ue(E.y, r.value === 1 / 0 ? 0 : r.value, c.value)))
|
|
2769
2769
|
}), {
|
|
2770
2770
|
available: E,
|
|
2771
|
-
contentBox:
|
|
2771
|
+
contentBox: p,
|
|
2772
2772
|
flipped: I
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
2775
2775
|
return Z(() => [l.value, o.value, t.offset, t.minWidth, t.minHeight, t.maxWidth, t.maxHeight], () => h()), Se(() => {
|
|
2776
|
-
const
|
|
2777
|
-
if (!
|
|
2776
|
+
const p = h();
|
|
2777
|
+
if (!p) return;
|
|
2778
2778
|
const {
|
|
2779
2779
|
available: b,
|
|
2780
|
-
contentBox:
|
|
2781
|
-
} =
|
|
2782
|
-
|
|
2780
|
+
contentBox: S
|
|
2781
|
+
} = p;
|
|
2782
|
+
S.height > b.y && requestAnimationFrame(() => {
|
|
2783
2783
|
h(), requestAnimationFrame(() => {
|
|
2784
2784
|
h();
|
|
2785
2785
|
});
|
|
@@ -2964,7 +2964,7 @@ function rc(e, t) {
|
|
|
2964
2964
|
}, h = x(() => {
|
|
2965
2965
|
const C = {};
|
|
2966
2966
|
return d.value && (C.onClick = m.onClick), e.openOnHover && (C.onMouseenter = m.onMouseenter, C.onMouseleave = m.onMouseleave), u.value && (C.onFocus = m.onFocus, C.onBlur = m.onBlur), C;
|
|
2967
|
-
}),
|
|
2967
|
+
}), p = x(() => {
|
|
2968
2968
|
const C = {};
|
|
2969
2969
|
if (e.openOnHover && (C.onMouseenter = () => {
|
|
2970
2970
|
r = !0, f();
|
|
@@ -3000,10 +3000,10 @@ function rc(e, t) {
|
|
|
3000
3000
|
}, {
|
|
3001
3001
|
flush: "post"
|
|
3002
3002
|
});
|
|
3003
|
-
const
|
|
3003
|
+
const S = Ma();
|
|
3004
3004
|
Je(() => {
|
|
3005
|
-
|
|
3006
|
-
i.value =
|
|
3005
|
+
S.value && Se(() => {
|
|
3006
|
+
i.value = S.el;
|
|
3007
3007
|
});
|
|
3008
3008
|
});
|
|
3009
3009
|
const k = Ma(), P = x(() => e.target === "cursor" && g.value ? g.value : k.value ? k.el : Ii(e.target, o) || i.value), A = x(() => Array.isArray(P.value) ? void 0 : P.value);
|
|
@@ -3022,12 +3022,12 @@ function rc(e, t) {
|
|
|
3022
3022
|
T?.stop();
|
|
3023
3023
|
}), {
|
|
3024
3024
|
activatorEl: i,
|
|
3025
|
-
activatorRef:
|
|
3025
|
+
activatorRef: S,
|
|
3026
3026
|
target: P,
|
|
3027
3027
|
targetEl: A,
|
|
3028
3028
|
targetRef: k,
|
|
3029
3029
|
activatorEvents: h,
|
|
3030
|
-
contentEvents:
|
|
3030
|
+
contentEvents: p,
|
|
3031
3031
|
scrimEvents: b
|
|
3032
3032
|
};
|
|
3033
3033
|
}
|
|
@@ -3426,9 +3426,9 @@ const ga = F({
|
|
|
3426
3426
|
hasContent: g,
|
|
3427
3427
|
onAfterLeave: m
|
|
3428
3428
|
} = gc(e, u), h = bt(() => typeof e.scrim == "string" ? e.scrim : null), {
|
|
3429
|
-
globalTop:
|
|
3429
|
+
globalTop: p,
|
|
3430
3430
|
localTop: b,
|
|
3431
|
-
stackStyles:
|
|
3431
|
+
stackStyles: S
|
|
3432
3432
|
} = yc(u, () => e.zIndex, e._disableGlobalStack), {
|
|
3433
3433
|
activatorEl: k,
|
|
3434
3434
|
activatorRef: P,
|
|
@@ -3493,15 +3493,15 @@ const ga = F({
|
|
|
3493
3493
|
Ee && window.removeEventListener("keydown", M);
|
|
3494
3494
|
});
|
|
3495
3495
|
function M(z) {
|
|
3496
|
-
z.key === "Escape" &&
|
|
3496
|
+
z.key === "Escape" && p.value && (s.value?.contains(document.activeElement) || l("keydown", z), e.persistent ? B() : (u.value = !1, s.value?.contains(document.activeElement) && k.value?.focus()));
|
|
3497
3497
|
}
|
|
3498
3498
|
function J(z) {
|
|
3499
|
-
z.key === "Escape" && !
|
|
3499
|
+
z.key === "Escape" && !p.value || l("keydown", z);
|
|
3500
3500
|
}
|
|
3501
3501
|
const L = Mu();
|
|
3502
3502
|
Et(() => e.closeOnBack, () => {
|
|
3503
3503
|
_u(L, (z) => {
|
|
3504
|
-
|
|
3504
|
+
p.value && u.value ? (z(!1), e.persistent ? B() : u.value = !1) : z();
|
|
3505
3505
|
});
|
|
3506
3506
|
});
|
|
3507
3507
|
const H = j();
|
|
@@ -3545,7 +3545,7 @@ const ga = F({
|
|
|
3545
3545
|
"v-overlay--active": u.value,
|
|
3546
3546
|
"v-overlay--contained": e.contained
|
|
3547
3547
|
}, d.value, f.value, e.class],
|
|
3548
|
-
style: [
|
|
3548
|
+
style: [S.value, {
|
|
3549
3549
|
"--v-overlay-opacity": e.opacity,
|
|
3550
3550
|
top: U(H.value)
|
|
3551
3551
|
}, e.style],
|
|
@@ -3582,7 +3582,7 @@ const ga = F({
|
|
|
3582
3582
|
animateClick: B,
|
|
3583
3583
|
contentEl: s,
|
|
3584
3584
|
rootEl: i,
|
|
3585
|
-
globalTop:
|
|
3585
|
+
globalTop: p,
|
|
3586
3586
|
localTop: b,
|
|
3587
3587
|
updateLocation: ee
|
|
3588
3588
|
};
|
|
@@ -3823,11 +3823,24 @@ function xc(e, t) {
|
|
|
3823
3823
|
(v) => v.isVisible && v.value !== "actions"
|
|
3824
3824
|
), d = u.map((v) => Ti(c, v));
|
|
3825
3825
|
a.addRow(d).eachCell((v, g) => {
|
|
3826
|
+
const m = g - 1;
|
|
3826
3827
|
v.border = {
|
|
3827
3828
|
left: { style: "thin", color: { argb: "FF000000" } },
|
|
3828
3829
|
bottom: { style: "thin", color: { argb: "FF000000" } },
|
|
3829
3830
|
right: { style: "thin", color: { argb: "FF000000" } }
|
|
3830
|
-
}
|
|
3831
|
+
};
|
|
3832
|
+
const h = u[m]?.type;
|
|
3833
|
+
if (h == "date")
|
|
3834
|
+
v.numFmt = "dd/mm/yyyy";
|
|
3835
|
+
else if (h == "currency") {
|
|
3836
|
+
const p = d[m];
|
|
3837
|
+
if (!p || p == " ") {
|
|
3838
|
+
v.value = "-";
|
|
3839
|
+
return;
|
|
3840
|
+
}
|
|
3841
|
+
const [b, S] = p.split(" ");
|
|
3842
|
+
v.value = Number(S.replace(/\./g, "").replace(",", ".")), v.numFmt = `[$${b}]#,##0.00_);([$${b}]#,##0.00);[$${b}]0.00;@`;
|
|
3843
|
+
}
|
|
3831
3844
|
});
|
|
3832
3845
|
}
|
|
3833
3846
|
const s = a.addRow([`Exportado em: ${o}`]);
|
|
@@ -4350,7 +4363,7 @@ function Co(e) {
|
|
|
4350
4363
|
return t && [...t];
|
|
4351
4364
|
}
|
|
4352
4365
|
function xo(e, t) {
|
|
4353
|
-
const n = ni(e), a = vl(t), [l, o] = getComputedStyle(t).transformOrigin.split(" ").map((
|
|
4366
|
+
const n = ni(e), a = vl(t), [l, o] = getComputedStyle(t).transformOrigin.split(" ").map((p) => parseFloat(p)), [i, r] = getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");
|
|
4354
4367
|
let s = n.left + n.width / 2;
|
|
4355
4368
|
i === "left" || r === "left" ? s -= n.width / 2 : (i === "right" || r === "right") && (s += n.width / 2);
|
|
4356
4369
|
let c = n.top + n.height / 2;
|
|
@@ -4751,7 +4764,7 @@ const Dl = (e) => {
|
|
|
4751
4764
|
}
|
|
4752
4765
|
}, "nested"), Kc = (e, t, n) => {
|
|
4753
4766
|
let a = !1;
|
|
4754
|
-
const l = Q(/* @__PURE__ */ new Map()), o = Q(/* @__PURE__ */ new Map()), i = Q(/* @__PURE__ */ new Set()), r = ge(e, "opened", e.opened, (
|
|
4767
|
+
const l = Q(/* @__PURE__ */ new Map()), o = Q(/* @__PURE__ */ new Map()), i = Q(/* @__PURE__ */ new Set()), r = ge(e, "opened", e.opened, (S) => new Set(Array.isArray(S) ? S.map((k) => we(k)) : S), (S) => [...S.values()]), s = x(() => {
|
|
4755
4768
|
if (typeof e.activeStrategy == "object") return e.activeStrategy;
|
|
4756
4769
|
if (typeof e.activeStrategy == "function") return e.activeStrategy(e.mandatory);
|
|
4757
4770
|
switch (e.activeStrategy) {
|
|
@@ -4794,13 +4807,13 @@ const Dl = (e) => {
|
|
|
4794
4807
|
default:
|
|
4795
4808
|
return Zi;
|
|
4796
4809
|
}
|
|
4797
|
-
}), d = ge(e, "activated", e.activated, (
|
|
4810
|
+
}), d = ge(e, "activated", e.activated, (S) => s.value.in(S, l.value, o.value), (S) => s.value.out(S, l.value, o.value)), f = ge(e, "selected", e.selected, (S) => c.value.in(S, l.value, o.value, i.value), (S) => c.value.out(S, l.value, o.value));
|
|
4798
4811
|
lt(() => {
|
|
4799
4812
|
a = !0;
|
|
4800
4813
|
});
|
|
4801
|
-
function v(
|
|
4814
|
+
function v(S) {
|
|
4802
4815
|
const k = [];
|
|
4803
|
-
let P = we(
|
|
4816
|
+
let P = we(S);
|
|
4804
4817
|
for (; P !== void 0; )
|
|
4805
4818
|
k.unshift(P), P = o.value.get(P);
|
|
4806
4819
|
return k;
|
|
@@ -4811,12 +4824,12 @@ const Dl = (e) => {
|
|
|
4811
4824
|
});
|
|
4812
4825
|
}, 100);
|
|
4813
4826
|
Z(() => [t.value, Ae(n)], () => {
|
|
4814
|
-
e.itemsRegistration === "props" &&
|
|
4827
|
+
e.itemsRegistration === "props" && p();
|
|
4815
4828
|
}, {
|
|
4816
4829
|
immediate: !0
|
|
4817
4830
|
});
|
|
4818
|
-
function
|
|
4819
|
-
const
|
|
4831
|
+
function p() {
|
|
4832
|
+
const S = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Set(), A = Ae(n) ? (E) => we(E.raw) : (E) => E.value, T = [...t.value];
|
|
4820
4833
|
let C = 0;
|
|
4821
4834
|
for (; C < T.length; ) {
|
|
4822
4835
|
const E = T[C++], I = A(E);
|
|
@@ -4824,13 +4837,13 @@ const Dl = (e) => {
|
|
|
4824
4837
|
const N = [];
|
|
4825
4838
|
for (const $ of E.children) {
|
|
4826
4839
|
const _ = A($);
|
|
4827
|
-
|
|
4840
|
+
S.set(_, I), N.push(_), T.push($);
|
|
4828
4841
|
}
|
|
4829
4842
|
k.set(I, N);
|
|
4830
4843
|
}
|
|
4831
4844
|
E.props.disabled && P.add(I);
|
|
4832
4845
|
}
|
|
4833
|
-
l.value = k, o.value =
|
|
4846
|
+
l.value = k, o.value = S, i.value = P;
|
|
4834
4847
|
}
|
|
4835
4848
|
const b = {
|
|
4836
4849
|
id: Q(),
|
|
@@ -4841,42 +4854,42 @@ const Dl = (e) => {
|
|
|
4841
4854
|
activated: d,
|
|
4842
4855
|
selected: f,
|
|
4843
4856
|
selectedValues: x(() => {
|
|
4844
|
-
const
|
|
4857
|
+
const S = [];
|
|
4845
4858
|
for (const [k, P] of f.value.entries())
|
|
4846
|
-
P === "on" &&
|
|
4847
|
-
return
|
|
4859
|
+
P === "on" && S.push(k);
|
|
4860
|
+
return S;
|
|
4848
4861
|
}),
|
|
4849
4862
|
itemsRegistration: V(() => e.itemsRegistration),
|
|
4850
|
-
register: (
|
|
4851
|
-
if (m.has(
|
|
4852
|
-
const T = v(
|
|
4863
|
+
register: (S, k, P, A) => {
|
|
4864
|
+
if (m.has(S)) {
|
|
4865
|
+
const T = v(S).map(String).join(" -> "), C = v(k).concat(S).map(String).join(" -> ");
|
|
4853
4866
|
ia(`Multiple nodes with the same ID
|
|
4854
4867
|
${T}
|
|
4855
4868
|
${C}`);
|
|
4856
4869
|
return;
|
|
4857
4870
|
} else
|
|
4858
|
-
m.add(
|
|
4859
|
-
k &&
|
|
4871
|
+
m.add(S);
|
|
4872
|
+
k && S !== k && o.value.set(S, k), P && i.value.add(S), A && l.value.set(S, []), k != null && l.value.set(k, [...l.value.get(k) || [], S]), h();
|
|
4860
4873
|
},
|
|
4861
|
-
unregister: (
|
|
4874
|
+
unregister: (S) => {
|
|
4862
4875
|
if (a) return;
|
|
4863
|
-
m.delete(
|
|
4864
|
-
const k = o.value.get(
|
|
4876
|
+
m.delete(S), l.value.delete(S), i.value.delete(S);
|
|
4877
|
+
const k = o.value.get(S);
|
|
4865
4878
|
if (k) {
|
|
4866
4879
|
const P = l.value.get(k) ?? [];
|
|
4867
|
-
l.value.set(k, P.filter((A) => A !==
|
|
4880
|
+
l.value.set(k, P.filter((A) => A !== S));
|
|
4868
4881
|
}
|
|
4869
|
-
o.value.delete(
|
|
4882
|
+
o.value.delete(S), h();
|
|
4870
4883
|
},
|
|
4871
|
-
open: (
|
|
4884
|
+
open: (S, k, P) => {
|
|
4872
4885
|
g.emit("click:open", {
|
|
4873
|
-
id:
|
|
4886
|
+
id: S,
|
|
4874
4887
|
value: k,
|
|
4875
|
-
path: v(
|
|
4888
|
+
path: v(S),
|
|
4876
4889
|
event: P
|
|
4877
4890
|
});
|
|
4878
4891
|
const A = u.value.open({
|
|
4879
|
-
id:
|
|
4892
|
+
id: S,
|
|
4880
4893
|
value: k,
|
|
4881
4894
|
opened: new Set(r.value),
|
|
4882
4895
|
children: l.value,
|
|
@@ -4885,9 +4898,9 @@ const Dl = (e) => {
|
|
|
4885
4898
|
});
|
|
4886
4899
|
A && (r.value = A);
|
|
4887
4900
|
},
|
|
4888
|
-
openOnSelect: (
|
|
4901
|
+
openOnSelect: (S, k, P) => {
|
|
4889
4902
|
const A = u.value.select({
|
|
4890
|
-
id:
|
|
4903
|
+
id: S,
|
|
4891
4904
|
value: k,
|
|
4892
4905
|
selected: new Map(f.value),
|
|
4893
4906
|
opened: new Set(r.value),
|
|
@@ -4897,15 +4910,15 @@ const Dl = (e) => {
|
|
|
4897
4910
|
});
|
|
4898
4911
|
A && (r.value = A);
|
|
4899
4912
|
},
|
|
4900
|
-
select: (
|
|
4913
|
+
select: (S, k, P) => {
|
|
4901
4914
|
g.emit("click:select", {
|
|
4902
|
-
id:
|
|
4915
|
+
id: S,
|
|
4903
4916
|
value: k,
|
|
4904
|
-
path: v(
|
|
4917
|
+
path: v(S),
|
|
4905
4918
|
event: P
|
|
4906
4919
|
});
|
|
4907
4920
|
const A = c.value.select({
|
|
4908
|
-
id:
|
|
4921
|
+
id: S,
|
|
4909
4922
|
value: k,
|
|
4910
4923
|
selected: new Map(f.value),
|
|
4911
4924
|
children: l.value,
|
|
@@ -4913,19 +4926,19 @@ const Dl = (e) => {
|
|
|
4913
4926
|
disabled: i.value,
|
|
4914
4927
|
event: P
|
|
4915
4928
|
});
|
|
4916
|
-
A && (f.value = A), b.root.openOnSelect(
|
|
4929
|
+
A && (f.value = A), b.root.openOnSelect(S, k, P);
|
|
4917
4930
|
},
|
|
4918
|
-
activate: (
|
|
4931
|
+
activate: (S, k, P) => {
|
|
4919
4932
|
if (!e.activatable)
|
|
4920
|
-
return b.root.select(
|
|
4933
|
+
return b.root.select(S, !0, P);
|
|
4921
4934
|
g.emit("click:activate", {
|
|
4922
|
-
id:
|
|
4935
|
+
id: S,
|
|
4923
4936
|
value: k,
|
|
4924
|
-
path: v(
|
|
4937
|
+
path: v(S),
|
|
4925
4938
|
event: P
|
|
4926
4939
|
});
|
|
4927
4940
|
const A = s.value.activate({
|
|
4928
|
-
id:
|
|
4941
|
+
id: S,
|
|
4929
4942
|
value: k,
|
|
4930
4943
|
activated: new Set(d.value),
|
|
4931
4944
|
children: l.value,
|
|
@@ -5274,7 +5287,7 @@ const ta = {
|
|
|
5274
5287
|
n("loadstart", c.value?.currentSrc || v.value.src), setTimeout(() => {
|
|
5275
5288
|
if (!r.isUnmounted)
|
|
5276
5289
|
if (c.value?.complete) {
|
|
5277
|
-
if (c.value.naturalWidth ||
|
|
5290
|
+
if (c.value.naturalWidth || p(), u.value === "error") return;
|
|
5278
5291
|
g.value || k(c.value, null), u.value === "loading" && h();
|
|
5279
5292
|
} else
|
|
5280
5293
|
g.value || k(c.value), b();
|
|
@@ -5285,26 +5298,26 @@ const ta = {
|
|
|
5285
5298
|
function h() {
|
|
5286
5299
|
r.isUnmounted || (b(), k(c.value), u.value = "loaded", n("load", c.value?.currentSrc || v.value.src));
|
|
5287
5300
|
}
|
|
5288
|
-
function
|
|
5301
|
+
function p() {
|
|
5289
5302
|
r.isUnmounted || (u.value = "error", n("error", c.value?.currentSrc || v.value.src));
|
|
5290
5303
|
}
|
|
5291
5304
|
function b() {
|
|
5292
5305
|
const $ = c.value;
|
|
5293
5306
|
$ && (s.value = $.currentSrc || $.src);
|
|
5294
5307
|
}
|
|
5295
|
-
let
|
|
5308
|
+
let S = -1;
|
|
5296
5309
|
lt(() => {
|
|
5297
|
-
clearTimeout(
|
|
5310
|
+
clearTimeout(S);
|
|
5298
5311
|
});
|
|
5299
5312
|
function k($) {
|
|
5300
5313
|
let _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
5301
5314
|
const R = () => {
|
|
5302
|
-
if (clearTimeout(
|
|
5315
|
+
if (clearTimeout(S), r.isUnmounted) return;
|
|
5303
5316
|
const {
|
|
5304
5317
|
naturalHeight: G,
|
|
5305
5318
|
naturalWidth: Y
|
|
5306
5319
|
} = $;
|
|
5307
|
-
G || Y ? (d.value = Y, f.value = G) : !$.complete && u.value === "loading" && _ != null ?
|
|
5320
|
+
G || Y ? (d.value = Y, f.value = G) : !$.complete && u.value === "loading" && _ != null ? S = window.setTimeout(R, _) : ($.currentSrc.endsWith(".svg") || $.currentSrc.startsWith("data:image/svg+xml")) && (d.value = 1, f.value = 1);
|
|
5308
5321
|
};
|
|
5309
5322
|
R();
|
|
5310
5323
|
}
|
|
@@ -5327,7 +5340,7 @@ const ta = {
|
|
|
5327
5340
|
sizes: e.sizes,
|
|
5328
5341
|
ref: c,
|
|
5329
5342
|
onLoad: h,
|
|
5330
|
-
onError:
|
|
5343
|
+
onError: p
|
|
5331
5344
|
}, null), _ = a.sources?.();
|
|
5332
5345
|
return y(Vt, {
|
|
5333
5346
|
transition: e.transition,
|
|
@@ -5556,12 +5569,12 @@ const ta = {
|
|
|
5556
5569
|
root: g,
|
|
5557
5570
|
parent: m,
|
|
5558
5571
|
openOnSelect: h,
|
|
5559
|
-
id:
|
|
5560
|
-
} = tr(i, () => e.disabled, !1), b = Xi(),
|
|
5572
|
+
id: p
|
|
5573
|
+
} = tr(i, () => e.disabled, !1), b = Xi(), S = x(() => e.active !== !1 && (e.active || o.isActive?.value || (g.activatable.value ? s.value : d.value))), k = V(() => e.link !== !1 && o.isLink.value), P = x(() => !!b && (g.selectable.value || g.activatable.value || e.value != null)), A = x(() => !e.disabled && e.link !== !1 && (e.link || o.isClickable.value || P.value)), T = x(() => b ? k.value ? "link" : P.value ? "option" : "listitem" : void 0), C = x(() => {
|
|
5561
5574
|
if (P.value)
|
|
5562
|
-
return g.activatable.value ? s.value : g.selectable.value ? d.value :
|
|
5575
|
+
return g.activatable.value ? s.value : g.selectable.value ? d.value : S.value;
|
|
5563
5576
|
}), E = V(() => e.rounded || e.nav), I = V(() => e.color ?? e.activeColor), N = V(() => ({
|
|
5564
|
-
color:
|
|
5577
|
+
color: S.value ? I.value ?? e.baseColor : e.baseColor,
|
|
5565
5578
|
variant: e.variant
|
|
5566
5579
|
}));
|
|
5567
5580
|
Z(() => o.isActive?.value, (z) => {
|
|
@@ -5591,7 +5604,7 @@ const ta = {
|
|
|
5591
5604
|
} = mt(E), L = V(() => e.lines ? `v-list-item--${e.lines}-line` : void 0), H = V(() => e.ripple !== void 0 && e.ripple && b?.filterable ? {
|
|
5592
5605
|
keys: ["Enter"]
|
|
5593
5606
|
} : e.ripple), B = x(() => ({
|
|
5594
|
-
isActive:
|
|
5607
|
+
isActive: S.value,
|
|
5595
5608
|
select: c,
|
|
5596
5609
|
isOpen: u.value,
|
|
5597
5610
|
isSelected: d.value,
|
|
@@ -5608,12 +5621,12 @@ const ta = {
|
|
|
5608
5621
|
const z = k.value ? "a" : e.tag, ve = a.title || e.title != null, se = a.subtitle || e.subtitle != null, ye = !!(e.appendAvatar || e.appendIcon), De = !!(ye || a.append), it = !!(e.prependAvatar || e.prependIcon), be = !!(it || a.prepend);
|
|
5609
5622
|
return b?.updateHasPrepend(be), e.activeColor && Ls("active-color", ["color", "base-color"]), He(y(z, W(o.linkProps, {
|
|
5610
5623
|
class: ["v-list-item", {
|
|
5611
|
-
"v-list-item--active":
|
|
5624
|
+
"v-list-item--active": S.value,
|
|
5612
5625
|
"v-list-item--disabled": e.disabled,
|
|
5613
5626
|
"v-list-item--link": A.value,
|
|
5614
5627
|
"v-list-item--nav": e.nav,
|
|
5615
5628
|
"v-list-item--slim": e.slim,
|
|
5616
|
-
[`${e.activeClass}`]: e.activeClass &&
|
|
5629
|
+
[`${e.activeClass}`]: e.activeClass && S.value
|
|
5617
5630
|
}, _.value, R.value, G.value, ae.value, M.value, L.value, J.value, ee.value, e.class],
|
|
5618
5631
|
style: [{
|
|
5619
5632
|
"--v-list-prepend-gap": U(e.prependGap)
|
|
@@ -5624,7 +5637,7 @@ const ta = {
|
|
|
5624
5637
|
onClick: oe,
|
|
5625
5638
|
onKeydown: A.value && !k.value && de
|
|
5626
5639
|
}), {
|
|
5627
|
-
default: () => [$n(A.value ||
|
|
5640
|
+
default: () => [$n(A.value || S.value, "v-list-item"), be && w("div", {
|
|
5628
5641
|
key: "prepend",
|
|
5629
5642
|
class: "v-list-item__prepend"
|
|
5630
5643
|
}, [a.prepend ? y(Be, {
|
|
@@ -5711,7 +5724,7 @@ const ta = {
|
|
|
5711
5724
|
list: b,
|
|
5712
5725
|
select: c,
|
|
5713
5726
|
root: g,
|
|
5714
|
-
id:
|
|
5727
|
+
id: p,
|
|
5715
5728
|
link: o
|
|
5716
5729
|
};
|
|
5717
5730
|
}
|
|
@@ -5888,20 +5901,20 @@ function ud(e) {
|
|
|
5888
5901
|
});
|
|
5889
5902
|
function o(r) {
|
|
5890
5903
|
const s = a.value, c = t.value, u = l.value, d = n.value, f = e.returnObject, v = !!e.valueComparator, g = e.valueComparator || Ke, m = Wt(e, ln.neededProps), h = [];
|
|
5891
|
-
e: for (const
|
|
5892
|
-
if (!d &&
|
|
5893
|
-
if (f && typeof
|
|
5894
|
-
h.push(ln(m,
|
|
5904
|
+
e: for (const p of r) {
|
|
5905
|
+
if (!d && p === null) continue;
|
|
5906
|
+
if (f && typeof p == "string") {
|
|
5907
|
+
h.push(ln(m, p));
|
|
5895
5908
|
continue;
|
|
5896
5909
|
}
|
|
5897
|
-
const b = s.get(
|
|
5910
|
+
const b = s.get(p);
|
|
5898
5911
|
if (v || !b) {
|
|
5899
|
-
for (const
|
|
5900
|
-
if (g(
|
|
5901
|
-
h.push(
|
|
5912
|
+
for (const S of v ? c : u)
|
|
5913
|
+
if (g(p, S.value)) {
|
|
5914
|
+
h.push(S);
|
|
5902
5915
|
continue e;
|
|
5903
5916
|
}
|
|
5904
|
-
h.push(ln(m,
|
|
5917
|
+
h.push(ln(m, p));
|
|
5905
5918
|
continue;
|
|
5906
5919
|
}
|
|
5907
5920
|
h.push(...b);
|
|
@@ -6032,13 +6045,13 @@ const vd = F({
|
|
|
6032
6045
|
parents: g,
|
|
6033
6046
|
select: m,
|
|
6034
6047
|
getPath: h
|
|
6035
|
-
} = Kc(e, a, () => e.returnObject),
|
|
6048
|
+
} = Kc(e, a, () => e.returnObject), p = V(() => e.lines ? `v-list--${e.lines}-line` : void 0), b = V(() => e.activeColor), S = V(() => e.baseColor), k = V(() => e.color), P = V(() => e.selectable || e.activatable);
|
|
6036
6049
|
Ki({
|
|
6037
6050
|
filterable: e.filterable
|
|
6038
6051
|
}), pt({
|
|
6039
6052
|
VListGroup: {
|
|
6040
6053
|
activeColor: b,
|
|
6041
|
-
baseColor:
|
|
6054
|
+
baseColor: S,
|
|
6042
6055
|
color: k,
|
|
6043
6056
|
expandIcon: V(() => e.expandIcon),
|
|
6044
6057
|
collapseIcon: V(() => e.collapseIcon)
|
|
@@ -6046,7 +6059,7 @@ const vd = F({
|
|
|
6046
6059
|
VListItem: {
|
|
6047
6060
|
activeClass: V(() => e.activeClass),
|
|
6048
6061
|
activeColor: b,
|
|
6049
|
-
baseColor:
|
|
6062
|
+
baseColor: S,
|
|
6050
6063
|
color: k,
|
|
6051
6064
|
density: V(() => e.density),
|
|
6052
6065
|
disabled: V(() => e.disabled),
|
|
@@ -6097,7 +6110,7 @@ const vd = F({
|
|
|
6097
6110
|
"v-list--disabled": e.disabled,
|
|
6098
6111
|
"v-list--nav": e.nav,
|
|
6099
6112
|
"v-list--slim": e.slim
|
|
6100
|
-
}, l.value, o.value, r.value, s.value, u.value,
|
|
6113
|
+
}, l.value, o.value, r.value, s.value, u.value, p.value, d.value, e.class]),
|
|
6101
6114
|
style: ue([{
|
|
6102
6115
|
"--v-list-indent": U(R),
|
|
6103
6116
|
"--v-list-group-prepend": R ? "0px" : void 0,
|
|
@@ -6183,7 +6196,7 @@ const vd = F({
|
|
|
6183
6196
|
if (!e.disabled)
|
|
6184
6197
|
if (m.key === "Tab" || m.key === "Enter" && !e.closeOnContentClick) {
|
|
6185
6198
|
if (m.key === "Enter" && (m.target instanceof HTMLTextAreaElement || m.target instanceof HTMLInputElement && m.target.closest("form"))) return;
|
|
6186
|
-
m.key === "Enter" && m.preventDefault(), !Jo(_t(s.value?.contentEl, !1), m.shiftKey ? "prev" : "next", (
|
|
6199
|
+
m.key === "Enter" && m.preventDefault(), !Jo(_t(s.value?.contentEl, !1), m.shiftKey ? "prev" : "next", (p) => p.tabIndex >= 0) && !e.retainFocus && (a.value = !1, s.value?.activatorEl?.focus());
|
|
6187
6200
|
} else e.submenu && m.key === (o.value ? "ArrowRight" : "ArrowLeft") && (a.value = !1, s.value?.activatorEl?.focus());
|
|
6188
6201
|
}
|
|
6189
6202
|
function v(m) {
|
|
@@ -6216,12 +6229,12 @@ const vd = F({
|
|
|
6216
6229
|
}, l), {
|
|
6217
6230
|
activator: n.activator,
|
|
6218
6231
|
default: function() {
|
|
6219
|
-
for (var h = arguments.length,
|
|
6220
|
-
|
|
6232
|
+
for (var h = arguments.length, p = new Array(h), b = 0; b < h; b++)
|
|
6233
|
+
p[b] = arguments[b];
|
|
6221
6234
|
return y(Be, {
|
|
6222
6235
|
root: "VMenu"
|
|
6223
6236
|
}, {
|
|
6224
|
-
default: () => [n.default?.(...
|
|
6237
|
+
default: () => [n.default?.(...p)]
|
|
6225
6238
|
});
|
|
6226
6239
|
}
|
|
6227
6240
|
});
|
|
@@ -6269,10 +6282,10 @@ async function Io(e, t, n, a) {
|
|
|
6269
6282
|
if (u === d) return Promise.resolve(u);
|
|
6270
6283
|
const f = performance.now();
|
|
6271
6284
|
return new Promise((v) => requestAnimationFrame(function g(m) {
|
|
6272
|
-
const
|
|
6273
|
-
if (s[l] = b,
|
|
6285
|
+
const p = (m - f) / o.duration, b = Math.floor(d + (u - d) * c(Ue(p, 0, 1)));
|
|
6286
|
+
if (s[l] = b, p >= 1 && Math.abs(b - s[l]) < 10)
|
|
6274
6287
|
return v(u);
|
|
6275
|
-
if (
|
|
6288
|
+
if (p > 2)
|
|
6276
6289
|
return It("Scroll target is not reachable"), v(s[l]);
|
|
6277
6290
|
requestAnimationFrame(g);
|
|
6278
6291
|
}));
|
|
@@ -6455,12 +6468,12 @@ const wd = F({
|
|
|
6455
6468
|
return [v.value, e.ellipsis, ...Mn($, _), e.ellipsis, f.value];
|
|
6456
6469
|
}
|
|
6457
6470
|
});
|
|
6458
|
-
function
|
|
6471
|
+
function p(C, E, I) {
|
|
6459
6472
|
C.preventDefault(), l.value = E, I && a(I, E);
|
|
6460
6473
|
}
|
|
6461
6474
|
const {
|
|
6462
6475
|
refs: b,
|
|
6463
|
-
updateRef:
|
|
6476
|
+
updateRef: S
|
|
6464
6477
|
} = Sd();
|
|
6465
6478
|
pt({
|
|
6466
6479
|
VPaginationBtn: {
|
|
@@ -6474,7 +6487,7 @@ const wd = F({
|
|
|
6474
6487
|
}
|
|
6475
6488
|
});
|
|
6476
6489
|
const k = x(() => h.value.map((C, E) => {
|
|
6477
|
-
const I = (N) =>
|
|
6490
|
+
const I = (N) => S(N, E);
|
|
6478
6491
|
if (typeof C == "string")
|
|
6479
6492
|
return {
|
|
6480
6493
|
isActive: !1,
|
|
@@ -6501,7 +6514,7 @@ const wd = F({
|
|
|
6501
6514
|
color: N ? e.activeColor : e.color,
|
|
6502
6515
|
"aria-current": N,
|
|
6503
6516
|
"aria-label": o(N ? e.currentPageAriaLabel : e.pageAriaLabel, C),
|
|
6504
|
-
onClick: ($) =>
|
|
6517
|
+
onClick: ($) => p($, C)
|
|
6505
6518
|
}
|
|
6506
6519
|
};
|
|
6507
6520
|
}
|
|
@@ -6510,28 +6523,28 @@ const wd = F({
|
|
|
6510
6523
|
return {
|
|
6511
6524
|
first: e.showFirstLastPage ? {
|
|
6512
6525
|
icon: r.value ? e.lastIcon : e.firstIcon,
|
|
6513
|
-
onClick: (I) =>
|
|
6526
|
+
onClick: (I) => p(I, v.value, "first"),
|
|
6514
6527
|
disabled: C,
|
|
6515
6528
|
"aria-label": o(e.firstAriaLabel),
|
|
6516
6529
|
"aria-disabled": C
|
|
6517
6530
|
} : void 0,
|
|
6518
6531
|
prev: {
|
|
6519
6532
|
icon: r.value ? e.nextIcon : e.prevIcon,
|
|
6520
|
-
onClick: (I) =>
|
|
6533
|
+
onClick: (I) => p(I, l.value - 1, "prev"),
|
|
6521
6534
|
disabled: C,
|
|
6522
6535
|
"aria-label": o(e.previousAriaLabel),
|
|
6523
6536
|
"aria-disabled": C
|
|
6524
6537
|
},
|
|
6525
6538
|
next: {
|
|
6526
6539
|
icon: r.value ? e.prevIcon : e.nextIcon,
|
|
6527
|
-
onClick: (I) =>
|
|
6540
|
+
onClick: (I) => p(I, l.value + 1, "next"),
|
|
6528
6541
|
disabled: E,
|
|
6529
6542
|
"aria-label": o(e.nextAriaLabel),
|
|
6530
6543
|
"aria-disabled": E
|
|
6531
6544
|
},
|
|
6532
6545
|
last: e.showFirstLastPage ? {
|
|
6533
6546
|
icon: r.value ? e.firstIcon : e.lastIcon,
|
|
6534
|
-
onClick: (I) =>
|
|
6547
|
+
onClick: (I) => p(I, v.value + f.value - 1, "last"),
|
|
6535
6548
|
disabled: E,
|
|
6536
6549
|
"aria-label": o(e.lastAriaLabel),
|
|
6537
6550
|
"aria-disabled": E
|
|
@@ -6770,11 +6783,11 @@ const Do = K()({
|
|
|
6770
6783
|
backgroundColorClasses: u,
|
|
6771
6784
|
backgroundColorStyles: d,
|
|
6772
6785
|
trueValue: f
|
|
6773
|
-
} = kd(e), v = dt(), g = Q(!1), m = Q(!1), h = j(),
|
|
6786
|
+
} = kd(e), v = dt(), g = Q(!1), m = Q(!1), h = j(), p = V(() => e.id || `input-${v}`), b = V(() => !e.disabled && !e.readonly);
|
|
6774
6787
|
l?.onForceUpdate(() => {
|
|
6775
6788
|
h.value && (h.value.checked = r.value);
|
|
6776
6789
|
});
|
|
6777
|
-
function
|
|
6790
|
+
function S(T) {
|
|
6778
6791
|
b.value && (g.value = !0, Xn(T.target, ":focus-visible") !== !1 && (m.value = !0));
|
|
6779
6792
|
}
|
|
6780
6793
|
function k() {
|
|
@@ -6794,15 +6807,15 @@ const Do = K()({
|
|
|
6794
6807
|
const T = a.label ? a.label({
|
|
6795
6808
|
label: e.label,
|
|
6796
6809
|
props: {
|
|
6797
|
-
for:
|
|
6810
|
+
for: p.value
|
|
6798
6811
|
}
|
|
6799
6812
|
}) : e.label, [C, E] = Yo(n), I = w("input", W({
|
|
6800
6813
|
ref: h,
|
|
6801
6814
|
checked: r.value,
|
|
6802
6815
|
disabled: !!e.disabled,
|
|
6803
|
-
id:
|
|
6816
|
+
id: p.value,
|
|
6804
6817
|
onBlur: k,
|
|
6805
|
-
onFocus:
|
|
6818
|
+
onFocus: S,
|
|
6806
6819
|
onInput: A,
|
|
6807
6820
|
"aria-disabled": !!e.disabled,
|
|
6808
6821
|
"aria-label": e.label,
|
|
@@ -6839,9 +6852,9 @@ const Do = K()({
|
|
|
6839
6852
|
inputNode: I,
|
|
6840
6853
|
icon: i.value,
|
|
6841
6854
|
props: {
|
|
6842
|
-
onFocus:
|
|
6855
|
+
onFocus: S,
|
|
6843
6856
|
onBlur: k,
|
|
6844
|
-
id:
|
|
6857
|
+
id: p.value
|
|
6845
6858
|
}
|
|
6846
6859
|
}) ?? w(re, null, [i.value && y(ce, {
|
|
6847
6860
|
key: "icon",
|
|
@@ -6850,7 +6863,7 @@ const Do = K()({
|
|
|
6850
6863
|
center: !0,
|
|
6851
6864
|
circle: !0
|
|
6852
6865
|
}]])]), T && y(dr, {
|
|
6853
|
-
for:
|
|
6866
|
+
for: p.value,
|
|
6854
6867
|
onClick: P
|
|
6855
6868
|
}, {
|
|
6856
6869
|
default: () => [T]
|
|
@@ -7159,38 +7172,38 @@ function Bd(e) {
|
|
|
7159
7172
|
o.register?.({
|
|
7160
7173
|
id: h.value,
|
|
7161
7174
|
vm: m,
|
|
7162
|
-
validate:
|
|
7163
|
-
reset:
|
|
7175
|
+
validate: S,
|
|
7176
|
+
reset: p,
|
|
7164
7177
|
resetValidation: b
|
|
7165
7178
|
});
|
|
7166
7179
|
}), lt(() => {
|
|
7167
7180
|
o.unregister?.(h.value);
|
|
7168
7181
|
}), Bt(async () => {
|
|
7169
|
-
d.value.lazy || await
|
|
7182
|
+
d.value.lazy || await S(!d.value.eager), o.update?.(h.value, f.value, u.value);
|
|
7170
7183
|
}), Et(() => d.value.input || d.value.invalidInput && f.value === !1, () => {
|
|
7171
7184
|
Z(l, () => {
|
|
7172
7185
|
if (l.value != null)
|
|
7173
|
-
|
|
7186
|
+
S();
|
|
7174
7187
|
else if (e.focused) {
|
|
7175
7188
|
const k = Z(() => e.focused, (P) => {
|
|
7176
|
-
P ||
|
|
7189
|
+
P || S(), k();
|
|
7177
7190
|
});
|
|
7178
7191
|
}
|
|
7179
7192
|
});
|
|
7180
7193
|
}), Et(() => d.value.blur, () => {
|
|
7181
7194
|
Z(() => e.focused, (k) => {
|
|
7182
|
-
k ||
|
|
7195
|
+
k || S();
|
|
7183
7196
|
});
|
|
7184
7197
|
}), Z([f, u], () => {
|
|
7185
7198
|
o.update?.(h.value, f.value, u.value);
|
|
7186
7199
|
});
|
|
7187
|
-
async function
|
|
7200
|
+
async function p() {
|
|
7188
7201
|
a.value = null, await Se(), await b();
|
|
7189
7202
|
}
|
|
7190
7203
|
async function b() {
|
|
7191
|
-
s.value = !0, d.value.lazy ? r.value = [] : await
|
|
7204
|
+
s.value = !0, d.value.lazy ? r.value = [] : await S(!d.value.eager);
|
|
7192
7205
|
}
|
|
7193
|
-
async function
|
|
7206
|
+
async function S() {
|
|
7194
7207
|
let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
7195
7208
|
const P = [];
|
|
7196
7209
|
v.value = !0;
|
|
@@ -7216,9 +7229,9 @@ function Bd(e) {
|
|
|
7216
7229
|
isPristine: s,
|
|
7217
7230
|
isValid: f,
|
|
7218
7231
|
isValidating: v,
|
|
7219
|
-
reset:
|
|
7232
|
+
reset: p,
|
|
7220
7233
|
resetValidation: b,
|
|
7221
|
-
validate:
|
|
7234
|
+
validate: S,
|
|
7222
7235
|
validationClasses: g
|
|
7223
7236
|
};
|
|
7224
7237
|
}
|
|
@@ -7284,9 +7297,9 @@ const Sr = F({
|
|
|
7284
7297
|
isDisabled: g,
|
|
7285
7298
|
isReadonly: m,
|
|
7286
7299
|
isPristine: h,
|
|
7287
|
-
isValid:
|
|
7300
|
+
isValid: p,
|
|
7288
7301
|
isValidating: b,
|
|
7289
|
-
reset:
|
|
7302
|
+
reset: S,
|
|
7290
7303
|
resetValidation: k,
|
|
7291
7304
|
validate: P,
|
|
7292
7305
|
validationClasses: A
|
|
@@ -7297,10 +7310,10 @@ const Sr = F({
|
|
|
7297
7310
|
isDisabled: g,
|
|
7298
7311
|
isReadonly: m,
|
|
7299
7312
|
isPristine: h,
|
|
7300
|
-
isValid:
|
|
7313
|
+
isValid: p,
|
|
7301
7314
|
isValidating: b,
|
|
7302
7315
|
hasDetails: E,
|
|
7303
|
-
reset:
|
|
7316
|
+
reset: S,
|
|
7304
7317
|
resetValidation: k,
|
|
7305
7318
|
validate: P
|
|
7306
7319
|
})), $ = V(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), _ = V(() => {
|
|
@@ -7345,10 +7358,10 @@ const Sr = F({
|
|
|
7345
7358
|
message: a.message
|
|
7346
7359
|
}), a.details?.(N.value)])]);
|
|
7347
7360
|
}), {
|
|
7348
|
-
reset:
|
|
7361
|
+
reset: S,
|
|
7349
7362
|
resetValidation: k,
|
|
7350
7363
|
validate: P,
|
|
7351
|
-
isValid:
|
|
7364
|
+
isValid: p,
|
|
7352
7365
|
errorMessages: f
|
|
7353
7366
|
};
|
|
7354
7367
|
}
|
|
@@ -7450,11 +7463,11 @@ const xr = Symbol.for("vuetify:v-slide-group"), kr = F({
|
|
|
7450
7463
|
} = qt(), {
|
|
7451
7464
|
resizeRef: g,
|
|
7452
7465
|
contentRect: m
|
|
7453
|
-
} = qt(), h = bd(),
|
|
7466
|
+
} = qt(), h = bd(), p = x(() => ({
|
|
7454
7467
|
container: f.el,
|
|
7455
7468
|
duration: 200,
|
|
7456
7469
|
easing: "easeOutQuart"
|
|
7457
|
-
})), b = x(() => i.selected.value.length ? i.items.value.findIndex((L) => L.id === i.selected.value[0]) : -1),
|
|
7470
|
+
})), b = x(() => i.selected.value.length ? i.items.value.findIndex((L) => L.id === i.selected.value[0]) : -1), S = x(() => i.selected.value.length ? i.items.value.findIndex((L) => L.id === i.selected.value[i.selected.value.length - 1]) : -1);
|
|
7458
7471
|
if (Ee) {
|
|
7459
7472
|
let L = -1;
|
|
7460
7473
|
Z(() => [i.selected.value, v.value, m.value, d.value], () => {
|
|
@@ -7464,7 +7477,7 @@ const xr = Symbol.for("vuetify:v-slide-group"), kr = F({
|
|
|
7464
7477
|
c.value = v.value[H], u.value = m.value[H], r.value = c.value + 1 < u.value;
|
|
7465
7478
|
}
|
|
7466
7479
|
if (e.scrollToActive && b.value >= 0 && g.el) {
|
|
7467
|
-
const H = g.el.children[
|
|
7480
|
+
const H = g.el.children[S.value];
|
|
7468
7481
|
P(H, e.centerActive);
|
|
7469
7482
|
}
|
|
7470
7483
|
});
|
|
@@ -7496,7 +7509,7 @@ const xr = Symbol.for("vuetify:v-slide-group"), kr = F({
|
|
|
7496
7509
|
} = f.el;
|
|
7497
7510
|
L = de - z - L;
|
|
7498
7511
|
}
|
|
7499
|
-
d.value ? h.horizontal(L,
|
|
7512
|
+
d.value ? h.horizontal(L, p.value) : h(L, p.value);
|
|
7500
7513
|
}
|
|
7501
7514
|
}
|
|
7502
7515
|
function T(L) {
|
|
@@ -7807,7 +7820,7 @@ const Rd = F({
|
|
|
7807
7820
|
sizeClasses: u
|
|
7808
7821
|
} = Ln(e), {
|
|
7809
7822
|
themeClasses: d
|
|
7810
|
-
} = je(e), f = ge(e, "modelValue"), v = ja(e, Pr, !1), g = ja(e, xr, !1), m = ca(e, n), h = V(() => e.link !== !1 && m.isLink.value),
|
|
7823
|
+
} = je(e), f = ge(e, "modelValue"), v = ja(e, Pr, !1), g = ja(e, xr, !1), m = ca(e, n), h = V(() => e.link !== !1 && m.isLink.value), p = x(() => !e.disabled && e.link !== !1 && (!!v || e.link || m.isClickable.value)), b = V(() => ({
|
|
7811
7824
|
"aria-label": o(e.closeLabel),
|
|
7812
7825
|
disabled: e.disabled,
|
|
7813
7826
|
onClick(C) {
|
|
@@ -7818,7 +7831,7 @@ const Rd = F({
|
|
|
7818
7831
|
C ? (v?.register(), g?.register()) : (v?.unregister(), g?.unregister());
|
|
7819
7832
|
});
|
|
7820
7833
|
const {
|
|
7821
|
-
colorClasses:
|
|
7834
|
+
colorClasses: S,
|
|
7822
7835
|
colorStyles: k,
|
|
7823
7836
|
variantClasses: P
|
|
7824
7837
|
} = Nn(() => ({
|
|
@@ -7826,7 +7839,7 @@ const Rd = F({
|
|
|
7826
7839
|
variant: e.variant
|
|
7827
7840
|
}));
|
|
7828
7841
|
function A(C) {
|
|
7829
|
-
a("click", C),
|
|
7842
|
+
a("click", C), p.value && (m.navigate?.(C), v?.toggle());
|
|
7830
7843
|
}
|
|
7831
7844
|
function T(C) {
|
|
7832
7845
|
(C.key === "Enter" || C.key === " ") && (C.preventDefault(), A(C));
|
|
@@ -7837,19 +7850,19 @@ const Rd = F({
|
|
|
7837
7850
|
class: ["v-chip", {
|
|
7838
7851
|
"v-chip--disabled": e.disabled,
|
|
7839
7852
|
"v-chip--label": e.label,
|
|
7840
|
-
"v-chip--link":
|
|
7853
|
+
"v-chip--link": p.value,
|
|
7841
7854
|
"v-chip--filter": $,
|
|
7842
7855
|
"v-chip--pill": e.pill,
|
|
7843
7856
|
[`${e.activeClass}`]: e.activeClass && m.isActive?.value
|
|
7844
|
-
}, d.value, i.value,
|
|
7857
|
+
}, d.value, i.value, S.value, r.value, s.value, c.value, u.value, P.value, v?.selectedClass.value, e.class],
|
|
7845
7858
|
style: [k.value, e.style],
|
|
7846
7859
|
disabled: e.disabled || void 0,
|
|
7847
7860
|
draggable: e.draggable,
|
|
7848
|
-
tabindex:
|
|
7861
|
+
tabindex: p.value ? 0 : void 0,
|
|
7849
7862
|
onClick: A,
|
|
7850
|
-
onKeydown:
|
|
7863
|
+
onKeydown: p.value && !h.value && T
|
|
7851
7864
|
}), {
|
|
7852
|
-
default: () => [$n(
|
|
7865
|
+
default: () => [$n(p.value, "v-chip"), $ && y(Ui, {
|
|
7853
7866
|
key: "filter"
|
|
7854
7867
|
}, {
|
|
7855
7868
|
default: () => [He(w("div", {
|
|
@@ -7942,7 +7955,7 @@ const Rd = F({
|
|
|
7942
7955
|
icon: e.closeIcon,
|
|
7943
7956
|
size: "x-small"
|
|
7944
7957
|
}, null)])]
|
|
7945
|
-
}), [[wt,
|
|
7958
|
+
}), [[wt, p.value && e.ripple, null]]);
|
|
7946
7959
|
};
|
|
7947
7960
|
}
|
|
7948
7961
|
}), Md = F({
|
|
@@ -8075,7 +8088,7 @@ const Rd = F({
|
|
|
8075
8088
|
roundedClasses: f
|
|
8076
8089
|
} = mt(e), {
|
|
8077
8090
|
rtlClasses: v
|
|
8078
|
-
} = kt(), g = V(() => e.dirty || e.active), m = V(() => !!(e.label || l.label)), h = V(() => !e.singleLine && m.value),
|
|
8091
|
+
} = kt(), g = V(() => e.dirty || e.active), m = V(() => !!(e.label || l.label)), h = V(() => !e.singleLine && m.value), p = dt(), b = x(() => e.id || `input-${p}`), S = V(() => e.details ? `${b.value}-messages` : void 0), k = j(), P = j(), A = j(), T = x(() => ["plain", "underlined"].includes(e.variant)), C = x(() => e.error || e.disabled ? void 0 : g.value && s.value ? e.color : e.baseColor), E = x(() => {
|
|
8079
8092
|
if (!(!e.iconColor || e.glow && !s.value))
|
|
8080
8093
|
return e.iconColor === !0 ? C.value : e.iconColor;
|
|
8081
8094
|
}), {
|
|
@@ -8185,14 +8198,14 @@ const Rd = F({
|
|
|
8185
8198
|
props: {
|
|
8186
8199
|
id: b.value,
|
|
8187
8200
|
class: "v-field__input",
|
|
8188
|
-
"aria-describedby":
|
|
8201
|
+
"aria-describedby": S.value
|
|
8189
8202
|
},
|
|
8190
8203
|
focus: c,
|
|
8191
8204
|
blur: u
|
|
8192
8205
|
}) ?? w("div", {
|
|
8193
8206
|
id: b.value,
|
|
8194
8207
|
class: "v-field__input",
|
|
8195
|
-
"aria-describedby":
|
|
8208
|
+
"aria-describedby": S.value
|
|
8196
8209
|
}, null)]), ae && y(Ui, {
|
|
8197
8210
|
key: "clear"
|
|
8198
8211
|
}, {
|
|
@@ -8329,13 +8342,13 @@ const qd = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
8329
8342
|
if (n.maxlength) return n.maxlength;
|
|
8330
8343
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
8331
8344
|
return e.counter;
|
|
8332
|
-
}), f = x(() => ["plain", "underlined"].includes(e.variant)), v = j(), g = j(), m = j(), h = Ir(e),
|
|
8345
|
+
}), f = x(() => ["plain", "underlined"].includes(e.variant)), v = j(), g = j(), m = j(), h = Ir(e), p = x(() => qd.includes(e.type) || e.persistentPlaceholder || i.value || e.active);
|
|
8333
8346
|
function b() {
|
|
8334
8347
|
h.isSuppressing.value && h.update(), i.value || r(), Se(() => {
|
|
8335
8348
|
m.value !== document.activeElement && m.value?.focus();
|
|
8336
8349
|
});
|
|
8337
8350
|
}
|
|
8338
|
-
function
|
|
8351
|
+
function S(T) {
|
|
8339
8352
|
a("mousedown:control", T), T.target !== m.value && (b(), T.preventDefault());
|
|
8340
8353
|
}
|
|
8341
8354
|
function k(T) {
|
|
@@ -8390,13 +8403,13 @@ const qd = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
8390
8403
|
} = R;
|
|
8391
8404
|
return y(Fo, W({
|
|
8392
8405
|
ref: g,
|
|
8393
|
-
onMousedown:
|
|
8406
|
+
onMousedown: S,
|
|
8394
8407
|
onClick: k,
|
|
8395
8408
|
"onClick:clear": (L) => P(L, J),
|
|
8396
8409
|
role: e.role
|
|
8397
8410
|
}, tt(_, ["onClick:clear"]), {
|
|
8398
8411
|
id: G.value,
|
|
8399
|
-
active:
|
|
8412
|
+
active: p.value || ee.value,
|
|
8400
8413
|
dirty: ee.value || e.dirty,
|
|
8401
8414
|
disabled: Y.value,
|
|
8402
8415
|
focused: i.value,
|
|
@@ -8525,9 +8538,9 @@ function Zd(e, t) {
|
|
|
8525
8538
|
}), h = Array.from({
|
|
8526
8539
|
length: t.value.length
|
|
8527
8540
|
});
|
|
8528
|
-
const
|
|
8541
|
+
const p = Q(0);
|
|
8529
8542
|
let b = -1;
|
|
8530
|
-
function
|
|
8543
|
+
function S(M) {
|
|
8531
8544
|
return m[M] || a.value;
|
|
8532
8545
|
}
|
|
8533
8546
|
const k = _s(() => {
|
|
@@ -8535,9 +8548,9 @@ function Zd(e, t) {
|
|
|
8535
8548
|
h[0] = 0;
|
|
8536
8549
|
const J = t.value.length;
|
|
8537
8550
|
for (let L = 1; L <= J; L++)
|
|
8538
|
-
h[L] = (h[L - 1] || 0) +
|
|
8539
|
-
|
|
8540
|
-
},
|
|
8551
|
+
h[L] = (h[L - 1] || 0) + S(L - 1);
|
|
8552
|
+
p.value = Math.max(p.value, performance.now() - M);
|
|
8553
|
+
}, p), P = Z(g, (M) => {
|
|
8541
8554
|
M && (P(), u = c.value.offsetTop, k.immediate(), Y(), ~b && Se(() => {
|
|
8542
8555
|
Ee && window.requestAnimationFrame(() => {
|
|
8543
8556
|
ae(b), b = -1;
|
|
@@ -8668,12 +8681,12 @@ const Jd = F({
|
|
|
8668
8681
|
} = Zd(e, V(() => e.items));
|
|
8669
8682
|
return Et(() => e.renderless, () => {
|
|
8670
8683
|
function m() {
|
|
8671
|
-
const
|
|
8672
|
-
i.value === document.documentElement ? (document[
|
|
8684
|
+
const p = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
8685
|
+
i.value === document.documentElement ? (document[p]("scroll", s, {
|
|
8673
8686
|
passive: !0
|
|
8674
|
-
}), document[
|
|
8687
|
+
}), document[p]("scrollend", c)) : (i.value?.[p]("scroll", s, {
|
|
8675
8688
|
passive: !0
|
|
8676
|
-
}), i.value?.[
|
|
8689
|
+
}), i.value?.[p]("scrollend", c));
|
|
8677
8690
|
}
|
|
8678
8691
|
Bt(() => {
|
|
8679
8692
|
i.value = oi(a.vnode.el, !0), m(!0);
|
|
@@ -8682,12 +8695,12 @@ const Jd = F({
|
|
|
8682
8695
|
const m = g.value.map((h) => y(Ud, {
|
|
8683
8696
|
key: h.key,
|
|
8684
8697
|
renderless: e.renderless,
|
|
8685
|
-
"onUpdate:height": (
|
|
8698
|
+
"onUpdate:height": (p) => u(h.index, p)
|
|
8686
8699
|
}, {
|
|
8687
|
-
default: (
|
|
8700
|
+
default: (p) => n.default?.({
|
|
8688
8701
|
item: h.raw,
|
|
8689
8702
|
index: h.index,
|
|
8690
|
-
...
|
|
8703
|
+
...p
|
|
8691
8704
|
})
|
|
8692
8705
|
}));
|
|
8693
8706
|
return e.renderless ? w(re, null, [w("div", {
|
|
@@ -8853,8 +8866,8 @@ const lf = F({
|
|
|
8853
8866
|
const oe = c(B);
|
|
8854
8867
|
return e.multiple ? oe : oe[0] ?? null;
|
|
8855
8868
|
}), d = x(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : u.value.length), f = pr(e), v = Ir(e), g = x(() => u.value.map((B) => B.value)), m = Q(!1);
|
|
8856
|
-
let h = "",
|
|
8857
|
-
const
|
|
8869
|
+
let h = "", p = -1, b;
|
|
8870
|
+
const S = x(() => e.hideSelected ? r.value.filter((B) => !u.value.some((oe) => (e.valueComparator || Ke)(oe, B))) : r.value), k = x(() => e.hideNoData && !S.value.length || f.isReadonly.value || f.isDisabled.value), P = ge(e, "menu"), A = x({
|
|
8858
8871
|
get: () => P.value,
|
|
8859
8872
|
set: (B) => {
|
|
8860
8873
|
P.value && !B && o.value?.ΨopenChildren.size || B && k.value || (P.value = B);
|
|
@@ -8887,14 +8900,14 @@ const lf = F({
|
|
|
8887
8900
|
const oe = 1e3;
|
|
8888
8901
|
if (!jl(B)) return;
|
|
8889
8902
|
const de = performance.now();
|
|
8890
|
-
de - b > oe && (h = "",
|
|
8891
|
-
const z =
|
|
8903
|
+
de - b > oe && (h = "", p = -1), h += B.key.toLowerCase(), b = de;
|
|
8904
|
+
const z = S.value;
|
|
8892
8905
|
function ve() {
|
|
8893
8906
|
let be = se();
|
|
8894
|
-
return be || h.at(-1) === h.at(-2) && (h = h.slice(0, -1), be = se(), be) || (
|
|
8907
|
+
return be || h.at(-1) === h.at(-2) && (h = h.slice(0, -1), be = se(), be) || (p = -1, be = se(), be) ? be : (h = B.key.toLowerCase(), se());
|
|
8895
8908
|
}
|
|
8896
8909
|
function se() {
|
|
8897
|
-
for (let be =
|
|
8910
|
+
for (let be = p + 1; be < z.length; be++) {
|
|
8898
8911
|
const gt = z[be];
|
|
8899
8912
|
if (gt.title.toLowerCase().startsWith(h))
|
|
8900
8913
|
return [gt, be];
|
|
@@ -8903,7 +8916,7 @@ const lf = F({
|
|
|
8903
8916
|
const ye = ve();
|
|
8904
8917
|
if (!ye) return;
|
|
8905
8918
|
const [De, it] = ye;
|
|
8906
|
-
|
|
8919
|
+
p = it, $.value?.focus(it), e.multiple || (u.value = [De]);
|
|
8907
8920
|
}
|
|
8908
8921
|
function ae(B) {
|
|
8909
8922
|
let oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
@@ -8942,7 +8955,7 @@ const lf = F({
|
|
|
8942
8955
|
}
|
|
8943
8956
|
return Z(A, () => {
|
|
8944
8957
|
if (!e.hideSelected && A.value && u.value.length) {
|
|
8945
|
-
const B =
|
|
8958
|
+
const B = S.value.findIndex((oe) => u.value.some((de) => (e.valueComparator || Ke)(de.value, oe.value)));
|
|
8946
8959
|
Ee && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
8947
8960
|
B >= 0 && i.value?.scrollToIndex(B);
|
|
8948
8961
|
});
|
|
@@ -8950,7 +8963,7 @@ const lf = F({
|
|
|
8950
8963
|
}), Z(r, (B, oe) => {
|
|
8951
8964
|
A.value || m.value && e.hideNoData && !oe.length && B.length && (A.value = !0);
|
|
8952
8965
|
}), te(() => {
|
|
8953
|
-
const B = !!(e.chips || n.chip), oe = !!(!e.hideNoData ||
|
|
8966
|
+
const B = !!(e.chips || n.chip), oe = !!(!e.hideNoData || S.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]), de = u.value.length > 0, z = An.filterProps(e), ve = de || !m.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
|
|
8954
8967
|
return y(An, W({
|
|
8955
8968
|
ref: l
|
|
8956
8969
|
}, z, {
|
|
@@ -9019,13 +9032,13 @@ const lf = F({
|
|
|
9019
9032
|
"aria-label": `${e.label}-list`,
|
|
9020
9033
|
color: e.itemColor ?? e.color
|
|
9021
9034
|
}, _, e.listProps), {
|
|
9022
|
-
default: () => [n["prepend-item"]?.(), !
|
|
9035
|
+
default: () => [n["prepend-item"]?.(), !S.value.length && !e.hideNoData && (n["no-data"]?.() ?? y(st, {
|
|
9023
9036
|
key: "no-data",
|
|
9024
9037
|
title: a(e.noDataText)
|
|
9025
9038
|
}, null)), y(ef, {
|
|
9026
9039
|
ref: i,
|
|
9027
9040
|
renderless: !0,
|
|
9028
|
-
items:
|
|
9041
|
+
items: S.value,
|
|
9029
9042
|
itemKey: "value"
|
|
9030
9043
|
}, {
|
|
9031
9044
|
default: (se) => {
|
|
@@ -9334,11 +9347,11 @@ function ff(e, t, n) {
|
|
|
9334
9347
|
};
|
|
9335
9348
|
continue;
|
|
9336
9349
|
}
|
|
9337
|
-
const
|
|
9338
|
-
g =
|
|
9339
|
-
for (const b of
|
|
9340
|
-
const
|
|
9341
|
-
if (v = k ? k(
|
|
9350
|
+
const p = o || Object.keys(u);
|
|
9351
|
+
g = p.length === i;
|
|
9352
|
+
for (const b of p) {
|
|
9353
|
+
const S = _e(u, b), k = n?.customKeyFilter?.[b];
|
|
9354
|
+
if (v = k ? k(S, t, c) : l(S, t, c), v !== -1 && v !== !1)
|
|
9342
9355
|
k ? d[b] = La(v, t) : f[b] = La(v, t);
|
|
9343
9356
|
else if (n?.filterMode === "every")
|
|
9344
9357
|
continue e;
|
|
@@ -9376,8 +9389,8 @@ function vf(e, t, n, a) {
|
|
|
9376
9389
|
index: m,
|
|
9377
9390
|
matches: h
|
|
9378
9391
|
} = g;
|
|
9379
|
-
const
|
|
9380
|
-
f.push(
|
|
9392
|
+
const p = d[m];
|
|
9393
|
+
f.push(p), v.set(p.value, h);
|
|
9381
9394
|
}), l.value = f, o.value = v;
|
|
9382
9395
|
});
|
|
9383
9396
|
function r(s) {
|
|
@@ -9694,22 +9707,22 @@ const mf = F({
|
|
|
9694
9707
|
positionClasses: g
|
|
9695
9708
|
} = mi(e), {
|
|
9696
9709
|
roundedClasses: m
|
|
9697
|
-
} = mt(e), h = ca(e, n),
|
|
9698
|
-
return Z(() => e.loading, (b,
|
|
9699
|
-
|
|
9710
|
+
} = mt(e), h = ca(e, n), p = Q(void 0);
|
|
9711
|
+
return Z(() => e.loading, (b, S) => {
|
|
9712
|
+
p.value = !b && typeof S == "string" ? S : typeof b == "boolean" ? void 0 : b;
|
|
9700
9713
|
}, {
|
|
9701
9714
|
immediate: !0
|
|
9702
9715
|
}), te(() => {
|
|
9703
|
-
const b = e.link !== !1 && h.isLink.value,
|
|
9716
|
+
const b = e.link !== !1 && h.isLink.value, S = !e.disabled && e.link !== !1 && (e.link || h.isClickable.value), k = b ? "a" : e.tag, P = !!(a.title || e.title != null), A = !!(a.subtitle || e.subtitle != null), T = P || A, C = !!(a.append || e.appendAvatar || e.appendIcon), E = !!(a.prepend || e.prependAvatar || e.prependIcon), I = !!(a.image || e.image), N = T || E || C, $ = !!(a.text || e.text != null);
|
|
9704
9717
|
return He(y(k, W(h.linkProps, {
|
|
9705
9718
|
class: ["v-card", {
|
|
9706
9719
|
"v-card--disabled": e.disabled,
|
|
9707
9720
|
"v-card--flat": e.flat,
|
|
9708
9721
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
9709
|
-
"v-card--link":
|
|
9722
|
+
"v-card--link": S
|
|
9710
9723
|
}, l.value, o.value, i.value, c.value, d.value, f.value, g.value, m.value, s.value, e.class],
|
|
9711
9724
|
style: [r.value, u.value, v.value, e.style],
|
|
9712
|
-
onClick:
|
|
9725
|
+
onClick: S && h.navigate,
|
|
9713
9726
|
tabindex: e.disabled ? -1 : void 0
|
|
9714
9727
|
}), {
|
|
9715
9728
|
default: () => [I && w("div", {
|
|
@@ -9731,7 +9744,7 @@ const mf = F({
|
|
|
9731
9744
|
}, null)]), y(Cl, {
|
|
9732
9745
|
name: "v-card",
|
|
9733
9746
|
active: !!e.loading,
|
|
9734
|
-
color:
|
|
9747
|
+
color: p.value
|
|
9735
9748
|
}, {
|
|
9736
9749
|
default: a.loader
|
|
9737
9750
|
}), N && y(Sf, {
|
|
@@ -9754,8 +9767,8 @@ const mf = F({
|
|
|
9754
9767
|
default: () => [a.text?.() ?? e.text]
|
|
9755
9768
|
}), a.default?.(), a.actions && y(yf, null, {
|
|
9756
9769
|
default: a.actions
|
|
9757
|
-
}), $n(
|
|
9758
|
-
}), [[wt,
|
|
9770
|
+
}), $n(S, "v-card")]
|
|
9771
|
+
}), [[wt, S && e.ripple]]);
|
|
9759
9772
|
}), {};
|
|
9760
9773
|
}
|
|
9761
9774
|
}), xf = F({
|
|
@@ -10079,8 +10092,8 @@ function Mf(e, t) {
|
|
|
10079
10092
|
currentPage: a
|
|
10080
10093
|
} = t;
|
|
10081
10094
|
const l = ge(e, "modelValue", e.modelValue, (b) => {
|
|
10082
|
-
const
|
|
10083
|
-
return
|
|
10095
|
+
const S = e.valueComparator;
|
|
10096
|
+
return S ? new Set(Oe(b).map((k) => n.value.find((P) => S(k, P.value))?.value ?? k)) : new Set(Oe(b).map((k) => At(k) ? n.value.find((P) => k === P.value)?.value ?? k : n.value.find((P) => Ke(k, P.value))?.value ?? k));
|
|
10084
10097
|
}, (b) => [...b.values()]), o = x(() => n.value.filter((b) => b.selectable)), i = x(() => a.value.filter((b) => b.selectable)), r = x(() => {
|
|
10085
10098
|
if (typeof e.selectStrategy == "object") return e.selectStrategy;
|
|
10086
10099
|
switch (e.selectStrategy) {
|
|
@@ -10094,36 +10107,36 @@ function Mf(e, t) {
|
|
|
10094
10107
|
}
|
|
10095
10108
|
}), s = Q(null);
|
|
10096
10109
|
function c(b) {
|
|
10097
|
-
return Oe(b).every((
|
|
10110
|
+
return Oe(b).every((S) => l.value.has(S.value));
|
|
10098
10111
|
}
|
|
10099
10112
|
function u(b) {
|
|
10100
|
-
return Oe(b).some((
|
|
10113
|
+
return Oe(b).some((S) => l.value.has(S.value));
|
|
10101
10114
|
}
|
|
10102
|
-
function d(b,
|
|
10115
|
+
function d(b, S) {
|
|
10103
10116
|
const k = r.value.select({
|
|
10104
10117
|
items: b,
|
|
10105
|
-
value:
|
|
10118
|
+
value: S,
|
|
10106
10119
|
selected: new Set(l.value)
|
|
10107
10120
|
});
|
|
10108
10121
|
l.value = k;
|
|
10109
10122
|
}
|
|
10110
|
-
function f(b,
|
|
10123
|
+
function f(b, S, k) {
|
|
10111
10124
|
const P = [];
|
|
10112
|
-
if (
|
|
10113
|
-
const [A, T] = [s.value,
|
|
10125
|
+
if (S = S ?? a.value.findIndex((A) => A.value === b.value), e.selectStrategy !== "single" && k?.shiftKey && s.value !== null) {
|
|
10126
|
+
const [A, T] = [s.value, S].sort((C, E) => C - E);
|
|
10114
10127
|
P.push(...a.value.slice(A, T + 1).filter((C) => C.selectable));
|
|
10115
10128
|
} else
|
|
10116
|
-
P.push(b), s.value =
|
|
10129
|
+
P.push(b), s.value = S;
|
|
10117
10130
|
d(P, !c([b]));
|
|
10118
10131
|
}
|
|
10119
10132
|
function v(b) {
|
|
10120
|
-
const
|
|
10133
|
+
const S = r.value.selectAll({
|
|
10121
10134
|
value: b,
|
|
10122
10135
|
allItems: o.value,
|
|
10123
10136
|
currentPage: i.value,
|
|
10124
10137
|
selected: new Set(l.value)
|
|
10125
10138
|
});
|
|
10126
|
-
l.value =
|
|
10139
|
+
l.value = S;
|
|
10127
10140
|
}
|
|
10128
10141
|
const g = x(() => l.value.size > 0), m = x(() => {
|
|
10129
10142
|
const b = r.value.allSelected({
|
|
@@ -10131,7 +10144,7 @@ function Mf(e, t) {
|
|
|
10131
10144
|
currentPage: i.value
|
|
10132
10145
|
});
|
|
10133
10146
|
return !!b.length && c(b);
|
|
10134
|
-
}), h = V(() => r.value.showSelectAll),
|
|
10147
|
+
}), h = V(() => r.value.showSelectAll), p = {
|
|
10135
10148
|
toggleSelect: f,
|
|
10136
10149
|
select: d,
|
|
10137
10150
|
selectAll: v,
|
|
@@ -10143,7 +10156,7 @@ function Mf(e, t) {
|
|
|
10143
10156
|
lastSelectedIndex: s,
|
|
10144
10157
|
selectStrategy: r
|
|
10145
10158
|
};
|
|
10146
|
-
return Te(Mr,
|
|
10159
|
+
return Te(Mr, p), p;
|
|
10147
10160
|
}
|
|
10148
10161
|
function ba() {
|
|
10149
10162
|
const e = he(Mr);
|
|
@@ -10722,10 +10735,10 @@ const Xr = F({
|
|
|
10722
10735
|
return I ? I.order === "asc" ? e.sortAscIcon : e.sortDescIcon : e.sortAscIcon;
|
|
10723
10736
|
}
|
|
10724
10737
|
const {
|
|
10725
|
-
backgroundColorClasses:
|
|
10738
|
+
backgroundColorClasses: p,
|
|
10726
10739
|
backgroundColorStyles: b
|
|
10727
10740
|
} = bt(() => e.color), {
|
|
10728
|
-
displayClasses:
|
|
10741
|
+
displayClasses: S,
|
|
10729
10742
|
mobile: k
|
|
10730
10743
|
} = Qt(e), P = x(() => ({
|
|
10731
10744
|
headers: f.value,
|
|
@@ -10739,7 +10752,7 @@ const Xr = F({
|
|
|
10739
10752
|
getSortIcon: h
|
|
10740
10753
|
})), A = x(() => ["v-data-table__th", {
|
|
10741
10754
|
"v-data-table__th--sticky": e.sticky || e.fixedHeader
|
|
10742
|
-
},
|
|
10755
|
+
}, S.value, v.value]), T = (E) => {
|
|
10743
10756
|
let {
|
|
10744
10757
|
column: I,
|
|
10745
10758
|
x: N,
|
|
@@ -10797,7 +10810,7 @@ const Xr = F({
|
|
|
10797
10810
|
icon: h(I)
|
|
10798
10811
|
}, null), e.multiSort && i(I) && w("div", {
|
|
10799
10812
|
key: "badge",
|
|
10800
|
-
class: X(["v-data-table-header__sort-badge", ...
|
|
10813
|
+
class: X(["v-data-table-header__sort-badge", ...p.value]),
|
|
10801
10814
|
style: ue(b.value)
|
|
10802
10815
|
}, [o.value.findIndex((ae) => ae.key === I.key) + 1])]);
|
|
10803
10816
|
}
|
|
@@ -10996,8 +11009,8 @@ const Xr = F({
|
|
|
10996
11009
|
onClick: e.onClick,
|
|
10997
11010
|
onContextmenu: e.onContextmenu,
|
|
10998
11011
|
onDblclick: e.onDblclick
|
|
10999
|
-
}, [e.item && m.value.map((h,
|
|
11000
|
-
const b = e.item,
|
|
11012
|
+
}, [e.item && m.value.map((h, p) => {
|
|
11013
|
+
const b = e.item, S = `item.${h.key}`, k = `header.${h.key}`, P = {
|
|
11001
11014
|
index: e.index,
|
|
11002
11015
|
item: b.raw,
|
|
11003
11016
|
internalItem: b,
|
|
@@ -11078,13 +11091,13 @@ const Xr = F({
|
|
|
11078
11091
|
variant: "text",
|
|
11079
11092
|
onClick: an(() => d(b), ["stop"])
|
|
11080
11093
|
}, null);
|
|
11081
|
-
if (n[
|
|
11094
|
+
if (n[S] && !l.value) return n[S](P);
|
|
11082
11095
|
const N = pe(P.value);
|
|
11083
11096
|
return l.value ? w(re, null, [w("div", {
|
|
11084
11097
|
class: "v-data-table__td-title"
|
|
11085
11098
|
}, [n[k]?.(A) ?? h.title]), w("div", {
|
|
11086
11099
|
class: "v-data-table__td-value"
|
|
11087
|
-
}, [n[
|
|
11100
|
+
}, [n[S]?.(P) ?? N])]) : N;
|
|
11088
11101
|
}
|
|
11089
11102
|
});
|
|
11090
11103
|
})]));
|
|
@@ -11150,7 +11163,7 @@ const Xr = F({
|
|
|
11150
11163
|
colspan: l.value.length
|
|
11151
11164
|
}, [a["no-data"]?.() ?? f(e.noDataText)])]) : w(re, null, [e.items.map((m, h) => {
|
|
11152
11165
|
if (m.type === "group") {
|
|
11153
|
-
const
|
|
11166
|
+
const S = {
|
|
11154
11167
|
index: h,
|
|
11155
11168
|
item: m,
|
|
11156
11169
|
columns: l.value,
|
|
@@ -11161,21 +11174,21 @@ const Xr = F({
|
|
|
11161
11174
|
toggleGroup: u,
|
|
11162
11175
|
isGroupOpen: d
|
|
11163
11176
|
};
|
|
11164
|
-
return a["group-header"] ? a["group-header"](
|
|
11177
|
+
return a["group-header"] ? a["group-header"](S) : y(Jf, W({
|
|
11165
11178
|
key: `group-header_${m.id}`,
|
|
11166
11179
|
item: m
|
|
11167
|
-
}, io(n, ":groupHeader", () =>
|
|
11180
|
+
}, io(n, ":groupHeader", () => S), g), a);
|
|
11168
11181
|
}
|
|
11169
11182
|
if (m.type === "group-summary") {
|
|
11170
|
-
const
|
|
11183
|
+
const S = {
|
|
11171
11184
|
index: h,
|
|
11172
11185
|
item: m,
|
|
11173
11186
|
columns: l.value,
|
|
11174
11187
|
toggleGroup: u
|
|
11175
11188
|
};
|
|
11176
|
-
return a["group-summary"]?.(
|
|
11189
|
+
return a["group-summary"]?.(S) ?? "";
|
|
11177
11190
|
}
|
|
11178
|
-
const
|
|
11191
|
+
const p = {
|
|
11179
11192
|
index: h,
|
|
11180
11193
|
item: m.raw,
|
|
11181
11194
|
internalItem: m,
|
|
@@ -11185,7 +11198,7 @@ const Xr = F({
|
|
|
11185
11198
|
isSelected: s,
|
|
11186
11199
|
toggleSelect: c
|
|
11187
11200
|
}, b = {
|
|
11188
|
-
...
|
|
11201
|
+
...p,
|
|
11189
11202
|
props: W({
|
|
11190
11203
|
key: `item_${m.key ?? m.index}`,
|
|
11191
11204
|
onClick: o.value ? () => {
|
|
@@ -11199,15 +11212,15 @@ const Xr = F({
|
|
|
11199
11212
|
expandIcon: e.expandIcon,
|
|
11200
11213
|
density: e.density,
|
|
11201
11214
|
mobile: v.value
|
|
11202
|
-
}, io(n, ":row", () =>
|
|
11203
|
-
item:
|
|
11204
|
-
index:
|
|
11205
|
-
internalItem:
|
|
11215
|
+
}, io(n, ":row", () => p), typeof e.rowProps == "function" ? e.rowProps({
|
|
11216
|
+
item: p.item,
|
|
11217
|
+
index: p.index,
|
|
11218
|
+
internalItem: p.internalItem
|
|
11206
11219
|
}) : e.rowProps)
|
|
11207
11220
|
};
|
|
11208
11221
|
return w(re, {
|
|
11209
11222
|
key: b.props.key
|
|
11210
|
-
}, [a.item ? a.item(b) : y(ev, b.props, a), r(m) && a["expanded-row"]?.(
|
|
11223
|
+
}, [a.item ? a.item(b) : y(ev, b.props, a), r(m) && a["expanded-row"]?.(p)]);
|
|
11211
11224
|
})]);
|
|
11212
11225
|
}), {};
|
|
11213
11226
|
}
|
|
@@ -11357,10 +11370,10 @@ const ov = F({
|
|
|
11357
11370
|
showSelect: V(() => e.showSelect),
|
|
11358
11371
|
showExpand: V(() => e.showExpand)
|
|
11359
11372
|
}), {
|
|
11360
|
-
items:
|
|
11373
|
+
items: p
|
|
11361
11374
|
} = lv(e, f), b = V(() => e.search), {
|
|
11362
|
-
filteredItems:
|
|
11363
|
-
} = vf(e,
|
|
11375
|
+
filteredItems: S
|
|
11376
|
+
} = vf(e, p, b, {
|
|
11364
11377
|
transform: (ve) => ve.columns,
|
|
11365
11378
|
customKeyFilter: h
|
|
11366
11379
|
}), {
|
|
@@ -11383,7 +11396,7 @@ const ov = F({
|
|
|
11383
11396
|
disableSort: d
|
|
11384
11397
|
}), {
|
|
11385
11398
|
sortedItems: I
|
|
11386
|
-
} = Wf(e,
|
|
11399
|
+
} = Wf(e, S, P, {
|
|
11387
11400
|
transform: (ve) => ({
|
|
11388
11401
|
...ve.raw,
|
|
11389
11402
|
...ve.columns
|
|
@@ -11416,7 +11429,7 @@ const ov = F({
|
|
|
11416
11429
|
someSelected: H,
|
|
11417
11430
|
allSelected: B
|
|
11418
11431
|
} = Mf(e, {
|
|
11419
|
-
allItems:
|
|
11432
|
+
allItems: p,
|
|
11420
11433
|
currentPage: ae
|
|
11421
11434
|
}), {
|
|
11422
11435
|
isExpanded: oe,
|
|
@@ -12695,8 +12708,8 @@ function tm(e, t, n, a, l, o) {
|
|
|
12695
12708
|
"overflow"
|
|
12696
12709
|
], u = (g, m) => {
|
|
12697
12710
|
const h = window.getComputedStyle(g);
|
|
12698
|
-
c.forEach((
|
|
12699
|
-
m.style[
|
|
12711
|
+
c.forEach((p) => {
|
|
12712
|
+
m.style[p] = h[p];
|
|
12700
12713
|
});
|
|
12701
12714
|
}, d = (g, m = {}) => {
|
|
12702
12715
|
Object.assign(g.style, {
|
|
@@ -12989,23 +13002,23 @@ function Dt(e, t) {
|
|
|
12989
13002
|
function Mo(e, t, n, a, l) {
|
|
12990
13003
|
const i = l.axis === "x", r = e === document.scrollingElement, s = i ? "scrollLeft" : "scrollTop", c = i ? "clientWidth" : "clientHeight", u = i ? "offsetWidth" : "offsetHeight", d = i ? "scrollWidth" : "scrollHeight", f = i ? t.clientX : t.clientY, v = i ? a.left : a.top, g = i ? n.overflowX : n.overflowY;
|
|
12991
13004
|
if (r) {
|
|
12992
|
-
const m = e[s], h = e[c],
|
|
13005
|
+
const m = e[s], h = e[c], p = m > 0, b = m + h < (i ? l.state.rootScrollWidth || 0 : e[d]);
|
|
12993
13006
|
return i ? {
|
|
12994
|
-
left:
|
|
13007
|
+
left: p && f < h * 0.075,
|
|
12995
13008
|
right: b && f > h * (1 - 0.075)
|
|
12996
13009
|
} : {
|
|
12997
|
-
up:
|
|
13010
|
+
up: p && f < h * 0.075,
|
|
12998
13011
|
down: b && f > h * (1 - 0.075)
|
|
12999
13012
|
};
|
|
13000
13013
|
}
|
|
13001
13014
|
if ((g === "auto" || g === "scroll") && e !== document.body && e !== document.documentElement) {
|
|
13002
|
-
const m = e[d], h = e[u],
|
|
13015
|
+
const m = e[d], h = e[u], p = e[s], b = p > 0, S = p < m - h;
|
|
13003
13016
|
return i ? {
|
|
13004
13017
|
left: b && f < v + h * 0.075,
|
|
13005
|
-
right:
|
|
13018
|
+
right: S && f > v + h * (1 - 0.075)
|
|
13006
13019
|
} : {
|
|
13007
13020
|
up: b && f < v + h * 0.075,
|
|
13008
|
-
down:
|
|
13021
|
+
down: S && f > v + h * (1 - 0.075)
|
|
13009
13022
|
};
|
|
13010
13023
|
}
|
|
13011
13024
|
return i ? { left: !1, right: !1 } : { up: !1, down: !1 };
|
|
@@ -13167,38 +13180,43 @@ const bm = { class: "text-base text-high-emphasis mb-0" }, pm = { class: "d-flex
|
|
|
13167
13180
|
}),
|
|
13168
13181
|
emits: /* @__PURE__ */ Ve(["update:showAdjustColumns"], ["update:sortedHeaders"]),
|
|
13169
13182
|
setup(e, { emit: t }) {
|
|
13170
|
-
const n = Jt(), a = t, l = e, o = Ne(e, "sortedHeaders"), i = j(), r = (
|
|
13171
|
-
a("update:showAdjustColumns",
|
|
13172
|
-
}, s = j(o.value)
|
|
13183
|
+
const n = Jt(), a = t, l = e, o = Ne(e, "sortedHeaders"), i = j(), r = (d) => {
|
|
13184
|
+
a("update:showAdjustColumns", d);
|
|
13185
|
+
}, s = j(o.value), c = (d) => {
|
|
13186
|
+
o.value[d].isVisible = !o.value[d].isVisible;
|
|
13187
|
+
};
|
|
13173
13188
|
Z(
|
|
13189
|
+
() => o.value,
|
|
13190
|
+
(d) => s.value = d
|
|
13191
|
+
), Z(
|
|
13174
13192
|
() => l.showAdjustColumns,
|
|
13175
|
-
(
|
|
13176
|
-
|
|
13193
|
+
(d) => {
|
|
13194
|
+
d && setTimeout(() => {
|
|
13177
13195
|
ym({
|
|
13178
13196
|
parent: i,
|
|
13179
13197
|
values: s,
|
|
13180
|
-
draggable: (
|
|
13198
|
+
draggable: (f) => f.classList.contains("kanban-card"),
|
|
13181
13199
|
plugins: [bv()],
|
|
13182
|
-
handleEnd: (
|
|
13183
|
-
us(
|
|
13200
|
+
handleEnd: (f) => {
|
|
13201
|
+
us(f), u(f);
|
|
13184
13202
|
}
|
|
13185
13203
|
});
|
|
13186
13204
|
}, 100);
|
|
13187
13205
|
}
|
|
13188
13206
|
);
|
|
13189
|
-
const
|
|
13190
|
-
const
|
|
13191
|
-
(
|
|
13207
|
+
const u = (d) => {
|
|
13208
|
+
const f = o.value.find(
|
|
13209
|
+
(v) => v.sequence === d.initialIndex
|
|
13192
13210
|
);
|
|
13193
|
-
if (
|
|
13194
|
-
for (const
|
|
13195
|
-
|
|
13211
|
+
if (d.initialIndex < d.targetIndex)
|
|
13212
|
+
for (const v of o.value)
|
|
13213
|
+
v.sequence > d.initialIndex && v.sequence <= d.targetIndex && v.sequence--;
|
|
13196
13214
|
else
|
|
13197
|
-
for (const
|
|
13198
|
-
|
|
13199
|
-
|
|
13215
|
+
for (const v of o.value)
|
|
13216
|
+
v.sequence < d.initialIndex && v.sequence >= d.targetIndex && v.sequence++;
|
|
13217
|
+
f && (f.sequence = d.targetIndex);
|
|
13200
13218
|
};
|
|
13201
|
-
return (
|
|
13219
|
+
return (d, f) => (q(), le(Ar, {
|
|
13202
13220
|
"model-value": l.showAdjustColumns,
|
|
13203
13221
|
"onUpdate:modelValue": r,
|
|
13204
13222
|
width: "500"
|
|
@@ -13215,10 +13233,10 @@ const bm = { class: "text-base text-high-emphasis mb-0" }, pm = { class: "d-flex
|
|
|
13215
13233
|
ref: i,
|
|
13216
13234
|
class: "kanban-board-drop-zone mb-4 rounded d-flex flex-column gap-4"
|
|
13217
13235
|
}, [
|
|
13218
|
-
(q(!0), Pe(re, null, Xt(s.value, (
|
|
13219
|
-
key:
|
|
13236
|
+
(q(!0), Pe(re, null, Xt(s.value, (v, g) => (q(), Pe(re, {
|
|
13237
|
+
key: v.sequence
|
|
13220
13238
|
}, [
|
|
13221
|
-
|
|
13239
|
+
v ? (q(), le(Tt, {
|
|
13222
13240
|
key: 0,
|
|
13223
13241
|
variant: "outlined",
|
|
13224
13242
|
ripple: !1,
|
|
@@ -13236,13 +13254,13 @@ const bm = { class: "text-base text-high-emphasis mb-0" }, pm = { class: "d-flex
|
|
|
13236
13254
|
size: "20",
|
|
13237
13255
|
icon: "ri-draggable"
|
|
13238
13256
|
}),
|
|
13239
|
-
$e(" " + pe(
|
|
13257
|
+
$e(" " + pe(v.title), 1)
|
|
13240
13258
|
]),
|
|
13241
13259
|
y(ce, {
|
|
13242
|
-
onClick: (
|
|
13260
|
+
onClick: (m) => c(g),
|
|
13243
13261
|
class: "drag-handler",
|
|
13244
13262
|
size: "18",
|
|
13245
|
-
icon:
|
|
13263
|
+
icon: v.isVisible ? "ri-eye-fill" : "ri-eye-off-fill"
|
|
13246
13264
|
}, null, 8, ["onClick", "icon"])
|
|
13247
13265
|
])
|
|
13248
13266
|
])
|
|
@@ -13264,7 +13282,7 @@ const bm = { class: "text-base text-high-emphasis mb-0" }, pm = { class: "d-flex
|
|
|
13264
13282
|
_: 1
|
|
13265
13283
|
}, 8, ["model-value"]));
|
|
13266
13284
|
}
|
|
13267
|
-
}), Cm = /* @__PURE__ */ hn(wm, [["__scopeId", "data-v-
|
|
13285
|
+
}), Cm = /* @__PURE__ */ hn(wm, [["__scopeId", "data-v-209af8cf"]]);
|
|
13268
13286
|
function xm({
|
|
13269
13287
|
tableRef: e,
|
|
13270
13288
|
props: t,
|
|
@@ -13276,7 +13294,7 @@ function xm({
|
|
|
13276
13294
|
let d = null, f = null, v = null;
|
|
13277
13295
|
const g = () => {
|
|
13278
13296
|
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;
|
|
13279
|
-
}, m = () => u.value?.getBoundingClientRect().height ?? null, h = () => window.innerHeight * (a / 100),
|
|
13297
|
+
}, m = () => u.value?.getBoundingClientRect().height ?? null, h = () => window.innerHeight * (a / 100), p = (k) => {
|
|
13280
13298
|
i.value = !k, r.value = !0, o.value = k ? `${a}vh` : void 0, requestAnimationFrame(() => r.value = !1);
|
|
13281
13299
|
}, b = () => {
|
|
13282
13300
|
if (r.value) return;
|
|
@@ -13287,8 +13305,8 @@ function xm({
|
|
|
13287
13305
|
const k = m();
|
|
13288
13306
|
if (k == null) return;
|
|
13289
13307
|
const P = h(), A = o.value !== null, T = k > P + l, C = k < P - l;
|
|
13290
|
-
A && T ?
|
|
13291
|
-
},
|
|
13308
|
+
A && T ? p(!0) : A && C && p(!1);
|
|
13309
|
+
}, S = () => {
|
|
13292
13310
|
v == null && !t.disableScroll && (v = requestAnimationFrame(() => {
|
|
13293
13311
|
v = null, b();
|
|
13294
13312
|
}));
|
|
@@ -13297,25 +13315,25 @@ function xm({
|
|
|
13297
13315
|
await Se(), g();
|
|
13298
13316
|
const k = c.value;
|
|
13299
13317
|
if (!k) return;
|
|
13300
|
-
d = new ResizeObserver(() =>
|
|
13318
|
+
d = new ResizeObserver(() => S()), d.observe(k);
|
|
13301
13319
|
const P = u.value;
|
|
13302
|
-
P && (f = new MutationObserver(() =>
|
|
13320
|
+
P && (f = new MutationObserver(() => S()), f.observe(P, { childList: !0, subtree: !0 })), window.addEventListener("resize", S, { passive: !0 }), Z(
|
|
13303
13321
|
[
|
|
13304
13322
|
() => t.items.length,
|
|
13305
13323
|
() => n.value.pageSize,
|
|
13306
13324
|
() => n.value.page
|
|
13307
13325
|
],
|
|
13308
13326
|
async () => {
|
|
13309
|
-
await Se(),
|
|
13327
|
+
await Se(), S();
|
|
13310
13328
|
},
|
|
13311
13329
|
{ flush: "post" }
|
|
13312
13330
|
), Z(
|
|
13313
13331
|
() => t.headers.map((A) => ({ v: A.value, vis: A.isVisible })),
|
|
13314
|
-
|
|
13332
|
+
S,
|
|
13315
13333
|
{ deep: !0, flush: "post" }
|
|
13316
|
-
),
|
|
13334
|
+
), S();
|
|
13317
13335
|
}), lt(() => {
|
|
13318
|
-
d?.disconnect(), f?.disconnect(), v != null && cancelAnimationFrame(v), window.removeEventListener("resize",
|
|
13336
|
+
d?.disconnect(), f?.disconnect(), v != null && cancelAnimationFrame(v), window.removeEventListener("resize", S), d = f = null, v = null;
|
|
13319
13337
|
}), { tableHeight: o, tableHideOverflow: i };
|
|
13320
13338
|
}
|
|
13321
13339
|
const km = /* @__PURE__ */ xe({
|
|
@@ -13653,19 +13671,19 @@ const Xm = /* @__PURE__ */ xe({
|
|
|
13653
13671
|
try {
|
|
13654
13672
|
if (n.header.displayValue)
|
|
13655
13673
|
return n.header.displayValue(n.item);
|
|
13656
|
-
const
|
|
13674
|
+
const p = n.header.value, b = p.split(".");
|
|
13657
13675
|
if (b.length == 1)
|
|
13658
|
-
return al(n.header.mask, n.item[
|
|
13676
|
+
return al(n.header.mask, n.item[p]);
|
|
13659
13677
|
{
|
|
13660
|
-
let
|
|
13678
|
+
let S = n.item;
|
|
13661
13679
|
for (let k of b)
|
|
13662
|
-
|
|
13663
|
-
return al(n.header.mask,
|
|
13680
|
+
S = S[k];
|
|
13681
|
+
return al(n.header.mask, S);
|
|
13664
13682
|
}
|
|
13665
|
-
} catch (
|
|
13683
|
+
} catch (p) {
|
|
13666
13684
|
return console.error(
|
|
13667
13685
|
`${t("errorGettingHeaderValue")} ${n.header.value}:`,
|
|
13668
|
-
|
|
13686
|
+
p
|
|
13669
13687
|
), "";
|
|
13670
13688
|
}
|
|
13671
13689
|
}, v = () => l.value, g = () => {
|
|
@@ -13675,8 +13693,8 @@ const Xm = /* @__PURE__ */ xe({
|
|
|
13675
13693
|
}, m = () => !(n.disableEdit || !n.header.editable), h = () => {
|
|
13676
13694
|
console.warn(t("editFnNotDefined"));
|
|
13677
13695
|
};
|
|
13678
|
-
return (
|
|
13679
|
-
default: O(({ isHovering:
|
|
13696
|
+
return (p, b) => (q(), le(dv, null, {
|
|
13697
|
+
default: O(({ isHovering: S, props: k }) => [
|
|
13680
13698
|
y(un, W({ class: "d-flex justify-space-between position-relative align-center" }, k), {
|
|
13681
13699
|
default: O(() => [
|
|
13682
13700
|
y(Qe, {
|
|
@@ -13711,7 +13729,7 @@ const Xm = /* @__PURE__ */ xe({
|
|
|
13711
13729
|
]),
|
|
13712
13730
|
_: 1
|
|
13713
13731
|
}, 8, ["cols"]),
|
|
13714
|
-
|
|
13732
|
+
S && m() && !v() ? (q(), le(ce, {
|
|
13715
13733
|
key: 0,
|
|
13716
13734
|
class: "cursor-pointer position-absolute right-0",
|
|
13717
13735
|
onClick: b[4] || (b[4] = (P) => g()),
|
|
@@ -13810,7 +13828,7 @@ const Xm = /* @__PURE__ */ xe({
|
|
|
13810
13828
|
toggleSort: h,
|
|
13811
13829
|
filterFn: e.filterFn,
|
|
13812
13830
|
sortedHeaders: a.value,
|
|
13813
|
-
"onUpdate:sortedHeaders": f[0] || (f[0] = (
|
|
13831
|
+
"onUpdate:sortedHeaders": f[0] || (f[0] = (p) => a.value = p)
|
|
13814
13832
|
}, null, 8, ["columns", "isSorted", "getSortIcon", "toggleSort", "filterFn", "sortedHeaders"])
|
|
13815
13833
|
]),
|
|
13816
13834
|
"item.actions": O(({ item: v }) => [
|