@adyen/lume 0.8.0 → 0.9.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.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { defineComponent as E, ref as $, isRef as qe, computed as c, watch as D, toRefs as B, inject as pe, reactive as me, onMounted as U, onBeforeUnmount as et, watchEffect as tt, useSlots as j, provide as ke, defineAsyncComponent as Ae } from "vue";
2
- import { format as Lt, ticks as xt, scaleBand as le, scaleLinear as ue, link as Ot, line as $t, area as It } from "d3";
3
- import { createPopper as wt } from "@popperjs/core";
4
- import { sankeyLinkHorizontal as Et, sankey as Nt, sankeyJustify as Ct } from "d3-sankey";
5
- const Dt = /* @__PURE__ */ E({
1
+ import { defineComponent as E, ref as I, isRef as ot, computed as d, watch as C, toRefs as H, inject as fe, reactive as pe, onMounted as X, onBeforeUnmount as lt, watchEffect as ut, useSlots as V, provide as Ae, defineAsyncComponent as Te } from "vue";
2
+ import { format as Nt, ticks as Ct, scaleBand as ue, scaleLinear as ie, link as Dt, line as Ht, area as Rt } from "d3";
3
+ import { createPopper as St } from "@popperjs/core";
4
+ import { sankeyLinkHorizontal as Bt, sankey as Ft, sankeyJustify as Pt } from "d3-sankey";
5
+ const Gt = /* @__PURE__ */ E({
6
6
  __name: "lume-tick",
7
7
  props: {
8
8
  value: {
@@ -40,11 +40,11 @@ const Dt = /* @__PURE__ */ E({
40
40
  },
41
41
  emits: ["click", "mouseenter"],
42
42
  setup(t, { expose: e, emit: r }) {
43
- const n = $(null);
43
+ const n = I(null);
44
44
  return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
45
45
  }
46
46
  });
47
- function I(t, e, r, n, a, o, l, i) {
47
+ function w(t, e, r, n, a, o, l, i) {
48
48
  var u = typeof t == "function" ? t.options : t;
49
49
  e && (u.render = e, u.staticRenderFns = r, u._compiled = !0), n && (u.functional = !0), o && (u._scopeId = "data-v-" + o);
50
50
  var s;
@@ -60,9 +60,9 @@ function I(t, e, r, n, a, o, l, i) {
60
60
  } : a), s)
61
61
  if (u.functional) {
62
62
  u._injectStyles = s;
63
- var d = u.render;
64
- u.render = function(h, _) {
65
- return s.call(_), d(h, _);
63
+ var c = u.render;
64
+ u.render = function(y, m) {
65
+ return s.call(m), c(y, m);
66
66
  };
67
67
  } else {
68
68
  var v = u.beforeCreate;
@@ -73,7 +73,7 @@ function I(t, e, r, n, a, o, l, i) {
73
73
  options: u
74
74
  };
75
75
  }
76
- var Rt = function() {
76
+ var Vt = 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,17 +83,17 @@ 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
- }, Ht = [], St = /* @__PURE__ */ I(
87
- Dt,
88
- Rt,
89
- Ht,
86
+ }, jt = [], Mt = /* @__PURE__ */ w(
87
+ Gt,
88
+ Vt,
89
+ jt,
90
90
  !1,
91
91
  null,
92
92
  "59ddc0a6",
93
93
  null,
94
94
  null
95
95
  );
96
- const Bt = St.exports, Pt = [
96
+ const zt = Mt.exports, Wt = [
97
97
  "controls",
98
98
  "legend",
99
99
  "axes",
@@ -101,41 +101,41 @@ const Bt = St.exports, Pt = [
101
101
  "tooltip",
102
102
  "tooltip-content"
103
103
  ];
104
- function nt() {
104
+ function it() {
105
105
  return process.env.NODE_ENV === "production";
106
106
  }
107
- function rt(t) {
107
+ function st(t) {
108
108
  return (t == null ? void 0 : t.map(
109
109
  (e) => e.values.map((r) => r == null ? void 0 : r.value).flat()
110
110
  ).flat()) || [];
111
111
  }
112
- function Ne(t) {
112
+ function Se(t) {
113
113
  return t.length === 1;
114
114
  }
115
- function Ft(t) {
115
+ function Zt(t) {
116
116
  return !!t && t.every(
117
117
  (e) => "color" in e
118
118
  );
119
119
  }
120
- function Te(t) {
120
+ function xe(t) {
121
121
  return !!t && typeof t == "object" && !Array.isArray(t);
122
122
  }
123
- function at(t, e) {
123
+ function ct(t, e) {
124
124
  const r = { ...t };
125
125
  return Object.entries(e).forEach(([n, a]) => {
126
- r[n] = Te(t[n]) && Te(a) ? at(t[n], a) : a;
126
+ r[n] = xe(t[n]) && xe(a) ? ct(t[n], a) : a;
127
127
  }), r;
128
128
  }
129
- function Gt(t) {
130
- return t != null && Te(t) && "value" in t;
129
+ function Xt(t) {
130
+ return t != null && xe(t) && "value" in t;
131
131
  }
132
- function te(t) {
132
+ function q(t) {
133
133
  return (t == null ? void 0 : t.bandwidth) !== void 0;
134
134
  }
135
- function Vt(t) {
136
- return te(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
135
+ function Ut(t) {
136
+ return q(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
137
137
  }
138
- const jt = (t, e) => {
138
+ const Yt = (t, e) => {
139
139
  if (!t)
140
140
  throw new Error("Data is not a valid array");
141
141
  if (t.length === 0)
@@ -145,9 +145,9 @@ const jt = (t, e) => {
145
145
  throw new Error("Index exceeds length of at least one of the datasets");
146
146
  });
147
147
  };
148
- function Mt(t, e) {
148
+ function Kt(t, e) {
149
149
  var r;
150
- return jt(t, e), ((r = t.reduce(
150
+ return Yt(t, e), ((r = t.reduce(
151
151
  (n, a) => {
152
152
  var o, l;
153
153
  return (((o = n.values[e]) == null ? void 0 : o.value) ?? 0) > (((l = a.values[e]) == null ? void 0 : l.value) ?? 0) ? n : a;
@@ -155,7 +155,7 @@ function Mt(t, e) {
155
155
  ).values[e]) == null ? void 0 : r.value) || 0;
156
156
  }
157
157
  function Le(t) {
158
- const e = qe(t) ? t.value : t;
158
+ const e = ot(t) ? t.value : t;
159
159
  if (!e)
160
160
  throw new Error("No empty array can be created from specified data value");
161
161
  const r = Math.max(
@@ -164,17 +164,17 @@ function Le(t) {
164
164
  );
165
165
  return Array(r).fill(null);
166
166
  }
167
- function zt(t) {
168
- return te(t) ? t.domain().length : Math.max(...t.domain());
167
+ function Jt(t) {
168
+ return q(t) ? t.domain().length : Math.max(...t.domain());
169
169
  }
170
- function Wt(t, e) {
170
+ function Qt(t, e) {
171
171
  return (r) => Math.round(t * (1 - r) + e * r);
172
172
  }
173
- function Zt(t, e, r) {
173
+ function qt(t, e, r) {
174
174
  const n = r ? t.length - e : e, a = t.slice(0, n);
175
175
  return t.slice(n).concat(a);
176
176
  }
177
- function ne(t) {
177
+ function ee(t) {
178
178
  if (t.groups) {
179
179
  const e = Object.keys(t);
180
180
  return Object.assign(
@@ -184,32 +184,32 @@ function ne(t) {
184
184
  }
185
185
  return t;
186
186
  }
187
- function Xt(t) {
187
+ function en(t) {
188
188
  return Object.assign(
189
189
  {},
190
190
  ...Object.keys(t).map(
191
- (e) => Pt.includes(e) ? {} : { [e]: t[e] }
191
+ (e) => Wt.includes(e) ? {} : { [e]: t[e] }
192
192
  )
193
193
  );
194
194
  }
195
- const Ut = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
195
+ const tn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
196
196
  (e, r) => e += (r &= 63) < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r > 62 ? "-" : "_",
197
197
  ""
198
198
  );
199
- var X = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
200
- 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.Empty = "The dataset(s) provided are empty.", 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.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t))(X || {});
201
- const Yt = "[lume] ";
202
- function Q(t, e = !0) {
203
- e && nt() || console.warn(Yt + "Warning: " + t);
199
+ var Z = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
200
+ 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.Empty = "The dataset(s) provided are empty.", 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.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t))(Z || {});
201
+ const nn = "[lume] ";
202
+ function J(t, e = !0) {
203
+ e && it() || console.warn(nn + "Warning: " + t);
204
204
  }
205
- const fe = (t) => {
205
+ const _e = (t) => {
206
206
  let e = null;
207
207
  switch (typeof t) {
208
208
  case "string":
209
209
  try {
210
- e = Lt(t);
210
+ e = Nt(t);
211
211
  } catch {
212
- Q(X.InvalidFormat), e = null;
212
+ J(Z.InvalidFormat), e = null;
213
213
  }
214
214
  break;
215
215
  case "function":
@@ -222,29 +222,29 @@ const fe = (t) => {
222
222
  return e ? e(...n) : n[0];
223
223
  }
224
224
  return r;
225
- }, ie = () => ({
225
+ }, se = () => ({
226
226
  options: {
227
227
  type: Object,
228
228
  default: () => ({})
229
229
  }
230
230
  });
231
- function z(t, e) {
232
- return { allOptions: c(() => {
233
- const n = qe(e) ? e == null ? void 0 : e.value : e;
234
- return n ? at(n, t.value) : t.value;
231
+ function W(t, e) {
232
+ return { allOptions: d(() => {
233
+ const n = ot(e) ? e == null ? void 0 : e.value : e;
234
+ return n ? ct(n, t.value) : t.value;
235
235
  }) };
236
236
  }
237
- const Kt = 0.15;
238
- function Jt(t, e, r) {
239
- const n = $(), a = c(() => Math.max(...t.value.range())), o = c(() => e.value.length);
237
+ const rn = 0.15;
238
+ function an(t, e, r) {
239
+ const n = I(), a = d(() => Math.max(...t.value.range())), o = d(() => e.value.length);
240
240
  function l() {
241
241
  if (!e.value)
242
242
  return;
243
243
  const u = e.value.reduce(
244
- (d, v) => d + v.ref.getBoundingClientRect().width,
244
+ (c, v) => c + v.ref.getBoundingClientRect().width,
245
245
  0
246
246
  ), s = Math.ceil(u / o.value);
247
- n.value = s + s * Kt;
247
+ n.value = s + s * rn;
248
248
  }
249
249
  function i(u) {
250
250
  if (!e.value)
@@ -252,33 +252,20 @@ function Jt(t, e, r) {
252
252
  const s = e.value.length;
253
253
  if (u === 0)
254
254
  return !0;
255
- const d = a.value / s, v = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / d);
255
+ const c = a.value / s, v = typeof r == "number" && r > 0 && r + 1 || Math.ceil(n.value / c);
256
256
  return u % v === 0;
257
257
  }
258
- return D(e, l), { showTick: i };
258
+ return C(e, l), { showTick: i };
259
259
  }
260
- var M = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(M || {}), ot = /* @__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))(ot || {}), Ce = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Ce || {}), lt = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(lt || {}), De = /* @__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))(De || {});
261
- const L = {
260
+ var j = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(j || {}), dt = /* @__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))(dt || {}), Be = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Be || {}), vt = /* @__PURE__ */ ((t) => (t.Grey = "grey", t.Green = "green", t.Orange = "orange", t.Red = "red", t))(vt || {}), Fe = /* @__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))(Fe || {});
261
+ const O = {
262
262
  HORIZONTAL: "horizontal",
263
263
  VERTICAL: "vertical"
264
- }, Qt = {
264
+ }, on = {
265
265
  SINGLE: "single",
266
266
  GROUPED: "grouped",
267
267
  STACKED: "stacked"
268
- }, q = {
269
- VERTICAL: {
270
- top: 16,
271
- right: 0,
272
- bottom: 28,
273
- left: 24
274
- },
275
- HORIZONTAL: {
276
- top: 16,
277
- right: 0,
278
- bottom: 28,
279
- left: 24
280
- }
281
- }, ut = "No data", qt = 20, it = 0.33, st = 0.5, ct = 12, dt = 8, en = 1, tn = [
268
+ }, _t = "No data", ze = 20, ft = 0.33, pt = 0.5, mt = 12, ce = 8, ln = 1, un = [
282
269
  "auto",
283
270
  "auto-start",
284
271
  "auto-end",
@@ -295,10 +282,10 @@ const L = {
295
282
  "left-start",
296
283
  "left-end"
297
284
  ];
298
- function he(t) {
299
- t != null && t.closest("svg") || Q(X.NotContainedInSvg);
285
+ function me(t) {
286
+ t != null && t.closest("svg") || J(Z.NotContainedInSvg);
300
287
  }
301
- const vt = {
288
+ const ht = {
302
289
  /** Displays a line for each tick. */
303
290
  gridLines: !1,
304
291
  /** Displays the axis title. */
@@ -314,30 +301,30 @@ const vt = {
314
301
  tickFormat: null,
315
302
  /** Space between the tick label and the axis line. */
316
303
  tickPadding: 8
317
- }, nn = {
318
- ...vt,
304
+ }, sn = {
305
+ ...ht,
319
306
  withTitle: !1,
320
307
  skip: !0
321
- }, rn = {
322
- ...vt,
308
+ }, cn = {
309
+ ...ht,
323
310
  gridLines: !0
324
- }, an = function(t, e, r) {
325
- const n = c(() => t.value.step() * t.value.paddingInner() / 2);
311
+ }, dn = function(t, e, r) {
312
+ const n = d(() => t.value.step() * t.value.paddingInner() / 2);
326
313
  function a(u, s) {
327
314
  return {
328
315
  transform: `translate(${(t.value(s) ?? t.value(u)) - n.value}, 0)`
329
316
  };
330
317
  }
331
318
  function o(u) {
332
- var d;
319
+ var c;
333
320
  const s = Math.max(
334
321
  t.value.step(),
335
- (u ? (d = u.getComputedTextLength) == null ? void 0 : d.call(u) : t.value.step()) + 20
322
+ (u ? (c = u.getComputedTextLength) == null ? void 0 : c.call(u) : t.value.step()) + 20
336
323
  );
337
324
  return {
338
325
  x: -(s - t.value.step()) / 2,
339
326
  width: s,
340
- height: r.value.tickPadding + ct + dt
327
+ height: r.value.tickPadding + mt + ce
341
328
  };
342
329
  }
343
330
  function l() {
@@ -363,16 +350,16 @@ const vt = {
363
350
  getTickGroupAttributes: a,
364
351
  getTickLabelAttributes: i
365
352
  };
366
- }, on = function(t, e, r) {
367
- const n = c(() => t.value.step() * t.value.paddingInner() / 2);
353
+ }, vn = function(t, e, r) {
354
+ const n = d(() => t.value.step() * t.value.paddingInner() / 2);
368
355
  function a(u, s) {
369
356
  return {
370
357
  transform: `translate(0, ${(t.value(s) ?? t.value(u)) - n.value})`
371
358
  };
372
359
  }
373
360
  function o(u) {
374
- var d;
375
- const s = (u ? (d = u.getComputedTextLength) == null ? void 0 : d.call(u) : 42) + r.value.tickPadding * 2;
361
+ var c;
362
+ const s = (u ? (c = u.getComputedTextLength) == null ? void 0 : c.call(u) : 42) + r.value.tickPadding + ce;
376
363
  return {
377
364
  x: -s,
378
365
  width: s,
@@ -401,8 +388,8 @@ const vt = {
401
388
  getTickGroupAttributes: a,
402
389
  getTickLabelAttributes: i
403
390
  };
404
- }, ln = function(t, e, r) {
405
- const n = c(() => {
391
+ }, _n = function(t, e, r) {
392
+ const n = d(() => {
406
393
  const u = t.value.ticks();
407
394
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
408
395
  });
@@ -413,7 +400,7 @@ const vt = {
413
400
  }
414
401
  function o() {
415
402
  return {
416
- height: r.value.tickPadding + ct + dt,
403
+ height: r.value.tickPadding + mt + ce,
417
404
  width: n.value,
418
405
  x: -(n.value / 2)
419
406
  };
@@ -436,8 +423,8 @@ const vt = {
436
423
  getTickGroupAttributes: a,
437
424
  getTickLabelAttributes: i
438
425
  };
439
- }, un = function(t, e, r) {
440
- const n = c(() => {
426
+ }, fn = function(t, e, r) {
427
+ const n = d(() => {
441
428
  const u = t.value.ticks();
442
429
  return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
443
430
  });
@@ -447,8 +434,8 @@ const vt = {
447
434
  };
448
435
  }
449
436
  function o(u) {
450
- var d;
451
- const s = (((d = u == null ? void 0 : u.getComputedTextLength) == null ? void 0 : d.call(u)) || 0) + r.value.tickPadding * 2;
437
+ var c;
438
+ const s = (((c = u == null ? void 0 : u.getComputedTextLength) == null ? void 0 : c.call(u)) || 0) + r.value.tickPadding + ce;
452
439
  return {
453
440
  width: s,
454
441
  height: n.value,
@@ -474,14 +461,14 @@ const vt = {
474
461
  getTickGroupAttributes: a,
475
462
  getTickLabelAttributes: i
476
463
  };
477
- }, sn = {
478
- "x-band-scale-axis": an,
479
- "y-band-scale-axis": on,
480
- "x-linear-scale-axis": ln,
481
- "y-linear-scale-axis": un
464
+ }, pn = {
465
+ "x-band-scale-axis": dn,
466
+ "y-band-scale-axis": vn,
467
+ "x-linear-scale-axis": _n,
468
+ "y-linear-scale-axis": fn
482
469
  };
483
- var xe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(xe || {}), Oe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Oe || {}), _e = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(_e || {});
484
- const cn = /* @__PURE__ */ E({
470
+ var Oe = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Oe || {}), $e = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))($e || {}), ve = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(ve || {});
471
+ const mn = /* @__PURE__ */ E({
485
472
  __name: "lume-axis",
486
473
  props: {
487
474
  scale: {
@@ -491,12 +478,12 @@ const cn = /* @__PURE__ */ E({
491
478
  type: {
492
479
  type: String,
493
480
  default: void 0,
494
- validator: (t) => t in _e
481
+ validator: (t) => t in ve
495
482
  },
496
483
  position: {
497
484
  type: String,
498
485
  default: void 0,
499
- validator: (t) => t in Oe
486
+ validator: (t) => t in $e
500
487
  },
501
488
  containerSize: {
502
489
  type: Object,
@@ -508,72 +495,95 @@ const cn = /* @__PURE__ */ E({
508
495
  },
509
496
  orientation: {
510
497
  type: String,
511
- default: L.VERTICAL
498
+ default: O.VERTICAL
512
499
  },
513
- ...ie()
500
+ ...se()
514
501
  },
515
- emits: ["mouseenter", "click", "mouseleave"],
502
+ emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
516
503
  setup(t, { emit: e }) {
517
- const r = t, { scale: n, containerSize: a, hoveredIndex: o, options: l, orientation: i } = B(r), u = pe("isEmpty", $(!1)), s = me({}), d = $(null), v = $(null), f = $(null), h = c(
518
- () => r.type ? _e[r.type] : r.position
519
- ), _ = c(
520
- () => r.type || (h.value === "left" ? "y" : "x")
521
- ), m = c(
522
- () => _.value === "x" && i.value === L.VERTICAL || _.value === "y" && i.value === L.HORIZONTAL
523
- ), { allOptions: k } = z(
524
- l,
525
- _.value === "x" ? nn : rn
526
- ), { showTick: p } = Jt(n, d, k.value.skip), T = c(() => {
527
- var w, C, H, g;
528
- return _.value === "y" && u.value ? `translate(0, ${((w = a.value) == null ? void 0 : w.height) / 2})` : _.value === "x" && u.value ? `translate(-${((C = a.value) == null ? void 0 : C.width) / 2}, ${(H = a.value) == null ? void 0 : H.height})` : `translate(0, ${_.value === "x" ? (g = a.value) == null ? void 0 : g.height : 0})`;
529
- }), x = c(() => {
530
- if (te(n.value))
531
- return n.value.labels || n.value.domain();
532
- const { tickCount: w } = k.value, [C, H] = n.value.domain();
533
- return xt(C, H, w);
534
- }), A = c(() => {
535
- const { tickFormat: w } = k.value;
536
- return fe(w);
537
- }), y = c(
538
- () => k.value.withHover && m.value && o.value > -1
539
- );
540
- function N(w) {
541
- const { showTicks: C } = k.value;
542
- return C === !1 ? "" : A.value(w);
504
+ const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u } = H(r), s = fe("isEmpty", I(!1)), c = pe({}), v = I(null), f = I(null), y = I(null), m = d(
505
+ () => r.type ? ve[r.type] : r.position
506
+ ), g = d(
507
+ () => r.type || (m.value === "left" ? "y" : "x")
508
+ ), h = d(
509
+ () => g.value === "x" && u.value === O.VERTICAL || g.value === "y" && u.value === O.HORIZONTAL
510
+ ), { allOptions: p } = W(
511
+ i,
512
+ g.value === "x" ? sn : cn
513
+ ), { showTick: L } = an(a, v, p.value.skip), $ = d(() => {
514
+ var _, b, x, B;
515
+ return g.value === "y" && s.value ? `translate(0, ${((_ = o.value) == null ? void 0 : _.height) / 2})` : g.value === "x" && s.value ? `translate(-${((b = o.value) == null ? void 0 : b.width) / 2}, ${(x = o.value) == null ? void 0 : x.height})` : `translate(0, ${g.value === "x" ? (B = o.value) == null ? void 0 : B.height : 0})`;
516
+ }), T = d(() => {
517
+ if (q(a.value))
518
+ return a.value.labels || a.value.domain();
519
+ const { tickCount: _ } = p.value, [b, x] = a.value.domain();
520
+ return Ct(b, x, _);
521
+ }), k = d(() => {
522
+ const { tickFormat: _ } = p.value;
523
+ return _e(_);
524
+ }), N = d(
525
+ () => p.value.withHover && h.value && l.value > -1
526
+ ), D = d(
527
+ () => p.value.tickPadding + ce || n
528
+ ), R = d(() => g.value === "x" ? (
529
+ // If x axis, get the tick height
530
+ Math.max(
531
+ ...(v.value || []).map(
532
+ (_) => {
533
+ var b, x;
534
+ return ((x = (b = _.ref).getBBox) == null ? void 0 : x.call(b).height) + D.value;
535
+ }
536
+ )
537
+ )
538
+ ) : (
539
+ // If y axis, get the tick width
540
+ Math.max(
541
+ ...(v.value || []).map(
542
+ (_) => {
543
+ var b, x;
544
+ return ((x = (b = _.ref).getBBox) == null ? void 0 : x.call(b).width) + D.value;
545
+ }
546
+ )
547
+ )
548
+ ));
549
+ function S(_) {
550
+ const { showTicks: b } = p.value;
551
+ return b === !1 ? "" : k.value(_);
543
552
  }
544
- function R(w, C, H) {
545
- e("mouseenter", { index: m.value ? w : null, value: C, event: H });
553
+ function P(_, b, x) {
554
+ e("mouseenter", { index: h.value ? _ : null, value: b, event: x });
546
555
  }
547
- function P(w, C, H) {
548
- e("click", { index: w, value: C, event: H });
556
+ function te(_, b, x) {
557
+ e("click", { index: _, value: b, event: x });
549
558
  }
550
- function G(w) {
551
- if (!(!d.value || !d.value.length))
552
- return d.value[w].ref;
559
+ function ne(_) {
560
+ var b;
561
+ if (!(!v.value || !v.value.length))
562
+ return (b = v.value[_]) == null ? void 0 : b.ref;
553
563
  }
554
- function V() {
555
- f.value = x.value.map(
556
- (w, C) => ({
557
- value: N(w),
558
- group: s.getTickGroupAttributes(w, C),
559
- ghost: s.getTickGhostAttributes(G(C)),
560
- label: s.getTickLabelAttributes(),
561
- gridline: s.getGridLinesAttributes()
564
+ function G() {
565
+ y.value = T.value.map(
566
+ (_, b) => ({
567
+ value: S(_),
568
+ group: c.getTickGroupAttributes(_, b),
569
+ ghost: c.getTickGhostAttributes(ne(b)),
570
+ label: c.getTickLabelAttributes(),
571
+ gridline: c.getGridLinesAttributes()
562
572
  })
563
573
  );
564
574
  }
565
- function W() {
566
- const w = n.value.step ? "bandScale" : "linearScale", C = sn[`${_.value}-${xe[w]}`];
567
- Object.entries(C(n, a, k) || []).forEach(
568
- ([H, g]) => {
569
- s[H] = g;
575
+ function U() {
576
+ const _ = a.value.step ? "bandScale" : "linearScale", b = pn[`${g.value}-${Oe[_]}`];
577
+ Object.entries(b(a, o, p) || []).forEach(
578
+ ([x, B]) => {
579
+ c[x] = B;
570
580
  }
571
581
  );
572
582
  }
573
- return D(n, W, { flush: "sync", immediate: !0 }), D(n, V, { immediate: !0 }), D(d, V), U(() => he(v.value)), { __sfc: !0, SCALE_MIXIN_MAP: xe, POSITIONS: Oe, TYPES: _e, props: r, emit: e, scale: n, containerSize: a, hoveredIndex: o, options: l, orientation: i, isEmpty: u, mixins: s, tickRefs: d, root: v, ticksWithAttributes: f, computedPosition: h, computedType: _, shouldHover: m, allOptions: k, showTick: p, axisTransform: T, ticks: x, tickFormatter: A, isHovering: y, formatTick: N, handleTickMouseenter: R, handleTickClick: P, getTextNode: G, setTicks: V, init: W, LumeTick: Bt };
583
+ return C(a, U, { flush: "sync", immediate: !0 }), C(a, G, { immediate: !0 }), C(v, G), C(R, (_) => e("lume__internal--axis-size", _)), X(() => me(f.value)), { __sfc: !0, SCALE_MIXIN_MAP: Oe, POSITIONS: $e, TYPES: ve, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: s, mixins: c, tickRefs: v, root: f, ticksWithAttributes: y, computedPosition: m, computedType: g, shouldHover: h, allOptions: p, showTick: L, axisTransform: $, ticks: T, tickFormatter: k, isHovering: N, axisLabelOffset: D, axisSize: R, formatTick: S, handleTickMouseenter: P, handleTickClick: te, getTextNode: ne, setTicks: G, init: U, LumeTick: zt };
574
584
  }
575
585
  });
576
- var dn = function() {
586
+ var hn = function() {
577
587
  var e = this, r = e._self._c, n = e._self._setupProxy;
578
588
  return n.scale ? r("g", { ref: "root", staticClass: "axis", attrs: { transform: n.axisTransform, "data-j-axis": "" }, on: { mouseleave: function(a) {
579
589
  return n.emit("mouseleave", a);
@@ -590,36 +600,36 @@ var dn = function() {
590
600
  a
591
601
  );
592
602
  } } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
593
- }, vn = [], _n = /* @__PURE__ */ I(
594
- cn,
595
- dn,
596
- vn,
603
+ }, gn = [], yn = /* @__PURE__ */ w(
604
+ mn,
605
+ hn,
606
+ gn,
597
607
  !1,
598
608
  null,
599
609
  null,
600
610
  null,
601
611
  null
602
612
  );
603
- const fn = _n.exports;
604
- function pn(t, e, r, n) {
605
- const a = c(() => r.value > 0 && r.value < 1), o = c(
613
+ const bn = yn.exports;
614
+ function kn(t, e, r, n) {
615
+ const a = d(() => r.value > 0 && r.value < 1), o = d(
606
616
  () => n.value > 0 && n.value < 1
607
- ), l = c(
617
+ ), l = d(
608
618
  () => a.value ? t.value - 0.5 : t.value
609
619
  // draws the 1px bar closer to the axis
610
- ), i = c(
620
+ ), i = d(
611
621
  () => o.value ? e.value - 0.5 : e.value
612
622
  // draws the 1px bar closer to the axis
613
623
  );
614
624
  return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
615
625
  }
616
- function mn(t, e, r, n) {
617
- const a = $(0), o = $(0), l = c(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
618
- return U(() => {
626
+ function An(t, e, r, n) {
627
+ const a = I(0), o = I(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
628
+ return X(() => {
619
629
  a.value = r.value, o.value = n.value;
620
- }), D(r, (i) => a.value = i), D(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
630
+ }), C(r, (i) => a.value = i), C(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
621
631
  }
622
- const hn = /* @__PURE__ */ E({
632
+ const Tn = /* @__PURE__ */ E({
623
633
  __name: "lume-bar",
624
634
  props: {
625
635
  x: {
@@ -657,13 +667,13 @@ const hn = /* @__PURE__ */ E({
657
667
  },
658
668
  emits: ["click", "mouseover", "mouseleave"],
659
669
  setup(t, { emit: e }) {
660
- const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), s = $(null), d = c(
670
+ const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = H(r), s = I(null), c = d(
661
671
  () => typeof u.value == "string" ? [u.value] : u.value
662
- ), v = c(() => i.value === "width"), f = c(() => i.value === "height"), h = mn(n, a, o, l), { computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p } = pn(n, a, o, l), T = c(() => k.value ? 1 : (v.value ? h.computedWidth : o).value), x = c(() => p.value ? 1 : (f.value ? h.computedHeight : l).value), A = v.value || f.value ? h.transformOrigin : null;
663
- return U(() => he(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: d, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: h, computedX: _, computedY: m, shouldHaveMinWidth: k, shouldHaveMinHeight: p, computedWidth: T, computedHeight: x, transformOrigin: A };
672
+ ), v = d(() => i.value === "width"), f = d(() => i.value === "height"), y = An(n, a, o, l), { computedX: m, computedY: g, shouldHaveMinWidth: h, shouldHaveMinHeight: p } = kn(n, a, o, l), L = d(() => h.value ? 1 : (v.value ? y.computedWidth : o).value), $ = d(() => p.value ? 1 : (f.value ? y.computedHeight : l).value), T = v.value || f.value ? y.transformOrigin : null;
673
+ return X(() => me(s.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: s, computedClasses: c, shouldTransitionWidth: v, shouldTransitionHeight: f, transitionProps: y, computedX: m, computedY: g, shouldHaveMinWidth: h, shouldHaveMinHeight: p, computedWidth: L, computedHeight: $, transformOrigin: T };
664
674
  }
665
675
  });
666
- var gn = function() {
676
+ var xn = function() {
667
677
  var e = this, r = e._self._c, n = e._self._setupProxy;
668
678
  return r("rect", { ref: "root", staticClass: "lume-bar", class: [
669
679
  {
@@ -680,37 +690,37 @@ var gn = function() {
680
690
  }, mouseleave: function(a) {
681
691
  return n.emit("mouseleave", a);
682
692
  } } });
683
- }, yn = [], bn = /* @__PURE__ */ I(
684
- hn,
685
- gn,
686
- yn,
693
+ }, Ln = [], On = /* @__PURE__ */ w(
694
+ Tn,
695
+ xn,
696
+ Ln,
687
697
  !1,
688
698
  null,
689
699
  "8e8f732a",
690
700
  null,
691
701
  null
692
702
  );
693
- const Re = bn.exports;
694
- function kn() {
695
- const t = $(), e = me({
703
+ const Pe = On.exports;
704
+ function $n() {
705
+ const t = I(), e = pe({
696
706
  dimensions: {}
697
707
  }), r = new ResizeObserver((n) => {
698
708
  n.forEach((a) => {
699
709
  e.dimensions = a.contentRect;
700
710
  });
701
711
  });
702
- return U(() => {
712
+ return X(() => {
703
713
  r.observe(t.value);
704
- }), et(() => {
714
+ }), lt(() => {
705
715
  r.unobserve(t.value);
706
716
  }), { resizeState: e, resizeRef: t };
707
717
  }
708
- const An = /* @__PURE__ */ E({
718
+ const In = /* @__PURE__ */ E({
709
719
  __name: "lume-chart-container",
710
720
  props: {
711
721
  margins: {
712
722
  type: Object,
713
- default: () => ({})
723
+ required: !0
714
724
  },
715
725
  containerSize: {
716
726
  type: Object,
@@ -727,36 +737,26 @@ const An = /* @__PURE__ */ E({
727
737
  },
728
738
  emits: ["click", "mouseenter", "mouseleave", "resize"],
729
739
  setup(t, { emit: e }) {
730
- const r = t, n = {
731
- left: 0,
732
- right: 0,
733
- top: 0,
734
- bottom: 0
735
- }, { margins: a, containerSize: o } = B(r), l = $(null), { resizeRef: i, resizeState: u } = kn(), s = c(() => ({
736
- ...n,
737
- // Default values
738
- ...a.value
739
- // Prop overrides
740
- })), d = c(
741
- () => o.value.height + s.value.top + s.value.bottom
740
+ const r = t, { margins: n, containerSize: a } = H(r), o = I(null), { resizeRef: l, resizeState: i } = $n(), u = d(
741
+ () => a.value.height + n.value.top + n.value.bottom
742
742
  );
743
- return tt(() => {
744
- if (!l.value)
743
+ return ut(() => {
744
+ if (!o.value)
745
745
  return;
746
- const { width: v } = u.dimensions, { height: f } = l.value.getBoundingClientRect();
747
- if (!v || !f)
746
+ const { width: s } = i.dimensions, { height: c } = o.value.getBoundingClientRect();
747
+ if (!s || !c)
748
748
  return;
749
- const h = v - s.value.left - s.value.right, _ = f - s.value.top - s.value.bottom, m = {
750
- width: h > 0 ? h : 0,
751
- height: _ > 0 ? _ : 0,
752
- outerWidth: v,
753
- outerHeight: f
749
+ const v = s - n.value.left - n.value.right, f = c - n.value.top - n.value.bottom, y = {
750
+ width: v > 0 ? v : 0,
751
+ height: f > 0 ? f : 0,
752
+ outerWidth: s,
753
+ outerHeight: c
754
754
  };
755
- e("resize", m);
756
- }), { __sfc: !0, BASE_MARGINS: n, props: r, emit: e, margins: a, containerSize: o, root: l, resizeRef: i, resizeState: u, computedMargins: s, svgHeight: d };
755
+ e("resize", y);
756
+ }), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState: i, svgHeight: u };
757
757
  }
758
758
  });
759
- var Tn = function() {
759
+ var wn = function() {
760
760
  var e = this, r = e._self._c, n = e._self._setupProxy;
761
761
  return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
762
762
  "lume-chart-container--minimum": !e.noMinSize
@@ -768,33 +768,33 @@ var Tn = function() {
768
768
  return n.emit("mouseenter", a);
769
769
  }, mouseleave: function(a) {
770
770
  return n.emit("mouseleave", a);
771
- } } }, [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);
772
- }, Ln = [], xn = /* @__PURE__ */ I(
773
- An,
774
- Tn,
775
- Ln,
771
+ } } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
772
+ }, En = [], Nn = /* @__PURE__ */ w(
773
+ In,
774
+ wn,
775
+ En,
776
776
  !1,
777
777
  null,
778
- "d53fd184",
778
+ "36870bc4",
779
779
  null,
780
780
  null
781
781
  );
782
- const On = xn.exports, $n = /* @__PURE__ */ E({
782
+ const Cn = Nn.exports, Dn = /* @__PURE__ */ E({
783
783
  __name: "lume-chart-legend",
784
784
  props: {
785
785
  data: {
786
786
  type: Array,
787
- validator: Ft,
787
+ validator: Zt,
788
788
  required: !0
789
789
  }
790
790
  },
791
791
  emits: ["click", "mouseenter", "mouseleave"],
792
792
  setup(t, { emit: e }) {
793
- const r = pe("isEmpty");
793
+ const r = fe("isEmpty");
794
794
  return { __sfc: !0, emit: e, isEmpty: r };
795
795
  }
796
796
  });
797
- var In = function() {
797
+ var Hn = function() {
798
798
  var e = this, r = e._self._c, n = e._self._setupProxy;
799
799
  return n.isEmpty ? e._e() : r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" }, on: { mouseleave: function(a) {
800
800
  return n.emit("mouseleave");
@@ -805,47 +805,47 @@ var In = function() {
805
805
  return n.emit("mouseenter", { index: o, dataset: a, event: l });
806
806
  } } }, [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) + " ")]);
807
807
  }), 0);
808
- }, wn = [], En = /* @__PURE__ */ I(
809
- $n,
810
- In,
811
- wn,
808
+ }, Rn = [], Sn = /* @__PURE__ */ w(
809
+ Dn,
810
+ Hn,
811
+ Rn,
812
812
  !1,
813
813
  null,
814
814
  "4710298b",
815
815
  null,
816
816
  null
817
817
  );
818
- const Nn = En.exports;
819
- const Cn = {};
820
- var Dn = function() {
818
+ const Bn = Sn.exports;
819
+ const Fn = {};
820
+ var Pn = function() {
821
821
  var e = this, r = e._self._c;
822
822
  return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
823
- }, Rn = [], Hn = /* @__PURE__ */ I(
824
- Cn,
825
- Dn,
826
- Rn,
823
+ }, Gn = [], Vn = /* @__PURE__ */ w(
824
+ Fn,
825
+ Pn,
826
+ Gn,
827
827
  !1,
828
828
  null,
829
829
  "8af3fac6",
830
830
  null,
831
831
  null
832
832
  );
833
- const Sn = Hn.exports;
834
- const Bn = {};
835
- var Pn = function() {
833
+ const jn = Vn.exports;
834
+ const Mn = {};
835
+ var zn = function() {
836
836
  var e = this, r = e._self._c;
837
837
  return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
838
- }, Fn = [], Gn = /* @__PURE__ */ I(
839
- Bn,
840
- Pn,
841
- Fn,
838
+ }, Wn = [], Zn = /* @__PURE__ */ w(
839
+ Mn,
840
+ zn,
841
+ Wn,
842
842
  !1,
843
843
  null,
844
844
  "4ed7ec1b",
845
845
  null,
846
846
  null
847
847
  );
848
- const Vn = Gn.exports, jn = /* @__PURE__ */ E({
848
+ const Xn = Zn.exports, Un = /* @__PURE__ */ E({
849
849
  __name: "lume-tooltip-item",
850
850
  props: {
851
851
  color: {
@@ -857,20 +857,20 @@ const Vn = Gn.exports, jn = /* @__PURE__ */ E({
857
857
  return { __sfc: !0 };
858
858
  }
859
859
  });
860
- var Mn = function() {
860
+ var Yn = function() {
861
861
  var e = this, r = e._self._c;
862
862
  return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
863
- }, zn = [], Wn = /* @__PURE__ */ I(
864
- jn,
865
- Mn,
866
- zn,
863
+ }, Kn = [], Jn = /* @__PURE__ */ w(
864
+ Un,
865
+ Yn,
866
+ Kn,
867
867
  !1,
868
868
  null,
869
869
  "4f995c3c",
870
870
  null,
871
871
  null
872
872
  );
873
- const Zn = Wn.exports, Xn = /* @__PURE__ */ E({
873
+ const Qn = Jn.exports, qn = /* @__PURE__ */ E({
874
874
  __name: "lume-tooltip",
875
875
  props: {
876
876
  targetElement: {
@@ -884,7 +884,7 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ E({
884
884
  position: {
885
885
  type: String,
886
886
  default: "auto",
887
- validator: (t) => tn.includes(t)
887
+ validator: (t) => un.includes(t)
888
888
  },
889
889
  fixedPositioning: {
890
890
  type: Boolean,
@@ -902,15 +902,15 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ E({
902
902
  type: String,
903
903
  default: null
904
904
  },
905
- ...ie()
905
+ ...se()
906
906
  },
907
907
  emits: ["opened", "moved", "closed"],
908
908
  setup(t, { emit: e }) {
909
- const r = t, n = $(null), { items: a, options: o } = B(r), l = j(), i = $(null), { allOptions: u } = z(o), s = c(
909
+ const r = t, n = I(null), { items: a, options: o } = H(r), l = V(), i = I(null), { allOptions: u } = W(o), s = d(
910
910
  () => u.value.fixedPositioning ?? r.fixedPositioning
911
- ), d = c(
911
+ ), c = d(
912
912
  () => s.value ? "fixed" : "absolute"
913
- ), v = c(() => [
913
+ ), v = d(() => [
914
914
  {
915
915
  name: "computeStyles",
916
916
  options: {
@@ -923,40 +923,40 @@ const Zn = Wn.exports, Xn = /* @__PURE__ */ E({
923
923
  options: { offset: [0, u.value.offset || 8] }
924
924
  },
925
925
  ...r.modifiers || []
926
- ]), f = c(
926
+ ]), f = d(
927
927
  () => u.value.showTitle !== !1 && r.title != null
928
- ), h = c(() => fe(u.value.valueFormat)), _ = c(() => fe(u.value.titleFormat)), m = c(
928
+ ), y = d(() => _e(u.value.valueFormat)), m = d(() => _e(u.value.titleFormat)), g = d(
929
929
  () => {
930
- var A;
931
- return ((A = a.value) == null ? void 0 : A.find((y) => y.isSummary)) || {
930
+ var T;
931
+ return ((T = a.value) == null ? void 0 : T.find((k) => k.isSummary)) || {
932
932
  label: u.value.summary ?? r.summary
933
933
  };
934
934
  }
935
- ), k = c(() => l.summary || m.value.label);
935
+ ), h = d(() => l.summary || g.value.label);
936
936
  function p() {
937
- r.targetElement && n.value && (i.value = wt(r.targetElement, n.value, {
937
+ r.targetElement && n.value && (i.value = St(r.targetElement, n.value, {
938
938
  placement: r.position,
939
- strategy: d.value,
939
+ strategy: c.value,
940
940
  modifiers: v.value
941
941
  }), e("opened", r.targetElement));
942
942
  }
943
- function T() {
943
+ function L() {
944
944
  i.value && (i.value.destroy(), e("closed"));
945
945
  }
946
- function x() {
946
+ function $() {
947
947
  i.value && (n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
948
948
  i.value.state.elements.reference = r.targetElement, i.value.update(), e("moved", r.targetElement);
949
- }() : T());
949
+ }() : L());
950
950
  }
951
- return D(
951
+ return C(
952
952
  () => r.targetElement,
953
- (A, y) => {
954
- !y && A ? p() : x();
953
+ (T, k) => {
954
+ !k && T ? p() : $();
955
955
  }
956
- ), U(p), et(T), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: d, allModifiers: v, showTitle: f, formatValue: h, formatTitle: _, summaryItem: m, hasSummary: k, initPopper: p, destroyPopper: T, updatePopper: x, LumeTooltipTitle: Sn, LumeTooltipSummary: Vn, LumeTooltipItem: Zn };
956
+ ), X(p), lt(L), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: s, strategy: c, allModifiers: v, showTitle: f, formatValue: y, formatTitle: m, summaryItem: g, hasSummary: h, initPopper: p, destroyPopper: L, updatePopper: $, LumeTooltipTitle: jn, LumeTooltipSummary: Xn, LumeTooltipItem: Qn };
957
957
  }
958
958
  });
959
- var Un = function() {
959
+ var er = function() {
960
960
  var e = this, r = e._self._c, n = e._self._setupProxy;
961
961
  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() {
962
962
  return [e._t("title", function() {
@@ -975,66 +975,66 @@ var Un = function() {
975
975
  });
976
976
  })], 2)];
977
977
  })], 2);
978
- }, Yn = [], Kn = /* @__PURE__ */ I(
979
- Xn,
980
- Un,
981
- Yn,
978
+ }, tr = [], nr = /* @__PURE__ */ w(
979
+ qn,
980
+ er,
981
+ tr,
982
982
  !1,
983
983
  null,
984
984
  "57f370fa",
985
985
  null,
986
986
  null
987
987
  );
988
- const Jn = Kn.exports;
989
- var J = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(J || {});
990
- const Qn = J.Categorical, se = M.Skyblue, qn = Ce.SkyTeal;
991
- function er(t) {
992
- return t === J.Divergent ? qn : se;
993
- }
994
- function tr(t) {
995
- return Object.values(De).includes(t);
996
- }
997
- function Fe(t, e) {
998
- return e === J.Divergent ? Object.values(Ce).includes(t) : Object.values({
999
- ...M,
1000
- ...ot,
1001
- ...lt,
1002
- ...De
988
+ const rr = nr.exports;
989
+ var K = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(K || {});
990
+ const ar = K.Categorical, de = j.Skyblue, or = Be.SkyTeal;
991
+ function lr(t) {
992
+ return t === K.Divergent ? or : de;
993
+ }
994
+ function ur(t) {
995
+ return Object.values(Fe).includes(t);
996
+ }
997
+ function We(t, e) {
998
+ return e === K.Divergent ? Object.values(Be).includes(t) : Object.values({
999
+ ...j,
1000
+ ...dt,
1001
+ ...vt,
1002
+ ...Fe
1003
1003
  }).includes(t);
1004
1004
  }
1005
- function nr(t, e) {
1006
- const r = Object.values(M).indexOf(t);
1007
- return Zt(Object.values(M), r > -1 ? r : 0)[e];
1005
+ function ir(t, e) {
1006
+ const r = Object.values(j).indexOf(t);
1007
+ return qt(Object.values(j), r > -1 ? r : 0)[e];
1008
1008
  }
1009
- function rr(t, e) {
1009
+ function sr(t, e) {
1010
1010
  const r = 50 + e * 10;
1011
1011
  return `${t}-${r}`;
1012
1012
  }
1013
- function ar(t, e) {
1013
+ function cr(t, e) {
1014
1014
  const r = (e + 1) * 10;
1015
1015
  return `${t}-${r}`;
1016
1016
  }
1017
- function Ge(t, e, r) {
1017
+ function Ze(t, e, r) {
1018
1018
  switch (e) {
1019
1019
  default:
1020
- case J.Categorical:
1021
- return tr(t) ? t : nr(t, r);
1022
- case J.Sequential:
1023
- return rr(t, r);
1024
- case J.Divergent:
1025
- return ar(t, r);
1020
+ case K.Categorical:
1021
+ return ur(t) ? t : ir(t, r);
1022
+ case K.Sequential:
1023
+ return sr(t, r);
1024
+ case K.Divergent:
1025
+ return cr(t, r);
1026
1026
  }
1027
1027
  }
1028
- function or(t, e, r = Qn, n) {
1029
- return Fe(t, r) ? t : (n > 4 && (Q(X.ColorLoop), n = n % 5), Fe(e, r) ? Ge(e, r, n) : Ge(er(r), r, n));
1028
+ function dr(t, e, r = ar, n) {
1029
+ return We(t, r) ? t : (n > 4 && (J(Z.ColorLoop), n = n % 5), We(e, r) ? Ze(e, r, n) : Ze(lr(r), r, n));
1030
1030
  }
1031
- function lr(t) {
1032
- return t.map((e) => Gt(e) ? e : { value: e });
1031
+ function vr(t) {
1032
+ return t.map((e) => Xt(e) ? e : { value: e });
1033
1033
  }
1034
- function ur(t) {
1034
+ function _r(t) {
1035
1035
  return t.__internal === !0;
1036
1036
  }
1037
- const He = (t = null) => ({
1037
+ const Ge = (t = null) => ({
1038
1038
  data: {
1039
1039
  type: Array,
1040
1040
  required: !0,
@@ -1046,24 +1046,24 @@ const He = (t = null) => ({
1046
1046
  },
1047
1047
  color: {
1048
1048
  type: String,
1049
- default: M.Skyblue
1049
+ default: j.Skyblue
1050
1050
  },
1051
1051
  title: {
1052
1052
  type: String,
1053
1053
  default: null
1054
1054
  }
1055
1055
  });
1056
- function Se(t, e, r, n, a) {
1057
- const o = me({
1056
+ function Ve(t, e, r, n, a) {
1057
+ const o = pe({
1058
1058
  width: 0,
1059
1059
  height: 0
1060
- }), l = Ut(12), i = c(() => {
1061
- var d;
1062
- return t.value.length > 5 && Q(X.DatasetLength), (d = t.value) == null ? void 0 : d.map(
1060
+ }), l = tn(12), i = d(() => {
1061
+ var c;
1062
+ return t.value.length > 5 && J(Z.DatasetLength), (c = t.value) == null ? void 0 : c.map(
1063
1063
  (v, f) => {
1064
- if (ur(v))
1064
+ if (_r(v))
1065
1065
  return v;
1066
- const h = lr(v.values), _ = or(
1066
+ const y = vr(v.values), m = dr(
1067
1067
  v.color,
1068
1068
  r == null ? void 0 : r.value,
1069
1069
  n == null ? void 0 : n.value.colorPalette,
@@ -1071,16 +1071,16 @@ function Se(t, e, r, n, a) {
1071
1071
  );
1072
1072
  return {
1073
1073
  ...v,
1074
- values: h,
1075
- color: _,
1074
+ values: y,
1075
+ color: m,
1076
1076
  __internal: !0
1077
1077
  };
1078
1078
  }
1079
1079
  );
1080
- }), u = c(() => Array.isArray(e.value) ? e.value : Le(t.value).map((d, v) => v));
1081
- function s(d) {
1082
- const v = (a == null ? void 0 : a.value) === L.HORIZONTAL && Le(t).length * (qt * 2) || d.height;
1083
- o.width = d.width, o.height = v;
1080
+ }), u = d(() => Array.isArray(e.value) ? e.value : Le(t.value).map((c, v) => v));
1081
+ function s(c) {
1082
+ const v = (a == null ? void 0 : a.value) === O.HORIZONTAL && Le(t).length * (((n == null ? void 0 : n.value.barHeight) || ze) * 2) + ((n == null ? void 0 : n.value.barHeight) || ze) || c.height;
1083
+ o.width = c.width, o.height = v;
1084
1084
  }
1085
1085
  return {
1086
1086
  chartID: l,
@@ -1090,7 +1090,7 @@ function Se(t, e, r, n, a) {
1090
1090
  updateSize: s
1091
1091
  };
1092
1092
  }
1093
- const ir = () => ({
1093
+ const fr = () => ({
1094
1094
  xScale: {
1095
1095
  type: Function,
1096
1096
  default: null
@@ -1100,69 +1100,69 @@ const ir = () => ({
1100
1100
  default: null
1101
1101
  }
1102
1102
  });
1103
- function sr(t, e, r, n, a) {
1104
- const o = $(null), l = $(null);
1103
+ function pr(t, e, r, n, a) {
1104
+ const o = I(null), l = I(null);
1105
1105
  function i() {
1106
1106
  const { width: u, height: s } = r;
1107
- !u && !s || !e.value || !t.value || (n.value === L.HORIZONTAL ? (o.value = je(
1107
+ !u && !s || !e.value || !t.value || (n.value === O.HORIZONTAL ? (o.value = Ue(
1108
1108
  t.value,
1109
1109
  u,
1110
1110
  n.value,
1111
1111
  a.value.startOnZero
1112
- ), l.value = Ve(
1112
+ ), l.value = Xe(
1113
1113
  e.value,
1114
1114
  s,
1115
1115
  n.value,
1116
1116
  a.value
1117
- )) : (o.value = Ve(
1117
+ )) : (o.value = Xe(
1118
1118
  e.value,
1119
1119
  u,
1120
1120
  n.value,
1121
1121
  a.value
1122
- ), l.value = je(
1122
+ ), l.value = Ue(
1123
1123
  t.value,
1124
1124
  s,
1125
1125
  n.value,
1126
1126
  a.value.startOnZero
1127
1127
  )));
1128
1128
  }
1129
- return tt(i), { xScale: o, yScale: l };
1129
+ return ut(i), { xScale: o, yScale: l };
1130
1130
  }
1131
- function Ve(t, e, r, n) {
1132
- const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === L.HORIZONTAL ? st : it);
1131
+ function Xe(t, e, r, n) {
1132
+ const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? pt : ft);
1133
1133
  return Object.assign(
1134
- le().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((s, d) => d)),
1134
+ ue().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((s, c) => c)),
1135
1135
  { labels: t }
1136
1136
  );
1137
1137
  }
1138
- function je(t, e, r, n) {
1139
- const a = rt(t).filter((d) => d != null), o = [0, e];
1138
+ function Ue(t, e, r, n) {
1139
+ const a = st(t).filter((c) => c != null), o = [0, e];
1140
1140
  if (a.length === 0)
1141
- return ue().range(o).domain([0, 0]).nice();
1142
- const l = Math.min(...a), i = n && l > 0 ? 0 : l, u = Math.max(...a), s = r === L.HORIZONTAL ? [i, u] : [u, i];
1143
- return ue().range(o).domain(s).nice();
1141
+ return ie().range(o).domain([0, 0]).nice();
1142
+ const l = Math.min(...a), i = n && l > 0 ? 0 : l, u = Math.max(...a), s = r === O.HORIZONTAL ? [i, u] : [u, i];
1143
+ return ie().range(o).domain(s).nice();
1144
1144
  }
1145
- function Me(t) {
1145
+ function Ye(t) {
1146
1146
  return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
1147
1147
  }
1148
- function $e(t, e) {
1149
- return te(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1148
+ function Ie(t, e) {
1149
+ return q(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
1150
1150
  }
1151
- function ze(t, e, {
1151
+ function Ke(t, e, {
1152
1152
  padding: r,
1153
1153
  paddingInner: n,
1154
1154
  paddingOuter: a
1155
1155
  } = {}) {
1156
- const o = r ?? (e === L.HORIZONTAL ? st : it);
1157
- return t.copy().paddingInner(n ?? o).paddingOuter(a ?? o / 2);
1156
+ const o = r ?? (e === O.HORIZONTAL ? pt : ft);
1157
+ return t.copy().paddingInner(n ?? o).paddingOuter(a ?? o);
1158
1158
  }
1159
- function _t(t) {
1160
- return Object.values(L).includes(t);
1159
+ function gt(t) {
1160
+ return Object.values(O).includes(t);
1161
1161
  }
1162
1162
  const ae = (t, e = !0) => ({
1163
- ...He(t),
1164
- ...ir(),
1165
- ...ie(),
1163
+ ...Ge(t),
1164
+ ...fr(),
1165
+ ...se(),
1166
1166
  classList: {
1167
1167
  type: [String, Array],
1168
1168
  default: () => []
@@ -1174,18 +1174,18 @@ const ae = (t, e = !0) => ({
1174
1174
  ...e ? {
1175
1175
  orientation: {
1176
1176
  type: String,
1177
- default: L.VERTICAL,
1178
- validator: _t
1177
+ default: O.VERTICAL,
1178
+ validator: gt
1179
1179
  }
1180
1180
  } : {}
1181
- }), cr = (t) => ({
1182
- ...He(t),
1183
- ...ie(),
1181
+ }), mr = (t) => ({
1182
+ ...Ge(t),
1183
+ ...se(),
1184
1184
  hoveredElement: {
1185
1185
  type: [Number, String],
1186
1186
  default: null
1187
1187
  }
1188
- }), ge = () => ({
1188
+ }), he = () => ({
1189
1189
  data: {
1190
1190
  type: Array,
1191
1191
  required: !0
@@ -1200,8 +1200,8 @@ const ae = (t, e = !0) => ({
1200
1200
  },
1201
1201
  orientation: {
1202
1202
  type: String,
1203
- default: L.VERTICAL,
1204
- validator: _t
1203
+ default: O.VERTICAL,
1204
+ validator: gt
1205
1205
  },
1206
1206
  xScale: {
1207
1207
  type: Function,
@@ -1227,35 +1227,35 @@ const ae = (t, e = !0) => ({
1227
1227
  type: [String, Array],
1228
1228
  default: () => []
1229
1229
  }
1230
- }), dr = /* @__PURE__ */ E({
1230
+ }), hr = /* @__PURE__ */ E({
1231
1231
  __name: "lume-overlay-group",
1232
1232
  props: {
1233
- ...ge(),
1233
+ ...he(),
1234
1234
  orientation: {
1235
1235
  type: String,
1236
- default: L.VERTICAL
1236
+ default: O.VERTICAL
1237
1237
  }
1238
1238
  },
1239
1239
  emits: ["click", "lume__internal--hover", "mouseover"],
1240
1240
  setup(t, { emit: e }) {
1241
- const r = t, { data: n, orientation: a, xScale: o, yScale: l } = B(r), i = c(() => Le(n));
1241
+ const r = t, { data: n, orientation: a, xScale: o, yScale: l } = H(r), i = d(() => Le(n));
1242
1242
  function u(s) {
1243
- var k;
1244
- const d = a.value === L.HORIZONTAL ? l.value : o.value, v = d.domain(), f = Vt(d), h = ((k = d.paddingInner) == null ? void 0 : k.call(d)) ?? 0, _ = f * h, m = te(d) ? d(v[s]) - _ / 2 : d(s) - f / 2;
1245
- return a.value === L.HORIZONTAL ? {
1243
+ var h;
1244
+ const c = a.value === O.HORIZONTAL ? l.value : o.value, v = c.domain(), f = Ut(c), y = ((h = c.paddingInner) == null ? void 0 : h.call(c)) ?? 0, m = f * y, g = q(c) ? c(v[s]) - m / 2 : c(s) - f / 2;
1245
+ return a.value === O.HORIZONTAL ? {
1246
1246
  width: Math.max(...o.value.range()),
1247
1247
  height: f,
1248
- transform: `translate(0, ${m})`
1248
+ transform: `translate(0, ${g})`
1249
1249
  } : {
1250
1250
  width: f,
1251
1251
  height: Math.max(...l.value.range()),
1252
- transform: `translate(${m}, 0)`
1252
+ transform: `translate(${g}, 0)`
1253
1253
  };
1254
1254
  }
1255
- return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Re };
1255
+ return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Pe };
1256
1256
  }
1257
1257
  });
1258
- var vr = function() {
1258
+ var gr = function() {
1259
1259
  var e = this, r = e._self._c, n = e._self._setupProxy;
1260
1260
  return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(a, o) {
1261
1261
  return r(n.LumeBar, e._b({ key: `overlay-${o}`, attrs: { "data-j-lume-overlay-group": o, transition: !1, "class-list": "lume-fill--transparent" }, on: { mouseover: function(l) {
@@ -1264,74 +1264,74 @@ var vr = function() {
1264
1264
  return n.emit("click", { index: o, event: l });
1265
1265
  } } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
1266
1266
  }), 1);
1267
- }, _r = [], fr = /* @__PURE__ */ I(
1268
- dr,
1269
- vr,
1270
- _r,
1267
+ }, yr = [], br = /* @__PURE__ */ w(
1268
+ hr,
1269
+ gr,
1270
+ yr,
1271
1271
  !1,
1272
1272
  null,
1273
1273
  null,
1274
1274
  null,
1275
1275
  null
1276
1276
  );
1277
- const pr = fr.exports;
1278
- function mr(t) {
1279
- return { hasNegativeValues: c(
1280
- () => rt(t.value).some((r) => r < 0)
1277
+ const kr = br.exports;
1278
+ function Ar(t) {
1279
+ return { hasNegativeValues: d(
1280
+ () => st(t.value).some((r) => r < 0)
1281
1281
  ) };
1282
1282
  }
1283
- function hr(t, e, r, n) {
1284
- const a = c(
1285
- () => n.value === L.HORIZONTAL
1286
- ), o = c(
1283
+ function Tr(t, e, r, n) {
1284
+ const a = d(
1285
+ () => n.value === O.HORIZONTAL
1286
+ ), o = d(
1287
1287
  () => {
1288
1288
  var s;
1289
1289
  return t.height - (a != null && a.value ? 0 : ((s = r.value) == null ? void 0 : s.call(r, 0)) || 0);
1290
1290
  }
1291
- ), l = c(
1291
+ ), l = d(
1292
1292
  () => {
1293
1293
  var s;
1294
1294
  return a != null && a.value ? ((s = e.value) == null ? void 0 : s.call(e, 0)) || 0 : t.width;
1295
1295
  }
1296
- ), i = c(
1296
+ ), i = d(
1297
1297
  () => {
1298
1298
  var s;
1299
1299
  return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = r.value) == null ? void 0 : s.call(r, 0)) || 0})`;
1300
1300
  }
1301
1301
  );
1302
- return { negativeBarAttributes: c(() => ({
1302
+ return { negativeBarAttributes: d(() => ({
1303
1303
  width: l.value,
1304
1304
  height: o.value,
1305
1305
  transform: i.value
1306
1306
  })) };
1307
1307
  }
1308
- function gr(t) {
1308
+ function xr(t) {
1309
1309
  return t.reduce((e, r) => r.values.map((n, a) => e[a] ? n.value > e[a] ? n.value : e[a] : n.value ?? 0), []);
1310
1310
  }
1311
- function yr(t) {
1311
+ function Lr(t) {
1312
1312
  return t.reduce((e, r) => r.values.map((n, a) => {
1313
1313
  const o = n.value == null || n.value < 0 ? 0 : n.value;
1314
1314
  return e[a] ? e[a] + o : o;
1315
1315
  }), []);
1316
1316
  }
1317
- const We = {
1318
- "stacked-bar": yr
1317
+ const Je = {
1318
+ "stacked-bar": Lr
1319
1319
  };
1320
- function ft(t, e, r, n, a, o, l) {
1321
- const i = c(
1320
+ function yt(t, e, r, n, a, o, l) {
1321
+ const i = d(
1322
1322
  () => {
1323
1323
  var s;
1324
1324
  return e.value.withTooltip !== !1 && !((s = e.value.tooltipOptions) != null && s.targetElement);
1325
1325
  }
1326
1326
  );
1327
1327
  function u(s) {
1328
- const d = l != null && l.value && We[l.value] ? We[l.value](s) : gr(s);
1329
- t.value = d.map((v, f) => ({
1330
- cx: (a == null ? void 0 : a.value) === L.HORIZONTAL ? r.value(v) : $e(r.value, f),
1331
- cy: (a == null ? void 0 : a.value) === L.HORIZONTAL ? $e(n.value, f) : n.value(v)
1328
+ const c = l != null && l.value && Je[l.value] ? Je[l.value](s) : xr(s);
1329
+ t.value = c.map((v, f) => ({
1330
+ cx: (a == null ? void 0 : a.value) === O.HORIZONTAL ? r.value(v) : Ie(r.value, f),
1331
+ cy: (a == null ? void 0 : a.value) === O.HORIZONTAL ? Ie(n.value, f) : n.value(v)
1332
1332
  }));
1333
1333
  }
1334
- return D(
1334
+ return C(
1335
1335
  [r, n],
1336
1336
  () => {
1337
1337
  r.value && n.value && (o != null && o.value) && i.value && u(o.value);
@@ -1339,8 +1339,8 @@ function ft(t, e, r, n, a, o, l) {
1339
1339
  { immediate: !0 }
1340
1340
  ), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes: u };
1341
1341
  }
1342
- function br() {
1343
- const t = me({
1342
+ function Or() {
1343
+ const t = pe({
1344
1344
  opened: !1,
1345
1345
  targetElement: null
1346
1346
  });
@@ -1350,19 +1350,45 @@ function br() {
1350
1350
  t.opened = !1, t.targetElement = null;
1351
1351
  } };
1352
1352
  }
1353
- function kr(t) {
1354
- return { getTooltipItems: c(
1353
+ function $r(t) {
1354
+ return { getTooltipItems: d(
1355
1355
  () => (r) => t.value.map(({ color: n, label: a, values: o }) => {
1356
1356
  var l, i, u;
1357
1357
  return {
1358
1358
  color: ((l = o[r]) == null ? void 0 : l.color) || n,
1359
1359
  label: a,
1360
- value: ((i = o[r]) == null ? void 0 : i.label) ?? ((u = o[r]) == null ? void 0 : u.value) ?? ut
1360
+ value: ((i = o[r]) == null ? void 0 : i.label) ?? ((u = o[r]) == null ? void 0 : u.value) ?? _t
1361
1361
  };
1362
1362
  })
1363
1363
  ) };
1364
1364
  }
1365
- const Ar = /* @__PURE__ */ E({
1365
+ const we = 16, Ee = 8, Ne = 28, Ce = 24, Q = {
1366
+ VERTICAL: {
1367
+ top: we,
1368
+ right: Ee,
1369
+ bottom: Ne,
1370
+ left: Ce
1371
+ },
1372
+ HORIZONTAL: {
1373
+ top: we,
1374
+ right: Ee,
1375
+ bottom: Ne,
1376
+ left: Ce
1377
+ }
1378
+ };
1379
+ function Ir(t) {
1380
+ return !t || t === "auto" || t.top == null || t.top === "auto" ? we : t.top;
1381
+ }
1382
+ function wr(t) {
1383
+ return !t || t === "auto" || t.right == null || t.right === "auto" ? Ee : t.right;
1384
+ }
1385
+ function Er(t, e) {
1386
+ return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Ne : t.bottom;
1387
+ }
1388
+ function Nr(t, e) {
1389
+ return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Ce : t.left;
1390
+ }
1391
+ const Cr = /* @__PURE__ */ E({
1366
1392
  __name: "lume-chart",
1367
1393
  props: {
1368
1394
  ...ae(),
@@ -1372,105 +1398,110 @@ const Ar = /* @__PURE__ */ E({
1372
1398
  }
1373
1399
  },
1374
1400
  setup(t, { emit: e }) {
1375
- const r = t, n = j(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = B(r), d = $(-1), v = $(null), f = $(null), h = $([]), { allOptions: _ } = z(i), { internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: x } = Se(a, o, l, _, u), { xScale: A, yScale: y } = sr(
1376
- m,
1377
- k,
1401
+ const r = t, n = V(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: s } = H(r), c = I(-1), v = I(null), f = I(null), y = I([]), m = I(0), g = I(0), { allOptions: h } = W(i), { internalData: p, computedLabels: L, containerSize: $, updateSize: T, chartID: k } = Ve(a, o, l, h, u), { xScale: N, yScale: D } = pr(
1378
1402
  p,
1403
+ L,
1404
+ $,
1379
1405
  u,
1380
- _
1381
- ), N = c(() => {
1382
- var b;
1383
- return r.xScale ? Me(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, m.value, o.value, p) : A.value;
1384
- }), R = c(() => {
1385
- var b;
1386
- return r.yScale ? Me(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, m.value, o.value, p) : y.value;
1387
- }), P = c(() => ({
1388
- ..._.value.xAxisOptions,
1389
- withHover: u.value === L.VERTICAL
1390
- })), G = c(() => ({
1391
- ..._.value.yAxisOptions,
1392
- withHover: u.value === L.HORIZONTAL
1393
- })), V = c(() => {
1394
- var b;
1395
- return (b = _.value.xAxisOptions) == null ? void 0 : b.title;
1396
- }), W = c(() => {
1397
- var b;
1398
- return (b = _.value.yAxisOptions) == null ? void 0 : b.title;
1399
- }), w = c(() => {
1400
- var b;
1401
- return ((b = _.value.xAxisOptions) == null ? void 0 : b.withTitle) !== !1 && V.value;
1402
- }), C = c(() => {
1403
- var b;
1404
- return ((b = _.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && W.value;
1405
- }), H = c(
1406
- () => a.value.every((b) => !b.values.length)
1407
- ), g = c(() => {
1408
- const b = [], { noBaseScales: F } = _.value;
1409
- return F || b.push(() => !!(N.value && R.value)), b.every((K) => K() === !0);
1410
- }), { hasNegativeValues: O } = mr(m), { negativeBarAttributes: S } = hr(
1411
- p,
1412
- N,
1413
- R,
1406
+ h
1407
+ ), R = d(() => ({
1408
+ top: Ir(h.value.margins),
1409
+ right: wr(h.value.margins),
1410
+ bottom: Er(h.value.margins, m.value),
1411
+ left: Nr(h.value.margins, g.value)
1412
+ })), S = d(() => {
1413
+ var A;
1414
+ return r.xScale ? Ye(r.xScale) ? r.xScale : (A = r.xScale) == null ? void 0 : A.call(r, p.value, o.value, $) : N.value;
1415
+ }), P = d(() => {
1416
+ var A;
1417
+ return r.yScale ? Ye(r.yScale) ? r.yScale : (A = r.yScale) == null ? void 0 : A.call(r, p.value, o.value, $) : D.value;
1418
+ }), te = d(() => ({
1419
+ ...h.value.xAxisOptions,
1420
+ withHover: u.value === O.VERTICAL
1421
+ })), ne = d(() => ({
1422
+ ...h.value.yAxisOptions,
1423
+ withHover: u.value === O.HORIZONTAL
1424
+ })), G = d(() => {
1425
+ var A;
1426
+ return (A = h.value.xAxisOptions) == null ? void 0 : A.title;
1427
+ }), U = d(() => {
1428
+ var A;
1429
+ return (A = h.value.yAxisOptions) == null ? void 0 : A.title;
1430
+ }), _ = d(() => {
1431
+ var A;
1432
+ return ((A = h.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && G.value;
1433
+ }), b = d(() => {
1434
+ var A;
1435
+ return ((A = h.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && U.value;
1436
+ }), x = d(
1437
+ () => a.value.every((A) => !A.values.length)
1438
+ ), B = d(() => {
1439
+ const A = [], { noBaseScales: F } = h.value;
1440
+ return F || A.push(() => !!(S.value && P.value)), A.every((Y) => Y() === !0);
1441
+ }), { hasNegativeValues: M } = Ar(p), { negativeBarAttributes: z } = Tr(
1442
+ $,
1443
+ S,
1444
+ P,
1414
1445
  u
1415
- ), { shouldGenerateTooltipAnchors: ce } = ft(
1446
+ ), { shouldGenerateTooltipAnchors: ge } = yt(
1447
+ y,
1416
1448
  h,
1417
- _,
1418
- N,
1419
- R,
1449
+ S,
1450
+ P,
1420
1451
  u,
1421
- m,
1452
+ p,
1422
1453
  s
1423
- ), { tooltipConfig: Y, showTooltip: Z, hideTooltip: de } = br(), { getTooltipItems: Pe } = kr(m), ve = c(
1424
- () => _.value.withTooltip !== !1 && Y.opened
1425
- ), bt = c(
1454
+ ), { tooltipConfig: ye, showTooltip: le, hideTooltip: Me } = Or(), { getTooltipItems: Lt } = $r(p), Ot = d(
1455
+ () => h.value.withTooltip !== !1 && ye.opened
1456
+ ), $t = d(
1426
1457
  () => {
1427
- var b;
1428
- return ((b = _.value.tooltipOptions) == null ? void 0 : b.position) || "top";
1458
+ var A;
1459
+ return ((A = h.value.tooltipOptions) == null ? void 0 : A.position) || "top";
1429
1460
  }
1430
1461
  );
1431
- function ye(b) {
1462
+ function be(A) {
1432
1463
  var F;
1433
- if (b !== d.value && (_.value.withHover !== !1 && (d.value = b), _.value.withTooltip !== !1)) {
1434
- const K = (F = _.value.tooltipOptions) != null && F.targetElement ? _.value.tooltipOptions.targetElement === "self" ? f.value.$el : _.value.tooltipOptions.targetElement : v.value[b];
1435
- Z(K);
1464
+ if (A !== c.value && (h.value.withHover !== !1 && (c.value = A), h.value.withTooltip !== !1)) {
1465
+ const Y = (F = h.value.tooltipOptions) != null && F.targetElement ? h.value.tooltipOptions.targetElement === "self" ? f.value.$el : h.value.tooltipOptions.targetElement : v.value[A];
1466
+ le(Y);
1436
1467
  }
1437
1468
  }
1438
- function be(b) {
1439
- if (b > a.value[0].values.length - 1) {
1440
- Q(X.InvalidHoveredIndex);
1469
+ function ke(A) {
1470
+ if (A > a.value[0].values.length - 1) {
1471
+ J(Z.InvalidHoveredIndex);
1441
1472
  return;
1442
1473
  }
1443
- ye(b);
1474
+ be(A);
1444
1475
  }
1445
- function kt() {
1446
- de(), d.value = -1, e("chart-mouseleave");
1476
+ function It() {
1477
+ Me(), c.value = -1, e("chart-mouseleave");
1447
1478
  }
1448
- function At({ index: b, value: F, event: K }) {
1449
- b !== null && ye(b), e("axis-mouseenter", { index: b, value: F, event: K });
1479
+ function wt({ index: A, value: F, event: Y }) {
1480
+ A !== null && be(A), e("axis-mouseenter", { index: A, value: F, event: Y });
1450
1481
  }
1451
- function Tt({ index: b, value: F, event: K }) {
1452
- e("axis-click", { index: b, value: F, event: K });
1482
+ function Et({ index: A, value: F, event: Y }) {
1483
+ e("axis-click", { index: A, value: F, event: Y });
1453
1484
  }
1454
- return D(
1485
+ return C(
1455
1486
  a,
1456
- (b, F) => e("data-changed", { newValue: b, oldValue: F })
1457
- ), D(
1487
+ (A, F) => e("data-changed", { newValue: A, oldValue: F })
1488
+ ), C(
1458
1489
  o,
1459
- (b, F) => e("labels-changed", { newValue: b, oldValue: F })
1460
- ), D(H, (b) => b && Q(X.Empty), { immediate: !0 }), D(() => r.hoveredIndex, be), D(
1461
- h,
1462
- (b) => {
1463
- b && r.hoveredIndex != null && d.value === -1 && be(r.hoveredIndex);
1490
+ (A, F) => e("labels-changed", { newValue: A, oldValue: F })
1491
+ ), C(x, (A) => A && J(Z.Empty), { immediate: !0 }), C(() => r.hoveredIndex, ke), C(
1492
+ y,
1493
+ (A) => {
1494
+ A && r.hoveredIndex != null && c.value === -1 && ke(r.hoveredIndex);
1464
1495
  },
1465
1496
  { flush: "post" }
1466
- ), U(() => {
1497
+ ), X(() => {
1467
1498
  e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.');
1468
- }), ke("chartID", x), ke("isEmpty", H), ke("tooltipAnchorAttributes", h), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: d, tooltipAnchor: v, chartContainer: f, tooltipAnchorAttributes: h, allOptions: _, internalData: m, computedLabels: k, containerSize: p, updateSize: T, chartID: x, xScale: A, yScale: y, computedXScale: N, computedYScale: R, computedXAxisOptions: P, computedYAxisOptions: G, xAxisTitle: V, yAxisTitle: W, showXAxisTitle: w, showYAxisTitle: C, isEmpty: H, isReady: g, hasNegativeValues: O, negativeBarAttributes: S, shouldGenerateTooltipAnchors: ce, tooltipConfig: Y, showTooltip: Z, hideTooltip: de, getTooltipItems: Pe, isTooltipOpened: ve, tooltipPosition: bt, handleInternalHover: ye, handleExternalHover: be, handleMouseleave: kt, handleAxisMouseenter: At, handleAxisClick: Tt, LumeAxis: fn, LumeBar: Re, LumeChartContainer: On, LumeChartLegend: Nn, LumeTooltip: Jn, LumeOverlayGroup: pr, TOOLTIP_ANCHOR_RADIUS: en };
1499
+ }), Ae("chartID", k), Ae("isEmpty", x), Ae("tooltipAnchorAttributes", y), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: s, internalHoveredIndex: c, tooltipAnchor: v, chartContainer: f, tooltipAnchorAttributes: y, xAxisHeight: m, yAxisWidth: g, allOptions: h, internalData: p, computedLabels: L, containerSize: $, updateSize: T, chartID: k, xScale: N, yScale: D, computedMargins: R, computedXScale: S, computedYScale: P, computedXAxisOptions: te, computedYAxisOptions: ne, xAxisTitle: G, yAxisTitle: U, showXAxisTitle: _, showYAxisTitle: b, isEmpty: x, isReady: B, hasNegativeValues: M, negativeBarAttributes: z, shouldGenerateTooltipAnchors: ge, tooltipConfig: ye, showTooltip: le, hideTooltip: Me, getTooltipItems: Lt, isTooltipOpened: Ot, tooltipPosition: $t, handleInternalHover: be, handleExternalHover: ke, handleMouseleave: It, handleAxisMouseenter: wt, handleAxisClick: Et, LumeAxis: bn, LumeBar: Pe, LumeChartContainer: Cn, LumeChartLegend: Bn, LumeTooltip: rr, LumeOverlayGroup: kr, TOOLTIP_ANCHOR_RADIUS: ln };
1469
1500
  }
1470
1501
  });
1471
- var Tr = function() {
1502
+ var Dr = function() {
1472
1503
  var e = this, r = e._self._c, n = e._self._setupProxy;
1473
- return r(n.LumeChartContainer, { ref: "chartContainer", attrs: { id: `lume-chart_${n.chartID}`, margins: n.allOptions.margins, "container-size": n.containerSize, "no-min-size": n.allOptions.noMinSize, "transparent-background": n.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: n.updateSize, click: function(a) {
1504
+ return r(n.LumeChartContainer, { ref: "chartContainer", attrs: { id: `lume-chart_${n.chartID}`, margins: n.computedMargins, "container-size": n.containerSize, "no-min-size": n.allOptions.noMinSize, "transparent-background": n.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: n.updateSize, click: function(a) {
1474
1505
  return n.emit("chart-click", a);
1475
1506
  }, mouseenter: function(a) {
1476
1507
  return n.emit("chart-mouseenter", a);
@@ -1511,23 +1542,27 @@ var Tr = function() {
1511
1542
  }, proxy: !0 }], null, !0) }, [n.isReady ? [n.hasNegativeValues ? r(n.LumeBar, e._b({ attrs: { "class-list": "lume-fill--negative", transition: !1, "data-j-lume-chart__negative-values": "" } }, "lume-bar", n.negativeBarAttributes, !1)) : e._e(), n.allOptions.withAxes !== !1 ? e._t("axes", function() {
1512
1543
  return [r(n.LumeAxis, { attrs: { type: "x", scale: n.computedXScale, "container-size": n.containerSize, options: n.computedXAxisOptions, "hovered-index": n.internalHoveredIndex, orientation: n.orientation, "data-j-lume-chart__x-axis": "" }, on: { click: n.handleAxisClick, mouseenter: n.handleAxisMouseenter, mouseleave: function(a) {
1513
1544
  return n.emit("axis-mouseleave");
1545
+ }, "lume__internal--axis-size": function(a) {
1546
+ n.xAxisHeight = a;
1514
1547
  } } }), r(n.LumeAxis, { attrs: { type: "y", scale: n.computedYScale, "container-size": n.containerSize, options: n.computedYAxisOptions, "hovered-index": n.internalHoveredIndex, orientation: n.orientation, "data-j-lume-chart__y-axis": "" }, on: { click: n.handleAxisClick, mouseenter: n.handleAxisMouseenter, mouseleave: function(a) {
1515
1548
  return n.emit("axis-mouseleave");
1549
+ }, "lume__internal--axis-size": function(a) {
1550
+ n.yAxisWidth = a;
1516
1551
  } } })];
1517
1552
  }, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : 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) {
1518
1553
  return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
1519
1554
  }), 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.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
1520
- }, Lr = [], xr = /* @__PURE__ */ I(
1521
- Ar,
1522
- Tr,
1523
- Lr,
1555
+ }, Hr = [], Rr = /* @__PURE__ */ w(
1556
+ Cr,
1557
+ Dr,
1558
+ Hr,
1524
1559
  !1,
1525
1560
  null,
1526
- "51fc5eef",
1561
+ "c4b73860",
1527
1562
  null,
1528
1563
  null
1529
1564
  );
1530
- const oe = xr.exports, Or = /* @__PURE__ */ E({
1565
+ const oe = Rr.exports, Sr = /* @__PURE__ */ E({
1531
1566
  __name: "lume-alluvial-node-label",
1532
1567
  props: {
1533
1568
  bottom: { type: Boolean, default: !1 }
@@ -1536,20 +1571,20 @@ const oe = xr.exports, Or = /* @__PURE__ */ E({
1536
1571
  return { __sfc: !0 };
1537
1572
  }
1538
1573
  });
1539
- var $r = function() {
1574
+ var Br = function() {
1540
1575
  var e = this, r = e._self._c;
1541
1576
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1542
- }, Ir = [], wr = /* @__PURE__ */ I(
1543
- Or,
1544
- $r,
1545
- Ir,
1577
+ }, Fr = [], Pr = /* @__PURE__ */ w(
1578
+ Sr,
1579
+ Br,
1580
+ Fr,
1546
1581
  !1,
1547
1582
  null,
1548
1583
  "d2a7cb8e",
1549
1584
  null,
1550
1585
  null
1551
1586
  );
1552
- const Er = wr.exports, Nr = /* @__PURE__ */ E({
1587
+ const Gr = Pr.exports, Vr = /* @__PURE__ */ E({
1553
1588
  __name: "lume-alluvial-node-value",
1554
1589
  props: {
1555
1590
  bottom: { type: Boolean, default: !0 }
@@ -1558,21 +1593,21 @@ const Er = wr.exports, Nr = /* @__PURE__ */ E({
1558
1593
  return { __sfc: !0 };
1559
1594
  }
1560
1595
  });
1561
- var Cr = function() {
1596
+ var jr = function() {
1562
1597
  var e = this, r = e._self._c;
1563
1598
  return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { dy: e.bottom ? "1.2em" : "" } }, [e._t("default")], 2);
1564
- }, Dr = [], Rr = /* @__PURE__ */ I(
1565
- Nr,
1566
- Cr,
1567
- Dr,
1599
+ }, Mr = [], zr = /* @__PURE__ */ w(
1600
+ Vr,
1601
+ jr,
1602
+ Mr,
1568
1603
  !1,
1569
1604
  null,
1570
1605
  "002e2887",
1571
1606
  null,
1572
1607
  null
1573
1608
  );
1574
- const Hr = Rr.exports;
1575
- function Ze(t, e) {
1609
+ const Wr = zr.exports;
1610
+ function Qe(t, e) {
1576
1611
  return {
1577
1612
  x0: 0 + (e ? e.left : 0),
1578
1613
  y0: 0 + (e ? e.top : 0),
@@ -1580,35 +1615,32 @@ function Ze(t, e) {
1580
1615
  y1: t.height - (e ? e.bottom : 0)
1581
1616
  };
1582
1617
  }
1583
- function Sr(t) {
1584
- const e = $(Ze(t));
1618
+ function Zr(t) {
1619
+ const e = I(Qe(t));
1585
1620
  function r(n) {
1586
- e.value = Ze(t, n);
1621
+ e.value = Qe(t, n);
1587
1622
  }
1588
1623
  return { extents: e, updateExtents: r };
1589
1624
  }
1590
- var pt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(pt || {});
1591
- const Br = "[lume] ";
1592
- function Pr(t, e, r = !0) {
1593
- r && nt() || console.error(Br + "Error: " + t, e);
1625
+ var bt = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t))(bt || {});
1626
+ const Xr = "[lume] ";
1627
+ function Ur(t, e, r = !0) {
1628
+ r && it() || console.error(Xr + "Error: " + t, e);
1594
1629
  }
1595
- const Xe = 8, Fr = 8, Gr = 20, Vr = 200;
1630
+ const qe = 8, Yr = 8, Kr = 20, Jr = 200;
1596
1631
  function re(t) {
1597
1632
  return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
1598
1633
  }
1599
- function ee(t) {
1600
- return t.source.id + ":" + t.target.id;
1601
- }
1602
- function jr(t, e) {
1634
+ function Qr(t, e) {
1603
1635
  return e.nodes.find((r) => r.id === t);
1604
1636
  }
1605
- function Mr(t, e) {
1606
- return e.links.find((r) => ee(r) === t);
1637
+ function qr(t, e) {
1638
+ return e.links.find((r) => r.id === t);
1607
1639
  }
1608
- function mt(t) {
1640
+ function kt(t) {
1609
1641
  return !!(t.sourceLinks && t.targetLinks);
1610
1642
  }
1611
- function zr(t, e) {
1643
+ function ea(t, e) {
1612
1644
  if (!e)
1613
1645
  return;
1614
1646
  const r = t.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), n = t.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = e.filter((l) => r.includes(l.dataset.id)).reduce(
@@ -1625,41 +1657,41 @@ function zr(t, e) {
1625
1657
  bottom: 0
1626
1658
  };
1627
1659
  }
1628
- function Wr(t) {
1660
+ function ta(t) {
1629
1661
  return t.map((e) => ({
1630
1662
  x: e.x0,
1631
1663
  y: e.y0,
1632
1664
  width: e.x1 - e.x0,
1633
1665
  height: e.y1 - e.y0,
1634
1666
  textTransform: {
1635
- x: e.depth > 0 ? e.x1 + Xe : e.x0 - Xe,
1667
+ x: e.depth > 0 ? e.x1 + qe : e.x0 - qe,
1636
1668
  y: (e.y1 + e.y0) / 2
1637
1669
  },
1638
1670
  node: e
1639
1671
  }));
1640
1672
  }
1641
- function Zr(t) {
1673
+ function na(t) {
1642
1674
  return [t.source.x1, t.y0];
1643
1675
  }
1644
- function Xr(t) {
1676
+ function ra(t) {
1645
1677
  return [t.target.x0, t.y1];
1646
1678
  }
1647
- function Ur(t) {
1648
- return t.curveFunction ? Ot(t.curveFunction).source(Zr).target(Xr) : Et();
1679
+ function aa(t) {
1680
+ return t.curveFunction ? Dt(t.curveFunction).source(na).target(ra) : Bt();
1649
1681
  }
1650
- function Yr(t) {
1682
+ function oa(t) {
1651
1683
  return t.map((e) => {
1652
1684
  var r;
1653
1685
  return {
1654
- id: ee(e),
1655
- color: e.color || ((r = e.source) == null ? void 0 : r.color) || se,
1656
- d: Ur(e)(e),
1686
+ id: e.id,
1687
+ color: e.color || ((r = e.source) == null ? void 0 : r.color) || de,
1688
+ d: aa(e)(e),
1657
1689
  strokeWidth: Math.max(1, e.width),
1658
1690
  link: e
1659
1691
  };
1660
1692
  });
1661
1693
  }
1662
- function Ue(t, e, r, n, a) {
1694
+ function et(t, e, r, n, a) {
1663
1695
  if (n === !1) {
1664
1696
  t.node = {
1665
1697
  ...t.node,
@@ -1667,8 +1699,8 @@ function Ue(t, e, r, n, a) {
1667
1699
  };
1668
1700
  return;
1669
1701
  }
1670
- const o = Date.now(), l = Wt(e, r), i = () => {
1671
- let s = (Date.now() - o) / Vr;
1702
+ const o = Date.now(), l = Qt(e, r), i = () => {
1703
+ let s = (Date.now() - o) / Jr;
1672
1704
  s > 1 && (s = 1), t.node = {
1673
1705
  ...t.node,
1674
1706
  transitionValue: a && s === 1 ? void 0 : l(s)
@@ -1676,87 +1708,96 @@ function Ue(t, e, r, n, a) {
1676
1708
  };
1677
1709
  requestAnimationFrame(i);
1678
1710
  }
1679
- const Kr = {
1711
+ const la = {
1680
1712
  nodes: [],
1681
1713
  links: []
1682
1714
  };
1683
- function Jr(t, e, r) {
1684
- const n = $(null), a = c(() => {
1715
+ function ua(t, e, r) {
1716
+ const n = I(null), a = d(() => {
1685
1717
  var i;
1686
1718
  return (i = t.value) == null ? void 0 : i[0].values.map(
1687
- ({ label: u, color: s, value: d, deriveColorFromIncomingLinks: v }) => ({
1688
- label: u || d.toString(),
1719
+ ({ label: u, color: s, value: c, deriveColorFromIncomingLinks: v }) => ({
1720
+ label: u || c.toString(),
1689
1721
  color: s,
1690
- fallbackColor: s || se,
1691
- id: d,
1722
+ fallbackColor: s || de,
1723
+ id: c,
1692
1724
  deriveColorFromIncomingLinks: v
1693
1725
  })
1694
1726
  );
1695
- }), o = c(() => {
1696
- var i;
1697
- return (i = t.value) == null ? void 0 : i[0].values.map(
1698
- (u) => {
1699
- var s;
1700
- return (s = u.targets) == null ? void 0 : s.map(
1701
- ({ node: d, value: v, color: f, curveFunction: h }) => ({
1702
- color: f,
1703
- curveFunction: h,
1704
- source: u.value ?? u.label,
1705
- target: d,
1706
- value: v
1707
- })
1708
- );
1709
- }
1710
- ).filter(Boolean).flat();
1711
- }), l = c(() => Nt().nodeId(re).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort));
1712
- return D([l, r], () => {
1727
+ }), o = d(
1728
+ () => {
1729
+ var i;
1730
+ return (i = t.value) == null ? void 0 : i[0].values.map(
1731
+ (u) => {
1732
+ var s;
1733
+ return (s = u.targets) == null ? void 0 : s.map(
1734
+ ({ node: c, value: v, color: f, curveFunction: y }) => ({
1735
+ id: `${u.value}:${c}`,
1736
+ color: f,
1737
+ curveFunction: y,
1738
+ source: u.value ?? u.label,
1739
+ target: c,
1740
+ value: v
1741
+ })
1742
+ );
1743
+ }
1744
+ ).filter(Boolean).flat();
1745
+ }
1746
+ ), l = d(() => Ft().nodeId(re).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort));
1747
+ return C([l, r], () => {
1713
1748
  try {
1714
- const { x0: i, y0: u, x1: s, y1: d } = r.value;
1749
+ const { x0: i, y0: u, x1: s, y1: c } = r.value;
1715
1750
  n.value = l.value.extent([
1716
1751
  [i, u],
1717
- [s, d]
1752
+ [s, c]
1718
1753
  ])({ nodes: a.value, links: o.value });
1719
1754
  } catch (i) {
1720
- Pr(pt.GraphProblem, i), n.value = Kr;
1755
+ Ur(bt.GraphProblem, i), n.value = la;
1721
1756
  }
1722
1757
  }), { graph: n };
1723
1758
  }
1724
- function Ie(t, e) {
1759
+ function De(t, e) {
1725
1760
  return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
1726
- e[r.id] = n, Ie(r, e);
1761
+ e[r.id] = n, De(
1762
+ r,
1763
+ e
1764
+ );
1727
1765
  }), e;
1728
1766
  }
1729
- function we(t, e) {
1767
+ function He(t, e) {
1730
1768
  return e || (e = {}), t.sourceLinks && t.sourceLinks.forEach(({ target: r, value: n }) => {
1731
- e[r.id] = n, we(r, e);
1769
+ e[r.id] = n, He(
1770
+ r,
1771
+ e
1772
+ );
1732
1773
  }), e;
1733
1774
  }
1734
- function Qr(t, e) {
1735
- return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(ee(n)), r), []);
1775
+ function ia(t, e) {
1776
+ return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
1736
1777
  }
1737
- const qr = (t, e) => {
1778
+ const sa = (t, e) => {
1738
1779
  let r;
1739
- mt(t) ? r = {
1780
+ kt(t) ? r = {
1740
1781
  [t.id]: t.value,
1741
- ...Ie(t),
1742
- ...we(t)
1782
+ ...De(t),
1783
+ ...He(t)
1743
1784
  } : r = {
1744
1785
  [t.source.id]: t.source.value,
1745
1786
  [t.target.id]: t.target.value,
1746
- ...Ie(t.source),
1747
- ...we(t.target)
1787
+ ...De(t.source),
1788
+ ...He(t.target)
1748
1789
  };
1749
- const n = Qr(r, e);
1790
+ const n = ia(r, e);
1750
1791
  return { nodes: r, links: n };
1751
- }, ea = (t) => {
1752
- if (mt(t)) {
1792
+ }, ca = (t) => {
1793
+ if (kt(t)) {
1753
1794
  const e = [...t.sourceLinks, ...t.targetLinks];
1754
1795
  return {
1755
1796
  nodes: e.reduce(
1756
1797
  (r, { source: n, target: a, value: o }) => n === t ? { ...r, [re(a)]: o } : { ...r, [re(n)]: o },
1757
1798
  { [re(t)]: t.value }
1758
1799
  ),
1759
- links: e.map((r) => ee(r))
1800
+ links: e.map(({ id: r }) => r)
1760
1801
  };
1761
1802
  }
1762
1803
  return {
@@ -1764,18 +1805,18 @@ const qr = (t, e) => {
1764
1805
  [re(t.target)]: t.value,
1765
1806
  [re(t.source)]: t.source.value
1766
1807
  },
1767
- links: [ee(t)]
1808
+ links: [t.id]
1768
1809
  };
1769
1810
  };
1770
- function ta(t, e, r) {
1771
- const n = $(null), a = c(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1811
+ function da(t, e, r) {
1812
+ const n = I(null), a = d(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
1772
1813
  n.value,
1773
1814
  r.value
1774
- ) : e.value.highlightedElements === "closest" ? ea(n.value, r.value) : qr(n.value, r.value) : { nodes: {}, links: [] });
1775
- return D(a, (o, l) => {
1815
+ ) : e.value.highlightedElements === "closest" ? ca(n.value, r.value) : sa(n.value, r.value) : { nodes: {}, links: [] });
1816
+ return C(a, (o, l) => {
1776
1817
  if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
1777
1818
  t.value.forEach((i) => {
1778
- i.node.id in l.nodes && Ue(
1819
+ i.node.id in l.nodes && et(
1779
1820
  i,
1780
1821
  l.nodes[i.node.id],
1781
1822
  i.node.value,
@@ -1786,7 +1827,7 @@ function ta(t, e, r) {
1786
1827
  return;
1787
1828
  }
1788
1829
  t.value.forEach((i) => {
1789
- i.node.id in o.nodes && Ue(
1830
+ i.node.id in o.nodes && et(
1790
1831
  i,
1791
1832
  i.node.value,
1792
1833
  o.nodes[i.node.id],
@@ -1795,10 +1836,10 @@ function ta(t, e, r) {
1795
1836
  });
1796
1837
  }), { highlightedElements: a, hoveredElement: n };
1797
1838
  }
1798
- const na = /* @__PURE__ */ E({
1839
+ const va = /* @__PURE__ */ E({
1799
1840
  __name: "lume-alluvial-group",
1800
1841
  props: {
1801
- ...ge(),
1842
+ ...he(),
1802
1843
  hoveredElementId: {
1803
1844
  type: [Number, String],
1804
1845
  default: null
@@ -1806,108 +1847,111 @@ const na = /* @__PURE__ */ E({
1806
1847
  },
1807
1848
  emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
1808
1849
  setup(t, { emit: e }) {
1809
- const r = t, n = pe("chartID"), { data: a, options: o } = B(r), l = $([]), i = $([]), u = $(null), { extents: s, updateExtents: d } = Sr(r.containerSize), { graph: v } = Jr(a, o, s), { hoveredElement: f, highlightedElements: h } = ta(
1850
+ const r = t, n = fe("chartID"), { data: a, options: o } = H(r), l = I([]), i = I([]), u = I(null), { extents: s, updateExtents: c } = Zr(r.containerSize), { graph: v } = ua(a, o, s), { hoveredElement: f, highlightedElements: y } = da(
1810
1851
  l,
1811
1852
  o,
1812
1853
  v
1813
- ), _ = c(() => fe(o.value.valueFormat)), m = c(
1814
- () => Object.keys(h.value.nodes)
1815
- ), k = c(
1816
- () => l.value.reduce((g, O) => {
1817
- const S = O.x + o.value.nodeWidth / 2;
1818
- return g.includes(S) ? g : [...g, S];
1819
- }, []).sort((g, O) => g - O)
1854
+ ), m = d(() => _e(o.value.valueFormat)), g = d(
1855
+ () => Object.keys(y.value.nodes)
1856
+ ), h = d(
1857
+ () => l.value.reduce((_, b) => {
1858
+ const x = b.x + o.value.nodeWidth / 2;
1859
+ return _.includes(x) ? _ : [..._, x];
1860
+ }, []).sort((_, b) => _ - b)
1820
1861
  // Make sure positions are sorted in ascending order
1821
- ), p = c(() => {
1862
+ ), p = d(() => {
1822
1863
  if (!(!o.value.nodeHeaders || !o.value.nodeHeaders.length))
1823
- return o.value.nodeHeaders.slice(0, k.value.length).map((g, O) => ({
1824
- label: g,
1825
- x: k.value[O]
1864
+ return o.value.nodeHeaders.slice(0, h.value.length).map((_, b) => ({
1865
+ label: _,
1866
+ x: h.value[b]
1826
1867
  }));
1827
- }), T = c(
1828
- () => o.value.nodeHeaderPadding ?? Gr
1829
- ), x = c(() => {
1868
+ }), L = d(
1869
+ () => o.value.nodeHeaderPadding ?? Kr
1870
+ ), $ = d(() => {
1830
1871
  if (!(!o.value.gradient || !v.value))
1831
- return v.value.links.reduce((g, O) => (g[ee(O)] = {
1832
- source: O.source.color || O.source.fallbackColor,
1833
- target: O.target.color || O.target.fallbackColor,
1834
- x1: O.source.x1,
1835
- x2: O.target.x0
1836
- }, g), {});
1837
- }), A = c(() => {
1838
- const g = l.value.filter(
1839
- (S) => V(S)
1840
- ), O = [];
1841
- return g.forEach((S) => {
1842
- const ce = [];
1843
- i.value.filter(({ link: Y }) => Y.target.id === S.node.id).reverse().reduce((Y, Z) => {
1844
- const de = Z.link.target.y1 - Z.link.target.y0, ve = Z.link.value / S.node.value * de;
1845
- return ce.push({
1846
- x: S.x,
1847
- y: S.y + Y,
1848
- height: ve,
1849
- width: S.width,
1850
- key: `node-block-${S.node.id}-source-link-${Z.link.source.id}`,
1851
- class: `lume-alluvial-group__node-block lume-fill--${Z.link.source.color || se}`
1852
- }), Y + ve;
1853
- }, 0), O.push({
1854
- id: S.node.id,
1855
- subNodes: ce
1872
+ return v.value.links.reduce((_, b) => {
1873
+ const { source: x, target: B } = b, M = x.color || x.fallbackColor, z = B.deriveColorFromIncomingLinks ? M : B.color || B.fallbackColor;
1874
+ return _[b.id] = {
1875
+ source: M,
1876
+ target: z,
1877
+ x1: x.x1,
1878
+ x2: B.x0
1879
+ }, _;
1880
+ }, {});
1881
+ }), T = d(() => {
1882
+ const _ = l.value.filter(
1883
+ (x) => P(x)
1884
+ ), b = [];
1885
+ return _.forEach((x) => {
1886
+ const B = [];
1887
+ i.value.filter(({ link: M }) => M.target.id === x.node.id).reverse().reduce((M, z) => {
1888
+ const ge = z.link.target.y1 - z.link.target.y0, le = z.link.value / x.node.value * ge;
1889
+ return B.push({
1890
+ x: x.x,
1891
+ y: x.y + M,
1892
+ height: le,
1893
+ width: x.width,
1894
+ key: `node-block-${x.node.id}-source-link-${z.link.source.id}`,
1895
+ class: `lume-alluvial-group__node-block lume-fill--${z.link.source.color || de}`
1896
+ }), M + le;
1897
+ }, 0), b.push({
1898
+ id: x.node.id,
1899
+ subNodes: B
1856
1900
  });
1857
- }), O;
1901
+ }), b;
1858
1902
  });
1859
- function y(g) {
1860
- return o.value.gradient && `url('#${n}_${ee(g)}')`;
1903
+ function k(_) {
1904
+ return o.value.gradient && `url('#${n}_${_.id}')`;
1861
1905
  }
1862
- function N(g) {
1863
- return m.value.length > 0 && !m.value.includes(g.toString());
1906
+ function N(_) {
1907
+ return g.value.length > 0 && !g.value.includes(_.toString());
1864
1908
  }
1865
- function R(g) {
1866
- return m.value.length > 0 && m.value.includes(g.toString());
1909
+ function D(_) {
1910
+ return g.value.length > 0 && g.value.includes(_.toString());
1867
1911
  }
1868
- function P(g) {
1869
- return h.value.links.length > 0 && !h.value.links.includes(g);
1912
+ function R(_) {
1913
+ return y.value.links.length > 0 && !y.value.links.includes(_);
1870
1914
  }
1871
- function G(g) {
1872
- return h.value.links.length > 0 && h.value.links.includes(g);
1915
+ function S(_) {
1916
+ return y.value.links.length > 0 && y.value.links.includes(_);
1873
1917
  }
1874
- function V(g) {
1875
- return !g.node.color && g.node.deriveColorFromIncomingLinks;
1918
+ function P(_) {
1919
+ return !_.node.color && _.node.deriveColorFromIncomingLinks;
1876
1920
  }
1877
- function W(g, O) {
1878
- g !== f.value && (f.value = g, e("link-mouseenter", { link: g, event: O }));
1921
+ function te(_, b) {
1922
+ _ !== f.value && (f.value = _, e("link-mouseenter", { link: _, event: b }));
1879
1923
  }
1880
- function w(g) {
1881
- const O = f.value;
1882
- f.value = null, e("link-mouseleave", { link: O, event: g });
1924
+ function ne(_) {
1925
+ const b = f.value;
1926
+ f.value = null, e("link-mouseleave", { link: b, event: _ });
1883
1927
  }
1884
- function C(g) {
1885
- if (g == null) {
1928
+ function G(_) {
1929
+ if (_ == null) {
1886
1930
  f.value = null;
1887
1931
  return;
1888
1932
  }
1889
- const O = jr(g, v.value) || Mr(g, v.value);
1890
- if (!O) {
1891
- Q(X.InvalidHoveredElement);
1933
+ const b = Qr(_, v.value) || qr(_, v.value);
1934
+ if (!b) {
1935
+ J(Z.InvalidHoveredElement);
1892
1936
  return;
1893
1937
  }
1894
- f.value = O;
1938
+ f.value = b;
1895
1939
  }
1896
- function H(g) {
1897
- var O;
1898
- return ((O = A.value.find(({ id: S }) => g === S)) == null ? void 0 : O.subNodes) ?? [];
1940
+ function U(_) {
1941
+ var b;
1942
+ return ((b = T.value.find(({ id: x }) => _ === x)) == null ? void 0 : b.subNodes) ?? [];
1899
1943
  }
1900
- return D(v, (g) => {
1901
- l.value = Wr(g.nodes), i.value = Yr(g.links).reverse(), f.value == null && r.hoveredElementId != null && C(r.hoveredElementId);
1902
- }), D([r.containerSize, u], () => {
1944
+ return C(v, (_) => {
1945
+ l.value = ta(_.nodes), i.value = oa(_.links).reverse(), f.value == null && r.hoveredElementId != null && G(r.hoveredElementId);
1946
+ }), C([r.containerSize, u], () => {
1903
1947
  if (r.containerSize.width && r.containerSize.height) {
1904
- const g = zr(v.value, u.value);
1905
- d(g);
1948
+ const _ = ea(v.value, u.value);
1949
+ c(_);
1906
1950
  }
1907
- }), D(() => r.hoveredElementId, C), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: d, graph: v, hoveredElement: f, highlightedElements: h, formatValue: _, hoveredNodeIds: m, nodeColumnPositions: k, nodeHeaders: p, computedNodeHeaderPadding: T, gradients: x, nodesDerivingColorFromIncomingLinks: A, getLinkStroke: y, isNodeFaded: N, isNodeFocused: R, isLinkFaded: P, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: V, handleLinkMouseover: W, handleLinkMouseleave: w, handleExternalHover: C, getSubNodesDerivingColorFromIncomingLinks: H, LumeAlluvialNodeLabel: Er, LumeAlluvialNodeValue: Hr, GHOST_STROKE_WIDTH_OFFSET: Fr };
1951
+ }), C(() => r.hoveredElementId, G), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: s, updateExtents: c, graph: v, hoveredElement: f, highlightedElements: y, formatValue: m, hoveredNodeIds: g, nodeColumnPositions: h, nodeHeaders: p, computedNodeHeaderPadding: L, gradients: $, nodesDerivingColorFromIncomingLinks: T, getLinkStroke: k, isNodeFaded: N, isNodeFocused: D, isLinkFaded: R, isLinkFocused: S, shouldDeriveNodeColorFromIncomingLinks: P, handleLinkMouseover: te, handleLinkMouseleave: ne, handleExternalHover: G, getSubNodesDerivingColorFromIncomingLinks: U, LumeAlluvialNodeLabel: Gr, LumeAlluvialNodeValue: Wr, GHOST_STROKE_WIDTH_OFFSET: Yr };
1908
1952
  }
1909
1953
  });
1910
- var ra = function() {
1954
+ var _a = function() {
1911
1955
  var e = this, r = e._self._c, n = e._self._setupProxy;
1912
1956
  return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", e._l(n.nodeHeaders, function(a) {
1913
1957
  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) + " ")]);
@@ -1959,17 +2003,17 @@ var ra = function() {
1959
2003
  a.node.value
1960
2004
  ) })], 2)], 2)]);
1961
2005
  })], 2);
1962
- }, aa = [], oa = /* @__PURE__ */ I(
1963
- na,
1964
- ra,
1965
- aa,
2006
+ }, fa = [], pa = /* @__PURE__ */ w(
2007
+ va,
2008
+ _a,
2009
+ fa,
1966
2010
  !1,
1967
2011
  null,
1968
- "bda77c32",
2012
+ "1b46bc35",
1969
2013
  null,
1970
2014
  null
1971
2015
  );
1972
- const la = oa.exports, ua = {
2016
+ const ma = pa.exports, ha = {
1973
2017
  margins: {
1974
2018
  top: 0,
1975
2019
  right: 0,
@@ -1982,18 +2026,18 @@ const la = oa.exports, ua = {
1982
2026
  withLegend: !1,
1983
2027
  // Alluvial options
1984
2028
  gradient: !1,
1985
- highlightedElements: "full",
2029
+ highlightedElements: "closest",
1986
2030
  nodePadding: 16,
1987
2031
  nodeWidth: 16,
1988
- nodeAlign: Ct,
2032
+ nodeAlign: Pt,
1989
2033
  valueFormat: (t) => String(t)
1990
- }, ia = /* @__PURE__ */ E({
2034
+ }, ga = /* @__PURE__ */ E({
1991
2035
  __name: "lume-alluvial-diagram",
1992
2036
  props: {
1993
- ...cr(Ne)
2037
+ ...mr(Se)
1994
2038
  },
1995
2039
  setup(t) {
1996
- const e = t, r = ne(j()), n = Xt(j()), { options: a } = B(e), { allOptions: o } = z(a, ua);
2040
+ const e = t, r = ee(V()), n = en(V()), { options: a } = H(e), { allOptions: o } = W(a, ha);
1997
2041
  function l(i) {
1998
2042
  return {
1999
2043
  ...i,
@@ -2001,10 +2045,10 @@ const la = oa.exports, ua = {
2001
2045
  // Alluvial chart never uses base scales
2002
2046
  };
2003
2047
  }
2004
- return { __sfc: !0, props: e, slots: r, groupSlots: n, options: a, allOptions: o, getAlluvialDiagramOptions: l, LumeChart: oe, LumeAlluvialGroup: la };
2048
+ return { __sfc: !0, props: e, slots: r, groupSlots: n, options: a, allOptions: o, getAlluvialDiagramOptions: l, LumeChart: oe, LumeAlluvialGroup: ma };
2005
2049
  }
2006
2050
  });
2007
- var sa = function() {
2051
+ var ya = function() {
2008
2052
  var e = this, r = e._self._c, n = e._self._setupProxy;
2009
2053
  return r(n.LumeChart, e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2010
2054
  return [r(n.LumeAlluvialGroup, e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(o, l) {
@@ -2017,40 +2061,40 @@ var sa = function() {
2017
2061
  return [e._t(o, null, null, l || {})];
2018
2062
  } };
2019
2063
  })], null, !0) }, "lume-chart", n.props, !1));
2020
- }, ca = [], da = /* @__PURE__ */ I(
2021
- ia,
2022
- sa,
2023
- ca,
2064
+ }, ba = [], ka = /* @__PURE__ */ w(
2065
+ ga,
2066
+ ya,
2067
+ ba,
2024
2068
  !1,
2025
2069
  null,
2026
2070
  null,
2027
2071
  null,
2028
2072
  null
2029
2073
  );
2030
- const To = da.exports;
2031
- var Ee = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Ee || {});
2032
- const va = /* @__PURE__ */ E({
2074
+ const Do = ka.exports;
2075
+ var Re = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(Re || {});
2076
+ const Aa = /* @__PURE__ */ E({
2033
2077
  __name: "lume-bar-chart",
2034
2078
  props: {
2035
2079
  ...ae(),
2036
2080
  type: {
2037
2081
  type: String,
2038
2082
  default: null,
2039
- validator: (t) => t in Ee || t == null
2083
+ validator: (t) => t in Re || t == null
2040
2084
  }
2041
2085
  },
2042
2086
  setup(t) {
2043
- const e = t, r = Ae(
2087
+ const e = t, r = Te(
2044
2088
  () => import("./common/42f5d2fc.js")
2045
- ), n = Ae(
2089
+ ), n = Te(
2046
2090
  () => import("./common/abc9d23d.js")
2047
- ), a = Ae(
2091
+ ), a = Te(
2048
2092
  () => import("./common/0664fd4d.js")
2049
2093
  ), o = /* @__PURE__ */ new Map([
2050
2094
  ["single", r],
2051
2095
  ["grouped", n],
2052
2096
  ["stacked", a]
2053
- ]), l = ne(j());
2097
+ ]), l = ee(V());
2054
2098
  function i(s) {
2055
2099
  return {
2056
2100
  ...s,
@@ -2058,68 +2102,68 @@ const va = /* @__PURE__ */ E({
2058
2102
  // Bar chart always starts on zero,
2059
2103
  tooltipOptions: {
2060
2104
  ...(s == null ? void 0 : s.tooltipOptions) || {},
2061
- position: e.orientation === L.HORIZONTAL && "right"
2105
+ position: e.orientation === O.HORIZONTAL && "right"
2062
2106
  }
2063
2107
  };
2064
2108
  }
2065
- const u = c(() => {
2109
+ const u = d(() => {
2066
2110
  if (e.data) {
2067
- if (Ne(e.data))
2111
+ if (Se(e.data))
2068
2112
  return o.get("single");
2069
2113
  if (!e.type)
2070
2114
  throw new Error("Bar chart needs a type when there's multiple datasets.");
2071
2115
  return o.get(e.type);
2072
2116
  }
2073
2117
  });
2074
- return { __sfc: !0, TYPES: Ee, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: e, slots: l, getBarChartOptions: i, component: u };
2118
+ return { __sfc: !0, TYPES: Re, LumeSingleBarChart: r, LumeGroupedBarChart: n, LumeStackedBarChart: a, COMPONENT_MAP: o, props: e, slots: l, getBarChartOptions: i, component: u };
2075
2119
  }
2076
2120
  });
2077
- var _a = function() {
2121
+ var Ta = function() {
2078
2122
  var e = this, r = e._self._c, n = e._self._setupProxy;
2079
2123
  return r(n.component, e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(a, o) {
2080
2124
  return { key: o, fn: function(l) {
2081
2125
  return [e._t(o, null, null, l || {})];
2082
2126
  } };
2083
2127
  })], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1));
2084
- }, fa = [], pa = /* @__PURE__ */ I(
2085
- va,
2086
- _a,
2087
- fa,
2128
+ }, xa = [], La = /* @__PURE__ */ w(
2129
+ Aa,
2130
+ Ta,
2131
+ xa,
2088
2132
  !1,
2089
2133
  null,
2090
2134
  null,
2091
2135
  null,
2092
2136
  null
2093
2137
  );
2094
- const Lo = pa.exports;
2095
- function ma(t) {
2096
- return Object.values(Qt).includes(t) || t == null;
2138
+ const Ho = La.exports;
2139
+ function Oa(t) {
2140
+ return Object.values(on).includes(t) || t == null;
2097
2141
  }
2098
- function ha(t) {
2099
- return Object.values(L).includes(t);
2142
+ function $a(t) {
2143
+ return Object.values(O).includes(t);
2100
2144
  }
2101
- const ga = (t = !1) => ({
2145
+ const Ia = (t = !1) => ({
2102
2146
  type: {
2103
2147
  type: String,
2104
2148
  default: null,
2105
- validator: ma
2149
+ validator: Oa
2106
2150
  },
2107
2151
  ...t ? {
2108
2152
  orientation: {
2109
2153
  type: String,
2110
- default: L.VERTICAL,
2111
- validator: ha
2154
+ default: O.VERTICAL,
2155
+ validator: $a
2112
2156
  }
2113
2157
  } : {}
2114
2158
  });
2115
- function ht(t) {
2116
- const e = c(() => t.value.map((n) => ({
2159
+ function At(t) {
2160
+ const e = d(() => t.value.map((n) => ({
2117
2161
  ...n,
2118
2162
  values: n.values.map((a) => ({
2119
2163
  ...a,
2120
2164
  value: (a == null ? void 0 : a.value) || 0
2121
2165
  }))
2122
- }))), r = c(() => {
2166
+ }))), r = d(() => {
2123
2167
  var n;
2124
2168
  return (n = e.value) == null ? void 0 : n.reduce((a, o) => (o.values.forEach((l, i) => {
2125
2169
  a[i] ? a[i].push(l) : a[i] = [l];
@@ -2127,26 +2171,26 @@ function ht(t) {
2127
2171
  });
2128
2172
  return { multiBarData: e, groupedData: r };
2129
2173
  }
2130
- function ya(t, e) {
2174
+ function wa(t, e) {
2131
2175
  return t.value.length === 1 ? "single" : e.value;
2132
2176
  }
2133
- function ba(t, e, r) {
2134
- const n = c(
2135
- () => r.value === L.HORIZONTAL
2177
+ function Ea(t, e, r) {
2178
+ const n = d(
2179
+ () => r.value === O.HORIZONTAL
2136
2180
  );
2137
2181
  function a(i) {
2138
2182
  Math.min(...i.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
2139
2183
  }
2140
- const o = c(() => n.value ? (() => (a(t.value), t.value))() : t.value), l = c(() => n.value ? e.value : (() => (a(e.value), e.value))());
2184
+ const o = d(() => n.value ? (() => (a(t.value), t.value))() : t.value), l = d(() => n.value ? e.value : (() => (a(e.value), e.value))());
2141
2185
  return { barXScale: o, barYScale: l };
2142
2186
  }
2143
- function ka(t, e, r, n, a, o) {
2144
- const l = c(
2145
- () => n.value === L.HORIZONTAL
2187
+ function Na(t, e, r, n, a, o) {
2188
+ const l = d(
2189
+ () => n.value === O.HORIZONTAL
2146
2190
  );
2147
2191
  function i(v, f) {
2148
- let h, _;
2149
- return l.value ? (h = v >= 0 ? e.value(0) : e.value(v), _ = r.value(r.value.domain()[f])) : (h = e.value(e.value.domain()[f]), _ = v < 0 ? r.value(0) : r.value(v)), { x: h, y: _ };
2192
+ let y, m;
2193
+ return l.value ? (y = v >= 0 ? e.value(0) : e.value(v), m = r.value(r.value.domain()[f])) : (y = e.value(e.value.domain()[f]), m = v < 0 ? r.value(0) : r.value(v)), { x: y, y: m };
2150
2194
  }
2151
2195
  function u(v) {
2152
2196
  return l.value ? v < 0 ? e.value(0) - e.value(v) : e.value(v) - e.value(0) : e.value.bandwidth();
@@ -2154,105 +2198,109 @@ function ka(t, e, r, n, a, o) {
2154
2198
  function s(v) {
2155
2199
  return l.value ? r.value.bandwidth() : v < 0 ? r.value(v) - r.value(0) : r.value(0) - r.value(v);
2156
2200
  }
2157
- function d(v, f, h) {
2158
- const { value: _, color: m } = v, k = m ?? t.value[f].color ?? se, { x: p, y: T } = i(_, h), x = u(_), A = s(_);
2201
+ function c(v, f, y) {
2202
+ const { value: m, color: g } = v, h = g ?? t.value[f].color ?? de, { x: p, y: L } = i(m, y), $ = u(m), T = s(m);
2159
2203
  return {
2160
- classList: [`lume-fill--${k}`, ...o],
2204
+ classList: [`lume-fill--${h}`, ...o],
2161
2205
  x: p,
2162
- y: T,
2163
- width: x,
2164
- height: A,
2165
- isFaded: a.value !== -1 && a.value !== h,
2166
- isNegative: _ < 0
2206
+ y: L,
2207
+ width: $,
2208
+ height: T,
2209
+ isFaded: a.value !== -1 && a.value !== y,
2210
+ isNegative: m < 0
2167
2211
  };
2168
2212
  }
2169
- return { barAttributeGenerator: d };
2213
+ return { barAttributeGenerator: c };
2170
2214
  }
2171
- function Aa(t, e, r, n, a, o) {
2172
- const l = c(
2173
- () => n.value === L.HORIZONTAL
2174
- ), i = c(() => le().domain(t.value.map((_, m) => m)).range([0, e.value.bandwidth()]).padding(0)), u = c(() => le().domain(t.value.map((_, m) => m)).range([0, r.value.bandwidth()]).padding(0));
2175
- function s(_, m, k) {
2215
+ function Ca(t, e, r, n, a, o) {
2216
+ const l = d(
2217
+ () => n.value === O.HORIZONTAL
2218
+ ), i = d(() => ue().domain(t.value.map((m, g) => g)).range([0, e.value.bandwidth()]).padding(0)), u = d(() => ue().domain(t.value.map((m, g) => g)).range([0, r.value.bandwidth()]).padding(0));
2219
+ function s(m, g, h) {
2176
2220
  if (l.value)
2177
- return _ >= 0 ? e.value(0) : e.value(_);
2221
+ return m >= 0 ? e.value(0) : e.value(m);
2178
2222
  const p = e.value.domain();
2179
- return e.value(p[m]) + i.value(k);
2223
+ return e.value(p[g]) + i.value(h);
2180
2224
  }
2181
- function d(_, m, k) {
2225
+ function c(m, g, h) {
2182
2226
  if (l.value) {
2183
2227
  const p = r.value.domain();
2184
- return r.value(p[m]) + u.value(k);
2228
+ return r.value(p[g]) + u.value(h);
2185
2229
  }
2186
- return _ < 0 ? r.value(0) : r.value(_);
2230
+ return m < 0 ? r.value(0) : r.value(m);
2187
2231
  }
2188
- function v(_) {
2189
- return l.value ? _ < 0 ? e.value(0) - e.value(_) : e.value(_) - e.value(0) : i.value.bandwidth();
2232
+ function v(m) {
2233
+ return l.value ? m < 0 ? e.value(0) - e.value(m) : e.value(m) - e.value(0) : i.value.bandwidth();
2190
2234
  }
2191
- function f(_) {
2192
- return l.value ? u.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
2235
+ function f(m) {
2236
+ return l.value ? u.value.bandwidth() : m < 0 ? r.value(m) - r.value(0) : r.value(0) - r.value(m);
2193
2237
  }
2194
- function h(_, m, k) {
2195
- const { value: p, color: T } = _, x = T ?? t.value[m].color ?? Object.values(M)[m], A = s(p, k, m), y = d(p, k, m), N = v(p), R = f(p);
2238
+ function y(m, g, h) {
2239
+ const { value: p, color: L } = m, $ = L ?? t.value[g].color ?? Object.values(j)[g], T = s(p, h, g), k = c(p, h, g), N = v(p), D = f(p);
2196
2240
  return {
2197
- classList: [`lume-fill--${x}`, ...o],
2198
- x: A,
2199
- y,
2241
+ classList: [`lume-fill--${$}`, ...o],
2242
+ x: T,
2243
+ y: k,
2200
2244
  width: N,
2201
- height: R,
2202
- isFaded: a.value !== -1 && a.value !== k,
2245
+ height: D,
2246
+ isFaded: a.value !== -1 && a.value !== h,
2203
2247
  isNegative: p < 0
2204
2248
  };
2205
2249
  }
2206
- return { barAttributeGenerator: h };
2250
+ return { barAttributeGenerator: y };
2207
2251
  }
2208
- function Ta(t, e) {
2209
- const r = c(
2210
- () => e.value === L.HORIZONTAL
2211
- ), n = c(() => {
2212
- const i = t.value.map(
2213
- (u) => u.filter((s) => s.value < 0).reduce((s, d) => s + d.value, 0)
2252
+ function Da(t, e, r) {
2253
+ const n = d(
2254
+ () => e.value === O.HORIZONTAL
2255
+ ), a = d(() => {
2256
+ const u = t.value.map(
2257
+ (s) => s.filter((c) => c.value < 0).reduce((c, v) => c + v.value, 0)
2214
2258
  );
2215
- return Math.min(...i);
2216
- }), a = c(() => {
2217
- const i = t.value.map(
2218
- (u) => u.reduce(
2219
- (s, d) => d.value >= 0 ? s + d.value : s,
2259
+ return Math.min(...u);
2260
+ }), o = d(() => {
2261
+ const u = t.value.map(
2262
+ (s) => s.reduce(
2263
+ (c, v) => v.value >= 0 ? c + v.value : c,
2220
2264
  0
2221
2265
  )
2222
2266
  );
2223
- return Math.max(...i);
2267
+ return Math.max(...u);
2224
2268
  });
2225
- function o(i, u, s) {
2226
- return r.value ? ue().domain([n.value, a.value]).range([0, s.width]) : Object.assign(
2227
- ze(
2228
- le().domain(u.map((d, v) => v)).range([0, s.width])
2269
+ function l(u, s, c) {
2270
+ return n.value ? ie().domain([a.value, o.value]).range([0, c.width]) : Object.assign(
2271
+ Ke(
2272
+ ue().domain(s.map((v, f) => f)).range([0, c.width]),
2273
+ e.value,
2274
+ r.value
2229
2275
  ),
2230
- { labels: u }
2276
+ { labels: s }
2231
2277
  );
2232
2278
  }
2233
- function l(i, u, s) {
2234
- return r.value ? Object.assign(
2235
- ze(
2236
- le().domain(u.map((d, v) => v)).range([0, s.height])
2279
+ function i(u, s, c) {
2280
+ return n.value ? Object.assign(
2281
+ Ke(
2282
+ ue().domain(s.map((v, f) => f)).range([0, c.height]),
2283
+ e.value,
2284
+ r.value
2237
2285
  ),
2238
- { labels: u }
2239
- ) : ue().domain([a.value, n.value]).range([0, s.height]);
2286
+ { labels: s }
2287
+ ) : ie().domain([o.value, a.value]).range([0, c.height]);
2240
2288
  }
2241
- return { stackedXScaleGenerator: o, stackedYScaleGenerator: l };
2289
+ return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
2242
2290
  }
2243
- function La(t, e, r, n, a, o) {
2244
- const l = c(
2245
- () => n.value === L.HORIZONTAL
2246
- ), i = c(
2291
+ function Ha(t, e, r, n, a, o) {
2292
+ const l = d(
2293
+ () => n.value === O.HORIZONTAL
2294
+ ), i = d(
2247
2295
  () => l.value ? r.value.domain() : e.value.domain()
2248
- ), u = c(
2249
- () => t.value.map((p) => p.values.map((T) => T == null ? void 0 : T.value))
2296
+ ), u = d(
2297
+ () => t.value.map((p) => p.values.map((L) => L == null ? void 0 : L.value))
2250
2298
  );
2251
- function s(p, T, x) {
2252
- let A, y;
2253
- return l.value ? (A = e.value(p >= 0 ? 0 + x : p + x), y = r.value(i.value[T])) : (A = e.value(i.value[T]), y = r.value(p >= 0 ? p + x : 0 + x)), { x: A, y };
2299
+ function s(p, L, $) {
2300
+ let T, k;
2301
+ return l.value ? (T = e.value(p >= 0 ? 0 + $ : p + $), k = r.value(i.value[L])) : (T = e.value(i.value[L]), k = r.value(p >= 0 ? p + $ : 0 + $)), { x: T, y: k };
2254
2302
  }
2255
- function d(p) {
2303
+ function c(p) {
2256
2304
  return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
2257
2305
  }
2258
2306
  function v(p) {
@@ -2261,42 +2309,42 @@ function La(t, e, r, n, a, o) {
2261
2309
  function f(p) {
2262
2310
  return l.value ? r.value.bandwidth() : r.value(0) - r.value(p);
2263
2311
  }
2264
- function h(p) {
2312
+ function y(p) {
2265
2313
  return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
2266
2314
  }
2267
- function _(p, T) {
2268
- return p ? u.value.reduce((x, A, y) => (y < p && A[T] >= 0 && (x += A[T]), x), 0) : 0;
2315
+ function m(p, L) {
2316
+ return p ? u.value.reduce(($, T, k) => (k < p && T[L] >= 0 && ($ += T[L]), $), 0) : 0;
2269
2317
  }
2270
- function m(p, T) {
2271
- return p ? u.value.reduce((x, A, y) => (y < p && A[T] < 0 && (x += A[T]), x), 0) : 0;
2318
+ function g(p, L) {
2319
+ return p ? u.value.reduce(($, T, k) => (k < p && T[L] < 0 && ($ += T[L]), $), 0) : 0;
2272
2320
  }
2273
- function k(p, T, x) {
2274
- const { value: A, color: y } = p, N = A >= 0 ? d(A) : v(A), R = A >= 0 ? f(A) : h(A), P = A >= 0 ? _(T, x) : m(T, x), { x: G, y: V } = s(A, x, P);
2321
+ function h(p, L, $) {
2322
+ const { value: T, color: k } = p, N = T >= 0 ? c(T) : v(T), D = T >= 0 ? f(T) : y(T), R = T >= 0 ? m(L, $) : g(L, $), { x: S, y: P } = s(T, $, R);
2275
2323
  return {
2276
- classList: [`lume-fill--${y ?? t.value[T].color ?? Object.values(M)[T]}`, ...o],
2324
+ classList: [`lume-fill--${k ?? t.value[L].color ?? Object.values(j)[L]}`, ...o],
2277
2325
  width: N,
2278
- height: R,
2279
- x: G,
2280
- y: V,
2281
- isFaded: a.value !== -1 && a.value !== x,
2282
- isNegative: A < 0
2326
+ height: D,
2327
+ x: S,
2328
+ y: P,
2329
+ isFaded: a.value !== -1 && a.value !== $,
2330
+ isNegative: T < 0
2283
2331
  };
2284
2332
  }
2285
- return { barAttributeGenerator: k };
2333
+ return { barAttributeGenerator: h };
2286
2334
  }
2287
- const Ye = {
2288
- single: ka,
2289
- grouped: Aa,
2290
- stacked: La
2291
- }, xa = /* @__PURE__ */ E({
2335
+ const tt = {
2336
+ single: Na,
2337
+ grouped: Ca,
2338
+ stacked: Ha
2339
+ }, Ra = /* @__PURE__ */ E({
2292
2340
  __name: "lume-bar-group",
2293
2341
  props: {
2294
- ...ge(),
2342
+ ...he(),
2295
2343
  classList: {
2296
2344
  type: [String, Array],
2297
2345
  default: () => []
2298
2346
  },
2299
- ...ga(!0),
2347
+ ...Ia(!0),
2300
2348
  transition: {
2301
2349
  type: Boolean,
2302
2350
  default: !0
@@ -2312,25 +2360,25 @@ const Ye = {
2312
2360
  type: i,
2313
2361
  xScale: u,
2314
2362
  yScale: s,
2315
- classList: d
2316
- } = B(r), { groupedData: v } = ht(n), { barXScale: f, barYScale: h } = ba(u, s, o), _ = c(() => typeof d.value == "string" ? [d.value] : d.value), m = c(() => {
2317
- const p = ya(n, i), { barAttributeGenerator: T } = Ye[p](
2363
+ classList: c
2364
+ } = H(r), { groupedData: v } = At(n), { barXScale: f, barYScale: y } = Ea(u, s, o), m = d(() => typeof c.value == "string" ? [c.value] : c.value), g = d(() => {
2365
+ const p = wa(n, i), { barAttributeGenerator: L } = tt[p](
2318
2366
  n,
2319
2367
  f,
2320
- h,
2368
+ y,
2321
2369
  o,
2322
2370
  a,
2323
- _.value
2371
+ m.value
2324
2372
  );
2325
- return T;
2326
- }), k = c(() => {
2373
+ return L;
2374
+ }), h = d(() => {
2327
2375
  if (l.value)
2328
- return o.value === L.HORIZONTAL ? "width" : "height";
2376
+ return o.value === O.HORIZONTAL ? "width" : "height";
2329
2377
  });
2330
- return { __sfc: !0, MIXIN_MAP: Ye, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: s, classList: d, groupedData: v, barXScale: f, barYScale: h, computedClasses: _, getBarAttributes: m, computedTransition: k, LumeBar: Re };
2378
+ return { __sfc: !0, MIXIN_MAP: tt, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: s, classList: c, groupedData: v, barXScale: f, barYScale: y, computedClasses: m, getBarAttributes: g, computedTransition: h, LumeBar: Pe };
2331
2379
  }
2332
2380
  });
2333
- var Oa = function() {
2381
+ var Sa = function() {
2334
2382
  var e = this, r = e._self._c, n = e._self._setupProxy;
2335
2383
  return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
2336
2384
  return r("g", { key: o, on: { mouseenter: function(l) {
@@ -2345,43 +2393,43 @@ var Oa = function() {
2345
2393
  } } }, "lume-bar", n.getBarAttributes(l, i, o, a), !1));
2346
2394
  }), 1);
2347
2395
  }), 0);
2348
- }, $a = [], Ia = /* @__PURE__ */ I(
2349
- xa,
2350
- Oa,
2351
- $a,
2396
+ }, Ba = [], Fa = /* @__PURE__ */ w(
2397
+ Ra,
2398
+ Sa,
2399
+ Ba,
2352
2400
  !1,
2353
2401
  null,
2354
2402
  null,
2355
2403
  null,
2356
2404
  null
2357
2405
  );
2358
- const Be = Ia.exports, wa = {
2359
- [L.VERTICAL]: {
2406
+ const je = Fa.exports, Pa = {
2407
+ [O.VERTICAL]: {
2360
2408
  withTooltip: !0,
2361
2409
  xAxisOptions: {},
2362
2410
  yAxisOptions: { gridLines: !0 },
2363
- margins: q.VERTICAL
2411
+ margins: Q.VERTICAL
2364
2412
  },
2365
- [L.HORIZONTAL]: {
2413
+ [O.HORIZONTAL]: {
2366
2414
  withTooltip: !0,
2367
2415
  xAxisOptions: { gridLines: !0 },
2368
2416
  yAxisOptions: { gridLines: !1 },
2369
- margins: q.HORIZONTAL
2417
+ margins: Q.HORIZONTAL
2370
2418
  }
2371
- }, Ea = /* @__PURE__ */ E({
2419
+ }, Ga = /* @__PURE__ */ E({
2372
2420
  __name: "lume-single-bar-chart",
2373
2421
  props: {
2374
- ...ae(Ne)
2422
+ ...ae(Se)
2375
2423
  },
2376
2424
  setup(t) {
2377
- const e = t, r = ne(j()), { orientation: n, options: a } = B(e), o = c(
2378
- () => wa[n.value || L.VERTICAL]
2425
+ const e = t, r = ee(V()), { orientation: n, options: a } = H(e), o = d(
2426
+ () => Pa[n.value || O.VERTICAL]
2379
2427
  // needs to be computed so that default options are reactive
2380
- ), { allOptions: l } = z(a, o);
2381
- return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: oe, LumeBarGroup: Be };
2428
+ ), { allOptions: l } = W(a, o);
2429
+ return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: oe, LumeBarGroup: je };
2382
2430
  }
2383
2431
  });
2384
- var Na = function() {
2432
+ var Va = function() {
2385
2433
  var e = this, r = e._self._c, n = e._self._setupProxy;
2386
2434
  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) {
2387
2435
  return [r(n.LumeBarGroup, e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1))];
@@ -2390,47 +2438,47 @@ var Na = function() {
2390
2438
  return [e._t(o, null, null, l || {})];
2391
2439
  } };
2392
2440
  })], null, !0) }, "lume-chart", n.props, !1));
2393
- }, Ca = [], Da = /* @__PURE__ */ I(
2394
- Ea,
2395
- Na,
2396
- Ca,
2441
+ }, ja = [], Ma = /* @__PURE__ */ w(
2442
+ Ga,
2443
+ Va,
2444
+ ja,
2397
2445
  !1,
2398
2446
  null,
2399
2447
  null,
2400
2448
  null,
2401
2449
  null
2402
2450
  );
2403
- const xo = Da.exports, Ra = {
2404
- [L.VERTICAL]: {
2451
+ const Ro = Ma.exports, za = {
2452
+ [O.VERTICAL]: {
2405
2453
  withTooltip: !0,
2406
2454
  xAxisOptions: {},
2407
2455
  yAxisOptions: { gridLines: !0 },
2408
- margins: q.VERTICAL
2456
+ margins: Q.VERTICAL
2409
2457
  },
2410
- [L.HORIZONTAL]: {
2458
+ [O.HORIZONTAL]: {
2411
2459
  withTooltip: !0,
2412
2460
  xAxisOptions: { gridLines: !0 },
2413
2461
  yAxisOptions: { gridLines: !1 },
2414
- margins: q.HORIZONTAL,
2462
+ margins: Q.HORIZONTAL,
2415
2463
  tooltipOptions: { position: "right" }
2416
2464
  }
2417
- }, Ha = /* @__PURE__ */ E({
2465
+ }, Wa = /* @__PURE__ */ E({
2418
2466
  __name: "lume-grouped-bar-chart",
2419
2467
  props: {
2420
2468
  ...ae()
2421
2469
  },
2422
2470
  setup(t) {
2423
- const e = t, r = ne(j()), { orientation: n, options: a } = B(e), o = c(
2424
- () => Ra[n.value || L.VERTICAL]
2471
+ const e = t, r = ee(V()), { orientation: n, options: a } = H(e), o = d(
2472
+ () => za[n.value || O.VERTICAL]
2425
2473
  // needs to be computed so that default options are reactive
2426
- ), { allOptions: l } = z(
2474
+ ), { allOptions: l } = W(
2427
2475
  a,
2428
2476
  o
2429
2477
  );
2430
- return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: oe, LumeBarGroup: Be };
2478
+ return { __sfc: !0, props: e, slots: r, orientation: n, options: a, baseOptions: o, allOptions: l, LumeChart: oe, LumeBarGroup: je };
2431
2479
  }
2432
2480
  });
2433
- var Sa = function() {
2481
+ var Za = function() {
2434
2482
  var e = this, r = e._self._c, n = e._self._setupProxy;
2435
2483
  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) {
2436
2484
  return [r(n.LumeBarGroup, e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1))];
@@ -2439,50 +2487,51 @@ var Sa = function() {
2439
2487
  return [e._t(o, null, null, l || {})];
2440
2488
  } };
2441
2489
  })], null, !0) }, "lume-chart", n.props, !1));
2442
- }, Ba = [], Pa = /* @__PURE__ */ I(
2443
- Ha,
2444
- Sa,
2445
- Ba,
2490
+ }, Xa = [], Ua = /* @__PURE__ */ w(
2491
+ Wa,
2492
+ Za,
2493
+ Xa,
2446
2494
  !1,
2447
2495
  null,
2448
2496
  null,
2449
2497
  null,
2450
2498
  null
2451
2499
  );
2452
- const Oo = Pa.exports, Fa = {
2453
- [L.VERTICAL]: {
2500
+ const So = Ua.exports, Ya = {
2501
+ [O.VERTICAL]: {
2454
2502
  withTooltip: !0,
2455
2503
  xAxisOptions: {},
2456
2504
  yAxisOptions: { gridLines: !0 },
2457
- margins: q.VERTICAL
2505
+ margins: Q.VERTICAL
2458
2506
  },
2459
- [L.HORIZONTAL]: {
2507
+ [O.HORIZONTAL]: {
2460
2508
  withTooltip: !0,
2461
2509
  xAxisOptions: { gridLines: !0 },
2462
2510
  yAxisOptions: { gridLines: !1 },
2463
- margins: q.HORIZONTAL,
2511
+ margins: Q.HORIZONTAL,
2464
2512
  tooltipOptions: { position: "right" }
2465
2513
  }
2466
- }, Ga = /* @__PURE__ */ E({
2514
+ }, Ka = /* @__PURE__ */ E({
2467
2515
  __name: "lume-stacked-bar-chart",
2468
2516
  props: {
2469
2517
  ...ae()
2470
2518
  },
2471
2519
  setup(t) {
2472
- const e = t, r = ne(j()), { data: n, orientation: a, options: o } = B(e), l = c(
2473
- () => Fa[a.value || L.VERTICAL]
2520
+ const e = t, r = ee(V()), { data: n, orientation: a, options: o } = H(e), l = d(
2521
+ () => Ya[a.value || O.VERTICAL]
2474
2522
  // needs to be computed so that default options are reactive
2475
- ), { allOptions: i } = z(
2523
+ ), { allOptions: i } = W(
2476
2524
  o,
2477
2525
  l
2478
- ), { internalData: u } = Se(n), { groupedData: s } = ht(u), { stackedXScaleGenerator: d, stackedYScaleGenerator: v } = Ta(
2526
+ ), { internalData: u } = Ve(n), { groupedData: s } = At(u), { stackedXScaleGenerator: c, stackedYScaleGenerator: v } = Da(
2479
2527
  s,
2480
- a
2528
+ a,
2529
+ o
2481
2530
  );
2482
- return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: l, allOptions: i, internalData: u, groupedData: s, stackedXScaleGenerator: d, stackedYScaleGenerator: v, LumeChart: oe, LumeBarGroup: Be };
2531
+ return { __sfc: !0, props: e, slots: r, data: n, orientation: a, options: o, baseOptions: l, allOptions: i, internalData: u, groupedData: s, stackedXScaleGenerator: c, stackedYScaleGenerator: v, LumeChart: oe, LumeBarGroup: je };
2483
2532
  }
2484
2533
  });
2485
- var Va = function() {
2534
+ var Ja = function() {
2486
2535
  var e = this, r = e._self._c, n = e._self._setupProxy;
2487
2536
  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) {
2488
2537
  return [r(n.LumeBarGroup, e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1))];
@@ -2491,17 +2540,17 @@ var Va = function() {
2491
2540
  return [e._t(o, null, null, l || {})];
2492
2541
  } };
2493
2542
  })], null, !0) }, "lume-chart", n.props, !1));
2494
- }, ja = [], Ma = /* @__PURE__ */ I(
2495
- Ga,
2496
- Va,
2497
- ja,
2543
+ }, Qa = [], qa = /* @__PURE__ */ w(
2544
+ Ka,
2545
+ Ja,
2546
+ Qa,
2498
2547
  !1,
2499
2548
  null,
2500
2549
  null,
2501
2550
  null,
2502
2551
  null
2503
2552
  );
2504
- const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */ E({
2553
+ const Bo = qa.exports, nt = 2, eo = /* @__PURE__ */ E({
2505
2554
  __name: "lume-line",
2506
2555
  props: {
2507
2556
  pathDefinition: {
@@ -2510,11 +2559,11 @@ const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */ E({
2510
2559
  },
2511
2560
  width: {
2512
2561
  type: Number,
2513
- default: Ke
2562
+ default: nt
2514
2563
  },
2515
2564
  color: {
2516
2565
  type: String,
2517
- default: M.Skyblue
2566
+ default: j.Skyblue
2518
2567
  },
2519
2568
  dashed: {
2520
2569
  type: Boolean,
@@ -2535,11 +2584,11 @@ const $o = Ma.exports, Ke = 2, za = /* @__PURE__ */ E({
2535
2584
  },
2536
2585
  emits: ["click"],
2537
2586
  setup(t, { emit: e }) {
2538
- const r = $(null);
2539
- return U(() => he(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: Ke, emit: e, root: r };
2587
+ const r = I(null);
2588
+ return X(() => me(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: nt, emit: e, root: r };
2540
2589
  }
2541
2590
  });
2542
- var Wa = function() {
2591
+ var to = function() {
2543
2592
  var e = this, r = e._self._c, n = e._self._setupProxy;
2544
2593
  return r("path", { ref: "root", staticClass: "lume-line", class: {
2545
2594
  [`lume-stroke--${e.color}`]: !0,
@@ -2551,28 +2600,28 @@ var Wa = function() {
2551
2600
  }, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
2552
2601
  return n.emit("click", a);
2553
2602
  } } });
2554
- }, Za = [], Xa = /* @__PURE__ */ I(
2555
- za,
2556
- Wa,
2557
- Za,
2603
+ }, no = [], ro = /* @__PURE__ */ w(
2604
+ eo,
2605
+ to,
2606
+ no,
2558
2607
  !1,
2559
2608
  null,
2560
2609
  "08896455",
2561
2610
  null,
2562
2611
  null
2563
2612
  );
2564
- const Ua = Xa.exports, Je = 4, Ya = /* @__PURE__ */ E({
2613
+ const ao = ro.exports, rt = 4, oo = /* @__PURE__ */ E({
2565
2614
  __name: "lume-point",
2566
2615
  props: {
2567
2616
  x: { type: Number, required: !0 },
2568
2617
  y: { type: Number, required: !0 },
2569
2618
  color: {
2570
2619
  type: String,
2571
- default: M.Skyblue
2620
+ default: j.Skyblue
2572
2621
  },
2573
2622
  radius: {
2574
2623
  type: Number,
2575
- default: Je
2624
+ default: rt
2576
2625
  },
2577
2626
  active: {
2578
2627
  type: Boolean,
@@ -2581,27 +2630,27 @@ const Ua = Xa.exports, Je = 4, Ya = /* @__PURE__ */ E({
2581
2630
  },
2582
2631
  emits: ["click"],
2583
2632
  setup(t, { emit: e }) {
2584
- const r = t, n = $(null), a = c(() => r.radius / 2);
2585
- return U(() => he(n.value)), { __sfc: !0, DEFAULT_RADIUS: Je, props: r, emit: e, root: n, strokeWidth: a };
2633
+ const r = t, n = I(null), a = d(() => r.radius / 2);
2634
+ return X(() => me(n.value)), { __sfc: !0, DEFAULT_RADIUS: rt, props: r, emit: e, root: n, strokeWidth: a };
2586
2635
  }
2587
2636
  });
2588
- var Ka = function() {
2637
+ var lo = function() {
2589
2638
  var e = this, r = e._self._c, n = e._self._setupProxy;
2590
2639
  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) {
2591
2640
  return n.emit("click", a);
2592
2641
  } } });
2593
- }, Ja = [], Qa = /* @__PURE__ */ I(
2594
- Ya,
2595
- Ka,
2596
- Ja,
2642
+ }, uo = [], io = /* @__PURE__ */ w(
2643
+ oo,
2644
+ lo,
2645
+ uo,
2597
2646
  !1,
2598
2647
  null,
2599
2648
  "9bacbd7d",
2600
2649
  null,
2601
2650
  null
2602
2651
  );
2603
- const qa = Qa.exports;
2604
- function gt(t) {
2652
+ const so = io.exports;
2653
+ function Tt(t) {
2605
2654
  function e(o) {
2606
2655
  let l = null;
2607
2656
  return o == null ? void 0 : o.reduce((i, u, s) => (u == null || u.value == null ? (l ? l.push(s) : l = [s], s === (o == null ? void 0 : o.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
@@ -2617,27 +2666,27 @@ function gt(t) {
2617
2666
  );
2618
2667
  };
2619
2668
  }
2620
- return { computedLineData: c(() => t.value.map((o) => {
2669
+ return { computedLineData: d(() => t.value.map((o) => {
2621
2670
  const l = e(o.values);
2622
2671
  return {
2623
2672
  ...o,
2624
2673
  isDashed: n(l),
2625
2674
  values: o.values.map((i, u) => {
2626
- var d, v;
2675
+ var c, v;
2627
2676
  const s = l.find(
2628
2677
  (f) => f.includes(u)
2629
2678
  );
2630
2679
  if (s) {
2631
- const f = s[0] - 1, h = s[s.length - 1] + 1;
2632
- let _ = (d = o.values[f]) == null ? void 0 : d.value, m = (v = o.values[h]) == null ? void 0 : v.value;
2633
- return _ == null && (_ = m), m == null && (m = _), {
2680
+ const f = s[0] - 1, y = s[s.length - 1] + 1;
2681
+ let m = (c = o.values[f]) == null ? void 0 : c.value, g = (v = o.values[y]) == null ? void 0 : v.value;
2682
+ return m == null && (m = g), g == null && (g = m), {
2634
2683
  value: r(
2635
- _,
2636
2684
  m,
2685
+ g,
2637
2686
  s.length,
2638
2687
  s.indexOf(u)
2639
2688
  ),
2640
- label: ut
2689
+ label: _t
2641
2690
  };
2642
2691
  }
2643
2692
  return i;
@@ -2645,22 +2694,22 @@ function gt(t) {
2645
2694
  };
2646
2695
  })) };
2647
2696
  }
2648
- function eo(t, e) {
2697
+ function co(t, e) {
2649
2698
  const r = t.bandwidth() / 2;
2650
2699
  return (n, a) => t(t.domain()[e + (a - 1)]) + r;
2651
2700
  }
2652
- function to(t, e) {
2701
+ function vo(t, e) {
2653
2702
  return (r, n) => t(e + (n - 1));
2654
2703
  }
2655
- function no(t, e, r, n) {
2656
- return $t().x(
2657
- te(r) ? eo(r, t) : to(r, t)
2704
+ function _o(t, e, r, n) {
2705
+ return Ht().x(
2706
+ q(r) ? co(r, t) : vo(r, t)
2658
2707
  ).y((o) => n(o))(e);
2659
2708
  }
2660
- const Qe = 1, ro = /* @__PURE__ */ E({
2709
+ const at = 1, fo = /* @__PURE__ */ E({
2661
2710
  __name: "lume-line-group",
2662
2711
  props: {
2663
- ...ge(),
2712
+ ...he(),
2664
2713
  withPoints: {
2665
2714
  type: Boolean,
2666
2715
  default: !0
@@ -2672,82 +2721,82 @@ const Qe = 1, ro = /* @__PURE__ */ E({
2672
2721
  },
2673
2722
  emits: ["line-click", "point-click", "lume__internal--hover"],
2674
2723
  setup(t, { emit: e }) {
2675
- const r = t, { data: n, options: a, xScale: o, yScale: l } = B(r), i = pe(
2724
+ const r = t, { data: n, options: a, xScale: o, yScale: l } = H(r), i = fe(
2676
2725
  "tooltipAnchorAttributes",
2677
2726
  null
2678
- ), { updateTooltipAnchorAttributes: u } = ft(
2727
+ ), { updateTooltipAnchorAttributes: u } = yt(
2679
2728
  i,
2680
2729
  a,
2681
2730
  o,
2682
2731
  l
2683
- ), s = c(() => {
2732
+ ), s = d(() => {
2684
2733
  if (n.value.every((N) => N.isDashed))
2685
2734
  return n.value;
2686
- const { computedLineData: y } = gt(n);
2687
- return a.value.withTooltip !== !1 && (i != null && i.value) && u(y.value), y.value;
2688
- }), d = c(() => {
2735
+ const { computedLineData: k } = Tt(n);
2736
+ return a.value.withTooltip !== !1 && (i != null && i.value) && u(k.value), k.value;
2737
+ }), c = d(() => {
2689
2738
  if (r.hoveredIndex === -1)
2690
2739
  return;
2691
- const y = Mt(
2740
+ const k = Kt(
2692
2741
  s.value,
2693
2742
  r.hoveredIndex
2694
2743
  );
2695
2744
  return {
2696
- d: `M ${$e(o.value, r.hoveredIndex)},${l.value.range()[1]}
2697
- V ${l.value(y)}`
2745
+ d: `M ${Ie(o.value, r.hoveredIndex)},${l.value.range()[1]}
2746
+ V ${l.value(k)}`
2698
2747
  // Move to X index, Vertical line to the highest point
2699
2748
  };
2700
- }), v = c(
2701
- () => o.value && Qe / (zt(o.value) - 1)
2749
+ }), v = d(
2750
+ () => o.value && at / (Jt(o.value) - 1)
2702
2751
  // Subtracting the first line (read below)
2703
- ), f = c(
2752
+ ), f = d(
2704
2753
  () => {
2705
- var y;
2706
- return ((y = a.value) == null ? void 0 : y.lineWidth) * 2 || void 0;
2754
+ var k;
2755
+ return ((k = a.value) == null ? void 0 : k.lineWidth) * 2 || void 0;
2707
2756
  }
2708
2757
  // If no `lineWidth`, returns NaN which needs to be undefined
2709
- ), h = c(
2758
+ ), y = d(
2710
2759
  () => o.value.bandwidth() / 2
2711
- ), _ = c(() => o.value.domain()), m = c(
2760
+ ), m = d(() => o.value.domain()), g = d(
2712
2761
  () => a.value.withPoints ?? r.withPoints
2713
2762
  );
2714
- function k(y) {
2715
- return s.value[y].values;
2763
+ function h(k) {
2764
+ return s.value[k].values;
2716
2765
  }
2717
- function p(y, N) {
2718
- var P, G;
2719
- const R = y === 0 ? [] : [
2720
- (P = k(N)[y - 1]) == null ? void 0 : P.value,
2721
- (G = k(N)[y]) == null ? void 0 : G.value
2766
+ function p(k, N) {
2767
+ var R, S;
2768
+ const D = k === 0 ? [] : [
2769
+ (R = h(N)[k - 1]) == null ? void 0 : R.value,
2770
+ (S = h(N)[k]) == null ? void 0 : S.value
2722
2771
  ];
2723
- return no(
2724
- y,
2725
- R,
2772
+ return _o(
2773
+ k,
2774
+ D,
2726
2775
  o.value,
2727
2776
  l.value
2728
2777
  ) || "";
2729
2778
  }
2730
- function T(y) {
2779
+ function L(k) {
2731
2780
  return {
2732
- animationDelay: y < 2 ? 0 : (y - 1) * v.value,
2781
+ animationDelay: k < 2 ? 0 : (k - 1) * v.value,
2733
2782
  animationDuration: v.value
2734
2783
  };
2735
2784
  }
2736
- function x(y, N) {
2737
- var P;
2738
- const R = (P = k(N)[y]) == null ? void 0 : P.value;
2785
+ function $(k, N) {
2786
+ var R;
2787
+ const D = (R = h(N)[k]) == null ? void 0 : R.value;
2739
2788
  return {
2740
- x: te(o.value) ? r.xScale(_.value[y]) + h.value : r.xScale(y),
2741
- y: l.value(R)
2789
+ x: q(o.value) ? r.xScale(m.value[k]) + y.value : r.xScale(k),
2790
+ y: l.value(D)
2742
2791
  };
2743
2792
  }
2744
- function A(y) {
2745
- return r.hoveredIndex === y;
2793
+ function T(k) {
2794
+ return r.hoveredIndex === k;
2746
2795
  }
2747
- return { __sfc: !0, LUME_TRANSITION_TIME_FULL: Qe, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: d, animationDuration: v, pointRadius: f, xAxisOffset: h, domain: _, computedWithPoints: m, getValuesFromDataset: k, getPathDefinition: p, getLineTransitionParams: T, getPointPosition: x, isPointActive: A, LumeLine: Ua, LumePoint: qa };
2796
+ return { __sfc: !0, LUME_TRANSITION_TIME_FULL: at, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: u, computedGroupData: s, overlayLineAttributes: c, animationDuration: v, pointRadius: f, xAxisOffset: y, domain: m, computedWithPoints: g, getValuesFromDataset: h, getPathDefinition: p, getLineTransitionParams: L, getPointPosition: $, isPointActive: T, LumeLine: ao, LumePoint: so };
2748
2797
  }
2749
2798
  });
2750
- var ao = function() {
2799
+ var po = function() {
2751
2800
  var e = this, r = e._self._c, n = e._self._setupProxy;
2752
2801
  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) {
2753
2802
  return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(l, i) {
@@ -2760,33 +2809,33 @@ var ao = function() {
2760
2809
  } } }, "lume-point", n.getPointPosition(i, o), !1));
2761
2810
  }), 1) : e._e()]);
2762
2811
  })], 2);
2763
- }, oo = [], lo = /* @__PURE__ */ I(
2764
- ro,
2765
- ao,
2766
- oo,
2812
+ }, mo = [], ho = /* @__PURE__ */ w(
2813
+ fo,
2814
+ po,
2815
+ mo,
2767
2816
  !1,
2768
2817
  null,
2769
2818
  "c4d7f0ca",
2770
2819
  null,
2771
2820
  null
2772
2821
  );
2773
- const yt = lo.exports, uo = {
2774
- margins: q.VERTICAL,
2822
+ const xt = ho.exports, go = {
2823
+ margins: Q.VERTICAL,
2775
2824
  startOnZero: !0,
2776
2825
  withTooltip: !0,
2777
2826
  xAxisOptions: {},
2778
2827
  yAxisOptions: { gridLines: !0 }
2779
- }, io = /* @__PURE__ */ E({
2828
+ }, yo = /* @__PURE__ */ E({
2780
2829
  __name: "lume-line-chart",
2781
2830
  props: {
2782
2831
  ...ae(null, !1)
2783
2832
  },
2784
2833
  setup(t) {
2785
- const e = t, r = ne(j()), { options: n } = B(e), { allOptions: a } = z(n, uo);
2786
- return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: oe, LumeLineGroup: yt };
2834
+ const e = t, r = ee(V()), { options: n } = H(e), { allOptions: a } = W(n, go);
2835
+ return { __sfc: !0, props: e, slots: r, options: n, allOptions: a, LumeChart: oe, LumeLineGroup: xt };
2787
2836
  }
2788
2837
  });
2789
- var so = function() {
2838
+ var bo = function() {
2790
2839
  var e = this, r = e._self._c, n = e._self._setupProxy;
2791
2840
  return r(n.LumeChart, e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
2792
2841
  return [r(n.LumeLineGroup, e._b({}, "lume-line-group", a, !1))];
@@ -2795,28 +2844,28 @@ var so = function() {
2795
2844
  return [e._t(o, null, null, l || {})];
2796
2845
  } };
2797
2846
  })], null, !0) }, "lume-chart", n.props, !1));
2798
- }, co = [], vo = /* @__PURE__ */ I(
2799
- io,
2800
- so,
2801
- co,
2847
+ }, ko = [], Ao = /* @__PURE__ */ w(
2848
+ yo,
2849
+ bo,
2850
+ ko,
2802
2851
  !1,
2803
2852
  null,
2804
2853
  null,
2805
2854
  null,
2806
2855
  null
2807
2856
  );
2808
- const Io = vo.exports;
2809
- function _o(t) {
2810
- return { areaPathDefinition: c(
2857
+ const Fo = Ao.exports;
2858
+ function To(t) {
2859
+ return { areaPathDefinition: d(
2811
2860
  () => function(r, n) {
2812
2861
  if (!r || !n)
2813
2862
  return;
2814
2863
  const a = t.value[0].values;
2815
- return It().x((o, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2864
+ return Rt().x((o, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
2816
2865
  }
2817
2866
  ) };
2818
2867
  }
2819
- const fo = {
2868
+ const xo = {
2820
2869
  margins: {
2821
2870
  top: 0,
2822
2871
  right: 0,
@@ -2830,31 +2879,31 @@ const fo = {
2830
2879
  tooltipOptions: {
2831
2880
  showTitle: !1
2832
2881
  }
2833
- }, po = /* @__PURE__ */ E({
2882
+ }, Lo = /* @__PURE__ */ E({
2834
2883
  __name: "lume-sparkline-chart",
2835
2884
  props: {
2836
- ...He(null),
2837
- ...ie()
2885
+ ...Ge(null),
2886
+ ...se()
2838
2887
  },
2839
2888
  setup(t, { expose: e }) {
2840
- const r = t, n = ne(j()), { data: a, options: o } = B(r), { internalData: l } = Se(a), { allOptions: i } = z(o, fo), { computedLineData: u } = gt(l), { areaPathDefinition: s } = _o(u), d = c(() => l.value[0].color), v = c(
2841
- () => a.value[0].areaColor || d.value
2889
+ const r = t, n = ee(V()), { data: a, options: o } = H(r), { internalData: l } = Ve(a), { allOptions: i } = W(o, xo), { computedLineData: u } = Tt(l), { areaPathDefinition: s } = To(u), c = d(() => l.value[0].color), v = d(
2890
+ () => a.value[0].areaColor || c.value
2842
2891
  );
2843
- function f(_) {
2892
+ function f(m) {
2844
2893
  return {
2845
- ..._,
2894
+ ...m,
2846
2895
  noMinSize: !0
2847
2896
  };
2848
2897
  }
2849
- function h(_, m, k) {
2850
- return ue().range([0, k.width]).domain([0, _[0].values.length - 1]);
2898
+ function y(m, g, h) {
2899
+ return ie().range([0, h.width]).domain([0, m[0].values.length - 1]);
2851
2900
  }
2852
2901
  return e({
2853
2902
  areaPathDefinition: s
2854
- }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: l, allOptions: i, computedLineData: u, areaPathDefinition: s, computedColor: d, areaColor: v, getSparklineOptions: f, xScaleGenerator: h, LumeChart: oe, LumeLineGroup: yt };
2903
+ }), { __sfc: !0, props: r, slots: n, data: a, options: o, internalData: l, allOptions: i, computedLineData: u, areaPathDefinition: s, computedColor: c, areaColor: v, getSparklineOptions: f, xScaleGenerator: y, LumeChart: oe, LumeLineGroup: xt };
2855
2904
  }
2856
2905
  });
2857
- var mo = function() {
2906
+ var Oo = function() {
2858
2907
  var e = this, r = e._self._c, n = e._self._setupProxy;
2859
2908
  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) {
2860
2909
  return [n.allOptions.showArea ? r("path", { class: [
@@ -2868,41 +2917,41 @@ var mo = function() {
2868
2917
  return [e._t(o, null, null, l || {})];
2869
2918
  } };
2870
2919
  })], null, !0) }, "lume-chart", n.props, !1));
2871
- }, ho = [], go = /* @__PURE__ */ I(
2872
- po,
2873
- mo,
2874
- ho,
2920
+ }, $o = [], Io = /* @__PURE__ */ w(
2921
+ Lo,
2922
+ Oo,
2923
+ $o,
2875
2924
  !1,
2876
2925
  null,
2877
2926
  "9fc2cb6e",
2878
2927
  null,
2879
2928
  null
2880
2929
  );
2881
- const wo = go.exports;
2930
+ const Po = Io.exports;
2882
2931
  export {
2883
- To as LumeAlluvialDiagram,
2884
- la as LumeAlluvialGroup,
2885
- Er as LumeAlluvialNodeLabel,
2886
- Hr as LumeAlluvialNodeValue,
2887
- fn as LumeAxis,
2888
- Re as LumeBar,
2889
- Lo as LumeBarChart,
2890
- Be as LumeBarGroup,
2932
+ Do as LumeAlluvialDiagram,
2933
+ ma as LumeAlluvialGroup,
2934
+ Gr as LumeAlluvialNodeLabel,
2935
+ Wr as LumeAlluvialNodeValue,
2936
+ bn as LumeAxis,
2937
+ Pe as LumeBar,
2938
+ Ho as LumeBarChart,
2939
+ je as LumeBarGroup,
2891
2940
  oe as LumeChart,
2892
- On as LumeChartContainer,
2893
- Nn as LumeChartLegend,
2894
- Oo as LumeGroupedBarChart,
2895
- Ua as LumeLine,
2896
- Io as LumeLineChart,
2897
- yt as LumeLineGroup,
2898
- pr as LumeOverlayGroup,
2899
- qa as LumePoint,
2900
- xo as LumeSingleBarChart,
2901
- wo as LumeSparklineChart,
2902
- $o as LumeStackedBarChart,
2903
- Jn as LumeTooltip,
2904
- Zn as LumeTooltipItem,
2905
- Vn as LumeTooltipSummary,
2906
- Sn as LumeTooltipTitle
2941
+ Cn as LumeChartContainer,
2942
+ Bn as LumeChartLegend,
2943
+ So as LumeGroupedBarChart,
2944
+ ao as LumeLine,
2945
+ Fo as LumeLineChart,
2946
+ xt as LumeLineGroup,
2947
+ kr as LumeOverlayGroup,
2948
+ so as LumePoint,
2949
+ Ro as LumeSingleBarChart,
2950
+ Po as LumeSparklineChart,
2951
+ Bo as LumeStackedBarChart,
2952
+ rr as LumeTooltip,
2953
+ Qn as LumeTooltipItem,
2954
+ Xn as LumeTooltipSummary,
2955
+ jn as LumeTooltipTitle
2907
2956
  };
2908
2957
  //# sourceMappingURL=index.js.map