@adyen/lume 1.11.5 → 1.12.1
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-point/lume-point.vue.d.ts +45 -45
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +3 -3
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
- package/dist/@types/composables/line-null-values.d.ts +1 -10
- package/dist/@types/composables/line-null-values.d.ts.map +1 -1
- package/dist/@types/types/dataset.d.ts +1 -0
- package/dist/@types/types/dataset.d.ts.map +1 -1
- package/dist/@types/types/options.d.ts +1 -1
- package/dist/@types/types/options.d.ts.map +1 -1
- package/dist/common/B8Yzpn9z.js +5 -0
- package/dist/common/B8Yzpn9z.js.map +1 -0
- package/dist/common/{Da4Dej42.js → Bbm8lOKv.js} +747 -746
- package/dist/common/Bbm8lOKv.js.map +1 -0
- package/dist/common/DmfABIXc.js +5 -0
- package/dist/common/DmfABIXc.js.map +1 -0
- package/dist/common/Lrbt_T-f.js +5 -0
- package/dist/common/Lrbt_T-f.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/scss/components/lume-point.scss +5 -2
- package/dist/scss/main.scss +1 -1
- package/dist/styles/main.css +1 -1
- package/package.json +3 -3
- package/dist/common/C28EuqGB.js +0 -5
- package/dist/common/C28EuqGB.js.map +0 -1
- package/dist/common/CB9KQjQz.js +0 -5
- package/dist/common/CB9KQjQz.js.map +0 -1
- package/dist/common/Da4Dej42.js.map +0 -1
- package/dist/common/DtjWrfsb.js +0 -5
- package/dist/common/DtjWrfsb.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as N, ref as w, isRef as
|
|
2
|
-
import { sankeyLinkHorizontal as
|
|
3
|
-
import { format as
|
|
4
|
-
import { createPopper as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as N, ref as w, isRef as kt, computed as d, watch as H, toRefs as S, inject as Le, reactive as Oe, onMounted as ee, watchEffect as xt, onBeforeUnmount as At, useSlots as M, nextTick as He, provide as Ee, defineAsyncComponent as Ne } from "vue";
|
|
2
|
+
import { sankeyLinkHorizontal as zt, sankey as Wt, sankeyJustify as Zt } from "d3-sankey";
|
|
3
|
+
import { format as Ut, ticks as Xt, scaleLinear as fe, scaleBand as pe, link as Yt, line as Kt, area as Jt } from "d3";
|
|
4
|
+
import { createPopper as Qt } from "@popperjs/core";
|
|
5
|
+
const qt = /* @__PURE__ */ N({
|
|
6
6
|
__name: "lume-tick",
|
|
7
7
|
props: {
|
|
8
8
|
value: {
|
|
@@ -44,14 +44,14 @@ const Qt = /* @__PURE__ */ N({
|
|
|
44
44
|
return e({ ref: n }), { __sfc: !0, emit: r, labelRef: n };
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
function E(t, e, r, n, a, o, l,
|
|
48
|
-
var
|
|
49
|
-
return e && (
|
|
47
|
+
function E(t, e, r, n, a, o, l, u) {
|
|
48
|
+
var i = typeof t == "function" ? t.options : t;
|
|
49
|
+
return e && (i.render = e, i.staticRenderFns = r, i._compiled = !0), o && (i._scopeId = "data-v-" + o), {
|
|
50
50
|
exports: t,
|
|
51
|
-
options:
|
|
51
|
+
options: i
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var en = function() {
|
|
55
55
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
56
56
|
return r("g", e._b({ staticClass: "axis__tick", class: {
|
|
57
57
|
"axis__tick--hovered": e.isHovered,
|
|
@@ -61,15 +61,15 @@ var qt = function() {
|
|
|
61
61
|
}, click: function(a) {
|
|
62
62
|
return n.emit("click", a);
|
|
63
63
|
} } }, "g", e.group, !1), [r("g", { staticClass: "axis__tick-label lume-typography--axis", attrs: { "pointer-events": "all", "data-j-axis__tick-label": "" } }, [r("rect", e._b({ staticClass: "axis__ghost", attrs: { fill: "url(#lume-tick-gradient)" } }, "rect", e.ghost, !1)), r("text", e._b({ ref: "labelRef", staticClass: "axis__label" }, "text", e.label, !1), [e._v(" " + e._s(e.value) + " ")])]), e.withGridlines ? r("line", e._b({ staticClass: "axis__grid-line" }, "line", e.gridline, !1)) : e._e()]);
|
|
64
|
-
},
|
|
65
|
-
Qt,
|
|
64
|
+
}, tn = [], nn = /* @__PURE__ */ E(
|
|
66
65
|
qt,
|
|
67
66
|
en,
|
|
67
|
+
tn,
|
|
68
68
|
!1,
|
|
69
69
|
null,
|
|
70
70
|
"59ddc0a6"
|
|
71
71
|
);
|
|
72
|
-
const
|
|
72
|
+
const rn = nn.exports, an = [
|
|
73
73
|
"controls",
|
|
74
74
|
"legend",
|
|
75
75
|
"axes",
|
|
@@ -77,10 +77,10 @@ const nn = tn.exports, rn = [
|
|
|
77
77
|
"tooltip",
|
|
78
78
|
"tooltip-content"
|
|
79
79
|
];
|
|
80
|
-
function
|
|
80
|
+
function Tt() {
|
|
81
81
|
return process.env.NODE_ENV === "production";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Lt(t) {
|
|
84
84
|
return (t == null ? void 0 : t.map(
|
|
85
85
|
(e) => e.values.map((r) => r == null ? void 0 : r.value).flat()
|
|
86
86
|
).flat()) || [];
|
|
@@ -88,7 +88,7 @@ function Tt(t) {
|
|
|
88
88
|
function We(t) {
|
|
89
89
|
return t.length === 1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function on(t) {
|
|
92
92
|
return !!t && t.every(
|
|
93
93
|
(e) => "color" in e
|
|
94
94
|
);
|
|
@@ -96,26 +96,26 @@ function an(t) {
|
|
|
96
96
|
function De(t) {
|
|
97
97
|
return !!t && typeof t == "object" && !Array.isArray(t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ot(t, e) {
|
|
100
100
|
const r = { ...t };
|
|
101
101
|
return Object.entries(e).forEach(([n, a]) => {
|
|
102
|
-
r[n] = De(t[n]) && De(a) ?
|
|
102
|
+
r[n] = De(t[n]) && De(a) ? Ot(t[n], a) : a;
|
|
103
103
|
}), r;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function ln(t) {
|
|
106
106
|
return t != null && De(t) && "value" in t;
|
|
107
107
|
}
|
|
108
108
|
function U(t) {
|
|
109
109
|
return (t == null ? void 0 : t.bandwidth) !== void 0;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function un(t) {
|
|
112
112
|
return U(t) ? t.step() : Math.max(...t.range()) / Math.max(...t.domain());
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function sn(t) {
|
|
115
115
|
const [e, r] = t.domain();
|
|
116
116
|
return e == null || r == null || e === 0 && r === 0;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const cn = (t, e) => {
|
|
119
119
|
if (!t)
|
|
120
120
|
throw new Error("Data is not a valid array");
|
|
121
121
|
if (t.length === 0)
|
|
@@ -124,17 +124,17 @@ const sn = (t, e) => {
|
|
|
124
124
|
({ values: n }) => n.length - 1 >= e
|
|
125
125
|
) || q(X.IndexExceedsLengthOfDataSets);
|
|
126
126
|
};
|
|
127
|
-
function
|
|
127
|
+
function dn(t, e) {
|
|
128
128
|
var r;
|
|
129
|
-
return
|
|
129
|
+
return cn(t, e), ((r = t.reduce(
|
|
130
130
|
(n, a) => {
|
|
131
131
|
var o, l;
|
|
132
132
|
return (((o = n.values[e]) == null ? void 0 : o.value) ?? 0) > (((l = a.values[e]) == null ? void 0 : l.value) ?? 0) ? n : a;
|
|
133
133
|
}
|
|
134
134
|
).values[e]) == null ? void 0 : r.value) || 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const e =
|
|
136
|
+
function It(t) {
|
|
137
|
+
const e = kt(t) ? t.value : t;
|
|
138
138
|
if (!e)
|
|
139
139
|
throw new Error("No empty array can be created from specified data value");
|
|
140
140
|
const r = Math.max(
|
|
@@ -143,13 +143,13 @@ function Ot(t) {
|
|
|
143
143
|
);
|
|
144
144
|
return Array(r).fill(null);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function vn(t) {
|
|
147
147
|
return U(t) ? t.domain().length : Math.max(...t.domain());
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function fn(t, e) {
|
|
150
150
|
return (r) => Math.round(t * (1 - r) + e * r);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function pn(t, e, r) {
|
|
153
153
|
const n = e, a = t.slice(0, n);
|
|
154
154
|
return t.slice(n).concat(a);
|
|
155
155
|
}
|
|
@@ -163,11 +163,11 @@ function ae(t) {
|
|
|
163
163
|
}
|
|
164
164
|
return t;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function mn(t) {
|
|
167
167
|
return Object.assign(
|
|
168
168
|
{},
|
|
169
169
|
...Object.keys(t).map(
|
|
170
|
-
(e) =>
|
|
170
|
+
(e) => an.includes(e) ? {} : { [e]: t[e] }
|
|
171
171
|
)
|
|
172
172
|
);
|
|
173
173
|
}
|
|
@@ -177,16 +177,16 @@ function Ze(t, e) {
|
|
|
177
177
|
}
|
|
178
178
|
var X = /* @__PURE__ */ ((t) => (t.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
179
179
|
Learn more: https://lume.design/guidelines/datasets`, t.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", t.Empty = "The dataset(s) provided are empty.", t.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", t.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", t.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", t.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", t.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", t))(X || {});
|
|
180
|
-
const
|
|
180
|
+
const _n = "[lume] ";
|
|
181
181
|
function q(t, e = !0) {
|
|
182
|
-
e &&
|
|
182
|
+
e && Tt() || console.warn(_n + "Warning: " + t);
|
|
183
183
|
}
|
|
184
184
|
const Ae = (t) => {
|
|
185
185
|
let e = null;
|
|
186
186
|
switch (typeof t) {
|
|
187
187
|
case "string":
|
|
188
188
|
try {
|
|
189
|
-
e =
|
|
189
|
+
e = Ut(t);
|
|
190
190
|
} catch {
|
|
191
191
|
q(X.InvalidFormat), e = null;
|
|
192
192
|
}
|
|
@@ -209,38 +209,38 @@ const Ae = (t) => {
|
|
|
209
209
|
});
|
|
210
210
|
function Y(t, e) {
|
|
211
211
|
return { allOptions: d(() => {
|
|
212
|
-
const n =
|
|
213
|
-
return n ?
|
|
212
|
+
const n = kt(e) ? e == null ? void 0 : e.value : e;
|
|
213
|
+
return n ? Ot(n, t.value) : t.value;
|
|
214
214
|
}) };
|
|
215
215
|
}
|
|
216
|
-
const
|
|
217
|
-
function
|
|
216
|
+
const hn = 0.2;
|
|
217
|
+
function gn(t, e, r) {
|
|
218
218
|
const n = w(), a = d(() => Math.max(...t.value.range())), o = d(() => e.value.length);
|
|
219
219
|
function l() {
|
|
220
220
|
if (!e.value) return;
|
|
221
|
-
const
|
|
221
|
+
const i = e.value.reduce(
|
|
222
222
|
(v, s) => v + s.ref.getBoundingClientRect().width,
|
|
223
223
|
0
|
|
224
|
-
), c = Math.ceil(
|
|
225
|
-
n.value = c + c *
|
|
224
|
+
), c = Math.ceil(i / o.value);
|
|
225
|
+
n.value = c + c * hn;
|
|
226
226
|
}
|
|
227
|
-
function i
|
|
227
|
+
function u(i) {
|
|
228
228
|
if (!e.value) return !0;
|
|
229
229
|
const c = r.value.skip, v = e.value.length;
|
|
230
|
-
if (
|
|
230
|
+
if (i === 0) return !0;
|
|
231
231
|
const s = a.value / v, f = typeof c == "number" && c > 0 && c + 1 || Math.ceil(n.value / s);
|
|
232
|
-
return
|
|
232
|
+
return i % f === 0;
|
|
233
233
|
}
|
|
234
|
-
return H(e, l), { showTick:
|
|
234
|
+
return H(e, l), { showTick: u };
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const L = {
|
|
237
237
|
HORIZONTAL: "horizontal",
|
|
238
238
|
VERTICAL: "vertical"
|
|
239
|
-
},
|
|
239
|
+
}, yn = {
|
|
240
240
|
SINGLE: "single",
|
|
241
241
|
GROUPED: "grouped",
|
|
242
242
|
STACKED: "stacked"
|
|
243
|
-
}, $t = "No data", rt = 20,
|
|
243
|
+
}, $t = "No data", rt = 20, wt = 0.33, Et = 0.5, Nt = 12, _e = 8, bn = 1, kn = [
|
|
244
244
|
"auto",
|
|
245
245
|
"auto-start",
|
|
246
246
|
"auto-end",
|
|
@@ -257,10 +257,10 @@ const O = {
|
|
|
257
257
|
"left-start",
|
|
258
258
|
"left-end"
|
|
259
259
|
];
|
|
260
|
-
function
|
|
260
|
+
function Ie(t) {
|
|
261
261
|
t != null && t.closest("svg") || q(X.NotContainedInSvg);
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const Ht = {
|
|
264
264
|
/** Displays a line for each tick. */
|
|
265
265
|
gridLines: !1,
|
|
266
266
|
/** Displays the axis title. */
|
|
@@ -276,42 +276,42 @@ const Nt = {
|
|
|
276
276
|
tickFormat: null,
|
|
277
277
|
/** Space between the tick label and the axis line. */
|
|
278
278
|
tickPadding: 12
|
|
279
|
-
},
|
|
280
|
-
...
|
|
279
|
+
}, xn = {
|
|
280
|
+
...Ht,
|
|
281
281
|
withTitle: !1,
|
|
282
282
|
skip: !0
|
|
283
|
-
},
|
|
284
|
-
...
|
|
283
|
+
}, An = {
|
|
284
|
+
...Ht,
|
|
285
285
|
gridLines: !0
|
|
286
|
-
},
|
|
286
|
+
}, Tn = function(t, e, r) {
|
|
287
287
|
const n = d(() => t.value.step() * t.value.paddingInner() / 2);
|
|
288
|
-
function a(
|
|
288
|
+
function a(i, c) {
|
|
289
289
|
return {
|
|
290
|
-
transform: `translate(${(t.value(c) ?? t.value(
|
|
290
|
+
transform: `translate(${(t.value(c) ?? t.value(i)) - n.value}, 0)`
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
function o(
|
|
293
|
+
function o(i) {
|
|
294
294
|
var v;
|
|
295
295
|
const c = Math.max(
|
|
296
296
|
t.value.step(),
|
|
297
|
-
(
|
|
297
|
+
(i ? (v = i.getComputedTextLength) == null ? void 0 : v.call(i) : t.value.step()) + 20
|
|
298
298
|
);
|
|
299
299
|
return {
|
|
300
300
|
x: -(c - t.value.step()) / 2,
|
|
301
301
|
width: c,
|
|
302
|
-
height: r.value.tickPadding +
|
|
302
|
+
height: r.value.tickPadding + Nt + _e
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
function l() {
|
|
306
|
-
const
|
|
306
|
+
const i = t.value.step() / 2;
|
|
307
307
|
return {
|
|
308
|
-
x1:
|
|
309
|
-
x2:
|
|
308
|
+
x1: i,
|
|
309
|
+
x2: i,
|
|
310
310
|
y1: -e.value.height
|
|
311
311
|
// Negative height means it goes from bottom to top
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function u() {
|
|
315
315
|
return {
|
|
316
316
|
x: t.value.step() / 2,
|
|
317
317
|
y: r.value.tickPadding,
|
|
@@ -323,18 +323,18 @@ const Nt = {
|
|
|
323
323
|
getGridLinesAttributes: l,
|
|
324
324
|
getTickGhostAttributes: o,
|
|
325
325
|
getTickGroupAttributes: a,
|
|
326
|
-
getTickLabelAttributes:
|
|
326
|
+
getTickLabelAttributes: u
|
|
327
327
|
};
|
|
328
|
-
},
|
|
328
|
+
}, Ln = function(t, e, r) {
|
|
329
329
|
const n = d(() => t.value.step() * t.value.paddingInner() / 2);
|
|
330
|
-
function a(
|
|
330
|
+
function a(i, c) {
|
|
331
331
|
return {
|
|
332
|
-
transform: `translate(0, ${(t.value(c) ?? t.value(
|
|
332
|
+
transform: `translate(0, ${(t.value(c) ?? t.value(i)) - n.value})`
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
function o(
|
|
335
|
+
function o(i) {
|
|
336
336
|
var v;
|
|
337
|
-
const c = (
|
|
337
|
+
const c = (i ? (v = i.getComputedTextLength) == null ? void 0 : v.call(i) : 42) + r.value.tickPadding + _e;
|
|
338
338
|
return {
|
|
339
339
|
x: -c,
|
|
340
340
|
width: c,
|
|
@@ -342,14 +342,14 @@ const Nt = {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
function l() {
|
|
345
|
-
const
|
|
345
|
+
const i = t.value.step() / 2;
|
|
346
346
|
return {
|
|
347
|
-
y1:
|
|
348
|
-
y2:
|
|
347
|
+
y1: i,
|
|
348
|
+
y2: i,
|
|
349
349
|
x1: e.value.width
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function u() {
|
|
353
353
|
return {
|
|
354
354
|
x: -r.value.tickPadding,
|
|
355
355
|
y: t.value.step() / 2,
|
|
@@ -361,21 +361,21 @@ const Nt = {
|
|
|
361
361
|
getGridLinesAttributes: l,
|
|
362
362
|
getTickGhostAttributes: o,
|
|
363
363
|
getTickGroupAttributes: a,
|
|
364
|
-
getTickLabelAttributes:
|
|
364
|
+
getTickLabelAttributes: u
|
|
365
365
|
};
|
|
366
|
-
},
|
|
366
|
+
}, On = function(t, e, r) {
|
|
367
367
|
const n = d(() => {
|
|
368
|
-
const
|
|
369
|
-
return
|
|
368
|
+
const i = t.value.ticks();
|
|
369
|
+
return i.length > 1 ? t.value(i[1]) - t.value(i[0]) : 0;
|
|
370
370
|
});
|
|
371
|
-
function a(
|
|
371
|
+
function a(i) {
|
|
372
372
|
return {
|
|
373
|
-
transform: `translate(${t.value(
|
|
373
|
+
transform: `translate(${t.value(i)}, 0)`
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function o() {
|
|
377
377
|
return {
|
|
378
|
-
height: r.value.tickPadding +
|
|
378
|
+
height: r.value.tickPadding + Nt + _e,
|
|
379
379
|
width: n.value,
|
|
380
380
|
x: -(n.value / 2)
|
|
381
381
|
};
|
|
@@ -385,7 +385,7 @@ const Nt = {
|
|
|
385
385
|
y1: -e.value.height
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function u() {
|
|
389
389
|
return {
|
|
390
390
|
y: r.value.tickPadding,
|
|
391
391
|
dy: "0.8em",
|
|
@@ -396,21 +396,21 @@ const Nt = {
|
|
|
396
396
|
getGridLinesAttributes: l,
|
|
397
397
|
getTickGhostAttributes: o,
|
|
398
398
|
getTickGroupAttributes: a,
|
|
399
|
-
getTickLabelAttributes:
|
|
399
|
+
getTickLabelAttributes: u
|
|
400
400
|
};
|
|
401
|
-
},
|
|
401
|
+
}, In = function(t, e, r) {
|
|
402
402
|
const n = d(() => {
|
|
403
|
-
const
|
|
404
|
-
return
|
|
403
|
+
const i = t.value.ticks();
|
|
404
|
+
return i.length > 1 ? t.value(i[1]) - t.value(i[0]) : 0;
|
|
405
405
|
});
|
|
406
|
-
function a(
|
|
406
|
+
function a(i) {
|
|
407
407
|
return {
|
|
408
|
-
transform: `translate(0, ${t.value(
|
|
408
|
+
transform: `translate(0, ${t.value(i)})`
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function o(
|
|
411
|
+
function o(i) {
|
|
412
412
|
var v;
|
|
413
|
-
const c = (((v =
|
|
413
|
+
const c = (((v = i == null ? void 0 : i.getComputedTextLength) == null ? void 0 : v.call(i)) || 0) + r.value.tickPadding + _e;
|
|
414
414
|
return {
|
|
415
415
|
width: c,
|
|
416
416
|
height: n.value,
|
|
@@ -423,7 +423,7 @@ const Nt = {
|
|
|
423
423
|
x1: e.value.width
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function u() {
|
|
427
427
|
return {
|
|
428
428
|
x: -r.value.tickPadding,
|
|
429
429
|
dy: "0.4em",
|
|
@@ -434,16 +434,16 @@ const Nt = {
|
|
|
434
434
|
getGridLinesAttributes: l,
|
|
435
435
|
getTickGhostAttributes: o,
|
|
436
436
|
getTickGroupAttributes: a,
|
|
437
|
-
getTickLabelAttributes:
|
|
437
|
+
getTickLabelAttributes: u
|
|
438
438
|
};
|
|
439
439
|
}, $n = {
|
|
440
|
-
"x-band-scale-axis":
|
|
441
|
-
"y-band-scale-axis":
|
|
442
|
-
"x-linear-scale-axis":
|
|
443
|
-
"y-linear-scale-axis":
|
|
440
|
+
"x-band-scale-axis": Tn,
|
|
441
|
+
"y-band-scale-axis": Ln,
|
|
442
|
+
"x-linear-scale-axis": On,
|
|
443
|
+
"y-linear-scale-axis": In
|
|
444
444
|
};
|
|
445
|
-
var Re = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Re || {}),
|
|
446
|
-
const
|
|
445
|
+
var Re = /* @__PURE__ */ ((t) => (t.bandScale = "band-scale-axis", t.linearScale = "linear-scale-axis", t))(Re || {}), Pe = /* @__PURE__ */ ((t) => (t.left = "left", t.bottom = "bottom", t))(Pe || {}), xe = /* @__PURE__ */ ((t) => (t.x = "bottom", t.y = "left", t))(xe || {});
|
|
446
|
+
const wn = /* @__PURE__ */ N({
|
|
447
447
|
__name: "lume-axis",
|
|
448
448
|
props: {
|
|
449
449
|
scale: {
|
|
@@ -458,7 +458,7 @@ const In = /* @__PURE__ */ N({
|
|
|
458
458
|
position: {
|
|
459
459
|
type: String,
|
|
460
460
|
default: void 0,
|
|
461
|
-
validator: (t) => t in
|
|
461
|
+
validator: (t) => t in Pe
|
|
462
462
|
},
|
|
463
463
|
containerSize: {
|
|
464
464
|
type: Object,
|
|
@@ -470,46 +470,46 @@ const In = /* @__PURE__ */ N({
|
|
|
470
470
|
},
|
|
471
471
|
orientation: {
|
|
472
472
|
type: String,
|
|
473
|
-
default:
|
|
473
|
+
default: L.VERTICAL
|
|
474
474
|
},
|
|
475
475
|
...me()
|
|
476
476
|
},
|
|
477
477
|
emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
|
|
478
478
|
setup(t, { emit: e }) {
|
|
479
|
-
const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options:
|
|
479
|
+
const r = t, n = 16, { scale: a, containerSize: o, hoveredIndex: l, options: u, orientation: i } = S(r), c = Le("isEmpty", w(!1)), v = Oe({}), s = w(null), f = w(null), m = w(null), _ = d(
|
|
480
480
|
() => r.type ? xe[r.type] : r.position
|
|
481
481
|
), h = d(
|
|
482
482
|
() => r.type || (_.value === "left" ? "y" : "x")
|
|
483
483
|
), y = d(
|
|
484
|
-
() => h.value === "x" &&
|
|
484
|
+
() => h.value === "x" && i.value === L.VERTICAL || h.value === "y" && i.value === L.HORIZONTAL
|
|
485
485
|
), { allOptions: p } = Y(
|
|
486
|
-
|
|
487
|
-
h.value === "x" ?
|
|
488
|
-
), { showTick: k } =
|
|
489
|
-
() => c.value || !a.value ||
|
|
486
|
+
u,
|
|
487
|
+
h.value === "x" ? xn : An
|
|
488
|
+
), { showTick: k } = gn(a, s, p), x = d(
|
|
489
|
+
() => c.value || !a.value || sn(a.value)
|
|
490
490
|
), T = d(() => {
|
|
491
|
-
var g, A,
|
|
492
|
-
return h.value === "y" && x.value ? `translate(0, ${((g = o.value) == null ? void 0 : g.height) / 2})` : h.value === "x" && x.value ? `translate(-${((A = o.value) == null ? void 0 : A.width) / 2}, ${(
|
|
491
|
+
var g, A, O, G;
|
|
492
|
+
return h.value === "y" && x.value ? `translate(0, ${((g = o.value) == null ? void 0 : g.height) / 2})` : h.value === "x" && x.value ? `translate(-${((A = o.value) == null ? void 0 : A.width) / 2}, ${(O = o.value) == null ? void 0 : O.height})` : `translate(0, ${h.value === "x" ? (G = o.value) == null ? void 0 : G.height : 0})`;
|
|
493
493
|
}), I = d(() => {
|
|
494
494
|
if (!a.value) return [];
|
|
495
495
|
if (U(a.value))
|
|
496
496
|
return a.value.labels || a.value.domain();
|
|
497
|
-
const { tickCount: g } = p.value, [A,
|
|
498
|
-
return
|
|
499
|
-
}),
|
|
497
|
+
const { tickCount: g } = p.value, [A, O] = a.value.domain();
|
|
498
|
+
return Xt(A, O, g);
|
|
499
|
+
}), R = d(() => {
|
|
500
500
|
const { tickFormat: g } = p.value;
|
|
501
501
|
return Ae(g);
|
|
502
|
-
}),
|
|
502
|
+
}), $ = d(
|
|
503
503
|
() => p.value.withHover && y.value && l.value > -1
|
|
504
|
-
),
|
|
504
|
+
), D = d(
|
|
505
505
|
() => p.value.tickPadding + _e || n
|
|
506
|
-
),
|
|
506
|
+
), B = d(() => h.value === "x" ? (
|
|
507
507
|
// If x axis, get the tick height
|
|
508
508
|
Math.max(
|
|
509
509
|
...(s.value || []).map(
|
|
510
510
|
(g) => {
|
|
511
|
-
var A,
|
|
512
|
-
return ((
|
|
511
|
+
var A, O;
|
|
512
|
+
return ((O = (A = g.ref).getBBox) == null ? void 0 : O.call(A).height) + D.value;
|
|
513
513
|
}
|
|
514
514
|
)
|
|
515
515
|
)
|
|
@@ -518,21 +518,21 @@ const In = /* @__PURE__ */ N({
|
|
|
518
518
|
Math.max(
|
|
519
519
|
...(s.value || []).map(
|
|
520
520
|
(g) => {
|
|
521
|
-
var A,
|
|
522
|
-
return ((
|
|
521
|
+
var A, O;
|
|
522
|
+
return ((O = (A = g.ref).getBBox) == null ? void 0 : O.call(A).width) + D.value;
|
|
523
523
|
}
|
|
524
524
|
)
|
|
525
525
|
)
|
|
526
526
|
));
|
|
527
|
-
function
|
|
527
|
+
function C(g) {
|
|
528
528
|
const { showTicks: A } = p.value;
|
|
529
|
-
return A === !1 ? "" :
|
|
529
|
+
return A === !1 ? "" : R.value(g);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
e("mouseenter", { index: y.value ? g : null, value: A, event:
|
|
531
|
+
function F(g, A, O) {
|
|
532
|
+
e("mouseenter", { index: y.value ? g : null, value: A, event: O });
|
|
533
533
|
}
|
|
534
|
-
function J(g, A,
|
|
535
|
-
e("click", { index: g, value: A, event:
|
|
534
|
+
function J(g, A, O) {
|
|
535
|
+
e("click", { index: g, value: A, event: O });
|
|
536
536
|
}
|
|
537
537
|
function oe(g) {
|
|
538
538
|
var A;
|
|
@@ -542,7 +542,7 @@ const In = /* @__PURE__ */ N({
|
|
|
542
542
|
function W() {
|
|
543
543
|
m.value = I.value.map(
|
|
544
544
|
(g, A) => ({
|
|
545
|
-
value:
|
|
545
|
+
value: C(g),
|
|
546
546
|
group: v.getTickGroupAttributes(g, A),
|
|
547
547
|
ghost: v.getTickGhostAttributes(oe(A)),
|
|
548
548
|
label: v.getTickLabelAttributes(),
|
|
@@ -557,15 +557,15 @@ const In = /* @__PURE__ */ N({
|
|
|
557
557
|
if (!a.value) return;
|
|
558
558
|
const g = a.value.step ? "bandScale" : "linearScale", A = $n[`${h.value}-${Re[g]}`];
|
|
559
559
|
Object.entries(A(a, o, p) || []).forEach(
|
|
560
|
-
([
|
|
561
|
-
v[
|
|
560
|
+
([O, G]) => {
|
|
561
|
+
v[O] = G;
|
|
562
562
|
}
|
|
563
563
|
);
|
|
564
564
|
}
|
|
565
|
-
return H(a, Q, { flush: "sync", immediate: !0 }), H(a, W, { immediate: !0 }), H(s, W), H(
|
|
565
|
+
return H(a, Q, { flush: "sync", immediate: !0 }), H(a, W, { immediate: !0 }), H(s, W), H(B, (g) => e("lume__internal--axis-size", g)), H(r.containerSize, te), ee(() => Ie(f.value)), { __sfc: !0, SCALE_MIXIN_MAP: Re, POSITIONS: Pe, TYPES: xe, AXIS_LABEL_OFFSET: n, props: r, emit: e, scale: a, containerSize: o, hoveredIndex: l, options: u, orientation: i, isEmpty: c, mixins: v, tickRefs: s, root: f, ticksWithAttributes: m, computedPosition: _, computedType: h, shouldHover: y, allOptions: p, showTick: k, alignAxisBaseline: x, axisTransform: T, ticks: I, tickFormatter: R, isHovering: $, axisLabelOffset: D, axisSize: B, formatTick: C, handleTickMouseenter: F, handleTickClick: J, getTextNode: oe, setTicks: W, updateGridlines: te, init: Q, LumeTick: rn };
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
|
-
var
|
|
568
|
+
var En = function() {
|
|
569
569
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
570
570
|
return n.scale ? r("g", { ref: "root", staticClass: "axis", attrs: { transform: n.axisTransform, "data-j-axis": "" }, on: { mouseleave: function(a) {
|
|
571
571
|
return n.emit("mouseleave", a);
|
|
@@ -582,32 +582,32 @@ var wn = function() {
|
|
|
582
582
|
a
|
|
583
583
|
);
|
|
584
584
|
} } }, "lume-tick", n.ticksWithAttributes[n.hoveredIndex], !1)) : e._e()], 2) : e._e();
|
|
585
|
-
},
|
|
586
|
-
In,
|
|
585
|
+
}, Nn = [], Hn = /* @__PURE__ */ E(
|
|
587
586
|
wn,
|
|
588
587
|
En,
|
|
588
|
+
Nn,
|
|
589
589
|
!1,
|
|
590
590
|
null,
|
|
591
591
|
null
|
|
592
592
|
);
|
|
593
|
-
const
|
|
594
|
-
function
|
|
593
|
+
const Dn = Hn.exports;
|
|
594
|
+
function Rn(t, e, r, n) {
|
|
595
595
|
const a = d(() => r.value > 0 && r.value < 1), o = d(
|
|
596
596
|
() => n.value > 0 && n.value < 1
|
|
597
597
|
), l = d(
|
|
598
598
|
() => a.value ? t.value - 0.5 : t.value
|
|
599
599
|
// draws the 1px bar closer to the axis
|
|
600
|
-
),
|
|
600
|
+
), u = d(
|
|
601
601
|
() => o.value ? e.value - 0.5 : e.value
|
|
602
602
|
// draws the 1px bar closer to the axis
|
|
603
603
|
);
|
|
604
|
-
return { computedX: l, computedY:
|
|
604
|
+
return { computedX: l, computedY: u, shouldHaveMinWidth: a, shouldHaveMinHeight: o };
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function Pn(t, e, r, n) {
|
|
607
607
|
const a = w(0), o = w(0), l = d(() => `${t.value + r.value / 2}px ${e.value + n.value / 2}px`);
|
|
608
608
|
return ee(() => {
|
|
609
609
|
a.value = r.value, o.value = n.value;
|
|
610
|
-
}), H(r, (
|
|
610
|
+
}), H(r, (u) => a.value = u), H(n, (u) => o.value = u), { computedWidth: a, computedHeight: o, transformOrigin: l };
|
|
611
611
|
}
|
|
612
612
|
const Sn = /* @__PURE__ */ N({
|
|
613
613
|
__name: "lume-bar",
|
|
@@ -647,13 +647,13 @@ const Sn = /* @__PURE__ */ N({
|
|
|
647
647
|
},
|
|
648
648
|
emits: ["click", "mouseover", "mouseleave"],
|
|
649
649
|
setup(t, { emit: e }) {
|
|
650
|
-
const r = t, { x: n, y: a, width: o, height: l, transition:
|
|
651
|
-
() => typeof
|
|
652
|
-
), s = d(() =>
|
|
653
|
-
return ee(() =>
|
|
650
|
+
const r = t, { x: n, y: a, width: o, height: l, transition: u, classList: i } = S(r), c = w(null), v = d(
|
|
651
|
+
() => typeof i.value == "string" ? [i.value] : i.value
|
|
652
|
+
), s = d(() => u.value === "width"), f = d(() => u.value === "height"), m = Pn(n, a, o, l), { computedX: _, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: p } = Rn(n, a, o, l), k = d(() => y.value ? 1 : (s.value ? m.computedWidth : o).value), x = d(() => p.value ? 1 : (f.value ? m.computedHeight : l).value), T = s.value || f.value ? m.transformOrigin : null;
|
|
653
|
+
return ee(() => Ie(c.value)), { __sfc: !0, props: r, emit: e, x: n, y: a, width: o, height: l, transition: u, classList: i, root: c, computedClasses: v, shouldTransitionWidth: s, shouldTransitionHeight: f, transitionProps: m, computedX: _, computedY: h, shouldHaveMinWidth: y, shouldHaveMinHeight: p, computedWidth: k, computedHeight: x, transformOrigin: T };
|
|
654
654
|
}
|
|
655
655
|
});
|
|
656
|
-
var
|
|
656
|
+
var Bn = function() {
|
|
657
657
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
658
658
|
return r("rect", { ref: "root", staticClass: "lume-bar", class: [
|
|
659
659
|
{
|
|
@@ -670,40 +670,40 @@ var Pn = function() {
|
|
|
670
670
|
}, mouseleave: function(a) {
|
|
671
671
|
return n.emit("mouseleave", a);
|
|
672
672
|
} } });
|
|
673
|
-
},
|
|
673
|
+
}, Cn = [], Gn = /* @__PURE__ */ E(
|
|
674
674
|
Sn,
|
|
675
|
-
Pn,
|
|
676
675
|
Bn,
|
|
676
|
+
Cn,
|
|
677
677
|
!1,
|
|
678
678
|
null,
|
|
679
679
|
"8e8f732a"
|
|
680
680
|
);
|
|
681
|
-
const Ue =
|
|
682
|
-
var ne = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(ne || {}), z = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(z || {}),
|
|
683
|
-
const
|
|
684
|
-
function jn(t) {
|
|
685
|
-
return t === ne.Divergent ? Fn : he;
|
|
686
|
-
}
|
|
681
|
+
const Ue = Gn.exports;
|
|
682
|
+
var ne = /* @__PURE__ */ ((t) => (t.Categorical = "categorical", t.Sequential = "sequential", t.Divergent = "divergent", t))(ne || {}), z = /* @__PURE__ */ ((t) => (t.Skyblue = "skyblue", t.Royalblue = "royalblue", t.Violet = "violet", t.Darkteal = "darkteal", t.Gold = "gold", t))(z || {}), Dt = /* @__PURE__ */ ((t) => (t.Skyblue10 = "skyblue-10", t.Skyblue20 = "skyblue-20", t.Skyblue30 = "skyblue-30", t.Skyblue40 = "skyblue-40", t.Skyblue50 = "skyblue-50", t.Skyblue60 = "skyblue-60", t.Skyblue70 = "skyblue-70", t.Skyblue80 = "skyblue-80", t.Skyblue90 = "skyblue-90", t.Skyblue100 = "skyblue-100", t.Royalblue10 = "royalblue-10", t.Royalblue20 = "royalblue-20", t.Royalblue30 = "royalblue-30", t.Royalblue40 = "royalblue-40", t.Royalblue50 = "royalblue-50", t.Royalblue60 = "royalblue-60", t.Royalblue70 = "royalblue-70", t.Royalblue80 = "royalblue-80", t.Royalblue90 = "royalblue-90", t.Royalblue100 = "royalblue-100", t.Violet10 = "violet-10", t.Violet20 = "violet-20", t.Violet30 = "violet-30", t.Violet40 = "violet-40", t.Violet50 = "violet-50", t.Violet60 = "violet-60", t.Violet70 = "violet-70", t.Violet80 = "violet-80", t.Violet90 = "violet-90", t.Violet100 = "violet-100", t.Darkteal10 = "darkteal-10", t.Darkteal20 = "darkteal-20", t.Darkteal30 = "darkteal-30", t.Darkteal40 = "darkteal-40", t.Darkteal50 = "darkteal-50", t.Darkteal60 = "darkteal-60", t.Darkteal70 = "darkteal-70", t.Darkteal80 = "darkteal-80", t.Darkteal90 = "darkteal-90", t.Darkteal100 = "darkteal-100", t.Gold10 = "gold-10", t.Gold20 = "gold-20", t.Gold30 = "gold-30", t.Gold40 = "gold-40", t.Gold50 = "gold-50", t.Gold60 = "gold-60", t.Gold70 = "gold-70", t.Gold80 = "gold-80", t.Gold90 = "gold-90", t.Gold100 = "gold-100", t))(Dt || {}), Xe = /* @__PURE__ */ ((t) => (t.SkyTeal = "skyblue-darkteal", t.VioletRoyal = "violet-royalblue", t.VioletTeal = "violet-darkteal", t.GoldTeal = "gold-darkteal", t.GoldRoyal = "gold-royalblue", t))(Xe || {}), Ye = /* @__PURE__ */ ((t) => (t.White = "white", t.Black = "black", t.Green = "green", t.Orange = "orange", t.Red = "red", t.Grey = "grey", t.Grey10 = "grey-10", t.Grey20 = "grey-20", t.Grey30 = "grey-30", t.Grey40 = "grey-40", t.Grey50 = "grey-50", t.Grey60 = "grey-60", t.Grey70 = "grey-70", t.Grey80 = "grey-80", t.Grey90 = "grey-90", t.Grey100 = "grey-100", t))(Ye || {}), Ke = /* @__PURE__ */ ((t) => (t["01"] = "01", t["02"] = "02", t["03"] = "03", t["04"] = "04", t["05"] = "05", t["06"] = "06", t["07"] = "07", t["08"] = "08", t["09"] = "09", t))(Ke || {});
|
|
683
|
+
const Fn = ne.Categorical, he = z.Skyblue, jn = Xe.SkyTeal;
|
|
687
684
|
function Vn(t) {
|
|
685
|
+
return t === ne.Divergent ? jn : he;
|
|
686
|
+
}
|
|
687
|
+
function Mn(t) {
|
|
688
688
|
return Object.values(Ke).includes(t);
|
|
689
689
|
}
|
|
690
690
|
function at(t, e) {
|
|
691
691
|
return e === ne.Divergent ? Object.values(Xe).includes(t) : Object.values({
|
|
692
692
|
...z,
|
|
693
|
-
...
|
|
693
|
+
...Dt,
|
|
694
694
|
...Ye,
|
|
695
695
|
...Ke
|
|
696
696
|
}).includes(t);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function zn(t, e) {
|
|
699
699
|
const r = Object.values(z).indexOf(t);
|
|
700
|
-
return
|
|
700
|
+
return pn(Object.values(z), r > -1 ? r : 0)[e];
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function Wn(t, e) {
|
|
703
703
|
const r = 50 + e * 10;
|
|
704
704
|
return `${t}-${r}`;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Zn(t, e) {
|
|
707
707
|
const r = (e + 1) * 10;
|
|
708
708
|
return `${t}-${r}`;
|
|
709
709
|
}
|
|
@@ -711,20 +711,20 @@ function ot(t, e, r) {
|
|
|
711
711
|
switch (e) {
|
|
712
712
|
default:
|
|
713
713
|
case ne.Categorical:
|
|
714
|
-
return
|
|
714
|
+
return Mn(t) ? t : zn(t, r);
|
|
715
715
|
case ne.Sequential:
|
|
716
|
-
return zn(t, r);
|
|
717
|
-
case ne.Divergent:
|
|
718
716
|
return Wn(t, r);
|
|
717
|
+
case ne.Divergent:
|
|
718
|
+
return Zn(t, r);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
return at(t, r) ? t : (n > 4 && (q(X.ColorLoop), n = n % 5), at(e, r) ? ot(e, r, n) : ot(
|
|
723
|
-
}
|
|
724
|
-
function Un(t) {
|
|
725
|
-
return t.map((e) => on(e) ? e : { value: e });
|
|
721
|
+
function Un(t, e, r = Fn, n) {
|
|
722
|
+
return at(t, r) ? t : (n > 4 && (q(X.ColorLoop), n = n % 5), at(e, r) ? ot(e, r, n) : ot(Vn(r), r, n));
|
|
726
723
|
}
|
|
727
724
|
function Xn(t) {
|
|
725
|
+
return t.map((e) => ln(e) ? e : { value: e });
|
|
726
|
+
}
|
|
727
|
+
function Yn(t) {
|
|
728
728
|
return t.__internal === !0;
|
|
729
729
|
}
|
|
730
730
|
const Je = (t = null) => ({
|
|
@@ -750,12 +750,12 @@ function Qe(t, e, r, n, a) {
|
|
|
750
750
|
const o = Oe({
|
|
751
751
|
width: 0,
|
|
752
752
|
height: 0
|
|
753
|
-
}), l = crypto.randomUUID(),
|
|
753
|
+
}), l = crypto.randomUUID(), u = d(() => {
|
|
754
754
|
var v;
|
|
755
755
|
return t.value.length > 5 && q(X.DatasetLength), (v = t.value) == null ? void 0 : v.map(
|
|
756
756
|
(s, f) => {
|
|
757
|
-
if (
|
|
758
|
-
const m =
|
|
757
|
+
if (Yn(s)) return s;
|
|
758
|
+
const m = Xn(s.values), _ = Un(
|
|
759
759
|
s.color,
|
|
760
760
|
r == null ? void 0 : r.value,
|
|
761
761
|
n == null ? void 0 : n.value.colorPalette,
|
|
@@ -769,20 +769,20 @@ function Qe(t, e, r, n, a) {
|
|
|
769
769
|
};
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
|
-
}),
|
|
772
|
+
}), i = d(() => Array.isArray(e.value) ? e.value : It(t.value).map((v, s) => s));
|
|
773
773
|
function c(v) {
|
|
774
|
-
const s = (a == null ? void 0 : a.value) ===
|
|
774
|
+
const s = (a == null ? void 0 : a.value) === L.HORIZONTAL && i.value.length * (((n == null ? void 0 : n.value.barHeight) || rt) * 2) + ((n == null ? void 0 : n.value.barHeight) || rt) || v.height;
|
|
775
775
|
o.width = v.width, o.height = s;
|
|
776
776
|
}
|
|
777
777
|
return {
|
|
778
778
|
chartID: l,
|
|
779
|
-
computedLabels:
|
|
779
|
+
computedLabels: i,
|
|
780
780
|
containerSize: o,
|
|
781
|
-
internalData:
|
|
781
|
+
internalData: u,
|
|
782
782
|
updateSize: c
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
const
|
|
785
|
+
const Kn = () => ({
|
|
786
786
|
xScale: {
|
|
787
787
|
type: Function,
|
|
788
788
|
default: null
|
|
@@ -792,14 +792,14 @@ const Yn = () => ({
|
|
|
792
792
|
default: null
|
|
793
793
|
}
|
|
794
794
|
});
|
|
795
|
-
function
|
|
795
|
+
function Jn(t, e, r, n, a) {
|
|
796
796
|
const o = w(null), l = w(null);
|
|
797
|
-
function
|
|
797
|
+
function u() {
|
|
798
798
|
var v, s, f, m;
|
|
799
|
-
const { width:
|
|
800
|
-
!
|
|
799
|
+
const { width: i, height: c } = r;
|
|
800
|
+
!i && !c || (n.value === L.HORIZONTAL ? (o.value = (v = t.value) != null && v.length ? it(
|
|
801
801
|
t.value,
|
|
802
|
-
|
|
802
|
+
i,
|
|
803
803
|
n.value,
|
|
804
804
|
a.value.startOnZero
|
|
805
805
|
) : null, l.value = (s = e.value) != null && s.length ? lt(
|
|
@@ -809,39 +809,39 @@ function Kn(t, e, r, n, a) {
|
|
|
809
809
|
a.value
|
|
810
810
|
) : null) : (o.value = (f = e.value) != null && f.length ? lt(
|
|
811
811
|
e.value,
|
|
812
|
-
|
|
812
|
+
i,
|
|
813
813
|
n.value,
|
|
814
814
|
a.value
|
|
815
|
-
) : null, l.value = (m = t.value) != null && m.length ?
|
|
815
|
+
) : null, l.value = (m = t.value) != null && m.length ? it(
|
|
816
816
|
t.value,
|
|
817
817
|
c,
|
|
818
818
|
n.value,
|
|
819
819
|
a.value.startOnZero
|
|
820
820
|
) : null));
|
|
821
821
|
}
|
|
822
|
-
return
|
|
822
|
+
return xt(u), { xScale: o, yScale: l };
|
|
823
823
|
}
|
|
824
824
|
function lt(t, e, r, n) {
|
|
825
|
-
const a = [0, e], { padding: o, paddingInner: l, paddingOuter:
|
|
825
|
+
const a = [0, e], { padding: o, paddingInner: l, paddingOuter: u } = n, i = o ?? (r === L.HORIZONTAL ? Et : wt);
|
|
826
826
|
return Object.assign(
|
|
827
|
-
pe().range(a).paddingInner(l ??
|
|
827
|
+
pe().range(a).paddingInner(l ?? i).paddingOuter(u ?? i).domain(t.map((c, v) => v)),
|
|
828
828
|
{ labels: t }
|
|
829
829
|
);
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
const a =
|
|
831
|
+
function it(t, e, r, n) {
|
|
832
|
+
const a = Lt(t).filter((v) => v != null), o = [0, e];
|
|
833
833
|
if (a.length === 0)
|
|
834
834
|
return fe().range(o).domain([0, 0]).nice();
|
|
835
|
-
const l = Math.min(...a),
|
|
836
|
-
let
|
|
837
|
-
n &&
|
|
838
|
-
const c = r ===
|
|
835
|
+
const l = Math.min(...a), u = n && l > 0 ? 0 : l;
|
|
836
|
+
let i = Math.max(...a);
|
|
837
|
+
n && i < 0 && (i = 0);
|
|
838
|
+
const c = r === L.HORIZONTAL ? [u, i] : [i, u];
|
|
839
839
|
return fe().range(o).domain(c).nice();
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function ut(t) {
|
|
842
842
|
return (t == null ? void 0 : t.range) !== void 0 || (t == null ? void 0 : t.copy) !== void 0;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Se(t, e) {
|
|
845
845
|
return U(t) ? t.bandwidth() / 2 + t(t.domain()[e]) : t(e);
|
|
846
846
|
}
|
|
847
847
|
function st(t, e, {
|
|
@@ -849,15 +849,15 @@ function st(t, e, {
|
|
|
849
849
|
paddingInner: n,
|
|
850
850
|
paddingOuter: a
|
|
851
851
|
} = {}) {
|
|
852
|
-
const o = r ?? (e ===
|
|
852
|
+
const o = r ?? (e === L.HORIZONTAL ? Et : wt);
|
|
853
853
|
return t.copy().paddingInner(n ?? o).paddingOuter(a ?? o);
|
|
854
854
|
}
|
|
855
855
|
function qe(t) {
|
|
856
|
-
return Object.values(
|
|
856
|
+
return Object.values(L).includes(t);
|
|
857
857
|
}
|
|
858
|
-
const
|
|
858
|
+
const ue = (t, e = !0) => ({
|
|
859
859
|
...Je(t),
|
|
860
|
-
...
|
|
860
|
+
...Kn(),
|
|
861
861
|
...me(),
|
|
862
862
|
classList: {
|
|
863
863
|
type: [String, Array],
|
|
@@ -870,11 +870,11 @@ const ie = (t, e = !0) => ({
|
|
|
870
870
|
...e ? {
|
|
871
871
|
orientation: {
|
|
872
872
|
type: String,
|
|
873
|
-
default:
|
|
873
|
+
default: L.VERTICAL,
|
|
874
874
|
validator: qe
|
|
875
875
|
}
|
|
876
876
|
} : {}
|
|
877
|
-
}),
|
|
877
|
+
}), Qn = (t) => ({
|
|
878
878
|
...Je(t),
|
|
879
879
|
...me(),
|
|
880
880
|
hoveredElement: {
|
|
@@ -882,7 +882,7 @@ const ie = (t, e = !0) => ({
|
|
|
882
882
|
default: null
|
|
883
883
|
}
|
|
884
884
|
});
|
|
885
|
-
function
|
|
885
|
+
function qn() {
|
|
886
886
|
const t = w(), e = Oe({
|
|
887
887
|
dimensions: {}
|
|
888
888
|
}), r = new ResizeObserver((n) => {
|
|
@@ -892,11 +892,11 @@ function Qn() {
|
|
|
892
892
|
});
|
|
893
893
|
return ee(() => {
|
|
894
894
|
r.observe(t.value);
|
|
895
|
-
}),
|
|
895
|
+
}), At(() => {
|
|
896
896
|
r.unobserve(t.value);
|
|
897
897
|
}), { resizeState: e, resizeRef: t };
|
|
898
898
|
}
|
|
899
|
-
const
|
|
899
|
+
const er = /* @__PURE__ */ N({
|
|
900
900
|
__name: "lume-chart-container",
|
|
901
901
|
props: {
|
|
902
902
|
margins: {
|
|
@@ -917,19 +917,19 @@ const qn = /* @__PURE__ */ N({
|
|
|
917
917
|
},
|
|
918
918
|
orientation: {
|
|
919
919
|
type: String,
|
|
920
|
-
default:
|
|
920
|
+
default: L.VERTICAL,
|
|
921
921
|
validator: qe
|
|
922
922
|
}
|
|
923
923
|
},
|
|
924
924
|
emits: ["click", "mouseenter", "mouseleave", "resize"],
|
|
925
925
|
setup(t, { emit: e }) {
|
|
926
|
-
const r = t, { margins: n, containerSize: a } =
|
|
926
|
+
const r = t, { margins: n, containerSize: a } = S(r), o = w(null), { resizeRef: l, resizeState: u } = qn(), i = d(
|
|
927
927
|
() => a.value.height + n.value.top + n.value.bottom
|
|
928
928
|
);
|
|
929
|
-
return
|
|
929
|
+
return xt(() => {
|
|
930
930
|
if (!o.value) return;
|
|
931
|
-
const { width: c } =
|
|
932
|
-
if (!c || r.orientation ===
|
|
931
|
+
const { width: c } = u.dimensions, { height: v } = o.value.getBoundingClientRect();
|
|
932
|
+
if (!c || r.orientation === L.VERTICAL && !v)
|
|
933
933
|
return;
|
|
934
934
|
const s = c - n.value.left - n.value.right, f = v - n.value.top - n.value.bottom, m = {
|
|
935
935
|
width: s > 0 ? s : 0,
|
|
@@ -938,10 +938,10 @@ const qn = /* @__PURE__ */ N({
|
|
|
938
938
|
outerHeight: v
|
|
939
939
|
};
|
|
940
940
|
e("resize", m);
|
|
941
|
-
}), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState:
|
|
941
|
+
}), { __sfc: !0, props: r, emit: e, margins: n, containerSize: a, root: o, resizeRef: l, resizeState: u, svgHeight: i };
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
|
-
var
|
|
944
|
+
var tr = function() {
|
|
945
945
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
946
946
|
return r("div", { ref: "resizeRef", staticClass: "lume-chart-container", class: {
|
|
947
947
|
"lume-chart-container--minimum": !e.noMinSize
|
|
@@ -954,20 +954,20 @@ var er = function() {
|
|
|
954
954
|
}, mouseleave: function(a) {
|
|
955
955
|
return n.emit("mouseleave", a);
|
|
956
956
|
} } }, [r("g", { staticClass: "lume-chart-container__group", attrs: { transform: `translate(${n.margins.left}, ${n.margins.top})`, "data-j-chart-container__group": "" } }, [e._t("default")], 2)]), e._t("footer"), e._t("extra")], 2);
|
|
957
|
-
},
|
|
958
|
-
qn,
|
|
957
|
+
}, nr = [], rr = /* @__PURE__ */ E(
|
|
959
958
|
er,
|
|
960
959
|
tr,
|
|
960
|
+
nr,
|
|
961
961
|
!1,
|
|
962
962
|
null,
|
|
963
963
|
"d53cdc3e"
|
|
964
964
|
);
|
|
965
|
-
const
|
|
965
|
+
const ar = rr.exports, or = /* @__PURE__ */ N({
|
|
966
966
|
__name: "lume-chart-legend",
|
|
967
967
|
props: {
|
|
968
968
|
data: {
|
|
969
969
|
type: Array,
|
|
970
|
-
validator:
|
|
970
|
+
validator: on,
|
|
971
971
|
required: !0
|
|
972
972
|
}
|
|
973
973
|
},
|
|
@@ -976,7 +976,7 @@ const rr = nr.exports, ar = /* @__PURE__ */ N({
|
|
|
976
976
|
return { __sfc: !0, emit: e };
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
|
-
var
|
|
979
|
+
var lr = function() {
|
|
980
980
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
981
981
|
return r("div", { staticClass: "lume-chart-legend", attrs: { "data-j-chart-legend": "" }, on: { mouseleave: function(a) {
|
|
982
982
|
return n.emit("mouseleave");
|
|
@@ -987,39 +987,39 @@ var or = function() {
|
|
|
987
987
|
return n.emit("mouseenter", { index: o, dataset: a, event: l });
|
|
988
988
|
} } }, [r("span", { staticClass: "lume-chart-legend__symbol", class: `lume-background-color--${a.color}`, attrs: { "data-j-chart-legend__symbol": "" } }), e._v(" " + e._s(a.label || o) + " ")]);
|
|
989
989
|
}), 0);
|
|
990
|
-
},
|
|
991
|
-
ar,
|
|
990
|
+
}, ir = [], ur = /* @__PURE__ */ E(
|
|
992
991
|
or,
|
|
993
992
|
lr,
|
|
993
|
+
ir,
|
|
994
994
|
!1,
|
|
995
995
|
null,
|
|
996
996
|
"6f1d1c44"
|
|
997
997
|
);
|
|
998
|
-
const
|
|
999
|
-
var
|
|
998
|
+
const sr = ur.exports, cr = {};
|
|
999
|
+
var dr = function() {
|
|
1000
1000
|
var e = this, r = e._self._c;
|
|
1001
1001
|
return r("div", { staticClass: "lume-tooltip__title", attrs: { "data-j-tooltip__title": "" } }, [e._t("default")], 2);
|
|
1002
|
-
},
|
|
1003
|
-
sr,
|
|
1002
|
+
}, vr = [], fr = /* @__PURE__ */ E(
|
|
1004
1003
|
cr,
|
|
1005
1004
|
dr,
|
|
1005
|
+
vr,
|
|
1006
1006
|
!1,
|
|
1007
1007
|
null,
|
|
1008
1008
|
"8af3fac6"
|
|
1009
1009
|
);
|
|
1010
|
-
const
|
|
1011
|
-
var
|
|
1010
|
+
const pr = fr.exports, mr = {};
|
|
1011
|
+
var _r = function() {
|
|
1012
1012
|
var e = this, r = e._self._c;
|
|
1013
1013
|
return r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__summary-item": "" } }, [r("span", [e._t("default")], 2), r("strong", { staticClass: "lume-tooltip__value" }, [e._t("value")], 2)]);
|
|
1014
|
-
},
|
|
1015
|
-
pr,
|
|
1014
|
+
}, hr = [], gr = /* @__PURE__ */ E(
|
|
1016
1015
|
mr,
|
|
1017
1016
|
_r,
|
|
1017
|
+
hr,
|
|
1018
1018
|
!1,
|
|
1019
1019
|
null,
|
|
1020
1020
|
"4ed7ec1b"
|
|
1021
1021
|
);
|
|
1022
|
-
const
|
|
1022
|
+
const yr = gr.exports, br = /* @__PURE__ */ N({
|
|
1023
1023
|
__name: "lume-tooltip-item",
|
|
1024
1024
|
props: {
|
|
1025
1025
|
color: {
|
|
@@ -1031,18 +1031,18 @@ const gr = hr.exports, yr = /* @__PURE__ */ N({
|
|
|
1031
1031
|
return { __sfc: !0 };
|
|
1032
1032
|
}
|
|
1033
1033
|
});
|
|
1034
|
-
var
|
|
1034
|
+
var kr = function() {
|
|
1035
1035
|
var e = this, r = e._self._c;
|
|
1036
1036
|
return e._self._setupProxy, r("li", { staticClass: "lume-tooltip__item", attrs: { "data-j-tooltip__item": "" } }, [e.color ? r("span", { staticClass: "lume-tooltip__symbol", class: [`lume-background-color--${e.color}`], attrs: { "data-j-tooltip__item__symbol": "" } }) : e._e(), r("span", { attrs: { "data-j-tooltip__item__label": "" } }, [e._t("label")], 2), r("strong", { staticClass: "lume-tooltip__value", attrs: { "data-j-tooltip__item__value": "" } }, [e._t("value")], 2)]);
|
|
1037
|
-
},
|
|
1038
|
-
yr,
|
|
1037
|
+
}, xr = [], Ar = /* @__PURE__ */ E(
|
|
1039
1038
|
br,
|
|
1040
1039
|
kr,
|
|
1040
|
+
xr,
|
|
1041
1041
|
!1,
|
|
1042
1042
|
null,
|
|
1043
1043
|
"4f995c3c"
|
|
1044
1044
|
);
|
|
1045
|
-
const
|
|
1045
|
+
const Tr = Ar.exports, Lr = /* @__PURE__ */ N({
|
|
1046
1046
|
__name: "lume-tooltip",
|
|
1047
1047
|
props: {
|
|
1048
1048
|
opened: {
|
|
@@ -1060,7 +1060,7 @@ const Ar = xr.exports, Tr = /* @__PURE__ */ N({
|
|
|
1060
1060
|
position: {
|
|
1061
1061
|
type: String,
|
|
1062
1062
|
default: "auto",
|
|
1063
|
-
validator: (t) =>
|
|
1063
|
+
validator: (t) => kn.includes(t)
|
|
1064
1064
|
},
|
|
1065
1065
|
fixedPositioning: {
|
|
1066
1066
|
type: Boolean,
|
|
@@ -1086,8 +1086,8 @@ const Ar = xr.exports, Tr = /* @__PURE__ */ N({
|
|
|
1086
1086
|
},
|
|
1087
1087
|
emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
|
|
1088
1088
|
setup(t, { emit: e }) {
|
|
1089
|
-
const r = t, n = w(null), { items: a, options: o } =
|
|
1090
|
-
() =>
|
|
1089
|
+
const r = t, n = w(null), { items: a, options: o } = S(r), l = M(), u = w(null), { allOptions: i } = Y(o), c = d(
|
|
1090
|
+
() => i.value.fixedPositioning ?? r.fixedPositioning
|
|
1091
1091
|
), v = d(
|
|
1092
1092
|
() => c.value ? "fixed" : "absolute"
|
|
1093
1093
|
), s = d(() => [
|
|
@@ -1100,43 +1100,43 @@ const Ar = xr.exports, Tr = /* @__PURE__ */ N({
|
|
|
1100
1100
|
},
|
|
1101
1101
|
{
|
|
1102
1102
|
name: "offset",
|
|
1103
|
-
options: { offset: [0,
|
|
1103
|
+
options: { offset: [0, i.value.offset || 8] }
|
|
1104
1104
|
},
|
|
1105
1105
|
...r.modifiers || []
|
|
1106
1106
|
]), f = d(
|
|
1107
|
-
() =>
|
|
1108
|
-
), m = d(() => Ae(
|
|
1107
|
+
() => i.value.showTitle !== !1 && r.title != null
|
|
1108
|
+
), m = d(() => Ae(i.value.valueFormat)), _ = d(() => Ae(i.value.titleFormat)), h = d(
|
|
1109
1109
|
() => {
|
|
1110
1110
|
var I;
|
|
1111
|
-
return ((I = a.value) == null ? void 0 : I.find((
|
|
1112
|
-
label:
|
|
1111
|
+
return ((I = a.value) == null ? void 0 : I.find((R) => R.isSummary)) || {
|
|
1112
|
+
label: i.value.summary ?? r.summary
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
), y = d(() => l.summary || h.value.label), p = d(() => r.inverse ||
|
|
1115
|
+
), y = d(() => l.summary || h.value.label), p = d(() => r.inverse || i.value.inverse ? [...a.value].reverse() : a.value);
|
|
1116
1116
|
function k() {
|
|
1117
|
-
r.targetElement && n.value && (
|
|
1117
|
+
r.targetElement && n.value && (u.value = Qt(r.targetElement, n.value, {
|
|
1118
1118
|
placement: r.position,
|
|
1119
1119
|
strategy: v.value,
|
|
1120
1120
|
modifiers: s.value
|
|
1121
1121
|
}), e("opened", r.targetElement));
|
|
1122
1122
|
}
|
|
1123
1123
|
function x() {
|
|
1124
|
-
|
|
1124
|
+
u.value && (u.value.destroy(), e("closed"), n.value && n.value.classList.remove("lume-tooltip--animated"));
|
|
1125
1125
|
}
|
|
1126
1126
|
function T() {
|
|
1127
|
-
|
|
1128
|
-
|
|
1127
|
+
u.value && (i.value.withAnimation !== !1 && n.value && n.value.classList.add("lume-tooltip--animated"), r.targetElement ? function() {
|
|
1128
|
+
u.value.state.elements.reference = r.targetElement, u.value.update(), e("moved", r.targetElement);
|
|
1129
1129
|
}() : x());
|
|
1130
1130
|
}
|
|
1131
1131
|
return H(
|
|
1132
1132
|
() => r.targetElement,
|
|
1133
|
-
async (I,
|
|
1134
|
-
!
|
|
1133
|
+
async (I, R) => {
|
|
1134
|
+
!R && I ? (await He(), k()) : T();
|
|
1135
1135
|
}
|
|
1136
|
-
), ee(k),
|
|
1136
|
+
), ee(k), At(x), { __sfc: !0, props: r, emit: e, root: n, items: a, options: o, slots: l, popper: u, allOptions: i, computedFixedPositioning: c, strategy: v, allModifiers: s, showTitle: f, formatValue: m, formatTitle: _, summaryItem: h, hasSummary: y, computedItems: p, initPopper: k, destroyPopper: x, updatePopper: T, LumeTooltipTitle: pr, LumeTooltipSummary: yr, LumeTooltipItem: Tr };
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
|
-
var
|
|
1139
|
+
var Or = function() {
|
|
1140
1140
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1141
1141
|
return e.opened && e.targetElement ? r("div", { ref: "root", staticClass: "lume-tooltip lume-typography--caption", class: {
|
|
1142
1142
|
"lume-tooltip--pointer-events": n.options.withPointerEvents
|
|
@@ -1161,15 +1161,15 @@ var Lr = function() {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
})], 2)];
|
|
1163
1163
|
})], 2) : e._e();
|
|
1164
|
-
},
|
|
1165
|
-
Tr,
|
|
1164
|
+
}, Ir = [], $r = /* @__PURE__ */ E(
|
|
1166
1165
|
Lr,
|
|
1167
1166
|
Or,
|
|
1167
|
+
Ir,
|
|
1168
1168
|
!1,
|
|
1169
1169
|
null,
|
|
1170
1170
|
"6f13599d"
|
|
1171
1171
|
);
|
|
1172
|
-
const
|
|
1172
|
+
const wr = $r.exports, $e = () => ({
|
|
1173
1173
|
data: {
|
|
1174
1174
|
type: Array,
|
|
1175
1175
|
required: !0
|
|
@@ -1184,7 +1184,7 @@ const Ir = $r.exports, Ie = () => ({
|
|
|
1184
1184
|
},
|
|
1185
1185
|
orientation: {
|
|
1186
1186
|
type: String,
|
|
1187
|
-
default:
|
|
1187
|
+
default: L.VERTICAL,
|
|
1188
1188
|
validator: qe
|
|
1189
1189
|
},
|
|
1190
1190
|
xScale: {
|
|
@@ -1211,22 +1211,22 @@ const Ir = $r.exports, Ie = () => ({
|
|
|
1211
1211
|
type: [String, Array],
|
|
1212
1212
|
default: () => []
|
|
1213
1213
|
}
|
|
1214
|
-
}),
|
|
1214
|
+
}), Er = /* @__PURE__ */ N({
|
|
1215
1215
|
__name: "lume-overlay-group",
|
|
1216
1216
|
props: {
|
|
1217
|
-
|
|
1217
|
+
...$e(),
|
|
1218
1218
|
orientation: {
|
|
1219
1219
|
type: String,
|
|
1220
|
-
default:
|
|
1220
|
+
default: L.VERTICAL
|
|
1221
1221
|
}
|
|
1222
1222
|
},
|
|
1223
1223
|
emits: ["click", "lume__internal--hover", "mouseover"],
|
|
1224
1224
|
setup(t, { emit: e }) {
|
|
1225
|
-
const r = t, { data: n, orientation: a, xScale: o, yScale: l } =
|
|
1226
|
-
function
|
|
1225
|
+
const r = t, { data: n, orientation: a, xScale: o, yScale: l } = S(r), u = d(() => It(n));
|
|
1226
|
+
function i(c) {
|
|
1227
1227
|
var y;
|
|
1228
|
-
const v = a.value ===
|
|
1229
|
-
return a.value ===
|
|
1228
|
+
const v = a.value === L.HORIZONTAL ? l.value : o.value, s = v.domain(), f = un(v), m = ((y = v.paddingInner) == null ? void 0 : y.call(v)) ?? 0, _ = f * m, h = U(v) ? v(s[c]) - _ / 2 : v(c) - f / 2;
|
|
1229
|
+
return a.value === L.HORIZONTAL ? {
|
|
1230
1230
|
width: Math.max(...o.value.range()),
|
|
1231
1231
|
height: f,
|
|
1232
1232
|
transform: `translate(0, ${h})`
|
|
@@ -1236,10 +1236,10 @@ const Ir = $r.exports, Ie = () => ({
|
|
|
1236
1236
|
transform: `translate(${h}, 0)`
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
|
-
return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData:
|
|
1239
|
+
return { __sfc: !0, props: r, emit: e, data: n, orientation: a, xScale: o, yScale: l, overlayData: u, getOverlayBarAttributes: i, LumeBar: Ue };
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
|
-
var
|
|
1242
|
+
var Nr = function() {
|
|
1243
1243
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1244
1244
|
return r("g", { staticClass: "lume-overlay-group" }, e._l(n.overlayData, function(a, o) {
|
|
1245
1245
|
return r(n.LumeBar, e._b({ key: `overlay-${o}`, attrs: { "data-j-lume-overlay-group": o, transition: !1, "class-list": "lume-fill--transparent" }, on: { mouseover: function(l) {
|
|
@@ -1248,15 +1248,15 @@ var Er = function() {
|
|
|
1248
1248
|
return n.emit("click", { index: o, event: l });
|
|
1249
1249
|
} } }, "lume-bar", n.getOverlayBarAttributes(o), !1));
|
|
1250
1250
|
}), 1);
|
|
1251
|
-
},
|
|
1252
|
-
wr,
|
|
1251
|
+
}, Hr = [], Dr = /* @__PURE__ */ E(
|
|
1253
1252
|
Er,
|
|
1254
1253
|
Nr,
|
|
1254
|
+
Hr,
|
|
1255
1255
|
!1,
|
|
1256
1256
|
null,
|
|
1257
1257
|
null
|
|
1258
1258
|
);
|
|
1259
|
-
const
|
|
1259
|
+
const Rr = Dr.exports, Pr = [
|
|
1260
1260
|
"axis-click",
|
|
1261
1261
|
"axis-mouseenter",
|
|
1262
1262
|
"axis-mouseleave",
|
|
@@ -1295,19 +1295,19 @@ const Dr = Hr.exports, Rr = [
|
|
|
1295
1295
|
function n(o, l) {
|
|
1296
1296
|
document.addEventListener(
|
|
1297
1297
|
`${e}_${o}`,
|
|
1298
|
-
(
|
|
1298
|
+
(u) => l(...u.detail)
|
|
1299
1299
|
);
|
|
1300
1300
|
}
|
|
1301
|
-
return { componentEventPropagator:
|
|
1301
|
+
return { componentEventPropagator: Pr.reduce((o, l) => (o[l] = (u) => t(l, u), o), {}), emitInternalEvent: r, listenInternalEvent: n };
|
|
1302
1302
|
};
|
|
1303
1303
|
function Sr(t) {
|
|
1304
1304
|
return { hasNegativeValues: d(
|
|
1305
|
-
() =>
|
|
1305
|
+
() => Lt(t.value).some((r) => r < 0)
|
|
1306
1306
|
) };
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Br(t, e, r, n) {
|
|
1309
1309
|
const a = d(
|
|
1310
|
-
() => n.value ===
|
|
1310
|
+
() => n.value === L.HORIZONTAL
|
|
1311
1311
|
), o = d(
|
|
1312
1312
|
() => {
|
|
1313
1313
|
var c;
|
|
@@ -1318,7 +1318,7 @@ function Pr(t, e, r, n) {
|
|
|
1318
1318
|
var c;
|
|
1319
1319
|
return a != null && a.value ? ((c = e.value) == null ? void 0 : c.call(e, 0)) || 0 : t.width;
|
|
1320
1320
|
}
|
|
1321
|
-
),
|
|
1321
|
+
), u = d(
|
|
1322
1322
|
() => {
|
|
1323
1323
|
var c;
|
|
1324
1324
|
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((c = r.value) == null ? void 0 : c.call(r, 0)) || 0})`;
|
|
@@ -1327,15 +1327,15 @@ function Pr(t, e, r, n) {
|
|
|
1327
1327
|
return { negativeBarAttributes: d(() => ({
|
|
1328
1328
|
width: l.value,
|
|
1329
1329
|
height: o.value,
|
|
1330
|
-
transform:
|
|
1330
|
+
transform: u.value
|
|
1331
1331
|
})) };
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Cr(t, e) {
|
|
1334
1334
|
return t.reduce((r, n) => Ze(n.values, e).map(
|
|
1335
1335
|
(a, o) => r[o] ? a.value > r[o] ? a.value : r[o] : a.value ?? 0
|
|
1336
1336
|
), []);
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Gr(t, e) {
|
|
1339
1339
|
return t.reduce((r, n) => Ze(n.values, e).map(
|
|
1340
1340
|
(a, o) => {
|
|
1341
1341
|
const l = a.value == null || a.value < 0 ? 0 : a.value;
|
|
@@ -1344,10 +1344,10 @@ function Cr(t, e) {
|
|
|
1344
1344
|
), []);
|
|
1345
1345
|
}
|
|
1346
1346
|
const ct = {
|
|
1347
|
-
"stacked-bar":
|
|
1347
|
+
"stacked-bar": Gr
|
|
1348
1348
|
};
|
|
1349
|
-
function
|
|
1350
|
-
const
|
|
1349
|
+
function Rt(t, e, r, n, a, o, l, u) {
|
|
1350
|
+
const i = d(
|
|
1351
1351
|
() => {
|
|
1352
1352
|
var v;
|
|
1353
1353
|
return e.value.withTooltip !== !1 && !((v = e.value.tooltipOptions) != null && v.targetElement);
|
|
@@ -1355,24 +1355,24 @@ function Dt(t, e, r, n, a, o, l, i) {
|
|
|
1355
1355
|
);
|
|
1356
1356
|
function c(v) {
|
|
1357
1357
|
var m;
|
|
1358
|
-
const s = ((m = a == null ? void 0 : a.value) == null ? void 0 : m.length) ?? 0, f =
|
|
1358
|
+
const s = ((m = a == null ? void 0 : a.value) == null ? void 0 : m.length) ?? 0, f = u != null && u.value && ct[u.value] ? ct[u.value](
|
|
1359
1359
|
v,
|
|
1360
1360
|
s
|
|
1361
|
-
) :
|
|
1361
|
+
) : Cr(v, s);
|
|
1362
1362
|
t.value = f.map((_, h) => ({
|
|
1363
|
-
cx: (o == null ? void 0 : o.value) ===
|
|
1364
|
-
cy: (o == null ? void 0 : o.value) ===
|
|
1363
|
+
cx: (o == null ? void 0 : o.value) === L.HORIZONTAL ? r.value(_) : Se(r.value, h),
|
|
1364
|
+
cy: (o == null ? void 0 : o.value) === L.HORIZONTAL ? Se(n.value, h) : n.value(_)
|
|
1365
1365
|
}));
|
|
1366
1366
|
}
|
|
1367
1367
|
return H(
|
|
1368
1368
|
[r, n],
|
|
1369
1369
|
() => {
|
|
1370
|
-
r.value && n.value && (l != null && l.value) &&
|
|
1370
|
+
r.value && n.value && (l != null && l.value) && i.value && c(l.value);
|
|
1371
1371
|
},
|
|
1372
1372
|
{ immediate: !0 }
|
|
1373
|
-
), { shouldGenerateTooltipAnchors:
|
|
1373
|
+
), { shouldGenerateTooltipAnchors: i, updateTooltipAnchorAttributes: c };
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Fr() {
|
|
1376
1376
|
const t = Oe({
|
|
1377
1377
|
opened: !1,
|
|
1378
1378
|
targetElement: null
|
|
@@ -1383,14 +1383,14 @@ function Gr() {
|
|
|
1383
1383
|
t.opened = !1, t.targetElement = null;
|
|
1384
1384
|
} };
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function jr(t) {
|
|
1387
1387
|
return { getTooltipItems: d(
|
|
1388
1388
|
() => (r) => t.value.map(({ color: n, label: a, values: o }) => {
|
|
1389
|
-
var l,
|
|
1389
|
+
var l, u, i;
|
|
1390
1390
|
return {
|
|
1391
1391
|
color: ((l = o[r]) == null ? void 0 : l.color) || n,
|
|
1392
1392
|
label: a,
|
|
1393
|
-
value: ((
|
|
1393
|
+
value: ((u = o[r]) == null ? void 0 : u.label) ?? ((i = o[r]) == null ? void 0 : i.value) ?? $t
|
|
1394
1394
|
};
|
|
1395
1395
|
})
|
|
1396
1396
|
) };
|
|
@@ -1409,51 +1409,51 @@ const Be = 16, Ce = 8, Ge = 28, Fe = 24, re = {
|
|
|
1409
1409
|
left: Fe
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
|
-
function
|
|
1412
|
+
function Vr(t) {
|
|
1413
1413
|
return !t || t === "auto" || t.top == null || t.top === "auto" ? Be : t.top;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Mr(t) {
|
|
1416
1416
|
return !t || t === "auto" || t.right == null || t.right === "auto" ? Ce : t.right;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function zr(t, e) {
|
|
1419
1419
|
return !t || t === "auto" || t.bottom == null || t.bottom === "auto" ? e || Ge : t.bottom;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Wr(t, e) {
|
|
1422
1422
|
return !t || t === "auto" || t.left == null || t.left === "auto" ? e || Fe : t.left;
|
|
1423
1423
|
}
|
|
1424
|
-
const
|
|
1424
|
+
const Zr = /* @__PURE__ */ N({
|
|
1425
1425
|
__name: "lume-chart",
|
|
1426
1426
|
props: {
|
|
1427
|
-
...
|
|
1427
|
+
...ue(),
|
|
1428
1428
|
chartType: {
|
|
1429
1429
|
type: String,
|
|
1430
1430
|
default: null
|
|
1431
1431
|
}
|
|
1432
1432
|
},
|
|
1433
1433
|
setup(t, { emit: e }) {
|
|
1434
|
-
const r = t, n = M(), { data: a, labels: o, color: l, options:
|
|
1434
|
+
const r = t, n = M(), { data: a, labels: o, color: l, options: u, orientation: i, chartType: c } = S(r), v = w(-1), s = w(null), f = w(null), m = w([]), _ = w(null), h = w(0), y = w(0), { allOptions: p } = Y(u), { internalData: k, computedLabels: x, containerSize: T, updateSize: I, chartID: R } = Qe(a, o, l, p, i), { listenInternalEvent: $ } = K(e, R), { xScale: D, yScale: B } = Jn(
|
|
1435
1435
|
k,
|
|
1436
1436
|
x,
|
|
1437
1437
|
T,
|
|
1438
|
-
|
|
1438
|
+
i,
|
|
1439
1439
|
p
|
|
1440
|
-
),
|
|
1441
|
-
top:
|
|
1442
|
-
right:
|
|
1443
|
-
bottom:
|
|
1444
|
-
left:
|
|
1445
|
-
})),
|
|
1440
|
+
), C = d(() => ({
|
|
1441
|
+
top: Vr(p.value.margins),
|
|
1442
|
+
right: Mr(p.value.margins),
|
|
1443
|
+
bottom: zr(p.value.margins, h.value),
|
|
1444
|
+
left: Wr(p.value.margins, y.value)
|
|
1445
|
+
})), F = d(() => {
|
|
1446
1446
|
var b;
|
|
1447
|
-
return r.xScale ?
|
|
1447
|
+
return r.xScale ? ut(r.xScale) ? r.xScale : (b = r.xScale) == null ? void 0 : b.call(r, k.value, o.value, T) : D.value;
|
|
1448
1448
|
}), J = d(() => {
|
|
1449
1449
|
var b;
|
|
1450
|
-
return r.yScale ?
|
|
1450
|
+
return r.yScale ? ut(r.yScale) ? r.yScale : (b = r.yScale) == null ? void 0 : b.call(r, k.value, o.value, T) : B.value;
|
|
1451
1451
|
}), oe = d(() => ({
|
|
1452
1452
|
...p.value.xAxisOptions,
|
|
1453
|
-
withHover:
|
|
1453
|
+
withHover: i.value === L.VERTICAL
|
|
1454
1454
|
})), W = d(() => ({
|
|
1455
1455
|
...p.value.yAxisOptions,
|
|
1456
|
-
withHover:
|
|
1456
|
+
withHover: i.value === L.HORIZONTAL
|
|
1457
1457
|
})), te = d(() => {
|
|
1458
1458
|
var b;
|
|
1459
1459
|
return (b = p.value.xAxisOptions) == null ? void 0 : b.title;
|
|
@@ -1466,44 +1466,44 @@ const Wr = /* @__PURE__ */ N({
|
|
|
1466
1466
|
}), A = d(() => {
|
|
1467
1467
|
var b;
|
|
1468
1468
|
return ((b = p.value.yAxisOptions) == null ? void 0 : b.withTitle) !== !1 && Q.value;
|
|
1469
|
-
}),
|
|
1470
|
-
() => a.value.every((b) => !b.values.length) || a.value.every((b) => b.values.every((
|
|
1471
|
-
),
|
|
1472
|
-
const b = [], { noBaseScales:
|
|
1473
|
-
return
|
|
1474
|
-
}), { hasNegativeValues: Z } = Sr(k), { negativeBarAttributes:
|
|
1469
|
+
}), O = d(
|
|
1470
|
+
() => a.value.every((b) => !b.values.length) || a.value.every((b) => b.values.every((P) => P === null))
|
|
1471
|
+
), G = d(() => {
|
|
1472
|
+
const b = [], { noBaseScales: P } = p.value;
|
|
1473
|
+
return P || b.push(() => !!(F.value && J.value)), b.every((V) => V() === !0);
|
|
1474
|
+
}), { hasNegativeValues: Z } = Sr(k), { negativeBarAttributes: j } = Br(
|
|
1475
1475
|
T,
|
|
1476
|
-
|
|
1476
|
+
F,
|
|
1477
1477
|
J,
|
|
1478
|
-
|
|
1479
|
-
), { shouldGenerateTooltipAnchors: tt } =
|
|
1478
|
+
i
|
|
1479
|
+
), { shouldGenerateTooltipAnchors: tt } = Rt(
|
|
1480
1480
|
m,
|
|
1481
1481
|
p,
|
|
1482
|
-
|
|
1482
|
+
F,
|
|
1483
1483
|
J,
|
|
1484
1484
|
o,
|
|
1485
|
-
|
|
1485
|
+
i,
|
|
1486
1486
|
k,
|
|
1487
1487
|
c
|
|
1488
|
-
), { tooltipConfig: ce, showTooltip: ge, hideTooltip: de } =
|
|
1488
|
+
), { tooltipConfig: ce, showTooltip: ge, hideTooltip: de } = Fr(), { getTooltipItems: ye } = jr(k), le = d(
|
|
1489
1489
|
() => {
|
|
1490
1490
|
var b;
|
|
1491
1491
|
return ((b = p.value.tooltipOptions) == null ? void 0 : b.position) || "top";
|
|
1492
1492
|
}
|
|
1493
1493
|
), nt = d(() => {
|
|
1494
|
-
var
|
|
1495
|
-
const b = (
|
|
1494
|
+
var P;
|
|
1495
|
+
const b = (P = p.value.tooltipOptions) == null ? void 0 : P.withPointerEvents;
|
|
1496
1496
|
return ce.opened && (!b || b && _.value === !1);
|
|
1497
1497
|
});
|
|
1498
1498
|
function be(b) {
|
|
1499
1499
|
var V;
|
|
1500
1500
|
if (p.value.withHover === !1 || b === v.value) return;
|
|
1501
|
-
const
|
|
1501
|
+
const P = v.value;
|
|
1502
1502
|
if (v.value = b, p.value.withTooltip !== !1) {
|
|
1503
|
-
const
|
|
1504
|
-
ge(
|
|
1503
|
+
const Mt = (V = p.value.tooltipOptions) != null && V.targetElement ? p.value.tooltipOptions.targetElement === "self" ? f.value.$el : p.value.tooltipOptions.targetElement : s.value[b];
|
|
1504
|
+
ge(Mt);
|
|
1505
1505
|
}
|
|
1506
|
-
e("hovered-index-changed", { newIndex: b, oldIndex:
|
|
1506
|
+
e("hovered-index-changed", { newIndex: b, oldIndex: P }), e("update:hoveredIndex", b);
|
|
1507
1507
|
}
|
|
1508
1508
|
function ke() {
|
|
1509
1509
|
de(), v.value = -1, e("update:hoveredIndex", -1);
|
|
@@ -1517,27 +1517,27 @@ const Wr = /* @__PURE__ */ N({
|
|
|
1517
1517
|
}
|
|
1518
1518
|
b == null || b === -1 ? ke() : be(b);
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Gt() {
|
|
1521
1521
|
setTimeout(() => {
|
|
1522
1522
|
nt.value && ke(), e("chart-mouseleave");
|
|
1523
1523
|
}, 0);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function Ft(b) {
|
|
1526
1526
|
I(b), e("resize", b);
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
b !== null && be(b), e("axis-mouseenter", { index: b, value:
|
|
1528
|
+
function jt({ index: b, value: P, event: V }) {
|
|
1529
|
+
b !== null && be(b), e("axis-mouseenter", { index: b, value: P, event: V });
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
e("axis-click", { index: b, value:
|
|
1531
|
+
function Vt({ index: b, value: P, event: V }) {
|
|
1532
|
+
e("axis-click", { index: b, value: P, event: V });
|
|
1533
1533
|
}
|
|
1534
1534
|
return H(
|
|
1535
1535
|
a,
|
|
1536
|
-
(b,
|
|
1536
|
+
(b, P) => e("data-changed", { newValue: b, oldValue: P })
|
|
1537
1537
|
), H(
|
|
1538
1538
|
o,
|
|
1539
|
-
(b,
|
|
1540
|
-
), H(
|
|
1539
|
+
(b, P) => e("labels-changed", { newValue: b, oldValue: P })
|
|
1540
|
+
), H(O, (b) => b && q(X.Empty), { immediate: !0 }), H(() => r.hoveredIndex, we), H(
|
|
1541
1541
|
m,
|
|
1542
1542
|
(b) => {
|
|
1543
1543
|
b && r.hoveredIndex != null && v.value === -1 && we(r.hoveredIndex);
|
|
@@ -1546,11 +1546,11 @@ const Wr = /* @__PURE__ */ N({
|
|
|
1546
1546
|
), H(_, (b) => {
|
|
1547
1547
|
b === !1 && ce.opened && ke();
|
|
1548
1548
|
}), ee(async () => {
|
|
1549
|
-
e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'),
|
|
1550
|
-
}), Ee("chartID",
|
|
1549
|
+
e("rendered"), n.groups || console.error('"groups" `<slot>` must have content.'), $("lume__internal--hover", be);
|
|
1550
|
+
}), Ee("chartID", R), Ee("isEmpty", O), Ee("tooltipAnchorAttributes", m), { __sfc: !0, props: r, slots: n, emit: e, data: a, labels: o, color: l, options: u, orientation: i, chartType: c, internalHoveredIndex: v, tooltipAnchor: s, chartContainer: f, tooltipAnchorAttributes: m, isHoveringTooltip: _, xAxisHeight: h, yAxisWidth: y, allOptions: p, internalData: k, computedLabels: x, containerSize: T, updateSize: I, chartID: R, listenInternalEvent: $, xScale: D, yScale: B, computedMargins: C, computedXScale: F, computedYScale: J, computedXAxisOptions: oe, computedYAxisOptions: W, xAxisTitle: te, yAxisTitle: Q, showXAxisTitle: g, showYAxisTitle: A, isEmpty: O, isReady: G, hasNegativeValues: Z, negativeBarAttributes: j, shouldGenerateTooltipAnchors: tt, tooltipConfig: ce, showTooltip: ge, hideTooltip: de, getTooltipItems: ye, tooltipPosition: le, shouldHideTooltip: nt, handleInternalHover: be, handleHideTooltip: ke, handleExternalHover: we, handleMouseleave: Gt, handleResize: Ft, handleAxisMouseenter: jt, handleAxisClick: Vt, LumeAxis: Dn, LumeBar: Ue, LumeChartContainer: ar, LumeChartLegend: sr, LumeTooltip: wr, LumeOverlayGroup: Rr, TOOLTIP_ANCHOR_RADIUS: bn };
|
|
1551
1551
|
}
|
|
1552
1552
|
});
|
|
1553
|
-
var
|
|
1553
|
+
var Ur = function() {
|
|
1554
1554
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1555
1555
|
return r(n.LumeChartContainer, { ref: "chartContainer", attrs: { id: `lume-chart_${n.chartID}`, margins: n.computedMargins, "container-size": n.containerSize, "no-min-size": n.allOptions.noMinSize, "transparent-background": n.allOptions.transparentBackground, orientation: n.orientation, "data-j-lume-chart": "" }, on: { resize: n.handleResize, click: function(a) {
|
|
1556
1556
|
return n.emit("chart-click", a);
|
|
@@ -1607,15 +1607,15 @@ var Zr = function() {
|
|
|
1607
1607
|
}, { xScale: n.computedXScale, yScale: n.computedYScale, containerSize: n.containerSize, options: n.allOptions, hoveredIndex: n.internalHoveredIndex }) : e._e(), n.allOptions.withHover !== !1 ? r(n.LumeOverlayGroup, { attrs: { data: n.internalData, orientation: n.orientation, "x-scale": n.computedXScale, "y-scale": n.computedYScale, "data-j-lume-chart__overlay-group": "" }, on: { "lume__internal--hover": n.handleInternalHover } }) : e._e(), n.shouldGenerateTooltipAnchors ? r("g", e._l(n.tooltipAnchorAttributes, function(a, o) {
|
|
1608
1608
|
return r("circle", e._b({ key: `anchor_${o}`, ref: "tooltipAnchor", refInFor: !0, staticClass: "lume-fill--transparent", attrs: { r: n.TOOLTIP_ANCHOR_RADIUS } }, "circle", a, !1));
|
|
1609
1609
|
}), 0) : e._e(), e._t("groups", null, { data: n.internalData, labels: n.computedLabels, options: n.allOptions, orientation: n.orientation, xScale: n.computedXScale, yScale: n.computedYScale, hoveredIndex: n.internalHoveredIndex, containerSize: n.containerSize, transition: n.allOptions.withTransition !== !1, classList: e.classList })] : e._e()], 2);
|
|
1610
|
-
},
|
|
1611
|
-
Wr,
|
|
1610
|
+
}, Xr = [], Yr = /* @__PURE__ */ E(
|
|
1612
1611
|
Zr,
|
|
1613
1612
|
Ur,
|
|
1613
|
+
Xr,
|
|
1614
1614
|
!1,
|
|
1615
1615
|
null,
|
|
1616
1616
|
"17c48844"
|
|
1617
1617
|
);
|
|
1618
|
-
const se =
|
|
1618
|
+
const se = Yr.exports, dt = 8, Kr = 8, Jr = 20, ve = 2, vt = 2, Qr = /* @__PURE__ */ N({
|
|
1619
1619
|
__name: "lume-alluvial-node-label",
|
|
1620
1620
|
props: {
|
|
1621
1621
|
bottom: { type: Boolean, default: !1 },
|
|
@@ -1627,11 +1627,11 @@ const se = Xr.exports, dt = 8, Yr = 8, Kr = 20, ve = 2, vt = 2, Jr = /* @__PURE_
|
|
|
1627
1627
|
const r = t, n = w(null), a = w(r.maxWidth), o = w(1);
|
|
1628
1628
|
return H(
|
|
1629
1629
|
[n, () => r.maxWidth],
|
|
1630
|
-
async ([l,
|
|
1631
|
-
if (l &&
|
|
1632
|
-
a.value =
|
|
1633
|
-
const { width:
|
|
1634
|
-
a.value =
|
|
1630
|
+
async ([l, u]) => {
|
|
1631
|
+
if (l && u) {
|
|
1632
|
+
a.value = u, await He();
|
|
1633
|
+
const { width: i, height: c } = l.getBoundingClientRect();
|
|
1634
|
+
a.value = i + vt > u ? u : i + vt, o.value = Math.ceil(c);
|
|
1635
1635
|
}
|
|
1636
1636
|
},
|
|
1637
1637
|
{ immediate: !0 }
|
|
@@ -1640,18 +1640,18 @@ const se = Xr.exports, dt = 8, Yr = 8, Kr = 20, ve = 2, vt = 2, Jr = /* @__PURE_
|
|
|
1640
1640
|
}), { __sfc: !0, props: r, emit: e, text: n, foreignObjectWidth: a, foreignObjectHeight: o };
|
|
1641
1641
|
}
|
|
1642
1642
|
});
|
|
1643
|
-
var
|
|
1643
|
+
var qr = function() {
|
|
1644
1644
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1645
1645
|
return e.maxWidth ? r("foreignObject", { staticClass: "lume-alluvial-group__node-foreign", attrs: { y: e.bottom ? "0.1em" : -n.foreignObjectHeight + 1, x: e.left ? -n.foreignObjectWidth : 0, width: n.foreignObjectWidth, height: n.foreignObjectHeight } }, [r("div", { staticClass: "lume-alluvial-group__label-wrapper" }, [r("span", { ref: "text", staticClass: "lume-alluvial-group__node-label" }, [e._t("default")], 2)])]) : r("text", { staticClass: "lume-alluvial-group__node-label", attrs: { dy: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
|
|
1646
|
-
},
|
|
1647
|
-
Jr,
|
|
1646
|
+
}, ea = [], ta = /* @__PURE__ */ E(
|
|
1648
1647
|
Qr,
|
|
1649
1648
|
qr,
|
|
1649
|
+
ea,
|
|
1650
1650
|
!1,
|
|
1651
1651
|
null,
|
|
1652
1652
|
"7126dfdb"
|
|
1653
1653
|
);
|
|
1654
|
-
const
|
|
1654
|
+
const na = ta.exports, ra = /* @__PURE__ */ N({
|
|
1655
1655
|
__name: "lume-alluvial-node-value",
|
|
1656
1656
|
props: {
|
|
1657
1657
|
bottom: { type: Boolean, default: !0 }
|
|
@@ -1660,18 +1660,18 @@ const ta = ea.exports, na = /* @__PURE__ */ N({
|
|
|
1660
1660
|
return { __sfc: !0 };
|
|
1661
1661
|
}
|
|
1662
1662
|
});
|
|
1663
|
-
var
|
|
1663
|
+
var aa = function() {
|
|
1664
1664
|
var e = this, r = e._self._c;
|
|
1665
1665
|
return e._self._setupProxy, r("text", { staticClass: "lume-alluvial-group__node-value", attrs: { y: e.bottom ? ".2em" : "-.2em", "dominant-baseline": e.bottom ? "hanging" : "auto" } }, [e._t("default")], 2);
|
|
1666
|
-
},
|
|
1667
|
-
na,
|
|
1666
|
+
}, oa = [], la = /* @__PURE__ */ E(
|
|
1668
1667
|
ra,
|
|
1669
1668
|
aa,
|
|
1669
|
+
oa,
|
|
1670
1670
|
!1,
|
|
1671
1671
|
null,
|
|
1672
1672
|
"b4fc758b"
|
|
1673
1673
|
);
|
|
1674
|
-
const
|
|
1674
|
+
const ia = la.exports, ua = /* @__PURE__ */ N({
|
|
1675
1675
|
__name: "lume-alluvial-node-header",
|
|
1676
1676
|
props: {
|
|
1677
1677
|
x: { type: Number, required: !0 },
|
|
@@ -1686,18 +1686,18 @@ const la = oa.exports, ua = /* @__PURE__ */ N({
|
|
|
1686
1686
|
return { __sfc: !0, textRef: e, beforeTransform: r, afterTransform: n };
|
|
1687
1687
|
}
|
|
1688
1688
|
});
|
|
1689
|
-
var
|
|
1689
|
+
var sa = function() {
|
|
1690
1690
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
1691
1691
|
return r("g", { attrs: { transform: `translate(${e.x}, ${e.y})` } }, [r("g", { attrs: { transform: n.beforeTransform } }, [e._t("before")], 2), r("text", { ref: "textRef", staticClass: "lume-alluvial-group__node-header lume-typography--caption" }, [e._t("default")], 2), r("g", { attrs: { transform: n.afterTransform } }, [e._t("after")], 2)]);
|
|
1692
|
-
},
|
|
1692
|
+
}, ca = [], da = /* @__PURE__ */ E(
|
|
1693
1693
|
ua,
|
|
1694
|
-
ia,
|
|
1695
1694
|
sa,
|
|
1695
|
+
ca,
|
|
1696
1696
|
!1,
|
|
1697
1697
|
null,
|
|
1698
1698
|
"0e483453"
|
|
1699
1699
|
);
|
|
1700
|
-
const
|
|
1700
|
+
const va = da.exports;
|
|
1701
1701
|
function ft(t, e) {
|
|
1702
1702
|
return {
|
|
1703
1703
|
x0: 0 + (e ? e.left : 0),
|
|
@@ -1706,7 +1706,7 @@ function ft(t, e) {
|
|
|
1706
1706
|
y1: t.height - (e ? e.bottom : 0)
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function fa(t) {
|
|
1710
1710
|
const e = w(ft(t));
|
|
1711
1711
|
function r(n) {
|
|
1712
1712
|
e.value = ft(t, n);
|
|
@@ -1714,30 +1714,30 @@ function va(t) {
|
|
|
1714
1714
|
return { extents: e, updateExtents: r };
|
|
1715
1715
|
}
|
|
1716
1716
|
var Te = /* @__PURE__ */ ((t) => (t.GraphProblem = "There was an issue generating your alluvial graph.", t.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", t.BarScaleNull = "Bar linear scale cannot be `null`", t))(Te || {});
|
|
1717
|
-
const
|
|
1717
|
+
const pa = "[lume] ";
|
|
1718
1718
|
function je(t, e, r = !0) {
|
|
1719
|
-
r &&
|
|
1719
|
+
r && Tt() || console.error(pa + "Error: " + t, e);
|
|
1720
1720
|
}
|
|
1721
|
-
const
|
|
1722
|
-
function
|
|
1721
|
+
const ma = 200;
|
|
1722
|
+
function ie(t) {
|
|
1723
1723
|
return typeof t == "string" || typeof t == "number" ? t : t.id ?? t.label;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function _a(t, e) {
|
|
1726
1726
|
return e.nodes.find((r) => r.id === t);
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function ha(t, e) {
|
|
1729
1729
|
return e.links.find((r) => r.id === t);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function Pt(t) {
|
|
1732
1732
|
return !!(t.sourceLinks && t.targetLinks);
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function ga(t, e) {
|
|
1735
1735
|
if (!e) return;
|
|
1736
1736
|
const r = t.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), n = t.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = e.filter((l) => r.includes(l.dataset.id)).reduce(
|
|
1737
|
-
(l,
|
|
1737
|
+
(l, u) => Math.max(l, u.getBBox().width),
|
|
1738
1738
|
-1 / 0
|
|
1739
1739
|
), o = e.filter((l) => n.includes(l.dataset.id)).reduce(
|
|
1740
|
-
(l,
|
|
1740
|
+
(l, u) => Math.max(l, u.getBBox().width),
|
|
1741
1741
|
-1 / 0
|
|
1742
1742
|
);
|
|
1743
1743
|
return {
|
|
@@ -1747,7 +1747,7 @@ function ha(t, e) {
|
|
|
1747
1747
|
bottom: 0
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function ya(t) {
|
|
1751
1751
|
return t.map((e) => {
|
|
1752
1752
|
const r = e.y1 - e.y0 < ve;
|
|
1753
1753
|
return {
|
|
@@ -1764,22 +1764,22 @@ function ga(t) {
|
|
|
1764
1764
|
};
|
|
1765
1765
|
});
|
|
1766
1766
|
}
|
|
1767
|
-
function ya(t) {
|
|
1768
|
-
return [t.source.x1, t.y0];
|
|
1769
|
-
}
|
|
1770
1767
|
function ba(t) {
|
|
1771
|
-
return [t.
|
|
1768
|
+
return [t.source.x1, t.y0];
|
|
1772
1769
|
}
|
|
1773
1770
|
function ka(t) {
|
|
1774
|
-
return t.
|
|
1771
|
+
return [t.target.x0, t.y1];
|
|
1775
1772
|
}
|
|
1776
1773
|
function xa(t) {
|
|
1774
|
+
return t.curveFunction ? Yt(t.curveFunction).source(ba).target(ka) : zt();
|
|
1775
|
+
}
|
|
1776
|
+
function Aa(t) {
|
|
1777
1777
|
return t.map((e) => {
|
|
1778
1778
|
var r;
|
|
1779
1779
|
return {
|
|
1780
1780
|
id: e.id,
|
|
1781
1781
|
color: e.color || ((r = e.source) == null ? void 0 : r.color) || he,
|
|
1782
|
-
d:
|
|
1782
|
+
d: xa(e)(e),
|
|
1783
1783
|
strokeWidth: Math.max(1, e.width),
|
|
1784
1784
|
link: e
|
|
1785
1785
|
};
|
|
@@ -1793,23 +1793,23 @@ function pt(t, e, r, n, a) {
|
|
|
1793
1793
|
};
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
1796
|
-
const o = Date.now(), l =
|
|
1797
|
-
let c = (Date.now() - o) /
|
|
1796
|
+
const o = Date.now(), l = fn(e, r), u = () => {
|
|
1797
|
+
let c = (Date.now() - o) / ma;
|
|
1798
1798
|
c > 1 && (c = 1), t.node = {
|
|
1799
1799
|
...t.node,
|
|
1800
1800
|
transitionValue: a && c === 1 ? void 0 : l(c)
|
|
1801
|
-
}, c < 1 && requestAnimationFrame(
|
|
1801
|
+
}, c < 1 && requestAnimationFrame(u);
|
|
1802
1802
|
};
|
|
1803
|
-
requestAnimationFrame(
|
|
1803
|
+
requestAnimationFrame(u);
|
|
1804
1804
|
}
|
|
1805
|
-
const
|
|
1805
|
+
const Ta = {
|
|
1806
1806
|
nodes: [],
|
|
1807
1807
|
links: []
|
|
1808
1808
|
};
|
|
1809
1809
|
function mt(t, e) {
|
|
1810
1810
|
return e.find((r) => r.every((n) => n.x0 === t.x0));
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function La(t, e, r) {
|
|
1813
1813
|
const n = w(null), a = d(() => {
|
|
1814
1814
|
var s, f;
|
|
1815
1815
|
return (f = (s = t.value) == null ? void 0 : s[0]) == null ? void 0 : f.values.map(
|
|
@@ -1841,7 +1841,7 @@ function Ta(t, e, r) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
).filter(Boolean).flat();
|
|
1843
1843
|
}
|
|
1844
|
-
), l = d(() =>
|
|
1844
|
+
), l = d(() => Wt().nodeId(ie).nodeAlign(e.value.nodeAlign).nodePadding(e.value.nodePadding).nodeSort(e.value.nodeSort).nodeWidth(e.value.nodeWidth).linkSort(e.value.linkSort).iterations(e.value.iterations)), u = d(() => {
|
|
1845
1845
|
var s;
|
|
1846
1846
|
return (s = n.value) == null ? void 0 : s.nodes.reduce(
|
|
1847
1847
|
(f, m) => {
|
|
@@ -1851,8 +1851,8 @@ function Ta(t, e, r) {
|
|
|
1851
1851
|
[]
|
|
1852
1852
|
);
|
|
1853
1853
|
});
|
|
1854
|
-
function
|
|
1855
|
-
const { offset: f } = s, m = mt(s,
|
|
1854
|
+
function i(s) {
|
|
1855
|
+
const { offset: f } = s, m = mt(s, u.value);
|
|
1856
1856
|
if (!m) return;
|
|
1857
1857
|
const _ = m[m.findIndex((y) => y.id === s.id) - 1], h = _ && m.length !== 1 ? _.y1 + f : f;
|
|
1858
1858
|
s._y0 = s.y0, s._y1 = s.y1, s.y0 = h, s.y1 = s.y0 + (s._y1 - s._y0);
|
|
@@ -1868,7 +1868,7 @@ function Ta(t, e, r) {
|
|
|
1868
1868
|
const v = d(() => {
|
|
1869
1869
|
var s;
|
|
1870
1870
|
return n.value && ((s = a.value) == null || s.forEach((f) => {
|
|
1871
|
-
f.value === 0 && (f.fallbackColor = Ye.Grey), typeof f.offset == "number" && (
|
|
1871
|
+
f.value === 0 && (f.fallbackColor = Ye.Grey), typeof f.offset == "number" && (i(f), c(f, n.value));
|
|
1872
1872
|
})), n.value;
|
|
1873
1873
|
});
|
|
1874
1874
|
return H([l, r], () => {
|
|
@@ -1879,9 +1879,9 @@ function Ta(t, e, r) {
|
|
|
1879
1879
|
[m, _]
|
|
1880
1880
|
])({ nodes: a.value, links: o.value });
|
|
1881
1881
|
} catch (s) {
|
|
1882
|
-
je(Te.GraphProblem, s), n.value =
|
|
1882
|
+
je(Te.GraphProblem, s), n.value = Ta;
|
|
1883
1883
|
}
|
|
1884
|
-
}), { columns:
|
|
1884
|
+
}), { columns: u, graph: v };
|
|
1885
1885
|
}
|
|
1886
1886
|
function Ve(t, e) {
|
|
1887
1887
|
return e || (e = {}), t.targetLinks && t.targetLinks.forEach(({ source: r, value: n }) => {
|
|
@@ -1899,12 +1899,12 @@ function Me(t, e) {
|
|
|
1899
1899
|
);
|
|
1900
1900
|
}), e;
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Oa(t, e) {
|
|
1903
1903
|
return e.links.reduce((r, n) => (n.source.id in t && n.target.id in t && r.push(n.id), r), []);
|
|
1904
1904
|
}
|
|
1905
|
-
const
|
|
1905
|
+
const Ia = (t, e) => {
|
|
1906
1906
|
let r;
|
|
1907
|
-
|
|
1907
|
+
Pt(t) ? r = {
|
|
1908
1908
|
[t.id]: t.value,
|
|
1909
1909
|
...Ve(t),
|
|
1910
1910
|
...Me(t)
|
|
@@ -1914,59 +1914,59 @@ const Oa = (t, e) => {
|
|
|
1914
1914
|
...Ve(t.source),
|
|
1915
1915
|
...Me(t.target)
|
|
1916
1916
|
};
|
|
1917
|
-
const n =
|
|
1917
|
+
const n = Oa(r, e);
|
|
1918
1918
|
return { nodes: r, links: n };
|
|
1919
1919
|
}, $a = (t) => {
|
|
1920
|
-
if (
|
|
1920
|
+
if (Pt(t)) {
|
|
1921
1921
|
const e = [...t.sourceLinks, ...t.targetLinks];
|
|
1922
1922
|
return {
|
|
1923
1923
|
nodes: e.reduce(
|
|
1924
|
-
(r, { source: n, target: a, value: o }) => n === t ? { ...r, [
|
|
1925
|
-
{ [
|
|
1924
|
+
(r, { source: n, target: a, value: o }) => n === t ? { ...r, [ie(a)]: o } : { ...r, [ie(n)]: o },
|
|
1925
|
+
{ [ie(t)]: t.value }
|
|
1926
1926
|
),
|
|
1927
1927
|
links: e.map(({ id: r }) => r)
|
|
1928
1928
|
};
|
|
1929
1929
|
}
|
|
1930
1930
|
return {
|
|
1931
1931
|
nodes: {
|
|
1932
|
-
[
|
|
1933
|
-
[
|
|
1932
|
+
[ie(t.target)]: t.value,
|
|
1933
|
+
[ie(t.source)]: t.source.value
|
|
1934
1934
|
},
|
|
1935
1935
|
links: [t.id]
|
|
1936
1936
|
};
|
|
1937
1937
|
};
|
|
1938
|
-
function
|
|
1938
|
+
function wa(t, e, r) {
|
|
1939
1939
|
const n = w(null), a = d(() => n.value ? typeof e.value.highlightedElements == "function" ? e.value.highlightedElements(
|
|
1940
1940
|
n.value,
|
|
1941
1941
|
r.value
|
|
1942
|
-
) : e.value.highlightedElements === "closest" ? $a(n.value, r.value) :
|
|
1942
|
+
) : e.value.highlightedElements === "closest" ? $a(n.value, r.value) : Ia(n.value, r.value) : { nodes: {}, links: [] });
|
|
1943
1943
|
return H(a, (o, l) => {
|
|
1944
1944
|
if (o.links.length === 0 && Object.keys(o.nodes).length === 0) {
|
|
1945
|
-
t.value.forEach((
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
l.nodes[
|
|
1949
|
-
|
|
1945
|
+
t.value.forEach((u) => {
|
|
1946
|
+
u.node.id in l.nodes && pt(
|
|
1947
|
+
u,
|
|
1948
|
+
l.nodes[u.node.id],
|
|
1949
|
+
u.node.value,
|
|
1950
1950
|
e.value.withTransition,
|
|
1951
1951
|
!0
|
|
1952
1952
|
);
|
|
1953
1953
|
});
|
|
1954
1954
|
return;
|
|
1955
1955
|
}
|
|
1956
|
-
t.value.forEach((
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
o.nodes[
|
|
1956
|
+
t.value.forEach((u) => {
|
|
1957
|
+
u.node.id in o.nodes && pt(
|
|
1958
|
+
u,
|
|
1959
|
+
u.node.value,
|
|
1960
|
+
o.nodes[u.node.id],
|
|
1961
1961
|
e.value.withTransition
|
|
1962
1962
|
);
|
|
1963
1963
|
});
|
|
1964
1964
|
}), { highlightedElements: a, hoveredElement: n };
|
|
1965
1965
|
}
|
|
1966
|
-
const
|
|
1966
|
+
const Ea = /* @__PURE__ */ N({
|
|
1967
1967
|
__name: "lume-alluvial-group",
|
|
1968
1968
|
props: {
|
|
1969
|
-
|
|
1969
|
+
...$e(),
|
|
1970
1970
|
hoveredElementId: {
|
|
1971
1971
|
type: [Number, String],
|
|
1972
1972
|
default: null
|
|
@@ -1974,7 +1974,7 @@ const wa = /* @__PURE__ */ N({
|
|
|
1974
1974
|
},
|
|
1975
1975
|
emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
|
|
1976
1976
|
setup(t, { emit: e }) {
|
|
1977
|
-
const r = t, n = Le("chartID"), { data: a, options: o } =
|
|
1977
|
+
const r = t, n = Le("chartID"), { data: a, options: o } = S(r), l = w([]), u = w([]), i = w(null), { extents: c, updateExtents: v } = fa(r.containerSize), { columns: s, graph: f } = La(a, o, c), { hoveredElement: m, highlightedElements: _ } = wa(
|
|
1978
1978
|
l,
|
|
1979
1979
|
o,
|
|
1980
1980
|
f
|
|
@@ -1989,57 +1989,57 @@ const wa = /* @__PURE__ */ N({
|
|
|
1989
1989
|
x: p.value[A]
|
|
1990
1990
|
}));
|
|
1991
1991
|
}), x = d(
|
|
1992
|
-
() => o.value.nodeHeaderPadding ??
|
|
1992
|
+
() => o.value.nodeHeaderPadding ?? Jr
|
|
1993
1993
|
), T = d(() => {
|
|
1994
1994
|
if (!(!o.value.gradient || !f.value))
|
|
1995
1995
|
return f.value.links.reduce((g, A) => {
|
|
1996
|
-
const { source:
|
|
1996
|
+
const { source: O, target: G } = A, Z = O.color || O.fallbackColor, j = G.deriveColorFromIncomingLinks ? Z : G.color || G.fallbackColor;
|
|
1997
1997
|
return g[A.id] = {
|
|
1998
1998
|
source: Z,
|
|
1999
|
-
target:
|
|
2000
|
-
x1:
|
|
2001
|
-
x2:
|
|
1999
|
+
target: j,
|
|
2000
|
+
x1: O.x1,
|
|
2001
|
+
x2: G.x0
|
|
2002
2002
|
}, g;
|
|
2003
2003
|
}, {});
|
|
2004
2004
|
}), I = d(() => {
|
|
2005
2005
|
const g = l.value.filter(
|
|
2006
|
-
(
|
|
2006
|
+
(O) => F(O)
|
|
2007
2007
|
), A = [];
|
|
2008
|
-
return g.forEach((
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2011
|
-
const ge =
|
|
2008
|
+
return g.forEach((O) => {
|
|
2009
|
+
const G = [];
|
|
2010
|
+
u.value.filter(({ link: Z }) => Z.target.id === O.node.id).reverse().reduce((Z, j, tt, ce) => {
|
|
2011
|
+
const ge = j.link.target.y1 - j.link.target.y0 > ve;
|
|
2012
2012
|
let de, ye, le;
|
|
2013
|
-
return ge ? (de =
|
|
2014
|
-
x:
|
|
2015
|
-
y:
|
|
2013
|
+
return ge ? (de = j.link.target.y1 - j.link.target.y0, ye = j.link.value / O.node.value, le = ye * de) : le = ve / ce.length, G.push({
|
|
2014
|
+
x: O.x,
|
|
2015
|
+
y: O.y + Z,
|
|
2016
2016
|
height: le,
|
|
2017
|
-
width:
|
|
2018
|
-
key: `node-block-${
|
|
2019
|
-
class: `lume-alluvial-group__node-block lume-fill--${
|
|
2017
|
+
width: O.width,
|
|
2018
|
+
key: `node-block-${O.node.id}-source-link-${j.link.source.id}`,
|
|
2019
|
+
class: `lume-alluvial-group__node-block lume-fill--${j.link.source.color || he}`
|
|
2020
2020
|
}), Z + le;
|
|
2021
2021
|
}, 0), A.push({
|
|
2022
|
-
id:
|
|
2023
|
-
subNodes:
|
|
2022
|
+
id: O.node.id,
|
|
2023
|
+
subNodes: G
|
|
2024
2024
|
});
|
|
2025
2025
|
}), A;
|
|
2026
2026
|
});
|
|
2027
|
-
function
|
|
2027
|
+
function R(g) {
|
|
2028
2028
|
return o.value.gradient && `url('#${n}_${g.id}')`;
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function $(g) {
|
|
2031
2031
|
return y.value.length > 0 && !y.value.includes(g.toString());
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function D(g) {
|
|
2034
2034
|
return y.value.length > 0 && y.value.includes(g.toString());
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function B(g) {
|
|
2037
2037
|
return _.value.links.length > 0 && !_.value.links.includes(g);
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function C(g) {
|
|
2040
2040
|
return _.value.links.length > 0 && _.value.links.includes(g);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function F(g) {
|
|
2043
2043
|
return !g.node.color && g.node.deriveColorFromIncomingLinks;
|
|
2044
2044
|
}
|
|
2045
2045
|
function J(g, A) {
|
|
@@ -2054,7 +2054,7 @@ const wa = /* @__PURE__ */ N({
|
|
|
2054
2054
|
m.value = null;
|
|
2055
2055
|
return;
|
|
2056
2056
|
}
|
|
2057
|
-
const A =
|
|
2057
|
+
const A = _a(g, f.value) || ha(g, f.value);
|
|
2058
2058
|
if (!A) {
|
|
2059
2059
|
q(X.InvalidHoveredElement);
|
|
2060
2060
|
return;
|
|
@@ -2063,20 +2063,20 @@ const wa = /* @__PURE__ */ N({
|
|
|
2063
2063
|
}
|
|
2064
2064
|
function te(g) {
|
|
2065
2065
|
var A;
|
|
2066
|
-
return ((A = I.value.find(({ id:
|
|
2066
|
+
return ((A = I.value.find(({ id: O }) => g === O)) == null ? void 0 : A.subNodes) ?? [];
|
|
2067
2067
|
}
|
|
2068
2068
|
function Q() {
|
|
2069
|
-
const g =
|
|
2069
|
+
const g = ga(f.value, i.value);
|
|
2070
2070
|
v(g);
|
|
2071
2071
|
}
|
|
2072
2072
|
return H(f, (g) => {
|
|
2073
|
-
l.value =
|
|
2074
|
-
}), H([r.containerSize,
|
|
2073
|
+
l.value = ya(g.nodes), u.value = Aa(g.links).reverse(), m.value == null && r.hoveredElementId != null && W(r.hoveredElementId);
|
|
2074
|
+
}), H([r.containerSize, i], () => {
|
|
2075
2075
|
r.containerSize.width && r.containerSize.height && Q();
|
|
2076
|
-
}), H(() => r.hoveredElementId, W), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths:
|
|
2076
|
+
}), H(() => r.hoveredElementId, W), { __sfc: !0, props: r, emit: e, chartID: n, data: a, options: o, nodeBlocks: l, linkPaths: u, nodeTextRefs: i, extents: c, updateExtents: v, columns: s, graph: f, hoveredElement: m, highlightedElements: _, formatValue: h, hoveredNodeIds: y, nodeColumnPositions: p, nodeHeaders: k, computedNodeHeaderPadding: x, gradients: T, nodesDerivingColorFromIncomingLinks: I, getLinkStroke: R, isNodeFaded: $, isNodeFocused: D, isLinkFaded: B, isLinkFocused: C, shouldDeriveNodeColorFromIncomingLinks: F, handleLinkMouseover: J, handleLinkMouseleave: oe, handleExternalHover: W, getSubNodesDerivingColorFromIncomingLinks: te, updateMargins: Q, LumeAlluvialNodeLabel: na, LumeAlluvialNodeValue: ia, LumeAlluvialNodeHeader: va, GHOST_STROKE_WIDTH_OFFSET: Kr };
|
|
2077
2077
|
}
|
|
2078
2078
|
});
|
|
2079
|
-
var
|
|
2079
|
+
var Na = function() {
|
|
2080
2080
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2081
2081
|
return r("g", { staticClass: "lume-alluvial-group", attrs: { "data-j-alluvial-group": "" } }, [n.nodeHeaders ? r("g", [e._l(n.nodeHeaders, function(a, o) {
|
|
2082
2082
|
return [e._t(`node-header-${o}`, function() {
|
|
@@ -2130,15 +2130,15 @@ var Ea = function() {
|
|
|
2130
2130
|
a.node.value
|
|
2131
2131
|
) })], 2)], 2)]);
|
|
2132
2132
|
})], 2);
|
|
2133
|
-
},
|
|
2134
|
-
wa,
|
|
2133
|
+
}, Ha = [], Da = /* @__PURE__ */ E(
|
|
2135
2134
|
Ea,
|
|
2136
2135
|
Na,
|
|
2136
|
+
Ha,
|
|
2137
2137
|
!1,
|
|
2138
2138
|
null,
|
|
2139
2139
|
"2a790ee0"
|
|
2140
2140
|
);
|
|
2141
|
-
const
|
|
2141
|
+
const Ra = Da.exports, Pa = {
|
|
2142
2142
|
margins: {
|
|
2143
2143
|
top: 0,
|
|
2144
2144
|
right: 0,
|
|
@@ -2154,32 +2154,32 @@ const Da = Ha.exports, Ra = {
|
|
|
2154
2154
|
highlightedElements: "closest",
|
|
2155
2155
|
nodePadding: 16,
|
|
2156
2156
|
nodeWidth: 16,
|
|
2157
|
-
nodeAlign:
|
|
2157
|
+
nodeAlign: Zt,
|
|
2158
2158
|
valueFormat: (t) => String(t),
|
|
2159
2159
|
iterations: 6
|
|
2160
2160
|
}, Sa = /* @__PURE__ */ N({
|
|
2161
2161
|
__name: "lume-alluvial-diagram",
|
|
2162
2162
|
props: {
|
|
2163
|
-
...
|
|
2163
|
+
...Qn(We)
|
|
2164
2164
|
},
|
|
2165
2165
|
setup(t, { emit: e }) {
|
|
2166
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), o =
|
|
2167
|
-
function
|
|
2166
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), o = mn(M()), { options: l } = S(r), { allOptions: u } = Y(l, Pa);
|
|
2167
|
+
function i(c) {
|
|
2168
2168
|
return {
|
|
2169
2169
|
...c,
|
|
2170
2170
|
noBaseScales: !0
|
|
2171
2171
|
// Alluvial chart never uses base scales
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, groupSlots: o, options: l, allOptions:
|
|
2174
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, groupSlots: o, options: l, allOptions: u, getAlluvialDiagramOptions: i, LumeChart: se, LumeAlluvialGroup: Ra };
|
|
2175
2175
|
}
|
|
2176
2176
|
});
|
|
2177
|
-
var
|
|
2177
|
+
var Ba = function() {
|
|
2178
2178
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2179
2179
|
return r(n.LumeChart, e._g(e._b({ attrs: { options: n.getAlluvialDiagramOptions(n.allOptions), "data-j-alluvial-diagram": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2180
2180
|
return [r(n.LumeAlluvialGroup, e._g(e._b({ attrs: { "hovered-element-id": e.hoveredElement }, scopedSlots: e._u([e._l(n.groupSlots, function(o, l) {
|
|
2181
|
-
return { key: l, fn: function(
|
|
2182
|
-
return [e._t(l, null, null,
|
|
2181
|
+
return { key: l, fn: function(u) {
|
|
2182
|
+
return [e._t(l, null, null, u || {})];
|
|
2183
2183
|
} };
|
|
2184
2184
|
})], null, !0) }, "lume-alluvial-group", a, !1), n.componentEventPropagator))];
|
|
2185
2185
|
} }, e._l(n.slots, function(a, o) {
|
|
@@ -2187,20 +2187,20 @@ var Pa = function() {
|
|
|
2187
2187
|
return [e._t(o, null, null, l || {})];
|
|
2188
2188
|
} };
|
|
2189
2189
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2190
|
-
},
|
|
2190
|
+
}, Ca = [], Ga = /* @__PURE__ */ E(
|
|
2191
2191
|
Sa,
|
|
2192
|
-
Pa,
|
|
2193
2192
|
Ba,
|
|
2193
|
+
Ca,
|
|
2194
2194
|
!1,
|
|
2195
2195
|
null,
|
|
2196
2196
|
null
|
|
2197
2197
|
);
|
|
2198
|
-
const
|
|
2198
|
+
const qo = Ga.exports;
|
|
2199
2199
|
var ze = /* @__PURE__ */ ((t) => (t.grouped = "grouped", t.stacked = "stacked", t))(ze || {});
|
|
2200
|
-
const
|
|
2200
|
+
const Fa = /* @__PURE__ */ N({
|
|
2201
2201
|
__name: "lume-bar-chart",
|
|
2202
2202
|
props: {
|
|
2203
|
-
...
|
|
2203
|
+
...ue(),
|
|
2204
2204
|
type: {
|
|
2205
2205
|
type: String,
|
|
2206
2206
|
default: null,
|
|
@@ -2209,16 +2209,16 @@ const Ga = /* @__PURE__ */ N({
|
|
|
2209
2209
|
},
|
|
2210
2210
|
setup(t, { emit: e }) {
|
|
2211
2211
|
const r = t, n = Ne(
|
|
2212
|
-
() => import("./
|
|
2212
|
+
() => import("./DmfABIXc.js")
|
|
2213
2213
|
), a = Ne(
|
|
2214
|
-
() => import("./
|
|
2214
|
+
() => import("./B8Yzpn9z.js")
|
|
2215
2215
|
), o = Ne(
|
|
2216
|
-
() => import("./
|
|
2216
|
+
() => import("./Lrbt_T-f.js")
|
|
2217
2217
|
), l = /* @__PURE__ */ new Map([
|
|
2218
2218
|
["single", n],
|
|
2219
2219
|
["grouped", a],
|
|
2220
2220
|
["stacked", o]
|
|
2221
|
-
]), { componentEventPropagator:
|
|
2221
|
+
]), { componentEventPropagator: u } = K(e), i = ae(M());
|
|
2222
2222
|
function c(s) {
|
|
2223
2223
|
return {
|
|
2224
2224
|
...s,
|
|
@@ -2226,7 +2226,7 @@ const Ga = /* @__PURE__ */ N({
|
|
|
2226
2226
|
// Bar chart always starts on zero,
|
|
2227
2227
|
tooltipOptions: {
|
|
2228
2228
|
...(s == null ? void 0 : s.tooltipOptions) || {},
|
|
2229
|
-
position: r.orientation ===
|
|
2229
|
+
position: r.orientation === L.HORIZONTAL ? "right" : void 0
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
2232
|
}
|
|
@@ -2236,42 +2236,42 @@ const Ga = /* @__PURE__ */ N({
|
|
|
2236
2236
|
throw new Error("Bar chart needs a type when there's multiple datasets.");
|
|
2237
2237
|
return l.get(r.type);
|
|
2238
2238
|
});
|
|
2239
|
-
return { __sfc: !0, TYPES: ze, LumeSingleBarChart: n, LumeGroupedBarChart: a, LumeStackedBarChart: o, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator:
|
|
2239
|
+
return { __sfc: !0, TYPES: ze, LumeSingleBarChart: n, LumeGroupedBarChart: a, LumeStackedBarChart: o, COMPONENT_MAP: l, props: r, emit: e, componentEventPropagator: u, slots: i, getBarChartOptions: c, component: v };
|
|
2240
2240
|
}
|
|
2241
2241
|
});
|
|
2242
|
-
var
|
|
2242
|
+
var ja = function() {
|
|
2243
2243
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2244
2244
|
return r(n.component, e._g(e._b({ tag: "component", attrs: { options: n.getBarChartOptions(e.options) }, scopedSlots: e._u([e._l(n.slots, function(a, o) {
|
|
2245
2245
|
return { key: o, fn: function(l) {
|
|
2246
2246
|
return [e._t(o, null, null, l || {})];
|
|
2247
2247
|
} };
|
|
2248
2248
|
})], null, !0) }, "component", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2249
|
-
},
|
|
2250
|
-
Ga,
|
|
2249
|
+
}, Va = [], Ma = /* @__PURE__ */ E(
|
|
2251
2250
|
Fa,
|
|
2252
2251
|
ja,
|
|
2252
|
+
Va,
|
|
2253
2253
|
!1,
|
|
2254
2254
|
null,
|
|
2255
2255
|
null
|
|
2256
2256
|
);
|
|
2257
|
-
const
|
|
2258
|
-
function Ma(t) {
|
|
2259
|
-
return Object.values(gn).includes(t) || t == null;
|
|
2260
|
-
}
|
|
2257
|
+
const el = Ma.exports;
|
|
2261
2258
|
function za(t) {
|
|
2262
|
-
return Object.values(
|
|
2259
|
+
return Object.values(yn).includes(t) || t == null;
|
|
2260
|
+
}
|
|
2261
|
+
function Wa(t) {
|
|
2262
|
+
return Object.values(L).includes(t);
|
|
2263
2263
|
}
|
|
2264
|
-
const
|
|
2264
|
+
const Za = (t = !1) => ({
|
|
2265
2265
|
type: {
|
|
2266
2266
|
type: String,
|
|
2267
2267
|
default: null,
|
|
2268
|
-
validator:
|
|
2268
|
+
validator: za
|
|
2269
2269
|
},
|
|
2270
2270
|
...t ? {
|
|
2271
2271
|
orientation: {
|
|
2272
2272
|
type: String,
|
|
2273
|
-
default:
|
|
2274
|
-
validator:
|
|
2273
|
+
default: L.VERTICAL,
|
|
2274
|
+
validator: Wa
|
|
2275
2275
|
}
|
|
2276
2276
|
} : {}
|
|
2277
2277
|
});
|
|
@@ -2290,48 +2290,48 @@ function St(t, e) {
|
|
|
2290
2290
|
};
|
|
2291
2291
|
})), n = d(() => {
|
|
2292
2292
|
var a;
|
|
2293
|
-
return (a = r.value) == null ? void 0 : a.reduce((o, l) => (l.values.forEach((
|
|
2294
|
-
o[
|
|
2293
|
+
return (a = r.value) == null ? void 0 : a.reduce((o, l) => (l.values.forEach((u, i) => {
|
|
2294
|
+
o[i] ? o[i].push(u) : o[i] = [u];
|
|
2295
2295
|
}), o), []);
|
|
2296
2296
|
});
|
|
2297
2297
|
return { multiBarData: r, groupedData: n };
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function Ua(t, e) {
|
|
2300
2300
|
return t.value.length === 1 ? "single" : e.value;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function Xa(t, e, r) {
|
|
2303
2303
|
const n = d(
|
|
2304
|
-
() => r.value ===
|
|
2304
|
+
() => r.value === L.HORIZONTAL
|
|
2305
2305
|
);
|
|
2306
|
-
function a(
|
|
2307
|
-
|
|
2306
|
+
function a(u) {
|
|
2307
|
+
u || je(Te.BarScaleNull), Math.min(...u.domain()) > 0 && je(Te.BarScaleDomainAbove0);
|
|
2308
2308
|
}
|
|
2309
2309
|
const o = d(() => n.value ? (a(t.value), t.value) : t.value), l = d(() => n.value ? e.value : (a(e.value), e.value));
|
|
2310
2310
|
return { barXScale: o, barYScale: l };
|
|
2311
2311
|
}
|
|
2312
|
-
const
|
|
2312
|
+
const Ya = {
|
|
2313
2313
|
x: 0,
|
|
2314
2314
|
y: 0,
|
|
2315
2315
|
width: 0,
|
|
2316
2316
|
height: 0
|
|
2317
2317
|
};
|
|
2318
|
-
function
|
|
2318
|
+
function Ka(t, e, r, n, a, o) {
|
|
2319
2319
|
const l = d(
|
|
2320
|
-
() => n.value ===
|
|
2320
|
+
() => n.value === L.HORIZONTAL
|
|
2321
2321
|
);
|
|
2322
|
-
function
|
|
2322
|
+
function u(s, f) {
|
|
2323
2323
|
let m, _;
|
|
2324
2324
|
return l.value ? (m = s >= 0 ? e.value(0) : e.value(s), _ = r.value(r.value.domain()[f])) : (m = e.value(e.value.domain()[f]), _ = s < 0 ? r.value(0) : r.value(s)), { x: m, y: _ };
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function i(s) {
|
|
2327
2327
|
return l.value ? s < 0 ? e.value(0) - e.value(s) : e.value(s) - e.value(0) : e.value.bandwidth();
|
|
2328
2328
|
}
|
|
2329
2329
|
function c(s) {
|
|
2330
2330
|
return l.value ? r.value.bandwidth() : s < 0 ? r.value(s) - r.value(0) : r.value(0) - r.value(s);
|
|
2331
2331
|
}
|
|
2332
2332
|
function v(s, f, m) {
|
|
2333
|
-
if (!(e.value && r.value)) return
|
|
2334
|
-
const { value: h, color: y } = s, p = y ?? t.value[f].color ?? he, { x: k, y: x } =
|
|
2333
|
+
if (!(e.value && r.value)) return Ya;
|
|
2334
|
+
const { value: h, color: y } = s, p = y ?? t.value[f].color ?? he, { x: k, y: x } = u(h, m), T = i(h), I = c(h);
|
|
2335
2335
|
return {
|
|
2336
2336
|
classList: [`lume-fill--${p}`, ...o],
|
|
2337
2337
|
x: k,
|
|
@@ -2344,68 +2344,68 @@ function Ya(t, e, r, n, a, o) {
|
|
|
2344
2344
|
}
|
|
2345
2345
|
return { barAttributeGenerator: v };
|
|
2346
2346
|
}
|
|
2347
|
-
const
|
|
2347
|
+
const Ja = {
|
|
2348
2348
|
x: 0,
|
|
2349
2349
|
y: 0,
|
|
2350
2350
|
width: 0,
|
|
2351
2351
|
height: 0
|
|
2352
2352
|
};
|
|
2353
|
-
function
|
|
2353
|
+
function Qa(t, e, r, n, a, o) {
|
|
2354
2354
|
const l = d(
|
|
2355
|
-
() => n.value ===
|
|
2356
|
-
),
|
|
2355
|
+
() => n.value === L.HORIZONTAL
|
|
2356
|
+
), u = d(() => pe().domain(t.value.map((_, h) => h)).range([0, e.value.bandwidth()]).padding(0)), i = d(() => pe().domain(t.value.map((_, h) => h)).range([0, r.value.bandwidth()]).padding(0));
|
|
2357
2357
|
function c(_, h, y) {
|
|
2358
2358
|
if (l.value)
|
|
2359
2359
|
return _ >= 0 ? e.value(0) : e.value(_);
|
|
2360
2360
|
const p = e.value.domain();
|
|
2361
|
-
return e.value(p[h]) +
|
|
2361
|
+
return e.value(p[h]) + u.value(y);
|
|
2362
2362
|
}
|
|
2363
2363
|
function v(_, h, y) {
|
|
2364
2364
|
if (l.value) {
|
|
2365
2365
|
const p = r.value.domain();
|
|
2366
|
-
return r.value(p[h]) +
|
|
2366
|
+
return r.value(p[h]) + i.value(y);
|
|
2367
2367
|
}
|
|
2368
2368
|
return _ < 0 ? r.value(0) : r.value(_);
|
|
2369
2369
|
}
|
|
2370
2370
|
function s(_) {
|
|
2371
|
-
return l.value ? _ < 0 ? e.value(0) - e.value(_) : e.value(_) - e.value(0) :
|
|
2371
|
+
return l.value ? _ < 0 ? e.value(0) - e.value(_) : e.value(_) - e.value(0) : u.value.bandwidth();
|
|
2372
2372
|
}
|
|
2373
2373
|
function f(_) {
|
|
2374
|
-
return l.value ?
|
|
2374
|
+
return l.value ? i.value.bandwidth() : _ < 0 ? r.value(_) - r.value(0) : r.value(0) - r.value(_);
|
|
2375
2375
|
}
|
|
2376
2376
|
function m(_, h, y) {
|
|
2377
|
-
if (!(e.value && r.value)) return
|
|
2378
|
-
const { value: k, color: x } = _, T = x ?? t.value[h].color ?? Object.values(z)[h], I = c(k, y, h),
|
|
2377
|
+
if (!(e.value && r.value)) return Ja;
|
|
2378
|
+
const { value: k, color: x } = _, T = x ?? t.value[h].color ?? Object.values(z)[h], I = c(k, y, h), R = v(k, y, h), $ = s(k), D = f(k);
|
|
2379
2379
|
return {
|
|
2380
2380
|
classList: [`lume-fill--${T}`, ...o],
|
|
2381
2381
|
x: I,
|
|
2382
|
-
y:
|
|
2383
|
-
width:
|
|
2384
|
-
height:
|
|
2382
|
+
y: R,
|
|
2383
|
+
width: $,
|
|
2384
|
+
height: D,
|
|
2385
2385
|
isFaded: a.value !== -1 && a.value !== y,
|
|
2386
2386
|
isNegative: k < 0
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
2389
|
return { barAttributeGenerator: m };
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function qa(t, e, r) {
|
|
2392
2392
|
const n = d(
|
|
2393
|
-
() => e.value ===
|
|
2393
|
+
() => e.value === L.HORIZONTAL
|
|
2394
2394
|
), a = d(() => {
|
|
2395
|
-
const
|
|
2395
|
+
const i = t.value.map(
|
|
2396
2396
|
(c) => c.filter((v) => v.value < 0).reduce((v, s) => v + s.value, 0)
|
|
2397
2397
|
);
|
|
2398
|
-
return Math.min(...
|
|
2398
|
+
return Math.min(...i);
|
|
2399
2399
|
}), o = d(() => {
|
|
2400
|
-
const
|
|
2400
|
+
const i = t.value.map(
|
|
2401
2401
|
(c) => c.reduce(
|
|
2402
2402
|
(v, s) => s.value >= 0 ? v + s.value : v,
|
|
2403
2403
|
0
|
|
2404
2404
|
)
|
|
2405
2405
|
);
|
|
2406
|
-
return Math.max(...
|
|
2406
|
+
return Math.max(...i);
|
|
2407
2407
|
});
|
|
2408
|
-
function l(
|
|
2408
|
+
function l(i, c, v) {
|
|
2409
2409
|
return c.length ? n.value ? fe().domain([a.value, o.value]).range([0, v.width]) : Object.assign(
|
|
2410
2410
|
st(
|
|
2411
2411
|
pe().domain(c.map((s, f) => f)).range([0, v.width]),
|
|
@@ -2415,7 +2415,7 @@ function Qa(t, e, r) {
|
|
|
2415
2415
|
{ labels: c }
|
|
2416
2416
|
) : null;
|
|
2417
2417
|
}
|
|
2418
|
-
function i
|
|
2418
|
+
function u(i, c, v) {
|
|
2419
2419
|
return c.length ? n.value ? Object.assign(
|
|
2420
2420
|
st(
|
|
2421
2421
|
pe().domain(c.map((s, f) => f)).range([0, v.height]),
|
|
@@ -2425,19 +2425,19 @@ function Qa(t, e, r) {
|
|
|
2425
2425
|
{ labels: c }
|
|
2426
2426
|
) : fe().domain([o.value, a.value]).range([0, v.height]) : null;
|
|
2427
2427
|
}
|
|
2428
|
-
return { stackedXScaleGenerator: l, stackedYScaleGenerator:
|
|
2428
|
+
return { stackedXScaleGenerator: l, stackedYScaleGenerator: u };
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2430
|
+
function eo(t, e, r, n, a, o) {
|
|
2431
2431
|
const l = d(
|
|
2432
|
-
() => n.value ===
|
|
2433
|
-
), i = d(
|
|
2434
|
-
() => l.value ? r.value.domain() : e.value.domain()
|
|
2432
|
+
() => n.value === L.HORIZONTAL
|
|
2435
2433
|
), u = d(
|
|
2434
|
+
() => l.value ? r.value.domain() : e.value.domain()
|
|
2435
|
+
), i = d(
|
|
2436
2436
|
() => t.value.map((p) => p.values.map((k) => k == null ? void 0 : k.value))
|
|
2437
2437
|
);
|
|
2438
2438
|
function c(p, k, x) {
|
|
2439
2439
|
let T, I;
|
|
2440
|
-
return l.value ? (T = e.value(p >= 0 ? 0 + x : p + x), I = r.value(
|
|
2440
|
+
return l.value ? (T = e.value(p >= 0 ? 0 + x : p + x), I = r.value(u.value[k])) : (T = e.value(u.value[k]), I = r.value(p >= 0 ? p + x : 0 + x)), { x: T, y: I };
|
|
2441
2441
|
}
|
|
2442
2442
|
function v(p) {
|
|
2443
2443
|
return l.value ? e.value(p) - e.value(0) : e.value.bandwidth();
|
|
@@ -2452,19 +2452,19 @@ function qa(t, e, r, n, a, o) {
|
|
|
2452
2452
|
return l.value ? r.value.bandwidth() : r.value(p) - r.value(0);
|
|
2453
2453
|
}
|
|
2454
2454
|
function _(p, k) {
|
|
2455
|
-
return p ?
|
|
2455
|
+
return p ? i.value.reduce((x, T, I) => (I < p && T[k] >= 0 && (x += T[k]), x), 0) : 0;
|
|
2456
2456
|
}
|
|
2457
2457
|
function h(p, k) {
|
|
2458
|
-
return p ?
|
|
2458
|
+
return p ? i.value.reduce((x, T, I) => (I < p && T[k] < 0 && (x += T[k]), x), 0) : 0;
|
|
2459
2459
|
}
|
|
2460
2460
|
function y(p, k, x) {
|
|
2461
|
-
const { value: T, color: I } = p,
|
|
2461
|
+
const { value: T, color: I } = p, R = T >= 0 ? v(T) : s(T), $ = T >= 0 ? f(T) : m(T), D = T >= 0 ? _(k, x) : h(k, x), { x: B, y: C } = c(T, x, D);
|
|
2462
2462
|
return {
|
|
2463
2463
|
classList: [`lume-fill--${I ?? t.value[k].color ?? Object.values(z)[k]}`, ...o],
|
|
2464
|
-
width:
|
|
2465
|
-
height:
|
|
2466
|
-
x:
|
|
2467
|
-
y:
|
|
2464
|
+
width: R,
|
|
2465
|
+
height: $,
|
|
2466
|
+
x: B,
|
|
2467
|
+
y: C,
|
|
2468
2468
|
isFaded: a.value !== -1 && a.value !== x,
|
|
2469
2469
|
isNegative: T < 0
|
|
2470
2470
|
};
|
|
@@ -2472,18 +2472,18 @@ function qa(t, e, r, n, a, o) {
|
|
|
2472
2472
|
return { barAttributeGenerator: y };
|
|
2473
2473
|
}
|
|
2474
2474
|
const _t = {
|
|
2475
|
-
single:
|
|
2476
|
-
grouped:
|
|
2477
|
-
stacked:
|
|
2478
|
-
},
|
|
2475
|
+
single: Ka,
|
|
2476
|
+
grouped: Qa,
|
|
2477
|
+
stacked: eo
|
|
2478
|
+
}, to = /* @__PURE__ */ N({
|
|
2479
2479
|
__name: "lume-bar-group",
|
|
2480
2480
|
props: {
|
|
2481
|
-
|
|
2481
|
+
...$e(),
|
|
2482
2482
|
classList: {
|
|
2483
2483
|
type: [String, Array],
|
|
2484
2484
|
default: () => []
|
|
2485
2485
|
},
|
|
2486
|
-
...
|
|
2486
|
+
...Za(!0),
|
|
2487
2487
|
transition: {
|
|
2488
2488
|
type: Boolean,
|
|
2489
2489
|
default: !0
|
|
@@ -2496,13 +2496,13 @@ const _t = {
|
|
|
2496
2496
|
hoveredIndex: a,
|
|
2497
2497
|
orientation: o,
|
|
2498
2498
|
transition: l,
|
|
2499
|
-
type:
|
|
2500
|
-
xScale:
|
|
2499
|
+
type: u,
|
|
2500
|
+
xScale: i,
|
|
2501
2501
|
yScale: c,
|
|
2502
2502
|
classList: v,
|
|
2503
2503
|
labels: s
|
|
2504
|
-
} =
|
|
2505
|
-
const I =
|
|
2504
|
+
} = S(r), f = Le("chartID"), { emitInternalEvent: m } = K(e, f), { groupedData: _ } = St(n, s), { barXScale: h, barYScale: y } = Xa(i, c, o), p = d(() => typeof v.value == "string" ? [v.value] : v.value), k = d(() => {
|
|
2505
|
+
const I = Ua(n, u), { barAttributeGenerator: R } = _t[I](
|
|
2506
2506
|
n,
|
|
2507
2507
|
h,
|
|
2508
2508
|
y,
|
|
@@ -2510,67 +2510,67 @@ const _t = {
|
|
|
2510
2510
|
a,
|
|
2511
2511
|
p.value
|
|
2512
2512
|
);
|
|
2513
|
-
return
|
|
2513
|
+
return R;
|
|
2514
2514
|
}), x = d(() => {
|
|
2515
2515
|
if (l.value)
|
|
2516
|
-
return o.value ===
|
|
2516
|
+
return o.value === L.HORIZONTAL ? "width" : "height";
|
|
2517
2517
|
});
|
|
2518
2518
|
async function T(I) {
|
|
2519
2519
|
e("lume__internal--hover", I), m("lume__internal--hover", I);
|
|
2520
2520
|
}
|
|
2521
|
-
return { __sfc: !0, MIXIN_MAP: _t, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type:
|
|
2521
|
+
return { __sfc: !0, MIXIN_MAP: _t, props: r, emit: e, data: n, hoveredIndex: a, orientation: o, transition: l, type: u, xScale: i, yScale: c, classList: v, labels: s, chartID: f, emitInternalEvent: m, groupedData: _, barXScale: h, barYScale: y, computedClasses: p, getBarAttributes: k, computedTransition: x, handleInternalHover: T, LumeBar: Ue };
|
|
2522
2522
|
}
|
|
2523
2523
|
});
|
|
2524
|
-
var
|
|
2524
|
+
var no = function() {
|
|
2525
2525
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2526
2526
|
return r("g", { staticClass: "lume-bar-group", attrs: { "data-j-bars-group": "" } }, e._l(n.groupedData, function(a, o) {
|
|
2527
2527
|
return r("g", { key: o, on: { mouseenter: function(l) {
|
|
2528
2528
|
return n.handleInternalHover(o);
|
|
2529
|
-
} } }, e._l(a, function(l,
|
|
2530
|
-
return r(n.LumeBar, e._b({ key: `bar-${
|
|
2529
|
+
} } }, e._l(a, function(l, u) {
|
|
2530
|
+
return r(n.LumeBar, e._b({ key: `bar-${u}`, attrs: { transition: n.computedTransition, "data-j-lume-bar": "" }, on: { click: function(i) {
|
|
2531
2531
|
return n.emit("bar-click", {
|
|
2532
2532
|
index: o,
|
|
2533
|
-
datasetIndex:
|
|
2534
|
-
event:
|
|
2533
|
+
datasetIndex: u,
|
|
2534
|
+
event: i
|
|
2535
2535
|
});
|
|
2536
|
-
} } }, "lume-bar", n.getBarAttributes(l,
|
|
2536
|
+
} } }, "lume-bar", n.getBarAttributes(l, u, o, a), !1));
|
|
2537
2537
|
}), 1);
|
|
2538
2538
|
}), 0);
|
|
2539
|
-
},
|
|
2540
|
-
eo,
|
|
2539
|
+
}, ro = [], ao = /* @__PURE__ */ E(
|
|
2541
2540
|
to,
|
|
2542
2541
|
no,
|
|
2542
|
+
ro,
|
|
2543
2543
|
!1,
|
|
2544
2544
|
null,
|
|
2545
2545
|
null
|
|
2546
2546
|
);
|
|
2547
|
-
const et =
|
|
2548
|
-
[
|
|
2547
|
+
const et = ao.exports, oo = {
|
|
2548
|
+
[L.VERTICAL]: {
|
|
2549
2549
|
withTooltip: !0,
|
|
2550
2550
|
xAxisOptions: {},
|
|
2551
2551
|
yAxisOptions: { gridLines: !0 },
|
|
2552
2552
|
margins: re.VERTICAL
|
|
2553
2553
|
},
|
|
2554
|
-
[
|
|
2554
|
+
[L.HORIZONTAL]: {
|
|
2555
2555
|
withTooltip: !0,
|
|
2556
2556
|
xAxisOptions: { gridLines: !0 },
|
|
2557
2557
|
yAxisOptions: { gridLines: !1 },
|
|
2558
2558
|
margins: re.HORIZONTAL
|
|
2559
2559
|
}
|
|
2560
|
-
},
|
|
2560
|
+
}, lo = /* @__PURE__ */ N({
|
|
2561
2561
|
__name: "lume-single-bar-chart",
|
|
2562
2562
|
props: {
|
|
2563
|
-
...
|
|
2563
|
+
...ue(We)
|
|
2564
2564
|
},
|
|
2565
2565
|
setup(t, { emit: e }) {
|
|
2566
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } =
|
|
2567
|
-
() =>
|
|
2566
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = S(r), u = d(
|
|
2567
|
+
() => oo[o.value || L.VERTICAL]
|
|
2568
2568
|
// needs to be computed so that default options are reactive
|
|
2569
|
-
), { allOptions:
|
|
2570
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions:
|
|
2569
|
+
), { allOptions: i } = Y(l, u);
|
|
2570
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: u, allOptions: i, LumeChart: se, LumeBarGroup: et };
|
|
2571
2571
|
}
|
|
2572
2572
|
});
|
|
2573
|
-
var
|
|
2573
|
+
var io = function() {
|
|
2574
2574
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2575
2575
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "single-bar", options: n.allOptions, "data-j-single-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2576
2576
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { orientation: n.orientation } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2579,45 +2579,45 @@ var lo = function() {
|
|
|
2579
2579
|
return [e._t(o, null, null, l || {})];
|
|
2580
2580
|
} };
|
|
2581
2581
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2582
|
-
}, uo = [],
|
|
2583
|
-
oo,
|
|
2582
|
+
}, uo = [], so = /* @__PURE__ */ E(
|
|
2584
2583
|
lo,
|
|
2584
|
+
io,
|
|
2585
2585
|
uo,
|
|
2586
2586
|
!1,
|
|
2587
2587
|
null,
|
|
2588
2588
|
null
|
|
2589
2589
|
);
|
|
2590
|
-
const
|
|
2591
|
-
[
|
|
2590
|
+
const tl = so.exports, co = {
|
|
2591
|
+
[L.VERTICAL]: {
|
|
2592
2592
|
withTooltip: !0,
|
|
2593
2593
|
xAxisOptions: {},
|
|
2594
2594
|
yAxisOptions: { gridLines: !0 },
|
|
2595
2595
|
margins: re.VERTICAL
|
|
2596
2596
|
},
|
|
2597
|
-
[
|
|
2597
|
+
[L.HORIZONTAL]: {
|
|
2598
2598
|
withTooltip: !0,
|
|
2599
2599
|
xAxisOptions: { gridLines: !0 },
|
|
2600
2600
|
yAxisOptions: { gridLines: !1 },
|
|
2601
2601
|
margins: re.HORIZONTAL,
|
|
2602
2602
|
tooltipOptions: { position: "right" }
|
|
2603
2603
|
}
|
|
2604
|
-
},
|
|
2604
|
+
}, vo = /* @__PURE__ */ N({
|
|
2605
2605
|
__name: "lume-grouped-bar-chart",
|
|
2606
2606
|
props: {
|
|
2607
|
-
...
|
|
2607
|
+
...ue()
|
|
2608
2608
|
},
|
|
2609
2609
|
setup(t, { emit: e }) {
|
|
2610
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } =
|
|
2611
|
-
() =>
|
|
2610
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { orientation: o, options: l } = S(r), u = d(
|
|
2611
|
+
() => co[o.value || L.VERTICAL]
|
|
2612
2612
|
// needs to be computed so that default options are reactive
|
|
2613
|
-
), { allOptions:
|
|
2613
|
+
), { allOptions: i } = Y(
|
|
2614
2614
|
l,
|
|
2615
|
-
|
|
2615
|
+
u
|
|
2616
2616
|
);
|
|
2617
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions:
|
|
2617
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, orientation: o, options: l, baseOptions: u, allOptions: i, LumeChart: se, LumeBarGroup: et };
|
|
2618
2618
|
}
|
|
2619
2619
|
});
|
|
2620
|
-
var
|
|
2620
|
+
var fo = function() {
|
|
2621
2621
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2622
2622
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "grouped-bar", options: n.allOptions, "data-j-grouped-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2623
2623
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "grouped" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2626,50 +2626,50 @@ var vo = function() {
|
|
|
2626
2626
|
return [e._t(o, null, null, l || {})];
|
|
2627
2627
|
} };
|
|
2628
2628
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2629
|
-
},
|
|
2630
|
-
co,
|
|
2629
|
+
}, po = [], mo = /* @__PURE__ */ E(
|
|
2631
2630
|
vo,
|
|
2632
2631
|
fo,
|
|
2632
|
+
po,
|
|
2633
2633
|
!1,
|
|
2634
2634
|
null,
|
|
2635
2635
|
null
|
|
2636
2636
|
);
|
|
2637
|
-
const
|
|
2638
|
-
[
|
|
2637
|
+
const nl = mo.exports, _o = {
|
|
2638
|
+
[L.VERTICAL]: {
|
|
2639
2639
|
withTooltip: !0,
|
|
2640
2640
|
xAxisOptions: {},
|
|
2641
2641
|
yAxisOptions: { gridLines: !0 },
|
|
2642
2642
|
margins: re.VERTICAL,
|
|
2643
2643
|
tooltipOptions: { inverse: !0 }
|
|
2644
2644
|
},
|
|
2645
|
-
[
|
|
2645
|
+
[L.HORIZONTAL]: {
|
|
2646
2646
|
withTooltip: !0,
|
|
2647
2647
|
xAxisOptions: { gridLines: !0 },
|
|
2648
2648
|
yAxisOptions: { gridLines: !1 },
|
|
2649
2649
|
margins: re.HORIZONTAL,
|
|
2650
2650
|
tooltipOptions: { position: "right" }
|
|
2651
2651
|
}
|
|
2652
|
-
},
|
|
2652
|
+
}, ho = /* @__PURE__ */ N({
|
|
2653
2653
|
__name: "lume-stacked-bar-chart",
|
|
2654
2654
|
props: {
|
|
2655
|
-
...
|
|
2655
|
+
...ue()
|
|
2656
2656
|
},
|
|
2657
2657
|
setup(t, { emit: e }) {
|
|
2658
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { data: o, orientation: l, options:
|
|
2659
|
-
() =>
|
|
2658
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { data: o, orientation: l, options: u, labels: i } = S(r), c = d(
|
|
2659
|
+
() => _o[l.value || L.VERTICAL]
|
|
2660
2660
|
// needs to be computed so that default options are reactive
|
|
2661
2661
|
), { allOptions: v } = Y(
|
|
2662
|
-
|
|
2662
|
+
u,
|
|
2663
2663
|
c
|
|
2664
|
-
), { internalData: s } = Qe(o), { groupedData: f } = St(s,
|
|
2664
|
+
), { internalData: s } = Qe(o), { groupedData: f } = St(s, i), { stackedXScaleGenerator: m, stackedYScaleGenerator: _ } = qa(
|
|
2665
2665
|
f,
|
|
2666
2666
|
l,
|
|
2667
|
-
|
|
2667
|
+
u
|
|
2668
2668
|
), h = d(() => r.xScale || m), y = d(() => r.yScale || _);
|
|
2669
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options:
|
|
2669
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, data: o, orientation: l, options: u, labels: i, baseOptions: c, allOptions: v, internalData: s, groupedData: f, stackedXScaleGenerator: m, stackedYScaleGenerator: _, xScale: h, yScale: y, LumeChart: se, LumeBarGroup: et };
|
|
2670
2670
|
}
|
|
2671
2671
|
});
|
|
2672
|
-
var
|
|
2672
|
+
var go = function() {
|
|
2673
2673
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2674
2674
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "stacked-bar", options: n.allOptions, "x-scale": n.xScale, "y-scale": n.yScale, "data-j-stacked-bar-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2675
2675
|
return [r(n.LumeBarGroup, e._g(e._b({ attrs: { type: "stacked" } }, "lume-bar-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2678,15 +2678,15 @@ var ho = function() {
|
|
|
2678
2678
|
return [e._t(o, null, null, l || {})];
|
|
2679
2679
|
} };
|
|
2680
2680
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2681
|
-
},
|
|
2682
|
-
_o,
|
|
2681
|
+
}, yo = [], bo = /* @__PURE__ */ E(
|
|
2683
2682
|
ho,
|
|
2684
2683
|
go,
|
|
2684
|
+
yo,
|
|
2685
2685
|
!1,
|
|
2686
2686
|
null,
|
|
2687
2687
|
null
|
|
2688
2688
|
);
|
|
2689
|
-
const
|
|
2689
|
+
const rl = bo.exports, ht = 2, ko = /* @__PURE__ */ N({
|
|
2690
2690
|
__name: "lume-line",
|
|
2691
2691
|
props: {
|
|
2692
2692
|
pathDefinition: {
|
|
@@ -2721,10 +2721,10 @@ const nl = yo.exports, ht = 2, bo = /* @__PURE__ */ N({
|
|
|
2721
2721
|
emits: ["click"],
|
|
2722
2722
|
setup(t, { emit: e }) {
|
|
2723
2723
|
const r = w(null);
|
|
2724
|
-
return ee(() =>
|
|
2724
|
+
return ee(() => Ie(r.value)), { __sfc: !0, DEFAULT_LINE_WIDTH: ht, emit: e, root: r };
|
|
2725
2725
|
}
|
|
2726
2726
|
});
|
|
2727
|
-
var
|
|
2727
|
+
var xo = function() {
|
|
2728
2728
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2729
2729
|
return r("path", { ref: "root", staticClass: "lume-line", class: {
|
|
2730
2730
|
[`lume-stroke--${e.color}`]: !0,
|
|
@@ -2736,115 +2736,114 @@ var ko = function() {
|
|
|
2736
2736
|
}, attrs: { d: e.pathDefinition, "stroke-width": e.width, "data-j-line": "" }, on: { click: function(a) {
|
|
2737
2737
|
return n.emit("click", a);
|
|
2738
2738
|
} } });
|
|
2739
|
-
},
|
|
2740
|
-
bo,
|
|
2739
|
+
}, Ao = [], To = /* @__PURE__ */ E(
|
|
2741
2740
|
ko,
|
|
2742
2741
|
xo,
|
|
2742
|
+
Ao,
|
|
2743
2743
|
!1,
|
|
2744
2744
|
null,
|
|
2745
2745
|
"59449838"
|
|
2746
2746
|
);
|
|
2747
|
-
const
|
|
2747
|
+
const Lo = To.exports, gt = 4, yt = 3, Oo = /* @__PURE__ */ N({
|
|
2748
2748
|
__name: "lume-point",
|
|
2749
2749
|
props: {
|
|
2750
|
-
x:
|
|
2751
|
-
y:
|
|
2752
|
-
color: {
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
}
|
|
2756
|
-
radius: {
|
|
2757
|
-
type: Number,
|
|
2758
|
-
default: gt
|
|
2759
|
-
},
|
|
2760
|
-
active: {
|
|
2761
|
-
type: Boolean,
|
|
2762
|
-
default: !1
|
|
2763
|
-
}
|
|
2750
|
+
x: null,
|
|
2751
|
+
y: null,
|
|
2752
|
+
color: { default: z.Skyblue },
|
|
2753
|
+
radius: { default: gt },
|
|
2754
|
+
active: { type: Boolean, default: !1 },
|
|
2755
|
+
visible: { type: Boolean, default: !1 }
|
|
2764
2756
|
},
|
|
2765
2757
|
emits: ["click"],
|
|
2766
2758
|
setup(t, { emit: e }) {
|
|
2767
|
-
const r = t, n = w(null), a = d(() => r.radius / 2);
|
|
2768
|
-
return ee(() =>
|
|
2759
|
+
const r = t, n = w(null), a = d(() => r.radius / 2), o = d(() => r.active ? r.radius : r.visible ? yt : 0);
|
|
2760
|
+
return ee(() => Ie(n.value)), { __sfc: !0, DEFAULT_RADIUS: gt, DEFAULT_VISIBLE_RADIUS: yt, props: r, emit: e, root: n, strokeWidth: a, computedRadius: o };
|
|
2769
2761
|
}
|
|
2770
2762
|
});
|
|
2771
|
-
var
|
|
2763
|
+
var Io = function() {
|
|
2772
2764
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2773
|
-
return r("circle", { ref: "root", staticClass: "lume-point", class:
|
|
2765
|
+
return r("circle", { ref: "root", staticClass: "lume-point", class: {
|
|
2766
|
+
[`lume-stroke--${e.color}`]: !0,
|
|
2767
|
+
"lume-point--active": e.active,
|
|
2768
|
+
[`lume-point--visible lume-fill--${e.color}`]: e.visible
|
|
2769
|
+
}, attrs: { cx: e.x, cy: e.y, r: n.computedRadius, "stroke-width": n.strokeWidth, "data-j-point": "" }, on: { click: function(a) {
|
|
2774
2770
|
return n.emit("click", a);
|
|
2775
2771
|
} } });
|
|
2776
|
-
}, $o = [],
|
|
2777
|
-
Lo,
|
|
2772
|
+
}, $o = [], wo = /* @__PURE__ */ E(
|
|
2778
2773
|
Oo,
|
|
2774
|
+
Io,
|
|
2779
2775
|
$o,
|
|
2780
2776
|
!1,
|
|
2781
2777
|
null,
|
|
2782
|
-
"
|
|
2778
|
+
"080270c0"
|
|
2783
2779
|
);
|
|
2784
|
-
const
|
|
2785
|
-
function
|
|
2780
|
+
const Eo = wo.exports;
|
|
2781
|
+
function Bt(t) {
|
|
2786
2782
|
function e(o) {
|
|
2787
2783
|
let l = null;
|
|
2788
|
-
return o == null ? void 0 : o.reduce((
|
|
2784
|
+
return o == null ? void 0 : o.reduce((u, i, c) => (i == null || i.value == null ? (l ? l.push(c) : l = [c], c === (o == null ? void 0 : o.length) - 1 && u.push(l)) : l && (u.push(l), l = null), u), []);
|
|
2789
2785
|
}
|
|
2790
|
-
function r(o, l,
|
|
2791
|
-
const s = Math.abs(o - l) / (
|
|
2786
|
+
function r(o, l, u, i) {
|
|
2787
|
+
const s = Math.abs(o - l) / (u + 1) * (i + 1);
|
|
2792
2788
|
return o == null && l == null ? null : o > l ? o - s : o + s;
|
|
2793
2789
|
}
|
|
2794
2790
|
function n(o) {
|
|
2795
|
-
return function(
|
|
2791
|
+
return function(u) {
|
|
2796
2792
|
return !!o.find(
|
|
2797
|
-
(
|
|
2793
|
+
(i) => i.includes(u) || i.includes(u - 1)
|
|
2798
2794
|
);
|
|
2799
2795
|
};
|
|
2800
2796
|
}
|
|
2801
|
-
return { computedLineData: d(
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2797
|
+
return { computedLineData: d(
|
|
2798
|
+
() => t.value.map((o) => {
|
|
2799
|
+
const l = e(o.values);
|
|
2800
|
+
return {
|
|
2801
|
+
...o,
|
|
2802
|
+
isDashed: n(l),
|
|
2803
|
+
values: o.values.map((u, i) => {
|
|
2804
|
+
var v, s;
|
|
2805
|
+
const c = l.find(
|
|
2806
|
+
(f) => f.includes(i)
|
|
2807
|
+
);
|
|
2808
|
+
if (c) {
|
|
2809
|
+
const f = c[0] - 1, m = c[c.length - 1] + 1;
|
|
2810
|
+
let _ = (v = o.values[f]) == null ? void 0 : v.value, h = (s = o.values[m]) == null ? void 0 : s.value;
|
|
2811
|
+
return _ == null && (_ = h), h == null && (h = _), {
|
|
2812
|
+
value: r(
|
|
2813
|
+
_,
|
|
2814
|
+
h,
|
|
2815
|
+
c.length,
|
|
2816
|
+
c.indexOf(i)
|
|
2817
|
+
),
|
|
2818
|
+
label: $t,
|
|
2819
|
+
isNull: !0
|
|
2820
|
+
};
|
|
2821
|
+
}
|
|
2822
|
+
return u;
|
|
2823
|
+
})
|
|
2824
|
+
};
|
|
2825
|
+
})
|
|
2826
|
+
) };
|
|
2828
2827
|
}
|
|
2829
|
-
function
|
|
2828
|
+
function No(t, e) {
|
|
2830
2829
|
const r = t.bandwidth() / 2;
|
|
2831
2830
|
return (n, a) => t(t.domain()[e + (a - 1)]) + r;
|
|
2832
2831
|
}
|
|
2833
|
-
function
|
|
2832
|
+
function Ho(t, e) {
|
|
2834
2833
|
return (r, n) => t(e + (n - 1));
|
|
2835
2834
|
}
|
|
2836
|
-
function
|
|
2837
|
-
const a =
|
|
2838
|
-
U(r) ?
|
|
2835
|
+
function Do(t, e, r, n) {
|
|
2836
|
+
const a = Kt().x(
|
|
2837
|
+
U(r) ? No(r, t) : Ho(r, t)
|
|
2839
2838
|
).y((o) => n(o));
|
|
2840
2839
|
return e.every((o) => o == null) ? null : a(e);
|
|
2841
2840
|
}
|
|
2842
|
-
const
|
|
2841
|
+
const bt = 1, Ro = /* @__PURE__ */ N({
|
|
2843
2842
|
__name: "lume-line-group",
|
|
2844
2843
|
props: {
|
|
2845
|
-
|
|
2844
|
+
...$e(),
|
|
2846
2845
|
withPoints: {
|
|
2847
|
-
type: Boolean,
|
|
2846
|
+
type: [Boolean, String],
|
|
2848
2847
|
default: !0
|
|
2849
2848
|
},
|
|
2850
2849
|
transition: {
|
|
@@ -2854,119 +2853,121 @@ const yt = 1, Do = /* @__PURE__ */ N({
|
|
|
2854
2853
|
},
|
|
2855
2854
|
emits: ["line-click", "point-click", "lume__internal--hover"],
|
|
2856
2855
|
setup(t, { emit: e }) {
|
|
2857
|
-
const r = t, { data: n, options: a, xScale: o, yScale: l, labels:
|
|
2856
|
+
const r = t, { data: n, options: a, xScale: o, yScale: l, labels: u } = S(r), i = Le(
|
|
2858
2857
|
"tooltipAnchorAttributes",
|
|
2859
2858
|
null
|
|
2860
|
-
), { updateTooltipAnchorAttributes: c } =
|
|
2861
|
-
|
|
2859
|
+
), { updateTooltipAnchorAttributes: c } = Rt(
|
|
2860
|
+
i,
|
|
2862
2861
|
a,
|
|
2863
2862
|
o,
|
|
2864
2863
|
l,
|
|
2865
|
-
|
|
2864
|
+
u
|
|
2866
2865
|
), v = d(() => {
|
|
2867
2866
|
if (n.value.every((D) => D.isDashed))
|
|
2868
2867
|
return n.value;
|
|
2869
|
-
const { computedLineData:
|
|
2870
|
-
return a.value.withTooltip !== !1 && (
|
|
2868
|
+
const { computedLineData: $ } = Bt(n);
|
|
2869
|
+
return a.value.withTooltip !== !1 && (i != null && i.value) && c($.value), $.value;
|
|
2871
2870
|
}), s = d(() => {
|
|
2872
2871
|
if (r.hoveredIndex === -1) return;
|
|
2873
|
-
const
|
|
2872
|
+
const $ = dn(
|
|
2874
2873
|
v.value,
|
|
2875
2874
|
r.hoveredIndex
|
|
2876
2875
|
);
|
|
2877
2876
|
return {
|
|
2878
|
-
d: `M ${
|
|
2879
|
-
V ${l.value(
|
|
2877
|
+
d: `M ${Se(o.value, r.hoveredIndex)},${l.value.range()[1]}
|
|
2878
|
+
V ${l.value($)}`
|
|
2880
2879
|
// Move to X index, Vertical line to the highest point
|
|
2881
2880
|
};
|
|
2882
2881
|
}), f = d(
|
|
2883
|
-
() => o.value &&
|
|
2882
|
+
() => o.value && bt / (vn(o.value) - 1)
|
|
2884
2883
|
// Subtracting the first line (read below)
|
|
2885
2884
|
), m = d(
|
|
2886
2885
|
() => {
|
|
2887
|
-
var
|
|
2888
|
-
return ((
|
|
2886
|
+
var $;
|
|
2887
|
+
return (($ = a.value) == null ? void 0 : $.lineWidth) * 2 || void 0;
|
|
2889
2888
|
}
|
|
2890
2889
|
// If no `lineWidth`, returns NaN which needs to be undefined
|
|
2891
2890
|
), _ = d(
|
|
2892
2891
|
() => o.value.bandwidth() / 2
|
|
2893
2892
|
), h = d(() => o.value.domain()), y = d(
|
|
2894
2893
|
() => a.value.withPoints ?? r.withPoints
|
|
2894
|
+
), p = d(
|
|
2895
|
+
() => a.value.withPoints === "visible" || r.withPoints === "visible"
|
|
2895
2896
|
);
|
|
2896
|
-
function
|
|
2897
|
-
return v.value[
|
|
2898
|
-
}
|
|
2899
|
-
function
|
|
2900
|
-
var
|
|
2901
|
-
const
|
|
2902
|
-
(
|
|
2903
|
-
(
|
|
2897
|
+
function k($) {
|
|
2898
|
+
return v.value[$].values;
|
|
2899
|
+
}
|
|
2900
|
+
function x($, D) {
|
|
2901
|
+
var C, F;
|
|
2902
|
+
const B = $ === 0 ? [] : [
|
|
2903
|
+
(C = k(D)[$ - 1]) == null ? void 0 : C.value,
|
|
2904
|
+
(F = k(D)[$]) == null ? void 0 : F.value
|
|
2904
2905
|
];
|
|
2905
|
-
return
|
|
2906
|
-
|
|
2907
|
-
|
|
2906
|
+
return Do(
|
|
2907
|
+
$,
|
|
2908
|
+
B,
|
|
2908
2909
|
o.value,
|
|
2909
2910
|
l.value
|
|
2910
2911
|
) || "";
|
|
2911
2912
|
}
|
|
2912
|
-
function
|
|
2913
|
+
function T($) {
|
|
2913
2914
|
return {
|
|
2914
|
-
animationDelay:
|
|
2915
|
+
animationDelay: $ < 2 ? 0 : ($ - 1) * f.value,
|
|
2915
2916
|
animationDuration: f.value
|
|
2916
2917
|
};
|
|
2917
2918
|
}
|
|
2918
|
-
function
|
|
2919
|
-
var
|
|
2920
|
-
const
|
|
2919
|
+
function I($, D) {
|
|
2920
|
+
var C;
|
|
2921
|
+
const B = (C = k(D)[$]) == null ? void 0 : C.value;
|
|
2921
2922
|
return {
|
|
2922
|
-
x: U(o.value) ? r.xScale(h.value[
|
|
2923
|
-
y:
|
|
2923
|
+
x: U(o.value) ? r.xScale(h.value[$]) + _.value : r.xScale($),
|
|
2924
|
+
y: B === null ? l.value(l.value.domain()[1]) : l.value(B)
|
|
2924
2925
|
};
|
|
2925
2926
|
}
|
|
2926
|
-
function
|
|
2927
|
-
return r.hoveredIndex ===
|
|
2927
|
+
function R($) {
|
|
2928
|
+
return r.hoveredIndex === $;
|
|
2928
2929
|
}
|
|
2929
|
-
return { __sfc: !0, LUME_TRANSITION_TIME_FULL:
|
|
2930
|
+
return { __sfc: !0, LUME_TRANSITION_TIME_FULL: bt, props: r, emit: e, data: n, options: a, xScale: o, yScale: l, labels: u, tooltipAnchorAttributes: i, updateTooltipAnchorAttributes: c, computedGroupData: v, overlayLineAttributes: s, animationDuration: f, pointRadius: m, xAxisOffset: _, domain: h, computedWithPoints: y, computedVisiblePoints: p, getValuesFromDataset: k, getPathDefinition: x, getLineTransitionParams: T, getPointPosition: I, isPointActive: R, LumeLine: Lo, LumePoint: Eo };
|
|
2930
2931
|
}
|
|
2931
2932
|
});
|
|
2932
|
-
var
|
|
2933
|
+
var Po = function() {
|
|
2933
2934
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2934
2935
|
return r("g", { staticClass: "lume-line-group", attrs: { "data-j-lume-line-group": "" } }, [r("path", e._b({ staticClass: "lume-line-group__overlay-line", attrs: { "data-j-lume-line-group__overlay-line": "" } }, "path", n.overlayLineAttributes, !1)), e._l(n.computedGroupData, function(a, o) {
|
|
2935
|
-
return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(l,
|
|
2936
|
-
return r(n.LumeLine, e._b({ key: `line-${
|
|
2937
|
-
return n.emit("line-click", { index:
|
|
2938
|
-
} } }, "lume-line", n.getLineTransitionParams(
|
|
2939
|
-
}), 1), n.computedWithPoints ? r("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, e._l(a.values, function(l,
|
|
2940
|
-
return r(n.LumePoint, e._b({
|
|
2941
|
-
return n.emit("point-click", { index:
|
|
2942
|
-
} } }, "lume-point", n.getPointPosition(
|
|
2943
|
-
}),
|
|
2936
|
+
return r("g", { key: a.label, staticClass: "lume-line-group__group" }, [r("g", { staticClass: "lume-line-group__lines" }, e._l(a.values, function(l, u) {
|
|
2937
|
+
return r(n.LumeLine, e._b({ key: `line-${u}`, attrs: { color: a.color, dashed: a.isDashed(u), "path-definition": n.getPathDefinition(u, o), transition: e.transition, width: n.options.lineWidth }, on: { click: function(i) {
|
|
2938
|
+
return n.emit("line-click", { index: u, datasetIndex: o, event: i });
|
|
2939
|
+
} } }, "lume-line", n.getLineTransitionParams(u), !1));
|
|
2940
|
+
}), 1), n.computedWithPoints ? r("g", { staticClass: "lume-line-group__points", attrs: { "data-j-lume-line-group__points": "" } }, [e._l(a.values, function(l, u) {
|
|
2941
|
+
return [l.isNull ? e._e() : r(n.LumePoint, e._b({ attrs: { active: n.isPointActive(u), color: a.color, index: u, radius: n.pointRadius, visible: n.computedVisiblePoints }, on: { click: function(i) {
|
|
2942
|
+
return n.emit("point-click", { index: u, datasetIndex: o, event: i });
|
|
2943
|
+
} } }, "lume-point", n.getPointPosition(u, o), !1))];
|
|
2944
|
+
})], 2) : e._e()]);
|
|
2944
2945
|
})], 2);
|
|
2945
|
-
}, So = [],
|
|
2946
|
-
Do,
|
|
2946
|
+
}, So = [], Bo = /* @__PURE__ */ E(
|
|
2947
2947
|
Ro,
|
|
2948
|
+
Po,
|
|
2948
2949
|
So,
|
|
2949
2950
|
!1,
|
|
2950
2951
|
null,
|
|
2951
|
-
"
|
|
2952
|
+
"1eb6df01"
|
|
2952
2953
|
);
|
|
2953
|
-
const
|
|
2954
|
+
const Ct = Bo.exports, Co = {
|
|
2954
2955
|
margins: re.VERTICAL,
|
|
2955
2956
|
startOnZero: !0,
|
|
2956
2957
|
withTooltip: !0,
|
|
2957
2958
|
xAxisOptions: {},
|
|
2958
2959
|
yAxisOptions: { gridLines: !0 }
|
|
2959
|
-
},
|
|
2960
|
+
}, Go = /* @__PURE__ */ N({
|
|
2960
2961
|
__name: "lume-line-chart",
|
|
2961
2962
|
props: {
|
|
2962
|
-
...
|
|
2963
|
+
...ue(null, !1)
|
|
2963
2964
|
},
|
|
2964
2965
|
setup(t, { emit: e }) {
|
|
2965
|
-
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { options: o } =
|
|
2966
|
-
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, options: o, allOptions: l, LumeChart: se, LumeLineGroup:
|
|
2966
|
+
const r = t, { componentEventPropagator: n } = K(e), a = ae(M()), { options: o } = S(r), { allOptions: l } = Y(o, Co);
|
|
2967
|
+
return { __sfc: !0, props: r, emit: e, componentEventPropagator: n, slots: a, options: o, allOptions: l, LumeChart: se, LumeLineGroup: Ct };
|
|
2967
2968
|
}
|
|
2968
2969
|
});
|
|
2969
|
-
var
|
|
2970
|
+
var Fo = function() {
|
|
2970
2971
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
2971
2972
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.allOptions, "data-j-lume-line-chart": "" }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
2972
2973
|
return [r(n.LumeLineGroup, e._g(e._b({}, "lume-line-group", a, !1), n.componentEventPropagator))];
|
|
@@ -2975,26 +2976,26 @@ var Go = function() {
|
|
|
2975
2976
|
return [e._t(o, null, null, l || {})];
|
|
2976
2977
|
} };
|
|
2977
2978
|
})], null, !0) }, "lume-chart", { ...n.props, ...e.$attrs }, !1), n.componentEventPropagator));
|
|
2978
|
-
},
|
|
2979
|
-
Co,
|
|
2979
|
+
}, jo = [], Vo = /* @__PURE__ */ E(
|
|
2980
2980
|
Go,
|
|
2981
2981
|
Fo,
|
|
2982
|
+
jo,
|
|
2982
2983
|
!1,
|
|
2983
2984
|
null,
|
|
2984
2985
|
null
|
|
2985
2986
|
);
|
|
2986
|
-
const
|
|
2987
|
-
function
|
|
2987
|
+
const al = Vo.exports;
|
|
2988
|
+
function Mo(t) {
|
|
2988
2989
|
return { areaPathDefinition: d(
|
|
2989
2990
|
() => function(r, n) {
|
|
2990
2991
|
if (!r || !n || U(r) || U(n))
|
|
2991
2992
|
return;
|
|
2992
2993
|
const a = t.value[0].values;
|
|
2993
|
-
return
|
|
2994
|
+
return Jt().x((o, l) => r(l)).y0(n(Math.min(...n.domain()))).y1((o) => n(o.value))(a);
|
|
2994
2995
|
}
|
|
2995
2996
|
) };
|
|
2996
2997
|
}
|
|
2997
|
-
const
|
|
2998
|
+
const zo = {
|
|
2998
2999
|
margins: {
|
|
2999
3000
|
top: 0,
|
|
3000
3001
|
right: 0,
|
|
@@ -3008,16 +3009,16 @@ const Mo = {
|
|
|
3008
3009
|
tooltipOptions: {
|
|
3009
3010
|
showTitle: !1
|
|
3010
3011
|
}
|
|
3011
|
-
},
|
|
3012
|
+
}, Wo = /* @__PURE__ */ N({
|
|
3012
3013
|
__name: "lume-sparkline-chart",
|
|
3013
3014
|
props: {
|
|
3014
3015
|
...Je(null),
|
|
3015
3016
|
...me()
|
|
3016
3017
|
},
|
|
3017
3018
|
setup(t, { expose: e, emit: r }) {
|
|
3018
|
-
const n = t, { componentEventPropagator: a } = K(r), o = ae(M()), { data: l, options:
|
|
3019
|
+
const n = t, { componentEventPropagator: a } = K(r), o = ae(M()), { data: l, options: u } = S(n), { internalData: i } = Qe(l), { allOptions: c } = Y(u, zo), { computedLineData: v } = Bt(i), { areaPathDefinition: s } = Mo(v), f = d(() => {
|
|
3019
3020
|
var y, p;
|
|
3020
|
-
return (p = (y =
|
|
3021
|
+
return (p = (y = i.value) == null ? void 0 : y[0]) == null ? void 0 : p.color;
|
|
3021
3022
|
}), m = d(
|
|
3022
3023
|
() => {
|
|
3023
3024
|
var y, p;
|
|
@@ -3036,10 +3037,10 @@ const Mo = {
|
|
|
3036
3037
|
}
|
|
3037
3038
|
return e({
|
|
3038
3039
|
areaPathDefinition: s
|
|
3039
|
-
}), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options:
|
|
3040
|
+
}), { __sfc: !0, props: n, emit: r, componentEventPropagator: a, slots: o, data: l, options: u, internalData: i, allOptions: c, computedLineData: v, areaPathDefinition: s, computedColor: f, areaColor: m, getSparklineOptions: _, xScaleGenerator: h, LumeChart: se, LumeLineGroup: Ct };
|
|
3040
3041
|
}
|
|
3041
3042
|
});
|
|
3042
|
-
var
|
|
3043
|
+
var Zo = function() {
|
|
3043
3044
|
var e = this, r = e._self._c, n = e._self._setupProxy;
|
|
3044
3045
|
return r(n.LumeChart, e._g(e._b({ attrs: { "chart-type": "line", options: n.getSparklineOptions(n.allOptions), "x-scale": n.xScaleGenerator }, scopedSlots: e._u([{ key: "groups", fn: function(a) {
|
|
3045
3046
|
return [n.allOptions.showArea ? r("path", { class: [
|
|
@@ -3053,65 +3054,65 @@ var Wo = function() {
|
|
|
3053
3054
|
return [e._t(o, null, null, l || {})];
|
|
3054
3055
|
} };
|
|
3055
3056
|
})], null, !0) }, "lume-chart", n.props, !1), n.componentEventPropagator));
|
|
3056
|
-
},
|
|
3057
|
-
zo,
|
|
3057
|
+
}, Uo = [], Xo = /* @__PURE__ */ E(
|
|
3058
3058
|
Wo,
|
|
3059
3059
|
Zo,
|
|
3060
|
+
Uo,
|
|
3060
3061
|
!1,
|
|
3061
3062
|
null,
|
|
3062
3063
|
"579f7e32"
|
|
3063
3064
|
);
|
|
3064
|
-
const
|
|
3065
|
+
const ol = Xo.exports;
|
|
3065
3066
|
export {
|
|
3066
|
-
|
|
3067
|
+
Bt as A,
|
|
3067
3068
|
Sr as B,
|
|
3068
|
-
|
|
3069
|
+
Br as C,
|
|
3069
3070
|
me as D,
|
|
3070
3071
|
Y as E,
|
|
3071
3072
|
qe as F,
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3073
|
+
ue as G,
|
|
3074
|
+
Qn as H,
|
|
3075
|
+
qn as I,
|
|
3076
|
+
Kn as J,
|
|
3077
|
+
Jn as K,
|
|
3078
|
+
Dn as L,
|
|
3079
|
+
ut as M,
|
|
3080
|
+
Se as N,
|
|
3080
3081
|
st as O,
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3082
|
+
Rt as P,
|
|
3083
|
+
Fr as Q,
|
|
3084
|
+
jr as R,
|
|
3084
3085
|
z as S,
|
|
3085
|
-
|
|
3086
|
+
Dt as T,
|
|
3086
3087
|
Xe as U,
|
|
3087
3088
|
Ye as V,
|
|
3088
3089
|
Ke as W,
|
|
3089
3090
|
ne as X,
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3091
|
+
el as a,
|
|
3092
|
+
tl as b,
|
|
3093
|
+
nl as c,
|
|
3094
|
+
rl as d,
|
|
3095
|
+
al as e,
|
|
3096
|
+
ol as f,
|
|
3096
3097
|
se as g,
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3098
|
+
ar as h,
|
|
3099
|
+
sr as i,
|
|
3100
|
+
wr as j,
|
|
3101
|
+
Tr as k,
|
|
3102
|
+
qo as l,
|
|
3103
|
+
yr as m,
|
|
3104
|
+
pr as n,
|
|
3104
3105
|
Ue as o,
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3106
|
+
Lo as p,
|
|
3107
|
+
Eo as q,
|
|
3108
|
+
Ra as r,
|
|
3109
|
+
na as s,
|
|
3110
|
+
ia as t,
|
|
3111
|
+
va as u,
|
|
3111
3112
|
et as v,
|
|
3112
|
-
|
|
3113
|
-
|
|
3113
|
+
Ct as w,
|
|
3114
|
+
Rr as x,
|
|
3114
3115
|
Je as y,
|
|
3115
3116
|
Qe as z
|
|
3116
3117
|
};
|
|
3117
|
-
//# sourceMappingURL=
|
|
3118
|
+
//# sourceMappingURL=Bbm8lOKv.js.map
|