@adyen/lume 0.1.7 → 0.1.8
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 +17 -0
- package/dist/common/{d5a10e28.js → 25ccdedf.js} +2 -2
- package/dist/common/25ccdedf.js.map +1 -0
- package/dist/common/{6ff56de1.js → 55f09e14.js} +289 -274
- package/dist/common/55f09e14.js.map +1 -0
- package/dist/common/{dc78ff18.js → 6f5e659c.js} +2 -2
- package/dist/common/6f5e659c.js.map +1 -0
- package/dist/common/{b0ac241a.js → 97d72066.js} +2 -2
- package/dist/common/97d72066.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/scss/components/lume-tooltip.scss +10 -1
- package/dist/styles/main.css +1 -1
- package/package.json +1 -1
- package/dist/common/6ff56de1.js.map +0 -1
- package/dist/common/b0ac241a.js.map +0 -1
- package/dist/common/d5a10e28.js.map +0 -1
- package/dist/common/dc78ff18.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import D, { isRef as Bt, reactive as lt, computed as v, ref as $, watch as N, defineComponent as L, toRefs as w, onBeforeMount as oe, onMounted as V, onBeforeUnmount as
|
|
1
|
+
import D, { isRef as Bt, reactive as lt, computed as v, ref as $, watch as N, defineComponent as L, toRefs as w, onBeforeMount as oe, onMounted as V, onBeforeUnmount as gt, watchEffect as Mt, toRef as se, defineAsyncComponent as ht } from "vue";
|
|
2
2
|
import { sankeyLinkHorizontal as ie, sankey as le, sankeyJustify as ue } from "d3-sankey";
|
|
3
3
|
import { format as ce, ticks as de, scaleBand as J, scaleLinear as Q, line as fe, area as pe } from "d3";
|
|
4
4
|
import { createPopper as ve } from "@popperjs/core";
|
|
@@ -46,7 +46,7 @@ function xe(e, t) {
|
|
|
46
46
|
return n[1];
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function St(e, t) {
|
|
50
50
|
return t.reduce(function(n, r) {
|
|
51
51
|
return e.hasOwnProperty(r) && (n[r] = e[r]), n;
|
|
52
52
|
}, {});
|
|
@@ -72,9 +72,9 @@ var Ht = {}, Te = {}, Ae = {}, Oe = D.extend({
|
|
|
72
72
|
order: s
|
|
73
73
|
}, i = Object.keys(this.transports);
|
|
74
74
|
i.indexOf(n) === -1 && D.set(this.transports, n, []);
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
return
|
|
75
|
+
var u = this.$_getTransportIndex(l), h = this.transports[n].slice(0);
|
|
76
|
+
u === -1 ? h.push(l) : h[u] = l, this.transports[n] = xe(h, function(c, f) {
|
|
77
|
+
return c.order - f.order;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -121,7 +121,7 @@ var Ht = {}, Te = {}, Ae = {}, Oe = D.extend({
|
|
|
121
121
|
return -1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
}), P = new Oe(Ht), $e = 1,
|
|
124
|
+
}), P = new Oe(Ht), $e = 1, yt = D.extend({
|
|
125
125
|
name: "portal",
|
|
126
126
|
props: {
|
|
127
127
|
disabled: {
|
|
@@ -217,7 +217,7 @@ var Ht = {}, Te = {}, Ae = {}, Oe = D.extend({
|
|
|
217
217
|
key: "v-portal-placeholder"
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
220
|
+
}), bt = D.extend({
|
|
221
221
|
name: "portalTarget",
|
|
222
222
|
props: {
|
|
223
223
|
multiple: {
|
|
@@ -390,8 +390,8 @@ D.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 s =
|
|
394
|
-
s.slim = this.targetSlim, s.tag = this.targetTag, s.slotProps = this.targetSlotProps, s.name = this.to, this.portalTarget = new
|
|
393
|
+
var s = St(this.$props, Se);
|
|
394
|
+
s.slim = this.targetSlim, s.tag = this.targetTag, s.slotProps = this.targetSlotProps, s.name = this.to, this.portalTarget = new bt({
|
|
395
395
|
el: t,
|
|
396
396
|
parent: this.$parent || this,
|
|
397
397
|
propsData: s
|
|
@@ -410,8 +410,8 @@ D.extend({
|
|
|
410
410
|
if (!this.portalTarget)
|
|
411
411
|
return console.warn("[portal-vue] Target wasn't mounted"), t();
|
|
412
412
|
if (!this.$scopedSlots.manual) {
|
|
413
|
-
var n =
|
|
414
|
-
return t(
|
|
413
|
+
var n = St(this.$props, Le);
|
|
414
|
+
return t(yt, {
|
|
415
415
|
props: n,
|
|
416
416
|
attrs: this.$attrs,
|
|
417
417
|
on: this.$listeners,
|
|
@@ -424,7 +424,7 @@ D.extend({
|
|
|
424
424
|
return Array.isArray(r) && (r = r[0]), r || t();
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
var M = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(M || {}),
|
|
427
|
+
var M = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(M || {}), xt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(xt || {}), Tt = /* @__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))(Tt || {});
|
|
428
428
|
const T = {
|
|
429
429
|
HORIZONTAL: "horizontal",
|
|
430
430
|
VERTICAL: "vertical"
|
|
@@ -445,7 +445,7 @@ const T = {
|
|
|
445
445
|
bottom: 28,
|
|
446
446
|
left: 24
|
|
447
447
|
}
|
|
448
|
-
},
|
|
448
|
+
}, jt = "No data", Ce = 20, Ie = 0.33, Ne = 0.5, De = 1, At = [
|
|
449
449
|
"auto",
|
|
450
450
|
"auto-start",
|
|
451
451
|
"auto-end",
|
|
@@ -466,7 +466,7 @@ var W = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "
|
|
|
466
466
|
function Re() {
|
|
467
467
|
return process.env.NODE_ENV === "production";
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Ft(e) {
|
|
470
470
|
return (e == null ? void 0 : e.map(
|
|
471
471
|
(t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
|
|
472
472
|
).flat()) || [];
|
|
@@ -474,22 +474,22 @@ function jt(e) {
|
|
|
474
474
|
function ut(e) {
|
|
475
475
|
return e.length === 1;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function _t(e) {
|
|
478
478
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
479
479
|
}
|
|
480
480
|
function Vt(e, t) {
|
|
481
481
|
const n = structuredClone(e);
|
|
482
482
|
return Object.entries(t).forEach(([r, a]) => {
|
|
483
|
-
n[r] =
|
|
483
|
+
n[r] = _t(e[r]) && _t(a) ? Vt(e[r], a) : a;
|
|
484
484
|
}), n;
|
|
485
485
|
}
|
|
486
486
|
function Pe(e) {
|
|
487
|
-
return e != null &&
|
|
487
|
+
return e != null && _t(e) && "value" in e;
|
|
488
488
|
}
|
|
489
489
|
function U(e) {
|
|
490
490
|
return (e == null ? void 0 : e.bandwidth) !== void 0;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Ot(e) {
|
|
493
493
|
return U(e) ? e.bandwidth() : Math.max(...e.range()) / Math.max(...e.domain());
|
|
494
494
|
}
|
|
495
495
|
const Ee = (e, t) => {
|
|
@@ -548,25 +548,25 @@ function q(e) {
|
|
|
548
548
|
}
|
|
549
549
|
return e;
|
|
550
550
|
}
|
|
551
|
-
const
|
|
551
|
+
const je = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
|
|
552
552
|
(t, n) => t += (n &= 63) < 36 ? n.toString(36) : n < 62 ? (n - 26).toString(36).toUpperCase() : n > 62 ? "-" : "_",
|
|
553
553
|
""
|
|
554
554
|
);
|
|
555
555
|
var tt = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
556
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.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e))(tt || {});
|
|
557
|
-
const
|
|
557
|
+
const Fe = "[lume] ";
|
|
558
558
|
function ct(e, t = !0) {
|
|
559
|
-
t && Re() || console.warn(
|
|
559
|
+
t && Re() || console.warn(Fe + "Warning: " + e);
|
|
560
560
|
}
|
|
561
|
-
const Ve = W.Categorical, Ge = M.Skyblue, ze =
|
|
561
|
+
const Ve = W.Categorical, Ge = M.Skyblue, ze = xt.SkyTeal;
|
|
562
562
|
function We(e) {
|
|
563
563
|
return e === W.Divergent ? ze : Ge;
|
|
564
564
|
}
|
|
565
565
|
function Ze(e) {
|
|
566
|
-
return Object.values(
|
|
566
|
+
return Object.values(Tt).includes(e);
|
|
567
567
|
}
|
|
568
|
-
function
|
|
569
|
-
return t === W.Divergent ? Object.values(
|
|
568
|
+
function wt(e, t) {
|
|
569
|
+
return t === W.Divergent ? Object.values(xt).includes(e) : Object.values({ ...M, ...Tt }).includes(
|
|
570
570
|
e
|
|
571
571
|
);
|
|
572
572
|
}
|
|
@@ -582,7 +582,7 @@ function Ue(e, t) {
|
|
|
582
582
|
const n = (t + 1) * 10;
|
|
583
583
|
return `${e}-${n}`;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Ct(e, t, n) {
|
|
586
586
|
switch (t) {
|
|
587
587
|
default:
|
|
588
588
|
case W.Categorical:
|
|
@@ -594,7 +594,7 @@ function _t(e, t, n) {
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
function Ye(e, t, n = Ve, r) {
|
|
597
|
-
return
|
|
597
|
+
return wt(e, n) ? e : (r > 4 && (ct(tt.ColorLoop), r = r % 5), wt(t, n) ? Ct(t, n, r) : Ct(We(n), n, r));
|
|
598
598
|
}
|
|
599
599
|
function Ke(e) {
|
|
600
600
|
return e.map((t) => Pe(t) ? t : { value: t });
|
|
@@ -621,37 +621,37 @@ function dt(e, t, n, r, a) {
|
|
|
621
621
|
const o = lt({
|
|
622
622
|
width: 0,
|
|
623
623
|
height: 0
|
|
624
|
-
}), s =
|
|
624
|
+
}), s = je(12), l = v(() => {
|
|
625
625
|
var h;
|
|
626
626
|
return e.value.length > 5 && ct(tt.DatasetLength), (h = e.value) == null ? void 0 : h.map(
|
|
627
|
-
(
|
|
628
|
-
if (Je(
|
|
629
|
-
return
|
|
630
|
-
const p = Ke(
|
|
631
|
-
|
|
627
|
+
(c, f) => {
|
|
628
|
+
if (Je(c))
|
|
629
|
+
return c;
|
|
630
|
+
const p = Ke(c.values), d = Ye(
|
|
631
|
+
c.color,
|
|
632
632
|
n == null ? void 0 : n.value,
|
|
633
633
|
r == null ? void 0 : r.value.colorPalette,
|
|
634
634
|
f
|
|
635
635
|
);
|
|
636
636
|
return {
|
|
637
|
-
...
|
|
637
|
+
...c,
|
|
638
638
|
values: p,
|
|
639
639
|
color: d,
|
|
640
640
|
__internal: !0
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
643
|
);
|
|
644
|
-
}), i = v(() => Array.isArray(t.value) ? t.value : st(e.value).map((h,
|
|
645
|
-
function
|
|
646
|
-
const
|
|
647
|
-
D.set(o, "width", h.width), D.set(o, "height",
|
|
644
|
+
}), i = v(() => Array.isArray(t.value) ? t.value : st(e.value).map((h, c) => c));
|
|
645
|
+
function u(h) {
|
|
646
|
+
const c = (a == null ? void 0 : a.value) === T.HORIZONTAL ? st(e).length * (Ce * 2) : h.height;
|
|
647
|
+
D.set(o, "width", h.width), D.set(o, "height", c);
|
|
648
648
|
}
|
|
649
649
|
return {
|
|
650
650
|
chartID: s,
|
|
651
651
|
computedLabels: i,
|
|
652
652
|
containerSize: o,
|
|
653
653
|
internalData: l,
|
|
654
|
-
updateSize:
|
|
654
|
+
updateSize: u
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
657
|
const Zt = (e) => {
|
|
@@ -680,7 +680,7 @@ const Zt = (e) => {
|
|
|
680
680
|
default: () => ({})
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
|
-
function
|
|
683
|
+
function F(e, t) {
|
|
684
684
|
return { allOptions: v(() => {
|
|
685
685
|
const r = Bt(t) ? t == null ? void 0 : t.value : t;
|
|
686
686
|
return r ? Vt(r, e.value) : e.value;
|
|
@@ -693,19 +693,19 @@ function tn(e, t, n) {
|
|
|
693
693
|
if (!t.value)
|
|
694
694
|
return;
|
|
695
695
|
const i = t.value.reduce(
|
|
696
|
-
(h,
|
|
696
|
+
(h, c) => h + c.getBoundingClientRect().width,
|
|
697
697
|
0
|
|
698
|
-
),
|
|
699
|
-
r.value =
|
|
698
|
+
), u = Math.ceil(i / o.value);
|
|
699
|
+
r.value = u + u * Qe;
|
|
700
700
|
}
|
|
701
701
|
function l(i) {
|
|
702
702
|
if (!t.value)
|
|
703
703
|
return !0;
|
|
704
|
-
const
|
|
704
|
+
const u = t.value.length;
|
|
705
705
|
if (i === 0)
|
|
706
706
|
return !0;
|
|
707
|
-
const h = a.value /
|
|
708
|
-
return i %
|
|
707
|
+
const h = a.value / u, c = typeof n == "number" && n > 0 && n + 1 || Math.ceil(r.value / h);
|
|
708
|
+
return i % c === 0;
|
|
709
709
|
}
|
|
710
710
|
return N(t, s), { showTick: l };
|
|
711
711
|
}
|
|
@@ -864,7 +864,7 @@ const qt = {
|
|
|
864
864
|
x: "bottom",
|
|
865
865
|
y: "left"
|
|
866
866
|
}, pn = L({
|
|
867
|
-
components: { VuePortal:
|
|
867
|
+
components: { VuePortal: yt, VuePortalTarget: bt },
|
|
868
868
|
props: {
|
|
869
869
|
scale: {
|
|
870
870
|
type: Function,
|
|
@@ -895,13 +895,13 @@ const qt = {
|
|
|
895
895
|
...ft()
|
|
896
896
|
},
|
|
897
897
|
setup(e, t) {
|
|
898
|
-
const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: s } = w(e), l = lt({}), i = $(null),
|
|
898
|
+
const { scale: n, containerSize: r, hoveredIndex: a, options: o, orientation: s } = w(e), l = lt({}), i = $(null), u = $(!1), h = $(null), { chartID: c } = dt(), f = v(
|
|
899
899
|
() => e.type ? It[e.type] : e.position
|
|
900
900
|
), p = v(
|
|
901
901
|
() => e.type || (f.value === "left" ? "y" : "x")
|
|
902
902
|
), d = v(
|
|
903
903
|
() => p.value === "x" && s.value === T.VERTICAL || p.value === "y" && s.value === T.HORIZONTAL
|
|
904
|
-
), { allOptions: _ } =
|
|
904
|
+
), { allOptions: _ } = F(
|
|
905
905
|
o,
|
|
906
906
|
p.value === "x" ? en : nn
|
|
907
907
|
), { showTick: y } = tn(n, i, _.value.skip), m = v(
|
|
@@ -929,29 +929,29 @@ const qt = {
|
|
|
929
929
|
return _.value.withHover && d.value && a.value === k;
|
|
930
930
|
}
|
|
931
931
|
function B(k) {
|
|
932
|
-
return `${
|
|
932
|
+
return `${c}-${p.value}-tick--${k}`;
|
|
933
933
|
}
|
|
934
934
|
function C() {
|
|
935
|
-
|
|
935
|
+
u.value = !0;
|
|
936
936
|
const k = n.value.step ? "bandScale" : "linearScale", I = cn[`${p.value}-${dn[k]}`];
|
|
937
937
|
Object.entries(I(n, r, _) || []).forEach(
|
|
938
|
-
([H,
|
|
939
|
-
l[H] =
|
|
938
|
+
([H, j]) => {
|
|
939
|
+
l[H] = j;
|
|
940
940
|
}
|
|
941
|
-
),
|
|
941
|
+
), u.value = !1;
|
|
942
942
|
}
|
|
943
943
|
return oe(async () => {
|
|
944
944
|
C(), N(n, C, { flush: "sync" });
|
|
945
945
|
}), V(() => pt(h.value)), {
|
|
946
946
|
allOptions: _,
|
|
947
947
|
axisTransform: m,
|
|
948
|
-
chartID:
|
|
948
|
+
chartID: c,
|
|
949
949
|
computedPosition: f,
|
|
950
950
|
computedType: p,
|
|
951
951
|
formatTick: x,
|
|
952
952
|
getTickId: B,
|
|
953
953
|
isHovering: E,
|
|
954
|
-
isLoading:
|
|
954
|
+
isLoading: u,
|
|
955
955
|
mixins: l,
|
|
956
956
|
onTickMouseover: O,
|
|
957
957
|
root: h,
|
|
@@ -965,24 +965,24 @@ const qt = {
|
|
|
965
965
|
function S(e, t, n, r, a, o, s, l) {
|
|
966
966
|
var i = typeof e == "function" ? e.options : e;
|
|
967
967
|
t && (i.render = t, i.staticRenderFns = n, i._compiled = !0), r && (i.functional = !0), o && (i._scopeId = "data-v-" + o);
|
|
968
|
-
var
|
|
969
|
-
if (s ? (
|
|
968
|
+
var u;
|
|
969
|
+
if (s ? (u = function(f) {
|
|
970
970
|
f = f || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !f && typeof __VUE_SSR_CONTEXT__ < "u" && (f = __VUE_SSR_CONTEXT__), a && a.call(this, f), f && f._registeredComponents && f._registeredComponents.add(s);
|
|
971
|
-
}, i._ssrRegister =
|
|
971
|
+
}, i._ssrRegister = u) : a && (u = l ? function() {
|
|
972
972
|
a.call(
|
|
973
973
|
this,
|
|
974
974
|
(i.functional ? this.parent : this).$root.$options.shadowRoot
|
|
975
975
|
);
|
|
976
|
-
} : a),
|
|
976
|
+
} : a), u)
|
|
977
977
|
if (i.functional) {
|
|
978
|
-
i._injectStyles =
|
|
978
|
+
i._injectStyles = u;
|
|
979
979
|
var h = i.render;
|
|
980
980
|
i.render = function(p, d) {
|
|
981
|
-
return
|
|
981
|
+
return u.call(d), h(p, d);
|
|
982
982
|
};
|
|
983
983
|
} else {
|
|
984
|
-
var
|
|
985
|
-
i.beforeCreate =
|
|
984
|
+
var c = i.beforeCreate;
|
|
985
|
+
i.beforeCreate = c ? [].concat(c, u) : [u];
|
|
986
986
|
}
|
|
987
987
|
return {
|
|
988
988
|
exports: e,
|
|
@@ -1020,7 +1020,7 @@ function gn() {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
return V(() => {
|
|
1022
1022
|
n.observe(e.value);
|
|
1023
|
-
}),
|
|
1023
|
+
}), gt(() => {
|
|
1024
1024
|
n.unobserve(e.value);
|
|
1025
1025
|
}), { resizeState: t, resizeRef: e };
|
|
1026
1026
|
}
|
|
@@ -1058,13 +1058,13 @@ const yn = {
|
|
|
1058
1058
|
return Mt(() => {
|
|
1059
1059
|
if (!a.value)
|
|
1060
1060
|
return;
|
|
1061
|
-
const { width:
|
|
1062
|
-
if (!
|
|
1061
|
+
const { width: u } = s.dimensions, { height: h } = a.value.getBoundingClientRect();
|
|
1062
|
+
if (!u || !h)
|
|
1063
1063
|
return;
|
|
1064
|
-
const
|
|
1065
|
-
width:
|
|
1064
|
+
const c = u - l.value.left - l.value.right, f = h - l.value.top - l.value.bottom, p = {
|
|
1065
|
+
width: c > 0 ? c : 0,
|
|
1066
1066
|
height: f > 0 ? f : 0,
|
|
1067
|
-
outerWidth:
|
|
1067
|
+
outerWidth: u,
|
|
1068
1068
|
outerHeight: h
|
|
1069
1069
|
};
|
|
1070
1070
|
t.emit("resize", p);
|
|
@@ -1129,7 +1129,7 @@ const wn = Sn.exports, Cn = L({
|
|
|
1129
1129
|
position: {
|
|
1130
1130
|
type: String,
|
|
1131
1131
|
default: "auto",
|
|
1132
|
-
validator: (e) =>
|
|
1132
|
+
validator: (e) => At.includes(e)
|
|
1133
1133
|
},
|
|
1134
1134
|
fixedPositioning: {
|
|
1135
1135
|
type: Boolean,
|
|
@@ -1143,17 +1143,21 @@ const wn = Sn.exports, Cn = L({
|
|
|
1143
1143
|
type: [String, Number],
|
|
1144
1144
|
default: null
|
|
1145
1145
|
},
|
|
1146
|
+
summary: {
|
|
1147
|
+
type: String,
|
|
1148
|
+
default: null
|
|
1149
|
+
},
|
|
1146
1150
|
...ft()
|
|
1147
1151
|
},
|
|
1148
1152
|
setup(e) {
|
|
1149
|
-
const t = $(null), {
|
|
1153
|
+
const t = $(null), { items: n, options: r } = w(e), a = $(null), { allOptions: o } = F(r), s = v(
|
|
1150
1154
|
() => {
|
|
1151
|
-
var
|
|
1152
|
-
return (
|
|
1155
|
+
var _;
|
|
1156
|
+
return (_ = o.value.fixedPositioning) != null ? _ : e.fixedPositioning;
|
|
1153
1157
|
}
|
|
1154
|
-
),
|
|
1155
|
-
() =>
|
|
1156
|
-
),
|
|
1158
|
+
), l = v(
|
|
1159
|
+
() => s.value ? "fixed" : "absolute"
|
|
1160
|
+
), i = v(() => [
|
|
1157
1161
|
{
|
|
1158
1162
|
name: "computeStyles",
|
|
1159
1163
|
options: {
|
|
@@ -1162,52 +1166,63 @@ const wn = Sn.exports, Cn = L({
|
|
|
1162
1166
|
},
|
|
1163
1167
|
{
|
|
1164
1168
|
name: "offset",
|
|
1165
|
-
options: { offset: [0,
|
|
1169
|
+
options: { offset: [0, o.value.offset || 8] }
|
|
1166
1170
|
},
|
|
1167
1171
|
...e.modifiers || []
|
|
1168
|
-
]),
|
|
1169
|
-
() =>
|
|
1170
|
-
),
|
|
1171
|
-
|
|
1172
|
-
|
|
1172
|
+
]), u = v(
|
|
1173
|
+
() => o.value.showTitle !== !1 && e.title != null
|
|
1174
|
+
), h = v(() => Zt(o.value.valueFormat)), c = v(
|
|
1175
|
+
() => {
|
|
1176
|
+
var _, y;
|
|
1177
|
+
return ((_ = n.value) == null ? void 0 : _.find((m) => m.isSummary)) || {
|
|
1178
|
+
label: (y = o.value.summary) != null ? y : e.summary
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
);
|
|
1182
|
+
function f() {
|
|
1183
|
+
e.targetElement && t.value && (a.value = ve(e.targetElement, t.value, {
|
|
1173
1184
|
placement: e.position,
|
|
1174
|
-
strategy:
|
|
1175
|
-
modifiers:
|
|
1185
|
+
strategy: l.value,
|
|
1186
|
+
modifiers: i.value
|
|
1176
1187
|
}));
|
|
1177
1188
|
}
|
|
1178
|
-
function
|
|
1179
|
-
|
|
1189
|
+
function p() {
|
|
1190
|
+
a.value && a.value.destroy();
|
|
1180
1191
|
}
|
|
1181
|
-
function
|
|
1182
|
-
!
|
|
1183
|
-
|
|
1184
|
-
}() :
|
|
1192
|
+
function d() {
|
|
1193
|
+
!a.value || (t.value.classList.add("lume-tooltip--animated"), e.targetElement ? function() {
|
|
1194
|
+
a.value.state.elements.reference = e.targetElement, a.value.update();
|
|
1195
|
+
}() : p());
|
|
1185
1196
|
}
|
|
1186
|
-
return N(() => e.targetElement,
|
|
1187
|
-
allModifiers:
|
|
1188
|
-
allOptions:
|
|
1189
|
-
|
|
1190
|
-
|
|
1197
|
+
return N(() => e.targetElement, d), V(f), gt(p), {
|
|
1198
|
+
allModifiers: i,
|
|
1199
|
+
allOptions: o,
|
|
1200
|
+
summaryItem: c,
|
|
1201
|
+
formatValue: h,
|
|
1202
|
+
popper: a,
|
|
1191
1203
|
root: t,
|
|
1192
|
-
showTitle:
|
|
1193
|
-
strategy:
|
|
1204
|
+
showTitle: u,
|
|
1205
|
+
strategy: l
|
|
1194
1206
|
};
|
|
1195
1207
|
}
|
|
1196
1208
|
});
|
|
1197
1209
|
var In = function() {
|
|
1198
1210
|
var t = this, n = t._self._c;
|
|
1199
1211
|
return t._self._setupProxy, n("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", attrs: { "data-j-tooltip": "" } }, [t._t("default", function() {
|
|
1200
|
-
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) {
|
|
1212
|
+
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.summaryItem.label ? [n("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [n("span", [t._v(" " + t._s(t.summaryItem.label) + " ")]), t.summaryItem.value ? n("strong", { staticClass: "lume-tooltip__value" }, [t._v(" " + t._s(t.formatValue(t.summaryItem.value)) + " ")]) : t._e()]), t._m(0)] : t._e(), t._l(t.items, function(r) {
|
|
1201
1213
|
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(t.formatValue(r.value)) + " ")])]);
|
|
1202
|
-
}),
|
|
1214
|
+
})], 2)];
|
|
1203
1215
|
})], 2);
|
|
1204
|
-
}, Nn = [
|
|
1216
|
+
}, Nn = [function() {
|
|
1217
|
+
var e = this, t = e._self._c;
|
|
1218
|
+
return e._self._setupProxy, t("li", { staticClass: "lume-tooltip__break" }, [t("hr")]);
|
|
1219
|
+
}], Dn = /* @__PURE__ */ S(
|
|
1205
1220
|
Cn,
|
|
1206
1221
|
In,
|
|
1207
1222
|
Nn,
|
|
1208
1223
|
!1,
|
|
1209
1224
|
null,
|
|
1210
|
-
"
|
|
1225
|
+
"e6deede1",
|
|
1211
1226
|
null,
|
|
1212
1227
|
null
|
|
1213
1228
|
);
|
|
@@ -1266,9 +1281,9 @@ const Bn = L({
|
|
|
1266
1281
|
setup(e) {
|
|
1267
1282
|
const { x: t, y: n, width: r, height: a, transition: o, classList: s } = w(e), l = $(null), i = v(
|
|
1268
1283
|
() => typeof s.value == "string" ? [s.value] : s.value
|
|
1269
|
-
),
|
|
1284
|
+
), u = v(() => o.value === "width"), h = v(
|
|
1270
1285
|
() => o.value === "height"
|
|
1271
|
-
),
|
|
1286
|
+
), c = En(t, n, r, a), { computedX: f, computedY: p, shouldHaveMinWidth: d, shouldHaveMinHeight: _ } = Pn(t, n, r, a), y = v(() => d.value ? 1 : (u.value ? c.computedWidth : r).value), m = v(() => _.value ? 1 : (h.value ? c.computedHeight : a).value), g = u.value || h.value ? c.transformOrigin : null;
|
|
1272
1287
|
return V(() => pt(l.value)), {
|
|
1273
1288
|
computedClasses: i,
|
|
1274
1289
|
computedWidth: y,
|
|
@@ -1276,7 +1291,7 @@ const Bn = L({
|
|
|
1276
1291
|
computedX: f,
|
|
1277
1292
|
computedY: p,
|
|
1278
1293
|
root: l,
|
|
1279
|
-
shouldTransitionWidth:
|
|
1294
|
+
shouldTransitionWidth: u,
|
|
1280
1295
|
shouldTransitionHeight: h,
|
|
1281
1296
|
transformOrigin: g
|
|
1282
1297
|
};
|
|
@@ -1293,7 +1308,7 @@ var Mn = function() {
|
|
|
1293
1308
|
},
|
|
1294
1309
|
...t.computedClasses
|
|
1295
1310
|
], style: { transformOrigin: t.transformOrigin }, attrs: { x: t.computedX, y: t.computedY, width: t.computedWidth, height: t.computedHeight, "data-j-bar": "" } });
|
|
1296
|
-
}, Hn = [],
|
|
1311
|
+
}, Hn = [], jn = /* @__PURE__ */ S(
|
|
1297
1312
|
Bn,
|
|
1298
1313
|
Mn,
|
|
1299
1314
|
Hn,
|
|
@@ -1303,7 +1318,7 @@ var Mn = function() {
|
|
|
1303
1318
|
null,
|
|
1304
1319
|
null
|
|
1305
1320
|
);
|
|
1306
|
-
const
|
|
1321
|
+
const $t = jn.exports, Fn = 1, Vn = 2, Gn = L({
|
|
1307
1322
|
props: {
|
|
1308
1323
|
pathDefinition: {
|
|
1309
1324
|
type: String,
|
|
@@ -1336,7 +1351,7 @@ const kt = Fn.exports, jn = 1, Vn = 2, Gn = L({
|
|
|
1336
1351
|
},
|
|
1337
1352
|
setup(e) {
|
|
1338
1353
|
const t = $(null), n = v(
|
|
1339
|
-
() =>
|
|
1354
|
+
() => Fn / (Be(e.xScale) - 1)
|
|
1340
1355
|
), r = v(() => e.index < 2 ? 0 : e.transition && (e.index - 1) * n.value);
|
|
1341
1356
|
return V(() => pt(t.value)), {
|
|
1342
1357
|
animationDelay: r,
|
|
@@ -1397,7 +1412,7 @@ const qn = Zn.exports, Xn = 4, Un = L({
|
|
|
1397
1412
|
}
|
|
1398
1413
|
},
|
|
1399
1414
|
setup(e) {
|
|
1400
|
-
const t = $(null), n = v(() =>
|
|
1415
|
+
const t = $(null), n = v(() => Ot(e.xScale) / 2), r = v(() => e.xScale.domain()), a = v(
|
|
1401
1416
|
() => U(e.xScale) ? e.xScale(r.value[e.index]) + n.value : e.xScale(e.index)
|
|
1402
1417
|
), o = v(() => e.yScale(e.value)), s = v(() => e.radius / 2);
|
|
1403
1418
|
return V(() => pt(t.value)), { cx: a, cy: o, root: t, strokeWidth: s };
|
|
@@ -1416,7 +1431,7 @@ var Yn = function() {
|
|
|
1416
1431
|
null,
|
|
1417
1432
|
null
|
|
1418
1433
|
);
|
|
1419
|
-
const Qn = Jn.exports,
|
|
1434
|
+
const Qn = Jn.exports, kt = () => ({
|
|
1420
1435
|
data: {
|
|
1421
1436
|
type: Array,
|
|
1422
1437
|
required: !0
|
|
@@ -1442,9 +1457,9 @@ const Qn = Jn.exports, Lt = () => ({
|
|
|
1442
1457
|
default: () => ({})
|
|
1443
1458
|
}
|
|
1444
1459
|
}), tr = L({
|
|
1445
|
-
components: { LumeBar:
|
|
1460
|
+
components: { LumeBar: $t },
|
|
1446
1461
|
props: {
|
|
1447
|
-
...
|
|
1462
|
+
...kt(),
|
|
1448
1463
|
orientation: {
|
|
1449
1464
|
type: String,
|
|
1450
1465
|
default: T.VERTICAL
|
|
@@ -1452,8 +1467,8 @@ const Qn = Jn.exports, Lt = () => ({
|
|
|
1452
1467
|
},
|
|
1453
1468
|
setup(e, t) {
|
|
1454
1469
|
const { data: n, orientation: r, xScale: a, yScale: o } = w(e), s = v(() => st(n));
|
|
1455
|
-
function l(
|
|
1456
|
-
const h = r.value === T.HORIZONTAL ? o.value : a.value,
|
|
1470
|
+
function l(u) {
|
|
1471
|
+
const h = r.value === T.HORIZONTAL ? o.value : a.value, c = h.domain(), f = Ot(h), p = U(h) ? h(c[u]) : h(u) - f / 2;
|
|
1457
1472
|
return r.value === T.HORIZONTAL ? {
|
|
1458
1473
|
width: Math.max(...a.value.range()),
|
|
1459
1474
|
height: f,
|
|
@@ -1464,8 +1479,8 @@ const Qn = Jn.exports, Lt = () => ({
|
|
|
1464
1479
|
transform: `translate(${p}, 0)`
|
|
1465
1480
|
};
|
|
1466
1481
|
}
|
|
1467
|
-
function i(
|
|
1468
|
-
t.emit("mouseover",
|
|
1482
|
+
function i(u) {
|
|
1483
|
+
t.emit("mouseover", u);
|
|
1469
1484
|
}
|
|
1470
1485
|
return { getOverlayBarAttributes: l, handleMouseover: i, overlayData: s };
|
|
1471
1486
|
}
|
|
@@ -1500,15 +1515,15 @@ const ar = rr.exports, or = () => ({
|
|
|
1500
1515
|
function sr(e, t, n, r, a) {
|
|
1501
1516
|
const o = $(null), s = $(null);
|
|
1502
1517
|
function l() {
|
|
1503
|
-
const { width: i, height:
|
|
1504
|
-
!i && !
|
|
1518
|
+
const { width: i, height: u } = n;
|
|
1519
|
+
!i && !u || !t.value || !e.value || (r.value === T.HORIZONTAL ? (o.value = Dt(
|
|
1505
1520
|
e.value,
|
|
1506
1521
|
i,
|
|
1507
1522
|
r.value,
|
|
1508
1523
|
a.value.startOnZero
|
|
1509
|
-
), s.value = Nt(t.value,
|
|
1524
|
+
), s.value = Nt(t.value, u)) : (o.value = Nt(t.value, i), s.value = Dt(
|
|
1510
1525
|
e.value,
|
|
1511
|
-
|
|
1526
|
+
u,
|
|
1512
1527
|
r.value,
|
|
1513
1528
|
a.value.startOnZero
|
|
1514
1529
|
)));
|
|
@@ -1520,16 +1535,16 @@ function Nt(e, t) {
|
|
|
1520
1535
|
return J().range(n).domain(e);
|
|
1521
1536
|
}
|
|
1522
1537
|
function Dt(e, t, n, r) {
|
|
1523
|
-
const a =
|
|
1538
|
+
const a = Ft(e).filter((h) => h != null), o = [0, t];
|
|
1524
1539
|
if (a.length === 0)
|
|
1525
1540
|
return Q().range(o).domain([0, 0]).nice();
|
|
1526
|
-
const s = Math.min(...a), l = r && s > 0 ? 0 : s, i = Math.max(...a),
|
|
1527
|
-
return Q().range(o).domain(
|
|
1541
|
+
const s = Math.min(...a), l = r && s > 0 ? 0 : s, i = Math.max(...a), u = n === T.HORIZONTAL ? [l, i] : [i, l];
|
|
1542
|
+
return Q().range(o).domain(u).nice();
|
|
1528
1543
|
}
|
|
1529
1544
|
function Rt(e) {
|
|
1530
1545
|
return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
|
|
1531
1546
|
}
|
|
1532
|
-
function
|
|
1547
|
+
function mt(e, t) {
|
|
1533
1548
|
return U(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
|
|
1534
1549
|
}
|
|
1535
1550
|
function it(e, t, {
|
|
@@ -1565,7 +1580,7 @@ const G = (e, t = !0, n = !0) => ({
|
|
|
1565
1580
|
});
|
|
1566
1581
|
function lr(e) {
|
|
1567
1582
|
return { hasNegativeValues: v(
|
|
1568
|
-
() =>
|
|
1583
|
+
() => Ft(e.value).some((n) => n < 0)
|
|
1569
1584
|
) };
|
|
1570
1585
|
}
|
|
1571
1586
|
function ur(e, t, n, r) {
|
|
@@ -1573,18 +1588,18 @@ function ur(e, t, n, r) {
|
|
|
1573
1588
|
() => r.value === T.HORIZONTAL
|
|
1574
1589
|
), o = v(
|
|
1575
1590
|
() => {
|
|
1576
|
-
var
|
|
1577
|
-
return e.height - (a != null && a.value ? 0 : ((
|
|
1591
|
+
var u;
|
|
1592
|
+
return e.height - (a != null && a.value ? 0 : ((u = n.value) == null ? void 0 : u.call(n, 0)) || 0);
|
|
1578
1593
|
}
|
|
1579
1594
|
), s = v(
|
|
1580
1595
|
() => {
|
|
1581
|
-
var
|
|
1582
|
-
return a != null && a.value ? ((
|
|
1596
|
+
var u;
|
|
1597
|
+
return a != null && a.value ? ((u = t.value) == null ? void 0 : u.call(t, 0)) || 0 : e.width;
|
|
1583
1598
|
}
|
|
1584
1599
|
), l = v(
|
|
1585
1600
|
() => {
|
|
1586
|
-
var
|
|
1587
|
-
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((
|
|
1601
|
+
var u;
|
|
1602
|
+
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((u = n.value) == null ? void 0 : u.call(n, 0)) || 0})`;
|
|
1588
1603
|
}
|
|
1589
1604
|
);
|
|
1590
1605
|
return { negativeBarAttributes: v(() => ({
|
|
@@ -1605,22 +1620,22 @@ const Pt = {
|
|
|
1605
1620
|
};
|
|
1606
1621
|
function dr(e, t, n, r, a) {
|
|
1607
1622
|
const o = v(() => (l) => {
|
|
1608
|
-
var
|
|
1623
|
+
var c;
|
|
1609
1624
|
let i = a.value && Pt[a.value] ? Pt[a.value](e.value, l) : Gt(e.value, l);
|
|
1610
|
-
((
|
|
1611
|
-
const
|
|
1625
|
+
((c = a == null ? void 0 : a.value) == null ? void 0 : c.includes("bar")) && i < 0 && (i = 0);
|
|
1626
|
+
const u = r.value === T.HORIZONTAL ? t.value(i) : mt(t.value, l), h = r.value === T.HORIZONTAL ? mt(n.value, l) : n.value(i);
|
|
1612
1627
|
return {
|
|
1613
|
-
cx:
|
|
1628
|
+
cx: u,
|
|
1614
1629
|
cy: h
|
|
1615
1630
|
};
|
|
1616
1631
|
});
|
|
1617
1632
|
function s(l) {
|
|
1618
|
-
return e.value.map(({ color: i, label:
|
|
1619
|
-
var
|
|
1633
|
+
return e.value.map(({ color: i, label: u, values: h }) => {
|
|
1634
|
+
var c, f, p, d, _;
|
|
1620
1635
|
return {
|
|
1621
|
-
color: ((
|
|
1622
|
-
label:
|
|
1623
|
-
value: (_ = (d = (f = h[l]) == null ? void 0 : f.label) != null ? d : (p = h[l]) == null ? void 0 : p.value) != null ? _ :
|
|
1636
|
+
color: ((c = h[l]) == null ? void 0 : c.color) || i,
|
|
1637
|
+
label: u,
|
|
1638
|
+
value: (_ = (d = (f = h[l]) == null ? void 0 : f.label) != null ? d : (p = h[l]) == null ? void 0 : p.value) != null ? _ : jt
|
|
1624
1639
|
};
|
|
1625
1640
|
});
|
|
1626
1641
|
}
|
|
@@ -1640,13 +1655,13 @@ function fr() {
|
|
|
1640
1655
|
const pr = L({
|
|
1641
1656
|
components: {
|
|
1642
1657
|
LumeAxis: mn,
|
|
1643
|
-
LumeBar:
|
|
1658
|
+
LumeBar: $t,
|
|
1644
1659
|
LumeChartContainer: On,
|
|
1645
1660
|
LumeChartLegend: wn,
|
|
1646
1661
|
LumeOverlayGroup: ar,
|
|
1647
1662
|
LumeTooltip: Rn,
|
|
1648
|
-
VuePortal:
|
|
1649
|
-
VuePortalTarget:
|
|
1663
|
+
VuePortal: yt,
|
|
1664
|
+
VuePortalTarget: bt
|
|
1650
1665
|
},
|
|
1651
1666
|
props: {
|
|
1652
1667
|
...G(),
|
|
@@ -1656,12 +1671,12 @@ const pr = L({
|
|
|
1656
1671
|
}
|
|
1657
1672
|
},
|
|
1658
1673
|
setup(e, t) {
|
|
1659
|
-
const { data: n, labels: r, color: a, options: o, orientation: s, chartType: l } = w(e), i = $(-1),
|
|
1674
|
+
const { data: n, labels: r, color: a, options: o, orientation: s, chartType: l } = w(e), i = $(-1), u = $(null), h = $(null), { allOptions: c } = F(o), { internalData: f, computedLabels: p, containerSize: d, updateSize: _, chartID: y } = dt(n, r, a, c, s), { xScale: m, yScale: g } = sr(
|
|
1660
1675
|
f,
|
|
1661
1676
|
p,
|
|
1662
1677
|
d,
|
|
1663
1678
|
s,
|
|
1664
|
-
|
|
1679
|
+
c
|
|
1665
1680
|
), b = v(() => {
|
|
1666
1681
|
var A;
|
|
1667
1682
|
return e.xScale ? Rt(e.xScale) ? e.xScale : (A = e.xScale) == null ? void 0 : A.call(e, f.value, r.value, d) : m.value;
|
|
@@ -1669,30 +1684,30 @@ const pr = L({
|
|
|
1669
1684
|
var A;
|
|
1670
1685
|
return e.yScale ? Rt(e.yScale) ? e.yScale : (A = e.yScale) == null ? void 0 : A.call(e, f.value, r.value, d) : g.value;
|
|
1671
1686
|
}), O = v(() => ({
|
|
1672
|
-
...
|
|
1687
|
+
...c.value.xAxisOptions,
|
|
1673
1688
|
withHover: s.value === T.VERTICAL
|
|
1674
1689
|
})), E = v(() => ({
|
|
1675
|
-
...
|
|
1690
|
+
...c.value.yAxisOptions,
|
|
1676
1691
|
withHover: s.value === T.HORIZONTAL
|
|
1677
1692
|
})), B = v(() => {
|
|
1678
1693
|
var A;
|
|
1679
|
-
return (A =
|
|
1694
|
+
return (A = c.value.xAxisOptions) == null ? void 0 : A.title;
|
|
1680
1695
|
}), C = v(() => {
|
|
1681
1696
|
var A;
|
|
1682
|
-
return (A =
|
|
1697
|
+
return (A = c.value.yAxisOptions) == null ? void 0 : A.title;
|
|
1683
1698
|
}), k = v(() => {
|
|
1684
1699
|
var A;
|
|
1685
|
-
return ((A =
|
|
1700
|
+
return ((A = c.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && B.value;
|
|
1686
1701
|
}), I = v(() => {
|
|
1687
1702
|
var A;
|
|
1688
|
-
return ((A =
|
|
1703
|
+
return ((A = c.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && C.value;
|
|
1689
1704
|
}), H = v(
|
|
1690
1705
|
() => {
|
|
1691
1706
|
var A;
|
|
1692
|
-
return
|
|
1707
|
+
return c.value.withTooltip !== !1 && !((A = c.value.tooltipOptions) != null && A.targetElement);
|
|
1693
1708
|
}
|
|
1694
|
-
),
|
|
1695
|
-
const A = [], { noBaseScales: X } =
|
|
1709
|
+
), j = v(() => {
|
|
1710
|
+
const A = [], { noBaseScales: X } = c.value;
|
|
1696
1711
|
return X || A.push(() => !!(b.value && x.value)), A.every((rt) => rt() === !0);
|
|
1697
1712
|
}), { hasNegativeValues: et } = lr(f), { negativeBarAttributes: nt } = ur(
|
|
1698
1713
|
d,
|
|
@@ -1708,14 +1723,14 @@ const pr = L({
|
|
|
1708
1723
|
), ne = v(
|
|
1709
1724
|
() => {
|
|
1710
1725
|
var A;
|
|
1711
|
-
return ((A =
|
|
1726
|
+
return ((A = c.value.tooltipOptions) == null ? void 0 : A.position) || "top";
|
|
1712
1727
|
}
|
|
1713
1728
|
);
|
|
1714
1729
|
function re(A) {
|
|
1715
1730
|
var rt;
|
|
1716
|
-
|
|
1717
|
-
const X = (rt =
|
|
1718
|
-
|
|
1731
|
+
c.value.withHover !== !1 && (i.value = A);
|
|
1732
|
+
const X = (rt = c.value.tooltipOptions) != null && rt.targetElement ? c.value.tooltipOptions.targetElement === "self" ? h.value.$el : c.value.tooltipOptions.targetElement : u.value[A];
|
|
1733
|
+
c.value.withTooltip !== !1 && vt(X);
|
|
1719
1734
|
}
|
|
1720
1735
|
function ae() {
|
|
1721
1736
|
Qt(), i.value = -1;
|
|
@@ -1724,7 +1739,7 @@ const pr = L({
|
|
|
1724
1739
|
var A, X;
|
|
1725
1740
|
(X = (A = t.slots).groups) != null && X.call(A) || console.error('"groups" `<slot>` must have content.');
|
|
1726
1741
|
}), {
|
|
1727
|
-
allOptions:
|
|
1742
|
+
allOptions: c,
|
|
1728
1743
|
internalData: f,
|
|
1729
1744
|
chartContainer: h,
|
|
1730
1745
|
computedLabels: p,
|
|
@@ -1739,13 +1754,13 @@ const pr = L({
|
|
|
1739
1754
|
handleMouseleave: ae,
|
|
1740
1755
|
hasNegativeValues: et,
|
|
1741
1756
|
hoveredIndex: i,
|
|
1742
|
-
isReady:
|
|
1757
|
+
isReady: j,
|
|
1743
1758
|
mouseOverHandler: re,
|
|
1744
1759
|
negativeBarAttributes: nt,
|
|
1745
1760
|
shouldGenerateTooltipAnchors: H,
|
|
1746
1761
|
showXAxisTitle: k,
|
|
1747
1762
|
showYAxisTitle: I,
|
|
1748
|
-
tooltipAnchor:
|
|
1763
|
+
tooltipAnchor: u,
|
|
1749
1764
|
tooltipAnchorRadius: De,
|
|
1750
1765
|
tooltipConfig: z,
|
|
1751
1766
|
tooltipPosition: ne,
|
|
@@ -1846,7 +1861,7 @@ var yr = function() {
|
|
|
1846
1861
|
const Tr = xr.exports, Xt = "03", K = 8, Ar = 200;
|
|
1847
1862
|
function Or(e, t, n) {
|
|
1848
1863
|
let r = !1;
|
|
1849
|
-
|
|
1864
|
+
gt(() => {
|
|
1850
1865
|
r = !0;
|
|
1851
1866
|
});
|
|
1852
1867
|
const a = v(() => Math.max(...n.value.nodes.map(({ depth: p }) => p))), o = v(() => {
|
|
@@ -1907,7 +1922,7 @@ function Or(e, t, n) {
|
|
|
1907
1922
|
};
|
|
1908
1923
|
requestAnimationFrame(b);
|
|
1909
1924
|
}
|
|
1910
|
-
function
|
|
1925
|
+
function u({ values: p, updatingNodes: d = [], isEntering: _ = !1 }) {
|
|
1911
1926
|
const y = new Set(d), m = (b) => _ ? b.value : p.get(R(b)), g = (b) => _ ? p.get(R(b)) : b.value;
|
|
1912
1927
|
n.value.nodes.filter((b) => y.has(b)).forEach((b) => {
|
|
1913
1928
|
i(
|
|
@@ -1932,7 +1947,7 @@ function Or(e, t, n) {
|
|
|
1932
1947
|
};
|
|
1933
1948
|
});
|
|
1934
1949
|
}
|
|
1935
|
-
function
|
|
1950
|
+
function c(p) {
|
|
1936
1951
|
return p.map((d) => ({
|
|
1937
1952
|
id: `node-block-${R(d)}`,
|
|
1938
1953
|
rect: {
|
|
@@ -1947,63 +1962,63 @@ function Or(e, t, n) {
|
|
|
1947
1962
|
}));
|
|
1948
1963
|
}
|
|
1949
1964
|
function f({ nodes: p, links: d }) {
|
|
1950
|
-
p == null || d == null || (e.value.nodeBlocks =
|
|
1965
|
+
p == null || d == null || (e.value.nodeBlocks = c(p), e.value.linkPaths = h(d));
|
|
1951
1966
|
}
|
|
1952
1967
|
return {
|
|
1953
1968
|
highlightedElements: o,
|
|
1954
1969
|
highlightLinks: l,
|
|
1955
|
-
updateNodes:
|
|
1970
|
+
updateNodes: u,
|
|
1956
1971
|
renderChart: f,
|
|
1957
1972
|
maxDepth: a
|
|
1958
1973
|
};
|
|
1959
1974
|
}
|
|
1960
1975
|
function $r(e, t, n) {
|
|
1961
|
-
function r(
|
|
1976
|
+
function r(c) {
|
|
1962
1977
|
var f, p;
|
|
1963
1978
|
return (p = (f = t.value) == null ? void 0 : f.nodes) == null ? void 0 : p.reduce(
|
|
1964
|
-
(d, _) => Math.max(d, _[
|
|
1979
|
+
(d, _) => Math.max(d, _[c]),
|
|
1965
1980
|
-1 / 0
|
|
1966
1981
|
);
|
|
1967
1982
|
}
|
|
1968
|
-
function a(
|
|
1969
|
-
return s(f) - s(
|
|
1983
|
+
function a(c, f) {
|
|
1984
|
+
return s(f) - s(c);
|
|
1970
1985
|
}
|
|
1971
|
-
function o(
|
|
1986
|
+
function o(c) {
|
|
1972
1987
|
var f, p;
|
|
1973
|
-
return (p = (f = n.value) == null ? void 0 : f.find((d) => d.id === `node-text-${
|
|
1988
|
+
return (p = (f = n.value) == null ? void 0 : f.find((d) => d.id === `node-text-${c.id}`)) == null ? void 0 : p.getBBox();
|
|
1974
1989
|
}
|
|
1975
|
-
function s({ label:
|
|
1990
|
+
function s({ label: c, value: f }) {
|
|
1976
1991
|
var p;
|
|
1977
1992
|
return Math.max(
|
|
1978
|
-
|
|
1993
|
+
c.length,
|
|
1979
1994
|
((p = e.value.valueFormatter(f)) == null ? void 0 : p.length) || 0
|
|
1980
1995
|
);
|
|
1981
1996
|
}
|
|
1982
1997
|
const l = v(() => {
|
|
1983
1998
|
var p, d, _, y;
|
|
1984
|
-
const
|
|
1999
|
+
const c = r("x1"), f = (d = (p = t.value.nodes) == null ? void 0 : p.filter(({ x1: m }) => m === c).sort(a)) == null ? void 0 : d[0];
|
|
1985
2000
|
return f == null ? 0 : (y = (_ = o(f)) == null ? void 0 : _.width) != null ? y : 0;
|
|
1986
2001
|
}), i = v(() => {
|
|
1987
2002
|
var p, d, _, y, m, g;
|
|
1988
|
-
const
|
|
2003
|
+
const c = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.reduce(
|
|
1989
2004
|
(b, { y0: x }) => Math.min(b, x),
|
|
1990
2005
|
1 / 0
|
|
1991
|
-
), f = (y = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : y.find(({ y0: b }) => b ===
|
|
2006
|
+
), f = (y = (_ = t.value) == null ? void 0 : _.nodes) == null ? void 0 : y.find(({ y0: b }) => b === c);
|
|
1992
2007
|
return f == null ? 0 : Math.abs((g = (m = o(f)) == null ? void 0 : m.y) != null ? g : 0);
|
|
1993
|
-
}),
|
|
2008
|
+
}), u = v(() => {
|
|
1994
2009
|
var p, d, _, y;
|
|
1995
|
-
const
|
|
2010
|
+
const c = r("y1"), f = (d = (p = t.value) == null ? void 0 : p.nodes) == null ? void 0 : d.find(({ y1: m }) => m === c);
|
|
1996
2011
|
return f == null ? 0 : Math.abs((y = (_ = o(f)) == null ? void 0 : _.y) != null ? y : 0);
|
|
1997
2012
|
});
|
|
1998
2013
|
return {
|
|
1999
2014
|
leftMostNodeLabelWidth: v(() => {
|
|
2000
2015
|
var f, p, d, _;
|
|
2001
|
-
const
|
|
2002
|
-
return
|
|
2016
|
+
const c = (p = (f = t.value.nodes) == null ? void 0 : f.filter(({ depth: y }) => y === 0).sort(a)) == null ? void 0 : p[0];
|
|
2017
|
+
return c == null ? 0 : (_ = (d = o(c)) == null ? void 0 : d.width) != null ? _ : 0;
|
|
2003
2018
|
}),
|
|
2004
2019
|
rightMostNodeLabelWidth: l,
|
|
2005
2020
|
topMostNodeLabelExtraHeight: i,
|
|
2006
|
-
bottomMostNodeLabelExtraHeight:
|
|
2021
|
+
bottomMostNodeLabelExtraHeight: u
|
|
2007
2022
|
};
|
|
2008
2023
|
}
|
|
2009
2024
|
const kr = {
|
|
@@ -2023,28 +2038,28 @@ const kr = {
|
|
|
2023
2038
|
linkPaths: []
|
|
2024
2039
|
};
|
|
2025
2040
|
function Sr(e, t) {
|
|
2026
|
-
const n = $({ ...Lr, containerSize: t }), r = v(() => e.value.values.map(({ label: l, color: i, value:
|
|
2041
|
+
const n = $({ ...Lr, containerSize: t }), r = v(() => e.value.values.map(({ label: l, color: i, value: u }) => ({
|
|
2027
2042
|
label: l,
|
|
2028
2043
|
color: i,
|
|
2029
|
-
id:
|
|
2044
|
+
id: u
|
|
2030
2045
|
}))), a = v(() => e.value.values.map(
|
|
2031
2046
|
(l) => {
|
|
2032
2047
|
var i;
|
|
2033
|
-
return (i = l.targets) == null ? void 0 : i.map(({ node:
|
|
2048
|
+
return (i = l.targets) == null ? void 0 : i.map(({ node: u, value: h, color: c }) => {
|
|
2034
2049
|
var f;
|
|
2035
2050
|
return {
|
|
2036
2051
|
source: (f = l.value) != null ? f : l.label,
|
|
2037
|
-
color:
|
|
2038
|
-
target:
|
|
2052
|
+
color: c,
|
|
2053
|
+
target: u,
|
|
2039
2054
|
value: h
|
|
2040
2055
|
};
|
|
2041
2056
|
});
|
|
2042
2057
|
}
|
|
2043
2058
|
).filter(Boolean).reduce((l, i) => [...l, ...i], [])), o = v(() => {
|
|
2044
|
-
const { leftExtent: l, rightExtent: i, topExtent:
|
|
2059
|
+
const { leftExtent: l, rightExtent: i, topExtent: u, bottomExtent: h, containerSize: c } = n.value;
|
|
2045
2060
|
return le().nodeId(R).nodeWidth(e.value.nodeWidth).nodeSort(e.value.nodeSort).nodePadding(20).nodeAlign(e.value.nodeAlign).extent([
|
|
2046
|
-
[l,
|
|
2047
|
-
[i,
|
|
2061
|
+
[l, u],
|
|
2062
|
+
[i, c.height - h]
|
|
2048
2063
|
]);
|
|
2049
2064
|
}), s = v(() => o.value({
|
|
2050
2065
|
nodes: r.value.map((l) => ({ ...l })),
|
|
@@ -2076,9 +2091,9 @@ const Cr = L({
|
|
|
2076
2091
|
s,
|
|
2077
2092
|
t.attrs.containerSize
|
|
2078
2093
|
), {
|
|
2079
|
-
leftMostNodeLabelWidth:
|
|
2094
|
+
leftMostNodeLabelWidth: u,
|
|
2080
2095
|
rightMostNodeLabelWidth: h,
|
|
2081
|
-
topMostNodeLabelExtraHeight:
|
|
2096
|
+
topMostNodeLabelExtraHeight: c,
|
|
2082
2097
|
bottomMostNodeLabelExtraHeight: f
|
|
2083
2098
|
} = $r(s, l, o), {
|
|
2084
2099
|
highlightedElements: p,
|
|
@@ -2088,9 +2103,9 @@ const Cr = L({
|
|
|
2088
2103
|
maxDepth: m
|
|
2089
2104
|
} = Or(i, s, l);
|
|
2090
2105
|
return N(p, function(g, b) {
|
|
2091
|
-
var I, H,
|
|
2106
|
+
var I, H, j, et, nt;
|
|
2092
2107
|
const x = g.nodes != null && g.links != null, O = new Set((I = g.links) != null ? I : []), { nodes: E = /* @__PURE__ */ new Map() } = (x ? g : b) || {}, { nodeIds: B, linkIds: C } = d(
|
|
2093
|
-
(
|
|
2108
|
+
(j = (H = l.value) == null ? void 0 : H.links) == null ? void 0 : j.filter((z) => O.has(z))
|
|
2094
2109
|
);
|
|
2095
2110
|
((z = [], vt = []) => {
|
|
2096
2111
|
a.value = z, r.value = vt;
|
|
@@ -2105,7 +2120,7 @@ const Cr = L({
|
|
|
2105
2120
|
l,
|
|
2106
2121
|
(g) => y({ nodes: g.nodes, links: g.links })
|
|
2107
2122
|
), N(
|
|
2108
|
-
|
|
2123
|
+
u,
|
|
2109
2124
|
(g) => i.value.leftExtent = g + K
|
|
2110
2125
|
), N(
|
|
2111
2126
|
h,
|
|
@@ -2114,7 +2129,7 @@ const Cr = L({
|
|
|
2114
2129
|
f,
|
|
2115
2130
|
(g) => i.value.bottomExtent = g
|
|
2116
2131
|
), N(
|
|
2117
|
-
|
|
2132
|
+
c,
|
|
2118
2133
|
(g) => i.value.topExtent = g
|
|
2119
2134
|
), N(
|
|
2120
2135
|
i.value.containerSize,
|
|
@@ -2187,7 +2202,7 @@ const Rr = Dr.exports, Pr = {
|
|
|
2187
2202
|
...G(ut, !1, !1)
|
|
2188
2203
|
},
|
|
2189
2204
|
setup(e, t) {
|
|
2190
|
-
const { options: n } = w(e), { allOptions: r } =
|
|
2205
|
+
const { options: n } = w(e), { allOptions: r } = F(n, Pr);
|
|
2191
2206
|
function a(o) {
|
|
2192
2207
|
return {
|
|
2193
2208
|
...o,
|
|
@@ -2226,16 +2241,16 @@ const Et = {
|
|
|
2226
2241
|
single: "lume-single-bar-chart",
|
|
2227
2242
|
grouped: "lume-grouped-bar-chart",
|
|
2228
2243
|
stacked: "lume-stacked-bar-chart"
|
|
2229
|
-
},
|
|
2244
|
+
}, jr = L({
|
|
2230
2245
|
components: {
|
|
2231
2246
|
LumeSingleBarChart: ht(
|
|
2232
|
-
() => import("./
|
|
2247
|
+
() => import("./25ccdedf.js")
|
|
2233
2248
|
),
|
|
2234
2249
|
LumeGroupedBarChart: ht(
|
|
2235
|
-
() => import("./
|
|
2250
|
+
() => import("./6f5e659c.js")
|
|
2236
2251
|
),
|
|
2237
2252
|
LumeStackedBarChart: ht(
|
|
2238
|
-
() => import("./
|
|
2253
|
+
() => import("./97d72066.js")
|
|
2239
2254
|
)
|
|
2240
2255
|
},
|
|
2241
2256
|
props: {
|
|
@@ -2274,7 +2289,7 @@ const Et = {
|
|
|
2274
2289
|
};
|
|
2275
2290
|
}
|
|
2276
2291
|
});
|
|
2277
|
-
var
|
|
2292
|
+
var Fr = function() {
|
|
2278
2293
|
var t = this, n = t._self._c;
|
|
2279
2294
|
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) {
|
|
2280
2295
|
return { key: a, fn: function(o) {
|
|
@@ -2282,8 +2297,8 @@ var jr = function() {
|
|
|
2282
2297
|
} };
|
|
2283
2298
|
})], null, !0) }, "component", t.$props, !1), t.$listeners));
|
|
2284
2299
|
}, Vr = [], Gr = /* @__PURE__ */ S(
|
|
2285
|
-
Fr,
|
|
2286
2300
|
jr,
|
|
2301
|
+
Fr,
|
|
2287
2302
|
Vr,
|
|
2288
2303
|
!1,
|
|
2289
2304
|
null,
|
|
@@ -2338,18 +2353,18 @@ function Xr(e, t, n, r) {
|
|
|
2338
2353
|
Math.min(...i.domain()) > 0 && console.error("Bar linear scale domain cannot start above 0!");
|
|
2339
2354
|
}
|
|
2340
2355
|
const s = v(() => {
|
|
2341
|
-
const { padding: i, paddingInner:
|
|
2356
|
+
const { padding: i, paddingInner: u, paddingOuter: h } = n.value;
|
|
2342
2357
|
return a.value ? (() => (o(e.value), e.value))() : it(
|
|
2343
2358
|
e.value,
|
|
2344
2359
|
r.value,
|
|
2345
|
-
{ padding: i, paddingInner:
|
|
2360
|
+
{ padding: i, paddingInner: u, paddingOuter: h }
|
|
2346
2361
|
);
|
|
2347
2362
|
}), l = v(() => {
|
|
2348
|
-
const { padding: i, paddingInner:
|
|
2363
|
+
const { padding: i, paddingInner: u, paddingOuter: h } = n.value;
|
|
2349
2364
|
return a.value ? it(
|
|
2350
2365
|
t.value,
|
|
2351
2366
|
r.value,
|
|
2352
|
-
{ padding: i, paddingInner:
|
|
2367
|
+
{ padding: i, paddingInner: u, paddingOuter: h }
|
|
2353
2368
|
) : (() => (o(t.value), t.value))();
|
|
2354
2369
|
});
|
|
2355
2370
|
return { barXScale: s, barYScale: l };
|
|
@@ -2359,19 +2374,19 @@ function Yr(e, t, n, r, a, o) {
|
|
|
2359
2374
|
const s = v(
|
|
2360
2375
|
() => r.value === T.HORIZONTAL
|
|
2361
2376
|
);
|
|
2362
|
-
function l(
|
|
2377
|
+
function l(c, f) {
|
|
2363
2378
|
let p, d;
|
|
2364
|
-
return s.value ? (p =
|
|
2379
|
+
return s.value ? (p = c >= 0 ? t.value(0) : t.value(c), d = n.value(n.value.domain()[f])) : (p = t.value(t.value.domain()[f]), d = c < 0 ? n.value(0) : n.value(c)), { x: p, y: d };
|
|
2365
2380
|
}
|
|
2366
|
-
function i(
|
|
2367
|
-
return s.value ?
|
|
2381
|
+
function i(c) {
|
|
2382
|
+
return s.value ? c < 0 ? t.value(0) - t.value(c) : t.value(c) - t.value(0) : t.value.bandwidth();
|
|
2368
2383
|
}
|
|
2369
|
-
function c
|
|
2370
|
-
return s.value ? n.value.bandwidth() :
|
|
2384
|
+
function u(c) {
|
|
2385
|
+
return s.value ? n.value.bandwidth() : c < 0 ? n.value(c) - n.value(0) : n.value(0) - n.value(c);
|
|
2371
2386
|
}
|
|
2372
|
-
function h(
|
|
2387
|
+
function h(c, f, p) {
|
|
2373
2388
|
var O;
|
|
2374
|
-
const { value: d, color: _ } =
|
|
2389
|
+
const { value: d, color: _ } = c, y = (O = _ != null ? _ : e.value[f].color) != null ? O : Ur, { x: m, y: g } = l(d, p), b = i(d), x = u(d);
|
|
2375
2390
|
return {
|
|
2376
2391
|
classList: [`lume-fill--${y}`, ...o],
|
|
2377
2392
|
x: m,
|
|
@@ -2388,7 +2403,7 @@ function Kr(e, t, n, r, a, o) {
|
|
|
2388
2403
|
const s = v(
|
|
2389
2404
|
() => r.value === T.HORIZONTAL
|
|
2390
2405
|
), l = v(() => J().domain(e.value.map((d, _) => _)).range([0, t.value.bandwidth()]).padding(0)), i = v(() => J().domain(e.value.map((d, _) => _)).range([0, n.value.bandwidth()]).padding(0));
|
|
2391
|
-
function
|
|
2406
|
+
function u(d, _, y) {
|
|
2392
2407
|
if (s.value)
|
|
2393
2408
|
return d >= 0 ? t.value(0) : t.value(d);
|
|
2394
2409
|
const m = t.value.domain();
|
|
@@ -2401,7 +2416,7 @@ function Kr(e, t, n, r, a, o) {
|
|
|
2401
2416
|
}
|
|
2402
2417
|
return d < 0 ? n.value(0) : n.value(d);
|
|
2403
2418
|
}
|
|
2404
|
-
function
|
|
2419
|
+
function c(d) {
|
|
2405
2420
|
return s.value ? d < 0 ? t.value(0) - t.value(d) : t.value(d) - t.value(0) : l.value.bandwidth();
|
|
2406
2421
|
}
|
|
2407
2422
|
function f(d) {
|
|
@@ -2409,7 +2424,7 @@ function Kr(e, t, n, r, a, o) {
|
|
|
2409
2424
|
}
|
|
2410
2425
|
function p(d, _, y) {
|
|
2411
2426
|
var C;
|
|
2412
|
-
const { value: m, color: g } = d, b = (C = g != null ? g : e.value[_].color) != null ? C : Object.values(M)[_], x =
|
|
2427
|
+
const { value: m, color: g } = d, b = (C = g != null ? g : e.value[_].color) != null ? C : Object.values(M)[_], x = u(m, y, _), O = h(m, y, _), E = c(m), B = f(m);
|
|
2413
2428
|
return {
|
|
2414
2429
|
classList: [`lume-fill--${b}`, ...o],
|
|
2415
2430
|
x,
|
|
@@ -2427,27 +2442,27 @@ function Jr(e, t) {
|
|
|
2427
2442
|
() => t.value === T.HORIZONTAL
|
|
2428
2443
|
), r = v(() => {
|
|
2429
2444
|
const l = e.value.map(
|
|
2430
|
-
(i) => i.filter((
|
|
2445
|
+
(i) => i.filter((u) => u.value < 0).reduce((u, h) => u + h.value, 0)
|
|
2431
2446
|
);
|
|
2432
2447
|
return Math.min(...l);
|
|
2433
2448
|
}), a = v(() => {
|
|
2434
2449
|
const l = e.value.map(
|
|
2435
2450
|
(i) => i.reduce(
|
|
2436
|
-
(
|
|
2451
|
+
(u, h) => h.value >= 0 ? u + h.value : u,
|
|
2437
2452
|
0
|
|
2438
2453
|
)
|
|
2439
2454
|
);
|
|
2440
2455
|
return Math.max(...l);
|
|
2441
2456
|
});
|
|
2442
|
-
function o(l, i,
|
|
2443
|
-
return n.value ? Q().domain([r.value, a.value]).range([0,
|
|
2444
|
-
J().domain(i == null ? void 0 : i.map((h) => h)).range([0,
|
|
2457
|
+
function o(l, i, u) {
|
|
2458
|
+
return n.value ? Q().domain([r.value, a.value]).range([0, u.width]) : it(
|
|
2459
|
+
J().domain(i == null ? void 0 : i.map((h) => h)).range([0, u.width])
|
|
2445
2460
|
);
|
|
2446
2461
|
}
|
|
2447
|
-
function s(l, i,
|
|
2462
|
+
function s(l, i, u) {
|
|
2448
2463
|
return n.value ? it(
|
|
2449
|
-
J().domain(i == null ? void 0 : i.map((h) => h)).range([0,
|
|
2450
|
-
) : Q().domain([a.value, r.value]).range([0,
|
|
2464
|
+
J().domain(i == null ? void 0 : i.map((h) => h)).range([0, u.height])
|
|
2465
|
+
) : Q().domain([a.value, r.value]).range([0, u.height]);
|
|
2451
2466
|
}
|
|
2452
2467
|
return { stackedXScaleGenerator: o, stackedYScaleGenerator: s };
|
|
2453
2468
|
}
|
|
@@ -2459,14 +2474,14 @@ function Qr(e, t, n, r, a, o) {
|
|
|
2459
2474
|
), i = v(
|
|
2460
2475
|
() => e.value.map((m) => m.values.map((g) => g == null ? void 0 : g.value))
|
|
2461
2476
|
);
|
|
2462
|
-
function
|
|
2477
|
+
function u(m, g, b) {
|
|
2463
2478
|
let x, O;
|
|
2464
2479
|
return s.value ? (x = t.value(m >= 0 ? 0 + b : m + b), O = n.value(l.value[g])) : (x = t.value(l.value[g]), O = n.value(m >= 0 ? m + b : 0 + b)), { x, y: O };
|
|
2465
2480
|
}
|
|
2466
2481
|
function h(m) {
|
|
2467
2482
|
return s.value ? t.value(m) - t.value(0) : t.value.bandwidth();
|
|
2468
2483
|
}
|
|
2469
|
-
function
|
|
2484
|
+
function c(m) {
|
|
2470
2485
|
return s.value ? t.value(0) - t.value(m) : t.value.bandwidth();
|
|
2471
2486
|
}
|
|
2472
2487
|
function f(m) {
|
|
@@ -2482,10 +2497,10 @@ function Qr(e, t, n, r, a, o) {
|
|
|
2482
2497
|
return m ? i.value.reduce((b, x, O) => (O < m && x[g] < 0 && (b += x[g]), b), 0) : 0;
|
|
2483
2498
|
}
|
|
2484
2499
|
function y(m, g, b) {
|
|
2485
|
-
var
|
|
2486
|
-
const { value: x, color: O } = m, E = x >= 0 ? h(x) :
|
|
2500
|
+
var j;
|
|
2501
|
+
const { value: x, color: O } = m, E = x >= 0 ? h(x) : c(x), B = x >= 0 ? f(x) : p(x), C = x >= 0 ? d(g, b) : _(g, b), { x: k, y: I } = u(x, b, C);
|
|
2487
2502
|
return {
|
|
2488
|
-
classList: [`lume-fill--${(
|
|
2503
|
+
classList: [`lume-fill--${(j = O != null ? O : e.value[g].color) != null ? j : Object.values(M)[g]}`, ...o],
|
|
2489
2504
|
width: E,
|
|
2490
2505
|
height: B,
|
|
2491
2506
|
x: k,
|
|
@@ -2501,9 +2516,9 @@ const ta = {
|
|
|
2501
2516
|
grouped: Kr,
|
|
2502
2517
|
stacked: Qr
|
|
2503
2518
|
}, ea = L({
|
|
2504
|
-
components: { LumeBar:
|
|
2519
|
+
components: { LumeBar: $t },
|
|
2505
2520
|
props: {
|
|
2506
|
-
...
|
|
2521
|
+
...kt(),
|
|
2507
2522
|
classList: {
|
|
2508
2523
|
type: [String, Array],
|
|
2509
2524
|
default: () => []
|
|
@@ -2524,16 +2539,16 @@ const ta = {
|
|
|
2524
2539
|
type: s,
|
|
2525
2540
|
xScale: l,
|
|
2526
2541
|
yScale: i,
|
|
2527
|
-
classList:
|
|
2528
|
-
} = w(e), { groupedData: h } = Yt(t), { barXScale:
|
|
2542
|
+
classList: u
|
|
2543
|
+
} = w(e), { groupedData: h } = Yt(t), { barXScale: c, barYScale: f } = Xr(
|
|
2529
2544
|
l,
|
|
2530
2545
|
i,
|
|
2531
2546
|
r,
|
|
2532
2547
|
a
|
|
2533
|
-
), p = v(() => typeof
|
|
2548
|
+
), p = v(() => typeof u.value == "string" ? [u.value] : u.value), d = v(() => {
|
|
2534
2549
|
const y = qr(t, s), { barAttributeGenerator: m } = ta[y](
|
|
2535
2550
|
t,
|
|
2536
|
-
|
|
2551
|
+
c,
|
|
2537
2552
|
f,
|
|
2538
2553
|
a,
|
|
2539
2554
|
n,
|
|
@@ -2545,7 +2560,7 @@ const ta = {
|
|
|
2545
2560
|
return a.value === T.HORIZONTAL ? "width" : "height";
|
|
2546
2561
|
});
|
|
2547
2562
|
return {
|
|
2548
|
-
barXScale:
|
|
2563
|
+
barXScale: c,
|
|
2549
2564
|
barYScale: f,
|
|
2550
2565
|
computedTransition: _,
|
|
2551
2566
|
getBarAttributes: d,
|
|
@@ -2570,7 +2585,7 @@ var na = function() {
|
|
|
2570
2585
|
null,
|
|
2571
2586
|
null
|
|
2572
2587
|
);
|
|
2573
|
-
const
|
|
2588
|
+
const Lt = aa.exports, oa = {
|
|
2574
2589
|
[T.VERTICAL]: {
|
|
2575
2590
|
withTooltip: !0,
|
|
2576
2591
|
xAxisOptions: {},
|
|
@@ -2584,14 +2599,14 @@ const St = aa.exports, oa = {
|
|
|
2584
2599
|
margins: Z.HORIZONTAL
|
|
2585
2600
|
}
|
|
2586
2601
|
}, sa = L({
|
|
2587
|
-
components: { LumeChart: Y, LumeBarGroup:
|
|
2602
|
+
components: { LumeChart: Y, LumeBarGroup: Lt },
|
|
2588
2603
|
props: {
|
|
2589
2604
|
...G(ut)
|
|
2590
2605
|
},
|
|
2591
2606
|
setup(e, t) {
|
|
2592
2607
|
const { orientation: n, options: r } = w(e), a = v(
|
|
2593
2608
|
() => oa[n.value || T.VERTICAL]
|
|
2594
|
-
), { allOptions: o } =
|
|
2609
|
+
), { allOptions: o } = F(r, a);
|
|
2595
2610
|
return { allOptions: o, slots: q(t.slots) };
|
|
2596
2611
|
}
|
|
2597
2612
|
});
|
|
@@ -2626,17 +2641,17 @@ const za = ua.exports, ca = {
|
|
|
2626
2641
|
xAxisOptions: { gridLines: !0 },
|
|
2627
2642
|
yAxisOptions: { gridLines: !1 },
|
|
2628
2643
|
margins: Z.HORIZONTAL,
|
|
2629
|
-
tooltipOptions: { position:
|
|
2644
|
+
tooltipOptions: { position: At[6] }
|
|
2630
2645
|
}
|
|
2631
2646
|
}, da = L({
|
|
2632
|
-
components: { LumeChart: Y, LumeBarGroup:
|
|
2647
|
+
components: { LumeChart: Y, LumeBarGroup: Lt },
|
|
2633
2648
|
props: {
|
|
2634
2649
|
...G()
|
|
2635
2650
|
},
|
|
2636
2651
|
setup(e, t) {
|
|
2637
2652
|
const { orientation: n, options: r } = w(e), a = v(
|
|
2638
2653
|
() => ca[n.value || T.VERTICAL]
|
|
2639
|
-
), { allOptions: o } =
|
|
2654
|
+
), { allOptions: o } = F(r, a);
|
|
2640
2655
|
return { allOptions: o, slots: q(t.slots) };
|
|
2641
2656
|
}
|
|
2642
2657
|
});
|
|
@@ -2671,23 +2686,23 @@ const Wa = va.exports, ha = {
|
|
|
2671
2686
|
xAxisOptions: { gridLines: !0 },
|
|
2672
2687
|
yAxisOptions: { gridLines: !1 },
|
|
2673
2688
|
margins: Z.HORIZONTAL,
|
|
2674
|
-
tooltipOptions: { position:
|
|
2689
|
+
tooltipOptions: { position: At[6] }
|
|
2675
2690
|
}
|
|
2676
2691
|
}, _a = L({
|
|
2677
|
-
components: { LumeChart: Y, LumeBarGroup:
|
|
2692
|
+
components: { LumeChart: Y, LumeBarGroup: Lt },
|
|
2678
2693
|
props: {
|
|
2679
2694
|
...G()
|
|
2680
2695
|
},
|
|
2681
2696
|
setup(e, t) {
|
|
2682
2697
|
const { data: n, orientation: r, options: a } = w(e), o = v(
|
|
2683
2698
|
() => ha[r.value || T.VERTICAL]
|
|
2684
|
-
), { allOptions: s } =
|
|
2699
|
+
), { allOptions: s } = F(a, o), { internalData: l } = dt(n), { groupedData: i } = Yt(l), { stackedXScaleGenerator: u, stackedYScaleGenerator: h } = Jr(
|
|
2685
2700
|
i,
|
|
2686
2701
|
r
|
|
2687
2702
|
);
|
|
2688
2703
|
return {
|
|
2689
2704
|
allOptions: s,
|
|
2690
|
-
stackedXScaleGenerator:
|
|
2705
|
+
stackedXScaleGenerator: u,
|
|
2691
2706
|
stackedYScaleGenerator: h,
|
|
2692
2707
|
slots: q(t.slots)
|
|
2693
2708
|
};
|
|
@@ -2716,11 +2731,11 @@ const Za = ya.exports;
|
|
|
2716
2731
|
function Kt(e) {
|
|
2717
2732
|
function t(o) {
|
|
2718
2733
|
let s = null;
|
|
2719
|
-
return o == null ? void 0 : o.reduce((l, i,
|
|
2734
|
+
return o == null ? void 0 : o.reduce((l, i, u) => (i == null || i.value == null ? (s ? s.push(u) : s = [u], u === (o == null ? void 0 : o.length) - 1 && l.push(s)) : s && (l.push(s), s = null), l), []);
|
|
2720
2735
|
}
|
|
2721
2736
|
function n(o, s, l, i) {
|
|
2722
|
-
const
|
|
2723
|
-
return o > s ? o -
|
|
2737
|
+
const c = Math.abs(o - s) / (l + 1) * (i + 1);
|
|
2738
|
+
return o > s ? o - c : o + c;
|
|
2724
2739
|
}
|
|
2725
2740
|
function r(o) {
|
|
2726
2741
|
return function(l) {
|
|
@@ -2735,21 +2750,21 @@ function Kt(e) {
|
|
|
2735
2750
|
...o,
|
|
2736
2751
|
isDashed: r(s),
|
|
2737
2752
|
values: o.values.map((l, i) => {
|
|
2738
|
-
var h,
|
|
2739
|
-
const
|
|
2753
|
+
var h, c;
|
|
2754
|
+
const u = s.find(
|
|
2740
2755
|
(f) => f.includes(i)
|
|
2741
2756
|
);
|
|
2742
|
-
if (
|
|
2743
|
-
const f =
|
|
2744
|
-
let d = (h = o.values[f]) == null ? void 0 : h.value, _ = (
|
|
2757
|
+
if (u) {
|
|
2758
|
+
const f = u[0] - 1, p = u[u.length - 1] + 1;
|
|
2759
|
+
let d = (h = o.values[f]) == null ? void 0 : h.value, _ = (c = o.values[p]) == null ? void 0 : c.value;
|
|
2745
2760
|
return d == null && (d = _), _ == null && (_ = d), {
|
|
2746
2761
|
value: n(
|
|
2747
2762
|
d,
|
|
2748
2763
|
_,
|
|
2749
|
-
|
|
2750
|
-
|
|
2764
|
+
u.length,
|
|
2765
|
+
u.indexOf(i)
|
|
2751
2766
|
),
|
|
2752
|
-
label:
|
|
2767
|
+
label: jt
|
|
2753
2768
|
};
|
|
2754
2769
|
}
|
|
2755
2770
|
return l;
|
|
@@ -2758,7 +2773,7 @@ function Kt(e) {
|
|
|
2758
2773
|
})) };
|
|
2759
2774
|
}
|
|
2760
2775
|
function ba(e, t) {
|
|
2761
|
-
const n =
|
|
2776
|
+
const n = Ot(e) / 2;
|
|
2762
2777
|
return (r, a) => e(e.domain()[t + (a - 1)]) + n;
|
|
2763
2778
|
}
|
|
2764
2779
|
function xa(e, t) {
|
|
@@ -2772,7 +2787,7 @@ function Ta(e, t, n, r) {
|
|
|
2772
2787
|
const Aa = L({
|
|
2773
2788
|
components: { LumeLine: qn, LumePoint: Qn },
|
|
2774
2789
|
props: {
|
|
2775
|
-
...
|
|
2790
|
+
...kt(),
|
|
2776
2791
|
withPoints: {
|
|
2777
2792
|
type: Boolean,
|
|
2778
2793
|
default: !0
|
|
@@ -2793,7 +2808,7 @@ const Aa = L({
|
|
|
2793
2808
|
return;
|
|
2794
2809
|
const f = Gt(t.value, e.hoveredIndex);
|
|
2795
2810
|
return {
|
|
2796
|
-
d: `M ${
|
|
2811
|
+
d: `M ${mt(r.value, e.hoveredIndex)},${a.value.range()[1]}
|
|
2797
2812
|
V ${a.value(f)}`
|
|
2798
2813
|
};
|
|
2799
2814
|
}), l = v(
|
|
@@ -2805,7 +2820,7 @@ const Aa = L({
|
|
|
2805
2820
|
function i(f) {
|
|
2806
2821
|
return o.value[f].values;
|
|
2807
2822
|
}
|
|
2808
|
-
function
|
|
2823
|
+
function u(f, p) {
|
|
2809
2824
|
var _, y;
|
|
2810
2825
|
const d = f === 0 ? [] : [
|
|
2811
2826
|
(_ = i(p)[f - 1]) == null ? void 0 : _.value,
|
|
@@ -2822,14 +2837,14 @@ const Aa = L({
|
|
|
2822
2837
|
var d;
|
|
2823
2838
|
return (d = i(p)[f]) == null ? void 0 : d.value;
|
|
2824
2839
|
}
|
|
2825
|
-
function
|
|
2840
|
+
function c(f) {
|
|
2826
2841
|
return e.hoveredIndex === f;
|
|
2827
2842
|
}
|
|
2828
2843
|
return {
|
|
2829
2844
|
computedGroupData: o,
|
|
2830
|
-
getPathDefinition:
|
|
2845
|
+
getPathDefinition: u,
|
|
2831
2846
|
getPointValue: h,
|
|
2832
|
-
isPointActive:
|
|
2847
|
+
isPointActive: c,
|
|
2833
2848
|
overlayLineAttributes: s,
|
|
2834
2849
|
pointRadius: l
|
|
2835
2850
|
};
|
|
@@ -2866,7 +2881,7 @@ const Jt = ka.exports, La = {
|
|
|
2866
2881
|
...G(null, !1)
|
|
2867
2882
|
},
|
|
2868
2883
|
setup(e, t) {
|
|
2869
|
-
const { options: n } = w(e), { allOptions: r } =
|
|
2884
|
+
const { options: n } = w(e), { allOptions: r } = F(n, La);
|
|
2870
2885
|
return { allOptions: r, slots: q(t.slots) };
|
|
2871
2886
|
}
|
|
2872
2887
|
});
|
|
@@ -2921,7 +2936,7 @@ const Da = {
|
|
|
2921
2936
|
...ft()
|
|
2922
2937
|
},
|
|
2923
2938
|
setup(e, t) {
|
|
2924
|
-
const { data: n, options: r } = w(e), { internalData: a } = dt(n), { allOptions: o } =
|
|
2939
|
+
const { data: n, options: r } = w(e), { internalData: a } = dt(n), { allOptions: o } = F(r, Da), { computedLineData: s } = Kt(a), { areaPathDefinition: l } = Na(s), i = v(() => a.value[0].color), u = v(
|
|
2925
2940
|
() => n.value[0].areaColor || i.value
|
|
2926
2941
|
);
|
|
2927
2942
|
function h(f) {
|
|
@@ -2930,16 +2945,16 @@ const Da = {
|
|
|
2930
2945
|
noMinSize: !0
|
|
2931
2946
|
};
|
|
2932
2947
|
}
|
|
2933
|
-
function
|
|
2948
|
+
function c(f, p, d) {
|
|
2934
2949
|
return Q().range([0, d.width]).domain([0, f[0].values.length - 1]);
|
|
2935
2950
|
}
|
|
2936
2951
|
return {
|
|
2937
2952
|
allOptions: o,
|
|
2938
|
-
areaColor:
|
|
2953
|
+
areaColor: u,
|
|
2939
2954
|
areaPathDefinition: l,
|
|
2940
2955
|
computedColor: i,
|
|
2941
2956
|
getSparklineOptions: h,
|
|
2942
|
-
xScaleGenerator:
|
|
2957
|
+
xScaleGenerator: c,
|
|
2943
2958
|
slots: q(t.slots)
|
|
2944
2959
|
};
|
|
2945
2960
|
}
|
|
@@ -2980,13 +2995,13 @@ export {
|
|
|
2980
2995
|
On as h,
|
|
2981
2996
|
wn as i,
|
|
2982
2997
|
Rn as j,
|
|
2983
|
-
|
|
2998
|
+
$t as k,
|
|
2984
2999
|
Va as l,
|
|
2985
3000
|
qn as m,
|
|
2986
3001
|
Qn as n,
|
|
2987
3002
|
Rr as o,
|
|
2988
|
-
|
|
3003
|
+
Lt as p,
|
|
2989
3004
|
Jt as q,
|
|
2990
3005
|
ar as r
|
|
2991
3006
|
};
|
|
2992
|
-
//# sourceMappingURL=
|
|
3007
|
+
//# sourceMappingURL=55f09e14.js.map
|