@adyen/lume 0.7.0 → 0.8.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/index.js +206 -189
- package/dist/index.js.map +1 -1
- package/dist/styles/main.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { format as Lt, ticks as
|
|
1
|
+
import { defineComponent as E, ref as $, isRef as qe, computed as c, watch as D, toRefs as B, inject as pe, reactive as me, onMounted as U, onBeforeUnmount as et, watchEffect as tt, useSlots as j, provide as ke, defineAsyncComponent as Ae } from "vue";
|
|
2
|
+
import { format as Lt, ticks as xt, scaleBand as le, scaleLinear as ue, link as Ot, line as $t, area as It } from "d3";
|
|
3
3
|
import { createPopper as wt } from "@popperjs/core";
|
|
4
4
|
import { sankeyLinkHorizontal as Et, sankey as Nt, sankeyJustify as Ct } from "d3-sankey";
|
|
5
|
-
const Dt = /* @__PURE__ */
|
|
5
|
+
const Dt = /* @__PURE__ */ E({
|
|
6
6
|
__name: "lume-tick",
|
|
7
7
|
props: {
|
|
8
8
|
value: {
|
|
@@ -93,7 +93,7 @@ var Rt = function() {
|
|
|
93
93
|
null,
|
|
94
94
|
null
|
|
95
95
|
);
|
|
96
|
-
const Bt = St.exports,
|
|
96
|
+
const Bt = St.exports, Pt = [
|
|
97
97
|
"controls",
|
|
98
98
|
"legend",
|
|
99
99
|
"axes",
|
|
@@ -112,7 +112,7 @@ function rt(t) {
|
|
|
112
112
|
function Ne(t) {
|
|
113
113
|
return t.length === 1;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Ft(t) {
|
|
116
116
|
return !!t && t.every(
|
|
117
117
|
(e) => "color" in e
|
|
118
118
|
);
|
|
@@ -132,10 +132,10 @@ function Gt(t) {
|
|
|
132
132
|
function te(t) {
|
|
133
133
|
return (t == null ? void 0 : t.bandwidth) !== void 0;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Vt(t) {
|
|
136
136
|
return te(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const jt = (t, e) => {
|
|
139
139
|
if (!t)
|
|
140
140
|
throw new Error("Data is not a valid array");
|
|
141
141
|
if (t.length === 0)
|
|
@@ -147,7 +147,7 @@ const Vt = (t, e) => {
|
|
|
147
147
|
};
|
|
148
148
|
function Mt(t, e) {
|
|
149
149
|
var r;
|
|
150
|
-
return
|
|
150
|
+
return jt(t, e), ((r = t.reduce(
|
|
151
151
|
(n, a) => {
|
|
152
152
|
var o, l;
|
|
153
153
|
return (((o = n.values[e]) == null ? void 0 : o.value) ?? 0) > (((l = a.values[e]) == null ? void 0 : l.value) ?? 0) ? n : a;
|
|
@@ -188,7 +188,7 @@ function Xt(t) {
|
|
|
188
188
|
return Object.assign(
|
|
189
189
|
{},
|
|
190
190
|
...Object.keys(t).map(
|
|
191
|
-
(e) =>
|
|
191
|
+
(e) => Pt.includes(e) ? {} : { [e]: t[e] }
|
|
192
192
|
)
|
|
193
193
|
);
|
|
194
194
|
}
|
|
@@ -480,8 +480,8 @@ const vt = {
|
|
|
480
480
|
"x-linear-scale-axis": ln,
|
|
481
481
|
"y-linear-scale-axis": un
|
|
482
482
|
};
|
|
483
|
-
var
|
|
484
|
-
const cn = /* @__PURE__ */
|
|
483
|
+
var xe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(xe || {}), Oe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Oe || {}), _e = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(_e || {});
|
|
484
|
+
const cn = /* @__PURE__ */ E({
|
|
485
485
|
__name: "lume-axis",
|
|
486
486
|
props: {
|
|
487
487
|
scale: {
|
|
@@ -496,7 +496,7 @@ const cn = /* @__PURE__ */ C({
|
|
|
496
496
|
position: {
|
|
497
497
|
type: String,
|
|
498
498
|
default: void 0,
|
|
499
|
-
validator: (t) => t in
|
|
499
|
+
validator: (t) => t in Oe
|
|
500
500
|
},
|
|
501
501
|
containerSize: {
|
|
502
502
|
type: Object,
|
|
@@ -524,53 +524,53 @@ const cn = /* @__PURE__ */ C({
|
|
|
524
524
|
l,
|
|
525
525
|
_.value === "x" ? nn : rn
|
|
526
526
|
), { showTick: p } = Jt(n, d, k.value.skip), T = c(() => {
|
|
527
|
-
var w,
|
|
528
|
-
return _.value === "y" && u.value ? `translate(0, ${((w = a.value) == null ? void 0 : w.height) / 2})` : _.value === "x" && u.value ? `translate(-${((
|
|
529
|
-
}),
|
|
527
|
+
var w, C, H, g;
|
|
528
|
+
return _.value === "y" && u.value ? `translate(0, ${((w = a.value) == null ? void 0 : w.height) / 2})` : _.value === "x" && u.value ? `translate(-${((C = a.value) == null ? void 0 : C.width) / 2}, ${(H = a.value) == null ? void 0 : H.height})` : `translate(0, ${_.value === "x" ? (g = a.value) == null ? void 0 : g.height : 0})`;
|
|
529
|
+
}), x = c(() => {
|
|
530
530
|
if (te(n.value))
|
|
531
531
|
return n.value.labels || n.value.domain();
|
|
532
|
-
const { tickCount: w } = k.value, [
|
|
533
|
-
return
|
|
532
|
+
const { tickCount: w } = k.value, [C, H] = n.value.domain();
|
|
533
|
+
return xt(C, H, w);
|
|
534
534
|
}), A = c(() => {
|
|
535
535
|
const { tickFormat: w } = k.value;
|
|
536
536
|
return fe(w);
|
|
537
537
|
}), y = c(
|
|
538
538
|
() => k.value.withHover && m.value && o.value > -1
|
|
539
539
|
);
|
|
540
|
-
function
|
|
541
|
-
const { showTicks:
|
|
542
|
-
return
|
|
540
|
+
function N(w) {
|
|
541
|
+
const { showTicks: C } = k.value;
|
|
542
|
+
return C === !1 ? "" : A.value(w);
|
|
543
543
|
}
|
|
544
|
-
function R(w,
|
|
545
|
-
e("mouseenter", { index: m.value ? w : null, value:
|
|
544
|
+
function R(w, C, H) {
|
|
545
|
+
e("mouseenter", { index: m.value ? w : null, value: C, event: H });
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
e("click", { index: w, value:
|
|
547
|
+
function P(w, C, H) {
|
|
548
|
+
e("click", { index: w, value: C, event: H });
|
|
549
549
|
}
|
|
550
550
|
function G(w) {
|
|
551
551
|
if (!(!d.value || !d.value.length))
|
|
552
552
|
return d.value[w].ref;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
f.value =
|
|
556
|
-
(w,
|
|
557
|
-
value:
|
|
558
|
-
group: s.getTickGroupAttributes(w,
|
|
559
|
-
ghost: s.getTickGhostAttributes(G(
|
|
554
|
+
function V() {
|
|
555
|
+
f.value = x.value.map(
|
|
556
|
+
(w, C) => ({
|
|
557
|
+
value: N(w),
|
|
558
|
+
group: s.getTickGroupAttributes(w, C),
|
|
559
|
+
ghost: s.getTickGhostAttributes(G(C)),
|
|
560
560
|
label: s.getTickLabelAttributes(),
|
|
561
561
|
gridline: s.getGridLinesAttributes()
|
|
562
562
|
})
|
|
563
563
|
);
|
|
564
564
|
}
|
|
565
565
|
function W() {
|
|
566
|
-
const w = n.value.step ? "bandScale" : "linearScale",
|
|
567
|
-
Object.entries(
|
|
566
|
+
const w = n.value.step ? "bandScale" : "linearScale", C = sn[`${_.value}-${xe[w]}`];
|
|
567
|
+
Object.entries(C(n, a, k) || []).forEach(
|
|
568
568
|
([H, g]) => {
|
|
569
569
|
s[H] = g;
|
|
570
570
|
}
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
|
-
return D(n, W, { flush: "sync", immediate: !0 }), D(n,
|
|
573
|
+
return D(n, W, { flush: "sync", immediate: !0 }), D(n, V, { immediate: !0 }), D(d, V), U(() => he(v.value)), { __sfc: !0, SCALE_MIXIN_MAP: xe, POSITIONS: Oe, TYPES: _e, props: r, emit: e, scale: n, containerSize: a, hoveredIndex: o, options: l, orientation: i, isEmpty: u, mixins: s, tickRefs: d, root: v, ticksWithAttributes: f, computedPosition: h, computedType: _, shouldHover: m, allOptions: k, showTick: p, axisTransform: T, ticks: x, tickFormatter: A, isHovering: y, formatTick: N, handleTickMouseenter: R, handleTickClick: P, getTextNode: G, setTicks: V, init: W, LumeTick: Bt };
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
576
|
var dn = function() {
|
|
@@ -619,7 +619,7 @@ function mn(t, e, r, n) {
|
|
|
619
619
|
a.value = r.value, o.value = n.value;
|
|
620
620
|
}), D(r, (i) => a.value = i), D(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
|
|
621
621
|
}
|
|
622
|
-
const hn = /* @__PURE__ */
|
|
622
|
+
const hn = /* @__PURE__ */ E({
|
|
623
623
|
__name: "lume-bar",
|
|
624
624
|
props: {
|
|
625
625
|
x: {
|
|
@@ -659,8 +659,8 @@ const hn = /* @__PURE__ */ C({
|
|
|
659
659
|
setup(t, { emit: e }) {
|
|
660
660
|
const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), s = $(null), d = c(
|
|
661
661
|
() => typeof u.value == "string" ? [u.value] : u.value
|
|
662
|
-
), v = c(() => i.value === "width"), f = c(() => i.value === "height"), h = mn(n, a, o, l), { computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p } = pn(n, a, o, l), T = c(() => k.value ? 1 : (v.value ? h.computedWidth : o).value),
|
|
663
|
-
return U(() => he(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: d, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: h, computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p, computedWidth: T, computedHeight:
|
|
662
|
+
), v = c(() => i.value === "width"), f = c(() => i.value === "height"), h = mn(n, a, o, l), { computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p } = pn(n, a, o, l), T = c(() => k.value ? 1 : (v.value ? h.computedWidth : o).value), x = c(() => p.value ? 1 : (f.value ? h.computedHeight : l).value), A = v.value || f.value ? h.transformOrigin : null;
|
|
663
|
+
return U(() => he(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: d, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: h, computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p, computedWidth: T, computedHeight: x, transformOrigin: A };
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
666
|
var gn = function() {
|
|
@@ -705,7 +705,7 @@ function kn() {
|
|
|
705
705
|
r.unobserve(t.value);
|
|
706
706
|
}), { resizeState: e, resizeRef: t };
|
|
707
707
|
}
|
|
708
|
-
const An = /* @__PURE__ */
|
|
708
|
+
const An = /* @__PURE__ */ E({
|
|
709
709
|
__name: "lume-chart-container",
|
|
710
710
|
props: {
|
|
711
711
|
margins: {
|
|
@@ -769,7 +769,7 @@ var Tn = function() {
|
|
|
769
769
|
}, mouseleave: function(a) {
|
|
770
770
|
return n.emit("mouseleave", a);
|
|
771
771
|
} } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.computedMargins.left}, ${n.computedMargins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
|
|
772
|
-
}, Ln = [],
|
|
772
|
+
}, Ln = [], xn = /* @__PURE__ */ I(
|
|
773
773
|
An,
|
|
774
774
|
Tn,
|
|
775
775
|
Ln,
|
|
@@ -779,12 +779,12 @@ var Tn = function() {
|
|
|
779
779
|
null,
|
|
780
780
|
null
|
|
781
781
|
);
|
|
782
|
-
const
|
|
782
|
+
const On = xn.exports, $n = /* @__PURE__ */ E({
|
|
783
783
|
__name: "lume-chart-legend",
|
|
784
784
|
props: {
|
|
785
785
|
data: {
|
|
786
786
|
type: Array,
|
|
787
|
-
validator:
|
|
787
|
+
validator: Ft,
|
|
788
788
|
required: !0
|
|
789
789
|
}
|
|
790
790
|
},
|
|
@@ -832,20 +832,20 @@ var Dn = function() {
|
|
|
832
832
|
);
|
|
833
833
|
const Sn = Hn.exports;
|
|
834
834
|
const Bn = {};
|
|
835
|
-
var
|
|
835
|
+
var Pn = function() {
|
|
836
836
|
var e = this, r = e._self._c;
|
|
837
837
|
return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
|
|
838
|
-
},
|
|
838
|
+
}, Fn = [], Gn = /* @__PURE__ */ I(
|
|
839
839
|
Bn,
|
|
840
|
-
Fn,
|
|
841
840
|
Pn,
|
|
841
|
+
Fn,
|
|
842
842
|
!1,
|
|
843
843
|
null,
|
|
844
844
|
"4ed7ec1b",
|
|
845
845
|
null,
|
|
846
846
|
null
|
|
847
847
|
);
|
|
848
|
-
const
|
|
848
|
+
const Vn = Gn.exports, jn = /* @__PURE__ */ E({
|
|
849
849
|
__name: "lume-tooltip-item",
|
|
850
850
|
props: {
|
|
851
851
|
color: {
|
|
@@ -861,7 +861,7 @@ var Mn = function() {
|
|
|
861
861
|
var e = this, r = e._self._c;
|
|
862
862
|
return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
|
|
863
863
|
}, zn = [], Wn = /* @__PURE__ */ I(
|
|
864
|
-
|
|
864
|
+
jn,
|
|
865
865
|
Mn,
|
|
866
866
|
zn,
|
|
867
867
|
!1,
|
|
@@ -870,7 +870,7 @@ var Mn = function() {
|
|
|
870
870
|
null,
|
|
871
871
|
null
|
|
872
872
|
);
|
|
873
|
-
const Zn = Wn.exports, Xn = /* @__PURE__ */
|
|
873
|
+
const Zn = Wn.exports, Xn = /* @__PURE__ */ E({
|
|
874
874
|
__name: "lume-tooltip",
|
|
875
875
|
props: {
|
|
876
876
|
targetElement: {
|
|
@@ -906,7 +906,7 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
|
|
|
906
906
|
},
|
|
907
907
|
emits: ["opened", "moved", "closed"],
|
|
908
908
|
setup(t, { emit: e }) {
|
|
909
|
-
const r = t, n = $(null), { items: a, options: o } = B(r), l =
|
|
909
|
+
const r = t, n = $(null), { items: a, options: o } = B(r), l = j(), i = $(null), { allOptions: u } = z(o), s = c(
|
|
910
910
|
() => u.value.fixedPositioning ?? r.fixedPositioning
|
|
911
911
|
), d = c(
|
|
912
912
|
() => s.value ? "fixed" : "absolute"
|
|
@@ -943,7 +943,7 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
|
|
|
943
943
|
function T() {
|
|
944
944
|
i.value && (i.value.destroy(), e("closed"));
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function x() {
|
|
947
947
|
i.value && (n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
|
|
948
948
|
i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
|
|
949
949
|
}() : T());
|
|
@@ -951,9 +951,9 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
|
|
|
951
951
|
return D(
|
|
952
952
|
() => r.targetElement,
|
|
953
953
|
(A, y) => {
|
|
954
|
-
!y && A ? p() :
|
|
954
|
+
!y && A ? p() : x();
|
|
955
955
|
}
|
|
956
|
-
), U(p), et(T), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: d, allModifiers: v, showTitle: f, formatValue: h, formatTitle: _, summaryItem: m, hasSummary: k, initPopper: p, destroyPopper: T, updatePopper:
|
|
956
|
+
), U(p), et(T), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: d, allModifiers: v, showTitle: f, formatValue: h, formatTitle: _, summaryItem: m, hasSummary: k, initPopper: p, destroyPopper: T, updatePopper: x, LumeTooltipTitle: Sn, LumeTooltipSummary: Vn, LumeTooltipItem: Zn };
|
|
957
957
|
}
|
|
958
958
|
});
|
|
959
959
|
var Un = function() {
|
|
@@ -994,7 +994,7 @@ function er(t) {
|
|
|
994
994
|
function tr(t) {
|
|
995
995
|
return Object.values(De).includes(t);
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function Fe(t, e) {
|
|
998
998
|
return e === J.Divergent ? Object.values(Ce).includes(t) : Object.values({
|
|
999
999
|
...M,
|
|
1000
1000
|
...ot,
|
|
@@ -1026,7 +1026,7 @@ function Ge(t, e, r) {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
function or(t, e, r = Qn, n) {
|
|
1029
|
-
return
|
|
1029
|
+
return Fe(t, r) ? t : (n > 4 && (Q(X.ColorLoop), n = n % 5), Fe(e, r) ? Ge(e, r, n) : Ge(er(r), r, n));
|
|
1030
1030
|
}
|
|
1031
1031
|
function lr(t) {
|
|
1032
1032
|
return t.map((e) => Gt(e) ? e : { value: e });
|
|
@@ -1104,22 +1104,22 @@ function sr(t, e, r, n, a) {
|
|
|
1104
1104
|
const o = $(null), l = $(null);
|
|
1105
1105
|
function i() {
|
|
1106
1106
|
const { width: u, height: s } = r;
|
|
1107
|
-
!u && !s || !e.value || !t.value || (n.value === L.HORIZONTAL ? (o.value =
|
|
1107
|
+
!u && !s || !e.value || !t.value || (n.value === L.HORIZONTAL ? (o.value = je(
|
|
1108
1108
|
t.value,
|
|
1109
1109
|
u,
|
|
1110
1110
|
n.value,
|
|
1111
1111
|
a.value.startOnZero
|
|
1112
|
-
), l.value =
|
|
1112
|
+
), l.value = Ve(
|
|
1113
1113
|
e.value,
|
|
1114
1114
|
s,
|
|
1115
1115
|
n.value,
|
|
1116
1116
|
a.value
|
|
1117
|
-
)) : (o.value =
|
|
1117
|
+
)) : (o.value = Ve(
|
|
1118
1118
|
e.value,
|
|
1119
1119
|
u,
|
|
1120
1120
|
n.value,
|
|
1121
1121
|
a.value
|
|
1122
|
-
), l.value =
|
|
1122
|
+
), l.value = je(
|
|
1123
1123
|
t.value,
|
|
1124
1124
|
s,
|
|
1125
1125
|
n.value,
|
|
@@ -1128,14 +1128,14 @@ function sr(t, e, r, n, a) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
return tt(i), { xScale: o, yScale: l };
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Ve(t, e, r, n) {
|
|
1132
1132
|
const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === L.HORIZONTAL ? st : it);
|
|
1133
1133
|
return Object.assign(
|
|
1134
1134
|
le().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((s, d) => d)),
|
|
1135
1135
|
{ labels: t }
|
|
1136
1136
|
);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function je(t, e, r, n) {
|
|
1139
1139
|
const a = rt(t).filter((d) => d != null), o = [0, e];
|
|
1140
1140
|
if (a.length === 0)
|
|
1141
1141
|
return ue().range(o).domain([0, 0]).nice();
|
|
@@ -1227,7 +1227,7 @@ const ae = (t, e = !0) => ({
|
|
|
1227
1227
|
type: [String, Array],
|
|
1228
1228
|
default: () => []
|
|
1229
1229
|
}
|
|
1230
|
-
}), dr = /* @__PURE__ */
|
|
1230
|
+
}), dr = /* @__PURE__ */ E({
|
|
1231
1231
|
__name: "lume-overlay-group",
|
|
1232
1232
|
props: {
|
|
1233
1233
|
...ge(),
|
|
@@ -1241,7 +1241,7 @@ const ae = (t, e = !0) => ({
|
|
|
1241
1241
|
const r = t, { data: n, orientation: a, xScale: o, yScale: l } = B(r), i = c(() => Le(n));
|
|
1242
1242
|
function u(s) {
|
|
1243
1243
|
var k;
|
|
1244
|
-
const d = a.value === L.HORIZONTAL ? l.value : o.value, v = d.domain(), f =
|
|
1244
|
+
const d = a.value === L.HORIZONTAL ? l.value : o.value, v = d.domain(), f = Vt(d), h = ((k = d.paddingInner) == null ? void 0 : k.call(d)) ?? 0, _ = f * h, m = te(d) ? d(v[s]) - _ / 2 : d(s) - f / 2;
|
|
1245
1245
|
return a.value === L.HORIZONTAL ? {
|
|
1246
1246
|
width: Math.max(...o.value.range()),
|
|
1247
1247
|
height: f,
|
|
@@ -1362,7 +1362,7 @@ function kr(t) {
|
|
|
1362
1362
|
})
|
|
1363
1363
|
) };
|
|
1364
1364
|
}
|
|
1365
|
-
const Ar = /* @__PURE__ */
|
|
1365
|
+
const Ar = /* @__PURE__ */ E({
|
|
1366
1366
|
__name: "lume-chart",
|
|
1367
1367
|
props: {
|
|
1368
1368
|
...ae(),
|
|
@@ -1372,25 +1372,25 @@ const Ar = /* @__PURE__ */ C({
|
|
|
1372
1372
|
}
|
|
1373
1373
|
},
|
|
1374
1374
|
setup(t, { emit: e }) {
|
|
1375
|
-
const r = t, n =
|
|
1375
|
+
const r = t, n = j(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = B(r), d = $(-1), v = $(null), f = $(null), h = $([]), { allOptions: _ } = z(i), { internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: x } = Se(a, o, l, _, u), { xScale: A, yScale: y } = sr(
|
|
1376
1376
|
m,
|
|
1377
1377
|
k,
|
|
1378
1378
|
p,
|
|
1379
1379
|
u,
|
|
1380
1380
|
_
|
|
1381
|
-
),
|
|
1381
|
+
), N = c(() => {
|
|
1382
1382
|
var b;
|
|
1383
1383
|
return r.xScale ? Me(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, m.value, o.value, p) : A.value;
|
|
1384
1384
|
}), R = c(() => {
|
|
1385
1385
|
var b;
|
|
1386
1386
|
return r.yScale ? Me(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, m.value, o.value, p) : y.value;
|
|
1387
|
-
}),
|
|
1387
|
+
}), P = c(() => ({
|
|
1388
1388
|
..._.value.xAxisOptions,
|
|
1389
1389
|
withHover: u.value === L.VERTICAL
|
|
1390
1390
|
})), G = c(() => ({
|
|
1391
1391
|
..._.value.yAxisOptions,
|
|
1392
1392
|
withHover: u.value === L.HORIZONTAL
|
|
1393
|
-
})),
|
|
1393
|
+
})), V = c(() => {
|
|
1394
1394
|
var b;
|
|
1395
1395
|
return (b = _.value.xAxisOptions) == null ? void 0 : b.title;
|
|
1396
1396
|
}), W = c(() => {
|
|
@@ -1398,29 +1398,29 @@ const Ar = /* @__PURE__ */ C({
|
|
|
1398
1398
|
return (b = _.value.yAxisOptions) == null ? void 0 : b.title;
|
|
1399
1399
|
}), w = c(() => {
|
|
1400
1400
|
var b;
|
|
1401
|
-
return ((b = _.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 &&
|
|
1402
|
-
}),
|
|
1401
|
+
return ((b = _.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && V.value;
|
|
1402
|
+
}), C = c(() => {
|
|
1403
1403
|
var b;
|
|
1404
1404
|
return ((b = _.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && W.value;
|
|
1405
1405
|
}), H = c(
|
|
1406
1406
|
() => a.value.every((b) => !b.values.length)
|
|
1407
1407
|
), g = c(() => {
|
|
1408
|
-
const b = [], { noBaseScales:
|
|
1409
|
-
return
|
|
1410
|
-
}), { hasNegativeValues:
|
|
1408
|
+
const b = [], { noBaseScales: F } = _.value;
|
|
1409
|
+
return F || b.push(() => !!(N.value && R.value)), b.every((K) => K() === !0);
|
|
1410
|
+
}), { hasNegativeValues: O } = mr(m), { negativeBarAttributes: S } = hr(
|
|
1411
1411
|
p,
|
|
1412
|
-
|
|
1412
|
+
N,
|
|
1413
1413
|
R,
|
|
1414
1414
|
u
|
|
1415
1415
|
), { shouldGenerateTooltipAnchors: ce } = ft(
|
|
1416
1416
|
h,
|
|
1417
1417
|
_,
|
|
1418
|
-
|
|
1418
|
+
N,
|
|
1419
1419
|
R,
|
|
1420
1420
|
u,
|
|
1421
1421
|
m,
|
|
1422
1422
|
s
|
|
1423
|
-
), { tooltipConfig: Y, showTooltip: Z, hideTooltip: de } = br(), { getTooltipItems:
|
|
1423
|
+
), { tooltipConfig: Y, showTooltip: Z, hideTooltip: de } = br(), { getTooltipItems: Pe } = kr(m), ve = c(
|
|
1424
1424
|
() => _.value.withTooltip !== !1 && Y.opened
|
|
1425
1425
|
), bt = c(
|
|
1426
1426
|
() => {
|
|
@@ -1429,9 +1429,9 @@ const Ar = /* @__PURE__ */ C({
|
|
|
1429
1429
|
}
|
|
1430
1430
|
);
|
|
1431
1431
|
function ye(b) {
|
|
1432
|
-
var
|
|
1432
|
+
var F;
|
|
1433
1433
|
if (b !== d.value && (_.value.withHover !== !1 && (d.value = b), _.value.withTooltip !== !1)) {
|
|
1434
|
-
const K = (
|
|
1434
|
+
const K = (F = _.value.tooltipOptions) != null && F.targetElement ? _.value.tooltipOptions.targetElement === "self" ? f.value.$el : _.value.tooltipOptions.targetElement : v.value[b];
|
|
1435
1435
|
Z(K);
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
@@ -1445,18 +1445,18 @@ const Ar = /* @__PURE__ */ C({
|
|
|
1445
1445
|
function kt() {
|
|
1446
1446
|
de(), d.value = -1, e("chart-mouseleave");
|
|
1447
1447
|
}
|
|
1448
|
-
function At({ index: b, value:
|
|
1449
|
-
b !== null && ye(b), e("axis-mouseenter", { index: b, value:
|
|
1448
|
+
function At({ index: b, value: F, event: K }) {
|
|
1449
|
+
b !== null && ye(b), e("axis-mouseenter", { index: b, value: F, event: K });
|
|
1450
1450
|
}
|
|
1451
|
-
function Tt({ index: b, value:
|
|
1452
|
-
e("axis-click", { index: b, value:
|
|
1451
|
+
function Tt({ index: b, value: F, event: K }) {
|
|
1452
|
+
e("axis-click", { index: b, value: F, event: K });
|
|
1453
1453
|
}
|
|
1454
1454
|
return D(
|
|
1455
1455
|
a,
|
|
1456
|
-
(b,
|
|
1456
|
+
(b, F) => e("data-changed", { newValue: b, oldValue: F })
|
|
1457
1457
|
), D(
|
|
1458
1458
|
o,
|
|
1459
|
-
(b,
|
|
1459
|
+
(b, F) => e("labels-changed", { newValue: b, oldValue: F })
|
|
1460
1460
|
), D(H, (b) => b && Q(X.Empty), { immediate: !0 }), D(() => r.hoveredIndex, be), D(
|
|
1461
1461
|
h,
|
|
1462
1462
|
(b) => {
|
|
@@ -1465,7 +1465,7 @@ const Ar = /* @__PURE__ */ C({
|
|
|
1465
1465
|
{ flush: "post" }
|
|
1466
1466
|
), U(() => {
|
|
1467
1467
|
e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.');
|
|
1468
|
-
}), ke("chartID",
|
|
1468
|
+
}), ke("chartID", x), ke("isEmpty", H), ke("tooltipAnchorAttributes", h), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: d, tooltipAnchor: v, chartContainer: f, tooltipAnchorAttributes: h, allOptions: _, internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: x, xScale: A, yScale: y, computedXScale: N, computedYScale: R, computedXAxisOptions: P, computedYAxisOptions: G, xAxisTitle: V, yAxisTitle: W, showXAxisTitle: w, showYAxisTitle: C, isEmpty: H, isReady: g, hasNegativeValues: O, negativeBarAttributes: S, shouldGenerateTooltipAnchors: ce, tooltipConfig: Y, showTooltip: Z, hideTooltip: de, getTooltipItems: Pe, isTooltipOpened: ve, tooltipPosition: bt, handleInternalHover: ye, handleExternalHover: be, handleMouseleave: kt, handleAxisMouseenter: At, handleAxisClick: Tt, LumeAxis: fn, LumeBar: Re, LumeChartContainer: On, LumeChartLegend: Nn, LumeTooltip: Jn, LumeOverlayGroup: pr, TOOLTIP_ANCHOR_RADIUS: en };
|
|
1469
1469
|
}
|
|
1470
1470
|
});
|
|
1471
1471
|
var Tr = function() {
|
|
@@ -1485,7 +1485,7 @@ var Tr = function() {
|
|
|
1485
1485
|
} } }) : e._e()];
|
|
1486
1486
|
}, { data: n.internalData })], 2)])];
|
|
1487
1487
|
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
1488
|
-
return [n.showXAxisTitle ? r("h3", { staticClass: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title" }, [e._v(" " + e._s(n.xAxisTitle) + " ")]) : e._e(), n.allOptions.withLegend !== !1 && n.allOptions.legendPosition == "bottom" ? r(n.LumeChartLegend, { staticClass: "lume-chart__legend lume-chart__legend--bottom", attrs: { data: n.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(a) {
|
|
1488
|
+
return [n.showXAxisTitle ? r("h3", { staticClass: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body" }, [e._v(" " + e._s(n.xAxisTitle) + " ")]) : e._e(), n.allOptions.withLegend !== !1 && n.allOptions.legendPosition == "bottom" ? r(n.LumeChartLegend, { staticClass: "lume-chart__legend lume-chart__legend--bottom", attrs: { data: n.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(a) {
|
|
1489
1489
|
return n.emit("legend-click", a);
|
|
1490
1490
|
}, mouseenter: function(a) {
|
|
1491
1491
|
return n.emit("legend-mouseenter", a);
|
|
@@ -1517,43 +1517,57 @@ var Tr = function() {
|
|
|
1517
1517
|
}, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(a, o) {
|
|
1518
1518
|
return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
|
|
1519
1519
|
}), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
|
|
1520
|
-
}, Lr = [],
|
|
1520
|
+
}, Lr = [], xr = /* @__PURE__ */ I(
|
|
1521
1521
|
Ar,
|
|
1522
1522
|
Tr,
|
|
1523
1523
|
Lr,
|
|
1524
1524
|
!1,
|
|
1525
1525
|
null,
|
|
1526
|
-
"
|
|
1526
|
+
"51fc5eef",
|
|
1527
1527
|
null,
|
|
1528
1528
|
null
|
|
1529
1529
|
);
|
|
1530
|
-
const oe =
|
|
1531
|
-
|
|
1530
|
+
const oe = xr.exports, Or = /* @__PURE__ */ E({
|
|
1531
|
+
__name: "lume-alluvial-node-label",
|
|
1532
|
+
props: {
|
|
1533
|
+
bottom: { type: Boolean, default: !1 }
|
|
1534
|
+
},
|
|
1535
|
+
setup(t) {
|
|
1536
|
+
return { __sfc: !0 };
|
|
1537
|
+
}
|
|
1538
|
+
});
|
|
1532
1539
|
var $r = function() {
|
|
1533
1540
|
var e = this, r = e._self._c;
|
|
1534
|
-
return r("
|
|
1541
|
+
return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
|
|
1535
1542
|
}, Ir = [], wr = /* @__PURE__ */ I(
|
|
1536
|
-
|
|
1543
|
+
Or,
|
|
1537
1544
|
$r,
|
|
1538
1545
|
Ir,
|
|
1539
1546
|
!1,
|
|
1540
1547
|
null,
|
|
1541
|
-
"
|
|
1548
|
+
"d2a7cb8e",
|
|
1542
1549
|
null,
|
|
1543
1550
|
null
|
|
1544
1551
|
);
|
|
1545
|
-
const Er = wr.exports
|
|
1546
|
-
|
|
1552
|
+
const Er = wr.exports, Nr = /* @__PURE__ */ E({
|
|
1553
|
+
__name: "lume-alluvial-node-value",
|
|
1554
|
+
props: {
|
|
1555
|
+
bottom: { type: Boolean, default: !0 }
|
|
1556
|
+
},
|
|
1557
|
+
setup(t) {
|
|
1558
|
+
return { __sfc: !0 };
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1547
1561
|
var Cr = function() {
|
|
1548
1562
|
var e = this, r = e._self._c;
|
|
1549
|
-
return r("
|
|
1563
|
+
return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
|
|
1550
1564
|
}, Dr = [], Rr = /* @__PURE__ */ I(
|
|
1551
1565
|
Nr,
|
|
1552
1566
|
Cr,
|
|
1553
1567
|
Dr,
|
|
1554
1568
|
!1,
|
|
1555
1569
|
null,
|
|
1556
|
-
"
|
|
1570
|
+
"002e2887",
|
|
1557
1571
|
null,
|
|
1558
1572
|
null
|
|
1559
1573
|
);
|
|
@@ -1575,17 +1589,17 @@ function Sr(t) {
|
|
|
1575
1589
|
}
|
|
1576
1590
|
var pt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(pt || {});
|
|
1577
1591
|
const Br = "[lume] ";
|
|
1578
|
-
function
|
|
1592
|
+
function Pr(t, e, r = !0) {
|
|
1579
1593
|
r && nt() || console.error(Br + "Error: " + t, e);
|
|
1580
1594
|
}
|
|
1581
|
-
const Xe = 8,
|
|
1595
|
+
const Xe = 8, Fr = 8, Gr = 20, Vr = 200;
|
|
1582
1596
|
function re(t) {
|
|
1583
1597
|
return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
|
|
1584
1598
|
}
|
|
1585
1599
|
function ee(t) {
|
|
1586
1600
|
return t.source.id + ":" + t.target.id;
|
|
1587
1601
|
}
|
|
1588
|
-
function
|
|
1602
|
+
function jr(t, e) {
|
|
1589
1603
|
return e.nodes.find((r) => r.id === t);
|
|
1590
1604
|
}
|
|
1591
1605
|
function Mr(t, e) {
|
|
@@ -1631,7 +1645,7 @@ function Xr(t) {
|
|
|
1631
1645
|
return [t.target.x0, t.y1];
|
|
1632
1646
|
}
|
|
1633
1647
|
function Ur(t) {
|
|
1634
|
-
return t.curveFunction ?
|
|
1648
|
+
return t.curveFunction ? Ot(t.curveFunction).source(Zr).target(Xr) : Et();
|
|
1635
1649
|
}
|
|
1636
1650
|
function Yr(t) {
|
|
1637
1651
|
return t.map((e) => {
|
|
@@ -1654,7 +1668,7 @@ function Ue(t, e, r, n, a) {
|
|
|
1654
1668
|
return;
|
|
1655
1669
|
}
|
|
1656
1670
|
const o = Date.now(), l = Wt(e, r), i = () => {
|
|
1657
|
-
let s = (Date.now() - o) /
|
|
1671
|
+
let s = (Date.now() - o) / Vr;
|
|
1658
1672
|
s > 1 && (s = 1), t.node = {
|
|
1659
1673
|
...t.node,
|
|
1660
1674
|
transitionValue: a && s === 1 ? void 0 : l(s)
|
|
@@ -1703,7 +1717,7 @@ function Jr(t, e, r) {
|
|
|
1703
1717
|
[s, d]
|
|
1704
1718
|
])({ nodes: a.value, links: o.value });
|
|
1705
1719
|
} catch (i) {
|
|
1706
|
-
|
|
1720
|
+
Pr(pt.GraphProblem, i), n.value = Kr;
|
|
1707
1721
|
}
|
|
1708
1722
|
}), { graph: n };
|
|
1709
1723
|
}
|
|
@@ -1781,7 +1795,7 @@ function ta(t, e, r) {
|
|
|
1781
1795
|
});
|
|
1782
1796
|
}), { highlightedElements: a, hoveredElement: n };
|
|
1783
1797
|
}
|
|
1784
|
-
const na = /* @__PURE__ */
|
|
1798
|
+
const na = /* @__PURE__ */ E({
|
|
1785
1799
|
__name: "lume-alluvial-group",
|
|
1786
1800
|
props: {
|
|
1787
1801
|
...ge(),
|
|
@@ -1799,31 +1813,31 @@ const na = /* @__PURE__ */ C({
|
|
|
1799
1813
|
), _ = c(() => fe(o.value.valueFormat)), m = c(
|
|
1800
1814
|
() => Object.keys(h.value.nodes)
|
|
1801
1815
|
), k = c(
|
|
1802
|
-
() => l.value.reduce((g,
|
|
1803
|
-
const S =
|
|
1816
|
+
() => l.value.reduce((g, O) => {
|
|
1817
|
+
const S = O.x + o.value.nodeWidth / 2;
|
|
1804
1818
|
return g.includes(S) ? g : [...g, S];
|
|
1805
|
-
}, []).sort((g,
|
|
1819
|
+
}, []).sort((g, O) => g - O)
|
|
1806
1820
|
// Make sure positions are sorted in ascending order
|
|
1807
1821
|
), p = c(() => {
|
|
1808
1822
|
if (!(!o.value.nodeHeaders || !o.value.nodeHeaders.length))
|
|
1809
|
-
return o.value.nodeHeaders.slice(0, k.value.length).map((g,
|
|
1823
|
+
return o.value.nodeHeaders.slice(0, k.value.length).map((g, O) => ({
|
|
1810
1824
|
label: g,
|
|
1811
|
-
x: k.value[
|
|
1825
|
+
x: k.value[O]
|
|
1812
1826
|
}));
|
|
1813
1827
|
}), T = c(
|
|
1814
1828
|
() => o.value.nodeHeaderPadding ?? Gr
|
|
1815
|
-
),
|
|
1829
|
+
), x = c(() => {
|
|
1816
1830
|
if (!(!o.value.gradient || !v.value))
|
|
1817
|
-
return v.value.links.reduce((g,
|
|
1818
|
-
source:
|
|
1819
|
-
target:
|
|
1820
|
-
x1:
|
|
1821
|
-
x2:
|
|
1831
|
+
return v.value.links.reduce((g, O) => (g[ee(O)] = {
|
|
1832
|
+
source: O.source.color || O.source.fallbackColor,
|
|
1833
|
+
target: O.target.color || O.target.fallbackColor,
|
|
1834
|
+
x1: O.source.x1,
|
|
1835
|
+
x2: O.target.x0
|
|
1822
1836
|
}, g), {});
|
|
1823
1837
|
}), A = c(() => {
|
|
1824
1838
|
const g = l.value.filter(
|
|
1825
|
-
(S) =>
|
|
1826
|
-
),
|
|
1839
|
+
(S) => V(S)
|
|
1840
|
+
), O = [];
|
|
1827
1841
|
return g.forEach((S) => {
|
|
1828
1842
|
const ce = [];
|
|
1829
1843
|
i.value.filter(({ link: Y }) => Y.target.id === S.node.id).reverse().reduce((Y, Z) => {
|
|
@@ -1836,61 +1850,61 @@ const na = /* @__PURE__ */ C({
|
|
|
1836
1850
|
key: `node-block-${S.node.id}-source-link-${Z.link.source.id}`,
|
|
1837
1851
|
class: `lume-alluvial-group__node-block lume-fill--${Z.link.source.color || se}`
|
|
1838
1852
|
}), Y + ve;
|
|
1839
|
-
}, 0),
|
|
1853
|
+
}, 0), O.push({
|
|
1840
1854
|
id: S.node.id,
|
|
1841
1855
|
subNodes: ce
|
|
1842
1856
|
});
|
|
1843
|
-
}),
|
|
1857
|
+
}), O;
|
|
1844
1858
|
});
|
|
1845
1859
|
function y(g) {
|
|
1846
1860
|
return o.value.gradient && `url('#${n}_${ee(g)}')`;
|
|
1847
1861
|
}
|
|
1848
|
-
function
|
|
1862
|
+
function N(g) {
|
|
1849
1863
|
return m.value.length > 0 && !m.value.includes(g.toString());
|
|
1850
1864
|
}
|
|
1851
1865
|
function R(g) {
|
|
1852
1866
|
return m.value.length > 0 && m.value.includes(g.toString());
|
|
1853
1867
|
}
|
|
1854
|
-
function
|
|
1868
|
+
function P(g) {
|
|
1855
1869
|
return h.value.links.length > 0 && !h.value.links.includes(g);
|
|
1856
1870
|
}
|
|
1857
1871
|
function G(g) {
|
|
1858
1872
|
return h.value.links.length > 0 && h.value.links.includes(g);
|
|
1859
1873
|
}
|
|
1860
|
-
function
|
|
1874
|
+
function V(g) {
|
|
1861
1875
|
return !g.node.color && g.node.deriveColorFromIncomingLinks;
|
|
1862
1876
|
}
|
|
1863
|
-
function W(g,
|
|
1864
|
-
g !== f.value && (f.value = g, e("link-mouseenter", { link: g, event:
|
|
1877
|
+
function W(g, O) {
|
|
1878
|
+
g !== f.value && (f.value = g, e("link-mouseenter", { link: g, event: O }));
|
|
1865
1879
|
}
|
|
1866
1880
|
function w(g) {
|
|
1867
|
-
const
|
|
1868
|
-
f.value = null, e("link-mouseleave", { link:
|
|
1881
|
+
const O = f.value;
|
|
1882
|
+
f.value = null, e("link-mouseleave", { link: O, event: g });
|
|
1869
1883
|
}
|
|
1870
|
-
function
|
|
1884
|
+
function C(g) {
|
|
1871
1885
|
if (g == null) {
|
|
1872
1886
|
f.value = null;
|
|
1873
1887
|
return;
|
|
1874
1888
|
}
|
|
1875
|
-
const
|
|
1876
|
-
if (!
|
|
1889
|
+
const O = jr(g, v.value) || Mr(g, v.value);
|
|
1890
|
+
if (!O) {
|
|
1877
1891
|
Q(X.InvalidHoveredElement);
|
|
1878
1892
|
return;
|
|
1879
1893
|
}
|
|
1880
|
-
f.value =
|
|
1894
|
+
f.value = O;
|
|
1881
1895
|
}
|
|
1882
1896
|
function H(g) {
|
|
1883
|
-
var
|
|
1884
|
-
return ((
|
|
1897
|
+
var O;
|
|
1898
|
+
return ((O = A.value.find(({ id: S }) => g === S)) == null ? void 0 : O.subNodes) ?? [];
|
|
1885
1899
|
}
|
|
1886
1900
|
return D(v, (g) => {
|
|
1887
|
-
l.value = Wr(g.nodes), i.value = Yr(g.links).reverse(), f.value == null && r.hoveredElementId != null &&
|
|
1901
|
+
l.value = Wr(g.nodes), i.value = Yr(g.links).reverse(), f.value == null && r.hoveredElementId != null && C(r.hoveredElementId);
|
|
1888
1902
|
}), D([r.containerSize, u], () => {
|
|
1889
1903
|
if (r.containerSize.width && r.containerSize.height) {
|
|
1890
1904
|
const g = zr(v.value, u.value);
|
|
1891
1905
|
d(g);
|
|
1892
1906
|
}
|
|
1893
|
-
}), D(() => r.hoveredElementId,
|
|
1907
|
+
}), D(() => r.hoveredElementId, C), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: d, graph: v, hoveredElement: f, highlightedElements: h, formatValue: _, hoveredNodeIds: m, nodeColumnPositions: k, nodeHeaders: p, computedNodeHeaderPadding: T, gradients: x, nodesDerivingColorFromIncomingLinks: A, getLinkStroke: y, isNodeFaded: N, isNodeFocused: R, isLinkFaded: P, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: V, handleLinkMouseover: W, handleLinkMouseleave: w, handleExternalHover: C, getSubNodesDerivingColorFromIncomingLinks: H, LumeAlluvialNodeLabel: Er, LumeAlluvialNodeValue: Hr, GHOST_STROKE_WIDTH_OFFSET: Fr };
|
|
1894
1908
|
}
|
|
1895
1909
|
});
|
|
1896
1910
|
var ra = function() {
|
|
@@ -1936,11 +1950,14 @@ var ra = function() {
|
|
|
1936
1950
|
a.node.id
|
|
1937
1951
|
), function(l) {
|
|
1938
1952
|
return r("rect", e._b({ key: l.key, attrs: { "data-j-alluvial-sub-nodes": "" } }, "rect", l, !1));
|
|
1939
|
-
}) : r("rect", { staticClass: "lume-alluvial-group__node-block", class: `lume-fill--${a.node.color || a.node.fallbackColor}`, attrs: { x: a.x, y: a.y, height: a.height, width: a.width } }), r("
|
|
1953
|
+
}) : r("rect", { staticClass: "lume-alluvial-group__node-block", class: `lume-fill--${a.node.color || a.node.fallbackColor}`, attrs: { x: a.x, y: a.y, height: a.height, width: a.width } }), r("g", { ref: "nodeTextRefs", refInFor: !0, staticClass: "lume-alluvial-group__node-text lume-typography--caption", class: {
|
|
1940
1954
|
"lume-alluvial-group__node-text--left": a.node.depth === 0
|
|
1941
1955
|
}, attrs: { transform: `translate(${a.textTransform.x},${a.textTransform.y})`, "data-id": a.node.id } }, [e._t(`node-text-${a.node.id}`, function() {
|
|
1942
|
-
return [r(n.LumeAlluvialNodeLabel, [e._v(" " + e._s(a.node.label) + " ")]), r(n.LumeAlluvialNodeValue, [e._v(" " + e._s(n.formatValue(a.node.transitionValue || a.node.value, a.node.value)) + " ")])];
|
|
1943
|
-
}, { node: a.node
|
|
1956
|
+
return [r(n.LumeAlluvialNodeLabel, { attrs: { bottom: n.options.switchText } }, [e._v(" " + e._s(a.node.label) + " ")]), r(n.LumeAlluvialNodeValue, { attrs: { bottom: !n.options.switchText } }, [e._v(" " + e._s(n.formatValue(a.node.transitionValue || a.node.value, a.node.value)) + " ")])];
|
|
1957
|
+
}, { node: a.node, value: n.formatValue(
|
|
1958
|
+
a.node.transitionValue || a.node.value,
|
|
1959
|
+
a.node.value
|
|
1960
|
+
) })], 2)], 2)]);
|
|
1944
1961
|
})], 2);
|
|
1945
1962
|
}, aa = [], oa = /* @__PURE__ */ I(
|
|
1946
1963
|
na,
|
|
@@ -1948,7 +1965,7 @@ var ra = function() {
|
|
|
1948
1965
|
aa,
|
|
1949
1966
|
!1,
|
|
1950
1967
|
null,
|
|
1951
|
-
"
|
|
1968
|
+
"bda77c32",
|
|
1952
1969
|
null,
|
|
1953
1970
|
null
|
|
1954
1971
|
);
|
|
@@ -1970,13 +1987,13 @@ const la = oa.exports, ua = {
|
|
|
1970
1987
|
nodeWidth: 16,
|
|
1971
1988
|
nodeAlign: Ct,
|
|
1972
1989
|
valueFormat: (t) => String(t)
|
|
1973
|
-
}, ia = /* @__PURE__ */
|
|
1990
|
+
}, ia = /* @__PURE__ */ E({
|
|
1974
1991
|
__name: "lume-alluvial-diagram",
|
|
1975
1992
|
props: {
|
|
1976
1993
|
...cr(Ne)
|
|
1977
1994
|
},
|
|
1978
1995
|
setup(t) {
|
|
1979
|
-
const e = t, r = ne(
|
|
1996
|
+
const e = t, r = ne(j()), n = Xt(j()), { options: a } = B(e), { allOptions: o } = z(a, ua);
|
|
1980
1997
|
function l(i) {
|
|
1981
1998
|
return {
|
|
1982
1999
|
...i,
|
|
@@ -2012,7 +2029,7 @@ var sa = function() {
|
|
|
2012
2029
|
);
|
|
2013
2030
|
const To = da.exports;
|
|
2014
2031
|
var Ee = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Ee || {});
|
|
2015
|
-
const va = /* @__PURE__ */
|
|
2032
|
+
const va = /* @__PURE__ */ E({
|
|
2016
2033
|
__name: "lume-bar-chart",
|
|
2017
2034
|
props: {
|
|
2018
2035
|
...ae(),
|
|
@@ -2033,7 +2050,7 @@ const va = /* @__PURE__ */ C({
|
|
|
2033
2050
|
["single", r],
|
|
2034
2051
|
["grouped", n],
|
|
2035
2052
|
["stacked", a]
|
|
2036
|
-
]), l = ne(
|
|
2053
|
+
]), l = ne(j());
|
|
2037
2054
|
function i(s) {
|
|
2038
2055
|
return {
|
|
2039
2056
|
...s,
|
|
@@ -2138,12 +2155,12 @@ function ka(t, e, r, n, a, o) {
|
|
|
2138
2155
|
return l.value ? r.value.bandwidth() : v < 0 ? r.value(v) - r.value(0) : r.value(0) - r.value(v);
|
|
2139
2156
|
}
|
|
2140
2157
|
function d(v, f, h) {
|
|
2141
|
-
const { value: _, color: m } = v, k = m ?? t.value[f].color ?? se, { x: p, y: T } = i(_, h),
|
|
2158
|
+
const { value: _, color: m } = v, k = m ?? t.value[f].color ?? se, { x: p, y: T } = i(_, h), x = u(_), A = s(_);
|
|
2142
2159
|
return {
|
|
2143
2160
|
classList: [`lume-fill--${k}`, ...o],
|
|
2144
2161
|
x: p,
|
|
2145
2162
|
y: T,
|
|
2146
|
-
width:
|
|
2163
|
+
width: x,
|
|
2147
2164
|
height: A,
|
|
2148
2165
|
isFaded: a.value !== -1 && a.value !== h,
|
|
2149
2166
|
isNegative: _ < 0
|
|
@@ -2175,12 +2192,12 @@ function Aa(t, e, r, n, a, o) {
|
|
|
2175
2192
|
return l.value ? u.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
|
|
2176
2193
|
}
|
|
2177
2194
|
function h(_, m, k) {
|
|
2178
|
-
const { value: p, color: T } = _,
|
|
2195
|
+
const { value: p, color: T } = _, x = T ?? t.value[m].color ?? Object.values(M)[m], A = s(p, k, m), y = d(p, k, m), N = v(p), R = f(p);
|
|
2179
2196
|
return {
|
|
2180
|
-
classList: [`lume-fill--${
|
|
2197
|
+
classList: [`lume-fill--${x}`, ...o],
|
|
2181
2198
|
x: A,
|
|
2182
2199
|
y,
|
|
2183
|
-
width:
|
|
2200
|
+
width: N,
|
|
2184
2201
|
height: R,
|
|
2185
2202
|
isFaded: a.value !== -1 && a.value !== k,
|
|
2186
2203
|
isNegative: p < 0
|
|
@@ -2231,9 +2248,9 @@ function La(t, e, r, n, a, o) {
|
|
|
2231
2248
|
), u = c(
|
|
2232
2249
|
() => t.value.map((p) => p.values.map((T) => T == null ? void 0 : T.value))
|
|
2233
2250
|
);
|
|
2234
|
-
function s(p, T,
|
|
2251
|
+
function s(p, T, x) {
|
|
2235
2252
|
let A, y;
|
|
2236
|
-
return l.value ? (A = e.value(p >= 0 ? 0 +
|
|
2253
|
+
return l.value ? (A = e.value(p >= 0 ? 0 + x : p + x), y = r.value(i.value[T])) : (A = e.value(i.value[T]), y = r.value(p >= 0 ? p + x : 0 + x)), { x: A, y };
|
|
2237
2254
|
}
|
|
2238
2255
|
function d(p) {
|
|
2239
2256
|
return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
|
|
@@ -2248,20 +2265,20 @@ function La(t, e, r, n, a, o) {
|
|
|
2248
2265
|
return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
|
|
2249
2266
|
}
|
|
2250
2267
|
function _(p, T) {
|
|
2251
|
-
return p ? u.value.reduce((
|
|
2268
|
+
return p ? u.value.reduce((x, A, y) => (y < p && A[T] >= 0 && (x += A[T]), x), 0) : 0;
|
|
2252
2269
|
}
|
|
2253
2270
|
function m(p, T) {
|
|
2254
|
-
return p ? u.value.reduce((
|
|
2271
|
+
return p ? u.value.reduce((x, A, y) => (y < p && A[T] < 0 && (x += A[T]), x), 0) : 0;
|
|
2255
2272
|
}
|
|
2256
|
-
function k(p, T,
|
|
2257
|
-
const { value: A, color: y } = p,
|
|
2273
|
+
function k(p, T, x) {
|
|
2274
|
+
const { value: A, color: y } = p, N = A >= 0 ? d(A) : v(A), R = A >= 0 ? f(A) : h(A), P = A >= 0 ? _(T, x) : m(T, x), { x: G, y: V } = s(A, x, P);
|
|
2258
2275
|
return {
|
|
2259
2276
|
classList: [`lume-fill--${y ?? t.value[T].color ?? Object.values(M)[T]}`, ...o],
|
|
2260
|
-
width:
|
|
2277
|
+
width: N,
|
|
2261
2278
|
height: R,
|
|
2262
2279
|
x: G,
|
|
2263
|
-
y:
|
|
2264
|
-
isFaded: a.value !== -1 && a.value !==
|
|
2280
|
+
y: V,
|
|
2281
|
+
isFaded: a.value !== -1 && a.value !== x,
|
|
2265
2282
|
isNegative: A < 0
|
|
2266
2283
|
};
|
|
2267
2284
|
}
|
|
@@ -2271,7 +2288,7 @@ const Ye = {
|
|
|
2271
2288
|
single: ka,
|
|
2272
2289
|
grouped: Aa,
|
|
2273
2290
|
stacked: La
|
|
2274
|
-
},
|
|
2291
|
+
}, xa = /* @__PURE__ */ E({
|
|
2275
2292
|
__name: "lume-bar-group",
|
|
2276
2293
|
props: {
|
|
2277
2294
|
...ge(),
|
|
@@ -2313,7 +2330,7 @@ const Ye = {
|
|
|
2313
2330
|
return { __sfc: !0, MIXIN_MAP: Ye, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: s, classList: d, groupedData: v, barXScale: f, barYScale: h, computedClasses: _, getBarAttributes: m, computedTransition: k, LumeBar: Re };
|
|
2314
2331
|
}
|
|
2315
2332
|
});
|
|
2316
|
-
var
|
|
2333
|
+
var Oa = function() {
|
|
2317
2334
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2318
2335
|
return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
|
|
2319
2336
|
return r("g", { key: o, on: { mouseenter: function(l) {
|
|
@@ -2329,8 +2346,8 @@ var xa = function() {
|
|
|
2329
2346
|
}), 1);
|
|
2330
2347
|
}), 0);
|
|
2331
2348
|
}, $a = [], Ia = /* @__PURE__ */ I(
|
|
2332
|
-
Oa,
|
|
2333
2349
|
xa,
|
|
2350
|
+
Oa,
|
|
2334
2351
|
$a,
|
|
2335
2352
|
!1,
|
|
2336
2353
|
null,
|
|
@@ -2351,13 +2368,13 @@ const Be = Ia.exports, wa = {
|
|
|
2351
2368
|
yAxisOptions: { gridLines: !1 },
|
|
2352
2369
|
margins: q.HORIZONTAL
|
|
2353
2370
|
}
|
|
2354
|
-
}, Ea = /* @__PURE__ */
|
|
2371
|
+
}, Ea = /* @__PURE__ */ E({
|
|
2355
2372
|
__name: "lume-single-bar-chart",
|
|
2356
2373
|
props: {
|
|
2357
2374
|
...ae(Ne)
|
|
2358
2375
|
},
|
|
2359
2376
|
setup(t) {
|
|
2360
|
-
const e = t, r = ne(
|
|
2377
|
+
const e = t, r = ne(j()), { orientation: n, options: a } = B(e), o = c(
|
|
2361
2378
|
() => wa[n.value || L.VERTICAL]
|
|
2362
2379
|
// needs to be computed so that default options are reactive
|
|
2363
2380
|
), { allOptions: l } = z(a, o);
|
|
@@ -2383,7 +2400,7 @@ var Na = function() {
|
|
|
2383
2400
|
null,
|
|
2384
2401
|
null
|
|
2385
2402
|
);
|
|
2386
|
-
const
|
|
2403
|
+
const xo = Da.exports, Ra = {
|
|
2387
2404
|
[L.VERTICAL]: {
|
|
2388
2405
|
withTooltip: !0,
|
|
2389
2406
|
xAxisOptions: {},
|
|
@@ -2397,13 +2414,13 @@ const Oo = Da.exports, Ra = {
|
|
|
2397
2414
|
margins: q.HORIZONTAL,
|
|
2398
2415
|
tooltipOptions: { position: "right" }
|
|
2399
2416
|
}
|
|
2400
|
-
}, Ha = /* @__PURE__ */
|
|
2417
|
+
}, Ha = /* @__PURE__ */ E({
|
|
2401
2418
|
__name: "lume-grouped-bar-chart",
|
|
2402
2419
|
props: {
|
|
2403
2420
|
...ae()
|
|
2404
2421
|
},
|
|
2405
2422
|
setup(t) {
|
|
2406
|
-
const e = t, r = ne(
|
|
2423
|
+
const e = t, r = ne(j()), { orientation: n, options: a } = B(e), o = c(
|
|
2407
2424
|
() => Ra[n.value || L.VERTICAL]
|
|
2408
2425
|
// needs to be computed so that default options are reactive
|
|
2409
2426
|
), { allOptions: l } = z(
|
|
@@ -2422,7 +2439,7 @@ var Sa = function() {
|
|
|
2422
2439
|
return [e._t(o, null, null, l || {})];
|
|
2423
2440
|
} };
|
|
2424
2441
|
})], null, !0) }, "lume-chart", n.props, !1));
|
|
2425
|
-
}, Ba = [],
|
|
2442
|
+
}, Ba = [], Pa = /* @__PURE__ */ I(
|
|
2426
2443
|
Ha,
|
|
2427
2444
|
Sa,
|
|
2428
2445
|
Ba,
|
|
@@ -2432,7 +2449,7 @@ var Sa = function() {
|
|
|
2432
2449
|
null,
|
|
2433
2450
|
null
|
|
2434
2451
|
);
|
|
2435
|
-
const
|
|
2452
|
+
const Oo = Pa.exports, Fa = {
|
|
2436
2453
|
[L.VERTICAL]: {
|
|
2437
2454
|
withTooltip: !0,
|
|
2438
2455
|
xAxisOptions: {},
|
|
@@ -2446,14 +2463,14 @@ const xo = Fa.exports, Pa = {
|
|
|
2446
2463
|
margins: q.HORIZONTAL,
|
|
2447
2464
|
tooltipOptions: { position: "right" }
|
|
2448
2465
|
}
|
|
2449
|
-
}, Ga = /* @__PURE__ */
|
|
2466
|
+
}, Ga = /* @__PURE__ */ E({
|
|
2450
2467
|
__name: "lume-stacked-bar-chart",
|
|
2451
2468
|
props: {
|
|
2452
2469
|
...ae()
|
|
2453
2470
|
},
|
|
2454
2471
|
setup(t) {
|
|
2455
|
-
const e = t, r = ne(
|
|
2456
|
-
() =>
|
|
2472
|
+
const e = t, r = ne(j()), { data: n, orientation: a, options: o } = B(e), l = c(
|
|
2473
|
+
() => Fa[a.value || L.VERTICAL]
|
|
2457
2474
|
// needs to be computed so that default options are reactive
|
|
2458
2475
|
), { allOptions: i } = z(
|
|
2459
2476
|
o,
|
|
@@ -2465,7 +2482,7 @@ const xo = Fa.exports, Pa = {
|
|
|
2465
2482
|
return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: l, allOptions: i, internalData: u, groupedData: s, stackedXScaleGenerator: d, stackedYScaleGenerator: v, LumeChart: oe, LumeBarGroup: Be };
|
|
2466
2483
|
}
|
|
2467
2484
|
});
|
|
2468
|
-
var
|
|
2485
|
+
var Va = function() {
|
|
2469
2486
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2470
2487
|
return r(n.LumeChart, e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.stackedXScaleGenerator, "y-scale": n.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2471
2488
|
return [r(n.LumeBarGroup, e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1))];
|
|
@@ -2474,17 +2491,17 @@ var ja = function() {
|
|
|
2474
2491
|
return [e._t(o, null, null, l || {})];
|
|
2475
2492
|
} };
|
|
2476
2493
|
})], null, !0) }, "lume-chart", n.props, !1));
|
|
2477
|
-
},
|
|
2494
|
+
}, ja = [], Ma = /* @__PURE__ */ I(
|
|
2478
2495
|
Ga,
|
|
2479
|
-
ja,
|
|
2480
2496
|
Va,
|
|
2497
|
+
ja,
|
|
2481
2498
|
!1,
|
|
2482
2499
|
null,
|
|
2483
2500
|
null,
|
|
2484
2501
|
null,
|
|
2485
2502
|
null
|
|
2486
2503
|
);
|
|
2487
|
-
const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */
|
|
2504
|
+
const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */ E({
|
|
2488
2505
|
__name: "lume-line",
|
|
2489
2506
|
props: {
|
|
2490
2507
|
pathDefinition: {
|
|
@@ -2544,7 +2561,7 @@ var Wa = function() {
|
|
|
2544
2561
|
null,
|
|
2545
2562
|
null
|
|
2546
2563
|
);
|
|
2547
|
-
const Ua = Xa.exports, Je = 4, Ya = /* @__PURE__ */
|
|
2564
|
+
const Ua = Xa.exports, Je = 4, Ya = /* @__PURE__ */ E({
|
|
2548
2565
|
__name: "lume-point",
|
|
2549
2566
|
props: {
|
|
2550
2567
|
x: { type: Number, required: !0 },
|
|
@@ -2640,7 +2657,7 @@ function no(t, e, r, n) {
|
|
|
2640
2657
|
te(r) ? eo(r, t) : to(r, t)
|
|
2641
2658
|
).y((o) => n(o))(e);
|
|
2642
2659
|
}
|
|
2643
|
-
const Qe = 1, ro = /* @__PURE__ */
|
|
2660
|
+
const Qe = 1, ro = /* @__PURE__ */ E({
|
|
2644
2661
|
__name: "lume-line-group",
|
|
2645
2662
|
props: {
|
|
2646
2663
|
...ge(),
|
|
@@ -2664,7 +2681,7 @@ const Qe = 1, ro = /* @__PURE__ */ C({
|
|
|
2664
2681
|
o,
|
|
2665
2682
|
l
|
|
2666
2683
|
), s = c(() => {
|
|
2667
|
-
if (n.value.every((
|
|
2684
|
+
if (n.value.every((N) => N.isDashed))
|
|
2668
2685
|
return n.value;
|
|
2669
2686
|
const { computedLineData: y } = gt(n);
|
|
2670
2687
|
return a.value.withTooltip !== !1 && (i != null && i.value) && u(y.value), y.value;
|
|
@@ -2697,11 +2714,11 @@ const Qe = 1, ro = /* @__PURE__ */ C({
|
|
|
2697
2714
|
function k(y) {
|
|
2698
2715
|
return s.value[y].values;
|
|
2699
2716
|
}
|
|
2700
|
-
function p(y,
|
|
2701
|
-
var
|
|
2717
|
+
function p(y, N) {
|
|
2718
|
+
var P, G;
|
|
2702
2719
|
const R = y === 0 ? [] : [
|
|
2703
|
-
(
|
|
2704
|
-
(G = k(
|
|
2720
|
+
(P = k(N)[y - 1]) == null ? void 0 : P.value,
|
|
2721
|
+
(G = k(N)[y]) == null ? void 0 : G.value
|
|
2705
2722
|
];
|
|
2706
2723
|
return no(
|
|
2707
2724
|
y,
|
|
@@ -2716,9 +2733,9 @@ const Qe = 1, ro = /* @__PURE__ */ C({
|
|
|
2716
2733
|
animationDuration: v.value
|
|
2717
2734
|
};
|
|
2718
2735
|
}
|
|
2719
|
-
function
|
|
2720
|
-
var
|
|
2721
|
-
const R = (
|
|
2736
|
+
function x(y, N) {
|
|
2737
|
+
var P;
|
|
2738
|
+
const R = (P = k(N)[y]) == null ? void 0 : P.value;
|
|
2722
2739
|
return {
|
|
2723
2740
|
x: te(o.value) ? r.xScale(_.value[y]) + h.value : r.xScale(y),
|
|
2724
2741
|
y: l.value(R)
|
|
@@ -2727,7 +2744,7 @@ const Qe = 1, ro = /* @__PURE__ */ C({
|
|
|
2727
2744
|
function A(y) {
|
|
2728
2745
|
return r.hoveredIndex === y;
|
|
2729
2746
|
}
|
|
2730
|
-
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Qe, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: d, animationDuration: v, pointRadius: f, xAxisOffset: h, domain: _, computedWithPoints: m, getValuesFromDataset: k, getPathDefinition: p, getLineTransitionParams: T, getPointPosition:
|
|
2747
|
+
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Qe, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: d, animationDuration: v, pointRadius: f, xAxisOffset: h, domain: _, computedWithPoints: m, getValuesFromDataset: k, getPathDefinition: p, getLineTransitionParams: T, getPointPosition: x, isPointActive: A, LumeLine: Ua, LumePoint: qa };
|
|
2731
2748
|
}
|
|
2732
2749
|
});
|
|
2733
2750
|
var ao = function() {
|
|
@@ -2759,13 +2776,13 @@ const yt = lo.exports, uo = {
|
|
|
2759
2776
|
withTooltip: !0,
|
|
2760
2777
|
xAxisOptions: {},
|
|
2761
2778
|
yAxisOptions: { gridLines: !0 }
|
|
2762
|
-
}, io = /* @__PURE__ */
|
|
2779
|
+
}, io = /* @__PURE__ */ E({
|
|
2763
2780
|
__name: "lume-line-chart",
|
|
2764
2781
|
props: {
|
|
2765
2782
|
...ae(null, !1)
|
|
2766
2783
|
},
|
|
2767
2784
|
setup(t) {
|
|
2768
|
-
const e = t, r = ne(
|
|
2785
|
+
const e = t, r = ne(j()), { options: n } = B(e), { allOptions: a } = z(n, uo);
|
|
2769
2786
|
return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: oe, LumeLineGroup: yt };
|
|
2770
2787
|
}
|
|
2771
2788
|
});
|
|
@@ -2813,14 +2830,14 @@ const fo = {
|
|
|
2813
2830
|
tooltipOptions: {
|
|
2814
2831
|
showTitle: !1
|
|
2815
2832
|
}
|
|
2816
|
-
}, po = /* @__PURE__ */
|
|
2833
|
+
}, po = /* @__PURE__ */ E({
|
|
2817
2834
|
__name: "lume-sparkline-chart",
|
|
2818
2835
|
props: {
|
|
2819
2836
|
...He(null),
|
|
2820
2837
|
...ie()
|
|
2821
2838
|
},
|
|
2822
2839
|
setup(t, { expose: e }) {
|
|
2823
|
-
const r = t, n = ne(
|
|
2840
|
+
const r = t, n = ne(j()), { data: a, options: o } = B(r), { internalData: l } = Se(a), { allOptions: i } = z(o, fo), { computedLineData: u } = gt(l), { areaPathDefinition: s } = _o(u), d = c(() => l.value[0].color), v = c(
|
|
2824
2841
|
() => a.value[0].areaColor || d.value
|
|
2825
2842
|
);
|
|
2826
2843
|
function f(_) {
|
|
@@ -2872,20 +2889,20 @@ export {
|
|
|
2872
2889
|
Lo as LumeBarChart,
|
|
2873
2890
|
Be as LumeBarGroup,
|
|
2874
2891
|
oe as LumeChart,
|
|
2875
|
-
|
|
2892
|
+
On as LumeChartContainer,
|
|
2876
2893
|
Nn as LumeChartLegend,
|
|
2877
|
-
|
|
2894
|
+
Oo as LumeGroupedBarChart,
|
|
2878
2895
|
Ua as LumeLine,
|
|
2879
2896
|
Io as LumeLineChart,
|
|
2880
2897
|
yt as LumeLineGroup,
|
|
2881
2898
|
pr as LumeOverlayGroup,
|
|
2882
2899
|
qa as LumePoint,
|
|
2883
|
-
|
|
2900
|
+
xo as LumeSingleBarChart,
|
|
2884
2901
|
wo as LumeSparklineChart,
|
|
2885
2902
|
$o as LumeStackedBarChart,
|
|
2886
2903
|
Jn as LumeTooltip,
|
|
2887
2904
|
Zn as LumeTooltipItem,
|
|
2888
|
-
|
|
2905
|
+
Vn as LumeTooltipSummary,
|
|
2889
2906
|
Sn as LumeTooltipTitle
|
|
2890
2907
|
};
|
|
2891
2908
|
//# sourceMappingURL=index.js.map
|