@adyen/lume-vue3 1.9.1 → 1.9.3

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 W, ref as G, openBlock as y, createElementBlock as O, mergeProps as j, createElementVNode as R, toDisplayString as oe, createCommentVNode as Z, isRef as Rt, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as z, createBlock as X, normalizeClass as ne, normalizeStyle as jt, onBeforeUnmount as Vt, watchEffect as Ct, renderSlot as M, createTextVNode as ce, useSlots as re, withDirectives as sn, withCtx as C, createSlots as de, vShow as cn, pushScopeId as dn, popScopeId as vn, provide as Ke, createVNode as ie, nextTick as kt, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as mn } from "vue";
2
- import { format as fn, ticks as pn, scaleBand as Be, scaleLinear as Me, link as hn, line as gn, area as _n } from "d3";
3
- import { createPopper as yn } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as kn, sankey as bn, sankeyJustify as An } from "d3-sankey";
5
- const Tn = {
1
+ import { defineComponent as Z, ref as S, openBlock as y, createElementBlock as O, mergeProps as j, createElementVNode as R, toDisplayString as oe, createCommentVNode as z, isRef as Rt, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as W, createBlock as X, normalizeClass as ne, normalizeStyle as jt, onBeforeUnmount as Vt, watchEffect as Ct, renderSlot as M, createTextVNode as ce, useSlots as re, nextTick as Qe, withCtx as C, createSlots as de, pushScopeId as cn, popScopeId as dn, provide as Ke, createVNode as ie, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as vn } from "vue";
2
+ import { format as mn, ticks as fn, scaleBand as Be, scaleLinear as Me, link as pn, line as hn, area as gn } from "d3";
3
+ import { createPopper as _n } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as yn, sankey as kn, sankeyJustify as bn } from "d3-sankey";
5
+ const An = {
6
6
  class: "axis__tick-label lume-typography--axis",
7
7
  "pointer-events": "all",
8
8
  "data-j-axis__tick-label": ""
9
- }, Ln = /* @__PURE__ */ W({
9
+ }, Tn = /* @__PURE__ */ Z({
10
10
  __name: "lume-tick",
11
11
  props: {
12
12
  value: {
@@ -44,7 +44,7 @@ const Tn = {
44
44
  },
45
45
  emits: ["click", "mouseenter"],
46
46
  setup(e, { expose: n, emit: t }) {
47
- const o = t, a = G(null);
47
+ const o = t, a = S(null);
48
48
  return n({ ref: a }), (u, l) => (y(), O("g", j(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
@@ -54,7 +54,7 @@ const Tn = {
54
54
  onMouseenter: l[0] || (l[0] = (i) => o("mouseenter", i)),
55
55
  onClick: l[1] || (l[1] = (i) => o("click", i))
56
56
  }), [
57
- R("g", Tn, [
57
+ R("g", An, [
58
58
  R("rect", j(e.ghost, {
59
59
  class: "axis__ghost",
60
60
  fill: "url(#lume-tick-gradient)"
@@ -65,7 +65,7 @@ const Tn = {
65
65
  class: "axis__label"
66
66
  }), oe(e.value), 17)
67
67
  ]),
68
- e.withGridlines ? (y(), O("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : Z("", !0)
68
+ e.withGridlines ? (y(), O("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : z("", !0)
69
69
  ], 16));
70
70
  }
71
71
  });
@@ -74,7 +74,7 @@ const ee = (e, n) => {
74
74
  for (const [o, a] of n)
75
75
  t[o] = a;
76
76
  return t;
77
- }, bt = /* @__PURE__ */ ee(Ln, [["__scopeId", "data-v-59ddc0a6"]]), $n = [
77
+ }, bt = /* @__PURE__ */ ee(Tn, [["__scopeId", "data-v-59ddc0a6"]]), Ln = [
78
78
  "controls",
79
79
  "legend",
80
80
  "axes",
@@ -90,37 +90,37 @@ function Ft(e) {
90
90
  (n) => n.values.map((t) => t == null ? void 0 : t.value).flat()
91
91
  ).flat()) || [];
92
92
  }
93
- function it(e) {
93
+ function st(e) {
94
94
  return e.length === 1;
95
95
  }
96
- function xn(e) {
96
+ function $n(e) {
97
97
  return !!e && e.every(
98
98
  (n) => "color" in n
99
99
  );
100
100
  }
101
- function Qe(e) {
101
+ function qe(e) {
102
102
  return !!e && typeof e == "object" && !Array.isArray(e);
103
103
  }
104
104
  function zt(e, n) {
105
105
  const t = { ...e };
106
106
  return Object.entries(n).forEach(([o, a]) => {
107
- t[o] = Qe(e[o]) && Qe(a) ? zt(e[o], a) : a;
107
+ t[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
108
108
  }), t;
109
109
  }
110
- function On(e) {
111
- return e != null && Qe(e) && "value" in e;
110
+ function xn(e) {
111
+ return e != null && qe(e) && "value" in e;
112
112
  }
113
113
  function ve(e) {
114
114
  return (e == null ? void 0 : e.bandwidth) !== void 0;
115
115
  }
116
- function In(e) {
116
+ function On(e) {
117
117
  return ve(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
118
118
  }
119
119
  function At(e) {
120
120
  const [n, t] = e.domain();
121
121
  return n == null || t == null || n === 0 && t === 0;
122
122
  }
123
- const wn = (e, n) => {
123
+ const In = (e, n) => {
124
124
  if (!e)
125
125
  throw new Error("Data is not a valid array");
126
126
  if (e.length === 0)
@@ -129,9 +129,9 @@ const wn = (e, n) => {
129
129
  ({ values: o }) => o.length - 1 >= n
130
130
  ) || ge(me.IndexExceedsLengthOfDataSets);
131
131
  };
132
- function En(e, n) {
132
+ function wn(e, n) {
133
133
  var t;
134
- return wn(e, n), ((t = e.reduce(
134
+ return In(e, n), ((t = e.reduce(
135
135
  (o, a) => {
136
136
  var u, l;
137
137
  return (((u = o.values[n]) == null ? void 0 : u.value) ?? 0) > (((l = a.values[n]) == null ? void 0 : l.value) ?? 0) ? o : a;
@@ -148,13 +148,13 @@ function Wt(e) {
148
148
  );
149
149
  return Array(t).fill(null);
150
150
  }
151
- function Nn(e) {
151
+ function En(e) {
152
152
  return ve(e) ? e.domain().length : Math.max(...e.domain());
153
153
  }
154
- function Dn(e, n) {
154
+ function Nn(e, n) {
155
155
  return (t) => Math.round(e * (1 - t) + n * t);
156
156
  }
157
- function Hn(e, n, t) {
157
+ function Dn(e, n, t) {
158
158
  const o = t ? e.length - n : n, a = e.slice(0, o);
159
159
  return e.slice(o).concat(a);
160
160
  }
@@ -168,34 +168,34 @@ function Te(e) {
168
168
  }
169
169
  return e;
170
170
  }
171
- function Bn(e) {
171
+ function Hn(e) {
172
172
  return Object.assign(
173
173
  {},
174
174
  ...Object.keys(e).map(
175
- (n) => $n.includes(n) ? {} : { [n]: e[n] }
175
+ (n) => Ln.includes(n) ? {} : { [n]: e[n] }
176
176
  )
177
177
  );
178
178
  }
179
- const Mn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
179
+ const Bn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
180
180
  (n, t) => n += (t &= 63) < 36 ? t.toString(36) : t < 62 ? (t - 26).toString(36).toUpperCase() : t > 62 ? "-" : "_",
181
181
  ""
182
182
  );
183
- function st(e, n) {
183
+ function ct(e, n) {
184
184
  const t = n - e.length;
185
185
  return t > 0 ? [...e, ...Array(t).fill({ value: null })] : e;
186
186
  }
187
187
  var me = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
188
188
  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.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(me || {});
189
- const Sn = "[lume] ";
189
+ const Mn = "[lume] ";
190
190
  function ge(e, n = !0) {
191
- n && Pt() || console.warn(Sn + "Warning: " + e);
191
+ n && Pt() || console.warn(Mn + "Warning: " + e);
192
192
  }
193
193
  const Ve = (e) => {
194
194
  let n = null;
195
195
  switch (typeof e) {
196
196
  case "string":
197
197
  try {
198
- n = fn(e);
198
+ n = mn(e);
199
199
  } catch {
200
200
  ge(me.InvalidFormat), n = null;
201
201
  }
@@ -210,7 +210,7 @@ const Ve = (e) => {
210
210
  return n ? n(...o) : o[0];
211
211
  }
212
212
  return t;
213
- }, Se = () => ({
213
+ }, Ge = () => ({
214
214
  options: {
215
215
  type: Object,
216
216
  default: () => ({})
@@ -223,8 +223,8 @@ function fe(e, n) {
223
223
  }) };
224
224
  }
225
225
  const Gn = 0.2;
226
- function Rn(e, n, t) {
227
- const o = G(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
226
+ function Sn(e, n, t) {
227
+ const o = S(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
228
228
  function l() {
229
229
  if (!n.value)
230
230
  return;
@@ -245,15 +245,15 @@ function Rn(e, n, t) {
245
245
  }
246
246
  return U(n, l), { showTick: i };
247
247
  }
248
- var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Zt || {}), ct = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(ct || {}), dt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(dt || {}), vt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(vt || {});
248
+ var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Zt || {}), dt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(dt || {}), vt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(mt || {});
249
249
  const B = {
250
250
  HORIZONTAL: "horizontal",
251
251
  VERTICAL: "vertical"
252
- }, jn = {
252
+ }, Rn = {
253
253
  SINGLE: "single",
254
254
  GROUPED: "grouped",
255
255
  STACKED: "stacked"
256
- }, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12, Ge = 8, Vn = 1, Cn = [
256
+ }, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12, Se = 8, jn = 1, Vn = [
257
257
  "auto",
258
258
  "auto-start",
259
259
  "auto-end",
@@ -289,14 +289,14 @@ const Jt = {
289
289
  tickFormat: null,
290
290
  /** Space between the tick label and the axis line. */
291
291
  tickPadding: 8
292
- }, Pn = {
292
+ }, Cn = {
293
293
  ...Jt,
294
294
  withTitle: !1,
295
295
  skip: !0
296
- }, Fn = {
296
+ }, Pn = {
297
297
  ...Jt,
298
298
  gridLines: !0
299
- }, zn = function(e, n, t) {
299
+ }, Fn = function(e, n, t) {
300
300
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
301
301
  function a(c, s) {
302
302
  return {
@@ -312,7 +312,7 @@ const Jt = {
312
312
  return {
313
313
  x: -(s - e.value.step()) / 2,
314
314
  width: s,
315
- height: t.value.tickPadding + Kt + Ge
315
+ height: t.value.tickPadding + Kt + Se
316
316
  };
317
317
  }
318
318
  function l() {
@@ -338,7 +338,7 @@ const Jt = {
338
338
  getTickGroupAttributes: a,
339
339
  getTickLabelAttributes: i
340
340
  };
341
- }, Wn = function(e, n, t) {
341
+ }, zn = function(e, n, t) {
342
342
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
343
343
  function a(c, s) {
344
344
  return {
@@ -347,7 +347,7 @@ const Jt = {
347
347
  }
348
348
  function u(c) {
349
349
  var f;
350
- const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Ge;
350
+ const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Se;
351
351
  return {
352
352
  x: -s,
353
353
  width: s,
@@ -376,7 +376,7 @@ const Jt = {
376
376
  getTickGroupAttributes: a,
377
377
  getTickLabelAttributes: i
378
378
  };
379
- }, Zn = function(e, n, t) {
379
+ }, Wn = function(e, n, t) {
380
380
  const o = v(() => {
381
381
  const c = e.value.ticks();
382
382
  return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
@@ -388,7 +388,7 @@ const Jt = {
388
388
  }
389
389
  function u() {
390
390
  return {
391
- height: t.value.tickPadding + Kt + Ge,
391
+ height: t.value.tickPadding + Kt + Se,
392
392
  width: o.value,
393
393
  x: -(o.value / 2)
394
394
  };
@@ -411,7 +411,7 @@ const Jt = {
411
411
  getTickGroupAttributes: a,
412
412
  getTickLabelAttributes: i
413
413
  };
414
- }, Un = function(e, n, t) {
414
+ }, Zn = function(e, n, t) {
415
415
  const o = v(() => {
416
416
  const c = e.value.ticks();
417
417
  return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
@@ -423,7 +423,7 @@ const Jt = {
423
423
  }
424
424
  function u(c) {
425
425
  var f;
426
- const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Ge;
426
+ const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Se;
427
427
  return {
428
428
  width: s,
429
429
  height: o.value,
@@ -449,12 +449,12 @@ const Jt = {
449
449
  getTickGroupAttributes: a,
450
450
  getTickLabelAttributes: i
451
451
  };
452
- }, Xn = {
453
- "x-band-scale-axis": zn,
454
- "y-band-scale-axis": Wn,
455
- "x-linear-scale-axis": Zn,
456
- "y-linear-scale-axis": Un
457
- }, Yn = ["transform"], Kn = { key: 0 }, Jn = /* @__PURE__ */ R("linearGradient", { id: "lume-tick-gradient" }, [
452
+ }, Un = {
453
+ "x-band-scale-axis": Fn,
454
+ "y-band-scale-axis": zn,
455
+ "x-linear-scale-axis": Wn,
456
+ "y-linear-scale-axis": Zn
457
+ }, Xn = ["transform"], Yn = { key: 0 }, Kn = /* @__PURE__ */ R("linearGradient", { id: "lume-tick-gradient" }, [
458
458
  /* @__PURE__ */ R("stop", {
459
459
  offset: "0%",
460
460
  "stop-color": "rgba(255,255,255,0)"
@@ -471,11 +471,11 @@ const Jt = {
471
471
  offset: "100%",
472
472
  "stop-color": "rgba(255,255,255,0)"
473
473
  })
474
- ], -1), Qn = [
475
- Jn
474
+ ], -1), Jn = [
475
+ Kn
476
476
  ];
477
- var Qt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Qt || {}), qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(qt || {}), qe = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(qe || {});
478
- const Lt = /* @__PURE__ */ W({
477
+ var Qt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Qt || {}), qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(qt || {}), et = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(et || {});
478
+ const Lt = /* @__PURE__ */ Z({
479
479
  __name: "lume-axis",
480
480
  props: {
481
481
  scale: {
@@ -485,7 +485,7 @@ const Lt = /* @__PURE__ */ W({
485
485
  type: {
486
486
  type: String,
487
487
  default: void 0,
488
- validator: (e) => e in qe
488
+ validator: (e) => e in et
489
489
  },
490
490
  position: {
491
491
  type: String,
@@ -504,43 +504,43 @@ const Lt = /* @__PURE__ */ W({
504
504
  type: String,
505
505
  default: B.VERTICAL
506
506
  },
507
- ...Se()
507
+ ...Ge()
508
508
  },
509
509
  emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
510
510
  setup(e, { emit: n }) {
511
- const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", G(!1)), r = Fe({}), m = G(null), g = G(null), p = G(null), b = v(
512
- () => o.type ? qe[o.type] : o.position
513
- ), L = v(
511
+ const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", S(!1)), r = Fe({}), m = S(null), g = S(null), p = S(null), b = v(
512
+ () => o.type ? et[o.type] : o.position
513
+ ), $ = v(
514
514
  () => o.type || (b.value === "left" ? "y" : "x")
515
515
  ), A = v(
516
- () => L.value === "x" && s.value === B.VERTICAL || L.value === "y" && s.value === B.HORIZONTAL
516
+ () => $.value === "x" && s.value === B.VERTICAL || $.value === "y" && s.value === B.HORIZONTAL
517
517
  ), { allOptions: h } = fe(
518
518
  c,
519
- L.value === "x" ? Pn : Fn
520
- ), { showTick: x } = Rn(u, m, h), N = v(() => {
521
- var S, k, E, _;
522
- return L.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((S = l.value) == null ? void 0 : S.height) / 2})` : L.value === "x" && f.value && (!u.value || At(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(E = l.value) == null ? void 0 : E.height})` : `translate(0, ${L.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
519
+ $.value === "x" ? Cn : Pn
520
+ ), { showTick: x } = Sn(u, m, h), N = v(() => {
521
+ var G, k, E, _;
522
+ return $.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((G = l.value) == null ? void 0 : G.height) / 2})` : $.value === "x" && f.value && (!u.value || At(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(E = l.value) == null ? void 0 : E.height})` : `translate(0, ${$.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
523
523
  }), D = v(() => {
524
524
  if (!u.value)
525
525
  return [];
526
526
  if (ve(u.value))
527
527
  return u.value.labels || u.value.domain();
528
- const { tickCount: S } = h.value, [k, E] = u.value.domain();
529
- return pn(k, E, S);
528
+ const { tickCount: G } = h.value, [k, E] = u.value.domain();
529
+ return fn(k, E, G);
530
530
  }), P = v(() => {
531
- const { tickFormat: S } = h.value;
532
- return Ve(S);
531
+ const { tickFormat: G } = h.value;
532
+ return Ve(G);
533
533
  }), w = v(
534
534
  () => h.value.withHover && A.value && i.value > -1
535
535
  ), H = v(
536
- () => h.value.tickPadding + Ge || 16
537
- ), Y = v(() => L.value === "x" ? (
536
+ () => h.value.tickPadding + Se || 16
537
+ ), Y = v(() => $.value === "x" ? (
538
538
  // If x axis, get the tick height
539
539
  Math.max(
540
540
  ...(m.value || []).map(
541
- (S) => {
541
+ (G) => {
542
542
  var k, E;
543
- return ((E = (k = S.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
543
+ return ((E = (k = G.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
544
544
  }
545
545
  )
546
546
  )
@@ -548,33 +548,33 @@ const Lt = /* @__PURE__ */ W({
548
548
  // If y axis, get the tick width
549
549
  Math.max(
550
550
  ...(m.value || []).map(
551
- (S) => {
551
+ (G) => {
552
552
  var k, E;
553
- return ((E = (k = S.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
553
+ return ((E = (k = G.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
554
554
  }
555
555
  )
556
556
  )
557
557
  ));
558
- function K(S) {
558
+ function K(G) {
559
559
  const { showTicks: k } = h.value;
560
- return k === !1 ? "" : P.value(S);
560
+ return k === !1 ? "" : P.value(G);
561
561
  }
562
- function Q(S, k, E) {
563
- a("mouseenter", { index: A.value ? S : null, value: k, event: E });
562
+ function Q(G, k, E) {
563
+ a("mouseenter", { index: A.value ? G : null, value: k, event: E });
564
564
  }
565
- function F(S, k, E) {
566
- a("click", { index: S, value: k, event: E });
565
+ function F(G, k, E) {
566
+ a("click", { index: G, value: k, event: E });
567
567
  }
568
- function ue(S) {
568
+ function ue(G) {
569
569
  var k;
570
570
  if (!(!m.value || !m.value.length))
571
- return (k = m.value[S]) == null ? void 0 : k.ref;
571
+ return (k = m.value[G]) == null ? void 0 : k.ref;
572
572
  }
573
573
  function Le() {
574
574
  p.value = D.value.map(
575
- (S, k) => ({
576
- value: K(S),
577
- group: r.getTickGroupAttributes(S, k),
575
+ (G, k) => ({
576
+ value: K(G),
577
+ group: r.getTickGroupAttributes(G, k),
578
578
  ghost: r.getTickGhostAttributes(ue(k)),
579
579
  label: r.getTickLabelAttributes(),
580
580
  gridline: r.getGridLinesAttributes()
@@ -582,19 +582,19 @@ const Lt = /* @__PURE__ */ W({
582
582
  );
583
583
  }
584
584
  function ke() {
585
- p.value && p.value.map((S) => (S.gridline = r.getGridLinesAttributes(), S));
585
+ p.value && p.value.map((G) => (G.gridline = r.getGridLinesAttributes(), G));
586
586
  }
587
587
  function $e() {
588
588
  if (!u.value)
589
589
  return;
590
- const S = u.value.step ? "bandScale" : "linearScale", k = Xn[`${L.value}-${Qt[S]}`];
590
+ const G = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${Qt[G]}`];
591
591
  Object.entries(k(u, l, h) || []).forEach(
592
592
  ([E, _]) => {
593
593
  r[E] = _;
594
594
  }
595
595
  );
596
596
  }
597
- return U(u, $e, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (S) => a("lume__internal--axis-size", S)), U(o.containerSize, ke), _e(() => ze(g.value)), (S, k) => d(u) ? (y(), O("g", {
597
+ return U(u, $e, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (G) => a("lume__internal--axis-size", G)), U(o.containerSize, ke), _e(() => ze(g.value)), (G, k) => d(u) ? (y(), O("g", {
598
598
  key: 0,
599
599
  ref_key: "root",
600
600
  ref: g,
@@ -603,8 +603,8 @@ const Lt = /* @__PURE__ */ W({
603
603
  "data-j-axis": "",
604
604
  onMouseleave: k[1] || (k[1] = (E) => a("mouseleave", E))
605
605
  }, [
606
- L.value === "x" ? (y(), O("defs", Kn, Qn)) : Z("", !0),
607
- (y(!0), O(q, null, z(p.value, (E, _) => (y(), X(d(bt), j({
606
+ $.value === "x" ? (y(), O("defs", Yn, Jn)) : z("", !0),
607
+ (y(!0), O(q, null, W(p.value, (E, _) => (y(), X(d(bt), j({
608
608
  key: `${E.value}_${_}`,
609
609
  ref_for: !0,
610
610
  ref_key: "tickRefs",
@@ -623,11 +623,11 @@ const Lt = /* @__PURE__ */ W({
623
623
  p.value[d(i)].value,
624
624
  E
625
625
  ))
626
- }), null, 16)) : Z("", !0)
627
- ], 40, Yn)) : Z("", !0);
626
+ }), null, 16)) : z("", !0)
627
+ ], 40, Xn)) : z("", !0);
628
628
  }
629
629
  });
630
- function qn(e, n, t, o) {
630
+ function Qn(e, n, t, o) {
631
631
  const a = v(() => t.value > 0 && t.value < 1), u = v(
632
632
  () => o.value > 0 && o.value < 1
633
633
  ), l = v(
@@ -639,13 +639,13 @@ function qn(e, n, t, o) {
639
639
  );
640
640
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
641
641
  }
642
- function eo(e, n, t, o) {
643
- const a = G(0), u = G(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
642
+ function qn(e, n, t, o) {
643
+ const a = S(0), u = S(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
644
644
  return _e(() => {
645
645
  a.value = t.value, u.value = o.value;
646
646
  }), U(t, (i) => a.value = i), U(o, (i) => u.value = i), { computedWidth: a, computedHeight: u, transformOrigin: l };
647
647
  }
648
- const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
648
+ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
649
649
  __name: "lume-bar",
650
650
  props: {
651
651
  x: {
@@ -683,9 +683,9 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
683
683
  },
684
684
  emits: ["click", "mouseover", "mouseleave"],
685
685
  setup(e, { emit: n }) {
686
- const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = G(null), r = v(
686
+ const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = S(null), r = v(
687
687
  () => typeof s.value == "string" ? [s.value] : s.value
688
- ), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = eo(a, u, l, i), { computedX: b, computedY: L, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = qn(a, u, l, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
688
+ ), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = qn(a, u, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = Qn(a, u, l, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
689
689
  return _e(() => ze(f.value)), (P, w) => (y(), O("rect", {
690
690
  ref_key: "root",
691
691
  ref: f,
@@ -700,19 +700,19 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
700
700
  ]]),
701
701
  style: jt({ transformOrigin: d(D) }),
702
702
  x: d(b),
703
- y: d(L),
703
+ y: d($),
704
704
  width: x.value,
705
705
  height: N.value,
706
706
  "data-j-bar": "",
707
707
  onClick: w[0] || (w[0] = (H) => o("click", H)),
708
708
  onMouseover: w[1] || (w[1] = (H) => o("mouseover", H)),
709
709
  onMouseleave: w[2] || (w[2] = (H) => o("mouseleave", H))
710
- }, null, 46, to));
710
+ }, null, 46, eo));
711
711
  }
712
712
  });
713
- const mt = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-8e8f732a"]]);
714
- function oo() {
715
- const e = G(), n = Fe({
713
+ const ft = /* @__PURE__ */ ee(to, [["__scopeId", "data-v-8e8f732a"]]);
714
+ function no() {
715
+ const e = S(), n = Fe({
716
716
  dimensions: {}
717
717
  }), t = new ResizeObserver((o) => {
718
718
  o.forEach((a) => {
@@ -725,7 +725,7 @@ function oo() {
725
725
  t.unobserve(e.value);
726
726
  }), { resizeState: n, resizeRef: e };
727
727
  }
728
- const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
728
+ const oo = ["height"], ao = ["transform"], lo = /* @__PURE__ */ Z({
729
729
  __name: "lume-chart-container",
730
730
  props: {
731
731
  margins: {
@@ -747,7 +747,7 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
747
747
  },
748
748
  emits: ["click", "mouseenter", "mouseleave", "resize"],
749
749
  setup(e, { emit: n }) {
750
- const t = e, o = n, { margins: a, containerSize: u } = te(t), l = G(null), { resizeRef: i, resizeState: c } = oo(), s = v(
750
+ const t = e, o = n, { margins: a, containerSize: u } = te(t), l = S(null), { resizeRef: i, resizeState: c } = no(), s = v(
751
751
  () => u.value.height + a.value.top + a.value.bottom
752
752
  );
753
753
  return Ct(() => {
@@ -790,19 +790,19 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
790
790
  "data-j-chart-container__group": ""
791
791
  }, [
792
792
  M(f.$slots, "default", {}, void 0, !0)
793
- ], 8, lo)
794
- ], 42, ao)),
793
+ ], 8, ao)
794
+ ], 42, oo)),
795
795
  M(f.$slots, "footer", {}, void 0, !0),
796
796
  M(f.$slots, "extra", {}, void 0, !0)
797
797
  ], 2));
798
798
  }
799
799
  });
800
- const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["onClick", "onMouseenter"], so = /* @__PURE__ */ W({
800
+ const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-2c7d0302"]]), ro = ["onClick", "onMouseenter"], io = /* @__PURE__ */ Z({
801
801
  __name: "lume-chart-legend",
802
802
  props: {
803
803
  data: {
804
804
  type: Array,
805
- validator: xn,
805
+ validator: $n,
806
806
  required: !0
807
807
  }
808
808
  },
@@ -814,7 +814,7 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
814
814
  "data-j-chart-legend": "",
815
815
  onMouseleave: a[0] || (a[0] = (u) => t("mouseleave"))
816
816
  }, [
817
- (y(!0), O(q, null, z(e.data, (u, l) => (y(), O("div", {
817
+ (y(!0), O(q, null, W(e.data, (u, l) => (y(), O("div", {
818
818
  key: `legend-item-${l}`,
819
819
  class: "lume-chart-legend__item lume-typography--body",
820
820
  tabindex: "0",
@@ -827,42 +827,42 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
827
827
  "data-j-chart-legend__symbol": ""
828
828
  }, null, 2),
829
829
  ce(" " + oe(u.label || l), 1)
830
- ], 40, io))), 128))
830
+ ], 40, ro))), 128))
831
831
  ], 32));
832
832
  }
833
833
  });
834
- const $t = /* @__PURE__ */ ee(so, [["__scopeId", "data-v-f8ebd3b9"]]);
835
- const co = {}, vo = {
834
+ const $t = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-f8ebd3b9"]]);
835
+ const so = {}, co = {
836
836
  class: "lume-tooltip__title",
837
837
  "data-j-tooltip__title": ""
838
838
  };
839
- function mo(e, n) {
840
- return y(), O("div", vo, [
839
+ function vo(e, n) {
840
+ return y(), O("div", co, [
841
841
  M(e.$slots, "default", {}, void 0, !0)
842
842
  ]);
843
843
  }
844
- const fo = /* @__PURE__ */ ee(co, [["render", mo], ["__scopeId", "data-v-8af3fac6"]]);
845
- const po = {}, ho = {
844
+ const mo = /* @__PURE__ */ ee(so, [["render", vo], ["__scopeId", "data-v-8af3fac6"]]);
845
+ const fo = {}, po = {
846
846
  class: "lume-tooltip__item",
847
847
  "data-j-tooltip__summary-item": ""
848
- }, go = { class: "lume-tooltip__value" };
849
- function _o(e, n) {
850
- return y(), O("li", ho, [
848
+ }, ho = { class: "lume-tooltip__value" };
849
+ function go(e, n) {
850
+ return y(), O("li", po, [
851
851
  R("span", null, [
852
852
  M(e.$slots, "default", {}, void 0, !0)
853
853
  ]),
854
- R("strong", go, [
854
+ R("strong", ho, [
855
855
  M(e.$slots, "value", {}, void 0, !0)
856
856
  ])
857
857
  ]);
858
858
  }
859
- const yo = /* @__PURE__ */ ee(po, [["render", _o], ["__scopeId", "data-v-4ed7ec1b"]]), ko = {
859
+ const _o = /* @__PURE__ */ ee(fo, [["render", go], ["__scopeId", "data-v-4ed7ec1b"]]), yo = {
860
860
  class: "lume-tooltip__item",
861
861
  "data-j-tooltip__item": ""
862
- }, bo = { "data-j-tooltip__item__label": "" }, Ao = {
862
+ }, ko = { "data-j-tooltip__item__label": "" }, bo = {
863
863
  class: "lume-tooltip__value",
864
864
  "data-j-tooltip__item__value": ""
865
- }, To = /* @__PURE__ */ W({
865
+ }, Ao = /* @__PURE__ */ Z({
866
866
  __name: "lume-tooltip-item",
867
867
  props: {
868
868
  color: {
@@ -871,27 +871,27 @@ const yo = /* @__PURE__ */ ee(po, [["render", _o], ["__scopeId", "data-v-4ed7ec1
871
871
  }
872
872
  },
873
873
  setup(e) {
874
- return (n, t) => (y(), O("li", ko, [
874
+ return (n, t) => (y(), O("li", yo, [
875
875
  e.color ? (y(), O("span", {
876
876
  key: 0,
877
877
  class: ne([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
878
878
  "data-j-tooltip__item__symbol": ""
879
- }, null, 2)) : Z("", !0),
880
- R("span", bo, [
879
+ }, null, 2)) : z("", !0),
880
+ R("span", ko, [
881
881
  M(n.$slots, "label", {}, void 0, !0)
882
882
  ]),
883
- R("strong", Ao, [
883
+ R("strong", bo, [
884
884
  M(n.$slots, "value", {}, void 0, !0)
885
885
  ])
886
886
  ]));
887
887
  }
888
888
  });
889
- const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e) => (dn("data-v-e0426df7"), e = e(), vn(), e), xo = { class: "lume-tooltip__items" }, Oo = {
889
+ const To = /* @__PURE__ */ ee(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e) => (cn("data-v-cdc84374"), e = e(), dn(), e), $o = { class: "lume-tooltip__items" }, xo = {
890
890
  key: 0,
891
891
  class: "lume-tooltip__break"
892
- }, Io = /* @__PURE__ */ $o(() => /* @__PURE__ */ R("hr", null, null, -1)), wo = [
893
- Io
894
- ], Eo = /* @__PURE__ */ W({
892
+ }, Oo = /* @__PURE__ */ Lo(() => /* @__PURE__ */ R("hr", null, null, -1)), Io = [
893
+ Oo
894
+ ], wo = /* @__PURE__ */ Z({
895
895
  __name: "lume-tooltip",
896
896
  props: {
897
897
  opened: {
@@ -909,7 +909,7 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e)
909
909
  position: {
910
910
  type: String,
911
911
  default: "auto",
912
- validator: (e) => Cn.includes(e)
912
+ validator: (e) => Vn.includes(e)
913
913
  },
914
914
  fixedPositioning: {
915
915
  type: Boolean,
@@ -931,11 +931,11 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e)
931
931
  type: String,
932
932
  default: null
933
933
  },
934
- ...Se()
934
+ ...Ge()
935
935
  },
936
936
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
937
937
  setup(e, { emit: n }) {
938
- const t = e, o = n, a = G(null), { items: u, options: l } = te(t), i = re(), c = G(null), { allOptions: s } = fe(l), f = v(
938
+ const t = e, o = n, a = S(null), { items: u, options: l } = te(t), i = re(), c = S(null), { allOptions: s } = fe(l), f = v(
939
939
  () => s.value.fixedPositioning ?? t.fixedPositioning
940
940
  ), r = v(
941
941
  () => f.value ? "fixed" : "absolute"
@@ -954,35 +954,36 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e)
954
954
  ...t.modifiers || []
955
955
  ]), g = v(
956
956
  () => s.value.showTitle !== !1 && t.title != null
957
- ), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), L = v(
957
+ ), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), $ = v(
958
958
  () => {
959
959
  var P;
960
960
  return ((P = u.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
961
961
  label: s.value.summary ?? t.summary
962
962
  };
963
963
  }
964
- ), A = v(() => i.summary || L.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
964
+ ), A = v(() => i.summary || $.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
965
965
  function x() {
966
- t.targetElement && a.value && (c.value = yn(t.targetElement, a.value, {
966
+ t.targetElement && a.value && (c.value = _n(t.targetElement, a.value, {
967
967
  placement: t.position,
968
968
  strategy: r.value,
969
969
  modifiers: m.value
970
970
  }), o("opened", t.targetElement));
971
971
  }
972
972
  function N() {
973
- c.value && (c.value.destroy(), o("closed"), a.value.classList.remove("lume-tooltip--animated"));
973
+ c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
974
974
  }
975
975
  function D() {
976
- c.value && (s.value.withAnimation !== !1 && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
976
+ c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
977
977
  c.value.state.elements.reference = t.targetElement, c.value.update(), o("moved", t.targetElement);
978
978
  }() : N());
979
979
  }
980
980
  return U(
981
981
  () => t.targetElement,
982
- (P, w) => {
983
- !w && P ? x() : D();
982
+ async (P, w) => {
983
+ !w && P ? (await Qe(), x()) : D();
984
984
  }
985
- ), _e(x), Vt(N), (P, w) => sn((y(), O("div", {
985
+ ), _e(x), Vt(N), (P, w) => e.opened && e.targetElement ? (y(), O("div", {
986
+ key: 0,
986
987
  ref_key: "root",
987
988
  ref: a,
988
989
  class: ne(["lume-tooltip lume-typography--caption", {
@@ -994,33 +995,33 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e)
994
995
  }, [
995
996
  M(P.$slots, "default", {}, () => [
996
997
  M(P.$slots, "title", {}, () => [
997
- g.value ? (y(), X(d(fo), { key: 0 }, {
998
+ g.value ? (y(), X(d(mo), { key: 0 }, {
998
999
  default: C(() => [
999
1000
  ce(oe(b.value(e.title)), 1)
1000
1001
  ]),
1001
1002
  _: 1
1002
- })) : Z("", !0)
1003
+ })) : z("", !0)
1003
1004
  ], !0),
1004
- R("ul", xo, [
1005
+ R("ul", $o, [
1005
1006
  M(P.$slots, "summary", {}, () => [
1006
- A.value ? (y(), X(d(yo), { key: 0 }, de({
1007
+ A.value ? (y(), X(d(_o), { key: 0 }, de({
1007
1008
  default: C(() => [
1008
- ce(oe(L.value.label) + " ", 1)
1009
+ ce(oe($.value.label) + " ", 1)
1009
1010
  ]),
1010
1011
  _: 2
1011
1012
  }, [
1012
- L.value.value ? {
1013
+ $.value.value ? {
1013
1014
  name: "value",
1014
1015
  fn: C(() => [
1015
- ce(oe(p.value(L.value.value)), 1)
1016
+ ce(oe(p.value($.value.value)), 1)
1016
1017
  ]),
1017
1018
  key: "0"
1018
1019
  } : void 0
1019
- ]), 1024)) : Z("", !0)
1020
+ ]), 1024)) : z("", !0)
1020
1021
  ], !0),
1021
- A.value ? (y(), O("li", Oo, wo)) : Z("", !0),
1022
+ A.value ? (y(), O("li", xo, Io)) : z("", !0),
1022
1023
  M(P.$slots, "items", {}, () => [
1023
- (y(!0), O(q, null, z(h.value, (H) => (y(), X(d(Lo), {
1024
+ (y(!0), O(q, null, W(h.value, (H) => (y(), X(d(To), {
1024
1025
  key: H.label,
1025
1026
  color: H.color
1026
1027
  }, {
@@ -1035,37 +1036,35 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), $o = (e)
1035
1036
  ], !0)
1036
1037
  ])
1037
1038
  ], !0)
1038
- ], 34)), [
1039
- [cn, e.opened && e.targetElement]
1040
- ]);
1039
+ ], 34)) : z("", !0);
1041
1040
  }
1042
1041
  });
1043
- const No = /* @__PURE__ */ ee(Eo, [["__scopeId", "data-v-e0426df7"]]);
1042
+ const Eo = /* @__PURE__ */ ee(wo, [["__scopeId", "data-v-cdc84374"]]);
1044
1043
  var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {});
1045
- const Do = be.Categorical, Re = se.Skyblue, Ho = ct.SkyTeal;
1046
- function Bo(e) {
1047
- return e === be.Divergent ? Ho : Re;
1044
+ const No = be.Categorical, Re = se.Skyblue, Do = dt.SkyTeal;
1045
+ function Ho(e) {
1046
+ return e === be.Divergent ? Do : Re;
1048
1047
  }
1049
- function Mo(e) {
1050
- return Object.values(vt).includes(e);
1048
+ function Bo(e) {
1049
+ return Object.values(mt).includes(e);
1051
1050
  }
1052
1051
  function xt(e, n) {
1053
- return n === be.Divergent ? Object.values(ct).includes(e) : Object.values({
1052
+ return n === be.Divergent ? Object.values(dt).includes(e) : Object.values({
1054
1053
  ...se,
1055
1054
  ...Zt,
1056
- ...dt,
1057
- ...vt
1055
+ ...vt,
1056
+ ...mt
1058
1057
  }).includes(e);
1059
1058
  }
1060
- function So(e, n) {
1059
+ function Mo(e, n) {
1061
1060
  const t = Object.values(se).indexOf(e);
1062
- return Hn(Object.values(se), t > -1 ? t : 0)[n];
1061
+ return Dn(Object.values(se), t > -1 ? t : 0)[n];
1063
1062
  }
1064
1063
  function Go(e, n) {
1065
1064
  const t = 50 + n * 10;
1066
1065
  return `${e}-${t}`;
1067
1066
  }
1068
- function Ro(e, n) {
1067
+ function So(e, n) {
1069
1068
  const t = (n + 1) * 10;
1070
1069
  return `${e}-${t}`;
1071
1070
  }
@@ -1073,23 +1072,23 @@ function Ot(e, n, t) {
1073
1072
  switch (n) {
1074
1073
  default:
1075
1074
  case be.Categorical:
1076
- return Mo(e) ? e : So(e, t);
1075
+ return Bo(e) ? e : Mo(e, t);
1077
1076
  case be.Sequential:
1078
1077
  return Go(e, t);
1079
1078
  case be.Divergent:
1080
- return Ro(e, t);
1079
+ return So(e, t);
1081
1080
  }
1082
1081
  }
1083
- function jo(e, n, t = Do, o) {
1084
- return xt(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), xt(n, t) ? Ot(n, t, o) : Ot(Bo(t), t, o));
1082
+ function Ro(e, n, t = No, o) {
1083
+ return xt(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), xt(n, t) ? Ot(n, t, o) : Ot(Ho(t), t, o));
1085
1084
  }
1086
- function Vo(e) {
1087
- return e.map((n) => On(n) ? n : { value: n });
1085
+ function jo(e) {
1086
+ return e.map((n) => xn(n) ? n : { value: n });
1088
1087
  }
1089
- function Co(e) {
1088
+ function Vo(e) {
1090
1089
  return e.__internal === !0;
1091
1090
  }
1092
- const ft = (e = null) => ({
1091
+ const pt = (e = null) => ({
1093
1092
  data: {
1094
1093
  type: Array,
1095
1094
  required: !0,
@@ -1108,17 +1107,17 @@ const ft = (e = null) => ({
1108
1107
  default: null
1109
1108
  }
1110
1109
  });
1111
- function pt(e, n, t, o, a) {
1110
+ function ht(e, n, t, o, a) {
1112
1111
  const u = Fe({
1113
1112
  width: 0,
1114
1113
  height: 0
1115
- }), l = Mn(12), i = v(() => {
1114
+ }), l = Bn(12), i = v(() => {
1116
1115
  var f;
1117
1116
  return e.value.length > 5 && ge(me.DatasetLength), (f = e.value) == null ? void 0 : f.map(
1118
1117
  (r, m) => {
1119
- if (Co(r))
1118
+ if (Vo(r))
1120
1119
  return r;
1121
- const g = Vo(r.values), p = jo(
1120
+ const g = jo(r.values), p = Ro(
1122
1121
  r.color,
1123
1122
  t == null ? void 0 : t.value,
1124
1123
  o == null ? void 0 : o.value.colorPalette,
@@ -1145,7 +1144,7 @@ function pt(e, n, t, o, a) {
1145
1144
  updateSize: s
1146
1145
  };
1147
1146
  }
1148
- const Po = () => ({
1147
+ const Co = () => ({
1149
1148
  xScale: {
1150
1149
  type: Function,
1151
1150
  default: null
@@ -1155,8 +1154,8 @@ const Po = () => ({
1155
1154
  default: null
1156
1155
  }
1157
1156
  });
1158
- function Fo(e, n, t, o, a) {
1159
- const u = G(null), l = G(null);
1157
+ function Po(e, n, t, o, a) {
1158
+ const u = S(null), l = S(null);
1160
1159
  function i() {
1161
1160
  var f, r, m, g;
1162
1161
  const { width: c, height: s } = t;
@@ -1201,7 +1200,7 @@ function wt(e, n, t, o) {
1201
1200
  function Et(e) {
1202
1201
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
1203
1202
  }
1204
- function et(e, n) {
1203
+ function tt(e, n) {
1205
1204
  return ve(e) ? e.bandwidth() / 2 + e(e.domain()[n]) : e(n);
1206
1205
  }
1207
1206
  function Nt(e, n, {
@@ -1216,9 +1215,9 @@ function en(e) {
1216
1215
  return Object.values(B).includes(e);
1217
1216
  }
1218
1217
  const Ee = (e, n = !0) => ({
1219
- ...ft(e),
1220
- ...Po(),
1221
- ...Se(),
1218
+ ...pt(e),
1219
+ ...Co(),
1220
+ ...Ge(),
1222
1221
  classList: {
1223
1222
  type: [String, Array],
1224
1223
  default: () => []
@@ -1234,9 +1233,9 @@ const Ee = (e, n = !0) => ({
1234
1233
  validator: en
1235
1234
  }
1236
1235
  } : {}
1237
- }), zo = (e) => ({
1238
- ...ft(e),
1239
- ...Se(),
1236
+ }), Fo = (e) => ({
1237
+ ...pt(e),
1238
+ ...Ge(),
1240
1239
  hoveredElement: {
1241
1240
  type: [Number, String],
1242
1241
  default: null
@@ -1283,7 +1282,7 @@ const Ee = (e, n = !0) => ({
1283
1282
  type: [String, Array],
1284
1283
  default: () => []
1285
1284
  }
1286
- }), Wo = { class: "lume-overlay-group" }, Zo = /* @__PURE__ */ W({
1285
+ }), zo = { class: "lume-overlay-group" }, Wo = /* @__PURE__ */ Z({
1287
1286
  __name: "lume-overlay-group",
1288
1287
  props: {
1289
1288
  ...We(),
@@ -1297,19 +1296,19 @@ const Ee = (e, n = !0) => ({
1297
1296
  const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = te(t), c = v(() => Wt(a));
1298
1297
  function s(f) {
1299
1298
  var A;
1300
- const r = u.value === B.HORIZONTAL ? i.value : l.value, m = r.domain(), g = In(r), p = ((A = r.paddingInner) == null ? void 0 : A.call(r)) ?? 0, b = g * p, L = ve(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
1299
+ const r = u.value === B.HORIZONTAL ? i.value : l.value, m = r.domain(), g = On(r), p = ((A = r.paddingInner) == null ? void 0 : A.call(r)) ?? 0, b = g * p, $ = ve(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
1301
1300
  return u.value === B.HORIZONTAL ? {
1302
1301
  width: Math.max(...l.value.range()),
1303
1302
  height: g,
1304
- transform: `translate(0, ${L})`
1303
+ transform: `translate(0, ${$})`
1305
1304
  } : {
1306
1305
  width: g,
1307
1306
  height: Math.max(...i.value.range()),
1308
- transform: `translate(${L}, 0)`
1307
+ transform: `translate(${$}, 0)`
1309
1308
  };
1310
1309
  }
1311
- return (f, r) => (y(), O("g", Wo, [
1312
- (y(!0), O(q, null, z(c.value, (m, g) => (y(), X(d(mt), j(s(g), {
1310
+ return (f, r) => (y(), O("g", zo, [
1311
+ (y(!0), O(q, null, W(c.value, (m, g) => (y(), X(d(ft), j(s(g), {
1313
1312
  key: `overlay-${g}`,
1314
1313
  "data-j-lume-overlay-group": g,
1315
1314
  transition: !1,
@@ -1326,12 +1325,12 @@ const Ee = (e, n = !0) => ({
1326
1325
  }
1327
1326
  return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
1328
1327
  };
1329
- function Uo(e) {
1328
+ function Zo(e) {
1330
1329
  return { hasNegativeValues: v(
1331
1330
  () => Ft(e.value).some((t) => t < 0)
1332
1331
  ) };
1333
1332
  }
1334
- function Xo(e, n, t, o) {
1333
+ function Uo(e, n, t, o) {
1335
1334
  const a = v(
1336
1335
  () => o.value === B.HORIZONTAL
1337
1336
  ), u = v(
@@ -1356,13 +1355,13 @@ function Xo(e, n, t, o) {
1356
1355
  transform: i.value
1357
1356
  })) };
1358
1357
  }
1359
- function Yo(e, n) {
1360
- return e.reduce((t, o) => st(o.values, n).map(
1358
+ function Xo(e, n) {
1359
+ return e.reduce((t, o) => ct(o.values, n).map(
1361
1360
  (a, u) => t[u] ? a.value > t[u] ? a.value : t[u] : a.value ?? 0
1362
1361
  ), []);
1363
1362
  }
1364
- function Ko(e, n) {
1365
- return e.reduce((t, o) => st(o.values, n).map(
1363
+ function Yo(e, n) {
1364
+ return e.reduce((t, o) => ct(o.values, n).map(
1366
1365
  (a, u) => {
1367
1366
  const l = a.value == null || a.value < 0 ? 0 : a.value;
1368
1367
  return t[u] ? t[u] + l : l;
@@ -1370,7 +1369,7 @@ function Ko(e, n) {
1370
1369
  ), []);
1371
1370
  }
1372
1371
  const Dt = {
1373
- "stacked-bar": Ko
1372
+ "stacked-bar": Yo
1374
1373
  };
1375
1374
  function tn(e, n, t, o, a, u, l, i) {
1376
1375
  const c = v(
@@ -1384,10 +1383,10 @@ function tn(e, n, t, o, a, u, l, i) {
1384
1383
  const r = ((g = a == null ? void 0 : a.value) == null ? void 0 : g.length) ?? 0, m = i != null && i.value && Dt[i.value] ? Dt[i.value](
1385
1384
  f,
1386
1385
  r
1387
- ) : Yo(f, r);
1386
+ ) : Xo(f, r);
1388
1387
  e.value = m.map((p, b) => ({
1389
- cx: (u == null ? void 0 : u.value) === B.HORIZONTAL ? t.value(p) : et(t.value, b),
1390
- cy: (u == null ? void 0 : u.value) === B.HORIZONTAL ? et(o.value, b) : o.value(p)
1388
+ cx: (u == null ? void 0 : u.value) === B.HORIZONTAL ? t.value(p) : tt(t.value, b),
1389
+ cy: (u == null ? void 0 : u.value) === B.HORIZONTAL ? tt(o.value, b) : o.value(p)
1391
1390
  }));
1392
1391
  }
1393
1392
  return U(
@@ -1398,7 +1397,7 @@ function tn(e, n, t, o, a, u, l, i) {
1398
1397
  { immediate: !0 }
1399
1398
  ), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
1400
1399
  }
1401
- function Jo() {
1400
+ function Ko() {
1402
1401
  const e = Fe({
1403
1402
  opened: !1,
1404
1403
  targetElement: null
@@ -1409,7 +1408,7 @@ function Jo() {
1409
1408
  e.opened = !1, e.targetElement = null;
1410
1409
  } };
1411
1410
  }
1412
- function Qo(e) {
1411
+ function Jo(e) {
1413
1412
  return { getTooltipItems: v(
1414
1413
  () => (t) => e.value.map(({ color: o, label: a, values: u }) => {
1415
1414
  var l, i, c;
@@ -1421,42 +1420,42 @@ function Qo(e) {
1421
1420
  })
1422
1421
  ) };
1423
1422
  }
1424
- const tt = 16, nt = 8, ot = 28, at = 24, Ae = {
1423
+ const nt = 16, ot = 8, at = 28, lt = 24, Ae = {
1425
1424
  VERTICAL: {
1426
- top: tt,
1427
- right: nt,
1428
- bottom: ot,
1429
- left: at
1425
+ top: nt,
1426
+ right: ot,
1427
+ bottom: at,
1428
+ left: lt
1430
1429
  },
1431
1430
  HORIZONTAL: {
1432
- top: tt,
1433
- right: nt,
1434
- bottom: ot,
1435
- left: at
1431
+ top: nt,
1432
+ right: ot,
1433
+ bottom: at,
1434
+ left: lt
1436
1435
  }
1437
1436
  };
1437
+ function Qo(e) {
1438
+ return !e || e === "auto" || e.top == null || e.top === "auto" ? nt : e.top;
1439
+ }
1438
1440
  function qo(e) {
1439
- return !e || e === "auto" || e.top == null || e.top === "auto" ? tt : e.top;
1441
+ return !e || e === "auto" || e.right == null || e.right === "auto" ? ot : e.right;
1440
1442
  }
1441
- function ea(e) {
1442
- return !e || e === "auto" || e.right == null || e.right === "auto" ? nt : e.right;
1443
+ function ea(e, n) {
1444
+ return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || at : e.bottom;
1443
1445
  }
1444
1446
  function ta(e, n) {
1445
- return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || ot : e.bottom;
1446
- }
1447
- function na(e, n) {
1448
- return !e || e === "auto" || e.left == null || e.left === "auto" ? n || at : e.left;
1447
+ return !e || e === "auto" || e.left == null || e.left === "auto" ? n || lt : e.left;
1449
1448
  }
1450
- const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-section" }, la = {
1449
+ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-section" }, aa = {
1451
1450
  key: 0,
1452
1451
  class: "lume-chart__title lume-chart-title lume-typography--display"
1453
- }, ua = { class: "lume-chart__controls" }, ra = { class: "lume-chart__header-section" }, ia = {
1452
+ }, la = { class: "lume-chart__controls" }, ua = { class: "lume-chart__header-section" }, ra = {
1454
1453
  key: 0,
1455
1454
  class: "lume-chart__axis-title lume-axis-title lume-typography--body"
1456
- }, sa = { key: 3 }, ca = ["r"], da = {
1455
+ }, ia = { key: 3 }, sa = ["r"], ca = {
1457
1456
  key: 0,
1458
1457
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1459
- }, va = /* @__PURE__ */ W({
1458
+ }, da = /* @__PURE__ */ Z({
1460
1459
  __name: "lume-chart",
1461
1460
  props: {
1462
1461
  ...Ee(),
@@ -1466,23 +1465,23 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1466
1465
  }
1467
1466
  },
1468
1467
  setup(e, { emit: n }) {
1469
- const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = G(-1), m = G(null), g = G(null), p = G([]), b = G(null), L = G(0), A = G(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = pt(u, l, i, h, s), { xScale: H, yScale: Y } = Fo(
1468
+ const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = S(-1), m = S(null), g = S(null), p = S([]), b = S(null), $ = S(0), A = S(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, h, s), { xScale: H, yScale: Y } = Po(
1470
1469
  x,
1471
1470
  N,
1472
1471
  D,
1473
1472
  s,
1474
1473
  h
1475
1474
  ), K = v(() => ({
1476
- top: qo(h.value.margins),
1477
- right: ea(h.value.margins),
1478
- bottom: ta(h.value.margins, L.value),
1479
- left: na(h.value.margins, A.value)
1475
+ top: Qo(h.value.margins),
1476
+ right: qo(h.value.margins),
1477
+ bottom: ea(h.value.margins, $.value),
1478
+ left: ta(h.value.margins, A.value)
1480
1479
  })), Q = v(() => {
1481
- var $;
1482
- return t.xScale ? Et(t.xScale) ? t.xScale : ($ = t.xScale) == null ? void 0 : $.call(t, x.value, l.value, D) : H.value;
1480
+ var T;
1481
+ return t.xScale ? Et(t.xScale) ? t.xScale : (T = t.xScale) == null ? void 0 : T.call(t, x.value, l.value, D) : H.value;
1483
1482
  }), F = v(() => {
1484
- var $;
1485
- return t.yScale ? Et(t.yScale) ? t.yScale : ($ = t.yScale) == null ? void 0 : $.call(t, x.value, l.value, D) : Y.value;
1483
+ var T;
1484
+ return t.yScale ? Et(t.yScale) ? t.yScale : (T = t.yScale) == null ? void 0 : T.call(t, x.value, l.value, D) : Y.value;
1486
1485
  }), ue = v(() => ({
1487
1486
  ...h.value.xAxisOptions,
1488
1487
  withHover: s.value === B.VERTICAL
@@ -1490,23 +1489,23 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1490
1489
  ...h.value.yAxisOptions,
1491
1490
  withHover: s.value === B.HORIZONTAL
1492
1491
  })), ke = v(() => {
1493
- var $;
1494
- return ($ = h.value.xAxisOptions) == null ? void 0 : $.title;
1492
+ var T;
1493
+ return (T = h.value.xAxisOptions) == null ? void 0 : T.title;
1495
1494
  }), $e = v(() => {
1496
- var $;
1497
- return ($ = h.value.yAxisOptions) == null ? void 0 : $.title;
1498
- }), S = v(() => {
1499
- var $;
1500
- return (($ = h.value.xAxisOptions) == null ? void 0 : $.withTitle) !== !1 && ke.value;
1495
+ var T;
1496
+ return (T = h.value.yAxisOptions) == null ? void 0 : T.title;
1497
+ }), G = v(() => {
1498
+ var T;
1499
+ return ((T = h.value.xAxisOptions) == null ? void 0 : T.withTitle) !== !1 && ke.value;
1501
1500
  }), k = v(() => {
1502
- var $;
1503
- return (($ = h.value.yAxisOptions) == null ? void 0 : $.withTitle) !== !1 && $e.value;
1501
+ var T;
1502
+ return ((T = h.value.yAxisOptions) == null ? void 0 : T.withTitle) !== !1 && $e.value;
1504
1503
  }), E = v(
1505
- () => u.value.every(($) => !$.values.length)
1504
+ () => u.value.every((T) => !T.values.length)
1506
1505
  ), _ = v(() => {
1507
- const $ = [], { noBaseScales: T } = h.value;
1508
- return !T && !E.value && $.push(() => !!(Q.value && F.value)), $.every((I) => I() === !0);
1509
- }), { hasNegativeValues: V } = Uo(x), { negativeBarAttributes: J } = Xo(
1506
+ const T = [], { noBaseScales: L } = h.value;
1507
+ return !L && !E.value && T.push(() => !!(Q.value && F.value)), T.every((I) => I() === !0);
1508
+ }), { hasNegativeValues: V } = Zo(x), { negativeBarAttributes: J } = Uo(
1510
1509
  D,
1511
1510
  Q,
1512
1511
  F,
@@ -1520,67 +1519,70 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1520
1519
  s,
1521
1520
  x,
1522
1521
  f
1523
- ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Jo(), { getTooltipItems: xe } = Qo(x), He = v(
1522
+ ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Ko(), { getTooltipItems: xe } = Jo(x), He = v(
1524
1523
  () => {
1525
- var $;
1526
- return (($ = h.value.tooltipOptions) == null ? void 0 : $.position) || "top";
1524
+ var T;
1525
+ return ((T = h.value.tooltipOptions) == null ? void 0 : T.position) || "top";
1527
1526
  }
1528
1527
  ), Oe = v(() => {
1529
- var T;
1530
- const $ = (T = h.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1531
- return De.opened && (!$ || $ && b.value === !1);
1528
+ var L;
1529
+ const T = (L = h.value.tooltipOptions) == null ? void 0 : L.withPointerEvents;
1530
+ return De.opened && (!T || T && b.value === !1);
1532
1531
  });
1533
- function je($) {
1532
+ function je(T) {
1534
1533
  var I;
1535
- if ($ === r.value)
1534
+ if (T === r.value)
1536
1535
  return;
1537
- const T = r.value;
1538
- if (h.value.withHover !== !1 && (r.value = $), h.value.withTooltip !== !1) {
1539
- const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[$];
1536
+ const L = r.value;
1537
+ if (h.value.withHover !== !1 && (r.value = T), h.value.withTooltip !== !1) {
1538
+ const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[T];
1540
1539
  Ze(Ye);
1541
1540
  }
1542
- a("hovered-index-changed", { newIndex: $, oldIndex: T }), a("update:hoveredIndex", $);
1541
+ a("hovered-index-changed", { newIndex: T, oldIndex: L }), a("update:hoveredIndex", T);
1543
1542
  }
1544
1543
  function Xe() {
1545
1544
  Ue(), r.value = -1, a("update:hoveredIndex", -1);
1546
1545
  }
1547
- function gt($) {
1546
+ function _t(T) {
1548
1547
  if (!u.value.some(
1549
- ({ values: I }) => $ <= I.length - 1
1548
+ ({ values: I }) => T <= I.length - 1
1550
1549
  )) {
1551
1550
  ge(me.InvalidHoveredIndex);
1552
1551
  return;
1553
1552
  }
1554
- $ == null || $ === -1 ? Xe() : je($);
1553
+ T == null || T === -1 ? Xe() : je(T);
1555
1554
  }
1556
1555
  function rn() {
1557
1556
  setTimeout(() => {
1558
1557
  Oe.value && Xe(), a("chart-mouseleave");
1559
1558
  }, 0);
1560
1559
  }
1561
- function _t({ index: $, value: T, event: I }) {
1562
- $ !== null && je($), a("axis-mouseenter", { index: $, value: T, event: I });
1560
+ function sn(T) {
1561
+ P(T), a("resize", T);
1563
1562
  }
1564
- function yt({ index: $, value: T, event: I }) {
1565
- a("axis-click", { index: $, value: T, event: I });
1563
+ function yt({ index: T, value: L, event: I }) {
1564
+ T !== null && je(T), a("axis-mouseenter", { index: T, value: L, event: I });
1565
+ }
1566
+ function kt({ index: T, value: L, event: I }) {
1567
+ a("axis-click", { index: T, value: L, event: I });
1566
1568
  }
1567
1569
  return U(
1568
1570
  u,
1569
- ($, T) => a("data-changed", { newValue: $, oldValue: T })
1571
+ (T, L) => a("data-changed", { newValue: T, oldValue: L })
1570
1572
  ), U(
1571
1573
  l,
1572
- ($, T) => a("labels-changed", { newValue: $, oldValue: T })
1573
- ), U(E, ($) => $ && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, gt), U(
1574
+ (T, L) => a("labels-changed", { newValue: T, oldValue: L })
1575
+ ), U(E, (T) => T && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, _t), U(
1574
1576
  p,
1575
- ($) => {
1576
- $ && t.hoveredIndex != null && r.value === -1 && gt(t.hoveredIndex);
1577
+ (T) => {
1578
+ T && t.hoveredIndex != null && r.value === -1 && _t(t.hoveredIndex);
1577
1579
  },
1578
1580
  { flush: "post" }
1579
- ), U(b, ($) => {
1580
- $ === !1 && De.opened && Xe();
1581
+ ), U(b, (T) => {
1582
+ T === !1 && De.opened && Xe();
1581
1583
  }), _e(async () => {
1582
1584
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1583
- }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), ($, T) => (y(), X(d(ro), {
1585
+ }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (T, L) => (y(), X(d(uo), {
1584
1586
  id: `lume-chart_${d(w)}`,
1585
1587
  ref_key: "chartContainer",
1586
1588
  ref: g,
@@ -1589,49 +1591,49 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1589
1591
  "no-min-size": d(h).noMinSize,
1590
1592
  "transparent-background": d(h).transparentBackground,
1591
1593
  "data-j-lume-chart": "",
1592
- onResize: d(P),
1593
- onClick: T[24] || (T[24] = (I) => a("chart-click", I)),
1594
- onMouseenter: T[25] || (T[25] = (I) => a("chart-mouseenter", I)),
1594
+ onResize: sn,
1595
+ onClick: L[24] || (L[24] = (I) => a("chart-click", I)),
1596
+ onMouseenter: L[25] || (L[25] = (I) => a("chart-mouseenter", I)),
1595
1597
  onMouseleave: rn
1596
1598
  }, {
1597
1599
  header: C(() => [
1598
- R("div", oa, [
1599
- R("div", aa, [
1600
- $.title ? (y(), O("h1", la, oe($.title), 1)) : Z("", !0),
1601
- R("div", ua, [
1602
- M($.$slots, "controls", {}, void 0, !0)
1600
+ R("div", na, [
1601
+ R("div", oa, [
1602
+ T.title ? (y(), O("h1", aa, oe(T.title), 1)) : z("", !0),
1603
+ R("div", la, [
1604
+ M(T.$slots, "controls", {}, void 0, !0)
1603
1605
  ])
1604
1606
  ]),
1605
- R("div", ra, [
1606
- k.value ? (y(), O("h3", ia, oe($e.value), 1)) : Z("", !0),
1607
- M($.$slots, "legend", { data: d(x) }, () => [
1607
+ R("div", ua, [
1608
+ k.value ? (y(), O("h3", ra, oe($e.value), 1)) : z("", !0),
1609
+ M(T.$slots, "legend", { data: d(x) }, () => [
1608
1610
  d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d($t), {
1609
1611
  key: 0,
1610
1612
  data: d(x),
1611
1613
  class: "lume-chart__legend",
1612
1614
  "data-j-lume-chart__legend": "",
1613
- onClick: T[0] || (T[0] = (I) => a("legend-click", I)),
1614
- onMouseenter: T[1] || (T[1] = (I) => a("legend-mouseenter", I)),
1615
- onMouseleave: T[2] || (T[2] = (I) => a("legend-mouseleave"))
1616
- }, null, 8, ["data"])) : Z("", !0)
1615
+ onClick: L[0] || (L[0] = (I) => a("legend-click", I)),
1616
+ onMouseenter: L[1] || (L[1] = (I) => a("legend-mouseenter", I)),
1617
+ onMouseleave: L[2] || (L[2] = (I) => a("legend-mouseleave"))
1618
+ }, null, 8, ["data"])) : z("", !0)
1617
1619
  ], !0)
1618
1620
  ])
1619
1621
  ])
1620
1622
  ]),
1621
1623
  footer: C(() => [
1622
- S.value ? (y(), O("h3", da, oe(ke.value), 1)) : Z("", !0),
1624
+ G.value ? (y(), O("h3", ca, oe(ke.value), 1)) : z("", !0),
1623
1625
  d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d($t), {
1624
1626
  key: 1,
1625
1627
  data: d(x),
1626
1628
  class: "lume-chart__legend lume-chart__legend--bottom",
1627
1629
  "data-j-lume-chart__legend": "",
1628
- onClick: T[16] || (T[16] = (I) => a("legend-click", I)),
1629
- onMouseenter: T[17] || (T[17] = (I) => a("legend-mouseenter", I)),
1630
- onMouseleave: T[18] || (T[18] = (I) => a("legend-mouseleave"))
1631
- }, null, 8, ["data"])) : Z("", !0)
1630
+ onClick: L[16] || (L[16] = (I) => a("legend-click", I)),
1631
+ onMouseenter: L[17] || (L[17] = (I) => a("legend-mouseenter", I)),
1632
+ onMouseleave: L[18] || (L[18] = (I) => a("legend-mouseleave"))
1633
+ }, null, 8, ["data"])) : z("", !0)
1632
1634
  ]),
1633
1635
  extra: C(() => [
1634
- M($.$slots, "tooltip", j(d(De), {
1636
+ M(T.$slots, "tooltip", j(d(De), {
1635
1637
  data: d(x),
1636
1638
  labels: d(N),
1637
1639
  title: d(N)[r.value],
@@ -1643,43 +1645,43 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1643
1645
  handleMouseLeave: () => b.value = !1,
1644
1646
  options: d(h).tooltipOptions
1645
1647
  }), () => [
1646
- d(h).withTooltip !== !1 ? (y(), X(d(No), j({ key: 0 }, d(De), {
1648
+ d(h).withTooltip !== !1 ? (y(), X(d(Eo), j({ key: 0 }, d(De), {
1647
1649
  position: He.value,
1648
1650
  title: d(N)[r.value],
1649
1651
  items: d(xe)(r.value),
1650
1652
  options: d(h).tooltipOptions,
1651
1653
  "data-j-lume-chart__tooltip": "",
1652
- onOpened: T[19] || (T[19] = (I) => a("tooltip-opened", {
1654
+ onOpened: L[19] || (L[19] = (I) => a("tooltip-opened", {
1653
1655
  index: r.value,
1654
1656
  targetElement: I
1655
1657
  })),
1656
- onMoved: T[20] || (T[20] = (I) => a("tooltip-moved", {
1658
+ onMoved: L[20] || (L[20] = (I) => a("tooltip-moved", {
1657
1659
  index: r.value,
1658
1660
  targetElement: I
1659
1661
  })),
1660
- onClosed: T[21] || (T[21] = (I) => a("tooltip-closed")),
1661
- onTooltipMouseenter: T[22] || (T[22] = (I) => b.value = !0),
1662
- onTooltipMouseleave: T[23] || (T[23] = (I) => b.value = !1)
1662
+ onClosed: L[21] || (L[21] = (I) => a("tooltip-closed")),
1663
+ onTooltipMouseenter: L[22] || (L[22] = (I) => b.value = !0),
1664
+ onTooltipMouseleave: L[23] || (L[23] = (I) => b.value = !1)
1663
1665
  }), {
1664
1666
  default: C(() => [
1665
- M($.$slots, "tooltip-content", {
1667
+ M(T.$slots, "tooltip-content", {
1666
1668
  data: d(x),
1667
1669
  labels: d(N),
1668
1670
  hoveredIndex: r.value
1669
1671
  }, void 0, !0)
1670
1672
  ]),
1671
1673
  _: 3
1672
- }, 16, ["position", "title", "items", "options"])) : Z("", !0)
1674
+ }, 16, ["position", "title", "items", "options"])) : z("", !0)
1673
1675
  ], !0)
1674
1676
  ]),
1675
1677
  default: C(() => [
1676
1678
  _.value ? (y(), O(q, { key: 0 }, [
1677
- d(V) ? (y(), X(d(mt), j({ key: 0 }, d(J), {
1679
+ d(V) ? (y(), X(d(ft), j({ key: 0 }, d(J), {
1678
1680
  "class-list": "lume-fill--negative",
1679
1681
  transition: !1,
1680
1682
  "data-j-lume-chart__negative-values": ""
1681
- }), null, 16)) : Z("", !0),
1682
- d(h).withAxes !== !1 ? M($.$slots, "axes", {
1683
+ }), null, 16)) : z("", !0),
1684
+ d(h).withAxes !== !1 ? M(T.$slots, "axes", {
1683
1685
  key: 1,
1684
1686
  xScale: Q.value,
1685
1687
  yScale: F.value,
@@ -1695,10 +1697,10 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1695
1697
  "hovered-index": r.value,
1696
1698
  orientation: d(s),
1697
1699
  "data-j-lume-chart__x-axis": "",
1698
- onClick: yt,
1699
- onMouseenter: _t,
1700
- onMouseleave: T[3] || (T[3] = (I) => a("axis-mouseleave")),
1701
- "onLume__internal-AxisSize": T[4] || (T[4] = (I) => L.value = I)
1700
+ onClick: kt,
1701
+ onMouseenter: yt,
1702
+ onMouseleave: L[3] || (L[3] = (I) => a("axis-mouseleave")),
1703
+ "onLume__internal-AxisSize": L[4] || (L[4] = (I) => $.value = I)
1702
1704
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1703
1705
  ie(d(Lt), {
1704
1706
  type: "y",
@@ -1708,13 +1710,13 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1708
1710
  "hovered-index": r.value,
1709
1711
  orientation: d(s),
1710
1712
  "data-j-lume-chart__y-axis": "",
1711
- onClick: yt,
1712
- onMouseenter: _t,
1713
- onMouseleave: T[5] || (T[5] = (I) => a("axis-mouseleave")),
1714
- "onLume__internal-AxisSize": T[6] || (T[6] = (I) => A.value = I)
1713
+ onClick: kt,
1714
+ onMouseenter: yt,
1715
+ onMouseleave: L[5] || (L[5] = (I) => a("axis-mouseleave")),
1716
+ "onLume__internal-AxisSize": L[6] || (L[6] = (I) => A.value = I)
1715
1717
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1716
- ], !0) : Z("", !0),
1717
- d(h).withHover !== !1 ? (y(), X(d(Zo), {
1718
+ ], !0) : z("", !0),
1719
+ d(h).withHover !== !1 ? (y(), X(d(Wo), {
1718
1720
  key: 2,
1719
1721
  data: d(x),
1720
1722
  orientation: d(s),
@@ -1722,18 +1724,18 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1722
1724
  "y-scale": F.value,
1723
1725
  "data-j-lume-chart__overlay-group": "",
1724
1726
  "onLume__internal-Hover": je
1725
- }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : Z("", !0),
1726
- d(le) ? (y(), O("g", sa, [
1727
- (y(!0), O(q, null, z(p.value, (I, Ye) => (y(), O("circle", j(I, {
1727
+ }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : z("", !0),
1728
+ d(le) ? (y(), O("g", ia, [
1729
+ (y(!0), O(q, null, W(p.value, (I, Ye) => (y(), O("circle", j(I, {
1728
1730
  ref_for: !0,
1729
1731
  ref_key: "tooltipAnchor",
1730
1732
  ref: m,
1731
1733
  key: `anchor_${Ye}`,
1732
- r: d(Vn),
1734
+ r: d(jn),
1733
1735
  class: "lume-fill--transparent"
1734
- }), null, 16, ca))), 128))
1735
- ])) : Z("", !0),
1736
- M($.$slots, "groups", {
1736
+ }), null, 16, sa))), 128))
1737
+ ])) : z("", !0),
1738
+ M(T.$slots, "groups", {
1737
1739
  data: d(x),
1738
1740
  labels: d(N),
1739
1741
  options: d(h),
@@ -1743,25 +1745,25 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
1743
1745
  hoveredIndex: r.value,
1744
1746
  containerSize: d(D),
1745
1747
  transition: d(h).withTransition !== !1,
1746
- classList: $.classList,
1747
- onNodeClick: T[7] || (T[7] = (I) => a("node-click", I)),
1748
- onNodeMouseenter: T[8] || (T[8] = (I) => a("node-mouseenter", I)),
1749
- onNodeMouseleave: T[9] || (T[9] = (I) => a("node-mouseleave", I)),
1750
- onLinkClick: T[10] || (T[10] = (I) => a("link-click", I)),
1751
- onLinkMouseenter: T[11] || (T[11] = (I) => a("link-mouseenter", I)),
1752
- onLinkMouseleave: T[12] || (T[12] = (I) => a("link-mouseleave", I)),
1753
- onBarClick: T[13] || (T[13] = (I) => a("bar-click", I)),
1754
- onLineClick: T[14] || (T[14] = (I) => a("line-click", I)),
1755
- onPointClick: T[15] || (T[15] = (I) => a("point-click", I)),
1748
+ classList: T.classList,
1749
+ onNodeClick: L[7] || (L[7] = (I) => a("node-click", I)),
1750
+ onNodeMouseenter: L[8] || (L[8] = (I) => a("node-mouseenter", I)),
1751
+ onNodeMouseleave: L[9] || (L[9] = (I) => a("node-mouseleave", I)),
1752
+ onLinkClick: L[10] || (L[10] = (I) => a("link-click", I)),
1753
+ onLinkMouseenter: L[11] || (L[11] = (I) => a("link-mouseenter", I)),
1754
+ onLinkMouseleave: L[12] || (L[12] = (I) => a("link-mouseleave", I)),
1755
+ onBarClick: L[13] || (L[13] = (I) => a("bar-click", I)),
1756
+ onLineClick: L[14] || (L[14] = (I) => a("line-click", I)),
1757
+ onPointClick: L[15] || (L[15] = (I) => a("point-click", I)),
1756
1758
  "onLume__internal-Hover": je
1757
1759
  }, void 0, !0)
1758
- ], 64)) : Z("", !0)
1760
+ ], 64)) : z("", !0)
1759
1761
  ]),
1760
1762
  _: 3
1761
- }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "onResize"]));
1763
+ }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background"]));
1762
1764
  }
1763
1765
  });
1764
- const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, ma = 8, fa = 20, we = 2, Bt = 2, pa = ["dy", "dominant-baseline"], ha = ["y", "x", "width", "height"], ga = { class: "lume-alluvial-group__label-wrapper" }, _a = /* @__PURE__ */ W({
1766
+ const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-006c5f70"]]), Ht = 8, va = 8, ma = 20, we = 2, Bt = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
1765
1767
  __name: "lume-alluvial-node-label",
1766
1768
  props: {
1767
1769
  bottom: { type: Boolean, default: !1 },
@@ -1770,19 +1772,19 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1770
1772
  },
1771
1773
  emits: ["lume__internal--node-resize"],
1772
1774
  setup(e, { emit: n }) {
1773
- const t = e, o = n, a = G(null), u = G(t.maxWidth), l = G(1);
1775
+ const t = e, o = n, a = S(null), u = S(t.maxWidth), l = S(1);
1774
1776
  return U(
1775
1777
  [a, () => t.maxWidth],
1776
1778
  async ([i, c]) => {
1777
1779
  if (i && c) {
1778
- u.value = c, await kt();
1780
+ u.value = c, await Qe();
1779
1781
  const { width: s, height: f } = i.getBoundingClientRect();
1780
1782
  u.value = s + Bt > c ? c : s + Bt, l.value = Math.ceil(f);
1781
1783
  }
1782
1784
  },
1783
1785
  { immediate: !0 }
1784
1786
  ), U(u, async (i) => {
1785
- i !== t.maxWidth && (await kt(), o("lume__internal--node-resize"));
1787
+ i !== t.maxWidth && (await Qe(), o("lume__internal--node-resize"));
1786
1788
  }), (i, c) => e.maxWidth ? (y(), O("foreignObject", {
1787
1789
  key: 1,
1788
1790
  class: "lume-alluvial-group__node-foreign",
@@ -1791,7 +1793,7 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1791
1793
  width: u.value,
1792
1794
  height: l.value
1793
1795
  }, [
1794
- R("div", ga, [
1796
+ R("div", ha, [
1795
1797
  R("span", {
1796
1798
  ref_key: "text",
1797
1799
  ref: a,
@@ -1800,17 +1802,17 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
1800
1802
  M(i.$slots, "default", {}, void 0, !0)
1801
1803
  ], 512)
1802
1804
  ])
1803
- ], 8, ha)) : (y(), O("text", {
1805
+ ], 8, pa)) : (y(), O("text", {
1804
1806
  key: 0,
1805
1807
  class: "lume-alluvial-group__node-label",
1806
1808
  dy: e.bottom ? ".2em" : "-.2em",
1807
1809
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1808
1810
  }, [
1809
1811
  M(i.$slots, "default", {}, void 0, !0)
1810
- ], 8, pa));
1812
+ ], 8, fa));
1811
1813
  }
1812
1814
  });
1813
- const ya = /* @__PURE__ */ ee(_a, [["__scopeId", "data-v-7126dfdb"]]), ka = ["y", "dominant-baseline"], ba = /* @__PURE__ */ W({
1815
+ const _a = /* @__PURE__ */ ee(ga, [["__scopeId", "data-v-7126dfdb"]]), ya = ["y", "dominant-baseline"], ka = /* @__PURE__ */ Z({
1814
1816
  __name: "lume-alluvial-node-value",
1815
1817
  props: {
1816
1818
  bottom: { type: Boolean, default: !0 }
@@ -1822,17 +1824,17 @@ const ya = /* @__PURE__ */ ee(_a, [["__scopeId", "data-v-7126dfdb"]]), ka = ["y"
1822
1824
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1823
1825
  }, [
1824
1826
  M(n.$slots, "default", {}, void 0, !0)
1825
- ], 8, ka));
1827
+ ], 8, ya));
1826
1828
  }
1827
1829
  });
1828
- const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-b4fc758b"]]), Ta = ["transform"], La = ["transform"], $a = ["transform"], xa = /* @__PURE__ */ W({
1830
+ const ba = /* @__PURE__ */ ee(ka, [["__scopeId", "data-v-b4fc758b"]]), Aa = ["transform"], Ta = ["transform"], La = ["transform"], $a = /* @__PURE__ */ Z({
1829
1831
  __name: "lume-alluvial-node-header",
1830
1832
  props: {
1831
1833
  x: { type: Number, required: !0 },
1832
1834
  y: { type: Number, required: !0 }
1833
1835
  },
1834
1836
  setup(e) {
1835
- const n = G(null), t = v(
1837
+ const n = S(null), t = v(
1836
1838
  () => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
1837
1839
  ), o = v(
1838
1840
  () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
@@ -1842,7 +1844,7 @@ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-b4fc758b"]]), Ta = ["tr
1842
1844
  }, [
1843
1845
  R("g", { transform: t.value }, [
1844
1846
  M(a.$slots, "before", {}, void 0, !0)
1845
- ], 8, La),
1847
+ ], 8, Ta),
1846
1848
  R("text", {
1847
1849
  ref_key: "textRef",
1848
1850
  ref: n,
@@ -1852,11 +1854,11 @@ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-b4fc758b"]]), Ta = ["tr
1852
1854
  ], 512),
1853
1855
  R("g", { transform: o.value }, [
1854
1856
  M(a.$slots, "after", {}, void 0, !0)
1855
- ], 8, $a)
1856
- ], 8, Ta));
1857
+ ], 8, La)
1858
+ ], 8, Aa));
1857
1859
  }
1858
1860
  });
1859
- const Oa = /* @__PURE__ */ ee(xa, [["__scopeId", "data-v-0e483453"]]);
1861
+ const xa = /* @__PURE__ */ ee($a, [["__scopeId", "data-v-0e483453"]]);
1860
1862
  function Mt(e, n) {
1861
1863
  return {
1862
1864
  x0: 0 + (n ? n.left : 0),
@@ -1865,32 +1867,32 @@ function Mt(e, n) {
1865
1867
  y1: e.height - (n ? n.bottom : 0)
1866
1868
  };
1867
1869
  }
1868
- function Ia(e) {
1869
- const n = G(Mt(e));
1870
+ function Oa(e) {
1871
+ const n = S(Mt(e));
1870
1872
  function t(o) {
1871
1873
  n.value = Mt(e, o);
1872
1874
  }
1873
1875
  return { extents: n, updateExtents: t };
1874
1876
  }
1875
1877
  var Ce = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Ce || {});
1876
- const wa = "[lume] ";
1877
- function lt(e, n, t = !0) {
1878
- t && Pt() || console.error(wa + "Error: " + e, n);
1878
+ const Ia = "[lume] ";
1879
+ function ut(e, n, t = !0) {
1880
+ t && Pt() || console.error(Ia + "Error: " + e, n);
1879
1881
  }
1880
- const Ea = 200;
1882
+ const wa = 200;
1881
1883
  function Ie(e) {
1882
1884
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1883
1885
  }
1884
- function Na(e, n) {
1886
+ function Ea(e, n) {
1885
1887
  return n.nodes.find((t) => t.id === e);
1886
1888
  }
1887
- function Da(e, n) {
1889
+ function Na(e, n) {
1888
1890
  return n.links.find((t) => t.id === e);
1889
1891
  }
1890
1892
  function nn(e) {
1891
1893
  return !!(e.sourceLinks && e.targetLinks);
1892
1894
  }
1893
- function Ha(e, n) {
1895
+ function Da(e, n) {
1894
1896
  if (!n)
1895
1897
  return;
1896
1898
  const t = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = n.filter((l) => t.includes(l.dataset.id)).reduce(
@@ -1907,7 +1909,7 @@ function Ha(e, n) {
1907
1909
  bottom: 0
1908
1910
  };
1909
1911
  }
1910
- function Ba(e) {
1912
+ function Ha(e) {
1911
1913
  return e.map((n) => {
1912
1914
  const t = n.y1 - n.y0 < we;
1913
1915
  return {
@@ -1924,16 +1926,16 @@ function Ba(e) {
1924
1926
  };
1925
1927
  });
1926
1928
  }
1927
- function Ma(e) {
1929
+ function Ba(e) {
1928
1930
  return [e.source.x1, e.y0];
1929
1931
  }
1930
- function Sa(e) {
1932
+ function Ma(e) {
1931
1933
  return [e.target.x0, e.y1];
1932
1934
  }
1933
1935
  function Ga(e) {
1934
- return e.curveFunction ? hn(e.curveFunction).source(Ma).target(Sa) : kn();
1936
+ return e.curveFunction ? pn(e.curveFunction).source(Ba).target(Ma) : yn();
1935
1937
  }
1936
- function Ra(e) {
1938
+ function Sa(e) {
1937
1939
  return e.map((n) => {
1938
1940
  var t;
1939
1941
  return {
@@ -1945,7 +1947,7 @@ function Ra(e) {
1945
1947
  };
1946
1948
  });
1947
1949
  }
1948
- function St(e, n, t, o, a) {
1950
+ function Gt(e, n, t, o, a) {
1949
1951
  if (o === !1) {
1950
1952
  e.node = {
1951
1953
  ...e.node,
@@ -1953,8 +1955,8 @@ function St(e, n, t, o, a) {
1953
1955
  };
1954
1956
  return;
1955
1957
  }
1956
- const u = Date.now(), l = Dn(n, t), i = () => {
1957
- let s = (Date.now() - u) / Ea;
1958
+ const u = Date.now(), l = Nn(n, t), i = () => {
1959
+ let s = (Date.now() - u) / wa;
1958
1960
  s > 1 && (s = 1), e.node = {
1959
1961
  ...e.node,
1960
1962
  transitionValue: a && s === 1 ? void 0 : l(s)
@@ -1962,23 +1964,23 @@ function St(e, n, t, o, a) {
1962
1964
  };
1963
1965
  requestAnimationFrame(i);
1964
1966
  }
1965
- const ja = {
1967
+ const Ra = {
1966
1968
  nodes: [],
1967
1969
  links: []
1968
1970
  };
1969
- function Gt(e, n) {
1971
+ function St(e, n) {
1970
1972
  return n.find((t) => t.every((o) => o.x0 === e.x0));
1971
1973
  }
1972
- function Va(e, n, t) {
1973
- const o = G(null), a = v(() => {
1974
+ function ja(e, n, t) {
1975
+ const o = S(null), a = v(() => {
1974
1976
  var r, m;
1975
1977
  return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
1976
- ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: L, offset: A }) => ({
1978
+ ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: $, offset: A }) => ({
1977
1979
  label: g || b.toString(),
1978
1980
  color: p,
1979
1981
  fallbackColor: p || Re,
1980
1982
  id: b,
1981
- deriveColorFromIncomingLinks: L,
1983
+ deriveColorFromIncomingLinks: $,
1982
1984
  offset: A
1983
1985
  })
1984
1986
  );
@@ -1989,47 +1991,47 @@ function Va(e, n, t) {
1989
1991
  (g) => {
1990
1992
  var p;
1991
1993
  return (p = g.targets) == null ? void 0 : p.map(
1992
- ({ node: b, value: L, color: A, curveFunction: h }) => ({
1994
+ ({ node: b, value: $, color: A, curveFunction: h }) => ({
1993
1995
  id: `${g.value}:${b}`,
1994
1996
  color: A,
1995
1997
  curveFunction: h,
1996
1998
  source: g.value ?? g.label,
1997
1999
  target: b,
1998
- value: L
2000
+ value: $
1999
2001
  })
2000
2002
  );
2001
2003
  }
2002
2004
  ).filter(Boolean).flat();
2003
2005
  }
2004
- ), l = v(() => bn().nodeId(Ie).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
2006
+ ), l = v(() => kn().nodeId(Ie).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
2005
2007
  var r;
2006
2008
  return (r = o.value) == null ? void 0 : r.nodes.reduce(
2007
2009
  (m, g) => {
2008
- const p = Gt(g, m);
2009
- return p ? (p.push(g), p.sort((b, L) => (b._y0 || b.y0) - (L._y0 || L.y0))) : m.push([g]), m;
2010
+ const p = St(g, m);
2011
+ return p ? (p.push(g), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([g]), m;
2010
2012
  },
2011
2013
  []
2012
2014
  );
2013
2015
  });
2014
2016
  function c(r) {
2015
- const { offset: m } = r, g = Gt(r, i.value);
2017
+ const { offset: m } = r, g = St(r, i.value);
2016
2018
  if (!g)
2017
2019
  return;
2018
- const p = g[g.findIndex((L) => L.id === r.id) - 1], b = p && g.length !== 1 ? p.y1 + m : m;
2020
+ const p = g[g.findIndex(($) => $.id === r.id) - 1], b = p && g.length !== 1 ? p.y1 + m : m;
2019
2021
  r._y0 = r.y0, r._y1 = r.y1, r.y0 = b, r.y1 = r.y0 + (r._y1 - r._y0);
2020
2022
  }
2021
2023
  function s(r, m) {
2022
- const { id: g, _y0: p, y0: b } = r, L = m.links.filter(
2024
+ const { id: g, _y0: p, y0: b } = r, $ = m.links.filter(
2023
2025
  (x) => x.source.id === g
2024
2026
  ), A = m.links.filter(
2025
2027
  (x) => x.target.id === g
2026
2028
  ), h = b - p;
2027
- L.forEach((x) => x.y0 += h), A.forEach((x) => x.y1 += h);
2029
+ $.forEach((x) => x.y0 += h), A.forEach((x) => x.y1 += h);
2028
2030
  }
2029
2031
  const f = v(() => {
2030
2032
  var r;
2031
2033
  return o.value && ((r = a.value) == null || r.forEach((m) => {
2032
- m.value === 0 && (m.fallbackColor = dt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
2034
+ m.value === 0 && (m.fallbackColor = vt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
2033
2035
  })), o.value;
2034
2036
  });
2035
2037
  return U([l, t], () => {
@@ -2040,44 +2042,44 @@ function Va(e, n, t) {
2040
2042
  [g, p]
2041
2043
  ])({ nodes: a.value, links: u.value });
2042
2044
  } catch (r) {
2043
- lt(Ce.GraphProblem, r), o.value = ja;
2045
+ ut(Ce.GraphProblem, r), o.value = Ra;
2044
2046
  }
2045
2047
  }), { columns: i, graph: f };
2046
2048
  }
2047
- function ut(e, n) {
2049
+ function rt(e, n) {
2048
2050
  return n || (n = {}), e.targetLinks && e.targetLinks.forEach(({ source: t, value: o }) => {
2049
- n[t.id] = o, ut(
2051
+ n[t.id] = o, rt(
2050
2052
  t,
2051
2053
  n
2052
2054
  );
2053
2055
  }), n;
2054
2056
  }
2055
- function rt(e, n) {
2057
+ function it(e, n) {
2056
2058
  return n || (n = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: t, value: o }) => {
2057
- n[t.id] = o, rt(
2059
+ n[t.id] = o, it(
2058
2060
  t,
2059
2061
  n
2060
2062
  );
2061
2063
  }), n;
2062
2064
  }
2063
- function Ca(e, n) {
2065
+ function Va(e, n) {
2064
2066
  return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
2065
2067
  }
2066
- const Pa = (e, n) => {
2068
+ const Ca = (e, n) => {
2067
2069
  let t;
2068
2070
  nn(e) ? t = {
2069
2071
  [e.id]: e.value,
2070
- ...ut(e),
2071
- ...rt(e)
2072
+ ...rt(e),
2073
+ ...it(e)
2072
2074
  } : t = {
2073
2075
  [e.source.id]: e.source.value,
2074
2076
  [e.target.id]: e.target.value,
2075
- ...ut(e.source),
2076
- ...rt(e.target)
2077
+ ...rt(e.source),
2078
+ ...it(e.target)
2077
2079
  };
2078
- const o = Ca(t, n);
2080
+ const o = Va(t, n);
2079
2081
  return { nodes: t, links: o };
2080
- }, Fa = (e) => {
2082
+ }, Pa = (e) => {
2081
2083
  if (nn(e)) {
2082
2084
  const n = [...e.sourceLinks, ...e.targetLinks];
2083
2085
  return {
@@ -2096,15 +2098,15 @@ const Pa = (e, n) => {
2096
2098
  links: [e.id]
2097
2099
  };
2098
2100
  };
2099
- function za(e, n, t) {
2100
- const o = G(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2101
+ function Fa(e, n, t) {
2102
+ const o = S(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2101
2103
  o.value,
2102
2104
  t.value
2103
- ) : n.value.highlightedElements === "closest" ? Fa(o.value, t.value) : Pa(o.value, t.value) : { nodes: {}, links: [] });
2105
+ ) : n.value.highlightedElements === "closest" ? Pa(o.value, t.value) : Ca(o.value, t.value) : { nodes: {}, links: [] });
2104
2106
  return U(a, (u, l) => {
2105
2107
  if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
2106
2108
  e.value.forEach((i) => {
2107
- i.node.id in l.nodes && St(
2109
+ i.node.id in l.nodes && Gt(
2108
2110
  i,
2109
2111
  l.nodes[i.node.id],
2110
2112
  i.node.value,
@@ -2115,7 +2117,7 @@ function za(e, n, t) {
2115
2117
  return;
2116
2118
  }
2117
2119
  e.value.forEach((i) => {
2118
- i.node.id in u.nodes && St(
2120
+ i.node.id in u.nodes && Gt(
2119
2121
  i,
2120
2122
  i.node.value,
2121
2123
  u.nodes[i.node.id],
@@ -2124,10 +2126,10 @@ function za(e, n, t) {
2124
2126
  });
2125
2127
  }), { highlightedElements: a, hoveredElement: o };
2126
2128
  }
2127
- const Wa = {
2129
+ const za = {
2128
2130
  class: "lume-alluvial-group",
2129
2131
  "data-j-alluvial-group": ""
2130
- }, Za = { key: 0 }, Ua = { key: 0 }, Xa = ["id", "x1", "x2"], Ya = ["stop-color"], Ka = ["stop-color"], Ja = ["d", "stroke-width", "onClick", "onMouseover"], Qa = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], qa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], el = ["x", "y", "height", "width"], tl = ["transform", "data-id", "width"], nl = /* @__PURE__ */ W({
2132
+ }, Wa = { key: 0 }, Za = { key: 0 }, Ua = ["id", "x1", "x2"], Xa = ["stop-color"], Ya = ["stop-color"], Ka = ["d", "stroke-width", "onClick", "onMouseover"], Ja = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Qa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], qa = ["x", "y", "height", "width"], el = ["transform", "data-id", "width"], tl = /* @__PURE__ */ Z({
2131
2133
  __name: "lume-alluvial-group",
2132
2134
  props: {
2133
2135
  ...We(),
@@ -2138,11 +2140,11 @@ const Wa = {
2138
2140
  },
2139
2141
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2140
2142
  setup(e, { emit: n }) {
2141
- const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = G([]), c = G([]), s = G(null), { extents: f, updateExtents: r } = Ia(t.containerSize), { columns: m, graph: g } = Va(u, l, f), { hoveredElement: p, highlightedElements: b } = za(
2143
+ const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = S([]), c = S([]), s = S(null), { extents: f, updateExtents: r } = Oa(t.containerSize), { columns: m, graph: g } = ja(u, l, f), { hoveredElement: p, highlightedElements: b } = Fa(
2142
2144
  i,
2143
2145
  l,
2144
2146
  g
2145
- ), L = v(() => Ve(l.value.valueFormat)), A = v(
2147
+ ), $ = v(() => Ve(l.value.valueFormat)), A = v(
2146
2148
  () => Object.keys(b.value.nodes)
2147
2149
  ), h = v(() => m.value ? m.value.map(
2148
2150
  (k) => k[0].x0 + l.value.nodeWidth / 2
@@ -2153,7 +2155,7 @@ const Wa = {
2153
2155
  x: h.value[E]
2154
2156
  }));
2155
2157
  }), N = v(
2156
- () => l.value.nodeHeaderPadding ?? fa
2158
+ () => l.value.nodeHeaderPadding ?? ma
2157
2159
  ), D = v(() => {
2158
2160
  if (!(!l.value.gradient || !g.value))
2159
2161
  return g.value.links.reduce((k, E) => {
@@ -2218,7 +2220,7 @@ const Wa = {
2218
2220
  p.value = null;
2219
2221
  return;
2220
2222
  }
2221
- const E = Na(k, g.value) || Da(k, g.value);
2223
+ const E = Ea(k, g.value) || Na(k, g.value);
2222
2224
  if (!E) {
2223
2225
  ge(me.InvalidHoveredElement);
2224
2226
  return;
@@ -2229,21 +2231,21 @@ const Wa = {
2229
2231
  var E;
2230
2232
  return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
2231
2233
  }
2232
- function S() {
2233
- const k = Ha(g.value, s.value);
2234
+ function G() {
2235
+ const k = Da(g.value, s.value);
2234
2236
  r(k);
2235
2237
  }
2236
2238
  return U(g, (k) => {
2237
- i.value = Ba(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2239
+ i.value = Ha(k.nodes), c.value = Sa(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2238
2240
  }), U([t.containerSize, s], () => {
2239
- t.containerSize.width && t.containerSize.height && S();
2240
- }), U(() => t.hoveredElementId, ke), (k, E) => (y(), O("g", Wa, [
2241
- x.value ? (y(), O("g", Za, [
2242
- (y(!0), O(q, null, z(x.value, (_, V) => M(k.$slots, `node-header-${V}`, {
2241
+ t.containerSize.width && t.containerSize.height && G();
2242
+ }), U(() => t.hoveredElementId, ke), (k, E) => (y(), O("g", za, [
2243
+ x.value ? (y(), O("g", Wa, [
2244
+ (y(!0), O(q, null, W(x.value, (_, V) => M(k.$slots, `node-header-${V}`, {
2243
2245
  x: _.x,
2244
2246
  y: -N.value
2245
2247
  }, () => [
2246
- (y(), X(d(Oa), {
2248
+ (y(), X(d(xa), {
2247
2249
  key: `header_${_.x}`,
2248
2250
  x: _.x,
2249
2251
  y: -N.value
@@ -2254,13 +2256,13 @@ const Wa = {
2254
2256
  _: 2
2255
2257
  }, 1032, ["x", "y"]))
2256
2258
  ], !0)), 256))
2257
- ])) : Z("", !0),
2259
+ ])) : z("", !0),
2258
2260
  R("g", {
2259
2261
  class: "lume-alluvial-link-group",
2260
2262
  onMouseleave: Le
2261
2263
  }, [
2262
- d(l).gradient ? (y(), O("defs", Ua, [
2263
- (y(!0), O(q, null, z(D.value, (_, V) => (y(), O("linearGradient", {
2264
+ d(l).gradient ? (y(), O("defs", Za, [
2265
+ (y(!0), O(q, null, W(D.value, (_, V) => (y(), O("linearGradient", {
2264
2266
  id: `${d(a)}_${V}`,
2265
2267
  key: V,
2266
2268
  gradientUnits: "userSpaceOnUse",
@@ -2270,26 +2272,26 @@ const Wa = {
2270
2272
  R("stop", {
2271
2273
  offset: "0%",
2272
2274
  "stop-color": `var(--lume-color--${_.source})`
2273
- }, null, 8, Ya),
2275
+ }, null, 8, Xa),
2274
2276
  R("stop", {
2275
2277
  offset: "100%",
2276
2278
  "stop-color": `var(--lume-color--${_.target})`
2277
- }, null, 8, Ka)
2278
- ], 8, Xa))), 128))
2279
- ])) : Z("", !0),
2280
- (y(!0), O(q, null, z(c.value, (_) => (y(), O("path", {
2279
+ }, null, 8, Ya)
2280
+ ], 8, Ua))), 128))
2281
+ ])) : z("", !0),
2282
+ (y(!0), O(q, null, W(c.value, (_) => (y(), O("path", {
2281
2283
  key: `link-ghost_${_.id}`,
2282
2284
  class: ne(["lume-alluvial-group__link", [
2283
2285
  "lume-stroke--transparent",
2284
2286
  "lume-alluvial-group__link--ghost"
2285
2287
  ]]),
2286
2288
  d: _.d,
2287
- "stroke-width": _.strokeWidth + d(ma),
2289
+ "stroke-width": _.strokeWidth + d(va),
2288
2290
  "data-j-alluvial-ghost": "",
2289
2291
  onClick: (V) => o("link-click", { link: _.link, event: V }),
2290
2292
  onMouseover: (V) => ue(_.link, V)
2291
- }, null, 40, Ja))), 128)),
2292
- (y(!0), O(q, null, z(c.value, (_) => (y(), O("path", {
2293
+ }, null, 40, Ka))), 128)),
2294
+ (y(!0), O(q, null, W(c.value, (_) => (y(), O("path", {
2293
2295
  key: `link_${_.id}`,
2294
2296
  class: ne(["lume-alluvial-group__link", {
2295
2297
  [`lume-stroke--${_.color}`]: !d(l).gradient && _.color,
@@ -2305,9 +2307,9 @@ const Wa = {
2305
2307
  "data-id": _.id,
2306
2308
  onClick: (V) => o("link-click", { link: _.link, event: V }),
2307
2309
  onMouseover: (V) => ue(_.link, V)
2308
- }, null, 42, Qa))), 128))
2310
+ }, null, 42, Ja))), 128))
2309
2311
  ], 32),
2310
- (y(!0), O(q, null, z(i.value, (_, V) => (y(), O("g", {
2312
+ (y(!0), O(q, null, W(i.value, (_, V) => (y(), O("g", {
2311
2313
  key: `node-block_${V}`,
2312
2314
  class: ne(["lume-alluvial-group__node", {
2313
2315
  "lume-alluvial-group__node--faded": H(_.node.id),
@@ -2322,7 +2324,7 @@ const Wa = {
2322
2324
  onMouseover: (J) => p.value = _.node,
2323
2325
  onMouseout: E[0] || (E[0] = (J) => p.value = null)
2324
2326
  }, [
2325
- F(_) ? (y(!0), O(q, { key: 0 }, z($e(
2327
+ F(_) ? (y(!0), O(q, { key: 0 }, W($e(
2326
2328
  _.node.id
2327
2329
  ), (J) => (y(), O("rect", j(J, {
2328
2330
  key: J.key,
@@ -2334,7 +2336,7 @@ const Wa = {
2334
2336
  y: _.y,
2335
2337
  height: _.height,
2336
2338
  width: _.width
2337
- }, null, 10, el)),
2339
+ }, null, 10, qa)),
2338
2340
  R("g", {
2339
2341
  ref_for: !0,
2340
2342
  ref_key: "nodeTextRefs",
@@ -2348,27 +2350,27 @@ const Wa = {
2348
2350
  }, [
2349
2351
  M(k.$slots, `node-text-${_.node.id}`, {
2350
2352
  node: _.node,
2351
- value: L.value(
2353
+ value: $.value(
2352
2354
  _.node.transitionValue || _.node.value,
2353
2355
  _.node.value
2354
2356
  )
2355
2357
  }, () => [
2356
- ie(d(ya), {
2358
+ ie(d(_a), {
2357
2359
  bottom: d(l).switchText,
2358
2360
  left: _.node.depth === 0,
2359
2361
  "max-width": d(l).nodeLabelMaxWidth,
2360
- "onLume__internal-NodeResize": S
2362
+ "onLume__internal-NodeResize": G
2361
2363
  }, {
2362
2364
  default: C(() => [
2363
2365
  ce(oe(_.node.label), 1)
2364
2366
  ]),
2365
2367
  _: 2
2366
2368
  }, 1032, ["bottom", "left", "max-width"]),
2367
- ie(d(Aa), {
2369
+ ie(d(ba), {
2368
2370
  bottom: !d(l).switchText
2369
2371
  }, {
2370
2372
  default: C(() => [
2371
- ce(oe(L.value(
2373
+ ce(oe($.value(
2372
2374
  _.node.transitionValue || _.node.value,
2373
2375
  _.node.value
2374
2376
  )), 1)
@@ -2376,13 +2378,13 @@ const Wa = {
2376
2378
  _: 2
2377
2379
  }, 1032, ["bottom"])
2378
2380
  ], !0)
2379
- ], 10, tl)
2380
- ], 40, qa)
2381
+ ], 10, el)
2382
+ ], 40, Qa)
2381
2383
  ], 2))), 128))
2382
2384
  ]));
2383
2385
  }
2384
2386
  });
2385
- const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2387
+ const nl = /* @__PURE__ */ ee(tl, [["__scopeId", "data-v-02af69f2"]]), ol = {
2386
2388
  margins: {
2387
2389
  top: 0,
2388
2390
  right: 0,
@@ -2398,16 +2400,16 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2398
2400
  highlightedElements: "closest",
2399
2401
  nodePadding: 16,
2400
2402
  nodeWidth: 16,
2401
- nodeAlign: An,
2403
+ nodeAlign: bn,
2402
2404
  valueFormat: (e) => String(e),
2403
2405
  iterations: 6
2404
- }, Ul = /* @__PURE__ */ W({
2406
+ }, Zl = /* @__PURE__ */ Z({
2405
2407
  __name: "lume-alluvial-diagram",
2406
2408
  props: {
2407
- ...zo(it)
2409
+ ...Fo(st)
2408
2410
  },
2409
2411
  setup(e, { emit: n }) {
2410
- const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), u = Bn(re()), { options: l } = te(t), { allOptions: i } = fe(l, al);
2412
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), u = Hn(re()), { options: l } = te(t), { allOptions: i } = fe(l, ol);
2411
2413
  function c(s) {
2412
2414
  return {
2413
2415
  ...s,
@@ -2420,8 +2422,8 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2420
2422
  "data-j-alluvial-diagram": ""
2421
2423
  }, ae(d(o))), de({
2422
2424
  groups: C((r) => [
2423
- ie(d(ol), j(r, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2424
- z(d(u), (m, g) => ({
2425
+ ie(d(nl), j(r, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2426
+ W(d(u), (m, g) => ({
2425
2427
  name: g,
2426
2428
  fn: C((p) => [
2427
2429
  M(s.$slots, g, pe(he(p || {})))
@@ -2431,7 +2433,7 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2431
2433
  ]),
2432
2434
  _: 2
2433
2435
  }, [
2434
- z(d(a), (r, m) => ({
2436
+ W(d(a), (r, m) => ({
2435
2437
  name: m,
2436
2438
  fn: C((g) => [
2437
2439
  M(s.$slots, m, pe(he(g || {})))
@@ -2441,7 +2443,7 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2441
2443
  }
2442
2444
  });
2443
2445
  var on = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(on || {});
2444
- const Xl = /* @__PURE__ */ W({
2446
+ const Ul = /* @__PURE__ */ Z({
2445
2447
  __name: "lume-bar-chart",
2446
2448
  props: {
2447
2449
  ...Ee(),
@@ -2475,16 +2477,16 @@ const Xl = /* @__PURE__ */ W({
2475
2477
  };
2476
2478
  }
2477
2479
  const f = v(() => {
2478
- if (it(l.data))
2480
+ if (st(l.data))
2479
2481
  return u.get("single");
2480
2482
  if (!l.type)
2481
2483
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2482
2484
  return u.get(l.type);
2483
2485
  });
2484
- return (r, m) => (y(), X(mn(f.value), j({ ...l, ...r.$attrs }, {
2486
+ return (r, m) => (y(), X(vn(f.value), j({ ...l, ...r.$attrs }, {
2485
2487
  options: s(r.options)
2486
2488
  }, ae(d(i))), de({ _: 2 }, [
2487
- z(d(c), (g, p) => ({
2489
+ W(d(c), (g, p) => ({
2488
2490
  name: p,
2489
2491
  fn: C((b) => [
2490
2492
  M(r.$slots, p, pe(he(b || {})))
@@ -2493,23 +2495,23 @@ const Xl = /* @__PURE__ */ W({
2493
2495
  ]), 1040, ["options"]));
2494
2496
  }
2495
2497
  });
2496
- function ll(e) {
2497
- return Object.values(jn).includes(e) || e == null;
2498
+ function al(e) {
2499
+ return Object.values(Rn).includes(e) || e == null;
2498
2500
  }
2499
- function ul(e) {
2501
+ function ll(e) {
2500
2502
  return Object.values(B).includes(e);
2501
2503
  }
2502
- const rl = (e = !1) => ({
2504
+ const ul = (e = !1) => ({
2503
2505
  type: {
2504
2506
  type: String,
2505
2507
  default: null,
2506
- validator: ll
2508
+ validator: al
2507
2509
  },
2508
2510
  ...e ? {
2509
2511
  orientation: {
2510
2512
  type: String,
2511
2513
  default: B.VERTICAL,
2512
- validator: ul
2514
+ validator: ll
2513
2515
  }
2514
2516
  } : {}
2515
2517
  });
@@ -2518,7 +2520,7 @@ function an(e, n) {
2518
2520
  var u;
2519
2521
  return {
2520
2522
  ...a,
2521
- values: st(
2523
+ values: ct(
2522
2524
  a.values,
2523
2525
  ((u = n == null ? void 0 : n.value) == null ? void 0 : u.length) ?? 0
2524
2526
  ).map((l) => ({
@@ -2534,26 +2536,26 @@ function an(e, n) {
2534
2536
  });
2535
2537
  return { multiBarData: t, groupedData: o };
2536
2538
  }
2537
- function il(e, n) {
2539
+ function rl(e, n) {
2538
2540
  return e.value.length === 1 ? "single" : n.value;
2539
2541
  }
2540
- function sl(e, n, t) {
2542
+ function il(e, n, t) {
2541
2543
  const o = v(
2542
2544
  () => t.value === B.HORIZONTAL
2543
2545
  );
2544
2546
  function a(i) {
2545
- i || lt(Ce.BarScaleNull), Math.min(...i.domain()) > 0 && lt(Ce.BarScaleDomainAbove0);
2547
+ i || ut(Ce.BarScaleNull), Math.min(...i.domain()) > 0 && ut(Ce.BarScaleDomainAbove0);
2546
2548
  }
2547
2549
  const u = v(() => o.value ? (() => (a(e.value), e.value))() : e.value), l = v(() => o.value ? n.value : (() => (a(n.value), n.value))());
2548
2550
  return { barXScale: u, barYScale: l };
2549
2551
  }
2550
- const cl = {
2552
+ const sl = {
2551
2553
  x: 0,
2552
2554
  y: 0,
2553
2555
  width: 0,
2554
2556
  height: 0
2555
2557
  };
2556
- function dl(e, n, t, o, a, u) {
2558
+ function cl(e, n, t, o, a, u) {
2557
2559
  const l = v(
2558
2560
  () => o.value === B.HORIZONTAL
2559
2561
  );
@@ -2569,8 +2571,8 @@ function dl(e, n, t, o, a, u) {
2569
2571
  }
2570
2572
  function f(r, m, g) {
2571
2573
  if (!(n.value && t.value))
2572
- return cl;
2573
- const { value: b, color: L } = r, A = L ?? e.value[m].color ?? Re, { x: h, y: x } = i(b, g), N = c(b), D = s(b);
2574
+ return sl;
2575
+ const { value: b, color: $ } = r, A = $ ?? e.value[m].color ?? Re, { x: h, y: x } = i(b, g), N = c(b), D = s(b);
2574
2576
  return {
2575
2577
  classList: [`lume-fill--${A}`, ...u],
2576
2578
  x: h,
@@ -2583,26 +2585,26 @@ function dl(e, n, t, o, a, u) {
2583
2585
  }
2584
2586
  return { barAttributeGenerator: f };
2585
2587
  }
2586
- const vl = {
2588
+ const dl = {
2587
2589
  x: 0,
2588
2590
  y: 0,
2589
2591
  width: 0,
2590
2592
  height: 0
2591
2593
  };
2592
- function ml(e, n, t, o, a, u) {
2594
+ function vl(e, n, t, o, a, u) {
2593
2595
  const l = v(
2594
2596
  () => o.value === B.HORIZONTAL
2595
2597
  ), i = v(() => Be().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0)), c = v(() => Be().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0));
2596
- function s(p, b, L) {
2598
+ function s(p, b, $) {
2597
2599
  if (l.value)
2598
2600
  return p >= 0 ? n.value(0) : n.value(p);
2599
2601
  const A = n.value.domain();
2600
- return n.value(A[b]) + i.value(L);
2602
+ return n.value(A[b]) + i.value($);
2601
2603
  }
2602
- function f(p, b, L) {
2604
+ function f(p, b, $) {
2603
2605
  if (l.value) {
2604
2606
  const A = t.value.domain();
2605
- return t.value(A[b]) + c.value(L);
2607
+ return t.value(A[b]) + c.value($);
2606
2608
  }
2607
2609
  return p < 0 ? t.value(0) : t.value(p);
2608
2610
  }
@@ -2612,23 +2614,23 @@ function ml(e, n, t, o, a, u) {
2612
2614
  function m(p) {
2613
2615
  return l.value ? c.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2614
2616
  }
2615
- function g(p, b, L) {
2617
+ function g(p, b, $) {
2616
2618
  if (!(n.value && t.value))
2617
- return vl;
2618
- const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = s(h, L, b), P = f(h, L, b), w = r(h), H = m(h);
2619
+ return dl;
2620
+ const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = s(h, $, b), P = f(h, $, b), w = r(h), H = m(h);
2619
2621
  return {
2620
2622
  classList: [`lume-fill--${N}`, ...u],
2621
2623
  x: D,
2622
2624
  y: P,
2623
2625
  width: w,
2624
2626
  height: H,
2625
- isFaded: a.value !== -1 && a.value !== L,
2627
+ isFaded: a.value !== -1 && a.value !== $,
2626
2628
  isNegative: h < 0
2627
2629
  };
2628
2630
  }
2629
2631
  return { barAttributeGenerator: g };
2630
2632
  }
2631
- function fl(e, n, t) {
2633
+ function ml(e, n, t) {
2632
2634
  const o = v(
2633
2635
  () => n.value === B.HORIZONTAL
2634
2636
  ), a = v(() => {
@@ -2667,7 +2669,7 @@ function fl(e, n, t) {
2667
2669
  }
2668
2670
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2669
2671
  }
2670
- function pl(e, n, t, o, a, u) {
2672
+ function fl(e, n, t, o, a, u) {
2671
2673
  const l = v(
2672
2674
  () => o.value === B.HORIZONTAL
2673
2675
  ), i = v(
@@ -2697,7 +2699,7 @@ function pl(e, n, t, o, a, u) {
2697
2699
  function b(A, h) {
2698
2700
  return A ? c.value.reduce((x, N, D) => (D < A && N[h] < 0 && (x += N[h]), x), 0) : 0;
2699
2701
  }
2700
- function L(A, h, x) {
2702
+ function $(A, h, x) {
2701
2703
  const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = s(N, x, H);
2702
2704
  return {
2703
2705
  classList: [`lume-fill--${D ?? e.value[h].color ?? Object.values(se)[h]}`, ...u],
@@ -2709,16 +2711,16 @@ function pl(e, n, t, o, a, u) {
2709
2711
  isNegative: N < 0
2710
2712
  };
2711
2713
  }
2712
- return { barAttributeGenerator: L };
2714
+ return { barAttributeGenerator: $ };
2713
2715
  }
2714
- const hl = {
2716
+ const pl = {
2715
2717
  class: "lume-bar-group",
2716
2718
  "data-j-bars-group": ""
2717
- }, gl = ["onMouseenter"], _l = {
2718
- single: dl,
2719
- grouped: ml,
2720
- stacked: pl
2721
- }, ht = /* @__PURE__ */ W({
2719
+ }, hl = ["onMouseenter"], gl = {
2720
+ single: cl,
2721
+ grouped: vl,
2722
+ stacked: fl
2723
+ }, gt = /* @__PURE__ */ Z({
2722
2724
  __name: "lume-bar-group",
2723
2725
  props: {
2724
2726
  ...We(),
@@ -2726,7 +2728,7 @@ const hl = {
2726
2728
  type: [String, Array],
2727
2729
  default: () => []
2728
2730
  },
2729
- ...rl(!0),
2731
+ ...ul(!0),
2730
2732
  transition: {
2731
2733
  type: Boolean,
2732
2734
  default: !0
@@ -2746,11 +2748,11 @@ const hl = {
2746
2748
  labels: m
2747
2749
  } = te(t);
2748
2750
  Pe("chartID");
2749
- const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: L } = sl(s, f, l), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2750
- const D = il(a, c), { barAttributeGenerator: P } = _l[D](
2751
+ const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: $ } = il(s, f, l), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2752
+ const D = rl(a, c), { barAttributeGenerator: P } = gl[D](
2751
2753
  a,
2752
2754
  b,
2753
- L,
2755
+ $,
2754
2756
  l,
2755
2757
  u,
2756
2758
  A.value
@@ -2763,12 +2765,12 @@ const hl = {
2763
2765
  async function N(D) {
2764
2766
  o("lume__internal--hover", D), g("lume__internal--hover", D);
2765
2767
  }
2766
- return (D, P) => (y(), O("g", hl, [
2767
- (y(!0), O(q, null, z(d(p), (w, H) => (y(), O("g", {
2768
+ return (D, P) => (y(), O("g", pl, [
2769
+ (y(!0), O(q, null, W(d(p), (w, H) => (y(), O("g", {
2768
2770
  key: H,
2769
2771
  onMouseenter: (Y) => N(H)
2770
2772
  }, [
2771
- (y(!0), O(q, null, z(w, (Y, K) => (y(), X(d(mt), j(h.value(Y, K, H, w), {
2773
+ (y(!0), O(q, null, W(w, (Y, K) => (y(), X(d(ft), j(h.value(Y, K, H, w), {
2772
2774
  key: `bar-${K}`,
2773
2775
  transition: x.value,
2774
2776
  "data-j-lume-bar": "",
@@ -2778,10 +2780,10 @@ const hl = {
2778
2780
  event: Q
2779
2781
  })
2780
2782
  }), null, 16, ["transition", "onClick"]))), 128))
2781
- ], 40, gl))), 128))
2783
+ ], 40, hl))), 128))
2782
2784
  ]));
2783
2785
  }
2784
- }), yl = {
2786
+ }), _l = {
2785
2787
  [B.VERTICAL]: {
2786
2788
  withTooltip: !0,
2787
2789
  xAxisOptions: {},
@@ -2794,14 +2796,14 @@ const hl = {
2794
2796
  yAxisOptions: { gridLines: !1 },
2795
2797
  margins: Ae.HORIZONTAL
2796
2798
  }
2797
- }, Yl = /* @__PURE__ */ W({
2799
+ }, Xl = /* @__PURE__ */ Z({
2798
2800
  __name: "lume-single-bar-chart",
2799
2801
  props: {
2800
- ...Ee(it)
2802
+ ...Ee(st)
2801
2803
  },
2802
2804
  setup(e, { emit: n }) {
2803
2805
  const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { orientation: u, options: l } = te(t), i = v(
2804
- () => yl[u.value || B.VERTICAL]
2806
+ () => _l[u.value || B.VERTICAL]
2805
2807
  // needs to be computed so that default options are reactive
2806
2808
  ), { allOptions: c } = fe(l, i);
2807
2809
  return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
@@ -2810,11 +2812,11 @@ const hl = {
2810
2812
  "data-j-single-bar-chart": ""
2811
2813
  }, ae(d(o))), de({
2812
2814
  groups: C((r) => [
2813
- ie(d(ht), j(r, { orientation: d(u) }, ae(d(o))), null, 16, ["orientation"])
2815
+ ie(d(gt), j(r, { orientation: d(u) }, ae(d(o))), null, 16, ["orientation"])
2814
2816
  ]),
2815
2817
  _: 2
2816
2818
  }, [
2817
- z(d(a), (r, m) => ({
2819
+ W(d(a), (r, m) => ({
2818
2820
  name: m,
2819
2821
  fn: C((g) => [
2820
2822
  M(s.$slots, m, pe(he(g || {})))
@@ -2822,7 +2824,7 @@ const hl = {
2822
2824
  }))
2823
2825
  ]), 1040, ["options"]));
2824
2826
  }
2825
- }), kl = {
2827
+ }), yl = {
2826
2828
  [B.VERTICAL]: {
2827
2829
  withTooltip: !0,
2828
2830
  xAxisOptions: {},
@@ -2836,14 +2838,14 @@ const hl = {
2836
2838
  margins: Ae.HORIZONTAL,
2837
2839
  tooltipOptions: { position: "right" }
2838
2840
  }
2839
- }, Kl = /* @__PURE__ */ W({
2841
+ }, Yl = /* @__PURE__ */ Z({
2840
2842
  __name: "lume-grouped-bar-chart",
2841
2843
  props: {
2842
2844
  ...Ee()
2843
2845
  },
2844
2846
  setup(e, { emit: n }) {
2845
2847
  const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { orientation: u, options: l } = te(t), i = v(
2846
- () => kl[u.value || B.VERTICAL]
2848
+ () => yl[u.value || B.VERTICAL]
2847
2849
  // needs to be computed so that default options are reactive
2848
2850
  ), { allOptions: c } = fe(
2849
2851
  l,
@@ -2855,11 +2857,11 @@ const hl = {
2855
2857
  "data-j-grouped-bar-chart": ""
2856
2858
  }, ae(d(o))), de({
2857
2859
  groups: C((r) => [
2858
- ie(d(ht), j(r, { type: "grouped" }, ae(d(o))), null, 16)
2860
+ ie(d(gt), j(r, { type: "grouped" }, ae(d(o))), null, 16)
2859
2861
  ]),
2860
2862
  _: 2
2861
2863
  }, [
2862
- z(d(a), (r, m) => ({
2864
+ W(d(a), (r, m) => ({
2863
2865
  name: m,
2864
2866
  fn: C((g) => [
2865
2867
  M(s.$slots, m, pe(he(g || {})))
@@ -2867,7 +2869,7 @@ const hl = {
2867
2869
  }))
2868
2870
  ]), 1040, ["options"]));
2869
2871
  }
2870
- }), bl = {
2872
+ }), kl = {
2871
2873
  [B.VERTICAL]: {
2872
2874
  withTooltip: !0,
2873
2875
  xAxisOptions: {},
@@ -2882,36 +2884,36 @@ const hl = {
2882
2884
  margins: Ae.HORIZONTAL,
2883
2885
  tooltipOptions: { position: "right" }
2884
2886
  }
2885
- }, Jl = /* @__PURE__ */ W({
2887
+ }, Kl = /* @__PURE__ */ Z({
2886
2888
  __name: "lume-stacked-bar-chart",
2887
2889
  props: {
2888
2890
  ...Ee()
2889
2891
  },
2890
2892
  setup(e, { emit: n }) {
2891
2893
  const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { data: u, orientation: l, options: i, labels: c } = te(t), s = v(
2892
- () => bl[l.value || B.VERTICAL]
2894
+ () => kl[l.value || B.VERTICAL]
2893
2895
  // needs to be computed so that default options are reactive
2894
2896
  ), { allOptions: f } = fe(
2895
2897
  i,
2896
2898
  s
2897
- ), { internalData: r } = pt(u), { groupedData: m } = an(r, c), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = fl(
2899
+ ), { internalData: r } = ht(u), { groupedData: m } = an(r, c), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = ml(
2898
2900
  m,
2899
2901
  l,
2900
2902
  i
2901
- ), b = v(() => t.xScale || g), L = v(() => t.yScale || p);
2903
+ ), b = v(() => t.xScale || g), $ = v(() => t.yScale || p);
2902
2904
  return (A, h) => (y(), X(d(Ne), j({ ...t, ...A.$attrs }, {
2903
2905
  "chart-type": "stacked-bar",
2904
2906
  options: d(f),
2905
2907
  "x-scale": b.value,
2906
- "y-scale": L.value,
2908
+ "y-scale": $.value,
2907
2909
  "data-j-stacked-bar-chart": ""
2908
2910
  }, ae(d(o))), de({
2909
2911
  groups: C((x) => [
2910
- ie(d(ht), j(x, { type: "stacked" }, ae(d(o))), null, 16)
2912
+ ie(d(gt), j(x, { type: "stacked" }, ae(d(o))), null, 16)
2911
2913
  ]),
2912
2914
  _: 2
2913
2915
  }, [
2914
- z(d(a), (x, N) => ({
2916
+ W(d(a), (x, N) => ({
2915
2917
  name: N,
2916
2918
  fn: C((D) => [
2917
2919
  M(A.$slots, N, pe(he(D || {})))
@@ -2919,7 +2921,7 @@ const hl = {
2919
2921
  }))
2920
2922
  ]), 1040, ["options", "x-scale", "y-scale"]));
2921
2923
  }
2922
- }), Al = ["d", "stroke-width"], Tl = 2, Ll = /* @__PURE__ */ W({
2924
+ }), bl = ["d", "stroke-width"], Al = 2, Tl = /* @__PURE__ */ Z({
2923
2925
  __name: "lume-line",
2924
2926
  props: {
2925
2927
  pathDefinition: {
@@ -2928,7 +2930,7 @@ const hl = {
2928
2930
  },
2929
2931
  width: {
2930
2932
  type: Number,
2931
- default: Tl
2933
+ default: Al
2932
2934
  },
2933
2935
  color: {
2934
2936
  type: String,
@@ -2953,7 +2955,7 @@ const hl = {
2953
2955
  },
2954
2956
  emits: ["click"],
2955
2957
  setup(e, { emit: n }) {
2956
- const t = n, o = G(null);
2958
+ const t = n, o = S(null);
2957
2959
  return _e(() => ze(o.value)), (a, u) => (y(), O("path", {
2958
2960
  ref_key: "root",
2959
2961
  ref: o,
@@ -2970,10 +2972,10 @@ const hl = {
2970
2972
  }),
2971
2973
  "data-j-line": "",
2972
2974
  onClick: u[0] || (u[0] = (l) => t("click", l))
2973
- }, null, 14, Al));
2975
+ }, null, 14, bl));
2974
2976
  }
2975
2977
  });
2976
- const $l = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), xl = ["cx", "cy", "r", "stroke-width"], Ol = 4, Il = /* @__PURE__ */ W({
2978
+ const Ll = /* @__PURE__ */ ee(Tl, [["__scopeId", "data-v-08896455"]]), $l = ["cx", "cy", "r", "stroke-width"], xl = 4, Ol = /* @__PURE__ */ Z({
2977
2979
  __name: "lume-point",
2978
2980
  props: {
2979
2981
  x: { type: Number, required: !0 },
@@ -2984,7 +2986,7 @@ const $l = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), xl = ["cx
2984
2986
  },
2985
2987
  radius: {
2986
2988
  type: Number,
2987
- default: Ol
2989
+ default: xl
2988
2990
  },
2989
2991
  active: {
2990
2992
  type: Boolean,
@@ -2993,7 +2995,7 @@ const $l = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), xl = ["cx
2993
2995
  },
2994
2996
  emits: ["click"],
2995
2997
  setup(e, { emit: n }) {
2996
- const t = e, o = n, a = G(null), u = v(() => t.radius / 2);
2998
+ const t = e, o = n, a = S(null), u = v(() => t.radius / 2);
2997
2999
  return _e(() => ze(a.value)), (l, i) => (y(), O("circle", {
2998
3000
  ref_key: "root",
2999
3001
  ref: a,
@@ -3004,10 +3006,10 @@ const $l = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), xl = ["cx
3004
3006
  "stroke-width": u.value,
3005
3007
  "data-j-point": "",
3006
3008
  onClick: i[0] || (i[0] = (c) => o("click", c))
3007
- }, null, 10, xl));
3009
+ }, null, 10, $l));
3008
3010
  }
3009
3011
  });
3010
- const wl = /* @__PURE__ */ ee(Il, [["__scopeId", "data-v-b6745177"]]);
3012
+ const Il = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-b6745177"]]);
3011
3013
  function ln(e) {
3012
3014
  function n(u) {
3013
3015
  let l = null;
@@ -3052,27 +3054,27 @@ function ln(e) {
3052
3054
  };
3053
3055
  })) };
3054
3056
  }
3055
- function El(e, n) {
3057
+ function wl(e, n) {
3056
3058
  const t = e.bandwidth() / 2;
3057
3059
  return (o, a) => e(e.domain()[n + (a - 1)]) + t;
3058
3060
  }
3059
- function Nl(e, n) {
3061
+ function El(e, n) {
3060
3062
  return (t, o) => e(n + (o - 1));
3061
3063
  }
3062
- function Dl(e, n, t, o) {
3063
- const a = gn().x(
3064
- ve(t) ? El(t, e) : Nl(t, e)
3064
+ function Nl(e, n, t, o) {
3065
+ const a = hn().x(
3066
+ ve(t) ? wl(t, e) : El(t, e)
3065
3067
  ).y((u) => o(u));
3066
3068
  return n.every((u) => u == null) ? null : a(n);
3067
3069
  }
3068
- const Hl = {
3070
+ const Dl = {
3069
3071
  class: "lume-line-group",
3070
3072
  "data-j-lume-line-group": ""
3071
- }, Bl = { class: "lume-line-group__lines" }, Ml = {
3073
+ }, Hl = { class: "lume-line-group__lines" }, Bl = {
3072
3074
  key: 0,
3073
3075
  class: "lume-line-group__points",
3074
3076
  "data-j-lume-line-group__points": ""
3075
- }, Sl = 1, Gl = /* @__PURE__ */ W({
3077
+ }, Ml = 1, Gl = /* @__PURE__ */ Z({
3076
3078
  __name: "lume-line-group",
3077
3079
  props: {
3078
3080
  ...We(),
@@ -3104,17 +3106,17 @@ const Hl = {
3104
3106
  }), m = v(() => {
3105
3107
  if (t.hoveredIndex === -1)
3106
3108
  return;
3107
- const w = En(
3109
+ const w = wn(
3108
3110
  r.value,
3109
3111
  t.hoveredIndex
3110
3112
  );
3111
3113
  return {
3112
- d: `M ${et(l.value, t.hoveredIndex)},${i.value.range()[1]}
3114
+ d: `M ${tt(l.value, t.hoveredIndex)},${i.value.range()[1]}
3113
3115
  V ${i.value(w)}`
3114
3116
  // Move to X index, Vertical line to the highest point
3115
3117
  };
3116
3118
  }), g = v(
3117
- () => l.value && Sl / (Nn(l.value) - 1)
3119
+ () => l.value && Ml / (En(l.value) - 1)
3118
3120
  // Subtracting the first line (read below)
3119
3121
  ), p = v(
3120
3122
  () => {
@@ -3124,7 +3126,7 @@ const Hl = {
3124
3126
  // If no `lineWidth`, returns NaN which needs to be undefined
3125
3127
  ), b = v(
3126
3128
  () => l.value.bandwidth() / 2
3127
- ), L = v(() => l.value.domain()), A = v(
3129
+ ), $ = v(() => l.value.domain()), A = v(
3128
3130
  () => u.value.withPoints ?? t.withPoints
3129
3131
  );
3130
3132
  function h(w) {
@@ -3136,7 +3138,7 @@ const Hl = {
3136
3138
  (K = h(H)[w - 1]) == null ? void 0 : K.value,
3137
3139
  (Q = h(H)[w]) == null ? void 0 : Q.value
3138
3140
  ];
3139
- return Dl(
3141
+ return Nl(
3140
3142
  w,
3141
3143
  Y,
3142
3144
  l.value,
@@ -3153,24 +3155,24 @@ const Hl = {
3153
3155
  var K;
3154
3156
  const Y = (K = h(H)[w]) == null ? void 0 : K.value;
3155
3157
  return {
3156
- x: ve(l.value) ? t.xScale(L.value[w]) + b.value : t.xScale(w),
3158
+ x: ve(l.value) ? t.xScale($.value[w]) + b.value : t.xScale(w),
3157
3159
  y: Y === null ? i.value(i.value.domain()[1]) : i.value(Y)
3158
3160
  };
3159
3161
  }
3160
3162
  function P(w) {
3161
3163
  return t.hoveredIndex === w;
3162
3164
  }
3163
- return (w, H) => (y(), O("g", Hl, [
3165
+ return (w, H) => (y(), O("g", Dl, [
3164
3166
  R("path", j(m.value, {
3165
3167
  class: "lume-line-group__overlay-line",
3166
3168
  "data-j-lume-line-group__overlay-line": ""
3167
3169
  }), null, 16),
3168
- (y(!0), O(q, null, z(r.value, (Y, K) => (y(), O("g", {
3170
+ (y(!0), O(q, null, W(r.value, (Y, K) => (y(), O("g", {
3169
3171
  key: Y.label,
3170
3172
  class: "lume-line-group__group"
3171
3173
  }, [
3172
- R("g", Bl, [
3173
- (y(!0), O(q, null, z(Y.values, (Q, F) => (y(), X(d($l), j(N(F), {
3174
+ R("g", Hl, [
3175
+ (y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Ll), j(N(F), {
3174
3176
  key: `line-${F}`,
3175
3177
  color: Y.color,
3176
3178
  dashed: Y.isDashed(F),
@@ -3180,8 +3182,8 @@ const Hl = {
3180
3182
  onClick: (ue) => o("line-click", { index: F, datasetIndex: K, event: ue })
3181
3183
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3182
3184
  ]),
3183
- A.value ? (y(), O("g", Ml, [
3184
- (y(!0), O(q, null, z(Y.values, (Q, F) => (y(), X(d(wl), j(D(F, K), {
3185
+ A.value ? (y(), O("g", Bl, [
3186
+ (y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Il), j(D(F, K), {
3185
3187
  key: `point-${F}`,
3186
3188
  active: P(F),
3187
3189
  color: Y.color,
@@ -3189,24 +3191,24 @@ const Hl = {
3189
3191
  radius: p.value,
3190
3192
  onClick: (ue) => o("point-click", { index: F, datasetIndex: K, event: ue })
3191
3193
  }), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
3192
- ])) : Z("", !0)
3194
+ ])) : z("", !0)
3193
3195
  ]))), 128))
3194
3196
  ]));
3195
3197
  }
3196
3198
  });
3197
- const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-44ba7be1"]]), Rl = {
3199
+ const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-44ba7be1"]]), Sl = {
3198
3200
  margins: Ae.VERTICAL,
3199
3201
  startOnZero: !0,
3200
3202
  withTooltip: !0,
3201
3203
  xAxisOptions: {},
3202
3204
  yAxisOptions: { gridLines: !0 }
3203
- }, Ql = /* @__PURE__ */ W({
3205
+ }, Jl = /* @__PURE__ */ Z({
3204
3206
  __name: "lume-line-chart",
3205
3207
  props: {
3206
3208
  ...Ee(null, !1)
3207
3209
  },
3208
3210
  setup(e, { emit: n }) {
3209
- const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Rl);
3211
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Sl);
3210
3212
  return (i, c) => (y(), X(d(Ne), j({ ...t, ...i.$attrs }, {
3211
3213
  "chart-type": "line",
3212
3214
  options: d(l),
@@ -3217,7 +3219,7 @@ const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-44ba7be1"]]), Rl = {
3217
3219
  ]),
3218
3220
  _: 2
3219
3221
  }, [
3220
- z(d(a), (s, f) => ({
3222
+ W(d(a), (s, f) => ({
3221
3223
  name: f,
3222
3224
  fn: C((r) => [
3223
3225
  M(i.$slots, f, pe(he(r || {})))
@@ -3226,17 +3228,17 @@ const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-44ba7be1"]]), Rl = {
3226
3228
  ]), 1040, ["options"]));
3227
3229
  }
3228
3230
  });
3229
- function jl(e) {
3231
+ function Rl(e) {
3230
3232
  return { areaPathDefinition: v(
3231
3233
  () => function(t, o) {
3232
3234
  if (!t || !o || ve(t) || ve(o))
3233
3235
  return;
3234
3236
  const a = e.value[0].values;
3235
- return _n().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
3237
+ return gn().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
3236
3238
  }
3237
3239
  ) };
3238
3240
  }
3239
- const Vl = {
3241
+ const jl = {
3240
3242
  margins: {
3241
3243
  top: 0,
3242
3244
  right: 0,
@@ -3250,35 +3252,35 @@ const Vl = {
3250
3252
  tooltipOptions: {
3251
3253
  showTitle: !1
3252
3254
  }
3253
- }, Cl = ["d"], Pl = /* @__PURE__ */ W({
3255
+ }, Vl = ["d"], Cl = /* @__PURE__ */ Z({
3254
3256
  __name: "lume-sparkline-chart",
3255
3257
  props: {
3256
- ...ft(null),
3257
- ...Se()
3258
+ ...pt(null),
3259
+ ...Ge()
3258
3260
  },
3259
3261
  setup(e, { expose: n, emit: t }) {
3260
- const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = pt(l), { allOptions: s } = fe(i, Vl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = jl(f), m = v(() => {
3261
- var L, A;
3262
- return (A = (L = c.value) == null ? void 0 : L[0]) == null ? void 0 : A.color;
3262
+ const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = ht(l), { allOptions: s } = fe(i, jl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = Rl(f), m = v(() => {
3263
+ var $, A;
3264
+ return (A = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : A.color;
3263
3265
  }), g = v(
3264
3266
  () => {
3265
- var L, A;
3266
- return ((A = (L = l.value) == null ? void 0 : L[0]) == null ? void 0 : A.areaColor) || m.value;
3267
+ var $, A;
3268
+ return ((A = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : A.areaColor) || m.value;
3267
3269
  }
3268
3270
  );
3269
- function p(L) {
3271
+ function p($) {
3270
3272
  return {
3271
- ...L,
3273
+ ...$,
3272
3274
  noMinSize: !0
3273
3275
  };
3274
3276
  }
3275
- function b(L, A, h) {
3276
- if (L.length)
3277
- return Me().range([0, h.width]).domain([0, L[0].values.length - 1]);
3277
+ function b($, A, h) {
3278
+ if ($.length)
3279
+ return Me().range([0, h.width]).domain([0, $[0].values.length - 1]);
3278
3280
  }
3279
3281
  return n({
3280
3282
  areaPathDefinition: r
3281
- }), (L, A) => (y(), X(d(Ne), j(o, {
3283
+ }), ($, A) => (y(), X(d(Ne), j(o, {
3282
3284
  "chart-type": "line",
3283
3285
  options: p(d(s)),
3284
3286
  "x-scale": b
@@ -3294,46 +3296,46 @@ const Vl = {
3294
3296
  ]),
3295
3297
  d: d(r)(h.xScale, h.yScale),
3296
3298
  "data-j-sparkline__area": ""
3297
- }, null, 10, Cl)) : Z("", !0),
3299
+ }, null, 10, Vl)) : z("", !0),
3298
3300
  ie(d(un), j(h, { "with-points": !1 }, ae(d(a))), null, 16)
3299
3301
  ]),
3300
3302
  _: 2
3301
3303
  }, [
3302
- z(d(u), (h, x) => ({
3304
+ W(d(u), (h, x) => ({
3303
3305
  name: x,
3304
3306
  fn: C((N) => [
3305
- M(L.$slots, x, pe(he(N || {})), void 0, !0)
3307
+ M($.$slots, x, pe(he(N || {})), void 0, !0)
3306
3308
  ])
3307
3309
  }))
3308
3310
  ]), 1040, ["options"]));
3309
3311
  }
3310
3312
  });
3311
- const ql = /* @__PURE__ */ ee(Pl, [["__scopeId", "data-v-bda226a1"]]);
3313
+ const Ql = /* @__PURE__ */ ee(Cl, [["__scopeId", "data-v-bda226a1"]]);
3312
3314
  export {
3313
- Ul as LumeAlluvialDiagram,
3314
- ol as LumeAlluvialGroup,
3315
- Oa as LumeAlluvialNodeHeader,
3316
- ya as LumeAlluvialNodeLabel,
3317
- Aa as LumeAlluvialNodeValue,
3315
+ Zl as LumeAlluvialDiagram,
3316
+ nl as LumeAlluvialGroup,
3317
+ xa as LumeAlluvialNodeHeader,
3318
+ _a as LumeAlluvialNodeLabel,
3319
+ ba as LumeAlluvialNodeValue,
3318
3320
  Lt as LumeAxis,
3319
- mt as LumeBar,
3320
- Xl as LumeBarChart,
3321
- ht as LumeBarGroup,
3321
+ ft as LumeBar,
3322
+ Ul as LumeBarChart,
3323
+ gt as LumeBarGroup,
3322
3324
  Ne as LumeChart,
3323
- ro as LumeChartContainer,
3325
+ uo as LumeChartContainer,
3324
3326
  $t as LumeChartLegend,
3325
- Kl as LumeGroupedBarChart,
3326
- $l as LumeLine,
3327
- Ql as LumeLineChart,
3327
+ Yl as LumeGroupedBarChart,
3328
+ Ll as LumeLine,
3329
+ Jl as LumeLineChart,
3328
3330
  un as LumeLineGroup,
3329
- Zo as LumeOverlayGroup,
3330
- wl as LumePoint,
3331
- Yl as LumeSingleBarChart,
3332
- ql as LumeSparklineChart,
3333
- Jl as LumeStackedBarChart,
3334
- No as LumeTooltip,
3335
- Lo as LumeTooltipItem,
3336
- yo as LumeTooltipSummary,
3337
- fo as LumeTooltipTitle
3331
+ Wo as LumeOverlayGroup,
3332
+ Il as LumePoint,
3333
+ Xl as LumeSingleBarChart,
3334
+ Ql as LumeSparklineChart,
3335
+ Kl as LumeStackedBarChart,
3336
+ Eo as LumeTooltip,
3337
+ To as LumeTooltipItem,
3338
+ _o as LumeTooltipSummary,
3339
+ mo as LumeTooltipTitle
3338
3340
  };
3339
3341
  //# sourceMappingURL=index.js.map