vue-data-ui 2.16.6 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as J, useSlots as Ot, onMounted as st, computed as b, ref as $, shallowRef as B, watch as _t, onBeforeUnmount as St, createElementBlock as y, openBlock as h, unref as d, normalizeStyle as L, normalizeClass as $e, createBlock as Q, createCommentVNode as _, createElementVNode as S, createVNode as xe, createSlots as It, withCtx as O, renderSlot as w, normalizeProps as ee, guardReactiveProps as te, Fragment as ge, renderList as Te, withKeys as ut, withModifiers as Oe, mergeProps as rt, createTextVNode as _e, toDisplayString as X, nextTick as Ft } from "vue";
|
|
2
|
+
import { u as Nt, c as Se, t as Pt, p as I, a as zt, b as At, o as Rt, e as Vt, d as ye, i as me, f as ie, X as Lt, l as it, F as ct, x as dt, q as Mt, r as Dt, y as Bt } from "./index-CobsZUkv.js";
|
|
3
|
+
import { t as Ht, u as Ut } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as vt } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as Et } from "./usePrinter-DPh6U_Qk.js";
|
|
6
6
|
import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
7
|
+
import { u as qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Gt from "./BaseIcon-D9Tz8ARD.js";
|
|
9
|
+
import Xt from "./Title-DpERl1yr.js";
|
|
10
|
+
import jt from "./Legend-3LNqqLDg.js";
|
|
11
|
+
import Yt from "./img-utitT2Gd.js";
|
|
12
|
+
import { _ as Kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
function ht(n, r) {
|
|
13
14
|
const s = n.length;
|
|
14
15
|
if (s === 0)
|
|
15
16
|
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
16
17
|
{
|
|
17
|
-
let i = 1 / 0, u = -1 / 0,
|
|
18
|
+
let i = 1 / 0, u = -1 / 0, v = 0;
|
|
18
19
|
for (let g = 0; g < s; g += 1) {
|
|
19
20
|
const p = n[g].normalizedValue;
|
|
20
|
-
p < i && (i = p), p > u && (u = p),
|
|
21
|
+
p < i && (i = p), p > u && (u = p), v += p;
|
|
21
22
|
}
|
|
22
23
|
return Math.max(
|
|
23
|
-
r ** 2 * u /
|
|
24
|
-
|
|
24
|
+
r ** 2 * u / v ** 2,
|
|
25
|
+
v ** 2 / (r ** 2 * i)
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function pt(n) {
|
|
29
30
|
const { xOffset: r, yOffset: s, width: i, height: u } = n;
|
|
30
31
|
return {
|
|
31
32
|
x0: r,
|
|
@@ -34,76 +35,76 @@ function ht(n) {
|
|
|
34
35
|
y1: s + u
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
+
function Zt(n, r, s) {
|
|
38
39
|
if (n.length === 0)
|
|
39
40
|
return !0;
|
|
40
41
|
{
|
|
41
|
-
const i = n.concat(r), u =
|
|
42
|
+
const i = n.concat(r), u = ht(
|
|
42
43
|
n,
|
|
43
44
|
s
|
|
44
|
-
),
|
|
45
|
-
return u >=
|
|
45
|
+
), v = ht(i, s);
|
|
46
|
+
return u >= v;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function Jt(n) {
|
|
49
50
|
const r = [], s = n.length;
|
|
50
51
|
for (let i = 0; i < s; i += 1) {
|
|
51
|
-
const u = n[i],
|
|
52
|
-
for (let c = 0; c <
|
|
52
|
+
const u = n[i], v = u.length;
|
|
53
|
+
for (let c = 0; c < v; c += 1)
|
|
53
54
|
r.push(u[c]);
|
|
54
55
|
}
|
|
55
56
|
return r;
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function Qt(n, r) {
|
|
58
59
|
const s = {
|
|
59
60
|
...r,
|
|
60
61
|
children: n
|
|
61
62
|
};
|
|
62
|
-
return
|
|
63
|
+
return gt(s);
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function el(n) {
|
|
65
66
|
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
const { width: s, height: i, xOffset: u, yOffset:
|
|
69
|
-
let
|
|
68
|
+
function ft(n, r) {
|
|
69
|
+
const { width: s, height: i, xOffset: u, yOffset: v } = Ie(r), c = n.length, g = n.map((m) => m.normalizedValue || 0).reduce((m, x) => m + x, 0), p = g / i, H = g / s;
|
|
70
|
+
let P = u, k = v;
|
|
70
71
|
const C = [];
|
|
71
72
|
if (s >= i) {
|
|
72
73
|
for (let m = 0; m < c; m += 1) {
|
|
73
|
-
const x = n[m],
|
|
74
|
-
x0:
|
|
75
|
-
y0:
|
|
76
|
-
x1:
|
|
77
|
-
y1:
|
|
78
|
-
}, N = Object.assign({}, x,
|
|
79
|
-
|
|
74
|
+
const x = n[m], M = k + x.normalizedValue / p, z = {
|
|
75
|
+
x0: P,
|
|
76
|
+
y0: k,
|
|
77
|
+
x1: P + p,
|
|
78
|
+
y1: M
|
|
79
|
+
}, N = Object.assign({}, x, z);
|
|
80
|
+
k = M, C.push(N);
|
|
80
81
|
}
|
|
81
82
|
return C;
|
|
82
83
|
} else {
|
|
83
84
|
for (let m = 0; m < c; m += 1) {
|
|
84
|
-
const x = n[m],
|
|
85
|
-
x0:
|
|
86
|
-
y0:
|
|
87
|
-
x1:
|
|
88
|
-
y1:
|
|
89
|
-
}, N = Object.assign({}, x,
|
|
90
|
-
|
|
85
|
+
const x = n[m], M = P + x.normalizedValue / H, z = {
|
|
86
|
+
x0: P,
|
|
87
|
+
y0: k,
|
|
88
|
+
x1: M,
|
|
89
|
+
y1: k + H
|
|
90
|
+
}, N = Object.assign({}, x, z);
|
|
91
|
+
P = M, C.push(N);
|
|
91
92
|
}
|
|
92
93
|
return C;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function tl(n) {
|
|
96
97
|
const r = Ie(n), s = r.width, i = r.height;
|
|
97
98
|
return Math.min(s, i);
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
const s = n.length, i = n.map((p) => p.value ?? 0).reduce((p, H) => p + H, 0), u = r / i,
|
|
100
|
+
function ll(n, r) {
|
|
101
|
+
const s = n.length, i = n.map((p) => p.value ?? 0).reduce((p, H) => p + H, 0), u = r / i, v = [];
|
|
101
102
|
let c, g;
|
|
102
103
|
for (let p = 0; p < s; p += 1)
|
|
103
104
|
g = n[p], c = Object.assign({}, g, {
|
|
104
105
|
normalizedValue: g.value * (u || 0)
|
|
105
|
-
}),
|
|
106
|
-
return
|
|
106
|
+
}), v.push(c);
|
|
107
|
+
return v;
|
|
107
108
|
}
|
|
108
109
|
function Ie(n) {
|
|
109
110
|
const { x0: r, y0: s, x1: i, y1: u } = n;
|
|
@@ -114,78 +115,78 @@ function Ie(n) {
|
|
|
114
115
|
height: u - s
|
|
115
116
|
};
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
let u = n,
|
|
118
|
+
function ol(n, r, s, i) {
|
|
119
|
+
let u = n, v = r, c = s, g = i;
|
|
119
120
|
for (; ; ) {
|
|
120
121
|
const p = u.length;
|
|
121
122
|
if (p === 0) {
|
|
122
|
-
const C =
|
|
123
|
+
const C = ft(v, c);
|
|
123
124
|
return g.concat(C);
|
|
124
125
|
}
|
|
125
|
-
const H =
|
|
126
|
-
if (
|
|
127
|
-
const C =
|
|
128
|
-
u =
|
|
126
|
+
const H = tl(c), P = u[0], k = u.slice(1, p);
|
|
127
|
+
if (Zt(v, P, H)) {
|
|
128
|
+
const C = v.concat(P);
|
|
129
|
+
u = k, v = C, c = c, g = g;
|
|
129
130
|
} else {
|
|
130
|
-
const C =
|
|
131
|
+
const C = v.length;
|
|
131
132
|
let m = 0;
|
|
132
133
|
for (let N = 0; N < C; N += 1)
|
|
133
|
-
m +=
|
|
134
|
-
const x =
|
|
135
|
-
u = u,
|
|
134
|
+
m += v[N].normalizedValue;
|
|
135
|
+
const x = al(c, m), M = ft(v, c), z = g.concat(M);
|
|
136
|
+
u = u, v = [], c = x, g = z;
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
+
function gt(n) {
|
|
140
141
|
if (typeof n.children > "u" || !n.children.length)
|
|
141
142
|
return [n];
|
|
142
143
|
{
|
|
143
|
-
const r =
|
|
144
|
+
const r = ll(
|
|
144
145
|
n.children,
|
|
145
|
-
|
|
146
|
-
), s =
|
|
146
|
+
el(n)
|
|
147
|
+
), s = ol(r, [], n, []), i = s.length, u = [];
|
|
147
148
|
for (let c = 0; c < i; c += 1)
|
|
148
|
-
u.push(
|
|
149
|
-
return
|
|
149
|
+
u.push(gt(s[c]));
|
|
150
|
+
return Jt(u);
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
-
const { width: s, height: i, xOffset: u, yOffset:
|
|
153
|
+
function al(n, r) {
|
|
154
|
+
const { width: s, height: i, xOffset: u, yOffset: v } = Ie(n);
|
|
154
155
|
if (s >= i) {
|
|
155
156
|
const c = r / i, g = s - c, p = {
|
|
156
157
|
xOffset: u + c,
|
|
157
|
-
yOffset:
|
|
158
|
+
yOffset: v,
|
|
158
159
|
width: g,
|
|
159
160
|
height: i
|
|
160
161
|
};
|
|
161
|
-
return
|
|
162
|
+
return pt(p);
|
|
162
163
|
} else {
|
|
163
164
|
const c = r / s, g = i - c, p = {
|
|
164
165
|
xOffset: u,
|
|
165
|
-
yOffset:
|
|
166
|
+
yOffset: v + c,
|
|
166
167
|
width: s,
|
|
167
168
|
height: g
|
|
168
169
|
};
|
|
169
|
-
return
|
|
170
|
+
return pt(p);
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
const
|
|
173
|
+
const nl = ["id"], sl = {
|
|
173
174
|
key: 4,
|
|
174
175
|
class: "vue-ui-treemap-breadcrumbs",
|
|
175
176
|
"data-dom-to-png-ignore": ""
|
|
176
|
-
},
|
|
177
|
+
}, ul = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], rl = { class: "vue-ui-treemap-crumb-unit" }, il = { class: "vue-ui-treemap-crumb-unit-label" }, cl = {
|
|
177
178
|
key: 0,
|
|
178
179
|
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
179
|
-
},
|
|
180
|
+
}, dl = {
|
|
180
181
|
key: 0,
|
|
181
182
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
182
|
-
},
|
|
183
|
+
}, vl = ["xmlns", "viewBox"], hl = { key: 0 }, pl = ["id"], fl = ["stop-color"], gl = ["stop-color"], yl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], ml = ["x", "y", "height", "width"], bl = {
|
|
183
184
|
style: { width: "100%", height: "100%" },
|
|
184
185
|
class: "vue-ui-treemap-cell"
|
|
185
|
-
},
|
|
186
|
+
}, wl = {
|
|
186
187
|
key: 6,
|
|
187
188
|
class: "vue-data-ui-watermark"
|
|
188
|
-
},
|
|
189
|
+
}, kl = ["onClick"], Cl = ["innerHTML"], $l = {
|
|
189
190
|
__name: "vue-ui-treemap",
|
|
190
191
|
props: {
|
|
191
192
|
config: {
|
|
@@ -203,88 +204,88 @@ const ol = ["id"], al = {
|
|
|
203
204
|
},
|
|
204
205
|
emits: ["selectLegend", "selectDatapoint"],
|
|
205
206
|
setup(n, { expose: r, emit: s }) {
|
|
206
|
-
const i =
|
|
207
|
-
|
|
207
|
+
const i = J(() => import("./DataTable-Dt-TIOyY.js")), u = J(() => import("./PenAndPaper-Cde-wJ3N.js")), v = J(() => import("./vue-ui-accordion-UewqY6OI.js")), c = J(() => import("./vue-ui-skeleton-8s4xts8z.js")), g = J(() => import("./Tooltip-DA0bYKFG.js")), p = J(() => import("./UserOptions-DTEJ3UM_.js")), H = J(() => import("./PackageVersion-C-4Ee8BQ.js")), { vue_ui_treemap: P } = Nt(), k = n, C = s, m = Ot();
|
|
208
|
+
st(() => {
|
|
208
209
|
m["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
209
210
|
});
|
|
210
|
-
const x = b(() => !!
|
|
211
|
+
const x = b(() => !!k.dataset && k.dataset.length), M = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), z = $(Se()), N = $(!1), be = $(""), le = $(!1), Fe = $(0), A = $([]), U = B(null), Ne = B(null), Pe = B(null), ze = B(null), Ae = B(null), Re = $(0), Ve = $(0), Le = $(0), e = b({
|
|
211
212
|
get: () => He(),
|
|
212
213
|
set: (t) => t
|
|
213
|
-
}), { userOptionsVisible: we, setUserOptionsVisibility:
|
|
214
|
+
}), { userOptionsVisible: we, setUserOptionsVisibility: Me, keepUserOptionState: De } = Wt({ config: e.value }), { svgRef: Be } = qt({ config: e.value.style.chart.title });
|
|
214
215
|
function He() {
|
|
215
|
-
const t =
|
|
216
|
-
userConfig:
|
|
217
|
-
defaultConfig:
|
|
216
|
+
const t = vt({
|
|
217
|
+
userConfig: k.config,
|
|
218
|
+
defaultConfig: P
|
|
218
219
|
});
|
|
219
220
|
return t.theme ? {
|
|
220
|
-
...
|
|
221
|
-
userConfig: zt.vue_ui_treemap[t.theme] ||
|
|
221
|
+
...vt({
|
|
222
|
+
userConfig: zt.vue_ui_treemap[t.theme] || k.config,
|
|
222
223
|
defaultConfig: t
|
|
223
224
|
}),
|
|
224
|
-
customPalette:
|
|
225
|
+
customPalette: Pt[t.theme] || I
|
|
225
226
|
} : t;
|
|
226
227
|
}
|
|
227
|
-
|
|
228
|
-
e.value = He(), we.value = !e.value.userOptions.showOnChartHover, Re.value += 1,
|
|
228
|
+
_t(() => k.config, (t) => {
|
|
229
|
+
e.value = He(), we.value = !e.value.userOptions.showOnChartHover, Re.value += 1, Ve.value += 1, Le.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
229
230
|
}, { deep: !0 });
|
|
230
|
-
const { isPrinting: Ue, isImaging:
|
|
231
|
-
elementId: `treemap_${
|
|
231
|
+
const { isPrinting: Ue, isImaging: Ee, generatePdf: We, generateImage: qe } = Et({
|
|
232
|
+
elementId: `treemap_${z.value}`,
|
|
232
233
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
233
234
|
options: e.value.userOptions.print
|
|
234
|
-
}),
|
|
235
|
+
}), yt = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), ce = b(() => At(e.value.customPalette)), R = $({
|
|
235
236
|
showTable: e.value.table.show,
|
|
236
237
|
showTooltip: e.value.style.chart.tooltip.show
|
|
237
|
-
}),
|
|
238
|
+
}), E = $({
|
|
238
239
|
height: e.value.style.chart.height,
|
|
239
240
|
width: e.value.style.chart.width
|
|
240
|
-
}),
|
|
241
|
-
bottom:
|
|
242
|
-
height:
|
|
241
|
+
}), j = b(() => ({
|
|
242
|
+
bottom: E.value.height - e.value.style.chart.padding.bottom,
|
|
243
|
+
height: E.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
243
244
|
left: e.value.style.chart.padding.left,
|
|
244
|
-
right:
|
|
245
|
+
right: E.value.width - e.value.style.chart.padding.right,
|
|
245
246
|
top: e.value.style.chart.padding.top,
|
|
246
|
-
vbHeight:
|
|
247
|
-
vbWidth:
|
|
248
|
-
width:
|
|
247
|
+
vbHeight: E.value.height,
|
|
248
|
+
vbWidth: E.value.width,
|
|
249
|
+
width: E.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
249
250
|
}));
|
|
250
251
|
function Ge(t) {
|
|
251
252
|
t.forEach((o, l) => {
|
|
252
|
-
o.id = Se(), o.color =
|
|
253
|
+
o.id = Se(), o.color = ye(o.color) || ce.value[l] || I[l] || I[l % I.length], o.children && (o.children.forEach((a) => {
|
|
253
254
|
a.parentId = o.id, a.color = o.color;
|
|
254
255
|
}), Ge(o.children));
|
|
255
256
|
});
|
|
256
257
|
}
|
|
257
|
-
const W = B(
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
const W = B(k.dataset), q = B(null), oe = B(null);
|
|
259
|
+
st(() => {
|
|
260
|
+
mt();
|
|
260
261
|
});
|
|
261
|
-
function
|
|
262
|
-
if (
|
|
262
|
+
function mt() {
|
|
263
|
+
if (Rt(k.dataset) && Vt({
|
|
263
264
|
componentName: "VueUiTreemap",
|
|
264
265
|
type: "dataset"
|
|
265
266
|
}), Ge(W.value), e.value.responsive) {
|
|
266
|
-
const t =
|
|
267
|
-
const { width: o, height: l } =
|
|
268
|
-
chart:
|
|
267
|
+
const t = Ht(() => {
|
|
268
|
+
const { width: o, height: l } = Ut({
|
|
269
|
+
chart: U.value,
|
|
269
270
|
title: e.value.style.chart.title.text ? Ne.value : null,
|
|
270
|
-
legend: e.value.style.chart.legend.show ?
|
|
271
|
-
source:
|
|
272
|
-
noTitle:
|
|
271
|
+
legend: e.value.style.chart.legend.show ? Pe.value : null,
|
|
272
|
+
source: ze.value,
|
|
273
|
+
noTitle: Ae.value
|
|
273
274
|
});
|
|
274
275
|
requestAnimationFrame(() => {
|
|
275
|
-
|
|
276
|
+
E.value.width = o, E.value.height = l;
|
|
276
277
|
});
|
|
277
278
|
});
|
|
278
|
-
|
|
279
|
+
q.value && (oe.value && q.value.unobserve(oe.value), q.value.disconnect()), q.value = new ResizeObserver(t), oe.value = U.value.parentNode, q.value.observe(oe.value);
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
St(() => {
|
|
283
|
+
q.value && (oe.value && q.value.unobserve(oe.value), q.value.disconnect());
|
|
283
284
|
});
|
|
284
|
-
const
|
|
285
|
+
const ae = $(W.value), ue = b(() => ae.value.map((t, o) => ({
|
|
285
286
|
...t,
|
|
286
|
-
color:
|
|
287
|
-
})).filter((t) => !
|
|
287
|
+
color: ye(t.color) || ce.value[o] || I[o] || I[o % I.length]
|
|
288
|
+
})).filter((t) => !A.value.includes(t.id))), ne = b(() => W.value.filter((t) => !A.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Xe = b({
|
|
288
289
|
get() {
|
|
289
290
|
let t = [...ue.value];
|
|
290
291
|
return e.value.style.chart.layout.sorted && (t = [...ue.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
@@ -298,23 +299,23 @@ const ol = ["id"], al = {
|
|
|
298
299
|
function je(t, o) {
|
|
299
300
|
return t.value / o;
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
+
function bt(t, o, l) {
|
|
302
303
|
const a = e.value.style.chart.layout.rects.colorRatio - je(o, l);
|
|
303
|
-
return
|
|
304
|
+
return it(t, a < 0 ? 0 : a);
|
|
304
305
|
}
|
|
305
306
|
function Ye(t, o, l, a) {
|
|
306
|
-
return t.map((f,
|
|
307
|
-
const fe =
|
|
307
|
+
return t.map((f, T) => {
|
|
308
|
+
const fe = bt(ye(o) || ce.value[T] || I[T] || I[T % I.length], f, a), Tt = je(f, a);
|
|
308
309
|
return {
|
|
309
310
|
...f,
|
|
310
311
|
color: fe,
|
|
311
|
-
proportion:
|
|
312
|
+
proportion: Tt,
|
|
312
313
|
parentName: l,
|
|
313
314
|
children: f.children ? Ye(f.children, fe, f.name, a) : void 0
|
|
314
315
|
};
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
|
-
const re = b(() =>
|
|
318
|
+
const re = b(() => Qt(
|
|
318
319
|
Xe.value.map((t, o) => {
|
|
319
320
|
const l = t.children ? t.children.reduce((a, f) => a + f.value, 0) : t.value;
|
|
320
321
|
return {
|
|
@@ -325,7 +326,7 @@ const ol = ["id"], al = {
|
|
|
325
326
|
name: t.name
|
|
326
327
|
};
|
|
327
328
|
}),
|
|
328
|
-
{ x0:
|
|
329
|
+
{ x0: j.value.left * 2, y0: j.value.top, x1: j.value.width, y1: j.value.height }
|
|
329
330
|
));
|
|
330
331
|
function Ke({ y0: t, y1: o }) {
|
|
331
332
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
@@ -333,66 +334,66 @@ const ol = ["id"], al = {
|
|
|
333
334
|
function Ze({ x0: t, x1: o }) {
|
|
334
335
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function Y(t) {
|
|
337
338
|
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
338
339
|
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
-
|
|
341
|
+
function Je(t) {
|
|
342
|
+
le.value = t, Fe.value += 1;
|
|
342
343
|
}
|
|
343
|
-
const
|
|
344
|
+
const se = b(() => ({
|
|
344
345
|
startX: 0,
|
|
345
346
|
startY: 0,
|
|
346
|
-
width:
|
|
347
|
-
height:
|
|
347
|
+
width: j.value.vbWidth,
|
|
348
|
+
height: j.value.vbHeight
|
|
348
349
|
}));
|
|
349
|
-
function
|
|
350
|
+
function K(t, o = W.value) {
|
|
350
351
|
for (const l of o) {
|
|
351
352
|
if (l.id === t)
|
|
352
353
|
return l;
|
|
353
354
|
if (l.children) {
|
|
354
|
-
const a =
|
|
355
|
+
const a = K(t, l.children);
|
|
355
356
|
if (a)
|
|
356
357
|
return a;
|
|
357
358
|
}
|
|
358
359
|
}
|
|
359
360
|
return null;
|
|
360
361
|
}
|
|
361
|
-
const
|
|
362
|
+
const F = $([]), Z = b(() => F.value.length > 0);
|
|
362
363
|
function de(t) {
|
|
363
364
|
if (!t) {
|
|
364
|
-
|
|
365
|
+
ae.value = W.value.slice(), C("selectDatapoint", void 0), F.value = [];
|
|
365
366
|
return;
|
|
366
367
|
}
|
|
367
|
-
const o =
|
|
368
|
+
const o = K(t.id);
|
|
368
369
|
if (o && o.children?.length)
|
|
369
|
-
|
|
370
|
+
F.value.push(o.id), ae.value = o.children.slice(), C("selectDatapoint", t);
|
|
370
371
|
else if (t.parentId) {
|
|
371
|
-
|
|
372
|
-
const l =
|
|
373
|
-
|
|
374
|
-
} else if (
|
|
375
|
-
|
|
376
|
-
const l =
|
|
372
|
+
F.value.push(t.parentId);
|
|
373
|
+
const l = K(t.parentId);
|
|
374
|
+
ae.value = l.children.slice(), C("selectDatapoint", t);
|
|
375
|
+
} else if (F.value.length > 0) {
|
|
376
|
+
F.value.pop();
|
|
377
|
+
const l = F.value[F.value.length - 1];
|
|
377
378
|
if (l) {
|
|
378
|
-
const a =
|
|
379
|
-
|
|
379
|
+
const a = K(l);
|
|
380
|
+
ae.value = a.children.slice();
|
|
380
381
|
} else
|
|
381
|
-
|
|
382
|
+
ae.value = W.value.slice(), F.value = [], C("selectDatapoint", void 0);
|
|
382
383
|
}
|
|
383
384
|
}
|
|
384
|
-
function
|
|
385
|
-
return !!(
|
|
385
|
+
function wt(t) {
|
|
386
|
+
return !!(K(t.id)?.children?.length || t.parentId);
|
|
386
387
|
}
|
|
387
|
-
const
|
|
388
|
+
const G = b(() => {
|
|
388
389
|
const t = [
|
|
389
390
|
{ id: null, label: "All" }
|
|
390
391
|
];
|
|
391
|
-
if (
|
|
392
|
-
let o =
|
|
392
|
+
if (F.value.length > 0) {
|
|
393
|
+
let o = K(F.value[F.value.length - 1]);
|
|
393
394
|
const l = [];
|
|
394
395
|
for (; o; )
|
|
395
|
-
l.unshift(o), o = o.parentId ?
|
|
396
|
+
l.unshift(o), o = o.parentId ? K(o.parentId) : null;
|
|
396
397
|
for (const a of l)
|
|
397
398
|
t.push({
|
|
398
399
|
id: a.id,
|
|
@@ -401,15 +402,15 @@ const ol = ["id"], al = {
|
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
404
|
return t;
|
|
404
|
-
}),
|
|
405
|
+
}), V = B(null), Qe = b(() => W.value.map((t, o) => ({
|
|
405
406
|
...t,
|
|
406
|
-
color:
|
|
407
|
+
color: ye(t.color) || ce.value[o] || I[o] || I[o % I.length],
|
|
407
408
|
shape: "square"
|
|
408
409
|
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
409
410
|
...t,
|
|
410
411
|
proportion: t.value / W.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
411
|
-
opacity:
|
|
412
|
-
}))),
|
|
412
|
+
opacity: A.value.includes(t.id) ? 0.5 : 1
|
|
413
|
+
}))), kt = b(() => ({
|
|
413
414
|
cy: "treemap-div-legend",
|
|
414
415
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
415
416
|
color: e.value.style.chart.legend.color,
|
|
@@ -417,20 +418,20 @@ const ol = ["id"], al = {
|
|
|
417
418
|
paddingBottom: 12,
|
|
418
419
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
419
420
|
}));
|
|
420
|
-
function
|
|
421
|
-
|
|
421
|
+
function et(t) {
|
|
422
|
+
V.value = null, A.value.includes(t.id) ? A.value = A.value.filter((o) => o !== t.id) : A.value.length < k.dataset.length - 1 && A.value.push(t.id), C("selectLegend", Xe.value);
|
|
422
423
|
}
|
|
423
|
-
const
|
|
424
|
+
const ke = $(null);
|
|
424
425
|
function Ct({ datapoint: t, seriesIndex: o }) {
|
|
425
|
-
|
|
426
|
+
V.value = t, ke.value = { datapoint: t, seriesIndex: o, config: e.value, series: ue.value };
|
|
426
427
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
427
|
-
if (
|
|
428
|
+
if (dt(l) && Bt(() => l({
|
|
428
429
|
seriesIndex: o,
|
|
429
430
|
datapoint: t,
|
|
430
431
|
series: ue.value,
|
|
431
432
|
config: e.value
|
|
432
433
|
})))
|
|
433
|
-
|
|
434
|
+
be.value = l({
|
|
434
435
|
seriesIndex: o,
|
|
435
436
|
datapoint: t,
|
|
436
437
|
series: ue.value,
|
|
@@ -438,7 +439,7 @@ const ol = ["id"], al = {
|
|
|
438
439
|
});
|
|
439
440
|
else {
|
|
440
441
|
let a = "";
|
|
441
|
-
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>${
|
|
442
|
+
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>${me(
|
|
442
443
|
e.value.style.chart.layout.labels.formatter,
|
|
443
444
|
t.value,
|
|
444
445
|
ie({
|
|
@@ -448,22 +449,22 @@ const ol = ["id"], al = {
|
|
|
448
449
|
r: e.value.style.chart.tooltip.roundingValue
|
|
449
450
|
}),
|
|
450
451
|
{ datapoint: t, seriesIndex: o }
|
|
451
|
-
)}</b>`,
|
|
452
|
+
)}</b>`, be.value = `<div>${a}</div>`;
|
|
452
453
|
}
|
|
453
454
|
N.value = !0;
|
|
454
455
|
}
|
|
455
|
-
const
|
|
456
|
+
const D = b(() => {
|
|
456
457
|
const t = re.value.map((l) => ({
|
|
457
458
|
name: l.name,
|
|
458
459
|
color: l.color
|
|
459
460
|
})), o = re.value.map((l) => l.value);
|
|
460
461
|
return { head: t, body: o };
|
|
461
462
|
});
|
|
462
|
-
function
|
|
463
|
-
|
|
464
|
-
const o =
|
|
463
|
+
function tt(t = null) {
|
|
464
|
+
Ft(() => {
|
|
465
|
+
const o = D.value.head.map((f, T) => [[
|
|
465
466
|
f.name
|
|
466
|
-
], [
|
|
467
|
+
], [D.value.body[T]], [isNaN(D.value.body[T] / ne.value) ? "-" : D.value.body[T] / ne.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Mt(l);
|
|
467
468
|
t ? t(a) : Dt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
468
469
|
});
|
|
469
470
|
}
|
|
@@ -472,13 +473,13 @@ const ol = ["id"], al = {
|
|
|
472
473
|
e.value.table.columnNames.series,
|
|
473
474
|
e.value.table.columnNames.value,
|
|
474
475
|
e.value.table.columnNames.percentage
|
|
475
|
-
], o =
|
|
476
|
-
const fe =
|
|
476
|
+
], o = D.value.head.map((f, T) => {
|
|
477
|
+
const fe = me(
|
|
477
478
|
e.value.style.chart.layout.labels.formatter,
|
|
478
|
-
|
|
479
|
+
D.value.body[T],
|
|
479
480
|
ie({
|
|
480
481
|
p: e.value.style.chart.layout.labels.prefix,
|
|
481
|
-
v:
|
|
482
|
+
v: D.value.body[T],
|
|
482
483
|
s: e.value.style.chart.layout.labels.suffix,
|
|
483
484
|
r: e.value.table.td.roundingValue
|
|
484
485
|
})
|
|
@@ -490,8 +491,8 @@ const ol = ["id"], al = {
|
|
|
490
491
|
shape: "square"
|
|
491
492
|
},
|
|
492
493
|
fe,
|
|
493
|
-
isNaN(
|
|
494
|
-
v:
|
|
494
|
+
isNaN(D.value.body[T] / ne.value) ? "-" : ie({
|
|
495
|
+
v: D.value.body[T] / ne.value * 100,
|
|
495
496
|
s: "%",
|
|
496
497
|
r: e.value.table.td.roundingPercentage
|
|
497
498
|
})
|
|
@@ -522,62 +523,76 @@ const ol = ["id"], al = {
|
|
|
522
523
|
function $t() {
|
|
523
524
|
return re.value;
|
|
524
525
|
}
|
|
525
|
-
function
|
|
526
|
+
function lt() {
|
|
526
527
|
R.value.showTable = !R.value.showTable;
|
|
527
528
|
}
|
|
528
|
-
function
|
|
529
|
+
function ot() {
|
|
529
530
|
R.value.showTooltip = !R.value.showTooltip;
|
|
530
531
|
}
|
|
531
532
|
const he = $(!1);
|
|
532
|
-
function
|
|
533
|
+
function Ce() {
|
|
533
534
|
he.value = !he.value;
|
|
534
535
|
}
|
|
535
536
|
const pe = $(null);
|
|
536
|
-
function
|
|
537
|
+
function at(t) {
|
|
537
538
|
pe.value = t;
|
|
538
539
|
}
|
|
539
|
-
function
|
|
540
|
+
function nt() {
|
|
540
541
|
pe.value = null;
|
|
541
542
|
}
|
|
543
|
+
async function xt({ scale: t = 2 } = {}) {
|
|
544
|
+
if (!U.value) return;
|
|
545
|
+
const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: f, base64: T } = await Yt({ domElement: U.value, base64: !0, img: !0, scale: t });
|
|
546
|
+
return {
|
|
547
|
+
imageUri: f,
|
|
548
|
+
base64: T,
|
|
549
|
+
title: e.value.style.chart.title.text,
|
|
550
|
+
width: o,
|
|
551
|
+
height: l,
|
|
552
|
+
aspectRatio: a
|
|
553
|
+
};
|
|
554
|
+
}
|
|
542
555
|
return r({
|
|
543
556
|
getData: $t,
|
|
544
|
-
|
|
557
|
+
getImage: xt,
|
|
558
|
+
generateCsv: tt,
|
|
545
559
|
generateImage: qe,
|
|
546
|
-
generatePdf:
|
|
547
|
-
toggleTable:
|
|
548
|
-
toggleTooltip:
|
|
549
|
-
toggleAnnotator:
|
|
550
|
-
|
|
560
|
+
generatePdf: We,
|
|
561
|
+
toggleTable: lt,
|
|
562
|
+
toggleTooltip: ot,
|
|
563
|
+
toggleAnnotator: Ce,
|
|
564
|
+
toggleFullscreen: Je
|
|
565
|
+
}), (t, o) => (h(), y("div", {
|
|
551
566
|
ref_key: "treemapChart",
|
|
552
|
-
ref:
|
|
553
|
-
class:
|
|
554
|
-
style:
|
|
555
|
-
id: `treemap_${
|
|
556
|
-
onMouseenter: o[3] || (o[3] = () => d(
|
|
557
|
-
onMouseleave: o[4] || (o[4] = () => d(
|
|
567
|
+
ref: U,
|
|
568
|
+
class: $e(`vue-ui-treemap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
569
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
570
|
+
id: `treemap_${z.value}`,
|
|
571
|
+
onMouseenter: o[3] || (o[3] = () => d(Me)(!0)),
|
|
572
|
+
onMouseleave: o[4] || (o[4] = () => d(Me)(!1))
|
|
558
573
|
}, [
|
|
559
|
-
e.value.userOptions.buttons.annotator ? (
|
|
574
|
+
e.value.userOptions.buttons.annotator ? (h(), Q(d(u), {
|
|
560
575
|
key: 0,
|
|
561
576
|
svgRef: d(Be),
|
|
562
577
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
563
578
|
color: e.value.style.chart.color,
|
|
564
579
|
active: he.value,
|
|
565
|
-
onClose:
|
|
566
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
567
|
-
|
|
580
|
+
onClose: Ce
|
|
581
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
582
|
+
yt.value ? (h(), y("div", {
|
|
568
583
|
key: 1,
|
|
569
584
|
ref_key: "noTitle",
|
|
570
|
-
ref:
|
|
585
|
+
ref: Ae,
|
|
571
586
|
class: "vue-data-ui-no-title-space",
|
|
572
587
|
style: "height:36px; width: 100%;background:transparent"
|
|
573
|
-
}, null, 512)) :
|
|
574
|
-
e.value.style.chart.title.text ? (
|
|
588
|
+
}, null, 512)) : _("", !0),
|
|
589
|
+
e.value.style.chart.title.text ? (h(), y("div", {
|
|
575
590
|
key: 2,
|
|
576
591
|
ref_key: "chartTitle",
|
|
577
592
|
ref: Ne,
|
|
578
|
-
style:
|
|
593
|
+
style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
579
594
|
}, [
|
|
580
|
-
(
|
|
595
|
+
(h(), Q(Xt, {
|
|
581
596
|
key: `title_${Re.value}`,
|
|
582
597
|
config: {
|
|
583
598
|
title: {
|
|
@@ -590,215 +605,215 @@ const ol = ["id"], al = {
|
|
|
590
605
|
}
|
|
591
606
|
}
|
|
592
607
|
}, null, 8, ["config"]))
|
|
593
|
-
], 4)) :
|
|
594
|
-
e.value.userOptions.show && x.value && (d(
|
|
608
|
+
], 4)) : _("", !0),
|
|
609
|
+
e.value.userOptions.show && x.value && (d(De) || d(we)) ? (h(), Q(d(p), {
|
|
595
610
|
ref: "details",
|
|
596
611
|
key: `user_option_${Fe.value}`,
|
|
597
612
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
598
613
|
color: e.value.style.chart.color,
|
|
599
614
|
isPrinting: d(Ue),
|
|
600
|
-
isImaging: d(
|
|
601
|
-
uid:
|
|
615
|
+
isImaging: d(Ee),
|
|
616
|
+
uid: z.value,
|
|
602
617
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
603
618
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
604
619
|
hasXls: e.value.userOptions.buttons.csv,
|
|
605
620
|
hasImg: e.value.userOptions.buttons.img,
|
|
606
621
|
hasTable: e.value.userOptions.buttons.table,
|
|
607
622
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
608
|
-
isFullscreen:
|
|
623
|
+
isFullscreen: le.value,
|
|
609
624
|
isTooltip: R.value.showTooltip,
|
|
610
625
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
611
|
-
chartElement:
|
|
626
|
+
chartElement: U.value,
|
|
612
627
|
position: e.value.userOptions.position,
|
|
613
628
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
614
629
|
isAnnotation: he.value,
|
|
615
630
|
callbacks: e.value.userOptions.callbacks,
|
|
616
631
|
printScale: e.value.userOptions.print.scale,
|
|
617
|
-
onToggleFullscreen:
|
|
618
|
-
onGeneratePdf: d(
|
|
619
|
-
onGenerateCsv:
|
|
632
|
+
onToggleFullscreen: Je,
|
|
633
|
+
onGeneratePdf: d(We),
|
|
634
|
+
onGenerateCsv: tt,
|
|
620
635
|
onGenerateImage: d(qe),
|
|
621
|
-
onToggleTable:
|
|
622
|
-
onToggleTooltip:
|
|
623
|
-
onToggleAnnotator:
|
|
624
|
-
style:
|
|
625
|
-
visibility: d(
|
|
636
|
+
onToggleTable: lt,
|
|
637
|
+
onToggleTooltip: ot,
|
|
638
|
+
onToggleAnnotator: Ce,
|
|
639
|
+
style: L({
|
|
640
|
+
visibility: d(De) ? d(we) ? "visible" : "hidden" : "visible"
|
|
626
641
|
})
|
|
627
|
-
},
|
|
642
|
+
}, It({ _: 2 }, [
|
|
628
643
|
t.$slots.menuIcon ? {
|
|
629
644
|
name: "menuIcon",
|
|
630
|
-
fn:
|
|
631
|
-
|
|
645
|
+
fn: O(({ isOpen: l, color: a }) => [
|
|
646
|
+
w(t.$slots, "menuIcon", ee(te({ isOpen: l, color: a })), void 0, !0)
|
|
632
647
|
]),
|
|
633
648
|
key: "0"
|
|
634
649
|
} : void 0,
|
|
635
650
|
t.$slots.optionTooltip ? {
|
|
636
651
|
name: "optionTooltip",
|
|
637
|
-
fn:
|
|
638
|
-
|
|
652
|
+
fn: O(() => [
|
|
653
|
+
w(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
639
654
|
]),
|
|
640
655
|
key: "1"
|
|
641
656
|
} : void 0,
|
|
642
657
|
t.$slots.optionPdf ? {
|
|
643
658
|
name: "optionPdf",
|
|
644
|
-
fn:
|
|
645
|
-
|
|
659
|
+
fn: O(() => [
|
|
660
|
+
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
646
661
|
]),
|
|
647
662
|
key: "2"
|
|
648
663
|
} : void 0,
|
|
649
664
|
t.$slots.optionCsv ? {
|
|
650
665
|
name: "optionCsv",
|
|
651
|
-
fn:
|
|
652
|
-
|
|
666
|
+
fn: O(() => [
|
|
667
|
+
w(t.$slots, "optionCsv", {}, void 0, !0)
|
|
653
668
|
]),
|
|
654
669
|
key: "3"
|
|
655
670
|
} : void 0,
|
|
656
671
|
t.$slots.optionImg ? {
|
|
657
672
|
name: "optionImg",
|
|
658
|
-
fn:
|
|
659
|
-
|
|
673
|
+
fn: O(() => [
|
|
674
|
+
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
660
675
|
]),
|
|
661
676
|
key: "4"
|
|
662
677
|
} : void 0,
|
|
663
678
|
t.$slots.optionTable ? {
|
|
664
679
|
name: "optionTable",
|
|
665
|
-
fn:
|
|
666
|
-
|
|
680
|
+
fn: O(() => [
|
|
681
|
+
w(t.$slots, "optionTable", {}, void 0, !0)
|
|
667
682
|
]),
|
|
668
683
|
key: "5"
|
|
669
684
|
} : void 0,
|
|
670
685
|
t.$slots.optionFullscreen ? {
|
|
671
686
|
name: "optionFullscreen",
|
|
672
|
-
fn:
|
|
673
|
-
|
|
687
|
+
fn: O(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
688
|
+
w(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
674
689
|
]),
|
|
675
690
|
key: "6"
|
|
676
691
|
} : void 0,
|
|
677
692
|
t.$slots.optionAnnotator ? {
|
|
678
693
|
name: "optionAnnotator",
|
|
679
|
-
fn:
|
|
680
|
-
|
|
694
|
+
fn: O(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
695
|
+
w(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
681
696
|
]),
|
|
682
697
|
key: "7"
|
|
683
698
|
} : void 0
|
|
684
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
685
|
-
|
|
686
|
-
(
|
|
699
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
700
|
+
G.value.length > 1 ? (h(), y("nav", sl, [
|
|
701
|
+
(h(!0), y(ge, null, Te(G.value, (l, a) => (h(), y("span", {
|
|
687
702
|
role: "button",
|
|
688
|
-
tabindex: a <
|
|
703
|
+
tabindex: a < G.value.length - 1 ? 0 : void 0,
|
|
689
704
|
key: l.id || "root",
|
|
690
|
-
onClick: (f) => a ===
|
|
705
|
+
onClick: (f) => a === G.value.length - 1 ? () => {
|
|
691
706
|
} : de(l.node),
|
|
692
707
|
onKeydown: [
|
|
693
|
-
|
|
694
|
-
|
|
708
|
+
ut(Oe((f) => a === G.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["enter"]),
|
|
709
|
+
ut(Oe((f) => a === G.value.length - 1 ? void 0 : de(l.node), ["prevent"]), ["space"])
|
|
695
710
|
],
|
|
696
711
|
class: "vue-ui-treemap-crumb",
|
|
697
|
-
"data-last-crumb": a ===
|
|
698
|
-
style:
|
|
712
|
+
"data-last-crumb": a === G.value.length - 1,
|
|
713
|
+
style: L({
|
|
699
714
|
color: e.value.style.chart.color
|
|
700
715
|
}),
|
|
701
|
-
onMouseenter: (f) =>
|
|
702
|
-
onMouseleave:
|
|
703
|
-
onFocus: (f) =>
|
|
704
|
-
onBlur:
|
|
716
|
+
onMouseenter: (f) => at(a),
|
|
717
|
+
onMouseleave: nt,
|
|
718
|
+
onFocus: (f) => at(a),
|
|
719
|
+
onBlur: nt
|
|
705
720
|
}, [
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
a === 0 ? (
|
|
710
|
-
|
|
721
|
+
S("span", rl, [
|
|
722
|
+
S("span", il, [
|
|
723
|
+
w(t.$slots, "breadcrumb-label", rt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: pe.value === a }), () => [
|
|
724
|
+
a === 0 ? (h(), y("div", cl, [
|
|
725
|
+
xe(Gt, {
|
|
711
726
|
name: pe.value === 0 ? "homeFilled" : "home",
|
|
712
727
|
stroke: e.value.style.chart.color
|
|
713
728
|
}, null, 8, ["name", "stroke"])
|
|
714
|
-
])) : (
|
|
715
|
-
|
|
729
|
+
])) : (h(), y(ge, { key: 1 }, [
|
|
730
|
+
_e(X(l.label), 1)
|
|
716
731
|
], 64))
|
|
717
732
|
], !0)
|
|
718
733
|
]),
|
|
719
|
-
a <
|
|
720
|
-
|
|
721
|
-
o[5] || (o[5] =
|
|
734
|
+
a < G.value.length - 1 ? (h(), y("span", dl, [
|
|
735
|
+
w(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
736
|
+
o[5] || (o[5] = _e(" › "))
|
|
722
737
|
], !0)
|
|
723
|
-
])) :
|
|
738
|
+
])) : _("", !0)
|
|
724
739
|
])
|
|
725
|
-
], 44,
|
|
726
|
-
])) :
|
|
727
|
-
x.value ? (
|
|
740
|
+
], 44, ul))), 128))
|
|
741
|
+
])) : _("", !0),
|
|
742
|
+
x.value ? (h(), y("svg", {
|
|
728
743
|
key: 5,
|
|
729
744
|
ref_key: "svgRef",
|
|
730
745
|
ref: Be,
|
|
731
746
|
xmlns: d(Lt),
|
|
732
|
-
class:
|
|
733
|
-
viewBox: `${
|
|
734
|
-
style:
|
|
747
|
+
class: $e({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !Z.value, "vue-data-ui-zoom-minus": Z.value }),
|
|
748
|
+
viewBox: `${se.value.startX} ${se.value.startY} ${se.value.width <= 0 ? 10 : se.value.width} ${se.value.height <= 0 ? 10 : se.value.height}`,
|
|
749
|
+
style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
735
750
|
}, [
|
|
736
|
-
|
|
737
|
-
(
|
|
751
|
+
xe(d(H)),
|
|
752
|
+
(h(!0), y(ge, null, Te(re.value, (l, a) => (h(), y("g", {
|
|
738
753
|
key: `tgrad_${l.id}`
|
|
739
754
|
}, [
|
|
740
|
-
e.value.style.chart.layout.rects.gradient.show ? (
|
|
741
|
-
|
|
755
|
+
e.value.style.chart.layout.rects.gradient.show ? (h(), y("defs", hl, [
|
|
756
|
+
S("radialGradient", {
|
|
742
757
|
id: `tgrad_${l.id}`,
|
|
743
758
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
744
759
|
}, [
|
|
745
|
-
|
|
760
|
+
S("stop", {
|
|
746
761
|
offset: "18%",
|
|
747
762
|
"stop-color": l.color
|
|
748
|
-
}, null, 8,
|
|
749
|
-
|
|
763
|
+
}, null, 8, fl),
|
|
764
|
+
S("stop", {
|
|
750
765
|
offset: "100%",
|
|
751
|
-
"stop-color": d(
|
|
752
|
-
}, null, 8,
|
|
753
|
-
], 8,
|
|
754
|
-
])) :
|
|
766
|
+
"stop-color": d(it)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
767
|
+
}, null, 8, gl)
|
|
768
|
+
], 8, pl)
|
|
769
|
+
])) : _("", !0)
|
|
755
770
|
]))), 128)),
|
|
756
|
-
(
|
|
771
|
+
(h(!0), y(ge, null, Te(re.value, (l, a) => (h(), y("g", {
|
|
757
772
|
key: `k_${l.id}`
|
|
758
773
|
}, [
|
|
759
|
-
|
|
774
|
+
S("rect", {
|
|
760
775
|
x: l.x0,
|
|
761
776
|
y: l.y0,
|
|
762
777
|
height: Ke(l),
|
|
763
778
|
width: Ze(l),
|
|
764
|
-
fill:
|
|
779
|
+
fill: M.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
765
780
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
766
|
-
stroke:
|
|
767
|
-
"stroke-width":
|
|
768
|
-
onClick:
|
|
781
|
+
stroke: V.value && V.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
782
|
+
"stroke-width": V.value && V.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
783
|
+
onClick: Oe((f) => de(l), ["stop"]),
|
|
769
784
|
onMouseenter: () => Ct({
|
|
770
785
|
datapoint: l,
|
|
771
786
|
seriesIndex: a
|
|
772
787
|
}),
|
|
773
788
|
onMouseleave: o[0] || (o[0] = (f) => {
|
|
774
|
-
|
|
789
|
+
V.value = null, N.value = !1;
|
|
775
790
|
}),
|
|
776
|
-
style:
|
|
777
|
-
class:
|
|
791
|
+
style: L(`opacity:${V.value ? V.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
792
|
+
class: $e([
|
|
778
793
|
"vue-ui-treemap-rect",
|
|
779
|
-
|
|
794
|
+
wt(l) ? "vue-data-ui-zoom-plus" : Z.value ? "vue-data-ui-zoom-minus" : ""
|
|
780
795
|
])
|
|
781
|
-
}, null, 46,
|
|
782
|
-
(
|
|
796
|
+
}, null, 46, yl),
|
|
797
|
+
(h(), y("foreignObject", {
|
|
783
798
|
x: l.x0,
|
|
784
799
|
y: l.y0,
|
|
785
800
|
height: Ke(l),
|
|
786
801
|
width: Ze(l),
|
|
787
802
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
788
803
|
}, [
|
|
789
|
-
|
|
790
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
804
|
+
S("div", bl, [
|
|
805
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Z.value) ? (h(), y("div", {
|
|
791
806
|
key: 0,
|
|
792
807
|
class: "vue-ui-treemap-cell-default",
|
|
793
|
-
style:
|
|
808
|
+
style: L(`width:calc(100% - ${Y(l) / 1.5}px);text-align:left;line-height:${Y(l) < 14 ? 14 : Y(l)}px;padding:${Y(l) / 3}px; color:${d(ct)(l.color)}`)
|
|
794
809
|
}, [
|
|
795
|
-
|
|
796
|
-
style:
|
|
797
|
-
},
|
|
798
|
-
o[6] || (o[6] =
|
|
799
|
-
|
|
800
|
-
style:
|
|
801
|
-
},
|
|
810
|
+
S("span", {
|
|
811
|
+
style: L(`width:100%;font-size:${Y(l)}px;`)
|
|
812
|
+
}, X(l.name), 5),
|
|
813
|
+
o[6] || (o[6] = S("br", null, null, -1)),
|
|
814
|
+
S("span", {
|
|
815
|
+
style: L(`width:100%;font-size:${Y(l)}px;`)
|
|
816
|
+
}, X(d(me)(
|
|
802
817
|
e.value.style.chart.layout.labels.formatter,
|
|
803
818
|
l.value,
|
|
804
819
|
d(ie)({
|
|
@@ -809,23 +824,23 @@ const ol = ["id"], al = {
|
|
|
809
824
|
}),
|
|
810
825
|
{ datapoint: l }
|
|
811
826
|
)), 5)
|
|
812
|
-
], 4)) :
|
|
813
|
-
|
|
827
|
+
], 4)) : _("", !0),
|
|
828
|
+
w(t.$slots, "rect", rt({ ref_for: !0 }, {
|
|
814
829
|
rect: l,
|
|
815
|
-
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
816
|
-
fontSize:
|
|
817
|
-
isZoom:
|
|
818
|
-
textColor: d(
|
|
830
|
+
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Z.value,
|
|
831
|
+
fontSize: Y(l),
|
|
832
|
+
isZoom: Z.value,
|
|
833
|
+
textColor: d(ct)(l.color)
|
|
819
834
|
}), void 0, !0)
|
|
820
835
|
])
|
|
821
|
-
], 8,
|
|
836
|
+
], 8, ml))
|
|
822
837
|
]))), 128)),
|
|
823
|
-
|
|
824
|
-
], 14,
|
|
825
|
-
t.$slots.watermark ? (
|
|
826
|
-
|
|
827
|
-
])) :
|
|
828
|
-
x.value ?
|
|
838
|
+
w(t.$slots, "svg", ee(te({ svg: j.value, isZoom: Z.value, rect: V.value, config: e.value })), void 0, !0)
|
|
839
|
+
], 14, vl)) : _("", !0),
|
|
840
|
+
t.$slots.watermark ? (h(), y("div", wl, [
|
|
841
|
+
w(t.$slots, "watermark", ee(te({ isPrinting: d(Ue) || d(Ee) })), void 0, !0)
|
|
842
|
+
])) : _("", !0),
|
|
843
|
+
x.value ? _("", !0) : (h(), Q(d(c), {
|
|
829
844
|
key: 7,
|
|
830
845
|
config: {
|
|
831
846
|
type: "treemap",
|
|
@@ -837,51 +852,48 @@ const ol = ["id"], al = {
|
|
|
837
852
|
}
|
|
838
853
|
}
|
|
839
854
|
}, null, 8, ["config"])),
|
|
840
|
-
|
|
855
|
+
S("div", {
|
|
841
856
|
ref_key: "chartLegend",
|
|
842
|
-
ref:
|
|
857
|
+
ref: Pe
|
|
843
858
|
}, [
|
|
844
|
-
e.value.style.chart.legend.show ? (
|
|
845
|
-
key: `legend_${
|
|
846
|
-
legendSet:
|
|
847
|
-
config:
|
|
848
|
-
id: `treemap_legend_${
|
|
849
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
859
|
+
e.value.style.chart.legend.show ? (h(), Q(jt, {
|
|
860
|
+
key: `legend_${Le.value}`,
|
|
861
|
+
legendSet: Qe.value,
|
|
862
|
+
config: kt.value,
|
|
863
|
+
id: `treemap_legend_${z.value}`,
|
|
864
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => et(l))
|
|
850
865
|
}, {
|
|
851
|
-
item:
|
|
852
|
-
|
|
853
|
-
onClick: (f) =>
|
|
854
|
-
style:
|
|
855
|
-
},
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
)) + " ", 1),
|
|
867
|
-
P.value.includes(l.id) ? (v(), y("span", wl, " ( - % ) ")) : (v(), y("span", kl, " (" + ee(isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
868
|
-
], 12, bl)
|
|
866
|
+
item: O(({ legend: l, index: a }) => [
|
|
867
|
+
S("div", {
|
|
868
|
+
onClick: (f) => et(l),
|
|
869
|
+
style: L(`opacity:${A.value.includes(l.id) ? 0.5 : 1}`)
|
|
870
|
+
}, X(l.name) + X(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + X(e.value.style.chart.legend.showValue ? d(me)(
|
|
871
|
+
e.value.style.chart.layout.labels.formatter,
|
|
872
|
+
l.value,
|
|
873
|
+
d(ie)({
|
|
874
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
875
|
+
v: l.value,
|
|
876
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
877
|
+
r: e.value.style.chart.legend.roundingValue
|
|
878
|
+
}),
|
|
879
|
+
{ datapoint: l }
|
|
880
|
+
) : "") + " " + X(e.value.style.chart.legend.showPercentage ? A.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 / ne.value) ? "-" : (l.value / ne.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, kl)
|
|
869
881
|
]),
|
|
870
882
|
_: 1
|
|
871
|
-
}, 8, ["legendSet", "config", "id"])) :
|
|
883
|
+
}, 8, ["legendSet", "config", "id"])) : w(t.$slots, "legend", {
|
|
872
884
|
key: 1,
|
|
873
|
-
legend:
|
|
885
|
+
legend: Qe.value
|
|
874
886
|
}, void 0, !0)
|
|
875
887
|
], 512),
|
|
876
|
-
t.$slots.source ? (
|
|
888
|
+
t.$slots.source ? (h(), y("div", {
|
|
877
889
|
key: 8,
|
|
878
890
|
ref_key: "source",
|
|
879
|
-
ref:
|
|
891
|
+
ref: ze,
|
|
880
892
|
dir: "auto"
|
|
881
893
|
}, [
|
|
882
|
-
|
|
883
|
-
], 512)) :
|
|
884
|
-
|
|
894
|
+
w(t.$slots, "source", {}, void 0, !0)
|
|
895
|
+
], 512)) : _("", !0),
|
|
896
|
+
xe(d(g), {
|
|
885
897
|
show: R.value.showTooltip && N.value,
|
|
886
898
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
887
899
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -892,20 +904,20 @@ const ol = ["id"], al = {
|
|
|
892
904
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
893
905
|
position: e.value.style.chart.tooltip.position,
|
|
894
906
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
895
|
-
parent:
|
|
896
|
-
content:
|
|
897
|
-
isFullscreen:
|
|
898
|
-
isCustom: d(
|
|
907
|
+
parent: U.value,
|
|
908
|
+
content: be.value,
|
|
909
|
+
isFullscreen: le.value,
|
|
910
|
+
isCustom: d(dt)(e.value.style.chart.tooltip.customFormat)
|
|
899
911
|
}, {
|
|
900
|
-
"tooltip-before":
|
|
901
|
-
|
|
912
|
+
"tooltip-before": O(() => [
|
|
913
|
+
w(t.$slots, "tooltip-before", ee(te({ ...ke.value })), void 0, !0)
|
|
902
914
|
]),
|
|
903
|
-
"tooltip-after":
|
|
904
|
-
|
|
915
|
+
"tooltip-after": O(() => [
|
|
916
|
+
w(t.$slots, "tooltip-after", ee(te({ ...ke.value })), void 0, !0)
|
|
905
917
|
]),
|
|
906
918
|
_: 3
|
|
907
919
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
908
|
-
x.value ? (
|
|
920
|
+
x.value ? (h(), Q(d(v), {
|
|
909
921
|
key: 9,
|
|
910
922
|
hideDetails: "",
|
|
911
923
|
config: {
|
|
@@ -921,9 +933,9 @@ const ol = ["id"], al = {
|
|
|
921
933
|
}
|
|
922
934
|
}
|
|
923
935
|
}, {
|
|
924
|
-
content:
|
|
925
|
-
(
|
|
926
|
-
key: `table_${
|
|
936
|
+
content: O(() => [
|
|
937
|
+
(h(), Q(d(i), {
|
|
938
|
+
key: `table_${Ve.value}`,
|
|
927
939
|
colNames: ve.value.colNames,
|
|
928
940
|
head: ve.value.head,
|
|
929
941
|
body: ve.value.body,
|
|
@@ -931,23 +943,23 @@ const ol = ["id"], al = {
|
|
|
931
943
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
932
944
|
onClose: o[2] || (o[2] = (l) => R.value.showTable = !1)
|
|
933
945
|
}, {
|
|
934
|
-
th:
|
|
935
|
-
|
|
946
|
+
th: O(({ th: l }) => [
|
|
947
|
+
S("div", {
|
|
936
948
|
innerHTML: l,
|
|
937
949
|
style: { display: "flex", "align-items": "center" }
|
|
938
950
|
}, null, 8, Cl)
|
|
939
951
|
]),
|
|
940
|
-
td:
|
|
941
|
-
|
|
952
|
+
td: O(({ td: l }) => [
|
|
953
|
+
_e(X(l.name || l), 1)
|
|
942
954
|
]),
|
|
943
955
|
_: 1
|
|
944
956
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
945
957
|
]),
|
|
946
958
|
_: 1
|
|
947
|
-
}, 8, ["config"])) :
|
|
948
|
-
], 46,
|
|
959
|
+
}, 8, ["config"])) : _("", !0)
|
|
960
|
+
], 46, nl));
|
|
949
961
|
}
|
|
950
|
-
},
|
|
962
|
+
}, Vl = /* @__PURE__ */ Kt($l, [["__scopeId", "data-v-bcbded69"]]);
|
|
951
963
|
export {
|
|
952
|
-
|
|
964
|
+
Vl as default
|
|
953
965
|
};
|