@adyen/lume 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 CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as w, ref as I, isRef as vt, computed as d, watch as H, toRefs as S, inject as ve, reactive as ye, onMounted as K, onBeforeUnmount as _t, watchEffect as pt, useSlots as V, provide as Le, defineAsyncComponent as Oe } from "vue";
1
+ import { defineComponent as E, ref as I, isRef as vt, computed as d, watch as H, toRefs as S, inject as ve, reactive as ye, onMounted as K, onBeforeUnmount as _t, watchEffect as pt, useSlots as V, provide as Le, defineAsyncComponent as Oe } from "vue";
2
2
  import { format as Bt, ticks as Ft, scaleBand as ce, scaleLinear as de, link as Gt, line as Vt, area as jt } from "d3";
3
3
  import { createPopper as Mt } from "@popperjs/core";
4
4
  import { sankeyLinkHorizontal as zt, sankey as Wt, sankeyJustify as Zt } from "d3-sankey";
5
- const Xt = /* @__PURE__ */ w({
5
+ const Xt = /* @__PURE__ */ E({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -44,7 +44,7 @@ const Xt = /* @__PURE__ */ w({
44
44
  return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
45
45
  }
46
46
  });
47
- function E(t, e, r, n, o, a, l, i) {
47
+ function w(t, e, r, n, o, a, l, i) {
48
48
  var u = typeof t == "function" ? t.options : t;
49
49
  e && (u.render = e, u.staticRenderFns = r, u._compiled = !0), n && (u.functional = !0), a && (u._scopeId = "data-v-" + a);
50
50
  var c;
@@ -83,7 +83,7 @@ var Ut = function() {
83
83
  }, click: function(o) {
84
84
  return n.emit("click", o);
85
85
  } } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
86
- }, Yt = [], Kt = /* @__PURE__ */ E(
86
+ }, Yt = [], Kt = /* @__PURE__ */ w(
87
87
  Xt,
88
88
  Ut,
89
89
  Yt,
@@ -140,10 +140,10 @@ const nn = (t, e) => {
140
140
  throw new Error("Data is not a valid array");
141
141
  if (t.length === 0)
142
142
  throw new Error("Cannot get highest value from empty array");
143
- t.forEach(({ values: r }) => {
144
- if (r.length - 1 < e)
145
- throw new Error("Index exceeds length of at least one of the datasets");
146
- });
143
+ if (!t.some(
144
+ ({ values: n }) => n.length - 1 >= e
145
+ ))
146
+ throw new Error("Index exceeds length of all of the datasets");
147
147
  };
148
148
  function rn(t, e) {
149
149
  var r;
@@ -467,8 +467,8 @@ const At = {
467
467
  "x-linear-scale-axis": bn,
468
468
  "y-linear-scale-axis": kn
469
469
  };
470
- var Ee = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Ee || {}), we = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(we || {}), he = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(he || {});
471
- const xn = /* @__PURE__ */ w({
470
+ var we = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(we || {}), Ee = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Ee || {}), he = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(he || {});
471
+ const xn = /* @__PURE__ */ E({
472
472
  __name: "lume-axis",
473
473
  props: {
474
474
  scale: {
@@ -483,7 +483,7 @@ const xn = /* @__PURE__ */ w({
483
483
  position: {
484
484
  type: String,
485
485
  default: void 0,
486
- validator: (t) => t in we
486
+ validator: (t) => t in Ee
487
487
  },
488
488
  containerSize: {
489
489
  type: Object,
@@ -573,14 +573,14 @@ const xn = /* @__PURE__ */ w({
573
573
  );
574
574
  }
575
575
  function U() {
576
- const $ = o.value.step ? "bandScale" : "linearScale", h = Tn[`${g.value}-${Ee[$]}`];
576
+ const $ = o.value.step ? "bandScale" : "linearScale", h = Tn[`${g.value}-${we[$]}`];
577
577
  Object.entries(h(o, a, p) || []).forEach(
578
578
  ([O, N]) => {
579
579
  v[O] = N;
580
580
  }
581
581
  );
582
582
  }
583
- return H(o, U, { flush: "sync", immediate: !0 }), H(o, Q, { immediate: !0 }), H(s, Q), H(R, ($) => e("lume__internal--axis-size", $)), K(() => be(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: Ee, POSITIONS: we, TYPES: he, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: v, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: f, computedType: g, shouldHover: y, allOptions: p, showTick: T, axisTransform: A, ticks: x, tickFormatter: k, isHovering: C, axisLabelOffset: D, axisSize: R, formatTick: B, handleTickMouseenter: J, handleTickClick: G, getTextNode: M, setTicks: Q, init: U, LumeTick: Jt };
583
+ return H(o, U, { flush: "sync", immediate: !0 }), H(o, Q, { immediate: !0 }), H(s, Q), H(R, ($) => e("lume__internal--axis-size", $)), K(() => be(_.value)), { __sfc: !0, SCALE_MIXIN_MAP: we, POSITIONS: Ee, TYPES: he, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: o, containerSize: a, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: v, tickRefs: s, root: _, ticksWithAttributes: m, computedPosition: f, computedType: g, shouldHover: y, allOptions: p, showTick: T, axisTransform: A, ticks: x, tickFormatter: k, isHovering: C, axisLabelOffset: D, axisSize: R, formatTick: B, handleTickMouseenter: J, handleTickClick: G, getTextNode: M, setTicks: Q, init: U, LumeTick: Jt };
584
584
  }
585
585
  });
586
586
  var An = function() {
@@ -600,7 +600,7 @@ var An = function() {
600
600
  o
601
601
  );
602
602
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
603
- }, Ln = [], On = /* @__PURE__ */ E(
603
+ }, Ln = [], On = /* @__PURE__ */ w(
604
604
  xn,
605
605
  An,
606
606
  Ln,
@@ -623,13 +623,13 @@ function In(t, e, r, n) {
623
623
  );
624
624
  return { computedX: l, computedY: i, shouldHaveMinWidth: o, shouldHaveMinHeight: a };
625
625
  }
626
- function En(t, e, r, n) {
626
+ function wn(t, e, r, n) {
627
627
  const o = I(0), a = I(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
628
628
  return K(() => {
629
629
  o.value = r.value, a.value = n.value;
630
630
  }), H(r, (i) => o.value = i), H(n, (i) => a.value = i), { computedWidth: o, computedHeight: a, transformOrigin: l };
631
631
  }
632
- const wn = /* @__PURE__ */ w({
632
+ const En = /* @__PURE__ */ E({
633
633
  __name: "lume-bar",
634
634
  props: {
635
635
  x: {
@@ -669,7 +669,7 @@ const wn = /* @__PURE__ */ w({
669
669
  setup(t, { emit: e }) {
670
670
  const r = t, { x: n, y: o, width: a, height: l, transition: i, classList: u } = S(r), c = I(null), v = d(
671
671
  () => typeof u.value == "string" ? [u.value] : u.value
672
- ), s = d(() => i.value === "width"), _ = d(() => i.value === "height"), m = En(n, o, a, l), { computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = In(n, o, a, l), T = d(() => y.value ? 1 : (s.value ? m.computedWidth : a).value), A = d(() => p.value ? 1 : (_.value ? m.computedHeight : l).value), x = s.value || _.value ? m.transformOrigin : null;
672
+ ), s = d(() => i.value === "width"), _ = d(() => i.value === "height"), m = wn(n, o, a, l), { computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = In(n, o, a, l), T = d(() => y.value ? 1 : (s.value ? m.computedWidth : a).value), A = d(() => p.value ? 1 : (_.value ? m.computedHeight : l).value), x = s.value || _.value ? m.transformOrigin : null;
673
673
  return K(() => be(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: o, width: a, height: l, transition: i, classList: u, root: c, computedClasses: v, shouldTransitionWidth: s, shouldTransitionHeight: _, transitionProps: m, computedX: f, computedY: g, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: T, computedHeight: A, transformOrigin: x };
674
674
  }
675
675
  });
@@ -690,8 +690,8 @@ var Nn = function() {
690
690
  }, mouseleave: function(o) {
691
691
  return n.emit("mouseleave", o);
692
692
  } } });
693
- }, Cn = [], Hn = /* @__PURE__ */ E(
694
- wn,
693
+ }, Cn = [], Hn = /* @__PURE__ */ w(
694
+ En,
695
695
  Nn,
696
696
  Cn,
697
697
  !1,
@@ -715,7 +715,7 @@ function Dn() {
715
715
  r.unobserve(t.value);
716
716
  }), { resizeState: e, resizeRef: t };
717
717
  }
718
- const Rn = /* @__PURE__ */ w({
718
+ const Rn = /* @__PURE__ */ E({
719
719
  __name: "lume-chart-container",
720
720
  props: {
721
721
  margins: {
@@ -769,7 +769,7 @@ var Pn = function() {
769
769
  }, mouseleave: function(o) {
770
770
  return n.emit("mouseleave", o);
771
771
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
772
- }, Sn = [], Bn = /* @__PURE__ */ E(
772
+ }, Sn = [], Bn = /* @__PURE__ */ w(
773
773
  Rn,
774
774
  Pn,
775
775
  Sn,
@@ -779,7 +779,7 @@ var Pn = function() {
779
779
  null,
780
780
  null
781
781
  );
782
- const Fn = Bn.exports, Gn = /* @__PURE__ */ w({
782
+ const Fn = Bn.exports, Gn = /* @__PURE__ */ E({
783
783
  __name: "lume-chart-legend",
784
784
  props: {
785
785
  data: {
@@ -805,7 +805,7 @@ var Vn = function() {
805
805
  return n.emit("mouseenter", { index: a, dataset: o, event: l });
806
806
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${o.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(o.label || a) + " ")]);
807
807
  }), 0);
808
- }, jn = [], Mn = /* @__PURE__ */ E(
808
+ }, jn = [], Mn = /* @__PURE__ */ w(
809
809
  Gn,
810
810
  Vn,
811
811
  jn,
@@ -820,7 +820,7 @@ const Wn = {};
820
820
  var Zn = function() {
821
821
  var e = this, r = e._self._c;
822
822
  return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
823
- }, Xn = [], Un = /* @__PURE__ */ E(
823
+ }, Xn = [], Un = /* @__PURE__ */ w(
824
824
  Wn,
825
825
  Zn,
826
826
  Xn,
@@ -835,7 +835,7 @@ const Kn = {};
835
835
  var Jn = function() {
836
836
  var e = this, r = e._self._c;
837
837
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
838
- }, Qn = [], qn = /* @__PURE__ */ E(
838
+ }, Qn = [], qn = /* @__PURE__ */ w(
839
839
  Kn,
840
840
  Jn,
841
841
  Qn,
@@ -845,7 +845,7 @@ var Jn = function() {
845
845
  null,
846
846
  null
847
847
  );
848
- const er = qn.exports, tr = /* @__PURE__ */ w({
848
+ const er = qn.exports, tr = /* @__PURE__ */ E({
849
849
  __name: "lume-tooltip-item",
850
850
  props: {
851
851
  color: {
@@ -860,7 +860,7 @@ const er = qn.exports, tr = /* @__PURE__ */ w({
860
860
  var nr = 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
- }, rr = [], or = /* @__PURE__ */ E(
863
+ }, rr = [], or = /* @__PURE__ */ w(
864
864
  tr,
865
865
  nr,
866
866
  rr,
@@ -870,7 +870,7 @@ var nr = function() {
870
870
  null,
871
871
  null
872
872
  );
873
- const ar = or.exports, lr = /* @__PURE__ */ w({
873
+ const ar = or.exports, lr = /* @__PURE__ */ E({
874
874
  __name: "lume-tooltip",
875
875
  props: {
876
876
  targetElement: {
@@ -981,7 +981,7 @@ var ur = function() {
981
981
  });
982
982
  })], 2)];
983
983
  })], 2);
984
- }, ir = [], sr = /* @__PURE__ */ E(
984
+ }, ir = [], sr = /* @__PURE__ */ w(
985
985
  lr,
986
986
  ur,
987
987
  ir,
@@ -1233,7 +1233,7 @@ const ue = (t, e = !0) => ({
1233
1233
  type: [String, Array],
1234
1234
  default: () => []
1235
1235
  }
1236
- }), Ar = /* @__PURE__ */ w({
1236
+ }), Ar = /* @__PURE__ */ E({
1237
1237
  __name: "lume-overlay-group",
1238
1238
  props: {
1239
1239
  ...ke(),
@@ -1270,7 +1270,7 @@ var Lr = function() {
1270
1270
  return n.emit("click", { index: a, event: l });
1271
1271
  } } }, "lume-bar", n.getOverlayBarAttributes(a), !1));
1272
1272
  }), 1);
1273
- }, Or = [], $r = /* @__PURE__ */ E(
1273
+ }, Or = [], $r = /* @__PURE__ */ w(
1274
1274
  Ar,
1275
1275
  Lr,
1276
1276
  Or,
@@ -1280,7 +1280,7 @@ var Lr = function() {
1280
1280
  null,
1281
1281
  null
1282
1282
  );
1283
- const Ir = $r.exports, Er = [
1283
+ const Ir = $r.exports, wr = [
1284
1284
  "axis-click",
1285
1285
  "axis-mouseenter",
1286
1286
  "axis-mouseleave",
@@ -1319,9 +1319,9 @@ const X = (t, e) => {
1319
1319
  async function o(l, i) {
1320
1320
  se || await r(), se.$on(`${e}_${l}`, i);
1321
1321
  }
1322
- return { componentEventPropagator: Er.reduce((l, i) => (l[i] = (u) => t(i, u), l), {}), busEmit: n, busListen: o };
1322
+ return { componentEventPropagator: wr.reduce((l, i) => (l[i] = (u) => t(i, u), l), {}), busEmit: n, busListen: o };
1323
1323
  };
1324
- function wr(t) {
1324
+ function Er(t) {
1325
1325
  return { hasNegativeValues: d(
1326
1326
  () => mt(t.value).some((r) => r < 0)
1327
1327
  ) };
@@ -1434,7 +1434,7 @@ function Br(t, e) {
1434
1434
  function Fr(t, e) {
1435
1435
  return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Re : t.left;
1436
1436
  }
1437
- const Gr = /* @__PURE__ */ w({
1437
+ const Gr = /* @__PURE__ */ E({
1438
1438
  __name: "lume-chart",
1439
1439
  props: {
1440
1440
  ...ue(),
@@ -1484,7 +1484,7 @@ const Gr = /* @__PURE__ */ w({
1484
1484
  ), z = d(() => {
1485
1485
  const b = [], { noBaseScales: P } = p.value;
1486
1486
  return P || b.push(() => !!(G.value && M.value)), b.every((ee) => ee() === !0);
1487
- }), { hasNegativeValues: W } = wr(T), { negativeBarAttributes: Te } = Nr(
1487
+ }), { hasNegativeValues: W } = Er(T), { negativeBarAttributes: Te } = Nr(
1488
1488
  x,
1489
1489
  G,
1490
1490
  M,
@@ -1613,7 +1613,7 @@ var Vr = function() {
1613
1613
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(o, a) {
1614
1614
  return r("circle", e._b({ key: `anchor_${a}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", o, !1));
1615
1615
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1616
- }, jr = [], Mr = /* @__PURE__ */ E(
1616
+ }, jr = [], Mr = /* @__PURE__ */ w(
1617
1617
  Gr,
1618
1618
  Vr,
1619
1619
  jr,
@@ -1623,7 +1623,7 @@ var Vr = function() {
1623
1623
  null,
1624
1624
  null
1625
1625
  );
1626
- const ie = Mr.exports, zr = /* @__PURE__ */ w({
1626
+ const ie = Mr.exports, zr = /* @__PURE__ */ E({
1627
1627
  __name: "lume-alluvial-node-label",
1628
1628
  props: {
1629
1629
  bottom: { type: Boolean, default: !1 }
@@ -1635,7 +1635,7 @@ const ie = Mr.exports, zr = /* @__PURE__ */ w({
1635
1635
  var Wr = function() {
1636
1636
  var e = this, r = e._self._c;
1637
1637
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1638
- }, Zr = [], Xr = /* @__PURE__ */ E(
1638
+ }, Zr = [], Xr = /* @__PURE__ */ w(
1639
1639
  zr,
1640
1640
  Wr,
1641
1641
  Zr,
@@ -1645,7 +1645,7 @@ var Wr = function() {
1645
1645
  null,
1646
1646
  null
1647
1647
  );
1648
- const Ur = Xr.exports, Yr = /* @__PURE__ */ w({
1648
+ const Ur = Xr.exports, Yr = /* @__PURE__ */ E({
1649
1649
  __name: "lume-alluvial-node-value",
1650
1650
  props: {
1651
1651
  bottom: { type: Boolean, default: !0 }
@@ -1657,7 +1657,7 @@ const Ur = Xr.exports, Yr = /* @__PURE__ */ w({
1657
1657
  var Kr = function() {
1658
1658
  var e = this, r = e._self._c;
1659
1659
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1660
- }, Jr = [], Qr = /* @__PURE__ */ E(
1660
+ }, Jr = [], Qr = /* @__PURE__ */ w(
1661
1661
  Yr,
1662
1662
  Kr,
1663
1663
  Jr,
@@ -1928,7 +1928,7 @@ function bo(t, e, r) {
1928
1928
  });
1929
1929
  }), { highlightedElements: o, hoveredElement: n };
1930
1930
  }
1931
- const ko = /* @__PURE__ */ w({
1931
+ const ko = /* @__PURE__ */ E({
1932
1932
  __name: "lume-alluvial-group",
1933
1933
  props: {
1934
1934
  ...ke(),
@@ -2091,7 +2091,7 @@ var To = function() {
2091
2091
  o.node.value
2092
2092
  ) })], 2)], 2)]);
2093
2093
  })], 2);
2094
- }, xo = [], Ao = /* @__PURE__ */ E(
2094
+ }, xo = [], Ao = /* @__PURE__ */ w(
2095
2095
  ko,
2096
2096
  To,
2097
2097
  xo,
@@ -2120,7 +2120,7 @@ const Lo = Ao.exports, Oo = {
2120
2120
  nodeAlign: Zt,
2121
2121
  valueFormat: (t) => String(t),
2122
2122
  iterations: 6
2123
- }, $o = /* @__PURE__ */ w({
2123
+ }, $o = /* @__PURE__ */ E({
2124
2124
  __name: "lume-alluvial-diagram",
2125
2125
  props: {
2126
2126
  ...xr(Fe)
@@ -2150,19 +2150,19 @@ var Io = function() {
2150
2150
  return [e._t(a, null, null, l || {})];
2151
2151
  } };
2152
2152
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2153
- }, Eo = [], wo = /* @__PURE__ */ E(
2153
+ }, wo = [], Eo = /* @__PURE__ */ w(
2154
2154
  $o,
2155
2155
  Io,
2156
- Eo,
2156
+ wo,
2157
2157
  !1,
2158
2158
  null,
2159
2159
  null,
2160
2160
  null,
2161
2161
  null
2162
2162
  );
2163
- const Va = wo.exports;
2163
+ const Va = Eo.exports;
2164
2164
  var Be = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Be || {});
2165
- const No = /* @__PURE__ */ w({
2165
+ const No = /* @__PURE__ */ E({
2166
2166
  __name: "lume-bar-chart",
2167
2167
  props: {
2168
2168
  ...ue(),
@@ -2214,7 +2214,7 @@ var Co = function() {
2214
2214
  return [e._t(a, null, null, l || {})];
2215
2215
  } };
2216
2216
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
2217
- }, Ho = [], Do = /* @__PURE__ */ E(
2217
+ }, Ho = [], Do = /* @__PURE__ */ w(
2218
2218
  No,
2219
2219
  Co,
2220
2220
  Ho,
@@ -2245,7 +2245,7 @@ const So = (t = !1) => ({
2245
2245
  }
2246
2246
  } : {}
2247
2247
  });
2248
- function Et(t) {
2248
+ function wt(t) {
2249
2249
  const e = d(() => t.value.map((n) => ({
2250
2250
  ...n,
2251
2251
  values: n.values.map((o) => ({
@@ -2425,7 +2425,7 @@ const it = {
2425
2425
  single: Go,
2426
2426
  grouped: Vo,
2427
2427
  stacked: Mo
2428
- }, zo = /* @__PURE__ */ w({
2428
+ }, zo = /* @__PURE__ */ E({
2429
2429
  __name: "lume-bar-group",
2430
2430
  props: {
2431
2431
  ...ke(),
@@ -2450,7 +2450,7 @@ const it = {
2450
2450
  xScale: u,
2451
2451
  yScale: c,
2452
2452
  classList: v
2453
- } = S(r), s = ve("chartID"), { busEmit: _ } = X(e, s), { groupedData: m } = Et(n), { barXScale: f, barYScale: g } = Fo(u, c, a), y = d(() => typeof v.value == "string" ? [v.value] : v.value), p = d(() => {
2453
+ } = S(r), s = ve("chartID"), { busEmit: _ } = X(e, s), { groupedData: m } = wt(n), { barXScale: f, barYScale: g } = Fo(u, c, a), y = d(() => typeof v.value == "string" ? [v.value] : v.value), p = d(() => {
2454
2454
  const x = Bo(n, i), { barAttributeGenerator: k } = it[x](
2455
2455
  n,
2456
2456
  f,
@@ -2485,7 +2485,7 @@ var Wo = function() {
2485
2485
  } } }, "lume-bar", n.getBarAttributes(l, i, a, o), !1));
2486
2486
  }), 1);
2487
2487
  }), 0);
2488
- }, Zo = [], Xo = /* @__PURE__ */ E(
2488
+ }, Zo = [], Xo = /* @__PURE__ */ w(
2489
2489
  zo,
2490
2490
  Wo,
2491
2491
  Zo,
@@ -2508,7 +2508,7 @@ const We = Xo.exports, Uo = {
2508
2508
  yAxisOptions: { gridLines: !1 },
2509
2509
  margins: re.HORIZONTAL
2510
2510
  }
2511
- }, Yo = /* @__PURE__ */ w({
2511
+ }, Yo = /* @__PURE__ */ E({
2512
2512
  __name: "lume-single-bar-chart",
2513
2513
  props: {
2514
2514
  ...ue(Fe)
@@ -2530,7 +2530,7 @@ var Ko = function() {
2530
2530
  return [e._t(a, null, null, l || {})];
2531
2531
  } };
2532
2532
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2533
- }, Jo = [], Qo = /* @__PURE__ */ E(
2533
+ }, Jo = [], Qo = /* @__PURE__ */ w(
2534
2534
  Yo,
2535
2535
  Ko,
2536
2536
  Jo,
@@ -2554,7 +2554,7 @@ const Ma = Qo.exports, qo = {
2554
2554
  margins: re.HORIZONTAL,
2555
2555
  tooltipOptions: { position: "right" }
2556
2556
  }
2557
- }, ea = /* @__PURE__ */ w({
2557
+ }, ea = /* @__PURE__ */ E({
2558
2558
  __name: "lume-grouped-bar-chart",
2559
2559
  props: {
2560
2560
  ...ue()
@@ -2579,7 +2579,7 @@ var ta = function() {
2579
2579
  return [e._t(a, null, null, l || {})];
2580
2580
  } };
2581
2581
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2582
- }, na = [], ra = /* @__PURE__ */ E(
2582
+ }, na = [], ra = /* @__PURE__ */ w(
2583
2583
  ea,
2584
2584
  ta,
2585
2585
  na,
@@ -2603,7 +2603,7 @@ const za = ra.exports, oa = {
2603
2603
  margins: re.HORIZONTAL,
2604
2604
  tooltipOptions: { position: "right" }
2605
2605
  }
2606
- }, aa = /* @__PURE__ */ w({
2606
+ }, aa = /* @__PURE__ */ E({
2607
2607
  __name: "lume-stacked-bar-chart",
2608
2608
  props: {
2609
2609
  ...ue()
@@ -2615,7 +2615,7 @@ const za = ra.exports, oa = {
2615
2615
  ), { allOptions: c } = Z(
2616
2616
  i,
2617
2617
  u
2618
- ), { internalData: v } = ze(a), { groupedData: s } = Et(v), { stackedXScaleGenerator: _, stackedYScaleGenerator: m } = jo(
2618
+ ), { internalData: v } = ze(a), { groupedData: s } = wt(v), { stackedXScaleGenerator: _, stackedYScaleGenerator: m } = jo(
2619
2619
  s,
2620
2620
  l,
2621
2621
  i
@@ -2632,7 +2632,7 @@ var la = function() {
2632
2632
  return [e._t(a, null, null, l || {})];
2633
2633
  } };
2634
2634
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2635
- }, ua = [], ia = /* @__PURE__ */ E(
2635
+ }, ua = [], ia = /* @__PURE__ */ w(
2636
2636
  aa,
2637
2637
  la,
2638
2638
  ua,
@@ -2642,7 +2642,7 @@ var la = function() {
2642
2642
  null,
2643
2643
  null
2644
2644
  );
2645
- const Wa = ia.exports, st = 2, sa = /* @__PURE__ */ w({
2645
+ const Wa = ia.exports, st = 2, sa = /* @__PURE__ */ E({
2646
2646
  __name: "lume-line",
2647
2647
  props: {
2648
2648
  pathDefinition: {
@@ -2692,7 +2692,7 @@ var ca = function() {
2692
2692
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(o) {
2693
2693
  return n.emit("click", o);
2694
2694
  } } });
2695
- }, da = [], va = /* @__PURE__ */ E(
2695
+ }, da = [], va = /* @__PURE__ */ w(
2696
2696
  sa,
2697
2697
  ca,
2698
2698
  da,
@@ -2702,7 +2702,7 @@ var ca = function() {
2702
2702
  null,
2703
2703
  null
2704
2704
  );
2705
- const _a = va.exports, ct = 4, pa = /* @__PURE__ */ w({
2705
+ const _a = va.exports, ct = 4, pa = /* @__PURE__ */ E({
2706
2706
  __name: "lume-point",
2707
2707
  props: {
2708
2708
  x: { type: Number, required: !0 },
@@ -2731,7 +2731,7 @@ var fa = function() {
2731
2731
  return r("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${e.color}`, attrs: { cx: e.x, cy: e.y, r: e.active ? e.radius : 0, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(o) {
2732
2732
  return n.emit("click", o);
2733
2733
  } } });
2734
- }, ma = [], ha = /* @__PURE__ */ E(
2734
+ }, ma = [], ha = /* @__PURE__ */ w(
2735
2735
  pa,
2736
2736
  fa,
2737
2737
  ma,
@@ -2742,7 +2742,7 @@ var fa = function() {
2742
2742
  null
2743
2743
  );
2744
2744
  const ga = ha.exports;
2745
- function wt(t) {
2745
+ function Et(t) {
2746
2746
  function e(a) {
2747
2747
  let l = null;
2748
2748
  return a == null ? void 0 : a.reduce((i, u, c) => (u == null || u.value == null ? (l ? l.push(c) : l = [c], c === (a == null ? void 0 : a.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
@@ -2798,7 +2798,7 @@ function ka(t, e, r, n) {
2798
2798
  oe(r) ? ya(r, t) : ba(r, t)
2799
2799
  ).y((a) => n(a))(e);
2800
2800
  }
2801
- const dt = 1, Ta = /* @__PURE__ */ w({
2801
+ const dt = 1, Ta = /* @__PURE__ */ E({
2802
2802
  __name: "lume-line-group",
2803
2803
  props: {
2804
2804
  ...ke(),
@@ -2824,7 +2824,7 @@ const dt = 1, Ta = /* @__PURE__ */ w({
2824
2824
  ), c = d(() => {
2825
2825
  if (n.value.every((C) => C.isDashed))
2826
2826
  return n.value;
2827
- const { computedLineData: k } = wt(n);
2827
+ const { computedLineData: k } = Et(n);
2828
2828
  return o.value.withTooltip !== !1 && (i != null && i.value) && u(k.value), k.value;
2829
2829
  }), v = d(() => {
2830
2830
  if (r.hoveredIndex === -1)
@@ -2901,7 +2901,7 @@ var xa = function() {
2901
2901
  } } }, "lume-point", n.getPointPosition(i, a), !1));
2902
2902
  }), 1) : e._e()]);
2903
2903
  })], 2);
2904
- }, Aa = [], La = /* @__PURE__ */ E(
2904
+ }, Aa = [], La = /* @__PURE__ */ w(
2905
2905
  Ta,
2906
2906
  xa,
2907
2907
  Aa,
@@ -2917,7 +2917,7 @@ const Nt = La.exports, Oa = {
2917
2917
  withTooltip: !0,
2918
2918
  xAxisOptions: {},
2919
2919
  yAxisOptions: { gridLines: !0 }
2920
- }, $a = /* @__PURE__ */ w({
2920
+ }, $a = /* @__PURE__ */ E({
2921
2921
  __name: "lume-line-chart",
2922
2922
  props: {
2923
2923
  ...ue(null, !1)
@@ -2936,17 +2936,17 @@ var Ia = function() {
2936
2936
  return [e._t(a, null, null, l || {})];
2937
2937
  } };
2938
2938
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
2939
- }, Ea = [], wa = /* @__PURE__ */ E(
2939
+ }, wa = [], Ea = /* @__PURE__ */ w(
2940
2940
  $a,
2941
2941
  Ia,
2942
- Ea,
2942
+ wa,
2943
2943
  !1,
2944
2944
  null,
2945
2945
  null,
2946
2946
  null,
2947
2947
  null
2948
2948
  );
2949
- const Za = wa.exports;
2949
+ const Za = Ea.exports;
2950
2950
  function Na(t) {
2951
2951
  return { areaPathDefinition: d(
2952
2952
  () => function(r, n) {
@@ -2971,14 +2971,14 @@ const Ca = {
2971
2971
  tooltipOptions: {
2972
2972
  showTitle: !1
2973
2973
  }
2974
- }, Ha = /* @__PURE__ */ w({
2974
+ }, Ha = /* @__PURE__ */ E({
2975
2975
  __name: "lume-sparkline-chart",
2976
2976
  props: {
2977
2977
  ...Me(null),
2978
2978
  ..._e()
2979
2979
  },
2980
2980
  setup(t, { expose: e, emit: r }) {
2981
- const n = t, { componentEventPropagator: o } = X(r), a = ae(V()), { data: l, options: i } = S(n), { internalData: u } = ze(l), { allOptions: c } = Z(i, Ca), { computedLineData: v } = wt(u), { areaPathDefinition: s } = Na(v), _ = d(() => u.value[0].color), m = d(
2981
+ const n = t, { componentEventPropagator: o } = X(r), a = ae(V()), { data: l, options: i } = S(n), { internalData: u } = ze(l), { allOptions: c } = Z(i, Ca), { computedLineData: v } = Et(u), { areaPathDefinition: s } = Na(v), _ = d(() => u.value[0].color), m = d(
2982
2982
  () => l.value[0].areaColor || _.value
2983
2983
  );
2984
2984
  function f(y) {
@@ -3009,7 +3009,7 @@ var Da = function() {
3009
3009
  return [e._t(a, null, null, l || {})];
3010
3010
  } };
3011
3011
  })], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
3012
- }, Ra = [], Pa = /* @__PURE__ */ E(
3012
+ }, Ra = [], Pa = /* @__PURE__ */ w(
3013
3013
  Ha,
3014
3014
  Da,
3015
3015
  Ra,