@adyen/lume-vue3 1.11.4 → 1.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts +18 -10
- package/dist/@types/components/charts/lume-alluvial-diagram/lume-alluvial-diagram.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts +12 -12
- package/dist/@types/components/charts/lume-bar-chart/lume-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts +5 -6
- package/dist/@types/components/charts/lume-grouped-bar-chart/defaults.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-grouped-bar-chart/lume-grouped-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-line-chart/lume-line-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts +5 -5
- package/dist/@types/components/charts/lume-single-bar-chart/defaults.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-single-bar-chart/lume-single-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts +16 -8
- package/dist/@types/components/charts/lume-sparkline-chart/lume-sparkline-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts +5 -7
- package/dist/@types/components/charts/lume-stacked-bar-chart/defaults.d.ts.map +1 -1
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts +22 -14
- package/dist/@types/components/charts/lume-stacked-bar-chart/lume-stacked-bar-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts +9 -8
- package/dist/@types/components/core/lume-axis/components/lume-tick/lume-tick.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-axis/lume-axis.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts +4 -4
- package/dist/@types/components/core/lume-bar/lume-bar.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts +247 -77
- package/dist/@types/components/core/lume-chart/lume-chart.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts +18 -7
- package/dist/@types/components/core/lume-chart-container/lume-chart-container.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts +2 -2
- package/dist/@types/components/core/lume-chart-legend/lume-chart-legend.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-line/lume-line.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-point/lume-point.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts +13 -5
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-item/lume-tooltip-item.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts +12 -4
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-summary/lume-tooltip-summary.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts +11 -3
- package/dist/@types/components/core/lume-tooltip/components/lume-tooltip-title/lume-tooltip-title.vue.d.ts.map +1 -1
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts +2 -2
- package/dist/@types/components/core/lume-tooltip/lume-tooltip.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts +16 -6
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-header/lume-alluvial-node-header.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts +15 -4
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-label/lume-alluvial-node-label.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts +12 -4
- package/dist/@types/components/groups/lume-alluvial-group/components/lume-alluvial-node-value/lume-alluvial-node-value.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-graph.d.ts +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts +244 -84
- package/dist/@types/components/groups/lume-alluvial-group/composables/alluvial-hover.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts +152 -142
- package/dist/@types/components/groups/lume-alluvial-group/lume-alluvial-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/bar-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts +2 -2
- package/dist/@types/components/groups/lume-bar-group/composables/stacked-mixin.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts +4 -4
- package/dist/@types/components/groups/lume-bar-group/lume-bar-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts +4 -4
- package/dist/@types/components/groups/lume-line-group/lume-line-group.vue.d.ts.map +1 -1
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts +4 -4
- package/dist/@types/components/groups/lume-overlay-group/lume-overlay-group.vue.d.ts.map +1 -1
- package/dist/@types/composables/base.d.ts +5 -5
- package/dist/@types/composables/base.d.ts.map +1 -1
- package/dist/@types/composables/events.d.ts.map +1 -1
- package/dist/@types/composables/format.d.ts +1 -1
- package/dist/@types/composables/format.d.ts.map +1 -1
- package/dist/@types/composables/group-props.d.ts +3 -3
- package/dist/@types/composables/group-props.d.ts.map +1 -1
- package/dist/@types/composables/line-null-values.d.ts.map +1 -1
- package/dist/@types/composables/options.d.ts.map +1 -1
- package/dist/@types/composables/props.d.ts +8 -8
- package/dist/@types/composables/props.d.ts.map +1 -1
- package/dist/@types/composables/scales.d.ts +2 -2
- package/dist/@types/composables/scales.d.ts.map +1 -1
- package/dist/@types/composables/tooltip.d.ts +2 -2
- package/dist/@types/composables/tooltip.d.ts.map +1 -1
- package/dist/@types/docs/storybook-helpers.d.ts.map +1 -1
- package/dist/@types/plugin.d.ts.map +1 -1
- package/dist/@types/utils/helpers.d.ts +0 -8
- package/dist/@types/utils/helpers.d.ts.map +1 -1
- package/dist/@types/utils/margins.d.ts.map +1 -1
- package/dist/common/B-J6h1cQ.js +5 -0
- package/dist/common/B-J6h1cQ.js.map +1 -0
- package/dist/common/B79GZzqk.js +5 -0
- package/dist/common/B79GZzqk.js.map +1 -0
- package/dist/common/{o-3UCjl8.js → BfKxCes1.js} +938 -939
- package/dist/common/BfKxCes1.js.map +1 -0
- package/dist/common/DpwoykqR.js +5 -0
- package/dist/common/DpwoykqR.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/scss/main.scss +9 -9
- package/dist/styles/main.css +2 -2
- package/package.json +6 -6
- package/dist/common/D3C1hTl9.js +0 -5
- package/dist/common/D3C1hTl9.js.map +0 -1
- package/dist/common/DI0JiGP5.js +0 -5
- package/dist/common/DI0JiGP5.js.map +0 -1
- package/dist/common/DgbGPOnI.js +0 -5
- package/dist/common/DgbGPOnI.js.map +0 -1
- package/dist/common/o-3UCjl8.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as
|
|
2
|
-
import { sankeyLinkHorizontal as vn, sankey as
|
|
3
|
-
import { format as pn, ticks as hn,
|
|
1
|
+
import { defineComponent as Z, ref as G, createElementBlock as I, openBlock as _, mergeProps as j, createElementVNode as S, createCommentVNode as z, toDisplayString as ne, isRef as St, computed as v, watch as X, toRefs as ee, inject as Ce, reactive as Fe, onMounted as ye, unref as d, createBlock as Y, Fragment as Q, renderList as W, normalizeStyle as jt, normalizeClass as te, watchEffect as Vt, onBeforeUnmount as Pt, renderSlot as M, createTextVNode as se, useSlots as re, nextTick as Qe, withCtx as V, createSlots as ce, pushScopeId as sn, popScopeId as cn, provide as Ke, createVNode as ue, toHandlers as oe, normalizeProps as pe, guardReactiveProps as he, defineAsyncComponent as Je, resolveDynamicComponent as dn } from "vue";
|
|
2
|
+
import { sankeyLinkHorizontal as vn, sankey as mn, sankeyJustify as fn } from "d3-sankey";
|
|
3
|
+
import { format as pn, ticks as hn, scaleLinear as Be, scaleBand as Me, link as gn, line as yn, area as _n } from "d3";
|
|
4
4
|
import { createPopper as kn } from "@popperjs/core";
|
|
5
5
|
const bn = {
|
|
6
6
|
class: "axis__tick-label lume-typography--axis",
|
|
@@ -43,9 +43,9 @@ const bn = {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
emits: ["click", "mouseenter"],
|
|
46
|
-
setup(e, { expose:
|
|
47
|
-
const o =
|
|
48
|
-
return
|
|
46
|
+
setup(e, { expose: t, emit: n }) {
|
|
47
|
+
const o = n, a = G(null);
|
|
48
|
+
return t({ ref: a }), (r, l) => (_(), I("g", j(e.group, {
|
|
49
49
|
class: ["axis__tick", {
|
|
50
50
|
"axis__tick--hovered": e.isHovered,
|
|
51
51
|
"axis__tick--hidden": e.isHidden
|
|
@@ -54,12 +54,12 @@ const bn = {
|
|
|
54
54
|
onMouseenter: l[0] || (l[0] = (i) => o("mouseenter", i)),
|
|
55
55
|
onClick: l[1] || (l[1] = (i) => o("click", i))
|
|
56
56
|
}), [
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
S("g", bn, [
|
|
58
|
+
S("rect", j(e.ghost, {
|
|
59
59
|
class: "axis__ghost",
|
|
60
60
|
fill: "url(#lume-tick-gradient)"
|
|
61
61
|
}), null, 16),
|
|
62
|
-
|
|
62
|
+
S("text", j(e.label, {
|
|
63
63
|
ref_key: "labelRef",
|
|
64
64
|
ref: a,
|
|
65
65
|
class: "axis__label"
|
|
@@ -68,11 +68,11 @@ const bn = {
|
|
|
68
68
|
e.withGridlines ? (_(), I("line", j({ key: 0 }, e.gridline, { class: "axis__grid-line" }), null, 16)) : z("", !0)
|
|
69
69
|
], 16));
|
|
70
70
|
}
|
|
71
|
-
}), q = (e,
|
|
72
|
-
const
|
|
73
|
-
for (const [o, a] of
|
|
74
|
-
|
|
75
|
-
return
|
|
71
|
+
}), q = (e, t) => {
|
|
72
|
+
const n = e.__vccOpts || e;
|
|
73
|
+
for (const [o, a] of t)
|
|
74
|
+
n[o] = a;
|
|
75
|
+
return n;
|
|
76
76
|
}, At = /* @__PURE__ */ q(An, [["__scopeId", "data-v-59ddc0a6"]]), Tn = [
|
|
77
77
|
"controls",
|
|
78
78
|
"legend",
|
|
@@ -86,7 +86,7 @@ function Ct() {
|
|
|
86
86
|
}
|
|
87
87
|
function Ft(e) {
|
|
88
88
|
return (e == null ? void 0 : e.map(
|
|
89
|
-
(
|
|
89
|
+
(t) => t.values.map((n) => n == null ? void 0 : n.value).flat()
|
|
90
90
|
).flat()) || [];
|
|
91
91
|
}
|
|
92
92
|
function st(e) {
|
|
@@ -94,17 +94,17 @@ function st(e) {
|
|
|
94
94
|
}
|
|
95
95
|
function Ln(e) {
|
|
96
96
|
return !!e && e.every(
|
|
97
|
-
(
|
|
97
|
+
(t) => "color" in t
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
function qe(e) {
|
|
101
101
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
102
102
|
}
|
|
103
|
-
function zt(e,
|
|
104
|
-
const
|
|
105
|
-
return Object.entries(
|
|
106
|
-
|
|
107
|
-
}),
|
|
103
|
+
function zt(e, t) {
|
|
104
|
+
const n = { ...e };
|
|
105
|
+
return Object.entries(t).forEach(([o, a]) => {
|
|
106
|
+
n[o] = qe(e[o]) && qe(a) ? zt(e[o], a) : a;
|
|
107
|
+
}), n;
|
|
108
108
|
}
|
|
109
109
|
function $n(e) {
|
|
110
110
|
return e != null && qe(e) && "value" in e;
|
|
@@ -116,53 +116,53 @@ function On(e) {
|
|
|
116
116
|
return de(e) ? e.step() : Math.max(...e.range()) / Math.max(...e.domain());
|
|
117
117
|
}
|
|
118
118
|
function In(e) {
|
|
119
|
-
const [
|
|
120
|
-
return
|
|
119
|
+
const [t, n] = e.domain();
|
|
120
|
+
return t == null || n == null || t === 0 && n === 0;
|
|
121
121
|
}
|
|
122
|
-
const xn = (e,
|
|
122
|
+
const xn = (e, t) => {
|
|
123
123
|
if (!e)
|
|
124
124
|
throw new Error("Data is not a valid array");
|
|
125
125
|
if (e.length === 0)
|
|
126
126
|
throw new Error("Cannot get highest value from empty array");
|
|
127
127
|
e.some(
|
|
128
|
-
({ values: o }) => o.length - 1 >=
|
|
128
|
+
({ values: o }) => o.length - 1 >= t
|
|
129
129
|
) || ge(ve.IndexExceedsLengthOfDataSets);
|
|
130
130
|
};
|
|
131
|
-
function wn(e,
|
|
132
|
-
var
|
|
133
|
-
return xn(e,
|
|
131
|
+
function wn(e, t) {
|
|
132
|
+
var n;
|
|
133
|
+
return xn(e, t), ((n = e.reduce(
|
|
134
134
|
(o, a) => {
|
|
135
|
-
var
|
|
136
|
-
return (((
|
|
135
|
+
var r, l;
|
|
136
|
+
return (((r = o.values[t]) == null ? void 0 : r.value) ?? 0) > (((l = a.values[t]) == null ? void 0 : l.value) ?? 0) ? o : a;
|
|
137
137
|
}
|
|
138
|
-
).values[
|
|
138
|
+
).values[t]) == null ? void 0 : n.value) || 0;
|
|
139
139
|
}
|
|
140
140
|
function Wt(e) {
|
|
141
|
-
const
|
|
142
|
-
if (!
|
|
141
|
+
const t = St(e) ? e.value : e;
|
|
142
|
+
if (!t)
|
|
143
143
|
throw new Error("No empty array can be created from specified data value");
|
|
144
|
-
const
|
|
145
|
-
...
|
|
144
|
+
const n = Math.max(
|
|
145
|
+
...t.map((o) => o.values.length),
|
|
146
146
|
0
|
|
147
147
|
);
|
|
148
|
-
return Array(
|
|
148
|
+
return Array(n).fill(null);
|
|
149
149
|
}
|
|
150
150
|
function En(e) {
|
|
151
151
|
return de(e) ? e.domain().length : Math.max(...e.domain());
|
|
152
152
|
}
|
|
153
|
-
function Nn(e,
|
|
154
|
-
return (
|
|
153
|
+
function Nn(e, t) {
|
|
154
|
+
return (n) => Math.round(e * (1 - n) + t * n);
|
|
155
155
|
}
|
|
156
|
-
function Dn(e,
|
|
157
|
-
const o =
|
|
156
|
+
function Dn(e, t, n) {
|
|
157
|
+
const o = t, a = e.slice(0, o);
|
|
158
158
|
return e.slice(o).concat(a);
|
|
159
159
|
}
|
|
160
160
|
function Ae(e) {
|
|
161
161
|
if (e.groups) {
|
|
162
|
-
const
|
|
162
|
+
const t = Object.keys(e);
|
|
163
163
|
return Object.assign(
|
|
164
164
|
{},
|
|
165
|
-
...
|
|
165
|
+
...t.map((n) => n !== "groups" ? { [n]: e[n] } : {})
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
168
|
return e;
|
|
@@ -171,75 +171,71 @@ function Hn(e) {
|
|
|
171
171
|
return Object.assign(
|
|
172
172
|
{},
|
|
173
173
|
...Object.keys(e).map(
|
|
174
|
-
(
|
|
174
|
+
(t) => Tn.includes(t) ? {} : { [t]: e[t] }
|
|
175
175
|
)
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
);
|
|
182
|
-
function ct(e, n) {
|
|
183
|
-
const t = n - e.length;
|
|
184
|
-
return t > 0 ? [...e, ...Array(t).fill({ value: null })] : e;
|
|
178
|
+
function ct(e, t) {
|
|
179
|
+
const n = t - e.length;
|
|
180
|
+
return n > 0 ? [...e, ...Array(n).fill({ value: null })] : e;
|
|
185
181
|
}
|
|
186
182
|
var ve = /* @__PURE__ */ ((e) => (e.DatasetLength = `Our guidelines highly recommend not having more than 5 datasets in one chart.
|
|
187
183
|
Learn more: https://lume.design/guidelines/datasets`, e.ColorLoop = "Colors will loop around after the 5th dataset. You can prevent this by setting specific colors for your datasets.", e.Empty = "The dataset(s) provided are empty.", e.InvalidFormat = "The string provided to format is invalid. Please refer to https://github.com/d3/d3-format for valid arguments.", e.NotContainedInSvg = "This component is an `SVGElement`, thus it is required to be inside an `<svg>` container.", e.InvalidHoveredIndex = "The provided hovered index is not valid for the data of this chart.", e.InvalidHoveredElement = "The provided hovered element is not valid for the data of this diagram.", e.IndexExceedsLengthOfDataSets = "Index exceeds length of all of the datasets", e))(ve || {});
|
|
188
|
-
const
|
|
189
|
-
function ge(e,
|
|
190
|
-
|
|
184
|
+
const Bn = "[lume] ";
|
|
185
|
+
function ge(e, t = !0) {
|
|
186
|
+
t && Ct() || console.warn(Bn + "Warning: " + e);
|
|
191
187
|
}
|
|
192
188
|
const Ve = (e) => {
|
|
193
|
-
let
|
|
189
|
+
let t = null;
|
|
194
190
|
switch (typeof e) {
|
|
195
191
|
case "string":
|
|
196
192
|
try {
|
|
197
|
-
|
|
193
|
+
t = pn(e);
|
|
198
194
|
} catch {
|
|
199
|
-
ge(ve.InvalidFormat),
|
|
195
|
+
ge(ve.InvalidFormat), t = null;
|
|
200
196
|
}
|
|
201
197
|
break;
|
|
202
198
|
case "function":
|
|
203
|
-
|
|
199
|
+
t = e;
|
|
204
200
|
break;
|
|
205
201
|
default:
|
|
206
|
-
|
|
202
|
+
t = null;
|
|
207
203
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
204
|
+
function n(...o) {
|
|
205
|
+
return t ? t(...o) : o[0];
|
|
210
206
|
}
|
|
211
|
-
return
|
|
207
|
+
return n;
|
|
212
208
|
}, Re = () => ({
|
|
213
209
|
options: {
|
|
214
210
|
type: Object,
|
|
215
211
|
default: () => ({})
|
|
216
212
|
}
|
|
217
213
|
});
|
|
218
|
-
function
|
|
214
|
+
function me(e, t) {
|
|
219
215
|
return { allOptions: v(() => {
|
|
220
|
-
const o =
|
|
216
|
+
const o = St(t) ? t == null ? void 0 : t.value : t;
|
|
221
217
|
return o ? zt(o, e.value) : e.value;
|
|
222
218
|
}) };
|
|
223
219
|
}
|
|
224
|
-
const
|
|
225
|
-
function
|
|
226
|
-
const o =
|
|
220
|
+
const Mn = 0.2;
|
|
221
|
+
function Rn(e, t, n) {
|
|
222
|
+
const o = G(), a = v(() => Math.max(...e.value.range())), r = v(() => t.value.length);
|
|
227
223
|
function l() {
|
|
228
|
-
if (!
|
|
229
|
-
const c =
|
|
230
|
-
(
|
|
224
|
+
if (!t.value) return;
|
|
225
|
+
const c = t.value.reduce(
|
|
226
|
+
(f, u) => f + u.ref.getBoundingClientRect().width,
|
|
231
227
|
0
|
|
232
|
-
), s = Math.ceil(c /
|
|
233
|
-
o.value = s + s *
|
|
228
|
+
), s = Math.ceil(c / r.value);
|
|
229
|
+
o.value = s + s * Mn;
|
|
234
230
|
}
|
|
235
231
|
function i(c) {
|
|
236
|
-
if (!
|
|
237
|
-
const s =
|
|
232
|
+
if (!t.value) return !0;
|
|
233
|
+
const s = n.value.skip, f = t.value.length;
|
|
238
234
|
if (c === 0) return !0;
|
|
239
|
-
const
|
|
240
|
-
return c %
|
|
235
|
+
const u = a.value / f, m = typeof s == "number" && s > 0 && s + 1 || Math.ceil(o.value / u);
|
|
236
|
+
return c % m === 0;
|
|
241
237
|
}
|
|
242
|
-
return X(
|
|
238
|
+
return X(t, l), { showTick: i };
|
|
243
239
|
}
|
|
244
240
|
const H = {
|
|
245
241
|
HORIZONTAL: "horizontal",
|
|
@@ -248,7 +244,7 @@ const H = {
|
|
|
248
244
|
SINGLE: "single",
|
|
249
245
|
GROUPED: "grouped",
|
|
250
246
|
STACKED: "stacked"
|
|
251
|
-
}, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12,
|
|
247
|
+
}, Zt = "No data", Tt = 20, Ut = 0.33, Xt = 0.5, Yt = 12, Ge = 8, Sn = 1, jn = [
|
|
252
248
|
"auto",
|
|
253
249
|
"auto-start",
|
|
254
250
|
"auto-end",
|
|
@@ -284,30 +280,30 @@ const Kt = {
|
|
|
284
280
|
tickFormat: null,
|
|
285
281
|
/** Space between the tick label and the axis line. */
|
|
286
282
|
tickPadding: 12
|
|
287
|
-
},
|
|
283
|
+
}, Vn = {
|
|
288
284
|
...Kt,
|
|
289
285
|
withTitle: !1,
|
|
290
286
|
skip: !0
|
|
291
|
-
},
|
|
287
|
+
}, Pn = {
|
|
292
288
|
...Kt,
|
|
293
289
|
gridLines: !0
|
|
294
|
-
},
|
|
290
|
+
}, Cn = function(e, t, n) {
|
|
295
291
|
const o = v(() => e.value.step() * e.value.paddingInner() / 2);
|
|
296
292
|
function a(c, s) {
|
|
297
293
|
return {
|
|
298
294
|
transform: `translate(${(e.value(s) ?? e.value(c)) - o.value}, 0)`
|
|
299
295
|
};
|
|
300
296
|
}
|
|
301
|
-
function
|
|
302
|
-
var
|
|
297
|
+
function r(c) {
|
|
298
|
+
var f;
|
|
303
299
|
const s = Math.max(
|
|
304
300
|
e.value.step(),
|
|
305
|
-
(c ? (
|
|
301
|
+
(c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : e.value.step()) + 20
|
|
306
302
|
);
|
|
307
303
|
return {
|
|
308
304
|
x: -(s - e.value.step()) / 2,
|
|
309
305
|
width: s,
|
|
310
|
-
height:
|
|
306
|
+
height: n.value.tickPadding + Yt + Ge
|
|
311
307
|
};
|
|
312
308
|
}
|
|
313
309
|
function l() {
|
|
@@ -315,34 +311,34 @@ const Kt = {
|
|
|
315
311
|
return {
|
|
316
312
|
x1: c,
|
|
317
313
|
x2: c,
|
|
318
|
-
y1: -
|
|
314
|
+
y1: -t.value.height
|
|
319
315
|
// Negative height means it goes from bottom to top
|
|
320
316
|
};
|
|
321
317
|
}
|
|
322
318
|
function i() {
|
|
323
319
|
return {
|
|
324
320
|
x: e.value.step() / 2,
|
|
325
|
-
y:
|
|
321
|
+
y: n.value.tickPadding,
|
|
326
322
|
dy: "0.8em",
|
|
327
323
|
"text-anchor": "middle"
|
|
328
324
|
};
|
|
329
325
|
}
|
|
330
326
|
return {
|
|
331
327
|
getGridLinesAttributes: l,
|
|
332
|
-
getTickGhostAttributes:
|
|
328
|
+
getTickGhostAttributes: r,
|
|
333
329
|
getTickGroupAttributes: a,
|
|
334
330
|
getTickLabelAttributes: i
|
|
335
331
|
};
|
|
336
|
-
},
|
|
332
|
+
}, Fn = function(e, t, n) {
|
|
337
333
|
const o = v(() => e.value.step() * e.value.paddingInner() / 2);
|
|
338
334
|
function a(c, s) {
|
|
339
335
|
return {
|
|
340
336
|
transform: `translate(0, ${(e.value(s) ?? e.value(c)) - o.value})`
|
|
341
337
|
};
|
|
342
338
|
}
|
|
343
|
-
function
|
|
344
|
-
var
|
|
345
|
-
const s = (c ? (
|
|
339
|
+
function r(c) {
|
|
340
|
+
var f;
|
|
341
|
+
const s = (c ? (f = c.getComputedTextLength) == null ? void 0 : f.call(c) : 42) + n.value.tickPadding + Ge;
|
|
346
342
|
return {
|
|
347
343
|
x: -s,
|
|
348
344
|
width: s,
|
|
@@ -354,12 +350,12 @@ const Kt = {
|
|
|
354
350
|
return {
|
|
355
351
|
y1: c,
|
|
356
352
|
y2: c,
|
|
357
|
-
x1:
|
|
353
|
+
x1: t.value.width
|
|
358
354
|
};
|
|
359
355
|
}
|
|
360
356
|
function i() {
|
|
361
357
|
return {
|
|
362
|
-
x: -
|
|
358
|
+
x: -n.value.tickPadding,
|
|
363
359
|
y: e.value.step() / 2,
|
|
364
360
|
"text-anchor": "end",
|
|
365
361
|
"alignment-baseline": "middle"
|
|
@@ -367,11 +363,11 @@ const Kt = {
|
|
|
367
363
|
}
|
|
368
364
|
return {
|
|
369
365
|
getGridLinesAttributes: l,
|
|
370
|
-
getTickGhostAttributes:
|
|
366
|
+
getTickGhostAttributes: r,
|
|
371
367
|
getTickGroupAttributes: a,
|
|
372
368
|
getTickLabelAttributes: i
|
|
373
369
|
};
|
|
374
|
-
},
|
|
370
|
+
}, zn = function(e, t, n) {
|
|
375
371
|
const o = v(() => {
|
|
376
372
|
const c = e.value.ticks();
|
|
377
373
|
return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
|
|
@@ -381,32 +377,32 @@ const Kt = {
|
|
|
381
377
|
transform: `translate(${e.value(c)}, 0)`
|
|
382
378
|
};
|
|
383
379
|
}
|
|
384
|
-
function
|
|
380
|
+
function r() {
|
|
385
381
|
return {
|
|
386
|
-
height:
|
|
382
|
+
height: n.value.tickPadding + Yt + Ge,
|
|
387
383
|
width: o.value,
|
|
388
384
|
x: -(o.value / 2)
|
|
389
385
|
};
|
|
390
386
|
}
|
|
391
387
|
function l() {
|
|
392
388
|
return {
|
|
393
|
-
y1: -
|
|
389
|
+
y1: -t.value.height
|
|
394
390
|
};
|
|
395
391
|
}
|
|
396
392
|
function i() {
|
|
397
393
|
return {
|
|
398
|
-
y:
|
|
394
|
+
y: n.value.tickPadding,
|
|
399
395
|
dy: "0.8em",
|
|
400
396
|
"text-anchor": "middle"
|
|
401
397
|
};
|
|
402
398
|
}
|
|
403
399
|
return {
|
|
404
400
|
getGridLinesAttributes: l,
|
|
405
|
-
getTickGhostAttributes:
|
|
401
|
+
getTickGhostAttributes: r,
|
|
406
402
|
getTickGroupAttributes: a,
|
|
407
403
|
getTickLabelAttributes: i
|
|
408
404
|
};
|
|
409
|
-
},
|
|
405
|
+
}, Wn = function(e, t, n) {
|
|
410
406
|
const o = v(() => {
|
|
411
407
|
const c = e.value.ticks();
|
|
412
408
|
return c.length > 1 ? e.value(c[1]) - e.value(c[0]) : 0;
|
|
@@ -416,9 +412,9 @@ const Kt = {
|
|
|
416
412
|
transform: `translate(0, ${e.value(c)})`
|
|
417
413
|
};
|
|
418
414
|
}
|
|
419
|
-
function
|
|
420
|
-
var
|
|
421
|
-
const s = (((
|
|
415
|
+
function r(c) {
|
|
416
|
+
var f;
|
|
417
|
+
const s = (((f = c == null ? void 0 : c.getComputedTextLength) == null ? void 0 : f.call(c)) || 0) + n.value.tickPadding + Ge;
|
|
422
418
|
return {
|
|
423
419
|
width: s,
|
|
424
420
|
height: o.value,
|
|
@@ -428,46 +424,46 @@ const Kt = {
|
|
|
428
424
|
}
|
|
429
425
|
function l() {
|
|
430
426
|
return {
|
|
431
|
-
x1:
|
|
427
|
+
x1: t.value.width
|
|
432
428
|
};
|
|
433
429
|
}
|
|
434
430
|
function i() {
|
|
435
431
|
return {
|
|
436
|
-
x: -
|
|
432
|
+
x: -n.value.tickPadding,
|
|
437
433
|
dy: "0.4em",
|
|
438
434
|
"text-anchor": "end"
|
|
439
435
|
};
|
|
440
436
|
}
|
|
441
437
|
return {
|
|
442
438
|
getGridLinesAttributes: l,
|
|
443
|
-
getTickGhostAttributes:
|
|
439
|
+
getTickGhostAttributes: r,
|
|
444
440
|
getTickGroupAttributes: a,
|
|
445
441
|
getTickLabelAttributes: i
|
|
446
442
|
};
|
|
447
|
-
},
|
|
448
|
-
"x-band-scale-axis":
|
|
449
|
-
"y-band-scale-axis":
|
|
450
|
-
"x-linear-scale-axis":
|
|
451
|
-
"y-linear-scale-axis":
|
|
452
|
-
},
|
|
453
|
-
/* @__PURE__ */
|
|
443
|
+
}, Zn = {
|
|
444
|
+
"x-band-scale-axis": Cn,
|
|
445
|
+
"y-band-scale-axis": Fn,
|
|
446
|
+
"x-linear-scale-axis": zn,
|
|
447
|
+
"y-linear-scale-axis": Wn
|
|
448
|
+
}, Un = ["transform"], Xn = { key: 0 }, Yn = /* @__PURE__ */ S("linearGradient", { id: "lume-tick-gradient" }, [
|
|
449
|
+
/* @__PURE__ */ S("stop", {
|
|
454
450
|
offset: "0%",
|
|
455
451
|
"stop-color": "rgba(255,255,255,0)"
|
|
456
452
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ S("stop", {
|
|
458
454
|
offset: "10%",
|
|
459
455
|
"stop-color": "var(--lume-chart-background-color)"
|
|
460
456
|
}),
|
|
461
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ S("stop", {
|
|
462
458
|
offset: "90%",
|
|
463
459
|
"stop-color": "var(--lume-chart-background-color)"
|
|
464
460
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ S("stop", {
|
|
466
462
|
offset: "100%",
|
|
467
463
|
"stop-color": "rgba(255,255,255,0)"
|
|
468
464
|
})
|
|
469
|
-
], -1),
|
|
470
|
-
|
|
465
|
+
], -1), Kn = [
|
|
466
|
+
Yn
|
|
471
467
|
];
|
|
472
468
|
var Jt = /* @__PURE__ */ ((e) => (e.bandScale = "band-scale-axis", e.linearScale = "linear-scale-axis", e))(Jt || {}), Qt = /* @__PURE__ */ ((e) => (e.left = "left", e.bottom = "bottom", e))(Qt || {}), et = /* @__PURE__ */ ((e) => (e.x = "bottom", e.y = "left", e))(et || {});
|
|
473
469
|
const Lt = /* @__PURE__ */ Z({
|
|
@@ -502,26 +498,26 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
502
498
|
...Re()
|
|
503
499
|
},
|
|
504
500
|
emits: ["mouseenter", "click", "mouseleave", "lume__internal--axis-size"],
|
|
505
|
-
setup(e, { emit:
|
|
506
|
-
const o = e, a =
|
|
501
|
+
setup(e, { emit: t }) {
|
|
502
|
+
const o = e, a = t, { scale: r, containerSize: l, hoveredIndex: i, options: c, orientation: s } = ee(o), f = Ce("isEmpty", G(!1)), u = Fe({}), m = G(null), y = G(null), p = G(null), b = v(
|
|
507
503
|
() => o.type ? et[o.type] : o.position
|
|
508
504
|
), $ = v(
|
|
509
505
|
() => o.type || (b.value === "left" ? "y" : "x")
|
|
510
506
|
), L = v(
|
|
511
507
|
() => $.value === "x" && s.value === H.VERTICAL || $.value === "y" && s.value === H.HORIZONTAL
|
|
512
|
-
), { allOptions: g } =
|
|
508
|
+
), { allOptions: g } = me(
|
|
513
509
|
c,
|
|
514
|
-
$.value === "x" ?
|
|
515
|
-
), { showTick: O } =
|
|
516
|
-
() =>
|
|
510
|
+
$.value === "x" ? Vn : Pn
|
|
511
|
+
), { showTick: O } = Rn(r, m, g), N = v(
|
|
512
|
+
() => f.value || !r.value || In(r.value)
|
|
517
513
|
), D = v(() => {
|
|
518
514
|
var k, E, h, R;
|
|
519
515
|
return $.value === "y" && N.value ? `translate(0, ${((k = l.value) == null ? void 0 : k.height) / 2})` : $.value === "x" && N.value ? `translate(-${((E = l.value) == null ? void 0 : E.width) / 2}, ${(h = l.value) == null ? void 0 : h.height})` : `translate(0, ${$.value === "x" ? (R = l.value) == null ? void 0 : R.height : 0})`;
|
|
520
516
|
}), P = v(() => {
|
|
521
|
-
if (!
|
|
522
|
-
if (de(
|
|
523
|
-
return
|
|
524
|
-
const { tickCount: k } = g.value, [E, h] =
|
|
517
|
+
if (!r.value) return [];
|
|
518
|
+
if (de(r.value))
|
|
519
|
+
return r.value.labels || r.value.domain();
|
|
520
|
+
const { tickCount: k } = g.value, [E, h] = r.value.domain();
|
|
525
521
|
return hn(E, h, k);
|
|
526
522
|
}), w = v(() => {
|
|
527
523
|
const { tickFormat: k } = g.value;
|
|
@@ -529,11 +525,11 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
529
525
|
}), B = v(
|
|
530
526
|
() => g.value.withHover && L.value && i.value > -1
|
|
531
527
|
), U = v(
|
|
532
|
-
() => g.value.tickPadding +
|
|
528
|
+
() => g.value.tickPadding + Ge || 16
|
|
533
529
|
), K = v(() => $.value === "x" ? (
|
|
534
530
|
// If x axis, get the tick height
|
|
535
531
|
Math.max(
|
|
536
|
-
...(
|
|
532
|
+
...(m.value || []).map(
|
|
537
533
|
(k) => {
|
|
538
534
|
var E, h;
|
|
539
535
|
return ((h = (E = k.ref).getBBox) == null ? void 0 : h.call(E).height) + U.value;
|
|
@@ -543,7 +539,7 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
543
539
|
) : (
|
|
544
540
|
// If y axis, get the tick width
|
|
545
541
|
Math.max(
|
|
546
|
-
...(
|
|
542
|
+
...(m.value || []).map(
|
|
547
543
|
(k) => {
|
|
548
544
|
var E, h;
|
|
549
545
|
return ((h = (E = k.ref).getBBox) == null ? void 0 : h.call(E).width) + U.value;
|
|
@@ -561,35 +557,35 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
561
557
|
function ae(k, E, h) {
|
|
562
558
|
a("click", { index: k, value: E, event: h });
|
|
563
559
|
}
|
|
564
|
-
function
|
|
560
|
+
function we(k) {
|
|
565
561
|
var E;
|
|
566
|
-
if (!(!
|
|
567
|
-
return (E =
|
|
562
|
+
if (!(!m.value || !m.value.length))
|
|
563
|
+
return (E = m.value[k]) == null ? void 0 : E.ref;
|
|
568
564
|
}
|
|
569
|
-
function
|
|
565
|
+
function fe() {
|
|
570
566
|
p.value = P.value.map(
|
|
571
567
|
(k, E) => ({
|
|
572
568
|
value: J(k),
|
|
573
|
-
group:
|
|
574
|
-
ghost:
|
|
575
|
-
label:
|
|
576
|
-
gridline:
|
|
569
|
+
group: u.getTickGroupAttributes(k, E),
|
|
570
|
+
ghost: u.getTickGhostAttributes(we(E)),
|
|
571
|
+
label: u.getTickLabelAttributes(),
|
|
572
|
+
gridline: u.getGridLinesAttributes()
|
|
577
573
|
})
|
|
578
574
|
);
|
|
579
575
|
}
|
|
580
576
|
function Te() {
|
|
581
|
-
p.value && p.value.map((k) => (k.gridline =
|
|
577
|
+
p.value && p.value.map((k) => (k.gridline = u.getGridLinesAttributes(), k));
|
|
582
578
|
}
|
|
583
579
|
function Le() {
|
|
584
|
-
if (!
|
|
585
|
-
const k =
|
|
586
|
-
Object.entries(E(
|
|
580
|
+
if (!r.value) return;
|
|
581
|
+
const k = r.value.step ? "bandScale" : "linearScale", E = Zn[`${$.value}-${Jt[k]}`];
|
|
582
|
+
Object.entries(E(r, l, g) || []).forEach(
|
|
587
583
|
([h, R]) => {
|
|
588
|
-
|
|
584
|
+
u[h] = R;
|
|
589
585
|
}
|
|
590
586
|
);
|
|
591
587
|
}
|
|
592
|
-
return X(
|
|
588
|
+
return X(r, Le, { flush: "sync", immediate: !0 }), X(r, fe, { immediate: !0 }), X(m, fe), X(K, (k) => a("lume__internal--axis-size", k)), X(o.containerSize, Te), ye(() => ze(y.value)), (k, E) => d(r) ? (_(), I("g", {
|
|
593
589
|
key: 0,
|
|
594
590
|
ref_key: "root",
|
|
595
591
|
ref: y,
|
|
@@ -598,12 +594,12 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
598
594
|
"data-j-axis": "",
|
|
599
595
|
onMouseleave: E[1] || (E[1] = (h) => a("mouseleave", h))
|
|
600
596
|
}, [
|
|
601
|
-
$.value === "x" ? (_(), I("defs",
|
|
597
|
+
$.value === "x" ? (_(), I("defs", Xn, Kn)) : z("", !0),
|
|
602
598
|
(_(!0), I(Q, null, W(p.value, (h, R) => (_(), Y(d(At), j({
|
|
603
599
|
key: `${h.value}_${R}`,
|
|
604
600
|
ref_for: !0,
|
|
605
601
|
ref_key: "tickRefs",
|
|
606
|
-
ref:
|
|
602
|
+
ref: m
|
|
607
603
|
}, h, {
|
|
608
604
|
"is-hidden": d(g).skip && !d(O)(R),
|
|
609
605
|
"with-gridlines": d(g).gridLines,
|
|
@@ -619,28 +615,28 @@ const Lt = /* @__PURE__ */ Z({
|
|
|
619
615
|
h
|
|
620
616
|
))
|
|
621
617
|
}), null, 16)) : z("", !0)
|
|
622
|
-
], 40,
|
|
618
|
+
], 40, Un)) : z("", !0);
|
|
623
619
|
}
|
|
624
620
|
});
|
|
625
|
-
function
|
|
626
|
-
const a = v(() =>
|
|
621
|
+
function Jn(e, t, n, o) {
|
|
622
|
+
const a = v(() => n.value > 0 && n.value < 1), r = v(
|
|
627
623
|
() => o.value > 0 && o.value < 1
|
|
628
624
|
), l = v(
|
|
629
625
|
() => a.value ? e.value - 0.5 : e.value
|
|
630
626
|
// draws the 1px bar closer to the axis
|
|
631
627
|
), i = v(
|
|
632
|
-
() =>
|
|
628
|
+
() => r.value ? t.value - 0.5 : t.value
|
|
633
629
|
// draws the 1px bar closer to the axis
|
|
634
630
|
);
|
|
635
|
-
return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight:
|
|
631
|
+
return { computedX: l, computedY: i, shouldHaveMinWidth: a, shouldHaveMinHeight: r };
|
|
636
632
|
}
|
|
637
|
-
function
|
|
638
|
-
const a =
|
|
633
|
+
function Qn(e, t, n, o) {
|
|
634
|
+
const a = G(0), r = G(0), l = v(() => `${e.value + n.value / 2}px ${t.value + o.value / 2}px`);
|
|
639
635
|
return ye(() => {
|
|
640
|
-
a.value =
|
|
641
|
-
}), X(
|
|
636
|
+
a.value = n.value, r.value = o.value;
|
|
637
|
+
}), X(n, (i) => a.value = i), X(o, (i) => r.value = i), { computedWidth: a, computedHeight: r, transformOrigin: l };
|
|
642
638
|
}
|
|
643
|
-
const
|
|
639
|
+
const qn = ["x", "y", "width", "height"], eo = /* @__PURE__ */ Z({
|
|
644
640
|
__name: "lume-bar",
|
|
645
641
|
props: {
|
|
646
642
|
x: {
|
|
@@ -677,21 +673,21 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
|
|
|
677
673
|
}
|
|
678
674
|
},
|
|
679
675
|
emits: ["click", "mouseover", "mouseleave"],
|
|
680
|
-
setup(e, { emit:
|
|
681
|
-
const
|
|
676
|
+
setup(e, { emit: t }) {
|
|
677
|
+
const n = e, o = t, { x: a, y: r, width: l, height: i, transition: c, classList: s } = ee(n), f = G(null), u = v(
|
|
682
678
|
() => typeof s.value == "string" ? [s.value] : s.value
|
|
683
|
-
),
|
|
684
|
-
return ye(() => ze(
|
|
679
|
+
), m = v(() => c.value === "width"), y = v(() => c.value === "height"), p = Qn(a, r, l, i), { computedX: b, computedY: $, shouldHaveMinWidth: L, shouldHaveMinHeight: g } = Jn(a, r, l, i), O = v(() => L.value ? 1 : (m.value ? p.computedWidth : l).value), N = v(() => g.value ? 1 : (y.value ? p.computedHeight : i).value), D = m.value || y.value ? p.transformOrigin : null;
|
|
680
|
+
return ye(() => ze(f.value)), (P, w) => (_(), I("rect", {
|
|
685
681
|
ref_key: "root",
|
|
686
|
-
ref:
|
|
682
|
+
ref: f,
|
|
687
683
|
class: te(["lume-bar", [
|
|
688
684
|
{
|
|
689
685
|
"lume-fill--faded": e.isFaded,
|
|
690
686
|
"lume-bar--negative": e.isNegative,
|
|
691
|
-
"lume-bar--transition-width":
|
|
687
|
+
"lume-bar--transition-width": m.value,
|
|
692
688
|
"lume-bar--transition-height": y.value
|
|
693
689
|
},
|
|
694
|
-
...
|
|
690
|
+
...u.value
|
|
695
691
|
]]),
|
|
696
692
|
style: jt({ transformOrigin: d(D) }),
|
|
697
693
|
x: d(b),
|
|
@@ -702,55 +698,55 @@ const eo = ["x", "y", "width", "height"], to = /* @__PURE__ */ Z({
|
|
|
702
698
|
onClick: w[0] || (w[0] = (B) => o("click", B)),
|
|
703
699
|
onMouseover: w[1] || (w[1] = (B) => o("mouseover", B)),
|
|
704
700
|
onMouseleave: w[2] || (w[2] = (B) => o("mouseleave", B))
|
|
705
|
-
}, null, 46,
|
|
701
|
+
}, null, 46, qn));
|
|
706
702
|
}
|
|
707
|
-
}), dt = /* @__PURE__ */ q(
|
|
708
|
-
var ke = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(ke || {}), ie = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(ie || {}), qt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(qt || {}), vt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(vt || {}),
|
|
709
|
-
const
|
|
710
|
-
function
|
|
711
|
-
return e === ke.Divergent ?
|
|
703
|
+
}), dt = /* @__PURE__ */ q(eo, [["__scopeId", "data-v-8e8f732a"]]);
|
|
704
|
+
var ke = /* @__PURE__ */ ((e) => (e.Categorical = "categorical", e.Sequential = "sequential", e.Divergent = "divergent", e))(ke || {}), ie = /* @__PURE__ */ ((e) => (e.Skyblue = "skyblue", e.Royalblue = "royalblue", e.Violet = "violet", e.Darkteal = "darkteal", e.Gold = "gold", e))(ie || {}), qt = /* @__PURE__ */ ((e) => (e.Skyblue10 = "skyblue-10", e.Skyblue20 = "skyblue-20", e.Skyblue30 = "skyblue-30", e.Skyblue40 = "skyblue-40", e.Skyblue50 = "skyblue-50", e.Skyblue60 = "skyblue-60", e.Skyblue70 = "skyblue-70", e.Skyblue80 = "skyblue-80", e.Skyblue90 = "skyblue-90", e.Skyblue100 = "skyblue-100", e.Royalblue10 = "royalblue-10", e.Royalblue20 = "royalblue-20", e.Royalblue30 = "royalblue-30", e.Royalblue40 = "royalblue-40", e.Royalblue50 = "royalblue-50", e.Royalblue60 = "royalblue-60", e.Royalblue70 = "royalblue-70", e.Royalblue80 = "royalblue-80", e.Royalblue90 = "royalblue-90", e.Royalblue100 = "royalblue-100", e.Violet10 = "violet-10", e.Violet20 = "violet-20", e.Violet30 = "violet-30", e.Violet40 = "violet-40", e.Violet50 = "violet-50", e.Violet60 = "violet-60", e.Violet70 = "violet-70", e.Violet80 = "violet-80", e.Violet90 = "violet-90", e.Violet100 = "violet-100", e.Darkteal10 = "darkteal-10", e.Darkteal20 = "darkteal-20", e.Darkteal30 = "darkteal-30", e.Darkteal40 = "darkteal-40", e.Darkteal50 = "darkteal-50", e.Darkteal60 = "darkteal-60", e.Darkteal70 = "darkteal-70", e.Darkteal80 = "darkteal-80", e.Darkteal90 = "darkteal-90", e.Darkteal100 = "darkteal-100", e.Gold10 = "gold-10", e.Gold20 = "gold-20", e.Gold30 = "gold-30", e.Gold40 = "gold-40", e.Gold50 = "gold-50", e.Gold60 = "gold-60", e.Gold70 = "gold-70", e.Gold80 = "gold-80", e.Gold90 = "gold-90", e.Gold100 = "gold-100", e))(qt || {}), vt = /* @__PURE__ */ ((e) => (e.SkyTeal = "skyblue-darkteal", e.VioletRoyal = "violet-royalblue", e.VioletTeal = "violet-darkteal", e.GoldTeal = "gold-darkteal", e.GoldRoyal = "gold-royalblue", e))(vt || {}), mt = /* @__PURE__ */ ((e) => (e.White = "white", e.Black = "black", e.Green = "green", e.Orange = "orange", e.Red = "red", e.Grey = "grey", e.Grey10 = "grey-10", e.Grey20 = "grey-20", e.Grey30 = "grey-30", e.Grey40 = "grey-40", e.Grey50 = "grey-50", e.Grey60 = "grey-60", e.Grey70 = "grey-70", e.Grey80 = "grey-80", e.Grey90 = "grey-90", e.Grey100 = "grey-100", e))(mt || {}), ft = /* @__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))(ft || {});
|
|
705
|
+
const to = ke.Categorical, Se = ie.Skyblue, no = vt.SkyTeal;
|
|
706
|
+
function oo(e) {
|
|
707
|
+
return e === ke.Divergent ? no : Se;
|
|
712
708
|
}
|
|
713
|
-
function
|
|
714
|
-
return Object.values(
|
|
709
|
+
function ao(e) {
|
|
710
|
+
return Object.values(ft).includes(e);
|
|
715
711
|
}
|
|
716
|
-
function $t(e,
|
|
717
|
-
return
|
|
712
|
+
function $t(e, t) {
|
|
713
|
+
return t === ke.Divergent ? Object.values(vt).includes(e) : Object.values({
|
|
718
714
|
...ie,
|
|
719
715
|
...qt,
|
|
720
|
-
...
|
|
721
|
-
...
|
|
716
|
+
...mt,
|
|
717
|
+
...ft
|
|
722
718
|
}).includes(e);
|
|
723
719
|
}
|
|
724
|
-
function
|
|
725
|
-
const
|
|
726
|
-
return Dn(Object.values(ie),
|
|
720
|
+
function lo(e, t) {
|
|
721
|
+
const n = Object.values(ie).indexOf(e);
|
|
722
|
+
return Dn(Object.values(ie), n > -1 ? n : 0)[t];
|
|
727
723
|
}
|
|
728
|
-
function ro(e,
|
|
729
|
-
const
|
|
730
|
-
return `${e}-${
|
|
724
|
+
function ro(e, t) {
|
|
725
|
+
const n = 50 + t * 10;
|
|
726
|
+
return `${e}-${n}`;
|
|
731
727
|
}
|
|
732
|
-
function
|
|
733
|
-
const
|
|
734
|
-
return `${e}-${
|
|
728
|
+
function uo(e, t) {
|
|
729
|
+
const n = (t + 1) * 10;
|
|
730
|
+
return `${e}-${n}`;
|
|
735
731
|
}
|
|
736
|
-
function Ot(e,
|
|
737
|
-
switch (
|
|
732
|
+
function Ot(e, t, n) {
|
|
733
|
+
switch (t) {
|
|
738
734
|
default:
|
|
739
735
|
case ke.Categorical:
|
|
740
|
-
return
|
|
736
|
+
return ao(e) ? e : lo(e, n);
|
|
741
737
|
case ke.Sequential:
|
|
742
|
-
return ro(e,
|
|
738
|
+
return ro(e, n);
|
|
743
739
|
case ke.Divergent:
|
|
744
|
-
return
|
|
740
|
+
return uo(e, n);
|
|
745
741
|
}
|
|
746
742
|
}
|
|
747
|
-
function
|
|
748
|
-
return $t(e,
|
|
743
|
+
function io(e, t, n = to, o) {
|
|
744
|
+
return $t(e, n) ? e : (o > 4 && (ge(ve.ColorLoop), o = o % 5), $t(t, n) ? Ot(t, n, o) : Ot(oo(n), n, o));
|
|
749
745
|
}
|
|
750
|
-
function
|
|
751
|
-
return e.map((
|
|
746
|
+
function so(e) {
|
|
747
|
+
return e.map((t) => $n(t) ? t : { value: t });
|
|
752
748
|
}
|
|
753
|
-
function
|
|
749
|
+
function co(e) {
|
|
754
750
|
return e.__internal === !0;
|
|
755
751
|
}
|
|
756
752
|
const pt = (e = null) => ({
|
|
@@ -772,43 +768,43 @@ const pt = (e = null) => ({
|
|
|
772
768
|
default: null
|
|
773
769
|
}
|
|
774
770
|
});
|
|
775
|
-
function ht(e,
|
|
776
|
-
const
|
|
771
|
+
function ht(e, t, n, o, a) {
|
|
772
|
+
const r = Fe({
|
|
777
773
|
width: 0,
|
|
778
774
|
height: 0
|
|
779
|
-
}), l =
|
|
780
|
-
var
|
|
781
|
-
return e.value.length > 5 && ge(ve.DatasetLength), (
|
|
782
|
-
(
|
|
783
|
-
if (
|
|
784
|
-
const y =
|
|
785
|
-
|
|
786
|
-
|
|
775
|
+
}), l = crypto.randomUUID(), i = v(() => {
|
|
776
|
+
var f;
|
|
777
|
+
return e.value.length > 5 && ge(ve.DatasetLength), (f = e.value) == null ? void 0 : f.map(
|
|
778
|
+
(u, m) => {
|
|
779
|
+
if (co(u)) return u;
|
|
780
|
+
const y = so(u.values), p = io(
|
|
781
|
+
u.color,
|
|
782
|
+
n == null ? void 0 : n.value,
|
|
787
783
|
o == null ? void 0 : o.value.colorPalette,
|
|
788
|
-
|
|
784
|
+
m
|
|
789
785
|
);
|
|
790
786
|
return {
|
|
791
|
-
...
|
|
787
|
+
...u,
|
|
792
788
|
values: y,
|
|
793
789
|
color: p,
|
|
794
790
|
__internal: !0
|
|
795
791
|
};
|
|
796
792
|
}
|
|
797
793
|
);
|
|
798
|
-
}), c = v(() => Array.isArray(
|
|
799
|
-
function s(
|
|
800
|
-
const
|
|
801
|
-
|
|
794
|
+
}), c = v(() => Array.isArray(t.value) ? t.value : Wt(e.value).map((f, u) => u));
|
|
795
|
+
function s(f) {
|
|
796
|
+
const u = (a == null ? void 0 : a.value) === H.HORIZONTAL && c.value.length * (((o == null ? void 0 : o.value.barHeight) || Tt) * 2) + ((o == null ? void 0 : o.value.barHeight) || Tt) || f.height;
|
|
797
|
+
r.width = f.width, r.height = u;
|
|
802
798
|
}
|
|
803
799
|
return {
|
|
804
800
|
chartID: l,
|
|
805
801
|
computedLabels: c,
|
|
806
|
-
containerSize:
|
|
802
|
+
containerSize: r,
|
|
807
803
|
internalData: i,
|
|
808
804
|
updateSize: s
|
|
809
805
|
};
|
|
810
806
|
}
|
|
811
|
-
const
|
|
807
|
+
const vo = () => ({
|
|
812
808
|
xScale: {
|
|
813
809
|
type: Function,
|
|
814
810
|
default: null
|
|
@@ -818,23 +814,23 @@ const fo = () => ({
|
|
|
818
814
|
default: null
|
|
819
815
|
}
|
|
820
816
|
});
|
|
821
|
-
function mo(e,
|
|
822
|
-
const
|
|
817
|
+
function mo(e, t, n, o, a) {
|
|
818
|
+
const r = G(null), l = G(null);
|
|
823
819
|
function i() {
|
|
824
|
-
var
|
|
825
|
-
const { width: c, height: s } =
|
|
826
|
-
!c && !s || (o.value === H.HORIZONTAL ? (
|
|
820
|
+
var f, u, m, y;
|
|
821
|
+
const { width: c, height: s } = n;
|
|
822
|
+
!c && !s || (o.value === H.HORIZONTAL ? (r.value = (f = e.value) != null && f.length ? xt(
|
|
827
823
|
e.value,
|
|
828
824
|
c,
|
|
829
825
|
o.value,
|
|
830
826
|
a.value.startOnZero
|
|
831
|
-
) : null, l.value = (
|
|
832
|
-
|
|
827
|
+
) : null, l.value = (u = t.value) != null && u.length ? It(
|
|
828
|
+
t.value,
|
|
833
829
|
s,
|
|
834
830
|
o.value,
|
|
835
831
|
a.value
|
|
836
|
-
) : null) : (
|
|
837
|
-
|
|
832
|
+
) : null) : (r.value = (m = t.value) != null && m.length ? It(
|
|
833
|
+
t.value,
|
|
838
834
|
c,
|
|
839
835
|
o.value,
|
|
840
836
|
a.value
|
|
@@ -845,42 +841,45 @@ function mo(e, n, t, o, a) {
|
|
|
845
841
|
a.value.startOnZero
|
|
846
842
|
) : null));
|
|
847
843
|
}
|
|
848
|
-
return Vt(i), { xScale:
|
|
844
|
+
return Vt(i), { xScale: r, yScale: l };
|
|
849
845
|
}
|
|
850
|
-
function It(e,
|
|
851
|
-
const a = [0,
|
|
846
|
+
function It(e, t, n, o) {
|
|
847
|
+
const a = [0, t], { padding: r, paddingInner: l, paddingOuter: i } = o, c = r ?? (n === H.HORIZONTAL ? Xt : Ut);
|
|
852
848
|
return Object.assign(
|
|
853
|
-
|
|
849
|
+
Me().range(a).paddingInner(l ?? c).paddingOuter(i ?? c).domain(e.map((s, f) => f)),
|
|
854
850
|
{ labels: e }
|
|
855
851
|
);
|
|
856
852
|
}
|
|
857
|
-
function xt(e,
|
|
858
|
-
const a = Ft(e).filter((
|
|
853
|
+
function xt(e, t, n, o) {
|
|
854
|
+
const a = Ft(e).filter((f) => f != null), r = [0, t];
|
|
859
855
|
if (a.length === 0)
|
|
860
|
-
return
|
|
861
|
-
const l = Math.min(...a), i = o && l > 0 ? 0 : l
|
|
862
|
-
|
|
856
|
+
return Be().range(r).domain([0, 0]).nice();
|
|
857
|
+
const l = Math.min(...a), i = o && l > 0 ? 0 : l;
|
|
858
|
+
let c = Math.max(...a);
|
|
859
|
+
o && c < 0 && (c = 0);
|
|
860
|
+
const s = n === H.HORIZONTAL ? [i, c] : [c, i];
|
|
861
|
+
return Be().range(r).domain(s).nice();
|
|
863
862
|
}
|
|
864
863
|
function wt(e) {
|
|
865
864
|
return (e == null ? void 0 : e.range) !== void 0 || (e == null ? void 0 : e.copy) !== void 0;
|
|
866
865
|
}
|
|
867
|
-
function tt(e,
|
|
868
|
-
return de(e) ? e.bandwidth() / 2 + e(e.domain()[
|
|
866
|
+
function tt(e, t) {
|
|
867
|
+
return de(e) ? e.bandwidth() / 2 + e(e.domain()[t]) : e(t);
|
|
869
868
|
}
|
|
870
|
-
function Et(e,
|
|
871
|
-
padding:
|
|
869
|
+
function Et(e, t, {
|
|
870
|
+
padding: n,
|
|
872
871
|
paddingInner: o,
|
|
873
872
|
paddingOuter: a
|
|
874
873
|
} = {}) {
|
|
875
|
-
const
|
|
876
|
-
return e.copy().paddingInner(o ??
|
|
874
|
+
const r = n ?? (t === H.HORIZONTAL ? Xt : Ut);
|
|
875
|
+
return e.copy().paddingInner(o ?? r).paddingOuter(a ?? r);
|
|
877
876
|
}
|
|
878
877
|
function gt(e) {
|
|
879
878
|
return Object.values(H).includes(e);
|
|
880
879
|
}
|
|
881
|
-
const
|
|
880
|
+
const Ie = (e, t = !0) => ({
|
|
882
881
|
...pt(e),
|
|
883
|
-
...
|
|
882
|
+
...vo(),
|
|
884
883
|
...Re(),
|
|
885
884
|
classList: {
|
|
886
885
|
type: [String, Array],
|
|
@@ -890,14 +889,14 @@ const we = (e, n = !0) => ({
|
|
|
890
889
|
type: Number,
|
|
891
890
|
default: null
|
|
892
891
|
},
|
|
893
|
-
...
|
|
892
|
+
...t ? {
|
|
894
893
|
orientation: {
|
|
895
894
|
type: String,
|
|
896
895
|
default: H.VERTICAL,
|
|
897
896
|
validator: gt
|
|
898
897
|
}
|
|
899
898
|
} : {}
|
|
900
|
-
}),
|
|
899
|
+
}), fo = (e) => ({
|
|
901
900
|
...pt(e),
|
|
902
901
|
...Re(),
|
|
903
902
|
hoveredElement: {
|
|
@@ -905,21 +904,21 @@ const we = (e, n = !0) => ({
|
|
|
905
904
|
default: null
|
|
906
905
|
}
|
|
907
906
|
});
|
|
908
|
-
function
|
|
909
|
-
const e =
|
|
907
|
+
function po() {
|
|
908
|
+
const e = G(), t = Fe({
|
|
910
909
|
dimensions: {}
|
|
911
|
-
}),
|
|
910
|
+
}), n = new ResizeObserver((o) => {
|
|
912
911
|
o.forEach((a) => {
|
|
913
|
-
|
|
912
|
+
t.dimensions = a.contentRect;
|
|
914
913
|
});
|
|
915
914
|
});
|
|
916
915
|
return ye(() => {
|
|
917
|
-
|
|
916
|
+
n.observe(e.value);
|
|
918
917
|
}), Pt(() => {
|
|
919
|
-
|
|
920
|
-
}), { resizeState:
|
|
918
|
+
n.unobserve(e.value);
|
|
919
|
+
}), { resizeState: t, resizeRef: e };
|
|
921
920
|
}
|
|
922
|
-
const
|
|
921
|
+
const ho = ["height"], go = ["transform"], yo = /* @__PURE__ */ Z({
|
|
923
922
|
__name: "lume-chart-container",
|
|
924
923
|
props: {
|
|
925
924
|
margins: {
|
|
@@ -945,23 +944,23 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
|
|
|
945
944
|
}
|
|
946
945
|
},
|
|
947
946
|
emits: ["click", "mouseenter", "mouseleave", "resize"],
|
|
948
|
-
setup(e, { emit:
|
|
949
|
-
const
|
|
950
|
-
() =>
|
|
947
|
+
setup(e, { emit: t }) {
|
|
948
|
+
const n = e, o = t, { margins: a, containerSize: r } = ee(n), l = G(null), { resizeRef: i, resizeState: c } = po(), s = v(
|
|
949
|
+
() => r.value.height + a.value.top + a.value.bottom
|
|
951
950
|
);
|
|
952
951
|
return Vt(() => {
|
|
953
952
|
if (!l.value) return;
|
|
954
|
-
const { width:
|
|
955
|
-
if (!
|
|
953
|
+
const { width: f } = c.dimensions, { height: u } = l.value.getBoundingClientRect();
|
|
954
|
+
if (!f || n.orientation === H.VERTICAL && !u)
|
|
956
955
|
return;
|
|
957
|
-
const
|
|
958
|
-
width:
|
|
956
|
+
const m = f - a.value.left - a.value.right, y = u - a.value.top - a.value.bottom, p = {
|
|
957
|
+
width: m > 0 ? m : 0,
|
|
959
958
|
height: y > 0 ? y : 0,
|
|
960
|
-
outerWidth:
|
|
961
|
-
outerHeight:
|
|
959
|
+
outerWidth: f,
|
|
960
|
+
outerHeight: u
|
|
962
961
|
};
|
|
963
962
|
o("resize", p);
|
|
964
|
-
}), (
|
|
963
|
+
}), (f, u) => (_(), I("div", {
|
|
965
964
|
ref_key: "resizeRef",
|
|
966
965
|
ref: i,
|
|
967
966
|
class: te(["lume-chart-container", {
|
|
@@ -969,7 +968,7 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
|
|
|
969
968
|
}]),
|
|
970
969
|
"data-j-chart-container": ""
|
|
971
970
|
}, [
|
|
972
|
-
M(
|
|
971
|
+
M(f.$slots, "header", {}, void 0, !0),
|
|
973
972
|
(_(), I("svg", {
|
|
974
973
|
ref_key: "root",
|
|
975
974
|
ref: l,
|
|
@@ -978,23 +977,23 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
|
|
|
978
977
|
}]),
|
|
979
978
|
height: s.value,
|
|
980
979
|
"data-j-chart-container__root": "",
|
|
981
|
-
onClick:
|
|
982
|
-
onMouseenter:
|
|
983
|
-
onMouseleave:
|
|
980
|
+
onClick: u[0] || (u[0] = (m) => o("click", m)),
|
|
981
|
+
onMouseenter: u[1] || (u[1] = (m) => o("mouseenter", m)),
|
|
982
|
+
onMouseleave: u[2] || (u[2] = (m) => o("mouseleave", m))
|
|
984
983
|
}, [
|
|
985
|
-
|
|
984
|
+
S("g", {
|
|
986
985
|
transform: `translate(${d(a).left}, ${d(a).top})`,
|
|
987
986
|
class: "lume-chart-container__group",
|
|
988
987
|
"data-j-chart-container__group": ""
|
|
989
988
|
}, [
|
|
990
|
-
M(
|
|
991
|
-
], 8,
|
|
992
|
-
], 42,
|
|
993
|
-
M(
|
|
994
|
-
M(
|
|
989
|
+
M(f.$slots, "default", {}, void 0, !0)
|
|
990
|
+
], 8, go)
|
|
991
|
+
], 42, ho)),
|
|
992
|
+
M(f.$slots, "footer", {}, void 0, !0),
|
|
993
|
+
M(f.$slots, "extra", {}, void 0, !0)
|
|
995
994
|
], 2));
|
|
996
995
|
}
|
|
997
|
-
}),
|
|
996
|
+
}), _o = /* @__PURE__ */ q(yo, [["__scopeId", "data-v-d53cdc3e"]]), ko = ["onClick", "onMouseenter"], bo = /* @__PURE__ */ Z({
|
|
998
997
|
__name: "lume-chart-legend",
|
|
999
998
|
props: {
|
|
1000
999
|
data: {
|
|
@@ -1004,59 +1003,59 @@ const go = ["height"], yo = ["transform"], _o = /* @__PURE__ */ Z({
|
|
|
1004
1003
|
}
|
|
1005
1004
|
},
|
|
1006
1005
|
emits: ["click", "mouseenter", "mouseleave"],
|
|
1007
|
-
setup(e, { emit:
|
|
1008
|
-
const
|
|
1006
|
+
setup(e, { emit: t }) {
|
|
1007
|
+
const n = t;
|
|
1009
1008
|
return (o, a) => (_(), I("div", {
|
|
1010
1009
|
class: "lume-chart-legend",
|
|
1011
1010
|
"data-j-chart-legend": "",
|
|
1012
|
-
onMouseleave: a[0] || (a[0] = (
|
|
1011
|
+
onMouseleave: a[0] || (a[0] = (r) => n("mouseleave"))
|
|
1013
1012
|
}, [
|
|
1014
|
-
(_(!0), I(Q, null, W(e.data, (
|
|
1013
|
+
(_(!0), I(Q, null, W(e.data, (r, l) => (_(), I("div", {
|
|
1015
1014
|
key: `legend-item-${l}`,
|
|
1016
1015
|
class: "lume-chart-legend__item lume-typography--caption",
|
|
1017
1016
|
tabindex: "0",
|
|
1018
1017
|
"data-j-chart-legend__symbol-wrapper": "",
|
|
1019
|
-
onClick: (i) =>
|
|
1020
|
-
onMouseenter: (i) =>
|
|
1018
|
+
onClick: (i) => n("click", { index: l, dataset: r, event: i }),
|
|
1019
|
+
onMouseenter: (i) => n("mouseenter", { index: l, dataset: r, event: i })
|
|
1021
1020
|
}, [
|
|
1022
|
-
|
|
1023
|
-
class: te(["lume-chart-legend__symbol", `lume-background-color--${
|
|
1021
|
+
S("span", {
|
|
1022
|
+
class: te(["lume-chart-legend__symbol", `lume-background-color--${r.color}`]),
|
|
1024
1023
|
"data-j-chart-legend__symbol": ""
|
|
1025
1024
|
}, null, 2),
|
|
1026
|
-
se(" " + ne(
|
|
1027
|
-
], 40,
|
|
1025
|
+
se(" " + ne(r.label || l), 1)
|
|
1026
|
+
], 40, ko))), 128))
|
|
1028
1027
|
], 32));
|
|
1029
1028
|
}
|
|
1030
|
-
}), Nt = /* @__PURE__ */ q(
|
|
1029
|
+
}), Nt = /* @__PURE__ */ q(bo, [["__scopeId", "data-v-6f1d1c44"]]), Ao = {}, To = {
|
|
1031
1030
|
class: "lume-tooltip__title",
|
|
1032
1031
|
"data-j-tooltip__title": ""
|
|
1033
1032
|
};
|
|
1034
|
-
function
|
|
1035
|
-
return _(), I("div",
|
|
1033
|
+
function Lo(e, t) {
|
|
1034
|
+
return _(), I("div", To, [
|
|
1036
1035
|
M(e.$slots, "default", {}, void 0, !0)
|
|
1037
1036
|
]);
|
|
1038
1037
|
}
|
|
1039
|
-
const
|
|
1038
|
+
const $o = /* @__PURE__ */ q(Ao, [["render", Lo], ["__scopeId", "data-v-8af3fac6"]]), Oo = {}, Io = {
|
|
1040
1039
|
class: "lume-tooltip__item",
|
|
1041
1040
|
"data-j-tooltip__summary-item": ""
|
|
1042
|
-
},
|
|
1043
|
-
function
|
|
1044
|
-
return _(), I("li",
|
|
1045
|
-
|
|
1041
|
+
}, xo = { class: "lume-tooltip__value" };
|
|
1042
|
+
function wo(e, t) {
|
|
1043
|
+
return _(), I("li", Io, [
|
|
1044
|
+
S("span", null, [
|
|
1046
1045
|
M(e.$slots, "default", {}, void 0, !0)
|
|
1047
1046
|
]),
|
|
1048
|
-
|
|
1047
|
+
S("strong", xo, [
|
|
1049
1048
|
M(e.$slots, "value", {}, void 0, !0)
|
|
1050
1049
|
])
|
|
1051
1050
|
]);
|
|
1052
1051
|
}
|
|
1053
|
-
const
|
|
1052
|
+
const Eo = /* @__PURE__ */ q(Oo, [["render", wo], ["__scopeId", "data-v-4ed7ec1b"]]), No = {
|
|
1054
1053
|
class: "lume-tooltip__item",
|
|
1055
1054
|
"data-j-tooltip__item": ""
|
|
1056
|
-
},
|
|
1055
|
+
}, Do = { "data-j-tooltip__item__label": "" }, Ho = {
|
|
1057
1056
|
class: "lume-tooltip__value",
|
|
1058
1057
|
"data-j-tooltip__item__value": ""
|
|
1059
|
-
},
|
|
1058
|
+
}, Bo = /* @__PURE__ */ Z({
|
|
1060
1059
|
__name: "lume-tooltip-item",
|
|
1061
1060
|
props: {
|
|
1062
1061
|
color: {
|
|
@@ -1065,26 +1064,26 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1065
1064
|
}
|
|
1066
1065
|
},
|
|
1067
1066
|
setup(e) {
|
|
1068
|
-
return (
|
|
1067
|
+
return (t, n) => (_(), I("li", No, [
|
|
1069
1068
|
e.color ? (_(), I("span", {
|
|
1070
1069
|
key: 0,
|
|
1071
1070
|
class: te([[`lume-background-color--${e.color}`], "lume-tooltip__symbol"]),
|
|
1072
1071
|
"data-j-tooltip__item__symbol": ""
|
|
1073
1072
|
}, null, 2)) : z("", !0),
|
|
1074
|
-
|
|
1075
|
-
M(
|
|
1073
|
+
S("span", Do, [
|
|
1074
|
+
M(t.$slots, "label", {}, void 0, !0)
|
|
1076
1075
|
]),
|
|
1077
|
-
|
|
1078
|
-
M(
|
|
1076
|
+
S("strong", Ho, [
|
|
1077
|
+
M(t.$slots, "value", {}, void 0, !0)
|
|
1079
1078
|
])
|
|
1080
1079
|
]));
|
|
1081
1080
|
}
|
|
1082
|
-
}),
|
|
1081
|
+
}), Mo = /* @__PURE__ */ q(Bo, [["__scopeId", "data-v-4f995c3c"]]), Ro = (e) => (sn("data-v-6f13599d"), e = e(), cn(), e), Go = { class: "lume-tooltip__items" }, So = {
|
|
1083
1082
|
key: 0,
|
|
1084
1083
|
class: "lume-tooltip__break"
|
|
1085
|
-
},
|
|
1086
|
-
|
|
1087
|
-
],
|
|
1084
|
+
}, jo = /* @__PURE__ */ Ro(() => /* @__PURE__ */ S("hr", null, null, -1)), Vo = [
|
|
1085
|
+
jo
|
|
1086
|
+
], Po = /* @__PURE__ */ Z({
|
|
1088
1087
|
__name: "lume-tooltip",
|
|
1089
1088
|
props: {
|
|
1090
1089
|
opened: {
|
|
@@ -1102,7 +1101,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1102
1101
|
position: {
|
|
1103
1102
|
type: String,
|
|
1104
1103
|
default: "auto",
|
|
1105
|
-
validator: (e) =>
|
|
1104
|
+
validator: (e) => jn.includes(e)
|
|
1106
1105
|
},
|
|
1107
1106
|
fixedPositioning: {
|
|
1108
1107
|
type: Boolean,
|
|
@@ -1127,12 +1126,12 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1127
1126
|
...Re()
|
|
1128
1127
|
},
|
|
1129
1128
|
emits: ["opened", "moved", "closed", "tooltip-mouseenter", "tooltip-mouseleave"],
|
|
1130
|
-
setup(e, { emit:
|
|
1131
|
-
const
|
|
1132
|
-
() => s.value.fixedPositioning ??
|
|
1133
|
-
),
|
|
1134
|
-
() =>
|
|
1135
|
-
),
|
|
1129
|
+
setup(e, { emit: t }) {
|
|
1130
|
+
const n = e, o = t, a = G(null), { items: r, options: l } = ee(n), i = re(), c = G(null), { allOptions: s } = me(l), f = v(
|
|
1131
|
+
() => s.value.fixedPositioning ?? n.fixedPositioning
|
|
1132
|
+
), u = v(
|
|
1133
|
+
() => f.value ? "fixed" : "absolute"
|
|
1134
|
+
), m = v(() => [
|
|
1136
1135
|
{
|
|
1137
1136
|
name: "computeStyles",
|
|
1138
1137
|
options: {
|
|
@@ -1144,34 +1143,34 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1144
1143
|
name: "offset",
|
|
1145
1144
|
options: { offset: [0, s.value.offset || 8] }
|
|
1146
1145
|
},
|
|
1147
|
-
...
|
|
1146
|
+
...n.modifiers || []
|
|
1148
1147
|
]), y = v(
|
|
1149
|
-
() => s.value.showTitle !== !1 &&
|
|
1148
|
+
() => s.value.showTitle !== !1 && n.title != null
|
|
1150
1149
|
), p = v(() => Ve(s.value.valueFormat)), b = v(() => Ve(s.value.titleFormat)), $ = v(
|
|
1151
1150
|
() => {
|
|
1152
1151
|
var P;
|
|
1153
|
-
return ((P =
|
|
1154
|
-
label: s.value.summary ??
|
|
1152
|
+
return ((P = r.value) == null ? void 0 : P.find((w) => w.isSummary)) || {
|
|
1153
|
+
label: s.value.summary ?? n.summary
|
|
1155
1154
|
};
|
|
1156
1155
|
}
|
|
1157
|
-
), L = v(() => i.summary || $.value.label), g = v(() =>
|
|
1156
|
+
), L = v(() => i.summary || $.value.label), g = v(() => n.inverse || s.value.inverse ? [...r.value].reverse() : r.value);
|
|
1158
1157
|
function O() {
|
|
1159
|
-
|
|
1160
|
-
placement:
|
|
1161
|
-
strategy:
|
|
1162
|
-
modifiers:
|
|
1163
|
-
}), o("opened",
|
|
1158
|
+
n.targetElement && a.value && (c.value = kn(n.targetElement, a.value, {
|
|
1159
|
+
placement: n.position,
|
|
1160
|
+
strategy: u.value,
|
|
1161
|
+
modifiers: m.value
|
|
1162
|
+
}), o("opened", n.targetElement));
|
|
1164
1163
|
}
|
|
1165
1164
|
function N() {
|
|
1166
1165
|
c.value && (c.value.destroy(), o("closed"), a.value && a.value.classList.remove("lume-tooltip--animated"));
|
|
1167
1166
|
}
|
|
1168
1167
|
function D() {
|
|
1169
|
-
c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"),
|
|
1170
|
-
c.value.state.elements.reference =
|
|
1168
|
+
c.value && (s.value.withAnimation !== !1 && a.value && a.value.classList.add("lume-tooltip--animated"), n.targetElement ? function() {
|
|
1169
|
+
c.value.state.elements.reference = n.targetElement, c.value.update(), o("moved", n.targetElement);
|
|
1171
1170
|
}() : N());
|
|
1172
1171
|
}
|
|
1173
1172
|
return X(
|
|
1174
|
-
() =>
|
|
1173
|
+
() => n.targetElement,
|
|
1175
1174
|
async (P, w) => {
|
|
1176
1175
|
!w && P ? (await Qe(), O()) : D();
|
|
1177
1176
|
}
|
|
@@ -1188,16 +1187,16 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1188
1187
|
}, [
|
|
1189
1188
|
M(P.$slots, "default", {}, () => [
|
|
1190
1189
|
M(P.$slots, "title", {}, () => [
|
|
1191
|
-
y.value ? (_(), Y(d(
|
|
1190
|
+
y.value ? (_(), Y(d($o), { key: 0 }, {
|
|
1192
1191
|
default: V(() => [
|
|
1193
1192
|
se(ne(b.value(e.title)), 1)
|
|
1194
1193
|
]),
|
|
1195
1194
|
_: 1
|
|
1196
1195
|
})) : z("", !0)
|
|
1197
1196
|
], !0),
|
|
1198
|
-
|
|
1197
|
+
S("ul", Go, [
|
|
1199
1198
|
M(P.$slots, "summary", {}, () => [
|
|
1200
|
-
L.value ? (_(), Y(d(
|
|
1199
|
+
L.value ? (_(), Y(d(Eo), { key: 0 }, ce({
|
|
1201
1200
|
default: V(() => [
|
|
1202
1201
|
se(ne($.value.label) + " ", 1)
|
|
1203
1202
|
]),
|
|
@@ -1212,9 +1211,9 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1212
1211
|
} : void 0
|
|
1213
1212
|
]), 1024)) : z("", !0)
|
|
1214
1213
|
], !0),
|
|
1215
|
-
L.value ? (_(), I("li",
|
|
1214
|
+
L.value ? (_(), I("li", So, Vo)) : z("", !0),
|
|
1216
1215
|
M(P.$slots, "items", {}, () => [
|
|
1217
|
-
(_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(
|
|
1216
|
+
(_(!0), I(Q, null, W(g.value, (B) => (_(), Y(d(Mo), {
|
|
1218
1217
|
key: B.label,
|
|
1219
1218
|
color: B.color
|
|
1220
1219
|
}, {
|
|
@@ -1231,7 +1230,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1231
1230
|
], !0)
|
|
1232
1231
|
], 34)) : z("", !0);
|
|
1233
1232
|
}
|
|
1234
|
-
}),
|
|
1233
|
+
}), Co = /* @__PURE__ */ q(Po, [["__scopeId", "data-v-6f13599d"]]), We = () => ({
|
|
1235
1234
|
data: {
|
|
1236
1235
|
type: Array,
|
|
1237
1236
|
required: !0
|
|
@@ -1273,7 +1272,7 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1273
1272
|
type: [String, Array],
|
|
1274
1273
|
default: () => []
|
|
1275
1274
|
}
|
|
1276
|
-
}),
|
|
1275
|
+
}), Fo = { class: "lume-overlay-group" }, zo = /* @__PURE__ */ Z({
|
|
1277
1276
|
__name: "lume-overlay-group",
|
|
1278
1277
|
props: {
|
|
1279
1278
|
...We(),
|
|
@@ -1283,12 +1282,12 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1283
1282
|
}
|
|
1284
1283
|
},
|
|
1285
1284
|
emits: ["click", "lume__internal--hover", "mouseover"],
|
|
1286
|
-
setup(e, { emit:
|
|
1287
|
-
const
|
|
1288
|
-
function s(
|
|
1285
|
+
setup(e, { emit: t }) {
|
|
1286
|
+
const n = e, o = t, { data: a, orientation: r, xScale: l, yScale: i } = ee(n), c = v(() => Wt(a));
|
|
1287
|
+
function s(f) {
|
|
1289
1288
|
var L;
|
|
1290
|
-
const
|
|
1291
|
-
return
|
|
1289
|
+
const u = r.value === H.HORIZONTAL ? i.value : l.value, m = u.domain(), y = On(u), p = ((L = u.paddingInner) == null ? void 0 : L.call(u)) ?? 0, b = y * p, $ = de(u) ? u(m[f]) - b / 2 : u(f) - y / 2;
|
|
1290
|
+
return r.value === H.HORIZONTAL ? {
|
|
1292
1291
|
width: Math.max(...l.value.range()),
|
|
1293
1292
|
height: y,
|
|
1294
1293
|
transform: `translate(0, ${$})`
|
|
@@ -1298,8 +1297,8 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1298
1297
|
transform: `translate(${$}, 0)`
|
|
1299
1298
|
};
|
|
1300
1299
|
}
|
|
1301
|
-
return (
|
|
1302
|
-
(_(!0), I(Q, null, W(c.value, (
|
|
1300
|
+
return (f, u) => (_(), I("g", Fo, [
|
|
1301
|
+
(_(!0), I(Q, null, W(c.value, (m, y) => (_(), Y(d(dt), j(s(y), {
|
|
1303
1302
|
key: `overlay-${y}`,
|
|
1304
1303
|
"data-j-lume-overlay-group": y,
|
|
1305
1304
|
transition: !1,
|
|
@@ -1309,86 +1308,86 @@ const No = /* @__PURE__ */ q(Io, [["render", Eo], ["__scopeId", "data-v-4ed7ec1b
|
|
|
1309
1308
|
}), null, 16, ["data-j-lume-overlay-group", "onMouseover", "onClick"]))), 128))
|
|
1310
1309
|
]));
|
|
1311
1310
|
}
|
|
1312
|
-
}), _e = (e,
|
|
1313
|
-
function
|
|
1311
|
+
}), _e = (e, t) => {
|
|
1312
|
+
function n(r, ...l) {
|
|
1314
1313
|
}
|
|
1315
|
-
function o(
|
|
1314
|
+
function o(r, l) {
|
|
1316
1315
|
}
|
|
1317
|
-
return { componentEventPropagator: {}, emitInternalEvent:
|
|
1316
|
+
return { componentEventPropagator: {}, emitInternalEvent: n, listenInternalEvent: o };
|
|
1318
1317
|
};
|
|
1319
|
-
function
|
|
1318
|
+
function Wo(e) {
|
|
1320
1319
|
return { hasNegativeValues: v(
|
|
1321
|
-
() => Ft(e.value).some((
|
|
1320
|
+
() => Ft(e.value).some((n) => n < 0)
|
|
1322
1321
|
) };
|
|
1323
1322
|
}
|
|
1324
|
-
function
|
|
1323
|
+
function Zo(e, t, n, o) {
|
|
1325
1324
|
const a = v(
|
|
1326
1325
|
() => o.value === H.HORIZONTAL
|
|
1327
|
-
),
|
|
1326
|
+
), r = v(
|
|
1328
1327
|
() => {
|
|
1329
1328
|
var s;
|
|
1330
|
-
return e.height - (a != null && a.value ? 0 : ((s =
|
|
1329
|
+
return e.height - (a != null && a.value ? 0 : ((s = n.value) == null ? void 0 : s.call(n, 0)) || 0);
|
|
1331
1330
|
}
|
|
1332
1331
|
), l = v(
|
|
1333
1332
|
() => {
|
|
1334
1333
|
var s;
|
|
1335
|
-
return a != null && a.value ? ((s =
|
|
1334
|
+
return a != null && a.value ? ((s = t.value) == null ? void 0 : s.call(t, 0)) || 0 : e.width;
|
|
1336
1335
|
}
|
|
1337
1336
|
), i = v(
|
|
1338
1337
|
() => {
|
|
1339
1338
|
var s;
|
|
1340
|
-
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s =
|
|
1339
|
+
return a != null && a.value ? "translate(0, 0)" : `translate(0, ${((s = n.value) == null ? void 0 : s.call(n, 0)) || 0})`;
|
|
1341
1340
|
}
|
|
1342
1341
|
);
|
|
1343
1342
|
return { negativeBarAttributes: v(() => ({
|
|
1344
1343
|
width: l.value,
|
|
1345
|
-
height:
|
|
1344
|
+
height: r.value,
|
|
1346
1345
|
transform: i.value
|
|
1347
1346
|
})) };
|
|
1348
1347
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return e.reduce((
|
|
1351
|
-
(a,
|
|
1348
|
+
function Uo(e, t) {
|
|
1349
|
+
return e.reduce((n, o) => ct(o.values, t).map(
|
|
1350
|
+
(a, r) => n[r] ? a.value > n[r] ? a.value : n[r] : a.value ?? 0
|
|
1352
1351
|
), []);
|
|
1353
1352
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return e.reduce((
|
|
1356
|
-
(a,
|
|
1353
|
+
function Xo(e, t) {
|
|
1354
|
+
return e.reduce((n, o) => ct(o.values, t).map(
|
|
1355
|
+
(a, r) => {
|
|
1357
1356
|
const l = a.value == null || a.value < 0 ? 0 : a.value;
|
|
1358
|
-
return
|
|
1357
|
+
return n[r] ? n[r] + l : l;
|
|
1359
1358
|
}
|
|
1360
1359
|
), []);
|
|
1361
1360
|
}
|
|
1362
1361
|
const Dt = {
|
|
1363
|
-
"stacked-bar":
|
|
1362
|
+
"stacked-bar": Xo
|
|
1364
1363
|
};
|
|
1365
|
-
function en(e,
|
|
1364
|
+
function en(e, t, n, o, a, r, l, i) {
|
|
1366
1365
|
const c = v(
|
|
1367
1366
|
() => {
|
|
1368
|
-
var
|
|
1369
|
-
return
|
|
1367
|
+
var f;
|
|
1368
|
+
return t.value.withTooltip !== !1 && !((f = t.value.tooltipOptions) != null && f.targetElement);
|
|
1370
1369
|
}
|
|
1371
1370
|
);
|
|
1372
|
-
function s(
|
|
1371
|
+
function s(f) {
|
|
1373
1372
|
var y;
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
) :
|
|
1378
|
-
e.value =
|
|
1379
|
-
cx: (
|
|
1380
|
-
cy: (
|
|
1373
|
+
const u = ((y = a == null ? void 0 : a.value) == null ? void 0 : y.length) ?? 0, m = i != null && i.value && Dt[i.value] ? Dt[i.value](
|
|
1374
|
+
f,
|
|
1375
|
+
u
|
|
1376
|
+
) : Uo(f, u);
|
|
1377
|
+
e.value = m.map((p, b) => ({
|
|
1378
|
+
cx: (r == null ? void 0 : r.value) === H.HORIZONTAL ? n.value(p) : tt(n.value, b),
|
|
1379
|
+
cy: (r == null ? void 0 : r.value) === H.HORIZONTAL ? tt(o.value, b) : o.value(p)
|
|
1381
1380
|
}));
|
|
1382
1381
|
}
|
|
1383
1382
|
return X(
|
|
1384
|
-
[
|
|
1383
|
+
[n, o],
|
|
1385
1384
|
() => {
|
|
1386
|
-
|
|
1385
|
+
n.value && o.value && (l != null && l.value) && c.value && s(l.value);
|
|
1387
1386
|
},
|
|
1388
1387
|
{ immediate: !0 }
|
|
1389
1388
|
), { shouldGenerateTooltipAnchors: c, updateTooltipAnchorAttributes: s };
|
|
1390
1389
|
}
|
|
1391
|
-
function
|
|
1390
|
+
function Yo() {
|
|
1392
1391
|
const e = Fe({
|
|
1393
1392
|
opened: !1,
|
|
1394
1393
|
targetElement: null
|
|
@@ -1399,14 +1398,14 @@ function Ko() {
|
|
|
1399
1398
|
e.opened = !1, e.targetElement = null;
|
|
1400
1399
|
} };
|
|
1401
1400
|
}
|
|
1402
|
-
function
|
|
1401
|
+
function Ko(e) {
|
|
1403
1402
|
return { getTooltipItems: v(
|
|
1404
|
-
() => (
|
|
1403
|
+
() => (n) => e.value.map(({ color: o, label: a, values: r }) => {
|
|
1405
1404
|
var l, i, c;
|
|
1406
1405
|
return {
|
|
1407
|
-
color: ((l =
|
|
1406
|
+
color: ((l = r[n]) == null ? void 0 : l.color) || o,
|
|
1408
1407
|
label: a,
|
|
1409
|
-
value: ((i =
|
|
1408
|
+
value: ((i = r[n]) == null ? void 0 : i.label) ?? ((c = r[n]) == null ? void 0 : c.value) ?? Zt
|
|
1410
1409
|
};
|
|
1411
1410
|
})
|
|
1412
1411
|
) };
|
|
@@ -1425,61 +1424,61 @@ const nt = 16, ot = 8, at = 28, lt = 24, be = {
|
|
|
1425
1424
|
left: lt
|
|
1426
1425
|
}
|
|
1427
1426
|
};
|
|
1428
|
-
function
|
|
1427
|
+
function Jo(e) {
|
|
1429
1428
|
return !e || e === "auto" || e.top == null || e.top === "auto" ? nt : e.top;
|
|
1430
1429
|
}
|
|
1431
|
-
function
|
|
1430
|
+
function Qo(e) {
|
|
1432
1431
|
return !e || e === "auto" || e.right == null || e.right === "auto" ? ot : e.right;
|
|
1433
1432
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ?
|
|
1433
|
+
function qo(e, t) {
|
|
1434
|
+
return !e || e === "auto" || e.bottom == null || e.bottom === "auto" ? t || at : e.bottom;
|
|
1436
1435
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return !e || e === "auto" || e.left == null || e.left === "auto" ?
|
|
1436
|
+
function ea(e, t) {
|
|
1437
|
+
return !e || e === "auto" || e.left == null || e.left === "auto" ? t || lt : e.left;
|
|
1439
1438
|
}
|
|
1440
|
-
const
|
|
1439
|
+
const ta = { class: "lume-chart__header" }, na = { class: "lume-chart__header-section" }, oa = {
|
|
1441
1440
|
key: 0,
|
|
1442
1441
|
class: "lume-chart__title lume-chart-title lume-typography--display"
|
|
1443
|
-
},
|
|
1442
|
+
}, aa = { class: "lume-chart__controls" }, la = { class: "lume-chart__header-section" }, ra = {
|
|
1444
1443
|
key: 0,
|
|
1445
1444
|
class: "lume-chart__axis-title lume-axis-title lume-typography--caption"
|
|
1446
|
-
},
|
|
1445
|
+
}, ua = { key: 3 }, ia = ["r"], sa = {
|
|
1447
1446
|
key: 0,
|
|
1448
1447
|
class: "lume-chart__axis-title lume-chart__axis-title--centered lume-axis-title lume-typography--body"
|
|
1449
|
-
},
|
|
1448
|
+
}, ca = /* @__PURE__ */ Z({
|
|
1450
1449
|
__name: "lume-chart",
|
|
1451
1450
|
props: {
|
|
1452
|
-
...
|
|
1451
|
+
...Ie(),
|
|
1453
1452
|
chartType: {
|
|
1454
1453
|
type: String,
|
|
1455
1454
|
default: null
|
|
1456
1455
|
}
|
|
1457
1456
|
},
|
|
1458
|
-
setup(e, { emit:
|
|
1459
|
-
const
|
|
1457
|
+
setup(e, { emit: t }) {
|
|
1458
|
+
const n = e, o = re(), a = t, { data: r, labels: l, color: i, options: c, orientation: s, chartType: f } = ee(n), u = G(-1), m = G(null), y = G(null), p = G([]), b = G(null), $ = G(0), L = G(0), { allOptions: g } = me(c), { internalData: O, computedLabels: N, containerSize: D, updateSize: P, chartID: w } = ht(r, l, i, g, s), { xScale: B, yScale: U } = mo(
|
|
1460
1459
|
O,
|
|
1461
1460
|
N,
|
|
1462
1461
|
D,
|
|
1463
1462
|
s,
|
|
1464
1463
|
g
|
|
1465
1464
|
), K = v(() => ({
|
|
1466
|
-
top:
|
|
1467
|
-
right:
|
|
1468
|
-
bottom:
|
|
1469
|
-
left:
|
|
1465
|
+
top: Jo(g.value.margins),
|
|
1466
|
+
right: Qo(g.value.margins),
|
|
1467
|
+
bottom: qo(g.value.margins, $.value),
|
|
1468
|
+
left: ea(g.value.margins, L.value)
|
|
1470
1469
|
})), J = v(() => {
|
|
1471
1470
|
var A;
|
|
1472
|
-
return
|
|
1471
|
+
return n.xScale ? wt(n.xScale) ? n.xScale : (A = n.xScale) == null ? void 0 : A.call(n, O.value, l.value, D) : B.value;
|
|
1473
1472
|
}), C = v(() => {
|
|
1474
1473
|
var A;
|
|
1475
|
-
return
|
|
1474
|
+
return n.yScale ? wt(n.yScale) ? n.yScale : (A = n.yScale) == null ? void 0 : A.call(n, O.value, l.value, D) : U.value;
|
|
1476
1475
|
}), ae = v(() => ({
|
|
1477
1476
|
...g.value.xAxisOptions,
|
|
1478
1477
|
withHover: s.value === H.VERTICAL
|
|
1479
|
-
})),
|
|
1478
|
+
})), we = v(() => ({
|
|
1480
1479
|
...g.value.yAxisOptions,
|
|
1481
1480
|
withHover: s.value === H.HORIZONTAL
|
|
1482
|
-
})),
|
|
1481
|
+
})), fe = v(() => {
|
|
1483
1482
|
var A;
|
|
1484
1483
|
return (A = g.value.xAxisOptions) == null ? void 0 : A.title;
|
|
1485
1484
|
}), Te = v(() => {
|
|
@@ -1487,16 +1486,16 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1487
1486
|
return (A = g.value.yAxisOptions) == null ? void 0 : A.title;
|
|
1488
1487
|
}), Le = v(() => {
|
|
1489
1488
|
var A;
|
|
1490
|
-
return ((A = g.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 &&
|
|
1489
|
+
return ((A = g.value.xAxisOptions) == null ? void 0 : A.withTitle) !== !1 && fe.value;
|
|
1491
1490
|
}), k = v(() => {
|
|
1492
1491
|
var A;
|
|
1493
1492
|
return ((A = g.value.yAxisOptions) == null ? void 0 : A.withTitle) !== !1 && Te.value;
|
|
1494
1493
|
}), E = v(
|
|
1495
|
-
() =>
|
|
1494
|
+
() => r.value.every((A) => !A.values.length) || r.value.every((A) => A.values.every((T) => T === null))
|
|
1496
1495
|
), h = v(() => {
|
|
1497
1496
|
const A = [], { noBaseScales: T } = g.value;
|
|
1498
1497
|
return T || A.push(() => !!(J.value && C.value)), A.every((x) => x() === !0);
|
|
1499
|
-
}), { hasNegativeValues: R } =
|
|
1498
|
+
}), { hasNegativeValues: R } = Wo(O), { negativeBarAttributes: F } = Zo(
|
|
1500
1499
|
D,
|
|
1501
1500
|
J,
|
|
1502
1501
|
C,
|
|
@@ -1509,32 +1508,32 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1509
1508
|
l,
|
|
1510
1509
|
s,
|
|
1511
1510
|
O,
|
|
1512
|
-
|
|
1513
|
-
), { tooltipConfig:
|
|
1511
|
+
f
|
|
1512
|
+
), { tooltipConfig: Ee, showTooltip: Ze, hideTooltip: Ue } = Yo(), { getTooltipItems: Ne } = Ko(O), De = v(
|
|
1514
1513
|
() => {
|
|
1515
1514
|
var A;
|
|
1516
1515
|
return ((A = g.value.tooltipOptions) == null ? void 0 : A.position) || "top";
|
|
1517
1516
|
}
|
|
1518
|
-
),
|
|
1517
|
+
), $e = v(() => {
|
|
1519
1518
|
var T;
|
|
1520
1519
|
const A = (T = g.value.tooltipOptions) == null ? void 0 : T.withPointerEvents;
|
|
1521
|
-
return
|
|
1520
|
+
return Ee.opened && (!A || A && b.value === !1);
|
|
1522
1521
|
});
|
|
1523
1522
|
function je(A) {
|
|
1524
1523
|
var x;
|
|
1525
|
-
if (g.value.withHover === !1 || A ===
|
|
1526
|
-
const T =
|
|
1527
|
-
if (
|
|
1528
|
-
const Ye = (x = g.value.tooltipOptions) != null && x.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement :
|
|
1524
|
+
if (g.value.withHover === !1 || A === u.value) return;
|
|
1525
|
+
const T = u.value;
|
|
1526
|
+
if (u.value = A, g.value.withTooltip !== !1) {
|
|
1527
|
+
const Ye = (x = g.value.tooltipOptions) != null && x.targetElement ? g.value.tooltipOptions.targetElement === "self" ? y.value.$el : g.value.tooltipOptions.targetElement : m.value[A];
|
|
1529
1528
|
Ze(Ye);
|
|
1530
1529
|
}
|
|
1531
1530
|
a("hovered-index-changed", { newIndex: A, oldIndex: T }), a("update:hoveredIndex", A);
|
|
1532
1531
|
}
|
|
1533
1532
|
function Xe() {
|
|
1534
|
-
Ue(),
|
|
1533
|
+
Ue(), u.value = -1, a("update:hoveredIndex", -1);
|
|
1535
1534
|
}
|
|
1536
1535
|
function _t(A) {
|
|
1537
|
-
if (!
|
|
1536
|
+
if (!r.value.some(
|
|
1538
1537
|
({ values: x }) => A <= x.length - 1
|
|
1539
1538
|
)) {
|
|
1540
1539
|
ge(ve.InvalidHoveredIndex);
|
|
@@ -1542,12 +1541,12 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1542
1541
|
}
|
|
1543
1542
|
A == null || A === -1 ? Xe() : je(A);
|
|
1544
1543
|
}
|
|
1545
|
-
function
|
|
1544
|
+
function rn() {
|
|
1546
1545
|
setTimeout(() => {
|
|
1547
|
-
|
|
1546
|
+
$e.value && Xe(), a("chart-mouseleave");
|
|
1548
1547
|
}, 0);
|
|
1549
1548
|
}
|
|
1550
|
-
function
|
|
1549
|
+
function un(A) {
|
|
1551
1550
|
P(A), a("resize", A);
|
|
1552
1551
|
}
|
|
1553
1552
|
function kt({ index: A, value: T, event: x }) {
|
|
@@ -1557,22 +1556,22 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1557
1556
|
a("axis-click", { index: A, value: T, event: x });
|
|
1558
1557
|
}
|
|
1559
1558
|
return X(
|
|
1560
|
-
|
|
1559
|
+
r,
|
|
1561
1560
|
(A, T) => a("data-changed", { newValue: A, oldValue: T })
|
|
1562
1561
|
), X(
|
|
1563
1562
|
l,
|
|
1564
1563
|
(A, T) => a("labels-changed", { newValue: A, oldValue: T })
|
|
1565
|
-
), X(E, (A) => A && ge(ve.Empty), { immediate: !0 }), X(() =>
|
|
1564
|
+
), X(E, (A) => A && ge(ve.Empty), { immediate: !0 }), X(() => n.hoveredIndex, _t), X(
|
|
1566
1565
|
p,
|
|
1567
1566
|
(A) => {
|
|
1568
|
-
A &&
|
|
1567
|
+
A && n.hoveredIndex != null && u.value === -1 && _t(n.hoveredIndex);
|
|
1569
1568
|
},
|
|
1570
1569
|
{ flush: "post" }
|
|
1571
1570
|
), X(b, (A) => {
|
|
1572
|
-
A === !1 &&
|
|
1571
|
+
A === !1 && Ee.opened && Xe();
|
|
1573
1572
|
}), ye(async () => {
|
|
1574
1573
|
a("rendered"), o.groups || console.error('"groups" `<slot>` must have content.');
|
|
1575
|
-
}), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(
|
|
1574
|
+
}), Ke("chartID", w), Ke("isEmpty", E), Ke("tooltipAnchorAttributes", p), (A, T) => (_(), Y(d(_o), {
|
|
1576
1575
|
id: `lume-chart_${d(w)}`,
|
|
1577
1576
|
ref_key: "chartContainer",
|
|
1578
1577
|
ref: y,
|
|
@@ -1582,20 +1581,20 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1582
1581
|
"transparent-background": d(g).transparentBackground,
|
|
1583
1582
|
orientation: d(s),
|
|
1584
1583
|
"data-j-lume-chart": "",
|
|
1585
|
-
onResize:
|
|
1584
|
+
onResize: un,
|
|
1586
1585
|
onClick: T[24] || (T[24] = (x) => a("chart-click", x)),
|
|
1587
1586
|
onMouseenter: T[25] || (T[25] = (x) => a("chart-mouseenter", x)),
|
|
1588
|
-
onMouseleave:
|
|
1587
|
+
onMouseleave: rn
|
|
1589
1588
|
}, {
|
|
1590
1589
|
header: V(() => [
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
A.title ? (_(), I("h1",
|
|
1594
|
-
|
|
1590
|
+
S("div", ta, [
|
|
1591
|
+
S("div", na, [
|
|
1592
|
+
A.title ? (_(), I("h1", oa, ne(A.title), 1)) : z("", !0),
|
|
1593
|
+
S("div", aa, [
|
|
1595
1594
|
M(A.$slots, "controls", {}, void 0, !0)
|
|
1596
1595
|
])
|
|
1597
1596
|
]),
|
|
1598
|
-
|
|
1597
|
+
S("div", la, [
|
|
1599
1598
|
k.value ? (_(), I("h3", ra, ne(Te.value), 1)) : z("", !0),
|
|
1600
1599
|
M(A.$slots, "legend", { data: d(O) }, () => [
|
|
1601
1600
|
d(g).withLegend !== !1 && d(g).legendPosition !== "bottom" ? (_(), Y(d(Nt), {
|
|
@@ -1612,7 +1611,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1612
1611
|
])
|
|
1613
1612
|
]),
|
|
1614
1613
|
footer: V(() => [
|
|
1615
|
-
Le.value ? (_(), I("h3",
|
|
1614
|
+
Le.value ? (_(), I("h3", sa, ne(fe.value), 1)) : z("", !0),
|
|
1616
1615
|
d(g).withLegend !== !1 && d(g).legendPosition == "bottom" ? (_(), Y(d(Nt), {
|
|
1617
1616
|
key: 1,
|
|
1618
1617
|
data: d(O),
|
|
@@ -1624,30 +1623,30 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1624
1623
|
}, null, 8, ["data"])) : z("", !0)
|
|
1625
1624
|
]),
|
|
1626
1625
|
extra: V(() => [
|
|
1627
|
-
M(A.$slots, "tooltip", j(d(
|
|
1626
|
+
M(A.$slots, "tooltip", j(d(Ee), {
|
|
1628
1627
|
data: d(O),
|
|
1629
1628
|
labels: d(N),
|
|
1630
|
-
title: d(N)[
|
|
1631
|
-
items: d(
|
|
1632
|
-
position:
|
|
1629
|
+
title: d(N)[u.value],
|
|
1630
|
+
items: d(Ne)(u.value),
|
|
1631
|
+
position: De.value,
|
|
1633
1632
|
withTooltip: d(g).withTooltip !== !1,
|
|
1634
|
-
hoveredIndex:
|
|
1633
|
+
hoveredIndex: u.value,
|
|
1635
1634
|
handleMouseEnter: () => b.value = !0,
|
|
1636
1635
|
handleMouseLeave: () => b.value = !1,
|
|
1637
1636
|
options: d(g).tooltipOptions
|
|
1638
1637
|
}), () => [
|
|
1639
|
-
d(g).withTooltip !== !1 ? (_(), Y(d(
|
|
1640
|
-
position:
|
|
1641
|
-
title: d(N)[
|
|
1642
|
-
items: d(
|
|
1638
|
+
d(g).withTooltip !== !1 ? (_(), Y(d(Co), j({ key: 0 }, d(Ee), {
|
|
1639
|
+
position: De.value,
|
|
1640
|
+
title: d(N)[u.value],
|
|
1641
|
+
items: d(Ne)(u.value),
|
|
1643
1642
|
options: d(g).tooltipOptions,
|
|
1644
1643
|
"data-j-lume-chart__tooltip": "",
|
|
1645
1644
|
onOpened: T[19] || (T[19] = (x) => a("tooltip-opened", {
|
|
1646
|
-
index:
|
|
1645
|
+
index: u.value,
|
|
1647
1646
|
targetElement: x
|
|
1648
1647
|
})),
|
|
1649
1648
|
onMoved: T[20] || (T[20] = (x) => a("tooltip-moved", {
|
|
1650
|
-
index:
|
|
1649
|
+
index: u.value,
|
|
1651
1650
|
targetElement: x
|
|
1652
1651
|
})),
|
|
1653
1652
|
onClosed: T[21] || (T[21] = (x) => a("tooltip-closed")),
|
|
@@ -1658,7 +1657,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1658
1657
|
M(A.$slots, "tooltip-content", {
|
|
1659
1658
|
data: d(O),
|
|
1660
1659
|
labels: d(N),
|
|
1661
|
-
hoveredIndex:
|
|
1660
|
+
hoveredIndex: u.value
|
|
1662
1661
|
}, void 0, !0)
|
|
1663
1662
|
]),
|
|
1664
1663
|
_: 3
|
|
@@ -1678,14 +1677,14 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1678
1677
|
yScale: C.value,
|
|
1679
1678
|
containerSize: d(D),
|
|
1680
1679
|
options: d(g),
|
|
1681
|
-
hoveredIndex:
|
|
1680
|
+
hoveredIndex: u.value
|
|
1682
1681
|
}, () => [
|
|
1683
|
-
|
|
1682
|
+
ue(d(Lt), {
|
|
1684
1683
|
type: "x",
|
|
1685
1684
|
scale: J.value,
|
|
1686
1685
|
"container-size": d(D),
|
|
1687
1686
|
options: ae.value,
|
|
1688
|
-
"hovered-index":
|
|
1687
|
+
"hovered-index": u.value,
|
|
1689
1688
|
orientation: d(s),
|
|
1690
1689
|
"data-j-lume-chart__x-axis": "",
|
|
1691
1690
|
onClick: bt,
|
|
@@ -1693,12 +1692,12 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1693
1692
|
onMouseleave: T[3] || (T[3] = (x) => a("axis-mouseleave")),
|
|
1694
1693
|
"onLume__internal-AxisSize": T[4] || (T[4] = (x) => $.value = x)
|
|
1695
1694
|
}, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"]),
|
|
1696
|
-
|
|
1695
|
+
ue(d(Lt), {
|
|
1697
1696
|
type: "y",
|
|
1698
1697
|
scale: C.value,
|
|
1699
1698
|
"container-size": d(D),
|
|
1700
|
-
options:
|
|
1701
|
-
"hovered-index":
|
|
1699
|
+
options: we.value,
|
|
1700
|
+
"hovered-index": u.value,
|
|
1702
1701
|
orientation: d(s),
|
|
1703
1702
|
"data-j-lume-chart__y-axis": "",
|
|
1704
1703
|
onClick: bt,
|
|
@@ -1707,7 +1706,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1707
1706
|
"onLume__internal-AxisSize": T[6] || (T[6] = (x) => L.value = x)
|
|
1708
1707
|
}, null, 8, ["scale", "container-size", "options", "hovered-index", "orientation"])
|
|
1709
1708
|
], !0) : z("", !0),
|
|
1710
|
-
d(g).withHover !== !1 ? (_(), Y(d(
|
|
1709
|
+
d(g).withHover !== !1 ? (_(), Y(d(zo), {
|
|
1711
1710
|
key: 2,
|
|
1712
1711
|
data: d(O),
|
|
1713
1712
|
orientation: d(s),
|
|
@@ -1716,15 +1715,15 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1716
1715
|
"data-j-lume-chart__overlay-group": "",
|
|
1717
1716
|
"onLume__internal-Hover": je
|
|
1718
1717
|
}, null, 8, ["data", "orientation", "x-scale", "y-scale"])) : z("", !0),
|
|
1719
|
-
d(le) ? (_(), I("g",
|
|
1718
|
+
d(le) ? (_(), I("g", ua, [
|
|
1720
1719
|
(_(!0), I(Q, null, W(p.value, (x, Ye) => (_(), I("circle", j(x, {
|
|
1721
1720
|
ref_for: !0,
|
|
1722
1721
|
ref_key: "tooltipAnchor",
|
|
1723
|
-
ref:
|
|
1722
|
+
ref: m,
|
|
1724
1723
|
key: `anchor_${Ye}`,
|
|
1725
|
-
r: d(
|
|
1724
|
+
r: d(Sn),
|
|
1726
1725
|
class: "lume-fill--transparent"
|
|
1727
|
-
}), null, 16,
|
|
1726
|
+
}), null, 16, ia))), 128))
|
|
1728
1727
|
])) : z("", !0),
|
|
1729
1728
|
M(A.$slots, "groups", {
|
|
1730
1729
|
data: d(O),
|
|
@@ -1733,7 +1732,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1733
1732
|
orientation: d(s),
|
|
1734
1733
|
xScale: J.value,
|
|
1735
1734
|
yScale: C.value,
|
|
1736
|
-
hoveredIndex:
|
|
1735
|
+
hoveredIndex: u.value,
|
|
1737
1736
|
containerSize: d(D),
|
|
1738
1737
|
transition: d(g).withTransition !== !1,
|
|
1739
1738
|
classList: A.classList,
|
|
@@ -1753,7 +1752,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1753
1752
|
_: 3
|
|
1754
1753
|
}, 8, ["id", "margins", "container-size", "no-min-size", "transparent-background", "orientation"]));
|
|
1755
1754
|
}
|
|
1756
|
-
}),
|
|
1755
|
+
}), xe = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-17c48844"]]), Ht = 8, da = 8, va = 20, He = 2, Bt = 2, ma = ["dy", "dominant-baseline"], fa = ["y", "x", "width", "height"], pa = { class: "lume-alluvial-group__label-wrapper" }, ha = /* @__PURE__ */ Z({
|
|
1757
1756
|
__name: "lume-alluvial-node-label",
|
|
1758
1757
|
props: {
|
|
1759
1758
|
bottom: { type: Boolean, default: !1 },
|
|
@@ -1761,30 +1760,30 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1761
1760
|
maxWidth: { type: Number, default: 0 }
|
|
1762
1761
|
},
|
|
1763
1762
|
emits: ["lume__internal--node-resize"],
|
|
1764
|
-
setup(e, { emit:
|
|
1765
|
-
const
|
|
1763
|
+
setup(e, { emit: t }) {
|
|
1764
|
+
const n = e, o = t, a = G(null), r = G(n.maxWidth), l = G(1);
|
|
1766
1765
|
return X(
|
|
1767
|
-
[a, () =>
|
|
1766
|
+
[a, () => n.maxWidth],
|
|
1768
1767
|
async ([i, c]) => {
|
|
1769
1768
|
if (i && c) {
|
|
1770
|
-
|
|
1771
|
-
const { width: s, height:
|
|
1772
|
-
|
|
1769
|
+
r.value = c, await Qe();
|
|
1770
|
+
const { width: s, height: f } = i.getBoundingClientRect();
|
|
1771
|
+
r.value = s + Bt > c ? c : s + Bt, l.value = Math.ceil(f);
|
|
1773
1772
|
}
|
|
1774
1773
|
},
|
|
1775
1774
|
{ immediate: !0 }
|
|
1776
|
-
), X(
|
|
1777
|
-
i !==
|
|
1775
|
+
), X(r, async (i) => {
|
|
1776
|
+
i !== n.maxWidth && (await Qe(), o("lume__internal--node-resize"));
|
|
1778
1777
|
}), (i, c) => e.maxWidth ? (_(), I("foreignObject", {
|
|
1779
1778
|
key: 1,
|
|
1780
1779
|
class: "lume-alluvial-group__node-foreign",
|
|
1781
1780
|
y: e.bottom ? "0.1em" : -l.value + 1,
|
|
1782
|
-
x: e.left ? -
|
|
1783
|
-
width:
|
|
1781
|
+
x: e.left ? -r.value : 0,
|
|
1782
|
+
width: r.value,
|
|
1784
1783
|
height: l.value
|
|
1785
1784
|
}, [
|
|
1786
|
-
|
|
1787
|
-
|
|
1785
|
+
S("div", pa, [
|
|
1786
|
+
S("span", {
|
|
1788
1787
|
ref_key: "text",
|
|
1789
1788
|
ref: a,
|
|
1790
1789
|
class: "lume-alluvial-group__node-label"
|
|
@@ -1792,7 +1791,7 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1792
1791
|
M(i.$slots, "default", {}, void 0, !0)
|
|
1793
1792
|
], 512)
|
|
1794
1793
|
])
|
|
1795
|
-
], 8,
|
|
1794
|
+
], 8, fa)) : (_(), I("text", {
|
|
1796
1795
|
key: 0,
|
|
1797
1796
|
class: "lume-alluvial-group__node-label",
|
|
1798
1797
|
dy: e.bottom ? ".2em" : "-.2em",
|
|
@@ -1801,148 +1800,148 @@ const na = { class: "lume-chart__header" }, oa = { class: "lume-chart__header-se
|
|
|
1801
1800
|
M(i.$slots, "default", {}, void 0, !0)
|
|
1802
1801
|
], 8, ma));
|
|
1803
1802
|
}
|
|
1804
|
-
}),
|
|
1803
|
+
}), ga = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-7126dfdb"]]), ya = ["y", "dominant-baseline"], _a = /* @__PURE__ */ Z({
|
|
1805
1804
|
__name: "lume-alluvial-node-value",
|
|
1806
1805
|
props: {
|
|
1807
1806
|
bottom: { type: Boolean, default: !0 }
|
|
1808
1807
|
},
|
|
1809
1808
|
setup(e) {
|
|
1810
|
-
return (
|
|
1809
|
+
return (t, n) => (_(), I("text", {
|
|
1811
1810
|
class: "lume-alluvial-group__node-value",
|
|
1812
1811
|
y: e.bottom ? ".2em" : "-.2em",
|
|
1813
1812
|
"dominant-baseline": e.bottom ? "hanging" : "auto"
|
|
1814
1813
|
}, [
|
|
1815
|
-
M(
|
|
1816
|
-
], 8,
|
|
1814
|
+
M(t.$slots, "default", {}, void 0, !0)
|
|
1815
|
+
], 8, ya));
|
|
1817
1816
|
}
|
|
1818
|
-
}),
|
|
1817
|
+
}), ka = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-b4fc758b"]]), ba = ["transform"], Aa = ["transform"], Ta = ["transform"], La = /* @__PURE__ */ Z({
|
|
1819
1818
|
__name: "lume-alluvial-node-header",
|
|
1820
1819
|
props: {
|
|
1821
1820
|
x: { type: Number, required: !0 },
|
|
1822
1821
|
y: { type: Number, required: !0 }
|
|
1823
1822
|
},
|
|
1824
1823
|
setup(e) {
|
|
1825
|
-
const
|
|
1826
|
-
() =>
|
|
1824
|
+
const t = G(null), n = v(
|
|
1825
|
+
() => t.value && `translate(${-t.value.getBBox().width / 2}, 0)`
|
|
1827
1826
|
), o = v(
|
|
1828
|
-
() =>
|
|
1827
|
+
() => t.value && `translate(${t.value.getBBox().width / 2}, 0)`
|
|
1829
1828
|
);
|
|
1830
|
-
return (a,
|
|
1829
|
+
return (a, r) => (_(), I("g", {
|
|
1831
1830
|
transform: `translate(${e.x}, ${e.y})`
|
|
1832
1831
|
}, [
|
|
1833
|
-
|
|
1832
|
+
S("g", { transform: n.value }, [
|
|
1834
1833
|
M(a.$slots, "before", {}, void 0, !0)
|
|
1835
|
-
], 8,
|
|
1836
|
-
|
|
1834
|
+
], 8, Aa),
|
|
1835
|
+
S("text", {
|
|
1837
1836
|
ref_key: "textRef",
|
|
1838
|
-
ref:
|
|
1837
|
+
ref: t,
|
|
1839
1838
|
class: "lume-alluvial-group__node-header lume-typography--caption"
|
|
1840
1839
|
}, [
|
|
1841
1840
|
M(a.$slots, "default", {}, void 0, !0)
|
|
1842
1841
|
], 512),
|
|
1843
|
-
|
|
1842
|
+
S("g", { transform: o.value }, [
|
|
1844
1843
|
M(a.$slots, "after", {}, void 0, !0)
|
|
1845
|
-
], 8,
|
|
1846
|
-
], 8,
|
|
1844
|
+
], 8, Ta)
|
|
1845
|
+
], 8, ba));
|
|
1847
1846
|
}
|
|
1848
|
-
}),
|
|
1849
|
-
function Mt(e,
|
|
1847
|
+
}), $a = /* @__PURE__ */ q(La, [["__scopeId", "data-v-0e483453"]]);
|
|
1848
|
+
function Mt(e, t) {
|
|
1850
1849
|
return {
|
|
1851
|
-
x0: 0 + (
|
|
1852
|
-
y0: 0 + (
|
|
1853
|
-
x1: e.width - (
|
|
1854
|
-
y1: e.height - (
|
|
1850
|
+
x0: 0 + (t ? t.left : 0),
|
|
1851
|
+
y0: 0 + (t ? t.top : 0),
|
|
1852
|
+
x1: e.width - (t ? t.right : 0),
|
|
1853
|
+
y1: e.height - (t ? t.bottom : 0)
|
|
1855
1854
|
};
|
|
1856
1855
|
}
|
|
1857
|
-
function
|
|
1858
|
-
const
|
|
1859
|
-
function
|
|
1860
|
-
|
|
1856
|
+
function Oa(e) {
|
|
1857
|
+
const t = G(Mt(e));
|
|
1858
|
+
function n(o) {
|
|
1859
|
+
t.value = Mt(e, o);
|
|
1861
1860
|
}
|
|
1862
|
-
return { extents:
|
|
1861
|
+
return { extents: t, updateExtents: n };
|
|
1863
1862
|
}
|
|
1864
1863
|
var Pe = /* @__PURE__ */ ((e) => (e.GraphProblem = "There was an issue generating your alluvial graph.", e.BarScaleDomainAbove0 = "Bar linear scale domain cannot start above 0!", e.BarScaleNull = "Bar linear scale cannot be `null`", e))(Pe || {});
|
|
1865
|
-
const
|
|
1866
|
-
function
|
|
1867
|
-
|
|
1864
|
+
const Ia = "[lume] ";
|
|
1865
|
+
function rt(e, t, n = !0) {
|
|
1866
|
+
n && Ct() || console.error(Ia + "Error: " + e, t);
|
|
1868
1867
|
}
|
|
1869
|
-
const
|
|
1870
|
-
function
|
|
1868
|
+
const xa = 200;
|
|
1869
|
+
function Oe(e) {
|
|
1871
1870
|
return typeof e == "string" || typeof e == "number" ? e : e.id ?? e.label;
|
|
1872
1871
|
}
|
|
1873
|
-
function
|
|
1874
|
-
return
|
|
1872
|
+
function wa(e, t) {
|
|
1873
|
+
return t.nodes.find((n) => n.id === e);
|
|
1875
1874
|
}
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
1875
|
+
function Ea(e, t) {
|
|
1876
|
+
return t.links.find((n) => n.id === e);
|
|
1878
1877
|
}
|
|
1879
1878
|
function tn(e) {
|
|
1880
1879
|
return !!(e.sourceLinks && e.targetLinks);
|
|
1881
1880
|
}
|
|
1882
|
-
function
|
|
1883
|
-
if (!
|
|
1884
|
-
const
|
|
1881
|
+
function Na(e, t) {
|
|
1882
|
+
if (!t) return;
|
|
1883
|
+
const n = e.nodes.filter((l) => l.targetLinks.length === 0).map((l) => `${l.id}`), o = e.nodes.filter((l) => l.sourceLinks.length === 0).map((l) => `${l.id}`), a = t.filter((l) => n.includes(l.dataset.id)).reduce(
|
|
1885
1884
|
(l, i) => Math.max(l, i.getBBox().width),
|
|
1886
1885
|
-1 / 0
|
|
1887
|
-
),
|
|
1886
|
+
), r = t.filter((l) => o.includes(l.dataset.id)).reduce(
|
|
1888
1887
|
(l, i) => Math.max(l, i.getBBox().width),
|
|
1889
1888
|
-1 / 0
|
|
1890
1889
|
);
|
|
1891
1890
|
return {
|
|
1892
1891
|
left: a,
|
|
1893
1892
|
top: 0,
|
|
1894
|
-
right:
|
|
1893
|
+
right: r,
|
|
1895
1894
|
bottom: 0
|
|
1896
1895
|
};
|
|
1897
1896
|
}
|
|
1898
|
-
function
|
|
1899
|
-
return e.map((
|
|
1900
|
-
const
|
|
1897
|
+
function Da(e) {
|
|
1898
|
+
return e.map((t) => {
|
|
1899
|
+
const n = t.y1 - t.y0 < He;
|
|
1901
1900
|
return {
|
|
1902
|
-
x:
|
|
1903
|
-
y:
|
|
1901
|
+
x: t.x0,
|
|
1902
|
+
y: t.y0 - (n ? He / 2 : 0),
|
|
1904
1903
|
// Negative offset to account for the min. height
|
|
1905
|
-
width:
|
|
1906
|
-
height:
|
|
1904
|
+
width: t.x1 - t.x0,
|
|
1905
|
+
height: n ? He : t.y1 - t.y0,
|
|
1907
1906
|
textTransform: {
|
|
1908
|
-
x:
|
|
1909
|
-
y: (
|
|
1907
|
+
x: t.depth > 0 ? t.x1 + Ht : t.x0 - Ht,
|
|
1908
|
+
y: (t.y1 + t.y0) / 2
|
|
1910
1909
|
},
|
|
1911
|
-
node:
|
|
1910
|
+
node: t
|
|
1912
1911
|
};
|
|
1913
1912
|
});
|
|
1914
1913
|
}
|
|
1915
|
-
function
|
|
1914
|
+
function Ha(e) {
|
|
1916
1915
|
return [e.source.x1, e.y0];
|
|
1917
1916
|
}
|
|
1918
|
-
function
|
|
1917
|
+
function Ba(e) {
|
|
1919
1918
|
return [e.target.x0, e.y1];
|
|
1920
1919
|
}
|
|
1921
|
-
function
|
|
1922
|
-
return e.curveFunction ? gn(e.curveFunction).source(
|
|
1920
|
+
function Ma(e) {
|
|
1921
|
+
return e.curveFunction ? gn(e.curveFunction).source(Ha).target(Ba) : vn();
|
|
1923
1922
|
}
|
|
1924
|
-
function
|
|
1925
|
-
return e.map((
|
|
1926
|
-
var
|
|
1923
|
+
function Ra(e) {
|
|
1924
|
+
return e.map((t) => {
|
|
1925
|
+
var n;
|
|
1927
1926
|
return {
|
|
1928
|
-
id:
|
|
1929
|
-
color:
|
|
1930
|
-
d:
|
|
1931
|
-
strokeWidth: Math.max(1,
|
|
1932
|
-
link:
|
|
1927
|
+
id: t.id,
|
|
1928
|
+
color: t.color || ((n = t.source) == null ? void 0 : n.color) || Se,
|
|
1929
|
+
d: Ma(t)(t),
|
|
1930
|
+
strokeWidth: Math.max(1, t.width),
|
|
1931
|
+
link: t
|
|
1933
1932
|
};
|
|
1934
1933
|
});
|
|
1935
1934
|
}
|
|
1936
|
-
function Rt(e,
|
|
1935
|
+
function Rt(e, t, n, o, a) {
|
|
1937
1936
|
if (o === !1) {
|
|
1938
1937
|
e.node = {
|
|
1939
1938
|
...e.node,
|
|
1940
|
-
transitionValue: a ? void 0 :
|
|
1939
|
+
transitionValue: a ? void 0 : n
|
|
1941
1940
|
};
|
|
1942
1941
|
return;
|
|
1943
1942
|
}
|
|
1944
|
-
const
|
|
1945
|
-
let s = (Date.now() -
|
|
1943
|
+
const r = Date.now(), l = Nn(t, n), i = () => {
|
|
1944
|
+
let s = (Date.now() - r) / xa;
|
|
1946
1945
|
s > 1 && (s = 1), e.node = {
|
|
1947
1946
|
...e.node,
|
|
1948
1947
|
transitionValue: a && s === 1 ? void 0 : l(s)
|
|
@@ -1954,26 +1953,26 @@ const Ga = {
|
|
|
1954
1953
|
nodes: [],
|
|
1955
1954
|
links: []
|
|
1956
1955
|
};
|
|
1957
|
-
function
|
|
1958
|
-
return
|
|
1956
|
+
function Gt(e, t) {
|
|
1957
|
+
return t.find((n) => n.every((o) => o.x0 === e.x0));
|
|
1959
1958
|
}
|
|
1960
|
-
function
|
|
1961
|
-
const o =
|
|
1962
|
-
var
|
|
1963
|
-
return (
|
|
1959
|
+
function Sa(e, t, n) {
|
|
1960
|
+
const o = G(null), a = v(() => {
|
|
1961
|
+
var u, m;
|
|
1962
|
+
return (m = (u = e.value) == null ? void 0 : u[0]) == null ? void 0 : m.values.map(
|
|
1964
1963
|
({ label: y, color: p, value: b, deriveColorFromIncomingLinks: $, offset: L }) => ({
|
|
1965
1964
|
label: y || b.toString(),
|
|
1966
1965
|
color: p,
|
|
1967
|
-
fallbackColor: p ||
|
|
1966
|
+
fallbackColor: p || Se,
|
|
1968
1967
|
id: b,
|
|
1969
1968
|
deriveColorFromIncomingLinks: $,
|
|
1970
1969
|
offset: L
|
|
1971
1970
|
})
|
|
1972
1971
|
);
|
|
1973
|
-
}),
|
|
1972
|
+
}), r = v(
|
|
1974
1973
|
() => {
|
|
1975
|
-
var
|
|
1976
|
-
return (
|
|
1974
|
+
var u, m;
|
|
1975
|
+
return (m = (u = e.value) == null ? void 0 : u[0]) == null ? void 0 : m.values.map(
|
|
1977
1976
|
(y) => {
|
|
1978
1977
|
var p;
|
|
1979
1978
|
return (p = y.targets) == null ? void 0 : p.map(
|
|
@@ -1989,132 +1988,132 @@ function ja(e, n, t) {
|
|
|
1989
1988
|
}
|
|
1990
1989
|
).filter(Boolean).flat();
|
|
1991
1990
|
}
|
|
1992
|
-
), l = v(() =>
|
|
1993
|
-
var
|
|
1994
|
-
return (
|
|
1995
|
-
(
|
|
1996
|
-
const p =
|
|
1997
|
-
return p ? (p.push(y), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) :
|
|
1991
|
+
), l = v(() => mn().nodeId(Oe).nodeAlign(t.value.nodeAlign).nodePadding(t.value.nodePadding).nodeSort(t.value.nodeSort).nodeWidth(t.value.nodeWidth).linkSort(t.value.linkSort).iterations(t.value.iterations)), i = v(() => {
|
|
1992
|
+
var u;
|
|
1993
|
+
return (u = o.value) == null ? void 0 : u.nodes.reduce(
|
|
1994
|
+
(m, y) => {
|
|
1995
|
+
const p = Gt(y, m);
|
|
1996
|
+
return p ? (p.push(y), p.sort((b, $) => (b._y0 || b.y0) - ($._y0 || $.y0))) : m.push([y]), m;
|
|
1998
1997
|
},
|
|
1999
1998
|
[]
|
|
2000
1999
|
);
|
|
2001
2000
|
});
|
|
2002
|
-
function c(
|
|
2003
|
-
const { offset:
|
|
2001
|
+
function c(u) {
|
|
2002
|
+
const { offset: m } = u, y = Gt(u, i.value);
|
|
2004
2003
|
if (!y) return;
|
|
2005
|
-
const p = y[y.findIndex(($) => $.id ===
|
|
2006
|
-
|
|
2004
|
+
const p = y[y.findIndex(($) => $.id === u.id) - 1], b = p && y.length !== 1 ? p.y1 + m : m;
|
|
2005
|
+
u._y0 = u.y0, u._y1 = u.y1, u.y0 = b, u.y1 = u.y0 + (u._y1 - u._y0);
|
|
2007
2006
|
}
|
|
2008
|
-
function s(
|
|
2009
|
-
const { id: y, _y0: p, y0: b } =
|
|
2007
|
+
function s(u, m) {
|
|
2008
|
+
const { id: y, _y0: p, y0: b } = u, $ = m.links.filter(
|
|
2010
2009
|
(O) => O.source.id === y
|
|
2011
|
-
), L =
|
|
2010
|
+
), L = m.links.filter(
|
|
2012
2011
|
(O) => O.target.id === y
|
|
2013
2012
|
), g = b - p;
|
|
2014
2013
|
$.forEach((O) => O.y0 += g), L.forEach((O) => O.y1 += g);
|
|
2015
2014
|
}
|
|
2016
|
-
const
|
|
2017
|
-
var
|
|
2018
|
-
return o.value && ((
|
|
2019
|
-
|
|
2015
|
+
const f = v(() => {
|
|
2016
|
+
var u;
|
|
2017
|
+
return o.value && ((u = a.value) == null || u.forEach((m) => {
|
|
2018
|
+
m.value === 0 && (m.fallbackColor = mt.Grey), typeof m.offset == "number" && (c(m), s(m, o.value));
|
|
2020
2019
|
})), o.value;
|
|
2021
2020
|
});
|
|
2022
|
-
return X([l,
|
|
2021
|
+
return X([l, n], () => {
|
|
2023
2022
|
try {
|
|
2024
|
-
const { x0:
|
|
2023
|
+
const { x0: u, y0: m, x1: y, y1: p } = n.value;
|
|
2025
2024
|
o.value = l.value.extent([
|
|
2026
|
-
[
|
|
2025
|
+
[u, m],
|
|
2027
2026
|
[y, p]
|
|
2028
|
-
])({ nodes: a.value, links:
|
|
2029
|
-
} catch (
|
|
2030
|
-
|
|
2027
|
+
])({ nodes: a.value, links: r.value });
|
|
2028
|
+
} catch (u) {
|
|
2029
|
+
rt(Pe.GraphProblem, u), o.value = Ga;
|
|
2031
2030
|
}
|
|
2032
|
-
}), { columns: i, graph:
|
|
2031
|
+
}), { columns: i, graph: f };
|
|
2033
2032
|
}
|
|
2034
|
-
function
|
|
2035
|
-
return
|
|
2036
|
-
n
|
|
2037
|
-
|
|
2038
|
-
|
|
2033
|
+
function ut(e, t) {
|
|
2034
|
+
return t || (t = {}), e.targetLinks && e.targetLinks.forEach(({ source: n, value: o }) => {
|
|
2035
|
+
t[n.id] = o, ut(
|
|
2036
|
+
n,
|
|
2037
|
+
t
|
|
2039
2038
|
);
|
|
2040
|
-
}),
|
|
2039
|
+
}), t;
|
|
2041
2040
|
}
|
|
2042
|
-
function it(e,
|
|
2043
|
-
return
|
|
2044
|
-
n
|
|
2045
|
-
|
|
2046
|
-
|
|
2041
|
+
function it(e, t) {
|
|
2042
|
+
return t || (t = {}), e.sourceLinks && e.sourceLinks.forEach(({ target: n, value: o }) => {
|
|
2043
|
+
t[n.id] = o, it(
|
|
2044
|
+
n,
|
|
2045
|
+
t
|
|
2047
2046
|
);
|
|
2048
|
-
}),
|
|
2047
|
+
}), t;
|
|
2049
2048
|
}
|
|
2050
|
-
function
|
|
2051
|
-
return
|
|
2049
|
+
function ja(e, t) {
|
|
2050
|
+
return t.links.reduce((n, o) => (o.source.id in e && o.target.id in e && n.push(o.id), n), []);
|
|
2052
2051
|
}
|
|
2053
|
-
const
|
|
2054
|
-
let
|
|
2055
|
-
tn(e) ?
|
|
2052
|
+
const Va = (e, t) => {
|
|
2053
|
+
let n;
|
|
2054
|
+
tn(e) ? n = {
|
|
2056
2055
|
[e.id]: e.value,
|
|
2057
|
-
...
|
|
2056
|
+
...ut(e),
|
|
2058
2057
|
...it(e)
|
|
2059
|
-
} :
|
|
2058
|
+
} : n = {
|
|
2060
2059
|
[e.source.id]: e.source.value,
|
|
2061
2060
|
[e.target.id]: e.target.value,
|
|
2062
|
-
...
|
|
2061
|
+
...ut(e.source),
|
|
2063
2062
|
...it(e.target)
|
|
2064
2063
|
};
|
|
2065
|
-
const o =
|
|
2066
|
-
return { nodes:
|
|
2067
|
-
},
|
|
2064
|
+
const o = ja(n, t);
|
|
2065
|
+
return { nodes: n, links: o };
|
|
2066
|
+
}, Pa = (e) => {
|
|
2068
2067
|
if (tn(e)) {
|
|
2069
|
-
const
|
|
2068
|
+
const t = [...e.sourceLinks, ...e.targetLinks];
|
|
2070
2069
|
return {
|
|
2071
|
-
nodes:
|
|
2072
|
-
(
|
|
2073
|
-
{ [
|
|
2070
|
+
nodes: t.reduce(
|
|
2071
|
+
(n, { source: o, target: a, value: r }) => o === e ? { ...n, [Oe(a)]: r } : { ...n, [Oe(o)]: r },
|
|
2072
|
+
{ [Oe(e)]: e.value }
|
|
2074
2073
|
),
|
|
2075
|
-
links:
|
|
2074
|
+
links: t.map(({ id: n }) => n)
|
|
2076
2075
|
};
|
|
2077
2076
|
}
|
|
2078
2077
|
return {
|
|
2079
2078
|
nodes: {
|
|
2080
|
-
[
|
|
2081
|
-
[
|
|
2079
|
+
[Oe(e.target)]: e.value,
|
|
2080
|
+
[Oe(e.source)]: e.source.value
|
|
2082
2081
|
},
|
|
2083
2082
|
links: [e.id]
|
|
2084
2083
|
};
|
|
2085
2084
|
};
|
|
2086
|
-
function
|
|
2087
|
-
const o =
|
|
2085
|
+
function Ca(e, t, n) {
|
|
2086
|
+
const o = G(null), a = v(() => o.value ? typeof t.value.highlightedElements == "function" ? t.value.highlightedElements(
|
|
2088
2087
|
o.value,
|
|
2089
|
-
|
|
2090
|
-
) :
|
|
2091
|
-
return X(a, (
|
|
2092
|
-
if (
|
|
2088
|
+
n.value
|
|
2089
|
+
) : t.value.highlightedElements === "closest" ? Pa(o.value, n.value) : Va(o.value, n.value) : { nodes: {}, links: [] });
|
|
2090
|
+
return X(a, (r, l) => {
|
|
2091
|
+
if (r.links.length === 0 && Object.keys(r.nodes).length === 0) {
|
|
2093
2092
|
e.value.forEach((i) => {
|
|
2094
2093
|
i.node.id in l.nodes && Rt(
|
|
2095
2094
|
i,
|
|
2096
2095
|
l.nodes[i.node.id],
|
|
2097
2096
|
i.node.value,
|
|
2098
|
-
|
|
2097
|
+
t.value.withTransition,
|
|
2099
2098
|
!0
|
|
2100
2099
|
);
|
|
2101
2100
|
});
|
|
2102
2101
|
return;
|
|
2103
2102
|
}
|
|
2104
2103
|
e.value.forEach((i) => {
|
|
2105
|
-
i.node.id in
|
|
2104
|
+
i.node.id in r.nodes && Rt(
|
|
2106
2105
|
i,
|
|
2107
2106
|
i.node.value,
|
|
2108
|
-
|
|
2109
|
-
|
|
2107
|
+
r.nodes[i.node.id],
|
|
2108
|
+
t.value.withTransition
|
|
2110
2109
|
);
|
|
2111
2110
|
});
|
|
2112
2111
|
}), { highlightedElements: a, hoveredElement: o };
|
|
2113
2112
|
}
|
|
2114
|
-
const
|
|
2113
|
+
const Fa = {
|
|
2115
2114
|
class: "lume-alluvial-group",
|
|
2116
2115
|
"data-j-alluvial-group": ""
|
|
2117
|
-
},
|
|
2116
|
+
}, za = { key: 0 }, Wa = { key: 0 }, Za = ["id", "x1", "x2"], Ua = ["stop-color"], Xa = ["stop-color"], Ya = ["d", "stroke-width", "onClick", "onMouseover"], Ka = ["d", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-width", "data-id", "onClick", "onMouseover"], Ja = ["onClick", "onMouseenter", "onMouseleave", "onMouseover"], Qa = ["x", "y", "height", "width"], qa = ["transform", "data-id", "width"], el = /* @__PURE__ */ Z({
|
|
2118
2117
|
__name: "lume-alluvial-group",
|
|
2119
2118
|
props: {
|
|
2120
2119
|
...We(),
|
|
@@ -2124,14 +2123,14 @@ const za = {
|
|
|
2124
2123
|
}
|
|
2125
2124
|
},
|
|
2126
2125
|
emits: ["node-click", "node-mouseenter", "node-mouseleave", "link-click", "link-mouseenter", "link-mouseleave"],
|
|
2127
|
-
setup(e, { emit:
|
|
2128
|
-
const
|
|
2126
|
+
setup(e, { emit: t }) {
|
|
2127
|
+
const n = e, o = t, a = Ce("chartID"), { data: r, options: l } = ee(n), i = G([]), c = G([]), s = G(null), { extents: f, updateExtents: u } = Oa(n.containerSize), { columns: m, graph: y } = Sa(r, l, f), { hoveredElement: p, highlightedElements: b } = Ca(
|
|
2129
2128
|
i,
|
|
2130
2129
|
l,
|
|
2131
2130
|
y
|
|
2132
2131
|
), $ = v(() => Ve(l.value.valueFormat)), L = v(
|
|
2133
2132
|
() => Object.keys(b.value.nodes)
|
|
2134
|
-
), g = v(() =>
|
|
2133
|
+
), g = v(() => m.value ? m.value.map(
|
|
2135
2134
|
(k) => k[0].x0 + l.value.nodeWidth / 2
|
|
2136
2135
|
) : []), O = v(() => {
|
|
2137
2136
|
if (!(!l.value.nodeHeaders || !l.value.nodeHeaders.length))
|
|
@@ -2140,7 +2139,7 @@ const za = {
|
|
|
2140
2139
|
x: g.value[E]
|
|
2141
2140
|
}));
|
|
2142
2141
|
}), N = v(
|
|
2143
|
-
() => l.value.nodeHeaderPadding ??
|
|
2142
|
+
() => l.value.nodeHeaderPadding ?? va
|
|
2144
2143
|
), D = v(() => {
|
|
2145
2144
|
if (!(!l.value.gradient || !y.value))
|
|
2146
2145
|
return y.value.links.reduce((k, E) => {
|
|
@@ -2158,17 +2157,17 @@ const za = {
|
|
|
2158
2157
|
), E = [];
|
|
2159
2158
|
return k.forEach((h) => {
|
|
2160
2159
|
const R = [];
|
|
2161
|
-
c.value.filter(({ link: F }) => F.target.id === h.node.id).reverse().reduce((F, le,
|
|
2162
|
-
const Ue = le.link.target.y1 - le.link.target.y0 >
|
|
2163
|
-
let
|
|
2164
|
-
return Ue ? (
|
|
2160
|
+
c.value.filter(({ link: F }) => F.target.id === h.node.id).reverse().reduce((F, le, Ee, Ze) => {
|
|
2161
|
+
const Ue = le.link.target.y1 - le.link.target.y0 > He;
|
|
2162
|
+
let Ne, De, $e;
|
|
2163
|
+
return Ue ? (Ne = le.link.target.y1 - le.link.target.y0, De = le.link.value / h.node.value, $e = De * Ne) : $e = He / Ze.length, R.push({
|
|
2165
2164
|
x: h.x,
|
|
2166
2165
|
y: h.y + F,
|
|
2167
|
-
height:
|
|
2166
|
+
height: $e,
|
|
2168
2167
|
width: h.width,
|
|
2169
2168
|
key: `node-block-${h.node.id}-source-link-${le.link.source.id}`,
|
|
2170
|
-
class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color ||
|
|
2171
|
-
}), F +
|
|
2169
|
+
class: `lume-alluvial-group__node-block lume-fill--${le.link.source.color || Se}`
|
|
2170
|
+
}), F + $e;
|
|
2172
2171
|
}, 0), E.push({
|
|
2173
2172
|
id: h.node.id,
|
|
2174
2173
|
subNodes: R
|
|
@@ -2196,16 +2195,16 @@ const za = {
|
|
|
2196
2195
|
function ae(k, E) {
|
|
2197
2196
|
k !== p.value && (p.value = k, o("link-mouseenter", { link: k, event: E }));
|
|
2198
2197
|
}
|
|
2199
|
-
function
|
|
2198
|
+
function we(k) {
|
|
2200
2199
|
const E = p.value;
|
|
2201
2200
|
p.value = null, o("link-mouseleave", { link: E, event: k });
|
|
2202
2201
|
}
|
|
2203
|
-
function
|
|
2202
|
+
function fe(k) {
|
|
2204
2203
|
if (k == null) {
|
|
2205
2204
|
p.value = null;
|
|
2206
2205
|
return;
|
|
2207
2206
|
}
|
|
2208
|
-
const E =
|
|
2207
|
+
const E = wa(k, y.value) || Ea(k, y.value);
|
|
2209
2208
|
if (!E) {
|
|
2210
2209
|
ge(ve.InvalidHoveredElement);
|
|
2211
2210
|
return;
|
|
@@ -2217,20 +2216,20 @@ const za = {
|
|
|
2217
2216
|
return ((E = P.value.find(({ id: h }) => k === h)) == null ? void 0 : E.subNodes) ?? [];
|
|
2218
2217
|
}
|
|
2219
2218
|
function Le() {
|
|
2220
|
-
const k =
|
|
2221
|
-
|
|
2219
|
+
const k = Na(y.value, s.value);
|
|
2220
|
+
u(k);
|
|
2222
2221
|
}
|
|
2223
2222
|
return X(y, (k) => {
|
|
2224
|
-
i.value =
|
|
2225
|
-
}), X([
|
|
2226
|
-
|
|
2227
|
-
}), X(() =>
|
|
2228
|
-
O.value ? (_(), I("g",
|
|
2223
|
+
i.value = Da(k.nodes), c.value = Ra(k.links).reverse(), p.value == null && n.hoveredElementId != null && fe(n.hoveredElementId);
|
|
2224
|
+
}), X([n.containerSize, s], () => {
|
|
2225
|
+
n.containerSize.width && n.containerSize.height && Le();
|
|
2226
|
+
}), X(() => n.hoveredElementId, fe), (k, E) => (_(), I("g", Fa, [
|
|
2227
|
+
O.value ? (_(), I("g", za, [
|
|
2229
2228
|
(_(!0), I(Q, null, W(O.value, (h, R) => M(k.$slots, `node-header-${R}`, {
|
|
2230
2229
|
x: h.x,
|
|
2231
2230
|
y: -N.value
|
|
2232
2231
|
}, () => [
|
|
2233
|
-
(_(), Y(d(
|
|
2232
|
+
(_(), Y(d($a), {
|
|
2234
2233
|
key: `header_${h.x}`,
|
|
2235
2234
|
x: h.x,
|
|
2236
2235
|
y: -N.value
|
|
@@ -2242,11 +2241,11 @@ const za = {
|
|
|
2242
2241
|
}, 1032, ["x", "y"]))
|
|
2243
2242
|
], !0)), 256))
|
|
2244
2243
|
])) : z("", !0),
|
|
2245
|
-
|
|
2244
|
+
S("g", {
|
|
2246
2245
|
class: "lume-alluvial-link-group",
|
|
2247
|
-
onMouseleave:
|
|
2246
|
+
onMouseleave: we
|
|
2248
2247
|
}, [
|
|
2249
|
-
d(l).gradient ? (_(), I("defs",
|
|
2248
|
+
d(l).gradient ? (_(), I("defs", Wa, [
|
|
2250
2249
|
(_(!0), I(Q, null, W(D.value, (h, R) => (_(), I("linearGradient", {
|
|
2251
2250
|
id: `${d(a)}_${R}`,
|
|
2252
2251
|
key: R,
|
|
@@ -2254,15 +2253,15 @@ const za = {
|
|
|
2254
2253
|
x1: h.x1,
|
|
2255
2254
|
x2: h.x2
|
|
2256
2255
|
}, [
|
|
2257
|
-
|
|
2256
|
+
S("stop", {
|
|
2258
2257
|
offset: "0%",
|
|
2259
2258
|
"stop-color": `var(--lume-color--${h.source})`
|
|
2260
|
-
}, null, 8,
|
|
2261
|
-
|
|
2259
|
+
}, null, 8, Ua),
|
|
2260
|
+
S("stop", {
|
|
2262
2261
|
offset: "100%",
|
|
2263
2262
|
"stop-color": `var(--lume-color--${h.target})`
|
|
2264
|
-
}, null, 8,
|
|
2265
|
-
], 8,
|
|
2263
|
+
}, null, 8, Xa)
|
|
2264
|
+
], 8, Za))), 128))
|
|
2266
2265
|
])) : z("", !0),
|
|
2267
2266
|
(_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
|
|
2268
2267
|
key: `link-ghost_${h.id}`,
|
|
@@ -2271,11 +2270,11 @@ const za = {
|
|
|
2271
2270
|
"lume-alluvial-group__link--ghost"
|
|
2272
2271
|
]]),
|
|
2273
2272
|
d: h.d,
|
|
2274
|
-
"stroke-width": h.strokeWidth + d(
|
|
2273
|
+
"stroke-width": h.strokeWidth + d(da),
|
|
2275
2274
|
"data-j-alluvial-ghost": "",
|
|
2276
2275
|
onClick: (R) => o("link-click", { link: h.link, event: R }),
|
|
2277
2276
|
onMouseover: (R) => ae(h.link, R)
|
|
2278
|
-
}, null, 40,
|
|
2277
|
+
}, null, 40, Ya))), 128)),
|
|
2279
2278
|
(_(!0), I(Q, null, W(c.value, (h) => (_(), I("path", {
|
|
2280
2279
|
key: `link_${h.id}`,
|
|
2281
2280
|
class: te(["lume-alluvial-group__link", {
|
|
@@ -2292,7 +2291,7 @@ const za = {
|
|
|
2292
2291
|
"data-id": h.id,
|
|
2293
2292
|
onClick: (R) => o("link-click", { link: h.link, event: R }),
|
|
2294
2293
|
onMouseover: (R) => ae(h.link, R)
|
|
2295
|
-
}, null, 42,
|
|
2294
|
+
}, null, 42, Ka))), 128))
|
|
2296
2295
|
], 32),
|
|
2297
2296
|
(_(!0), I(Q, null, W(i.value, (h, R) => (_(), I("g", {
|
|
2298
2297
|
key: `node-block_${R}`,
|
|
@@ -2302,7 +2301,7 @@ const za = {
|
|
|
2302
2301
|
}]),
|
|
2303
2302
|
"data-j-alluvial-group__node-block": ""
|
|
2304
2303
|
}, [
|
|
2305
|
-
|
|
2304
|
+
S("g", {
|
|
2306
2305
|
onClick: (F) => o("node-click", { node: h.node, event: F }),
|
|
2307
2306
|
onMouseenter: (F) => o("node-mouseenter", { node: h.node, event: F }),
|
|
2308
2307
|
onMouseleave: (F) => o("node-mouseleave", { node: h.node, event: F }),
|
|
@@ -2321,8 +2320,8 @@ const za = {
|
|
|
2321
2320
|
y: h.y,
|
|
2322
2321
|
height: h.height,
|
|
2323
2322
|
width: h.width
|
|
2324
|
-
}, null, 10,
|
|
2325
|
-
|
|
2323
|
+
}, null, 10, Qa)),
|
|
2324
|
+
S("g", {
|
|
2326
2325
|
ref_for: !0,
|
|
2327
2326
|
ref_key: "nodeTextRefs",
|
|
2328
2327
|
ref: s,
|
|
@@ -2340,7 +2339,7 @@ const za = {
|
|
|
2340
2339
|
h.node.value
|
|
2341
2340
|
)
|
|
2342
2341
|
}, () => [
|
|
2343
|
-
|
|
2342
|
+
ue(d(ga), {
|
|
2344
2343
|
bottom: d(l).switchText,
|
|
2345
2344
|
left: h.node.depth === 0,
|
|
2346
2345
|
"max-width": d(l).nodeLabelMaxWidth,
|
|
@@ -2351,7 +2350,7 @@ const za = {
|
|
|
2351
2350
|
]),
|
|
2352
2351
|
_: 2
|
|
2353
2352
|
}, 1032, ["bottom", "left", "max-width"]),
|
|
2354
|
-
|
|
2353
|
+
ue(d(ka), {
|
|
2355
2354
|
bottom: !d(l).switchText
|
|
2356
2355
|
}, {
|
|
2357
2356
|
default: V(() => [
|
|
@@ -2363,12 +2362,12 @@ const za = {
|
|
|
2363
2362
|
_: 2
|
|
2364
2363
|
}, 1032, ["bottom"])
|
|
2365
2364
|
], !0)
|
|
2366
|
-
], 10,
|
|
2367
|
-
], 40,
|
|
2365
|
+
], 10, qa)
|
|
2366
|
+
], 40, Ja)
|
|
2368
2367
|
], 2))), 128))
|
|
2369
2368
|
]));
|
|
2370
2369
|
}
|
|
2371
|
-
}),
|
|
2370
|
+
}), tl = /* @__PURE__ */ q(el, [["__scopeId", "data-v-2a790ee0"]]), nl = {
|
|
2372
2371
|
margins: {
|
|
2373
2372
|
top: 0,
|
|
2374
2373
|
right: 0,
|
|
@@ -2384,16 +2383,16 @@ const za = {
|
|
|
2384
2383
|
highlightedElements: "closest",
|
|
2385
2384
|
nodePadding: 16,
|
|
2386
2385
|
nodeWidth: 16,
|
|
2387
|
-
nodeAlign:
|
|
2386
|
+
nodeAlign: fn,
|
|
2388
2387
|
valueFormat: (e) => String(e),
|
|
2389
2388
|
iterations: 6
|
|
2390
|
-
},
|
|
2389
|
+
}, Wl = /* @__PURE__ */ Z({
|
|
2391
2390
|
__name: "lume-alluvial-diagram",
|
|
2392
2391
|
props: {
|
|
2393
|
-
...
|
|
2392
|
+
...fo(st)
|
|
2394
2393
|
},
|
|
2395
|
-
setup(e, { emit:
|
|
2396
|
-
const
|
|
2394
|
+
setup(e, { emit: t }) {
|
|
2395
|
+
const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), r = Hn(re()), { options: l } = ee(n), { allOptions: i } = me(l, nl);
|
|
2397
2396
|
function c(s) {
|
|
2398
2397
|
return {
|
|
2399
2398
|
...s,
|
|
@@ -2401,13 +2400,13 @@ const za = {
|
|
|
2401
2400
|
// Alluvial chart never uses base scales
|
|
2402
2401
|
};
|
|
2403
2402
|
}
|
|
2404
|
-
return (s,
|
|
2403
|
+
return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
|
|
2405
2404
|
options: c(d(i)),
|
|
2406
2405
|
"data-j-alluvial-diagram": ""
|
|
2407
2406
|
}, oe(d(o))), ce({
|
|
2408
|
-
groups: V((
|
|
2409
|
-
|
|
2410
|
-
W(d(
|
|
2407
|
+
groups: V((u) => [
|
|
2408
|
+
ue(d(tl), j(u, { "hovered-element-id": s.hoveredElement }, oe(d(o))), ce({ _: 2 }, [
|
|
2409
|
+
W(d(r), (m, y) => ({
|
|
2411
2410
|
name: y,
|
|
2412
2411
|
fn: V((p) => [
|
|
2413
2412
|
M(s.$slots, y, pe(he(p || {})))
|
|
@@ -2417,95 +2416,95 @@ const za = {
|
|
|
2417
2416
|
]),
|
|
2418
2417
|
_: 2
|
|
2419
2418
|
}, [
|
|
2420
|
-
W(d(a), (
|
|
2421
|
-
name:
|
|
2419
|
+
W(d(a), (u, m) => ({
|
|
2420
|
+
name: m,
|
|
2422
2421
|
fn: V((y) => [
|
|
2423
|
-
M(s.$slots,
|
|
2422
|
+
M(s.$slots, m, pe(he(y || {})))
|
|
2424
2423
|
])
|
|
2425
2424
|
}))
|
|
2426
2425
|
]), 1040, ["options"]));
|
|
2427
2426
|
}
|
|
2428
2427
|
});
|
|
2429
2428
|
var nn = /* @__PURE__ */ ((e) => (e.grouped = "grouped", e.stacked = "stacked", e))(nn || {});
|
|
2430
|
-
const
|
|
2429
|
+
const Zl = /* @__PURE__ */ Z({
|
|
2431
2430
|
__name: "lume-bar-chart",
|
|
2432
2431
|
props: {
|
|
2433
|
-
...
|
|
2432
|
+
...Ie(),
|
|
2434
2433
|
type: {
|
|
2435
2434
|
type: String,
|
|
2436
2435
|
default: null,
|
|
2437
2436
|
validator: (e) => e in nn || e == null
|
|
2438
2437
|
}
|
|
2439
2438
|
},
|
|
2440
|
-
setup(e, { emit:
|
|
2441
|
-
const
|
|
2442
|
-
() => import("./
|
|
2439
|
+
setup(e, { emit: t }) {
|
|
2440
|
+
const n = Je(
|
|
2441
|
+
() => import("./B79GZzqk.js")
|
|
2443
2442
|
), o = Je(
|
|
2444
|
-
() => import("./
|
|
2443
|
+
() => import("./B-J6h1cQ.js")
|
|
2445
2444
|
), a = Je(
|
|
2446
|
-
() => import("./
|
|
2447
|
-
),
|
|
2448
|
-
["single",
|
|
2445
|
+
() => import("./DpwoykqR.js")
|
|
2446
|
+
), r = /* @__PURE__ */ new Map([
|
|
2447
|
+
["single", n],
|
|
2449
2448
|
["grouped", o],
|
|
2450
2449
|
["stacked", a]
|
|
2451
|
-
]), l = e, { componentEventPropagator: i } = _e(), c = Ae(
|
|
2452
|
-
function s(
|
|
2450
|
+
]), l = e, { componentEventPropagator: i } = _e(), c = Ae(re());
|
|
2451
|
+
function s(u) {
|
|
2453
2452
|
return {
|
|
2454
|
-
...
|
|
2453
|
+
...u,
|
|
2455
2454
|
startOnZero: !0,
|
|
2456
2455
|
// Bar chart always starts on zero,
|
|
2457
2456
|
tooltipOptions: {
|
|
2458
|
-
...(
|
|
2457
|
+
...(u == null ? void 0 : u.tooltipOptions) || {},
|
|
2459
2458
|
position: l.orientation === H.HORIZONTAL ? "right" : void 0
|
|
2460
2459
|
}
|
|
2461
2460
|
};
|
|
2462
2461
|
}
|
|
2463
|
-
const
|
|
2464
|
-
if (st(l.data)) return
|
|
2462
|
+
const f = v(() => {
|
|
2463
|
+
if (st(l.data)) return r.get("single");
|
|
2465
2464
|
if (!l.type)
|
|
2466
2465
|
throw new Error("Bar chart needs a type when there's multiple datasets.");
|
|
2467
|
-
return
|
|
2466
|
+
return r.get(l.type);
|
|
2468
2467
|
});
|
|
2469
|
-
return (
|
|
2470
|
-
options: s(
|
|
2468
|
+
return (u, m) => (_(), Y(dn(f.value), j({ ...l, ...u.$attrs }, {
|
|
2469
|
+
options: s(u.options)
|
|
2471
2470
|
}, oe(d(i))), ce({ _: 2 }, [
|
|
2472
2471
|
W(d(c), (y, p) => ({
|
|
2473
2472
|
name: p,
|
|
2474
2473
|
fn: V((b) => [
|
|
2475
|
-
M(
|
|
2474
|
+
M(u.$slots, p, pe(he(b || {})))
|
|
2476
2475
|
])
|
|
2477
2476
|
}))
|
|
2478
2477
|
]), 1040, ["options"]));
|
|
2479
2478
|
}
|
|
2480
2479
|
});
|
|
2481
|
-
function
|
|
2480
|
+
function ol(e) {
|
|
2482
2481
|
return Object.values(Gn).includes(e) || e == null;
|
|
2483
2482
|
}
|
|
2484
|
-
function
|
|
2483
|
+
function al(e) {
|
|
2485
2484
|
return Object.values(H).includes(e);
|
|
2486
2485
|
}
|
|
2487
|
-
const
|
|
2486
|
+
const ll = (e = !1) => ({
|
|
2488
2487
|
type: {
|
|
2489
2488
|
type: String,
|
|
2490
2489
|
default: null,
|
|
2491
|
-
validator:
|
|
2490
|
+
validator: ol
|
|
2492
2491
|
},
|
|
2493
2492
|
...e ? {
|
|
2494
2493
|
orientation: {
|
|
2495
2494
|
type: String,
|
|
2496
2495
|
default: H.VERTICAL,
|
|
2497
|
-
validator:
|
|
2496
|
+
validator: al
|
|
2498
2497
|
}
|
|
2499
2498
|
} : {}
|
|
2500
2499
|
});
|
|
2501
|
-
function on(e,
|
|
2502
|
-
const
|
|
2503
|
-
var
|
|
2500
|
+
function on(e, t) {
|
|
2501
|
+
const n = v(() => e.value.map((a) => {
|
|
2502
|
+
var r;
|
|
2504
2503
|
return {
|
|
2505
2504
|
...a,
|
|
2506
2505
|
values: ct(
|
|
2507
2506
|
a.values,
|
|
2508
|
-
((
|
|
2507
|
+
((r = t == null ? void 0 : t.value) == null ? void 0 : r.length) ?? 0
|
|
2509
2508
|
).map((l) => ({
|
|
2510
2509
|
...l,
|
|
2511
2510
|
value: (l == null ? void 0 : l.value) || 0
|
|
@@ -2513,50 +2512,50 @@ function on(e, n) {
|
|
|
2513
2512
|
};
|
|
2514
2513
|
})), o = v(() => {
|
|
2515
2514
|
var a;
|
|
2516
|
-
return (a =
|
|
2517
|
-
|
|
2518
|
-
}),
|
|
2515
|
+
return (a = n.value) == null ? void 0 : a.reduce((r, l) => (l.values.forEach((i, c) => {
|
|
2516
|
+
r[c] ? r[c].push(i) : r[c] = [i];
|
|
2517
|
+
}), r), []);
|
|
2519
2518
|
});
|
|
2520
|
-
return { multiBarData:
|
|
2519
|
+
return { multiBarData: n, groupedData: o };
|
|
2521
2520
|
}
|
|
2522
|
-
function rl(e,
|
|
2523
|
-
return e.value.length === 1 ? "single" :
|
|
2521
|
+
function rl(e, t) {
|
|
2522
|
+
return e.value.length === 1 ? "single" : t.value;
|
|
2524
2523
|
}
|
|
2525
|
-
function
|
|
2524
|
+
function ul(e, t, n) {
|
|
2526
2525
|
const o = v(
|
|
2527
|
-
() =>
|
|
2526
|
+
() => n.value === H.HORIZONTAL
|
|
2528
2527
|
);
|
|
2529
2528
|
function a(i) {
|
|
2530
|
-
i ||
|
|
2529
|
+
i || rt(Pe.BarScaleNull), Math.min(...i.domain()) > 0 && rt(Pe.BarScaleDomainAbove0);
|
|
2531
2530
|
}
|
|
2532
|
-
const
|
|
2533
|
-
return { barXScale:
|
|
2531
|
+
const r = v(() => o.value ? (a(e.value), e.value) : e.value), l = v(() => o.value ? t.value : (a(t.value), t.value));
|
|
2532
|
+
return { barXScale: r, barYScale: l };
|
|
2534
2533
|
}
|
|
2535
|
-
const
|
|
2534
|
+
const il = {
|
|
2536
2535
|
x: 0,
|
|
2537
2536
|
y: 0,
|
|
2538
2537
|
width: 0,
|
|
2539
2538
|
height: 0
|
|
2540
2539
|
};
|
|
2541
|
-
function
|
|
2540
|
+
function sl(e, t, n, o, a, r) {
|
|
2542
2541
|
const l = v(
|
|
2543
2542
|
() => o.value === H.HORIZONTAL
|
|
2544
2543
|
);
|
|
2545
|
-
function i(
|
|
2544
|
+
function i(u, m) {
|
|
2546
2545
|
let y, p;
|
|
2547
|
-
return l.value ? (y =
|
|
2546
|
+
return l.value ? (y = u >= 0 ? t.value(0) : t.value(u), p = n.value(n.value.domain()[m])) : (y = t.value(t.value.domain()[m]), p = u < 0 ? n.value(0) : n.value(u)), { x: y, y: p };
|
|
2548
2547
|
}
|
|
2549
|
-
function c(
|
|
2550
|
-
return l.value ?
|
|
2548
|
+
function c(u) {
|
|
2549
|
+
return l.value ? u < 0 ? t.value(0) - t.value(u) : t.value(u) - t.value(0) : t.value.bandwidth();
|
|
2551
2550
|
}
|
|
2552
|
-
function s(
|
|
2553
|
-
return l.value ?
|
|
2551
|
+
function s(u) {
|
|
2552
|
+
return l.value ? n.value.bandwidth() : u < 0 ? n.value(u) - n.value(0) : n.value(0) - n.value(u);
|
|
2554
2553
|
}
|
|
2555
|
-
function
|
|
2556
|
-
if (!(
|
|
2557
|
-
const { value: b, color: $ } =
|
|
2554
|
+
function f(u, m, y) {
|
|
2555
|
+
if (!(t.value && n.value)) return il;
|
|
2556
|
+
const { value: b, color: $ } = u, L = $ ?? e.value[m].color ?? Se, { x: g, y: O } = i(b, y), N = c(b), D = s(b);
|
|
2558
2557
|
return {
|
|
2559
|
-
classList: [`lume-fill--${L}`, ...
|
|
2558
|
+
classList: [`lume-fill--${L}`, ...r],
|
|
2560
2559
|
x: g,
|
|
2561
2560
|
y: O,
|
|
2562
2561
|
width: N,
|
|
@@ -2565,42 +2564,42 @@ function cl(e, n, t, o, a, u) {
|
|
|
2565
2564
|
isNegative: b < 0
|
|
2566
2565
|
};
|
|
2567
2566
|
}
|
|
2568
|
-
return { barAttributeGenerator:
|
|
2567
|
+
return { barAttributeGenerator: f };
|
|
2569
2568
|
}
|
|
2570
|
-
const
|
|
2569
|
+
const cl = {
|
|
2571
2570
|
x: 0,
|
|
2572
2571
|
y: 0,
|
|
2573
2572
|
width: 0,
|
|
2574
2573
|
height: 0
|
|
2575
2574
|
};
|
|
2576
|
-
function
|
|
2575
|
+
function dl(e, t, n, o, a, r) {
|
|
2577
2576
|
const l = v(
|
|
2578
2577
|
() => o.value === H.HORIZONTAL
|
|
2579
|
-
), i = v(() =>
|
|
2578
|
+
), i = v(() => Me().domain(e.value.map((p, b) => b)).range([0, t.value.bandwidth()]).padding(0)), c = v(() => Me().domain(e.value.map((p, b) => b)).range([0, n.value.bandwidth()]).padding(0));
|
|
2580
2579
|
function s(p, b, $) {
|
|
2581
2580
|
if (l.value)
|
|
2582
|
-
return p >= 0 ?
|
|
2583
|
-
const L =
|
|
2584
|
-
return
|
|
2581
|
+
return p >= 0 ? t.value(0) : t.value(p);
|
|
2582
|
+
const L = t.value.domain();
|
|
2583
|
+
return t.value(L[b]) + i.value($);
|
|
2585
2584
|
}
|
|
2586
|
-
function
|
|
2585
|
+
function f(p, b, $) {
|
|
2587
2586
|
if (l.value) {
|
|
2588
|
-
const L =
|
|
2589
|
-
return
|
|
2587
|
+
const L = n.value.domain();
|
|
2588
|
+
return n.value(L[b]) + c.value($);
|
|
2590
2589
|
}
|
|
2591
|
-
return p < 0 ?
|
|
2590
|
+
return p < 0 ? n.value(0) : n.value(p);
|
|
2592
2591
|
}
|
|
2593
|
-
function
|
|
2594
|
-
return l.value ? p < 0 ?
|
|
2592
|
+
function u(p) {
|
|
2593
|
+
return l.value ? p < 0 ? t.value(0) - t.value(p) : t.value(p) - t.value(0) : i.value.bandwidth();
|
|
2595
2594
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return l.value ? c.value.bandwidth() : p < 0 ?
|
|
2595
|
+
function m(p) {
|
|
2596
|
+
return l.value ? c.value.bandwidth() : p < 0 ? n.value(p) - n.value(0) : n.value(0) - n.value(p);
|
|
2598
2597
|
}
|
|
2599
2598
|
function y(p, b, $) {
|
|
2600
|
-
if (!(
|
|
2601
|
-
const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P =
|
|
2599
|
+
if (!(t.value && n.value)) return cl;
|
|
2600
|
+
const { value: g, color: O } = p, N = O ?? e.value[b].color ?? Object.values(ie)[b], D = s(g, $, b), P = f(g, $, b), w = u(g), B = m(g);
|
|
2602
2601
|
return {
|
|
2603
|
-
classList: [`lume-fill--${N}`, ...
|
|
2602
|
+
classList: [`lume-fill--${N}`, ...r],
|
|
2604
2603
|
x: D,
|
|
2605
2604
|
y: P,
|
|
2606
2605
|
width: w,
|
|
@@ -2611,68 +2610,68 @@ function vl(e, n, t, o, a, u) {
|
|
|
2611
2610
|
}
|
|
2612
2611
|
return { barAttributeGenerator: y };
|
|
2613
2612
|
}
|
|
2614
|
-
function
|
|
2613
|
+
function vl(e, t, n) {
|
|
2615
2614
|
const o = v(
|
|
2616
|
-
() =>
|
|
2615
|
+
() => t.value === H.HORIZONTAL
|
|
2617
2616
|
), a = v(() => {
|
|
2618
2617
|
const c = e.value.map(
|
|
2619
|
-
(s) => s.filter((
|
|
2618
|
+
(s) => s.filter((f) => f.value < 0).reduce((f, u) => f + u.value, 0)
|
|
2620
2619
|
);
|
|
2621
2620
|
return Math.min(...c);
|
|
2622
|
-
}),
|
|
2621
|
+
}), r = v(() => {
|
|
2623
2622
|
const c = e.value.map(
|
|
2624
2623
|
(s) => s.reduce(
|
|
2625
|
-
(
|
|
2624
|
+
(f, u) => u.value >= 0 ? f + u.value : f,
|
|
2626
2625
|
0
|
|
2627
2626
|
)
|
|
2628
2627
|
);
|
|
2629
2628
|
return Math.max(...c);
|
|
2630
2629
|
});
|
|
2631
|
-
function l(c, s,
|
|
2632
|
-
return s.length ? o.value ?
|
|
2630
|
+
function l(c, s, f) {
|
|
2631
|
+
return s.length ? o.value ? Be().domain([a.value, r.value]).range([0, f.width]) : Object.assign(
|
|
2633
2632
|
Et(
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2633
|
+
Me().domain(s.map((u, m) => m)).range([0, f.width]),
|
|
2634
|
+
t.value,
|
|
2635
|
+
n.value
|
|
2637
2636
|
),
|
|
2638
2637
|
{ labels: s }
|
|
2639
2638
|
) : null;
|
|
2640
2639
|
}
|
|
2641
|
-
function i(c, s,
|
|
2640
|
+
function i(c, s, f) {
|
|
2642
2641
|
return s.length ? o.value ? Object.assign(
|
|
2643
2642
|
Et(
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2643
|
+
Me().domain(s.map((u, m) => m)).range([0, f.height]),
|
|
2644
|
+
t.value,
|
|
2645
|
+
n.value
|
|
2647
2646
|
),
|
|
2648
2647
|
{ labels: s }
|
|
2649
|
-
) :
|
|
2648
|
+
) : Be().domain([r.value, a.value]).range([0, f.height]) : null;
|
|
2650
2649
|
}
|
|
2651
2650
|
return { stackedXScaleGenerator: l, stackedYScaleGenerator: i };
|
|
2652
2651
|
}
|
|
2653
|
-
function ml(e,
|
|
2652
|
+
function ml(e, t, n, o, a, r) {
|
|
2654
2653
|
const l = v(
|
|
2655
2654
|
() => o.value === H.HORIZONTAL
|
|
2656
2655
|
), i = v(
|
|
2657
|
-
() => l.value ?
|
|
2656
|
+
() => l.value ? n.value.domain() : t.value.domain()
|
|
2658
2657
|
), c = v(
|
|
2659
2658
|
() => e.value.map((L) => L.values.map((g) => g == null ? void 0 : g.value))
|
|
2660
2659
|
);
|
|
2661
2660
|
function s(L, g, O) {
|
|
2662
2661
|
let N, D;
|
|
2663
|
-
return l.value ? (N =
|
|
2662
|
+
return l.value ? (N = t.value(L >= 0 ? 0 + O : L + O), D = n.value(i.value[g])) : (N = t.value(i.value[g]), D = n.value(L >= 0 ? L + O : 0 + O)), { x: N, y: D };
|
|
2664
2663
|
}
|
|
2665
|
-
function
|
|
2666
|
-
return l.value ?
|
|
2664
|
+
function f(L) {
|
|
2665
|
+
return l.value ? t.value(L) - t.value(0) : t.value.bandwidth();
|
|
2667
2666
|
}
|
|
2668
|
-
function
|
|
2669
|
-
return l.value ?
|
|
2667
|
+
function u(L) {
|
|
2668
|
+
return l.value ? t.value(0) - t.value(L) : t.value.bandwidth();
|
|
2670
2669
|
}
|
|
2671
|
-
function
|
|
2672
|
-
return l.value ?
|
|
2670
|
+
function m(L) {
|
|
2671
|
+
return l.value ? n.value.bandwidth() : n.value(0) - n.value(L);
|
|
2673
2672
|
}
|
|
2674
2673
|
function y(L) {
|
|
2675
|
-
return l.value ?
|
|
2674
|
+
return l.value ? n.value.bandwidth() : n.value(L) - n.value(0);
|
|
2676
2675
|
}
|
|
2677
2676
|
function p(L, g) {
|
|
2678
2677
|
return L ? c.value.reduce((O, N, D) => (D < L && N[g] >= 0 && (O += N[g]), O), 0) : 0;
|
|
@@ -2681,9 +2680,9 @@ function ml(e, n, t, o, a, u) {
|
|
|
2681
2680
|
return L ? c.value.reduce((O, N, D) => (D < L && N[g] < 0 && (O += N[g]), O), 0) : 0;
|
|
2682
2681
|
}
|
|
2683
2682
|
function $(L, g, O) {
|
|
2684
|
-
const { value: N, color: D } = L, P = N >= 0 ?
|
|
2683
|
+
const { value: N, color: D } = L, P = N >= 0 ? f(N) : u(N), w = N >= 0 ? m(N) : y(N), B = N >= 0 ? p(g, O) : b(g, O), { x: U, y: K } = s(N, O, B);
|
|
2685
2684
|
return {
|
|
2686
|
-
classList: [`lume-fill--${D ?? e.value[g].color ?? Object.values(ie)[g]}`, ...
|
|
2685
|
+
classList: [`lume-fill--${D ?? e.value[g].color ?? Object.values(ie)[g]}`, ...r],
|
|
2687
2686
|
width: P,
|
|
2688
2687
|
height: w,
|
|
2689
2688
|
x: U,
|
|
@@ -2694,12 +2693,12 @@ function ml(e, n, t, o, a, u) {
|
|
|
2694
2693
|
}
|
|
2695
2694
|
return { barAttributeGenerator: $ };
|
|
2696
2695
|
}
|
|
2697
|
-
const
|
|
2696
|
+
const fl = {
|
|
2698
2697
|
class: "lume-bar-group",
|
|
2699
2698
|
"data-j-bars-group": ""
|
|
2700
|
-
},
|
|
2701
|
-
single:
|
|
2702
|
-
grouped:
|
|
2699
|
+
}, pl = ["onMouseenter"], hl = {
|
|
2700
|
+
single: sl,
|
|
2701
|
+
grouped: dl,
|
|
2703
2702
|
stacked: ml
|
|
2704
2703
|
}, yt = /* @__PURE__ */ Z({
|
|
2705
2704
|
__name: "lume-bar-group",
|
|
@@ -2709,33 +2708,33 @@ const pl = {
|
|
|
2709
2708
|
type: [String, Array],
|
|
2710
2709
|
default: () => []
|
|
2711
2710
|
},
|
|
2712
|
-
...
|
|
2711
|
+
...ll(!0),
|
|
2713
2712
|
transition: {
|
|
2714
2713
|
type: Boolean,
|
|
2715
2714
|
default: !0
|
|
2716
2715
|
}
|
|
2717
2716
|
},
|
|
2718
2717
|
emits: ["bar-click", "lume__internal--hover"],
|
|
2719
|
-
setup(e, { emit:
|
|
2720
|
-
const
|
|
2718
|
+
setup(e, { emit: t }) {
|
|
2719
|
+
const n = e, o = t, {
|
|
2721
2720
|
data: a,
|
|
2722
|
-
hoveredIndex:
|
|
2721
|
+
hoveredIndex: r,
|
|
2723
2722
|
orientation: l,
|
|
2724
2723
|
transition: i,
|
|
2725
2724
|
type: c,
|
|
2726
2725
|
xScale: s,
|
|
2727
|
-
yScale:
|
|
2728
|
-
classList:
|
|
2729
|
-
labels:
|
|
2730
|
-
} = ee(
|
|
2726
|
+
yScale: f,
|
|
2727
|
+
classList: u,
|
|
2728
|
+
labels: m
|
|
2729
|
+
} = ee(n);
|
|
2731
2730
|
Ce("chartID");
|
|
2732
|
-
const { emitInternalEvent: y } = _e(), { groupedData: p } = on(a,
|
|
2733
|
-
const D = rl(a, c), { barAttributeGenerator: P } =
|
|
2731
|
+
const { emitInternalEvent: y } = _e(), { groupedData: p } = on(a, m), { barXScale: b, barYScale: $ } = ul(s, f, l), L = v(() => typeof u.value == "string" ? [u.value] : u.value), g = v(() => {
|
|
2732
|
+
const D = rl(a, c), { barAttributeGenerator: P } = hl[D](
|
|
2734
2733
|
a,
|
|
2735
2734
|
b,
|
|
2736
2735
|
$,
|
|
2737
2736
|
l,
|
|
2738
|
-
|
|
2737
|
+
r,
|
|
2739
2738
|
L.value
|
|
2740
2739
|
);
|
|
2741
2740
|
return P;
|
|
@@ -2746,7 +2745,7 @@ const pl = {
|
|
|
2746
2745
|
async function N(D) {
|
|
2747
2746
|
o("lume__internal--hover", D), y("lume__internal--hover", D);
|
|
2748
2747
|
}
|
|
2749
|
-
return (D, P) => (_(), I("g",
|
|
2748
|
+
return (D, P) => (_(), I("g", fl, [
|
|
2750
2749
|
(_(!0), I(Q, null, W(d(p), (w, B) => (_(), I("g", {
|
|
2751
2750
|
key: B,
|
|
2752
2751
|
onMouseenter: (U) => N(B)
|
|
@@ -2761,10 +2760,10 @@ const pl = {
|
|
|
2761
2760
|
event: J
|
|
2762
2761
|
})
|
|
2763
2762
|
}), null, 16, ["transition", "onClick"]))), 128))
|
|
2764
|
-
], 40,
|
|
2763
|
+
], 40, pl))), 128))
|
|
2765
2764
|
]));
|
|
2766
2765
|
}
|
|
2767
|
-
}),
|
|
2766
|
+
}), gl = {
|
|
2768
2767
|
[H.VERTICAL]: {
|
|
2769
2768
|
withTooltip: !0,
|
|
2770
2769
|
xAxisOptions: {},
|
|
@@ -2777,35 +2776,35 @@ const pl = {
|
|
|
2777
2776
|
yAxisOptions: { gridLines: !1 },
|
|
2778
2777
|
margins: be.HORIZONTAL
|
|
2779
2778
|
}
|
|
2780
|
-
},
|
|
2779
|
+
}, Ul = /* @__PURE__ */ Z({
|
|
2781
2780
|
__name: "lume-single-bar-chart",
|
|
2782
2781
|
props: {
|
|
2783
|
-
...
|
|
2782
|
+
...Ie(st)
|
|
2784
2783
|
},
|
|
2785
|
-
setup(e, { emit:
|
|
2786
|
-
const
|
|
2787
|
-
() =>
|
|
2784
|
+
setup(e, { emit: t }) {
|
|
2785
|
+
const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(n), i = v(
|
|
2786
|
+
() => gl[r.value || H.VERTICAL]
|
|
2788
2787
|
// needs to be computed so that default options are reactive
|
|
2789
|
-
), { allOptions: c } =
|
|
2790
|
-
return (s,
|
|
2788
|
+
), { allOptions: c } = me(l, i);
|
|
2789
|
+
return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
|
|
2791
2790
|
"chart-type": "single-bar",
|
|
2792
2791
|
options: d(c),
|
|
2793
2792
|
"data-j-single-bar-chart": ""
|
|
2794
2793
|
}, oe(d(o))), ce({
|
|
2795
|
-
groups: V((
|
|
2796
|
-
|
|
2794
|
+
groups: V((u) => [
|
|
2795
|
+
ue(d(yt), j(u, { orientation: d(r) }, oe(d(o))), null, 16, ["orientation"])
|
|
2797
2796
|
]),
|
|
2798
2797
|
_: 2
|
|
2799
2798
|
}, [
|
|
2800
|
-
W(d(a), (
|
|
2801
|
-
name:
|
|
2799
|
+
W(d(a), (u, m) => ({
|
|
2800
|
+
name: m,
|
|
2802
2801
|
fn: V((y) => [
|
|
2803
|
-
M(s.$slots,
|
|
2802
|
+
M(s.$slots, m, pe(he(y || {})))
|
|
2804
2803
|
])
|
|
2805
2804
|
}))
|
|
2806
2805
|
]), 1040, ["options"]));
|
|
2807
2806
|
}
|
|
2808
|
-
}),
|
|
2807
|
+
}), yl = {
|
|
2809
2808
|
[H.VERTICAL]: {
|
|
2810
2809
|
withTooltip: !0,
|
|
2811
2810
|
xAxisOptions: {},
|
|
@@ -2819,38 +2818,38 @@ const pl = {
|
|
|
2819
2818
|
margins: be.HORIZONTAL,
|
|
2820
2819
|
tooltipOptions: { position: "right" }
|
|
2821
2820
|
}
|
|
2822
|
-
},
|
|
2821
|
+
}, Xl = /* @__PURE__ */ Z({
|
|
2823
2822
|
__name: "lume-grouped-bar-chart",
|
|
2824
2823
|
props: {
|
|
2825
|
-
...
|
|
2824
|
+
...Ie()
|
|
2826
2825
|
},
|
|
2827
|
-
setup(e, { emit:
|
|
2828
|
-
const
|
|
2829
|
-
() =>
|
|
2826
|
+
setup(e, { emit: t }) {
|
|
2827
|
+
const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { orientation: r, options: l } = ee(n), i = v(
|
|
2828
|
+
() => yl[r.value || H.VERTICAL]
|
|
2830
2829
|
// needs to be computed so that default options are reactive
|
|
2831
|
-
), { allOptions: c } =
|
|
2830
|
+
), { allOptions: c } = me(
|
|
2832
2831
|
l,
|
|
2833
2832
|
i
|
|
2834
2833
|
);
|
|
2835
|
-
return (s,
|
|
2834
|
+
return (s, f) => (_(), Y(d(xe), j({ ...n, ...s.$attrs }, {
|
|
2836
2835
|
"chart-type": "grouped-bar",
|
|
2837
2836
|
options: d(c),
|
|
2838
2837
|
"data-j-grouped-bar-chart": ""
|
|
2839
2838
|
}, oe(d(o))), ce({
|
|
2840
|
-
groups: V((
|
|
2841
|
-
|
|
2839
|
+
groups: V((u) => [
|
|
2840
|
+
ue(d(yt), j(u, { type: "grouped" }, oe(d(o))), null, 16)
|
|
2842
2841
|
]),
|
|
2843
2842
|
_: 2
|
|
2844
2843
|
}, [
|
|
2845
|
-
W(d(a), (
|
|
2846
|
-
name:
|
|
2844
|
+
W(d(a), (u, m) => ({
|
|
2845
|
+
name: m,
|
|
2847
2846
|
fn: V((y) => [
|
|
2848
|
-
M(s.$slots,
|
|
2847
|
+
M(s.$slots, m, pe(he(y || {})))
|
|
2849
2848
|
])
|
|
2850
2849
|
}))
|
|
2851
2850
|
]), 1040, ["options"]));
|
|
2852
2851
|
}
|
|
2853
|
-
}),
|
|
2852
|
+
}), _l = {
|
|
2854
2853
|
[H.VERTICAL]: {
|
|
2855
2854
|
withTooltip: !0,
|
|
2856
2855
|
xAxisOptions: {},
|
|
@@ -2865,32 +2864,32 @@ const pl = {
|
|
|
2865
2864
|
margins: be.HORIZONTAL,
|
|
2866
2865
|
tooltipOptions: { position: "right" }
|
|
2867
2866
|
}
|
|
2868
|
-
},
|
|
2867
|
+
}, Yl = /* @__PURE__ */ Z({
|
|
2869
2868
|
__name: "lume-stacked-bar-chart",
|
|
2870
2869
|
props: {
|
|
2871
|
-
...
|
|
2870
|
+
...Ie()
|
|
2872
2871
|
},
|
|
2873
|
-
setup(e, { emit:
|
|
2874
|
-
const
|
|
2875
|
-
() =>
|
|
2872
|
+
setup(e, { emit: t }) {
|
|
2873
|
+
const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { data: r, orientation: l, options: i, labels: c } = ee(n), s = v(
|
|
2874
|
+
() => _l[l.value || H.VERTICAL]
|
|
2876
2875
|
// needs to be computed so that default options are reactive
|
|
2877
|
-
), { allOptions:
|
|
2876
|
+
), { allOptions: f } = me(
|
|
2878
2877
|
i,
|
|
2879
2878
|
s
|
|
2880
|
-
), { internalData:
|
|
2881
|
-
|
|
2879
|
+
), { internalData: u } = ht(r), { groupedData: m } = on(u, c), { stackedXScaleGenerator: y, stackedYScaleGenerator: p } = vl(
|
|
2880
|
+
m,
|
|
2882
2881
|
l,
|
|
2883
2882
|
i
|
|
2884
|
-
), b = v(() =>
|
|
2885
|
-
return (L, g) => (_(), Y(d(
|
|
2883
|
+
), b = v(() => n.xScale || y), $ = v(() => n.yScale || p);
|
|
2884
|
+
return (L, g) => (_(), Y(d(xe), j({ ...n, ...L.$attrs }, {
|
|
2886
2885
|
"chart-type": "stacked-bar",
|
|
2887
|
-
options: d(
|
|
2886
|
+
options: d(f),
|
|
2888
2887
|
"x-scale": b.value,
|
|
2889
2888
|
"y-scale": $.value,
|
|
2890
2889
|
"data-j-stacked-bar-chart": ""
|
|
2891
2890
|
}, oe(d(o))), ce({
|
|
2892
2891
|
groups: V((O) => [
|
|
2893
|
-
|
|
2892
|
+
ue(d(yt), j(O, { type: "stacked" }, oe(d(o))), null, 16)
|
|
2894
2893
|
]),
|
|
2895
2894
|
_: 2
|
|
2896
2895
|
}, [
|
|
@@ -2902,7 +2901,7 @@ const pl = {
|
|
|
2902
2901
|
}))
|
|
2903
2902
|
]), 1040, ["options", "x-scale", "y-scale"]));
|
|
2904
2903
|
}
|
|
2905
|
-
}),
|
|
2904
|
+
}), kl = ["d", "stroke-width"], bl = 2, Al = /* @__PURE__ */ Z({
|
|
2906
2905
|
__name: "lume-line",
|
|
2907
2906
|
props: {
|
|
2908
2907
|
pathDefinition: {
|
|
@@ -2911,7 +2910,7 @@ const pl = {
|
|
|
2911
2910
|
},
|
|
2912
2911
|
width: {
|
|
2913
2912
|
type: Number,
|
|
2914
|
-
default:
|
|
2913
|
+
default: bl
|
|
2915
2914
|
},
|
|
2916
2915
|
color: {
|
|
2917
2916
|
type: String,
|
|
@@ -2935,9 +2934,9 @@ const pl = {
|
|
|
2935
2934
|
}
|
|
2936
2935
|
},
|
|
2937
2936
|
emits: ["click"],
|
|
2938
|
-
setup(e, { emit:
|
|
2939
|
-
const
|
|
2940
|
-
return ye(() => ze(o.value)), (a,
|
|
2937
|
+
setup(e, { emit: t }) {
|
|
2938
|
+
const n = t, o = G(null);
|
|
2939
|
+
return ye(() => ze(o.value)), (a, r) => (_(), I("path", {
|
|
2941
2940
|
ref_key: "root",
|
|
2942
2941
|
ref: o,
|
|
2943
2942
|
class: te(["lume-line", {
|
|
@@ -2952,10 +2951,10 @@ const pl = {
|
|
|
2952
2951
|
animationDuration: e.transition && e.animationDuration + "s"
|
|
2953
2952
|
}),
|
|
2954
2953
|
"data-j-line": "",
|
|
2955
|
-
onClick:
|
|
2956
|
-
}, null, 14,
|
|
2954
|
+
onClick: r[0] || (r[0] = (l) => n("click", l))
|
|
2955
|
+
}, null, 14, kl));
|
|
2957
2956
|
}
|
|
2958
|
-
}),
|
|
2957
|
+
}), Tl = /* @__PURE__ */ q(Al, [["__scopeId", "data-v-59449838"]]), Ll = ["cx", "cy", "r", "stroke-width"], $l = 4, Ol = /* @__PURE__ */ Z({
|
|
2959
2958
|
__name: "lume-point",
|
|
2960
2959
|
props: {
|
|
2961
2960
|
x: { type: Number, required: !0 },
|
|
@@ -2966,7 +2965,7 @@ const pl = {
|
|
|
2966
2965
|
},
|
|
2967
2966
|
radius: {
|
|
2968
2967
|
type: Number,
|
|
2969
|
-
default:
|
|
2968
|
+
default: $l
|
|
2970
2969
|
},
|
|
2971
2970
|
active: {
|
|
2972
2971
|
type: Boolean,
|
|
@@ -2974,8 +2973,8 @@ const pl = {
|
|
|
2974
2973
|
}
|
|
2975
2974
|
},
|
|
2976
2975
|
emits: ["click"],
|
|
2977
|
-
setup(e, { emit:
|
|
2978
|
-
const
|
|
2976
|
+
setup(e, { emit: t }) {
|
|
2977
|
+
const n = e, o = t, a = G(null), r = v(() => n.radius / 2);
|
|
2979
2978
|
return ye(() => ze(a.value)), (l, i) => (_(), I("circle", {
|
|
2980
2979
|
ref_key: "root",
|
|
2981
2980
|
ref: a,
|
|
@@ -2983,43 +2982,43 @@ const pl = {
|
|
|
2983
2982
|
cx: e.x,
|
|
2984
2983
|
cy: e.y,
|
|
2985
2984
|
r: e.active ? e.radius : 0,
|
|
2986
|
-
"stroke-width":
|
|
2985
|
+
"stroke-width": r.value,
|
|
2987
2986
|
"data-j-point": "",
|
|
2988
2987
|
onClick: i[0] || (i[0] = (c) => o("click", c))
|
|
2989
|
-
}, null, 10,
|
|
2988
|
+
}, null, 10, Ll));
|
|
2990
2989
|
}
|
|
2991
|
-
}),
|
|
2990
|
+
}), Il = /* @__PURE__ */ q(Ol, [["__scopeId", "data-v-436fef87"]]);
|
|
2992
2991
|
function an(e) {
|
|
2993
|
-
function
|
|
2992
|
+
function t(r) {
|
|
2994
2993
|
let l = null;
|
|
2995
|
-
return
|
|
2994
|
+
return r == null ? void 0 : r.reduce((i, c, s) => (c == null || c.value == null ? (l ? l.push(s) : l = [s], s === (r == null ? void 0 : r.length) - 1 && i.push(l)) : l && (i.push(l), l = null), i), []);
|
|
2996
2995
|
}
|
|
2997
|
-
function
|
|
2998
|
-
const
|
|
2999
|
-
return
|
|
2996
|
+
function n(r, l, i, c) {
|
|
2997
|
+
const u = Math.abs(r - l) / (i + 1) * (c + 1);
|
|
2998
|
+
return r == null && l == null ? null : r > l ? r - u : r + u;
|
|
3000
2999
|
}
|
|
3001
|
-
function o(
|
|
3000
|
+
function o(r) {
|
|
3002
3001
|
return function(i) {
|
|
3003
|
-
return !!
|
|
3002
|
+
return !!r.find(
|
|
3004
3003
|
(c) => c.includes(i) || c.includes(i - 1)
|
|
3005
3004
|
);
|
|
3006
3005
|
};
|
|
3007
3006
|
}
|
|
3008
|
-
return { computedLineData: v(() => e.value.map((
|
|
3009
|
-
const l =
|
|
3007
|
+
return { computedLineData: v(() => e.value.map((r) => {
|
|
3008
|
+
const l = t(r.values);
|
|
3010
3009
|
return {
|
|
3011
|
-
...
|
|
3010
|
+
...r,
|
|
3012
3011
|
isDashed: o(l),
|
|
3013
|
-
values:
|
|
3014
|
-
var
|
|
3012
|
+
values: r.values.map((i, c) => {
|
|
3013
|
+
var f, u;
|
|
3015
3014
|
const s = l.find(
|
|
3016
|
-
(
|
|
3015
|
+
(m) => m.includes(c)
|
|
3017
3016
|
);
|
|
3018
3017
|
if (s) {
|
|
3019
|
-
const
|
|
3020
|
-
let p = (
|
|
3018
|
+
const m = s[0] - 1, y = s[s.length - 1] + 1;
|
|
3019
|
+
let p = (f = r.values[m]) == null ? void 0 : f.value, b = (u = r.values[y]) == null ? void 0 : u.value;
|
|
3021
3020
|
return p == null && (p = b), b == null && (b = p), {
|
|
3022
|
-
value:
|
|
3021
|
+
value: n(
|
|
3023
3022
|
p,
|
|
3024
3023
|
b,
|
|
3025
3024
|
s.length,
|
|
@@ -3033,27 +3032,27 @@ function an(e) {
|
|
|
3033
3032
|
};
|
|
3034
3033
|
})) };
|
|
3035
3034
|
}
|
|
3036
|
-
function
|
|
3037
|
-
const
|
|
3038
|
-
return (o, a) => e(e.domain()[
|
|
3035
|
+
function xl(e, t) {
|
|
3036
|
+
const n = e.bandwidth() / 2;
|
|
3037
|
+
return (o, a) => e(e.domain()[t + (a - 1)]) + n;
|
|
3039
3038
|
}
|
|
3040
|
-
function
|
|
3041
|
-
return (
|
|
3039
|
+
function wl(e, t) {
|
|
3040
|
+
return (n, o) => e(t + (o - 1));
|
|
3042
3041
|
}
|
|
3043
|
-
function
|
|
3042
|
+
function El(e, t, n, o) {
|
|
3044
3043
|
const a = yn().x(
|
|
3045
|
-
de(
|
|
3046
|
-
).y((
|
|
3047
|
-
return
|
|
3044
|
+
de(n) ? xl(n, e) : wl(n, e)
|
|
3045
|
+
).y((r) => o(r));
|
|
3046
|
+
return t.every((r) => r == null) ? null : a(t);
|
|
3048
3047
|
}
|
|
3049
|
-
const
|
|
3048
|
+
const Nl = {
|
|
3050
3049
|
class: "lume-line-group",
|
|
3051
3050
|
"data-j-lume-line-group": ""
|
|
3052
|
-
},
|
|
3051
|
+
}, Dl = { class: "lume-line-group__lines" }, Hl = {
|
|
3053
3052
|
key: 0,
|
|
3054
3053
|
class: "lume-line-group__points",
|
|
3055
3054
|
"data-j-lume-line-group__points": ""
|
|
3056
|
-
},
|
|
3055
|
+
}, Bl = 1, Ml = /* @__PURE__ */ Z({
|
|
3057
3056
|
__name: "lume-line-group",
|
|
3058
3057
|
props: {
|
|
3059
3058
|
...We(),
|
|
@@ -3067,48 +3066,48 @@ const Dl = {
|
|
|
3067
3066
|
}
|
|
3068
3067
|
},
|
|
3069
3068
|
emits: ["line-click", "point-click", "lume__internal--hover"],
|
|
3070
|
-
setup(e, { emit:
|
|
3071
|
-
const
|
|
3069
|
+
setup(e, { emit: t }) {
|
|
3070
|
+
const n = e, o = t, { data: a, options: r, xScale: l, yScale: i, labels: c } = ee(n), s = Ce(
|
|
3072
3071
|
"tooltipAnchorAttributes",
|
|
3073
3072
|
null
|
|
3074
|
-
), { updateTooltipAnchorAttributes:
|
|
3073
|
+
), { updateTooltipAnchorAttributes: f } = en(
|
|
3075
3074
|
s,
|
|
3076
|
-
|
|
3075
|
+
r,
|
|
3077
3076
|
l,
|
|
3078
3077
|
i,
|
|
3079
3078
|
c
|
|
3080
|
-
),
|
|
3079
|
+
), u = v(() => {
|
|
3081
3080
|
if (a.value.every((B) => B.isDashed))
|
|
3082
3081
|
return a.value;
|
|
3083
3082
|
const { computedLineData: w } = an(a);
|
|
3084
|
-
return
|
|
3085
|
-
}),
|
|
3086
|
-
if (
|
|
3083
|
+
return r.value.withTooltip !== !1 && (s != null && s.value) && f(w.value), w.value;
|
|
3084
|
+
}), m = v(() => {
|
|
3085
|
+
if (n.hoveredIndex === -1) return;
|
|
3087
3086
|
const w = wn(
|
|
3088
|
-
|
|
3089
|
-
|
|
3087
|
+
u.value,
|
|
3088
|
+
n.hoveredIndex
|
|
3090
3089
|
);
|
|
3091
3090
|
return {
|
|
3092
|
-
d: `M ${tt(l.value,
|
|
3091
|
+
d: `M ${tt(l.value, n.hoveredIndex)},${i.value.range()[1]}
|
|
3093
3092
|
V ${i.value(w)}`
|
|
3094
3093
|
// Move to X index, Vertical line to the highest point
|
|
3095
3094
|
};
|
|
3096
3095
|
}), y = v(
|
|
3097
|
-
() => l.value &&
|
|
3096
|
+
() => l.value && Bl / (En(l.value) - 1)
|
|
3098
3097
|
// Subtracting the first line (read below)
|
|
3099
3098
|
), p = v(
|
|
3100
3099
|
() => {
|
|
3101
3100
|
var w;
|
|
3102
|
-
return ((w =
|
|
3101
|
+
return ((w = r.value) == null ? void 0 : w.lineWidth) * 2 || void 0;
|
|
3103
3102
|
}
|
|
3104
3103
|
// If no `lineWidth`, returns NaN which needs to be undefined
|
|
3105
3104
|
), b = v(
|
|
3106
3105
|
() => l.value.bandwidth() / 2
|
|
3107
3106
|
), $ = v(() => l.value.domain()), L = v(
|
|
3108
|
-
() =>
|
|
3107
|
+
() => r.value.withPoints ?? n.withPoints
|
|
3109
3108
|
);
|
|
3110
3109
|
function g(w) {
|
|
3111
|
-
return
|
|
3110
|
+
return u.value[w].values;
|
|
3112
3111
|
}
|
|
3113
3112
|
function O(w, B) {
|
|
3114
3113
|
var K, J;
|
|
@@ -3116,7 +3115,7 @@ const Dl = {
|
|
|
3116
3115
|
(K = g(B)[w - 1]) == null ? void 0 : K.value,
|
|
3117
3116
|
(J = g(B)[w]) == null ? void 0 : J.value
|
|
3118
3117
|
];
|
|
3119
|
-
return
|
|
3118
|
+
return El(
|
|
3120
3119
|
w,
|
|
3121
3120
|
U,
|
|
3122
3121
|
l.value,
|
|
@@ -3133,35 +3132,35 @@ const Dl = {
|
|
|
3133
3132
|
var K;
|
|
3134
3133
|
const U = (K = g(B)[w]) == null ? void 0 : K.value;
|
|
3135
3134
|
return {
|
|
3136
|
-
x: de(l.value) ?
|
|
3135
|
+
x: de(l.value) ? n.xScale($.value[w]) + b.value : n.xScale(w),
|
|
3137
3136
|
y: U === null ? i.value(i.value.domain()[1]) : i.value(U)
|
|
3138
3137
|
};
|
|
3139
3138
|
}
|
|
3140
3139
|
function P(w) {
|
|
3141
|
-
return
|
|
3140
|
+
return n.hoveredIndex === w;
|
|
3142
3141
|
}
|
|
3143
|
-
return (w, B) => (_(), I("g",
|
|
3144
|
-
|
|
3142
|
+
return (w, B) => (_(), I("g", Nl, [
|
|
3143
|
+
S("path", j(m.value, {
|
|
3145
3144
|
class: "lume-line-group__overlay-line",
|
|
3146
3145
|
"data-j-lume-line-group__overlay-line": ""
|
|
3147
3146
|
}), null, 16),
|
|
3148
|
-
(_(!0), I(Q, null, W(
|
|
3147
|
+
(_(!0), I(Q, null, W(u.value, (U, K) => (_(), I("g", {
|
|
3149
3148
|
key: U.label,
|
|
3150
3149
|
class: "lume-line-group__group"
|
|
3151
3150
|
}, [
|
|
3152
|
-
|
|
3153
|
-
(_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(
|
|
3151
|
+
S("g", Dl, [
|
|
3152
|
+
(_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Tl), j(N(C), {
|
|
3154
3153
|
key: `line-${C}`,
|
|
3155
3154
|
color: U.color,
|
|
3156
3155
|
dashed: U.isDashed(C),
|
|
3157
3156
|
"path-definition": O(C, K),
|
|
3158
3157
|
transition: e.transition,
|
|
3159
|
-
width: d(
|
|
3158
|
+
width: d(r).lineWidth,
|
|
3160
3159
|
onClick: (ae) => o("line-click", { index: C, datasetIndex: K, event: ae })
|
|
3161
3160
|
}), null, 16, ["color", "dashed", "path-definition", "transition", "width", "onClick"]))), 128))
|
|
3162
3161
|
]),
|
|
3163
|
-
L.value ? (_(), I("g",
|
|
3164
|
-
(_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(
|
|
3162
|
+
L.value ? (_(), I("g", Hl, [
|
|
3163
|
+
(_(!0), I(Q, null, W(U.values, (J, C) => (_(), Y(d(Il), j(D(C, K), {
|
|
3165
3164
|
key: `point-${C}`,
|
|
3166
3165
|
active: P(C),
|
|
3167
3166
|
color: U.color,
|
|
@@ -3173,33 +3172,33 @@ const Dl = {
|
|
|
3173
3172
|
]))), 128))
|
|
3174
3173
|
]));
|
|
3175
3174
|
}
|
|
3176
|
-
}), ln = /* @__PURE__ */ q(
|
|
3175
|
+
}), ln = /* @__PURE__ */ q(Ml, [["__scopeId", "data-v-23492507"]]), Rl = {
|
|
3177
3176
|
margins: be.VERTICAL,
|
|
3178
3177
|
startOnZero: !0,
|
|
3179
3178
|
withTooltip: !0,
|
|
3180
3179
|
xAxisOptions: {},
|
|
3181
3180
|
yAxisOptions: { gridLines: !0 }
|
|
3182
|
-
},
|
|
3181
|
+
}, Kl = /* @__PURE__ */ Z({
|
|
3183
3182
|
__name: "lume-line-chart",
|
|
3184
3183
|
props: {
|
|
3185
|
-
...
|
|
3184
|
+
...Ie(null, !1)
|
|
3186
3185
|
},
|
|
3187
|
-
setup(e, { emit:
|
|
3188
|
-
const
|
|
3189
|
-
return (i, c) => (_(), Y(d(
|
|
3186
|
+
setup(e, { emit: t }) {
|
|
3187
|
+
const n = e, { componentEventPropagator: o } = _e(), a = Ae(re()), { options: r } = ee(n), { allOptions: l } = me(r, Rl);
|
|
3188
|
+
return (i, c) => (_(), Y(d(xe), j({ ...n, ...i.$attrs }, {
|
|
3190
3189
|
"chart-type": "line",
|
|
3191
3190
|
options: d(l),
|
|
3192
3191
|
"data-j-lume-line-chart": ""
|
|
3193
3192
|
}, oe(d(o))), ce({
|
|
3194
3193
|
groups: V((s) => [
|
|
3195
|
-
|
|
3194
|
+
ue(d(ln), j(s, oe(d(o))), null, 16)
|
|
3196
3195
|
]),
|
|
3197
3196
|
_: 2
|
|
3198
3197
|
}, [
|
|
3199
|
-
W(d(a), (s,
|
|
3200
|
-
name:
|
|
3201
|
-
fn: V((
|
|
3202
|
-
M(i.$slots,
|
|
3198
|
+
W(d(a), (s, f) => ({
|
|
3199
|
+
name: f,
|
|
3200
|
+
fn: V((u) => [
|
|
3201
|
+
M(i.$slots, f, pe(he(u || {})))
|
|
3203
3202
|
])
|
|
3204
3203
|
}))
|
|
3205
3204
|
]), 1040, ["options"]));
|
|
@@ -3207,15 +3206,15 @@ const Dl = {
|
|
|
3207
3206
|
});
|
|
3208
3207
|
function Gl(e) {
|
|
3209
3208
|
return { areaPathDefinition: v(
|
|
3210
|
-
() => function(
|
|
3211
|
-
if (!
|
|
3209
|
+
() => function(n, o) {
|
|
3210
|
+
if (!n || !o || de(n) || de(o))
|
|
3212
3211
|
return;
|
|
3213
3212
|
const a = e.value[0].values;
|
|
3214
|
-
return _n().x((
|
|
3213
|
+
return _n().x((r, l) => n(l)).y0(o(Math.min(...o.domain()))).y1((r) => o(r.value))(a);
|
|
3215
3214
|
}
|
|
3216
3215
|
) };
|
|
3217
3216
|
}
|
|
3218
|
-
const
|
|
3217
|
+
const Sl = {
|
|
3219
3218
|
margins: {
|
|
3220
3219
|
top: 0,
|
|
3221
3220
|
right: 0,
|
|
@@ -3229,20 +3228,20 @@ const jl = {
|
|
|
3229
3228
|
tooltipOptions: {
|
|
3230
3229
|
showTitle: !1
|
|
3231
3230
|
}
|
|
3232
|
-
},
|
|
3231
|
+
}, jl = ["d"], Vl = /* @__PURE__ */ Z({
|
|
3233
3232
|
__name: "lume-sparkline-chart",
|
|
3234
3233
|
props: {
|
|
3235
3234
|
...pt(null),
|
|
3236
3235
|
...Re()
|
|
3237
3236
|
},
|
|
3238
|
-
setup(e, { expose:
|
|
3239
|
-
const o = e, { componentEventPropagator: a } = _e(),
|
|
3237
|
+
setup(e, { expose: t, emit: n }) {
|
|
3238
|
+
const o = e, { componentEventPropagator: a } = _e(), r = Ae(re()), { data: l, options: i } = ee(o), { internalData: c } = ht(l), { allOptions: s } = me(i, Sl), { computedLineData: f } = an(c), { areaPathDefinition: u } = Gl(f), m = v(() => {
|
|
3240
3239
|
var $, L;
|
|
3241
3240
|
return (L = ($ = c.value) == null ? void 0 : $[0]) == null ? void 0 : L.color;
|
|
3242
3241
|
}), y = v(
|
|
3243
3242
|
() => {
|
|
3244
3243
|
var $, L;
|
|
3245
|
-
return ((L = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : L.areaColor) ||
|
|
3244
|
+
return ((L = ($ = l.value) == null ? void 0 : $[0]) == null ? void 0 : L.areaColor) || m.value;
|
|
3246
3245
|
}
|
|
3247
3246
|
);
|
|
3248
3247
|
function p($) {
|
|
@@ -3253,11 +3252,11 @@ const jl = {
|
|
|
3253
3252
|
}
|
|
3254
3253
|
function b($, L, g) {
|
|
3255
3254
|
if ($.length)
|
|
3256
|
-
return
|
|
3255
|
+
return Be().range([0, g.width]).domain([0, $[0].values.length - 1]);
|
|
3257
3256
|
}
|
|
3258
|
-
return
|
|
3259
|
-
areaPathDefinition:
|
|
3260
|
-
}), ($, L) => (_(), Y(d(
|
|
3257
|
+
return t({
|
|
3258
|
+
areaPathDefinition: u
|
|
3259
|
+
}), ($, L) => (_(), Y(d(xe), j(o, {
|
|
3261
3260
|
"chart-type": "line",
|
|
3262
3261
|
options: p(d(s)),
|
|
3263
3262
|
"x-scale": b
|
|
@@ -3268,17 +3267,17 @@ const jl = {
|
|
|
3268
3267
|
class: te([
|
|
3269
3268
|
"sparkline-chart__area",
|
|
3270
3269
|
d(i).withTransition !== !1 ? "sparkline-chart__area--transition" : "",
|
|
3271
|
-
`lume-fill--${y.value ||
|
|
3270
|
+
`lume-fill--${y.value || m.value}`,
|
|
3272
3271
|
"lume-fill--faded"
|
|
3273
3272
|
]),
|
|
3274
|
-
d: d(
|
|
3273
|
+
d: d(u)(g.xScale, g.yScale),
|
|
3275
3274
|
"data-j-sparkline__area": ""
|
|
3276
|
-
}, null, 10,
|
|
3277
|
-
|
|
3275
|
+
}, null, 10, jl)) : z("", !0),
|
|
3276
|
+
ue(d(ln), j(g, { "with-points": !1 }, oe(d(a))), null, 16)
|
|
3278
3277
|
]),
|
|
3279
3278
|
_: 2
|
|
3280
3279
|
}, [
|
|
3281
|
-
W(d(
|
|
3280
|
+
W(d(r), (g, O) => ({
|
|
3282
3281
|
name: O,
|
|
3283
3282
|
fn: V((N) => [
|
|
3284
3283
|
M($.$slots, O, pe(he(N || {})), void 0, !0)
|
|
@@ -3286,57 +3285,57 @@ const jl = {
|
|
|
3286
3285
|
}))
|
|
3287
3286
|
]), 1040, ["options"]));
|
|
3288
3287
|
}
|
|
3289
|
-
}),
|
|
3288
|
+
}), Jl = /* @__PURE__ */ q(Vl, [["__scopeId", "data-v-579f7e32"]]);
|
|
3290
3289
|
export {
|
|
3291
|
-
|
|
3292
|
-
|
|
3290
|
+
Wo as A,
|
|
3291
|
+
Zo as B,
|
|
3293
3292
|
Re as C,
|
|
3294
|
-
|
|
3293
|
+
me as D,
|
|
3295
3294
|
gt as E,
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3295
|
+
Ie as F,
|
|
3296
|
+
fo as G,
|
|
3297
|
+
po as H,
|
|
3298
|
+
vo as I,
|
|
3300
3299
|
mo as J,
|
|
3301
3300
|
wt as K,
|
|
3302
|
-
|
|
3301
|
+
xe as L,
|
|
3303
3302
|
tt as M,
|
|
3304
3303
|
Et as N,
|
|
3305
3304
|
en as O,
|
|
3306
|
-
|
|
3307
|
-
|
|
3305
|
+
Yo as P,
|
|
3306
|
+
Ko as Q,
|
|
3308
3307
|
ie as R,
|
|
3309
3308
|
qt as S,
|
|
3310
3309
|
vt as T,
|
|
3311
|
-
|
|
3312
|
-
|
|
3310
|
+
mt as U,
|
|
3311
|
+
ft as V,
|
|
3313
3312
|
ke as W,
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3313
|
+
Wl as _,
|
|
3314
|
+
Zl as a,
|
|
3315
|
+
Ul as b,
|
|
3316
|
+
Xl as c,
|
|
3317
|
+
Yl as d,
|
|
3318
|
+
Kl as e,
|
|
3320
3319
|
Lt as f,
|
|
3321
|
-
|
|
3320
|
+
_o as g,
|
|
3322
3321
|
Nt as h,
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3322
|
+
Co as i,
|
|
3323
|
+
Mo as j,
|
|
3324
|
+
Eo as k,
|
|
3325
|
+
Jl as l,
|
|
3326
|
+
$o as m,
|
|
3328
3327
|
dt as n,
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3328
|
+
Tl as o,
|
|
3329
|
+
Il as p,
|
|
3330
|
+
tl as q,
|
|
3331
|
+
ga as r,
|
|
3332
|
+
ka as s,
|
|
3333
|
+
$a as t,
|
|
3335
3334
|
yt as u,
|
|
3336
3335
|
ln as v,
|
|
3337
|
-
|
|
3336
|
+
zo as w,
|
|
3338
3337
|
pt as x,
|
|
3339
3338
|
ht as y,
|
|
3340
3339
|
an as z
|
|
3341
3340
|
};
|
|
3342
|
-
//# sourceMappingURL=
|
|
3341
|
+
//# sourceMappingURL=BfKxCes1.js.map
|