vue-data-ui 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DvG07exK.js → Arrow-BotYLY2I.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-Dkpr-qUQ.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-BLg8FaQ2.js} +5 -3
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-C2sMVpbA.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BRN1-1ob.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-DLzeDl3-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Dp53d2re.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Jz9FlNXl.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-TgGWddgD.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Bmpx9GRg.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-DeWHn8zH.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-C6fJOQ0j.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-AGmmsSi_.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-le0yZk_t.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-DEFwuQIo.js} +125 -108
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-C7V0EktO.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-DvuphHeJ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BFqW8WA0.js} +97 -74
- package/dist/pdf-Bdf65IBz.js +79 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +25 -2
- package/dist/types/vue-data-ui.d.ts +25 -2
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-N1I6Rk6M.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-BSZCnuGl.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-DDIKRiOp.js} +13 -12
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-vwh3dolO.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DNw3RWRt.js} +371 -366
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-Cv747Pg6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-B1Yun-v7.js} +200 -195
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-B_5hOApA.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-C2Aj7Lcx.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-BBYqZVUp.js} +225 -220
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DPIOnp9J.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-C4B0wEFn.js} +484 -487
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-B9Zml1V7.js} +272 -266
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-CLn19BHH.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-AVEV-uv3.js} +2 -2
- package/dist/vue-ui-dashboard-DwNYa1I4.js +412 -0
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-Dr4OHGU0.js} +2 -2
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-hJh-1Z48.js} +310 -304
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-xseR2SnT.js} +348 -343
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-FdTx7uAG.js} +293 -287
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-Bh6FqlC1.js} +263 -257
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-BlsKhHbk.js} +206 -200
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-C0B8stYi.js} +243 -238
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-B1-UiZwV.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Df_SCjOI.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-NfRSd6fU.js} +370 -375
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-Ce-DJ8xC.js} +305 -299
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CH3rWyiG.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-D9EVnpxk.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-C973vfYh.js} +188 -183
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-DdLxBhlO.js} +197 -192
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-tARXMYzx.js} +326 -320
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-BC9czZGG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CxDIkZKr.js} +401 -395
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-Bpm5ZoTp.js} +339 -334
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-Bkc_JBCw.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-DVJQYNeL.js} +248 -243
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-DITnRSiS.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-D_OTYUmS.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-Gc1c4LXq.js} +267 -263
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-CUT1N_kK.js} +229 -224
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-DwnZHy0V.js} +359 -354
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton-CeyaKpZd.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-B9yNexWr.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-DTYVcrHV.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-BzxynYoW.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DoznCX5h.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-DoZpd0H2.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-ZKit-hgG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-DjoqH_Xs.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-J-gxI4Xn.js} +310 -304
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-CO7NVeFi.js} +246 -240
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BEFdai_O.js} +5 -5
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-rmbBw_0d.js} +3 -3
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-CjgaQXbc.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer--aqaJwFo.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-qFNHDcU_.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-DA8fzQHo.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-DGC9zxon.js} +262 -256
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-DOCeCCqz.js} +297 -298
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DD9jtkcQ.js} +257 -252
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-87VStrfJ.js} +6 -6
- package/dist/vue-ui-word-cloud-CCMfa9H1.js +817 -0
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-Cm3Hn1-2.js} +257 -252
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-C2SnbN6w.js} +1453 -1447
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-WxSJqoiF.js} +235 -229
- package/package.json +1 -1
- package/dist/pdf-Dd-LIJqz.js +0 -61
- package/dist/vue-ui-dashboard-DmiriAK7.js +0 -325
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +0 -811
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as te, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
function
|
|
1
|
+
import { defineAsyncComponent as te, useSlots as Wt, onMounted as yt, computed as b, ref as m, shallowRef as U, toRefs as Gt, watch as ke, onBeforeUnmount as Xt, createElementBlock as y, openBlock as d, unref as c, normalizeStyle as M, normalizeClass as Le, createBlock as Z, createCommentVNode as _, createElementVNode as O, createVNode as we, createSlots as bt, withCtx as T, renderSlot as C, normalizeProps as le, guardReactiveProps as oe, Fragment as Ce, renderList as Me, withKeys as kt, withModifiers as Be, mergeProps as Ve, createTextVNode as $e, toDisplayString as H, Teleport as qt, resolveDynamicComponent as Yt, nextTick as jt } from "vue";
|
|
2
|
+
import { u as Zt, c as Te, t as Kt, a as Jt, p as I, b as Qt, d as el, o as wt, f as tl, e as de, k as xe, i as he, X as ll, l as Ct, F as $t, y as Tt, v as ol, w as al, z as nl } from "./index-BFqW8WA0.js";
|
|
3
|
+
import { t as sl, u as ul } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as rl, B as il } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as cl } from "./usePrinter-DDIKRiOp.js";
|
|
6
|
+
import { u as xt } from "./useNestedProp-BSZCnuGl.js";
|
|
7
|
+
import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as dl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import hl from "./img-DvuphHeJ.js";
|
|
10
|
+
import pl from "./Title-AGmmsSi_.js";
|
|
11
|
+
import fl from "./Legend-DLzeDl3-.js";
|
|
12
|
+
import _t from "./BaseIcon-BLg8FaQ2.js";
|
|
13
|
+
import { _ as gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
function Ot(n, r) {
|
|
15
15
|
const s = n.length;
|
|
16
16
|
if (s === 0)
|
|
17
17
|
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
@@ -27,7 +27,7 @@ function xt(n, r) {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function At(n) {
|
|
31
31
|
const { xOffset: r, yOffset: s, width: i, height: u } = n;
|
|
32
32
|
return {
|
|
33
33
|
x0: r,
|
|
@@ -36,18 +36,18 @@ function _t(n) {
|
|
|
36
36
|
y1: s + u
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ml(n, r, s) {
|
|
40
40
|
if (n.length === 0)
|
|
41
41
|
return !0;
|
|
42
42
|
{
|
|
43
|
-
const i = n.concat(r), u =
|
|
43
|
+
const i = n.concat(r), u = Ot(
|
|
44
44
|
n,
|
|
45
45
|
s
|
|
46
|
-
), h =
|
|
46
|
+
), h = Ot(i, s);
|
|
47
47
|
return u >= h;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function yl(n) {
|
|
51
51
|
const r = [], s = n.length;
|
|
52
52
|
for (let i = 0; i < s; i += 1) {
|
|
53
53
|
const u = n[i], h = u.length;
|
|
@@ -56,49 +56,49 @@ function gl(n) {
|
|
|
56
56
|
}
|
|
57
57
|
return r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function bl(n, r) {
|
|
60
60
|
const s = {
|
|
61
61
|
...r,
|
|
62
62
|
children: n
|
|
63
63
|
};
|
|
64
|
-
return
|
|
64
|
+
return It(s);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function kl(n) {
|
|
67
67
|
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const { width: s, height: i, xOffset: u, yOffset: h } =
|
|
71
|
-
let
|
|
69
|
+
function St(n, r) {
|
|
70
|
+
const { width: s, height: i, xOffset: u, yOffset: h } = Ee(r), v = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, F) => w + F, 0), f = g / i, W = g / s;
|
|
71
|
+
let P = u, k = h;
|
|
72
72
|
const $ = [];
|
|
73
73
|
if (s >= i) {
|
|
74
74
|
for (let w = 0; w < v; w += 1) {
|
|
75
|
-
const
|
|
76
|
-
x0:
|
|
75
|
+
const F = n[w], B = k + F.normalizedValue / f, A = {
|
|
76
|
+
x0: P,
|
|
77
77
|
y0: k,
|
|
78
|
-
x1:
|
|
78
|
+
x1: P + f,
|
|
79
79
|
y1: B
|
|
80
|
-
},
|
|
81
|
-
k = B, $.push(
|
|
80
|
+
}, N = Object.assign({}, F, A);
|
|
81
|
+
k = B, $.push(N);
|
|
82
82
|
}
|
|
83
83
|
return $;
|
|
84
84
|
} else {
|
|
85
85
|
for (let w = 0; w < v; w += 1) {
|
|
86
|
-
const
|
|
87
|
-
x0:
|
|
86
|
+
const F = n[w], B = P + F.normalizedValue / W, A = {
|
|
87
|
+
x0: P,
|
|
88
88
|
y0: k,
|
|
89
89
|
x1: B,
|
|
90
90
|
y1: k + W
|
|
91
|
-
},
|
|
92
|
-
|
|
91
|
+
}, N = Object.assign({}, F, A);
|
|
92
|
+
P = B, $.push(N);
|
|
93
93
|
}
|
|
94
94
|
return $;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
const r =
|
|
97
|
+
function wl(n) {
|
|
98
|
+
const r = Ee(n), s = r.width, i = r.height;
|
|
99
99
|
return Math.min(s, i);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Cl(n, r) {
|
|
102
102
|
const s = n.length, i = n.map((f) => f.value ?? 0).reduce((f, W) => f + W, 0), u = r / i, h = [];
|
|
103
103
|
let v, g;
|
|
104
104
|
for (let f = 0; f < s; f += 1)
|
|
@@ -107,7 +107,7 @@ function kl(n, r) {
|
|
|
107
107
|
}), h.push(v);
|
|
108
108
|
return h;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ee(n) {
|
|
111
111
|
const { x0: r, y0: s, x1: i, y1: u } = n;
|
|
112
112
|
return {
|
|
113
113
|
xOffset: r,
|
|
@@ -116,43 +116,43 @@ function Ve(n) {
|
|
|
116
116
|
height: u - s
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function $l(n, r, s, i) {
|
|
120
120
|
let u = n, h = r, v = s, g = i;
|
|
121
121
|
for (; ; ) {
|
|
122
122
|
const f = u.length;
|
|
123
123
|
if (f === 0) {
|
|
124
|
-
const $ =
|
|
124
|
+
const $ = St(h, v);
|
|
125
125
|
return g.concat($);
|
|
126
126
|
}
|
|
127
|
-
const W =
|
|
128
|
-
if (
|
|
129
|
-
const $ = h.concat(
|
|
127
|
+
const W = wl(v), P = u[0], k = u.slice(1, f);
|
|
128
|
+
if (ml(h, P, W)) {
|
|
129
|
+
const $ = h.concat(P);
|
|
130
130
|
u = k, h = $, v = v, g = g;
|
|
131
131
|
} else {
|
|
132
132
|
const $ = h.length;
|
|
133
133
|
let w = 0;
|
|
134
|
-
for (let
|
|
135
|
-
w += h[
|
|
136
|
-
const
|
|
137
|
-
u = u, h = [], v =
|
|
134
|
+
for (let N = 0; N < $; N += 1)
|
|
135
|
+
w += h[N].normalizedValue;
|
|
136
|
+
const F = Tl(v, w), B = St(h, v), A = g.concat(B);
|
|
137
|
+
u = u, h = [], v = F, g = A;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function It(n) {
|
|
142
142
|
if (typeof n.children > "u" || !n.children.length)
|
|
143
143
|
return [n];
|
|
144
144
|
{
|
|
145
|
-
const r =
|
|
145
|
+
const r = Cl(
|
|
146
146
|
n.children,
|
|
147
|
-
|
|
148
|
-
), s =
|
|
147
|
+
kl(n)
|
|
148
|
+
), s = $l(r, [], n, []), i = s.length, u = [];
|
|
149
149
|
for (let v = 0; v < i; v += 1)
|
|
150
|
-
u.push(
|
|
151
|
-
return
|
|
150
|
+
u.push(It(s[v]));
|
|
151
|
+
return yl(u);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const { width: s, height: i, xOffset: u, yOffset: h } =
|
|
154
|
+
function Tl(n, r) {
|
|
155
|
+
const { width: s, height: i, xOffset: u, yOffset: h } = Ee(n);
|
|
156
156
|
if (s >= i) {
|
|
157
157
|
const v = r / i, g = s - v, f = {
|
|
158
158
|
xOffset: u + v,
|
|
@@ -160,7 +160,7 @@ function Cl(n, r) {
|
|
|
160
160
|
width: g,
|
|
161
161
|
height: i
|
|
162
162
|
};
|
|
163
|
-
return
|
|
163
|
+
return At(f);
|
|
164
164
|
} else {
|
|
165
165
|
const v = r / s, g = i - v, f = {
|
|
166
166
|
xOffset: u,
|
|
@@ -168,22 +168,22 @@ function Cl(n, r) {
|
|
|
168
168
|
width: s,
|
|
169
169
|
height: g
|
|
170
170
|
};
|
|
171
|
-
return
|
|
171
|
+
return At(f);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const xl = ["id"], _l = ["id"], Ol = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Al = { class: "vue-ui-treemap-crumb-unit" }, Sl = { class: "vue-ui-treemap-crumb-unit-label" }, Il = {
|
|
175
175
|
key: 0,
|
|
176
176
|
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
177
|
-
},
|
|
177
|
+
}, Fl = {
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
180
|
-
},
|
|
180
|
+
}, Dl = ["xmlns", "viewBox"], Nl = { key: 0 }, Rl = ["id"], Pl = ["stop-color"], zl = ["stop-color"], Ll = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Ml = ["x", "y", "height", "width"], Bl = {
|
|
181
181
|
style: { width: "100%", height: "100%" },
|
|
182
182
|
class: "vue-ui-treemap-cell"
|
|
183
|
-
},
|
|
183
|
+
}, Vl = {
|
|
184
184
|
key: 5,
|
|
185
185
|
class: "vue-data-ui-watermark"
|
|
186
|
-
},
|
|
186
|
+
}, El = ["id"], Ul = ["onClick"], Hl = ["innerHTML"], Wl = {
|
|
187
187
|
__name: "vue-ui-treemap",
|
|
188
188
|
props: {
|
|
189
189
|
config: {
|
|
@@ -201,12 +201,12 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
201
201
|
},
|
|
202
202
|
emits: ["selectLegend", "selectDatapoint"],
|
|
203
203
|
setup(n, { expose: r, emit: s }) {
|
|
204
|
-
const i = te(() => import("./DataTable-
|
|
205
|
-
|
|
204
|
+
const i = te(() => import("./DataTable-BRN1-1ob.js")), u = te(() => import("./PenAndPaper-TgGWddgD.js")), h = te(() => import("./vue-ui-accordion-Cv747Pg6.js")), v = te(() => import("./Tooltip-le0yZk_t.js")), g = te(() => import("./UserOptions-DEFwuQIo.js")), f = te(() => import("./PackageVersion-Jz9FlNXl.js")), W = te(() => import("./BaseDraggableDialog-Dkpr-qUQ.js")), { vue_ui_treemap: P } = Zt(), k = n, $ = s, w = Wt();
|
|
205
|
+
yt(() => {
|
|
206
206
|
w["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
207
207
|
});
|
|
208
|
-
const
|
|
209
|
-
...
|
|
208
|
+
const F = b(() => !!k.dataset && k.dataset.length), B = b(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), A = m(Te()), N = m(!1), _e = m(""), K = m(!1), Ue = m(0), z = m([]), V = U(null), He = U(null), We = U(null), Ge = U(null), Xe = U(null), qe = m(0), Oe = m(0), Ae = m(0), x = m([]), Se = m(null), Ye = m(!1), ue = m(null), Ie = m(null), e = m(Ne()), { loading: re, FINAL_DATASET: Fe, manualLoading: Ft } = rl({
|
|
209
|
+
...Gt(k),
|
|
210
210
|
FINAL_CONFIG: e,
|
|
211
211
|
prepareConfig: Ne,
|
|
212
212
|
skeletonDataset: [
|
|
@@ -225,7 +225,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
],
|
|
228
|
-
skeletonConfig:
|
|
228
|
+
skeletonConfig: Kt({
|
|
229
229
|
defaultConfig: e.value,
|
|
230
230
|
userConfig: {
|
|
231
231
|
userOptions: { show: !1 },
|
|
@@ -247,33 +247,33 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
})
|
|
250
|
-
}), { userOptionsVisible:
|
|
250
|
+
}), { userOptionsVisible: De, setUserOptionsVisibility: je, keepUserOptionState: Ze } = vl({ config: e.value }), { svgRef: Ke } = dl({ config: e.value.style.chart.title });
|
|
251
251
|
function Ne() {
|
|
252
|
-
const t =
|
|
252
|
+
const t = xt({
|
|
253
253
|
userConfig: k.config,
|
|
254
|
-
defaultConfig:
|
|
254
|
+
defaultConfig: P
|
|
255
255
|
});
|
|
256
256
|
return t.theme ? {
|
|
257
|
-
|
|
258
|
-
userConfig:
|
|
257
|
+
...xt({
|
|
258
|
+
userConfig: Qt.vue_ui_treemap[t.theme] || k.config,
|
|
259
259
|
defaultConfig: t
|
|
260
260
|
}),
|
|
261
|
-
customPalette:
|
|
261
|
+
customPalette: Jt[t.theme] || I
|
|
262
262
|
} : t;
|
|
263
263
|
}
|
|
264
264
|
ke(() => k.config, (t) => {
|
|
265
|
-
re.value || (e.value = Ne()),
|
|
265
|
+
re.value || (e.value = Ne()), De.value = !e.value.userOptions.showOnChartHover, qe.value += 1, Oe.value += 1, Ae.value += 1, D.value.showTable = e.value.table.show, D.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
266
266
|
}, { deep: !0 });
|
|
267
|
-
const { isPrinting:
|
|
267
|
+
const { isPrinting: Je, isImaging: Qe, generatePdf: et, generateImage: tt } = cl({
|
|
268
268
|
elementId: `treemap_${A.value}`,
|
|
269
269
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
270
270
|
options: e.value.userOptions.print
|
|
271
|
-
}),
|
|
271
|
+
}), Dt = b(() => e.value.userOptions.show && !e.value.style.chart.title.text), pe = b(() => el(e.value.customPalette)), D = m({
|
|
272
272
|
showTable: e.value.table.show,
|
|
273
273
|
showTooltip: e.value.style.chart.tooltip.show
|
|
274
274
|
});
|
|
275
275
|
ke(e, () => {
|
|
276
|
-
|
|
276
|
+
D.value = {
|
|
277
277
|
showTable: e.value.table.show,
|
|
278
278
|
showTooltip: e.value.style.chart.tooltip.show
|
|
279
279
|
};
|
|
@@ -290,52 +290,52 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
290
290
|
vbHeight: G.value.height,
|
|
291
291
|
vbWidth: G.value.width,
|
|
292
292
|
width: G.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
293
|
-
})),
|
|
294
|
-
function
|
|
293
|
+
})), R = m(Fe.value), X = m(R.value), lt = U(/* @__PURE__ */ new Map());
|
|
294
|
+
function ot(t) {
|
|
295
295
|
Array.isArray(t) && t.forEach((o, l) => {
|
|
296
296
|
o.id || (o.id = Te());
|
|
297
|
-
let a = de(o.color) ||
|
|
298
|
-
a = de(a),
|
|
297
|
+
let a = de(o.color) || lt.value.get(o.id) || pe.value[l] || I[l] || I[l % I.length];
|
|
298
|
+
a = de(a), lt.value.set(o.id, a), o.color = a, at(o, a);
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function at(t, o) {
|
|
302
302
|
Array.isArray(t.children) && t.children.forEach((l) => {
|
|
303
|
-
l.id || (l.id = Te()), l.parentId = t.id, l.color = o,
|
|
303
|
+
l.id || (l.id = Te()), l.parentId = t.id, l.color = o, at(l, o);
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Nt() {
|
|
307
307
|
if (!x.value.length)
|
|
308
|
-
X.value =
|
|
308
|
+
X.value = R.value.slice();
|
|
309
309
|
else {
|
|
310
310
|
const t = x.value[x.value.length - 1], o = Y(t);
|
|
311
311
|
X.value = o?.children?.slice() || [];
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
ke(
|
|
315
|
-
() =>
|
|
315
|
+
() => Fe.value,
|
|
316
316
|
() => {
|
|
317
|
-
|
|
317
|
+
R.value = Fe.value, ot(R.value), Nt(), Ae.value += 1, Oe.value += 1;
|
|
318
318
|
},
|
|
319
319
|
{ deep: !0, immediate: !0, flush: "post" }
|
|
320
320
|
);
|
|
321
321
|
const q = U(null), ae = U(null);
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
yt(() => {
|
|
323
|
+
Ye.value = !0, Pt();
|
|
324
324
|
});
|
|
325
|
-
const
|
|
325
|
+
const Rt = b(() => e.value.debug);
|
|
326
326
|
function Pt() {
|
|
327
|
-
if (
|
|
327
|
+
if (wt(k.dataset) && tl({
|
|
328
328
|
componentName: "VueUiTreemap",
|
|
329
329
|
type: "dataset",
|
|
330
|
-
debug:
|
|
331
|
-
}),
|
|
332
|
-
const t =
|
|
333
|
-
const { width: o, height: l } =
|
|
330
|
+
debug: Rt.value
|
|
331
|
+
}), ot(R.value), wt(k.dataset) || (Ft.value = e.value.loading), e.value.responsive) {
|
|
332
|
+
const t = sl(() => {
|
|
333
|
+
const { width: o, height: l } = ul({
|
|
334
334
|
chart: V.value,
|
|
335
|
-
title: e.value.style.chart.title.text ?
|
|
336
|
-
legend: e.value.style.chart.legend.show ?
|
|
337
|
-
source:
|
|
338
|
-
noTitle:
|
|
335
|
+
title: e.value.style.chart.title.text ? He.value : null,
|
|
336
|
+
legend: e.value.style.chart.legend.show ? We.value : null,
|
|
337
|
+
source: Ge.value,
|
|
338
|
+
noTitle: Xe.value
|
|
339
339
|
});
|
|
340
340
|
requestAnimationFrame(() => {
|
|
341
341
|
G.value.width = o, G.value.height = l - 12;
|
|
@@ -344,13 +344,13 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
344
344
|
q.value && (ae.value && q.value.unobserve(ae.value), q.value.disconnect()), q.value = new ResizeObserver(t), ae.value = V.value.parentNode, q.value.observe(ae.value);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
Xt(() => {
|
|
348
348
|
q.value && (ae.value && q.value.unobserve(ae.value), q.value.disconnect());
|
|
349
349
|
});
|
|
350
350
|
const ie = b(() => X.value.map((t, o) => ({
|
|
351
351
|
...t,
|
|
352
|
-
color: de(t.color) || pe.value[o] ||
|
|
353
|
-
})).filter((t) => !
|
|
352
|
+
color: de(t.color) || pe.value[o] || I[o] || I[o % I.length]
|
|
353
|
+
})).filter((t) => !z.value.includes(t.id))), ne = b(() => R.value.filter((t) => !z.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), nt = b({
|
|
354
354
|
get() {
|
|
355
355
|
let t = [...ie.value];
|
|
356
356
|
return e.value.style.chart.layout.sorted && (t = [...ie.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
@@ -361,50 +361,50 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
|
-
function
|
|
364
|
+
function st(t, o) {
|
|
365
365
|
return t.value / o;
|
|
366
366
|
}
|
|
367
367
|
function zt(t, o, l) {
|
|
368
|
-
const a = e.value.style.chart.layout.rects.colorRatio -
|
|
369
|
-
return
|
|
368
|
+
const a = e.value.style.chart.layout.rects.colorRatio - st(o, l);
|
|
369
|
+
return Ct(t, a < 0 ? 0 : a);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function ut(t, o, l, a) {
|
|
372
372
|
return t.map((p, S) => {
|
|
373
|
-
const be = zt(de(o) || pe.value[S] ||
|
|
373
|
+
const be = zt(de(o) || pe.value[S] || I[S] || I[S % I.length], p, a), Ht = st(p, a);
|
|
374
374
|
return {
|
|
375
375
|
...p,
|
|
376
376
|
color: be,
|
|
377
|
-
proportion:
|
|
377
|
+
proportion: Ht,
|
|
378
378
|
parentName: l,
|
|
379
|
-
children: p.children ?
|
|
379
|
+
children: p.children ? ut(p.children, be, p.name, a) : void 0
|
|
380
380
|
};
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
const ce = b(() =>
|
|
384
|
-
|
|
383
|
+
const ce = b(() => bl(
|
|
384
|
+
nt.value.map((t, o) => {
|
|
385
385
|
const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
|
|
386
386
|
return {
|
|
387
387
|
value: t.value,
|
|
388
388
|
id: t.id || Te(),
|
|
389
|
-
children: t.children ?
|
|
389
|
+
children: t.children ? ut(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
|
|
390
390
|
color: t.color,
|
|
391
391
|
name: t.name
|
|
392
392
|
};
|
|
393
393
|
}),
|
|
394
394
|
{ x0: J.value.left * 2, y0: J.value.top, x1: J.value.width, y1: J.value.height }
|
|
395
395
|
));
|
|
396
|
-
function
|
|
396
|
+
function rt({ y0: t, y1: o }) {
|
|
397
397
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function it({ x0: t, x1: o }) {
|
|
400
400
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
401
401
|
}
|
|
402
402
|
function Q(t) {
|
|
403
403
|
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
404
404
|
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
K.value = t,
|
|
406
|
+
function ct(t) {
|
|
407
|
+
K.value = t, Ue.value += 1;
|
|
408
408
|
}
|
|
409
409
|
const se = b(() => {
|
|
410
410
|
let t = 0;
|
|
@@ -415,7 +415,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
415
415
|
height: J.value.vbHeight - t
|
|
416
416
|
};
|
|
417
417
|
});
|
|
418
|
-
function Y(t, o =
|
|
418
|
+
function Y(t, o = R.value) {
|
|
419
419
|
for (const l of o) {
|
|
420
420
|
if (l.id === t)
|
|
421
421
|
return l;
|
|
@@ -430,7 +430,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
430
430
|
const ee = b(() => x.value.length > 0);
|
|
431
431
|
function fe(t, o) {
|
|
432
432
|
if (!t) {
|
|
433
|
-
X.value =
|
|
433
|
+
X.value = R.value.slice(), $("selectDatapoint", void 0), x.value = [];
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
436
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
@@ -448,10 +448,10 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
448
448
|
const p = Y(a);
|
|
449
449
|
X.value = p.children.slice();
|
|
450
450
|
} else
|
|
451
|
-
X.value =
|
|
451
|
+
X.value = R.value.slice(), x.value = [], $("selectDatapoint", void 0);
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Lt(t) {
|
|
455
455
|
return !!(Y(t.id)?.children?.length || t.parentId);
|
|
456
456
|
}
|
|
457
457
|
const j = b(() => {
|
|
@@ -471,15 +471,15 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
return t;
|
|
474
|
-
}), L = U(null),
|
|
474
|
+
}), L = U(null), vt = b(() => R.value.map((t, o) => ({
|
|
475
475
|
...t,
|
|
476
|
-
color: de(t.color) || pe.value[o] ||
|
|
476
|
+
color: de(t.color) || pe.value[o] || I[o] || I[o % I.length],
|
|
477
477
|
shape: "square"
|
|
478
478
|
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
479
479
|
...t,
|
|
480
|
-
proportion: t.value /
|
|
481
|
-
opacity:
|
|
482
|
-
}))),
|
|
480
|
+
proportion: t.value / R.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
481
|
+
opacity: z.value.includes(t.id) ? 0.5 : 1
|
|
482
|
+
}))), Mt = b(() => ({
|
|
483
483
|
cy: "treemap-div-legend",
|
|
484
484
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
485
485
|
color: e.value.style.chart.legend.color,
|
|
@@ -487,17 +487,17 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
487
487
|
paddingBottom: 12,
|
|
488
488
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
489
489
|
}));
|
|
490
|
-
function
|
|
491
|
-
L.value = null,
|
|
490
|
+
function dt(t) {
|
|
491
|
+
L.value = null, z.value.includes(t.id) ? z.value = z.value.filter((o) => o !== t.id) : z.value.length < k.dataset.length - 1 && z.value.push(t.id), $("selectLegend", nt.value);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
L.value = null,
|
|
493
|
+
function Bt({ datapoint: t, seriesIndex: o }) {
|
|
494
|
+
L.value = null, N.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
495
495
|
}
|
|
496
|
-
const
|
|
497
|
-
function
|
|
498
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), L.value = t,
|
|
496
|
+
const Re = m(null);
|
|
497
|
+
function Vt({ datapoint: t, seriesIndex: o }) {
|
|
498
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), L.value = t, Re.value = { datapoint: t, seriesIndex: o, config: e.value, series: ie.value };
|
|
499
499
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
500
|
-
if (
|
|
500
|
+
if (Tt(l) && nl(() => l({
|
|
501
501
|
seriesIndex: o,
|
|
502
502
|
datapoint: t,
|
|
503
503
|
series: ie.value,
|
|
@@ -523,7 +523,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
523
523
|
{ datapoint: t, seriesIndex: o }
|
|
524
524
|
)}</b>`, _e.value = `<div>${a}</div>`;
|
|
525
525
|
}
|
|
526
|
-
|
|
526
|
+
N.value = !0;
|
|
527
527
|
}
|
|
528
528
|
const E = b(() => {
|
|
529
529
|
const t = ce.value.map((l) => ({
|
|
@@ -532,12 +532,12 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
532
532
|
})), o = ce.value.map((l) => l.value);
|
|
533
533
|
return { head: t, body: o };
|
|
534
534
|
});
|
|
535
|
-
function
|
|
536
|
-
|
|
535
|
+
function Pe(t = null) {
|
|
536
|
+
jt(() => {
|
|
537
537
|
const o = E.value.head.map((p, S) => [[
|
|
538
538
|
p.name
|
|
539
|
-
], [E.value.body[S]], [isNaN(E.value.body[S] / ne.value) ? "-" : E.value.body[S] / ne.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a =
|
|
540
|
-
t ? t(a) :
|
|
539
|
+
], [E.value.body[S]], [isNaN(E.value.body[S] / ne.value) ? "-" : E.value.body[S] / ne.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = ol(l);
|
|
540
|
+
t ? t(a) : al({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
543
|
const ge = b(() => {
|
|
@@ -592,29 +592,29 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
592
592
|
config: l
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
|
-
function
|
|
595
|
+
function Et() {
|
|
596
596
|
return ce.value;
|
|
597
597
|
}
|
|
598
|
-
function dt() {
|
|
599
|
-
I.value.showTable = !I.value.showTable;
|
|
600
|
-
}
|
|
601
598
|
function ht() {
|
|
602
|
-
|
|
599
|
+
D.value.showTable = !D.value.showTable;
|
|
600
|
+
}
|
|
601
|
+
function pt() {
|
|
602
|
+
D.value.showTooltip = !D.value.showTooltip;
|
|
603
603
|
}
|
|
604
604
|
const me = m(!1);
|
|
605
|
-
function
|
|
605
|
+
function ze() {
|
|
606
606
|
me.value = !me.value;
|
|
607
607
|
}
|
|
608
608
|
const ye = m(null);
|
|
609
|
-
function
|
|
609
|
+
function ft(t) {
|
|
610
610
|
ye.value = t;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function gt() {
|
|
613
613
|
ye.value = null;
|
|
614
614
|
}
|
|
615
|
-
async function
|
|
615
|
+
async function Ut({ scale: t = 2 } = {}) {
|
|
616
616
|
if (!V.value) return;
|
|
617
|
-
const { width: o, height: l } = V.value.getBoundingClientRect(), a = o / l, { imageUri: p, base64: S } = await
|
|
617
|
+
const { width: o, height: l } = V.value.getBoundingClientRect(), a = o / l, { imageUri: p, base64: S } = await hl({ domElement: V.value, base64: !0, img: !0, scale: t });
|
|
618
618
|
return {
|
|
619
619
|
imageUri: p,
|
|
620
620
|
base64: S,
|
|
@@ -625,7 +625,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
627
|
const ve = b(() => {
|
|
628
|
-
const t = e.value.table.useDialog && !e.value.table.show, o =
|
|
628
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
|
|
629
629
|
return {
|
|
630
630
|
component: t ? W : h,
|
|
631
631
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -654,50 +654,54 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
});
|
|
657
|
-
|
|
657
|
+
ke(() => D.value.showTable, (t) => {
|
|
658
658
|
e.value.table.show || (t && e.value.table.useDialog && ue.value ? ue.value.open() : "close" in ue.value && ue.value.close());
|
|
659
|
-
})
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
659
|
+
});
|
|
660
|
+
function mt() {
|
|
661
|
+
D.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
|
|
662
|
+
}
|
|
663
|
+
return r({
|
|
664
|
+
getData: Et,
|
|
665
|
+
getImage: Ut,
|
|
666
|
+
generateCsv: Pe,
|
|
667
|
+
generateImage: tt,
|
|
668
|
+
generatePdf: et,
|
|
669
|
+
toggleTable: ht,
|
|
670
|
+
toggleTooltip: pt,
|
|
671
|
+
toggleAnnotator: ze,
|
|
672
|
+
toggleFullscreen: ct
|
|
669
673
|
}), (t, o) => (d(), y("div", {
|
|
670
674
|
ref_key: "treemapChart",
|
|
671
675
|
ref: V,
|
|
672
|
-
class:
|
|
676
|
+
class: Le(`vue-ui-treemap ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
673
677
|
style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
674
678
|
id: `treemap_${A.value}`,
|
|
675
|
-
onMouseenter: o[
|
|
676
|
-
onMouseleave: o[
|
|
679
|
+
onMouseenter: o[2] || (o[2] = () => c(je)(!0)),
|
|
680
|
+
onMouseleave: o[3] || (o[3] = () => c(je)(!1))
|
|
677
681
|
}, [
|
|
678
682
|
e.value.userOptions.buttons.annotator ? (d(), Z(c(u), {
|
|
679
683
|
key: 0,
|
|
680
|
-
svgRef: c(
|
|
684
|
+
svgRef: c(Ke),
|
|
681
685
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
682
686
|
color: e.value.style.chart.color,
|
|
683
687
|
active: me.value,
|
|
684
|
-
onClose:
|
|
688
|
+
onClose: ze
|
|
685
689
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
686
|
-
|
|
690
|
+
Dt.value ? (d(), y("div", {
|
|
687
691
|
key: 1,
|
|
688
692
|
ref_key: "noTitle",
|
|
689
|
-
ref:
|
|
693
|
+
ref: Xe,
|
|
690
694
|
class: "vue-data-ui-no-title-space",
|
|
691
695
|
style: "height:36px; width: 100%;background:transparent"
|
|
692
696
|
}, null, 512)) : _("", !0),
|
|
693
697
|
e.value.style.chart.title.text ? (d(), y("div", {
|
|
694
698
|
key: 2,
|
|
695
699
|
ref_key: "chartTitle",
|
|
696
|
-
ref:
|
|
700
|
+
ref: He,
|
|
697
701
|
style: M(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
698
702
|
}, [
|
|
699
|
-
(d(), Z(
|
|
700
|
-
key: `title_${
|
|
703
|
+
(d(), Z(pl, {
|
|
704
|
+
key: `title_${qe.value}`,
|
|
701
705
|
config: {
|
|
702
706
|
title: {
|
|
703
707
|
cy: "treemap-div-title",
|
|
@@ -712,14 +716,15 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
712
716
|
], 4)) : _("", !0),
|
|
713
717
|
O("div", {
|
|
714
718
|
id: `legend-top-${A.value}`
|
|
715
|
-
}, null, 8,
|
|
716
|
-
e.value.userOptions.show &&
|
|
717
|
-
|
|
718
|
-
|
|
719
|
+
}, null, 8, _l),
|
|
720
|
+
e.value.userOptions.show && F.value && (c(Ze) || c(De)) ? (d(), Z(c(g), {
|
|
721
|
+
ref_key: "userOptionsRef",
|
|
722
|
+
ref: Ie,
|
|
723
|
+
key: `user_option_${Ue.value}`,
|
|
719
724
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
720
725
|
color: e.value.style.chart.color,
|
|
721
|
-
isPrinting: c(
|
|
722
|
-
isImaging: c(
|
|
726
|
+
isPrinting: c(Je),
|
|
727
|
+
isImaging: c(Qe),
|
|
723
728
|
uid: A.value,
|
|
724
729
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
725
730
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -728,7 +733,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
728
733
|
hasTable: e.value.userOptions.buttons.table,
|
|
729
734
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
730
735
|
isFullscreen: K.value,
|
|
731
|
-
isTooltip:
|
|
736
|
+
isTooltip: D.value.showTooltip,
|
|
732
737
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
733
738
|
chartElement: V.value,
|
|
734
739
|
position: e.value.userOptions.position,
|
|
@@ -736,17 +741,18 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
736
741
|
isAnnotation: me.value,
|
|
737
742
|
callbacks: e.value.userOptions.callbacks,
|
|
738
743
|
printScale: e.value.userOptions.print.scale,
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
744
|
+
tableDialog: e.value.table.useDialog,
|
|
745
|
+
onToggleFullscreen: ct,
|
|
746
|
+
onGeneratePdf: c(et),
|
|
747
|
+
onGenerateCsv: Pe,
|
|
748
|
+
onGenerateImage: c(tt),
|
|
749
|
+
onToggleTable: ht,
|
|
750
|
+
onToggleTooltip: pt,
|
|
751
|
+
onToggleAnnotator: ze,
|
|
746
752
|
style: M({
|
|
747
|
-
visibility: c(
|
|
753
|
+
visibility: c(Ze) ? c(De) ? "visible" : "hidden" : "visible"
|
|
748
754
|
})
|
|
749
|
-
},
|
|
755
|
+
}, bt({ _: 2 }, [
|
|
750
756
|
t.$slots.menuIcon ? {
|
|
751
757
|
name: "menuIcon",
|
|
752
758
|
fn: T(({ isOpen: l, color: a }) => [
|
|
@@ -803,7 +809,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
803
809
|
]),
|
|
804
810
|
key: "7"
|
|
805
811
|
} : void 0
|
|
806
|
-
]), 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),
|
|
812
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
807
813
|
j.value.length > 1 ? (d(), y("nav", {
|
|
808
814
|
key: 4,
|
|
809
815
|
class: "vue-ui-treemap-breadcrumbs",
|
|
@@ -811,31 +817,31 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
811
817
|
ref_key: "breadcrumbsNav",
|
|
812
818
|
ref: Se
|
|
813
819
|
}, [
|
|
814
|
-
(d(!0), y(Ce, null,
|
|
820
|
+
(d(!0), y(Ce, null, Me(j.value, (l, a) => (d(), y("span", {
|
|
815
821
|
role: "button",
|
|
816
822
|
tabindex: a < j.value.length - 1 ? 0 : void 0,
|
|
817
823
|
key: l.id || "root",
|
|
818
824
|
onClick: (p) => a === j.value.length - 1 ? () => {
|
|
819
825
|
} : fe(l.node),
|
|
820
826
|
onKeydown: [
|
|
821
|
-
|
|
822
|
-
|
|
827
|
+
kt(Be((p) => a === j.value.length - 1 ? void 0 : fe(l.node), ["prevent"]), ["enter"]),
|
|
828
|
+
kt(Be((p) => a === j.value.length - 1 ? void 0 : fe(l.node), ["prevent"]), ["space"])
|
|
823
829
|
],
|
|
824
830
|
class: "vue-ui-treemap-crumb",
|
|
825
831
|
"data-last-crumb": a === j.value.length - 1,
|
|
826
832
|
style: M({
|
|
827
833
|
color: e.value.style.chart.color
|
|
828
834
|
}),
|
|
829
|
-
onMouseenter: (p) =>
|
|
830
|
-
onMouseleave:
|
|
831
|
-
onFocus: (p) =>
|
|
832
|
-
onBlur:
|
|
835
|
+
onMouseenter: (p) => ft(a),
|
|
836
|
+
onMouseleave: gt,
|
|
837
|
+
onFocus: (p) => ft(a),
|
|
838
|
+
onBlur: gt
|
|
833
839
|
}, [
|
|
834
|
-
O("span",
|
|
835
|
-
O("span",
|
|
836
|
-
C(t.$slots, "breadcrumb-label",
|
|
837
|
-
a === 0 ? (d(), y("div",
|
|
838
|
-
we(
|
|
840
|
+
O("span", Al, [
|
|
841
|
+
O("span", Sl, [
|
|
842
|
+
C(t.$slots, "breadcrumb-label", Ve({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ye.value === a }), () => [
|
|
843
|
+
a === 0 ? (d(), y("div", Il, [
|
|
844
|
+
we(_t, {
|
|
839
845
|
name: ye.value === 0 ? "homeFilled" : "home",
|
|
840
846
|
stroke: e.value.style.chart.color
|
|
841
847
|
}, null, 8, ["name", "stroke"])
|
|
@@ -844,27 +850,27 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
844
850
|
], 64))
|
|
845
851
|
], !0)
|
|
846
852
|
]),
|
|
847
|
-
a < j.value.length - 1 ? (d(), y("span",
|
|
853
|
+
a < j.value.length - 1 ? (d(), y("span", Fl, [
|
|
848
854
|
C(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
849
|
-
o[
|
|
855
|
+
o[4] || (o[4] = $e(" › ", -1))
|
|
850
856
|
], !0)
|
|
851
857
|
])) : _("", !0)
|
|
852
858
|
])
|
|
853
|
-
], 44,
|
|
859
|
+
], 44, Ol))), 128))
|
|
854
860
|
], 512)) : _("", !0),
|
|
855
861
|
(d(), y("svg", {
|
|
856
862
|
ref_key: "svgRef",
|
|
857
|
-
ref:
|
|
858
|
-
xmlns: c(
|
|
859
|
-
class:
|
|
863
|
+
ref: Ke,
|
|
864
|
+
xmlns: c(ll),
|
|
865
|
+
class: Le({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value, "vue-data-ui-zoom-plus": !ee.value, "vue-data-ui-zoom-minus": ee.value, loading: c(re) }),
|
|
860
866
|
viewBox: `${se.value.startX} ${se.value.startY} ${se.value.width <= 0 ? 10 : se.value.width} ${se.value.height <= 0 ? 10 : se.value.height}`,
|
|
861
867
|
style: M(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
862
868
|
}, [
|
|
863
869
|
we(c(f)),
|
|
864
|
-
(d(!0), y(Ce, null,
|
|
870
|
+
(d(!0), y(Ce, null, Me(ce.value, (l, a) => (d(), y("g", {
|
|
865
871
|
key: `tgrad_${l.id}`
|
|
866
872
|
}, [
|
|
867
|
-
e.value.style.chart.layout.rects.gradient.show ? (d(), y("defs",
|
|
873
|
+
e.value.style.chart.layout.rects.gradient.show ? (d(), y("defs", Nl, [
|
|
868
874
|
O("radialGradient", {
|
|
869
875
|
id: `tgrad_${l.id}`,
|
|
870
876
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -875,52 +881,52 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
875
881
|
}, null, 8, Pl),
|
|
876
882
|
O("stop", {
|
|
877
883
|
offset: "100%",
|
|
878
|
-
"stop-color": c(
|
|
884
|
+
"stop-color": c(Ct)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
879
885
|
}, null, 8, zl)
|
|
880
|
-
], 8,
|
|
886
|
+
], 8, Rl)
|
|
881
887
|
])) : _("", !0)
|
|
882
888
|
]))), 128)),
|
|
883
|
-
(d(!0), y(Ce, null,
|
|
889
|
+
(d(!0), y(Ce, null, Me(ce.value, (l, a) => (d(), y("g", {
|
|
884
890
|
key: `k_${l.id}`
|
|
885
891
|
}, [
|
|
886
892
|
O("rect", {
|
|
887
893
|
x: l.x0,
|
|
888
894
|
y: l.y0,
|
|
889
|
-
height:
|
|
890
|
-
width:
|
|
895
|
+
height: rt(l),
|
|
896
|
+
width: it(l),
|
|
891
897
|
fill: B.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
892
898
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
893
899
|
stroke: L.value && L.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
894
900
|
"stroke-width": L.value && L.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
895
|
-
onClick:
|
|
896
|
-
onMouseenter: () =>
|
|
901
|
+
onClick: Be((p) => fe(l, a), ["stop"]),
|
|
902
|
+
onMouseenter: () => Vt({
|
|
897
903
|
datapoint: l,
|
|
898
904
|
seriesIndex: a
|
|
899
905
|
}),
|
|
900
|
-
onMouseleave: (p) =>
|
|
906
|
+
onMouseleave: (p) => Bt({ datapoint: l, seriesIndex: a }),
|
|
901
907
|
style: M(`opacity:${L.value ? L.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
902
|
-
class:
|
|
908
|
+
class: Le([
|
|
903
909
|
"vue-ui-treemap-rect",
|
|
904
|
-
|
|
910
|
+
Lt(l) ? "vue-data-ui-zoom-plus" : ee.value ? "vue-data-ui-zoom-minus" : ""
|
|
905
911
|
])
|
|
906
|
-
}, null, 46,
|
|
912
|
+
}, null, 46, Ll),
|
|
907
913
|
(d(), y("foreignObject", {
|
|
908
914
|
x: l.x0,
|
|
909
915
|
y: l.y0,
|
|
910
|
-
height:
|
|
911
|
-
width:
|
|
916
|
+
height: rt(l),
|
|
917
|
+
width: it(l),
|
|
912
918
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
913
919
|
}, [
|
|
914
|
-
O("div",
|
|
920
|
+
O("div", Bl, [
|
|
915
921
|
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || ee.value) ? (d(), y("div", {
|
|
916
922
|
key: 0,
|
|
917
923
|
class: "vue-ui-treemap-cell-default",
|
|
918
|
-
style: M(`width:calc(100% - ${Q(l) / 1.5}px);text-align:left;line-height:${Q(l) < 14 ? 14 : Q(l)}px;padding:${Q(l) / 3}px; color:${c(
|
|
924
|
+
style: M(`width:calc(100% - ${Q(l) / 1.5}px);text-align:left;line-height:${Q(l) < 14 ? 14 : Q(l)}px;padding:${Q(l) / 3}px; color:${c($t)(l.color)}`)
|
|
919
925
|
}, [
|
|
920
926
|
O("span", {
|
|
921
927
|
style: M(`width:100%;font-size:${Q(l)}px;`)
|
|
922
928
|
}, H(l.name), 5),
|
|
923
|
-
o[
|
|
929
|
+
o[5] || (o[5] = O("br", null, null, -1)),
|
|
924
930
|
O("span", {
|
|
925
931
|
style: M(`width:100%;font-size:${Q(l)}px;`)
|
|
926
932
|
}, H(c(xe)(
|
|
@@ -935,7 +941,7 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
935
941
|
{ datapoint: l }
|
|
936
942
|
)), 5)
|
|
937
943
|
], 4)) : _("", !0),
|
|
938
|
-
c(re) ? _("", !0) : C(t.$slots, "rect",
|
|
944
|
+
c(re) ? _("", !0) : C(t.$slots, "rect", Ve({
|
|
939
945
|
key: 1,
|
|
940
946
|
ref_for: !0
|
|
941
947
|
}, {
|
|
@@ -943,39 +949,39 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
943
949
|
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || ee.value,
|
|
944
950
|
fontSize: Q(l),
|
|
945
951
|
isZoom: ee.value,
|
|
946
|
-
textColor: c(
|
|
952
|
+
textColor: c($t)(l.color)
|
|
947
953
|
}), void 0, !0)
|
|
948
954
|
])
|
|
949
|
-
], 8,
|
|
955
|
+
], 8, Ml))
|
|
950
956
|
]))), 128)),
|
|
951
957
|
C(t.$slots, "svg", le(oe({ svg: J.value, isZoom: ee.value, rect: L.value, config: e.value })), void 0, !0)
|
|
952
|
-
], 14,
|
|
953
|
-
t.$slots.watermark ? (d(), y("div",
|
|
954
|
-
C(t.$slots, "watermark", le(oe({ isPrinting: c(
|
|
958
|
+
], 14, Dl)),
|
|
959
|
+
t.$slots.watermark ? (d(), y("div", Vl, [
|
|
960
|
+
C(t.$slots, "watermark", le(oe({ isPrinting: c(Je) || c(Qe) })), void 0, !0)
|
|
955
961
|
])) : _("", !0),
|
|
956
962
|
O("div", {
|
|
957
963
|
id: `legend-bottom-${A.value}`
|
|
958
|
-
}, null, 8,
|
|
959
|
-
|
|
964
|
+
}, null, 8, El),
|
|
965
|
+
Ye.value ? (d(), Z(qt, {
|
|
960
966
|
key: 6,
|
|
961
967
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
962
968
|
}, [
|
|
963
969
|
O("div", {
|
|
964
970
|
ref_key: "chartLegend",
|
|
965
|
-
ref:
|
|
971
|
+
ref: We
|
|
966
972
|
}, [
|
|
967
|
-
e.value.style.chart.legend.show ? (d(), Z(
|
|
973
|
+
e.value.style.chart.legend.show ? (d(), Z(fl, {
|
|
968
974
|
key: `legend_${Ae.value}`,
|
|
969
|
-
legendSet:
|
|
970
|
-
config:
|
|
975
|
+
legendSet: vt.value,
|
|
976
|
+
config: Mt.value,
|
|
971
977
|
id: `treemap_legend_${A.value}`,
|
|
972
|
-
onClickMarker: o[0] || (o[0] = ({ legend: l }) =>
|
|
978
|
+
onClickMarker: o[0] || (o[0] = ({ legend: l }) => dt(l))
|
|
973
979
|
}, {
|
|
974
980
|
item: T(({ legend: l, index: a }) => [
|
|
975
981
|
c(re) ? _("", !0) : (d(), y("div", {
|
|
976
982
|
key: 0,
|
|
977
|
-
onClick: (p) =>
|
|
978
|
-
style: M(`opacity:${
|
|
983
|
+
onClick: (p) => dt(l),
|
|
984
|
+
style: M(`opacity:${z.value.includes(l.id) ? 0.5 : 1}`)
|
|
979
985
|
}, H(l.name) + H(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + H(e.value.style.chart.legend.showValue ? c(xe)(
|
|
980
986
|
e.value.style.chart.layout.labels.formatter,
|
|
981
987
|
l.value,
|
|
@@ -986,25 +992,25 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
986
992
|
r: e.value.style.chart.legend.roundingValue
|
|
987
993
|
}),
|
|
988
994
|
{ datapoint: l }
|
|
989
|
-
) : "") + " " + H(e.value.style.chart.legend.showPercentage ?
|
|
995
|
+
) : "") + " " + H(e.value.style.chart.legend.showPercentage ? z.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, Ul))
|
|
990
996
|
]),
|
|
991
997
|
_: 1
|
|
992
998
|
}, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
|
|
993
999
|
key: 1,
|
|
994
|
-
legend:
|
|
1000
|
+
legend: vt.value
|
|
995
1001
|
}, void 0, !0)
|
|
996
1002
|
], 512)
|
|
997
1003
|
], 8, ["to"])) : _("", !0),
|
|
998
1004
|
t.$slots.source ? (d(), y("div", {
|
|
999
1005
|
key: 7,
|
|
1000
1006
|
ref_key: "source",
|
|
1001
|
-
ref:
|
|
1007
|
+
ref: Ge,
|
|
1002
1008
|
dir: "auto"
|
|
1003
1009
|
}, [
|
|
1004
1010
|
C(t.$slots, "source", {}, void 0, !0)
|
|
1005
1011
|
], 512)) : _("", !0),
|
|
1006
1012
|
we(c(v), {
|
|
1007
|
-
show:
|
|
1013
|
+
show: D.value.showTooltip && N.value,
|
|
1008
1014
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1009
1015
|
color: e.value.style.chart.tooltip.color,
|
|
1010
1016
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1017,23 +1023,23 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1017
1023
|
parent: V.value,
|
|
1018
1024
|
content: _e.value,
|
|
1019
1025
|
isFullscreen: K.value,
|
|
1020
|
-
isCustom: c(
|
|
1026
|
+
isCustom: c(Tt)(e.value.style.chart.tooltip.customFormat),
|
|
1021
1027
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1022
1028
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
1023
1029
|
}, {
|
|
1024
1030
|
"tooltip-before": T(() => [
|
|
1025
|
-
C(t.$slots, "tooltip-before", le(oe({ ...
|
|
1031
|
+
C(t.$slots, "tooltip-before", le(oe({ ...Re.value })), void 0, !0)
|
|
1026
1032
|
]),
|
|
1027
1033
|
"tooltip-after": T(() => [
|
|
1028
|
-
C(t.$slots, "tooltip-after", le(oe({ ...
|
|
1034
|
+
C(t.$slots, "tooltip-after", le(oe({ ...Re.value })), void 0, !0)
|
|
1029
1035
|
]),
|
|
1030
1036
|
_: 3
|
|
1031
1037
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1032
|
-
|
|
1038
|
+
F.value ? (d(), Z(Yt(ve.value.component), Ve({ key: 8 }, ve.value.props, {
|
|
1033
1039
|
ref_key: "tableUnit",
|
|
1034
1040
|
ref: ue,
|
|
1035
|
-
onClose:
|
|
1036
|
-
}),
|
|
1041
|
+
onClose: mt
|
|
1042
|
+
}), bt({
|
|
1037
1043
|
content: T(() => [
|
|
1038
1044
|
(d(), Z(c(i), {
|
|
1039
1045
|
key: `table_${Oe.value}`,
|
|
@@ -1043,13 +1049,13 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1043
1049
|
config: ge.value.config,
|
|
1044
1050
|
title: e.value.table.useDialog ? "" : ve.value.title,
|
|
1045
1051
|
withCloseButton: !e.value.table.useDialog,
|
|
1046
|
-
onClose:
|
|
1052
|
+
onClose: mt
|
|
1047
1053
|
}, {
|
|
1048
1054
|
th: T(({ th: l }) => [
|
|
1049
1055
|
O("div", {
|
|
1050
1056
|
innerHTML: l,
|
|
1051
1057
|
style: { display: "flex", "align-items": "center" }
|
|
1052
|
-
}, null, 8,
|
|
1058
|
+
}, null, 8, Hl)
|
|
1053
1059
|
]),
|
|
1054
1060
|
td: T(({ td: l }) => [
|
|
1055
1061
|
$e(H(l.name || l), 1)
|
|
@@ -1072,9 +1078,9 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1072
1078
|
O("button", {
|
|
1073
1079
|
tabindex: "0",
|
|
1074
1080
|
class: "vue-ui-user-options-button",
|
|
1075
|
-
onClick: o[1] || (o[1] = (l) =>
|
|
1081
|
+
onClick: o[1] || (o[1] = (l) => Pe(e.value.userOptions.callbacks.csv))
|
|
1076
1082
|
}, [
|
|
1077
|
-
we(
|
|
1083
|
+
we(_t, {
|
|
1078
1084
|
name: "excel",
|
|
1079
1085
|
stroke: ve.value.props.color
|
|
1080
1086
|
}, null, 8, ["stroke"])
|
|
@@ -1083,10 +1089,10 @@ const $l = ["id"], Tl = ["id"], xl = ["tabindex", "onClick", "onKeydown", "data-
|
|
|
1083
1089
|
key: "1"
|
|
1084
1090
|
} : void 0
|
|
1085
1091
|
]), 1040)) : _("", !0),
|
|
1086
|
-
c(re) ? (d(), Z(
|
|
1087
|
-
], 46,
|
|
1092
|
+
c(re) ? (d(), Z(il, { key: 9 })) : _("", !0)
|
|
1093
|
+
], 46, xl));
|
|
1088
1094
|
}
|
|
1089
|
-
},
|
|
1095
|
+
}, ao = /* @__PURE__ */ gl(Wl, [["__scopeId", "data-v-d46b680a"]]);
|
|
1090
1096
|
export {
|
|
1091
|
-
|
|
1097
|
+
ao as default
|
|
1092
1098
|
};
|