@adyen/lume-vue3 1.9.0 → 1.9.3
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-chart/lume-chart.vue.d.ts +3 -2
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
- package/dist/@types/utils/constants.d.ts +14 -2
- package/dist/@types/utils/constants.d.ts.map +1 -1
- package/dist/index.js +719 -717
- package/dist/index.js.map +1 -1
- package/dist/scss/main.scss +1 -1
- package/dist/styles/main.css +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { format as
|
|
3
|
-
import { createPopper as
|
|
4
|
-
import { sankeyLinkHorizontal as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as Z, ref as S, openBlock as y, createElementBlock as O, mergeProps as j, createElementVNode as R, toDisplayString as oe, createCommentVNode as z, isRef as Rt, computed as v, watch as U, toRefs as te, inject as Pe, reactive as Fe, onMounted as _e, unref as d, Fragment as q, renderList as W, createBlock as X, normalizeClass as ne, normalizeStyle as jt, onBeforeUnmount as Vt, watchEffect as Ct, renderSlot as M, createTextVNode as ce, useSlots as re, nextTick as Qe, withCtx as C, createSlots as de, pushScopeId as cn, popScopeId as dn, provide as Ke, createVNode as ie, toHandlers as ae, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as vn } from "vue";
|
|
2
|
+
import { format as mn, ticks as fn, scaleBand as Be, scaleLinear as Me, link as pn, line as hn, area as gn } from "d3";
|
|
3
|
+
import { createPopper as _n } from "@popperjs/core";
|
|
4
|
+
import { sankeyLinkHorizontal as yn, sankey as kn, sankeyJustify as bn } from "d3-sankey";
|
|
5
|
+
const An = {
|
|
6
6
|
class: "axis__tick-label lume-typography--axis",
|
|
7
7
|
"pointer-events": "all",
|
|
8
8
|
"data-j-axis__tick-label": ""
|
|
9
|
-
},
|
|
9
|
+
}, Tn = /* @__PURE__ */ Z({
|
|
10
10
|
__name: "lume-tick",
|
|
11
11
|
props: {
|
|
12
12
|
value: {
|
|
@@ -44,8 +44,8 @@ const Tn = {
|
|
|
44
44
|
},
|
|
45
45
|
emits: ["click", "mouseenter"],
|
|
46
46
|
setup(e, { expose: n, emit: t }) {
|
|
47
|
-
const o = t, a =
|
|
48
|
-
return n({ ref: a }), (u, l) => (y(),
|
|
47
|
+
const o = t, a = S(null);
|
|
48
|
+
return n({ ref: a }), (u, l) => (y(), O("g", j(e.group, {
|
|
49
49
|
class: ["axis__tick", {
|
|
50
50
|
"axis__tick--hovered": e.isHovered,
|
|
51
51
|
"axis__tick--hidden": e.isHidden
|
|
@@ -54,18 +54,18 @@ const Tn = {
|
|
|
54
54
|
onMouseenter: l[0] || (l[0] = (i) => o("mouseenter", i)),
|
|
55
55
|
onClick: l[1] || (l[1] = (i) => o("click", i))
|
|
56
56
|
}), [
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
R("g", An, [
|
|
58
|
+
R("rect", j(e.ghost, {
|
|
59
59
|
class: "axis__ghost",
|
|
60
60
|
fill: "url(#lume-tick-gradient)"
|
|
61
61
|
}), null, 16),
|
|
62
|
-
|
|
62
|
+
R("text", j(e.label, {
|
|
63
63
|
ref_key: "labelRef",
|
|
64
64
|
ref: a,
|
|
65
65
|
class: "axis__label"
|
|
66
66
|
}), oe(e.value), 17)
|
|
67
67
|
]),
|
|
68
|
-
e.withGridlines ? (y(),
|
|
68
|
+
e.withGridlines ? (y(), O("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : z("", !0)
|
|
69
69
|
], 16));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -74,7 +74,7 @@ const ee = (e, n) => {
|
|
|
74
74
|
for (const [o, a] of n)
|
|
75
75
|
t[o] = a;
|
|
76
76
|
return t;
|
|
77
|
-
}, bt = /* @__PURE__ */ ee(
|
|
77
|
+
}, bt = /* @__PURE__ */ ee(Tn, [["__scopeId", "data-v-59ddc0a6"]]), Ln = [
|
|
78
78
|
"controls",
|
|
79
79
|
"legend",
|
|
80
80
|
"axes",
|
|
@@ -90,7 +90,7 @@ function Ft(e) {
|
|
|
90
90
|
(n) => n.values.map((t) => t == null ? void 0 : t.value).flat()
|
|
91
91
|
).flat()) || [];
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function st(e) {
|
|
94
94
|
return e.length === 1;
|
|
95
95
|
}
|
|
96
96
|
function $n(e) {
|
|
@@ -98,29 +98,29 @@ function $n(e) {
|
|
|
98
98
|
(n) => "color" in n
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function qe(e) {
|
|
102
102
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
103
103
|
}
|
|
104
104
|
function zt(e, n) {
|
|
105
105
|
const t = { ...e };
|
|
106
106
|
return Object.entries(n).forEach(([o, a]) => {
|
|
107
|
-
t[o] =
|
|
107
|
+
t[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
|
|
108
108
|
}), t;
|
|
109
109
|
}
|
|
110
110
|
function xn(e) {
|
|
111
|
-
return e != null &&
|
|
111
|
+
return e != null && qe(e) && "value" in e;
|
|
112
112
|
}
|
|
113
113
|
function ve(e) {
|
|
114
114
|
return (e == null ? void 0 : e.bandwidth) !== void 0;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function On(e) {
|
|
117
117
|
return ve(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
|
|
118
118
|
}
|
|
119
119
|
function At(e) {
|
|
120
120
|
const [n, t] = e.domain();
|
|
121
121
|
return n == null || t == null || n === 0 && t === 0;
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const In = (e, n) => {
|
|
124
124
|
if (!e)
|
|
125
125
|
throw new Error("Data is not a valid array");
|
|
126
126
|
if (e.length === 0)
|
|
@@ -129,9 +129,9 @@ const wn = (e, n) => {
|
|
|
129
129
|
({ values: o }) => o.length - 1 >= n
|
|
130
130
|
) || ge(me.IndexExceedsLengthOfDataSets);
|
|
131
131
|
};
|
|
132
|
-
function
|
|
132
|
+
function wn(e, n) {
|
|
133
133
|
var t;
|
|
134
|
-
return
|
|
134
|
+
return In(e, n), ((t = e.reduce(
|
|
135
135
|
(o, a) => {
|
|
136
136
|
var u, l;
|
|
137
137
|
return (((u = o.values[n]) == null ? void 0 : u.value) ?? 0) > (((l = a.values[n]) == null ? void 0 : l.value) ?? 0) ? o : a;
|
|
@@ -139,7 +139,7 @@ function En(e, n) {
|
|
|
139
139
|
).values[n]) == null ? void 0 : t.value) || 0;
|
|
140
140
|
}
|
|
141
141
|
function Wt(e) {
|
|
142
|
-
const n =
|
|
142
|
+
const n = Rt(e) ? e.value : e;
|
|
143
143
|
if (!n)
|
|
144
144
|
throw new Error("No empty array can be created from specified data value");
|
|
145
145
|
const t = Math.max(
|
|
@@ -148,13 +148,13 @@ function Wt(e) {
|
|
|
148
148
|
);
|
|
149
149
|
return Array(t).fill(null);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function En(e) {
|
|
152
152
|
return ve(e) ? e.domain().length : Math.max(...e.domain());
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Nn(e, n) {
|
|
155
155
|
return (t) => Math.round(e * (1 - t) + n * t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Dn(e, n, t) {
|
|
158
158
|
const o = t ? e.length - n : n, a = e.slice(0, o);
|
|
159
159
|
return e.slice(o).concat(a);
|
|
160
160
|
}
|
|
@@ -168,34 +168,34 @@ function Te(e) {
|
|
|
168
168
|
}
|
|
169
169
|
return e;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Hn(e) {
|
|
172
172
|
return Object.assign(
|
|
173
173
|
{},
|
|
174
174
|
...Object.keys(e).map(
|
|
175
|
-
(n) =>
|
|
175
|
+
(n) => Ln.includes(n) ? {} : { [n]: e[n] }
|
|
176
176
|
)
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
-
const
|
|
179
|
+
const Bn = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce(
|
|
180
180
|
(n, t) => n += (t &= 63) < 36 ? t.toString(36) : t < 62 ? (t - 26).toString(36).toUpperCase() : t > 62 ? "-" : "_",
|
|
181
181
|
""
|
|
182
182
|
);
|
|
183
|
-
function
|
|
183
|
+
function ct(e, n) {
|
|
184
184
|
const t = n - e.length;
|
|
185
185
|
return t > 0 ? [...e, ...Array(t).fill({ value: null })] : e;
|
|
186
186
|
}
|
|
187
187
|
var me = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
188
188
|
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.Empty = "The dataset(s) provided are empty.", 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.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(me || {});
|
|
189
|
-
const
|
|
189
|
+
const Mn = "[lume] ";
|
|
190
190
|
function ge(e, n = !0) {
|
|
191
|
-
n && Pt() || console.warn(
|
|
191
|
+
n && Pt() || console.warn(Mn + "Warning: " + e);
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const Ve = (e) => {
|
|
194
194
|
let n = null;
|
|
195
195
|
switch (typeof e) {
|
|
196
196
|
case "string":
|
|
197
197
|
try {
|
|
198
|
-
n =
|
|
198
|
+
n = mn(e);
|
|
199
199
|
} catch {
|
|
200
200
|
ge(me.InvalidFormat), n = null;
|
|
201
201
|
}
|
|
@@ -210,7 +210,7 @@ const je = (e) => {
|
|
|
210
210
|
return n ? n(...o) : o[0];
|
|
211
211
|
}
|
|
212
212
|
return t;
|
|
213
|
-
},
|
|
213
|
+
}, Ge = () => ({
|
|
214
214
|
options: {
|
|
215
215
|
type: Object,
|
|
216
216
|
default: () => ({})
|
|
@@ -218,13 +218,13 @@ const je = (e) => {
|
|
|
218
218
|
});
|
|
219
219
|
function fe(e, n) {
|
|
220
220
|
return { allOptions: v(() => {
|
|
221
|
-
const o =
|
|
221
|
+
const o = Rt(n) ? n == null ? void 0 : n.value : n;
|
|
222
222
|
return o ? zt(o, e.value) : e.value;
|
|
223
223
|
}) };
|
|
224
224
|
}
|
|
225
|
-
const
|
|
226
|
-
function
|
|
227
|
-
const o =
|
|
225
|
+
const Gn = 0.2;
|
|
226
|
+
function Sn(e, n, t) {
|
|
227
|
+
const o = S(), a = v(() => Math.max(...e.value.range())), u = v(() => n.value.length);
|
|
228
228
|
function l() {
|
|
229
229
|
if (!n.value)
|
|
230
230
|
return;
|
|
@@ -232,7 +232,7 @@ function Cn(e, n, t) {
|
|
|
232
232
|
(f, r) => f + r.ref.getBoundingClientRect().width,
|
|
233
233
|
0
|
|
234
234
|
), s = Math.ceil(c / u.value);
|
|
235
|
-
o.value = s + s *
|
|
235
|
+
o.value = s + s * Gn;
|
|
236
236
|
}
|
|
237
237
|
function i(c) {
|
|
238
238
|
if (!n.value)
|
|
@@ -245,15 +245,15 @@ function Cn(e, n, t) {
|
|
|
245
245
|
}
|
|
246
246
|
return U(n, l), { showTick: i };
|
|
247
247
|
}
|
|
248
|
-
var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__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))(Zt || {}),
|
|
248
|
+
var se = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(se || {}), Zt = /* @__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))(Zt || {}), dt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(dt || {}), vt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(vt || {}), mt = /* @__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))(mt || {});
|
|
249
249
|
const B = {
|
|
250
250
|
HORIZONTAL: "horizontal",
|
|
251
251
|
VERTICAL: "vertical"
|
|
252
|
-
},
|
|
252
|
+
}, Rn = {
|
|
253
253
|
SINGLE: "single",
|
|
254
254
|
GROUPED: "grouped",
|
|
255
255
|
STACKED: "stacked"
|
|
256
|
-
}, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12,
|
|
256
|
+
}, Ut = "No data", Tt = 20, Xt = 0.33, Yt = 0.5, Kt = 12, Se = 8, jn = 1, Vn = [
|
|
257
257
|
"auto",
|
|
258
258
|
"auto-start",
|
|
259
259
|
"auto-end",
|
|
@@ -289,14 +289,14 @@ const Jt = {
|
|
|
289
289
|
tickFormat: null,
|
|
290
290
|
/** Space between the tick label and the axis line. */
|
|
291
291
|
tickPadding: 8
|
|
292
|
-
},
|
|
292
|
+
}, Cn = {
|
|
293
293
|
...Jt,
|
|
294
294
|
withTitle: !1,
|
|
295
295
|
skip: !0
|
|
296
|
-
},
|
|
296
|
+
}, Pn = {
|
|
297
297
|
...Jt,
|
|
298
298
|
gridLines: !0
|
|
299
|
-
},
|
|
299
|
+
}, Fn = function(e, n, t) {
|
|
300
300
|
const o = v(() => e.value.step() * e.value.paddingInner() / 2);
|
|
301
301
|
function a(c, s) {
|
|
302
302
|
return {
|
|
@@ -312,7 +312,7 @@ const Jt = {
|
|
|
312
312
|
return {
|
|
313
313
|
x: -(s - e.value.step()) / 2,
|
|
314
314
|
width: s,
|
|
315
|
-
height: t.value.tickPadding + Kt +
|
|
315
|
+
height: t.value.tickPadding + Kt + Se
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
function l() {
|
|
@@ -338,7 +338,7 @@ const Jt = {
|
|
|
338
338
|
getTickGroupAttributes: a,
|
|
339
339
|
getTickLabelAttributes: i
|
|
340
340
|
};
|
|
341
|
-
},
|
|
341
|
+
}, zn = function(e, n, t) {
|
|
342
342
|
const o = v(() => e.value.step() * e.value.paddingInner() / 2);
|
|
343
343
|
function a(c, s) {
|
|
344
344
|
return {
|
|
@@ -347,7 +347,7 @@ const Jt = {
|
|
|
347
347
|
}
|
|
348
348
|
function u(c) {
|
|
349
349
|
var f;
|
|
350
|
-
const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding +
|
|
350
|
+
const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + t.value.tickPadding + Se;
|
|
351
351
|
return {
|
|
352
352
|
x: -s,
|
|
353
353
|
width: s,
|
|
@@ -376,7 +376,7 @@ const Jt = {
|
|
|
376
376
|
getTickGroupAttributes: a,
|
|
377
377
|
getTickLabelAttributes: i
|
|
378
378
|
};
|
|
379
|
-
},
|
|
379
|
+
}, Wn = function(e, n, t) {
|
|
380
380
|
const o = v(() => {
|
|
381
381
|
const c = e.value.ticks();
|
|
382
382
|
return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
|
|
@@ -388,7 +388,7 @@ const Jt = {
|
|
|
388
388
|
}
|
|
389
389
|
function u() {
|
|
390
390
|
return {
|
|
391
|
-
height: t.value.tickPadding + Kt +
|
|
391
|
+
height: t.value.tickPadding + Kt + Se,
|
|
392
392
|
width: o.value,
|
|
393
393
|
x: -(o.value / 2)
|
|
394
394
|
};
|
|
@@ -411,7 +411,7 @@ const Jt = {
|
|
|
411
411
|
getTickGroupAttributes: a,
|
|
412
412
|
getTickLabelAttributes: i
|
|
413
413
|
};
|
|
414
|
-
},
|
|
414
|
+
}, Zn = function(e, n, t) {
|
|
415
415
|
const o = v(() => {
|
|
416
416
|
const c = e.value.ticks();
|
|
417
417
|
return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
|
|
@@ -423,7 +423,7 @@ const Jt = {
|
|
|
423
423
|
}
|
|
424
424
|
function u(c) {
|
|
425
425
|
var f;
|
|
426
|
-
const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding +
|
|
426
|
+
const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + t.value.tickPadding + Se;
|
|
427
427
|
return {
|
|
428
428
|
width: s,
|
|
429
429
|
height: o.value,
|
|
@@ -449,33 +449,33 @@ const Jt = {
|
|
|
449
449
|
getTickGroupAttributes: a,
|
|
450
450
|
getTickLabelAttributes: i
|
|
451
451
|
};
|
|
452
|
-
},
|
|
453
|
-
"x-band-scale-axis":
|
|
454
|
-
"y-band-scale-axis":
|
|
455
|
-
"x-linear-scale-axis":
|
|
456
|
-
"y-linear-scale-axis":
|
|
457
|
-
},
|
|
458
|
-
/* @__PURE__ */
|
|
452
|
+
}, Un = {
|
|
453
|
+
"x-band-scale-axis": Fn,
|
|
454
|
+
"y-band-scale-axis": zn,
|
|
455
|
+
"x-linear-scale-axis": Wn,
|
|
456
|
+
"y-linear-scale-axis": Zn
|
|
457
|
+
}, Xn = ["transform"], Yn = { key: 0 }, Kn = /* @__PURE__ */ R("linearGradient", { id: "lume-tick-gradient" }, [
|
|
458
|
+
/* @__PURE__ */ R("stop", {
|
|
459
459
|
offset: "0%",
|
|
460
460
|
"stop-color": "rgba(255,255,255,0)"
|
|
461
461
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ R("stop", {
|
|
463
463
|
offset: "10%",
|
|
464
464
|
"stop-color": "var(--lume-chart-background-color)"
|
|
465
465
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ R("stop", {
|
|
467
467
|
offset: "90%",
|
|
468
468
|
"stop-color": "var(--lume-chart-background-color)"
|
|
469
469
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ R("stop", {
|
|
471
471
|
offset: "100%",
|
|
472
472
|
"stop-color": "rgba(255,255,255,0)"
|
|
473
473
|
})
|
|
474
|
-
], -1),
|
|
475
|
-
|
|
474
|
+
], -1), Jn = [
|
|
475
|
+
Kn
|
|
476
476
|
];
|
|
477
|
-
var Qt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Qt || {}), qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(qt || {}),
|
|
478
|
-
const Lt = /* @__PURE__ */
|
|
477
|
+
var Qt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Qt || {}), qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(qt || {}), et = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(et || {});
|
|
478
|
+
const Lt = /* @__PURE__ */ Z({
|
|
479
479
|
__name: "lume-axis",
|
|
480
480
|
props: {
|
|
481
481
|
scale: {
|
|
@@ -485,7 +485,7 @@ const Lt = /* @__PURE__ */ W({
|
|
|
485
485
|
type: {
|
|
486
486
|
type: String,
|
|
487
487
|
default: void 0,
|
|
488
|
-
validator: (e) => e in
|
|
488
|
+
validator: (e) => e in et
|
|
489
489
|
},
|
|
490
490
|
position: {
|
|
491
491
|
type: String,
|
|
@@ -504,43 +504,43 @@ const Lt = /* @__PURE__ */ W({
|
|
|
504
504
|
type: String,
|
|
505
505
|
default: B.VERTICAL
|
|
506
506
|
},
|
|
507
|
-
...
|
|
507
|
+
...Ge()
|
|
508
508
|
},
|
|
509
509
|
emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
|
|
510
510
|
setup(e, { emit: n }) {
|
|
511
|
-
const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty",
|
|
512
|
-
() => o.type ?
|
|
513
|
-
),
|
|
511
|
+
const o = e, a = n, { scale: u, containerSize: l, hoveredIndex: i, options: c, orientation: s } = te(o), f = Pe("isEmpty", S(!1)), r = Fe({}), m = S(null), g = S(null), p = S(null), b = v(
|
|
512
|
+
() => o.type ? et[o.type] : o.position
|
|
513
|
+
), $ = v(
|
|
514
514
|
() => o.type || (b.value === "left" ? "y" : "x")
|
|
515
515
|
), A = v(
|
|
516
|
-
() =>
|
|
516
|
+
() => $.value === "x" && s.value === B.VERTICAL || $.value === "y" && s.value === B.HORIZONTAL
|
|
517
517
|
), { allOptions: h } = fe(
|
|
518
518
|
c,
|
|
519
|
-
|
|
520
|
-
), { showTick:
|
|
521
|
-
var
|
|
522
|
-
return
|
|
519
|
+
$.value === "x" ? Cn : Pn
|
|
520
|
+
), { showTick: x } = Sn(u, m, h), N = v(() => {
|
|
521
|
+
var G, k, E, _;
|
|
522
|
+
return $.value === "y" && f.value && (!u.value || At(u.value)) ? `translate(0, ${((G = l.value) == null ? void 0 : G.height) / 2})` : $.value === "x" && f.value && (!u.value || At(u.value)) ? `translate(-${((k = l.value) == null ? void 0 : k.width) / 2}, ${(E = l.value) == null ? void 0 : E.height})` : `translate(0, ${$.value === "x" ? (_ = l.value) == null ? void 0 : _.height : 0})`;
|
|
523
523
|
}), D = v(() => {
|
|
524
524
|
if (!u.value)
|
|
525
525
|
return [];
|
|
526
526
|
if (ve(u.value))
|
|
527
527
|
return u.value.labels || u.value.domain();
|
|
528
|
-
const { tickCount:
|
|
529
|
-
return
|
|
528
|
+
const { tickCount: G } = h.value, [k, E] = u.value.domain();
|
|
529
|
+
return fn(k, E, G);
|
|
530
530
|
}), P = v(() => {
|
|
531
|
-
const { tickFormat:
|
|
532
|
-
return
|
|
531
|
+
const { tickFormat: G } = h.value;
|
|
532
|
+
return Ve(G);
|
|
533
533
|
}), w = v(
|
|
534
534
|
() => h.value.withHover && A.value && i.value > -1
|
|
535
535
|
), H = v(
|
|
536
|
-
() => h.value.tickPadding +
|
|
537
|
-
), Y = v(() =>
|
|
536
|
+
() => h.value.tickPadding + Se || 16
|
|
537
|
+
), Y = v(() => $.value === "x" ? (
|
|
538
538
|
// If x axis, get the tick height
|
|
539
539
|
Math.max(
|
|
540
540
|
...(m.value || []).map(
|
|
541
|
-
(
|
|
541
|
+
(G) => {
|
|
542
542
|
var k, E;
|
|
543
|
-
return ((E = (k =
|
|
543
|
+
return ((E = (k = G.ref).getBBox) == null ? void 0 : E.call(k).height) + H.value;
|
|
544
544
|
}
|
|
545
545
|
)
|
|
546
546
|
)
|
|
@@ -548,33 +548,33 @@ const Lt = /* @__PURE__ */ W({
|
|
|
548
548
|
// If y axis, get the tick width
|
|
549
549
|
Math.max(
|
|
550
550
|
...(m.value || []).map(
|
|
551
|
-
(
|
|
551
|
+
(G) => {
|
|
552
552
|
var k, E;
|
|
553
|
-
return ((E = (k =
|
|
553
|
+
return ((E = (k = G.ref).getBBox) == null ? void 0 : E.call(k).width) + H.value;
|
|
554
554
|
}
|
|
555
555
|
)
|
|
556
556
|
)
|
|
557
557
|
));
|
|
558
|
-
function K(
|
|
558
|
+
function K(G) {
|
|
559
559
|
const { showTicks: k } = h.value;
|
|
560
|
-
return k === !1 ? "" : P.value(
|
|
560
|
+
return k === !1 ? "" : P.value(G);
|
|
561
561
|
}
|
|
562
|
-
function Q(
|
|
563
|
-
a("mouseenter", { index: A.value ?
|
|
562
|
+
function Q(G, k, E) {
|
|
563
|
+
a("mouseenter", { index: A.value ? G : null, value: k, event: E });
|
|
564
564
|
}
|
|
565
|
-
function F(
|
|
566
|
-
a("click", { index:
|
|
565
|
+
function F(G, k, E) {
|
|
566
|
+
a("click", { index: G, value: k, event: E });
|
|
567
567
|
}
|
|
568
|
-
function ue(
|
|
568
|
+
function ue(G) {
|
|
569
569
|
var k;
|
|
570
570
|
if (!(!m.value || !m.value.length))
|
|
571
|
-
return (k = m.value[
|
|
571
|
+
return (k = m.value[G]) == null ? void 0 : k.ref;
|
|
572
572
|
}
|
|
573
573
|
function Le() {
|
|
574
574
|
p.value = D.value.map(
|
|
575
|
-
(
|
|
576
|
-
value: K(
|
|
577
|
-
group: r.getTickGroupAttributes(
|
|
575
|
+
(G, k) => ({
|
|
576
|
+
value: K(G),
|
|
577
|
+
group: r.getTickGroupAttributes(G, k),
|
|
578
578
|
ghost: r.getTickGhostAttributes(ue(k)),
|
|
579
579
|
label: r.getTickLabelAttributes(),
|
|
580
580
|
gridline: r.getGridLinesAttributes()
|
|
@@ -582,19 +582,19 @@ const Lt = /* @__PURE__ */ W({
|
|
|
582
582
|
);
|
|
583
583
|
}
|
|
584
584
|
function ke() {
|
|
585
|
-
p.value && p.value.map((
|
|
585
|
+
p.value && p.value.map((G) => (G.gridline = r.getGridLinesAttributes(), G));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function $e() {
|
|
588
588
|
if (!u.value)
|
|
589
589
|
return;
|
|
590
|
-
const
|
|
590
|
+
const G = u.value.step ? "bandScale" : "linearScale", k = Un[`${$.value}-${Qt[G]}`];
|
|
591
591
|
Object.entries(k(u, l, h) || []).forEach(
|
|
592
592
|
([E, _]) => {
|
|
593
593
|
r[E] = _;
|
|
594
594
|
}
|
|
595
595
|
);
|
|
596
596
|
}
|
|
597
|
-
return U(u,
|
|
597
|
+
return U(u, $e, { flush: "sync", immediate: !0 }), U(u, Le, { immediate: !0 }), U(m, Le), U(Y, (G) => a("lume__internal--axis-size", G)), U(o.containerSize, ke), _e(() => ze(g.value)), (G, k) => d(u) ? (y(), O("g", {
|
|
598
598
|
key: 0,
|
|
599
599
|
ref_key: "root",
|
|
600
600
|
ref: g,
|
|
@@ -603,19 +603,19 @@ const Lt = /* @__PURE__ */ W({
|
|
|
603
603
|
"data-j-axis": "",
|
|
604
604
|
onMouseleave: k[1] || (k[1] = (E) => a("mouseleave", E))
|
|
605
605
|
}, [
|
|
606
|
-
|
|
607
|
-
(y(!0),
|
|
606
|
+
$.value === "x" ? (y(), O("defs", Yn, Jn)) : z("", !0),
|
|
607
|
+
(y(!0), O(q, null, W(p.value, (E, _) => (y(), X(d(bt), j({
|
|
608
608
|
key: `${E.value}_${_}`,
|
|
609
609
|
ref_for: !0,
|
|
610
610
|
ref_key: "tickRefs",
|
|
611
611
|
ref: m
|
|
612
612
|
}, E, {
|
|
613
|
-
"is-hidden": d(h).skip && !d(
|
|
613
|
+
"is-hidden": d(h).skip && !d(x)(_),
|
|
614
614
|
"with-gridlines": d(h).gridLines,
|
|
615
|
-
onMouseenter: (
|
|
616
|
-
onClick: (
|
|
615
|
+
onMouseenter: (V) => Q(_, E.value, V),
|
|
616
|
+
onClick: (V) => F(_, E.value, V)
|
|
617
617
|
}), null, 16, ["is-hidden", "with-gridlines", "onMouseenter", "onClick"]))), 128)),
|
|
618
|
-
w.value ? (y(), X(d(bt),
|
|
618
|
+
w.value ? (y(), X(d(bt), j({ key: 1 }, p.value[d(i)], {
|
|
619
619
|
"with-gridlines": !1,
|
|
620
620
|
"is-hovered": "",
|
|
621
621
|
onClick: k[0] || (k[0] = (E) => F(
|
|
@@ -623,11 +623,11 @@ const Lt = /* @__PURE__ */ W({
|
|
|
623
623
|
p.value[d(i)].value,
|
|
624
624
|
E
|
|
625
625
|
))
|
|
626
|
-
}), null, 16)) :
|
|
627
|
-
], 40,
|
|
626
|
+
}), null, 16)) : z("", !0)
|
|
627
|
+
], 40, Xn)) : z("", !0);
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
|
-
function
|
|
630
|
+
function Qn(e, n, t, o) {
|
|
631
631
|
const a = v(() => t.value > 0 && t.value < 1), u = v(
|
|
632
632
|
() => o.value > 0 && o.value < 1
|
|
633
633
|
), l = v(
|
|
@@ -639,13 +639,13 @@ function qn(e, n, t, o) {
|
|
|
639
639
|
);
|
|
640
640
|
return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: u };
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
const a =
|
|
642
|
+
function qn(e, n, t, o) {
|
|
643
|
+
const a = S(0), u = S(0), l = v(() => `${e.value + t.value / 2}px ${n.value + o.value / 2}px`);
|
|
644
644
|
return _e(() => {
|
|
645
645
|
a.value = t.value, u.value = o.value;
|
|
646
646
|
}), U(t, (i) => a.value = i), U(o, (i) => u.value = i), { computedWidth: a, computedHeight: u, transformOrigin: l };
|
|
647
647
|
}
|
|
648
|
-
const
|
|
648
|
+
const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
|
|
649
649
|
__name: "lume-bar",
|
|
650
650
|
props: {
|
|
651
651
|
x: {
|
|
@@ -683,10 +683,10 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
|
|
|
683
683
|
},
|
|
684
684
|
emits: ["click", "mouseover", "mouseleave"],
|
|
685
685
|
setup(e, { emit: n }) {
|
|
686
|
-
const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f =
|
|
686
|
+
const t = e, o = n, { x: a, y: u, width: l, height: i, transition: c, classList: s } = te(t), f = S(null), r = v(
|
|
687
687
|
() => typeof s.value == "string" ? [s.value] : s.value
|
|
688
|
-
), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p =
|
|
689
|
-
return _e(() => ze(f.value)), (P, w) => (y(),
|
|
688
|
+
), m = v(() => c.value === "width"), g = v(() => c.value === "height"), p = qn(a, u, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: A, shouldHaveMinHeight: h } = Qn(a, u, l, i), x = v(() => A.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => h.value ? 1 : (g.value ? p.computedHeight : i).value), D = m.value || g.value ? p.transformOrigin : null;
|
|
689
|
+
return _e(() => ze(f.value)), (P, w) => (y(), O("rect", {
|
|
690
690
|
ref_key: "root",
|
|
691
691
|
ref: f,
|
|
692
692
|
class: ne(["lume-bar", [
|
|
@@ -698,21 +698,21 @@ const to = ["x", "y", "width", "height"], no = /* @__PURE__ */ W({
|
|
|
698
698
|
},
|
|
699
699
|
...r.value
|
|
700
700
|
]]),
|
|
701
|
-
style:
|
|
701
|
+
style: jt({ transformOrigin: d(D) }),
|
|
702
702
|
x: d(b),
|
|
703
|
-
y: d(
|
|
704
|
-
width:
|
|
703
|
+
y: d($),
|
|
704
|
+
width: x.value,
|
|
705
705
|
height: N.value,
|
|
706
706
|
"data-j-bar": "",
|
|
707
707
|
onClick: w[0] || (w[0] = (H) => o("click", H)),
|
|
708
708
|
onMouseover: w[1] || (w[1] = (H) => o("mouseover", H)),
|
|
709
709
|
onMouseleave: w[2] || (w[2] = (H) => o("mouseleave", H))
|
|
710
|
-
}, null, 46,
|
|
710
|
+
}, null, 46, eo));
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
|
-
const
|
|
714
|
-
function
|
|
715
|
-
const e =
|
|
713
|
+
const ft = /* @__PURE__ */ ee(to, [["__scopeId", "data-v-8e8f732a"]]);
|
|
714
|
+
function no() {
|
|
715
|
+
const e = S(), n = Fe({
|
|
716
716
|
dimensions: {}
|
|
717
717
|
}), t = new ResizeObserver((o) => {
|
|
718
718
|
o.forEach((a) => {
|
|
@@ -721,11 +721,11 @@ function oo() {
|
|
|
721
721
|
});
|
|
722
722
|
return _e(() => {
|
|
723
723
|
t.observe(e.value);
|
|
724
|
-
}),
|
|
724
|
+
}), Vt(() => {
|
|
725
725
|
t.unobserve(e.value);
|
|
726
726
|
}), { resizeState: n, resizeRef: e };
|
|
727
727
|
}
|
|
728
|
-
const
|
|
728
|
+
const oo = ["height"], ao = ["transform"], lo = /* @__PURE__ */ Z({
|
|
729
729
|
__name: "lume-chart-container",
|
|
730
730
|
props: {
|
|
731
731
|
margins: {
|
|
@@ -747,10 +747,10 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
|
|
|
747
747
|
},
|
|
748
748
|
emits: ["click", "mouseenter", "mouseleave", "resize"],
|
|
749
749
|
setup(e, { emit: n }) {
|
|
750
|
-
const t = e, o = n, { margins: a, containerSize: u } = te(t), l =
|
|
750
|
+
const t = e, o = n, { margins: a, containerSize: u } = te(t), l = S(null), { resizeRef: i, resizeState: c } = no(), s = v(
|
|
751
751
|
() => u.value.height + a.value.top + a.value.bottom
|
|
752
752
|
);
|
|
753
|
-
return
|
|
753
|
+
return Ct(() => {
|
|
754
754
|
if (!l.value)
|
|
755
755
|
return;
|
|
756
756
|
const { width: f } = c.dimensions, { height: r } = l.value.getBoundingClientRect();
|
|
@@ -763,7 +763,7 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
|
|
|
763
763
|
outerHeight: r
|
|
764
764
|
};
|
|
765
765
|
o("resize", p);
|
|
766
|
-
}), (f, r) => (y(),
|
|
766
|
+
}), (f, r) => (y(), O("div", {
|
|
767
767
|
ref_key: "resizeRef",
|
|
768
768
|
ref: i,
|
|
769
769
|
class: ne(["lume-chart-container", {
|
|
@@ -772,7 +772,7 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
|
|
|
772
772
|
"data-j-chart-container": ""
|
|
773
773
|
}, [
|
|
774
774
|
M(f.$slots, "header", {}, void 0, !0),
|
|
775
|
-
(y(),
|
|
775
|
+
(y(), O("svg", {
|
|
776
776
|
ref_key: "root",
|
|
777
777
|
ref: l,
|
|
778
778
|
class: ne(["lume-chart-container__svg", {
|
|
@@ -784,20 +784,20 @@ const ao = ["height"], lo = ["transform"], uo = /* @__PURE__ */ W({
|
|
|
784
784
|
onMouseenter: r[1] || (r[1] = (m) => o("mouseenter", m)),
|
|
785
785
|
onMouseleave: r[2] || (r[2] = (m) => o("mouseleave", m))
|
|
786
786
|
}, [
|
|
787
|
-
|
|
787
|
+
R("g", {
|
|
788
788
|
transform: `translate(${d(a).left}, ${d(a).top})`,
|
|
789
789
|
class: "lume-chart-container__group",
|
|
790
790
|
"data-j-chart-container__group": ""
|
|
791
791
|
}, [
|
|
792
792
|
M(f.$slots, "default", {}, void 0, !0)
|
|
793
|
-
], 8,
|
|
794
|
-
], 42,
|
|
793
|
+
], 8, ao)
|
|
794
|
+
], 42, oo)),
|
|
795
795
|
M(f.$slots, "footer", {}, void 0, !0),
|
|
796
796
|
M(f.$slots, "extra", {}, void 0, !0)
|
|
797
797
|
], 2));
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
|
-
const
|
|
800
|
+
const uo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-2c7d0302"]]), ro = ["onClick", "onMouseenter"], io = /* @__PURE__ */ Z({
|
|
801
801
|
__name: "lume-chart-legend",
|
|
802
802
|
props: {
|
|
803
803
|
data: {
|
|
@@ -809,12 +809,12 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
|
|
|
809
809
|
emits: ["click", "mouseenter", "mouseleave"],
|
|
810
810
|
setup(e, { emit: n }) {
|
|
811
811
|
const t = n;
|
|
812
|
-
return (o, a) => (y(),
|
|
812
|
+
return (o, a) => (y(), O("div", {
|
|
813
813
|
class: "lume-chart-legend",
|
|
814
814
|
"data-j-chart-legend": "",
|
|
815
815
|
onMouseleave: a[0] || (a[0] = (u) => t("mouseleave"))
|
|
816
816
|
}, [
|
|
817
|
-
(y(!0),
|
|
817
|
+
(y(!0), O(q, null, W(e.data, (u, l) => (y(), O("div", {
|
|
818
818
|
key: `legend-item-${l}`,
|
|
819
819
|
class: "lume-chart-legend__item lume-typography--body",
|
|
820
820
|
tabindex: "0",
|
|
@@ -822,47 +822,47 @@ const ro = /* @__PURE__ */ ee(uo, [["__scopeId", "data-v-2c7d0302"]]), io = ["on
|
|
|
822
822
|
onClick: (i) => t("click", { index: l, dataset: u, event: i }),
|
|
823
823
|
onMouseenter: (i) => t("mouseenter", { index: l, dataset: u, event: i })
|
|
824
824
|
}, [
|
|
825
|
-
|
|
825
|
+
R("span", {
|
|
826
826
|
class: ne(["lume-chart-legend__symbol", `lume-background-color--${u.color}`]),
|
|
827
827
|
"data-j-chart-legend__symbol": ""
|
|
828
828
|
}, null, 2),
|
|
829
829
|
ce(" " + oe(u.label || l), 1)
|
|
830
|
-
], 40,
|
|
830
|
+
], 40, ro))), 128))
|
|
831
831
|
], 32));
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
|
-
const
|
|
835
|
-
const
|
|
834
|
+
const $t = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-f8ebd3b9"]]);
|
|
835
|
+
const so = {}, co = {
|
|
836
836
|
class: "lume-tooltip__title",
|
|
837
837
|
"data-j-tooltip__title": ""
|
|
838
838
|
};
|
|
839
|
-
function
|
|
840
|
-
return y(),
|
|
839
|
+
function vo(e, n) {
|
|
840
|
+
return y(), O("div", co, [
|
|
841
841
|
M(e.$slots, "default", {}, void 0, !0)
|
|
842
842
|
]);
|
|
843
843
|
}
|
|
844
|
-
const
|
|
845
|
-
const
|
|
844
|
+
const mo = /* @__PURE__ */ ee(so, [["render", vo], ["__scopeId", "data-v-8af3fac6"]]);
|
|
845
|
+
const fo = {}, po = {
|
|
846
846
|
class: "lume-tooltip__item",
|
|
847
847
|
"data-j-tooltip__summary-item": ""
|
|
848
|
-
},
|
|
849
|
-
function
|
|
850
|
-
return y(),
|
|
851
|
-
|
|
848
|
+
}, ho = { class: "lume-tooltip__value" };
|
|
849
|
+
function go(e, n) {
|
|
850
|
+
return y(), O("li", po, [
|
|
851
|
+
R("span", null, [
|
|
852
852
|
M(e.$slots, "default", {}, void 0, !0)
|
|
853
853
|
]),
|
|
854
|
-
|
|
854
|
+
R("strong", ho, [
|
|
855
855
|
M(e.$slots, "value", {}, void 0, !0)
|
|
856
856
|
])
|
|
857
857
|
]);
|
|
858
858
|
}
|
|
859
|
-
const
|
|
859
|
+
const _o = /* @__PURE__ */ ee(fo, [["render", go], ["__scopeId", "data-v-4ed7ec1b"]]), yo = {
|
|
860
860
|
class: "lume-tooltip__item",
|
|
861
861
|
"data-j-tooltip__item": ""
|
|
862
|
-
},
|
|
862
|
+
}, ko = { "data-j-tooltip__item__label": "" }, bo = {
|
|
863
863
|
class: "lume-tooltip__value",
|
|
864
864
|
"data-j-tooltip__item__value": ""
|
|
865
|
-
},
|
|
865
|
+
}, Ao = /* @__PURE__ */ Z({
|
|
866
866
|
__name: "lume-tooltip-item",
|
|
867
867
|
props: {
|
|
868
868
|
color: {
|
|
@@ -871,27 +871,27 @@ const yo = /* @__PURE__ */ ee(po, [["render", _o], ["__scopeId", "data-v-4ed7ec1
|
|
|
871
871
|
}
|
|
872
872
|
},
|
|
873
873
|
setup(e) {
|
|
874
|
-
return (n, t) => (y(),
|
|
875
|
-
e.color ? (y(),
|
|
874
|
+
return (n, t) => (y(), O("li", yo, [
|
|
875
|
+
e.color ? (y(), O("span", {
|
|
876
876
|
key: 0,
|
|
877
877
|
class: ne([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
|
|
878
878
|
"data-j-tooltip__item__symbol": ""
|
|
879
|
-
}, null, 2)) :
|
|
880
|
-
|
|
879
|
+
}, null, 2)) : z("", !0),
|
|
880
|
+
R("span", ko, [
|
|
881
881
|
M(n.$slots, "label", {}, void 0, !0)
|
|
882
882
|
]),
|
|
883
|
-
|
|
883
|
+
R("strong", bo, [
|
|
884
884
|
M(n.$slots, "value", {}, void 0, !0)
|
|
885
885
|
])
|
|
886
886
|
]));
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
|
-
const
|
|
889
|
+
const To = /* @__PURE__ */ ee(Ao, [["__scopeId", "data-v-4f995c3c"]]), Lo = (e) => (cn("data-v-cdc84374"), e = e(), dn(), e), $o = { class: "lume-tooltip__items" }, xo = {
|
|
890
890
|
key: 0,
|
|
891
891
|
class: "lume-tooltip__break"
|
|
892
|
-
},
|
|
893
|
-
|
|
894
|
-
],
|
|
892
|
+
}, Oo = /* @__PURE__ */ Lo(() => /* @__PURE__ */ R("hr", null, null, -1)), Io = [
|
|
893
|
+
Oo
|
|
894
|
+
], wo = /* @__PURE__ */ Z({
|
|
895
895
|
__name: "lume-tooltip",
|
|
896
896
|
props: {
|
|
897
897
|
opened: {
|
|
@@ -931,11 +931,11 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
|
|
|
931
931
|
type: String,
|
|
932
932
|
default: null
|
|
933
933
|
},
|
|
934
|
-
...
|
|
934
|
+
...Ge()
|
|
935
935
|
},
|
|
936
936
|
emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
|
|
937
937
|
setup(e, { emit: n }) {
|
|
938
|
-
const t = e, o = n, a =
|
|
938
|
+
const t = e, o = n, a = S(null), { items: u, options: l } = te(t), i = re(), c = S(null), { allOptions: s } = fe(l), f = v(
|
|
939
939
|
() => s.value.fixedPositioning ?? t.fixedPositioning
|
|
940
940
|
), r = v(
|
|
941
941
|
() => f.value ? "fixed" : "absolute"
|
|
@@ -954,35 +954,36 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
|
|
|
954
954
|
...t.modifiers || []
|
|
955
955
|
]), g = v(
|
|
956
956
|
() => s.value.showTitle !== !1 && t.title != null
|
|
957
|
-
), p = v(() =>
|
|
957
|
+
), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), $ = v(
|
|
958
958
|
() => {
|
|
959
959
|
var P;
|
|
960
960
|
return ((P = u.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
|
|
961
961
|
label: s.value.summary ?? t.summary
|
|
962
962
|
};
|
|
963
963
|
}
|
|
964
|
-
), A = v(() => i.summary ||
|
|
965
|
-
function
|
|
966
|
-
t.targetElement && a.value && (c.value =
|
|
964
|
+
), A = v(() => i.summary || $.value.label), h = v(() => t.inverse || s.value.inverse ? [...u.value].reverse() : u.value);
|
|
965
|
+
function x() {
|
|
966
|
+
t.targetElement && a.value && (c.value = _n(t.targetElement, a.value, {
|
|
967
967
|
placement: t.position,
|
|
968
968
|
strategy: r.value,
|
|
969
969
|
modifiers: m.value
|
|
970
970
|
}), o("opened", t.targetElement));
|
|
971
971
|
}
|
|
972
972
|
function N() {
|
|
973
|
-
c.value && (c.value.destroy(), o("closed"), a.value.classList.remove("lume-tooltip--animated"));
|
|
973
|
+
c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
|
|
974
974
|
}
|
|
975
975
|
function D() {
|
|
976
|
-
c.value && (s.value.withAnimation !== !1 && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
|
|
976
|
+
c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), t.targetElement ? function() {
|
|
977
977
|
c.value.state.elements.reference = t.targetElement, c.value.update(), o("moved", t.targetElement);
|
|
978
978
|
}() : N());
|
|
979
979
|
}
|
|
980
980
|
return U(
|
|
981
981
|
() => t.targetElement,
|
|
982
|
-
(P, w) => {
|
|
983
|
-
!w && P ?
|
|
982
|
+
async (P, w) => {
|
|
983
|
+
!w && P ? (await Qe(), x()) : D();
|
|
984
984
|
}
|
|
985
|
-
), _e(
|
|
985
|
+
), _e(x), Vt(N), (P, w) => e.opened && e.targetElement ? (y(), O("div", {
|
|
986
|
+
key: 0,
|
|
986
987
|
ref_key: "root",
|
|
987
988
|
ref: a,
|
|
988
989
|
class: ne(["lume-tooltip lume-typography--caption", {
|
|
@@ -994,40 +995,40 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
|
|
|
994
995
|
}, [
|
|
995
996
|
M(P.$slots, "default", {}, () => [
|
|
996
997
|
M(P.$slots, "title", {}, () => [
|
|
997
|
-
g.value ? (y(), X(d(
|
|
998
|
-
default:
|
|
998
|
+
g.value ? (y(), X(d(mo), { key: 0 }, {
|
|
999
|
+
default: C(() => [
|
|
999
1000
|
ce(oe(b.value(e.title)), 1)
|
|
1000
1001
|
]),
|
|
1001
1002
|
_: 1
|
|
1002
|
-
})) :
|
|
1003
|
+
})) : z("", !0)
|
|
1003
1004
|
], !0),
|
|
1004
|
-
|
|
1005
|
+
R("ul", $o, [
|
|
1005
1006
|
M(P.$slots, "summary", {}, () => [
|
|
1006
|
-
A.value ? (y(), X(d(
|
|
1007
|
-
default:
|
|
1008
|
-
ce(oe(
|
|
1007
|
+
A.value ? (y(), X(d(_o), { key: 0 }, de({
|
|
1008
|
+
default: C(() => [
|
|
1009
|
+
ce(oe($.value.label) + " ", 1)
|
|
1009
1010
|
]),
|
|
1010
1011
|
_: 2
|
|
1011
1012
|
}, [
|
|
1012
|
-
|
|
1013
|
+
$.value.value ? {
|
|
1013
1014
|
name: "value",
|
|
1014
|
-
fn:
|
|
1015
|
-
ce(oe(p.value(
|
|
1015
|
+
fn: C(() => [
|
|
1016
|
+
ce(oe(p.value($.value.value)), 1)
|
|
1016
1017
|
]),
|
|
1017
1018
|
key: "0"
|
|
1018
1019
|
} : void 0
|
|
1019
|
-
]), 1024)) :
|
|
1020
|
+
]), 1024)) : z("", !0)
|
|
1020
1021
|
], !0),
|
|
1021
|
-
A.value ? (y(),
|
|
1022
|
+
A.value ? (y(), O("li", xo, Io)) : z("", !0),
|
|
1022
1023
|
M(P.$slots, "items", {}, () => [
|
|
1023
|
-
(y(!0),
|
|
1024
|
+
(y(!0), O(q, null, W(h.value, (H) => (y(), X(d(To), {
|
|
1024
1025
|
key: H.label,
|
|
1025
1026
|
color: H.color
|
|
1026
1027
|
}, {
|
|
1027
|
-
label:
|
|
1028
|
+
label: C(() => [
|
|
1028
1029
|
ce(oe(H.label), 1)
|
|
1029
1030
|
]),
|
|
1030
|
-
value:
|
|
1031
|
+
value: C(() => [
|
|
1031
1032
|
ce(oe(p.value(H.value)), 1)
|
|
1032
1033
|
]),
|
|
1033
1034
|
_: 2
|
|
@@ -1035,53 +1036,51 @@ const Lo = /* @__PURE__ */ ee(To, [["__scopeId", "data-v-4f995c3c"]]), Oo = (e)
|
|
|
1035
1036
|
], !0)
|
|
1036
1037
|
])
|
|
1037
1038
|
], !0)
|
|
1038
|
-
], 34)),
|
|
1039
|
-
[cn, e.opened && e.targetElement]
|
|
1040
|
-
]);
|
|
1039
|
+
], 34)) : z("", !0);
|
|
1041
1040
|
}
|
|
1042
1041
|
});
|
|
1043
|
-
const
|
|
1042
|
+
const Eo = /* @__PURE__ */ ee(wo, [["__scopeId", "data-v-cdc84374"]]);
|
|
1044
1043
|
var be = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(be || {});
|
|
1045
|
-
const
|
|
1046
|
-
function
|
|
1047
|
-
return e === be.Divergent ?
|
|
1044
|
+
const No = be.Categorical, Re = se.Skyblue, Do = dt.SkyTeal;
|
|
1045
|
+
function Ho(e) {
|
|
1046
|
+
return e === be.Divergent ? Do : Re;
|
|
1048
1047
|
}
|
|
1049
|
-
function
|
|
1050
|
-
return Object.values(
|
|
1048
|
+
function Bo(e) {
|
|
1049
|
+
return Object.values(mt).includes(e);
|
|
1051
1050
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return n === be.Divergent ? Object.values(
|
|
1051
|
+
function xt(e, n) {
|
|
1052
|
+
return n === be.Divergent ? Object.values(dt).includes(e) : Object.values({
|
|
1054
1053
|
...se,
|
|
1055
1054
|
...Zt,
|
|
1056
|
-
...
|
|
1057
|
-
...
|
|
1055
|
+
...vt,
|
|
1056
|
+
...mt
|
|
1058
1057
|
}).includes(e);
|
|
1059
1058
|
}
|
|
1060
|
-
function
|
|
1059
|
+
function Mo(e, n) {
|
|
1061
1060
|
const t = Object.values(se).indexOf(e);
|
|
1062
|
-
return
|
|
1061
|
+
return Dn(Object.values(se), t > -1 ? t : 0)[n];
|
|
1063
1062
|
}
|
|
1064
|
-
function
|
|
1063
|
+
function Go(e, n) {
|
|
1065
1064
|
const t = 50 + n * 10;
|
|
1066
1065
|
return `${e}-${t}`;
|
|
1067
1066
|
}
|
|
1068
|
-
function
|
|
1067
|
+
function So(e, n) {
|
|
1069
1068
|
const t = (n + 1) * 10;
|
|
1070
1069
|
return `${e}-${t}`;
|
|
1071
1070
|
}
|
|
1072
|
-
function
|
|
1071
|
+
function Ot(e, n, t) {
|
|
1073
1072
|
switch (n) {
|
|
1074
1073
|
default:
|
|
1075
1074
|
case be.Categorical:
|
|
1076
|
-
return
|
|
1075
|
+
return Bo(e) ? e : Mo(e, t);
|
|
1077
1076
|
case be.Sequential:
|
|
1078
|
-
return
|
|
1077
|
+
return Go(e, t);
|
|
1079
1078
|
case be.Divergent:
|
|
1080
|
-
return
|
|
1079
|
+
return So(e, t);
|
|
1081
1080
|
}
|
|
1082
1081
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return
|
|
1082
|
+
function Ro(e, n, t = No, o) {
|
|
1083
|
+
return xt(e, t) ? e : (o > 4 && (ge(me.ColorLoop), o = o % 5), xt(n, t) ? Ot(n, t, o) : Ot(Ho(t), t, o));
|
|
1085
1084
|
}
|
|
1086
1085
|
function jo(e) {
|
|
1087
1086
|
return e.map((n) => xn(n) ? n : { value: n });
|
|
@@ -1089,7 +1088,7 @@ function jo(e) {
|
|
|
1089
1088
|
function Vo(e) {
|
|
1090
1089
|
return e.__internal === !0;
|
|
1091
1090
|
}
|
|
1092
|
-
const
|
|
1091
|
+
const pt = (e = null) => ({
|
|
1093
1092
|
data: {
|
|
1094
1093
|
type: Array,
|
|
1095
1094
|
required: !0,
|
|
@@ -1108,17 +1107,17 @@ const ft = (e = null) => ({
|
|
|
1108
1107
|
default: null
|
|
1109
1108
|
}
|
|
1110
1109
|
});
|
|
1111
|
-
function
|
|
1110
|
+
function ht(e, n, t, o, a) {
|
|
1112
1111
|
const u = Fe({
|
|
1113
1112
|
width: 0,
|
|
1114
1113
|
height: 0
|
|
1115
|
-
}), l =
|
|
1114
|
+
}), l = Bn(12), i = v(() => {
|
|
1116
1115
|
var f;
|
|
1117
1116
|
return e.value.length > 5 && ge(me.DatasetLength), (f = e.value) == null ? void 0 : f.map(
|
|
1118
1117
|
(r, m) => {
|
|
1119
1118
|
if (Vo(r))
|
|
1120
1119
|
return r;
|
|
1121
|
-
const g = jo(r.values), p =
|
|
1120
|
+
const g = jo(r.values), p = Ro(
|
|
1122
1121
|
r.color,
|
|
1123
1122
|
t == null ? void 0 : t.value,
|
|
1124
1123
|
o == null ? void 0 : o.value.colorPalette,
|
|
@@ -1145,7 +1144,7 @@ function pt(e, n, t, o, a) {
|
|
|
1145
1144
|
updateSize: s
|
|
1146
1145
|
};
|
|
1147
1146
|
}
|
|
1148
|
-
const
|
|
1147
|
+
const Co = () => ({
|
|
1149
1148
|
xScale: {
|
|
1150
1149
|
type: Function,
|
|
1151
1150
|
default: null
|
|
@@ -1155,8 +1154,8 @@ const Po = () => ({
|
|
|
1155
1154
|
default: null
|
|
1156
1155
|
}
|
|
1157
1156
|
});
|
|
1158
|
-
function
|
|
1159
|
-
const u =
|
|
1157
|
+
function Po(e, n, t, o, a) {
|
|
1158
|
+
const u = S(null), l = S(null);
|
|
1160
1159
|
function i() {
|
|
1161
1160
|
var f, r, m, g;
|
|
1162
1161
|
const { width: c, height: s } = t;
|
|
@@ -1182,7 +1181,7 @@ function Fo(e, n, t, o, a) {
|
|
|
1182
1181
|
a.value.startOnZero
|
|
1183
1182
|
) : null));
|
|
1184
1183
|
}
|
|
1185
|
-
return
|
|
1184
|
+
return Ct(i), { xScale: u, yScale: l };
|
|
1186
1185
|
}
|
|
1187
1186
|
function It(e, n, t, o) {
|
|
1188
1187
|
const a = [0, n], { padding: u, paddingInner: l, paddingOuter: i } = o, c = u ?? (t === B.HORIZONTAL ? Yt : Xt);
|
|
@@ -1201,7 +1200,7 @@ function wt(e, n, t, o) {
|
|
|
1201
1200
|
function Et(e) {
|
|
1202
1201
|
return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
|
|
1203
1202
|
}
|
|
1204
|
-
function
|
|
1203
|
+
function tt(e, n) {
|
|
1205
1204
|
return ve(e) ? e.bandwidth() / 2 + e(e.domain()[n]) : e(n);
|
|
1206
1205
|
}
|
|
1207
1206
|
function Nt(e, n, {
|
|
@@ -1216,9 +1215,9 @@ function en(e) {
|
|
|
1216
1215
|
return Object.values(B).includes(e);
|
|
1217
1216
|
}
|
|
1218
1217
|
const Ee = (e, n = !0) => ({
|
|
1219
|
-
...
|
|
1220
|
-
...
|
|
1221
|
-
...
|
|
1218
|
+
...pt(e),
|
|
1219
|
+
...Co(),
|
|
1220
|
+
...Ge(),
|
|
1222
1221
|
classList: {
|
|
1223
1222
|
type: [String, Array],
|
|
1224
1223
|
default: () => []
|
|
@@ -1234,9 +1233,9 @@ const Ee = (e, n = !0) => ({
|
|
|
1234
1233
|
validator: en
|
|
1235
1234
|
}
|
|
1236
1235
|
} : {}
|
|
1237
|
-
}),
|
|
1238
|
-
...
|
|
1239
|
-
...
|
|
1236
|
+
}), Fo = (e) => ({
|
|
1237
|
+
...pt(e),
|
|
1238
|
+
...Ge(),
|
|
1240
1239
|
hoveredElement: {
|
|
1241
1240
|
type: [Number, String],
|
|
1242
1241
|
default: null
|
|
@@ -1283,7 +1282,7 @@ const Ee = (e, n = !0) => ({
|
|
|
1283
1282
|
type: [String, Array],
|
|
1284
1283
|
default: () => []
|
|
1285
1284
|
}
|
|
1286
|
-
}),
|
|
1285
|
+
}), zo = { class: "lume-overlay-group" }, Wo = /* @__PURE__ */ Z({
|
|
1287
1286
|
__name: "lume-overlay-group",
|
|
1288
1287
|
props: {
|
|
1289
1288
|
...We(),
|
|
@@ -1297,19 +1296,19 @@ const Ee = (e, n = !0) => ({
|
|
|
1297
1296
|
const t = e, o = n, { data: a, orientation: u, xScale: l, yScale: i } = te(t), c = v(() => Wt(a));
|
|
1298
1297
|
function s(f) {
|
|
1299
1298
|
var A;
|
|
1300
|
-
const r = u.value === B.HORIZONTAL ? i.value : l.value, m = r.domain(), g =
|
|
1299
|
+
const r = u.value === B.HORIZONTAL ? i.value : l.value, m = r.domain(), g = On(r), p = ((A = r.paddingInner) == null ? void 0 : A.call(r)) ?? 0, b = g * p, $ = ve(r) ? r(m[f]) - b / 2 : r(f) - g / 2;
|
|
1301
1300
|
return u.value === B.HORIZONTAL ? {
|
|
1302
1301
|
width: Math.max(...l.value.range()),
|
|
1303
1302
|
height: g,
|
|
1304
|
-
transform: `translate(0, ${
|
|
1303
|
+
transform: `translate(0, ${$})`
|
|
1305
1304
|
} : {
|
|
1306
1305
|
width: g,
|
|
1307
1306
|
height: Math.max(...i.value.range()),
|
|
1308
|
-
transform: `translate(${
|
|
1307
|
+
transform: `translate(${$}, 0)`
|
|
1309
1308
|
};
|
|
1310
1309
|
}
|
|
1311
|
-
return (f, r) => (y(),
|
|
1312
|
-
(y(!0),
|
|
1310
|
+
return (f, r) => (y(), O("g", zo, [
|
|
1311
|
+
(y(!0), O(q, null, W(c.value, (m, g) => (y(), X(d(ft), j(s(g), {
|
|
1313
1312
|
key: `overlay-${g}`,
|
|
1314
1313
|
"data-j-lume-overlay-group": g,
|
|
1315
1314
|
transition: !1,
|
|
@@ -1326,12 +1325,12 @@ const Ee = (e, n = !0) => ({
|
|
|
1326
1325
|
}
|
|
1327
1326
|
return { componentEventPropagator: {}, emitInternalEvent: t, listenInternalEvent: o };
|
|
1328
1327
|
};
|
|
1329
|
-
function
|
|
1328
|
+
function Zo(e) {
|
|
1330
1329
|
return { hasNegativeValues: v(
|
|
1331
1330
|
() => Ft(e.value).some((t) => t < 0)
|
|
1332
1331
|
) };
|
|
1333
1332
|
}
|
|
1334
|
-
function
|
|
1333
|
+
function Uo(e, n, t, o) {
|
|
1335
1334
|
const a = v(
|
|
1336
1335
|
() => o.value === B.HORIZONTAL
|
|
1337
1336
|
), u = v(
|
|
@@ -1356,13 +1355,13 @@ function Xo(e, n, t, o) {
|
|
|
1356
1355
|
transform: i.value
|
|
1357
1356
|
})) };
|
|
1358
1357
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return e.reduce((t, o) =>
|
|
1358
|
+
function Xo(e, n) {
|
|
1359
|
+
return e.reduce((t, o) => ct(o.values, n).map(
|
|
1361
1360
|
(a, u) => t[u] ? a.value > t[u] ? a.value : t[u] : a.value ?? 0
|
|
1362
1361
|
), []);
|
|
1363
1362
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return e.reduce((t, o) =>
|
|
1363
|
+
function Yo(e, n) {
|
|
1364
|
+
return e.reduce((t, o) => ct(o.values, n).map(
|
|
1366
1365
|
(a, u) => {
|
|
1367
1366
|
const l = a.value == null || a.value < 0 ? 0 : a.value;
|
|
1368
1367
|
return t[u] ? t[u] + l : l;
|
|
@@ -1370,7 +1369,7 @@ function Ko(e, n) {
|
|
|
1370
1369
|
), []);
|
|
1371
1370
|
}
|
|
1372
1371
|
const Dt = {
|
|
1373
|
-
"stacked-bar":
|
|
1372
|
+
"stacked-bar": Yo
|
|
1374
1373
|
};
|
|
1375
1374
|
function tn(e, n, t, o, a, u, l, i) {
|
|
1376
1375
|
const c = v(
|
|
@@ -1384,10 +1383,10 @@ function tn(e, n, t, o, a, u, l, i) {
|
|
|
1384
1383
|
const r = ((g = a == null ? void 0 : a.value) == null ? void 0 : g.length) ?? 0, m = i != null && i.value && Dt[i.value] ? Dt[i.value](
|
|
1385
1384
|
f,
|
|
1386
1385
|
r
|
|
1387
|
-
) :
|
|
1386
|
+
) : Xo(f, r);
|
|
1388
1387
|
e.value = m.map((p, b) => ({
|
|
1389
|
-
cx: (u == null ? void 0 : u.value) === B.HORIZONTAL ? t.value(p) :
|
|
1390
|
-
cy: (u == null ? void 0 : u.value) === B.HORIZONTAL ?
|
|
1388
|
+
cx: (u == null ? void 0 : u.value) === B.HORIZONTAL ? t.value(p) : tt(t.value, b),
|
|
1389
|
+
cy: (u == null ? void 0 : u.value) === B.HORIZONTAL ? tt(o.value, b) : o.value(p)
|
|
1391
1390
|
}));
|
|
1392
1391
|
}
|
|
1393
1392
|
return U(
|
|
@@ -1398,7 +1397,7 @@ function tn(e, n, t, o, a, u, l, i) {
|
|
|
1398
1397
|
{ immediate: !0 }
|
|
1399
1398
|
), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
|
|
1400
1399
|
}
|
|
1401
|
-
function
|
|
1400
|
+
function Ko() {
|
|
1402
1401
|
const e = Fe({
|
|
1403
1402
|
opened: !1,
|
|
1404
1403
|
targetElement: null
|
|
@@ -1409,7 +1408,7 @@ function Jo() {
|
|
|
1409
1408
|
e.opened = !1, e.targetElement = null;
|
|
1410
1409
|
} };
|
|
1411
1410
|
}
|
|
1412
|
-
function
|
|
1411
|
+
function Jo(e) {
|
|
1413
1412
|
return { getTooltipItems: v(
|
|
1414
1413
|
() => (t) => e.value.map(({ color: o, label: a, values: u }) => {
|
|
1415
1414
|
var l, i, c;
|
|
@@ -1421,42 +1420,42 @@ function Qo(e) {
|
|
|
1421
1420
|
})
|
|
1422
1421
|
) };
|
|
1423
1422
|
}
|
|
1424
|
-
const
|
|
1423
|
+
const nt = 16, ot = 8, at = 28, lt = 24, Ae = {
|
|
1425
1424
|
VERTICAL: {
|
|
1426
|
-
top:
|
|
1427
|
-
right:
|
|
1428
|
-
bottom:
|
|
1429
|
-
left:
|
|
1425
|
+
top: nt,
|
|
1426
|
+
right: ot,
|
|
1427
|
+
bottom: at,
|
|
1428
|
+
left: lt
|
|
1430
1429
|
},
|
|
1431
1430
|
HORIZONTAL: {
|
|
1432
|
-
top:
|
|
1433
|
-
right:
|
|
1434
|
-
bottom:
|
|
1435
|
-
left:
|
|
1431
|
+
top: nt,
|
|
1432
|
+
right: ot,
|
|
1433
|
+
bottom: at,
|
|
1434
|
+
left: lt
|
|
1436
1435
|
}
|
|
1437
1436
|
};
|
|
1437
|
+
function Qo(e) {
|
|
1438
|
+
return !e || e === "auto" || e.top == null || e.top === "auto" ? nt : e.top;
|
|
1439
|
+
}
|
|
1438
1440
|
function qo(e) {
|
|
1439
|
-
return !e || e === "auto" || e.
|
|
1441
|
+
return !e || e === "auto" || e.right == null || e.right === "auto" ? ot : e.right;
|
|
1440
1442
|
}
|
|
1441
|
-
function ea(e) {
|
|
1442
|
-
return !e || e === "auto" || e.
|
|
1443
|
+
function ea(e, n) {
|
|
1444
|
+
return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? n || at : e.bottom;
|
|
1443
1445
|
}
|
|
1444
1446
|
function ta(e, n) {
|
|
1445
|
-
return !e || e === "auto" || e.
|
|
1446
|
-
}
|
|
1447
|
-
function na(e, n) {
|
|
1448
|
-
return !e || e === "auto" || e.left == null || e.left === "auto" ? n || at : e.left;
|
|
1447
|
+
return !e || e === "auto" || e.left == null || e.left === "auto" ? n || lt : e.left;
|
|
1449
1448
|
}
|
|
1450
|
-
const
|
|
1449
|
+
const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-section" }, aa = {
|
|
1451
1450
|
key: 0,
|
|
1452
1451
|
class: "lume-chart__title lume-chart-title lume-typography--display"
|
|
1453
|
-
},
|
|
1452
|
+
}, la = { class: "lume-chart__controls" }, ua = { class: "lume-chart__header-section" }, ra = {
|
|
1454
1453
|
key: 0,
|
|
1455
1454
|
class: "lume-chart__axis-title lume-axis-title lume-typography--body"
|
|
1456
|
-
},
|
|
1455
|
+
}, ia = { key: 3 }, sa = ["r"], ca = {
|
|
1457
1456
|
key: 0,
|
|
1458
1457
|
class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
|
|
1459
|
-
},
|
|
1458
|
+
}, da = /* @__PURE__ */ Z({
|
|
1460
1459
|
__name: "lume-chart",
|
|
1461
1460
|
props: {
|
|
1462
1461
|
...Ee(),
|
|
@@ -1466,23 +1465,23 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1466
1465
|
}
|
|
1467
1466
|
},
|
|
1468
1467
|
setup(e, { emit: n }) {
|
|
1469
|
-
const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r =
|
|
1470
|
-
|
|
1468
|
+
const t = e, o = re(), a = n, { data: u, labels: l, color: i, options: c, orientation: s, chartType: f } = te(t), r = S(-1), m = S(null), g = S(null), p = S([]), b = S(null), $ = S(0), A = S(0), { allOptions: h } = fe(c), { internalData: x, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(u, l, i, h, s), { xScale: H, yScale: Y } = Po(
|
|
1469
|
+
x,
|
|
1471
1470
|
N,
|
|
1472
1471
|
D,
|
|
1473
1472
|
s,
|
|
1474
1473
|
h
|
|
1475
1474
|
), K = v(() => ({
|
|
1476
|
-
top:
|
|
1477
|
-
right:
|
|
1478
|
-
bottom:
|
|
1479
|
-
left:
|
|
1475
|
+
top: Qo(h.value.margins),
|
|
1476
|
+
right: qo(h.value.margins),
|
|
1477
|
+
bottom: ea(h.value.margins, $.value),
|
|
1478
|
+
left: ta(h.value.margins, A.value)
|
|
1480
1479
|
})), Q = v(() => {
|
|
1481
|
-
var
|
|
1482
|
-
return t.xScale ? Et(t.xScale) ? t.xScale : (
|
|
1480
|
+
var T;
|
|
1481
|
+
return t.xScale ? Et(t.xScale) ? t.xScale : (T = t.xScale) == null ? void 0 : T.call(t, x.value, l.value, D) : H.value;
|
|
1483
1482
|
}), F = v(() => {
|
|
1484
|
-
var
|
|
1485
|
-
return t.yScale ? Et(t.yScale) ? t.yScale : (
|
|
1483
|
+
var T;
|
|
1484
|
+
return t.yScale ? Et(t.yScale) ? t.yScale : (T = t.yScale) == null ? void 0 : T.call(t, x.value, l.value, D) : Y.value;
|
|
1486
1485
|
}), ue = v(() => ({
|
|
1487
1486
|
...h.value.xAxisOptions,
|
|
1488
1487
|
withHover: s.value === B.VERTICAL
|
|
@@ -1490,23 +1489,23 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1490
1489
|
...h.value.yAxisOptions,
|
|
1491
1490
|
withHover: s.value === B.HORIZONTAL
|
|
1492
1491
|
})), ke = v(() => {
|
|
1493
|
-
var
|
|
1494
|
-
return (
|
|
1495
|
-
}),
|
|
1496
|
-
var
|
|
1497
|
-
return (
|
|
1498
|
-
}),
|
|
1499
|
-
var
|
|
1500
|
-
return ((
|
|
1492
|
+
var T;
|
|
1493
|
+
return (T = h.value.xAxisOptions) == null ? void 0 : T.title;
|
|
1494
|
+
}), $e = v(() => {
|
|
1495
|
+
var T;
|
|
1496
|
+
return (T = h.value.yAxisOptions) == null ? void 0 : T.title;
|
|
1497
|
+
}), G = v(() => {
|
|
1498
|
+
var T;
|
|
1499
|
+
return ((T = h.value.xAxisOptions) == null ? void 0 : T.withTitle) !== !1 && ke.value;
|
|
1501
1500
|
}), k = v(() => {
|
|
1502
|
-
var
|
|
1503
|
-
return ((
|
|
1501
|
+
var T;
|
|
1502
|
+
return ((T = h.value.yAxisOptions) == null ? void 0 : T.withTitle) !== !1 && $e.value;
|
|
1504
1503
|
}), E = v(
|
|
1505
|
-
() => u.value.every((
|
|
1504
|
+
() => u.value.every((T) => !T.values.length)
|
|
1506
1505
|
), _ = v(() => {
|
|
1507
|
-
const
|
|
1508
|
-
return !
|
|
1509
|
-
}), { hasNegativeValues:
|
|
1506
|
+
const T = [], { noBaseScales: L } = h.value;
|
|
1507
|
+
return !L && !E.value && T.push(() => !!(Q.value && F.value)), T.every((I) => I() === !0);
|
|
1508
|
+
}), { hasNegativeValues: V } = Zo(x), { negativeBarAttributes: J } = Uo(
|
|
1510
1509
|
D,
|
|
1511
1510
|
Q,
|
|
1512
1511
|
F,
|
|
@@ -1518,69 +1517,72 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1518
1517
|
F,
|
|
1519
1518
|
l,
|
|
1520
1519
|
s,
|
|
1521
|
-
|
|
1520
|
+
x,
|
|
1522
1521
|
f
|
|
1523
|
-
), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } =
|
|
1522
|
+
), { tooltipConfig: De, showTooltip: Ze, hideTooltip: Ue } = Ko(), { getTooltipItems: xe } = Jo(x), He = v(
|
|
1524
1523
|
() => {
|
|
1525
|
-
var
|
|
1526
|
-
return ((
|
|
1524
|
+
var T;
|
|
1525
|
+
return ((T = h.value.tooltipOptions) == null ? void 0 : T.position) || "top";
|
|
1527
1526
|
}
|
|
1528
|
-
),
|
|
1529
|
-
var
|
|
1530
|
-
const
|
|
1531
|
-
return De.opened && (!
|
|
1527
|
+
), Oe = v(() => {
|
|
1528
|
+
var L;
|
|
1529
|
+
const T = (L = h.value.tooltipOptions) == null ? void 0 : L.withPointerEvents;
|
|
1530
|
+
return De.opened && (!T || T && b.value === !1);
|
|
1532
1531
|
});
|
|
1533
|
-
function
|
|
1532
|
+
function je(T) {
|
|
1534
1533
|
var I;
|
|
1535
|
-
if (
|
|
1534
|
+
if (T === r.value)
|
|
1536
1535
|
return;
|
|
1537
|
-
const
|
|
1538
|
-
if (h.value.withHover !== !1 && (r.value =
|
|
1539
|
-
const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[
|
|
1536
|
+
const L = r.value;
|
|
1537
|
+
if (h.value.withHover !== !1 && (r.value = T), h.value.withTooltip !== !1) {
|
|
1538
|
+
const Ye = (I = h.value.tooltipOptions) != null && I.targetElement ? h.value.tooltipOptions.targetElement === "self" ? g.value.$el : h.value.tooltipOptions.targetElement : m.value[T];
|
|
1540
1539
|
Ze(Ye);
|
|
1541
1540
|
}
|
|
1542
|
-
a("hovered-index-changed", { newIndex:
|
|
1541
|
+
a("hovered-index-changed", { newIndex: T, oldIndex: L }), a("update:hoveredIndex", T);
|
|
1543
1542
|
}
|
|
1544
1543
|
function Xe() {
|
|
1545
1544
|
Ue(), r.value = -1, a("update:hoveredIndex", -1);
|
|
1546
1545
|
}
|
|
1547
|
-
function
|
|
1546
|
+
function _t(T) {
|
|
1548
1547
|
if (!u.value.some(
|
|
1549
|
-
({ values: I }) =>
|
|
1548
|
+
({ values: I }) => T <= I.length - 1
|
|
1550
1549
|
)) {
|
|
1551
1550
|
ge(me.InvalidHoveredIndex);
|
|
1552
1551
|
return;
|
|
1553
1552
|
}
|
|
1554
|
-
|
|
1553
|
+
T == null || T === -1 ? Xe() : je(T);
|
|
1555
1554
|
}
|
|
1556
1555
|
function rn() {
|
|
1557
1556
|
setTimeout(() => {
|
|
1558
|
-
|
|
1557
|
+
Oe.value && Xe(), a("chart-mouseleave");
|
|
1559
1558
|
}, 0);
|
|
1560
1559
|
}
|
|
1561
|
-
function
|
|
1562
|
-
|
|
1560
|
+
function sn(T) {
|
|
1561
|
+
P(T), a("resize", T);
|
|
1563
1562
|
}
|
|
1564
|
-
function yt({ index:
|
|
1565
|
-
a("axis-
|
|
1563
|
+
function yt({ index: T, value: L, event: I }) {
|
|
1564
|
+
T !== null && je(T), a("axis-mouseenter", { index: T, value: L, event: I });
|
|
1565
|
+
}
|
|
1566
|
+
function kt({ index: T, value: L, event: I }) {
|
|
1567
|
+
a("axis-click", { index: T, value: L, event: I });
|
|
1566
1568
|
}
|
|
1567
1569
|
return U(
|
|
1568
1570
|
u,
|
|
1569
|
-
(
|
|
1571
|
+
(T, L) => a("data-changed", { newValue: T, oldValue: L })
|
|
1570
1572
|
), U(
|
|
1571
1573
|
l,
|
|
1572
|
-
(
|
|
1573
|
-
), U(E, (
|
|
1574
|
+
(T, L) => a("labels-changed", { newValue: T, oldValue: L })
|
|
1575
|
+
), U(E, (T) => T && ge(me.Empty), { immediate: !0 }), U(() => t.hoveredIndex, _t), U(
|
|
1574
1576
|
p,
|
|
1575
|
-
(
|
|
1576
|
-
|
|
1577
|
+
(T) => {
|
|
1578
|
+
T && t.hoveredIndex != null && r.value === -1 && _t(t.hoveredIndex);
|
|
1577
1579
|
},
|
|
1578
1580
|
{ flush: "post" }
|
|
1579
|
-
), U(b, (
|
|
1580
|
-
|
|
1581
|
+
), U(b, (T) => {
|
|
1582
|
+
T === !1 && De.opened && Xe();
|
|
1581
1583
|
}), _e(async () => {
|
|
1582
1584
|
a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
|
|
1583
|
-
}), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (
|
|
1585
|
+
}), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (T, L) => (y(), X(d(uo), {
|
|
1584
1586
|
id: `lume-chart_${d(w)}`,
|
|
1585
1587
|
ref_key: "chartContainer",
|
|
1586
1588
|
ref: g,
|
|
@@ -1589,53 +1591,53 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1589
1591
|
"no-min-size": d(h).noMinSize,
|
|
1590
1592
|
"transparent-background": d(h).transparentBackground,
|
|
1591
1593
|
"data-j-lume-chart": "",
|
|
1592
|
-
onResize:
|
|
1593
|
-
onClick:
|
|
1594
|
-
onMouseenter:
|
|
1594
|
+
onResize: sn,
|
|
1595
|
+
onClick: L[24] || (L[24] = (I) => a("chart-click", I)),
|
|
1596
|
+
onMouseenter: L[25] || (L[25] = (I) => a("chart-mouseenter", I)),
|
|
1595
1597
|
onMouseleave: rn
|
|
1596
1598
|
}, {
|
|
1597
|
-
header:
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
M(
|
|
1599
|
+
header: C(() => [
|
|
1600
|
+
R("div", na, [
|
|
1601
|
+
R("div", oa, [
|
|
1602
|
+
T.title ? (y(), O("h1", aa, oe(T.title), 1)) : z("", !0),
|
|
1603
|
+
R("div", la, [
|
|
1604
|
+
M(T.$slots, "controls", {}, void 0, !0)
|
|
1603
1605
|
])
|
|
1604
1606
|
]),
|
|
1605
|
-
|
|
1606
|
-
k.value ? (y(),
|
|
1607
|
-
M(
|
|
1608
|
-
d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d(
|
|
1607
|
+
R("div", ua, [
|
|
1608
|
+
k.value ? (y(), O("h3", ra, oe($e.value), 1)) : z("", !0),
|
|
1609
|
+
M(T.$slots, "legend", { data: d(x) }, () => [
|
|
1610
|
+
d(h).withLegend !== !1 && d(h).legendPosition !== "bottom" ? (y(), X(d($t), {
|
|
1609
1611
|
key: 0,
|
|
1610
|
-
data: d(
|
|
1612
|
+
data: d(x),
|
|
1611
1613
|
class: "lume-chart__legend",
|
|
1612
1614
|
"data-j-lume-chart__legend": "",
|
|
1613
|
-
onClick:
|
|
1614
|
-
onMouseenter:
|
|
1615
|
-
onMouseleave:
|
|
1616
|
-
}, null, 8, ["data"])) :
|
|
1615
|
+
onClick: L[0] || (L[0] = (I) => a("legend-click", I)),
|
|
1616
|
+
onMouseenter: L[1] || (L[1] = (I) => a("legend-mouseenter", I)),
|
|
1617
|
+
onMouseleave: L[2] || (L[2] = (I) => a("legend-mouseleave"))
|
|
1618
|
+
}, null, 8, ["data"])) : z("", !0)
|
|
1617
1619
|
], !0)
|
|
1618
1620
|
])
|
|
1619
1621
|
])
|
|
1620
1622
|
]),
|
|
1621
|
-
footer:
|
|
1622
|
-
|
|
1623
|
-
d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d(
|
|
1623
|
+
footer: C(() => [
|
|
1624
|
+
G.value ? (y(), O("h3", ca, oe(ke.value), 1)) : z("", !0),
|
|
1625
|
+
d(h).withLegend !== !1 && d(h).legendPosition == "bottom" ? (y(), X(d($t), {
|
|
1624
1626
|
key: 1,
|
|
1625
|
-
data: d(
|
|
1627
|
+
data: d(x),
|
|
1626
1628
|
class: "lume-chart__legend lume-chart__legend--bottom",
|
|
1627
1629
|
"data-j-lume-chart__legend": "",
|
|
1628
|
-
onClick:
|
|
1629
|
-
onMouseenter:
|
|
1630
|
-
onMouseleave:
|
|
1631
|
-
}, null, 8, ["data"])) :
|
|
1630
|
+
onClick: L[16] || (L[16] = (I) => a("legend-click", I)),
|
|
1631
|
+
onMouseenter: L[17] || (L[17] = (I) => a("legend-mouseenter", I)),
|
|
1632
|
+
onMouseleave: L[18] || (L[18] = (I) => a("legend-mouseleave"))
|
|
1633
|
+
}, null, 8, ["data"])) : z("", !0)
|
|
1632
1634
|
]),
|
|
1633
|
-
extra:
|
|
1634
|
-
M(
|
|
1635
|
-
data: d(
|
|
1635
|
+
extra: C(() => [
|
|
1636
|
+
M(T.$slots, "tooltip", j(d(De), {
|
|
1637
|
+
data: d(x),
|
|
1636
1638
|
labels: d(N),
|
|
1637
1639
|
title: d(N)[r.value],
|
|
1638
|
-
items: d(
|
|
1640
|
+
items: d(xe)(r.value),
|
|
1639
1641
|
position: He.value,
|
|
1640
1642
|
withTooltip: d(h).withTooltip !== !1,
|
|
1641
1643
|
hoveredIndex: r.value,
|
|
@@ -1643,43 +1645,43 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1643
1645
|
handleMouseLeave: () => b.value = !1,
|
|
1644
1646
|
options: d(h).tooltipOptions
|
|
1645
1647
|
}), () => [
|
|
1646
|
-
d(h).withTooltip !== !1 ? (y(), X(d(
|
|
1648
|
+
d(h).withTooltip !== !1 ? (y(), X(d(Eo), j({ key: 0 }, d(De), {
|
|
1647
1649
|
position: He.value,
|
|
1648
1650
|
title: d(N)[r.value],
|
|
1649
|
-
items: d(
|
|
1651
|
+
items: d(xe)(r.value),
|
|
1650
1652
|
options: d(h).tooltipOptions,
|
|
1651
1653
|
"data-j-lume-chart__tooltip": "",
|
|
1652
|
-
onOpened:
|
|
1654
|
+
onOpened: L[19] || (L[19] = (I) => a("tooltip-opened", {
|
|
1653
1655
|
index: r.value,
|
|
1654
1656
|
targetElement: I
|
|
1655
1657
|
})),
|
|
1656
|
-
onMoved:
|
|
1658
|
+
onMoved: L[20] || (L[20] = (I) => a("tooltip-moved", {
|
|
1657
1659
|
index: r.value,
|
|
1658
1660
|
targetElement: I
|
|
1659
1661
|
})),
|
|
1660
|
-
onClosed:
|
|
1661
|
-
onTooltipMouseenter:
|
|
1662
|
-
onTooltipMouseleave:
|
|
1662
|
+
onClosed: L[21] || (L[21] = (I) => a("tooltip-closed")),
|
|
1663
|
+
onTooltipMouseenter: L[22] || (L[22] = (I) => b.value = !0),
|
|
1664
|
+
onTooltipMouseleave: L[23] || (L[23] = (I) => b.value = !1)
|
|
1663
1665
|
}), {
|
|
1664
|
-
default:
|
|
1665
|
-
M(
|
|
1666
|
-
data: d(
|
|
1666
|
+
default: C(() => [
|
|
1667
|
+
M(T.$slots, "tooltip-content", {
|
|
1668
|
+
data: d(x),
|
|
1667
1669
|
labels: d(N),
|
|
1668
1670
|
hoveredIndex: r.value
|
|
1669
1671
|
}, void 0, !0)
|
|
1670
1672
|
]),
|
|
1671
1673
|
_: 3
|
|
1672
|
-
}, 16, ["position", "title", "items", "options"])) :
|
|
1674
|
+
}, 16, ["position", "title", "items", "options"])) : z("", !0)
|
|
1673
1675
|
], !0)
|
|
1674
1676
|
]),
|
|
1675
|
-
default:
|
|
1676
|
-
_.value ? (y(),
|
|
1677
|
-
d(
|
|
1677
|
+
default: C(() => [
|
|
1678
|
+
_.value ? (y(), O(q, { key: 0 }, [
|
|
1679
|
+
d(V) ? (y(), X(d(ft), j({ key: 0 }, d(J), {
|
|
1678
1680
|
"class-list": "lume-fill--negative",
|
|
1679
1681
|
transition: !1,
|
|
1680
1682
|
"data-j-lume-chart__negative-values": ""
|
|
1681
|
-
}), null, 16)) :
|
|
1682
|
-
d(h).withAxes !== !1 ? M(
|
|
1683
|
+
}), null, 16)) : z("", !0),
|
|
1684
|
+
d(h).withAxes !== !1 ? M(T.$slots, "axes", {
|
|
1683
1685
|
key: 1,
|
|
1684
1686
|
xScale: Q.value,
|
|
1685
1687
|
yScale: F.value,
|
|
@@ -1695,10 +1697,10 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1695
1697
|
"hovered-index": r.value,
|
|
1696
1698
|
orientation: d(s),
|
|
1697
1699
|
"data-j-lume-chart__x-axis": "",
|
|
1698
|
-
onClick:
|
|
1699
|
-
onMouseenter:
|
|
1700
|
-
onMouseleave:
|
|
1701
|
-
"onLume__internal-AxisSize":
|
|
1700
|
+
onClick: kt,
|
|
1701
|
+
onMouseenter: yt,
|
|
1702
|
+
onMouseleave: L[3] || (L[3] = (I) => a("axis-mouseleave")),
|
|
1703
|
+
"onLume__internal-AxisSize": L[4] || (L[4] = (I) => $.value = I)
|
|
1702
1704
|
}, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
|
|
1703
1705
|
ie(d(Lt), {
|
|
1704
1706
|
type: "y",
|
|
@@ -1708,33 +1710,33 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1708
1710
|
"hovered-index": r.value,
|
|
1709
1711
|
orientation: d(s),
|
|
1710
1712
|
"data-j-lume-chart__y-axis": "",
|
|
1711
|
-
onClick:
|
|
1712
|
-
onMouseenter:
|
|
1713
|
-
onMouseleave:
|
|
1714
|
-
"onLume__internal-AxisSize":
|
|
1713
|
+
onClick: kt,
|
|
1714
|
+
onMouseenter: yt,
|
|
1715
|
+
onMouseleave: L[5] || (L[5] = (I) => a("axis-mouseleave")),
|
|
1716
|
+
"onLume__internal-AxisSize": L[6] || (L[6] = (I) => A.value = I)
|
|
1715
1717
|
}, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
|
|
1716
|
-
], !0) :
|
|
1717
|
-
d(h).withHover !== !1 ? (y(), X(d(
|
|
1718
|
+
], !0) : z("", !0),
|
|
1719
|
+
d(h).withHover !== !1 ? (y(), X(d(Wo), {
|
|
1718
1720
|
key: 2,
|
|
1719
|
-
data: d(
|
|
1721
|
+
data: d(x),
|
|
1720
1722
|
orientation: d(s),
|
|
1721
1723
|
"x-scale": Q.value,
|
|
1722
1724
|
"y-scale": F.value,
|
|
1723
1725
|
"data-j-lume-chart__overlay-group": "",
|
|
1724
|
-
"onLume__internal-Hover":
|
|
1725
|
-
}, null, 8, ["data", "orientation", "x-scale", "y-scale"])) :
|
|
1726
|
-
d(le) ? (y(),
|
|
1727
|
-
(y(!0),
|
|
1726
|
+
"onLume__internal-Hover": je
|
|
1727
|
+
}, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : z("", !0),
|
|
1728
|
+
d(le) ? (y(), O("g", ia, [
|
|
1729
|
+
(y(!0), O(q, null, W(p.value, (I, Ye) => (y(), O("circle", j(I, {
|
|
1728
1730
|
ref_for: !0,
|
|
1729
1731
|
ref_key: "tooltipAnchor",
|
|
1730
1732
|
ref: m,
|
|
1731
1733
|
key: `anchor_${Ye}`,
|
|
1732
1734
|
r: d(jn),
|
|
1733
1735
|
class: "lume-fill--transparent"
|
|
1734
|
-
}), null, 16,
|
|
1735
|
-
])) :
|
|
1736
|
-
M(
|
|
1737
|
-
data: d(
|
|
1736
|
+
}), null, 16, sa))), 128))
|
|
1737
|
+
])) : z("", !0),
|
|
1738
|
+
M(T.$slots, "groups", {
|
|
1739
|
+
data: d(x),
|
|
1738
1740
|
labels: d(N),
|
|
1739
1741
|
options: d(h),
|
|
1740
1742
|
orientation: d(s),
|
|
@@ -1743,25 +1745,25 @@ const oa = { class: "lume-chart__header" }, aa = { class: "lume-chart__header-se
|
|
|
1743
1745
|
hoveredIndex: r.value,
|
|
1744
1746
|
containerSize: d(D),
|
|
1745
1747
|
transition: d(h).withTransition !== !1,
|
|
1746
|
-
classList:
|
|
1747
|
-
onNodeClick:
|
|
1748
|
-
onNodeMouseenter:
|
|
1749
|
-
onNodeMouseleave:
|
|
1750
|
-
onLinkClick:
|
|
1751
|
-
onLinkMouseenter:
|
|
1752
|
-
onLinkMouseleave:
|
|
1753
|
-
onBarClick:
|
|
1754
|
-
onLineClick:
|
|
1755
|
-
onPointClick:
|
|
1756
|
-
"onLume__internal-Hover":
|
|
1748
|
+
classList: T.classList,
|
|
1749
|
+
onNodeClick: L[7] || (L[7] = (I) => a("node-click", I)),
|
|
1750
|
+
onNodeMouseenter: L[8] || (L[8] = (I) => a("node-mouseenter", I)),
|
|
1751
|
+
onNodeMouseleave: L[9] || (L[9] = (I) => a("node-mouseleave", I)),
|
|
1752
|
+
onLinkClick: L[10] || (L[10] = (I) => a("link-click", I)),
|
|
1753
|
+
onLinkMouseenter: L[11] || (L[11] = (I) => a("link-mouseenter", I)),
|
|
1754
|
+
onLinkMouseleave: L[12] || (L[12] = (I) => a("link-mouseleave", I)),
|
|
1755
|
+
onBarClick: L[13] || (L[13] = (I) => a("bar-click", I)),
|
|
1756
|
+
onLineClick: L[14] || (L[14] = (I) => a("line-click", I)),
|
|
1757
|
+
onPointClick: L[15] || (L[15] = (I) => a("point-click", I)),
|
|
1758
|
+
"onLume__internal-Hover": je
|
|
1757
1759
|
}, void 0, !0)
|
|
1758
|
-
], 64)) :
|
|
1760
|
+
], 64)) : z("", !0)
|
|
1759
1761
|
]),
|
|
1760
1762
|
_: 3
|
|
1761
|
-
}, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background"
|
|
1763
|
+
}, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background"]));
|
|
1762
1764
|
}
|
|
1763
1765
|
});
|
|
1764
|
-
const Ne = /* @__PURE__ */ ee(
|
|
1766
|
+
const Ne = /* @__PURE__ */ ee(da, [["__scopeId", "data-v-006c5f70"]]), Ht = 8, va = 8, ma = 20, we = 2, Bt = 2, fa = ["dy", "dominant-baseline"], pa = ["y", "x", "width", "height"], ha = { class: "lume-alluvial-group__label-wrapper" }, ga = /* @__PURE__ */ Z({
|
|
1765
1767
|
__name: "lume-alluvial-node-label",
|
|
1766
1768
|
props: {
|
|
1767
1769
|
bottom: { type: Boolean, default: !1 },
|
|
@@ -1770,20 +1772,20 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
|
|
|
1770
1772
|
},
|
|
1771
1773
|
emits: ["lume__internal--node-resize"],
|
|
1772
1774
|
setup(e, { emit: n }) {
|
|
1773
|
-
const t = e, o = n, a =
|
|
1775
|
+
const t = e, o = n, a = S(null), u = S(t.maxWidth), l = S(1);
|
|
1774
1776
|
return U(
|
|
1775
1777
|
[a, () => t.maxWidth],
|
|
1776
1778
|
async ([i, c]) => {
|
|
1777
1779
|
if (i && c) {
|
|
1778
|
-
u.value = c, await
|
|
1780
|
+
u.value = c, await Qe();
|
|
1779
1781
|
const { width: s, height: f } = i.getBoundingClientRect();
|
|
1780
1782
|
u.value = s + Bt > c ? c : s + Bt, l.value = Math.ceil(f);
|
|
1781
1783
|
}
|
|
1782
1784
|
},
|
|
1783
1785
|
{ immediate: !0 }
|
|
1784
1786
|
), U(u, async (i) => {
|
|
1785
|
-
i !== t.maxWidth && (await
|
|
1786
|
-
}), (i, c) => e.maxWidth ? (y(),
|
|
1787
|
+
i !== t.maxWidth && (await Qe(), o("lume__internal--node-resize"));
|
|
1788
|
+
}), (i, c) => e.maxWidth ? (y(), O("foreignObject", {
|
|
1787
1789
|
key: 1,
|
|
1788
1790
|
class: "lume-alluvial-group__node-foreign",
|
|
1789
1791
|
y: e.bottom ? "0.1em" : -l.value + 1,
|
|
@@ -1791,8 +1793,8 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
|
|
|
1791
1793
|
width: u.value,
|
|
1792
1794
|
height: l.value
|
|
1793
1795
|
}, [
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
+
R("div", ha, [
|
|
1797
|
+
R("span", {
|
|
1796
1798
|
ref_key: "text",
|
|
1797
1799
|
ref: a,
|
|
1798
1800
|
class: "lume-alluvial-group__node-label"
|
|
@@ -1800,60 +1802,60 @@ const Ne = /* @__PURE__ */ ee(va, [["__scopeId", "data-v-14e6a8a3"]]), Ht = 8, m
|
|
|
1800
1802
|
M(i.$slots, "default", {}, void 0, !0)
|
|
1801
1803
|
], 512)
|
|
1802
1804
|
])
|
|
1803
|
-
], 8,
|
|
1805
|
+
], 8, pa)) : (y(), O("text", {
|
|
1804
1806
|
key: 0,
|
|
1805
1807
|
class: "lume-alluvial-group__node-label",
|
|
1806
1808
|
dy: e.bottom ? ".2em" : "-.2em",
|
|
1807
1809
|
"dominant-baseline": e.bottom ? "hanging" : "auto"
|
|
1808
1810
|
}, [
|
|
1809
1811
|
M(i.$slots, "default", {}, void 0, !0)
|
|
1810
|
-
], 8,
|
|
1812
|
+
], 8, fa));
|
|
1811
1813
|
}
|
|
1812
1814
|
});
|
|
1813
|
-
const
|
|
1815
|
+
const _a = /* @__PURE__ */ ee(ga, [["__scopeId", "data-v-7126dfdb"]]), ya = ["y", "dominant-baseline"], ka = /* @__PURE__ */ Z({
|
|
1814
1816
|
__name: "lume-alluvial-node-value",
|
|
1815
1817
|
props: {
|
|
1816
1818
|
bottom: { type: Boolean, default: !0 }
|
|
1817
1819
|
},
|
|
1818
1820
|
setup(e) {
|
|
1819
|
-
return (n, t) => (y(),
|
|
1821
|
+
return (n, t) => (y(), O("text", {
|
|
1820
1822
|
class: "lume-alluvial-group__node-value",
|
|
1821
1823
|
y: e.bottom ? ".2em" : "-.2em",
|
|
1822
1824
|
"dominant-baseline": e.bottom ? "hanging" : "auto"
|
|
1823
1825
|
}, [
|
|
1824
1826
|
M(n.$slots, "default", {}, void 0, !0)
|
|
1825
|
-
], 8,
|
|
1827
|
+
], 8, ya));
|
|
1826
1828
|
}
|
|
1827
1829
|
});
|
|
1828
|
-
const
|
|
1830
|
+
const ba = /* @__PURE__ */ ee(ka, [["__scopeId", "data-v-b4fc758b"]]), Aa = ["transform"], Ta = ["transform"], La = ["transform"], $a = /* @__PURE__ */ Z({
|
|
1829
1831
|
__name: "lume-alluvial-node-header",
|
|
1830
1832
|
props: {
|
|
1831
1833
|
x: { type: Number, required: !0 },
|
|
1832
1834
|
y: { type: Number, required: !0 }
|
|
1833
1835
|
},
|
|
1834
1836
|
setup(e) {
|
|
1835
|
-
const n =
|
|
1837
|
+
const n = S(null), t = v(
|
|
1836
1838
|
() => n.value && `translate(${-n.value.getBBox().width / 2}, 0)`
|
|
1837
1839
|
), o = v(
|
|
1838
1840
|
() => n.value && `translate(${n.value.getBBox().width / 2}, 0)`
|
|
1839
1841
|
);
|
|
1840
|
-
return (a, u) => (y(),
|
|
1842
|
+
return (a, u) => (y(), O("g", {
|
|
1841
1843
|
transform: `translate(${e.x}, ${e.y})`
|
|
1842
1844
|
}, [
|
|
1843
|
-
|
|
1845
|
+
R("g", { transform: t.value }, [
|
|
1844
1846
|
M(a.$slots, "before", {}, void 0, !0)
|
|
1845
|
-
], 8,
|
|
1846
|
-
|
|
1847
|
+
], 8, Ta),
|
|
1848
|
+
R("text", {
|
|
1847
1849
|
ref_key: "textRef",
|
|
1848
1850
|
ref: n,
|
|
1849
1851
|
class: "lume-alluvial-group__node-header lume-typography--caption"
|
|
1850
1852
|
}, [
|
|
1851
1853
|
M(a.$slots, "default", {}, void 0, !0)
|
|
1852
1854
|
], 512),
|
|
1853
|
-
|
|
1855
|
+
R("g", { transform: o.value }, [
|
|
1854
1856
|
M(a.$slots, "after", {}, void 0, !0)
|
|
1855
|
-
], 8,
|
|
1856
|
-
], 8,
|
|
1857
|
+
], 8, La)
|
|
1858
|
+
], 8, Aa));
|
|
1857
1859
|
}
|
|
1858
1860
|
});
|
|
1859
1861
|
const xa = /* @__PURE__ */ ee($a, [["__scopeId", "data-v-0e483453"]]);
|
|
@@ -1865,32 +1867,32 @@ function Mt(e, n) {
|
|
|
1865
1867
|
y1: e.height - (n ? n.bottom : 0)
|
|
1866
1868
|
};
|
|
1867
1869
|
}
|
|
1868
|
-
function
|
|
1869
|
-
const n =
|
|
1870
|
+
function Oa(e) {
|
|
1871
|
+
const n = S(Mt(e));
|
|
1870
1872
|
function t(o) {
|
|
1871
1873
|
n.value = Mt(e, o);
|
|
1872
1874
|
}
|
|
1873
1875
|
return { extents: n, updateExtents: t };
|
|
1874
1876
|
}
|
|
1875
|
-
var
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1878
|
-
t && Pt() || console.error(
|
|
1877
|
+
var Ce = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Ce || {});
|
|
1878
|
+
const Ia = "[lume] ";
|
|
1879
|
+
function ut(e, n, t = !0) {
|
|
1880
|
+
t && Pt() || console.error(Ia + "Error: " + e, n);
|
|
1879
1881
|
}
|
|
1880
|
-
const
|
|
1882
|
+
const wa = 200;
|
|
1881
1883
|
function Ie(e) {
|
|
1882
1884
|
return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
|
|
1883
1885
|
}
|
|
1884
|
-
function
|
|
1886
|
+
function Ea(e, n) {
|
|
1885
1887
|
return n.nodes.find((t) => t.id === e);
|
|
1886
1888
|
}
|
|
1887
|
-
function
|
|
1889
|
+
function Na(e, n) {
|
|
1888
1890
|
return n.links.find((t) => t.id === e);
|
|
1889
1891
|
}
|
|
1890
1892
|
function nn(e) {
|
|
1891
1893
|
return !!(e.sourceLinks && e.targetLinks);
|
|
1892
1894
|
}
|
|
1893
|
-
function
|
|
1895
|
+
function Da(e, n) {
|
|
1894
1896
|
if (!n)
|
|
1895
1897
|
return;
|
|
1896
1898
|
const t = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = n.filter((l) => t.includes(l.dataset.id)).reduce(
|
|
@@ -1907,7 +1909,7 @@ function Ha(e, n) {
|
|
|
1907
1909
|
bottom: 0
|
|
1908
1910
|
};
|
|
1909
1911
|
}
|
|
1910
|
-
function
|
|
1912
|
+
function Ha(e) {
|
|
1911
1913
|
return e.map((n) => {
|
|
1912
1914
|
const t = n.y1 - n.y0 < we;
|
|
1913
1915
|
return {
|
|
@@ -1924,28 +1926,28 @@ function Ba(e) {
|
|
|
1924
1926
|
};
|
|
1925
1927
|
});
|
|
1926
1928
|
}
|
|
1927
|
-
function
|
|
1929
|
+
function Ba(e) {
|
|
1928
1930
|
return [e.source.x1, e.y0];
|
|
1929
1931
|
}
|
|
1930
|
-
function
|
|
1932
|
+
function Ma(e) {
|
|
1931
1933
|
return [e.target.x0, e.y1];
|
|
1932
1934
|
}
|
|
1933
|
-
function
|
|
1934
|
-
return e.curveFunction ?
|
|
1935
|
+
function Ga(e) {
|
|
1936
|
+
return e.curveFunction ? pn(e.curveFunction).source(Ba).target(Ma) : yn();
|
|
1935
1937
|
}
|
|
1936
|
-
function
|
|
1938
|
+
function Sa(e) {
|
|
1937
1939
|
return e.map((n) => {
|
|
1938
1940
|
var t;
|
|
1939
1941
|
return {
|
|
1940
1942
|
id: n.id,
|
|
1941
|
-
color: n.color || ((t = n.source) == null ? void 0 : t.color) ||
|
|
1942
|
-
d:
|
|
1943
|
+
color: n.color || ((t = n.source) == null ? void 0 : t.color) || Re,
|
|
1944
|
+
d: Ga(n)(n),
|
|
1943
1945
|
strokeWidth: Math.max(1, n.width),
|
|
1944
1946
|
link: n
|
|
1945
1947
|
};
|
|
1946
1948
|
});
|
|
1947
1949
|
}
|
|
1948
|
-
function
|
|
1950
|
+
function Gt(e, n, t, o, a) {
|
|
1949
1951
|
if (o === !1) {
|
|
1950
1952
|
e.node = {
|
|
1951
1953
|
...e.node,
|
|
@@ -1953,8 +1955,8 @@ function St(e, n, t, o, a) {
|
|
|
1953
1955
|
};
|
|
1954
1956
|
return;
|
|
1955
1957
|
}
|
|
1956
|
-
const u = Date.now(), l =
|
|
1957
|
-
let s = (Date.now() - u) /
|
|
1958
|
+
const u = Date.now(), l = Nn(n, t), i = () => {
|
|
1959
|
+
let s = (Date.now() - u) / wa;
|
|
1958
1960
|
s > 1 && (s = 1), e.node = {
|
|
1959
1961
|
...e.node,
|
|
1960
1962
|
transitionValue: a && s === 1 ? void 0 : l(s)
|
|
@@ -1962,23 +1964,23 @@ function St(e, n, t, o, a) {
|
|
|
1962
1964
|
};
|
|
1963
1965
|
requestAnimationFrame(i);
|
|
1964
1966
|
}
|
|
1965
|
-
const
|
|
1967
|
+
const Ra = {
|
|
1966
1968
|
nodes: [],
|
|
1967
1969
|
links: []
|
|
1968
1970
|
};
|
|
1969
|
-
function
|
|
1971
|
+
function St(e, n) {
|
|
1970
1972
|
return n.find((t) => t.every((o) => o.x0 === e.x0));
|
|
1971
1973
|
}
|
|
1972
1974
|
function ja(e, n, t) {
|
|
1973
|
-
const o =
|
|
1975
|
+
const o = S(null), a = v(() => {
|
|
1974
1976
|
var r, m;
|
|
1975
1977
|
return (m = (r = e.value) == null ? void 0 : r[0]) == null ? void 0 : m.values.map(
|
|
1976
|
-
({ label: g, color: p, value: b, deriveColorFromIncomingLinks:
|
|
1978
|
+
({ label: g, color: p, value: b, deriveColorFromIncomingLinks: $, offset: A }) => ({
|
|
1977
1979
|
label: g || b.toString(),
|
|
1978
1980
|
color: p,
|
|
1979
|
-
fallbackColor: p ||
|
|
1981
|
+
fallbackColor: p || Re,
|
|
1980
1982
|
id: b,
|
|
1981
|
-
deriveColorFromIncomingLinks:
|
|
1983
|
+
deriveColorFromIncomingLinks: $,
|
|
1982
1984
|
offset: A
|
|
1983
1985
|
})
|
|
1984
1986
|
);
|
|
@@ -1989,47 +1991,47 @@ function ja(e, n, t) {
|
|
|
1989
1991
|
(g) => {
|
|
1990
1992
|
var p;
|
|
1991
1993
|
return (p = g.targets) == null ? void 0 : p.map(
|
|
1992
|
-
({ node: b, value:
|
|
1994
|
+
({ node: b, value: $, color: A, curveFunction: h }) => ({
|
|
1993
1995
|
id: `${g.value}:${b}`,
|
|
1994
1996
|
color: A,
|
|
1995
1997
|
curveFunction: h,
|
|
1996
1998
|
source: g.value ?? g.label,
|
|
1997
1999
|
target: b,
|
|
1998
|
-
value:
|
|
2000
|
+
value: $
|
|
1999
2001
|
})
|
|
2000
2002
|
);
|
|
2001
2003
|
}
|
|
2002
2004
|
).filter(Boolean).flat();
|
|
2003
2005
|
}
|
|
2004
|
-
), l = v(() =>
|
|
2006
|
+
), l = v(() => kn().nodeId(Ie).nodeAlign(n.value.nodeAlign).nodePadding(n.value.nodePadding).nodeSort(n.value.nodeSort).nodeWidth(n.value.nodeWidth).linkSort(n.value.linkSort).iterations(n.value.iterations)), i = v(() => {
|
|
2005
2007
|
var r;
|
|
2006
2008
|
return (r = o.value) == null ? void 0 : r.nodes.reduce(
|
|
2007
2009
|
(m, g) => {
|
|
2008
|
-
const p =
|
|
2009
|
-
return p ? (p.push(g), p.sort((b,
|
|
2010
|
+
const p = St(g, m);
|
|
2011
|
+
return p ? (p.push(g), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([g]), m;
|
|
2010
2012
|
},
|
|
2011
2013
|
[]
|
|
2012
2014
|
);
|
|
2013
2015
|
});
|
|
2014
2016
|
function c(r) {
|
|
2015
|
-
const { offset: m } = r, g =
|
|
2017
|
+
const { offset: m } = r, g = St(r, i.value);
|
|
2016
2018
|
if (!g)
|
|
2017
2019
|
return;
|
|
2018
|
-
const p = g[g.findIndex((
|
|
2020
|
+
const p = g[g.findIndex(($) => $.id === r.id) - 1], b = p && g.length !== 1 ? p.y1 + m : m;
|
|
2019
2021
|
r._y0 = r.y0, r._y1 = r.y1, r.y0 = b, r.y1 = r.y0 + (r._y1 - r._y0);
|
|
2020
2022
|
}
|
|
2021
2023
|
function s(r, m) {
|
|
2022
|
-
const { id: g, _y0: p, y0: b } = r,
|
|
2023
|
-
(
|
|
2024
|
+
const { id: g, _y0: p, y0: b } = r, $ = m.links.filter(
|
|
2025
|
+
(x) => x.source.id === g
|
|
2024
2026
|
), A = m.links.filter(
|
|
2025
|
-
(
|
|
2027
|
+
(x) => x.target.id === g
|
|
2026
2028
|
), h = b - p;
|
|
2027
|
-
|
|
2029
|
+
$.forEach((x) => x.y0 += h), A.forEach((x) => x.y1 += h);
|
|
2028
2030
|
}
|
|
2029
2031
|
const f = v(() => {
|
|
2030
2032
|
var r;
|
|
2031
2033
|
return o.value && ((r = a.value) == null || r.forEach((m) => {
|
|
2032
|
-
m.value === 0 && (m.fallbackColor =
|
|
2034
|
+
m.value === 0 && (m.fallbackColor = vt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
|
|
2033
2035
|
})), o.value;
|
|
2034
2036
|
});
|
|
2035
2037
|
return U([l, t], () => {
|
|
@@ -2040,21 +2042,21 @@ function ja(e, n, t) {
|
|
|
2040
2042
|
[g, p]
|
|
2041
2043
|
])({ nodes: a.value, links: u.value });
|
|
2042
2044
|
} catch (r) {
|
|
2043
|
-
|
|
2045
|
+
ut(Ce.GraphProblem, r), o.value = Ra;
|
|
2044
2046
|
}
|
|
2045
2047
|
}), { columns: i, graph: f };
|
|
2046
2048
|
}
|
|
2047
|
-
function
|
|
2049
|
+
function rt(e, n) {
|
|
2048
2050
|
return n || (n = {}), e.targetLinks && e.targetLinks.forEach(({ source: t, value: o }) => {
|
|
2049
|
-
n[t.id] = o,
|
|
2051
|
+
n[t.id] = o, rt(
|
|
2050
2052
|
t,
|
|
2051
2053
|
n
|
|
2052
2054
|
);
|
|
2053
2055
|
}), n;
|
|
2054
2056
|
}
|
|
2055
|
-
function
|
|
2057
|
+
function it(e, n) {
|
|
2056
2058
|
return n || (n = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: t, value: o }) => {
|
|
2057
|
-
n[t.id] = o,
|
|
2059
|
+
n[t.id] = o, it(
|
|
2058
2060
|
t,
|
|
2059
2061
|
n
|
|
2060
2062
|
);
|
|
@@ -2063,21 +2065,21 @@ function rt(e, n) {
|
|
|
2063
2065
|
function Va(e, n) {
|
|
2064
2066
|
return n.links.reduce((t, o) => (o.source.id in e && o.target.id in e && t.push(o.id), t), []);
|
|
2065
2067
|
}
|
|
2066
|
-
const
|
|
2068
|
+
const Ca = (e, n) => {
|
|
2067
2069
|
let t;
|
|
2068
2070
|
nn(e) ? t = {
|
|
2069
2071
|
[e.id]: e.value,
|
|
2070
|
-
...
|
|
2071
|
-
...
|
|
2072
|
+
...rt(e),
|
|
2073
|
+
...it(e)
|
|
2072
2074
|
} : t = {
|
|
2073
2075
|
[e.source.id]: e.source.value,
|
|
2074
2076
|
[e.target.id]: e.target.value,
|
|
2075
|
-
...
|
|
2076
|
-
...
|
|
2077
|
+
...rt(e.source),
|
|
2078
|
+
...it(e.target)
|
|
2077
2079
|
};
|
|
2078
2080
|
const o = Va(t, n);
|
|
2079
2081
|
return { nodes: t, links: o };
|
|
2080
|
-
},
|
|
2082
|
+
}, Pa = (e) => {
|
|
2081
2083
|
if (nn(e)) {
|
|
2082
2084
|
const n = [...e.sourceLinks, ...e.targetLinks];
|
|
2083
2085
|
return {
|
|
@@ -2096,15 +2098,15 @@ const Pa = (e, n) => {
|
|
|
2096
2098
|
links: [e.id]
|
|
2097
2099
|
};
|
|
2098
2100
|
};
|
|
2099
|
-
function
|
|
2100
|
-
const o =
|
|
2101
|
+
function Fa(e, n, t) {
|
|
2102
|
+
const o = S(null), a = v(() => o.value ? typeof n.value.highlightedElements == "function" ? n.value.highlightedElements(
|
|
2101
2103
|
o.value,
|
|
2102
2104
|
t.value
|
|
2103
|
-
) : n.value.highlightedElements === "closest" ?
|
|
2105
|
+
) : n.value.highlightedElements === "closest" ? Pa(o.value, t.value) : Ca(o.value, t.value) : { nodes: {}, links: [] });
|
|
2104
2106
|
return U(a, (u, l) => {
|
|
2105
2107
|
if (u.links.length === 0 && Object.keys(u.nodes).length === 0) {
|
|
2106
2108
|
e.value.forEach((i) => {
|
|
2107
|
-
i.node.id in l.nodes &&
|
|
2109
|
+
i.node.id in l.nodes && Gt(
|
|
2108
2110
|
i,
|
|
2109
2111
|
l.nodes[i.node.id],
|
|
2110
2112
|
i.node.value,
|
|
@@ -2115,7 +2117,7 @@ function za(e, n, t) {
|
|
|
2115
2117
|
return;
|
|
2116
2118
|
}
|
|
2117
2119
|
e.value.forEach((i) => {
|
|
2118
|
-
i.node.id in u.nodes &&
|
|
2120
|
+
i.node.id in u.nodes && Gt(
|
|
2119
2121
|
i,
|
|
2120
2122
|
i.node.value,
|
|
2121
2123
|
u.nodes[i.node.id],
|
|
@@ -2124,10 +2126,10 @@ function za(e, n, t) {
|
|
|
2124
2126
|
});
|
|
2125
2127
|
}), { highlightedElements: a, hoveredElement: o };
|
|
2126
2128
|
}
|
|
2127
|
-
const
|
|
2129
|
+
const za = {
|
|
2128
2130
|
class: "lume-alluvial-group",
|
|
2129
2131
|
"data-j-alluvial-group": ""
|
|
2130
|
-
},
|
|
2132
|
+
}, Wa = { key: 0 }, Za = { key: 0 }, Ua = ["id", "x1", "x2"], Xa = ["stop-color"], Ya = ["stop-color"], Ka = ["d", "stroke-width", "onClick", "onMouseover"], Ja = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Qa = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], qa = ["x", "y", "height", "width"], el = ["transform", "data-id", "width"], tl = /* @__PURE__ */ Z({
|
|
2131
2133
|
__name: "lume-alluvial-group",
|
|
2132
2134
|
props: {
|
|
2133
2135
|
...We(),
|
|
@@ -2138,31 +2140,31 @@ const Wa = {
|
|
|
2138
2140
|
},
|
|
2139
2141
|
emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
|
|
2140
2142
|
setup(e, { emit: n }) {
|
|
2141
|
-
const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i =
|
|
2143
|
+
const t = e, o = n, a = Pe("chartID"), { data: u, options: l } = te(t), i = S([]), c = S([]), s = S(null), { extents: f, updateExtents: r } = Oa(t.containerSize), { columns: m, graph: g } = ja(u, l, f), { hoveredElement: p, highlightedElements: b } = Fa(
|
|
2142
2144
|
i,
|
|
2143
2145
|
l,
|
|
2144
2146
|
g
|
|
2145
|
-
),
|
|
2147
|
+
), $ = v(() => Ve(l.value.valueFormat)), A = v(
|
|
2146
2148
|
() => Object.keys(b.value.nodes)
|
|
2147
2149
|
), h = v(() => m.value ? m.value.map(
|
|
2148
2150
|
(k) => k[0].x0 + l.value.nodeWidth / 2
|
|
2149
|
-
) : []),
|
|
2151
|
+
) : []), x = v(() => {
|
|
2150
2152
|
if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
|
|
2151
2153
|
return l.value.nodeHeaders.slice(0, h.value.length).map((k, E) => ({
|
|
2152
2154
|
label: k,
|
|
2153
2155
|
x: h.value[E]
|
|
2154
2156
|
}));
|
|
2155
2157
|
}), N = v(
|
|
2156
|
-
() => l.value.nodeHeaderPadding ??
|
|
2158
|
+
() => l.value.nodeHeaderPadding ?? ma
|
|
2157
2159
|
), D = v(() => {
|
|
2158
2160
|
if (!(!l.value.gradient || !g.value))
|
|
2159
2161
|
return g.value.links.reduce((k, E) => {
|
|
2160
|
-
const { source: _, target:
|
|
2162
|
+
const { source: _, target: V } = E, J = _.color || _.fallbackColor, le = V.deriveColorFromIncomingLinks ? J : V.color || V.fallbackColor;
|
|
2161
2163
|
return k[E.id] = {
|
|
2162
2164
|
source: J,
|
|
2163
2165
|
target: le,
|
|
2164
2166
|
x1: _.x1,
|
|
2165
|
-
x2:
|
|
2167
|
+
x2: V.x0
|
|
2166
2168
|
}, k;
|
|
2167
2169
|
}, {});
|
|
2168
2170
|
}), P = v(() => {
|
|
@@ -2170,21 +2172,21 @@ const Wa = {
|
|
|
2170
2172
|
(_) => F(_)
|
|
2171
2173
|
), E = [];
|
|
2172
2174
|
return k.forEach((_) => {
|
|
2173
|
-
const
|
|
2175
|
+
const V = [];
|
|
2174
2176
|
c.value.filter(({ link: J }) => J.target.id === _.node.id).reverse().reduce((J, le, De, Ze) => {
|
|
2175
2177
|
const Ue = le.link.target.y1 - le.link.target.y0 > we;
|
|
2176
|
-
let
|
|
2177
|
-
return Ue ? (
|
|
2178
|
+
let xe, He, Oe;
|
|
2179
|
+
return Ue ? (xe = le.link.target.y1 - le.link.target.y0, He = le.link.value / _.node.value, Oe = He * xe) : (xe = we, Oe = we / Ze.length), V.push({
|
|
2178
2180
|
x: _.x,
|
|
2179
2181
|
y: _.y + J,
|
|
2180
|
-
height:
|
|
2182
|
+
height: Oe,
|
|
2181
2183
|
width: _.width,
|
|
2182
2184
|
key: `node-block-${_.node.id}-source-link-${le.link.source.id}`,
|
|
2183
|
-
class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color ||
|
|
2184
|
-
}), J +
|
|
2185
|
+
class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Re}`
|
|
2186
|
+
}), J + Oe;
|
|
2185
2187
|
}, 0), E.push({
|
|
2186
2188
|
id: _.node.id,
|
|
2187
|
-
subNodes:
|
|
2189
|
+
subNodes: V
|
|
2188
2190
|
});
|
|
2189
2191
|
}), E;
|
|
2190
2192
|
});
|
|
@@ -2218,28 +2220,28 @@ const Wa = {
|
|
|
2218
2220
|
p.value = null;
|
|
2219
2221
|
return;
|
|
2220
2222
|
}
|
|
2221
|
-
const E =
|
|
2223
|
+
const E = Ea(k, g.value) || Na(k, g.value);
|
|
2222
2224
|
if (!E) {
|
|
2223
2225
|
ge(me.InvalidHoveredElement);
|
|
2224
2226
|
return;
|
|
2225
2227
|
}
|
|
2226
2228
|
p.value = E;
|
|
2227
2229
|
}
|
|
2228
|
-
function
|
|
2230
|
+
function $e(k) {
|
|
2229
2231
|
var E;
|
|
2230
2232
|
return ((E = P.value.find(({ id: _ }) => k === _)) == null ? void 0 : E.subNodes) ?? [];
|
|
2231
2233
|
}
|
|
2232
|
-
function
|
|
2233
|
-
const k =
|
|
2234
|
+
function G() {
|
|
2235
|
+
const k = Da(g.value, s.value);
|
|
2234
2236
|
r(k);
|
|
2235
2237
|
}
|
|
2236
2238
|
return U(g, (k) => {
|
|
2237
|
-
i.value =
|
|
2239
|
+
i.value = Ha(k.nodes), c.value = Sa(k.links).reverse(), p.value == null && t.hoveredElementId != null && ke(t.hoveredElementId);
|
|
2238
2240
|
}), U([t.containerSize, s], () => {
|
|
2239
|
-
t.containerSize.width && t.containerSize.height &&
|
|
2240
|
-
}), U(() => t.hoveredElementId, ke), (k, E) => (y(),
|
|
2241
|
-
|
|
2242
|
-
(y(!0),
|
|
2241
|
+
t.containerSize.width && t.containerSize.height && G();
|
|
2242
|
+
}), U(() => t.hoveredElementId, ke), (k, E) => (y(), O("g", za, [
|
|
2243
|
+
x.value ? (y(), O("g", Wa, [
|
|
2244
|
+
(y(!0), O(q, null, W(x.value, (_, V) => M(k.$slots, `node-header-${V}`, {
|
|
2243
2245
|
x: _.x,
|
|
2244
2246
|
y: -N.value
|
|
2245
2247
|
}, () => [
|
|
@@ -2248,48 +2250,48 @@ const Wa = {
|
|
|
2248
2250
|
x: _.x,
|
|
2249
2251
|
y: -N.value
|
|
2250
2252
|
}, {
|
|
2251
|
-
default:
|
|
2253
|
+
default: C(() => [
|
|
2252
2254
|
ce(oe(_.label), 1)
|
|
2253
2255
|
]),
|
|
2254
2256
|
_: 2
|
|
2255
2257
|
}, 1032, ["x", "y"]))
|
|
2256
2258
|
], !0)), 256))
|
|
2257
|
-
])) :
|
|
2258
|
-
|
|
2259
|
+
])) : z("", !0),
|
|
2260
|
+
R("g", {
|
|
2259
2261
|
class: "lume-alluvial-link-group",
|
|
2260
2262
|
onMouseleave: Le
|
|
2261
2263
|
}, [
|
|
2262
|
-
d(l).gradient ? (y(),
|
|
2263
|
-
(y(!0),
|
|
2264
|
-
id: `${d(a)}_${
|
|
2265
|
-
key:
|
|
2264
|
+
d(l).gradient ? (y(), O("defs", Za, [
|
|
2265
|
+
(y(!0), O(q, null, W(D.value, (_, V) => (y(), O("linearGradient", {
|
|
2266
|
+
id: `${d(a)}_${V}`,
|
|
2267
|
+
key: V,
|
|
2266
2268
|
gradientUnits: "userSpaceOnUse",
|
|
2267
2269
|
x1: _.x1,
|
|
2268
2270
|
x2: _.x2
|
|
2269
2271
|
}, [
|
|
2270
|
-
|
|
2272
|
+
R("stop", {
|
|
2271
2273
|
offset: "0%",
|
|
2272
2274
|
"stop-color": `var(--lume-color--${_.source})`
|
|
2273
|
-
}, null, 8,
|
|
2274
|
-
|
|
2275
|
+
}, null, 8, Xa),
|
|
2276
|
+
R("stop", {
|
|
2275
2277
|
offset: "100%",
|
|
2276
2278
|
"stop-color": `var(--lume-color--${_.target})`
|
|
2277
|
-
}, null, 8,
|
|
2278
|
-
], 8,
|
|
2279
|
-
])) :
|
|
2280
|
-
(y(!0),
|
|
2279
|
+
}, null, 8, Ya)
|
|
2280
|
+
], 8, Ua))), 128))
|
|
2281
|
+
])) : z("", !0),
|
|
2282
|
+
(y(!0), O(q, null, W(c.value, (_) => (y(), O("path", {
|
|
2281
2283
|
key: `link-ghost_${_.id}`,
|
|
2282
2284
|
class: ne(["lume-alluvial-group__link", [
|
|
2283
2285
|
"lume-stroke--transparent",
|
|
2284
2286
|
"lume-alluvial-group__link--ghost"
|
|
2285
2287
|
]]),
|
|
2286
2288
|
d: _.d,
|
|
2287
|
-
"stroke-width": _.strokeWidth + d(
|
|
2289
|
+
"stroke-width": _.strokeWidth + d(va),
|
|
2288
2290
|
"data-j-alluvial-ghost": "",
|
|
2289
|
-
onClick: (
|
|
2290
|
-
onMouseover: (
|
|
2291
|
-
}, null, 40,
|
|
2292
|
-
(y(!0),
|
|
2291
|
+
onClick: (V) => o("link-click", { link: _.link, event: V }),
|
|
2292
|
+
onMouseover: (V) => ue(_.link, V)
|
|
2293
|
+
}, null, 40, Ka))), 128)),
|
|
2294
|
+
(y(!0), O(q, null, W(c.value, (_) => (y(), O("path", {
|
|
2293
2295
|
key: `link_${_.id}`,
|
|
2294
2296
|
class: ne(["lume-alluvial-group__link", {
|
|
2295
2297
|
[`lume-stroke--${_.color}`]: !d(l).gradient && _.color,
|
|
@@ -2303,39 +2305,39 @@ const Wa = {
|
|
|
2303
2305
|
"stroke-width": _.strokeWidth,
|
|
2304
2306
|
"data-j-alluvial-path": "",
|
|
2305
2307
|
"data-id": _.id,
|
|
2306
|
-
onClick: (
|
|
2307
|
-
onMouseover: (
|
|
2308
|
-
}, null, 42,
|
|
2308
|
+
onClick: (V) => o("link-click", { link: _.link, event: V }),
|
|
2309
|
+
onMouseover: (V) => ue(_.link, V)
|
|
2310
|
+
}, null, 42, Ja))), 128))
|
|
2309
2311
|
], 32),
|
|
2310
|
-
(y(!0),
|
|
2311
|
-
key: `node-block_${
|
|
2312
|
+
(y(!0), O(q, null, W(i.value, (_, V) => (y(), O("g", {
|
|
2313
|
+
key: `node-block_${V}`,
|
|
2312
2314
|
class: ne(["lume-alluvial-group__node", {
|
|
2313
2315
|
"lume-alluvial-group__node--faded": H(_.node.id),
|
|
2314
2316
|
"lume-alluvial-group__node--focused": Y(_.node.id)
|
|
2315
2317
|
}]),
|
|
2316
2318
|
"data-j-alluvial-group__node-block": ""
|
|
2317
2319
|
}, [
|
|
2318
|
-
|
|
2320
|
+
R("g", {
|
|
2319
2321
|
onClick: (J) => o("node-click", { node: _.node, event: J }),
|
|
2320
2322
|
onMouseenter: (J) => o("node-mouseenter", { node: _.node, event: J }),
|
|
2321
2323
|
onMouseleave: (J) => o("node-mouseleave", { node: _.node, event: J }),
|
|
2322
2324
|
onMouseover: (J) => p.value = _.node,
|
|
2323
2325
|
onMouseout: E[0] || (E[0] = (J) => p.value = null)
|
|
2324
2326
|
}, [
|
|
2325
|
-
F(_) ? (y(!0),
|
|
2327
|
+
F(_) ? (y(!0), O(q, { key: 0 }, W($e(
|
|
2326
2328
|
_.node.id
|
|
2327
|
-
), (J) => (y(),
|
|
2329
|
+
), (J) => (y(), O("rect", j(J, {
|
|
2328
2330
|
key: J.key,
|
|
2329
2331
|
"data-j-alluvial-sub-nodes": ""
|
|
2330
|
-
}), null, 16))), 128)) : (y(),
|
|
2332
|
+
}), null, 16))), 128)) : (y(), O("rect", {
|
|
2331
2333
|
key: 1,
|
|
2332
2334
|
class: ne(["lume-alluvial-group__node-block", `lume-fill--${_.node.color || _.node.fallbackColor}`]),
|
|
2333
2335
|
x: _.x,
|
|
2334
2336
|
y: _.y,
|
|
2335
2337
|
height: _.height,
|
|
2336
2338
|
width: _.width
|
|
2337
|
-
}, null, 10,
|
|
2338
|
-
|
|
2339
|
+
}, null, 10, qa)),
|
|
2340
|
+
R("g", {
|
|
2339
2341
|
ref_for: !0,
|
|
2340
2342
|
ref_key: "nodeTextRefs",
|
|
2341
2343
|
ref: s,
|
|
@@ -2348,27 +2350,27 @@ const Wa = {
|
|
|
2348
2350
|
}, [
|
|
2349
2351
|
M(k.$slots, `node-text-${_.node.id}`, {
|
|
2350
2352
|
node: _.node,
|
|
2351
|
-
value:
|
|
2353
|
+
value: $.value(
|
|
2352
2354
|
_.node.transitionValue || _.node.value,
|
|
2353
2355
|
_.node.value
|
|
2354
2356
|
)
|
|
2355
2357
|
}, () => [
|
|
2356
|
-
ie(d(
|
|
2358
|
+
ie(d(_a), {
|
|
2357
2359
|
bottom: d(l).switchText,
|
|
2358
2360
|
left: _.node.depth === 0,
|
|
2359
2361
|
"max-width": d(l).nodeLabelMaxWidth,
|
|
2360
|
-
"onLume__internal-NodeResize":
|
|
2362
|
+
"onLume__internal-NodeResize": G
|
|
2361
2363
|
}, {
|
|
2362
|
-
default:
|
|
2364
|
+
default: C(() => [
|
|
2363
2365
|
ce(oe(_.node.label), 1)
|
|
2364
2366
|
]),
|
|
2365
2367
|
_: 2
|
|
2366
2368
|
}, 1032, ["bottom", "left", "max-width"]),
|
|
2367
|
-
ie(d(
|
|
2369
|
+
ie(d(ba), {
|
|
2368
2370
|
bottom: !d(l).switchText
|
|
2369
2371
|
}, {
|
|
2370
|
-
default:
|
|
2371
|
-
ce(oe(
|
|
2372
|
+
default: C(() => [
|
|
2373
|
+
ce(oe($.value(
|
|
2372
2374
|
_.node.transitionValue || _.node.value,
|
|
2373
2375
|
_.node.value
|
|
2374
2376
|
)), 1)
|
|
@@ -2376,13 +2378,13 @@ const Wa = {
|
|
|
2376
2378
|
_: 2
|
|
2377
2379
|
}, 1032, ["bottom"])
|
|
2378
2380
|
], !0)
|
|
2379
|
-
], 10,
|
|
2380
|
-
], 40,
|
|
2381
|
+
], 10, el)
|
|
2382
|
+
], 40, Qa)
|
|
2381
2383
|
], 2))), 128))
|
|
2382
2384
|
]));
|
|
2383
2385
|
}
|
|
2384
2386
|
});
|
|
2385
|
-
const
|
|
2387
|
+
const nl = /* @__PURE__ */ ee(tl, [["__scopeId", "data-v-02af69f2"]]), ol = {
|
|
2386
2388
|
margins: {
|
|
2387
2389
|
top: 0,
|
|
2388
2390
|
right: 0,
|
|
@@ -2398,16 +2400,16 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
|
|
|
2398
2400
|
highlightedElements: "closest",
|
|
2399
2401
|
nodePadding: 16,
|
|
2400
2402
|
nodeWidth: 16,
|
|
2401
|
-
nodeAlign:
|
|
2403
|
+
nodeAlign: bn,
|
|
2402
2404
|
valueFormat: (e) => String(e),
|
|
2403
2405
|
iterations: 6
|
|
2404
|
-
},
|
|
2406
|
+
}, Zl = /* @__PURE__ */ Z({
|
|
2405
2407
|
__name: "lume-alluvial-diagram",
|
|
2406
2408
|
props: {
|
|
2407
|
-
...
|
|
2409
|
+
...Fo(st)
|
|
2408
2410
|
},
|
|
2409
2411
|
setup(e, { emit: n }) {
|
|
2410
|
-
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), u =
|
|
2412
|
+
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), u = Hn(re()), { options: l } = te(t), { allOptions: i } = fe(l, ol);
|
|
2411
2413
|
function c(s) {
|
|
2412
2414
|
return {
|
|
2413
2415
|
...s,
|
|
@@ -2415,15 +2417,15 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
|
|
|
2415
2417
|
// Alluvial chart never uses base scales
|
|
2416
2418
|
};
|
|
2417
2419
|
}
|
|
2418
|
-
return (s, f) => (y(), X(d(Ne),
|
|
2420
|
+
return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
|
|
2419
2421
|
options: c(d(i)),
|
|
2420
2422
|
"data-j-alluvial-diagram": ""
|
|
2421
2423
|
}, ae(d(o))), de({
|
|
2422
|
-
groups:
|
|
2423
|
-
ie(d(
|
|
2424
|
-
|
|
2424
|
+
groups: C((r) => [
|
|
2425
|
+
ie(d(nl), j(r, { "hovered-element-id": s.hoveredElement }, ae(d(o))), de({ _: 2 }, [
|
|
2426
|
+
W(d(u), (m, g) => ({
|
|
2425
2427
|
name: g,
|
|
2426
|
-
fn:
|
|
2428
|
+
fn: C((p) => [
|
|
2427
2429
|
M(s.$slots, g, pe(he(p || {})))
|
|
2428
2430
|
])
|
|
2429
2431
|
}))
|
|
@@ -2431,9 +2433,9 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
|
|
|
2431
2433
|
]),
|
|
2432
2434
|
_: 2
|
|
2433
2435
|
}, [
|
|
2434
|
-
|
|
2436
|
+
W(d(a), (r, m) => ({
|
|
2435
2437
|
name: m,
|
|
2436
|
-
fn:
|
|
2438
|
+
fn: C((g) => [
|
|
2437
2439
|
M(s.$slots, m, pe(he(g || {})))
|
|
2438
2440
|
])
|
|
2439
2441
|
}))
|
|
@@ -2441,7 +2443,7 @@ const ol = /* @__PURE__ */ ee(nl, [["__scopeId", "data-v-02af69f2"]]), al = {
|
|
|
2441
2443
|
}
|
|
2442
2444
|
});
|
|
2443
2445
|
var on = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(on || {});
|
|
2444
|
-
const
|
|
2446
|
+
const Ul = /* @__PURE__ */ Z({
|
|
2445
2447
|
__name: "lume-bar-chart",
|
|
2446
2448
|
props: {
|
|
2447
2449
|
...Ee(),
|
|
@@ -2475,41 +2477,41 @@ const Xl = /* @__PURE__ */ W({
|
|
|
2475
2477
|
};
|
|
2476
2478
|
}
|
|
2477
2479
|
const f = v(() => {
|
|
2478
|
-
if (
|
|
2480
|
+
if (st(l.data))
|
|
2479
2481
|
return u.get("single");
|
|
2480
2482
|
if (!l.type)
|
|
2481
2483
|
throw new Error("Bar chart needs a type when there's multiple datasets.");
|
|
2482
2484
|
return u.get(l.type);
|
|
2483
2485
|
});
|
|
2484
|
-
return (r, m) => (y(), X(
|
|
2486
|
+
return (r, m) => (y(), X(vn(f.value), j({ ...l, ...r.$attrs }, {
|
|
2485
2487
|
options: s(r.options)
|
|
2486
2488
|
}, ae(d(i))), de({ _: 2 }, [
|
|
2487
|
-
|
|
2489
|
+
W(d(c), (g, p) => ({
|
|
2488
2490
|
name: p,
|
|
2489
|
-
fn:
|
|
2491
|
+
fn: C((b) => [
|
|
2490
2492
|
M(r.$slots, p, pe(he(b || {})))
|
|
2491
2493
|
])
|
|
2492
2494
|
}))
|
|
2493
2495
|
]), 1040, ["options"]));
|
|
2494
2496
|
}
|
|
2495
2497
|
});
|
|
2496
|
-
function
|
|
2497
|
-
return Object.values(
|
|
2498
|
+
function al(e) {
|
|
2499
|
+
return Object.values(Rn).includes(e) || e == null;
|
|
2498
2500
|
}
|
|
2499
|
-
function
|
|
2501
|
+
function ll(e) {
|
|
2500
2502
|
return Object.values(B).includes(e);
|
|
2501
2503
|
}
|
|
2502
|
-
const
|
|
2504
|
+
const ul = (e = !1) => ({
|
|
2503
2505
|
type: {
|
|
2504
2506
|
type: String,
|
|
2505
2507
|
default: null,
|
|
2506
|
-
validator:
|
|
2508
|
+
validator: al
|
|
2507
2509
|
},
|
|
2508
2510
|
...e ? {
|
|
2509
2511
|
orientation: {
|
|
2510
2512
|
type: String,
|
|
2511
2513
|
default: B.VERTICAL,
|
|
2512
|
-
validator:
|
|
2514
|
+
validator: ll
|
|
2513
2515
|
}
|
|
2514
2516
|
} : {}
|
|
2515
2517
|
});
|
|
@@ -2518,7 +2520,7 @@ function an(e, n) {
|
|
|
2518
2520
|
var u;
|
|
2519
2521
|
return {
|
|
2520
2522
|
...a,
|
|
2521
|
-
values:
|
|
2523
|
+
values: ct(
|
|
2522
2524
|
a.values,
|
|
2523
2525
|
((u = n == null ? void 0 : n.value) == null ? void 0 : u.length) ?? 0
|
|
2524
2526
|
).map((l) => ({
|
|
@@ -2534,26 +2536,26 @@ function an(e, n) {
|
|
|
2534
2536
|
});
|
|
2535
2537
|
return { multiBarData: t, groupedData: o };
|
|
2536
2538
|
}
|
|
2537
|
-
function
|
|
2539
|
+
function rl(e, n) {
|
|
2538
2540
|
return e.value.length === 1 ? "single" : n.value;
|
|
2539
2541
|
}
|
|
2540
|
-
function
|
|
2542
|
+
function il(e, n, t) {
|
|
2541
2543
|
const o = v(
|
|
2542
2544
|
() => t.value === B.HORIZONTAL
|
|
2543
2545
|
);
|
|
2544
2546
|
function a(i) {
|
|
2545
|
-
i ||
|
|
2547
|
+
i || ut(Ce.BarScaleNull), Math.min(...i.domain()) > 0 && ut(Ce.BarScaleDomainAbove0);
|
|
2546
2548
|
}
|
|
2547
2549
|
const u = v(() => o.value ? (() => (a(e.value), e.value))() : e.value), l = v(() => o.value ? n.value : (() => (a(n.value), n.value))());
|
|
2548
2550
|
return { barXScale: u, barYScale: l };
|
|
2549
2551
|
}
|
|
2550
|
-
const
|
|
2552
|
+
const sl = {
|
|
2551
2553
|
x: 0,
|
|
2552
2554
|
y: 0,
|
|
2553
2555
|
width: 0,
|
|
2554
2556
|
height: 0
|
|
2555
2557
|
};
|
|
2556
|
-
function
|
|
2558
|
+
function cl(e, n, t, o, a, u) {
|
|
2557
2559
|
const l = v(
|
|
2558
2560
|
() => o.value === B.HORIZONTAL
|
|
2559
2561
|
);
|
|
@@ -2569,12 +2571,12 @@ function dl(e, n, t, o, a, u) {
|
|
|
2569
2571
|
}
|
|
2570
2572
|
function f(r, m, g) {
|
|
2571
2573
|
if (!(n.value && t.value))
|
|
2572
|
-
return
|
|
2573
|
-
const { value: b, color:
|
|
2574
|
+
return sl;
|
|
2575
|
+
const { value: b, color: $ } = r, A = $ ?? e.value[m].color ?? Re, { x: h, y: x } = i(b, g), N = c(b), D = s(b);
|
|
2574
2576
|
return {
|
|
2575
2577
|
classList: [`lume-fill--${A}`, ...u],
|
|
2576
2578
|
x: h,
|
|
2577
|
-
y:
|
|
2579
|
+
y: x,
|
|
2578
2580
|
width: N,
|
|
2579
2581
|
height: D,
|
|
2580
2582
|
isFaded: a.value !== -1 && a.value !== g,
|
|
@@ -2583,26 +2585,26 @@ function dl(e, n, t, o, a, u) {
|
|
|
2583
2585
|
}
|
|
2584
2586
|
return { barAttributeGenerator: f };
|
|
2585
2587
|
}
|
|
2586
|
-
const
|
|
2588
|
+
const dl = {
|
|
2587
2589
|
x: 0,
|
|
2588
2590
|
y: 0,
|
|
2589
2591
|
width: 0,
|
|
2590
2592
|
height: 0
|
|
2591
2593
|
};
|
|
2592
|
-
function
|
|
2594
|
+
function vl(e, n, t, o, a, u) {
|
|
2593
2595
|
const l = v(
|
|
2594
2596
|
() => o.value === B.HORIZONTAL
|
|
2595
2597
|
), i = v(() => Be().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0)), c = v(() => Be().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0));
|
|
2596
|
-
function s(p, b,
|
|
2598
|
+
function s(p, b, $) {
|
|
2597
2599
|
if (l.value)
|
|
2598
2600
|
return p >= 0 ? n.value(0) : n.value(p);
|
|
2599
2601
|
const A = n.value.domain();
|
|
2600
|
-
return n.value(A[b]) + i.value(
|
|
2602
|
+
return n.value(A[b]) + i.value($);
|
|
2601
2603
|
}
|
|
2602
|
-
function f(p, b,
|
|
2604
|
+
function f(p, b, $) {
|
|
2603
2605
|
if (l.value) {
|
|
2604
2606
|
const A = t.value.domain();
|
|
2605
|
-
return t.value(A[b]) + c.value(
|
|
2607
|
+
return t.value(A[b]) + c.value($);
|
|
2606
2608
|
}
|
|
2607
2609
|
return p < 0 ? t.value(0) : t.value(p);
|
|
2608
2610
|
}
|
|
@@ -2612,23 +2614,23 @@ function ml(e, n, t, o, a, u) {
|
|
|
2612
2614
|
function m(p) {
|
|
2613
2615
|
return l.value ? c.value.bandwidth() : p < 0 ? t.value(p) - t.value(0) : t.value(0) - t.value(p);
|
|
2614
2616
|
}
|
|
2615
|
-
function g(p, b,
|
|
2617
|
+
function g(p, b, $) {
|
|
2616
2618
|
if (!(n.value && t.value))
|
|
2617
|
-
return
|
|
2618
|
-
const { value: h, color:
|
|
2619
|
+
return dl;
|
|
2620
|
+
const { value: h, color: x } = p, N = x ?? e.value[b].color ?? Object.values(se)[b], D = s(h, $, b), P = f(h, $, b), w = r(h), H = m(h);
|
|
2619
2621
|
return {
|
|
2620
2622
|
classList: [`lume-fill--${N}`, ...u],
|
|
2621
2623
|
x: D,
|
|
2622
2624
|
y: P,
|
|
2623
2625
|
width: w,
|
|
2624
2626
|
height: H,
|
|
2625
|
-
isFaded: a.value !== -1 && a.value !==
|
|
2627
|
+
isFaded: a.value !== -1 && a.value !== $,
|
|
2626
2628
|
isNegative: h < 0
|
|
2627
2629
|
};
|
|
2628
2630
|
}
|
|
2629
2631
|
return { barAttributeGenerator: g };
|
|
2630
2632
|
}
|
|
2631
|
-
function
|
|
2633
|
+
function ml(e, n, t) {
|
|
2632
2634
|
const o = v(
|
|
2633
2635
|
() => n.value === B.HORIZONTAL
|
|
2634
2636
|
), a = v(() => {
|
|
@@ -2667,7 +2669,7 @@ function fl(e, n, t) {
|
|
|
2667
2669
|
}
|
|
2668
2670
|
return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
|
|
2669
2671
|
}
|
|
2670
|
-
function
|
|
2672
|
+
function fl(e, n, t, o, a, u) {
|
|
2671
2673
|
const l = v(
|
|
2672
2674
|
() => o.value === B.HORIZONTAL
|
|
2673
2675
|
), i = v(
|
|
@@ -2675,9 +2677,9 @@ function pl(e, n, t, o, a, u) {
|
|
|
2675
2677
|
), c = v(
|
|
2676
2678
|
() => e.value.map((A) => A.values.map((h) => h == null ? void 0 : h.value))
|
|
2677
2679
|
);
|
|
2678
|
-
function s(A, h,
|
|
2680
|
+
function s(A, h, x) {
|
|
2679
2681
|
let N, D;
|
|
2680
|
-
return l.value ? (N = n.value(A >= 0 ? 0 +
|
|
2682
|
+
return l.value ? (N = n.value(A >= 0 ? 0 + x : A + x), D = t.value(i.value[h])) : (N = n.value(i.value[h]), D = t.value(A >= 0 ? A + x : 0 + x)), { x: N, y: D };
|
|
2681
2683
|
}
|
|
2682
2684
|
function f(A) {
|
|
2683
2685
|
return l.value ? n.value(A) - n.value(0) : n.value.bandwidth();
|
|
@@ -2692,33 +2694,33 @@ function pl(e, n, t, o, a, u) {
|
|
|
2692
2694
|
return l.value ? t.value.bandwidth() : t.value(A) - t.value(0);
|
|
2693
2695
|
}
|
|
2694
2696
|
function p(A, h) {
|
|
2695
|
-
return A ? c.value.reduce((
|
|
2697
|
+
return A ? c.value.reduce((x, N, D) => (D < A && N[h] >= 0 && (x += N[h]), x), 0) : 0;
|
|
2696
2698
|
}
|
|
2697
2699
|
function b(A, h) {
|
|
2698
|
-
return A ? c.value.reduce((
|
|
2700
|
+
return A ? c.value.reduce((x, N, D) => (D < A && N[h] < 0 && (x += N[h]), x), 0) : 0;
|
|
2699
2701
|
}
|
|
2700
|
-
function
|
|
2701
|
-
const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h,
|
|
2702
|
+
function $(A, h, x) {
|
|
2703
|
+
const { value: N, color: D } = A, P = N >= 0 ? f(N) : r(N), w = N >= 0 ? m(N) : g(N), H = N >= 0 ? p(h, x) : b(h, x), { x: Y, y: K } = s(N, x, H);
|
|
2702
2704
|
return {
|
|
2703
2705
|
classList: [`lume-fill--${D ?? e.value[h].color ?? Object.values(se)[h]}`, ...u],
|
|
2704
2706
|
width: P,
|
|
2705
2707
|
height: w,
|
|
2706
2708
|
x: Y,
|
|
2707
2709
|
y: K,
|
|
2708
|
-
isFaded: a.value !== -1 && a.value !==
|
|
2710
|
+
isFaded: a.value !== -1 && a.value !== x,
|
|
2709
2711
|
isNegative: N < 0
|
|
2710
2712
|
};
|
|
2711
2713
|
}
|
|
2712
|
-
return { barAttributeGenerator:
|
|
2714
|
+
return { barAttributeGenerator: $ };
|
|
2713
2715
|
}
|
|
2714
|
-
const
|
|
2716
|
+
const pl = {
|
|
2715
2717
|
class: "lume-bar-group",
|
|
2716
2718
|
"data-j-bars-group": ""
|
|
2717
|
-
},
|
|
2718
|
-
single:
|
|
2719
|
-
grouped:
|
|
2720
|
-
stacked:
|
|
2721
|
-
},
|
|
2719
|
+
}, hl = ["onMouseenter"], gl = {
|
|
2720
|
+
single: cl,
|
|
2721
|
+
grouped: vl,
|
|
2722
|
+
stacked: fl
|
|
2723
|
+
}, gt = /* @__PURE__ */ Z({
|
|
2722
2724
|
__name: "lume-bar-group",
|
|
2723
2725
|
props: {
|
|
2724
2726
|
...We(),
|
|
@@ -2726,7 +2728,7 @@ const hl = {
|
|
|
2726
2728
|
type: [String, Array],
|
|
2727
2729
|
default: () => []
|
|
2728
2730
|
},
|
|
2729
|
-
...
|
|
2731
|
+
...ul(!0),
|
|
2730
2732
|
transition: {
|
|
2731
2733
|
type: Boolean,
|
|
2732
2734
|
default: !0
|
|
@@ -2746,31 +2748,31 @@ const hl = {
|
|
|
2746
2748
|
labels: m
|
|
2747
2749
|
} = te(t);
|
|
2748
2750
|
Pe("chartID");
|
|
2749
|
-
const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale:
|
|
2750
|
-
const D =
|
|
2751
|
+
const { emitInternalEvent: g } = ye(), { groupedData: p } = an(a, m), { barXScale: b, barYScale: $ } = il(s, f, l), A = v(() => typeof r.value == "string" ? [r.value] : r.value), h = v(() => {
|
|
2752
|
+
const D = rl(a, c), { barAttributeGenerator: P } = gl[D](
|
|
2751
2753
|
a,
|
|
2752
2754
|
b,
|
|
2753
|
-
|
|
2755
|
+
$,
|
|
2754
2756
|
l,
|
|
2755
2757
|
u,
|
|
2756
2758
|
A.value
|
|
2757
2759
|
);
|
|
2758
2760
|
return P;
|
|
2759
|
-
}),
|
|
2761
|
+
}), x = v(() => {
|
|
2760
2762
|
if (i.value)
|
|
2761
2763
|
return l.value === B.HORIZONTAL ? "width" : "height";
|
|
2762
2764
|
});
|
|
2763
2765
|
async function N(D) {
|
|
2764
2766
|
o("lume__internal--hover", D), g("lume__internal--hover", D);
|
|
2765
2767
|
}
|
|
2766
|
-
return (D, P) => (y(),
|
|
2767
|
-
(y(!0),
|
|
2768
|
+
return (D, P) => (y(), O("g", pl, [
|
|
2769
|
+
(y(!0), O(q, null, W(d(p), (w, H) => (y(), O("g", {
|
|
2768
2770
|
key: H,
|
|
2769
2771
|
onMouseenter: (Y) => N(H)
|
|
2770
2772
|
}, [
|
|
2771
|
-
(y(!0),
|
|
2773
|
+
(y(!0), O(q, null, W(w, (Y, K) => (y(), X(d(ft), j(h.value(Y, K, H, w), {
|
|
2772
2774
|
key: `bar-${K}`,
|
|
2773
|
-
transition:
|
|
2775
|
+
transition: x.value,
|
|
2774
2776
|
"data-j-lume-bar": "",
|
|
2775
2777
|
onClick: (Q) => o("bar-click", {
|
|
2776
2778
|
index: H,
|
|
@@ -2778,10 +2780,10 @@ const hl = {
|
|
|
2778
2780
|
event: Q
|
|
2779
2781
|
})
|
|
2780
2782
|
}), null, 16, ["transition", "onClick"]))), 128))
|
|
2781
|
-
], 40,
|
|
2783
|
+
], 40, hl))), 128))
|
|
2782
2784
|
]));
|
|
2783
2785
|
}
|
|
2784
|
-
}),
|
|
2786
|
+
}), _l = {
|
|
2785
2787
|
[B.VERTICAL]: {
|
|
2786
2788
|
withTooltip: !0,
|
|
2787
2789
|
xAxisOptions: {},
|
|
@@ -2794,35 +2796,35 @@ const hl = {
|
|
|
2794
2796
|
yAxisOptions: { gridLines: !1 },
|
|
2795
2797
|
margins: Ae.HORIZONTAL
|
|
2796
2798
|
}
|
|
2797
|
-
},
|
|
2799
|
+
}, Xl = /* @__PURE__ */ Z({
|
|
2798
2800
|
__name: "lume-single-bar-chart",
|
|
2799
2801
|
props: {
|
|
2800
|
-
...Ee(
|
|
2802
|
+
...Ee(st)
|
|
2801
2803
|
},
|
|
2802
2804
|
setup(e, { emit: n }) {
|
|
2803
2805
|
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { orientation: u, options: l } = te(t), i = v(
|
|
2804
|
-
() =>
|
|
2806
|
+
() => _l[u.value || B.VERTICAL]
|
|
2805
2807
|
// needs to be computed so that default options are reactive
|
|
2806
2808
|
), { allOptions: c } = fe(l, i);
|
|
2807
|
-
return (s, f) => (y(), X(d(Ne),
|
|
2809
|
+
return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
|
|
2808
2810
|
"chart-type": "single-bar",
|
|
2809
2811
|
options: d(c),
|
|
2810
2812
|
"data-j-single-bar-chart": ""
|
|
2811
2813
|
}, ae(d(o))), de({
|
|
2812
|
-
groups:
|
|
2813
|
-
ie(d(
|
|
2814
|
+
groups: C((r) => [
|
|
2815
|
+
ie(d(gt), j(r, { orientation: d(u) }, ae(d(o))), null, 16, ["orientation"])
|
|
2814
2816
|
]),
|
|
2815
2817
|
_: 2
|
|
2816
2818
|
}, [
|
|
2817
|
-
|
|
2819
|
+
W(d(a), (r, m) => ({
|
|
2818
2820
|
name: m,
|
|
2819
|
-
fn:
|
|
2821
|
+
fn: C((g) => [
|
|
2820
2822
|
M(s.$slots, m, pe(he(g || {})))
|
|
2821
2823
|
])
|
|
2822
2824
|
}))
|
|
2823
2825
|
]), 1040, ["options"]));
|
|
2824
2826
|
}
|
|
2825
|
-
}),
|
|
2827
|
+
}), yl = {
|
|
2826
2828
|
[B.VERTICAL]: {
|
|
2827
2829
|
withTooltip: !0,
|
|
2828
2830
|
xAxisOptions: {},
|
|
@@ -2836,38 +2838,38 @@ const hl = {
|
|
|
2836
2838
|
margins: Ae.HORIZONTAL,
|
|
2837
2839
|
tooltipOptions: { position: "right" }
|
|
2838
2840
|
}
|
|
2839
|
-
},
|
|
2841
|
+
}, Yl = /* @__PURE__ */ Z({
|
|
2840
2842
|
__name: "lume-grouped-bar-chart",
|
|
2841
2843
|
props: {
|
|
2842
2844
|
...Ee()
|
|
2843
2845
|
},
|
|
2844
2846
|
setup(e, { emit: n }) {
|
|
2845
2847
|
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { orientation: u, options: l } = te(t), i = v(
|
|
2846
|
-
() =>
|
|
2848
|
+
() => yl[u.value || B.VERTICAL]
|
|
2847
2849
|
// needs to be computed so that default options are reactive
|
|
2848
2850
|
), { allOptions: c } = fe(
|
|
2849
2851
|
l,
|
|
2850
2852
|
i
|
|
2851
2853
|
);
|
|
2852
|
-
return (s, f) => (y(), X(d(Ne),
|
|
2854
|
+
return (s, f) => (y(), X(d(Ne), j({ ...t, ...s.$attrs }, {
|
|
2853
2855
|
"chart-type": "grouped-bar",
|
|
2854
2856
|
options: d(c),
|
|
2855
2857
|
"data-j-grouped-bar-chart": ""
|
|
2856
2858
|
}, ae(d(o))), de({
|
|
2857
|
-
groups:
|
|
2858
|
-
ie(d(
|
|
2859
|
+
groups: C((r) => [
|
|
2860
|
+
ie(d(gt), j(r, { type: "grouped" }, ae(d(o))), null, 16)
|
|
2859
2861
|
]),
|
|
2860
2862
|
_: 2
|
|
2861
2863
|
}, [
|
|
2862
|
-
|
|
2864
|
+
W(d(a), (r, m) => ({
|
|
2863
2865
|
name: m,
|
|
2864
|
-
fn:
|
|
2866
|
+
fn: C((g) => [
|
|
2865
2867
|
M(s.$slots, m, pe(he(g || {})))
|
|
2866
2868
|
])
|
|
2867
2869
|
}))
|
|
2868
2870
|
]), 1040, ["options"]));
|
|
2869
2871
|
}
|
|
2870
|
-
}),
|
|
2872
|
+
}), kl = {
|
|
2871
2873
|
[B.VERTICAL]: {
|
|
2872
2874
|
withTooltip: !0,
|
|
2873
2875
|
xAxisOptions: {},
|
|
@@ -2882,44 +2884,44 @@ const hl = {
|
|
|
2882
2884
|
margins: Ae.HORIZONTAL,
|
|
2883
2885
|
tooltipOptions: { position: "right" }
|
|
2884
2886
|
}
|
|
2885
|
-
},
|
|
2887
|
+
}, Kl = /* @__PURE__ */ Z({
|
|
2886
2888
|
__name: "lume-stacked-bar-chart",
|
|
2887
2889
|
props: {
|
|
2888
2890
|
...Ee()
|
|
2889
2891
|
},
|
|
2890
2892
|
setup(e, { emit: n }) {
|
|
2891
2893
|
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { data: u, orientation: l, options: i, labels: c } = te(t), s = v(
|
|
2892
|
-
() =>
|
|
2894
|
+
() => kl[l.value || B.VERTICAL]
|
|
2893
2895
|
// needs to be computed so that default options are reactive
|
|
2894
2896
|
), { allOptions: f } = fe(
|
|
2895
2897
|
i,
|
|
2896
2898
|
s
|
|
2897
|
-
), { internalData: r } =
|
|
2899
|
+
), { internalData: r } = ht(u), { groupedData: m } = an(r, c), { stackedXScaleGenerator: g, stackedYScaleGenerator: p } = ml(
|
|
2898
2900
|
m,
|
|
2899
2901
|
l,
|
|
2900
2902
|
i
|
|
2901
|
-
), b = v(() => t.xScale || g),
|
|
2902
|
-
return (A, h) => (y(), X(d(Ne),
|
|
2903
|
+
), b = v(() => t.xScale || g), $ = v(() => t.yScale || p);
|
|
2904
|
+
return (A, h) => (y(), X(d(Ne), j({ ...t, ...A.$attrs }, {
|
|
2903
2905
|
"chart-type": "stacked-bar",
|
|
2904
2906
|
options: d(f),
|
|
2905
2907
|
"x-scale": b.value,
|
|
2906
|
-
"y-scale":
|
|
2908
|
+
"y-scale": $.value,
|
|
2907
2909
|
"data-j-stacked-bar-chart": ""
|
|
2908
2910
|
}, ae(d(o))), de({
|
|
2909
|
-
groups:
|
|
2910
|
-
ie(d(
|
|
2911
|
+
groups: C((x) => [
|
|
2912
|
+
ie(d(gt), j(x, { type: "stacked" }, ae(d(o))), null, 16)
|
|
2911
2913
|
]),
|
|
2912
2914
|
_: 2
|
|
2913
2915
|
}, [
|
|
2914
|
-
|
|
2916
|
+
W(d(a), (x, N) => ({
|
|
2915
2917
|
name: N,
|
|
2916
|
-
fn:
|
|
2918
|
+
fn: C((D) => [
|
|
2917
2919
|
M(A.$slots, N, pe(he(D || {})))
|
|
2918
2920
|
])
|
|
2919
2921
|
}))
|
|
2920
2922
|
]), 1040, ["options", "x-scale", "y-scale"]));
|
|
2921
2923
|
}
|
|
2922
|
-
}),
|
|
2924
|
+
}), bl = ["d", "stroke-width"], Al = 2, Tl = /* @__PURE__ */ Z({
|
|
2923
2925
|
__name: "lume-line",
|
|
2924
2926
|
props: {
|
|
2925
2927
|
pathDefinition: {
|
|
@@ -2928,7 +2930,7 @@ const hl = {
|
|
|
2928
2930
|
},
|
|
2929
2931
|
width: {
|
|
2930
2932
|
type: Number,
|
|
2931
|
-
default:
|
|
2933
|
+
default: Al
|
|
2932
2934
|
},
|
|
2933
2935
|
color: {
|
|
2934
2936
|
type: String,
|
|
@@ -2953,8 +2955,8 @@ const hl = {
|
|
|
2953
2955
|
},
|
|
2954
2956
|
emits: ["click"],
|
|
2955
2957
|
setup(e, { emit: n }) {
|
|
2956
|
-
const t = n, o =
|
|
2957
|
-
return _e(() => ze(o.value)), (a, u) => (y(),
|
|
2958
|
+
const t = n, o = S(null);
|
|
2959
|
+
return _e(() => ze(o.value)), (a, u) => (y(), O("path", {
|
|
2958
2960
|
ref_key: "root",
|
|
2959
2961
|
ref: o,
|
|
2960
2962
|
class: ne(["lume-line", {
|
|
@@ -2964,16 +2966,16 @@ const hl = {
|
|
|
2964
2966
|
}]),
|
|
2965
2967
|
d: e.pathDefinition,
|
|
2966
2968
|
"stroke-width": e.width,
|
|
2967
|
-
style:
|
|
2969
|
+
style: jt({
|
|
2968
2970
|
animationDelay: e.transition && e.animationDelay + "s",
|
|
2969
2971
|
animationDuration: e.transition && e.animationDuration + "s"
|
|
2970
2972
|
}),
|
|
2971
2973
|
"data-j-line": "",
|
|
2972
2974
|
onClick: u[0] || (u[0] = (l) => t("click", l))
|
|
2973
|
-
}, null, 14,
|
|
2975
|
+
}, null, 14, bl));
|
|
2974
2976
|
}
|
|
2975
2977
|
});
|
|
2976
|
-
const
|
|
2978
|
+
const Ll = /* @__PURE__ */ ee(Tl, [["__scopeId", "data-v-08896455"]]), $l = ["cx", "cy", "r", "stroke-width"], xl = 4, Ol = /* @__PURE__ */ Z({
|
|
2977
2979
|
__name: "lume-point",
|
|
2978
2980
|
props: {
|
|
2979
2981
|
x: { type: Number, required: !0 },
|
|
@@ -2993,8 +2995,8 @@ const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx
|
|
|
2993
2995
|
},
|
|
2994
2996
|
emits: ["click"],
|
|
2995
2997
|
setup(e, { emit: n }) {
|
|
2996
|
-
const t = e, o = n, a =
|
|
2997
|
-
return _e(() => ze(a.value)), (l, i) => (y(),
|
|
2998
|
+
const t = e, o = n, a = S(null), u = v(() => t.radius / 2);
|
|
2999
|
+
return _e(() => ze(a.value)), (l, i) => (y(), O("circle", {
|
|
2998
3000
|
ref_key: "root",
|
|
2999
3001
|
ref: a,
|
|
3000
3002
|
class: ne(["lume-point", `lume-stroke--${e.color}`]),
|
|
@@ -3007,7 +3009,7 @@ const Ol = /* @__PURE__ */ ee(Ll, [["__scopeId", "data-v-08896455"]]), $l = ["cx
|
|
|
3007
3009
|
}, null, 10, $l));
|
|
3008
3010
|
}
|
|
3009
3011
|
});
|
|
3010
|
-
const
|
|
3012
|
+
const Il = /* @__PURE__ */ ee(Ol, [["__scopeId", "data-v-b6745177"]]);
|
|
3011
3013
|
function ln(e) {
|
|
3012
3014
|
function n(u) {
|
|
3013
3015
|
let l = null;
|
|
@@ -3052,27 +3054,27 @@ function ln(e) {
|
|
|
3052
3054
|
};
|
|
3053
3055
|
})) };
|
|
3054
3056
|
}
|
|
3055
|
-
function
|
|
3057
|
+
function wl(e, n) {
|
|
3056
3058
|
const t = e.bandwidth() / 2;
|
|
3057
3059
|
return (o, a) => e(e.domain()[n + (a - 1)]) + t;
|
|
3058
3060
|
}
|
|
3059
|
-
function
|
|
3061
|
+
function El(e, n) {
|
|
3060
3062
|
return (t, o) => e(n + (o - 1));
|
|
3061
3063
|
}
|
|
3062
|
-
function
|
|
3063
|
-
const a =
|
|
3064
|
-
ve(t) ?
|
|
3064
|
+
function Nl(e, n, t, o) {
|
|
3065
|
+
const a = hn().x(
|
|
3066
|
+
ve(t) ? wl(t, e) : El(t, e)
|
|
3065
3067
|
).y((u) => o(u));
|
|
3066
3068
|
return n.every((u) => u == null) ? null : a(n);
|
|
3067
3069
|
}
|
|
3068
|
-
const
|
|
3070
|
+
const Dl = {
|
|
3069
3071
|
class: "lume-line-group",
|
|
3070
3072
|
"data-j-lume-line-group": ""
|
|
3071
|
-
},
|
|
3073
|
+
}, Hl = { class: "lume-line-group__lines" }, Bl = {
|
|
3072
3074
|
key: 0,
|
|
3073
3075
|
class: "lume-line-group__points",
|
|
3074
3076
|
"data-j-lume-line-group__points": ""
|
|
3075
|
-
},
|
|
3077
|
+
}, Ml = 1, Gl = /* @__PURE__ */ Z({
|
|
3076
3078
|
__name: "lume-line-group",
|
|
3077
3079
|
props: {
|
|
3078
3080
|
...We(),
|
|
@@ -3104,17 +3106,17 @@ const Hl = {
|
|
|
3104
3106
|
}), m = v(() => {
|
|
3105
3107
|
if (t.hoveredIndex === -1)
|
|
3106
3108
|
return;
|
|
3107
|
-
const w =
|
|
3109
|
+
const w = wn(
|
|
3108
3110
|
r.value,
|
|
3109
3111
|
t.hoveredIndex
|
|
3110
3112
|
);
|
|
3111
3113
|
return {
|
|
3112
|
-
d: `M ${
|
|
3114
|
+
d: `M ${tt(l.value, t.hoveredIndex)},${i.value.range()[1]}
|
|
3113
3115
|
V ${i.value(w)}`
|
|
3114
3116
|
// Move to X index, Vertical line to the highest point
|
|
3115
3117
|
};
|
|
3116
3118
|
}), g = v(
|
|
3117
|
-
() => l.value &&
|
|
3119
|
+
() => l.value && Ml / (En(l.value) - 1)
|
|
3118
3120
|
// Subtracting the first line (read below)
|
|
3119
3121
|
), p = v(
|
|
3120
3122
|
() => {
|
|
@@ -3124,19 +3126,19 @@ const Hl = {
|
|
|
3124
3126
|
// If no `lineWidth`, returns NaN which needs to be undefined
|
|
3125
3127
|
), b = v(
|
|
3126
3128
|
() => l.value.bandwidth() / 2
|
|
3127
|
-
),
|
|
3129
|
+
), $ = v(() => l.value.domain()), A = v(
|
|
3128
3130
|
() => u.value.withPoints ?? t.withPoints
|
|
3129
3131
|
);
|
|
3130
3132
|
function h(w) {
|
|
3131
3133
|
return r.value[w].values;
|
|
3132
3134
|
}
|
|
3133
|
-
function
|
|
3135
|
+
function x(w, H) {
|
|
3134
3136
|
var K, Q;
|
|
3135
3137
|
const Y = w === 0 ? [] : [
|
|
3136
3138
|
(K = h(H)[w - 1]) == null ? void 0 : K.value,
|
|
3137
3139
|
(Q = h(H)[w]) == null ? void 0 : Q.value
|
|
3138
3140
|
];
|
|
3139
|
-
return
|
|
3141
|
+
return Nl(
|
|
3140
3142
|
w,
|
|
3141
3143
|
Y,
|
|
3142
3144
|
l.value,
|
|
@@ -3153,35 +3155,35 @@ const Hl = {
|
|
|
3153
3155
|
var K;
|
|
3154
3156
|
const Y = (K = h(H)[w]) == null ? void 0 : K.value;
|
|
3155
3157
|
return {
|
|
3156
|
-
x: ve(l.value) ? t.xScale(
|
|
3158
|
+
x: ve(l.value) ? t.xScale($.value[w]) + b.value : t.xScale(w),
|
|
3157
3159
|
y: Y === null ? i.value(i.value.domain()[1]) : i.value(Y)
|
|
3158
3160
|
};
|
|
3159
3161
|
}
|
|
3160
3162
|
function P(w) {
|
|
3161
3163
|
return t.hoveredIndex === w;
|
|
3162
3164
|
}
|
|
3163
|
-
return (w, H) => (y(),
|
|
3164
|
-
|
|
3165
|
+
return (w, H) => (y(), O("g", Dl, [
|
|
3166
|
+
R("path", j(m.value, {
|
|
3165
3167
|
class: "lume-line-group__overlay-line",
|
|
3166
3168
|
"data-j-lume-line-group__overlay-line": ""
|
|
3167
3169
|
}), null, 16),
|
|
3168
|
-
(y(!0),
|
|
3170
|
+
(y(!0), O(q, null, W(r.value, (Y, K) => (y(), O("g", {
|
|
3169
3171
|
key: Y.label,
|
|
3170
3172
|
class: "lume-line-group__group"
|
|
3171
3173
|
}, [
|
|
3172
|
-
|
|
3173
|
-
(y(!0),
|
|
3174
|
+
R("g", Hl, [
|
|
3175
|
+
(y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Ll), j(N(F), {
|
|
3174
3176
|
key: `line-${F}`,
|
|
3175
3177
|
color: Y.color,
|
|
3176
3178
|
dashed: Y.isDashed(F),
|
|
3177
|
-
"path-definition":
|
|
3179
|
+
"path-definition": x(F, K),
|
|
3178
3180
|
transition: e.transition,
|
|
3179
3181
|
width: d(u).lineWidth,
|
|
3180
3182
|
onClick: (ue) => o("line-click", { index: F, datasetIndex: K, event: ue })
|
|
3181
3183
|
}), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
|
|
3182
3184
|
]),
|
|
3183
|
-
A.value ? (y(),
|
|
3184
|
-
(y(!0),
|
|
3185
|
+
A.value ? (y(), O("g", Bl, [
|
|
3186
|
+
(y(!0), O(q, null, W(Y.values, (Q, F) => (y(), X(d(Il), j(D(F, K), {
|
|
3185
3187
|
key: `point-${F}`,
|
|
3186
3188
|
active: P(F),
|
|
3187
3189
|
color: Y.color,
|
|
@@ -3189,50 +3191,50 @@ const Hl = {
|
|
|
3189
3191
|
radius: p.value,
|
|
3190
3192
|
onClick: (ue) => o("point-click", { index: F, datasetIndex: K, event: ue })
|
|
3191
3193
|
}), null, 16, ["active", "color", "index", "radius", "onClick"]))), 128))
|
|
3192
|
-
])) :
|
|
3194
|
+
])) : z("", !0)
|
|
3193
3195
|
]))), 128))
|
|
3194
3196
|
]));
|
|
3195
3197
|
}
|
|
3196
3198
|
});
|
|
3197
|
-
const un = /* @__PURE__ */ ee(
|
|
3199
|
+
const un = /* @__PURE__ */ ee(Gl, [["__scopeId", "data-v-44ba7be1"]]), Sl = {
|
|
3198
3200
|
margins: Ae.VERTICAL,
|
|
3199
3201
|
startOnZero: !0,
|
|
3200
3202
|
withTooltip: !0,
|
|
3201
3203
|
xAxisOptions: {},
|
|
3202
3204
|
yAxisOptions: { gridLines: !0 }
|
|
3203
|
-
},
|
|
3205
|
+
}, Jl = /* @__PURE__ */ Z({
|
|
3204
3206
|
__name: "lume-line-chart",
|
|
3205
3207
|
props: {
|
|
3206
3208
|
...Ee(null, !1)
|
|
3207
3209
|
},
|
|
3208
3210
|
setup(e, { emit: n }) {
|
|
3209
|
-
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u,
|
|
3210
|
-
return (i, c) => (y(), X(d(Ne),
|
|
3211
|
+
const t = e, { componentEventPropagator: o } = ye(), a = Te(re()), { options: u } = te(t), { allOptions: l } = fe(u, Sl);
|
|
3212
|
+
return (i, c) => (y(), X(d(Ne), j({ ...t, ...i.$attrs }, {
|
|
3211
3213
|
"chart-type": "line",
|
|
3212
3214
|
options: d(l),
|
|
3213
3215
|
"data-j-lume-line-chart": ""
|
|
3214
3216
|
}, ae(d(o))), de({
|
|
3215
|
-
groups:
|
|
3216
|
-
ie(d(un),
|
|
3217
|
+
groups: C((s) => [
|
|
3218
|
+
ie(d(un), j(s, ae(d(o))), null, 16)
|
|
3217
3219
|
]),
|
|
3218
3220
|
_: 2
|
|
3219
3221
|
}, [
|
|
3220
|
-
|
|
3222
|
+
W(d(a), (s, f) => ({
|
|
3221
3223
|
name: f,
|
|
3222
|
-
fn:
|
|
3224
|
+
fn: C((r) => [
|
|
3223
3225
|
M(i.$slots, f, pe(he(r || {})))
|
|
3224
3226
|
])
|
|
3225
3227
|
}))
|
|
3226
3228
|
]), 1040, ["options"]));
|
|
3227
3229
|
}
|
|
3228
3230
|
});
|
|
3229
|
-
function
|
|
3231
|
+
function Rl(e) {
|
|
3230
3232
|
return { areaPathDefinition: v(
|
|
3231
3233
|
() => function(t, o) {
|
|
3232
3234
|
if (!t || !o || ve(t) || ve(o))
|
|
3233
3235
|
return;
|
|
3234
3236
|
const a = e.value[0].values;
|
|
3235
|
-
return
|
|
3237
|
+
return gn().x((u, l) => t(l)).y0(o(Math.min(...o.domain()))).y1((u) => o(u.value))(a);
|
|
3236
3238
|
}
|
|
3237
3239
|
) };
|
|
3238
3240
|
}
|
|
@@ -3250,41 +3252,41 @@ const jl = {
|
|
|
3250
3252
|
tooltipOptions: {
|
|
3251
3253
|
showTitle: !1
|
|
3252
3254
|
}
|
|
3253
|
-
}, Vl = ["d"],
|
|
3255
|
+
}, Vl = ["d"], Cl = /* @__PURE__ */ Z({
|
|
3254
3256
|
__name: "lume-sparkline-chart",
|
|
3255
3257
|
props: {
|
|
3256
|
-
...
|
|
3257
|
-
...
|
|
3258
|
+
...pt(null),
|
|
3259
|
+
...Ge()
|
|
3258
3260
|
},
|
|
3259
3261
|
setup(e, { expose: n, emit: t }) {
|
|
3260
|
-
const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } =
|
|
3261
|
-
var
|
|
3262
|
-
return (A = (
|
|
3262
|
+
const o = e, { componentEventPropagator: a } = ye(), u = Te(re()), { data: l, options: i } = te(o), { internalData: c } = ht(l), { allOptions: s } = fe(i, jl), { computedLineData: f } = ln(c), { areaPathDefinition: r } = Rl(f), m = v(() => {
|
|
3263
|
+
var $, A;
|
|
3264
|
+
return (A = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : A.color;
|
|
3263
3265
|
}), g = v(
|
|
3264
3266
|
() => {
|
|
3265
|
-
var
|
|
3266
|
-
return ((A = (
|
|
3267
|
+
var $, A;
|
|
3268
|
+
return ((A = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : A.areaColor) || m.value;
|
|
3267
3269
|
}
|
|
3268
3270
|
);
|
|
3269
|
-
function p(
|
|
3271
|
+
function p($) {
|
|
3270
3272
|
return {
|
|
3271
|
-
|
|
3273
|
+
...$,
|
|
3272
3274
|
noMinSize: !0
|
|
3273
3275
|
};
|
|
3274
3276
|
}
|
|
3275
|
-
function b(
|
|
3276
|
-
if (
|
|
3277
|
-
return Me().range([0, h.width]).domain([0,
|
|
3277
|
+
function b($, A, h) {
|
|
3278
|
+
if ($.length)
|
|
3279
|
+
return Me().range([0, h.width]).domain([0, $[0].values.length - 1]);
|
|
3278
3280
|
}
|
|
3279
3281
|
return n({
|
|
3280
3282
|
areaPathDefinition: r
|
|
3281
|
-
}), (
|
|
3283
|
+
}), ($, A) => (y(), X(d(Ne), j(o, {
|
|
3282
3284
|
"chart-type": "line",
|
|
3283
3285
|
options: p(d(s)),
|
|
3284
3286
|
"x-scale": b
|
|
3285
3287
|
}, ae(d(a))), de({
|
|
3286
|
-
groups:
|
|
3287
|
-
d(s).showArea ? (y(),
|
|
3288
|
+
groups: C((h) => [
|
|
3289
|
+
d(s).showArea ? (y(), O("path", {
|
|
3288
3290
|
key: 0,
|
|
3289
3291
|
class: ne([
|
|
3290
3292
|
"sparkline-chart__area",
|
|
@@ -3294,46 +3296,46 @@ const jl = {
|
|
|
3294
3296
|
]),
|
|
3295
3297
|
d: d(r)(h.xScale, h.yScale),
|
|
3296
3298
|
"data-j-sparkline__area": ""
|
|
3297
|
-
}, null, 10, Vl)) :
|
|
3298
|
-
ie(d(un),
|
|
3299
|
+
}, null, 10, Vl)) : z("", !0),
|
|
3300
|
+
ie(d(un), j(h, { "with-points": !1 }, ae(d(a))), null, 16)
|
|
3299
3301
|
]),
|
|
3300
3302
|
_: 2
|
|
3301
3303
|
}, [
|
|
3302
|
-
|
|
3303
|
-
name:
|
|
3304
|
-
fn:
|
|
3305
|
-
M(
|
|
3304
|
+
W(d(u), (h, x) => ({
|
|
3305
|
+
name: x,
|
|
3306
|
+
fn: C((N) => [
|
|
3307
|
+
M($.$slots, x, pe(he(N || {})), void 0, !0)
|
|
3306
3308
|
])
|
|
3307
3309
|
}))
|
|
3308
3310
|
]), 1040, ["options"]));
|
|
3309
3311
|
}
|
|
3310
3312
|
});
|
|
3311
|
-
const
|
|
3313
|
+
const Ql = /* @__PURE__ */ ee(Cl, [["__scopeId", "data-v-bda226a1"]]);
|
|
3312
3314
|
export {
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
+
Zl as LumeAlluvialDiagram,
|
|
3316
|
+
nl as LumeAlluvialGroup,
|
|
3315
3317
|
xa as LumeAlluvialNodeHeader,
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
+
_a as LumeAlluvialNodeLabel,
|
|
3319
|
+
ba as LumeAlluvialNodeValue,
|
|
3318
3320
|
Lt as LumeAxis,
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3321
|
+
ft as LumeBar,
|
|
3322
|
+
Ul as LumeBarChart,
|
|
3323
|
+
gt as LumeBarGroup,
|
|
3322
3324
|
Ne as LumeChart,
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3325
|
+
uo as LumeChartContainer,
|
|
3326
|
+
$t as LumeChartLegend,
|
|
3327
|
+
Yl as LumeGroupedBarChart,
|
|
3328
|
+
Ll as LumeLine,
|
|
3329
|
+
Jl as LumeLineChart,
|
|
3328
3330
|
un as LumeLineGroup,
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3331
|
+
Wo as LumeOverlayGroup,
|
|
3332
|
+
Il as LumePoint,
|
|
3333
|
+
Xl as LumeSingleBarChart,
|
|
3334
|
+
Ql as LumeSparklineChart,
|
|
3335
|
+
Kl as LumeStackedBarChart,
|
|
3336
|
+
Eo as LumeTooltip,
|
|
3337
|
+
To as LumeTooltipItem,
|
|
3338
|
+
_o as LumeTooltipSummary,
|
|
3339
|
+
mo as LumeTooltipTitle
|
|
3338
3340
|
};
|
|
3339
3341
|
//# sourceMappingURL=index.js.map
|