vue-data-ui 3.0.23 → 3.1.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/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -1,1046 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as se, useSlots as Mt, onMounted as vt, computed as k, ref as y, shallowRef as E, toRefs as Vt, watch as Se, onBeforeUnmount as Dt, createElementBlock as m, openBlock as v, unref as r, normalizeStyle as V, normalizeClass as Ie, createBlock as j, createCommentVNode as x, createElementVNode as O, createVNode as Fe, createSlots as Bt, withCtx as A, renderSlot as C, normalizeProps as ee, guardReactiveProps as te, Fragment as me, renderList as Ne, withKeys as ht, withModifiers as ze, mergeProps as pt, createTextVNode as Pe, toDisplayString as Z, Teleport as Et, nextTick as Ht } from "vue";
|
|
2
|
-
import { u as Ut, c as be, t as Wt, a as Gt, p as I, b as Xt, d as qt, o as ft, f as Yt, e as ce, k as we, i as de, X as jt, l as gt, F as yt, y as mt, v as Zt, w as Kt, z as Jt } from "./index-BEuUtONc.js";
|
|
3
|
-
import { t as Qt, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as bt } from "./useNestedProp-DhLFhguL.js";
|
|
5
|
-
import { u as tl } from "./usePrinter-DiB0_UNt.js";
|
|
6
|
-
import { u as ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as ol } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import al from "./BaseIcon-CgUOIGjr.js";
|
|
9
|
-
import nl from "./Title-D_e0SFWS.js";
|
|
10
|
-
import sl from "./Legend-CyYXMSsW.js";
|
|
11
|
-
import ul from "./img-z5p1gGfY.js";
|
|
12
|
-
import { u as rl, B as il } from "./useLoading-D7YHNtLX.js";
|
|
13
|
-
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
function wt(n, i) {
|
|
15
|
-
const s = n.length;
|
|
16
|
-
if (s === 0)
|
|
17
|
-
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
18
|
-
{
|
|
19
|
-
let c = 1 / 0, u = -1 / 0, h = 0;
|
|
20
|
-
for (let g = 0; g < s; g += 1) {
|
|
21
|
-
const f = n[g].normalizedValue;
|
|
22
|
-
f < c && (c = f), f > u && (u = f), h += f;
|
|
23
|
-
}
|
|
24
|
-
return Math.max(
|
|
25
|
-
i ** 2 * u / h ** 2,
|
|
26
|
-
h ** 2 / (i ** 2 * c)
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function kt(n) {
|
|
31
|
-
const { xOffset: i, yOffset: s, width: c, height: u } = n;
|
|
32
|
-
return {
|
|
33
|
-
x0: i,
|
|
34
|
-
y0: s,
|
|
35
|
-
x1: i + c,
|
|
36
|
-
y1: s + u
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function dl(n, i, s) {
|
|
40
|
-
if (n.length === 0)
|
|
41
|
-
return !0;
|
|
42
|
-
{
|
|
43
|
-
const c = n.concat(i), u = wt(
|
|
44
|
-
n,
|
|
45
|
-
s
|
|
46
|
-
), h = wt(c, s);
|
|
47
|
-
return u >= h;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function vl(n) {
|
|
51
|
-
const i = [], s = n.length;
|
|
52
|
-
for (let c = 0; c < s; c += 1) {
|
|
53
|
-
const u = n[c], h = u.length;
|
|
54
|
-
for (let d = 0; d < h; d += 1)
|
|
55
|
-
i.push(u[d]);
|
|
56
|
-
}
|
|
57
|
-
return i;
|
|
58
|
-
}
|
|
59
|
-
function hl(n, i) {
|
|
60
|
-
const s = {
|
|
61
|
-
...i,
|
|
62
|
-
children: n
|
|
63
|
-
};
|
|
64
|
-
return $t(s);
|
|
65
|
-
}
|
|
66
|
-
function pl(n) {
|
|
67
|
-
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
68
|
-
}
|
|
69
|
-
function Ct(n, i) {
|
|
70
|
-
const { width: s, height: c, xOffset: u, yOffset: h } = Re(i), d = n.length, g = n.map((w) => w.normalizedValue || 0).reduce((w, N) => w + N, 0), f = g / c, H = g / s;
|
|
71
|
-
let b = u, S = h;
|
|
72
|
-
const F = [];
|
|
73
|
-
if (s >= c) {
|
|
74
|
-
for (let w = 0; w < d; w += 1) {
|
|
75
|
-
const N = n[w], $ = S + N.normalizedValue / f, D = {
|
|
76
|
-
x0: b,
|
|
77
|
-
y0: S,
|
|
78
|
-
x1: b + f,
|
|
79
|
-
y1: $
|
|
80
|
-
}, z = Object.assign({}, N, D);
|
|
81
|
-
S = $, F.push(z);
|
|
82
|
-
}
|
|
83
|
-
return F;
|
|
84
|
-
} else {
|
|
85
|
-
for (let w = 0; w < d; w += 1) {
|
|
86
|
-
const N = n[w], $ = b + N.normalizedValue / H, D = {
|
|
87
|
-
x0: b,
|
|
88
|
-
y0: S,
|
|
89
|
-
x1: $,
|
|
90
|
-
y1: S + H
|
|
91
|
-
}, z = Object.assign({}, N, D);
|
|
92
|
-
b = $, F.push(z);
|
|
93
|
-
}
|
|
94
|
-
return F;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function fl(n) {
|
|
98
|
-
const i = Re(n), s = i.width, c = i.height;
|
|
99
|
-
return Math.min(s, c);
|
|
100
|
-
}
|
|
101
|
-
function gl(n, i) {
|
|
102
|
-
const s = n.length, c = n.map((f) => f.value ?? 0).reduce((f, H) => f + H, 0), u = i / c, h = [];
|
|
103
|
-
let d, g;
|
|
104
|
-
for (let f = 0; f < s; f += 1)
|
|
105
|
-
g = n[f], d = Object.assign({}, g, {
|
|
106
|
-
normalizedValue: g.value * (u || 0)
|
|
107
|
-
}), h.push(d);
|
|
108
|
-
return h;
|
|
109
|
-
}
|
|
110
|
-
function Re(n) {
|
|
111
|
-
const { x0: i, y0: s, x1: c, y1: u } = n;
|
|
112
|
-
return {
|
|
113
|
-
xOffset: i,
|
|
114
|
-
yOffset: s,
|
|
115
|
-
width: c - i,
|
|
116
|
-
height: u - s
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
function yl(n, i, s, c) {
|
|
120
|
-
let u = n, h = i, d = s, g = c;
|
|
121
|
-
for (; ; ) {
|
|
122
|
-
const f = u.length;
|
|
123
|
-
if (f === 0) {
|
|
124
|
-
const F = Ct(h, d);
|
|
125
|
-
return g.concat(F);
|
|
126
|
-
}
|
|
127
|
-
const H = fl(d), b = u[0], S = u.slice(1, f);
|
|
128
|
-
if (dl(h, b, H)) {
|
|
129
|
-
const F = h.concat(b);
|
|
130
|
-
u = S, h = F, d = d, g = g;
|
|
131
|
-
} else {
|
|
132
|
-
const F = h.length;
|
|
133
|
-
let w = 0;
|
|
134
|
-
for (let z = 0; z < F; z += 1)
|
|
135
|
-
w += h[z].normalizedValue;
|
|
136
|
-
const N = ml(d, w), $ = Ct(h, d), D = g.concat($);
|
|
137
|
-
u = u, h = [], d = N, g = D;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function $t(n) {
|
|
142
|
-
if (typeof n.children > "u" || !n.children.length)
|
|
143
|
-
return [n];
|
|
144
|
-
{
|
|
145
|
-
const i = gl(
|
|
146
|
-
n.children,
|
|
147
|
-
pl(n)
|
|
148
|
-
), s = yl(i, [], n, []), c = s.length, u = [];
|
|
149
|
-
for (let d = 0; d < c; d += 1)
|
|
150
|
-
u.push($t(s[d]));
|
|
151
|
-
return vl(u);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
function ml(n, i) {
|
|
155
|
-
const { width: s, height: c, xOffset: u, yOffset: h } = Re(n);
|
|
156
|
-
if (s >= c) {
|
|
157
|
-
const d = i / c, g = s - d, f = {
|
|
158
|
-
xOffset: u + d,
|
|
159
|
-
yOffset: h,
|
|
160
|
-
width: g,
|
|
161
|
-
height: c
|
|
162
|
-
};
|
|
163
|
-
return kt(f);
|
|
164
|
-
} else {
|
|
165
|
-
const d = i / s, g = c - d, f = {
|
|
166
|
-
xOffset: u,
|
|
167
|
-
yOffset: h + d,
|
|
168
|
-
width: s,
|
|
169
|
-
height: g
|
|
170
|
-
};
|
|
171
|
-
return kt(f);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
const bl = ["id"], wl = ["id"], kl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], Cl = { class: "vue-ui-treemap-crumb-unit" }, $l = { class: "vue-ui-treemap-crumb-unit-label" }, Tl = {
|
|
175
|
-
key: 0,
|
|
176
|
-
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
177
|
-
}, xl = {
|
|
178
|
-
key: 0,
|
|
179
|
-
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
180
|
-
}, _l = ["xmlns", "viewBox"], Ol = { key: 0 }, Al = ["id"], Sl = ["stop-color"], Il = ["stop-color"], Fl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], Nl = ["x", "y", "height", "width"], zl = {
|
|
181
|
-
style: { width: "100%", height: "100%" },
|
|
182
|
-
class: "vue-ui-treemap-cell"
|
|
183
|
-
}, Pl = {
|
|
184
|
-
key: 5,
|
|
185
|
-
class: "vue-data-ui-watermark"
|
|
186
|
-
}, Rl = ["id"], Ll = ["onClick"], Ml = ["innerHTML"], Vl = {
|
|
187
|
-
__name: "vue-ui-treemap",
|
|
188
|
-
props: {
|
|
189
|
-
config: {
|
|
190
|
-
type: Object,
|
|
191
|
-
default() {
|
|
192
|
-
return {};
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
dataset: {
|
|
196
|
-
type: Array,
|
|
197
|
-
default() {
|
|
198
|
-
return [];
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
203
|
-
setup(n, { expose: i, emit: s }) {
|
|
204
|
-
const c = se(() => import("./DataTable-nO6ydJO2.js")), u = se(() => import("./PenAndPaper-zym5uEeN.js")), h = se(() => import("./vue-ui-accordion-B4YfUjZ5.js")), d = se(() => import("./Tooltip-DjVoFYj1.js")), g = se(() => import("./UserOptions-z0NWZ7aQ.js")), f = se(() => import("./PackageVersion-B6M-3jRt.js")), { vue_ui_treemap: H } = Ut(), b = n, S = s, F = Mt();
|
|
205
|
-
vt(() => {
|
|
206
|
-
F["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
207
|
-
});
|
|
208
|
-
const w = k(() => !!b.dataset && b.dataset.length), N = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), $ = y(be()), D = y(!1), z = y(""), le = y(!1), Le = y(0), L = y([]), U = E(null), Me = E(null), Ve = E(null), De = E(null), Be = E(null), Ee = y(0), ke = y(0), Ce = y(0), T = y([]), $e = y(null), He = y(!1), e = y(_e()), { loading: ue, FINAL_DATASET: Te, manualLoading: Tt } = rl({
|
|
209
|
-
...Vt(b),
|
|
210
|
-
FINAL_CONFIG: e,
|
|
211
|
-
prepareConfig: _e,
|
|
212
|
-
skeletonDataset: [
|
|
213
|
-
{
|
|
214
|
-
name: "_",
|
|
215
|
-
value: 53,
|
|
216
|
-
color: "#CACACA90",
|
|
217
|
-
children: [
|
|
218
|
-
{ name: "_", value: 21 },
|
|
219
|
-
{ name: "_", value: 13 },
|
|
220
|
-
{ name: "_", value: 8 },
|
|
221
|
-
{ name: "_", value: 5 },
|
|
222
|
-
{ name: "_", value: 3 },
|
|
223
|
-
{ name: "_", value: 2 },
|
|
224
|
-
{ name: "_", value: 1 }
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
skeletonConfig: Wt({
|
|
229
|
-
defaultConfig: e.value,
|
|
230
|
-
userConfig: {
|
|
231
|
-
userOptions: { show: !1 },
|
|
232
|
-
style: {
|
|
233
|
-
chart: {
|
|
234
|
-
backgroundColor: "#999999",
|
|
235
|
-
layout: {
|
|
236
|
-
labels: {
|
|
237
|
-
showDefaultLabels: !1
|
|
238
|
-
},
|
|
239
|
-
rects: {
|
|
240
|
-
stroke: "#6A6A6A"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
legend: {
|
|
244
|
-
backgroundColor: "transparent"
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
})
|
|
250
|
-
}), { userOptionsVisible: xe, setUserOptionsVisibility: Ue, keepUserOptionState: We } = ll({ config: e.value }), { svgRef: Ge } = ol({ config: e.value.style.chart.title });
|
|
251
|
-
function _e() {
|
|
252
|
-
const t = bt({
|
|
253
|
-
userConfig: b.config,
|
|
254
|
-
defaultConfig: H
|
|
255
|
-
});
|
|
256
|
-
return t.theme ? {
|
|
257
|
-
...bt({
|
|
258
|
-
userConfig: Xt.vue_ui_treemap[t.theme] || b.config,
|
|
259
|
-
defaultConfig: t
|
|
260
|
-
}),
|
|
261
|
-
customPalette: Gt[t.theme] || I
|
|
262
|
-
} : t;
|
|
263
|
-
}
|
|
264
|
-
Se(() => b.config, (t) => {
|
|
265
|
-
ue.value || (e.value = _e()), xe.value = !e.value.userOptions.showOnChartHover, Ee.value += 1, ke.value += 1, Ce.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
266
|
-
}, { deep: !0 });
|
|
267
|
-
const { isPrinting: Xe, isImaging: qe, generatePdf: Ye, generateImage: je } = tl({
|
|
268
|
-
elementId: `treemap_${$.value}`,
|
|
269
|
-
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
270
|
-
options: e.value.userOptions.print
|
|
271
|
-
}), xt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), ve = k(() => qt(e.value.customPalette)), P = y({
|
|
272
|
-
showTable: e.value.table.show,
|
|
273
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
274
|
-
});
|
|
275
|
-
Se(e, () => {
|
|
276
|
-
P.value = {
|
|
277
|
-
showTable: e.value.table.show,
|
|
278
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
279
|
-
};
|
|
280
|
-
}, { immediate: !0 });
|
|
281
|
-
const W = y({
|
|
282
|
-
height: e.value.style.chart.height,
|
|
283
|
-
width: e.value.style.chart.width
|
|
284
|
-
}), K = k(() => ({
|
|
285
|
-
bottom: W.value.height - e.value.style.chart.padding.bottom,
|
|
286
|
-
height: W.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
287
|
-
left: e.value.style.chart.padding.left,
|
|
288
|
-
right: W.value.width - e.value.style.chart.padding.right,
|
|
289
|
-
top: e.value.style.chart.padding.top,
|
|
290
|
-
vbHeight: W.value.height,
|
|
291
|
-
vbWidth: W.value.width,
|
|
292
|
-
width: W.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
293
|
-
})), R = y(Te.value), G = y(R.value), Ze = E(/* @__PURE__ */ new Map());
|
|
294
|
-
function Ke(t) {
|
|
295
|
-
Array.isArray(t) && t.forEach((o, l) => {
|
|
296
|
-
o.id || (o.id = be());
|
|
297
|
-
let a = ce(o.color) || Ze.value.get(o.id) || ve.value[l] || I[l] || I[l % I.length];
|
|
298
|
-
a = ce(a), Ze.value.set(o.id, a), o.color = a, Je(o, a);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
function Je(t, o) {
|
|
302
|
-
Array.isArray(t.children) && t.children.forEach((l) => {
|
|
303
|
-
l.id || (l.id = be()), l.parentId = t.id, l.color = o, Je(l, o);
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
function _t() {
|
|
307
|
-
if (!T.value.length)
|
|
308
|
-
G.value = R.value.slice();
|
|
309
|
-
else {
|
|
310
|
-
const t = T.value[T.value.length - 1], o = q(t);
|
|
311
|
-
G.value = o?.children?.slice() || [];
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
Se(
|
|
315
|
-
() => Te.value,
|
|
316
|
-
() => {
|
|
317
|
-
R.value = Te.value, Ke(R.value), _t(), Ce.value += 1, ke.value += 1;
|
|
318
|
-
},
|
|
319
|
-
{ deep: !0, immediate: !0, flush: "post" }
|
|
320
|
-
);
|
|
321
|
-
const X = E(null), oe = E(null);
|
|
322
|
-
vt(() => {
|
|
323
|
-
He.value = !0, At();
|
|
324
|
-
});
|
|
325
|
-
const Ot = k(() => e.value.debug);
|
|
326
|
-
function At() {
|
|
327
|
-
if (ft(b.dataset) && Yt({
|
|
328
|
-
componentName: "VueUiTreemap",
|
|
329
|
-
type: "dataset",
|
|
330
|
-
debug: Ot.value
|
|
331
|
-
}), Ke(R.value), ft(b.dataset) || (Tt.value = e.value.loading), e.value.responsive) {
|
|
332
|
-
const t = Qt(() => {
|
|
333
|
-
const { width: o, height: l } = el({
|
|
334
|
-
chart: U.value,
|
|
335
|
-
title: e.value.style.chart.title.text ? Me.value : null,
|
|
336
|
-
legend: e.value.style.chart.legend.show ? Ve.value : null,
|
|
337
|
-
source: De.value,
|
|
338
|
-
noTitle: Be.value
|
|
339
|
-
});
|
|
340
|
-
requestAnimationFrame(() => {
|
|
341
|
-
W.value.width = o, W.value.height = l - 12;
|
|
342
|
-
});
|
|
343
|
-
});
|
|
344
|
-
X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect()), X.value = new ResizeObserver(t), oe.value = U.value.parentNode, X.value.observe(oe.value);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
Dt(() => {
|
|
348
|
-
X.value && (oe.value && X.value.unobserve(oe.value), X.value.disconnect());
|
|
349
|
-
});
|
|
350
|
-
const re = k(() => G.value.map((t, o) => ({
|
|
351
|
-
...t,
|
|
352
|
-
color: ce(t.color) || ve.value[o] || I[o] || I[o % I.length]
|
|
353
|
-
})).filter((t) => !L.value.includes(t.id))), ae = k(() => R.value.filter((t) => !L.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Qe = k({
|
|
354
|
-
get() {
|
|
355
|
-
let t = [...re.value];
|
|
356
|
-
return e.value.style.chart.layout.sorted && (t = [...re.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
357
|
-
...o
|
|
358
|
-
}));
|
|
359
|
-
},
|
|
360
|
-
set(t) {
|
|
361
|
-
return t;
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
function et(t, o) {
|
|
365
|
-
return t.value / o;
|
|
366
|
-
}
|
|
367
|
-
function St(t, o, l) {
|
|
368
|
-
const a = e.value.style.chart.layout.rects.colorRatio - et(o, l);
|
|
369
|
-
return gt(t, a < 0 ? 0 : a);
|
|
370
|
-
}
|
|
371
|
-
function tt(t, o, l, a) {
|
|
372
|
-
return t.map((p, _) => {
|
|
373
|
-
const ye = St(ce(o) || ve.value[_] || I[_] || I[_ % I.length], p, a), Lt = et(p, a);
|
|
374
|
-
return {
|
|
375
|
-
...p,
|
|
376
|
-
color: ye,
|
|
377
|
-
proportion: Lt,
|
|
378
|
-
parentName: l,
|
|
379
|
-
children: p.children ? tt(p.children, ye, p.name, a) : void 0
|
|
380
|
-
};
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
const ie = k(() => hl(
|
|
384
|
-
Qe.value.map((t, o) => {
|
|
385
|
-
const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
|
|
386
|
-
return {
|
|
387
|
-
value: t.value,
|
|
388
|
-
id: t.id || be(),
|
|
389
|
-
children: t.children ? tt(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
|
|
390
|
-
color: t.color,
|
|
391
|
-
name: t.name
|
|
392
|
-
};
|
|
393
|
-
}),
|
|
394
|
-
{ x0: K.value.left * 2, y0: K.value.top, x1: K.value.width, y1: K.value.height }
|
|
395
|
-
));
|
|
396
|
-
function lt({ y0: t, y1: o }) {
|
|
397
|
-
return o - t <= 0 ? 1e-4 : o - t;
|
|
398
|
-
}
|
|
399
|
-
function ot({ x0: t, x1: o }) {
|
|
400
|
-
return o - t <= 0 ? 1e-4 : o - t;
|
|
401
|
-
}
|
|
402
|
-
function J(t) {
|
|
403
|
-
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
404
|
-
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
405
|
-
}
|
|
406
|
-
function at(t) {
|
|
407
|
-
le.value = t, Le.value += 1;
|
|
408
|
-
}
|
|
409
|
-
const ne = k(() => {
|
|
410
|
-
let t = 0;
|
|
411
|
-
return $e.value && (t = $e.value.getBoundingClientRect().height), {
|
|
412
|
-
startX: 0,
|
|
413
|
-
startY: 0,
|
|
414
|
-
width: K.value.vbWidth,
|
|
415
|
-
height: K.value.vbHeight - t
|
|
416
|
-
};
|
|
417
|
-
});
|
|
418
|
-
function q(t, o = R.value) {
|
|
419
|
-
for (const l of o) {
|
|
420
|
-
if (l.id === t)
|
|
421
|
-
return l;
|
|
422
|
-
if (l.children) {
|
|
423
|
-
const a = q(t, l.children);
|
|
424
|
-
if (a)
|
|
425
|
-
return a;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
return null;
|
|
429
|
-
}
|
|
430
|
-
const Q = k(() => T.value.length > 0);
|
|
431
|
-
function he(t, o) {
|
|
432
|
-
if (!t) {
|
|
433
|
-
G.value = R.value.slice(), S("selectDatapoint", void 0), T.value = [];
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
437
|
-
const l = q(t.id);
|
|
438
|
-
if (l && l.children?.length)
|
|
439
|
-
T.value.push(l.id), G.value = l.children.slice(), S("selectDatapoint", t);
|
|
440
|
-
else if (t.parentId) {
|
|
441
|
-
T.value.push(t.parentId);
|
|
442
|
-
const a = q(t.parentId);
|
|
443
|
-
G.value = a.children.slice(), S("selectDatapoint", t);
|
|
444
|
-
} else if (T.value.length > 0) {
|
|
445
|
-
T.value.pop();
|
|
446
|
-
const a = T.value[T.value.length - 1];
|
|
447
|
-
if (a) {
|
|
448
|
-
const p = q(a);
|
|
449
|
-
G.value = p.children.slice();
|
|
450
|
-
} else
|
|
451
|
-
G.value = R.value.slice(), T.value = [], S("selectDatapoint", void 0);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function It(t) {
|
|
455
|
-
return !!(q(t.id)?.children?.length || t.parentId);
|
|
456
|
-
}
|
|
457
|
-
const Y = k(() => {
|
|
458
|
-
const t = [
|
|
459
|
-
{ id: null, label: "All" }
|
|
460
|
-
];
|
|
461
|
-
if (T.value.length > 0) {
|
|
462
|
-
let o = q(T.value[T.value.length - 1]);
|
|
463
|
-
const l = [];
|
|
464
|
-
for (; o; )
|
|
465
|
-
l.unshift(o), o = o.parentId ? q(o.parentId) : null;
|
|
466
|
-
for (const a of l)
|
|
467
|
-
t.push({
|
|
468
|
-
id: a.id,
|
|
469
|
-
label: a.name,
|
|
470
|
-
node: a
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
return t;
|
|
474
|
-
}), M = E(null), nt = k(() => R.value.map((t, o) => ({
|
|
475
|
-
...t,
|
|
476
|
-
color: ce(t.color) || ve.value[o] || I[o] || I[o % I.length],
|
|
477
|
-
shape: "square"
|
|
478
|
-
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
479
|
-
...t,
|
|
480
|
-
proportion: t.value / R.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
481
|
-
opacity: L.value.includes(t.id) ? 0.5 : 1
|
|
482
|
-
}))), Ft = k(() => ({
|
|
483
|
-
cy: "treemap-div-legend",
|
|
484
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
485
|
-
color: e.value.style.chart.legend.color,
|
|
486
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
487
|
-
paddingBottom: 12,
|
|
488
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
489
|
-
}));
|
|
490
|
-
function st(t) {
|
|
491
|
-
M.value = null, L.value.includes(t.id) ? L.value = L.value.filter((o) => o !== t.id) : L.value.length < b.dataset.length - 1 && L.value.push(t.id), S("selectLegend", Qe.value);
|
|
492
|
-
}
|
|
493
|
-
function Nt({ datapoint: t, seriesIndex: o }) {
|
|
494
|
-
M.value = null, D.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
495
|
-
}
|
|
496
|
-
const Oe = y(null);
|
|
497
|
-
function zt({ datapoint: t, seriesIndex: o }) {
|
|
498
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), M.value = t, Oe.value = { datapoint: t, seriesIndex: o, config: e.value, series: re.value };
|
|
499
|
-
const l = e.value.style.chart.tooltip.customFormat;
|
|
500
|
-
if (mt(l) && Jt(() => l({
|
|
501
|
-
seriesIndex: o,
|
|
502
|
-
datapoint: t,
|
|
503
|
-
series: re.value,
|
|
504
|
-
config: e.value
|
|
505
|
-
})))
|
|
506
|
-
z.value = l({
|
|
507
|
-
seriesIndex: o,
|
|
508
|
-
datapoint: t,
|
|
509
|
-
series: re.value,
|
|
510
|
-
config: e.value
|
|
511
|
-
});
|
|
512
|
-
else {
|
|
513
|
-
let a = "";
|
|
514
|
-
a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${t.color}"/></svg>`, a += `<b>${we(
|
|
515
|
-
e.value.style.chart.layout.labels.formatter,
|
|
516
|
-
t.value,
|
|
517
|
-
de({
|
|
518
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
519
|
-
v: t.value,
|
|
520
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
521
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
522
|
-
}),
|
|
523
|
-
{ datapoint: t, seriesIndex: o }
|
|
524
|
-
)}</b>`, z.value = `<div>${a}</div>`;
|
|
525
|
-
}
|
|
526
|
-
D.value = !0;
|
|
527
|
-
}
|
|
528
|
-
const B = k(() => {
|
|
529
|
-
const t = ie.value.map((l) => ({
|
|
530
|
-
name: l.name,
|
|
531
|
-
color: l.color
|
|
532
|
-
})), o = ie.value.map((l) => l.value);
|
|
533
|
-
return { head: t, body: o };
|
|
534
|
-
});
|
|
535
|
-
function ut(t = null) {
|
|
536
|
-
Ht(() => {
|
|
537
|
-
const o = B.value.head.map((p, _) => [[
|
|
538
|
-
p.name
|
|
539
|
-
], [B.value.body[_]], [isNaN(B.value.body[_] / ae.value) ? "-" : B.value.body[_] / ae.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Zt(l);
|
|
540
|
-
t ? t(a) : Kt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
const pe = k(() => {
|
|
544
|
-
const t = [
|
|
545
|
-
e.value.table.columnNames.series,
|
|
546
|
-
e.value.table.columnNames.value,
|
|
547
|
-
e.value.table.columnNames.percentage
|
|
548
|
-
], o = B.value.head.map((p, _) => {
|
|
549
|
-
const ye = we(
|
|
550
|
-
e.value.style.chart.layout.labels.formatter,
|
|
551
|
-
B.value.body[_],
|
|
552
|
-
de({
|
|
553
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
554
|
-
v: B.value.body[_],
|
|
555
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
556
|
-
r: e.value.table.td.roundingValue
|
|
557
|
-
})
|
|
558
|
-
);
|
|
559
|
-
return [
|
|
560
|
-
{
|
|
561
|
-
color: p.color,
|
|
562
|
-
name: p.name,
|
|
563
|
-
shape: "square"
|
|
564
|
-
},
|
|
565
|
-
ye,
|
|
566
|
-
isNaN(B.value.body[_] / ae.value) ? "-" : de({
|
|
567
|
-
v: B.value.body[_] / ae.value * 100,
|
|
568
|
-
s: "%",
|
|
569
|
-
r: e.value.table.td.roundingPercentage
|
|
570
|
-
})
|
|
571
|
-
];
|
|
572
|
-
}), l = {
|
|
573
|
-
th: {
|
|
574
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
575
|
-
color: e.value.table.th.color,
|
|
576
|
-
outline: e.value.table.th.outline
|
|
577
|
-
},
|
|
578
|
-
td: {
|
|
579
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
580
|
-
color: e.value.table.td.color,
|
|
581
|
-
outline: e.value.table.td.outline
|
|
582
|
-
},
|
|
583
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
584
|
-
};
|
|
585
|
-
return {
|
|
586
|
-
colNames: [
|
|
587
|
-
e.value.table.columnNames.series,
|
|
588
|
-
e.value.table.columnNames.value
|
|
589
|
-
],
|
|
590
|
-
head: t,
|
|
591
|
-
body: o,
|
|
592
|
-
config: l
|
|
593
|
-
};
|
|
594
|
-
});
|
|
595
|
-
function Pt() {
|
|
596
|
-
return ie.value;
|
|
597
|
-
}
|
|
598
|
-
function rt() {
|
|
599
|
-
P.value.showTable = !P.value.showTable;
|
|
600
|
-
}
|
|
601
|
-
function it() {
|
|
602
|
-
P.value.showTooltip = !P.value.showTooltip;
|
|
603
|
-
}
|
|
604
|
-
const fe = y(!1);
|
|
605
|
-
function Ae() {
|
|
606
|
-
fe.value = !fe.value;
|
|
607
|
-
}
|
|
608
|
-
const ge = y(null);
|
|
609
|
-
function ct(t) {
|
|
610
|
-
ge.value = t;
|
|
611
|
-
}
|
|
612
|
-
function dt() {
|
|
613
|
-
ge.value = null;
|
|
614
|
-
}
|
|
615
|
-
async function Rt({ scale: t = 2 } = {}) {
|
|
616
|
-
if (!U.value) return;
|
|
617
|
-
const { width: o, height: l } = U.value.getBoundingClientRect(), a = o / l, { imageUri: p, base64: _ } = await ul({ domElement: U.value, base64: !0, img: !0, scale: t });
|
|
618
|
-
return {
|
|
619
|
-
imageUri: p,
|
|
620
|
-
base64: _,
|
|
621
|
-
title: e.value.style.chart.title.text,
|
|
622
|
-
width: o,
|
|
623
|
-
height: l,
|
|
624
|
-
aspectRatio: a
|
|
625
|
-
};
|
|
626
|
-
}
|
|
627
|
-
return i({
|
|
628
|
-
getData: Pt,
|
|
629
|
-
getImage: Rt,
|
|
630
|
-
generateCsv: ut,
|
|
631
|
-
generateImage: je,
|
|
632
|
-
generatePdf: Ye,
|
|
633
|
-
toggleTable: rt,
|
|
634
|
-
toggleTooltip: it,
|
|
635
|
-
toggleAnnotator: Ae,
|
|
636
|
-
toggleFullscreen: at
|
|
637
|
-
}), (t, o) => (v(), m("div", {
|
|
638
|
-
ref_key: "treemapChart",
|
|
639
|
-
ref: U,
|
|
640
|
-
class: Ie(`vue-ui-treemap ${le.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
641
|
-
style: V(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
642
|
-
id: `treemap_${$.value}`,
|
|
643
|
-
onMouseenter: o[2] || (o[2] = () => r(Ue)(!0)),
|
|
644
|
-
onMouseleave: o[3] || (o[3] = () => r(Ue)(!1))
|
|
645
|
-
}, [
|
|
646
|
-
e.value.userOptions.buttons.annotator ? (v(), j(r(u), {
|
|
647
|
-
key: 0,
|
|
648
|
-
svgRef: r(Ge),
|
|
649
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
650
|
-
color: e.value.style.chart.color,
|
|
651
|
-
active: fe.value,
|
|
652
|
-
onClose: Ae
|
|
653
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
|
|
654
|
-
xt.value ? (v(), m("div", {
|
|
655
|
-
key: 1,
|
|
656
|
-
ref_key: "noTitle",
|
|
657
|
-
ref: Be,
|
|
658
|
-
class: "vue-data-ui-no-title-space",
|
|
659
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
660
|
-
}, null, 512)) : x("", !0),
|
|
661
|
-
e.value.style.chart.title.text ? (v(), m("div", {
|
|
662
|
-
key: 2,
|
|
663
|
-
ref_key: "chartTitle",
|
|
664
|
-
ref: Me,
|
|
665
|
-
style: V(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
666
|
-
}, [
|
|
667
|
-
(v(), j(nl, {
|
|
668
|
-
key: `title_${Ee.value}`,
|
|
669
|
-
config: {
|
|
670
|
-
title: {
|
|
671
|
-
cy: "treemap-div-title",
|
|
672
|
-
...e.value.style.chart.title
|
|
673
|
-
},
|
|
674
|
-
subtitle: {
|
|
675
|
-
cy: "treemap-div-subtitle",
|
|
676
|
-
...e.value.style.chart.title.subtitle
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}, null, 8, ["config"]))
|
|
680
|
-
], 4)) : x("", !0),
|
|
681
|
-
O("div", {
|
|
682
|
-
id: `legend-top-${$.value}`
|
|
683
|
-
}, null, 8, wl),
|
|
684
|
-
e.value.userOptions.show && w.value && (r(We) || r(xe)) ? (v(), j(r(g), {
|
|
685
|
-
ref: "details",
|
|
686
|
-
key: `user_option_${Le.value}`,
|
|
687
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
688
|
-
color: e.value.style.chart.color,
|
|
689
|
-
isPrinting: r(Xe),
|
|
690
|
-
isImaging: r(qe),
|
|
691
|
-
uid: $.value,
|
|
692
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
693
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
694
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
695
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
696
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
697
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
698
|
-
isFullscreen: le.value,
|
|
699
|
-
isTooltip: P.value.showTooltip,
|
|
700
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
701
|
-
chartElement: U.value,
|
|
702
|
-
position: e.value.userOptions.position,
|
|
703
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
704
|
-
isAnnotation: fe.value,
|
|
705
|
-
callbacks: e.value.userOptions.callbacks,
|
|
706
|
-
printScale: e.value.userOptions.print.scale,
|
|
707
|
-
onToggleFullscreen: at,
|
|
708
|
-
onGeneratePdf: r(Ye),
|
|
709
|
-
onGenerateCsv: ut,
|
|
710
|
-
onGenerateImage: r(je),
|
|
711
|
-
onToggleTable: rt,
|
|
712
|
-
onToggleTooltip: it,
|
|
713
|
-
onToggleAnnotator: Ae,
|
|
714
|
-
style: V({
|
|
715
|
-
visibility: r(We) ? r(xe) ? "visible" : "hidden" : "visible"
|
|
716
|
-
})
|
|
717
|
-
}, Bt({ _: 2 }, [
|
|
718
|
-
t.$slots.menuIcon ? {
|
|
719
|
-
name: "menuIcon",
|
|
720
|
-
fn: A(({ isOpen: l, color: a }) => [
|
|
721
|
-
C(t.$slots, "menuIcon", ee(te({ isOpen: l, color: a })), void 0, !0)
|
|
722
|
-
]),
|
|
723
|
-
key: "0"
|
|
724
|
-
} : void 0,
|
|
725
|
-
t.$slots.optionTooltip ? {
|
|
726
|
-
name: "optionTooltip",
|
|
727
|
-
fn: A(() => [
|
|
728
|
-
C(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
729
|
-
]),
|
|
730
|
-
key: "1"
|
|
731
|
-
} : void 0,
|
|
732
|
-
t.$slots.optionPdf ? {
|
|
733
|
-
name: "optionPdf",
|
|
734
|
-
fn: A(() => [
|
|
735
|
-
C(t.$slots, "optionPdf", {}, void 0, !0)
|
|
736
|
-
]),
|
|
737
|
-
key: "2"
|
|
738
|
-
} : void 0,
|
|
739
|
-
t.$slots.optionCsv ? {
|
|
740
|
-
name: "optionCsv",
|
|
741
|
-
fn: A(() => [
|
|
742
|
-
C(t.$slots, "optionCsv", {}, void 0, !0)
|
|
743
|
-
]),
|
|
744
|
-
key: "3"
|
|
745
|
-
} : void 0,
|
|
746
|
-
t.$slots.optionImg ? {
|
|
747
|
-
name: "optionImg",
|
|
748
|
-
fn: A(() => [
|
|
749
|
-
C(t.$slots, "optionImg", {}, void 0, !0)
|
|
750
|
-
]),
|
|
751
|
-
key: "4"
|
|
752
|
-
} : void 0,
|
|
753
|
-
t.$slots.optionTable ? {
|
|
754
|
-
name: "optionTable",
|
|
755
|
-
fn: A(() => [
|
|
756
|
-
C(t.$slots, "optionTable", {}, void 0, !0)
|
|
757
|
-
]),
|
|
758
|
-
key: "5"
|
|
759
|
-
} : void 0,
|
|
760
|
-
t.$slots.optionFullscreen ? {
|
|
761
|
-
name: "optionFullscreen",
|
|
762
|
-
fn: A(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
763
|
-
C(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
764
|
-
]),
|
|
765
|
-
key: "6"
|
|
766
|
-
} : void 0,
|
|
767
|
-
t.$slots.optionAnnotator ? {
|
|
768
|
-
name: "optionAnnotator",
|
|
769
|
-
fn: A(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
770
|
-
C(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
771
|
-
]),
|
|
772
|
-
key: "7"
|
|
773
|
-
} : void 0
|
|
774
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
775
|
-
Y.value.length > 1 ? (v(), m("nav", {
|
|
776
|
-
key: 4,
|
|
777
|
-
class: "vue-ui-treemap-breadcrumbs",
|
|
778
|
-
"data-dom-to-png-ignore": "",
|
|
779
|
-
ref_key: "breadcrumbsNav",
|
|
780
|
-
ref: $e
|
|
781
|
-
}, [
|
|
782
|
-
(v(!0), m(me, null, Ne(Y.value, (l, a) => (v(), m("span", {
|
|
783
|
-
role: "button",
|
|
784
|
-
tabindex: a < Y.value.length - 1 ? 0 : void 0,
|
|
785
|
-
key: l.id || "root",
|
|
786
|
-
onClick: (p) => a === Y.value.length - 1 ? () => {
|
|
787
|
-
} : he(l.node),
|
|
788
|
-
onKeydown: [
|
|
789
|
-
ht(ze((p) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["enter"]),
|
|
790
|
-
ht(ze((p) => a === Y.value.length - 1 ? void 0 : he(l.node), ["prevent"]), ["space"])
|
|
791
|
-
],
|
|
792
|
-
class: "vue-ui-treemap-crumb",
|
|
793
|
-
"data-last-crumb": a === Y.value.length - 1,
|
|
794
|
-
style: V({
|
|
795
|
-
color: e.value.style.chart.color
|
|
796
|
-
}),
|
|
797
|
-
onMouseenter: (p) => ct(a),
|
|
798
|
-
onMouseleave: dt,
|
|
799
|
-
onFocus: (p) => ct(a),
|
|
800
|
-
onBlur: dt
|
|
801
|
-
}, [
|
|
802
|
-
O("span", Cl, [
|
|
803
|
-
O("span", $l, [
|
|
804
|
-
C(t.$slots, "breadcrumb-label", pt({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: ge.value === a }), () => [
|
|
805
|
-
a === 0 ? (v(), m("div", Tl, [
|
|
806
|
-
Fe(al, {
|
|
807
|
-
name: ge.value === 0 ? "homeFilled" : "home",
|
|
808
|
-
stroke: e.value.style.chart.color
|
|
809
|
-
}, null, 8, ["name", "stroke"])
|
|
810
|
-
])) : (v(), m(me, { key: 1 }, [
|
|
811
|
-
Pe(Z(l.label), 1)
|
|
812
|
-
], 64))
|
|
813
|
-
], !0)
|
|
814
|
-
]),
|
|
815
|
-
a < Y.value.length - 1 ? (v(), m("span", xl, [
|
|
816
|
-
C(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
817
|
-
o[4] || (o[4] = Pe(" › ", -1))
|
|
818
|
-
], !0)
|
|
819
|
-
])) : x("", !0)
|
|
820
|
-
])
|
|
821
|
-
], 44, kl))), 128))
|
|
822
|
-
], 512)) : x("", !0),
|
|
823
|
-
(v(), m("svg", {
|
|
824
|
-
ref_key: "svgRef",
|
|
825
|
-
ref: Ge,
|
|
826
|
-
xmlns: r(jt),
|
|
827
|
-
class: Ie({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value, "vue-data-ui-zoom-plus": !Q.value, "vue-data-ui-zoom-minus": Q.value, loading: r(ue) }),
|
|
828
|
-
viewBox: `${ne.value.startX} ${ne.value.startY} ${ne.value.width <= 0 ? 10 : ne.value.width} ${ne.value.height <= 0 ? 10 : ne.value.height}`,
|
|
829
|
-
style: V(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
830
|
-
}, [
|
|
831
|
-
Fe(r(f)),
|
|
832
|
-
(v(!0), m(me, null, Ne(ie.value, (l, a) => (v(), m("g", {
|
|
833
|
-
key: `tgrad_${l.id}`
|
|
834
|
-
}, [
|
|
835
|
-
e.value.style.chart.layout.rects.gradient.show ? (v(), m("defs", Ol, [
|
|
836
|
-
O("radialGradient", {
|
|
837
|
-
id: `tgrad_${l.id}`,
|
|
838
|
-
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
839
|
-
}, [
|
|
840
|
-
O("stop", {
|
|
841
|
-
offset: "18%",
|
|
842
|
-
"stop-color": l.color
|
|
843
|
-
}, null, 8, Sl),
|
|
844
|
-
O("stop", {
|
|
845
|
-
offset: "100%",
|
|
846
|
-
"stop-color": r(gt)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
847
|
-
}, null, 8, Il)
|
|
848
|
-
], 8, Al)
|
|
849
|
-
])) : x("", !0)
|
|
850
|
-
]))), 128)),
|
|
851
|
-
(v(!0), m(me, null, Ne(ie.value, (l, a) => (v(), m("g", {
|
|
852
|
-
key: `k_${l.id}`
|
|
853
|
-
}, [
|
|
854
|
-
O("rect", {
|
|
855
|
-
x: l.x0,
|
|
856
|
-
y: l.y0,
|
|
857
|
-
height: lt(l),
|
|
858
|
-
width: ot(l),
|
|
859
|
-
fill: N.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
860
|
-
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
861
|
-
stroke: M.value && M.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
862
|
-
"stroke-width": M.value && M.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
863
|
-
onClick: ze((p) => he(l, a), ["stop"]),
|
|
864
|
-
onMouseenter: () => zt({
|
|
865
|
-
datapoint: l,
|
|
866
|
-
seriesIndex: a
|
|
867
|
-
}),
|
|
868
|
-
onMouseleave: (p) => Nt({ datapoint: l, seriesIndex: a }),
|
|
869
|
-
style: V(`opacity:${M.value ? M.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
870
|
-
class: Ie([
|
|
871
|
-
"vue-ui-treemap-rect",
|
|
872
|
-
It(l) ? "vue-data-ui-zoom-plus" : Q.value ? "vue-data-ui-zoom-minus" : ""
|
|
873
|
-
])
|
|
874
|
-
}, null, 46, Fl),
|
|
875
|
-
(v(), m("foreignObject", {
|
|
876
|
-
x: l.x0,
|
|
877
|
-
y: l.y0,
|
|
878
|
-
height: lt(l),
|
|
879
|
-
width: ot(l),
|
|
880
|
-
class: "vue-ui-treemap-cell-foreignObject"
|
|
881
|
-
}, [
|
|
882
|
-
O("div", zl, [
|
|
883
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value) ? (v(), m("div", {
|
|
884
|
-
key: 0,
|
|
885
|
-
class: "vue-ui-treemap-cell-default",
|
|
886
|
-
style: V(`width:calc(100% - ${J(l) / 1.5}px);text-align:left;line-height:${J(l) < 14 ? 14 : J(l)}px;padding:${J(l) / 3}px; color:${r(yt)(l.color)}`)
|
|
887
|
-
}, [
|
|
888
|
-
O("span", {
|
|
889
|
-
style: V(`width:100%;font-size:${J(l)}px;`)
|
|
890
|
-
}, Z(l.name), 5),
|
|
891
|
-
o[5] || (o[5] = O("br", null, null, -1)),
|
|
892
|
-
O("span", {
|
|
893
|
-
style: V(`width:100%;font-size:${J(l)}px;`)
|
|
894
|
-
}, Z(r(we)(
|
|
895
|
-
e.value.style.chart.layout.labels.formatter,
|
|
896
|
-
l.value,
|
|
897
|
-
r(de)({
|
|
898
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
899
|
-
v: l.value,
|
|
900
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
901
|
-
r: e.value.style.chart.layout.labels.rounding
|
|
902
|
-
}),
|
|
903
|
-
{ datapoint: l }
|
|
904
|
-
)), 5)
|
|
905
|
-
], 4)) : x("", !0),
|
|
906
|
-
r(ue) ? x("", !0) : C(t.$slots, "rect", pt({
|
|
907
|
-
key: 1,
|
|
908
|
-
ref_for: !0
|
|
909
|
-
}, {
|
|
910
|
-
rect: l,
|
|
911
|
-
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || Q.value,
|
|
912
|
-
fontSize: J(l),
|
|
913
|
-
isZoom: Q.value,
|
|
914
|
-
textColor: r(yt)(l.color)
|
|
915
|
-
}), void 0, !0)
|
|
916
|
-
])
|
|
917
|
-
], 8, Nl))
|
|
918
|
-
]))), 128)),
|
|
919
|
-
C(t.$slots, "svg", ee(te({ svg: K.value, isZoom: Q.value, rect: M.value, config: e.value })), void 0, !0)
|
|
920
|
-
], 14, _l)),
|
|
921
|
-
t.$slots.watermark ? (v(), m("div", Pl, [
|
|
922
|
-
C(t.$slots, "watermark", ee(te({ isPrinting: r(Xe) || r(qe) })), void 0, !0)
|
|
923
|
-
])) : x("", !0),
|
|
924
|
-
O("div", {
|
|
925
|
-
id: `legend-bottom-${$.value}`
|
|
926
|
-
}, null, 8, Rl),
|
|
927
|
-
He.value ? (v(), j(Et, {
|
|
928
|
-
key: 6,
|
|
929
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${$.value}` : `#legend-bottom-${$.value}`
|
|
930
|
-
}, [
|
|
931
|
-
O("div", {
|
|
932
|
-
ref_key: "chartLegend",
|
|
933
|
-
ref: Ve
|
|
934
|
-
}, [
|
|
935
|
-
e.value.style.chart.legend.show ? (v(), j(sl, {
|
|
936
|
-
key: `legend_${Ce.value}`,
|
|
937
|
-
legendSet: nt.value,
|
|
938
|
-
config: Ft.value,
|
|
939
|
-
id: `treemap_legend_${$.value}`,
|
|
940
|
-
onClickMarker: o[0] || (o[0] = ({ legend: l }) => st(l))
|
|
941
|
-
}, {
|
|
942
|
-
item: A(({ legend: l, index: a }) => [
|
|
943
|
-
r(ue) ? x("", !0) : (v(), m("div", {
|
|
944
|
-
key: 0,
|
|
945
|
-
onClick: (p) => st(l),
|
|
946
|
-
style: V(`opacity:${L.value.includes(l.id) ? 0.5 : 1}`)
|
|
947
|
-
}, Z(l.name) + Z(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + Z(e.value.style.chart.legend.showValue ? r(we)(
|
|
948
|
-
e.value.style.chart.layout.labels.formatter,
|
|
949
|
-
l.value,
|
|
950
|
-
r(de)({
|
|
951
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
952
|
-
v: l.value,
|
|
953
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
954
|
-
r: e.value.style.chart.legend.roundingValue
|
|
955
|
-
}),
|
|
956
|
-
{ datapoint: l }
|
|
957
|
-
) : "") + " " + Z(e.value.style.chart.legend.showPercentage ? L.value.includes(l.id) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / ae.value) ? "-" : (l.value / ae.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ll))
|
|
958
|
-
]),
|
|
959
|
-
_: 1
|
|
960
|
-
}, 8, ["legendSet", "config", "id"])) : C(t.$slots, "legend", {
|
|
961
|
-
key: 1,
|
|
962
|
-
legend: nt.value
|
|
963
|
-
}, void 0, !0)
|
|
964
|
-
], 512)
|
|
965
|
-
], 8, ["to"])) : x("", !0),
|
|
966
|
-
t.$slots.source ? (v(), m("div", {
|
|
967
|
-
key: 7,
|
|
968
|
-
ref_key: "source",
|
|
969
|
-
ref: De,
|
|
970
|
-
dir: "auto"
|
|
971
|
-
}, [
|
|
972
|
-
C(t.$slots, "source", {}, void 0, !0)
|
|
973
|
-
], 512)) : x("", !0),
|
|
974
|
-
Fe(r(d), {
|
|
975
|
-
show: P.value.showTooltip && D.value,
|
|
976
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
977
|
-
color: e.value.style.chart.tooltip.color,
|
|
978
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
979
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
980
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
981
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
982
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
983
|
-
position: e.value.style.chart.tooltip.position,
|
|
984
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
985
|
-
parent: U.value,
|
|
986
|
-
content: z.value,
|
|
987
|
-
isFullscreen: le.value,
|
|
988
|
-
isCustom: r(mt)(e.value.style.chart.tooltip.customFormat),
|
|
989
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
990
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter
|
|
991
|
-
}, {
|
|
992
|
-
"tooltip-before": A(() => [
|
|
993
|
-
C(t.$slots, "tooltip-before", ee(te({ ...Oe.value })), void 0, !0)
|
|
994
|
-
]),
|
|
995
|
-
"tooltip-after": A(() => [
|
|
996
|
-
C(t.$slots, "tooltip-after", ee(te({ ...Oe.value })), void 0, !0)
|
|
997
|
-
]),
|
|
998
|
-
_: 3
|
|
999
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1000
|
-
w.value ? (v(), j(r(h), {
|
|
1001
|
-
key: 8,
|
|
1002
|
-
hideDetails: "",
|
|
1003
|
-
config: {
|
|
1004
|
-
open: P.value.showTable,
|
|
1005
|
-
maxHeight: 1e4,
|
|
1006
|
-
body: {
|
|
1007
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1008
|
-
color: e.value.style.chart.color
|
|
1009
|
-
},
|
|
1010
|
-
head: {
|
|
1011
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1012
|
-
color: e.value.style.chart.color
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
}, {
|
|
1016
|
-
content: A(() => [
|
|
1017
|
-
(v(), j(r(c), {
|
|
1018
|
-
key: `table_${ke.value}`,
|
|
1019
|
-
colNames: pe.value.colNames,
|
|
1020
|
-
head: pe.value.head,
|
|
1021
|
-
body: pe.value.body,
|
|
1022
|
-
config: pe.value.config,
|
|
1023
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1024
|
-
onClose: o[1] || (o[1] = (l) => P.value.showTable = !1)
|
|
1025
|
-
}, {
|
|
1026
|
-
th: A(({ th: l }) => [
|
|
1027
|
-
O("div", {
|
|
1028
|
-
innerHTML: l,
|
|
1029
|
-
style: { display: "flex", "align-items": "center" }
|
|
1030
|
-
}, null, 8, Ml)
|
|
1031
|
-
]),
|
|
1032
|
-
td: A(({ td: l }) => [
|
|
1033
|
-
Pe(Z(l.name || l), 1)
|
|
1034
|
-
]),
|
|
1035
|
-
_: 1
|
|
1036
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1037
|
-
]),
|
|
1038
|
-
_: 1
|
|
1039
|
-
}, 8, ["config"])) : x("", !0),
|
|
1040
|
-
r(ue) ? (v(), j(il, { key: 9 })) : x("", !0)
|
|
1041
|
-
], 46, bl));
|
|
1042
|
-
}
|
|
1043
|
-
}, Jl = /* @__PURE__ */ cl(Vl, [["__scopeId", "data-v-adb108e4"]]);
|
|
1044
|
-
export {
|
|
1045
|
-
Jl as default
|
|
1046
|
-
};
|