vue-data-ui 3.5.0 → 3.5.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 +26 -0
- package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
- package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
- package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
- package/dist/PenAndPaper-SZQIAgkg.js +388 -0
- package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -8
- package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
- package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
- package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
- package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
- package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
- package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
- package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
- package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
- package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
- package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
- package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
- package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
- package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
- package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
- package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
- package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
- package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
- package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
- package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
- package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
- package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
- package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
- package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
- package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
- package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
- package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
- package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
- package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
- package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
- package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
- package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
- package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
- package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
- package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
- package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
- package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
- package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
- package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
- package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
- package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
- package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
- package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
- package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
- package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
- package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
- package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
- package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
- package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
- package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
- package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
- package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
- package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
- package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
- package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
- package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
- package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
- package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
- package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
- package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
- package/package.json +4 -4
- package/dist/PenAndPaper-DSvu9dwa.js +0 -373
- package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
- package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
- package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
- package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
- package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
- package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Ze, t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { t as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
function
|
|
1
|
+
import { defineAsyncComponent as ye, useSlots as Go, onMounted as eo, computed as w, ref as k, shallowRef as ee, toRefs as Xo, watch as Ge, onBeforeUnmount as qo, createElementBlock as C, openBlock as h, unref as p, normalizeStyle as ie, normalizeClass as bt, createBlock as ce, createCommentVNode as M, createElementVNode as V, createVNode as Xe, withCtx as y, renderSlot as m, normalizeProps as B, guardReactiveProps as H, createSlots as to, Fragment as qe, renderList as wt, withKeys as oo, withModifiers as kt, mergeProps as Ct, createTextVNode as Ye, toDisplayString as je, Teleport as Yo, resolveDynamicComponent as jo, nextTick as Zo } from "vue";
|
|
2
|
+
import { c as Ze, t as Ko, b as Jo, p as D, e as Qo, o as lo, f as el, h as Le, a as Ke, d as De, X as $t, S as ao, J as no, G as so, P as tl, Q as ol, H as ll, ap as Tt, aq as Je } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { t as al, u as nl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as sl, a as uo } from "./useNestedProp-DjGXw6S9.js";
|
|
5
|
+
import { u as ul, B as rl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as il } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import vl from "./img-BecE5qXd.js";
|
|
10
|
+
import hl from "./Title-isbiM8i8.js";
|
|
11
|
+
import { t as fl } from "./themes-AUNCOb2G.js";
|
|
12
|
+
import pl from "./Legend-G6GMcdAc.js";
|
|
13
|
+
import ro from "./BaseIcon-BmMbm4d0.js";
|
|
14
|
+
import { u as gl } from "./useSvgExport-DrjCWun4.js";
|
|
15
|
+
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
function io(n, i) {
|
|
17
17
|
const u = n.length;
|
|
18
18
|
if (u === 0)
|
|
19
19
|
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
20
20
|
{
|
|
21
21
|
let c = 1 / 0, r = -1 / 0, f = 0;
|
|
22
|
-
for (let
|
|
23
|
-
const g = n[
|
|
22
|
+
for (let b = 0; b < u; b += 1) {
|
|
23
|
+
const g = n[b].normalizedValue;
|
|
24
24
|
g < c && (c = g), g > r && (r = g), f += g;
|
|
25
25
|
}
|
|
26
26
|
return Math.max(
|
|
@@ -29,7 +29,7 @@ function il(n, i) {
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function co(n) {
|
|
33
33
|
const { xOffset: i, yOffset: u, width: c, height: r } = n;
|
|
34
34
|
return {
|
|
35
35
|
x0: i,
|
|
@@ -38,78 +38,78 @@ function cl(n) {
|
|
|
38
38
|
y1: u + r
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yl(n, i, u) {
|
|
42
42
|
if (n.length === 0)
|
|
43
43
|
return !0;
|
|
44
44
|
{
|
|
45
|
-
const c = n.concat(i), r =
|
|
45
|
+
const c = n.concat(i), r = io(
|
|
46
46
|
n,
|
|
47
47
|
u
|
|
48
|
-
), f =
|
|
48
|
+
), f = io(c, u);
|
|
49
49
|
return r >= f;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function bl(n) {
|
|
53
53
|
const i = [], u = n.length;
|
|
54
54
|
for (let c = 0; c < u; c += 1) {
|
|
55
55
|
const r = n[c], f = r.length;
|
|
56
|
-
for (let
|
|
57
|
-
i.push(r[
|
|
56
|
+
for (let v = 0; v < f; v += 1)
|
|
57
|
+
i.push(r[v]);
|
|
58
58
|
}
|
|
59
59
|
return i;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function wl(n, i) {
|
|
62
62
|
const u = {
|
|
63
63
|
...i,
|
|
64
64
|
children: n
|
|
65
65
|
};
|
|
66
|
-
return
|
|
66
|
+
return ho(u);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function kl(n) {
|
|
69
69
|
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const { width: u, height: c, xOffset: r, yOffset: f } =
|
|
73
|
-
let
|
|
71
|
+
function vo(n, i) {
|
|
72
|
+
const { width: u, height: c, xOffset: r, yOffset: f } = xt(i), v = n.length, b = n.map((S) => S.normalizedValue || 0).reduce((S, z) => S + z, 0), g = b / c, te = b / u;
|
|
73
|
+
let G = r, x = f;
|
|
74
74
|
const _ = [];
|
|
75
75
|
if (u >= c) {
|
|
76
|
-
for (let
|
|
77
|
-
const z = n[
|
|
78
|
-
x0:
|
|
76
|
+
for (let S = 0; S < v; S += 1) {
|
|
77
|
+
const z = n[S], j = x + z.normalizedValue / g, I = {
|
|
78
|
+
x0: G,
|
|
79
79
|
y0: x,
|
|
80
|
-
x1:
|
|
81
|
-
y1:
|
|
82
|
-
},
|
|
83
|
-
x =
|
|
80
|
+
x1: G + g,
|
|
81
|
+
y1: j
|
|
82
|
+
}, E = Object.assign({}, z, I);
|
|
83
|
+
x = j, _.push(E);
|
|
84
84
|
}
|
|
85
85
|
return _;
|
|
86
86
|
} else {
|
|
87
|
-
for (let
|
|
88
|
-
const z = n[
|
|
89
|
-
x0:
|
|
87
|
+
for (let S = 0; S < v; S += 1) {
|
|
88
|
+
const z = n[S], j = G + z.normalizedValue / te, I = {
|
|
89
|
+
x0: G,
|
|
90
90
|
y0: x,
|
|
91
|
-
x1:
|
|
92
|
-
y1: x +
|
|
93
|
-
},
|
|
94
|
-
|
|
91
|
+
x1: j,
|
|
92
|
+
y1: x + te
|
|
93
|
+
}, E = Object.assign({}, z, I);
|
|
94
|
+
G = j, _.push(E);
|
|
95
95
|
}
|
|
96
96
|
return _;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
const i =
|
|
99
|
+
function Cl(n) {
|
|
100
|
+
const i = xt(n), u = i.width, c = i.height;
|
|
101
101
|
return Math.min(u, c);
|
|
102
102
|
}
|
|
103
|
-
function $
|
|
104
|
-
const u = n.length, c = n.map((g) => g.value ?? 0).reduce((g,
|
|
105
|
-
let
|
|
103
|
+
function $l(n, i) {
|
|
104
|
+
const u = n.length, c = n.map((g) => g.value ?? 0).reduce((g, te) => g + te, 0), r = i / c, f = [];
|
|
105
|
+
let v, b;
|
|
106
106
|
for (let g = 0; g < u; g += 1)
|
|
107
|
-
|
|
108
|
-
normalizedValue:
|
|
109
|
-
}), f.push(
|
|
107
|
+
b = n[g], v = Object.assign({}, b, {
|
|
108
|
+
normalizedValue: b.value * (r || 0)
|
|
109
|
+
}), f.push(v);
|
|
110
110
|
return f;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function xt(n) {
|
|
113
113
|
const { x0: i, y0: u, x1: c, y1: r } = n;
|
|
114
114
|
return {
|
|
115
115
|
xOffset: i,
|
|
@@ -118,71 +118,71 @@ function Tt(n) {
|
|
|
118
118
|
height: r - u
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
let r = n, f = i,
|
|
121
|
+
function Tl(n, i, u, c) {
|
|
122
|
+
let r = n, f = i, v = u, b = c;
|
|
123
123
|
for (; ; ) {
|
|
124
124
|
const g = r.length;
|
|
125
125
|
if (g === 0) {
|
|
126
|
-
const _ =
|
|
127
|
-
return
|
|
126
|
+
const _ = vo(f, v);
|
|
127
|
+
return b.concat(_);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
131
|
-
const _ = f.concat(
|
|
132
|
-
r = x, f = _,
|
|
129
|
+
const te = Cl(v), G = r[0], x = r.slice(1, g);
|
|
130
|
+
if (yl(f, G, te)) {
|
|
131
|
+
const _ = f.concat(G);
|
|
132
|
+
r = x, f = _, v = v, b = b;
|
|
133
133
|
} else {
|
|
134
134
|
const _ = f.length;
|
|
135
|
-
let
|
|
136
|
-
for (let
|
|
137
|
-
|
|
138
|
-
const z =
|
|
139
|
-
r = r, f = [],
|
|
135
|
+
let S = 0;
|
|
136
|
+
for (let E = 0; E < _; E += 1)
|
|
137
|
+
S += f[E].normalizedValue;
|
|
138
|
+
const z = xl(v, S), j = vo(f, v), I = b.concat(j);
|
|
139
|
+
r = r, f = [], v = z, b = I;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function ho(n) {
|
|
144
144
|
if (typeof n.children > "u" || !n.children.length)
|
|
145
145
|
return [n];
|
|
146
146
|
{
|
|
147
|
-
const i = $
|
|
147
|
+
const i = $l(
|
|
148
148
|
n.children,
|
|
149
|
-
|
|
150
|
-
), u =
|
|
151
|
-
for (let
|
|
152
|
-
r.push(
|
|
153
|
-
return
|
|
149
|
+
kl(n)
|
|
150
|
+
), u = Tl(i, [], n, []), c = u.length, r = [];
|
|
151
|
+
for (let v = 0; v < c; v += 1)
|
|
152
|
+
r.push(ho(u[v]));
|
|
153
|
+
return bl(r);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
const { width: u, height: c, xOffset: r, yOffset: f } =
|
|
156
|
+
function xl(n, i) {
|
|
157
|
+
const { width: u, height: c, xOffset: r, yOffset: f } = xt(n);
|
|
158
158
|
if (u >= c) {
|
|
159
|
-
const
|
|
160
|
-
xOffset: r +
|
|
159
|
+
const v = i / c, b = u - v, g = {
|
|
160
|
+
xOffset: r + v,
|
|
161
161
|
yOffset: f,
|
|
162
|
-
width:
|
|
162
|
+
width: b,
|
|
163
163
|
height: c
|
|
164
164
|
};
|
|
165
|
-
return
|
|
165
|
+
return co(g);
|
|
166
166
|
} else {
|
|
167
|
-
const
|
|
167
|
+
const v = i / u, b = c - v, g = {
|
|
168
168
|
xOffset: r,
|
|
169
|
-
yOffset: f +
|
|
169
|
+
yOffset: f + v,
|
|
170
170
|
width: u,
|
|
171
|
-
height:
|
|
171
|
+
height: b
|
|
172
172
|
};
|
|
173
|
-
return
|
|
173
|
+
return co(g);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const Sl = ["id"], Ol = ["id"], _l = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Al = { class: "vue-ui-treemap-crumb-unit" }, Fl = { class: "vue-ui-treemap-crumb-unit-label" }, Ml = {
|
|
177
177
|
key: 0,
|
|
178
178
|
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
179
|
-
},
|
|
179
|
+
}, Il = {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
182
|
-
},
|
|
182
|
+
}, Nl = ["xmlns", "viewBox"], Ll = { key: 0 }, Dl = ["id"], zl = ["stop-color"], Rl = ["stop-color"], Pl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Vl = ["innerHTML"], Bl = ["x", "y", "height", "width"], Hl = {
|
|
183
183
|
key: 5,
|
|
184
184
|
class: "vue-data-ui-watermark"
|
|
185
|
-
},
|
|
185
|
+
}, El = ["id"], Wl = ["onClick"], Ul = ["innerHTML"], Gl = {
|
|
186
186
|
__name: "vue-ui-treemap",
|
|
187
187
|
props: {
|
|
188
188
|
config: {
|
|
@@ -200,12 +200,12 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
200
200
|
},
|
|
201
201
|
emits: ["selectLegend", "selectDatapoint"],
|
|
202
202
|
setup(n, { expose: i, emit: u }) {
|
|
203
|
-
const c =
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
const c = ye(() => import("./DataTable-BT7VF2ua.js")), r = ye(() => import("./PenAndPaper-SZQIAgkg.js")), f = ye(() => import("./vue-ui-accordion-CqhVCfc2.js")), v = ye(() => import("./Tooltip-oWCO1HKy.js")), b = ye(() => import("./UserOptions-CGnQt6Fd.js")), g = ye(() => import("./PackageVersion-DQvyATVa.js")), te = ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_treemap: G } = sl(), x = n, _ = u, S = Go();
|
|
204
|
+
eo(() => {
|
|
205
|
+
S["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
206
206
|
});
|
|
207
|
-
const z =
|
|
208
|
-
...
|
|
207
|
+
const z = w(() => !!x.dataset && x.dataset.length), j = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), I = k(Ze()), E = k(!1), Qe = k(""), de = k(!1), St = k(0), R = k([]), X = ee(null), Ot = ee(null), _t = ee(null), At = ee(null), Ft = ee(null), Mt = k(0), et = k(0), tt = k(0), F = k([]), ot = k(null), It = k(!1), Ae = k(null), lt = k(null), t = k(ut()), { loading: be, FINAL_DATASET: at, manualLoading: fo } = ul({
|
|
208
|
+
...Xo(x),
|
|
209
209
|
FINAL_CONFIG: t,
|
|
210
210
|
prepareConfig: ut,
|
|
211
211
|
skeletonDataset: [
|
|
@@ -224,7 +224,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
224
224
|
]
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
|
-
skeletonConfig:
|
|
227
|
+
skeletonConfig: Ko({
|
|
228
228
|
defaultConfig: t.value,
|
|
229
229
|
userConfig: {
|
|
230
230
|
userOptions: { show: !1 },
|
|
@@ -246,28 +246,28 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
})
|
|
249
|
-
}), { userOptionsVisible: nt, setUserOptionsVisibility: Nt, keepUserOptionState: Lt } =
|
|
249
|
+
}), { userOptionsVisible: nt, setUserOptionsVisibility: Nt, keepUserOptionState: Lt } = cl({ config: t.value }), { svgRef: st } = dl({ config: t.value.style.chart.title });
|
|
250
250
|
function ut() {
|
|
251
|
-
const e =
|
|
251
|
+
const e = uo({
|
|
252
252
|
userConfig: x.config,
|
|
253
|
-
defaultConfig:
|
|
253
|
+
defaultConfig: G
|
|
254
254
|
});
|
|
255
255
|
return e.theme ? {
|
|
256
|
-
...
|
|
257
|
-
userConfig:
|
|
256
|
+
...uo({
|
|
257
|
+
userConfig: fl.vue_ui_treemap[e.theme] || x.config,
|
|
258
258
|
defaultConfig: e
|
|
259
259
|
}),
|
|
260
|
-
customPalette:
|
|
260
|
+
customPalette: Jo[e.theme] || D
|
|
261
261
|
} : e;
|
|
262
262
|
}
|
|
263
263
|
Ge(() => x.config, (e) => {
|
|
264
264
|
be.value || (t.value = ut()), nt.value = !t.value.userOptions.showOnChartHover, Mt.value += 1, et.value += 1, tt.value += 1, P.value.showTable = t.value.table.show, P.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
265
265
|
}, { deep: !0 });
|
|
266
|
-
const { isPrinting: Dt, isImaging: zt, generatePdf: Rt, generateImage: Pt } =
|
|
266
|
+
const { isPrinting: Dt, isImaging: zt, generatePdf: Rt, generateImage: Pt } = il({
|
|
267
267
|
elementId: `treemap_${I.value}`,
|
|
268
268
|
fileName: t.value.style.chart.title.text || "vue-ui-treemap",
|
|
269
269
|
options: t.value.userOptions.print
|
|
270
|
-
}),
|
|
270
|
+
}), po = w(() => t.value.userOptions.show && !t.value.style.chart.title.text), ze = w(() => Qo(t.value.customPalette)), P = k({
|
|
271
271
|
showTable: t.value.table.show,
|
|
272
272
|
showTooltip: t.value.style.chart.tooltip.show
|
|
273
273
|
});
|
|
@@ -277,35 +277,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
277
277
|
showTooltip: t.value.style.chart.tooltip.show
|
|
278
278
|
};
|
|
279
279
|
}, { immediate: !0 });
|
|
280
|
-
const Fe =
|
|
280
|
+
const Fe = k({
|
|
281
281
|
height: t.value.style.chart.height,
|
|
282
282
|
width: t.value.style.chart.width
|
|
283
283
|
});
|
|
284
|
-
function
|
|
285
|
-
const l =
|
|
284
|
+
function go(e) {
|
|
285
|
+
const l = X.value, o = Fe.value.height;
|
|
286
286
|
if (!l || !o) return e;
|
|
287
287
|
const a = l.getBoundingClientRect();
|
|
288
288
|
return e * (o / a.height);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
const e =
|
|
293
|
-
return
|
|
290
|
+
function mo() {
|
|
291
|
+
if (!ot.value || Z.value.length <= 1) return 0;
|
|
292
|
+
const e = ot.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
|
|
293
|
+
return go(o);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
const e = t.value.style.chart.padding, l = Fe.value.width, o = Fe.value.height, a =
|
|
295
|
+
const W = w(() => {
|
|
296
|
+
const e = t.value.style.chart.padding, l = Fe.value.width, o = Fe.value.height, a = mo(), s = e.left, d = l - e.right, $ = e.top, L = o - e.bottom - a;
|
|
297
297
|
return {
|
|
298
298
|
left: s,
|
|
299
|
-
top:
|
|
300
|
-
right:
|
|
299
|
+
top: $,
|
|
300
|
+
right: d,
|
|
301
301
|
bottom: L,
|
|
302
|
-
width:
|
|
303
|
-
height: Math.max(0, L -
|
|
302
|
+
width: d - s,
|
|
303
|
+
height: Math.max(0, L - $),
|
|
304
304
|
vbWidth: l,
|
|
305
305
|
vbHeight: o - a,
|
|
306
306
|
offsetY: a
|
|
307
307
|
};
|
|
308
|
-
}), N =
|
|
308
|
+
}), N = k(at.value), oe = k(N.value), Vt = ee(/* @__PURE__ */ new Map());
|
|
309
309
|
function Bt(e) {
|
|
310
310
|
Array.isArray(e) && e.forEach((l, o) => {
|
|
311
311
|
l.id || (l.id = Ze());
|
|
@@ -318,35 +318,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
318
318
|
o.id || (o.id = Ze()), o.parentId = e.id, o.color = l, Ht(o, l);
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function yo() {
|
|
322
322
|
if (!F.value.length)
|
|
323
|
-
|
|
323
|
+
oe.value = N.value.slice();
|
|
324
324
|
else {
|
|
325
|
-
const e = F.value[F.value.length - 1], l =
|
|
326
|
-
|
|
325
|
+
const e = F.value[F.value.length - 1], l = ae(e);
|
|
326
|
+
oe.value = l?.children?.slice() || [];
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
Ge(
|
|
330
330
|
() => at.value,
|
|
331
331
|
() => {
|
|
332
|
-
N.value = at.value, Bt(N.value),
|
|
332
|
+
N.value = at.value, Bt(N.value), yo(), tt.value += 1, et.value += 1;
|
|
333
333
|
},
|
|
334
334
|
{ deep: !0, immediate: !0, flush: "post" }
|
|
335
335
|
);
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
It.value = !0,
|
|
336
|
+
const le = ee(null), we = ee(null);
|
|
337
|
+
eo(() => {
|
|
338
|
+
It.value = !0, wo();
|
|
339
339
|
});
|
|
340
|
-
const
|
|
341
|
-
function
|
|
342
|
-
if (
|
|
340
|
+
const bo = w(() => t.value.debug);
|
|
341
|
+
function wo() {
|
|
342
|
+
if (lo(x.dataset) && el({
|
|
343
343
|
componentName: "VueUiTreemap",
|
|
344
344
|
type: "dataset",
|
|
345
|
-
debug:
|
|
346
|
-
}), Bt(N.value),
|
|
347
|
-
const e =
|
|
348
|
-
const { width: l, height: o } =
|
|
349
|
-
chart:
|
|
345
|
+
debug: bo.value
|
|
346
|
+
}), Bt(N.value), lo(x.dataset) || (fo.value = t.value.loading), t.value.responsive) {
|
|
347
|
+
const e = al(() => {
|
|
348
|
+
const { width: l, height: o } = nl({
|
|
349
|
+
chart: X.value,
|
|
350
350
|
title: t.value.style.chart.title.text ? Ot.value : null,
|
|
351
351
|
legend: t.value.style.chart.legend.show ? _t.value : null,
|
|
352
352
|
source: At.value,
|
|
@@ -356,16 +356,16 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
356
356
|
Fe.value.width = l, Fe.value.height = o - 12;
|
|
357
357
|
});
|
|
358
358
|
});
|
|
359
|
-
|
|
359
|
+
le.value && (we.value && le.value.unobserve(we.value), le.value.disconnect()), le.value = new ResizeObserver(e), we.value = X.value.parentNode, le.value.observe(we.value);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
qo(() => {
|
|
363
|
+
le.value && (we.value && le.value.unobserve(we.value), le.value.disconnect());
|
|
364
364
|
});
|
|
365
|
-
const Me =
|
|
365
|
+
const Me = w(() => oe.value.map((e, l) => ({
|
|
366
366
|
...e,
|
|
367
367
|
color: Le(e.color) || ze.value[l] || D[l] || D[l % D.length]
|
|
368
|
-
})).filter((e) => !R.value.includes(e.id))), ke =
|
|
368
|
+
})).filter((e) => !R.value.includes(e.id))), ke = w(() => N.value.filter((e) => !R.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)), rt = w({
|
|
369
369
|
get() {
|
|
370
370
|
let e = [...Me.value];
|
|
371
371
|
return t.value.style.chart.layout.sorted && (e = [...Me.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
|
|
@@ -379,25 +379,25 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
379
379
|
function Et(e, l) {
|
|
380
380
|
return e.value / l;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function ko(e, l, o) {
|
|
383
383
|
const a = t.value.style.chart.layout.rects.colorRatio - Et(l, o);
|
|
384
|
-
return
|
|
384
|
+
return ao(e, a < 0 ? 0 : a);
|
|
385
385
|
}
|
|
386
386
|
function Wt(e, l, o, a) {
|
|
387
|
-
return e.map((s,
|
|
388
|
-
const
|
|
387
|
+
return e.map((s, d) => {
|
|
388
|
+
const $ = ko(Le(l) || ze.value[d] || D[d] || D[d % D.length], s, a), L = Et(s, a);
|
|
389
389
|
return {
|
|
390
390
|
...s,
|
|
391
|
-
color:
|
|
391
|
+
color: $,
|
|
392
392
|
proportion: L,
|
|
393
393
|
parentName: o,
|
|
394
|
-
children: s.children ? Wt(s.children,
|
|
394
|
+
children: s.children ? Wt(s.children, $, s.name, a) : void 0
|
|
395
395
|
};
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
|
-
const Ie =
|
|
398
|
+
const Ie = w(() => {
|
|
399
399
|
const e = rt.value.map((l) => Number(l.value) || 0).reduce((l, o) => l + o, 0) || 1;
|
|
400
|
-
return
|
|
400
|
+
return wl(
|
|
401
401
|
rt.value.map((l) => {
|
|
402
402
|
const o = l.children ? l.children.reduce((a, s) => a + (Number(s.value) || 0), 0) : l.value;
|
|
403
403
|
return {
|
|
@@ -415,10 +415,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
415
415
|
};
|
|
416
416
|
}),
|
|
417
417
|
{
|
|
418
|
-
x0:
|
|
419
|
-
y0:
|
|
420
|
-
x1:
|
|
421
|
-
y1:
|
|
418
|
+
x0: W.value.left,
|
|
419
|
+
y0: W.value.top,
|
|
420
|
+
x1: W.value.left + W.value.width,
|
|
421
|
+
y1: W.value.top + W.value.height
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
424
|
});
|
|
@@ -428,75 +428,75 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
428
428
|
function $e({ x0: e, x1: l }) {
|
|
429
429
|
return l - e <= 0 ? 1e-4 : l - e;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, s = l.fontSize * 2,
|
|
433
|
-
let
|
|
434
|
-
if (!(typeof
|
|
435
|
-
const We = Math.max(1e-6, $e(e) * Ce(e)),
|
|
436
|
-
|
|
431
|
+
function Te(e) {
|
|
432
|
+
const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, s = l.fontSize * 2, d = 0.5, $ = 0.6, L = 1, ve = 0.9;
|
|
433
|
+
let ne = e.proportion;
|
|
434
|
+
if (!(typeof ne == "number" && isFinite(ne))) {
|
|
435
|
+
const We = Math.max(1e-6, $e(e) * Ce(e)), he = Math.max(1e-6, W.value.width * W.value.height);
|
|
436
|
+
ne = We / he;
|
|
437
437
|
}
|
|
438
|
-
const Ee = Math.pow(Math.min(1, Math.max(0,
|
|
439
|
-
let
|
|
438
|
+
const Ee = Math.pow(Math.min(1, Math.max(0, ne)), d), se = $ + (L - $) * Ee;
|
|
439
|
+
let ue = o * se;
|
|
440
440
|
const ht = Math.max(1e-4, Math.min($e(e), Ce(e)));
|
|
441
|
-
return
|
|
441
|
+
return ue = Math.min(ue, ht * ve), ue = Math.max(a, Math.min(s, ue)), ue;
|
|
442
442
|
}
|
|
443
443
|
function Ut(e) {
|
|
444
|
-
|
|
444
|
+
de.value = e, St.value += 1;
|
|
445
445
|
}
|
|
446
|
-
const
|
|
446
|
+
const xe = w(() => ({
|
|
447
447
|
startX: 0,
|
|
448
448
|
startY: 0,
|
|
449
|
-
width:
|
|
450
|
-
height:
|
|
449
|
+
width: W.value.vbWidth,
|
|
450
|
+
height: W.value.vbHeight
|
|
451
451
|
}));
|
|
452
|
-
function
|
|
452
|
+
function ae(e, l = N.value) {
|
|
453
453
|
for (const o of l) {
|
|
454
454
|
if (o.id === e)
|
|
455
455
|
return o;
|
|
456
456
|
if (o.children) {
|
|
457
|
-
const a =
|
|
457
|
+
const a = ae(e, o.children);
|
|
458
458
|
if (a)
|
|
459
459
|
return a;
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
return null;
|
|
463
463
|
}
|
|
464
|
-
const Se =
|
|
464
|
+
const Se = w(() => F.value.length > 0);
|
|
465
465
|
function Re(e, l) {
|
|
466
466
|
if (!e) {
|
|
467
|
-
|
|
467
|
+
oe.value = N.value.slice(), _("selectDatapoint", void 0), F.value = [];
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
470
|
t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: e, seriesIndex: l });
|
|
471
|
-
const o =
|
|
471
|
+
const o = ae(e.id);
|
|
472
472
|
if (o && o.children?.length)
|
|
473
|
-
F.value.push(o.id),
|
|
473
|
+
F.value.push(o.id), oe.value = o.children.slice(), _("selectDatapoint", e);
|
|
474
474
|
else if (e.parentId) {
|
|
475
475
|
F.value.push(e.parentId);
|
|
476
|
-
const a =
|
|
477
|
-
|
|
476
|
+
const a = ae(e.parentId);
|
|
477
|
+
oe.value = a.children.slice(), _("selectDatapoint", e);
|
|
478
478
|
} else if (F.value.length > 0) {
|
|
479
479
|
F.value.pop();
|
|
480
480
|
const a = F.value[F.value.length - 1];
|
|
481
481
|
if (a) {
|
|
482
|
-
const s =
|
|
483
|
-
|
|
482
|
+
const s = ae(a);
|
|
483
|
+
oe.value = s.children.slice();
|
|
484
484
|
} else
|
|
485
|
-
|
|
485
|
+
oe.value = N.value.slice(), F.value = [], _("selectDatapoint", void 0);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
return !!(
|
|
488
|
+
function Co(e) {
|
|
489
|
+
return !!(ae(e.id)?.children?.length || e.parentId);
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const Z = w(() => {
|
|
492
492
|
const e = [
|
|
493
493
|
{ id: null, label: "All" }
|
|
494
494
|
];
|
|
495
495
|
if (F.value.length > 0) {
|
|
496
|
-
let l =
|
|
496
|
+
let l = ae(F.value[F.value.length - 1]);
|
|
497
497
|
const o = [];
|
|
498
498
|
for (; l; )
|
|
499
|
-
o.unshift(l), l = l.parentId ?
|
|
499
|
+
o.unshift(l), l = l.parentId ? ae(l.parentId) : null;
|
|
500
500
|
for (const a of o)
|
|
501
501
|
e.push({
|
|
502
502
|
id: a.id,
|
|
@@ -505,7 +505,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
return e;
|
|
508
|
-
}),
|
|
508
|
+
}), q = ee(null), it = w(() => N.value.map((e, l) => ({
|
|
509
509
|
...e,
|
|
510
510
|
color: Le(e.color) || ze.value[l] || D[l] || D[l % D.length],
|
|
511
511
|
shape: "square"
|
|
@@ -527,7 +527,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
527
527
|
{ datapoint: e }
|
|
528
528
|
) : ""}${t.value.style.chart.legend.showPercentage ? R.value.includes(e.id) ? `${t.value.style.chart.legend.showValue ? " (" : ""}- %${t.value.style.chart.legend.showValue ? ")" : ""}` : `${t.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ke.value) ? "-" : (e.value / ke.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)}%${t.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
529
529
|
};
|
|
530
|
-
})),
|
|
530
|
+
})), $o = w(() => ({
|
|
531
531
|
cy: "treemap-div-legend",
|
|
532
532
|
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
533
533
|
color: t.value.style.chart.legend.color,
|
|
@@ -536,7 +536,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
536
536
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
537
537
|
}));
|
|
538
538
|
function Pe(e) {
|
|
539
|
-
|
|
539
|
+
q.value = null, R.value.includes(e.id) ? R.value = R.value.filter((l) => l !== e.id) : R.value.length < x.dataset.length - 1 && R.value.push(e.id), _("selectLegend", rt.value);
|
|
540
540
|
}
|
|
541
541
|
function Gt(e) {
|
|
542
542
|
if (!N.value.length)
|
|
@@ -544,22 +544,22 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
544
544
|
const l = N.value.find((o) => o.name === e);
|
|
545
545
|
return l || (t.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function To(e) {
|
|
548
548
|
const l = Gt(e);
|
|
549
549
|
l !== null && R.value.includes(l.id) && Pe({ id: l.id });
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function xo(e) {
|
|
552
552
|
const l = Gt(e);
|
|
553
553
|
l !== null && (R.value.includes(l.id) || Pe({ id: l.id }));
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
555
|
+
function So({ datapoint: e, seriesIndex: l }) {
|
|
556
|
+
q.value = null, E.value = !1, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
|
|
557
557
|
}
|
|
558
|
-
const ct =
|
|
559
|
-
function
|
|
560
|
-
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }),
|
|
558
|
+
const ct = k(null);
|
|
559
|
+
function Oo({ datapoint: e, seriesIndex: l }) {
|
|
560
|
+
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), q.value = e, ct.value = { datapoint: e, seriesIndex: l, config: t.value, series: Me.value };
|
|
561
561
|
const o = t.value.style.chart.tooltip.customFormat;
|
|
562
|
-
if (
|
|
562
|
+
if (so(o) && ll(() => o({
|
|
563
563
|
seriesIndex: l,
|
|
564
564
|
datapoint: e,
|
|
565
565
|
series: Me.value,
|
|
@@ -585,35 +585,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
585
585
|
{ datapoint: e, seriesIndex: l }
|
|
586
586
|
)}</b>`, Qe.value = `<div>${a}</div>`;
|
|
587
587
|
}
|
|
588
|
-
|
|
588
|
+
E.value = !0;
|
|
589
589
|
}
|
|
590
|
-
const
|
|
590
|
+
const K = w(() => {
|
|
591
591
|
const e = Ie.value.map((o) => ({
|
|
592
592
|
name: o.name,
|
|
593
593
|
color: o.color
|
|
594
594
|
})), l = Ie.value.map((o) => o.value);
|
|
595
595
|
return { head: e, body: l };
|
|
596
596
|
});
|
|
597
|
-
function
|
|
598
|
-
|
|
599
|
-
const l =
|
|
597
|
+
function dt(e = null) {
|
|
598
|
+
Zo(() => {
|
|
599
|
+
const l = K.value.head.map((s, d) => [[
|
|
600
600
|
s.name
|
|
601
|
-
], [
|
|
602
|
-
e ? e(a) :
|
|
601
|
+
], [K.value.body[d]], [isNaN(K.value.body[d] / ke.value) ? "-" : K.value.body[d] / ke.value * 100]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = tl(o);
|
|
602
|
+
e ? e(a) : ol({ csvContent: a, title: t.value.style.chart.title.text || "vue-ui-treemap" });
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
|
-
const Ve =
|
|
605
|
+
const Ve = w(() => {
|
|
606
606
|
const e = [
|
|
607
607
|
t.value.table.columnNames.series,
|
|
608
608
|
t.value.table.columnNames.value,
|
|
609
609
|
t.value.table.columnNames.percentage
|
|
610
|
-
], l =
|
|
611
|
-
const
|
|
610
|
+
], l = K.value.head.map((s, d) => {
|
|
611
|
+
const $ = Ke(
|
|
612
612
|
t.value.style.chart.layout.labels.formatter,
|
|
613
|
-
|
|
613
|
+
K.value.body[d],
|
|
614
614
|
De({
|
|
615
615
|
p: t.value.style.chart.layout.labels.prefix,
|
|
616
|
-
v:
|
|
616
|
+
v: K.value.body[d],
|
|
617
617
|
s: t.value.style.chart.layout.labels.suffix,
|
|
618
618
|
r: t.value.table.td.roundingValue
|
|
619
619
|
})
|
|
@@ -624,9 +624,9 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
624
624
|
name: s.name,
|
|
625
625
|
shape: "square"
|
|
626
626
|
},
|
|
627
|
-
|
|
628
|
-
isNaN(
|
|
629
|
-
v:
|
|
627
|
+
$,
|
|
628
|
+
isNaN(K.value.body[d] / ke.value) ? "-" : De({
|
|
629
|
+
v: K.value.body[d] / ke.value * 100,
|
|
630
630
|
s: "%",
|
|
631
631
|
r: t.value.table.td.roundingPercentage
|
|
632
632
|
})
|
|
@@ -654,7 +654,7 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
654
654
|
config: o
|
|
655
655
|
};
|
|
656
656
|
});
|
|
657
|
-
function
|
|
657
|
+
function _o() {
|
|
658
658
|
return Ie.value;
|
|
659
659
|
}
|
|
660
660
|
function Xt() {
|
|
@@ -663,41 +663,41 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
663
663
|
function qt() {
|
|
664
664
|
P.value.showTooltip = !P.value.showTooltip;
|
|
665
665
|
}
|
|
666
|
-
const Be =
|
|
667
|
-
function
|
|
666
|
+
const Be = k(!1);
|
|
667
|
+
function vt() {
|
|
668
668
|
Be.value = !Be.value;
|
|
669
669
|
}
|
|
670
|
-
const He =
|
|
670
|
+
const He = k(null);
|
|
671
671
|
function Yt(e) {
|
|
672
672
|
He.value = e;
|
|
673
673
|
}
|
|
674
674
|
function jt() {
|
|
675
675
|
He.value = null;
|
|
676
676
|
}
|
|
677
|
-
async function
|
|
678
|
-
if (!
|
|
679
|
-
const { width: l, height: o } =
|
|
677
|
+
async function Ao({ scale: e = 2 } = {}) {
|
|
678
|
+
if (!X.value) return;
|
|
679
|
+
const { width: l, height: o } = X.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: d } = await vl({ domElement: X.value, base64: !0, img: !0, scale: e });
|
|
680
680
|
return {
|
|
681
681
|
imageUri: s,
|
|
682
|
-
base64:
|
|
682
|
+
base64: d,
|
|
683
683
|
title: t.value.style.chart.title.text,
|
|
684
684
|
width: l,
|
|
685
685
|
height: o,
|
|
686
686
|
aspectRatio: a
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
|
-
const Ne =
|
|
689
|
+
const Ne = w(() => {
|
|
690
690
|
const e = t.value.table.useDialog && !t.value.table.show, l = P.value.showTable;
|
|
691
691
|
return {
|
|
692
|
-
component: e ?
|
|
692
|
+
component: e ? te : f,
|
|
693
693
|
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
694
694
|
props: e ? {
|
|
695
695
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
696
696
|
color: t.value.table.th.color,
|
|
697
697
|
headerColor: t.value.table.th.color,
|
|
698
698
|
headerBg: t.value.table.th.backgroundColor,
|
|
699
|
-
isFullscreen:
|
|
700
|
-
fullscreenParent:
|
|
699
|
+
isFullscreen: de.value,
|
|
700
|
+
fullscreenParent: X.value,
|
|
701
701
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
702
702
|
} : {
|
|
703
703
|
hideDetails: !0,
|
|
@@ -720,31 +720,31 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
720
720
|
t.value.table.show || (e && t.value.table.useDialog && Ae.value ? Ae.value.open() : "close" in Ae.value && Ae.value.close());
|
|
721
721
|
});
|
|
722
722
|
function Zt() {
|
|
723
|
-
P.value.showTable = !1,
|
|
723
|
+
P.value.showTable = !1, lt.value && lt.value.setTableIconState(!1);
|
|
724
724
|
}
|
|
725
|
-
const
|
|
725
|
+
const Fo = w(() => it.value.map((e) => ({
|
|
726
726
|
...e,
|
|
727
727
|
name: e.display
|
|
728
|
-
}))),
|
|
728
|
+
}))), Mo = w(() => t.value.style.chart.backgroundColor), Io = w(() => t.value.style.chart.legend), No = w(() => t.value.style.chart.title), { exportSvg: Lo, getSvg: Do } = gl({
|
|
729
729
|
svg: st,
|
|
730
|
-
title:
|
|
731
|
-
legend:
|
|
732
|
-
legendItems:
|
|
733
|
-
backgroundColor:
|
|
730
|
+
title: No,
|
|
731
|
+
legend: Io,
|
|
732
|
+
legendItems: Fo,
|
|
733
|
+
backgroundColor: Mo
|
|
734
734
|
});
|
|
735
735
|
async function Kt({ isCb: e }) {
|
|
736
736
|
if (e) {
|
|
737
|
-
const { blob: l, url: o, text: a, dataUrl: s } = await
|
|
737
|
+
const { blob: l, url: o, text: a, dataUrl: s } = await Do();
|
|
738
738
|
t.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: s });
|
|
739
739
|
} else
|
|
740
|
-
|
|
740
|
+
Lo();
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function zo({ rect: e, seriesIndex: l }) {
|
|
743
743
|
const o = t.value.style.chart.layout.labels.name.show, a = t.value.style.chart.layout.labels.value.show;
|
|
744
744
|
if (!o && !a) return "";
|
|
745
|
-
const s = Math.max(2,
|
|
746
|
-
if (L <= 2 ||
|
|
747
|
-
const
|
|
745
|
+
const s = Math.max(2, Te(e) / 3), d = Math.max(8, Te(e)), $ = d * 1.2, L = Math.max(0, $e(e) - s * 2), ve = Math.max(0, Ce(e) - s * 2);
|
|
746
|
+
if (L <= 2 || ve <= d * 0.8) return "";
|
|
747
|
+
const ne = t.value.style.fontFamily, Ee = t.value.style.chart.layout.labels.name.bold ? "600" : "400", se = t.value.style.chart.layout.labels.value.bold ? "600" : "400", ue = no(e.color), ht = o ? String(e.name ?? "") : "", We = a ? Ke(
|
|
748
748
|
t.value.style.chart.layout.labels.formatter,
|
|
749
749
|
e.value,
|
|
750
750
|
De({
|
|
@@ -755,118 +755,118 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
755
755
|
}),
|
|
756
756
|
{ datapoint: e, seriesIndex: l }
|
|
757
757
|
) : "";
|
|
758
|
-
function
|
|
759
|
-
const
|
|
760
|
-
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
const Qt =
|
|
764
|
-
return document.body.removeChild(
|
|
758
|
+
function he(pe, ge = d, _e = "400") {
|
|
759
|
+
const U = document.createElementNS($t, "svg");
|
|
760
|
+
U.setAttribute("width", "0"), U.setAttribute("height", "0"), U.style.position = "absolute", U.style.visibility = "hidden", U.style.pointerEvents = "none";
|
|
761
|
+
const Y = document.createElementNS($t, "text");
|
|
762
|
+
Y.setAttribute("font-size", String(ge)), Y.setAttribute("font-family", ne), Y.setAttribute("font-weight", String(_e)), Y.textContent = pe || "", U.appendChild(Y), document.body.appendChild(U);
|
|
763
|
+
const Qt = Y.getComputedTextLength();
|
|
764
|
+
return document.body.removeChild(U), Qt;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
const
|
|
768
|
-
let
|
|
769
|
-
function
|
|
770
|
-
return
|
|
766
|
+
function Po(pe, ge, _e, U, Y, Qt) {
|
|
767
|
+
const Ho = String(pe).split(/\s+/).filter(Boolean), A = [];
|
|
768
|
+
let re = "";
|
|
769
|
+
function me(O) {
|
|
770
|
+
return he(O, _e, U) <= ge;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
if (
|
|
774
|
-
const
|
|
775
|
-
let
|
|
776
|
-
for (;
|
|
777
|
-
let gt = 1, mt =
|
|
772
|
+
function Eo(O) {
|
|
773
|
+
if (me(O)) return [O];
|
|
774
|
+
const Q = [];
|
|
775
|
+
let T = 0;
|
|
776
|
+
for (; T < O.length; ) {
|
|
777
|
+
let gt = 1, mt = O.length - T, yt = 1;
|
|
778
778
|
for (; gt <= mt; ) {
|
|
779
|
-
const Ue = gt + mt >> 1,
|
|
780
|
-
|
|
779
|
+
const Ue = gt + mt >> 1, Uo = O.slice(T, T + Ue);
|
|
780
|
+
me(Uo) ? (yt = Ue, gt = Ue + 1) : mt = Ue - 1;
|
|
781
781
|
}
|
|
782
|
-
|
|
782
|
+
Q.push(O.slice(T, T + yt)), T += yt;
|
|
783
783
|
}
|
|
784
|
-
return
|
|
784
|
+
return Q;
|
|
785
785
|
}
|
|
786
|
-
const
|
|
787
|
-
for (const
|
|
788
|
-
const
|
|
789
|
-
if (
|
|
790
|
-
|
|
791
|
-
else if (
|
|
786
|
+
const Wo = Ho.flatMap((O) => Eo(O));
|
|
787
|
+
for (const O of Wo) {
|
|
788
|
+
const Q = re ? re + " " + O : O;
|
|
789
|
+
if (me(Q))
|
|
790
|
+
re = Q;
|
|
791
|
+
else if (re && A.push(re), re = O, A.length === Y - 1) break;
|
|
792
792
|
}
|
|
793
|
-
if (
|
|
794
|
-
const
|
|
795
|
-
if (!
|
|
796
|
-
let
|
|
797
|
-
for (;
|
|
798
|
-
A[A.length - 1] =
|
|
793
|
+
if (re && A.length < Y && A.push(re), A.length === Y) {
|
|
794
|
+
const O = A[A.length - 1];
|
|
795
|
+
if (!me(O)) {
|
|
796
|
+
let T = O;
|
|
797
|
+
for (; T.length && !me(T); ) T = T.slice(0, -1);
|
|
798
|
+
A[A.length - 1] = T;
|
|
799
799
|
}
|
|
800
|
-
let
|
|
801
|
-
if (!
|
|
802
|
-
let
|
|
803
|
-
for (;
|
|
804
|
-
|
|
800
|
+
let Q = A[A.length - 1] + "…";
|
|
801
|
+
if (!me(Q)) {
|
|
802
|
+
let T = A[A.length - 1];
|
|
803
|
+
for (; T.length && !me(T + "…"); ) T = T.slice(0, -1);
|
|
804
|
+
Q = T + "…";
|
|
805
805
|
}
|
|
806
|
-
A[A.length - 1] =
|
|
806
|
+
A[A.length - 1] = Q;
|
|
807
807
|
}
|
|
808
808
|
return A;
|
|
809
809
|
}
|
|
810
|
-
const
|
|
810
|
+
const Vo = a ? 1 : 0, Jt = Math.max(0, Math.floor(ve / $) - Vo);
|
|
811
811
|
if (Jt <= 0) {
|
|
812
812
|
if (!a) return "";
|
|
813
|
-
const
|
|
814
|
-
return
|
|
813
|
+
const pe = e.x0 + s, ge = e.y0 + s + d, _e = Tt(We);
|
|
814
|
+
return he(_e, d, se) <= L ? `
|
|
815
815
|
<text
|
|
816
|
-
x="${
|
|
817
|
-
y="${
|
|
818
|
-
font-size="${
|
|
819
|
-
font-family="${Je(
|
|
820
|
-
font-weight="${
|
|
821
|
-
fill="${Je(
|
|
816
|
+
x="${pe}"
|
|
817
|
+
y="${ge}"
|
|
818
|
+
font-size="${d}"
|
|
819
|
+
font-family="${Je(ne)}"
|
|
820
|
+
font-weight="${se}"
|
|
821
|
+
fill="${Je(ue)}"
|
|
822
822
|
>
|
|
823
823
|
${_e}
|
|
824
824
|
</text>` : "";
|
|
825
825
|
}
|
|
826
|
-
const
|
|
827
|
-
let Oe =
|
|
826
|
+
const fe = o ? Po(ht, L, d, Ee, Jt) : [];
|
|
827
|
+
let Oe = d, J = String(We);
|
|
828
828
|
if (a) {
|
|
829
|
-
for (;
|
|
829
|
+
for (; he(J, Oe, se) > L && Oe > Math.max(8, d * 0.75); )
|
|
830
830
|
Oe -= 1;
|
|
831
|
-
if (
|
|
832
|
-
for (;
|
|
833
|
-
|
|
834
|
-
if (
|
|
831
|
+
if (he(J, Oe, se) > L) {
|
|
832
|
+
for (; J.length && he(J + "…", Oe, se) > L; )
|
|
833
|
+
J = J.slice(0, -1);
|
|
834
|
+
if (J += "…", !J.length) return "";
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
if (
|
|
838
|
-
for (;
|
|
839
|
-
|
|
840
|
-
if (!
|
|
837
|
+
if (fe.length * $ + (a ? $ : 0) > ve) {
|
|
838
|
+
for (; fe.length && fe.length * $ + (a ? $ : 0) > ve; )
|
|
839
|
+
fe.pop();
|
|
840
|
+
if (!fe.length && (!a || $ > ve)) return "";
|
|
841
841
|
}
|
|
842
|
-
const ft = e.x0 + s,
|
|
843
|
-
return o &&
|
|
842
|
+
const ft = e.x0 + s, Bo = e.y0 + s + d, pt = [];
|
|
843
|
+
return o && fe.forEach((pe, ge) => {
|
|
844
844
|
pt.push(
|
|
845
845
|
`
|
|
846
846
|
<tspan
|
|
847
847
|
x="${ft}"
|
|
848
|
-
dy="${
|
|
848
|
+
dy="${ge === 0 ? 0 : $}"
|
|
849
849
|
font-weight="${Ee}"
|
|
850
850
|
>
|
|
851
|
-
${
|
|
851
|
+
${Tt(pe)}
|
|
852
852
|
</tspan>`
|
|
853
853
|
);
|
|
854
854
|
}), a && pt.push(
|
|
855
855
|
`
|
|
856
856
|
<tspan
|
|
857
857
|
x="${ft}"
|
|
858
|
-
dy="${
|
|
859
|
-
font-weight="${
|
|
858
|
+
dy="${fe.length ? $ : 0}"
|
|
859
|
+
font-weight="${se}"
|
|
860
860
|
font-size="${Oe}"
|
|
861
861
|
>
|
|
862
|
-
${
|
|
862
|
+
${Tt(J)}
|
|
863
863
|
</tspan>`
|
|
864
864
|
), `<text
|
|
865
865
|
x="${ft}"
|
|
866
|
-
y="${
|
|
867
|
-
font-size="${
|
|
868
|
-
font-family="${Je(
|
|
869
|
-
fill="${Je(
|
|
866
|
+
y="${Bo}"
|
|
867
|
+
font-size="${d}"
|
|
868
|
+
font-family="${Je(ne)}"
|
|
869
|
+
fill="${Je(ue)}"
|
|
870
870
|
paint-order="stroke"
|
|
871
871
|
stroke="transparent"
|
|
872
872
|
stroke-width="0"
|
|
@@ -875,54 +875,74 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
875
875
|
${pt.join("")}
|
|
876
876
|
</text>`;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Ro(e) {
|
|
879
879
|
const l = t.value.style.chart.layout.rects.borderRadius, o = $e(e), a = Ce(e);
|
|
880
880
|
return Math.min(l, Math.min(o, a) / 6);
|
|
881
881
|
}
|
|
882
882
|
return i({
|
|
883
|
-
getData:
|
|
884
|
-
getImage:
|
|
885
|
-
generateCsv:
|
|
883
|
+
getData: _o,
|
|
884
|
+
getImage: Ao,
|
|
885
|
+
generateCsv: dt,
|
|
886
886
|
generateImage: Pt,
|
|
887
887
|
generateSvg: Kt,
|
|
888
888
|
generatePdf: Rt,
|
|
889
|
-
hideSeries:
|
|
890
|
-
showSeries:
|
|
889
|
+
hideSeries: xo,
|
|
890
|
+
showSeries: To,
|
|
891
891
|
toggleTable: Xt,
|
|
892
892
|
toggleTooltip: qt,
|
|
893
|
-
toggleAnnotator:
|
|
893
|
+
toggleAnnotator: vt,
|
|
894
894
|
toggleFullscreen: Ut
|
|
895
|
-
}), (e, l) => (h(),
|
|
895
|
+
}), (e, l) => (h(), C("div", {
|
|
896
896
|
ref_key: "treemapChart",
|
|
897
|
-
ref:
|
|
898
|
-
class: bt(`vue-data-ui-component vue-ui-treemap ${
|
|
899
|
-
style:
|
|
897
|
+
ref: X,
|
|
898
|
+
class: bt(`vue-data-ui-component vue-ui-treemap ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
899
|
+
style: ie(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
900
900
|
id: `treemap_${I.value}`,
|
|
901
901
|
onMouseenter: l[2] || (l[2] = () => p(Nt)(!0)),
|
|
902
902
|
onMouseleave: l[3] || (l[3] = () => p(Nt)(!1))
|
|
903
903
|
}, [
|
|
904
|
-
t.value.userOptions.buttons.annotator ? (h(),
|
|
904
|
+
t.value.userOptions.buttons.annotator ? (h(), ce(p(r), {
|
|
905
905
|
key: 0,
|
|
906
906
|
svgRef: p(st),
|
|
907
907
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
908
908
|
color: t.value.style.chart.color,
|
|
909
909
|
active: Be.value,
|
|
910
|
-
onClose:
|
|
911
|
-
},
|
|
912
|
-
|
|
910
|
+
onClose: vt
|
|
911
|
+
}, {
|
|
912
|
+
"annotator-action-close": y(() => [
|
|
913
|
+
m(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
914
|
+
]),
|
|
915
|
+
"annotator-action-color": y(({ color: o }) => [
|
|
916
|
+
m(e.$slots, "annotator-action-color", B(H({ color: o })), void 0, !0)
|
|
917
|
+
]),
|
|
918
|
+
"annotator-action-draw": y(({ mode: o }) => [
|
|
919
|
+
m(e.$slots, "annotator-action-draw", B(H({ mode: o })), void 0, !0)
|
|
920
|
+
]),
|
|
921
|
+
"annotator-action-undo": y(({ disabled: o }) => [
|
|
922
|
+
m(e.$slots, "annotator-action-undo", B(H({ disabled: o })), void 0, !0)
|
|
923
|
+
]),
|
|
924
|
+
"annotator-action-redo": y(({ disabled: o }) => [
|
|
925
|
+
m(e.$slots, "annotator-action-redo", B(H({ disabled: o })), void 0, !0)
|
|
926
|
+
]),
|
|
927
|
+
"annotator-action-delete": y(({ disabled: o }) => [
|
|
928
|
+
m(e.$slots, "annotator-action-delete", B(H({ disabled: o })), void 0, !0)
|
|
929
|
+
]),
|
|
930
|
+
_: 3
|
|
931
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : M("", !0),
|
|
932
|
+
po.value ? (h(), C("div", {
|
|
913
933
|
key: 1,
|
|
914
934
|
ref_key: "noTitle",
|
|
915
935
|
ref: Ft,
|
|
916
936
|
class: "vue-data-ui-no-title-space",
|
|
917
937
|
style: "height:36px; width: 100%;background:transparent"
|
|
918
938
|
}, null, 512)) : M("", !0),
|
|
919
|
-
t.value.style.chart.title.text ? (h(),
|
|
939
|
+
t.value.style.chart.title.text ? (h(), C("div", {
|
|
920
940
|
key: 2,
|
|
921
941
|
ref_key: "chartTitle",
|
|
922
942
|
ref: Ot,
|
|
923
|
-
style:
|
|
943
|
+
style: ie(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
924
944
|
}, [
|
|
925
|
-
(h(),
|
|
945
|
+
(h(), ce(hl, {
|
|
926
946
|
key: `title_${Mt.value}`,
|
|
927
947
|
config: {
|
|
928
948
|
title: {
|
|
@@ -938,10 +958,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
938
958
|
], 4)) : M("", !0),
|
|
939
959
|
V("div", {
|
|
940
960
|
id: `legend-top-${I.value}`
|
|
941
|
-
}, null, 8,
|
|
942
|
-
t.value.userOptions.show && z.value && (p(Lt) || p(nt)) ? (h(),
|
|
961
|
+
}, null, 8, Ol),
|
|
962
|
+
t.value.userOptions.show && z.value && (p(Lt) || p(nt)) ? (h(), ce(p(b), {
|
|
943
963
|
ref_key: "userOptionsRef",
|
|
944
|
-
ref:
|
|
964
|
+
ref: lt,
|
|
945
965
|
key: `user_option_${St.value}`,
|
|
946
966
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
947
967
|
color: t.value.style.chart.color,
|
|
@@ -955,10 +975,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
955
975
|
hasSvg: t.value.userOptions.buttons.svg,
|
|
956
976
|
hasTable: t.value.userOptions.buttons.table,
|
|
957
977
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
958
|
-
isFullscreen:
|
|
978
|
+
isFullscreen: de.value,
|
|
959
979
|
isTooltip: P.value.showTooltip,
|
|
960
980
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
961
|
-
chartElement:
|
|
981
|
+
chartElement: X.value,
|
|
962
982
|
position: t.value.userOptions.position,
|
|
963
983
|
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
964
984
|
isAnnotation: Be.value,
|
|
@@ -967,100 +987,100 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
967
987
|
tableDialog: t.value.table.useDialog,
|
|
968
988
|
onToggleFullscreen: Ut,
|
|
969
989
|
onGeneratePdf: p(Rt),
|
|
970
|
-
onGenerateCsv:
|
|
990
|
+
onGenerateCsv: dt,
|
|
971
991
|
onGenerateImage: p(Pt),
|
|
972
992
|
onGenerateSvg: Kt,
|
|
973
993
|
onToggleTable: Xt,
|
|
974
994
|
onToggleTooltip: qt,
|
|
975
|
-
onToggleAnnotator:
|
|
976
|
-
style:
|
|
995
|
+
onToggleAnnotator: vt,
|
|
996
|
+
style: ie({
|
|
977
997
|
visibility: p(Lt) ? p(nt) ? "visible" : "hidden" : "visible"
|
|
978
998
|
})
|
|
979
|
-
},
|
|
999
|
+
}, to({ _: 2 }, [
|
|
980
1000
|
e.$slots.menuIcon ? {
|
|
981
1001
|
name: "menuIcon",
|
|
982
|
-
fn:
|
|
983
|
-
|
|
1002
|
+
fn: y(({ isOpen: o, color: a }) => [
|
|
1003
|
+
m(e.$slots, "menuIcon", B(H({ isOpen: o, color: a })), void 0, !0)
|
|
984
1004
|
]),
|
|
985
1005
|
key: "0"
|
|
986
1006
|
} : void 0,
|
|
987
1007
|
e.$slots.optionTooltip ? {
|
|
988
1008
|
name: "optionTooltip",
|
|
989
|
-
fn:
|
|
990
|
-
|
|
1009
|
+
fn: y(() => [
|
|
1010
|
+
m(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
991
1011
|
]),
|
|
992
1012
|
key: "1"
|
|
993
1013
|
} : void 0,
|
|
994
1014
|
e.$slots.optionPdf ? {
|
|
995
1015
|
name: "optionPdf",
|
|
996
|
-
fn:
|
|
997
|
-
|
|
1016
|
+
fn: y(() => [
|
|
1017
|
+
m(e.$slots, "optionPdf", {}, void 0, !0)
|
|
998
1018
|
]),
|
|
999
1019
|
key: "2"
|
|
1000
1020
|
} : void 0,
|
|
1001
1021
|
e.$slots.optionCsv ? {
|
|
1002
1022
|
name: "optionCsv",
|
|
1003
|
-
fn:
|
|
1004
|
-
|
|
1023
|
+
fn: y(() => [
|
|
1024
|
+
m(e.$slots, "optionCsv", {}, void 0, !0)
|
|
1005
1025
|
]),
|
|
1006
1026
|
key: "3"
|
|
1007
1027
|
} : void 0,
|
|
1008
1028
|
e.$slots.optionImg ? {
|
|
1009
1029
|
name: "optionImg",
|
|
1010
|
-
fn:
|
|
1011
|
-
|
|
1030
|
+
fn: y(() => [
|
|
1031
|
+
m(e.$slots, "optionImg", {}, void 0, !0)
|
|
1012
1032
|
]),
|
|
1013
1033
|
key: "4"
|
|
1014
1034
|
} : void 0,
|
|
1015
1035
|
e.$slots.optionSvg ? {
|
|
1016
1036
|
name: "optionSvg",
|
|
1017
|
-
fn:
|
|
1018
|
-
|
|
1037
|
+
fn: y(() => [
|
|
1038
|
+
m(e.$slots, "optionSvg", {}, void 0, !0)
|
|
1019
1039
|
]),
|
|
1020
1040
|
key: "5"
|
|
1021
1041
|
} : void 0,
|
|
1022
1042
|
e.$slots.optionTable ? {
|
|
1023
1043
|
name: "optionTable",
|
|
1024
|
-
fn:
|
|
1025
|
-
|
|
1044
|
+
fn: y(() => [
|
|
1045
|
+
m(e.$slots, "optionTable", {}, void 0, !0)
|
|
1026
1046
|
]),
|
|
1027
1047
|
key: "6"
|
|
1028
1048
|
} : void 0,
|
|
1029
1049
|
e.$slots.optionFullscreen ? {
|
|
1030
1050
|
name: "optionFullscreen",
|
|
1031
|
-
fn:
|
|
1032
|
-
|
|
1051
|
+
fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
1052
|
+
m(e.$slots, "optionFullscreen", B(H({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
1033
1053
|
]),
|
|
1034
1054
|
key: "7"
|
|
1035
1055
|
} : void 0,
|
|
1036
1056
|
e.$slots.optionAnnotator ? {
|
|
1037
1057
|
name: "optionAnnotator",
|
|
1038
|
-
fn:
|
|
1039
|
-
|
|
1058
|
+
fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
1059
|
+
m(e.$slots, "optionAnnotator", B(H({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
1040
1060
|
]),
|
|
1041
1061
|
key: "8"
|
|
1042
1062
|
} : void 0
|
|
1043
1063
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : M("", !0),
|
|
1044
|
-
|
|
1064
|
+
Z.value.length > 1 ? (h(), C("nav", {
|
|
1045
1065
|
key: 4,
|
|
1046
1066
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1047
1067
|
"data-dom-to-png-ignore": "",
|
|
1048
1068
|
ref_key: "breadcrumbsNav",
|
|
1049
|
-
ref:
|
|
1069
|
+
ref: ot
|
|
1050
1070
|
}, [
|
|
1051
|
-
(h(!0),
|
|
1071
|
+
(h(!0), C(qe, null, wt(Z.value, (o, a) => (h(), C("span", {
|
|
1052
1072
|
role: "button",
|
|
1053
|
-
tabindex: a <
|
|
1073
|
+
tabindex: a < Z.value.length - 1 ? 0 : void 0,
|
|
1054
1074
|
key: o.id || "root",
|
|
1055
|
-
onClick: (s) => a ===
|
|
1075
|
+
onClick: (s) => a === Z.value.length - 1 ? () => {
|
|
1056
1076
|
} : Re(o.node),
|
|
1057
1077
|
onKeydown: [
|
|
1058
|
-
|
|
1059
|
-
|
|
1078
|
+
oo(kt((s) => a === Z.value.length - 1 ? void 0 : Re(o.node), ["prevent"]), ["enter"]),
|
|
1079
|
+
oo(kt((s) => a === Z.value.length - 1 ? void 0 : Re(o.node), ["prevent"]), ["space"])
|
|
1060
1080
|
],
|
|
1061
1081
|
class: "vue-ui-treemap-crumb",
|
|
1062
|
-
"data-last-crumb": a ===
|
|
1063
|
-
style:
|
|
1082
|
+
"data-last-crumb": a === Z.value.length - 1,
|
|
1083
|
+
style: ie({
|
|
1064
1084
|
color: t.value.style.chart.color
|
|
1065
1085
|
}),
|
|
1066
1086
|
onMouseenter: (s) => Yt(a),
|
|
@@ -1068,40 +1088,40 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1068
1088
|
onFocus: (s) => Yt(a),
|
|
1069
1089
|
onBlur: jt
|
|
1070
1090
|
}, [
|
|
1071
|
-
V("span",
|
|
1072
|
-
V("span",
|
|
1073
|
-
|
|
1074
|
-
a === 0 ? (h(),
|
|
1075
|
-
Xe(
|
|
1091
|
+
V("span", Al, [
|
|
1092
|
+
V("span", Fl, [
|
|
1093
|
+
m(e.$slots, "breadcrumb-label", Ct({ ref_for: !0 }, { crumb: o, isRoot: a === 0, isFocus: He.value === a }), () => [
|
|
1094
|
+
a === 0 ? (h(), C("div", Ml, [
|
|
1095
|
+
Xe(ro, {
|
|
1076
1096
|
name: He.value === 0 ? "homeFilled" : "home",
|
|
1077
1097
|
stroke: t.value.style.chart.color
|
|
1078
1098
|
}, null, 8, ["name", "stroke"])
|
|
1079
|
-
])) : (h(),
|
|
1099
|
+
])) : (h(), C(qe, { key: 1 }, [
|
|
1080
1100
|
Ye(je(o.label), 1)
|
|
1081
1101
|
], 64))
|
|
1082
1102
|
], !0)
|
|
1083
1103
|
]),
|
|
1084
|
-
a <
|
|
1085
|
-
|
|
1104
|
+
a < Z.value.length - 1 ? (h(), C("span", Il, [
|
|
1105
|
+
m(e.$slots, "breadcrumb-arrow", {}, () => [
|
|
1086
1106
|
l[4] || (l[4] = Ye(" › ", -1))
|
|
1087
1107
|
], !0)
|
|
1088
1108
|
])) : M("", !0)
|
|
1089
1109
|
])
|
|
1090
|
-
], 44,
|
|
1110
|
+
], 44, _l))), 128))
|
|
1091
1111
|
], 512)) : M("", !0),
|
|
1092
|
-
(h(),
|
|
1112
|
+
(h(), C("svg", {
|
|
1093
1113
|
ref_key: "svgRef",
|
|
1094
1114
|
ref: st,
|
|
1095
1115
|
xmlns: p($t),
|
|
1096
|
-
class: bt({ "vue-data-ui-fullscreen--on":
|
|
1097
|
-
viewBox: `${
|
|
1098
|
-
style:
|
|
1116
|
+
class: bt({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value, "vue-data-ui-zoom-plus": !Se.value, "vue-data-ui-zoom-minus": Se.value, loading: p(be) }),
|
|
1117
|
+
viewBox: `${xe.value.startX} ${xe.value.startY} ${xe.value.width <= 0 ? 10 : xe.value.width} ${xe.value.height <= 0 ? 10 : xe.value.height}`,
|
|
1118
|
+
style: ie(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
|
|
1099
1119
|
}, [
|
|
1100
1120
|
Xe(p(g)),
|
|
1101
|
-
(h(!0),
|
|
1121
|
+
(h(!0), C(qe, null, wt(Ie.value, (o, a) => (h(), C("g", {
|
|
1102
1122
|
key: `tgrad_${o.id}`
|
|
1103
1123
|
}, [
|
|
1104
|
-
t.value.style.chart.layout.rects.gradient.show ? (h(),
|
|
1124
|
+
t.value.style.chart.layout.rects.gradient.show ? (h(), C("defs", Ll, [
|
|
1105
1125
|
V("radialGradient", {
|
|
1106
1126
|
id: `tgrad_${o.id}`,
|
|
1107
1127
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -1109,15 +1129,15 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1109
1129
|
V("stop", {
|
|
1110
1130
|
offset: "18%",
|
|
1111
1131
|
"stop-color": o.color
|
|
1112
|
-
}, null, 8,
|
|
1132
|
+
}, null, 8, zl),
|
|
1113
1133
|
V("stop", {
|
|
1114
1134
|
offset: "100%",
|
|
1115
|
-
"stop-color": p(
|
|
1116
|
-
}, null, 8,
|
|
1117
|
-
], 8,
|
|
1135
|
+
"stop-color": p(ao)(o.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
1136
|
+
}, null, 8, Rl)
|
|
1137
|
+
], 8, Dl)
|
|
1118
1138
|
])) : M("", !0)
|
|
1119
1139
|
]))), 128)),
|
|
1120
|
-
(h(!0),
|
|
1140
|
+
(h(!0), C(qe, null, wt(Ie.value, (o, a) => (h(), C("g", {
|
|
1121
1141
|
key: `k_${o.id}`
|
|
1122
1142
|
}, [
|
|
1123
1143
|
V("rect", {
|
|
@@ -1125,28 +1145,28 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1125
1145
|
y: o.y0,
|
|
1126
1146
|
height: Ce(o),
|
|
1127
1147
|
width: $e(o),
|
|
1128
|
-
fill:
|
|
1129
|
-
rx:
|
|
1130
|
-
stroke:
|
|
1131
|
-
"stroke-width":
|
|
1148
|
+
fill: j.value ? o.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
|
|
1149
|
+
rx: Ro(o),
|
|
1150
|
+
stroke: q.value && q.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
|
|
1151
|
+
"stroke-width": q.value && q.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
|
|
1132
1152
|
onClick: kt((s) => Re(o, a), ["stop"]),
|
|
1133
|
-
onMouseenter: () =>
|
|
1153
|
+
onMouseenter: () => Oo({
|
|
1134
1154
|
datapoint: o,
|
|
1135
1155
|
seriesIndex: a
|
|
1136
1156
|
}),
|
|
1137
|
-
onMouseleave: (s) =>
|
|
1138
|
-
style:
|
|
1157
|
+
onMouseleave: (s) => So({ datapoint: o, seriesIndex: a }),
|
|
1158
|
+
style: ie(`opacity:${q.value ? q.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1139
1159
|
class: bt([
|
|
1140
1160
|
"vue-ui-treemap-rect",
|
|
1141
|
-
|
|
1161
|
+
Co(o) ? "vue-data-ui-zoom-plus" : Se.value ? "vue-data-ui-zoom-minus" : ""
|
|
1142
1162
|
])
|
|
1143
|
-
}, null, 46,
|
|
1144
|
-
!e.$slots.rect && !p(be) && t.value.style.chart.layout.labels.showDefaultLabels ? (h(),
|
|
1163
|
+
}, null, 46, Pl),
|
|
1164
|
+
!e.$slots.rect && !p(be) && t.value.style.chart.layout.labels.showDefaultLabels ? (h(), C("g", {
|
|
1145
1165
|
key: 0,
|
|
1146
1166
|
style: { "pointer-events": "none" },
|
|
1147
|
-
innerHTML:
|
|
1148
|
-
}, null, 8,
|
|
1149
|
-
(h(),
|
|
1167
|
+
innerHTML: zo({ rect: o, seriesIndex: a })
|
|
1168
|
+
}, null, 8, Vl)) : M("", !0),
|
|
1169
|
+
(h(), C("foreignObject", {
|
|
1150
1170
|
x: o.x0,
|
|
1151
1171
|
y: o.y0,
|
|
1152
1172
|
height: Ce(o),
|
|
@@ -1154,35 +1174,35 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1154
1174
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
1155
1175
|
}, [
|
|
1156
1176
|
V("div", {
|
|
1157
|
-
style:
|
|
1158
|
-
width: `calc(100% - ${
|
|
1159
|
-
height: `calc(100% - ${
|
|
1160
|
-
padding: `${
|
|
1177
|
+
style: ie({
|
|
1178
|
+
width: `calc(100% - ${Te(o) / 1.5}px)`,
|
|
1179
|
+
height: `calc(100% - ${Te(o) / 1.5}px)`,
|
|
1180
|
+
padding: `${Te(o) / 3}px`
|
|
1161
1181
|
}),
|
|
1162
1182
|
class: "vue-ui-treemap-cell"
|
|
1163
1183
|
}, [
|
|
1164
|
-
p(be) ? M("", !0) :
|
|
1184
|
+
p(be) ? M("", !0) : m(e.$slots, "rect", Ct({
|
|
1165
1185
|
key: 0,
|
|
1166
1186
|
ref_for: !0
|
|
1167
1187
|
}, {
|
|
1168
1188
|
rect: o,
|
|
1169
1189
|
shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Se.value,
|
|
1170
|
-
fontSize:
|
|
1190
|
+
fontSize: Te(o),
|
|
1171
1191
|
isZoom: Se.value,
|
|
1172
|
-
textColor: p(
|
|
1192
|
+
textColor: p(no)(o.color)
|
|
1173
1193
|
}), void 0, !0)
|
|
1174
1194
|
], 4)
|
|
1175
|
-
], 8,
|
|
1195
|
+
], 8, Bl))
|
|
1176
1196
|
]))), 128)),
|
|
1177
|
-
|
|
1178
|
-
], 14,
|
|
1179
|
-
e.$slots.watermark ? (h(),
|
|
1180
|
-
|
|
1197
|
+
m(e.$slots, "svg", B(H({ svg: W.value, isZoom: Se.value, rect: q.value, config: t.value })), void 0, !0)
|
|
1198
|
+
], 14, Nl)),
|
|
1199
|
+
e.$slots.watermark ? (h(), C("div", Hl, [
|
|
1200
|
+
m(e.$slots, "watermark", B(H({ isPrinting: p(Dt) || p(zt) })), void 0, !0)
|
|
1181
1201
|
])) : M("", !0),
|
|
1182
1202
|
V("div", {
|
|
1183
1203
|
id: `legend-bottom-${I.value}`
|
|
1184
|
-
}, null, 8,
|
|
1185
|
-
It.value ? (h(),
|
|
1204
|
+
}, null, 8, El),
|
|
1205
|
+
It.value ? (h(), ce(Yo, {
|
|
1186
1206
|
key: 6,
|
|
1187
1207
|
to: t.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
|
|
1188
1208
|
}, [
|
|
@@ -1190,37 +1210,37 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1190
1210
|
ref_key: "chartLegend",
|
|
1191
1211
|
ref: _t
|
|
1192
1212
|
}, [
|
|
1193
|
-
t.value.style.chart.legend.show ? (h(),
|
|
1213
|
+
t.value.style.chart.legend.show ? (h(), ce(pl, {
|
|
1194
1214
|
key: `legend_${tt.value}`,
|
|
1195
1215
|
legendSet: it.value,
|
|
1196
|
-
config:
|
|
1216
|
+
config: $o.value,
|
|
1197
1217
|
id: `treemap_legend_${I.value}`,
|
|
1198
1218
|
onClickMarker: l[0] || (l[0] = ({ legend: o }) => Pe(o))
|
|
1199
1219
|
}, {
|
|
1200
|
-
item:
|
|
1201
|
-
p(be) ? M("", !0) : (h(),
|
|
1220
|
+
item: y(({ legend: o, index: a }) => [
|
|
1221
|
+
p(be) ? M("", !0) : (h(), C("div", {
|
|
1202
1222
|
key: 0,
|
|
1203
1223
|
onClick: (s) => Pe(o),
|
|
1204
|
-
style:
|
|
1205
|
-
}, je(o.display), 13,
|
|
1224
|
+
style: ie(`opacity:${R.value.includes(o.id) ? 0.5 : 1}`)
|
|
1225
|
+
}, je(o.display), 13, Wl))
|
|
1206
1226
|
]),
|
|
1207
1227
|
_: 1
|
|
1208
|
-
}, 8, ["legendSet", "config", "id"])) :
|
|
1228
|
+
}, 8, ["legendSet", "config", "id"])) : m(e.$slots, "legend", {
|
|
1209
1229
|
key: 1,
|
|
1210
1230
|
legend: it.value
|
|
1211
1231
|
}, void 0, !0)
|
|
1212
1232
|
], 512)
|
|
1213
1233
|
], 8, ["to"])) : M("", !0),
|
|
1214
|
-
e.$slots.source ? (h(),
|
|
1234
|
+
e.$slots.source ? (h(), C("div", {
|
|
1215
1235
|
key: 7,
|
|
1216
1236
|
ref_key: "source",
|
|
1217
1237
|
ref: At,
|
|
1218
1238
|
dir: "auto"
|
|
1219
1239
|
}, [
|
|
1220
|
-
|
|
1240
|
+
m(e.$slots, "source", {}, void 0, !0)
|
|
1221
1241
|
], 512)) : M("", !0),
|
|
1222
|
-
Xe(p(
|
|
1223
|
-
show: P.value.showTooltip &&
|
|
1242
|
+
Xe(p(v), {
|
|
1243
|
+
show: P.value.showTooltip && E.value,
|
|
1224
1244
|
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1225
1245
|
color: t.value.style.chart.tooltip.color,
|
|
1226
1246
|
fontSize: t.value.style.chart.tooltip.fontSize,
|
|
@@ -1230,30 +1250,30 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1230
1250
|
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1231
1251
|
position: t.value.style.chart.tooltip.position,
|
|
1232
1252
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1233
|
-
parent:
|
|
1253
|
+
parent: X.value,
|
|
1234
1254
|
content: Qe.value,
|
|
1235
|
-
isFullscreen:
|
|
1236
|
-
isCustom: p(
|
|
1255
|
+
isFullscreen: de.value,
|
|
1256
|
+
isCustom: p(so)(t.value.style.chart.tooltip.customFormat),
|
|
1237
1257
|
smooth: t.value.style.chart.tooltip.smooth,
|
|
1238
1258
|
backdropFilter: t.value.style.chart.tooltip.backdropFilter,
|
|
1239
1259
|
smoothForce: t.value.style.chart.tooltip.smoothForce,
|
|
1240
1260
|
smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold
|
|
1241
1261
|
}, {
|
|
1242
|
-
"tooltip-before":
|
|
1243
|
-
|
|
1262
|
+
"tooltip-before": y(() => [
|
|
1263
|
+
m(e.$slots, "tooltip-before", B(H({ ...ct.value })), void 0, !0)
|
|
1244
1264
|
]),
|
|
1245
|
-
"tooltip-after":
|
|
1246
|
-
|
|
1265
|
+
"tooltip-after": y(() => [
|
|
1266
|
+
m(e.$slots, "tooltip-after", B(H({ ...ct.value })), void 0, !0)
|
|
1247
1267
|
]),
|
|
1248
1268
|
_: 3
|
|
1249
1269
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1250
|
-
z.value && t.value.userOptions.buttons.table ? (h(),
|
|
1270
|
+
z.value && t.value.userOptions.buttons.table ? (h(), ce(jo(Ne.value.component), Ct({ key: 8 }, Ne.value.props, {
|
|
1251
1271
|
ref_key: "tableUnit",
|
|
1252
1272
|
ref: Ae,
|
|
1253
1273
|
onClose: Zt
|
|
1254
|
-
}),
|
|
1255
|
-
content:
|
|
1256
|
-
(h(),
|
|
1274
|
+
}), to({
|
|
1275
|
+
content: y(() => [
|
|
1276
|
+
(h(), ce(p(c), {
|
|
1257
1277
|
key: `table_${et.value}`,
|
|
1258
1278
|
colNames: Ve.value.colNames,
|
|
1259
1279
|
head: Ve.value.head,
|
|
@@ -1263,13 +1283,13 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1263
1283
|
withCloseButton: !t.value.table.useDialog,
|
|
1264
1284
|
onClose: Zt
|
|
1265
1285
|
}, {
|
|
1266
|
-
th:
|
|
1286
|
+
th: y(({ th: o }) => [
|
|
1267
1287
|
V("div", {
|
|
1268
1288
|
innerHTML: o,
|
|
1269
1289
|
style: { display: "flex", "align-items": "center" }
|
|
1270
|
-
}, null, 8,
|
|
1290
|
+
}, null, 8, Ul)
|
|
1271
1291
|
]),
|
|
1272
|
-
td:
|
|
1292
|
+
td: y(({ td: o }) => [
|
|
1273
1293
|
Ye(je(o.name || o), 1)
|
|
1274
1294
|
]),
|
|
1275
1295
|
_: 1
|
|
@@ -1279,20 +1299,20 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1279
1299
|
}, [
|
|
1280
1300
|
t.value.table.useDialog ? {
|
|
1281
1301
|
name: "title",
|
|
1282
|
-
fn:
|
|
1302
|
+
fn: y(() => [
|
|
1283
1303
|
Ye(je(Ne.value.title), 1)
|
|
1284
1304
|
]),
|
|
1285
1305
|
key: "0"
|
|
1286
1306
|
} : void 0,
|
|
1287
1307
|
t.value.table.useDialog ? {
|
|
1288
1308
|
name: "actions",
|
|
1289
|
-
fn:
|
|
1309
|
+
fn: y(() => [
|
|
1290
1310
|
V("button", {
|
|
1291
1311
|
tabindex: "0",
|
|
1292
1312
|
class: "vue-ui-user-options-button",
|
|
1293
|
-
onClick: l[1] || (l[1] = (o) =>
|
|
1313
|
+
onClick: l[1] || (l[1] = (o) => dt(t.value.userOptions.callbacks.csv))
|
|
1294
1314
|
}, [
|
|
1295
|
-
Xe(
|
|
1315
|
+
Xe(ro, {
|
|
1296
1316
|
name: "excel",
|
|
1297
1317
|
stroke: Ne.value.props.color
|
|
1298
1318
|
}, null, 8, ["stroke"])
|
|
@@ -1301,10 +1321,10 @@ const So = ["id"], Oo = ["id"], _o = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1301
1321
|
key: "1"
|
|
1302
1322
|
} : void 0
|
|
1303
1323
|
]), 1040)) : M("", !0),
|
|
1304
|
-
p(be) ? (h(),
|
|
1305
|
-
], 46,
|
|
1324
|
+
p(be) ? (h(), ce(rl, { key: 9 })) : M("", !0)
|
|
1325
|
+
], 46, Sl));
|
|
1306
1326
|
}
|
|
1307
|
-
}, ra = /* @__PURE__ */
|
|
1327
|
+
}, ra = /* @__PURE__ */ ml(Gl, [["__scopeId", "data-v-58a68fb8"]]);
|
|
1308
1328
|
export {
|
|
1309
1329
|
ra as default
|
|
1310
1330
|
};
|