@adyen/lume-vue3 0.9.0 → 0.10.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,12 +1,12 @@
1
- import { defineComponent as z, ref as M, openBlock as h, createElementBlock as L, mergeProps as S, createElementVNode as j, toDisplayString as q, createCommentVNode as F, isRef as At, computed as p, watch as U, toRefs as Q, inject as He, reactive as Be, onMounted as ve, unref as l, Fragment as K, renderList as P, createBlock as Z, normalizeClass as ee, normalizeStyle as Tt, onBeforeUnmount as Lt, watchEffect as Ot, renderSlot as B, createTextVNode as ce, useSlots as ne, withDirectives as Jt, withCtx as V, createSlots as re, vShow as Qt, pushScopeId as qt, popScopeId as en, provide as Ce, createVNode as oe, normalizeProps as le, guardReactiveProps as ue, defineAsyncComponent as je, resolveDynamicComponent as tn } from "vue";
2
- import { format as nn, ticks as on, scaleBand as Oe, scaleLinear as $e, link as an, line as rn, area as ln } from "d3";
3
- import { createPopper as un } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as sn, sankey as cn, sankeyJustify as dn } from "d3-sankey";
5
- const vn = {
1
+ import { defineComponent as Z, ref as S, openBlock as h, createElementBlock as T, mergeProps as C, createElementVNode as j, toDisplayString as q, createCommentVNode as P, isRef as At, computed as p, watch as U, toRefs as Q, inject as He, reactive as Be, onMounted as pe, unref as l, Fragment as K, renderList as z, createBlock as W, normalizeClass as ee, normalizeStyle as Tt, onBeforeUnmount as Lt, watchEffect as Ot, renderSlot as R, createTextVNode as de, useSlots as ne, withDirectives as Kt, withCtx as V, createSlots as le, vShow as Jt, pushScopeId as Qt, popScopeId as qt, provide as Ce, createVNode as oe, normalizeProps as ue, guardReactiveProps as ie, defineAsyncComponent as je, resolveDynamicComponent as en } from "vue";
2
+ import { format as tn, ticks as nn, scaleBand as Le, scaleLinear as Oe, link as on, line as an, area as rn } from "d3";
3
+ import { createPopper as ln } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as un, sankey as sn, sankeyJustify as cn } from "d3-sankey";
5
+ const dn = {
6
6
  class: "axis__tick-label lume-typography--axis",
7
7
  "pointer-events": "all",
8
8
  "data-j-axis__tick-label": ""
9
- }, pn = /* @__PURE__ */ z({
9
+ }, vn = /* @__PURE__ */ Z({
10
10
  __name: "lume-tick",
11
11
  props: {
12
12
  value: {
@@ -44,8 +44,8 @@ const vn = {
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
46
  setup(e, { expose: t, emit: n }) {
47
- const o = M(null);
48
- return t({ ref: o }), (r, a) => (h(), L("g", S(e.group, {
47
+ const o = S(null);
48
+ return t({ ref: o }), (r, a) => (h(), T("g", C(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
51
51
  "axis__tick--hidden": e.isHidden
@@ -54,18 +54,18 @@ const vn = {
54
54
  onMouseenter: a[0] || (a[0] = (u) => n("mouseenter", u)),
55
55
  onClick: a[1] || (a[1] = (u) => n("click", u))
56
56
  }), [
57
- j("g", vn, [
58
- j("rect", S(e.ghost, {
57
+ j("g", dn, [
58
+ j("rect", C(e.ghost, {
59
59
  class: "axis__ghost",
60
60
  fill: "url(#lume-tick-gradient)"
61
61
  }), null, 16),
62
- j("text", S(e.label, {
62
+ j("text", C(e.label, {
63
63
  ref_key: "labelRef",
64
64
  ref: o,
65
65
  class: "axis__label"
66
66
  }), q(e.value), 17)
67
67
  ]),
68
- e.withGridlines ? (h(), L("line", S({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : F("", !0)
68
+ e.withGridlines ? (h(), T("line", C({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : P("", !0)
69
69
  ], 16));
70
70
  }
71
71
  });
@@ -74,7 +74,7 @@ const J = (e, t) => {
74
74
  for (const [o, r] of t)
75
75
  n[o] = r;
76
76
  return n;
77
- }, it = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-59ddc0a6"]]), fn = [
77
+ }, it = /* @__PURE__ */ J(vn, [["__scopeId", "data-v-59ddc0a6"]]), pn = [
78
78
  "controls",
79
79
  "legend",
80
80
  "axes",
@@ -93,7 +93,7 @@ function xt(e) {
93
93
  function Ke(e) {
94
94
  return e.length === 1;
95
95
  }
96
- function hn(e) {
96
+ function fn(e) {
97
97
  return !!e && e.every(
98
98
  (t) => "color" in t
99
99
  );
@@ -107,16 +107,16 @@ function wt(e, t) {
107
107
  n[o] = Ge(e[o]) && Ge(r) ? wt(e[o], r) : r;
108
108
  }), n;
109
109
  }
110
- function mn(e) {
110
+ function hn(e) {
111
111
  return e != null && Ge(e) && "value" in e;
112
112
  }
113
- function _e(e) {
113
+ function ge(e) {
114
114
  return (e == null ? void 0 : e.bandwidth) !== void 0;
115
115
  }
116
- function gn(e) {
117
- return _e(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
116
+ function mn(e) {
117
+ return ge(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
118
118
  }
119
- const _n = (e, t) => {
119
+ const gn = (e, t) => {
120
120
  if (!e)
121
121
  throw new Error("Data is not a valid array");
122
122
  if (e.length === 0)
@@ -126,9 +126,9 @@ const _n = (e, t) => {
126
126
  throw new Error("Index exceeds length of at least one of the datasets");
127
127
  });
128
128
  };
129
- function yn(e, t) {
129
+ function _n(e, t) {
130
130
  var n;
131
- return _n(e, t), ((n = e.reduce(
131
+ return gn(e, t), ((n = e.reduce(
132
132
  (o, r) => {
133
133
  var a, u;
134
134
  return (((a = o.values[t]) == null ? void 0 : a.value) ?? 0) > (((u = r.values[t]) == null ? void 0 : u.value) ?? 0) ? o : r;
@@ -145,17 +145,17 @@ function Ve(e) {
145
145
  );
146
146
  return Array(n).fill(null);
147
147
  }
148
- function kn(e) {
149
- return _e(e) ? e.domain().length : Math.max(...e.domain());
148
+ function yn(e) {
149
+ return ge(e) ? e.domain().length : Math.max(...e.domain());
150
150
  }
151
- function bn(e, t) {
151
+ function kn(e, t) {
152
152
  return (n) => Math.round(e * (1 - n) + t * n);
153
153
  }
154
- function An(e, t, n) {
154
+ function bn(e, t, n) {
155
155
  const o = n ? e.length - t : t, r = e.slice(0, o);
156
156
  return e.slice(o).concat(r);
157
157
  }
158
- function ye(e) {
158
+ function _e(e) {
159
159
  if (e.groups) {
160
160
  const t = Object.keys(e);
161
161
  return Object.assign(
@@ -165,32 +165,32 @@ function ye(e) {
165
165
  }
166
166
  return e;
167
167
  }
168
- function Tn(e) {
168
+ function An(e) {
169
169
  return Object.assign(
170
170
  {},
171
171
  ...Object.keys(e).map(
172
- (t) => fn.includes(t) ? {} : { [t]: e[t] }
172
+ (t) => pn.includes(t) ? {} : { [t]: e[t] }
173
173
  )
174
174
  );
175
175
  }
176
- const Ln = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
176
+ const Tn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
177
177
  (t, n) => t += (n &= 63) < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n > 62 ? "-" : "_",
178
178
  ""
179
179
  );
180
- var de = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
181
- Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e))(de || {});
182
- const On = "[lume] ";
180
+ var ve = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
181
+ Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e))(ve || {});
182
+ const Ln = "[lume] ";
183
183
  function he(e, t = !0) {
184
- t && $t() || console.warn(On + "Warning: " + e);
184
+ t && $t() || console.warn(Ln + "Warning: " + e);
185
185
  }
186
186
  const De = (e) => {
187
187
  let t = null;
188
188
  switch (typeof e) {
189
189
  case "string":
190
190
  try {
191
- t = nn(e);
191
+ t = tn(e);
192
192
  } catch {
193
- he(de.InvalidFormat), t = null;
193
+ he(ve.InvalidFormat), t = null;
194
194
  }
195
195
  break;
196
196
  case "function":
@@ -203,21 +203,21 @@ const De = (e) => {
203
203
  return t ? t(...o) : o[0];
204
204
  }
205
205
  return n;
206
- }, xe = () => ({
206
+ }, $e = () => ({
207
207
  options: {
208
208
  type: Object,
209
209
  default: () => ({})
210
210
  }
211
211
  });
212
- function ie(e, t) {
212
+ function se(e, t) {
213
213
  return { allOptions: p(() => {
214
214
  const o = At(t) ? t == null ? void 0 : t.value : t;
215
215
  return o ? wt(o, e.value) : e.value;
216
216
  }) };
217
217
  }
218
- const $n = 0.15;
219
- function xn(e, t, n) {
220
- const o = M(), r = p(() => Math.max(...e.value.range())), a = p(() => t.value.length);
218
+ const On = 0.15;
219
+ function $n(e, t, n) {
220
+ const o = S(), r = p(() => Math.max(...e.value.range())), a = p(() => t.value.length);
221
221
  function u() {
222
222
  if (!t.value)
223
223
  return;
@@ -225,7 +225,7 @@ function xn(e, t, n) {
225
225
  (d, v) => d + v.ref.getBoundingClientRect().width,
226
226
  0
227
227
  ), c = Math.ceil(i / a.value);
228
- o.value = c + c * $n;
228
+ o.value = c + c * On;
229
229
  }
230
230
  function s(i) {
231
231
  if (!t.value)
@@ -242,11 +242,11 @@ var ae = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblu
242
242
  const D = {
243
243
  HORIZONTAL: "horizontal",
244
244
  VERTICAL: "vertical"
245
- }, wn = {
245
+ }, xn = {
246
246
  SINGLE: "single",
247
247
  GROUPED: "grouped",
248
248
  STACKED: "stacked"
249
- }, Nt = "No data", st = 20, Dt = 0.33, Ht = 0.5, Bt = 12, Rt = 8, In = 1, En = [
249
+ }, Nt = "No data", st = 20, Dt = 0.33, Ht = 0.5, Bt = 12, xe = 8, wn = 1, In = [
250
250
  "auto",
251
251
  "auto-start",
252
252
  "auto-end",
@@ -264,9 +264,9 @@ const D = {
264
264
  "left-end"
265
265
  ];
266
266
  function Re(e) {
267
- e != null && e.closest("svg") || he(de.NotContainedInSvg);
267
+ e != null && e.closest("svg") || he(ve.NotContainedInSvg);
268
268
  }
269
- const Mt = {
269
+ const Rt = {
270
270
  /** Displays a line for each tick. */
271
271
  gridLines: !1,
272
272
  /** Displays the axis title. */
@@ -282,14 +282,14 @@ const Mt = {
282
282
  tickFormat: null,
283
283
  /** Space between the tick label and the axis line. */
284
284
  tickPadding: 8
285
- }, Nn = {
286
- ...Mt,
285
+ }, En = {
286
+ ...Rt,
287
287
  withTitle: !1,
288
288
  skip: !0
289
- }, Dn = {
290
- ...Mt,
289
+ }, Nn = {
290
+ ...Rt,
291
291
  gridLines: !0
292
- }, Hn = function(e, t, n) {
292
+ }, Dn = function(e, t, n) {
293
293
  const o = p(() => e.value.step() * e.value.paddingInner() / 2);
294
294
  function r(i, c) {
295
295
  return {
@@ -305,7 +305,7 @@ const Mt = {
305
305
  return {
306
306
  x: -(c - e.value.step()) / 2,
307
307
  width: c,
308
- height: n.value.tickPadding + Bt + Rt
308
+ height: n.value.tickPadding + Bt + xe
309
309
  };
310
310
  }
311
311
  function u() {
@@ -331,7 +331,7 @@ const Mt = {
331
331
  getTickGroupAttributes: r,
332
332
  getTickLabelAttributes: s
333
333
  };
334
- }, Bn = function(e, t, n) {
334
+ }, Hn = function(e, t, n) {
335
335
  const o = p(() => e.value.step() * e.value.paddingInner() / 2);
336
336
  function r(i, c) {
337
337
  return {
@@ -340,7 +340,7 @@ const Mt = {
340
340
  }
341
341
  function a(i) {
342
342
  var d;
343
- const c = (i ? (d = i.getComputedTextLength) == null ? void 0 : d.call(i) : 42) + n.value.tickPadding * 2;
343
+ const c = (i ? (d = i.getComputedTextLength) == null ? void 0 : d.call(i) : 42) + n.value.tickPadding + xe;
344
344
  return {
345
345
  x: -c,
346
346
  width: c,
@@ -369,7 +369,7 @@ const Mt = {
369
369
  getTickGroupAttributes: r,
370
370
  getTickLabelAttributes: s
371
371
  };
372
- }, Rn = function(e, t, n) {
372
+ }, Bn = function(e, t, n) {
373
373
  const o = p(() => {
374
374
  const i = e.value.ticks();
375
375
  return i.length > 1 ? e.value(i[1]) - e.value(i[0]) : 0;
@@ -381,7 +381,7 @@ const Mt = {
381
381
  }
382
382
  function a() {
383
383
  return {
384
- height: n.value.tickPadding + Bt + Rt,
384
+ height: n.value.tickPadding + Bt + xe,
385
385
  width: o.value,
386
386
  x: -(o.value / 2)
387
387
  };
@@ -404,7 +404,7 @@ const Mt = {
404
404
  getTickGroupAttributes: r,
405
405
  getTickLabelAttributes: s
406
406
  };
407
- }, Mn = function(e, t, n) {
407
+ }, Rn = function(e, t, n) {
408
408
  const o = p(() => {
409
409
  const i = e.value.ticks();
410
410
  return i.length > 1 ? e.value(i[1]) - e.value(i[0]) : 0;
@@ -416,7 +416,7 @@ const Mt = {
416
416
  }
417
417
  function a(i) {
418
418
  var d;
419
- const c = (((d = i == null ? void 0 : i.getComputedTextLength) == null ? void 0 : d.call(i)) || 0) + n.value.tickPadding * 2;
419
+ const c = (((d = i == null ? void 0 : i.getComputedTextLength) == null ? void 0 : d.call(i)) || 0) + n.value.tickPadding + xe;
420
420
  return {
421
421
  width: c,
422
422
  height: o.value,
@@ -442,12 +442,12 @@ const Mt = {
442
442
  getTickGroupAttributes: r,
443
443
  getTickLabelAttributes: s
444
444
  };
445
- }, Sn = {
446
- "x-band-scale-axis": Hn,
447
- "y-band-scale-axis": Bn,
448
- "x-linear-scale-axis": Rn,
449
- "y-linear-scale-axis": Mn
450
- }, Cn = ["transform"], jn = { key: 0 }, Gn = /* @__PURE__ */ j("linearGradient", { id: "lume-tick-gradient" }, [
445
+ }, Mn = {
446
+ "x-band-scale-axis": Dn,
447
+ "y-band-scale-axis": Hn,
448
+ "x-linear-scale-axis": Bn,
449
+ "y-linear-scale-axis": Rn
450
+ }, Sn = ["transform"], Cn = { key: 0 }, jn = /* @__PURE__ */ j("linearGradient", { id: "lume-tick-gradient" }, [
451
451
  /* @__PURE__ */ j("stop", {
452
452
  offset: "0%",
453
453
  "stop-color": "rgba(255,255,255,0)"
@@ -464,11 +464,11 @@ const Mt = {
464
464
  offset: "100%",
465
465
  "stop-color": "rgba(255,255,255,0)"
466
466
  })
467
- ], -1), Vn = [
468
- Gn
467
+ ], -1), Gn = [
468
+ jn
469
469
  ];
470
- var St = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(St || {}), Ct = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Ct || {}), Fe = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(Fe || {});
471
- const ct = /* @__PURE__ */ z({
470
+ var Mt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Mt || {}), St = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(St || {}), Fe = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(Fe || {});
471
+ const ct = /* @__PURE__ */ Z({
472
472
  __name: "lume-axis",
473
473
  props: {
474
474
  scale: {
@@ -483,7 +483,7 @@ const ct = /* @__PURE__ */ z({
483
483
  position: {
484
484
  type: String,
485
485
  default: void 0,
486
- validator: (e) => e in Ct
486
+ validator: (e) => e in St
487
487
  },
488
488
  containerSize: {
489
489
  type: Object,
@@ -497,41 +497,41 @@ const ct = /* @__PURE__ */ z({
497
497
  type: String,
498
498
  default: D.VERTICAL
499
499
  },
500
- ...xe()
500
+ ...$e()
501
501
  },
502
502
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
503
503
  setup(e, { emit: t }) {
504
- const n = e, o = 16, { scale: r, containerSize: a, hoveredIndex: u, options: s, orientation: i } = Q(n), c = He("isEmpty", M(!1)), d = Be({}), v = M(null), y = M(null), $ = M(null), k = p(
504
+ const n = e, o = 16, { scale: r, containerSize: a, hoveredIndex: u, options: s, orientation: i } = Q(n), c = He("isEmpty", S(!1)), d = Be({}), v = S(null), y = S(null), $ = S(null), k = p(
505
505
  () => n.type ? Fe[n.type] : n.position
506
506
  ), A = p(
507
507
  () => n.type || (k.value === "left" ? "y" : "x")
508
508
  ), m = p(
509
509
  () => A.value === "x" && i.value === D.VERTICAL || A.value === "y" && i.value === D.HORIZONTAL
510
- ), { allOptions: _ } = ie(
510
+ ), { allOptions: _ } = se(
511
511
  s,
512
- A.value === "x" ? Nn : Dn
513
- ), { showTick: E } = xn(r, v, _.value.skip), N = p(() => {
514
- var g, T, f, C;
515
- return A.value === "y" && c.value ? `translate(0, ${((g = a.value) == null ? void 0 : g.height) / 2})` : A.value === "x" && c.value ? `translate(-${((T = a.value) == null ? void 0 : T.width) / 2}, ${(f = a.value) == null ? void 0 : f.height})` : `translate(0, ${A.value === "x" ? (C = a.value) == null ? void 0 : C.height : 0})`;
512
+ A.value === "x" ? En : Nn
513
+ ), { showTick: E } = $n(r, v, _.value.skip), N = p(() => {
514
+ var g, L, f, B;
515
+ return A.value === "y" && c.value ? `translate(0, ${((g = a.value) == null ? void 0 : g.height) / 2})` : A.value === "x" && c.value ? `translate(-${((L = a.value) == null ? void 0 : L.width) / 2}, ${(f = a.value) == null ? void 0 : f.height})` : `translate(0, ${A.value === "x" ? (B = a.value) == null ? void 0 : B.height : 0})`;
516
516
  }), I = p(() => {
517
- if (_e(r.value))
517
+ if (ge(r.value))
518
518
  return r.value.labels || r.value.domain();
519
- const { tickCount: g } = _.value, [T, f] = r.value.domain();
520
- return on(T, f, g);
519
+ const { tickCount: g } = _.value, [L, f] = r.value.domain();
520
+ return nn(L, f, g);
521
521
  }), x = p(() => {
522
522
  const { tickFormat: g } = _.value;
523
523
  return De(g);
524
524
  }), H = p(
525
525
  () => _.value.withHover && m.value && u.value > -1
526
- ), R = p(
527
- () => _.value.tickPadding * 2 || o
526
+ ), M = p(
527
+ () => _.value.tickPadding + xe || o
528
528
  ), X = p(() => A.value === "x" ? (
529
529
  // If x axis, get the tick height
530
530
  Math.max(
531
531
  ...(v.value || []).map(
532
532
  (g) => {
533
- var T, f;
534
- return ((f = (T = g.ref).getBBox) == null ? void 0 : f.call(T).height) + R.value;
533
+ var L, f;
534
+ return ((f = (L = g.ref).getBBox) == null ? void 0 : f.call(L).height) + M.value;
535
535
  }
536
536
  )
537
537
  )
@@ -540,79 +540,80 @@ const ct = /* @__PURE__ */ z({
540
540
  Math.max(
541
541
  ...(v.value || []).map(
542
542
  (g) => {
543
- var T, f;
544
- return ((f = (T = g.ref).getBBox) == null ? void 0 : f.call(T).width) + R.value;
543
+ var L, f;
544
+ return ((f = (L = g.ref).getBBox) == null ? void 0 : f.call(L).width) + M.value;
545
545
  }
546
546
  )
547
547
  )
548
548
  ));
549
549
  function Y(g) {
550
- const { showTicks: T } = _.value;
551
- return T === !1 ? "" : x.value(g);
550
+ const { showTicks: L } = _.value;
551
+ return L === !1 ? "" : x.value(g);
552
552
  }
553
- function G(g, T, f) {
554
- t("mouseenter", { index: m.value ? g : null, value: T, event: f });
553
+ function G(g, L, f) {
554
+ t("mouseenter", { index: m.value ? g : null, value: L, event: f });
555
555
  }
556
- function te(g, T, f) {
557
- t("click", { index: g, value: T, event: f });
556
+ function te(g, L, f) {
557
+ t("click", { index: g, value: L, event: f });
558
558
  }
559
- function Le(g) {
559
+ function Te(g) {
560
+ var L;
560
561
  if (!(!v.value || !v.value.length))
561
- return v.value[g].ref;
562
+ return (L = v.value[g]) == null ? void 0 : L.ref;
562
563
  }
563
- function se() {
564
+ function ce() {
564
565
  $.value = I.value.map(
565
- (g, T) => ({
566
+ (g, L) => ({
566
567
  value: Y(g),
567
- group: d.getTickGroupAttributes(g, T),
568
- ghost: d.getTickGhostAttributes(Le(T)),
568
+ group: d.getTickGroupAttributes(g, L),
569
+ ghost: d.getTickGhostAttributes(Te(L)),
569
570
  label: d.getTickLabelAttributes(),
570
571
  gridline: d.getGridLinesAttributes()
571
572
  })
572
573
  );
573
574
  }
574
- function ke() {
575
- const g = r.value.step ? "bandScale" : "linearScale", T = Sn[`${A.value}-${St[g]}`];
576
- Object.entries(T(r, a, _) || []).forEach(
577
- ([f, C]) => {
578
- d[f] = C;
575
+ function ye() {
576
+ const g = r.value.step ? "bandScale" : "linearScale", L = Mn[`${A.value}-${Mt[g]}`];
577
+ Object.entries(L(r, a, _) || []).forEach(
578
+ ([f, B]) => {
579
+ d[f] = B;
579
580
  }
580
581
  );
581
582
  }
582
- return U(r, ke, { flush: "sync", immediate: !0 }), U(r, se, { immediate: !0 }), U(v, se), U(X, (g) => t("lume__internal--axis-size", g)), ve(() => Re(y.value)), (g, T) => l(r) ? (h(), L("g", {
583
+ return U(r, ye, { flush: "sync", immediate: !0 }), U(r, ce, { immediate: !0 }), U(v, ce), U(X, (g) => t("lume__internal--axis-size", g)), pe(() => Re(y.value)), (g, L) => l(r) ? (h(), T("g", {
583
584
  key: 0,
584
585
  ref_key: "root",
585
586
  ref: y,
586
587
  class: "axis",
587
588
  transform: l(N),
588
589
  "data-j-axis": "",
589
- onMouseleave: T[1] || (T[1] = (f) => t("mouseleave", f))
590
+ onMouseleave: L[1] || (L[1] = (f) => t("mouseleave", f))
590
591
  }, [
591
- l(A) === "x" ? (h(), L("defs", jn, Vn)) : F("", !0),
592
- (h(!0), L(K, null, P($.value, (f, C) => (h(), Z(l(it), S({
593
- key: `${f.value}_${C}`,
592
+ l(A) === "x" ? (h(), T("defs", Cn, Gn)) : P("", !0),
593
+ (h(!0), T(K, null, z($.value, (f, B) => (h(), W(l(it), C({
594
+ key: `${f.value}_${B}`,
594
595
  ref_for: !0,
595
596
  ref_key: "tickRefs",
596
597
  ref: v
597
598
  }, f, {
598
- "is-hidden": l(_).skip && !l(E)(C),
599
+ "is-hidden": l(_).skip && !l(E)(B),
599
600
  "with-gridlines": l(_).gridLines,
600
- onMouseenter: (W) => G(C, f.value, W),
601
- onClick: (W) => te(C, f.value, W)
601
+ onMouseenter: (F) => G(B, f.value, F),
602
+ onClick: (F) => te(B, f.value, F)
602
603
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
603
- l(H) ? (h(), Z(l(it), S({ key: 1 }, $.value[l(u)], {
604
+ l(H) ? (h(), W(l(it), C({ key: 1 }, $.value[l(u)], {
604
605
  "with-gridlines": !1,
605
606
  "is-hovered": "",
606
- onClick: T[0] || (T[0] = (f) => te(
607
+ onClick: L[0] || (L[0] = (f) => te(
607
608
  l(u),
608
609
  $.value[l(u)].value,
609
610
  f
610
611
  ))
611
- }), null, 16)) : F("", !0)
612
- ], 40, Cn)) : F("", !0);
612
+ }), null, 16)) : P("", !0)
613
+ ], 40, Sn)) : P("", !0);
613
614
  }
614
615
  });
615
- function Fn(e, t, n, o) {
616
+ function Vn(e, t, n, o) {
616
617
  const r = p(() => n.value > 0 && n.value < 1), a = p(
617
618
  () => o.value > 0 && o.value < 1
618
619
  ), u = p(
@@ -624,13 +625,13 @@ function Fn(e, t, n, o) {
624
625
  );
625
626
  return { computedX: u, computedY: s, shouldHaveMinWidth: r, shouldHaveMinHeight: a };
626
627
  }
627
- function Pn(e, t, n, o) {
628
- const r = M(0), a = M(0), u = p(() => `${e.value + n.value / 2}px ${t.value + o.value / 2}px`);
629
- return ve(() => {
628
+ function Fn(e, t, n, o) {
629
+ const r = S(0), a = S(0), u = p(() => `${e.value + n.value / 2}px ${t.value + o.value / 2}px`);
630
+ return pe(() => {
630
631
  r.value = n.value, a.value = o.value;
631
632
  }), U(n, (s) => r.value = s), U(o, (s) => a.value = s), { computedWidth: r, computedHeight: a, transformOrigin: u };
632
633
  }
633
- const zn = ["x", "y", "width", "height"], Zn = /* @__PURE__ */ z({
634
+ const Pn = ["x", "y", "width", "height"], zn = /* @__PURE__ */ Z({
634
635
  __name: "lume-bar",
635
636
  props: {
636
637
  x: {
@@ -668,10 +669,10 @@ const zn = ["x", "y", "width", "height"], Zn = /* @__PURE__ */ z({
668
669
  },
669
670
  emits: ["click", "mouseover", "mouseleave"],
670
671
  setup(e, { emit: t }) {
671
- const n = e, { x: o, y: r, width: a, height: u, transition: s, classList: i } = Q(n), c = M(null), d = p(
672
+ const n = e, { x: o, y: r, width: a, height: u, transition: s, classList: i } = Q(n), c = S(null), d = p(
672
673
  () => typeof i.value == "string" ? [i.value] : i.value
673
- ), v = p(() => s.value === "width"), y = p(() => s.value === "height"), $ = Pn(o, r, a, u), { computedX: k, computedY: A, shouldHaveMinWidth: m, shouldHaveMinHeight: _ } = Fn(o, r, a, u), E = p(() => m.value ? 1 : (v.value ? $.computedWidth : a).value), N = p(() => _.value ? 1 : (y.value ? $.computedHeight : u).value), I = v.value || y.value ? $.transformOrigin : null;
674
- return ve(() => Re(c.value)), (x, H) => (h(), L("rect", {
674
+ ), v = p(() => s.value === "width"), y = p(() => s.value === "height"), $ = Fn(o, r, a, u), { computedX: k, computedY: A, shouldHaveMinWidth: m, shouldHaveMinHeight: _ } = Vn(o, r, a, u), E = p(() => m.value ? 1 : (v.value ? $.computedWidth : a).value), N = p(() => _.value ? 1 : (y.value ? $.computedHeight : u).value), I = v.value || y.value ? $.transformOrigin : null;
675
+ return pe(() => Re(c.value)), (x, H) => (h(), T("rect", {
675
676
  ref_key: "root",
676
677
  ref: c,
677
678
  class: ee(["lume-bar", [
@@ -689,28 +690,28 @@ const zn = ["x", "y", "width", "height"], Zn = /* @__PURE__ */ z({
689
690
  width: l(E),
690
691
  height: l(N),
691
692
  "data-j-bar": "",
692
- onClick: H[0] || (H[0] = (R) => t("click", R)),
693
- onMouseover: H[1] || (H[1] = (R) => t("mouseover", R)),
694
- onMouseleave: H[2] || (H[2] = (R) => t("mouseleave", R))
695
- }, null, 46, zn));
693
+ onClick: H[0] || (H[0] = (M) => t("click", M)),
694
+ onMouseover: H[1] || (H[1] = (M) => t("mouseover", M)),
695
+ onMouseleave: H[2] || (H[2] = (M) => t("mouseleave", M))
696
+ }, null, 46, Pn));
696
697
  }
697
698
  });
698
- const qe = /* @__PURE__ */ J(Zn, [["__scopeId", "data-v-8e8f732a"]]);
699
- function Wn() {
700
- const e = M(), t = Be({
699
+ const qe = /* @__PURE__ */ J(zn, [["__scopeId", "data-v-8e8f732a"]]);
700
+ function Zn() {
701
+ const e = S(), t = Be({
701
702
  dimensions: {}
702
703
  }), n = new ResizeObserver((o) => {
703
704
  o.forEach((r) => {
704
705
  t.dimensions = r.contentRect;
705
706
  });
706
707
  });
707
- return ve(() => {
708
+ return pe(() => {
708
709
  n.observe(e.value);
709
710
  }), Lt(() => {
710
711
  n.unobserve(e.value);
711
712
  }), { resizeState: t, resizeRef: e };
712
713
  }
713
- const Un = ["height"], Xn = ["transform"], Yn = /* @__PURE__ */ z({
714
+ const Wn = ["height"], Un = ["transform"], Xn = /* @__PURE__ */ Z({
714
715
  __name: "lume-chart-container",
715
716
  props: {
716
717
  margins: {
@@ -732,7 +733,7 @@ const Un = ["height"], Xn = ["transform"], Yn = /* @__PURE__ */ z({
732
733
  },
733
734
  emits: ["click", "mouseenter", "mouseleave", "resize"],
734
735
  setup(e, { emit: t }) {
735
- const n = e, { margins: o, containerSize: r } = Q(n), a = M(null), { resizeRef: u, resizeState: s } = Wn(), i = p(
736
+ const n = e, { margins: o, containerSize: r } = Q(n), a = S(null), { resizeRef: u, resizeState: s } = Zn(), i = p(
736
737
  () => r.value.height + o.value.top + o.value.bottom
737
738
  );
738
739
  return Ot(() => {
@@ -748,7 +749,7 @@ const Un = ["height"], Xn = ["transform"], Yn = /* @__PURE__ */ z({
748
749
  outerHeight: d
749
750
  };
750
751
  t("resize", $);
751
- }), (c, d) => (h(), L("div", {
752
+ }), (c, d) => (h(), T("div", {
752
753
  ref_key: "resizeRef",
753
754
  ref: u,
754
755
  class: ee(["lume-chart-container", {
@@ -756,8 +757,8 @@ const Un = ["height"], Xn = ["transform"], Yn = /* @__PURE__ */ z({
756
757
  }]),
757
758
  "data-j-chart-container": ""
758
759
  }, [
759
- B(c.$slots, "header", {}, void 0, !0),
760
- (h(), L("svg", {
760
+ R(c.$slots, "header", {}, void 0, !0),
761
+ (h(), T("svg", {
761
762
  ref_key: "root",
762
763
  ref: a,
763
764
  class: ee(["lume-chart-container__svg", {
@@ -774,33 +775,33 @@ const Un = ["height"], Xn = ["transform"], Yn = /* @__PURE__ */ z({
774
775
  class: "lume-chart-container__group",
775
776
  "data-j-chart-container__group": ""
776
777
  }, [
777
- B(c.$slots, "default", {}, void 0, !0)
778
- ], 8, Xn)
779
- ], 42, Un)),
780
- B(c.$slots, "footer", {}, void 0, !0),
781
- B(c.$slots, "extra", {}, void 0, !0)
778
+ R(c.$slots, "default", {}, void 0, !0)
779
+ ], 8, Un)
780
+ ], 42, Wn)),
781
+ R(c.$slots, "footer", {}, void 0, !0),
782
+ R(c.$slots, "extra", {}, void 0, !0)
782
783
  ], 2));
783
784
  }
784
785
  });
785
- const Kn = /* @__PURE__ */ J(Yn, [["__scopeId", "data-v-36870bc4"]]), Jn = ["onClick", "onMouseenter"], Qn = /* @__PURE__ */ z({
786
+ const Yn = /* @__PURE__ */ J(Xn, [["__scopeId", "data-v-36870bc4"]]), Kn = ["onClick", "onMouseenter"], Jn = /* @__PURE__ */ Z({
786
787
  __name: "lume-chart-legend",
787
788
  props: {
788
789
  data: {
789
790
  type: Array,
790
- validator: hn,
791
+ validator: fn,
791
792
  required: !0
792
793
  }
793
794
  },
794
795
  emits: ["click", "mouseenter", "mouseleave"],
795
796
  setup(e, { emit: t }) {
796
797
  const n = He("isEmpty");
797
- return (o, r) => l(n) ? F("", !0) : (h(), L("div", {
798
+ return (o, r) => l(n) ? P("", !0) : (h(), T("div", {
798
799
  key: 0,
799
800
  class: "lume-chart-legend",
800
801
  "data-j-chart-legend": "",
801
802
  onMouseleave: r[0] || (r[0] = (a) => t("mouseleave"))
802
803
  }, [
803
- (h(!0), L(K, null, P(e.data, (a, u) => (h(), L("div", {
804
+ (h(!0), T(K, null, z(e.data, (a, u) => (h(), T("div", {
804
805
  key: `legend-item-${u}`,
805
806
  class: "lume-chart-legend__item lume-typography--body",
806
807
  tabindex: "0",
@@ -812,43 +813,43 @@ const Kn = /* @__PURE__ */ J(Yn, [["__scopeId", "data-v-36870bc4"]]), Jn = ["onC
812
813
  class: ee(["lume-chart-legend__symbol", `lume-background-color--${a.color}`]),
813
814
  "data-j-chart-legend__symbol": ""
814
815
  }, null, 2),
815
- ce(" " + q(a.label || u), 1)
816
- ], 40, Jn))), 128))
816
+ de(" " + q(a.label || u), 1)
817
+ ], 40, Kn))), 128))
817
818
  ], 32));
818
819
  }
819
820
  });
820
- const dt = /* @__PURE__ */ J(Qn, [["__scopeId", "data-v-4710298b"]]);
821
- const qn = {}, eo = {
821
+ const dt = /* @__PURE__ */ J(Jn, [["__scopeId", "data-v-4710298b"]]);
822
+ const Qn = {}, qn = {
822
823
  class: "lume-tooltip__title",
823
824
  "data-j-tooltip__title": ""
824
825
  };
825
- function to(e, t) {
826
- return h(), L("div", eo, [
827
- B(e.$slots, "default", {}, void 0, !0)
826
+ function eo(e, t) {
827
+ return h(), T("div", qn, [
828
+ R(e.$slots, "default", {}, void 0, !0)
828
829
  ]);
829
830
  }
830
- const no = /* @__PURE__ */ J(qn, [["render", to], ["__scopeId", "data-v-8af3fac6"]]);
831
- const oo = {}, ao = {
831
+ const to = /* @__PURE__ */ J(Qn, [["render", eo], ["__scopeId", "data-v-8af3fac6"]]);
832
+ const no = {}, oo = {
832
833
  class: "lume-tooltip__item",
833
834
  "data-j-tooltip__summary-item": ""
834
- }, ro = { class: "lume-tooltip__value" };
835
- function lo(e, t) {
836
- return h(), L("li", ao, [
835
+ }, ao = { class: "lume-tooltip__value" };
836
+ function ro(e, t) {
837
+ return h(), T("li", oo, [
837
838
  j("span", null, [
838
- B(e.$slots, "default", {}, void 0, !0)
839
+ R(e.$slots, "default", {}, void 0, !0)
839
840
  ]),
840
- j("strong", ro, [
841
- B(e.$slots, "value", {}, void 0, !0)
841
+ j("strong", ao, [
842
+ R(e.$slots, "value", {}, void 0, !0)
842
843
  ])
843
844
  ]);
844
845
  }
845
- const uo = /* @__PURE__ */ J(oo, [["render", lo], ["__scopeId", "data-v-4ed7ec1b"]]), io = {
846
+ const lo = /* @__PURE__ */ J(no, [["render", ro], ["__scopeId", "data-v-4ed7ec1b"]]), uo = {
846
847
  class: "lume-tooltip__item",
847
848
  "data-j-tooltip__item": ""
848
- }, so = { "data-j-tooltip__item__label": "" }, co = {
849
+ }, io = { "data-j-tooltip__item__label": "" }, so = {
849
850
  class: "lume-tooltip__value",
850
851
  "data-j-tooltip__item__value": ""
851
- }, vo = /* @__PURE__ */ z({
852
+ }, co = /* @__PURE__ */ Z({
852
853
  __name: "lume-tooltip-item",
853
854
  props: {
854
855
  color: {
@@ -857,27 +858,27 @@ const uo = /* @__PURE__ */ J(oo, [["render", lo], ["__scopeId", "data-v-4ed7ec1b
857
858
  }
858
859
  },
859
860
  setup(e) {
860
- return (t, n) => (h(), L("li", io, [
861
- e.color ? (h(), L("span", {
861
+ return (t, n) => (h(), T("li", uo, [
862
+ e.color ? (h(), T("span", {
862
863
  key: 0,
863
864
  class: ee([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
864
865
  "data-j-tooltip__item__symbol": ""
865
- }, null, 2)) : F("", !0),
866
- j("span", so, [
867
- B(t.$slots, "label", {}, void 0, !0)
866
+ }, null, 2)) : P("", !0),
867
+ j("span", io, [
868
+ R(t.$slots, "label", {}, void 0, !0)
868
869
  ]),
869
- j("strong", co, [
870
- B(t.$slots, "value", {}, void 0, !0)
870
+ j("strong", so, [
871
+ R(t.$slots, "value", {}, void 0, !0)
871
872
  ])
872
873
  ]));
873
874
  }
874
875
  });
875
- const po = /* @__PURE__ */ J(vo, [["__scopeId", "data-v-4f995c3c"]]), fo = (e) => (qt("data-v-57f370fa"), e = e(), en(), e), ho = { class: "lume-tooltip__items" }, mo = {
876
+ const vo = /* @__PURE__ */ J(co, [["__scopeId", "data-v-4f995c3c"]]), po = (e) => (Qt("data-v-57f370fa"), e = e(), qt(), e), fo = { class: "lume-tooltip__items" }, ho = {
876
877
  key: 0,
877
878
  class: "lume-tooltip__break"
878
- }, go = /* @__PURE__ */ fo(() => /* @__PURE__ */ j("hr", null, null, -1)), _o = [
879
- go
880
- ], yo = /* @__PURE__ */ z({
879
+ }, mo = /* @__PURE__ */ po(() => /* @__PURE__ */ j("hr", null, null, -1)), go = [
880
+ mo
881
+ ], _o = /* @__PURE__ */ Z({
881
882
  __name: "lume-tooltip",
882
883
  props: {
883
884
  targetElement: {
@@ -891,7 +892,7 @@ const po = /* @__PURE__ */ J(vo, [["__scopeId", "data-v-4f995c3c"]]), fo = (e) =
891
892
  position: {
892
893
  type: String,
893
894
  default: "auto",
894
- validator: (e) => En.includes(e)
895
+ validator: (e) => In.includes(e)
895
896
  },
896
897
  fixedPositioning: {
897
898
  type: Boolean,
@@ -909,11 +910,11 @@ const po = /* @__PURE__ */ J(vo, [["__scopeId", "data-v-4f995c3c"]]), fo = (e) =
909
910
  type: String,
910
911
  default: null
911
912
  },
912
- ...xe()
913
+ ...$e()
913
914
  },
914
915
  emits: ["opened", "moved", "closed"],
915
916
  setup(e, { emit: t }) {
916
- const n = e, o = M(null), { items: r, options: a } = Q(n), u = ne(), s = M(null), { allOptions: i } = ie(a), c = p(
917
+ const n = e, o = S(null), { items: r, options: a } = Q(n), u = ne(), s = S(null), { allOptions: i } = se(a), c = p(
917
918
  () => i.value.fixedPositioning ?? n.fixedPositioning
918
919
  ), d = p(
919
920
  () => c.value ? "fixed" : "absolute"
@@ -941,7 +942,7 @@ const po = /* @__PURE__ */ J(vo, [["__scopeId", "data-v-4f995c3c"]]), fo = (e) =
941
942
  }
942
943
  ), m = p(() => u.summary || A.value.label);
943
944
  function _() {
944
- n.targetElement && o.value && (s.value = un(n.targetElement, o.value, {
945
+ n.targetElement && o.value && (s.value = ln(n.targetElement, o.value, {
945
946
  placement: n.position,
946
947
  strategy: d.value,
947
948
  modifiers: v.value
@@ -960,49 +961,49 @@ const po = /* @__PURE__ */ J(vo, [["__scopeId", "data-v-4f995c3c"]]), fo = (e) =
960
961
  (I, x) => {
961
962
  !x && I ? _() : N();
962
963
  }
963
- ), ve(_), Lt(E), (I, x) => Jt((h(), L("div", {
964
+ ), pe(_), Lt(E), (I, x) => Kt((h(), T("div", {
964
965
  ref_key: "root",
965
966
  ref: o,
966
967
  class: "lume-tooltip lume-typography--caption",
967
968
  "data-j-tooltip": ""
968
969
  }, [
969
- B(I.$slots, "default", {}, () => [
970
- B(I.$slots, "title", {}, () => [
971
- l(y) ? (h(), Z(l(no), { key: 0 }, {
970
+ R(I.$slots, "default", {}, () => [
971
+ R(I.$slots, "title", {}, () => [
972
+ l(y) ? (h(), W(l(to), { key: 0 }, {
972
973
  default: V(() => [
973
- ce(q(l(k)(e.title)), 1)
974
+ de(q(l(k)(e.title)), 1)
974
975
  ]),
975
976
  _: 1
976
- })) : F("", !0)
977
+ })) : P("", !0)
977
978
  ], !0),
978
- j("ul", ho, [
979
- B(I.$slots, "summary", {}, () => [
980
- l(m) ? (h(), Z(l(uo), { key: 0 }, re({
979
+ j("ul", fo, [
980
+ R(I.$slots, "summary", {}, () => [
981
+ l(m) ? (h(), W(l(lo), { key: 0 }, le({
981
982
  default: V(() => [
982
- ce(q(l(A).label) + " ", 1)
983
+ de(q(l(A).label) + " ", 1)
983
984
  ]),
984
985
  _: 2
985
986
  }, [
986
987
  l(A).value ? {
987
988
  name: "value",
988
989
  fn: V(() => [
989
- ce(q(l($)(l(A).value)), 1)
990
+ de(q(l($)(l(A).value)), 1)
990
991
  ]),
991
992
  key: "0"
992
993
  } : void 0
993
- ]), 1024)) : F("", !0)
994
+ ]), 1024)) : P("", !0)
994
995
  ], !0),
995
- l(m) ? (h(), L("li", mo, _o)) : F("", !0),
996
- B(I.$slots, "items", {}, () => [
997
- (h(!0), L(K, null, P(l(r), (H) => (h(), Z(l(po), {
996
+ l(m) ? (h(), T("li", ho, go)) : P("", !0),
997
+ R(I.$slots, "items", {}, () => [
998
+ (h(!0), T(K, null, z(l(r), (H) => (h(), W(l(vo), {
998
999
  key: H.label,
999
1000
  color: H.color
1000
1001
  }, {
1001
1002
  label: V(() => [
1002
- ce(q(H.label), 1)
1003
+ de(q(H.label), 1)
1003
1004
  ]),
1004
1005
  value: V(() => [
1005
- ce(q(l($)(H.value)), 1)
1006
+ de(q(l($)(H.value)), 1)
1006
1007
  ]),
1007
1008
  _: 2
1008
1009
  }, 1032, ["color"]))), 128))
@@ -1010,17 +1011,17 @@ const po = /* @__PURE__ */ J(vo, [["__scopeId", "data-v-4f995c3c"]]), fo = (e) =
1010
1011
  ])
1011
1012
  ], !0)
1012
1013
  ], 512)), [
1013
- [Qt, e.targetElement]
1014
+ [Jt, e.targetElement]
1014
1015
  ]);
1015
1016
  }
1016
1017
  });
1017
- const ko = /* @__PURE__ */ J(yo, [["__scopeId", "data-v-57f370fa"]]);
1018
+ const yo = /* @__PURE__ */ J(_o, [["__scopeId", "data-v-57f370fa"]]);
1018
1019
  var fe = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(fe || {});
1019
- const bo = fe.Categorical, we = ae.Skyblue, Ao = Je.SkyTeal;
1020
- function To(e) {
1021
- return e === fe.Divergent ? Ao : we;
1020
+ const ko = fe.Categorical, we = ae.Skyblue, bo = Je.SkyTeal;
1021
+ function Ao(e) {
1022
+ return e === fe.Divergent ? bo : we;
1022
1023
  }
1023
- function Lo(e) {
1024
+ function To(e) {
1024
1025
  return Object.values(Qe).includes(e);
1025
1026
  }
1026
1027
  function vt(e, t) {
@@ -1031,15 +1032,15 @@ function vt(e, t) {
1031
1032
  ...Qe
1032
1033
  }).includes(e);
1033
1034
  }
1034
- function Oo(e, t) {
1035
+ function Lo(e, t) {
1035
1036
  const n = Object.values(ae).indexOf(e);
1036
- return An(Object.values(ae), n > -1 ? n : 0)[t];
1037
+ return bn(Object.values(ae), n > -1 ? n : 0)[t];
1037
1038
  }
1038
- function $o(e, t) {
1039
+ function Oo(e, t) {
1039
1040
  const n = 50 + t * 10;
1040
1041
  return `${e}-${n}`;
1041
1042
  }
1042
- function xo(e, t) {
1043
+ function $o(e, t) {
1043
1044
  const n = (t + 1) * 10;
1044
1045
  return `${e}-${n}`;
1045
1046
  }
@@ -1047,20 +1048,20 @@ function pt(e, t, n) {
1047
1048
  switch (t) {
1048
1049
  default:
1049
1050
  case fe.Categorical:
1050
- return Lo(e) ? e : Oo(e, n);
1051
+ return To(e) ? e : Lo(e, n);
1051
1052
  case fe.Sequential:
1052
- return $o(e, n);
1053
+ return Oo(e, n);
1053
1054
  case fe.Divergent:
1054
- return xo(e, n);
1055
+ return $o(e, n);
1055
1056
  }
1056
1057
  }
1057
- function wo(e, t, n = bo, o) {
1058
- return vt(e, n) ? e : (o > 4 && (he(de.ColorLoop), o = o % 5), vt(t, n) ? pt(t, n, o) : pt(To(n), n, o));
1058
+ function xo(e, t, n = ko, o) {
1059
+ return vt(e, n) ? e : (o > 4 && (he(ve.ColorLoop), o = o % 5), vt(t, n) ? pt(t, n, o) : pt(Ao(n), n, o));
1059
1060
  }
1060
- function Io(e) {
1061
- return e.map((t) => mn(t) ? t : { value: t });
1061
+ function wo(e) {
1062
+ return e.map((t) => hn(t) ? t : { value: t });
1062
1063
  }
1063
- function Eo(e) {
1064
+ function Io(e) {
1064
1065
  return e.__internal === !0;
1065
1066
  }
1066
1067
  const et = (e = null) => ({
@@ -1086,13 +1087,13 @@ function tt(e, t, n, o, r) {
1086
1087
  const a = Be({
1087
1088
  width: 0,
1088
1089
  height: 0
1089
- }), u = Ln(12), s = p(() => {
1090
+ }), u = Tn(12), s = p(() => {
1090
1091
  var d;
1091
- return e.value.length > 5 && he(de.DatasetLength), (d = e.value) == null ? void 0 : d.map(
1092
+ return e.value.length > 5 && he(ve.DatasetLength), (d = e.value) == null ? void 0 : d.map(
1092
1093
  (v, y) => {
1093
- if (Eo(v))
1094
+ if (Io(v))
1094
1095
  return v;
1095
- const $ = Io(v.values), k = wo(
1096
+ const $ = wo(v.values), k = xo(
1096
1097
  v.color,
1097
1098
  n == null ? void 0 : n.value,
1098
1099
  o == null ? void 0 : o.value.colorPalette,
@@ -1119,7 +1120,7 @@ function tt(e, t, n, o, r) {
1119
1120
  updateSize: c
1120
1121
  };
1121
1122
  }
1122
- const No = () => ({
1123
+ const Eo = () => ({
1123
1124
  xScale: {
1124
1125
  type: Function,
1125
1126
  default: null
@@ -1129,8 +1130,8 @@ const No = () => ({
1129
1130
  default: null
1130
1131
  }
1131
1132
  });
1132
- function Do(e, t, n, o, r) {
1133
- const a = M(null), u = M(null);
1133
+ function No(e, t, n, o, r) {
1134
+ const a = S(null), u = S(null);
1134
1135
  function s() {
1135
1136
  const { width: i, height: c } = n;
1136
1137
  !i && !c || !t.value || !e.value || (o.value === D.HORIZONTAL ? (a.value = ht(
@@ -1160,22 +1161,22 @@ function Do(e, t, n, o, r) {
1160
1161
  function ft(e, t, n, o) {
1161
1162
  const r = [0, t], { padding: a, paddingInner: u, paddingOuter: s } = o, i = a ?? (n === D.HORIZONTAL ? Ht : Dt);
1162
1163
  return Object.assign(
1163
- Oe().range(r).paddingInner(u ?? i).paddingOuter(s ?? i).domain(e.map((c, d) => d)),
1164
+ Le().range(r).paddingInner(u ?? i).paddingOuter(s ?? i).domain(e.map((c, d) => d)),
1164
1165
  { labels: e }
1165
1166
  );
1166
1167
  }
1167
1168
  function ht(e, t, n, o) {
1168
1169
  const r = xt(e).filter((d) => d != null), a = [0, t];
1169
1170
  if (r.length === 0)
1170
- return $e().range(a).domain([0, 0]).nice();
1171
+ return Oe().range(a).domain([0, 0]).nice();
1171
1172
  const u = Math.min(...r), s = o && u > 0 ? 0 : u, i = Math.max(...r), c = n === D.HORIZONTAL ? [s, i] : [i, s];
1172
- return $e().range(a).domain(c).nice();
1173
+ return Oe().range(a).domain(c).nice();
1173
1174
  }
1174
1175
  function mt(e) {
1175
1176
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1176
1177
  }
1177
1178
  function Pe(e, t) {
1178
- return _e(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1179
+ return ge(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
1179
1180
  }
1180
1181
  function gt(e, t, {
1181
1182
  padding: n,
@@ -1185,13 +1186,13 @@ function gt(e, t, {
1185
1186
  const a = n ?? (t === D.HORIZONTAL ? Ht : Dt);
1186
1187
  return e.copy().paddingInner(o ?? a).paddingOuter(r ?? a);
1187
1188
  }
1188
- function jt(e) {
1189
+ function Ct(e) {
1189
1190
  return Object.values(D).includes(e);
1190
1191
  }
1191
- const Ae = (e, t = !0) => ({
1192
+ const be = (e, t = !0) => ({
1192
1193
  ...et(e),
1193
- ...No(),
1194
- ...xe(),
1194
+ ...Eo(),
1195
+ ...$e(),
1195
1196
  classList: {
1196
1197
  type: [String, Array],
1197
1198
  default: () => []
@@ -1204,12 +1205,12 @@ const Ae = (e, t = !0) => ({
1204
1205
  orientation: {
1205
1206
  type: String,
1206
1207
  default: D.VERTICAL,
1207
- validator: jt
1208
+ validator: Ct
1208
1209
  }
1209
1210
  } : {}
1210
- }), Ho = (e) => ({
1211
+ }), Do = (e) => ({
1211
1212
  ...et(e),
1212
- ...xe(),
1213
+ ...$e(),
1213
1214
  hoveredElement: {
1214
1215
  type: [Number, String],
1215
1216
  default: null
@@ -1230,7 +1231,7 @@ const Ae = (e, t = !0) => ({
1230
1231
  orientation: {
1231
1232
  type: String,
1232
1233
  default: D.VERTICAL,
1233
- validator: jt
1234
+ validator: Ct
1234
1235
  },
1235
1236
  xScale: {
1236
1237
  type: Function,
@@ -1256,7 +1257,7 @@ const Ae = (e, t = !0) => ({
1256
1257
  type: [String, Array],
1257
1258
  default: () => []
1258
1259
  }
1259
- }), Bo = { class: "lume-overlay-group" }, Ro = /* @__PURE__ */ z({
1260
+ }), Ho = { class: "lume-overlay-group" }, Bo = /* @__PURE__ */ Z({
1260
1261
  __name: "lume-overlay-group",
1261
1262
  props: {
1262
1263
  ...Me(),
@@ -1270,7 +1271,7 @@ const Ae = (e, t = !0) => ({
1270
1271
  const n = e, { data: o, orientation: r, xScale: a, yScale: u } = Q(n), s = p(() => Ve(o));
1271
1272
  function i(c) {
1272
1273
  var m;
1273
- const d = r.value === D.HORIZONTAL ? u.value : a.value, v = d.domain(), y = gn(d), $ = ((m = d.paddingInner) == null ? void 0 : m.call(d)) ?? 0, k = y * $, A = _e(d) ? d(v[c]) - k / 2 : d(c) - y / 2;
1274
+ const d = r.value === D.HORIZONTAL ? u.value : a.value, v = d.domain(), y = mn(d), $ = ((m = d.paddingInner) == null ? void 0 : m.call(d)) ?? 0, k = y * $, A = ge(d) ? d(v[c]) - k / 2 : d(c) - y / 2;
1274
1275
  return r.value === D.HORIZONTAL ? {
1275
1276
  width: Math.max(...a.value.range()),
1276
1277
  height: y,
@@ -1281,8 +1282,8 @@ const Ae = (e, t = !0) => ({
1281
1282
  transform: `translate(${A}, 0)`
1282
1283
  };
1283
1284
  }
1284
- return (c, d) => (h(), L("g", Bo, [
1285
- (h(!0), L(K, null, P(l(s), (v, y) => (h(), Z(l(qe), S(i(y), {
1285
+ return (c, d) => (h(), T("g", Ho, [
1286
+ (h(!0), T(K, null, z(l(s), (v, y) => (h(), W(l(qe), C(i(y), {
1286
1287
  key: `overlay-${y}`,
1287
1288
  "data-j-lume-overlay-group": y,
1288
1289
  transition: !1,
@@ -1293,12 +1294,12 @@ const Ae = (e, t = !0) => ({
1293
1294
  ]));
1294
1295
  }
1295
1296
  });
1296
- function Mo(e) {
1297
+ function Ro(e) {
1297
1298
  return { hasNegativeValues: p(
1298
1299
  () => xt(e.value).some((n) => n < 0)
1299
1300
  ) };
1300
1301
  }
1301
- function So(e, t, n, o) {
1302
+ function Mo(e, t, n, o) {
1302
1303
  const r = p(
1303
1304
  () => o.value === D.HORIZONTAL
1304
1305
  ), a = p(
@@ -1323,19 +1324,19 @@ function So(e, t, n, o) {
1323
1324
  transform: s.value
1324
1325
  })) };
1325
1326
  }
1326
- function Co(e) {
1327
+ function So(e) {
1327
1328
  return e.reduce((t, n) => n.values.map((o, r) => t[r] ? o.value > t[r] ? o.value : t[r] : o.value ?? 0), []);
1328
1329
  }
1329
- function jo(e) {
1330
+ function Co(e) {
1330
1331
  return e.reduce((t, n) => n.values.map((o, r) => {
1331
1332
  const a = o.value == null || o.value < 0 ? 0 : o.value;
1332
1333
  return t[r] ? t[r] + a : a;
1333
1334
  }), []);
1334
1335
  }
1335
1336
  const _t = {
1336
- "stacked-bar": jo
1337
+ "stacked-bar": Co
1337
1338
  };
1338
- function Gt(e, t, n, o, r, a, u) {
1339
+ function jt(e, t, n, o, r, a, u) {
1339
1340
  const s = p(
1340
1341
  () => {
1341
1342
  var c;
@@ -1343,7 +1344,7 @@ function Gt(e, t, n, o, r, a, u) {
1343
1344
  }
1344
1345
  );
1345
1346
  function i(c) {
1346
- const d = u != null && u.value && _t[u.value] ? _t[u.value](c) : Co(c);
1347
+ const d = u != null && u.value && _t[u.value] ? _t[u.value](c) : So(c);
1347
1348
  e.value = d.map((v, y) => ({
1348
1349
  cx: (r == null ? void 0 : r.value) === D.HORIZONTAL ? n.value(v) : Pe(n.value, y),
1349
1350
  cy: (r == null ? void 0 : r.value) === D.HORIZONTAL ? Pe(o.value, y) : o.value(v)
@@ -1357,7 +1358,7 @@ function Gt(e, t, n, o, r, a, u) {
1357
1358
  { immediate: !0 }
1358
1359
  ), { shouldGenerateTooltipAnchors: s, updateTooltipAnchorAttributes: i };
1359
1360
  }
1360
- function Go() {
1361
+ function jo() {
1361
1362
  const e = Be({
1362
1363
  opened: !1,
1363
1364
  targetElement: null
@@ -1368,7 +1369,7 @@ function Go() {
1368
1369
  e.opened = !1, e.targetElement = null;
1369
1370
  } };
1370
1371
  }
1371
- function Vo(e) {
1372
+ function Go(e) {
1372
1373
  return { getTooltipItems: p(
1373
1374
  () => (n) => e.value.map(({ color: o, label: r, values: a }) => {
1374
1375
  var u, s, i;
@@ -1394,83 +1395,83 @@ const ze = 16, Ze = 8, We = 28, Ue = 24, me = {
1394
1395
  left: Ue
1395
1396
  }
1396
1397
  };
1397
- function Fo(e) {
1398
+ function Vo(e) {
1398
1399
  return !e || e === "auto" || e.top == null || e.top === "auto" ? ze : e.top;
1399
1400
  }
1400
- function Po(e) {
1401
+ function Fo(e) {
1401
1402
  return !e || e === "auto" || e.right == null || e.right === "auto" ? Ze : e.right;
1402
1403
  }
1403
- function zo(e, t) {
1404
+ function Po(e, t) {
1404
1405
  return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? t || We : e.bottom;
1405
1406
  }
1406
- function Zo(e, t) {
1407
+ function zo(e, t) {
1407
1408
  return !e || e === "auto" || e.left == null || e.left === "auto" ? t || Ue : e.left;
1408
1409
  }
1409
- const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-section" }, Xo = {
1410
+ const Zo = { class: "lume-chart__header" }, Wo = { class: "lume-chart__header-section" }, Uo = {
1410
1411
  key: 0,
1411
1412
  class: "lume-chart__title lume-chart-title lume-typography--display"
1412
- }, Yo = { class: "lume-chart__controls" }, Ko = { class: "lume-chart__header-section" }, Jo = {
1413
+ }, Xo = { class: "lume-chart__controls" }, Yo = { class: "lume-chart__header-section" }, Ko = {
1413
1414
  key: 0,
1414
1415
  class: "lume-chart__axis-title lume-axis-title lume-typography--body"
1415
- }, Qo = { key: 3 }, qo = ["r"], ea = {
1416
+ }, Jo = { key: 3 }, Qo = ["r"], qo = {
1416
1417
  key: 0,
1417
1418
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1418
- }, ta = /* @__PURE__ */ z({
1419
+ }, ea = /* @__PURE__ */ Z({
1419
1420
  __name: "lume-chart",
1420
1421
  props: {
1421
- ...Ae(),
1422
+ ...be(),
1422
1423
  chartType: {
1423
1424
  type: String,
1424
1425
  default: null
1425
1426
  }
1426
1427
  },
1427
1428
  setup(e, { emit: t }) {
1428
- const n = e, o = ne(), { data: r, labels: a, color: u, options: s, orientation: i, chartType: c } = Q(n), d = M(-1), v = M(null), y = M(null), $ = M([]), k = M(0), A = M(0), { allOptions: m } = ie(s), { internalData: _, computedLabels: E, containerSize: N, updateSize: I, chartID: x } = tt(r, a, u, m, i), { xScale: H, yScale: R } = Do(
1429
+ const n = e, o = ne(), { data: r, labels: a, color: u, options: s, orientation: i, chartType: c } = Q(n), d = S(-1), v = S(null), y = S(null), $ = S([]), k = S(0), A = S(0), { allOptions: m } = se(s), { internalData: _, computedLabels: E, containerSize: N, updateSize: I, chartID: x } = tt(r, a, u, m, i), { xScale: H, yScale: M } = No(
1429
1430
  _,
1430
1431
  E,
1431
1432
  N,
1432
1433
  i,
1433
1434
  m
1434
1435
  ), X = p(() => ({
1435
- top: Fo(m.value.margins),
1436
- right: Po(m.value.margins),
1437
- bottom: zo(m.value.margins, k.value),
1438
- left: Zo(m.value.margins, A.value)
1436
+ top: Vo(m.value.margins),
1437
+ right: Fo(m.value.margins),
1438
+ bottom: Po(m.value.margins, k.value),
1439
+ left: zo(m.value.margins, A.value)
1439
1440
  })), Y = p(() => {
1440
1441
  var O;
1441
1442
  return n.xScale ? mt(n.xScale) ? n.xScale : (O = n.xScale) == null ? void 0 : O.call(n, _.value, a.value, N) : H.value;
1442
1443
  }), G = p(() => {
1443
1444
  var O;
1444
- return n.yScale ? mt(n.yScale) ? n.yScale : (O = n.yScale) == null ? void 0 : O.call(n, _.value, a.value, N) : R.value;
1445
+ return n.yScale ? mt(n.yScale) ? n.yScale : (O = n.yScale) == null ? void 0 : O.call(n, _.value, a.value, N) : M.value;
1445
1446
  }), te = p(() => ({
1446
1447
  ...m.value.xAxisOptions,
1447
1448
  withHover: i.value === D.VERTICAL
1448
- })), Le = p(() => ({
1449
+ })), Te = p(() => ({
1449
1450
  ...m.value.yAxisOptions,
1450
1451
  withHover: i.value === D.HORIZONTAL
1451
- })), se = p(() => {
1452
+ })), ce = p(() => {
1452
1453
  var O;
1453
1454
  return (O = m.value.xAxisOptions) == null ? void 0 : O.title;
1454
- }), ke = p(() => {
1455
+ }), ye = p(() => {
1455
1456
  var O;
1456
1457
  return (O = m.value.yAxisOptions) == null ? void 0 : O.title;
1457
1458
  }), g = p(() => {
1458
1459
  var O;
1459
- return ((O = m.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && se.value;
1460
- }), T = p(() => {
1460
+ return ((O = m.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && ce.value;
1461
+ }), L = p(() => {
1461
1462
  var O;
1462
- return ((O = m.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && ke.value;
1463
+ return ((O = m.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && ye.value;
1463
1464
  }), f = p(
1464
1465
  () => r.value.every((O) => !O.values.length)
1465
- ), C = p(() => {
1466
+ ), B = p(() => {
1466
1467
  const O = [], { noBaseScales: b } = m.value;
1467
1468
  return b || O.push(() => !!(Y.value && G.value)), O.every((w) => w() === !0);
1468
- }), { hasNegativeValues: W } = Mo(_), { negativeBarAttributes: pe } = So(
1469
+ }), { hasNegativeValues: F } = Ro(_), { negativeBarAttributes: re } = Mo(
1469
1470
  N,
1470
1471
  Y,
1471
1472
  G,
1472
1473
  i
1473
- ), { shouldGenerateTooltipAnchors: Se } = Gt(
1474
+ ), { shouldGenerateTooltipAnchors: Se } = jt(
1474
1475
  $,
1475
1476
  m,
1476
1477
  Y,
@@ -1478,7 +1479,7 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1478
1479
  i,
1479
1480
  _,
1480
1481
  c
1481
- ), { tooltipConfig: Ie, showTooltip: Ee, hideTooltip: Ut } = Go(), { getTooltipItems: ot } = Vo(_), Xt = p(
1482
+ ), { tooltipConfig: Ie, showTooltip: Ee, hideTooltip: Wt } = jo(), { getTooltipItems: ot } = Go(_), Ut = p(
1482
1483
  () => m.value.withTooltip !== !1 && Ie.opened
1483
1484
  ), at = p(
1484
1485
  () => {
@@ -1495,13 +1496,13 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1495
1496
  }
1496
1497
  function rt(O) {
1497
1498
  if (O > r.value[0].values.length - 1) {
1498
- he(de.InvalidHoveredIndex);
1499
+ he(ve.InvalidHoveredIndex);
1499
1500
  return;
1500
1501
  }
1501
1502
  Ne(O);
1502
1503
  }
1503
- function Yt() {
1504
- Ut(), d.value = -1, t("chart-mouseleave");
1504
+ function Xt() {
1505
+ Wt(), d.value = -1, t("chart-mouseleave");
1505
1506
  }
1506
1507
  function lt({ index: O, value: b, event: w }) {
1507
1508
  O !== null && Ne(O), t("axis-mouseenter", { index: O, value: b, event: w });
@@ -1515,15 +1516,15 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1515
1516
  ), U(
1516
1517
  a,
1517
1518
  (O, b) => t("labels-changed", { newValue: O, oldValue: b })
1518
- ), U(f, (O) => O && he(de.Empty), { immediate: !0 }), U(() => n.hoveredIndex, rt), U(
1519
+ ), U(f, (O) => O && he(ve.Empty), { immediate: !0 }), U(() => n.hoveredIndex, rt), U(
1519
1520
  $,
1520
1521
  (O) => {
1521
1522
  O && n.hoveredIndex != null && d.value === -1 && rt(n.hoveredIndex);
1522
1523
  },
1523
1524
  { flush: "post" }
1524
- ), ve(() => {
1525
+ ), pe(() => {
1525
1526
  t("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1526
- }), Ce("chartID", x), Ce("isEmpty", f), Ce("tooltipAnchorAttributes", $), (O, b) => (h(), Z(l(Kn), {
1527
+ }), Ce("chartID", x), Ce("isEmpty", f), Ce("tooltipAnchorAttributes", $), (O, b) => (h(), W(l(Yn), {
1527
1528
  id: `lume-chart_${l(x)}`,
1528
1529
  ref_key: "chartContainer",
1529
1530
  ref: y,
@@ -1535,20 +1536,20 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1535
1536
  onResize: l(I),
1536
1537
  onClick: b[22] || (b[22] = (w) => t("chart-click", w)),
1537
1538
  onMouseenter: b[23] || (b[23] = (w) => t("chart-mouseenter", w)),
1538
- onMouseleave: Yt
1539
+ onMouseleave: Xt
1539
1540
  }, {
1540
1541
  header: V(() => [
1541
- j("div", Wo, [
1542
- j("div", Uo, [
1543
- O.title ? (h(), L("h1", Xo, q(O.title), 1)) : F("", !0),
1544
- j("div", Yo, [
1545
- B(O.$slots, "controls", {}, void 0, !0)
1542
+ j("div", Zo, [
1543
+ j("div", Wo, [
1544
+ O.title ? (h(), T("h1", Uo, q(O.title), 1)) : P("", !0),
1545
+ j("div", Xo, [
1546
+ R(O.$slots, "controls", {}, void 0, !0)
1546
1547
  ])
1547
1548
  ]),
1548
- j("div", Ko, [
1549
- l(T) ? (h(), L("h3", Jo, q(l(ke)), 1)) : F("", !0),
1550
- B(O.$slots, "legend", { data: l(_) }, () => [
1551
- l(m).withLegend !== !1 && l(m).legendPosition !== "bottom" ? (h(), Z(l(dt), {
1549
+ j("div", Yo, [
1550
+ l(L) ? (h(), T("h3", Ko, q(l(ye)), 1)) : P("", !0),
1551
+ R(O.$slots, "legend", { data: l(_) }, () => [
1552
+ l(m).withLegend !== !1 && l(m).legendPosition !== "bottom" ? (h(), W(l(dt), {
1552
1553
  key: 0,
1553
1554
  data: l(_),
1554
1555
  class: "lume-chart__legend",
@@ -1556,14 +1557,14 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1556
1557
  onClick: b[0] || (b[0] = (w) => t("legend-click", w)),
1557
1558
  onMouseenter: b[1] || (b[1] = (w) => t("legend-mouseenter", w)),
1558
1559
  onMouseleave: b[2] || (b[2] = (w) => t("legend-mouseleave"))
1559
- }, null, 8, ["data"])) : F("", !0)
1560
+ }, null, 8, ["data"])) : P("", !0)
1560
1561
  ], !0)
1561
1562
  ])
1562
1563
  ])
1563
1564
  ]),
1564
1565
  footer: V(() => [
1565
- l(g) ? (h(), L("h3", ea, q(l(se)), 1)) : F("", !0),
1566
- l(m).withLegend !== !1 && l(m).legendPosition == "bottom" ? (h(), Z(l(dt), {
1566
+ l(g) ? (h(), T("h3", qo, q(l(ce)), 1)) : P("", !0),
1567
+ l(m).withLegend !== !1 && l(m).legendPosition == "bottom" ? (h(), W(l(dt), {
1567
1568
  key: 1,
1568
1569
  data: l(_),
1569
1570
  class: "lume-chart__legend lume-chart__legend--bottom",
@@ -1571,10 +1572,10 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1571
1572
  onClick: b[16] || (b[16] = (w) => t("legend-click", w)),
1572
1573
  onMouseenter: b[17] || (b[17] = (w) => t("legend-mouseenter", w)),
1573
1574
  onMouseleave: b[18] || (b[18] = (w) => t("legend-mouseleave"))
1574
- }, null, 8, ["data"])) : F("", !0)
1575
+ }, null, 8, ["data"])) : P("", !0)
1575
1576
  ]),
1576
1577
  extra: V(() => [
1577
- B(O.$slots, "tooltip", S(l(Ie), {
1578
+ R(O.$slots, "tooltip", C(l(Ie), {
1578
1579
  data: l(_),
1579
1580
  labels: l(E),
1580
1581
  title: l(E)[d.value],
@@ -1584,7 +1585,7 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1584
1585
  hoveredIndex: d.value,
1585
1586
  options: l(m).tooltipOptions
1586
1587
  }), () => [
1587
- l(Xt) ? (h(), Z(l(ko), S({ key: 0 }, l(Ie), {
1588
+ l(Ut) ? (h(), W(l(yo), C({ key: 0 }, l(Ie), {
1588
1589
  position: l(at),
1589
1590
  title: l(E)[d.value],
1590
1591
  items: l(ot)(d.value),
@@ -1601,24 +1602,24 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1601
1602
  onClosed: b[21] || (b[21] = (w) => t("tooltip-closed"))
1602
1603
  }), {
1603
1604
  default: V(() => [
1604
- B(O.$slots, "tooltip-content", {
1605
+ R(O.$slots, "tooltip-content", {
1605
1606
  data: l(_),
1606
1607
  labels: l(E),
1607
1608
  hoveredIndex: d.value
1608
1609
  }, void 0, !0)
1609
1610
  ]),
1610
1611
  _: 3
1611
- }, 16, ["position", "title", "items", "options"])) : F("", !0)
1612
+ }, 16, ["position", "title", "items", "options"])) : P("", !0)
1612
1613
  ], !0)
1613
1614
  ]),
1614
1615
  default: V(() => [
1615
- l(C) ? (h(), L(K, { key: 0 }, [
1616
- l(W) ? (h(), Z(l(qe), S({ key: 0 }, l(pe), {
1616
+ l(B) ? (h(), T(K, { key: 0 }, [
1617
+ l(F) ? (h(), W(l(qe), C({ key: 0 }, l(re), {
1617
1618
  "class-list": "lume-fill--negative",
1618
1619
  transition: !1,
1619
1620
  "data-j-lume-chart__negative-values": ""
1620
- }), null, 16)) : F("", !0),
1621
- l(m).withAxes !== !1 ? B(O.$slots, "axes", {
1621
+ }), null, 16)) : P("", !0),
1622
+ l(m).withAxes !== !1 ? R(O.$slots, "axes", {
1622
1623
  key: 1,
1623
1624
  xScale: l(Y),
1624
1625
  yScale: l(G),
@@ -1643,7 +1644,7 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1643
1644
  type: "y",
1644
1645
  scale: l(G),
1645
1646
  "container-size": l(N),
1646
- options: l(Le),
1647
+ options: l(Te),
1647
1648
  "hovered-index": d.value,
1648
1649
  orientation: l(i),
1649
1650
  "data-j-lume-chart__y-axis": "",
@@ -1652,8 +1653,8 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1652
1653
  onMouseleave: b[5] || (b[5] = (w) => t("axis-mouseleave")),
1653
1654
  "onLume__internal-AxisSize": b[6] || (b[6] = (w) => A.value = w)
1654
1655
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1655
- ], !0) : F("", !0),
1656
- l(m).withHover !== !1 ? (h(), Z(l(Ro), {
1656
+ ], !0) : P("", !0),
1657
+ l(m).withHover !== !1 ? (h(), W(l(Bo), {
1657
1658
  key: 2,
1658
1659
  data: l(_),
1659
1660
  orientation: l(i),
@@ -1661,18 +1662,18 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1661
1662
  "y-scale": l(G),
1662
1663
  "data-j-lume-chart__overlay-group": "",
1663
1664
  "onLume__internal-Hover": Ne
1664
- }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : F("", !0),
1665
- l(Se) ? (h(), L("g", Qo, [
1666
- (h(!0), L(K, null, P($.value, (w, Kt) => (h(), L("circle", S(w, {
1665
+ }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : P("", !0),
1666
+ l(Se) ? (h(), T("g", Jo, [
1667
+ (h(!0), T(K, null, z($.value, (w, Yt) => (h(), T("circle", C(w, {
1667
1668
  ref_for: !0,
1668
1669
  ref_key: "tooltipAnchor",
1669
1670
  ref: v,
1670
- key: `anchor_${Kt}`,
1671
- r: l(In),
1671
+ key: `anchor_${Yt}`,
1672
+ r: l(wn),
1672
1673
  class: "lume-fill--transparent"
1673
- }), null, 16, qo))), 128))
1674
- ])) : F("", !0),
1675
- B(O.$slots, "groups", {
1674
+ }), null, 16, Qo))), 128))
1675
+ ])) : P("", !0),
1676
+ R(O.$slots, "groups", {
1676
1677
  data: l(_),
1677
1678
  labels: l(E),
1678
1679
  options: l(m),
@@ -1694,41 +1695,41 @@ const Wo = { class: "lume-chart__header" }, Uo = { class: "lume-chart__header-se
1694
1695
  onPointClick: b[15] || (b[15] = (w) => t("point-click", w)),
1695
1696
  "onLume__internal-Hover": Ne
1696
1697
  }, void 0, !0)
1697
- ], 64)) : F("", !0)
1698
+ ], 64)) : P("", !0)
1698
1699
  ]),
1699
1700
  _: 3
1700
1701
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "onResize"]));
1701
1702
  }
1702
1703
  });
1703
- const Te = /* @__PURE__ */ J(ta, [["__scopeId", "data-v-c4b73860"]]), na = ["dy"], oa = /* @__PURE__ */ z({
1704
+ const Ae = /* @__PURE__ */ J(ea, [["__scopeId", "data-v-c4b73860"]]), ta = ["dy"], na = /* @__PURE__ */ Z({
1704
1705
  __name: "lume-alluvial-node-label",
1705
1706
  props: {
1706
1707
  bottom: { type: Boolean, default: !1 }
1707
1708
  },
1708
1709
  setup(e) {
1709
- return (t, n) => (h(), L("text", {
1710
+ return (t, n) => (h(), T("text", {
1710
1711
  class: "lume-alluvial-group__node-label",
1711
1712
  dy: e.bottom ? "1.2em" : ""
1712
1713
  }, [
1713
- B(t.$slots, "default", {}, void 0, !0)
1714
- ], 8, na));
1714
+ R(t.$slots, "default", {}, void 0, !0)
1715
+ ], 8, ta));
1715
1716
  }
1716
1717
  });
1717
- const aa = /* @__PURE__ */ J(oa, [["__scopeId", "data-v-d2a7cb8e"]]), ra = ["dy"], la = /* @__PURE__ */ z({
1718
+ const oa = /* @__PURE__ */ J(na, [["__scopeId", "data-v-d2a7cb8e"]]), aa = ["dy"], ra = /* @__PURE__ */ Z({
1718
1719
  __name: "lume-alluvial-node-value",
1719
1720
  props: {
1720
1721
  bottom: { type: Boolean, default: !0 }
1721
1722
  },
1722
1723
  setup(e) {
1723
- return (t, n) => (h(), L("text", {
1724
+ return (t, n) => (h(), T("text", {
1724
1725
  class: "lume-alluvial-group__node-value",
1725
1726
  dy: e.bottom ? "1.2em" : ""
1726
1727
  }, [
1727
- B(t.$slots, "default", {}, void 0, !0)
1728
- ], 8, ra));
1728
+ R(t.$slots, "default", {}, void 0, !0)
1729
+ ], 8, aa));
1729
1730
  }
1730
1731
  });
1731
- const ua = /* @__PURE__ */ J(la, [["__scopeId", "data-v-002e2887"]]);
1732
+ const la = /* @__PURE__ */ J(ra, [["__scopeId", "data-v-002e2887"]]);
1732
1733
  function yt(e, t) {
1733
1734
  return {
1734
1735
  x0: 0 + (t ? t.left : 0),
@@ -1737,35 +1738,32 @@ function yt(e, t) {
1737
1738
  y1: e.height - (t ? t.bottom : 0)
1738
1739
  };
1739
1740
  }
1740
- function ia(e) {
1741
- const t = M(yt(e));
1741
+ function ua(e) {
1742
+ const t = S(yt(e));
1742
1743
  function n(o) {
1743
1744
  t.value = yt(e, o);
1744
1745
  }
1745
1746
  return { extents: t, updateExtents: n };
1746
1747
  }
1747
- var Vt = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e))(Vt || {});
1748
- const sa = "[lume] ";
1749
- function ca(e, t, n = !0) {
1750
- n && $t() || console.error(sa + "Error: " + e, t);
1748
+ var Gt = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e))(Gt || {});
1749
+ const ia = "[lume] ";
1750
+ function sa(e, t, n = !0) {
1751
+ n && $t() || console.error(ia + "Error: " + e, t);
1751
1752
  }
1752
- const kt = 8, da = 8, va = 20, pa = 200;
1753
- function be(e) {
1753
+ const kt = 8, ca = 8, da = 20, va = 200;
1754
+ function ke(e) {
1754
1755
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1755
1756
  }
1756
- function ge(e) {
1757
- return e.source.id + ":" + e.target.id;
1758
- }
1759
- function fa(e, t) {
1757
+ function pa(e, t) {
1760
1758
  return t.nodes.find((n) => n.id === e);
1761
1759
  }
1762
- function ha(e, t) {
1763
- return t.links.find((n) => ge(n) === e);
1760
+ function fa(e, t) {
1761
+ return t.links.find((n) => n.id === e);
1764
1762
  }
1765
- function Ft(e) {
1763
+ function Vt(e) {
1766
1764
  return !!(e.sourceLinks && e.targetLinks);
1767
1765
  }
1768
- function ma(e, t) {
1766
+ function ha(e, t) {
1769
1767
  if (!t)
1770
1768
  return;
1771
1769
  const n = e.nodes.filter((u) => u.targetLinks.length === 0).map((u) => `${u.id}`), o = e.nodes.filter((u) => u.sourceLinks.length === 0).map((u) => `${u.id}`), r = t.filter((u) => n.includes(u.dataset.id)).reduce(
@@ -1782,7 +1780,7 @@ function ma(e, t) {
1782
1780
  bottom: 0
1783
1781
  };
1784
1782
  }
1785
- function ga(e) {
1783
+ function ma(e) {
1786
1784
  return e.map((t) => ({
1787
1785
  x: t.x0,
1788
1786
  y: t.y0,
@@ -1795,22 +1793,22 @@ function ga(e) {
1795
1793
  node: t
1796
1794
  }));
1797
1795
  }
1798
- function _a(e) {
1796
+ function ga(e) {
1799
1797
  return [e.source.x1, e.y0];
1800
1798
  }
1801
- function ya(e) {
1799
+ function _a(e) {
1802
1800
  return [e.target.x0, e.y1];
1803
1801
  }
1804
- function ka(e) {
1805
- return e.curveFunction ? an(e.curveFunction).source(_a).target(ya) : sn();
1802
+ function ya(e) {
1803
+ return e.curveFunction ? on(e.curveFunction).source(ga).target(_a) : un();
1806
1804
  }
1807
- function ba(e) {
1805
+ function ka(e) {
1808
1806
  return e.map((t) => {
1809
1807
  var n;
1810
1808
  return {
1811
- id: ge(t),
1809
+ id: t.id,
1812
1810
  color: t.color || ((n = t.source) == null ? void 0 : n.color) || we,
1813
- d: ka(t)(t),
1811
+ d: ya(t)(t),
1814
1812
  strokeWidth: Math.max(1, t.width),
1815
1813
  link: t
1816
1814
  };
@@ -1824,8 +1822,8 @@ function bt(e, t, n, o, r) {
1824
1822
  };
1825
1823
  return;
1826
1824
  }
1827
- const a = Date.now(), u = bn(t, n), s = () => {
1828
- let c = (Date.now() - a) / pa;
1825
+ const a = Date.now(), u = kn(t, n), s = () => {
1826
+ let c = (Date.now() - a) / va;
1829
1827
  c > 1 && (c = 1), e.node = {
1830
1828
  ...e.node,
1831
1829
  transitionValue: r && c === 1 ? void 0 : u(c)
@@ -1833,12 +1831,12 @@ function bt(e, t, n, o, r) {
1833
1831
  };
1834
1832
  requestAnimationFrame(s);
1835
1833
  }
1836
- const Aa = {
1834
+ const ba = {
1837
1835
  nodes: [],
1838
1836
  links: []
1839
1837
  };
1840
- function Ta(e, t, n) {
1841
- const o = M(null), r = p(() => {
1838
+ function Aa(e, t, n) {
1839
+ const o = S(null), r = p(() => {
1842
1840
  var s;
1843
1841
  return (s = e.value) == null ? void 0 : s[0].values.map(
1844
1842
  ({ label: i, color: c, value: d, deriveColorFromIncomingLinks: v }) => ({
@@ -1849,23 +1847,26 @@ function Ta(e, t, n) {
1849
1847
  deriveColorFromIncomingLinks: v
1850
1848
  })
1851
1849
  );
1852
- }), a = p(() => {
1853
- var s;
1854
- return (s = e.value) == null ? void 0 : s[0].values.map(
1855
- (i) => {
1856
- var c;
1857
- return (c = i.targets) == null ? void 0 : c.map(
1858
- ({ node: d, value: v, color: y, curveFunction: $ }) => ({
1859
- color: y,
1860
- curveFunction: $,
1861
- source: i.value ?? i.label,
1862
- target: d,
1863
- value: v
1864
- })
1865
- );
1866
- }
1867
- ).filter(Boolean).flat();
1868
- }), u = p(() => cn().nodeId(be).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort));
1850
+ }), a = p(
1851
+ () => {
1852
+ var s;
1853
+ return (s = e.value) == null ? void 0 : s[0].values.map(
1854
+ (i) => {
1855
+ var c;
1856
+ return (c = i.targets) == null ? void 0 : c.map(
1857
+ ({ node: d, value: v, color: y, curveFunction: $ }) => ({
1858
+ id: `${i.value}:${d}`,
1859
+ color: y,
1860
+ curveFunction: $,
1861
+ source: i.value ?? i.label,
1862
+ target: d,
1863
+ value: v
1864
+ })
1865
+ );
1866
+ }
1867
+ ).filter(Boolean).flat();
1868
+ }
1869
+ ), u = p(() => sn().nodeId(ke).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort).iterations(t.value.iterations));
1869
1870
  return U([u, n], () => {
1870
1871
  try {
1871
1872
  const { x0: s, y0: i, x1: c, y1: d } = n.value;
@@ -1874,26 +1875,32 @@ function Ta(e, t, n) {
1874
1875
  [c, d]
1875
1876
  ])({ nodes: r.value, links: a.value });
1876
1877
  } catch (s) {
1877
- ca(Vt.GraphProblem, s), o.value = Aa;
1878
+ sa(Gt.GraphProblem, s), o.value = ba;
1878
1879
  }
1879
1880
  }), { graph: o };
1880
1881
  }
1881
1882
  function Xe(e, t) {
1882
1883
  return t || (t = {}), e.targetLinks && e.targetLinks.forEach(({ source: n, value: o }) => {
1883
- t[n.id] = o, Xe(n, t);
1884
+ t[n.id] = o, Xe(
1885
+ n,
1886
+ t
1887
+ );
1884
1888
  }), t;
1885
1889
  }
1886
1890
  function Ye(e, t) {
1887
1891
  return t || (t = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: n, value: o }) => {
1888
- t[n.id] = o, Ye(n, t);
1892
+ t[n.id] = o, Ye(
1893
+ n,
1894
+ t
1895
+ );
1889
1896
  }), t;
1890
1897
  }
1891
- function La(e, t) {
1892
- return t.links.reduce((n, o) => (o.source.id in e && o.target.id in e && n.push(ge(o)), n), []);
1898
+ function Ta(e, t) {
1899
+ return t.links.reduce((n, o) => (o.source.id in e && o.target.id in e && n.push(o.id), n), []);
1893
1900
  }
1894
- const Oa = (e, t) => {
1901
+ const La = (e, t) => {
1895
1902
  let n;
1896
- Ft(e) ? n = {
1903
+ Vt(e) ? n = {
1897
1904
  [e.id]: e.value,
1898
1905
  ...Xe(e),
1899
1906
  ...Ye(e)
@@ -1903,32 +1910,32 @@ const Oa = (e, t) => {
1903
1910
  ...Xe(e.source),
1904
1911
  ...Ye(e.target)
1905
1912
  };
1906
- const o = La(n, t);
1913
+ const o = Ta(n, t);
1907
1914
  return { nodes: n, links: o };
1908
- }, $a = (e) => {
1909
- if (Ft(e)) {
1915
+ }, Oa = (e) => {
1916
+ if (Vt(e)) {
1910
1917
  const t = [...e.sourceLinks, ...e.targetLinks];
1911
1918
  return {
1912
1919
  nodes: t.reduce(
1913
- (n, { source: o, target: r, value: a }) => o === e ? { ...n, [be(r)]: a } : { ...n, [be(o)]: a },
1914
- { [be(e)]: e.value }
1920
+ (n, { source: o, target: r, value: a }) => o === e ? { ...n, [ke(r)]: a } : { ...n, [ke(o)]: a },
1921
+ { [ke(e)]: e.value }
1915
1922
  ),
1916
- links: t.map((n) => ge(n))
1923
+ links: t.map(({ id: n }) => n)
1917
1924
  };
1918
1925
  }
1919
1926
  return {
1920
1927
  nodes: {
1921
- [be(e.target)]: e.value,
1922
- [be(e.source)]: e.source.value
1928
+ [ke(e.target)]: e.value,
1929
+ [ke(e.source)]: e.source.value
1923
1930
  },
1924
- links: [ge(e)]
1931
+ links: [e.id]
1925
1932
  };
1926
1933
  };
1927
- function xa(e, t, n) {
1928
- const o = M(null), r = p(() => o.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
1934
+ function $a(e, t, n) {
1935
+ const o = S(null), r = p(() => o.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
1929
1936
  o.value,
1930
1937
  n.value
1931
- ) : t.value.highlightedElements === "closest" ? $a(o.value, n.value) : Oa(o.value, n.value) : { nodes: {}, links: [] });
1938
+ ) : t.value.highlightedElements === "closest" ? Oa(o.value, n.value) : La(o.value, n.value) : { nodes: {}, links: [] });
1932
1939
  return U(r, (a, u) => {
1933
1940
  if (a.links.length === 0 && Object.keys(a.nodes).length === 0) {
1934
1941
  e.value.forEach((s) => {
@@ -1952,10 +1959,10 @@ function xa(e, t, n) {
1952
1959
  });
1953
1960
  }), { highlightedElements: r, hoveredElement: o };
1954
1961
  }
1955
- const wa = {
1962
+ const xa = {
1956
1963
  class: "lume-alluvial-group",
1957
1964
  "data-j-alluvial-group": ""
1958
- }, Ia = { key: 0 }, Ea = ["x", "y"], Na = { key: 0 }, Da = ["id", "x1", "x2"], Ha = ["stop-color"], Ba = ["stop-color"], Ra = ["d", "stroke-width", "onClick", "onMouseover"], Ma = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Sa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Ca = ["x", "y", "height", "width"], ja = ["transform", "data-id"], Ga = /* @__PURE__ */ z({
1965
+ }, wa = { key: 0 }, Ia = ["x", "y"], Ea = { key: 0 }, Na = ["id", "x1", "x2"], Da = ["stop-color"], Ha = ["stop-color"], Ba = ["d", "stroke-width", "onClick", "onMouseover"], Ra = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Ma = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Sa = ["x", "y", "height", "width"], Ca = ["transform", "data-id"], ja = /* @__PURE__ */ Z({
1959
1966
  __name: "lume-alluvial-group",
1960
1967
  props: {
1961
1968
  ...Me(),
@@ -1966,63 +1973,66 @@ const wa = {
1966
1973
  },
1967
1974
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1968
1975
  setup(e, { emit: t }) {
1969
- const n = e, o = He("chartID"), { data: r, options: a } = Q(n), u = M([]), s = M([]), i = M(null), { extents: c, updateExtents: d } = ia(n.containerSize), { graph: v } = Ta(r, a, c), { hoveredElement: y, highlightedElements: $ } = xa(
1976
+ const n = e, o = He("chartID"), { data: r, options: a } = Q(n), u = S([]), s = S([]), i = S(null), { extents: c, updateExtents: d } = ua(n.containerSize), { graph: v } = Aa(r, a, c), { hoveredElement: y, highlightedElements: $ } = $a(
1970
1977
  u,
1971
1978
  a,
1972
1979
  v
1973
1980
  ), k = p(() => De(a.value.valueFormat)), A = p(
1974
1981
  () => Object.keys($.value.nodes)
1975
1982
  ), m = p(
1976
- () => u.value.reduce((g, T) => {
1977
- const f = T.x + a.value.nodeWidth / 2;
1983
+ () => u.value.reduce((g, L) => {
1984
+ const f = L.x + a.value.nodeWidth / 2;
1978
1985
  return g.includes(f) ? g : [...g, f];
1979
- }, []).sort((g, T) => g - T)
1986
+ }, []).sort((g, L) => g - L)
1980
1987
  // Make sure positions are sorted in ascending order
1981
1988
  ), _ = p(() => {
1982
1989
  if (!(!a.value.nodeHeaders || !a.value.nodeHeaders.length))
1983
- return a.value.nodeHeaders.slice(0, m.value.length).map((g, T) => ({
1990
+ return a.value.nodeHeaders.slice(0, m.value.length).map((g, L) => ({
1984
1991
  label: g,
1985
- x: m.value[T]
1992
+ x: m.value[L]
1986
1993
  }));
1987
1994
  }), E = p(
1988
- () => a.value.nodeHeaderPadding ?? va
1995
+ () => a.value.nodeHeaderPadding ?? da
1989
1996
  ), N = p(() => {
1990
1997
  if (!(!a.value.gradient || !v.value))
1991
- return v.value.links.reduce((g, T) => (g[ge(T)] = {
1992
- source: T.source.color || T.source.fallbackColor,
1993
- target: T.target.color || T.target.fallbackColor,
1994
- x1: T.source.x1,
1995
- x2: T.target.x0
1996
- }, g), {});
1998
+ return v.value.links.reduce((g, L) => {
1999
+ const { source: f, target: B } = L, F = f.color || f.fallbackColor, re = B.deriveColorFromIncomingLinks ? F : B.color || B.fallbackColor;
2000
+ return g[L.id] = {
2001
+ source: F,
2002
+ target: re,
2003
+ x1: f.x1,
2004
+ x2: B.x0
2005
+ }, g;
2006
+ }, {});
1997
2007
  }), I = p(() => {
1998
2008
  const g = u.value.filter(
1999
2009
  (f) => G(f)
2000
- ), T = [];
2010
+ ), L = [];
2001
2011
  return g.forEach((f) => {
2002
- const C = [];
2003
- s.value.filter(({ link: W }) => W.target.id === f.node.id).reverse().reduce((W, pe) => {
2004
- const Se = pe.link.target.y1 - pe.link.target.y0, Ee = pe.link.value / f.node.value * Se;
2005
- return C.push({
2012
+ const B = [];
2013
+ s.value.filter(({ link: F }) => F.target.id === f.node.id).reverse().reduce((F, re) => {
2014
+ const Se = re.link.target.y1 - re.link.target.y0, Ee = re.link.value / f.node.value * Se;
2015
+ return B.push({
2006
2016
  x: f.x,
2007
- y: f.y + W,
2017
+ y: f.y + F,
2008
2018
  height: Ee,
2009
2019
  width: f.width,
2010
- key: `node-block-${f.node.id}-source-link-${pe.link.source.id}`,
2011
- class: `lume-alluvial-group__node-block lume-fill--${pe.link.source.color || we}`
2012
- }), W + Ee;
2013
- }, 0), T.push({
2020
+ key: `node-block-${f.node.id}-source-link-${re.link.source.id}`,
2021
+ class: `lume-alluvial-group__node-block lume-fill--${re.link.source.color || we}`
2022
+ }), F + Ee;
2023
+ }, 0), L.push({
2014
2024
  id: f.node.id,
2015
- subNodes: C
2025
+ subNodes: B
2016
2026
  });
2017
- }), T;
2027
+ }), L;
2018
2028
  });
2019
2029
  function x(g) {
2020
- return a.value.gradient && `url('#${o}_${ge(g)}')`;
2030
+ return a.value.gradient && `url('#${o}_${g.id}')`;
2021
2031
  }
2022
2032
  function H(g) {
2023
2033
  return A.value.length > 0 && !A.value.includes(g.toString());
2024
2034
  }
2025
- function R(g) {
2035
+ function M(g) {
2026
2036
  return A.value.length > 0 && A.value.includes(g.toString());
2027
2037
  }
2028
2038
  function X(g) {
@@ -2034,53 +2044,53 @@ const wa = {
2034
2044
  function G(g) {
2035
2045
  return !g.node.color && g.node.deriveColorFromIncomingLinks;
2036
2046
  }
2037
- function te(g, T) {
2038
- g !== y.value && (y.value = g, t("link-mouseenter", { link: g, event: T }));
2047
+ function te(g, L) {
2048
+ g !== y.value && (y.value = g, t("link-mouseenter", { link: g, event: L }));
2039
2049
  }
2040
- function Le(g) {
2041
- const T = y.value;
2042
- y.value = null, t("link-mouseleave", { link: T, event: g });
2050
+ function Te(g) {
2051
+ const L = y.value;
2052
+ y.value = null, t("link-mouseleave", { link: L, event: g });
2043
2053
  }
2044
- function se(g) {
2054
+ function ce(g) {
2045
2055
  if (g == null) {
2046
2056
  y.value = null;
2047
2057
  return;
2048
2058
  }
2049
- const T = fa(g, v.value) || ha(g, v.value);
2050
- if (!T) {
2051
- he(de.InvalidHoveredElement);
2059
+ const L = pa(g, v.value) || fa(g, v.value);
2060
+ if (!L) {
2061
+ he(ve.InvalidHoveredElement);
2052
2062
  return;
2053
2063
  }
2054
- y.value = T;
2064
+ y.value = L;
2055
2065
  }
2056
- function ke(g) {
2057
- var T;
2058
- return ((T = I.value.find(({ id: f }) => g === f)) == null ? void 0 : T.subNodes) ?? [];
2066
+ function ye(g) {
2067
+ var L;
2068
+ return ((L = I.value.find(({ id: f }) => g === f)) == null ? void 0 : L.subNodes) ?? [];
2059
2069
  }
2060
2070
  return U(v, (g) => {
2061
- u.value = ga(g.nodes), s.value = ba(g.links).reverse(), y.value == null && n.hoveredElementId != null && se(n.hoveredElementId);
2071
+ u.value = ma(g.nodes), s.value = ka(g.links).reverse(), y.value == null && n.hoveredElementId != null && ce(n.hoveredElementId);
2062
2072
  }), U([n.containerSize, i], () => {
2063
2073
  if (n.containerSize.width && n.containerSize.height) {
2064
- const g = ma(v.value, i.value);
2074
+ const g = ha(v.value, i.value);
2065
2075
  d(g);
2066
2076
  }
2067
- }), U(() => n.hoveredElementId, se), (g, T) => (h(), L("g", wa, [
2068
- l(_) ? (h(), L("g", Ia, [
2069
- (h(!0), L(K, null, P(l(_), (f) => (h(), L("text", {
2077
+ }), U(() => n.hoveredElementId, ce), (g, L) => (h(), T("g", xa, [
2078
+ l(_) ? (h(), T("g", wa, [
2079
+ (h(!0), T(K, null, z(l(_), (f) => (h(), T("text", {
2070
2080
  key: `header_${f.x}`,
2071
2081
  x: f.x,
2072
2082
  y: -l(E),
2073
2083
  class: "lume-alluvial-group__node-header lume-typography--caption"
2074
- }, q(f.label), 9, Ea))), 128))
2075
- ])) : F("", !0),
2084
+ }, q(f.label), 9, Ia))), 128))
2085
+ ])) : P("", !0),
2076
2086
  j("g", {
2077
2087
  class: "lume-alluvial-link-group",
2078
- onMouseleave: Le
2088
+ onMouseleave: Te
2079
2089
  }, [
2080
- l(a).gradient ? (h(), L("defs", Na, [
2081
- (h(!0), L(K, null, P(l(N), (f, C) => (h(), L("linearGradient", {
2082
- id: `${l(o)}_${C}`,
2083
- key: C,
2090
+ l(a).gradient ? (h(), T("defs", Ea, [
2091
+ (h(!0), T(K, null, z(l(N), (f, B) => (h(), T("linearGradient", {
2092
+ id: `${l(o)}_${B}`,
2093
+ key: B,
2084
2094
  gradientUnits: "userSpaceOnUse",
2085
2095
  x1: f.x1,
2086
2096
  x2: f.x2
@@ -2088,26 +2098,26 @@ const wa = {
2088
2098
  j("stop", {
2089
2099
  offset: "0%",
2090
2100
  "stop-color": `var(--lume-color--${f.source})`
2091
- }, null, 8, Ha),
2101
+ }, null, 8, Da),
2092
2102
  j("stop", {
2093
2103
  offset: "100%",
2094
2104
  "stop-color": `var(--lume-color--${f.target})`
2095
- }, null, 8, Ba)
2096
- ], 8, Da))), 128))
2097
- ])) : F("", !0),
2098
- (h(!0), L(K, null, P(s.value, (f) => (h(), L("path", {
2105
+ }, null, 8, Ha)
2106
+ ], 8, Na))), 128))
2107
+ ])) : P("", !0),
2108
+ (h(!0), T(K, null, z(s.value, (f) => (h(), T("path", {
2099
2109
  key: `link-ghost_${f.id}`,
2100
2110
  class: ee(["lume-alluvial-group__link", [
2101
2111
  "lume-stroke--transparent",
2102
2112
  "lume-alluvial-group__link--ghost"
2103
2113
  ]]),
2104
2114
  d: f.d,
2105
- "stroke-width": f.strokeWidth + l(da),
2115
+ "stroke-width": f.strokeWidth + l(ca),
2106
2116
  "data-j-alluvial-ghost": "",
2107
- onClick: (C) => t("link-click", { link: f.link, event: C }),
2108
- onMouseover: (C) => te(f.link, C)
2109
- }, null, 40, Ra))), 128)),
2110
- (h(!0), L(K, null, P(s.value, (f) => (h(), L("path", {
2117
+ onClick: (B) => t("link-click", { link: f.link, event: B }),
2118
+ onMouseover: (B) => te(f.link, B)
2119
+ }, null, 40, Ba))), 128)),
2120
+ (h(!0), T(K, null, z(s.value, (f) => (h(), T("path", {
2111
2121
  key: `link_${f.id}`,
2112
2122
  class: ee(["lume-alluvial-group__link", {
2113
2123
  [`lume-stroke--${f.color}`]: !l(a).gradient && f.color,
@@ -2121,38 +2131,38 @@ const wa = {
2121
2131
  "stroke-width": f.strokeWidth,
2122
2132
  "data-j-alluvial-path": "",
2123
2133
  "data-id": f.id,
2124
- onClick: (C) => t("link-click", { link: f.link, event: C }),
2125
- onMouseover: (C) => te(f.link, C)
2126
- }, null, 42, Ma))), 128))
2134
+ onClick: (B) => t("link-click", { link: f.link, event: B }),
2135
+ onMouseover: (B) => te(f.link, B)
2136
+ }, null, 42, Ra))), 128))
2127
2137
  ], 32),
2128
- (h(!0), L(K, null, P(u.value, (f, C) => (h(), L("g", {
2129
- key: `node-block_${C}`,
2138
+ (h(!0), T(K, null, z(u.value, (f, B) => (h(), T("g", {
2139
+ key: `node-block_${B}`,
2130
2140
  class: ee(["lume-alluvial-group__node", {
2131
2141
  "lume-alluvial-group__node--faded": H(f.node.id),
2132
- "lume-alluvial-group__node--focused": R(f.node.id)
2142
+ "lume-alluvial-group__node--focused": M(f.node.id)
2133
2143
  }]),
2134
2144
  "data-j-alluvial-group__node-block": ""
2135
2145
  }, [
2136
2146
  j("g", {
2137
- onClick: (W) => t("node-click", { node: f.node, event: W }),
2138
- onMouseenter: (W) => t("node-mouseenter", { node: f.node, event: W }),
2139
- onMouseleave: (W) => t("node-mouseleave", { node: f.node, event: W }),
2140
- onMouseover: (W) => y.value = f.node,
2141
- onMouseout: T[0] || (T[0] = (W) => y.value = null)
2147
+ onClick: (F) => t("node-click", { node: f.node, event: F }),
2148
+ onMouseenter: (F) => t("node-mouseenter", { node: f.node, event: F }),
2149
+ onMouseleave: (F) => t("node-mouseleave", { node: f.node, event: F }),
2150
+ onMouseover: (F) => y.value = f.node,
2151
+ onMouseout: L[0] || (L[0] = (F) => y.value = null)
2142
2152
  }, [
2143
- G(f) ? (h(!0), L(K, { key: 0 }, P(ke(
2153
+ G(f) ? (h(!0), T(K, { key: 0 }, z(ye(
2144
2154
  f.node.id
2145
- ), (W) => (h(), L("rect", S(W, {
2146
- key: W.key,
2155
+ ), (F) => (h(), T("rect", C(F, {
2156
+ key: F.key,
2147
2157
  "data-j-alluvial-sub-nodes": ""
2148
- }), null, 16))), 128)) : (h(), L("rect", {
2158
+ }), null, 16))), 128)) : (h(), T("rect", {
2149
2159
  key: 1,
2150
2160
  class: ee(["lume-alluvial-group__node-block", `lume-fill--${f.node.color || f.node.fallbackColor}`]),
2151
2161
  x: f.x,
2152
2162
  y: f.y,
2153
2163
  height: f.height,
2154
2164
  width: f.width
2155
- }, null, 10, Ca)),
2165
+ }, null, 10, Sa)),
2156
2166
  j("g", {
2157
2167
  ref_for: !0,
2158
2168
  ref_key: "nodeTextRefs",
@@ -2163,26 +2173,26 @@ const wa = {
2163
2173
  transform: `translate(${f.textTransform.x},${f.textTransform.y})`,
2164
2174
  "data-id": f.node.id
2165
2175
  }, [
2166
- B(g.$slots, `node-text-${f.node.id}`, {
2176
+ R(g.$slots, `node-text-${f.node.id}`, {
2167
2177
  node: f.node,
2168
2178
  value: l(k)(
2169
2179
  f.node.transitionValue || f.node.value,
2170
2180
  f.node.value
2171
2181
  )
2172
2182
  }, () => [
2173
- oe(l(aa), {
2183
+ oe(l(oa), {
2174
2184
  bottom: l(a).switchText
2175
2185
  }, {
2176
2186
  default: V(() => [
2177
- ce(q(f.node.label), 1)
2187
+ de(q(f.node.label), 1)
2178
2188
  ]),
2179
2189
  _: 2
2180
2190
  }, 1032, ["bottom"]),
2181
- oe(l(ua), {
2191
+ oe(l(la), {
2182
2192
  bottom: !l(a).switchText
2183
2193
  }, {
2184
2194
  default: V(() => [
2185
- ce(q(l(k)(
2195
+ de(q(l(k)(
2186
2196
  f.node.transitionValue || f.node.value,
2187
2197
  f.node.value
2188
2198
  )), 1)
@@ -2190,13 +2200,13 @@ const wa = {
2190
2200
  _: 2
2191
2201
  }, 1032, ["bottom"])
2192
2202
  ], !0)
2193
- ], 10, ja)
2194
- ], 40, Sa)
2203
+ ], 10, Ca)
2204
+ ], 40, Ma)
2195
2205
  ], 2))), 128))
2196
2206
  ]));
2197
2207
  }
2198
2208
  });
2199
- const Va = /* @__PURE__ */ J(Ga, [["__scopeId", "data-v-bda77c32"]]), Fa = {
2209
+ const Ga = /* @__PURE__ */ J(ja, [["__scopeId", "data-v-1b46bc35"]]), Va = {
2200
2210
  margins: {
2201
2211
  top: 0,
2202
2212
  right: 0,
@@ -2212,15 +2222,16 @@ const Va = /* @__PURE__ */ J(Ga, [["__scopeId", "data-v-bda77c32"]]), Fa = {
2212
2222
  highlightedElements: "closest",
2213
2223
  nodePadding: 16,
2214
2224
  nodeWidth: 16,
2215
- nodeAlign: dn,
2216
- valueFormat: (e) => String(e)
2217
- }, Ir = /* @__PURE__ */ z({
2225
+ nodeAlign: cn,
2226
+ valueFormat: (e) => String(e),
2227
+ iterations: 6
2228
+ }, wr = /* @__PURE__ */ Z({
2218
2229
  __name: "lume-alluvial-diagram",
2219
2230
  props: {
2220
- ...Ho(Ke)
2231
+ ...Do(Ke)
2221
2232
  },
2222
2233
  setup(e) {
2223
- const t = e, n = ye(ne()), o = Tn(ne()), { options: r } = Q(t), { allOptions: a } = ie(r, Fa);
2234
+ const t = e, n = _e(ne()), o = An(ne()), { options: r } = Q(t), { allOptions: a } = se(r, Va);
2224
2235
  function u(s) {
2225
2236
  return {
2226
2237
  ...s,
@@ -2228,40 +2239,40 @@ const Va = /* @__PURE__ */ J(Ga, [["__scopeId", "data-v-bda77c32"]]), Fa = {
2228
2239
  // Alluvial chart never uses base scales
2229
2240
  };
2230
2241
  }
2231
- return (s, i) => (h(), Z(l(Te), S(t, {
2242
+ return (s, i) => (h(), W(l(Ae), C(t, {
2232
2243
  options: u(l(a)),
2233
2244
  "data-j-alluvial-diagram": ""
2234
- }), re({
2245
+ }), le({
2235
2246
  groups: V((c) => [
2236
- oe(l(Va), S(c, { "hovered-element-id": s.hoveredElement }), re({ _: 2 }, [
2237
- P(l(o), (d, v) => ({
2247
+ oe(l(Ga), C(c, { "hovered-element-id": s.hoveredElement }), le({ _: 2 }, [
2248
+ z(l(o), (d, v) => ({
2238
2249
  name: v,
2239
2250
  fn: V((y) => [
2240
- B(s.$slots, v, le(ue(y || {})))
2251
+ R(s.$slots, v, ue(ie(y || {})))
2241
2252
  ])
2242
2253
  }))
2243
2254
  ]), 1040, ["hovered-element-id"])
2244
2255
  ]),
2245
2256
  _: 2
2246
2257
  }, [
2247
- P(l(n), (c, d) => ({
2258
+ z(l(n), (c, d) => ({
2248
2259
  name: d,
2249
2260
  fn: V((v) => [
2250
- B(s.$slots, d, le(ue(v || {})))
2261
+ R(s.$slots, d, ue(ie(v || {})))
2251
2262
  ])
2252
2263
  }))
2253
2264
  ]), 1040, ["options"]));
2254
2265
  }
2255
2266
  });
2256
- var Pt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Pt || {});
2257
- const Er = /* @__PURE__ */ z({
2267
+ var Ft = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Ft || {});
2268
+ const Ir = /* @__PURE__ */ Z({
2258
2269
  __name: "lume-bar-chart",
2259
2270
  props: {
2260
- ...Ae(),
2271
+ ...be(),
2261
2272
  type: {
2262
2273
  type: String,
2263
2274
  default: null,
2264
- validator: (e) => e in Pt || e == null
2275
+ validator: (e) => e in Ft || e == null
2265
2276
  }
2266
2277
  },
2267
2278
  setup(e) {
@@ -2275,7 +2286,7 @@ const Er = /* @__PURE__ */ z({
2275
2286
  ["single", n],
2276
2287
  ["grouped", o],
2277
2288
  ["stacked", r]
2278
- ]), u = ye(ne());
2289
+ ]), u = _e(ne());
2279
2290
  function s(c) {
2280
2291
  return {
2281
2292
  ...c,
@@ -2296,39 +2307,39 @@ const Er = /* @__PURE__ */ z({
2296
2307
  return a.get(t.type);
2297
2308
  }
2298
2309
  });
2299
- return (c, d) => (h(), Z(tn(l(i)), S({ ...t, ...c.$attrs }, {
2310
+ return (c, d) => (h(), W(en(l(i)), C({ ...t, ...c.$attrs }, {
2300
2311
  options: s(c.options)
2301
- }), re({ _: 2 }, [
2302
- P(l(u), (v, y) => ({
2312
+ }), le({ _: 2 }, [
2313
+ z(l(u), (v, y) => ({
2303
2314
  name: y,
2304
2315
  fn: V(($) => [
2305
- B(c.$slots, y, le(ue($ || {})))
2316
+ R(c.$slots, y, ue(ie($ || {})))
2306
2317
  ])
2307
2318
  }))
2308
2319
  ]), 1040, ["options"]));
2309
2320
  }
2310
2321
  });
2311
- function Pa(e) {
2312
- return Object.values(wn).includes(e) || e == null;
2322
+ function Fa(e) {
2323
+ return Object.values(xn).includes(e) || e == null;
2313
2324
  }
2314
- function za(e) {
2325
+ function Pa(e) {
2315
2326
  return Object.values(D).includes(e);
2316
2327
  }
2317
- const Za = (e = !1) => ({
2328
+ const za = (e = !1) => ({
2318
2329
  type: {
2319
2330
  type: String,
2320
2331
  default: null,
2321
- validator: Pa
2332
+ validator: Fa
2322
2333
  },
2323
2334
  ...e ? {
2324
2335
  orientation: {
2325
2336
  type: String,
2326
2337
  default: D.VERTICAL,
2327
- validator: za
2338
+ validator: Pa
2328
2339
  }
2329
2340
  } : {}
2330
2341
  });
2331
- function zt(e) {
2342
+ function Pt(e) {
2332
2343
  const t = p(() => e.value.map((o) => ({
2333
2344
  ...o,
2334
2345
  values: o.values.map((r) => ({
@@ -2343,10 +2354,10 @@ function zt(e) {
2343
2354
  });
2344
2355
  return { multiBarData: t, groupedData: n };
2345
2356
  }
2346
- function Wa(e, t) {
2357
+ function Za(e, t) {
2347
2358
  return e.value.length === 1 ? "single" : t.value;
2348
2359
  }
2349
- function Ua(e, t, n) {
2360
+ function Wa(e, t, n) {
2350
2361
  const o = p(
2351
2362
  () => n.value === D.HORIZONTAL
2352
2363
  );
@@ -2356,7 +2367,7 @@ function Ua(e, t, n) {
2356
2367
  const a = p(() => o.value ? (() => (r(e.value), e.value))() : e.value), u = p(() => o.value ? t.value : (() => (r(t.value), t.value))());
2357
2368
  return { barXScale: a, barYScale: u };
2358
2369
  }
2359
- function Xa(e, t, n, o, r, a) {
2370
+ function Ua(e, t, n, o, r, a) {
2360
2371
  const u = p(
2361
2372
  () => o.value === D.HORIZONTAL
2362
2373
  );
@@ -2384,10 +2395,10 @@ function Xa(e, t, n, o, r, a) {
2384
2395
  }
2385
2396
  return { barAttributeGenerator: d };
2386
2397
  }
2387
- function Ya(e, t, n, o, r, a) {
2398
+ function Xa(e, t, n, o, r, a) {
2388
2399
  const u = p(
2389
2400
  () => o.value === D.HORIZONTAL
2390
- ), s = p(() => Oe().domain(e.value.map((k, A) => A)).range([0, t.value.bandwidth()]).padding(0)), i = p(() => Oe().domain(e.value.map((k, A) => A)).range([0, n.value.bandwidth()]).padding(0));
2401
+ ), s = p(() => Le().domain(e.value.map((k, A) => A)).range([0, t.value.bandwidth()]).padding(0)), i = p(() => Le().domain(e.value.map((k, A) => A)).range([0, n.value.bandwidth()]).padding(0));
2391
2402
  function c(k, A, m) {
2392
2403
  if (u.value)
2393
2404
  return k >= 0 ? t.value(0) : t.value(k);
@@ -2408,20 +2419,20 @@ function Ya(e, t, n, o, r, a) {
2408
2419
  return u.value ? i.value.bandwidth() : k < 0 ? n.value(k) - n.value(0) : n.value(0) - n.value(k);
2409
2420
  }
2410
2421
  function $(k, A, m) {
2411
- const { value: _, color: E } = k, N = E ?? e.value[A].color ?? Object.values(ae)[A], I = c(_, m, A), x = d(_, m, A), H = v(_), R = y(_);
2422
+ const { value: _, color: E } = k, N = E ?? e.value[A].color ?? Object.values(ae)[A], I = c(_, m, A), x = d(_, m, A), H = v(_), M = y(_);
2412
2423
  return {
2413
2424
  classList: [`lume-fill--${N}`, ...a],
2414
2425
  x: I,
2415
2426
  y: x,
2416
2427
  width: H,
2417
- height: R,
2428
+ height: M,
2418
2429
  isFaded: r.value !== -1 && r.value !== m,
2419
2430
  isNegative: _ < 0
2420
2431
  };
2421
2432
  }
2422
2433
  return { barAttributeGenerator: $ };
2423
2434
  }
2424
- function Ka(e, t, n) {
2435
+ function Ya(e, t, n) {
2425
2436
  const o = p(
2426
2437
  () => t.value === D.HORIZONTAL
2427
2438
  ), r = p(() => {
@@ -2439,9 +2450,9 @@ function Ka(e, t, n) {
2439
2450
  return Math.max(...i);
2440
2451
  });
2441
2452
  function u(i, c, d) {
2442
- return o.value ? $e().domain([r.value, a.value]).range([0, d.width]) : Object.assign(
2453
+ return o.value ? Oe().domain([r.value, a.value]).range([0, d.width]) : Object.assign(
2443
2454
  gt(
2444
- Oe().domain(c.map((v, y) => y)).range([0, d.width]),
2455
+ Le().domain(c.map((v, y) => y)).range([0, d.width]),
2445
2456
  t.value,
2446
2457
  n.value
2447
2458
  ),
@@ -2451,16 +2462,16 @@ function Ka(e, t, n) {
2451
2462
  function s(i, c, d) {
2452
2463
  return o.value ? Object.assign(
2453
2464
  gt(
2454
- Oe().domain(c.map((v, y) => y)).range([0, d.height]),
2465
+ Le().domain(c.map((v, y) => y)).range([0, d.height]),
2455
2466
  t.value,
2456
2467
  n.value
2457
2468
  ),
2458
2469
  { labels: c }
2459
- ) : $e().domain([a.value, r.value]).range([0, d.height]);
2470
+ ) : Oe().domain([a.value, r.value]).range([0, d.height]);
2460
2471
  }
2461
2472
  return { stackedXScaleGenerator: u, stackedYScaleGenerator: s };
2462
2473
  }
2463
- function Ja(e, t, n, o, r, a) {
2474
+ function Ka(e, t, n, o, r, a) {
2464
2475
  const u = p(
2465
2476
  () => o.value === D.HORIZONTAL
2466
2477
  ), s = p(
@@ -2491,11 +2502,11 @@ function Ja(e, t, n, o, r, a) {
2491
2502
  return _ ? i.value.reduce((N, I, x) => (x < _ && I[E] < 0 && (N += I[E]), N), 0) : 0;
2492
2503
  }
2493
2504
  function m(_, E, N) {
2494
- const { value: I, color: x } = _, H = I >= 0 ? d(I) : v(I), R = I >= 0 ? y(I) : $(I), X = I >= 0 ? k(E, N) : A(E, N), { x: Y, y: G } = c(I, N, X);
2505
+ const { value: I, color: x } = _, H = I >= 0 ? d(I) : v(I), M = I >= 0 ? y(I) : $(I), X = I >= 0 ? k(E, N) : A(E, N), { x: Y, y: G } = c(I, N, X);
2495
2506
  return {
2496
2507
  classList: [`lume-fill--${x ?? e.value[E].color ?? Object.values(ae)[E]}`, ...a],
2497
2508
  width: H,
2498
- height: R,
2509
+ height: M,
2499
2510
  x: Y,
2500
2511
  y: G,
2501
2512
  isFaded: r.value !== -1 && r.value !== N,
@@ -2504,14 +2515,14 @@ function Ja(e, t, n, o, r, a) {
2504
2515
  }
2505
2516
  return { barAttributeGenerator: m };
2506
2517
  }
2507
- const Qa = {
2518
+ const Ja = {
2508
2519
  class: "lume-bar-group",
2509
2520
  "data-j-bars-group": ""
2510
- }, qa = ["onMouseenter"], er = {
2511
- single: Xa,
2512
- grouped: Ya,
2513
- stacked: Ja
2514
- }, nt = /* @__PURE__ */ z({
2521
+ }, Qa = ["onMouseenter"], qa = {
2522
+ single: Ua,
2523
+ grouped: Xa,
2524
+ stacked: Ka
2525
+ }, nt = /* @__PURE__ */ Z({
2515
2526
  __name: "lume-bar-group",
2516
2527
  props: {
2517
2528
  ...Me(),
@@ -2519,7 +2530,7 @@ const Qa = {
2519
2530
  type: [String, Array],
2520
2531
  default: () => []
2521
2532
  },
2522
- ...Za(!0),
2533
+ ...za(!0),
2523
2534
  transition: {
2524
2535
  type: Boolean,
2525
2536
  default: !0
@@ -2536,8 +2547,8 @@ const Qa = {
2536
2547
  xScale: i,
2537
2548
  yScale: c,
2538
2549
  classList: d
2539
- } = Q(n), { groupedData: v } = zt(o), { barXScale: y, barYScale: $ } = Ua(i, c, a), k = p(() => typeof d.value == "string" ? [d.value] : d.value), A = p(() => {
2540
- const _ = Wa(o, s), { barAttributeGenerator: E } = er[_](
2550
+ } = Q(n), { groupedData: v } = Pt(o), { barXScale: y, barYScale: $ } = Wa(i, c, a), k = p(() => typeof d.value == "string" ? [d.value] : d.value), A = p(() => {
2551
+ const _ = Za(o, s), { barAttributeGenerator: E } = qa[_](
2541
2552
  o,
2542
2553
  y,
2543
2554
  $,
@@ -2550,25 +2561,25 @@ const Qa = {
2550
2561
  if (u.value)
2551
2562
  return a.value === D.HORIZONTAL ? "width" : "height";
2552
2563
  });
2553
- return (_, E) => (h(), L("g", Qa, [
2554
- (h(!0), L(K, null, P(l(v), (N, I) => (h(), L("g", {
2564
+ return (_, E) => (h(), T("g", Ja, [
2565
+ (h(!0), T(K, null, z(l(v), (N, I) => (h(), T("g", {
2555
2566
  key: I,
2556
2567
  onMouseenter: (x) => t("lume__internal--hover", I)
2557
2568
  }, [
2558
- (h(!0), L(K, null, P(N, (x, H) => (h(), Z(l(qe), S(l(A)(x, H, I, N), {
2569
+ (h(!0), T(K, null, z(N, (x, H) => (h(), W(l(qe), C(l(A)(x, H, I, N), {
2559
2570
  key: `bar-${H}`,
2560
2571
  transition: l(m),
2561
2572
  "data-j-lume-bar": "",
2562
- onClick: (R) => t("bar-click", {
2573
+ onClick: (M) => t("bar-click", {
2563
2574
  index: I,
2564
2575
  datasetIndex: H,
2565
- event: R
2576
+ event: M
2566
2577
  })
2567
2578
  }), null, 16, ["transition", "onClick"]))), 128))
2568
- ], 40, qa))), 128))
2579
+ ], 40, Qa))), 128))
2569
2580
  ]));
2570
2581
  }
2571
- }), tr = {
2582
+ }), er = {
2572
2583
  [D.VERTICAL]: {
2573
2584
  withTooltip: !0,
2574
2585
  xAxisOptions: {},
@@ -2581,35 +2592,35 @@ const Qa = {
2581
2592
  yAxisOptions: { gridLines: !1 },
2582
2593
  margins: me.HORIZONTAL
2583
2594
  }
2584
- }, Nr = /* @__PURE__ */ z({
2595
+ }, Er = /* @__PURE__ */ Z({
2585
2596
  __name: "lume-single-bar-chart",
2586
2597
  props: {
2587
- ...Ae(Ke)
2598
+ ...be(Ke)
2588
2599
  },
2589
2600
  setup(e) {
2590
- const t = e, n = ye(ne()), { orientation: o, options: r } = Q(t), a = p(
2591
- () => tr[o.value || D.VERTICAL]
2601
+ const t = e, n = _e(ne()), { orientation: o, options: r } = Q(t), a = p(
2602
+ () => er[o.value || D.VERTICAL]
2592
2603
  // needs to be computed so that default options are reactive
2593
- ), { allOptions: u } = ie(r, a);
2594
- return (s, i) => (h(), Z(l(Te), S(t, {
2604
+ ), { allOptions: u } = se(r, a);
2605
+ return (s, i) => (h(), W(l(Ae), C(t, {
2595
2606
  "chart-type": "single-bar",
2596
2607
  options: l(u),
2597
2608
  "data-j-single-bar-chart": ""
2598
- }), re({
2609
+ }), le({
2599
2610
  groups: V((c) => [
2600
- oe(l(nt), S(c, { orientation: l(o) }), null, 16, ["orientation"])
2611
+ oe(l(nt), C(c, { orientation: l(o) }), null, 16, ["orientation"])
2601
2612
  ]),
2602
2613
  _: 2
2603
2614
  }, [
2604
- P(l(n), (c, d) => ({
2615
+ z(l(n), (c, d) => ({
2605
2616
  name: d,
2606
2617
  fn: V((v) => [
2607
- B(s.$slots, d, le(ue(v || {})))
2618
+ R(s.$slots, d, ue(ie(v || {})))
2608
2619
  ])
2609
2620
  }))
2610
2621
  ]), 1040, ["options"]));
2611
2622
  }
2612
- }), nr = {
2623
+ }), tr = {
2613
2624
  [D.VERTICAL]: {
2614
2625
  withTooltip: !0,
2615
2626
  xAxisOptions: {},
@@ -2623,38 +2634,38 @@ const Qa = {
2623
2634
  margins: me.HORIZONTAL,
2624
2635
  tooltipOptions: { position: "right" }
2625
2636
  }
2626
- }, Dr = /* @__PURE__ */ z({
2637
+ }, Nr = /* @__PURE__ */ Z({
2627
2638
  __name: "lume-grouped-bar-chart",
2628
2639
  props: {
2629
- ...Ae()
2640
+ ...be()
2630
2641
  },
2631
2642
  setup(e) {
2632
- const t = e, n = ye(ne()), { orientation: o, options: r } = Q(t), a = p(
2633
- () => nr[o.value || D.VERTICAL]
2643
+ const t = e, n = _e(ne()), { orientation: o, options: r } = Q(t), a = p(
2644
+ () => tr[o.value || D.VERTICAL]
2634
2645
  // needs to be computed so that default options are reactive
2635
- ), { allOptions: u } = ie(
2646
+ ), { allOptions: u } = se(
2636
2647
  r,
2637
2648
  a
2638
2649
  );
2639
- return (s, i) => (h(), Z(l(Te), S(t, {
2650
+ return (s, i) => (h(), W(l(Ae), C(t, {
2640
2651
  "chart-type": "grouped-bar",
2641
2652
  options: l(u),
2642
2653
  "data-j-grouped-bar-chart": ""
2643
- }), re({
2654
+ }), le({
2644
2655
  groups: V((c) => [
2645
- oe(l(nt), S(c, { type: "grouped" }), null, 16)
2656
+ oe(l(nt), C(c, { type: "grouped" }), null, 16)
2646
2657
  ]),
2647
2658
  _: 2
2648
2659
  }, [
2649
- P(l(n), (c, d) => ({
2660
+ z(l(n), (c, d) => ({
2650
2661
  name: d,
2651
2662
  fn: V((v) => [
2652
- B(s.$slots, d, le(ue(v || {})))
2663
+ R(s.$slots, d, ue(ie(v || {})))
2653
2664
  ])
2654
2665
  }))
2655
2666
  ]), 1040, ["options"]));
2656
2667
  }
2657
- }), or = {
2668
+ }), nr = {
2658
2669
  [D.VERTICAL]: {
2659
2670
  withTooltip: !0,
2660
2671
  xAxisOptions: {},
@@ -2668,44 +2679,44 @@ const Qa = {
2668
2679
  margins: me.HORIZONTAL,
2669
2680
  tooltipOptions: { position: "right" }
2670
2681
  }
2671
- }, Hr = /* @__PURE__ */ z({
2682
+ }, Dr = /* @__PURE__ */ Z({
2672
2683
  __name: "lume-stacked-bar-chart",
2673
2684
  props: {
2674
- ...Ae()
2685
+ ...be()
2675
2686
  },
2676
2687
  setup(e) {
2677
- const t = e, n = ye(ne()), { data: o, orientation: r, options: a } = Q(t), u = p(
2678
- () => or[r.value || D.VERTICAL]
2688
+ const t = e, n = _e(ne()), { data: o, orientation: r, options: a } = Q(t), u = p(
2689
+ () => nr[r.value || D.VERTICAL]
2679
2690
  // needs to be computed so that default options are reactive
2680
- ), { allOptions: s } = ie(
2691
+ ), { allOptions: s } = se(
2681
2692
  a,
2682
2693
  u
2683
- ), { internalData: i } = tt(o), { groupedData: c } = zt(i), { stackedXScaleGenerator: d, stackedYScaleGenerator: v } = Ka(
2694
+ ), { internalData: i } = tt(o), { groupedData: c } = Pt(i), { stackedXScaleGenerator: d, stackedYScaleGenerator: v } = Ya(
2684
2695
  c,
2685
2696
  r,
2686
2697
  a
2687
2698
  );
2688
- return (y, $) => (h(), Z(l(Te), S(t, {
2699
+ return (y, $) => (h(), W(l(Ae), C(t, {
2689
2700
  "chart-type": "stacked-bar",
2690
2701
  options: l(s),
2691
2702
  "x-scale": l(d),
2692
2703
  "y-scale": l(v),
2693
2704
  "data-j-stacked-bar-chart": ""
2694
- }), re({
2705
+ }), le({
2695
2706
  groups: V((k) => [
2696
- oe(l(nt), S(k, { type: "stacked" }), null, 16)
2707
+ oe(l(nt), C(k, { type: "stacked" }), null, 16)
2697
2708
  ]),
2698
2709
  _: 2
2699
2710
  }, [
2700
- P(l(n), (k, A) => ({
2711
+ z(l(n), (k, A) => ({
2701
2712
  name: A,
2702
2713
  fn: V((m) => [
2703
- B(y.$slots, A, le(ue(m || {})))
2714
+ R(y.$slots, A, ue(ie(m || {})))
2704
2715
  ])
2705
2716
  }))
2706
2717
  ]), 1040, ["options", "x-scale", "y-scale"]));
2707
2718
  }
2708
- }), ar = ["d", "stroke-width"], rr = 2, lr = /* @__PURE__ */ z({
2719
+ }), or = ["d", "stroke-width"], ar = 2, rr = /* @__PURE__ */ Z({
2709
2720
  __name: "lume-line",
2710
2721
  props: {
2711
2722
  pathDefinition: {
@@ -2714,7 +2725,7 @@ const Qa = {
2714
2725
  },
2715
2726
  width: {
2716
2727
  type: Number,
2717
- default: rr
2728
+ default: ar
2718
2729
  },
2719
2730
  color: {
2720
2731
  type: String,
@@ -2739,8 +2750,8 @@ const Qa = {
2739
2750
  },
2740
2751
  emits: ["click"],
2741
2752
  setup(e, { emit: t }) {
2742
- const n = M(null);
2743
- return ve(() => Re(n.value)), (o, r) => (h(), L("path", {
2753
+ const n = S(null);
2754
+ return pe(() => Re(n.value)), (o, r) => (h(), T("path", {
2744
2755
  ref_key: "root",
2745
2756
  ref: n,
2746
2757
  class: ee(["lume-line", {
@@ -2756,10 +2767,10 @@ const Qa = {
2756
2767
  }),
2757
2768
  "data-j-line": "",
2758
2769
  onClick: r[0] || (r[0] = (a) => t("click", a))
2759
- }, null, 14, ar));
2770
+ }, null, 14, or));
2760
2771
  }
2761
2772
  });
2762
- const ur = /* @__PURE__ */ J(lr, [["__scopeId", "data-v-08896455"]]), ir = ["cx", "cy", "r", "stroke-width"], sr = 4, cr = /* @__PURE__ */ z({
2773
+ const lr = /* @__PURE__ */ J(rr, [["__scopeId", "data-v-08896455"]]), ur = ["cx", "cy", "r", "stroke-width"], ir = 4, sr = /* @__PURE__ */ Z({
2763
2774
  __name: "lume-point",
2764
2775
  props: {
2765
2776
  x: { type: Number, required: !0 },
@@ -2770,7 +2781,7 @@ const ur = /* @__PURE__ */ J(lr, [["__scopeId", "data-v-08896455"]]), ir = ["cx"
2770
2781
  },
2771
2782
  radius: {
2772
2783
  type: Number,
2773
- default: sr
2784
+ default: ir
2774
2785
  },
2775
2786
  active: {
2776
2787
  type: Boolean,
@@ -2779,8 +2790,8 @@ const ur = /* @__PURE__ */ J(lr, [["__scopeId", "data-v-08896455"]]), ir = ["cx"
2779
2790
  },
2780
2791
  emits: ["click"],
2781
2792
  setup(e, { emit: t }) {
2782
- const n = e, o = M(null), r = p(() => n.radius / 2);
2783
- return ve(() => Re(o.value)), (a, u) => (h(), L("circle", {
2793
+ const n = e, o = S(null), r = p(() => n.radius / 2);
2794
+ return pe(() => Re(o.value)), (a, u) => (h(), T("circle", {
2784
2795
  ref_key: "root",
2785
2796
  ref: o,
2786
2797
  class: ee(["lume-point", `lume-stroke--${e.color}`]),
@@ -2790,11 +2801,11 @@ const ur = /* @__PURE__ */ J(lr, [["__scopeId", "data-v-08896455"]]), ir = ["cx"
2790
2801
  "stroke-width": l(r),
2791
2802
  "data-j-point": "",
2792
2803
  onClick: u[0] || (u[0] = (s) => t("click", s))
2793
- }, null, 10, ir));
2804
+ }, null, 10, ur));
2794
2805
  }
2795
2806
  });
2796
- const dr = /* @__PURE__ */ J(cr, [["__scopeId", "data-v-9bacbd7d"]]);
2797
- function Zt(e) {
2807
+ const cr = /* @__PURE__ */ J(sr, [["__scopeId", "data-v-9bacbd7d"]]);
2808
+ function zt(e) {
2798
2809
  function t(a) {
2799
2810
  let u = null;
2800
2811
  return a == null ? void 0 : a.reduce((s, i, c) => (i == null || i.value == null ? (u ? u.push(c) : u = [c], c === (a == null ? void 0 : a.length) - 1 && s.push(u)) : u && (s.push(u), u = null), s), []);
@@ -2838,26 +2849,26 @@ function Zt(e) {
2838
2849
  };
2839
2850
  })) };
2840
2851
  }
2841
- function vr(e, t) {
2852
+ function dr(e, t) {
2842
2853
  const n = e.bandwidth() / 2;
2843
2854
  return (o, r) => e(e.domain()[t + (r - 1)]) + n;
2844
2855
  }
2845
- function pr(e, t) {
2856
+ function vr(e, t) {
2846
2857
  return (n, o) => e(t + (o - 1));
2847
2858
  }
2848
- function fr(e, t, n, o) {
2849
- return rn().x(
2850
- _e(n) ? vr(n, e) : pr(n, e)
2859
+ function pr(e, t, n, o) {
2860
+ return an().x(
2861
+ ge(n) ? dr(n, e) : vr(n, e)
2851
2862
  ).y((a) => o(a))(t);
2852
2863
  }
2853
- const hr = {
2864
+ const fr = {
2854
2865
  class: "lume-line-group",
2855
2866
  "data-j-lume-line-group": ""
2856
- }, mr = { class: "lume-line-group__lines" }, gr = {
2867
+ }, hr = { class: "lume-line-group__lines" }, mr = {
2857
2868
  key: 0,
2858
2869
  class: "lume-line-group__points",
2859
2870
  "data-j-lume-line-group__points": ""
2860
- }, _r = 1, yr = /* @__PURE__ */ z({
2871
+ }, gr = 1, _r = /* @__PURE__ */ Z({
2861
2872
  __name: "lume-line-group",
2862
2873
  props: {
2863
2874
  ...Me(),
@@ -2875,7 +2886,7 @@ const hr = {
2875
2886
  const n = e, { data: o, options: r, xScale: a, yScale: u } = Q(n), s = He(
2876
2887
  "tooltipAnchorAttributes",
2877
2888
  null
2878
- ), { updateTooltipAnchorAttributes: i } = Gt(
2889
+ ), { updateTooltipAnchorAttributes: i } = jt(
2879
2890
  s,
2880
2891
  r,
2881
2892
  a,
@@ -2883,12 +2894,12 @@ const hr = {
2883
2894
  ), c = p(() => {
2884
2895
  if (o.value.every((H) => H.isDashed))
2885
2896
  return o.value;
2886
- const { computedLineData: x } = Zt(o);
2897
+ const { computedLineData: x } = zt(o);
2887
2898
  return r.value.withTooltip !== !1 && (s != null && s.value) && i(x.value), x.value;
2888
2899
  }), d = p(() => {
2889
2900
  if (n.hoveredIndex === -1)
2890
2901
  return;
2891
- const x = yn(
2902
+ const x = _n(
2892
2903
  c.value,
2893
2904
  n.hoveredIndex
2894
2905
  );
@@ -2898,7 +2909,7 @@ const hr = {
2898
2909
  // Move to X index, Vertical line to the highest point
2899
2910
  };
2900
2911
  }), v = p(
2901
- () => a.value && _r / (kn(a.value) - 1)
2912
+ () => a.value && gr / (yn(a.value) - 1)
2902
2913
  // Subtracting the first line (read below)
2903
2914
  ), y = p(
2904
2915
  () => {
@@ -2916,13 +2927,13 @@ const hr = {
2916
2927
  }
2917
2928
  function _(x, H) {
2918
2929
  var X, Y;
2919
- const R = x === 0 ? [] : [
2930
+ const M = x === 0 ? [] : [
2920
2931
  (X = m(H)[x - 1]) == null ? void 0 : X.value,
2921
2932
  (Y = m(H)[x]) == null ? void 0 : Y.value
2922
2933
  ];
2923
- return fr(
2934
+ return pr(
2924
2935
  x,
2925
- R,
2936
+ M,
2926
2937
  a.value,
2927
2938
  u.value
2928
2939
  ) || "";
@@ -2935,92 +2946,92 @@ const hr = {
2935
2946
  }
2936
2947
  function N(x, H) {
2937
2948
  var X;
2938
- const R = (X = m(H)[x]) == null ? void 0 : X.value;
2949
+ const M = (X = m(H)[x]) == null ? void 0 : X.value;
2939
2950
  return {
2940
- x: _e(a.value) ? n.xScale(k.value[x]) + $.value : n.xScale(x),
2941
- y: u.value(R)
2951
+ x: ge(a.value) ? n.xScale(k.value[x]) + $.value : n.xScale(x),
2952
+ y: u.value(M)
2942
2953
  };
2943
2954
  }
2944
2955
  function I(x) {
2945
2956
  return n.hoveredIndex === x;
2946
2957
  }
2947
- return (x, H) => (h(), L("g", hr, [
2948
- j("path", S(l(d), {
2958
+ return (x, H) => (h(), T("g", fr, [
2959
+ j("path", C(l(d), {
2949
2960
  class: "lume-line-group__overlay-line",
2950
2961
  "data-j-lume-line-group__overlay-line": ""
2951
2962
  }), null, 16),
2952
- (h(!0), L(K, null, P(l(c), (R, X) => (h(), L("g", {
2953
- key: R.label,
2963
+ (h(!0), T(K, null, z(l(c), (M, X) => (h(), T("g", {
2964
+ key: M.label,
2954
2965
  class: "lume-line-group__group"
2955
2966
  }, [
2956
- j("g", mr, [
2957
- (h(!0), L(K, null, P(R.values, (Y, G) => (h(), Z(l(ur), S(E(G), {
2967
+ j("g", hr, [
2968
+ (h(!0), T(K, null, z(M.values, (Y, G) => (h(), W(l(lr), C(E(G), {
2958
2969
  key: `line-${G}`,
2959
- color: R.color,
2960
- dashed: R.isDashed(G),
2970
+ color: M.color,
2971
+ dashed: M.isDashed(G),
2961
2972
  "path-definition": _(G, X),
2962
2973
  transition: e.transition,
2963
2974
  width: l(r).lineWidth,
2964
2975
  onClick: (te) => t("line-click", { index: G, datasetIndex: X, event: te })
2965
2976
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
2966
2977
  ]),
2967
- l(A) ? (h(), L("g", gr, [
2968
- (h(!0), L(K, null, P(R.values, (Y, G) => (h(), Z(l(dr), S(N(G, X), {
2978
+ l(A) ? (h(), T("g", mr, [
2979
+ (h(!0), T(K, null, z(M.values, (Y, G) => (h(), W(l(cr), C(N(G, X), {
2969
2980
  key: `point-${G}`,
2970
2981
  active: I(G),
2971
- color: R.color,
2982
+ color: M.color,
2972
2983
  index: G,
2973
2984
  radius: l(y),
2974
2985
  onClick: (te) => t("point-click", { index: G, datasetIndex: X, event: te })
2975
2986
  }), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
2976
- ])) : F("", !0)
2987
+ ])) : P("", !0)
2977
2988
  ]))), 128))
2978
2989
  ]));
2979
2990
  }
2980
2991
  });
2981
- const Wt = /* @__PURE__ */ J(yr, [["__scopeId", "data-v-c4d7f0ca"]]), kr = {
2992
+ const Zt = /* @__PURE__ */ J(_r, [["__scopeId", "data-v-c4d7f0ca"]]), yr = {
2982
2993
  margins: me.VERTICAL,
2983
2994
  startOnZero: !0,
2984
2995
  withTooltip: !0,
2985
2996
  xAxisOptions: {},
2986
2997
  yAxisOptions: { gridLines: !0 }
2987
- }, Br = /* @__PURE__ */ z({
2998
+ }, Hr = /* @__PURE__ */ Z({
2988
2999
  __name: "lume-line-chart",
2989
3000
  props: {
2990
- ...Ae(null, !1)
3001
+ ...be(null, !1)
2991
3002
  },
2992
3003
  setup(e) {
2993
- const t = e, n = ye(ne()), { options: o } = Q(t), { allOptions: r } = ie(o, kr);
2994
- return (a, u) => (h(), Z(l(Te), S(t, {
3004
+ const t = e, n = _e(ne()), { options: o } = Q(t), { allOptions: r } = se(o, yr);
3005
+ return (a, u) => (h(), W(l(Ae), C(t, {
2995
3006
  "chart-type": "line",
2996
3007
  options: l(r),
2997
3008
  "data-j-lume-line-chart": ""
2998
- }), re({
3009
+ }), le({
2999
3010
  groups: V((s) => [
3000
- oe(l(Wt), le(ue(s)), null, 16)
3011
+ oe(l(Zt), ue(ie(s)), null, 16)
3001
3012
  ]),
3002
3013
  _: 2
3003
3014
  }, [
3004
- P(l(n), (s, i) => ({
3015
+ z(l(n), (s, i) => ({
3005
3016
  name: i,
3006
3017
  fn: V((c) => [
3007
- B(a.$slots, i, le(ue(c || {})))
3018
+ R(a.$slots, i, ue(ie(c || {})))
3008
3019
  ])
3009
3020
  }))
3010
3021
  ]), 1040, ["options"]));
3011
3022
  }
3012
3023
  });
3013
- function br(e) {
3024
+ function kr(e) {
3014
3025
  return { areaPathDefinition: p(
3015
3026
  () => function(n, o) {
3016
3027
  if (!n || !o)
3017
3028
  return;
3018
3029
  const r = e.value[0].values;
3019
- return ln().x((a, u) => n(u)).y0(o(Math.min(...o.domain()))).y1((a) => o(a.value))(r);
3030
+ return rn().x((a, u) => n(u)).y0(o(Math.min(...o.domain()))).y1((a) => o(a.value))(r);
3020
3031
  }
3021
3032
  ) };
3022
3033
  }
3023
- const Ar = {
3034
+ const br = {
3024
3035
  margins: {
3025
3036
  top: 0,
3026
3037
  right: 0,
@@ -3034,14 +3045,14 @@ const Ar = {
3034
3045
  tooltipOptions: {
3035
3046
  showTitle: !1
3036
3047
  }
3037
- }, Tr = ["d"], Lr = /* @__PURE__ */ z({
3048
+ }, Ar = ["d"], Tr = /* @__PURE__ */ Z({
3038
3049
  __name: "lume-sparkline-chart",
3039
3050
  props: {
3040
3051
  ...et(null),
3041
- ...xe()
3052
+ ...$e()
3042
3053
  },
3043
3054
  setup(e, { expose: t }) {
3044
- const n = e, o = ye(ne()), { data: r, options: a } = Q(n), { internalData: u } = tt(r), { allOptions: s } = ie(a, Ar), { computedLineData: i } = Zt(u), { areaPathDefinition: c } = br(i), d = p(() => u.value[0].color), v = p(
3055
+ const n = e, o = _e(ne()), { data: r, options: a } = Q(n), { internalData: u } = tt(r), { allOptions: s } = se(a, br), { computedLineData: i } = zt(u), { areaPathDefinition: c } = kr(i), d = p(() => u.value[0].color), v = p(
3045
3056
  () => r.value[0].areaColor || d.value
3046
3057
  );
3047
3058
  function y(k) {
@@ -3051,17 +3062,17 @@ const Ar = {
3051
3062
  };
3052
3063
  }
3053
3064
  function $(k, A, m) {
3054
- return $e().range([0, m.width]).domain([0, k[0].values.length - 1]);
3065
+ return Oe().range([0, m.width]).domain([0, k[0].values.length - 1]);
3055
3066
  }
3056
3067
  return t({
3057
3068
  areaPathDefinition: c
3058
- }), (k, A) => (h(), Z(l(Te), S(n, {
3069
+ }), (k, A) => (h(), W(l(Ae), C(n, {
3059
3070
  "chart-type": "line",
3060
3071
  options: y(l(s)),
3061
3072
  "x-scale": $
3062
- }), re({
3073
+ }), le({
3063
3074
  groups: V((m) => [
3064
- l(s).showArea ? (h(), L("path", {
3075
+ l(s).showArea ? (h(), T("path", {
3065
3076
  key: 0,
3066
3077
  class: ee([
3067
3078
  "sparkline-chart__area",
@@ -3071,45 +3082,45 @@ const Ar = {
3071
3082
  ]),
3072
3083
  d: l(c)(m.xScale, m.yScale),
3073
3084
  "data-j-sparkline__area": ""
3074
- }, null, 10, Tr)) : F("", !0),
3075
- oe(l(Wt), S(m, { "with-points": !1 }), null, 16)
3085
+ }, null, 10, Ar)) : P("", !0),
3086
+ oe(l(Zt), C(m, { "with-points": !1 }), null, 16)
3076
3087
  ]),
3077
3088
  _: 2
3078
3089
  }, [
3079
- P(l(o), (m, _) => ({
3090
+ z(l(o), (m, _) => ({
3080
3091
  name: _,
3081
3092
  fn: V((E) => [
3082
- B(k.$slots, _, le(ue(E || {})), void 0, !0)
3093
+ R(k.$slots, _, ue(ie(E || {})), void 0, !0)
3083
3094
  ])
3084
3095
  }))
3085
3096
  ]), 1040, ["options"]));
3086
3097
  }
3087
3098
  });
3088
- const Rr = /* @__PURE__ */ J(Lr, [["__scopeId", "data-v-9fc2cb6e"]]);
3099
+ const Br = /* @__PURE__ */ J(Tr, [["__scopeId", "data-v-9fc2cb6e"]]);
3089
3100
  export {
3090
- Ir as LumeAlluvialDiagram,
3091
- Va as LumeAlluvialGroup,
3092
- aa as LumeAlluvialNodeLabel,
3093
- ua as LumeAlluvialNodeValue,
3101
+ wr as LumeAlluvialDiagram,
3102
+ Ga as LumeAlluvialGroup,
3103
+ oa as LumeAlluvialNodeLabel,
3104
+ la as LumeAlluvialNodeValue,
3094
3105
  ct as LumeAxis,
3095
3106
  qe as LumeBar,
3096
- Er as LumeBarChart,
3107
+ Ir as LumeBarChart,
3097
3108
  nt as LumeBarGroup,
3098
- Te as LumeChart,
3099
- Kn as LumeChartContainer,
3109
+ Ae as LumeChart,
3110
+ Yn as LumeChartContainer,
3100
3111
  dt as LumeChartLegend,
3101
- Dr as LumeGroupedBarChart,
3102
- ur as LumeLine,
3103
- Br as LumeLineChart,
3104
- Wt as LumeLineGroup,
3105
- Ro as LumeOverlayGroup,
3106
- dr as LumePoint,
3107
- Nr as LumeSingleBarChart,
3108
- Rr as LumeSparklineChart,
3109
- Hr as LumeStackedBarChart,
3110
- ko as LumeTooltip,
3111
- po as LumeTooltipItem,
3112
- uo as LumeTooltipSummary,
3113
- no as LumeTooltipTitle
3112
+ Nr as LumeGroupedBarChart,
3113
+ lr as LumeLine,
3114
+ Hr as LumeLineChart,
3115
+ Zt as LumeLineGroup,
3116
+ Bo as LumeOverlayGroup,
3117
+ cr as LumePoint,
3118
+ Er as LumeSingleBarChart,
3119
+ Br as LumeSparklineChart,
3120
+ Dr as LumeStackedBarChart,
3121
+ yo as LumeTooltip,
3122
+ vo as LumeTooltipItem,
3123
+ lo as LumeTooltipSummary,
3124
+ to as LumeTooltipTitle
3114
3125
  };
3115
3126
  //# sourceMappingURL=index.js.map