@adyen/lume 1.12.1 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
- package/dist/@types/composables/line-null-values.d.ts +2 -1
- package/dist/@types/composables/line-null-values.d.ts.map +1 -1
- package/dist/common/BCtqE1q7.js +5 -0
- package/dist/common/BCtqE1q7.js.map +1 -0
- package/dist/common/BlUo1XWc.js +5 -0
- package/dist/common/BlUo1XWc.js.map +1 -0
- package/dist/common/DOtUyFcQ.js +5 -0
- package/dist/common/DOtUyFcQ.js.map +1 -0
- package/dist/common/{Bbm8lOKv.js → DhrWnQlK.js} +454 -447
- package/dist/common/{Bbm8lOKv.js.map → DhrWnQlK.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.js +6 -6
- package/dist/styles/main.css +1 -1
- package/package.json +10 -10
- package/dist/common/B8Yzpn9z.js +0 -5
- package/dist/common/B8Yzpn9z.js.map +0 -1
- package/dist/common/DmfABIXc.js +0 -5
- package/dist/common/DmfABIXc.js.map +0 -1
- package/dist/common/Lrbt_T-f.js +0 -5
- package/dist/common/Lrbt_T-f.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, ref as w, isRef as kt, computed as
|
|
1
|
+
import { defineComponent as N, ref as w, isRef as kt, computed as v, watch as H, toRefs as S, inject as Le, reactive as Oe, onMounted as ee, watchEffect as xt, onBeforeUnmount as At, useSlots as M, nextTick as He, provide as Ee, defineAsyncComponent as Ne } from "vue";
|
|
2
2
|
import { sankeyLinkHorizontal as zt, sankey as Wt, sankeyJustify as Zt } from "d3-sankey";
|
|
3
3
|
import { format as Ut, ticks as Xt, scaleLinear as fe, scaleBand as pe, link as Yt, line as Kt, area as Jt } from "d3";
|
|
4
4
|
import { createPopper as Qt } from "@popperjs/core";
|
|
@@ -208,28 +208,28 @@ const Ae = (t) => {
|
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
function Y(t, e) {
|
|
211
|
-
return { allOptions:
|
|
211
|
+
return { allOptions: v(() => {
|
|
212
212
|
const n = kt(e) ? e == null ? void 0 : e.value : e;
|
|
213
213
|
return n ? Ot(n, t.value) : t.value;
|
|
214
214
|
}) };
|
|
215
215
|
}
|
|
216
216
|
const hn = 0.2;
|
|
217
217
|
function gn(t, e, r) {
|
|
218
|
-
const n = w(), a =
|
|
218
|
+
const n = w(), a = v(() => Math.max(...t.value.range())), o = v(() => e.value.length);
|
|
219
219
|
function l() {
|
|
220
220
|
if (!e.value) return;
|
|
221
221
|
const i = e.value.reduce(
|
|
222
|
-
(
|
|
222
|
+
(c, s) => c + s.ref.getBoundingClientRect().width,
|
|
223
223
|
0
|
|
224
|
-
),
|
|
225
|
-
n.value =
|
|
224
|
+
), d = Math.ceil(i / o.value);
|
|
225
|
+
n.value = d + d * hn;
|
|
226
226
|
}
|
|
227
227
|
function u(i) {
|
|
228
228
|
if (!e.value) return !0;
|
|
229
|
-
const
|
|
229
|
+
const d = r.value.skip, c = e.value.length;
|
|
230
230
|
if (i === 0) return !0;
|
|
231
|
-
const s = a.value /
|
|
232
|
-
return i %
|
|
231
|
+
const s = a.value / c, p = typeof d == "number" && d > 0 && d + 1 || Math.ceil(n.value / s);
|
|
232
|
+
return i % p === 0;
|
|
233
233
|
}
|
|
234
234
|
return H(e, l), { showTick: u };
|
|
235
235
|
}
|
|
@@ -284,21 +284,21 @@ const Ht = {
|
|
|
284
284
|
...Ht,
|
|
285
285
|
gridLines: !0
|
|
286
286
|
}, Tn = function(t, e, r) {
|
|
287
|
-
const n =
|
|
288
|
-
function a(i,
|
|
287
|
+
const n = v(() => t.value.step() * t.value.paddingInner() / 2);
|
|
288
|
+
function a(i, d) {
|
|
289
289
|
return {
|
|
290
|
-
transform: `translate(${(t.value(
|
|
290
|
+
transform: `translate(${(t.value(d) ?? t.value(i)) - n.value}, 0)`
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
function o(i) {
|
|
294
|
-
var
|
|
295
|
-
const
|
|
294
|
+
var c;
|
|
295
|
+
const d = Math.max(
|
|
296
296
|
t.value.step(),
|
|
297
|
-
(i ? (
|
|
297
|
+
(i ? (c = i.getComputedTextLength) == null ? void 0 : c.call(i) : t.value.step()) + 20
|
|
298
298
|
);
|
|
299
299
|
return {
|
|
300
|
-
x: -(
|
|
301
|
-
width:
|
|
300
|
+
x: -(d - t.value.step()) / 2,
|
|
301
|
+
width: d,
|
|
302
302
|
height: r.value.tickPadding + Nt + _e
|
|
303
303
|
};
|
|
304
304
|
}
|
|
@@ -326,18 +326,18 @@ const Ht = {
|
|
|
326
326
|
getTickLabelAttributes: u
|
|
327
327
|
};
|
|
328
328
|
}, Ln = function(t, e, r) {
|
|
329
|
-
const n =
|
|
330
|
-
function a(i,
|
|
329
|
+
const n = v(() => t.value.step() * t.value.paddingInner() / 2);
|
|
330
|
+
function a(i, d) {
|
|
331
331
|
return {
|
|
332
|
-
transform: `translate(0, ${(t.value(
|
|
332
|
+
transform: `translate(0, ${(t.value(d) ?? t.value(i)) - n.value})`
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
function o(i) {
|
|
336
|
-
var
|
|
337
|
-
const
|
|
336
|
+
var c;
|
|
337
|
+
const d = (i ? (c = i.getComputedTextLength) == null ? void 0 : c.call(i) : 42) + r.value.tickPadding + _e;
|
|
338
338
|
return {
|
|
339
|
-
x: -
|
|
340
|
-
width:
|
|
339
|
+
x: -d,
|
|
340
|
+
width: d,
|
|
341
341
|
height: t.value.step()
|
|
342
342
|
};
|
|
343
343
|
}
|
|
@@ -364,7 +364,7 @@ const Ht = {
|
|
|
364
364
|
getTickLabelAttributes: u
|
|
365
365
|
};
|
|
366
366
|
}, On = function(t, e, r) {
|
|
367
|
-
const n =
|
|
367
|
+
const n = v(() => {
|
|
368
368
|
const i = t.value.ticks();
|
|
369
369
|
return i.length > 1 ? t.value(i[1]) - t.value(i[0]) : 0;
|
|
370
370
|
});
|
|
@@ -399,7 +399,7 @@ const Ht = {
|
|
|
399
399
|
getTickLabelAttributes: u
|
|
400
400
|
};
|
|
401
401
|
}, In = function(t, e, r) {
|
|
402
|
-
const n =
|
|
402
|
+
const n = v(() => {
|
|
403
403
|
const i = t.value.ticks();
|
|
404
404
|
return i.length > 1 ? t.value(i[1]) - t.value(i[0]) : 0;
|
|
405
405
|
});
|
|
@@ -409,12 +409,12 @@ const Ht = {
|
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
411
|
function o(i) {
|
|
412
|
-
var
|
|
413
|
-
const
|
|
412
|
+
var c;
|
|
413
|
+
const d = (((c = i == null ? void 0 : i.getComputedTextLength) == null ? void 0 : c.call(i)) || 0) + r.value.tickPadding + _e;
|
|
414
414
|
return {
|
|
415
|
-
width:
|
|
415
|
+
width: d,
|
|
416
416
|
height: n.value,
|
|
417
|
-
x: -
|
|
417
|
+
x: -d,
|
|
418
418
|
y: -(n.value / 2)
|
|
419
419
|
};
|
|
420
420
|
}
|
|
@@ -476,34 +476,34 @@ const wn = /* @__PURE__ */ N({
|
|
|
476
476
|
},
|
|
477
477
|
emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
|
|
478
478
|
setup(t, { emit: e }) {
|
|
479
|
-
const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: u, orientation: i } = S(r),
|
|
479
|
+
const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: u, orientation: i } = S(r), d = Le("isEmpty", w(!1)), c = Oe({}), s = w(null), p = w(null), m = w(null), _ = v(
|
|
480
480
|
() => r.type ? xe[r.type] : r.position
|
|
481
|
-
), h =
|
|
481
|
+
), h = v(
|
|
482
482
|
() => r.type || (_.value === "left" ? "y" : "x")
|
|
483
|
-
), y =
|
|
483
|
+
), y = v(
|
|
484
484
|
() => h.value === "x" && i.value === L.VERTICAL || h.value === "y" && i.value === L.HORIZONTAL
|
|
485
|
-
), { allOptions:
|
|
485
|
+
), { allOptions: f } = Y(
|
|
486
486
|
u,
|
|
487
487
|
h.value === "x" ? xn : An
|
|
488
|
-
), { showTick:
|
|
489
|
-
() =>
|
|
490
|
-
), T =
|
|
488
|
+
), { showTick: b } = gn(a, s, f), x = v(
|
|
489
|
+
() => d.value || !a.value || sn(a.value)
|
|
490
|
+
), T = v(() => {
|
|
491
491
|
var g, A, O, G;
|
|
492
492
|
return h.value === "y" && x.value ? `translate(0, ${((g = o.value) == null ? void 0 : g.height) / 2})` : h.value === "x" && x.value ? `translate(-${((A = o.value) == null ? void 0 : A.width) / 2}, ${(O = o.value) == null ? void 0 : O.height})` : `translate(0, ${h.value === "x" ? (G = o.value) == null ? void 0 : G.height : 0})`;
|
|
493
|
-
}), I =
|
|
493
|
+
}), I = v(() => {
|
|
494
494
|
if (!a.value) return [];
|
|
495
495
|
if (U(a.value))
|
|
496
496
|
return a.value.labels || a.value.domain();
|
|
497
|
-
const { tickCount: g } =
|
|
497
|
+
const { tickCount: g } = f.value, [A, O] = a.value.domain();
|
|
498
498
|
return Xt(A, O, g);
|
|
499
|
-
}), R =
|
|
500
|
-
const { tickFormat: g } =
|
|
499
|
+
}), R = v(() => {
|
|
500
|
+
const { tickFormat: g } = f.value;
|
|
501
501
|
return Ae(g);
|
|
502
|
-
}), $ =
|
|
503
|
-
() =>
|
|
504
|
-
), D =
|
|
505
|
-
() =>
|
|
506
|
-
), B =
|
|
502
|
+
}), $ = v(
|
|
503
|
+
() => f.value.withHover && y.value && l.value > -1
|
|
504
|
+
), D = v(
|
|
505
|
+
() => f.value.tickPadding + _e || n
|
|
506
|
+
), B = v(() => h.value === "x" ? (
|
|
507
507
|
// If x axis, get the tick height
|
|
508
508
|
Math.max(
|
|
509
509
|
...(s.value || []).map(
|
|
@@ -525,7 +525,7 @@ const wn = /* @__PURE__ */ N({
|
|
|
525
525
|
)
|
|
526
526
|
));
|
|
527
527
|
function C(g) {
|
|
528
|
-
const { showTicks: A } =
|
|
528
|
+
const { showTicks: A } = f.value;
|
|
529
529
|
return A === !1 ? "" : R.value(g);
|
|
530
530
|
}
|
|
531
531
|
function F(g, A, O) {
|
|
@@ -543,26 +543,26 @@ const wn = /* @__PURE__ */ N({
|
|
|
543
543
|
m.value = I.value.map(
|
|
544
544
|
(g, A) => ({
|
|
545
545
|
value: C(g),
|
|
546
|
-
group:
|
|
547
|
-
ghost:
|
|
548
|
-
label:
|
|
549
|
-
gridline:
|
|
546
|
+
group: c.getTickGroupAttributes(g, A),
|
|
547
|
+
ghost: c.getTickGhostAttributes(oe(A)),
|
|
548
|
+
label: c.getTickLabelAttributes(),
|
|
549
|
+
gridline: c.getGridLinesAttributes()
|
|
550
550
|
})
|
|
551
551
|
);
|
|
552
552
|
}
|
|
553
553
|
function te() {
|
|
554
|
-
m.value && m.value.map((g) => (g.gridline =
|
|
554
|
+
m.value && m.value.map((g) => (g.gridline = c.getGridLinesAttributes(), g));
|
|
555
555
|
}
|
|
556
556
|
function Q() {
|
|
557
557
|
if (!a.value) return;
|
|
558
558
|
const g = a.value.step ? "bandScale" : "linearScale", A = $n[`${h.value}-${Re[g]}`];
|
|
559
|
-
Object.entries(A(a, o,
|
|
559
|
+
Object.entries(A(a, o, f) || []).forEach(
|
|
560
560
|
([O, G]) => {
|
|
561
|
-
|
|
561
|
+
c[O] = G;
|
|
562
562
|
}
|
|
563
563
|
);
|
|
564
564
|
}
|
|
565
|
-
return H(a, Q, { flush: "sync", immediate: !0 }), H(a, W, { immediate: !0 }), H(s, W), H(B, (g) => e("lume__internal--axis-size", g)), H(r.containerSize, te), ee(() => Ie(
|
|
565
|
+
return H(a, Q, { flush: "sync", immediate: !0 }), H(a, W, { immediate: !0 }), H(s, W), H(B, (g) => e("lume__internal--axis-size", g)), H(r.containerSize, te), ee(() => Ie(p.value)), { __sfc: !0, SCALE_MIXIN_MAP: Re, POSITIONS: Pe, TYPES: xe, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: u, orientation: i, isEmpty: d, mixins: c, tickRefs: s, root: p, ticksWithAttributes: m, computedPosition: _, computedType: h, shouldHover: y, allOptions: f, showTick: b, alignAxisBaseline: x, axisTransform: T, ticks: I, tickFormatter: R, isHovering: $, axisLabelOffset: D, axisSize: B, formatTick: C, handleTickMouseenter: F, handleTickClick: J, getTextNode: oe, setTicks: W, updateGridlines: te, init: Q, LumeTick: rn };
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
var En = function() {
|
|
@@ -592,19 +592,19 @@ var En = function() {
|
|
|
592
592
|
);
|
|
593
593
|
const Dn = Hn.exports;
|
|
594
594
|
function Rn(t, e, r, n) {
|
|
595
|
-
const a =
|
|
595
|
+
const a = v(() => r.value > 0 && r.value < 1), o = v(
|
|
596
596
|
() => n.value > 0 && n.value < 1
|
|
597
|
-
), l =
|
|
597
|
+
), l = v(
|
|
598
598
|
() => a.value ? t.value - 0.5 : t.value
|
|
599
599
|
// draws the 1px bar closer to the axis
|
|
600
|
-
), u =
|
|
600
|
+
), u = v(
|
|
601
601
|
() => o.value ? e.value - 0.5 : e.value
|
|
602
602
|
// draws the 1px bar closer to the axis
|
|
603
603
|
);
|
|
604
604
|
return { computedX: l, computedY: u, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
|
|
605
605
|
}
|
|
606
606
|
function Pn(t, e, r, n) {
|
|
607
|
-
const a = w(0), o = w(0), l =
|
|
607
|
+
const a = w(0), o = w(0), l = v(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
|
|
608
608
|
return ee(() => {
|
|
609
609
|
a.value = r.value, o.value = n.value;
|
|
610
610
|
}), H(r, (u) => a.value = u), H(n, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin: l };
|
|
@@ -647,10 +647,10 @@ const Sn = /* @__PURE__ */ N({
|
|
|
647
647
|
},
|
|
648
648
|
emits: ["click", "mouseover", "mouseleave"],
|
|
649
649
|
setup(t, { emit: e }) {
|
|
650
|
-
const r = t, { x: n, y: a, width: o, height: l, transition: u, classList: i } = S(r),
|
|
650
|
+
const r = t, { x: n, y: a, width: o, height: l, transition: u, classList: i } = S(r), d = w(null), c = v(
|
|
651
651
|
() => typeof i.value == "string" ? [i.value] : i.value
|
|
652
|
-
), s =
|
|
653
|
-
return ee(() => Ie(
|
|
652
|
+
), s = v(() => u.value === "width"), p = v(() => u.value === "height"), m = Pn(n, a, o, l), { computedX: _, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: f } = Rn(n, a, o, l), b = v(() => y.value ? 1 : (s.value ? m.computedWidth : o).value), x = v(() => f.value ? 1 : (p.value ? m.computedHeight : l).value), T = s.value || p.value ? m.transformOrigin : null;
|
|
653
|
+
return ee(() => Ie(d.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: u, classList: i, root: d, computedClasses: c, shouldTransitionWidth: s, shouldTransitionHeight: p, transitionProps: m, computedX: _, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: f, computedWidth: b, computedHeight: x, transformOrigin: T };
|
|
654
654
|
}
|
|
655
655
|
});
|
|
656
656
|
var Bn = function() {
|
|
@@ -750,16 +750,16 @@ function Qe(t, e, r, n, a) {
|
|
|
750
750
|
const o = Oe({
|
|
751
751
|
width: 0,
|
|
752
752
|
height: 0
|
|
753
|
-
}), l = crypto.randomUUID(), u =
|
|
754
|
-
var
|
|
755
|
-
return t.value.length > 5 && q(X.DatasetLength), (
|
|
756
|
-
(s,
|
|
753
|
+
}), l = crypto.randomUUID(), u = v(() => {
|
|
754
|
+
var c;
|
|
755
|
+
return t.value.length > 5 && q(X.DatasetLength), (c = t.value) == null ? void 0 : c.map(
|
|
756
|
+
(s, p) => {
|
|
757
757
|
if (Yn(s)) return s;
|
|
758
758
|
const m = Xn(s.values), _ = Un(
|
|
759
759
|
s.color,
|
|
760
760
|
r == null ? void 0 : r.value,
|
|
761
761
|
n == null ? void 0 : n.value.colorPalette,
|
|
762
|
-
|
|
762
|
+
p
|
|
763
763
|
);
|
|
764
764
|
return {
|
|
765
765
|
...s,
|
|
@@ -769,17 +769,17 @@ function Qe(t, e, r, n, a) {
|
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
|
-
}), i =
|
|
773
|
-
function c
|
|
774
|
-
const s = (a == null ? void 0 : a.value) === L.HORIZONTAL && i.value.length * (((n == null ? void 0 : n.value.barHeight) || rt) * 2) + ((n == null ? void 0 : n.value.barHeight) || rt) ||
|
|
775
|
-
o.width =
|
|
772
|
+
}), i = v(() => Array.isArray(e.value) ? e.value : It(t.value).map((c, s) => s));
|
|
773
|
+
function d(c) {
|
|
774
|
+
const s = (a == null ? void 0 : a.value) === L.HORIZONTAL && i.value.length * (((n == null ? void 0 : n.value.barHeight) || rt) * 2) + ((n == null ? void 0 : n.value.barHeight) || rt) || c.height;
|
|
775
|
+
o.width = c.width, o.height = s;
|
|
776
776
|
}
|
|
777
777
|
return {
|
|
778
778
|
chartID: l,
|
|
779
779
|
computedLabels: i,
|
|
780
780
|
containerSize: o,
|
|
781
781
|
internalData: u,
|
|
782
|
-
updateSize:
|
|
782
|
+
updateSize: d
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
785
|
const Kn = () => ({
|
|
@@ -795,26 +795,26 @@ const Kn = () => ({
|
|
|
795
795
|
function Jn(t, e, r, n, a) {
|
|
796
796
|
const o = w(null), l = w(null);
|
|
797
797
|
function u() {
|
|
798
|
-
var
|
|
799
|
-
const { width: i, height:
|
|
800
|
-
!i && !
|
|
798
|
+
var c, s, p, m;
|
|
799
|
+
const { width: i, height: d } = r;
|
|
800
|
+
!i && !d || (n.value === L.HORIZONTAL ? (o.value = (c = t.value) != null && c.length ? it(
|
|
801
801
|
t.value,
|
|
802
802
|
i,
|
|
803
803
|
n.value,
|
|
804
804
|
a.value.startOnZero
|
|
805
805
|
) : null, l.value = (s = e.value) != null && s.length ? lt(
|
|
806
806
|
e.value,
|
|
807
|
-
|
|
807
|
+
d,
|
|
808
808
|
n.value,
|
|
809
809
|
a.value
|
|
810
|
-
) : null) : (o.value = (
|
|
810
|
+
) : null) : (o.value = (p = e.value) != null && p.length ? lt(
|
|
811
811
|
e.value,
|
|
812
812
|
i,
|
|
813
813
|
n.value,
|
|
814
814
|
a.value
|
|
815
815
|
) : null, l.value = (m = t.value) != null && m.length ? it(
|
|
816
816
|
t.value,
|
|
817
|
-
|
|
817
|
+
d,
|
|
818
818
|
n.value,
|
|
819
819
|
a.value.startOnZero
|
|
820
820
|
) : null));
|
|
@@ -824,19 +824,19 @@ function Jn(t, e, r, n, a) {
|
|
|
824
824
|
function lt(t, e, r, n) {
|
|
825
825
|
const a = [0, e], { padding: o, paddingInner: l, paddingOuter: u } = n, i = o ?? (r === L.HORIZONTAL ? Et : wt);
|
|
826
826
|
return Object.assign(
|
|
827
|
-
pe().range(a).paddingInner(l ?? i).paddingOuter(u ?? i).domain(t.map((
|
|
827
|
+
pe().range(a).paddingInner(l ?? i).paddingOuter(u ?? i).domain(t.map((d, c) => c)),
|
|
828
828
|
{ labels: t }
|
|
829
829
|
);
|
|
830
830
|
}
|
|
831
831
|
function it(t, e, r, n) {
|
|
832
|
-
const a = Lt(t).filter((
|
|
832
|
+
const a = Lt(t).filter((c) => c != null), o = [0, e];
|
|
833
833
|
if (a.length === 0)
|
|
834
834
|
return fe().range(o).domain([0, 0]).nice();
|
|
835
835
|
const l = Math.min(...a), u = n && l > 0 ? 0 : l;
|
|
836
836
|
let i = Math.max(...a);
|
|
837
837
|
n && i < 0 && (i = 0);
|
|
838
|
-
const
|
|
839
|
-
return fe().range(o).domain(
|
|
838
|
+
const d = r === L.HORIZONTAL ? [u, i] : [i, u];
|
|
839
|
+
return fe().range(o).domain(d).nice();
|
|
840
840
|
}
|
|
841
841
|
function ut(t) {
|
|
842
842
|
return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
|
|
@@ -923,19 +923,19 @@ const er = /* @__PURE__ */ N({
|
|
|
923
923
|
},
|
|
924
924
|
emits: ["click", "mouseenter", "mouseleave", "resize"],
|
|
925
925
|
setup(t, { emit: e }) {
|
|
926
|
-
const r = t, { margins: n, containerSize: a } = S(r), o = w(null), { resizeRef: l, resizeState: u } = qn(), i =
|
|
926
|
+
const r = t, { margins: n, containerSize: a } = S(r), o = w(null), { resizeRef: l, resizeState: u } = qn(), i = v(
|
|
927
927
|
() => a.value.height + n.value.top + n.value.bottom
|
|
928
928
|
);
|
|
929
929
|
return xt(() => {
|
|
930
930
|
if (!o.value) return;
|
|
931
|
-
const { width:
|
|
932
|
-
if (!
|
|
931
|
+
const { width: d } = u.dimensions, { height: c } = o.value.getBoundingClientRect();
|
|
932
|
+
if (!d || r.orientation === L.VERTICAL && !c)
|
|
933
933
|
return;
|
|
934
|
-
const s =
|
|
934
|
+
const s = d - n.value.left - n.value.right, p = c - n.value.top - n.value.bottom, m = {
|
|
935
935
|
width: s > 0 ? s : 0,
|
|
936
|
-
height:
|
|
937
|
-
outerWidth:
|
|
938
|
-
outerHeight:
|
|
936
|
+
height: p > 0 ? p : 0,
|
|
937
|
+
outerWidth: d,
|
|
938
|
+
outerHeight: c
|
|
939
939
|
};
|
|
940
940
|
e("resize", m);
|
|
941
941
|
}), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState: u, svgHeight: i };
|
|
@@ -1086,11 +1086,11 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
|
|
1088
1088
|
setup(t, { emit: e }) {
|
|
1089
|
-
const r = t, n = w(null), { items: a, options: o } = S(r), l = M(), u = w(null), { allOptions: i } = Y(o),
|
|
1089
|
+
const r = t, n = w(null), { items: a, options: o } = S(r), l = M(), u = w(null), { allOptions: i } = Y(o), d = v(
|
|
1090
1090
|
() => i.value.fixedPositioning ?? r.fixedPositioning
|
|
1091
|
-
),
|
|
1092
|
-
() =>
|
|
1093
|
-
), s =
|
|
1091
|
+
), c = v(
|
|
1092
|
+
() => d.value ? "fixed" : "absolute"
|
|
1093
|
+
), s = v(() => [
|
|
1094
1094
|
{
|
|
1095
1095
|
name: "computeStyles",
|
|
1096
1096
|
options: {
|
|
@@ -1103,20 +1103,20 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1103
1103
|
options: { offset: [0, i.value.offset || 8] }
|
|
1104
1104
|
},
|
|
1105
1105
|
...r.modifiers || []
|
|
1106
|
-
]),
|
|
1106
|
+
]), p = v(
|
|
1107
1107
|
() => i.value.showTitle !== !1 && r.title != null
|
|
1108
|
-
), m =
|
|
1108
|
+
), m = v(() => Ae(i.value.valueFormat)), _ = v(() => Ae(i.value.titleFormat)), h = v(
|
|
1109
1109
|
() => {
|
|
1110
1110
|
var I;
|
|
1111
1111
|
return ((I = a.value) == null ? void 0 : I.find((R) => R.isSummary)) || {
|
|
1112
1112
|
label: i.value.summary ?? r.summary
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
), y =
|
|
1116
|
-
function
|
|
1115
|
+
), y = v(() => l.summary || h.value.label), f = v(() => r.inverse || i.value.inverse ? [...a.value].reverse() : a.value);
|
|
1116
|
+
function b() {
|
|
1117
1117
|
r.targetElement && n.value && (u.value = Qt(r.targetElement, n.value, {
|
|
1118
1118
|
placement: r.position,
|
|
1119
|
-
strategy:
|
|
1119
|
+
strategy: c.value,
|
|
1120
1120
|
modifiers: s.value
|
|
1121
1121
|
}), e("opened", r.targetElement));
|
|
1122
1122
|
}
|
|
@@ -1124,16 +1124,16 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1124
1124
|
u.value && (u.value.destroy(), e("closed"), n.value && n.value.classList.remove("lume-tooltip--animated"));
|
|
1125
1125
|
}
|
|
1126
1126
|
function T() {
|
|
1127
|
-
u.value && (i.value.withAnimation !== !1 && n.value && n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
|
|
1127
|
+
u.value && (i.value.withAnimation !== !1 && n.value && n.value.classList.add("lume-tooltip--animated"), r.targetElement ? (function() {
|
|
1128
1128
|
u.value.state.elements.reference = r.targetElement, u.value.update(), e("moved", r.targetElement);
|
|
1129
|
-
}() : x());
|
|
1129
|
+
})() : x());
|
|
1130
1130
|
}
|
|
1131
1131
|
return H(
|
|
1132
1132
|
() => r.targetElement,
|
|
1133
1133
|
async (I, R) => {
|
|
1134
|
-
!R && I ? (await He(),
|
|
1134
|
+
!R && I ? (await He(), b()) : T();
|
|
1135
1135
|
}
|
|
1136
|
-
), ee(
|
|
1136
|
+
), ee(b), At(x), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: u, allOptions: i, computedFixedPositioning: d, strategy: c, allModifiers: s, showTitle: p, formatValue: m, formatTitle: _, summaryItem: h, hasSummary: y, computedItems: f, initPopper: b, destroyPopper: x, updatePopper: T, LumeTooltipTitle: pr, LumeTooltipSummary: yr, LumeTooltipItem: Tr };
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
1139
|
var Or = function() {
|
|
@@ -1222,16 +1222,16 @@ const wr = $r.exports, $e = () => ({
|
|
|
1222
1222
|
},
|
|
1223
1223
|
emits: ["click", "lume__internal--hover", "mouseover"],
|
|
1224
1224
|
setup(t, { emit: e }) {
|
|
1225
|
-
const r = t, { data: n, orientation: a, xScale: o, yScale: l } = S(r), u =
|
|
1226
|
-
function i(
|
|
1225
|
+
const r = t, { data: n, orientation: a, xScale: o, yScale: l } = S(r), u = v(() => It(n));
|
|
1226
|
+
function i(d) {
|
|
1227
1227
|
var y;
|
|
1228
|
-
const
|
|
1228
|
+
const c = a.value === L.HORIZONTAL ? l.value : o.value, s = c.domain(), p = un(c), m = ((y = c.paddingInner) == null ? void 0 : y.call(c)) ?? 0, _ = p * m, h = U(c) ? c(s[d]) - _ / 2 : c(d) - p / 2;
|
|
1229
1229
|
return a.value === L.HORIZONTAL ? {
|
|
1230
1230
|
width: Math.max(...o.value.range()),
|
|
1231
|
-
height:
|
|
1231
|
+
height: p,
|
|
1232
1232
|
transform: `translate(0, ${h})`
|
|
1233
1233
|
} : {
|
|
1234
|
-
width:
|
|
1234
|
+
width: p,
|
|
1235
1235
|
height: Math.max(...l.value.range()),
|
|
1236
1236
|
transform: `translate(${h}, 0)`
|
|
1237
1237
|
};
|
|
@@ -1301,30 +1301,30 @@ const Rr = Dr.exports, Pr = [
|
|
|
1301
1301
|
return { componentEventPropagator: Pr.reduce((o, l) => (o[l] = (u) => t(l, u), o), {}), emitInternalEvent: r, listenInternalEvent: n };
|
|
1302
1302
|
};
|
|
1303
1303
|
function Sr(t) {
|
|
1304
|
-
return { hasNegativeValues:
|
|
1304
|
+
return { hasNegativeValues: v(
|
|
1305
1305
|
() => Lt(t.value).some((r) => r < 0)
|
|
1306
1306
|
) };
|
|
1307
1307
|
}
|
|
1308
1308
|
function Br(t, e, r, n) {
|
|
1309
|
-
const a =
|
|
1309
|
+
const a = v(
|
|
1310
1310
|
() => n.value === L.HORIZONTAL
|
|
1311
|
-
), o =
|
|
1311
|
+
), o = v(
|
|
1312
1312
|
() => {
|
|
1313
|
-
var
|
|
1314
|
-
return t.height - (a != null && a.value ? 0 : ((
|
|
1313
|
+
var d;
|
|
1314
|
+
return t.height - (a != null && a.value ? 0 : ((d = r.value) == null ? void 0 : d.call(r, 0)) || 0);
|
|
1315
1315
|
}
|
|
1316
|
-
), l =
|
|
1316
|
+
), l = v(
|
|
1317
1317
|
() => {
|
|
1318
|
-
var
|
|
1319
|
-
return a != null && a.value ? ((
|
|
1318
|
+
var d;
|
|
1319
|
+
return a != null && a.value ? ((d = e.value) == null ? void 0 : d.call(e, 0)) || 0 : t.width;
|
|
1320
1320
|
}
|
|
1321
|
-
), u =
|
|
1321
|
+
), u = v(
|
|
1322
1322
|
() => {
|
|
1323
|
-
var
|
|
1324
|
-
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((
|
|
1323
|
+
var d;
|
|
1324
|
+
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((d = r.value) == null ? void 0 : d.call(r, 0)) || 0})`;
|
|
1325
1325
|
}
|
|
1326
1326
|
);
|
|
1327
|
-
return { negativeBarAttributes:
|
|
1327
|
+
return { negativeBarAttributes: v(() => ({
|
|
1328
1328
|
width: l.value,
|
|
1329
1329
|
height: o.value,
|
|
1330
1330
|
transform: u.value
|
|
@@ -1347,19 +1347,19 @@ const ct = {
|
|
|
1347
1347
|
"stacked-bar": Gr
|
|
1348
1348
|
};
|
|
1349
1349
|
function Rt(t, e, r, n, a, o, l, u) {
|
|
1350
|
-
const i =
|
|
1350
|
+
const i = v(
|
|
1351
1351
|
() => {
|
|
1352
|
-
var
|
|
1353
|
-
return e.value.withTooltip !== !1 && !((
|
|
1352
|
+
var c;
|
|
1353
|
+
return e.value.withTooltip !== !1 && !((c = e.value.tooltipOptions) != null && c.targetElement);
|
|
1354
1354
|
}
|
|
1355
1355
|
);
|
|
1356
|
-
function c
|
|
1356
|
+
function d(c) {
|
|
1357
1357
|
var m;
|
|
1358
|
-
const s = ((m = a == null ? void 0 : a.value) == null ? void 0 : m.length) ?? 0,
|
|
1359
|
-
|
|
1358
|
+
const s = ((m = a == null ? void 0 : a.value) == null ? void 0 : m.length) ?? 0, p = u != null && u.value && ct[u.value] ? ct[u.value](
|
|
1359
|
+
c,
|
|
1360
1360
|
s
|
|
1361
|
-
) : Cr(
|
|
1362
|
-
t.value =
|
|
1361
|
+
) : Cr(c, s);
|
|
1362
|
+
t.value = p.map((_, h) => ({
|
|
1363
1363
|
cx: (o == null ? void 0 : o.value) === L.HORIZONTAL ? r.value(_) : Se(r.value, h),
|
|
1364
1364
|
cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? Se(n.value, h) : n.value(_)
|
|
1365
1365
|
}));
|
|
@@ -1367,10 +1367,10 @@ function Rt(t, e, r, n, a, o, l, u) {
|
|
|
1367
1367
|
return H(
|
|
1368
1368
|
[r, n],
|
|
1369
1369
|
() => {
|
|
1370
|
-
r.value && n.value && (l != null && l.value) && i.value &&
|
|
1370
|
+
r.value && n.value && (l != null && l.value) && i.value && d(l.value);
|
|
1371
1371
|
},
|
|
1372
1372
|
{ immediate: !0 }
|
|
1373
|
-
), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes:
|
|
1373
|
+
), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes: d };
|
|
1374
1374
|
}
|
|
1375
1375
|
function Fr() {
|
|
1376
1376
|
const t = Oe({
|
|
@@ -1384,7 +1384,7 @@ function Fr() {
|
|
|
1384
1384
|
} };
|
|
1385
1385
|
}
|
|
1386
1386
|
function jr(t) {
|
|
1387
|
-
return { getTooltipItems:
|
|
1387
|
+
return { getTooltipItems: v(
|
|
1388
1388
|
() => (r) => t.value.map(({ color: n, label: a, values: o }) => {
|
|
1389
1389
|
var l, u, i;
|
|
1390
1390
|
return {
|
|
@@ -1431,123 +1431,123 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1431
1431
|
}
|
|
1432
1432
|
},
|
|
1433
1433
|
setup(t, { emit: e }) {
|
|
1434
|
-
const r = t, n = M(), { data: a, labels: o, color: l, options: u, orientation: i, chartType:
|
|
1435
|
-
|
|
1434
|
+
const r = t, n = M(), { data: a, labels: o, color: l, options: u, orientation: i, chartType: d } = S(r), c = w(-1), s = w(null), p = w(null), m = w([]), _ = w(null), h = w(0), y = w(0), { allOptions: f } = Y(u), { internalData: b, computedLabels: x, containerSize: T, updateSize: I, chartID: R } = Qe(a, o, l, f, i), { listenInternalEvent: $ } = K(e, R), { xScale: D, yScale: B } = Jn(
|
|
1435
|
+
b,
|
|
1436
1436
|
x,
|
|
1437
1437
|
T,
|
|
1438
1438
|
i,
|
|
1439
|
-
|
|
1440
|
-
), C =
|
|
1441
|
-
top: Vr(
|
|
1442
|
-
right: Mr(
|
|
1443
|
-
bottom: zr(
|
|
1444
|
-
left: Wr(
|
|
1445
|
-
})), F =
|
|
1446
|
-
var
|
|
1447
|
-
return r.xScale ? ut(r.xScale) ? r.xScale : (
|
|
1448
|
-
}), J =
|
|
1449
|
-
var
|
|
1450
|
-
return r.yScale ? ut(r.yScale) ? r.yScale : (
|
|
1451
|
-
}), oe =
|
|
1452
|
-
...
|
|
1439
|
+
f
|
|
1440
|
+
), C = v(() => ({
|
|
1441
|
+
top: Vr(f.value.margins),
|
|
1442
|
+
right: Mr(f.value.margins),
|
|
1443
|
+
bottom: zr(f.value.margins, h.value),
|
|
1444
|
+
left: Wr(f.value.margins, y.value)
|
|
1445
|
+
})), F = v(() => {
|
|
1446
|
+
var k;
|
|
1447
|
+
return r.xScale ? ut(r.xScale) ? r.xScale : (k = r.xScale) == null ? void 0 : k.call(r, b.value, o.value, T) : D.value;
|
|
1448
|
+
}), J = v(() => {
|
|
1449
|
+
var k;
|
|
1450
|
+
return r.yScale ? ut(r.yScale) ? r.yScale : (k = r.yScale) == null ? void 0 : k.call(r, b.value, o.value, T) : B.value;
|
|
1451
|
+
}), oe = v(() => ({
|
|
1452
|
+
...f.value.xAxisOptions,
|
|
1453
1453
|
withHover: i.value === L.VERTICAL
|
|
1454
|
-
})), W =
|
|
1455
|
-
...
|
|
1454
|
+
})), W = v(() => ({
|
|
1455
|
+
...f.value.yAxisOptions,
|
|
1456
1456
|
withHover: i.value === L.HORIZONTAL
|
|
1457
|
-
})), te =
|
|
1458
|
-
var
|
|
1459
|
-
return (
|
|
1460
|
-
}), Q =
|
|
1461
|
-
var
|
|
1462
|
-
return (
|
|
1463
|
-
}), g =
|
|
1464
|
-
var
|
|
1465
|
-
return ((
|
|
1466
|
-
}), A =
|
|
1467
|
-
var
|
|
1468
|
-
return ((
|
|
1469
|
-
}), O =
|
|
1470
|
-
() => a.value.every((
|
|
1471
|
-
), G =
|
|
1472
|
-
const
|
|
1473
|
-
return P ||
|
|
1474
|
-
}), { hasNegativeValues: Z } = Sr(
|
|
1457
|
+
})), te = v(() => {
|
|
1458
|
+
var k;
|
|
1459
|
+
return (k = f.value.xAxisOptions) == null ? void 0 : k.title;
|
|
1460
|
+
}), Q = v(() => {
|
|
1461
|
+
var k;
|
|
1462
|
+
return (k = f.value.yAxisOptions) == null ? void 0 : k.title;
|
|
1463
|
+
}), g = v(() => {
|
|
1464
|
+
var k;
|
|
1465
|
+
return ((k = f.value.xAxisOptions) == null ? void 0 : k.withTitle) !== !1 && te.value;
|
|
1466
|
+
}), A = v(() => {
|
|
1467
|
+
var k;
|
|
1468
|
+
return ((k = f.value.yAxisOptions) == null ? void 0 : k.withTitle) !== !1 && Q.value;
|
|
1469
|
+
}), O = v(
|
|
1470
|
+
() => a.value.every((k) => !k.values.length) || a.value.every((k) => k.values.every((P) => P === null))
|
|
1471
|
+
), G = v(() => {
|
|
1472
|
+
const k = [], { noBaseScales: P } = f.value;
|
|
1473
|
+
return P || k.push(() => !!(F.value && J.value)), k.every((V) => V() === !0);
|
|
1474
|
+
}), { hasNegativeValues: Z } = Sr(b), { negativeBarAttributes: j } = Br(
|
|
1475
1475
|
T,
|
|
1476
1476
|
F,
|
|
1477
1477
|
J,
|
|
1478
1478
|
i
|
|
1479
1479
|
), { shouldGenerateTooltipAnchors: tt } = Rt(
|
|
1480
1480
|
m,
|
|
1481
|
-
|
|
1481
|
+
f,
|
|
1482
1482
|
F,
|
|
1483
1483
|
J,
|
|
1484
1484
|
o,
|
|
1485
1485
|
i,
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
), { tooltipConfig: ce, showTooltip: ge, hideTooltip: de } = Fr(), { getTooltipItems: ye } = jr(
|
|
1486
|
+
b,
|
|
1487
|
+
d
|
|
1488
|
+
), { tooltipConfig: ce, showTooltip: ge, hideTooltip: de } = Fr(), { getTooltipItems: ye } = jr(b), le = v(
|
|
1489
1489
|
() => {
|
|
1490
|
-
var
|
|
1491
|
-
return ((
|
|
1490
|
+
var k;
|
|
1491
|
+
return ((k = f.value.tooltipOptions) == null ? void 0 : k.position) || "top";
|
|
1492
1492
|
}
|
|
1493
|
-
), nt =
|
|
1493
|
+
), nt = v(() => {
|
|
1494
1494
|
var P;
|
|
1495
|
-
const
|
|
1496
|
-
return ce.opened && (!
|
|
1495
|
+
const k = (P = f.value.tooltipOptions) == null ? void 0 : P.withPointerEvents;
|
|
1496
|
+
return ce.opened && (!k || k && _.value === !1);
|
|
1497
1497
|
});
|
|
1498
|
-
function be(
|
|
1498
|
+
function be(k) {
|
|
1499
1499
|
var V;
|
|
1500
|
-
if (
|
|
1501
|
-
const P =
|
|
1502
|
-
if (
|
|
1503
|
-
const Mt = (V =
|
|
1500
|
+
if (f.value.withHover === !1 || k === c.value) return;
|
|
1501
|
+
const P = c.value;
|
|
1502
|
+
if (c.value = k, f.value.withTooltip !== !1) {
|
|
1503
|
+
const Mt = (V = f.value.tooltipOptions) != null && V.targetElement ? f.value.tooltipOptions.targetElement === "self" ? p.value.$el : f.value.tooltipOptions.targetElement : s.value[k];
|
|
1504
1504
|
ge(Mt);
|
|
1505
1505
|
}
|
|
1506
|
-
e("hovered-index-changed", { newIndex:
|
|
1506
|
+
e("hovered-index-changed", { newIndex: k, oldIndex: P }), e("update:hoveredIndex", k);
|
|
1507
1507
|
}
|
|
1508
1508
|
function ke() {
|
|
1509
|
-
de(),
|
|
1509
|
+
de(), c.value = -1, e("update:hoveredIndex", -1);
|
|
1510
1510
|
}
|
|
1511
|
-
function we(
|
|
1511
|
+
function we(k) {
|
|
1512
1512
|
if (!a.value.some(
|
|
1513
|
-
({ values: V }) =>
|
|
1513
|
+
({ values: V }) => k <= V.length - 1
|
|
1514
1514
|
)) {
|
|
1515
1515
|
q(X.InvalidHoveredIndex);
|
|
1516
1516
|
return;
|
|
1517
1517
|
}
|
|
1518
|
-
|
|
1518
|
+
k == null || k === -1 ? ke() : be(k);
|
|
1519
1519
|
}
|
|
1520
1520
|
function Gt() {
|
|
1521
1521
|
setTimeout(() => {
|
|
1522
1522
|
nt.value && ke(), e("chart-mouseleave");
|
|
1523
1523
|
}, 0);
|
|
1524
1524
|
}
|
|
1525
|
-
function Ft(
|
|
1526
|
-
I(
|
|
1525
|
+
function Ft(k) {
|
|
1526
|
+
I(k), e("resize", k);
|
|
1527
1527
|
}
|
|
1528
|
-
function jt({ index:
|
|
1529
|
-
|
|
1528
|
+
function jt({ index: k, value: P, event: V }) {
|
|
1529
|
+
k !== null && be(k), e("axis-mouseenter", { index: k, value: P, event: V });
|
|
1530
1530
|
}
|
|
1531
|
-
function Vt({ index:
|
|
1532
|
-
e("axis-click", { index:
|
|
1531
|
+
function Vt({ index: k, value: P, event: V }) {
|
|
1532
|
+
e("axis-click", { index: k, value: P, event: V });
|
|
1533
1533
|
}
|
|
1534
1534
|
return H(
|
|
1535
1535
|
a,
|
|
1536
|
-
(
|
|
1536
|
+
(k, P) => e("data-changed", { newValue: k, oldValue: P })
|
|
1537
1537
|
), H(
|
|
1538
1538
|
o,
|
|
1539
|
-
(
|
|
1540
|
-
), H(O, (
|
|
1539
|
+
(k, P) => e("labels-changed", { newValue: k, oldValue: P })
|
|
1540
|
+
), H(O, (k) => k && q(X.Empty), { immediate: !0 }), H(() => r.hoveredIndex, we), H(
|
|
1541
1541
|
m,
|
|
1542
|
-
(
|
|
1543
|
-
|
|
1542
|
+
(k) => {
|
|
1543
|
+
k && r.hoveredIndex != null && c.value === -1 && we(r.hoveredIndex);
|
|
1544
1544
|
},
|
|
1545
1545
|
{ flush: "post" }
|
|
1546
|
-
), H(_, (
|
|
1547
|
-
|
|
1546
|
+
), H(_, (k) => {
|
|
1547
|
+
k === !1 && ce.opened && ke();
|
|
1548
1548
|
}), ee(async () => {
|
|
1549
1549
|
e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), $("lume__internal--hover", be);
|
|
1550
|
-
}), Ee("chartID", R), Ee("isEmpty", O), Ee("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: u, orientation: i, chartType:
|
|
1550
|
+
}), Ee("chartID", R), Ee("isEmpty", O), Ee("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: u, orientation: i, chartType: d, internalHoveredIndex: c, tooltipAnchor: s, chartContainer: p, tooltipAnchorAttributes: m, isHoveringTooltip: _, xAxisHeight: h, yAxisWidth: y, allOptions: f, internalData: b, computedLabels: x, containerSize: T, updateSize: I, chartID: R, listenInternalEvent: $, xScale: D, yScale: B, computedMargins: C, computedXScale: F, computedYScale: J, computedXAxisOptions: oe, computedYAxisOptions: W, xAxisTitle: te, yAxisTitle: Q, showXAxisTitle: g, showYAxisTitle: A, isEmpty: O, isReady: G, hasNegativeValues: Z, negativeBarAttributes: j, shouldGenerateTooltipAnchors: tt, tooltipConfig: ce, showTooltip: ge, hideTooltip: de, getTooltipItems: ye, tooltipPosition: le, shouldHideTooltip: nt, handleInternalHover: be, handleHideTooltip: ke, handleExternalHover: we, handleMouseleave: Gt, handleResize: Ft, handleAxisMouseenter: jt, handleAxisClick: Vt, LumeAxis: Dn, LumeBar: Ue, LumeChartContainer: ar, LumeChartLegend: sr, LumeTooltip: wr, LumeOverlayGroup: Rr, TOOLTIP_ANCHOR_RADIUS: bn };
|
|
1551
1551
|
}
|
|
1552
1552
|
});
|
|
1553
1553
|
var Ur = function() {
|
|
@@ -1630,8 +1630,8 @@ const se = Yr.exports, dt = 8, Kr = 8, Jr = 20, ve = 2, vt = 2, Qr = /* @__PURE_
|
|
|
1630
1630
|
async ([l, u]) => {
|
|
1631
1631
|
if (l && u) {
|
|
1632
1632
|
a.value = u, await He();
|
|
1633
|
-
const { width: i, height:
|
|
1634
|
-
a.value = i + vt > u ? u : i + vt, o.value = Math.ceil(
|
|
1633
|
+
const { width: i, height: d } = l.getBoundingClientRect();
|
|
1634
|
+
a.value = i + vt > u ? u : i + vt, o.value = Math.ceil(d);
|
|
1635
1635
|
}
|
|
1636
1636
|
},
|
|
1637
1637
|
{ immediate: !0 }
|
|
@@ -1678,9 +1678,9 @@ const ia = la.exports, ua = /* @__PURE__ */ N({
|
|
|
1678
1678
|
y: { type: Number, required: !0 }
|
|
1679
1679
|
},
|
|
1680
1680
|
setup(t) {
|
|
1681
|
-
const e = w(null), r =
|
|
1681
|
+
const e = w(null), r = v(
|
|
1682
1682
|
() => e.value && `translate(${-e.value.getBBox().width / 2}, 0)`
|
|
1683
|
-
), n =
|
|
1683
|
+
), n = v(
|
|
1684
1684
|
() => e.value && `translate(${e.value.getBBox().width / 2}, 0)`
|
|
1685
1685
|
);
|
|
1686
1686
|
return { __sfc: !0, textRef: e, beforeTransform: r, afterTransform: n };
|
|
@@ -1794,11 +1794,11 @@ function pt(t, e, r, n, a) {
|
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
1796
|
const o = Date.now(), l = fn(e, r), u = () => {
|
|
1797
|
-
let
|
|
1798
|
-
|
|
1797
|
+
let d = (Date.now() - o) / ma;
|
|
1798
|
+
d > 1 && (d = 1), t.node = {
|
|
1799
1799
|
...t.node,
|
|
1800
|
-
transitionValue: a &&
|
|
1801
|
-
},
|
|
1800
|
+
transitionValue: a && d === 1 ? void 0 : l(d)
|
|
1801
|
+
}, d < 1 && requestAnimationFrame(u);
|
|
1802
1802
|
};
|
|
1803
1803
|
requestAnimationFrame(u);
|
|
1804
1804
|
}
|
|
@@ -1810,29 +1810,29 @@ function mt(t, e) {
|
|
|
1810
1810
|
return e.find((r) => r.every((n) => n.x0 === t.x0));
|
|
1811
1811
|
}
|
|
1812
1812
|
function La(t, e, r) {
|
|
1813
|
-
const n = w(null), a =
|
|
1814
|
-
var s,
|
|
1815
|
-
return (
|
|
1816
|
-
({ label: m, color: _, value: h, deriveColorFromIncomingLinks: y, offset:
|
|
1813
|
+
const n = w(null), a = v(() => {
|
|
1814
|
+
var s, p;
|
|
1815
|
+
return (p = (s = t.value) == null ? void 0 : s[0]) == null ? void 0 : p.values.map(
|
|
1816
|
+
({ label: m, color: _, value: h, deriveColorFromIncomingLinks: y, offset: f }) => ({
|
|
1817
1817
|
label: m || h.toString(),
|
|
1818
1818
|
color: _,
|
|
1819
1819
|
fallbackColor: _ || he,
|
|
1820
1820
|
id: h,
|
|
1821
1821
|
deriveColorFromIncomingLinks: y,
|
|
1822
|
-
offset:
|
|
1822
|
+
offset: f
|
|
1823
1823
|
})
|
|
1824
1824
|
);
|
|
1825
|
-
}), o =
|
|
1825
|
+
}), o = v(
|
|
1826
1826
|
() => {
|
|
1827
|
-
var s,
|
|
1828
|
-
return (
|
|
1827
|
+
var s, p;
|
|
1828
|
+
return (p = (s = t.value) == null ? void 0 : s[0]) == null ? void 0 : p.values.map(
|
|
1829
1829
|
(m) => {
|
|
1830
1830
|
var _;
|
|
1831
1831
|
return (_ = m.targets) == null ? void 0 : _.map(
|
|
1832
|
-
({ node: h, value: y, color:
|
|
1832
|
+
({ node: h, value: y, color: f, curveFunction: b }) => ({
|
|
1833
1833
|
id: `${m.value}:${h}`,
|
|
1834
|
-
color:
|
|
1835
|
-
curveFunction:
|
|
1834
|
+
color: f,
|
|
1835
|
+
curveFunction: b,
|
|
1836
1836
|
source: m.value ?? m.label,
|
|
1837
1837
|
target: h,
|
|
1838
1838
|
value: y
|
|
@@ -1841,47 +1841,47 @@ function La(t, e, r) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
).filter(Boolean).flat();
|
|
1843
1843
|
}
|
|
1844
|
-
), l =
|
|
1844
|
+
), l = v(() => Wt().nodeId(ie).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), u = v(() => {
|
|
1845
1845
|
var s;
|
|
1846
1846
|
return (s = n.value) == null ? void 0 : s.nodes.reduce(
|
|
1847
|
-
(
|
|
1848
|
-
const _ = mt(m,
|
|
1849
|
-
return _ ? (_.push(m), _.sort((h, y) => (h._y0 || h.y0) - (y._y0 || y.y0))) :
|
|
1847
|
+
(p, m) => {
|
|
1848
|
+
const _ = mt(m, p);
|
|
1849
|
+
return _ ? (_.push(m), _.sort((h, y) => (h._y0 || h.y0) - (y._y0 || y.y0))) : p.push([m]), p;
|
|
1850
1850
|
},
|
|
1851
1851
|
[]
|
|
1852
1852
|
);
|
|
1853
1853
|
});
|
|
1854
1854
|
function i(s) {
|
|
1855
|
-
const { offset:
|
|
1855
|
+
const { offset: p } = s, m = mt(s, u.value);
|
|
1856
1856
|
if (!m) return;
|
|
1857
|
-
const _ = m[m.findIndex((y) => y.id === s.id) - 1], h = _ && m.length !== 1 ? _.y1 +
|
|
1857
|
+
const _ = m[m.findIndex((y) => y.id === s.id) - 1], h = _ && m.length !== 1 ? _.y1 + p : p;
|
|
1858
1858
|
s._y0 = s.y0, s._y1 = s.y1, s.y0 = h, s.y1 = s.y0 + (s._y1 - s._y0);
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1861
|
-
const { id: m, _y0: _, y0: h } = s, y =
|
|
1860
|
+
function d(s, p) {
|
|
1861
|
+
const { id: m, _y0: _, y0: h } = s, y = p.links.filter(
|
|
1862
1862
|
(x) => x.source.id === m
|
|
1863
|
-
),
|
|
1863
|
+
), f = p.links.filter(
|
|
1864
1864
|
(x) => x.target.id === m
|
|
1865
|
-
),
|
|
1866
|
-
y.forEach((x) => x.y0 +=
|
|
1865
|
+
), b = h - _;
|
|
1866
|
+
y.forEach((x) => x.y0 += b), f.forEach((x) => x.y1 += b);
|
|
1867
1867
|
}
|
|
1868
|
-
const
|
|
1868
|
+
const c = v(() => {
|
|
1869
1869
|
var s;
|
|
1870
|
-
return n.value && ((s = a.value) == null || s.forEach((
|
|
1871
|
-
|
|
1870
|
+
return n.value && ((s = a.value) == null || s.forEach((p) => {
|
|
1871
|
+
p.value === 0 && (p.fallbackColor = Ye.Grey), typeof p.offset == "number" && (i(p), d(p, n.value));
|
|
1872
1872
|
})), n.value;
|
|
1873
1873
|
});
|
|
1874
1874
|
return H([l, r], () => {
|
|
1875
1875
|
try {
|
|
1876
|
-
const { x0: s, y0:
|
|
1876
|
+
const { x0: s, y0: p, x1: m, y1: _ } = r.value;
|
|
1877
1877
|
n.value = l.value.extent([
|
|
1878
|
-
[s,
|
|
1878
|
+
[s, p],
|
|
1879
1879
|
[m, _]
|
|
1880
1880
|
])({ nodes: a.value, links: o.value });
|
|
1881
1881
|
} catch (s) {
|
|
1882
1882
|
je(Te.GraphProblem, s), n.value = Ta;
|
|
1883
1883
|
}
|
|
1884
|
-
}), { columns: u, graph:
|
|
1884
|
+
}), { columns: u, graph: c };
|
|
1885
1885
|
}
|
|
1886
1886
|
function Ve(t, e) {
|
|
1887
1887
|
return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
|
|
@@ -1936,7 +1936,7 @@ const Ia = (t, e) => {
|
|
|
1936
1936
|
};
|
|
1937
1937
|
};
|
|
1938
1938
|
function wa(t, e, r) {
|
|
1939
|
-
const n = w(null), a =
|
|
1939
|
+
const n = w(null), a = v(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
|
|
1940
1940
|
n.value,
|
|
1941
1941
|
r.value
|
|
1942
1942
|
) : e.value.highlightedElements === "closest" ? $a(n.value, r.value) : Ia(n.value, r.value) : { nodes: {}, links: [] });
|
|
@@ -1974,25 +1974,25 @@ const Ea = /* @__PURE__ */ N({
|
|
|
1974
1974
|
},
|
|
1975
1975
|
emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
|
|
1976
1976
|
setup(t, { emit: e }) {
|
|
1977
|
-
const r = t, n = Le("chartID"), { data: a, options: o } = S(r), l = w([]), u = w([]), i = w(null), { extents:
|
|
1977
|
+
const r = t, n = Le("chartID"), { data: a, options: o } = S(r), l = w([]), u = w([]), i = w(null), { extents: d, updateExtents: c } = fa(r.containerSize), { columns: s, graph: p } = La(a, o, d), { hoveredElement: m, highlightedElements: _ } = wa(
|
|
1978
1978
|
l,
|
|
1979
1979
|
o,
|
|
1980
|
-
|
|
1981
|
-
), h =
|
|
1980
|
+
p
|
|
1981
|
+
), h = v(() => Ae(o.value.valueFormat)), y = v(
|
|
1982
1982
|
() => Object.keys(_.value.nodes)
|
|
1983
|
-
),
|
|
1983
|
+
), f = v(() => s.value ? s.value.map(
|
|
1984
1984
|
(g) => g[0].x0 + o.value.nodeWidth / 2
|
|
1985
|
-
) : []),
|
|
1985
|
+
) : []), b = v(() => {
|
|
1986
1986
|
if (!(!o.value.nodeHeaders || !o.value.nodeHeaders.length))
|
|
1987
|
-
return o.value.nodeHeaders.slice(0,
|
|
1987
|
+
return o.value.nodeHeaders.slice(0, f.value.length).map((g, A) => ({
|
|
1988
1988
|
label: g,
|
|
1989
|
-
x:
|
|
1989
|
+
x: f.value[A]
|
|
1990
1990
|
}));
|
|
1991
|
-
}), x =
|
|
1991
|
+
}), x = v(
|
|
1992
1992
|
() => o.value.nodeHeaderPadding ?? Jr
|
|
1993
|
-
), T =
|
|
1994
|
-
if (!(!o.value.gradient || !
|
|
1995
|
-
return
|
|
1993
|
+
), T = v(() => {
|
|
1994
|
+
if (!(!o.value.gradient || !p.value))
|
|
1995
|
+
return p.value.links.reduce((g, A) => {
|
|
1996
1996
|
const { source: O, target: G } = A, Z = O.color || O.fallbackColor, j = G.deriveColorFromIncomingLinks ? Z : G.color || G.fallbackColor;
|
|
1997
1997
|
return g[A.id] = {
|
|
1998
1998
|
source: Z,
|
|
@@ -2001,7 +2001,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2001
2001
|
x2: G.x0
|
|
2002
2002
|
}, g;
|
|
2003
2003
|
}, {});
|
|
2004
|
-
}), I =
|
|
2004
|
+
}), I = v(() => {
|
|
2005
2005
|
const g = l.value.filter(
|
|
2006
2006
|
(O) => F(O)
|
|
2007
2007
|
), A = [];
|
|
@@ -2054,7 +2054,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2054
2054
|
m.value = null;
|
|
2055
2055
|
return;
|
|
2056
2056
|
}
|
|
2057
|
-
const A = _a(g,
|
|
2057
|
+
const A = _a(g, p.value) || ha(g, p.value);
|
|
2058
2058
|
if (!A) {
|
|
2059
2059
|
q(X.InvalidHoveredElement);
|
|
2060
2060
|
return;
|
|
@@ -2066,14 +2066,14 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2066
2066
|
return ((A = I.value.find(({ id: O }) => g === O)) == null ? void 0 : A.subNodes) ?? [];
|
|
2067
2067
|
}
|
|
2068
2068
|
function Q() {
|
|
2069
|
-
const g = ga(
|
|
2070
|
-
|
|
2069
|
+
const g = ga(p.value, i.value);
|
|
2070
|
+
c(g);
|
|
2071
2071
|
}
|
|
2072
|
-
return H(
|
|
2072
|
+
return H(p, (g) => {
|
|
2073
2073
|
l.value = ya(g.nodes), u.value = Aa(g.links).reverse(), m.value == null && r.hoveredElementId != null && W(r.hoveredElementId);
|
|
2074
2074
|
}), H([r.containerSize, i], () => {
|
|
2075
2075
|
r.containerSize.width && r.containerSize.height && Q();
|
|
2076
|
-
}), H(() => r.hoveredElementId, W), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: u, nodeTextRefs: i, extents:
|
|
2076
|
+
}), H(() => r.hoveredElementId, W), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: u, nodeTextRefs: i, extents: d, updateExtents: c, columns: s, graph: p, hoveredElement: m, highlightedElements: _, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: f, nodeHeaders: b, computedNodeHeaderPadding: x, gradients: T, nodesDerivingColorFromIncomingLinks: I, getLinkStroke: R, isNodeFaded: $, isNodeFocused: D, isLinkFaded: B, isLinkFocused: C, shouldDeriveNodeColorFromIncomingLinks: F, handleLinkMouseover: J, handleLinkMouseleave: oe, handleExternalHover: W, getSubNodesDerivingColorFromIncomingLinks: te, updateMargins: Q, LumeAlluvialNodeLabel: na, LumeAlluvialNodeValue: ia, LumeAlluvialNodeHeader: va, GHOST_STROKE_WIDTH_OFFSET: Kr };
|
|
2077
2077
|
}
|
|
2078
2078
|
});
|
|
2079
2079
|
var Na = function() {
|
|
@@ -2164,9 +2164,9 @@ const Ra = Da.exports, Pa = {
|
|
|
2164
2164
|
},
|
|
2165
2165
|
setup(t, { emit: e }) {
|
|
2166
2166
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), o = mn(M()), { options: l } = S(r), { allOptions: u } = Y(l, Pa);
|
|
2167
|
-
function i(
|
|
2167
|
+
function i(d) {
|
|
2168
2168
|
return {
|
|
2169
|
-
...
|
|
2169
|
+
...d,
|
|
2170
2170
|
noBaseScales: !0
|
|
2171
2171
|
// Alluvial chart never uses base scales
|
|
2172
2172
|
};
|
|
@@ -2209,17 +2209,17 @@ const Fa = /* @__PURE__ */ N({
|
|
|
2209
2209
|
},
|
|
2210
2210
|
setup(t, { emit: e }) {
|
|
2211
2211
|
const r = t, n = Ne(
|
|
2212
|
-
() => import("./
|
|
2212
|
+
() => import("./BCtqE1q7.js")
|
|
2213
2213
|
), a = Ne(
|
|
2214
|
-
() => import("./
|
|
2214
|
+
() => import("./DOtUyFcQ.js")
|
|
2215
2215
|
), o = Ne(
|
|
2216
|
-
() => import("./
|
|
2216
|
+
() => import("./BlUo1XWc.js")
|
|
2217
2217
|
), l = /* @__PURE__ */ new Map([
|
|
2218
2218
|
["single", n],
|
|
2219
2219
|
["grouped", a],
|
|
2220
2220
|
["stacked", o]
|
|
2221
2221
|
]), { componentEventPropagator: u } = K(e), i = ae(M());
|
|
2222
|
-
function
|
|
2222
|
+
function d(s) {
|
|
2223
2223
|
return {
|
|
2224
2224
|
...s,
|
|
2225
2225
|
startOnZero: !0,
|
|
@@ -2230,13 +2230,13 @@ const Fa = /* @__PURE__ */ N({
|
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
2232
|
}
|
|
2233
|
-
const
|
|
2233
|
+
const c = v(() => {
|
|
2234
2234
|
if (We(r.data)) return l.get("single");
|
|
2235
2235
|
if (!r.type)
|
|
2236
2236
|
throw new Error("Bar chart needs a type when there's multiple datasets.");
|
|
2237
2237
|
return l.get(r.type);
|
|
2238
2238
|
});
|
|
2239
|
-
return { __sfc: !0, TYPES: ze, LumeSingleBarChart: n, LumeGroupedBarChart: a, LumeStackedBarChart: o, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: u, slots: i, getBarChartOptions:
|
|
2239
|
+
return { __sfc: !0, TYPES: ze, LumeSingleBarChart: n, LumeGroupedBarChart: a, LumeStackedBarChart: o, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: u, slots: i, getBarChartOptions: d, component: c };
|
|
2240
2240
|
}
|
|
2241
2241
|
});
|
|
2242
2242
|
var ja = function() {
|
|
@@ -2276,7 +2276,7 @@ const Za = (t = !1) => ({
|
|
|
2276
2276
|
} : {}
|
|
2277
2277
|
});
|
|
2278
2278
|
function St(t, e) {
|
|
2279
|
-
const r =
|
|
2279
|
+
const r = v(() => t.value.map((a) => {
|
|
2280
2280
|
var o;
|
|
2281
2281
|
return {
|
|
2282
2282
|
...a,
|
|
@@ -2288,7 +2288,7 @@ function St(t, e) {
|
|
|
2288
2288
|
value: (l == null ? void 0 : l.value) || 0
|
|
2289
2289
|
}))
|
|
2290
2290
|
};
|
|
2291
|
-
})), n =
|
|
2291
|
+
})), n = v(() => {
|
|
2292
2292
|
var a;
|
|
2293
2293
|
return (a = r.value) == null ? void 0 : a.reduce((o, l) => (l.values.forEach((u, i) => {
|
|
2294
2294
|
o[i] ? o[i].push(u) : o[i] = [u];
|
|
@@ -2300,13 +2300,13 @@ function Ua(t, e) {
|
|
|
2300
2300
|
return t.value.length === 1 ? "single" : e.value;
|
|
2301
2301
|
}
|
|
2302
2302
|
function Xa(t, e, r) {
|
|
2303
|
-
const n =
|
|
2303
|
+
const n = v(
|
|
2304
2304
|
() => r.value === L.HORIZONTAL
|
|
2305
2305
|
);
|
|
2306
2306
|
function a(u) {
|
|
2307
2307
|
u || je(Te.BarScaleNull), Math.min(...u.domain()) > 0 && je(Te.BarScaleDomainAbove0);
|
|
2308
2308
|
}
|
|
2309
|
-
const o =
|
|
2309
|
+
const o = v(() => n.value ? (a(t.value), t.value) : t.value), l = v(() => n.value ? e.value : (a(e.value), e.value));
|
|
2310
2310
|
return { barXScale: o, barYScale: l };
|
|
2311
2311
|
}
|
|
2312
2312
|
const Ya = {
|
|
@@ -2316,25 +2316,25 @@ const Ya = {
|
|
|
2316
2316
|
height: 0
|
|
2317
2317
|
};
|
|
2318
2318
|
function Ka(t, e, r, n, a, o) {
|
|
2319
|
-
const l =
|
|
2319
|
+
const l = v(
|
|
2320
2320
|
() => n.value === L.HORIZONTAL
|
|
2321
2321
|
);
|
|
2322
|
-
function u(s,
|
|
2322
|
+
function u(s, p) {
|
|
2323
2323
|
let m, _;
|
|
2324
|
-
return l.value ? (m = s >= 0 ? e.value(0) : e.value(s), _ = r.value(r.value.domain()[
|
|
2324
|
+
return l.value ? (m = s >= 0 ? e.value(0) : e.value(s), _ = r.value(r.value.domain()[p])) : (m = e.value(e.value.domain()[p]), _ = s < 0 ? r.value(0) : r.value(s)), { x: m, y: _ };
|
|
2325
2325
|
}
|
|
2326
2326
|
function i(s) {
|
|
2327
2327
|
return l.value ? s < 0 ? e.value(0) - e.value(s) : e.value(s) - e.value(0) : e.value.bandwidth();
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function d(s) {
|
|
2330
2330
|
return l.value ? r.value.bandwidth() : s < 0 ? r.value(s) - r.value(0) : r.value(0) - r.value(s);
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function c(s, p, m) {
|
|
2333
2333
|
if (!(e.value && r.value)) return Ya;
|
|
2334
|
-
const { value: h, color: y } = s,
|
|
2334
|
+
const { value: h, color: y } = s, f = y ?? t.value[p].color ?? he, { x: b, y: x } = u(h, m), T = i(h), I = d(h);
|
|
2335
2335
|
return {
|
|
2336
|
-
classList: [`lume-fill--${
|
|
2337
|
-
x:
|
|
2336
|
+
classList: [`lume-fill--${f}`, ...o],
|
|
2337
|
+
x: b,
|
|
2338
2338
|
y: x,
|
|
2339
2339
|
width: T,
|
|
2340
2340
|
height: I,
|
|
@@ -2342,7 +2342,7 @@ function Ka(t, e, r, n, a, o) {
|
|
|
2342
2342
|
isNegative: h < 0
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
|
-
return { barAttributeGenerator:
|
|
2345
|
+
return { barAttributeGenerator: c };
|
|
2346
2346
|
}
|
|
2347
2347
|
const Ja = {
|
|
2348
2348
|
x: 0,
|
|
@@ -2351,31 +2351,31 @@ const Ja = {
|
|
|
2351
2351
|
height: 0
|
|
2352
2352
|
};
|
|
2353
2353
|
function Qa(t, e, r, n, a, o) {
|
|
2354
|
-
const l =
|
|
2354
|
+
const l = v(
|
|
2355
2355
|
() => n.value === L.HORIZONTAL
|
|
2356
|
-
), u =
|
|
2357
|
-
function
|
|
2356
|
+
), u = v(() => pe().domain(t.value.map((_, h) => h)).range([0, e.value.bandwidth()]).padding(0)), i = v(() => pe().domain(t.value.map((_, h) => h)).range([0, r.value.bandwidth()]).padding(0));
|
|
2357
|
+
function d(_, h, y) {
|
|
2358
2358
|
if (l.value)
|
|
2359
2359
|
return _ >= 0 ? e.value(0) : e.value(_);
|
|
2360
|
-
const
|
|
2361
|
-
return e.value(
|
|
2360
|
+
const f = e.value.domain();
|
|
2361
|
+
return e.value(f[h]) + u.value(y);
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function c(_, h, y) {
|
|
2364
2364
|
if (l.value) {
|
|
2365
|
-
const
|
|
2366
|
-
return r.value(
|
|
2365
|
+
const f = r.value.domain();
|
|
2366
|
+
return r.value(f[h]) + i.value(y);
|
|
2367
2367
|
}
|
|
2368
2368
|
return _ < 0 ? r.value(0) : r.value(_);
|
|
2369
2369
|
}
|
|
2370
2370
|
function s(_) {
|
|
2371
2371
|
return l.value ? _ < 0 ? e.value(0) - e.value(_) : e.value(_) - e.value(0) : u.value.bandwidth();
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function p(_) {
|
|
2374
2374
|
return l.value ? i.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
|
|
2375
2375
|
}
|
|
2376
2376
|
function m(_, h, y) {
|
|
2377
2377
|
if (!(e.value && r.value)) return Ja;
|
|
2378
|
-
const { value:
|
|
2378
|
+
const { value: b, color: x } = _, T = x ?? t.value[h].color ?? Object.values(z)[h], I = d(b, y, h), R = c(b, y, h), $ = s(b), D = p(b);
|
|
2379
2379
|
return {
|
|
2380
2380
|
classList: [`lume-fill--${T}`, ...o],
|
|
2381
2381
|
x: I,
|
|
@@ -2383,84 +2383,84 @@ function Qa(t, e, r, n, a, o) {
|
|
|
2383
2383
|
width: $,
|
|
2384
2384
|
height: D,
|
|
2385
2385
|
isFaded: a.value !== -1 && a.value !== y,
|
|
2386
|
-
isNegative:
|
|
2386
|
+
isNegative: b < 0
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
2389
|
return { barAttributeGenerator: m };
|
|
2390
2390
|
}
|
|
2391
2391
|
function qa(t, e, r) {
|
|
2392
|
-
const n =
|
|
2392
|
+
const n = v(
|
|
2393
2393
|
() => e.value === L.HORIZONTAL
|
|
2394
|
-
), a =
|
|
2394
|
+
), a = v(() => {
|
|
2395
2395
|
const i = t.value.map(
|
|
2396
|
-
(
|
|
2396
|
+
(d) => d.filter((c) => c.value < 0).reduce((c, s) => c + s.value, 0)
|
|
2397
2397
|
);
|
|
2398
2398
|
return Math.min(...i);
|
|
2399
|
-
}), o =
|
|
2399
|
+
}), o = v(() => {
|
|
2400
2400
|
const i = t.value.map(
|
|
2401
|
-
(
|
|
2402
|
-
(
|
|
2401
|
+
(d) => d.reduce(
|
|
2402
|
+
(c, s) => s.value >= 0 ? c + s.value : c,
|
|
2403
2403
|
0
|
|
2404
2404
|
)
|
|
2405
2405
|
);
|
|
2406
2406
|
return Math.max(...i);
|
|
2407
2407
|
});
|
|
2408
|
-
function l(i,
|
|
2409
|
-
return
|
|
2408
|
+
function l(i, d, c) {
|
|
2409
|
+
return d.length ? n.value ? fe().domain([a.value, o.value]).range([0, c.width]) : Object.assign(
|
|
2410
2410
|
st(
|
|
2411
|
-
pe().domain(
|
|
2411
|
+
pe().domain(d.map((s, p) => p)).range([0, c.width]),
|
|
2412
2412
|
e.value,
|
|
2413
2413
|
r.value
|
|
2414
2414
|
),
|
|
2415
|
-
{ labels:
|
|
2415
|
+
{ labels: d }
|
|
2416
2416
|
) : null;
|
|
2417
2417
|
}
|
|
2418
|
-
function u(i,
|
|
2419
|
-
return
|
|
2418
|
+
function u(i, d, c) {
|
|
2419
|
+
return d.length ? n.value ? Object.assign(
|
|
2420
2420
|
st(
|
|
2421
|
-
pe().domain(
|
|
2421
|
+
pe().domain(d.map((s, p) => p)).range([0, c.height]),
|
|
2422
2422
|
e.value,
|
|
2423
2423
|
r.value
|
|
2424
2424
|
),
|
|
2425
|
-
{ labels:
|
|
2426
|
-
) : fe().domain([o.value, a.value]).range([0,
|
|
2425
|
+
{ labels: d }
|
|
2426
|
+
) : fe().domain([o.value, a.value]).range([0, c.height]) : null;
|
|
2427
2427
|
}
|
|
2428
2428
|
return { stackedXScaleGenerator: l, stackedYScaleGenerator: u };
|
|
2429
2429
|
}
|
|
2430
2430
|
function eo(t, e, r, n, a, o) {
|
|
2431
|
-
const l =
|
|
2431
|
+
const l = v(
|
|
2432
2432
|
() => n.value === L.HORIZONTAL
|
|
2433
|
-
), u =
|
|
2433
|
+
), u = v(
|
|
2434
2434
|
() => l.value ? r.value.domain() : e.value.domain()
|
|
2435
|
-
), i =
|
|
2436
|
-
() => t.value.map((
|
|
2435
|
+
), i = v(
|
|
2436
|
+
() => t.value.map((f) => f.values.map((b) => b == null ? void 0 : b.value))
|
|
2437
2437
|
);
|
|
2438
|
-
function
|
|
2438
|
+
function d(f, b, x) {
|
|
2439
2439
|
let T, I;
|
|
2440
|
-
return l.value ? (T = e.value(
|
|
2440
|
+
return l.value ? (T = e.value(f >= 0 ? 0 + x : f + x), I = r.value(u.value[b])) : (T = e.value(u.value[b]), I = r.value(f >= 0 ? f + x : 0 + x)), { x: T, y: I };
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2443
|
-
return l.value ? e.value(
|
|
2442
|
+
function c(f) {
|
|
2443
|
+
return l.value ? e.value(f) - e.value(0) : e.value.bandwidth();
|
|
2444
2444
|
}
|
|
2445
|
-
function s(
|
|
2446
|
-
return l.value ? e.value(0) - e.value(
|
|
2445
|
+
function s(f) {
|
|
2446
|
+
return l.value ? e.value(0) - e.value(f) : e.value.bandwidth();
|
|
2447
2447
|
}
|
|
2448
|
-
function f
|
|
2449
|
-
return l.value ? r.value.bandwidth() : r.value(0) - r.value(
|
|
2448
|
+
function p(f) {
|
|
2449
|
+
return l.value ? r.value.bandwidth() : r.value(0) - r.value(f);
|
|
2450
2450
|
}
|
|
2451
|
-
function m(
|
|
2452
|
-
return l.value ? r.value.bandwidth() : r.value(
|
|
2451
|
+
function m(f) {
|
|
2452
|
+
return l.value ? r.value.bandwidth() : r.value(f) - r.value(0);
|
|
2453
2453
|
}
|
|
2454
|
-
function _(
|
|
2455
|
-
return
|
|
2454
|
+
function _(f, b) {
|
|
2455
|
+
return f ? i.value.reduce((x, T, I) => (I < f && T[b] >= 0 && (x += T[b]), x), 0) : 0;
|
|
2456
2456
|
}
|
|
2457
|
-
function h(
|
|
2458
|
-
return
|
|
2457
|
+
function h(f, b) {
|
|
2458
|
+
return f ? i.value.reduce((x, T, I) => (I < f && T[b] < 0 && (x += T[b]), x), 0) : 0;
|
|
2459
2459
|
}
|
|
2460
|
-
function y(
|
|
2461
|
-
const { value: T, color: I } =
|
|
2460
|
+
function y(f, b, x) {
|
|
2461
|
+
const { value: T, color: I } = f, R = T >= 0 ? c(T) : s(T), $ = T >= 0 ? p(T) : m(T), D = T >= 0 ? _(b, x) : h(b, x), { x: B, y: C } = d(T, x, D);
|
|
2462
2462
|
return {
|
|
2463
|
-
classList: [`lume-fill--${I ?? t.value[
|
|
2463
|
+
classList: [`lume-fill--${I ?? t.value[b].color ?? Object.values(z)[b]}`, ...o],
|
|
2464
2464
|
width: R,
|
|
2465
2465
|
height: $,
|
|
2466
2466
|
x: B,
|
|
@@ -2498,27 +2498,27 @@ const _t = {
|
|
|
2498
2498
|
transition: l,
|
|
2499
2499
|
type: u,
|
|
2500
2500
|
xScale: i,
|
|
2501
|
-
yScale:
|
|
2502
|
-
classList:
|
|
2501
|
+
yScale: d,
|
|
2502
|
+
classList: c,
|
|
2503
2503
|
labels: s
|
|
2504
|
-
} = S(r),
|
|
2504
|
+
} = S(r), p = Le("chartID"), { emitInternalEvent: m } = K(e, p), { groupedData: _ } = St(n, s), { barXScale: h, barYScale: y } = Xa(i, d, o), f = v(() => typeof c.value == "string" ? [c.value] : c.value), b = v(() => {
|
|
2505
2505
|
const I = Ua(n, u), { barAttributeGenerator: R } = _t[I](
|
|
2506
2506
|
n,
|
|
2507
2507
|
h,
|
|
2508
2508
|
y,
|
|
2509
2509
|
o,
|
|
2510
2510
|
a,
|
|
2511
|
-
|
|
2511
|
+
f.value
|
|
2512
2512
|
);
|
|
2513
2513
|
return R;
|
|
2514
|
-
}), x =
|
|
2514
|
+
}), x = v(() => {
|
|
2515
2515
|
if (l.value)
|
|
2516
2516
|
return o.value === L.HORIZONTAL ? "width" : "height";
|
|
2517
2517
|
});
|
|
2518
2518
|
async function T(I) {
|
|
2519
2519
|
e("lume__internal--hover", I), m("lume__internal--hover", I);
|
|
2520
2520
|
}
|
|
2521
|
-
return { __sfc: !0, MIXIN_MAP: _t, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: u, xScale: i, yScale:
|
|
2521
|
+
return { __sfc: !0, MIXIN_MAP: _t, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: u, xScale: i, yScale: d, classList: c, labels: s, chartID: p, emitInternalEvent: m, groupedData: _, barXScale: h, barYScale: y, computedClasses: f, getBarAttributes: b, computedTransition: x, handleInternalHover: T, LumeBar: Ue };
|
|
2522
2522
|
}
|
|
2523
2523
|
});
|
|
2524
2524
|
var no = function() {
|
|
@@ -2563,7 +2563,7 @@ const et = ao.exports, oo = {
|
|
|
2563
2563
|
...ue(We)
|
|
2564
2564
|
},
|
|
2565
2565
|
setup(t, { emit: e }) {
|
|
2566
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = S(r), u =
|
|
2566
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = S(r), u = v(
|
|
2567
2567
|
() => oo[o.value || L.VERTICAL]
|
|
2568
2568
|
// needs to be computed so that default options are reactive
|
|
2569
2569
|
), { allOptions: i } = Y(l, u);
|
|
@@ -2607,7 +2607,7 @@ const tl = so.exports, co = {
|
|
|
2607
2607
|
...ue()
|
|
2608
2608
|
},
|
|
2609
2609
|
setup(t, { emit: e }) {
|
|
2610
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = S(r), u =
|
|
2610
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = S(r), u = v(
|
|
2611
2611
|
() => co[o.value || L.VERTICAL]
|
|
2612
2612
|
// needs to be computed so that default options are reactive
|
|
2613
2613
|
), { allOptions: i } = Y(
|
|
@@ -2655,18 +2655,18 @@ const nl = mo.exports, _o = {
|
|
|
2655
2655
|
...ue()
|
|
2656
2656
|
},
|
|
2657
2657
|
setup(t, { emit: e }) {
|
|
2658
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { data: o, orientation: l, options: u, labels: i } = S(r),
|
|
2658
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { data: o, orientation: l, options: u, labels: i } = S(r), d = v(
|
|
2659
2659
|
() => _o[l.value || L.VERTICAL]
|
|
2660
2660
|
// needs to be computed so that default options are reactive
|
|
2661
|
-
), { allOptions:
|
|
2661
|
+
), { allOptions: c } = Y(
|
|
2662
2662
|
u,
|
|
2663
|
-
|
|
2664
|
-
), { internalData: s } = Qe(o), { groupedData:
|
|
2665
|
-
|
|
2663
|
+
d
|
|
2664
|
+
), { internalData: s } = Qe(o), { groupedData: p } = St(s, i), { stackedXScaleGenerator: m, stackedYScaleGenerator: _ } = qa(
|
|
2665
|
+
p,
|
|
2666
2666
|
l,
|
|
2667
2667
|
u
|
|
2668
|
-
), h =
|
|
2669
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options: u, labels: i, baseOptions:
|
|
2668
|
+
), h = v(() => r.xScale || m), y = v(() => r.yScale || _);
|
|
2669
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options: u, labels: i, baseOptions: d, allOptions: c, internalData: s, groupedData: p, stackedXScaleGenerator: m, stackedYScaleGenerator: _, xScale: h, yScale: y, LumeChart: se, LumeBarGroup: et };
|
|
2670
2670
|
}
|
|
2671
2671
|
});
|
|
2672
2672
|
var go = function() {
|
|
@@ -2756,7 +2756,7 @@ const Lo = To.exports, gt = 4, yt = 3, Oo = /* @__PURE__ */ N({
|
|
|
2756
2756
|
},
|
|
2757
2757
|
emits: ["click"],
|
|
2758
2758
|
setup(t, { emit: e }) {
|
|
2759
|
-
const r = t, n = w(null), a =
|
|
2759
|
+
const r = t, n = w(null), a = v(() => r.radius / 2), o = v(() => r.active ? r.radius : r.visible ? yt : 0);
|
|
2760
2760
|
return ee(() => Ie(n.value)), { __sfc: !0, DEFAULT_RADIUS: gt, DEFAULT_VISIBLE_RADIUS: yt, props: r, emit: e, root: n, strokeWidth: a, computedRadius: o };
|
|
2761
2761
|
}
|
|
2762
2762
|
});
|
|
@@ -2778,48 +2778,52 @@ var Io = function() {
|
|
|
2778
2778
|
"080270c0"
|
|
2779
2779
|
);
|
|
2780
2780
|
const Eo = wo.exports;
|
|
2781
|
-
function Bt(t) {
|
|
2782
|
-
function
|
|
2783
|
-
let
|
|
2784
|
-
return
|
|
2785
|
-
}
|
|
2786
|
-
function
|
|
2787
|
-
const
|
|
2788
|
-
return
|
|
2789
|
-
}
|
|
2790
|
-
function
|
|
2791
|
-
return function(
|
|
2792
|
-
return !!
|
|
2793
|
-
(
|
|
2781
|
+
function Bt(t, e) {
|
|
2782
|
+
function r(l) {
|
|
2783
|
+
let u = null;
|
|
2784
|
+
return l == null ? void 0 : l.reduce((i, d, c) => (d == null || d.value == null ? (u ? u.push(c) : u = [c], c === (l == null ? void 0 : l.length) - 1 && i.push(u)) : u && (i.push(u), u = null), i), []);
|
|
2785
|
+
}
|
|
2786
|
+
function n(l, u, i, d) {
|
|
2787
|
+
const p = Math.abs(l - u) / (i + 1) * (d + 1);
|
|
2788
|
+
return l == null && u == null ? null : l > u ? l - p : l + p;
|
|
2789
|
+
}
|
|
2790
|
+
function a(l) {
|
|
2791
|
+
return function(i) {
|
|
2792
|
+
return !!l.find(
|
|
2793
|
+
(d) => d.includes(i) || d.includes(i - 1)
|
|
2794
2794
|
);
|
|
2795
2795
|
};
|
|
2796
2796
|
}
|
|
2797
|
-
return { computedLineData:
|
|
2798
|
-
() => t.value.map((
|
|
2799
|
-
const
|
|
2797
|
+
return { computedLineData: v(
|
|
2798
|
+
() => t.value.map((l) => {
|
|
2799
|
+
const u = r(l.values);
|
|
2800
2800
|
return {
|
|
2801
|
-
...
|
|
2802
|
-
isDashed:
|
|
2803
|
-
values:
|
|
2804
|
-
var
|
|
2805
|
-
const c =
|
|
2806
|
-
(
|
|
2801
|
+
...l,
|
|
2802
|
+
isDashed: a(u),
|
|
2803
|
+
values: l.values.map((i, d) => {
|
|
2804
|
+
var s, p, m, _;
|
|
2805
|
+
const c = u.find(
|
|
2806
|
+
(h) => h.includes(d)
|
|
2807
2807
|
);
|
|
2808
2808
|
if (c) {
|
|
2809
|
-
const
|
|
2810
|
-
let
|
|
2811
|
-
|
|
2812
|
-
value:
|
|
2813
|
-
|
|
2814
|
-
|
|
2809
|
+
const h = c[0] - 1, y = c[c.length - 1] + 1;
|
|
2810
|
+
let f = (s = l.values[h]) == null ? void 0 : s.value, b = (p = l.values[y]) == null ? void 0 : p.value;
|
|
2811
|
+
if (f == null) {
|
|
2812
|
+
const x = (_ = (m = e == null ? void 0 : e.value) == null ? void 0 : m.domain) == null ? void 0 : _.call(m);
|
|
2813
|
+
f = (x == null ? void 0 : x[1]) ?? 0, b = f;
|
|
2814
|
+
} else b == null && (b = f);
|
|
2815
|
+
return {
|
|
2816
|
+
value: n(
|
|
2817
|
+
f,
|
|
2818
|
+
b,
|
|
2815
2819
|
c.length,
|
|
2816
|
-
c.indexOf(
|
|
2820
|
+
c.indexOf(d)
|
|
2817
2821
|
),
|
|
2818
2822
|
label: $t,
|
|
2819
2823
|
isNull: !0
|
|
2820
2824
|
};
|
|
2821
2825
|
}
|
|
2822
|
-
return
|
|
2826
|
+
return i;
|
|
2823
2827
|
})
|
|
2824
2828
|
};
|
|
2825
2829
|
})
|
|
@@ -2856,21 +2860,24 @@ const bt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2856
2860
|
const r = t, { data: n, options: a, xScale: o, yScale: l, labels: u } = S(r), i = Le(
|
|
2857
2861
|
"tooltipAnchorAttributes",
|
|
2858
2862
|
null
|
|
2859
|
-
), { updateTooltipAnchorAttributes:
|
|
2863
|
+
), { updateTooltipAnchorAttributes: d } = Rt(
|
|
2860
2864
|
i,
|
|
2861
2865
|
a,
|
|
2862
2866
|
o,
|
|
2863
2867
|
l,
|
|
2864
2868
|
u
|
|
2865
|
-
),
|
|
2869
|
+
), c = v(() => {
|
|
2866
2870
|
if (n.value.every((D) => D.isDashed))
|
|
2867
2871
|
return n.value;
|
|
2868
|
-
const { computedLineData: $ } = Bt(
|
|
2869
|
-
|
|
2870
|
-
|
|
2872
|
+
const { computedLineData: $ } = Bt(
|
|
2873
|
+
n,
|
|
2874
|
+
l
|
|
2875
|
+
);
|
|
2876
|
+
return a.value.withTooltip !== !1 && (i != null && i.value) && d($.value), $.value;
|
|
2877
|
+
}), s = v(() => {
|
|
2871
2878
|
if (r.hoveredIndex === -1) return;
|
|
2872
2879
|
const $ = dn(
|
|
2873
|
-
|
|
2880
|
+
c.value,
|
|
2874
2881
|
r.hoveredIndex
|
|
2875
2882
|
);
|
|
2876
2883
|
return {
|
|
@@ -2878,30 +2885,30 @@ const bt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2878
2885
|
V ${l.value($)}`
|
|
2879
2886
|
// Move to X index, Vertical line to the highest point
|
|
2880
2887
|
};
|
|
2881
|
-
}),
|
|
2888
|
+
}), p = v(
|
|
2882
2889
|
() => o.value && bt / (vn(o.value) - 1)
|
|
2883
2890
|
// Subtracting the first line (read below)
|
|
2884
|
-
), m =
|
|
2891
|
+
), m = v(
|
|
2885
2892
|
() => {
|
|
2886
2893
|
var $;
|
|
2887
2894
|
return (($ = a.value) == null ? void 0 : $.lineWidth) * 2 || void 0;
|
|
2888
2895
|
}
|
|
2889
2896
|
// If no `lineWidth`, returns NaN which needs to be undefined
|
|
2890
|
-
), _ =
|
|
2897
|
+
), _ = v(
|
|
2891
2898
|
() => o.value.bandwidth() / 2
|
|
2892
|
-
), h =
|
|
2899
|
+
), h = v(() => o.value.domain()), y = v(
|
|
2893
2900
|
() => a.value.withPoints ?? r.withPoints
|
|
2894
|
-
),
|
|
2901
|
+
), f = v(
|
|
2895
2902
|
() => a.value.withPoints === "visible" || r.withPoints === "visible"
|
|
2896
2903
|
);
|
|
2897
|
-
function
|
|
2898
|
-
return
|
|
2904
|
+
function b($) {
|
|
2905
|
+
return c.value[$].values;
|
|
2899
2906
|
}
|
|
2900
2907
|
function x($, D) {
|
|
2901
2908
|
var C, F;
|
|
2902
2909
|
const B = $ === 0 ? [] : [
|
|
2903
|
-
(C =
|
|
2904
|
-
(F =
|
|
2910
|
+
(C = b(D)[$ - 1]) == null ? void 0 : C.value,
|
|
2911
|
+
(F = b(D)[$]) == null ? void 0 : F.value
|
|
2905
2912
|
];
|
|
2906
2913
|
return Do(
|
|
2907
2914
|
$,
|
|
@@ -2912,13 +2919,13 @@ const bt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2912
2919
|
}
|
|
2913
2920
|
function T($) {
|
|
2914
2921
|
return {
|
|
2915
|
-
animationDelay: $ < 2 ? 0 : ($ - 1) *
|
|
2916
|
-
animationDuration:
|
|
2922
|
+
animationDelay: $ < 2 ? 0 : ($ - 1) * p.value,
|
|
2923
|
+
animationDuration: p.value
|
|
2917
2924
|
};
|
|
2918
2925
|
}
|
|
2919
2926
|
function I($, D) {
|
|
2920
2927
|
var C;
|
|
2921
|
-
const B = (C =
|
|
2928
|
+
const B = (C = b(D)[$]) == null ? void 0 : C.value;
|
|
2922
2929
|
return {
|
|
2923
2930
|
x: U(o.value) ? r.xScale(h.value[$]) + _.value : r.xScale($),
|
|
2924
2931
|
y: B === null ? l.value(l.value.domain()[1]) : l.value(B)
|
|
@@ -2927,7 +2934,7 @@ const bt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2927
2934
|
function R($) {
|
|
2928
2935
|
return r.hoveredIndex === $;
|
|
2929
2936
|
}
|
|
2930
|
-
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: bt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: u, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes:
|
|
2937
|
+
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: bt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: u, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: d, computedGroupData: c, overlayLineAttributes: s, animationDuration: p, pointRadius: m, xAxisOffset: _, domain: h, computedWithPoints: y, computedVisiblePoints: f, getValuesFromDataset: b, getPathDefinition: x, getLineTransitionParams: T, getPointPosition: I, isPointActive: R, LumeLine: Lo, LumePoint: Eo };
|
|
2931
2938
|
}
|
|
2932
2939
|
});
|
|
2933
2940
|
var Po = function() {
|
|
@@ -2949,7 +2956,7 @@ var Po = function() {
|
|
|
2949
2956
|
So,
|
|
2950
2957
|
!1,
|
|
2951
2958
|
null,
|
|
2952
|
-
"
|
|
2959
|
+
"898c2e7a"
|
|
2953
2960
|
);
|
|
2954
2961
|
const Ct = Bo.exports, Co = {
|
|
2955
2962
|
margins: re.VERTICAL,
|
|
@@ -2986,7 +2993,7 @@ var Fo = function() {
|
|
|
2986
2993
|
);
|
|
2987
2994
|
const al = Vo.exports;
|
|
2988
2995
|
function Mo(t) {
|
|
2989
|
-
return { areaPathDefinition:
|
|
2996
|
+
return { areaPathDefinition: v(
|
|
2990
2997
|
() => function(r, n) {
|
|
2991
2998
|
if (!r || !n || U(r) || U(n))
|
|
2992
2999
|
return;
|
|
@@ -3016,13 +3023,13 @@ const zo = {
|
|
|
3016
3023
|
...me()
|
|
3017
3024
|
},
|
|
3018
3025
|
setup(t, { expose: e, emit: r }) {
|
|
3019
|
-
const n = t, { componentEventPropagator: a } = K(r), o = ae(M()), { data: l, options: u } = S(n), { internalData: i } = Qe(l), { allOptions:
|
|
3020
|
-
var y,
|
|
3021
|
-
return (
|
|
3022
|
-
}), m =
|
|
3026
|
+
const n = t, { componentEventPropagator: a } = K(r), o = ae(M()), { data: l, options: u } = S(n), { internalData: i } = Qe(l), { allOptions: d } = Y(u, zo), { computedLineData: c } = Bt(i), { areaPathDefinition: s } = Mo(c), p = v(() => {
|
|
3027
|
+
var y, f;
|
|
3028
|
+
return (f = (y = i.value) == null ? void 0 : y[0]) == null ? void 0 : f.color;
|
|
3029
|
+
}), m = v(
|
|
3023
3030
|
() => {
|
|
3024
|
-
var y,
|
|
3025
|
-
return ((
|
|
3031
|
+
var y, f;
|
|
3032
|
+
return ((f = (y = l.value) == null ? void 0 : y[0]) == null ? void 0 : f.areaColor) || p.value;
|
|
3026
3033
|
}
|
|
3027
3034
|
);
|
|
3028
3035
|
function _(y) {
|
|
@@ -3031,13 +3038,13 @@ const zo = {
|
|
|
3031
3038
|
noMinSize: !0
|
|
3032
3039
|
};
|
|
3033
3040
|
}
|
|
3034
|
-
function h(y,
|
|
3041
|
+
function h(y, f, b) {
|
|
3035
3042
|
if (y.length)
|
|
3036
|
-
return fe().range([0,
|
|
3043
|
+
return fe().range([0, b.width]).domain([0, y[0].values.length - 1]);
|
|
3037
3044
|
}
|
|
3038
3045
|
return e({
|
|
3039
3046
|
areaPathDefinition: s
|
|
3040
|
-
}), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options: u, internalData: i, allOptions:
|
|
3047
|
+
}), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options: u, internalData: i, allOptions: d, computedLineData: c, areaPathDefinition: s, computedColor: p, areaColor: m, getSparklineOptions: _, xScaleGenerator: h, LumeChart: se, LumeLineGroup: Ct };
|
|
3041
3048
|
}
|
|
3042
3049
|
});
|
|
3043
3050
|
var Zo = function() {
|
|
@@ -3064,55 +3071,55 @@ var Zo = function() {
|
|
|
3064
3071
|
);
|
|
3065
3072
|
const ol = Xo.exports;
|
|
3066
3073
|
export {
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3074
|
+
al as A,
|
|
3075
|
+
tl as B,
|
|
3076
|
+
ne as C,
|
|
3077
|
+
Xe as D,
|
|
3078
|
+
ol as E,
|
|
3079
|
+
rl as F,
|
|
3080
|
+
qe as G,
|
|
3081
|
+
Qe as H,
|
|
3082
|
+
Jn as I,
|
|
3083
|
+
Bt as J,
|
|
3084
|
+
Br as K,
|
|
3085
|
+
Ke as L,
|
|
3086
|
+
Y as M,
|
|
3087
|
+
qn as N,
|
|
3088
|
+
Ye as O,
|
|
3089
|
+
Fr as P,
|
|
3090
|
+
Rt as Q,
|
|
3084
3091
|
jr as R,
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3092
|
+
Dt as S,
|
|
3093
|
+
Je as T,
|
|
3094
|
+
ue as U,
|
|
3095
|
+
Qn as V,
|
|
3096
|
+
me as W,
|
|
3097
|
+
Kn as X,
|
|
3098
|
+
z as a,
|
|
3099
|
+
Ra as b,
|
|
3100
|
+
va as c,
|
|
3101
|
+
na as d,
|
|
3102
|
+
ia as e,
|
|
3103
|
+
Dn as f,
|
|
3104
|
+
Ue as g,
|
|
3105
|
+
et as h,
|
|
3106
|
+
se as i,
|
|
3107
|
+
ar as j,
|
|
3108
|
+
sr as k,
|
|
3109
|
+
Lo as l,
|
|
3110
|
+
Ct as m,
|
|
3111
|
+
Rr as n,
|
|
3112
|
+
Eo as o,
|
|
3113
|
+
wr as p,
|
|
3114
|
+
Tr as q,
|
|
3115
|
+
yr as r,
|
|
3116
|
+
pr as s,
|
|
3117
|
+
Sr as t,
|
|
3118
|
+
st as u,
|
|
3119
|
+
Se as v,
|
|
3120
|
+
ut as w,
|
|
3121
|
+
qo as x,
|
|
3122
|
+
el as y,
|
|
3123
|
+
nl as z
|
|
3117
3124
|
};
|
|
3118
|
-
//# sourceMappingURL=
|
|
3125
|
+
//# sourceMappingURL=DhrWnQlK.js.map
|