vue-data-ui 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DQoWnUfD.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-DEw6oieL.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-DEl03NUZ.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-CrivFZqC.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-ClgCsiJA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CMvJ6X5j.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B2Wvbl3p.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-CD5VH_Al.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-D3WRn-G2.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-Adi9i_-f.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-t6e1t2iM.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-B8OnBSvk.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-xTWR-Vil.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-BH3CiANh.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-CKKPgDLV.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-C4hj491O.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Vb4QHAHI.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-Dzc2Gi60.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-ddpqw-dt.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-CjnS13nF.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DBRh8ZvS.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-B7ztqj9-.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DUmYPtHl.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-CPk8wAuj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bv5HmeXj.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-KXWlIhtd.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-B4N4mBk9.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-DENvPnUO.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-vC2bHBaY.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-2nS0StrY.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CyfS6vNM.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C4JR-0fx.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-BgeSDtQh.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-9DWUBJ-I.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-BQO7IBFA.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-B870IrQA.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-C-ZJXJ74.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-Cfs2Uotx.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-DnaUVVAD.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-B9s-H5ZG.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-BoJOczdh.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-qjm4BqZR.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-fn7ZaMTI.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-CIBDKhh8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-bbNxldYG.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-BX-2jhLx.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bn1Bb8-J.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule-DQ3qFtBq.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Cf-ehIo1.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-CWg5BEi-.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-sHgQTYfa.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-Ki3ITp_s.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-BIVqW7U7.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-C_hvHc1b.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-RZUPyPwB.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BI8Vk7dO.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-TVMUEtxK.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-DQeXHQG4.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BH81WmMS.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-Cy7Tz_An.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-CF50qQxr.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-CrFXEbJs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DtHArnot.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-CIOwFFgA.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-E0DdGotz.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Dm7WoyjY.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-DoW6DDKT.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BJnPUWY4.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-Du42smPs.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-DnenGI-d.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-BQOQVlHr.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-BzK4_gsP.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B-IwcT8I.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-06ao_Pj5.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-CxQq4roK.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-CuTxkByj.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-BgHhRpiV.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-CAcsUUCo.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-Ct3Upw3m.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-oz06Kt-p.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-BRy7fg4S.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-CTV-YfFN.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-BZdhKUIp.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/vue-ui-xy-qzB1oN1A.js +3819 -0
- package/package.json +1 -1
- package/dist/vue-ui-xy-DqCy9dpa.js +0 -3808
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineAsyncComponent as se, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
function
|
|
1
|
+
import { defineAsyncComponent as se, useSlots as Mt, onMounted as vt, computed as k, ref as y, shallowRef as E, toRefs as Vt, watch as Se, onBeforeUnmount as Dt, createElementBlock as m, openBlock as v, unref as r, normalizeStyle as V, normalizeClass as Ie, createBlock as j, createCommentVNode as x, createElementVNode as O, createVNode as Fe, createSlots as Bt, withCtx as A, renderSlot as C, normalizeProps as ee, guardReactiveProps as te, Fragment as me, renderList as Ne, withKeys as ht, withModifiers as ze, mergeProps as pt, createTextVNode as Pe, toDisplayString as Z, Teleport as Et, nextTick as Ht } from "vue";
|
|
2
|
+
import { u as Ut, c as be, t as Wt, a as Gt, p as I, b as Xt, d as qt, o as ft, f as Yt, e as ce, k as we, i as de, X as jt, l as gt, F as yt, y as mt, v as Zt, w as Kt, z as Jt } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as Qt, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as bt } from "./useNestedProp-BXhArS-K.js";
|
|
5
|
+
import { u as tl } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import al from "./BaseIcon-DLm6QTwr.js";
|
|
9
|
+
import nl from "./Title-CINHji0n.js";
|
|
10
|
+
import sl from "./Legend-CevCqVZ5.js";
|
|
11
|
+
import ul from "./img-CBdOMFyn.js";
|
|
12
|
+
import { u as rl, B as il } from "./useLoading-D7YHNtLX.js";
|
|
13
|
+
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
function wt(n, i) {
|
|
15
15
|
const s = n.length;
|
|
16
16
|
if (s === 0)
|
|
17
17
|
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
18
18
|
{
|
|
19
|
-
let c = 1 / 0, u = -1 / 0,
|
|
19
|
+
let c = 1 / 0, u = -1 / 0, h = 0;
|
|
20
20
|
for (let g = 0; g < s; g += 1) {
|
|
21
21
|
const f = n[g].normalizedValue;
|
|
22
|
-
f < c && (c = f), f > u && (u = f),
|
|
22
|
+
f < c && (c = f), f > u && (u = f), h += f;
|
|
23
23
|
}
|
|
24
24
|
return Math.max(
|
|
25
|
-
i ** 2 * u /
|
|
26
|
-
|
|
25
|
+
i ** 2 * u / h ** 2,
|
|
26
|
+
h ** 2 / (i ** 2 * c)
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function kt(n) {
|
|
31
31
|
const { xOffset: i, yOffset: s, width: c, height: u } = n;
|
|
32
32
|
return {
|
|
33
33
|
x0: i,
|
|
@@ -36,76 +36,76 @@ function wt(n) {
|
|
|
36
36
|
y1: s + u
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function dl(n, i, s) {
|
|
40
40
|
if (n.length === 0)
|
|
41
41
|
return !0;
|
|
42
42
|
{
|
|
43
|
-
const c = n.concat(i), u =
|
|
43
|
+
const c = n.concat(i), u = wt(
|
|
44
44
|
n,
|
|
45
45
|
s
|
|
46
|
-
),
|
|
47
|
-
return u >=
|
|
46
|
+
), h = wt(c, s);
|
|
47
|
+
return u >= h;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function vl(n) {
|
|
51
51
|
const i = [], s = n.length;
|
|
52
52
|
for (let c = 0; c < s; c += 1) {
|
|
53
|
-
const u = n[c],
|
|
54
|
-
for (let
|
|
55
|
-
i.push(u[
|
|
53
|
+
const u = n[c], h = u.length;
|
|
54
|
+
for (let d = 0; d < h; d += 1)
|
|
55
|
+
i.push(u[d]);
|
|
56
56
|
}
|
|
57
57
|
return i;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function hl(n, i) {
|
|
60
60
|
const s = {
|
|
61
61
|
...i,
|
|
62
62
|
children: n
|
|
63
63
|
};
|
|
64
|
-
return
|
|
64
|
+
return $t(s);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function pl(n) {
|
|
67
67
|
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const { width: s, height: c, xOffset: u, yOffset:
|
|
71
|
-
let b = u,
|
|
72
|
-
const
|
|
69
|
+
function Ct(n, i) {
|
|
70
|
+
const { width: s, height: c, xOffset: u, yOffset: h } = Re(i), d = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, N) => w + N, 0), f = g / c, H = g / s;
|
|
71
|
+
let b = u, S = h;
|
|
72
|
+
const F = [];
|
|
73
73
|
if (s >= c) {
|
|
74
|
-
for (let w = 0; w <
|
|
75
|
-
const N = n[w],
|
|
74
|
+
for (let w = 0; w < d; w += 1) {
|
|
75
|
+
const N = n[w], $ = S + N.normalizedValue / f, D = {
|
|
76
76
|
x0: b,
|
|
77
|
-
y0:
|
|
77
|
+
y0: S,
|
|
78
78
|
x1: b + f,
|
|
79
|
-
y1:
|
|
79
|
+
y1: $
|
|
80
80
|
}, z = Object.assign({}, N, D);
|
|
81
|
-
|
|
81
|
+
S = $, F.push(z);
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return F;
|
|
84
84
|
} else {
|
|
85
|
-
for (let w = 0; w <
|
|
86
|
-
const N = n[w],
|
|
85
|
+
for (let w = 0; w < d; w += 1) {
|
|
86
|
+
const N = n[w], $ = b + N.normalizedValue / H, D = {
|
|
87
87
|
x0: b,
|
|
88
|
-
y0:
|
|
89
|
-
x1:
|
|
90
|
-
y1:
|
|
88
|
+
y0: S,
|
|
89
|
+
x1: $,
|
|
90
|
+
y1: S + H
|
|
91
91
|
}, z = Object.assign({}, N, D);
|
|
92
|
-
b =
|
|
92
|
+
b = $, F.push(z);
|
|
93
93
|
}
|
|
94
|
-
return
|
|
94
|
+
return F;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function fl(n) {
|
|
98
98
|
const i = Re(n), s = i.width, c = i.height;
|
|
99
99
|
return Math.min(s, c);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
const s = n.length, c = n.map((f) => f.value ?? 0).reduce((f, H) => f + H, 0), u = i / c,
|
|
103
|
-
let
|
|
101
|
+
function gl(n, i) {
|
|
102
|
+
const s = n.length, c = n.map((f) => f.value ?? 0).reduce((f, H) => f + H, 0), u = i / c, h = [];
|
|
103
|
+
let d, g;
|
|
104
104
|
for (let f = 0; f < s; f += 1)
|
|
105
|
-
g = n[f],
|
|
105
|
+
g = n[f], d = Object.assign({}, g, {
|
|
106
106
|
normalizedValue: g.value * (u || 0)
|
|
107
|
-
}),
|
|
108
|
-
return
|
|
107
|
+
}), h.push(d);
|
|
108
|
+
return h;
|
|
109
109
|
}
|
|
110
110
|
function Re(n) {
|
|
111
111
|
const { x0: i, y0: s, x1: c, y1: u } = n;
|
|
@@ -116,74 +116,74 @@ function Re(n) {
|
|
|
116
116
|
height: u - s
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let u = n,
|
|
119
|
+
function yl(n, i, s, c) {
|
|
120
|
+
let u = n, h = i, d = s, g = c;
|
|
121
121
|
for (; ; ) {
|
|
122
122
|
const f = u.length;
|
|
123
123
|
if (f === 0) {
|
|
124
|
-
const
|
|
125
|
-
return g.concat(
|
|
124
|
+
const F = Ct(h, d);
|
|
125
|
+
return g.concat(F);
|
|
126
126
|
}
|
|
127
|
-
const H =
|
|
128
|
-
if (
|
|
129
|
-
const
|
|
130
|
-
u =
|
|
127
|
+
const H = fl(d), b = u[0], S = u.slice(1, f);
|
|
128
|
+
if (dl(h, b, H)) {
|
|
129
|
+
const F = h.concat(b);
|
|
130
|
+
u = S, h = F, d = d, g = g;
|
|
131
131
|
} else {
|
|
132
|
-
const
|
|
132
|
+
const F = h.length;
|
|
133
133
|
let w = 0;
|
|
134
|
-
for (let z = 0; z <
|
|
135
|
-
w +=
|
|
136
|
-
const N =
|
|
137
|
-
u = u,
|
|
134
|
+
for (let z = 0; z < F; z += 1)
|
|
135
|
+
w += h[z].normalizedValue;
|
|
136
|
+
const N = ml(d, w), $ = Ct(h, d), D = g.concat($);
|
|
137
|
+
u = u, h = [], d = N, g = D;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function $t(n) {
|
|
142
142
|
if (typeof n.children > "u" || !n.children.length)
|
|
143
143
|
return [n];
|
|
144
144
|
{
|
|
145
|
-
const i =
|
|
145
|
+
const i = gl(
|
|
146
146
|
n.children,
|
|
147
|
-
|
|
148
|
-
), s =
|
|
149
|
-
for (let
|
|
150
|
-
u.push(
|
|
151
|
-
return
|
|
147
|
+
pl(n)
|
|
148
|
+
), s = yl(i, [], n, []), c = s.length, u = [];
|
|
149
|
+
for (let d = 0; d < c; d += 1)
|
|
150
|
+
u.push($t(s[d]));
|
|
151
|
+
return vl(u);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const { width: s, height: c, xOffset: u, yOffset:
|
|
154
|
+
function ml(n, i) {
|
|
155
|
+
const { width: s, height: c, xOffset: u, yOffset: h } = Re(n);
|
|
156
156
|
if (s >= c) {
|
|
157
|
-
const
|
|
158
|
-
xOffset: u +
|
|
159
|
-
yOffset:
|
|
157
|
+
const d = i / c, g = s - d, f = {
|
|
158
|
+
xOffset: u + d,
|
|
159
|
+
yOffset: h,
|
|
160
160
|
width: g,
|
|
161
161
|
height: c
|
|
162
162
|
};
|
|
163
|
-
return
|
|
163
|
+
return kt(f);
|
|
164
164
|
} else {
|
|
165
|
-
const
|
|
165
|
+
const d = i / s, g = c - d, f = {
|
|
166
166
|
xOffset: u,
|
|
167
|
-
yOffset:
|
|
167
|
+
yOffset: h + d,
|
|
168
168
|
width: s,
|
|
169
169
|
height: g
|
|
170
170
|
};
|
|
171
|
-
return
|
|
171
|
+
return kt(f);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const bl = ["id"], wl = ["id"], kl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Cl = { class: "vue-ui-treemap-crumb-unit" }, $l = { class: "vue-ui-treemap-crumb-unit-label" }, Tl = {
|
|
175
175
|
key: 0,
|
|
176
176
|
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
177
|
-
},
|
|
177
|
+
}, xl = {
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
180
|
-
},
|
|
180
|
+
}, _l = ["xmlns", "viewBox"], Ol = { key: 0 }, Al = ["id"], Sl = ["stop-color"], Il = ["stop-color"], Fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Nl = ["x", "y", "height", "width"], zl = {
|
|
181
181
|
style: { width: "100%", height: "100%" },
|
|
182
182
|
class: "vue-ui-treemap-cell"
|
|
183
|
-
},
|
|
183
|
+
}, Pl = {
|
|
184
184
|
key: 5,
|
|
185
185
|
class: "vue-data-ui-watermark"
|
|
186
|
-
},
|
|
186
|
+
}, Rl = ["id"], Ll = ["onClick"], Ml = ["innerHTML"], Vl = {
|
|
187
187
|
__name: "vue-ui-treemap",
|
|
188
188
|
props: {
|
|
189
189
|
config: {
|
|
@@ -201,12 +201,12 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
201
201
|
},
|
|
202
202
|
emits: ["selectLegend", "selectDatapoint"],
|
|
203
203
|
setup(n, { expose: i, emit: s }) {
|
|
204
|
-
const c = se(() => import("./DataTable-
|
|
204
|
+
const c = se(() => import("./DataTable-CWzb1j8d.js")), u = se(() => import("./PenAndPaper-C_R9vJkU.js")), h = se(() => import("./vue-ui-accordion-s_m_NJzJ.js")), d = se(() => import("./Tooltip-hfdFRoLp.js")), g = se(() => import("./UserOptions-r0epwyXR.js")), f = se(() => import("./PackageVersion-n4qokxnx.js")), { vue_ui_treemap: H } = Ut(), b = n, S = s, F = Mt();
|
|
205
205
|
vt(() => {
|
|
206
|
-
|
|
206
|
+
F["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
207
207
|
});
|
|
208
|
-
const w = k(() => !!b.dataset && b.dataset.length), N = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)),
|
|
209
|
-
...
|
|
208
|
+
const w = k(() => !!b.dataset && b.dataset.length), N = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), $ = y(be()), D = y(!1), z = y(""), le = y(!1), Le = y(0), L = y([]), U = E(null), Me = E(null), Ve = E(null), De = E(null), Be = E(null), Ee = y(0), ke = y(0), Ce = y(0), T = y([]), $e = y(null), He = y(!1), e = y(_e()), { loading: ue, FINAL_DATASET: Te, manualLoading: Tt } = rl({
|
|
209
|
+
...Vt(b),
|
|
210
210
|
FINAL_CONFIG: e,
|
|
211
211
|
prepareConfig: _e,
|
|
212
212
|
skeletonDataset: [
|
|
@@ -225,7 +225,7 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
],
|
|
228
|
-
skeletonConfig:
|
|
228
|
+
skeletonConfig: Wt({
|
|
229
229
|
defaultConfig: e.value,
|
|
230
230
|
userConfig: {
|
|
231
231
|
userOptions: { show: !1 },
|
|
@@ -247,28 +247,28 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
})
|
|
250
|
-
}), { userOptionsVisible: xe, setUserOptionsVisibility:
|
|
250
|
+
}), { userOptionsVisible: xe, setUserOptionsVisibility: Ue, keepUserOptionState: We } = ll({ config: e.value }), { svgRef: Ge } = ol({ config: e.value.style.chart.title });
|
|
251
251
|
function _e() {
|
|
252
|
-
const t =
|
|
252
|
+
const t = bt({
|
|
253
253
|
userConfig: b.config,
|
|
254
254
|
defaultConfig: H
|
|
255
255
|
});
|
|
256
256
|
return t.theme ? {
|
|
257
|
-
...
|
|
258
|
-
userConfig:
|
|
257
|
+
...bt({
|
|
258
|
+
userConfig: Xt.vue_ui_treemap[t.theme] || b.config,
|
|
259
259
|
defaultConfig: t
|
|
260
260
|
}),
|
|
261
|
-
customPalette:
|
|
261
|
+
customPalette: Gt[t.theme] || I
|
|
262
262
|
} : t;
|
|
263
263
|
}
|
|
264
264
|
Se(() => b.config, (t) => {
|
|
265
265
|
ue.value || (e.value = _e()), xe.value = !e.value.userOptions.showOnChartHover, Ee.value += 1, ke.value += 1, Ce.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
266
266
|
}, { deep: !0 });
|
|
267
|
-
const { isPrinting:
|
|
268
|
-
elementId: `treemap_${
|
|
267
|
+
const { isPrinting: Xe, isImaging: qe, generatePdf: Ye, generateImage: je } = tl({
|
|
268
|
+
elementId: `treemap_${$.value}`,
|
|
269
269
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
270
270
|
options: e.value.userOptions.print
|
|
271
|
-
}),
|
|
271
|
+
}), xt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), ve = k(() => qt(e.value.customPalette)), P = y({
|
|
272
272
|
showTable: e.value.table.show,
|
|
273
273
|
showTooltip: e.value.style.chart.tooltip.show
|
|
274
274
|
});
|
|
@@ -281,7 +281,7 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
281
281
|
const W = y({
|
|
282
282
|
height: e.value.style.chart.height,
|
|
283
283
|
width: e.value.style.chart.width
|
|
284
|
-
}),
|
|
284
|
+
}), K = k(() => ({
|
|
285
285
|
bottom: W.value.height - e.value.style.chart.padding.bottom,
|
|
286
286
|
height: W.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
287
287
|
left: e.value.style.chart.padding.left,
|
|
@@ -290,47 +290,47 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
290
290
|
vbHeight: W.value.height,
|
|
291
291
|
vbWidth: W.value.width,
|
|
292
292
|
width: W.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
293
|
-
})), R = y(Te.value), G = y(R.value),
|
|
294
|
-
function
|
|
293
|
+
})), R = y(Te.value), G = y(R.value), Ze = E(/* @__PURE__ */ new Map());
|
|
294
|
+
function Ke(t) {
|
|
295
295
|
Array.isArray(t) && t.forEach((o, l) => {
|
|
296
296
|
o.id || (o.id = be());
|
|
297
|
-
let a = ce(o.color) ||
|
|
298
|
-
a = ce(a),
|
|
297
|
+
let a = ce(o.color) || Ze.value.get(o.id) || ve.value[l] || I[l] || I[l % I.length];
|
|
298
|
+
a = ce(a), Ze.value.set(o.id, a), o.color = a, Je(o, a);
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Je(t, o) {
|
|
302
302
|
Array.isArray(t.children) && t.children.forEach((l) => {
|
|
303
|
-
l.id || (l.id = be()), l.parentId = t.id, l.color = o,
|
|
303
|
+
l.id || (l.id = be()), l.parentId = t.id, l.color = o, Je(l, o);
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
if (
|
|
306
|
+
function _t() {
|
|
307
|
+
if (!T.value.length)
|
|
308
308
|
G.value = R.value.slice();
|
|
309
309
|
else {
|
|
310
|
-
const t =
|
|
310
|
+
const t = T.value[T.value.length - 1], o = q(t);
|
|
311
311
|
G.value = o?.children?.slice() || [];
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
Se(
|
|
315
315
|
() => Te.value,
|
|
316
316
|
() => {
|
|
317
|
-
R.value = Te.value,
|
|
317
|
+
R.value = Te.value, Ke(R.value), _t(), Ce.value += 1, ke.value += 1;
|
|
318
318
|
},
|
|
319
319
|
{ deep: !0, immediate: !0, flush: "post" }
|
|
320
320
|
);
|
|
321
321
|
const X = E(null), oe = E(null);
|
|
322
322
|
vt(() => {
|
|
323
|
-
|
|
323
|
+
He.value = !0, At();
|
|
324
324
|
});
|
|
325
|
-
const
|
|
326
|
-
function
|
|
327
|
-
if (
|
|
325
|
+
const Ot = k(() => e.value.debug);
|
|
326
|
+
function At() {
|
|
327
|
+
if (ft(b.dataset) && Yt({
|
|
328
328
|
componentName: "VueUiTreemap",
|
|
329
329
|
type: "dataset",
|
|
330
|
-
debug:
|
|
331
|
-
}),
|
|
332
|
-
const t =
|
|
333
|
-
const { width: o, height: l } =
|
|
330
|
+
debug: Ot.value
|
|
331
|
+
}), Ke(R.value), ft(b.dataset) || (Tt.value = e.value.loading), e.value.responsive) {
|
|
332
|
+
const t = Qt(() => {
|
|
333
|
+
const { width: o, height: l } = el({
|
|
334
334
|
chart: U.value,
|
|
335
335
|
title: e.value.style.chart.title.text ? Me.value : null,
|
|
336
336
|
legend: e.value.style.chart.legend.show ? Ve.value : null,
|
|
@@ -344,13 +344,13 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
344
344
|
X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect()), X.value = new ResizeObserver(t), oe.value = U.value.parentNode, X.value.observe(oe.value);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
Dt(() => {
|
|
348
348
|
X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect());
|
|
349
349
|
});
|
|
350
350
|
const re = k(() => G.value.map((t, o) => ({
|
|
351
351
|
...t,
|
|
352
|
-
color: ce(t.color) ||
|
|
353
|
-
})).filter((t) => !L.value.includes(t.id))), ae = k(() => R.value.filter((t) => !L.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)),
|
|
352
|
+
color: ce(t.color) || ve.value[o] || I[o] || I[o % I.length]
|
|
353
|
+
})).filter((t) => !L.value.includes(t.id))), ae = k(() => R.value.filter((t) => !L.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Qe = k({
|
|
354
354
|
get() {
|
|
355
355
|
let t = [...re.value];
|
|
356
356
|
return e.value.style.chart.layout.sorted && (t = [...re.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
@@ -361,49 +361,49 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
|
-
function
|
|
364
|
+
function et(t, o) {
|
|
365
365
|
return t.value / o;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
const a = e.value.style.chart.layout.rects.colorRatio -
|
|
369
|
-
return
|
|
367
|
+
function St(t, o, l) {
|
|
368
|
+
const a = e.value.style.chart.layout.rects.colorRatio - et(o, l);
|
|
369
|
+
return gt(t, a < 0 ? 0 : a);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return t.map((
|
|
373
|
-
const
|
|
371
|
+
function tt(t, o, l, a) {
|
|
372
|
+
return t.map((p, _) => {
|
|
373
|
+
const ye = St(ce(o) || ve.value[_] || I[_] || I[_ % I.length], p, a), Lt = et(p, a);
|
|
374
374
|
return {
|
|
375
|
-
...
|
|
376
|
-
color:
|
|
377
|
-
proportion:
|
|
375
|
+
...p,
|
|
376
|
+
color: ye,
|
|
377
|
+
proportion: Lt,
|
|
378
378
|
parentName: l,
|
|
379
|
-
children:
|
|
379
|
+
children: p.children ? tt(p.children, ye, p.name, a) : void 0
|
|
380
380
|
};
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
const ie = k(() =>
|
|
384
|
-
|
|
385
|
-
const l = t.children ? t.children.reduce((a,
|
|
383
|
+
const ie = k(() => hl(
|
|
384
|
+
Qe.value.map((t, o) => {
|
|
385
|
+
const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
|
|
386
386
|
return {
|
|
387
387
|
value: t.value,
|
|
388
388
|
id: t.id || be(),
|
|
389
|
-
children: t.children ?
|
|
389
|
+
children: t.children ? tt(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
|
|
390
390
|
color: t.color,
|
|
391
391
|
name: t.name
|
|
392
392
|
};
|
|
393
393
|
}),
|
|
394
|
-
{ x0:
|
|
394
|
+
{ x0: K.value.left * 2, y0: K.value.top, x1: K.value.width, y1: K.value.height }
|
|
395
395
|
));
|
|
396
|
-
function
|
|
396
|
+
function lt({ y0: t, y1: o }) {
|
|
397
397
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function ot({ x0: t, x1: o }) {
|
|
400
400
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function J(t) {
|
|
403
403
|
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
404
404
|
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function at(t) {
|
|
407
407
|
le.value = t, Le.value += 1;
|
|
408
408
|
}
|
|
409
409
|
const ne = k(() => {
|
|
@@ -411,8 +411,8 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
411
411
|
return $e.value && (t = $e.value.getBoundingClientRect().height), {
|
|
412
412
|
startX: 0,
|
|
413
413
|
startY: 0,
|
|
414
|
-
width:
|
|
415
|
-
height:
|
|
414
|
+
width: K.value.vbWidth,
|
|
415
|
+
height: K.value.vbHeight - t
|
|
416
416
|
};
|
|
417
417
|
});
|
|
418
418
|
function q(t, o = R.value) {
|
|
@@ -427,39 +427,39 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
427
427
|
}
|
|
428
428
|
return null;
|
|
429
429
|
}
|
|
430
|
-
const
|
|
430
|
+
const Q = k(() => T.value.length > 0);
|
|
431
431
|
function he(t, o) {
|
|
432
432
|
if (!t) {
|
|
433
|
-
G.value = R.value.slice(),
|
|
433
|
+
G.value = R.value.slice(), S("selectDatapoint", void 0), T.value = [];
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
436
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
437
437
|
const l = q(t.id);
|
|
438
438
|
if (l && l.children?.length)
|
|
439
|
-
|
|
439
|
+
T.value.push(l.id), G.value = l.children.slice(), S("selectDatapoint", t);
|
|
440
440
|
else if (t.parentId) {
|
|
441
|
-
|
|
441
|
+
T.value.push(t.parentId);
|
|
442
442
|
const a = q(t.parentId);
|
|
443
|
-
G.value = a.children.slice(),
|
|
444
|
-
} else if (
|
|
445
|
-
|
|
446
|
-
const a =
|
|
443
|
+
G.value = a.children.slice(), S("selectDatapoint", t);
|
|
444
|
+
} else if (T.value.length > 0) {
|
|
445
|
+
T.value.pop();
|
|
446
|
+
const a = T.value[T.value.length - 1];
|
|
447
447
|
if (a) {
|
|
448
|
-
const
|
|
449
|
-
G.value =
|
|
448
|
+
const p = q(a);
|
|
449
|
+
G.value = p.children.slice();
|
|
450
450
|
} else
|
|
451
|
-
G.value = R.value.slice(),
|
|
451
|
+
G.value = R.value.slice(), T.value = [], S("selectDatapoint", void 0);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function It(t) {
|
|
455
455
|
return !!(q(t.id)?.children?.length || t.parentId);
|
|
456
456
|
}
|
|
457
457
|
const Y = k(() => {
|
|
458
458
|
const t = [
|
|
459
459
|
{ id: null, label: "All" }
|
|
460
460
|
];
|
|
461
|
-
if (
|
|
462
|
-
let o = q(
|
|
461
|
+
if (T.value.length > 0) {
|
|
462
|
+
let o = q(T.value[T.value.length - 1]);
|
|
463
463
|
const l = [];
|
|
464
464
|
for (; o; )
|
|
465
465
|
l.unshift(o), o = o.parentId ? q(o.parentId) : null;
|
|
@@ -471,15 +471,15 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
return t;
|
|
474
|
-
}), M = E(null),
|
|
474
|
+
}), M = E(null), nt = k(() => R.value.map((t, o) => ({
|
|
475
475
|
...t,
|
|
476
|
-
color: ce(t.color) ||
|
|
476
|
+
color: ce(t.color) || ve.value[o] || I[o] || I[o % I.length],
|
|
477
477
|
shape: "square"
|
|
478
478
|
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
479
479
|
...t,
|
|
480
480
|
proportion: t.value / R.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
481
481
|
opacity: L.value.includes(t.id) ? 0.5 : 1
|
|
482
|
-
}))),
|
|
482
|
+
}))), Ft = k(() => ({
|
|
483
483
|
cy: "treemap-div-legend",
|
|
484
484
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
485
485
|
color: e.value.style.chart.legend.color,
|
|
@@ -487,17 +487,17 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
487
487
|
paddingBottom: 12,
|
|
488
488
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
489
489
|
}));
|
|
490
|
-
function
|
|
491
|
-
M.value = null, L.value.includes(t.id) ? L.value = L.value.filter((o) => o !== t.id) : L.value.length < b.dataset.length - 1 && L.value.push(t.id),
|
|
490
|
+
function st(t) {
|
|
491
|
+
M.value = null, L.value.includes(t.id) ? L.value = L.value.filter((o) => o !== t.id) : L.value.length < b.dataset.length - 1 && L.value.push(t.id), S("selectLegend", Qe.value);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Nt({ datapoint: t, seriesIndex: o }) {
|
|
494
494
|
M.value = null, D.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
495
495
|
}
|
|
496
496
|
const Oe = y(null);
|
|
497
|
-
function
|
|
497
|
+
function zt({ datapoint: t, seriesIndex: o }) {
|
|
498
498
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), M.value = t, Oe.value = { datapoint: t, seriesIndex: o, config: e.value, series: re.value };
|
|
499
499
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
500
|
-
if (mt(l) &&
|
|
500
|
+
if (mt(l) && Jt(() => l({
|
|
501
501
|
seriesIndex: o,
|
|
502
502
|
datapoint: t,
|
|
503
503
|
series: re.value,
|
|
@@ -514,7 +514,7 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
514
514
|
a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${we(
|
|
515
515
|
e.value.style.chart.layout.labels.formatter,
|
|
516
516
|
t.value,
|
|
517
|
-
|
|
517
|
+
de({
|
|
518
518
|
p: e.value.style.chart.layout.labels.prefix,
|
|
519
519
|
v: t.value,
|
|
520
520
|
s: e.value.style.chart.layout.labels.suffix,
|
|
@@ -532,12 +532,12 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
532
532
|
})), o = ie.value.map((l) => l.value);
|
|
533
533
|
return { head: t, body: o };
|
|
534
534
|
});
|
|
535
|
-
function
|
|
536
|
-
|
|
537
|
-
const o = B.value.head.map((
|
|
538
|
-
|
|
539
|
-
], [B.value.body[
|
|
540
|
-
t ? t(a) :
|
|
535
|
+
function ut(t = null) {
|
|
536
|
+
Ht(() => {
|
|
537
|
+
const o = B.value.head.map((p, _) => [[
|
|
538
|
+
p.name
|
|
539
|
+
], [B.value.body[_]], [isNaN(B.value.body[_] / ae.value) ? "-" : B.value.body[_] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Zt(l);
|
|
540
|
+
t ? t(a) : Kt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
const pe = k(() => {
|
|
@@ -545,26 +545,26 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
545
545
|
e.value.table.columnNames.series,
|
|
546
546
|
e.value.table.columnNames.value,
|
|
547
547
|
e.value.table.columnNames.percentage
|
|
548
|
-
], o = B.value.head.map((
|
|
549
|
-
const
|
|
548
|
+
], o = B.value.head.map((p, _) => {
|
|
549
|
+
const ye = we(
|
|
550
550
|
e.value.style.chart.layout.labels.formatter,
|
|
551
|
-
B.value.body[
|
|
552
|
-
|
|
551
|
+
B.value.body[_],
|
|
552
|
+
de({
|
|
553
553
|
p: e.value.style.chart.layout.labels.prefix,
|
|
554
|
-
v: B.value.body[
|
|
554
|
+
v: B.value.body[_],
|
|
555
555
|
s: e.value.style.chart.layout.labels.suffix,
|
|
556
556
|
r: e.value.table.td.roundingValue
|
|
557
557
|
})
|
|
558
558
|
);
|
|
559
559
|
return [
|
|
560
560
|
{
|
|
561
|
-
color:
|
|
562
|
-
name:
|
|
561
|
+
color: p.color,
|
|
562
|
+
name: p.name,
|
|
563
563
|
shape: "square"
|
|
564
564
|
},
|
|
565
|
-
|
|
566
|
-
isNaN(B.value.body[
|
|
567
|
-
v: B.value.body[
|
|
565
|
+
ye,
|
|
566
|
+
isNaN(B.value.body[_] / ae.value) ? "-" : de({
|
|
567
|
+
v: B.value.body[_] / ae.value * 100,
|
|
568
568
|
s: "%",
|
|
569
569
|
r: e.value.table.td.roundingPercentage
|
|
570
570
|
})
|
|
@@ -592,13 +592,13 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
592
592
|
config: l
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
|
-
function
|
|
595
|
+
function Pt() {
|
|
596
596
|
return ie.value;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function rt() {
|
|
599
599
|
P.value.showTable = !P.value.showTable;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function it() {
|
|
602
602
|
P.value.showTooltip = !P.value.showTooltip;
|
|
603
603
|
}
|
|
604
604
|
const fe = y(!1);
|
|
@@ -606,18 +606,18 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
606
606
|
fe.value = !fe.value;
|
|
607
607
|
}
|
|
608
608
|
const ge = y(null);
|
|
609
|
-
function
|
|
609
|
+
function ct(t) {
|
|
610
610
|
ge.value = t;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function dt() {
|
|
613
613
|
ge.value = null;
|
|
614
614
|
}
|
|
615
|
-
async function
|
|
615
|
+
async function Rt({ scale: t = 2 } = {}) {
|
|
616
616
|
if (!U.value) return;
|
|
617
|
-
const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri:
|
|
617
|
+
const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: p, base64: _ } = await ul({ domElement: U.value, base64: !0, img: !0, scale: t });
|
|
618
618
|
return {
|
|
619
|
-
imageUri:
|
|
620
|
-
base64:
|
|
619
|
+
imageUri: p,
|
|
620
|
+
base64: _,
|
|
621
621
|
title: e.value.style.chart.title.text,
|
|
622
622
|
width: o,
|
|
623
623
|
height: l,
|
|
@@ -625,46 +625,46 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
627
|
return i({
|
|
628
|
-
getData:
|
|
629
|
-
getImage:
|
|
630
|
-
generateCsv:
|
|
631
|
-
generateImage:
|
|
632
|
-
generatePdf:
|
|
633
|
-
toggleTable:
|
|
634
|
-
toggleTooltip:
|
|
628
|
+
getData: Pt,
|
|
629
|
+
getImage: Rt,
|
|
630
|
+
generateCsv: ut,
|
|
631
|
+
generateImage: je,
|
|
632
|
+
generatePdf: Ye,
|
|
633
|
+
toggleTable: rt,
|
|
634
|
+
toggleTooltip: it,
|
|
635
635
|
toggleAnnotator: Ae,
|
|
636
|
-
toggleFullscreen:
|
|
637
|
-
}), (t, o) => (
|
|
636
|
+
toggleFullscreen: at
|
|
637
|
+
}), (t, o) => (v(), m("div", {
|
|
638
638
|
ref_key: "treemapChart",
|
|
639
639
|
ref: U,
|
|
640
640
|
class: Ie(`vue-ui-treemap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
641
641
|
style: V(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
642
|
-
id: `treemap_${
|
|
643
|
-
onMouseenter: o[2] || (o[2] = () => r(
|
|
644
|
-
onMouseleave: o[3] || (o[3] = () => r(
|
|
642
|
+
id: `treemap_${$.value}`,
|
|
643
|
+
onMouseenter: o[2] || (o[2] = () => r(Ue)(!0)),
|
|
644
|
+
onMouseleave: o[3] || (o[3] = () => r(Ue)(!1))
|
|
645
645
|
}, [
|
|
646
|
-
e.value.userOptions.buttons.annotator ? (
|
|
646
|
+
e.value.userOptions.buttons.annotator ? (v(), j(r(u), {
|
|
647
647
|
key: 0,
|
|
648
|
-
svgRef: r(
|
|
648
|
+
svgRef: r(Ge),
|
|
649
649
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
650
650
|
color: e.value.style.chart.color,
|
|
651
651
|
active: fe.value,
|
|
652
652
|
onClose: Ae
|
|
653
653
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
|
|
654
|
-
|
|
654
|
+
xt.value ? (v(), m("div", {
|
|
655
655
|
key: 1,
|
|
656
656
|
ref_key: "noTitle",
|
|
657
657
|
ref: Be,
|
|
658
658
|
class: "vue-data-ui-no-title-space",
|
|
659
659
|
style: "height:36px; width: 100%;background:transparent"
|
|
660
660
|
}, null, 512)) : x("", !0),
|
|
661
|
-
e.value.style.chart.title.text ? (
|
|
661
|
+
e.value.style.chart.title.text ? (v(), m("div", {
|
|
662
662
|
key: 2,
|
|
663
663
|
ref_key: "chartTitle",
|
|
664
664
|
ref: Me,
|
|
665
665
|
style: V(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
666
666
|
}, [
|
|
667
|
-
(
|
|
667
|
+
(v(), j(nl, {
|
|
668
668
|
key: `title_${Ee.value}`,
|
|
669
669
|
config: {
|
|
670
670
|
title: {
|
|
@@ -678,14 +678,17 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
678
678
|
}
|
|
679
679
|
}, null, 8, ["config"]))
|
|
680
680
|
], 4)) : x("", !0),
|
|
681
|
-
|
|
681
|
+
O("div", {
|
|
682
|
+
id: `legend-top-${$.value}`
|
|
683
|
+
}, null, 8, wl),
|
|
684
|
+
e.value.userOptions.show && w.value && (r(We) || r(xe)) ? (v(), j(r(g), {
|
|
682
685
|
ref: "details",
|
|
683
686
|
key: `user_option_${Le.value}`,
|
|
684
687
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
685
688
|
color: e.value.style.chart.color,
|
|
686
|
-
isPrinting: r(
|
|
687
|
-
isImaging: r(
|
|
688
|
-
uid:
|
|
689
|
+
isPrinting: r(Xe),
|
|
690
|
+
isImaging: r(qe),
|
|
691
|
+
uid: $.value,
|
|
689
692
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
690
693
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
691
694
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -701,197 +704,197 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
701
704
|
isAnnotation: fe.value,
|
|
702
705
|
callbacks: e.value.userOptions.callbacks,
|
|
703
706
|
printScale: e.value.userOptions.print.scale,
|
|
704
|
-
onToggleFullscreen:
|
|
705
|
-
onGeneratePdf: r(
|
|
706
|
-
onGenerateCsv:
|
|
707
|
-
onGenerateImage: r(
|
|
708
|
-
onToggleTable:
|
|
709
|
-
onToggleTooltip:
|
|
707
|
+
onToggleFullscreen: at,
|
|
708
|
+
onGeneratePdf: r(Ye),
|
|
709
|
+
onGenerateCsv: ut,
|
|
710
|
+
onGenerateImage: r(je),
|
|
711
|
+
onToggleTable: rt,
|
|
712
|
+
onToggleTooltip: it,
|
|
710
713
|
onToggleAnnotator: Ae,
|
|
711
714
|
style: V({
|
|
712
|
-
visibility: r(
|
|
715
|
+
visibility: r(We) ? r(xe) ? "visible" : "hidden" : "visible"
|
|
713
716
|
})
|
|
714
|
-
},
|
|
717
|
+
}, Bt({ _: 2 }, [
|
|
715
718
|
t.$slots.menuIcon ? {
|
|
716
719
|
name: "menuIcon",
|
|
717
|
-
fn:
|
|
720
|
+
fn: A(({ isOpen: l, color: a }) => [
|
|
718
721
|
C(t.$slots, "menuIcon", ee(te({ isOpen: l, color: a })), void 0, !0)
|
|
719
722
|
]),
|
|
720
723
|
key: "0"
|
|
721
724
|
} : void 0,
|
|
722
725
|
t.$slots.optionTooltip ? {
|
|
723
726
|
name: "optionTooltip",
|
|
724
|
-
fn:
|
|
727
|
+
fn: A(() => [
|
|
725
728
|
C(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
726
729
|
]),
|
|
727
730
|
key: "1"
|
|
728
731
|
} : void 0,
|
|
729
732
|
t.$slots.optionPdf ? {
|
|
730
733
|
name: "optionPdf",
|
|
731
|
-
fn:
|
|
734
|
+
fn: A(() => [
|
|
732
735
|
C(t.$slots, "optionPdf", {}, void 0, !0)
|
|
733
736
|
]),
|
|
734
737
|
key: "2"
|
|
735
738
|
} : void 0,
|
|
736
739
|
t.$slots.optionCsv ? {
|
|
737
740
|
name: "optionCsv",
|
|
738
|
-
fn:
|
|
741
|
+
fn: A(() => [
|
|
739
742
|
C(t.$slots, "optionCsv", {}, void 0, !0)
|
|
740
743
|
]),
|
|
741
744
|
key: "3"
|
|
742
745
|
} : void 0,
|
|
743
746
|
t.$slots.optionImg ? {
|
|
744
747
|
name: "optionImg",
|
|
745
|
-
fn:
|
|
748
|
+
fn: A(() => [
|
|
746
749
|
C(t.$slots, "optionImg", {}, void 0, !0)
|
|
747
750
|
]),
|
|
748
751
|
key: "4"
|
|
749
752
|
} : void 0,
|
|
750
753
|
t.$slots.optionTable ? {
|
|
751
754
|
name: "optionTable",
|
|
752
|
-
fn:
|
|
755
|
+
fn: A(() => [
|
|
753
756
|
C(t.$slots, "optionTable", {}, void 0, !0)
|
|
754
757
|
]),
|
|
755
758
|
key: "5"
|
|
756
759
|
} : void 0,
|
|
757
760
|
t.$slots.optionFullscreen ? {
|
|
758
761
|
name: "optionFullscreen",
|
|
759
|
-
fn:
|
|
762
|
+
fn: A(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
760
763
|
C(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
761
764
|
]),
|
|
762
765
|
key: "6"
|
|
763
766
|
} : void 0,
|
|
764
767
|
t.$slots.optionAnnotator ? {
|
|
765
768
|
name: "optionAnnotator",
|
|
766
|
-
fn:
|
|
769
|
+
fn: A(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
767
770
|
C(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
768
771
|
]),
|
|
769
772
|
key: "7"
|
|
770
773
|
} : void 0
|
|
771
774
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
772
|
-
Y.value.length > 1 ? (
|
|
775
|
+
Y.value.length > 1 ? (v(), m("nav", {
|
|
773
776
|
key: 4,
|
|
774
777
|
class: "vue-ui-treemap-breadcrumbs",
|
|
775
778
|
"data-dom-to-png-ignore": "",
|
|
776
779
|
ref_key: "breadcrumbsNav",
|
|
777
780
|
ref: $e
|
|
778
781
|
}, [
|
|
779
|
-
(
|
|
782
|
+
(v(!0), m(me, null, Ne(Y.value, (l, a) => (v(), m("span", {
|
|
780
783
|
role: "button",
|
|
781
784
|
tabindex: a < Y.value.length - 1 ? 0 : void 0,
|
|
782
785
|
key: l.id || "root",
|
|
783
|
-
onClick: (
|
|
786
|
+
onClick: (p) => a === Y.value.length - 1 ? () => {
|
|
784
787
|
} : he(l.node),
|
|
785
788
|
onKeydown: [
|
|
786
|
-
|
|
787
|
-
|
|
789
|
+
ht(ze((p) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["enter"]),
|
|
790
|
+
ht(ze((p) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["space"])
|
|
788
791
|
],
|
|
789
792
|
class: "vue-ui-treemap-crumb",
|
|
790
793
|
"data-last-crumb": a === Y.value.length - 1,
|
|
791
794
|
style: V({
|
|
792
795
|
color: e.value.style.chart.color
|
|
793
796
|
}),
|
|
794
|
-
onMouseenter: (
|
|
795
|
-
onMouseleave:
|
|
796
|
-
onFocus: (
|
|
797
|
-
onBlur:
|
|
797
|
+
onMouseenter: (p) => ct(a),
|
|
798
|
+
onMouseleave: dt,
|
|
799
|
+
onFocus: (p) => ct(a),
|
|
800
|
+
onBlur: dt
|
|
798
801
|
}, [
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
C(t.$slots, "breadcrumb-label",
|
|
802
|
-
a === 0 ? (
|
|
803
|
-
Fe(
|
|
802
|
+
O("span", Cl, [
|
|
803
|
+
O("span", $l, [
|
|
804
|
+
C(t.$slots, "breadcrumb-label", pt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ge.value === a }), () => [
|
|
805
|
+
a === 0 ? (v(), m("div", Tl, [
|
|
806
|
+
Fe(al, {
|
|
804
807
|
name: ge.value === 0 ? "homeFilled" : "home",
|
|
805
808
|
stroke: e.value.style.chart.color
|
|
806
809
|
}, null, 8, ["name", "stroke"])
|
|
807
|
-
])) : (
|
|
808
|
-
Pe(
|
|
810
|
+
])) : (v(), m(me, { key: 1 }, [
|
|
811
|
+
Pe(Z(l.label), 1)
|
|
809
812
|
], 64))
|
|
810
813
|
], !0)
|
|
811
814
|
]),
|
|
812
|
-
a < Y.value.length - 1 ? (
|
|
815
|
+
a < Y.value.length - 1 ? (v(), m("span", xl, [
|
|
813
816
|
C(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
814
817
|
o[4] || (o[4] = Pe(" › ", -1))
|
|
815
818
|
], !0)
|
|
816
819
|
])) : x("", !0)
|
|
817
820
|
])
|
|
818
|
-
], 44,
|
|
821
|
+
], 44, kl))), 128))
|
|
819
822
|
], 512)) : x("", !0),
|
|
820
|
-
(
|
|
823
|
+
(v(), m("svg", {
|
|
821
824
|
ref_key: "svgRef",
|
|
822
|
-
ref:
|
|
823
|
-
xmlns: r(
|
|
824
|
-
class: Ie({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !
|
|
825
|
+
ref: Ge,
|
|
826
|
+
xmlns: r(jt),
|
|
827
|
+
class: Ie({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !Q.value, "vue-data-ui-zoom-minus": Q.value, loading: r(ue) }),
|
|
825
828
|
viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
|
|
826
829
|
style: V(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
827
830
|
}, [
|
|
828
831
|
Fe(r(f)),
|
|
829
|
-
(
|
|
832
|
+
(v(!0), m(me, null, Ne(ie.value, (l, a) => (v(), m("g", {
|
|
830
833
|
key: `tgrad_${l.id}`
|
|
831
834
|
}, [
|
|
832
|
-
e.value.style.chart.layout.rects.gradient.show ? (
|
|
833
|
-
|
|
835
|
+
e.value.style.chart.layout.rects.gradient.show ? (v(), m("defs", Ol, [
|
|
836
|
+
O("radialGradient", {
|
|
834
837
|
id: `tgrad_${l.id}`,
|
|
835
838
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
836
839
|
}, [
|
|
837
|
-
|
|
840
|
+
O("stop", {
|
|
838
841
|
offset: "18%",
|
|
839
842
|
"stop-color": l.color
|
|
840
|
-
}, null, 8,
|
|
841
|
-
|
|
843
|
+
}, null, 8, Sl),
|
|
844
|
+
O("stop", {
|
|
842
845
|
offset: "100%",
|
|
843
|
-
"stop-color": r(
|
|
844
|
-
}, null, 8,
|
|
845
|
-
], 8,
|
|
846
|
+
"stop-color": r(gt)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
847
|
+
}, null, 8, Il)
|
|
848
|
+
], 8, Al)
|
|
846
849
|
])) : x("", !0)
|
|
847
850
|
]))), 128)),
|
|
848
|
-
(
|
|
851
|
+
(v(!0), m(me, null, Ne(ie.value, (l, a) => (v(), m("g", {
|
|
849
852
|
key: `k_${l.id}`
|
|
850
853
|
}, [
|
|
851
|
-
|
|
854
|
+
O("rect", {
|
|
852
855
|
x: l.x0,
|
|
853
856
|
y: l.y0,
|
|
854
|
-
height:
|
|
855
|
-
width:
|
|
857
|
+
height: lt(l),
|
|
858
|
+
width: ot(l),
|
|
856
859
|
fill: N.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
857
860
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
858
861
|
stroke: M.value && M.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
859
862
|
"stroke-width": M.value && M.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
860
|
-
onClick: ze((
|
|
861
|
-
onMouseenter: () =>
|
|
863
|
+
onClick: ze((p) => he(l, a), ["stop"]),
|
|
864
|
+
onMouseenter: () => zt({
|
|
862
865
|
datapoint: l,
|
|
863
866
|
seriesIndex: a
|
|
864
867
|
}),
|
|
865
|
-
onMouseleave: (
|
|
868
|
+
onMouseleave: (p) => Nt({ datapoint: l, seriesIndex: a }),
|
|
866
869
|
style: V(`opacity:${M.value ? M.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
867
870
|
class: Ie([
|
|
868
871
|
"vue-ui-treemap-rect",
|
|
869
|
-
|
|
872
|
+
It(l) ? "vue-data-ui-zoom-plus" : Q.value ? "vue-data-ui-zoom-minus" : ""
|
|
870
873
|
])
|
|
871
|
-
}, null, 46,
|
|
872
|
-
(
|
|
874
|
+
}, null, 46, Fl),
|
|
875
|
+
(v(), m("foreignObject", {
|
|
873
876
|
x: l.x0,
|
|
874
877
|
y: l.y0,
|
|
875
|
-
height:
|
|
876
|
-
width:
|
|
878
|
+
height: lt(l),
|
|
879
|
+
width: ot(l),
|
|
877
880
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
878
881
|
}, [
|
|
879
|
-
|
|
880
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
882
|
+
O("div", zl, [
|
|
883
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value) ? (v(), m("div", {
|
|
881
884
|
key: 0,
|
|
882
885
|
class: "vue-ui-treemap-cell-default",
|
|
883
|
-
style: V(`width:calc(100% - ${
|
|
886
|
+
style: V(`width:calc(100% - ${J(l) / 1.5}px);text-align:left;line-height:${J(l) < 14 ? 14 : J(l)}px;padding:${J(l) / 3}px; color:${r(yt)(l.color)}`)
|
|
884
887
|
}, [
|
|
885
|
-
|
|
886
|
-
style: V(`width:100%;font-size:${
|
|
887
|
-
},
|
|
888
|
-
o[5] || (o[5] =
|
|
889
|
-
|
|
890
|
-
style: V(`width:100%;font-size:${
|
|
891
|
-
},
|
|
888
|
+
O("span", {
|
|
889
|
+
style: V(`width:100%;font-size:${J(l)}px;`)
|
|
890
|
+
}, Z(l.name), 5),
|
|
891
|
+
o[5] || (o[5] = O("br", null, null, -1)),
|
|
892
|
+
O("span", {
|
|
893
|
+
style: V(`width:100%;font-size:${J(l)}px;`)
|
|
894
|
+
}, Z(r(we)(
|
|
892
895
|
e.value.style.chart.layout.labels.formatter,
|
|
893
896
|
l.value,
|
|
894
|
-
r(
|
|
897
|
+
r(de)({
|
|
895
898
|
p: e.value.style.chart.layout.labels.prefix,
|
|
896
899
|
v: l.value,
|
|
897
900
|
s: e.value.style.chart.layout.labels.suffix,
|
|
@@ -900,67 +903,75 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
900
903
|
{ datapoint: l }
|
|
901
904
|
)), 5)
|
|
902
905
|
], 4)) : x("", !0),
|
|
903
|
-
r(ue) ? x("", !0) : C(t.$slots, "rect",
|
|
906
|
+
r(ue) ? x("", !0) : C(t.$slots, "rect", pt({
|
|
904
907
|
key: 1,
|
|
905
908
|
ref_for: !0
|
|
906
909
|
}, {
|
|
907
910
|
rect: l,
|
|
908
|
-
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
909
|
-
fontSize:
|
|
910
|
-
isZoom:
|
|
911
|
-
textColor: r(
|
|
911
|
+
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value,
|
|
912
|
+
fontSize: J(l),
|
|
913
|
+
isZoom: Q.value,
|
|
914
|
+
textColor: r(yt)(l.color)
|
|
912
915
|
}), void 0, !0)
|
|
913
916
|
])
|
|
914
|
-
], 8,
|
|
917
|
+
], 8, Nl))
|
|
915
918
|
]))), 128)),
|
|
916
|
-
C(t.$slots, "svg", ee(te({ svg:
|
|
917
|
-
], 14,
|
|
918
|
-
t.$slots.watermark ? (
|
|
919
|
-
C(t.$slots, "watermark", ee(te({ isPrinting: r(
|
|
919
|
+
C(t.$slots, "svg", ee(te({ svg: K.value, isZoom: Q.value, rect: M.value, config: e.value })), void 0, !0)
|
|
920
|
+
], 14, _l)),
|
|
921
|
+
t.$slots.watermark ? (v(), m("div", Pl, [
|
|
922
|
+
C(t.$slots, "watermark", ee(te({ isPrinting: r(Xe) || r(qe) })), void 0, !0)
|
|
920
923
|
])) : x("", !0),
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
e.value.style.chart.legend.show ? (p(), Q(al, {
|
|
926
|
-
key: `legend_${Ce.value}`,
|
|
927
|
-
legendSet: at.value,
|
|
928
|
-
config: It.value,
|
|
929
|
-
id: `treemap_legend_${I.value}`,
|
|
930
|
-
onClickMarker: o[0] || (o[0] = ({ legend: l }) => nt(l))
|
|
931
|
-
}, {
|
|
932
|
-
item: _(({ legend: l, index: a }) => [
|
|
933
|
-
r(ue) ? x("", !0) : (p(), m("div", {
|
|
934
|
-
key: 0,
|
|
935
|
-
onClick: (h) => nt(l),
|
|
936
|
-
style: V(`opacity:${L.value.includes(l.id) ? 0.5 : 1}`)
|
|
937
|
-
}, j(l.name) + j(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + j(e.value.style.chart.legend.showValue ? r(we)(
|
|
938
|
-
e.value.style.chart.layout.labels.formatter,
|
|
939
|
-
l.value,
|
|
940
|
-
r(ve)({
|
|
941
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
942
|
-
v: l.value,
|
|
943
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
944
|
-
r: e.value.style.chart.legend.roundingValue
|
|
945
|
-
}),
|
|
946
|
-
{ datapoint: l }
|
|
947
|
-
) : "") + " " + j(e.value.style.chart.legend.showPercentage ? L.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Nl))
|
|
948
|
-
]),
|
|
949
|
-
_: 1
|
|
950
|
-
}, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
|
|
951
|
-
key: 1,
|
|
952
|
-
legend: at.value
|
|
953
|
-
}, void 0, !0)
|
|
954
|
-
], 512),
|
|
955
|
-
t.$slots.source ? (p(), m("div", {
|
|
924
|
+
O("div", {
|
|
925
|
+
id: `legend-bottom-${$.value}`
|
|
926
|
+
}, null, 8, Rl),
|
|
927
|
+
He.value ? (v(), j(Et, {
|
|
956
928
|
key: 6,
|
|
929
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
|
|
930
|
+
}, [
|
|
931
|
+
O("div", {
|
|
932
|
+
ref_key: "chartLegend",
|
|
933
|
+
ref: Ve
|
|
934
|
+
}, [
|
|
935
|
+
e.value.style.chart.legend.show ? (v(), j(sl, {
|
|
936
|
+
key: `legend_${Ce.value}`,
|
|
937
|
+
legendSet: nt.value,
|
|
938
|
+
config: Ft.value,
|
|
939
|
+
id: `treemap_legend_${$.value}`,
|
|
940
|
+
onClickMarker: o[0] || (o[0] = ({ legend: l }) => st(l))
|
|
941
|
+
}, {
|
|
942
|
+
item: A(({ legend: l, index: a }) => [
|
|
943
|
+
r(ue) ? x("", !0) : (v(), m("div", {
|
|
944
|
+
key: 0,
|
|
945
|
+
onClick: (p) => st(l),
|
|
946
|
+
style: V(`opacity:${L.value.includes(l.id) ? 0.5 : 1}`)
|
|
947
|
+
}, Z(l.name) + Z(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + Z(e.value.style.chart.legend.showValue ? r(we)(
|
|
948
|
+
e.value.style.chart.layout.labels.formatter,
|
|
949
|
+
l.value,
|
|
950
|
+
r(de)({
|
|
951
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
952
|
+
v: l.value,
|
|
953
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
954
|
+
r: e.value.style.chart.legend.roundingValue
|
|
955
|
+
}),
|
|
956
|
+
{ datapoint: l }
|
|
957
|
+
) : "") + " " + Z(e.value.style.chart.legend.showPercentage ? L.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ll))
|
|
958
|
+
]),
|
|
959
|
+
_: 1
|
|
960
|
+
}, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
|
|
961
|
+
key: 1,
|
|
962
|
+
legend: nt.value
|
|
963
|
+
}, void 0, !0)
|
|
964
|
+
], 512)
|
|
965
|
+
], 8, ["to"])) : x("", !0),
|
|
966
|
+
t.$slots.source ? (v(), m("div", {
|
|
967
|
+
key: 7,
|
|
957
968
|
ref_key: "source",
|
|
958
969
|
ref: De,
|
|
959
970
|
dir: "auto"
|
|
960
971
|
}, [
|
|
961
972
|
C(t.$slots, "source", {}, void 0, !0)
|
|
962
973
|
], 512)) : x("", !0),
|
|
963
|
-
Fe(r(
|
|
974
|
+
Fe(r(d), {
|
|
964
975
|
show: P.value.showTooltip && D.value,
|
|
965
976
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
966
977
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -978,16 +989,16 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
978
989
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
979
990
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
980
991
|
}, {
|
|
981
|
-
"tooltip-before":
|
|
992
|
+
"tooltip-before": A(() => [
|
|
982
993
|
C(t.$slots, "tooltip-before", ee(te({ ...Oe.value })), void 0, !0)
|
|
983
994
|
]),
|
|
984
|
-
"tooltip-after":
|
|
995
|
+
"tooltip-after": A(() => [
|
|
985
996
|
C(t.$slots, "tooltip-after", ee(te({ ...Oe.value })), void 0, !0)
|
|
986
997
|
]),
|
|
987
998
|
_: 3
|
|
988
999
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
989
|
-
w.value ? (
|
|
990
|
-
key:
|
|
1000
|
+
w.value ? (v(), j(r(h), {
|
|
1001
|
+
key: 8,
|
|
991
1002
|
hideDetails: "",
|
|
992
1003
|
config: {
|
|
993
1004
|
open: P.value.showTable,
|
|
@@ -1002,8 +1013,8 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
1002
1013
|
}
|
|
1003
1014
|
}
|
|
1004
1015
|
}, {
|
|
1005
|
-
content:
|
|
1006
|
-
(
|
|
1016
|
+
content: A(() => [
|
|
1017
|
+
(v(), j(r(c), {
|
|
1007
1018
|
key: `table_${ke.value}`,
|
|
1008
1019
|
colNames: pe.value.colNames,
|
|
1009
1020
|
head: pe.value.head,
|
|
@@ -1012,24 +1023,24 @@ const ml = ["id"], yl = ["tabindex", "onClick", "onKeydown", "data-last-crumb",
|
|
|
1012
1023
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1013
1024
|
onClose: o[1] || (o[1] = (l) => P.value.showTable = !1)
|
|
1014
1025
|
}, {
|
|
1015
|
-
th:
|
|
1016
|
-
|
|
1026
|
+
th: A(({ th: l }) => [
|
|
1027
|
+
O("div", {
|
|
1017
1028
|
innerHTML: l,
|
|
1018
1029
|
style: { display: "flex", "align-items": "center" }
|
|
1019
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, Ml)
|
|
1020
1031
|
]),
|
|
1021
|
-
td:
|
|
1022
|
-
Pe(
|
|
1032
|
+
td: A(({ td: l }) => [
|
|
1033
|
+
Pe(Z(l.name || l), 1)
|
|
1023
1034
|
]),
|
|
1024
1035
|
_: 1
|
|
1025
1036
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1026
1037
|
]),
|
|
1027
1038
|
_: 1
|
|
1028
1039
|
}, 8, ["config"])) : x("", !0),
|
|
1029
|
-
r(ue) ? (
|
|
1030
|
-
], 46,
|
|
1040
|
+
r(ue) ? (v(), j(il, { key: 9 })) : x("", !0)
|
|
1041
|
+
], 46, bl));
|
|
1031
1042
|
}
|
|
1032
|
-
},
|
|
1043
|
+
}, Jl = /* @__PURE__ */ cl(Vl, [["__scopeId", "data-v-adb108e4"]]);
|
|
1033
1044
|
export {
|
|
1034
|
-
|
|
1045
|
+
Jl as default
|
|
1035
1046
|
};
|