@adyen/lume 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as $, ref as L, isRef as We, computed as c, watch as C, toRefs as R, reactive as re, onMounted as B, onBeforeUnmount as Ze, watchEffect as Xe, useSlots as j, provide as Re, defineAsyncComponent as ce, inject as kt } from "vue";
1
+ import { defineComponent as I, ref as x, isRef as We, computed as c, watch as N, toRefs as R, reactive as ae, onMounted as j, onBeforeUnmount as Ze, watchEffect as Xe, useSlots as V, provide as Ee, defineAsyncComponent as de, inject as kt } from "vue";
2
2
  import { sankeyLinkHorizontal as At, sankey as Ot, sankeyJustify as Tt } from "d3-sankey";
3
- import { format as Lt, ticks as xt, scaleBand as J, scaleLinear as Q, line as $t, area as wt } from "d3";
3
+ import { format as Lt, ticks as xt, scaleBand as J, scaleLinear as Q, line as wt, area as $t } from "d3";
4
4
  import { createPopper as It } from "@popperjs/core";
5
- const Dt = /* @__PURE__ */ $({
5
+ const Dt = /* @__PURE__ */ I({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -40,40 +40,40 @@ const Dt = /* @__PURE__ */ $({
40
40
  },
41
41
  emits: ["click", "mouseenter"],
42
42
  setup(t, { expose: e, emit: r }) {
43
- const n = L(null);
43
+ const n = x(null);
44
44
  return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
45
45
  }
46
46
  });
47
- function w(t, e, r, n, a, o, u, i) {
47
+ function D(t, e, r, n, a, o, u, s) {
48
48
  var l = typeof t == "function" ? t.options : t;
49
49
  e && (l.render = e, l.staticRenderFns = r, l._compiled = !0), n && (l.functional = !0), o && (l._scopeId = "data-v-" + o);
50
- var s;
51
- if (u ? (s = function(f) {
50
+ var i;
51
+ if (u ? (i = function(f) {
52
52
  f = f || // cached call
53
53
  this.$vnode && this.$vnode.ssrContext || // stateful
54
54
  this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), a && a.call(this, f), f && f._registeredComponents && f._registeredComponents.add(u);
55
- }, l._ssrRegister = s) : a && (s = i ? function() {
55
+ }, l._ssrRegister = i) : a && (i = s ? function() {
56
56
  a.call(
57
57
  this,
58
58
  (l.functional ? this.parent : this).$root.$options.shadowRoot
59
59
  );
60
- } : a), s)
60
+ } : a), i)
61
61
  if (l.functional) {
62
- l._injectStyles = s;
62
+ l._injectStyles = i;
63
63
  var v = l.render;
64
- l.render = function(g, _) {
65
- return s.call(_), v(g, _);
64
+ l.render = function(h, _) {
65
+ return i.call(_), v(h, _);
66
66
  };
67
67
  } else {
68
68
  var d = l.beforeCreate;
69
- l.beforeCreate = d ? [].concat(d, s) : [s];
69
+ l.beforeCreate = d ? [].concat(d, i) : [i];
70
70
  }
71
71
  return {
72
72
  exports: t,
73
73
  options: l
74
74
  };
75
75
  }
76
- var Rt = function() {
76
+ var Et = function() {
77
77
  var e = this, r = e._self._c, n = e._self._setupProxy;
78
78
  return r("g", e._b({ staticClass: "axis__tick", class: {
79
79
  "axis__tick--hovered": e.isHovered,
@@ -83,9 +83,9 @@ var Rt = function() {
83
83
  }, click: function(a) {
84
84
  return n.emit("click", a);
85
85
  } } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
86
- }, Ct = [], Et = /* @__PURE__ */ w(
86
+ }, Ct = [], Rt = /* @__PURE__ */ D(
87
87
  Dt,
88
- Rt,
88
+ Et,
89
89
  Ct,
90
90
  !1,
91
91
  null,
@@ -93,7 +93,7 @@ var Rt = function() {
93
93
  null,
94
94
  null
95
95
  );
96
- const Nt = Et.exports;
96
+ const Nt = Rt.exports;
97
97
  function Ye() {
98
98
  return process.env.NODE_ENV === "production";
99
99
  }
@@ -102,33 +102,33 @@ function Ue(t) {
102
102
  (e) => e.values.map((r) => r == null ? void 0 : r.value).flat()
103
103
  ).flat()) || [];
104
104
  }
105
- function ye(t) {
105
+ function be(t) {
106
106
  return t.length === 1;
107
107
  }
108
- function Pt(t) {
108
+ function Bt(t) {
109
109
  return !!t && t.every(
110
110
  (e) => "color" in e
111
111
  );
112
112
  }
113
- function de(t) {
113
+ function ve(t) {
114
114
  return !!t && typeof t == "object" && !Array.isArray(t);
115
115
  }
116
116
  function Ke(t, e) {
117
117
  const r = { ...t };
118
118
  return Object.entries(e).forEach(([n, a]) => {
119
- r[n] = de(t[n]) && de(a) ? Ke(t[n], a) : a;
119
+ r[n] = ve(t[n]) && ve(a) ? Ke(t[n], a) : a;
120
120
  }), r;
121
121
  }
122
- function Gt(t) {
123
- return t != null && de(t) && "value" in t;
122
+ function Ht(t) {
123
+ return t != null && ve(t) && "value" in t;
124
124
  }
125
125
  function W(t) {
126
126
  return (t == null ? void 0 : t.bandwidth) !== void 0;
127
127
  }
128
- function be(t) {
128
+ function ke(t) {
129
129
  return W(t) ? t.bandwidth() : Math.max(...t.range()) / Math.max(...t.domain());
130
130
  }
131
- const St = (t, e) => {
131
+ const Pt = (t, e) => {
132
132
  if (!t)
133
133
  throw new Error("Data is not a valid array");
134
134
  if (t.length === 0)
@@ -138,16 +138,16 @@ const St = (t, e) => {
138
138
  throw new Error("Index exceeds length of at least one of the datasets");
139
139
  });
140
140
  };
141
- function Ht(t, e) {
141
+ function St(t, e) {
142
142
  var r;
143
- return St(t, e), ((r = t.reduce(
143
+ return Pt(t, e), ((r = t.reduce(
144
144
  (n, a) => {
145
145
  var o, u;
146
146
  return (((o = n.values[e]) == null ? void 0 : o.value) ?? 0) > (((u = a.values[e]) == null ? void 0 : u.value) ?? 0) ? n : a;
147
147
  }
148
148
  ).values[e]) == null ? void 0 : r.value) || 0;
149
149
  }
150
- function ve(t) {
150
+ function _e(t) {
151
151
  const e = We(t) ? t.value : t;
152
152
  if (!e)
153
153
  throw new Error("No empty array can be created from specified data value");
@@ -157,7 +157,7 @@ function ve(t) {
157
157
  );
158
158
  return Array(r).fill(null);
159
159
  }
160
- function Bt(t) {
160
+ function Gt(t) {
161
161
  return W(t) ? t.domain().length : Math.max(...t.domain());
162
162
  }
163
163
  function jt(t, e) {
@@ -184,17 +184,17 @@ const Ft = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
184
184
  var q = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
185
185
  Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t))(q || {});
186
186
  const Mt = "[lume] ";
187
- function ae(t, e = !0) {
187
+ function oe(t, e = !0) {
188
188
  e && Ye() || console.warn(Mt + "Warning: " + t);
189
189
  }
190
- const ke = (t) => {
190
+ const te = (t) => {
191
191
  let e = null;
192
192
  switch (typeof t) {
193
193
  case "string":
194
194
  try {
195
195
  e = Lt(t);
196
196
  } catch {
197
- ae(q.InvalidFormat), e = null;
197
+ oe(q.InvalidFormat), e = null;
198
198
  }
199
199
  break;
200
200
  case "function":
@@ -203,17 +203,17 @@ const ke = (t) => {
203
203
  default:
204
204
  e = null;
205
205
  }
206
- function r(n) {
207
- return e ? e(n) : n;
206
+ function r(...n) {
207
+ return e ? e(...n) : n[0];
208
208
  }
209
209
  return r;
210
- }, oe = () => ({
210
+ }, ue = () => ({
211
211
  options: {
212
212
  type: Object,
213
213
  default: () => ({})
214
214
  }
215
215
  });
216
- function H(t, e) {
216
+ function G(t, e) {
217
217
  return { allOptions: c(() => {
218
218
  const n = We(e) ? e == null ? void 0 : e.value : e;
219
219
  return n ? Ke(n, t.value) : t.value;
@@ -221,29 +221,29 @@ function H(t, e) {
221
221
  }
222
222
  const zt = 0.15;
223
223
  function Wt(t, e, r) {
224
- const n = L(), a = c(() => Math.max(...t.value.range())), o = c(() => e.value.length);
224
+ const n = x(), a = c(() => Math.max(...t.value.range())), o = c(() => e.value.length);
225
225
  function u() {
226
226
  if (!e.value)
227
227
  return;
228
228
  const l = e.value.reduce(
229
229
  (v, d) => v + d.ref.getBoundingClientRect().width,
230
230
  0
231
- ), s = Math.ceil(l / o.value);
232
- n.value = s + s * zt;
231
+ ), i = Math.ceil(l / o.value);
232
+ n.value = i + i * zt;
233
233
  }
234
- function i(l) {
234
+ function s(l) {
235
235
  if (!e.value)
236
236
  return !0;
237
- const s = e.value.length;
237
+ const i = e.value.length;
238
238
  if (l === 0)
239
239
  return !0;
240
- const v = a.value / s, d = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / v);
240
+ const v = a.value / i, d = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / v);
241
241
  return l % d === 0;
242
242
  }
243
- return C(e, u), { showTick: i };
243
+ return N(e, u), { showTick: s };
244
244
  }
245
- var G = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(G || {}), Je = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(Je || {}), Ae = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ae || {}), Qe = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Qe || {}), Oe = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(Oe || {});
246
- const A = {
245
+ var P = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(P || {}), Je = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(Je || {}), Ae = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ae || {}), Qe = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(Qe || {}), Oe = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(Oe || {});
246
+ const T = {
247
247
  HORIZONTAL: "horizontal",
248
248
  VERTICAL: "vertical"
249
249
  }, Zt = {
@@ -280,8 +280,8 @@ const A = {
280
280
  "left-start",
281
281
  "left-end"
282
282
  ];
283
- function ue(t) {
284
- t != null && t.closest("svg") || ae(q.NotContainedInSvg);
283
+ function le(t) {
284
+ t != null && t.closest("svg") || oe(q.NotContainedInSvg);
285
285
  }
286
286
  const nt = {
287
287
  /** Displays a line for each tick. */
@@ -308,20 +308,20 @@ const nt = {
308
308
  gridLines: !0
309
309
  }, en = function(t, e, r) {
310
310
  const n = c(() => t.value.step() * t.value.paddingInner() / 2);
311
- function a(l, s) {
311
+ function a(l, i) {
312
312
  return {
313
- transform: `translate(${(t.value(s) ?? t.value(l)) - n.value}, 0)`
313
+ transform: `translate(${(t.value(i) ?? t.value(l)) - n.value}, 0)`
314
314
  };
315
315
  }
316
316
  function o(l) {
317
317
  var v;
318
- const s = Math.max(
318
+ const i = Math.max(
319
319
  t.value.step(),
320
320
  (l ? (v = l.getComputedTextLength) == null ? void 0 : v.call(l) : t.value.step()) + 20
321
321
  );
322
322
  return {
323
- x: -(s - t.value.step()) / 2,
324
- width: s,
323
+ x: -(i - t.value.step()) / 2,
324
+ width: i,
325
325
  height: r.value.tickPadding + et + tt
326
326
  };
327
327
  }
@@ -334,7 +334,7 @@ const nt = {
334
334
  // Negative height means it goes from bottom to top
335
335
  };
336
336
  }
337
- function i() {
337
+ function s() {
338
338
  return {
339
339
  x: t.value.step() / 2,
340
340
  y: r.value.tickPadding,
@@ -346,21 +346,21 @@ const nt = {
346
346
  getGridLinesAttributes: u,
347
347
  getTickGhostAttributes: o,
348
348
  getTickGroupAttributes: a,
349
- getTickLabelAttributes: i
349
+ getTickLabelAttributes: s
350
350
  };
351
351
  }, tn = function(t, e, r) {
352
352
  const n = c(() => t.value.step() * t.value.paddingInner() / 2);
353
- function a(l, s) {
353
+ function a(l, i) {
354
354
  return {
355
- transform: `translate(0, ${(t.value(s) ?? t.value(l)) - n.value})`
355
+ transform: `translate(0, ${(t.value(i) ?? t.value(l)) - n.value})`
356
356
  };
357
357
  }
358
358
  function o(l) {
359
359
  var v;
360
- const s = (l ? (v = l.getComputedTextLength) == null ? void 0 : v.call(l) : 42) + r.value.tickPadding * 2;
360
+ const i = (l ? (v = l.getComputedTextLength) == null ? void 0 : v.call(l) : 42) + r.value.tickPadding * 2;
361
361
  return {
362
- x: -s,
363
- width: s,
362
+ x: -i,
363
+ width: i,
364
364
  height: t.value.step()
365
365
  };
366
366
  }
@@ -372,7 +372,7 @@ const nt = {
372
372
  x1: e.value.width
373
373
  };
374
374
  }
375
- function i() {
375
+ function s() {
376
376
  return {
377
377
  x: -r.value.tickPadding,
378
378
  y: t.value.step() / 2,
@@ -384,7 +384,7 @@ const nt = {
384
384
  getGridLinesAttributes: u,
385
385
  getTickGhostAttributes: o,
386
386
  getTickGroupAttributes: a,
387
- getTickLabelAttributes: i
387
+ getTickLabelAttributes: s
388
388
  };
389
389
  }, nn = function(t, e, r) {
390
390
  const n = c(() => {
@@ -408,7 +408,7 @@ const nt = {
408
408
  y1: -e.value.height
409
409
  };
410
410
  }
411
- function i() {
411
+ function s() {
412
412
  return {
413
413
  y: r.value.tickPadding,
414
414
  dy: "0.8em",
@@ -419,7 +419,7 @@ const nt = {
419
419
  getGridLinesAttributes: u,
420
420
  getTickGhostAttributes: o,
421
421
  getTickGroupAttributes: a,
422
- getTickLabelAttributes: i
422
+ getTickLabelAttributes: s
423
423
  };
424
424
  }, rn = function(t, e, r) {
425
425
  const n = c(() => {
@@ -433,11 +433,11 @@ const nt = {
433
433
  }
434
434
  function o(l) {
435
435
  var v;
436
- const s = (((v = l == null ? void 0 : l.getComputedTextLength) == null ? void 0 : v.call(l)) || 0) + r.value.tickPadding * 2;
436
+ const i = (((v = l == null ? void 0 : l.getComputedTextLength) == null ? void 0 : v.call(l)) || 0) + r.value.tickPadding * 2;
437
437
  return {
438
- width: s,
438
+ width: i,
439
439
  height: n.value,
440
- x: -s,
440
+ x: -i,
441
441
  y: -(n.value / 2)
442
442
  };
443
443
  }
@@ -446,7 +446,7 @@ const nt = {
446
446
  x1: e.value.width
447
447
  };
448
448
  }
449
- function i() {
449
+ function s() {
450
450
  return {
451
451
  x: -r.value.tickPadding,
452
452
  dy: "0.4em",
@@ -457,7 +457,7 @@ const nt = {
457
457
  getGridLinesAttributes: u,
458
458
  getTickGhostAttributes: o,
459
459
  getTickGroupAttributes: a,
460
- getTickLabelAttributes: i
460
+ getTickLabelAttributes: s
461
461
  };
462
462
  }, an = {
463
463
  "x-band-scale-axis": en,
@@ -465,8 +465,8 @@ const nt = {
465
465
  "x-linear-scale-axis": nn,
466
466
  "y-linear-scale-axis": rn
467
467
  };
468
- var _e = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(_e || {}), pe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(pe || {}), ee = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(ee || {});
469
- const on = /* @__PURE__ */ $({
468
+ var pe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(pe || {}), fe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(fe || {}), ee = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(ee || {});
469
+ const on = /* @__PURE__ */ I({
470
470
  __name: "lume-axis",
471
471
  props: {
472
472
  scale: {
@@ -481,7 +481,7 @@ const on = /* @__PURE__ */ $({
481
481
  position: {
482
482
  type: String,
483
483
  default: void 0,
484
- validator: (t) => t in pe
484
+ validator: (t) => t in fe
485
485
  },
486
486
  containerSize: {
487
487
  type: Object,
@@ -493,71 +493,71 @@ const on = /* @__PURE__ */ $({
493
493
  },
494
494
  orientation: {
495
495
  type: String,
496
- default: A.VERTICAL
496
+ default: T.VERTICAL
497
497
  },
498
- ...oe()
498
+ ...ue()
499
499
  },
500
500
  emits: ["mouseenter", "click", "mouseleave"],
501
501
  setup(t, { emit: e }) {
502
- const r = t, { scale: n, containerSize: a, hoveredIndex: o, options: u, orientation: i } = R(r), l = re({}), s = L(null), v = L(null), d = L(null), f = c(
502
+ const r = t, { scale: n, containerSize: a, hoveredIndex: o, options: u, orientation: s } = R(r), l = ae({}), i = x(null), v = x(null), d = x(null), f = c(
503
503
  () => r.type ? ee[r.type] : r.position
504
- ), g = c(
504
+ ), h = c(
505
505
  () => r.type || (f.value === "left" ? "y" : "x")
506
506
  ), _ = c(
507
- () => g.value === "x" && i.value === A.VERTICAL || g.value === "y" && i.value === A.HORIZONTAL
508
- ), { allOptions: p } = H(
507
+ () => h.value === "x" && s.value === T.VERTICAL || h.value === "y" && s.value === T.HORIZONTAL
508
+ ), { allOptions: p } = G(
509
509
  u,
510
- g.value === "x" ? Qt : qt
511
- ), { showTick: O } = Wt(n, s, p.value.skip), h = c(
510
+ h.value === "x" ? Qt : qt
511
+ ), { showTick: b } = Wt(n, i, p.value.skip), m = c(
512
512
  () => {
513
- var x;
514
- return `translate(0, ${g.value === "x" ? (x = a.value) == null ? void 0 : x.height : 0})`;
513
+ var w;
514
+ return `translate(0, ${h.value === "x" ? (w = a.value) == null ? void 0 : w.height : 0})`;
515
515
  }
516
- ), b = c(() => {
516
+ ), g = c(() => {
517
517
  if (W(n.value))
518
518
  return n.value.labels || n.value.domain();
519
- const { tickCount: x } = p.value, [D, S] = n.value.domain();
520
- return xt(D, S, x);
521
- }), y = c(() => {
522
- const { tickFormat: x } = p.value;
523
- return ke(x);
524
- }), m = c(
519
+ const { tickCount: w } = p.value, [C, S] = n.value.domain();
520
+ return xt(C, S, w);
521
+ }), O = c(() => {
522
+ const { tickFormat: w } = p.value;
523
+ return te(w);
524
+ }), L = c(
525
525
  () => p.value.withHover && _.value && o.value > -1
526
526
  );
527
- function T(x) {
528
- const { showTicks: D } = p.value;
529
- return D === !1 ? "" : y.value(x);
527
+ function y(w) {
528
+ const { showTicks: C } = p.value;
529
+ return C === !1 ? "" : O.value(w);
530
530
  }
531
- function E(x, D, S) {
532
- e("mouseenter", { index: _.value ? x : null, value: D, event: S });
531
+ function k(w, C, S) {
532
+ e("mouseenter", { index: _.value ? w : null, value: C, event: S });
533
533
  }
534
- function I(x, D, S) {
535
- e("click", { index: x, value: D, event: S });
534
+ function $(w, C, S) {
535
+ e("click", { index: w, value: C, event: S });
536
536
  }
537
- function N(x) {
538
- if (!(!s.value || !s.value.length))
539
- return s.value[x].ref;
537
+ function E(w) {
538
+ if (!(!i.value || !i.value.length))
539
+ return i.value[w].ref;
540
540
  }
541
- function V() {
542
- d.value = b.value.map(
543
- (x, D) => ({
544
- value: T(x),
545
- group: l.getTickGroupAttributes(x, D),
546
- ghost: l.getTickGhostAttributes(N(D)),
541
+ function H() {
542
+ d.value = g.value.map(
543
+ (w, C) => ({
544
+ value: y(w),
545
+ group: l.getTickGroupAttributes(w, C),
546
+ ghost: l.getTickGhostAttributes(E(C)),
547
547
  label: l.getTickLabelAttributes(),
548
548
  gridline: l.getGridLinesAttributes()
549
549
  })
550
550
  );
551
551
  }
552
552
  function Y() {
553
- const x = n.value.step ? "bandScale" : "linearScale", D = an[`${g.value}-${_e[x]}`];
554
- Object.entries(D(n, a, p) || []).forEach(
555
- ([S, se]) => {
556
- l[S] = se;
553
+ const w = n.value.step ? "bandScale" : "linearScale", C = an[`${h.value}-${pe[w]}`];
554
+ Object.entries(C(n, a, p) || []).forEach(
555
+ ([S, ce]) => {
556
+ l[S] = ce;
557
557
  }
558
558
  );
559
559
  }
560
- return C(n, Y, { flush: "sync", immediate: !0 }), C(n, V, { immediate: !0 }), C(s, V), B(() => ue(v.value)), { __sfc: !0, SCALE_MIXIN_MAP: _e, POSITIONS: pe, TYPES: ee, props: r, emit: e, scale: n, containerSize: a, hoveredIndex: o, options: u, orientation: i, mixins: l, tickRefs: s, root: v, ticksWithAttributes: d, computedPosition: f, computedType: g, shouldHover: _, allOptions: p, showTick: O, axisTransform: h, ticks: b, tickFormatter: y, isHovering: m, formatTick: T, handleTickMouseenter: E, handleTickClick: I, getTextNode: N, setTicks: V, init: Y, LumeTick: Nt };
560
+ return N(n, Y, { flush: "sync", immediate: !0 }), N(n, H, { immediate: !0 }), N(i, H), j(() => le(v.value)), { __sfc: !0, SCALE_MIXIN_MAP: pe, POSITIONS: fe, TYPES: ee, props: r, emit: e, scale: n, containerSize: a, hoveredIndex: o, options: u, orientation: s, mixins: l, tickRefs: i, root: v, ticksWithAttributes: d, computedPosition: f, computedType: h, shouldHover: _, allOptions: p, showTick: b, axisTransform: m, ticks: g, tickFormatter: O, isHovering: L, formatTick: y, handleTickMouseenter: k, handleTickClick: $, getTextNode: E, setTicks: H, init: Y, LumeTick: Nt };
561
561
  }
562
562
  });
563
563
  var un = function() {
@@ -577,7 +577,7 @@ var un = function() {
577
577
  a
578
578
  );
579
579
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
580
- }, ln = [], sn = /* @__PURE__ */ w(
580
+ }, ln = [], sn = /* @__PURE__ */ D(
581
581
  on,
582
582
  un,
583
583
  ln,
@@ -594,19 +594,19 @@ function dn(t, e, r, n) {
594
594
  ), u = c(
595
595
  () => a.value ? t.value - 0.5 : t.value
596
596
  // draws the 1px bar closer to the axis
597
- ), i = c(
597
+ ), s = c(
598
598
  () => o.value ? e.value - 0.5 : e.value
599
599
  // draws the 1px bar closer to the axis
600
600
  );
601
- return { computedX: u, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
601
+ return { computedX: u, computedY: s, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
602
602
  }
603
603
  function vn(t, e, r, n) {
604
- const a = L(0), o = L(0), u = c(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
605
- return B(() => {
604
+ const a = x(0), o = x(0), u = c(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
605
+ return j(() => {
606
606
  a.value = r.value, o.value = n.value;
607
- }), C(r, (i) => a.value = i), C(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: u };
607
+ }), N(r, (s) => a.value = s), N(n, (s) => o.value = s), { computedWidth: a, computedHeight: o, transformOrigin: u };
608
608
  }
609
- const _n = /* @__PURE__ */ $({
609
+ const _n = /* @__PURE__ */ I({
610
610
  __name: "lume-bar",
611
611
  props: {
612
612
  x: {
@@ -644,10 +644,10 @@ const _n = /* @__PURE__ */ $({
644
644
  },
645
645
  emits: ["click", "mouseover", "mouseleave"],
646
646
  setup(t, { emit: e }) {
647
- const r = t, { x: n, y: a, width: o, height: u, transition: i, classList: l } = R(r), s = L(null), v = c(
647
+ const r = t, { x: n, y: a, width: o, height: u, transition: s, classList: l } = R(r), i = x(null), v = c(
648
648
  () => typeof l.value == "string" ? [l.value] : l.value
649
- ), d = c(() => i.value === "width"), f = c(() => i.value === "height"), g = vn(n, a, o, u), { computedX: _, computedY: p, shouldHaveMinWidth: O, shouldHaveMinHeight: h } = dn(n, a, o, u), b = c(() => O.value ? 1 : (d.value ? g.computedWidth : o).value), y = c(() => h.value ? 1 : (f.value ? g.computedHeight : u).value), m = d.value || f.value ? g.transformOrigin : null;
650
- return B(() => ue(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: u, transition: i, classList: l, root: s, computedClasses: v, shouldTransitionWidth: d, shouldTransitionHeight: f, transitionProps: g, computedX: _, computedY: p, shouldHaveMinWidth: O, shouldHaveMinHeight: h, computedWidth: b, computedHeight: y, transformOrigin: m };
649
+ ), d = c(() => s.value === "width"), f = c(() => s.value === "height"), h = vn(n, a, o, u), { computedX: _, computedY: p, shouldHaveMinWidth: b, shouldHaveMinHeight: m } = dn(n, a, o, u), g = c(() => b.value ? 1 : (d.value ? h.computedWidth : o).value), O = c(() => m.value ? 1 : (f.value ? h.computedHeight : u).value), L = d.value || f.value ? h.transformOrigin : null;
650
+ return j(() => le(i.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: u, transition: s, classList: l, root: i, computedClasses: v, shouldTransitionWidth: d, shouldTransitionHeight: f, transitionProps: h, computedX: _, computedY: p, shouldHaveMinWidth: b, shouldHaveMinHeight: m, computedWidth: g, computedHeight: O, transformOrigin: L };
651
651
  }
652
652
  });
653
653
  var pn = function() {
@@ -667,7 +667,7 @@ var pn = function() {
667
667
  }, mouseleave: function(a) {
668
668
  return n.emit("mouseleave", a);
669
669
  } } });
670
- }, fn = [], mn = /* @__PURE__ */ w(
670
+ }, fn = [], mn = /* @__PURE__ */ D(
671
671
  _n,
672
672
  pn,
673
673
  fn,
@@ -679,20 +679,20 @@ var pn = function() {
679
679
  );
680
680
  const Te = mn.exports;
681
681
  function hn() {
682
- const t = L(), e = re({
682
+ const t = x(), e = ae({
683
683
  dimensions: {}
684
684
  }), r = new ResizeObserver((n) => {
685
685
  n.forEach((a) => {
686
686
  e.dimensions = a.contentRect;
687
687
  });
688
688
  });
689
- return B(() => {
689
+ return j(() => {
690
690
  r.observe(t.value);
691
691
  }), Ze(() => {
692
692
  r.unobserve(t.value);
693
693
  }), { resizeState: e, resizeRef: t };
694
694
  }
695
- const gn = /* @__PURE__ */ $({
695
+ const gn = /* @__PURE__ */ I({
696
696
  __name: "lume-chart-container",
697
697
  props: {
698
698
  margins: {
@@ -719,13 +719,13 @@ const gn = /* @__PURE__ */ $({
719
719
  right: 0,
720
720
  top: 0,
721
721
  bottom: 0
722
- }, { margins: a, containerSize: o } = R(r), u = L(null), { resizeRef: i, resizeState: l } = hn(), s = c(() => ({
722
+ }, { margins: a, containerSize: o } = R(r), u = x(null), { resizeRef: s, resizeState: l } = hn(), i = c(() => ({
723
723
  ...n,
724
724
  // Default values
725
725
  ...a.value
726
726
  // Prop overrides
727
727
  })), v = c(
728
- () => o.value.height + s.value.top + s.value.bottom
728
+ () => o.value.height + i.value.top + i.value.bottom
729
729
  );
730
730
  return Xe(() => {
731
731
  if (!u.value)
@@ -733,14 +733,14 @@ const gn = /* @__PURE__ */ $({
733
733
  const { width: d } = l.dimensions, { height: f } = u.value.getBoundingClientRect();
734
734
  if (!d || !f)
735
735
  return;
736
- const g = d - s.value.left - s.value.right, _ = f - s.value.top - s.value.bottom, p = {
737
- width: g > 0 ? g : 0,
736
+ const h = d - i.value.left - i.value.right, _ = f - i.value.top - i.value.bottom, p = {
737
+ width: h > 0 ? h : 0,
738
738
  height: _ > 0 ? _ : 0,
739
739
  outerWidth: d,
740
740
  outerHeight: f
741
741
  };
742
742
  e("resize", p);
743
- }), { __sfc: !0, BASE_MARGINS: n, props: r, emit: e, margins: a, containerSize: o, root: u, resizeRef: i, resizeState: l, computedMargins: s, svgHeight: v };
743
+ }), { __sfc: !0, BASE_MARGINS: n, props: r, emit: e, margins: a, containerSize: o, root: u, resizeRef: s, resizeState: l, computedMargins: i, svgHeight: v };
744
744
  }
745
745
  });
746
746
  var yn = function() {
@@ -756,7 +756,7 @@ var yn = function() {
756
756
  }, mouseleave: function(a) {
757
757
  return n.emit("mouseleave", a);
758
758
  } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.computedMargins.left}, ${n.computedMargins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
759
- }, bn = [], kn = /* @__PURE__ */ w(
759
+ }, bn = [], kn = /* @__PURE__ */ D(
760
760
  gn,
761
761
  yn,
762
762
  bn,
@@ -766,12 +766,12 @@ var yn = function() {
766
766
  null,
767
767
  null
768
768
  );
769
- const An = kn.exports, On = /* @__PURE__ */ $({
769
+ const An = kn.exports, On = /* @__PURE__ */ I({
770
770
  __name: "lume-chart-legend",
771
771
  props: {
772
772
  data: {
773
773
  type: Array,
774
- validator: Pt,
774
+ validator: Bt,
775
775
  required: !0
776
776
  }
777
777
  },
@@ -791,7 +791,7 @@ var Tn = function() {
791
791
  return n.emit("mouseenter", { index: o, dataset: a, event: u });
792
792
  } } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${a.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(a.label || o) + " ")]);
793
793
  }), 0);
794
- }, Ln = [], xn = /* @__PURE__ */ w(
794
+ }, Ln = [], xn = /* @__PURE__ */ D(
795
795
  On,
796
796
  Tn,
797
797
  Ln,
@@ -801,7 +801,7 @@ var Tn = function() {
801
801
  null,
802
802
  null
803
803
  );
804
- const $n = xn.exports, wn = /* @__PURE__ */ $({
804
+ const wn = xn.exports, $n = /* @__PURE__ */ I({
805
805
  __name: "lume-tooltip",
806
806
  props: {
807
807
  targetElement: {
@@ -833,13 +833,13 @@ const $n = xn.exports, wn = /* @__PURE__ */ $({
833
833
  type: String,
834
834
  default: null
835
835
  },
836
- ...oe()
836
+ ...ue()
837
837
  },
838
838
  emits: ["opened", "moved", "closed"],
839
839
  setup(t, { emit: e }) {
840
- const r = t, n = L(null), { items: a, options: o } = R(r), u = L(null), { allOptions: i } = H(o), l = c(
841
- () => i.value.fixedPositioning ?? r.fixedPositioning
842
- ), s = c(
840
+ const r = t, n = x(null), { items: a, options: o } = R(r), u = x(null), { allOptions: s } = G(o), l = c(
841
+ () => s.value.fixedPositioning ?? r.fixedPositioning
842
+ ), i = c(
843
843
  () => l.value ? "fixed" : "absolute"
844
844
  ), v = c(() => [
845
845
  {
@@ -851,107 +851,107 @@ const $n = xn.exports, wn = /* @__PURE__ */ $({
851
851
  },
852
852
  {
853
853
  name: "offset",
854
- options: { offset: [0, i.value.offset || 8] }
854
+ options: { offset: [0, s.value.offset || 8] }
855
855
  },
856
856
  ...r.modifiers || []
857
857
  ]), d = c(
858
- () => i.value.showTitle !== !1 && r.title != null
859
- ), f = c(() => ke(i.value.valueFormat)), g = c(
858
+ () => s.value.showTitle !== !1 && r.title != null
859
+ ), f = c(() => te(s.value.valueFormat)), h = c(() => te(s.value.titleFormat)), _ = c(
860
860
  () => {
861
- var h;
862
- return ((h = a.value) == null ? void 0 : h.find((b) => b.isSummary)) || {
863
- label: i.value.summary ?? r.summary
861
+ var g;
862
+ return ((g = a.value) == null ? void 0 : g.find((O) => O.isSummary)) || {
863
+ label: s.value.summary ?? r.summary
864
864
  };
865
865
  }
866
866
  );
867
- function _() {
867
+ function p() {
868
868
  r.targetElement && n.value && (u.value = It(r.targetElement, n.value, {
869
869
  placement: r.position,
870
- strategy: s.value,
870
+ strategy: i.value,
871
871
  modifiers: v.value
872
872
  }), e("opened", r.targetElement));
873
873
  }
874
- function p() {
874
+ function b() {
875
875
  u.value && (u.value.destroy(), e("closed"));
876
876
  }
877
- function O() {
877
+ function m() {
878
878
  u.value && (n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
879
879
  u.value.state.elements.reference = r.targetElement, u.value.update(), e("moved", r.targetElement);
880
- }() : p());
880
+ }() : b());
881
881
  }
882
- return C(
882
+ return N(
883
883
  () => r.targetElement,
884
- (h, b) => {
885
- !b && h ? _() : O();
884
+ (g, O) => {
885
+ !O && g ? p() : m();
886
886
  }
887
- ), B(_), Ze(p), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, popper: u, allOptions: i, computedFixedPositioning: l, strategy: s, allModifiers: v, showTitle: d, formatValue: f, summaryItem: g, initPopper: _, destroyPopper: p, updatePopper: O };
887
+ ), j(p), Ze(b), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, popper: u, allOptions: s, computedFixedPositioning: l, strategy: i, allModifiers: v, showTitle: d, formatValue: f, formatTitle: h, summaryItem: _, initPopper: p, destroyPopper: b, updatePopper: m };
888
888
  }
889
889
  });
890
890
  var In = function() {
891
891
  var e = this, r = e._self._c, n = e._self._setupProxy;
892
892
  return r("div", { directives: [{ name: "show", rawName: "v-show", value: e.targetElement, expression: "targetElement" }], ref: "root", staticClass: "lume-tooltip lume-typography--caption", attrs: { "data-j-tooltip": "" } }, [e._t("default", function() {
893
- return [n.showTitle ? r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._v(" " + e._s(e.title) + " ")]) : e._e(), r("ul", { staticClass: "lume-tooltip__items" }, [n.summaryItem.label ? [r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._v(" " + e._s(n.summaryItem.label) + " ")]), n.summaryItem.value ? r("strong", { staticClass: "lume-tooltip__value" }, [e._v(" " + e._s(n.formatValue(n.summaryItem.value)) + " ")]) : e._e()]), e._m(0)] : e._e(), e._l(n.items, function(a) {
893
+ return [n.showTitle ? r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._v(" " + e._s(n.formatTitle(e.title)) + " ")]) : e._e(), r("ul", { staticClass: "lume-tooltip__items" }, [n.summaryItem.label ? [r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._v(" " + e._s(n.summaryItem.label) + " ")]), n.summaryItem.value ? r("strong", { staticClass: "lume-tooltip__value" }, [e._v(" " + e._s(n.formatValue(n.summaryItem.value)) + " ")]) : e._e()]), e._m(0)] : e._e(), e._l(n.items, function(a) {
894
894
  return r("li", { key: a.label, staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${a.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._v(" " + e._s(a.label) + " ")]), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._v(" " + e._s(n.formatValue(a.value)) + " ")])]);
895
895
  })], 2)];
896
896
  })], 2);
897
897
  }, Dn = [function() {
898
898
  var t = this, e = t._self._c;
899
899
  return t._self._setupProxy, e("li", { staticClass: "lume-tooltip__break" }, [e("hr")]);
900
- }], Rn = /* @__PURE__ */ w(
901
- wn,
900
+ }], En = /* @__PURE__ */ D(
901
+ $n,
902
902
  In,
903
903
  Dn,
904
904
  !1,
905
905
  null,
906
- "2c5936cf",
906
+ "f73a5e06",
907
907
  null,
908
908
  null
909
909
  );
910
- const Cn = Rn.exports;
910
+ const Cn = En.exports;
911
911
  var M = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(M || {});
912
- const En = M.Categorical, le = G.Skyblue, Nn = Ae.SkyTeal;
913
- function Pn(t) {
914
- return t === M.Divergent ? Nn : le;
912
+ const Rn = M.Categorical, ie = P.Skyblue, Nn = Ae.SkyTeal;
913
+ function Bn(t) {
914
+ return t === M.Divergent ? Nn : ie;
915
915
  }
916
- function Gn(t) {
916
+ function Hn(t) {
917
917
  return Object.values(Oe).includes(t);
918
918
  }
919
919
  function Ce(t, e) {
920
920
  return e === M.Divergent ? Object.values(Ae).includes(t) : Object.values({
921
- ...G,
921
+ ...P,
922
922
  ...Je,
923
923
  ...Qe,
924
924
  ...Oe
925
925
  }).includes(t);
926
926
  }
927
- function Sn(t, e) {
928
- const r = Object.values(G).indexOf(t);
929
- return Vt(Object.values(G), r > -1 ? r : 0)[e];
927
+ function Pn(t, e) {
928
+ const r = Object.values(P).indexOf(t);
929
+ return Vt(Object.values(P), r > -1 ? r : 0)[e];
930
930
  }
931
- function Hn(t, e) {
931
+ function Sn(t, e) {
932
932
  const r = 50 + e * 10;
933
933
  return `${t}-${r}`;
934
934
  }
935
- function Bn(t, e) {
935
+ function Gn(t, e) {
936
936
  const r = (e + 1) * 10;
937
937
  return `${t}-${r}`;
938
938
  }
939
- function Ee(t, e, r) {
939
+ function Re(t, e, r) {
940
940
  switch (e) {
941
941
  default:
942
942
  case M.Categorical:
943
- return Gn(t) ? t : Sn(t, r);
943
+ return Hn(t) ? t : Pn(t, r);
944
944
  case M.Sequential:
945
- return Hn(t, r);
945
+ return Sn(t, r);
946
946
  case M.Divergent:
947
- return Bn(t, r);
947
+ return Gn(t, r);
948
948
  }
949
949
  }
950
- function jn(t, e, r = En, n) {
951
- return Ce(t, r) ? t : (n > 4 && (ae(q.ColorLoop), n = n % 5), Ce(e, r) ? Ee(e, r, n) : Ee(Pn(r), r, n));
950
+ function jn(t, e, r = Rn, n) {
951
+ return Ce(t, r) ? t : (n > 4 && (oe(q.ColorLoop), n = n % 5), Ce(e, r) ? Re(e, r, n) : Re(Bn(r), r, n));
952
952
  }
953
953
  function Vn(t) {
954
- return t.map((e) => Gt(e) ? e : { value: e });
954
+ return t.map((e) => Ht(e) ? e : { value: e });
955
955
  }
956
956
  function Fn(t) {
957
957
  return t.__internal === !0;
@@ -968,20 +968,20 @@ const rt = (t = null) => ({
968
968
  },
969
969
  color: {
970
970
  type: String,
971
- default: G.Skyblue
971
+ default: P.Skyblue
972
972
  }
973
973
  });
974
974
  function Le(t, e, r, n, a) {
975
- const o = re({
975
+ const o = ae({
976
976
  width: 0,
977
977
  height: 0
978
- }), u = Ft(12), i = c(() => {
978
+ }), u = Ft(12), s = c(() => {
979
979
  var v;
980
- return t.value.length > 5 && ae(q.DatasetLength), (v = t.value) == null ? void 0 : v.map(
980
+ return t.value.length > 5 && oe(q.DatasetLength), (v = t.value) == null ? void 0 : v.map(
981
981
  (d, f) => {
982
982
  if (Fn(d))
983
983
  return d;
984
- const g = Vn(d.values), _ = jn(
984
+ const h = Vn(d.values), _ = jn(
985
985
  d.color,
986
986
  r == null ? void 0 : r.value,
987
987
  n == null ? void 0 : n.value.colorPalette,
@@ -989,23 +989,23 @@ function Le(t, e, r, n, a) {
989
989
  );
990
990
  return {
991
991
  ...d,
992
- values: g,
992
+ values: h,
993
993
  color: _,
994
994
  __internal: !0
995
995
  };
996
996
  }
997
997
  );
998
- }), l = c(() => Array.isArray(e.value) ? e.value : ve(t.value).map((v, d) => d));
999
- function s(v) {
1000
- const d = (a == null ? void 0 : a.value) === A.HORIZONTAL ? ve(t).length * (Xt * 2) : v.height;
998
+ }), l = c(() => Array.isArray(e.value) ? e.value : _e(t.value).map((v, d) => d));
999
+ function i(v) {
1000
+ const d = (a == null ? void 0 : a.value) === T.HORIZONTAL ? _e(t).length * (Xt * 2) : v.height;
1001
1001
  o.width = v.width, o.height = d;
1002
1002
  }
1003
1003
  return {
1004
1004
  chartID: u,
1005
1005
  computedLabels: l,
1006
1006
  containerSize: o,
1007
- internalData: i,
1008
- updateSize: s
1007
+ internalData: s,
1008
+ updateSize: i
1009
1009
  };
1010
1010
  }
1011
1011
  const Mn = () => ({
@@ -1019,22 +1019,22 @@ const Mn = () => ({
1019
1019
  }
1020
1020
  });
1021
1021
  function zn(t, e, r, n, a) {
1022
- const o = L(null), u = L(null);
1023
- function i() {
1024
- const { width: l, height: s } = r;
1025
- !l && !s || !e.value || !t.value || (n.value === A.HORIZONTAL ? (o.value = Pe(
1022
+ const o = x(null), u = x(null);
1023
+ function s() {
1024
+ const { width: l, height: i } = r;
1025
+ !l && !i || !e.value || !t.value || (n.value === T.HORIZONTAL ? (o.value = Be(
1026
1026
  t.value,
1027
1027
  l,
1028
1028
  n.value,
1029
1029
  a.value.startOnZero
1030
- ), u.value = Ne(e.value, s)) : (o.value = Ne(e.value, l), u.value = Pe(
1030
+ ), u.value = Ne(e.value, i)) : (o.value = Ne(e.value, l), u.value = Be(
1031
1031
  t.value,
1032
- s,
1032
+ i,
1033
1033
  n.value,
1034
1034
  a.value.startOnZero
1035
1035
  )));
1036
1036
  }
1037
- return Xe(i), { xScale: o, yScale: u };
1037
+ return Xe(s), { xScale: o, yScale: u };
1038
1038
  }
1039
1039
  function Ne(t, e) {
1040
1040
  const r = [0, e];
@@ -1043,34 +1043,34 @@ function Ne(t, e) {
1043
1043
  { labels: t }
1044
1044
  );
1045
1045
  }
1046
- function Pe(t, e, r, n) {
1046
+ function Be(t, e, r, n) {
1047
1047
  const a = Ue(t).filter((v) => v != null), o = [0, e];
1048
1048
  if (a.length === 0)
1049
1049
  return Q().range(o).domain([0, 0]).nice();
1050
- const u = Math.min(...a), i = n && u > 0 ? 0 : u, l = Math.max(...a), s = r === A.HORIZONTAL ? [i, l] : [l, i];
1051
- return Q().range(o).domain(s).nice();
1050
+ const u = Math.min(...a), s = n && u > 0 ? 0 : u, l = Math.max(...a), i = r === T.HORIZONTAL ? [s, l] : [l, s];
1051
+ return Q().range(o).domain(i).nice();
1052
1052
  }
1053
- function Ge(t) {
1053
+ function He(t) {
1054
1054
  return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
1055
1055
  }
1056
- function fe(t, e) {
1056
+ function me(t, e) {
1057
1057
  return W(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1058
1058
  }
1059
- function te(t, e, {
1059
+ function ne(t, e, {
1060
1060
  padding: r,
1061
1061
  paddingInner: n,
1062
1062
  paddingOuter: a
1063
1063
  } = {}) {
1064
- const o = r ?? (e === A.HORIZONTAL ? Ut : Yt);
1064
+ const o = r ?? (e === T.HORIZONTAL ? Ut : Yt);
1065
1065
  return t.copy().paddingInner(n ?? o).paddingOuter(a ?? o / 2);
1066
1066
  }
1067
1067
  function at(t) {
1068
- return Object.values(A).includes(t);
1068
+ return Object.values(T).includes(t);
1069
1069
  }
1070
1070
  const X = (t, e = !0, r = !0) => ({
1071
1071
  ...rt(t),
1072
1072
  ...r ? Mn() : {},
1073
- ...oe(),
1073
+ ...ue(),
1074
1074
  title: {
1075
1075
  type: String,
1076
1076
  default: null
@@ -1078,7 +1078,7 @@ const X = (t, e = !0, r = !0) => ({
1078
1078
  ...e ? {
1079
1079
  orientation: {
1080
1080
  type: String,
1081
- default: A.VERTICAL,
1081
+ default: T.VERTICAL,
1082
1082
  validator: at
1083
1083
  }
1084
1084
  } : {},
@@ -1086,7 +1086,7 @@ const X = (t, e = !0, r = !0) => ({
1086
1086
  type: [String, Array],
1087
1087
  default: () => []
1088
1088
  }
1089
- }), ie = () => ({
1089
+ }), se = () => ({
1090
1090
  data: {
1091
1091
  type: Array,
1092
1092
  required: !0
@@ -1101,7 +1101,7 @@ const X = (t, e = !0, r = !0) => ({
1101
1101
  },
1102
1102
  orientation: {
1103
1103
  type: String,
1104
- default: A.VERTICAL,
1104
+ default: T.VERTICAL,
1105
1105
  validator: at
1106
1106
  },
1107
1107
  xScale: {
@@ -1128,31 +1128,31 @@ const X = (t, e = !0, r = !0) => ({
1128
1128
  type: [String, Array],
1129
1129
  default: () => []
1130
1130
  }
1131
- }), Wn = /* @__PURE__ */ $({
1131
+ }), Wn = /* @__PURE__ */ I({
1132
1132
  __name: "lume-overlay-group",
1133
1133
  props: {
1134
- ...ie(),
1134
+ ...se(),
1135
1135
  orientation: {
1136
1136
  type: String,
1137
- default: A.VERTICAL
1137
+ default: T.VERTICAL
1138
1138
  }
1139
1139
  },
1140
1140
  emits: ["click", "lume__internal--hover", "mouseover"],
1141
1141
  setup(t, { emit: e }) {
1142
- const r = t, { data: n, orientation: a, xScale: o, yScale: u } = R(r), i = c(() => ve(n));
1143
- function l(s) {
1144
- const v = a.value === A.HORIZONTAL ? u.value : o.value, d = v.domain(), f = be(v), g = W(v) ? v(d[s]) : v(s) - f / 2;
1145
- return a.value === A.HORIZONTAL ? {
1142
+ const r = t, { data: n, orientation: a, xScale: o, yScale: u } = R(r), s = c(() => _e(n));
1143
+ function l(i) {
1144
+ const v = a.value === T.HORIZONTAL ? u.value : o.value, d = v.domain(), f = ke(v), h = W(v) ? v(d[i]) : v(i) - f / 2;
1145
+ return a.value === T.HORIZONTAL ? {
1146
1146
  width: Math.max(...o.value.range()),
1147
1147
  height: f,
1148
- transform: `translate(0, ${g})`
1148
+ transform: `translate(0, ${h})`
1149
1149
  } : {
1150
1150
  width: f,
1151
1151
  height: Math.max(...u.value.range()),
1152
- transform: `translate(${g}, 0)`
1152
+ transform: `translate(${h}, 0)`
1153
1153
  };
1154
1154
  }
1155
- return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: u, overlayData: i, getOverlayBarAttributes: l, LumeBar: Te };
1155
+ return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: u, overlayData: s, getOverlayBarAttributes: l, LumeBar: Te };
1156
1156
  }
1157
1157
  });
1158
1158
  var Zn = function() {
@@ -1164,7 +1164,7 @@ var Zn = function() {
1164
1164
  return n.emit("click", { index: o, event: u });
1165
1165
  } } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
1166
1166
  }), 1);
1167
- }, Xn = [], Yn = /* @__PURE__ */ w(
1167
+ }, Xn = [], Yn = /* @__PURE__ */ D(
1168
1168
  Wn,
1169
1169
  Zn,
1170
1170
  Xn,
@@ -1182,27 +1182,27 @@ function Kn(t) {
1182
1182
  }
1183
1183
  function Jn(t, e, r, n) {
1184
1184
  const a = c(
1185
- () => n.value === A.HORIZONTAL
1185
+ () => n.value === T.HORIZONTAL
1186
1186
  ), o = c(
1187
1187
  () => {
1188
- var s;
1189
- return t.height - (a != null && a.value ? 0 : ((s = r.value) == null ? void 0 : s.call(r, 0)) || 0);
1188
+ var i;
1189
+ return t.height - (a != null && a.value ? 0 : ((i = r.value) == null ? void 0 : i.call(r, 0)) || 0);
1190
1190
  }
1191
1191
  ), u = c(
1192
1192
  () => {
1193
- var s;
1194
- return a != null && a.value ? ((s = e.value) == null ? void 0 : s.call(e, 0)) || 0 : t.width;
1193
+ var i;
1194
+ return a != null && a.value ? ((i = e.value) == null ? void 0 : i.call(e, 0)) || 0 : t.width;
1195
1195
  }
1196
- ), i = c(
1196
+ ), s = c(
1197
1197
  () => {
1198
- var s;
1199
- return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = r.value) == null ? void 0 : s.call(r, 0)) || 0})`;
1198
+ var i;
1199
+ return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((i = r.value) == null ? void 0 : i.call(r, 0)) || 0})`;
1200
1200
  }
1201
1201
  );
1202
1202
  return { negativeBarAttributes: c(() => ({
1203
1203
  width: u.value,
1204
1204
  height: o.value,
1205
- transform: i.value
1205
+ transform: s.value
1206
1206
  })) };
1207
1207
  }
1208
1208
  function Qn(t) {
@@ -1211,33 +1211,33 @@ function Qn(t) {
1211
1211
  function qn(t) {
1212
1212
  return t.reduce((e, r) => r.values.map((n, a) => e[a] ? n.value + e[a] : n.value ?? 0), []);
1213
1213
  }
1214
- const Se = {
1214
+ const Pe = {
1215
1215
  "stacked-bar": qn
1216
1216
  };
1217
1217
  function ot(t, e, r, n, a, o, u) {
1218
- const i = c(
1218
+ const s = c(
1219
1219
  () => {
1220
- var s;
1221
- return e.value.withTooltip !== !1 && !((s = e.value.tooltipOptions) != null && s.targetElement);
1220
+ var i;
1221
+ return e.value.withTooltip !== !1 && !((i = e.value.tooltipOptions) != null && i.targetElement);
1222
1222
  }
1223
1223
  );
1224
- function l(s) {
1225
- const v = u != null && u.value && Se[u.value] ? Se[u.value](s) : Qn(s);
1224
+ function l(i) {
1225
+ const v = u != null && u.value && Pe[u.value] ? Pe[u.value](i) : Qn(i);
1226
1226
  t.value = v.map((d, f) => ({
1227
- cx: (a == null ? void 0 : a.value) === A.HORIZONTAL ? r.value(d) : fe(r.value, f),
1228
- cy: (a == null ? void 0 : a.value) === A.HORIZONTAL ? fe(n.value, f) : n.value(d)
1227
+ cx: (a == null ? void 0 : a.value) === T.HORIZONTAL ? r.value(d) : me(r.value, f),
1228
+ cy: (a == null ? void 0 : a.value) === T.HORIZONTAL ? me(n.value, f) : n.value(d)
1229
1229
  }));
1230
1230
  }
1231
- return C(
1231
+ return N(
1232
1232
  [r, n],
1233
1233
  () => {
1234
- r.value && n.value && (o != null && o.value) && i.value && l(o.value);
1234
+ r.value && n.value && (o != null && o.value) && s.value && l(o.value);
1235
1235
  },
1236
1236
  { immediate: !0 }
1237
- ), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes: l };
1237
+ ), { shouldGenerateTooltipAnchors: s, updateTooltipAnchorAttributes: l };
1238
1238
  }
1239
1239
  function er() {
1240
- const t = re({
1240
+ const t = ae({
1241
1241
  opened: !1,
1242
1242
  targetElement: null
1243
1243
  });
@@ -1250,16 +1250,16 @@ function er() {
1250
1250
  function tr(t) {
1251
1251
  return { getTooltipItems: c(
1252
1252
  () => (r) => t.value.map(({ color: n, label: a, values: o }) => {
1253
- var u, i, l;
1253
+ var u, s, l;
1254
1254
  return {
1255
1255
  color: ((u = o[r]) == null ? void 0 : u.color) || n,
1256
1256
  label: a,
1257
- value: ((i = o[r]) == null ? void 0 : i.label) ?? ((l = o[r]) == null ? void 0 : l.value) ?? qe
1257
+ value: ((s = o[r]) == null ? void 0 : s.label) ?? ((l = o[r]) == null ? void 0 : l.value) ?? qe
1258
1258
  };
1259
1259
  })
1260
1260
  ) };
1261
1261
  }
1262
- const nr = /* @__PURE__ */ $({
1262
+ const nr = /* @__PURE__ */ I({
1263
1263
  __name: "lume-chart",
1264
1264
  props: {
1265
1265
  ...X(),
@@ -1269,85 +1269,85 @@ const nr = /* @__PURE__ */ $({
1269
1269
  }
1270
1270
  },
1271
1271
  setup(t, { emit: e }) {
1272
- const r = t, n = j(), a = Kt, { data: o, labels: u, color: i, options: l, orientation: s, chartType: v } = R(r), d = L(-1), f = L(null), g = L(null), _ = L([]), { allOptions: p } = H(l), { internalData: O, computedLabels: h, containerSize: b, updateSize: y, chartID: m } = Le(o, u, i, p, s), { xScale: T, yScale: E } = zn(
1273
- O,
1274
- h,
1272
+ const r = t, n = V(), a = Kt, { data: o, labels: u, color: s, options: l, orientation: i, chartType: v } = R(r), d = x(-1), f = x(null), h = x(null), _ = x([]), { allOptions: p } = G(l), { internalData: b, computedLabels: m, containerSize: g, updateSize: O, chartID: L } = Le(o, u, s, p, i), { xScale: y, yScale: k } = zn(
1275
1273
  b,
1276
- s,
1274
+ m,
1275
+ g,
1276
+ i,
1277
1277
  p
1278
- ), I = c(() => {
1279
- var k;
1280
- return r.xScale ? Ge(r.xScale) ? r.xScale : (k = r.xScale) == null ? void 0 : k.call(r, O.value, u.value, b) : T.value;
1281
- }), N = c(() => {
1282
- var k;
1283
- return r.yScale ? Ge(r.yScale) ? r.yScale : (k = r.yScale) == null ? void 0 : k.call(r, O.value, u.value, b) : E.value;
1284
- }), V = c(() => ({
1278
+ ), $ = c(() => {
1279
+ var A;
1280
+ return r.xScale ? He(r.xScale) ? r.xScale : (A = r.xScale) == null ? void 0 : A.call(r, b.value, u.value, g) : y.value;
1281
+ }), E = c(() => {
1282
+ var A;
1283
+ return r.yScale ? He(r.yScale) ? r.yScale : (A = r.yScale) == null ? void 0 : A.call(r, b.value, u.value, g) : k.value;
1284
+ }), H = c(() => ({
1285
1285
  ...p.value.xAxisOptions,
1286
- withHover: s.value === A.VERTICAL
1286
+ withHover: i.value === T.VERTICAL
1287
1287
  })), Y = c(() => ({
1288
1288
  ...p.value.yAxisOptions,
1289
- withHover: s.value === A.HORIZONTAL
1290
- })), x = c(() => {
1291
- var k;
1292
- return (k = p.value.xAxisOptions) == null ? void 0 : k.title;
1293
- }), D = c(() => {
1294
- var k;
1295
- return (k = p.value.yAxisOptions) == null ? void 0 : k.title;
1289
+ withHover: i.value === T.HORIZONTAL
1290
+ })), w = c(() => {
1291
+ var A;
1292
+ return (A = p.value.xAxisOptions) == null ? void 0 : A.title;
1293
+ }), C = c(() => {
1294
+ var A;
1295
+ return (A = p.value.yAxisOptions) == null ? void 0 : A.title;
1296
1296
  }), S = c(() => {
1297
- var k;
1298
- return ((k = p.value.xAxisOptions) == null ? void 0 : k.withTitle) !== !1 && x.value;
1299
- }), se = c(() => {
1300
- var k;
1301
- return ((k = p.value.yAxisOptions) == null ? void 0 : k.withTitle) !== !1 && D.value;
1297
+ var A;
1298
+ return ((A = p.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && w.value;
1299
+ }), ce = c(() => {
1300
+ var A;
1301
+ return ((A = p.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && C.value;
1302
1302
  }), dt = c(() => {
1303
- const k = [], { noBaseScales: P } = p.value;
1304
- return P || k.push(() => !!(I.value && N.value)), k.every((F) => F() === !0);
1305
- }), { hasNegativeValues: vt } = Kn(O), { negativeBarAttributes: _t } = Jn(
1306
- b,
1307
- I,
1308
- N,
1309
- s
1303
+ const A = [], { noBaseScales: B } = p.value;
1304
+ return B || A.push(() => !!($.value && E.value)), A.every((F) => F() === !0);
1305
+ }), { hasNegativeValues: vt } = Kn(b), { negativeBarAttributes: _t } = Jn(
1306
+ g,
1307
+ $,
1308
+ E,
1309
+ i
1310
1310
  ), { shouldGenerateTooltipAnchors: pt } = ot(
1311
1311
  _,
1312
1312
  p,
1313
- I,
1314
- N,
1315
- s,
1316
- O,
1313
+ $,
1314
+ E,
1315
+ i,
1316
+ b,
1317
1317
  v
1318
- ), { tooltipConfig: $e, showTooltip: we, hideTooltip: Ie } = er(), { getTooltipItems: ft } = tr(O), mt = c(
1319
- () => p.value.withTooltip !== !1 && $e.opened
1318
+ ), { tooltipConfig: we, showTooltip: $e, hideTooltip: Ie } = er(), { getTooltipItems: ft } = tr(b), mt = c(
1319
+ () => p.value.withTooltip !== !1 && we.opened
1320
1320
  ), ht = c(
1321
1321
  () => {
1322
- var k;
1323
- return ((k = p.value.tooltipOptions) == null ? void 0 : k.position) || "top";
1322
+ var A;
1323
+ return ((A = p.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1324
1324
  }
1325
1325
  );
1326
- function De(k) {
1327
- var P;
1328
- if (k !== d.value && (p.value.withHover !== !1 && (d.value = k), p.value.withTooltip !== !1)) {
1329
- const F = (P = p.value.tooltipOptions) != null && P.targetElement ? p.value.tooltipOptions.targetElement === "self" ? g.value.$el : p.value.tooltipOptions.targetElement : f.value[k];
1330
- we(F);
1326
+ function De(A) {
1327
+ var B;
1328
+ if (A !== d.value && (p.value.withHover !== !1 && (d.value = A), p.value.withTooltip !== !1)) {
1329
+ const F = (B = p.value.tooltipOptions) != null && B.targetElement ? p.value.tooltipOptions.targetElement === "self" ? h.value.$el : p.value.tooltipOptions.targetElement : f.value[A];
1330
+ $e(F);
1331
1331
  }
1332
1332
  }
1333
1333
  function gt() {
1334
1334
  Ie(), d.value = -1, e("chart-mouseleave");
1335
1335
  }
1336
- function yt({ index: k, value: P, event: F }) {
1337
- k !== null && De(k), e("axis-mouseenter", { index: k, value: P, event: F });
1336
+ function yt({ index: A, value: B, event: F }) {
1337
+ A !== null && De(A), e("axis-mouseenter", { index: A, value: B, event: F });
1338
1338
  }
1339
- function bt({ index: k, value: P, event: F }) {
1340
- e("axis-click", { index: k, value: P, event: F });
1339
+ function bt({ index: A, value: B, event: F }) {
1340
+ e("axis-click", { index: A, value: B, event: F });
1341
1341
  }
1342
- return C(
1342
+ return N(
1343
1343
  o,
1344
- (k, P) => e("data-changed", { newValue: k, oldValue: P })
1345
- ), C(
1344
+ (A, B) => e("data-changed", { newValue: A, oldValue: B })
1345
+ ), N(
1346
1346
  u,
1347
- (k, P) => e("labels-changed", { newValue: k, oldValue: P })
1348
- ), B(() => {
1347
+ (A, B) => e("labels-changed", { newValue: A, oldValue: B })
1348
+ ), j(() => {
1349
1349
  e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.');
1350
- }), Re("chartID", m), Re("tooltipAnchorAttributes", _), { __sfc: !0, props: r, slots: n, emit: e, tooltipAnchorRadius: a, data: o, labels: u, color: i, options: l, orientation: s, chartType: v, hoveredIndex: d, tooltipAnchor: f, chartContainer: g, tooltipAnchorAttributes: _, allOptions: p, internalData: O, computedLabels: h, containerSize: b, updateSize: y, chartID: m, xScale: T, yScale: E, computedXScale: I, computedYScale: N, computedXAxisOptions: V, computedYAxisOptions: Y, xAxisTitle: x, yAxisTitle: D, showXAxisTitle: S, showYAxisTitle: se, isReady: dt, hasNegativeValues: vt, negativeBarAttributes: _t, shouldGenerateTooltipAnchors: pt, tooltipConfig: $e, showTooltip: we, hideTooltip: Ie, getTooltipItems: ft, isTooltipOpened: mt, tooltipPosition: ht, handleInternalHover: De, handleMouseleave: gt, handleAxisMouseenter: yt, handleAxisClick: bt, LumeAxis: cn, LumeBar: Te, LumeChartContainer: An, LumeChartLegend: $n, LumeTooltip: Cn, LumeOverlayGroup: Un };
1350
+ }), Ee("chartID", L), Ee("tooltipAnchorAttributes", _), { __sfc: !0, props: r, slots: n, emit: e, tooltipAnchorRadius: a, data: o, labels: u, color: s, options: l, orientation: i, chartType: v, hoveredIndex: d, tooltipAnchor: f, chartContainer: h, tooltipAnchorAttributes: _, allOptions: p, internalData: b, computedLabels: m, containerSize: g, updateSize: O, chartID: L, xScale: y, yScale: k, computedXScale: $, computedYScale: E, computedXAxisOptions: H, computedYAxisOptions: Y, xAxisTitle: w, yAxisTitle: C, showXAxisTitle: S, showYAxisTitle: ce, isReady: dt, hasNegativeValues: vt, negativeBarAttributes: _t, shouldGenerateTooltipAnchors: pt, tooltipConfig: we, showTooltip: $e, hideTooltip: Ie, getTooltipItems: ft, isTooltipOpened: mt, tooltipPosition: ht, handleInternalHover: De, handleMouseleave: gt, handleAxisMouseenter: yt, handleAxisClick: bt, LumeAxis: cn, LumeBar: Te, LumeChartContainer: An, LumeChartLegend: wn, LumeTooltip: Cn, LumeOverlayGroup: Un };
1351
1351
  }
1352
1352
  });
1353
1353
  var rr = function() {
@@ -1399,7 +1399,7 @@ var rr = function() {
1399
1399
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.hoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(a, o) {
1400
1400
  return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.tooltipAnchorRadius } }, "circle", a, !1));
1401
1401
  }), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.hoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1402
- }, ar = [], or = /* @__PURE__ */ w(
1402
+ }, ar = [], or = /* @__PURE__ */ D(
1403
1403
  nr,
1404
1404
  rr,
1405
1405
  ar,
@@ -1410,7 +1410,7 @@ var rr = function() {
1410
1410
  null
1411
1411
  );
1412
1412
  const K = or.exports;
1413
- function He(t, e) {
1413
+ function Se(t, e) {
1414
1414
  return {
1415
1415
  x0: 0 + (e ? e.left : 0),
1416
1416
  y0: 0 + (e ? e.top : 0),
@@ -1419,9 +1419,9 @@ function He(t, e) {
1419
1419
  };
1420
1420
  }
1421
1421
  function ur(t) {
1422
- const e = L(He(t));
1422
+ const e = x(Se(t));
1423
1423
  function r(n) {
1424
- e.value = He(t, n);
1424
+ e.value = Se(t, n);
1425
1425
  }
1426
1426
  return { extents: e, updateExtents: r };
1427
1427
  }
@@ -1430,24 +1430,24 @@ const lr = "[lume] ";
1430
1430
  function ir(t, e, r = !0) {
1431
1431
  r && Ye() || console.error(lr + "Error: " + t, e);
1432
1432
  }
1433
- const Be = 8, sr = 8, cr = 200;
1433
+ const Ge = 8, sr = 8, cr = 20, dr = 200;
1434
1434
  function U(t) {
1435
1435
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1436
1436
  }
1437
- function ne(t) {
1437
+ function re(t) {
1438
1438
  return t.source.id + ":" + t.target.id;
1439
1439
  }
1440
1440
  function lt(t) {
1441
1441
  return !!(t.sourceLinks && t.targetLinks);
1442
1442
  }
1443
- function dr(t, e) {
1443
+ function vr(t, e) {
1444
1444
  if (!e)
1445
1445
  return;
1446
1446
  const r = t.nodes.filter((u) => u.targetLinks.length === 0).map((u) => `${u.id}`), n = t.nodes.filter((u) => u.sourceLinks.length === 0).map((u) => `${u.id}`), a = e.filter((u) => r.includes(u.dataset.id)).reduce(
1447
- (u, i) => Math.max(u, i.getBBox().width),
1447
+ (u, s) => Math.max(u, s.getBBox().width),
1448
1448
  -1 / 0
1449
1449
  ), o = e.filter((u) => n.includes(u.dataset.id)).reduce(
1450
- (u, i) => Math.max(u, i.getBBox().width),
1450
+ (u, s) => Math.max(u, s.getBBox().width),
1451
1451
  -1 / 0
1452
1452
  );
1453
1453
  return {
@@ -1457,60 +1457,67 @@ function dr(t, e) {
1457
1457
  bottom: 0
1458
1458
  };
1459
1459
  }
1460
- function vr(t) {
1460
+ function _r(t) {
1461
1461
  return t.map((e) => ({
1462
1462
  x: e.x0,
1463
1463
  y: e.y0,
1464
1464
  width: e.x1 - e.x0,
1465
1465
  height: e.y1 - e.y0,
1466
1466
  textTransform: {
1467
- x: e.depth > 0 ? e.x1 + Be : e.x0 - Be,
1467
+ x: e.depth > 0 ? e.x1 + Ge : e.x0 - Ge,
1468
1468
  y: (e.y1 + e.y0) / 2
1469
1469
  },
1470
1470
  node: e
1471
1471
  }));
1472
1472
  }
1473
- function _r(t) {
1473
+ function pr(t) {
1474
1474
  const e = At();
1475
1475
  return t.map((r) => {
1476
1476
  var n;
1477
1477
  return {
1478
- id: ne(r),
1479
- color: r.color || ((n = r.source) == null ? void 0 : n.color) || le,
1478
+ id: re(r),
1479
+ color: r.color || ((n = r.source) == null ? void 0 : n.color) || ie,
1480
1480
  d: e(r),
1481
1481
  strokeWidth: Math.max(1, r.width),
1482
1482
  link: r
1483
1483
  };
1484
1484
  });
1485
1485
  }
1486
- function je(t, e, r) {
1487
- const n = Date.now(), a = jt(e, r), o = () => {
1488
- let i = (Date.now() - n) / cr;
1486
+ function je(t, e, r, n, a) {
1487
+ if (n === !1) {
1488
+ t.node = {
1489
+ ...t.node,
1490
+ transitionValue: a ? void 0 : r
1491
+ };
1492
+ return;
1493
+ }
1494
+ const o = Date.now(), u = jt(e, r), s = () => {
1495
+ let i = (Date.now() - o) / dr;
1489
1496
  i > 1 && (i = 1), t.node = {
1490
1497
  ...t.node,
1491
- transitionValue: a(i)
1492
- }, i < 1 && requestAnimationFrame(o);
1498
+ transitionValue: a && i === 1 ? void 0 : u(i)
1499
+ }, i < 1 && requestAnimationFrame(s);
1493
1500
  };
1494
- requestAnimationFrame(o);
1501
+ requestAnimationFrame(s);
1495
1502
  }
1496
- const pr = {
1503
+ const fr = {
1497
1504
  nodes: [],
1498
1505
  links: []
1499
1506
  };
1500
- function fr(t, e, r) {
1501
- const n = L(null), a = c(() => {
1502
- var i;
1503
- return (i = t.value) == null ? void 0 : i[0].values.map(({ label: l, color: s, value: v }) => ({
1507
+ function mr(t, e, r) {
1508
+ const n = x(null), a = c(() => {
1509
+ var s;
1510
+ return (s = t.value) == null ? void 0 : s[0].values.map(({ label: l, color: i, value: v }) => ({
1504
1511
  label: l || v.toString(),
1505
- color: s,
1512
+ color: i,
1506
1513
  id: v
1507
1514
  }));
1508
1515
  }), o = c(() => {
1509
- var i;
1510
- return (i = t.value) == null ? void 0 : i[0].values.map(
1516
+ var s;
1517
+ return (s = t.value) == null ? void 0 : s[0].values.map(
1511
1518
  (l) => {
1512
- var s;
1513
- return (s = l.targets) == null ? void 0 : s.map(({ node: v, value: d, color: f }) => ({
1519
+ var i;
1520
+ return (i = l.targets) == null ? void 0 : i.map(({ node: v, value: d, color: f }) => ({
1514
1521
  color: f,
1515
1522
  source: l.value ?? l.label,
1516
1523
  target: v,
@@ -1518,47 +1525,47 @@ function fr(t, e, r) {
1518
1525
  }));
1519
1526
  }
1520
1527
  ).filter(Boolean).flat();
1521
- }), u = c(() => Ot().nodeId(U).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth));
1522
- return C([u, r], () => {
1528
+ }), u = c(() => Ot().nodeId(U).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort));
1529
+ return N([u, r], () => {
1523
1530
  try {
1524
- const { x0: i, y0: l, x1: s, y1: v } = r.value;
1531
+ const { x0: s, y0: l, x1: i, y1: v } = r.value;
1525
1532
  n.value = u.value.extent([
1526
- [i, l],
1527
- [s, v]
1533
+ [s, l],
1534
+ [i, v]
1528
1535
  ])({ nodes: a.value, links: o.value });
1529
- } catch (i) {
1530
- ir(ut.GraphProblem, i), n.value = pr;
1536
+ } catch (s) {
1537
+ ir(ut.GraphProblem, s), n.value = fr;
1531
1538
  }
1532
1539
  }), { graph: n };
1533
1540
  }
1534
- function me(t, e) {
1541
+ function he(t, e) {
1535
1542
  return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
1536
- e[r.id] = n, me(r, e);
1543
+ e[r.id] = n, he(r, e);
1537
1544
  }), e;
1538
1545
  }
1539
- function he(t, e) {
1546
+ function ge(t, e) {
1540
1547
  return e || (e = {}), t.sourceLinks && t.sourceLinks.forEach(({ target: r, value: n }) => {
1541
- e[r.id] = n, he(r, e);
1548
+ e[r.id] = n, ge(r, e);
1542
1549
  }), e;
1543
1550
  }
1544
- function mr(t, e) {
1545
- return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(ne(n)), r), []);
1551
+ function hr(t, e) {
1552
+ return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(re(n)), r), []);
1546
1553
  }
1547
- const hr = (t, e) => {
1554
+ const gr = (t, e) => {
1548
1555
  let r;
1549
1556
  lt(t) ? r = {
1550
1557
  [t.id]: t.value,
1551
- ...me(t),
1552
- ...he(t)
1558
+ ...he(t),
1559
+ ...ge(t)
1553
1560
  } : r = {
1554
1561
  [t.source.id]: t.source.value,
1555
1562
  [t.target.id]: t.target.value,
1556
- ...me(t.source),
1557
- ...he(t.target)
1563
+ ...he(t.source),
1564
+ ...ge(t.target)
1558
1565
  };
1559
- const n = mr(r, e);
1566
+ const n = hr(r, e);
1560
1567
  return { nodes: r, links: n };
1561
- }, gr = (t) => {
1568
+ }, yr = (t) => {
1562
1569
  if (lt(t)) {
1563
1570
  const e = [...t.sourceLinks, ...t.targetLinks];
1564
1571
  return {
@@ -1566,7 +1573,7 @@ const hr = (t, e) => {
1566
1573
  (r, { source: n, target: a, value: o }) => n === t ? { ...r, [U(a)]: o } : { ...r, [U(n)]: o },
1567
1574
  { [U(t)]: t.value }
1568
1575
  ),
1569
- links: e.map((r) => ne(r))
1576
+ links: e.map((r) => re(r))
1570
1577
  };
1571
1578
  }
1572
1579
  return {
@@ -1574,74 +1581,110 @@ const hr = (t, e) => {
1574
1581
  [U(t.target)]: t.value,
1575
1582
  [U(t.source)]: t.source.value
1576
1583
  },
1577
- links: [ne(t)]
1584
+ links: [re(t)]
1578
1585
  };
1579
1586
  };
1580
- function yr(t, e, r) {
1581
- const n = L(null), a = c(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1587
+ function br(t, e, r) {
1588
+ const n = x(null), a = c(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1582
1589
  n.value,
1583
1590
  r.value
1584
- ) : e.value.highlightedElements === "closest" ? gr(n.value, r.value) : hr(n.value, r.value) : { nodes: {}, links: [] });
1585
- return C(a, (o, u) => {
1591
+ ) : e.value.highlightedElements === "closest" ? yr(n.value, r.value) : gr(n.value, r.value) : { nodes: {}, links: [] });
1592
+ return N(a, (o, u) => {
1586
1593
  if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
1587
- t.value.forEach((i) => {
1588
- i.node.id in u.nodes && je(
1589
- i,
1590
- u.nodes[i.node.id],
1591
- i.node.value
1594
+ t.value.forEach((s) => {
1595
+ s.node.id in u.nodes && je(
1596
+ s,
1597
+ u.nodes[s.node.id],
1598
+ s.node.value,
1599
+ e.value.withTransition,
1600
+ !0
1592
1601
  );
1593
1602
  });
1594
1603
  return;
1595
1604
  }
1596
- t.value.forEach((i) => {
1597
- i.node.id in o.nodes && je(
1598
- i,
1599
- i.node.value,
1600
- o.nodes[i.node.id]
1605
+ t.value.forEach((s) => {
1606
+ s.node.id in o.nodes && je(
1607
+ s,
1608
+ s.node.value,
1609
+ o.nodes[s.node.id],
1610
+ e.value.withTransition
1601
1611
  );
1602
1612
  });
1603
1613
  }), { highlightedElements: a, hoveredElement: n };
1604
1614
  }
1605
- const br = /* @__PURE__ */ $({
1615
+ const kr = /* @__PURE__ */ I({
1606
1616
  __name: "lume-alluvial-group",
1607
1617
  props: {
1608
- ...ie()
1618
+ ...se()
1609
1619
  },
1610
1620
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1611
1621
  setup(t, { emit: e }) {
1612
- const r = t, { data: n, options: a } = R(r), o = L([]), u = L([]), i = L(null), { extents: l, updateExtents: s } = ur(r.containerSize), { graph: v } = fr(n, a, l), { hoveredElement: d, highlightedElements: f } = yr(
1622
+ const r = t, { data: n, options: a } = R(r), o = x([]), u = x([]), s = x(null), { extents: l, updateExtents: i } = ur(r.containerSize), { graph: v } = mr(n, a, l), { hoveredElement: d, highlightedElements: f } = br(
1613
1623
  o,
1614
1624
  a,
1615
1625
  v
1616
- ), g = c(() => ke(a.value.valueFormat)), _ = c(
1626
+ ), h = c(() => te(a.value.valueFormat)), _ = c(
1617
1627
  () => Object.keys(f.value.nodes)
1628
+ ), p = c(
1629
+ () => o.value.reduce((k, $) => {
1630
+ const E = $.x + a.value.nodeWidth / 2;
1631
+ return k.includes(E) ? k : [...k, E];
1632
+ }, [])
1633
+ ), b = c(() => {
1634
+ if (!(!a.value.nodeHeaders || !a.value.nodeHeaders.length))
1635
+ return a.value.nodeHeaders.slice(0, p.value.length).map((k, $) => ({
1636
+ label: k,
1637
+ x: p.value[$]
1638
+ }));
1639
+ }), m = c(
1640
+ () => a.value.nodeHeaderPadding ?? cr
1618
1641
  );
1619
- function p(y) {
1620
- return _.value.length > 0 && !_.value.includes(y.toString());
1642
+ function g(k) {
1643
+ return _.value.length > 0 && !_.value.includes(k.toString());
1621
1644
  }
1622
- function O(y) {
1623
- return f.value.links.length > 0 && !f.value.links.includes(y);
1645
+ function O(k) {
1646
+ return f.value.links.length > 0 && !f.value.links.includes(k);
1624
1647
  }
1625
- function h(y, m) {
1626
- y !== d.value && (d.value = y, e("link-mouseenter", { link: y, event: m }));
1648
+ function L(k, $) {
1649
+ k !== d.value && (d.value = k, e("link-mouseenter", { link: k, event: $ }));
1627
1650
  }
1628
- function b(y) {
1629
- const m = d.value;
1630
- d.value = null, e("link-mouseleave", { link: m, event: y });
1651
+ function y(k) {
1652
+ const $ = d.value;
1653
+ d.value = null, e("link-mouseleave", { link: $, event: k });
1631
1654
  }
1632
- return C(v, (y) => {
1633
- o.value = vr(y.nodes), u.value = _r(y.links);
1634
- }), C([r.containerSize, i], () => {
1655
+ return N(v, (k) => {
1656
+ o.value = _r(k.nodes), u.value = pr(k.links).reverse();
1657
+ }), N([r.containerSize, s], () => {
1635
1658
  if (r.containerSize.width && r.containerSize.height) {
1636
- const y = dr(v.value, i.value);
1637
- s(y);
1659
+ const k = vr(v.value, s.value);
1660
+ i(k);
1638
1661
  }
1639
- }), { __sfc: !0, props: r, emit: e, data: n, options: a, nodeBlocks: o, linkPaths: u, nodeTextRefs: i, extents: l, updateExtents: s, graph: v, hoveredElement: d, highlightedElements: f, formatValue: g, hoveredNodeIds: _, isNodeFaded: p, isLinkFaded: O, handleLinkMouseover: h, handleLinkMouseleave: b, GHOST_STROKE_WIDTH_OFFSET: sr, DEFAULT_COLOR: le };
1662
+ }), { __sfc: !0, props: r, emit: e, data: n, options: a, nodeBlocks: o, linkPaths: u, nodeTextRefs: s, extents: l, updateExtents: i, graph: v, hoveredElement: d, highlightedElements: f, formatValue: h, hoveredNodeIds: _, nodeColumnPositions: p, nodeHeaders: b, computedNodeHeaderPadding: m, isNodeFaded: g, isLinkFaded: O, handleLinkMouseover: L, handleLinkMouseleave: y, GHOST_STROKE_WIDTH_OFFSET: sr, DEFAULT_COLOR: ie };
1640
1663
  }
1641
1664
  });
1642
- var kr = function() {
1665
+ var Ar = function() {
1643
1666
  var e = this, r = e._self._c, n = e._self._setupProxy;
1644
- return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [e._l(n.nodeBlocks, function(a, o) {
1667
+ return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", e._l(n.nodeHeaders, function(a) {
1668
+ return r("text", { key: `header_${a.x}`, staticClass: "lume-alluvial-group__node-header lume-typography--caption", attrs: { x: a.x, y: -n.computedNodeHeaderPadding } }, [e._v(" " + e._s(a.label) + " ")]);
1669
+ }), 0) : e._e(), r("g", { staticClass: "lume-alluvial-link-group", on: { mouseleave: n.handleLinkMouseleave } }, [e._l(n.linkPaths, function(a) {
1670
+ return r("path", { key: `link-ghost_${a.id}`, staticClass: "lume-alluvial-group__link", class: [
1671
+ "lume-stroke--transparent",
1672
+ "lume-alluvial-group__link--ghost"
1673
+ ], attrs: { d: a.d, "stroke-width": a.strokeWidth + n.GHOST_STROKE_WIDTH_OFFSET, "data-j-alluvial-ghost": "" }, on: { click: function(o) {
1674
+ return n.emit("link-click", { link: a.link, event: o });
1675
+ }, mouseover: function(o) {
1676
+ return n.handleLinkMouseover(a.link, o);
1677
+ } } });
1678
+ }), e._l(n.linkPaths, function(a) {
1679
+ return r("path", { key: `link_${a.id}`, staticClass: "lume-alluvial-group__link", class: {
1680
+ [`lume-stroke--${a.color}`]: a.color,
1681
+ "lume-alluvial-group__link--faded": n.isLinkFaded(a.id)
1682
+ }, attrs: { d: a.d, "stroke-dasharray": e.containerSize.width, "stroke-dashoffset": e.containerSize.width, "stroke-width": a.strokeWidth, "data-j-alluvial-path": "", "data-id": a.id }, on: { click: function(o) {
1683
+ return n.emit("link-click", { link: a.link, event: o });
1684
+ }, mouseover: function(o) {
1685
+ return n.handleLinkMouseover(a.link, o);
1686
+ } } });
1687
+ })], 2), e._l(n.nodeBlocks, function(a, o) {
1645
1688
  return r("g", { key: `node-block_${o}`, staticClass: "lume-alluvial-group__node", class: {
1646
1689
  "lume-alluvial-group__node--faded": n.isNodeFaded(a.node.id)
1647
1690
  }, attrs: { "data-j-alluvial-group__node-block": "" } }, [r("g", { on: { click: function(u) {
@@ -1658,39 +1701,22 @@ var kr = function() {
1658
1701
  "lume-alluvial-group__node-text--right": a.node.depth === 0
1659
1702
  }, attrs: { transform: `translate(${a.textTransform.x},${a.textTransform.y})`, "data-id": a.node.id } }, [r("tspan", { staticClass: "lume-alluvial-group__node-title", domProps: { textContent: e._s(a.node.label) } }), r("tspan", { staticClass: "lume-alluvial-group__node-value", attrs: { x: "0", dy: "1.2em" }, domProps: { textContent: e._s(
1660
1703
  n.formatValue(
1661
- a.node.transitionValue || a.node.value
1704
+ a.node.transitionValue || a.node.value,
1705
+ a.node.value
1662
1706
  )
1663
1707
  ) } })])])]);
1664
- }), r("g", { staticClass: "lume-alluvial-link-group", on: { mouseleave: n.handleLinkMouseleave } }, [e._l(n.linkPaths, function(a) {
1665
- return r("path", { key: `link-ghost_${a.id}`, staticClass: "lume-alluvial-group__link", class: [
1666
- "lume-stroke--transparent",
1667
- "lume-alluvial-group__link--ghost"
1668
- ], attrs: { d: a.d, "stroke-width": a.strokeWidth + n.GHOST_STROKE_WIDTH_OFFSET, "data-j-alluvial-ghost": "" }, on: { click: function(o) {
1669
- return n.emit("link-click", { link: a.link, event: o });
1670
- }, mouseover: function(o) {
1671
- return n.handleLinkMouseover(a.link, o);
1672
- } } });
1673
- }), e._l(n.linkPaths, function(a) {
1674
- return r("path", { key: `link_${a.id}`, staticClass: "lume-alluvial-group__link", class: {
1675
- [`lume-stroke--${a.color}`]: a.color,
1676
- "lume-alluvial-group__link--faded": n.isLinkFaded(a.id)
1677
- }, attrs: { d: a.d, "stroke-dasharray": e.containerSize.width, "stroke-dashoffset": e.containerSize.width, "stroke-width": a.strokeWidth, "data-j-alluvial-path": "" }, on: { click: function(o) {
1678
- return n.emit("link-click", { link: a.link, event: o });
1679
- }, mouseover: function(o) {
1680
- return n.handleLinkMouseover(a.link, o);
1681
- } } });
1682
- })], 2)], 2);
1683
- }, Ar = [], Or = /* @__PURE__ */ w(
1684
- br,
1708
+ })], 2);
1709
+ }, Or = [], Tr = /* @__PURE__ */ D(
1685
1710
  kr,
1686
1711
  Ar,
1712
+ Or,
1687
1713
  !1,
1688
1714
  null,
1689
- "88bf1bc5",
1715
+ "806a6de2",
1690
1716
  null,
1691
1717
  null
1692
1718
  );
1693
- const Tr = Or.exports, Lr = {
1719
+ const Lr = Tr.exports, xr = {
1694
1720
  margins: {
1695
1721
  top: 0,
1696
1722
  right: 0,
@@ -1707,17 +1733,17 @@ const Tr = Or.exports, Lr = {
1707
1733
  nodeWidth: 16,
1708
1734
  nodeAlign: Tt,
1709
1735
  valueFormat: (t) => String(t)
1710
- }, xr = /* @__PURE__ */ $({
1736
+ }, wr = /* @__PURE__ */ I({
1711
1737
  __name: "lume-alluvial-diagram",
1712
1738
  props: {
1713
1739
  ...X(
1714
- ye,
1740
+ be,
1715
1741
  !1,
1716
1742
  !1
1717
1743
  )
1718
1744
  },
1719
1745
  setup(t) {
1720
- const e = t, r = Z(j()), { options: n } = R(e), { allOptions: a } = H(n, Lr);
1746
+ const e = t, r = Z(V()), { options: n } = R(e), { allOptions: a } = G(n, xr);
1721
1747
  function o(u) {
1722
1748
  return {
1723
1749
  ...u,
@@ -1725,7 +1751,7 @@ const Tr = Or.exports, Lr = {
1725
1751
  // Alluvial chart never uses base scales
1726
1752
  };
1727
1753
  }
1728
- return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, getAlluvialDiagramOptions: o, LumeChart: K, LumeAlluvialGroup: Tr };
1754
+ return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, getAlluvialDiagramOptions: o, LumeChart: K, LumeAlluvialGroup: Lr };
1729
1755
  }
1730
1756
  });
1731
1757
  var $r = function() {
@@ -1737,98 +1763,98 @@ var $r = function() {
1737
1763
  return [e._t(o, null, null, u || {})];
1738
1764
  } };
1739
1765
  })], null, !0) }, "lume-chart", n.props, !1));
1740
- }, wr = [], Ir = /* @__PURE__ */ w(
1741
- xr,
1742
- $r,
1766
+ }, Ir = [], Dr = /* @__PURE__ */ D(
1743
1767
  wr,
1768
+ $r,
1769
+ Ir,
1744
1770
  !1,
1745
1771
  null,
1746
1772
  null,
1747
1773
  null,
1748
1774
  null
1749
1775
  );
1750
- const ja = Ir.exports;
1751
- var ge = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(ge || {});
1752
- const Dr = /* @__PURE__ */ $({
1776
+ const Va = Dr.exports;
1777
+ var ye = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(ye || {});
1778
+ const Er = /* @__PURE__ */ I({
1753
1779
  __name: "lume-bar-chart",
1754
1780
  props: {
1755
1781
  ...X(),
1756
1782
  type: {
1757
1783
  type: String,
1758
1784
  default: null,
1759
- validator: (t) => t in ge || t == null
1785
+ validator: (t) => t in ye || t == null
1760
1786
  }
1761
1787
  },
1762
1788
  setup(t) {
1763
- const e = t, r = ce(
1764
- () => import("./3c746d4c.js")
1765
- ), n = ce(
1766
- () => import("./05b956a3.js")
1767
- ), a = ce(
1768
- () => import("./eb9d7694.js")
1789
+ const e = t, r = de(
1790
+ () => import("./68efd163.js")
1791
+ ), n = de(
1792
+ () => import("./38fe22cc.js")
1793
+ ), a = de(
1794
+ () => import("./5791edde.js")
1769
1795
  ), o = /* @__PURE__ */ new Map([
1770
1796
  ["single", r],
1771
1797
  ["grouped", n],
1772
1798
  ["stacked", a]
1773
- ]), u = Z(j());
1774
- function i(s) {
1799
+ ]), u = Z(V());
1800
+ function s(i) {
1775
1801
  return {
1776
- ...s,
1802
+ ...i,
1777
1803
  startOnZero: !0,
1778
1804
  // Bar chart always starts on zero,
1779
1805
  tooltipOptions: {
1780
- ...(s == null ? void 0 : s.tooltipOptions) || {},
1781
- position: e.orientation === A.HORIZONTAL && "right"
1806
+ ...(i == null ? void 0 : i.tooltipOptions) || {},
1807
+ position: e.orientation === T.HORIZONTAL && "right"
1782
1808
  }
1783
1809
  };
1784
1810
  }
1785
1811
  const l = c(() => {
1786
1812
  if (e.data) {
1787
- if (ye(e.data))
1813
+ if (be(e.data))
1788
1814
  return o.get("single");
1789
1815
  if (!e.type)
1790
1816
  throw new Error("Bar chart needs a type when there's multiple datasets.");
1791
1817
  return o.get(e.type);
1792
1818
  }
1793
1819
  });
1794
- return { __sfc: !0, TYPES: ge, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: e, slots: u, getBarChartOptions: i, component: l };
1820
+ return { __sfc: !0, TYPES: ye, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: e, slots: u, getBarChartOptions: s, component: l };
1795
1821
  }
1796
1822
  });
1797
- var Rr = function() {
1823
+ var Cr = function() {
1798
1824
  var e = this, r = e._self._c, n = e._self._setupProxy;
1799
1825
  return r(n.component, e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(a, o) {
1800
1826
  return { key: o, fn: function(u) {
1801
1827
  return [e._t(o, null, null, u || {})];
1802
1828
  } };
1803
1829
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1));
1804
- }, Cr = [], Er = /* @__PURE__ */ w(
1805
- Dr,
1806
- Rr,
1830
+ }, Rr = [], Nr = /* @__PURE__ */ D(
1831
+ Er,
1807
1832
  Cr,
1833
+ Rr,
1808
1834
  !1,
1809
1835
  null,
1810
1836
  null,
1811
1837
  null,
1812
1838
  null
1813
1839
  );
1814
- const Va = Er.exports;
1815
- function Nr(t) {
1840
+ const Fa = Nr.exports;
1841
+ function Br(t) {
1816
1842
  return Object.values(Zt).includes(t) || t == null;
1817
1843
  }
1818
- function Pr(t) {
1819
- return Object.values(A).includes(t);
1844
+ function Hr(t) {
1845
+ return Object.values(T).includes(t);
1820
1846
  }
1821
- const Gr = (t = !1) => ({
1847
+ const Pr = (t = !1) => ({
1822
1848
  type: {
1823
1849
  type: String,
1824
1850
  default: null,
1825
- validator: Nr
1851
+ validator: Br
1826
1852
  },
1827
1853
  ...t ? {
1828
1854
  orientation: {
1829
1855
  type: String,
1830
- default: A.VERTICAL,
1831
- validator: Pr
1856
+ default: T.VERTICAL,
1857
+ validator: Hr
1832
1858
  }
1833
1859
  } : {}
1834
1860
  });
@@ -1841,8 +1867,8 @@ function it(t) {
1841
1867
  }))
1842
1868
  }))), r = c(() => {
1843
1869
  var n;
1844
- return (n = e.value) == null ? void 0 : n.reduce((a, o) => (o.values.forEach((u, i) => {
1845
- a[i] ? a[i].push(u) : a[i] = [u];
1870
+ return (n = e.value) == null ? void 0 : n.reduce((a, o) => (o.values.forEach((u, s) => {
1871
+ a[s] ? a[s].push(u) : a[s] = [u];
1846
1872
  }), a), []);
1847
1873
  });
1848
1874
  return { multiBarData: e, groupedData: r };
@@ -1850,187 +1876,187 @@ function it(t) {
1850
1876
  function Sr(t, e) {
1851
1877
  return t.value.length === 1 ? "single" : e.value;
1852
1878
  }
1853
- function Hr(t, e, r, n) {
1879
+ function Gr(t, e, r, n) {
1854
1880
  const a = c(
1855
- () => n.value === A.HORIZONTAL
1881
+ () => n.value === T.HORIZONTAL
1856
1882
  );
1857
1883
  function o(l) {
1858
1884
  Math.min(...l.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
1859
1885
  }
1860
1886
  const u = c(() => {
1861
- const { padding: l, paddingInner: s, paddingOuter: v } = r.value;
1862
- return a.value ? (() => (o(t.value), t.value))() : te(
1887
+ const { padding: l, paddingInner: i, paddingOuter: v } = r.value;
1888
+ return a.value ? (() => (o(t.value), t.value))() : ne(
1863
1889
  t.value,
1864
1890
  n.value,
1865
- { padding: l, paddingInner: s, paddingOuter: v }
1891
+ { padding: l, paddingInner: i, paddingOuter: v }
1866
1892
  );
1867
- }), i = c(() => {
1868
- const { padding: l, paddingInner: s, paddingOuter: v } = r.value;
1869
- return a.value ? te(
1893
+ }), s = c(() => {
1894
+ const { padding: l, paddingInner: i, paddingOuter: v } = r.value;
1895
+ return a.value ? ne(
1870
1896
  e.value,
1871
1897
  n.value,
1872
- { padding: l, paddingInner: s, paddingOuter: v }
1898
+ { padding: l, paddingInner: i, paddingOuter: v }
1873
1899
  ) : (() => (o(e.value), e.value))();
1874
1900
  });
1875
- return { barXScale: u, barYScale: i };
1901
+ return { barXScale: u, barYScale: s };
1876
1902
  }
1877
- function Br(t, e, r, n, a, o) {
1903
+ function jr(t, e, r, n, a, o) {
1878
1904
  const u = c(
1879
- () => n.value === A.HORIZONTAL
1905
+ () => n.value === T.HORIZONTAL
1880
1906
  );
1881
- function i(d, f) {
1882
- let g, _;
1883
- return u.value ? (g = d >= 0 ? e.value(0) : e.value(d), _ = r.value(r.value.domain()[f])) : (g = e.value(e.value.domain()[f]), _ = d < 0 ? r.value(0) : r.value(d)), { x: g, y: _ };
1907
+ function s(d, f) {
1908
+ let h, _;
1909
+ return u.value ? (h = d >= 0 ? e.value(0) : e.value(d), _ = r.value(r.value.domain()[f])) : (h = e.value(e.value.domain()[f]), _ = d < 0 ? r.value(0) : r.value(d)), { x: h, y: _ };
1884
1910
  }
1885
1911
  function l(d) {
1886
1912
  return u.value ? d < 0 ? e.value(0) - e.value(d) : e.value(d) - e.value(0) : e.value.bandwidth();
1887
1913
  }
1888
- function s(d) {
1914
+ function i(d) {
1889
1915
  return u.value ? r.value.bandwidth() : d < 0 ? r.value(d) - r.value(0) : r.value(0) - r.value(d);
1890
1916
  }
1891
- function v(d, f, g) {
1892
- const { value: _, color: p } = d, O = p ?? t.value[f].color ?? le, { x: h, y: b } = i(_, g), y = l(_), m = s(_);
1917
+ function v(d, f, h) {
1918
+ const { value: _, color: p } = d, b = p ?? t.value[f].color ?? ie, { x: m, y: g } = s(_, h), O = l(_), L = i(_);
1893
1919
  return {
1894
- classList: [`lume-fill--${O}`, ...o],
1895
- x: h,
1896
- y: b,
1897
- width: y,
1898
- height: m,
1899
- isFaded: a.value !== -1 && a.value !== g,
1920
+ classList: [`lume-fill--${b}`, ...o],
1921
+ x: m,
1922
+ y: g,
1923
+ width: O,
1924
+ height: L,
1925
+ isFaded: a.value !== -1 && a.value !== h,
1900
1926
  isNegative: _ < 0
1901
1927
  };
1902
1928
  }
1903
1929
  return { barAttributeGenerator: v };
1904
1930
  }
1905
- function jr(t, e, r, n, a, o) {
1931
+ function Vr(t, e, r, n, a, o) {
1906
1932
  const u = c(
1907
- () => n.value === A.HORIZONTAL
1908
- ), i = c(() => J().domain(t.value.map((_, p) => p)).range([0, e.value.bandwidth()]).padding(0)), l = c(() => J().domain(t.value.map((_, p) => p)).range([0, r.value.bandwidth()]).padding(0));
1909
- function s(_, p, O) {
1933
+ () => n.value === T.HORIZONTAL
1934
+ ), s = c(() => J().domain(t.value.map((_, p) => p)).range([0, e.value.bandwidth()]).padding(0)), l = c(() => J().domain(t.value.map((_, p) => p)).range([0, r.value.bandwidth()]).padding(0));
1935
+ function i(_, p, b) {
1910
1936
  if (u.value)
1911
1937
  return _ >= 0 ? e.value(0) : e.value(_);
1912
- const h = e.value.domain();
1913
- return e.value(h[p]) + i.value(O);
1938
+ const m = e.value.domain();
1939
+ return e.value(m[p]) + s.value(b);
1914
1940
  }
1915
- function v(_, p, O) {
1941
+ function v(_, p, b) {
1916
1942
  if (u.value) {
1917
- const h = r.value.domain();
1918
- return r.value(h[p]) + l.value(O);
1943
+ const m = r.value.domain();
1944
+ return r.value(m[p]) + l.value(b);
1919
1945
  }
1920
1946
  return _ < 0 ? r.value(0) : r.value(_);
1921
1947
  }
1922
1948
  function d(_) {
1923
- return u.value ? _ < 0 ? e.value(0) - e.value(_) : e.value(_) - e.value(0) : i.value.bandwidth();
1949
+ return u.value ? _ < 0 ? e.value(0) - e.value(_) : e.value(_) - e.value(0) : s.value.bandwidth();
1924
1950
  }
1925
1951
  function f(_) {
1926
1952
  return u.value ? l.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
1927
1953
  }
1928
- function g(_, p, O) {
1929
- const { value: h, color: b } = _, y = b ?? t.value[p].color ?? Object.values(G)[p], m = s(h, O, p), T = v(h, O, p), E = d(h), I = f(h);
1954
+ function h(_, p, b) {
1955
+ const { value: m, color: g } = _, O = g ?? t.value[p].color ?? Object.values(P)[p], L = i(m, b, p), y = v(m, b, p), k = d(m), $ = f(m);
1930
1956
  return {
1931
- classList: [`lume-fill--${y}`, ...o],
1932
- x: m,
1933
- y: T,
1934
- width: E,
1935
- height: I,
1936
- isFaded: a.value !== -1 && a.value !== O,
1937
- isNegative: h < 0
1957
+ classList: [`lume-fill--${O}`, ...o],
1958
+ x: L,
1959
+ y,
1960
+ width: k,
1961
+ height: $,
1962
+ isFaded: a.value !== -1 && a.value !== b,
1963
+ isNegative: m < 0
1938
1964
  };
1939
1965
  }
1940
- return { barAttributeGenerator: g };
1966
+ return { barAttributeGenerator: h };
1941
1967
  }
1942
- function Vr(t, e) {
1968
+ function Fr(t, e) {
1943
1969
  const r = c(
1944
- () => e.value === A.HORIZONTAL
1970
+ () => e.value === T.HORIZONTAL
1945
1971
  ), n = c(() => {
1946
- const i = t.value.map(
1947
- (l) => l.filter((s) => s.value < 0).reduce((s, v) => s + v.value, 0)
1972
+ const s = t.value.map(
1973
+ (l) => l.filter((i) => i.value < 0).reduce((i, v) => i + v.value, 0)
1948
1974
  );
1949
- return Math.min(...i);
1975
+ return Math.min(...s);
1950
1976
  }), a = c(() => {
1951
- const i = t.value.map(
1977
+ const s = t.value.map(
1952
1978
  (l) => l.reduce(
1953
- (s, v) => v.value >= 0 ? s + v.value : s,
1979
+ (i, v) => v.value >= 0 ? i + v.value : i,
1954
1980
  0
1955
1981
  )
1956
1982
  );
1957
- return Math.max(...i);
1983
+ return Math.max(...s);
1958
1984
  });
1959
- function o(i, l, s) {
1960
- return r.value ? Q().domain([n.value, a.value]).range([0, s.width]) : Object.assign(
1961
- te(
1962
- J().domain(l.map((v, d) => d)).range([0, s.width])
1985
+ function o(s, l, i) {
1986
+ return r.value ? Q().domain([n.value, a.value]).range([0, i.width]) : Object.assign(
1987
+ ne(
1988
+ J().domain(l.map((v, d) => d)).range([0, i.width])
1963
1989
  ),
1964
1990
  { labels: l }
1965
1991
  );
1966
1992
  }
1967
- function u(i, l, s) {
1993
+ function u(s, l, i) {
1968
1994
  return r.value ? Object.assign(
1969
- te(
1970
- J().domain(l.map((v, d) => d)).range([0, s.height])
1995
+ ne(
1996
+ J().domain(l.map((v, d) => d)).range([0, i.height])
1971
1997
  ),
1972
1998
  { labels: l }
1973
- ) : Q().domain([a.value, n.value]).range([0, s.height]);
1999
+ ) : Q().domain([a.value, n.value]).range([0, i.height]);
1974
2000
  }
1975
2001
  return { stackedXScaleGenerator: o, stackedYScaleGenerator: u };
1976
2002
  }
1977
- function Fr(t, e, r, n, a, o) {
2003
+ function Mr(t, e, r, n, a, o) {
1978
2004
  const u = c(
1979
- () => n.value === A.HORIZONTAL
1980
- ), i = c(
2005
+ () => n.value === T.HORIZONTAL
2006
+ ), s = c(
1981
2007
  () => u.value ? r.value.domain() : e.value.domain()
1982
2008
  ), l = c(
1983
- () => t.value.map((h) => h.values.map((b) => b == null ? void 0 : b.value))
2009
+ () => t.value.map((m) => m.values.map((g) => g == null ? void 0 : g.value))
1984
2010
  );
1985
- function s(h, b, y) {
1986
- let m, T;
1987
- return u.value ? (m = e.value(h >= 0 ? 0 + y : h + y), T = r.value(i.value[b])) : (m = e.value(i.value[b]), T = r.value(h >= 0 ? h + y : 0 + y)), { x: m, y: T };
2011
+ function i(m, g, O) {
2012
+ let L, y;
2013
+ return u.value ? (L = e.value(m >= 0 ? 0 + O : m + O), y = r.value(s.value[g])) : (L = e.value(s.value[g]), y = r.value(m >= 0 ? m + O : 0 + O)), { x: L, y };
1988
2014
  }
1989
- function v(h) {
1990
- return u.value ? e.value(h) - e.value(0) : e.value.bandwidth();
2015
+ function v(m) {
2016
+ return u.value ? e.value(m) - e.value(0) : e.value.bandwidth();
1991
2017
  }
1992
- function d(h) {
1993
- return u.value ? e.value(0) - e.value(h) : e.value.bandwidth();
2018
+ function d(m) {
2019
+ return u.value ? e.value(0) - e.value(m) : e.value.bandwidth();
1994
2020
  }
1995
- function f(h) {
1996
- return u.value ? r.value.bandwidth() : r.value(0) - r.value(h);
2021
+ function f(m) {
2022
+ return u.value ? r.value.bandwidth() : r.value(0) - r.value(m);
1997
2023
  }
1998
- function g(h) {
1999
- return u.value ? r.value.bandwidth() : r.value(h) - r.value(0);
2024
+ function h(m) {
2025
+ return u.value ? r.value.bandwidth() : r.value(m) - r.value(0);
2000
2026
  }
2001
- function _(h, b) {
2002
- return h ? l.value.reduce((y, m, T) => (T < h && m[b] >= 0 && (y += m[b]), y), 0) : 0;
2027
+ function _(m, g) {
2028
+ return m ? l.value.reduce((O, L, y) => (y < m && L[g] >= 0 && (O += L[g]), O), 0) : 0;
2003
2029
  }
2004
- function p(h, b) {
2005
- return h ? l.value.reduce((y, m, T) => (T < h && m[b] < 0 && (y += m[b]), y), 0) : 0;
2030
+ function p(m, g) {
2031
+ return m ? l.value.reduce((O, L, y) => (y < m && L[g] < 0 && (O += L[g]), O), 0) : 0;
2006
2032
  }
2007
- function O(h, b, y) {
2008
- const { value: m, color: T } = h, E = m >= 0 ? v(m) : d(m), I = m >= 0 ? f(m) : g(m), N = m >= 0 ? _(b, y) : p(b, y), { x: V, y: Y } = s(m, y, N);
2033
+ function b(m, g, O) {
2034
+ const { value: L, color: y } = m, k = L >= 0 ? v(L) : d(L), $ = L >= 0 ? f(L) : h(L), E = L >= 0 ? _(g, O) : p(g, O), { x: H, y: Y } = i(L, O, E);
2009
2035
  return {
2010
- classList: [`lume-fill--${T ?? t.value[b].color ?? Object.values(G)[b]}`, ...o],
2011
- width: E,
2012
- height: I,
2013
- x: V,
2036
+ classList: [`lume-fill--${y ?? t.value[g].color ?? Object.values(P)[g]}`, ...o],
2037
+ width: k,
2038
+ height: $,
2039
+ x: H,
2014
2040
  y: Y,
2015
- isFaded: a.value !== -1 && a.value !== y,
2016
- isNegative: m < 0
2041
+ isFaded: a.value !== -1 && a.value !== O,
2042
+ isNegative: L < 0
2017
2043
  };
2018
2044
  }
2019
- return { barAttributeGenerator: O };
2045
+ return { barAttributeGenerator: b };
2020
2046
  }
2021
2047
  const Ve = {
2022
- single: Br,
2023
- grouped: jr,
2024
- stacked: Fr
2025
- }, Mr = /* @__PURE__ */ $({
2048
+ single: jr,
2049
+ grouped: Vr,
2050
+ stacked: Mr
2051
+ }, zr = /* @__PURE__ */ I({
2026
2052
  __name: "lume-bar-group",
2027
2053
  props: {
2028
- ...ie(),
2054
+ ...se(),
2029
2055
  classList: {
2030
2056
  type: [String, Array],
2031
2057
  default: () => []
2032
2058
  },
2033
- ...Gr(!0),
2059
+ ...Pr(!0),
2034
2060
  transition: {
2035
2061
  type: Boolean,
2036
2062
  default: !0
@@ -2043,85 +2069,85 @@ const Ve = {
2043
2069
  hoveredIndex: a,
2044
2070
  options: o,
2045
2071
  orientation: u,
2046
- transition: i,
2072
+ transition: s,
2047
2073
  type: l,
2048
- xScale: s,
2074
+ xScale: i,
2049
2075
  yScale: v,
2050
2076
  classList: d
2051
- } = R(r), { groupedData: f } = it(n), { barXScale: g, barYScale: _ } = Hr(
2052
- s,
2077
+ } = R(r), { groupedData: f } = it(n), { barXScale: h, barYScale: _ } = Gr(
2078
+ i,
2053
2079
  v,
2054
2080
  o,
2055
2081
  u
2056
- ), p = c(() => typeof d.value == "string" ? [d.value] : d.value), O = c(() => {
2057
- const b = Sr(n, l), { barAttributeGenerator: y } = Ve[b](
2082
+ ), p = c(() => typeof d.value == "string" ? [d.value] : d.value), b = c(() => {
2083
+ const g = Sr(n, l), { barAttributeGenerator: O } = Ve[g](
2058
2084
  n,
2059
- g,
2085
+ h,
2060
2086
  _,
2061
2087
  u,
2062
2088
  a,
2063
2089
  p.value
2064
2090
  );
2065
- return y;
2066
- }), h = c(() => {
2067
- if (i.value)
2068
- return u.value === A.HORIZONTAL ? "width" : "height";
2091
+ return O;
2092
+ }), m = c(() => {
2093
+ if (s.value)
2094
+ return u.value === T.HORIZONTAL ? "width" : "height";
2069
2095
  });
2070
- return { __sfc: !0, MIXIN_MAP: Ve, props: r, emit: e, data: n, hoveredIndex: a, options: o, orientation: u, transition: i, type: l, xScale: s, yScale: v, classList: d, groupedData: f, barXScale: g, barYScale: _, computedClasses: p, getBarAttributes: O, computedTransition: h, LumeBar: Te };
2096
+ return { __sfc: !0, MIXIN_MAP: Ve, props: r, emit: e, data: n, hoveredIndex: a, options: o, orientation: u, transition: s, type: l, xScale: i, yScale: v, classList: d, groupedData: f, barXScale: h, barYScale: _, computedClasses: p, getBarAttributes: b, computedTransition: m, LumeBar: Te };
2071
2097
  }
2072
2098
  });
2073
- var zr = function() {
2099
+ var Wr = function() {
2074
2100
  var e = this, r = e._self._c, n = e._self._setupProxy;
2075
2101
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
2076
2102
  return r("g", { key: o, on: { mouseenter: function(u) {
2077
2103
  return n.emit("lume__internal--hover", o);
2078
- } } }, e._l(a, function(u, i) {
2079
- return r(n.LumeBar, e._b({ key: `bar-${i}`, attrs: { transition: n.computedTransition, "data-j-lume-bar": "" }, on: { click: function(l) {
2104
+ } } }, e._l(a, function(u, s) {
2105
+ return r(n.LumeBar, e._b({ key: `bar-${s}`, attrs: { transition: n.computedTransition, "data-j-lume-bar": "" }, on: { click: function(l) {
2080
2106
  return n.emit("bar-click", {
2081
2107
  index: o,
2082
- datasetIndex: i,
2108
+ datasetIndex: s,
2083
2109
  event: l
2084
2110
  });
2085
- } } }, "lume-bar", n.getBarAttributes(u, i, o, a), !1));
2111
+ } } }, "lume-bar", n.getBarAttributes(u, s, o, a), !1));
2086
2112
  }), 1);
2087
2113
  }), 0);
2088
- }, Wr = [], Zr = /* @__PURE__ */ w(
2089
- Mr,
2114
+ }, Zr = [], Xr = /* @__PURE__ */ D(
2090
2115
  zr,
2091
2116
  Wr,
2117
+ Zr,
2092
2118
  !1,
2093
2119
  null,
2094
2120
  null,
2095
2121
  null,
2096
2122
  null
2097
2123
  );
2098
- const xe = Zr.exports, Xr = {
2099
- [A.VERTICAL]: {
2124
+ const xe = Xr.exports, Yr = {
2125
+ [T.VERTICAL]: {
2100
2126
  withTooltip: !0,
2101
2127
  xAxisOptions: {},
2102
2128
  yAxisOptions: { gridLines: !0 },
2103
2129
  margins: z.VERTICAL
2104
2130
  },
2105
- [A.HORIZONTAL]: {
2131
+ [T.HORIZONTAL]: {
2106
2132
  withTooltip: !0,
2107
2133
  xAxisOptions: { gridLines: !0 },
2108
2134
  yAxisOptions: { gridLines: !1 },
2109
2135
  margins: z.HORIZONTAL
2110
2136
  }
2111
- }, Yr = /* @__PURE__ */ $({
2137
+ }, Ur = /* @__PURE__ */ I({
2112
2138
  __name: "lume-single-bar-chart",
2113
2139
  props: {
2114
- ...X(ye)
2140
+ ...X(be)
2115
2141
  },
2116
2142
  setup(t) {
2117
- const e = t, r = Z(j()), { orientation: n, options: a } = R(e), o = c(
2118
- () => Xr[n.value || A.VERTICAL]
2143
+ const e = t, r = Z(V()), { orientation: n, options: a } = R(e), o = c(
2144
+ () => Yr[n.value || T.VERTICAL]
2119
2145
  // needs to be computed so that default options are reactive
2120
- ), { allOptions: u } = H(a, o);
2146
+ ), { allOptions: u } = G(a, o);
2121
2147
  return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: u, LumeChart: K, LumeBarGroup: xe };
2122
2148
  }
2123
2149
  });
2124
- var Ur = function() {
2150
+ var Kr = function() {
2125
2151
  var e = this, r = e._self._c, n = e._self._setupProxy;
2126
2152
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2127
2153
  return [r(n.LumeBarGroup, e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1))];
@@ -2130,44 +2156,44 @@ var Ur = function() {
2130
2156
  return [e._t(o, null, null, u || {})];
2131
2157
  } };
2132
2158
  })], null, !0) }, "lume-chart", n.props, !1));
2133
- }, Kr = [], Jr = /* @__PURE__ */ w(
2134
- Yr,
2159
+ }, Jr = [], Qr = /* @__PURE__ */ D(
2135
2160
  Ur,
2136
2161
  Kr,
2162
+ Jr,
2137
2163
  !1,
2138
2164
  null,
2139
2165
  null,
2140
2166
  null,
2141
2167
  null
2142
2168
  );
2143
- const Fa = Jr.exports, Qr = {
2144
- [A.VERTICAL]: {
2169
+ const Ma = Qr.exports, qr = {
2170
+ [T.VERTICAL]: {
2145
2171
  withTooltip: !0,
2146
2172
  xAxisOptions: {},
2147
2173
  yAxisOptions: { gridLines: !0 },
2148
2174
  margins: z.VERTICAL
2149
2175
  },
2150
- [A.HORIZONTAL]: {
2176
+ [T.HORIZONTAL]: {
2151
2177
  withTooltip: !0,
2152
2178
  xAxisOptions: { gridLines: !0 },
2153
2179
  yAxisOptions: { gridLines: !1 },
2154
2180
  margins: z.HORIZONTAL,
2155
2181
  tooltipOptions: { position: "right" }
2156
2182
  }
2157
- }, qr = /* @__PURE__ */ $({
2183
+ }, ea = /* @__PURE__ */ I({
2158
2184
  __name: "lume-grouped-bar-chart",
2159
2185
  props: {
2160
2186
  ...X()
2161
2187
  },
2162
2188
  setup(t) {
2163
- const e = t, r = Z(j()), { orientation: n, options: a } = R(e), o = c(
2164
- () => Qr[n.value || A.VERTICAL]
2189
+ const e = t, r = Z(V()), { orientation: n, options: a } = R(e), o = c(
2190
+ () => qr[n.value || T.VERTICAL]
2165
2191
  // needs to be computed so that default options are reactive
2166
- ), { allOptions: u } = H(a, o);
2192
+ ), { allOptions: u } = G(a, o);
2167
2193
  return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: u, LumeChart: K, LumeBarGroup: xe };
2168
2194
  }
2169
2195
  });
2170
- var ea = function() {
2196
+ var ta = function() {
2171
2197
  var e = this, r = e._self._c, n = e._self._setupProxy;
2172
2198
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2173
2199
  return [r(n.LumeBarGroup, e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1))];
@@ -2176,47 +2202,47 @@ var ea = function() {
2176
2202
  return [e._t(o, null, null, u || {})];
2177
2203
  } };
2178
2204
  })], null, !0) }, "lume-chart", n.props, !1));
2179
- }, ta = [], na = /* @__PURE__ */ w(
2180
- qr,
2205
+ }, na = [], ra = /* @__PURE__ */ D(
2181
2206
  ea,
2182
2207
  ta,
2208
+ na,
2183
2209
  !1,
2184
2210
  null,
2185
2211
  null,
2186
2212
  null,
2187
2213
  null
2188
2214
  );
2189
- const Ma = na.exports, ra = {
2190
- [A.VERTICAL]: {
2215
+ const za = ra.exports, aa = {
2216
+ [T.VERTICAL]: {
2191
2217
  withTooltip: !0,
2192
2218
  xAxisOptions: {},
2193
2219
  yAxisOptions: { gridLines: !0 },
2194
2220
  margins: z.VERTICAL
2195
2221
  },
2196
- [A.HORIZONTAL]: {
2222
+ [T.HORIZONTAL]: {
2197
2223
  withTooltip: !0,
2198
2224
  xAxisOptions: { gridLines: !0 },
2199
2225
  yAxisOptions: { gridLines: !1 },
2200
2226
  margins: z.HORIZONTAL,
2201
2227
  tooltipOptions: { position: "right" }
2202
2228
  }
2203
- }, aa = /* @__PURE__ */ $({
2229
+ }, oa = /* @__PURE__ */ I({
2204
2230
  __name: "lume-stacked-bar-chart",
2205
2231
  props: {
2206
2232
  ...X()
2207
2233
  },
2208
2234
  setup(t) {
2209
- const e = t, r = Z(j()), { data: n, orientation: a, options: o } = R(e), u = c(
2210
- () => ra[a.value || A.VERTICAL]
2235
+ const e = t, r = Z(V()), { data: n, orientation: a, options: o } = R(e), u = c(
2236
+ () => aa[a.value || T.VERTICAL]
2211
2237
  // needs to be computed so that default options are reactive
2212
- ), { allOptions: i } = H(o, u), { internalData: l } = Le(n), { groupedData: s } = it(l), { stackedXScaleGenerator: v, stackedYScaleGenerator: d } = Vr(
2213
- s,
2238
+ ), { allOptions: s } = G(o, u), { internalData: l } = Le(n), { groupedData: i } = it(l), { stackedXScaleGenerator: v, stackedYScaleGenerator: d } = Fr(
2239
+ i,
2214
2240
  a
2215
2241
  );
2216
- return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: u, allOptions: i, internalData: l, groupedData: s, stackedXScaleGenerator: v, stackedYScaleGenerator: d, LumeChart: K, LumeBarGroup: xe };
2242
+ return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: u, allOptions: s, internalData: l, groupedData: i, stackedXScaleGenerator: v, stackedYScaleGenerator: d, LumeChart: K, LumeBarGroup: xe };
2217
2243
  }
2218
2244
  });
2219
- var oa = function() {
2245
+ var ua = function() {
2220
2246
  var e = this, r = e._self._c, n = e._self._setupProxy;
2221
2247
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.stackedXScaleGenerator, "y-scale": n.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2222
2248
  return [r(n.LumeBarGroup, e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1))];
@@ -2225,17 +2251,17 @@ var oa = function() {
2225
2251
  return [e._t(o, null, null, u || {})];
2226
2252
  } };
2227
2253
  })], null, !0) }, "lume-chart", n.props, !1));
2228
- }, ua = [], la = /* @__PURE__ */ w(
2229
- aa,
2254
+ }, la = [], ia = /* @__PURE__ */ D(
2230
2255
  oa,
2231
2256
  ua,
2257
+ la,
2232
2258
  !1,
2233
2259
  null,
2234
2260
  null,
2235
2261
  null,
2236
2262
  null
2237
2263
  );
2238
- const za = la.exports, Fe = 2, ia = /* @__PURE__ */ $({
2264
+ const Wa = ia.exports, Fe = 2, sa = /* @__PURE__ */ I({
2239
2265
  __name: "lume-line",
2240
2266
  props: {
2241
2267
  pathDefinition: {
@@ -2248,7 +2274,7 @@ const za = la.exports, Fe = 2, ia = /* @__PURE__ */ $({
2248
2274
  },
2249
2275
  color: {
2250
2276
  type: String,
2251
- default: G.Skyblue
2277
+ default: P.Skyblue
2252
2278
  },
2253
2279
  dashed: {
2254
2280
  type: Boolean,
@@ -2269,11 +2295,11 @@ const za = la.exports, Fe = 2, ia = /* @__PURE__ */ $({
2269
2295
  },
2270
2296
  emits: ["click"],
2271
2297
  setup(t, { emit: e }) {
2272
- const r = L(null);
2273
- return B(() => ue(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: Fe, emit: e, root: r };
2298
+ const r = x(null);
2299
+ return j(() => le(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: Fe, emit: e, root: r };
2274
2300
  }
2275
2301
  });
2276
- var sa = function() {
2302
+ var ca = function() {
2277
2303
  var e = this, r = e._self._c, n = e._self._setupProxy;
2278
2304
  return r("path", { ref: "root", staticClass: "lume-line", class: {
2279
2305
  [`lume-stroke--${e.color}`]: !0,
@@ -2285,24 +2311,24 @@ var sa = function() {
2285
2311
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
2286
2312
  return n.emit("click", a);
2287
2313
  } } });
2288
- }, ca = [], da = /* @__PURE__ */ w(
2289
- ia,
2314
+ }, da = [], va = /* @__PURE__ */ D(
2290
2315
  sa,
2291
2316
  ca,
2317
+ da,
2292
2318
  !1,
2293
2319
  null,
2294
2320
  "08896455",
2295
2321
  null,
2296
2322
  null
2297
2323
  );
2298
- const va = da.exports, Me = 4, _a = /* @__PURE__ */ $({
2324
+ const _a = va.exports, Me = 4, pa = /* @__PURE__ */ I({
2299
2325
  __name: "lume-point",
2300
2326
  props: {
2301
2327
  x: { type: Number, required: !0 },
2302
2328
  y: { type: Number, required: !0 },
2303
2329
  color: {
2304
2330
  type: String,
2305
- default: G.Skyblue
2331
+ default: P.Skyblue
2306
2332
  },
2307
2333
  radius: {
2308
2334
  type: Number,
@@ -2315,39 +2341,39 @@ const va = da.exports, Me = 4, _a = /* @__PURE__ */ $({
2315
2341
  },
2316
2342
  emits: ["click"],
2317
2343
  setup(t, { emit: e }) {
2318
- const r = t, n = L(null), a = c(() => r.radius / 2);
2319
- return B(() => ue(n.value)), { __sfc: !0, DEFAULT_RADIUS: Me, props: r, emit: e, root: n, strokeWidth: a };
2344
+ const r = t, n = x(null), a = c(() => r.radius / 2);
2345
+ return j(() => le(n.value)), { __sfc: !0, DEFAULT_RADIUS: Me, props: r, emit: e, root: n, strokeWidth: a };
2320
2346
  }
2321
2347
  });
2322
- var pa = function() {
2348
+ var fa = function() {
2323
2349
  var e = this, r = e._self._c, n = e._self._setupProxy;
2324
2350
  return r("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${e.color}`, attrs: { cx: e.x, cy: e.y, r: e.active ? e.radius : 0, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(a) {
2325
2351
  return n.emit("click", a);
2326
2352
  } } });
2327
- }, fa = [], ma = /* @__PURE__ */ w(
2328
- _a,
2353
+ }, ma = [], ha = /* @__PURE__ */ D(
2329
2354
  pa,
2330
2355
  fa,
2356
+ ma,
2331
2357
  !1,
2332
2358
  null,
2333
2359
  "9bacbd7d",
2334
2360
  null,
2335
2361
  null
2336
2362
  );
2337
- const ha = ma.exports;
2363
+ const ga = ha.exports;
2338
2364
  function st(t) {
2339
2365
  function e(o) {
2340
2366
  let u = null;
2341
- return o == null ? void 0 : o.reduce((i, l, s) => (l == null || l.value == null ? (u ? u.push(s) : u = [s], s === (o == null ? void 0 : o.length) - 1 && i.push(u)) : u && (i.push(u), u = null), i), []);
2367
+ return o == null ? void 0 : o.reduce((s, l, i) => (l == null || l.value == null ? (u ? u.push(i) : u = [i], i === (o == null ? void 0 : o.length) - 1 && s.push(u)) : u && (s.push(u), u = null), s), []);
2342
2368
  }
2343
- function r(o, u, i, l) {
2344
- const d = Math.abs(o - u) / (i + 1) * (l + 1);
2369
+ function r(o, u, s, l) {
2370
+ const d = Math.abs(o - u) / (s + 1) * (l + 1);
2345
2371
  return o > u ? o - d : o + d;
2346
2372
  }
2347
2373
  function n(o) {
2348
- return function(i) {
2374
+ return function(s) {
2349
2375
  return !!o.find(
2350
- (l) => l.includes(i) || l.includes(i - 1)
2376
+ (l) => l.includes(s) || l.includes(s - 1)
2351
2377
  );
2352
2378
  };
2353
2379
  }
@@ -2356,45 +2382,45 @@ function st(t) {
2356
2382
  return {
2357
2383
  ...o,
2358
2384
  isDashed: n(u),
2359
- values: o.values.map((i, l) => {
2385
+ values: o.values.map((s, l) => {
2360
2386
  var v, d;
2361
- const s = u.find(
2387
+ const i = u.find(
2362
2388
  (f) => f.includes(l)
2363
2389
  );
2364
- if (s) {
2365
- const f = s[0] - 1, g = s[s.length - 1] + 1;
2366
- let _ = (v = o.values[f]) == null ? void 0 : v.value, p = (d = o.values[g]) == null ? void 0 : d.value;
2390
+ if (i) {
2391
+ const f = i[0] - 1, h = i[i.length - 1] + 1;
2392
+ let _ = (v = o.values[f]) == null ? void 0 : v.value, p = (d = o.values[h]) == null ? void 0 : d.value;
2367
2393
  return _ == null && (_ = p), p == null && (p = _), {
2368
2394
  value: r(
2369
2395
  _,
2370
2396
  p,
2371
- s.length,
2372
- s.indexOf(l)
2397
+ i.length,
2398
+ i.indexOf(l)
2373
2399
  ),
2374
2400
  label: qe
2375
2401
  };
2376
2402
  }
2377
- return i;
2403
+ return s;
2378
2404
  })
2379
2405
  };
2380
2406
  })) };
2381
2407
  }
2382
- function ga(t, e) {
2383
- const r = be(t) / 2;
2408
+ function ya(t, e) {
2409
+ const r = ke(t) / 2;
2384
2410
  return (n, a) => t(t.domain()[e + (a - 1)]) + r;
2385
2411
  }
2386
- function ya(t, e) {
2412
+ function ba(t, e) {
2387
2413
  return (r, n) => t(e + (n - 1));
2388
2414
  }
2389
- function ba(t, e, r, n) {
2390
- return $t().x(
2391
- W(r) ? ga(r, t) : ya(r, t)
2415
+ function ka(t, e, r, n) {
2416
+ return wt().x(
2417
+ W(r) ? ya(r, t) : ba(r, t)
2392
2418
  ).y((o) => n(o))(e);
2393
2419
  }
2394
- const ze = 1, ka = /* @__PURE__ */ $({
2420
+ const ze = 1, Aa = /* @__PURE__ */ I({
2395
2421
  __name: "lume-line-group",
2396
2422
  props: {
2397
- ...ie(),
2423
+ ...se(),
2398
2424
  withPoints: {
2399
2425
  type: Boolean,
2400
2426
  default: !0
@@ -2406,113 +2432,115 @@ const ze = 1, ka = /* @__PURE__ */ $({
2406
2432
  },
2407
2433
  emits: ["line-click", "point-click", "lume__internal--hover"],
2408
2434
  setup(t, { emit: e }) {
2409
- const r = t, { data: n, options: a, xScale: o, yScale: u } = R(r), i = kt(
2435
+ const r = t, { data: n, options: a, xScale: o, yScale: u } = R(r), s = kt(
2410
2436
  "tooltipAnchorAttributes",
2411
2437
  null
2412
2438
  ), { updateTooltipAnchorAttributes: l } = ot(
2413
- i,
2439
+ s,
2414
2440
  a,
2415
2441
  o,
2416
2442
  u
2417
- ), s = c(() => {
2418
- if (n.value.every((T) => T.isDashed))
2443
+ ), i = c(() => {
2444
+ if (n.value.every((k) => k.isDashed))
2419
2445
  return n.value;
2420
- const { computedLineData: m } = st(n);
2421
- return a.value.withTooltip !== !1 && (i != null && i.value) && l(m.value), m.value;
2446
+ const { computedLineData: y } = st(n);
2447
+ return a.value.withTooltip !== !1 && (s != null && s.value) && l(y.value), y.value;
2422
2448
  }), v = c(() => {
2423
2449
  if (r.hoveredIndex === -1)
2424
2450
  return;
2425
- const m = Ht(
2426
- s.value,
2451
+ const y = St(
2452
+ i.value,
2427
2453
  r.hoveredIndex
2428
2454
  );
2429
2455
  return {
2430
- d: `M ${fe(o.value, r.hoveredIndex)},${u.value.range()[1]}
2431
- V ${u.value(m)}`
2456
+ d: `M ${me(o.value, r.hoveredIndex)},${u.value.range()[1]}
2457
+ V ${u.value(y)}`
2432
2458
  // Move to X index, Vertical line to the highest point
2433
2459
  };
2434
2460
  }), d = c(
2435
- () => o.value && ze / (Bt(o.value) - 1)
2461
+ () => o.value && ze / (Gt(o.value) - 1)
2436
2462
  // Subtracting the first line (read below)
2437
2463
  ), f = c(
2438
2464
  () => {
2439
- var m;
2440
- return ((m = a.value) == null ? void 0 : m.lineWidth) * 2 || void 0;
2465
+ var y;
2466
+ return ((y = a.value) == null ? void 0 : y.lineWidth) * 2 || void 0;
2441
2467
  }
2442
2468
  // If no `lineWidth`, returns NaN which needs to be undefined
2443
- ), g = c(() => be(o.value) / 2), _ = c(() => o.value.domain());
2444
- function p(m) {
2445
- return s.value[m].values;
2469
+ ), h = c(() => ke(o.value) / 2), _ = c(() => o.value.domain()), p = c(
2470
+ () => a.value.withPoints ?? r.withPoints
2471
+ );
2472
+ function b(y) {
2473
+ return i.value[y].values;
2446
2474
  }
2447
- function O(m, T) {
2448
- var I, N;
2449
- const E = m === 0 ? [] : [
2450
- (I = p(T)[m - 1]) == null ? void 0 : I.value,
2451
- (N = p(T)[m]) == null ? void 0 : N.value
2475
+ function m(y, k) {
2476
+ var E, H;
2477
+ const $ = y === 0 ? [] : [
2478
+ (E = b(k)[y - 1]) == null ? void 0 : E.value,
2479
+ (H = b(k)[y]) == null ? void 0 : H.value
2452
2480
  ];
2453
- return ba(
2454
- m,
2455
- E,
2481
+ return ka(
2482
+ y,
2483
+ $,
2456
2484
  o.value,
2457
2485
  u.value
2458
2486
  ) || "";
2459
2487
  }
2460
- function h(m) {
2488
+ function g(y) {
2461
2489
  return {
2462
- animationDelay: m < 2 ? 0 : (m - 1) * d.value,
2490
+ animationDelay: y < 2 ? 0 : (y - 1) * d.value,
2463
2491
  animationDuration: d.value
2464
2492
  };
2465
2493
  }
2466
- function b(m, T) {
2467
- var I;
2468
- const E = (I = p(T)[m]) == null ? void 0 : I.value;
2494
+ function O(y, k) {
2495
+ var E;
2496
+ const $ = (E = b(k)[y]) == null ? void 0 : E.value;
2469
2497
  return {
2470
- x: W(o.value) ? r.xScale(_.value[m]) + g.value : r.xScale(m),
2471
- y: u.value(E)
2498
+ x: W(o.value) ? r.xScale(_.value[y]) + h.value : r.xScale(y),
2499
+ y: u.value($)
2472
2500
  };
2473
2501
  }
2474
- function y(m) {
2475
- return r.hoveredIndex === m;
2502
+ function L(y) {
2503
+ return r.hoveredIndex === y;
2476
2504
  }
2477
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: ze, props: r, emit: e, data: n, options: a, xScale: o, yScale: u, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: l, computedGroupData: s, overlayLineAttributes: v, animationDuration: d, pointRadius: f, xAxisOffset: g, domain: _, getValuesFromDataset: p, getPathDefinition: O, getLineTransitionParams: h, getPointPosition: b, isPointActive: y, LumeLine: va, LumePoint: ha };
2505
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: ze, props: r, emit: e, data: n, options: a, xScale: o, yScale: u, tooltipAnchorAttributes: s, updateTooltipAnchorAttributes: l, computedGroupData: i, overlayLineAttributes: v, animationDuration: d, pointRadius: f, xAxisOffset: h, domain: _, computedWithPoints: p, getValuesFromDataset: b, getPathDefinition: m, getLineTransitionParams: g, getPointPosition: O, isPointActive: L, LumeLine: _a, LumePoint: ga };
2478
2506
  }
2479
2507
  });
2480
- var Aa = function() {
2508
+ var Oa = function() {
2481
2509
  var e = this, r = e._self._c, n = e._self._setupProxy;
2482
2510
  return r("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [r("path", e._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", n.overlayLineAttributes, !1)), e._l(n.computedGroupData, function(a, o) {
2483
- return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(u, i) {
2484
- return r(n.LumeLine, e._b({ key: `line-${i}`, attrs: { color: a.color, dashed: a.isDashed(i), "path-definition": n.getPathDefinition(i, o), transition: e.transition, width: n.options.lineWidth }, on: { click: function(l) {
2485
- return n.emit("line-click", { index: i, datasetIndex: o, event: l });
2486
- } } }, "lume-line", n.getLineTransitionParams(i), !1));
2487
- }), 1), e.withPoints ? r("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, e._l(a.values, function(u, i) {
2488
- return r(n.LumePoint, e._b({ key: `point-${i}`, attrs: { active: n.isPointActive(i), color: a.color, index: i, radius: n.pointRadius }, on: { click: function(l) {
2489
- return n.emit("point-click", { index: i, datasetIndex: o, event: l });
2490
- } } }, "lume-point", n.getPointPosition(i, o), !1));
2511
+ return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(u, s) {
2512
+ return r(n.LumeLine, e._b({ key: `line-${s}`, attrs: { color: a.color, dashed: a.isDashed(s), "path-definition": n.getPathDefinition(s, o), transition: e.transition, width: n.options.lineWidth }, on: { click: function(l) {
2513
+ return n.emit("line-click", { index: s, datasetIndex: o, event: l });
2514
+ } } }, "lume-line", n.getLineTransitionParams(s), !1));
2515
+ }), 1), n.computedWithPoints ? r("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, e._l(a.values, function(u, s) {
2516
+ return r(n.LumePoint, e._b({ key: `point-${s}`, attrs: { active: n.isPointActive(s), color: a.color, index: s, radius: n.pointRadius }, on: { click: function(l) {
2517
+ return n.emit("point-click", { index: s, datasetIndex: o, event: l });
2518
+ } } }, "lume-point", n.getPointPosition(s, o), !1));
2491
2519
  }), 1) : e._e()]);
2492
2520
  })], 2);
2493
- }, Oa = [], Ta = /* @__PURE__ */ w(
2494
- ka,
2521
+ }, Ta = [], La = /* @__PURE__ */ D(
2495
2522
  Aa,
2496
2523
  Oa,
2524
+ Ta,
2497
2525
  !1,
2498
2526
  null,
2499
- "62f6f279",
2527
+ "299f46e4",
2500
2528
  null,
2501
2529
  null
2502
2530
  );
2503
- const ct = Ta.exports, La = {
2531
+ const ct = La.exports, xa = {
2504
2532
  margins: z.VERTICAL,
2505
2533
  startOnZero: !0,
2506
2534
  withTooltip: !0,
2507
2535
  xAxisOptions: {},
2508
2536
  yAxisOptions: { gridLines: !0 }
2509
- }, xa = /* @__PURE__ */ $({
2537
+ }, wa = /* @__PURE__ */ I({
2510
2538
  __name: "lume-line-chart",
2511
2539
  props: {
2512
2540
  ...X(null, !1)
2513
2541
  },
2514
2542
  setup(t) {
2515
- const e = t, r = Z(j()), { options: n } = R(e), { allOptions: a } = H(n, La);
2543
+ const e = t, r = Z(V()), { options: n } = R(e), { allOptions: a } = G(n, xa);
2516
2544
  return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: K, LumeLineGroup: ct };
2517
2545
  }
2518
2546
  });
@@ -2525,28 +2553,28 @@ var $a = function() {
2525
2553
  return [e._t(o, null, null, u || {})];
2526
2554
  } };
2527
2555
  })], null, !0) }, "lume-chart", n.props, !1));
2528
- }, wa = [], Ia = /* @__PURE__ */ w(
2529
- xa,
2530
- $a,
2556
+ }, Ia = [], Da = /* @__PURE__ */ D(
2531
2557
  wa,
2558
+ $a,
2559
+ Ia,
2532
2560
  !1,
2533
2561
  null,
2534
2562
  null,
2535
2563
  null,
2536
2564
  null
2537
2565
  );
2538
- const Wa = Ia.exports;
2539
- function Da(t) {
2566
+ const Za = Da.exports;
2567
+ function Ea(t) {
2540
2568
  return { areaPathDefinition: c(
2541
2569
  () => function(r, n) {
2542
2570
  if (!r || !n)
2543
2571
  return;
2544
2572
  const a = t.value[0].values;
2545
- return wt().x((o, u) => r(u)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2573
+ return $t().x((o, u) => r(u)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2546
2574
  }
2547
2575
  ) };
2548
2576
  }
2549
- const Ra = {
2577
+ const Ca = {
2550
2578
  margins: {
2551
2579
  top: 0,
2552
2580
  right: 0,
@@ -2560,14 +2588,14 @@ const Ra = {
2560
2588
  tooltipOptions: {
2561
2589
  showTitle: !1
2562
2590
  }
2563
- }, Ca = /* @__PURE__ */ $({
2591
+ }, Ra = /* @__PURE__ */ I({
2564
2592
  __name: "lume-sparkline-chart",
2565
2593
  props: {
2566
2594
  ...rt(null),
2567
- ...oe()
2595
+ ...ue()
2568
2596
  },
2569
2597
  setup(t, { expose: e }) {
2570
- const r = t, n = Z(j()), { data: a, options: o } = R(r), { internalData: u } = Le(a), { allOptions: i } = H(o, Ra), { computedLineData: l } = st(u), { areaPathDefinition: s } = Da(l), v = c(() => u.value[0].color), d = c(
2598
+ const r = t, n = Z(V()), { data: a, options: o } = R(r), { internalData: u } = Le(a), { allOptions: s } = G(o, Ca), { computedLineData: l } = st(u), { areaPathDefinition: i } = Ea(l), v = c(() => u.value[0].color), d = c(
2571
2599
  () => a.value[0].areaColor || v.value
2572
2600
  );
2573
2601
  function f(_) {
@@ -2576,15 +2604,15 @@ const Ra = {
2576
2604
  noMinSize: !0
2577
2605
  };
2578
2606
  }
2579
- function g(_, p, O) {
2580
- return Q().range([0, O.width]).domain([0, _[0].values.length - 1]);
2607
+ function h(_, p, b) {
2608
+ return Q().range([0, b.width]).domain([0, _[0].values.length - 1]);
2581
2609
  }
2582
2610
  return e({
2583
- areaPathDefinition: s
2584
- }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: u, allOptions: i, computedLineData: l, areaPathDefinition: s, computedColor: v, areaColor: d, getSparklineOptions: f, xScaleGenerator: g, LumeChart: K, LumeLineGroup: ct };
2611
+ areaPathDefinition: i
2612
+ }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: u, allOptions: s, computedLineData: l, areaPathDefinition: i, computedColor: v, areaColor: d, getSparklineOptions: f, xScaleGenerator: h, LumeChart: K, LumeLineGroup: ct };
2585
2613
  }
2586
2614
  });
2587
- var Ea = function() {
2615
+ var Na = function() {
2588
2616
  var e = this, r = e._self._c, n = e._self._setupProxy;
2589
2617
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2590
2618
  return [n.allOptions.showArea ? r("path", { class: [
@@ -2597,36 +2625,36 @@ var Ea = function() {
2597
2625
  return [e._t(o, null, null, u || {})];
2598
2626
  } };
2599
2627
  })], null, !0) }, "lume-chart", n.props, !1));
2600
- }, Na = [], Pa = /* @__PURE__ */ w(
2601
- Ca,
2602
- Ea,
2628
+ }, Ba = [], Ha = /* @__PURE__ */ D(
2629
+ Ra,
2603
2630
  Na,
2631
+ Ba,
2604
2632
  !1,
2605
2633
  null,
2606
2634
  "60a59b77",
2607
2635
  null,
2608
2636
  null
2609
2637
  );
2610
- const Za = Pa.exports;
2638
+ const Xa = Ha.exports;
2611
2639
  export {
2612
2640
  cn as L,
2613
- Va as a,
2614
- Fa as b,
2615
- Ma as c,
2616
- za as d,
2617
- Wa as e,
2618
- Za as f,
2641
+ Fa as a,
2642
+ Ma as b,
2643
+ za as c,
2644
+ Wa as d,
2645
+ Za as e,
2646
+ Xa as f,
2619
2647
  K as g,
2620
2648
  An as h,
2621
- $n as i,
2649
+ wn as i,
2622
2650
  Cn as j,
2623
2651
  Te as k,
2624
- ja as l,
2625
- va as m,
2626
- ha as n,
2627
- Tr as o,
2652
+ Va as l,
2653
+ _a as m,
2654
+ ga as n,
2655
+ Lr as o,
2628
2656
  xe as p,
2629
2657
  ct as q,
2630
2658
  Un as r
2631
2659
  };
2632
- //# sourceMappingURL=9373652f.js.map
2660
+ //# sourceMappingURL=7d05c4b2.js.map