@adyen/lume 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +53 -50
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, 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
|
|
1
|
+
import { defineComponent as C, 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
2
|
import { format as Lt, ticks as Ot, scaleBand as le, scaleLinear as ue, link as xt, 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";
|
|
@@ -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;
|
|
@@ -551,7 +551,7 @@ const cn = /* @__PURE__ */ C({
|
|
|
551
551
|
if (!(!d.value || !d.value.length))
|
|
552
552
|
return d.value[w].ref;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function V() {
|
|
555
555
|
f.value = O.value.map(
|
|
556
556
|
(w, N) => ({
|
|
557
557
|
value: E(w),
|
|
@@ -570,7 +570,7 @@ const cn = /* @__PURE__ */ C({
|
|
|
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: Oe, POSITIONS: xe, 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: O, tickFormatter: A, isHovering: y, formatTick: E, handleTickMouseenter: R, handleTickClick: F, getTextNode: G, setTicks: V, init: W, LumeTick: Bt };
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
576
|
var dn = function() {
|
|
@@ -845,7 +845,7 @@ var Fn = function() {
|
|
|
845
845
|
null,
|
|
846
846
|
null
|
|
847
847
|
);
|
|
848
|
-
const
|
|
848
|
+
const Vn = Gn.exports, jn = /* @__PURE__ */ C({
|
|
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,
|
|
@@ -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"
|
|
@@ -953,7 +953,7 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
|
|
|
953
953
|
(A, y) => {
|
|
954
954
|
!y && A ? p() : O();
|
|
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: O, LumeTooltipTitle: Sn, LumeTooltipSummary:
|
|
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: O, LumeTooltipTitle: Sn, LumeTooltipSummary: Vn, LumeTooltipItem: Zn };
|
|
957
957
|
}
|
|
958
958
|
});
|
|
959
959
|
var Un = function() {
|
|
@@ -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();
|
|
@@ -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,
|
|
@@ -1372,7 +1372,7 @@ 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: O } = Se(a, o, l, _, u), { xScale: A, yScale: y } = sr(
|
|
1376
1376
|
m,
|
|
1377
1377
|
k,
|
|
1378
1378
|
p,
|
|
@@ -1390,7 +1390,7 @@ const Ar = /* @__PURE__ */ C({
|
|
|
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,7 +1398,7 @@ 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 &&
|
|
1401
|
+
return ((b = _.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && V.value;
|
|
1402
1402
|
}), N = c(() => {
|
|
1403
1403
|
var b;
|
|
1404
1404
|
return ((b = _.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && W.value;
|
|
@@ -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", O), 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: O, xScale: A, yScale: y, computedXScale: E, computedYScale: R, computedXAxisOptions: F, computedYAxisOptions: G, xAxisTitle:
|
|
1468
|
+
}), ke("chartID", O), 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: O, xScale: A, yScale: y, computedXScale: E, computedYScale: R, computedXAxisOptions: F, computedYAxisOptions: G, xAxisTitle: V, yAxisTitle: W, showXAxisTitle: w, showYAxisTitle: N, isEmpty: H, isReady: g, hasNegativeValues: x, negativeBarAttributes: S, shouldGenerateTooltipAnchors: ce, tooltipConfig: Y, showTooltip: Z, hideTooltip: de, getTooltipItems: Fe, isTooltipOpened: ve, tooltipPosition: bt, handleInternalHover: ye, handleExternalHover: be, handleMouseleave: kt, handleAxisMouseenter: At, handleAxisClick: Tt, LumeAxis: fn, LumeBar: Re, LumeChartContainer: xn, 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);
|
|
@@ -1523,7 +1523,7 @@ var Tr = function() {
|
|
|
1523
1523
|
Lr,
|
|
1524
1524
|
!1,
|
|
1525
1525
|
null,
|
|
1526
|
-
"
|
|
1526
|
+
"51fc5eef",
|
|
1527
1527
|
null,
|
|
1528
1528
|
null
|
|
1529
1529
|
);
|
|
@@ -1531,14 +1531,14 @@ const oe = Or.exports;
|
|
|
1531
1531
|
const xr = {};
|
|
1532
1532
|
var $r = function() {
|
|
1533
1533
|
var e = this, r = e._self._c;
|
|
1534
|
-
return r("
|
|
1534
|
+
return r("text", { staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2);
|
|
1535
1535
|
}, Ir = [], wr = /* @__PURE__ */ I(
|
|
1536
1536
|
xr,
|
|
1537
1537
|
$r,
|
|
1538
1538
|
Ir,
|
|
1539
1539
|
!1,
|
|
1540
1540
|
null,
|
|
1541
|
-
"
|
|
1541
|
+
"501ec212",
|
|
1542
1542
|
null,
|
|
1543
1543
|
null
|
|
1544
1544
|
);
|
|
@@ -1546,14 +1546,14 @@ const Er = wr.exports;
|
|
|
1546
1546
|
const Nr = {};
|
|
1547
1547
|
var Cr = function() {
|
|
1548
1548
|
var e = this, r = e._self._c;
|
|
1549
|
-
return r("
|
|
1549
|
+
return r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { x: "0", dy: "1.2em" } }, [e._t("default")], 2);
|
|
1550
1550
|
}, Dr = [], Rr = /* @__PURE__ */ I(
|
|
1551
1551
|
Nr,
|
|
1552
1552
|
Cr,
|
|
1553
1553
|
Dr,
|
|
1554
1554
|
!1,
|
|
1555
1555
|
null,
|
|
1556
|
-
"
|
|
1556
|
+
"c1658103",
|
|
1557
1557
|
null,
|
|
1558
1558
|
null
|
|
1559
1559
|
);
|
|
@@ -1578,14 +1578,14 @@ const Br = "[lume] ";
|
|
|
1578
1578
|
function Fr(t, e, r = !0) {
|
|
1579
1579
|
r && nt() || console.error(Br + "Error: " + t, e);
|
|
1580
1580
|
}
|
|
1581
|
-
const Xe = 8, Pr = 8, Gr = 20,
|
|
1581
|
+
const Xe = 8, Pr = 8, Gr = 20, Vr = 200;
|
|
1582
1582
|
function re(t) {
|
|
1583
1583
|
return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
|
|
1584
1584
|
}
|
|
1585
1585
|
function ee(t) {
|
|
1586
1586
|
return t.source.id + ":" + t.target.id;
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function jr(t, e) {
|
|
1589
1589
|
return e.nodes.find((r) => r.id === t);
|
|
1590
1590
|
}
|
|
1591
1591
|
function Mr(t, e) {
|
|
@@ -1654,7 +1654,7 @@ function Ue(t, e, r, n, a) {
|
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
1656
|
const o = Date.now(), l = Wt(e, r), i = () => {
|
|
1657
|
-
let s = (Date.now() - o) /
|
|
1657
|
+
let s = (Date.now() - o) / Vr;
|
|
1658
1658
|
s > 1 && (s = 1), t.node = {
|
|
1659
1659
|
...t.node,
|
|
1660
1660
|
transitionValue: a && s === 1 ? void 0 : l(s)
|
|
@@ -1822,7 +1822,7 @@ const na = /* @__PURE__ */ C({
|
|
|
1822
1822
|
}, g), {});
|
|
1823
1823
|
}), A = c(() => {
|
|
1824
1824
|
const g = l.value.filter(
|
|
1825
|
-
(S) =>
|
|
1825
|
+
(S) => V(S)
|
|
1826
1826
|
), x = [];
|
|
1827
1827
|
return g.forEach((S) => {
|
|
1828
1828
|
const ce = [];
|
|
@@ -1857,7 +1857,7 @@ const na = /* @__PURE__ */ C({
|
|
|
1857
1857
|
function G(g) {
|
|
1858
1858
|
return h.value.links.length > 0 && h.value.links.includes(g);
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function V(g) {
|
|
1861
1861
|
return !g.node.color && g.node.deriveColorFromIncomingLinks;
|
|
1862
1862
|
}
|
|
1863
1863
|
function W(g, x) {
|
|
@@ -1872,7 +1872,7 @@ const na = /* @__PURE__ */ C({
|
|
|
1872
1872
|
f.value = null;
|
|
1873
1873
|
return;
|
|
1874
1874
|
}
|
|
1875
|
-
const x =
|
|
1875
|
+
const x = jr(g, v.value) || Mr(g, v.value);
|
|
1876
1876
|
if (!x) {
|
|
1877
1877
|
Q(X.InvalidHoveredElement);
|
|
1878
1878
|
return;
|
|
@@ -1890,7 +1890,7 @@ const na = /* @__PURE__ */ C({
|
|
|
1890
1890
|
const g = zr(v.value, u.value);
|
|
1891
1891
|
d(g);
|
|
1892
1892
|
}
|
|
1893
|
-
}), D(() => r.hoveredElementId, N), { __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: O, nodesDerivingColorFromIncomingLinks: A, getLinkStroke: y, isNodeFaded: E, isNodeFocused: R, isLinkFaded: F, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks:
|
|
1893
|
+
}), D(() => r.hoveredElementId, N), { __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: O, nodesDerivingColorFromIncomingLinks: A, getLinkStroke: y, isNodeFaded: E, isNodeFocused: R, isLinkFaded: F, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: V, handleLinkMouseover: W, handleLinkMouseleave: w, handleExternalHover: N, getSubNodesDerivingColorFromIncomingLinks: H, LumeAlluvialNodeLabel: Er, LumeAlluvialNodeValue: Hr, GHOST_STROKE_WIDTH_OFFSET: Pr };
|
|
1894
1894
|
}
|
|
1895
1895
|
});
|
|
1896
1896
|
var ra = function() {
|
|
@@ -1936,11 +1936,14 @@ var ra = function() {
|
|
|
1936
1936
|
a.node.id
|
|
1937
1937
|
), function(l) {
|
|
1938
1938
|
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("
|
|
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("g", { ref: "nodeTextRefs", refInFor: !0, staticClass: "lume-alluvial-group__node-text lume-typography--caption", class: {
|
|
1940
1940
|
"lume-alluvial-group__node-text--left": a.node.depth === 0
|
|
1941
1941
|
}, attrs: { transform: `translate(${a.textTransform.x},${a.textTransform.y})`, "data-id": a.node.id } }, [e._t(`node-text-${a.node.id}`, function() {
|
|
1942
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
|
|
1943
|
+
}, { node: a.node, value: n.formatValue(
|
|
1944
|
+
a.node.transitionValue || a.node.value,
|
|
1945
|
+
a.node.value
|
|
1946
|
+
) })], 2)], 2)]);
|
|
1944
1947
|
})], 2);
|
|
1945
1948
|
}, aa = [], oa = /* @__PURE__ */ I(
|
|
1946
1949
|
na,
|
|
@@ -1948,7 +1951,7 @@ var ra = function() {
|
|
|
1948
1951
|
aa,
|
|
1949
1952
|
!1,
|
|
1950
1953
|
null,
|
|
1951
|
-
"
|
|
1954
|
+
"fc6879dc",
|
|
1952
1955
|
null,
|
|
1953
1956
|
null
|
|
1954
1957
|
);
|
|
@@ -1976,7 +1979,7 @@ const la = oa.exports, ua = {
|
|
|
1976
1979
|
...cr(Ne)
|
|
1977
1980
|
},
|
|
1978
1981
|
setup(t) {
|
|
1979
|
-
const e = t, r = ne(
|
|
1982
|
+
const e = t, r = ne(j()), n = Xt(j()), { options: a } = B(e), { allOptions: o } = z(a, ua);
|
|
1980
1983
|
function l(i) {
|
|
1981
1984
|
return {
|
|
1982
1985
|
...i,
|
|
@@ -2033,7 +2036,7 @@ const va = /* @__PURE__ */ C({
|
|
|
2033
2036
|
["single", r],
|
|
2034
2037
|
["grouped", n],
|
|
2035
2038
|
["stacked", a]
|
|
2036
|
-
]), l = ne(
|
|
2039
|
+
]), l = ne(j());
|
|
2037
2040
|
function i(s) {
|
|
2038
2041
|
return {
|
|
2039
2042
|
...s,
|
|
@@ -2254,13 +2257,13 @@ function La(t, e, r, n, a, o) {
|
|
|
2254
2257
|
return p ? u.value.reduce((O, A, y) => (y < p && A[T] < 0 && (O += A[T]), O), 0) : 0;
|
|
2255
2258
|
}
|
|
2256
2259
|
function k(p, T, O) {
|
|
2257
|
-
const { value: A, color: y } = p, E = A >= 0 ? d(A) : v(A), R = A >= 0 ? f(A) : h(A), F = A >= 0 ? _(T, O) : m(T, O), { x: G, y:
|
|
2260
|
+
const { value: A, color: y } = p, E = A >= 0 ? d(A) : v(A), R = A >= 0 ? f(A) : h(A), F = A >= 0 ? _(T, O) : m(T, O), { x: G, y: V } = s(A, O, F);
|
|
2258
2261
|
return {
|
|
2259
2262
|
classList: [`lume-fill--${y ?? t.value[T].color ?? Object.values(M)[T]}`, ...o],
|
|
2260
2263
|
width: E,
|
|
2261
2264
|
height: R,
|
|
2262
2265
|
x: G,
|
|
2263
|
-
y:
|
|
2266
|
+
y: V,
|
|
2264
2267
|
isFaded: a.value !== -1 && a.value !== O,
|
|
2265
2268
|
isNegative: A < 0
|
|
2266
2269
|
};
|
|
@@ -2357,7 +2360,7 @@ const Be = Ia.exports, wa = {
|
|
|
2357
2360
|
...ae(Ne)
|
|
2358
2361
|
},
|
|
2359
2362
|
setup(t) {
|
|
2360
|
-
const e = t, r = ne(
|
|
2363
|
+
const e = t, r = ne(j()), { orientation: n, options: a } = B(e), o = c(
|
|
2361
2364
|
() => wa[n.value || L.VERTICAL]
|
|
2362
2365
|
// needs to be computed so that default options are reactive
|
|
2363
2366
|
), { allOptions: l } = z(a, o);
|
|
@@ -2403,7 +2406,7 @@ const Oo = Da.exports, Ra = {
|
|
|
2403
2406
|
...ae()
|
|
2404
2407
|
},
|
|
2405
2408
|
setup(t) {
|
|
2406
|
-
const e = t, r = ne(
|
|
2409
|
+
const e = t, r = ne(j()), { orientation: n, options: a } = B(e), o = c(
|
|
2407
2410
|
() => Ra[n.value || L.VERTICAL]
|
|
2408
2411
|
// needs to be computed so that default options are reactive
|
|
2409
2412
|
), { allOptions: l } = z(
|
|
@@ -2452,7 +2455,7 @@ const xo = Fa.exports, Pa = {
|
|
|
2452
2455
|
...ae()
|
|
2453
2456
|
},
|
|
2454
2457
|
setup(t) {
|
|
2455
|
-
const e = t, r = ne(
|
|
2458
|
+
const e = t, r = ne(j()), { data: n, orientation: a, options: o } = B(e), l = c(
|
|
2456
2459
|
() => Pa[a.value || L.VERTICAL]
|
|
2457
2460
|
// needs to be computed so that default options are reactive
|
|
2458
2461
|
), { allOptions: i } = z(
|
|
@@ -2465,7 +2468,7 @@ const xo = Fa.exports, Pa = {
|
|
|
2465
2468
|
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
2469
|
}
|
|
2467
2470
|
});
|
|
2468
|
-
var
|
|
2471
|
+
var Va = function() {
|
|
2469
2472
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2470
2473
|
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
2474
|
return [r(n.LumeBarGroup, e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1))];
|
|
@@ -2474,10 +2477,10 @@ var ja = function() {
|
|
|
2474
2477
|
return [e._t(o, null, null, l || {})];
|
|
2475
2478
|
} };
|
|
2476
2479
|
})], null, !0) }, "lume-chart", n.props, !1));
|
|
2477
|
-
},
|
|
2480
|
+
}, ja = [], Ma = /* @__PURE__ */ I(
|
|
2478
2481
|
Ga,
|
|
2479
|
-
ja,
|
|
2480
2482
|
Va,
|
|
2483
|
+
ja,
|
|
2481
2484
|
!1,
|
|
2482
2485
|
null,
|
|
2483
2486
|
null,
|
|
@@ -2765,7 +2768,7 @@ const yt = lo.exports, uo = {
|
|
|
2765
2768
|
...ae(null, !1)
|
|
2766
2769
|
},
|
|
2767
2770
|
setup(t) {
|
|
2768
|
-
const e = t, r = ne(
|
|
2771
|
+
const e = t, r = ne(j()), { options: n } = B(e), { allOptions: a } = z(n, uo);
|
|
2769
2772
|
return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: oe, LumeLineGroup: yt };
|
|
2770
2773
|
}
|
|
2771
2774
|
});
|
|
@@ -2820,7 +2823,7 @@ const fo = {
|
|
|
2820
2823
|
...ie()
|
|
2821
2824
|
},
|
|
2822
2825
|
setup(t, { expose: e }) {
|
|
2823
|
-
const r = t, n = ne(
|
|
2826
|
+
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
2827
|
() => a.value[0].areaColor || d.value
|
|
2825
2828
|
);
|
|
2826
2829
|
function f(_) {
|
|
@@ -2885,7 +2888,7 @@ export {
|
|
|
2885
2888
|
$o as LumeStackedBarChart,
|
|
2886
2889
|
Jn as LumeTooltip,
|
|
2887
2890
|
Zn as LumeTooltipItem,
|
|
2888
|
-
|
|
2891
|
+
Vn as LumeTooltipSummary,
|
|
2889
2892
|
Sn as LumeTooltipTitle
|
|
2890
2893
|
};
|
|
2891
2894
|
//# sourceMappingURL=index.js.map
|