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