@adyen/lume 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as C, ref as $, isRef as qe, computed as c, watch as D, toRefs as B, inject as pe, reactive as me, onMounted as U, onBeforeUnmount as et, watchEffect as tt, useSlots as j, provide as ke, defineAsyncComponent as Ae } from "vue";
2
- import { format as Lt, ticks as Ot, scaleBand as le, scaleLinear as ue, link as xt, line as $t, area as It } from "d3";
1
+ import { defineComponent as E, ref as $, isRef as qe, computed as c, watch as D, toRefs as B, inject as pe, reactive as me, onMounted as U, onBeforeUnmount as et, watchEffect as tt, useSlots as j, provide as ke, defineAsyncComponent as Ae } from "vue";
2
+ import { format as Lt, ticks as xt, scaleBand as le, scaleLinear as ue, link as Ot, line as $t, area as It } from "d3";
3
3
  import { createPopper as wt } from "@popperjs/core";
4
4
  import { sankeyLinkHorizontal as Et, sankey as Nt, sankeyJustify as Ct } from "d3-sankey";
5
- const Dt = /* @__PURE__ */ C({
5
+ const Dt = /* @__PURE__ */ E({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -93,7 +93,7 @@ var Rt = function() {
93
93
  null,
94
94
  null
95
95
  );
96
- const Bt = St.exports, Ft = [
96
+ const Bt = St.exports, Pt = [
97
97
  "controls",
98
98
  "legend",
99
99
  "axes",
@@ -112,7 +112,7 @@ function rt(t) {
112
112
  function Ne(t) {
113
113
  return t.length === 1;
114
114
  }
115
- function Pt(t) {
115
+ function Ft(t) {
116
116
  return !!t && t.every(
117
117
  (e) => "color" in e
118
118
  );
@@ -188,7 +188,7 @@ function Xt(t) {
188
188
  return Object.assign(
189
189
  {},
190
190
  ...Object.keys(t).map(
191
- (e) => Ft.includes(e) ? {} : { [e]: t[e] }
191
+ (e) => Pt.includes(e) ? {} : { [e]: t[e] }
192
192
  )
193
193
  );
194
194
  }
@@ -480,8 +480,8 @@ const vt = {
480
480
  "x-linear-scale-axis": ln,
481
481
  "y-linear-scale-axis": un
482
482
  };
483
- var Oe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Oe || {}), xe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(xe || {}), _e = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(_e || {});
484
- const cn = /* @__PURE__ */ C({
483
+ var xe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(xe || {}), Oe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Oe || {}), _e = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(_e || {});
484
+ const cn = /* @__PURE__ */ E({
485
485
  __name: "lume-axis",
486
486
  props: {
487
487
  scale: {
@@ -496,7 +496,7 @@ const cn = /* @__PURE__ */ C({
496
496
  position: {
497
497
  type: String,
498
498
  default: void 0,
499
- validator: (t) => t in xe
499
+ validator: (t) => t in Oe
500
500
  },
501
501
  containerSize: {
502
502
  type: Object,
@@ -524,53 +524,53 @@ const cn = /* @__PURE__ */ C({
524
524
  l,
525
525
  _.value === "x" ? nn : rn
526
526
  ), { showTick: p } = Jt(n, d, k.value.skip), T = c(() => {
527
- var w, N, H, g;
528
- return _.value === "y" && u.value ? `translate(0, ${((w = a.value) == null ? void 0 : w.height) / 2})` : _.value === "x" && u.value ? `translate(-${((N = a.value) == null ? void 0 : N.width) / 2}, ${(H = a.value) == null ? void 0 : H.height})` : `translate(0, ${_.value === "x" ? (g = a.value) == null ? void 0 : g.height : 0})`;
529
- }), O = c(() => {
527
+ var w, C, H, g;
528
+ return _.value === "y" && u.value ? `translate(0, ${((w = a.value) == null ? void 0 : w.height) / 2})` : _.value === "x" && u.value ? `translate(-${((C = a.value) == null ? void 0 : C.width) / 2}, ${(H = a.value) == null ? void 0 : H.height})` : `translate(0, ${_.value === "x" ? (g = a.value) == null ? void 0 : g.height : 0})`;
529
+ }), x = c(() => {
530
530
  if (te(n.value))
531
531
  return n.value.labels || n.value.domain();
532
- const { tickCount: w } = k.value, [N, H] = n.value.domain();
533
- return Ot(N, H, w);
532
+ const { tickCount: w } = k.value, [C, H] = n.value.domain();
533
+ return xt(C, H, w);
534
534
  }), A = c(() => {
535
535
  const { tickFormat: w } = k.value;
536
536
  return fe(w);
537
537
  }), y = c(
538
538
  () => k.value.withHover && m.value && o.value > -1
539
539
  );
540
- function E(w) {
541
- const { showTicks: N } = k.value;
542
- return N === !1 ? "" : A.value(w);
540
+ function N(w) {
541
+ const { showTicks: C } = k.value;
542
+ return C === !1 ? "" : A.value(w);
543
543
  }
544
- function R(w, N, H) {
545
- e("mouseenter", { index: m.value ? w : null, value: N, event: H });
544
+ function R(w, C, H) {
545
+ e("mouseenter", { index: m.value ? w : null, value: C, event: H });
546
546
  }
547
- function F(w, N, H) {
548
- e("click", { index: w, value: N, event: H });
547
+ function P(w, C, H) {
548
+ e("click", { index: w, value: C, event: H });
549
549
  }
550
550
  function G(w) {
551
551
  if (!(!d.value || !d.value.length))
552
552
  return d.value[w].ref;
553
553
  }
554
554
  function V() {
555
- f.value = O.value.map(
556
- (w, N) => ({
557
- value: E(w),
558
- group: s.getTickGroupAttributes(w, N),
559
- ghost: s.getTickGhostAttributes(G(N)),
555
+ f.value = x.value.map(
556
+ (w, C) => ({
557
+ value: N(w),
558
+ group: s.getTickGroupAttributes(w, C),
559
+ ghost: s.getTickGhostAttributes(G(C)),
560
560
  label: s.getTickLabelAttributes(),
561
561
  gridline: s.getGridLinesAttributes()
562
562
  })
563
563
  );
564
564
  }
565
565
  function W() {
566
- const w = n.value.step ? "bandScale" : "linearScale", N = sn[`${_.value}-${Oe[w]}`];
567
- Object.entries(N(n, a, k) || []).forEach(
566
+ const w = n.value.step ? "bandScale" : "linearScale", C = sn[`${_.value}-${xe[w]}`];
567
+ Object.entries(C(n, a, k) || []).forEach(
568
568
  ([H, g]) => {
569
569
  s[H] = g;
570
570
  }
571
571
  );
572
572
  }
573
- return D(n, W, { flush: "sync", immediate: !0 }), D(n, V, { immediate: !0 }), D(d, V), U(() => he(v.value)), { __sfc: !0, SCALE_MIXIN_MAP: Oe, POSITIONS: xe, TYPES: _e, props: r, emit: e, scale: n, containerSize: a, hoveredIndex: o, options: l, orientation: i, isEmpty: u, mixins: s, tickRefs: d, root: v, ticksWithAttributes: f, computedPosition: h, computedType: _, shouldHover: m, allOptions: k, showTick: p, axisTransform: T, ticks: O, tickFormatter: A, isHovering: y, formatTick: E, handleTickMouseenter: R, handleTickClick: F, getTextNode: G, setTicks: V, init: W, LumeTick: Bt };
573
+ return D(n, W, { flush: "sync", immediate: !0 }), D(n, V, { immediate: !0 }), D(d, V), U(() => he(v.value)), { __sfc: !0, SCALE_MIXIN_MAP: xe, POSITIONS: Oe, TYPES: _e, props: r, emit: e, scale: n, containerSize: a, hoveredIndex: o, options: l, orientation: i, isEmpty: u, mixins: s, tickRefs: d, root: v, ticksWithAttributes: f, computedPosition: h, computedType: _, shouldHover: m, allOptions: k, showTick: p, axisTransform: T, ticks: x, tickFormatter: A, isHovering: y, formatTick: N, handleTickMouseenter: R, handleTickClick: P, getTextNode: G, setTicks: V, init: W, LumeTick: Bt };
574
574
  }
575
575
  });
576
576
  var dn = function() {
@@ -619,7 +619,7 @@ function mn(t, e, r, n) {
619
619
  a.value = r.value, o.value = n.value;
620
620
  }), D(r, (i) => a.value = i), D(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
621
621
  }
622
- const hn = /* @__PURE__ */ C({
622
+ const hn = /* @__PURE__ */ E({
623
623
  __name: "lume-bar",
624
624
  props: {
625
625
  x: {
@@ -659,8 +659,8 @@ const hn = /* @__PURE__ */ C({
659
659
  setup(t, { emit: e }) {
660
660
  const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), s = $(null), d = c(
661
661
  () => typeof u.value == "string" ? [u.value] : u.value
662
- ), v = c(() => i.value === "width"), f = c(() => i.value === "height"), h = mn(n, a, o, l), { computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p } = pn(n, a, o, l), T = c(() => k.value ? 1 : (v.value ? h.computedWidth : o).value), O = c(() => p.value ? 1 : (f.value ? h.computedHeight : l).value), A = v.value || f.value ? h.transformOrigin : null;
663
- return U(() => he(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: d, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: h, computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p, computedWidth: T, computedHeight: O, transformOrigin: A };
662
+ ), v = c(() => i.value === "width"), f = c(() => i.value === "height"), h = mn(n, a, o, l), { computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p } = pn(n, a, o, l), T = c(() => k.value ? 1 : (v.value ? h.computedWidth : o).value), x = c(() => p.value ? 1 : (f.value ? h.computedHeight : l).value), A = v.value || f.value ? h.transformOrigin : null;
663
+ return U(() => he(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: d, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: h, computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p, computedWidth: T, computedHeight: x, transformOrigin: A };
664
664
  }
665
665
  });
666
666
  var gn = function() {
@@ -705,7 +705,7 @@ function kn() {
705
705
  r.unobserve(t.value);
706
706
  }), { resizeState: e, resizeRef: t };
707
707
  }
708
- const An = /* @__PURE__ */ C({
708
+ const An = /* @__PURE__ */ E({
709
709
  __name: "lume-chart-container",
710
710
  props: {
711
711
  margins: {
@@ -769,7 +769,7 @@ var Tn = function() {
769
769
  }, mouseleave: function(a) {
770
770
  return n.emit("mouseleave", a);
771
771
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.computedMargins.left}, ${n.computedMargins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
772
- }, Ln = [], On = /* @__PURE__ */ I(
772
+ }, Ln = [], xn = /* @__PURE__ */ I(
773
773
  An,
774
774
  Tn,
775
775
  Ln,
@@ -779,12 +779,12 @@ var Tn = function() {
779
779
  null,
780
780
  null
781
781
  );
782
- const xn = On.exports, $n = /* @__PURE__ */ C({
782
+ const On = xn.exports, $n = /* @__PURE__ */ E({
783
783
  __name: "lume-chart-legend",
784
784
  props: {
785
785
  data: {
786
786
  type: Array,
787
- validator: Pt,
787
+ validator: Ft,
788
788
  required: !0
789
789
  }
790
790
  },
@@ -832,20 +832,20 @@ var Dn = function() {
832
832
  );
833
833
  const Sn = Hn.exports;
834
834
  const Bn = {};
835
- var Fn = function() {
835
+ var Pn = function() {
836
836
  var e = this, r = e._self._c;
837
837
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
838
- }, Pn = [], Gn = /* @__PURE__ */ I(
838
+ }, Fn = [], Gn = /* @__PURE__ */ I(
839
839
  Bn,
840
- Fn,
841
840
  Pn,
841
+ Fn,
842
842
  !1,
843
843
  null,
844
844
  "4ed7ec1b",
845
845
  null,
846
846
  null
847
847
  );
848
- const Vn = Gn.exports, jn = /* @__PURE__ */ C({
848
+ const Vn = Gn.exports, jn = /* @__PURE__ */ E({
849
849
  __name: "lume-tooltip-item",
850
850
  props: {
851
851
  color: {
@@ -870,7 +870,7 @@ var Mn = function() {
870
870
  null,
871
871
  null
872
872
  );
873
- const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
873
+ const Zn = Wn.exports, Xn = /* @__PURE__ */ E({
874
874
  __name: "lume-tooltip",
875
875
  props: {
876
876
  targetElement: {
@@ -943,7 +943,7 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
943
943
  function T() {
944
944
  i.value && (i.value.destroy(), e("closed"));
945
945
  }
946
- function O() {
946
+ function x() {
947
947
  i.value && (n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
948
948
  i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
949
949
  }() : T());
@@ -951,9 +951,9 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ C({
951
951
  return D(
952
952
  () => r.targetElement,
953
953
  (A, y) => {
954
- !y && A ? p() : O();
954
+ !y && A ? p() : x();
955
955
  }
956
- ), U(p), et(T), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: d, allModifiers: v, showTitle: f, formatValue: h, formatTitle: _, summaryItem: m, hasSummary: k, initPopper: p, destroyPopper: T, updatePopper: O, LumeTooltipTitle: Sn, LumeTooltipSummary: Vn, LumeTooltipItem: Zn };
956
+ ), U(p), et(T), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: d, allModifiers: v, showTitle: f, formatValue: h, formatTitle: _, summaryItem: m, hasSummary: k, initPopper: p, destroyPopper: T, updatePopper: x, LumeTooltipTitle: Sn, LumeTooltipSummary: Vn, LumeTooltipItem: Zn };
957
957
  }
958
958
  });
959
959
  var Un = function() {
@@ -994,7 +994,7 @@ function er(t) {
994
994
  function tr(t) {
995
995
  return Object.values(De).includes(t);
996
996
  }
997
- function Pe(t, e) {
997
+ function Fe(t, e) {
998
998
  return e === J.Divergent ? Object.values(Ce).includes(t) : Object.values({
999
999
  ...M,
1000
1000
  ...ot,
@@ -1026,7 +1026,7 @@ function Ge(t, e, r) {
1026
1026
  }
1027
1027
  }
1028
1028
  function or(t, e, r = Qn, n) {
1029
- return Pe(t, r) ? t : (n > 4 && (Q(X.ColorLoop), n = n % 5), Pe(e, r) ? Ge(e, r, n) : Ge(er(r), r, n));
1029
+ return Fe(t, r) ? t : (n > 4 && (Q(X.ColorLoop), n = n % 5), Fe(e, r) ? Ge(e, r, n) : Ge(er(r), r, n));
1030
1030
  }
1031
1031
  function lr(t) {
1032
1032
  return t.map((e) => Gt(e) ? e : { value: e });
@@ -1227,7 +1227,7 @@ const ae = (t, e = !0) => ({
1227
1227
  type: [String, Array],
1228
1228
  default: () => []
1229
1229
  }
1230
- }), dr = /* @__PURE__ */ C({
1230
+ }), dr = /* @__PURE__ */ E({
1231
1231
  __name: "lume-overlay-group",
1232
1232
  props: {
1233
1233
  ...ge(),
@@ -1362,7 +1362,7 @@ function kr(t) {
1362
1362
  })
1363
1363
  ) };
1364
1364
  }
1365
- const Ar = /* @__PURE__ */ C({
1365
+ const Ar = /* @__PURE__ */ E({
1366
1366
  __name: "lume-chart",
1367
1367
  props: {
1368
1368
  ...ae(),
@@ -1372,19 +1372,19 @@ const Ar = /* @__PURE__ */ C({
1372
1372
  }
1373
1373
  },
1374
1374
  setup(t, { emit: e }) {
1375
- const r = t, n = j(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = B(r), d = $(-1), v = $(null), f = $(null), h = $([]), { allOptions: _ } = z(i), { internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: O } = Se(a, o, l, _, u), { xScale: A, yScale: y } = sr(
1375
+ const r = t, n = j(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = B(r), d = $(-1), v = $(null), f = $(null), h = $([]), { allOptions: _ } = z(i), { internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: x } = Se(a, o, l, _, u), { xScale: A, yScale: y } = sr(
1376
1376
  m,
1377
1377
  k,
1378
1378
  p,
1379
1379
  u,
1380
1380
  _
1381
- ), E = c(() => {
1381
+ ), N = c(() => {
1382
1382
  var b;
1383
1383
  return r.xScale ? Me(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, m.value, o.value, p) : A.value;
1384
1384
  }), R = c(() => {
1385
1385
  var b;
1386
1386
  return r.yScale ? Me(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, m.value, o.value, p) : y.value;
1387
- }), F = c(() => ({
1387
+ }), P = c(() => ({
1388
1388
  ..._.value.xAxisOptions,
1389
1389
  withHover: u.value === L.VERTICAL
1390
1390
  })), G = c(() => ({
@@ -1399,28 +1399,28 @@ const Ar = /* @__PURE__ */ C({
1399
1399
  }), w = c(() => {
1400
1400
  var b;
1401
1401
  return ((b = _.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && V.value;
1402
- }), N = c(() => {
1402
+ }), C = c(() => {
1403
1403
  var b;
1404
1404
  return ((b = _.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && W.value;
1405
1405
  }), H = c(
1406
1406
  () => a.value.every((b) => !b.values.length)
1407
1407
  ), g = c(() => {
1408
- const b = [], { noBaseScales: P } = _.value;
1409
- return P || b.push(() => !!(E.value && R.value)), b.every((K) => K() === !0);
1410
- }), { hasNegativeValues: x } = mr(m), { negativeBarAttributes: S } = hr(
1408
+ const b = [], { noBaseScales: F } = _.value;
1409
+ return F || b.push(() => !!(N.value && R.value)), b.every((K) => K() === !0);
1410
+ }), { hasNegativeValues: O } = mr(m), { negativeBarAttributes: S } = hr(
1411
1411
  p,
1412
- E,
1412
+ N,
1413
1413
  R,
1414
1414
  u
1415
1415
  ), { shouldGenerateTooltipAnchors: ce } = ft(
1416
1416
  h,
1417
1417
  _,
1418
- E,
1418
+ N,
1419
1419
  R,
1420
1420
  u,
1421
1421
  m,
1422
1422
  s
1423
- ), { tooltipConfig: Y, showTooltip: Z, hideTooltip: de } = br(), { getTooltipItems: Fe } = kr(m), ve = c(
1423
+ ), { tooltipConfig: Y, showTooltip: Z, hideTooltip: de } = br(), { getTooltipItems: Pe } = kr(m), ve = c(
1424
1424
  () => _.value.withTooltip !== !1 && Y.opened
1425
1425
  ), bt = c(
1426
1426
  () => {
@@ -1429,9 +1429,9 @@ const Ar = /* @__PURE__ */ C({
1429
1429
  }
1430
1430
  );
1431
1431
  function ye(b) {
1432
- var P;
1432
+ var F;
1433
1433
  if (b !== d.value && (_.value.withHover !== !1 && (d.value = b), _.value.withTooltip !== !1)) {
1434
- const K = (P = _.value.tooltipOptions) != null && P.targetElement ? _.value.tooltipOptions.targetElement === "self" ? f.value.$el : _.value.tooltipOptions.targetElement : v.value[b];
1434
+ const K = (F = _.value.tooltipOptions) != null && F.targetElement ? _.value.tooltipOptions.targetElement === "self" ? f.value.$el : _.value.tooltipOptions.targetElement : v.value[b];
1435
1435
  Z(K);
1436
1436
  }
1437
1437
  }
@@ -1445,18 +1445,18 @@ const Ar = /* @__PURE__ */ C({
1445
1445
  function kt() {
1446
1446
  de(), d.value = -1, e("chart-mouseleave");
1447
1447
  }
1448
- function At({ index: b, value: P, event: K }) {
1449
- b !== null && ye(b), e("axis-mouseenter", { index: b, value: P, event: K });
1448
+ function At({ index: b, value: F, event: K }) {
1449
+ b !== null && ye(b), e("axis-mouseenter", { index: b, value: F, event: K });
1450
1450
  }
1451
- function Tt({ index: b, value: P, event: K }) {
1452
- e("axis-click", { index: b, value: P, event: K });
1451
+ function Tt({ index: b, value: F, event: K }) {
1452
+ e("axis-click", { index: b, value: F, event: K });
1453
1453
  }
1454
1454
  return D(
1455
1455
  a,
1456
- (b, P) => e("data-changed", { newValue: b, oldValue: P })
1456
+ (b, F) => e("data-changed", { newValue: b, oldValue: F })
1457
1457
  ), D(
1458
1458
  o,
1459
- (b, P) => e("labels-changed", { newValue: b, oldValue: P })
1459
+ (b, F) => e("labels-changed", { newValue: b, oldValue: F })
1460
1460
  ), D(H, (b) => b && Q(X.Empty), { immediate: !0 }), D(() => r.hoveredIndex, be), D(
1461
1461
  h,
1462
1462
  (b) => {
@@ -1465,7 +1465,7 @@ const Ar = /* @__PURE__ */ C({
1465
1465
  { flush: "post" }
1466
1466
  ), U(() => {
1467
1467
  e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.');
1468
- }), ke("chartID", O), ke("isEmpty", H), ke("tooltipAnchorAttributes", h), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: d, tooltipAnchor: v, chartContainer: f, tooltipAnchorAttributes: h, allOptions: _, internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: O, xScale: A, yScale: y, computedXScale: E, computedYScale: R, computedXAxisOptions: F, computedYAxisOptions: G, xAxisTitle: V, yAxisTitle: W, showXAxisTitle: w, showYAxisTitle: N, isEmpty: H, isReady: g, hasNegativeValues: x, negativeBarAttributes: S, shouldGenerateTooltipAnchors: ce, tooltipConfig: Y, showTooltip: Z, hideTooltip: de, getTooltipItems: Fe, isTooltipOpened: ve, tooltipPosition: bt, handleInternalHover: ye, handleExternalHover: be, handleMouseleave: kt, handleAxisMouseenter: At, handleAxisClick: Tt, LumeAxis: fn, LumeBar: Re, LumeChartContainer: xn, LumeChartLegend: Nn, LumeTooltip: Jn, LumeOverlayGroup: pr, TOOLTIP_ANCHOR_RADIUS: en };
1468
+ }), ke("chartID", x), ke("isEmpty", H), ke("tooltipAnchorAttributes", h), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: d, tooltipAnchor: v, chartContainer: f, tooltipAnchorAttributes: h, allOptions: _, internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: x, xScale: A, yScale: y, computedXScale: N, computedYScale: R, computedXAxisOptions: P, computedYAxisOptions: G, xAxisTitle: V, yAxisTitle: W, showXAxisTitle: w, showYAxisTitle: C, isEmpty: H, isReady: g, hasNegativeValues: O, negativeBarAttributes: S, shouldGenerateTooltipAnchors: ce, tooltipConfig: Y, showTooltip: Z, hideTooltip: de, getTooltipItems: Pe, isTooltipOpened: ve, tooltipPosition: bt, handleInternalHover: ye, handleExternalHover: be, handleMouseleave: kt, handleAxisMouseenter: At, handleAxisClick: Tt, LumeAxis: fn, LumeBar: Re, LumeChartContainer: On, LumeChartLegend: Nn, LumeTooltip: Jn, LumeOverlayGroup: pr, TOOLTIP_ANCHOR_RADIUS: en };
1469
1469
  }
1470
1470
  });
1471
1471
  var Tr = function() {
@@ -1517,7 +1517,7 @@ var Tr = function() {
1517
1517
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(a, o) {
1518
1518
  return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
1519
1519
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1520
- }, Lr = [], Or = /* @__PURE__ */ I(
1520
+ }, Lr = [], xr = /* @__PURE__ */ I(
1521
1521
  Ar,
1522
1522
  Tr,
1523
1523
  Lr,
@@ -1527,33 +1527,47 @@ var Tr = function() {
1527
1527
  null,
1528
1528
  null
1529
1529
  );
1530
- const oe = Or.exports;
1531
- const xr = {};
1530
+ const oe = xr.exports, Or = /* @__PURE__ */ E({
1531
+ __name: "lume-alluvial-node-label",
1532
+ props: {
1533
+ bottom: { type: Boolean, default: !1 }
1534
+ },
1535
+ setup(t) {
1536
+ return { __sfc: !0 };
1537
+ }
1538
+ });
1532
1539
  var $r = function() {
1533
1540
  var e = this, r = e._self._c;
1534
- return r("text", { staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2);
1541
+ return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1535
1542
  }, Ir = [], wr = /* @__PURE__ */ I(
1536
- xr,
1543
+ Or,
1537
1544
  $r,
1538
1545
  Ir,
1539
1546
  !1,
1540
1547
  null,
1541
- "501ec212",
1548
+ "d2a7cb8e",
1542
1549
  null,
1543
1550
  null
1544
1551
  );
1545
- const Er = wr.exports;
1546
- const Nr = {};
1552
+ const Er = wr.exports, Nr = /* @__PURE__ */ E({
1553
+ __name: "lume-alluvial-node-value",
1554
+ props: {
1555
+ bottom: { type: Boolean, default: !0 }
1556
+ },
1557
+ setup(t) {
1558
+ return { __sfc: !0 };
1559
+ }
1560
+ });
1547
1561
  var Cr = function() {
1548
1562
  var e = this, r = e._self._c;
1549
- return r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { x: "0", dy: "1.2em" } }, [e._t("default")], 2);
1563
+ return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1550
1564
  }, Dr = [], Rr = /* @__PURE__ */ I(
1551
1565
  Nr,
1552
1566
  Cr,
1553
1567
  Dr,
1554
1568
  !1,
1555
1569
  null,
1556
- "c1658103",
1570
+ "002e2887",
1557
1571
  null,
1558
1572
  null
1559
1573
  );
@@ -1575,10 +1589,10 @@ function Sr(t) {
1575
1589
  }
1576
1590
  var pt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(pt || {});
1577
1591
  const Br = "[lume] ";
1578
- function Fr(t, e, r = !0) {
1592
+ function Pr(t, e, r = !0) {
1579
1593
  r && nt() || console.error(Br + "Error: " + t, e);
1580
1594
  }
1581
- const Xe = 8, Pr = 8, Gr = 20, Vr = 200;
1595
+ const Xe = 8, Fr = 8, Gr = 20, Vr = 200;
1582
1596
  function re(t) {
1583
1597
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1584
1598
  }
@@ -1631,7 +1645,7 @@ function Xr(t) {
1631
1645
  return [t.target.x0, t.y1];
1632
1646
  }
1633
1647
  function Ur(t) {
1634
- return t.curveFunction ? xt(t.curveFunction).source(Zr).target(Xr) : Et();
1648
+ return t.curveFunction ? Ot(t.curveFunction).source(Zr).target(Xr) : Et();
1635
1649
  }
1636
1650
  function Yr(t) {
1637
1651
  return t.map((e) => {
@@ -1703,7 +1717,7 @@ function Jr(t, e, r) {
1703
1717
  [s, d]
1704
1718
  ])({ nodes: a.value, links: o.value });
1705
1719
  } catch (i) {
1706
- Fr(pt.GraphProblem, i), n.value = Kr;
1720
+ Pr(pt.GraphProblem, i), n.value = Kr;
1707
1721
  }
1708
1722
  }), { graph: n };
1709
1723
  }
@@ -1781,7 +1795,7 @@ function ta(t, e, r) {
1781
1795
  });
1782
1796
  }), { highlightedElements: a, hoveredElement: n };
1783
1797
  }
1784
- const na = /* @__PURE__ */ C({
1798
+ const na = /* @__PURE__ */ E({
1785
1799
  __name: "lume-alluvial-group",
1786
1800
  props: {
1787
1801
  ...ge(),
@@ -1799,31 +1813,31 @@ const na = /* @__PURE__ */ C({
1799
1813
  ), _ = c(() => fe(o.value.valueFormat)), m = c(
1800
1814
  () => Object.keys(h.value.nodes)
1801
1815
  ), k = c(
1802
- () => l.value.reduce((g, x) => {
1803
- const S = x.x + o.value.nodeWidth / 2;
1816
+ () => l.value.reduce((g, O) => {
1817
+ const S = O.x + o.value.nodeWidth / 2;
1804
1818
  return g.includes(S) ? g : [...g, S];
1805
- }, []).sort((g, x) => g - x)
1819
+ }, []).sort((g, O) => g - O)
1806
1820
  // Make sure positions are sorted in ascending order
1807
1821
  ), p = c(() => {
1808
1822
  if (!(!o.value.nodeHeaders || !o.value.nodeHeaders.length))
1809
- return o.value.nodeHeaders.slice(0, k.value.length).map((g, x) => ({
1823
+ return o.value.nodeHeaders.slice(0, k.value.length).map((g, O) => ({
1810
1824
  label: g,
1811
- x: k.value[x]
1825
+ x: k.value[O]
1812
1826
  }));
1813
1827
  }), T = c(
1814
1828
  () => o.value.nodeHeaderPadding ?? Gr
1815
- ), O = c(() => {
1829
+ ), x = c(() => {
1816
1830
  if (!(!o.value.gradient || !v.value))
1817
- return v.value.links.reduce((g, x) => (g[ee(x)] = {
1818
- source: x.source.color || x.source.fallbackColor,
1819
- target: x.target.color || x.target.fallbackColor,
1820
- x1: x.source.x1,
1821
- x2: x.target.x0
1831
+ return v.value.links.reduce((g, O) => (g[ee(O)] = {
1832
+ source: O.source.color || O.source.fallbackColor,
1833
+ target: O.target.color || O.target.fallbackColor,
1834
+ x1: O.source.x1,
1835
+ x2: O.target.x0
1822
1836
  }, g), {});
1823
1837
  }), A = c(() => {
1824
1838
  const g = l.value.filter(
1825
1839
  (S) => V(S)
1826
- ), x = [];
1840
+ ), O = [];
1827
1841
  return g.forEach((S) => {
1828
1842
  const ce = [];
1829
1843
  i.value.filter(({ link: Y }) => Y.target.id === S.node.id).reverse().reduce((Y, Z) => {
@@ -1836,22 +1850,22 @@ const na = /* @__PURE__ */ C({
1836
1850
  key: `node-block-${S.node.id}-source-link-${Z.link.source.id}`,
1837
1851
  class: `lume-alluvial-group__node-block lume-fill--${Z.link.source.color || se}`
1838
1852
  }), Y + ve;
1839
- }, 0), x.push({
1853
+ }, 0), O.push({
1840
1854
  id: S.node.id,
1841
1855
  subNodes: ce
1842
1856
  });
1843
- }), x;
1857
+ }), O;
1844
1858
  });
1845
1859
  function y(g) {
1846
1860
  return o.value.gradient && `url('#${n}_${ee(g)}')`;
1847
1861
  }
1848
- function E(g) {
1862
+ function N(g) {
1849
1863
  return m.value.length > 0 && !m.value.includes(g.toString());
1850
1864
  }
1851
1865
  function R(g) {
1852
1866
  return m.value.length > 0 && m.value.includes(g.toString());
1853
1867
  }
1854
- function F(g) {
1868
+ function P(g) {
1855
1869
  return h.value.links.length > 0 && !h.value.links.includes(g);
1856
1870
  }
1857
1871
  function G(g) {
@@ -1860,37 +1874,37 @@ const na = /* @__PURE__ */ C({
1860
1874
  function V(g) {
1861
1875
  return !g.node.color && g.node.deriveColorFromIncomingLinks;
1862
1876
  }
1863
- function W(g, x) {
1864
- g !== f.value && (f.value = g, e("link-mouseenter", { link: g, event: x }));
1877
+ function W(g, O) {
1878
+ g !== f.value && (f.value = g, e("link-mouseenter", { link: g, event: O }));
1865
1879
  }
1866
1880
  function w(g) {
1867
- const x = f.value;
1868
- f.value = null, e("link-mouseleave", { link: x, event: g });
1881
+ const O = f.value;
1882
+ f.value = null, e("link-mouseleave", { link: O, event: g });
1869
1883
  }
1870
- function N(g) {
1884
+ function C(g) {
1871
1885
  if (g == null) {
1872
1886
  f.value = null;
1873
1887
  return;
1874
1888
  }
1875
- const x = jr(g, v.value) || Mr(g, v.value);
1876
- if (!x) {
1889
+ const O = jr(g, v.value) || Mr(g, v.value);
1890
+ if (!O) {
1877
1891
  Q(X.InvalidHoveredElement);
1878
1892
  return;
1879
1893
  }
1880
- f.value = x;
1894
+ f.value = O;
1881
1895
  }
1882
1896
  function H(g) {
1883
- var x;
1884
- return ((x = A.value.find(({ id: S }) => g === S)) == null ? void 0 : x.subNodes) ?? [];
1897
+ var O;
1898
+ return ((O = A.value.find(({ id: S }) => g === S)) == null ? void 0 : O.subNodes) ?? [];
1885
1899
  }
1886
1900
  return D(v, (g) => {
1887
- l.value = Wr(g.nodes), i.value = Yr(g.links).reverse(), f.value == null && r.hoveredElementId != null && N(r.hoveredElementId);
1901
+ l.value = Wr(g.nodes), i.value = Yr(g.links).reverse(), f.value == null && r.hoveredElementId != null && C(r.hoveredElementId);
1888
1902
  }), D([r.containerSize, u], () => {
1889
1903
  if (r.containerSize.width && r.containerSize.height) {
1890
1904
  const g = zr(v.value, u.value);
1891
1905
  d(g);
1892
1906
  }
1893
- }), D(() => r.hoveredElementId, N), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: d, graph: v, hoveredElement: f, highlightedElements: h, formatValue: _, hoveredNodeIds: m, nodeColumnPositions: k, nodeHeaders: p, computedNodeHeaderPadding: T, gradients: O, nodesDerivingColorFromIncomingLinks: A, getLinkStroke: y, isNodeFaded: E, isNodeFocused: R, isLinkFaded: F, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: V, handleLinkMouseover: W, handleLinkMouseleave: w, handleExternalHover: N, getSubNodesDerivingColorFromIncomingLinks: H, LumeAlluvialNodeLabel: Er, LumeAlluvialNodeValue: Hr, GHOST_STROKE_WIDTH_OFFSET: Pr };
1907
+ }), D(() => r.hoveredElementId, C), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: d, graph: v, hoveredElement: f, highlightedElements: h, formatValue: _, hoveredNodeIds: m, nodeColumnPositions: k, nodeHeaders: p, computedNodeHeaderPadding: T, gradients: x, nodesDerivingColorFromIncomingLinks: A, getLinkStroke: y, isNodeFaded: N, isNodeFocused: R, isLinkFaded: P, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: V, handleLinkMouseover: W, handleLinkMouseleave: w, handleExternalHover: C, getSubNodesDerivingColorFromIncomingLinks: H, LumeAlluvialNodeLabel: Er, LumeAlluvialNodeValue: Hr, GHOST_STROKE_WIDTH_OFFSET: Fr };
1894
1908
  }
1895
1909
  });
1896
1910
  var ra = function() {
@@ -1939,7 +1953,7 @@ var ra = function() {
1939
1953
  }) : r("rect", { staticClass: "lume-alluvial-group__node-block", class: `lume-fill--${a.node.color || a.node.fallbackColor}`, attrs: { x: a.x, y: a.y, height: a.height, width: a.width } }), r("g", { ref: "nodeTextRefs", refInFor: !0, staticClass: "lume-alluvial-group__node-text lume-typography--caption", class: {
1940
1954
  "lume-alluvial-group__node-text--left": a.node.depth === 0
1941
1955
  }, attrs: { transform: `translate(${a.textTransform.x},${a.textTransform.y})`, "data-id": a.node.id } }, [e._t(`node-text-${a.node.id}`, function() {
1942
- return [r(n.LumeAlluvialNodeLabel, [e._v(" " + e._s(a.node.label) + " ")]), r(n.LumeAlluvialNodeValue, [e._v(" " + e._s(n.formatValue(a.node.transitionValue || a.node.value, a.node.value)) + " ")])];
1956
+ return [r(n.LumeAlluvialNodeLabel, { attrs: { bottom: n.options.switchText } }, [e._v(" " + e._s(a.node.label) + " ")]), r(n.LumeAlluvialNodeValue, { attrs: { bottom: !n.options.switchText } }, [e._v(" " + e._s(n.formatValue(a.node.transitionValue || a.node.value, a.node.value)) + " ")])];
1943
1957
  }, { node: a.node, value: n.formatValue(
1944
1958
  a.node.transitionValue || a.node.value,
1945
1959
  a.node.value
@@ -1951,7 +1965,7 @@ var ra = function() {
1951
1965
  aa,
1952
1966
  !1,
1953
1967
  null,
1954
- "fc6879dc",
1968
+ "bda77c32",
1955
1969
  null,
1956
1970
  null
1957
1971
  );
@@ -1973,7 +1987,7 @@ const la = oa.exports, ua = {
1973
1987
  nodeWidth: 16,
1974
1988
  nodeAlign: Ct,
1975
1989
  valueFormat: (t) => String(t)
1976
- }, ia = /* @__PURE__ */ C({
1990
+ }, ia = /* @__PURE__ */ E({
1977
1991
  __name: "lume-alluvial-diagram",
1978
1992
  props: {
1979
1993
  ...cr(Ne)
@@ -2015,7 +2029,7 @@ var sa = function() {
2015
2029
  );
2016
2030
  const To = da.exports;
2017
2031
  var Ee = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Ee || {});
2018
- const va = /* @__PURE__ */ C({
2032
+ const va = /* @__PURE__ */ E({
2019
2033
  __name: "lume-bar-chart",
2020
2034
  props: {
2021
2035
  ...ae(),
@@ -2141,12 +2155,12 @@ function ka(t, e, r, n, a, o) {
2141
2155
  return l.value ? r.value.bandwidth() : v < 0 ? r.value(v) - r.value(0) : r.value(0) - r.value(v);
2142
2156
  }
2143
2157
  function d(v, f, h) {
2144
- const { value: _, color: m } = v, k = m ?? t.value[f].color ?? se, { x: p, y: T } = i(_, h), O = u(_), A = s(_);
2158
+ const { value: _, color: m } = v, k = m ?? t.value[f].color ?? se, { x: p, y: T } = i(_, h), x = u(_), A = s(_);
2145
2159
  return {
2146
2160
  classList: [`lume-fill--${k}`, ...o],
2147
2161
  x: p,
2148
2162
  y: T,
2149
- width: O,
2163
+ width: x,
2150
2164
  height: A,
2151
2165
  isFaded: a.value !== -1 && a.value !== h,
2152
2166
  isNegative: _ < 0
@@ -2178,12 +2192,12 @@ function Aa(t, e, r, n, a, o) {
2178
2192
  return l.value ? u.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
2179
2193
  }
2180
2194
  function h(_, m, k) {
2181
- const { value: p, color: T } = _, O = T ?? t.value[m].color ?? Object.values(M)[m], A = s(p, k, m), y = d(p, k, m), E = v(p), R = f(p);
2195
+ const { value: p, color: T } = _, x = T ?? t.value[m].color ?? Object.values(M)[m], A = s(p, k, m), y = d(p, k, m), N = v(p), R = f(p);
2182
2196
  return {
2183
- classList: [`lume-fill--${O}`, ...o],
2197
+ classList: [`lume-fill--${x}`, ...o],
2184
2198
  x: A,
2185
2199
  y,
2186
- width: E,
2200
+ width: N,
2187
2201
  height: R,
2188
2202
  isFaded: a.value !== -1 && a.value !== k,
2189
2203
  isNegative: p < 0
@@ -2234,9 +2248,9 @@ function La(t, e, r, n, a, o) {
2234
2248
  ), u = c(
2235
2249
  () => t.value.map((p) => p.values.map((T) => T == null ? void 0 : T.value))
2236
2250
  );
2237
- function s(p, T, O) {
2251
+ function s(p, T, x) {
2238
2252
  let A, y;
2239
- return l.value ? (A = e.value(p >= 0 ? 0 + O : p + O), y = r.value(i.value[T])) : (A = e.value(i.value[T]), y = r.value(p >= 0 ? p + O : 0 + O)), { x: A, y };
2253
+ return l.value ? (A = e.value(p >= 0 ? 0 + x : p + x), y = r.value(i.value[T])) : (A = e.value(i.value[T]), y = r.value(p >= 0 ? p + x : 0 + x)), { x: A, y };
2240
2254
  }
2241
2255
  function d(p) {
2242
2256
  return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
@@ -2251,20 +2265,20 @@ function La(t, e, r, n, a, o) {
2251
2265
  return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
2252
2266
  }
2253
2267
  function _(p, T) {
2254
- return p ? u.value.reduce((O, A, y) => (y < p && A[T] >= 0 && (O += A[T]), O), 0) : 0;
2268
+ return p ? u.value.reduce((x, A, y) => (y < p && A[T] >= 0 && (x += A[T]), x), 0) : 0;
2255
2269
  }
2256
2270
  function m(p, T) {
2257
- return p ? u.value.reduce((O, A, y) => (y < p && A[T] < 0 && (O += A[T]), O), 0) : 0;
2271
+ return p ? u.value.reduce((x, A, y) => (y < p && A[T] < 0 && (x += A[T]), x), 0) : 0;
2258
2272
  }
2259
- function k(p, T, O) {
2260
- const { value: A, color: y } = p, E = A >= 0 ? d(A) : v(A), R = A >= 0 ? f(A) : h(A), F = A >= 0 ? _(T, O) : m(T, O), { x: G, y: V } = s(A, O, F);
2273
+ function k(p, T, x) {
2274
+ const { value: A, color: y } = p, N = A >= 0 ? d(A) : v(A), R = A >= 0 ? f(A) : h(A), P = A >= 0 ? _(T, x) : m(T, x), { x: G, y: V } = s(A, x, P);
2261
2275
  return {
2262
2276
  classList: [`lume-fill--${y ?? t.value[T].color ?? Object.values(M)[T]}`, ...o],
2263
- width: E,
2277
+ width: N,
2264
2278
  height: R,
2265
2279
  x: G,
2266
2280
  y: V,
2267
- isFaded: a.value !== -1 && a.value !== O,
2281
+ isFaded: a.value !== -1 && a.value !== x,
2268
2282
  isNegative: A < 0
2269
2283
  };
2270
2284
  }
@@ -2274,7 +2288,7 @@ const Ye = {
2274
2288
  single: ka,
2275
2289
  grouped: Aa,
2276
2290
  stacked: La
2277
- }, Oa = /* @__PURE__ */ C({
2291
+ }, xa = /* @__PURE__ */ E({
2278
2292
  __name: "lume-bar-group",
2279
2293
  props: {
2280
2294
  ...ge(),
@@ -2316,7 +2330,7 @@ const Ye = {
2316
2330
  return { __sfc: !0, MIXIN_MAP: Ye, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: s, classList: d, groupedData: v, barXScale: f, barYScale: h, computedClasses: _, getBarAttributes: m, computedTransition: k, LumeBar: Re };
2317
2331
  }
2318
2332
  });
2319
- var xa = function() {
2333
+ var Oa = function() {
2320
2334
  var e = this, r = e._self._c, n = e._self._setupProxy;
2321
2335
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
2322
2336
  return r("g", { key: o, on: { mouseenter: function(l) {
@@ -2332,8 +2346,8 @@ var xa = function() {
2332
2346
  }), 1);
2333
2347
  }), 0);
2334
2348
  }, $a = [], Ia = /* @__PURE__ */ I(
2335
- Oa,
2336
2349
  xa,
2350
+ Oa,
2337
2351
  $a,
2338
2352
  !1,
2339
2353
  null,
@@ -2354,7 +2368,7 @@ const Be = Ia.exports, wa = {
2354
2368
  yAxisOptions: { gridLines: !1 },
2355
2369
  margins: q.HORIZONTAL
2356
2370
  }
2357
- }, Ea = /* @__PURE__ */ C({
2371
+ }, Ea = /* @__PURE__ */ E({
2358
2372
  __name: "lume-single-bar-chart",
2359
2373
  props: {
2360
2374
  ...ae(Ne)
@@ -2386,7 +2400,7 @@ var Na = function() {
2386
2400
  null,
2387
2401
  null
2388
2402
  );
2389
- const Oo = Da.exports, Ra = {
2403
+ const xo = Da.exports, Ra = {
2390
2404
  [L.VERTICAL]: {
2391
2405
  withTooltip: !0,
2392
2406
  xAxisOptions: {},
@@ -2400,7 +2414,7 @@ const Oo = Da.exports, Ra = {
2400
2414
  margins: q.HORIZONTAL,
2401
2415
  tooltipOptions: { position: "right" }
2402
2416
  }
2403
- }, Ha = /* @__PURE__ */ C({
2417
+ }, Ha = /* @__PURE__ */ E({
2404
2418
  __name: "lume-grouped-bar-chart",
2405
2419
  props: {
2406
2420
  ...ae()
@@ -2425,7 +2439,7 @@ var Sa = function() {
2425
2439
  return [e._t(o, null, null, l || {})];
2426
2440
  } };
2427
2441
  })], null, !0) }, "lume-chart", n.props, !1));
2428
- }, Ba = [], Fa = /* @__PURE__ */ I(
2442
+ }, Ba = [], Pa = /* @__PURE__ */ I(
2429
2443
  Ha,
2430
2444
  Sa,
2431
2445
  Ba,
@@ -2435,7 +2449,7 @@ var Sa = function() {
2435
2449
  null,
2436
2450
  null
2437
2451
  );
2438
- const xo = Fa.exports, Pa = {
2452
+ const Oo = Pa.exports, Fa = {
2439
2453
  [L.VERTICAL]: {
2440
2454
  withTooltip: !0,
2441
2455
  xAxisOptions: {},
@@ -2449,14 +2463,14 @@ const xo = Fa.exports, Pa = {
2449
2463
  margins: q.HORIZONTAL,
2450
2464
  tooltipOptions: { position: "right" }
2451
2465
  }
2452
- }, Ga = /* @__PURE__ */ C({
2466
+ }, Ga = /* @__PURE__ */ E({
2453
2467
  __name: "lume-stacked-bar-chart",
2454
2468
  props: {
2455
2469
  ...ae()
2456
2470
  },
2457
2471
  setup(t) {
2458
2472
  const e = t, r = ne(j()), { data: n, orientation: a, options: o } = B(e), l = c(
2459
- () => Pa[a.value || L.VERTICAL]
2473
+ () => Fa[a.value || L.VERTICAL]
2460
2474
  // needs to be computed so that default options are reactive
2461
2475
  ), { allOptions: i } = z(
2462
2476
  o,
@@ -2487,7 +2501,7 @@ var Va = function() {
2487
2501
  null,
2488
2502
  null
2489
2503
  );
2490
- const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */ C({
2504
+ const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */ E({
2491
2505
  __name: "lume-line",
2492
2506
  props: {
2493
2507
  pathDefinition: {
@@ -2547,7 +2561,7 @@ var Wa = function() {
2547
2561
  null,
2548
2562
  null
2549
2563
  );
2550
- const Ua = Xa.exports, Je = 4, Ya = /* @__PURE__ */ C({
2564
+ const Ua = Xa.exports, Je = 4, Ya = /* @__PURE__ */ E({
2551
2565
  __name: "lume-point",
2552
2566
  props: {
2553
2567
  x: { type: Number, required: !0 },
@@ -2643,7 +2657,7 @@ function no(t, e, r, n) {
2643
2657
  te(r) ? eo(r, t) : to(r, t)
2644
2658
  ).y((o) => n(o))(e);
2645
2659
  }
2646
- const Qe = 1, ro = /* @__PURE__ */ C({
2660
+ const Qe = 1, ro = /* @__PURE__ */ E({
2647
2661
  __name: "lume-line-group",
2648
2662
  props: {
2649
2663
  ...ge(),
@@ -2667,7 +2681,7 @@ const Qe = 1, ro = /* @__PURE__ */ C({
2667
2681
  o,
2668
2682
  l
2669
2683
  ), s = c(() => {
2670
- if (n.value.every((E) => E.isDashed))
2684
+ if (n.value.every((N) => N.isDashed))
2671
2685
  return n.value;
2672
2686
  const { computedLineData: y } = gt(n);
2673
2687
  return a.value.withTooltip !== !1 && (i != null && i.value) && u(y.value), y.value;
@@ -2700,11 +2714,11 @@ const Qe = 1, ro = /* @__PURE__ */ C({
2700
2714
  function k(y) {
2701
2715
  return s.value[y].values;
2702
2716
  }
2703
- function p(y, E) {
2704
- var F, G;
2717
+ function p(y, N) {
2718
+ var P, G;
2705
2719
  const R = y === 0 ? [] : [
2706
- (F = k(E)[y - 1]) == null ? void 0 : F.value,
2707
- (G = k(E)[y]) == null ? void 0 : G.value
2720
+ (P = k(N)[y - 1]) == null ? void 0 : P.value,
2721
+ (G = k(N)[y]) == null ? void 0 : G.value
2708
2722
  ];
2709
2723
  return no(
2710
2724
  y,
@@ -2719,9 +2733,9 @@ const Qe = 1, ro = /* @__PURE__ */ C({
2719
2733
  animationDuration: v.value
2720
2734
  };
2721
2735
  }
2722
- function O(y, E) {
2723
- var F;
2724
- const R = (F = k(E)[y]) == null ? void 0 : F.value;
2736
+ function x(y, N) {
2737
+ var P;
2738
+ const R = (P = k(N)[y]) == null ? void 0 : P.value;
2725
2739
  return {
2726
2740
  x: te(o.value) ? r.xScale(_.value[y]) + h.value : r.xScale(y),
2727
2741
  y: l.value(R)
@@ -2730,7 +2744,7 @@ const Qe = 1, ro = /* @__PURE__ */ C({
2730
2744
  function A(y) {
2731
2745
  return r.hoveredIndex === y;
2732
2746
  }
2733
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Qe, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: d, animationDuration: v, pointRadius: f, xAxisOffset: h, domain: _, computedWithPoints: m, getValuesFromDataset: k, getPathDefinition: p, getLineTransitionParams: T, getPointPosition: O, isPointActive: A, LumeLine: Ua, LumePoint: qa };
2747
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Qe, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: d, animationDuration: v, pointRadius: f, xAxisOffset: h, domain: _, computedWithPoints: m, getValuesFromDataset: k, getPathDefinition: p, getLineTransitionParams: T, getPointPosition: x, isPointActive: A, LumeLine: Ua, LumePoint: qa };
2734
2748
  }
2735
2749
  });
2736
2750
  var ao = function() {
@@ -2762,7 +2776,7 @@ const yt = lo.exports, uo = {
2762
2776
  withTooltip: !0,
2763
2777
  xAxisOptions: {},
2764
2778
  yAxisOptions: { gridLines: !0 }
2765
- }, io = /* @__PURE__ */ C({
2779
+ }, io = /* @__PURE__ */ E({
2766
2780
  __name: "lume-line-chart",
2767
2781
  props: {
2768
2782
  ...ae(null, !1)
@@ -2816,7 +2830,7 @@ const fo = {
2816
2830
  tooltipOptions: {
2817
2831
  showTitle: !1
2818
2832
  }
2819
- }, po = /* @__PURE__ */ C({
2833
+ }, po = /* @__PURE__ */ E({
2820
2834
  __name: "lume-sparkline-chart",
2821
2835
  props: {
2822
2836
  ...He(null),
@@ -2875,15 +2889,15 @@ export {
2875
2889
  Lo as LumeBarChart,
2876
2890
  Be as LumeBarGroup,
2877
2891
  oe as LumeChart,
2878
- xn as LumeChartContainer,
2892
+ On as LumeChartContainer,
2879
2893
  Nn as LumeChartLegend,
2880
- xo as LumeGroupedBarChart,
2894
+ Oo as LumeGroupedBarChart,
2881
2895
  Ua as LumeLine,
2882
2896
  Io as LumeLineChart,
2883
2897
  yt as LumeLineGroup,
2884
2898
  pr as LumeOverlayGroup,
2885
2899
  qa as LumePoint,
2886
- Oo as LumeSingleBarChart,
2900
+ xo as LumeSingleBarChart,
2887
2901
  wo as LumeSparklineChart,
2888
2902
  $o as LumeStackedBarChart,
2889
2903
  Jn as LumeTooltip,