@adyen/lume-vue3 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +2 -0
  2. package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -1
  3. package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +2 -0
  4. package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -1
  5. package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +2 -0
  6. package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -1
  7. package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +2 -0
  8. package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -1
  9. package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +2 -0
  10. package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -1
  11. package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +2 -0
  12. package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -1
  13. package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +2 -0
  14. package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -1
  15. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +2 -0
  16. package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
  17. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +9 -0
  18. package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
  19. package/dist/@types/composables/events.d.ts.map +1 -1
  20. package/dist/@types/docs/storybook-helpers.d.ts.map +1 -1
  21. package/dist/@types/types/events.d.ts +1 -0
  22. package/dist/@types/types/events.d.ts.map +1 -1
  23. package/dist/index.js +692 -690
  24. package/dist/index.js.map +1 -1
  25. package/dist/scss/main.scss +1 -1
  26. package/dist/styles/main.css +1 -1
  27. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as W, ref as R, openBlock as y, createElementBlock as $, mergeProps as G, createElementVNode as C, toDisplayString as oe, createCommentVNode as Z, isRef as Ct, 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 Gt, onBeforeUnmount as jt, watchEffect as Vt, renderSlot as M, createTextVNode as ce, useSlots as re, withDirectives as cn, withCtx as V, createSlots as de, vShow as dn, pushScopeId as vn, popScopeId as mn, provide as Ke, createVNode as ie, nextTick as kt, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as fn } from "vue";
