@adyen/lume 0.1.5 → 0.1.6
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/README.md +4 -3
- package/dist/common/{56dc685f.js → 2c318357.js} +2 -2
- package/dist/common/2c318357.js.map +1 -0
- package/dist/common/{6580cc5e.js → 797e4fbd.js} +2 -2
- package/dist/common/797e4fbd.js.map +1 -0
- package/dist/common/{2a550b6f.js → b0835720.js} +2 -2
- package/dist/common/b0835720.js.map +1 -0
- package/dist/common/{0fea31cd.js → df7327e8.js} +968 -955
- package/dist/common/df7327e8.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/scss/components/lume-line.scss +0 -6
- package/dist/scss/components/lume-point.scss +0 -1
- package/dist/scss/main.scss +2 -2
- package/dist/styles/main.css +1 -1
- package/package.json +1 -1
- package/dist/common/0fea31cd.js.map +0 -1
- package/dist/common/2a550b6f.js.map +0 -1
- package/dist/common/56dc685f.js.map +0 -1
- package/dist/common/6580cc5e.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import N, { isRef as Et, computed as
|
|
1
|
+
import N, { isRef as Et, reactive as it, computed as f, ref as k, watch as I, defineComponent as S, toRefs as C, onBeforeMount as re, onMounted as G, onBeforeUnmount as gt, watchEffect as Pt, toRef as ae, defineAsyncComponent as vt } from "vue";
|
|
2
2
|
import { sankeyLinkHorizontal as oe, sankey as se, sankeyJustify as ie } from "d3-sankey";
|
|
3
3
|
import { ticks as le, format as ue, line as ce, scaleBand as J, scaleLinear as Q, area as de } from "d3";
|
|
4
4
|
import { createPopper as fe } from "@popperjs/core";
|
|
@@ -63,18 +63,18 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
|
|
|
63
63
|
methods: {
|
|
64
64
|
open: function(t) {
|
|
65
65
|
if (!!rt) {
|
|
66
|
-
var n = t.to, r = t.from, a = t.passengers, o = t.order,
|
|
66
|
+
var n = t.to, r = t.from, a = t.passengers, o = t.order, i = o === void 0 ? 1 / 0 : o;
|
|
67
67
|
if (!(!n || !r || !a)) {
|
|
68
68
|
var u = {
|
|
69
69
|
to: n,
|
|
70
70
|
from: r,
|
|
71
71
|
passengers: me(a),
|
|
72
|
-
order:
|
|
72
|
+
order: i
|
|
73
73
|
}, s = Object.keys(this.transports);
|
|
74
74
|
s.indexOf(n) === -1 && N.set(this.transports, n, []);
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
return
|
|
75
|
+
var c = this.$_getTransportIndex(u), h = this.transports[n].slice(0);
|
|
76
|
+
c === -1 ? h.push(u) : h[c] = u, this.transports[n] = ye(h, function(l, v) {
|
|
77
|
+
return l.order - v.order;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -87,8 +87,8 @@ var Bt = {}, be = {}, xe = {}, Ae = N.extend({
|
|
|
87
87
|
else {
|
|
88
88
|
var o = this.$_getTransportIndex(t);
|
|
89
89
|
if (o >= 0) {
|
|
90
|
-
var
|
|
91
|
-
|
|
90
|
+
var i = this.transports[r].slice(0);
|
|
91
|
+
i.splice(o, 1), this.transports[r] = i;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
},
|
|
@@ -390,11 +390,11 @@ N.extend({
|
|
|
390
390
|
var a = typeof r == "string" ? r : "DIV", o = document.createElement(a);
|
|
391
391
|
t.appendChild(o), t = o;
|
|
392
392
|
}
|
|
393
|
-
var
|
|
394
|
-
|
|
393
|
+
var i = St(this.$props, ke);
|
|
394
|
+
i.slim = this.targetSlim, i.tag = this.targetTag, i.slotProps = this.targetSlotProps, i.name = this.to, this.portalTarget = new Ht({
|
|
395
395
|
el: t,
|
|
396
396
|
parent: this.$parent || this,
|
|
397
|
-
propsData:
|
|
397
|
+
propsData: i
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
},
|
|
@@ -424,10 +424,49 @@ N.extend({
|
|
|
424
424
|
return Array.isArray(r) && (r = r[0]), r || t();
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
|
|
427
|
+
var M = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(M || {}), yt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(bt || {});
|
|
428
|
+
const A = {
|
|
429
|
+
HORIZONTAL: "horizontal",
|
|
430
|
+
VERTICAL: "vertical"
|
|
431
|
+
}, Se = {
|
|
432
|
+
SINGLE: "single",
|
|
433
|
+
GROUPED: "grouped",
|
|
434
|
+
STACKED: "stacked"
|
|
435
|
+
}, Z = {
|
|
436
|
+
VERTICAL: {
|
|
437
|
+
top: 16,
|
|
438
|
+
right: 0,
|
|
439
|
+
bottom: 28,
|
|
440
|
+
left: 24
|
|
441
|
+
},
|
|
442
|
+
HORIZONTAL: {
|
|
443
|
+
top: 16,
|
|
444
|
+
right: 0,
|
|
445
|
+
bottom: 28,
|
|
446
|
+
left: 24
|
|
447
|
+
}
|
|
448
|
+
}, jt = "No data", Le = 20, we = 0.33, Ce = 0.5, Ie = 1, xt = [
|
|
449
|
+
"auto",
|
|
450
|
+
"auto-start",
|
|
451
|
+
"auto-end",
|
|
452
|
+
"top",
|
|
453
|
+
"top-start",
|
|
454
|
+
"top-end",
|
|
455
|
+
"right",
|
|
456
|
+
"right-start",
|
|
457
|
+
"right-end",
|
|
458
|
+
"bottom",
|
|
459
|
+
"bottom-start",
|
|
460
|
+
"bottom-end",
|
|
461
|
+
"left",
|
|
462
|
+
"left-start",
|
|
463
|
+
"left-end"
|
|
464
|
+
];
|
|
465
|
+
var W = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(W || {});
|
|
466
|
+
function Ne() {
|
|
428
467
|
return process.env.NODE_ENV === "production";
|
|
429
468
|
}
|
|
430
|
-
function
|
|
469
|
+
function Ft(e) {
|
|
431
470
|
return (e == null ? void 0 : e.map(
|
|
432
471
|
(t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
|
|
433
472
|
).flat()) || [];
|
|
@@ -435,25 +474,25 @@ function jt(e) {
|
|
|
435
474
|
function lt(e) {
|
|
436
475
|
return e.length === 1;
|
|
437
476
|
}
|
|
438
|
-
function
|
|
477
|
+
function _t(e) {
|
|
439
478
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
440
479
|
}
|
|
441
|
-
function
|
|
480
|
+
function Gt(e, t) {
|
|
442
481
|
const n = structuredClone(e);
|
|
443
482
|
return Object.entries(t).forEach(([r, a]) => {
|
|
444
|
-
n[r] =
|
|
483
|
+
n[r] = _t(e[r]) && _t(a) ? Gt(e[r], a) : a;
|
|
445
484
|
}), n;
|
|
446
485
|
}
|
|
447
|
-
function
|
|
448
|
-
return e != null &&
|
|
486
|
+
function Re(e) {
|
|
487
|
+
return e != null && _t(e) && "value" in e;
|
|
449
488
|
}
|
|
450
|
-
function
|
|
489
|
+
function U(e) {
|
|
451
490
|
return (e == null ? void 0 : e.bandwidth) !== void 0;
|
|
452
491
|
}
|
|
453
|
-
function
|
|
454
|
-
return
|
|
492
|
+
function At(e) {
|
|
493
|
+
return U(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
|
|
455
494
|
}
|
|
456
|
-
const
|
|
495
|
+
const De = (e, t) => {
|
|
457
496
|
if (!e)
|
|
458
497
|
throw new Error("Data is not a valid array");
|
|
459
498
|
if (e.length === 0)
|
|
@@ -463,12 +502,12 @@ const we = (e, t) => {
|
|
|
463
502
|
throw new Error("Index exceeds length of at least one of the datasets");
|
|
464
503
|
});
|
|
465
504
|
};
|
|
466
|
-
function
|
|
505
|
+
function Vt(e, t) {
|
|
467
506
|
var n;
|
|
468
|
-
return
|
|
507
|
+
return De(e, t), ((n = e.reduce(
|
|
469
508
|
(r, a) => {
|
|
470
|
-
var o,
|
|
471
|
-
return ((
|
|
509
|
+
var o, i, u, s;
|
|
510
|
+
return ((i = (o = r.values[t]) == null ? void 0 : o.value) != null ? i : 0) > ((s = (u = a.values[t]) == null ? void 0 : u.value) != null ? s : 0) ? r : a;
|
|
472
511
|
}
|
|
473
512
|
).values[t]) == null ? void 0 : n.value) || 0;
|
|
474
513
|
}
|
|
@@ -482,20 +521,20 @@ function ot(e) {
|
|
|
482
521
|
);
|
|
483
522
|
return Array(n).fill(null);
|
|
484
523
|
}
|
|
485
|
-
function
|
|
486
|
-
return
|
|
524
|
+
function Ee(e) {
|
|
525
|
+
return U(e) ? e.domain().length : Math.max(...e.domain());
|
|
487
526
|
}
|
|
488
|
-
function
|
|
527
|
+
function Pe(e, t) {
|
|
489
528
|
return (n) => Math.round(e * (1 - n) + t * n);
|
|
490
529
|
}
|
|
491
530
|
function E(e) {
|
|
492
531
|
var t;
|
|
493
532
|
return typeof e == "string" || typeof e == "number" ? e : (t = e.id) != null ? t : e.label;
|
|
494
533
|
}
|
|
495
|
-
function
|
|
534
|
+
function zt(e, t) {
|
|
496
535
|
return t.length && t.indexOf(e) === -1;
|
|
497
536
|
}
|
|
498
|
-
function
|
|
537
|
+
function Be(e, t, n) {
|
|
499
538
|
const r = n ? e.length - t : t, a = e.slice(0, r);
|
|
500
539
|
return e.slice(r).concat(a);
|
|
501
540
|
}
|
|
@@ -509,104 +548,166 @@ function q(e) {
|
|
|
509
548
|
}
|
|
510
549
|
return e;
|
|
511
550
|
}
|
|
512
|
-
const
|
|
551
|
+
const Me = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
|
|
552
|
+
(t, n) => t += (n &= 63) < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n > 62 ? "-" : "_",
|
|
553
|
+
""
|
|
554
|
+
);
|
|
555
|
+
var ut = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
556
|
+
Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(ut || {});
|
|
557
|
+
const He = "[lume] ";
|
|
558
|
+
function Ot(e, t = !0) {
|
|
559
|
+
t && Ne() || console.warn(He + "Warning: " + e);
|
|
560
|
+
}
|
|
561
|
+
const je = W.Categorical, Fe = M.Skyblue, Ge = yt.SkyTeal;
|
|
562
|
+
function Ve(e) {
|
|
563
|
+
return e === W.Divergent ? Ge : Fe;
|
|
564
|
+
}
|
|
565
|
+
function ze(e) {
|
|
566
|
+
return Object.values(bt).includes(e);
|
|
567
|
+
}
|
|
568
|
+
function Lt(e, t) {
|
|
569
|
+
return t === W.Divergent ? Object.values(yt).includes(e) : Object.values({ ...M, ...bt }).includes(
|
|
570
|
+
e
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
function We(e, t) {
|
|
574
|
+
const n = Object.values(M).indexOf(e);
|
|
575
|
+
return Be(Object.values(M), n)[t];
|
|
576
|
+
}
|
|
577
|
+
function Ze(e, t) {
|
|
578
|
+
const n = 50 + t * 10;
|
|
579
|
+
return `${e}-${n}`;
|
|
580
|
+
}
|
|
581
|
+
function qe(e, t) {
|
|
582
|
+
const n = (t + 1) * 10;
|
|
583
|
+
return `${e}-${n}`;
|
|
584
|
+
}
|
|
585
|
+
function ht(e, t, n) {
|
|
586
|
+
switch (t) {
|
|
587
|
+
default:
|
|
588
|
+
case W.Categorical:
|
|
589
|
+
return ze(e) ? e : We(e, n);
|
|
590
|
+
case W.Sequential:
|
|
591
|
+
return Ze(e, n);
|
|
592
|
+
case W.Divergent:
|
|
593
|
+
return qe(e, n);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
function Xe(e, t, n = je, r) {
|
|
597
|
+
return Lt(e, n) ? ht(e, n, r) : (r > 4 && (Ot(ut.ColorLoop), r = r % 5), Lt(t, n) ? ht(t, n, r) : ht(Ve(n), n, r));
|
|
598
|
+
}
|
|
599
|
+
function Ue(e) {
|
|
600
|
+
return e.map((t) => Re(t) ? t : { value: t });
|
|
601
|
+
}
|
|
602
|
+
function Ye(e) {
|
|
603
|
+
return e.__internal === !0;
|
|
604
|
+
}
|
|
605
|
+
const Wt = (e = null) => ({
|
|
606
|
+
data: {
|
|
607
|
+
type: Array,
|
|
608
|
+
required: !0,
|
|
609
|
+
validator: e || void 0
|
|
610
|
+
},
|
|
611
|
+
labels: {
|
|
612
|
+
type: Array,
|
|
613
|
+
default: void 0
|
|
614
|
+
},
|
|
615
|
+
color: {
|
|
616
|
+
type: String,
|
|
617
|
+
default: M.Skyblue
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
function ct(e, t, n, r, a) {
|
|
621
|
+
const o = it({
|
|
622
|
+
width: 0,
|
|
623
|
+
height: 0
|
|
624
|
+
}), i = Me(12), u = f(() => {
|
|
625
|
+
var h;
|
|
626
|
+
return e.value.length > 5 && Ot(ut.DatasetLength), (h = e.value) == null ? void 0 : h.map(
|
|
627
|
+
(l, v) => {
|
|
628
|
+
if (Ye(l))
|
|
629
|
+
return l;
|
|
630
|
+
const p = Ue(l.values), d = Xe(
|
|
631
|
+
l.color,
|
|
632
|
+
n == null ? void 0 : n.value,
|
|
633
|
+
r == null ? void 0 : r.value.colorPalette,
|
|
634
|
+
v
|
|
635
|
+
);
|
|
636
|
+
return {
|
|
637
|
+
...l,
|
|
638
|
+
values: p,
|
|
639
|
+
color: d,
|
|
640
|
+
__internal: !0
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
);
|
|
644
|
+
}), s = f(() => Array.isArray(t.value) ? t.value : ot(e.value).map((h, l) => l));
|
|
645
|
+
function c(h) {
|
|
646
|
+
const l = (a == null ? void 0 : a.value) === A.HORIZONTAL ? ot(e).length * (Le * 2) : h.height;
|
|
647
|
+
N.set(o, "width", h.width), N.set(o, "height", l);
|
|
648
|
+
}
|
|
649
|
+
return {
|
|
650
|
+
chartID: i,
|
|
651
|
+
computedLabels: s,
|
|
652
|
+
containerSize: o,
|
|
653
|
+
internalData: u,
|
|
654
|
+
updateSize: c
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
const dt = () => ({
|
|
513
658
|
options: {
|
|
514
659
|
type: Object,
|
|
515
660
|
default: () => ({})
|
|
516
661
|
}
|
|
517
662
|
});
|
|
518
|
-
function
|
|
519
|
-
return { allOptions:
|
|
663
|
+
function F(e, t) {
|
|
664
|
+
return { allOptions: f(() => {
|
|
520
665
|
const r = Et(t) ? t == null ? void 0 : t.value : t;
|
|
521
|
-
return r ?
|
|
666
|
+
return r ? Gt(r, e.value) : e.value;
|
|
522
667
|
}) };
|
|
523
668
|
}
|
|
524
|
-
const
|
|
525
|
-
function
|
|
526
|
-
const r = k(), a =
|
|
527
|
-
function
|
|
669
|
+
const Ke = 0.15;
|
|
670
|
+
function Je(e, t, n) {
|
|
671
|
+
const r = k(), a = f(() => Math.max(...e.value.range())), o = f(() => t.value.length);
|
|
672
|
+
function i() {
|
|
528
673
|
if (!t.value)
|
|
529
674
|
return;
|
|
530
675
|
const s = t.value.reduce(
|
|
531
|
-
(
|
|
676
|
+
(h, l) => h + l.getBoundingClientRect().width,
|
|
532
677
|
0
|
|
533
|
-
),
|
|
534
|
-
r.value =
|
|
678
|
+
), c = Math.ceil(s / o.value);
|
|
679
|
+
r.value = c + c * Ke;
|
|
535
680
|
}
|
|
536
681
|
function u(s) {
|
|
537
682
|
if (!t.value)
|
|
538
683
|
return !0;
|
|
539
|
-
const
|
|
684
|
+
const c = t.value.length;
|
|
540
685
|
if (s === 0)
|
|
541
686
|
return !0;
|
|
542
|
-
const
|
|
543
|
-
return s %
|
|
544
|
-
}
|
|
545
|
-
return I(t, l), { showTick: u };
|
|
546
|
-
}
|
|
547
|
-
var H = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(H || {}), yt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(yt || {}), bt = /* @__PURE__ */ ((e) => (e["01"] = "01", e["02"] = "02", e["03"] = "03", e["04"] = "04", e["05"] = "05", e["06"] = "06", e["07"] = "07", e["08"] = "08", e["09"] = "09", e))(bt || {});
|
|
548
|
-
const A = {
|
|
549
|
-
HORIZONTAL: "horizontal",
|
|
550
|
-
VERTICAL: "vertical"
|
|
551
|
-
}, Ee = {
|
|
552
|
-
SINGLE: "single",
|
|
553
|
-
GROUPED: "grouped",
|
|
554
|
-
STACKED: "stacked"
|
|
555
|
-
}, Z = {
|
|
556
|
-
VERTICAL: {
|
|
557
|
-
top: 16,
|
|
558
|
-
right: 0,
|
|
559
|
-
bottom: 28,
|
|
560
|
-
left: 24
|
|
561
|
-
},
|
|
562
|
-
HORIZONTAL: {
|
|
563
|
-
top: 16,
|
|
564
|
-
right: 0,
|
|
565
|
-
bottom: 28,
|
|
566
|
-
left: 24
|
|
687
|
+
const h = a.value / c, l = typeof n == "number" && n > 0 && n + 1 || Math.ceil(r.value / h);
|
|
688
|
+
return s % l === 0;
|
|
567
689
|
}
|
|
568
|
-
|
|
569
|
-
"auto",
|
|
570
|
-
"auto-start",
|
|
571
|
-
"auto-end",
|
|
572
|
-
"top",
|
|
573
|
-
"top-start",
|
|
574
|
-
"top-end",
|
|
575
|
-
"right",
|
|
576
|
-
"right-start",
|
|
577
|
-
"right-end",
|
|
578
|
-
"bottom",
|
|
579
|
-
"bottom-start",
|
|
580
|
-
"bottom-end",
|
|
581
|
-
"left",
|
|
582
|
-
"left-start",
|
|
583
|
-
"left-end"
|
|
584
|
-
];
|
|
585
|
-
var ct = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
586
|
-
Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(ct || {});
|
|
587
|
-
const je = "[lume] ";
|
|
588
|
-
function At(e, t = !0) {
|
|
589
|
-
t && Se() || console.warn(je + "Warning: " + e);
|
|
690
|
+
return I(t, i), { showTick: u };
|
|
590
691
|
}
|
|
591
|
-
function
|
|
592
|
-
e != null && e.closest("svg") ||
|
|
692
|
+
function ft(e) {
|
|
693
|
+
e != null && e.closest("svg") || Ot(ut.NotContainedInSvg);
|
|
593
694
|
}
|
|
594
|
-
const
|
|
695
|
+
const Zt = {
|
|
595
696
|
gridLines: !1,
|
|
596
697
|
withTitle: !0,
|
|
597
698
|
showTicks: !0,
|
|
598
699
|
tickCount: 10,
|
|
599
700
|
tickFormat: null,
|
|
600
701
|
tickPadding: 8
|
|
601
|
-
},
|
|
602
|
-
...
|
|
702
|
+
}, Qe = {
|
|
703
|
+
...Zt,
|
|
603
704
|
withTitle: !1,
|
|
604
705
|
skip: !0
|
|
605
|
-
},
|
|
606
|
-
...
|
|
706
|
+
}, tn = {
|
|
707
|
+
...Zt,
|
|
607
708
|
gridLines: !0
|
|
608
|
-
},
|
|
609
|
-
const r =
|
|
709
|
+
}, en = 12, nn = 8, rn = function(e, t, n) {
|
|
710
|
+
const r = f(() => e.value.step() * e.value.paddingInner() / 2);
|
|
610
711
|
function a(s) {
|
|
611
712
|
return {
|
|
612
713
|
transform: `translate(${e.value(s) - r.value}, 0)`
|
|
@@ -616,10 +717,10 @@ const Wt = {
|
|
|
616
717
|
return {
|
|
617
718
|
x: -8,
|
|
618
719
|
width: e.value.step() + 16,
|
|
619
|
-
height: n.value.tickPadding +
|
|
720
|
+
height: n.value.tickPadding + en + nn
|
|
620
721
|
};
|
|
621
722
|
}
|
|
622
|
-
function
|
|
723
|
+
function i() {
|
|
623
724
|
const s = e.value.step() / 2;
|
|
624
725
|
return {
|
|
625
726
|
x1: s,
|
|
@@ -636,13 +737,13 @@ const Wt = {
|
|
|
636
737
|
};
|
|
637
738
|
}
|
|
638
739
|
return {
|
|
639
|
-
getGridLinesAttributes:
|
|
740
|
+
getGridLinesAttributes: i,
|
|
640
741
|
getTickGhostAttributes: o,
|
|
641
742
|
getTickGroupAttributes: a,
|
|
642
743
|
getTickLabelAttributes: u
|
|
643
744
|
};
|
|
644
|
-
},
|
|
645
|
-
const r =
|
|
745
|
+
}, an = function(e, t, n) {
|
|
746
|
+
const r = f(() => e.value.step() * e.value.paddingInner() / 2);
|
|
646
747
|
function a(s) {
|
|
647
748
|
return {
|
|
648
749
|
transform: `translate(0, ${e.value(s) - r.value})`
|
|
@@ -655,7 +756,7 @@ const Wt = {
|
|
|
655
756
|
height: e.value.step()
|
|
656
757
|
};
|
|
657
758
|
}
|
|
658
|
-
function
|
|
759
|
+
function i() {
|
|
659
760
|
const s = e.value.step() / 2;
|
|
660
761
|
return {
|
|
661
762
|
y1: s,
|
|
@@ -672,12 +773,12 @@ const Wt = {
|
|
|
672
773
|
};
|
|
673
774
|
}
|
|
674
775
|
return {
|
|
675
|
-
getGridLinesAttributes:
|
|
776
|
+
getGridLinesAttributes: i,
|
|
676
777
|
getTickGhostAttributes: o,
|
|
677
778
|
getTickGroupAttributes: a,
|
|
678
779
|
getTickLabelAttributes: u
|
|
679
780
|
};
|
|
680
|
-
},
|
|
781
|
+
}, on = function(e, t, n) {
|
|
681
782
|
function r(u) {
|
|
682
783
|
return {
|
|
683
784
|
transform: `translate(${e.value(u)}, 0)`
|
|
@@ -691,7 +792,7 @@ const Wt = {
|
|
|
691
792
|
y1: -t.value.height
|
|
692
793
|
};
|
|
693
794
|
}
|
|
694
|
-
function
|
|
795
|
+
function i() {
|
|
695
796
|
return {
|
|
696
797
|
y: n.value.tickPadding,
|
|
697
798
|
dy: "0.8em",
|
|
@@ -702,9 +803,9 @@ const Wt = {
|
|
|
702
803
|
getGridLinesAttributes: o,
|
|
703
804
|
getTickGhostAttributes: a,
|
|
704
805
|
getTickGroupAttributes: r,
|
|
705
|
-
getTickLabelAttributes:
|
|
806
|
+
getTickLabelAttributes: i
|
|
706
807
|
};
|
|
707
|
-
},
|
|
808
|
+
}, sn = function(e, t, n) {
|
|
708
809
|
function r(u) {
|
|
709
810
|
return {
|
|
710
811
|
transform: `translate(0, ${e.value(u)})`
|
|
@@ -718,7 +819,7 @@ const Wt = {
|
|
|
718
819
|
x1: t.value.width
|
|
719
820
|
};
|
|
720
821
|
}
|
|
721
|
-
function
|
|
822
|
+
function i() {
|
|
722
823
|
return {
|
|
723
824
|
x: -n.value.tickPadding,
|
|
724
825
|
dy: "0.4em",
|
|
@@ -729,20 +830,20 @@ const Wt = {
|
|
|
729
830
|
getGridLinesAttributes: o,
|
|
730
831
|
getTickGhostAttributes: a,
|
|
731
832
|
getTickGroupAttributes: r,
|
|
732
|
-
getTickLabelAttributes:
|
|
833
|
+
getTickLabelAttributes: i
|
|
733
834
|
};
|
|
734
|
-
},
|
|
735
|
-
"x-band-scale-axis":
|
|
736
|
-
"y-band-scale-axis":
|
|
737
|
-
"x-linear-scale-axis":
|
|
738
|
-
"y-linear-scale-axis":
|
|
739
|
-
},
|
|
835
|
+
}, ln = {
|
|
836
|
+
"x-band-scale-axis": rn,
|
|
837
|
+
"y-band-scale-axis": an,
|
|
838
|
+
"x-linear-scale-axis": on,
|
|
839
|
+
"y-linear-scale-axis": sn
|
|
840
|
+
}, un = {
|
|
740
841
|
bandScale: "band-scale-axis",
|
|
741
842
|
linearScale: "linear-scale-axis"
|
|
742
|
-
},
|
|
843
|
+
}, cn = ["bottom", "left"], wt = {
|
|
743
844
|
x: "bottom",
|
|
744
845
|
y: "left"
|
|
745
|
-
},
|
|
846
|
+
}, dn = S({
|
|
746
847
|
components: { VuePortal: Mt, VuePortalTarget: Ht },
|
|
747
848
|
props: {
|
|
748
849
|
scale: {
|
|
@@ -752,12 +853,12 @@ const Wt = {
|
|
|
752
853
|
type: {
|
|
753
854
|
type: String,
|
|
754
855
|
default: void 0,
|
|
755
|
-
validator: (e) => e in
|
|
856
|
+
validator: (e) => e in wt
|
|
756
857
|
},
|
|
757
858
|
position: {
|
|
758
859
|
type: String,
|
|
759
860
|
default: void 0,
|
|
760
|
-
validator: (e) =>
|
|
861
|
+
validator: (e) => cn.includes(e)
|
|
761
862
|
},
|
|
762
863
|
containerSize: {
|
|
763
864
|
type: Object,
|
|
@@ -771,132 +872,133 @@ const Wt = {
|
|
|
771
872
|
type: String,
|
|
772
873
|
default: A.VERTICAL
|
|
773
874
|
},
|
|
774
|
-
...
|
|
875
|
+
...dt()
|
|
775
876
|
},
|
|
776
877
|
setup(e, t) {
|
|
777
|
-
const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation:
|
|
778
|
-
() => e.type ?
|
|
779
|
-
), p =
|
|
780
|
-
() => e.type || (
|
|
781
|
-
),
|
|
782
|
-
() => p.value === "x" &&
|
|
783
|
-
), { allOptions:
|
|
878
|
+
const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: i } = C(e), u = it({}), s = k(null), c = k(!1), h = k(null), { chartID: l } = ct(), v = f(
|
|
879
|
+
() => e.type ? wt[e.type] : e.position
|
|
880
|
+
), p = f(
|
|
881
|
+
() => e.type || (v.value === "left" ? "y" : "x")
|
|
882
|
+
), d = f(
|
|
883
|
+
() => p.value === "x" && i.value === A.VERTICAL || p.value === "y" && i.value === A.HORIZONTAL
|
|
884
|
+
), { allOptions: _ } = F(
|
|
784
885
|
o,
|
|
785
|
-
p.value === "x" ?
|
|
786
|
-
), { showTick:
|
|
886
|
+
p.value === "x" ? Qe : tn
|
|
887
|
+
), { showTick: b } = Je(n, s, _.value.skip), m = f(
|
|
787
888
|
() => {
|
|
788
|
-
var
|
|
789
|
-
return `translate(0, ${p.value === "x" ? (
|
|
889
|
+
var $;
|
|
890
|
+
return `translate(0, ${p.value === "x" ? ($ = r.value) == null ? void 0 : $.height : 0})`;
|
|
790
891
|
}
|
|
791
|
-
),
|
|
892
|
+
), g = f(() => {
|
|
792
893
|
if (n.value.step)
|
|
793
894
|
return n.value.domain();
|
|
794
|
-
const { tickCount:
|
|
795
|
-
return le(
|
|
796
|
-
}),
|
|
797
|
-
const { tickFormat:
|
|
798
|
-
let
|
|
799
|
-
switch (typeof
|
|
895
|
+
const { tickCount: $ } = _.value, [w, H] = n.value.domain();
|
|
896
|
+
return le(w, H, $);
|
|
897
|
+
}), y = f(() => {
|
|
898
|
+
const { tickFormat: $ } = _.value;
|
|
899
|
+
let w = null;
|
|
900
|
+
switch (typeof $) {
|
|
800
901
|
case "string":
|
|
801
|
-
return
|
|
902
|
+
return w = ue($), w;
|
|
802
903
|
case "function":
|
|
803
|
-
return
|
|
904
|
+
return $;
|
|
804
905
|
default:
|
|
805
906
|
return null;
|
|
806
907
|
}
|
|
807
908
|
});
|
|
808
|
-
function
|
|
809
|
-
const { showTicks:
|
|
810
|
-
return
|
|
909
|
+
function x($) {
|
|
910
|
+
const { showTicks: w } = _.value;
|
|
911
|
+
return w === !1 ? "" : y.value ? y.value($) : $;
|
|
811
912
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
913
|
+
function T($) {
|
|
914
|
+
d.value && t.emit("tick-mouseover", $);
|
|
814
915
|
}
|
|
815
|
-
function $
|
|
816
|
-
return
|
|
916
|
+
function R($) {
|
|
917
|
+
return _.value.withHover && d.value && a.value === $;
|
|
817
918
|
}
|
|
818
|
-
function
|
|
819
|
-
return `${p.value}-tick--${
|
|
919
|
+
function B($) {
|
|
920
|
+
return `${l}-${p.value}-tick--${$}`;
|
|
820
921
|
}
|
|
821
922
|
function D() {
|
|
822
|
-
|
|
823
|
-
const
|
|
824
|
-
Object.entries(
|
|
825
|
-
([
|
|
826
|
-
u[
|
|
923
|
+
c.value = !0;
|
|
924
|
+
const $ = n.value.step ? "bandScale" : "linearScale", w = ln[`${p.value}-${un[$]}`];
|
|
925
|
+
Object.entries(w(n, r, _) || []).forEach(
|
|
926
|
+
([H, j]) => {
|
|
927
|
+
u[H] = j;
|
|
827
928
|
}
|
|
828
|
-
),
|
|
929
|
+
), c.value = !1;
|
|
829
930
|
}
|
|
830
931
|
return re(async () => {
|
|
831
932
|
D(), I(n, D, { flush: "sync" });
|
|
832
|
-
}),
|
|
833
|
-
allOptions:
|
|
834
|
-
axisTransform:
|
|
835
|
-
|
|
933
|
+
}), G(() => ft(h.value)), {
|
|
934
|
+
allOptions: _,
|
|
935
|
+
axisTransform: m,
|
|
936
|
+
chartID: l,
|
|
937
|
+
computedPosition: v,
|
|
836
938
|
computedType: p,
|
|
837
|
-
formatTick:
|
|
838
|
-
getTickId:
|
|
839
|
-
isHovering:
|
|
840
|
-
isLoading:
|
|
939
|
+
formatTick: x,
|
|
940
|
+
getTickId: B,
|
|
941
|
+
isHovering: R,
|
|
942
|
+
isLoading: c,
|
|
841
943
|
mixins: u,
|
|
842
|
-
onTickMouseover:
|
|
843
|
-
root:
|
|
844
|
-
shouldHover:
|
|
845
|
-
showTick:
|
|
944
|
+
onTickMouseover: T,
|
|
945
|
+
root: h,
|
|
946
|
+
shouldHover: d,
|
|
947
|
+
showTick: b,
|
|
846
948
|
tickRefs: s,
|
|
847
|
-
ticks:
|
|
949
|
+
ticks: g
|
|
848
950
|
};
|
|
849
951
|
}
|
|
850
952
|
});
|
|
851
|
-
function L(e, t, n, r, a, o,
|
|
953
|
+
function L(e, t, n, r, a, o, i, u) {
|
|
852
954
|
var s = typeof e == "function" ? e.options : e;
|
|
853
955
|
t && (s.render = t, s.staticRenderFns = n, s._compiled = !0), r && (s.functional = !0), o && (s._scopeId = "data-v-" + o);
|
|
854
|
-
var
|
|
855
|
-
if (
|
|
856
|
-
|
|
857
|
-
}, s._ssrRegister =
|
|
956
|
+
var c;
|
|
957
|
+
if (i ? (c = function(v) {
|
|
958
|
+
v = v || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !v && typeof __VUE_SSR_CONTEXT__ < "u" && (v = __VUE_SSR_CONTEXT__), a && a.call(this, v), v && v._registeredComponents && v._registeredComponents.add(i);
|
|
959
|
+
}, s._ssrRegister = c) : a && (c = u ? function() {
|
|
858
960
|
a.call(
|
|
859
961
|
this,
|
|
860
962
|
(s.functional ? this.parent : this).$root.$options.shadowRoot
|
|
861
963
|
);
|
|
862
|
-
} : a),
|
|
964
|
+
} : a), c)
|
|
863
965
|
if (s.functional) {
|
|
864
|
-
s._injectStyles =
|
|
865
|
-
var
|
|
866
|
-
s.render = function(
|
|
867
|
-
return
|
|
966
|
+
s._injectStyles = c;
|
|
967
|
+
var h = s.render;
|
|
968
|
+
s.render = function(p, d) {
|
|
969
|
+
return c.call(d), h(p, d);
|
|
868
970
|
};
|
|
869
971
|
} else {
|
|
870
|
-
var
|
|
871
|
-
s.beforeCreate =
|
|
972
|
+
var l = s.beforeCreate;
|
|
973
|
+
s.beforeCreate = l ? [].concat(l, c) : [c];
|
|
872
974
|
}
|
|
873
975
|
return {
|
|
874
976
|
exports: e,
|
|
875
977
|
options: s
|
|
876
978
|
};
|
|
877
979
|
}
|
|
878
|
-
var
|
|
980
|
+
var fn = function() {
|
|
879
981
|
var t = this, n = t._self._c;
|
|
880
|
-
return t._self._setupProxy, t.scale && !t.isLoading ? n("g", { ref: "root", staticClass: "axis", attrs: { transform: t.axisTransform, "data-j-axis": "" } }, [n("defs", [n("linearGradient", { attrs: { id:
|
|
881
|
-
return n("vue-portal", { key: r, attrs: { slim: "", disabled: !t.isHovering(a), to: `${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
|
|
982
|
+
return t._self._setupProxy, t.scale && !t.isLoading ? n("g", { ref: "root", staticClass: "axis", attrs: { transform: t.axisTransform, "data-j-axis": "" } }, [t.computedType === "x" ? n("defs", [n("linearGradient", { attrs: { id: "lume-tick-gradient" } }, [n("stop", { attrs: { offset: "0%", "stop-color": "rgba(255,255,255,0)" } }), n("stop", { attrs: { offset: "10%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "90%", "stop-color": "var(--lume-chart-background-color)" } }), n("stop", { attrs: { offset: "100%", "stop-color": "rgba(255,255,255,0)" } })], 1)], 1) : t._e(), t._l(t.ticks, function(r, a) {
|
|
983
|
+
return n("vue-portal", { key: r, attrs: { slim: "", disabled: !t.isHovering(a), to: `${t.chartID}-${t.computedType}-hovered-portal` } }, [n("g", t._b({ staticClass: "axis__tick", class: {
|
|
882
984
|
"axis__tick--hovered": t.isHovering(a),
|
|
883
985
|
"axis__tick--hidden": t.allOptions.skip && !t.showTick(a)
|
|
884
986
|
}, attrs: { id: t.getTickId(a), "data-j-axis__tick": "" } }, "g", t.mixins.getTickGroupAttributes(r), !1), [n("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" }, on: { mouseover: function(o) {
|
|
885
987
|
return t.onTickMouseover(a);
|
|
886
|
-
} } }, [n("rect", t._b({ staticClass: "axis__ghost", attrs: { fill:
|
|
887
|
-
}), n("vue-portal-target", { attrs: { name: `${t.computedType}-hovered-portal`, slim: "" } })], 2) : t._e();
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
988
|
+
} } }, [n("rect", t._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", t.mixins.getTickGhostAttributes(), !1)), n("text", t._b({ ref: "tickRefs", refInFor: !0, staticClass: "axis__label" }, "text", t.mixins.getTickLabelAttributes(), !1), [t._v(" " + t._s(t.formatTick(r)) + " ")])]), t.allOptions.gridLines ? n("line", t._b({ staticClass: "axis__grid-line" }, "line", t.mixins.getGridLinesAttributes(), !1)) : t._e()])]);
|
|
989
|
+
}), n("vue-portal-target", { attrs: { name: `${t.chartID}-${t.computedType}-hovered-portal`, slim: "" } })], 2) : t._e();
|
|
990
|
+
}, pn = [], vn = /* @__PURE__ */ L(
|
|
991
|
+
dn,
|
|
992
|
+
fn,
|
|
993
|
+
pn,
|
|
892
994
|
!1,
|
|
893
995
|
null,
|
|
894
|
-
"
|
|
996
|
+
"8632ddd8",
|
|
895
997
|
null,
|
|
896
998
|
null
|
|
897
999
|
);
|
|
898
|
-
const
|
|
899
|
-
function
|
|
1000
|
+
const hn = vn.exports;
|
|
1001
|
+
function _n() {
|
|
900
1002
|
const e = k(), t = it({
|
|
901
1003
|
dimensions: {}
|
|
902
1004
|
}), n = new ResizeObserver((r) => {
|
|
@@ -904,18 +1006,18 @@ function rn() {
|
|
|
904
1006
|
t.dimensions = a.contentRect;
|
|
905
1007
|
});
|
|
906
1008
|
});
|
|
907
|
-
return
|
|
1009
|
+
return G(() => {
|
|
908
1010
|
n.observe(e.value);
|
|
909
|
-
}),
|
|
1011
|
+
}), gt(() => {
|
|
910
1012
|
n.unobserve(e.value);
|
|
911
1013
|
}), { resizeState: t, resizeRef: e };
|
|
912
1014
|
}
|
|
913
|
-
const
|
|
1015
|
+
const mn = {
|
|
914
1016
|
left: 0,
|
|
915
1017
|
right: 0,
|
|
916
1018
|
top: 0,
|
|
917
1019
|
bottom: 0
|
|
918
|
-
},
|
|
1020
|
+
}, gn = S({
|
|
919
1021
|
props: {
|
|
920
1022
|
margins: {
|
|
921
1023
|
type: Object,
|
|
@@ -935,29 +1037,29 @@ const an = {
|
|
|
935
1037
|
}
|
|
936
1038
|
},
|
|
937
1039
|
setup(e, t) {
|
|
938
|
-
const { margins: n, containerSize: r } =
|
|
939
|
-
...
|
|
1040
|
+
const { margins: n, containerSize: r } = C(e), a = k(null), { resizeRef: o, resizeState: i } = _n(), u = f(() => ({
|
|
1041
|
+
...mn,
|
|
940
1042
|
...n.value
|
|
941
|
-
})), s =
|
|
1043
|
+
})), s = f(
|
|
942
1044
|
() => r.value.height + u.value.top + u.value.bottom
|
|
943
1045
|
);
|
|
944
1046
|
return Pt(() => {
|
|
945
1047
|
if (!a.value)
|
|
946
1048
|
return;
|
|
947
|
-
const { width:
|
|
948
|
-
if (!
|
|
1049
|
+
const { width: c } = i.dimensions, { height: h } = a.value.getBoundingClientRect();
|
|
1050
|
+
if (!c || !h)
|
|
949
1051
|
return;
|
|
950
|
-
const
|
|
951
|
-
width:
|
|
952
|
-
height:
|
|
953
|
-
outerWidth:
|
|
954
|
-
outerHeight:
|
|
1052
|
+
const l = c - u.value.left - u.value.right, v = h - u.value.top - u.value.bottom, p = {
|
|
1053
|
+
width: l > 0 ? l : 0,
|
|
1054
|
+
height: v > 0 ? v : 0,
|
|
1055
|
+
outerWidth: c,
|
|
1056
|
+
outerHeight: h
|
|
955
1057
|
};
|
|
956
|
-
t.emit("resize",
|
|
1058
|
+
t.emit("resize", p);
|
|
957
1059
|
}), { computedMargins: u, resizeRef: o, root: a, svgHeight: s };
|
|
958
1060
|
}
|
|
959
1061
|
});
|
|
960
|
-
var
|
|
1062
|
+
var yn = function() {
|
|
961
1063
|
var t = this, n = t._self._c;
|
|
962
1064
|
return t._self._setupProxy, n("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
|
|
963
1065
|
"lume-chart-container--minimum": !t.noMinSize
|
|
@@ -966,17 +1068,17 @@ var sn = function() {
|
|
|
966
1068
|
}, attrs: { height: t.svgHeight, "data-j-chart-container__root": "" }, on: { mouseleave: function(r) {
|
|
967
1069
|
return t.$emit("mouseleave", r);
|
|
968
1070
|
} } }, [n("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${t.computedMargins.left}, ${t.computedMargins.top})`, "data-j-chart-container__group": "" } }, [t._t("default")], 2)]), t._t("footer"), t._t("extra")], 2);
|
|
969
|
-
},
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1071
|
+
}, bn = [], xn = /* @__PURE__ */ L(
|
|
1072
|
+
gn,
|
|
1073
|
+
yn,
|
|
1074
|
+
bn,
|
|
973
1075
|
!1,
|
|
974
1076
|
null,
|
|
975
1077
|
"7aa5be81",
|
|
976
1078
|
null,
|
|
977
1079
|
null
|
|
978
1080
|
);
|
|
979
|
-
const
|
|
1081
|
+
const An = xn.exports, On = S({
|
|
980
1082
|
props: {
|
|
981
1083
|
data: {
|
|
982
1084
|
type: Array,
|
|
@@ -985,24 +1087,24 @@ const cn = un.exports, dn = S({
|
|
|
985
1087
|
}
|
|
986
1088
|
}
|
|
987
1089
|
});
|
|
988
|
-
var
|
|
1090
|
+
var Tn = function() {
|
|
989
1091
|
var t = this, n = t._self._c;
|
|
990
1092
|
return t._self._setupProxy, n("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" } }, t._l(t.data, function(r, a) {
|
|
991
1093
|
return n("div", { key: `legend-item-${a}`, staticClass: "lume-chart-legend__item lume-typography--body", attrs: { tabindex: "0", "data-j-chart-legend__symbol-wrapper": "" }, on: { click: function(o) {
|
|
992
1094
|
return t.$emit("click", a);
|
|
993
1095
|
} } }, [n("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${r.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), t._v(" " + t._s(r.label) + " ")]);
|
|
994
1096
|
}), 0);
|
|
995
|
-
},
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1097
|
+
}, $n = [], kn = /* @__PURE__ */ L(
|
|
1098
|
+
On,
|
|
1099
|
+
Tn,
|
|
1100
|
+
$n,
|
|
999
1101
|
!1,
|
|
1000
1102
|
null,
|
|
1001
1103
|
"22aa3668",
|
|
1002
1104
|
null,
|
|
1003
1105
|
null
|
|
1004
1106
|
);
|
|
1005
|
-
const
|
|
1107
|
+
const Sn = kn.exports, Ln = S({
|
|
1006
1108
|
props: {
|
|
1007
1109
|
targetElement: {
|
|
1008
1110
|
type: Element,
|
|
@@ -1029,17 +1131,17 @@ const hn = vn.exports, _n = S({
|
|
|
1029
1131
|
type: [String, Number],
|
|
1030
1132
|
default: null
|
|
1031
1133
|
},
|
|
1032
|
-
...
|
|
1134
|
+
...dt()
|
|
1033
1135
|
},
|
|
1034
1136
|
setup(e) {
|
|
1035
|
-
const t = k(null), { options: n } =
|
|
1137
|
+
const t = k(null), { options: n } = C(e), r = k(null), { allOptions: a } = F(n), o = f(
|
|
1036
1138
|
() => {
|
|
1037
|
-
var
|
|
1038
|
-
return (
|
|
1139
|
+
var v;
|
|
1140
|
+
return (v = a.value.fixedPositioning) != null ? v : e.fixedPositioning;
|
|
1039
1141
|
}
|
|
1040
|
-
),
|
|
1142
|
+
), i = f(
|
|
1041
1143
|
() => o.value ? "fixed" : "absolute"
|
|
1042
|
-
), u =
|
|
1144
|
+
), u = f(() => [
|
|
1043
1145
|
{
|
|
1044
1146
|
name: "computeStyles",
|
|
1045
1147
|
options: {
|
|
@@ -1051,62 +1153,62 @@ const hn = vn.exports, _n = S({
|
|
|
1051
1153
|
options: { offset: [0, a.value.offset || 8] }
|
|
1052
1154
|
},
|
|
1053
1155
|
...e.modifiers || []
|
|
1054
|
-
]), s =
|
|
1156
|
+
]), s = f(
|
|
1055
1157
|
() => a.value.showTitle !== !1 && e.title != null
|
|
1056
1158
|
);
|
|
1057
|
-
function
|
|
1159
|
+
function c() {
|
|
1058
1160
|
e.targetElement && t.value && (r.value = fe(e.targetElement, t.value, {
|
|
1059
1161
|
placement: e.position,
|
|
1060
|
-
strategy:
|
|
1162
|
+
strategy: i.value,
|
|
1061
1163
|
modifiers: u.value
|
|
1062
1164
|
}));
|
|
1063
1165
|
}
|
|
1064
|
-
function
|
|
1166
|
+
function h() {
|
|
1065
1167
|
r.value && r.value.destroy();
|
|
1066
1168
|
}
|
|
1067
|
-
function
|
|
1169
|
+
function l() {
|
|
1068
1170
|
!r.value || (t.value.classList.add("lume-tooltip--animated"), e.targetElement ? function() {
|
|
1069
1171
|
r.value.state.elements.reference = e.targetElement, r.value.update();
|
|
1070
|
-
}() :
|
|
1172
|
+
}() : h());
|
|
1071
1173
|
}
|
|
1072
|
-
return I(() => e.targetElement,
|
|
1174
|
+
return I(() => e.targetElement, l), G(c), gt(h), { allModifiers: u, allOptions: a, popper: r, root: t, showTitle: s, strategy: i };
|
|
1073
1175
|
}
|
|
1074
1176
|
});
|
|
1075
|
-
var
|
|
1177
|
+
var wn = function() {
|
|
1076
1178
|
var t = this, n = t._self._c;
|
|
1077
1179
|
return t._self._setupProxy, n("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", attrs: { "data-j-tooltip": "" } }, [t._t("default", function() {
|
|
1078
1180
|
return [t.showTitle ? n("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("ul", { staticClass: "lume-tooltip__items" }, t._l(t.items, function(r) {
|
|
1079
1181
|
return n("li", { key: r.label, staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [n("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${r.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }), n("span", { attrs: { "data-j-tooltip__item__label": "" } }, [t._v(" " + t._s(r.label) + " ")]), n("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [t._v(" " + t._s(r.value) + " ")])]);
|
|
1080
1182
|
}), 0)];
|
|
1081
1183
|
})], 2);
|
|
1082
|
-
},
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1184
|
+
}, Cn = [], In = /* @__PURE__ */ L(
|
|
1185
|
+
Ln,
|
|
1186
|
+
wn,
|
|
1187
|
+
Cn,
|
|
1086
1188
|
!1,
|
|
1087
1189
|
null,
|
|
1088
1190
|
"8b7fb1cb",
|
|
1089
1191
|
null,
|
|
1090
1192
|
null
|
|
1091
1193
|
);
|
|
1092
|
-
const
|
|
1093
|
-
function
|
|
1094
|
-
const a =
|
|
1194
|
+
const Nn = In.exports;
|
|
1195
|
+
function Rn(e, t, n, r) {
|
|
1196
|
+
const a = f(() => n.value > 0 && n.value < 1), o = f(
|
|
1095
1197
|
() => r.value > 0 && r.value < 1
|
|
1096
|
-
),
|
|
1198
|
+
), i = f(
|
|
1097
1199
|
() => a.value ? e.value - 0.5 : e.value
|
|
1098
|
-
), u =
|
|
1200
|
+
), u = f(
|
|
1099
1201
|
() => o.value ? t.value - 0.5 : t.value
|
|
1100
1202
|
);
|
|
1101
|
-
return { computedX:
|
|
1203
|
+
return { computedX: i, computedY: u, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
|
|
1102
1204
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const a = k(0), o = k(0),
|
|
1105
|
-
return
|
|
1205
|
+
function Dn(e, t, n, r) {
|
|
1206
|
+
const a = k(0), o = k(0), i = f(() => `${e.value + n.value / 2}px ${t.value + r.value / 2}px`);
|
|
1207
|
+
return G(() => {
|
|
1106
1208
|
a.value = n.value, o.value = r.value;
|
|
1107
|
-
}), I(n, (u) => a.value = u), I(r, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin:
|
|
1209
|
+
}), I(n, (u) => a.value = u), I(r, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin: i };
|
|
1108
1210
|
}
|
|
1109
|
-
const
|
|
1211
|
+
const En = S({
|
|
1110
1212
|
props: {
|
|
1111
1213
|
x: {
|
|
1112
1214
|
type: Number,
|
|
@@ -1142,25 +1244,25 @@ const On = S({
|
|
|
1142
1244
|
}
|
|
1143
1245
|
},
|
|
1144
1246
|
setup(e) {
|
|
1145
|
-
const { x: t, y: n, width: r, height: a, transition: o, classList:
|
|
1146
|
-
() => typeof
|
|
1147
|
-
),
|
|
1247
|
+
const { x: t, y: n, width: r, height: a, transition: o, classList: i } = C(e), u = k(null), s = f(
|
|
1248
|
+
() => typeof i.value == "string" ? [i.value] : i.value
|
|
1249
|
+
), c = f(() => o.value === "width"), h = f(
|
|
1148
1250
|
() => o.value === "height"
|
|
1149
|
-
),
|
|
1150
|
-
return
|
|
1251
|
+
), l = Dn(t, n, r, a), { computedX: v, computedY: p, shouldHaveMinWidth: d, shouldHaveMinHeight: _ } = Rn(t, n, r, a), b = f(() => d.value ? 1 : (c.value ? l.computedWidth : r).value), m = f(() => _.value ? 1 : (h.value ? l.computedHeight : a).value), g = c.value || h.value ? l.transformOrigin : null;
|
|
1252
|
+
return G(() => ft(u.value)), {
|
|
1151
1253
|
computedClasses: s,
|
|
1152
1254
|
computedWidth: b,
|
|
1153
1255
|
computedHeight: m,
|
|
1154
|
-
computedX:
|
|
1155
|
-
computedY:
|
|
1256
|
+
computedX: v,
|
|
1257
|
+
computedY: p,
|
|
1156
1258
|
root: u,
|
|
1157
|
-
shouldTransitionWidth:
|
|
1158
|
-
shouldTransitionHeight:
|
|
1259
|
+
shouldTransitionWidth: c,
|
|
1260
|
+
shouldTransitionHeight: h,
|
|
1159
1261
|
transformOrigin: g
|
|
1160
1262
|
};
|
|
1161
1263
|
}
|
|
1162
1264
|
});
|
|
1163
|
-
var
|
|
1265
|
+
var Pn = function() {
|
|
1164
1266
|
var t = this, n = t._self._c;
|
|
1165
1267
|
return t._self._setupProxy, n("rect", { ref: "root", staticClass: "lume-bar", class: [
|
|
1166
1268
|
{
|
|
@@ -1171,26 +1273,30 @@ var Tn = function() {
|
|
|
1171
1273
|
},
|
|
1172
1274
|
...t.computedClasses
|
|
1173
1275
|
], style: { transformOrigin: t.transformOrigin }, attrs: { x: t.computedX, y: t.computedY, width: t.computedWidth, height: t.computedHeight, "data-j-bar": "" } });
|
|
1174
|
-
},
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1276
|
+
}, Bn = [], Mn = /* @__PURE__ */ L(
|
|
1277
|
+
En,
|
|
1278
|
+
Pn,
|
|
1279
|
+
Bn,
|
|
1178
1280
|
!1,
|
|
1179
1281
|
null,
|
|
1180
1282
|
"43471964",
|
|
1181
1283
|
null,
|
|
1182
1284
|
null
|
|
1183
1285
|
);
|
|
1184
|
-
const
|
|
1286
|
+
const Tt = Mn.exports, Hn = 1, jn = 2, Fn = S({
|
|
1185
1287
|
props: {
|
|
1186
1288
|
color: {
|
|
1187
1289
|
type: String,
|
|
1188
|
-
default:
|
|
1290
|
+
default: M.Skyblue
|
|
1189
1291
|
},
|
|
1190
1292
|
index: {
|
|
1191
1293
|
type: Number,
|
|
1192
1294
|
required: !0
|
|
1193
1295
|
},
|
|
1296
|
+
width: {
|
|
1297
|
+
type: Number,
|
|
1298
|
+
default: jn
|
|
1299
|
+
},
|
|
1194
1300
|
values: {
|
|
1195
1301
|
type: Array,
|
|
1196
1302
|
required: !0
|
|
@@ -1213,24 +1319,29 @@ const Ot = kn.exports, Sn = 1, Ln = S({
|
|
|
1213
1319
|
}
|
|
1214
1320
|
},
|
|
1215
1321
|
setup(e) {
|
|
1216
|
-
const t = k(null), n =
|
|
1217
|
-
() =>
|
|
1218
|
-
), r =
|
|
1219
|
-
function o(s,
|
|
1322
|
+
const t = k(null), n = f(
|
|
1323
|
+
() => Hn / (Ee(e.xScale) - 1)
|
|
1324
|
+
), r = f(() => e.index < 2 ? 0 : e.transition && (e.index - 1) * n.value), a = f(() => At(e.xScale) / 2);
|
|
1325
|
+
function o(s, c) {
|
|
1220
1326
|
return e.xScale(
|
|
1221
|
-
e.index + (
|
|
1327
|
+
e.index + (c - 1)
|
|
1222
1328
|
);
|
|
1223
1329
|
}
|
|
1224
|
-
function
|
|
1330
|
+
function i(s, c) {
|
|
1225
1331
|
return e.xScale(
|
|
1226
|
-
e.xScale.domain()[e.index + (
|
|
1332
|
+
e.xScale.domain()[e.index + (c - 1)]
|
|
1227
1333
|
) + a.value;
|
|
1228
1334
|
}
|
|
1229
|
-
const u =
|
|
1230
|
-
return
|
|
1335
|
+
const u = f(() => ce().x(U(e.xScale) ? i : o).y((c) => e.yScale(c))(e.values));
|
|
1336
|
+
return G(() => ft(t.value)), {
|
|
1337
|
+
animationDelay: r,
|
|
1338
|
+
animationDuration: n,
|
|
1339
|
+
pathDefinition: u,
|
|
1340
|
+
root: t
|
|
1341
|
+
};
|
|
1231
1342
|
}
|
|
1232
1343
|
});
|
|
1233
|
-
var
|
|
1344
|
+
var Gn = function() {
|
|
1234
1345
|
var t = this, n = t._self._c;
|
|
1235
1346
|
return t._self._setupProxy, n("path", { ref: "root", staticClass: "lume-line", class: {
|
|
1236
1347
|
[`lume-stroke--${t.color}`]: !0,
|
|
@@ -1239,26 +1350,26 @@ var wn = function() {
|
|
|
1239
1350
|
}, style: {
|
|
1240
1351
|
animationDelay: t.transition && t.animationDelay + "s",
|
|
1241
1352
|
animationDuration: t.transition && t.animationDuration + "s"
|
|
1242
|
-
}, attrs: { d: t.pathDefinition, "data-j-line": "" } });
|
|
1243
|
-
},
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1353
|
+
}, attrs: { d: t.pathDefinition, "stroke-width": t.width, "data-j-line": "" } });
|
|
1354
|
+
}, Vn = [], zn = /* @__PURE__ */ L(
|
|
1355
|
+
Fn,
|
|
1356
|
+
Gn,
|
|
1357
|
+
Vn,
|
|
1247
1358
|
!1,
|
|
1248
1359
|
null,
|
|
1249
|
-
"
|
|
1360
|
+
"20ff656f",
|
|
1250
1361
|
null,
|
|
1251
1362
|
null
|
|
1252
1363
|
);
|
|
1253
|
-
const
|
|
1364
|
+
const Wn = zn.exports, Zn = 4, qn = S({
|
|
1254
1365
|
props: {
|
|
1255
1366
|
color: {
|
|
1256
1367
|
type: String,
|
|
1257
|
-
default:
|
|
1368
|
+
default: M.Skyblue
|
|
1258
1369
|
},
|
|
1259
1370
|
radius: {
|
|
1260
1371
|
type: Number,
|
|
1261
|
-
default:
|
|
1372
|
+
default: Zn
|
|
1262
1373
|
},
|
|
1263
1374
|
value: {
|
|
1264
1375
|
type: Number,
|
|
@@ -1282,26 +1393,26 @@ const Nn = In.exports, Rn = S({
|
|
|
1282
1393
|
}
|
|
1283
1394
|
},
|
|
1284
1395
|
setup(e) {
|
|
1285
|
-
const t = k(null), n =
|
|
1286
|
-
() =>
|
|
1287
|
-
), o =
|
|
1288
|
-
return
|
|
1396
|
+
const t = k(null), n = f(() => At(e.xScale) / 2), r = f(() => e.xScale.domain()), a = f(
|
|
1397
|
+
() => U(e.xScale) ? e.xScale(r.value[e.index]) + n.value : e.xScale(e.index)
|
|
1398
|
+
), o = f(() => e.yScale(e.value)), i = f(() => e.radius / 2);
|
|
1399
|
+
return G(() => ft(t.value)), { cx: a, cy: o, root: t, strokeWidth: i };
|
|
1289
1400
|
}
|
|
1290
1401
|
});
|
|
1291
|
-
var
|
|
1402
|
+
var Xn = function() {
|
|
1292
1403
|
var t = this, n = t._self._c;
|
|
1293
|
-
return t._self._setupProxy, n("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${t.color}`, attrs: { r: t.active ? t.radius : 0,
|
|
1294
|
-
},
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1404
|
+
return t._self._setupProxy, n("circle", { ref: "root", staticClass: "lume-point", class: `lume-stroke--${t.color}`, attrs: { cx: t.cx, cy: t.cy, r: t.active ? t.radius : 0, "stroke-width": t.strokeWidth, "data-j-point": "" } });
|
|
1405
|
+
}, Un = [], Yn = /* @__PURE__ */ L(
|
|
1406
|
+
qn,
|
|
1407
|
+
Xn,
|
|
1408
|
+
Un,
|
|
1298
1409
|
!1,
|
|
1299
1410
|
null,
|
|
1300
|
-
"
|
|
1411
|
+
"d65961d4",
|
|
1301
1412
|
null,
|
|
1302
1413
|
null
|
|
1303
1414
|
);
|
|
1304
|
-
const
|
|
1415
|
+
const Kn = Yn.exports, $t = () => ({
|
|
1305
1416
|
data: {
|
|
1306
1417
|
type: Array,
|
|
1307
1418
|
required: !0
|
|
@@ -1326,150 +1437,53 @@ const Bn = Pn.exports, Tt = () => ({
|
|
|
1326
1437
|
type: Object,
|
|
1327
1438
|
default: () => ({})
|
|
1328
1439
|
}
|
|
1329
|
-
}),
|
|
1330
|
-
components: { LumeBar:
|
|
1440
|
+
}), Jn = S({
|
|
1441
|
+
components: { LumeBar: Tt },
|
|
1331
1442
|
props: {
|
|
1332
|
-
|
|
1443
|
+
...$t(),
|
|
1333
1444
|
orientation: {
|
|
1334
1445
|
type: String,
|
|
1335
1446
|
default: A.VERTICAL
|
|
1336
1447
|
}
|
|
1337
1448
|
},
|
|
1338
1449
|
setup(e, t) {
|
|
1339
|
-
const { data: n, orientation: r, xScale: a, yScale: o } =
|
|
1340
|
-
function u(
|
|
1341
|
-
const
|
|
1450
|
+
const { data: n, orientation: r, xScale: a, yScale: o } = C(e), i = f(() => ot(n));
|
|
1451
|
+
function u(c) {
|
|
1452
|
+
const h = r.value === A.HORIZONTAL ? o.value : a.value, l = h.domain(), v = At(h), p = U(h) ? h(l[c]) : h(c) - v / 2;
|
|
1342
1453
|
return r.value === A.HORIZONTAL ? {
|
|
1343
1454
|
width: Math.max(...a.value.range()),
|
|
1344
|
-
height:
|
|
1345
|
-
transform: `translate(0, ${
|
|
1455
|
+
height: v,
|
|
1456
|
+
transform: `translate(0, ${p})`
|
|
1346
1457
|
} : {
|
|
1347
|
-
width:
|
|
1458
|
+
width: v,
|
|
1348
1459
|
height: Math.max(...o.value.range()),
|
|
1349
|
-
transform: `translate(${
|
|
1460
|
+
transform: `translate(${p}, 0)`
|
|
1350
1461
|
};
|
|
1351
1462
|
}
|
|
1352
|
-
function s(
|
|
1353
|
-
t.emit("mouseover",
|
|
1463
|
+
function s(c) {
|
|
1464
|
+
t.emit("mouseover", c);
|
|
1354
1465
|
}
|
|
1355
|
-
return { getOverlayBarAttributes: u, handleMouseover: s, overlayData:
|
|
1466
|
+
return { getOverlayBarAttributes: u, handleMouseover: s, overlayData: i };
|
|
1356
1467
|
}
|
|
1357
1468
|
});
|
|
1358
|
-
var
|
|
1469
|
+
var Qn = function() {
|
|
1359
1470
|
var t = this, n = t._self._c;
|
|
1360
1471
|
return t._self._setupProxy, n("g", { staticClass: "lume-overlay-group" }, t._l(t.overlayData, function(r, a) {
|
|
1361
1472
|
return n("lume-bar", t._b({ key: `overlay-${a}`, attrs: { "data-j-lume-overlay-group": a, transition: !1, "class-list": "lume-fill--transparent" }, nativeOn: { mouseover: function(o) {
|
|
1362
1473
|
return t.handleMouseover(a);
|
|
1363
1474
|
} } }, "lume-bar", t.getOverlayBarAttributes(a), !1));
|
|
1364
1475
|
}), 1);
|
|
1365
|
-
},
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1476
|
+
}, tr = [], er = /* @__PURE__ */ L(
|
|
1477
|
+
Jn,
|
|
1478
|
+
Qn,
|
|
1479
|
+
tr,
|
|
1369
1480
|
!1,
|
|
1370
1481
|
null,
|
|
1371
1482
|
null,
|
|
1372
1483
|
null,
|
|
1373
1484
|
null
|
|
1374
1485
|
);
|
|
1375
|
-
const
|
|
1376
|
-
var W = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(W || {});
|
|
1377
|
-
const Vn = W.Categorical, zn = H.Skyblue, Wn = yt.SkyTeal;
|
|
1378
|
-
function Zn(e) {
|
|
1379
|
-
return e === W.Divergent ? Wn : zn;
|
|
1380
|
-
}
|
|
1381
|
-
function qn(e) {
|
|
1382
|
-
return Object.values(bt).includes(e);
|
|
1383
|
-
}
|
|
1384
|
-
function wt(e, t) {
|
|
1385
|
-
return t === W.Divergent ? Object.values(yt).includes(e) : Object.values({ ...H, ...bt }).includes(
|
|
1386
|
-
e
|
|
1387
|
-
);
|
|
1388
|
-
}
|
|
1389
|
-
function Xn(e, t) {
|
|
1390
|
-
const n = Object.values(H).indexOf(e);
|
|
1391
|
-
return Ne(Object.values(H), n)[t];
|
|
1392
|
-
}
|
|
1393
|
-
function Yn(e, t) {
|
|
1394
|
-
const n = 50 + t * 10;
|
|
1395
|
-
return `${e}-${n}`;
|
|
1396
|
-
}
|
|
1397
|
-
function Un(e, t) {
|
|
1398
|
-
const n = (t + 1) * 10;
|
|
1399
|
-
return `${e}-${n}`;
|
|
1400
|
-
}
|
|
1401
|
-
function vt(e, t, n) {
|
|
1402
|
-
switch (t) {
|
|
1403
|
-
default:
|
|
1404
|
-
case W.Categorical:
|
|
1405
|
-
return qn(e) ? e : Xn(e, n);
|
|
1406
|
-
case W.Sequential:
|
|
1407
|
-
return Yn(e, n);
|
|
1408
|
-
case W.Divergent:
|
|
1409
|
-
return Un(e, n);
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
function Kn(e, t, n = Vn, r) {
|
|
1413
|
-
return wt(e, n) ? vt(e, n, r) : (r > 4 && (At(ct.ColorLoop), r = r % 5), wt(t, n) ? vt(t, n, r) : vt(Zn(n), n, r));
|
|
1414
|
-
}
|
|
1415
|
-
function Jn(e) {
|
|
1416
|
-
return e.map((t) => Le(t) ? t : { value: t });
|
|
1417
|
-
}
|
|
1418
|
-
function Qn(e) {
|
|
1419
|
-
return e.__internal === !0;
|
|
1420
|
-
}
|
|
1421
|
-
const Zt = (e = null) => ({
|
|
1422
|
-
data: {
|
|
1423
|
-
type: Array,
|
|
1424
|
-
required: !0,
|
|
1425
|
-
validator: e || void 0
|
|
1426
|
-
},
|
|
1427
|
-
labels: {
|
|
1428
|
-
type: Array,
|
|
1429
|
-
default: void 0
|
|
1430
|
-
},
|
|
1431
|
-
color: {
|
|
1432
|
-
type: String,
|
|
1433
|
-
default: H.Skyblue
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
function $t(e, t, n, r, a) {
|
|
1437
|
-
const o = it({
|
|
1438
|
-
width: 0,
|
|
1439
|
-
height: 0
|
|
1440
|
-
}), l = v(() => {
|
|
1441
|
-
var i;
|
|
1442
|
-
return e.value.length > 5 && At(ct.DatasetLength), (i = e.value) == null ? void 0 : i.map(
|
|
1443
|
-
(f, c) => {
|
|
1444
|
-
if (Qn(f))
|
|
1445
|
-
return f;
|
|
1446
|
-
const p = Jn(f.values), h = Kn(
|
|
1447
|
-
f.color,
|
|
1448
|
-
n == null ? void 0 : n.value,
|
|
1449
|
-
r == null ? void 0 : r.value.colorPalette,
|
|
1450
|
-
c
|
|
1451
|
-
);
|
|
1452
|
-
return {
|
|
1453
|
-
...f,
|
|
1454
|
-
values: p,
|
|
1455
|
-
color: h,
|
|
1456
|
-
__internal: !0
|
|
1457
|
-
};
|
|
1458
|
-
}
|
|
1459
|
-
);
|
|
1460
|
-
}), u = v(() => Array.isArray(t.value) ? t.value : ot(e.value).map((i, f) => f));
|
|
1461
|
-
function s(i) {
|
|
1462
|
-
const f = (a == null ? void 0 : a.value) === A.HORIZONTAL ? ot(e).length * (Pe * 2) : i.height;
|
|
1463
|
-
N.set(o, "width", i.width), N.set(o, "height", f);
|
|
1464
|
-
}
|
|
1465
|
-
return {
|
|
1466
|
-
computedLabels: u,
|
|
1467
|
-
containerSize: o,
|
|
1468
|
-
internalData: l,
|
|
1469
|
-
updateSize: s
|
|
1470
|
-
};
|
|
1471
|
-
}
|
|
1472
|
-
const tr = () => ({
|
|
1486
|
+
const nr = er.exports, rr = () => ({
|
|
1473
1487
|
xScale: {
|
|
1474
1488
|
type: Function,
|
|
1475
1489
|
default: null
|
|
@@ -1479,56 +1493,56 @@ const tr = () => ({
|
|
|
1479
1493
|
default: null
|
|
1480
1494
|
}
|
|
1481
1495
|
});
|
|
1482
|
-
function
|
|
1483
|
-
const o = k(null),
|
|
1496
|
+
function ar(e, t, n, r, a) {
|
|
1497
|
+
const o = k(null), i = k(null);
|
|
1484
1498
|
function u() {
|
|
1485
|
-
const { width: s, height:
|
|
1486
|
-
!s && !
|
|
1499
|
+
const { width: s, height: c } = n;
|
|
1500
|
+
!s && !c || !t.value || !e.value || (r.value === A.HORIZONTAL ? (o.value = It(
|
|
1487
1501
|
e.value,
|
|
1488
1502
|
s,
|
|
1489
1503
|
r.value,
|
|
1490
1504
|
a.value.startOnZero
|
|
1491
|
-
),
|
|
1505
|
+
), i.value = Ct(t.value, c)) : (o.value = Ct(t.value, s), i.value = It(
|
|
1492
1506
|
e.value,
|
|
1493
|
-
|
|
1507
|
+
c,
|
|
1494
1508
|
r.value,
|
|
1495
1509
|
a.value.startOnZero
|
|
1496
1510
|
)));
|
|
1497
1511
|
}
|
|
1498
|
-
return Pt(u), { xScale: o, yScale:
|
|
1512
|
+
return Pt(u), { xScale: o, yScale: i };
|
|
1499
1513
|
}
|
|
1500
1514
|
function Ct(e, t) {
|
|
1501
1515
|
const n = [0, t];
|
|
1502
1516
|
return J().range(n).domain(e);
|
|
1503
1517
|
}
|
|
1504
1518
|
function It(e, t, n, r) {
|
|
1505
|
-
const a =
|
|
1519
|
+
const a = Ft(e).filter((h) => h != null), o = [0, t];
|
|
1506
1520
|
if (a.length === 0)
|
|
1507
1521
|
return Q().range(o).domain([0, 0]).nice();
|
|
1508
|
-
const
|
|
1509
|
-
return Q().range(o).domain(
|
|
1522
|
+
const i = Math.min(...a), u = r && i > 0 ? 0 : i, s = Math.max(...a), c = n === A.HORIZONTAL ? [u, s] : [s, u];
|
|
1523
|
+
return Q().range(o).domain(c).nice();
|
|
1510
1524
|
}
|
|
1511
1525
|
function Nt(e) {
|
|
1512
1526
|
return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
|
|
1513
1527
|
}
|
|
1514
|
-
function
|
|
1515
|
-
return
|
|
1528
|
+
function mt(e, t) {
|
|
1529
|
+
return U(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
|
|
1516
1530
|
}
|
|
1517
1531
|
function st(e, t, {
|
|
1518
1532
|
padding: n,
|
|
1519
1533
|
paddingInner: r,
|
|
1520
1534
|
paddingOuter: a
|
|
1521
1535
|
} = {}) {
|
|
1522
|
-
const o = n != null ? n : t === A.HORIZONTAL ?
|
|
1536
|
+
const o = n != null ? n : t === A.HORIZONTAL ? Ce : we;
|
|
1523
1537
|
return e.copy().paddingInner(r != null ? r : o).paddingOuter(a != null ? a : o / 2);
|
|
1524
1538
|
}
|
|
1525
|
-
function
|
|
1539
|
+
function or(e) {
|
|
1526
1540
|
return Object.values(A).includes(e);
|
|
1527
1541
|
}
|
|
1528
|
-
const
|
|
1529
|
-
...
|
|
1530
|
-
...n ?
|
|
1531
|
-
...
|
|
1542
|
+
const V = (e, t = !0, n = !0) => ({
|
|
1543
|
+
...Wt(e),
|
|
1544
|
+
...n ? rr() : {},
|
|
1545
|
+
...dt(),
|
|
1532
1546
|
title: {
|
|
1533
1547
|
type: String,
|
|
1534
1548
|
default: null
|
|
@@ -1537,7 +1551,7 @@ const F = (e, t = !0, n = !0) => ({
|
|
|
1537
1551
|
orientation: {
|
|
1538
1552
|
type: String,
|
|
1539
1553
|
default: A.VERTICAL,
|
|
1540
|
-
validator:
|
|
1554
|
+
validator: or
|
|
1541
1555
|
}
|
|
1542
1556
|
} : {},
|
|
1543
1557
|
classList: {
|
|
@@ -1545,37 +1559,37 @@ const F = (e, t = !0, n = !0) => ({
|
|
|
1545
1559
|
default: () => []
|
|
1546
1560
|
}
|
|
1547
1561
|
});
|
|
1548
|
-
function
|
|
1549
|
-
return { hasNegativeValues:
|
|
1550
|
-
() =>
|
|
1562
|
+
function sr(e) {
|
|
1563
|
+
return { hasNegativeValues: f(
|
|
1564
|
+
() => Ft(e.value).some((n) => n < 0)
|
|
1551
1565
|
) };
|
|
1552
1566
|
}
|
|
1553
|
-
function
|
|
1554
|
-
const a =
|
|
1567
|
+
function ir(e, t, n, r) {
|
|
1568
|
+
const a = f(
|
|
1555
1569
|
() => r.value === A.HORIZONTAL
|
|
1556
|
-
), o =
|
|
1570
|
+
), o = f(
|
|
1557
1571
|
() => {
|
|
1558
|
-
var
|
|
1559
|
-
return e.height - (a != null && a.value ? 0 : ((
|
|
1572
|
+
var c;
|
|
1573
|
+
return e.height - (a != null && a.value ? 0 : ((c = n.value) == null ? void 0 : c.call(n, 0)) || 0);
|
|
1560
1574
|
}
|
|
1561
|
-
),
|
|
1575
|
+
), i = f(
|
|
1562
1576
|
() => {
|
|
1563
|
-
var
|
|
1564
|
-
return a != null && a.value ? ((
|
|
1577
|
+
var c;
|
|
1578
|
+
return a != null && a.value ? ((c = t.value) == null ? void 0 : c.call(t, 0)) || 0 : e.width;
|
|
1565
1579
|
}
|
|
1566
|
-
), u =
|
|
1580
|
+
), u = f(
|
|
1567
1581
|
() => {
|
|
1568
|
-
var
|
|
1569
|
-
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((
|
|
1582
|
+
var c;
|
|
1583
|
+
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((c = n.value) == null ? void 0 : c.call(n, 0)) || 0})`;
|
|
1570
1584
|
}
|
|
1571
1585
|
);
|
|
1572
|
-
return { negativeBarAttributes:
|
|
1573
|
-
width:
|
|
1586
|
+
return { negativeBarAttributes: f(() => ({
|
|
1587
|
+
width: i.value,
|
|
1574
1588
|
height: o.value,
|
|
1575
1589
|
transform: u.value
|
|
1576
1590
|
})) };
|
|
1577
1591
|
}
|
|
1578
|
-
function
|
|
1592
|
+
function lr(e, t) {
|
|
1579
1593
|
return e.reduce((n, r) => {
|
|
1580
1594
|
var o;
|
|
1581
1595
|
const a = (o = r.values[t]) == null ? void 0 : o.value;
|
|
@@ -1583,32 +1597,32 @@ function or(e, t) {
|
|
|
1583
1597
|
}, 0);
|
|
1584
1598
|
}
|
|
1585
1599
|
const Rt = {
|
|
1586
|
-
"stacked-bar":
|
|
1600
|
+
"stacked-bar": lr
|
|
1587
1601
|
};
|
|
1588
|
-
function
|
|
1589
|
-
const o =
|
|
1590
|
-
var
|
|
1591
|
-
let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) :
|
|
1592
|
-
((
|
|
1593
|
-
const
|
|
1602
|
+
function ur(e, t, n, r, a) {
|
|
1603
|
+
const o = f(() => (u) => {
|
|
1604
|
+
var l;
|
|
1605
|
+
let s = a.value && Rt[a.value] ? Rt[a.value](e.value, u) : Vt(e.value, u);
|
|
1606
|
+
((l = a == null ? void 0 : a.value) == null ? void 0 : l.includes("bar")) && s < 0 && (s = 0);
|
|
1607
|
+
const c = r.value === A.HORIZONTAL ? t.value(s) : mt(t.value, u), h = r.value === A.HORIZONTAL ? mt(n.value, u) : n.value(s);
|
|
1594
1608
|
return {
|
|
1595
|
-
cx:
|
|
1596
|
-
cy:
|
|
1609
|
+
cx: c,
|
|
1610
|
+
cy: h
|
|
1597
1611
|
};
|
|
1598
1612
|
});
|
|
1599
|
-
function
|
|
1600
|
-
return e.value.map(({ color: s, label:
|
|
1601
|
-
var
|
|
1613
|
+
function i(u) {
|
|
1614
|
+
return e.value.map(({ color: s, label: c, values: h }) => {
|
|
1615
|
+
var l, v, p, d, _;
|
|
1602
1616
|
return {
|
|
1603
|
-
color: ((
|
|
1604
|
-
label:
|
|
1605
|
-
value: (_ = (d = (
|
|
1617
|
+
color: ((l = h[u]) == null ? void 0 : l.color) || s,
|
|
1618
|
+
label: c,
|
|
1619
|
+
value: (_ = (d = (v = h[u]) == null ? void 0 : v.label) != null ? d : (p = h[u]) == null ? void 0 : p.value) != null ? _ : jt
|
|
1606
1620
|
};
|
|
1607
1621
|
});
|
|
1608
1622
|
}
|
|
1609
|
-
return { getTooltipAnchorAttributes: o, getTooltipItems:
|
|
1623
|
+
return { getTooltipAnchorAttributes: o, getTooltipItems: i };
|
|
1610
1624
|
}
|
|
1611
|
-
function
|
|
1625
|
+
function cr() {
|
|
1612
1626
|
const e = it({
|
|
1613
1627
|
opened: !1,
|
|
1614
1628
|
targetElement: null
|
|
@@ -1619,129 +1633,129 @@ function ir() {
|
|
|
1619
1633
|
N.set(e, "opened", !1), N.set(e, "targetElement", null);
|
|
1620
1634
|
} };
|
|
1621
1635
|
}
|
|
1622
|
-
const
|
|
1636
|
+
const dr = S({
|
|
1623
1637
|
components: {
|
|
1624
|
-
LumeAxis:
|
|
1625
|
-
LumeBar:
|
|
1626
|
-
LumeChartContainer:
|
|
1627
|
-
LumeChartLegend:
|
|
1628
|
-
LumeOverlayGroup:
|
|
1629
|
-
LumeTooltip:
|
|
1638
|
+
LumeAxis: hn,
|
|
1639
|
+
LumeBar: Tt,
|
|
1640
|
+
LumeChartContainer: An,
|
|
1641
|
+
LumeChartLegend: Sn,
|
|
1642
|
+
LumeOverlayGroup: nr,
|
|
1643
|
+
LumeTooltip: Nn
|
|
1630
1644
|
},
|
|
1631
1645
|
props: {
|
|
1632
|
-
...
|
|
1646
|
+
...V(),
|
|
1633
1647
|
chartType: {
|
|
1634
1648
|
type: String,
|
|
1635
1649
|
default: null
|
|
1636
1650
|
}
|
|
1637
1651
|
},
|
|
1638
1652
|
setup(e, t) {
|
|
1639
|
-
const { data: n, labels: r, color: a, options: o, orientation:
|
|
1653
|
+
const { data: n, labels: r, color: a, options: o, orientation: i, chartType: u } = C(e), s = k(-1), c = k(null), h = k(null), { allOptions: l } = F(o), { internalData: v, computedLabels: p, containerSize: d, updateSize: _ } = ct(
|
|
1640
1654
|
n,
|
|
1641
1655
|
r,
|
|
1642
1656
|
a,
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
), { xScale: b, yScale: m } =
|
|
1657
|
+
l,
|
|
1658
|
+
i
|
|
1659
|
+
), { xScale: b, yScale: m } = ar(
|
|
1660
|
+
v,
|
|
1646
1661
|
p,
|
|
1647
|
-
h,
|
|
1648
1662
|
d,
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
), g =
|
|
1663
|
+
i,
|
|
1664
|
+
l
|
|
1665
|
+
), g = f(() => {
|
|
1652
1666
|
var O;
|
|
1653
|
-
return e.xScale ? Nt(e.xScale) ? e.xScale : (O = e.xScale) == null ? void 0 : O.call(e,
|
|
1654
|
-
}), y =
|
|
1667
|
+
return e.xScale ? Nt(e.xScale) ? e.xScale : (O = e.xScale) == null ? void 0 : O.call(e, v.value, r.value, d) : b.value;
|
|
1668
|
+
}), y = f(() => {
|
|
1655
1669
|
var O;
|
|
1656
|
-
return e.yScale ? Nt(e.yScale) ? e.yScale : (O = e.yScale) == null ? void 0 : O.call(e,
|
|
1657
|
-
}), x =
|
|
1658
|
-
...
|
|
1659
|
-
withHover:
|
|
1660
|
-
})),
|
|
1661
|
-
...
|
|
1662
|
-
withHover:
|
|
1663
|
-
})), R =
|
|
1670
|
+
return e.yScale ? Nt(e.yScale) ? e.yScale : (O = e.yScale) == null ? void 0 : O.call(e, v.value, r.value, d) : m.value;
|
|
1671
|
+
}), x = f(() => ({
|
|
1672
|
+
...l.value.xAxisOptions,
|
|
1673
|
+
withHover: i.value === A.VERTICAL
|
|
1674
|
+
})), T = f(() => ({
|
|
1675
|
+
...l.value.yAxisOptions,
|
|
1676
|
+
withHover: i.value === A.HORIZONTAL
|
|
1677
|
+
})), R = f(() => {
|
|
1664
1678
|
var O;
|
|
1665
|
-
return (O =
|
|
1666
|
-
}),
|
|
1679
|
+
return (O = l.value.xAxisOptions) == null ? void 0 : O.title;
|
|
1680
|
+
}), B = f(() => {
|
|
1667
1681
|
var O;
|
|
1668
|
-
return (O =
|
|
1669
|
-
}),
|
|
1682
|
+
return (O = l.value.yAxisOptions) == null ? void 0 : O.title;
|
|
1683
|
+
}), D = f(() => {
|
|
1670
1684
|
var O;
|
|
1671
|
-
return ((O =
|
|
1672
|
-
}),
|
|
1685
|
+
return ((O = l.value.xAxisOptions) == null ? void 0 : O.withTitle) !== !1 && R.value;
|
|
1686
|
+
}), $ = f(() => {
|
|
1673
1687
|
var O;
|
|
1674
|
-
return ((O =
|
|
1675
|
-
}),
|
|
1688
|
+
return ((O = l.value.yAxisOptions) == null ? void 0 : O.withTitle) !== !1 && B.value;
|
|
1689
|
+
}), w = f(
|
|
1676
1690
|
() => {
|
|
1677
1691
|
var O;
|
|
1678
|
-
return
|
|
1692
|
+
return l.value.withTooltip !== !1 && !((O = l.value.tooltipOptions) != null && O.targetElement);
|
|
1679
1693
|
}
|
|
1680
|
-
),
|
|
1681
|
-
const O = [], { noBaseScales: X } =
|
|
1694
|
+
), H = f(() => {
|
|
1695
|
+
const O = [], { noBaseScales: X } = l.value;
|
|
1682
1696
|
return X || O.push(() => !!(g.value && y.value)), O.every((nt) => nt() === !0);
|
|
1683
|
-
}), { hasNegativeValues:
|
|
1697
|
+
}), { hasNegativeValues: j } = sr(v), { negativeBarAttributes: tt } = ir(
|
|
1684
1698
|
d,
|
|
1685
1699
|
g,
|
|
1686
1700
|
y,
|
|
1687
|
-
|
|
1688
|
-
), { tooltipConfig: et, showTooltip: z, hideTooltip:
|
|
1689
|
-
|
|
1701
|
+
i
|
|
1702
|
+
), { tooltipConfig: et, showTooltip: z, hideTooltip: pt } = cr(), { getTooltipAnchorAttributes: Jt, getTooltipItems: Qt } = ur(
|
|
1703
|
+
v,
|
|
1690
1704
|
g,
|
|
1691
1705
|
y,
|
|
1692
|
-
|
|
1706
|
+
i,
|
|
1693
1707
|
u
|
|
1694
|
-
), te =
|
|
1708
|
+
), te = f(
|
|
1695
1709
|
() => {
|
|
1696
1710
|
var O;
|
|
1697
|
-
return ((O =
|
|
1711
|
+
return ((O = l.value.tooltipOptions) == null ? void 0 : O.position) || "top";
|
|
1698
1712
|
}
|
|
1699
1713
|
);
|
|
1700
1714
|
function ee(O) {
|
|
1701
1715
|
var nt;
|
|
1702
|
-
|
|
1703
|
-
const X = (nt =
|
|
1704
|
-
|
|
1716
|
+
l.value.withHover !== !1 && (s.value = O);
|
|
1717
|
+
const X = (nt = l.value.tooltipOptions) != null && nt.targetElement ? l.value.tooltipOptions.targetElement === "self" ? h.value.$el : l.value.tooltipOptions.targetElement : c.value[O];
|
|
1718
|
+
l.value.withTooltip !== !1 && z(X);
|
|
1705
1719
|
}
|
|
1706
1720
|
function ne() {
|
|
1707
|
-
|
|
1721
|
+
pt(), s.value = -1;
|
|
1708
1722
|
}
|
|
1709
|
-
return
|
|
1723
|
+
return G(() => {
|
|
1710
1724
|
var O, X;
|
|
1711
1725
|
(X = (O = t.slots).groups) != null && X.call(O) || console.error('"groups" `<slot>` must have content.');
|
|
1712
1726
|
}), {
|
|
1713
|
-
allOptions:
|
|
1714
|
-
internalData:
|
|
1715
|
-
chartContainer:
|
|
1716
|
-
computedLabels:
|
|
1727
|
+
allOptions: l,
|
|
1728
|
+
internalData: v,
|
|
1729
|
+
chartContainer: h,
|
|
1730
|
+
computedLabels: p,
|
|
1717
1731
|
computedXAxisOptions: x,
|
|
1718
1732
|
computedXScale: g,
|
|
1719
|
-
computedYAxisOptions:
|
|
1733
|
+
computedYAxisOptions: T,
|
|
1720
1734
|
computedYScale: y,
|
|
1721
1735
|
containerSize: d,
|
|
1722
1736
|
getEmptyArrayFromData: ot,
|
|
1723
1737
|
getTooltipAnchorAttributes: Jt,
|
|
1724
1738
|
getTooltipItems: Qt,
|
|
1725
1739
|
handleMouseleave: ne,
|
|
1726
|
-
hasNegativeValues:
|
|
1740
|
+
hasNegativeValues: j,
|
|
1727
1741
|
hoveredIndex: s,
|
|
1728
|
-
isReady:
|
|
1742
|
+
isReady: H,
|
|
1729
1743
|
mouseOverHandler: ee,
|
|
1730
1744
|
negativeBarAttributes: tt,
|
|
1731
|
-
shouldGenerateTooltipAnchors:
|
|
1732
|
-
showXAxisTitle:
|
|
1733
|
-
showYAxisTitle:
|
|
1734
|
-
tooltipAnchor:
|
|
1735
|
-
tooltipAnchorRadius:
|
|
1745
|
+
shouldGenerateTooltipAnchors: w,
|
|
1746
|
+
showXAxisTitle: D,
|
|
1747
|
+
showYAxisTitle: $,
|
|
1748
|
+
tooltipAnchor: c,
|
|
1749
|
+
tooltipAnchorRadius: Ie,
|
|
1736
1750
|
tooltipConfig: et,
|
|
1737
1751
|
tooltipPosition: te,
|
|
1738
1752
|
updateSize: _,
|
|
1739
1753
|
xAxisTitle: R,
|
|
1740
|
-
yAxisTitle:
|
|
1754
|
+
yAxisTitle: B
|
|
1741
1755
|
};
|
|
1742
1756
|
}
|
|
1743
1757
|
});
|
|
1744
|
-
var
|
|
1758
|
+
var fr = function() {
|
|
1745
1759
|
var t = this, n = t._self._c;
|
|
1746
1760
|
return t._self._setupProxy, n("lume-chart-container", { ref: "chartContainer", attrs: { margins: t.allOptions.margins, "container-size": t.containerSize, "no-min-size": t.allOptions.noMinSize, "transparent-background": t.allOptions.transparentBackground, "data-j-lume-chart": "" }, on: { resize: t.updateSize, mouseleave: t.handleMouseleave }, scopedSlots: t._u([{ key: "header", fn: function() {
|
|
1747
1761
|
return [n("div", { staticClass: "lume-chart__header" }, [n("div", { staticClass: "lume-chart__header-section" }, [t.title ? n("h1", { staticClass: "lume-chart__title lume-chart-title lume-typography--display" }, [t._v(" " + t._s(t.title) + " ")]) : t._e(), n("div", { staticClass: "lume-chart__controls" }, [t._t("controls")], 2)]), n("div", { staticClass: "lume-chart__header-section" }, [t.showYAxisTitle ? n("h3", { staticClass: "lume-chart__axis-title lume-axis-title lume-typography--body" }, [t._v(" " + t._s(t.yAxisTitle) + " ")]) : t._e(), t.allOptions.withLegend !== !1 && t.allOptions.legendPosition !== "bottom" ? n("lume-chart-legend", { staticClass: "lume-chart__legend", attrs: { data: t.internalData, "data-j-lume-chart__legend": "" }, on: { click: function(r) {
|
|
@@ -1755,7 +1769,7 @@ var ur = function() {
|
|
|
1755
1769
|
return [t._t("tooltip", function() {
|
|
1756
1770
|
return [t.allOptions.withTooltip !== !1 && t.tooltipConfig.opened ? n("lume-tooltip", t._b({ attrs: { position: t.tooltipPosition, title: t.computedLabels[t.hoveredIndex], items: t.getTooltipItems(t.hoveredIndex), options: t.allOptions.tooltipOptions, "data-j-lume-chart__tooltip": "" } }, "lume-tooltip", t.tooltipConfig, !1), [t._t("tooltip-content", null, { data: t.internalData, labels: t.computedLabels, hoveredIndex: t.hoveredIndex })], 2) : t._e()];
|
|
1757
1771
|
}, { data: t.internalData, labels: t.computedLabels, withTooltip: t.allOptions.withTooltip !== !1, hoveredIndex: t.hoveredIndex, options: t.allOptions.tooltipOptions }, t.tooltipConfig)];
|
|
1758
|
-
}, proxy: !0 }], null, !0) }, [t.isReady ? [t.hasNegativeValues ? n("lume-bar", t._b({ attrs: { "class-list": "lume-fill--negative", transition: !1, "data-j-lume-chart__negative-values": "" } }, "lume-bar", t.negativeBarAttributes, !1)) : t._e(), t.allOptions.
|
|
1772
|
+
}, proxy: !0 }], null, !0) }, [t.isReady ? [t.hasNegativeValues ? n("lume-bar", t._b({ attrs: { "class-list": "lume-fill--negative", transition: !1, "data-j-lume-chart__negative-values": "" } }, "lume-bar", t.negativeBarAttributes, !1)) : t._e(), t.allOptions.withAxes !== !1 ? t._t("axes", function() {
|
|
1759
1773
|
return [n("lume-axis", { attrs: { type: "x", scale: t.computedXScale, "container-size": t.containerSize, options: t.computedXAxisOptions, "hovered-index": t.hoveredIndex, orientation: t.orientation, "data-j-lume-chart__x-axis": "" }, on: { "tick-mouseover": function(r) {
|
|
1760
1774
|
return t.mouseOverHandler(r);
|
|
1761
1775
|
} } }), n("lume-axis", { attrs: { type: "y", scale: t.computedYScale, "container-size": t.containerSize, options: t.computedYAxisOptions, "hovered-index": t.hoveredIndex, orientation: t.orientation, "data-j-lume-chart__y-axis": "" }, on: { "tick-mouseover": function(r) {
|
|
@@ -1764,17 +1778,17 @@ var ur = function() {
|
|
|
1764
1778
|
}, { xScale: t.computedXScale, yScale: t.computedYScale, containerSize: t.containerSize, options: t.allOptions, hoveredIndex: t.hoveredIndex }) : t._e(), t._t("groups", null, { data: t.internalData, labels: t.computedLabels, options: t.allOptions, orientation: t.orientation, xScale: t.computedXScale, yScale: t.computedYScale, hoveredIndex: t.hoveredIndex, containerSize: t.containerSize, transition: t.allOptions.withTransition !== !1, classList: t.classList }), t.allOptions.withHover !== !1 ? n("lume-overlay-group", { attrs: { data: t.internalData, orientation: t.orientation, "x-scale": t.computedXScale, "y-scale": t.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { mouseover: t.mouseOverHandler } }) : t._e(), t.shouldGenerateTooltipAnchors ? n("g", t._l(t.getEmptyArrayFromData(t.internalData), function(r, a) {
|
|
1765
1779
|
return n("circle", t._b({ key: `anchor-${a}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: t.tooltipAnchorRadius } }, "circle", t.getTooltipAnchorAttributes(a), !1));
|
|
1766
1780
|
}), 0) : t._e()] : t._e()], 2);
|
|
1767
|
-
},
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1781
|
+
}, pr = [], vr = /* @__PURE__ */ L(
|
|
1782
|
+
dr,
|
|
1783
|
+
fr,
|
|
1784
|
+
pr,
|
|
1771
1785
|
!1,
|
|
1772
1786
|
null,
|
|
1773
|
-
"
|
|
1787
|
+
"fc14c0e8",
|
|
1774
1788
|
null,
|
|
1775
1789
|
null
|
|
1776
1790
|
);
|
|
1777
|
-
const
|
|
1791
|
+
const Y = vr.exports, hr = 8, _r = S({
|
|
1778
1792
|
props: {
|
|
1779
1793
|
linkPaths: {
|
|
1780
1794
|
type: Array,
|
|
@@ -1794,15 +1808,15 @@ const U = dr.exports, fr = 8, pr = S({
|
|
|
1794
1808
|
}
|
|
1795
1809
|
},
|
|
1796
1810
|
setup(e) {
|
|
1797
|
-
const { highlightedLinkIds: t, isGhost: n } =
|
|
1798
|
-
() => n.value ?
|
|
1811
|
+
const { highlightedLinkIds: t, isGhost: n } = C(e), r = f(
|
|
1812
|
+
() => n.value ? hr : 0
|
|
1799
1813
|
);
|
|
1800
1814
|
function a(o) {
|
|
1801
1815
|
return {
|
|
1802
1816
|
[`lume-stroke--${o.color}`]: !n.value,
|
|
1803
1817
|
"lume-stroke--transparent": n.value,
|
|
1804
1818
|
"lume-alluvial-path-group__link--ghost": n.value,
|
|
1805
|
-
"lume-alluvial-path-group__link--faded":
|
|
1819
|
+
"lume-alluvial-path-group__link--faded": zt(
|
|
1806
1820
|
o.id,
|
|
1807
1821
|
t.value
|
|
1808
1822
|
)
|
|
@@ -1811,7 +1825,7 @@ const U = dr.exports, fr = 8, pr = S({
|
|
|
1811
1825
|
return { getClasses: a, ghostStrokeWidthOffset: r };
|
|
1812
1826
|
}
|
|
1813
1827
|
});
|
|
1814
|
-
var
|
|
1828
|
+
var mr = function() {
|
|
1815
1829
|
var t = this, n = t._self._c;
|
|
1816
1830
|
return t._self._setupProxy, n("g", { staticClass: "lume-alluvial-path-group" }, t._l(t.linkPaths, function(r) {
|
|
1817
1831
|
return n("path", { key: `link_${r.id}`, staticClass: "lume-alluvial-path-group__link", class: t.getClasses(r), attrs: { id: t.isGhost ? `${r.id}__ghost` : r.id, d: r.d, "stroke-dasharray": t.containerWidth, "stroke-dashoffset": t.containerWidth, "stroke-width": r.strokeWidth + t.ghostStrokeWidthOffset, "data-j-alluvial-path__path": "" }, on: { mouseover: function(a) {
|
|
@@ -1820,23 +1834,23 @@ var vr = function() {
|
|
|
1820
1834
|
return t.$emit("mouseout");
|
|
1821
1835
|
} } });
|
|
1822
1836
|
}), 0);
|
|
1823
|
-
},
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1837
|
+
}, gr = [], yr = /* @__PURE__ */ L(
|
|
1838
|
+
_r,
|
|
1839
|
+
mr,
|
|
1840
|
+
gr,
|
|
1827
1841
|
!1,
|
|
1828
1842
|
null,
|
|
1829
1843
|
"ce6a9b03",
|
|
1830
1844
|
null,
|
|
1831
1845
|
null
|
|
1832
1846
|
);
|
|
1833
|
-
const
|
|
1834
|
-
function
|
|
1847
|
+
const br = yr.exports, qt = "03", K = 8, xr = 200;
|
|
1848
|
+
function Ar(e, t, n) {
|
|
1835
1849
|
let r = !1;
|
|
1836
|
-
|
|
1850
|
+
gt(() => {
|
|
1837
1851
|
r = !0;
|
|
1838
1852
|
});
|
|
1839
|
-
const a =
|
|
1853
|
+
const a = f(() => Math.max(...n.value.nodes.map(({ depth: p }) => p))), o = f(() => {
|
|
1840
1854
|
if (e.value.highlightedLink === null && e.value.highlightedNode === null)
|
|
1841
1855
|
return {};
|
|
1842
1856
|
if (t.value.getHighlightedElements)
|
|
@@ -1846,14 +1860,14 @@ function yr(e, t, n) {
|
|
|
1846
1860
|
links: n.value.links
|
|
1847
1861
|
});
|
|
1848
1862
|
if (e.value.highlightedNode) {
|
|
1849
|
-
const
|
|
1863
|
+
const p = [
|
|
1850
1864
|
...e.value.highlightedNode.sourceLinks,
|
|
1851
1865
|
...e.value.highlightedNode.targetLinks
|
|
1852
1866
|
];
|
|
1853
1867
|
return {
|
|
1854
|
-
links:
|
|
1868
|
+
links: p,
|
|
1855
1869
|
nodes: new Map(
|
|
1856
|
-
|
|
1870
|
+
p.reduce((d, { source: _, target: b, value: m }) => _ === e.value.highlightedNode ? [...d, [E(b), m]] : [...d, [E(_), m]], [])
|
|
1857
1871
|
)
|
|
1858
1872
|
};
|
|
1859
1873
|
}
|
|
@@ -1867,35 +1881,35 @@ function yr(e, t, n) {
|
|
|
1867
1881
|
])
|
|
1868
1882
|
};
|
|
1869
1883
|
});
|
|
1870
|
-
function
|
|
1871
|
-
return typeof
|
|
1884
|
+
function i(p) {
|
|
1885
|
+
return typeof p == "string" || typeof p == "number" ? p : p == null ? void 0 : p.id;
|
|
1872
1886
|
}
|
|
1873
|
-
function u(
|
|
1874
|
-
const d =
|
|
1875
|
-
(b) => `link_${
|
|
1887
|
+
function u(p = n.value.links) {
|
|
1888
|
+
const d = p.map(
|
|
1889
|
+
(b) => `link_${i(b.source)}:${i(b.target)}`
|
|
1876
1890
|
);
|
|
1877
|
-
return { nodeIds:
|
|
1891
|
+
return { nodeIds: p.reduce(
|
|
1878
1892
|
(b, { source: m, target: g }) => [
|
|
1879
1893
|
...b,
|
|
1880
|
-
`node-block-${
|
|
1881
|
-
`node-block-${
|
|
1894
|
+
`node-block-${i(m)}`,
|
|
1895
|
+
`node-block-${i(g)}`
|
|
1882
1896
|
],
|
|
1883
1897
|
[]
|
|
1884
1898
|
), linkIds: d };
|
|
1885
1899
|
}
|
|
1886
|
-
function s(
|
|
1900
|
+
function s(p, d, _) {
|
|
1887
1901
|
const b = Date.now(), m = e.value.nodeBlocks.find(
|
|
1888
|
-
(x) => x.id === `node-block-${
|
|
1889
|
-
), g =
|
|
1902
|
+
(x) => x.id === `node-block-${p}`
|
|
1903
|
+
), g = Pe(d, _), y = () => {
|
|
1890
1904
|
if (r)
|
|
1891
1905
|
return;
|
|
1892
|
-
let
|
|
1893
|
-
|
|
1906
|
+
let T = (Date.now() - b) / xr;
|
|
1907
|
+
T > 1 && (T = 1), N.set(m.node, "transitionValue", g(T)), T < 1 && requestAnimationFrame(y);
|
|
1894
1908
|
};
|
|
1895
1909
|
requestAnimationFrame(y);
|
|
1896
1910
|
}
|
|
1897
|
-
function
|
|
1898
|
-
const b = new Set(d), m = (y) => _ ? y.value :
|
|
1911
|
+
function c({ values: p, updatingNodes: d = [], isEntering: _ = !1 }) {
|
|
1912
|
+
const b = new Set(d), m = (y) => _ ? y.value : p.get(E(y)), g = (y) => _ ? p.get(E(y)) : y.value;
|
|
1899
1913
|
n.value.nodes.filter((y) => b.has(y)).forEach((y) => {
|
|
1900
1914
|
s(
|
|
1901
1915
|
E(y),
|
|
@@ -1904,9 +1918,9 @@ function yr(e, t, n) {
|
|
|
1904
1918
|
);
|
|
1905
1919
|
});
|
|
1906
1920
|
}
|
|
1907
|
-
function
|
|
1921
|
+
function h(p) {
|
|
1908
1922
|
const d = oe();
|
|
1909
|
-
return
|
|
1923
|
+
return p.map((_) => {
|
|
1910
1924
|
var b;
|
|
1911
1925
|
return {
|
|
1912
1926
|
id: `link_${E(_.source)}:${E(
|
|
@@ -1919,8 +1933,8 @@ function yr(e, t, n) {
|
|
|
1919
1933
|
};
|
|
1920
1934
|
});
|
|
1921
1935
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1936
|
+
function l(p) {
|
|
1937
|
+
return p.map((d) => ({
|
|
1924
1938
|
id: `node-block-${E(d)}`,
|
|
1925
1939
|
rect: {
|
|
1926
1940
|
width: d.x1 - d.x0,
|
|
@@ -1933,73 +1947,73 @@ function yr(e, t, n) {
|
|
|
1933
1947
|
node: d
|
|
1934
1948
|
}));
|
|
1935
1949
|
}
|
|
1936
|
-
function
|
|
1937
|
-
|
|
1950
|
+
function v({ nodes: p, links: d }) {
|
|
1951
|
+
p == null || d == null || (e.value.nodeBlocks = l(p), e.value.linkPaths = h(d));
|
|
1938
1952
|
}
|
|
1939
1953
|
return {
|
|
1940
1954
|
highlightedElements: o,
|
|
1941
1955
|
highlightLinks: u,
|
|
1942
|
-
updateNodes:
|
|
1943
|
-
renderChart:
|
|
1956
|
+
updateNodes: c,
|
|
1957
|
+
renderChart: v,
|
|
1944
1958
|
maxDepth: a
|
|
1945
1959
|
};
|
|
1946
1960
|
}
|
|
1947
|
-
function
|
|
1948
|
-
function r(
|
|
1949
|
-
var
|
|
1950
|
-
return (
|
|
1951
|
-
(d, _) => Math.max(d, _[
|
|
1961
|
+
function Or(e, t, n) {
|
|
1962
|
+
function r(l) {
|
|
1963
|
+
var v, p;
|
|
1964
|
+
return (p = (v = t.value) == null ? void 0 : v.nodes) == null ? void 0 : p.reduce(
|
|
1965
|
+
(d, _) => Math.max(d, _[l]),
|
|
1952
1966
|
-1 / 0
|
|
1953
1967
|
);
|
|
1954
1968
|
}
|
|
1955
|
-
function a(
|
|
1956
|
-
return
|
|
1969
|
+
function a(l, v) {
|
|
1970
|
+
return i(v) - i(l);
|
|
1957
1971
|
}
|
|
1958
|
-
function o(
|
|
1959
|
-
var
|
|
1960
|
-
return (
|
|
1972
|
+
function o(l) {
|
|
1973
|
+
var v, p;
|
|
1974
|
+
return (p = (v = n.value) == null ? void 0 : v.find((d) => d.id === `node-text-${l.id}`)) == null ? void 0 : p.getBBox();
|
|
1961
1975
|
}
|
|
1962
|
-
function
|
|
1963
|
-
var
|
|
1976
|
+
function i({ label: l, value: v }) {
|
|
1977
|
+
var p;
|
|
1964
1978
|
return Math.max(
|
|
1965
|
-
|
|
1966
|
-
((
|
|
1979
|
+
l.length,
|
|
1980
|
+
((p = e.value.valueFormatter(v)) == null ? void 0 : p.length) || 0
|
|
1967
1981
|
);
|
|
1968
1982
|
}
|
|
1969
|
-
const u =
|
|
1970
|
-
var
|
|
1971
|
-
const
|
|
1972
|
-
return
|
|
1973
|
-
}), s =
|
|
1974
|
-
var
|
|
1975
|
-
const
|
|
1983
|
+
const u = f(() => {
|
|
1984
|
+
var p, d, _, b;
|
|
1985
|
+
const l = r("x1"), v = (d = (p = t.value.nodes) == null ? void 0 : p.filter(({ x1: m }) => m === l).sort(a)) == null ? void 0 : d[0];
|
|
1986
|
+
return v == null ? 0 : (b = (_ = o(v)) == null ? void 0 : _.width) != null ? b : 0;
|
|
1987
|
+
}), s = f(() => {
|
|
1988
|
+
var p, d, _, b, m, g;
|
|
1989
|
+
const l = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.reduce(
|
|
1976
1990
|
(y, { y0: x }) => Math.min(y, x),
|
|
1977
1991
|
1 / 0
|
|
1978
|
-
),
|
|
1979
|
-
return
|
|
1980
|
-
}),
|
|
1981
|
-
var
|
|
1982
|
-
const
|
|
1983
|
-
return
|
|
1992
|
+
), v = (b = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : b.find(({ y0: y }) => y === l);
|
|
1993
|
+
return v == null ? 0 : Math.abs((g = (m = o(v)) == null ? void 0 : m.y) != null ? g : 0);
|
|
1994
|
+
}), c = f(() => {
|
|
1995
|
+
var p, d, _, b;
|
|
1996
|
+
const l = r("y1"), v = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.find(({ y1: m }) => m === l);
|
|
1997
|
+
return v == null ? 0 : Math.abs((b = (_ = o(v)) == null ? void 0 : _.y) != null ? b : 0);
|
|
1984
1998
|
});
|
|
1985
1999
|
return {
|
|
1986
|
-
leftMostNodeLabelWidth:
|
|
1987
|
-
var
|
|
1988
|
-
const
|
|
1989
|
-
return
|
|
2000
|
+
leftMostNodeLabelWidth: f(() => {
|
|
2001
|
+
var v, p, d, _;
|
|
2002
|
+
const l = (p = (v = t.value.nodes) == null ? void 0 : v.filter(({ depth: b }) => b === 0).sort(a)) == null ? void 0 : p[0];
|
|
2003
|
+
return l == null ? 0 : (_ = (d = o(l)) == null ? void 0 : d.width) != null ? _ : 0;
|
|
1990
2004
|
}),
|
|
1991
2005
|
rightMostNodeLabelWidth: u,
|
|
1992
2006
|
topMostNodeLabelExtraHeight: s,
|
|
1993
|
-
bottomMostNodeLabelExtraHeight:
|
|
2007
|
+
bottomMostNodeLabelExtraHeight: c
|
|
1994
2008
|
};
|
|
1995
2009
|
}
|
|
1996
|
-
const
|
|
2010
|
+
const Tr = {
|
|
1997
2011
|
values: [],
|
|
1998
2012
|
nodePadding: 16,
|
|
1999
2013
|
nodeWidth: 16,
|
|
2000
2014
|
nodeAlign: ie,
|
|
2001
2015
|
valueFormatter: (e) => String(e)
|
|
2002
|
-
},
|
|
2016
|
+
}, $r = {
|
|
2003
2017
|
highlightedLink: null,
|
|
2004
2018
|
highlightedNode: null,
|
|
2005
2019
|
leftExtent: 0,
|
|
@@ -2009,79 +2023,79 @@ const xr = {
|
|
|
2009
2023
|
nodeBlocks: [],
|
|
2010
2024
|
linkPaths: []
|
|
2011
2025
|
};
|
|
2012
|
-
function
|
|
2013
|
-
const n = k({
|
|
2026
|
+
function kr(e, t) {
|
|
2027
|
+
const n = k({ ...$r, containerSize: t }), r = f(() => e.value.values.map(({ label: u, color: s, value: c }) => ({
|
|
2014
2028
|
label: u,
|
|
2015
2029
|
color: s,
|
|
2016
|
-
id:
|
|
2017
|
-
}))), a =
|
|
2030
|
+
id: c
|
|
2031
|
+
}))), a = f(() => e.value.values.map(
|
|
2018
2032
|
(u) => {
|
|
2019
2033
|
var s;
|
|
2020
|
-
return (s = u.targets) == null ? void 0 : s.map(({ node:
|
|
2021
|
-
var
|
|
2034
|
+
return (s = u.targets) == null ? void 0 : s.map(({ node: c, value: h, color: l }) => {
|
|
2035
|
+
var v;
|
|
2022
2036
|
return {
|
|
2023
|
-
source: (
|
|
2024
|
-
color:
|
|
2025
|
-
target:
|
|
2026
|
-
value:
|
|
2037
|
+
source: (v = u.value) != null ? v : u.label,
|
|
2038
|
+
color: l,
|
|
2039
|
+
target: c,
|
|
2040
|
+
value: h
|
|
2027
2041
|
};
|
|
2028
2042
|
});
|
|
2029
2043
|
}
|
|
2030
|
-
).filter(Boolean).reduce((u, s) => [...u, ...s], [])), o =
|
|
2031
|
-
const { leftExtent: u, rightExtent: s, topExtent:
|
|
2044
|
+
).filter(Boolean).reduce((u, s) => [...u, ...s], [])), o = f(() => {
|
|
2045
|
+
const { leftExtent: u, rightExtent: s, topExtent: c, bottomExtent: h, containerSize: l } = n.value;
|
|
2032
2046
|
return se().nodeId(E).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
|
|
2033
|
-
[u,
|
|
2034
|
-
[s,
|
|
2047
|
+
[u, c],
|
|
2048
|
+
[s, l.height - h]
|
|
2035
2049
|
]);
|
|
2036
|
-
}),
|
|
2050
|
+
}), i = f(() => o.value({
|
|
2037
2051
|
nodes: r.value.map((u) => ({ ...u })),
|
|
2038
2052
|
links: a.value.map((u) => ({ ...u }))
|
|
2039
2053
|
}));
|
|
2040
2054
|
return {
|
|
2041
2055
|
nodes: r,
|
|
2042
2056
|
links: a,
|
|
2043
|
-
graph:
|
|
2057
|
+
graph: i,
|
|
2044
2058
|
alluvialInstance: n
|
|
2045
2059
|
};
|
|
2046
2060
|
}
|
|
2047
|
-
function
|
|
2061
|
+
function Sr(e) {
|
|
2048
2062
|
var n;
|
|
2049
2063
|
const t = (n = e.value) == null ? void 0 : n[0];
|
|
2050
2064
|
if (!!t)
|
|
2051
2065
|
return k({
|
|
2052
|
-
...
|
|
2066
|
+
...Tr,
|
|
2053
2067
|
...t
|
|
2054
2068
|
});
|
|
2055
2069
|
}
|
|
2056
|
-
const
|
|
2057
|
-
components: { LumeAlluvialPathGroup:
|
|
2070
|
+
const Lr = S({
|
|
2071
|
+
components: { LumeAlluvialPathGroup: br },
|
|
2058
2072
|
props: {
|
|
2059
|
-
...
|
|
2073
|
+
...V(lt)
|
|
2060
2074
|
},
|
|
2061
2075
|
setup(e, t) {
|
|
2062
|
-
const n = ae(e, "data"), r = k([]), a = k([]), o = k(null),
|
|
2063
|
-
|
|
2076
|
+
const n = ae(e, "data"), r = k([]), a = k([]), o = k(null), i = Sr(n), { graph: u, alluvialInstance: s } = kr(
|
|
2077
|
+
i,
|
|
2064
2078
|
t.attrs.containerSize
|
|
2065
2079
|
), {
|
|
2066
|
-
leftMostNodeLabelWidth:
|
|
2067
|
-
rightMostNodeLabelWidth:
|
|
2068
|
-
topMostNodeLabelExtraHeight:
|
|
2069
|
-
bottomMostNodeLabelExtraHeight:
|
|
2070
|
-
} =
|
|
2071
|
-
highlightedElements:
|
|
2080
|
+
leftMostNodeLabelWidth: c,
|
|
2081
|
+
rightMostNodeLabelWidth: h,
|
|
2082
|
+
topMostNodeLabelExtraHeight: l,
|
|
2083
|
+
bottomMostNodeLabelExtraHeight: v
|
|
2084
|
+
} = Or(i, u, o), {
|
|
2085
|
+
highlightedElements: p,
|
|
2072
2086
|
highlightLinks: d,
|
|
2073
2087
|
updateNodes: _,
|
|
2074
2088
|
renderChart: b,
|
|
2075
2089
|
maxDepth: m
|
|
2076
|
-
} =
|
|
2077
|
-
return I(
|
|
2078
|
-
var
|
|
2079
|
-
const x = g.nodes != null && g.links != null,
|
|
2080
|
-
(
|
|
2090
|
+
} = Ar(s, i, u);
|
|
2091
|
+
return I(p, function(g, y) {
|
|
2092
|
+
var w, H, j, tt, et;
|
|
2093
|
+
const x = g.nodes != null && g.links != null, T = new Set((w = g.links) != null ? w : []), { nodes: R = /* @__PURE__ */ new Map() } = (x ? g : y) || {}, { nodeIds: B, linkIds: D } = d(
|
|
2094
|
+
(j = (H = u.value) == null ? void 0 : H.links) == null ? void 0 : j.filter((z) => T.has(z))
|
|
2081
2095
|
);
|
|
2082
|
-
((z = [],
|
|
2083
|
-
a.value = z, r.value =
|
|
2084
|
-
})(
|
|
2096
|
+
((z = [], pt = []) => {
|
|
2097
|
+
a.value = z, r.value = pt;
|
|
2098
|
+
})(B, D), _({
|
|
2085
2099
|
isEntering: x,
|
|
2086
2100
|
values: R,
|
|
2087
2101
|
updatingNodes: (et = (tt = u.value) == null ? void 0 : tt.nodes) == null ? void 0 : et.filter(
|
|
@@ -2092,33 +2106,33 @@ const $r = S({
|
|
|
2092
2106
|
u,
|
|
2093
2107
|
(g) => b({ nodes: g.nodes, links: g.links })
|
|
2094
2108
|
), I(
|
|
2095
|
-
|
|
2109
|
+
c,
|
|
2096
2110
|
(g) => s.value.leftExtent = g + K
|
|
2097
2111
|
), I(
|
|
2098
|
-
|
|
2112
|
+
h,
|
|
2099
2113
|
(g) => s.value.rightExtent = s.value.containerSize.width - (g + K)
|
|
2100
2114
|
), I(
|
|
2101
|
-
|
|
2115
|
+
v,
|
|
2102
2116
|
(g) => s.value.bottomExtent = g
|
|
2103
2117
|
), I(
|
|
2104
|
-
|
|
2118
|
+
l,
|
|
2105
2119
|
(g) => s.value.topExtent = g
|
|
2106
2120
|
), I(
|
|
2107
2121
|
s.value.containerSize,
|
|
2108
|
-
(g) => s.value.rightExtent = g.width - (
|
|
2122
|
+
(g) => s.value.rightExtent = g.width - (h.value + K)
|
|
2109
2123
|
), {
|
|
2110
2124
|
alluvialInstance: s,
|
|
2111
|
-
computedData:
|
|
2125
|
+
computedData: i,
|
|
2112
2126
|
defaultColor: qt,
|
|
2113
2127
|
highlightedLinkIds: r,
|
|
2114
2128
|
highlightedNodeIds: a,
|
|
2115
|
-
isNodeOrLinkFaded:
|
|
2129
|
+
isNodeOrLinkFaded: zt,
|
|
2116
2130
|
maxDepth: m,
|
|
2117
2131
|
nodeText: o
|
|
2118
2132
|
};
|
|
2119
2133
|
}
|
|
2120
2134
|
});
|
|
2121
|
-
var
|
|
2135
|
+
var wr = function() {
|
|
2122
2136
|
var t = this, n = t._self._c;
|
|
2123
2137
|
return t._self._setupProxy, t.alluvialInstance ? n("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [t._l(t.alluvialInstance.nodeBlocks, function(r, a) {
|
|
2124
2138
|
return n("g", { key: `node-block_${a}`, staticClass: "lume-alluvial-group__node", class: {
|
|
@@ -2147,34 +2161,34 @@ var kr = function() {
|
|
|
2147
2161
|
}, mouseout: function(r) {
|
|
2148
2162
|
t.alluvialInstance.highlightedLink = null;
|
|
2149
2163
|
} } })], 2) : t._e();
|
|
2150
|
-
},
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2164
|
+
}, Cr = [], Ir = /* @__PURE__ */ L(
|
|
2165
|
+
Lr,
|
|
2166
|
+
wr,
|
|
2167
|
+
Cr,
|
|
2154
2168
|
!1,
|
|
2155
2169
|
null,
|
|
2156
2170
|
"9b0ccc03",
|
|
2157
2171
|
null,
|
|
2158
2172
|
null
|
|
2159
2173
|
);
|
|
2160
|
-
const
|
|
2174
|
+
const Nr = Ir.exports, Rr = {
|
|
2161
2175
|
margins: {
|
|
2162
2176
|
top: 0,
|
|
2163
2177
|
right: 0,
|
|
2164
2178
|
bottom: 0,
|
|
2165
2179
|
left: 0
|
|
2166
2180
|
},
|
|
2167
|
-
|
|
2181
|
+
withAxes: !1,
|
|
2168
2182
|
withTooltip: !1,
|
|
2169
2183
|
withHover: !1,
|
|
2170
2184
|
withLegend: !1
|
|
2171
|
-
},
|
|
2172
|
-
components: { LumeChart:
|
|
2185
|
+
}, Dr = S({
|
|
2186
|
+
components: { LumeChart: Y, LumeAlluvialGroup: Nr },
|
|
2173
2187
|
props: {
|
|
2174
|
-
...
|
|
2188
|
+
...V(lt, !1, !1)
|
|
2175
2189
|
},
|
|
2176
2190
|
setup(e, t) {
|
|
2177
|
-
const { options: n } =
|
|
2191
|
+
const { options: n } = C(e), { allOptions: r } = F(n, Rr);
|
|
2178
2192
|
function a(o) {
|
|
2179
2193
|
return {
|
|
2180
2194
|
...o,
|
|
@@ -2188,7 +2202,7 @@ const wr = Lr.exports, Cr = {
|
|
|
2188
2202
|
};
|
|
2189
2203
|
}
|
|
2190
2204
|
});
|
|
2191
|
-
var
|
|
2205
|
+
var Er = function() {
|
|
2192
2206
|
var t = this, n = t._self._c;
|
|
2193
2207
|
return t._self._setupProxy, n("lume-chart", t._b({ attrs: { options: t.getAlluvialDiagramOptions(t.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
|
|
2194
2208
|
return [n("lume-alluvial-group", t._b({}, "lume-alluvial-group", r, !1))];
|
|
@@ -2197,36 +2211,36 @@ var Nr = function() {
|
|
|
2197
2211
|
return [t._t(a, null, null, o || {})];
|
|
2198
2212
|
} };
|
|
2199
2213
|
})], null, !0) }, "lume-chart", t.$props, !1));
|
|
2200
|
-
},
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2214
|
+
}, Pr = [], Br = /* @__PURE__ */ L(
|
|
2215
|
+
Dr,
|
|
2216
|
+
Er,
|
|
2217
|
+
Pr,
|
|
2204
2218
|
!1,
|
|
2205
2219
|
null,
|
|
2206
2220
|
null,
|
|
2207
2221
|
null,
|
|
2208
2222
|
null
|
|
2209
2223
|
);
|
|
2210
|
-
const
|
|
2224
|
+
const Ba = Br.exports;
|
|
2211
2225
|
var Xt = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(Xt || {});
|
|
2212
2226
|
const Dt = {
|
|
2213
2227
|
single: "lume-single-bar-chart",
|
|
2214
2228
|
grouped: "lume-grouped-bar-chart",
|
|
2215
2229
|
stacked: "lume-stacked-bar-chart"
|
|
2216
|
-
},
|
|
2230
|
+
}, Mr = S({
|
|
2217
2231
|
components: {
|
|
2218
|
-
LumeSingleBarChart:
|
|
2219
|
-
() => import("./
|
|
2232
|
+
LumeSingleBarChart: vt(
|
|
2233
|
+
() => import("./2c318357.js")
|
|
2220
2234
|
),
|
|
2221
|
-
LumeGroupedBarChart:
|
|
2222
|
-
() => import("./
|
|
2235
|
+
LumeGroupedBarChart: vt(
|
|
2236
|
+
() => import("./797e4fbd.js")
|
|
2223
2237
|
),
|
|
2224
|
-
LumeStackedBarChart:
|
|
2225
|
-
() => import("./
|
|
2238
|
+
LumeStackedBarChart: vt(
|
|
2239
|
+
() => import("./b0835720.js")
|
|
2226
2240
|
)
|
|
2227
2241
|
},
|
|
2228
2242
|
props: {
|
|
2229
|
-
...
|
|
2243
|
+
...V(),
|
|
2230
2244
|
type: {
|
|
2231
2245
|
type: String,
|
|
2232
2246
|
default: null,
|
|
@@ -2245,7 +2259,7 @@ const Dt = {
|
|
|
2245
2259
|
};
|
|
2246
2260
|
}
|
|
2247
2261
|
return {
|
|
2248
|
-
component:
|
|
2262
|
+
component: f(() => {
|
|
2249
2263
|
if (!!e.data) {
|
|
2250
2264
|
if (lt(e.data))
|
|
2251
2265
|
return Dt.single;
|
|
@@ -2261,241 +2275,241 @@ const Dt = {
|
|
|
2261
2275
|
};
|
|
2262
2276
|
}
|
|
2263
2277
|
});
|
|
2264
|
-
var
|
|
2278
|
+
var Hr = function() {
|
|
2265
2279
|
var t = this, n = t._self._c;
|
|
2266
2280
|
return t._self._setupProxy, n(t.component, t._g(t._b({ tag: "component", attrs: { options: t.getBarChartOptions(t.options) }, scopedSlots: t._u([t._l(t.slots, function(r, a) {
|
|
2267
2281
|
return { key: a, fn: function(o) {
|
|
2268
2282
|
return [t._t(a, null, null, o || {})];
|
|
2269
2283
|
} };
|
|
2270
2284
|
})], null, !0) }, "component", t.$props, !1), t.$listeners));
|
|
2271
|
-
},
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2285
|
+
}, jr = [], Fr = /* @__PURE__ */ L(
|
|
2286
|
+
Mr,
|
|
2287
|
+
Hr,
|
|
2288
|
+
jr,
|
|
2275
2289
|
!1,
|
|
2276
2290
|
null,
|
|
2277
2291
|
null,
|
|
2278
2292
|
null,
|
|
2279
2293
|
null
|
|
2280
2294
|
);
|
|
2281
|
-
const
|
|
2282
|
-
function
|
|
2283
|
-
return Object.values(
|
|
2295
|
+
const Ma = Fr.exports;
|
|
2296
|
+
function Gr(e) {
|
|
2297
|
+
return Object.values(Se).includes(e) || e == null;
|
|
2284
2298
|
}
|
|
2285
|
-
function
|
|
2299
|
+
function Vr(e) {
|
|
2286
2300
|
return Object.values(A).includes(e);
|
|
2287
2301
|
}
|
|
2288
|
-
const
|
|
2302
|
+
const zr = (e = !1) => ({
|
|
2289
2303
|
type: {
|
|
2290
2304
|
type: String,
|
|
2291
2305
|
default: null,
|
|
2292
|
-
validator:
|
|
2306
|
+
validator: Gr
|
|
2293
2307
|
},
|
|
2294
2308
|
...e ? {
|
|
2295
2309
|
orientation: {
|
|
2296
2310
|
type: String,
|
|
2297
2311
|
default: A.VERTICAL,
|
|
2298
|
-
validator:
|
|
2312
|
+
validator: Vr
|
|
2299
2313
|
}
|
|
2300
2314
|
} : {}
|
|
2301
2315
|
});
|
|
2302
|
-
function
|
|
2303
|
-
const t =
|
|
2316
|
+
function Ut(e) {
|
|
2317
|
+
const t = f(() => e.value.map((r) => ({
|
|
2304
2318
|
...r,
|
|
2305
2319
|
values: r.values.map((a) => ({
|
|
2306
2320
|
...a,
|
|
2307
2321
|
value: (a == null ? void 0 : a.value) || 0
|
|
2308
2322
|
}))
|
|
2309
|
-
}))), n =
|
|
2323
|
+
}))), n = f(() => {
|
|
2310
2324
|
var r;
|
|
2311
|
-
return (r = t.value) == null ? void 0 : r.reduce((a, o) => (o.values.forEach((
|
|
2312
|
-
a[u] ? a[u].push(
|
|
2325
|
+
return (r = t.value) == null ? void 0 : r.reduce((a, o) => (o.values.forEach((i, u) => {
|
|
2326
|
+
a[u] ? a[u].push(i) : a[u] = [i];
|
|
2313
2327
|
}), a), []);
|
|
2314
2328
|
});
|
|
2315
2329
|
return { multiBarData: t, groupedData: n };
|
|
2316
2330
|
}
|
|
2317
|
-
function
|
|
2331
|
+
function Wr(e, t) {
|
|
2318
2332
|
return e.value.length === 1 ? "single" : t.value;
|
|
2319
2333
|
}
|
|
2320
|
-
function
|
|
2321
|
-
const a =
|
|
2334
|
+
function Zr(e, t, n, r) {
|
|
2335
|
+
const a = f(
|
|
2322
2336
|
() => r.value === A.HORIZONTAL
|
|
2323
2337
|
);
|
|
2324
2338
|
function o(s) {
|
|
2325
2339
|
Math.min(...s.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
|
|
2326
2340
|
}
|
|
2327
|
-
const
|
|
2328
|
-
const { padding: s, paddingInner:
|
|
2341
|
+
const i = f(() => {
|
|
2342
|
+
const { padding: s, paddingInner: c, paddingOuter: h } = n.value;
|
|
2329
2343
|
return a.value ? (() => (o(e.value), e.value))() : st(
|
|
2330
2344
|
e.value,
|
|
2331
2345
|
r.value,
|
|
2332
|
-
{ padding: s, paddingInner:
|
|
2346
|
+
{ padding: s, paddingInner: c, paddingOuter: h }
|
|
2333
2347
|
);
|
|
2334
|
-
}), u =
|
|
2335
|
-
const { padding: s, paddingInner:
|
|
2348
|
+
}), u = f(() => {
|
|
2349
|
+
const { padding: s, paddingInner: c, paddingOuter: h } = n.value;
|
|
2336
2350
|
return a.value ? st(
|
|
2337
2351
|
t.value,
|
|
2338
2352
|
r.value,
|
|
2339
|
-
{ padding: s, paddingInner:
|
|
2353
|
+
{ padding: s, paddingInner: c, paddingOuter: h }
|
|
2340
2354
|
) : (() => (o(t.value), t.value))();
|
|
2341
2355
|
});
|
|
2342
|
-
return { barXScale:
|
|
2356
|
+
return { barXScale: i, barYScale: u };
|
|
2343
2357
|
}
|
|
2344
|
-
const
|
|
2345
|
-
function
|
|
2346
|
-
const
|
|
2358
|
+
const qr = "skyblue";
|
|
2359
|
+
function Xr(e, t, n, r, a, o) {
|
|
2360
|
+
const i = f(
|
|
2347
2361
|
() => r.value === A.HORIZONTAL
|
|
2348
2362
|
);
|
|
2349
|
-
function u(
|
|
2350
|
-
let
|
|
2351
|
-
return
|
|
2363
|
+
function u(l, v) {
|
|
2364
|
+
let p, d;
|
|
2365
|
+
return i.value ? (p = l >= 0 ? t.value(0) : t.value(l), d = n.value(n.value.domain()[v])) : (p = t.value(t.value.domain()[v]), d = l < 0 ? n.value(0) : n.value(l)), { x: p, y: d };
|
|
2352
2366
|
}
|
|
2353
|
-
function s(
|
|
2354
|
-
return
|
|
2367
|
+
function s(l) {
|
|
2368
|
+
return i.value ? l < 0 ? t.value(0) - t.value(l) : t.value(l) - t.value(0) : t.value.bandwidth();
|
|
2355
2369
|
}
|
|
2356
|
-
function
|
|
2357
|
-
return
|
|
2370
|
+
function c(l) {
|
|
2371
|
+
return i.value ? n.value.bandwidth() : l < 0 ? n.value(l) - n.value(0) : n.value(0) - n.value(l);
|
|
2358
2372
|
}
|
|
2359
|
-
function
|
|
2360
|
-
var
|
|
2361
|
-
const { value: d, color: _ } =
|
|
2373
|
+
function h(l, v, p) {
|
|
2374
|
+
var T;
|
|
2375
|
+
const { value: d, color: _ } = l, b = (T = _ != null ? _ : e.value[v].color) != null ? T : qr, { x: m, y: g } = u(d, p), y = s(d), x = c(d);
|
|
2362
2376
|
return {
|
|
2363
2377
|
classList: [`lume-fill--${b}`, ...o],
|
|
2364
2378
|
x: m,
|
|
2365
2379
|
y: g,
|
|
2366
2380
|
width: y,
|
|
2367
2381
|
height: x,
|
|
2368
|
-
isFaded: a.value !== -1 && a.value !==
|
|
2382
|
+
isFaded: a.value !== -1 && a.value !== p,
|
|
2369
2383
|
isNegative: d < 0
|
|
2370
2384
|
};
|
|
2371
2385
|
}
|
|
2372
|
-
return { barAttributeGenerator:
|
|
2386
|
+
return { barAttributeGenerator: h };
|
|
2373
2387
|
}
|
|
2374
|
-
function
|
|
2375
|
-
const
|
|
2388
|
+
function Ur(e, t, n, r, a, o) {
|
|
2389
|
+
const i = f(
|
|
2376
2390
|
() => r.value === A.HORIZONTAL
|
|
2377
|
-
), u =
|
|
2378
|
-
function
|
|
2379
|
-
if (
|
|
2391
|
+
), u = f(() => J().domain(e.value.map((d, _) => _)).range([0, t.value.bandwidth()]).padding(0)), s = f(() => J().domain(e.value.map((d, _) => _)).range([0, n.value.bandwidth()]).padding(0));
|
|
2392
|
+
function c(d, _, b) {
|
|
2393
|
+
if (i.value)
|
|
2380
2394
|
return d >= 0 ? t.value(0) : t.value(d);
|
|
2381
2395
|
const m = t.value.domain();
|
|
2382
2396
|
return t.value(m[_]) + u.value(b);
|
|
2383
2397
|
}
|
|
2384
|
-
function
|
|
2385
|
-
if (
|
|
2398
|
+
function h(d, _, b) {
|
|
2399
|
+
if (i.value) {
|
|
2386
2400
|
const m = n.value.domain();
|
|
2387
2401
|
return n.value(m[_]) + s.value(b);
|
|
2388
2402
|
}
|
|
2389
2403
|
return d < 0 ? n.value(0) : n.value(d);
|
|
2390
2404
|
}
|
|
2391
|
-
function
|
|
2392
|
-
return
|
|
2405
|
+
function l(d) {
|
|
2406
|
+
return i.value ? d < 0 ? t.value(0) - t.value(d) : t.value(d) - t.value(0) : u.value.bandwidth();
|
|
2393
2407
|
}
|
|
2394
|
-
function
|
|
2395
|
-
return
|
|
2408
|
+
function v(d) {
|
|
2409
|
+
return i.value ? s.value.bandwidth() : d < 0 ? n.value(d) - n.value(0) : n.value(0) - n.value(d);
|
|
2396
2410
|
}
|
|
2397
|
-
function
|
|
2398
|
-
var
|
|
2399
|
-
const { value: m, color: g } = d, y = (
|
|
2411
|
+
function p(d, _, b) {
|
|
2412
|
+
var D;
|
|
2413
|
+
const { value: m, color: g } = d, y = (D = g != null ? g : e.value[_].color) != null ? D : Object.values(M)[_], x = c(m, b, _), T = h(m, b, _), R = l(m), B = v(m);
|
|
2400
2414
|
return {
|
|
2401
2415
|
classList: [`lume-fill--${y}`, ...o],
|
|
2402
2416
|
x,
|
|
2403
|
-
y:
|
|
2417
|
+
y: T,
|
|
2404
2418
|
width: R,
|
|
2405
|
-
height:
|
|
2419
|
+
height: B,
|
|
2406
2420
|
isFaded: a.value !== -1 && a.value !== b,
|
|
2407
2421
|
isNegative: m < 0
|
|
2408
2422
|
};
|
|
2409
2423
|
}
|
|
2410
|
-
return { barAttributeGenerator:
|
|
2424
|
+
return { barAttributeGenerator: p };
|
|
2411
2425
|
}
|
|
2412
|
-
function
|
|
2413
|
-
const n =
|
|
2426
|
+
function Yr(e, t) {
|
|
2427
|
+
const n = f(
|
|
2414
2428
|
() => t.value === A.HORIZONTAL
|
|
2415
|
-
), r =
|
|
2429
|
+
), r = f(() => {
|
|
2416
2430
|
const u = e.value.map(
|
|
2417
|
-
(s) => s.filter((
|
|
2431
|
+
(s) => s.filter((c) => c.value < 0).reduce((c, h) => c + h.value, 0)
|
|
2418
2432
|
);
|
|
2419
2433
|
return Math.min(...u);
|
|
2420
|
-
}), a =
|
|
2434
|
+
}), a = f(() => {
|
|
2421
2435
|
const u = e.value.map(
|
|
2422
2436
|
(s) => s.reduce(
|
|
2423
|
-
(
|
|
2437
|
+
(c, h) => h.value >= 0 ? c + h.value : c,
|
|
2424
2438
|
0
|
|
2425
2439
|
)
|
|
2426
2440
|
);
|
|
2427
2441
|
return Math.max(...u);
|
|
2428
2442
|
});
|
|
2429
|
-
function o(u, s,
|
|
2430
|
-
return n.value ? Q().domain([r.value, a.value]).range([0,
|
|
2431
|
-
J().domain(s == null ? void 0 : s.map((
|
|
2443
|
+
function o(u, s, c) {
|
|
2444
|
+
return n.value ? Q().domain([r.value, a.value]).range([0, c.width]) : st(
|
|
2445
|
+
J().domain(s == null ? void 0 : s.map((h) => h)).range([0, c.width])
|
|
2432
2446
|
);
|
|
2433
2447
|
}
|
|
2434
|
-
function
|
|
2448
|
+
function i(u, s, c) {
|
|
2435
2449
|
return n.value ? st(
|
|
2436
|
-
J().domain(s == null ? void 0 : s.map((
|
|
2437
|
-
) : Q().domain([a.value, r.value]).range([0,
|
|
2450
|
+
J().domain(s == null ? void 0 : s.map((h) => h)).range([0, c.height])
|
|
2451
|
+
) : Q().domain([a.value, r.value]).range([0, c.height]);
|
|
2438
2452
|
}
|
|
2439
|
-
return { stackedXScaleGenerator: o, stackedYScaleGenerator:
|
|
2453
|
+
return { stackedXScaleGenerator: o, stackedYScaleGenerator: i };
|
|
2440
2454
|
}
|
|
2441
|
-
function
|
|
2442
|
-
const
|
|
2455
|
+
function Kr(e, t, n, r, a, o) {
|
|
2456
|
+
const i = f(
|
|
2443
2457
|
() => r.value === A.HORIZONTAL
|
|
2444
|
-
), u =
|
|
2445
|
-
() =>
|
|
2446
|
-
), s =
|
|
2458
|
+
), u = f(
|
|
2459
|
+
() => i.value ? n.value.domain() : t.value.domain()
|
|
2460
|
+
), s = f(
|
|
2447
2461
|
() => e.value.map((m) => m.values.map((g) => g == null ? void 0 : g.value))
|
|
2448
2462
|
);
|
|
2449
|
-
function
|
|
2450
|
-
let x,
|
|
2451
|
-
return
|
|
2463
|
+
function c(m, g, y) {
|
|
2464
|
+
let x, T;
|
|
2465
|
+
return i.value ? (x = t.value(m >= 0 ? 0 + y : m + y), T = n.value(u.value[g])) : (x = t.value(u.value[g]), T = n.value(m >= 0 ? m + y : 0 + y)), { x, y: T };
|
|
2452
2466
|
}
|
|
2453
|
-
function
|
|
2454
|
-
return
|
|
2467
|
+
function h(m) {
|
|
2468
|
+
return i.value ? t.value(m) - t.value(0) : t.value.bandwidth();
|
|
2455
2469
|
}
|
|
2456
|
-
function
|
|
2457
|
-
return
|
|
2470
|
+
function l(m) {
|
|
2471
|
+
return i.value ? t.value(0) - t.value(m) : t.value.bandwidth();
|
|
2458
2472
|
}
|
|
2459
|
-
function
|
|
2460
|
-
return
|
|
2473
|
+
function v(m) {
|
|
2474
|
+
return i.value ? n.value.bandwidth() : n.value(0) - n.value(m);
|
|
2461
2475
|
}
|
|
2462
|
-
function
|
|
2463
|
-
return
|
|
2476
|
+
function p(m) {
|
|
2477
|
+
return i.value ? n.value.bandwidth() : n.value(m) - n.value(0);
|
|
2464
2478
|
}
|
|
2465
2479
|
function d(m, g) {
|
|
2466
|
-
return m ? s.value.reduce((y, x,
|
|
2480
|
+
return m ? s.value.reduce((y, x, T) => (T < m && x[g] >= 0 && (y += x[g]), y), 0) : 0;
|
|
2467
2481
|
}
|
|
2468
2482
|
function _(m, g) {
|
|
2469
|
-
return m ? s.value.reduce((y, x,
|
|
2483
|
+
return m ? s.value.reduce((y, x, T) => (T < m && x[g] < 0 && (y += x[g]), y), 0) : 0;
|
|
2470
2484
|
}
|
|
2471
2485
|
function b(m, g, y) {
|
|
2472
|
-
var
|
|
2473
|
-
const { value: x, color:
|
|
2486
|
+
var j;
|
|
2487
|
+
const { value: x, color: T } = m, R = x >= 0 ? h(x) : l(x), B = x >= 0 ? v(x) : p(x), D = x >= 0 ? d(g, y) : _(g, y), { x: $, y: w } = c(x, y, D);
|
|
2474
2488
|
return {
|
|
2475
|
-
classList: [`lume-fill--${(
|
|
2489
|
+
classList: [`lume-fill--${(j = T != null ? T : e.value[g].color) != null ? j : Object.values(M)[g]}`, ...o],
|
|
2476
2490
|
width: R,
|
|
2477
|
-
height:
|
|
2478
|
-
x:
|
|
2479
|
-
y:
|
|
2491
|
+
height: B,
|
|
2492
|
+
x: $,
|
|
2493
|
+
y: w,
|
|
2480
2494
|
isFaded: a.value !== -1 && a.value !== y,
|
|
2481
2495
|
isNegative: x < 0
|
|
2482
2496
|
};
|
|
2483
2497
|
}
|
|
2484
2498
|
return { barAttributeGenerator: b };
|
|
2485
2499
|
}
|
|
2486
|
-
const
|
|
2487
|
-
single:
|
|
2488
|
-
grouped:
|
|
2489
|
-
stacked:
|
|
2490
|
-
},
|
|
2491
|
-
components: { LumeBar:
|
|
2500
|
+
const Jr = {
|
|
2501
|
+
single: Xr,
|
|
2502
|
+
grouped: Ur,
|
|
2503
|
+
stacked: Kr
|
|
2504
|
+
}, Qr = S({
|
|
2505
|
+
components: { LumeBar: Tt },
|
|
2492
2506
|
props: {
|
|
2493
|
-
|
|
2507
|
+
...$t(),
|
|
2494
2508
|
classList: {
|
|
2495
2509
|
type: [String, Array],
|
|
2496
2510
|
default: () => []
|
|
2497
2511
|
},
|
|
2498
|
-
...
|
|
2512
|
+
...zr(!0),
|
|
2499
2513
|
transition: {
|
|
2500
2514
|
type: Boolean,
|
|
2501
2515
|
default: !0
|
|
@@ -2508,83 +2522,81 @@ const Yr = {
|
|
|
2508
2522
|
options: r,
|
|
2509
2523
|
orientation: a,
|
|
2510
2524
|
transition: o,
|
|
2511
|
-
type:
|
|
2525
|
+
type: i,
|
|
2512
2526
|
xScale: u,
|
|
2513
2527
|
yScale: s,
|
|
2514
|
-
classList:
|
|
2515
|
-
} =
|
|
2528
|
+
classList: c
|
|
2529
|
+
} = C(e), { groupedData: h } = Ut(t), { barXScale: l, barYScale: v } = Zr(
|
|
2516
2530
|
u,
|
|
2517
2531
|
s,
|
|
2518
2532
|
r,
|
|
2519
2533
|
a
|
|
2520
|
-
),
|
|
2521
|
-
const b =
|
|
2534
|
+
), p = f(() => typeof c.value == "string" ? [c.value] : c.value), d = f(() => {
|
|
2535
|
+
const b = Wr(t, i), { barAttributeGenerator: m } = Jr[b](
|
|
2522
2536
|
t,
|
|
2523
|
-
|
|
2524
|
-
|
|
2537
|
+
l,
|
|
2538
|
+
v,
|
|
2525
2539
|
a,
|
|
2526
2540
|
n,
|
|
2527
|
-
|
|
2541
|
+
p.value
|
|
2528
2542
|
);
|
|
2529
2543
|
return m;
|
|
2530
|
-
}), _ =
|
|
2544
|
+
}), _ = f(() => {
|
|
2531
2545
|
if (!!o.value)
|
|
2532
2546
|
return a.value === A.HORIZONTAL ? "width" : "height";
|
|
2533
2547
|
});
|
|
2534
2548
|
return {
|
|
2535
|
-
barXScale:
|
|
2536
|
-
barYScale:
|
|
2549
|
+
barXScale: l,
|
|
2550
|
+
barYScale: v,
|
|
2537
2551
|
computedTransition: _,
|
|
2538
2552
|
getBarAttributes: d,
|
|
2539
|
-
groupedData:
|
|
2553
|
+
groupedData: h
|
|
2540
2554
|
};
|
|
2541
2555
|
}
|
|
2542
2556
|
});
|
|
2543
|
-
var
|
|
2557
|
+
var ta = function() {
|
|
2544
2558
|
var t = this, n = t._self._c;
|
|
2545
2559
|
return t._self._setupProxy, n("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, t._l(t.groupedData, function(r, a) {
|
|
2546
|
-
return n("g", { key: a }, t._l(r, function(o,
|
|
2547
|
-
return n("lume-bar", t._b({ key: `bar-${
|
|
2560
|
+
return n("g", { key: a }, t._l(r, function(o, i) {
|
|
2561
|
+
return n("lume-bar", t._b({ key: `bar-${i}`, attrs: { transition: t.computedTransition, "data-j-lume-bar": "" } }, "lume-bar", t.getBarAttributes(o, i, a, r), !1));
|
|
2548
2562
|
}), 1);
|
|
2549
2563
|
}), 0);
|
|
2550
|
-
},
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2564
|
+
}, ea = [], na = /* @__PURE__ */ L(
|
|
2565
|
+
Qr,
|
|
2566
|
+
ta,
|
|
2567
|
+
ea,
|
|
2554
2568
|
!1,
|
|
2555
2569
|
null,
|
|
2556
2570
|
null,
|
|
2557
2571
|
null,
|
|
2558
2572
|
null
|
|
2559
2573
|
);
|
|
2560
|
-
const kt =
|
|
2574
|
+
const kt = na.exports, ra = {
|
|
2561
2575
|
[A.VERTICAL]: {
|
|
2562
|
-
showAxes: !0,
|
|
2563
2576
|
withTooltip: !0,
|
|
2564
2577
|
xAxisOptions: {},
|
|
2565
2578
|
yAxisOptions: { gridLines: !0 },
|
|
2566
2579
|
margins: Z.VERTICAL
|
|
2567
2580
|
},
|
|
2568
2581
|
[A.HORIZONTAL]: {
|
|
2569
|
-
showAxes: !0,
|
|
2570
2582
|
withTooltip: !0,
|
|
2571
2583
|
xAxisOptions: { gridLines: !0 },
|
|
2572
2584
|
yAxisOptions: { gridLines: !1 },
|
|
2573
2585
|
margins: Z.HORIZONTAL
|
|
2574
2586
|
}
|
|
2575
|
-
},
|
|
2576
|
-
components: { LumeChart:
|
|
2587
|
+
}, aa = S({
|
|
2588
|
+
components: { LumeChart: Y, LumeBarGroup: kt },
|
|
2577
2589
|
props: {
|
|
2578
|
-
...
|
|
2590
|
+
...V(lt)
|
|
2579
2591
|
},
|
|
2580
2592
|
setup(e, t) {
|
|
2581
|
-
const { orientation: n, options: r } =
|
|
2582
|
-
() =>
|
|
2583
|
-
), { allOptions: o } =
|
|
2593
|
+
const { orientation: n, options: r } = C(e), a = f(
|
|
2594
|
+
() => ra[n.value || A.VERTICAL]
|
|
2595
|
+
), { allOptions: o } = F(r, a);
|
|
2584
2596
|
return { allOptions: o, slots: q(t.slots) };
|
|
2585
2597
|
}
|
|
2586
2598
|
});
|
|
2587
|
-
var
|
|
2599
|
+
var oa = function() {
|
|
2588
2600
|
var t = this, n = t._self._c;
|
|
2589
2601
|
return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "single-bar", options: t.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
|
|
2590
2602
|
return [n("lume-bar-group", t._b({ attrs: { orientation: t.orientation } }, "lume-bar-group", r, !1))];
|
|
@@ -2593,45 +2605,43 @@ var na = function() {
|
|
|
2593
2605
|
return [t._t(a, null, null, o || {})];
|
|
2594
2606
|
} };
|
|
2595
2607
|
})], null, !0) }, "lume-chart", t.$props, !1));
|
|
2596
|
-
},
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2608
|
+
}, sa = [], ia = /* @__PURE__ */ L(
|
|
2609
|
+
aa,
|
|
2610
|
+
oa,
|
|
2611
|
+
sa,
|
|
2600
2612
|
!1,
|
|
2601
2613
|
null,
|
|
2602
2614
|
null,
|
|
2603
2615
|
null,
|
|
2604
2616
|
null
|
|
2605
2617
|
);
|
|
2606
|
-
const
|
|
2618
|
+
const Ha = ia.exports, la = {
|
|
2607
2619
|
[A.VERTICAL]: {
|
|
2608
|
-
showAxes: !0,
|
|
2609
2620
|
withTooltip: !0,
|
|
2610
2621
|
xAxisOptions: {},
|
|
2611
2622
|
yAxisOptions: { gridLines: !0 },
|
|
2612
2623
|
margins: Z.VERTICAL
|
|
2613
2624
|
},
|
|
2614
2625
|
[A.HORIZONTAL]: {
|
|
2615
|
-
showAxes: !0,
|
|
2616
2626
|
withTooltip: !0,
|
|
2617
2627
|
xAxisOptions: { gridLines: !0 },
|
|
2618
2628
|
yAxisOptions: { gridLines: !1 },
|
|
2619
2629
|
margins: Z.HORIZONTAL,
|
|
2620
2630
|
tooltipOptions: { position: xt[6] }
|
|
2621
2631
|
}
|
|
2622
|
-
},
|
|
2623
|
-
components: { LumeChart:
|
|
2632
|
+
}, ua = S({
|
|
2633
|
+
components: { LumeChart: Y, LumeBarGroup: kt },
|
|
2624
2634
|
props: {
|
|
2625
|
-
...
|
|
2635
|
+
...V()
|
|
2626
2636
|
},
|
|
2627
2637
|
setup(e, t) {
|
|
2628
|
-
const { orientation: n, options: r } =
|
|
2629
|
-
() =>
|
|
2630
|
-
), { allOptions: o } =
|
|
2638
|
+
const { orientation: n, options: r } = C(e), a = f(
|
|
2639
|
+
() => la[n.value || A.VERTICAL]
|
|
2640
|
+
), { allOptions: o } = F(r, a);
|
|
2631
2641
|
return { allOptions: o, slots: q(t.slots) };
|
|
2632
2642
|
}
|
|
2633
2643
|
});
|
|
2634
|
-
var
|
|
2644
|
+
var ca = function() {
|
|
2635
2645
|
var t = this, n = t._self._c;
|
|
2636
2646
|
return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "grouped-bar", options: t.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
|
|
2637
2647
|
return [n("lume-bar-group", t._b({ attrs: { type: "grouped" } }, "lume-bar-group", r, !1))];
|
|
@@ -2640,53 +2650,51 @@ var ia = function() {
|
|
|
2640
2650
|
return [t._t(a, null, null, o || {})];
|
|
2641
2651
|
} };
|
|
2642
2652
|
})], null, !0) }, "lume-chart", t.$props, !1));
|
|
2643
|
-
},
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2653
|
+
}, da = [], fa = /* @__PURE__ */ L(
|
|
2654
|
+
ua,
|
|
2655
|
+
ca,
|
|
2656
|
+
da,
|
|
2647
2657
|
!1,
|
|
2648
2658
|
null,
|
|
2649
2659
|
null,
|
|
2650
2660
|
null,
|
|
2651
2661
|
null
|
|
2652
2662
|
);
|
|
2653
|
-
const
|
|
2663
|
+
const ja = fa.exports, pa = {
|
|
2654
2664
|
[A.VERTICAL]: {
|
|
2655
|
-
showAxes: !0,
|
|
2656
2665
|
withTooltip: !0,
|
|
2657
2666
|
xAxisOptions: {},
|
|
2658
2667
|
yAxisOptions: { gridLines: !0 },
|
|
2659
2668
|
margins: Z.VERTICAL
|
|
2660
2669
|
},
|
|
2661
2670
|
[A.HORIZONTAL]: {
|
|
2662
|
-
showAxes: !0,
|
|
2663
2671
|
withTooltip: !0,
|
|
2664
2672
|
xAxisOptions: { gridLines: !0 },
|
|
2665
2673
|
yAxisOptions: { gridLines: !1 },
|
|
2666
2674
|
margins: Z.HORIZONTAL,
|
|
2667
2675
|
tooltipOptions: { position: xt[6] }
|
|
2668
2676
|
}
|
|
2669
|
-
},
|
|
2670
|
-
components: { LumeChart:
|
|
2677
|
+
}, va = S({
|
|
2678
|
+
components: { LumeChart: Y, LumeBarGroup: kt },
|
|
2671
2679
|
props: {
|
|
2672
|
-
...
|
|
2680
|
+
...V()
|
|
2673
2681
|
},
|
|
2674
2682
|
setup(e, t) {
|
|
2675
|
-
const { data: n, orientation: r, options: a } =
|
|
2676
|
-
() =>
|
|
2677
|
-
), { allOptions:
|
|
2683
|
+
const { data: n, orientation: r, options: a } = C(e), o = f(
|
|
2684
|
+
() => pa[r.value || A.VERTICAL]
|
|
2685
|
+
), { allOptions: i } = F(a, o), { internalData: u } = ct(n), { groupedData: s } = Ut(u), { stackedXScaleGenerator: c, stackedYScaleGenerator: h } = Yr(
|
|
2678
2686
|
s,
|
|
2679
2687
|
r
|
|
2680
2688
|
);
|
|
2681
2689
|
return {
|
|
2682
|
-
allOptions:
|
|
2683
|
-
stackedXScaleGenerator:
|
|
2684
|
-
stackedYScaleGenerator:
|
|
2690
|
+
allOptions: i,
|
|
2691
|
+
stackedXScaleGenerator: c,
|
|
2692
|
+
stackedYScaleGenerator: h,
|
|
2685
2693
|
slots: q(t.slots)
|
|
2686
2694
|
};
|
|
2687
2695
|
}
|
|
2688
2696
|
});
|
|
2689
|
-
var
|
|
2697
|
+
var ha = function() {
|
|
2690
2698
|
var t = this, n = t._self._c;
|
|
2691
2699
|
return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "stacked-bar", options: t.allOptions, "x-scale": t.stackedXScaleGenerator, "y-scale": t.stackedYScaleGenerator, "data-j-stacked-bar-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
|
|
2692
2700
|
return [n("lume-bar-group", t._b({ attrs: { type: "stacked" } }, "lume-bar-group", r, !1))];
|
|
@@ -2695,25 +2703,25 @@ var fa = function() {
|
|
|
2695
2703
|
return [t._t(a, null, null, o || {})];
|
|
2696
2704
|
} };
|
|
2697
2705
|
})], null, !0) }, "lume-chart", t.$props, !1));
|
|
2698
|
-
},
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2706
|
+
}, _a = [], ma = /* @__PURE__ */ L(
|
|
2707
|
+
va,
|
|
2708
|
+
ha,
|
|
2709
|
+
_a,
|
|
2702
2710
|
!1,
|
|
2703
2711
|
null,
|
|
2704
2712
|
null,
|
|
2705
2713
|
null,
|
|
2706
2714
|
null
|
|
2707
2715
|
);
|
|
2708
|
-
const
|
|
2709
|
-
function
|
|
2716
|
+
const Fa = ma.exports;
|
|
2717
|
+
function Yt(e) {
|
|
2710
2718
|
function t(o) {
|
|
2711
|
-
let
|
|
2712
|
-
return o == null ? void 0 : o.reduce((u, s,
|
|
2719
|
+
let i = null;
|
|
2720
|
+
return o == null ? void 0 : o.reduce((u, s, c) => (s == null || s.value == null ? (i ? i.push(c) : i = [c], c === (o == null ? void 0 : o.length) - 1 && u.push(i)) : i && (u.push(i), i = null), u), []);
|
|
2713
2721
|
}
|
|
2714
|
-
function n(o,
|
|
2715
|
-
const
|
|
2716
|
-
return o >
|
|
2722
|
+
function n(o, i, u, s) {
|
|
2723
|
+
const l = Math.abs(o - i) / (u + 1) * (s + 1);
|
|
2724
|
+
return o > i ? o - l : o + l;
|
|
2717
2725
|
}
|
|
2718
2726
|
function r(o) {
|
|
2719
2727
|
return function(u) {
|
|
@@ -2722,27 +2730,27 @@ function Ut(e) {
|
|
|
2722
2730
|
);
|
|
2723
2731
|
};
|
|
2724
2732
|
}
|
|
2725
|
-
return { computedLineData:
|
|
2726
|
-
const
|
|
2733
|
+
return { computedLineData: f(() => e.value.map((o) => {
|
|
2734
|
+
const i = t(o.values);
|
|
2727
2735
|
return {
|
|
2728
2736
|
...o,
|
|
2729
|
-
isDashed: r(
|
|
2737
|
+
isDashed: r(i),
|
|
2730
2738
|
values: o.values.map((u, s) => {
|
|
2731
|
-
var
|
|
2732
|
-
const
|
|
2733
|
-
(
|
|
2739
|
+
var h, l;
|
|
2740
|
+
const c = i.find(
|
|
2741
|
+
(v) => v.includes(s)
|
|
2734
2742
|
);
|
|
2735
|
-
if (
|
|
2736
|
-
const
|
|
2737
|
-
let d = (
|
|
2743
|
+
if (c) {
|
|
2744
|
+
const v = c[0] - 1, p = c[c.length - 1] + 1;
|
|
2745
|
+
let d = (h = o.values[v]) == null ? void 0 : h.value, _ = (l = o.values[p]) == null ? void 0 : l.value;
|
|
2738
2746
|
return d == null && (d = _), _ == null && (_ = d), {
|
|
2739
2747
|
value: n(
|
|
2740
2748
|
d,
|
|
2741
2749
|
_,
|
|
2742
|
-
|
|
2743
|
-
|
|
2750
|
+
c.length,
|
|
2751
|
+
c.indexOf(s)
|
|
2744
2752
|
),
|
|
2745
|
-
label:
|
|
2753
|
+
label: jt
|
|
2746
2754
|
};
|
|
2747
2755
|
}
|
|
2748
2756
|
return u;
|
|
@@ -2750,10 +2758,10 @@ function Ut(e) {
|
|
|
2750
2758
|
};
|
|
2751
2759
|
})) };
|
|
2752
2760
|
}
|
|
2753
|
-
const
|
|
2754
|
-
components: { LumeLine:
|
|
2761
|
+
const ga = S({
|
|
2762
|
+
components: { LumeLine: Wn, LumePoint: Kn },
|
|
2755
2763
|
props: {
|
|
2756
|
-
|
|
2764
|
+
...$t(),
|
|
2757
2765
|
withPoints: {
|
|
2758
2766
|
type: Boolean,
|
|
2759
2767
|
default: !0
|
|
@@ -2764,80 +2772,85 @@ const ha = S({
|
|
|
2764
2772
|
}
|
|
2765
2773
|
},
|
|
2766
2774
|
setup(e) {
|
|
2767
|
-
const { data: t,
|
|
2768
|
-
if (t.value.every((
|
|
2775
|
+
const { data: t, options: n, xScale: r, yScale: a } = C(e), o = f(() => {
|
|
2776
|
+
if (t.value.every((v) => v.isDashed))
|
|
2769
2777
|
return t.value;
|
|
2770
|
-
const { computedLineData:
|
|
2771
|
-
return
|
|
2772
|
-
}),
|
|
2778
|
+
const { computedLineData: l } = Yt(t);
|
|
2779
|
+
return l.value;
|
|
2780
|
+
}), i = f(() => {
|
|
2773
2781
|
if (e.hoveredIndex === -1)
|
|
2774
2782
|
return;
|
|
2775
|
-
const
|
|
2783
|
+
const l = Vt(t.value, e.hoveredIndex);
|
|
2776
2784
|
return {
|
|
2777
|
-
d: `M ${
|
|
2778
|
-
V ${
|
|
2785
|
+
d: `M ${mt(r.value, e.hoveredIndex)},${a.value.range()[1]}
|
|
2786
|
+
V ${a.value(l)}`
|
|
2779
2787
|
};
|
|
2780
|
-
})
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2788
|
+
}), u = f(
|
|
2789
|
+
() => {
|
|
2790
|
+
var l;
|
|
2791
|
+
return ((l = n.value) == null ? void 0 : l.lineWidth) * 2 || void 0;
|
|
2792
|
+
}
|
|
2793
|
+
);
|
|
2794
|
+
function s(l, v) {
|
|
2795
|
+
var p, d;
|
|
2796
|
+
return l === 0 ? [] : [
|
|
2797
|
+
(p = v[l - 1]) == null ? void 0 : p.value,
|
|
2798
|
+
(d = v[l]) == null ? void 0 : d.value
|
|
2786
2799
|
];
|
|
2787
2800
|
}
|
|
2788
|
-
function
|
|
2789
|
-
var
|
|
2790
|
-
return (
|
|
2801
|
+
function c(l, v) {
|
|
2802
|
+
var p;
|
|
2803
|
+
return (p = v[l]) == null ? void 0 : p.value;
|
|
2791
2804
|
}
|
|
2792
|
-
function
|
|
2793
|
-
return e.hoveredIndex ===
|
|
2805
|
+
function h(l) {
|
|
2806
|
+
return e.hoveredIndex === l;
|
|
2794
2807
|
}
|
|
2795
2808
|
return {
|
|
2796
|
-
computedGroupData:
|
|
2797
|
-
getLineValues:
|
|
2798
|
-
getPointValue:
|
|
2799
|
-
isPointActive:
|
|
2800
|
-
overlayLineAttributes:
|
|
2809
|
+
computedGroupData: o,
|
|
2810
|
+
getLineValues: s,
|
|
2811
|
+
getPointValue: c,
|
|
2812
|
+
isPointActive: h,
|
|
2813
|
+
overlayLineAttributes: i,
|
|
2814
|
+
pointRadius: u
|
|
2801
2815
|
};
|
|
2802
2816
|
}
|
|
2803
2817
|
});
|
|
2804
|
-
var
|
|
2818
|
+
var ya = function() {
|
|
2805
2819
|
var t = this, n = t._self._c;
|
|
2806
2820
|
return t._self._setupProxy, n("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [n("path", t._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", t.overlayLineAttributes, !1)), t._l(t.computedGroupData, function(r) {
|
|
2807
2821
|
return n("g", { key: r.label, staticClass: "lume-line-group__group" }, [n("g", { staticClass: "lume-line-group__lines" }, t._l(r.values, function(a, o) {
|
|
2808
|
-
return n("lume-line", { key: `line-${o}`, attrs: {
|
|
2822
|
+
return n("lume-line", { key: `line-${o}`, attrs: { color: r.color, dashed: r.isDashed(o), index: o, transition: t.transition, values: t.getLineValues(o, r.values), width: t.options.lineWidth, "x-scale": t.xScale, "y-scale": t.yScale } });
|
|
2809
2823
|
}), 1), t.withPoints ? n("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, t._l(r.values, function(a, o) {
|
|
2810
|
-
return n("lume-point", { key: `point-${o}`, attrs: {
|
|
2824
|
+
return n("lume-point", { key: `point-${o}`, attrs: { active: t.isPointActive(o), color: r.color, index: o, radius: t.pointRadius, value: t.getPointValue(o, r.values), "x-scale": t.xScale, "y-scale": t.yScale } });
|
|
2811
2825
|
}), 1) : t._e()]);
|
|
2812
2826
|
})], 2);
|
|
2813
|
-
},
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2827
|
+
}, ba = [], xa = /* @__PURE__ */ L(
|
|
2828
|
+
ga,
|
|
2829
|
+
ya,
|
|
2830
|
+
ba,
|
|
2817
2831
|
!1,
|
|
2818
2832
|
null,
|
|
2819
|
-
"
|
|
2833
|
+
"0aa3a767",
|
|
2820
2834
|
null,
|
|
2821
2835
|
null
|
|
2822
2836
|
);
|
|
2823
|
-
const Kt =
|
|
2837
|
+
const Kt = xa.exports, Aa = {
|
|
2824
2838
|
margins: Z.VERTICAL,
|
|
2825
|
-
showAxes: !0,
|
|
2826
2839
|
startOnZero: !0,
|
|
2827
2840
|
withTooltip: !0,
|
|
2828
2841
|
xAxisOptions: {},
|
|
2829
2842
|
yAxisOptions: { gridLines: !0 }
|
|
2830
|
-
},
|
|
2831
|
-
components: { LumeChart:
|
|
2843
|
+
}, Oa = S({
|
|
2844
|
+
components: { LumeChart: Y, LumeLineGroup: Kt },
|
|
2832
2845
|
props: {
|
|
2833
|
-
...
|
|
2846
|
+
...V(null, !1)
|
|
2834
2847
|
},
|
|
2835
2848
|
setup(e, t) {
|
|
2836
|
-
const { options: n } =
|
|
2849
|
+
const { options: n } = C(e), { allOptions: r } = F(n, Aa);
|
|
2837
2850
|
return { allOptions: r, slots: q(t.slots) };
|
|
2838
2851
|
}
|
|
2839
2852
|
});
|
|
2840
|
-
var
|
|
2853
|
+
var Ta = function() {
|
|
2841
2854
|
var t = this, n = t._self._c;
|
|
2842
2855
|
return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "line", options: t.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
|
|
2843
2856
|
return [n("lume-line-group", t._b({}, "lume-line-group", r, !1))];
|
|
@@ -2846,72 +2859,72 @@ var xa = function() {
|
|
|
2846
2859
|
return [t._t(a, null, null, o || {})];
|
|
2847
2860
|
} };
|
|
2848
2861
|
})], null, !0) }, "lume-chart", t.$props, !1));
|
|
2849
|
-
},
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2862
|
+
}, $a = [], ka = /* @__PURE__ */ L(
|
|
2863
|
+
Oa,
|
|
2864
|
+
Ta,
|
|
2865
|
+
$a,
|
|
2853
2866
|
!1,
|
|
2854
2867
|
null,
|
|
2855
2868
|
null,
|
|
2856
2869
|
null,
|
|
2857
2870
|
null
|
|
2858
2871
|
);
|
|
2859
|
-
const
|
|
2860
|
-
function
|
|
2861
|
-
return { areaPathDefinition:
|
|
2872
|
+
const Ga = ka.exports;
|
|
2873
|
+
function Sa(e) {
|
|
2874
|
+
return { areaPathDefinition: f(
|
|
2862
2875
|
() => function(n, r) {
|
|
2863
2876
|
if (!n || !r)
|
|
2864
2877
|
return;
|
|
2865
2878
|
const a = e.value[0].values;
|
|
2866
|
-
return de().x((o,
|
|
2879
|
+
return de().x((o, i) => n(i)).y0(r(Math.min(...r.domain()))).y1((o) => r(o.value))(a);
|
|
2867
2880
|
}
|
|
2868
2881
|
) };
|
|
2869
2882
|
}
|
|
2870
|
-
const
|
|
2883
|
+
const La = {
|
|
2871
2884
|
margins: {
|
|
2872
2885
|
top: 0,
|
|
2873
2886
|
right: 0,
|
|
2874
2887
|
bottom: 0,
|
|
2875
2888
|
left: 0
|
|
2876
2889
|
},
|
|
2877
|
-
|
|
2890
|
+
withAxes: !1,
|
|
2878
2891
|
showArea: !0,
|
|
2879
2892
|
startOnZero: !0,
|
|
2880
2893
|
withLegend: !1,
|
|
2881
2894
|
tooltipOptions: {
|
|
2882
2895
|
showTitle: !1
|
|
2883
2896
|
}
|
|
2884
|
-
},
|
|
2885
|
-
components: { LumeChart:
|
|
2897
|
+
}, wa = S({
|
|
2898
|
+
components: { LumeChart: Y, LumeLineGroup: Kt },
|
|
2886
2899
|
props: {
|
|
2887
|
-
...
|
|
2888
|
-
...
|
|
2900
|
+
...Wt(null),
|
|
2901
|
+
...dt()
|
|
2889
2902
|
},
|
|
2890
2903
|
setup(e, t) {
|
|
2891
|
-
const { data: n, options: r } =
|
|
2904
|
+
const { data: n, options: r } = C(e), { internalData: a } = ct(n), { allOptions: o } = F(r, La), { computedLineData: i } = Yt(a), { areaPathDefinition: u } = Sa(i), s = f(() => a.value[0].color), c = f(
|
|
2892
2905
|
() => n.value[0].areaColor || s.value
|
|
2893
2906
|
);
|
|
2894
|
-
function
|
|
2907
|
+
function h(v) {
|
|
2895
2908
|
return {
|
|
2896
|
-
...
|
|
2909
|
+
...v,
|
|
2897
2910
|
noMinSize: !0
|
|
2898
2911
|
};
|
|
2899
2912
|
}
|
|
2900
|
-
function
|
|
2901
|
-
return Q().range([0, d.width]).domain([0,
|
|
2913
|
+
function l(v, p, d) {
|
|
2914
|
+
return Q().range([0, d.width]).domain([0, v[0].values.length - 1]);
|
|
2902
2915
|
}
|
|
2903
2916
|
return {
|
|
2904
2917
|
allOptions: o,
|
|
2905
|
-
areaColor:
|
|
2918
|
+
areaColor: c,
|
|
2906
2919
|
areaPathDefinition: u,
|
|
2907
2920
|
computedColor: s,
|
|
2908
|
-
getSparklineOptions:
|
|
2909
|
-
xScaleGenerator:
|
|
2921
|
+
getSparklineOptions: h,
|
|
2922
|
+
xScaleGenerator: l,
|
|
2910
2923
|
slots: q(t.slots)
|
|
2911
2924
|
};
|
|
2912
2925
|
}
|
|
2913
2926
|
});
|
|
2914
|
-
var
|
|
2927
|
+
var Ca = function() {
|
|
2915
2928
|
var t = this, n = t._self._c;
|
|
2916
2929
|
return t._self._setupProxy, n("lume-chart", t._b({ attrs: { "chart-type": "line", options: t.getSparklineOptions(t.allOptions), "x-scale": t.xScaleGenerator }, scopedSlots: t._u([{ key: "groups", fn: function(r) {
|
|
2917
2930
|
return [t.allOptions.showArea ? n("path", { class: [
|
|
@@ -2924,36 +2937,36 @@ var Sa = function() {
|
|
|
2924
2937
|
return [t._t(a, null, null, o || {})];
|
|
2925
2938
|
} };
|
|
2926
2939
|
})], null, !0) }, "lume-chart", t.$props, !1));
|
|
2927
|
-
},
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2940
|
+
}, Ia = [], Na = /* @__PURE__ */ L(
|
|
2941
|
+
wa,
|
|
2942
|
+
Ca,
|
|
2943
|
+
Ia,
|
|
2931
2944
|
!1,
|
|
2932
2945
|
null,
|
|
2933
|
-
"
|
|
2946
|
+
"76a94ce0",
|
|
2934
2947
|
null,
|
|
2935
2948
|
null
|
|
2936
2949
|
);
|
|
2937
|
-
const
|
|
2950
|
+
const Va = Na.exports;
|
|
2938
2951
|
export {
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2952
|
+
hn as L,
|
|
2953
|
+
Ma as a,
|
|
2954
|
+
Ha as b,
|
|
2955
|
+
ja as c,
|
|
2956
|
+
Fa as d,
|
|
2957
|
+
Ga as e,
|
|
2958
|
+
Va as f,
|
|
2959
|
+
Y as g,
|
|
2960
|
+
An as h,
|
|
2961
|
+
Sn as i,
|
|
2962
|
+
Nn as j,
|
|
2963
|
+
Tt as k,
|
|
2964
|
+
Ba as l,
|
|
2965
|
+
Wn as m,
|
|
2966
|
+
Kn as n,
|
|
2967
|
+
Nr as o,
|
|
2955
2968
|
kt as p,
|
|
2956
2969
|
Kt as q,
|
|
2957
|
-
|
|
2970
|
+
nr as r
|
|
2958
2971
|
};
|
|
2959
|
-
//# sourceMappingURL=
|
|
2972
|
+
//# sourceMappingURL=df7327e8.js.map
|