@adyen/lume-vue3 1.9.5 → 1.10.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.
@@ -1 +1 @@
1
- {"version":3,"file":"bar-transition.d.ts","sourceRoot":"","sources":["../../../../../../../lib/src/components/core/lume-bar/composables/bar-transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,GAAG,EAAS,MAAM,KAAK,CAAC;AAE3D,wBAAgB,gBAAgB,CAC9B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACd,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACd,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,EAClB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;;;;EAsBpB"}
1
+ {"version":3,"file":"bar-transition.d.ts","sourceRoot":"","sources":["../../../../../../../lib/src/components/core/lume-bar/composables/bar-transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,GAAG,EAAS,MAAM,KAAK,CAAC;AAE3D,wBAAgB,gBAAgB,CAC9B,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACd,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACd,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,EAClB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;;;;EA+BpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"lume-chart.vue.d.ts","sourceRoot":"","sources":["../../../../../../lib/src/components/core/lume-chart/lume-chart.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,QAAQ,EAMT,MAAM,KAAK,CAAC;AAYb,OAAO,EAAW,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AAqBrE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAiJtD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,QAmBzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0zBD,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"lume-chart.vue.d.ts","sourceRoot":"","sources":["../../../../../../lib/src/components/core/lume-chart/lume-chart.vue.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,QAAQ,EAMT,MAAM,KAAK,CAAC;AAYb,OAAO,EAAW,KAAK,EAAiB,MAAM,sBAAsB,CAAC;AAqBrE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAiJtD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,QAqBzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0zBD,wBAAwG;AAGxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, ref as S, openBlock as y, createElementBlock as O, mergeProps as j, createElementVNode as R, toDisplayString as oe, createCommentVNode as z, isRef as Rt, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as W, createBlock as X, normalizeClass as ne, normalizeStyle as jt, onBeforeUnmount as Vt, watchEffect as Ct, renderSlot as M, createTextVNode as ce, useSlots as re, nextTick as Qe, withCtx as C, createSlots as de, pushScopeId as cn, popScopeId as dn, provide as Ke, createVNode as ie, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as vn } from "vue";
1
+ import { defineComponent as Z, ref as G, openBlock as y, createElementBlock as O, mergeProps as j, createElementVNode as R, toDisplayString as oe, createCommentVNode as z, isRef as Rt, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as W, createBlock as X, normalizeClass as ne, normalizeStyle as jt, onBeforeUnmount as Vt, watchEffect as Ct, renderSlot as M, createTextVNode as ce, useSlots as re, nextTick as Qe, withCtx as C, createSlots as de, pushScopeId as cn, popScopeId as dn, provide as Ke, createVNode as ie, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as vn } from "vue";
2
2
  import { format as mn, ticks as fn, scaleBand as Be, scaleLinear as Me, link as pn, line as hn, area as gn } from "d3";
3
3
  import { createPopper as _n } from "@popperjs/core";
4
4
  import { sankeyLinkHorizontal as yn, sankey as kn, sankeyJustify as bn } from "d3-sankey";
@@ -44,7 +44,7 @@ const An = {
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
46
  setup(e, { expose: n, emit: t }) {
47
- const o = t, a = S(null);
47
+ const o = t, a = G(null);
48
48
  return n({ ref: a }), (u, l) => (y(), O("g", j(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
@@ -210,7 +210,7 @@ const Ve = (e) => {
210
210
  return n ? n(...o) : o[0];
211
211
  }
212
212
  return t;
213
- }, Ge = () => ({
213
+ }, Se = () => ({
214
214
  options: {
215
215
  type: Object,
216
216
  default: () => ({})
@@ -222,9 +222,9 @@ function fe(e, n) {
222
222
  return o ? zt(o, e.value) : e.value;
223
223
  }) };
224
224
  }
225
- const Gn = 0.2;
226
- function Sn(e, n, t) {
227
- const o = S(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
225
+ const Sn = 0.2;
226
+ function Gn(e, n, t) {
227
+ const o = G(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
228
228
  function l() {
229
229
  if (!n.value)
230
230
  return;
@@ -232,7 +232,7 @@ function Sn(e, n, t) {
232
232
  (f, r) => f + r.ref.getBoundingClientRect().width,
233
233
  0
234
234
  ), s = Math.ceil(c / u.value);
235
- o.value = s + s * Gn;
235
+ o.value = s + s * Sn;
236
236
  }
237
237
  function i(c) {
238
238
  if (!n.value)
@@ -252,7 +252,7 @@ const B = {
252
252
  SINGLE: "single",
253
253
  GROUPED: "grouped",
254
254
  STACKED: "stacked"
255
- }, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Se = 8, jn = 1, Vn = [
255
+ }, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Ge = 8, jn = 1, Vn = [
256
256
  "auto",
257
257
  "auto-start",
258
258
  "auto-end",
@@ -287,7 +287,7 @@ const Kt = {
287
287
  /** Formatting string/function for the tick label. */
288
288
  tickFormat: null,
289
289
  /** Space between the tick label and the axis line. */
290
- tickPadding: 8
290
+ tickPadding: 12
291
291
  }, Cn = {
292
292
  ...Kt,
293
293
  withTitle: !1,
@@ -311,7 +311,7 @@ const Kt = {
311
311
  return {
312
312
  x: -(s - e.value.step()) / 2,
313
313
  width: s,
314
- height: t.value.tickPadding + Yt + Se
314
+ height: t.value.tickPadding + Yt + Ge
315
315
  };
316
316
  }
317
317
  function l() {
@@ -346,7 +346,7 @@ const Kt = {
346
346
  }
347
347
  function u(c) {
348
348
  var f;
349
- const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Se;
349
+ const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Ge;
350
350
  return {
351
351
  x: -s,
352
352
  width: s,
@@ -387,7 +387,7 @@ const Kt = {
387
387
  }
388
388
  function u() {
389
389
  return {
390
- height: t.value.tickPadding + Yt + Se,
390
+ height: t.value.tickPadding + Yt + Ge,
391
391
  width: o.value,
392
392
  x: -(o.value / 2)
393
393
  };
@@ -422,7 +422,7 @@ const Kt = {
422
422
  }
423
423
  function u(c) {
424
424
  var f;
425
- const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Se;
425
+ const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Ge;
426
426
  return {
427
427
  width: s,
428
428
  height: o.value,
@@ -503,11 +503,11 @@ const Lt = /* @__PURE__ */ Z({
503
503
  type: String,
504
504
  default: B.VERTICAL
505
505
  },
506
- ...Ge()
506
+ ...Se()
507
507
  },
508
508
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
509
509
  setup(e, { emit: n }) {
510
- const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", S(!1)), r = Fe({}), m = S(null), g = S(null), p = S(null), b = v(
510
+ const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", G(!1)), r = Fe({}), m = G(null), g = G(null), p = G(null), b = v(
511
511
  () => o.type ? et[o.type] : o.position
512
512
  ), $ = v(
513
513
  () => o.type || (b.value === "left" ? "y" : "x")
@@ -516,30 +516,30 @@ const Lt = /* @__PURE__ */ Z({
516
516
  ), { allOptions: h } = fe(
517
517
  c,
518
518
  $.value === "x" ? Cn : Pn
519
- ), { showTick: x } = Sn(u, m, h), N = v(() => {
520
- var G, k, E, _;
521
- return $.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((G = l.value) == null ? void 0 : G.height) / 2})` : $.value === "x" && f.value && (!u.value || At(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 } = Gn(u, m, h), N = v(() => {
520
+ var S, k, E, _;
521
+ return $.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((S = l.value) == null ? void 0 : S.height) / 2})` : $.value === "x" && f.value && (!u.value || At(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})`;
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: G } = h.value, [k, E] = u.value.domain();
528
- return fn(k, E, G);
527
+ const { tickCount: S } = h.value, [k, E] = u.value.domain();
528
+ return fn(k, E, S);
529
529
  }), P = v(() => {
530
- const { tickFormat: G } = h.value;
531
- return Ve(G);
530
+ const { tickFormat: S } = h.value;
531
+ return Ve(S);
532
532
  }), w = v(
533
533
  () => h.value.withHover && A.value && i.value > -1
534
534
  ), H = v(
535
- () => h.value.tickPadding + Se || 16
535
+ () => h.value.tickPadding + Ge || 16
536
536
  ), Y = v(() => $.value === "x" ? (
537
537
  // If x axis, get the tick height
538
538
  Math.max(
539
539
  ...(m.value || []).map(
540
- (G) => {
540
+ (S) => {
541
541
  var k, E;
542
- return ((E = (k = G.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
542
+ return ((E = (k = S.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
543
543
  }
544
544
  )
545
545
  )
@@ -547,33 +547,33 @@ const Lt = /* @__PURE__ */ Z({
547
547
  // If y axis, get the tick width
548
548
  Math.max(
549
549
  ...(m.value || []).map(
550
- (G) => {
550
+ (S) => {
551
551
  var k, E;
552
- return ((E = (k = G.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
552
+ return ((E = (k = S.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
553
553
  }
554
554
  )
555
555
  )
556
556
  ));
557
- function K(G) {
557
+ function K(S) {
558
558
  const { showTicks: k } = h.value;
559
- return k === !1 ? "" : P.value(G);
559
+ return k === !1 ? "" : P.value(S);
560
560
  }
561
- function Q(G, k, E) {
562
- a("mouseenter", { index: A.value ? G : null, value: k, event: E });
561
+ function Q(S, k, E) {
562
+ a("mouseenter", { index: A.value ? S : null, value: k, event: E });
563
563
  }
564
- function F(G, k, E) {
565
- a("click", { index: G, value: k, event: E });
564
+ function F(S, k, E) {
565
+ a("click", { index: S, value: k, event: E });
566
566
  }
567
- function ue(G) {
567
+ function ue(S) {
568
568
  var k;
569
569
  if (!(!m.value || !m.value.length))
570
- return (k = m.value[G]) == null ? void 0 : k.ref;
570
+ return (k = m.value[S]) == null ? void 0 : k.ref;
571
571
  }
572
572
  function Le() {
573
573
  p.value = D.value.map(
574
- (G, k) => ({
575
- value: K(G),
576
- group: r.getTickGroupAttributes(G, k),
574
+ (S, k) => ({
575
+ value: K(S),
576
+ group: r.getTickGroupAttributes(S, k),
577
577
  ghost: r.getTickGhostAttributes(ue(k)),
578
578
  label: r.getTickLabelAttributes(),
579
579
  gridline: r.getGridLinesAttributes()
@@ -581,19 +581,19 @@ const Lt = /* @__PURE__ */ Z({
581
581
  );
582
582
  }
583
583
  function ke() {
584
- p.value && p.value.map((G) => (G.gridline = r.getGridLinesAttributes(), G));
584
+ p.value && p.value.map((S) => (S.gridline = r.getGridLinesAttributes(), S));
585
585
  }
586
586
  function $e() {
587
587
  if (!u.value)
588
588
  return;
589
- const G = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${Jt[G]}`];
589
+ const S = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${Jt[S]}`];
590
590
  Object.entries(k(u, l, h) || []).forEach(
591
591
  ([E, _]) => {
592
592
  r[E] = _;
593
593
  }
594
594
  );
595
595
  }
596
- return U(u, $e, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (G) => a("lume__internal--axis-size", G)), U(o.containerSize, ke), _e(() => ze(g.value)), (G, k) => d(u) ? (y(), O("g", {
596
+ return U(u, $e, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (S) => a("lume__internal--axis-size", S)), U(o.containerSize, ke), _e(() => ze(g.value)), (S, k) => d(u) ? (y(), O("g", {
597
597
  key: 0,
598
598
  ref_key: "root",
599
599
  ref: g,
@@ -639,7 +639,12 @@ function Qn(e, n, t, o) {
639
639
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
640
640
  }
641
641
  function qn(e, n, t, o) {
642
- const a = S(0), u = S(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
642
+ const a = G(0), u = G(0), l = v(() => {
643
+ const i = parseFloat(
644
+ getComputedStyle(document.documentElement).fontSize
645
+ ), c = (e.value + t.value / 2) / i, s = (n.value + o.value / 2) / i;
646
+ return `${c}rem ${s}rem`;
647
+ });
643
648
  return _e(() => {
644
649
  a.value = t.value, u.value = o.value;
645
650
  }), U(t, (i) => a.value = i), U(o, (i) => u.value = i), { computedWidth: a, computedHeight: u, transformOrigin: l };
@@ -682,7 +687,7 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
682
687
  },
683
688
  emits: ["click", "mouseover", "mouseleave"],
684
689
  setup(e, { emit: n }) {
685
- const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = S(null), r = v(
690
+ const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = G(null), r = v(
686
691
  () => typeof s.value == "string" ? [s.value] : s.value
687
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;
688
693
  return _e(() => ze(f.value)), (P, w) => (y(), O("rect", {
@@ -711,7 +716,7 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
711
716
  });
712
717
  const dt = /* @__PURE__ */ ee(to, [["__scopeId", "data-v-8e8f732a"]]);
713
718
  function no() {
714
- const e = S(), n = Fe({
719
+ const e = G(), n = Fe({
715
720
  dimensions: {}
716
721
  }), t = new ResizeObserver((o) => {
717
722
  o.forEach((a) => {
@@ -746,7 +751,7 @@ const oo = ["height"], ao = ["transform"], lo = /* @__PURE__ */ Z({
746
751
  },
747
752
  emits: ["click", "mouseenter", "mouseleave", "resize"],
748
753
  setup(e, { emit: n }) {
749
- const t = e, o = n, { margins: a, containerSize: u } = te(t), l = S(null), { resizeRef: i, resizeState: c } = no(), s = v(
754
+ const t = e, o = n, { margins: a, containerSize: u } = te(t), l = G(null), { resizeRef: i, resizeState: c } = no(), s = v(
750
755
  () => u.value.height + a.value.top + a.value.bottom
751
756
  );
752
757
  return Ct(() => {
@@ -815,7 +820,7 @@ const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-c82b22db"]]), ro = ["on
815
820
  }, [
816
821
  (y(!0), O(q, null, W(e.data, (u, l) => (y(), O("div", {
817
822
  key: `legend-item-${l}`,
818
- class: "lume-chart-legend__item lume-typography--body",
823
+ class: "lume-chart-legend__item lume-typography--caption",
819
824
  tabindex: "0",
820
825
  "data-j-chart-legend__symbol-wrapper": "",
821
826
  onClick: (i) => t("click", { index: l, dataset: u, event: i }),
@@ -830,7 +835,7 @@ const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-c82b22db"]]), ro = ["on
830
835
  ], 32));
831
836
  }
832
837
  });
833
- const $t = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-3e2dc6fc"]]);
838
+ const $t = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-6f1d1c44"]]);
834
839
  const so = {}, co = {
835
840
  class: "lume-tooltip__title",
836
841
  "data-j-tooltip__title": ""
@@ -930,11 +935,11 @@ const To = /* @__PURE__ */ ee(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e)
930
935
  type: String,
931
936
  default: null
932
937
  },
933
- ...Ge()
938
+ ...Se()
934
939
  },
935
940
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
936
941
  setup(e, { emit: n }) {
937
- const t = e, o = n, a = S(null), { items: u, options: l } = te(t), i = re(), c = S(null), { allOptions: s } = fe(l), f = v(
942
+ const t = e, o = n, a = G(null), { items: u, options: l } = te(t), i = re(), c = G(null), { allOptions: s } = fe(l), f = v(
938
943
  () => s.value.fixedPositioning ?? t.fixedPositioning
939
944
  ), r = v(
940
945
  () => f.value ? "fixed" : "absolute"
@@ -1059,11 +1064,11 @@ function Mo(e, n) {
1059
1064
  const t = Object.values(se).indexOf(e);
1060
1065
  return Dn(Object.values(se), t > -1 ? t : 0)[n];
1061
1066
  }
1062
- function Go(e, n) {
1067
+ function So(e, n) {
1063
1068
  const t = 50 + n * 10;
1064
1069
  return `${e}-${t}`;
1065
1070
  }
1066
- function So(e, n) {
1071
+ function Go(e, n) {
1067
1072
  const t = (n + 1) * 10;
1068
1073
  return `${e}-${t}`;
1069
1074
  }
@@ -1073,9 +1078,9 @@ function Ot(e, n, t) {
1073
1078
  case be.Categorical:
1074
1079
  return Bo(e) ? e : Mo(e, t);
1075
1080
  case be.Sequential:
1076
- return Go(e, t);
1077
- case be.Divergent:
1078
1081
  return So(e, t);
1082
+ case be.Divergent:
1083
+ return Go(e, t);
1079
1084
  }
1080
1085
  }
1081
1086
  function Ro(e, n, t = No, o) {
@@ -1154,7 +1159,7 @@ const Co = () => ({
1154
1159
  }
1155
1160
  });
1156
1161
  function Po(e, n, t, o, a) {
1157
- const u = S(null), l = S(null);
1162
+ const u = G(null), l = G(null);
1158
1163
  function i() {
1159
1164
  var f, r, m, g;
1160
1165
  const { width: c, height: s } = t;
@@ -1216,7 +1221,7 @@ function en(e) {
1216
1221
  const Ee = (e, n = !0) => ({
1217
1222
  ...pt(e),
1218
1223
  ...Co(),
1219
- ...Ge(),
1224
+ ...Se(),
1220
1225
  classList: {
1221
1226
  type: [String, Array],
1222
1227
  default: () => []
@@ -1234,7 +1239,7 @@ const Ee = (e, n = !0) => ({
1234
1239
  } : {}
1235
1240
  }), Fo = (e) => ({
1236
1241
  ...pt(e),
1237
- ...Ge(),
1242
+ ...Se(),
1238
1243
  hoveredElement: {
1239
1244
  type: [Number, String],
1240
1245
  default: null
@@ -1450,7 +1455,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1450
1455
  class: "lume-chart__title lume-chart-title lume-typography--display"
1451
1456
  }, la = { class: "lume-chart__controls" }, ua = { class: "lume-chart__header-section" }, ra = {
1452
1457
  key: 0,
1453
- class: "lume-chart__axis-title lume-axis-title lume-typography--body"
1458
+ class: "lume-chart__axis-title lume-axis-title lume-typography--caption"
1454
1459
  }, ia = { key: 3 }, sa = ["r"], ca = {
1455
1460
  key: 0,
1456
1461
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
@@ -1464,7 +1469,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1464
1469
  }
1465
1470
  },
1466
1471
  setup(e, { emit: n }) {
1467
- const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = S(-1), m = S(null), g = S(null), p = S([]), b = S(null), $ = S(0), A = S(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, h, s), { xScale: H, yScale: Y } = Po(
1472
+ const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = G(-1), m = G(null), g = G(null), p = G([]), b = G(null), $ = G(0), A = G(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, h, s), { xScale: H, yScale: Y } = Po(
1468
1473
  x,
1469
1474
  N,
1470
1475
  D,
@@ -1493,7 +1498,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1493
1498
  }), $e = v(() => {
1494
1499
  var T;
1495
1500
  return (T = h.value.yAxisOptions) == null ? void 0 : T.title;
1496
- }), G = v(() => {
1501
+ }), S = v(() => {
1497
1502
  var T;
1498
1503
  return ((T = h.value.xAxisOptions) == null ? void 0 : T.withTitle) !== !1 && ke.value;
1499
1504
  }), k = v(() => {
@@ -1530,10 +1535,10 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1530
1535
  });
1531
1536
  function je(T) {
1532
1537
  var I;
1533
- if (T === r.value)
1538
+ if (h.value.withHover === !1 || T === r.value)
1534
1539
  return;
1535
1540
  const L = r.value;
1536
- if (h.value.withHover !== !1 && (r.value = T), h.value.withTooltip !== !1) {
1541
+ if (r.value = T, h.value.withTooltip !== !1) {
1537
1542
  const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[T];
1538
1543
  Ze(Ye);
1539
1544
  }
@@ -1620,7 +1625,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1620
1625
  ])
1621
1626
  ]),
1622
1627
  footer: C(() => [
1623
- G.value ? (y(), O("h3", ca, oe(ke.value), 1)) : z("", !0),
1628
+ S.value ? (y(), O("h3", ca, oe(ke.value), 1)) : z("", !0),
1624
1629
  d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d($t), {
1625
1630
  key: 1,
1626
1631
  data: d(x),
@@ -1762,7 +1767,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
1762
1767
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background"]));
1763
1768
  }
1764
1769
  });
1765
- const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-f30a752f"]]), Ht = 8, va = 8, ma = 20, we = 2, Bt = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
1770
+ const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-4eac6847"]]), Ht = 8, va = 8, ma = 20, we = 2, Bt = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
1766
1771
  __name: "lume-alluvial-node-label",
1767
1772
  props: {
1768
1773
  bottom: { type: Boolean, default: !1 },
@@ -1771,7 +1776,7 @@ const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-f30a752f"]]), Ht = 8, v
1771
1776
  },
1772
1777
  emits: ["lume__internal--node-resize"],
1773
1778
  setup(e, { emit: n }) {
1774
- const t = e, o = n, a = S(null), u = S(t.maxWidth), l = S(1);
1779
+ const t = e, o = n, a = G(null), u = G(t.maxWidth), l = G(1);
1775
1780
  return U(
1776
1781
  [a, () => t.maxWidth],
1777
1782
  async ([i, c]) => {
@@ -1833,7 +1838,7 @@ const ba = /* @__PURE__ */ ee(ka, [["__scopeId", "data-v-b4fc758b"]]), Aa = ["tr
1833
1838
  y: { type: Number, required: !0 }
1834
1839
  },
1835
1840
  setup(e) {
1836
- const n = S(null), t = v(
1841
+ const n = G(null), t = v(
1837
1842
  () => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
1838
1843
  ), o = v(
1839
1844
  () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
@@ -1867,7 +1872,7 @@ function Mt(e, n) {
1867
1872
  };
1868
1873
  }
1869
1874
  function Oa(e) {
1870
- const n = S(Mt(e));
1875
+ const n = G(Mt(e));
1871
1876
  function t(o) {
1872
1877
  n.value = Mt(e, o);
1873
1878
  }
@@ -1931,22 +1936,22 @@ function Ba(e) {
1931
1936
  function Ma(e) {
1932
1937
  return [e.target.x0, e.y1];
1933
1938
  }
1934
- function Ga(e) {
1939
+ function Sa(e) {
1935
1940
  return e.curveFunction ? pn(e.curveFunction).source(Ba).target(Ma) : yn();
1936
1941
  }
1937
- function Sa(e) {
1942
+ function Ga(e) {
1938
1943
  return e.map((n) => {
1939
1944
  var t;
1940
1945
  return {
1941
1946
  id: n.id,
1942
1947
  color: n.color || ((t = n.source) == null ? void 0 : t.color) || Re,
1943
- d: Ga(n)(n),
1948
+ d: Sa(n)(n),
1944
1949
  strokeWidth: Math.max(1, n.width),
1945
1950
  link: n
1946
1951
  };
1947
1952
  });
1948
1953
  }
1949
- function Gt(e, n, t, o, a) {
1954
+ function St(e, n, t, o, a) {
1950
1955
  if (o === !1) {
1951
1956
  e.node = {
1952
1957
  ...e.node,
@@ -1967,11 +1972,11 @@ const Ra = {
1967
1972
  nodes: [],
1968
1973
  links: []
1969
1974
  };
1970
- function St(e, n) {
1975
+ function Gt(e, n) {
1971
1976
  return n.find((t) => t.every((o) => o.x0 === e.x0));
1972
1977
  }
1973
1978
  function ja(e, n, t) {
1974
- const o = S(null), a = v(() => {
1979
+ const o = G(null), a = v(() => {
1975
1980
  var r, m;
1976
1981
  return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
1977
1982
  ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: $, offset: A }) => ({
@@ -2006,14 +2011,14 @@ function ja(e, n, t) {
2006
2011
  var r;
2007
2012
  return (r = o.value) == null ? void 0 : r.nodes.reduce(
2008
2013
  (m, g) => {
2009
- const p = St(g, m);
2014
+ const p = Gt(g, m);
2010
2015
  return p ? (p.push(g), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([g]), m;
2011
2016
  },
2012
2017
  []
2013
2018
  );
2014
2019
  });
2015
2020
  function c(r) {
2016
- const { offset: m } = r, g = St(r, i.value);
2021
+ const { offset: m } = r, g = Gt(r, i.value);
2017
2022
  if (!g)
2018
2023
  return;
2019
2024
  const p = g[g.findIndex(($) => $.id === r.id) - 1], b = p && g.length !== 1 ? p.y1 + m : m;
@@ -2098,14 +2103,14 @@ const Ca = (e, n) => {
2098
2103
  };
2099
2104
  };
2100
2105
  function Fa(e, n, t) {
2101
- const o = S(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2106
+ const o = G(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2102
2107
  o.value,
2103
2108
  t.value
2104
2109
  ) : n.value.highlightedElements === "closest" ? Pa(o.value, t.value) : Ca(o.value, t.value) : { nodes: {}, links: [] });
2105
2110
  return U(a, (u, l) => {
2106
2111
  if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
2107
2112
  e.value.forEach((i) => {
2108
- i.node.id in l.nodes && Gt(
2113
+ i.node.id in l.nodes && St(
2109
2114
  i,
2110
2115
  l.nodes[i.node.id],
2111
2116
  i.node.value,
@@ -2116,7 +2121,7 @@ function Fa(e, n, t) {
2116
2121
  return;
2117
2122
  }
2118
2123
  e.value.forEach((i) => {
2119
- i.node.id in u.nodes && Gt(
2124
+ i.node.id in u.nodes && St(
2120
2125
  i,
2121
2126
  i.node.value,
2122
2127
  u.nodes[i.node.id],
@@ -2139,7 +2144,7 @@ const za = {
2139
2144
  },
2140
2145
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2141
2146
  setup(e, { emit: n }) {
2142
- const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = S([]), c = S([]), s = S(null), { extents: f, updateExtents: r } = Oa(t.containerSize), { columns: m, graph: g } = ja(u, l, f), { hoveredElement: p, highlightedElements: b } = Fa(
2147
+ const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = G([]), c = G([]), s = G(null), { extents: f, updateExtents: r } = Oa(t.containerSize), { columns: m, graph: g } = ja(u, l, f), { hoveredElement: p, highlightedElements: b } = Fa(
2143
2148
  i,
2144
2149
  l,
2145
2150
  g
@@ -2230,14 +2235,14 @@ const za = {
2230
2235
  var E;
2231
2236
  return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
2232
2237
  }
2233
- function G() {
2238
+ function S() {
2234
2239
  const k = Da(g.value, s.value);
2235
2240
  r(k);
2236
2241
  }
2237
2242
  return U(g, (k) => {
2238
- i.value = Ha(k.nodes), c.value = Sa(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2243
+ i.value = Ha(k.nodes), c.value = Ga(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2239
2244
  }), U([t.containerSize, s], () => {
2240
- t.containerSize.width && t.containerSize.height && G();
2245
+ t.containerSize.width && t.containerSize.height && S();
2241
2246
  }), U(() => t.hoveredElementId, ke), (k, E) => (y(), O("g", za, [
2242
2247
  x.value ? (y(), O("g", Wa, [
2243
2248
  (y(!0), O(q, null, W(x.value, (_, V) => M(k.$slots, `node-header-${V}`, {
@@ -2358,7 +2363,7 @@ const za = {
2358
2363
  bottom: d(l).switchText,
2359
2364
  left: _.node.depth === 0,
2360
2365
  "max-width": d(l).nodeLabelMaxWidth,
2361
- "onLume__internal-NodeResize": G
2366
+ "onLume__internal-NodeResize": S
2362
2367
  }, {
2363
2368
  default: C(() => [
2364
2369
  ce(oe(_.node.label), 1)
@@ -2954,7 +2959,7 @@ const pl = {
2954
2959
  },
2955
2960
  emits: ["click"],
2956
2961
  setup(e, { emit: n }) {
2957
- const t = n, o = S(null);
2962
+ const t = n, o = G(null);
2958
2963
  return _e(() => ze(o.value)), (a, u) => (y(), O("path", {
2959
2964
  ref_key: "root",
2960
2965
  ref: o,
@@ -2994,7 +2999,7 @@ const Ll = /* @__PURE__ */ ee(Tl, [["__scopeId", "data-v-59449838"]]), $l = ["cx
2994
2999
  },
2995
3000
  emits: ["click"],
2996
3001
  setup(e, { emit: n }) {
2997
- const t = e, o = n, a = S(null), u = v(() => t.radius / 2);
3002
+ const t = e, o = n, a = G(null), u = v(() => t.radius / 2);
2998
3003
  return _e(() => ze(a.value)), (l, i) => (y(), O("circle", {
2999
3004
  ref_key: "root",
3000
3005
  ref: a,
@@ -3073,7 +3078,7 @@ const Dl = {
3073
3078
  key: 0,
3074
3079
  class: "lume-line-group__points",
3075
3080
  "data-j-lume-line-group__points": ""
3076
- }, Ml = 1, Gl = /* @__PURE__ */ Z({
3081
+ }, Ml = 1, Sl = /* @__PURE__ */ Z({
3077
3082
  __name: "lume-line-group",
3078
3083
  props: {
3079
3084
  ...We(),
@@ -3195,7 +3200,7 @@ const Dl = {
3195
3200
  ]));
3196
3201
  }
3197
3202
  });
3198
- const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-23492507"]]), Sl = {
3203
+ const un = /* @__PURE__ */ ee(Sl, [["__scopeId", "data-v-23492507"]]), Gl = {
3199
3204
  margins: Ae.VERTICAL,
3200
3205
  startOnZero: !0,
3201
3206
  withTooltip: !0,
@@ -3207,7 +3212,7 @@ const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-23492507"]]), Sl = {
3207
3212
  ...Ee(null, !1)
3208
3213
  },
3209
3214
  setup(e, { emit: n }) {
3210
- const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Sl);
3215
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Gl);
3211
3216
  return (i, c) => (y(), X(d(Ne), j({ ...t, ...i.$attrs }, {
3212
3217
  "chart-type": "line",
3213
3218
  options: d(l),
@@ -3255,7 +3260,7 @@ const jl = {
3255
3260
  __name: "lume-sparkline-chart",
3256
3261
  props: {
3257
3262
  ...pt(null),
3258
- ...Ge()
3263
+ ...Se()
3259
3264
  },
3260
3265
  setup(e, { expose: n, emit: t }) {
3261
3266
  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 } = Rl(f), m = v(() => {