2
- import { format as pn, ticks as hn, scaleBand as He, scaleLinear as Be, link as gn, line as _n, area as yn } from "d3";
3
- import { createPopper as kn } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as bn, sankey as An, sankeyJustify as Tn } from "d3-sankey";
5
- const Ln = {
1
+ import { defineComponent as W, ref as R, openBlock as y, createElementBlock as x, mergeProps as G, createElementVNode as C, toDisplayString as oe, createCommentVNode as Z, isRef as Ct, 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 Gt, onBeforeUnmount as jt, watchEffect as Vt, renderSlot as M, createTextVNode as ce, useSlots as re, withDirectives as sn, withCtx as V, 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 = {
6
6
  class: "axis__tick-label lume-typography--axis",
7
7
  "pointer-events": "all",
8
8
  "data-j-axis__tick-label": ""
9
- }, On = /* @__PURE__ */ W({
9
+ }, Ln = /* @__PURE__ */ W({
10
10
  __name: "lume-tick",
11
11
  props: {
12
12
  value: {
@@ -45,7 +45,7 @@ const Ln = {
45
45
  emits: ["click", "mouseenter"],
46
46
  setup(e, { expose: n, emit: t }) {
47
47
  const o = t, a = R(null);
48
- return n({ ref: a }), (u, l) => (y(), $("g", G(e.group, {
48
+ return n({ ref: a }), (u, l) => (y(), x("g", G(e.group, {
49
49
  class: ["axis__tick", {
50
50
  "axis__tick--hovered": e.isHovered,
51
51
  "axis__tick--hidden": e.isHidden
@@ -54,7 +54,7 @@ const Ln = {
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
- C("g", Ln, [
57
+ C("g", Tn, [
58
58
  C("rect", G(e.ghost, {
59
59
  class: "axis__ghost",
60
60
  fill: "url(#lume-tick-gradient)"
@@ -65,7 +65,7 @@ const Ln = {
65
65
  class: "axis__label"
66
66
  }), oe(e.value), 17)
67
67
  ]),
68
- e.withGridlines ? (y(), $("line", G({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : Z("", !0)
68
+ e.withGridlines ? (y(), x("line", G({ 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(On, [["__scopeId", "data-v-59ddc0a6"]]), xn = [
77
+ }, bt = /* @__PURE__ */ ee(Ln, [["__scopeId", "data-v-59ddc0a6"]]), On = [
78
78
  "controls",
79
79
  "legend",
80
80
  "axes",
@@ -107,7 +107,7 @@ function zt(e, n) {
107
107
  t[o] = Qe(e[o]) && Qe(a) ? zt(e[o], a) : a;
108
108
  }), t;
109
109
  }
110
- function wn(e) {
110
+ function xn(e) {
111
111
  return e != null && Qe(e) && "value" in e;
112
112
  }
113
113
  function ve(e) {
@@ -120,7 +120,7 @@ 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 En = (e, n) => {
123
+ const wn = (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 En = (e, n) => {
129
129
  ({ values: o }) => o.length - 1 >= n
130
130
  ) || ge(me.IndexExceedsLengthOfDataSets);
131
131
  };
132
- function Nn(e, n) {
132
+ function En(e, n) {
133
133
  var t;
134
- return En(e, n), ((t = e.reduce(
134
+ return wn(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,17 +148,17 @@ function Wt(e) {
148
148
  );
149
149
  return Array(t).fill(null);
150
150
  }
151
- function Dn(e) {
151
+ function Nn(e) {
152
152
  return ve(e) ? e.domain().length : Math.max(...e.domain());
153
153
  }
154
- function Hn(e, n) {
154
+ function Dn(e, n) {
155
155
  return (t) => Math.round(e * (1 - t) + n * t);
156
156
  }
157
- function Bn(e, n, t) {
157
+ function Hn(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
  }
161
- function Le(e) {
161
+ function Te(e) {
162
162
  if (e.groups) {
163
163
  const n = Object.keys(e);
164
164
  return Object.assign(
@@ -168,15 +168,15 @@ function Le(e) {
168
168
  }
169
169
  return e;
170
170
  }
171
- function Mn(e) {
171
+ function Bn(e) {
172
172
  return Object.assign(
173
173
  {},
174
174
  ...Object.keys(e).map(
175
- (n) => xn.includes(n) ? {} : { [n]: e[n] }
175
+ (n) => On.includes(n) ? {} : { [n]: e[n] }
176
176
  )
177
177
  );
178
178
  }
179
- const Sn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
179
+ const Mn = (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
  );
@@ -186,16 +186,16 @@ function st(e, n) {
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 Rn = "[lume] ";
189
+ const Sn = "[lume] ";
190
190
  function ge(e, n = !0) {
191
- n && Pt() || console.warn(Rn + "Warning: " + e);
191
+ n && Pt() || console.warn(Sn + "Warning: " + e);
192
192
  }
193
193
  const je = (e) => {
194
194
  let n = null;
195
195
  switch (typeof e) {
196
196
  case "string":
197
197
  try {
198
- n = pn(e);
198
+ n = fn(e);
199
199
  } catch {
200
200
  ge(me.InvalidFormat), n = null;
201
201
  }
@@ -210,7 +210,7 @@ const je = (e) => {
210
210
  return n ? n(...o) : o[0];
211
211
  }
212
212
  return t;
213
- }, Me = () => ({
213
+ }, Se = () => ({
214
214
  options: {
215
215
  type: Object,
216
216
  default: () => ({})
@@ -222,26 +222,26 @@ function fe(e, n) {
222
222
  return o ? zt(o, e.value) : e.value;
223
223
  }) };
224
224
  }
225
- const Cn = 0.2;
226
- function Gn(e, n, t) {
225
+ const Rn = 0.2;
226
+ function Cn(e, n, t) {
227
227
  const o = R(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
228
228
  function l() {
229
229
  if (!n.value)
230
230
  return;
231
- const s = n.value.reduce(
231
+ const c = n.value.reduce(
232
232
  (f, r) => f + r.ref.getBoundingClientRect().width,
233
233
  0
234
- ), c = Math.ceil(s / u.value);
235
- o.value = c + c * Cn;
234
+ ), s = Math.ceil(c / u.value);
235
+ o.value = s + s * Rn;
236
236
  }
237
- function i(s) {
237
+ function i(c) {
238
238
  if (!n.value)
239
239
  return !0;
240
- const c = t.value.skip, f = n.value.length;
241
- if (s === 0)
240
+ const s = t.value.skip, f = n.value.length;
241
+ if (c === 0)
242
242
  return !0;
243
- const r = a.value / f, m = typeof c == "number" && c > 0 && c + 1 || Math.ceil(o.value / r);
244
- return s % m === 0;
243
+ const r = a.value / f, m = typeof s == "number" && s > 0 && s + 1 || Math.ceil(o.value / r);
244
+ return c % m === 0;
245
245
  }
246
246
  return U(n, l), { showTick: i };
247
247
  }
@@ -249,11 +249,11 @@ var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblu
249
249
  const B = {
250
250
  HORIZONTAL: "horizontal",
251
251
  VERTICAL: "vertical"
252
- }, jn = {
252
+ }, Gn = {
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, Se = 8, Vn = 1, Pn = [
256
+ }, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12, Re = 8, jn = 1, Vn = [
257
257
  "auto",
258
258
  "auto-start",
259
259
  "auto-end",
@@ -289,37 +289,37 @@ const Jt = {
289
289
  tickFormat: null,
290
290
  /** Space between the tick label and the axis line. */
291
291
  tickPadding: 8
292
- }, Fn = {
292
+ }, Pn = {
293
293
  ...Jt,
294
294
  withTitle: !1,
295
295
  skip: !0
296
- }, zn = {
296
+ }, Fn = {
297
297
  ...Jt,
298
298
  gridLines: !0
299
- }, Wn = function(e, n, t) {
299
+ }, zn = function(e, n, t) {
300
300
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
301
- function a(s, c) {
301
+ function a(c, s) {
302
302
  return {
303
- transform: `translate(${(e.value(c) ?? e.value(s)) - o.value}, 0)`
303
+ transform: `translate(${(e.value(s) ?? e.value(c)) - o.value}, 0)`
304
304
  };
305
305
  }
306
- function u(s) {
306
+ function u(c) {
307
307
  var f;
308
- const c = Math.max(
308
+ const s = Math.max(
309
309
  e.value.step(),
310
- (s ? (f = s.getComputedTextLength) == null ? void 0 : f.call(s) : e.value.step()) + 20
310
+ (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : e.value.step()) + 20
311
311
  );
312
312
  return {
313
- x: -(c - e.value.step()) / 2,
314
- width: c,
315
- height: t.value.tickPadding + Kt + Se
313
+ x: -(s - e.value.step()) / 2,
314
+ width: s,
315
+ height: t.value.tickPadding + Kt + Re
316
316
  };
317
317
  }
318
318
  function l() {
319
- const s = e.value.step() / 2;
319
+ const c = e.value.step() / 2;
320
320
  return {
321
- x1: s,
322
- x2: s,
321
+ x1: c,
322
+ x2: c,
323
323
  y1: -n.value.height
324
324
  // Negative height means it goes from bottom to top
325
325
  };
@@ -338,27 +338,27 @@ const Jt = {
338
338
  getTickGroupAttributes: a,
339
339
  getTickLabelAttributes: i
340
340
  };
341
- }, Zn = function(e, n, t) {
341
+ }, Wn = function(e, n, t) {
342
342
  const o = v(() => e.value.step() * e.value.paddingInner() / 2);
343
- function a(s, c) {
343
+ function a(c, s) {
344
344
  return {
345
- transform: `translate(0, ${(e.value(c) ?? e.value(s)) - o.value})`
345
+ transform: `translate(0, ${(e.value(s) ?? e.value(c)) - o.value})`
346
346
  };
347
347
  }
348
- function u(s) {
348
+ function u(c) {
349
349
  var f;
350
- const c = (s ? (f = s.getComputedTextLength) == null ? void 0 : f.call(s) : 42) + t.value.tickPadding + Se;
350
+ const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Re;
351
351
  return {
352
- x: -c,
353
- width: c,
352
+ x: -s,
353
+ width: s,
354
354
  height: e.value.step()
355
355
  };
356
356
  }
357
357
  function l() {
358
- const s = e.value.step() / 2;
358
+ const c = e.value.step() / 2;
359
359
  return {
360
- y1: s,
361
- y2: s,
360
+ y1: c,
361
+ y2: c,
362
362
  x1: n.value.width
363
363
  };
364
364
  }
@@ -376,19 +376,19 @@ const Jt = {
376
376
  getTickGroupAttributes: a,
377
377
  getTickLabelAttributes: i
378
378
  };
379
- }, Un = function(e, n, t) {
379
+ }, Zn = function(e, n, t) {
380
380
  const o = v(() => {
381
- const s = e.value.ticks();
382
- return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
381
+ const c = e.value.ticks();
382
+ return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
383
383
  });
384
- function a(s) {
384
+ function a(c) {
385
385
  return {
386
- transform: `translate(${e.value(s)}, 0)`
386
+ transform: `translate(${e.value(c)}, 0)`
387
387
  };
388
388
  }
389
389
  function u() {
390
390
  return {
391
- height: t.value.tickPadding + Kt + Se,
391
+ height: t.value.tickPadding + Kt + Re,
392
392
  width: o.value,
393
393
  x: -(o.value / 2)
394
394
  };
@@ -411,23 +411,23 @@ const Jt = {
411
411
  getTickGroupAttributes: a,
412
412
  getTickLabelAttributes: i
413
413
  };
414
- }, Xn = function(e, n, t) {
414
+ }, Un = function(e, n, t) {
415
415
  const o = v(() => {
416
- const s = e.value.ticks();
417
- return s.length > 1 ? e.value(s[1]) - e.value(s[0]) : 0;
416
+ const c = e.value.ticks();
417
+ return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
418
418
  });
419
- function a(s) {
419
+ function a(c) {
420
420
  return {
421
- transform: `translate(0, ${e.value(s)})`
421
+ transform: `translate(0, ${e.value(c)})`
422
422
  };
423
423
  }
424
- function u(s) {
424
+ function u(c) {
425
425
  var f;
426
- const c = (((f = s == null ? void 0 : s.getComputedTextLength) == null ? void 0 : f.call(s)) || 0) + t.value.tickPadding + Se;
426
+ const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Re;
427
427
  return {
428
- width: c,
428
+ width: s,
429
429
  height: o.value,
430
- x: -c,
430
+ x: -s,
431
431
  y: -(o.value / 2)
432
432
  };
433
433
  }
@@ -449,12 +449,12 @@ const Jt = {
449
449
  getTickGroupAttributes: a,
450
450
  getTickLabelAttributes: i
451
451
  };
452
- }, Yn = {
453
- "x-band-scale-axis": Wn,
454
- "y-band-scale-axis": Zn,
455
- "x-linear-scale-axis": Un,
456
- "y-linear-scale-axis": Xn
457
- }, Kn = ["transform"], Jn = { key: 0 }, Qn = /* @__PURE__ */ C("linearGradient", { id: "lume-tick-gradient" }, [
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__ */ C("linearGradient", { id: "lume-tick-gradient" }, [
458
458
  /* @__PURE__ */ C("stop", {
459
459
  offset: "0%",
460
460
  "stop-color": "rgba(255,255,255,0)"
@@ -471,8 +471,8 @@ const Jt = {
471
471
  offset: "100%",
472
472
  "stop-color": "rgba(255,255,255,0)"
473
473
  })
474
- ], -1), qn = [
475
- Qn
474
+ ], -1), Qn = [
475
+ Jn
476
476
  ];
477
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
478
  const Lt = /* @__PURE__ */ W({
@@ -504,20 +504,20 @@ const Lt = /* @__PURE__ */ W({
504
504
  type: String,
505
505
  default: B.VERTICAL
506
506
  },
507
- ...Me()
507
+ ...Se()
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: s, orientation: c } = te(o), f = Pe("isEmpty", R(!1)), r = Fe({}), m = R(null), g = R(null), p = R(null), b = v(
511
+ const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", R(!1)), r = Fe({}), m = R(null), g = R(null), p = R(null), b = v(
512
512
  () => o.type ? qe[o.type] : o.position
513
513
  ), L = v(
514
514
  () => o.type || (b.value === "left" ? "y" : "x")
515
515
  ), A = v(
516
- () => L.value === "x" && c.value === B.VERTICAL || L.value === "y" && c.value === B.HORIZONTAL
516
+ () => L.value === "x" && s.value === B.VERTICAL || L.value === "y" && s.value === B.HORIZONTAL
517
517
  ), { allOptions: h } = fe(
518
- s,
519
- L.value === "x" ? Fn : zn
520
- ), { showTick: x } = Gn(u, m, h), N = v(() => {
518
+ c,
519
+ L.value === "x" ? Pn : Fn
520
+ ), { showTick: $ } = Cn(u, m, h), N = v(() => {
521
521
  var S, k, E, _;
522
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})`;
523
523
  }), D = v(() => {
@@ -526,14 +526,14 @@ const Lt = /* @__PURE__ */ W({
526
526
  if (ve(u.value))
527
527
  return u.value.labels || u.value.domain();
528
528
  const { tickCount: S } = h.value, [k, E] = u.value.domain();
529
- return hn(k, E, S);
529
+ return pn(k, E, S);
530
530
  }), P = v(() => {
531
531
  const { tickFormat: S } = h.value;
532
532
  return je(S);
533
- }), I = v(
533
+ }), w = v(
534
534
  () => h.value.withHover && A.value && i.value > -1
535
535
  ), H = v(
536
- () => h.value.tickPadding + Se || 16
536
+ () => h.value.tickPadding + Re || 16
537
537
  ), Y = v(() => L.value === "x" ? (
538
538
  // If x axis, get the tick height
539
539
  Math.max(
@@ -570,7 +570,7 @@ const Lt = /* @__PURE__ */ W({
570
570
  if (!(!m.value || !m.value.length))
571
571
  return (k = m.value[S]) == null ? void 0 : k.ref;
572
572
  }
573
- function Oe() {
573
+ function Le() {
574
574
  p.value = D.value.map(
575
575
  (S, k) => ({
576
576
  value: K(S),
@@ -584,17 +584,17 @@ const Lt = /* @__PURE__ */ W({
584
584
  function ke() {
585
585
  p.value && p.value.map((S) => (S.gridline = r.getGridLinesAttributes(), S));
586
586
  }
587
- function xe() {
587
+ function Oe() {
588
588
  if (!u.value)
589
589
  return;
590
- const S = u.value.step ? "bandScale" : "linearScale", k = Yn[`${L.value}-${Qt[S]}`];
590
+ const S = u.value.step ? "bandScale" : "linearScale", k = Xn[`${L.value}-${Qt[S]}`];
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, xe, { flush: "sync", immediate: !0 }), U(u, Oe, { immediate: !0 }), U(m, Oe), U(Y, (S) => a("lume__internal--axis-size", S)), U(o.containerSize, ke), _e(() => ze(g.value)), (S, k) => d(u) ? (y(), $("g", {
597
+ return U(u, Oe, { 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(), x("g", {
598
598
  key: 0,
599
599
  ref_key: "root",
600
600
  ref: g,
@@ -603,19 +603,19 @@ 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(), $("defs", Jn, qn)) : Z("", !0),
607
- (y(!0), $(q, null, z(p.value, (E, _) => (y(), X(d(bt), G({
606
+ L.value === "x" ? (y(), x("defs", Kn, Qn)) : Z("", !0),
607
+ (y(!0), x(q, null, z(p.value, (E, _) => (y(), X(d(bt), G({
608
608
  key: `${E.value}_${_}`,
609
609
  ref_for: !0,
610
610
  ref_key: "tickRefs",
611
611
  ref: m
612
612
  }, E, {
613
- "is-hidden": d(h).skip && !d(x)(_),
613
+ "is-hidden": d(h).skip && !d($)(_),
614
614
  "with-gridlines": d(h).gridLines,
615
615
  onMouseenter: (j) => Q(_, E.value, j),
616
616
  onClick: (j) => F(_, E.value, j)
617
617
  }), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
618
- I.value ? (y(), X(d(bt), G({ key: 1 }, p.value[d(i)], {
618
+ w.value ? (y(), X(d(bt), G({ key: 1 }, p.value[d(i)], {
619
619
  "with-gridlines": !1,
620
620
  "is-hovered": "",
621
621
  onClick: k[0] || (k[0] = (E) => F(
@@ -624,10 +624,10 @@ const Lt = /* @__PURE__ */ W({
624
624
  E
625
625
  ))
626
626
  }), null, 16)) : Z("", !0)
627
- ], 40, Kn)) : Z("", !0);
627
+ ], 40, Yn)) : Z("", !0);
628
628
  }
629
629
  });
630
- function eo(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 eo(e, n, t, o) {
639
639
  );
640
640
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
641
641
  }
642
- function to(e, n, t, o) {
642
+ function eo(e, n, t, o) {
643
643
  const a = R(0), u = R(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 no = ["x", "y", "width", "height"], oo = /* @__PURE__ */ W({
648
+ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
649
649
  __name: "lume-bar",
650
650
  props: {
651
651
  x: {
@@ -683,10 +683,10 @@ const no = ["x", "y", "width", "height"], oo = /* @__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: s, classList: c } = te(t), f = R(null), r = v(
687
- () => typeof c.value == "string" ? [c.value] : c.value
688
- ), m = v(() => s.value === "width"), g = v(() => s.value === "height"), p = to(a, u, l, i), { computedX: b, computedY: L, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = eo(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
- return _e(() => ze(f.value)), (P, I) => (y(), $("rect", {
686
+ const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = R(null), r = v(
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), $ = 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
+ return _e(() => ze(f.value)), (P, w) => (y(), x("rect", {
690
690
  ref_key: "root",
691
691
  ref: f,
692
692
  class: ne(["lume-bar", [
@@ -701,17 +701,17 @@ const no = ["x", "y", "width", "height"], oo = /* @__PURE__ */ W({
701
701
  style: Gt({ transformOrigin: d(D) }),
702
702
  x: d(b),
703
703
  y: d(L),
704
- width: x.value,
704
+ width: $.value,
705
705
  height: N.value,
706
706
  "data-j-bar": "",
707
- onClick: I[0] || (I[0] = (H) => o("click", H)),
708
- onMouseover: I[1] || (I[1] = (H) => o("mouseover", H)),
709
- onMouseleave: I[2] || (I[2] = (H) => o("mouseleave", H))
710
- }, null, 46, no));
707
+ onClick: w[0] || (w[0] = (H) => o("click", H)),
708
+ onMouseover: w[1] || (w[1] = (H) => o("mouseover", H)),
709
+ onMouseleave: w[2] || (w[2] = (H) => o("mouseleave", H))
710
+ }, null, 46, to));
711
711
  }
712
712
  });
713
- const mt = /* @__PURE__ */ ee(oo, [["__scopeId", "data-v-8e8f732a"]]);
714
- function ao() {
713
+ const mt = /* @__PURE__ */ ee(no, [["__scopeId", "data-v-8e8f732a"]]);
714
+ function oo() {
715
715
  const e = R(), n = Fe({
716
716
  dimensions: {}
717
717
  }), t = new ResizeObserver((o) => {
@@ -725,7 +725,7 @@ function ao() {
725
725
  t.unobserve(e.value);
726
726
  }), { resizeState: n, resizeRef: e };
727
727
  }
728
- const lo = ["height"], uo = ["transform"], ro = /* @__PURE__ */ W({
728
+ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
729
729
  __name: "lume-chart-container",
730
730
  props: {
731
731
  margins: {
@@ -747,13 +747,13 @@ const lo = ["height"], uo = ["transform"], ro = /* @__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 = R(null), { resizeRef: i, resizeState: s } = ao(), c = v(
750
+ const t = e, o = n, { margins: a, containerSize: u } = te(t), l = R(null), { resizeRef: i, resizeState: c } = oo(), s = v(
751
751
  () => u.value.height + a.value.top + a.value.bottom
752
752
  );
753
753
  return Vt(() => {
754
754
  if (!l.value)
755
755
  return;
756
- const { width: f } = s.dimensions, { height: r } = l.value.getBoundingClientRect();
756
+ const { width: f } = c.dimensions, { height: r } = l.value.getBoundingClientRect();
757
757
  if (!f || !r)
758
758
  return;
759
759
  const m = f - a.value.left - a.value.right, g = r - a.value.top - a.value.bottom, p = {
@@ -763,7 +763,7 @@ const lo = ["height"], uo = ["transform"], ro = /* @__PURE__ */ W({
763
763
  outerHeight: r
764
764
  };
765
765
  o("resize", p);
766
- }), (f, r) => (y(), $("div", {
766
+ }), (f, r) => (y(), x("div", {
767
767
  ref_key: "resizeRef",
768
768
  ref: i,
769
769
  class: ne(["lume-chart-container", {
@@ -772,13 +772,13 @@ const lo = ["height"], uo = ["transform"], ro = /* @__PURE__ */ W({
772
772
  "data-j-chart-container": ""
773
773
  }, [
774
774
  M(f.$slots, "header", {}, void 0, !0),
775
- (y(), $("svg", {
775
+ (y(), x("svg", {
776
776
  ref_key: "root",
777
777
  ref: l,
778
778
  class: ne(["lume-chart-container__svg", {
779
779
  "lume-chart-container__svg--transparent": e.transparentBackground
780
780
  }]),
781
- height: c.value,
781
+ height: s.value,
782
782
  "data-j-chart-container__root": "",
783
783
  onClick: r[0] || (r[0] = (m) => o("click", m)),
784
784
  onMouseenter: r[1] || (r[1] = (m) => o("mouseenter", m)),
@@ -790,14 +790,14 @@ const lo = ["height"], uo = ["transform"], ro = /* @__PURE__ */ W({
790
790
  "data-j-chart-container__group": ""
791
791
  }, [
792
792
  M(f.$slots, "default", {}, void 0, !0)
793
- ], 8, uo)
794
- ], 42, lo)),
793
+ ], 8, lo)
794
+ ], 42, ao)),
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 io = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-2c7d0302"]]), so = ["onClick", "onMouseenter"], co = /* @__PURE__ */ W({
800
+ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["onClick", "onMouseenter"], so = /* @__PURE__ */ W({
801
801
  __name: "lume-chart-legend",
802
802
  props: {
803
803
  data: {
@@ -809,12 +809,12 @@ const io = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-2c7d0302"]]), so = ["on
809
809
  emits: ["click", "mouseenter", "mouseleave"],
810
810
  setup(e, { emit: n }) {
811
811
  const t = n;
812
- return (o, a) => (y(), $("div", {
812
+ return (o, a) => (y(), x("div", {
813
813
  class: "lume-chart-legend",
814
814
  "data-j-chart-legend": "",
815
815
  onMouseleave: a[0] || (a[0] = (u) => t("mouseleave"))
816
816
  }, [
817
- (y(!0), $(q, null, z(e.data, (u, l) => (y(), $("div", {
817
+ (y(!0), x(q, null, z(e.data, (u, l) => (y(), x("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 io = /* @__PURE__ */ ee(ro, [["__scopeId", "data-v-2c7d0302"]]), so = ["on
827
827
  "data-j-chart-legend__symbol": ""
828
828
  }, null, 2),
829
829
  ce(" " + oe(u.label || l), 1)
830
- ], 40, so))), 128))
830
+ ], 40, io))), 128))
831
831
  ], 32));
832
832
  }
833
833
  });
834
- const Ot = /* @__PURE__ */ ee(co, [["__scopeId", "data-v-f8ebd3b9"]]);
835
- const vo = {}, mo = {
834
+ const Ot = /* @__PURE__ */ ee(so, [["__scopeId", "data-v-f8ebd3b9"]]);
835
+ const co = {}, vo = {
836
836
  class: "lume-tooltip__title",
837
837
  "data-j-tooltip__title": ""
838
838
  };
839
- function fo(e, n) {
840
- return y(), $("div", mo, [
839
+ function mo(e, n) {
840
+ return y(), x("div", vo, [
841
841
  M(e.$slots, "default", {}, void 0, !0)
842
842
  ]);
843
843
  }
844
- const po = /* @__PURE__ */ ee(vo, [["render", fo], ["__scopeId", "data-v-8af3fac6"]]);
845
- const ho = {}, go = {
844
+ const fo = /* @__PURE__ */ ee(co, [["render", mo], ["__scopeId", "data-v-8af3fac6"]]);
845
+ const po = {}, ho = {
846
846
  class: "lume-tooltip__item",
847
847
  "data-j-tooltip__summary-item": ""
848
- }, _o = { class: "lume-tooltip__value" };
849
- function yo(e, n) {
850
- return y(), $("li", go, [
848
+ }, go = { class: "lume-tooltip__value" };
849
+ function _o(e, n) {
850
+ return y(), x("li", ho, [
851
851
  C("span", null, [
852
852
  M(e.$slots, "default", {}, void 0, !0)
853
853
  ]),
854
- C("strong", _o, [
854
+ C("strong", go, [
855
855
  M(e.$slots, "value", {}, void 0, !0)
856
856
  ])
857
857
  ]);
858
858
  }
859
- const ko = /* @__PURE__ */ ee(ho, [["render", yo], ["__scopeId", "data-v-4ed7ec1b"]]), bo = {
859
+ const yo = /* @__PURE__ */ ee(po, [["render", _o], ["__scopeId", "data-v-4ed7ec1b"]]), ko = {
860
860
  class: "lume-tooltip__item",
861
861
  "data-j-tooltip__item": ""
862
- }, Ao = { "data-j-tooltip__item__label": "" }, To = {
862
+ }, bo = { "data-j-tooltip__item__label": "" }, Ao = {
863
863
  class: "lume-tooltip__value",
864
864
  "data-j-tooltip__item__value": ""
865
- }, Lo = /* @__PURE__ */ W({
865
+ }, To = /* @__PURE__ */ W({
866
866
  __name: "lume-tooltip-item",
867
867
  props: {
868
868
  color: {
@@ -871,29 +871,33 @@ const ko = /* @__PURE__ */ ee(ho, [["render", yo], ["__scopeId", "data-v-4ed7ec1
871
871
  }
872
872
  },
873
873
  setup(e) {
874
- return (n, t) => (y(), $("li", bo, [
875
- e.color ? (y(), $("span", {
874
+ return (n, t) => (y(), x("li", ko, [
875
+ e.color ? (y(), x("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
879
  }, null, 2)) : Z("", !0),
880
- C("span", Ao, [
880
+ C("span", bo, [
881
881
  M(n.$slots, "label", {}, void 0, !0)
882
882
  ]),
883
- C("strong", To, [
883
+ C("strong", Ao, [
884
884
  M(n.$slots, "value", {}, void 0, !0)
885
885
  ])
886
886
  ]));
887
887
  }
888
888
  });
889
- const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e) => (vn("data-v-c96a2010"), e = e(), mn(), e), $o = { class: "lume-tooltip__items" }, wo = {
889
+ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e) => (dn("data-v-e0426df7"), e = e(), vn(), e), $o = { class: "lume-tooltip__items" }, xo = {
890
890
  key: 0,
891
891
  class: "lume-tooltip__break"
892
- }, Io = /* @__PURE__ */ xo(() => /* @__PURE__ */ C("hr", null, null, -1)), Eo = [
892
+ }, Io = /* @__PURE__ */ Oo(() => /* @__PURE__ */ C("hr", null, null, -1)), wo = [
893
893
  Io
894
- ], No = /* @__PURE__ */ W({
894
+ ], Eo = /* @__PURE__ */ W({
895
895
  __name: "lume-tooltip",
896
896
  props: {
897
+ opened: {
898
+ type: Boolean,
899
+ default: !1
900
+ },
897
901
  targetElement: {
898
902
  type: Element,
899
903
  default: null
@@ -905,7 +909,7 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
905
909
  position: {
906
910
  type: String,
907
911
  default: "auto",
908
- validator: (e) => Pn.includes(e)
912
+ validator: (e) => Vn.includes(e)
909
913
  },
910
914
  fixedPositioning: {
911
915
  type: Boolean,
@@ -927,12 +931,12 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
927
931
  type: String,
928
932
  default: null
929
933
  },
930
- ...Me()
934
+ ...Se()
931
935
  },
932
936
  emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
933
937
  setup(e, { emit: n }) {
934
- const t = e, o = n, a = R(null), { items: u, options: l } = te(t), i = re(), s = R(null), { allOptions: c } = fe(l), f = v(
935
- () => c.value.fixedPositioning ?? t.fixedPositioning
938
+ const t = e, o = n, a = R(null), { items: u, options: l } = te(t), i = re(), c = R(null), { allOptions: s } = fe(l), f = v(
939
+ () => s.value.fixedPositioning ?? t.fixedPositioning
936
940
  ), r = v(
937
941
  () => f.value ? "fixed" : "absolute"
938
942
  ), m = v(() => [
@@ -945,52 +949,52 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
945
949
  },
946
950
  {
947
951
  name: "offset",
948
- options: { offset: [0, c.value.offset || 8] }
952
+ options: { offset: [0, s.value.offset || 8] }
949
953
  },
950
954
  ...t.modifiers || []
951
955
  ]), g = v(
952
- () => c.value.showTitle !== !1 && t.title != null
953
- ), p = v(() => je(c.value.valueFormat)), b = v(() => je(c.value.titleFormat)), L = v(
956
+ () => s.value.showTitle !== !1 && t.title != null
957
+ ), p = v(() => je(s.value.valueFormat)), b = v(() => je(s.value.titleFormat)), L = v(
954
958
  () => {
955
959
  var P;
956
- return ((P = u.value) == null ? void 0 : P.find((I) => I.isSummary)) || {
957
- label: c.value.summary ?? t.summary
960
+ return ((P = u.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
961
+ label: s.value.summary ?? t.summary
958
962
  };
959
963
  }
960
- ), A = v(() => i.summary || L.value.label), h = v(() => t.inverse || c.value.inverse ? [...u.value].reverse() : u.value);
961
- function x() {
962
- t.targetElement && a.value && (s.value = kn(t.targetElement, a.value, {
964
+ ), A = v(() => i.summary || L.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
965
+ function $() {
966
+ t.targetElement && a.value && (c.value = yn(t.targetElement, a.value, {
963
967
  placement: t.position,
964
968
  strategy: r.value,
965
969
  modifiers: m.value
966
970
  }), o("opened", t.targetElement));
967
971
  }
968
972
  function N() {
969
- s.value && (s.value.destroy(), o("closed"));
973
+ c.value && (c.value.destroy(), o("closed"), a.value.classList.remove("lume-tooltip--animated"));
970
974
  }
971
975
  function D() {
972
- s.value && (c.value.withAnimation !== !1 && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
973
- s.value.state.elements.reference = t.targetElement, s.value.update(), o("moved", t.targetElement);
976
+ c.value && (s.value.withAnimation !== !1 && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
977
+ c.value.state.elements.reference = t.targetElement, c.value.update(), o("moved", t.targetElement);
974
978
  }() : N());
975
979
  }
976
980
  return U(
977
981
  () => t.targetElement,
978
- (P, I) => {
979
- !I && P ? x() : D();
982
+ (P, w) => {
983
+ !w && P ? $() : D();
980
984
  }
981
- ), _e(x), jt(N), (P, I) => cn((y(), $("div", {
985
+ ), _e($), jt(N), (P, w) => sn((y(), x("div", {
982
986
  ref_key: "root",
983
987
  ref: a,
984
988
  class: ne(["lume-tooltip lume-typography--caption", {
985
989
  "lume-tooltip--pointer-events": d(l).withPointerEvents
986
990
  }]),
987
991
  "data-j-tooltip": "",
988
- onMouseenter: I[0] || (I[0] = (H) => o("tooltip-mouseenter")),
989
- onMouseleave: I[1] || (I[1] = (H) => o("tooltip-mouseleave"))
992
+ onMouseenter: w[0] || (w[0] = (H) => o("tooltip-mouseenter")),
993
+ onMouseleave: w[1] || (w[1] = (H) => o("tooltip-mouseleave"))
990
994
  }, [
991
995
  M(P.$slots, "default", {}, () => [
992
996
  M(P.$slots, "title", {}, () => [
993
- g.value ? (y(), X(d(po), { key: 0 }, {
997
+ g.value ? (y(), X(d(fo), { key: 0 }, {
994
998
  default: V(() => [
995
999
  ce(oe(b.value(e.title)), 1)
996
1000
  ]),
@@ -999,7 +1003,7 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
999
1003
  ], !0),
1000
1004
  C("ul", $o, [
1001
1005
  M(P.$slots, "summary", {}, () => [
1002
- A.value ? (y(), X(d(ko), { key: 0 }, de({
1006
+ A.value ? (y(), X(d(yo), { key: 0 }, de({
1003
1007
  default: V(() => [
1004
1008
  ce(oe(L.value.label) + " ", 1)
1005
1009
  ]),
@@ -1014,9 +1018,9 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
1014
1018
  } : void 0
1015
1019
  ]), 1024)) : Z("", !0)
1016
1020
  ], !0),
1017
- A.value ? (y(), $("li", wo, Eo)) : Z("", !0),
1021
+ A.value ? (y(), x("li", xo, wo)) : Z("", !0),
1018
1022
  M(P.$slots, "items", {}, () => [
1019
- (y(!0), $(q, null, z(h.value, (H) => (y(), X(d(Oo), {
1023
+ (y(!0), x(q, null, z(h.value, (H) => (y(), X(d(Lo), {
1020
1024
  key: H.label,
1021
1025
  color: H.color
1022
1026
  }, {
@@ -1032,57 +1036,57 @@ const Oo = /* @__PURE__ */ ee(Lo, [["__scopeId", "data-v-4f995c3c"]]), xo = (e)
1032
1036
  ])
1033
1037
  ], !0)
1034
1038
  ], 34)), [
1035
- [dn, e.targetElement]
1039
+ [cn, e.opened && e.targetElement]
1036
1040
  ]);
1037
1041
  }
1038
1042
  });
1039
- const Do = /* @__PURE__ */ ee(No, [["__scopeId", "data-v-c96a2010"]]);
1040
- var Ae = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(Ae || {});
1041
- const Ho = Ae.Categorical, Re = se.Skyblue, Bo = ct.SkyTeal;
1042
- function Mo(e) {
1043
- return e === Ae.Divergent ? Bo : Re;
1043
+ const No = /* @__PURE__ */ ee(Eo, [["__scopeId", "data-v-e0426df7"]]);
1044
+ var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {});
1045
+ const Do = be.Categorical, Ce = se.Skyblue, Ho = ct.SkyTeal;
1046
+ function Bo(e) {
1047
+ return e === be.Divergent ? Ho : Ce;
1044
1048
  }
1045
- function So(e) {
1049
+ function Mo(e) {
1046
1050
  return Object.values(vt).includes(e);
1047
1051
  }
1048
- function xt(e, n) {
1049
- return n === Ae.Divergent ? Object.values(ct).includes(e) : Object.values({
1052
+ function $t(e, n) {
1053
+ return n === be.Divergent ? Object.values(ct).includes(e) : Object.values({
1050
1054
  ...se,
1051
1055
  ...Zt,
1052
1056
  ...dt,
1053
1057
  ...vt
1054
1058
  }).includes(e);
1055
1059
  }
1056
- function Ro(e, n) {
1060
+ function So(e, n) {
1057
1061
  const t = Object.values(se).indexOf(e);
1058
- return Bn(Object.values(se), t > -1 ? t : 0)[n];
1062
+ return Hn(Object.values(se), t > -1 ? t : 0)[n];
1059
1063
  }
1060
- function Co(e, n) {
1064
+ function Ro(e, n) {
1061
1065
  const t = 50 + n * 10;
1062
1066
  return `${e}-${t}`;
1063
1067
  }
1064
- function Go(e, n) {
1068
+ function Co(e, n) {
1065
1069
  const t = (n + 1) * 10;
1066
1070
  return `${e}-${t}`;
1067
1071
  }
1068
- function $t(e, n, t) {
1072
+ function xt(e, n, t) {
1069
1073
  switch (n) {
1070
1074
  default:
1071
- case Ae.Categorical:
1072
- return So(e) ? e : Ro(e, t);
1073
- case Ae.Sequential:
1075
+ case be.Categorical:
1076
+ return Mo(e) ? e : So(e, t);
1077
+ case be.Sequential:
1078
+ return Ro(e, t);
1079
+ case be.Divergent:
1074
1080
  return Co(e, t);
1075
- case Ae.Divergent:
1076
- return Go(e, t);
1077
1081
  }
1078
1082
  }
1079
- function jo(e, n, t = Ho, o) {
1080
- return xt(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), xt(n, t) ? $t(n, t, o) : $t(Mo(t), t, o));
1083
+ function Go(e, n, t = Do, o) {
1084
+ return $t(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), $t(n, t) ? xt(n, t, o) : xt(Bo(t), t, o));
1081
1085
  }
1082
- function Vo(e) {
1083
- return e.map((n) => wn(n) ? n : { value: n });
1086
+ function jo(e) {
1087
+ return e.map((n) => xn(n) ? n : { value: n });
1084
1088
  }
1085
- function Po(e) {
1089
+ function Vo(e) {
1086
1090
  return e.__internal === !0;
1087
1091
  }
1088
1092
  const ft = (e = null) => ({
@@ -1108,13 +1112,13 @@ function pt(e, n, t, o, a) {
1108
1112
  const u = Fe({
1109
1113
  width: 0,
1110
1114
  height: 0
1111
- }), l = Sn(12), i = v(() => {
1115
+ }), l = Mn(12), i = v(() => {
1112
1116
  var f;
1113
1117
  return e.value.length > 5 && ge(me.DatasetLength), (f = e.value) == null ? void 0 : f.map(
1114
1118
  (r, m) => {
1115
- if (Po(r))
1119
+ if (Vo(r))
1116
1120
  return r;
1117
- const g = Vo(r.values), p = jo(
1121
+ const g = jo(r.values), p = Go(
1118
1122
  r.color,
1119
1123
  t == null ? void 0 : t.value,
1120
1124
  o == null ? void 0 : o.value.colorPalette,
@@ -1128,20 +1132,20 @@ function pt(e, n, t, o, a) {
1128
1132
  };
1129
1133
  }
1130
1134
  );
1131
- }), s = v(() => Array.isArray(n.value) ? n.value : Wt(e.value).map((f, r) => r));
1132
- function c(f) {
1133
- const r = (a == null ? void 0 : a.value) === B.HORIZONTAL && s.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
1135
+ }), c = v(() => Array.isArray(n.value) ? n.value : Wt(e.value).map((f, r) => r));
1136
+ function s(f) {
1137
+ const r = (a == null ? void 0 : a.value) === B.HORIZONTAL && c.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
1134
1138
  u.width = f.width, u.height = r;
1135
1139
  }
1136
1140
  return {
1137
1141
  chartID: l,
1138
- computedLabels: s,
1142
+ computedLabels: c,
1139
1143
  containerSize: u,
1140
1144
  internalData: i,
1141
- updateSize: c
1145
+ updateSize: s
1142
1146
  };
1143
1147
  }
1144
- const Fo = () => ({
1148
+ const Po = () => ({
1145
1149
  xScale: {
1146
1150
  type: Function,
1147
1151
  default: null
@@ -1151,48 +1155,48 @@ const Fo = () => ({
1151
1155
  default: null
1152
1156
  }
1153
1157
  });
1154
- function zo(e, n, t, o, a) {
1158
+ function Fo(e, n, t, o, a) {
1155
1159
  const u = R(null), l = R(null);
1156
1160
  function i() {
1157
1161
  var f, r, m, g;
1158
- const { width: s, height: c } = t;
1159
- !s && !c || (o.value === B.HORIZONTAL ? (u.value = (f = e.value) != null && f.length ? It(
1162
+ const { width: c, height: s } = t;
1163
+ !c && !s || (o.value === B.HORIZONTAL ? (u.value = (f = e.value) != null && f.length ? wt(
1160
1164
  e.value,
1161
- s,
1165
+ c,
1162
1166
  o.value,
1163
1167
  a.value.startOnZero
1164
- ) : null, l.value = (r = n.value) != null && r.length ? wt(
1168
+ ) : null, l.value = (r = n.value) != null && r.length ? It(
1165
1169
  n.value,
1166
- c,
1170
+ s,
1167
1171
  o.value,
1168
1172
  a.value
1169
- ) : null) : (u.value = (m = n.value) != null && m.length ? wt(
1173
+ ) : null) : (u.value = (m = n.value) != null && m.length ? It(
1170
1174
  n.value,
1171
- s,
1175
+ c,
1172
1176
  o.value,
1173
1177
  a.value
1174
- ) : null, l.value = (g = e.value) != null && g.length ? It(
1178
+ ) : null, l.value = (g = e.value) != null && g.length ? wt(
1175
1179
  e.value,
1176
- c,
1180
+ s,
1177
1181
  o.value,
1178
1182
  a.value.startOnZero
1179
1183
  ) : null));
1180
1184
  }
1181
1185
  return Vt(i), { xScale: u, yScale: l };
1182
1186
  }
1183
- function wt(e, n, t, o) {
1184
- const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, s = u ?? (t === B.HORIZONTAL ? Yt : Xt);
1187
+ function It(e, n, t, o) {
1188
+ const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, c = u ?? (t === B.HORIZONTAL ? Yt : Xt);
1185
1189
  return Object.assign(
1186
- He().range(a).paddingInner(l ?? s).paddingOuter(i ?? s).domain(e.map((c, f) => f)),
1190
+ Be().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
1187
1191
  { labels: e }
1188
1192
  );
1189
1193
  }
1190
- function It(e, n, t, o) {
1194
+ function wt(e, n, t, o) {
1191
1195
  const a = Ft(e).filter((f) => f != null), u = [0, n];
1192
1196
  if (a.length === 0)
1193
- return Be().range(u).domain([0, 0]).nice();
1194
- const l = Math.min(...a), i = o && l > 0 ? 0 : l, s = Math.max(...a), c = t === B.HORIZONTAL ? [i, s] : [s, i];
1195
- return Be().range(u).domain(c).nice();
1197
+ return Me().range(u).domain([0, 0]).nice();
1198
+ const l = Math.min(...a), i = o && l > 0 ? 0 : l, c = Math.max(...a), s = t === B.HORIZONTAL ? [i, c] : [c, i];
1199
+ return Me().range(u).domain(s).nice();
1196
1200
  }
1197
1201
  function Et(e) {
1198
1202
  return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
@@ -1211,10 +1215,10 @@ function Nt(e, n, {
1211
1215
  function en(e) {
1212
1216
  return Object.values(B).includes(e);
1213
1217
  }
1214
- const Ne = (e, n = !0) => ({
1218
+ const Ee = (e, n = !0) => ({
1215
1219
  ...ft(e),
1216
- ...Fo(),
1217
- ...Me(),
1220
+ ...Po(),
1221
+ ...Se(),
1218
1222
  classList: {
1219
1223
  type: [String, Array],
1220
1224
  default: () => []
@@ -1230,9 +1234,9 @@ const Ne = (e, n = !0) => ({
1230
1234
  validator: en
1231
1235
  }
1232
1236
  } : {}
1233
- }), Wo = (e) => ({
1237
+ }), zo = (e) => ({
1234
1238
  ...ft(e),
1235
- ...Me(),
1239
+ ...Se(),
1236
1240
  hoveredElement: {
1237
1241
  type: [Number, String],
1238
1242
  default: null
@@ -1279,7 +1283,7 @@ const Ne = (e, n = !0) => ({
1279
1283
  type: [String, Array],
1280
1284
  default: () => []
1281
1285
  }
1282
- }), Zo = { class: "lume-overlay-group" }, Uo = /* @__PURE__ */ W({
1286
+ }), Wo = { class: "lume-overlay-group" }, Zo = /* @__PURE__ */ W({
1283
1287
  __name: "lume-overlay-group",
1284
1288
  props: {
1285
1289
  ...We(),
@@ -1290,8 +1294,8 @@ const Ne = (e, n = !0) => ({
1290
1294
  },
1291
1295
  emits: ["click", "lume__internal--hover", "mouseover"],
1292
1296
  setup(e, { emit: n }) {
1293
- const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = te(t), s = v(() => Wt(a));
1294
- function c(f) {
1297
+ const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = te(t), c = v(() => Wt(a));
1298
+ function s(f) {
1295
1299
  var A;
1296
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;
1297
1301
  return u.value === B.HORIZONTAL ? {
@@ -1304,8 +1308,8 @@ const Ne = (e, n = !0) => ({
1304
1308
  transform: `translate(${L}, 0)`
1305
1309
  };
1306
1310
  }
1307
- return (f, r) => (y(), $("g", Zo, [
1308
- (y(!0), $(q, null, z(s.value, (m, g) => (y(), X(d(mt), G(c(g), {
1311
+ return (f, r) => (y(), x("g", Wo, [
1312
+ (y(!0), x(q, null, z(c.value, (m, g) => (y(), X(d(mt), G(s(g), {
1309
1313
  key: `overlay-${g}`,
1310
1314
  "data-j-lume-overlay-group": g,
1311
1315
  transition: !1,
@@ -1322,28 +1326,28 @@ const Ne = (e, n = !0) => ({
1322
1326
  }
1323
1327
  return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
1324
1328
  };
1325
- function Xo(e) {
1329
+ function Uo(e) {
1326
1330
  return { hasNegativeValues: v(
1327
1331
  () => Ft(e.value).some((t) => t < 0)
1328
1332
  ) };
1329
1333
  }
1330
- function Yo(e, n, t, o) {
1334
+ function Xo(e, n, t, o) {
1331
1335
  const a = v(
1332
1336
  () => o.value === B.HORIZONTAL
1333
1337
  ), u = v(
1334
1338
  () => {
1335
- var c;
1336
- return e.height - (a != null && a.value ? 0 : ((c = t.value) == null ? void 0 : c.call(t, 0)) || 0);
1339
+ var s;
1340
+ return e.height - (a != null && a.value ? 0 : ((s = t.value) == null ? void 0 : s.call(t, 0)) || 0);
1337
1341
  }
1338
1342
  ), l = v(
1339
1343
  () => {
1340
- var c;
1341
- return a != null && a.value ? ((c = n.value) == null ? void 0 : c.call(n, 0)) || 0 : e.width;
1344
+ var s;
1345
+ return a != null && a.value ? ((s = n.value) == null ? void 0 : s.call(n, 0)) || 0 : e.width;
1342
1346
  }
1343
1347
  ), i = v(
1344
1348
  () => {
1345
- var c;
1346
- return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((c = t.value) == null ? void 0 : c.call(t, 0)) || 0})`;
1349
+ var s;
1350
+ return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = t.value) == null ? void 0 : s.call(t, 0)) || 0})`;
1347
1351
  }
1348
1352
  );
1349
1353
  return { negativeBarAttributes: v(() => ({
@@ -1352,12 +1356,12 @@ function Yo(e, n, t, o) {
1352
1356
  transform: i.value
1353
1357
  })) };
1354
1358
  }
1355
- function Ko(e, n) {
1359
+ function Yo(e, n) {
1356
1360
  return e.reduce((t, o) => st(o.values, n).map(
1357
1361
  (a, u) => t[u] ? a.value > t[u] ? a.value : t[u] : a.value ?? 0
1358
1362
  ), []);
1359
1363
  }
1360
- function Jo(e, n) {
1364
+ function Ko(e, n) {
1361
1365
  return e.reduce((t, o) => st(o.values, n).map(
1362
1366
  (a, u) => {
1363
1367
  const l = a.value == null || a.value < 0 ? 0 : a.value;
@@ -1366,21 +1370,21 @@ function Jo(e, n) {
1366
1370
  ), []);
1367
1371
  }
1368
1372
  const Dt = {
1369
- "stacked-bar": Jo
1373
+ "stacked-bar": Ko
1370
1374
  };
1371
1375
  function tn(e, n, t, o, a, u, l, i) {
1372
- const s = v(
1376
+ const c = v(
1373
1377
  () => {
1374
1378
  var f;
1375
1379
  return n.value.withTooltip !== !1 && !((f = n.value.tooltipOptions) != null && f.targetElement);
1376
1380
  }
1377
1381
  );
1378
- function c(f) {
1382
+ function s(f) {
1379
1383
  var g;
1380
1384
  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](
1381
1385
  f,
1382
1386
  r
1383
- ) : Ko(f, r);
1387
+ ) : Yo(f, r);
1384
1388
  e.value = m.map((p, b) => ({
1385
1389
  cx: (u == null ? void 0 : u.value) === B.HORIZONTAL ? t.value(p) : et(t.value, b),
1386
1390
  cy: (u == null ? void 0 : u.value) === B.HORIZONTAL ? et(o.value, b) : o.value(p)
@@ -1389,12 +1393,12 @@ function tn(e, n, t, o, a, u, l, i) {
1389
1393
  return U(
1390
1394
  [t, o],
1391
1395
  () => {
1392
- t.value && o.value && (l != null && l.value) && s.value && c(l.value);
1396
+ t.value && o.value && (l != null && l.value) && c.value && s(l.value);
1393
1397
  },
1394
1398
  { immediate: !0 }
1395
- ), { shouldGenerateTooltipAnchors: s, updateTooltipAnchorAttributes: c };
1399
+ ), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
1396
1400
  }
1397
- function Qo() {
1401
+ function Jo() {
1398
1402
  const e = Fe({
1399
1403
  opened: !1,
1400
1404
  targetElement: null
@@ -1405,19 +1409,19 @@ function Qo() {
1405
1409
  e.opened = !1, e.targetElement = null;
1406
1410
  } };
1407
1411
  }
1408
- function qo(e) {
1412
+ function Qo(e) {
1409
1413
  return { getTooltipItems: v(
1410
1414
  () => (t) => e.value.map(({ color: o, label: a, values: u }) => {
1411
- var l, i, s;
1415
+ var l, i, c;
1412
1416
  return {
1413
1417
  color: ((l = u[t]) == null ? void 0 : l.color) || o,
1414
1418
  label: a,
1415
- value: ((i = u[t]) == null ? void 0 : i.label) ?? ((s = u[t]) == null ? void 0 : s.value) ?? Ut
1419
+ value: ((i = u[t]) == null ? void 0 : i.label) ?? ((c = u[t]) == null ? void 0 : c.value) ?? Ut
1416
1420
  };
1417
1421
  })
1418
1422
  ) };
1419
1423
  }
1420
- const tt = 16, nt = 8, ot = 28, at = 24, Te = {
1424
+ const tt = 16, nt = 8, ot = 28, at = 24, Ae = {
1421
1425
  VERTICAL: {
1422
1426
  top: tt,
1423
1427
  right: nt,
@@ -1431,64 +1435,64 @@ const tt = 16, nt = 8, ot = 28, at = 24, Te = {
1431
1435
  left: at
1432
1436
  }
1433
1437
  };
1434
- function ea(e) {
1438
+ function qo(e) {
1435
1439
  return !e || e === "auto" || e.top == null || e.top === "auto" ? tt : e.top;
1436
1440
  }
1437
- function ta(e) {
1441
+ function ea(e) {
1438
1442
  return !e || e === "auto" || e.right == null || e.right === "auto" ? nt : e.right;
1439
1443
  }
1440
- function na(e, n) {
1444
+ function ta(e, n) {
1441
1445
  return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || ot : e.bottom;
1442
1446
  }
1443
- function oa(e, n) {
1447
+ function na(e, n) {
1444
1448
  return !e || e === "auto" || e.left == null || e.left === "auto" ? n || at : e.left;
1445
1449
  }
1446
- const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-section" }, ua = {
1450
+ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-section" }, la = {
1447
1451
  key: 0,
1448
1452
  class: "lume-chart__title lume-chart-title lume-typography--display"
1449
- }, ra = { class: "lume-chart__controls" }, ia = { class: "lume-chart__header-section" }, sa = {
1453
+ }, ua = { class: "lume-chart__controls" }, ra = { class: "lume-chart__header-section" }, ia = {
1450
1454
  key: 0,
1451
1455
  class: "lume-chart__axis-title lume-axis-title lume-typography--body"
1452
- }, ca = { key: 3 }, da = ["r"], va = {
1456
+ }, sa = { key: 3 }, ca = ["r"], da = {
1453
1457
  key: 0,
1454
1458
  class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
1455
- }, ma = /* @__PURE__ */ W({
1459
+ }, va = /* @__PURE__ */ W({
1456
1460
  __name: "lume-chart",
1457
1461
  props: {
1458
- ...Ne(),
1462
+ ...Ee(),
1459
1463
  chartType: {
1460
1464
  type: String,
1461
1465
  default: null
1462
1466
  }
1463
1467
  },
1464
1468
  setup(e, { emit: n }) {
1465
- const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: s, orientation: c, chartType: f } = te(t), r = R(-1), m = R(null), g = R(null), p = R([]), b = R(null), L = R(0), A = R(0), { allOptions: h } = fe(s), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: I } = pt(u, l, i, h, c), { xScale: H, yScale: Y } = zo(
1466
- x,
1469
+ const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = R(-1), m = R(null), g = R(null), p = R([]), b = R(null), L = R(0), A = R(0), { allOptions: h } = fe(c), { internalData: $, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = pt(u, l, i, h, s), { xScale: H, yScale: Y } = Fo(
1470
+ $,
1467
1471
  N,
1468
1472
  D,
1469
- c,
1473
+ s,
1470
1474
  h
1471
1475
  ), K = v(() => ({
1472
- top: ea(h.value.margins),
1473
- right: ta(h.value.margins),
1474
- bottom: na(h.value.margins, L.value),
1475
- left: oa(h.value.margins, A.value)
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)
1476
1480
  })), Q = v(() => {
1477
1481
  var O;
1478
- return t.xScale ? Et(t.xScale) ? t.xScale : (O = t.xScale) == null ? void 0 : O.call(t, x.value, l.value, D) : H.value;
1482
+ return t.xScale ? Et(t.xScale) ? t.xScale : (O = t.xScale) == null ? void 0 : O.call(t, $.value, l.value, D) : H.value;
1479
1483
  }), F = v(() => {
1480
1484
  var O;
1481
- return t.yScale ? Et(t.yScale) ? t.yScale : (O = t.yScale) == null ? void 0 : O.call(t, x.value, l.value, D) : Y.value;
1485
+ return t.yScale ? Et(t.yScale) ? t.yScale : (O = t.yScale) == null ? void 0 : O.call(t, $.value, l.value, D) : Y.value;
1482
1486
  }), ue = v(() => ({
1483
1487
  ...h.value.xAxisOptions,
1484
- withHover: c.value === B.VERTICAL
1485
- })), Oe = v(() => ({
1488
+ withHover: s.value === B.VERTICAL
1489
+ })), Le = v(() => ({
1486
1490
  ...h.value.yAxisOptions,
1487
- withHover: c.value === B.HORIZONTAL
1491
+ withHover: s.value === B.HORIZONTAL
1488
1492
  })), ke = v(() => {
1489
1493
  var O;
1490
1494
  return (O = h.value.xAxisOptions) == null ? void 0 : O.title;
1491
- }), xe = v(() => {
1495
+ }), Oe = v(() => {
1492
1496
  var O;
1493
1497
  return (O = h.value.yAxisOptions) == null ? void 0 : O.title;
1494
1498
  }), S = v(() => {
@@ -1496,71 +1500,69 @@ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-se
1496
1500
  return ((O = h.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && ke.value;
1497
1501
  }), k = v(() => {
1498
1502
  var O;
1499
- return ((O = h.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && xe.value;
1503
+ return ((O = h.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && Oe.value;
1500
1504
  }), E = v(
1501
1505
  () => u.value.every((O) => !O.values.length)
1502
1506
  ), _ = v(() => {
1503
1507
  const O = [], { noBaseScales: T } = h.value;
1504
- return !T && !E.value && O.push(() => !!(Q.value && F.value)), O.every((w) => w() === !0);
1505
- }), { hasNegativeValues: j } = Xo(x), { negativeBarAttributes: J } = Yo(
1508
+ return !T && !E.value && O.push(() => !!(Q.value && F.value)), O.every((I) => I() === !0);
1509
+ }), { hasNegativeValues: j } = Uo($), { negativeBarAttributes: J } = Xo(
1506
1510
  D,
1507
1511
  Q,
1508
1512
  F,
1509
- c
1513
+ s
1510
1514
  ), { shouldGenerateTooltipAnchors: le } = tn(
1511
1515
  p,
1512
1516
  h,
1513
1517
  Q,
1514
1518
  F,
1515
1519
  l,
1516
- c,
1517
- x,
1520
+ s,
1521
+ $,
1518
1522
  f
1519
- ), { tooltipConfig: $e, showTooltip: Ze, hideTooltip: Ue } = Qo(), { getTooltipItems: we } = qo(x), Ce = v(
1520
- () => h.value.withTooltip !== !1 && $e.opened
1521
- ), be = v(
1523
+ ), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Jo(), { getTooltipItems: $e } = Qo($), He = v(
1522
1524
  () => {
1523
1525
  var O;
1524
1526
  return ((O = h.value.tooltipOptions) == null ? void 0 : O.position) || "top";
1525
1527
  }
1526
- ), rn = v(() => {
1528
+ ), xe = v(() => {
1527
1529
  var T;
1528
1530
  const O = (T = h.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
1529
- return $e.opened && (!O || O && b.value === !1);
1531
+ return De.opened && (!O || O && b.value === !1);
1530
1532
  });
1531
1533
  function Ge(O) {
1532
- var w;
1534
+ var I;
1533
1535
  if (O === r.value)
1534
1536
  return;
1535
1537
  const T = r.value;
1536
1538
  if (h.value.withHover !== !1 && (r.value = O), h.value.withTooltip !== !1) {
1537
- const Ye = (w = h.value.tooltipOptions) != null && w.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[O];
1539
+ const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[O];
1538
1540
  Ze(Ye);
1539
1541
  }
1540
- a("hovered-index-changed", { newIndex: O, oldIndex: T });
1542
+ a("hovered-index-changed", { newIndex: O, oldIndex: T }), a("update:hoveredIndex", O);
1541
1543
  }
1542
1544
  function Xe() {
1543
- Ue(), r.value = -1;
1545
+ Ue(), r.value = -1, a("update:hoveredIndex", -1);
1544
1546
  }
1545
1547
  function gt(O) {
1546
1548
  if (!u.value.some(
1547
- ({ values: w }) => O <= w.length - 1
1549
+ ({ values: I }) => O <= I.length - 1
1548
1550
  )) {
1549
1551
  ge(me.InvalidHoveredIndex);
1550
1552
  return;
1551
1553
  }
1552
1554
  O == null || O === -1 ? Xe() : Ge(O);
1553
1555
  }
1554
- function sn() {
1556
+ function rn() {
1555
1557
  setTimeout(() => {
1556
- rn.value && Xe(), a("chart-mouseleave");
1558
+ xe.value && Xe(), a("chart-mouseleave");
1557
1559
  }, 0);
1558
1560
  }
1559
- function _t({ index: O, value: T, event: w }) {
1560
- O !== null && Ge(O), a("axis-mouseenter", { index: O, value: T, event: w });
1561
+ function _t({ index: O, value: T, event: I }) {
1562
+ O !== null && Ge(O), a("axis-mouseenter", { index: O, value: T, event: I });
1561
1563
  }
1562
- function yt({ index: O, value: T, event: w }) {
1563
- a("axis-click", { index: O, value: T, event: w });
1564
+ function yt({ index: O, value: T, event: I }) {
1565
+ a("axis-click", { index: O, value: T, event: I });
1564
1566
  }
1565
1567
  return U(
1566
1568
  u,
@@ -1575,11 +1577,11 @@ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-se
1575
1577
  },
1576
1578
  { flush: "post" }
1577
1579
  ), U(b, (O) => {
1578
- O === !1 && $e.opened && Xe();
1580
+ O === !1 && De.opened && Xe();
1579
1581
  }), _e(async () => {
1580
1582
  a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
1581
- }), Ke("chartID", I), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (O, T) => (y(), X(d(io), {
1582
- id: `lume-chart_${d(I)}`,
1583
+ }), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (O, T) => (y(), X(d(ro), {
1584
+ id: `lume-chart_${d(w)}`,
1583
1585
  ref_key: "chartContainer",
1584
1586
  ref: g,
1585
1587
  margins: K.value,
@@ -1588,80 +1590,80 @@ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-se
1588
1590
  "transparent-background": d(h).transparentBackground,
1589
1591
  "data-j-lume-chart": "",
1590
1592
  onResize: d(P),
1591
- onClick: T[24] || (T[24] = (w) => a("chart-click", w)),
1592
- onMouseenter: T[25] || (T[25] = (w) => a("chart-mouseenter", w)),
1593
- onMouseleave: sn
1593
+ onClick: T[24] || (T[24] = (I) => a("chart-click", I)),
1594
+ onMouseenter: T[25] || (T[25] = (I) => a("chart-mouseenter", I)),
1595
+ onMouseleave: rn
1594
1596
  }, {
1595
1597
  header: V(() => [
1596
- C("div", aa, [
1597
- C("div", la, [
1598
- O.title ? (y(), $("h1", ua, oe(O.title), 1)) : Z("", !0),
1599
- C("div", ra, [
1598
+ C("div", oa, [
1599
+ C("div", aa, [
1600
+ O.title ? (y(), x("h1", la, oe(O.title), 1)) : Z("", !0),
1601
+ C("div", ua, [
1600
1602
  M(O.$slots, "controls", {}, void 0, !0)
1601
1603
  ])
1602
1604
  ]),
1603
- C("div", ia, [
1604
- k.value ? (y(), $("h3", sa, oe(xe.value), 1)) : Z("", !0),
1605
- M(O.$slots, "legend", { data: d(x) }, () => [
1605
+ C("div", ra, [
1606
+ k.value ? (y(), x("h3", ia, oe(Oe.value), 1)) : Z("", !0),
1607
+ M(O.$slots, "legend", { data: d($) }, () => [
1606
1608
  d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d(Ot), {
1607
1609
  key: 0,
1608
- data: d(x),
1610
+ data: d($),
1609
1611
  class: "lume-chart__legend",
1610
1612
  "data-j-lume-chart__legend": "",
1611
- onClick: T[0] || (T[0] = (w) => a("legend-click", w)),
1612
- onMouseenter: T[1] || (T[1] = (w) => a("legend-mouseenter", w)),
1613
- onMouseleave: T[2] || (T[2] = (w) => a("legend-mouseleave"))
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"))
1614
1616
  }, null, 8, ["data"])) : Z("", !0)
1615
1617
  ], !0)
1616
1618
  ])
1617
1619
  ])
1618
1620
  ]),
1619
1621
  footer: V(() => [
1620
- S.value ? (y(), $("h3", va, oe(ke.value), 1)) : Z("", !0),
1622
+ S.value ? (y(), x("h3", da, oe(ke.value), 1)) : Z("", !0),
1621
1623
  d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d(Ot), {
1622
1624
  key: 1,
1623
- data: d(x),
1625
+ data: d($),
1624
1626
  class: "lume-chart__legend lume-chart__legend--bottom",
1625
1627
  "data-j-lume-chart__legend": "",
1626
- onClick: T[16] || (T[16] = (w) => a("legend-click", w)),
1627
- onMouseenter: T[17] || (T[17] = (w) => a("legend-mouseenter", w)),
1628
- onMouseleave: T[18] || (T[18] = (w) => a("legend-mouseleave"))
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"))
1629
1631
  }, null, 8, ["data"])) : Z("", !0)
1630
1632
  ]),
1631
1633
  extra: V(() => [
1632
- M(O.$slots, "tooltip", G(d($e), {
1633
- data: d(x),
1634
+ M(O.$slots, "tooltip", G(d(De), {
1635
+ data: d($),
1634
1636
  labels: d(N),
1635
1637
  title: d(N)[r.value],
1636
- items: d(we)(r.value),
1637
- position: be.value,
1638
+ items: d($e)(r.value),
1639
+ position: He.value,
1638
1640
  withTooltip: d(h).withTooltip !== !1,
1639
1641
  hoveredIndex: r.value,
1640
1642
  handleMouseEnter: () => b.value = !0,
1641
1643
  handleMouseLeave: () => b.value = !1,
1642
1644
  options: d(h).tooltipOptions
1643
1645
  }), () => [
1644
- Ce.value ? (y(), X(d(Do), G({ key: 0 }, d($e), {
1645
- position: be.value,
1646
+ d(h).withTooltip !== !1 ? (y(), X(d(No), G({ key: 0 }, d(De), {
1647
+ position: He.value,
1646
1648
  title: d(N)[r.value],
1647
- items: d(we)(r.value),
1649
+ items: d($e)(r.value),
1648
1650
  options: d(h).tooltipOptions,
1649
1651
  "data-j-lume-chart__tooltip": "",
1650
- onOpened: T[19] || (T[19] = (w) => a("tooltip-opened", {
1652
+ onOpened: T[19] || (T[19] = (I) => a("tooltip-opened", {
1651
1653
  index: r.value,
1652
- targetElement: w
1654
+ targetElement: I
1653
1655
  })),
1654
- onMoved: T[20] || (T[20] = (w) => a("tooltip-moved", {
1656
+ onMoved: T[20] || (T[20] = (I) => a("tooltip-moved", {
1655
1657
  index: r.value,
1656
- targetElement: w
1658
+ targetElement: I
1657
1659
  })),
1658
- onClosed: T[21] || (T[21] = (w) => a("tooltip-closed")),
1659
- onTooltipMouseenter: T[22] || (T[22] = (w) => b.value = !0),
1660
- onTooltipMouseleave: T[23] || (T[23] = (w) => b.value = !1)
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)
1661
1663
  }), {
1662
1664
  default: V(() => [
1663
1665
  M(O.$slots, "tooltip-content", {
1664
- data: d(x),
1666
+ data: d($),
1665
1667
  labels: d(N),
1666
1668
  hoveredIndex: r.value
1667
1669
  }, void 0, !0)
@@ -1671,7 +1673,7 @@ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-se
1671
1673
  ], !0)
1672
1674
  ]),
1673
1675
  default: V(() => [
1674
- _.value ? (y(), $(q, { key: 0 }, [
1676
+ _.value ? (y(), x(q, { key: 0 }, [
1675
1677
  d(j) ? (y(), X(d(mt), G({ key: 0 }, d(J), {
1676
1678
  "class-list": "lume-fill--negative",
1677
1679
  transition: !1,
@@ -1691,66 +1693,66 @@ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-se
1691
1693
  "container-size": d(D),
1692
1694
  options: ue.value,
1693
1695
  "hovered-index": r.value,
1694
- orientation: d(c),
1696
+ orientation: d(s),
1695
1697
  "data-j-lume-chart__x-axis": "",
1696
1698
  onClick: yt,
1697
1699
  onMouseenter: _t,
1698
- onMouseleave: T[3] || (T[3] = (w) => a("axis-mouseleave")),
1699
- "onLume__internal-AxisSize": T[4] || (T[4] = (w) => L.value = w)
1700
+ onMouseleave: T[3] || (T[3] = (I) => a("axis-mouseleave")),
1701
+ "onLume__internal-AxisSize": T[4] || (T[4] = (I) => L.value = I)
1700
1702
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
1701
1703
  ie(d(Lt), {
1702
1704
  type: "y",
1703
1705
  scale: F.value,
1704
1706
  "container-size": d(D),
1705
- options: Oe.value,
1707
+ options: Le.value,
1706
1708
  "hovered-index": r.value,
1707
- orientation: d(c),
1709
+ orientation: d(s),
1708
1710
  "data-j-lume-chart__y-axis": "",
1709
1711
  onClick: yt,
1710
1712
  onMouseenter: _t,
1711
- onMouseleave: T[5] || (T[5] = (w) => a("axis-mouseleave")),
1712
- "onLume__internal-AxisSize": T[6] || (T[6] = (w) => A.value = w)
1713
+ onMouseleave: T[5] || (T[5] = (I) => a("axis-mouseleave")),
1714
+ "onLume__internal-AxisSize": T[6] || (T[6] = (I) => A.value = I)
1713
1715
  }, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
1714
1716
  ], !0) : Z("", !0),
1715
- d(h).withHover !== !1 ? (y(), X(d(Uo), {
1717
+ d(h).withHover !== !1 ? (y(), X(d(Zo), {
1716
1718
  key: 2,
1717
- data: d(x),
1718
- orientation: d(c),
1719
+ data: d($),
1720
+ orientation: d(s),
1719
1721
  "x-scale": Q.value,
1720
1722
  "y-scale": F.value,
1721
1723
  "data-j-lume-chart__overlay-group": "",
1722
1724
  "onLume__internal-Hover": Ge
1723
1725
  }, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : Z("", !0),
1724
- d(le) ? (y(), $("g", ca, [
1725
- (y(!0), $(q, null, z(p.value, (w, Ye) => (y(), $("circle", G(w, {
1726
+ d(le) ? (y(), x("g", sa, [
1727
+ (y(!0), x(q, null, z(p.value, (I, Ye) => (y(), x("circle", G(I, {
1726
1728
  ref_for: !0,
1727
1729
  ref_key: "tooltipAnchor",
1728
1730
  ref: m,
1729
1731
  key: `anchor_${Ye}`,
1730
- r: d(Vn),
1732
+ r: d(jn),
1731
1733
  class: "lume-fill--transparent"
1732
- }), null, 16, da))), 128))
1734
+ }), null, 16, ca))), 128))
1733
1735
  ])) : Z("", !0),
1734
1736
  M(O.$slots, "groups", {
1735
- data: d(x),
1737
+ data: d($),
1736
1738
  labels: d(N),
1737
1739
  options: d(h),
1738
- orientation: d(c),
1740
+ orientation: d(s),
1739
1741
  xScale: Q.value,
1740
1742
  yScale: F.value,
1741
1743
  hoveredIndex: r.value,
1742
1744
  containerSize: d(D),
1743
1745
  transition: d(h).withTransition !== !1,
1744
1746
  classList: O.classList,
1745
- onNodeClick: T[7] || (T[7] = (w) => a("node-click", w)),
1746
- onNodeMouseenter: T[8] || (T[8] = (w) => a("node-mouseenter", w)),
1747
- onNodeMouseleave: T[9] || (T[9] = (w) => a("node-mouseleave", w)),
1748
- onLinkClick: T[10] || (T[10] = (w) => a("link-click", w)),
1749
- onLinkMouseenter: T[11] || (T[11] = (w) => a("link-mouseenter", w)),
1750
- onLinkMouseleave: T[12] || (T[12] = (w) => a("link-mouseleave", w)),
1751
- onBarClick: T[13] || (T[13] = (w) => a("bar-click", w)),
1752
- onLineClick: T[14] || (T[14] = (w) => a("line-click", w)),
1753
- onPointClick: T[15] || (T[15] = (w) => a("point-click", w)),
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)),
1754
1756
  "onLume__internal-Hover": Ge
1755
1757
  }, void 0, !0)
1756
1758
  ], 64)) : Z("", !0)
@@ -1759,7 +1761,7 @@ const aa = { class: "lume-chart__header" }, la = { class: "lume-chart__header-se
1759
1761
  }, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "onResize"]));
1760
1762
  }
1761
1763
  });
1762
- const De = /* @__PURE__ */ ee(ma, [["__scopeId", "data-v-84133075"]]), Ht = 8, fa = 8, pa = 20, Ee = 2, Bt = 2, ha = ["dy", "dominant-baseline"], ga = ["y", "x", "width", "height"], _a = { class: "lume-alluvial-group__label-wrapper" }, ya = /* @__PURE__ */ W({
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({
1763
1765
  __name: "lume-alluvial-node-label",
1764
1766
  props: {
1765
1767
  bottom: { type: Boolean, default: !1 },
@@ -1771,17 +1773,17 @@ const De = /* @__PURE__ */ ee(ma, [["__scopeId", "data-v-84133075"]]), Ht = 8, f
1771
1773
  const t = e, o = n, a = R(null), u = R(t.maxWidth), l = R(1);
1772
1774
  return U(
1773
1775
  [a, () => t.maxWidth],
1774
- async ([i, s]) => {
1775
- if (i && s) {
1776
- u.value = s, await kt();
1777
- const { width: c, height: f } = i.getBoundingClientRect();
1778
- u.value = c + Bt > s ? s : c + Bt, l.value = Math.ceil(f);
1776
+ async ([i, c]) => {
1777
+ if (i && c) {
1778
+ u.value = c, await kt();
1779
+ const { width: s, height: f } = i.getBoundingClientRect();
1780
+ u.value = s + Bt > c ? c : s + Bt, l.value = Math.ceil(f);
1779
1781
  }
1780
1782
  },
1781
1783
  { immediate: !0 }
1782
1784
  ), U(u, async (i) => {
1783
1785
  i !== t.maxWidth && (await kt(), o("lume__internal--node-resize"));
1784
- }), (i, s) => e.maxWidth ? (y(), $("foreignObject", {
1786
+ }), (i, c) => e.maxWidth ? (y(), x("foreignObject", {
1785
1787
  key: 1,
1786
1788
  class: "lume-alluvial-group__node-foreign",
1787
1789
  y: e.bottom ? "0.1em" : -l.value + 1,
@@ -1789,7 +1791,7 @@ const De = /* @__PURE__ */ ee(ma, [["__scopeId", "data-v-84133075"]]), Ht = 8, f
1789
1791
  width: u.value,
1790
1792
  height: l.value
1791
1793
  }, [
1792
- C("div", _a, [
1794
+ C("div", ga, [
1793
1795
  C("span", {
1794
1796
  ref_key: "text",
1795
1797
  ref: a,
@@ -1798,32 +1800,32 @@ const De = /* @__PURE__ */ ee(ma, [["__scopeId", "data-v-84133075"]]), Ht = 8, f
1798
1800
  M(i.$slots, "default", {}, void 0, !0)
1799
1801
  ], 512)
1800
1802
  ])
1801
- ], 8, ga)) : (y(), $("text", {
1803
+ ], 8, ha)) : (y(), x("text", {
1802
1804
  key: 0,
1803
1805
  class: "lume-alluvial-group__node-label",
1804
1806
  dy: e.bottom ? ".2em" : "-.2em",
1805
1807
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1806
1808
  }, [
1807
1809
  M(i.$slots, "default", {}, void 0, !0)
1808
- ], 8, ha));
1810
+ ], 8, pa));
1809
1811
  }
1810
1812
  });
1811
- const ka = /* @__PURE__ */ ee(ya, [["__scopeId", "data-v-7126dfdb"]]), ba = ["y", "dominant-baseline"], Aa = /* @__PURE__ */ W({
1813
+ const ya = /* @__PURE__ */ ee(_a, [["__scopeId", "data-v-7126dfdb"]]), ka = ["y", "dominant-baseline"], ba = /* @__PURE__ */ W({
1812
1814
  __name: "lume-alluvial-node-value",
1813
1815
  props: {
1814
1816
  bottom: { type: Boolean, default: !0 }
1815
1817
  },
1816
1818
  setup(e) {
1817
- return (n, t) => (y(), $("text", {
1819
+ return (n, t) => (y(), x("text", {
1818
1820
  class: "lume-alluvial-group__node-value",
1819
1821
  y: e.bottom ? ".2em" : "-.2em",
1820
1822
  "dominant-baseline": e.bottom ? "hanging" : "auto"
1821
1823
  }, [
1822
1824
  M(n.$slots, "default", {}, void 0, !0)
1823
- ], 8, ba));
1825
+ ], 8, ka));
1824
1826
  }
1825
1827
  });
1826
- const Ta = /* @__PURE__ */ ee(Aa, [["__scopeId", "data-v-b4fc758b"]]), La = ["transform"], Oa = ["transform"], xa = ["transform"], $a = /* @__PURE__ */ W({
1828
+ const Aa = /* @__PURE__ */ ee(ba, [["__scopeId", "data-v-b4fc758b"]]), Ta = ["transform"], La = ["transform"], Oa = ["transform"], $a = /* @__PURE__ */ W({
1827
1829
  __name: "lume-alluvial-node-header",
1828
1830
  props: {
1829
1831
  x: { type: Number, required: !0 },
@@ -1835,12 +1837,12 @@ const Ta = /* @__PURE__ */ ee(Aa, [["__scopeId", "data-v-b4fc758b"]]), La = ["tr
1835
1837
  ), o = v(
1836
1838
  () => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
1837
1839
  );
1838
- return (a, u) => (y(), $("g", {
1840
+ return (a, u) => (y(), x("g", {
1839
1841
  transform: `translate(${e.x}, ${e.y})`
1840
1842
  }, [
1841
1843
  C("g", { transform: t.value }, [
1842
1844
  M(a.$slots, "before", {}, void 0, !0)
1843
- ], 8, Oa),
1845
+ ], 8, La),
1844
1846
  C("text", {
1845
1847
  ref_key: "textRef",
1846
1848
  ref: n,
@@ -1850,11 +1852,11 @@ const Ta = /* @__PURE__ */ ee(Aa, [["__scopeId", "data-v-b4fc758b"]]), La = ["tr
1850
1852
  ], 512),
1851
1853
  C("g", { transform: o.value }, [
1852
1854
  M(a.$slots, "after", {}, void 0, !0)
1853
- ], 8, xa)
1854
- ], 8, La));
1855
+ ], 8, Oa)
1856
+ ], 8, Ta));
1855
1857
  }
1856
1858
  });
1857
- const wa = /* @__PURE__ */ ee($a, [["__scopeId", "data-v-0e483453"]]);
1859
+ const xa = /* @__PURE__ */ ee($a, [["__scopeId", "data-v-0e483453"]]);
1858
1860
  function Mt(e, n) {
1859
1861
  return {
1860
1862
  x0: 0 + (n ? n.left : 0),
@@ -1871,24 +1873,24 @@ function Ia(e) {
1871
1873
  return { extents: n, updateExtents: t };
1872
1874
  }
1873
1875
  var Ve = /* @__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))(Ve || {});
1874
- const Ea = "[lume] ";
1876
+ const wa = "[lume] ";
1875
1877
  function lt(e, n, t = !0) {
1876
- t && Pt() || console.error(Ea + "Error: " + e, n);
1878
+ t && Pt() || console.error(wa + "Error: " + e, n);
1877
1879
  }
1878
- const Na = 200;
1880
+ const Ea = 200;
1879
1881
  function Ie(e) {
1880
1882
  return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
1881
1883
  }
1882
- function Da(e, n) {
1884
+ function Na(e, n) {
1883
1885
  return n.nodes.find((t) => t.id === e);
1884
1886
  }
1885
- function Ha(e, n) {
1887
+ function Da(e, n) {
1886
1888
  return n.links.find((t) => t.id === e);
1887
1889
  }
1888
1890
  function nn(e) {
1889
1891
  return !!(e.sourceLinks && e.targetLinks);
1890
1892
  }
1891
- function Ba(e, n) {
1893
+ function Ha(e, n) {
1892
1894
  if (!n)
1893
1895
  return;
1894
1896
  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(
@@ -1905,15 +1907,15 @@ function Ba(e, n) {
1905
1907
  bottom: 0
1906
1908
  };
1907
1909
  }
1908
- function Ma(e) {
1910
+ function Ba(e) {
1909
1911
  return e.map((n) => {
1910
- const t = n.y1 - n.y0 < Ee;
1912
+ const t = n.y1 - n.y0 < we;
1911
1913
  return {
1912
1914
  x: n.x0,
1913
- y: n.y0 - (t ? Ee / 2 : 0),
1915
+ y: n.y0 - (t ? we / 2 : 0),
1914
1916
  // Negative offset to account for the min. height
1915
1917
  width: n.x1 - n.x0,
1916
- height: t ? Ee : n.y1 - n.y0,
1918
+ height: t ? we : n.y1 - n.y0,
1917
1919
  textTransform: {
1918
1920
  x: n.depth > 0 ? n.x1 + Ht : n.x0 - Ht,
1919
1921
  y: (n.y1 + n.y0) / 2
@@ -1922,22 +1924,22 @@ function Ma(e) {
1922
1924
  };
1923
1925
  });
1924
1926
  }
1925
- function Sa(e) {
1927
+ function Ma(e) {
1926
1928
  return [e.source.x1, e.y0];
1927
1929
  }
1928
- function Ra(e) {
1930
+ function Sa(e) {
1929
1931
  return [e.target.x0, e.y1];
1930
1932
  }
1931
- function Ca(e) {
1932
- return e.curveFunction ? gn(e.curveFunction).source(Sa).target(Ra) : bn();
1933
+ function Ra(e) {
1934
+ return e.curveFunction ? hn(e.curveFunction).source(Ma).target(Sa) : kn();
1933
1935
  }
1934
- function Ga(e) {
1936
+ function Ca(e) {
1935
1937
  return e.map((n) => {
1936
1938
  var t;
1937
1939
  return {
1938
1940
  id: n.id,
1939
- color: n.color || ((t = n.source) == null ? void 0 : t.color) || Re,
1940
- d: Ca(n)(n),
1941
+ color: n.color || ((t = n.source) == null ? void 0 : t.color) || Ce,
1942
+ d: Ra(n)(n),
1941
1943
  strokeWidth: Math.max(1, n.width),
1942
1944
  link: n
1943
1945
  };
@@ -1951,30 +1953,30 @@ function St(e, n, t, o, a) {
1951
1953
  };
1952
1954
  return;
1953
1955
  }
1954
- const u = Date.now(), l = Hn(n, t), i = () => {
1955
- let c = (Date.now() - u) / Na;
1956
- c > 1 && (c = 1), e.node = {
1956
+ const u = Date.now(), l = Dn(n, t), i = () => {
1957
+ let s = (Date.now() - u) / Ea;
1958
+ s > 1 && (s = 1), e.node = {
1957
1959
  ...e.node,
1958
- transitionValue: a && c === 1 ? void 0 : l(c)
1959
- }, c < 1 && requestAnimationFrame(i);
1960
+ transitionValue: a && s === 1 ? void 0 : l(s)
1961
+ }, s < 1 && requestAnimationFrame(i);
1960
1962
  };
1961
1963
  requestAnimationFrame(i);
1962
1964
  }
1963
- const ja = {
1965
+ const Ga = {
1964
1966
  nodes: [],
1965
1967
  links: []
1966
1968
  };
1967
1969
  function Rt(e, n) {
1968
1970
  return n.find((t) => t.every((o) => o.x0 === e.x0));
1969
1971
  }
1970
- function Va(e, n, t) {
1972
+ function ja(e, n, t) {
1971
1973
  const o = R(null), a = v(() => {
1972
1974
  var r, m;
1973
1975
  return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
1974
1976
  ({ label: g, color: p, value: b, deriveColorFromIncomingLinks: L, offset: A }) => ({
1975
1977
  label: g || b.toString(),
1976
1978
  color: p,
1977
- fallbackColor: p || Re,
1979
+ fallbackColor: p || Ce,
1978
1980
  id: b,
1979
1981
  deriveColorFromIncomingLinks: L,
1980
1982
  offset: A
@@ -1999,7 +2001,7 @@ function Va(e, n, t) {
1999
2001
  }
2000
2002
  ).filter(Boolean).flat();
2001
2003
  }
2002
- ), l = v(() => An().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(() => {
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(() => {
2003
2005
  var r;
2004
2006
  return (r = o.value) == null ? void 0 : r.nodes.reduce(
2005
2007
  (m, g) => {
@@ -2009,25 +2011,25 @@ function Va(e, n, t) {
2009
2011
  []
2010
2012
  );
2011
2013
  });
2012
- function s(r) {
2014
+ function c(r) {
2013
2015
  const { offset: m } = r, g = Rt(r, i.value);
2014
2016
  if (!g)
2015
2017
  return;
2016
2018
  const p = g[g.findIndex((L) => L.id === r.id) - 1], b = p && g.length !== 1 ? p.y1 + m : m;
2017
2019
  r._y0 = r.y0, r._y1 = r.y1, r.y0 = b, r.y1 = r.y0 + (r._y1 - r._y0);
2018
2020
  }
2019
- function c(r, m) {
2021
+ function s(r, m) {
2020
2022
  const { id: g, _y0: p, y0: b } = r, L = m.links.filter(
2021
- (x) => x.source.id === g
2023
+ ($) => $.source.id === g
2022
2024
  ), A = m.links.filter(
2023
- (x) => x.target.id === g
2025
+ ($) => $.target.id === g
2024
2026
  ), h = b - p;
2025
- L.forEach((x) => x.y0 += h), A.forEach((x) => x.y1 += h);
2027
+ L.forEach(($) => $.y0 += h), A.forEach(($) => $.y1 += h);
2026
2028
  }
2027
2029
  const f = v(() => {
2028
2030
  var r;
2029
2031
  return o.value && ((r = a.value) == null || r.forEach((m) => {
2030
- m.value === 0 && (m.fallbackColor = dt.Grey), typeof m.offset == "number" && (s(m), c(m, o.value));
2032
+ m.value === 0 && (m.fallbackColor = dt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
2031
2033
  })), o.value;
2032
2034
  });
2033
2035
  return U([l, t], () => {
@@ -2038,7 +2040,7 @@ function Va(e, n, t) {
2038
2040
  [g, p]
2039
2041
  ])({ nodes: a.value, links: u.value });
2040
2042
  } catch (r) {
2041
- lt(Ve.GraphProblem, r), o.value = ja;
2043
+ lt(Ve.GraphProblem, r), o.value = Ga;
2042
2044
  }
2043
2045
  }), { columns: i, graph: f };
2044
2046
  }
@@ -2058,10 +2060,10 @@ function rt(e, n) {
2058
2060
  );
2059
2061
  }), n;
2060
2062
  }
2061
- function Pa(e, n) {
2063
+ function Va(e, n) {
2062
2064
  return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
2063
2065
  }
2064
- const Fa = (e, n) => {
2066
+ const Pa = (e, n) => {
2065
2067
  let t;
2066
2068
  nn(e) ? t = {
2067
2069
  [e.id]: e.value,
@@ -2073,9 +2075,9 @@ const Fa = (e, n) => {
2073
2075
  ...ut(e.source),
2074
2076
  ...rt(e.target)
2075
2077
  };
2076
- const o = Pa(t, n);
2078
+ const o = Va(t, n);
2077
2079
  return { nodes: t, links: o };
2078
- }, za = (e) => {
2080
+ }, Fa = (e) => {
2079
2081
  if (nn(e)) {
2080
2082
  const n = [...e.sourceLinks, ...e.targetLinks];
2081
2083
  return {
@@ -2094,11 +2096,11 @@ const Fa = (e, n) => {
2094
2096
  links: [e.id]
2095
2097
  };
2096
2098
  };
2097
- function Wa(e, n, t) {
2099
+ function za(e, n, t) {
2098
2100
  const o = R(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
2099
2101
  o.value,
2100
2102
  t.value
2101
- ) : n.value.highlightedElements === "closest" ? za(o.value, t.value) : Fa(o.value, t.value) : { nodes: {}, links: [] });
2103
+ ) : n.value.highlightedElements === "closest" ? Fa(o.value, t.value) : Pa(o.value, t.value) : { nodes: {}, links: [] });
2102
2104
  return U(a, (u, l) => {
2103
2105
  if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
2104
2106
  e.value.forEach((i) => {
@@ -2122,10 +2124,10 @@ function Wa(e, n, t) {
2122
2124
  });
2123
2125
  }), { highlightedElements: a, hoveredElement: o };
2124
2126
  }
2125
- const Za = {
2127
+ const Wa = {
2126
2128
  class: "lume-alluvial-group",
2127
2129
  "data-j-alluvial-group": ""
2128
- }, Ua = { key: 0 }, Xa = { key: 0 }, Ya = ["id", "x1", "x2"], Ka = ["stop-color"], Ja = ["stop-color"], Qa = ["d", "stroke-width", "onClick", "onMouseover"], qa = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], el = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], tl = ["x", "y", "height", "width"], nl = ["transform", "data-id", "width"], ol = /* @__PURE__ */ W({
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({
2129
2131
  __name: "lume-alluvial-group",
2130
2132
  props: {
2131
2133
  ...We(),
@@ -2136,7 +2138,7 @@ const Za = {
2136
2138
  },
2137
2139
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
2138
2140
  setup(e, { emit: n }) {
2139
- const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = R([]), s = R([]), c = R(null), { extents: f, updateExtents: r } = Ia(t.containerSize), { columns: m, graph: g } = Va(u, l, f), { hoveredElement: p, highlightedElements: b } = Wa(
2141
+ const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = R([]), c = R([]), s = R(null), { extents: f, updateExtents: r } = Ia(t.containerSize), { columns: m, graph: g } = ja(u, l, f), { hoveredElement: p, highlightedElements: b } = za(
2140
2142
  i,
2141
2143
  l,
2142
2144
  g
@@ -2144,14 +2146,14 @@ const Za = {
2144
2146
  () => Object.keys(b.value.nodes)
2145
2147
  ), h = v(() => m.value ? m.value.map(
2146
2148
  (k) => k[0].x0 + l.value.nodeWidth / 2
2147
- ) : []), x = v(() => {
2149
+ ) : []), $ = v(() => {
2148
2150
  if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
2149
2151
  return l.value.nodeHeaders.slice(0, h.value.length).map((k, E) => ({
2150
2152
  label: k,
2151
2153
  x: h.value[E]
2152
2154
  }));
2153
2155
  }), N = v(
2154
- () => l.value.nodeHeaderPadding ?? pa
2156
+ () => l.value.nodeHeaderPadding ?? fa
2155
2157
  ), D = v(() => {
2156
2158
  if (!(!l.value.gradient || !g.value))
2157
2159
  return g.value.links.reduce((k, E) => {
@@ -2169,24 +2171,24 @@ const Za = {
2169
2171
  ), E = [];
2170
2172
  return k.forEach((_) => {
2171
2173
  const j = [];
2172
- s.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, le, $e, Ze) => {
2173
- const Ue = le.link.target.y1 - le.link.target.y0 > Ee;
2174
- let we, Ce, be;
2175
- return Ue ? (we = le.link.target.y1 - le.link.target.y0, Ce = le.link.value / _.node.value, be = Ce * we) : (we = Ee, be = Ee / Ze.length), j.push({
2174
+ c.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, le, De, Ze) => {
2175
+ const Ue = le.link.target.y1 - le.link.target.y0 > we;
2176
+ let $e, He, xe;
2177
+ return Ue ? ($e = le.link.target.y1 - le.link.target.y0, He = le.link.value / _.node.value, xe = He * $e) : ($e = we, xe = we / Ze.length), j.push({
2176
2178
  x: _.x,
2177
2179
  y: _.y + J,
2178
- height: be,
2180
+ height: xe,
2179
2181
  width: _.width,
2180
2182
  key: `node-block-${_.node.id}-source-link-${le.link.source.id}`,
2181
- class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Re}`
2182
- }), J + be;
2183
+ class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Ce}`
2184
+ }), J + xe;
2183
2185
  }, 0), E.push({
2184
2186
  id: _.node.id,
2185
2187
  subNodes: j
2186
2188
  });
2187
2189
  }), E;
2188
2190
  });
2189
- function I(k) {
2191
+ function w(k) {
2190
2192
  return l.value.gradient && `url('#${a}_${k.id}')`;
2191
2193
  }
2192
2194
  function H(k) {
@@ -2207,7 +2209,7 @@ const Za = {
2207
2209
  function ue(k, E) {
2208
2210
  k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: E }));
2209
2211
  }
2210
- function Oe(k) {
2212
+ function Le(k) {
2211
2213
  const E = p.value;
2212
2214
  p.value = null, o("link-mouseleave", { link: E, event: k });
2213
2215
  }
@@ -2216,32 +2218,32 @@ const Za = {
2216
2218
  p.value = null;
2217
2219
  return;
2218
2220
  }
2219
- const E = Da(k, g.value) || Ha(k, g.value);
2221
+ const E = Na(k, g.value) || Da(k, g.value);
2220
2222
  if (!E) {
2221
2223
  ge(me.InvalidHoveredElement);
2222
2224
  return;
2223
2225
  }
2224
2226
  p.value = E;
2225
2227
  }
2226
- function xe(k) {
2228
+ function Oe(k) {
2227
2229
  var E;
2228
2230
  return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
2229
2231
  }
2230
2232
  function S() {
2231
- const k = Ba(g.value, c.value);
2233
+ const k = Ha(g.value, s.value);
2232
2234
  r(k);
2233
2235
  }
2234
2236
  return U(g, (k) => {
2235
- i.value = Ma(k.nodes), s.value = Ga(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2236
- }), U([t.containerSize, c], () => {
2237
+ i.value = Ba(k.nodes), c.value = Ca(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
2238
+ }), U([t.containerSize, s], () => {
2237
2239
  t.containerSize.width && t.containerSize.height && S();
2238
- }), U(() => t.hoveredElementId, ke), (k, E) => (y(), $("g", Za, [
2239
- x.value ? (y(), $("g", Ua, [
2240
- (y(!0), $(q, null, z(x.value, (_, j) => M(k.$slots, `node-header-${j}`, {
2240
+ }), U(() => t.hoveredElementId, ke), (k, E) => (y(), x("g", Wa, [
2241
+ $.value ? (y(), x("g", Za, [
2242
+ (y(!0), x(q, null, z($.value, (_, j) => M(k.$slots, `node-header-${j}`, {
2241
2243
  x: _.x,
2242
2244
  y: -N.value
2243
2245
  }, () => [
2244
- (y(), X(d(wa), {
2246
+ (y(), X(d(xa), {
2245
2247
  key: `header_${_.x}`,
2246
2248
  x: _.x,
2247
2249
  y: -N.value
@@ -2255,10 +2257,10 @@ const Za = {
2255
2257
  ])) : Z("", !0),
2256
2258
  C("g", {
2257
2259
  class: "lume-alluvial-link-group",
2258
- onMouseleave: Oe
2260
+ onMouseleave: Le
2259
2261
  }, [
2260
- d(l).gradient ? (y(), $("defs", Xa, [
2261
- (y(!0), $(q, null, z(D.value, (_, j) => (y(), $("linearGradient", {
2262
+ d(l).gradient ? (y(), x("defs", Ua, [
2263
+ (y(!0), x(q, null, z(D.value, (_, j) => (y(), x("linearGradient", {
2262
2264
  id: `${d(a)}_${j}`,
2263
2265
  key: j,
2264
2266
  gradientUnits: "userSpaceOnUse",
@@ -2268,26 +2270,26 @@ const Za = {
2268
2270
  C("stop", {
2269
2271
  offset: "0%",
2270
2272
  "stop-color": `var(--lume-color--${_.source})`
2271
- }, null, 8, Ka),
2273
+ }, null, 8, Ya),
2272
2274
  C("stop", {
2273
2275
  offset: "100%",
2274
2276
  "stop-color": `var(--lume-color--${_.target})`
2275
- }, null, 8, Ja)
2276
- ], 8, Ya))), 128))
2277
+ }, null, 8, Ka)
2278
+ ], 8, Xa))), 128))
2277
2279
  ])) : Z("", !0),
2278
- (y(!0), $(q, null, z(s.value, (_) => (y(), $("path", {
2280
+ (y(!0), x(q, null, z(c.value, (_) => (y(), x("path", {
2279
2281
  key: `link-ghost_${_.id}`,
2280
2282
  class: ne(["lume-alluvial-group__link", [
2281
2283
  "lume-stroke--transparent",
2282
2284
  "lume-alluvial-group__link--ghost"
2283
2285
  ]]),
2284
2286
  d: _.d,
2285
- "stroke-width": _.strokeWidth + d(fa),
2287
+ "stroke-width": _.strokeWidth + d(ma),
2286
2288
  "data-j-alluvial-ghost": "",
2287
2289
  onClick: (j) => o("link-click", { link: _.link, event: j }),
2288
2290
  onMouseover: (j) => ue(_.link, j)
2289
- }, null, 40, Qa))), 128)),
2290
- (y(!0), $(q, null, z(s.value, (_) => (y(), $("path", {
2291
+ }, null, 40, Ja))), 128)),
2292
+ (y(!0), x(q, null, z(c.value, (_) => (y(), x("path", {
2291
2293
  key: `link_${_.id}`,
2292
2294
  class: ne(["lume-alluvial-group__link", {
2293
2295
  [`lume-stroke--${_.color}`]: !d(l).gradient && _.color,
@@ -2295,7 +2297,7 @@ const Za = {
2295
2297
  "lume-alluvial-group__link--focused": Q(_.id)
2296
2298
  }]),
2297
2299
  d: _.d,
2298
- stroke: I(_.link),
2300
+ stroke: w(_.link),
2299
2301
  "stroke-dasharray": k.containerSize.width,
2300
2302
  "stroke-dashoffset": k.containerSize.width,
2301
2303
  "stroke-width": _.strokeWidth,
@@ -2303,9 +2305,9 @@ const Za = {
2303
2305
  "data-id": _.id,
2304
2306
  onClick: (j) => o("link-click", { link: _.link, event: j }),
2305
2307
  onMouseover: (j) => ue(_.link, j)
2306
- }, null, 42, qa))), 128))
2308
+ }, null, 42, Qa))), 128))
2307
2309
  ], 32),
2308
- (y(!0), $(q, null, z(i.value, (_, j) => (y(), $("g", {
2310
+ (y(!0), x(q, null, z(i.value, (_, j) => (y(), x("g", {
2309
2311
  key: `node-block_${j}`,
2310
2312
  class: ne(["lume-alluvial-group__node", {
2311
2313
  "lume-alluvial-group__node--faded": H(_.node.id),
@@ -2320,23 +2322,23 @@ const Za = {
2320
2322
  onMouseover: (J) => p.value = _.node,
2321
2323
  onMouseout: E[0] || (E[0] = (J) => p.value = null)
2322
2324
  }, [
2323
- F(_) ? (y(!0), $(q, { key: 0 }, z(xe(
2325
+ F(_) ? (y(!0), x(q, { key: 0 }, z(Oe(
2324
2326
  _.node.id
2325
- ), (J) => (y(), $("rect", G(J, {
2327
+ ), (J) => (y(), x("rect", G(J, {
2326
2328
  key: J.key,
2327
2329
  "data-j-alluvial-sub-nodes": ""
2328
- }), null, 16))), 128)) : (y(), $("rect", {
2330
+ }), null, 16))), 128)) : (y(), x("rect", {
2329
2331
  key: 1,
2330
2332
  class: ne(["lume-alluvial-group__node-block", `lume-fill--${_.node.color || _.node.fallbackColor}`]),
2331
2333
  x: _.x,
2332
2334
  y: _.y,
2333
2335
  height: _.height,
2334
2336
  width: _.width
2335
- }, null, 10, tl)),
2337
+ }, null, 10, el)),
2336
2338
  C("g", {
2337
2339
  ref_for: !0,
2338
2340
  ref_key: "nodeTextRefs",
2339
- ref: c,
2341
+ ref: s,
2340
2342
  class: ne(["lume-alluvial-group__node-text lume-typography--caption", {
2341
2343
  "lume-alluvial-group__node-text--left": _.node.depth === 0
2342
2344
  }]),
@@ -2351,7 +2353,7 @@ const Za = {
2351
2353
  _.node.value
2352
2354
  )
2353
2355
  }, () => [
2354
- ie(d(ka), {
2356
+ ie(d(ya), {
2355
2357
  bottom: d(l).switchText,
2356
2358
  left: _.node.depth === 0,
2357
2359
  "max-width": d(l).nodeLabelMaxWidth,
@@ -2362,7 +2364,7 @@ const Za = {
2362
2364
  ]),
2363
2365
  _: 2
2364
2366
  }, 1032, ["bottom", "left", "max-width"]),
2365
- ie(d(Ta), {
2367
+ ie(d(Aa), {
2366
2368
  bottom: !d(l).switchText
2367
2369
  }, {
2368
2370
  default: V(() => [
@@ -2374,13 +2376,13 @@ const Za = {
2374
2376
  _: 2
2375
2377
  }, 1032, ["bottom"])
2376
2378
  ], !0)
2377
- ], 10, nl)
2378
- ], 40, el)
2379
+ ], 10, tl)
2380
+ ], 40, qa)
2379
2381
  ], 2))), 128))
2380
2382
  ]));
2381
2383
  }
2382
2384
  });
2383
- const al = /* @__PURE__ */ ee(ol, [["__scopeId", "data-v-02af69f2"]]), ll = {
2385
+ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
2384
2386
  margins: {
2385
2387
  top: 0,
2386
2388
  right: 0,
@@ -2396,33 +2398,33 @@ const al = /* @__PURE__ */ ee(ol, [["__scopeId", "data-v-02af69f2"]]), ll = {
2396
2398
  highlightedElements: "closest",
2397
2399
  nodePadding: 16,
2398
2400
  nodeWidth: 16,
2399
- nodeAlign: Tn,
2401
+ nodeAlign: An,
2400
2402
  valueFormat: (e) => String(e),
2401
2403
  iterations: 6
2402
- }, Xl = /* @__PURE__ */ W({
2404
+ }, Ul = /* @__PURE__ */ W({
2403
2405
  __name: "lume-alluvial-diagram",
2404
2406
  props: {
2405
- ...Wo(it)
2407
+ ...zo(it)
2406
2408
  },
2407
2409
  setup(e, { emit: n }) {
2408
- const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), u = Mn(re()), { options: l } = te(t), { allOptions: i } = fe(l, ll);
2409
- function s(c) {
2410
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), u = Bn(re()), { options: l } = te(t), { allOptions: i } = fe(l, al);
2411
+ function c(s) {
2410
2412
  return {
2411
- ...c,
2413
+ ...s,
2412
2414
  noBaseScales: !0
2413
2415
  // Alluvial chart never uses base scales
2414
2416
  };
2415
2417
  }
2416
- return (c, f) => (y(), X(d(De), G(t, {
2417
- options: s(d(i)),
2418
+ return (s, f) => (y(), X(d(Ne), G({ ...t, ...s.$attrs }, {
2419
+ options: c(d(i)),
2418
2420
  "data-j-alluvial-diagram": ""
2419
2421
  }, ae(d(o))), de({
2420
2422
  groups: V((r) => [
2421
- ie(d(al), G(r, { "hovered-element-id": c.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2423
+ ie(d(ol), G(r, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
2422
2424
  z(d(u), (m, g) => ({
2423
2425
  name: g,
2424
2426
  fn: V((p) => [
2425
- M(c.$slots, g, pe(he(p || {})))
2427
+ M(s.$slots, g, pe(he(p || {})))
2426
2428
  ])
2427
2429
  }))
2428
2430
  ]), 1040, ["hovered-element-id"])
@@ -2432,17 +2434,17 @@ const al = /* @__PURE__ */ ee(ol, [["__scopeId", "data-v-02af69f2"]]), ll = {
2432
2434
  z(d(a), (r, m) => ({
2433
2435
  name: m,
2434
2436
  fn: V((g) => [
2435
- M(c.$slots, m, pe(he(g || {})))
2437
+ M(s.$slots, m, pe(he(g || {})))
2436
2438
  ])
2437
2439
  }))
2438
2440
  ]), 1040, ["options"]));
2439
2441
  }
2440
2442
  });
2441
2443
  var on = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(on || {});
2442
- const Yl = /* @__PURE__ */ W({
2444
+ const Xl = /* @__PURE__ */ W({
2443
2445
  __name: "lume-bar-chart",
2444
2446
  props: {
2445
- ...Ne(),
2447
+ ...Ee(),
2446
2448
  type: {
2447
2449
  type: String,
2448
2450
  default: null,
@@ -2460,8 +2462,8 @@ const Yl = /* @__PURE__ */ W({
2460
2462
  ["single", t],
2461
2463
  ["grouped", o],
2462
2464
  ["stacked", a]
2463
- ]), l = e, { componentEventPropagator: i } = ye(), s = Le(re());
2464
- function c(r) {
2465
+ ]), l = e, { componentEventPropagator: i } = ye(), c = Te(re());
2466
+ function s(r) {
2465
2467
  return {
2466
2468
  ...r,
2467
2469
  startOnZero: !0,
@@ -2479,10 +2481,10 @@ const Yl = /* @__PURE__ */ W({
2479
2481
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2480
2482
  return u.get(l.type);
2481
2483
  });
2482
- return (r, m) => (y(), X(fn(f.value), G({ ...l, ...r.$attrs }, {
2483
- options: c(r.options)
2484
+ return (r, m) => (y(), X(mn(f.value), G({ ...l, ...r.$attrs }, {
2485
+ options: s(r.options)
2484
2486
  }, ae(d(i))), de({ _: 2 }, [
2485
- z(d(s), (g, p) => ({
2487
+ z(d(c), (g, p) => ({
2486
2488
  name: p,
2487
2489
  fn: V((b) => [
2488
2490
  M(r.$slots, p, pe(he(b || {})))
@@ -2491,23 +2493,23 @@ const Yl = /* @__PURE__ */ W({
2491
2493
  ]), 1040, ["options"]));
2492
2494
  }
2493
2495
  });
2494
- function ul(e) {
2495
- return Object.values(jn).includes(e) || e == null;
2496
+ function ll(e) {
2497
+ return Object.values(Gn).includes(e) || e == null;
2496
2498
  }
2497
- function rl(e) {
2499
+ function ul(e) {
2498
2500
  return Object.values(B).includes(e);
2499
2501
  }
2500
- const il = (e = !1) => ({
2502
+ const rl = (e = !1) => ({
2501
2503
  type: {
2502
2504
  type: String,
2503
2505
  default: null,
2504
- validator: ul
2506
+ validator: ll
2505
2507
  },
2506
2508
  ...e ? {
2507
2509
  orientation: {
2508
2510
  type: String,
2509
2511
  default: B.VERTICAL,
2510
- validator: rl
2512
+ validator: ul
2511
2513
  }
2512
2514
  } : {}
2513
2515
  });
@@ -2526,16 +2528,16 @@ function an(e, n) {
2526
2528
  };
2527
2529
  })), o = v(() => {
2528
2530
  var a;
2529
- return (a = t.value) == null ? void 0 : a.reduce((u, l) => (l.values.forEach((i, s) => {
2530
- u[s] ? u[s].push(i) : u[s] = [i];
2531
+ return (a = t.value) == null ? void 0 : a.reduce((u, l) => (l.values.forEach((i, c) => {
2532
+ u[c] ? u[c].push(i) : u[c] = [i];
2531
2533
  }), u), []);
2532
2534
  });
2533
2535
  return { multiBarData: t, groupedData: o };
2534
2536
  }
2535
- function sl(e, n) {
2537
+ function il(e, n) {
2536
2538
  return e.value.length === 1 ? "single" : n.value;
2537
2539
  }
2538
- function cl(e, n, t) {
2540
+ function sl(e, n, t) {
2539
2541
  const o = v(
2540
2542
  () => t.value === B.HORIZONTAL
2541
2543
  );
@@ -2545,13 +2547,13 @@ function cl(e, n, t) {
2545
2547
  const u = v(() => o.value ? (() => (a(e.value), e.value))() : e.value), l = v(() => o.value ? n.value : (() => (a(n.value), n.value))());
2546
2548
  return { barXScale: u, barYScale: l };
2547
2549
  }
2548
- const dl = {
2550
+ const cl = {
2549
2551
  x: 0,
2550
2552
  y: 0,
2551
2553
  width: 0,
2552
2554
  height: 0
2553
2555
  };
2554
- function vl(e, n, t, o, a, u) {
2556
+ function dl(e, n, t, o, a, u) {
2555
2557
  const l = v(
2556
2558
  () => o.value === B.HORIZONTAL
2557
2559
  );
@@ -2559,20 +2561,20 @@ function vl(e, n, t, o, a, u) {
2559
2561
  let g, p;
2560
2562
  return l.value ? (g = r >= 0 ? n.value(0) : n.value(r), p = t.value(t.value.domain()[m])) : (g = n.value(n.value.domain()[m]), p = r < 0 ? t.value(0) : t.value(r)), { x: g, y: p };
2561
2563
  }
2562
- function s(r) {
2564
+ function c(r) {
2563
2565
  return l.value ? r < 0 ? n.value(0) - n.value(r) : n.value(r) - n.value(0) : n.value.bandwidth();
2564
2566
  }
2565
- function c(r) {
2567
+ function s(r) {
2566
2568
  return l.value ? t.value.bandwidth() : r < 0 ? t.value(r) - t.value(0) : t.value(0) - t.value(r);
2567
2569
  }
2568
2570
  function f(r, m, g) {
2569
2571
  if (!(n.value && t.value))
2570
- return dl;
2571
- const { value: b, color: L } = r, A = L ?? e.value[m].color ?? Re, { x: h, y: x } = i(b, g), N = s(b), D = c(b);
2572
+ return cl;
2573
+ const { value: b, color: L } = r, A = L ?? e.value[m].color ?? Ce, { x: h, y: $ } = i(b, g), N = c(b), D = s(b);
2572
2574
  return {
2573
2575
  classList: [`lume-fill--${A}`, ...u],
2574
2576
  x: h,
2575
- y: x,
2577
+ y: $,
2576
2578
  width: N,
2577
2579
  height: D,
2578
2580
  isFaded: a.value !== -1 && a.value !== g,
@@ -2581,17 +2583,17 @@ function vl(e, n, t, o, a, u) {
2581
2583
  }
2582
2584
  return { barAttributeGenerator: f };
2583
2585
  }
2584
- const ml = {
2586
+ const vl = {
2585
2587
  x: 0,
2586
2588
  y: 0,
2587
2589
  width: 0,
2588
2590
  height: 0
2589
2591
  };
2590
- function fl(e, n, t, o, a, u) {
2592
+ function ml(e, n, t, o, a, u) {
2591
2593
  const l = v(
2592
2594
  () => o.value === B.HORIZONTAL
2593
- ), i = v(() => He().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0)), s = v(() => He().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0));
2594
- function c(p, b, L) {
2595
+ ), 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) {
2595
2597
  if (l.value)
2596
2598
  return p >= 0 ? n.value(0) : n.value(p);
2597
2599
  const A = n.value.domain();
@@ -2600,7 +2602,7 @@ function fl(e, n, t, o, a, u) {
2600
2602
  function f(p, b, L) {
2601
2603
  if (l.value) {
2602
2604
  const A = t.value.domain();
2603
- return t.value(A[b]) + s.value(L);
2605
+ return t.value(A[b]) + c.value(L);
2604
2606
  }
2605
2607
  return p < 0 ? t.value(0) : t.value(p);
2606
2608
  }
@@ -2608,17 +2610,17 @@ function fl(e, n, t, o, a, u) {
2608
2610
  return l.value ? p < 0 ? n.value(0) - n.value(p) : n.value(p) - n.value(0) : i.value.bandwidth();
2609
2611
  }
2610
2612
  function m(p) {
2611
- return l.value ? s.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2613
+ return l.value ? c.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
2612
2614
  }
2613
2615
  function g(p, b, L) {
2614
2616
  if (!(n.value && t.value))
2615
- return ml;
2616
- const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = c(h, L, b), P = f(h, L, b), I = r(h), H = m(h);
2617
+ return vl;
2618
+ const { value: h, color: $ } = p, N = $ ?? e.value[b].color ?? Object.values(se)[b], D = s(h, L, b), P = f(h, L, b), w = r(h), H = m(h);
2617
2619
  return {
2618
2620
  classList: [`lume-fill--${N}`, ...u],
2619
2621
  x: D,
2620
2622
  y: P,
2621
- width: I,
2623
+ width: w,
2622
2624
  height: H,
2623
2625
  isFaded: a.value !== -1 && a.value !== L,
2624
2626
  isNegative: h < 0
@@ -2626,56 +2628,56 @@ function fl(e, n, t, o, a, u) {
2626
2628
  }
2627
2629
  return { barAttributeGenerator: g };
2628
2630
  }
2629
- function pl(e, n, t) {
2631
+ function fl(e, n, t) {
2630
2632
  const o = v(
2631
2633
  () => n.value === B.HORIZONTAL
2632
2634
  ), a = v(() => {
2633
- const s = e.value.map(
2634
- (c) => c.filter((f) => f.value < 0).reduce((f, r) => f + r.value, 0)
2635
+ const c = e.value.map(
2636
+ (s) => s.filter((f) => f.value < 0).reduce((f, r) => f + r.value, 0)
2635
2637
  );
2636
- return Math.min(...s);
2638
+ return Math.min(...c);
2637
2639
  }), u = v(() => {
2638
- const s = e.value.map(
2639
- (c) => c.reduce(
2640
+ const c = e.value.map(
2641
+ (s) => s.reduce(
2640
2642
  (f, r) => r.value >= 0 ? f + r.value : f,
2641
2643
  0
2642
2644
  )
2643
2645
  );
2644
- return Math.max(...s);
2646
+ return Math.max(...c);
2645
2647
  });
2646
- function l(s, c, f) {
2647
- return c.length ? o.value ? Be().domain([a.value, u.value]).range([0, f.width]) : Object.assign(
2648
+ function l(c, s, f) {
2649
+ return s.length ? o.value ? Me().domain([a.value, u.value]).range([0, f.width]) : Object.assign(
2648
2650
  Nt(
2649
- He().domain(c.map((r, m) => m)).range([0, f.width]),
2651
+ Be().domain(s.map((r, m) => m)).range([0, f.width]),
2650
2652
  n.value,
2651
2653
  t.value
2652
2654
  ),
2653
- { labels: c }
2655
+ { labels: s }
2654
2656
  ) : null;
2655
2657
  }
2656
- function i(s, c, f) {
2657
- return c.length ? o.value ? Object.assign(
2658
+ function i(c, s, f) {
2659
+ return s.length ? o.value ? Object.assign(
2658
2660
  Nt(
2659
- He().domain(c.map((r, m) => m)).range([0, f.height]),
2661
+ Be().domain(s.map((r, m) => m)).range([0, f.height]),
2660
2662
  n.value,
2661
2663
  t.value
2662
2664
  ),
2663
- { labels: c }
2664
- ) : Be().domain([u.value, a.value]).range([0, f.height]) : null;
2665
+ { labels: s }
2666
+ ) : Me().domain([u.value, a.value]).range([0, f.height]) : null;
2665
2667
  }
2666
2668
  return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2667
2669
  }
2668
- function hl(e, n, t, o, a, u) {
2670
+ function pl(e, n, t, o, a, u) {
2669
2671
  const l = v(
2670
2672
  () => o.value === B.HORIZONTAL
2671
2673
  ), i = v(
2672
2674
  () => l.value ? t.value.domain() : n.value.domain()
2673
- ), s = v(
2675
+ ), c = v(
2674
2676
  () => e.value.map((A) => A.values.map((h) => h == null ? void 0 : h.value))
2675
2677
  );
2676
- function c(A, h, x) {
2678
+ function s(A, h, $) {
2677
2679
  let N, D;
2678
- return l.value ? (N = n.value(A >= 0 ? 0 + x : A + x), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + x : 0 + x)), { x: N, y: D };
2680
+ return l.value ? (N = n.value(A >= 0 ? 0 + $ : A + $), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + $ : 0 + $)), { x: N, y: D };
2679
2681
  }
2680
2682
  function f(A) {
2681
2683
  return l.value ? n.value(A) - n.value(0) : n.value.bandwidth();
@@ -2690,32 +2692,32 @@ function hl(e, n, t, o, a, u) {
2690
2692
  return l.value ? t.value.bandwidth() : t.value(A) - t.value(0);
2691
2693
  }
2692
2694
  function p(A, h) {
2693
- return A ? s.value.reduce((x, N, D) => (D < A && N[h] >= 0 && (x += N[h]), x), 0) : 0;
2695
+ return A ? c.value.reduce(($, N, D) => (D < A && N[h] >= 0 && ($ += N[h]), $), 0) : 0;
2694
2696
  }
2695
2697
  function b(A, h) {
2696
- return A ? s.value.reduce((x, N, D) => (D < A && N[h] < 0 && (x += N[h]), x), 0) : 0;
2698
+ return A ? c.value.reduce(($, N, D) => (D < A && N[h] < 0 && ($ += N[h]), $), 0) : 0;
2697
2699
  }
2698
- function L(A, h, x) {
2699
- const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), I = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = c(N, x, H);
2700
+ function L(A, h, $) {
2701
+ 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, $) : b(h, $), { x: Y, y: K } = s(N, $, H);
2700
2702
  return {
2701
2703
  classList: [`lume-fill--${D ?? e.value[h].color ?? Object.values(se)[h]}`, ...u],
2702
2704
  width: P,
2703
- height: I,
2705
+ height: w,
2704
2706
  x: Y,
2705
2707
  y: K,
2706
- isFaded: a.value !== -1 && a.value !== x,
2708
+ isFaded: a.value !== -1 && a.value !== $,
2707
2709
  isNegative: N < 0
2708
2710
  };
2709
2711
  }
2710
2712
  return { barAttributeGenerator: L };
2711
2713
  }
2712
- const gl = {
2714
+ const hl = {
2713
2715
  class: "lume-bar-group",
2714
2716
  "data-j-bars-group": ""
2715
- }, _l = ["onMouseenter"], yl = {
2716
- single: vl,
2717
- grouped: fl,
2718
- stacked: hl
2717
+ }, gl = ["onMouseenter"], _l = {
2718
+ single: dl,
2719
+ grouped: ml,
2720
+ stacked: pl
2719
2721
  }, ht = /* @__PURE__ */ W({
2720
2722
  __name: "lume-bar-group",
2721
2723
  props: {
@@ -2724,7 +2726,7 @@ const gl = {
2724
2726
  type: [String, Array],
2725
2727
  default: () => []
2726
2728
  },
2727
- ...il(!0),
2729
+ ...rl(!0),
2728
2730
  transition: {
2729
2731
  type: Boolean,
2730
2732
  default: !0
@@ -2737,15 +2739,15 @@ const gl = {
2737
2739
  hoveredIndex: u,
2738
2740
  orientation: l,
2739
2741
  transition: i,
2740
- type: s,
2741
- xScale: c,
2742
+ type: c,
2743
+ xScale: s,
2742
2744
  yScale: f,
2743
2745
  classList: r,
2744
2746
  labels: m
2745
2747
  } = te(t);
2746
2748
  Pe("chartID");
2747
- const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: L } = cl(c, f, l), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
2748
- const D = sl(a, s), { barAttributeGenerator: P } = yl[D](
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](
2749
2751
  a,
2750
2752
  b,
2751
2753
  L,
@@ -2754,21 +2756,21 @@ const gl = {
2754
2756
  A.value
2755
2757
  );
2756
2758
  return P;
2757
- }), x = v(() => {
2759
+ }), $ = v(() => {
2758
2760
  if (i.value)
2759
2761
  return l.value === B.HORIZONTAL ? "width" : "height";
2760
2762
  });
2761
2763
  async function N(D) {
2762
2764
  o("lume__internal--hover", D), g("lume__internal--hover", D);
2763
2765
  }
2764
- return (D, P) => (y(), $("g", gl, [
2765
- (y(!0), $(q, null, z(d(p), (I, H) => (y(), $("g", {
2766
+ return (D, P) => (y(), x("g", hl, [
2767
+ (y(!0), x(q, null, z(d(p), (w, H) => (y(), x("g", {
2766
2768
  key: H,
2767
2769
  onMouseenter: (Y) => N(H)
2768
2770
  }, [
2769
- (y(!0), $(q, null, z(I, (Y, K) => (y(), X(d(mt), G(h.value(Y, K, H, I), {
2771
+ (y(!0), x(q, null, z(w, (Y, K) => (y(), X(d(mt), G(h.value(Y, K, H, w), {
2770
2772
  key: `bar-${K}`,
2771
- transition: x.value,
2773
+ transition: $.value,
2772
2774
  "data-j-lume-bar": "",
2773
2775
  onClick: (Q) => o("bar-click", {
2774
2776
  index: H,
@@ -2776,35 +2778,35 @@ const gl = {
2776
2778
  event: Q
2777
2779
  })
2778
2780
  }), null, 16, ["transition", "onClick"]))), 128))
2779
- ], 40, _l))), 128))
2781
+ ], 40, gl))), 128))
2780
2782
  ]));
2781
2783
  }
2782
- }), kl = {
2784
+ }), yl = {
2783
2785
  [B.VERTICAL]: {
2784
2786
  withTooltip: !0,
2785
2787
  xAxisOptions: {},
2786
2788
  yAxisOptions: { gridLines: !0 },
2787
- margins: Te.VERTICAL
2789
+ margins: Ae.VERTICAL
2788
2790
  },
2789
2791
  [B.HORIZONTAL]: {
2790
2792
  withTooltip: !0,
2791
2793
  xAxisOptions: { gridLines: !0 },
2792
2794
  yAxisOptions: { gridLines: !1 },
2793
- margins: Te.HORIZONTAL
2795
+ margins: Ae.HORIZONTAL
2794
2796
  }
2795
- }, Kl = /* @__PURE__ */ W({
2797
+ }, Yl = /* @__PURE__ */ W({
2796
2798
  __name: "lume-single-bar-chart",
2797
2799
  props: {
2798
- ...Ne(it)
2800
+ ...Ee(it)
2799
2801
  },
2800
2802
  setup(e, { emit: n }) {
2801
- const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { orientation: u, options: l } = te(t), i = v(
2802
- () => kl[u.value || B.VERTICAL]
2803
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { orientation: u, options: l } = te(t), i = v(
2804
+ () => yl[u.value || B.VERTICAL]
2803
2805
  // needs to be computed so that default options are reactive
2804
- ), { allOptions: s } = fe(l, i);
2805
- return (c, f) => (y(), X(d(De), G(t, {
2806
+ ), { allOptions: c } = fe(l, i);
2807
+ return (s, f) => (y(), X(d(Ne), G({ ...t, ...s.$attrs }, {
2806
2808
  "chart-type": "single-bar",
2807
- options: d(s),
2809
+ options: d(c),
2808
2810
  "data-j-single-bar-chart": ""
2809
2811
  }, ae(d(o))), de({
2810
2812
  groups: V((r) => [
@@ -2815,41 +2817,41 @@ const gl = {
2815
2817
  z(d(a), (r, m) => ({
2816
2818
  name: m,
2817
2819
  fn: V((g) => [
2818
- M(c.$slots, m, pe(he(g || {})))
2820
+ M(s.$slots, m, pe(he(g || {})))
2819
2821
  ])
2820
2822
  }))
2821
2823
  ]), 1040, ["options"]));
2822
2824
  }
2823
- }), bl = {
2825
+ }), kl = {
2824
2826
  [B.VERTICAL]: {
2825
2827
  withTooltip: !0,
2826
2828
  xAxisOptions: {},
2827
2829
  yAxisOptions: { gridLines: !0 },
2828
- margins: Te.VERTICAL
2830
+ margins: Ae.VERTICAL
2829
2831
  },
2830
2832
  [B.HORIZONTAL]: {
2831
2833
  withTooltip: !0,
2832
2834
  xAxisOptions: { gridLines: !0 },
2833
2835
  yAxisOptions: { gridLines: !1 },
2834
- margins: Te.HORIZONTAL,
2836
+ margins: Ae.HORIZONTAL,
2835
2837
  tooltipOptions: { position: "right" }
2836
2838
  }
2837
- }, Jl = /* @__PURE__ */ W({
2839
+ }, Kl = /* @__PURE__ */ W({
2838
2840
  __name: "lume-grouped-bar-chart",
2839
2841
  props: {
2840
- ...Ne()
2842
+ ...Ee()
2841
2843
  },
2842
2844
  setup(e, { emit: n }) {
2843
- const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { orientation: u, options: l } = te(t), i = v(
2844
- () => bl[u.value || B.VERTICAL]
2845
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { orientation: u, options: l } = te(t), i = v(
2846
+ () => kl[u.value || B.VERTICAL]
2845
2847
  // needs to be computed so that default options are reactive
2846
- ), { allOptions: s } = fe(
2848
+ ), { allOptions: c } = fe(
2847
2849
  l,
2848
2850
  i
2849
2851
  );
2850
- return (c, f) => (y(), X(d(De), G(t, {
2852
+ return (s, f) => (y(), X(d(Ne), G({ ...t, ...s.$attrs }, {
2851
2853
  "chart-type": "grouped-bar",
2852
- options: d(s),
2854
+ options: d(c),
2853
2855
  "data-j-grouped-bar-chart": ""
2854
2856
  }, ae(d(o))), de({
2855
2857
  groups: V((r) => [
@@ -2860,56 +2862,56 @@ const gl = {
2860
2862
  z(d(a), (r, m) => ({
2861
2863
  name: m,
2862
2864
  fn: V((g) => [
2863
- M(c.$slots, m, pe(he(g || {})))
2865
+ M(s.$slots, m, pe(he(g || {})))
2864
2866
  ])
2865
2867
  }))
2866
2868
  ]), 1040, ["options"]));
2867
2869
  }
2868
- }), Al = {
2870
+ }), bl = {
2869
2871
  [B.VERTICAL]: {
2870
2872
  withTooltip: !0,
2871
2873
  xAxisOptions: {},
2872
2874
  yAxisOptions: { gridLines: !0 },
2873
- margins: Te.VERTICAL,
2875
+ margins: Ae.VERTICAL,
2874
2876
  tooltipOptions: { inverse: !0 }
2875
2877
  },
2876
2878
  [B.HORIZONTAL]: {
2877
2879
  withTooltip: !0,
2878
2880
  xAxisOptions: { gridLines: !0 },
2879
2881
  yAxisOptions: { gridLines: !1 },
2880
- margins: Te.HORIZONTAL,
2882
+ margins: Ae.HORIZONTAL,
2881
2883
  tooltipOptions: { position: "right" }
2882
2884
  }
2883
- }, Ql = /* @__PURE__ */ W({
2885
+ }, Jl = /* @__PURE__ */ W({
2884
2886
  __name: "lume-stacked-bar-chart",
2885
2887
  props: {
2886
- ...Ne()
2888
+ ...Ee()
2887
2889
  },
2888
2890
  setup(e, { emit: n }) {
2889
- const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { data: u, orientation: l, options: i, labels: s } = te(t), c = v(
2890
- () => Al[l.value || B.VERTICAL]
2891
+ 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]
2891
2893
  // needs to be computed so that default options are reactive
2892
2894
  ), { allOptions: f } = fe(
2893
2895
  i,
2894
- c
2895
- ), { internalData: r } = pt(u), { groupedData: m } = an(r, s), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = pl(
2896
+ s
2897
+ ), { internalData: r } = pt(u), { groupedData: m } = an(r, c), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = fl(
2896
2898
  m,
2897
2899
  l,
2898
2900
  i
2899
2901
  ), b = v(() => t.xScale || g), L = v(() => t.yScale || p);
2900
- return (A, h) => (y(), X(d(De), G(t, {
2902
+ return (A, h) => (y(), X(d(Ne), G({ ...t, ...A.$attrs }, {
2901
2903
  "chart-type": "stacked-bar",
2902
2904
  options: d(f),
2903
2905
  "x-scale": b.value,
2904
2906
  "y-scale": L.value,
2905
2907
  "data-j-stacked-bar-chart": ""
2906
2908
  }, ae(d(o))), de({
2907
- groups: V((x) => [
2908
- ie(d(ht), G(x, { type: "stacked" }, ae(d(o))), null, 16)
2909
+ groups: V(($) => [
2910
+ ie(d(ht), G($, { type: "stacked" }, ae(d(o))), null, 16)
2909
2911
  ]),
2910
2912
  _: 2
2911
2913
  }, [
2912
- z(d(a), (x, N) => ({
2914
+ z(d(a), ($, N) => ({
2913
2915
  name: N,
2914
2916
  fn: V((D) => [
2915
2917
  M(A.$slots, N, pe(he(D || {})))
@@ -2917,7 +2919,7 @@ const gl = {
2917
2919
  }))
2918
2920
  ]), 1040, ["options", "x-scale", "y-scale"]));
2919
2921
  }
2920
- }), Tl = ["d", "stroke-width"], Ll = 2, Ol = /* @__PURE__ */ W({
2922
+ }), Al = ["d", "stroke-width"], Tl = 2, Ll = /* @__PURE__ */ W({
2921
2923
  __name: "lume-line",
2922
2924
  props: {
2923
2925
  pathDefinition: {
@@ -2926,7 +2928,7 @@ const gl = {
2926
2928
  },
2927
2929
  width: {
2928
2930
  type: Number,
2929
- default: Ll
2931
+ default: Tl
2930
2932
  },
2931
2933
  color: {
2932
2934
  type: String,
@@ -2952,7 +2954,7 @@ const gl = {
2952
2954
  emits: ["click"],
2953
2955
  setup(e, { emit: n }) {
2954
2956
  const t = n, o = R(null);
2955
- return _e(() => ze(o.value)), (a, u) => (y(), $("path", {
2957
+ return _e(() => ze(o.value)), (a, u) => (y(), x("path", {
2956
2958
  ref_key: "root",
2957
2959
  ref: o,
2958
2960
  class: ne(["lume-line", {
@@ -2968,10 +2970,10 @@ const gl = {
2968
2970
  }),
2969
2971
  "data-j-line": "",
2970
2972
  onClick: u[0] || (u[0] = (l) => t("click", l))
2971
- }, null, 14, Tl));
2973
+ }, null, 14, Al));
2972
2974
  }
2973
2975
  });
2974
- const xl = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-08896455"]]), $l = ["cx", "cy", "r", "stroke-width"], wl = 4, Il = /* @__PURE__ */ W({
2976
+ const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx", "cy", "r", "stroke-width"], xl = 4, Il = /* @__PURE__ */ W({
2975
2977
  __name: "lume-point",
2976
2978
  props: {
2977
2979
  x: { type: Number, required: !0 },
@@ -2982,7 +2984,7 @@ const xl = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-08896455"]]), $l = ["cx
2982
2984
  },
2983
2985
  radius: {
2984
2986
  type: Number,
2985
- default: wl
2987
+ default: xl
2986
2988
  },
2987
2989
  active: {
2988
2990
  type: Boolean,
@@ -2992,7 +2994,7 @@ const xl = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-08896455"]]), $l = ["cx
2992
2994
  emits: ["click"],
2993
2995
  setup(e, { emit: n }) {
2994
2996
  const t = e, o = n, a = R(null), u = v(() => t.radius / 2);
2995
- return _e(() => ze(a.value)), (l, i) => (y(), $("circle", {
2997
+ return _e(() => ze(a.value)), (l, i) => (y(), x("circle", {
2996
2998
  ref_key: "root",
2997
2999
  ref: a,
2998
3000
  class: ne(["lume-point", `lume-stroke--${e.color}`]),
@@ -3001,24 +3003,24 @@ const xl = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-08896455"]]), $l = ["cx
3001
3003
  r: e.active ? e.radius : 0,
3002
3004
  "stroke-width": u.value,
3003
3005
  "data-j-point": "",
3004
- onClick: i[0] || (i[0] = (s) => o("click", s))
3006
+ onClick: i[0] || (i[0] = (c) => o("click", c))
3005
3007
  }, null, 10, $l));
3006
3008
  }
3007
3009
  });
3008
- const El = /* @__PURE__ */ ee(Il, [["__scopeId", "data-v-b6745177"]]);
3010
+ const wl = /* @__PURE__ */ ee(Il, [["__scopeId", "data-v-b6745177"]]);
3009
3011
  function ln(e) {
3010
3012
  function n(u) {
3011
3013
  let l = null;
3012
- return u == null ? void 0 : u.reduce((i, s, c) => (s == null || s.value == null ? (l ? l.push(c) : l = [c], c === (u == null ? void 0 : u.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
3014
+ return u == null ? void 0 : u.reduce((i, c, s) => (c == null || c.value == null ? (l ? l.push(s) : l = [s], s === (u == null ? void 0 : u.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
3013
3015
  }
3014
- function t(u, l, i, s) {
3015
- const r = Math.abs(u - l) / (i + 1) * (s + 1);
3016
+ function t(u, l, i, c) {
3017
+ const r = Math.abs(u - l) / (i + 1) * (c + 1);
3016
3018
  return u == null && l == null ? null : u > l ? u - r : u + r;
3017
3019
  }
3018
3020
  function o(u) {
3019
3021
  return function(i) {
3020
3022
  return !!u.find(
3021
- (s) => s.includes(i) || s.includes(i - 1)
3023
+ (c) => c.includes(i) || c.includes(i - 1)
3022
3024
  );
3023
3025
  };
3024
3026
  }
@@ -3027,20 +3029,20 @@ function ln(e) {
3027
3029
  return {
3028
3030
  ...u,
3029
3031
  isDashed: o(l),
3030
- values: u.values.map((i, s) => {
3032
+ values: u.values.map((i, c) => {
3031
3033
  var f, r;
3032
- const c = l.find(
3033
- (m) => m.includes(s)
3034
+ const s = l.find(
3035
+ (m) => m.includes(c)
3034
3036
  );
3035
- if (c) {
3036
- const m = c[0] - 1, g = c[c.length - 1] + 1;
3037
+ if (s) {
3038
+ const m = s[0] - 1, g = s[s.length - 1] + 1;
3037
3039
  let p = (f = u.values[m]) == null ? void 0 : f.value, b = (r = u.values[g]) == null ? void 0 : r.value;
3038
3040
  return p == null && (p = b), b == null && (b = p), {
3039
3041
  value: t(
3040
3042
  p,
3041
3043
  b,
3042
- c.length,
3043
- c.indexOf(s)
3044
+ s.length,
3045
+ s.indexOf(c)
3044
3046
  ),
3045
3047
  label: Ut
3046
3048
  };
@@ -3050,27 +3052,27 @@ function ln(e) {
3050
3052
  };
3051
3053
  })) };
3052
3054
  }
3053
- function Nl(e, n) {
3055
+ function El(e, n) {
3054
3056
  const t = e.bandwidth() / 2;
3055
3057
  return (o, a) => e(e.domain()[n + (a - 1)]) + t;
3056
3058
  }
3057
- function Dl(e, n) {
3059
+ function Nl(e, n) {
3058
3060
  return (t, o) => e(n + (o - 1));
3059
3061
  }
3060
- function Hl(e, n, t, o) {
3061
- const a = _n().x(
3062
- ve(t) ? Nl(t, e) : Dl(t, e)
3062
+ function Dl(e, n, t, o) {
3063
+ const a = gn().x(
3064
+ ve(t) ? El(t, e) : Nl(t, e)
3063
3065
  ).y((u) => o(u));
3064
3066
  return n.every((u) => u == null) ? null : a(n);
3065
3067
  }
3066
- const Bl = {
3068
+ const Hl = {
3067
3069
  class: "lume-line-group",
3068
3070
  "data-j-lume-line-group": ""
3069
- }, Ml = { class: "lume-line-group__lines" }, Sl = {
3071
+ }, Bl = { class: "lume-line-group__lines" }, Ml = {
3070
3072
  key: 0,
3071
3073
  class: "lume-line-group__points",
3072
3074
  "data-j-lume-line-group__points": ""
3073
- }, Rl = 1, Cl = /* @__PURE__ */ W({
3075
+ }, Sl = 1, Rl = /* @__PURE__ */ W({
3074
3076
  __name: "lume-line-group",
3075
3077
  props: {
3076
3078
  ...We(),
@@ -3085,39 +3087,39 @@ const Bl = {
3085
3087
  },
3086
3088
  emits: ["line-click", "point-click", "lume__internal--hover"],
3087
3089
  setup(e, { emit: n }) {
3088
- const t = e, o = n, { data: a, options: u, xScale: l, yScale: i, labels: s } = te(t), c = Pe(
3090
+ const t = e, o = n, { data: a, options: u, xScale: l, yScale: i, labels: c } = te(t), s = Pe(
3089
3091
  "tooltipAnchorAttributes",
3090
3092
  null
3091
3093
  ), { updateTooltipAnchorAttributes: f } = tn(
3092
- c,
3094
+ s,
3093
3095
  u,
3094
3096
  l,
3095
3097
  i,
3096
- s
3098
+ c
3097
3099
  ), r = v(() => {
3098
3100
  if (a.value.every((H) => H.isDashed))
3099
3101
  return a.value;
3100
- const { computedLineData: I } = ln(a);
3101
- return u.value.withTooltip !== !1 && (c != null && c.value) && f(I.value), I.value;
3102
+ const { computedLineData: w } = ln(a);
3103
+ return u.value.withTooltip !== !1 && (s != null && s.value) && f(w.value), w.value;
3102
3104
  }), m = v(() => {
3103
3105
  if (t.hoveredIndex === -1)
3104
3106
  return;
3105
- const I = Nn(
3107
+ const w = En(
3106
3108
  r.value,
3107
3109
  t.hoveredIndex
3108
3110
  );
3109
3111
  return {
3110
3112
  d: `M ${et(l.value, t.hoveredIndex)},${i.value.range()[1]}
3111
- V ${i.value(I)}`
3113
+ V ${i.value(w)}`
3112
3114
  // Move to X index, Vertical line to the highest point
3113
3115
  };
3114
3116
  }), g = v(
3115
- () => l.value && Rl / (Dn(l.value) - 1)
3117
+ () => l.value && Sl / (Nn(l.value) - 1)
3116
3118
  // Subtracting the first line (read below)
3117
3119
  ), p = v(
3118
3120
  () => {
3119
- var I;
3120
- return ((I = u.value) == null ? void 0 : I.lineWidth) * 2 || void 0;
3121
+ var w;
3122
+ return ((w = u.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
3121
3123
  }
3122
3124
  // If no `lineWidth`, returns NaN which needs to be undefined
3123
3125
  ), b = v(
@@ -3125,61 +3127,61 @@ const Bl = {
3125
3127
  ), L = v(() => l.value.domain()), A = v(
3126
3128
  () => u.value.withPoints ?? t.withPoints
3127
3129
  );
3128
- function h(I) {
3129
- return r.value[I].values;
3130
+ function h(w) {
3131
+ return r.value[w].values;
3130
3132
  }
3131
- function x(I, H) {
3133
+ function $(w, H) {
3132
3134
  var K, Q;
3133
- const Y = I === 0 ? [] : [
3134
- (K = h(H)[I - 1]) == null ? void 0 : K.value,
3135
- (Q = h(H)[I]) == null ? void 0 : Q.value
3135
+ const Y = w === 0 ? [] : [
3136
+ (K = h(H)[w - 1]) == null ? void 0 : K.value,
3137
+ (Q = h(H)[w]) == null ? void 0 : Q.value
3136
3138
  ];
3137
- return Hl(
3138
- I,
3139
+ return Dl(
3140
+ w,
3139
3141
  Y,
3140
3142
  l.value,
3141
3143
  i.value
3142
3144
  ) || "";
3143
3145
  }
3144
- function N(I) {
3146
+ function N(w) {
3145
3147
  return {
3146
- animationDelay: I < 2 ? 0 : (I - 1) * g.value,
3148
+ animationDelay: w < 2 ? 0 : (w - 1) * g.value,
3147
3149
  animationDuration: g.value
3148
3150
  };
3149
3151
  }
3150
- function D(I, H) {
3152
+ function D(w, H) {
3151
3153
  var K;
3152
- const Y = (K = h(H)[I]) == null ? void 0 : K.value;
3154
+ const Y = (K = h(H)[w]) == null ? void 0 : K.value;
3153
3155
  return {
3154
- x: ve(l.value) ? t.xScale(L.value[I]) + b.value : t.xScale(I),
3156
+ x: ve(l.value) ? t.xScale(L.value[w]) + b.value : t.xScale(w),
3155
3157
  y: Y === null ? i.value(i.value.domain()[1]) : i.value(Y)
3156
3158
  };
3157
3159
  }
3158
- function P(I) {
3159
- return t.hoveredIndex === I;
3160
+ function P(w) {
3161
+ return t.hoveredIndex === w;
3160
3162
  }
3161
- return (I, H) => (y(), $("g", Bl, [
3163
+ return (w, H) => (y(), x("g", Hl, [
3162
3164
  C("path", G(m.value, {
3163
3165
  class: "lume-line-group__overlay-line",
3164
3166
  "data-j-lume-line-group__overlay-line": ""
3165
3167
  }), null, 16),
3166
- (y(!0), $(q, null, z(r.value, (Y, K) => (y(), $("g", {
3168
+ (y(!0), x(q, null, z(r.value, (Y, K) => (y(), x("g", {
3167
3169
  key: Y.label,
3168
3170
  class: "lume-line-group__group"
3169
3171
  }, [
3170
- C("g", Ml, [
3171
- (y(!0), $(q, null, z(Y.values, (Q, F) => (y(), X(d(xl), G(N(F), {
3172
+ C("g", Bl, [
3173
+ (y(!0), x(q, null, z(Y.values, (Q, F) => (y(), X(d(Ol), G(N(F), {
3172
3174
  key: `line-${F}`,
3173
3175
  color: Y.color,
3174
3176
  dashed: Y.isDashed(F),
3175
- "path-definition": x(F, K),
3177
+ "path-definition": $(F, K),
3176
3178
  transition: e.transition,
3177
3179
  width: d(u).lineWidth,
3178
3180
  onClick: (ue) => o("line-click", { index: F, datasetIndex: K, event: ue })
3179
3181
  }), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
3180
3182
  ]),
3181
- A.value ? (y(), $("g", Sl, [
3182
- (y(!0), $(q, null, z(Y.values, (Q, F) => (y(), X(d(El), G(D(F, K), {
3183
+ A.value ? (y(), x("g", Ml, [
3184
+ (y(!0), x(q, null, z(Y.values, (Q, F) => (y(), X(d(wl), G(D(F, K), {
3183
3185
  key: `point-${F}`,
3184
3186
  active: P(F),
3185
3187
  color: Y.color,
@@ -3192,30 +3194,30 @@ const Bl = {
3192
3194
  ]));
3193
3195
  }
3194
3196
  });
3195
- const un = /* @__PURE__ */ ee(Cl, [["__scopeId", "data-v-44ba7be1"]]), Gl = {
3196
- margins: Te.VERTICAL,
3197
+ const un = /* @__PURE__ */ ee(Rl, [["__scopeId", "data-v-44ba7be1"]]), Cl = {
3198
+ margins: Ae.VERTICAL,
3197
3199
  startOnZero: !0,
3198
3200
  withTooltip: !0,
3199
3201
  xAxisOptions: {},
3200
3202
  yAxisOptions: { gridLines: !0 }
3201
- }, ql = /* @__PURE__ */ W({
3203
+ }, Ql = /* @__PURE__ */ W({
3202
3204
  __name: "lume-line-chart",
3203
3205
  props: {
3204
- ...Ne(null, !1)
3206
+ ...Ee(null, !1)
3205
3207
  },
3206
3208
  setup(e, { emit: n }) {
3207
- const t = e, { componentEventPropagator: o } = ye(), a = Le(re()), { options: u } = te(t), { allOptions: l } = fe(u, Gl);
3208
- return (i, s) => (y(), X(d(De), G(t, {
3209
+ const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Cl);
3210
+ return (i, c) => (y(), X(d(Ne), G({ ...t, ...i.$attrs }, {
3209
3211
  "chart-type": "line",
3210
3212
  options: d(l),
3211
3213
  "data-j-lume-line-chart": ""
3212
3214
  }, ae(d(o))), de({
3213
- groups: V((c) => [
3214
- ie(d(un), G(c, ae(d(o))), null, 16)
3215
+ groups: V((s) => [
3216
+ ie(d(un), G(s, ae(d(o))), null, 16)
3215
3217
  ]),
3216
3218
  _: 2
3217
3219
  }, [
3218
- z(d(a), (c, f) => ({
3220
+ z(d(a), (s, f) => ({
3219
3221
  name: f,
3220
3222
  fn: V((r) => [
3221
3223
  M(i.$slots, f, pe(he(r || {})))
@@ -3224,17 +3226,17 @@ const un = /* @__PURE__ */ ee(Cl, [["__scopeId", "data-v-44ba7be1"]]), Gl = {
3224
3226
  ]), 1040, ["options"]));
3225
3227
  }
3226
3228
  });
3227
- function jl(e) {
3229
+ function Gl(e) {
3228
3230
  return { areaPathDefinition: v(
3229
3231
  () => function(t, o) {
3230
3232
  if (!t || !o || ve(t) || ve(o))
3231
3233
  return;
3232
3234
  const a = e.value[0].values;
3233
- return yn().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
3235
+ return _n().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
3234
3236
  }
3235
3237
  ) };
3236
3238
  }
3237
- const Vl = {
3239
+ const jl = {
3238
3240
  margins: {
3239
3241
  top: 0,
3240
3242
  right: 0,
@@ -3248,16 +3250,16 @@ const Vl = {
3248
3250
  tooltipOptions: {
3249
3251
  showTitle: !1
3250
3252
  }
3251
- }, Pl = ["d"], Fl = /* @__PURE__ */ W({
3253
+ }, Vl = ["d"], Pl = /* @__PURE__ */ W({
3252
3254
  __name: "lume-sparkline-chart",
3253
3255
  props: {
3254
3256
  ...ft(null),
3255
- ...Me()
3257
+ ...Se()
3256
3258
  },
3257
3259
  setup(e, { expose: n, emit: t }) {
3258
- const o = e, { componentEventPropagator: a } = ye(), u = Le(re()), { data: l, options: i } = te(o), { internalData: s } = pt(l), { allOptions: c } = fe(i, Vl), { computedLineData: f } = ln(s), { areaPathDefinition: r } = jl(f), m = v(() => {
3260
+ const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = pt(l), { allOptions: s } = fe(i, jl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = Gl(f), m = v(() => {
3259
3261
  var L, A;
3260
- return (A = (L = s.value) == null ? void 0 : L[0]) == null ? void 0 : A.color;
3262
+ return (A = (L = c.value) == null ? void 0 : L[0]) == null ? void 0 : A.color;
3261
3263
  }), g = v(
3262
3264
  () => {
3263
3265
  var L, A;
@@ -3272,17 +3274,17 @@ const Vl = {
3272
3274
  }
3273
3275
  function b(L, A, h) {
3274
3276
  if (L.length)
3275
- return Be().range([0, h.width]).domain([0, L[0].values.length - 1]);
3277
+ return Me().range([0, h.width]).domain([0, L[0].values.length - 1]);
3276
3278
  }
3277
3279
  return n({
3278
3280
  areaPathDefinition: r
3279
- }), (L, A) => (y(), X(d(De), G(o, {
3281
+ }), (L, A) => (y(), X(d(Ne), G(o, {
3280
3282
  "chart-type": "line",
3281
- options: p(d(c)),
3283
+ options: p(d(s)),
3282
3284
  "x-scale": b
3283
3285
  }, ae(d(a))), de({
3284
3286
  groups: V((h) => [
3285
- d(c).showArea ? (y(), $("path", {
3287
+ d(s).showArea ? (y(), x("path", {
3286
3288
  key: 0,
3287
3289
  class: ne([
3288
3290
  "sparkline-chart__area",
@@ -3292,46 +3294,46 @@ const Vl = {
3292
3294
  ]),
3293
3295
  d: d(r)(h.xScale, h.yScale),
3294
3296
  "data-j-sparkline__area": ""
3295
- }, null, 10, Pl)) : Z("", !0),
3297
+ }, null, 10, Vl)) : Z("", !0),
3296
3298
  ie(d(un), G(h, { "with-points": !1 }, ae(d(a))), null, 16)
3297
3299
  ]),
3298
3300
  _: 2
3299
3301
  }, [
3300
- z(d(u), (h, x) => ({
3301
- name: x,
3302
+ z(d(u), (h, $) => ({
3303
+ name: $,
3302
3304
  fn: V((N) => [
3303
- M(L.$slots, x, pe(he(N || {})), void 0, !0)
3305
+ M(L.$slots, $, pe(he(N || {})), void 0, !0)
3304
3306
  ])
3305
3307
  }))
3306
3308
  ]), 1040, ["options"]));
3307
3309
  }
3308
3310
  });
3309
- const eu = /* @__PURE__ */ ee(Fl, [["__scopeId", "data-v-bda226a1"]]);
3311
+ const ql = /* @__PURE__ */ ee(Pl, [["__scopeId", "data-v-bda226a1"]]);
3310
3312
  export {
3311
- Xl as LumeAlluvialDiagram,
3312
- al as LumeAlluvialGroup,
3313
- wa as LumeAlluvialNodeHeader,
3314
- ka as LumeAlluvialNodeLabel,
3315
- Ta as LumeAlluvialNodeValue,
3313
+ Ul as LumeAlluvialDiagram,
3314
+ ol as LumeAlluvialGroup,
3315
+ xa as LumeAlluvialNodeHeader,
3316
+ ya as LumeAlluvialNodeLabel,
3317
+ Aa as LumeAlluvialNodeValue,
3316
3318
  Lt as LumeAxis,
3317
3319
  mt as LumeBar,
3318
- Yl as LumeBarChart,
3320
+ Xl as LumeBarChart,
3319
3321
  ht as LumeBarGroup,
3320
- De as LumeChart,
3321
- io as LumeChartContainer,
3322
+ Ne as LumeChart,
3323
+ ro as LumeChartContainer,
3322
3324
  Ot as LumeChartLegend,
3323
- Jl as LumeGroupedBarChart,
3324
- xl as LumeLine,
3325
- ql as LumeLineChart,
3325
+ Kl as LumeGroupedBarChart,
3326
+ Ol as LumeLine,
3327
+ Ql as LumeLineChart,
3326
3328
  un as LumeLineGroup,
3327
- Uo as LumeOverlayGroup,
3328
- El as LumePoint,
3329
- Kl as LumeSingleBarChart,
3330
- eu as LumeSparklineChart,
3331
- Ql as LumeStackedBarChart,
3332
- Do as LumeTooltip,
3333
- Oo as LumeTooltipItem,
3334
- ko as LumeTooltipSummary,
3335
- po as LumeTooltipTitle
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
3336
3338
  };
3337
3339
  //# sourceMappingURL=index.js.map