@adyen/lume-vue3 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/core/lume-axis/composables/lume-skip.d.ts +3 -2
- package/dist/@types/components/core/lume-axis/composables/lume-skip.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
- package/dist/@types/composables/line-null-values.d.ts.map +1 -1
- package/dist/@types/composables/line-values.d.ts.map +1 -1
- package/dist/index.js +95 -94
- package/dist/index.js.map +1 -1
- package/dist/styles/main.css +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
import { AxisOptions } from '@/composables/options';
|
|
2
3
|
import { Scale } from '@/composables/scales';
|
|
3
4
|
/**
|
|
4
5
|
* Composable for axis label skipping logic.
|
|
5
6
|
*
|
|
6
7
|
* @param scale A d3 scale.
|
|
7
8
|
* @param tickRefs Template reference to the tick text elements
|
|
8
|
-
* @param
|
|
9
|
+
* @param options The axis options.
|
|
9
10
|
*/
|
|
10
11
|
export declare function useSkip(scale: Ref<Scale>, tickRefs: Ref<Array<{
|
|
11
12
|
ref: SVGTextElement;
|
|
12
|
-
}>>,
|
|
13
|
+
}>>, options: Ref<AxisOptions>): {
|
|
13
14
|
showTick: (index: number) => boolean;
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=lume-skip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lume-skip.d.ts","sourceRoot":"","sources":["../../../../../../../lib/src/components/core/lume-axis/composables/lume-skip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,GAAG,EAAS,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EACjB,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC,EAC7C,
|
|
1
|
+
{"version":3,"file":"lume-skip.d.ts","sourceRoot":"","sources":["../../../../../../../lib/src/components/core/lume-axis/composables/lume-skip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,GAAG,EAAS,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EACjB,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC,EAC7C,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC;sBAmBA,MAAM;EAmBhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lume-line-group.vue.d.ts","sourceRoot":"","sources":["../../../../../../lib/src/components/groups/lume-line-group/lume-line-group.vue.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAyBzC,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;eAA/C,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAA/C,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;eAA/C,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;;;;;;;;;;;;AAjB/D,
|
|
1
|
+
{"version":3,"file":"lume-line-group.vue.d.ts","sourceRoot":"","sources":["../../../../../../lib/src/components/groups/lume-line-group/lume-line-group.vue.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAyBzC,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;eAA/C,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAA/C,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;eAA/C,MAAM;sBAAgB,MAAM;eAAS,UAAU;;;;;;;;;;;;;;AAjB/D,wBAoTI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line-null-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/line-null-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGnE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"line-null-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/line-null-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,GAAG,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGnE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC;;0BA6DrB,MAAM,KAAG,OAAO;;;;;;;;;EA8CnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/line-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,IAAI,CAAC;AAGlD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA0BjC;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"line-values.d.ts","sourceRoot":"","sources":["../../../../lib/src/composables/line-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,IAAI,CAAC;AAGlD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA0BjC;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,UAcpC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as M, openBlock as _, createElementBlock as $, mergeProps as j, createElementVNode as G, toDisplayString as ae, createCommentVNode as z, isRef as Rt, computed as v, watch as
|
|
1
|
+
import { defineComponent as Z, ref as M, openBlock as _, createElementBlock as $, mergeProps as j, createElementVNode as G, toDisplayString as ae, createCommentVNode as z, isRef as Rt, computed as v, watch as K, toRefs as ne, inject as Be, reactive as Pe, onMounted as ye, unref as d, Fragment as ee, renderList as W, createBlock as J, normalizeClass as oe, normalizeStyle as St, onBeforeUnmount as Ct, watchEffect as Gt, renderSlot as S, createTextVNode as fe, useSlots as ie, withDirectives as rn, withCtx as V, createSlots as de, vShow as sn, pushScopeId as cn, popScopeId as dn, provide as Xe, createVNode as se, nextTick as yt, toHandlers as le, normalizeProps as he, guardReactiveProps as ge, defineAsyncComponent as Ye, resolveDynamicComponent as vn } from "vue";
|
|
2
2
|
import { format as mn, ticks as pn, scaleBand as He, scaleLinear as Me, link as fn, line as hn, area as gn } from "d3";
|
|
3
3
|
import { createPopper as _n } from "@popperjs/core";
|
|
4
4
|
import { sankeyLinkHorizontal as yn, sankey as kn, sankeyJustify as bn } from "d3-sankey";
|
|
@@ -233,13 +233,13 @@ function Sn(e, n, t) {
|
|
|
233
233
|
function i(s) {
|
|
234
234
|
if (!n.value)
|
|
235
235
|
return !0;
|
|
236
|
-
const c = n.value.length;
|
|
236
|
+
const c = t.value.skip, p = n.value.length;
|
|
237
237
|
if (s === 0)
|
|
238
238
|
return !0;
|
|
239
|
-
const
|
|
240
|
-
return s %
|
|
239
|
+
const r = l.value / p, h = typeof c == "number" && c > 0 && c + 1 || Math.ceil(o.value / r);
|
|
240
|
+
return s % h === 0;
|
|
241
241
|
}
|
|
242
|
-
return
|
|
242
|
+
return K(n, a), { showTick: i };
|
|
243
243
|
}
|
|
244
244
|
var ce = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(ce || {}), Ft = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(Ft || {}), it = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(it || {}), st = /* @__PURE__ */ ((e) => (e.Grey = "grey", e.Green = "green", e.Orange = "orange", e.Red = "red", e))(st || {}), ct = /* @__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))(ct || {});
|
|
245
245
|
const D = {
|
|
@@ -513,7 +513,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
513
513
|
), { allOptions: f } = pe(
|
|
514
514
|
s,
|
|
515
515
|
x.value === "x" ? Vn : Pn
|
|
516
|
-
), { showTick: O } = Sn(u, h, f
|
|
516
|
+
), { showTick: O } = Sn(u, h, f), N = v(() => {
|
|
517
517
|
var R, H, k, B;
|
|
518
518
|
return x.value === "y" && p.value ? `translate(0, ${((R = a.value) == null ? void 0 : R.height) / 2})` : x.value === "x" && p.value ? `translate(-${((H = a.value) == null ? void 0 : H.width) / 2}, ${(k = a.value) == null ? void 0 : k.height})` : `translate(0, ${x.value === "x" ? (B = a.value) == null ? void 0 : B.height : 0})`;
|
|
519
519
|
}), E = v(() => {
|
|
@@ -528,7 +528,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
528
528
|
() => f.value.withHover && T.value && i.value > -1
|
|
529
529
|
), C = v(
|
|
530
530
|
() => f.value.tickPadding + Se || 16
|
|
531
|
-
),
|
|
531
|
+
), U = v(() => x.value === "x" ? (
|
|
532
532
|
// If x axis, get the tick height
|
|
533
533
|
Math.max(
|
|
534
534
|
...(h.value || []).map(
|
|
@@ -549,7 +549,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
549
549
|
)
|
|
550
550
|
)
|
|
551
551
|
));
|
|
552
|
-
function
|
|
552
|
+
function X(R) {
|
|
553
553
|
const { showTicks: H } = f.value;
|
|
554
554
|
return H === !1 ? "" : F.value(R);
|
|
555
555
|
}
|
|
@@ -567,7 +567,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
567
567
|
function xe() {
|
|
568
568
|
m.value = E.value.map(
|
|
569
569
|
(R, H) => ({
|
|
570
|
-
value:
|
|
570
|
+
value: X(R),
|
|
571
571
|
group: r.getTickGroupAttributes(R, H),
|
|
572
572
|
ghost: r.getTickGhostAttributes(re(H)),
|
|
573
573
|
label: r.getTickLabelAttributes(),
|
|
@@ -583,7 +583,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
583
583
|
}
|
|
584
584
|
);
|
|
585
585
|
}
|
|
586
|
-
return
|
|
586
|
+
return K(u, be, { flush: "sync", immediate: !0 }), K(u, xe, { immediate: !0 }), K(h, xe), K(U, (R) => l("lume__internal--axis-size", R)), ye(() => Fe(g.value)), (R, H) => d(u) ? (_(), $("g", {
|
|
587
587
|
key: 0,
|
|
588
588
|
ref_key: "root",
|
|
589
589
|
ref: g,
|
|
@@ -593,7 +593,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
593
593
|
onMouseleave: H[1] || (H[1] = (k) => l("mouseleave", k))
|
|
594
594
|
}, [
|
|
595
595
|
x.value === "x" ? (_(), $("defs", Yn, Jn)) : z("", !0),
|
|
596
|
-
(_(!0), $(ee, null, W(m.value, (k, B) => (_(),
|
|
596
|
+
(_(!0), $(ee, null, W(m.value, (k, B) => (_(), J(d(kt), j({
|
|
597
597
|
key: `${k.value}_${B}`,
|
|
598
598
|
ref_for: !0,
|
|
599
599
|
ref_key: "tickRefs",
|
|
@@ -604,7 +604,7 @@ const At = /* @__PURE__ */ Z({
|
|
|
604
604
|
onMouseenter: (y) => q(B, k.value, y),
|
|
605
605
|
onClick: (y) => P(B, k.value, y)
|
|
606
606
|
}), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
|
|
607
|
-
w.value ? (_(),
|
|
607
|
+
w.value ? (_(), J(d(kt), j({ key: 1 }, m.value[d(i)], {
|
|
608
608
|
"with-gridlines": !1,
|
|
609
609
|
"is-hovered": "",
|
|
610
610
|
onClick: H[0] || (H[0] = (k) => P(
|
|
@@ -632,7 +632,7 @@ function qn(e, n, t, o) {
|
|
|
632
632
|
const l = M(0), u = M(0), a = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
|
|
633
633
|
return ye(() => {
|
|
634
634
|
l.value = t.value, u.value = o.value;
|
|
635
|
-
}),
|
|
635
|
+
}), K(t, (i) => l.value = i), K(o, (i) => u.value = i), { computedWidth: l, computedHeight: u, transformOrigin: a };
|
|
636
636
|
}
|
|
637
637
|
const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
|
|
638
638
|
__name: "lume-bar",
|
|
@@ -959,7 +959,7 @@ const To = /* @__PURE__ */ te(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e)
|
|
|
959
959
|
s.value.state.elements.reference = t.targetElement, s.value.update(), o("moved", t.targetElement);
|
|
960
960
|
}() : O());
|
|
961
961
|
}
|
|
962
|
-
return
|
|
962
|
+
return K(
|
|
963
963
|
() => t.targetElement,
|
|
964
964
|
(E, F) => {
|
|
965
965
|
!F && E ? f() : N();
|
|
@@ -976,7 +976,7 @@ const To = /* @__PURE__ */ te(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e)
|
|
|
976
976
|
}, [
|
|
977
977
|
S(E.$slots, "default", {}, () => [
|
|
978
978
|
S(E.$slots, "title", {}, () => [
|
|
979
|
-
g.value ? (_(),
|
|
979
|
+
g.value ? (_(), J(d(mo), { key: 0 }, {
|
|
980
980
|
default: V(() => [
|
|
981
981
|
fe(ae(A.value(e.title)), 1)
|
|
982
982
|
]),
|
|
@@ -985,7 +985,7 @@ const To = /* @__PURE__ */ te(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e)
|
|
|
985
985
|
], !0),
|
|
986
986
|
G("ul", Oo, [
|
|
987
987
|
S(E.$slots, "summary", {}, () => [
|
|
988
|
-
T.value ? (_(),
|
|
988
|
+
T.value ? (_(), J(d(_o), { key: 0 }, de({
|
|
989
989
|
default: V(() => [
|
|
990
990
|
fe(ae(x.value.label) + " ", 1)
|
|
991
991
|
]),
|
|
@@ -1002,7 +1002,7 @@ const To = /* @__PURE__ */ te(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e)
|
|
|
1002
1002
|
], !0),
|
|
1003
1003
|
T.value ? (_(), $("li", xo, Io)) : z("", !0),
|
|
1004
1004
|
S(E.$slots, "items", {}, () => [
|
|
1005
|
-
(_(!0), $(ee, null, W(d(u), (w) => (_(),
|
|
1005
|
+
(_(!0), $(ee, null, W(d(u), (w) => (_(), J(d(To), {
|
|
1006
1006
|
key: w.label,
|
|
1007
1007
|
color: w.color
|
|
1008
1008
|
}, {
|
|
@@ -1290,7 +1290,7 @@ const Ne = (e, n = !0) => ({
|
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
1292
|
return (p, r) => (_(), $("g", zo, [
|
|
1293
|
-
(_(!0), $(ee, null, W(s.value, (h, g) => (_(),
|
|
1293
|
+
(_(!0), $(ee, null, W(s.value, (h, g) => (_(), J(d(dt), j(c(g), {
|
|
1294
1294
|
key: `overlay-${g}`,
|
|
1295
1295
|
"data-j-lume-overlay-group": g,
|
|
1296
1296
|
transition: !1,
|
|
@@ -1371,7 +1371,7 @@ function Qt(e, n, t, o, l, u, a, i) {
|
|
|
1371
1371
|
cy: (u == null ? void 0 : u.value) === D.HORIZONTAL ? qe(o.value, A) : o.value(m)
|
|
1372
1372
|
}));
|
|
1373
1373
|
}
|
|
1374
|
-
return
|
|
1374
|
+
return K(
|
|
1375
1375
|
[t, o],
|
|
1376
1376
|
() => {
|
|
1377
1377
|
t.value && o.value && (a != null && a.value) && s.value && c(a.value);
|
|
@@ -1447,13 +1447,13 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1447
1447
|
}
|
|
1448
1448
|
},
|
|
1449
1449
|
setup(e, { emit: n }) {
|
|
1450
|
-
const t = e, o = ie(), l = n, { data: u, labels: a, color: i, options: s, orientation: c, chartType: p } = ne(t), r = M(-1), h = M(null), g = M(null), m = M([]), A = M(null), x = M(0), T = M(0), { allOptions: f } = pe(s), { internalData: O, computedLabels: N, containerSize: E, updateSize: F, chartID: w } = mt(u, a, i, f, c), { xScale: C, yScale:
|
|
1450
|
+
const t = e, o = ie(), l = n, { data: u, labels: a, color: i, options: s, orientation: c, chartType: p } = ne(t), r = M(-1), h = M(null), g = M(null), m = M([]), A = M(null), x = M(0), T = M(0), { allOptions: f } = pe(s), { internalData: O, computedLabels: N, containerSize: E, updateSize: F, chartID: w } = mt(u, a, i, f, c), { xScale: C, yScale: U } = Po(
|
|
1451
1451
|
O,
|
|
1452
1452
|
N,
|
|
1453
1453
|
E,
|
|
1454
1454
|
c,
|
|
1455
1455
|
f
|
|
1456
|
-
),
|
|
1456
|
+
), X = v(() => ({
|
|
1457
1457
|
top: Qo(f.value.margins),
|
|
1458
1458
|
right: qo(f.value.margins),
|
|
1459
1459
|
bottom: ea(f.value.margins, x.value),
|
|
@@ -1463,7 +1463,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1463
1463
|
return t.xScale ? It(t.xScale) ? t.xScale : (L = t.xScale) == null ? void 0 : L.call(t, O.value, a.value, E) : C.value;
|
|
1464
1464
|
}), P = v(() => {
|
|
1465
1465
|
var L;
|
|
1466
|
-
return t.yScale ? It(t.yScale) ? t.yScale : (L = t.yScale) == null ? void 0 : L.call(t, O.value, a.value, E) :
|
|
1466
|
+
return t.yScale ? It(t.yScale) ? t.yScale : (L = t.yScale) == null ? void 0 : L.call(t, O.value, a.value, E) : U.value;
|
|
1467
1467
|
}), re = v(() => ({
|
|
1468
1468
|
...f.value.xAxisOptions,
|
|
1469
1469
|
withHover: c.value === D.VERTICAL
|
|
@@ -1487,7 +1487,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1487
1487
|
), y = v(() => {
|
|
1488
1488
|
const L = [], { noBaseScales: b } = f.value;
|
|
1489
1489
|
return b || L.push(() => !!(q.value && P.value)), L.every((I) => I() === !0);
|
|
1490
|
-
}), { hasNegativeValues:
|
|
1490
|
+
}), { hasNegativeValues: Y } = Zo(O), { negativeBarAttributes: Q } = Uo(
|
|
1491
1491
|
E,
|
|
1492
1492
|
q,
|
|
1493
1493
|
P,
|
|
@@ -1547,27 +1547,27 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1547
1547
|
function _t({ index: L, value: b, event: I }) {
|
|
1548
1548
|
l("axis-click", { index: L, value: b, event: I });
|
|
1549
1549
|
}
|
|
1550
|
-
return
|
|
1550
|
+
return K(
|
|
1551
1551
|
u,
|
|
1552
1552
|
(L, b) => l("data-changed", { newValue: L, oldValue: b })
|
|
1553
|
-
),
|
|
1553
|
+
), K(
|
|
1554
1554
|
a,
|
|
1555
1555
|
(L, b) => l("labels-changed", { newValue: L, oldValue: b })
|
|
1556
|
-
),
|
|
1556
|
+
), K(B, (L) => L && _e(me.Empty), { immediate: !0 }), K(() => t.hoveredIndex, ht), K(
|
|
1557
1557
|
m,
|
|
1558
1558
|
(L) => {
|
|
1559
1559
|
L && t.hoveredIndex != null && r.value === -1 && ht(t.hoveredIndex);
|
|
1560
1560
|
},
|
|
1561
1561
|
{ flush: "post" }
|
|
1562
|
-
),
|
|
1562
|
+
), K(A, (L) => {
|
|
1563
1563
|
L === !1 && $e.opened && ft();
|
|
1564
1564
|
}), ye(async () => {
|
|
1565
1565
|
l("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
|
|
1566
|
-
}), Xe("chartID", w), Xe("isEmpty", B), Xe("tooltipAnchorAttributes", m), (L, b) => (_(),
|
|
1566
|
+
}), Xe("chartID", w), Xe("isEmpty", B), Xe("tooltipAnchorAttributes", m), (L, b) => (_(), J(d(uo), {
|
|
1567
1567
|
id: `lume-chart_${d(w)}`,
|
|
1568
1568
|
ref_key: "chartContainer",
|
|
1569
1569
|
ref: g,
|
|
1570
|
-
margins:
|
|
1570
|
+
margins: X.value,
|
|
1571
1571
|
"container-size": d(E),
|
|
1572
1572
|
"no-min-size": d(f).noMinSize,
|
|
1573
1573
|
"transparent-background": d(f).transparentBackground,
|
|
@@ -1588,7 +1588,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1588
1588
|
G("div", ua, [
|
|
1589
1589
|
k.value ? (_(), $("h3", ra, ae(R.value), 1)) : z("", !0),
|
|
1590
1590
|
S(L.$slots, "legend", { data: d(O) }, () => [
|
|
1591
|
-
d(f).withLegend !== !1 && d(f).legendPosition !== "bottom" ? (_(),
|
|
1591
|
+
d(f).withLegend !== !1 && d(f).legendPosition !== "bottom" ? (_(), J(d(Tt), {
|
|
1592
1592
|
key: 0,
|
|
1593
1593
|
data: d(O),
|
|
1594
1594
|
class: "lume-chart__legend",
|
|
@@ -1603,7 +1603,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1603
1603
|
]),
|
|
1604
1604
|
footer: V(() => [
|
|
1605
1605
|
H.value ? (_(), $("h3", ca, ae(be.value), 1)) : z("", !0),
|
|
1606
|
-
d(f).withLegend !== !1 && d(f).legendPosition == "bottom" ? (_(),
|
|
1606
|
+
d(f).withLegend !== !1 && d(f).legendPosition == "bottom" ? (_(), J(d(Tt), {
|
|
1607
1607
|
key: 1,
|
|
1608
1608
|
data: d(O),
|
|
1609
1609
|
class: "lume-chart__legend lume-chart__legend--bottom",
|
|
@@ -1626,7 +1626,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1626
1626
|
handleMouseLeave: () => A.value = !1,
|
|
1627
1627
|
options: d(f).tooltipOptions
|
|
1628
1628
|
}), () => [
|
|
1629
|
-
Ge.value ? (_(),
|
|
1629
|
+
Ge.value ? (_(), J(d(Eo), j({ key: 0 }, d($e), {
|
|
1630
1630
|
position: Ae.value,
|
|
1631
1631
|
title: d(N)[r.value],
|
|
1632
1632
|
items: d(Ie)(r.value),
|
|
@@ -1657,7 +1657,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1657
1657
|
]),
|
|
1658
1658
|
default: V(() => [
|
|
1659
1659
|
y.value ? (_(), $(ee, { key: 0 }, [
|
|
1660
|
-
d(
|
|
1660
|
+
d(Y) ? (_(), J(d(dt), j({ key: 0 }, d(Q), {
|
|
1661
1661
|
"class-list": "lume-fill--negative",
|
|
1662
1662
|
transition: !1,
|
|
1663
1663
|
"data-j-lume-chart__negative-values": ""
|
|
@@ -1697,7 +1697,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1697
1697
|
"onLume__internal-AxisSize": b[6] || (b[6] = (I) => T.value = I)
|
|
1698
1698
|
}, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
|
|
1699
1699
|
], !0) : z("", !0),
|
|
1700
|
-
d(f).withHover !== !1 ? (_(),
|
|
1700
|
+
d(f).withHover !== !1 ? (_(), J(d(Wo), {
|
|
1701
1701
|
key: 2,
|
|
1702
1702
|
data: d(O),
|
|
1703
1703
|
orientation: d(c),
|
|
@@ -1754,7 +1754,7 @@ const De = /* @__PURE__ */ te(da, [["__scopeId", "data-v-15099487"]]), Nt = 8, v
|
|
|
1754
1754
|
emits: ["lume__internal--node-resize"],
|
|
1755
1755
|
setup(e, { emit: n }) {
|
|
1756
1756
|
const t = e, o = n, l = M(null), u = M(t.maxWidth), a = M(1);
|
|
1757
|
-
return
|
|
1757
|
+
return K(
|
|
1758
1758
|
[l, () => t.maxWidth],
|
|
1759
1759
|
async ([i, s]) => {
|
|
1760
1760
|
if (i && s) {
|
|
@@ -1764,7 +1764,7 @@ const De = /* @__PURE__ */ te(da, [["__scopeId", "data-v-15099487"]]), Nt = 8, v
|
|
|
1764
1764
|
}
|
|
1765
1765
|
},
|
|
1766
1766
|
{ immediate: !0 }
|
|
1767
|
-
),
|
|
1767
|
+
), K(u, async (i) => {
|
|
1768
1768
|
i !== t.maxWidth && (await yt(), o("lume__internal--node-resize"));
|
|
1769
1769
|
}), (i, s) => e.maxWidth ? (_(), $("foreignObject", {
|
|
1770
1770
|
key: 1,
|
|
@@ -1981,7 +1981,7 @@ function Ba(e, n, t) {
|
|
|
1981
1981
|
const p = v(() => (o.value && l.value.forEach((r) => {
|
|
1982
1982
|
r.value === 0 && (r.fallbackColor = st.Grey), typeof r.offset == "number" && (s(r), c(r, o.value));
|
|
1983
1983
|
}), o.value));
|
|
1984
|
-
return
|
|
1984
|
+
return K([a, t], () => {
|
|
1985
1985
|
try {
|
|
1986
1986
|
const { x0: r, y0: h, x1: g, y1: m } = t.value;
|
|
1987
1987
|
o.value = a.value.extent([
|
|
@@ -2050,7 +2050,7 @@ function Ga(e, n, t) {
|
|
|
2050
2050
|
o.value,
|
|
2051
2051
|
t.value
|
|
2052
2052
|
) : n.value.highlightedElements === "closest" ? Ca(o.value, t.value) : Sa(o.value, t.value) : { nodes: {}, links: [] });
|
|
2053
|
-
return
|
|
2053
|
+
return K(l, (u, a) => {
|
|
2054
2054
|
if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
|
|
2055
2055
|
e.value.forEach((i) => {
|
|
2056
2056
|
i.node.id in a.nodes && Mt(
|
|
@@ -2106,12 +2106,12 @@ const ja = {
|
|
|
2106
2106
|
), E = v(() => {
|
|
2107
2107
|
if (!(!a.value.gradient || !g.value))
|
|
2108
2108
|
return g.value.links.reduce((k, B) => {
|
|
2109
|
-
const { source: y, target:
|
|
2109
|
+
const { source: y, target: Y } = B, Q = y.color || y.fallbackColor, ue = Y.deriveColorFromIncomingLinks ? Q : Y.color || Y.fallbackColor;
|
|
2110
2110
|
return k[B.id] = {
|
|
2111
2111
|
source: Q,
|
|
2112
2112
|
target: ue,
|
|
2113
2113
|
x1: y.x1,
|
|
2114
|
-
x2:
|
|
2114
|
+
x2: Y.x0
|
|
2115
2115
|
}, k;
|
|
2116
2116
|
}, {});
|
|
2117
2117
|
}), F = v(() => {
|
|
@@ -2119,11 +2119,11 @@ const ja = {
|
|
|
2119
2119
|
(y) => P(y)
|
|
2120
2120
|
), B = [];
|
|
2121
2121
|
return k.forEach((y) => {
|
|
2122
|
-
const
|
|
2122
|
+
const Y = [];
|
|
2123
2123
|
s.value.filter(({ link: Q }) => Q.target.id === y.node.id).reverse().reduce((Q, ue, $e, We) => {
|
|
2124
2124
|
const Ze = ue.link.target.y1 - ue.link.target.y0 > Ee;
|
|
2125
2125
|
let Ie, Ge, Ae;
|
|
2126
|
-
return Ze ? (Ie = ue.link.target.y1 - ue.link.target.y0, Ge = ue.link.value / y.node.value, Ae = Ge * Ie) : (Ie = Ee, Ae = Ee / We.length),
|
|
2126
|
+
return Ze ? (Ie = ue.link.target.y1 - ue.link.target.y0, Ge = ue.link.value / y.node.value, Ae = Ge * Ie) : (Ie = Ee, Ae = Ee / We.length), Y.push({
|
|
2127
2127
|
x: y.x,
|
|
2128
2128
|
y: y.y + Q,
|
|
2129
2129
|
height: Ae,
|
|
@@ -2133,7 +2133,7 @@ const ja = {
|
|
|
2133
2133
|
}), Q + Ae;
|
|
2134
2134
|
}, 0), B.push({
|
|
2135
2135
|
id: y.node.id,
|
|
2136
|
-
subNodes:
|
|
2136
|
+
subNodes: Y
|
|
2137
2137
|
});
|
|
2138
2138
|
}), B;
|
|
2139
2139
|
});
|
|
@@ -2143,10 +2143,10 @@ const ja = {
|
|
|
2143
2143
|
function C(k) {
|
|
2144
2144
|
return T.value.length > 0 && !T.value.includes(k.toString());
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function U(k) {
|
|
2147
2147
|
return T.value.length > 0 && T.value.includes(k.toString());
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function X(k) {
|
|
2150
2150
|
return A.value.links.length > 0 && !A.value.links.includes(k);
|
|
2151
2151
|
}
|
|
2152
2152
|
function q(k) {
|
|
@@ -2182,11 +2182,11 @@ const ja = {
|
|
|
2182
2182
|
const k = Ia(g.value, c.value);
|
|
2183
2183
|
r(k);
|
|
2184
2184
|
}
|
|
2185
|
-
return
|
|
2185
|
+
return K(g, (k) => {
|
|
2186
2186
|
i.value = wa(k.nodes), s.value = Ha(k.links).reverse(), m.value == null && t.hoveredElementId != null && be(t.hoveredElementId);
|
|
2187
|
-
}),
|
|
2187
|
+
}), K([t.containerSize, c], () => {
|
|
2188
2188
|
t.containerSize.width && t.containerSize.height && H();
|
|
2189
|
-
}),
|
|
2189
|
+
}), K(() => t.hoveredElementId, be), (k, B) => (_(), $("g", ja, [
|
|
2190
2190
|
O.value ? (_(), $("g", Va, [
|
|
2191
2191
|
(_(!0), $(ee, null, W(O.value, (y) => (_(), $("text", {
|
|
2192
2192
|
key: `header_${y.x}`,
|
|
@@ -2200,9 +2200,9 @@ const ja = {
|
|
|
2200
2200
|
onMouseleave: xe
|
|
2201
2201
|
}, [
|
|
2202
2202
|
d(a).gradient ? (_(), $("defs", Fa, [
|
|
2203
|
-
(_(!0), $(ee, null, W(E.value, (y,
|
|
2204
|
-
id: `${d(l)}_${
|
|
2205
|
-
key:
|
|
2203
|
+
(_(!0), $(ee, null, W(E.value, (y, Y) => (_(), $("linearGradient", {
|
|
2204
|
+
id: `${d(l)}_${Y}`,
|
|
2205
|
+
key: Y,
|
|
2206
2206
|
gradientUnits: "userSpaceOnUse",
|
|
2207
2207
|
x1: y.x1,
|
|
2208
2208
|
x2: y.x2
|
|
@@ -2226,14 +2226,14 @@ const ja = {
|
|
|
2226
2226
|
d: y.d,
|
|
2227
2227
|
"stroke-width": y.strokeWidth + d(va),
|
|
2228
2228
|
"data-j-alluvial-ghost": "",
|
|
2229
|
-
onClick: (
|
|
2230
|
-
onMouseover: (
|
|
2229
|
+
onClick: (Y) => o("link-click", { link: y.link, event: Y }),
|
|
2230
|
+
onMouseover: (Y) => re(y.link, Y)
|
|
2231
2231
|
}, null, 40, Ua))), 128)),
|
|
2232
2232
|
(_(!0), $(ee, null, W(s.value, (y) => (_(), $("path", {
|
|
2233
2233
|
key: `link_${y.id}`,
|
|
2234
2234
|
class: oe(["lume-alluvial-group__link", {
|
|
2235
2235
|
[`lume-stroke--${y.color}`]: !d(a).gradient && y.color,
|
|
2236
|
-
"lume-alluvial-group__link--faded":
|
|
2236
|
+
"lume-alluvial-group__link--faded": X(y.id),
|
|
2237
2237
|
"lume-alluvial-group__link--focused": q(y.id)
|
|
2238
2238
|
}]),
|
|
2239
2239
|
d: y.d,
|
|
@@ -2243,15 +2243,15 @@ const ja = {
|
|
|
2243
2243
|
"stroke-width": y.strokeWidth,
|
|
2244
2244
|
"data-j-alluvial-path": "",
|
|
2245
2245
|
"data-id": y.id,
|
|
2246
|
-
onClick: (
|
|
2247
|
-
onMouseover: (
|
|
2246
|
+
onClick: (Y) => o("link-click", { link: y.link, event: Y }),
|
|
2247
|
+
onMouseover: (Y) => re(y.link, Y)
|
|
2248
2248
|
}, null, 42, Xa))), 128))
|
|
2249
2249
|
], 32),
|
|
2250
|
-
(_(!0), $(ee, null, W(i.value, (y,
|
|
2251
|
-
key: `node-block_${
|
|
2250
|
+
(_(!0), $(ee, null, W(i.value, (y, Y) => (_(), $("g", {
|
|
2251
|
+
key: `node-block_${Y}`,
|
|
2252
2252
|
class: oe(["lume-alluvial-group__node", {
|
|
2253
2253
|
"lume-alluvial-group__node--faded": C(y.node.id),
|
|
2254
|
-
"lume-alluvial-group__node--focused":
|
|
2254
|
+
"lume-alluvial-group__node--focused": U(y.node.id)
|
|
2255
2255
|
}]),
|
|
2256
2256
|
"data-j-alluvial-group__node-block": ""
|
|
2257
2257
|
}, [
|
|
@@ -2355,7 +2355,7 @@ const qa = /* @__PURE__ */ te(Qa, [["__scopeId", "data-v-f004e5fb"]]), el = {
|
|
|
2355
2355
|
// Alluvial chart never uses base scales
|
|
2356
2356
|
};
|
|
2357
2357
|
}
|
|
2358
|
-
return (c, p) => (_(),
|
|
2358
|
+
return (c, p) => (_(), J(d(De), j(t, {
|
|
2359
2359
|
options: s(d(i)),
|
|
2360
2360
|
"data-j-alluvial-diagram": ""
|
|
2361
2361
|
}, le(d(o))), de({
|
|
@@ -2423,7 +2423,7 @@ const Pl = /* @__PURE__ */ Z({
|
|
|
2423
2423
|
return u.get(a.type);
|
|
2424
2424
|
}
|
|
2425
2425
|
});
|
|
2426
|
-
return (r, h) => (_(),
|
|
2426
|
+
return (r, h) => (_(), J(vn(p.value), j({ ...a, ...r.$attrs }, {
|
|
2427
2427
|
options: c(r.options)
|
|
2428
2428
|
}, le(d(i))), de({ _: 2 }, [
|
|
2429
2429
|
W(d(s), (g, m) => ({
|
|
@@ -2624,13 +2624,13 @@ function sl(e, n, t, o, l, u) {
|
|
|
2624
2624
|
return T ? s.value.reduce((O, N, E) => (E < T && N[f] < 0 && (O += N[f]), O), 0) : 0;
|
|
2625
2625
|
}
|
|
2626
2626
|
function x(T, f, O) {
|
|
2627
|
-
const { value: N, color: E } = T, F = N >= 0 ? p(N) : r(N), w = N >= 0 ? h(N) : g(N), C = N >= 0 ? m(f, O) : A(f, O), { x:
|
|
2627
|
+
const { value: N, color: E } = T, F = N >= 0 ? p(N) : r(N), w = N >= 0 ? h(N) : g(N), C = N >= 0 ? m(f, O) : A(f, O), { x: U, y: X } = c(N, O, C);
|
|
2628
2628
|
return {
|
|
2629
2629
|
classList: [`lume-fill--${E ?? e.value[f].color ?? Object.values(ce)[f]}`, ...u],
|
|
2630
2630
|
width: F,
|
|
2631
2631
|
height: w,
|
|
2632
|
-
x:
|
|
2633
|
-
y:
|
|
2632
|
+
x: U,
|
|
2633
|
+
y: X,
|
|
2634
2634
|
isFaded: l.value !== -1 && l.value !== O,
|
|
2635
2635
|
isNegative: N < 0
|
|
2636
2636
|
};
|
|
@@ -2692,15 +2692,15 @@ const cl = {
|
|
|
2692
2692
|
return (E, F) => (_(), $("g", cl, [
|
|
2693
2693
|
(_(!0), $(ee, null, W(d(m), (w, C) => (_(), $("g", {
|
|
2694
2694
|
key: C,
|
|
2695
|
-
onMouseenter: (
|
|
2695
|
+
onMouseenter: (U) => N(C)
|
|
2696
2696
|
}, [
|
|
2697
|
-
(_(!0), $(ee, null, W(w, (
|
|
2698
|
-
key: `bar-${
|
|
2697
|
+
(_(!0), $(ee, null, W(w, (U, X) => (_(), J(d(dt), j(f.value(U, X, C, w), {
|
|
2698
|
+
key: `bar-${X}`,
|
|
2699
2699
|
transition: O.value,
|
|
2700
2700
|
"data-j-lume-bar": "",
|
|
2701
2701
|
onClick: (q) => o("bar-click", {
|
|
2702
2702
|
index: C,
|
|
2703
|
-
datasetIndex:
|
|
2703
|
+
datasetIndex: X,
|
|
2704
2704
|
event: q
|
|
2705
2705
|
})
|
|
2706
2706
|
}), null, 16, ["transition", "onClick"]))), 128))
|
|
@@ -2730,7 +2730,7 @@ const cl = {
|
|
|
2730
2730
|
() => ml[u.value || D.VERTICAL]
|
|
2731
2731
|
// needs to be computed so that default options are reactive
|
|
2732
2732
|
), { allOptions: s } = pe(a, i);
|
|
2733
|
-
return (c, p) => (_(),
|
|
2733
|
+
return (c, p) => (_(), J(d(De), j(t, {
|
|
2734
2734
|
"chart-type": "single-bar",
|
|
2735
2735
|
options: d(s),
|
|
2736
2736
|
"data-j-single-bar-chart": ""
|
|
@@ -2775,7 +2775,7 @@ const cl = {
|
|
|
2775
2775
|
a,
|
|
2776
2776
|
i
|
|
2777
2777
|
);
|
|
2778
|
-
return (c, p) => (_(),
|
|
2778
|
+
return (c, p) => (_(), J(d(De), j(t, {
|
|
2779
2779
|
"chart-type": "grouped-bar",
|
|
2780
2780
|
options: d(s),
|
|
2781
2781
|
"data-j-grouped-bar-chart": ""
|
|
@@ -2824,7 +2824,7 @@ const cl = {
|
|
|
2824
2824
|
a,
|
|
2825
2825
|
i
|
|
2826
2826
|
);
|
|
2827
|
-
return (A, x) => (_(),
|
|
2827
|
+
return (A, x) => (_(), J(d(De), j(t, {
|
|
2828
2828
|
"chart-type": "stacked-bar",
|
|
2829
2829
|
options: d(p),
|
|
2830
2830
|
"x-scale": d(g),
|
|
@@ -2940,7 +2940,7 @@ function on(e) {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
function t(u, a, i, s) {
|
|
2942
2942
|
const r = Math.abs(u - a) / (i + 1) * (s + 1);
|
|
2943
|
-
return u > a ? u - r : u + r;
|
|
2943
|
+
return u == null && a == null ? null : u > a ? u - r : u + r;
|
|
2944
2944
|
}
|
|
2945
2945
|
function o(u) {
|
|
2946
2946
|
return function(i) {
|
|
@@ -2985,9 +2985,10 @@ function Ol(e, n) {
|
|
|
2985
2985
|
return (t, o) => e(n + (o - 1));
|
|
2986
2986
|
}
|
|
2987
2987
|
function xl(e, n, t, o) {
|
|
2988
|
-
|
|
2988
|
+
const l = hn().x(
|
|
2989
2989
|
ve(t) ? Ll(t, e) : Ol(t, e)
|
|
2990
|
-
).y((u) => o(u))
|
|
2990
|
+
).y((u) => o(u));
|
|
2991
|
+
return n.every((u) => u == null) ? null : l(n);
|
|
2991
2992
|
}
|
|
2992
2993
|
const $l = {
|
|
2993
2994
|
class: "lume-line-group",
|
|
@@ -3055,14 +3056,14 @@ const $l = {
|
|
|
3055
3056
|
return r.value[w].values;
|
|
3056
3057
|
}
|
|
3057
3058
|
function O(w, C) {
|
|
3058
|
-
var
|
|
3059
|
-
const
|
|
3060
|
-
(
|
|
3059
|
+
var X, q;
|
|
3060
|
+
const U = w === 0 ? [] : [
|
|
3061
|
+
(X = f(C)[w - 1]) == null ? void 0 : X.value,
|
|
3061
3062
|
(q = f(C)[w]) == null ? void 0 : q.value
|
|
3062
3063
|
];
|
|
3063
3064
|
return xl(
|
|
3064
3065
|
w,
|
|
3065
|
-
|
|
3066
|
+
U,
|
|
3066
3067
|
a.value,
|
|
3067
3068
|
i.value
|
|
3068
3069
|
) || "";
|
|
@@ -3074,11 +3075,11 @@ const $l = {
|
|
|
3074
3075
|
};
|
|
3075
3076
|
}
|
|
3076
3077
|
function E(w, C) {
|
|
3077
|
-
var
|
|
3078
|
-
const
|
|
3078
|
+
var X;
|
|
3079
|
+
const U = (X = f(C)[w]) == null ? void 0 : X.value;
|
|
3079
3080
|
return {
|
|
3080
3081
|
x: ve(a.value) ? t.xScale(x.value[w]) + A.value : t.xScale(w),
|
|
3081
|
-
y: i.value(
|
|
3082
|
+
y: U === null ? i.value(i.value.domain()[1]) : i.value(U)
|
|
3082
3083
|
};
|
|
3083
3084
|
}
|
|
3084
3085
|
function F(w) {
|
|
@@ -3089,36 +3090,36 @@ const $l = {
|
|
|
3089
3090
|
class: "lume-line-group__overlay-line",
|
|
3090
3091
|
"data-j-lume-line-group__overlay-line": ""
|
|
3091
3092
|
}), null, 16),
|
|
3092
|
-
(_(!0), $(ee, null, W(r.value, (
|
|
3093
|
-
key:
|
|
3093
|
+
(_(!0), $(ee, null, W(r.value, (U, X) => (_(), $("g", {
|
|
3094
|
+
key: U.label,
|
|
3094
3095
|
class: "lume-line-group__group"
|
|
3095
3096
|
}, [
|
|
3096
3097
|
G("g", Il, [
|
|
3097
|
-
(_(!0), $(ee, null, W(
|
|
3098
|
+
(_(!0), $(ee, null, W(U.values, (q, P) => (_(), J(d(yl), j(N(P), {
|
|
3098
3099
|
key: `line-${P}`,
|
|
3099
|
-
color:
|
|
3100
|
-
dashed:
|
|
3101
|
-
"path-definition": O(P,
|
|
3100
|
+
color: U.color,
|
|
3101
|
+
dashed: U.isDashed(P),
|
|
3102
|
+
"path-definition": O(P, X),
|
|
3102
3103
|
transition: e.transition,
|
|
3103
3104
|
width: d(u).lineWidth,
|
|
3104
|
-
onClick: (re) => o("line-click", { index: P, datasetIndex:
|
|
3105
|
+
onClick: (re) => o("line-click", { index: P, datasetIndex: X, event: re })
|
|
3105
3106
|
}), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
|
|
3106
3107
|
]),
|
|
3107
3108
|
T.value ? (_(), $("g", wl, [
|
|
3108
|
-
(_(!0), $(ee, null, W(
|
|
3109
|
+
(_(!0), $(ee, null, W(U.values, (q, P) => (_(), J(d(Tl), j(E(P, X), {
|
|
3109
3110
|
key: `point-${P}`,
|
|
3110
3111
|
active: F(P),
|
|
3111
|
-
color:
|
|
3112
|
+
color: U.color,
|
|
3112
3113
|
index: P,
|
|
3113
3114
|
radius: m.value,
|
|
3114
|
-
onClick: (re) => o("point-click", { index: P, datasetIndex:
|
|
3115
|
+
onClick: (re) => o("point-click", { index: P, datasetIndex: X, event: re })
|
|
3115
3116
|
}), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
|
|
3116
3117
|
])) : z("", !0)
|
|
3117
3118
|
]))), 128))
|
|
3118
3119
|
]));
|
|
3119
3120
|
}
|
|
3120
3121
|
});
|
|
3121
|
-
const an = /* @__PURE__ */ te(Nl, [["__scopeId", "data-v-
|
|
3122
|
+
const an = /* @__PURE__ */ te(Nl, [["__scopeId", "data-v-44ba7be1"]]), Dl = {
|
|
3122
3123
|
margins: Le.VERTICAL,
|
|
3123
3124
|
startOnZero: !0,
|
|
3124
3125
|
withTooltip: !0,
|
|
@@ -3131,7 +3132,7 @@ const an = /* @__PURE__ */ te(Nl, [["__scopeId", "data-v-649a5210"]]), Dl = {
|
|
|
3131
3132
|
},
|
|
3132
3133
|
setup(e, { emit: n }) {
|
|
3133
3134
|
const t = e, { componentEventPropagator: o } = ke(), l = Oe(ie()), { options: u } = ne(t), { allOptions: a } = pe(u, Dl);
|
|
3134
|
-
return (i, s) => (_(),
|
|
3135
|
+
return (i, s) => (_(), J(d(De), j(t, {
|
|
3135
3136
|
"chart-type": "line",
|
|
3136
3137
|
options: d(a),
|
|
3137
3138
|
"data-j-lume-line-chart": ""
|
|
@@ -3195,7 +3196,7 @@ const Ml = {
|
|
|
3195
3196
|
}
|
|
3196
3197
|
return n({
|
|
3197
3198
|
areaPathDefinition: r
|
|
3198
|
-
}), (x, T) => (_(),
|
|
3199
|
+
}), (x, T) => (_(), J(d(De), j(o, {
|
|
3199
3200
|
"chart-type": "line",
|
|
3200
3201
|
options: m(d(c)),
|
|
3201
3202
|
"x-scale": A
|