@adyen/lume 1.11.3 → 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/composables/bar-transition.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/{CwdJqXrz.js → Da4Dej42.js} +338 -344
- 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/CLNsYXI3.js +0 -5
- package/dist/common/CLNsYXI3.js.map +0 -1
- package/dist/common/CQ8y8ME_.js +0 -5
- package/dist/common/CQ8y8ME_.js.map +0 -1
- package/dist/common/CmWYSvLI.js +0 -5
- package/dist/common/CmWYSvLI.js.map +0 -1
- package/dist/common/CwdJqXrz.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,18 +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
|
|
611
|
-
const a = w(0), o = w(0), l = d(() => {
|
|
612
|
-
const i = parseFloat(
|
|
613
|
-
getComputedStyle(document.documentElement).fontSize
|
|
614
|
-
), u = (t.value + r.value / 2) / i, c = (e.value + n.value / 2) / i;
|
|
615
|
-
return `${u}rem ${c}rem`;
|
|
616
|
-
});
|
|
606
|
+
function Rn(t, e, r, n) {
|
|
607
|
+
const a = w(0), o = w(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
|
|
617
608
|
return ee(() => {
|
|
618
609
|
a.value = r.value, o.value = n.value;
|
|
619
610
|
}), H(r, (i) => a.value = i), H(n, (i) => o.value = i), { computedWidth: a, computedHeight: o, transformOrigin: l };
|
|
620
611
|
}
|
|
621
|
-
const
|
|
612
|
+
const Sn = /* @__PURE__ */ N({
|
|
622
613
|
__name: "lume-bar",
|
|
623
614
|
props: {
|
|
624
615
|
x: {
|
|
@@ -658,11 +649,11 @@ const Pn = /* @__PURE__ */ N({
|
|
|
658
649
|
setup(t, { emit: e }) {
|
|
659
650
|
const r = t, { x: n, y: a, width: o, height: l, transition: i, classList: u } = B(r), c = w(null), v = d(
|
|
660
651
|
() => typeof u.value == "string" ? [u.value] : u.value
|
|
661
|
-
), 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;
|
|
662
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 };
|
|
663
654
|
}
|
|
664
655
|
});
|
|
665
|
-
var
|
|
656
|
+
var Pn = function() {
|
|
666
657
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
667
658
|
return r("rect", { ref: "root", staticClass: "lume-bar", class: [
|
|
668
659
|
{
|
|
@@ -679,21 +670,21 @@ var Bn = function() {
|
|
|
679
670
|
}, mouseleave: function(a) {
|
|
680
671
|
return n.emit("mouseleave", a);
|
|
681
672
|
} } });
|
|
682
|
-
},
|
|
673
|
+
}, Bn = [], Cn = /* @__PURE__ */ E(
|
|
674
|
+
Sn,
|
|
683
675
|
Pn,
|
|
684
676
|
Bn,
|
|
685
|
-
Cn,
|
|
686
677
|
!1,
|
|
687
678
|
null,
|
|
688
679
|
"8e8f732a"
|
|
689
680
|
);
|
|
690
|
-
const Ue =
|
|
681
|
+
const Ue = Cn.exports;
|
|
691
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 || {});
|
|
692
|
-
const
|
|
693
|
-
function
|
|
694
|
-
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;
|
|
695
686
|
}
|
|
696
|
-
function
|
|
687
|
+
function Vn(t) {
|
|
697
688
|
return Object.values(Ke).includes(t);
|
|
698
689
|
}
|
|
699
690
|
function at(t, e) {
|
|
@@ -704,15 +695,15 @@ function at(t, e) {
|
|
|
704
695
|
...Ke
|
|
705
696
|
}).includes(t);
|
|
706
697
|
}
|
|
707
|
-
function
|
|
698
|
+
function Mn(t, e) {
|
|
708
699
|
const r = Object.values(z).indexOf(t);
|
|
709
700
|
return fn(Object.values(z), r > -1 ? r : 0)[e];
|
|
710
701
|
}
|
|
711
|
-
function
|
|
702
|
+
function zn(t, e) {
|
|
712
703
|
const r = 50 + e * 10;
|
|
713
704
|
return `${t}-${r}`;
|
|
714
705
|
}
|
|
715
|
-
function
|
|
706
|
+
function Wn(t, e) {
|
|
716
707
|
const r = (e + 1) * 10;
|
|
717
708
|
return `${t}-${r}`;
|
|
718
709
|
}
|
|
@@ -720,20 +711,20 @@ function ot(t, e, r) {
|
|
|
720
711
|
switch (e) {
|
|
721
712
|
default:
|
|
722
713
|
case ne.Categorical:
|
|
723
|
-
return
|
|
714
|
+
return Vn(t) ? t : Mn(t, r);
|
|
724
715
|
case ne.Sequential:
|
|
725
|
-
return
|
|
716
|
+
return zn(t, r);
|
|
726
717
|
case ne.Divergent:
|
|
727
|
-
return
|
|
718
|
+
return Wn(t, r);
|
|
728
719
|
}
|
|
729
720
|
}
|
|
730
|
-
function
|
|
731
|
-
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));
|
|
732
723
|
}
|
|
733
|
-
function
|
|
724
|
+
function Un(t) {
|
|
734
725
|
return t.map((e) => on(e) ? e : { value: e });
|
|
735
726
|
}
|
|
736
|
-
function
|
|
727
|
+
function Xn(t) {
|
|
737
728
|
return t.__internal === !0;
|
|
738
729
|
}
|
|
739
730
|
const Je = (t = null) => ({
|
|
@@ -759,12 +750,12 @@ function Qe(t, e, r, n, a) {
|
|
|
759
750
|
const o = Oe({
|
|
760
751
|
width: 0,
|
|
761
752
|
height: 0
|
|
762
|
-
}), l =
|
|
753
|
+
}), l = crypto.randomUUID(), i = d(() => {
|
|
763
754
|
var v;
|
|
764
755
|
return t.value.length > 5 && q(X.DatasetLength), (v = t.value) == null ? void 0 : v.map(
|
|
765
756
|
(s, f) => {
|
|
766
|
-
if (
|
|
767
|
-
const m =
|
|
757
|
+
if (Xn(s)) return s;
|
|
758
|
+
const m = Un(s.values), _ = Zn(
|
|
768
759
|
s.color,
|
|
769
760
|
r == null ? void 0 : r.value,
|
|
770
761
|
n == null ? void 0 : n.value.colorPalette,
|
|
@@ -791,7 +782,7 @@ function Qe(t, e, r, n, a) {
|
|
|
791
782
|
updateSize: c
|
|
792
783
|
};
|
|
793
784
|
}
|
|
794
|
-
const
|
|
785
|
+
const Yn = () => ({
|
|
795
786
|
xScale: {
|
|
796
787
|
type: Function,
|
|
797
788
|
default: null
|
|
@@ -801,7 +792,7 @@ const Kn = () => ({
|
|
|
801
792
|
default: null
|
|
802
793
|
}
|
|
803
794
|
});
|
|
804
|
-
function
|
|
795
|
+
function Kn(t, e, r, n, a) {
|
|
805
796
|
const o = w(null), l = w(null);
|
|
806
797
|
function i() {
|
|
807
798
|
var v, s, f, m;
|
|
@@ -833,16 +824,19 @@ function Jn(t, e, r, n, a) {
|
|
|
833
824
|
function lt(t, e, r, n) {
|
|
834
825
|
const a = [0, e], { padding: o, paddingInner: l, paddingOuter: i } = n, u = o ?? (r === O.HORIZONTAL ? wt : It);
|
|
835
826
|
return Object.assign(
|
|
836
|
-
|
|
827
|
+
pe().range(a).paddingInner(l ?? u).paddingOuter(i ?? u).domain(t.map((c, v) => v)),
|
|
837
828
|
{ labels: t }
|
|
838
829
|
);
|
|
839
830
|
}
|
|
840
831
|
function ut(t, e, r, n) {
|
|
841
832
|
const a = Tt(t).filter((v) => v != null), o = [0, e];
|
|
842
833
|
if (a.length === 0)
|
|
843
|
-
return
|
|
844
|
-
const l = Math.min(...a), i = n && l > 0 ? 0 : l
|
|
845
|
-
|
|
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();
|
|
846
840
|
}
|
|
847
841
|
function it(t) {
|
|
848
842
|
return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
|
|
@@ -861,9 +855,9 @@ function st(t, e, {
|
|
|
861
855
|
function qe(t) {
|
|
862
856
|
return Object.values(O).includes(t);
|
|
863
857
|
}
|
|
864
|
-
const
|
|
858
|
+
const ie = (t, e = !0) => ({
|
|
865
859
|
...Je(t),
|
|
866
|
-
...
|
|
860
|
+
...Yn(),
|
|
867
861
|
...me(),
|
|
868
862
|
classList: {
|
|
869
863
|
type: [String, Array],
|
|
@@ -880,7 +874,7 @@ const ce = (t, e = !0) => ({
|
|
|
880
874
|
validator: qe
|
|
881
875
|
}
|
|
882
876
|
} : {}
|
|
883
|
-
}),
|
|
877
|
+
}), Jn = (t) => ({
|
|
884
878
|
...Je(t),
|
|
885
879
|
...me(),
|
|
886
880
|
hoveredElement: {
|
|
@@ -888,7 +882,7 @@ const ce = (t, e = !0) => ({
|
|
|
888
882
|
default: null
|
|
889
883
|
}
|
|
890
884
|
});
|
|
891
|
-
function
|
|
885
|
+
function Qn() {
|
|
892
886
|
const t = w(), e = Oe({
|
|
893
887
|
dimensions: {}
|
|
894
888
|
}), r = new ResizeObserver((n) => {
|
|
@@ -902,7 +896,7 @@ function qn() {
|
|
|
902
896
|
r.unobserve(t.value);
|
|
903
897
|
}), { resizeState: e, resizeRef: t };
|
|
904
898
|
}
|
|
905
|
-
const
|
|
899
|
+
const qn = /* @__PURE__ */ N({
|
|
906
900
|
__name: "lume-chart-container",
|
|
907
901
|
props: {
|
|
908
902
|
margins: {
|
|
@@ -929,7 +923,7 @@ const er = /* @__PURE__ */ N({
|
|
|
929
923
|
},
|
|
930
924
|
emits: ["click", "mouseenter", "mouseleave", "resize"],
|
|
931
925
|
setup(t, { emit: e }) {
|
|
932
|
-
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(
|
|
933
927
|
() => a.value.height + n.value.top + n.value.bottom
|
|
934
928
|
);
|
|
935
929
|
return kt(() => {
|
|
@@ -947,7 +941,7 @@ const er = /* @__PURE__ */ N({
|
|
|
947
941
|
}), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState: i, svgHeight: u };
|
|
948
942
|
}
|
|
949
943
|
});
|
|
950
|
-
var
|
|
944
|
+
var er = function() {
|
|
951
945
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
952
946
|
return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
|
|
953
947
|
"lume-chart-container--minimum": !e.noMinSize
|
|
@@ -960,15 +954,15 @@ var tr = function() {
|
|
|
960
954
|
}, mouseleave: function(a) {
|
|
961
955
|
return n.emit("mouseleave", a);
|
|
962
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);
|
|
963
|
-
},
|
|
957
|
+
}, tr = [], nr = /* @__PURE__ */ E(
|
|
958
|
+
qn,
|
|
964
959
|
er,
|
|
965
960
|
tr,
|
|
966
|
-
nr,
|
|
967
961
|
!1,
|
|
968
962
|
null,
|
|
969
963
|
"d53cdc3e"
|
|
970
964
|
);
|
|
971
|
-
const
|
|
965
|
+
const rr = nr.exports, ar = /* @__PURE__ */ N({
|
|
972
966
|
__name: "lume-chart-legend",
|
|
973
967
|
props: {
|
|
974
968
|
data: {
|
|
@@ -982,7 +976,7 @@ const ar = rr.exports, or = /* @__PURE__ */ N({
|
|
|
982
976
|
return { __sfc: !0, emit: e };
|
|
983
977
|
}
|
|
984
978
|
});
|
|
985
|
-
var
|
|
979
|
+
var or = function() {
|
|
986
980
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
987
981
|
return r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" }, on: { mouseleave: function(a) {
|
|
988
982
|
return n.emit("mouseleave");
|
|
@@ -993,39 +987,39 @@ var lr = function() {
|
|
|
993
987
|
return n.emit("mouseenter", { index: o, dataset: a, event: l });
|
|
994
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) + " ")]);
|
|
995
989
|
}), 0);
|
|
996
|
-
},
|
|
990
|
+
}, lr = [], ur = /* @__PURE__ */ E(
|
|
991
|
+
ar,
|
|
997
992
|
or,
|
|
998
993
|
lr,
|
|
999
|
-
ur,
|
|
1000
994
|
!1,
|
|
1001
995
|
null,
|
|
1002
996
|
"6f1d1c44"
|
|
1003
997
|
);
|
|
1004
|
-
const
|
|
1005
|
-
var
|
|
998
|
+
const ir = ur.exports, sr = {};
|
|
999
|
+
var cr = function() {
|
|
1006
1000
|
var e = this, r = e._self._c;
|
|
1007
1001
|
return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
|
|
1008
|
-
},
|
|
1002
|
+
}, dr = [], vr = /* @__PURE__ */ E(
|
|
1003
|
+
sr,
|
|
1009
1004
|
cr,
|
|
1010
1005
|
dr,
|
|
1011
|
-
vr,
|
|
1012
1006
|
!1,
|
|
1013
1007
|
null,
|
|
1014
1008
|
"8af3fac6"
|
|
1015
1009
|
);
|
|
1016
|
-
const
|
|
1017
|
-
var
|
|
1010
|
+
const fr = vr.exports, pr = {};
|
|
1011
|
+
var mr = function() {
|
|
1018
1012
|
var e = this, r = e._self._c;
|
|
1019
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)]);
|
|
1020
|
-
},
|
|
1014
|
+
}, _r = [], hr = /* @__PURE__ */ E(
|
|
1015
|
+
pr,
|
|
1021
1016
|
mr,
|
|
1022
1017
|
_r,
|
|
1023
|
-
hr,
|
|
1024
1018
|
!1,
|
|
1025
1019
|
null,
|
|
1026
1020
|
"4ed7ec1b"
|
|
1027
1021
|
);
|
|
1028
|
-
const
|
|
1022
|
+
const gr = hr.exports, yr = /* @__PURE__ */ N({
|
|
1029
1023
|
__name: "lume-tooltip-item",
|
|
1030
1024
|
props: {
|
|
1031
1025
|
color: {
|
|
@@ -1037,18 +1031,18 @@ const yr = gr.exports, br = /* @__PURE__ */ N({
|
|
|
1037
1031
|
return { __sfc: !0 };
|
|
1038
1032
|
}
|
|
1039
1033
|
});
|
|
1040
|
-
var
|
|
1034
|
+
var br = function() {
|
|
1041
1035
|
var e = this, r = e._self._c;
|
|
1042
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)]);
|
|
1043
|
-
},
|
|
1037
|
+
}, kr = [], xr = /* @__PURE__ */ E(
|
|
1038
|
+
yr,
|
|
1044
1039
|
br,
|
|
1045
1040
|
kr,
|
|
1046
|
-
xr,
|
|
1047
1041
|
!1,
|
|
1048
1042
|
null,
|
|
1049
1043
|
"4f995c3c"
|
|
1050
1044
|
);
|
|
1051
|
-
const
|
|
1045
|
+
const Ar = xr.exports, Tr = /* @__PURE__ */ N({
|
|
1052
1046
|
__name: "lume-tooltip",
|
|
1053
1047
|
props: {
|
|
1054
1048
|
opened: {
|
|
@@ -1066,7 +1060,7 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1066
1060
|
position: {
|
|
1067
1061
|
type: String,
|
|
1068
1062
|
default: "auto",
|
|
1069
|
-
validator: (t) =>
|
|
1063
|
+
validator: (t) => bn.includes(t)
|
|
1070
1064
|
},
|
|
1071
1065
|
fixedPositioning: {
|
|
1072
1066
|
type: Boolean,
|
|
@@ -1139,10 +1133,10 @@ const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
|
1139
1133
|
async (I, L) => {
|
|
1140
1134
|
!L && I ? (await He(), k()) : T();
|
|
1141
1135
|
}
|
|
1142
|
-
), 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 };
|
|
1143
1137
|
}
|
|
1144
1138
|
});
|
|
1145
|
-
var
|
|
1139
|
+
var Lr = function() {
|
|
1146
1140
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1147
1141
|
return e.opened && e.targetElement ? r("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", class: {
|
|
1148
1142
|
"lume-tooltip--pointer-events": n.options.withPointerEvents
|
|
@@ -1167,15 +1161,15 @@ var Or = function() {
|
|
|
1167
1161
|
});
|
|
1168
1162
|
})], 2)];
|
|
1169
1163
|
})], 2) : e._e();
|
|
1170
|
-
},
|
|
1164
|
+
}, Or = [], $r = /* @__PURE__ */ E(
|
|
1165
|
+
Tr,
|
|
1171
1166
|
Lr,
|
|
1172
1167
|
Or,
|
|
1173
|
-
$r,
|
|
1174
1168
|
!1,
|
|
1175
1169
|
null,
|
|
1176
|
-
"
|
|
1170
|
+
"6f13599d"
|
|
1177
1171
|
);
|
|
1178
|
-
const
|
|
1172
|
+
const Ir = $r.exports, Ie = () => ({
|
|
1179
1173
|
data: {
|
|
1180
1174
|
type: Array,
|
|
1181
1175
|
required: !0
|
|
@@ -1217,7 +1211,7 @@ const wr = Ir.exports, Ie = () => ({
|
|
|
1217
1211
|
type: [String, Array],
|
|
1218
1212
|
default: () => []
|
|
1219
1213
|
}
|
|
1220
|
-
}),
|
|
1214
|
+
}), wr = /* @__PURE__ */ N({
|
|
1221
1215
|
__name: "lume-overlay-group",
|
|
1222
1216
|
props: {
|
|
1223
1217
|
...Ie(),
|
|
@@ -1245,7 +1239,7 @@ const wr = Ir.exports, Ie = () => ({
|
|
|
1245
1239
|
return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: i, getOverlayBarAttributes: u, LumeBar: Ue };
|
|
1246
1240
|
}
|
|
1247
1241
|
});
|
|
1248
|
-
var
|
|
1242
|
+
var Er = function() {
|
|
1249
1243
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1250
1244
|
return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(a, o) {
|
|
1251
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) {
|
|
@@ -1254,15 +1248,15 @@ var Nr = function() {
|
|
|
1254
1248
|
return n.emit("click", { index: o, event: l });
|
|
1255
1249
|
} } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
|
|
1256
1250
|
}), 1);
|
|
1257
|
-
},
|
|
1251
|
+
}, Nr = [], Hr = /* @__PURE__ */ E(
|
|
1252
|
+
wr,
|
|
1258
1253
|
Er,
|
|
1259
1254
|
Nr,
|
|
1260
|
-
Hr,
|
|
1261
1255
|
!1,
|
|
1262
1256
|
null,
|
|
1263
1257
|
null
|
|
1264
1258
|
);
|
|
1265
|
-
const
|
|
1259
|
+
const Dr = Hr.exports, Rr = [
|
|
1266
1260
|
"axis-click",
|
|
1267
1261
|
"axis-mouseenter",
|
|
1268
1262
|
"axis-mouseleave",
|
|
@@ -1304,14 +1298,14 @@ const Rr = Dr.exports, Sr = [
|
|
|
1304
1298
|
(i) => l(...i.detail)
|
|
1305
1299
|
);
|
|
1306
1300
|
}
|
|
1307
|
-
return { componentEventPropagator:
|
|
1301
|
+
return { componentEventPropagator: Rr.reduce((o, l) => (o[l] = (i) => t(l, i), o), {}), emitInternalEvent: r, listenInternalEvent: n };
|
|
1308
1302
|
};
|
|
1309
|
-
function
|
|
1303
|
+
function Sr(t) {
|
|
1310
1304
|
return { hasNegativeValues: d(
|
|
1311
1305
|
() => Tt(t.value).some((r) => r < 0)
|
|
1312
1306
|
) };
|
|
1313
1307
|
}
|
|
1314
|
-
function
|
|
1308
|
+
function Pr(t, e, r, n) {
|
|
1315
1309
|
const a = d(
|
|
1316
1310
|
() => n.value === O.HORIZONTAL
|
|
1317
1311
|
), o = d(
|
|
@@ -1336,12 +1330,12 @@ function Br(t, e, r, n) {
|
|
|
1336
1330
|
transform: i.value
|
|
1337
1331
|
})) };
|
|
1338
1332
|
}
|
|
1339
|
-
function
|
|
1333
|
+
function Br(t, e) {
|
|
1340
1334
|
return t.reduce((r, n) => Ze(n.values, e).map(
|
|
1341
1335
|
(a, o) => r[o] ? a.value > r[o] ? a.value : r[o] : a.value ?? 0
|
|
1342
1336
|
), []);
|
|
1343
1337
|
}
|
|
1344
|
-
function
|
|
1338
|
+
function Cr(t, e) {
|
|
1345
1339
|
return t.reduce((r, n) => Ze(n.values, e).map(
|
|
1346
1340
|
(a, o) => {
|
|
1347
1341
|
const l = a.value == null || a.value < 0 ? 0 : a.value;
|
|
@@ -1350,7 +1344,7 @@ function Gr(t, e) {
|
|
|
1350
1344
|
), []);
|
|
1351
1345
|
}
|
|
1352
1346
|
const ct = {
|
|
1353
|
-
"stacked-bar":
|
|
1347
|
+
"stacked-bar": Cr
|
|
1354
1348
|
};
|
|
1355
1349
|
function Dt(t, e, r, n, a, o, l, i) {
|
|
1356
1350
|
const u = d(
|
|
@@ -1364,7 +1358,7 @@ function Dt(t, e, r, n, a, o, l, i) {
|
|
|
1364
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](
|
|
1365
1359
|
v,
|
|
1366
1360
|
s
|
|
1367
|
-
) :
|
|
1361
|
+
) : Br(v, s);
|
|
1368
1362
|
t.value = f.map((_, h) => ({
|
|
1369
1363
|
cx: (o == null ? void 0 : o.value) === O.HORIZONTAL ? r.value(_) : Pe(r.value, h),
|
|
1370
1364
|
cy: (o == null ? void 0 : o.value) === O.HORIZONTAL ? Pe(n.value, h) : n.value(_)
|
|
@@ -1378,7 +1372,7 @@ function Dt(t, e, r, n, a, o, l, i) {
|
|
|
1378
1372
|
{ immediate: !0 }
|
|
1379
1373
|
), { shouldGenerateTooltipAnchors: u, updateTooltipAnchorAttributes: c };
|
|
1380
1374
|
}
|
|
1381
|
-
function
|
|
1375
|
+
function Gr() {
|
|
1382
1376
|
const t = Oe({
|
|
1383
1377
|
opened: !1,
|
|
1384
1378
|
targetElement: null
|
|
@@ -1389,7 +1383,7 @@ function Fr() {
|
|
|
1389
1383
|
t.opened = !1, t.targetElement = null;
|
|
1390
1384
|
} };
|
|
1391
1385
|
}
|
|
1392
|
-
function
|
|
1386
|
+
function Fr(t) {
|
|
1393
1387
|
return { getTooltipItems: d(
|
|
1394
1388
|
() => (r) => t.value.map(({ color: n, label: a, values: o }) => {
|
|
1395
1389
|
var l, i, u;
|
|
@@ -1415,39 +1409,39 @@ const Be = 16, Ce = 8, Ge = 28, Fe = 24, re = {
|
|
|
1415
1409
|
left: Fe
|
|
1416
1410
|
}
|
|
1417
1411
|
};
|
|
1418
|
-
function
|
|
1412
|
+
function jr(t) {
|
|
1419
1413
|
return !t || t === "auto" || t.top == null || t.top === "auto" ? Be : t.top;
|
|
1420
1414
|
}
|
|
1421
|
-
function
|
|
1415
|
+
function Vr(t) {
|
|
1422
1416
|
return !t || t === "auto" || t.right == null || t.right === "auto" ? Ce : t.right;
|
|
1423
1417
|
}
|
|
1424
|
-
function
|
|
1418
|
+
function Mr(t, e) {
|
|
1425
1419
|
return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Ge : t.bottom;
|
|
1426
1420
|
}
|
|
1427
|
-
function
|
|
1421
|
+
function zr(t, e) {
|
|
1428
1422
|
return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Fe : t.left;
|
|
1429
1423
|
}
|
|
1430
|
-
const
|
|
1424
|
+
const Wr = /* @__PURE__ */ N({
|
|
1431
1425
|
__name: "lume-chart",
|
|
1432
1426
|
props: {
|
|
1433
|
-
...
|
|
1427
|
+
...ie(),
|
|
1434
1428
|
chartType: {
|
|
1435
1429
|
type: String,
|
|
1436
1430
|
default: null
|
|
1437
1431
|
}
|
|
1438
1432
|
},
|
|
1439
1433
|
setup(t, { emit: e }) {
|
|
1440
|
-
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(
|
|
1441
1435
|
k,
|
|
1442
1436
|
x,
|
|
1443
1437
|
T,
|
|
1444
1438
|
u,
|
|
1445
1439
|
p
|
|
1446
1440
|
), G = d(() => ({
|
|
1447
|
-
top:
|
|
1448
|
-
right:
|
|
1449
|
-
bottom:
|
|
1450
|
-
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)
|
|
1451
1445
|
})), j = d(() => {
|
|
1452
1446
|
var b;
|
|
1453
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;
|
|
@@ -1477,7 +1471,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1477
1471
|
), C = d(() => {
|
|
1478
1472
|
const b = [], { noBaseScales: S } = p.value;
|
|
1479
1473
|
return S || b.push(() => !!(j.value && J.value)), b.every((V) => V() === !0);
|
|
1480
|
-
}), { hasNegativeValues: Z } =
|
|
1474
|
+
}), { hasNegativeValues: Z } = Sr(k), { negativeBarAttributes: F } = Pr(
|
|
1481
1475
|
T,
|
|
1482
1476
|
j,
|
|
1483
1477
|
J,
|
|
@@ -1491,7 +1485,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1491
1485
|
u,
|
|
1492
1486
|
k,
|
|
1493
1487
|
c
|
|
1494
|
-
), { tooltipConfig:
|
|
1488
|
+
), { tooltipConfig: ce, showTooltip: ge, hideTooltip: de } = Gr(), { getTooltipItems: ye } = Fr(k), le = d(
|
|
1495
1489
|
() => {
|
|
1496
1490
|
var b;
|
|
1497
1491
|
return ((b = p.value.tooltipOptions) == null ? void 0 : b.position) || "top";
|
|
@@ -1499,7 +1493,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1499
1493
|
), nt = d(() => {
|
|
1500
1494
|
var S;
|
|
1501
1495
|
const b = (S = p.value.tooltipOptions) == null ? void 0 : S.withPointerEvents;
|
|
1502
|
-
return
|
|
1496
|
+
return ce.opened && (!b || b && _.value === !1);
|
|
1503
1497
|
});
|
|
1504
1498
|
function be(b) {
|
|
1505
1499
|
var V;
|
|
@@ -1512,7 +1506,7 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1512
1506
|
e("hovered-index-changed", { newIndex: b, oldIndex: S }), e("update:hoveredIndex", b);
|
|
1513
1507
|
}
|
|
1514
1508
|
function ke() {
|
|
1515
|
-
|
|
1509
|
+
de(), v.value = -1, e("update:hoveredIndex", -1);
|
|
1516
1510
|
}
|
|
1517
1511
|
function we(b) {
|
|
1518
1512
|
if (!a.value.some(
|
|
@@ -1550,13 +1544,13 @@ const Zr = /* @__PURE__ */ N({
|
|
|
1550
1544
|
},
|
|
1551
1545
|
{ flush: "post" }
|
|
1552
1546
|
), H(_, (b) => {
|
|
1553
|
-
b === !1 &&
|
|
1547
|
+
b === !1 && ce.opened && ke();
|
|
1554
1548
|
}), ee(async () => {
|
|
1555
1549
|
e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), D("lume__internal--hover", be);
|
|
1556
|
-
}), 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 };
|
|
1557
1551
|
}
|
|
1558
1552
|
});
|
|
1559
|
-
var
|
|
1553
|
+
var Zr = function() {
|
|
1560
1554
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1561
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) {
|
|
1562
1556
|
return n.emit("chart-click", a);
|
|
@@ -1613,15 +1607,15 @@ var Ur = function() {
|
|
|
1613
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) {
|
|
1614
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));
|
|
1615
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);
|
|
1616
|
-
},
|
|
1610
|
+
}, Ur = [], Xr = /* @__PURE__ */ E(
|
|
1611
|
+
Wr,
|
|
1617
1612
|
Zr,
|
|
1618
1613
|
Ur,
|
|
1619
|
-
Xr,
|
|
1620
1614
|
!1,
|
|
1621
1615
|
null,
|
|
1622
|
-
"
|
|
1616
|
+
"17c48844"
|
|
1623
1617
|
);
|
|
1624
|
-
const
|
|
1618
|
+
const se = Xr.exports, dt = 8, Yr = 8, Kr = 20, ve = 2, vt = 2, Jr = /* @__PURE__ */ N({
|
|
1625
1619
|
__name: "lume-alluvial-node-label",
|
|
1626
1620
|
props: {
|
|
1627
1621
|
bottom: { type: Boolean, default: !1 },
|
|
@@ -1646,18 +1640,18 @@ const de = Yr.exports, dt = 8, Kr = 8, Jr = 20, se = 2, vt = 2, Qr = /* @__PURE_
|
|
|
1646
1640
|
}), { __sfc: !0, props: r, emit: e, text: n, foreignObjectWidth: a, foreignObjectHeight: o };
|
|
1647
1641
|
}
|
|
1648
1642
|
});
|
|
1649
|
-
var
|
|
1643
|
+
var Qr = function() {
|
|
1650
1644
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1651
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);
|
|
1652
|
-
},
|
|
1646
|
+
}, qr = [], ea = /* @__PURE__ */ E(
|
|
1647
|
+
Jr,
|
|
1653
1648
|
Qr,
|
|
1654
1649
|
qr,
|
|
1655
|
-
ea,
|
|
1656
1650
|
!1,
|
|
1657
1651
|
null,
|
|
1658
1652
|
"7126dfdb"
|
|
1659
1653
|
);
|
|
1660
|
-
const
|
|
1654
|
+
const ta = ea.exports, na = /* @__PURE__ */ N({
|
|
1661
1655
|
__name: "lume-alluvial-node-value",
|
|
1662
1656
|
props: {
|
|
1663
1657
|
bottom: { type: Boolean, default: !0 }
|
|
@@ -1666,18 +1660,18 @@ const na = ta.exports, ra = /* @__PURE__ */ N({
|
|
|
1666
1660
|
return { __sfc: !0 };
|
|
1667
1661
|
}
|
|
1668
1662
|
});
|
|
1669
|
-
var
|
|
1663
|
+
var ra = function() {
|
|
1670
1664
|
var e = this, r = e._self._c;
|
|
1671
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);
|
|
1672
|
-
},
|
|
1666
|
+
}, aa = [], oa = /* @__PURE__ */ E(
|
|
1667
|
+
na,
|
|
1673
1668
|
ra,
|
|
1674
1669
|
aa,
|
|
1675
|
-
oa,
|
|
1676
1670
|
!1,
|
|
1677
1671
|
null,
|
|
1678
1672
|
"b4fc758b"
|
|
1679
1673
|
);
|
|
1680
|
-
const
|
|
1674
|
+
const la = oa.exports, ua = /* @__PURE__ */ N({
|
|
1681
1675
|
__name: "lume-alluvial-node-header",
|
|
1682
1676
|
props: {
|
|
1683
1677
|
x: { type: Number, required: !0 },
|
|
@@ -1692,18 +1686,18 @@ const ua = la.exports, ia = /* @__PURE__ */ N({
|
|
|
1692
1686
|
return { __sfc: !0, textRef: e, beforeTransform: r, afterTransform: n };
|
|
1693
1687
|
}
|
|
1694
1688
|
});
|
|
1695
|
-
var
|
|
1689
|
+
var ia = function() {
|
|
1696
1690
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1697
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)]);
|
|
1698
|
-
},
|
|
1692
|
+
}, sa = [], ca = /* @__PURE__ */ E(
|
|
1693
|
+
ua,
|
|
1699
1694
|
ia,
|
|
1700
1695
|
sa,
|
|
1701
|
-
ca,
|
|
1702
1696
|
!1,
|
|
1703
1697
|
null,
|
|
1704
1698
|
"0e483453"
|
|
1705
1699
|
);
|
|
1706
|
-
const
|
|
1700
|
+
const da = ca.exports;
|
|
1707
1701
|
function ft(t, e) {
|
|
1708
1702
|
return {
|
|
1709
1703
|
x0: 0 + (e ? e.left : 0),
|
|
@@ -1712,7 +1706,7 @@ function ft(t, e) {
|
|
|
1712
1706
|
y1: t.height - (e ? e.bottom : 0)
|
|
1713
1707
|
};
|
|
1714
1708
|
}
|
|
1715
|
-
function
|
|
1709
|
+
function va(t) {
|
|
1716
1710
|
const e = w(ft(t));
|
|
1717
1711
|
function r(n) {
|
|
1718
1712
|
e.value = ft(t, n);
|
|
@@ -1720,24 +1714,24 @@ function fa(t) {
|
|
|
1720
1714
|
return { extents: e, updateExtents: r };
|
|
1721
1715
|
}
|
|
1722
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 || {});
|
|
1723
|
-
const
|
|
1717
|
+
const fa = "[lume] ";
|
|
1724
1718
|
function je(t, e, r = !0) {
|
|
1725
|
-
r && At() || console.error(
|
|
1719
|
+
r && At() || console.error(fa + "Error: " + t, e);
|
|
1726
1720
|
}
|
|
1727
|
-
const
|
|
1728
|
-
function
|
|
1721
|
+
const pa = 200;
|
|
1722
|
+
function ue(t) {
|
|
1729
1723
|
return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
|
|
1730
1724
|
}
|
|
1731
|
-
function
|
|
1725
|
+
function ma(t, e) {
|
|
1732
1726
|
return e.nodes.find((r) => r.id === t);
|
|
1733
1727
|
}
|
|
1734
|
-
function
|
|
1728
|
+
function _a(t, e) {
|
|
1735
1729
|
return e.links.find((r) => r.id === t);
|
|
1736
1730
|
}
|
|
1737
1731
|
function Rt(t) {
|
|
1738
1732
|
return !!(t.sourceLinks && t.targetLinks);
|
|
1739
1733
|
}
|
|
1740
|
-
function
|
|
1734
|
+
function ha(t, e) {
|
|
1741
1735
|
if (!e) return;
|
|
1742
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(
|
|
1743
1737
|
(l, i) => Math.max(l, i.getBBox().width),
|
|
@@ -1753,15 +1747,15 @@ function ga(t, e) {
|
|
|
1753
1747
|
bottom: 0
|
|
1754
1748
|
};
|
|
1755
1749
|
}
|
|
1756
|
-
function
|
|
1750
|
+
function ga(t) {
|
|
1757
1751
|
return t.map((e) => {
|
|
1758
|
-
const r = e.y1 - e.y0 <
|
|
1752
|
+
const r = e.y1 - e.y0 < ve;
|
|
1759
1753
|
return {
|
|
1760
1754
|
x: e.x0,
|
|
1761
|
-
y: e.y0 - (r ?
|
|
1755
|
+
y: e.y0 - (r ? ve / 2 : 0),
|
|
1762
1756
|
// Negative offset to account for the min. height
|
|
1763
1757
|
width: e.x1 - e.x0,
|
|
1764
|
-
height: r ?
|
|
1758
|
+
height: r ? ve : e.y1 - e.y0,
|
|
1765
1759
|
textTransform: {
|
|
1766
1760
|
x: e.depth > 0 ? e.x1 + dt : e.x0 - dt,
|
|
1767
1761
|
y: (e.y1 + e.y0) / 2
|
|
@@ -1770,22 +1764,22 @@ function ya(t) {
|
|
|
1770
1764
|
};
|
|
1771
1765
|
});
|
|
1772
1766
|
}
|
|
1773
|
-
function
|
|
1767
|
+
function ya(t) {
|
|
1774
1768
|
return [t.source.x1, t.y0];
|
|
1775
1769
|
}
|
|
1776
|
-
function
|
|
1770
|
+
function ba(t) {
|
|
1777
1771
|
return [t.target.x0, t.y1];
|
|
1778
1772
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return t.curveFunction ? Xt(t.curveFunction).source(
|
|
1773
|
+
function ka(t) {
|
|
1774
|
+
return t.curveFunction ? Xt(t.curveFunction).source(ya).target(ba) : Mt();
|
|
1781
1775
|
}
|
|
1782
|
-
function
|
|
1776
|
+
function xa(t) {
|
|
1783
1777
|
return t.map((e) => {
|
|
1784
1778
|
var r;
|
|
1785
1779
|
return {
|
|
1786
1780
|
id: e.id,
|
|
1787
1781
|
color: e.color || ((r = e.source) == null ? void 0 : r.color) || he,
|
|
1788
|
-
d:
|
|
1782
|
+
d: ka(e)(e),
|
|
1789
1783
|
strokeWidth: Math.max(1, e.width),
|
|
1790
1784
|
link: e
|
|
1791
1785
|
};
|
|
@@ -1800,7 +1794,7 @@ function pt(t, e, r, n, a) {
|
|
|
1800
1794
|
return;
|
|
1801
1795
|
}
|
|
1802
1796
|
const o = Date.now(), l = vn(e, r), i = () => {
|
|
1803
|
-
let c = (Date.now() - o) /
|
|
1797
|
+
let c = (Date.now() - o) / pa;
|
|
1804
1798
|
c > 1 && (c = 1), t.node = {
|
|
1805
1799
|
...t.node,
|
|
1806
1800
|
transitionValue: a && c === 1 ? void 0 : l(c)
|
|
@@ -1808,14 +1802,14 @@ function pt(t, e, r, n, a) {
|
|
|
1808
1802
|
};
|
|
1809
1803
|
requestAnimationFrame(i);
|
|
1810
1804
|
}
|
|
1811
|
-
const
|
|
1805
|
+
const Aa = {
|
|
1812
1806
|
nodes: [],
|
|
1813
1807
|
links: []
|
|
1814
1808
|
};
|
|
1815
1809
|
function mt(t, e) {
|
|
1816
1810
|
return e.find((r) => r.every((n) => n.x0 === t.x0));
|
|
1817
1811
|
}
|
|
1818
|
-
function
|
|
1812
|
+
function Ta(t, e, r) {
|
|
1819
1813
|
const n = w(null), a = d(() => {
|
|
1820
1814
|
var s, f;
|
|
1821
1815
|
return (f = (s = t.value) == null ? void 0 : s[0]) == null ? void 0 : f.values.map(
|
|
@@ -1847,7 +1841,7 @@ function La(t, e, r) {
|
|
|
1847
1841
|
}
|
|
1848
1842
|
).filter(Boolean).flat();
|
|
1849
1843
|
}
|
|
1850
|
-
), 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(() => {
|
|
1851
1845
|
var s;
|
|
1852
1846
|
return (s = n.value) == null ? void 0 : s.nodes.reduce(
|
|
1853
1847
|
(f, m) => {
|
|
@@ -1885,7 +1879,7 @@ function La(t, e, r) {
|
|
|
1885
1879
|
[m, _]
|
|
1886
1880
|
])({ nodes: a.value, links: o.value });
|
|
1887
1881
|
} catch (s) {
|
|
1888
|
-
je(Te.GraphProblem, s), n.value =
|
|
1882
|
+
je(Te.GraphProblem, s), n.value = Aa;
|
|
1889
1883
|
}
|
|
1890
1884
|
}), { columns: i, graph: v };
|
|
1891
1885
|
}
|
|
@@ -1905,10 +1899,10 @@ function Me(t, e) {
|
|
|
1905
1899
|
);
|
|
1906
1900
|
}), e;
|
|
1907
1901
|
}
|
|
1908
|
-
function
|
|
1902
|
+
function La(t, e) {
|
|
1909
1903
|
return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
|
|
1910
1904
|
}
|
|
1911
|
-
const
|
|
1905
|
+
const Oa = (t, e) => {
|
|
1912
1906
|
let r;
|
|
1913
1907
|
Rt(t) ? r = {
|
|
1914
1908
|
[t.id]: t.value,
|
|
@@ -1920,32 +1914,32 @@ const $a = (t, e) => {
|
|
|
1920
1914
|
...Ve(t.source),
|
|
1921
1915
|
...Me(t.target)
|
|
1922
1916
|
};
|
|
1923
|
-
const n =
|
|
1917
|
+
const n = La(r, e);
|
|
1924
1918
|
return { nodes: r, links: n };
|
|
1925
|
-
},
|
|
1919
|
+
}, $a = (t) => {
|
|
1926
1920
|
if (Rt(t)) {
|
|
1927
1921
|
const e = [...t.sourceLinks, ...t.targetLinks];
|
|
1928
1922
|
return {
|
|
1929
1923
|
nodes: e.reduce(
|
|
1930
|
-
(r, { source: n, target: a, value: o }) => n === t ? { ...r, [
|
|
1931
|
-
{ [
|
|
1924
|
+
(r, { source: n, target: a, value: o }) => n === t ? { ...r, [ue(a)]: o } : { ...r, [ue(n)]: o },
|
|
1925
|
+
{ [ue(t)]: t.value }
|
|
1932
1926
|
),
|
|
1933
1927
|
links: e.map(({ id: r }) => r)
|
|
1934
1928
|
};
|
|
1935
1929
|
}
|
|
1936
1930
|
return {
|
|
1937
1931
|
nodes: {
|
|
1938
|
-
[
|
|
1939
|
-
[
|
|
1932
|
+
[ue(t.target)]: t.value,
|
|
1933
|
+
[ue(t.source)]: t.source.value
|
|
1940
1934
|
},
|
|
1941
1935
|
links: [t.id]
|
|
1942
1936
|
};
|
|
1943
1937
|
};
|
|
1944
|
-
function
|
|
1938
|
+
function Ia(t, e, r) {
|
|
1945
1939
|
const n = w(null), a = d(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
|
|
1946
1940
|
n.value,
|
|
1947
1941
|
r.value
|
|
1948
|
-
) : e.value.highlightedElements === "closest" ?
|
|
1942
|
+
) : e.value.highlightedElements === "closest" ? $a(n.value, r.value) : Oa(n.value, r.value) : { nodes: {}, links: [] });
|
|
1949
1943
|
return H(a, (o, l) => {
|
|
1950
1944
|
if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
|
|
1951
1945
|
t.value.forEach((i) => {
|
|
@@ -1969,7 +1963,7 @@ function wa(t, e, r) {
|
|
|
1969
1963
|
});
|
|
1970
1964
|
}), { highlightedElements: a, hoveredElement: n };
|
|
1971
1965
|
}
|
|
1972
|
-
const
|
|
1966
|
+
const wa = /* @__PURE__ */ N({
|
|
1973
1967
|
__name: "lume-alluvial-group",
|
|
1974
1968
|
props: {
|
|
1975
1969
|
...Ie(),
|
|
@@ -1980,7 +1974,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
1980
1974
|
},
|
|
1981
1975
|
emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
|
|
1982
1976
|
setup(t, { emit: e }) {
|
|
1983
|
-
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(
|
|
1984
1978
|
l,
|
|
1985
1979
|
o,
|
|
1986
1980
|
f
|
|
@@ -1995,7 +1989,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
1995
1989
|
x: p.value[A]
|
|
1996
1990
|
}));
|
|
1997
1991
|
}), x = d(
|
|
1998
|
-
() => o.value.nodeHeaderPadding ??
|
|
1992
|
+
() => o.value.nodeHeaderPadding ?? Kr
|
|
1999
1993
|
), T = d(() => {
|
|
2000
1994
|
if (!(!o.value.gradient || !f.value))
|
|
2001
1995
|
return f.value.links.reduce((g, A) => {
|
|
@@ -2013,17 +2007,17 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2013
2007
|
), A = [];
|
|
2014
2008
|
return g.forEach(($) => {
|
|
2015
2009
|
const C = [];
|
|
2016
|
-
i.value.filter(({ link: Z }) => Z.target.id === $.node.id).reverse().reduce((Z, F, tt,
|
|
2017
|
-
const ge = F.link.target.y1 - F.link.target.y0 >
|
|
2018
|
-
let
|
|
2019
|
-
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({
|
|
2020
2014
|
x: $.x,
|
|
2021
2015
|
y: $.y + Z,
|
|
2022
|
-
height:
|
|
2016
|
+
height: le,
|
|
2023
2017
|
width: $.width,
|
|
2024
2018
|
key: `node-block-${$.node.id}-source-link-${F.link.source.id}`,
|
|
2025
2019
|
class: `lume-alluvial-group__node-block lume-fill--${F.link.source.color || he}`
|
|
2026
|
-
}), Z +
|
|
2020
|
+
}), Z + le;
|
|
2027
2021
|
}, 0), A.push({
|
|
2028
2022
|
id: $.node.id,
|
|
2029
2023
|
subNodes: C
|
|
@@ -2060,7 +2054,7 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2060
2054
|
m.value = null;
|
|
2061
2055
|
return;
|
|
2062
2056
|
}
|
|
2063
|
-
const A =
|
|
2057
|
+
const A = ma(g, f.value) || _a(g, f.value);
|
|
2064
2058
|
if (!A) {
|
|
2065
2059
|
q(X.InvalidHoveredElement);
|
|
2066
2060
|
return;
|
|
@@ -2072,17 +2066,17 @@ const Ea = /* @__PURE__ */ N({
|
|
|
2072
2066
|
return ((A = I.value.find(({ id: $ }) => g === $)) == null ? void 0 : A.subNodes) ?? [];
|
|
2073
2067
|
}
|
|
2074
2068
|
function Q() {
|
|
2075
|
-
const g =
|
|
2069
|
+
const g = ha(f.value, u.value);
|
|
2076
2070
|
v(g);
|
|
2077
2071
|
}
|
|
2078
2072
|
return H(f, (g) => {
|
|
2079
|
-
l.value =
|
|
2073
|
+
l.value = ga(g.nodes), i.value = xa(g.links).reverse(), m.value == null && r.hoveredElementId != null && W(r.hoveredElementId);
|
|
2080
2074
|
}), H([r.containerSize, u], () => {
|
|
2081
2075
|
r.containerSize.width && r.containerSize.height && Q();
|
|
2082
|
-
}), 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 };
|
|
2083
2077
|
}
|
|
2084
2078
|
});
|
|
2085
|
-
var
|
|
2079
|
+
var Ea = function() {
|
|
2086
2080
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2087
2081
|
return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", [e._l(n.nodeHeaders, function(a, o) {
|
|
2088
2082
|
return [e._t(`node-header-${o}`, function() {
|
|
@@ -2136,15 +2130,15 @@ var Na = function() {
|
|
|
2136
2130
|
a.node.value
|
|
2137
2131
|
) })], 2)], 2)]);
|
|
2138
2132
|
})], 2);
|
|
2139
|
-
},
|
|
2133
|
+
}, Na = [], Ha = /* @__PURE__ */ E(
|
|
2134
|
+
wa,
|
|
2140
2135
|
Ea,
|
|
2141
2136
|
Na,
|
|
2142
|
-
Ha,
|
|
2143
2137
|
!1,
|
|
2144
2138
|
null,
|
|
2145
|
-
"
|
|
2139
|
+
"2a790ee0"
|
|
2146
2140
|
);
|
|
2147
|
-
const
|
|
2141
|
+
const Da = Ha.exports, Ra = {
|
|
2148
2142
|
margins: {
|
|
2149
2143
|
top: 0,
|
|
2150
2144
|
right: 0,
|
|
@@ -2163,13 +2157,13 @@ const Ra = Da.exports, Sa = {
|
|
|
2163
2157
|
nodeAlign: Wt,
|
|
2164
2158
|
valueFormat: (t) => String(t),
|
|
2165
2159
|
iterations: 6
|
|
2166
|
-
},
|
|
2160
|
+
}, Sa = /* @__PURE__ */ N({
|
|
2167
2161
|
__name: "lume-alluvial-diagram",
|
|
2168
2162
|
props: {
|
|
2169
|
-
...
|
|
2163
|
+
...Jn(We)
|
|
2170
2164
|
},
|
|
2171
2165
|
setup(t, { emit: e }) {
|
|
2172
|
-
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);
|
|
2173
2167
|
function u(c) {
|
|
2174
2168
|
return {
|
|
2175
2169
|
...c,
|
|
@@ -2177,10 +2171,10 @@ const Ra = Da.exports, Sa = {
|
|
|
2177
2171
|
// Alluvial chart never uses base scales
|
|
2178
2172
|
};
|
|
2179
2173
|
}
|
|
2180
|
-
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 };
|
|
2181
2175
|
}
|
|
2182
2176
|
});
|
|
2183
|
-
var
|
|
2177
|
+
var Pa = function() {
|
|
2184
2178
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2185
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) {
|
|
2186
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) {
|
|
@@ -2193,20 +2187,20 @@ var Ba = function() {
|
|
|
2193
2187
|
return [e._t(o, null, null, l || {})];
|
|
2194
2188
|
} };
|
|
2195
2189
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2196
|
-
},
|
|
2190
|
+
}, Ba = [], Ca = /* @__PURE__ */ E(
|
|
2191
|
+
Sa,
|
|
2197
2192
|
Pa,
|
|
2198
2193
|
Ba,
|
|
2199
|
-
Ca,
|
|
2200
2194
|
!1,
|
|
2201
2195
|
null,
|
|
2202
2196
|
null
|
|
2203
2197
|
);
|
|
2204
|
-
const
|
|
2198
|
+
const Qo = Ca.exports;
|
|
2205
2199
|
var ze = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(ze || {});
|
|
2206
|
-
const
|
|
2200
|
+
const Ga = /* @__PURE__ */ N({
|
|
2207
2201
|
__name: "lume-bar-chart",
|
|
2208
2202
|
props: {
|
|
2209
|
-
...
|
|
2203
|
+
...ie(),
|
|
2210
2204
|
type: {
|
|
2211
2205
|
type: String,
|
|
2212
2206
|
default: null,
|
|
@@ -2215,11 +2209,11 @@ const Fa = /* @__PURE__ */ N({
|
|
|
2215
2209
|
},
|
|
2216
2210
|
setup(t, { emit: e }) {
|
|
2217
2211
|
const r = t, n = Ne(
|
|
2218
|
-
() => import("./
|
|
2212
|
+
() => import("./CB9KQjQz.js")
|
|
2219
2213
|
), a = Ne(
|
|
2220
|
-
() => import("./
|
|
2214
|
+
() => import("./C28EuqGB.js")
|
|
2221
2215
|
), o = Ne(
|
|
2222
|
-
() => import("./
|
|
2216
|
+
() => import("./DtjWrfsb.js")
|
|
2223
2217
|
), l = /* @__PURE__ */ new Map([
|
|
2224
2218
|
["single", n],
|
|
2225
2219
|
["grouped", a],
|
|
@@ -2245,39 +2239,39 @@ const Fa = /* @__PURE__ */ N({
|
|
|
2245
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 };
|
|
2246
2240
|
}
|
|
2247
2241
|
});
|
|
2248
|
-
var
|
|
2242
|
+
var Fa = function() {
|
|
2249
2243
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2250
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) {
|
|
2251
2245
|
return { key: o, fn: function(l) {
|
|
2252
2246
|
return [e._t(o, null, null, l || {})];
|
|
2253
2247
|
} };
|
|
2254
2248
|
})], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2255
|
-
},
|
|
2249
|
+
}, ja = [], Va = /* @__PURE__ */ E(
|
|
2250
|
+
Ga,
|
|
2256
2251
|
Fa,
|
|
2257
2252
|
ja,
|
|
2258
|
-
Va,
|
|
2259
2253
|
!1,
|
|
2260
2254
|
null,
|
|
2261
2255
|
null
|
|
2262
2256
|
);
|
|
2263
|
-
const
|
|
2264
|
-
function
|
|
2265
|
-
return Object.values(
|
|
2257
|
+
const qo = Va.exports;
|
|
2258
|
+
function Ma(t) {
|
|
2259
|
+
return Object.values(gn).includes(t) || t == null;
|
|
2266
2260
|
}
|
|
2267
|
-
function
|
|
2261
|
+
function za(t) {
|
|
2268
2262
|
return Object.values(O).includes(t);
|
|
2269
2263
|
}
|
|
2270
|
-
const
|
|
2264
|
+
const Wa = (t = !1) => ({
|
|
2271
2265
|
type: {
|
|
2272
2266
|
type: String,
|
|
2273
2267
|
default: null,
|
|
2274
|
-
validator:
|
|
2268
|
+
validator: Ma
|
|
2275
2269
|
},
|
|
2276
2270
|
...t ? {
|
|
2277
2271
|
orientation: {
|
|
2278
2272
|
type: String,
|
|
2279
2273
|
default: O.VERTICAL,
|
|
2280
|
-
validator:
|
|
2274
|
+
validator: za
|
|
2281
2275
|
}
|
|
2282
2276
|
} : {}
|
|
2283
2277
|
});
|
|
@@ -2302,10 +2296,10 @@ function St(t, e) {
|
|
|
2302
2296
|
});
|
|
2303
2297
|
return { multiBarData: r, groupedData: n };
|
|
2304
2298
|
}
|
|
2305
|
-
function
|
|
2299
|
+
function Za(t, e) {
|
|
2306
2300
|
return t.value.length === 1 ? "single" : e.value;
|
|
2307
2301
|
}
|
|
2308
|
-
function
|
|
2302
|
+
function Ua(t, e, r) {
|
|
2309
2303
|
const n = d(
|
|
2310
2304
|
() => r.value === O.HORIZONTAL
|
|
2311
2305
|
);
|
|
@@ -2315,13 +2309,13 @@ function Xa(t, e, r) {
|
|
|
2315
2309
|
const o = d(() => n.value ? (a(t.value), t.value) : t.value), l = d(() => n.value ? e.value : (a(e.value), e.value));
|
|
2316
2310
|
return { barXScale: o, barYScale: l };
|
|
2317
2311
|
}
|
|
2318
|
-
const
|
|
2312
|
+
const Xa = {
|
|
2319
2313
|
x: 0,
|
|
2320
2314
|
y: 0,
|
|
2321
2315
|
width: 0,
|
|
2322
2316
|
height: 0
|
|
2323
2317
|
};
|
|
2324
|
-
function
|
|
2318
|
+
function Ya(t, e, r, n, a, o) {
|
|
2325
2319
|
const l = d(
|
|
2326
2320
|
() => n.value === O.HORIZONTAL
|
|
2327
2321
|
);
|
|
@@ -2336,7 +2330,7 @@ function Ka(t, e, r, n, a, o) {
|
|
|
2336
2330
|
return l.value ? r.value.bandwidth() : s < 0 ? r.value(s) - r.value(0) : r.value(0) - r.value(s);
|
|
2337
2331
|
}
|
|
2338
2332
|
function v(s, f, m) {
|
|
2339
|
-
if (!(e.value && r.value)) return
|
|
2333
|
+
if (!(e.value && r.value)) return Xa;
|
|
2340
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);
|
|
2341
2335
|
return {
|
|
2342
2336
|
classList: [`lume-fill--${p}`, ...o],
|
|
@@ -2350,16 +2344,16 @@ function Ka(t, e, r, n, a, o) {
|
|
|
2350
2344
|
}
|
|
2351
2345
|
return { barAttributeGenerator: v };
|
|
2352
2346
|
}
|
|
2353
|
-
const
|
|
2347
|
+
const Ka = {
|
|
2354
2348
|
x: 0,
|
|
2355
2349
|
y: 0,
|
|
2356
2350
|
width: 0,
|
|
2357
2351
|
height: 0
|
|
2358
2352
|
};
|
|
2359
|
-
function
|
|
2353
|
+
function Ja(t, e, r, n, a, o) {
|
|
2360
2354
|
const l = d(
|
|
2361
2355
|
() => n.value === O.HORIZONTAL
|
|
2362
|
-
), 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));
|
|
2363
2357
|
function c(_, h, y) {
|
|
2364
2358
|
if (l.value)
|
|
2365
2359
|
return _ >= 0 ? e.value(0) : e.value(_);
|
|
@@ -2380,7 +2374,7 @@ function Qa(t, e, r, n, a, o) {
|
|
|
2380
2374
|
return l.value ? u.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
|
|
2381
2375
|
}
|
|
2382
2376
|
function m(_, h, y) {
|
|
2383
|
-
if (!(e.value && r.value)) return
|
|
2377
|
+
if (!(e.value && r.value)) return Ka;
|
|
2384
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);
|
|
2385
2379
|
return {
|
|
2386
2380
|
classList: [`lume-fill--${T}`, ...o],
|
|
@@ -2394,7 +2388,7 @@ function Qa(t, e, r, n, a, o) {
|
|
|
2394
2388
|
}
|
|
2395
2389
|
return { barAttributeGenerator: m };
|
|
2396
2390
|
}
|
|
2397
|
-
function
|
|
2391
|
+
function Qa(t, e, r) {
|
|
2398
2392
|
const n = d(
|
|
2399
2393
|
() => e.value === O.HORIZONTAL
|
|
2400
2394
|
), a = d(() => {
|
|
@@ -2412,9 +2406,9 @@ function qa(t, e, r) {
|
|
|
2412
2406
|
return Math.max(...u);
|
|
2413
2407
|
});
|
|
2414
2408
|
function l(u, c, v) {
|
|
2415
|
-
return c.length ? n.value ?
|
|
2409
|
+
return c.length ? n.value ? fe().domain([a.value, o.value]).range([0, v.width]) : Object.assign(
|
|
2416
2410
|
st(
|
|
2417
|
-
|
|
2411
|
+
pe().domain(c.map((s, f) => f)).range([0, v.width]),
|
|
2418
2412
|
e.value,
|
|
2419
2413
|
r.value
|
|
2420
2414
|
),
|
|
@@ -2424,16 +2418,16 @@ function qa(t, e, r) {
|
|
|
2424
2418
|
function i(u, c, v) {
|
|
2425
2419
|
return c.length ? n.value ? Object.assign(
|
|
2426
2420
|
st(
|
|
2427
|
-
|
|
2421
|
+
pe().domain(c.map((s, f) => f)).range([0, v.height]),
|
|
2428
2422
|
e.value,
|
|
2429
2423
|
r.value
|
|
2430
2424
|
),
|
|
2431
2425
|
{ labels: c }
|
|
2432
|
-
) :
|
|
2426
|
+
) : fe().domain([o.value, a.value]).range([0, v.height]) : null;
|
|
2433
2427
|
}
|
|
2434
2428
|
return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
|
|
2435
2429
|
}
|
|
2436
|
-
function
|
|
2430
|
+
function qa(t, e, r, n, a, o) {
|
|
2437
2431
|
const l = d(
|
|
2438
2432
|
() => n.value === O.HORIZONTAL
|
|
2439
2433
|
), i = d(
|
|
@@ -2478,10 +2472,10 @@ function eo(t, e, r, n, a, o) {
|
|
|
2478
2472
|
return { barAttributeGenerator: y };
|
|
2479
2473
|
}
|
|
2480
2474
|
const _t = {
|
|
2481
|
-
single:
|
|
2482
|
-
grouped:
|
|
2483
|
-
stacked:
|
|
2484
|
-
},
|
|
2475
|
+
single: Ya,
|
|
2476
|
+
grouped: Ja,
|
|
2477
|
+
stacked: qa
|
|
2478
|
+
}, eo = /* @__PURE__ */ N({
|
|
2485
2479
|
__name: "lume-bar-group",
|
|
2486
2480
|
props: {
|
|
2487
2481
|
...Ie(),
|
|
@@ -2489,7 +2483,7 @@ const _t = {
|
|
|
2489
2483
|
type: [String, Array],
|
|
2490
2484
|
default: () => []
|
|
2491
2485
|
},
|
|
2492
|
-
...
|
|
2486
|
+
...Wa(!0),
|
|
2493
2487
|
transition: {
|
|
2494
2488
|
type: Boolean,
|
|
2495
2489
|
default: !0
|
|
@@ -2507,8 +2501,8 @@ const _t = {
|
|
|
2507
2501
|
yScale: c,
|
|
2508
2502
|
classList: v,
|
|
2509
2503
|
labels: s
|
|
2510
|
-
} = B(r), f = Le("chartID"), { emitInternalEvent: m } = K(e, f), { groupedData: _ } = St(n, s), { barXScale: h, barYScale: y } =
|
|
2511
|
-
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](
|
|
2512
2506
|
n,
|
|
2513
2507
|
h,
|
|
2514
2508
|
y,
|
|
@@ -2527,7 +2521,7 @@ const _t = {
|
|
|
2527
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 };
|
|
2528
2522
|
}
|
|
2529
2523
|
});
|
|
2530
|
-
var
|
|
2524
|
+
var to = function() {
|
|
2531
2525
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2532
2526
|
return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
|
|
2533
2527
|
return r("g", { key: o, on: { mouseenter: function(l) {
|
|
@@ -2542,15 +2536,15 @@ var no = function() {
|
|
|
2542
2536
|
} } }, "lume-bar", n.getBarAttributes(l, i, o, a), !1));
|
|
2543
2537
|
}), 1);
|
|
2544
2538
|
}), 0);
|
|
2545
|
-
},
|
|
2539
|
+
}, no = [], ro = /* @__PURE__ */ E(
|
|
2540
|
+
eo,
|
|
2546
2541
|
to,
|
|
2547
2542
|
no,
|
|
2548
|
-
ro,
|
|
2549
2543
|
!1,
|
|
2550
2544
|
null,
|
|
2551
2545
|
null
|
|
2552
2546
|
);
|
|
2553
|
-
const et =
|
|
2547
|
+
const et = ro.exports, ao = {
|
|
2554
2548
|
[O.VERTICAL]: {
|
|
2555
2549
|
withTooltip: !0,
|
|
2556
2550
|
xAxisOptions: {},
|
|
@@ -2563,20 +2557,20 @@ const et = ao.exports, oo = {
|
|
|
2563
2557
|
yAxisOptions: { gridLines: !1 },
|
|
2564
2558
|
margins: re.HORIZONTAL
|
|
2565
2559
|
}
|
|
2566
|
-
},
|
|
2560
|
+
}, oo = /* @__PURE__ */ N({
|
|
2567
2561
|
__name: "lume-single-bar-chart",
|
|
2568
2562
|
props: {
|
|
2569
|
-
...
|
|
2563
|
+
...ie(We)
|
|
2570
2564
|
},
|
|
2571
2565
|
setup(t, { emit: e }) {
|
|
2572
2566
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = B(r), i = d(
|
|
2573
|
-
() =>
|
|
2567
|
+
() => ao[o.value || O.VERTICAL]
|
|
2574
2568
|
// needs to be computed so that default options are reactive
|
|
2575
2569
|
), { allOptions: u } = Y(l, i);
|
|
2576
|
-
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 };
|
|
2577
2571
|
}
|
|
2578
2572
|
});
|
|
2579
|
-
var
|
|
2573
|
+
var lo = function() {
|
|
2580
2574
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2581
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) {
|
|
2582
2576
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2585,15 +2579,15 @@ var uo = function() {
|
|
|
2585
2579
|
return [e._t(o, null, null, l || {})];
|
|
2586
2580
|
} };
|
|
2587
2581
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2588
|
-
},
|
|
2582
|
+
}, uo = [], io = /* @__PURE__ */ E(
|
|
2583
|
+
oo,
|
|
2589
2584
|
lo,
|
|
2590
2585
|
uo,
|
|
2591
|
-
io,
|
|
2592
2586
|
!1,
|
|
2593
2587
|
null,
|
|
2594
2588
|
null
|
|
2595
2589
|
);
|
|
2596
|
-
const
|
|
2590
|
+
const el = io.exports, so = {
|
|
2597
2591
|
[O.VERTICAL]: {
|
|
2598
2592
|
withTooltip: !0,
|
|
2599
2593
|
xAxisOptions: {},
|
|
@@ -2607,23 +2601,23 @@ const tl = so.exports, co = {
|
|
|
2607
2601
|
margins: re.HORIZONTAL,
|
|
2608
2602
|
tooltipOptions: { position: "right" }
|
|
2609
2603
|
}
|
|
2610
|
-
},
|
|
2604
|
+
}, co = /* @__PURE__ */ N({
|
|
2611
2605
|
__name: "lume-grouped-bar-chart",
|
|
2612
2606
|
props: {
|
|
2613
|
-
...
|
|
2607
|
+
...ie()
|
|
2614
2608
|
},
|
|
2615
2609
|
setup(t, { emit: e }) {
|
|
2616
2610
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = B(r), i = d(
|
|
2617
|
-
() =>
|
|
2611
|
+
() => so[o.value || O.VERTICAL]
|
|
2618
2612
|
// needs to be computed so that default options are reactive
|
|
2619
2613
|
), { allOptions: u } = Y(
|
|
2620
2614
|
l,
|
|
2621
2615
|
i
|
|
2622
2616
|
);
|
|
2623
|
-
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 };
|
|
2624
2618
|
}
|
|
2625
2619
|
});
|
|
2626
|
-
var
|
|
2620
|
+
var vo = function() {
|
|
2627
2621
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2628
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) {
|
|
2629
2623
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2632,15 +2626,15 @@ var fo = function() {
|
|
|
2632
2626
|
return [e._t(o, null, null, l || {})];
|
|
2633
2627
|
} };
|
|
2634
2628
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2635
|
-
},
|
|
2629
|
+
}, fo = [], po = /* @__PURE__ */ E(
|
|
2630
|
+
co,
|
|
2636
2631
|
vo,
|
|
2637
2632
|
fo,
|
|
2638
|
-
po,
|
|
2639
2633
|
!1,
|
|
2640
2634
|
null,
|
|
2641
2635
|
null
|
|
2642
2636
|
);
|
|
2643
|
-
const
|
|
2637
|
+
const tl = po.exports, mo = {
|
|
2644
2638
|
[O.VERTICAL]: {
|
|
2645
2639
|
withTooltip: !0,
|
|
2646
2640
|
xAxisOptions: {},
|
|
@@ -2655,27 +2649,27 @@ const nl = mo.exports, _o = {
|
|
|
2655
2649
|
margins: re.HORIZONTAL,
|
|
2656
2650
|
tooltipOptions: { position: "right" }
|
|
2657
2651
|
}
|
|
2658
|
-
},
|
|
2652
|
+
}, _o = /* @__PURE__ */ N({
|
|
2659
2653
|
__name: "lume-stacked-bar-chart",
|
|
2660
2654
|
props: {
|
|
2661
|
-
...
|
|
2655
|
+
...ie()
|
|
2662
2656
|
},
|
|
2663
2657
|
setup(t, { emit: e }) {
|
|
2664
2658
|
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { data: o, orientation: l, options: i, labels: u } = B(r), c = d(
|
|
2665
|
-
() =>
|
|
2659
|
+
() => mo[l.value || O.VERTICAL]
|
|
2666
2660
|
// needs to be computed so that default options are reactive
|
|
2667
2661
|
), { allOptions: v } = Y(
|
|
2668
2662
|
i,
|
|
2669
2663
|
c
|
|
2670
|
-
), { 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(
|
|
2671
2665
|
f,
|
|
2672
2666
|
l,
|
|
2673
2667
|
i
|
|
2674
2668
|
), h = d(() => r.xScale || m), y = d(() => r.yScale || _);
|
|
2675
|
-
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 };
|
|
2676
2670
|
}
|
|
2677
2671
|
});
|
|
2678
|
-
var
|
|
2672
|
+
var ho = function() {
|
|
2679
2673
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2680
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) {
|
|
2681
2675
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2684,15 +2678,15 @@ var go = function() {
|
|
|
2684
2678
|
return [e._t(o, null, null, l || {})];
|
|
2685
2679
|
} };
|
|
2686
2680
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2687
|
-
},
|
|
2681
|
+
}, go = [], yo = /* @__PURE__ */ E(
|
|
2682
|
+
_o,
|
|
2688
2683
|
ho,
|
|
2689
2684
|
go,
|
|
2690
|
-
yo,
|
|
2691
2685
|
!1,
|
|
2692
2686
|
null,
|
|
2693
2687
|
null
|
|
2694
2688
|
);
|
|
2695
|
-
const
|
|
2689
|
+
const nl = yo.exports, ht = 2, bo = /* @__PURE__ */ N({
|
|
2696
2690
|
__name: "lume-line",
|
|
2697
2691
|
props: {
|
|
2698
2692
|
pathDefinition: {
|
|
@@ -2730,7 +2724,7 @@ const rl = bo.exports, ht = 2, ko = /* @__PURE__ */ N({
|
|
|
2730
2724
|
return ee(() => $e(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ht, emit: e, root: r };
|
|
2731
2725
|
}
|
|
2732
2726
|
});
|
|
2733
|
-
var
|
|
2727
|
+
var ko = function() {
|
|
2734
2728
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2735
2729
|
return r("path", { ref: "root", staticClass: "lume-line", class: {
|
|
2736
2730
|
[`lume-stroke--${e.color}`]: !0,
|
|
@@ -2742,15 +2736,15 @@ var xo = function() {
|
|
|
2742
2736
|
}, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
|
|
2743
2737
|
return n.emit("click", a);
|
|
2744
2738
|
} } });
|
|
2745
|
-
},
|
|
2739
|
+
}, xo = [], Ao = /* @__PURE__ */ E(
|
|
2740
|
+
bo,
|
|
2746
2741
|
ko,
|
|
2747
2742
|
xo,
|
|
2748
|
-
Ao,
|
|
2749
2743
|
!1,
|
|
2750
2744
|
null,
|
|
2751
2745
|
"59449838"
|
|
2752
2746
|
);
|
|
2753
|
-
const
|
|
2747
|
+
const To = Ao.exports, gt = 4, Lo = /* @__PURE__ */ N({
|
|
2754
2748
|
__name: "lume-point",
|
|
2755
2749
|
props: {
|
|
2756
2750
|
x: { type: Number, required: !0 },
|
|
@@ -2774,20 +2768,20 @@ const Lo = To.exports, gt = 4, Oo = /* @__PURE__ */ N({
|
|
|
2774
2768
|
return ee(() => $e(n.value)), { __sfc: !0, DEFAULT_RADIUS: gt, props: r, emit: e, root: n, strokeWidth: a };
|
|
2775
2769
|
}
|
|
2776
2770
|
});
|
|
2777
|
-
var
|
|
2771
|
+
var Oo = function() {
|
|
2778
2772
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2779
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) {
|
|
2780
2774
|
return n.emit("click", a);
|
|
2781
2775
|
} } });
|
|
2782
|
-
},
|
|
2776
|
+
}, $o = [], Io = /* @__PURE__ */ E(
|
|
2777
|
+
Lo,
|
|
2783
2778
|
Oo,
|
|
2784
2779
|
$o,
|
|
2785
|
-
Io,
|
|
2786
2780
|
!1,
|
|
2787
2781
|
null,
|
|
2788
2782
|
"436fef87"
|
|
2789
2783
|
);
|
|
2790
|
-
const
|
|
2784
|
+
const wo = Io.exports;
|
|
2791
2785
|
function Pt(t) {
|
|
2792
2786
|
function e(o) {
|
|
2793
2787
|
let l = null;
|
|
@@ -2832,20 +2826,20 @@ function Pt(t) {
|
|
|
2832
2826
|
};
|
|
2833
2827
|
})) };
|
|
2834
2828
|
}
|
|
2835
|
-
function
|
|
2829
|
+
function Eo(t, e) {
|
|
2836
2830
|
const r = t.bandwidth() / 2;
|
|
2837
2831
|
return (n, a) => t(t.domain()[e + (a - 1)]) + r;
|
|
2838
2832
|
}
|
|
2839
|
-
function
|
|
2833
|
+
function No(t, e) {
|
|
2840
2834
|
return (r, n) => t(e + (n - 1));
|
|
2841
2835
|
}
|
|
2842
|
-
function
|
|
2836
|
+
function Ho(t, e, r, n) {
|
|
2843
2837
|
const a = Yt().x(
|
|
2844
|
-
U(r) ?
|
|
2838
|
+
U(r) ? Eo(r, t) : No(r, t)
|
|
2845
2839
|
).y((o) => n(o));
|
|
2846
2840
|
return e.every((o) => o == null) ? null : a(e);
|
|
2847
2841
|
}
|
|
2848
|
-
const yt = 1,
|
|
2842
|
+
const yt = 1, Do = /* @__PURE__ */ N({
|
|
2849
2843
|
__name: "lume-line-group",
|
|
2850
2844
|
props: {
|
|
2851
2845
|
...Ie(),
|
|
@@ -2908,7 +2902,7 @@ const yt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2908
2902
|
(P = p(D)[L - 1]) == null ? void 0 : P.value,
|
|
2909
2903
|
(G = p(D)[L]) == null ? void 0 : G.value
|
|
2910
2904
|
];
|
|
2911
|
-
return
|
|
2905
|
+
return Ho(
|
|
2912
2906
|
L,
|
|
2913
2907
|
R,
|
|
2914
2908
|
o.value,
|
|
@@ -2932,10 +2926,10 @@ const yt = 1, Ro = /* @__PURE__ */ N({
|
|
|
2932
2926
|
function I(L) {
|
|
2933
2927
|
return r.hoveredIndex === L;
|
|
2934
2928
|
}
|
|
2935
|
-
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 };
|
|
2936
2930
|
}
|
|
2937
2931
|
});
|
|
2938
|
-
var
|
|
2932
|
+
var Ro = function() {
|
|
2939
2933
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2940
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) {
|
|
2941
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) {
|
|
@@ -2948,31 +2942,31 @@ var So = function() {
|
|
|
2948
2942
|
} } }, "lume-point", n.getPointPosition(i, o), !1));
|
|
2949
2943
|
}), 1) : e._e()]);
|
|
2950
2944
|
})], 2);
|
|
2951
|
-
},
|
|
2945
|
+
}, So = [], Po = /* @__PURE__ */ E(
|
|
2946
|
+
Do,
|
|
2952
2947
|
Ro,
|
|
2953
2948
|
So,
|
|
2954
|
-
Po,
|
|
2955
2949
|
!1,
|
|
2956
2950
|
null,
|
|
2957
2951
|
"23492507"
|
|
2958
2952
|
);
|
|
2959
|
-
const Bt =
|
|
2953
|
+
const Bt = Po.exports, Bo = {
|
|
2960
2954
|
margins: re.VERTICAL,
|
|
2961
2955
|
startOnZero: !0,
|
|
2962
2956
|
withTooltip: !0,
|
|
2963
2957
|
xAxisOptions: {},
|
|
2964
2958
|
yAxisOptions: { gridLines: !0 }
|
|
2965
|
-
},
|
|
2959
|
+
}, Co = /* @__PURE__ */ N({
|
|
2966
2960
|
__name: "lume-line-chart",
|
|
2967
2961
|
props: {
|
|
2968
|
-
...
|
|
2962
|
+
...ie(null, !1)
|
|
2969
2963
|
},
|
|
2970
2964
|
setup(t, { emit: e }) {
|
|
2971
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { options: o } = B(r), { allOptions: l } = Y(o,
|
|
2972
|
-
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 };
|
|
2973
2967
|
}
|
|
2974
2968
|
});
|
|
2975
|
-
var
|
|
2969
|
+
var Go = function() {
|
|
2976
2970
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2977
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) {
|
|
2978
2972
|
return [r(n.LumeLineGroup, e._g(e._b({}, "lume-line-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2981,16 +2975,16 @@ var Fo = function() {
|
|
|
2981
2975
|
return [e._t(o, null, null, l || {})];
|
|
2982
2976
|
} };
|
|
2983
2977
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2984
|
-
},
|
|
2978
|
+
}, Fo = [], jo = /* @__PURE__ */ E(
|
|
2979
|
+
Co,
|
|
2985
2980
|
Go,
|
|
2986
2981
|
Fo,
|
|
2987
|
-
jo,
|
|
2988
2982
|
!1,
|
|
2989
2983
|
null,
|
|
2990
2984
|
null
|
|
2991
2985
|
);
|
|
2992
|
-
const
|
|
2993
|
-
function
|
|
2986
|
+
const rl = jo.exports;
|
|
2987
|
+
function Vo(t) {
|
|
2994
2988
|
return { areaPathDefinition: d(
|
|
2995
2989
|
() => function(r, n) {
|
|
2996
2990
|
if (!r || !n || U(r) || U(n))
|
|
@@ -3000,7 +2994,7 @@ function Mo(t) {
|
|
|
3000
2994
|
}
|
|
3001
2995
|
) };
|
|
3002
2996
|
}
|
|
3003
|
-
const
|
|
2997
|
+
const Mo = {
|
|
3004
2998
|
margins: {
|
|
3005
2999
|
top: 0,
|
|
3006
3000
|
right: 0,
|
|
@@ -3014,14 +3008,14 @@ const zo = {
|
|
|
3014
3008
|
tooltipOptions: {
|
|
3015
3009
|
showTitle: !1
|
|
3016
3010
|
}
|
|
3017
|
-
},
|
|
3011
|
+
}, zo = /* @__PURE__ */ N({
|
|
3018
3012
|
__name: "lume-sparkline-chart",
|
|
3019
3013
|
props: {
|
|
3020
3014
|
...Je(null),
|
|
3021
3015
|
...me()
|
|
3022
3016
|
},
|
|
3023
3017
|
setup(t, { expose: e, emit: r }) {
|
|
3024
|
-
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(() => {
|
|
3025
3019
|
var y, p;
|
|
3026
3020
|
return (p = (y = u.value) == null ? void 0 : y[0]) == null ? void 0 : p.color;
|
|
3027
3021
|
}), m = d(
|
|
@@ -3038,14 +3032,14 @@ const zo = {
|
|
|
3038
3032
|
}
|
|
3039
3033
|
function h(y, p, k) {
|
|
3040
3034
|
if (y.length)
|
|
3041
|
-
return
|
|
3035
|
+
return fe().range([0, k.width]).domain([0, y[0].values.length - 1]);
|
|
3042
3036
|
}
|
|
3043
3037
|
return e({
|
|
3044
3038
|
areaPathDefinition: s
|
|
3045
|
-
}), { __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 };
|
|
3046
3040
|
}
|
|
3047
3041
|
});
|
|
3048
|
-
var
|
|
3042
|
+
var Wo = function() {
|
|
3049
3043
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
3050
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) {
|
|
3051
3045
|
return [n.allOptions.showArea ? r("path", { class: [
|
|
@@ -3059,65 +3053,65 @@ var Zo = function() {
|
|
|
3059
3053
|
return [e._t(o, null, null, l || {})];
|
|
3060
3054
|
} };
|
|
3061
3055
|
})], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
|
|
3062
|
-
},
|
|
3056
|
+
}, Zo = [], Uo = /* @__PURE__ */ E(
|
|
3057
|
+
zo,
|
|
3063
3058
|
Wo,
|
|
3064
3059
|
Zo,
|
|
3065
|
-
Uo,
|
|
3066
3060
|
!1,
|
|
3067
3061
|
null,
|
|
3068
|
-
"
|
|
3062
|
+
"579f7e32"
|
|
3069
3063
|
);
|
|
3070
|
-
const
|
|
3064
|
+
const al = Uo.exports;
|
|
3071
3065
|
export {
|
|
3072
3066
|
Pt as A,
|
|
3073
|
-
|
|
3074
|
-
|
|
3067
|
+
Sr as B,
|
|
3068
|
+
Pr as C,
|
|
3075
3069
|
me as D,
|
|
3076
3070
|
Y as E,
|
|
3077
3071
|
qe as F,
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3072
|
+
ie as G,
|
|
3073
|
+
Jn as H,
|
|
3074
|
+
Qn as I,
|
|
3075
|
+
Yn as J,
|
|
3076
|
+
Kn as K,
|
|
3077
|
+
Hn as L,
|
|
3084
3078
|
it as M,
|
|
3085
3079
|
Pe as N,
|
|
3086
3080
|
st as O,
|
|
3087
3081
|
Dt as P,
|
|
3088
|
-
|
|
3089
|
-
|
|
3082
|
+
Gr as Q,
|
|
3083
|
+
Fr as R,
|
|
3090
3084
|
z as S,
|
|
3091
3085
|
Ht as T,
|
|
3092
3086
|
Xe as U,
|
|
3093
3087
|
Ye as V,
|
|
3094
3088
|
Ke as W,
|
|
3095
3089
|
ne as X,
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
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,
|
|
3110
3104
|
Ue as o,
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3105
|
+
To as p,
|
|
3106
|
+
wo as q,
|
|
3107
|
+
Da as r,
|
|
3108
|
+
ta as s,
|
|
3109
|
+
la as t,
|
|
3110
|
+
da as u,
|
|
3117
3111
|
et as v,
|
|
3118
3112
|
Bt as w,
|
|
3119
|
-
|
|
3113
|
+
Dr as x,
|
|
3120
3114
|
Je as y,
|
|
3121
3115
|
Qe as z
|
|
3122
3116
|
};
|
|
3123
|
-
//# sourceMappingURL=
|
|
3117
|
+
//# sourceMappingURL=Da4Dej42.js.map
|