@adyen/lume 1.11.4 → 1.11.5
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/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +18 -10
- package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +12 -12
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts +5 -6
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts +5 -5
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +16 -8
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts +5 -7
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts +9 -8
- package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts +4 -4
- package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +247 -77
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +18 -7
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +2 -2
- package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts +13 -5
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts +12 -4
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts +11 -3
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +2 -2
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts +16 -6
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts +15 -4
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts +12 -4
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +244 -84
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +152 -142
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +2 -2
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +4 -4
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +4 -4
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +4 -4
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -1
- package/dist/@types/composables/base.d.ts +5 -5
- package/dist/@types/composables/base.d.ts.map +1 -1
- package/dist/@types/composables/events.d.ts.map +1 -1
- package/dist/@types/composables/format.d.ts +1 -1
- package/dist/@types/composables/format.d.ts.map +1 -1
- package/dist/@types/composables/group-props.d.ts +3 -3
- package/dist/@types/composables/group-props.d.ts.map +1 -1
- package/dist/@types/composables/line-null-values.d.ts.map +1 -1
- package/dist/@types/composables/options.d.ts.map +1 -1
- package/dist/@types/composables/props.d.ts +8 -8
- package/dist/@types/composables/props.d.ts.map +1 -1
- package/dist/@types/composables/scales.d.ts +2 -2
- package/dist/@types/composables/scales.d.ts.map +1 -1
- package/dist/@types/composables/tooltip.d.ts +2 -2
- package/dist/@types/composables/tooltip.d.ts.map +1 -1
- package/dist/@types/docs/storybook-helpers.d.ts.map +1 -1
- package/dist/@types/plugin.d.ts.map +1 -1
- package/dist/@types/utils/helpers.d.ts +0 -8
- package/dist/@types/utils/helpers.d.ts.map +1 -1
- package/dist/@types/utils/margins.d.ts.map +1 -1
- package/dist/common/C28EuqGB.js +5 -0
- package/dist/common/C28EuqGB.js.map +1 -0
- package/dist/common/CB9KQjQz.js +5 -0
- package/dist/common/CB9KQjQz.js.map +1 -0
- package/dist/common/{DOsNWEJz.js → Da4Dej42.js} +337 -338
- package/dist/common/Da4Dej42.js.map +1 -0
- package/dist/common/DtjWrfsb.js +5 -0
- package/dist/common/DtjWrfsb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/scss/main.scss +9 -9
- package/dist/styles/main.css +2 -2
- package/package.json +5 -5
- package/dist/common/B2eP8VXX.js +0 -5
- package/dist/common/B2eP8VXX.js.map +0 -1
- package/dist/common/BVaEQc6H.js +0 -5
- package/dist/common/BVaEQc6H.js.map +0 -1
- package/dist/common/DOsNWEJz.js.map +0 -1
- package/dist/common/phC4rovR.js +0 -5
- package/dist/common/phC4rovR.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, ref as w, isRef as bt, computed as d, watch as H, toRefs as B, inject as Le, reactive as Oe, onMounted as ee, watchEffect as kt, onBeforeUnmount as xt, useSlots as M, nextTick as He, provide as Ee, defineAsyncComponent as Ne } from "vue";
|
|
2
2
|
import { sankeyLinkHorizontal as Mt, sankey as zt, sankeyJustify as Wt } from "d3-sankey";
|
|
3
|
-
import { format as Zt, ticks as Ut,
|
|
3
|
+
import { format as Zt, ticks as Ut, scaleLinear as fe, scaleBand as pe, link as Xt, line as Yt, area as Kt } from "d3";
|
|
4
4
|
import { createPopper as Jt } from "@popperjs/core";
|
|
5
5
|
const Qt = /* @__PURE__ */ N({
|
|
6
6
|
__name: "lume-tick",
|
|
@@ -171,19 +171,15 @@ function pn(t) {
|
|
|
171
171
|
)
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
|
-
const mn = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce(
|
|
175
|
-
(e, r) => e += (r &= 63) < 36 ? r.toString(36) : r < 62 ? (r - 26).toString(36).toUpperCase() : r > 62 ? "-" : "_",
|
|
176
|
-
""
|
|
177
|
-
);
|
|
178
174
|
function Ze(t, e) {
|
|
179
175
|
const r = e - t.length;
|
|
180
176
|
return r > 0 ? [...t, ...Array(r).fill({ value: null })] : t;
|
|
181
177
|
}
|
|
182
178
|
var X = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
183
179
|
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.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", t))(X || {});
|
|
184
|
-
const
|
|
180
|
+
const mn = "[lume] ";
|
|
185
181
|
function q(t, e = !0) {
|
|
186
|
-
e && At() || console.warn(
|
|
182
|
+
e && At() || console.warn(mn + "Warning: " + t);
|
|
187
183
|
}
|
|
188
184
|
const Ae = (t) => {
|
|
189
185
|
let e = null;
|
|
@@ -217,8 +213,8 @@ function Y(t, e) {
|
|
|
217
213
|
return n ? Lt(n, t.value) : t.value;
|
|
218
214
|
}) };
|
|
219
215
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
216
|
+
const _n = 0.2;
|
|
217
|
+
function hn(t, e, r) {
|
|
222
218
|
const n = w(), a = d(() => Math.max(...t.value.range())), o = d(() => e.value.length);
|
|
223
219
|
function l() {
|
|
224
220
|
if (!e.value) return;
|
|
@@ -226,7 +222,7 @@ function gn(t, e, r) {
|
|
|
226
222
|
(v, s) => v + s.ref.getBoundingClientRect().width,
|
|
227
223
|
0
|
|
228
224
|
), c = Math.ceil(u / o.value);
|
|
229
|
-
n.value = c + c *
|
|
225
|
+
n.value = c + c * _n;
|
|
230
226
|
}
|
|
231
227
|
function i(u) {
|
|
232
228
|
if (!e.value) return !0;
|
|
@@ -240,11 +236,11 @@ function gn(t, e, r) {
|
|
|
240
236
|
const O = {
|
|
241
237
|
HORIZONTAL: "horizontal",
|
|
242
238
|
VERTICAL: "vertical"
|
|
243
|
-
},
|
|
239
|
+
}, gn = {
|
|
244
240
|
SINGLE: "single",
|
|
245
241
|
GROUPED: "grouped",
|
|
246
242
|
STACKED: "stacked"
|
|
247
|
-
}, $t = "No data", rt = 20, It = 0.33, wt = 0.5, Et = 12, _e = 8,
|
|
243
|
+
}, $t = "No data", rt = 20, It = 0.33, wt = 0.5, Et = 12, _e = 8, yn = 1, bn = [
|
|
248
244
|
"auto",
|
|
249
245
|
"auto-start",
|
|
250
246
|
"auto-end",
|
|
@@ -280,14 +276,14 @@ const Nt = {
|
|
|
280
276
|
tickFormat: null,
|
|
281
277
|
/** Space between the tick label and the axis line. */
|
|
282
278
|
tickPadding: 12
|
|
283
|
-
},
|
|
279
|
+
}, kn = {
|
|
284
280
|
...Nt,
|
|
285
281
|
withTitle: !1,
|
|
286
282
|
skip: !0
|
|
287
|
-
},
|
|
283
|
+
}, xn = {
|
|
288
284
|
...Nt,
|
|
289
285
|
gridLines: !0
|
|
290
|
-
},
|
|
286
|
+
}, An = function(t, e, r) {
|
|
291
287
|
const n = d(() => t.value.step() * t.value.paddingInner() / 2);
|
|
292
288
|
function a(u, c) {
|
|
293
289
|
return {
|
|
@@ -329,7 +325,7 @@ const Nt = {
|
|
|
329
325
|
getTickGroupAttributes: a,
|
|
330
326
|
getTickLabelAttributes: i
|
|
331
327
|
};
|
|
332
|
-
},
|
|
328
|
+
}, Tn = function(t, e, r) {
|
|
333
329
|
const n = d(() => t.value.step() * t.value.paddingInner() / 2);
|
|
334
330
|
function a(u, c) {
|
|
335
331
|
return {
|
|
@@ -367,7 +363,7 @@ const Nt = {
|
|
|
367
363
|
getTickGroupAttributes: a,
|
|
368
364
|
getTickLabelAttributes: i
|
|
369
365
|
};
|
|
370
|
-
},
|
|
366
|
+
}, Ln = function(t, e, r) {
|
|
371
367
|
const n = d(() => {
|
|
372
368
|
const u = t.value.ticks();
|
|
373
369
|
return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
|
|
@@ -402,7 +398,7 @@ const Nt = {
|
|
|
402
398
|
getTickGroupAttributes: a,
|
|
403
399
|
getTickLabelAttributes: i
|
|
404
400
|
};
|
|
405
|
-
},
|
|
401
|
+
}, On = function(t, e, r) {
|
|
406
402
|
const n = d(() => {
|
|
407
403
|
const u = t.value.ticks();
|
|
408
404
|
return u.length > 1 ? t.value(u[1]) - t.value(u[0]) : 0;
|
|
@@ -440,14 +436,14 @@ const Nt = {
|
|
|
440
436
|
getTickGroupAttributes: a,
|
|
441
437
|
getTickLabelAttributes: i
|
|
442
438
|
};
|
|
443
|
-
},
|
|
444
|
-
"x-band-scale-axis":
|
|
445
|
-
"y-band-scale-axis":
|
|
446
|
-
"x-linear-scale-axis":
|
|
447
|
-
"y-linear-scale-axis":
|
|
439
|
+
}, $n = {
|
|
440
|
+
"x-band-scale-axis": An,
|
|
441
|
+
"y-band-scale-axis": Tn,
|
|
442
|
+
"x-linear-scale-axis": Ln,
|
|
443
|
+
"y-linear-scale-axis": On
|
|
448
444
|
};
|
|
449
445
|
var Re = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Re || {}), Se = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Se || {}), xe = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(xe || {});
|
|
450
|
-
const
|
|
446
|
+
const In = /* @__PURE__ */ N({
|
|
451
447
|
__name: "lume-axis",
|
|
452
448
|
props: {
|
|
453
449
|
scale: {
|
|
@@ -488,8 +484,8 @@ const wn = /* @__PURE__ */ N({
|
|
|
488
484
|
() => h.value === "x" && u.value === O.VERTICAL || h.value === "y" && u.value === O.HORIZONTAL
|
|
489
485
|
), { allOptions: p } = Y(
|
|
490
486
|
i,
|
|
491
|
-
h.value === "x" ?
|
|
492
|
-
), { showTick: k } =
|
|
487
|
+
h.value === "x" ? kn : xn
|
|
488
|
+
), { showTick: k } = hn(a, s, p), x = d(
|
|
493
489
|
() => c.value || !a.value || un(a.value)
|
|
494
490
|
), T = d(() => {
|
|
495
491
|
var g, A, $, C;
|
|
@@ -559,7 +555,7 @@ const wn = /* @__PURE__ */ N({
|
|
|
559
555
|
}
|
|
560
556
|
function Q() {
|
|
561
557
|
if (!a.value) return;
|
|
562
|
-
const g = a.value.step ? "bandScale" : "linearScale", A =
|
|
558
|
+
const g = a.value.step ? "bandScale" : "linearScale", A = $n[`${h.value}-${Re[g]}`];
|
|
563
559
|
Object.entries(A(a, o, p) || []).forEach(
|
|
564
560
|
([$, C]) => {
|
|
565
561
|
v[$] = C;
|
|
@@ -569,7 +565,7 @@ const wn = /* @__PURE__ */ N({
|
|
|
569
565
|
return H(a, Q, { flush: "sync", immediate: !0 }), H(a, W, { immediate: !0 }), H(s, W), H(P, (g) => e("lume__internal--axis-size", g)), H(r.containerSize, te), ee(() => $e(f.value)), { __sfc: !0, SCALE_MIXIN_MAP: Re, POSITIONS: Se, TYPES: xe, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: i, orientation: u, isEmpty: c, mixins: v, tickRefs: s, root: f, ticksWithAttributes: m, computedPosition: _, computedType: h, shouldHover: y, allOptions: p, showTick: k, alignAxisBaseline: x, axisTransform: T, ticks: I, tickFormatter: L, isHovering: D, axisLabelOffset: R, axisSize: P, formatTick: G, handleTickMouseenter: j, handleTickClick: J, getTextNode: oe, setTicks: W, updateGridlines: te, init: Q, LumeTick: nn };
|
|
570
566
|
}
|
|
571
567
|
});
|
|
572
|
-
var
|
|
568
|
+
var wn = function() {
|
|
573
569
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
574
570
|
return n.scale ? r("g", { ref: "root", staticClass: "axis", attrs: { transform: n.axisTransform, "data-j-axis": "" }, on: { mouseleave: function(a) {
|
|
575
571
|
return n.emit("mouseleave", a);
|
|
@@ -586,16 +582,16 @@ var En = function() {
|
|
|
586
582
|
a
|
|
587
583
|
);
|
|
588
584
|
} } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
|
|
589
|
-
},
|
|
585
|
+
}, En = [], Nn = /* @__PURE__ */ E(
|
|
586
|
+
In,
|
|
590
587
|
wn,
|
|
591
588
|
En,
|
|
592
|
-
Nn,
|
|
593
589
|
!1,
|
|
594
590
|
null,
|
|
595
591
|
null
|
|
596
592
|
);
|
|
597
|
-
const
|
|
598
|
-
function
|
|
593
|
+
const Hn = Nn.exports;
|
|
594
|
+
function Dn(t, e, r, n) {
|
|
599
595
|
const a = d(() => r.value > 0 && r.value < 1), o = d(
|
|
600
596
|
() => n.value > 0 && n.value < 1
|
|
601
597
|
), l = d(
|
|
@@ -607,13 +603,13 @@ function Rn(t, e, r, n) {
|
|
|
607
603
|
);
|
|
608
604
|
return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
|
|
609
605
|
}
|
|
610
|
-
function
|
|
606
|
+
function Rn(t, e, r, n) {
|
|
611
607
|
const a = w(0), o = w(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
|
|
612
608
|
return ee(() => {
|
|
613
609
|
a.value = r.value, o.value = n.value;
|
|
614
610
|
}), H(r, (i) => a.value = i), H(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
|
|
615
611
|
}
|
|
616
|
-
const
|
|
612
|
+
const Sn = /* @__PURE__ */ N({
|
|
617
613
|
__name: "lume-bar",
|
|
618
614
|
props: {
|
|
619
615
|
x: {
|
|
@@ -653,11 +649,11 @@ const Pn = /* @__PURE__ */ N({
|
|
|
653
649
|
setup(t, { emit: e }) {
|
|
654
650
|
const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), c = w(null), v = d(
|
|
655
651
|
() => typeof u.value == "string" ? [u.value] : u.value
|
|
656
|
-
), s = d(() => i.value === "width"), f = d(() => i.value === "height"), m =
|
|
652
|
+
), s = d(() => i.value === "width"), f = d(() => i.value === "height"), m = Rn(n, a, o, l), { computedX: _, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = Dn(n, a, o, l), k = d(() => y.value ? 1 : (s.value ? m.computedWidth : o).value), x = d(() => p.value ? 1 : (f.value ? m.computedHeight : l).value), T = s.value || f.value ? m.transformOrigin : null;
|
|
657
653
|
return ee(() => $e(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: i, classList: u, root: c, computedClasses: v, shouldTransitionWidth: s, shouldTransitionHeight: f, transitionProps: m, computedX: _, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: k, computedHeight: x, transformOrigin: T };
|
|
658
654
|
}
|
|
659
655
|
});
|
|
660
|
-
var
|
|
656
|
+
var Pn = function() {
|
|
661
657
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
662
658
|
return r("rect", { ref: "root", staticClass: "lume-bar", class: [
|
|
663
659
|
{
|
|
@@ -674,21 +670,21 @@ var Bn = function() {
|
|
|
674
670
|
}, mouseleave: function(a) {
|
|
675
671
|
return n.emit("mouseleave", a);
|
|
676
672
|
} } });
|
|
677
|
-
},
|
|
673
|
+
}, Bn = [], Cn = /* @__PURE__ */ E(
|
|
674
|
+
Sn,
|
|
678
675
|
Pn,
|
|
679
676
|
Bn,
|
|
680
|
-
Cn,
|
|
681
677
|
!1,
|
|
682
678
|
null,
|
|
683
679
|
"8e8f732a"
|
|
684
680
|
);
|
|
685
|
-
const Ue =
|
|
681
|
+
const Ue = Cn.exports;
|
|
686
682
|
var ne = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(ne || {}), z = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(z || {}), Ht = /* @__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))(Ht || {}), Xe = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Xe || {}), Ye = /* @__PURE__ */ ((t) => (t.White = "white", t.Black = "black", t.Green = "green", t.Orange = "orange", t.Red = "red", t.Grey = "grey", t.Grey10 = "grey-10", t.Grey20 = "grey-20", t.Grey30 = "grey-30", t.Grey40 = "grey-40", t.Grey50 = "grey-50", t.Grey60 = "grey-60", t.Grey70 = "grey-70", t.Grey80 = "grey-80", t.Grey90 = "grey-90", t.Grey100 = "grey-100", t))(Ye || {}), Ke = /* @__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))(Ke || {});
|
|
687
|
-
const
|
|
688
|
-
function
|
|
689
|
-
return t === ne.Divergent ?
|
|
683
|
+
const Gn = ne.Categorical, he = z.Skyblue, Fn = Xe.SkyTeal;
|
|
684
|
+
function jn(t) {
|
|
685
|
+
return t === ne.Divergent ? Fn : he;
|
|
690
686
|
}
|
|
691
|
-
function
|
|
687
|
+
function Vn(t) {
|
|
692
688
|
return Object.values(Ke).includes(t);
|
|
693
689
|
}
|
|
694
690
|
function at(t, e) {
|
|
@@ -699,15 +695,15 @@ function at(t, e) {
|
|
|
699
695
|
...Ke
|
|
700
696
|
}).includes(t);
|
|
701
697
|
}
|
|
702
|
-
function
|
|
698
|
+
function Mn(t, e) {
|
|
703
699
|
const r = Object.values(z).indexOf(t);
|
|
704
700
|
return fn(Object.values(z), r > -1 ? r : 0)[e];
|
|
705
701
|
}
|
|
706
|
-
function
|
|
702
|
+
function zn(t, e) {
|
|
707
703
|
const r = 50 + e * 10;
|
|
708
704
|
return `${t}-${r}`;
|
|
709
705
|
}
|
|
710
|
-
function
|
|
706
|
+
function Wn(t, e) {
|
|
711
707
|
const r = (e + 1) * 10;
|
|
712
708
|
return `${t}-${r}`;
|
|
713
709
|
}
|
|
@@ -715,20 +711,20 @@ function ot(t, e, r) {
|
|
|
715
711
|
switch (e) {
|
|
716
712
|
default:
|
|
717
713
|
case ne.Categorical:
|
|
718
|
-
return
|
|
714
|
+
return Vn(t) ? t : Mn(t, r);
|
|
719
715
|
case ne.Sequential:
|
|
720
|
-
return
|
|
716
|
+
return zn(t, r);
|
|
721
717
|
case ne.Divergent:
|
|
722
|
-
return
|
|
718
|
+
return Wn(t, r);
|
|
723
719
|
}
|
|
724
720
|
}
|
|
725
|
-
function
|
|
726
|
-
return at(t, r) ? t : (n > 4 && (q(X.ColorLoop), n = n % 5), at(e, r) ? ot(e, r, n) : ot(
|
|
721
|
+
function Zn(t, e, r = Gn, n) {
|
|
722
|
+
return at(t, r) ? t : (n > 4 && (q(X.ColorLoop), n = n % 5), at(e, r) ? ot(e, r, n) : ot(jn(r), r, n));
|
|
727
723
|
}
|
|
728
|
-
function
|
|
724
|
+
function Un(t) {
|
|
729
725
|
return t.map((e) => on(e) ? e : { value: e });
|
|
730
726
|
}
|
|
731
|
-
function
|
|
727
|
+
function Xn(t) {
|
|
732
728
|
return t.__internal === !0;
|
|
733
729
|
}
|
|
734
730
|
const Je = (t = null) => ({
|
|
@@ -754,12 +750,12 @@ function Qe(t, e, r, n, a) {
|
|
|
754
750
|
const o = Oe({
|
|
755
751
|
width: 0,
|
|
756
752
|
height: 0
|
|
757
|
-
}), l =
|
|
753
|
+
}), l = crypto.randomUUID(), i = d(() => {
|
|
758
754
|
var v;
|
|
759
755
|
return t.value.length > 5 && q(X.DatasetLength), (v = t.value) == null ? void 0 : v.map(
|
|
760
756
|
(s, f) => {
|
|
761
|
-
if (
|
|
762
|
-
const m =
|
|
757
|
+
if (Xn(s)) return s;
|
|
758
|
+
const m = Un(s.values), _ = Zn(
|
|
763
759
|
s.color,
|
|
764
760
|
r == null ? void 0 : r.value,
|
|
765
761
|
n == null ? void 0 : n.value.colorPalette,
|
|
@@ -786,7 +782,7 @@ function Qe(t, e, r, n, a) {
|
|
|
786
782
|
updateSize: c
|
|
787
783
|
};
|
|
788
784
|
}
|
|
789
|
-
const
|
|
785
|
+
const Yn = () => ({
|
|
790
786
|
xScale: {
|
|
791
787
|
type: Function,
|
|
792
788
|
default: null
|
|
@@ -796,7 +792,7 @@ const Kn = () => ({
|
|
|
796
792
|
default: null
|
|
797
793
|
}
|
|
798
794
|
});
|
|
799
|
-
function
|
|
795
|
+
function Kn(t, e, r, n, a) {
|
|
800
796
|
const o = w(null), l = w(null);
|
|
801
797
|
function i() {
|
|
802
798
|
var v, s, f, m;
|
|
@@ -828,16 +824,19 @@ function Jn(t, e, r, n, a) {
|
|
|
828
824
|
function lt(t, e, r, n) {
|
|
829
825
|
const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? wt : It);
|
|
830
826
|
return Object.assign(
|
|
831
|
-
|
|
827
|
+
pe().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((c, v) => v)),
|
|
832
828
|
{ labels: t }
|
|
833
829
|
);
|
|
834
830
|
}
|
|
835
831
|
function ut(t, e, r, n) {
|
|
836
832
|
const a = Tt(t).filter((v) => v != null), o = [0, e];
|
|
837
833
|
if (a.length === 0)
|
|
838
|
-
return
|
|
839
|
-
const l = Math.min(...a), i = n && l > 0 ? 0 : l
|
|
840
|
-
|
|
834
|
+
return fe().range(o).domain([0, 0]).nice();
|
|
835
|
+
const l = Math.min(...a), i = n && l > 0 ? 0 : l;
|
|
836
|
+
let u = Math.max(...a);
|
|
837
|
+
n && u < 0 && (u = 0);
|
|
838
|
+
const c = r === O.HORIZONTAL ? [i, u] : [u, i];
|
|
839
|
+
return fe().range(o).domain(c).nice();
|
|
841
840
|
}
|
|
842
841
|
function it(t) {
|
|
843
842
|
return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
|
|
@@ -856,9 +855,9 @@ function st(t, e, {
|
|
|
856
855
|
function qe(t) {
|
|
857
856
|
return Object.values(O).includes(t);
|
|
858
857
|
}
|
|
859
|
-
const
|
|
858
|
+
const ie = (t, e = !0) => ({
|
|
860
859
|
...Je(t),
|
|
861
|
-
...
|
|
860
|
+
...Yn(),
|
|
862
861
|
...me(),
|
|
863
862
|
classList: {
|
|
864
863
|
type: [String, Array],
|
|
@@ -875,7 +874,7 @@ const ce = (t, e = !0) => ({
|
|
|
875
874
|
validator: qe
|
|
876
875
|
}
|
|
877
876
|
} : {}
|
|
878
|
-
}),
|
|
877
|
+
}), Jn = (t) => ({
|
|
879
878
|
...Je(t),
|
|
880
879
|
...me(),
|
|
881
880
|
hoveredElement: {
|
|
@@ -883,7 +882,7 @@ const ce = (t, e = !0) => ({
|
|
|
883
882
|
default: null
|
|
884
883
|
}
|
|
885
884
|
});
|
|
886
|
-
function
|
|
885
|
+
function Qn() {
|
|
887
886
|
const t = w(), e = Oe({
|
|
888
887
|
dimensions: {}
|
|
889
888
|
}), r = new ResizeObserver((n) => {
|
|
@@ -897,7 +896,7 @@ function qn() {
|
|
|
897
896
|
r.unobserve(t.value);
|
|
898
897
|
}), { resizeState: e, resizeRef: t };
|
|
899
898
|
}
|
|
900
|
-
const
|
|
899
|
+
const qn = /* @__PURE__ */ N({
|
|
901
900
|
__name: "lume-chart-container",
|
|
902
901
|
props: {
|
|
903
902
|
margins: {
|
|
@@ -924,7 +923,7 @@ const er = /* @__PURE__ */ N({
|
|
|
924
923
|
},
|
|
925
924
|
emits: ["click", "mouseenter", "mouseleave", "resize"],
|
|
926
925
|
setup(t, { emit: e }) {
|
|
927
|
-
const r = t, { margins: n, containerSize: a } = B(r), o = w(null), { resizeRef: l, resizeState: i } =
|
|
926
|
+
const r = t, { margins: n, containerSize: a } = B(r), o = w(null), { resizeRef: l, resizeState: i } = Qn(), u = d(
|
|
928
927
|
() => a.value.height + n.value.top + n.value.bottom
|
|
929
928
|
);
|
|
930
929
|
return kt(() => {
|
|
@@ -942,7 +941,7 @@ const er = /* @__PURE__ */ N({
|
|
|
942
941
|
}), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState: i, svgHeight: u };
|
|
943
942
|
}
|
|
944
943
|
});
|
|
945
|
-
var
|
|
944
|
+
var er = function() {
|
|
946
945
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
947
946
|
return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
|
|
948
947
|
"lume-chart-container--minimum": !e.noMinSize
|
|
@@ -955,15 +954,15 @@ var tr = function() {
|
|
|
955
954
|
}, mouseleave: function(a) {
|
|
956
955
|
return n.emit("mouseleave", a);
|
|
957
956
|
} } }, [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);
|
|
958
|
-
},
|
|
957
|
+
}, tr = [], nr = /* @__PURE__ */ E(
|
|
958
|
+
qn,
|
|
959
959
|
er,
|
|
960
960
|
tr,
|
|
961
|
-
nr,
|
|
962
961
|
!1,
|
|
963
962
|
null,
|
|
964
963
|
"d53cdc3e"
|
|
965
964
|
);
|
|
966
|
-
const
|
|
965
|
+
const rr = nr.exports, ar = /* @__PURE__ */ N({
|
|
967
966
|
__name: "lume-chart-legend",
|
|
968
967
|
props: {
|
|
969
968
|
data: {
|
|
@@ -977,7 +976,7 @@ const ar = rr.exports, or = /* @__PURE__ */ N({
|
|
|
977
976
|
return { __sfc: !0, emit: e };
|
|
978
977
|
}
|
|
979
978
|
});
|
|
980
|
-
var
|
|
979
|
+
var or = function() {
|
|
981
980
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
982
981
|
return r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" }, on: { mouseleave: function(a) {
|
|
983
982
|
return n.emit("mouseleave");
|
|
@@ -988,39 +987,39 @@ var lr = function() {
|
|
|
988
987
|
return n.emit("mouseenter", { index: o, dataset: a, event: l });
|
|
989
988
|
} } }, [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) + " ")]);
|
|
990
989
|
}), 0);
|
|
991
|
-
},
|
|
990
|
+
}, lr = [], ur = /* @__PURE__ */ E(
|
|
991
|
+
ar,
|
|
992
992
|
or,
|
|
993
993
|
lr,
|
|
994
|
-
ur,
|
|
995
994
|
!1,
|
|
996
995
|
null,
|
|
997
996
|
"6f1d1c44"
|
|
998
997
|
);
|
|
999
|
-
const
|
|
1000
|
-
var
|
|
998
|
+
const ir = ur.exports, sr = {};
|
|
999
|
+
var cr = function() {
|
|
1001
1000
|
var e = this, r = e._self._c;
|
|
1002
1001
|
return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
|
|
1003
|
-
},
|
|
1002
|
+
}, dr = [], vr = /* @__PURE__ */ E(
|
|
1003
|
+
sr,
|
|
1004
1004
|
cr,
|
|
1005
1005
|
dr,
|
|
1006
|
-
vr,
|
|
1007
1006
|
!1,
|
|
1008
1007
|
null,
|
|
1009
1008
|
"8af3fac6"
|
|
1010
1009
|
);
|
|
1011
|
-
const
|
|
1012
|
-
var
|
|
1010
|
+
const fr = vr.exports, pr = {};
|
|
1011
|
+
var mr = function() {
|
|
1013
1012
|
var e = this, r = e._self._c;
|
|
1014
1013
|
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)]);
|
|
1015
|
-
},
|
|
1014
|
+
}, _r = [], hr = /* @__PURE__ */ E(
|
|
1015
|
+
pr,
|
|
1016
1016
|
mr,
|
|
1017
1017
|
_r,
|
|
1018
|
-
hr,
|
|
1019
1018
|
!1,
|
|
1020
1019
|
null,
|
|
1021
1020
|
"4ed7ec1b"
|
|
1022
1021
|
);
|
|
1023
|
-
const
|
|
1022
|
+
const gr = hr.exports, yr = /* @__PURE__ */ N({
|
|
1024
1023
|
__name: "lume-tooltip-item",
|
|
1025
1024
|
props: {
|
|
1026
1025
|
color: {
|
|
@@ -1032,18 +1031,18 @@ const yr = gr.exports, br = /* @__PURE__ */ N({
|
|
|
1032
1031
|
return { __sfc: !0 };
|
|
1033
1032
|
}
|
|
1034
1033
|
});
|
|
1035
|
-
var
|
|
1034
|
+
var br = function() {
|
|
1036
1035
|
var e = this, r = e._self._c;
|
|
1037
1036
|
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)]);
|
|
1038
|
-
},
|
|
1037
|
+
}, kr = [], xr = /* @__PURE__ */ E(
|
|
1038
|
+
yr,
|
|
1039
1039
|
br,
|
|
1040
1040
|
kr,
|
|
1041
|
-
xr,
|
|
1042
1041
|
!1,
|
|
1043
1042
|
null,
|
|
1044
1043
|
"4f995c3c"
|
|
1045
1044
|
);
|
|
1046
|
-
const
|
|
1045
|
+
const Ar = xr.exports, Tr = /* @__PURE__ */ N({
|
|
1047
1046
|
__name: "lume-tooltip",
|
|
1048
1047
|
props: {
|
|
1049
1048
|
opened: {
|
|
@@ -1061,7 +1060,7 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1061
1060
|
position: {
|
|
1062
1061
|
type: String,
|
|
1063
1062
|
default: "auto",
|
|
1064
|
-
validator: (t) =>
|
|
1063
|
+
validator: (t) => bn.includes(t)
|
|
1065
1064
|
},
|
|
1066
1065
|
fixedPositioning: {
|
|
1067
1066
|
type: Boolean,
|
|
@@ -1134,10 +1133,10 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1134
1133
|
async (I, L) => {
|
|
1135
1134
|
!L && I ? (await He(), k()) : T();
|
|
1136
1135
|
}
|
|
1137
|
-
), ee(k), xt(x), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: v, allModifiers: s, showTitle: f, formatValue: m, formatTitle: _, summaryItem: h, hasSummary: y, computedItems: p, initPopper: k, destroyPopper: x, updatePopper: T, LumeTooltipTitle:
|
|
1136
|
+
), ee(k), xt(x), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: i, allOptions: u, computedFixedPositioning: c, strategy: v, allModifiers: s, showTitle: f, formatValue: m, formatTitle: _, summaryItem: h, hasSummary: y, computedItems: p, initPopper: k, destroyPopper: x, updatePopper: T, LumeTooltipTitle: fr, LumeTooltipSummary: gr, LumeTooltipItem: Ar };
|
|
1138
1137
|
}
|
|
1139
1138
|
});
|
|
1140
|
-
var
|
|
1139
|
+
var Lr = function() {
|
|
1141
1140
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1142
1141
|
return e.opened && e.targetElement ? r("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", class: {
|
|
1143
1142
|
"lume-tooltip--pointer-events": n.options.withPointerEvents
|
|
@@ -1162,15 +1161,15 @@ var Or = function() {
|
|
|
1162
1161
|
});
|
|
1163
1162
|
})], 2)];
|
|
1164
1163
|
})], 2) : e._e();
|
|
1165
|
-
},
|
|
1164
|
+
}, Or = [], $r = /* @__PURE__ */ E(
|
|
1165
|
+
Tr,
|
|
1166
1166
|
Lr,
|
|
1167
1167
|
Or,
|
|
1168
|
-
$r,
|
|
1169
1168
|
!1,
|
|
1170
1169
|
null,
|
|
1171
|
-
"
|
|
1170
|
+
"6f13599d"
|
|
1172
1171
|
);
|
|
1173
|
-
const
|
|
1172
|
+
const Ir = $r.exports, Ie = () => ({
|
|
1174
1173
|
data: {
|
|
1175
1174
|
type: Array,
|
|
1176
1175
|
required: !0
|
|
@@ -1212,7 +1211,7 @@ const wr = Ir.exports, Ie = () => ({
|
|
|
1212
1211
|
type: [String, Array],
|
|
1213
1212
|
default: () => []
|
|
1214
1213
|
}
|
|
1215
|
-
}),
|
|
1214
|
+
}), wr = /* @__PURE__ */ N({
|
|
1216
1215
|
__name: "lume-overlay-group",
|
|
1217
1216
|
props: {
|
|
1218
1217
|
...Ie(),
|
|
@@ -1240,7 +1239,7 @@ const wr = Ir.exports, Ie = () => ({
|
|
|
1240
1239
|
return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Ue };
|
|
1241
1240
|
}
|
|
1242
1241
|
});
|
|
1243
|
-
var
|
|
1242
|
+
var Er = function() {
|
|
1244
1243
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1245
1244
|
return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(a, o) {
|
|
1246
1245
|
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) {
|
|
@@ -1249,15 +1248,15 @@ var Nr = function() {
|
|
|
1249
1248
|
return n.emit("click", { index: o, event: l });
|
|
1250
1249
|
} } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
|
|
1251
1250
|
}), 1);
|
|
1252
|
-
},
|
|
1251
|
+
}, Nr = [], Hr = /* @__PURE__ */ E(
|
|
1252
|
+
wr,
|
|
1253
1253
|
Er,
|
|
1254
1254
|
Nr,
|
|
1255
|
-
Hr,
|
|
1256
1255
|
!1,
|
|
1257
1256
|
null,
|
|
1258
1257
|
null
|
|
1259
1258
|
);
|
|
1260
|
-
const
|
|
1259
|
+
const Dr = Hr.exports, Rr = [
|
|
1261
1260
|
"axis-click",
|
|
1262
1261
|
"axis-mouseenter",
|
|
1263
1262
|
"axis-mouseleave",
|
|
@@ -1299,14 +1298,14 @@ const Rr = Dr.exports, Sr = [
|
|
|
1299
1298
|
(i) => l(...i.detail)
|
|
1300
1299
|
);
|
|
1301
1300
|
}
|
|
1302
|
-
return { componentEventPropagator:
|
|
1301
|
+
return { componentEventPropagator: Rr.reduce((o, l) => (o[l] = (i) => t(l, i), o), {}), emitInternalEvent: r, listenInternalEvent: n };
|
|
1303
1302
|
};
|
|
1304
|
-
function
|
|
1303
|
+
function Sr(t) {
|
|
1305
1304
|
return { hasNegativeValues: d(
|
|
1306
1305
|
() => Tt(t.value).some((r) => r < 0)
|
|
1307
1306
|
) };
|
|
1308
1307
|
}
|
|
1309
|
-
function
|
|
1308
|
+
function Pr(t, e, r, n) {
|
|
1310
1309
|
const a = d(
|
|
1311
1310
|
() => n.value === O.HORIZONTAL
|
|
1312
1311
|
), o = d(
|
|
@@ -1331,12 +1330,12 @@ function Br(t, e, r, n) {
|
|
|
1331
1330
|
transform: i.value
|
|
1332
1331
|
})) };
|
|
1333
1332
|
}
|
|
1334
|
-
function
|
|
1333
|
+
function Br(t, e) {
|
|
1335
1334
|
return t.reduce((r, n) => Ze(n.values, e).map(
|
|
1336
1335
|
(a, o) => r[o] ? a.value > r[o] ? a.value : r[o] : a.value ?? 0
|
|
1337
1336
|
), []);
|
|
1338
1337
|
}
|
|
1339
|
-
function
|
|
1338
|
+
function Cr(t, e) {
|
|
1340
1339
|
return t.reduce((r, n) => Ze(n.values, e).map(
|
|
1341
1340
|
(a, o) => {
|
|
1342
1341
|
const l = a.value == null || a.value < 0 ? 0 : a.value;
|
|
@@ -1345,7 +1344,7 @@ function Gr(t, e) {
|
|
|
1345
1344
|
), []);
|
|
1346
1345
|
}
|
|
1347
1346
|
const ct = {
|
|
1348
|
-
"stacked-bar":
|
|
1347
|
+
"stacked-bar": Cr
|
|
1349
1348
|
};
|
|
1350
1349
|
function Dt(t, e, r, n, a, o, l, i) {
|
|
1351
1350
|
const u = d(
|
|
@@ -1359,7 +1358,7 @@ function Dt(t, e, r, n, a, o, l, i) {
|
|
|
1359
1358
|
const s = ((m = a == null ? void 0 : a.value) == null ? void 0 : m.length) ?? 0, f = i != null && i.value && ct[i.value] ? ct[i.value](
|
|
1360
1359
|
v,
|
|
1361
1360
|
s
|
|
1362
|
-
) :
|
|
1361
|
+
) : Br(v, s);
|
|
1363
1362
|
t.value = f.map((_, h) => ({
|
|
1364
1363
|
cx: (o == null ? void 0 : o.value) === O.HORIZONTAL ? r.value(_) : Pe(r.value, h),
|
|
1365
1364
|
cy: (o == null ? void 0 : o.value) === O.HORIZONTAL ? Pe(n.value, h) : n.value(_)
|
|
@@ -1373,7 +1372,7 @@ function Dt(t, e, r, n, a, o, l, i) {
|
|
|
1373
1372
|
{ immediate: !0 }
|
|
1374
1373
|
), { shouldGenerateTooltipAnchors: u, updateTooltipAnchorAttributes: c };
|
|
1375
1374
|
}
|
|
1376
|
-
function
|
|
1375
|
+
function Gr() {
|
|
1377
1376
|
const t = Oe({
|
|
1378
1377
|
opened: !1,
|
|
1379
1378
|
targetElement: null
|
|
@@ -1384,7 +1383,7 @@ function Fr() {
|
|
|
1384
1383
|
t.opened = !1, t.targetElement = null;
|
|
1385
1384
|
} };
|
|
1386
1385
|
}
|
|
1387
|
-
function
|
|
1386
|
+
function Fr(t) {
|
|
1388
1387
|
return { getTooltipItems: d(
|
|
1389
1388
|
() => (r) => t.value.map(({ color: n, label: a, values: o }) => {
|
|
1390
1389
|
var l, i, u;
|
|
@@ -1410,39 +1409,39 @@ const Be = 16, Ce = 8, Ge = 28, Fe = 24, re = {
|
|
|
1410
1409
|
left: Fe
|
|
1411
1410
|
}
|
|
1412
1411
|
};
|
|
1413
|
-
function
|
|
1412
|
+
function jr(t) {
|
|
1414
1413
|
return !t || t === "auto" || t.top == null || t.top === "auto" ? Be : t.top;
|
|
1415
1414
|
}
|
|
1416
|
-
function
|
|
1415
|
+
function Vr(t) {
|
|
1417
1416
|
return !t || t === "auto" || t.right == null || t.right === "auto" ? Ce : t.right;
|
|
1418
1417
|
}
|
|
1419
|
-
function
|
|
1418
|
+
function Mr(t, e) {
|
|
1420
1419
|
return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Ge : t.bottom;
|
|
1421
1420
|
}
|
|
1422
|
-
function
|
|
1421
|
+
function zr(t, e) {
|
|
1423
1422
|
return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Fe : t.left;
|
|
1424
1423
|
}
|
|
1425
|
-
const
|
|
1424
|
+
const Wr = /* @__PURE__ */ N({
|
|
1426
1425
|
__name: "lume-chart",
|
|
1427
1426
|
props: {
|
|
1428
|
-
...
|
|
1427
|
+
...ie(),
|
|
1429
1428
|
chartType: {
|
|
1430
1429
|
type: String,
|
|
1431
1430
|
default: null
|
|
1432
1431
|
}
|
|
1433
1432
|
},
|
|
1434
1433
|
setup(t, { emit: e }) {
|
|
1435
|
-
const r = t, n = M(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: c } = B(r), v = w(-1), s = w(null), f = w(null), m = w([]), _ = w(null), h = w(0), y = w(0), { allOptions: p } = Y(i), { internalData: k, computedLabels: x, containerSize: T, updateSize: I, chartID: L } = Qe(a, o, l, p, u), { listenInternalEvent: D } = K(e, L), { xScale: R, yScale: P } =
|
|
1434
|
+
const r = t, n = M(), { data: a, labels: o, color: l, options: i, orientation: u, chartType: c } = B(r), v = w(-1), s = w(null), f = w(null), m = w([]), _ = w(null), h = w(0), y = w(0), { allOptions: p } = Y(i), { internalData: k, computedLabels: x, containerSize: T, updateSize: I, chartID: L } = Qe(a, o, l, p, u), { listenInternalEvent: D } = K(e, L), { xScale: R, yScale: P } = Kn(
|
|
1436
1435
|
k,
|
|
1437
1436
|
x,
|
|
1438
1437
|
T,
|
|
1439
1438
|
u,
|
|
1440
1439
|
p
|
|
1441
1440
|
), G = d(() => ({
|
|
1442
|
-
top:
|
|
1443
|
-
right:
|
|
1444
|
-
bottom:
|
|
1445
|
-
left:
|
|
1441
|
+
top: jr(p.value.margins),
|
|
1442
|
+
right: Vr(p.value.margins),
|
|
1443
|
+
bottom: Mr(p.value.margins, h.value),
|
|
1444
|
+
left: zr(p.value.margins, y.value)
|
|
1446
1445
|
})), j = d(() => {
|
|
1447
1446
|
var b;
|
|
1448
1447
|
return r.xScale ? it(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, k.value, o.value, T) : R.value;
|
|
@@ -1472,7 +1471,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1472
1471
|
), C = d(() => {
|
|
1473
1472
|
const b = [], { noBaseScales: S } = p.value;
|
|
1474
1473
|
return S || b.push(() => !!(j.value && J.value)), b.every((V) => V() === !0);
|
|
1475
|
-
}), { hasNegativeValues: Z } =
|
|
1474
|
+
}), { hasNegativeValues: Z } = Sr(k), { negativeBarAttributes: F } = Pr(
|
|
1476
1475
|
T,
|
|
1477
1476
|
j,
|
|
1478
1477
|
J,
|
|
@@ -1486,7 +1485,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1486
1485
|
u,
|
|
1487
1486
|
k,
|
|
1488
1487
|
c
|
|
1489
|
-
), { tooltipConfig:
|
|
1488
|
+
), { tooltipConfig: ce, showTooltip: ge, hideTooltip: de } = Gr(), { getTooltipItems: ye } = Fr(k), le = d(
|
|
1490
1489
|
() => {
|
|
1491
1490
|
var b;
|
|
1492
1491
|
return ((b = p.value.tooltipOptions) == null ? void 0 : b.position) || "top";
|
|
@@ -1494,7 +1493,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1494
1493
|
), nt = d(() => {
|
|
1495
1494
|
var S;
|
|
1496
1495
|
const b = (S = p.value.tooltipOptions) == null ? void 0 : S.withPointerEvents;
|
|
1497
|
-
return
|
|
1496
|
+
return ce.opened && (!b || b && _.value === !1);
|
|
1498
1497
|
});
|
|
1499
1498
|
function be(b) {
|
|
1500
1499
|
var V;
|
|
@@ -1507,7 +1506,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1507
1506
|
e("hovered-index-changed", { newIndex: b, oldIndex: S }), e("update:hoveredIndex", b);
|
|
1508
1507
|
}
|
|
1509
1508
|
function ke() {
|
|
1510
|
-
|
|
1509
|
+
de(), v.value = -1, e("update:hoveredIndex", -1);
|
|
1511
1510
|
}
|
|
1512
1511
|
function we(b) {
|
|
1513
1512
|
if (!a.value.some(
|
|
@@ -1545,13 +1544,13 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1545
1544
|
},
|
|
1546
1545
|
{ flush: "post" }
|
|
1547
1546
|
), H(_, (b) => {
|
|
1548
|
-
b === !1 &&
|
|
1547
|
+
b === !1 && ce.opened && ke();
|
|
1549
1548
|
}), ee(async () => {
|
|
1550
1549
|
e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), D("lume__internal--hover", be);
|
|
1551
|
-
}), Ee("chartID", L), Ee("isEmpty", $), Ee("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: v, tooltipAnchor: s, chartContainer: f, tooltipAnchorAttributes: m, isHoveringTooltip: _, xAxisHeight: h, yAxisWidth: y, allOptions: p, internalData: k, computedLabels: x, containerSize: T, updateSize: I, chartID: L, listenInternalEvent: D, xScale: R, yScale: P, computedMargins: G, computedXScale: j, computedYScale: J, computedXAxisOptions: oe, computedYAxisOptions: W, xAxisTitle: te, yAxisTitle: Q, showXAxisTitle: g, showYAxisTitle: A, isEmpty: $, isReady: C, hasNegativeValues: Z, negativeBarAttributes: F, shouldGenerateTooltipAnchors: tt, tooltipConfig:
|
|
1550
|
+
}), Ee("chartID", L), Ee("isEmpty", $), Ee("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: i, orientation: u, chartType: c, internalHoveredIndex: v, tooltipAnchor: s, chartContainer: f, tooltipAnchorAttributes: m, isHoveringTooltip: _, xAxisHeight: h, yAxisWidth: y, allOptions: p, internalData: k, computedLabels: x, containerSize: T, updateSize: I, chartID: L, listenInternalEvent: D, xScale: R, yScale: P, computedMargins: G, computedXScale: j, computedYScale: J, computedXAxisOptions: oe, computedYAxisOptions: W, xAxisTitle: te, yAxisTitle: Q, showXAxisTitle: g, showYAxisTitle: A, isEmpty: $, isReady: C, hasNegativeValues: Z, negativeBarAttributes: F, shouldGenerateTooltipAnchors: tt, tooltipConfig: ce, showTooltip: ge, hideTooltip: de, getTooltipItems: ye, tooltipPosition: le, shouldHideTooltip: nt, handleInternalHover: be, handleHideTooltip: ke, handleExternalHover: we, handleMouseleave: Ct, handleResize: Gt, handleAxisMouseenter: Ft, handleAxisClick: jt, LumeAxis: Hn, LumeBar: Ue, LumeChartContainer: rr, LumeChartLegend: ir, LumeTooltip: Ir, LumeOverlayGroup: Dr, TOOLTIP_ANCHOR_RADIUS: yn };
|
|
1552
1551
|
}
|
|
1553
1552
|
});
|
|
1554
|
-
var
|
|
1553
|
+
var Zr = function() {
|
|
1555
1554
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1556
1555
|
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, orientation: n.orientation, "data-j-lume-chart": "" }, on: { resize: n.handleResize, click: function(a) {
|
|
1557
1556
|
return n.emit("chart-click", a);
|
|
@@ -1608,15 +1607,15 @@ var Ur = function() {
|
|
|
1608
1607
|
}, { 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) {
|
|
1609
1608
|
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));
|
|
1610
1609
|
}), 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);
|
|
1611
|
-
},
|
|
1610
|
+
}, Ur = [], Xr = /* @__PURE__ */ E(
|
|
1611
|
+
Wr,
|
|
1612
1612
|
Zr,
|
|
1613
1613
|
Ur,
|
|
1614
|
-
Xr,
|
|
1615
1614
|
!1,
|
|
1616
1615
|
null,
|
|
1617
|
-
"
|
|
1616
|
+
"17c48844"
|
|
1618
1617
|
);
|
|
1619
|
-
const
|
|
1618
|
+
const se = Xr.exports, dt = 8, Yr = 8, Kr = 20, ve = 2, vt = 2, Jr = /* @__PURE__ */ N({
|
|
1620
1619
|
__name: "lume-alluvial-node-label",
|
|
1621
1620
|
props: {
|
|
1622
1621
|
bottom: { type: Boolean, default: !1 },
|
|
@@ -1641,18 +1640,18 @@ const de = Yr.exports, dt = 8, Kr = 8, Jr = 20, se = 2, vt = 2, Qr = /* @__PURE_
|
|
|
1641
1640
|
}), { __sfc: !0, props: r, emit: e, text: n, foreignObjectWidth: a, foreignObjectHeight: o };
|
|
1642
1641
|
}
|
|
1643
1642
|
});
|
|
1644
|
-
var
|
|
1643
|
+
var Qr = function() {
|
|
1645
1644
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1646
1645
|
return e.maxWidth ? r("foreignObject", { staticClass: "lume-alluvial-group__node-foreign", attrs: { y: e.bottom ? "0.1em" : -n.foreignObjectHeight + 1, x: e.left ? -n.foreignObjectWidth : 0, width: n.foreignObjectWidth, height: n.foreignObjectHeight } }, [r("div", { staticClass: "lume-alluvial-group__label-wrapper" }, [r("span", { ref: "text", staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2)])]) : r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
|
|
1647
|
-
},
|
|
1646
|
+
}, qr = [], ea = /* @__PURE__ */ E(
|
|
1647
|
+
Jr,
|
|
1648
1648
|
Qr,
|
|
1649
1649
|
qr,
|
|
1650
|
-
ea,
|
|
1651
1650
|
!1,
|
|
1652
1651
|
null,
|
|
1653
1652
|
"7126dfdb"
|
|
1654
1653
|
);
|
|
1655
|
-
const
|
|
1654
|
+
const ta = ea.exports, na = /* @__PURE__ */ N({
|
|
1656
1655
|
__name: "lume-alluvial-node-value",
|
|
1657
1656
|
props: {
|
|
1658
1657
|
bottom: { type: Boolean, default: !0 }
|
|
@@ -1661,18 +1660,18 @@ const na = ta.exports, ra = /* @__PURE__ */ N({
|
|
|
1661
1660
|
return { __sfc: !0 };
|
|
1662
1661
|
}
|
|
1663
1662
|
});
|
|
1664
|
-
var
|
|
1663
|
+
var ra = function() {
|
|
1665
1664
|
var e = this, r = e._self._c;
|
|
1666
1665
|
return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { y: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
|
|
1667
|
-
},
|
|
1666
|
+
}, aa = [], oa = /* @__PURE__ */ E(
|
|
1667
|
+
na,
|
|
1668
1668
|
ra,
|
|
1669
1669
|
aa,
|
|
1670
|
-
oa,
|
|
1671
1670
|
!1,
|
|
1672
1671
|
null,
|
|
1673
1672
|
"b4fc758b"
|
|
1674
1673
|
);
|
|
1675
|
-
const
|
|
1674
|
+
const la = oa.exports, ua = /* @__PURE__ */ N({
|
|
1676
1675
|
__name: "lume-alluvial-node-header",
|
|
1677
1676
|
props: {
|
|
1678
1677
|
x: { type: Number, required: !0 },
|
|
@@ -1687,18 +1686,18 @@ const ua = la.exports, ia = /* @__PURE__ */ N({
|
|
|
1687
1686
|
return { __sfc: !0, textRef: e, beforeTransform: r, afterTransform: n };
|
|
1688
1687
|
}
|
|
1689
1688
|
});
|
|
1690
|
-
var
|
|
1689
|
+
var ia = function() {
|
|
1691
1690
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1692
1691
|
return r("g", { attrs: { transform: `translate(${e.x}, ${e.y})` } }, [r("g", { attrs: { transform: n.beforeTransform } }, [e._t("before")], 2), r("text", { ref: "textRef", staticClass: "lume-alluvial-group__node-header lume-typography--caption" }, [e._t("default")], 2), r("g", { attrs: { transform: n.afterTransform } }, [e._t("after")], 2)]);
|
|
1693
|
-
},
|
|
1692
|
+
}, sa = [], ca = /* @__PURE__ */ E(
|
|
1693
|
+
ua,
|
|
1694
1694
|
ia,
|
|
1695
1695
|
sa,
|
|
1696
|
-
ca,
|
|
1697
1696
|
!1,
|
|
1698
1697
|
null,
|
|
1699
1698
|
"0e483453"
|
|
1700
1699
|
);
|
|
1701
|
-
const
|
|
1700
|
+
const da = ca.exports;
|
|
1702
1701
|
function ft(t, e) {
|
|
1703
1702
|
return {
|
|
1704
1703
|
x0: 0 + (e ? e.left : 0),
|
|
@@ -1707,7 +1706,7 @@ function ft(t, e) {
|
|
|
1707
1706
|
y1: t.height - (e ? e.bottom : 0)
|
|
1708
1707
|
};
|
|
1709
1708
|
}
|
|
1710
|
-
function
|
|
1709
|
+
function va(t) {
|
|
1711
1710
|
const e = w(ft(t));
|
|
1712
1711
|
function r(n) {
|
|
1713
1712
|
e.value = ft(t, n);
|
|
@@ -1715,24 +1714,24 @@ function fa(t) {
|
|
|
1715
1714
|
return { extents: e, updateExtents: r };
|
|
1716
1715
|
}
|
|
1717
1716
|
var Te = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", t.BarScaleNull = "Bar linear scale cannot be `null`", t))(Te || {});
|
|
1718
|
-
const
|
|
1717
|
+
const fa = "[lume] ";
|
|
1719
1718
|
function je(t, e, r = !0) {
|
|
1720
|
-
r && At() || console.error(
|
|
1719
|
+
r && At() || console.error(fa + "Error: " + t, e);
|
|
1721
1720
|
}
|
|
1722
|
-
const
|
|
1723
|
-
function
|
|
1721
|
+
const pa = 200;
|
|
1722
|
+
function ue(t) {
|
|
1724
1723
|
return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
|
|
1725
1724
|
}
|
|
1726
|
-
function
|
|
1725
|
+
function ma(t, e) {
|
|
1727
1726
|
return e.nodes.find((r) => r.id === t);
|
|
1728
1727
|
}
|
|
1729
|
-
function
|
|
1728
|
+
function _a(t, e) {
|
|
1730
1729
|
return e.links.find((r) => r.id === t);
|
|
1731
1730
|
}
|
|
1732
1731
|
function Rt(t) {
|
|
1733
1732
|
return !!(t.sourceLinks && t.targetLinks);
|
|
1734
1733
|
}
|
|
1735
|
-
function
|
|
1734
|
+
function ha(t, e) {
|
|
1736
1735
|
if (!e) return;
|
|
1737
1736
|
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(
|
|
1738
1737
|
(l, i) => Math.max(l, i.getBBox().width),
|
|
@@ -1748,15 +1747,15 @@ function ga(t, e) {
|
|
|
1748
1747
|
bottom: 0
|
|
1749
1748
|
};
|
|
1750
1749
|
}
|
|
1751
|
-
function
|
|
1750
|
+
function ga(t) {
|
|
1752
1751
|
return t.map((e) => {
|
|
1753
|
-
const r = e.y1 - e.y0 <
|
|
1752
|
+
const r = e.y1 - e.y0 < ve;
|
|
1754
1753
|
return {
|
|
1755
1754
|
x: e.x0,
|
|
1756
|
-
y: e.y0 - (r ?
|
|
1755
|
+
y: e.y0 - (r ? ve / 2 : 0),
|
|
1757
1756
|
// Negative offset to account for the min. height
|
|
1758
1757
|
width: e.x1 - e.x0,
|
|
1759
|
-
height: r ?
|
|
1758
|
+
height: r ? ve : e.y1 - e.y0,
|
|
1760
1759
|
textTransform: {
|
|
1761
1760
|
x: e.depth > 0 ? e.x1 + dt : e.x0 - dt,
|
|
1762
1761
|
y: (e.y1 + e.y0) / 2
|
|
@@ -1765,22 +1764,22 @@ function ya(t) {
|
|
|
1765
1764
|
};
|
|
1766
1765
|
});
|
|
1767
1766
|
}
|
|
1768
|
-
function
|
|
1767
|
+
function ya(t) {
|
|
1769
1768
|
return [t.source.x1, t.y0];
|
|
1770
1769
|
}
|
|
1771
|
-
function
|
|
1770
|
+
function ba(t) {
|
|
1772
1771
|
return [t.target.x0, t.y1];
|
|
1773
1772
|
}
|
|
1774
|
-
function
|
|
1775
|
-
return t.curveFunction ? Xt(t.curveFunction).source(
|
|
1773
|
+
function ka(t) {
|
|
1774
|
+
return t.curveFunction ? Xt(t.curveFunction).source(ya).target(ba) : Mt();
|
|
1776
1775
|
}
|
|
1777
|
-
function
|
|
1776
|
+
function xa(t) {
|
|
1778
1777
|
return t.map((e) => {
|
|
1779
1778
|
var r;
|
|
1780
1779
|
return {
|
|
1781
1780
|
id: e.id,
|
|
1782
1781
|
color: e.color || ((r = e.source) == null ? void 0 : r.color) || he,
|
|
1783
|
-
d:
|
|
1782
|
+
d: ka(e)(e),
|
|
1784
1783
|
strokeWidth: Math.max(1, e.width),
|
|
1785
1784
|
link: e
|
|
1786
1785
|
};
|
|
@@ -1795,7 +1794,7 @@ function pt(t, e, r, n, a) {
|
|
|
1795
1794
|
return;
|
|
1796
1795
|
}
|
|
1797
1796
|
const o = Date.now(), l = vn(e, r), i = () => {
|
|
1798
|
-
let c = (Date.now() - o) /
|
|
1797
|
+
let c = (Date.now() - o) / pa;
|
|
1799
1798
|
c > 1 && (c = 1), t.node = {
|
|
1800
1799
|
...t.node,
|
|
1801
1800
|
transitionValue: a && c === 1 ? void 0 : l(c)
|
|
@@ -1803,14 +1802,14 @@ function pt(t, e, r, n, a) {
|
|
|
1803
1802
|
};
|
|
1804
1803
|
requestAnimationFrame(i);
|
|
1805
1804
|
}
|
|
1806
|
-
const
|
|
1805
|
+
const Aa = {
|
|
1807
1806
|
nodes: [],
|
|
1808
1807
|
links: []
|
|
1809
1808
|
};
|
|
1810
1809
|
function mt(t, e) {
|
|
1811
1810
|
return e.find((r) => r.every((n) => n.x0 === t.x0));
|
|
1812
1811
|
}
|
|
1813
|
-
function
|
|
1812
|
+
function Ta(t, e, r) {
|
|
1814
1813
|
const n = w(null), a = d(() => {
|
|
1815
1814
|
var s, f;
|
|
1816
1815
|
return (f = (s = t.value) == null ? void 0 : s[0]) == null ? void 0 : f.values.map(
|
|
@@ -1842,7 +1841,7 @@ function La(t, e, r) {
|
|
|
1842
1841
|
}
|
|
1843
1842
|
).filter(Boolean).flat();
|
|
1844
1843
|
}
|
|
1845
|
-
), l = d(() => zt().nodeId(
|
|
1844
|
+
), l = d(() => zt().nodeId(ue).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), i = d(() => {
|
|
1846
1845
|
var s;
|
|
1847
1846
|
return (s = n.value) == null ? void 0 : s.nodes.reduce(
|
|
1848
1847
|
(f, m) => {
|
|
@@ -1880,7 +1879,7 @@ function La(t, e, r) {
|
|
|
1880
1879
|
[m, _]
|
|
1881
1880
|
])({ nodes: a.value, links: o.value });
|
|
1882
1881
|
} catch (s) {
|
|
1883
|
-
je(Te.GraphProblem, s), n.value =
|
|
1882
|
+
je(Te.GraphProblem, s), n.value = Aa;
|
|
1884
1883
|
}
|
|
1885
1884
|
}), { columns: i, graph: v };
|
|
1886
1885
|
}
|
|
@@ -1900,10 +1899,10 @@ function Me(t, e) {
|
|
|
1900
1899
|
);
|
|
1901
1900
|
}), e;
|
|
1902
1901
|
}
|
|
1903
|
-
function
|
|
1902
|
+
function La(t, e) {
|
|
1904
1903
|
return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
|
|
1905
1904
|
}
|
|
1906
|
-
const
|
|
1905
|
+
const Oa = (t, e) => {
|
|
1907
1906
|
let r;
|
|
1908
1907
|
Rt(t) ? r = {
|
|
1909
1908
|
[t.id]: t.value,
|
|
@@ -1915,32 +1914,32 @@ const $a = (t, e) => {
|
|
|
1915
1914
|
...Ve(t.source),
|
|
1916
1915
|
...Me(t.target)
|
|
1917
1916
|
};
|
|
1918
|
-
const n =
|
|
1917
|
+
const n = La(r, e);
|
|
1919
1918
|
return { nodes: r, links: n };
|
|
1920
|
-
},
|
|
1919
|
+
}, $a = (t) => {
|
|
1921
1920
|
if (Rt(t)) {
|
|
1922
1921
|
const e = [...t.sourceLinks, ...t.targetLinks];
|
|
1923
1922
|
return {
|
|
1924
1923
|
nodes: e.reduce(
|
|
1925
|
-
(r, { source: n, target: a, value: o }) => n === t ? { ...r, [
|
|
1926
|
-
{ [
|
|
1924
|
+
(r, { source: n, target: a, value: o }) => n === t ? { ...r, [ue(a)]: o } : { ...r, [ue(n)]: o },
|
|
1925
|
+
{ [ue(t)]: t.value }
|
|
1927
1926
|
),
|
|
1928
1927
|
links: e.map(({ id: r }) => r)
|
|
1929
1928
|
};
|
|
1930
1929
|
}
|
|
1931
1930
|
return {
|
|
1932
1931
|
nodes: {
|
|
1933
|
-
[
|
|
1934
|
-
[
|
|
1932
|
+
[ue(t.target)]: t.value,
|
|
1933
|
+
[ue(t.source)]: t.source.value
|
|
1935
1934
|
},
|
|
1936
1935
|
links: [t.id]
|
|
1937
1936
|
};
|
|
1938
1937
|
};
|
|
1939
|
-
function
|
|
1938
|
+
function Ia(t, e, r) {
|
|
1940
1939
|
const n = w(null), a = d(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
|
|
1941
1940
|
n.value,
|
|
1942
1941
|
r.value
|
|
1943
|
-
) : e.value.highlightedElements === "closest" ?
|
|
1942
|
+
) : e.value.highlightedElements === "closest" ? $a(n.value, r.value) : Oa(n.value, r.value) : { nodes: {}, links: [] });
|
|
1944
1943
|
return H(a, (o, l) => {
|
|
1945
1944
|
if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
|
|
1946
1945
|
t.value.forEach((i) => {
|
|
@@ -1964,7 +1963,7 @@ function wa(t, e, r) {
|
|
|
1964
1963
|
});
|
|
1965
1964
|
}), { highlightedElements: a, hoveredElement: n };
|
|
1966
1965
|
}
|
|
1967
|
-
const
|
|
1966
|
+
const wa = /* @__PURE__ */ N({
|
|
1968
1967
|
__name: "lume-alluvial-group",
|
|
1969
1968
|
props: {
|
|
1970
1969
|
...Ie(),
|
|
@@ -1975,7 +1974,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
1975
1974
|
},
|
|
1976
1975
|
emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
|
|
1977
1976
|
setup(t, { emit: e }) {
|
|
1978
|
-
const r = t, n = Le("chartID"), { data: a, options: o } = B(r), l = w([]), i = w([]), u = w(null), { extents: c, updateExtents: v } =
|
|
1977
|
+
const r = t, n = Le("chartID"), { data: a, options: o } = B(r), l = w([]), i = w([]), u = w(null), { extents: c, updateExtents: v } = va(r.containerSize), { columns: s, graph: f } = Ta(a, o, c), { hoveredElement: m, highlightedElements: _ } = Ia(
|
|
1979
1978
|
l,
|
|
1980
1979
|
o,
|
|
1981
1980
|
f
|
|
@@ -1990,7 +1989,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
1990
1989
|
x: p.value[A]
|
|
1991
1990
|
}));
|
|
1992
1991
|
}), x = d(
|
|
1993
|
-
() => o.value.nodeHeaderPadding ??
|
|
1992
|
+
() => o.value.nodeHeaderPadding ?? Kr
|
|
1994
1993
|
), T = d(() => {
|
|
1995
1994
|
if (!(!o.value.gradient || !f.value))
|
|
1996
1995
|
return f.value.links.reduce((g, A) => {
|
|
@@ -2008,17 +2007,17 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2008
2007
|
), A = [];
|
|
2009
2008
|
return g.forEach(($) => {
|
|
2010
2009
|
const C = [];
|
|
2011
|
-
i.value.filter(({ link: Z }) => Z.target.id === $.node.id).reverse().reduce((Z, F, tt,
|
|
2012
|
-
const ge = F.link.target.y1 - F.link.target.y0 >
|
|
2013
|
-
let
|
|
2014
|
-
return ge ? (
|
|
2010
|
+
i.value.filter(({ link: Z }) => Z.target.id === $.node.id).reverse().reduce((Z, F, tt, ce) => {
|
|
2011
|
+
const ge = F.link.target.y1 - F.link.target.y0 > ve;
|
|
2012
|
+
let de, ye, le;
|
|
2013
|
+
return ge ? (de = F.link.target.y1 - F.link.target.y0, ye = F.link.value / $.node.value, le = ye * de) : le = ve / ce.length, C.push({
|
|
2015
2014
|
x: $.x,
|
|
2016
2015
|
y: $.y + Z,
|
|
2017
|
-
height:
|
|
2016
|
+
height: le,
|
|
2018
2017
|
width: $.width,
|
|
2019
2018
|
key: `node-block-${$.node.id}-source-link-${F.link.source.id}`,
|
|
2020
2019
|
class: `lume-alluvial-group__node-block lume-fill--${F.link.source.color || he}`
|
|
2021
|
-
}), Z +
|
|
2020
|
+
}), Z + le;
|
|
2022
2021
|
}, 0), A.push({
|
|
2023
2022
|
id: $.node.id,
|
|
2024
2023
|
subNodes: C
|
|
@@ -2055,7 +2054,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2055
2054
|
m.value = null;
|
|
2056
2055
|
return;
|
|
2057
2056
|
}
|
|
2058
|
-
const A =
|
|
2057
|
+
const A = ma(g, f.value) || _a(g, f.value);
|
|
2059
2058
|
if (!A) {
|
|
2060
2059
|
q(X.InvalidHoveredElement);
|
|
2061
2060
|
return;
|
|
@@ -2067,17 +2066,17 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2067
2066
|
return ((A = I.value.find(({ id: $ }) => g === $)) == null ? void 0 : A.subNodes) ?? [];
|
|
2068
2067
|
}
|
|
2069
2068
|
function Q() {
|
|
2070
|
-
const g =
|
|
2069
|
+
const g = ha(f.value, u.value);
|
|
2071
2070
|
v(g);
|
|
2072
2071
|
}
|
|
2073
2072
|
return H(f, (g) => {
|
|
2074
|
-
l.value =
|
|
2073
|
+
l.value = ga(g.nodes), i.value = xa(g.links).reverse(), m.value == null && r.hoveredElementId != null && W(r.hoveredElementId);
|
|
2075
2074
|
}), H([r.containerSize, u], () => {
|
|
2076
2075
|
r.containerSize.width && r.containerSize.height && Q();
|
|
2077
|
-
}), H(() => r.hoveredElementId, W), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: v, columns: s, graph: f, hoveredElement: m, highlightedElements: _, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: k, computedNodeHeaderPadding: x, gradients: T, nodesDerivingColorFromIncomingLinks: I, getLinkStroke: L, isNodeFaded: D, isNodeFocused: R, isLinkFaded: P, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: j, handleLinkMouseover: J, handleLinkMouseleave: oe, handleExternalHover: W, getSubNodesDerivingColorFromIncomingLinks: te, updateMargins: Q, LumeAlluvialNodeLabel:
|
|
2076
|
+
}), H(() => r.hoveredElementId, W), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: i, nodeTextRefs: u, extents: c, updateExtents: v, columns: s, graph: f, hoveredElement: m, highlightedElements: _, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: k, computedNodeHeaderPadding: x, gradients: T, nodesDerivingColorFromIncomingLinks: I, getLinkStroke: L, isNodeFaded: D, isNodeFocused: R, isLinkFaded: P, isLinkFocused: G, shouldDeriveNodeColorFromIncomingLinks: j, handleLinkMouseover: J, handleLinkMouseleave: oe, handleExternalHover: W, getSubNodesDerivingColorFromIncomingLinks: te, updateMargins: Q, LumeAlluvialNodeLabel: ta, LumeAlluvialNodeValue: la, LumeAlluvialNodeHeader: da, GHOST_STROKE_WIDTH_OFFSET: Yr };
|
|
2078
2077
|
}
|
|
2079
2078
|
});
|
|
2080
|
-
var
|
|
2079
|
+
var Ea = function() {
|
|
2081
2080
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2082
2081
|
return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", [e._l(n.nodeHeaders, function(a, o) {
|
|
2083
2082
|
return [e._t(`node-header-${o}`, function() {
|
|
@@ -2131,15 +2130,15 @@ var Na = function() {
|
|
|
2131
2130
|
a.node.value
|
|
2132
2131
|
) })], 2)], 2)]);
|
|
2133
2132
|
})], 2);
|
|
2134
|
-
},
|
|
2133
|
+
}, Na = [], Ha = /* @__PURE__ */ E(
|
|
2134
|
+
wa,
|
|
2135
2135
|
Ea,
|
|
2136
2136
|
Na,
|
|
2137
|
-
Ha,
|
|
2138
2137
|
!1,
|
|
2139
2138
|
null,
|
|
2140
|
-
"
|
|
2139
|
+
"2a790ee0"
|
|
2141
2140
|
);
|
|
2142
|
-
const
|
|
2141
|
+
const Da = Ha.exports, Ra = {
|
|
2143
2142
|
margins: {
|
|
2144
2143
|
top: 0,
|
|
2145
2144
|
right: 0,
|
|
@@ -2158,13 +2157,13 @@ const Ra = Da.exports, Sa = {
|
|
|
2158
2157
|
nodeAlign: Wt,
|
|
2159
2158
|
valueFormat: (t) => String(t),
|
|
2160
2159
|
iterations: 6
|
|
2161
|
-
},
|
|
2160
|
+
}, Sa = /* @__PURE__ */ N({
|
|
2162
2161
|
__name: "lume-alluvial-diagram",
|
|
2163
2162
|
props: {
|
|
2164
|
-
...
|
|
2163
|
+
...Jn(We)
|
|
2165
2164
|
},
|
|
2166
2165
|
setup(t, { emit: e }) {
|
|
2167
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), o = pn(M()), { options: l } = B(r), { allOptions: i } = Y(l,
|
|
2166
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), o = pn(M()), { options: l } = B(r), { allOptions: i } = Y(l, Ra);
|
|
2168
2167
|
function u(c) {
|
|
2169
2168
|
return {
|
|
2170
2169
|
...c,
|
|
@@ -2172,10 +2171,10 @@ const Ra = Da.exports, Sa = {
|
|
|
2172
2171
|
// Alluvial chart never uses base scales
|
|
2173
2172
|
};
|
|
2174
2173
|
}
|
|
2175
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, groupSlots: o, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart:
|
|
2174
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, groupSlots: o, options: l, allOptions: i, getAlluvialDiagramOptions: u, LumeChart: se, LumeAlluvialGroup: Da };
|
|
2176
2175
|
}
|
|
2177
2176
|
});
|
|
2178
|
-
var
|
|
2177
|
+
var Pa = function() {
|
|
2179
2178
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2180
2179
|
return r(n.LumeChart, e._g(e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2181
2180
|
return [r(n.LumeAlluvialGroup, e._g(e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(o, l) {
|
|
@@ -2188,20 +2187,20 @@ var Ba = function() {
|
|
|
2188
2187
|
return [e._t(o, null, null, l || {})];
|
|
2189
2188
|
} };
|
|
2190
2189
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2191
|
-
},
|
|
2190
|
+
}, Ba = [], Ca = /* @__PURE__ */ E(
|
|
2191
|
+
Sa,
|
|
2192
2192
|
Pa,
|
|
2193
2193
|
Ba,
|
|
2194
|
-
Ca,
|
|
2195
2194
|
!1,
|
|
2196
2195
|
null,
|
|
2197
2196
|
null
|
|
2198
2197
|
);
|
|
2199
|
-
const
|
|
2198
|
+
const Qo = Ca.exports;
|
|
2200
2199
|
var ze = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(ze || {});
|
|
2201
|
-
const
|
|
2200
|
+
const Ga = /* @__PURE__ */ N({
|
|
2202
2201
|
__name: "lume-bar-chart",
|
|
2203
2202
|
props: {
|
|
2204
|
-
...
|
|
2203
|
+
...ie(),
|
|
2205
2204
|
type: {
|
|
2206
2205
|
type: String,
|
|
2207
2206
|
default: null,
|
|
@@ -2210,11 +2209,11 @@ const Fa = /* @__PURE__ */ N({
|
|
|
2210
2209
|
},
|
|
2211
2210
|
setup(t, { emit: e }) {
|
|
2212
2211
|
const r = t, n = Ne(
|
|
2213
|
-
() => import("./
|
|
2212
|
+
() => import("./CB9KQjQz.js")
|
|
2214
2213
|
), a = Ne(
|
|
2215
|
-
() => import("./
|
|
2214
|
+
() => import("./C28EuqGB.js")
|
|
2216
2215
|
), o = Ne(
|
|
2217
|
-
() => import("./
|
|
2216
|
+
() => import("./DtjWrfsb.js")
|
|
2218
2217
|
), l = /* @__PURE__ */ new Map([
|
|
2219
2218
|
["single", n],
|
|
2220
2219
|
["grouped", a],
|
|
@@ -2240,39 +2239,39 @@ const Fa = /* @__PURE__ */ N({
|
|
|
2240
2239
|
return { __sfc: !0, TYPES: ze, LumeSingleBarChart: n, LumeGroupedBarChart: a, LumeStackedBarChart: o, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: i, slots: u, getBarChartOptions: c, component: v };
|
|
2241
2240
|
}
|
|
2242
2241
|
});
|
|
2243
|
-
var
|
|
2242
|
+
var Fa = function() {
|
|
2244
2243
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2245
2244
|
return r(n.component, e._g(e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(a, o) {
|
|
2246
2245
|
return { key: o, fn: function(l) {
|
|
2247
2246
|
return [e._t(o, null, null, l || {})];
|
|
2248
2247
|
} };
|
|
2249
2248
|
})], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2250
|
-
},
|
|
2249
|
+
}, ja = [], Va = /* @__PURE__ */ E(
|
|
2250
|
+
Ga,
|
|
2251
2251
|
Fa,
|
|
2252
2252
|
ja,
|
|
2253
|
-
Va,
|
|
2254
2253
|
!1,
|
|
2255
2254
|
null,
|
|
2256
2255
|
null
|
|
2257
2256
|
);
|
|
2258
|
-
const
|
|
2259
|
-
function
|
|
2260
|
-
return Object.values(
|
|
2257
|
+
const qo = Va.exports;
|
|
2258
|
+
function Ma(t) {
|
|
2259
|
+
return Object.values(gn).includes(t) || t == null;
|
|
2261
2260
|
}
|
|
2262
|
-
function
|
|
2261
|
+
function za(t) {
|
|
2263
2262
|
return Object.values(O).includes(t);
|
|
2264
2263
|
}
|
|
2265
|
-
const
|
|
2264
|
+
const Wa = (t = !1) => ({
|
|
2266
2265
|
type: {
|
|
2267
2266
|
type: String,
|
|
2268
2267
|
default: null,
|
|
2269
|
-
validator:
|
|
2268
|
+
validator: Ma
|
|
2270
2269
|
},
|
|
2271
2270
|
...t ? {
|
|
2272
2271
|
orientation: {
|
|
2273
2272
|
type: String,
|
|
2274
2273
|
default: O.VERTICAL,
|
|
2275
|
-
validator:
|
|
2274
|
+
validator: za
|
|
2276
2275
|
}
|
|
2277
2276
|
} : {}
|
|
2278
2277
|
});
|
|
@@ -2297,10 +2296,10 @@ function St(t, e) {
|
|
|
2297
2296
|
});
|
|
2298
2297
|
return { multiBarData: r, groupedData: n };
|
|
2299
2298
|
}
|
|
2300
|
-
function
|
|
2299
|
+
function Za(t, e) {
|
|
2301
2300
|
return t.value.length === 1 ? "single" : e.value;
|
|
2302
2301
|
}
|
|
2303
|
-
function
|
|
2302
|
+
function Ua(t, e, r) {
|
|
2304
2303
|
const n = d(
|
|
2305
2304
|
() => r.value === O.HORIZONTAL
|
|
2306
2305
|
);
|
|
@@ -2310,13 +2309,13 @@ function Xa(t, e, r) {
|
|
|
2310
2309
|
const o = d(() => n.value ? (a(t.value), t.value) : t.value), l = d(() => n.value ? e.value : (a(e.value), e.value));
|
|
2311
2310
|
return { barXScale: o, barYScale: l };
|
|
2312
2311
|
}
|
|
2313
|
-
const
|
|
2312
|
+
const Xa = {
|
|
2314
2313
|
x: 0,
|
|
2315
2314
|
y: 0,
|
|
2316
2315
|
width: 0,
|
|
2317
2316
|
height: 0
|
|
2318
2317
|
};
|
|
2319
|
-
function
|
|
2318
|
+
function Ya(t, e, r, n, a, o) {
|
|
2320
2319
|
const l = d(
|
|
2321
2320
|
() => n.value === O.HORIZONTAL
|
|
2322
2321
|
);
|
|
@@ -2331,7 +2330,7 @@ function Ka(t, e, r, n, a, o) {
|
|
|
2331
2330
|
return l.value ? r.value.bandwidth() : s < 0 ? r.value(s) - r.value(0) : r.value(0) - r.value(s);
|
|
2332
2331
|
}
|
|
2333
2332
|
function v(s, f, m) {
|
|
2334
|
-
if (!(e.value && r.value)) return
|
|
2333
|
+
if (!(e.value && r.value)) return Xa;
|
|
2335
2334
|
const { value: h, color: y } = s, p = y ?? t.value[f].color ?? he, { x: k, y: x } = i(h, m), T = u(h), I = c(h);
|
|
2336
2335
|
return {
|
|
2337
2336
|
classList: [`lume-fill--${p}`, ...o],
|
|
@@ -2345,16 +2344,16 @@ function Ka(t, e, r, n, a, o) {
|
|
|
2345
2344
|
}
|
|
2346
2345
|
return { barAttributeGenerator: v };
|
|
2347
2346
|
}
|
|
2348
|
-
const
|
|
2347
|
+
const Ka = {
|
|
2349
2348
|
x: 0,
|
|
2350
2349
|
y: 0,
|
|
2351
2350
|
width: 0,
|
|
2352
2351
|
height: 0
|
|
2353
2352
|
};
|
|
2354
|
-
function
|
|
2353
|
+
function Ja(t, e, r, n, a, o) {
|
|
2355
2354
|
const l = d(
|
|
2356
2355
|
() => n.value === O.HORIZONTAL
|
|
2357
|
-
), i = d(() =>
|
|
2356
|
+
), i = d(() => pe().domain(t.value.map((_, h) => h)).range([0, e.value.bandwidth()]).padding(0)), u = d(() => pe().domain(t.value.map((_, h) => h)).range([0, r.value.bandwidth()]).padding(0));
|
|
2358
2357
|
function c(_, h, y) {
|
|
2359
2358
|
if (l.value)
|
|
2360
2359
|
return _ >= 0 ? e.value(0) : e.value(_);
|
|
@@ -2375,7 +2374,7 @@ function Qa(t, e, r, n, a, o) {
|
|
|
2375
2374
|
return l.value ? u.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
|
|
2376
2375
|
}
|
|
2377
2376
|
function m(_, h, y) {
|
|
2378
|
-
if (!(e.value && r.value)) return
|
|
2377
|
+
if (!(e.value && r.value)) return Ka;
|
|
2379
2378
|
const { value: k, color: x } = _, T = x ?? t.value[h].color ?? Object.values(z)[h], I = c(k, y, h), L = v(k, y, h), D = s(k), R = f(k);
|
|
2380
2379
|
return {
|
|
2381
2380
|
classList: [`lume-fill--${T}`, ...o],
|
|
@@ -2389,7 +2388,7 @@ function Qa(t, e, r, n, a, o) {
|
|
|
2389
2388
|
}
|
|
2390
2389
|
return { barAttributeGenerator: m };
|
|
2391
2390
|
}
|
|
2392
|
-
function
|
|
2391
|
+
function Qa(t, e, r) {
|
|
2393
2392
|
const n = d(
|
|
2394
2393
|
() => e.value === O.HORIZONTAL
|
|
2395
2394
|
), a = d(() => {
|
|
@@ -2407,9 +2406,9 @@ function qa(t, e, r) {
|
|
|
2407
2406
|
return Math.max(...u);
|
|
2408
2407
|
});
|
|
2409
2408
|
function l(u, c, v) {
|
|
2410
|
-
return c.length ? n.value ?
|
|
2409
|
+
return c.length ? n.value ? fe().domain([a.value, o.value]).range([0, v.width]) : Object.assign(
|
|
2411
2410
|
st(
|
|
2412
|
-
|
|
2411
|
+
pe().domain(c.map((s, f) => f)).range([0, v.width]),
|
|
2413
2412
|
e.value,
|
|
2414
2413
|
r.value
|
|
2415
2414
|
),
|
|
@@ -2419,16 +2418,16 @@ function qa(t, e, r) {
|
|
|
2419
2418
|
function i(u, c, v) {
|
|
2420
2419
|
return c.length ? n.value ? Object.assign(
|
|
2421
2420
|
st(
|
|
2422
|
-
|
|
2421
|
+
pe().domain(c.map((s, f) => f)).range([0, v.height]),
|
|
2423
2422
|
e.value,
|
|
2424
2423
|
r.value
|
|
2425
2424
|
),
|
|
2426
2425
|
{ labels: c }
|
|
2427
|
-
) :
|
|
2426
|
+
) : fe().domain([o.value, a.value]).range([0, v.height]) : null;
|
|
2428
2427
|
}
|
|
2429
2428
|
return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
|
|
2430
2429
|
}
|
|
2431
|
-
function
|
|
2430
|
+
function qa(t, e, r, n, a, o) {
|
|
2432
2431
|
const l = d(
|
|
2433
2432
|
() => n.value === O.HORIZONTAL
|
|
2434
2433
|
), i = d(
|
|
@@ -2473,10 +2472,10 @@ function eo(t, e, r, n, a, o) {
|
|
|
2473
2472
|
return { barAttributeGenerator: y };
|
|
2474
2473
|
}
|
|
2475
2474
|
const _t = {
|
|
2476
|
-
single:
|
|
2477
|
-
grouped:
|
|
2478
|
-
stacked:
|
|
2479
|
-
},
|
|
2475
|
+
single: Ya,
|
|
2476
|
+
grouped: Ja,
|
|
2477
|
+
stacked: qa
|
|
2478
|
+
}, eo = /* @__PURE__ */ N({
|
|
2480
2479
|
__name: "lume-bar-group",
|
|
2481
2480
|
props: {
|
|
2482
2481
|
...Ie(),
|
|
@@ -2484,7 +2483,7 @@ const _t = {
|
|
|
2484
2483
|
type: [String, Array],
|
|
2485
2484
|
default: () => []
|
|
2486
2485
|
},
|
|
2487
|
-
...
|
|
2486
|
+
...Wa(!0),
|
|
2488
2487
|
transition: {
|
|
2489
2488
|
type: Boolean,
|
|
2490
2489
|
default: !0
|
|
@@ -2502,8 +2501,8 @@ const _t = {
|
|
|
2502
2501
|
yScale: c,
|
|
2503
2502
|
classList: v,
|
|
2504
2503
|
labels: s
|
|
2505
|
-
} = B(r), f = Le("chartID"), { emitInternalEvent: m } = K(e, f), { groupedData: _ } = St(n, s), { barXScale: h, barYScale: y } =
|
|
2506
|
-
const I =
|
|
2504
|
+
} = B(r), f = Le("chartID"), { emitInternalEvent: m } = K(e, f), { groupedData: _ } = St(n, s), { barXScale: h, barYScale: y } = Ua(u, c, o), p = d(() => typeof v.value == "string" ? [v.value] : v.value), k = d(() => {
|
|
2505
|
+
const I = Za(n, i), { barAttributeGenerator: L } = _t[I](
|
|
2507
2506
|
n,
|
|
2508
2507
|
h,
|
|
2509
2508
|
y,
|
|
@@ -2522,7 +2521,7 @@ const _t = {
|
|
|
2522
2521
|
return { __sfc: !0, MIXIN_MAP: _t, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: i, xScale: u, yScale: c, classList: v, labels: s, chartID: f, emitInternalEvent: m, groupedData: _, barXScale: h, barYScale: y, computedClasses: p, getBarAttributes: k, computedTransition: x, handleInternalHover: T, LumeBar: Ue };
|
|
2523
2522
|
}
|
|
2524
2523
|
});
|
|
2525
|
-
var
|
|
2524
|
+
var to = function() {
|
|
2526
2525
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2527
2526
|
return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
|
|
2528
2527
|
return r("g", { key: o, on: { mouseenter: function(l) {
|
|
@@ -2537,15 +2536,15 @@ var no = function() {
|
|
|
2537
2536
|
} } }, "lume-bar", n.getBarAttributes(l, i, o, a), !1));
|
|
2538
2537
|
}), 1);
|
|
2539
2538
|
}), 0);
|
|
2540
|
-
},
|
|
2539
|
+
}, no = [], ro = /* @__PURE__ */ E(
|
|
2540
|
+
eo,
|
|
2541
2541
|
to,
|
|
2542
2542
|
no,
|
|
2543
|
-
ro,
|
|
2544
2543
|
!1,
|
|
2545
2544
|
null,
|
|
2546
2545
|
null
|
|
2547
2546
|
);
|
|
2548
|
-
const et =
|
|
2547
|
+
const et = ro.exports, ao = {
|
|
2549
2548
|
[O.VERTICAL]: {
|
|
2550
2549
|
withTooltip: !0,
|
|
2551
2550
|
xAxisOptions: {},
|
|
@@ -2558,20 +2557,20 @@ const et = ao.exports, oo = {
|
|
|
2558
2557
|
yAxisOptions: { gridLines: !1 },
|
|
2559
2558
|
margins: re.HORIZONTAL
|
|
2560
2559
|
}
|
|
2561
|
-
},
|
|
2560
|
+
}, oo = /* @__PURE__ */ N({
|
|
2562
2561
|
__name: "lume-single-bar-chart",
|
|
2563
2562
|
props: {
|
|
2564
|
-
...
|
|
2563
|
+
...ie(We)
|
|
2565
2564
|
},
|
|
2566
2565
|
setup(t, { emit: e }) {
|
|
2567
2566
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = B(r), i = d(
|
|
2568
|
-
() =>
|
|
2567
|
+
() => ao[o.value || O.VERTICAL]
|
|
2569
2568
|
// needs to be computed so that default options are reactive
|
|
2570
2569
|
), { allOptions: u } = Y(l, i);
|
|
2571
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart:
|
|
2570
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart: se, LumeBarGroup: et };
|
|
2572
2571
|
}
|
|
2573
2572
|
});
|
|
2574
|
-
var
|
|
2573
|
+
var lo = function() {
|
|
2575
2574
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2576
2575
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2577
2576
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2580,15 +2579,15 @@ var uo = function() {
|
|
|
2580
2579
|
return [e._t(o, null, null, l || {})];
|
|
2581
2580
|
} };
|
|
2582
2581
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2583
|
-
},
|
|
2582
|
+
}, uo = [], io = /* @__PURE__ */ E(
|
|
2583
|
+
oo,
|
|
2584
2584
|
lo,
|
|
2585
2585
|
uo,
|
|
2586
|
-
io,
|
|
2587
2586
|
!1,
|
|
2588
2587
|
null,
|
|
2589
2588
|
null
|
|
2590
2589
|
);
|
|
2591
|
-
const
|
|
2590
|
+
const el = io.exports, so = {
|
|
2592
2591
|
[O.VERTICAL]: {
|
|
2593
2592
|
withTooltip: !0,
|
|
2594
2593
|
xAxisOptions: {},
|
|
@@ -2602,23 +2601,23 @@ const tl = so.exports, co = {
|
|
|
2602
2601
|
margins: re.HORIZONTAL,
|
|
2603
2602
|
tooltipOptions: { position: "right" }
|
|
2604
2603
|
}
|
|
2605
|
-
},
|
|
2604
|
+
}, co = /* @__PURE__ */ N({
|
|
2606
2605
|
__name: "lume-grouped-bar-chart",
|
|
2607
2606
|
props: {
|
|
2608
|
-
...
|
|
2607
|
+
...ie()
|
|
2609
2608
|
},
|
|
2610
2609
|
setup(t, { emit: e }) {
|
|
2611
2610
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = B(r), i = d(
|
|
2612
|
-
() =>
|
|
2611
|
+
() => so[o.value || O.VERTICAL]
|
|
2613
2612
|
// needs to be computed so that default options are reactive
|
|
2614
2613
|
), { allOptions: u } = Y(
|
|
2615
2614
|
l,
|
|
2616
2615
|
i
|
|
2617
2616
|
);
|
|
2618
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart:
|
|
2617
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: i, allOptions: u, LumeChart: se, LumeBarGroup: et };
|
|
2619
2618
|
}
|
|
2620
2619
|
});
|
|
2621
|
-
var
|
|
2620
|
+
var vo = function() {
|
|
2622
2621
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2623
2622
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2624
2623
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2627,15 +2626,15 @@ var fo = function() {
|
|
|
2627
2626
|
return [e._t(o, null, null, l || {})];
|
|
2628
2627
|
} };
|
|
2629
2628
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2630
|
-
},
|
|
2629
|
+
}, fo = [], po = /* @__PURE__ */ E(
|
|
2630
|
+
co,
|
|
2631
2631
|
vo,
|
|
2632
2632
|
fo,
|
|
2633
|
-
po,
|
|
2634
2633
|
!1,
|
|
2635
2634
|
null,
|
|
2636
2635
|
null
|
|
2637
2636
|
);
|
|
2638
|
-
const
|
|
2637
|
+
const tl = po.exports, mo = {
|
|
2639
2638
|
[O.VERTICAL]: {
|
|
2640
2639
|
withTooltip: !0,
|
|
2641
2640
|
xAxisOptions: {},
|
|
@@ -2650,27 +2649,27 @@ const nl = mo.exports, _o = {
|
|
|
2650
2649
|
margins: re.HORIZONTAL,
|
|
2651
2650
|
tooltipOptions: { position: "right" }
|
|
2652
2651
|
}
|
|
2653
|
-
},
|
|
2652
|
+
}, _o = /* @__PURE__ */ N({
|
|
2654
2653
|
__name: "lume-stacked-bar-chart",
|
|
2655
2654
|
props: {
|
|
2656
|
-
...
|
|
2655
|
+
...ie()
|
|
2657
2656
|
},
|
|
2658
2657
|
setup(t, { emit: e }) {
|
|
2659
2658
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { data: o, orientation: l, options: i, labels: u } = B(r), c = d(
|
|
2660
|
-
() =>
|
|
2659
|
+
() => mo[l.value || O.VERTICAL]
|
|
2661
2660
|
// needs to be computed so that default options are reactive
|
|
2662
2661
|
), { allOptions: v } = Y(
|
|
2663
2662
|
i,
|
|
2664
2663
|
c
|
|
2665
|
-
), { internalData: s } = Qe(o), { groupedData: f } = St(s, u), { stackedXScaleGenerator: m, stackedYScaleGenerator: _ } =
|
|
2664
|
+
), { internalData: s } = Qe(o), { groupedData: f } = St(s, u), { stackedXScaleGenerator: m, stackedYScaleGenerator: _ } = Qa(
|
|
2666
2665
|
f,
|
|
2667
2666
|
l,
|
|
2668
2667
|
i
|
|
2669
2668
|
), h = d(() => r.xScale || m), y = d(() => r.yScale || _);
|
|
2670
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options: i, labels: u, baseOptions: c, allOptions: v, internalData: s, groupedData: f, stackedXScaleGenerator: m, stackedYScaleGenerator: _, xScale: h, yScale: y, LumeChart:
|
|
2669
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options: i, labels: u, baseOptions: c, allOptions: v, internalData: s, groupedData: f, stackedXScaleGenerator: m, stackedYScaleGenerator: _, xScale: h, yScale: y, LumeChart: se, LumeBarGroup: et };
|
|
2671
2670
|
}
|
|
2672
2671
|
});
|
|
2673
|
-
var
|
|
2672
|
+
var ho = function() {
|
|
2674
2673
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2675
2674
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.xScale, "y-scale": n.yScale, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2676
2675
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2679,15 +2678,15 @@ var go = function() {
|
|
|
2679
2678
|
return [e._t(o, null, null, l || {})];
|
|
2680
2679
|
} };
|
|
2681
2680
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2682
|
-
},
|
|
2681
|
+
}, go = [], yo = /* @__PURE__ */ E(
|
|
2682
|
+
_o,
|
|
2683
2683
|
ho,
|
|
2684
2684
|
go,
|
|
2685
|
-
yo,
|
|
2686
2685
|
!1,
|
|
2687
2686
|
null,
|
|
2688
2687
|
null
|
|
2689
2688
|
);
|
|
2690
|
-
const
|
|
2689
|
+
const nl = yo.exports, ht = 2, bo = /* @__PURE__ */ N({
|
|
2691
2690
|
__name: "lume-line",
|
|
2692
2691
|
props: {
|
|
2693
2692
|
pathDefinition: {
|
|
@@ -2725,7 +2724,7 @@ const rl = bo.exports, ht = 2, ko = /* @__PURE__ */ N({
|
|
|
2725
2724
|
return ee(() => $e(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ht, emit: e, root: r };
|
|
2726
2725
|
}
|
|
2727
2726
|
});
|
|
2728
|
-
var
|
|
2727
|
+
var ko = function() {
|
|
2729
2728
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2730
2729
|
return r("path", { ref: "root", staticClass: "lume-line", class: {
|
|
2731
2730
|
[`lume-stroke--${e.color}`]: !0,
|
|
@@ -2737,15 +2736,15 @@ var xo = function() {
|
|
|
2737
2736
|
}, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
|
|
2738
2737
|
return n.emit("click", a);
|
|
2739
2738
|
} } });
|
|
2740
|
-
},
|
|
2739
|
+
}, xo = [], Ao = /* @__PURE__ */ E(
|
|
2740
|
+
bo,
|
|
2741
2741
|
ko,
|
|
2742
2742
|
xo,
|
|
2743
|
-
Ao,
|
|
2744
2743
|
!1,
|
|
2745
2744
|
null,
|
|
2746
2745
|
"59449838"
|
|
2747
2746
|
);
|
|
2748
|
-
const
|
|
2747
|
+
const To = Ao.exports, gt = 4, Lo = /* @__PURE__ */ N({
|
|
2749
2748
|
__name: "lume-point",
|
|
2750
2749
|
props: {
|
|
2751
2750
|
x: { type: Number, required: !0 },
|
|
@@ -2769,20 +2768,20 @@ const Lo = To.exports, gt = 4, Oo = /* @__PURE__ */ N({
|
|
|
2769
2768
|
return ee(() => $e(n.value)), { __sfc: !0, DEFAULT_RADIUS: gt, props: r, emit: e, root: n, strokeWidth: a };
|
|
2770
2769
|
}
|
|
2771
2770
|
});
|
|
2772
|
-
var
|
|
2771
|
+
var Oo = function() {
|
|
2773
2772
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2774
2773
|
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) {
|
|
2775
2774
|
return n.emit("click", a);
|
|
2776
2775
|
} } });
|
|
2777
|
-
},
|
|
2776
|
+
}, $o = [], Io = /* @__PURE__ */ E(
|
|
2777
|
+
Lo,
|
|
2778
2778
|
Oo,
|
|
2779
2779
|
$o,
|
|
2780
|
-
Io,
|
|
2781
2780
|
!1,
|
|
2782
2781
|
null,
|
|
2783
2782
|
"436fef87"
|
|
2784
2783
|
);
|
|
2785
|
-
const
|
|
2784
|
+
const wo = Io.exports;
|
|
2786
2785
|
function Pt(t) {
|
|
2787
2786
|
function e(o) {
|
|
2788
2787
|
let l = null;
|
|
@@ -2827,20 +2826,20 @@ function Pt(t) {
|
|
|
2827
2826
|
};
|
|
2828
2827
|
})) };
|
|
2829
2828
|
}
|
|
2830
|
-
function
|
|
2829
|
+
function Eo(t, e) {
|
|
2831
2830
|
const r = t.bandwidth() / 2;
|
|
2832
2831
|
return (n, a) => t(t.domain()[e + (a - 1)]) + r;
|
|
2833
2832
|
}
|
|
2834
|
-
function
|
|
2833
|
+
function No(t, e) {
|
|
2835
2834
|
return (r, n) => t(e + (n - 1));
|
|
2836
2835
|
}
|
|
2837
|
-
function
|
|
2836
|
+
function Ho(t, e, r, n) {
|
|
2838
2837
|
const a = Yt().x(
|
|
2839
|
-
U(r) ?
|
|
2838
|
+
U(r) ? Eo(r, t) : No(r, t)
|
|
2840
2839
|
).y((o) => n(o));
|
|
2841
2840
|
return e.every((o) => o == null) ? null : a(e);
|
|
2842
2841
|
}
|
|
2843
|
-
const yt = 1,
|
|
2842
|
+
const yt = 1, Do = /* @__PURE__ */ N({
|
|
2844
2843
|
__name: "lume-line-group",
|
|
2845
2844
|
props: {
|
|
2846
2845
|
...Ie(),
|
|
@@ -2903,7 +2902,7 @@ const yt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2903
2902
|
(P = p(D)[L - 1]) == null ? void 0 : P.value,
|
|
2904
2903
|
(G = p(D)[L]) == null ? void 0 : G.value
|
|
2905
2904
|
];
|
|
2906
|
-
return
|
|
2905
|
+
return Ho(
|
|
2907
2906
|
L,
|
|
2908
2907
|
R,
|
|
2909
2908
|
o.value,
|
|
@@ -2927,10 +2926,10 @@ const yt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2927
2926
|
function I(L) {
|
|
2928
2927
|
return r.hoveredIndex === L;
|
|
2929
2928
|
}
|
|
2930
|
-
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: yt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: i, tooltipAnchorAttributes: u, updateTooltipAnchorAttributes: c, computedGroupData: v, overlayLineAttributes: s, animationDuration: f, pointRadius: m, xAxisOffset: _, domain: h, computedWithPoints: y, getValuesFromDataset: p, getPathDefinition: k, getLineTransitionParams: x, getPointPosition: T, isPointActive: I, LumeLine:
|
|
2929
|
+
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: yt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: i, tooltipAnchorAttributes: u, updateTooltipAnchorAttributes: c, computedGroupData: v, overlayLineAttributes: s, animationDuration: f, pointRadius: m, xAxisOffset: _, domain: h, computedWithPoints: y, getValuesFromDataset: p, getPathDefinition: k, getLineTransitionParams: x, getPointPosition: T, isPointActive: I, LumeLine: To, LumePoint: wo };
|
|
2931
2930
|
}
|
|
2932
2931
|
});
|
|
2933
|
-
var
|
|
2932
|
+
var Ro = function() {
|
|
2934
2933
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2935
2934
|
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) {
|
|
2936
2935
|
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) {
|
|
@@ -2943,31 +2942,31 @@ var So = function() {
|
|
|
2943
2942
|
} } }, "lume-point", n.getPointPosition(i, o), !1));
|
|
2944
2943
|
}), 1) : e._e()]);
|
|
2945
2944
|
})], 2);
|
|
2946
|
-
},
|
|
2945
|
+
}, So = [], Po = /* @__PURE__ */ E(
|
|
2946
|
+
Do,
|
|
2947
2947
|
Ro,
|
|
2948
2948
|
So,
|
|
2949
|
-
Po,
|
|
2950
2949
|
!1,
|
|
2951
2950
|
null,
|
|
2952
2951
|
"23492507"
|
|
2953
2952
|
);
|
|
2954
|
-
const Bt =
|
|
2953
|
+
const Bt = Po.exports, Bo = {
|
|
2955
2954
|
margins: re.VERTICAL,
|
|
2956
2955
|
startOnZero: !0,
|
|
2957
2956
|
withTooltip: !0,
|
|
2958
2957
|
xAxisOptions: {},
|
|
2959
2958
|
yAxisOptions: { gridLines: !0 }
|
|
2960
|
-
},
|
|
2959
|
+
}, Co = /* @__PURE__ */ N({
|
|
2961
2960
|
__name: "lume-line-chart",
|
|
2962
2961
|
props: {
|
|
2963
|
-
...
|
|
2962
|
+
...ie(null, !1)
|
|
2964
2963
|
},
|
|
2965
2964
|
setup(t, { emit: e }) {
|
|
2966
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { options: o } = B(r), { allOptions: l } = Y(o,
|
|
2967
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, options: o, allOptions: l, LumeChart:
|
|
2965
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { options: o } = B(r), { allOptions: l } = Y(o, Bo);
|
|
2966
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, options: o, allOptions: l, LumeChart: se, LumeLineGroup: Bt };
|
|
2968
2967
|
}
|
|
2969
2968
|
});
|
|
2970
|
-
var
|
|
2969
|
+
var Go = function() {
|
|
2971
2970
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2972
2971
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2973
2972
|
return [r(n.LumeLineGroup, e._g(e._b({}, "lume-line-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2976,16 +2975,16 @@ var Fo = function() {
|
|
|
2976
2975
|
return [e._t(o, null, null, l || {})];
|
|
2977
2976
|
} };
|
|
2978
2977
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2979
|
-
},
|
|
2978
|
+
}, Fo = [], jo = /* @__PURE__ */ E(
|
|
2979
|
+
Co,
|
|
2980
2980
|
Go,
|
|
2981
2981
|
Fo,
|
|
2982
|
-
jo,
|
|
2983
2982
|
!1,
|
|
2984
2983
|
null,
|
|
2985
2984
|
null
|
|
2986
2985
|
);
|
|
2987
|
-
const
|
|
2988
|
-
function
|
|
2986
|
+
const rl = jo.exports;
|
|
2987
|
+
function Vo(t) {
|
|
2989
2988
|
return { areaPathDefinition: d(
|
|
2990
2989
|
() => function(r, n) {
|
|
2991
2990
|
if (!r || !n || U(r) || U(n))
|
|
@@ -2995,7 +2994,7 @@ function Mo(t) {
|
|
|
2995
2994
|
}
|
|
2996
2995
|
) };
|
|
2997
2996
|
}
|
|
2998
|
-
const
|
|
2997
|
+
const Mo = {
|
|
2999
2998
|
margins: {
|
|
3000
2999
|
top: 0,
|
|
3001
3000
|
right: 0,
|
|
@@ -3009,14 +3008,14 @@ const zo = {
|
|
|
3009
3008
|
tooltipOptions: {
|
|
3010
3009
|
showTitle: !1
|
|
3011
3010
|
}
|
|
3012
|
-
},
|
|
3011
|
+
}, zo = /* @__PURE__ */ N({
|
|
3013
3012
|
__name: "lume-sparkline-chart",
|
|
3014
3013
|
props: {
|
|
3015
3014
|
...Je(null),
|
|
3016
3015
|
...me()
|
|
3017
3016
|
},
|
|
3018
3017
|
setup(t, { expose: e, emit: r }) {
|
|
3019
|
-
const n = t, { componentEventPropagator: a } = K(r), o = ae(M()), { data: l, options: i } = B(n), { internalData: u } = Qe(l), { allOptions: c } = Y(i,
|
|
3018
|
+
const n = t, { componentEventPropagator: a } = K(r), o = ae(M()), { data: l, options: i } = B(n), { internalData: u } = Qe(l), { allOptions: c } = Y(i, Mo), { computedLineData: v } = Pt(u), { areaPathDefinition: s } = Vo(v), f = d(() => {
|
|
3020
3019
|
var y, p;
|
|
3021
3020
|
return (p = (y = u.value) == null ? void 0 : y[0]) == null ? void 0 : p.color;
|
|
3022
3021
|
}), m = d(
|
|
@@ -3033,14 +3032,14 @@ const zo = {
|
|
|
3033
3032
|
}
|
|
3034
3033
|
function h(y, p, k) {
|
|
3035
3034
|
if (y.length)
|
|
3036
|
-
return
|
|
3035
|
+
return fe().range([0, k.width]).domain([0, y[0].values.length - 1]);
|
|
3037
3036
|
}
|
|
3038
3037
|
return e({
|
|
3039
3038
|
areaPathDefinition: s
|
|
3040
|
-
}), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options: i, internalData: u, allOptions: c, computedLineData: v, areaPathDefinition: s, computedColor: f, areaColor: m, getSparklineOptions: _, xScaleGenerator: h, LumeChart:
|
|
3039
|
+
}), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options: i, internalData: u, allOptions: c, computedLineData: v, areaPathDefinition: s, computedColor: f, areaColor: m, getSparklineOptions: _, xScaleGenerator: h, LumeChart: se, LumeLineGroup: Bt };
|
|
3041
3040
|
}
|
|
3042
3041
|
});
|
|
3043
|
-
var
|
|
3042
|
+
var Wo = function() {
|
|
3044
3043
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
3045
3044
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
3046
3045
|
return [n.allOptions.showArea ? r("path", { class: [
|
|
@@ -3054,65 +3053,65 @@ var Zo = function() {
|
|
|
3054
3053
|
return [e._t(o, null, null, l || {})];
|
|
3055
3054
|
} };
|
|
3056
3055
|
})], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
|
|
3057
|
-
},
|
|
3056
|
+
}, Zo = [], Uo = /* @__PURE__ */ E(
|
|
3057
|
+
zo,
|
|
3058
3058
|
Wo,
|
|
3059
3059
|
Zo,
|
|
3060
|
-
Uo,
|
|
3061
3060
|
!1,
|
|
3062
3061
|
null,
|
|
3063
|
-
"
|
|
3062
|
+
"579f7e32"
|
|
3064
3063
|
);
|
|
3065
|
-
const
|
|
3064
|
+
const al = Uo.exports;
|
|
3066
3065
|
export {
|
|
3067
3066
|
Pt as A,
|
|
3068
|
-
|
|
3069
|
-
|
|
3067
|
+
Sr as B,
|
|
3068
|
+
Pr as C,
|
|
3070
3069
|
me as D,
|
|
3071
3070
|
Y as E,
|
|
3072
3071
|
qe as F,
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3072
|
+
ie as G,
|
|
3073
|
+
Jn as H,
|
|
3074
|
+
Qn as I,
|
|
3075
|
+
Yn as J,
|
|
3076
|
+
Kn as K,
|
|
3077
|
+
Hn as L,
|
|
3079
3078
|
it as M,
|
|
3080
3079
|
Pe as N,
|
|
3081
3080
|
st as O,
|
|
3082
3081
|
Dt as P,
|
|
3083
|
-
|
|
3084
|
-
|
|
3082
|
+
Gr as Q,
|
|
3083
|
+
Fr as R,
|
|
3085
3084
|
z as S,
|
|
3086
3085
|
Ht as T,
|
|
3087
3086
|
Xe as U,
|
|
3088
3087
|
Ye as V,
|
|
3089
3088
|
Ke as W,
|
|
3090
3089
|
ne as X,
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3090
|
+
qo as a,
|
|
3091
|
+
el as b,
|
|
3092
|
+
tl as c,
|
|
3093
|
+
nl as d,
|
|
3094
|
+
rl as e,
|
|
3095
|
+
al as f,
|
|
3096
|
+
se as g,
|
|
3097
|
+
rr as h,
|
|
3098
|
+
ir as i,
|
|
3099
|
+
Ir as j,
|
|
3100
|
+
Ar as k,
|
|
3101
|
+
Qo as l,
|
|
3102
|
+
gr as m,
|
|
3103
|
+
fr as n,
|
|
3105
3104
|
Ue as o,
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3105
|
+
To as p,
|
|
3106
|
+
wo as q,
|
|
3107
|
+
Da as r,
|
|
3108
|
+
ta as s,
|
|
3109
|
+
la as t,
|
|
3110
|
+
da as u,
|
|
3112
3111
|
et as v,
|
|
3113
3112
|
Bt as w,
|
|
3114
|
-
|
|
3113
|
+
Dr as x,
|
|
3115
3114
|
Je as y,
|
|
3116
3115
|
Qe as z
|
|
3117
3116
|
};
|
|
3118
|
-
//# sourceMappingURL=
|
|
3117
|
+
//# sourceMappingURL=Da4Dej42.js.map
|