@adyen/lume-vue3 1.2.1 → 1.3.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 +78 -78
- package/dist/index.js.map +1 -1
- package/dist/scss/main.scss +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as M, openBlock as y, createElementBlock as O, mergeProps as C, createElementVNode as G, toDisplayString as te, createCommentVNode as F, isRef as wt, computed as p, watch as Y, toRefs as q, inject as Ee, reactive as Se, onMounted as fe, unref as r, Fragment as J, renderList as z, createBlock as W, normalizeClass as ee, normalizeStyle as It, onBeforeUnmount as Et, watchEffect as Nt, renderSlot as S, createTextVNode as ce, useSlots as ae, withDirectives as on, withCtx as
|
|
1
|
+
import { defineComponent as Z, ref as M, openBlock as y, createElementBlock as O, mergeProps as C, createElementVNode as G, toDisplayString as te, createCommentVNode as F, isRef as wt, computed as p, watch as Y, toRefs as q, inject as Ee, reactive as Se, onMounted as fe, unref as r, Fragment as J, renderList as z, createBlock as W, normalizeClass as ee, normalizeStyle as It, onBeforeUnmount as Et, watchEffect as Nt, renderSlot as S, createTextVNode as ce, useSlots as ae, withDirectives as on, withCtx as P, createSlots as ie, vShow as an, pushScopeId as rn, popScopeId as ln, provide as Pe, createVNode as re, toHandlers as ne, normalizeProps as de, guardReactiveProps as ve, defineAsyncComponent as Ve, resolveDynamicComponent as un } from "vue";
|
|
2
2
|
import { format as sn, ticks as cn, scaleBand as we, scaleLinear as Ie, link as dn, line as vn, area as pn } from "d3";
|
|
3
3
|
import { createPopper as fn } from "@popperjs/core";
|
|
4
4
|
import { sankeyLinkHorizontal as mn, sankey as hn, sankeyJustify as gn } from "d3-sankey";
|
|
@@ -121,10 +121,10 @@ const Ln = (e, t) => {
|
|
|
121
121
|
throw new Error("Data is not a valid array");
|
|
122
122
|
if (e.length === 0)
|
|
123
123
|
throw new Error("Cannot get highest value from empty array");
|
|
124
|
-
e.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
if (!e.some(
|
|
125
|
+
({ values: o }) => o.length - 1 >= t
|
|
126
|
+
))
|
|
127
|
+
throw new Error("Index exceeds length of all of the datasets");
|
|
128
128
|
};
|
|
129
129
|
function On(e, t) {
|
|
130
130
|
var n;
|
|
@@ -266,7 +266,7 @@ const H = {
|
|
|
266
266
|
function Ce(e) {
|
|
267
267
|
e != null && e.closest("svg") || ge(pe.NotContainedInSvg);
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const Pt = {
|
|
270
270
|
/** Displays a line for each tick. */
|
|
271
271
|
gridLines: !1,
|
|
272
272
|
/** Displays the axis title. */
|
|
@@ -283,11 +283,11 @@ const Vt = {
|
|
|
283
283
|
/** Space between the tick label and the axis line. */
|
|
284
284
|
tickPadding: 8
|
|
285
285
|
}, Sn = {
|
|
286
|
-
...
|
|
286
|
+
...Pt,
|
|
287
287
|
withTitle: !1,
|
|
288
288
|
skip: !0
|
|
289
289
|
}, Cn = {
|
|
290
|
-
...
|
|
290
|
+
...Pt,
|
|
291
291
|
gridLines: !0
|
|
292
292
|
}, Gn = function(e, t, n) {
|
|
293
293
|
const o = p(() => e.value.step() * e.value.paddingInner() / 2);
|
|
@@ -369,7 +369,7 @@ const Vt = {
|
|
|
369
369
|
getTickGroupAttributes: l,
|
|
370
370
|
getTickLabelAttributes: c
|
|
371
371
|
};
|
|
372
|
-
},
|
|
372
|
+
}, Pn = function(e, t, n) {
|
|
373
373
|
const o = p(() => {
|
|
374
374
|
const s = e.value.ticks();
|
|
375
375
|
return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
|
|
@@ -404,7 +404,7 @@ const Vt = {
|
|
|
404
404
|
getTickGroupAttributes: l,
|
|
405
405
|
getTickLabelAttributes: c
|
|
406
406
|
};
|
|
407
|
-
},
|
|
407
|
+
}, Vn = function(e, t, n) {
|
|
408
408
|
const o = p(() => {
|
|
409
409
|
const s = e.value.ticks();
|
|
410
410
|
return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
|
|
@@ -445,8 +445,8 @@ const Vt = {
|
|
|
445
445
|
}, Fn = {
|
|
446
446
|
"x-band-scale-axis": Gn,
|
|
447
447
|
"y-band-scale-axis": jn,
|
|
448
|
-
"x-linear-scale-axis":
|
|
449
|
-
"y-linear-scale-axis":
|
|
448
|
+
"x-linear-scale-axis": Pn,
|
|
449
|
+
"y-linear-scale-axis": Vn
|
|
450
450
|
}, zn = ["transform"], Zn = { key: 0 }, Wn = /* @__PURE__ */ G("linearGradient", { id: "lume-tick-gradient" }, [
|
|
451
451
|
/* @__PURE__ */ G("stop", {
|
|
452
452
|
offset: "0%",
|
|
@@ -467,7 +467,7 @@ const Vt = {
|
|
|
467
467
|
], -1), Un = [
|
|
468
468
|
Wn
|
|
469
469
|
];
|
|
470
|
-
var
|
|
470
|
+
var Vt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Vt || {}), Ft = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Ft || {}), Ze = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(Ze || {});
|
|
471
471
|
const ft = /* @__PURE__ */ Z({
|
|
472
472
|
__name: "lume-axis",
|
|
473
473
|
props: {
|
|
@@ -550,7 +550,7 @@ const ft = /* @__PURE__ */ Z({
|
|
|
550
550
|
const { showTicks: k } = f.value;
|
|
551
551
|
return k === !1 ? "" : $.value(R);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function V(R, k, N) {
|
|
554
554
|
t("mouseenter", { index: x.value ? R : null, value: k, event: N });
|
|
555
555
|
}
|
|
556
556
|
function K(R, k, N) {
|
|
@@ -573,7 +573,7 @@ const ft = /* @__PURE__ */ Z({
|
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
575
|
function me() {
|
|
576
|
-
const R = l.value.step ? "bandScale" : "linearScale", k = Fn[`${A.value}-${
|
|
576
|
+
const R = l.value.step ? "bandScale" : "linearScale", k = Fn[`${A.value}-${Vt[R]}`];
|
|
577
577
|
Object.entries(k(l, a, f) || []).forEach(
|
|
578
578
|
([N, _]) => {
|
|
579
579
|
v[N] = _;
|
|
@@ -598,7 +598,7 @@ const ft = /* @__PURE__ */ Z({
|
|
|
598
598
|
}, N, {
|
|
599
599
|
"is-hidden": r(f).skip && !r(T)(_),
|
|
600
600
|
"with-gridlines": r(f).gridLines,
|
|
601
|
-
onMouseenter: (j) =>
|
|
601
|
+
onMouseenter: (j) => V(_, N.value, j),
|
|
602
602
|
onClick: (j) => K(_, N.value, j)
|
|
603
603
|
}), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
|
|
604
604
|
r(D) ? (y(), W(r(vt), C({ key: 1 }, h.value[r(u)], {
|
|
@@ -974,7 +974,7 @@ const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) =
|
|
|
974
974
|
S(w.$slots, "default", {}, () => [
|
|
975
975
|
S(w.$slots, "title", {}, () => [
|
|
976
976
|
r(m) ? (y(), W(r(io), { key: 0 }, {
|
|
977
|
-
default:
|
|
977
|
+
default: P(() => [
|
|
978
978
|
ce(te(r(g)(e.title)), 1)
|
|
979
979
|
]),
|
|
980
980
|
_: 1
|
|
@@ -983,14 +983,14 @@ const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) =
|
|
|
983
983
|
G("ul", bo, [
|
|
984
984
|
S(w.$slots, "summary", {}, () => [
|
|
985
985
|
r(x) ? (y(), W(r(fo), { key: 0 }, ie({
|
|
986
|
-
default:
|
|
986
|
+
default: P(() => [
|
|
987
987
|
ce(te(r(A).label) + " ", 1)
|
|
988
988
|
]),
|
|
989
989
|
_: 2
|
|
990
990
|
}, [
|
|
991
991
|
r(A).value ? {
|
|
992
992
|
name: "value",
|
|
993
|
-
fn:
|
|
993
|
+
fn: P(() => [
|
|
994
994
|
ce(te(r(h)(r(A).value)), 1)
|
|
995
995
|
]),
|
|
996
996
|
key: "0"
|
|
@@ -1003,10 +1003,10 @@ const yo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-4f995c3c"]]), ko = (e) =
|
|
|
1003
1003
|
key: D.label,
|
|
1004
1004
|
color: D.color
|
|
1005
1005
|
}, {
|
|
1006
|
-
label:
|
|
1006
|
+
label: P(() => [
|
|
1007
1007
|
ce(te(D.label), 1)
|
|
1008
1008
|
]),
|
|
1009
|
-
value:
|
|
1009
|
+
value: P(() => [
|
|
1010
1010
|
ce(te(r(h)(D.value)), 1)
|
|
1011
1011
|
]),
|
|
1012
1012
|
_: 2
|
|
@@ -1261,7 +1261,7 @@ const $e = (e, t = !0) => ({
|
|
|
1261
1261
|
type: [String, Array],
|
|
1262
1262
|
default: () => []
|
|
1263
1263
|
}
|
|
1264
|
-
}), jo = { class: "lume-overlay-group" },
|
|
1264
|
+
}), jo = { class: "lume-overlay-group" }, Po = /* @__PURE__ */ Z({
|
|
1265
1265
|
__name: "lume-overlay-group",
|
|
1266
1266
|
props: {
|
|
1267
1267
|
...Ge(),
|
|
@@ -1311,7 +1311,7 @@ const be = (e, t) => {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return { componentEventPropagator: {}, busEmit: o, busListen: l };
|
|
1313
1313
|
};
|
|
1314
|
-
function
|
|
1314
|
+
function Vo(e) {
|
|
1315
1315
|
return { hasNegativeValues: p(
|
|
1316
1316
|
() => Ht(e.value).some((n) => n < 0)
|
|
1317
1317
|
) };
|
|
@@ -1454,7 +1454,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1454
1454
|
right: Yo(f.value.margins),
|
|
1455
1455
|
bottom: Ko(f.value.margins, A.value),
|
|
1456
1456
|
left: Jo(f.value.margins, x.value)
|
|
1457
|
-
})),
|
|
1457
|
+
})), V = p(() => {
|
|
1458
1458
|
var L;
|
|
1459
1459
|
return n.xScale ? kt(n.xScale) ? n.xScale : (L = n.xScale) == null ? void 0 : L.call(n, T.value, a.value, w) : B.value;
|
|
1460
1460
|
}), K = p(() => {
|
|
@@ -1482,16 +1482,16 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1482
1482
|
() => l.value.every((L) => !L.values.length)
|
|
1483
1483
|
), j = p(() => {
|
|
1484
1484
|
const L = [], { noBaseScales: b } = f.value;
|
|
1485
|
-
return b || L.push(() => !!(
|
|
1486
|
-
}), { hasNegativeValues: X } =
|
|
1485
|
+
return b || L.push(() => !!(V.value && K.value)), L.every((I) => I() === !0);
|
|
1486
|
+
}), { hasNegativeValues: X } = Vo(T), { negativeBarAttributes: ue } = Fo(
|
|
1487
1487
|
w,
|
|
1488
|
-
|
|
1488
|
+
V,
|
|
1489
1489
|
K,
|
|
1490
1490
|
s
|
|
1491
1491
|
), { shouldGenerateTooltipAnchors: je } = Zt(
|
|
1492
1492
|
h,
|
|
1493
1493
|
f,
|
|
1494
|
-
|
|
1494
|
+
V,
|
|
1495
1495
|
K,
|
|
1496
1496
|
s,
|
|
1497
1497
|
T,
|
|
@@ -1552,7 +1552,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1552
1552
|
L === !1 && Le.opened && it();
|
|
1553
1553
|
}), fe(async () => {
|
|
1554
1554
|
t("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
|
|
1555
|
-
}),
|
|
1555
|
+
}), Pe("chartID", D), Pe("isEmpty", _), Pe("tooltipAnchorAttributes", h), (L, b) => (y(), W(r(no), {
|
|
1556
1556
|
id: `lume-chart_${r(D)}`,
|
|
1557
1557
|
ref_key: "chartContainer",
|
|
1558
1558
|
ref: m,
|
|
@@ -1566,7 +1566,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1566
1566
|
onMouseenter: b[25] || (b[25] = (I) => t("chart-mouseenter", I)),
|
|
1567
1567
|
onMouseleave: tn
|
|
1568
1568
|
}, {
|
|
1569
|
-
header:
|
|
1569
|
+
header: P(() => [
|
|
1570
1570
|
G("div", Qo, [
|
|
1571
1571
|
G("div", qo, [
|
|
1572
1572
|
L.title ? (y(), O("h1", ea, te(L.title), 1)) : F("", !0),
|
|
@@ -1590,7 +1590,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1590
1590
|
])
|
|
1591
1591
|
])
|
|
1592
1592
|
]),
|
|
1593
|
-
footer:
|
|
1593
|
+
footer: P(() => [
|
|
1594
1594
|
r(k) ? (y(), O("h3", la, te(r(me)), 1)) : F("", !0),
|
|
1595
1595
|
r(f).withLegend !== !1 && r(f).legendPosition == "bottom" ? (y(), W(r(mt), {
|
|
1596
1596
|
key: 1,
|
|
@@ -1602,7 +1602,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1602
1602
|
onMouseleave: b[18] || (b[18] = (I) => t("legend-mouseleave"))
|
|
1603
1603
|
}, null, 8, ["data"])) : F("", !0)
|
|
1604
1604
|
]),
|
|
1605
|
-
extra:
|
|
1605
|
+
extra: P(() => [
|
|
1606
1606
|
S(L.$slots, "tooltip", C(r(Le), {
|
|
1607
1607
|
data: r(T),
|
|
1608
1608
|
labels: r(E),
|
|
@@ -1633,7 +1633,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1633
1633
|
onTooltipMouseenter: b[22] || (b[22] = (I) => g.value = !0),
|
|
1634
1634
|
onTooltipMouseleave: b[23] || (b[23] = (I) => g.value = !1)
|
|
1635
1635
|
}), {
|
|
1636
|
-
default:
|
|
1636
|
+
default: P(() => [
|
|
1637
1637
|
S(L.$slots, "tooltip-content", {
|
|
1638
1638
|
data: r(T),
|
|
1639
1639
|
labels: r(E),
|
|
@@ -1644,7 +1644,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1644
1644
|
}, 16, ["position", "title", "items", "options"])) : F("", !0)
|
|
1645
1645
|
], !0)
|
|
1646
1646
|
]),
|
|
1647
|
-
default:
|
|
1647
|
+
default: P(() => [
|
|
1648
1648
|
r(j) ? (y(), O(J, { key: 0 }, [
|
|
1649
1649
|
r(X) ? (y(), W(r(nt), C({ key: 0 }, r(ue), {
|
|
1650
1650
|
"class-list": "lume-fill--negative",
|
|
@@ -1653,7 +1653,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1653
1653
|
}), null, 16)) : F("", !0),
|
|
1654
1654
|
r(f).withAxes !== !1 ? S(L.$slots, "axes", {
|
|
1655
1655
|
key: 1,
|
|
1656
|
-
xScale: r(
|
|
1656
|
+
xScale: r(V),
|
|
1657
1657
|
yScale: r(K),
|
|
1658
1658
|
containerSize: r(w),
|
|
1659
1659
|
options: r(f),
|
|
@@ -1661,7 +1661,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1661
1661
|
}, () => [
|
|
1662
1662
|
re(r(ft), {
|
|
1663
1663
|
type: "x",
|
|
1664
|
-
scale: r(
|
|
1664
|
+
scale: r(V),
|
|
1665
1665
|
"container-size": r(w),
|
|
1666
1666
|
options: r(Ae),
|
|
1667
1667
|
"hovered-index": v.value,
|
|
@@ -1686,11 +1686,11 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1686
1686
|
"onLume__internal-AxisSize": b[6] || (b[6] = (I) => x.value = I)
|
|
1687
1687
|
}, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
|
|
1688
1688
|
], !0) : F("", !0),
|
|
1689
|
-
r(f).withHover !== !1 ? (y(), W(r(
|
|
1689
|
+
r(f).withHover !== !1 ? (y(), W(r(Po), {
|
|
1690
1690
|
key: 2,
|
|
1691
1691
|
data: r(T),
|
|
1692
1692
|
orientation: r(s),
|
|
1693
|
-
"x-scale": r(
|
|
1693
|
+
"x-scale": r(V),
|
|
1694
1694
|
"y-scale": r(K),
|
|
1695
1695
|
"data-j-lume-chart__overlay-group": "",
|
|
1696
1696
|
"onLume__internal-Hover": Re
|
|
@@ -1710,7 +1710,7 @@ const Qo = { class: "lume-chart__header" }, qo = { class: "lume-chart__header-se
|
|
|
1710
1710
|
labels: r(E),
|
|
1711
1711
|
options: r(f),
|
|
1712
1712
|
orientation: r(s),
|
|
1713
|
-
xScale: r(
|
|
1713
|
+
xScale: r(V),
|
|
1714
1714
|
yScale: r(K),
|
|
1715
1715
|
hoveredIndex: v.value,
|
|
1716
1716
|
containerSize: r(w),
|
|
@@ -2025,7 +2025,7 @@ function Ha(e, t, n) {
|
|
|
2025
2025
|
const Ba = {
|
|
2026
2026
|
class: "lume-alluvial-group",
|
|
2027
2027
|
"data-j-alluvial-group": ""
|
|
2028
|
-
}, Ra = { key: 0 }, Ma = ["x", "y"], Sa = { key: 0 }, Ca = ["id", "x1", "x2"], Ga = ["stop-color"], ja = ["stop-color"],
|
|
2028
|
+
}, Ra = { key: 0 }, Ma = ["x", "y"], Sa = { key: 0 }, Ca = ["id", "x1", "x2"], Ga = ["stop-color"], ja = ["stop-color"], Pa = ["d", "stroke-width", "onClick", "onMouseover"], Va = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Fa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], za = ["x", "y", "height", "width"], Za = ["transform", "data-id"], Wa = /* @__PURE__ */ Z({
|
|
2029
2029
|
__name: "lume-alluvial-group",
|
|
2030
2030
|
props: {
|
|
2031
2031
|
...Ge(),
|
|
@@ -2097,7 +2097,7 @@ const Ba = {
|
|
|
2097
2097
|
function oe(k) {
|
|
2098
2098
|
return g.value.links.length > 0 && !g.value.links.includes(k);
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function V(k) {
|
|
2101
2101
|
return g.value.links.length > 0 && g.value.links.includes(k);
|
|
2102
2102
|
}
|
|
2103
2103
|
function K(k) {
|
|
@@ -2175,13 +2175,13 @@ const Ba = {
|
|
|
2175
2175
|
"data-j-alluvial-ghost": "",
|
|
2176
2176
|
onClick: (j) => t("link-click", { link: _.link, event: j }),
|
|
2177
2177
|
onMouseover: (j) => Ae(_.link, j)
|
|
2178
|
-
}, null, 40,
|
|
2178
|
+
}, null, 40, Pa))), 128)),
|
|
2179
2179
|
(y(!0), O(J, null, z(c.value, (_) => (y(), O("path", {
|
|
2180
2180
|
key: `link_${_.id}`,
|
|
2181
2181
|
class: ee(["lume-alluvial-group__link", {
|
|
2182
2182
|
[`lume-stroke--${_.color}`]: !r(a).gradient && _.color,
|
|
2183
2183
|
"lume-alluvial-group__link--faded": oe(_.id),
|
|
2184
|
-
"lume-alluvial-group__link--focused":
|
|
2184
|
+
"lume-alluvial-group__link--focused": V(_.id)
|
|
2185
2185
|
}]),
|
|
2186
2186
|
d: _.d,
|
|
2187
2187
|
stroke: D(_.link),
|
|
@@ -2192,7 +2192,7 @@ const Ba = {
|
|
|
2192
2192
|
"data-id": _.id,
|
|
2193
2193
|
onClick: (j) => t("link-click", { link: _.link, event: j }),
|
|
2194
2194
|
onMouseover: (j) => Ae(_.link, j)
|
|
2195
|
-
}, null, 42,
|
|
2195
|
+
}, null, 42, Va))), 128))
|
|
2196
2196
|
], 32),
|
|
2197
2197
|
(y(!0), O(J, null, z(u.value, (_, j) => (y(), O("g", {
|
|
2198
2198
|
key: `node-block_${j}`,
|
|
@@ -2242,7 +2242,7 @@ const Ba = {
|
|
|
2242
2242
|
re(r(ca), {
|
|
2243
2243
|
bottom: r(a).switchText
|
|
2244
2244
|
}, {
|
|
2245
|
-
default:
|
|
2245
|
+
default: P(() => [
|
|
2246
2246
|
ce(te(_.node.label), 1)
|
|
2247
2247
|
]),
|
|
2248
2248
|
_: 2
|
|
@@ -2250,7 +2250,7 @@ const Ba = {
|
|
|
2250
2250
|
re(r(pa), {
|
|
2251
2251
|
bottom: !r(a).switchText
|
|
2252
2252
|
}, {
|
|
2253
|
-
default:
|
|
2253
|
+
default: P(() => [
|
|
2254
2254
|
ce(te(r(A)(
|
|
2255
2255
|
_.node.transitionValue || _.node.value,
|
|
2256
2256
|
_.node.value
|
|
@@ -2302,11 +2302,11 @@ const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
|
|
|
2302
2302
|
options: s(r(c)),
|
|
2303
2303
|
"data-j-alluvial-diagram": ""
|
|
2304
2304
|
}, ne(r(o))), ie({
|
|
2305
|
-
groups:
|
|
2305
|
+
groups: P((i) => [
|
|
2306
2306
|
re(r(Ua), C(i, { "hovered-element-id": d.hoveredElement }, ne(r(o))), ie({ _: 2 }, [
|
|
2307
2307
|
z(r(a), (m, h) => ({
|
|
2308
2308
|
name: h,
|
|
2309
|
-
fn:
|
|
2309
|
+
fn: P((g) => [
|
|
2310
2310
|
S(d.$slots, h, de(ve(g || {})))
|
|
2311
2311
|
])
|
|
2312
2312
|
}))
|
|
@@ -2316,7 +2316,7 @@ const Ua = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-6fe8c153"]]), Xa = {
|
|
|
2316
2316
|
}, [
|
|
2317
2317
|
z(r(l), (i, m) => ({
|
|
2318
2318
|
name: m,
|
|
2319
|
-
fn:
|
|
2319
|
+
fn: P((h) => [
|
|
2320
2320
|
S(d.$slots, m, de(ve(h || {})))
|
|
2321
2321
|
])
|
|
2322
2322
|
}))
|
|
@@ -2335,11 +2335,11 @@ const Mr = /* @__PURE__ */ Z({
|
|
|
2335
2335
|
}
|
|
2336
2336
|
},
|
|
2337
2337
|
setup(e, { emit: t }) {
|
|
2338
|
-
const n = e, o =
|
|
2338
|
+
const n = e, o = Ve(
|
|
2339
2339
|
() => import("./common/42f5d2fc.js")
|
|
2340
|
-
), l =
|
|
2340
|
+
), l = Ve(
|
|
2341
2341
|
() => import("./common/abc9d23d.js")
|
|
2342
|
-
), a =
|
|
2342
|
+
), a = Ve(
|
|
2343
2343
|
() => import("./common/0664fd4d.js")
|
|
2344
2344
|
), u = /* @__PURE__ */ new Map([
|
|
2345
2345
|
["single", o],
|
|
@@ -2371,7 +2371,7 @@ const Mr = /* @__PURE__ */ Z({
|
|
|
2371
2371
|
}, ne(r(c))), ie({ _: 2 }, [
|
|
2372
2372
|
z(r(s), (h, g) => ({
|
|
2373
2373
|
name: g,
|
|
2374
|
-
fn:
|
|
2374
|
+
fn: P((A) => [
|
|
2375
2375
|
S(i.$slots, g, de(ve(A || {})))
|
|
2376
2376
|
])
|
|
2377
2377
|
}))
|
|
@@ -2561,13 +2561,13 @@ function or(e, t, n, o, l, a) {
|
|
|
2561
2561
|
return f ? s.value.reduce((E, w, $) => ($ < f && w[T] < 0 && (E += w[T]), E), 0) : 0;
|
|
2562
2562
|
}
|
|
2563
2563
|
function x(f, T, E) {
|
|
2564
|
-
const { value: w, color: $ } = f, D = w >= 0 ? v(w) : i(w), B = w >= 0 ? m(w) : h(w), U = w >= 0 ? g(T, E) : A(T, E), { x: oe, y:
|
|
2564
|
+
const { value: w, color: $ } = f, D = w >= 0 ? v(w) : i(w), B = w >= 0 ? m(w) : h(w), U = w >= 0 ? g(T, E) : A(T, E), { x: oe, y: V } = d(w, E, U);
|
|
2565
2565
|
return {
|
|
2566
2566
|
classList: [`lume-fill--${$ ?? e.value[T].color ?? Object.values(le)[T]}`, ...a],
|
|
2567
2567
|
width: D,
|
|
2568
2568
|
height: B,
|
|
2569
2569
|
x: oe,
|
|
2570
|
-
y:
|
|
2570
|
+
y: V,
|
|
2571
2571
|
isFaded: l.value !== -1 && l.value !== E,
|
|
2572
2572
|
isNegative: w < 0
|
|
2573
2573
|
};
|
|
@@ -2671,14 +2671,14 @@ const ar = {
|
|
|
2671
2671
|
options: r(s),
|
|
2672
2672
|
"data-j-single-bar-chart": ""
|
|
2673
2673
|
}, ne(r(o))), ie({
|
|
2674
|
-
groups:
|
|
2674
|
+
groups: P((i) => [
|
|
2675
2675
|
re(r(rt), C(i, { orientation: r(a) }, ne(r(o))), null, 16, ["orientation"])
|
|
2676
2676
|
]),
|
|
2677
2677
|
_: 2
|
|
2678
2678
|
}, [
|
|
2679
2679
|
z(r(l), (i, m) => ({
|
|
2680
2680
|
name: m,
|
|
2681
|
-
fn:
|
|
2681
|
+
fn: P((h) => [
|
|
2682
2682
|
S(d.$slots, m, de(ve(h || {})))
|
|
2683
2683
|
])
|
|
2684
2684
|
}))
|
|
@@ -2716,14 +2716,14 @@ const ar = {
|
|
|
2716
2716
|
options: r(s),
|
|
2717
2717
|
"data-j-grouped-bar-chart": ""
|
|
2718
2718
|
}, ne(r(o))), ie({
|
|
2719
|
-
groups:
|
|
2719
|
+
groups: P((i) => [
|
|
2720
2720
|
re(r(rt), C(i, { type: "grouped" }, ne(r(o))), null, 16)
|
|
2721
2721
|
]),
|
|
2722
2722
|
_: 2
|
|
2723
2723
|
}, [
|
|
2724
2724
|
z(r(l), (i, m) => ({
|
|
2725
2725
|
name: m,
|
|
2726
|
-
fn:
|
|
2726
|
+
fn: P((h) => [
|
|
2727
2727
|
S(d.$slots, m, de(ve(h || {})))
|
|
2728
2728
|
])
|
|
2729
2729
|
}))
|
|
@@ -2767,14 +2767,14 @@ const ar = {
|
|
|
2767
2767
|
"y-scale": r(h),
|
|
2768
2768
|
"data-j-stacked-bar-chart": ""
|
|
2769
2769
|
}, ne(r(o))), ie({
|
|
2770
|
-
groups:
|
|
2770
|
+
groups: P((x) => [
|
|
2771
2771
|
re(r(rt), C(x, { type: "stacked" }, ne(r(o))), null, 16)
|
|
2772
2772
|
]),
|
|
2773
2773
|
_: 2
|
|
2774
2774
|
}, [
|
|
2775
2775
|
z(r(l), (x, f) => ({
|
|
2776
2776
|
name: f,
|
|
2777
|
-
fn:
|
|
2777
|
+
fn: P((T) => [
|
|
2778
2778
|
S(g.$slots, f, de(ve(T || {})))
|
|
2779
2779
|
])
|
|
2780
2780
|
}))
|
|
@@ -3029,24 +3029,24 @@ const br = {
|
|
|
3029
3029
|
class: "lume-line-group__group"
|
|
3030
3030
|
}, [
|
|
3031
3031
|
G("g", Ar, [
|
|
3032
|
-
(y(!0), O(J, null, z(B.values, (oe,
|
|
3033
|
-
key: `line-${
|
|
3032
|
+
(y(!0), O(J, null, z(B.values, (oe, V) => (y(), W(r(pr), C(T(V), {
|
|
3033
|
+
key: `line-${V}`,
|
|
3034
3034
|
color: B.color,
|
|
3035
|
-
dashed: B.isDashed(
|
|
3036
|
-
"path-definition": f(
|
|
3035
|
+
dashed: B.isDashed(V),
|
|
3036
|
+
"path-definition": f(V, U),
|
|
3037
3037
|
transition: e.transition,
|
|
3038
3038
|
width: r(l).lineWidth,
|
|
3039
|
-
onClick: (K) => t("line-click", { index:
|
|
3039
|
+
onClick: (K) => t("line-click", { index: V, datasetIndex: U, event: K })
|
|
3040
3040
|
}), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
|
|
3041
3041
|
]),
|
|
3042
3042
|
r(A) ? (y(), O("g", Tr, [
|
|
3043
|
-
(y(!0), O(J, null, z(B.values, (oe,
|
|
3044
|
-
key: `point-${
|
|
3045
|
-
active: w(
|
|
3043
|
+
(y(!0), O(J, null, z(B.values, (oe, V) => (y(), W(r(gr), C(E(V, U), {
|
|
3044
|
+
key: `point-${V}`,
|
|
3045
|
+
active: w(V),
|
|
3046
3046
|
color: B.color,
|
|
3047
|
-
index:
|
|
3047
|
+
index: V,
|
|
3048
3048
|
radius: r(m),
|
|
3049
|
-
onClick: (K) => t("point-click", { index:
|
|
3049
|
+
onClick: (K) => t("point-click", { index: V, datasetIndex: U, event: K })
|
|
3050
3050
|
}), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
|
|
3051
3051
|
])) : F("", !0)
|
|
3052
3052
|
]))), 128))
|
|
@@ -3071,14 +3071,14 @@ const Jt = /* @__PURE__ */ Q(Or, [["__scopeId", "data-v-c4d7f0ca"]]), $r = {
|
|
|
3071
3071
|
options: r(u),
|
|
3072
3072
|
"data-j-lume-line-chart": ""
|
|
3073
3073
|
}, ne(r(o))), ie({
|
|
3074
|
-
groups:
|
|
3074
|
+
groups: P((d) => [
|
|
3075
3075
|
re(r(Jt), C(d, ne(r(o))), null, 16)
|
|
3076
3076
|
]),
|
|
3077
3077
|
_: 2
|
|
3078
3078
|
}, [
|
|
3079
3079
|
z(r(l), (d, v) => ({
|
|
3080
3080
|
name: v,
|
|
3081
|
-
fn:
|
|
3081
|
+
fn: P((i) => [
|
|
3082
3082
|
S(c.$slots, v, de(ve(i || {})))
|
|
3083
3083
|
])
|
|
3084
3084
|
}))
|
|
@@ -3135,7 +3135,7 @@ const wr = {
|
|
|
3135
3135
|
options: g(r(d)),
|
|
3136
3136
|
"x-scale": A
|
|
3137
3137
|
}, ne(r(l))), ie({
|
|
3138
|
-
groups:
|
|
3138
|
+
groups: P((T) => [
|
|
3139
3139
|
r(d).showArea ? (y(), O("path", {
|
|
3140
3140
|
key: 0,
|
|
3141
3141
|
class: ee([
|
|
@@ -3153,14 +3153,14 @@ const wr = {
|
|
|
3153
3153
|
}, [
|
|
3154
3154
|
z(r(a), (T, E) => ({
|
|
3155
3155
|
name: E,
|
|
3156
|
-
fn:
|
|
3156
|
+
fn: P((w) => [
|
|
3157
3157
|
S(x.$slots, E, de(ve(w || {})), void 0, !0)
|
|
3158
3158
|
])
|
|
3159
3159
|
}))
|
|
3160
3160
|
]), 1040, ["options"]));
|
|
3161
3161
|
}
|
|
3162
3162
|
});
|
|
3163
|
-
const
|
|
3163
|
+
const Pr = /* @__PURE__ */ Q(Er, [["__scopeId", "data-v-c681fff6"]]);
|
|
3164
3164
|
export {
|
|
3165
3165
|
Rr as LumeAlluvialDiagram,
|
|
3166
3166
|
Ua as LumeAlluvialGroup,
|
|
@@ -3177,10 +3177,10 @@ export {
|
|
|
3177
3177
|
pr as LumeLine,
|
|
3178
3178
|
jr as LumeLineChart,
|
|
3179
3179
|
Jt as LumeLineGroup,
|
|
3180
|
-
|
|
3180
|
+
Po as LumeOverlayGroup,
|
|
3181
3181
|
gr as LumePoint,
|
|
3182
3182
|
Sr as LumeSingleBarChart,
|
|
3183
|
-
|
|
3183
|
+
Pr as LumeSparklineChart,
|
|
3184
3184
|
Gr as LumeStackedBarChart,
|
|
3185
3185
|
$o as LumeTooltip,
|
|
3186
3186
|
yo as LumeTooltipItem,
|