@adyen/lume-vue3 1.10.3 → 1.11.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 CHANGED
@@ -511,26 +511,26 @@ const $t = /* @__PURE__ */ Z({
511
511
  () => o.type ? et[o.type] : o.position
512
512
  ), $ = v(
513
513
  () => o.type || (b.value === "left" ? "y" : "x")
514
- ), A = v(
514
+ ), L = v(
515
515
  () => $.value === "x" && s.value === H.VERTICAL || $.value === "y" && s.value === H.HORIZONTAL
516
516
  ), { allOptions: h } = fe(
517
517
  c,
518
518
  $.value === "x" ? Cn : Pn
519
- ), { showTick: x } = Rn(u, m, h), N = v(() => {
520
- var M, k, E, _;
521
- return $.value === "y" && f.value && (!u.value || Tt(u.value)) ? `translate(0, ${((M = l.value) == null ? void 0 : M.height) / 2})` : $.value === "x" && f.value && (!u.value || Tt(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(E = l.value) == null ? void 0 : E.height})` : `translate(0, ${$.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
519
+ ), { showTick: x } = Rn(u, m, h), E = v(() => {
520
+ var M, k, N, _;
521
+ return $.value === "y" && f.value && (!u.value || Tt(u.value)) ? `translate(0, ${((M = l.value) == null ? void 0 : M.height) / 2})` : $.value === "x" && f.value && (!u.value || Tt(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(N = l.value) == null ? void 0 : N.height})` : `translate(0, ${$.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
522
522
  }), D = v(() => {
523
523
  if (!u.value)
524
524
  return [];
525
525
  if (ve(u.value))
526
526
  return u.value.labels || u.value.domain();
527
- const { tickCount: M } = h.value, [k, E] = u.value.domain();
528
- return fn(k, E, M);
527
+ const { tickCount: M } = h.value, [k, N] = u.value.domain();
528
+ return fn(k, N, M);
529
529
  }), P = v(() => {
530
530
  const { tickFormat: M } = h.value;
531
531
  return Ve(M);
532
532
  }), w = v(
533
- () => h.value.withHover && A.value && i.value > -1
533
+ () => h.value.withHover && L.value && i.value > -1
534
534
  ), B = v(
535
535
  () => h.value.tickPadding + Re || 16
536
536
  ), Y = v(() => $.value === "x" ? (
@@ -538,8 +538,8 @@ const $t = /* @__PURE__ */ Z({
538
538
  Math.max(
539
539
  ...(m.value || []).map(
540
540
  (M) => {
541
- var k, E;
542
- return ((E = (k = M.ref).getBBox) == null ? void 0 : E.call(k).height) + B.value;
541
+ var k, N;
542
+ return ((N = (k = M.ref).getBBox) == null ? void 0 : N.call(k).height) + B.value;
543
543
  }
544
544
  )
545
545
  )
@@ -548,8 +548,8 @@ const $t = /* @__PURE__ */ Z({
548
548
  Math.max(
549
549
  ...(m.value || []).map(
550
550
  (M) => {
551
- var k, E;
552
- return ((E = (k = M.ref).getBBox) == null ? void 0 : E.call(k).width) + B.value;
551
+ var k, N;
552
+ return ((N = (k = M.ref).getBBox) == null ? void 0 : N.call(k).width) + B.value;
553
553
  }
554
554
  )
555
555
  )
@@ -558,11 +558,11 @@ const $t = /* @__PURE__ */ Z({
558
558
  const { showTicks: k } = h.value;
559
559
  return k === !1 ? "" : P.value(M);
560
560
  }
561
- function Q(M, k, E) {
562
- a("mouseenter", { index: A.value ? M : null, value: k, event: E });
561
+ function Q(M, k, N) {
562
+ a("mouseenter", { index: L.value ? M : null, value: k, event: N });
563
563
  }
564
- function F(M, k, E) {
565
- a("click", { index: M, value: k, event: E });
564
+ function F(M, k, N) {
565
+ a("click", { index: M, value: k, event: N });
566
566
  }
567
567
  function ue(M) {
568
568
  var k;
@@ -588,8 +588,8 @@ const $t = /* @__PURE__ */ Z({
588
588
  return;
589
589
  const M = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${Qt[M]}`];
590
590
  Object.entries(k(u, l, h) || []).forEach(
591
- ([E, _]) => {
592
- r[E] = _;
591
+ ([N, _]) => {
592
+ r[N] = _;
593
593
  }
594
594
  );
595
595
  }
@@ -598,29 +598,29 @@ const $t = /* @__PURE__ */ Z({
598
598
  ref_key: "root",
599
599
  ref: g,
600
600
  class: "axis",
601
- transform: N.value,
601
+ transform: E.value,
602
602
  "data-j-axis": "",
603
- onMouseleave: k[1] || (k[1] = (E) => a("mouseleave", E))
603
+ onMouseleave: k[1] || (k[1] = (N) => a("mouseleave", N))
604
604
  }, [
605
605
  $.value === "x" ? (y(), O("defs", Yn, Jn)) : z("", !0),
606
- (y(!0), O(q, null, W(p.value, (E, _) => (y(), X(d(At), j({
607
- key: `${E.value}_${_}`,
606
+ (y(!0), O(q, null, W(p.value, (N, _) => (y(), X(d(At), j({
607
+ key: `${N.value}_${_}`,
608
608
  ref_for: !0,
609
609
  ref_key: "tickRefs",
610
610
  ref: m
611
- }, E, {
611
+ }, N, {
612
612
  "is-hidden": d(h).skip && !d(x)(_),
613
613
  "with-gridlines": d(h).gridLines,
614
- onMouseenter: (V) => Q(_, E.value, V),
615
- onClick: (V) => F(_, E.value, V)
614
+ onMouseenter: (V) => Q(_, N.value, V),
615
+ onClick: (V) => F(_, N.value, V)
616
616
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
617
617
  w.value ? (y(), X(d(At), j({ key: 1 }, p.value[d(i)], {
618
618
  "with-gridlines": !1,
619
619
  "is-hovered": "",
620
- onClick: k[0] || (k[0] = (E) => F(
620
+ onClick: k[0] || (k[0] = (N) => F(
621
621
  d(i),
622
622
  p.value[d(i)].value,
623
- E
623
+ N
624
624
  ))
625
625
  }), null, 16)) : z("", !0)
626
626
  ], 40, Xn)) : z("", !0);
@@ -689,7 +689,7 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
689
689
  setup(e, { emit: n }) {
690
690
  const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = R(null), r = v(
691
691
  () => typeof s.value == "string" ? [s.value] : s.value
692
- ), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = qn(a, u, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = Qn(a, u, l, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
692
+ ), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = qn(a, u, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: L, shouldHaveMinHeight: h } = Qn(a, u, l, i), x = v(() => L.value ? 1 : (m.value ? p.computedWidth : l).value), E = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
693
693
  return _e(() => ze(f.value)), (P, w) => (y(), O("rect", {
694
694
  ref_key: "root",
695
695
  ref: f,
@@ -706,7 +706,7 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
706
706
  x: d(b),
707
707
  y: d($),
708
708
  width: x.value,
709
- height: N.value,
709
+ height: E.value,
710
710
  "data-j-bar": "",
711
711
  onClick: w[0] || (w[0] = (B) => o("click", B)),
712
712
  onMouseover: w[1] || (w[1] = (B) => o("mouseover", B)),
@@ -1171,7 +1171,7 @@ const Mo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e)
1171
1171
  label: s.value.summary ?? t.summary
1172
1172
  };
1173
1173
  }
1174
- ), A = v(() => i.summary || $.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
1174
+ ), L = v(() => i.summary || $.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
1175
1175
  function x() {
1176
1176
  t.targetElement && a.value && (c.value = _n(t.targetElement, a.value, {
1177
1177
  placement: t.position,
@@ -1179,20 +1179,20 @@ const Mo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e)
1179
1179
  modifiers: m.value
1180
1180
  }), o("opened", t.targetElement));
1181
1181
  }
1182
- function N() {
1182
+ function E() {
1183
1183
  c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
1184
1184
  }
1185
1185
  function D() {
1186
1186
  c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
1187
1187
  c.value.state.elements.reference = t.targetElement, c.value.update(), o("moved", t.targetElement);
1188
- }() : N());
1188
+ }() : E());
1189
1189
  }
1190
1190
  return U(
1191
1191
  () => t.targetElement,
1192
1192
  async (P, w) => {
1193
1193
  !w && P ? (await Qe(), x()) : D();
1194
1194
  }
1195
- ), _e(x), Pt(N), (P, w) => e.opened && e.targetElement ? (y(), O("div", {
1195
+ ), _e(x), Pt(E), (P, w) => e.opened && e.targetElement ? (y(), O("div", {
1196
1196
  key: 0,
1197
1197
  ref_key: "root",
1198
1198
  ref: a,
@@ -1214,7 +1214,7 @@ const Mo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e)
1214
1214
  ], !0),
1215
1215
  G("ul", Go, [
1216
1216
  S(P.$slots, "summary", {}, () => [
1217
- A.value ? (y(), X(d(No), { key: 0 }, de({
1217
+ L.value ? (y(), X(d(No), { key: 0 }, de({
1218
1218
  default: C(() => [
1219
1219
  ce(oe($.value.label) + " ", 1)
1220
1220
  ]),
@@ -1229,7 +1229,7 @@ const Mo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e)
1229
1229
  } : void 0
1230
1230
  ]), 1024)) : z("", !0)
1231
1231
  ], !0),
1232
- A.value ? (y(), O("li", jo, Co)) : z("", !0),
1232
+ L.value ? (y(), O("li", jo, Co)) : z("", !0),
1233
1233
  S(P.$slots, "items", {}, () => [
1234
1234
  (y(!0), O(q, null, W(h.value, (B) => (y(), X(d(Mo), {
1235
1235
  key: B.label,
@@ -1304,8 +1304,8 @@ const Fo = /* @__PURE__ */ ee(Po, [["__scopeId", "data-v-e7c90551"]]), We = () =
1304
1304
  setup(e, { emit: n }) {
1305
1305
  const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = te(t), c = v(() => Zt(a));
1306
1306
  function s(f) {
1307
- var A;
1308
- const r = u.value === H.HORIZONTAL ? i.value : l.value, m = r.domain(), g = On(r), p = ((A = r.paddingInner) == null ? void 0 : A.call(r)) ?? 0, b = g * p, $ = ve(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
1307
+ var L;
1308
+ const r = u.value === H.HORIZONTAL ? i.value : l.value, m = r.domain(), g = On(r), p = ((L = r.paddingInner) == null ? void 0 : L.call(r)) ?? 0, b = g * p, $ = ve(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
1309
1309
  return u.value === H.HORIZONTAL ? {
1310
1310
  width: Math.max(...l.value.range()),
1311
1311
  height: g,
@@ -1474,9 +1474,9 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1474
1474
  }
1475
1475
  },
1476
1476
  setup(e, { emit: n }) {
1477
- const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = R(-1), m = R(null), g = R(null), p = R([]), b = R(null), $ = R(0), A = R(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, h, s), { xScale: B, yScale: Y } = fo(
1477
+ const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = R(-1), m = R(null), g = R(null), p = R([]), b = R(null), $ = R(0), L = R(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: E, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, h, s), { xScale: B, yScale: Y } = fo(
1478
1478
  x,
1479
- N,
1479
+ E,
1480
1480
  D,
1481
1481
  s,
1482
1482
  h
@@ -1484,13 +1484,13 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1484
1484
  top: Qo(h.value.margins),
1485
1485
  right: qo(h.value.margins),
1486
1486
  bottom: ea(h.value.margins, $.value),
1487
- left: ta(h.value.margins, A.value)
1487
+ left: ta(h.value.margins, L.value)
1488
1488
  })), Q = v(() => {
1489
- var T;
1490
- return t.xScale ? Et(t.xScale) ? t.xScale : (T = t.xScale) == null ? void 0 : T.call(t, x.value, l.value, D) : B.value;
1489
+ var A;
1490
+ return t.xScale ? Et(t.xScale) ? t.xScale : (A = t.xScale) == null ? void 0 : A.call(t, x.value, l.value, D) : B.value;
1491
1491
  }), F = v(() => {
1492
- var T;
1493
- return t.yScale ? Et(t.yScale) ? t.yScale : (T = t.yScale) == null ? void 0 : T.call(t, x.value, l.value, D) : Y.value;
1492
+ var A;
1493
+ return t.yScale ? Et(t.yScale) ? t.yScale : (A = t.yScale) == null ? void 0 : A.call(t, x.value, l.value, D) : Y.value;
1494
1494
  }), ue = v(() => ({
1495
1495
  ...h.value.xAxisOptions,
1496
1496
  withHover: s.value === H.VERTICAL
@@ -1498,22 +1498,22 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1498
1498
  ...h.value.yAxisOptions,
1499
1499
  withHover: s.value === H.HORIZONTAL
1500
1500
  })), ke = v(() => {
1501
- var T;
1502
- return (T = h.value.xAxisOptions) == null ? void 0 : T.title;
1501
+ var A;
1502
+ return (A = h.value.xAxisOptions) == null ? void 0 : A.title;
1503
1503
  }), $e = v(() => {
1504
- var T;
1505
- return (T = h.value.yAxisOptions) == null ? void 0 : T.title;
1504
+ var A;
1505
+ return (A = h.value.yAxisOptions) == null ? void 0 : A.title;
1506
1506
  }), M = v(() => {
1507
- var T;
1508
- return ((T = h.value.xAxisOptions) == null ? void 0 : T.withTitle) !== !1 && ke.value;
1507
+ var A;
1508
+ return ((A = h.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && ke.value;
1509
1509
  }), k = v(() => {
1510
- var T;
1511
- return ((T = h.value.yAxisOptions) == null ? void 0 : T.withTitle) !== !1 && $e.value;
1512
- }), E = v(
1513
- () => u.value.every((T) => !T.values.length)
1510
+ var A;
1511
+ return ((A = h.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && $e.value;
1512
+ }), N = v(
1513
+ () => u.value.every((A) => !A.values.length) || u.value.every((A) => A.values.every((T) => T === null))
1514
1514
  ), _ = v(() => {
1515
- const T = [], { noBaseScales: L } = h.value;
1516
- return !L && !E.value && T.push(() => !!(Q.value && F.value)), T.every((I) => I() === !0);
1515
+ const A = [], { noBaseScales: T } = h.value;
1516
+ return T || A.push(() => !!(Q.value && F.value)), A.every((I) => I() === !0);
1517
1517
  }), { hasNegativeValues: V } = Zo(x), { negativeBarAttributes: J } = Uo(
1518
1518
  D,
1519
1519
  Q,
@@ -1530,68 +1530,68 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1530
1530
  f
1531
1531
  ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Ko(), { getTooltipItems: xe } = Jo(x), He = v(
1532
1532
  () => {
1533
- var T;
1534
- return ((T = h.value.tooltipOptions) == null ? void 0 : T.position) || "top";
1533
+ var A;
1534
+ return ((A = h.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1535
1535
  }
1536
1536
  ), Oe = v(() => {
1537
- var L;
1538
- const T = (L = h.value.tooltipOptions) == null ? void 0 : L.withPointerEvents;
1539
- return De.opened && (!T || T && b.value === !1);
1537
+ var T;
1538
+ const A = (T = h.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1539
+ return De.opened && (!A || A && b.value === !1);
1540
1540
  });
1541
- function je(T) {
1541
+ function je(A) {
1542
1542
  var I;
1543
- if (h.value.withHover === !1 || T === r.value)
1543
+ if (h.value.withHover === !1 || A === r.value)
1544
1544
  return;
1545
- const L = r.value;
1546
- if (r.value = T, h.value.withTooltip !== !1) {
1547
- const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[T];
1545
+ const T = r.value;
1546
+ if (r.value = A, h.value.withTooltip !== !1) {
1547
+ const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[A];
1548
1548
  Ze(Ye);
1549
1549
  }
1550
- a("hovered-index-changed", { newIndex: T, oldIndex: L }), a("update:hoveredIndex", T);
1550
+ a("hovered-index-changed", { newIndex: A, oldIndex: T }), a("update:hoveredIndex", A);
1551
1551
  }
1552
1552
  function Xe() {
1553
1553
  Ue(), r.value = -1, a("update:hoveredIndex", -1);
1554
1554
  }
1555
- function yt(T) {
1555
+ function yt(A) {
1556
1556
  if (!u.value.some(
1557
- ({ values: I }) => T <= I.length - 1
1557
+ ({ values: I }) => A <= I.length - 1
1558
1558
  )) {
1559
1559
  ge(me.InvalidHoveredIndex);
1560
1560
  return;
1561
1561
  }
1562
- T == null || T === -1 ? Xe() : je(T);
1562
+ A == null || A === -1 ? Xe() : je(A);
1563
1563
  }
1564
1564
  function rn() {
1565
1565
  setTimeout(() => {
1566
1566
  Oe.value && Xe(), a("chart-mouseleave");
1567
1567
  }, 0);
1568
1568
  }
1569
- function sn(T) {
1570
- P(T), a("resize", T);
1569
+ function sn(A) {
1570
+ P(A), a("resize", A);
1571
1571
  }
1572
- function kt({ index: T, value: L, event: I }) {
1573
- T !== null && je(T), a("axis-mouseenter", { index: T, value: L, event: I });
1572
+ function kt({ index: A, value: T, event: I }) {
1573
+ A !== null && je(A), a("axis-mouseenter", { index: A, value: T, event: I });
1574
1574
  }
1575
- function bt({ index: T, value: L, event: I }) {
1576
- a("axis-click", { index: T, value: L, event: I });
1575
+ function bt({ index: A, value: T, event: I }) {
1576
+ a("axis-click", { index: A, value: T, event: I });
1577
1577
  }
1578
1578
  return U(
1579
1579
  u,
1580
- (T, L) => a("data-changed", { newValue: T, oldValue: L })
1580
+ (A, T) => a("data-changed", { newValue: A, oldValue: T })
1581
1581
  ), U(
1582
1582
  l,
1583
- (T, L) => a("labels-changed", { newValue: T, oldValue: L })
1584
- ), U(E, (T) => T && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, yt), U(
1583
+ (A, T) => a("labels-changed", { newValue: A, oldValue: T })
1584
+ ), U(N, (A) => A && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, yt), U(
1585
1585
  p,
1586
- (T) => {
1587
- T && t.hoveredIndex != null && r.value === -1 && yt(t.hoveredIndex);
1586
+ (A) => {
1587
+ A && t.hoveredIndex != null && r.value === -1 && yt(t.hoveredIndex);
1588
1588
  },
1589
1589
  { flush: "post" }
1590
- ), U(b, (T) => {
1591
- T === !1 && De.opened && Xe();
1590
+ ), U(b, (A) => {
1591
+ A === !1 && De.opened && Xe();
1592
1592
  }), _e(async () => {
1593
1593
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1594
- }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (T, L) => (y(), X(d(ko), {
1594
+ }), Ke("chartID", w), Ke("isEmpty", N), Ke("tooltipAnchorAttributes", p), (A, T) => (y(), X(d(ko), {
1595
1595
  id: `lume-chart_${d(w)}`,
1596
1596
  ref_key: "chartContainer",
1597
1597
  ref: g,
@@ -1602,29 +1602,29 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1602
1602
  orientation: d(s),
1603
1603
  "data-j-lume-chart": "",
1604
1604
  onResize: sn,
1605
- onClick: L[24] || (L[24] = (I) => a("chart-click", I)),
1606
- onMouseenter: L[25] || (L[25] = (I) => a("chart-mouseenter", I)),
1605
+ onClick: T[24] || (T[24] = (I) => a("chart-click", I)),
1606
+ onMouseenter: T[25] || (T[25] = (I) => a("chart-mouseenter", I)),
1607
1607
  onMouseleave: rn
1608
1608
  }, {
1609
1609
  header: C(() => [
1610
1610
  G("div", na, [
1611
1611
  G("div", oa, [
1612
- T.title ? (y(), O("h1", aa, oe(T.title), 1)) : z("", !0),
1612
+ A.title ? (y(), O("h1", aa, oe(A.title), 1)) : z("", !0),
1613
1613
  G("div", la, [
1614
- S(T.$slots, "controls", {}, void 0, !0)
1614
+ S(A.$slots, "controls", {}, void 0, !0)
1615
1615
  ])
1616
1616
  ]),
1617
1617
  G("div", ua, [
1618
1618
  k.value ? (y(), O("h3", ra, oe($e.value), 1)) : z("", !0),
1619
- S(T.$slots, "legend", { data: d(x) }, () => [
1619
+ S(A.$slots, "legend", { data: d(x) }, () => [
1620
1620
  d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d(Dt), {
1621
1621
  key: 0,
1622
1622
  data: d(x),
1623
1623
  class: "lume-chart__legend",
1624
1624
  "data-j-lume-chart__legend": "",
1625
- onClick: L[0] || (L[0] = (I) => a("legend-click", I)),
1626
- onMouseenter: L[1] || (L[1] = (I) => a("legend-mouseenter", I)),
1627
- onMouseleave: L[2] || (L[2] = (I) => a("legend-mouseleave"))
1625
+ onClick: T[0] || (T[0] = (I) => a("legend-click", I)),
1626
+ onMouseenter: T[1] || (T[1] = (I) => a("legend-mouseenter", I)),
1627
+ onMouseleave: T[2] || (T[2] = (I) => a("legend-mouseleave"))
1628
1628
  }, null, 8, ["data"])) : z("", !0)
1629
1629
  ], !0)
1630
1630
  ])
@@ -1637,16 +1637,16 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1637
1637
  data: d(x),
1638
1638
  class: "lume-chart__legend lume-chart__legend--bottom",
1639
1639
  "data-j-lume-chart__legend": "",
1640
- onClick: L[16] || (L[16] = (I) => a("legend-click", I)),
1641
- onMouseenter: L[17] || (L[17] = (I) => a("legend-mouseenter", I)),
1642
- onMouseleave: L[18] || (L[18] = (I) => a("legend-mouseleave"))
1640
+ onClick: T[16] || (T[16] = (I) => a("legend-click", I)),
1641
+ onMouseenter: T[17] || (T[17] = (I) => a("legend-mouseenter", I)),
1642
+ onMouseleave: T[18] || (T[18] = (I) => a("legend-mouseleave"))
1643
1643
  }, null, 8, ["data"])) : z("", !0)
1644
1644
  ]),
1645
1645
  extra: C(() => [
1646
- S(T.$slots, "tooltip", j(d(De), {
1646
+ S(A.$slots, "tooltip", j(d(De), {
1647
1647
  data: d(x),
1648
- labels: d(N),
1649
- title: d(N)[r.value],
1648
+ labels: d(E),
1649
+ title: d(E)[r.value],
1650
1650
  items: d(xe)(r.value),
1651
1651
  position: He.value,
1652
1652
  withTooltip: d(h).withTooltip !== !1,
@@ -1657,26 +1657,26 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1657
1657
  }), () => [
1658
1658
  d(h).withTooltip !== !1 ? (y(), X(d(Fo), j({ key: 0 }, d(De), {
1659
1659
  position: He.value,
1660
- title: d(N)[r.value],
1660
+ title: d(E)[r.value],
1661
1661
  items: d(xe)(r.value),
1662
1662
  options: d(h).tooltipOptions,
1663
1663
  "data-j-lume-chart__tooltip": "",
1664
- onOpened: L[19] || (L[19] = (I) => a("tooltip-opened", {
1664
+ onOpened: T[19] || (T[19] = (I) => a("tooltip-opened", {
1665
1665
  index: r.value,
1666
1666
  targetElement: I
1667
1667
  })),
1668
- onMoved: L[20] || (L[20] = (I) => a("tooltip-moved", {
1668
+ onMoved: T[20] || (T[20] = (I) => a("tooltip-moved", {
1669
1669
  index: r.value,
1670
1670
  targetElement: I
1671
1671
  })),
1672
- onClosed: L[21] || (L[21] = (I) => a("tooltip-closed")),
1673
- onTooltipMouseenter: L[22] || (L[22] = (I) => b.value = !0),
1674
- onTooltipMouseleave: L[23] || (L[23] = (I) => b.value = !1)
1672
+ onClosed: T[21] || (T[21] = (I) => a("tooltip-closed")),
1673
+ onTooltipMouseenter: T[22] || (T[22] = (I) => b.value = !0),
1674
+ onTooltipMouseleave: T[23] || (T[23] = (I) => b.value = !1)
1675
1675
  }), {
1676
1676
  default: C(() => [
1677
- S(T.$slots, "tooltip-content", {
1677
+ S(A.$slots, "tooltip-content", {
1678
1678
  data: d(x),
1679
- labels: d(N),
1679
+ labels: d(E),
1680
1680
  hoveredIndex: r.value
1681
1681
  }, void 0, !0)
1682
1682
  ]),
@@ -1691,7 +1691,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1691
1691
  transition: !1,
1692
1692
  "data-j-lume-chart__negative-values": ""
1693
1693
  }), null, 16)) : z("", !0),
1694
- d(h).withAxes !== !1 ? S(T.$slots, "axes", {
1694
+ d(h).withAxes !== !1 ? S(A.$slots, "axes", {
1695
1695
  key: 1,
1696
1696
  xScale: Q.value,
1697
1697
  yScale: F.value,
@@ -1709,8 +1709,8 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1709
1709
  "data-j-lume-chart__x-axis": "",
1710
1710
  onClick: bt,
1711
1711
  onMouseenter: kt,
1712
- onMouseleave: L[3] || (L[3] = (I) => a("axis-mouseleave")),
1713
- "onLume__internal-AxisSize": L[4] || (L[4] = (I) => $.value = I)
1712
+ onMouseleave: T[3] || (T[3] = (I) => a("axis-mouseleave")),
1713
+ "onLume__internal-AxisSize": T[4] || (T[4] = (I) => $.value = I)
1714
1714
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1715
1715
  ie(d($t), {
1716
1716
  type: "y",
@@ -1722,8 +1722,8 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1722
1722
  "data-j-lume-chart__y-axis": "",
1723
1723
  onClick: bt,
1724
1724
  onMouseenter: kt,
1725
- onMouseleave: L[5] || (L[5] = (I) => a("axis-mouseleave")),
1726
- "onLume__internal-AxisSize": L[6] || (L[6] = (I) => A.value = I)
1725
+ onMouseleave: T[5] || (T[5] = (I) => a("axis-mouseleave")),
1726
+ "onLume__internal-AxisSize": T[6] || (T[6] = (I) => L.value = I)
1727
1727
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1728
1728
  ], !0) : z("", !0),
1729
1729
  d(h).withHover !== !1 ? (y(), X(d(Wo), {
@@ -1745,9 +1745,9 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1745
1745
  class: "lume-fill--transparent"
1746
1746
  }), null, 16, sa))), 128))
1747
1747
  ])) : z("", !0),
1748
- S(T.$slots, "groups", {
1748
+ S(A.$slots, "groups", {
1749
1749
  data: d(x),
1750
- labels: d(N),
1750
+ labels: d(E),
1751
1751
  options: d(h),
1752
1752
  orientation: d(s),
1753
1753
  xScale: Q.value,
@@ -1755,16 +1755,16 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1755
1755
  hoveredIndex: r.value,
1756
1756
  containerSize: d(D),
1757
1757
  transition: d(h).withTransition !== !1,
1758
- classList: T.classList,
1759
- onNodeClick: L[7] || (L[7] = (I) => a("node-click", I)),
1760
- onNodeMouseenter: L[8] || (L[8] = (I) => a("node-mouseenter", I)),
1761
- onNodeMouseleave: L[9] || (L[9] = (I) => a("node-mouseleave", I)),
1762
- onLinkClick: L[10] || (L[10] = (I) => a("link-click", I)),
1763
- onLinkMouseenter: L[11] || (L[11] = (I) => a("link-mouseenter", I)),
1764
- onLinkMouseleave: L[12] || (L[12] = (I) => a("link-mouseleave", I)),
1765
- onBarClick: L[13] || (L[13] = (I) => a("bar-click", I)),
1766
- onLineClick: L[14] || (L[14] = (I) => a("line-click", I)),
1767
- onPointClick: L[15] || (L[15] = (I) => a("point-click", I)),
1758
+ classList: A.classList,
1759
+ onNodeClick: T[7] || (T[7] = (I) => a("node-click", I)),
1760
+ onNodeMouseenter: T[8] || (T[8] = (I) => a("node-mouseenter", I)),
1761
+ onNodeMouseleave: T[9] || (T[9] = (I) => a("node-mouseleave", I)),
1762
+ onLinkClick: T[10] || (T[10] = (I) => a("link-click", I)),
1763
+ onLinkMouseenter: T[11] || (T[11] = (I) => a("link-mouseenter", I)),
1764
+ onLinkMouseleave: T[12] || (T[12] = (I) => a("link-mouseleave", I)),
1765
+ onBarClick: T[13] || (T[13] = (I) => a("bar-click", I)),
1766
+ onLineClick: T[14] || (T[14] = (I) => a("line-click", I)),
1767
+ onPointClick: T[15] || (T[15] = (I) => a("point-click", I)),
1768
1768
  "onLume__internal-Hover": je
1769
1769
  }, void 0, !0)
1770
1770
  ], 64)) : z("", !0)
@@ -1773,7 +1773,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1773
1773
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "orientation"]));
1774
1774
  }
1775
1775
  });
1776
- const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-cffc1135"]]), Bt = 8, va = 8, ma = 20, we = 2, St = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
1776
+ const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-5aa3d9ab"]]), Bt = 8, va = 8, ma = 20, we = 2, St = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
1777
1777
  __name: "lume-alluvial-node-label",
1778
1778
  props: {
1779
1779
  bottom: { type: Boolean, default: !1 },
@@ -1985,13 +1985,13 @@ function ja(e, n, t) {
1985
1985
  const o = R(null), a = v(() => {
1986
1986
  var r, m;
1987
1987
  return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
1988
- ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: $, offset: A }) => ({
1988
+ ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: $, offset: L }) => ({
1989
1989
  label: g || b.toString(),
1990
1990
  color: p,
1991
1991
  fallbackColor: p || Ge,
1992
1992
  id: b,
1993
1993
  deriveColorFromIncomingLinks: $,
1994
- offset: A
1994
+ offset: L
1995
1995
  })
1996
1996
  );
1997
1997
  }), u = v(
@@ -2001,9 +2001,9 @@ function ja(e, n, t) {
2001
2001
  (g) => {
2002
2002
  var p;
2003
2003
  return (p = g.targets) == null ? void 0 : p.map(
2004
- ({ node: b, value: $, color: A, curveFunction: h }) => ({
2004
+ ({ node: b, value: $, color: L, curveFunction: h }) => ({
2005
2005
  id: `${g.value}:${b}`,
2006
- color: A,
2006
+ color: L,
2007
2007
  curveFunction: h,
2008
2008
  source: g.value ?? g.label,
2009
2009
  target: b,
@@ -2033,10 +2033,10 @@ function ja(e, n, t) {
2033
2033
  function s(r, m) {
2034
2034
  const { id: g, _y0: p, y0: b } = r, $ = m.links.filter(
2035
2035
  (x) => x.source.id === g
2036
- ), A = m.links.filter(
2036
+ ), L = m.links.filter(
2037
2037
  (x) => x.target.id === g
2038
2038
  ), h = b - p;
2039
- $.forEach((x) => x.y0 += h), A.forEach((x) => x.y1 += h);
2039
+ $.forEach((x) => x.y0 += h), L.forEach((x) => x.y1 += h);
2040
2040
  }
2041
2041
  const f = v(() => {
2042
2042
  var r;
@@ -2154,23 +2154,23 @@ const za = {
2154
2154
  i,
2155
2155
  l,
2156
2156
  g
2157
- ), $ = v(() => Ve(l.value.valueFormat)), A = v(
2157
+ ), $ = v(() => Ve(l.value.valueFormat)), L = v(
2158
2158
  () => Object.keys(b.value.nodes)
2159
2159
  ), h = v(() => m.value ? m.value.map(
2160
2160
  (k) => k[0].x0 + l.value.nodeWidth / 2
2161
2161
  ) : []), x = v(() => {
2162
2162
  if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
2163
- return l.value.nodeHeaders.slice(0, h.value.length).map((k, E) => ({
2163
+ return l.value.nodeHeaders.slice(0, h.value.length).map((k, N) => ({
2164
2164
  label: k,
2165
- x: h.value[E]
2165
+ x: h.value[N]
2166
2166
  }));
2167
- }), N = v(
2167
+ }), E = v(
2168
2168
  () => l.value.nodeHeaderPadding ?? ma
2169
2169
  ), D = v(() => {
2170
2170
  if (!(!l.value.gradient || !g.value))
2171
- return g.value.links.reduce((k, E) => {
2172
- const { source: _, target: V } = E, J = _.color || _.fallbackColor, le = V.deriveColorFromIncomingLinks ? J : V.color || V.fallbackColor;
2173
- return k[E.id] = {
2171
+ return g.value.links.reduce((k, N) => {
2172
+ const { source: _, target: V } = N, J = _.color || _.fallbackColor, le = V.deriveColorFromIncomingLinks ? J : V.color || V.fallbackColor;
2173
+ return k[N.id] = {
2174
2174
  source: J,
2175
2175
  target: le,
2176
2176
  x1: _.x1,
@@ -2180,7 +2180,7 @@ const za = {
2180
2180
  }), P = v(() => {
2181
2181
  const k = i.value.filter(
2182
2182
  (_) => F(_)
2183
- ), E = [];
2183
+ ), N = [];
2184
2184
  return k.forEach((_) => {
2185
2185
  const V = [];
2186
2186
  c.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, le, De, Ze) => {
@@ -2194,20 +2194,20 @@ const za = {
2194
2194
  key: `node-block-${_.node.id}-source-link-${le.link.source.id}`,
2195
2195
  class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Ge}`
2196
2196
  }), J + Oe;
2197
- }, 0), E.push({
2197
+ }, 0), N.push({
2198
2198
  id: _.node.id,
2199
2199
  subNodes: V
2200
2200
  });
2201
- }), E;
2201
+ }), N;
2202
2202
  });
2203
2203
  function w(k) {
2204
2204
  return l.value.gradient && `url('#${a}_${k.id}')`;
2205
2205
  }
2206
2206
  function B(k) {
2207
- return A.value.length > 0 && !A.value.includes(k.toString());
2207
+ return L.value.length > 0 && !L.value.includes(k.toString());
2208
2208
  }
2209
2209
  function Y(k) {
2210
- return A.value.length > 0 && A.value.includes(k.toString());
2210
+ return L.value.length > 0 && L.value.includes(k.toString());
2211
2211
  }
2212
2212
  function K(k) {
2213
2213
  return b.value.links.length > 0 && !b.value.links.includes(k);
@@ -2218,28 +2218,28 @@ const za = {
2218
2218
  function F(k) {
2219
2219
  return !k.node.color && k.node.deriveColorFromIncomingLinks;
2220
2220
  }
2221
- function ue(k, E) {
2222
- k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: E }));
2221
+ function ue(k, N) {
2222
+ k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: N }));
2223
2223
  }
2224
2224
  function Le(k) {
2225
- const E = p.value;
2226
- p.value = null, o("link-mouseleave", { link: E, event: k });
2225
+ const N = p.value;
2226
+ p.value = null, o("link-mouseleave", { link: N, event: k });
2227
2227
  }
2228
2228
  function ke(k) {
2229
2229
  if (k == null) {
2230
2230
  p.value = null;
2231
2231
  return;
2232
2232
  }
2233
- const E = Ea(k, g.value) || Na(k, g.value);
2234
- if (!E) {
2233
+ const N = Ea(k, g.value) || Na(k, g.value);
2234
+ if (!N) {
2235
2235
  ge(me.InvalidHoveredElement);
2236
2236
  return;
2237
2237
  }
2238
- p.value = E;
2238
+ p.value = N;
2239
2239
  }
2240
2240
  function $e(k) {
2241
- var E;
2242
- return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
2241
+ var N;
2242
+ return ((N = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : N.subNodes) ?? [];
2243
2243
  }
2244
2244
  function M() {
2245
2245
  const k = Da(g.value, s.value);
@@ -2249,16 +2249,16 @@ const za = {
2249
2249
  i.value = Ha(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2250
2250
  }), U([t.containerSize, s], () => {
2251
2251
  t.containerSize.width && t.containerSize.height && M();
2252
- }), U(() => t.hoveredElementId, ke), (k, E) => (y(), O("g", za, [
2252
+ }), U(() => t.hoveredElementId, ke), (k, N) => (y(), O("g", za, [
2253
2253
  x.value ? (y(), O("g", Wa, [
2254
2254
  (y(!0), O(q, null, W(x.value, (_, V) => S(k.$slots, `node-header-${V}`, {
2255
2255
  x: _.x,
2256
- y: -N.value
2256
+ y: -E.value
2257
2257
  }, () => [
2258
2258
  (y(), X(d(xa), {
2259
2259
  key: `header_${_.x}`,
2260
2260
  x: _.x,
2261
- y: -N.value
2261
+ y: -E.value
2262
2262
  }, {
2263
2263
  default: C(() => [
2264
2264
  ce(oe(_.label), 1)
@@ -2332,7 +2332,7 @@ const za = {
2332
2332
  onMouseenter: (J) => o("node-mouseenter", { node: _.node, event: J }),
2333
2333
  onMouseleave: (J) => o("node-mouseleave", { node: _.node, event: J }),
2334
2334
  onMouseover: (J) => p.value = _.node,
2335
- onMouseout: E[0] || (E[0] = (J) => p.value = null)
2335
+ onMouseout: N[0] || (N[0] = (J) => p.value = null)
2336
2336
  }, [
2337
2337
  F(_) ? (y(!0), O(q, { key: 0 }, W($e(
2338
2338
  _.node.id
@@ -2582,12 +2582,12 @@ function cl(e, n, t, o, a, u) {
2582
2582
  function f(r, m, g) {
2583
2583
  if (!(n.value && t.value))
2584
2584
  return sl;
2585
- const { value: b, color: $ } = r, A = $ ?? e.value[m].color ?? Ge, { x: h, y: x } = i(b, g), N = c(b), D = s(b);
2585
+ const { value: b, color: $ } = r, L = $ ?? e.value[m].color ?? Ge, { x: h, y: x } = i(b, g), E = c(b), D = s(b);
2586
2586
  return {
2587
- classList: [`lume-fill--${A}`, ...u],
2587
+ classList: [`lume-fill--${L}`, ...u],
2588
2588
  x: h,
2589
2589
  y: x,
2590
- width: N,
2590
+ width: E,
2591
2591
  height: D,
2592
2592
  isFaded: a.value !== -1 && a.value !== g,
2593
2593
  isNegative: b < 0
@@ -2608,13 +2608,13 @@ function vl(e, n, t, o, a, u) {
2608
2608
  function s(p, b, $) {
2609
2609
  if (l.value)
2610
2610
  return p >= 0 ? n.value(0) : n.value(p);
2611
- const A = n.value.domain();
2612
- return n.value(A[b]) + i.value($);
2611
+ const L = n.value.domain();
2612
+ return n.value(L[b]) + i.value($);
2613
2613
  }
2614
2614
  function f(p, b, $) {
2615
2615
  if (l.value) {
2616
- const A = t.value.domain();
2617
- return t.value(A[b]) + c.value($);
2616
+ const L = t.value.domain();
2617
+ return t.value(L[b]) + c.value($);
2618
2618
  }
2619
2619
  return p < 0 ? t.value(0) : t.value(p);
2620
2620
  }
@@ -2627,9 +2627,9 @@ function vl(e, n, t, o, a, u) {
2627
2627
  function g(p, b, $) {
2628
2628
  if (!(n.value && t.value))
2629
2629
  return dl;
2630
- const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = s(h, $, b), P = f(h, $, b), w = r(h), B = m(h);
2630
+ const { value: h, color: x } = p, E = x ?? e.value[b].color ?? Object.values(se)[b], D = s(h, $, b), P = f(h, $, b), w = r(h), B = m(h);
2631
2631
  return {
2632
- classList: [`lume-fill--${N}`, ...u],
2632
+ classList: [`lume-fill--${E}`, ...u],
2633
2633
  x: D,
2634
2634
  y: P,
2635
2635
  width: w,
@@ -2685,32 +2685,32 @@ function fl(e, n, t, o, a, u) {
2685
2685
  ), i = v(
2686
2686
  () => l.value ? t.value.domain() : n.value.domain()
2687
2687
  ), c = v(
2688
- () => e.value.map((A) => A.values.map((h) => h == null ? void 0 : h.value))
2688
+ () => e.value.map((L) => L.values.map((h) => h == null ? void 0 : h.value))
2689
2689
  );
2690
- function s(A, h, x) {
2691
- let N, D;
2692
- return l.value ? (N = n.value(A >= 0 ? 0 + x : A + x), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + x : 0 + x)), { x: N, y: D };
2690
+ function s(L, h, x) {
2691
+ let E, D;
2692
+ return l.value ? (E = n.value(L >= 0 ? 0 + x : L + x), D = t.value(i.value[h])) : (E = n.value(i.value[h]), D = t.value(L >= 0 ? L + x : 0 + x)), { x: E, y: D };
2693
2693
  }
2694
- function f(A) {
2695
- return l.value ? n.value(A) - n.value(0) : n.value.bandwidth();
2694
+ function f(L) {
2695
+ return l.value ? n.value(L) - n.value(0) : n.value.bandwidth();
2696
2696
  }
2697
- function r(A) {
2698
- return l.value ? n.value(0) - n.value(A) : n.value.bandwidth();
2697
+ function r(L) {
2698
+ return l.value ? n.value(0) - n.value(L) : n.value.bandwidth();
2699
2699
  }
2700
- function m(A) {
2701
- return l.value ? t.value.bandwidth() : t.value(0) - t.value(A);
2700
+ function m(L) {
2701
+ return l.value ? t.value.bandwidth() : t.value(0) - t.value(L);
2702
2702
  }
2703
- function g(A) {
2704
- return l.value ? t.value.bandwidth() : t.value(A) - t.value(0);
2703
+ function g(L) {
2704
+ return l.value ? t.value.bandwidth() : t.value(L) - t.value(0);
2705
2705
  }
2706
- function p(A, h) {
2707
- return A ? c.value.reduce((x, N, D) => (D < A && N[h] >= 0 && (x += N[h]), x), 0) : 0;
2706
+ function p(L, h) {
2707
+ return L ? c.value.reduce((x, E, D) => (D < L && E[h] >= 0 && (x += E[h]), x), 0) : 0;
2708
2708
  }
2709
- function b(A, h) {
2710
- return A ? c.value.reduce((x, N, D) => (D < A && N[h] < 0 && (x += N[h]), x), 0) : 0;
2709
+ function b(L, h) {
2710
+ return L ? c.value.reduce((x, E, D) => (D < L && E[h] < 0 && (x += E[h]), x), 0) : 0;
2711
2711
  }
2712
- function $(A, h, x) {
2713
- const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), B = N >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = s(N, x, B);
2712
+ function $(L, h, x) {
2713
+ const { value: E, color: D } = L, P = E >= 0 ? f(E) : r(E), w = E >= 0 ? m(E) : g(E), B = E >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = s(E, x, B);
2714
2714
  return {
2715
2715
  classList: [`lume-fill--${D ?? e.value[h].color ?? Object.values(se)[h]}`, ...u],
2716
2716
  width: P,
@@ -2718,7 +2718,7 @@ function fl(e, n, t, o, a, u) {
2718
2718
  x: Y,
2719
2719
  y: K,
2720
2720
  isFaded: a.value !== -1 && a.value !== x,
2721
- isNegative: N < 0
2721
+ isNegative: E < 0
2722
2722
  };
2723
2723
  }
2724
2724
  return { barAttributeGenerator: $ };
@@ -2758,27 +2758,27 @@ const pl = {
2758
2758
  labels: m
2759
2759
  } = te(t);
2760
2760
  Pe("chartID");
2761
- const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: $ } = il(s, f, l), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2761
+ const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: $ } = il(s, f, l), L = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2762
2762
  const D = rl(a, c), { barAttributeGenerator: P } = gl[D](
2763
2763
  a,
2764
2764
  b,
2765
2765
  $,
2766
2766
  l,
2767
2767
  u,
2768
- A.value
2768
+ L.value
2769
2769
  );
2770
2770
  return P;
2771
2771
  }), x = v(() => {
2772
2772
  if (i.value)
2773
2773
  return l.value === H.HORIZONTAL ? "width" : "height";
2774
2774
  });
2775
- async function N(D) {
2775
+ async function E(D) {
2776
2776
  o("lume__internal--hover", D), g("lume__internal--hover", D);
2777
2777
  }
2778
2778
  return (D, P) => (y(), O("g", pl, [
2779
2779
  (y(!0), O(q, null, W(d(p), (w, B) => (y(), O("g", {
2780
2780
  key: B,
2781
- onMouseenter: (Y) => N(B)
2781
+ onMouseenter: (Y) => E(B)
2782
2782
  }, [
2783
2783
  (y(!0), O(q, null, W(w, (Y, K) => (y(), X(d(dt), j(h.value(Y, K, B, w), {
2784
2784
  key: `bar-${K}`,
@@ -2911,7 +2911,7 @@ const pl = {
2911
2911
  l,
2912
2912
  i
2913
2913
  ), b = v(() => t.xScale || g), $ = v(() => t.yScale || p);
2914
- return (A, h) => (y(), X(d(Ne), j({ ...t, ...A.$attrs }, {
2914
+ return (L, h) => (y(), X(d(Ne), j({ ...t, ...L.$attrs }, {
2915
2915
  "chart-type": "stacked-bar",
2916
2916
  options: d(f),
2917
2917
  "x-scale": b.value,
@@ -2923,10 +2923,10 @@ const pl = {
2923
2923
  ]),
2924
2924
  _: 2
2925
2925
  }, [
2926
- W(d(a), (x, N) => ({
2927
- name: N,
2926
+ W(d(a), (x, E) => ({
2927
+ name: E,
2928
2928
  fn: C((D) => [
2929
- S(A.$slots, N, pe(he(D || {})))
2929
+ S(L.$slots, E, pe(he(D || {})))
2930
2930
  ])
2931
2931
  }))
2932
2932
  ]), 1040, ["options", "x-scale", "y-scale"]));
@@ -3136,7 +3136,7 @@ const Dl = {
3136
3136
  // If no `lineWidth`, returns NaN which needs to be undefined
3137
3137
  ), b = v(
3138
3138
  () => l.value.bandwidth() / 2
3139
- ), $ = v(() => l.value.domain()), A = v(
3139
+ ), $ = v(() => l.value.domain()), L = v(
3140
3140
  () => u.value.withPoints ?? t.withPoints
3141
3141
  );
3142
3142
  function h(w) {
@@ -3155,7 +3155,7 @@ const Dl = {
3155
3155
  i.value
3156
3156
  ) || "";
3157
3157
  }
3158
- function N(w) {
3158
+ function E(w) {
3159
3159
  return {
3160
3160
  animationDelay: w < 2 ? 0 : (w - 1) * g.value,
3161
3161
  animationDuration: g.value
@@ -3182,7 +3182,7 @@ const Dl = {
3182
3182
  class: "lume-line-group__group"
3183
3183
  }, [
3184
3184
  G("g", Hl, [
3185
- (y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Ll), j(N(F), {
3185
+ (y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Ll), j(E(F), {
3186
3186
  key: `line-${F}`,
3187
3187
  color: Y.color,
3188
3188
  dashed: Y.isDashed(F),
@@ -3192,7 +3192,7 @@ const Dl = {
3192
3192
  onClick: (ue) => o("line-click", { index: F, datasetIndex: K, event: ue })
3193
3193
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3194
3194
  ]),
3195
- A.value ? (y(), O("g", Bl, [
3195
+ L.value ? (y(), O("g", Bl, [
3196
3196
  (y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Il), j(D(F, K), {
3197
3197
  key: `point-${F}`,
3198
3198
  active: P(F),
@@ -3270,12 +3270,12 @@ const jl = {
3270
3270
  },
3271
3271
  setup(e, { expose: n, emit: t }) {
3272
3272
  const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = ht(l), { allOptions: s } = fe(i, jl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = Gl(f), m = v(() => {
3273
- var $, A;
3274
- return (A = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : A.color;
3273
+ var $, L;
3274
+ return (L = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : L.color;
3275
3275
  }), g = v(
3276
3276
  () => {
3277
- var $, A;
3278
- return ((A = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : A.areaColor) || m.value;
3277
+ var $, L;
3278
+ return ((L = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : L.areaColor) || m.value;
3279
3279
  }
3280
3280
  );
3281
3281
  function p($) {
@@ -3284,13 +3284,13 @@ const jl = {
3284
3284
  noMinSize: !0
3285
3285
  };
3286
3286
  }
3287
- function b($, A, h) {
3287
+ function b($, L, h) {
3288
3288
  if ($.length)
3289
3289
  return Se().range([0, h.width]).domain([0, $[0].values.length - 1]);
3290
3290
  }
3291
3291
  return n({
3292
3292
  areaPathDefinition: r
3293
- }), ($, A) => (y(), X(d(Ne), j(o, {
3293
+ }), ($, L) => (y(), X(d(Ne), j(o, {
3294
3294
  "chart-type": "line",
3295
3295
  options: p(d(s)),
3296
3296
  "x-scale": b
@@ -3313,8 +3313,8 @@ const jl = {
3313
3313
  }, [
3314
3314
  W(d(u), (h, x) => ({
3315
3315
  name: x,
3316
- fn: C((N) => [
3317
- S($.$slots, x, pe(he(N || {})), void 0, !0)
3316
+ fn: C((E) => [
3317
+ S($.$slots, x, pe(he(E || {})), void 0, !0)
3318
3318
  ])
3319
3319
  }))
3320
3320
  ]), 1040, ["options"]));
@@ -3352,6 +3352,25 @@ export {
3352
3352
  No as LumeTooltipSummary,
3353
3353
  xo as LumeTooltipTitle,
3354
3354
  mt as OtherColors,
3355
- en as SequentialColors
3355
+ en as SequentialColors,
3356
+ Zo as checkNegativeValues,
3357
+ Nt as getPaddedScale,
3358
+ tt as getXByIndex,
3359
+ Et as isScale,
3360
+ gt as orientationValidator,
3361
+ ht as useBase,
3362
+ fo as useBaseScales,
3363
+ ln as useLineNullValues,
3364
+ Uo as useNegativeValues,
3365
+ fe as useOptions,
3366
+ ho as useResizeObserver,
3367
+ Ko as useTooltip,
3368
+ tn as useTooltipAnchors,
3369
+ Jo as useTooltipItems,
3370
+ pt as withBase,
3371
+ Ee as withChartProps,
3372
+ po as withDiagramProps,
3373
+ Me as withOptions,
3374
+ mo as withScales
3356
3375
  };
3357
3376
  //# sourceMappingURL=index.js.map